@commercetools/nimbus 0.0.0-canary-20250807210749 → 0.0.0-canary-20250808141145
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/chunks/accordion-Bn6CnY0Y.cjs.js.map +1 -1
- package/dist/chunks/accordion-xfgQQjFK.es.js.map +1 -1
- package/dist/chunks/alert-BkF91mJ0.es.js.map +1 -1
- package/dist/chunks/alert-CQLVvNDD.cjs.js.map +1 -1
- package/dist/chunks/badge-CFwI3HLf.cjs.js.map +1 -1
- package/dist/chunks/badge-DVDR3-fy.es.js.map +1 -1
- package/dist/chunks/box-DD4jYgS7.es.js.map +1 -1
- package/dist/chunks/box-FU6tRPFs.cjs.js.map +1 -1
- package/dist/chunks/button-BBwNbl7S.cjs.js.map +1 -1
- package/dist/chunks/button-BTpQweka.es.js.map +1 -1
- package/dist/chunks/calendar-B4nCYXn4.es.js.map +1 -1
- package/dist/chunks/calendar-CKVscUm-.cjs.js.map +1 -1
- package/dist/chunks/card-B9z3AknN.cjs.js.map +1 -1
- package/dist/chunks/card-CvY06qIE.es.js.map +1 -1
- package/dist/chunks/checkbox-DywApPQh.cjs.js.map +1 -1
- package/dist/chunks/checkbox-yo64B6Gz.es.js.map +1 -1
- package/dist/chunks/code-CI8aUhmu.es.js.map +1 -1
- package/dist/chunks/code-Dg4Larbo.cjs.js.map +1 -1
- package/dist/chunks/combobox-D5lDtav9.cjs.js.map +1 -1
- package/dist/chunks/combobox-DWSsUEVz.es.js.map +1 -1
- package/dist/chunks/date-input-4hsVHJJo.es.js.map +1 -1
- package/dist/chunks/date-input-CGy4NHpW.cjs.js.map +1 -1
- package/dist/chunks/date-picker-BfA4uYkg.cjs.js.map +1 -1
- package/dist/chunks/date-picker-UO9jg5oK.es.js.map +1 -1
- package/dist/chunks/{date-range-picker-DGKM05wQ.es.js → date-range-picker-BU5JdXpV.es.js} +69 -69
- package/dist/chunks/date-range-picker-BU5JdXpV.es.js.map +1 -0
- package/dist/chunks/{date-range-picker-D7D7R_4k.cjs.js → date-range-picker-Uh8jNdzD.cjs.js} +2 -2
- package/dist/chunks/date-range-picker-Uh8jNdzD.cjs.js.map +1 -0
- package/dist/chunks/dialog-C1HRMUcF.es.js.map +1 -1
- package/dist/chunks/dialog-amEwvIoM.cjs.js.map +1 -1
- package/dist/chunks/form-field-C9PpQYF0.es.js.map +1 -1
- package/dist/chunks/form-field-CBFyTAo8.cjs.js.map +1 -1
- package/dist/chunks/grid-CugcJxRP.es.js.map +1 -1
- package/dist/chunks/grid-xr2A-OqD.cjs.js.map +1 -1
- package/dist/chunks/group-DKR1JLAy.es.js.map +1 -1
- package/dist/chunks/group-DtSrr9I-.cjs.js.map +1 -1
- package/dist/chunks/icon-BFNYuilh.es.js.map +1 -1
- package/dist/chunks/icon-D50i-dqv.cjs.js.map +1 -1
- package/dist/chunks/icon-button-BEaNe4rE.cjs.js.map +1 -1
- package/dist/chunks/icon-button-DqkVeZCx.es.js.map +1 -1
- package/dist/chunks/image-DCirAAnr.cjs.js.map +1 -1
- package/dist/chunks/image-rXPA3shk.es.js.map +1 -1
- package/dist/chunks/kbd-Bkhw9E6L.cjs.js.map +1 -1
- package/dist/chunks/kbd-Gxvodc1U.es.js.map +1 -1
- package/dist/chunks/link-BS1jRPrC.es.js.map +1 -1
- package/dist/chunks/link-COqOFX5Z.cjs.js.map +1 -1
- package/dist/chunks/list-8yfreyzi.cjs.js.map +1 -1
- package/dist/chunks/list-B21joBrq.es.js.map +1 -1
- package/dist/chunks/loading-spinner-BQd4UVQs.cjs.js.map +1 -1
- package/dist/chunks/loading-spinner-DwN-yshK.es.js.map +1 -1
- package/dist/chunks/multiline-text-input-BCHcfgz9.cjs.js.map +1 -1
- package/dist/chunks/multiline-text-input-sSdbj6tb.es.js.map +1 -1
- package/dist/chunks/nimbus-provider-Bf7NgBYl.cjs.js.map +1 -1
- package/dist/chunks/nimbus-provider-DiytQtCG.es.js.map +1 -1
- package/dist/chunks/number-input-BU6yMXV8.cjs.js.map +1 -1
- package/dist/chunks/number-input-DzwHfylo.es.js.map +1 -1
- package/dist/chunks/password-input-DdJ9gDUr.es.js.map +1 -1
- package/dist/chunks/password-input-DpINXGwE.cjs.js.map +1 -1
- package/dist/chunks/progress-bar-CCyJEPoU.es.js +75 -0
- package/dist/chunks/progress-bar-CCyJEPoU.es.js.map +1 -0
- package/dist/chunks/progress-bar-pMjw8h4h.cjs.js +2 -0
- package/dist/chunks/progress-bar-pMjw8h4h.cjs.js.map +1 -0
- package/dist/chunks/radio-input-BLVHJidw.cjs.js.map +1 -1
- package/dist/chunks/radio-input-CCm7Xqcz.es.js.map +1 -1
- package/dist/chunks/select-BZ2fZDHJ.cjs.js.map +1 -1
- package/dist/chunks/select-Cx0Yiwr-.es.js.map +1 -1
- package/dist/chunks/simple-grid-CFOP9g2P.es.js.map +1 -1
- package/dist/chunks/simple-grid-CHgTayx6.cjs.js.map +1 -1
- package/dist/chunks/stack-__ugxVHD.es.js.map +1 -1
- package/dist/chunks/stack-wFUhYQQb.cjs.js.map +1 -1
- package/dist/chunks/switch-BriJIKqx.es.js.map +1 -1
- package/dist/chunks/switch-GFsEXE6w.cjs.js.map +1 -1
- package/dist/chunks/tag-group-8CojIACI.es.js.map +1 -1
- package/dist/chunks/tag-group-D7GNkec5.cjs.js.map +1 -1
- package/dist/chunks/text--fhvW47o.cjs.js.map +1 -1
- package/dist/chunks/text-CFsPSPPs.es.js.map +1 -1
- package/dist/chunks/text-input-Dg1LSvlo.es.js.map +1 -1
- package/dist/chunks/text-input-DzIZYD16.cjs.js.map +1 -1
- package/dist/chunks/toggle-button-BcbQQcBy.cjs.js.map +1 -1
- package/dist/chunks/toggle-button-DhnBl8Gb.es.js.map +1 -1
- package/dist/chunks/toggle-button-group-BQfaNSZf.es.js.map +1 -1
- package/dist/chunks/toggle-button-group-C5nvmHRc.cjs.js.map +1 -1
- package/dist/chunks/{toolbar-C18za_6s.es.js → toolbar-DZrjQLFq.es.js} +2 -5
- package/dist/chunks/{toolbar-C18za_6s.es.js.map → toolbar-DZrjQLFq.es.js.map} +1 -1
- package/dist/chunks/toolbar-O-t4_xhL.cjs.js.map +1 -1
- package/dist/chunks/tooltip-Bi0556u1.es.js.map +1 -1
- package/dist/chunks/tooltip-DwXtfA_x.cjs.js.map +1 -1
- package/dist/chunks/visually-hidden-Bkimhan7.es.js.map +1 -1
- package/dist/chunks/visually-hidden-KeFRLonC.cjs.js.map +1 -1
- package/dist/components/components.cjs +1 -1
- package/dist/components/components.es.js +3 -3
- package/dist/components/date-range-picker.cjs +1 -1
- package/dist/components/date-range-picker.es.js +1 -1
- package/dist/components/progress-bar.cjs +1 -1
- package/dist/components/progress-bar.es.js +1 -1
- package/dist/components/toolbar.es.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.es.js +3 -3
- package/dist/setup-jsdom-polyfills.cjs.map +1 -1
- package/dist/setup-jsdom-polyfills.es.js.map +1 -1
- package/package.json +5 -5
- package/dist/chunks/date-range-picker-D7D7R_4k.cjs.js.map +0 -1
- package/dist/chunks/date-range-picker-DGKM05wQ.es.js.map +0 -1
- package/dist/chunks/progress-bar-CbZY1dE1.cjs.js +0 -2
- package/dist/chunks/progress-bar-CbZY1dE1.cjs.js.map +0 -1
- package/dist/chunks/progress-bar-VipTWl4r.es.js +0 -71
- package/dist/chunks/progress-bar-VipTWl4r.es.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip-DwXtfA_x.cjs.js","sources":["../../../../node_modules/.pnpm/@react-aria+overlays@3.27.3_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@react-aria/overlays/dist/useModal.mjs","../../../../node_modules/.pnpm/@react-aria+tooltip@3.8.5_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@react-aria/tooltip/dist/useTooltip.mjs","../../../../node_modules/.pnpm/@react-aria+tooltip@3.8.5_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@react-aria/tooltip/dist/useTooltipTrigger.mjs","../../../../node_modules/.pnpm/@react-stately+tooltip@3.5.5_react@19.1.0/node_modules/@react-stately/tooltip/dist/useTooltipTriggerState.mjs","../../../../node_modules/.pnpm/react-aria-components@1.10.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-aria-components/dist/Tooltip.mjs","../../src/components/tooltip/components/tooltip.root.tsx","../../src/components/tooltip/tooltip.slots.ts","../../src/components/tooltip/components/tooltip.content.tsx","../../src/components/tooltip/tooltip.tsx"],"sourcesContent":["import {useUNSAFE_PortalContext as $96b38030c423d352$export$9fc1347d4195ccb3} from \"./PortalProvider.mjs\";\nimport $4AOtR$react, {useContext as $4AOtR$useContext, useState as $4AOtR$useState, useMemo as $4AOtR$useMemo, useEffect as $4AOtR$useEffect} from \"react\";\nimport $4AOtR$reactdom from \"react-dom\";\nimport {useIsSSR as $4AOtR$useIsSSR} from \"@react-aria/ssr\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\n\nconst $f57aed4a881a3485$var$Context = /*#__PURE__*/ (0, $4AOtR$react).createContext(null);\nfunction $f57aed4a881a3485$export$178405afcd8c5eb(props) {\n let { children: children } = props;\n let parent = (0, $4AOtR$useContext)($f57aed4a881a3485$var$Context);\n let [modalCount, setModalCount] = (0, $4AOtR$useState)(0);\n let context = (0, $4AOtR$useMemo)(()=>({\n parent: parent,\n modalCount: modalCount,\n addModal () {\n setModalCount((count)=>count + 1);\n if (parent) parent.addModal();\n },\n removeModal () {\n setModalCount((count)=>count - 1);\n if (parent) parent.removeModal();\n }\n }), [\n parent,\n modalCount\n ]);\n return /*#__PURE__*/ (0, $4AOtR$react).createElement($f57aed4a881a3485$var$Context.Provider, {\n value: context\n }, children);\n}\nfunction $f57aed4a881a3485$export$d9aaed4c3ece1bc0() {\n let context = (0, $4AOtR$useContext)($f57aed4a881a3485$var$Context);\n return {\n modalProviderProps: {\n 'aria-hidden': context && context.modalCount > 0 ? true : undefined\n }\n };\n}\n/**\n * Creates a root node that will be aria-hidden if there are other modals open.\n */ function $f57aed4a881a3485$var$OverlayContainerDOM(props) {\n let { modalProviderProps: modalProviderProps } = $f57aed4a881a3485$export$d9aaed4c3ece1bc0();\n return /*#__PURE__*/ (0, $4AOtR$react).createElement(\"div\", {\n \"data-overlay-container\": true,\n ...props,\n ...modalProviderProps\n });\n}\nfunction $f57aed4a881a3485$export$bf688221f59024e5(props) {\n return /*#__PURE__*/ (0, $4AOtR$react).createElement($f57aed4a881a3485$export$178405afcd8c5eb, null, /*#__PURE__*/ (0, $4AOtR$react).createElement($f57aed4a881a3485$var$OverlayContainerDOM, props));\n}\nfunction $f57aed4a881a3485$export$b47c3594eab58386(props) {\n let isSSR = (0, $4AOtR$useIsSSR)();\n let { portalContainer: portalContainer = isSSR ? null : document.body, ...rest } = props;\n let { getContainer: getContainer } = (0, $96b38030c423d352$export$9fc1347d4195ccb3)();\n if (!props.portalContainer && getContainer) portalContainer = getContainer();\n (0, $4AOtR$react).useEffect(()=>{\n if (portalContainer === null || portalContainer === void 0 ? void 0 : portalContainer.closest('[data-overlay-container]')) throw new Error('An OverlayContainer must not be inside another container. Please change the portalContainer prop.');\n }, [\n portalContainer\n ]);\n if (!portalContainer) return null;\n let contents = /*#__PURE__*/ (0, $4AOtR$react).createElement($f57aed4a881a3485$export$bf688221f59024e5, rest);\n return /*#__PURE__*/ (0, $4AOtR$reactdom).createPortal(contents, portalContainer);\n}\nfunction $f57aed4a881a3485$export$33ffd74ebf07f060(options) {\n // Add aria-hidden to all parent providers on mount, and restore on unmount.\n let context = (0, $4AOtR$useContext)($f57aed4a881a3485$var$Context);\n if (!context) throw new Error('Modal is not contained within a provider');\n (0, $4AOtR$useEffect)(()=>{\n if ((options === null || options === void 0 ? void 0 : options.isDisabled) || !context || !context.parent) return;\n // The immediate context is from the provider containing this modal, so we only\n // want to trigger aria-hidden on its parents not on the modal provider itself.\n context.parent.addModal();\n return ()=>{\n if (context && context.parent) context.parent.removeModal();\n };\n }, [\n context,\n context.parent,\n options === null || options === void 0 ? void 0 : options.isDisabled\n ]);\n return {\n modalProps: {\n 'data-ismodal': !(options === null || options === void 0 ? void 0 : options.isDisabled)\n }\n };\n}\n\n\nexport {$f57aed4a881a3485$export$178405afcd8c5eb as ModalProvider, $f57aed4a881a3485$export$d9aaed4c3ece1bc0 as useModalProvider, $f57aed4a881a3485$export$bf688221f59024e5 as OverlayProvider, $f57aed4a881a3485$export$b47c3594eab58386 as OverlayContainer, $f57aed4a881a3485$export$33ffd74ebf07f060 as useModal};\n//# sourceMappingURL=useModal.module.js.map\n","import {filterDOMProps as $kwmr2$filterDOMProps, mergeProps as $kwmr2$mergeProps} from \"@react-aria/utils\";\nimport {useHover as $kwmr2$useHover} from \"@react-aria/interactions\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\nfunction $326e436e94273fe1$export$1c4b08e0eca38426(props, state) {\n let domProps = (0, $kwmr2$filterDOMProps)(props, {\n labelable: true\n });\n let { hoverProps: hoverProps } = (0, $kwmr2$useHover)({\n onHoverStart: ()=>state === null || state === void 0 ? void 0 : state.open(true),\n onHoverEnd: ()=>state === null || state === void 0 ? void 0 : state.close()\n });\n return {\n tooltipProps: (0, $kwmr2$mergeProps)(domProps, hoverProps, {\n role: 'tooltip'\n })\n };\n}\n\n\nexport {$326e436e94273fe1$export$1c4b08e0eca38426 as useTooltip};\n//# sourceMappingURL=useTooltip.module.js.map\n","import {getInteractionModality as $6VwSn$getInteractionModality, isFocusVisible as $6VwSn$isFocusVisible, useHover as $6VwSn$useHover, useFocusable as $6VwSn$useFocusable} from \"@react-aria/interactions\";\nimport {useId as $6VwSn$useId, mergeProps as $6VwSn$mergeProps} from \"@react-aria/utils\";\nimport {useRef as $6VwSn$useRef, useEffect as $6VwSn$useEffect} from \"react\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\nfunction $4e1b34546679e357$export$a6da6c504e4bba8b(props, state, ref) {\n let { isDisabled: isDisabled, trigger: trigger } = props;\n let tooltipId = (0, $6VwSn$useId)();\n let isHovered = (0, $6VwSn$useRef)(false);\n let isFocused = (0, $6VwSn$useRef)(false);\n let handleShow = ()=>{\n if (isHovered.current || isFocused.current) state.open(isFocused.current);\n };\n let handleHide = (immediate)=>{\n if (!isHovered.current && !isFocused.current) state.close(immediate);\n };\n (0, $6VwSn$useEffect)(()=>{\n let onKeyDown = (e)=>{\n if (ref && ref.current) // Escape after clicking something can give it keyboard focus\n // dismiss tooltip on esc key press\n {\n if (e.key === 'Escape') {\n e.stopPropagation();\n state.close(true);\n }\n }\n };\n if (state.isOpen) {\n document.addEventListener('keydown', onKeyDown, true);\n return ()=>{\n document.removeEventListener('keydown', onKeyDown, true);\n };\n }\n }, [\n ref,\n state\n ]);\n let onHoverStart = ()=>{\n if (trigger === 'focus') return;\n // In chrome, if you hover a trigger, then another element obscures it, due to keyboard\n // interactions for example, hover will end. When hover is restored after that element disappears,\n // focus moves on for example, then the tooltip will reopen. We check the modality to know if the hover\n // is the result of moving the mouse.\n if ((0, $6VwSn$getInteractionModality)() === 'pointer') isHovered.current = true;\n else isHovered.current = false;\n handleShow();\n };\n let onHoverEnd = ()=>{\n if (trigger === 'focus') return;\n // no matter how the trigger is left, we should close the tooltip\n isFocused.current = false;\n isHovered.current = false;\n handleHide();\n };\n let onPressStart = ()=>{\n // no matter how the trigger is pressed, we should close the tooltip\n isFocused.current = false;\n isHovered.current = false;\n handleHide(true);\n };\n let onFocus = ()=>{\n let isVisible = (0, $6VwSn$isFocusVisible)();\n if (isVisible) {\n isFocused.current = true;\n handleShow();\n }\n };\n let onBlur = ()=>{\n isFocused.current = false;\n isHovered.current = false;\n handleHide(true);\n };\n let { hoverProps: hoverProps } = (0, $6VwSn$useHover)({\n isDisabled: isDisabled,\n onHoverStart: onHoverStart,\n onHoverEnd: onHoverEnd\n });\n let { focusableProps: focusableProps } = (0, $6VwSn$useFocusable)({\n isDisabled: isDisabled,\n onFocus: onFocus,\n onBlur: onBlur\n }, ref);\n return {\n triggerProps: {\n 'aria-describedby': state.isOpen ? tooltipId : undefined,\n ...(0, $6VwSn$mergeProps)(focusableProps, hoverProps, {\n onPointerDown: onPressStart,\n onKeyDown: onPressStart,\n tabIndex: undefined\n })\n },\n tooltipProps: {\n id: tooltipId\n }\n };\n}\n\n\nexport {$4e1b34546679e357$export$a6da6c504e4bba8b as useTooltipTrigger};\n//# sourceMappingURL=useTooltipTrigger.module.js.map\n","import {useMemo as $50cCT$useMemo, useRef as $50cCT$useRef, useEffect as $50cCT$useEffect} from \"react\";\nimport {useOverlayTriggerState as $50cCT$useOverlayTriggerState} from \"@react-stately/overlays\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\nconst $8796f90736e175cb$var$TOOLTIP_DELAY = 1500; // this seems to be a 1.5 second delay, check with design\nconst $8796f90736e175cb$var$TOOLTIP_COOLDOWN = 500;\nlet $8796f90736e175cb$var$tooltips = {};\nlet $8796f90736e175cb$var$tooltipId = 0;\nlet $8796f90736e175cb$var$globalWarmedUp = false;\nlet $8796f90736e175cb$var$globalWarmUpTimeout = null;\nlet $8796f90736e175cb$var$globalCooldownTimeout = null;\nfunction $8796f90736e175cb$export$4d40659c25ecb50b(props = {}) {\n let { delay: delay = $8796f90736e175cb$var$TOOLTIP_DELAY, closeDelay: closeDelay = $8796f90736e175cb$var$TOOLTIP_COOLDOWN } = props;\n let { isOpen: isOpen, open: open, close: close } = (0, $50cCT$useOverlayTriggerState)(props);\n let id = (0, $50cCT$useMemo)(()=>`${++$8796f90736e175cb$var$tooltipId}`, []);\n let closeTimeout = (0, $50cCT$useRef)(null);\n let closeCallback = (0, $50cCT$useRef)(close);\n let ensureTooltipEntry = ()=>{\n $8796f90736e175cb$var$tooltips[id] = hideTooltip;\n };\n let closeOpenTooltips = ()=>{\n for(let hideTooltipId in $8796f90736e175cb$var$tooltips)if (hideTooltipId !== id) {\n $8796f90736e175cb$var$tooltips[hideTooltipId](true);\n delete $8796f90736e175cb$var$tooltips[hideTooltipId];\n }\n };\n let showTooltip = ()=>{\n if (closeTimeout.current) clearTimeout(closeTimeout.current);\n closeTimeout.current = null;\n closeOpenTooltips();\n ensureTooltipEntry();\n $8796f90736e175cb$var$globalWarmedUp = true;\n open();\n if ($8796f90736e175cb$var$globalWarmUpTimeout) {\n clearTimeout($8796f90736e175cb$var$globalWarmUpTimeout);\n $8796f90736e175cb$var$globalWarmUpTimeout = null;\n }\n if ($8796f90736e175cb$var$globalCooldownTimeout) {\n clearTimeout($8796f90736e175cb$var$globalCooldownTimeout);\n $8796f90736e175cb$var$globalCooldownTimeout = null;\n }\n };\n let hideTooltip = (immediate)=>{\n if (immediate || closeDelay <= 0) {\n if (closeTimeout.current) clearTimeout(closeTimeout.current);\n closeTimeout.current = null;\n closeCallback.current();\n } else if (!closeTimeout.current) closeTimeout.current = setTimeout(()=>{\n closeTimeout.current = null;\n closeCallback.current();\n }, closeDelay);\n if ($8796f90736e175cb$var$globalWarmUpTimeout) {\n clearTimeout($8796f90736e175cb$var$globalWarmUpTimeout);\n $8796f90736e175cb$var$globalWarmUpTimeout = null;\n }\n if ($8796f90736e175cb$var$globalWarmedUp) {\n if ($8796f90736e175cb$var$globalCooldownTimeout) clearTimeout($8796f90736e175cb$var$globalCooldownTimeout);\n $8796f90736e175cb$var$globalCooldownTimeout = setTimeout(()=>{\n delete $8796f90736e175cb$var$tooltips[id];\n $8796f90736e175cb$var$globalCooldownTimeout = null;\n $8796f90736e175cb$var$globalWarmedUp = false;\n }, Math.max($8796f90736e175cb$var$TOOLTIP_COOLDOWN, closeDelay));\n }\n };\n let warmupTooltip = ()=>{\n closeOpenTooltips();\n ensureTooltipEntry();\n if (!isOpen && !$8796f90736e175cb$var$globalWarmUpTimeout && !$8796f90736e175cb$var$globalWarmedUp) $8796f90736e175cb$var$globalWarmUpTimeout = setTimeout(()=>{\n $8796f90736e175cb$var$globalWarmUpTimeout = null;\n $8796f90736e175cb$var$globalWarmedUp = true;\n showTooltip();\n }, delay);\n else if (!isOpen) showTooltip();\n };\n (0, $50cCT$useEffect)(()=>{\n closeCallback.current = close;\n }, [\n close\n ]);\n (0, $50cCT$useEffect)(()=>{\n return ()=>{\n if (closeTimeout.current) clearTimeout(closeTimeout.current);\n let tooltip = $8796f90736e175cb$var$tooltips[id];\n if (tooltip) delete $8796f90736e175cb$var$tooltips[id];\n };\n }, [\n id\n ]);\n return {\n isOpen: isOpen,\n open: (immediate)=>{\n if (!immediate && delay > 0 && !closeTimeout.current) warmupTooltip();\n else showTooltip();\n },\n close: hideTooltip\n };\n}\n\n\nexport {$8796f90736e175cb$export$4d40659c25ecb50b as useTooltipTriggerState};\n//# sourceMappingURL=useTooltipTriggerState.module.js.map\n","import {Provider as $64fa3d84918910a7$export$2881499e37b75b9a, useContextProps as $64fa3d84918910a7$export$29f1550f4b0d4415, useRenderProps as $64fa3d84918910a7$export$4d86445c2cf5e3} from \"./utils.mjs\";\nimport {OverlayArrowContext as $44f671af83e7d9e0$export$2de4954e8ae13b9f} from \"./OverlayArrow.mjs\";\nimport {useTooltipTrigger as $cCslV$useTooltipTrigger, OverlayContainer as $cCslV$OverlayContainer, useOverlayPosition as $cCslV$useOverlayPosition, mergeProps as $cCslV$mergeProps, useTooltip as $cCslV$useTooltip} from \"react-aria\";\nimport {FocusableProvider as $cCslV$FocusableProvider} from \"@react-aria/focus\";\nimport {useTooltipTriggerState as $cCslV$useTooltipTriggerState} from \"react-stately\";\nimport $cCslV$react, {createContext as $cCslV$createContext, useRef as $cCslV$useRef, forwardRef as $cCslV$forwardRef, useContext as $cCslV$useContext, useState as $cCslV$useState} from \"react\";\nimport {useExitAnimation as $cCslV$useExitAnimation, useLayoutEffect as $cCslV$useLayoutEffect, useEnterAnimation as $cCslV$useEnterAnimation} from \"@react-aria/utils\";\n\n/*\n * Copyright 2022 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\n\n\n\n\nconst $4e3b923658d69c60$export$7a7623236eec67fa = /*#__PURE__*/ (0, $cCslV$createContext)(null);\nconst $4e3b923658d69c60$export$39ae08fa83328b12 = /*#__PURE__*/ (0, $cCslV$createContext)(null);\nfunction $4e3b923658d69c60$export$8c610744efcf8a1d(props) {\n let state = (0, $cCslV$useTooltipTriggerState)(props);\n let ref = (0, $cCslV$useRef)(null);\n let { triggerProps: triggerProps, tooltipProps: tooltipProps } = (0, $cCslV$useTooltipTrigger)(props, state, ref);\n return /*#__PURE__*/ (0, $cCslV$react).createElement((0, $64fa3d84918910a7$export$2881499e37b75b9a), {\n values: [\n [\n $4e3b923658d69c60$export$7a7623236eec67fa,\n state\n ],\n [\n $4e3b923658d69c60$export$39ae08fa83328b12,\n {\n ...tooltipProps,\n triggerRef: ref\n }\n ]\n ]\n }, /*#__PURE__*/ (0, $cCslV$react).createElement((0, $cCslV$FocusableProvider), {\n ...triggerProps,\n ref: ref\n }, props.children));\n}\nconst $4e3b923658d69c60$export$28c660c63b792dea = /*#__PURE__*/ (0, $cCslV$forwardRef)(function Tooltip({ UNSTABLE_portalContainer: UNSTABLE_portalContainer, ...props }, ref) {\n [props, ref] = (0, $64fa3d84918910a7$export$29f1550f4b0d4415)(props, ref, $4e3b923658d69c60$export$39ae08fa83328b12);\n let contextState = (0, $cCslV$useContext)($4e3b923658d69c60$export$7a7623236eec67fa);\n let localState = (0, $cCslV$useTooltipTriggerState)(props);\n let state = props.isOpen != null || props.defaultOpen != null || !contextState ? localState : contextState;\n let isExiting = (0, $cCslV$useExitAnimation)(ref, state.isOpen) || props.isExiting || false;\n if (!state.isOpen && !isExiting) return null;\n return /*#__PURE__*/ (0, $cCslV$react).createElement((0, $cCslV$OverlayContainer), {\n portalContainer: UNSTABLE_portalContainer\n }, /*#__PURE__*/ (0, $cCslV$react).createElement($4e3b923658d69c60$var$TooltipInner, {\n ...props,\n tooltipRef: ref,\n isExiting: isExiting\n }));\n});\nfunction $4e3b923658d69c60$var$TooltipInner(props) {\n let state = (0, $cCslV$useContext)($4e3b923658d69c60$export$7a7623236eec67fa);\n // Calculate the arrow size internally\n // Referenced from: packages/@react-spectrum/tooltip/src/TooltipTrigger.tsx\n let arrowRef = (0, $cCslV$useRef)(null);\n let [arrowWidth, setArrowWidth] = (0, $cCslV$useState)(0);\n (0, $cCslV$useLayoutEffect)(()=>{\n if (arrowRef.current && state.isOpen) setArrowWidth(arrowRef.current.getBoundingClientRect().width);\n }, [\n state.isOpen,\n arrowRef\n ]);\n let { overlayProps: overlayProps, arrowProps: arrowProps, placement: placement } = (0, $cCslV$useOverlayPosition)({\n placement: props.placement || 'top',\n targetRef: props.triggerRef,\n overlayRef: props.tooltipRef,\n offset: props.offset,\n crossOffset: props.crossOffset,\n isOpen: state.isOpen,\n arrowSize: arrowWidth,\n arrowBoundaryOffset: props.arrowBoundaryOffset,\n shouldFlip: props.shouldFlip,\n onClose: ()=>state.close(true)\n });\n let isEntering = (0, $cCslV$useEnterAnimation)(props.tooltipRef, !!placement) || props.isEntering || false;\n let renderProps = (0, $64fa3d84918910a7$export$4d86445c2cf5e3)({\n ...props,\n defaultClassName: 'react-aria-Tooltip',\n values: {\n placement: placement,\n isEntering: isEntering,\n isExiting: props.isExiting,\n state: state\n }\n });\n props = (0, $cCslV$mergeProps)(props, overlayProps);\n let { tooltipProps: tooltipProps } = (0, $cCslV$useTooltip)(props, state);\n return /*#__PURE__*/ (0, $cCslV$react).createElement(\"div\", {\n ...tooltipProps,\n ref: props.tooltipRef,\n ...renderProps,\n style: {\n ...overlayProps.style,\n ...renderProps.style\n },\n \"data-placement\": placement !== null && placement !== void 0 ? placement : undefined,\n \"data-entering\": isEntering || undefined,\n \"data-exiting\": props.isExiting || undefined\n }, /*#__PURE__*/ (0, $cCslV$react).createElement((0, $44f671af83e7d9e0$export$2de4954e8ae13b9f).Provider, {\n value: {\n ...arrowProps,\n placement: placement,\n ref: arrowRef\n }\n }, renderProps.children));\n}\n\n\nexport {$4e3b923658d69c60$export$7a7623236eec67fa as TooltipTriggerStateContext, $4e3b923658d69c60$export$39ae08fa83328b12 as TooltipContext, $4e3b923658d69c60$export$8c610744efcf8a1d as TooltipTrigger, $4e3b923658d69c60$export$28c660c63b792dea as Tooltip};\n//# sourceMappingURL=Tooltip.module.js.map\n","import React from \"react\";\nimport { TooltipTrigger } from \"react-aria-components\";\nimport type { TooltipTriggerComponentProps } from \"react-aria-components\";\n\n/**\n * # Tooltip\n * \n * A contextual popup that displays a description for an element.\n * \n * @see {@link https://nimbus-documentation.vercel.app/components/feedback/tooltip}\n */\nexport function TooltipRoot({\n // Match delays to current ui-kit tooltip\n delay = 300,\n closeDelay = 200,\n ...props\n}: TooltipTriggerComponentProps) {\n // Note: In React 19, ref forwarding is automatic for function components\n // The ref should be placed on the trigger element directly when needed\n return <TooltipTrigger delay={delay} closeDelay={closeDelay} {...props} />;\n}\n\nTooltipRoot.displayName = \"Tooltip.Root\";\n","import {\n type HTMLChakraProps,\n type RecipeProps,\n type UnstyledProp,\n createRecipeContext,\n} from \"@chakra-ui/react\";\n\nimport { type TooltipProps as RATooltipProps } from \"react-aria-components\";\n\nimport { tooltipRecipe } from \"./tooltip.recipe\";\n\n/**\n * Base recipe props interface that combines Chakra UI's recipe props\n */\ninterface TooltipRecipeProps extends RecipeProps<\"div\">, UnstyledProp {}\n\n/**\n * Root props interface that extends Chakra's HTML props with our recipe props.\n * This creates a complete set of props for the root element, combining\n * HTML attributes, Chakra's styling system, and our custom recipe props.\n */\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\nexport interface TooltipRootProps\n extends HTMLChakraProps<\"div\", TooltipRecipeProps> {}\n\nconst { withContext } = createRecipeContext({ recipe: tooltipRecipe });\n\n/**\n * Root component that provides the styling context for the Tooltip component.\n * Uses Chakra UI's recipe context system for consistent styling across instances.\n */\nexport const TooltipRootSlot = withContext<\n HTMLDivElement,\n TooltipRootProps & RATooltipProps\n>(\"div\");\n","import { Tooltip as RATooltip } from \"react-aria-components\";\nimport { TooltipRootSlot } from \"../tooltip.slots\";\nimport type { TooltipProps } from \"../tooltip.types\";\n\n/**\n * TooltipContent\n * ============================================================\n * A contextual popup that displays a description for an element, uses `Tooltip` component from `react-aria-components`.\n *\n * Features:\n * - allows forwarding refs to the underlying DOM element\n * - accepts all native html 'HTMLDivElement' attributes (including aria- & data-attributes)\n * - allows overriding styles by using style-props\n *\n * Further Context:\n * - [React Aria Components Tooltip Documentation](https://react-spectrum.adobe.com/react-aria/Tooltip.html)\n * - [ARIA Tooltip Pattern](https://www.w3.org/TR/wai-aria-1.2/#tooltip)\n */\nexport function TooltipContent({\n children,\n placement = \"bottom\",\n ref,\n ...props\n}: TooltipProps & { ref?: React.Ref<HTMLDivElement> }) {\n return (\n <TooltipRootSlot ref={ref} asChild {...props}>\n <RATooltip placement={placement} {...props}>\n {children}\n </RATooltip>\n </TooltipRootSlot>\n );\n}\n\nTooltipContent.displayName = \"Tooltip.Content\";\n","import { TooltipRoot } from \"./components/tooltip.root\";\nimport { TooltipContent } from \"./components/tooltip.content\";\n\n// Exports for internal use by react-docgen\nexport { TooltipRoot as _TooltipRoot, TooltipContent as _TooltipContent };\n\n// Export compound component object\nexport const Tooltip = {\n Root: TooltipRoot,\n Content: TooltipContent,\n};\n"],"names":["$f57aed4a881a3485$var$Context","$4AOtR$react","$f57aed4a881a3485$export$178405afcd8c5eb","props","children","parent","$4AOtR$useContext","modalCount","setModalCount","$4AOtR$useState","context","$4AOtR$useMemo","count","$f57aed4a881a3485$export$d9aaed4c3ece1bc0","$f57aed4a881a3485$var$OverlayContainerDOM","modalProviderProps","$f57aed4a881a3485$export$bf688221f59024e5","$f57aed4a881a3485$export$b47c3594eab58386","isSSR","$4AOtR$useIsSSR","portalContainer","rest","getContainer","$96b38030c423d352$export$9fc1347d4195ccb3","contents","$4AOtR$reactdom","$326e436e94273fe1$export$1c4b08e0eca38426","state","domProps","$kwmr2$filterDOMProps","hoverProps","$kwmr2$useHover","$kwmr2$mergeProps","$4e1b34546679e357$export$a6da6c504e4bba8b","ref","isDisabled","trigger","tooltipId","$6VwSn$useId","isHovered","$6VwSn$useRef","isFocused","handleShow","handleHide","immediate","$6VwSn$useEffect","onKeyDown","e","onHoverStart","$6VwSn$getInteractionModality","onHoverEnd","onPressStart","onFocus","$6VwSn$isFocusVisible","onBlur","$6VwSn$useHover","focusableProps","$6VwSn$useFocusable","$6VwSn$mergeProps","$8796f90736e175cb$var$TOOLTIP_DELAY","$8796f90736e175cb$var$TOOLTIP_COOLDOWN","$8796f90736e175cb$var$tooltips","$8796f90736e175cb$var$tooltipId","$8796f90736e175cb$var$globalWarmedUp","$8796f90736e175cb$var$globalWarmUpTimeout","$8796f90736e175cb$var$globalCooldownTimeout","$8796f90736e175cb$export$4d40659c25ecb50b","delay","closeDelay","isOpen","open","close","$50cCT$useOverlayTriggerState","id","$50cCT$useMemo","closeTimeout","$50cCT$useRef","closeCallback","ensureTooltipEntry","hideTooltip","closeOpenTooltips","hideTooltipId","showTooltip","warmupTooltip","$50cCT$useEffect","$4e3b923658d69c60$export$7a7623236eec67fa","$cCslV$createContext","$4e3b923658d69c60$export$39ae08fa83328b12","$4e3b923658d69c60$export$8c610744efcf8a1d","$cCslV$useTooltipTriggerState","$cCslV$useRef","triggerProps","tooltipProps","$cCslV$useTooltipTrigger","$cCslV$react","$64fa3d84918910a7$export$2881499e37b75b9a","$cCslV$FocusableProvider","$4e3b923658d69c60$export$28c660c63b792dea","$cCslV$forwardRef","UNSTABLE_portalContainer","$64fa3d84918910a7$export$29f1550f4b0d4415","contextState","$cCslV$useContext","localState","isExiting","$cCslV$useExitAnimation","$cCslV$OverlayContainer","$4e3b923658d69c60$var$TooltipInner","arrowRef","arrowWidth","setArrowWidth","$cCslV$useState","$cCslV$useLayoutEffect","overlayProps","arrowProps","placement","$cCslV$useOverlayPosition","isEntering","$cCslV$useEnterAnimation","renderProps","$64fa3d84918910a7$export$4d86445c2cf5e3","$cCslV$mergeProps","$cCslV$useTooltip","$44f671af83e7d9e0$export$2de4954e8ae13b9f","TooltipRoot","jsx","TooltipTrigger","withContext","createRecipeContext","tooltipRecipe","TooltipRootSlot","TooltipContent","R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AiBE,GAAc,OAC/B,eAAgBlH,EAAM,WAAa,MAC3C,EAAyB2F,EAAc,cAAkB6B,EAAAA,0CAA2C,SAAU,CACtG,MAAO,CACH,GAAGT,EACH,UAAWC,EACX,IAAKP,CACjB,CACA,EAAOW,EAAY,QAAQ,CAAC,CAC5B,CC7GO,SAASK,EAAY,CAE1B,MAAAzD,EAAQ,IACR,WAAAC,EAAa,IACb,GAAGjE,CACL,EAAiC,CAG/B,OAAO0H,EAAAA,IAACC,EAAA,CAAe,MAAA3D,EAAc,WAAAC,EAAyB,GAAGjE,EAAO,CAC1E,CAEAyH,EAAY,YAAc,eCG1B,KAAM,CAAE,YAAAG,EAAA,EAAgBC,EAAAA,oBAAoB,CAAE,OAAQC,EAAAA,cAAe,EAMxDC,GAAkBH,GAG7B,KAAK,EChBA,SAASI,EAAe,CAC7B,SAAA/H,EACA,UAAA+G,EAAY,SACZ,IAAAjF,EACA,GAAG/B,CACL,EAAuD,CACrD,OACE0H,EAAAA,IAACK,GAAA,CAAgB,IAAAhG,EAAU,QAAO,GAAE,GAAG/B,EACrC,SAAA0H,EAAAA,IAACO,EAAA,CAAU,UAAAjB,EAAuB,GAAGhH,EAClC,SAAAC,EACH,EACF,CAEJ,CAEA+H,EAAe,YAAc,kBC1BtB,MAAME,GAAU,CACrB,KAAMT,EACN,QAASO,CACX","x_google_ignoreList":[0,1,2,3,4]}
|
|
1
|
+
{"version":3,"file":"tooltip-DwXtfA_x.cjs.js","sources":["../../../../node_modules/.pnpm/@react-aria+overlays@3.27.3_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@react-aria/overlays/dist/useModal.mjs","../../../../node_modules/.pnpm/@react-aria+tooltip@3.8.5_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@react-aria/tooltip/dist/useTooltip.mjs","../../../../node_modules/.pnpm/@react-aria+tooltip@3.8.5_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@react-aria/tooltip/dist/useTooltipTrigger.mjs","../../../../node_modules/.pnpm/@react-stately+tooltip@3.5.5_react@19.1.0/node_modules/@react-stately/tooltip/dist/useTooltipTriggerState.mjs","../../../../node_modules/.pnpm/react-aria-components@1.10.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-aria-components/dist/Tooltip.mjs","../../src/components/tooltip/components/tooltip.root.tsx","../../src/components/tooltip/tooltip.slots.ts","../../src/components/tooltip/components/tooltip.content.tsx","../../src/components/tooltip/tooltip.tsx"],"sourcesContent":["import {useUNSAFE_PortalContext as $96b38030c423d352$export$9fc1347d4195ccb3} from \"./PortalProvider.mjs\";\nimport $4AOtR$react, {useContext as $4AOtR$useContext, useState as $4AOtR$useState, useMemo as $4AOtR$useMemo, useEffect as $4AOtR$useEffect} from \"react\";\nimport $4AOtR$reactdom from \"react-dom\";\nimport {useIsSSR as $4AOtR$useIsSSR} from \"@react-aria/ssr\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\n\nconst $f57aed4a881a3485$var$Context = /*#__PURE__*/ (0, $4AOtR$react).createContext(null);\nfunction $f57aed4a881a3485$export$178405afcd8c5eb(props) {\n let { children: children } = props;\n let parent = (0, $4AOtR$useContext)($f57aed4a881a3485$var$Context);\n let [modalCount, setModalCount] = (0, $4AOtR$useState)(0);\n let context = (0, $4AOtR$useMemo)(()=>({\n parent: parent,\n modalCount: modalCount,\n addModal () {\n setModalCount((count)=>count + 1);\n if (parent) parent.addModal();\n },\n removeModal () {\n setModalCount((count)=>count - 1);\n if (parent) parent.removeModal();\n }\n }), [\n parent,\n modalCount\n ]);\n return /*#__PURE__*/ (0, $4AOtR$react).createElement($f57aed4a881a3485$var$Context.Provider, {\n value: context\n }, children);\n}\nfunction $f57aed4a881a3485$export$d9aaed4c3ece1bc0() {\n let context = (0, $4AOtR$useContext)($f57aed4a881a3485$var$Context);\n return {\n modalProviderProps: {\n 'aria-hidden': context && context.modalCount > 0 ? true : undefined\n }\n };\n}\n/**\n * Creates a root node that will be aria-hidden if there are other modals open.\n */ function $f57aed4a881a3485$var$OverlayContainerDOM(props) {\n let { modalProviderProps: modalProviderProps } = $f57aed4a881a3485$export$d9aaed4c3ece1bc0();\n return /*#__PURE__*/ (0, $4AOtR$react).createElement(\"div\", {\n \"data-overlay-container\": true,\n ...props,\n ...modalProviderProps\n });\n}\nfunction $f57aed4a881a3485$export$bf688221f59024e5(props) {\n return /*#__PURE__*/ (0, $4AOtR$react).createElement($f57aed4a881a3485$export$178405afcd8c5eb, null, /*#__PURE__*/ (0, $4AOtR$react).createElement($f57aed4a881a3485$var$OverlayContainerDOM, props));\n}\nfunction $f57aed4a881a3485$export$b47c3594eab58386(props) {\n let isSSR = (0, $4AOtR$useIsSSR)();\n let { portalContainer: portalContainer = isSSR ? null : document.body, ...rest } = props;\n let { getContainer: getContainer } = (0, $96b38030c423d352$export$9fc1347d4195ccb3)();\n if (!props.portalContainer && getContainer) portalContainer = getContainer();\n (0, $4AOtR$react).useEffect(()=>{\n if (portalContainer === null || portalContainer === void 0 ? void 0 : portalContainer.closest('[data-overlay-container]')) throw new Error('An OverlayContainer must not be inside another container. Please change the portalContainer prop.');\n }, [\n portalContainer\n ]);\n if (!portalContainer) return null;\n let contents = /*#__PURE__*/ (0, $4AOtR$react).createElement($f57aed4a881a3485$export$bf688221f59024e5, rest);\n return /*#__PURE__*/ (0, $4AOtR$reactdom).createPortal(contents, portalContainer);\n}\nfunction $f57aed4a881a3485$export$33ffd74ebf07f060(options) {\n // Add aria-hidden to all parent providers on mount, and restore on unmount.\n let context = (0, $4AOtR$useContext)($f57aed4a881a3485$var$Context);\n if (!context) throw new Error('Modal is not contained within a provider');\n (0, $4AOtR$useEffect)(()=>{\n if ((options === null || options === void 0 ? void 0 : options.isDisabled) || !context || !context.parent) return;\n // The immediate context is from the provider containing this modal, so we only\n // want to trigger aria-hidden on its parents not on the modal provider itself.\n context.parent.addModal();\n return ()=>{\n if (context && context.parent) context.parent.removeModal();\n };\n }, [\n context,\n context.parent,\n options === null || options === void 0 ? void 0 : options.isDisabled\n ]);\n return {\n modalProps: {\n 'data-ismodal': !(options === null || options === void 0 ? void 0 : options.isDisabled)\n }\n };\n}\n\n\nexport {$f57aed4a881a3485$export$178405afcd8c5eb as ModalProvider, $f57aed4a881a3485$export$d9aaed4c3ece1bc0 as useModalProvider, $f57aed4a881a3485$export$bf688221f59024e5 as OverlayProvider, $f57aed4a881a3485$export$b47c3594eab58386 as OverlayContainer, $f57aed4a881a3485$export$33ffd74ebf07f060 as useModal};\n//# sourceMappingURL=useModal.module.js.map\n","import {filterDOMProps as $kwmr2$filterDOMProps, mergeProps as $kwmr2$mergeProps} from \"@react-aria/utils\";\nimport {useHover as $kwmr2$useHover} from \"@react-aria/interactions\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\nfunction $326e436e94273fe1$export$1c4b08e0eca38426(props, state) {\n let domProps = (0, $kwmr2$filterDOMProps)(props, {\n labelable: true\n });\n let { hoverProps: hoverProps } = (0, $kwmr2$useHover)({\n onHoverStart: ()=>state === null || state === void 0 ? void 0 : state.open(true),\n onHoverEnd: ()=>state === null || state === void 0 ? void 0 : state.close()\n });\n return {\n tooltipProps: (0, $kwmr2$mergeProps)(domProps, hoverProps, {\n role: 'tooltip'\n })\n };\n}\n\n\nexport {$326e436e94273fe1$export$1c4b08e0eca38426 as useTooltip};\n//# sourceMappingURL=useTooltip.module.js.map\n","import {getInteractionModality as $6VwSn$getInteractionModality, isFocusVisible as $6VwSn$isFocusVisible, useHover as $6VwSn$useHover, useFocusable as $6VwSn$useFocusable} from \"@react-aria/interactions\";\nimport {useId as $6VwSn$useId, mergeProps as $6VwSn$mergeProps} from \"@react-aria/utils\";\nimport {useRef as $6VwSn$useRef, useEffect as $6VwSn$useEffect} from \"react\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\nfunction $4e1b34546679e357$export$a6da6c504e4bba8b(props, state, ref) {\n let { isDisabled: isDisabled, trigger: trigger } = props;\n let tooltipId = (0, $6VwSn$useId)();\n let isHovered = (0, $6VwSn$useRef)(false);\n let isFocused = (0, $6VwSn$useRef)(false);\n let handleShow = ()=>{\n if (isHovered.current || isFocused.current) state.open(isFocused.current);\n };\n let handleHide = (immediate)=>{\n if (!isHovered.current && !isFocused.current) state.close(immediate);\n };\n (0, $6VwSn$useEffect)(()=>{\n let onKeyDown = (e)=>{\n if (ref && ref.current) // Escape after clicking something can give it keyboard focus\n // dismiss tooltip on esc key press\n {\n if (e.key === 'Escape') {\n e.stopPropagation();\n state.close(true);\n }\n }\n };\n if (state.isOpen) {\n document.addEventListener('keydown', onKeyDown, true);\n return ()=>{\n document.removeEventListener('keydown', onKeyDown, true);\n };\n }\n }, [\n ref,\n state\n ]);\n let onHoverStart = ()=>{\n if (trigger === 'focus') return;\n // In chrome, if you hover a trigger, then another element obscures it, due to keyboard\n // interactions for example, hover will end. When hover is restored after that element disappears,\n // focus moves on for example, then the tooltip will reopen. We check the modality to know if the hover\n // is the result of moving the mouse.\n if ((0, $6VwSn$getInteractionModality)() === 'pointer') isHovered.current = true;\n else isHovered.current = false;\n handleShow();\n };\n let onHoverEnd = ()=>{\n if (trigger === 'focus') return;\n // no matter how the trigger is left, we should close the tooltip\n isFocused.current = false;\n isHovered.current = false;\n handleHide();\n };\n let onPressStart = ()=>{\n // no matter how the trigger is pressed, we should close the tooltip\n isFocused.current = false;\n isHovered.current = false;\n handleHide(true);\n };\n let onFocus = ()=>{\n let isVisible = (0, $6VwSn$isFocusVisible)();\n if (isVisible) {\n isFocused.current = true;\n handleShow();\n }\n };\n let onBlur = ()=>{\n isFocused.current = false;\n isHovered.current = false;\n handleHide(true);\n };\n let { hoverProps: hoverProps } = (0, $6VwSn$useHover)({\n isDisabled: isDisabled,\n onHoverStart: onHoverStart,\n onHoverEnd: onHoverEnd\n });\n let { focusableProps: focusableProps } = (0, $6VwSn$useFocusable)({\n isDisabled: isDisabled,\n onFocus: onFocus,\n onBlur: onBlur\n }, ref);\n return {\n triggerProps: {\n 'aria-describedby': state.isOpen ? tooltipId : undefined,\n ...(0, $6VwSn$mergeProps)(focusableProps, hoverProps, {\n onPointerDown: onPressStart,\n onKeyDown: onPressStart,\n tabIndex: undefined\n })\n },\n tooltipProps: {\n id: tooltipId\n }\n };\n}\n\n\nexport {$4e1b34546679e357$export$a6da6c504e4bba8b as useTooltipTrigger};\n//# sourceMappingURL=useTooltipTrigger.module.js.map\n","import {useMemo as $50cCT$useMemo, useRef as $50cCT$useRef, useEffect as $50cCT$useEffect} from \"react\";\nimport {useOverlayTriggerState as $50cCT$useOverlayTriggerState} from \"@react-stately/overlays\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\nconst $8796f90736e175cb$var$TOOLTIP_DELAY = 1500; // this seems to be a 1.5 second delay, check with design\nconst $8796f90736e175cb$var$TOOLTIP_COOLDOWN = 500;\nlet $8796f90736e175cb$var$tooltips = {};\nlet $8796f90736e175cb$var$tooltipId = 0;\nlet $8796f90736e175cb$var$globalWarmedUp = false;\nlet $8796f90736e175cb$var$globalWarmUpTimeout = null;\nlet $8796f90736e175cb$var$globalCooldownTimeout = null;\nfunction $8796f90736e175cb$export$4d40659c25ecb50b(props = {}) {\n let { delay: delay = $8796f90736e175cb$var$TOOLTIP_DELAY, closeDelay: closeDelay = $8796f90736e175cb$var$TOOLTIP_COOLDOWN } = props;\n let { isOpen: isOpen, open: open, close: close } = (0, $50cCT$useOverlayTriggerState)(props);\n let id = (0, $50cCT$useMemo)(()=>`${++$8796f90736e175cb$var$tooltipId}`, []);\n let closeTimeout = (0, $50cCT$useRef)(null);\n let closeCallback = (0, $50cCT$useRef)(close);\n let ensureTooltipEntry = ()=>{\n $8796f90736e175cb$var$tooltips[id] = hideTooltip;\n };\n let closeOpenTooltips = ()=>{\n for(let hideTooltipId in $8796f90736e175cb$var$tooltips)if (hideTooltipId !== id) {\n $8796f90736e175cb$var$tooltips[hideTooltipId](true);\n delete $8796f90736e175cb$var$tooltips[hideTooltipId];\n }\n };\n let showTooltip = ()=>{\n if (closeTimeout.current) clearTimeout(closeTimeout.current);\n closeTimeout.current = null;\n closeOpenTooltips();\n ensureTooltipEntry();\n $8796f90736e175cb$var$globalWarmedUp = true;\n open();\n if ($8796f90736e175cb$var$globalWarmUpTimeout) {\n clearTimeout($8796f90736e175cb$var$globalWarmUpTimeout);\n $8796f90736e175cb$var$globalWarmUpTimeout = null;\n }\n if ($8796f90736e175cb$var$globalCooldownTimeout) {\n clearTimeout($8796f90736e175cb$var$globalCooldownTimeout);\n $8796f90736e175cb$var$globalCooldownTimeout = null;\n }\n };\n let hideTooltip = (immediate)=>{\n if (immediate || closeDelay <= 0) {\n if (closeTimeout.current) clearTimeout(closeTimeout.current);\n closeTimeout.current = null;\n closeCallback.current();\n } else if (!closeTimeout.current) closeTimeout.current = setTimeout(()=>{\n closeTimeout.current = null;\n closeCallback.current();\n }, closeDelay);\n if ($8796f90736e175cb$var$globalWarmUpTimeout) {\n clearTimeout($8796f90736e175cb$var$globalWarmUpTimeout);\n $8796f90736e175cb$var$globalWarmUpTimeout = null;\n }\n if ($8796f90736e175cb$var$globalWarmedUp) {\n if ($8796f90736e175cb$var$globalCooldownTimeout) clearTimeout($8796f90736e175cb$var$globalCooldownTimeout);\n $8796f90736e175cb$var$globalCooldownTimeout = setTimeout(()=>{\n delete $8796f90736e175cb$var$tooltips[id];\n $8796f90736e175cb$var$globalCooldownTimeout = null;\n $8796f90736e175cb$var$globalWarmedUp = false;\n }, Math.max($8796f90736e175cb$var$TOOLTIP_COOLDOWN, closeDelay));\n }\n };\n let warmupTooltip = ()=>{\n closeOpenTooltips();\n ensureTooltipEntry();\n if (!isOpen && !$8796f90736e175cb$var$globalWarmUpTimeout && !$8796f90736e175cb$var$globalWarmedUp) $8796f90736e175cb$var$globalWarmUpTimeout = setTimeout(()=>{\n $8796f90736e175cb$var$globalWarmUpTimeout = null;\n $8796f90736e175cb$var$globalWarmedUp = true;\n showTooltip();\n }, delay);\n else if (!isOpen) showTooltip();\n };\n (0, $50cCT$useEffect)(()=>{\n closeCallback.current = close;\n }, [\n close\n ]);\n (0, $50cCT$useEffect)(()=>{\n return ()=>{\n if (closeTimeout.current) clearTimeout(closeTimeout.current);\n let tooltip = $8796f90736e175cb$var$tooltips[id];\n if (tooltip) delete $8796f90736e175cb$var$tooltips[id];\n };\n }, [\n id\n ]);\n return {\n isOpen: isOpen,\n open: (immediate)=>{\n if (!immediate && delay > 0 && !closeTimeout.current) warmupTooltip();\n else showTooltip();\n },\n close: hideTooltip\n };\n}\n\n\nexport {$8796f90736e175cb$export$4d40659c25ecb50b as useTooltipTriggerState};\n//# sourceMappingURL=useTooltipTriggerState.module.js.map\n","import {Provider as $64fa3d84918910a7$export$2881499e37b75b9a, useContextProps as $64fa3d84918910a7$export$29f1550f4b0d4415, useRenderProps as $64fa3d84918910a7$export$4d86445c2cf5e3} from \"./utils.mjs\";\nimport {OverlayArrowContext as $44f671af83e7d9e0$export$2de4954e8ae13b9f} from \"./OverlayArrow.mjs\";\nimport {useTooltipTrigger as $cCslV$useTooltipTrigger, OverlayContainer as $cCslV$OverlayContainer, useOverlayPosition as $cCslV$useOverlayPosition, mergeProps as $cCslV$mergeProps, useTooltip as $cCslV$useTooltip} from \"react-aria\";\nimport {FocusableProvider as $cCslV$FocusableProvider} from \"@react-aria/focus\";\nimport {useTooltipTriggerState as $cCslV$useTooltipTriggerState} from \"react-stately\";\nimport $cCslV$react, {createContext as $cCslV$createContext, useRef as $cCslV$useRef, forwardRef as $cCslV$forwardRef, useContext as $cCslV$useContext, useState as $cCslV$useState} from \"react\";\nimport {useExitAnimation as $cCslV$useExitAnimation, useLayoutEffect as $cCslV$useLayoutEffect, useEnterAnimation as $cCslV$useEnterAnimation} from \"@react-aria/utils\";\n\n/*\n * Copyright 2022 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\n\n\n\n\nconst $4e3b923658d69c60$export$7a7623236eec67fa = /*#__PURE__*/ (0, $cCslV$createContext)(null);\nconst $4e3b923658d69c60$export$39ae08fa83328b12 = /*#__PURE__*/ (0, $cCslV$createContext)(null);\nfunction $4e3b923658d69c60$export$8c610744efcf8a1d(props) {\n let state = (0, $cCslV$useTooltipTriggerState)(props);\n let ref = (0, $cCslV$useRef)(null);\n let { triggerProps: triggerProps, tooltipProps: tooltipProps } = (0, $cCslV$useTooltipTrigger)(props, state, ref);\n return /*#__PURE__*/ (0, $cCslV$react).createElement((0, $64fa3d84918910a7$export$2881499e37b75b9a), {\n values: [\n [\n $4e3b923658d69c60$export$7a7623236eec67fa,\n state\n ],\n [\n $4e3b923658d69c60$export$39ae08fa83328b12,\n {\n ...tooltipProps,\n triggerRef: ref\n }\n ]\n ]\n }, /*#__PURE__*/ (0, $cCslV$react).createElement((0, $cCslV$FocusableProvider), {\n ...triggerProps,\n ref: ref\n }, props.children));\n}\nconst $4e3b923658d69c60$export$28c660c63b792dea = /*#__PURE__*/ (0, $cCslV$forwardRef)(function Tooltip({ UNSTABLE_portalContainer: UNSTABLE_portalContainer, ...props }, ref) {\n [props, ref] = (0, $64fa3d84918910a7$export$29f1550f4b0d4415)(props, ref, $4e3b923658d69c60$export$39ae08fa83328b12);\n let contextState = (0, $cCslV$useContext)($4e3b923658d69c60$export$7a7623236eec67fa);\n let localState = (0, $cCslV$useTooltipTriggerState)(props);\n let state = props.isOpen != null || props.defaultOpen != null || !contextState ? localState : contextState;\n let isExiting = (0, $cCslV$useExitAnimation)(ref, state.isOpen) || props.isExiting || false;\n if (!state.isOpen && !isExiting) return null;\n return /*#__PURE__*/ (0, $cCslV$react).createElement((0, $cCslV$OverlayContainer), {\n portalContainer: UNSTABLE_portalContainer\n }, /*#__PURE__*/ (0, $cCslV$react).createElement($4e3b923658d69c60$var$TooltipInner, {\n ...props,\n tooltipRef: ref,\n isExiting: isExiting\n }));\n});\nfunction $4e3b923658d69c60$var$TooltipInner(props) {\n let state = (0, $cCslV$useContext)($4e3b923658d69c60$export$7a7623236eec67fa);\n // Calculate the arrow size internally\n // Referenced from: packages/@react-spectrum/tooltip/src/TooltipTrigger.tsx\n let arrowRef = (0, $cCslV$useRef)(null);\n let [arrowWidth, setArrowWidth] = (0, $cCslV$useState)(0);\n (0, $cCslV$useLayoutEffect)(()=>{\n if (arrowRef.current && state.isOpen) setArrowWidth(arrowRef.current.getBoundingClientRect().width);\n }, [\n state.isOpen,\n arrowRef\n ]);\n let { overlayProps: overlayProps, arrowProps: arrowProps, placement: placement } = (0, $cCslV$useOverlayPosition)({\n placement: props.placement || 'top',\n targetRef: props.triggerRef,\n overlayRef: props.tooltipRef,\n offset: props.offset,\n crossOffset: props.crossOffset,\n isOpen: state.isOpen,\n arrowSize: arrowWidth,\n arrowBoundaryOffset: props.arrowBoundaryOffset,\n shouldFlip: props.shouldFlip,\n onClose: ()=>state.close(true)\n });\n let isEntering = (0, $cCslV$useEnterAnimation)(props.tooltipRef, !!placement) || props.isEntering || false;\n let renderProps = (0, $64fa3d84918910a7$export$4d86445c2cf5e3)({\n ...props,\n defaultClassName: 'react-aria-Tooltip',\n values: {\n placement: placement,\n isEntering: isEntering,\n isExiting: props.isExiting,\n state: state\n }\n });\n props = (0, $cCslV$mergeProps)(props, overlayProps);\n let { tooltipProps: tooltipProps } = (0, $cCslV$useTooltip)(props, state);\n return /*#__PURE__*/ (0, $cCslV$react).createElement(\"div\", {\n ...tooltipProps,\n ref: props.tooltipRef,\n ...renderProps,\n style: {\n ...overlayProps.style,\n ...renderProps.style\n },\n \"data-placement\": placement !== null && placement !== void 0 ? placement : undefined,\n \"data-entering\": isEntering || undefined,\n \"data-exiting\": props.isExiting || undefined\n }, /*#__PURE__*/ (0, $cCslV$react).createElement((0, $44f671af83e7d9e0$export$2de4954e8ae13b9f).Provider, {\n value: {\n ...arrowProps,\n placement: placement,\n ref: arrowRef\n }\n }, renderProps.children));\n}\n\n\nexport {$4e3b923658d69c60$export$7a7623236eec67fa as TooltipTriggerStateContext, $4e3b923658d69c60$export$39ae08fa83328b12 as TooltipContext, $4e3b923658d69c60$export$8c610744efcf8a1d as TooltipTrigger, $4e3b923658d69c60$export$28c660c63b792dea as Tooltip};\n//# sourceMappingURL=Tooltip.module.js.map\n","import React from \"react\";\nimport { TooltipTrigger } from \"react-aria-components\";\nimport type { TooltipTriggerComponentProps } from \"react-aria-components\";\n\n/**\n * # Tooltip\n *\n * A contextual popup that displays a description for an element.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/feedback/tooltip}\n */\nexport function TooltipRoot({\n // Match delays to current ui-kit tooltip\n delay = 300,\n closeDelay = 200,\n ...props\n}: TooltipTriggerComponentProps) {\n // Note: In React 19, ref forwarding is automatic for function components\n // The ref should be placed on the trigger element directly when needed\n return <TooltipTrigger delay={delay} closeDelay={closeDelay} {...props} />;\n}\n\nTooltipRoot.displayName = \"Tooltip.Root\";\n","import {\n type HTMLChakraProps,\n type RecipeProps,\n type UnstyledProp,\n createRecipeContext,\n} from \"@chakra-ui/react\";\n\nimport { type TooltipProps as RATooltipProps } from \"react-aria-components\";\n\nimport { tooltipRecipe } from \"./tooltip.recipe\";\n\n/**\n * Base recipe props interface that combines Chakra UI's recipe props\n */\ninterface TooltipRecipeProps extends RecipeProps<\"div\">, UnstyledProp {}\n\n/**\n * Root props interface that extends Chakra's HTML props with our recipe props.\n * This creates a complete set of props for the root element, combining\n * HTML attributes, Chakra's styling system, and our custom recipe props.\n */\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\nexport interface TooltipRootProps\n extends HTMLChakraProps<\"div\", TooltipRecipeProps> {}\n\nconst { withContext } = createRecipeContext({ recipe: tooltipRecipe });\n\n/**\n * Root component that provides the styling context for the Tooltip component.\n * Uses Chakra UI's recipe context system for consistent styling across instances.\n */\nexport const TooltipRootSlot = withContext<\n HTMLDivElement,\n TooltipRootProps & RATooltipProps\n>(\"div\");\n","import { Tooltip as RATooltip } from \"react-aria-components\";\nimport { TooltipRootSlot } from \"../tooltip.slots\";\nimport type { TooltipProps } from \"../tooltip.types\";\n\n/**\n * TooltipContent\n * ============================================================\n * A contextual popup that displays a description for an element, uses `Tooltip` component from `react-aria-components`.\n *\n * Features:\n * - allows forwarding refs to the underlying DOM element\n * - accepts all native html 'HTMLDivElement' attributes (including aria- & data-attributes)\n * - allows overriding styles by using style-props\n *\n * Further Context:\n * - [React Aria Components Tooltip Documentation](https://react-spectrum.adobe.com/react-aria/Tooltip.html)\n * - [ARIA Tooltip Pattern](https://www.w3.org/TR/wai-aria-1.2/#tooltip)\n */\nexport function TooltipContent({\n children,\n placement = \"bottom\",\n ref,\n ...props\n}: TooltipProps & { ref?: React.Ref<HTMLDivElement> }) {\n return (\n <TooltipRootSlot ref={ref} asChild {...props}>\n <RATooltip placement={placement} {...props}>\n {children}\n </RATooltip>\n </TooltipRootSlot>\n );\n}\n\nTooltipContent.displayName = \"Tooltip.Content\";\n","import { TooltipRoot } from \"./components/tooltip.root\";\nimport { TooltipContent } from \"./components/tooltip.content\";\n\n// Exports for internal use by react-docgen\nexport { TooltipRoot as _TooltipRoot, TooltipContent as _TooltipContent };\n\n// Export compound component object\nexport const Tooltip = {\n Root: TooltipRoot,\n Content: TooltipContent,\n};\n"],"names":["$f57aed4a881a3485$var$Context","$4AOtR$react","$f57aed4a881a3485$export$178405afcd8c5eb","props","children","parent","$4AOtR$useContext","modalCount","setModalCount","$4AOtR$useState","context","$4AOtR$useMemo","count","$f57aed4a881a3485$export$d9aaed4c3ece1bc0","$f57aed4a881a3485$var$OverlayContainerDOM","modalProviderProps","$f57aed4a881a3485$export$bf688221f59024e5","$f57aed4a881a3485$export$b47c3594eab58386","isSSR","$4AOtR$useIsSSR","portalContainer","rest","getContainer","$96b38030c423d352$export$9fc1347d4195ccb3","contents","$4AOtR$reactdom","$326e436e94273fe1$export$1c4b08e0eca38426","state","domProps","$kwmr2$filterDOMProps","hoverProps","$kwmr2$useHover","$kwmr2$mergeProps","$4e1b34546679e357$export$a6da6c504e4bba8b","ref","isDisabled","trigger","tooltipId","$6VwSn$useId","isHovered","$6VwSn$useRef","isFocused","handleShow","handleHide","immediate","$6VwSn$useEffect","onKeyDown","e","onHoverStart","$6VwSn$getInteractionModality","onHoverEnd","onPressStart","onFocus","$6VwSn$isFocusVisible","onBlur","$6VwSn$useHover","focusableProps","$6VwSn$useFocusable","$6VwSn$mergeProps","$8796f90736e175cb$var$TOOLTIP_DELAY","$8796f90736e175cb$var$TOOLTIP_COOLDOWN","$8796f90736e175cb$var$tooltips","$8796f90736e175cb$var$tooltipId","$8796f90736e175cb$var$globalWarmedUp","$8796f90736e175cb$var$globalWarmUpTimeout","$8796f90736e175cb$var$globalCooldownTimeout","$8796f90736e175cb$export$4d40659c25ecb50b","delay","closeDelay","isOpen","open","close","$50cCT$useOverlayTriggerState","id","$50cCT$useMemo","closeTimeout","$50cCT$useRef","closeCallback","ensureTooltipEntry","hideTooltip","closeOpenTooltips","hideTooltipId","showTooltip","warmupTooltip","$50cCT$useEffect","$4e3b923658d69c60$export$7a7623236eec67fa","$cCslV$createContext","$4e3b923658d69c60$export$39ae08fa83328b12","$4e3b923658d69c60$export$8c610744efcf8a1d","$cCslV$useTooltipTriggerState","$cCslV$useRef","triggerProps","tooltipProps","$cCslV$useTooltipTrigger","$cCslV$react","$64fa3d84918910a7$export$2881499e37b75b9a","$cCslV$FocusableProvider","$4e3b923658d69c60$export$28c660c63b792dea","$cCslV$forwardRef","UNSTABLE_portalContainer","$64fa3d84918910a7$export$29f1550f4b0d4415","contextState","$cCslV$useContext","localState","isExiting","$cCslV$useExitAnimation","$cCslV$OverlayContainer","$4e3b923658d69c60$var$TooltipInner","arrowRef","arrowWidth","setArrowWidth","$cCslV$useState","$cCslV$useLayoutEffect","overlayProps","arrowProps","placement","$cCslV$useOverlayPosition","isEntering","$cCslV$useEnterAnimation","renderProps","$64fa3d84918910a7$export$4d86445c2cf5e3","$cCslV$mergeProps","$cCslV$useTooltip","$44f671af83e7d9e0$export$2de4954e8ae13b9f","TooltipRoot","jsx","TooltipTrigger","withContext","createRecipeContext","tooltipRecipe","TooltipRootSlot","TooltipContent","RATooltip","Tooltip"],"mappings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eAAgBlH,EAAM,WAAa,MAC3C,EAAyB2F,EAAc,cAAkB6B,EAAAA,0CAA2C,SAAU,CACtG,MAAO,CACH,GAAGT,EACH,UAAWC,EACX,IAAKP,CACjB,CACA,EAAOW,EAAY,QAAQ,CAAC,CAC5B,CC7GO,SAASK,EAAY,CAE1B,MAAAzD,EAAQ,IACR,WAAAC,EAAa,IACb,GAAGjE,CACL,EAAiC,CAG/B,OAAO0H,EAAAA,IAACC,EAAA,CAAe,MAAA3D,EAAc,WAAAC,EAAyB,GAAGjE,EAAO,CAC1E,CAEAyH,EAAY,YAAc,eCG1B,KAAM,CAAE,YAAAG,EAAA,EAAgBC,EAAAA,oBAAoB,CAAE,OAAQC,EAAAA,cAAe,EAMxDC,GAAkBH,GAG7B,KAAK,EChBA,SAASI,EAAe,CAC7B,SAAA/H,EACA,UAAA+G,EAAY,SACZ,IAAAjF,EACA,GAAG/B,CACL,EAAuD,CACrD,OACE0H,EAAAA,IAACK,GAAA,CAAgB,IAAAhG,EAAU,QAAO,GAAE,GAAG/B,EACrC,SAAA0H,EAAAA,IAACO,EAAA,CAAU,UAAAjB,EAAuB,GAAGhH,EAClC,SAAAC,EACH,EACF,CAEJ,CAEA+H,EAAe,YAAc,kBC1BtB,MAAME,GAAU,CACrB,KAAMT,EACN,QAASO,CACX","x_google_ignoreList":[0,1,2,3,4]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"visually-hidden-Bkimhan7.es.js","sources":["../../src/components/visually-hidden/visually-hidden.tsx"],"sourcesContent":["import {\n VisuallyHidden as ReactAriaViusallyHidden,\n type VisuallyHiddenProps as ReactAriaVisuallyHiddenProps,\n} from \"react-aria\";\n\nexport interface VisuallyHiddenProps\n extends Omit<ReactAriaVisuallyHiddenProps, \"elementType\"> {\n /** specifies the element type to render, use `span` for inline content\n * and `div` for block content */\n as?: \"span\" | \"div\";\n}\n\n/**\n * # VisuallyHidden\n
|
|
1
|
+
{"version":3,"file":"visually-hidden-Bkimhan7.es.js","sources":["../../src/components/visually-hidden/visually-hidden.tsx"],"sourcesContent":["import {\n VisuallyHidden as ReactAriaViusallyHidden,\n type VisuallyHiddenProps as ReactAriaVisuallyHiddenProps,\n} from \"react-aria\";\n\nexport interface VisuallyHiddenProps\n extends Omit<ReactAriaVisuallyHiddenProps, \"elementType\"> {\n /** specifies the element type to render, use `span` for inline content\n * and `div` for block content */\n as?: \"span\" | \"div\";\n}\n\n/**\n * # VisuallyHidden\n *\n * makes content accessible to screen readers but hides it visually\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/accessibility/visually-hidden}\n */\nexport const VisuallyHidden = (props: VisuallyHiddenProps) => {\n const { as = \"div\", ...leftoverProps } = props;\n return <ReactAriaViusallyHidden elementType={as} {...leftoverProps} />;\n};\n\nVisuallyHidden.displayName = \"VisuallyHidden\";\n"],"names":["VisuallyHidden","props","as","leftoverProps","jsx","ReactAriaViusallyHidden"],"mappings":";;AAmBO,MAAMA,IAAiB,CAACC,MAA+B;AAC5D,QAAM,EAAE,IAAAC,IAAK,OAAO,GAAGC,MAAkBF;AACzC,SAAO,gBAAAG,EAACC,GAAA,EAAwB,aAAaH,GAAK,GAAGC,GAAe;AACtE;AAEAH,EAAe,cAAc;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"visually-hidden-KeFRLonC.cjs.js","sources":["../../src/components/visually-hidden/visually-hidden.tsx"],"sourcesContent":["import {\n VisuallyHidden as ReactAriaViusallyHidden,\n type VisuallyHiddenProps as ReactAriaVisuallyHiddenProps,\n} from \"react-aria\";\n\nexport interface VisuallyHiddenProps\n extends Omit<ReactAriaVisuallyHiddenProps, \"elementType\"> {\n /** specifies the element type to render, use `span` for inline content\n * and `div` for block content */\n as?: \"span\" | \"div\";\n}\n\n/**\n * # VisuallyHidden\n
|
|
1
|
+
{"version":3,"file":"visually-hidden-KeFRLonC.cjs.js","sources":["../../src/components/visually-hidden/visually-hidden.tsx"],"sourcesContent":["import {\n VisuallyHidden as ReactAriaViusallyHidden,\n type VisuallyHiddenProps as ReactAriaVisuallyHiddenProps,\n} from \"react-aria\";\n\nexport interface VisuallyHiddenProps\n extends Omit<ReactAriaVisuallyHiddenProps, \"elementType\"> {\n /** specifies the element type to render, use `span` for inline content\n * and `div` for block content */\n as?: \"span\" | \"div\";\n}\n\n/**\n * # VisuallyHidden\n *\n * makes content accessible to screen readers but hides it visually\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/accessibility/visually-hidden}\n */\nexport const VisuallyHidden = (props: VisuallyHiddenProps) => {\n const { as = \"div\", ...leftoverProps } = props;\n return <ReactAriaViusallyHidden elementType={as} {...leftoverProps} />;\n};\n\nVisuallyHidden.displayName = \"VisuallyHidden\";\n"],"names":["VisuallyHidden","props","as","leftoverProps","jsx","ReactAriaViusallyHidden"],"mappings":"gGAmBaA,EAAkBC,GAA+B,CAC5D,KAAM,CAAE,GAAAC,EAAK,MAAO,GAAGC,GAAkBF,EACzC,OAAOG,EAAAA,IAACC,EAAAA,0CAAA,CAAwB,YAAaH,EAAK,GAAGC,EAAe,CACtE,EAEAH,EAAe,YAAc"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const s=require("../chunks/avatar-BLun8TXk.cjs.js"),p=require("../chunks/box-FU6tRPFs.cjs.js"),g=require("../chunks/button-BBwNbl7S.cjs.js"),m=require("../chunks/code-Dg4Larbo.cjs.js"),i=require("../chunks/combobox-D5lDtav9.cjs.js"),q=require("../chunks/dialog-amEwvIoM.cjs.js"),b=require("../chunks/divider-D3ah61jw.cjs.js"),I=require("../chunks/group-DtSrr9I-.cjs.js"),_=require("../chunks/icon-button-BEaNe4rE.cjs.js"),B=require("../chunks/icon-toggle-button-CvLwJfJE.cjs.js"),T=require("../chunks/image-DCirAAnr.cjs.js"),C=require("../chunks/kbd-Bkhw9E6L.cjs.js"),R=require("../chunks/link-COqOFX5Z.cjs.js"),u=require("../chunks/list-8yfreyzi.cjs.js"),F=require("../chunks/simple-grid-CHgTayx6.cjs.js"),S=require("../chunks/text--fhvW47o.cjs.js"),a=require("../chunks/tooltip-DwXtfA_x.cjs.js"),x=require("../chunks/make-element-focusable-DoCvlD8w.cjs.js"),A=require("../chunks/nimbus-provider-Bf7NgBYl.cjs.js"),M=require("../chunks/checkbox-DywApPQh.cjs.js"),G=require("../chunks/stack-wFUhYQQb.cjs.js"),k=require("../chunks/visually-hidden-KeFRLonC.cjs.js"),P=require("../chunks/text-input-DzIZYD16.cjs.js"),D=require("../chunks/number-input-BU6yMXV8.cjs.js"),O=require("../chunks/grid-xr2A-OqD.cjs.js"),n=require("../chunks/select-BZ2fZDHJ.cjs.js"),t=require("../chunks/accordion-Bn6CnY0Y.cjs.js"),r=require("../chunks/alert-CQLVvNDD.cjs.js"),L=require("../chunks/badge-CFwI3HLf.cjs.js"),c=require("../chunks/card-B9z3AknN.cjs.js"),o=require("../chunks/form-field-CBFyTAo8.cjs.js"),v=require("../chunks/icon-D50i-dqv.cjs.js"),H=require("../chunks/loading-spinner-BQd4UVQs.cjs.js"),h=require("../chunks/password-input-DpINXGwE.cjs.js"),y=require("../chunks/time-input-ByUOjN2R.cjs.js"),f=require("../chunks/multiline-text-input-BCHcfgz9.cjs.js"),l=require("../chunks/radio-input-BLVHJidw.cjs.js"),w=require("../chunks/switch-GFsEXE6w.cjs.js"),E=require("../chunks/tag-group-D7GNkec5.cjs.js"),j=require("../chunks/toggle-button-BcbQQcBy.cjs.js"),d=require("../chunks/toggle-button-group-C5nvmHRc.cjs.js"),N=require("../chunks/date-input-CGy4NHpW.cjs.js"),K=require("../chunks/calendar-CKVscUm-.cjs.js"),V=require("../chunks/date-picker-BfA4uYkg.cjs.js"),z=require("../chunks/progress-bar-
|
|
1
|
+
"use strict";const s=require("../chunks/avatar-BLun8TXk.cjs.js"),p=require("../chunks/box-FU6tRPFs.cjs.js"),g=require("../chunks/button-BBwNbl7S.cjs.js"),m=require("../chunks/code-Dg4Larbo.cjs.js"),i=require("../chunks/combobox-D5lDtav9.cjs.js"),q=require("../chunks/dialog-amEwvIoM.cjs.js"),b=require("../chunks/divider-D3ah61jw.cjs.js"),I=require("../chunks/group-DtSrr9I-.cjs.js"),_=require("../chunks/icon-button-BEaNe4rE.cjs.js"),B=require("../chunks/icon-toggle-button-CvLwJfJE.cjs.js"),T=require("../chunks/image-DCirAAnr.cjs.js"),C=require("../chunks/kbd-Bkhw9E6L.cjs.js"),R=require("../chunks/link-COqOFX5Z.cjs.js"),u=require("../chunks/list-8yfreyzi.cjs.js"),F=require("../chunks/simple-grid-CHgTayx6.cjs.js"),S=require("../chunks/text--fhvW47o.cjs.js"),a=require("../chunks/tooltip-DwXtfA_x.cjs.js"),x=require("../chunks/make-element-focusable-DoCvlD8w.cjs.js"),A=require("../chunks/nimbus-provider-Bf7NgBYl.cjs.js"),M=require("../chunks/checkbox-DywApPQh.cjs.js"),G=require("../chunks/stack-wFUhYQQb.cjs.js"),k=require("../chunks/visually-hidden-KeFRLonC.cjs.js"),P=require("../chunks/text-input-DzIZYD16.cjs.js"),D=require("../chunks/number-input-BU6yMXV8.cjs.js"),O=require("../chunks/grid-xr2A-OqD.cjs.js"),n=require("../chunks/select-BZ2fZDHJ.cjs.js"),t=require("../chunks/accordion-Bn6CnY0Y.cjs.js"),r=require("../chunks/alert-CQLVvNDD.cjs.js"),L=require("../chunks/badge-CFwI3HLf.cjs.js"),c=require("../chunks/card-B9z3AknN.cjs.js"),o=require("../chunks/form-field-CBFyTAo8.cjs.js"),v=require("../chunks/icon-D50i-dqv.cjs.js"),H=require("../chunks/loading-spinner-BQd4UVQs.cjs.js"),h=require("../chunks/password-input-DpINXGwE.cjs.js"),y=require("../chunks/time-input-ByUOjN2R.cjs.js"),f=require("../chunks/multiline-text-input-BCHcfgz9.cjs.js"),l=require("../chunks/radio-input-BLVHJidw.cjs.js"),w=require("../chunks/switch-GFsEXE6w.cjs.js"),E=require("../chunks/tag-group-D7GNkec5.cjs.js"),j=require("../chunks/toggle-button-BcbQQcBy.cjs.js"),d=require("../chunks/toggle-button-group-C5nvmHRc.cjs.js"),N=require("../chunks/date-input-CGy4NHpW.cjs.js"),K=require("../chunks/calendar-CKVscUm-.cjs.js"),V=require("../chunks/date-picker-BfA4uYkg.cjs.js"),z=require("../chunks/progress-bar-pMjw8h4h.cjs.js"),J=require("../chunks/range-calendar-13GVqWSL.cjs.js"),Q=require("../chunks/date-range-picker-Uh8jNdzD.cjs.js"),U=require("../chunks/toolbar-O-t4_xhL.cjs.js"),W=require("@chakra-ui/react"),e=require("../chunks/menu-CTiF7BX_.cjs.js");exports.Avatar=s.Avatar;exports.Box=p.Box;exports.Button=g.Button;exports.Code=m.Code;exports.ComboBox=i.ComboBox;exports._ComboBoxOption=i.ComboBoxOption;exports._ComboBoxOptionGroup=i.ComboBoxOptionGroup;exports._ComboBoxRoot=i.ComboBoxRoot;exports.Dialog=q.Dialog;exports.Divider=b.Divider;exports.Group=I.Group;exports.IconButton=_.IconButton;exports.IconToggleButton=B.IconToggleButton;exports.Image=T.Image;exports.Kbd=C.Kbd;exports.Link=R.Link;exports.List=u.List;exports._ListIndicator=u.ListIndicator;exports._ListItem=u.ListItem;exports._ListRoot=u.ListRoot;exports.SimpleGrid=F.SimpleGrid;exports.Text=S.Text;exports.Tooltip=a.Tooltip;exports._TooltipContent=a.TooltipContent;exports._TooltipRoot=a.TooltipRoot;exports.MakeElementFocusable=x.MakeElementFocusable;exports.NimbusProvider=A.NimbusProvider;exports.Checkbox=M.Checkbox;exports.Stack=G.Stack;exports.VisuallyHidden=k.VisuallyHidden;exports.TextInput=P.TextInput;exports.NumberInput=D.NumberInput;exports.Grid=O.Grid;exports.Select=n.Select;exports._SelectOption=n.SelectOption;exports._SelectOptionGroup=n.SelectOptionGroup;exports._SelectOptions=n.SelectOptions;exports._SelectRoot=n.SelectRoot;exports.Accordion=t.Accordion;exports._AccordionContent=t.AccordionContent;exports._AccordionHeader=t.AccordionHeader;exports._AccordionHeaderRightContent=t.AccordionHeaderRightContent;exports._AccordionItem=t.AccordionItem;exports._AccordionRoot=t.AccordionRoot;exports.Alert=r.Alert;exports._AlertActions=r.AlertActions;exports._AlertDescription=r.AlertDescription;exports._AlertDismissButton=r.AlertDismissButton;exports._AlertRoot=r.AlertRoot;exports._AlertTitle=r.AlertTitle;exports.Badge=L.Badge;exports.Card=c.Card;exports._CardContent=c.CardContent;exports._CardHeader=c.CardHeader;exports._CardRoot=c.CardRoot;exports.FormField=o.FormField;exports._FormFieldDescription=o.FormFieldDescription;exports._FormFieldError=o.FormFieldError;exports._FormFieldInfoBox=o.FormFieldInfoBox;exports._FormFieldInput=o.FormFieldInput;exports._FormFieldLabel=o.FormFieldLabel;exports._FormFieldRoot=o.FormFieldRoot;exports.Icon=v.Icon;exports.LoadingSpinner=H.LoadingSpinner;exports.PasswordInput=h.PasswordInput;exports.TimeInput=y.TimeInput;exports.MultilineTextInput=f.MultilineTextInput;exports.RadioInput=l.RadioInput;exports._RadioInputOption=l.RadioInputOption;exports._RadioInputRoot=l.RadioInputRoot;exports.Switch=w.Switch;exports.TagGroup=E.TagGroup;exports.ToggleButton=j.ToggleButton;exports.ToggleButtonGroup=d.ToggleButtonGroup;exports._ToggleButtonGroupButton=d.ToggleButtonGroupButton;exports._ToggleButtonGroupRoot=d.ToggleButtonGroupRoot;exports.DateInput=N.DateInput;exports.Calendar=K.Calendar;exports.DatePicker=V.DatePicker;exports.ProgressBar=z.ProgressBar;exports.RangeCalendar=J.RangeCalendar;exports.DateRangePicker=Q.DateRangePicker;exports.Toolbar=U.Toolbar;exports.Menu=e.Menu;exports._MenuContent=e.MenuContent;exports._MenuItem=e.MenuItem;exports._MenuRoot=e.MenuRoot;exports._MenuSection=e.MenuSection;exports._MenuSeparator=e.MenuSeparator;exports._MenuSubmenu=e.MenuSubmenu;exports._MenuSubmenuTrigger=e.MenuSubmenuTrigger;exports._MenuTrigger=e.MenuTrigger;
|
|
2
2
|
//# sourceMappingURL=components.cjs.map
|
|
@@ -42,10 +42,10 @@ import { T as nr, b as ir, a as xr } from "../chunks/toggle-button-group-BQfaNSZ
|
|
|
42
42
|
import { D as ur } from "../chunks/date-input-4hsVHJJo.es.js";
|
|
43
43
|
import { C as _r } from "../chunks/calendar-B4nCYXn4.es.js";
|
|
44
44
|
import { D as cr } from "../chunks/date-picker-UO9jg5oK.es.js";
|
|
45
|
-
import { P as br } from "../chunks/progress-bar-
|
|
45
|
+
import { P as br } from "../chunks/progress-bar-CCyJEPoU.es.js";
|
|
46
46
|
import { R as Ir } from "../chunks/range-calendar-C-qR1QHT.es.js";
|
|
47
|
-
import { D as Br } from "../chunks/date-range-picker-
|
|
48
|
-
import { T as Ar } from "../chunks/toolbar-
|
|
47
|
+
import { D as Br } from "../chunks/date-range-picker-BU5JdXpV.es.js";
|
|
48
|
+
import { T as Ar } from "../chunks/toolbar-DZrjQLFq.es.js";
|
|
49
49
|
import { Flex as Sr, Heading as Mr, Table as Dr } from "@chakra-ui/react";
|
|
50
50
|
import { M as Lr, c as Pr, d as kr, a as Or, f as Hr, e as hr, h as Nr, g as vr, b as wr } from "../chunks/menu-BpACcVBO.es.js";
|
|
51
51
|
export {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const e=require("../chunks/date-range-picker-
|
|
1
|
+
"use strict";const e=require("../chunks/date-range-picker-Uh8jNdzD.cjs.js");exports.DateRangePicker=e.DateRangePicker;
|
|
2
2
|
//# sourceMappingURL=date-range-picker.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const r=require("../chunks/progress-bar-
|
|
1
|
+
"use strict";const r=require("../chunks/progress-bar-pMjw8h4h.cjs.js");exports.ProgressBar=r.ProgressBar;
|
|
2
2
|
//# sourceMappingURL=progress-bar.cjs.map
|
package/dist/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const oe=require("./chunks/avatar-BLun8TXk.cjs.js"),ne=require("./chunks/box-FU6tRPFs.cjs.js"),ie=require("./chunks/button-BBwNbl7S.cjs.js"),ue=require("./chunks/code-Dg4Larbo.cjs.js"),B=require("./chunks/combobox-D5lDtav9.cjs.js"),ae=require("./chunks/dialog-amEwvIoM.cjs.js"),ce=require("./chunks/divider-D3ah61jw.cjs.js"),le=require("./chunks/group-DtSrr9I-.cjs.js"),se=require("./chunks/icon-button-BEaNe4rE.cjs.js"),de=require("./chunks/icon-toggle-button-CvLwJfJE.cjs.js"),fe=require("./chunks/image-DCirAAnr.cjs.js"),pe=require("./chunks/kbd-Bkhw9E6L.cjs.js"),me=require("./chunks/link-COqOFX5Z.cjs.js"),M=require("./chunks/list-8yfreyzi.cjs.js"),ge=require("./chunks/simple-grid-CHgTayx6.cjs.js"),ye=require("./chunks/text--fhvW47o.cjs.js"),K=require("./chunks/tooltip-DwXtfA_x.cjs.js"),ve=require("./chunks/make-element-focusable-DoCvlD8w.cjs.js"),G=require("./chunks/nimbus-provider-Bf7NgBYl.cjs.js"),be=require("./chunks/checkbox-DywApPQh.cjs.js"),Ce=require("./chunks/stack-wFUhYQQb.cjs.js"),he=require("./chunks/visually-hidden-KeFRLonC.cjs.js"),ke=require("./chunks/text-input-DzIZYD16.cjs.js"),Se=require("./chunks/number-input-BU6yMXV8.cjs.js"),we=require("./chunks/grid-xr2A-OqD.cjs.js"),E=require("./chunks/select-BZ2fZDHJ.cjs.js"),w=require("./chunks/accordion-Bn6CnY0Y.cjs.js"),R=require("./chunks/alert-CQLVvNDD.cjs.js"),Re=require("./chunks/badge-CFwI3HLf.cjs.js"),L=require("./chunks/card-B9z3AknN.cjs.js"),k=require("./chunks/form-field-CBFyTAo8.cjs.js"),Ie=require("./chunks/icon-D50i-dqv.cjs.js"),qe=require("./chunks/loading-spinner-BQd4UVQs.cjs.js"),Ee=require("./chunks/password-input-DpINXGwE.cjs.js"),_e=require("./chunks/time-input-ByUOjN2R.cjs.js"),Te=require("./chunks/multiline-text-input-BCHcfgz9.cjs.js"),N=require("./chunks/radio-input-BLVHJidw.cjs.js"),Ae=require("./chunks/switch-GFsEXE6w.cjs.js"),xe=require("./chunks/tag-group-D7GNkec5.cjs.js"),Be=require("./chunks/toggle-button-BcbQQcBy.cjs.js"),j=require("./chunks/toggle-button-group-C5nvmHRc.cjs.js"),Me=require("./chunks/date-input-CGy4NHpW.cjs.js"),Le=require("./chunks/calendar-CKVscUm-.cjs.js"),De=require("./chunks/date-picker-BfA4uYkg.cjs.js"),Fe=require("./chunks/progress-bar-CbZY1dE1.cjs.js"),Pe=require("./chunks/range-calendar-13GVqWSL.cjs.js"),He=require("./chunks/date-range-picker-D7D7R_4k.cjs.js"),Oe=require("./chunks/toolbar-O-t4_xhL.cjs.js"),d=require("react"),mt=require("@chakra-ui/react"),C=require("./chunks/menu-CTiF7BX_.cjs.js");require("react/jsx-runtime");function Ke(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function O(){return O=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},O.apply(null,arguments)}var Y=["shift","alt","meta","mod","ctrl"],Ge={esc:"escape",return:"enter",".":"period",",":"comma","-":"slash"," ":"space","`":"backquote","#":"backslash","+":"bracketright",ShiftLeft:"shift",ShiftRight:"shift",AltLeft:"alt",AltRight:"alt",MetaLeft:"meta",MetaRight:"meta",OSLeft:"meta",OSRight:"meta",ControlLeft:"ctrl",ControlRight:"ctrl"};function x(e){return(e&&Ge[e]||e||"").trim().toLowerCase().replace(/key|digit|numpad|arrow/,"")}function Ne(e){return Y.includes(e)}function D(e,t){return t===void 0&&(t=","),e.split(t)}function F(e,t,r){t===void 0&&(t="+");var n=e.toLocaleLowerCase().split(t).map(function(u){return x(u)}),l={alt:n.includes("alt"),ctrl:n.includes("ctrl")||n.includes("control"),shift:n.includes("shift"),meta:n.includes("meta"),mod:n.includes("mod")},i=n.filter(function(u){return!Y.includes(u)});return O({},l,{keys:i,description:r,hotkey:e})}var h=new Set;function U(e){return Array.isArray(e)}function je(e,t){t===void 0&&(t=",");var r=U(e)?e:e.split(t);return r.every(function(n){return h.has(n.trim().toLowerCase())})}function Ue(e){var t=Array.isArray(e)?e:[e];h.has("meta")&&h.forEach(function(r){return!Ne(r)&&h.delete(r.toLowerCase())}),t.forEach(function(r){return h.add(r.toLowerCase())})}function Ve(e){var t=Array.isArray(e)?e:[e];e==="meta"?h.clear():t.forEach(function(r){return h.delete(r.toLowerCase())})}function $e(e,t,r){(typeof r=="function"&&r(e,t)||r===!0)&&e.preventDefault()}function ze(e,t,r){return typeof r=="function"?r(e,t):r===!0||r===void 0}function We(e){return Z(e,["input","textarea","select"])}function Z(e,t){t===void 0&&(t=!1);var r=e.target,n=e.composed,l=null;return Xe(r)&&n?l=e.composedPath()[0]&&e.composedPath()[0].tagName:l=r&&r.tagName,U(t)?!!(l&&t&&t.some(function(i){var u;return i.toLowerCase()===((u=l)==null?void 0:u.toLowerCase())})):!!(l&&t&&t)}function Xe(e){return!!e.tagName&&!e.tagName.startsWith("-")&&e.tagName.includes("-")}function Je(e,t){return e.length===0&&t?(console.warn('A hotkey has the "scopes" option set, however no active scopes were found. If you want to use the global scopes feature, you need to wrap your app in a <HotkeysProvider>'),!0):t?e.some(function(r){return t.includes(r)})||e.includes("*"):!0}var Qe=function(t,r,n){n===void 0&&(n=!1);var l=r.alt,i=r.meta,u=r.mod,f=r.shift,a=r.ctrl,s=r.keys,b=t.key,y=t.code,c=t.ctrlKey,o=t.metaKey,I=t.shiftKey,m=t.altKey,g=x(y),v=b.toLowerCase();if(!(s!=null&&s.includes(g))&&!(s!=null&&s.includes(v))&&!["ctrl","control","unknown","meta","alt","shift","os"].includes(g))return!1;if(!n){if(l===!m&&v!=="alt"||f===!I&&v!=="shift")return!1;if(u){if(!o&&!c)return!1}else if(i===!o&&v!=="meta"&&v!=="os"||a===!c&&v!=="ctrl"&&v!=="control")return!1}return s&&s.length===1&&(s.includes(v)||s.includes(g))?!0:s?je(s):!s},Ye=d.createContext(void 0),Ze=function(){return d.useContext(Ye)};function ee(e,t){return e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(e).length===Object.keys(t).length&&Object.keys(e).reduce(function(r,n){return r&&ee(e[n],t[n])},!0):e===t}var et=d.createContext({hotkeys:[],enabledScopes:[],toggleScope:function(){},enableScope:function(){},disableScope:function(){}}),tt=function(){return d.useContext(et)};function rt(e){var t=d.useRef(void 0);return ee(t.current,e)||(t.current=e),t.current}var X=function(t){t.stopPropagation(),t.preventDefault(),t.stopImmediatePropagation()},ot=typeof window<"u"?d.useLayoutEffect:d.useEffect;function nt(e,t,r,n){var l=d.useState(null),i=l[0],u=l[1],f=d.useRef(!1),a=r instanceof Array?n instanceof Array?void 0:n:r,s=U(e)?e.join(a?.splitKey):e,b=r instanceof Array?r:n instanceof Array?n:void 0,y=d.useCallback(t,b??[]),c=d.useRef(y);b?c.current=y:c.current=t;var o=rt(a),I=tt(),m=I.enabledScopes,g=Ze();return ot(function(){if(!(o?.enabled===!1||!Je(m,o?.scopes))){var v=function(p,T){var z;if(T===void 0&&(T=!1),!(We(p)&&!Z(p,o?.enableOnFormTags))){if(i!==null){var A=i.getRootNode();if((A instanceof Document||A instanceof ShadowRoot)&&A.activeElement!==i&&!i.contains(A.activeElement)){X(p);return}}(z=p.target)!=null&&z.isContentEditable&&!(o!=null&&o.enableOnContentEditable)||D(s,o?.splitKey).forEach(function(re){var W,q=F(re,o?.combinationKey);if(Qe(p,q,o?.ignoreModifiers)||(W=q.keys)!=null&&W.includes("*")){if(o!=null&&o.ignoreEventWhen!=null&&o.ignoreEventWhen(p)||T&&f.current)return;if($e(p,q,o?.preventDefault),!ze(p,q,o?.enabled)){X(p);return}c.current(p,q),T||(f.current=!0)}})}},V=function(p){p.key!==void 0&&(Ue(x(p.code)),(o?.keydown===void 0&&o?.keyup!==!0||o!=null&&o.keydown)&&v(p))},$=function(p){p.key!==void 0&&(Ve(x(p.code)),f.current=!1,o!=null&&o.keyup&&v(p,!0))},_=i||a?.document||document;return _.addEventListener("keyup",$,a?.eventListenerOptions),_.addEventListener("keydown",V,a?.eventListenerOptions),g&&D(s,o?.splitKey).forEach(function(S){return g.addHotkey(F(S,o?.combinationKey,o?.description))}),function(){_.removeEventListener("keyup",$,a?.eventListenerOptions),_.removeEventListener("keydown",V,a?.eventListenerOptions),g&&D(s,o?.splitKey).forEach(function(S){return g.removeHotkey(F(S,o?.combinationKey,o?.description))})}}},[i,s,o,m]),u}function it(){var e=d.useRef(!1),t=d.useCallback(function(){return e.current},[]);return d.useEffect(function(){return e.current=!0,function(){e.current=!1}},[]),t}var ut=function(e){e===void 0&&(e={});var t=d.useState(e),r=t[0],n=t[1],l=d.useCallback(function(i){n(function(u){return Object.assign({},u,i instanceof Function?i(u):i)})},[]);return[r,l]},P,J;function at(){return J||(J=1,P=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],n=0;n<e.rangeCount;n++)r.push(e.getRangeAt(n));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||r.forEach(function(l){e.addRange(l)}),t&&t.focus()}}),P}var H,Q;function ct(){if(Q)return H;Q=1;var e=at(),t={"text/plain":"Text","text/html":"Url",default:"Text"},r="Copy to clipboard: #{key}, Enter";function n(i){var u=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return i.replace(/#{\s*key\s*}/g,u)}function l(i,u){var f,a,s,b,y,c,o=!1;u||(u={}),f=u.debug||!1;try{s=e(),b=document.createRange(),y=document.getSelection(),c=document.createElement("span"),c.textContent=i,c.ariaHidden="true",c.style.all="unset",c.style.position="fixed",c.style.top=0,c.style.clip="rect(0, 0, 0, 0)",c.style.whiteSpace="pre",c.style.webkitUserSelect="text",c.style.MozUserSelect="text",c.style.msUserSelect="text",c.style.userSelect="text",c.addEventListener("copy",function(m){if(m.stopPropagation(),u.format)if(m.preventDefault(),typeof m.clipboardData>"u"){f&&console.warn("unable to use e.clipboardData"),f&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var g=t[u.format]||t.default;window.clipboardData.setData(g,i)}else m.clipboardData.clearData(),m.clipboardData.setData(u.format,i);u.onCopy&&(m.preventDefault(),u.onCopy(m.clipboardData))}),document.body.appendChild(c),b.selectNodeContents(c),y.addRange(b);var I=document.execCommand("copy");if(!I)throw new Error("copy command was unsuccessful");o=!0}catch(m){f&&console.error("unable to copy using execCommand: ",m),f&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(u.format||"text",i),u.onCopy&&u.onCopy(window.clipboardData),o=!0}catch(g){f&&console.error("unable to copy using clipboardData: ",g),f&&console.error("falling back to prompt"),a=n("message"in u?u.message:r),window.prompt(a,i)}}finally{y&&(typeof y.removeRange=="function"?y.removeRange(b):y.removeAllRanges()),c&&document.body.removeChild(c),s()}return o}return H=l,H}var lt=ct();const st=Ke(lt);var dt=function(){var e=it(),t=ut({value:void 0,error:void 0,noUserInteraction:!0}),r=t[0],n=t[1],l=d.useCallback(function(i){if(e()){var u,f;try{if(typeof i!="string"&&typeof i!="number"){var a=new Error("Cannot copy typeof "+typeof i+" to clipboard, must be a string");process.env.NODE_ENV==="development"&&console.error(a),n({value:i,error:a,noUserInteraction:!0});return}else if(i===""){var a=new Error("Cannot copy empty string to clipboard.");process.env.NODE_ENV==="development"&&console.error(a),n({value:i,error:a,noUserInteraction:!0});return}f=i.toString(),u=st(f),n({value:f,error:void 0,noUserInteraction:u})}catch(s){n({value:f,error:s,noUserInteraction:u})}}},[]);return[r,l]};function ft(){const[e,t]=d.useState(r());function r(){return document.documentElement.style.getPropertyValue("color-scheme")||localStorage.getItem("theme")||"light"}return d.useEffect(()=>{const n=document.documentElement,l=new MutationObserver(()=>{const i=r();t(i)});return l.observe(n,{attributes:!0,attributeFilter:["style"]}),()=>l.disconnect()},[]),e}function te(){const{resolvedTheme:e,setTheme:t}=G.z();return{colorMode:e,setColorMode:t,toggleColorMode:()=>{t(e==="light"?"dark":"light")}}}function pt(e,t){const{colorMode:r}=te();return r==="light"?e:t}exports.Avatar=oe.Avatar;exports.Box=ne.Box;exports.Button=ie.Button;exports.Code=ue.Code;exports.ComboBox=B.ComboBox;exports._ComboBoxOption=B.ComboBoxOption;exports._ComboBoxOptionGroup=B.ComboBoxOptionGroup;exports._ComboBoxRoot=B.ComboBoxRoot;exports.Dialog=ae.Dialog;exports.Divider=ce.Divider;exports.Group=le.Group;exports.IconButton=se.IconButton;exports.IconToggleButton=de.IconToggleButton;exports.Image=fe.Image;exports.Kbd=pe.Kbd;exports.Link=me.Link;exports.List=M.List;exports._ListIndicator=M.ListIndicator;exports._ListItem=M.ListItem;exports._ListRoot=M.ListRoot;exports.SimpleGrid=ge.SimpleGrid;exports.Text=ye.Text;exports.Tooltip=K.Tooltip;exports._TooltipContent=K.TooltipContent;exports._TooltipRoot=K.TooltipRoot;exports.MakeElementFocusable=ve.MakeElementFocusable;exports.NimbusProvider=G.NimbusProvider;exports.system=G.system;exports.Checkbox=be.Checkbox;exports.Stack=Ce.Stack;exports.VisuallyHidden=he.VisuallyHidden;exports.TextInput=ke.TextInput;exports.NumberInput=Se.NumberInput;exports.Grid=we.Grid;exports.Select=E.Select;exports._SelectOption=E.SelectOption;exports._SelectOptionGroup=E.SelectOptionGroup;exports._SelectOptions=E.SelectOptions;exports._SelectRoot=E.SelectRoot;exports.Accordion=w.Accordion;exports._AccordionContent=w.AccordionContent;exports._AccordionHeader=w.AccordionHeader;exports._AccordionHeaderRightContent=w.AccordionHeaderRightContent;exports._AccordionItem=w.AccordionItem;exports._AccordionRoot=w.AccordionRoot;exports.Alert=R.Alert;exports._AlertActions=R.AlertActions;exports._AlertDescription=R.AlertDescription;exports._AlertDismissButton=R.AlertDismissButton;exports._AlertRoot=R.AlertRoot;exports._AlertTitle=R.AlertTitle;exports.Badge=Re.Badge;exports.Card=L.Card;exports._CardContent=L.CardContent;exports._CardHeader=L.CardHeader;exports._CardRoot=L.CardRoot;exports.FormField=k.FormField;exports._FormFieldDescription=k.FormFieldDescription;exports._FormFieldError=k.FormFieldError;exports._FormFieldInfoBox=k.FormFieldInfoBox;exports._FormFieldInput=k.FormFieldInput;exports._FormFieldLabel=k.FormFieldLabel;exports._FormFieldRoot=k.FormFieldRoot;exports.Icon=Ie.Icon;exports.LoadingSpinner=qe.LoadingSpinner;exports.PasswordInput=Ee.PasswordInput;exports.TimeInput=_e.TimeInput;exports.MultilineTextInput=Te.MultilineTextInput;exports.RadioInput=N.RadioInput;exports._RadioInputOption=N.RadioInputOption;exports._RadioInputRoot=N.RadioInputRoot;exports.Switch=Ae.Switch;exports.TagGroup=xe.TagGroup;exports.ToggleButton=Be.ToggleButton;exports.ToggleButtonGroup=j.ToggleButtonGroup;exports._ToggleButtonGroupButton=j.ToggleButtonGroupButton;exports._ToggleButtonGroupRoot=j.ToggleButtonGroupRoot;exports.DateInput=Me.DateInput;exports.Calendar=Le.Calendar;exports.DatePicker=De.DatePicker;exports.ProgressBar=Fe.ProgressBar;exports.RangeCalendar=Pe.RangeCalendar;exports.DateRangePicker=He.DateRangePicker;exports.Toolbar=Oe.Toolbar;exports.Menu=C.Menu;exports._MenuContent=C.MenuContent;exports._MenuItem=C.MenuItem;exports._MenuRoot=C.MenuRoot;exports._MenuSection=C.MenuSection;exports._MenuSeparator=C.MenuSeparator;exports._MenuSubmenu=C.MenuSubmenu;exports._MenuSubmenuTrigger=C.MenuSubmenuTrigger;exports._MenuTrigger=C.MenuTrigger;exports.useColorMode=te;exports.useColorModeValue=pt;exports.useColorScheme=ft;exports.useCopyToClipboard=dt;exports.useHotkeys=nt;
|
|
1
|
+
"use strict";const oe=require("./chunks/avatar-BLun8TXk.cjs.js"),ne=require("./chunks/box-FU6tRPFs.cjs.js"),ie=require("./chunks/button-BBwNbl7S.cjs.js"),ue=require("./chunks/code-Dg4Larbo.cjs.js"),B=require("./chunks/combobox-D5lDtav9.cjs.js"),ae=require("./chunks/dialog-amEwvIoM.cjs.js"),ce=require("./chunks/divider-D3ah61jw.cjs.js"),le=require("./chunks/group-DtSrr9I-.cjs.js"),se=require("./chunks/icon-button-BEaNe4rE.cjs.js"),de=require("./chunks/icon-toggle-button-CvLwJfJE.cjs.js"),fe=require("./chunks/image-DCirAAnr.cjs.js"),pe=require("./chunks/kbd-Bkhw9E6L.cjs.js"),me=require("./chunks/link-COqOFX5Z.cjs.js"),M=require("./chunks/list-8yfreyzi.cjs.js"),ge=require("./chunks/simple-grid-CHgTayx6.cjs.js"),ye=require("./chunks/text--fhvW47o.cjs.js"),K=require("./chunks/tooltip-DwXtfA_x.cjs.js"),ve=require("./chunks/make-element-focusable-DoCvlD8w.cjs.js"),G=require("./chunks/nimbus-provider-Bf7NgBYl.cjs.js"),be=require("./chunks/checkbox-DywApPQh.cjs.js"),Ce=require("./chunks/stack-wFUhYQQb.cjs.js"),he=require("./chunks/visually-hidden-KeFRLonC.cjs.js"),ke=require("./chunks/text-input-DzIZYD16.cjs.js"),Se=require("./chunks/number-input-BU6yMXV8.cjs.js"),we=require("./chunks/grid-xr2A-OqD.cjs.js"),E=require("./chunks/select-BZ2fZDHJ.cjs.js"),w=require("./chunks/accordion-Bn6CnY0Y.cjs.js"),R=require("./chunks/alert-CQLVvNDD.cjs.js"),Re=require("./chunks/badge-CFwI3HLf.cjs.js"),L=require("./chunks/card-B9z3AknN.cjs.js"),k=require("./chunks/form-field-CBFyTAo8.cjs.js"),Ie=require("./chunks/icon-D50i-dqv.cjs.js"),qe=require("./chunks/loading-spinner-BQd4UVQs.cjs.js"),Ee=require("./chunks/password-input-DpINXGwE.cjs.js"),_e=require("./chunks/time-input-ByUOjN2R.cjs.js"),Te=require("./chunks/multiline-text-input-BCHcfgz9.cjs.js"),N=require("./chunks/radio-input-BLVHJidw.cjs.js"),Ae=require("./chunks/switch-GFsEXE6w.cjs.js"),xe=require("./chunks/tag-group-D7GNkec5.cjs.js"),Be=require("./chunks/toggle-button-BcbQQcBy.cjs.js"),j=require("./chunks/toggle-button-group-C5nvmHRc.cjs.js"),Me=require("./chunks/date-input-CGy4NHpW.cjs.js"),Le=require("./chunks/calendar-CKVscUm-.cjs.js"),De=require("./chunks/date-picker-BfA4uYkg.cjs.js"),Fe=require("./chunks/progress-bar-pMjw8h4h.cjs.js"),Pe=require("./chunks/range-calendar-13GVqWSL.cjs.js"),He=require("./chunks/date-range-picker-Uh8jNdzD.cjs.js"),Oe=require("./chunks/toolbar-O-t4_xhL.cjs.js"),d=require("react"),mt=require("@chakra-ui/react"),C=require("./chunks/menu-CTiF7BX_.cjs.js");require("react/jsx-runtime");function Ke(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function O(){return O=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},O.apply(null,arguments)}var Y=["shift","alt","meta","mod","ctrl"],Ge={esc:"escape",return:"enter",".":"period",",":"comma","-":"slash"," ":"space","`":"backquote","#":"backslash","+":"bracketright",ShiftLeft:"shift",ShiftRight:"shift",AltLeft:"alt",AltRight:"alt",MetaLeft:"meta",MetaRight:"meta",OSLeft:"meta",OSRight:"meta",ControlLeft:"ctrl",ControlRight:"ctrl"};function x(e){return(e&&Ge[e]||e||"").trim().toLowerCase().replace(/key|digit|numpad|arrow/,"")}function Ne(e){return Y.includes(e)}function D(e,t){return t===void 0&&(t=","),e.split(t)}function F(e,t,r){t===void 0&&(t="+");var n=e.toLocaleLowerCase().split(t).map(function(u){return x(u)}),l={alt:n.includes("alt"),ctrl:n.includes("ctrl")||n.includes("control"),shift:n.includes("shift"),meta:n.includes("meta"),mod:n.includes("mod")},i=n.filter(function(u){return!Y.includes(u)});return O({},l,{keys:i,description:r,hotkey:e})}var h=new Set;function U(e){return Array.isArray(e)}function je(e,t){t===void 0&&(t=",");var r=U(e)?e:e.split(t);return r.every(function(n){return h.has(n.trim().toLowerCase())})}function Ue(e){var t=Array.isArray(e)?e:[e];h.has("meta")&&h.forEach(function(r){return!Ne(r)&&h.delete(r.toLowerCase())}),t.forEach(function(r){return h.add(r.toLowerCase())})}function Ve(e){var t=Array.isArray(e)?e:[e];e==="meta"?h.clear():t.forEach(function(r){return h.delete(r.toLowerCase())})}function $e(e,t,r){(typeof r=="function"&&r(e,t)||r===!0)&&e.preventDefault()}function ze(e,t,r){return typeof r=="function"?r(e,t):r===!0||r===void 0}function We(e){return Z(e,["input","textarea","select"])}function Z(e,t){t===void 0&&(t=!1);var r=e.target,n=e.composed,l=null;return Xe(r)&&n?l=e.composedPath()[0]&&e.composedPath()[0].tagName:l=r&&r.tagName,U(t)?!!(l&&t&&t.some(function(i){var u;return i.toLowerCase()===((u=l)==null?void 0:u.toLowerCase())})):!!(l&&t&&t)}function Xe(e){return!!e.tagName&&!e.tagName.startsWith("-")&&e.tagName.includes("-")}function Je(e,t){return e.length===0&&t?(console.warn('A hotkey has the "scopes" option set, however no active scopes were found. If you want to use the global scopes feature, you need to wrap your app in a <HotkeysProvider>'),!0):t?e.some(function(r){return t.includes(r)})||e.includes("*"):!0}var Qe=function(t,r,n){n===void 0&&(n=!1);var l=r.alt,i=r.meta,u=r.mod,f=r.shift,a=r.ctrl,s=r.keys,b=t.key,y=t.code,c=t.ctrlKey,o=t.metaKey,I=t.shiftKey,m=t.altKey,g=x(y),v=b.toLowerCase();if(!(s!=null&&s.includes(g))&&!(s!=null&&s.includes(v))&&!["ctrl","control","unknown","meta","alt","shift","os"].includes(g))return!1;if(!n){if(l===!m&&v!=="alt"||f===!I&&v!=="shift")return!1;if(u){if(!o&&!c)return!1}else if(i===!o&&v!=="meta"&&v!=="os"||a===!c&&v!=="ctrl"&&v!=="control")return!1}return s&&s.length===1&&(s.includes(v)||s.includes(g))?!0:s?je(s):!s},Ye=d.createContext(void 0),Ze=function(){return d.useContext(Ye)};function ee(e,t){return e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(e).length===Object.keys(t).length&&Object.keys(e).reduce(function(r,n){return r&&ee(e[n],t[n])},!0):e===t}var et=d.createContext({hotkeys:[],enabledScopes:[],toggleScope:function(){},enableScope:function(){},disableScope:function(){}}),tt=function(){return d.useContext(et)};function rt(e){var t=d.useRef(void 0);return ee(t.current,e)||(t.current=e),t.current}var X=function(t){t.stopPropagation(),t.preventDefault(),t.stopImmediatePropagation()},ot=typeof window<"u"?d.useLayoutEffect:d.useEffect;function nt(e,t,r,n){var l=d.useState(null),i=l[0],u=l[1],f=d.useRef(!1),a=r instanceof Array?n instanceof Array?void 0:n:r,s=U(e)?e.join(a?.splitKey):e,b=r instanceof Array?r:n instanceof Array?n:void 0,y=d.useCallback(t,b??[]),c=d.useRef(y);b?c.current=y:c.current=t;var o=rt(a),I=tt(),m=I.enabledScopes,g=Ze();return ot(function(){if(!(o?.enabled===!1||!Je(m,o?.scopes))){var v=function(p,T){var z;if(T===void 0&&(T=!1),!(We(p)&&!Z(p,o?.enableOnFormTags))){if(i!==null){var A=i.getRootNode();if((A instanceof Document||A instanceof ShadowRoot)&&A.activeElement!==i&&!i.contains(A.activeElement)){X(p);return}}(z=p.target)!=null&&z.isContentEditable&&!(o!=null&&o.enableOnContentEditable)||D(s,o?.splitKey).forEach(function(re){var W,q=F(re,o?.combinationKey);if(Qe(p,q,o?.ignoreModifiers)||(W=q.keys)!=null&&W.includes("*")){if(o!=null&&o.ignoreEventWhen!=null&&o.ignoreEventWhen(p)||T&&f.current)return;if($e(p,q,o?.preventDefault),!ze(p,q,o?.enabled)){X(p);return}c.current(p,q),T||(f.current=!0)}})}},V=function(p){p.key!==void 0&&(Ue(x(p.code)),(o?.keydown===void 0&&o?.keyup!==!0||o!=null&&o.keydown)&&v(p))},$=function(p){p.key!==void 0&&(Ve(x(p.code)),f.current=!1,o!=null&&o.keyup&&v(p,!0))},_=i||a?.document||document;return _.addEventListener("keyup",$,a?.eventListenerOptions),_.addEventListener("keydown",V,a?.eventListenerOptions),g&&D(s,o?.splitKey).forEach(function(S){return g.addHotkey(F(S,o?.combinationKey,o?.description))}),function(){_.removeEventListener("keyup",$,a?.eventListenerOptions),_.removeEventListener("keydown",V,a?.eventListenerOptions),g&&D(s,o?.splitKey).forEach(function(S){return g.removeHotkey(F(S,o?.combinationKey,o?.description))})}}},[i,s,o,m]),u}function it(){var e=d.useRef(!1),t=d.useCallback(function(){return e.current},[]);return d.useEffect(function(){return e.current=!0,function(){e.current=!1}},[]),t}var ut=function(e){e===void 0&&(e={});var t=d.useState(e),r=t[0],n=t[1],l=d.useCallback(function(i){n(function(u){return Object.assign({},u,i instanceof Function?i(u):i)})},[]);return[r,l]},P,J;function at(){return J||(J=1,P=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],n=0;n<e.rangeCount;n++)r.push(e.getRangeAt(n));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||r.forEach(function(l){e.addRange(l)}),t&&t.focus()}}),P}var H,Q;function ct(){if(Q)return H;Q=1;var e=at(),t={"text/plain":"Text","text/html":"Url",default:"Text"},r="Copy to clipboard: #{key}, Enter";function n(i){var u=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return i.replace(/#{\s*key\s*}/g,u)}function l(i,u){var f,a,s,b,y,c,o=!1;u||(u={}),f=u.debug||!1;try{s=e(),b=document.createRange(),y=document.getSelection(),c=document.createElement("span"),c.textContent=i,c.ariaHidden="true",c.style.all="unset",c.style.position="fixed",c.style.top=0,c.style.clip="rect(0, 0, 0, 0)",c.style.whiteSpace="pre",c.style.webkitUserSelect="text",c.style.MozUserSelect="text",c.style.msUserSelect="text",c.style.userSelect="text",c.addEventListener("copy",function(m){if(m.stopPropagation(),u.format)if(m.preventDefault(),typeof m.clipboardData>"u"){f&&console.warn("unable to use e.clipboardData"),f&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var g=t[u.format]||t.default;window.clipboardData.setData(g,i)}else m.clipboardData.clearData(),m.clipboardData.setData(u.format,i);u.onCopy&&(m.preventDefault(),u.onCopy(m.clipboardData))}),document.body.appendChild(c),b.selectNodeContents(c),y.addRange(b);var I=document.execCommand("copy");if(!I)throw new Error("copy command was unsuccessful");o=!0}catch(m){f&&console.error("unable to copy using execCommand: ",m),f&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(u.format||"text",i),u.onCopy&&u.onCopy(window.clipboardData),o=!0}catch(g){f&&console.error("unable to copy using clipboardData: ",g),f&&console.error("falling back to prompt"),a=n("message"in u?u.message:r),window.prompt(a,i)}}finally{y&&(typeof y.removeRange=="function"?y.removeRange(b):y.removeAllRanges()),c&&document.body.removeChild(c),s()}return o}return H=l,H}var lt=ct();const st=Ke(lt);var dt=function(){var e=it(),t=ut({value:void 0,error:void 0,noUserInteraction:!0}),r=t[0],n=t[1],l=d.useCallback(function(i){if(e()){var u,f;try{if(typeof i!="string"&&typeof i!="number"){var a=new Error("Cannot copy typeof "+typeof i+" to clipboard, must be a string");process.env.NODE_ENV==="development"&&console.error(a),n({value:i,error:a,noUserInteraction:!0});return}else if(i===""){var a=new Error("Cannot copy empty string to clipboard.");process.env.NODE_ENV==="development"&&console.error(a),n({value:i,error:a,noUserInteraction:!0});return}f=i.toString(),u=st(f),n({value:f,error:void 0,noUserInteraction:u})}catch(s){n({value:f,error:s,noUserInteraction:u})}}},[]);return[r,l]};function ft(){const[e,t]=d.useState(r());function r(){return document.documentElement.style.getPropertyValue("color-scheme")||localStorage.getItem("theme")||"light"}return d.useEffect(()=>{const n=document.documentElement,l=new MutationObserver(()=>{const i=r();t(i)});return l.observe(n,{attributes:!0,attributeFilter:["style"]}),()=>l.disconnect()},[]),e}function te(){const{resolvedTheme:e,setTheme:t}=G.z();return{colorMode:e,setColorMode:t,toggleColorMode:()=>{t(e==="light"?"dark":"light")}}}function pt(e,t){const{colorMode:r}=te();return r==="light"?e:t}exports.Avatar=oe.Avatar;exports.Box=ne.Box;exports.Button=ie.Button;exports.Code=ue.Code;exports.ComboBox=B.ComboBox;exports._ComboBoxOption=B.ComboBoxOption;exports._ComboBoxOptionGroup=B.ComboBoxOptionGroup;exports._ComboBoxRoot=B.ComboBoxRoot;exports.Dialog=ae.Dialog;exports.Divider=ce.Divider;exports.Group=le.Group;exports.IconButton=se.IconButton;exports.IconToggleButton=de.IconToggleButton;exports.Image=fe.Image;exports.Kbd=pe.Kbd;exports.Link=me.Link;exports.List=M.List;exports._ListIndicator=M.ListIndicator;exports._ListItem=M.ListItem;exports._ListRoot=M.ListRoot;exports.SimpleGrid=ge.SimpleGrid;exports.Text=ye.Text;exports.Tooltip=K.Tooltip;exports._TooltipContent=K.TooltipContent;exports._TooltipRoot=K.TooltipRoot;exports.MakeElementFocusable=ve.MakeElementFocusable;exports.NimbusProvider=G.NimbusProvider;exports.system=G.system;exports.Checkbox=be.Checkbox;exports.Stack=Ce.Stack;exports.VisuallyHidden=he.VisuallyHidden;exports.TextInput=ke.TextInput;exports.NumberInput=Se.NumberInput;exports.Grid=we.Grid;exports.Select=E.Select;exports._SelectOption=E.SelectOption;exports._SelectOptionGroup=E.SelectOptionGroup;exports._SelectOptions=E.SelectOptions;exports._SelectRoot=E.SelectRoot;exports.Accordion=w.Accordion;exports._AccordionContent=w.AccordionContent;exports._AccordionHeader=w.AccordionHeader;exports._AccordionHeaderRightContent=w.AccordionHeaderRightContent;exports._AccordionItem=w.AccordionItem;exports._AccordionRoot=w.AccordionRoot;exports.Alert=R.Alert;exports._AlertActions=R.AlertActions;exports._AlertDescription=R.AlertDescription;exports._AlertDismissButton=R.AlertDismissButton;exports._AlertRoot=R.AlertRoot;exports._AlertTitle=R.AlertTitle;exports.Badge=Re.Badge;exports.Card=L.Card;exports._CardContent=L.CardContent;exports._CardHeader=L.CardHeader;exports._CardRoot=L.CardRoot;exports.FormField=k.FormField;exports._FormFieldDescription=k.FormFieldDescription;exports._FormFieldError=k.FormFieldError;exports._FormFieldInfoBox=k.FormFieldInfoBox;exports._FormFieldInput=k.FormFieldInput;exports._FormFieldLabel=k.FormFieldLabel;exports._FormFieldRoot=k.FormFieldRoot;exports.Icon=Ie.Icon;exports.LoadingSpinner=qe.LoadingSpinner;exports.PasswordInput=Ee.PasswordInput;exports.TimeInput=_e.TimeInput;exports.MultilineTextInput=Te.MultilineTextInput;exports.RadioInput=N.RadioInput;exports._RadioInputOption=N.RadioInputOption;exports._RadioInputRoot=N.RadioInputRoot;exports.Switch=Ae.Switch;exports.TagGroup=xe.TagGroup;exports.ToggleButton=Be.ToggleButton;exports.ToggleButtonGroup=j.ToggleButtonGroup;exports._ToggleButtonGroupButton=j.ToggleButtonGroupButton;exports._ToggleButtonGroupRoot=j.ToggleButtonGroupRoot;exports.DateInput=Me.DateInput;exports.Calendar=Le.Calendar;exports.DatePicker=De.DatePicker;exports.ProgressBar=Fe.ProgressBar;exports.RangeCalendar=Pe.RangeCalendar;exports.DateRangePicker=He.DateRangePicker;exports.Toolbar=Oe.Toolbar;exports.Menu=C.Menu;exports._MenuContent=C.MenuContent;exports._MenuItem=C.MenuItem;exports._MenuRoot=C.MenuRoot;exports._MenuSection=C.MenuSection;exports._MenuSeparator=C.MenuSeparator;exports._MenuSubmenu=C.MenuSubmenu;exports._MenuSubmenuTrigger=C.MenuSubmenuTrigger;exports._MenuTrigger=C.MenuTrigger;exports.useColorMode=te;exports.useColorModeValue=pt;exports.useColorScheme=ft;exports.useCopyToClipboard=dt;exports.useHotkeys=nt;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.es.js
CHANGED
|
@@ -43,10 +43,10 @@ import { T as Hr, b as Fr, a as Or } from "./chunks/toggle-button-group-BQfaNSZf
|
|
|
43
43
|
import { D as Ur } from "./chunks/date-input-4hsVHJJo.es.js";
|
|
44
44
|
import { C as Gr } from "./chunks/calendar-B4nCYXn4.es.js";
|
|
45
45
|
import { D as Vr } from "./chunks/date-picker-UO9jg5oK.es.js";
|
|
46
|
-
import { P as Wr } from "./chunks/progress-bar-
|
|
46
|
+
import { P as Wr } from "./chunks/progress-bar-CCyJEPoU.es.js";
|
|
47
47
|
import { R as Xr } from "./chunks/range-calendar-C-qR1QHT.es.js";
|
|
48
|
-
import { D as Qr } from "./chunks/date-range-picker-
|
|
49
|
-
import { T as Zr } from "./chunks/toolbar-
|
|
48
|
+
import { D as Qr } from "./chunks/date-range-picker-BU5JdXpV.es.js";
|
|
49
|
+
import { T as Zr } from "./chunks/toolbar-DZrjQLFq.es.js";
|
|
50
50
|
import { useState as M, useRef as E, useCallback as R, useLayoutEffect as J, useEffect as P, useContext as G, createContext as q } from "react";
|
|
51
51
|
import { Flex as to, Heading as ro, Table as oo } from "@chakra-ui/react";
|
|
52
52
|
import { M as ao, c as io, d as so, a as uo, f as lo, e as co, h as fo, g as po, b as mo } from "./chunks/menu-BpACcVBO.es.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setup-jsdom-polyfills.cjs","sources":["../src/test/setup-jsdom-polyfills.ts"],"sourcesContent":["/**\n * Polyfills necessary for the `NimbusProvider` not to crash in JSDOM environments (e.g. jest)\n *\n * To use with jest, update jest config like so:\n * config = {\n * ...\n * setupFiles: [\n * '@commercetools/nimbus/setup-jsdom-polyfills`,\n * ...\n * ]\n * }\n */\n\n// TODO: document this somewhere besides this file\n\n// implementation of structuredClone polyfill to satisfy the Nimbus (Chakra UI) provider\nif (typeof globalThis.structuredClone !== \"function\") {\n globalThis.structuredClone = function structuredClone(value: any) {\n if (value === null || value === undefined) {\n return value;\n }\n\n try {\n // For objects and arrays, use JSON methods\n if (typeof value === \"object\") {\n return JSON.parse(JSON.stringify(value));\n }\n // For primitive values, return directly\n return value;\n } catch (error) {\n console.warn(\"structuredClone polyfill failed:\", error);\n\n // Returns a shallow copy as fallback\n return Array.isArray(value) ? [...value] : { ...value };\n }\n };\n}\n\n// Polyfill window.matchMedia for JSDOM (used by Nimbus/Chakra for theming)\nObject.defineProperty(window, \"matchMedia\", {\n writable: true,\n value: (query: unknown) => ({\n matches: false, // Default value, tests can override if needed\n media: query,\n onchange: null,\n addListener: () => {}, // Deprecated but needed for some libs\n removeListener: () => {}, // Deprecated but needed for some libs\n addEventListener: () => {},\n removeEventListener: () => {},\n dispatchEvent: () => false,\n }),\n});\n"],"names":["value","error"],"mappings":"aAgBI,OAAO,WAAW,iBAAoB,
|
|
1
|
+
{"version":3,"file":"setup-jsdom-polyfills.cjs","sources":["../src/test/setup-jsdom-polyfills.ts"],"sourcesContent":["/**\n * Polyfills necessary for the `NimbusProvider` not to crash in JSDOM environments (e.g. jest)\n *\n * To use with jest, update jest config like so:\n * config = {\n * ...\n * setupFiles: [\n * '@commercetools/nimbus/setup-jsdom-polyfills`,\n * ...\n * ]\n * }\n */\n\n// TODO: document this somewhere besides this file\n\n// implementation of structuredClone polyfill to satisfy the Nimbus (Chakra UI) provider\nif (typeof globalThis.structuredClone !== \"function\") {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n globalThis.structuredClone = function structuredClone(value: any) {\n if (value === null || value === undefined) {\n return value;\n }\n\n try {\n // For objects and arrays, use JSON methods\n if (typeof value === \"object\") {\n return JSON.parse(JSON.stringify(value));\n }\n // For primitive values, return directly\n return value;\n } catch (error) {\n console.warn(\"structuredClone polyfill failed:\", error);\n\n // Returns a shallow copy as fallback\n return Array.isArray(value) ? [...value] : { ...value };\n }\n };\n}\n\n// Polyfill window.matchMedia for JSDOM (used by Nimbus/Chakra for theming)\nObject.defineProperty(window, \"matchMedia\", {\n writable: true,\n value: (query: unknown) => ({\n matches: false, // Default value, tests can override if needed\n media: query,\n onchange: null,\n addListener: () => {}, // Deprecated but needed for some libs\n removeListener: () => {}, // Deprecated but needed for some libs\n addEventListener: () => {},\n removeEventListener: () => {},\n dispatchEvent: () => false,\n }),\n});\n"],"names":["value","error"],"mappings":"aAgBI,OAAO,WAAW,iBAAoB,aAExC,WAAW,gBAAkB,SAAyBA,EAAY,CAChE,GAAIA,GAAU,KACZ,OAAOA,EAGT,GAAI,CAEF,OAAI,OAAOA,GAAU,SACZ,KAAK,MAAM,KAAK,UAAUA,CAAK,CAAC,EAGlCA,CACT,OAASC,EAAO,CACd,eAAQ,KAAK,mCAAoCA,CAAK,EAG/C,MAAM,QAAQD,CAAK,EAAI,CAAC,GAAGA,CAAK,EAAI,CAAE,GAAGA,CAAA,CAClD,CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setup-jsdom-polyfills.es.js","sources":["../src/test/setup-jsdom-polyfills.ts"],"sourcesContent":["/**\n * Polyfills necessary for the `NimbusProvider` not to crash in JSDOM environments (e.g. jest)\n *\n * To use with jest, update jest config like so:\n * config = {\n * ...\n * setupFiles: [\n * '@commercetools/nimbus/setup-jsdom-polyfills`,\n * ...\n * ]\n * }\n */\n\n// TODO: document this somewhere besides this file\n\n// implementation of structuredClone polyfill to satisfy the Nimbus (Chakra UI) provider\nif (typeof globalThis.structuredClone !== \"function\") {\n globalThis.structuredClone = function structuredClone(value: any) {\n if (value === null || value === undefined) {\n return value;\n }\n\n try {\n // For objects and arrays, use JSON methods\n if (typeof value === \"object\") {\n return JSON.parse(JSON.stringify(value));\n }\n // For primitive values, return directly\n return value;\n } catch (error) {\n console.warn(\"structuredClone polyfill failed:\", error);\n\n // Returns a shallow copy as fallback\n return Array.isArray(value) ? [...value] : { ...value };\n }\n };\n}\n\n// Polyfill window.matchMedia for JSDOM (used by Nimbus/Chakra for theming)\nObject.defineProperty(window, \"matchMedia\", {\n writable: true,\n value: (query: unknown) => ({\n matches: false, // Default value, tests can override if needed\n media: query,\n onchange: null,\n addListener: () => {}, // Deprecated but needed for some libs\n removeListener: () => {}, // Deprecated but needed for some libs\n addEventListener: () => {},\n removeEventListener: () => {},\n dispatchEvent: () => false,\n }),\n});\n"],"names":["value","error"],"mappings":"AAgBI,OAAO,WAAW,mBAAoB,
|
|
1
|
+
{"version":3,"file":"setup-jsdom-polyfills.es.js","sources":["../src/test/setup-jsdom-polyfills.ts"],"sourcesContent":["/**\n * Polyfills necessary for the `NimbusProvider` not to crash in JSDOM environments (e.g. jest)\n *\n * To use with jest, update jest config like so:\n * config = {\n * ...\n * setupFiles: [\n * '@commercetools/nimbus/setup-jsdom-polyfills`,\n * ...\n * ]\n * }\n */\n\n// TODO: document this somewhere besides this file\n\n// implementation of structuredClone polyfill to satisfy the Nimbus (Chakra UI) provider\nif (typeof globalThis.structuredClone !== \"function\") {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n globalThis.structuredClone = function structuredClone(value: any) {\n if (value === null || value === undefined) {\n return value;\n }\n\n try {\n // For objects and arrays, use JSON methods\n if (typeof value === \"object\") {\n return JSON.parse(JSON.stringify(value));\n }\n // For primitive values, return directly\n return value;\n } catch (error) {\n console.warn(\"structuredClone polyfill failed:\", error);\n\n // Returns a shallow copy as fallback\n return Array.isArray(value) ? [...value] : { ...value };\n }\n };\n}\n\n// Polyfill window.matchMedia for JSDOM (used by Nimbus/Chakra for theming)\nObject.defineProperty(window, \"matchMedia\", {\n writable: true,\n value: (query: unknown) => ({\n matches: false, // Default value, tests can override if needed\n media: query,\n onchange: null,\n addListener: () => {}, // Deprecated but needed for some libs\n removeListener: () => {}, // Deprecated but needed for some libs\n addEventListener: () => {},\n removeEventListener: () => {},\n dispatchEvent: () => false,\n }),\n});\n"],"names":["value","error"],"mappings":"AAgBI,OAAO,WAAW,mBAAoB,eAExC,WAAW,kBAAkB,SAAyBA,GAAY;AAChE,MAAIA,KAAU;AACZ,WAAOA;AAGT,MAAI;AAEF,WAAI,OAAOA,KAAU,WACZ,KAAK,MAAM,KAAK,UAAUA,CAAK,CAAC,IAGlCA;AAAA,EACT,SAASC,GAAO;AACd,mBAAQ,KAAK,oCAAoCA,CAAK,GAG/C,MAAM,QAAQD,CAAK,IAAI,CAAC,GAAGA,CAAK,IAAI,EAAE,GAAGA,EAAA;AAAA,EAClD;AACF;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools/nimbus",
|
|
3
|
-
"version": "0.0.0-canary-
|
|
3
|
+
"version": "0.0.0-canary-20250808141145",
|
|
4
4
|
"main": "./dist/index.cjs",
|
|
5
5
|
"module": "./dist/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -85,14 +85,14 @@
|
|
|
85
85
|
"vite-plugin-dts": "^4.5.4",
|
|
86
86
|
"vite-tsconfig-paths": "^5.1.4",
|
|
87
87
|
"vitest": "^3.2.4",
|
|
88
|
-
"@commercetools/nimbus-icons": "^0.0.0-canary-
|
|
89
|
-
"@commercetools/nimbus-tokens": "^0.0.0-canary-
|
|
88
|
+
"@commercetools/nimbus-icons": "^0.0.0-canary-20250808141145",
|
|
89
|
+
"@commercetools/nimbus-tokens": "^0.0.0-canary-20250808141145"
|
|
90
90
|
},
|
|
91
91
|
"peerDependencies": {
|
|
92
92
|
"@chakra-ui/react": "^3.22.0",
|
|
93
93
|
"react": "^19.0.0",
|
|
94
|
-
"@commercetools/nimbus-
|
|
95
|
-
"@commercetools/nimbus-
|
|
94
|
+
"@commercetools/nimbus-icons": "^0.0.0-canary-20250808141145",
|
|
95
|
+
"@commercetools/nimbus-tokens": "^0.0.0-canary-20250808141145"
|
|
96
96
|
},
|
|
97
97
|
"scripts": {
|
|
98
98
|
"build": "pnpm run build-theme-typings && pnpm run build:lib",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"date-range-picker-D7D7R_4k.cjs.js","sources":["../../src/components/date-range-picker/date-range-picker.slots.tsx","../../src/components/date-range-picker/components/date-range-picker.time-input.tsx","../../src/components/date-range-picker/components/date-range-picker.custom-context.tsx","../../src/components/date-range-picker/date-range-picker.tsx"],"sourcesContent":["import {\n type HTMLChakraProps,\n type RecipeProps,\n type UnstyledProp,\n createSlotRecipeContext,\n} from \"@chakra-ui/react\";\n\nimport { dateRangePickerSlotRecipe } from \"./date-range-picker.recipe\";\n\n/**\n * Base recipe props interface that combines Chakra UI's recipe props\n * with the unstyled prop option for the div element.\n */\ninterface DateRangePickerRecipeProps extends RecipeProps<\"div\">, UnstyledProp {}\n\n/**\n * Root props interface that extends Chakra's HTML props with our recipe props.\n * This creates a complete set of props for the root element, combining\n * HTML attributes, Chakra's styling system, and our custom recipe props.\n */\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\nexport interface DateRangePickerRootProps\n extends HTMLChakraProps<\"div\", DateRangePickerRecipeProps> {}\n\n// Correctly destructure from createSlotRecipeContext based on project examples\nconst { withProvider, withContext } = createSlotRecipeContext({\n recipe: dateRangePickerSlotRecipe,\n});\n\n/**\n * Root component that provides the styling context for the DateRangePicker component.\n * Uses Chakra UI's recipe context system for consistent styling across instances.\n */\nexport const DateRangePickerRootSlot = withProvider<\n HTMLDivElement,\n DateRangePickerRootProps\n>(\"div\", \"root\");\n\n/**\n * Slot component for the input group containing the DateInput and trigger button.\n */\nexport const DateRangePickerGroupSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"group\");\n\n/**\n * Slot component for the trigger button that opens the calendar popover.\n */\nexport const DateRangePickerTriggerSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"trigger\");\n\n/**\n * Slot component for the popover container.\n */\nexport const DateRangePickerPopoverSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"popover\");\n\n/**\n * Slot component for the calendar container within the popover.\n */\nexport const DateRangePickerCalendarSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"calendar\");\n\n/**\n * Slot component for the calendar header.\n */\nexport const DateRangePickerCalendarHeaderSlot = withContext<\n HTMLElement,\n HTMLChakraProps<\"header\">\n>(\"header\", \"calendarHeader\");\n\n/**\n * Slot component for the calendar grid.\n */\nexport const DateRangePickerCalendarGridSlot = withContext<\n HTMLTableElement,\n HTMLChakraProps<\"table\">\n>(\"table\", \"calendarGrid\");\n\n/**\n * Slot component for individual calendar cells.\n */\nexport const DateRangePickerCalendarCellSlot = withContext<\n HTMLTableCellElement,\n HTMLChakraProps<\"td\">\n>(\"td\", \"calendarCell\");\n","import { Flex, Text, TimeInput } from \"@/components\";\nimport { useContext, useRef, useEffect } from \"react\";\nimport { useLocale } from \"react-aria\";\nimport { DateRangePickerStateContext } from \"react-aria-components\";\nimport type { DateRangePickerTimeInputProps } from \"../date-range-picker.types\";\n\nexport const DateRangePickerTimeInput = ({\n hideTimeZone,\n hourCycle,\n}: DateRangePickerTimeInputProps) => {\n const { locale } = useLocale();\n const dateRangePickerState = useContext(DateRangePickerStateContext);\n const { granularity, value } = dateRangePickerState!;\n const timeInputRef = useRef<HTMLDivElement>(null);\n const previousValueRef = useRef(value);\n\n // do not show up to the party if you're not invited\n if (granularity === \"day\") {\n return null;\n }\n\n // DateRangePicker-specific: Focus the time input when date range changes (user selects dates from calendar)\n useEffect(() => {\n // DateRangePicker-specific: Check if date range changed by comparing start and end dates\n const hasValueChanged =\n (value?.start &&\n previousValueRef.current?.start?.compare(value.start) !== 0) ||\n (value?.end && previousValueRef.current?.end?.compare(value.end) !== 0);\n\n if (hasValueChanged) {\n // Small delay to ensure the DOM is ready\n setTimeout(() => {\n // Find the first focusable segment within the time input container\n const container = timeInputRef.current;\n if (container) {\n const firstSegment = container.querySelector(\n '[role=\"spinbutton\"]'\n ) as HTMLElement;\n\n if (firstSegment) {\n firstSegment.focus();\n }\n }\n }, 50);\n }\n\n // DateRangePicker-specific: Update previous value reference for range comparison\n previousValueRef.current = value;\n }, [value]);\n\n return (\n <Flex\n ref={timeInputRef}\n borderTop=\"solid-25\"\n borderColor=\"neutral.3\"\n py=\"300\"\n px=\"400\"\n alignItems=\"center\"\n justifyContent=\"center\"\n gap=\"200\"\n >\n {/* DateRangePicker-specific: Start DateInput with separate label */}\n <Flex alignItems=\"center\" gap=\"200\">\n {/* TODO: translate hardcoded string */}\n <Text\n textStyle=\"xs\"\n fontWeight=\"500\"\n color=\"neutral.12\"\n minWidth=\"fit-content\"\n >\n Start time\n </Text>\n <TimeInput\n slot=\"startTimeInput\"\n locale={locale}\n variant=\"ghost\"\n size=\"sm\"\n hideTimeZone={hideTimeZone}\n hourCycle={hourCycle}\n />\n </Flex>\n\n {/* DateRangePicker-specific: End DateInput with separate label */}\n <Flex alignItems=\"center\" gap=\"200\">\n {/* TODO: translate hardcoded string */}\n <Text\n textStyle=\"xs\"\n fontWeight=\"500\"\n color=\"neutral.12\"\n minWidth=\"fit-content\"\n >\n End time\n </Text>\n <TimeInput\n slot=\"endTimeInput\"\n locale={locale}\n variant=\"ghost\"\n size=\"sm\"\n hideTimeZone={hideTimeZone}\n hourCycle={hourCycle}\n />\n </Flex>\n </Flex>\n );\n};\n","import { useContext, type ReactNode } from \"react\";\nimport {\n Provider,\n ButtonContext,\n DateRangePickerStateContext,\n TimeFieldContext,\n useSlottedContext,\n} from \"react-aria-components\";\nimport type { PressEvent, TimeValue } from \"react-aria\";\n\nexport const DateRangePickerCustomContext = ({\n children,\n}: {\n children: ReactNode;\n}) => {\n const buttonContext = useSlottedContext(ButtonContext) || {};\n const dateRangePickerState = useContext(DateRangePickerStateContext);\n\n // DateRangePicker-specific: Check if all 6 segments (start: day, month, year; end: day, month, year) have values\n const hasCompleteRangeDate = (date: any) =>\n date?.day && date?.month && date?.year;\n\n const incompleteValue =\n !dateRangePickerState?.value ||\n !hasCompleteRangeDate(dateRangePickerState.value.start) ||\n !hasCompleteRangeDate(dateRangePickerState.value.end);\n\n // eslint-disable-next-line @typescript-eslint/unbound-method\n const { granularity } = dateRangePickerState!;\n\n // DateRangePicker-specific: Extract time values from start and end dates separately\n const startTimeValue =\n dateRangePickerState?.value?.start &&\n \"hour\" in dateRangePickerState.value.start\n ? dateRangePickerState.value.start\n : null;\n const endTimeValue =\n dateRangePickerState?.value?.end && \"hour\" in dateRangePickerState.value.end\n ? dateRangePickerState.value.end\n : null;\n\n // Try to get disabled state from the button context\n const isDateRangePickerDisabled = buttonContext?.isDisabled;\n\n // Generate default aria-label based on granularity if not provided\n const getDefaultTimeInputAriaLabel = (type: \"start\" | \"end\") => {\n const prefix = type === \"start\" ? \"Start\" : \"End\";\n switch (granularity) {\n case \"hour\":\n return `${prefix} time (hour)`;\n case \"minute\":\n return `${prefix} time (hour and minute)`;\n case \"second\":\n return `${prefix} time (hour, minute, and second)`;\n default:\n return `${prefix} time`;\n }\n };\n\n /**\n * Button slots\n * ================================\n */\n const buttonSlots = {\n /** toggles the calendar popover */\n calendarToggle: {\n ...buttonContext,\n onPress: (event: PressEvent) => {\n // Ensure any active input (e.g., date picker segment) loses focus\n // because blurring the input will close the popover if it's open (or was just opened)\n const activeElement = document?.activeElement as HTMLElement | null;\n\n if (activeElement) {\n activeElement.blur();\n }\n\n buttonContext.onPress?.(event);\n },\n },\n /** Clear button that displays when there's a value in each segment - hidden from both visual and screen readers when there's no value */\n clear: {\n // DateRangePicker-specific: Clear both start and end values\n onPress: () => dateRangePickerState?.setValue(null),\n \"aria-label\": \"Clear input value\",\n isDisabled: isDateRangePickerDisabled,\n // Hide the button when there's no value\n style: incompleteValue ? { display: \"none\" } : undefined,\n \"aria-hidden\": incompleteValue ? true : undefined,\n },\n };\n\n /**\n * TimeInput slots\n * ================================\n */\n\n // DateRangePicker-specific: Separate time input slots for start and end times\n const timeInputSlots = {\n startTimeInput: {\n value: startTimeValue,\n onChange: (value: TimeValue | null) => {\n if (value !== null && dateRangePickerState?.value?.start) {\n // DateRangePicker-specific: Update the start date with the new time\n const currentValue = dateRangePickerState.value;\n const startDate = currentValue.start;\n const endDate = currentValue.end;\n if (startDate && endDate) {\n const newStartDate = startDate.set({\n hour: value.hour,\n minute: value.minute || 0,\n second: value.second || 0,\n millisecond: value.millisecond || 0,\n });\n\n dateRangePickerState.setValue({\n start: newStartDate,\n end: endDate,\n });\n }\n }\n },\n granularity: granularity === \"day\" ? undefined : granularity,\n \"aria-label\": getDefaultTimeInputAriaLabel(\"start\"),\n },\n endTimeInput: {\n value: endTimeValue,\n onChange: (value: TimeValue | null) => {\n if (value !== null && dateRangePickerState?.value?.end) {\n // DateRangePicker-specific: Update the end date with the new time\n const currentValue = dateRangePickerState.value;\n const startDate = currentValue.start;\n const endDate = currentValue.end;\n if (startDate && endDate) {\n const newEndDate = endDate.set({\n hour: value.hour,\n minute: value.minute || 0,\n second: value.second || 0,\n millisecond: value.millisecond || 0,\n });\n\n dateRangePickerState.setValue({\n start: startDate,\n end: newEndDate,\n });\n }\n }\n },\n granularity: granularity === \"day\" ? undefined : granularity,\n \"aria-label\": getDefaultTimeInputAriaLabel(\"end\"),\n },\n };\n\n return (\n <Provider\n values={[\n [\n ButtonContext,\n {\n slots: buttonSlots,\n },\n ],\n [TimeFieldContext, { slots: timeInputSlots }],\n ]}\n >\n {children}\n </Provider>\n );\n};\n","import {\n DateRangePickerRootSlot,\n DateRangePickerGroupSlot,\n DateRangePickerTriggerSlot,\n DateRangePickerPopoverSlot,\n DateRangePickerCalendarSlot,\n} from \"./date-range-picker.slots\";\n\nimport { CalendarMonth, Close } from \"@commercetools/nimbus-icons\";\n\nimport {\n DateRangePicker as ReactAriaDateRangePicker,\n Group,\n Popover,\n Dialog,\n} from \"react-aria-components\";\nimport { useSlotRecipe } from \"@chakra-ui/react\";\nimport { dateRangePickerSlotRecipe } from \"./date-range-picker.recipe\";\nimport type { DateRangePickerProps } from \"./date-range-picker.types\";\nimport { extractStyleProps } from \"@/utils/extractStyleProps\";\nimport { DateInput, RangeCalendar, IconButton, Text } from \"@/components\";\nimport { DateRangePickerTimeInput } from \"./components/date-range-picker.time-input\";\nimport { DateRangePickerCustomContext } from \"./components/date-range-picker.custom-context\";\n\n/**\n * DateRangePicker\n * ============================================================\n * Combines a DateInput with a RangeCalendar popover for date range selection.\n * Users can either type a date range directly or select from the calendar.\n */\nexport const DateRangePicker = (props: DateRangePickerProps) => {\n // Forward hideTimeZone and hourCycle to child components (footer time inputs)\n const { granularity = \"day\", hideTimeZone, hourCycle } = props;\n const recipe = useSlotRecipe({ recipe: dateRangePickerSlotRecipe });\n const [recipeProps, remainingProps] = recipe.splitVariantProps(props);\n\n const [styleProps, otherProps] = extractStyleProps(remainingProps);\n\n // Extract size and variant from recipe props to pass to DateInputs\n const { size = \"md\", variant } = recipeProps;\n\n // the size of the buttons overlaying the input\n const overlayButtonSize = size === \"md\" ? \"xs\" : \"2xs\";\n\n // When granularity is \"day\", use the prop value (defaults to true if not provided)\n // For other granularities (time-based), force to false so users can set both date and time\n const shouldCloseOnSelect =\n granularity === \"day\" ? props.shouldCloseOnSelect : false;\n\n return (\n <DateRangePickerRootSlot {...recipeProps} {...styleProps} asChild>\n <ReactAriaDateRangePicker\n {...otherProps}\n shouldCloseOnSelect={shouldCloseOnSelect}\n >\n <DateRangePickerCustomContext>\n <DateRangePickerGroupSlot asChild>\n <Group>\n <DateInput\n slot=\"start\"\n size={size}\n variant=\"plain\"\n width=\"auto\"\n hideTimeZone={hideTimeZone}\n hourCycle={hourCycle}\n />\n <Text\n as=\"span\"\n px=\"150\"\n color=\"neutral.11\"\n userSelect=\"none\"\n aria-hidden=\"true\"\n slot={null}\n >\n –\n </Text>\n <DateInput\n slot=\"end\"\n size={size}\n variant=\"plain\"\n width=\"auto\"\n hideTimeZone={hideTimeZone}\n hourCycle={hourCycle}\n />\n <DateRangePickerTriggerSlot>\n {/* @ts-expect-error react aria is adding the aria-label prop */}\n <IconButton\n tone=\"primary\"\n variant=\"ghost\"\n size={overlayButtonSize}\n slot=\"clear\"\n >\n <Close />\n </IconButton>\n {/* @ts-expect-error react aria is adding the aria-label prop */}\n <IconButton\n tone=\"primary\"\n variant=\"ghost\"\n size={overlayButtonSize}\n slot=\"calendarToggle\"\n >\n <CalendarMonth />\n </IconButton>\n </DateRangePickerTriggerSlot>\n </Group>\n </DateRangePickerGroupSlot>\n <DateRangePickerPopoverSlot asChild>\n <Popover placement=\"bottom end\">\n <Dialog>\n <DateRangePickerCalendarSlot>\n <RangeCalendar />\n </DateRangePickerCalendarSlot>\n <DateRangePickerTimeInput\n hideTimeZone={hideTimeZone}\n hourCycle={hourCycle}\n />\n </Dialog>\n </Popover>\n </DateRangePickerPopoverSlot>\n </DateRangePickerCustomContext>\n </ReactAriaDateRangePicker>\n </DateRangePickerRootSlot>\n );\n};\n\nDateRangePicker.displayName = \"DateRangePicker\";\n"],"names":["withProvider","withContext","createSlotRecipeContext","dateRangePickerSlotRecipe","DateRangePickerRootSlot","DateRangePickerGroupSlot","DateRangePickerTriggerSlot","DateRangePickerPopoverSlot","DateRangePickerCalendarSlot","DateRangePickerTimeInput","hideTimeZone","hourCycle","locale","useLocale","dateRangePickerState","useContext","DateRangePickerStateContext","granularity","value","timeInputRef","useRef","previousValueRef","useEffect","container","firstSegment","jsxs","Flex","jsx","Text","TimeInput","DateRangePickerCustomContext","children","buttonContext","useSlottedContext","ButtonContext","hasCompleteRangeDate","date","incompleteValue","startTimeValue","endTimeValue","isDateRangePickerDisabled","getDefaultTimeInputAriaLabel","type","prefix","buttonSlots","event","activeElement","timeInputSlots","currentValue","startDate","endDate","newStartDate","newEndDate","Provider","TimeFieldContext","DateRangePicker","props","recipe","useSlotRecipe","recipeProps","remainingProps","styleProps","otherProps","extractStyleProps","size","variant","overlayButtonSize","shouldCloseOnSelect","ReactAriaDateRangePicker","Group","DateInput","IconButton","Close","CalendarMonth","Popover","Dialog","RangeCalendar"],"mappings":"stBAyBM,CAAE,aAAAA,EAAc,YAAAC,CAAA,EAAgBC,0BAAwB,CAC5D,OAAQC,EAAAA,yBACV,CAAC,EAMYC,EAA0BJ,EAGrC,MAAO,MAAM,EAKFK,EAA2BJ,EAGtC,MAAO,OAAO,EAKHK,EAA6BL,EAGxC,MAAO,SAAS,EAKLM,EAA6BN,EAGxC,MAAO,SAAS,EAKLO,EAA8BP,EAGzC,MAAO,UAAU,EC9DNQ,EAA2B,CAAC,CACvC,aAAAC,EACA,UAAAC,CACF,IAAqC,CACnC,KAAM,CAAE,OAAAC,CAAA,EAAWC,4CAAA,EACbC,EAAuBC,EAAAA,WAAWC,2CAA2B,EAC7D,CAAE,YAAAC,EAAa,MAAAC,CAAA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D,EAAAA,0CAAA,CACC,SAAA,CAAAhD,EAAAA,IAACnB,EAAA,CACC,SAAAmB,EAAAA,IAACiD,EAAAA,cAAA,CAAA,CAAc,EACjB,EACAjD,EAAAA,IAAClB,EAAA,CACC,aAAAC,EACA,UAAAC,CAAA,CAAA,CACF,CAAA,CACF,EACF,CAAA,CACF,CAAA,CAAA,CACF,CAAA,CAAA,EAEJ,CAEJ,EAEA4C,EAAgB,YAAc"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"date-range-picker-DGKM05wQ.es.js","sources":["../../src/components/date-range-picker/date-range-picker.slots.tsx","../../src/components/date-range-picker/components/date-range-picker.time-input.tsx","../../src/components/date-range-picker/components/date-range-picker.custom-context.tsx","../../src/components/date-range-picker/date-range-picker.tsx"],"sourcesContent":["import {\n type HTMLChakraProps,\n type RecipeProps,\n type UnstyledProp,\n createSlotRecipeContext,\n} from \"@chakra-ui/react\";\n\nimport { dateRangePickerSlotRecipe } from \"./date-range-picker.recipe\";\n\n/**\n * Base recipe props interface that combines Chakra UI's recipe props\n * with the unstyled prop option for the div element.\n */\ninterface DateRangePickerRecipeProps extends RecipeProps<\"div\">, UnstyledProp {}\n\n/**\n * Root props interface that extends Chakra's HTML props with our recipe props.\n * This creates a complete set of props for the root element, combining\n * HTML attributes, Chakra's styling system, and our custom recipe props.\n */\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\nexport interface DateRangePickerRootProps\n extends HTMLChakraProps<\"div\", DateRangePickerRecipeProps> {}\n\n// Correctly destructure from createSlotRecipeContext based on project examples\nconst { withProvider, withContext } = createSlotRecipeContext({\n recipe: dateRangePickerSlotRecipe,\n});\n\n/**\n * Root component that provides the styling context for the DateRangePicker component.\n * Uses Chakra UI's recipe context system for consistent styling across instances.\n */\nexport const DateRangePickerRootSlot = withProvider<\n HTMLDivElement,\n DateRangePickerRootProps\n>(\"div\", \"root\");\n\n/**\n * Slot component for the input group containing the DateInput and trigger button.\n */\nexport const DateRangePickerGroupSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"group\");\n\n/**\n * Slot component for the trigger button that opens the calendar popover.\n */\nexport const DateRangePickerTriggerSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"trigger\");\n\n/**\n * Slot component for the popover container.\n */\nexport const DateRangePickerPopoverSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"popover\");\n\n/**\n * Slot component for the calendar container within the popover.\n */\nexport const DateRangePickerCalendarSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"calendar\");\n\n/**\n * Slot component for the calendar header.\n */\nexport const DateRangePickerCalendarHeaderSlot = withContext<\n HTMLElement,\n HTMLChakraProps<\"header\">\n>(\"header\", \"calendarHeader\");\n\n/**\n * Slot component for the calendar grid.\n */\nexport const DateRangePickerCalendarGridSlot = withContext<\n HTMLTableElement,\n HTMLChakraProps<\"table\">\n>(\"table\", \"calendarGrid\");\n\n/**\n * Slot component for individual calendar cells.\n */\nexport const DateRangePickerCalendarCellSlot = withContext<\n HTMLTableCellElement,\n HTMLChakraProps<\"td\">\n>(\"td\", \"calendarCell\");\n","import { Flex, Text, TimeInput } from \"@/components\";\nimport { useContext, useRef, useEffect } from \"react\";\nimport { useLocale } from \"react-aria\";\nimport { DateRangePickerStateContext } from \"react-aria-components\";\nimport type { DateRangePickerTimeInputProps } from \"../date-range-picker.types\";\n\nexport const DateRangePickerTimeInput = ({\n hideTimeZone,\n hourCycle,\n}: DateRangePickerTimeInputProps) => {\n const { locale } = useLocale();\n const dateRangePickerState = useContext(DateRangePickerStateContext);\n const { granularity, value } = dateRangePickerState!;\n const timeInputRef = useRef<HTMLDivElement>(null);\n const previousValueRef = useRef(value);\n\n // do not show up to the party if you're not invited\n if (granularity === \"day\") {\n return null;\n }\n\n // DateRangePicker-specific: Focus the time input when date range changes (user selects dates from calendar)\n useEffect(() => {\n // DateRangePicker-specific: Check if date range changed by comparing start and end dates\n const hasValueChanged =\n (value?.start &&\n previousValueRef.current?.start?.compare(value.start) !== 0) ||\n (value?.end && previousValueRef.current?.end?.compare(value.end) !== 0);\n\n if (hasValueChanged) {\n // Small delay to ensure the DOM is ready\n setTimeout(() => {\n // Find the first focusable segment within the time input container\n const container = timeInputRef.current;\n if (container) {\n const firstSegment = container.querySelector(\n '[role=\"spinbutton\"]'\n ) as HTMLElement;\n\n if (firstSegment) {\n firstSegment.focus();\n }\n }\n }, 50);\n }\n\n // DateRangePicker-specific: Update previous value reference for range comparison\n previousValueRef.current = value;\n }, [value]);\n\n return (\n <Flex\n ref={timeInputRef}\n borderTop=\"solid-25\"\n borderColor=\"neutral.3\"\n py=\"300\"\n px=\"400\"\n alignItems=\"center\"\n justifyContent=\"center\"\n gap=\"200\"\n >\n {/* DateRangePicker-specific: Start DateInput with separate label */}\n <Flex alignItems=\"center\" gap=\"200\">\n {/* TODO: translate hardcoded string */}\n <Text\n textStyle=\"xs\"\n fontWeight=\"500\"\n color=\"neutral.12\"\n minWidth=\"fit-content\"\n >\n Start time\n </Text>\n <TimeInput\n slot=\"startTimeInput\"\n locale={locale}\n variant=\"ghost\"\n size=\"sm\"\n hideTimeZone={hideTimeZone}\n hourCycle={hourCycle}\n />\n </Flex>\n\n {/* DateRangePicker-specific: End DateInput with separate label */}\n <Flex alignItems=\"center\" gap=\"200\">\n {/* TODO: translate hardcoded string */}\n <Text\n textStyle=\"xs\"\n fontWeight=\"500\"\n color=\"neutral.12\"\n minWidth=\"fit-content\"\n >\n End time\n </Text>\n <TimeInput\n slot=\"endTimeInput\"\n locale={locale}\n variant=\"ghost\"\n size=\"sm\"\n hideTimeZone={hideTimeZone}\n hourCycle={hourCycle}\n />\n </Flex>\n </Flex>\n );\n};\n","import { useContext, type ReactNode } from \"react\";\nimport {\n Provider,\n ButtonContext,\n DateRangePickerStateContext,\n TimeFieldContext,\n useSlottedContext,\n} from \"react-aria-components\";\nimport type { PressEvent, TimeValue } from \"react-aria\";\n\nexport const DateRangePickerCustomContext = ({\n children,\n}: {\n children: ReactNode;\n}) => {\n const buttonContext = useSlottedContext(ButtonContext) || {};\n const dateRangePickerState = useContext(DateRangePickerStateContext);\n\n // DateRangePicker-specific: Check if all 6 segments (start: day, month, year; end: day, month, year) have values\n const hasCompleteRangeDate = (date: any) =>\n date?.day && date?.month && date?.year;\n\n const incompleteValue =\n !dateRangePickerState?.value ||\n !hasCompleteRangeDate(dateRangePickerState.value.start) ||\n !hasCompleteRangeDate(dateRangePickerState.value.end);\n\n // eslint-disable-next-line @typescript-eslint/unbound-method\n const { granularity } = dateRangePickerState!;\n\n // DateRangePicker-specific: Extract time values from start and end dates separately\n const startTimeValue =\n dateRangePickerState?.value?.start &&\n \"hour\" in dateRangePickerState.value.start\n ? dateRangePickerState.value.start\n : null;\n const endTimeValue =\n dateRangePickerState?.value?.end && \"hour\" in dateRangePickerState.value.end\n ? dateRangePickerState.value.end\n : null;\n\n // Try to get disabled state from the button context\n const isDateRangePickerDisabled = buttonContext?.isDisabled;\n\n // Generate default aria-label based on granularity if not provided\n const getDefaultTimeInputAriaLabel = (type: \"start\" | \"end\") => {\n const prefix = type === \"start\" ? \"Start\" : \"End\";\n switch (granularity) {\n case \"hour\":\n return `${prefix} time (hour)`;\n case \"minute\":\n return `${prefix} time (hour and minute)`;\n case \"second\":\n return `${prefix} time (hour, minute, and second)`;\n default:\n return `${prefix} time`;\n }\n };\n\n /**\n * Button slots\n * ================================\n */\n const buttonSlots = {\n /** toggles the calendar popover */\n calendarToggle: {\n ...buttonContext,\n onPress: (event: PressEvent) => {\n // Ensure any active input (e.g., date picker segment) loses focus\n // because blurring the input will close the popover if it's open (or was just opened)\n const activeElement = document?.activeElement as HTMLElement | null;\n\n if (activeElement) {\n activeElement.blur();\n }\n\n buttonContext.onPress?.(event);\n },\n },\n /** Clear button that displays when there's a value in each segment - hidden from both visual and screen readers when there's no value */\n clear: {\n // DateRangePicker-specific: Clear both start and end values\n onPress: () => dateRangePickerState?.setValue(null),\n \"aria-label\": \"Clear input value\",\n isDisabled: isDateRangePickerDisabled,\n // Hide the button when there's no value\n style: incompleteValue ? { display: \"none\" } : undefined,\n \"aria-hidden\": incompleteValue ? true : undefined,\n },\n };\n\n /**\n * TimeInput slots\n * ================================\n */\n\n // DateRangePicker-specific: Separate time input slots for start and end times\n const timeInputSlots = {\n startTimeInput: {\n value: startTimeValue,\n onChange: (value: TimeValue | null) => {\n if (value !== null && dateRangePickerState?.value?.start) {\n // DateRangePicker-specific: Update the start date with the new time\n const currentValue = dateRangePickerState.value;\n const startDate = currentValue.start;\n const endDate = currentValue.end;\n if (startDate && endDate) {\n const newStartDate = startDate.set({\n hour: value.hour,\n minute: value.minute || 0,\n second: value.second || 0,\n millisecond: value.millisecond || 0,\n });\n\n dateRangePickerState.setValue({\n start: newStartDate,\n end: endDate,\n });\n }\n }\n },\n granularity: granularity === \"day\" ? undefined : granularity,\n \"aria-label\": getDefaultTimeInputAriaLabel(\"start\"),\n },\n endTimeInput: {\n value: endTimeValue,\n onChange: (value: TimeValue | null) => {\n if (value !== null && dateRangePickerState?.value?.end) {\n // DateRangePicker-specific: Update the end date with the new time\n const currentValue = dateRangePickerState.value;\n const startDate = currentValue.start;\n const endDate = currentValue.end;\n if (startDate && endDate) {\n const newEndDate = endDate.set({\n hour: value.hour,\n minute: value.minute || 0,\n second: value.second || 0,\n millisecond: value.millisecond || 0,\n });\n\n dateRangePickerState.setValue({\n start: startDate,\n end: newEndDate,\n });\n }\n }\n },\n granularity: granularity === \"day\" ? undefined : granularity,\n \"aria-label\": getDefaultTimeInputAriaLabel(\"end\"),\n },\n };\n\n return (\n <Provider\n values={[\n [\n ButtonContext,\n {\n slots: buttonSlots,\n },\n ],\n [TimeFieldContext, { slots: timeInputSlots }],\n ]}\n >\n {children}\n </Provider>\n );\n};\n","import {\n DateRangePickerRootSlot,\n DateRangePickerGroupSlot,\n DateRangePickerTriggerSlot,\n DateRangePickerPopoverSlot,\n DateRangePickerCalendarSlot,\n} from \"./date-range-picker.slots\";\n\nimport { CalendarMonth, Close } from \"@commercetools/nimbus-icons\";\n\nimport {\n DateRangePicker as ReactAriaDateRangePicker,\n Group,\n Popover,\n Dialog,\n} from \"react-aria-components\";\nimport { useSlotRecipe } from \"@chakra-ui/react\";\nimport { dateRangePickerSlotRecipe } from \"./date-range-picker.recipe\";\nimport type { DateRangePickerProps } from \"./date-range-picker.types\";\nimport { extractStyleProps } from \"@/utils/extractStyleProps\";\nimport { DateInput, RangeCalendar, IconButton, Text } from \"@/components\";\nimport { DateRangePickerTimeInput } from \"./components/date-range-picker.time-input\";\nimport { DateRangePickerCustomContext } from \"./components/date-range-picker.custom-context\";\n\n/**\n * DateRangePicker\n * ============================================================\n * Combines a DateInput with a RangeCalendar popover for date range selection.\n * Users can either type a date range directly or select from the calendar.\n */\nexport const DateRangePicker = (props: DateRangePickerProps) => {\n // Forward hideTimeZone and hourCycle to child components (footer time inputs)\n const { granularity = \"day\", hideTimeZone, hourCycle } = props;\n const recipe = useSlotRecipe({ recipe: dateRangePickerSlotRecipe });\n const [recipeProps, remainingProps] = recipe.splitVariantProps(props);\n\n const [styleProps, otherProps] = extractStyleProps(remainingProps);\n\n // Extract size and variant from recipe props to pass to DateInputs\n const { size = \"md\", variant } = recipeProps;\n\n // the size of the buttons overlaying the input\n const overlayButtonSize = size === \"md\" ? \"xs\" : \"2xs\";\n\n // When granularity is \"day\", use the prop value (defaults to true if not provided)\n // For other granularities (time-based), force to false so users can set both date and time\n const shouldCloseOnSelect =\n granularity === \"day\" ? props.shouldCloseOnSelect : false;\n\n return (\n <DateRangePickerRootSlot {...recipeProps} {...styleProps} asChild>\n <ReactAriaDateRangePicker\n {...otherProps}\n shouldCloseOnSelect={shouldCloseOnSelect}\n >\n <DateRangePickerCustomContext>\n <DateRangePickerGroupSlot asChild>\n <Group>\n <DateInput\n slot=\"start\"\n size={size}\n variant=\"plain\"\n width=\"auto\"\n hideTimeZone={hideTimeZone}\n hourCycle={hourCycle}\n />\n <Text\n as=\"span\"\n px=\"150\"\n color=\"neutral.11\"\n userSelect=\"none\"\n aria-hidden=\"true\"\n slot={null}\n >\n –\n </Text>\n <DateInput\n slot=\"end\"\n size={size}\n variant=\"plain\"\n width=\"auto\"\n hideTimeZone={hideTimeZone}\n hourCycle={hourCycle}\n />\n <DateRangePickerTriggerSlot>\n {/* @ts-expect-error react aria is adding the aria-label prop */}\n <IconButton\n tone=\"primary\"\n variant=\"ghost\"\n size={overlayButtonSize}\n slot=\"clear\"\n >\n <Close />\n </IconButton>\n {/* @ts-expect-error react aria is adding the aria-label prop */}\n <IconButton\n tone=\"primary\"\n variant=\"ghost\"\n size={overlayButtonSize}\n slot=\"calendarToggle\"\n >\n <CalendarMonth />\n </IconButton>\n </DateRangePickerTriggerSlot>\n </Group>\n </DateRangePickerGroupSlot>\n <DateRangePickerPopoverSlot asChild>\n <Popover placement=\"bottom end\">\n <Dialog>\n <DateRangePickerCalendarSlot>\n <RangeCalendar />\n </DateRangePickerCalendarSlot>\n <DateRangePickerTimeInput\n hideTimeZone={hideTimeZone}\n hourCycle={hourCycle}\n />\n </Dialog>\n </Popover>\n </DateRangePickerPopoverSlot>\n </DateRangePickerCustomContext>\n </ReactAriaDateRangePicker>\n </DateRangePickerRootSlot>\n );\n};\n\nDateRangePicker.displayName = \"DateRangePicker\";\n"],"names":["withProvider","withContext","createSlotRecipeContext","dateRangePickerSlotRecipe","DateRangePickerRootSlot","DateRangePickerGroupSlot","DateRangePickerTriggerSlot","DateRangePickerPopoverSlot","DateRangePickerCalendarSlot","DateRangePickerTimeInput","hideTimeZone","hourCycle","locale","useLocale","dateRangePickerState","useContext","DateRangePickerStateContext","granularity","value","timeInputRef","useRef","previousValueRef","useEffect","container","firstSegment","jsxs","Flex","jsx","Text","TimeInput","DateRangePickerCustomContext","children","buttonContext","useSlottedContext","ButtonContext","hasCompleteRangeDate","date","incompleteValue","startTimeValue","endTimeValue","isDateRangePickerDisabled","getDefaultTimeInputAriaLabel","type","prefix","buttonSlots","event","activeElement","timeInputSlots","currentValue","startDate","endDate","newStartDate","newEndDate","Provider","TimeFieldContext","DateRangePicker","props","recipe","useSlotRecipe","recipeProps","remainingProps","styleProps","otherProps","extractStyleProps","size","variant","overlayButtonSize","shouldCloseOnSelect","ReactAriaDateRangePicker","Group","DateInput","IconButton","Close","CalendarMonth","Popover","Dialog","RangeCalendar"],"mappings":";;;;;;;;;;;;;;;;;;AAyBA,MAAM,EAAE,cAAAA,GAAc,aAAAC,EAAA,IAAgB,gBAAAC,EAAwB;AAAA,EAC5D,QAAQC;AACV,CAAC,GAMYC,IAA0B,gBAAAJ,EAGrC,OAAO,MAAM,GAKFK,IAA2B,gBAAAJ,EAGtC,OAAO,OAAO,GAKHK,IAA6B,gBAAAL,EAGxC,OAAO,SAAS,GAKLM,IAA6B,gBAAAN,EAGxC,OAAO,SAAS,GAKLO,IAA8B,gBAAAP,EAGzC,OAAO,UAAU,GC9DNQ,IAA2B,CAAC;AAAA,EACvC,cAAAC;AAAA,EACA,WAAAC;AACF,MAAqC;AACnC,QAAM,EAAE,QAAAC,EAAA,IAAWC,EAAA,GACbC,IAAuBC,EAAWC,CAA2B,GAC7D,EAAE,aAAAC,GAAa,OAAAC,EAAA,IAAUJ,GACzBK,IAAeC,EAAuB,IAAI,GAC1CC,IAAmBD,EAAOF,CAAK;AAGrC,SAAID,MAAgB,QACX,QAITK,EAAU,MAAM;AAOd,KAJGJ,GAAO,SACNG,EAAiB,SAAS,OAAO,QAAQH,EAAM,KAAK,MAAM,KAC3DA,GAAO,OAAOG,EAAiB,SAAS,KAAK,QAAQH,EAAM,GAAG,MAAM,MAIrE,WAAW,MAAM;AAEf,YAAMK,IAAYJ,EAAa;AAC/B,UAAII,GAAW;AACb,cAAMC,IAAeD,EAAU;AAAA,UAC7B;AAAA,QAAA;AAGF,QAAIC,KACFA,EAAa,MAAA;AAAA,MAEjB;AAAA,IACF,GAAG,EAAE,GAIPH,EAAiB,UAAUH;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