tfy-web-components 0.0.38 → 0.0.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Button-ihulNl2v.js → Button-BfBg-JuM.js} +15 -15
- package/dist/Button-BfBg-JuM.js.map +1 -0
- package/dist/{Input-BQtyHSy_.js → Input-BJKnSR9Y.js} +10 -13
- package/dist/{Input-BQtyHSy_.js.map → Input-BJKnSR9Y.js.map} +1 -1
- package/dist/{Modal-C4MUy9GD.js → Modal-MUzR0rK2.js} +3 -3
- package/dist/{Modal-C4MUy9GD.js.map → Modal-MUzR0rK2.js.map} +1 -1
- package/dist/{Popover-Du8zw7xW.js → Popover-P_pJI0ZD.js} +5 -5
- package/dist/{Popover-Du8zw7xW.js.map → Popover-P_pJI0ZD.js.map} +1 -1
- package/dist/{Tooltip-BuGLP-PU.js → Tooltip-a0OxvWau.js} +8 -8
- package/dist/{Tooltip-BuGLP-PU.js.map → Tooltip-a0OxvWau.js.map} +1 -1
- package/dist/components/atoms/Accordion.es.js +1 -1
- package/dist/components/atoms/Accordion.es.js.map +1 -1
- package/dist/components/atoms/AudioPlayer.es.js +4 -4
- package/dist/components/atoms/AudioPlayer.es.js.map +1 -1
- package/dist/components/atoms/Avatar.es.js +16 -16
- package/dist/components/atoms/Avatar.es.js.map +1 -1
- package/dist/components/atoms/Badge.es.js +37 -37
- package/dist/components/atoms/Badge.es.js.map +1 -1
- package/dist/components/atoms/Button.d.ts +2 -0
- package/dist/components/atoms/Button.es.js +2 -2
- package/dist/components/atoms/ButtonGroup.es.js +4 -4
- package/dist/components/atoms/ButtonGroup.es.js.map +1 -1
- package/dist/components/atoms/IconButton.es.js +5 -5
- package/dist/components/atoms/IconButton.es.js.map +1 -1
- package/dist/components/atoms/Logo.es.js +1 -1
- package/dist/components/atoms/Logo.es.js.map +1 -1
- package/dist/components/atoms/Modal.es.js +1 -1
- package/dist/components/atoms/OutlinedRadio.es.js +1 -1
- package/dist/components/atoms/OutlinedRadio.es.js.map +1 -1
- package/dist/components/atoms/OverflowButton.es.js +2 -2
- package/dist/components/atoms/Progress.es.js +11 -11
- package/dist/components/atoms/Progress.es.js.map +1 -1
- package/dist/components/atoms/Skeleton.es.js +1 -8
- package/dist/components/atoms/Skeleton.es.js.map +1 -1
- package/dist/components/atoms/Spinner.es.js +4 -4
- package/dist/components/atoms/Spinner.es.js.map +1 -1
- package/dist/components/atoms/Switch.d.ts +10 -2
- package/dist/components/atoms/Switch.es.js +39 -16
- package/dist/components/atoms/Switch.es.js.map +1 -1
- package/dist/components/atoms/TabButton.es.js +2 -2
- package/dist/components/atoms/TabButton.es.js.map +1 -1
- package/dist/components/atoms/Tag.es.js +1 -1
- package/dist/components/atoms/Tag.es.js.map +1 -1
- package/dist/components/atoms/Tooltip.es.js +1 -1
- package/dist/components/molecules/Alert.es.js +4 -4
- package/dist/components/molecules/Alert.es.js.map +1 -1
- package/dist/components/molecules/CopyField.es.js +2 -2
- package/dist/components/molecules/CustomDrawer.es.js +5 -5
- package/dist/components/molecules/CustomDrawer.es.js.map +1 -1
- package/dist/components/molecules/Dialog.es.js +1 -1
- package/dist/components/molecules/ImagesPreview.es.js +7 -7
- package/dist/components/molecules/ImagesPreview.es.js.map +1 -1
- package/dist/components/molecules/Input.es.js +2 -2
- package/dist/components/molecules/Markdown.es.js +4 -4
- package/dist/components/molecules/Markdown.es.js.map +1 -1
- package/dist/components/molecules/Notify.es.js +4 -4
- package/dist/components/molecules/Notify.es.js.map +1 -1
- package/dist/components/molecules/SimpleCodeEditor.es.js +7 -7
- package/dist/components/molecules/SimpleCodeEditor.es.js.map +1 -1
- package/dist/components/molecules/ToggleButton.es.js +13 -16
- package/dist/components/molecules/ToggleButton.es.js.map +1 -1
- package/dist/components/molecules/agent-chat/UserMessage.es.js +1 -1
- package/dist/components/molecules/agent-chat/UserMessage.es.js.map +1 -1
- package/dist/components/molecules/agent-chat/UserMessageEdit.es.js +2 -2
- package/dist/components/molecules/agent-chat/UserMessageEdit.es.js.map +1 -1
- package/dist/components/molecules/agent-chat.es.js +9 -9
- package/dist/components/molecules/agent-chat.es.js.map +1 -1
- package/dist/components/theme/colors.es.js +15 -1
- package/dist/components/theme/colors.es.js.map +1 -1
- package/dist/index.es.js +1 -1
- package/dist/markdown.css +2 -2
- package/dist/new-components/atoms/Checkbox.es.js +1 -1
- package/dist/new-components/atoms/Checkbox.es.js.map +1 -1
- package/dist/new-components/atoms/Chip.es.js +17 -20
- package/dist/new-components/atoms/Chip.es.js.map +1 -1
- package/dist/new-components/atoms/Popover.es.js +2 -2
- package/dist/new-components/atoms/Radio.es.js +2 -2
- package/dist/new-components/atoms/Radio.es.js.map +1 -1
- package/dist/new-components/atoms/SegmentedControl.es.js +2 -2
- package/dist/new-components/atoms/SegmentedControl.es.js.map +1 -1
- package/dist/new-components/atoms/Slider.es.js +3 -3
- package/dist/new-components/atoms/Slider.es.js.map +1 -1
- package/dist/new-components/atoms/Toggletip.es.js +7 -7
- package/dist/new-components/atoms/Toggletip.es.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/tokens.css +509 -614
- package/package.json +1 -1
- package/dist/Button-ihulNl2v.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Popover-Du8zw7xW.js","sources":["../node_modules/@base-ui/react/popover/root/PopoverRootContext.mjs","../node_modules/@base-ui/react/popover/store/PopoverStore.mjs","../node_modules/@base-ui/react/popover/root/PopoverRoot.mjs","../node_modules/@base-ui/react/popover/utils/constants.mjs","../node_modules/@base-ui/react/utils/popups/useTriggerFocusGuards.mjs","../node_modules/@base-ui/react/popover/trigger/PopoverTrigger.mjs","../node_modules/@base-ui/react/popover/portal/PopoverPortalContext.mjs","../node_modules/@base-ui/react/popover/portal/PopoverPortal.mjs","../node_modules/@base-ui/react/popover/positioner/PopoverPositionerContext.mjs","../node_modules/@base-ui/react/internals/useTriggerSwitchTransition.mjs","../node_modules/@base-ui/react/utils/useAnchoredPopupScrollLock.mjs","../node_modules/@base-ui/react/popover/positioner/PopoverPositioner.mjs","../node_modules/@base-ui/react/utils/closePart.mjs","../node_modules/@base-ui/react/popover/popup/PopoverPopup.mjs","../node_modules/@base-ui/react/popover/arrow/PopoverArrow.mjs","../node_modules/@base-ui/react/popover/title/PopoverTitle.mjs","../node_modules/@base-ui/react/popover/description/PopoverDescription.mjs","../node_modules/@base-ui/react/popover/close/PopoverClose.mjs","../src/new-components/atoms/Popover.tsx"],"sourcesContent":["'use client';\n\nimport _formatErrorMessage from \"@base-ui/utils/formatErrorMessage\";\nimport * as React from 'react';\nexport const PopoverRootContext = /*#__PURE__*/React.createContext(undefined);\nif (process.env.NODE_ENV !== \"production\") PopoverRootContext.displayName = \"PopoverRootContext\";\nexport function usePopoverRootContext(optional) {\n const context = React.useContext(PopoverRootContext);\n if (context === undefined && !optional) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? 'Base UI: PopoverRootContext is missing. Popover parts must be placed within <Popover.Root>.' : _formatErrorMessage(47));\n }\n return context;\n}","'use client';\n\nimport * as React from 'react';\nimport * as ReactDOM from 'react-dom';\nimport { ReactStore } from '@base-ui/utils/store';\nimport { Timeout } from '@base-ui/utils/useTimeout';\nimport { NOOP } from '@base-ui/utils/empty';\nimport { REASONS } from \"../../internals/reasons.mjs\";\nimport { NullStore } from \"../../utils/NullStore.mjs\";\nimport { attachPreventUnmountOnClose, createInitialPopupStoreState, popupStoreSelectors, PopupTriggerMap, createPopupOpenState } from \"../../utils/popups/index.mjs\";\nimport { PATIENT_CLICK_THRESHOLD } from \"../../internals/constants.mjs\";\nconst selectors = {\n ...popupStoreSelectors,\n disabled: state => state.disabled,\n // `trigger-change` describes a popup moving between triggers, which only has\n // meaning while it is open. Dropping it once closed keeps a late or stale\n // restoration from marking a closing popup instant and skipping its exit\n // transition, including on close paths that never reach `setOpen` — a\n // controlled consumer committing `open={false}` goes straight through the prop.\n instantType: state => state.instantType === 'trigger-change' && !popupStoreSelectors.open(state) ? undefined : state.instantType,\n openMethod: state => state.openMethod,\n openChangeReason: state => state.openChangeReason,\n isPressOpenedByTrigger: (state, triggerId) => state.openChangeReason === REASONS.triggerPress && popupStoreSelectors.isOpenedByTrigger(state, triggerId),\n // The trigger selectors below resolve to a constant for triggers that don't use them, so state\n // changes don't re-render every inactive trigger.\n isTouchPressOpen: (state, openOnHover) => openOnHover && state.openMethod === 'touch' && state.openChangeReason === REASONS.triggerPress,\n hasTriggerFocusGuards: (state, triggerId) => popupStoreSelectors.isOpenedByTrigger(state, triggerId) && !state.focusManagerModal,\n modal: state => state.modal,\n titleElementId: state => state.titleElementId,\n descriptionElementId: state => state.descriptionElementId,\n openOnHover: state => state.openOnHover,\n closeDelay: state => state.closeDelay,\n adaptiveOrigin: state => state.adaptiveOrigin\n};\n\n/**\n * The store view that detached handle-backed triggers read from. Both the real `PopoverStore` and\n * the inert fallback store satisfy it, so a trigger can read from whichever store the handle\n * currently exposes. Narrowed to the members a trigger actually uses — the trigger-data members plus\n * `setOpen` (called by the focus guards) — so the exposed surface can't bypass the open-change\n * pipeline; on the detached fallback store every one of these mutations is a no-op.\n */\n\nexport class PopoverStore extends ReactStore {\n constructor(initialState, floatingId, nested) {\n const triggerElements = new PopupTriggerMap();\n super(createInitialState(initialState, triggerElements, floatingId, nested), createInitialContext(triggerElements), selectors);\n }\n setOpen = (nextOpen, eventDetails) => {\n const isHover = eventDetails.reason === REASONS.triggerHover;\n const isKeyboardClick = eventDetails.reason === REASONS.triggerPress && eventDetails.event.detail === 0;\n const isDismissClose = !nextOpen && (eventDetails.reason === REASONS.escapeKey || eventDetails.reason == null);\n const shouldPreventUnmountOnClose = attachPreventUnmountOnClose(eventDetails);\n const activeTriggerId = this.select('activeTriggerId');\n if (!nextOpen && eventDetails.reason === REASONS.closePress && eventDetails.trigger == null && activeTriggerId != null) {\n eventDetails.trigger = this.context.triggerElements.getById(activeTriggerId) ?? this.select('activeTriggerElement') ?? undefined;\n }\n this.context.onOpenChange?.(nextOpen, eventDetails);\n if (eventDetails.isCanceled) {\n return;\n }\n this.state.floatingRootContext.dispatchOpenChange(nextOpen, eventDetails);\n const changeState = () => {\n const popupOpenState = createPopupOpenState(this.state, nextOpen, eventDetails.trigger, shouldPreventUnmountOnClose());\n popupOpenState.openChangeReason = eventDetails.reason;\n this.update(popupOpenState);\n };\n if (isHover) {\n // Only allow \"patient\" clicks to close the popover if it's open.\n // If they clicked within 500ms of the popover opening, keep it open.\n this.context.stickIfOpen = true;\n this.context.stickIfOpenTimeout.start(PATIENT_CLICK_THRESHOLD, () => {\n this.context.stickIfOpen = false;\n });\n ReactDOM.flushSync(changeState);\n } else {\n changeState();\n }\n let instantType;\n if (isKeyboardClick) {\n instantType = 'click';\n } else if (isDismissClose) {\n instantType = 'dismiss';\n } else if (eventDetails.reason === REASONS.focusOut) {\n instantType = 'focus';\n }\n this.set('instantType', instantType);\n };\n}\n\n/**\n * Creates the inert fallback store used by detached handle-backed triggers while no\n * `Popover.Root` is attached. It preserves a popover-specific trigger registry in context so\n * detached triggers can register before migrating to the live root store. `setOpen` is a no-op\n * (matching the inert reads/writes of `NullStore`), so a trigger can hand the store to focus-guard\n * helpers that expect `setOpen` without it ever taking effect while detached.\n */\nexport function createNullPopoverStore() {\n const triggerElements = new PopupTriggerMap();\n const store = new NullStore(Object.freeze(createInitialState(undefined, triggerElements)), Object.freeze(createInitialContext(triggerElements)), selectors);\n return Object.assign(store, {\n setOpen: NOOP\n });\n}\nfunction createInitialState(initialState, triggerElements, floatingId, nested = false) {\n const state = {\n ...createInitialPopupStoreState(triggerElements, floatingId, nested),\n disabled: false,\n modal: false,\n focusManagerModal: false,\n instantType: undefined,\n openMethod: null,\n openChangeReason: null,\n titleElementId: undefined,\n descriptionElementId: undefined,\n openOnHover: false,\n closeDelay: 0,\n adaptiveOrigin: undefined,\n ...initialState\n };\n if (state.open && initialState?.mounted === undefined) {\n state.mounted = true;\n }\n return state;\n}\nfunction createInitialContext(triggerElements) {\n return {\n popupRef: /*#__PURE__*/React.createRef(),\n onOpenChange: undefined,\n onOpenChangeComplete: undefined,\n triggerFocusTargetRef: /*#__PURE__*/React.createRef(),\n beforeTriggerFocusGuardRef: /*#__PURE__*/React.createRef(),\n beforeContentFocusGuardRef: /*#__PURE__*/React.createRef(),\n stickIfOpenTimeout: new Timeout(),\n stickIfOpen: true,\n triggerElements\n };\n}","'use client';\n\nimport * as React from 'react';\nimport { fastComponent } from '@base-ui/utils/fastHooks';\nimport { useDismiss, FloatingTree } from \"../../floating-ui-react/index.mjs\";\nimport { PopoverRootContext, usePopoverRootContext } from \"./PopoverRootContext.mjs\";\nimport { PopoverStore } from \"../store/PopoverStore.mjs\";\nimport { createChangeEventDetails } from \"../../internals/createBaseUIEventDetails.mjs\";\nimport { REASONS } from \"../../internals/reasons.mjs\";\nimport { PopupHandleAttachment, useImplicitActiveTrigger, usePopupRootStore, useOpenStateTransitions, usePopupInteractionProps, usePopupRootSync } from \"../../utils/popups/index.mjs\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst PopoverRootComponent = fastComponent(function PopoverRootComponent({\n props\n}) {\n const {\n children,\n open: openProp,\n defaultOpen = false,\n onOpenChange,\n onOpenChangeComplete,\n modal = false,\n handle,\n triggerId: triggerIdProp,\n defaultTriggerId: defaultTriggerIdProp = null\n } = props;\n const store = usePopoverRootStore(handle, {\n modal,\n open: defaultOpen,\n openProp,\n activeTriggerId: defaultTriggerIdProp,\n triggerIdProp\n });\n store.useControlledProp('openProp', openProp);\n store.useControlledProp('triggerIdProp', triggerIdProp);\n const open = store.useState('open');\n const mounted = store.useState('mounted');\n const payload = store.useState('payload');\n store.useContextCallback('onOpenChange', onOpenChange);\n store.useContextCallback('onOpenChangeComplete', onOpenChangeComplete);\n usePopupRootSync(store, open);\n useImplicitActiveTrigger(store);\n const {\n forceUnmount\n } = useOpenStateTransitions(open, store, () => {\n store.context.stickIfOpen = true;\n store.set('openChangeReason', null);\n });\n store.useSyncedValues({\n modal\n });\n React.useEffect(() => {\n if (!open) {\n store.context.stickIfOpenTimeout.clear();\n }\n }, [store, open]);\n React.useImperativeHandle(props.actionsRef, () => ({\n unmount: forceUnmount,\n close: () => store.setOpen(false, createChangeEventDetails(REASONS.imperativeAction))\n }), [forceUnmount, store]);\n\n // Detached triggers share this one Root, so mounting its interactions eagerly is cheap. The\n // trigger props they publish then stay stable, so opening and closing doesn't re-render inactive\n // triggers.\n const shouldRenderInteractions = open || mounted || handle != null;\n return /*#__PURE__*/_jsxs(PopoverRootContext.Provider, {\n value: store,\n children: [handle && /*#__PURE__*/_jsx(PopupHandleAttachment, {\n handle: handle,\n store: store\n }), shouldRenderInteractions && /*#__PURE__*/_jsx(PopoverInteractions, {\n store: store,\n modal: modal\n }), typeof children === 'function' ? children({\n payload\n }) : children]\n });\n});\n\n/**\n * Groups all parts of the popover.\n * Doesn't render its own HTML element.\n *\n * Documentation: [Base UI Popover](https://base-ui.com/react/components/popover)\n */\nif (process.env.NODE_ENV !== \"production\") PopoverRootComponent.displayName = \"PopoverRootComponent\";\nexport function PopoverRoot(props) {\n if (usePopoverRootContext(true)) {\n return /*#__PURE__*/_jsx(PopoverRootComponent, {\n props: props\n });\n }\n return /*#__PURE__*/_jsx(FloatingTree, {\n children: /*#__PURE__*/_jsx(PopoverRootComponent, {\n props: props\n })\n });\n}\nfunction usePopoverRootStore(handle, initialState) {\n // The store is owned by this Root instance and created exactly once. It is not tied to the handle:\n // the handle attaches to it, so swapping the handle re-attaches rather than recreating state.\n // Default values are only initial values; controlled values and root state are synced after creation.\n const store = usePopupRootStore((floatingId, nested) => new PopoverStore(initialState, floatingId, nested));\n\n // Popover-specific: dispose the patient-click timeout held in the store's context on unmount.\n React.useEffect(() => store.context.stickIfOpenTimeout.disposeEffect(), [store]);\n return store;\n}\nfunction PopoverInteractions({\n store,\n modal\n}) {\n const floatingRootContext = store.useState('floatingRootContext');\n const dismiss = useDismiss(floatingRootContext, {\n outsidePressEvent: {\n // Ensure `aria-hidden` on outside elements is removed immediately\n // on outside press when trapping focus.\n mouse: modal === 'trap-focus' ? 'sloppy' : 'intentional',\n touch: 'sloppy'\n }\n });\n\n // `useDismiss` is not given an `enabled` option, so it always returns both prop bags. Restore\n // the `EMPTY_OBJECT` fallbacks if that ever changes: the store fields are non-optional.\n // `dismiss.trigger` is always the same object as `dismiss.reference`.\n const triggerProps = dismiss.reference;\n // PopoverPopup already spreads `FOCUSABLE_POPUP_PROPS` directly, so the popup\n // props only need to carry the dismiss handlers.\n const popupProps = dismiss.floating;\n usePopupInteractionProps(store, {\n activeTriggerProps: triggerProps,\n inactiveTriggerProps: triggerProps,\n popupProps\n });\n return null;\n}","export const OPEN_DELAY = 300;","'use client';\n\nimport * as ReactDOM from 'react-dom';\nimport { getTabbableNearElement, isOutsideEvent } from \"../../floating-ui-react/utils.mjs\";\nimport { createChangeEventDetails } from \"../../internals/createBaseUIEventDetails.mjs\";\nimport { REASONS } from \"../../internals/reasons.mjs\";\n\n/**\n * Minimal store interface required by the focus guard hook.\n * Both PopoverStore and MenuStore satisfy this interface.\n */\n\n/**\n * Provides focus guard handlers for popup triggers (Popover, Menu).\n *\n * When the popup is open, invisible focus guard elements are placed before and after\n * the trigger. These handlers close the popup and move focus to the appropriate\n * tabbable element when the guards receive focus (i.e. when the user tabs out).\n */\nexport function useTriggerFocusGuards(store, triggerElementRef) {\n function closeAndFocus(event, direction, positionerElement) {\n const guard = event.currentTarget;\n ReactDOM.flushSync(() => {\n store.setOpen(false, createChangeEventDetails(REASONS.focusOut, event.nativeEvent, guard));\n });\n\n // The close callback may change the tab order. Resolve it after the flush, using\n // the trigger as the anchor if the guard unmounted, even when its tabIndex is -1.\n getTabbableNearElement(guard.isConnected ? guard : triggerElementRef.current, direction, positionerElement)?.focus();\n }\n function handlePreFocusGuardFocus(event) {\n closeAndFocus(event, -1, store.select('positionerElement'));\n }\n function handleFocusTargetFocus(event) {\n const positionerElement = store.select('positionerElement');\n if (positionerElement && isOutsideEvent(event, positionerElement)) {\n store.context.beforeContentFocusGuardRef.current?.focus();\n } else {\n closeAndFocus(event, 1, positionerElement);\n }\n }\n return {\n handlePreFocusGuardFocus,\n handleFocusTargetFocus\n };\n}","'use client';\n\nimport _formatErrorMessage from \"@base-ui/utils/formatErrorMessage\";\nimport * as React from 'react';\nimport { useStableCallback } from '@base-ui/utils/useStableCallback';\nimport { fastComponentRef } from '@base-ui/utils/fastHooks';\nimport { usePopoverRootContext } from \"../root/PopoverRootContext.mjs\";\nimport { useButton } from \"../../internals/use-button/useButton.mjs\";\nimport { triggerOpenStateMapping, pressableTriggerOpenStateMapping } from \"../../utils/popupStateMapping.mjs\";\nimport { useRenderElement } from \"../../internals/useRenderElement.mjs\";\nimport { CLICK_TRIGGER_IDENTIFIER } from \"../../internals/constants.mjs\";\nimport { safePolygon, useClick, useHoverReferenceInteraction } from \"../../floating-ui-react/index.mjs\";\nimport { OPEN_DELAY } from \"../utils/constants.mjs\";\nimport { useBaseUiId } from \"../../internals/useBaseUiId.mjs\";\nimport { FocusGuard } from \"../../utils/FocusGuard.mjs\";\nimport { usePopupHandleStore, useTriggerDataForwarding } from \"../../utils/popups/index.mjs\";\nimport { useTriggerFocusGuards } from \"../../utils/popups/useTriggerFocusGuards.mjs\";\nimport { useOpenMethodTriggerProps } from \"../../utils/useOpenInteractionType.mjs\";\n\n/**\n * A button that opens the popover.\n * Renders a `<button>` element.\n *\n * Documentation: [Base UI Popover](https://base-ui.com/react/components/popover)\n */\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nexport const PopoverTrigger = fastComponentRef(function PopoverTrigger(componentProps, forwardedRef) {\n const {\n render,\n className,\n style,\n disabled = false,\n nativeButton = true,\n handle,\n payload,\n openOnHover = false,\n delay = OPEN_DELAY,\n closeDelay = 0,\n id: idProp,\n ...elementProps\n } = componentProps;\n const rootStore = usePopoverRootContext(true);\n const handleStore = usePopupHandleStore(handle);\n const store = handleStore ?? rootStore;\n if (!store) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? 'Base UI: <Popover.Trigger> must be either used within a <Popover.Root> component or provided with a handle.' : _formatErrorMessage(74));\n }\n const thisTriggerId = useBaseUiId(idProp);\n const isTriggerActive = store.useState('isTriggerActive', thisTriggerId);\n const floatingContext = store.useState('floatingRootContext');\n const isOpenedByThisTrigger = store.useState('isOpenedByTrigger', thisTriggerId);\n const popupId = store.useState('triggerPopupId', thisTriggerId);\n const triggerElementRef = React.useRef(null);\n const {\n registerTrigger,\n isMountedByThisTrigger\n } = useTriggerDataForwarding(thisTriggerId, triggerElementRef, store, {\n payload,\n disabled,\n openOnHover,\n closeDelay\n });\n const isPressOpenedByThisTrigger = store.useState('isPressOpenedByTrigger', thisTriggerId);\n const isTouchPressOpen = store.useState('isTouchPressOpen', openOnHover);\n const hasFocusGuards = store.useState('hasTriggerFocusGuards', thisTriggerId);\n const hoverProps = useHoverReferenceInteraction(floatingContext, {\n enabled: !disabled && openOnHover && !isTouchPressOpen,\n mouseOnly: true,\n move: false,\n handleClose: safePolygon(),\n restMs: delay,\n delay: {\n close: closeDelay\n },\n triggerElementRef,\n isActiveTrigger: isTriggerActive,\n isClosing: () => store.select('transitionStatus') === 'ending'\n });\n const getStickIfOpen = useStableCallback(() => store.context.stickIfOpen);\n const click = useClick(floatingContext, {\n stickIfOpen: getStickIfOpen\n });\n const interactionTypeProps = useOpenMethodTriggerProps(() => store.select('open'), interactionType => {\n store.set('openMethod', interactionType);\n });\n const rootTriggerProps = store.useState('triggerProps', isMountedByThisTrigger);\n const {\n getButtonProps,\n buttonRef\n } = useButton({\n disabled,\n native: nativeButton\n });\n const stateAttributesMapping = {\n open(value) {\n if (isPressOpenedByThisTrigger) {\n return pressableTriggerOpenStateMapping.open(value);\n }\n return triggerOpenStateMapping.open(value);\n }\n };\n const {\n handlePreFocusGuardFocus,\n handleFocusTargetFocus\n } = useTriggerFocusGuards(store, triggerElementRef);\n const state = {\n disabled,\n open: isOpenedByThisTrigger\n };\n const element = useRenderElement('button', componentProps, {\n state,\n ref: [buttonRef, forwardedRef, registerTrigger, triggerElementRef],\n props: [click.reference, hoverProps, rootTriggerProps, interactionTypeProps, {\n [CLICK_TRIGGER_IDENTIFIER]: '',\n id: thisTriggerId,\n 'aria-haspopup': 'dialog',\n 'aria-expanded': isOpenedByThisTrigger,\n 'aria-controls': popupId\n }, elementProps, getButtonProps],\n stateAttributesMapping\n });\n\n // A fragment with key is required to ensure that the `element` is mounted to the same DOM node\n // regardless of whether the focus guards are rendered or not.\n const keyedElement = /*#__PURE__*/_jsx(React.Fragment, {\n children: element\n }, thisTriggerId);\n if (hasFocusGuards) {\n return /*#__PURE__*/_jsxs(React.Fragment, {\n children: [/*#__PURE__*/_jsx(FocusGuard, {\n ref: store.context.beforeTriggerFocusGuardRef,\n onFocus: handlePreFocusGuardFocus\n }), keyedElement, /*#__PURE__*/_jsx(FocusGuard, {\n ref: store.context.triggerFocusTargetRef,\n onFocus: handleFocusTargetFocus\n })]\n });\n }\n return keyedElement;\n});\nif (process.env.NODE_ENV !== \"production\") PopoverTrigger.displayName = \"PopoverTrigger\";","'use client';\n\nimport _formatErrorMessage from \"@base-ui/utils/formatErrorMessage\";\nimport * as React from 'react';\nexport const PopoverPortalContext = /*#__PURE__*/React.createContext(undefined);\nif (process.env.NODE_ENV !== \"production\") PopoverPortalContext.displayName = \"PopoverPortalContext\";\nexport function usePopoverPortalContext() {\n const value = React.useContext(PopoverPortalContext);\n if (value === undefined) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? 'Base UI: <Popover.Portal> is missing.' : _formatErrorMessage(45));\n }\n return value;\n}","'use client';\n\nimport * as React from 'react';\nimport { FloatingPortal } from \"../../floating-ui-react/index.mjs\";\nimport { usePopoverRootContext } from \"../root/PopoverRootContext.mjs\";\nimport { PopoverPortalContext } from \"./PopoverPortalContext.mjs\";\n\n/**\n * A portal element that moves the popup to a different part of the DOM.\n * By default, the portal element is appended to `<body>`.\n * Renders a `<div>` element.\n *\n * Documentation: [Base UI Popover](https://base-ui.com/react/components/popover)\n */\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport const PopoverPortal = /*#__PURE__*/React.forwardRef(function PopoverPortal(props, forwardedRef) {\n const {\n keepMounted = false,\n ...portalProps\n } = props;\n const store = usePopoverRootContext();\n const mounted = store.useState('mounted');\n const shouldRender = mounted || keepMounted;\n if (!shouldRender) {\n return null;\n }\n return /*#__PURE__*/_jsx(PopoverPortalContext.Provider, {\n value: keepMounted,\n children: /*#__PURE__*/_jsx(FloatingPortal, {\n ref: forwardedRef,\n ...portalProps\n })\n });\n});\nif (process.env.NODE_ENV !== \"production\") PopoverPortal.displayName = \"PopoverPortal\";","'use client';\n\nimport _formatErrorMessage from \"@base-ui/utils/formatErrorMessage\";\nimport * as React from 'react';\nexport const PopoverPositionerContext = /*#__PURE__*/React.createContext(undefined);\nif (process.env.NODE_ENV !== \"production\") PopoverPositionerContext.displayName = \"PopoverPositionerContext\";\nexport function usePopoverPositionerContext() {\n const context = React.useContext(PopoverPositionerContext);\n if (!context) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? 'Base UI: PopoverPositionerContext is missing. PopoverPositioner parts must be placed within <Popover.Positioner>.' : _formatErrorMessage(46));\n }\n return context;\n}","'use client';\n\nimport * as React from 'react';\nimport { useIsoLayoutEffect } from '@base-ui/utils/useIsoLayoutEffect';\nimport { useAnimationsFinished } from \"./useAnimationsFinished.mjs\";\n\n/**\n * Popover and Menu declare different `instantType` unions, so only the members\n * this hook touches are typed.\n */\n\n/**\n * Lets the positioner animate while a popup moves between detached triggers.\n *\n * The positioner is normally marked instant, so a hand-off from one trigger to\n * another would teleport. Clearing `instantType` for the duration of the move\n * lets it transition, and `trigger-change` is restored once the move finishes.\n *\n * The restoration is deferred until the move's animations finish, so it can\n * outlive the move that scheduled it. The trigger element is retained through\n * the exit transition, so a close alone does not change `domReference` and\n * nothing would otherwise re-run this effect to abort it — a popup that closes\n * and reopens on the same trigger mid-exit would inherit the stale callback and\n * lose its own transition. Closing therefore cancels the pending restoration\n * explicitly.\n *\n * Applying `trigger-change` to a closed popup is prevented separately, by the\n * stores' `instantType` selector, since a controlled `open={false}` commit\n * reaches the popup without passing through `setOpen`.\n */\nexport function useTriggerSwitchTransition(parameters) {\n const {\n store,\n domReference,\n positionerElement,\n open\n } = parameters;\n const previousTriggerRef = React.useRef(null);\n const pendingSwitchRef = React.useRef(null);\n const runOnceAnimationsFinish = useAnimationsFinished(positionerElement);\n useIsoLayoutEffect(() => {\n if (open) {\n return;\n }\n pendingSwitchRef.current?.abort();\n pendingSwitchRef.current = null;\n\n // `trigger-change` belongs to the open cycle that scheduled it. The selector\n // stops a closed popup from rendering it, but the value has to be dropped\n // too: a controlled reopen changes only `openProp`, so neither this effect\n // nor `setOpen` would run again to replace it, and the selector would start\n // exposing the old value against the new cycle.\n if (store.state.instantType === 'trigger-change') {\n store.set('instantType', undefined);\n }\n }, [open, store]);\n useIsoLayoutEffect(() => {\n const currentTrigger = domReference;\n const previousTrigger = previousTriggerRef.current;\n if (currentTrigger) {\n previousTriggerRef.current = currentTrigger;\n }\n if (!previousTrigger || !currentTrigger || currentTrigger === previousTrigger) {\n return undefined;\n }\n\n // The trigger element can also change while the popup is closing, when a\n // trigger is replaced by a new element. There is no move to animate, and\n // the cancellation effect above has already run for this commit, so a\n // restoration scheduled here would survive into whatever opens next.\n if (!store.select('open')) {\n return undefined;\n }\n store.set('instantType', undefined);\n const abortController = new AbortController();\n pendingSwitchRef.current = abortController;\n runOnceAnimationsFinish(() => {\n // The abort above covers a committed close, but the animations can finish\n // in the same frame the close commits. Writing `trigger-change` then would\n // leave stale state behind for the next open to inherit.\n if (store.select('open')) {\n store.set('instantType', 'trigger-change');\n }\n }, abortController.signal);\n return () => {\n abortController.abort();\n };\n }, [domReference, runOnceAnimationsFinish, store]);\n}","'use client';\n\nimport * as React from 'react';\nimport { ownerDocument } from '@base-ui/utils/owner';\nimport { useScrollLock } from '@base-ui/utils/useScrollLock';\nimport { useIsoLayoutEffect } from '@base-ui/utils/useIsoLayoutEffect';\n\n// Touch-opened popups normally avoid scroll locking so users can still swipe outside to dismiss.\n// This hook re-enables scroll lock only when the popup is effectively full-width.\n// Treat popups with up to 20px of total horizontal gutter as full-width so common ~10px side\n// padding still locks scroll, since that leaves too little outside space for a reliable swipe.\nconst VIEWPORT_WIDTH_TOLERANCE_PX = 20;\n\n/**\n * Manages scroll lock for anchored popups. For non-touch opens, scroll lock is applied when\n * enabled. For touch opens, scroll lock is applied only when the positioner width is effectively\n * viewport-sized.\n */\nexport function useAnchoredPopupScrollLock(enabled, touchOpen, positionerElement, referenceElement) {\n const [touchOpenShouldLockScroll, setTouchOpenShouldLockScroll] = React.useState(false);\n useIsoLayoutEffect(() => {\n if (!enabled || !touchOpen || positionerElement == null) {\n setTouchOpenShouldLockScroll(false);\n return;\n }\n const viewportWidth = ownerDocument(positionerElement).documentElement.clientWidth;\n const popupWidth = positionerElement.offsetWidth;\n setTouchOpenShouldLockScroll(viewportWidth > 0 && popupWidth > 0 && popupWidth >= viewportWidth - VIEWPORT_WIDTH_TOLERANCE_PX);\n }, [enabled, touchOpen, positionerElement]);\n useScrollLock(enabled && (!touchOpen || touchOpenShouldLockScroll), referenceElement);\n}","'use client';\n\nimport * as React from 'react';\nimport { inertValue } from '@base-ui/utils/inertValue';\nimport { FloatingNode, useFloatingNodeId } from \"../../floating-ui-react/index.mjs\";\nimport { usePopoverRootContext } from \"../root/PopoverRootContext.mjs\";\nimport { PopoverPositionerContext } from \"./PopoverPositionerContext.mjs\";\nimport { useAnchorPositioning } from \"../../internals/useAnchorPositioning.mjs\";\nimport { usePopoverPortalContext } from \"../portal/PopoverPortalContext.mjs\";\nimport { InternalBackdrop } from \"../../utils/InternalBackdrop.mjs\";\nimport { REASONS } from \"../../internals/reasons.mjs\";\nimport { POPUP_COLLISION_AVOIDANCE } from \"../../internals/constants.mjs\";\nimport { useTriggerSwitchTransition } from \"../../internals/useTriggerSwitchTransition.mjs\";\nimport { usePositioner } from \"../../utils/usePositioner.mjs\";\nimport { useAnchoredPopupScrollLock } from \"../../utils/useAnchoredPopupScrollLock.mjs\";\n\n/**\n * Positions the popover against the trigger.\n * Renders a `<div>` element.\n *\n * Documentation: [Base UI Popover](https://base-ui.com/react/components/popover)\n */\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nexport const PopoverPositioner = /*#__PURE__*/React.forwardRef(function PopoverPositioner(componentProps, forwardedRef) {\n const {\n render,\n className,\n style,\n anchor,\n // `useAnchorPositioning` applies the same defaults to the undefined values; the names\n // remain destructured to exclude the props from `elementProps`.\n positionMethod,\n side,\n align,\n sideOffset,\n alignOffset,\n collisionBoundary = 'clipping-ancestors',\n collisionPadding,\n arrowPadding,\n sticky,\n disableAnchorTracking = false,\n collisionAvoidance = POPUP_COLLISION_AVOIDANCE,\n ...elementProps\n } = componentProps;\n const store = usePopoverRootContext();\n const keepMounted = usePopoverPortalContext();\n const nodeId = useFloatingNodeId();\n const floatingRootContext = store.useState('floatingRootContext');\n const mounted = store.useState('mounted');\n const open = store.useState('open');\n const openReason = store.useState('openChangeReason');\n const triggerElement = store.useState('activeTriggerElement');\n const modal = store.useState('modal');\n const openMethod = store.useState('openMethod');\n const positionerElement = store.useState('positionerElement');\n const instantType = store.useState('instantType');\n const transitionStatus = store.useState('transitionStatus');\n const adaptiveOrigin = store.useState('adaptiveOrigin');\n const positioning = useAnchorPositioning({\n anchor,\n floatingRootContext,\n positionMethod,\n mounted,\n side,\n sideOffset,\n align,\n alignOffset,\n arrowPadding,\n collisionBoundary,\n collisionPadding,\n sticky,\n disableAnchorTracking,\n keepMounted,\n nodeId,\n collisionAvoidance,\n adaptiveOrigin\n });\n const domReference = floatingRootContext.useState('domReferenceElement');\n useTriggerSwitchTransition({\n store,\n domReference,\n positionerElement,\n open\n });\n const trueModalNonHover = modal === true && openReason !== REASONS.triggerHover;\n useAnchoredPopupScrollLock(open && trueModalNonHover, openMethod === 'touch', positionerElement, triggerElement);\n const setPositionerElement = store.useStateSetter('positionerElement');\n const state = {\n open,\n side: positioning.side,\n align: positioning.align,\n anchorHidden: positioning.anchorHidden,\n instant: instantType\n };\n const element = usePositioner(componentProps, state, {\n styles: positioning.positionerStyles,\n transitionStatus,\n props: elementProps,\n refs: [forwardedRef, setPositionerElement],\n hidden: !mounted,\n inert: !open\n });\n return /*#__PURE__*/_jsxs(PopoverPositionerContext.Provider, {\n value: positioning,\n children: [mounted && trueModalNonHover && /*#__PURE__*/_jsx(InternalBackdrop, {\n inert: inertValue(!open),\n cutout: triggerElement\n }), /*#__PURE__*/_jsx(FloatingNode, {\n id: nodeId,\n children: element\n })]\n });\n});\nif (process.env.NODE_ENV !== \"production\") PopoverPositioner.displayName = \"PopoverPositioner\";","'use client';\n\nimport * as React from 'react';\nimport { useIsoLayoutEffect } from '@base-ui/utils/useIsoLayoutEffect';\nimport { useStableCallback } from '@base-ui/utils/useStableCallback';\nexport const ClosePartContext = /*#__PURE__*/React.createContext(undefined);\nif (process.env.NODE_ENV !== \"production\") ClosePartContext.displayName = \"ClosePartContext\";\nexport function useClosePartCount() {\n const [closePartCount, setClosePartCount] = React.useState(0);\n const register = useStableCallback(() => {\n setClosePartCount(count => count + 1);\n return () => {\n setClosePartCount(count => Math.max(0, count - 1));\n };\n });\n const context = React.useMemo(() => ({\n register\n }), [register]);\n return {\n context,\n hasClosePart: closePartCount > 0\n };\n}\nexport function useClosePartRegistration() {\n const context = React.useContext(ClosePartContext);\n useIsoLayoutEffect(() => {\n return context?.register();\n }, [context]);\n}","'use client';\n\nimport * as React from 'react';\nimport { isHTMLElement } from '@floating-ui/utils/dom';\nimport { FloatingFocusManager, useHoverFloatingInteraction } from \"../../floating-ui-react/index.mjs\";\nimport { usePopoverRootContext } from \"../root/PopoverRootContext.mjs\";\nimport { usePopoverPositionerContext } from \"../positioner/PopoverPositionerContext.mjs\";\nimport { popupTransitionStateMapping } from \"../../utils/popupStateMapping.mjs\";\nimport { useOpenChangeComplete } from \"../../internals/useOpenChangeComplete.mjs\";\nimport { useRenderElement } from \"../../internals/useRenderElement.mjs\";\nimport { REASONS } from \"../../internals/reasons.mjs\";\nimport { COMPOSITE_KEYS } from \"../../internals/composite/composite.mjs\";\nimport { useToolbarRootContext } from \"../../toolbar/root/ToolbarRootContext.mjs\";\nimport { getDisabledMountTransitionStyles } from \"../../internals/getDisabledMountTransitionStyles.mjs\";\nimport { ClosePartContext, useClosePartCount } from \"../../utils/closePart.mjs\";\nimport { FOCUSABLE_POPUP_PROPS, createDefaultInitialFocus } from \"../../utils/popups/index.mjs\";\n\n/**\n * A container for the popover contents.\n * Renders a `<div>` element.\n *\n * Documentation: [Base UI Popover](https://base-ui.com/react/components/popover)\n */\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport const PopoverPopup = /*#__PURE__*/React.forwardRef(function PopoverPopup(componentProps, forwardedRef) {\n const {\n render,\n className,\n style,\n initialFocus,\n finalFocus,\n ...elementProps\n } = componentProps;\n const store = usePopoverRootContext();\n const positioner = usePopoverPositionerContext();\n const insideToolbar = useToolbarRootContext(true) != null;\n const {\n context: closePartContext,\n hasClosePart\n } = useClosePartCount();\n const open = store.useState('open');\n const openMethod = store.useState('openMethod');\n const instantType = store.useState('instantType');\n const transitionStatus = store.useState('transitionStatus');\n const popupProps = store.useState('popupProps');\n const titleId = store.useState('titleElementId');\n const descriptionId = store.useState('descriptionElementId');\n const modal = store.useState('modal');\n const mounted = store.useState('mounted');\n const openReason = store.useState('openChangeReason');\n const activeTriggerElement = store.useState('activeTriggerElement');\n const floatingContext = store.useState('floatingRootContext');\n const floatingId = floatingContext.useState('floatingId');\n const disabled = store.useState('disabled');\n const openOnHover = store.useState('openOnHover');\n const closeDelay = store.useState('closeDelay');\n useOpenChangeComplete({\n open,\n ref: store.context.popupRef,\n onComplete() {\n if (open) {\n store.context.onOpenChangeComplete?.(true);\n }\n }\n });\n useHoverFloatingInteraction(floatingContext, {\n enabled: openOnHover && !disabled,\n closeDelay\n });\n const resolvedInitialFocus = initialFocus === undefined ? createDefaultInitialFocus(store.context.popupRef) : initialFocus;\n const focusManagerModal = modal !== false && hasClosePart;\n store.useSyncedValue('focusManagerModal', focusManagerModal);\n const setPopupElement = store.useStateSetter('popupElement');\n const state = {\n open,\n side: positioner.side,\n align: positioner.align,\n instant: instantType,\n transitionStatus\n };\n const element = useRenderElement('div', componentProps, {\n state,\n ref: [forwardedRef, store.context.popupRef, setPopupElement],\n props: [popupProps, {\n id: floatingId,\n role: 'dialog',\n ...FOCUSABLE_POPUP_PROPS,\n 'aria-labelledby': titleId,\n 'aria-describedby': descriptionId,\n onKeyDown(event) {\n if (insideToolbar && COMPOSITE_KEYS.has(event.key)) {\n event.stopPropagation();\n }\n }\n }, getDisabledMountTransitionStyles(transitionStatus), elementProps],\n stateAttributesMapping: popupTransitionStateMapping\n });\n return /*#__PURE__*/_jsx(FloatingFocusManager, {\n context: floatingContext,\n openInteractionType: openMethod,\n modal: focusManagerModal,\n disabled: !mounted || openReason === REASONS.triggerHover,\n initialFocus: resolvedInitialFocus,\n returnFocus: finalFocus,\n restoreFocus: \"popup\",\n getInsideElements: () => [store.context.beforeTriggerFocusGuardRef.current],\n previousFocusableElement: isHTMLElement(activeTriggerElement) ? activeTriggerElement : undefined,\n nextFocusableElement: store.context.triggerFocusTargetRef,\n beforeContentFocusGuardRef: store.context.beforeContentFocusGuardRef,\n children: /*#__PURE__*/_jsx(ClosePartContext.Provider, {\n value: closePartContext,\n children: element\n })\n });\n});\nif (process.env.NODE_ENV !== \"production\") PopoverPopup.displayName = \"PopoverPopup\";","'use client';\n\nimport * as React from 'react';\nimport { usePopoverPositionerContext } from \"../positioner/PopoverPositionerContext.mjs\";\nimport { usePopoverRootContext } from \"../root/PopoverRootContext.mjs\";\nimport { popupStateMapping } from \"../../utils/popupStateMapping.mjs\";\nimport { useRenderElement } from \"../../internals/useRenderElement.mjs\";\n\n/**\n * Displays an element positioned against the popover anchor.\n * Renders a `<div>` element.\n *\n * Documentation: [Base UI Popover](https://base-ui.com/react/components/popover)\n */\nexport const PopoverArrow = /*#__PURE__*/React.forwardRef(function PopoverArrow(componentProps, forwardedRef) {\n const {\n render,\n className,\n style,\n ...elementProps\n } = componentProps;\n const store = usePopoverRootContext();\n const open = store.useState('open');\n const {\n arrowRef,\n side,\n align,\n arrowUncentered,\n arrowStyles\n } = usePopoverPositionerContext();\n const state = {\n open,\n side,\n align,\n uncentered: arrowUncentered\n };\n const element = useRenderElement('div', componentProps, {\n state,\n ref: [forwardedRef, arrowRef],\n props: [{\n style: arrowStyles,\n 'aria-hidden': true\n }, elementProps],\n stateAttributesMapping: popupStateMapping\n });\n return element;\n});\nif (process.env.NODE_ENV !== \"production\") PopoverArrow.displayName = \"PopoverArrow\";","'use client';\n\nimport * as React from 'react';\nimport { usePopoverRootContext } from \"../root/PopoverRootContext.mjs\";\nimport { useRenderElement } from \"../../internals/useRenderElement.mjs\";\nimport { useBaseUiId } from \"../../internals/useBaseUiId.mjs\";\n\n/**\n * A heading that labels the popover.\n * Renders an `<h2>` element.\n *\n * Documentation: [Base UI Popover](https://base-ui.com/react/components/popover)\n */\nexport const PopoverTitle = /*#__PURE__*/React.forwardRef(function PopoverTitle(componentProps, forwardedRef) {\n const {\n render,\n className,\n style,\n ...elementProps\n } = componentProps;\n const store = usePopoverRootContext();\n const id = useBaseUiId(elementProps.id);\n store.useSyncedValueWithCleanup('titleElementId', id);\n const element = useRenderElement('h2', componentProps, {\n ref: forwardedRef,\n props: [{\n id\n }, elementProps]\n });\n return element;\n});\nif (process.env.NODE_ENV !== \"production\") PopoverTitle.displayName = \"PopoverTitle\";","'use client';\n\nimport * as React from 'react';\nimport { usePopoverRootContext } from \"../root/PopoverRootContext.mjs\";\nimport { useBaseUiId } from \"../../internals/useBaseUiId.mjs\";\nimport { useRenderElement } from \"../../internals/useRenderElement.mjs\";\n\n/**\n * A paragraph with additional information about the popover.\n * Renders a `<p>` element.\n *\n * Documentation: [Base UI Popover](https://base-ui.com/react/components/popover)\n */\nexport const PopoverDescription = /*#__PURE__*/React.forwardRef(function PopoverDescription(componentProps, forwardedRef) {\n const {\n render,\n className,\n style,\n ...elementProps\n } = componentProps;\n const store = usePopoverRootContext();\n const id = useBaseUiId(elementProps.id);\n store.useSyncedValueWithCleanup('descriptionElementId', id);\n const element = useRenderElement('p', componentProps, {\n ref: forwardedRef,\n props: [{\n id\n }, elementProps]\n });\n return element;\n});\nif (process.env.NODE_ENV !== \"production\") PopoverDescription.displayName = \"PopoverDescription\";","'use client';\n\nimport * as React from 'react';\nimport { usePopoverRootContext } from \"../root/PopoverRootContext.mjs\";\nimport { useRenderElement } from \"../../internals/useRenderElement.mjs\";\nimport { useButton } from \"../../internals/use-button/index.mjs\";\nimport { createChangeEventDetails } from \"../../internals/createBaseUIEventDetails.mjs\";\nimport { REASONS } from \"../../internals/reasons.mjs\";\nimport { useClosePartRegistration } from \"../../utils/closePart.mjs\";\n\n/**\n * A button that closes the popover.\n * Renders a `<button>` element.\n *\n * Documentation: [Base UI Popover](https://base-ui.com/react/components/popover)\n */\nexport const PopoverClose = /*#__PURE__*/React.forwardRef(function PopoverClose(componentProps, forwardedRef) {\n const {\n render,\n className,\n style,\n disabled = false,\n nativeButton = true,\n ...elementProps\n } = componentProps;\n const {\n buttonRef,\n getButtonProps\n } = useButton({\n disabled,\n focusableWhenDisabled: false,\n native: nativeButton\n });\n const store = usePopoverRootContext();\n useClosePartRegistration();\n const element = useRenderElement('button', componentProps, {\n ref: [forwardedRef, buttonRef],\n props: [{\n onClick(event) {\n store.setOpen(false, createChangeEventDetails(REASONS.closePress, event.nativeEvent));\n }\n }, elementProps, getButtonProps]\n });\n return element;\n});\nif (process.env.NODE_ENV !== \"production\") PopoverClose.displayName = \"PopoverClose\";","import * as React from 'react'\nimport { cva, type VariantProps } from 'class-variance-authority'\nimport { Popover as PopoverPrimitive } from '@base-ui/react/popover'\n\nimport { cn } from '@/lib/utils'\n\nimport { ControlButton } from '../../components/atoms/Button'\nimport IconProvider from '../../components/atoms/IconProvider'\n\nconst popoverContentVariants = cva(\n 'focus-ring flex max-h-[min(25rem,var(--available-height))] flex-col overflow-hidden rounded-container border border-border-subtle bg-background-surface-overlay text-text-primary shadow-elevation-2 outline-none',\n {\n variants: {\n size: {\n auto: 'w-auto',\n sm: 'w-60',\n md: 'w-80',\n lg: 'w-120',\n },\n },\n defaultVariants: {\n size: 'md',\n },\n },\n)\n\nfunction PopoverRoot({ modal = false, ...props }: PopoverPrimitive.Root.Props) {\n return <PopoverPrimitive.Root data-slot=\"popover\" modal={modal} {...props} />\n}\n\nfunction PopoverTrigger(props: PopoverPrimitive.Trigger.Props) {\n return <PopoverPrimitive.Trigger data-slot=\"popover-trigger\" {...props} />\n}\n\nfunction PopoverArrow({ className, ...props }: PopoverPrimitive.Arrow.Props) {\n return (\n <PopoverPrimitive.Arrow\n data-slot=\"popover-arrow\"\n className={cn(\n 'size-fit text-background-surface-overlay',\n // Base UI only sets the cross-axis offset; the main-axis offset below pins the arrow\n // to the surface's facing edge (with a 1px overlap into the border) instead of leaving\n // it in normal flow, where it renders outside the visible card.\n 'data-[side=bottom]:top-[-0.1875rem] data-[side=top]:bottom-[-0.1875rem] data-[side=top]:rotate-180',\n 'data-[side=left]:right-[-0.3125rem] data-[side=left]:rotate-90 data-[side=right]:left-[-0.3125rem] data-[side=right]:-rotate-90',\n className,\n )}\n {...props}\n >\n <svg aria-hidden=\"true\" width=\"8\" height=\"4\" viewBox=\"0 0 8 4\" fill=\"none\">\n <path d=\"M0 4h8l-4-4L0 4Z\" fill=\"currentColor\" />\n <path d=\"M0 4 4 0 8 4\" className=\"stroke-border-subtle\" />\n </svg>\n </PopoverPrimitive.Arrow>\n )\n}\n\ntype PopoverContentProps = PopoverPrimitive.Popup.Props &\n VariantProps<typeof popoverContentVariants> &\n Pick<\n PopoverPrimitive.Positioner.Props,\n 'alignOffset' | 'anchor' | 'arrowPadding' | 'collisionAvoidance' | 'sideOffset'\n > & {\n alignment?: PopoverPrimitive.Positioner.Props['align']\n arrow?: boolean\n container?: PopoverPrimitive.Portal.Props['container']\n placement?: PopoverPrimitive.Positioner.Props['side']\n positionerId?: string\n positionerClassName?: string\n }\n\nfunction PopoverContent({\n alignment = 'start',\n alignOffset = 0,\n anchor,\n arrow = false,\n arrowPadding = 12,\n children,\n className,\n collisionAvoidance,\n container,\n placement = 'bottom',\n positionerId,\n positionerClassName,\n sideOffset = 4,\n size = 'md',\n ...props\n}: PopoverContentProps) {\n return (\n <PopoverPrimitive.Portal container={container}>\n <PopoverPrimitive.Positioner\n id={positionerId}\n data-slot=\"popover-positioner\"\n align={alignment}\n alignOffset={alignOffset}\n anchor={anchor}\n arrowPadding={arrowPadding}\n collisionAvoidance={collisionAvoidance}\n side={placement}\n sideOffset={sideOffset}\n className={cn('isolate z-50', positionerClassName)}\n >\n <PopoverPrimitive.Popup\n data-slot=\"popover-content\"\n className={cn(popoverContentVariants({ size }), className)}\n {...props}\n >\n {children}\n </PopoverPrimitive.Popup>\n {arrow ? <PopoverArrow /> : null}\n </PopoverPrimitive.Positioner>\n </PopoverPrimitive.Portal>\n )\n}\n\nfunction PopoverHeader({ className, ...props }: React.ComponentProps<'div'>) {\n return (\n <div\n data-slot=\"popover-header\"\n className={cn(\n 'flex shrink-0 items-center gap-space-8 border-b border-border-subtle py-space-8 pr-space-8 pl-space-12',\n className,\n )}\n {...props}\n />\n )\n}\n\nfunction PopoverTitle({ className, ...props }: PopoverPrimitive.Title.Props) {\n return (\n <PopoverPrimitive.Title\n data-slot=\"popover-title\"\n className={cn('min-w-0 flex-1 truncate text-label-md text-text-primary', className)}\n {...props}\n />\n )\n}\n\nfunction PopoverClose({\n children,\n className,\n 'aria-label': ariaLabel = 'Close',\n ...props\n}: PopoverPrimitive.Close.Props) {\n return (\n <PopoverPrimitive.Close\n data-slot=\"popover-close\"\n render={\n <ControlButton\n type=\"icon\"\n variant=\"ghost\"\n size=\"icon-md\"\n className={cn('shrink-0 text-button-ghost-icon-rest', className)}\n />\n }\n aria-label={ariaLabel}\n {...props}\n >\n {children ?? <IconProvider icon=\"xmark\" className=\"size-4\" />}\n </PopoverPrimitive.Close>\n )\n}\n\nfunction PopoverBody({ className, ...props }: React.ComponentProps<'div'>) {\n return <div data-slot=\"popover-body\" className={cn('min-h-0 overflow-auto p-space-12', className)} {...props} />\n}\n\nfunction PopoverDescription({ className, ...props }: PopoverPrimitive.Description.Props) {\n return (\n <PopoverPrimitive.Description\n data-slot=\"popover-description\"\n className={cn('text-body-sm text-text-secondary', className)}\n {...props}\n />\n )\n}\n\nfunction PopoverFooter({ className, ...props }: React.ComponentProps<'div'>) {\n return (\n <div\n data-slot=\"popover-footer\"\n className={cn(\n 'flex shrink-0 items-center justify-end gap-space-8 border-t border-border-subtle px-space-12 py-space-8',\n className,\n )}\n {...props}\n />\n )\n}\n\ntype PopoverOrigin = {\n horizontal: 'center' | 'left' | 'right' | number\n vertical: 'bottom' | 'center' | 'top' | number\n}\n\ntype PopoverCloseReason = 'backdropClick' | 'escapeKeyDown'\n\ntype PopoverActions = {\n updatePosition: () => void\n}\n\ntype LegacyPopoverSlotProps = {\n paper?: {\n className?: string\n ref?: React.Ref<HTMLDivElement>\n sx?: unknown\n [key: string]: unknown\n }\n transition?: {\n onEntered?: () => void\n [key: string]: unknown\n }\n [key: string]: unknown\n}\n\ntype PopoverWrapperBaseProps = Pick<\n PopoverPrimitive.Root.Props,\n 'defaultOpen' | 'modal' | 'onOpenChange' | 'onOpenChangeComplete' | 'open'\n> &\n Omit<\n PopoverContentProps,\n 'alignment' | 'anchor' | 'children' | 'className' | 'placement' | 'positionerClassName' | 'positionerId' | 'ref'\n > & {\n action?: React.Ref<PopoverActions>\n align?: PopoverContentProps['alignment']\n anchorOrigin?: PopoverOrigin\n children: React.ReactNode\n className?: string\n classes?: { paper?: string; root?: string; [key: string]: string | undefined }\n /** @deprecated Base UI handles unmounting after transitions. */\n closeAfterTransition?: unknown\n contentClassName?: string\n /** Controls Base UI focus trapping in external-anchor mode. */\n disableEnforceFocus?: boolean\n id?: string\n onClose?: (event: Event, reason: PopoverCloseReason) => void\n side?: PopoverContentProps['placement']\n slotProps?: LegacyPopoverSlotProps\n /** @deprecated MUI Emotion styles are accepted but ignored. Use token-based classes. */\n sx?: unknown\n transformOrigin?: PopoverOrigin\n }\n\ntype TriggerPopoverProps = PopoverWrapperBaseProps & {\n anchorEl?: never\n trigger: React.ReactElement\n triggerProps?: Omit<PopoverPrimitive.Trigger.Props, 'children' | 'render'>\n}\n\ntype AnchoredPopoverProps = PopoverWrapperBaseProps & {\n anchorEl: Element | null | undefined | (() => Element | null)\n trigger?: never\n triggerProps?: never\n}\n\ntype PopoverWrapperProps = TriggerPopoverProps | AnchoredPopoverProps\n\nconst defaultAnchorOrigin: PopoverOrigin = { horizontal: 'left', vertical: 'top' }\nconst defaultTransformOrigin: PopoverOrigin = { horizontal: 'left', vertical: 'top' }\n\nfunction resolveOriginPlacement(\n anchorOrigin: PopoverOrigin,\n transformOrigin: PopoverOrigin,\n): {\n align: NonNullable<PopoverContentProps['alignment']>\n side: NonNullable<PopoverContentProps['placement']>\n} {\n const anchorVertical = anchorOrigin.vertical\n const anchorHorizontal = anchorOrigin.horizontal\n const transformVertical = transformOrigin.vertical\n const transformHorizontal = transformOrigin.horizontal\n\n let side: NonNullable<PopoverContentProps['placement']> = 'bottom'\n\n if (anchorVertical === 'bottom' && transformVertical === 'top') {\n side = 'bottom'\n } else if (anchorVertical === 'top' && transformVertical === 'bottom') {\n side = 'top'\n } else if (anchorHorizontal === 'right' && transformHorizontal === 'left') {\n side = 'right'\n } else if (anchorHorizontal === 'left' && transformHorizontal === 'right') {\n side = 'left'\n }\n\n const alignmentOrigin = side === 'top' || side === 'bottom' ? anchorHorizontal : anchorVertical\n const align =\n alignmentOrigin === 'left' || alignmentOrigin === 'top'\n ? 'start'\n : alignmentOrigin === 'right' || alignmentOrigin === 'bottom'\n ? 'end'\n : 'center'\n\n return { align, side }\n}\n\nfunction resolveAnchorElement(anchorEl: AnchoredPopoverProps['anchorEl']): Element | null {\n return typeof anchorEl === 'function' ? anchorEl() : anchorEl ?? null\n}\n\n/**\n * Convenience API for the common popover composition.\n * Use the compound parts directly when the root, trigger, or content need custom composition.\n */\nfunction Popover({\n action,\n align,\n anchorEl,\n anchorOrigin = defaultAnchorOrigin,\n className,\n classes,\n closeAfterTransition: _closeAfterTransition,\n children,\n contentClassName,\n defaultOpen,\n disableEnforceFocus = false,\n id,\n modal,\n onClose,\n onOpenChange,\n onOpenChangeComplete,\n open,\n side,\n sideOffset,\n slotProps,\n sx: _sx,\n transformOrigin = defaultTransformOrigin,\n trigger,\n triggerProps,\n ...contentProps\n}: PopoverWrapperProps) {\n const isExternallyAnchored = !trigger\n const { align: originAlign, side: originSide } = resolveOriginPlacement(anchorOrigin, transformOrigin)\n const resolvedModal = modal ?? (isExternallyAnchored && !disableEnforceFocus ? 'trap-focus' : false)\n\n React.useImperativeHandle(\n action,\n () => ({\n // Base UI automatically tracks changes to the anchor and popup dimensions.\n updatePosition: () => undefined,\n }),\n [],\n )\n\n return (\n <PopoverRoot\n defaultOpen={defaultOpen}\n modal={resolvedModal}\n onOpenChange={(nextOpen, details) => {\n onOpenChange?.(nextOpen, details)\n if (!nextOpen) {\n onClose?.(details.event, details.reason === 'escape-key' ? 'escapeKeyDown' : 'backdropClick')\n }\n }}\n onOpenChangeComplete={(nextOpen) => {\n onOpenChangeComplete?.(nextOpen)\n if (nextOpen) {\n slotProps?.transition?.onEntered?.()\n }\n }}\n open={open}\n >\n {trigger ? <PopoverTrigger {...triggerProps} render={trigger} /> : null}\n <PopoverContent\n {...contentProps}\n ref={slotProps?.paper?.ref}\n alignment={align ?? originAlign}\n anchor={anchorEl}\n className={cn(contentClassName, classes?.paper, slotProps?.paper?.className)}\n finalFocus={\n isExternallyAnchored\n ? () => resolveAnchorElement(anchorEl as AnchoredPopoverProps['anchorEl']) as HTMLElement | null\n : contentProps.finalFocus\n }\n placement={side ?? originSide}\n positionerClassName={cn(className, classes?.root)}\n positionerId={id}\n sideOffset={sideOffset ?? (isExternallyAnchored ? 0 : undefined)}\n size={contentProps.size ?? (isExternallyAnchored ? 'auto' : undefined)}\n >\n {children}\n {resolvedModal === 'trap-focus' ? (\n <PopoverPrimitive.Close className=\"sr-only\">Close popover</PopoverPrimitive.Close>\n ) : null}\n </PopoverContent>\n </PopoverRoot>\n )\n}\n\nexport {\n Popover,\n PopoverArrow,\n PopoverBody,\n PopoverClose,\n PopoverContent,\n PopoverDescription,\n PopoverFooter,\n PopoverHeader,\n PopoverRoot,\n PopoverTitle,\n PopoverTrigger,\n}\nexport type {\n AnchoredPopoverProps,\n PopoverActions,\n PopoverCloseReason,\n PopoverContentProps,\n PopoverOrigin,\n PopoverWrapperProps,\n TriggerPopoverProps,\n}\n"],"names":["_formatErrorMessage","REASONS.triggerPress","REASONS.triggerHover","REASONS.escapeKey","REASONS.closePress","REASONS.focusOut","PopoverRootComponent","REASONS.imperativeAction","_jsxs","_jsx","PopoverRoot","PopoverTrigger","PopoverPortal","PopoverPositioner","PopoverPopup","PopoverArrow","PopoverTitle","PopoverDescription","PopoverClose","PopoverPrimitive.Root","PopoverPrimitive.Trigger","PopoverPrimitive.Arrow","cn","PopoverPrimitive.Portal","PopoverPrimitive.Positioner","PopoverPrimitive.Popup","PopoverPrimitive.Title","PopoverPrimitive.Close","PopoverPrimitive.Description","_b","_a"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAIO,MAAM,qBAAkC,sBAAM,cAAc,MAAS;AAC5E,IAAI,QAAQ,IAAI,aAAa,aAAc,oBAAmB,cAAc;AACrE,SAAS,sBAAsB,UAAU;AAC9C,QAAM,UAAU,MAAM,WAAW,kBAAkB;AACnD,MAAI,YAAY,UAAa,CAAC,UAAU;AACtC,UAAM,IAAI,MAAM,QAAQ,IAAI,aAAa,eAAe,gGAAgGA,mBAAoB,EAAE,CAAC;AAAA,EACjL;AACA,SAAO;AACT;ACDA,MAAM,YAAY;AAAA,EAChB,GAAG;AAAA,EACH,UAAU,WAAS,MAAM;AAAA;AAAA;AAAA;AAAA;AAAA;A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AA,YACE,GAAG;AAAA,YACJ,MAAK,4CAAW,UAAX,mBAAkB;AAAA,YACvB,WAAW,SAAS;AAAA,YACpB,QAAQ;AAAA,YACR,WAAWW,WAAG,kBAAkB,mCAAS,QAAO,4CAAW,UAAX,mBAAkB,SAAS;AAAA,YAC3E,YACE,uBACI,MAAM,qBAAqB,QAA4C,IACvE,aAAa;AAAA,YAEnB,WAAW,QAAQ;AAAA,YACnB,qBAAqBA,WAAG,WAAW,mCAAS,IAAI;AAAA,YAChD,cAAc;AAAA,YACd,YAAY,eAAe,uBAAuB,IAAI;AAAA,YACtD,MAAM,aAAa,SAAS,uBAAuB,SAAS;AAAA,YAE3D,UAAA;AAAA,cAAA;AAAA,cACA,kBAAkB,eACjB,oBAACK,gBAAA,EAAuB,WAAU,WAAU,UAAA,gBAAA,CAAa,IACvD;AAAA,YAAA;AAAA,UAAA;AAAA,QAAA;AAAA,MACN;AAAA,IAAA;AAAA,EAAA;AAGN;","x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]}
|
|
1
|
+
{"version":3,"file":"Popover-P_pJI0ZD.js","sources":["../node_modules/@base-ui/react/popover/root/PopoverRootContext.mjs","../node_modules/@base-ui/react/popover/store/PopoverStore.mjs","../node_modules/@base-ui/react/popover/root/PopoverRoot.mjs","../node_modules/@base-ui/react/popover/utils/constants.mjs","../node_modules/@base-ui/react/utils/popups/useTriggerFocusGuards.mjs","../node_modules/@base-ui/react/popover/trigger/PopoverTrigger.mjs","../node_modules/@base-ui/react/popover/portal/PopoverPortalContext.mjs","../node_modules/@base-ui/react/popover/portal/PopoverPortal.mjs","../node_modules/@base-ui/react/popover/positioner/PopoverPositionerContext.mjs","../node_modules/@base-ui/react/internals/useTriggerSwitchTransition.mjs","../node_modules/@base-ui/react/utils/useAnchoredPopupScrollLock.mjs","../node_modules/@base-ui/react/popover/positioner/PopoverPositioner.mjs","../node_modules/@base-ui/react/utils/closePart.mjs","../node_modules/@base-ui/react/popover/popup/PopoverPopup.mjs","../node_modules/@base-ui/react/popover/arrow/PopoverArrow.mjs","../node_modules/@base-ui/react/popover/title/PopoverTitle.mjs","../node_modules/@base-ui/react/popover/description/PopoverDescription.mjs","../node_modules/@base-ui/react/popover/close/PopoverClose.mjs","../src/new-components/atoms/Popover.tsx"],"sourcesContent":["'use client';\n\nimport _formatErrorMessage from \"@base-ui/utils/formatErrorMessage\";\nimport * as React from 'react';\nexport const PopoverRootContext = /*#__PURE__*/React.createContext(undefined);\nif (process.env.NODE_ENV !== \"production\") PopoverRootContext.displayName = \"PopoverRootContext\";\nexport function usePopoverRootContext(optional) {\n const context = React.useContext(PopoverRootContext);\n if (context === undefined && !optional) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? 'Base UI: PopoverRootContext is missing. Popover parts must be placed within <Popover.Root>.' : _formatErrorMessage(47));\n }\n return context;\n}","'use client';\n\nimport * as React from 'react';\nimport * as ReactDOM from 'react-dom';\nimport { ReactStore } from '@base-ui/utils/store';\nimport { Timeout } from '@base-ui/utils/useTimeout';\nimport { NOOP } from '@base-ui/utils/empty';\nimport { REASONS } from \"../../internals/reasons.mjs\";\nimport { NullStore } from \"../../utils/NullStore.mjs\";\nimport { attachPreventUnmountOnClose, createInitialPopupStoreState, popupStoreSelectors, PopupTriggerMap, createPopupOpenState } from \"../../utils/popups/index.mjs\";\nimport { PATIENT_CLICK_THRESHOLD } from \"../../internals/constants.mjs\";\nconst selectors = {\n ...popupStoreSelectors,\n disabled: state => state.disabled,\n // `trigger-change` describes a popup moving between triggers, which only has\n // meaning while it is open. Dropping it once closed keeps a late or stale\n // restoration from marking a closing popup instant and skipping its exit\n // transition, including on close paths that never reach `setOpen` — a\n // controlled consumer committing `open={false}` goes straight through the prop.\n instantType: state => state.instantType === 'trigger-change' && !popupStoreSelectors.open(state) ? undefined : state.instantType,\n openMethod: state => state.openMethod,\n openChangeReason: state => state.openChangeReason,\n isPressOpenedByTrigger: (state, triggerId) => state.openChangeReason === REASONS.triggerPress && popupStoreSelectors.isOpenedByTrigger(state, triggerId),\n // The trigger selectors below resolve to a constant for triggers that don't use them, so state\n // changes don't re-render every inactive trigger.\n isTouchPressOpen: (state, openOnHover) => openOnHover && state.openMethod === 'touch' && state.openChangeReason === REASONS.triggerPress,\n hasTriggerFocusGuards: (state, triggerId) => popupStoreSelectors.isOpenedByTrigger(state, triggerId) && !state.focusManagerModal,\n modal: state => state.modal,\n titleElementId: state => state.titleElementId,\n descriptionElementId: state => state.descriptionElementId,\n openOnHover: state => state.openOnHover,\n closeDelay: state => state.closeDelay,\n adaptiveOrigin: state => state.adaptiveOrigin\n};\n\n/**\n * The store view that detached handle-backed triggers read from. Both the real `PopoverStore` and\n * the inert fallback store satisfy it, so a trigger can read from whichever store the handle\n * currently exposes. Narrowed to the members a trigger actually uses — the trigger-data members plus\n * `setOpen` (called by the focus guards) — so the exposed surface can't bypass the open-change\n * pipeline; on the detached fallback store every one of these mutations is a no-op.\n */\n\nexport class PopoverStore extends ReactStore {\n constructor(initialState, floatingId, nested) {\n const triggerElements = new PopupTriggerMap();\n super(createInitialState(initialState, triggerElements, floatingId, nested), createInitialContext(triggerElements), selectors);\n }\n setOpen = (nextOpen, eventDetails) => {\n const isHover = eventDetails.reason === REASONS.triggerHover;\n const isKeyboardClick = eventDetails.reason === REASONS.triggerPress && eventDetails.event.detail === 0;\n const isDismissClose = !nextOpen && (eventDetails.reason === REASONS.escapeKey || eventDetails.reason == null);\n const shouldPreventUnmountOnClose = attachPreventUnmountOnClose(eventDetails);\n const activeTriggerId = this.select('activeTriggerId');\n if (!nextOpen && eventDetails.reason === REASONS.closePress && eventDetails.trigger == null && activeTriggerId != null) {\n eventDetails.trigger = this.context.triggerElements.getById(activeTriggerId) ?? this.select('activeTriggerElement') ?? undefined;\n }\n this.context.onOpenChange?.(nextOpen, eventDetails);\n if (eventDetails.isCanceled) {\n return;\n }\n this.state.floatingRootContext.dispatchOpenChange(nextOpen, eventDetails);\n const changeState = () => {\n const popupOpenState = createPopupOpenState(this.state, nextOpen, eventDetails.trigger, shouldPreventUnmountOnClose());\n popupOpenState.openChangeReason = eventDetails.reason;\n this.update(popupOpenState);\n };\n if (isHover) {\n // Only allow \"patient\" clicks to close the popover if it's open.\n // If they clicked within 500ms of the popover opening, keep it open.\n this.context.stickIfOpen = true;\n this.context.stickIfOpenTimeout.start(PATIENT_CLICK_THRESHOLD, () => {\n this.context.stickIfOpen = false;\n });\n ReactDOM.flushSync(changeState);\n } else {\n changeState();\n }\n let instantType;\n if (isKeyboardClick) {\n instantType = 'click';\n } else if (isDismissClose) {\n instantType = 'dismiss';\n } else if (eventDetails.reason === REASONS.focusOut) {\n instantType = 'focus';\n }\n this.set('instantType', instantType);\n };\n}\n\n/**\n * Creates the inert fallback store used by detached handle-backed triggers while no\n * `Popover.Root` is attached. It preserves a popover-specific trigger registry in context so\n * detached triggers can register before migrating to the live root store. `setOpen` is a no-op\n * (matching the inert reads/writes of `NullStore`), so a trigger can hand the store to focus-guard\n * helpers that expect `setOpen` without it ever taking effect while detached.\n */\nexport function createNullPopoverStore() {\n const triggerElements = new PopupTriggerMap();\n const store = new NullStore(Object.freeze(createInitialState(undefined, triggerElements)), Object.freeze(createInitialContext(triggerElements)), selectors);\n return Object.assign(store, {\n setOpen: NOOP\n });\n}\nfunction createInitialState(initialState, triggerElements, floatingId, nested = false) {\n const state = {\n ...createInitialPopupStoreState(triggerElements, floatingId, nested),\n disabled: false,\n modal: false,\n focusManagerModal: false,\n instantType: undefined,\n openMethod: null,\n openChangeReason: null,\n titleElementId: undefined,\n descriptionElementId: undefined,\n openOnHover: false,\n closeDelay: 0,\n adaptiveOrigin: undefined,\n ...initialState\n };\n if (state.open && initialState?.mounted === undefined) {\n state.mounted = true;\n }\n return state;\n}\nfunction createInitialContext(triggerElements) {\n return {\n popupRef: /*#__PURE__*/React.createRef(),\n onOpenChange: undefined,\n onOpenChangeComplete: undefined,\n triggerFocusTargetRef: /*#__PURE__*/React.createRef(),\n beforeTriggerFocusGuardRef: /*#__PURE__*/React.createRef(),\n beforeContentFocusGuardRef: /*#__PURE__*/React.createRef(),\n stickIfOpenTimeout: new Timeout(),\n stickIfOpen: true,\n triggerElements\n };\n}","'use client';\n\nimport * as React from 'react';\nimport { fastComponent } from '@base-ui/utils/fastHooks';\nimport { useDismiss, FloatingTree } from \"../../floating-ui-react/index.mjs\";\nimport { PopoverRootContext, usePopoverRootContext } from \"./PopoverRootContext.mjs\";\nimport { PopoverStore } from \"../store/PopoverStore.mjs\";\nimport { createChangeEventDetails } from \"../../internals/createBaseUIEventDetails.mjs\";\nimport { REASONS } from \"../../internals/reasons.mjs\";\nimport { PopupHandleAttachment, useImplicitActiveTrigger, usePopupRootStore, useOpenStateTransitions, usePopupInteractionProps, usePopupRootSync } from \"../../utils/popups/index.mjs\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst PopoverRootComponent = fastComponent(function PopoverRootComponent({\n props\n}) {\n const {\n children,\n open: openProp,\n defaultOpen = false,\n onOpenChange,\n onOpenChangeComplete,\n modal = false,\n handle,\n triggerId: triggerIdProp,\n defaultTriggerId: defaultTriggerIdProp = null\n } = props;\n const store = usePopoverRootStore(handle, {\n modal,\n open: defaultOpen,\n openProp,\n activeTriggerId: defaultTriggerIdProp,\n triggerIdProp\n });\n store.useControlledProp('openProp', openProp);\n store.useControlledProp('triggerIdProp', triggerIdProp);\n const open = store.useState('open');\n const mounted = store.useState('mounted');\n const payload = store.useState('payload');\n store.useContextCallback('onOpenChange', onOpenChange);\n store.useContextCallback('onOpenChangeComplete', onOpenChangeComplete);\n usePopupRootSync(store, open);\n useImplicitActiveTrigger(store);\n const {\n forceUnmount\n } = useOpenStateTransitions(open, store, () => {\n store.context.stickIfOpen = true;\n store.set('openChangeReason', null);\n });\n store.useSyncedValues({\n modal\n });\n React.useEffect(() => {\n if (!open) {\n store.context.stickIfOpenTimeout.clear();\n }\n }, [store, open]);\n React.useImperativeHandle(props.actionsRef, () => ({\n unmount: forceUnmount,\n close: () => store.setOpen(false, createChangeEventDetails(REASONS.imperativeAction))\n }), [forceUnmount, store]);\n\n // Detached triggers share this one Root, so mounting its interactions eagerly is cheap. The\n // trigger props they publish then stay stable, so opening and closing doesn't re-render inactive\n // triggers.\n const shouldRenderInteractions = open || mounted || handle != null;\n return /*#__PURE__*/_jsxs(PopoverRootContext.Provider, {\n value: store,\n children: [handle && /*#__PURE__*/_jsx(PopupHandleAttachment, {\n handle: handle,\n store: store\n }), shouldRenderInteractions && /*#__PURE__*/_jsx(PopoverInteractions, {\n store: store,\n modal: modal\n }), typeof children === 'function' ? children({\n payload\n }) : children]\n });\n});\n\n/**\n * Groups all parts of the popover.\n * Doesn't render its own HTML element.\n *\n * Documentation: [Base UI Popover](https://base-ui.com/react/components/popover)\n */\nif (process.env.NODE_ENV !== \"production\") PopoverRootComponent.displayName = \"PopoverRootComponent\";\nexport function PopoverRoot(props) {\n if (usePopoverRootContext(true)) {\n return /*#__PURE__*/_jsx(PopoverRootComponent, {\n props: props\n });\n }\n return /*#__PURE__*/_jsx(FloatingTree, {\n children: /*#__PURE__*/_jsx(PopoverRootComponent, {\n props: props\n })\n });\n}\nfunction usePopoverRootStore(handle, initialState) {\n // The store is owned by this Root instance and created exactly once. It is not tied to the handle:\n // the handle attaches to it, so swapping the handle re-attaches rather than recreating state.\n // Default values are only initial values; controlled values and root state are synced after creation.\n const store = usePopupRootStore((floatingId, nested) => new PopoverStore(initialState, floatingId, nested));\n\n // Popover-specific: dispose the patient-click timeout held in the store's context on unmount.\n React.useEffect(() => store.context.stickIfOpenTimeout.disposeEffect(), [store]);\n return store;\n}\nfunction PopoverInteractions({\n store,\n modal\n}) {\n const floatingRootContext = store.useState('floatingRootContext');\n const dismiss = useDismiss(floatingRootContext, {\n outsidePressEvent: {\n // Ensure `aria-hidden` on outside elements is removed immediately\n // on outside press when trapping focus.\n mouse: modal === 'trap-focus' ? 'sloppy' : 'intentional',\n touch: 'sloppy'\n }\n });\n\n // `useDismiss` is not given an `enabled` option, so it always returns both prop bags. Restore\n // the `EMPTY_OBJECT` fallbacks if that ever changes: the store fields are non-optional.\n // `dismiss.trigger` is always the same object as `dismiss.reference`.\n const triggerProps = dismiss.reference;\n // PopoverPopup already spreads `FOCUSABLE_POPUP_PROPS` directly, so the popup\n // props only need to carry the dismiss handlers.\n const popupProps = dismiss.floating;\n usePopupInteractionProps(store, {\n activeTriggerProps: triggerProps,\n inactiveTriggerProps: triggerProps,\n popupProps\n });\n return null;\n}","export const OPEN_DELAY = 300;","'use client';\n\nimport * as ReactDOM from 'react-dom';\nimport { getTabbableNearElement, isOutsideEvent } from \"../../floating-ui-react/utils.mjs\";\nimport { createChangeEventDetails } from \"../../internals/createBaseUIEventDetails.mjs\";\nimport { REASONS } from \"../../internals/reasons.mjs\";\n\n/**\n * Minimal store interface required by the focus guard hook.\n * Both PopoverStore and MenuStore satisfy this interface.\n */\n\n/**\n * Provides focus guard handlers for popup triggers (Popover, Menu).\n *\n * When the popup is open, invisible focus guard elements are placed before and after\n * the trigger. These handlers close the popup and move focus to the appropriate\n * tabbable element when the guards receive focus (i.e. when the user tabs out).\n */\nexport function useTriggerFocusGuards(store, triggerElementRef) {\n function closeAndFocus(event, direction, positionerElement) {\n const guard = event.currentTarget;\n ReactDOM.flushSync(() => {\n store.setOpen(false, createChangeEventDetails(REASONS.focusOut, event.nativeEvent, guard));\n });\n\n // The close callback may change the tab order. Resolve it after the flush, using\n // the trigger as the anchor if the guard unmounted, even when its tabIndex is -1.\n getTabbableNearElement(guard.isConnected ? guard : triggerElementRef.current, direction, positionerElement)?.focus();\n }\n function handlePreFocusGuardFocus(event) {\n closeAndFocus(event, -1, store.select('positionerElement'));\n }\n function handleFocusTargetFocus(event) {\n const positionerElement = store.select('positionerElement');\n if (positionerElement && isOutsideEvent(event, positionerElement)) {\n store.context.beforeContentFocusGuardRef.current?.focus();\n } else {\n closeAndFocus(event, 1, positionerElement);\n }\n }\n return {\n handlePreFocusGuardFocus,\n handleFocusTargetFocus\n };\n}","'use client';\n\nimport _formatErrorMessage from \"@base-ui/utils/formatErrorMessage\";\nimport * as React from 'react';\nimport { useStableCallback } from '@base-ui/utils/useStableCallback';\nimport { fastComponentRef } from '@base-ui/utils/fastHooks';\nimport { usePopoverRootContext } from \"../root/PopoverRootContext.mjs\";\nimport { useButton } from \"../../internals/use-button/useButton.mjs\";\nimport { triggerOpenStateMapping, pressableTriggerOpenStateMapping } from \"../../utils/popupStateMapping.mjs\";\nimport { useRenderElement } from \"../../internals/useRenderElement.mjs\";\nimport { CLICK_TRIGGER_IDENTIFIER } from \"../../internals/constants.mjs\";\nimport { safePolygon, useClick, useHoverReferenceInteraction } from \"../../floating-ui-react/index.mjs\";\nimport { OPEN_DELAY } from \"../utils/constants.mjs\";\nimport { useBaseUiId } from \"../../internals/useBaseUiId.mjs\";\nimport { FocusGuard } from \"../../utils/FocusGuard.mjs\";\nimport { usePopupHandleStore, useTriggerDataForwarding } from \"../../utils/popups/index.mjs\";\nimport { useTriggerFocusGuards } from \"../../utils/popups/useTriggerFocusGuards.mjs\";\nimport { useOpenMethodTriggerProps } from \"../../utils/useOpenInteractionType.mjs\";\n\n/**\n * A button that opens the popover.\n * Renders a `<button>` element.\n *\n * Documentation: [Base UI Popover](https://base-ui.com/react/components/popover)\n */\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nexport const PopoverTrigger = fastComponentRef(function PopoverTrigger(componentProps, forwardedRef) {\n const {\n render,\n className,\n style,\n disabled = false,\n nativeButton = true,\n handle,\n payload,\n openOnHover = false,\n delay = OPEN_DELAY,\n closeDelay = 0,\n id: idProp,\n ...elementProps\n } = componentProps;\n const rootStore = usePopoverRootContext(true);\n const handleStore = usePopupHandleStore(handle);\n const store = handleStore ?? rootStore;\n if (!store) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? 'Base UI: <Popover.Trigger> must be either used within a <Popover.Root> component or provided with a handle.' : _formatErrorMessage(74));\n }\n const thisTriggerId = useBaseUiId(idProp);\n const isTriggerActive = store.useState('isTriggerActive', thisTriggerId);\n const floatingContext = store.useState('floatingRootContext');\n const isOpenedByThisTrigger = store.useState('isOpenedByTrigger', thisTriggerId);\n const popupId = store.useState('triggerPopupId', thisTriggerId);\n const triggerElementRef = React.useRef(null);\n const {\n registerTrigger,\n isMountedByThisTrigger\n } = useTriggerDataForwarding(thisTriggerId, triggerElementRef, store, {\n payload,\n disabled,\n openOnHover,\n closeDelay\n });\n const isPressOpenedByThisTrigger = store.useState('isPressOpenedByTrigger', thisTriggerId);\n const isTouchPressOpen = store.useState('isTouchPressOpen', openOnHover);\n const hasFocusGuards = store.useState('hasTriggerFocusGuards', thisTriggerId);\n const hoverProps = useHoverReferenceInteraction(floatingContext, {\n enabled: !disabled && openOnHover && !isTouchPressOpen,\n mouseOnly: true,\n move: false,\n handleClose: safePolygon(),\n restMs: delay,\n delay: {\n close: closeDelay\n },\n triggerElementRef,\n isActiveTrigger: isTriggerActive,\n isClosing: () => store.select('transitionStatus') === 'ending'\n });\n const getStickIfOpen = useStableCallback(() => store.context.stickIfOpen);\n const click = useClick(floatingContext, {\n stickIfOpen: getStickIfOpen\n });\n const interactionTypeProps = useOpenMethodTriggerProps(() => store.select('open'), interactionType => {\n store.set('openMethod', interactionType);\n });\n const rootTriggerProps = store.useState('triggerProps', isMountedByThisTrigger);\n const {\n getButtonProps,\n buttonRef\n } = useButton({\n disabled,\n native: nativeButton\n });\n const stateAttributesMapping = {\n open(value) {\n if (isPressOpenedByThisTrigger) {\n return pressableTriggerOpenStateMapping.open(value);\n }\n return triggerOpenStateMapping.open(value);\n }\n };\n const {\n handlePreFocusGuardFocus,\n handleFocusTargetFocus\n } = useTriggerFocusGuards(store, triggerElementRef);\n const state = {\n disabled,\n open: isOpenedByThisTrigger\n };\n const element = useRenderElement('button', componentProps, {\n state,\n ref: [buttonRef, forwardedRef, registerTrigger, triggerElementRef],\n props: [click.reference, hoverProps, rootTriggerProps, interactionTypeProps, {\n [CLICK_TRIGGER_IDENTIFIER]: '',\n id: thisTriggerId,\n 'aria-haspopup': 'dialog',\n 'aria-expanded': isOpenedByThisTrigger,\n 'aria-controls': popupId\n }, elementProps, getButtonProps],\n stateAttributesMapping\n });\n\n // A fragment with key is required to ensure that the `element` is mounted to the same DOM node\n // regardless of whether the focus guards are rendered or not.\n const keyedElement = /*#__PURE__*/_jsx(React.Fragment, {\n children: element\n }, thisTriggerId);\n if (hasFocusGuards) {\n return /*#__PURE__*/_jsxs(React.Fragment, {\n children: [/*#__PURE__*/_jsx(FocusGuard, {\n ref: store.context.beforeTriggerFocusGuardRef,\n onFocus: handlePreFocusGuardFocus\n }), keyedElement, /*#__PURE__*/_jsx(FocusGuard, {\n ref: store.context.triggerFocusTargetRef,\n onFocus: handleFocusTargetFocus\n })]\n });\n }\n return keyedElement;\n});\nif (process.env.NODE_ENV !== \"production\") PopoverTrigger.displayName = \"PopoverTrigger\";","'use client';\n\nimport _formatErrorMessage from \"@base-ui/utils/formatErrorMessage\";\nimport * as React from 'react';\nexport const PopoverPortalContext = /*#__PURE__*/React.createContext(undefined);\nif (process.env.NODE_ENV !== \"production\") PopoverPortalContext.displayName = \"PopoverPortalContext\";\nexport function usePopoverPortalContext() {\n const value = React.useContext(PopoverPortalContext);\n if (value === undefined) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? 'Base UI: <Popover.Portal> is missing.' : _formatErrorMessage(45));\n }\n return value;\n}","'use client';\n\nimport * as React from 'react';\nimport { FloatingPortal } from \"../../floating-ui-react/index.mjs\";\nimport { usePopoverRootContext } from \"../root/PopoverRootContext.mjs\";\nimport { PopoverPortalContext } from \"./PopoverPortalContext.mjs\";\n\n/**\n * A portal element that moves the popup to a different part of the DOM.\n * By default, the portal element is appended to `<body>`.\n * Renders a `<div>` element.\n *\n * Documentation: [Base UI Popover](https://base-ui.com/react/components/popover)\n */\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport const PopoverPortal = /*#__PURE__*/React.forwardRef(function PopoverPortal(props, forwardedRef) {\n const {\n keepMounted = false,\n ...portalProps\n } = props;\n const store = usePopoverRootContext();\n const mounted = store.useState('mounted');\n const shouldRender = mounted || keepMounted;\n if (!shouldRender) {\n return null;\n }\n return /*#__PURE__*/_jsx(PopoverPortalContext.Provider, {\n value: keepMounted,\n children: /*#__PURE__*/_jsx(FloatingPortal, {\n ref: forwardedRef,\n ...portalProps\n })\n });\n});\nif (process.env.NODE_ENV !== \"production\") PopoverPortal.displayName = \"PopoverPortal\";","'use client';\n\nimport _formatErrorMessage from \"@base-ui/utils/formatErrorMessage\";\nimport * as React from 'react';\nexport const PopoverPositionerContext = /*#__PURE__*/React.createContext(undefined);\nif (process.env.NODE_ENV !== \"production\") PopoverPositionerContext.displayName = \"PopoverPositionerContext\";\nexport function usePopoverPositionerContext() {\n const context = React.useContext(PopoverPositionerContext);\n if (!context) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? 'Base UI: PopoverPositionerContext is missing. PopoverPositioner parts must be placed within <Popover.Positioner>.' : _formatErrorMessage(46));\n }\n return context;\n}","'use client';\n\nimport * as React from 'react';\nimport { useIsoLayoutEffect } from '@base-ui/utils/useIsoLayoutEffect';\nimport { useAnimationsFinished } from \"./useAnimationsFinished.mjs\";\n\n/**\n * Popover and Menu declare different `instantType` unions, so only the members\n * this hook touches are typed.\n */\n\n/**\n * Lets the positioner animate while a popup moves between detached triggers.\n *\n * The positioner is normally marked instant, so a hand-off from one trigger to\n * another would teleport. Clearing `instantType` for the duration of the move\n * lets it transition, and `trigger-change` is restored once the move finishes.\n *\n * The restoration is deferred until the move's animations finish, so it can\n * outlive the move that scheduled it. The trigger element is retained through\n * the exit transition, so a close alone does not change `domReference` and\n * nothing would otherwise re-run this effect to abort it — a popup that closes\n * and reopens on the same trigger mid-exit would inherit the stale callback and\n * lose its own transition. Closing therefore cancels the pending restoration\n * explicitly.\n *\n * Applying `trigger-change` to a closed popup is prevented separately, by the\n * stores' `instantType` selector, since a controlled `open={false}` commit\n * reaches the popup without passing through `setOpen`.\n */\nexport function useTriggerSwitchTransition(parameters) {\n const {\n store,\n domReference,\n positionerElement,\n open\n } = parameters;\n const previousTriggerRef = React.useRef(null);\n const pendingSwitchRef = React.useRef(null);\n const runOnceAnimationsFinish = useAnimationsFinished(positionerElement);\n useIsoLayoutEffect(() => {\n if (open) {\n return;\n }\n pendingSwitchRef.current?.abort();\n pendingSwitchRef.current = null;\n\n // `trigger-change` belongs to the open cycle that scheduled it. The selector\n // stops a closed popup from rendering it, but the value has to be dropped\n // too: a controlled reopen changes only `openProp`, so neither this effect\n // nor `setOpen` would run again to replace it, and the selector would start\n // exposing the old value against the new cycle.\n if (store.state.instantType === 'trigger-change') {\n store.set('instantType', undefined);\n }\n }, [open, store]);\n useIsoLayoutEffect(() => {\n const currentTrigger = domReference;\n const previousTrigger = previousTriggerRef.current;\n if (currentTrigger) {\n previousTriggerRef.current = currentTrigger;\n }\n if (!previousTrigger || !currentTrigger || currentTrigger === previousTrigger) {\n return undefined;\n }\n\n // The trigger element can also change while the popup is closing, when a\n // trigger is replaced by a new element. There is no move to animate, and\n // the cancellation effect above has already run for this commit, so a\n // restoration scheduled here would survive into whatever opens next.\n if (!store.select('open')) {\n return undefined;\n }\n store.set('instantType', undefined);\n const abortController = new AbortController();\n pendingSwitchRef.current = abortController;\n runOnceAnimationsFinish(() => {\n // The abort above covers a committed close, but the animations can finish\n // in the same frame the close commits. Writing `trigger-change` then would\n // leave stale state behind for the next open to inherit.\n if (store.select('open')) {\n store.set('instantType', 'trigger-change');\n }\n }, abortController.signal);\n return () => {\n abortController.abort();\n };\n }, [domReference, runOnceAnimationsFinish, store]);\n}","'use client';\n\nimport * as React from 'react';\nimport { ownerDocument } from '@base-ui/utils/owner';\nimport { useScrollLock } from '@base-ui/utils/useScrollLock';\nimport { useIsoLayoutEffect } from '@base-ui/utils/useIsoLayoutEffect';\n\n// Touch-opened popups normally avoid scroll locking so users can still swipe outside to dismiss.\n// This hook re-enables scroll lock only when the popup is effectively full-width.\n// Treat popups with up to 20px of total horizontal gutter as full-width so common ~10px side\n// padding still locks scroll, since that leaves too little outside space for a reliable swipe.\nconst VIEWPORT_WIDTH_TOLERANCE_PX = 20;\n\n/**\n * Manages scroll lock for anchored popups. For non-touch opens, scroll lock is applied when\n * enabled. For touch opens, scroll lock is applied only when the positioner width is effectively\n * viewport-sized.\n */\nexport function useAnchoredPopupScrollLock(enabled, touchOpen, positionerElement, referenceElement) {\n const [touchOpenShouldLockScroll, setTouchOpenShouldLockScroll] = React.useState(false);\n useIsoLayoutEffect(() => {\n if (!enabled || !touchOpen || positionerElement == null) {\n setTouchOpenShouldLockScroll(false);\n return;\n }\n const viewportWidth = ownerDocument(positionerElement).documentElement.clientWidth;\n const popupWidth = positionerElement.offsetWidth;\n setTouchOpenShouldLockScroll(viewportWidth > 0 && popupWidth > 0 && popupWidth >= viewportWidth - VIEWPORT_WIDTH_TOLERANCE_PX);\n }, [enabled, touchOpen, positionerElement]);\n useScrollLock(enabled && (!touchOpen || touchOpenShouldLockScroll), referenceElement);\n}","'use client';\n\nimport * as React from 'react';\nimport { inertValue } from '@base-ui/utils/inertValue';\nimport { FloatingNode, useFloatingNodeId } from \"../../floating-ui-react/index.mjs\";\nimport { usePopoverRootContext } from \"../root/PopoverRootContext.mjs\";\nimport { PopoverPositionerContext } from \"./PopoverPositionerContext.mjs\";\nimport { useAnchorPositioning } from \"../../internals/useAnchorPositioning.mjs\";\nimport { usePopoverPortalContext } from \"../portal/PopoverPortalContext.mjs\";\nimport { InternalBackdrop } from \"../../utils/InternalBackdrop.mjs\";\nimport { REASONS } from \"../../internals/reasons.mjs\";\nimport { POPUP_COLLISION_AVOIDANCE } from \"../../internals/constants.mjs\";\nimport { useTriggerSwitchTransition } from \"../../internals/useTriggerSwitchTransition.mjs\";\nimport { usePositioner } from \"../../utils/usePositioner.mjs\";\nimport { useAnchoredPopupScrollLock } from \"../../utils/useAnchoredPopupScrollLock.mjs\";\n\n/**\n * Positions the popover against the trigger.\n * Renders a `<div>` element.\n *\n * Documentation: [Base UI Popover](https://base-ui.com/react/components/popover)\n */\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nexport const PopoverPositioner = /*#__PURE__*/React.forwardRef(function PopoverPositioner(componentProps, forwardedRef) {\n const {\n render,\n className,\n style,\n anchor,\n // `useAnchorPositioning` applies the same defaults to the undefined values; the names\n // remain destructured to exclude the props from `elementProps`.\n positionMethod,\n side,\n align,\n sideOffset,\n alignOffset,\n collisionBoundary = 'clipping-ancestors',\n collisionPadding,\n arrowPadding,\n sticky,\n disableAnchorTracking = false,\n collisionAvoidance = POPUP_COLLISION_AVOIDANCE,\n ...elementProps\n } = componentProps;\n const store = usePopoverRootContext();\n const keepMounted = usePopoverPortalContext();\n const nodeId = useFloatingNodeId();\n const floatingRootContext = store.useState('floatingRootContext');\n const mounted = store.useState('mounted');\n const open = store.useState('open');\n const openReason = store.useState('openChangeReason');\n const triggerElement = store.useState('activeTriggerElement');\n const modal = store.useState('modal');\n const openMethod = store.useState('openMethod');\n const positionerElement = store.useState('positionerElement');\n const instantType = store.useState('instantType');\n const transitionStatus = store.useState('transitionStatus');\n const adaptiveOrigin = store.useState('adaptiveOrigin');\n const positioning = useAnchorPositioning({\n anchor,\n floatingRootContext,\n positionMethod,\n mounted,\n side,\n sideOffset,\n align,\n alignOffset,\n arrowPadding,\n collisionBoundary,\n collisionPadding,\n sticky,\n disableAnchorTracking,\n keepMounted,\n nodeId,\n collisionAvoidance,\n adaptiveOrigin\n });\n const domReference = floatingRootContext.useState('domReferenceElement');\n useTriggerSwitchTransition({\n store,\n domReference,\n positionerElement,\n open\n });\n const trueModalNonHover = modal === true && openReason !== REASONS.triggerHover;\n useAnchoredPopupScrollLock(open && trueModalNonHover, openMethod === 'touch', positionerElement, triggerElement);\n const setPositionerElement = store.useStateSetter('positionerElement');\n const state = {\n open,\n side: positioning.side,\n align: positioning.align,\n anchorHidden: positioning.anchorHidden,\n instant: instantType\n };\n const element = usePositioner(componentProps, state, {\n styles: positioning.positionerStyles,\n transitionStatus,\n props: elementProps,\n refs: [forwardedRef, setPositionerElement],\n hidden: !mounted,\n inert: !open\n });\n return /*#__PURE__*/_jsxs(PopoverPositionerContext.Provider, {\n value: positioning,\n children: [mounted && trueModalNonHover && /*#__PURE__*/_jsx(InternalBackdrop, {\n inert: inertValue(!open),\n cutout: triggerElement\n }), /*#__PURE__*/_jsx(FloatingNode, {\n id: nodeId,\n children: element\n })]\n });\n});\nif (process.env.NODE_ENV !== \"production\") PopoverPositioner.displayName = \"PopoverPositioner\";","'use client';\n\nimport * as React from 'react';\nimport { useIsoLayoutEffect } from '@base-ui/utils/useIsoLayoutEffect';\nimport { useStableCallback } from '@base-ui/utils/useStableCallback';\nexport const ClosePartContext = /*#__PURE__*/React.createContext(undefined);\nif (process.env.NODE_ENV !== \"production\") ClosePartContext.displayName = \"ClosePartContext\";\nexport function useClosePartCount() {\n const [closePartCount, setClosePartCount] = React.useState(0);\n const register = useStableCallback(() => {\n setClosePartCount(count => count + 1);\n return () => {\n setClosePartCount(count => Math.max(0, count - 1));\n };\n });\n const context = React.useMemo(() => ({\n register\n }), [register]);\n return {\n context,\n hasClosePart: closePartCount > 0\n };\n}\nexport function useClosePartRegistration() {\n const context = React.useContext(ClosePartContext);\n useIsoLayoutEffect(() => {\n return context?.register();\n }, [context]);\n}","'use client';\n\nimport * as React from 'react';\nimport { isHTMLElement } from '@floating-ui/utils/dom';\nimport { FloatingFocusManager, useHoverFloatingInteraction } from \"../../floating-ui-react/index.mjs\";\nimport { usePopoverRootContext } from \"../root/PopoverRootContext.mjs\";\nimport { usePopoverPositionerContext } from \"../positioner/PopoverPositionerContext.mjs\";\nimport { popupTransitionStateMapping } from \"../../utils/popupStateMapping.mjs\";\nimport { useOpenChangeComplete } from \"../../internals/useOpenChangeComplete.mjs\";\nimport { useRenderElement } from \"../../internals/useRenderElement.mjs\";\nimport { REASONS } from \"../../internals/reasons.mjs\";\nimport { COMPOSITE_KEYS } from \"../../internals/composite/composite.mjs\";\nimport { useToolbarRootContext } from \"../../toolbar/root/ToolbarRootContext.mjs\";\nimport { getDisabledMountTransitionStyles } from \"../../internals/getDisabledMountTransitionStyles.mjs\";\nimport { ClosePartContext, useClosePartCount } from \"../../utils/closePart.mjs\";\nimport { FOCUSABLE_POPUP_PROPS, createDefaultInitialFocus } from \"../../utils/popups/index.mjs\";\n\n/**\n * A container for the popover contents.\n * Renders a `<div>` element.\n *\n * Documentation: [Base UI Popover](https://base-ui.com/react/components/popover)\n */\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport const PopoverPopup = /*#__PURE__*/React.forwardRef(function PopoverPopup(componentProps, forwardedRef) {\n const {\n render,\n className,\n style,\n initialFocus,\n finalFocus,\n ...elementProps\n } = componentProps;\n const store = usePopoverRootContext();\n const positioner = usePopoverPositionerContext();\n const insideToolbar = useToolbarRootContext(true) != null;\n const {\n context: closePartContext,\n hasClosePart\n } = useClosePartCount();\n const open = store.useState('open');\n const openMethod = store.useState('openMethod');\n const instantType = store.useState('instantType');\n const transitionStatus = store.useState('transitionStatus');\n const popupProps = store.useState('popupProps');\n const titleId = store.useState('titleElementId');\n const descriptionId = store.useState('descriptionElementId');\n const modal = store.useState('modal');\n const mounted = store.useState('mounted');\n const openReason = store.useState('openChangeReason');\n const activeTriggerElement = store.useState('activeTriggerElement');\n const floatingContext = store.useState('floatingRootContext');\n const floatingId = floatingContext.useState('floatingId');\n const disabled = store.useState('disabled');\n const openOnHover = store.useState('openOnHover');\n const closeDelay = store.useState('closeDelay');\n useOpenChangeComplete({\n open,\n ref: store.context.popupRef,\n onComplete() {\n if (open) {\n store.context.onOpenChangeComplete?.(true);\n }\n }\n });\n useHoverFloatingInteraction(floatingContext, {\n enabled: openOnHover && !disabled,\n closeDelay\n });\n const resolvedInitialFocus = initialFocus === undefined ? createDefaultInitialFocus(store.context.popupRef) : initialFocus;\n const focusManagerModal = modal !== false && hasClosePart;\n store.useSyncedValue('focusManagerModal', focusManagerModal);\n const setPopupElement = store.useStateSetter('popupElement');\n const state = {\n open,\n side: positioner.side,\n align: positioner.align,\n instant: instantType,\n transitionStatus\n };\n const element = useRenderElement('div', componentProps, {\n state,\n ref: [forwardedRef, store.context.popupRef, setPopupElement],\n props: [popupProps, {\n id: floatingId,\n role: 'dialog',\n ...FOCUSABLE_POPUP_PROPS,\n 'aria-labelledby': titleId,\n 'aria-describedby': descriptionId,\n onKeyDown(event) {\n if (insideToolbar && COMPOSITE_KEYS.has(event.key)) {\n event.stopPropagation();\n }\n }\n }, getDisabledMountTransitionStyles(transitionStatus), elementProps],\n stateAttributesMapping: popupTransitionStateMapping\n });\n return /*#__PURE__*/_jsx(FloatingFocusManager, {\n context: floatingContext,\n openInteractionType: openMethod,\n modal: focusManagerModal,\n disabled: !mounted || openReason === REASONS.triggerHover,\n initialFocus: resolvedInitialFocus,\n returnFocus: finalFocus,\n restoreFocus: \"popup\",\n getInsideElements: () => [store.context.beforeTriggerFocusGuardRef.current],\n previousFocusableElement: isHTMLElement(activeTriggerElement) ? activeTriggerElement : undefined,\n nextFocusableElement: store.context.triggerFocusTargetRef,\n beforeContentFocusGuardRef: store.context.beforeContentFocusGuardRef,\n children: /*#__PURE__*/_jsx(ClosePartContext.Provider, {\n value: closePartContext,\n children: element\n })\n });\n});\nif (process.env.NODE_ENV !== \"production\") PopoverPopup.displayName = \"PopoverPopup\";","'use client';\n\nimport * as React from 'react';\nimport { usePopoverPositionerContext } from \"../positioner/PopoverPositionerContext.mjs\";\nimport { usePopoverRootContext } from \"../root/PopoverRootContext.mjs\";\nimport { popupStateMapping } from \"../../utils/popupStateMapping.mjs\";\nimport { useRenderElement } from \"../../internals/useRenderElement.mjs\";\n\n/**\n * Displays an element positioned against the popover anchor.\n * Renders a `<div>` element.\n *\n * Documentation: [Base UI Popover](https://base-ui.com/react/components/popover)\n */\nexport const PopoverArrow = /*#__PURE__*/React.forwardRef(function PopoverArrow(componentProps, forwardedRef) {\n const {\n render,\n className,\n style,\n ...elementProps\n } = componentProps;\n const store = usePopoverRootContext();\n const open = store.useState('open');\n const {\n arrowRef,\n side,\n align,\n arrowUncentered,\n arrowStyles\n } = usePopoverPositionerContext();\n const state = {\n open,\n side,\n align,\n uncentered: arrowUncentered\n };\n const element = useRenderElement('div', componentProps, {\n state,\n ref: [forwardedRef, arrowRef],\n props: [{\n style: arrowStyles,\n 'aria-hidden': true\n }, elementProps],\n stateAttributesMapping: popupStateMapping\n });\n return element;\n});\nif (process.env.NODE_ENV !== \"production\") PopoverArrow.displayName = \"PopoverArrow\";","'use client';\n\nimport * as React from 'react';\nimport { usePopoverRootContext } from \"../root/PopoverRootContext.mjs\";\nimport { useRenderElement } from \"../../internals/useRenderElement.mjs\";\nimport { useBaseUiId } from \"../../internals/useBaseUiId.mjs\";\n\n/**\n * A heading that labels the popover.\n * Renders an `<h2>` element.\n *\n * Documentation: [Base UI Popover](https://base-ui.com/react/components/popover)\n */\nexport const PopoverTitle = /*#__PURE__*/React.forwardRef(function PopoverTitle(componentProps, forwardedRef) {\n const {\n render,\n className,\n style,\n ...elementProps\n } = componentProps;\n const store = usePopoverRootContext();\n const id = useBaseUiId(elementProps.id);\n store.useSyncedValueWithCleanup('titleElementId', id);\n const element = useRenderElement('h2', componentProps, {\n ref: forwardedRef,\n props: [{\n id\n }, elementProps]\n });\n return element;\n});\nif (process.env.NODE_ENV !== \"production\") PopoverTitle.displayName = \"PopoverTitle\";","'use client';\n\nimport * as React from 'react';\nimport { usePopoverRootContext } from \"../root/PopoverRootContext.mjs\";\nimport { useBaseUiId } from \"../../internals/useBaseUiId.mjs\";\nimport { useRenderElement } from \"../../internals/useRenderElement.mjs\";\n\n/**\n * A paragraph with additional information about the popover.\n * Renders a `<p>` element.\n *\n * Documentation: [Base UI Popover](https://base-ui.com/react/components/popover)\n */\nexport const PopoverDescription = /*#__PURE__*/React.forwardRef(function PopoverDescription(componentProps, forwardedRef) {\n const {\n render,\n className,\n style,\n ...elementProps\n } = componentProps;\n const store = usePopoverRootContext();\n const id = useBaseUiId(elementProps.id);\n store.useSyncedValueWithCleanup('descriptionElementId', id);\n const element = useRenderElement('p', componentProps, {\n ref: forwardedRef,\n props: [{\n id\n }, elementProps]\n });\n return element;\n});\nif (process.env.NODE_ENV !== \"production\") PopoverDescription.displayName = \"PopoverDescription\";","'use client';\n\nimport * as React from 'react';\nimport { usePopoverRootContext } from \"../root/PopoverRootContext.mjs\";\nimport { useRenderElement } from \"../../internals/useRenderElement.mjs\";\nimport { useButton } from \"../../internals/use-button/index.mjs\";\nimport { createChangeEventDetails } from \"../../internals/createBaseUIEventDetails.mjs\";\nimport { REASONS } from \"../../internals/reasons.mjs\";\nimport { useClosePartRegistration } from \"../../utils/closePart.mjs\";\n\n/**\n * A button that closes the popover.\n * Renders a `<button>` element.\n *\n * Documentation: [Base UI Popover](https://base-ui.com/react/components/popover)\n */\nexport const PopoverClose = /*#__PURE__*/React.forwardRef(function PopoverClose(componentProps, forwardedRef) {\n const {\n render,\n className,\n style,\n disabled = false,\n nativeButton = true,\n ...elementProps\n } = componentProps;\n const {\n buttonRef,\n getButtonProps\n } = useButton({\n disabled,\n focusableWhenDisabled: false,\n native: nativeButton\n });\n const store = usePopoverRootContext();\n useClosePartRegistration();\n const element = useRenderElement('button', componentProps, {\n ref: [forwardedRef, buttonRef],\n props: [{\n onClick(event) {\n store.setOpen(false, createChangeEventDetails(REASONS.closePress, event.nativeEvent));\n }\n }, elementProps, getButtonProps]\n });\n return element;\n});\nif (process.env.NODE_ENV !== \"production\") PopoverClose.displayName = \"PopoverClose\";","import * as React from 'react'\nimport { cva, type VariantProps } from 'class-variance-authority'\nimport { Popover as PopoverPrimitive } from '@base-ui/react/popover'\n\nimport { cn } from '@/lib/utils'\n\nimport { ControlButton } from '../../components/atoms/Button'\nimport IconProvider from '../../components/atoms/IconProvider'\n\nconst popoverContentVariants = cva(\n 'focus-ring flex max-h-[min(25rem,var(--available-height))] flex-col overflow-hidden rounded-container border border-border-subtle bg-background-overlay text-text-primary shadow-elevation-2 outline-none',\n {\n variants: {\n size: {\n auto: 'w-auto',\n sm: 'w-60',\n md: 'w-80',\n lg: 'w-120',\n },\n },\n defaultVariants: {\n size: 'md',\n },\n },\n)\n\nfunction PopoverRoot({ modal = false, ...props }: PopoverPrimitive.Root.Props) {\n return <PopoverPrimitive.Root data-slot=\"popover\" modal={modal} {...props} />\n}\n\nfunction PopoverTrigger(props: PopoverPrimitive.Trigger.Props) {\n return <PopoverPrimitive.Trigger data-slot=\"popover-trigger\" {...props} />\n}\n\nfunction PopoverArrow({ className, ...props }: PopoverPrimitive.Arrow.Props) {\n return (\n <PopoverPrimitive.Arrow\n data-slot=\"popover-arrow\"\n className={cn(\n 'size-fit text-background-overlay',\n // Base UI only sets the cross-axis offset; the main-axis offset below pins the arrow\n // to the surface's facing edge (with a 1px overlap into the border) instead of leaving\n // it in normal flow, where it renders outside the visible card.\n 'data-[side=bottom]:top-[-0.1875rem] data-[side=top]:bottom-[-0.1875rem] data-[side=top]:rotate-180',\n 'data-[side=left]:right-[-0.3125rem] data-[side=left]:rotate-90 data-[side=right]:left-[-0.3125rem] data-[side=right]:-rotate-90',\n className,\n )}\n {...props}\n >\n <svg aria-hidden=\"true\" width=\"8\" height=\"4\" viewBox=\"0 0 8 4\" fill=\"none\">\n <path d=\"M0 4h8l-4-4L0 4Z\" fill=\"currentColor\" />\n <path d=\"M0 4 4 0 8 4\" className=\"stroke-border-subtle\" />\n </svg>\n </PopoverPrimitive.Arrow>\n )\n}\n\ntype PopoverContentProps = PopoverPrimitive.Popup.Props &\n VariantProps<typeof popoverContentVariants> &\n Pick<\n PopoverPrimitive.Positioner.Props,\n 'alignOffset' | 'anchor' | 'arrowPadding' | 'collisionAvoidance' | 'sideOffset'\n > & {\n alignment?: PopoverPrimitive.Positioner.Props['align']\n arrow?: boolean\n container?: PopoverPrimitive.Portal.Props['container']\n placement?: PopoverPrimitive.Positioner.Props['side']\n positionerId?: string\n positionerClassName?: string\n }\n\nfunction PopoverContent({\n alignment = 'start',\n alignOffset = 0,\n anchor,\n arrow = false,\n arrowPadding = 12,\n children,\n className,\n collisionAvoidance,\n container,\n placement = 'bottom',\n positionerId,\n positionerClassName,\n sideOffset = 4,\n size = 'md',\n ...props\n}: PopoverContentProps) {\n return (\n <PopoverPrimitive.Portal container={container}>\n <PopoverPrimitive.Positioner\n id={positionerId}\n data-slot=\"popover-positioner\"\n align={alignment}\n alignOffset={alignOffset}\n anchor={anchor}\n arrowPadding={arrowPadding}\n collisionAvoidance={collisionAvoidance}\n side={placement}\n sideOffset={sideOffset}\n className={cn('isolate z-50', positionerClassName)}\n >\n <PopoverPrimitive.Popup\n data-slot=\"popover-content\"\n className={cn(popoverContentVariants({ size }), className)}\n {...props}\n >\n {children}\n </PopoverPrimitive.Popup>\n {arrow ? <PopoverArrow /> : null}\n </PopoverPrimitive.Positioner>\n </PopoverPrimitive.Portal>\n )\n}\n\nfunction PopoverHeader({ className, ...props }: React.ComponentProps<'div'>) {\n return (\n <div\n data-slot=\"popover-header\"\n className={cn(\n 'flex shrink-0 items-center gap-space-8 border-b border-border-subtle py-space-8 pr-space-8 pl-space-12',\n className,\n )}\n {...props}\n />\n )\n}\n\nfunction PopoverTitle({ className, ...props }: PopoverPrimitive.Title.Props) {\n return (\n <PopoverPrimitive.Title\n data-slot=\"popover-title\"\n className={cn('min-w-0 flex-1 truncate text-label-md text-text-primary', className)}\n {...props}\n />\n )\n}\n\nfunction PopoverClose({\n children,\n className,\n 'aria-label': ariaLabel = 'Close',\n ...props\n}: PopoverPrimitive.Close.Props) {\n return (\n <PopoverPrimitive.Close\n data-slot=\"popover-close\"\n render={\n <ControlButton\n type=\"icon\"\n variant=\"ghost\"\n size=\"icon-md\"\n className={cn('shrink-0 text-button-ghost-icon-rest', className)}\n />\n }\n aria-label={ariaLabel}\n {...props}\n >\n {children ?? <IconProvider icon=\"xmark\" className=\"size-4\" />}\n </PopoverPrimitive.Close>\n )\n}\n\nfunction PopoverBody({ className, ...props }: React.ComponentProps<'div'>) {\n return <div data-slot=\"popover-body\" className={cn('min-h-0 overflow-auto p-space-12', className)} {...props} />\n}\n\nfunction PopoverDescription({ className, ...props }: PopoverPrimitive.Description.Props) {\n return (\n <PopoverPrimitive.Description\n data-slot=\"popover-description\"\n className={cn('text-body-sm text-text-secondary', className)}\n {...props}\n />\n )\n}\n\nfunction PopoverFooter({ className, ...props }: React.ComponentProps<'div'>) {\n return (\n <div\n data-slot=\"popover-footer\"\n className={cn(\n 'flex shrink-0 items-center justify-end gap-space-8 border-t border-border-subtle px-space-12 py-space-8',\n className,\n )}\n {...props}\n />\n )\n}\n\ntype PopoverOrigin = {\n horizontal: 'center' | 'left' | 'right' | number\n vertical: 'bottom' | 'center' | 'top' | number\n}\n\ntype PopoverCloseReason = 'backdropClick' | 'escapeKeyDown'\n\ntype PopoverActions = {\n updatePosition: () => void\n}\n\ntype LegacyPopoverSlotProps = {\n paper?: {\n className?: string\n ref?: React.Ref<HTMLDivElement>\n sx?: unknown\n [key: string]: unknown\n }\n transition?: {\n onEntered?: () => void\n [key: string]: unknown\n }\n [key: string]: unknown\n}\n\ntype PopoverWrapperBaseProps = Pick<\n PopoverPrimitive.Root.Props,\n 'defaultOpen' | 'modal' | 'onOpenChange' | 'onOpenChangeComplete' | 'open'\n> &\n Omit<\n PopoverContentProps,\n 'alignment' | 'anchor' | 'children' | 'className' | 'placement' | 'positionerClassName' | 'positionerId' | 'ref'\n > & {\n action?: React.Ref<PopoverActions>\n align?: PopoverContentProps['alignment']\n anchorOrigin?: PopoverOrigin\n children: React.ReactNode\n className?: string\n classes?: { paper?: string; root?: string; [key: string]: string | undefined }\n /** @deprecated Base UI handles unmounting after transitions. */\n closeAfterTransition?: unknown\n contentClassName?: string\n /** Controls Base UI focus trapping in external-anchor mode. */\n disableEnforceFocus?: boolean\n id?: string\n onClose?: (event: Event, reason: PopoverCloseReason) => void\n side?: PopoverContentProps['placement']\n slotProps?: LegacyPopoverSlotProps\n /** @deprecated MUI Emotion styles are accepted but ignored. Use token-based classes. */\n sx?: unknown\n transformOrigin?: PopoverOrigin\n }\n\ntype TriggerPopoverProps = PopoverWrapperBaseProps & {\n anchorEl?: never\n trigger: React.ReactElement\n triggerProps?: Omit<PopoverPrimitive.Trigger.Props, 'children' | 'render'>\n}\n\ntype AnchoredPopoverProps = PopoverWrapperBaseProps & {\n anchorEl: Element | null | undefined | (() => Element | null)\n trigger?: never\n triggerProps?: never\n}\n\ntype PopoverWrapperProps = TriggerPopoverProps | AnchoredPopoverProps\n\nconst defaultAnchorOrigin: PopoverOrigin = { horizontal: 'left', vertical: 'top' }\nconst defaultTransformOrigin: PopoverOrigin = { horizontal: 'left', vertical: 'top' }\n\nfunction resolveOriginPlacement(\n anchorOrigin: PopoverOrigin,\n transformOrigin: PopoverOrigin,\n): {\n align: NonNullable<PopoverContentProps['alignment']>\n side: NonNullable<PopoverContentProps['placement']>\n} {\n const anchorVertical = anchorOrigin.vertical\n const anchorHorizontal = anchorOrigin.horizontal\n const transformVertical = transformOrigin.vertical\n const transformHorizontal = transformOrigin.horizontal\n\n let side: NonNullable<PopoverContentProps['placement']> = 'bottom'\n\n if (anchorVertical === 'bottom' && transformVertical === 'top') {\n side = 'bottom'\n } else if (anchorVertical === 'top' && transformVertical === 'bottom') {\n side = 'top'\n } else if (anchorHorizontal === 'right' && transformHorizontal === 'left') {\n side = 'right'\n } else if (anchorHorizontal === 'left' && transformHorizontal === 'right') {\n side = 'left'\n }\n\n const alignmentOrigin = side === 'top' || side === 'bottom' ? anchorHorizontal : anchorVertical\n const align =\n alignmentOrigin === 'left' || alignmentOrigin === 'top'\n ? 'start'\n : alignmentOrigin === 'right' || alignmentOrigin === 'bottom'\n ? 'end'\n : 'center'\n\n return { align, side }\n}\n\nfunction resolveAnchorElement(anchorEl: AnchoredPopoverProps['anchorEl']): Element | null {\n return typeof anchorEl === 'function' ? anchorEl() : anchorEl ?? null\n}\n\n/**\n * Convenience API for the common popover composition.\n * Use the compound parts directly when the root, trigger, or content need custom composition.\n */\nfunction Popover({\n action,\n align,\n anchorEl,\n anchorOrigin = defaultAnchorOrigin,\n className,\n classes,\n closeAfterTransition: _closeAfterTransition,\n children,\n contentClassName,\n defaultOpen,\n disableEnforceFocus = false,\n id,\n modal,\n onClose,\n onOpenChange,\n onOpenChangeComplete,\n open,\n side,\n sideOffset,\n slotProps,\n sx: _sx,\n transformOrigin = defaultTransformOrigin,\n trigger,\n triggerProps,\n ...contentProps\n}: PopoverWrapperProps) {\n const isExternallyAnchored = !trigger\n const { align: originAlign, side: originSide } = resolveOriginPlacement(anchorOrigin, transformOrigin)\n const resolvedModal = modal ?? (isExternallyAnchored && !disableEnforceFocus ? 'trap-focus' : false)\n\n React.useImperativeHandle(\n action,\n () => ({\n // Base UI automatically tracks changes to the anchor and popup dimensions.\n updatePosition: () => undefined,\n }),\n [],\n )\n\n return (\n <PopoverRoot\n defaultOpen={defaultOpen}\n modal={resolvedModal}\n onOpenChange={(nextOpen, details) => {\n onOpenChange?.(nextOpen, details)\n if (!nextOpen) {\n onClose?.(details.event, details.reason === 'escape-key' ? 'escapeKeyDown' : 'backdropClick')\n }\n }}\n onOpenChangeComplete={(nextOpen) => {\n onOpenChangeComplete?.(nextOpen)\n if (nextOpen) {\n slotProps?.transition?.onEntered?.()\n }\n }}\n open={open}\n >\n {trigger ? <PopoverTrigger {...triggerProps} render={trigger} /> : null}\n <PopoverContent\n {...contentProps}\n ref={slotProps?.paper?.ref}\n alignment={align ?? originAlign}\n anchor={anchorEl}\n className={cn(contentClassName, classes?.paper, slotProps?.paper?.className)}\n finalFocus={\n isExternallyAnchored\n ? () => resolveAnchorElement(anchorEl as AnchoredPopoverProps['anchorEl']) as HTMLElement | null\n : contentProps.finalFocus\n }\n placement={side ?? originSide}\n positionerClassName={cn(className, classes?.root)}\n positionerId={id}\n sideOffset={sideOffset ?? (isExternallyAnchored ? 0 : undefined)}\n size={contentProps.size ?? (isExternallyAnchored ? 'auto' : undefined)}\n >\n {children}\n {resolvedModal === 'trap-focus' ? (\n <PopoverPrimitive.Close className=\"sr-only\">Close popover</PopoverPrimitive.Close>\n ) : null}\n </PopoverContent>\n </PopoverRoot>\n )\n}\n\nexport {\n Popover,\n PopoverArrow,\n PopoverBody,\n PopoverClose,\n PopoverContent,\n PopoverDescription,\n PopoverFooter,\n PopoverHeader,\n PopoverRoot,\n PopoverTitle,\n PopoverTrigger,\n}\nexport type {\n AnchoredPopoverProps,\n PopoverActions,\n PopoverCloseReason,\n PopoverContentProps,\n PopoverOrigin,\n PopoverWrapperProps,\n TriggerPopoverProps,\n}\n"],"names":["_formatErrorMessage","REASONS.triggerPress","REASONS.triggerHover","REASONS.escapeKey","REASONS.closePress","REASONS.focusOut","PopoverRootComponent","REASONS.imperativeAction","_jsxs","_jsx","PopoverRoot","PopoverTrigger","PopoverPortal","PopoverPositioner","PopoverPopup","PopoverArrow","PopoverTitle","PopoverDescription","PopoverClose","PopoverPrimitive.Root","PopoverPrimitive.Trigger","PopoverPrimitive.Arrow","cn","PopoverPrimitive.Portal","PopoverPrimitive.Positioner","PopoverPrimitive.Popup","PopoverPrimitive.Title","PopoverPrimitive.Close","PopoverPrimitive.Description","_b","_a"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAIO,MAAM,qBAAkC,sBAAM,cAAc,MAAS;AAC5E,IAAI,QAAQ,IAAI,aAAa,aAAc,oBAAmB,cAAc;AACrE,SAAS,sBAAsB,UAAU;AAC9C,QAAM,UAAU,MAAM,WAAW,kBAAkB;AACnD,MAAI,YAAY,UAAa,CAAC,UAAU;AACtC,UAAM,IAAI,MAAM,QAAQ,IAAI,aAAa,eAAe,gGAAgGA,mBAAoB,EAAE,CAAC;AAAA,EACjL;AACA,SAAO;AACT;ACDA,MAAM,YAAY;AAAA,EAChB,GAAG;AAAA,EACH,UAAU,WAAS,MAAM;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMzB,aAAa,WAAS,MAAM,gBAAgB,oBAAoB,CAAC,oBAAoB,KAAK,KAAK,IAAI,SAAY,MAAM;AAAA,EAC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AA,YACR,WAAWW,WAAG,kBAAkB,mCAAS,QAAO,4CAAW,UAAX,mBAAkB,SAAS;AAAA,YAC3E,YACE,uBACI,MAAM,qBAAqB,QAA4C,IACvE,aAAa;AAAA,YAEnB,WAAW,QAAQ;AAAA,YACnB,qBAAqBA,WAAG,WAAW,mCAAS,IAAI;AAAA,YAChD,cAAc;AAAA,YACd,YAAY,eAAe,uBAAuB,IAAI;AAAA,YACtD,MAAM,aAAa,SAAS,uBAAuB,SAAS;AAAA,YAE3D,UAAA;AAAA,cAAA;AAAA,cACA,kBAAkB,eACjB,oBAACK,gBAAA,EAAuB,WAAU,WAAU,UAAA,gBAAA,CAAa,IACvD;AAAA,YAAA;AAAA,UAAA;AAAA,QAAA;AAAA,MACN;AAAA,IAAA;AAAA,EAAA;AAGN;","x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]}
|
|
@@ -3964,7 +3964,7 @@ function TooltipArrow2({ className, ...props }) {
|
|
|
3964
3964
|
}
|
|
3965
3965
|
function TooltipContent({
|
|
3966
3966
|
className,
|
|
3967
|
-
side = "
|
|
3967
|
+
side = "bottom",
|
|
3968
3968
|
sideOffset = 4,
|
|
3969
3969
|
align = "center",
|
|
3970
3970
|
alignOffset = 0,
|
|
@@ -3982,14 +3982,14 @@ function TooltipContent({
|
|
|
3982
3982
|
alignOffset,
|
|
3983
3983
|
side,
|
|
3984
3984
|
sideOffset,
|
|
3985
|
-
className: classNames("isolate z-
|
|
3985
|
+
className: classNames("isolate z-[1500]", positionerClassName),
|
|
3986
3986
|
children: [
|
|
3987
3987
|
/* @__PURE__ */ jsx(
|
|
3988
3988
|
TooltipPopup,
|
|
3989
3989
|
{
|
|
3990
3990
|
"data-slot": "tooltip-content",
|
|
3991
3991
|
className: classNames(
|
|
3992
|
-
"z-
|
|
3992
|
+
"z-[1500] max-w-xs rounded-md border border-border-default bg-background-inverse px-3 py-1.5 text-body-sm text-text-on-inverse shadow-md",
|
|
3993
3993
|
className
|
|
3994
3994
|
),
|
|
3995
3995
|
style,
|
|
@@ -4014,7 +4014,7 @@ function parsePlacement(placement) {
|
|
|
4014
4014
|
}
|
|
4015
4015
|
function LegacyTooltip({
|
|
4016
4016
|
title,
|
|
4017
|
-
placement = "
|
|
4017
|
+
placement = "bottom",
|
|
4018
4018
|
size: size2 = "fit",
|
|
4019
4019
|
border,
|
|
4020
4020
|
padding,
|
|
@@ -4038,13 +4038,13 @@ function LegacyTooltip({
|
|
|
4038
4038
|
const contentClass = classNames(
|
|
4039
4039
|
sizeClasses[size2 ?? "fit"],
|
|
4040
4040
|
arrow2 ? "overflow-visible" : "custom-scrollbar overflow-auto",
|
|
4041
|
-
variant === "light" && "border-border-default bg-background-
|
|
4042
|
-
variant === "dark" && "border-border-default bg-background-
|
|
4041
|
+
variant === "light" && "border-border-default bg-background-overlay text-text-primary shadow-md",
|
|
4042
|
+
variant === "dark" && "border-border-default bg-background-inverse text-text-on-inverse",
|
|
4043
4043
|
variant === "unstyled" && "border-0 bg-transparent p-0 text-text-primary shadow-none",
|
|
4044
4044
|
border && variant === "light" && "border",
|
|
4045
4045
|
classes == null ? void 0 : classes.tooltip
|
|
4046
4046
|
);
|
|
4047
|
-
const arrowClassName = variant === "dark" ? "text-background-
|
|
4047
|
+
const arrowClassName = variant === "dark" ? "text-background-inverse" : "text-background-overlay";
|
|
4048
4048
|
return (
|
|
4049
4049
|
// Match MUI Tooltip feel: open immediately on hover (Base UI defaults are 300–600ms).
|
|
4050
4050
|
/* @__PURE__ */ jsx(TooltipProvider2, { delay: 0, closeDelay: 0, children: /* @__PURE__ */ jsxs(
|
|
@@ -4093,4 +4093,4 @@ export {
|
|
|
4093
4093
|
safePolygon as s,
|
|
4094
4094
|
useHoverReferenceInteraction as u
|
|
4095
4095
|
};
|
|
4096
|
-
//# sourceMappingURL=Tooltip-
|
|
4096
|
+
//# sourceMappingURL=Tooltip-a0OxvWau.js.map
|