tfy-web-components 0.0.43 → 0.0.45
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-CPJYHldw.js → Button-HHEfL8b9.js} +5 -4
- package/dist/{Button-CPJYHldw.js.map → Button-HHEfL8b9.js.map} +1 -1
- package/dist/CSPContext-Cldo9QDp.js +13 -0
- package/dist/CSPContext-Cldo9QDp.js.map +1 -0
- package/dist/{CompositeItem-DJWNsIwE.js → CompositeItem-GNejxLcK.js} +3 -3
- package/dist/{CompositeItem-DJWNsIwE.js.map → CompositeItem-GNejxLcK.js.map} +1 -1
- package/dist/{CompositeRoot-BlljDWkR.js → CompositeRoot-7_u1HqDT.js} +9 -47
- package/dist/CompositeRoot-7_u1HqDT.js.map +1 -0
- package/dist/DropdownMenu-Crlf-J4E.js +3304 -0
- package/dist/DropdownMenu-Crlf-J4E.js.map +1 -0
- package/dist/{Input-Dcxu6SVO.js → Input-BS9fWUAf.js} +3 -3
- package/dist/{Input-Dcxu6SVO.js.map → Input-BS9fWUAf.js.map} +1 -1
- package/dist/{Modal-BUWlwJcN.js → Modal-DaHG8mjy.js} +10 -10
- package/dist/{Modal-BUWlwJcN.js.map → Modal-DaHG8mjy.js.map} +1 -1
- package/dist/Popover-A8IyEt2w.js +400 -0
- package/dist/Popover-A8IyEt2w.js.map +1 -0
- package/dist/{Popover-BqqXJnK1.js → PopoverPopup-teGm7D5T.js} +25 -498
- package/dist/PopoverPopup-teGm7D5T.js.map +1 -0
- package/dist/PrehydrationScript-B3u_PP2W.js +49 -0
- package/dist/PrehydrationScript-B3u_PP2W.js.map +1 -0
- package/dist/Select-BtX40h2K.js +2187 -0
- package/dist/Select-BtX40h2K.js.map +1 -0
- package/dist/{useValueAsRef-BfFRcMg6.js → addEventListener-D-i9O6BG.js} +8 -8
- package/dist/addEventListener-D-i9O6BG.js.map +1 -0
- package/dist/clamp-D7_nsB8C.js +30 -0
- package/dist/clamp-D7_nsB8C.js.map +1 -0
- package/dist/components/atoms/Accordion.es.js +9 -9
- package/dist/components/atoms/Avatar.es.js +9 -9
- package/dist/components/atoms/Avatar.es.js.map +1 -1
- package/dist/components/atoms/Badge.d.ts +5 -6
- package/dist/components/atoms/Badge.es.js +80 -43
- package/dist/components/atoms/Badge.es.js.map +1 -1
- package/dist/components/atoms/Button.d.ts +1 -1
- package/dist/components/atoms/Button.es.js +2 -2
- package/dist/components/atoms/ButtonGroup.es.js +1 -1
- package/dist/components/atoms/Combobox.d.ts +34 -0
- package/dist/components/atoms/Combobox.es.js +3252 -0
- package/dist/components/atoms/Combobox.es.js.map +1 -0
- package/dist/components/atoms/ContextMenu.d.ts +12 -0
- package/dist/components/atoms/ContextMenu.es.js +259 -0
- package/dist/components/atoms/ContextMenu.es.js.map +1 -0
- package/dist/components/atoms/DropdownMenu.d.ts +51 -0
- package/dist/components/atoms/DropdownMenu.es.js +31 -0
- package/dist/components/atoms/DropdownMenu.es.js.map +1 -0
- package/dist/components/atoms/IconButton.d.ts +1 -1
- package/dist/components/atoms/IconButton.es.js +3 -3
- package/dist/components/atoms/IconButton.es.js.map +1 -1
- package/dist/components/atoms/IconProvider.es.js +4 -1
- package/dist/components/atoms/IconProvider.es.js.map +1 -1
- package/dist/components/atoms/Modal.es.js +1 -1
- package/dist/components/atoms/OverflowButton.es.js +2 -2
- package/dist/components/atoms/PaginationDot.d.ts +14 -0
- package/dist/components/atoms/PaginationDot.es.js +58 -0
- package/dist/components/atoms/PaginationDot.es.js.map +1 -0
- package/dist/components/atoms/PaginationItem.d.ts +15 -0
- package/dist/components/atoms/PaginationItem.es.js +87 -0
- package/dist/components/atoms/PaginationItem.es.js.map +1 -0
- package/dist/components/atoms/Popover.d.ts +10 -0
- package/dist/components/atoms/Popover.es.js +50 -0
- package/dist/components/atoms/Popover.es.js.map +1 -0
- package/dist/components/atoms/Select.d.ts +63 -0
- package/dist/components/atoms/Select.es.js +23 -0
- package/dist/components/atoms/Select.es.js.map +1 -0
- package/dist/components/atoms/Switch.es.js +7 -6
- package/dist/components/atoms/Switch.es.js.map +1 -1
- package/dist/components/atoms/TabButton.d.ts +31 -6
- package/dist/components/atoms/TabButton.es.js +425 -55
- package/dist/components/atoms/TabButton.es.js.map +1 -1
- package/dist/components/atoms/Tag.d.ts +2 -2
- package/dist/components/atoms/Tag.es.js +66 -33
- package/dist/components/atoms/Tag.es.js.map +1 -1
- package/dist/components/atoms/Tooltip.es.js +1153 -19
- package/dist/components/atoms/Tooltip.es.js.map +1 -1
- package/dist/components/atoms/stories/OverlayThemePanels.d.ts +8 -0
- package/dist/components/molecules/Alert.es.js +3 -3
- package/dist/components/molecules/CopyField.es.js +2 -2
- package/dist/components/molecules/CustomDrawer.es.js +1 -1
- package/dist/components/molecules/Dialog.es.js +1 -1
- package/dist/components/molecules/ImagesPreview.es.js +2 -2
- package/dist/components/molecules/Input.es.js +2 -2
- package/dist/components/molecules/Markdown.es.js +1 -1
- package/dist/components/molecules/Pagination.d.ts +58 -0
- package/dist/components/molecules/Pagination.es.js +272 -0
- package/dist/components/molecules/Pagination.es.js.map +1 -0
- package/dist/components/molecules/SimpleCodeEditor.es.js +3 -3
- package/dist/components/molecules/SimpleCodeEditor.es.js.map +1 -1
- package/dist/components/molecules/TagGroup.d.ts +11 -0
- package/dist/components/molecules/TagGroup.es.js +59 -0
- package/dist/components/molecules/TagGroup.es.js.map +1 -0
- package/dist/components/molecules/ToggleButton.es.js +2 -2
- package/dist/components/molecules/TopBar.d.ts +47 -0
- package/dist/components/molecules/TopBar.es.js +164 -0
- package/dist/components/molecules/TopBar.es.js.map +1 -0
- package/dist/components/molecules/agent-chat/AssistantMessage.d.ts +3 -1
- package/dist/components/molecules/agent-chat.es.js +4 -3
- package/dist/components/molecules/agent-chat.es.js.map +1 -1
- package/dist/components/theme/colors.es.js +1 -0
- package/dist/components/theme/colors.es.js.map +1 -1
- package/dist/composite-DnShFmi7.js +551 -0
- package/dist/composite-DnShFmi7.js.map +1 -0
- package/dist/{composite-C22yiNy1.js → composite-IA--dSel.js} +2 -2
- package/dist/{composite-C22yiNy1.js.map → composite-IA--dSel.js.map} +1 -1
- package/dist/constants-BaUKmVF_.js +103 -0
- package/dist/constants-BaUKmVF_.js.map +1 -0
- package/dist/{index-C-2yrwZl.js → element-B1vbc-LG.js} +69 -111
- package/dist/element-B1vbc-LG.js.map +1 -0
- package/dist/error-nCTLdGUr.js +6 -0
- package/dist/{error-FX4R42W-.js.map → error-nCTLdGUr.js.map} +1 -1
- package/dist/index.d.ts +12 -2
- package/dist/index.es.js +65 -12
- package/dist/index.es.js.map +1 -1
- package/dist/{inertValue-IJM5NA30.js → inertValue-C1Ml1s55.js} +2 -2
- package/dist/{inertValue-IJM5NA30.js.map → inertValue-C1Ml1s55.js.map} +1 -1
- package/dist/isElementDisabled-lq1fKien.js +47 -0
- package/dist/isElementDisabled-lq1fKien.js.map +1 -0
- package/dist/new-components/atoms/Alert.d.ts +9 -1
- package/dist/new-components/atoms/Alert.es.js +38 -13
- package/dist/new-components/atoms/Alert.es.js.map +1 -1
- package/dist/new-components/atoms/Checkbox.es.js +8 -7
- package/dist/new-components/atoms/Checkbox.es.js.map +1 -1
- package/dist/new-components/atoms/EmptyState.d.ts +3 -0
- package/dist/new-components/atoms/EmptyState.es.js +9 -4
- package/dist/new-components/atoms/EmptyState.es.js.map +1 -1
- package/dist/new-components/atoms/Popover.es.js +3 -2
- package/dist/new-components/atoms/Popover.es.js.map +1 -1
- package/dist/new-components/atoms/Radio.es.js +13 -24
- package/dist/new-components/atoms/Radio.es.js.map +1 -1
- package/dist/new-components/atoms/SegmentedControl.es.js +7 -7
- package/dist/new-components/atoms/Slider.es.js +14 -88
- package/dist/new-components/atoms/Slider.es.js.map +1 -1
- package/dist/new-components/atoms/Toast.d.ts +8 -12
- package/dist/new-components/atoms/Toast.es.js +202 -145
- package/dist/new-components/atoms/Toast.es.js.map +1 -1
- package/dist/new-components/atoms/Toggletip.d.ts +1 -1
- package/dist/new-components/atoms/Toggletip.es.js +3 -2
- package/dist/new-components/atoms/Toggletip.es.js.map +1 -1
- package/dist/new-components/atoms/stories/ThemeComparison.d.ts +2 -1
- package/dist/serializeValue-BLvnTy3o.js +17 -0
- package/dist/serializeValue-BLvnTy3o.js.map +1 -0
- package/dist/stringifyLocale-DOx30wH1.js +13 -0
- package/dist/stringifyLocale-DOx30wH1.js.map +1 -0
- package/dist/style.css +1 -1
- package/dist/tokens.css +24 -6
- package/dist/{useAnimationFrame-DwhymJoW.js → useAnimationFrame-DqvuRtgK.js} +2 -2
- package/dist/{useAnimationFrame-DwhymJoW.js.map → useAnimationFrame-DqvuRtgK.js.map} +1 -1
- package/dist/{useAriaLabelledBy-Lyj6n_TU.js → useAriaLabelledBy-CP4wKTYs.js} +3 -3
- package/dist/{useAriaLabelledBy-Lyj6n_TU.js.map → useAriaLabelledBy-CP4wKTYs.js.map} +1 -1
- package/dist/{useBaseUiId-CmLtG9DS.js → useBaseUiId-CYT1vFMG.js} +64 -44
- package/dist/{useBaseUiId-CmLtG9DS.js.map → useBaseUiId-CYT1vFMG.js.map} +1 -1
- package/dist/{useButton-D2BMuSfC.js → useButton-BlHadUfM.js} +4 -4
- package/dist/{useButton-D2BMuSfC.js.map → useButton-BlHadUfM.js.map} +1 -1
- package/dist/{CompositeList-D4xmSZ5V.js → useCompositeListItem-DlAKWsHE.js} +59 -59
- package/dist/useCompositeListItem-DlAKWsHE.js.map +1 -0
- package/dist/{useControlled-BSyYkg5C.js → useControlled-DMDWXIzj.js} +2 -2
- package/dist/{useControlled-BSyYkg5C.js.map → useControlled-DMDWXIzj.js.map} +1 -1
- package/dist/useFocus-C__7iwl1.js +137 -0
- package/dist/useFocus-C__7iwl1.js.map +1 -0
- package/dist/{useIsoLayoutEffect-e9VA-ICd.js → useIsoLayoutEffect-D2lpsB9D.js} +8 -4
- package/dist/{useIsoLayoutEffect-e9VA-ICd.js.map → useIsoLayoutEffect-D2lpsB9D.js.map} +1 -1
- package/dist/{usePopupHandleStore-CkW2IoED.js → usePopupHandleStore-C_Vw7xcw.js} +1966 -2002
- package/dist/usePopupHandleStore-C_Vw7xcw.js.map +1 -0
- package/dist/{Tooltip-uQIVdskf.js → usePositioner-BmYVsMO_.js} +17 -1402
- package/dist/usePositioner-BmYVsMO_.js.map +1 -0
- package/dist/{useOpenInteractionType-CDFYOw2d.js → useScrollLock-By-42HSc.js} +74 -58
- package/dist/useScrollLock-By-42HSc.js.map +1 -0
- package/dist/{useLabelableId-CcIE3RU0.js → useSetFieldFocused-CcdG6FNp.js} +27 -35
- package/dist/useSetFieldFocused-CcdG6FNp.js.map +1 -0
- package/dist/{useTimeout-BXf1hDIL.js → useTimeout-D1vYJgq4.js} +3 -3
- package/dist/{useTimeout-BXf1hDIL.js.map → useTimeout-D1vYJgq4.js.map} +1 -1
- package/dist/{useTransitionStatus-C9gg_XJ-.js → useTransitionStatus-CHrs3i5F.js} +3 -3
- package/dist/{useTransitionStatus-C9gg_XJ-.js.map → useTransitionStatus-CHrs3i5F.js.map} +1 -1
- package/dist/useTriggerFocusGuards-CXAhW8P6.js +100 -0
- package/dist/useTriggerFocusGuards-CXAhW8P6.js.map +1 -0
- package/dist/useValueChanged-BnlOop8k.js +16 -0
- package/dist/useValueChanged-BnlOop8k.js.map +1 -0
- package/package.json +1 -1
- package/dist/CompositeList-D4xmSZ5V.js.map +0 -1
- package/dist/CompositeRoot-BlljDWkR.js.map +0 -1
- package/dist/Popover-BqqXJnK1.js.map +0 -1
- package/dist/Tooltip-uQIVdskf.js.map +0 -1
- package/dist/composite-BL4bbAWg.js +0 -66
- package/dist/composite-BL4bbAWg.js.map +0 -1
- package/dist/error-FX4R42W-.js +0 -6
- package/dist/index-C-2yrwZl.js.map +0 -1
- package/dist/shadowDom-BfewIqRj.js +0 -52
- package/dist/shadowDom-BfewIqRj.js.map +0 -1
- package/dist/useLabelableId-CcIE3RU0.js.map +0 -1
- package/dist/useOpenInteractionType-CDFYOw2d.js.map +0 -1
- package/dist/usePopupHandleStore-CkW2IoED.js.map +0 -1
- package/dist/useValueAsRef-BfFRcMg6.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tooltip.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
|
|
1
|
+
{"version":3,"file":"Tooltip.es.js","sources":["../../../node_modules/@base-ui/react/floating-ui-react/components/FloatingDelayGroup.mjs","../../../node_modules/@base-ui/react/floating-ui-react/hooks/useClientPoint.mjs","../../../node_modules/@base-ui/react/tooltip/root/TooltipRootContext.mjs","../../../node_modules/@base-ui/react/tooltip/store/TooltipStore.mjs","../../../node_modules/@base-ui/react/tooltip/root/TooltipRoot.mjs","../../../node_modules/@base-ui/react/tooltip/provider/TooltipProviderContext.mjs","../../../node_modules/@base-ui/react/tooltip/utils/constants.mjs","../../../node_modules/@base-ui/react/tooltip/trigger/TooltipTrigger.mjs","../../../node_modules/@base-ui/react/tooltip/portal/TooltipPortalContext.mjs","../../../node_modules/@base-ui/react/utils/FloatingPortalLite.mjs","../../../node_modules/@base-ui/react/tooltip/portal/TooltipPortal.mjs","../../../node_modules/@base-ui/react/tooltip/positioner/TooltipPositionerContext.mjs","../../../node_modules/@base-ui/react/tooltip/positioner/TooltipPositioner.mjs","../../../node_modules/@base-ui/react/tooltip/popup/TooltipPopup.mjs","../../../node_modules/@base-ui/react/tooltip/provider/TooltipProvider.mjs","../../../src/components/atoms/Tooltip.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useTimeout, Timeout } from '@base-ui/utils/useTimeout';\nimport { useIsoLayoutEffect } from '@base-ui/utils/useIsoLayoutEffect';\nimport { getDelay } from \"../hooks/useHoverShared.mjs\";\nimport { createChangeEventDetails } from \"../../internals/createBaseUIEventDetails.mjs\";\nimport { REASONS } from \"../../internals/reasons.mjs\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst FloatingDelayGroupContext = /*#__PURE__*/React.createContext({\n hasProvider: false,\n timeoutMs: 0,\n delayRef: {\n current: 0\n },\n initialDelayRef: {\n current: 0\n },\n timeout: new Timeout(),\n currentIdRef: {\n current: null\n },\n currentContextRef: {\n current: null\n }\n});\nif (process.env.NODE_ENV !== \"production\") FloatingDelayGroupContext.displayName = \"FloatingDelayGroupContext\";\nfunction resetDelayRef(delayRef, initialDelayRef) {\n delayRef.current = initialDelayRef.current;\n}\n/**\n * Experimental next version of `FloatingDelayGroup` to become the default\n * in the future. This component is not yet stable.\n * Provides context for a group of floating elements that should share a\n * `delay`. Unlike `FloatingDelayGroup`, `useDelayGroup` with this\n * component does not cause a re-render of unrelated consumers of the\n * context when the delay changes.\n * @see https://floating-ui.com/docs/FloatingDelayGroup\n * @internal\n */\nexport function FloatingDelayGroup(props) {\n const {\n children,\n delay,\n timeoutMs = 0\n } = props;\n const delayRef = React.useRef(delay);\n const initialDelayRef = React.useRef(delay);\n const currentIdRef = React.useRef(null);\n const currentContextRef = React.useRef(null);\n const timeout = useTimeout();\n useIsoLayoutEffect(() => {\n initialDelayRef.current = delay;\n if (!currentIdRef.current) {\n delayRef.current = delay;\n return;\n }\n delayRef.current = {\n open: getDelay(delayRef.current, 'open'),\n close: getDelay(delay, 'close')\n };\n }, [delay, currentIdRef, delayRef, initialDelayRef]);\n return /*#__PURE__*/_jsx(FloatingDelayGroupContext.Provider, {\n value: React.useMemo(() => ({\n hasProvider: true,\n delayRef,\n initialDelayRef,\n currentIdRef,\n timeoutMs,\n currentContextRef,\n timeout\n }), [timeoutMs, timeout]),\n children: children\n });\n}\n/**\n * Enables grouping when called inside a component that's a child of a\n * `FloatingDelayGroup`.\n * @see https://floating-ui.com/docs/FloatingDelayGroup\n * @internal\n */\nexport function useDelayGroup(store, options = {\n open: false\n}) {\n const {\n open\n } = options;\n const floatingId = store.useState('floatingId');\n const groupContext = React.useContext(FloatingDelayGroupContext);\n const {\n currentIdRef,\n delayRef,\n timeoutMs,\n initialDelayRef,\n currentContextRef,\n hasProvider,\n timeout\n } = groupContext;\n const [isInstantPhase, setIsInstantPhase] = React.useState(false);\n const openRef = React.useRef(open);\n useIsoLayoutEffect(() => {\n openRef.current = open;\n }, [open]);\n useIsoLayoutEffect(() => {\n function unset() {\n currentContextRef.current?.setIsInstantPhase(false);\n currentIdRef.current = null;\n currentContextRef.current = null;\n delayRef.current = initialDelayRef.current;\n timeout.clear();\n }\n if (!currentIdRef.current) {\n return undefined;\n }\n if (!open && currentIdRef.current === floatingId) {\n setIsInstantPhase(false);\n if (timeoutMs) {\n const closingId = floatingId;\n timeout.start(timeoutMs, () => {\n // If another tooltip has taken over the group, skip resetting.\n if (store.select('open') || currentIdRef.current && currentIdRef.current !== closingId) {\n return;\n }\n unset();\n });\n return () => {\n if (openRef.current || currentIdRef.current !== closingId) {\n timeout.clear();\n }\n };\n }\n unset();\n }\n return undefined;\n }, [open, floatingId, currentIdRef, delayRef, timeoutMs, initialDelayRef, currentContextRef, timeout, store]);\n useIsoLayoutEffect(() => {\n if (!open) {\n return;\n }\n const prevContext = currentContextRef.current;\n const prevId = currentIdRef.current;\n\n // A new tooltip is opening, so cancel any pending timeout that would reset\n // the group's delay back to the initial value.\n timeout.clear();\n currentContextRef.current = {\n onOpenChange: store.setOpen,\n setIsInstantPhase\n };\n currentIdRef.current = floatingId;\n delayRef.current = {\n open: 0,\n close: getDelay(initialDelayRef.current, 'close')\n };\n if (prevId !== null && prevId !== floatingId) {\n setIsInstantPhase(true);\n prevContext?.setIsInstantPhase(true);\n prevContext?.onOpenChange(false, createChangeEventDetails(REASONS.none));\n } else {\n setIsInstantPhase(false);\n prevContext?.setIsInstantPhase(false);\n }\n }, [open, floatingId, store, currentIdRef, delayRef, initialDelayRef, currentContextRef, timeout]);\n useIsoLayoutEffect(() => {\n return () => {\n if (currentIdRef.current === floatingId) {\n currentContextRef.current = null;\n if (!openRef.current) {\n return;\n }\n currentIdRef.current = null;\n resetDelayRef(delayRef, initialDelayRef);\n timeout.clear();\n }\n };\n }, [currentContextRef, currentIdRef, delayRef, floatingId, initialDelayRef, timeout]);\n return React.useMemo(() => ({\n activeIdRef: currentIdRef,\n hasProvider,\n delayRef,\n isInstantPhase\n }), [currentIdRef, hasProvider, delayRef, isInstantPhase]);\n}","'use client';\n\nimport * as React from 'react';\nimport { addEventListener } from '@base-ui/utils/addEventListener';\nimport { useStableCallback } from '@base-ui/utils/useStableCallback';\nimport { getWindow } from '@floating-ui/utils/dom';\nimport { contains, getTarget } from \"../utils/element.mjs\";\nimport { isMouseLikePointerType } from \"../utils/event.mjs\";\nfunction createVirtualElement(domElement, data) {\n let offsetX = null;\n let offsetY = null;\n let isAutoUpdateEvent = false;\n return {\n contextElement: domElement || undefined,\n getBoundingClientRect() {\n const domRect = domElement?.getBoundingClientRect() || {\n width: 0,\n height: 0,\n x: 0,\n y: 0\n };\n const isXAxis = data.axis === 'x' || data.axis === 'both';\n const isYAxis = data.axis === 'y' || data.axis === 'both';\n const canTrackCursorOnAutoUpdate = ['mouseenter', 'mousemove'].includes(data.dataRef.current.openEvent?.type || '') && data.pointerType !== 'touch';\n const width = data.axis === 'y' ? domRect.width : 0;\n const height = data.axis === 'x' ? domRect.height : 0;\n let x = domRect.x;\n let y = domRect.y;\n if (offsetX == null && data.x && isXAxis) {\n offsetX = domRect.x - data.x;\n }\n if (offsetY == null && data.y && isYAxis) {\n offsetY = domRect.y - data.y;\n }\n x -= offsetX || 0;\n y -= offsetY || 0;\n if (!isAutoUpdateEvent || canTrackCursorOnAutoUpdate) {\n x = isXAxis && data.x != null ? data.x : x;\n y = isYAxis && data.y != null ? data.y : y;\n }\n isAutoUpdateEvent = true;\n return {\n width,\n height,\n x,\n y,\n top: y,\n right: x + width,\n bottom: y + height,\n left: x\n };\n }\n };\n}\nfunction isMouseBasedEvent(event) {\n return event != null && event.clientX != null;\n}\n/**\n * Positions the floating element relative to a client point (in the viewport),\n * such as the mouse position. By default, it follows the mouse cursor.\n * @see https://floating-ui.com/docs/useClientPoint\n */\nexport function useClientPoint(store, props = {}) {\n const {\n enabled = true,\n axis = 'both'\n } = props;\n const open = store.useState('open');\n const floating = store.useState('floatingElement');\n const domReference = store.useState('domReferenceElement');\n const dataRef = store.context.dataRef;\n const initialRef = React.useRef(false);\n const cleanupListenerRef = React.useRef(null);\n const [pointerType, setPointerType] = React.useState();\n const [reactive, setReactive] = React.useState([]);\n const resetReference = useStableCallback(reference => {\n store.set('positionReference', reference);\n });\n const setReference = useStableCallback((newX, newY, referenceElement) => {\n if (initialRef.current) {\n return;\n }\n\n // Prevent setting if the open event was not a mouse-like one\n // (e.g. focus to open, then hover over the reference element).\n // Only apply if the event exists.\n if (dataRef.current.openEvent && !isMouseBasedEvent(dataRef.current.openEvent)) {\n return;\n }\n store.set('positionReference', createVirtualElement(referenceElement ?? domReference, {\n x: newX,\n y: newY,\n axis,\n dataRef,\n pointerType\n }));\n });\n const handleReferenceEnterOrMove = useStableCallback(event => {\n if (!open) {\n setReference(event.clientX, event.clientY, event.currentTarget);\n } else if (!cleanupListenerRef.current) {\n // If there's no cleanup, there's no listener, but we want to ensure\n // we add the listener if the cursor landed on the floating element and\n // then back on the reference (i.e. it's interactive).\n setReference(event.clientX, event.clientY, event.currentTarget);\n setReactive([]);\n }\n });\n\n // If the pointer is a mouse-like pointer, we want to continue following the\n // mouse even if the floating element is transitioning out. On touch\n // devices, this is undesirable because the floating element will move to\n // the dismissal touch point.\n const openCheck = isMouseLikePointerType(pointerType) ? floating : open;\n React.useEffect(() => {\n if (!enabled) {\n resetReference(domReference);\n return undefined;\n }\n if (!openCheck) {\n return undefined;\n }\n function cleanupListener() {\n cleanupListenerRef.current?.();\n cleanupListenerRef.current = null;\n }\n const win = getWindow(floating);\n function handleMouseMove(event) {\n const target = getTarget(event);\n if (!contains(floating, target)) {\n setReference(event.clientX, event.clientY);\n } else {\n cleanupListener();\n }\n }\n if (!dataRef.current.openEvent || isMouseBasedEvent(dataRef.current.openEvent)) {\n cleanupListenerRef.current = addEventListener(win, 'mousemove', handleMouseMove);\n } else {\n resetReference(domReference);\n }\n return cleanupListener;\n }, [openCheck, enabled, floating, dataRef, domReference, store, setReference, resetReference, reactive]);\n\n // Clear virtual cursor references when the hook unmounts. Enabled flips are handled above.\n React.useEffect(() => () => {\n store.set('positionReference', null);\n }, [store]);\n React.useEffect(() => {\n if (enabled && !floating) {\n initialRef.current = false;\n }\n }, [enabled, floating]);\n React.useEffect(() => {\n if (!enabled && open) {\n initialRef.current = true;\n }\n }, [enabled, open]);\n const reference = React.useMemo(() => {\n function setPointerTypeRef(event) {\n setPointerType(event.pointerType);\n }\n return {\n onPointerDown: setPointerTypeRef,\n onPointerEnter: setPointerTypeRef,\n onMouseMove: handleReferenceEnterOrMove,\n onMouseEnter: handleReferenceEnterOrMove\n };\n }, [handleReferenceEnterOrMove]);\n return React.useMemo(() => enabled ? {\n reference,\n trigger: reference\n } : {}, [enabled, reference]);\n}","'use client';\n\nimport _formatErrorMessage from \"@base-ui/utils/formatErrorMessage\";\nimport * as React from 'react';\nexport const TooltipRootContext = /*#__PURE__*/React.createContext(undefined);\nif (process.env.NODE_ENV !== \"production\") TooltipRootContext.displayName = \"TooltipRootContext\";\nexport function useTooltipRootContext(optional) {\n const context = React.useContext(TooltipRootContext);\n if (context === undefined && !optional) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? 'Base UI: TooltipRootContext is missing. Tooltip parts must be placed within <Tooltip.Root>.' : _formatErrorMessage(72));\n }\n return context;\n}","import * as React from 'react';\nimport { ReactStore } from '@base-ui/utils/store';\nimport { NOOP } from '@base-ui/utils/empty';\nimport { createChangeEventDetails } from \"../../internals/createBaseUIEventDetails.mjs\";\nimport { REASONS } from \"../../internals/reasons.mjs\";\nimport { NullStore } from \"../../utils/NullStore.mjs\";\nimport { applyPopupOpenChange, createInitialPopupStoreState, popupStoreSelectors, PopupTriggerMap } from \"../../utils/popups/index.mjs\";\nconst selectors = {\n ...popupStoreSelectors,\n disabled: state => state.disabled,\n instantType: state => state.instantType,\n isInstantPhase: state => state.isInstantPhase,\n trackCursorAxis: state => state.trackCursorAxis,\n disableHoverablePopup: state => state.disableHoverablePopup,\n lastOpenChangeReason: state => state.openChangeReason,\n closeOnClick: state => state.closeOnClick,\n // Active and inactive trigger props are the same object, so a constant for triggers that discard\n // them keeps those triggers from re-rendering when the props change.\n appliedTriggerProps: (state, apply) => apply ? state.activeTriggerProps : undefined,\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 `TooltipStore` 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`/`cancelPendingOpen` (called directly by the trigger) and `useSyncedValue` — so the\n * exposed surface can't bypass the open-change pipeline; on the detached fallback store every one of\n * these mutations is a no-op.\n */\n\nexport class TooltipStore 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 applyPopupOpenChange(this, nextOpen, eventDetails, {\n extraState: {\n openChangeReason: eventDetails.reason\n }\n });\n };\n\n // Used by trigger clicks to clear a delayed hover open without reporting a public open-state change.\n cancelPendingOpen(event) {\n this.state.floatingRootContext.dispatchOpenChange(false, createChangeEventDetails(REASONS.triggerPress, event));\n }\n}\n\n/**\n * Creates the inert fallback store used by detached handle-backed triggers while no `Tooltip.Root`\n * is attached. It preserves a tooltip-specific trigger registry in context so detached triggers can\n * register before migrating to the live root store. `setOpen`/`cancelPendingOpen` are no-ops\n * (matching the inert reads/writes of `NullStore`), so a trigger can call them from hover/click\n * handlers while detached without any effect.\n */\nexport function createNullTooltipStore() {\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 cancelPendingOpen: NOOP\n });\n}\nfunction createInitialState(initialState, triggerElements, floatingId, nested = false) {\n const state = {\n ...createInitialPopupStoreState(triggerElements, floatingId, nested),\n disabled: false,\n instantType: undefined,\n isInstantPhase: false,\n trackCursorAxis: 'none',\n disableHoverablePopup: false,\n openChangeReason: null,\n closeOnClick: true,\n closeDelay: 0,\n adaptiveOrigin: undefined,\n ...initialState\n };\n return state;\n}\nfunction createInitialContext(triggerElements) {\n return {\n popupRef: /*#__PURE__*/React.createRef(),\n onOpenChange: undefined,\n onOpenChangeComplete: undefined,\n triggerElements\n };\n}","'use client';\n\nimport * as React from 'react';\nimport { fastComponent } from '@base-ui/utils/fastHooks';\nimport { EMPTY_OBJECT } from '@base-ui/utils/empty';\nimport { useIsoLayoutEffect } from '@base-ui/utils/useIsoLayoutEffect';\nimport { TooltipRootContext } from \"./TooltipRootContext.mjs\";\nimport { useClientPoint, useDismiss } from \"../../floating-ui-react/index.mjs\";\nimport { createChangeEventDetails } from \"../../internals/createBaseUIEventDetails.mjs\";\nimport { PopupHandleAttachment, useImplicitActiveTrigger, usePopupRootStore, useOpenStateTransitions, usePopupInteractionProps } from \"../../utils/popups/index.mjs\";\nimport { mergeProps } from \"../../merge-props/index.mjs\";\nimport { TooltipStore } from \"../store/TooltipStore.mjs\";\nimport { REASONS } from \"../../internals/reasons.mjs\";\n\n/**\n * Groups all parts of the tooltip.\n * Doesn't render its own HTML element.\n *\n * Documentation: [Base UI Tooltip](https://base-ui.com/react/components/tooltip)\n */\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nexport const TooltipRoot = fastComponent(function TooltipRoot(props) {\n const {\n disabled = false,\n defaultOpen = false,\n open: openProp,\n disableHoverablePopup = false,\n trackCursorAxis = 'none',\n actionsRef,\n onOpenChange,\n onOpenChangeComplete,\n handle,\n triggerId: triggerIdProp,\n defaultTriggerId: defaultTriggerIdProp = null,\n children\n } = props;\n const store = usePopupRootStore((floatingId, nested) => new TooltipStore({\n open: defaultOpen,\n openProp,\n activeTriggerId: defaultTriggerIdProp,\n triggerIdProp\n }, floatingId, nested));\n store.useControlledProp('openProp', openProp);\n store.useControlledProp('triggerIdProp', triggerIdProp);\n store.useContextCallback('onOpenChange', onOpenChange);\n store.useContextCallback('onOpenChangeComplete', onOpenChangeComplete);\n const openState = store.useState('open');\n const open = !disabled && openState;\n const activeTriggerId = store.useState('activeTriggerId');\n const mounted = store.useState('mounted');\n const payload = store.useState('payload');\n store.useSyncedValues({\n trackCursorAxis,\n disableHoverablePopup,\n disabled\n });\n useImplicitActiveTrigger(store, {\n closeOnActiveTriggerUnmount: true\n });\n const {\n forceUnmount,\n transitionStatus\n } = useOpenStateTransitions(open, store);\n const isInstantPhase = store.useState('isInstantPhase');\n const instantType = store.useState('instantType');\n const lastOpenChangeReason = store.useState('lastOpenChangeReason');\n\n // Animations should be instant in two cases:\n // 1) Opening during the provider's instant phase (adjacent tooltip opens instantly)\n // 2) Closing because another tooltip opened (reason === 'none')\n // Otherwise, allow the animation to play. In particular, do not disable animations\n // during the 'ending' phase unless it's due to a sibling opening.\n const previousInstantTypeRef = React.useRef(null);\n useIsoLayoutEffect(() => {\n if (openState && disabled) {\n store.setOpen(false, createChangeEventDetails(REASONS.disabled));\n }\n }, [openState, disabled, store]);\n useIsoLayoutEffect(() => {\n if (transitionStatus === 'ending' && lastOpenChangeReason === REASONS.none || transitionStatus !== 'ending' && isInstantPhase) {\n // Capture the current instant type so we can restore it later\n // and set to 'delay' to disable animations while moving from one trigger to another\n // within a delay group.\n if (instantType !== 'delay') {\n previousInstantTypeRef.current = instantType;\n }\n store.set('instantType', 'delay');\n } else if (previousInstantTypeRef.current !== null) {\n store.set('instantType', previousInstantTypeRef.current);\n previousInstantTypeRef.current = null;\n }\n }, [transitionStatus, isInstantPhase, lastOpenChangeReason, instantType, store]);\n useIsoLayoutEffect(() => {\n if (open) {\n if (activeTriggerId == null) {\n store.set('payload', undefined);\n }\n }\n }, [store, activeTriggerId, open]);\n React.useImperativeHandle(actionsRef, () => ({\n unmount: forceUnmount,\n close: () => store.setOpen(false, createChangeEventDetails(REASONS.imperativeAction))\n }), [forceUnmount, store]);\n const shouldRenderInteractions = open || mounted || !disabled && trackCursorAxis !== 'none';\n return /*#__PURE__*/_jsxs(TooltipRootContext.Provider, {\n value: store,\n children: [handle && /*#__PURE__*/_jsx(PopupHandleAttachment, {\n handle: handle,\n store: store\n }), shouldRenderInteractions && /*#__PURE__*/_jsx(TooltipInteractions, {\n store: store,\n disabled: disabled,\n trackCursorAxis: trackCursorAxis\n }), typeof children === 'function' ? children({\n payload\n }) : children]\n });\n});\nif (process.env.NODE_ENV !== \"production\") TooltipRoot.displayName = \"TooltipRoot\";\nfunction TooltipInteractions({\n store,\n disabled,\n trackCursorAxis\n}) {\n const floatingRootContext = store.useState('floatingRootContext');\n const dismiss = useDismiss(floatingRootContext, {\n enabled: !disabled,\n referencePress: () => store.select('closeOnClick')\n });\n const clientPoint = useClientPoint(floatingRootContext, {\n enabled: !disabled && trackCursorAxis !== 'none',\n axis: trackCursorAxis === 'none' ? undefined : trackCursorAxis\n });\n\n // Both hooks return `trigger: reference` (same object identity), so the active and\n // inactive trigger props can never differ. `useClientPoint` has no floating-side props.\n const triggerProps = React.useMemo(() => mergeProps(clientPoint.reference, dismiss.reference), [clientPoint.reference, dismiss.reference]);\n usePopupInteractionProps(store, {\n activeTriggerProps: triggerProps,\n inactiveTriggerProps: triggerProps,\n popupProps: dismiss.floating ?? EMPTY_OBJECT\n });\n return null;\n}","'use client';\n\nimport * as React from 'react';\n\n/**\n * Holds the provider's `delay` value. `closeDelay` is handled by the delay group.\n */\nexport const TooltipProviderContext = /*#__PURE__*/React.createContext(undefined);\nif (process.env.NODE_ENV !== \"production\") TooltipProviderContext.displayName = \"TooltipProviderContext\";\nexport function useTooltipProviderContext() {\n return React.useContext(TooltipProviderContext);\n}","export const OPEN_DELAY = 600;","'use client';\n\nimport _formatErrorMessage from \"@base-ui/utils/formatErrorMessage\";\nimport * as React from 'react';\nimport { isElement } from '@floating-ui/utils/dom';\nimport { fastComponentRef } from '@base-ui/utils/fastHooks';\nimport { useTimeout } from '@base-ui/utils/useTimeout';\nimport { useValueAsRef } from '@base-ui/utils/useValueAsRef';\nimport { useTooltipRootContext } from \"../root/TooltipRootContext.mjs\";\nimport { triggerOpenStateMapping } from \"../../utils/popupStateMapping.mjs\";\nimport { useRenderElement } from \"../../internals/useRenderElement.mjs\";\nimport { usePopupHandleStore, useTriggerDataForwarding } from \"../../utils/popups/index.mjs\";\nimport { useBaseUiId } from \"../../internals/useBaseUiId.mjs\";\nimport { useTooltipProviderContext } from \"../provider/TooltipProviderContext.mjs\";\nimport { safePolygon, useDelayGroup, useFocus, useHoverReferenceInteraction } from \"../../floating-ui-react/index.mjs\";\nimport { closest, contains, getTarget } from \"../../floating-ui-react/utils/element.mjs\";\nimport { isMouseLikePointerType } from \"../../floating-ui-react/utils/event.mjs\";\nimport { createChangeEventDetails } from \"../../internals/createBaseUIEventDetails.mjs\";\nimport { REASONS } from \"../../internals/reasons.mjs\";\nimport { useHoverInteractionSharedState } from \"../../floating-ui-react/hooks/useHoverInteractionSharedState.mjs\";\nimport { getDelay } from \"../../floating-ui-react/hooks/useHoverShared.mjs\";\nimport * as TooltipTriggerDataAttributes from \"./TooltipTriggerDataAttributes.mjs\";\nimport { OPEN_DELAY } from \"../utils/constants.mjs\";\nconst TOOLTIP_TRIGGER_IDENTIFIER = 'data-base-ui-tooltip-trigger';\nfunction getTargetElement(event) {\n const target = getTarget(event);\n return isElement(target) ? target : null;\n}\n\n/**\n * An element to attach the tooltip to.\n * Renders a `<button>` element.\n *\n * Documentation: [Base UI Tooltip](https://base-ui.com/react/components/tooltip)\n */\nexport const TooltipTrigger = fastComponentRef(function TooltipTrigger(componentProps, forwardedRef) {\n const {\n render,\n className,\n style,\n handle,\n payload,\n disabled: disabledProp,\n delay,\n closeOnClick = true,\n closeDelay,\n id: idProp,\n ...elementProps\n } = componentProps;\n const rootContext = useTooltipRootContext(true);\n const handleStore = usePopupHandleStore(handle);\n const store = handleStore ?? rootContext;\n if (!store) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? 'Base UI: <Tooltip.Trigger> must be either used within a <Tooltip.Root> component or provided with a handle.' : _formatErrorMessage(82));\n }\n const thisTriggerId = useBaseUiId(idProp);\n const isTriggerActive = store.useState('isTriggerActive', thisTriggerId);\n const isOpenedByThisTrigger = store.useState('isOpenedByTrigger', thisTriggerId);\n const floatingRootContext = store.useState('floatingRootContext');\n const triggerElementRef = React.useRef(null);\n const closeDelayWithDefault = closeDelay ?? 0;\n const {\n registerTrigger,\n isMountedByThisTrigger\n } = useTriggerDataForwarding(thisTriggerId, triggerElementRef, store, {\n payload,\n closeOnClick,\n closeDelay: closeDelayWithDefault\n });\n const providerDelay = useTooltipProviderContext();\n const {\n activeIdRef,\n delayRef,\n isInstantPhase,\n hasProvider\n } = useDelayGroup(floatingRootContext, {\n open: isOpenedByThisTrigger\n });\n const hoverInteraction = useHoverInteractionSharedState(floatingRootContext);\n store.useSyncedValue('isInstantPhase', isInstantPhase);\n const rootDisabled = store.useState('disabled');\n const disabled = disabledProp ?? rootDisabled;\n const disabledRef = useValueAsRef(disabled);\n const trackCursorAxis = store.useState('trackCursorAxis');\n const disableHoverablePopup = store.useState('disableHoverablePopup');\n const isNestedTriggerHoveredRef = React.useRef(false);\n const nestedTriggerOpenTimeout = useTimeout();\n // Local copy so it can be cleared on mouseLeave without resetting the hover hook's own pointerType.\n const pointerTypeRef = React.useRef(undefined);\n function getOpenDelay() {\n // Adjacent tooltips open instantly while the group is active.\n if (hasProvider && activeIdRef.current != null) {\n return 0;\n }\n return delay ?? providerDelay ?? OPEN_DELAY;\n }\n function isEnabledNestedTriggerTarget(target) {\n const triggerEl = triggerElementRef.current;\n if (!triggerEl || !target) {\n return false;\n }\n const nearestTrigger = closest(target, `[${TOOLTIP_TRIGGER_IDENTIFIER}]`);\n return nearestTrigger !== null && nearestTrigger !== triggerEl && contains(triggerEl, nearestTrigger);\n }\n function detectNestedTriggerHover(target) {\n const nestedTriggerHovered = isEnabledNestedTriggerTarget(target);\n isNestedTriggerHoveredRef.current = nestedTriggerHovered;\n if (nestedTriggerHovered) {\n hoverInteraction.openChangeTimeout.clear();\n hoverInteraction.restTimeout.clear();\n hoverInteraction.restTimeoutPending = false;\n nestedTriggerOpenTimeout.clear();\n }\n return nestedTriggerHovered;\n }\n const hoverProps = useHoverReferenceInteraction(floatingRootContext, {\n enabled: !disabled,\n mouseOnly: true,\n move: false,\n handleClose: !disableHoverablePopup && trackCursorAxis !== 'both' ? safePolygon() : null,\n restMs: getOpenDelay,\n delay() {\n if (closeDelay == null && hasProvider) {\n return {\n close: getDelay(delayRef.current, 'close')\n };\n }\n return {\n close: closeDelayWithDefault\n };\n },\n triggerElementRef,\n isActiveTrigger: isTriggerActive,\n isClosing: () => store.select('transitionStatus') === 'ending',\n shouldOpen() {\n return !isNestedTriggerHoveredRef.current;\n }\n });\n const focusProps = useFocus(floatingRootContext, {\n enabled: !disabled\n }).reference;\n const handleNestedTriggerHover = event => {\n const wasNestedTriggerHovered = isNestedTriggerHoveredRef.current;\n const target = getTargetElement(event);\n const nestedTriggerHovered = detectNestedTriggerHover(target);\n const triggerEl = triggerElementRef.current;\n const targetInsideTrigger = triggerEl && target && contains(triggerEl, target);\n\n // Only close hover-opened parents. Focus/click-like opens remain owned by\n // their original interaction and should not be clobbered by nested hover.\n if (nestedTriggerHovered && store.select('open') && store.select('lastOpenChangeReason') === REASONS.triggerHover) {\n store.setOpen(false, createChangeEventDetails(REASONS.triggerHover, event));\n return;\n }\n if (wasNestedTriggerHovered && !nestedTriggerHovered && targetInsideTrigger && !disabledRef.current && !store.select('open') && triggerEl &&\n // Match the hover hook's non-strict mouse fallback for mouse-only event sequences.\n isMouseLikePointerType(pointerTypeRef.current)) {\n const open = () => {\n if (!isNestedTriggerHoveredRef.current && !disabledRef.current && !store.select('open')) {\n store.setOpen(true, createChangeEventDetails(REASONS.triggerHover, event, triggerEl));\n }\n };\n const openDelay = getOpenDelay();\n\n // With `move: false`, the hover hook only listens to mouseenter/mouseleave\n // on the parent trigger. Leaving a nested child for the parent area fires\n // no event the hook can react to, so reopen locally.\n if (openDelay === 0) {\n nestedTriggerOpenTimeout.clear();\n open();\n } else {\n nestedTriggerOpenTimeout.start(openDelay, open);\n }\n }\n };\n const rootTriggerProps = store.useState('appliedTriggerProps', isMountedByThisTrigger || trackCursorAxis !== 'none');\n const state = {\n open: isOpenedByThisTrigger\n };\n const element = useRenderElement('button', componentProps, {\n state,\n ref: [forwardedRef, registerTrigger, triggerElementRef],\n props: [hoverProps, focusProps, rootTriggerProps, {\n onMouseOver(event) {\n handleNestedTriggerHover(event.nativeEvent);\n },\n onFocus(event) {\n if (isEnabledNestedTriggerTarget(getTargetElement(event.nativeEvent))) {\n event.preventBaseUIHandler();\n }\n },\n onMouseLeave() {\n isNestedTriggerHoveredRef.current = false;\n nestedTriggerOpenTimeout.clear();\n pointerTypeRef.current = undefined;\n },\n onPointerEnter(event) {\n pointerTypeRef.current = event.pointerType;\n },\n onPointerDown(event) {\n pointerTypeRef.current = event.pointerType;\n store.set('closeOnClick', closeOnClick);\n if (closeOnClick && !store.select('open')) {\n store.cancelPendingOpen(event.nativeEvent);\n }\n },\n onClick(event) {\n if (closeOnClick && !store.select('open')) {\n store.cancelPendingOpen(event.nativeEvent);\n }\n },\n id: thisTriggerId,\n [TooltipTriggerDataAttributes.triggerDisabled]: disabled ? '' : undefined,\n [TOOLTIP_TRIGGER_IDENTIFIER]: disabled ? undefined : ''\n }, elementProps],\n stateAttributesMapping: triggerOpenStateMapping\n });\n return element;\n});\nif (process.env.NODE_ENV !== \"production\") TooltipTrigger.displayName = \"TooltipTrigger\";","'use client';\n\nimport _formatErrorMessage from \"@base-ui/utils/formatErrorMessage\";\nimport * as React from 'react';\nexport const TooltipPortalContext = /*#__PURE__*/React.createContext(undefined);\nif (process.env.NODE_ENV !== \"production\") TooltipPortalContext.displayName = \"TooltipPortalContext\";\nexport function useTooltipPortalContext() {\n const value = React.useContext(TooltipPortalContext);\n if (value === undefined) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? 'Base UI: <Tooltip.Portal> is missing.' : _formatErrorMessage(70));\n }\n return value;\n}","'use client';\n\nimport * as React from 'react';\nimport * as ReactDOM from 'react-dom';\nimport { useFloatingPortalNode } from \"../floating-ui-react/components/FloatingPortal.mjs\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\n/**\n * `FloatingPortal` includes tabbable logic handling for focus management.\n * For components that don't need tabbable logic, use `FloatingPortalLite`.\n * @internal\n */\nexport const FloatingPortalLite = /*#__PURE__*/React.forwardRef(function FloatingPortalLite(componentProps, forwardedRef) {\n const {\n children,\n container,\n className,\n render,\n style,\n ...elementProps\n } = componentProps;\n const {\n node: portalNode,\n subtree: portalSubtree\n } = useFloatingPortalNode({\n container,\n ref: forwardedRef,\n componentProps,\n elementProps\n });\n if (!portalSubtree && !portalNode) {\n return null;\n }\n return /*#__PURE__*/_jsxs(React.Fragment, {\n children: [portalSubtree, portalNode && /*#__PURE__*/ReactDOM.createPortal(children, portalNode)]\n });\n});\nif (process.env.NODE_ENV !== \"production\") FloatingPortalLite.displayName = \"FloatingPortalLite\";","'use client';\n\nimport * as React from 'react';\nimport { useTooltipRootContext } from \"../root/TooltipRootContext.mjs\";\nimport { TooltipPortalContext } from \"./TooltipPortalContext.mjs\";\nimport { FloatingPortalLite } from \"../../utils/FloatingPortalLite.mjs\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\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 Tooltip](https://base-ui.com/react/components/tooltip)\n */\nexport const TooltipPortal = /*#__PURE__*/React.forwardRef(function TooltipPortal(props, forwardedRef) {\n const {\n keepMounted = false,\n ...portalProps\n } = props;\n const store = useTooltipRootContext();\n const mounted = store.useState('mounted');\n const shouldRender = mounted || keepMounted;\n if (!shouldRender) {\n return null;\n }\n return /*#__PURE__*/_jsx(TooltipPortalContext.Provider, {\n value: keepMounted,\n children: /*#__PURE__*/_jsx(FloatingPortalLite, {\n ref: forwardedRef,\n ...portalProps\n })\n });\n});\nif (process.env.NODE_ENV !== \"production\") TooltipPortal.displayName = \"TooltipPortal\";","'use client';\n\nimport _formatErrorMessage from \"@base-ui/utils/formatErrorMessage\";\nimport * as React from 'react';\nexport const TooltipPositionerContext = /*#__PURE__*/React.createContext(undefined);\nif (process.env.NODE_ENV !== \"production\") TooltipPositionerContext.displayName = \"TooltipPositionerContext\";\nexport function useTooltipPositionerContext() {\n const context = React.useContext(TooltipPositionerContext);\n if (context === undefined) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? 'Base UI: TooltipPositionerContext is missing. TooltipPositioner parts must be placed within <Tooltip.Positioner>.' : _formatErrorMessage(71));\n }\n return context;\n}","'use client';\n\nimport * as React from 'react';\nimport { useTooltipRootContext } from \"../root/TooltipRootContext.mjs\";\nimport { TooltipPositionerContext } from \"./TooltipPositionerContext.mjs\";\nimport { useAnchorPositioning } from \"../../internals/useAnchorPositioning.mjs\";\nimport { useTooltipPortalContext } from \"../portal/TooltipPortalContext.mjs\";\nimport { POPUP_COLLISION_AVOIDANCE } from \"../../internals/constants.mjs\";\nimport { usePositioner } from \"../../utils/usePositioner.mjs\";\n\n/**\n * Positions the tooltip against the trigger.\n * Renders a `<div>` element.\n *\n * Documentation: [Base UI Tooltip](https://base-ui.com/react/components/tooltip)\n */\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport const TooltipPositioner = /*#__PURE__*/React.forwardRef(function TooltipPositioner(componentProps, forwardedRef) {\n const {\n render,\n className,\n anchor,\n positionMethod = 'absolute',\n side = 'top',\n align = 'center',\n sideOffset = 0,\n alignOffset = 0,\n collisionBoundary = 'clipping-ancestors',\n collisionPadding = 5,\n arrowPadding = 5,\n sticky = false,\n disableAnchorTracking = false,\n collisionAvoidance = POPUP_COLLISION_AVOIDANCE,\n style,\n ...elementProps\n } = componentProps;\n const store = useTooltipRootContext();\n const keepMounted = useTooltipPortalContext();\n const open = store.useState('open');\n const mounted = store.useState('mounted');\n const trackCursorAxis = store.useState('trackCursorAxis');\n const disableHoverablePopup = store.useState('disableHoverablePopup');\n const floatingRootContext = store.useState('floatingRootContext');\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 positionMethod,\n floatingRootContext,\n mounted,\n side,\n sideOffset,\n align,\n alignOffset,\n collisionBoundary,\n collisionPadding,\n sticky,\n arrowPadding,\n disableAnchorTracking,\n keepMounted,\n collisionAvoidance,\n adaptiveOrigin\n });\n const state = React.useMemo(() => ({\n open,\n side: positioning.side,\n align: positioning.align,\n anchorHidden: positioning.anchorHidden,\n instant: trackCursorAxis !== 'none' ? 'tracking-cursor' : instantType\n }), [open, positioning.side, positioning.align, positioning.anchorHidden, trackCursorAxis, instantType]);\n const element = usePositioner(componentProps, state, {\n styles: positioning.positionerStyles,\n transitionStatus,\n props: elementProps,\n refs: [forwardedRef, store.useStateSetter('positionerElement')],\n hidden: !mounted,\n inert: !open || trackCursorAxis === 'both' || disableHoverablePopup\n });\n return /*#__PURE__*/_jsx(TooltipPositionerContext.Provider, {\n value: positioning,\n children: element\n });\n});\nif (process.env.NODE_ENV !== \"production\") TooltipPositioner.displayName = \"TooltipPositioner\";","'use client';\n\nimport * as React from 'react';\nimport { useTooltipRootContext } from \"../root/TooltipRootContext.mjs\";\nimport { useTooltipPositionerContext } from \"../positioner/TooltipPositionerContext.mjs\";\nimport { popupTransitionStateMapping } from \"../../utils/popupStateMapping.mjs\";\nimport { useOpenChangeComplete } from \"../../internals/useOpenChangeComplete.mjs\";\nimport { useRenderElement } from \"../../internals/useRenderElement.mjs\";\nimport { getDisabledMountTransitionStyles } from \"../../internals/getDisabledMountTransitionStyles.mjs\";\nimport { useHoverFloatingInteraction } from \"../../floating-ui-react/index.mjs\";\nimport { FOCUSABLE_POPUP_PROPS } from \"../../utils/popups/index.mjs\";\n\n/**\n * A container for the tooltip contents.\n * Renders a `<div>` element.\n *\n * Documentation: [Base UI Tooltip](https://base-ui.com/react/components/tooltip)\n */\nexport const TooltipPopup = /*#__PURE__*/React.forwardRef(function TooltipPopup(componentProps, forwardedRef) {\n const {\n render,\n className,\n style,\n ...elementProps\n } = componentProps;\n const store = useTooltipRootContext();\n const {\n side,\n align\n } = useTooltipPositionerContext();\n const open = store.useState('open');\n const instantType = store.useState('instantType');\n const transitionStatus = store.useState('transitionStatus');\n const popupProps = store.useState('popupProps');\n const floatingContext = store.useState('floatingRootContext');\n const disabled = store.useState('disabled');\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: !disabled,\n closeDelay\n });\n const setPopupElement = store.useStateSetter('popupElement');\n const state = {\n open,\n side,\n align,\n instant: instantType,\n transitionStatus\n };\n const element = useRenderElement('div', componentProps, {\n state,\n ref: [forwardedRef, store.context.popupRef, setPopupElement],\n props: [FOCUSABLE_POPUP_PROPS, popupProps, getDisabledMountTransitionStyles(transitionStatus), elementProps],\n stateAttributesMapping: popupTransitionStateMapping\n });\n return element;\n});\nif (process.env.NODE_ENV !== \"production\") TooltipPopup.displayName = \"TooltipPopup\";","'use client';\n\nimport * as React from 'react';\nimport { FloatingDelayGroup } from \"../../floating-ui-react/index.mjs\";\nimport { TooltipProviderContext } from \"./TooltipProviderContext.mjs\";\n\n/**\n * Provides a shared delay for multiple tooltips. The grouping logic ensures that\n * once a tooltip becomes visible, the adjacent tooltips will be shown instantly.\n *\n * Documentation: [Base UI Tooltip](https://base-ui.com/react/components/tooltip)\n */\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport const TooltipProvider = function TooltipProvider(props) {\n const {\n delay,\n closeDelay,\n timeout = 400\n } = props;\n const delayValue = React.useMemo(() => ({\n open: delay,\n close: closeDelay\n }), [delay, closeDelay]);\n return /*#__PURE__*/_jsx(TooltipProviderContext.Provider, {\n value: delay,\n children: /*#__PURE__*/_jsx(FloatingDelayGroup, {\n delay: delayValue,\n timeoutMs: timeout,\n children: props.children\n })\n });\n};\nif (process.env.NODE_ENV !== \"production\") TooltipProvider.displayName = \"TooltipProvider\";","import * as React from 'react'\nimport { cva, type VariantProps } from 'class-variance-authority'\nimport { Tooltip as TooltipPrimitive } from '@base-ui/react/tooltip'\n\nimport { cn } from '@/lib/utils'\n\nimport { CodeBlock, InlineCode } from './Code'\n\nfunction TooltipProvider({ delay = 300, ...props }: TooltipPrimitive.Provider.Props) {\n return <TooltipPrimitive.Provider delay={delay} {...props} />\n}\n\nfunction Tooltip(props: TooltipPrimitive.Root.Props) {\n return <TooltipPrimitive.Root data-slot=\"tooltip\" {...props} />\n}\n\nfunction TooltipTrigger(props: TooltipPrimitive.Trigger.Props) {\n return <TooltipPrimitive.Trigger data-slot=\"tooltip-trigger\" {...props} />\n}\n\ntype TooltipSurface = 'inverse' | 'card' | 'unstyled' | 'code'\ntype TooltipTone = 'default' | 'error'\n\n// Open/close motion, copied from the frontend's MUI Grow tooltip:\n// 200ms, fades in from 0 and grows from 75%, anchored to the trigger side.\n// Base UI sets data-starting-style on open and data-ending-style on close.\nconst tooltipMotionClass =\n 'origin-[var(--transform-origin)] transition-[opacity,scale] duration-200 ease-out data-[instant]:transition-none data-[starting-style]:scale-75 data-[starting-style]:opacity-0 data-[ending-style]:scale-75 data-[ending-style]:opacity-0'\n\nconst tooltipContentVariants = cva('z-[1500] flex max-w-80 items-center gap-space-8 overflow-visible outline-none', {\n variants: {\n surface: {\n inverse:\n 'rounded-sm border border-border-subtle bg-background-inverse px-space-8 py-space-4 text-label-sm text-text-on-inverse elevation-2',\n card: 'rounded-control border border-border-subtle bg-background-overlay px-space-12 py-space-8 text-body-sm text-text-primary elevation-2',\n unstyled: 'max-w-none border-0 bg-transparent p-0 text-text-primary shadow-none',\n code: 'w-140 max-w-none rounded-container border border-border-subtle bg-code-background-base p-0 text-text-primary elevation-2',\n },\n tone: {\n default: '',\n error: '',\n },\n },\n compoundVariants: [\n {\n surface: 'inverse',\n tone: 'error',\n class: 'bg-status-background-error-bold',\n },\n {\n surface: 'card',\n tone: 'error',\n class: 'border border-status-border-error-bold bg-status-background-error',\n },\n ],\n defaultVariants: {\n surface: 'inverse',\n tone: 'default',\n },\n})\n\ntype TooltipContentProps = TooltipPrimitive.Popup.Props &\n VariantProps<typeof tooltipContentVariants> &\n Pick<TooltipPrimitive.Positioner.Props, 'align' | 'alignOffset' | 'side' | 'sideOffset'> & {\n container?: TooltipPrimitive.Portal.Props['container']\n positionerClassName?: string\n }\n\nfunction TooltipContent({\n align = 'center',\n alignOffset = 0,\n children,\n className,\n container,\n positionerClassName,\n side = 'bottom',\n sideOffset = 8,\n style,\n surface,\n tone,\n ...props\n}: TooltipContentProps) {\n return (\n <TooltipPrimitive.Portal container={container}>\n <TooltipPrimitive.Positioner\n align={align}\n alignOffset={alignOffset}\n side={side}\n sideOffset={sideOffset}\n className={cn('isolate z-[1500]', positionerClassName)}\n >\n <TooltipPrimitive.Popup\n data-slot=\"tooltip-content\"\n className={cn(tooltipMotionClass, tooltipContentVariants({ surface, tone }), className)}\n style={style}\n {...props}\n >\n {children}\n </TooltipPrimitive.Popup>\n </TooltipPrimitive.Positioner>\n </TooltipPrimitive.Portal>\n )\n}\n\nfunction TooltipShortcut({ keys, surface }: { keys: string[]; surface: Exclude<TooltipSurface, 'unstyled' | 'code'> }) {\n if (keys.length === 0) return null\n\n return (\n <div data-slot=\"tooltip-shortcut\" className=\"flex shrink-0 items-center gap-space-4\">\n {keys.map((key, index) => (\n <React.Fragment key={`${key}-${index}`}>\n {index > 0 ? (\n <span\n className={cn(\n 'text-label-sm font-medium',\n surface === 'inverse' ? 'text-text-on-inverse' : 'text-text-secondary',\n )}\n >\n +\n </span>\n ) : null}\n <kbd\n data-slot=\"tooltip-kbd\"\n className={cn(\n 'relative inline-flex h-4 min-w-4 items-center justify-center rounded-sm px-space-4 text-label-sm font-medium',\n surface === 'inverse'\n ? 'text-text-on-inverse before:pointer-events-none before:absolute before:inset-0 before:rounded-sm before:border before:border-text-on-inverse before:opacity-40'\n : 'border border-border-default text-text-secondary',\n )}\n >\n {key}\n </kbd>\n </React.Fragment>\n ))}\n </div>\n )\n}\n\nfunction TooltipBody({\n heading,\n headingClassName,\n children,\n}: {\n heading?: React.ReactNode\n headingClassName?: string\n children: React.ReactNode\n}) {\n return (\n <div data-slot=\"tooltip-body\" className=\"flex min-w-0 flex-col gap-space-2 overflow-hidden\">\n {heading != null && heading !== '' ? (\n <div data-slot=\"tooltip-heading\" className={cn('text-label-md', headingClassName)}>\n {heading}\n </div>\n ) : null}\n <div data-slot=\"tooltip-message\" className=\"min-w-0 [word-break:break-word]\">\n {children}\n </div>\n </div>\n )\n}\n\n/** Inline code chip for use inside tooltip messages. */\nfunction TooltipInlineCode(props: React.ComponentProps<'code'>) {\n return <InlineCode data-slot=\"tooltip-inline-code\" {...props} />\n}\n\n/** Multi-line code block for `content=\"code\"` tooltips. */\nfunction TooltipCode(props: React.ComponentProps<'pre'>) {\n return <CodeBlock data-slot=\"tooltip-code\" {...props} />\n}\n\n/**\n * Disabled controls ignore pointer events and are skipped in the tab order.\n * The wrapper keeps the tooltip reachable, and takes the control's name so the\n * tab stop is a disabled button rather than a nameless span.\n */\nfunction DisabledTooltipTrigger({\n className,\n node,\n onKeyDown,\n ...props\n}: React.ComponentProps<'span'> & { node: React.ReactElement }) {\n const fallbackId = React.useId()\n const id = (node.props as { id?: string }).id || fallbackId\n\n return (\n <span\n {...props}\n role=\"button\"\n tabIndex={0}\n aria-disabled=\"true\"\n aria-labelledby={id}\n onKeyDown={(event) => {\n onKeyDown?.(event)\n if (!event.defaultPrevented && (event.key === 'Enter' || event.key === ' ')) {\n event.preventDefault()\n }\n }}\n className={cn('focus-ring inline-flex cursor-not-allowed rounded-control', className)}\n >\n {React.cloneElement(node as React.ReactElement<{ id: string; 'aria-hidden': boolean; tabIndex: number }>, {\n id,\n 'aria-hidden': true,\n tabIndex: -1,\n })}\n </span>\n )\n}\n\nexport function tooltipTrigger(disabled: boolean, node: React.ReactElement, className?: string) {\n if (!disabled) {\n return className ? <span className={className}>{node}</span> : node\n }\n return <DisabledTooltipTrigger className={className} node={node} />\n}\n\nexport type Sizes = 'large' | 'variable' | 'medium' | 'fit' | 'small'\n\nexport type TooltipPlacement =\n | 'top'\n | 'top-start'\n | 'top-end'\n | 'bottom'\n | 'bottom-start'\n | 'bottom-end'\n | 'left'\n | 'left-start'\n | 'left-end'\n | 'right'\n | 'right-start'\n | 'right-end'\n\nexport type CustomTooltipProps = {\n title?: React.ReactNode\n children: React.ReactElement\n placement?: TooltipPlacement\n size?: Sizes\n /** MUI-compatible padding; applied only when provided. */\n padding?: string | number\n open?: boolean\n onOpen?: (event?: React.SyntheticEvent | Event) => void\n onClose?: (event?: React.SyntheticEvent | Event) => void\n /** When true, hover/focus on the child does not open the tooltip. Controlled `open` still works. */\n disableHoverListener?: boolean\n disableInteractive?: boolean\n /** Legacy MUI alias; `true` keeps the popup hoverable, `false` matches `disableInteractive`. */\n interactive?: boolean\n /** Figma Tone. Error only when the trigger already shows a failure. */\n tone?: TooltipTone\n /**\n * Optional title above the message (Figma \"Title\" slot).\n * Named `heading` because `title` is already the MUI message prop.\n */\n heading?: React.ReactNode\n /** Keyboard shortcut keys rendered as a Kbd group, e.g. `['Ctrl', 'K']`. */\n shortcut?: string[]\n /**\n * Figma Content axis. `code` renders `title` on the 560-wide code block.\n * `heading`, `shortcut`, and `tone` apply only when `content` is `text`.\n */\n content?: 'text' | 'code'\n /** Portal container — useful for Storybook dark panels. */\n container?: TooltipPrimitive.Portal.Props['container']\n className?: string\n classes?: { tooltip?: string; popper?: string }\n}\n\nexport type TooltipProps = Partial<\n Pick<CustomTooltipProps, 'title' | 'placement' | 'size' | 'tone' | 'heading' | 'shortcut' | 'content'>\n> & {\n disabledTitle?: React.ReactNode\n}\n\nconst headingClass: Record<TooltipSurface, Record<TooltipTone, string>> = {\n inverse: { default: 'text-text-on-inverse', error: 'text-text-on-inverse' },\n card: { default: 'text-text-primary', error: 'text-status-text-error' },\n code: { default: 'text-text-primary', error: 'text-text-primary' },\n unstyled: { default: 'text-text-primary', error: 'text-text-primary' },\n}\n\nconst sizeClasses: Record<Sizes, string> = {\n // Default Figma wrap is applied separately; these are explicit overrides.\n small: 'max-w-[15.625rem] max-h-[12.5rem]',\n large: 'max-w-[26.25rem] max-h-[25rem]',\n medium: 'max-w-[22.5rem] max-h-[18.75rem]',\n variable: 'max-w-none max-h-none',\n fit: 'max-w-fit max-h-none',\n}\n\nfunction parsePlacement(placement: TooltipPlacement): {\n side: NonNullable<TooltipPrimitive.Positioner.Props['side']>\n align: NonNullable<TooltipPrimitive.Positioner.Props['align']>\n} {\n const [side, alignPart] = placement.split('-') as [\n NonNullable<TooltipPrimitive.Positioner.Props['side']>,\n 'start' | 'end' | undefined,\n ]\n return { side, align: alignPart ?? 'center' }\n}\n\nfunction resolveSurface(\n variant: 'light' | 'dark' | 'unstyled',\n content: CustomTooltipProps['content'],\n): TooltipSurface {\n if (variant === 'unstyled') return 'unstyled'\n if (content === 'code') return 'code'\n return variant === 'light' ? 'card' : 'inverse'\n}\n\nfunction LegacyTooltip({\n title,\n placement = 'bottom',\n size,\n padding,\n open,\n onOpen,\n onClose,\n disableHoverListener,\n disableInteractive,\n interactive,\n tone = 'default',\n heading,\n shortcut,\n content = 'text',\n container,\n children,\n classes,\n className,\n variant,\n}: CustomTooltipProps & { variant: 'light' | 'dark' | 'unstyled' }) {\n if (title == null || title === '') {\n return children\n }\n\n const { side, align } = parsePlacement(placement)\n const surface = resolveSurface(variant, content)\n\n const disableHoverablePopup =\n disableInteractive !== undefined ? disableInteractive : interactive !== undefined ? !interactive : undefined\n\n const scrolls = size === 'small' || size === 'medium' || size === 'large'\n\n const contentClass = cn(\n size != null ? sizeClasses[size] : undefined,\n // items-center plus a max height centers the overflow, so the start cannot be scrolled into view.\n scrolls ? 'custom-scrollbar items-start overflow-auto' : 'overflow-visible',\n classes?.tooltip,\n )\n\n const body =\n surface === 'code' || surface === 'unstyled' ? (\n title\n ) : (\n <>\n <TooltipBody heading={heading} headingClassName={headingClass[surface][tone]}>\n {title}\n </TooltipBody>\n {shortcut != null && shortcut.length > 0 ? <TooltipShortcut keys={shortcut} surface={surface} /> : null}\n </>\n )\n\n return (\n // Match MUI Tooltip feel: open immediately on hover (Base UI defaults are 300–600ms).\n <TooltipProvider delay={0} closeDelay={0}>\n <Tooltip\n open={open}\n disableHoverablePopup={disableHoverablePopup}\n onOpenChange={(nextOpen) => {\n if (nextOpen) {\n onOpen?.()\n } else {\n onClose?.()\n }\n }}\n >\n <TooltipTrigger render={children} disabled={disableHoverListener} delay={0} closeDelay={0} />\n <TooltipContent\n side={side}\n align={align}\n surface={surface}\n tone={tone}\n className={contentClass}\n container={container}\n positionerClassName={cn(className, classes?.popper)}\n style={padding != null ? { padding } : undefined}\n >\n {body}\n </TooltipContent>\n </Tooltip>\n </TooltipProvider>\n )\n}\n\nexport const LightTooltip = React.memo((props: CustomTooltipProps) => <LegacyTooltip {...props} variant=\"light\" />)\n\nexport const DarkTooltip = React.memo((props: CustomTooltipProps) => <LegacyTooltip {...props} variant=\"dark\" />)\n\nexport const UnstyledTooltip = React.memo((props: CustomTooltipProps) => (\n <LegacyTooltip {...props} variant=\"unstyled\" />\n))\n\nexport {\n Tooltip,\n TooltipBody,\n TooltipCode,\n TooltipContent,\n tooltipContentVariants,\n TooltipInlineCode,\n TooltipProvider,\n TooltipShortcut,\n TooltipTrigger,\n}\nexport type { TooltipContentProps, TooltipSurface, TooltipTone }\n"],"names":["_jsx","REASONS.none","reference","_formatErrorMessage","REASONS.triggerPress","TooltipRoot","disabled","REASONS.disabled","REASONS.imperativeAction","_jsxs","TooltipTrigger","REASONS.triggerHover","TooltipTriggerDataAttributes.triggerDisabled","FloatingPortalLite","TooltipPortal","TooltipPositioner","TooltipPopup","TooltipProvider","TooltipPrimitive.Provider","TooltipPrimitive.Root","TooltipPrimitive.Trigger","TooltipPrimitive.Portal","TooltipPrimitive.Positioner","cn","TooltipPrimitive.Popup"],"mappings":";;;;;;;;;;;;;;;;;;;;AASA,MAAM,4BAAyC,sBAAM,cAAc;AAAA,EACjE,aAAa;AAAA,EACb,WAAW;AAAA,EACX,UAAU;AAAA,IACR,SAAS;AAAA,EACb;AAAA,EACE,iBAAiB;AAAA,IACf,SAAS;AAAA,EACb;AAAA,EACE,SAAS,IAAI,QAAO;AAAA,EACpB,cAAc;AAAA,IACZ,SAAS;AAAA,EACb;AAAA,EACE,mBAAmB;AAAA,IACjB,SAAS;AAAA,EACb;AACA,CAAC;AACD,IAAI,QAAQ,IAAI,aAAa,aAAc,2BAA0B,cAAc;AACnF,SAAS,cAAc,UAAU,iBAAiB;AAChD,WAAS,UAAU,gBAAgB;AACrC;AAWO,SAAS,mBAAmB,OAAO;AACxC,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA,YAAY;AAAA,EAChB,IAAM;AACJ,QAAM,WAAW,MAAM,OAAO,KAAK;AACnC,QAAM,kBAAkB,MAAM,OAAO,KAAK;AAC1C,QAAM,eAAe,MAAM,OAAO,IAAI;AACtC,QAAM,oBAAoB,MAAM,OAAO,IAAI;AAC3C,QAAM,UAAU,WAAU;AAC1B,qBAAmB,MAAM;AACvB,oBAAgB,UAAU;AAC1B,QAAI,CAAC,aAAa,SAAS;AACzB,eAAS,UAAU;AACnB;AAAA,IACF;AACA,aAAS,UAAU;AAAA,MACjB,MAAM,SAAS,SAAS,SAAS,MAAM;AAAA,MACvC,OAAO,SAAS,OAAO,OAAO;AAAA,IACpC;AAAA,EACE,GAAG,CAAC,OAAO,cAAc,UAAU,eAAe,CAAC;AACnD,SAAoBA,oBAAK,0BAA0B,UAAU;AAAA,IAC3D,OAAO,MAAM,QAAQ,OAAO;AAAA,MAC1B,aAAa;AAAA,MACb;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,CAAE;AAE3G,MAAM,cAAc,MAAM,KAAK,CAAC,UAA8B,oBAAC,eAAA,EAAe,GAAG,OAAO,SAAQ,OAAA,CAAO,CAAE;AAEzG,MAAM,kBAAkB,MAAM,KAAK,CAAC,UACzC,oBAAC,eAAA,EAAe,GAAG,OAAO,SAAQ,WAAA,CAAW,CAC9C;","x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
type OverlayThemePanelsProps = {
|
|
3
|
+
children: (container: HTMLElement | null) => React.ReactNode;
|
|
4
|
+
className?: string;
|
|
5
|
+
};
|
|
6
|
+
/** Portals overlays into each panel so the popup inherits that panel's theme. */
|
|
7
|
+
declare function OverlayThemePanels({ children, className }: OverlayThemePanelsProps): React.JSX.Element;
|
|
8
|
+
export default OverlayThemePanels;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { useState } from "react";
|
|
3
|
-
import { B as Button } from "../../Button-
|
|
4
|
-
import { M as Modal } from "../../Modal-
|
|
3
|
+
import { B as Button } from "../../Button-HHEfL8b9.js";
|
|
4
|
+
import { M as Modal } from "../../Modal-DaHG8mjy.js";
|
|
5
5
|
import { c as classNames } from "../../classNames-B1XpQHle.js";
|
|
6
6
|
import { t as toDataTestId } from "../../conversions-CbWPvHRE.js";
|
|
7
|
-
import { I as Input } from "../../Input-
|
|
7
|
+
import { I as Input } from "../../Input-BS9fWUAf.js";
|
|
8
8
|
const Alert = ({
|
|
9
9
|
title,
|
|
10
10
|
message,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { b, a, C } from "../../Input-
|
|
3
|
+
import { b, a, C } from "../../Input-BS9fWUAf.js";
|
|
4
4
|
import "../theme/useTheme.es.js";
|
|
5
5
|
import "../../classNames-B1XpQHle.js";
|
|
6
|
-
import "../../Button-
|
|
6
|
+
import "../../Button-HHEfL8b9.js";
|
|
7
7
|
import "../atoms/IconButton.es.js";
|
|
8
8
|
import "./Notify.es.js";
|
|
9
9
|
export {
|
|
@@ -6,7 +6,7 @@ import IconProvider from "../atoms/IconProvider.es.js";
|
|
|
6
6
|
import { t as toDataTestId } from "../../conversions-CbWPvHRE.js";
|
|
7
7
|
import Alert from "./Alert.es.js";
|
|
8
8
|
import { c as classNames } from "../../classNames-B1XpQHle.js";
|
|
9
|
-
import { D as DialogTitle, a as DialogRoot, b as DialogPortal, c as DialogPopup, d as DialogClose, e as DialogBackdrop } from "../../Modal-
|
|
9
|
+
import { D as DialogTitle, a as DialogRoot, b as DialogPortal, c as DialogPopup, d as DialogClose, e as DialogBackdrop } from "../../Modal-DaHG8mjy.js";
|
|
10
10
|
function Sheet(props) {
|
|
11
11
|
return /* @__PURE__ */ jsx(DialogRoot, { "data-slot": "sheet", ...props });
|
|
12
12
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { f as Dialog$1, g as DialogContent, h as DialogHeader, i as DialogTitle, j as DialogFooter } from "../../Modal-
|
|
2
|
+
import { f as Dialog$1, g as DialogContent, h as DialogHeader, i as DialogTitle, j as DialogFooter } from "../../Modal-DaHG8mjy.js";
|
|
3
3
|
import { c as classNames } from "../../classNames-B1XpQHle.js";
|
|
4
4
|
const Dialog = ({
|
|
5
5
|
open,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useState, useCallback } from "react";
|
|
3
|
-
import { B as Button } from "../../Button-
|
|
3
|
+
import { B as Button } from "../../Button-HHEfL8b9.js";
|
|
4
4
|
import IconButton from "../atoms/IconButton.es.js";
|
|
5
|
-
import { M as Modal } from "../../Modal-
|
|
5
|
+
import { M as Modal } from "../../Modal-DaHG8mjy.js";
|
|
6
6
|
import Skeleton from "../atoms/Skeleton.es.js";
|
|
7
7
|
import { c as classNames } from "../../classNames-B1XpQHle.js";
|
|
8
8
|
function baseToString(value) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { I } from "../../Input-
|
|
3
|
+
import { I } from "../../Input-BS9fWUAf.js";
|
|
4
4
|
import "../../classNames-B1XpQHle.js";
|
|
5
5
|
import "../atoms/IconProvider.es.js";
|
|
6
|
-
import "
|
|
6
|
+
import "../atoms/Tooltip.es.js";
|
|
7
7
|
export {
|
|
8
8
|
I as default
|
|
9
9
|
};
|
|
@@ -11,7 +11,7 @@ function lazyWithPreload(factory) {
|
|
|
11
11
|
Component.preload = factory;
|
|
12
12
|
return Component;
|
|
13
13
|
}
|
|
14
|
-
const Markdown = lazyWithPreload(() => import("../../Input-
|
|
14
|
+
const Markdown = lazyWithPreload(() => import("../../Input-BS9fWUAf.js").then((n) => n.c));
|
|
15
15
|
const MarkdownLazy = (props) => {
|
|
16
16
|
const { spinnerProps, ...restProps } = props;
|
|
17
17
|
const fallbackComponent = useMemo(() => /* @__PURE__ */ jsx(Spinner, { small: true, center: true, ...spinnerProps }), [spinnerProps]);
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import PaginationDot from '../atoms/PaginationDot';
|
|
3
|
+
import PaginationItem, { type PaginationItemProps, type PaginationTone } from '../atoms/PaginationItem';
|
|
4
|
+
declare const ELLIPSIS: "ellipsis";
|
|
5
|
+
type PaginationRangeItem = number | typeof ELLIPSIS;
|
|
6
|
+
declare function getPaginationRange(page: number, count: number): PaginationRangeItem[];
|
|
7
|
+
export type PaginationPageSizeProps = Omit<React.ComponentProps<'div'>, 'onChange'> & {
|
|
8
|
+
value: number;
|
|
9
|
+
options?: number[];
|
|
10
|
+
onValueChange?: (value: number) => void;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
label?: React.ReactNode;
|
|
13
|
+
};
|
|
14
|
+
declare function PaginationPageSize({ className, value, options, onValueChange, disabled, label, ...props }: PaginationPageSizeProps): React.JSX.Element;
|
|
15
|
+
type PaginationChangeHandler = {
|
|
16
|
+
bivarianceHack(event: unknown, page: number): void;
|
|
17
|
+
}['bivarianceHack'];
|
|
18
|
+
export type PaginationVariant = 'pages' | 'compact' | 'input' | 'dots';
|
|
19
|
+
export type PaginationProps = Omit<React.ComponentProps<'nav'>, 'onChange'> & {
|
|
20
|
+
page: number;
|
|
21
|
+
count: number;
|
|
22
|
+
variant?: PaginationVariant;
|
|
23
|
+
tone?: PaginationTone;
|
|
24
|
+
total?: number;
|
|
25
|
+
rowsPerPage?: number;
|
|
26
|
+
rowsPerPageOptions?: number[];
|
|
27
|
+
onPageChange?: (page: number) => void;
|
|
28
|
+
onChange?: PaginationChangeHandler;
|
|
29
|
+
onRowsPerPageChange?: (rowsPerPage: number) => void;
|
|
30
|
+
pageSize?: 'none' | 'with';
|
|
31
|
+
pageSizeControl?: React.ReactNode;
|
|
32
|
+
disabled?: boolean;
|
|
33
|
+
};
|
|
34
|
+
declare function Pagination({ className, page, count, variant, tone, total, rowsPerPage, rowsPerPageOptions, onPageChange, onChange, onRowsPerPageChange, pageSize, pageSizeControl, disabled, 'aria-label': ariaLabel, ...props }: PaginationProps): React.JSX.Element | null;
|
|
35
|
+
export type PaginationResultsProps = React.ComponentProps<'p'> & {
|
|
36
|
+
page: number;
|
|
37
|
+
rowsPerPage: number;
|
|
38
|
+
total: number;
|
|
39
|
+
format?: (from: number, to: number, total: number) => React.ReactNode;
|
|
40
|
+
};
|
|
41
|
+
declare function PaginationResults({ className, page, rowsPerPage, total, format, children, ...props }: PaginationResultsProps): React.JSX.Element;
|
|
42
|
+
export type PaginationFooterProps = Omit<PaginationProps, 'pageSize'> & {
|
|
43
|
+
total: number;
|
|
44
|
+
rowsPerPage: number;
|
|
45
|
+
renderResultDetails?: (defaultText: React.ReactNode) => React.ReactNode;
|
|
46
|
+
};
|
|
47
|
+
declare function PaginationFooter({ className, page, count, total, rowsPerPage, renderResultDetails, ...props }: PaginationFooterProps): React.JSX.Element;
|
|
48
|
+
type PaginationComponent = typeof Pagination & {
|
|
49
|
+
Item: typeof PaginationItem;
|
|
50
|
+
Dot: typeof PaginationDot;
|
|
51
|
+
Results: typeof PaginationResults;
|
|
52
|
+
PageSize: typeof PaginationPageSize;
|
|
53
|
+
Footer: typeof PaginationFooter;
|
|
54
|
+
};
|
|
55
|
+
declare const PaginationCompound: PaginationComponent;
|
|
56
|
+
export { getPaginationRange, PaginationCompound as Pagination, PaginationFooter, PaginationPageSize, PaginationResults };
|
|
57
|
+
export type { PaginationItemProps, PaginationTone };
|
|
58
|
+
export default PaginationCompound;
|
|
@@ -0,0 +1,272 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import IconProvider from "../atoms/IconProvider.es.js";
|
|
4
|
+
import { PaginationDot } from "../atoms/PaginationDot.es.js";
|
|
5
|
+
import { PaginationItem } from "../atoms/PaginationItem.es.js";
|
|
6
|
+
import { c as classNames } from "../../classNames-B1XpQHle.js";
|
|
7
|
+
const DEFAULT_ROWS_PER_PAGE_OPTIONS = [10, 25, 50, 100, 200];
|
|
8
|
+
const ELLIPSIS = "ellipsis";
|
|
9
|
+
function getPaginationRange(page, count) {
|
|
10
|
+
if (count <= 7) return Array.from({ length: count }, (_, index) => index + 1);
|
|
11
|
+
if (page <= 2) return [1, 2, 3, ELLIPSIS, count - 2, count - 1, count];
|
|
12
|
+
if (page === 3) return [1, 2, 3, 4, ELLIPSIS, count - 1, count];
|
|
13
|
+
if (page === count - 2) return [1, 2, ELLIPSIS, count - 3, count - 2, count - 1, count];
|
|
14
|
+
if (page >= count - 1) return [1, 2, 3, ELLIPSIS, count - 2, count - 1, count];
|
|
15
|
+
return [1, ELLIPSIS, page - 1, page, page + 1, ELLIPSIS, count];
|
|
16
|
+
}
|
|
17
|
+
function formatCompactRange(page, rowsPerPage, total) {
|
|
18
|
+
if (rowsPerPage === void 0 || total === void 0) return `Page ${page}`;
|
|
19
|
+
const from = total === 0 ? 0 : (page - 1) * rowsPerPage + 1;
|
|
20
|
+
const to = Math.min(page * rowsPerPage, total);
|
|
21
|
+
return `${from.toLocaleString()}-${to.toLocaleString()} of ${total.toLocaleString()}`;
|
|
22
|
+
}
|
|
23
|
+
function PaginationPageSize({
|
|
24
|
+
className,
|
|
25
|
+
value,
|
|
26
|
+
options = DEFAULT_ROWS_PER_PAGE_OPTIONS,
|
|
27
|
+
onValueChange,
|
|
28
|
+
disabled = false,
|
|
29
|
+
label = "Rows per page",
|
|
30
|
+
...props
|
|
31
|
+
}) {
|
|
32
|
+
const selectId = React.useId();
|
|
33
|
+
return /* @__PURE__ */ jsxs("div", { "data-slot": "pagination-page-size", className: classNames("inline-flex items-center gap-space-8", className), ...props, children: [
|
|
34
|
+
/* @__PURE__ */ jsx("label", { htmlFor: selectId, className: "text-label-sm text-text-tertiary", children: label }),
|
|
35
|
+
/* @__PURE__ */ jsxs("span", { className: "relative inline-flex w-16", children: [
|
|
36
|
+
/* @__PURE__ */ jsx(
|
|
37
|
+
"select",
|
|
38
|
+
{
|
|
39
|
+
id: selectId,
|
|
40
|
+
value,
|
|
41
|
+
disabled,
|
|
42
|
+
"aria-label": "Rows per page",
|
|
43
|
+
onChange: (event) => onValueChange == null ? void 0 : onValueChange(Number(event.target.value)),
|
|
44
|
+
className: "focus-ring h-6 w-full appearance-none rounded-control border border-border-default bg-background-input py-space-2 ps-space-8 pe-space-24 text-body-sm text-text-primary disabled:opacity-50",
|
|
45
|
+
children: options.map((option) => /* @__PURE__ */ jsx("option", { value: option, children: option }, option))
|
|
46
|
+
}
|
|
47
|
+
),
|
|
48
|
+
/* @__PURE__ */ jsx(
|
|
49
|
+
"span",
|
|
50
|
+
{
|
|
51
|
+
"aria-hidden": true,
|
|
52
|
+
className: "pointer-events-none absolute inset-e-space-8 top-1/2 inline-flex size-3 -translate-y-1/2 items-center justify-center text-icon-primary",
|
|
53
|
+
children: /* @__PURE__ */ jsx(IconProvider, { icon: "chevron-down", size: "12" })
|
|
54
|
+
}
|
|
55
|
+
)
|
|
56
|
+
] })
|
|
57
|
+
] });
|
|
58
|
+
}
|
|
59
|
+
function Pagination({
|
|
60
|
+
className,
|
|
61
|
+
page,
|
|
62
|
+
count,
|
|
63
|
+
variant = "pages",
|
|
64
|
+
tone = "brand",
|
|
65
|
+
total,
|
|
66
|
+
rowsPerPage,
|
|
67
|
+
rowsPerPageOptions = DEFAULT_ROWS_PER_PAGE_OPTIONS,
|
|
68
|
+
onPageChange,
|
|
69
|
+
onChange,
|
|
70
|
+
onRowsPerPageChange,
|
|
71
|
+
pageSize,
|
|
72
|
+
pageSizeControl,
|
|
73
|
+
disabled = false,
|
|
74
|
+
"aria-label": ariaLabel = "Pagination",
|
|
75
|
+
...props
|
|
76
|
+
}) {
|
|
77
|
+
const [inputValue, setInputValue] = React.useState(String(page));
|
|
78
|
+
const pageInputId = React.useId();
|
|
79
|
+
const range = React.useMemo(() => getPaginationRange(page, count), [count, page]);
|
|
80
|
+
const showPageSize = pageSize === "with" || pageSize !== "none" && onRowsPerPageChange !== void 0;
|
|
81
|
+
React.useEffect(() => setInputValue(String(page)), [page]);
|
|
82
|
+
const changePage = (nextPage, event) => {
|
|
83
|
+
if (disabled || nextPage === page || nextPage < 1 || nextPage > count) return;
|
|
84
|
+
onPageChange == null ? void 0 : onPageChange(nextPage);
|
|
85
|
+
onChange == null ? void 0 : onChange(event, nextPage);
|
|
86
|
+
};
|
|
87
|
+
const commitInput = (event) => {
|
|
88
|
+
const parsed = Number.parseInt(inputValue, 10);
|
|
89
|
+
const nextPage = Number.isNaN(parsed) ? page : Math.min(Math.max(parsed, 1), count);
|
|
90
|
+
setInputValue(String(nextPage));
|
|
91
|
+
changePage(nextPage, event);
|
|
92
|
+
};
|
|
93
|
+
if (count <= 1) return null;
|
|
94
|
+
return /* @__PURE__ */ jsxs(
|
|
95
|
+
"nav",
|
|
96
|
+
{
|
|
97
|
+
"data-slot": "pagination",
|
|
98
|
+
"data-variant": variant,
|
|
99
|
+
"data-tone": tone,
|
|
100
|
+
"aria-label": ariaLabel,
|
|
101
|
+
className: classNames("inline-flex items-center gap-space-16", className),
|
|
102
|
+
...props,
|
|
103
|
+
children: [
|
|
104
|
+
showPageSize && (pageSizeControl ?? /* @__PURE__ */ jsx(
|
|
105
|
+
PaginationPageSize,
|
|
106
|
+
{
|
|
107
|
+
value: rowsPerPage ?? rowsPerPageOptions[0],
|
|
108
|
+
options: rowsPerPageOptions,
|
|
109
|
+
disabled,
|
|
110
|
+
onValueChange: onRowsPerPageChange
|
|
111
|
+
}
|
|
112
|
+
)),
|
|
113
|
+
/* @__PURE__ */ jsxs(
|
|
114
|
+
"div",
|
|
115
|
+
{
|
|
116
|
+
"data-slot": "pagination-strip",
|
|
117
|
+
className: "inline-flex items-center gap-space-4 rounded-control bg-background-page",
|
|
118
|
+
children: [
|
|
119
|
+
/* @__PURE__ */ jsx(
|
|
120
|
+
PaginationItem,
|
|
121
|
+
{
|
|
122
|
+
type: "prev",
|
|
123
|
+
tone,
|
|
124
|
+
disabled: disabled || page <= 1,
|
|
125
|
+
"aria-label": "Previous page",
|
|
126
|
+
onClick: (event) => changePage(page - 1, event)
|
|
127
|
+
}
|
|
128
|
+
),
|
|
129
|
+
variant === "pages" && range.map(
|
|
130
|
+
(item, index) => item === ELLIPSIS ? /* @__PURE__ */ jsx(PaginationItem, { type: "ellipsis", tone }, `ellipsis-${index}`) : /* @__PURE__ */ jsx(
|
|
131
|
+
PaginationItem,
|
|
132
|
+
{
|
|
133
|
+
type: item === page ? "current" : "page",
|
|
134
|
+
tone,
|
|
135
|
+
disabled,
|
|
136
|
+
"aria-label": item === page ? `Page ${item}, current page` : `Go to page ${item}`,
|
|
137
|
+
onClick: (event) => changePage(item, event),
|
|
138
|
+
children: item
|
|
139
|
+
},
|
|
140
|
+
item
|
|
141
|
+
)
|
|
142
|
+
),
|
|
143
|
+
variant === "compact" && /* @__PURE__ */ jsx(
|
|
144
|
+
"span",
|
|
145
|
+
{
|
|
146
|
+
"data-slot": "pagination-compact-range",
|
|
147
|
+
className: "inline-flex h-7 w-28 items-center justify-center text-label-sm text-text-secondary",
|
|
148
|
+
children: formatCompactRange(page, rowsPerPage, total)
|
|
149
|
+
}
|
|
150
|
+
),
|
|
151
|
+
variant === "input" && /* @__PURE__ */ jsxs(
|
|
152
|
+
"span",
|
|
153
|
+
{
|
|
154
|
+
"data-slot": "pagination-input-cell",
|
|
155
|
+
className: "inline-flex h-7 items-center gap-space-6 px-space-8 text-label-sm text-text-secondary",
|
|
156
|
+
children: [
|
|
157
|
+
/* @__PURE__ */ jsx("label", { htmlFor: pageInputId, children: "Page" }),
|
|
158
|
+
/* @__PURE__ */ jsx(
|
|
159
|
+
"input",
|
|
160
|
+
{
|
|
161
|
+
id: pageInputId,
|
|
162
|
+
type: "text",
|
|
163
|
+
inputMode: "numeric",
|
|
164
|
+
value: inputValue,
|
|
165
|
+
disabled,
|
|
166
|
+
"aria-label": "Page number",
|
|
167
|
+
onChange: (event) => setInputValue(event.target.value),
|
|
168
|
+
onBlur: commitInput,
|
|
169
|
+
onKeyDown: (event) => {
|
|
170
|
+
if (event.key === "Enter") commitInput(event);
|
|
171
|
+
},
|
|
172
|
+
className: "focus-ring h-6 w-10 rounded-control border border-border-default bg-background-input px-space-8 text-body-sm text-text-primary disabled:opacity-50"
|
|
173
|
+
}
|
|
174
|
+
),
|
|
175
|
+
/* @__PURE__ */ jsxs("span", { children: [
|
|
176
|
+
"/ ",
|
|
177
|
+
count.toLocaleString()
|
|
178
|
+
] })
|
|
179
|
+
]
|
|
180
|
+
}
|
|
181
|
+
),
|
|
182
|
+
variant === "dots" && /* @__PURE__ */ jsx("span", { "data-slot": "pagination-dots", className: "inline-flex h-7 items-center gap-space-8 px-space-12", children: Array.from({ length: count }, (_, index) => {
|
|
183
|
+
const dotPage = index + 1;
|
|
184
|
+
return /* @__PURE__ */ jsx(
|
|
185
|
+
PaginationDot,
|
|
186
|
+
{
|
|
187
|
+
active: dotPage === page,
|
|
188
|
+
tone,
|
|
189
|
+
disabled,
|
|
190
|
+
"aria-label": `Show item ${dotPage} of ${count}`,
|
|
191
|
+
onClick: (event) => changePage(dotPage, event)
|
|
192
|
+
},
|
|
193
|
+
dotPage
|
|
194
|
+
);
|
|
195
|
+
}) }),
|
|
196
|
+
/* @__PURE__ */ jsx(
|
|
197
|
+
PaginationItem,
|
|
198
|
+
{
|
|
199
|
+
type: "next",
|
|
200
|
+
tone,
|
|
201
|
+
disabled: disabled || page >= count,
|
|
202
|
+
"aria-label": "Next page",
|
|
203
|
+
onClick: (event) => changePage(page + 1, event)
|
|
204
|
+
}
|
|
205
|
+
)
|
|
206
|
+
]
|
|
207
|
+
}
|
|
208
|
+
)
|
|
209
|
+
]
|
|
210
|
+
}
|
|
211
|
+
);
|
|
212
|
+
}
|
|
213
|
+
function PaginationResults({
|
|
214
|
+
className,
|
|
215
|
+
page,
|
|
216
|
+
rowsPerPage,
|
|
217
|
+
total,
|
|
218
|
+
format,
|
|
219
|
+
children,
|
|
220
|
+
...props
|
|
221
|
+
}) {
|
|
222
|
+
const from = total === 0 ? 0 : (page - 1) * rowsPerPage + 1;
|
|
223
|
+
const to = Math.min(page * rowsPerPage, total);
|
|
224
|
+
const content = children ?? (format == null ? void 0 : format(from, to, total)) ?? (total === 0 ? "Showing 0 results" : `Showing ${from.toLocaleString()} to ${to.toLocaleString()} of ${total.toLocaleString()} results`);
|
|
225
|
+
return /* @__PURE__ */ jsx(
|
|
226
|
+
"p",
|
|
227
|
+
{
|
|
228
|
+
"data-slot": "pagination-results",
|
|
229
|
+
"aria-live": "polite",
|
|
230
|
+
className: classNames("text-label-sm text-text-tertiary", className),
|
|
231
|
+
...props,
|
|
232
|
+
children: content
|
|
233
|
+
}
|
|
234
|
+
);
|
|
235
|
+
}
|
|
236
|
+
function PaginationFooter({
|
|
237
|
+
className,
|
|
238
|
+
page,
|
|
239
|
+
count,
|
|
240
|
+
total,
|
|
241
|
+
rowsPerPage,
|
|
242
|
+
renderResultDetails,
|
|
243
|
+
...props
|
|
244
|
+
}) {
|
|
245
|
+
const results = /* @__PURE__ */ jsx(PaginationResults, { page, rowsPerPage, total });
|
|
246
|
+
return /* @__PURE__ */ jsxs(
|
|
247
|
+
"div",
|
|
248
|
+
{
|
|
249
|
+
"data-slot": "pagination-footer",
|
|
250
|
+
className: classNames("flex flex-wrap items-center justify-between gap-space-16", className),
|
|
251
|
+
children: [
|
|
252
|
+
(renderResultDetails == null ? void 0 : renderResultDetails(results)) ?? results,
|
|
253
|
+
/* @__PURE__ */ jsx(Pagination, { page, count, total, rowsPerPage, ...props })
|
|
254
|
+
]
|
|
255
|
+
}
|
|
256
|
+
);
|
|
257
|
+
}
|
|
258
|
+
const PaginationCompound = Pagination;
|
|
259
|
+
PaginationCompound.Item = PaginationItem;
|
|
260
|
+
PaginationCompound.Dot = PaginationDot;
|
|
261
|
+
PaginationCompound.Results = PaginationResults;
|
|
262
|
+
PaginationCompound.PageSize = PaginationPageSize;
|
|
263
|
+
PaginationCompound.Footer = PaginationFooter;
|
|
264
|
+
export {
|
|
265
|
+
PaginationCompound as Pagination,
|
|
266
|
+
PaginationFooter,
|
|
267
|
+
PaginationPageSize,
|
|
268
|
+
PaginationResults,
|
|
269
|
+
PaginationCompound as default,
|
|
270
|
+
getPaginationRange
|
|
271
|
+
};
|
|
272
|
+
//# sourceMappingURL=Pagination.es.js.map
|