Skip to content

Commit

Permalink
chore(popover): refactor (#6592)
Browse files Browse the repository at this point in the history
* chore(popover): refactor

* chore: add changeset

* chore: add changeset

* chore: add changeset
  • Loading branch information
anubra266 committed Sep 9, 2022
1 parent c2d1c36 commit 65b7c19
Show file tree
Hide file tree
Showing 4 changed files with 676 additions and 2,409 deletions.
5 changes: 5 additions & 0 deletions .changeset/ninety-pugs-suffer.md
@@ -0,0 +1,5 @@
---
"@chakra-ui/popover": patch
---

Refactor popover
7 changes: 5 additions & 2 deletions packages/components/popover/package.json
Expand Up @@ -33,13 +33,15 @@
},
"dependencies": {
"@chakra-ui/close-button": "workspace:*",
"@chakra-ui/hooks": "workspace:*",
"@chakra-ui/popper": "workspace:*",
"@chakra-ui/lazy-utils": "workspace:*",
"@chakra-ui/react-types": "workspace:*",
"@chakra-ui/react-use-disclosure": "workspace:*",
"@chakra-ui/react-use-merge-refs": "workspace:*",
"@chakra-ui/react-context": "workspace:*"
"@chakra-ui/react-context": "workspace:*",
"@chakra-ui/react-use-animation-state": "workspace:*",
"@chakra-ui/react-use-focus-effect": "workspace:*",
"@chakra-ui/react-use-focus-on-pointer-down": "workspace:*"
},
"devDependencies": {
"@chakra-ui/shared-utils": "workspace:*",
Expand All @@ -48,6 +50,7 @@
"@chakra-ui/layout": "workspace:*",
"@chakra-ui/radio": "workspace:*",
"@chakra-ui/input": "workspace:*",
"@chakra-ui/hooks": "workspace:*",
"react-icons": "^4.2.0",
"framer-motion": "^6.2.9",
"react": "^18.0.0"
Expand Down
6 changes: 3 additions & 3 deletions packages/components/popover/src/use-popover.ts
@@ -1,9 +1,9 @@
import { useAnimationState } from "@chakra-ui/react-use-animation-state"
import { useFocusOnPointerDown } from "@chakra-ui/react-use-focus-on-pointer-down"
import {
useFocusOnHide,
useFocusOnPointerDown,
useFocusOnShow,
useAnimationState,
} from "@chakra-ui/hooks"
} from "@chakra-ui/react-use-focus-effect"
import { useDisclosure } from "@chakra-ui/react-use-disclosure"
import { popperCSSVars, usePopper, UsePopperProps } from "@chakra-ui/popper"
import { DOMAttributes, PropGetter } from "@chakra-ui/react-types"
Expand Down

1 comment on commit 65b7c19

@vercel
Copy link

@vercel vercel bot commented on 65b7c19 Sep 9, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.