@nextui-org/popover
Advanced tools
Comparing version 0.0.0-dev-v2-20230407185204 to 0.0.0-dev-v2-20230409022144
@@ -13,4 +13,5 @@ export { default as Popover, PopoverProps } from './popover.js'; | ||
import '@nextui-org/aria-utils'; | ||
import '@react-stately/overlays'; | ||
import '@react-aria/overlays'; | ||
import '@react-types/overlays'; | ||
import '@nextui-org/shared-utils'; |
@@ -56,2 +56,3 @@ "use strict"; | ||
children, | ||
state: stateProp, | ||
triggerRef: triggerRefProp, | ||
@@ -85,3 +86,3 @@ scrollRef, | ||
); | ||
const state = (0, import_overlays.useOverlayTriggerState)({ | ||
const innerState = (0, import_overlays.useOverlayTriggerState)({ | ||
isOpen, | ||
@@ -91,2 +92,3 @@ defaultOpen, | ||
}); | ||
const state = stateProp || innerState; | ||
const { popoverProps, underlayProps, arrowProps, placement } = (0, import_overlays2.usePopover)( | ||
@@ -93,0 +95,0 @@ { |
@@ -8,2 +8,3 @@ import * as _nextui_org_system from '@nextui-org/system'; | ||
import '@nextui-org/aria-utils'; | ||
import '@react-stately/overlays'; | ||
import '@react-aria/overlays'; | ||
@@ -10,0 +11,0 @@ import '@react-types/overlays'; |
@@ -49,2 +49,3 @@ "use strict"; | ||
children, | ||
state: stateProp, | ||
triggerRef: triggerRefProp, | ||
@@ -78,3 +79,3 @@ scrollRef, | ||
); | ||
const state = (0, import_overlays.useOverlayTriggerState)({ | ||
const innerState = (0, import_overlays.useOverlayTriggerState)({ | ||
isOpen, | ||
@@ -84,2 +85,3 @@ defaultOpen, | ||
}); | ||
const state = stateProp || innerState; | ||
const { popoverProps, underlayProps, arrowProps, placement } = (0, import_overlays2.usePopover)( | ||
@@ -86,0 +88,0 @@ { |
@@ -9,2 +9,3 @@ import * as _react_types_shared from '@react-types/shared'; | ||
import { OverlayPlacement } from '@nextui-org/aria-utils'; | ||
import { OverlayTriggerState } from '@react-stately/overlays'; | ||
import { AriaPopoverProps } from '@react-aria/overlays'; | ||
@@ -20,2 +21,6 @@ import { OverlayTriggerProps } from '@react-types/overlays'; | ||
/** | ||
* The controlled state of the popover. | ||
*/ | ||
state?: OverlayTriggerState; | ||
/** | ||
* A ref for the scrollable region within the overlay. | ||
@@ -22,0 +27,0 @@ * @default popoverRef |
@@ -43,2 +43,3 @@ "use strict"; | ||
children, | ||
state: stateProp, | ||
triggerRef: triggerRefProp, | ||
@@ -72,3 +73,3 @@ scrollRef, | ||
); | ||
const state = (0, import_overlays.useOverlayTriggerState)({ | ||
const innerState = (0, import_overlays.useOverlayTriggerState)({ | ||
isOpen, | ||
@@ -78,2 +79,3 @@ defaultOpen, | ||
}); | ||
const state = stateProp || innerState; | ||
const { popoverProps, underlayProps, arrowProps, placement } = (0, import_overlays2.usePopover)( | ||
@@ -80,0 +82,0 @@ { |
{ | ||
"name": "@nextui-org/popover", | ||
"version": "0.0.0-dev-v2-20230407185204", | ||
"version": "0.0.0-dev-v2-20230409022144", | ||
"description": "A popover is an overlay element positioned relative to a trigger.", | ||
@@ -39,9 +39,9 @@ "keywords": [ | ||
"framer-motion": "^10.11.2", | ||
"@nextui-org/aria-utils": "0.0.0-dev-v2-20230407185204", | ||
"@nextui-org/framer-transitions": "0.0.0-dev-v2-20230407185204", | ||
"@nextui-org/dom-utils": "0.0.0-dev-v2-20230407185204", | ||
"@nextui-org/button": "0.0.0-dev-v2-20230407185204", | ||
"@nextui-org/shared-utils": "0.0.0-dev-v2-20230407185204", | ||
"@nextui-org/system": "0.0.0-dev-v2-20230407185204", | ||
"@nextui-org/theme": "0.0.0-dev-v2-20230407185204" | ||
"@nextui-org/dom-utils": "0.0.0-dev-v2-20230409022144", | ||
"@nextui-org/framer-transitions": "0.0.0-dev-v2-20230409022144", | ||
"@nextui-org/aria-utils": "0.0.0-dev-v2-20230409022144", | ||
"@nextui-org/button": "0.0.0-dev-v2-20230409022144", | ||
"@nextui-org/shared-utils": "0.0.0-dev-v2-20230409022144", | ||
"@nextui-org/theme": "0.0.0-dev-v2-20230409022144", | ||
"@nextui-org/system": "0.0.0-dev-v2-20230409022144" | ||
}, | ||
@@ -53,4 +53,4 @@ "devDependencies": { | ||
"react": "^18.0.0", | ||
"@nextui-org/input": "0.0.0-dev-v2-20230407185204", | ||
"@nextui-org/card": "0.0.0-dev-v2-20230407185204" | ||
"@nextui-org/input": "0.0.0-dev-v2-20230409022144", | ||
"@nextui-org/card": "0.0.0-dev-v2-20230409022144" | ||
}, | ||
@@ -57,0 +57,0 @@ "clean-package": "../../../clean-package.config.json", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
58226
1431
+ Added@nextui-org/aria-utils@0.0.0-dev-v2-20230409022144(transitive)
+ Added@nextui-org/button@0.0.0-dev-v2-20230409022144(transitive)
+ Added@nextui-org/dom-utils@0.0.0-dev-v2-20230409022144(transitive)
+ Added@nextui-org/drip@0.0.0-dev-v2-20230409022144(transitive)
+ Added@nextui-org/framer-transitions@0.0.0-dev-v2-20230409022144(transitive)
+ Added@nextui-org/shared-utils@0.0.0-dev-v2-20230409022144(transitive)
+ Added@nextui-org/spinner@0.0.0-dev-v2-20230409022144(transitive)
+ Added@nextui-org/system@0.0.0-dev-v2-20230409022144(transitive)
+ Added@nextui-org/theme@0.0.0-dev-v2-20230409022144(transitive)
- Removed@nextui-org/aria-utils@0.0.0-dev-v2-20230407185204(transitive)
- Removed@nextui-org/button@0.0.0-dev-v2-20230407185204(transitive)
- Removed@nextui-org/dom-utils@0.0.0-dev-v2-20230407185204(transitive)
- Removed@nextui-org/drip@0.0.0-dev-v2-20230407185204(transitive)
- Removed@nextui-org/framer-transitions@0.0.0-dev-v2-20230407185204(transitive)
- Removed@nextui-org/shared-utils@0.0.0-dev-v2-20230407185204(transitive)
- Removed@nextui-org/spinner@0.0.0-dev-v2-20230407185204(transitive)
- Removed@nextui-org/system@0.0.0-dev-v2-20230407185204(transitive)
- Removed@nextui-org/theme@0.0.0-dev-v2-20230407185204(transitive)
Updated@nextui-org/framer-transitions@0.0.0-dev-v2-20230409022144