@commercetools/nimbus 0.0.0-canary-20250807210749 → 0.0.0-canary-20250812202252
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-BSOum_Vm.cjs.js +2 -0
- package/dist/chunks/date-picker-BSOum_Vm.cjs.js.map +1 -0
- package/dist/chunks/{date-picker-UO9jg5oK.es.js → date-picker-CrV9TJ_O.es.js} +66 -63
- package/dist/chunks/date-picker-CrV9TJ_O.es.js.map +1 -0
- package/dist/chunks/date-range-picker-Bvgghg-M.cjs.js +2 -0
- package/dist/chunks/date-range-picker-Bvgghg-M.cjs.js.map +1 -0
- package/dist/chunks/{date-range-picker-DGKM05wQ.es.js → date-range-picker-ByLVQAiA.es.js} +92 -86
- package/dist/chunks/date-range-picker-ByLVQAiA.es.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 +4 -4
- package/dist/components/date-picker.cjs +1 -1
- package/dist/components/date-picker.es.js +1 -1
- 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 +4 -4
- 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-picker-BfA4uYkg.cjs.js +0 -2
- package/dist/chunks/date-picker-BfA4uYkg.cjs.js.map +0 -1
- package/dist/chunks/date-picker-UO9jg5oK.es.js.map +0 -1
- package/dist/chunks/date-range-picker-D7D7R_4k.cjs.js +0 -2
- 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","RATooltip","Tooltip"],"mappings":"+fAmBMA,EAAkDC,EAAc,cAAc,IAAI,EACxF,SAASC,EAAyCC,EAAO,CACrD,GAAI,CAAE,SAAUC,CAAQ,EAAKD,EACzBE,EAAaC,EAAAA,WAAmBN,CAA6B,EAC7D,CAACO,EAAYC,CAAa,EAAQC,EAAAA,SAAiB,CAAC,EACpDC,EAAcC,EAAAA,QAAgB,KAAK,CAC/B,OAAQN,EACR,WAAYE,EACZ,UAAY,CACRC,EAAeI,GAAQA,EAAQ,CAAC,EAC5BP,GAAQA,EAAO,SAAQ,CAC/B,EACA,aAAe,CACXG,EAAeI,GAAQA,EAAQ,CAAC,EAC5BP,GAAQA,EAAO,YAAW,CAClC,CACZ,GAAY,CACJA,EACAE,CACR,CAAK,EACD,OAAyBN,EAAc,cAAcD,EAA8B,SAAU,CACzF,MAAOU,CACf,EAAON,CAAQ,CACf,CACA,SAASS,GAA4C,CACjD,IAAIH,EAAcJ,EAAAA,WAAmBN,CAA6B,EAClE,MAAO,CACH,mBAAoB,CAChB,cAAeU,GAAWA,EAAQ,WAAa,EAAI,GAAO,MACtE,CACA,CACA,CAGI,SAASI,EAA0CX,EAAO,CAC1D,GAAI,CAAE,mBAAoBY,CAAkB,EAAKF,EAAyC,EAC1F,OAAyBZ,EAAc,cAAc,MAAO,CACxD,yBAA0B,GAC1B,GAAGE,EACH,GAAGY,CACX,CAAK,CACL,CACA,SAASC,EAA0Cb,EAAO,CACtD,OAAyBF,EAAc,cAAcC,EAA0C,KA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@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":"+fAmBMA,EAAkDC,EAAc,cAAc,IAAI,EACxF,SAASC,EAAyCC,EAAO,CACrD,GAAI,CAAE,SAAUC,CAAQ,EAAKD,EACzBE,EAAaC,EAAAA,WAAmBN,CAA6B,EAC7D,CAACO,EAAYC,CAAa,EAAQC,EAAAA,SAAiB,CAAC,EACpDC,EAAcC,EAAAA,QAAgB,KAAK,CAC/B,OAAQN,EACR,WAAYE,EACZ,UAAY,CACRC,EAAeI,GAAQA,EAAQ,CAAC,EAC5BP,GAAQA,EAAO,SAAQ,CAC/B,EACA,aAAe,CACXG,EAAeI,GAAQA,EAAQ,CAAC,EAC5BP,GAAQA,EAAO,YAAW,CAClC,CACZ,GAAY,CACJA,EACAE,CACR,CAAK,EACD,OAAyBN,EAAc,cAAcD,EAA8B,SAAU,CACzF,MAAOU,CACf,EAAON,CAAQ,CACf,CACA,SAASS,GAA4C,CACjD,IAAIH,EAAcJ,EAAAA,WAAmBN,CAA6B,EAClE,MAAO,CACH,mBAAoB,CAChB,cAAeU,GAAWA,EAAQ,WAAa,EAAI,GAAO,MACtE,CACA,CACA,CAGI,SAASI,EAA0CX,EAAO,CAC1D,GAAI,CAAE,mBAAoBY,CAAkB,EAAKF,EAAyC,EAC1F,OAAyBZ,EAAc,cAAc,MAAO,CACxD,yBAA0B,GAC1B,GAAGE,EACH,GAAGY,CACX,CAAK,CACL,CACA,SAASC,EAA0Cb,EAAO,CACtD,OAAyBF,EAAc,cAAcC,EAA0C,KAAwBD,EAAc,cAAca,E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,EACDxB,EAAYsH,EAAAA,0CAAmBtH,EAAO8G,CAAY,EAClD,GAAI,CAAE,aAAcrB,CAAY,EAAS8B,EAAmBvH,EAAOwB,CAAK,EACxE,OAAyBmE,EAAc,cAAc,MAAO,CACxD,GAAGF,EACH,IAAKzF,EAAM,WACX,GAAGoH,EACH,MAAO,CACH,GAAGN,EAAa,MAChB,GAAGM,EAAY,KAC3B,EACQ,iBAAkBJ,GAAyD,OAC3E,gBAAiBE,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 +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-
|
|
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-BSOum_Vm.cjs.js"),z=require("../chunks/progress-bar-pMjw8h4h.cjs.js"),J=require("../chunks/range-calendar-13GVqWSL.cjs.js"),Q=require("../chunks/date-range-picker-Bvgghg-M.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
|
|
@@ -41,11 +41,11 @@ import { T as pr } from "../chunks/toggle-button-DhnBl8Gb.es.js";
|
|
|
41
41
|
import { T as nr, b as ir, a as xr } from "../chunks/toggle-button-group-BQfaNSZf.es.js";
|
|
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
|
-
import { D as cr } from "../chunks/date-picker-
|
|
45
|
-
import { P as br } from "../chunks/progress-bar-
|
|
44
|
+
import { D as cr } from "../chunks/date-picker-CrV9TJ_O.es.js";
|
|
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-ByLVQAiA.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-picker-
|
|
1
|
+
"use strict";const e=require("../chunks/date-picker-BSOum_Vm.cjs.js");exports.DatePicker=e.DatePicker;
|
|
2
2
|
//# sourceMappingURL=date-picker.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const e=require("../chunks/date-range-picker-
|
|
1
|
+
"use strict";const e=require("../chunks/date-range-picker-Bvgghg-M.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-BSOum_Vm.cjs.js"),Fe=require("./chunks/progress-bar-pMjw8h4h.cjs.js"),Pe=require("./chunks/range-calendar-13GVqWSL.cjs.js"),He=require("./chunks/date-range-picker-Bvgghg-M.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
|
@@ -42,11 +42,11 @@ import { T as Br } from "./chunks/toggle-button-DhnBl8Gb.es.js";
|
|
|
42
42
|
import { T as Hr, b as Fr, a as Or } from "./chunks/toggle-button-group-BQfaNSZf.es.js";
|
|
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
|
-
import { D as Vr } from "./chunks/date-picker-
|
|
46
|
-
import { P as Wr } from "./chunks/progress-bar-
|
|
45
|
+
import { D as Vr } from "./chunks/date-picker-CrV9TJ_O.es.js";
|
|
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-ByLVQAiA.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-20250812202252",
|
|
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-20250812202252",
|
|
89
|
+
"@commercetools/nimbus-tokens": "^0.0.0-canary-20250812202252"
|
|
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-20250812202252",
|
|
95
|
+
"@commercetools/nimbus-tokens": "^0.0.0-canary-20250812202252"
|
|
96
96
|
},
|
|
97
97
|
"scripts": {
|
|
98
98
|
"build": "pnpm run build-theme-typings && pnpm run build:lib",
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),$=require("@chakra-ui/react"),y=require("./date-picker.recipe-5Avb06qp.cjs.js"),m=require("@commercetools/nimbus-icons"),h=require("./DatePicker-Ch7j_XH3.cjs.js"),P=require("./Dialog-UM6kRwD8.cjs.js"),v=require("./Group-BQlSpW4r.cjs.js"),D=require("./extractStyleProps-lyk7D-zN.cjs.js"),g=require("./icon-button-BEaNe4rE.cjs.js"),q=require("./date-input-CGy4NHpW.cjs.js"),k=require("./calendar-CKVscUm-.cjs.js"),I=require("./text--fhvW47o.cjs.js"),R=require("./time-input-ByUOjN2R.cjs.js"),p=require("react"),T=require("./context-DURpz5en.cjs.js"),j=require("./Button-gAaN5cZZ.cjs.js"),S=require("./utils-sWqo2nmW.cjs.js"),E=require("./DateField-Bd9anPa4.cjs.js"),{withProvider:V,withContext:f}=$.createSlotRecipeContext({recipe:y.datePickerSlotRecipe}),z=V("div","root"),B=f("div","group"),w=f("div","trigger"),G=f("div","popover"),F=f("div","calendar"),O=({hideTimeZone:o,hourCycle:r})=>{const{locale:c}=T.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),i=p.useContext(h.$06d5b8ec9ee5d538$export$50a10c048fdcdee9),{granularity:a,dateValue:t}=i,n=p.useRef(null),l=p.useRef(t);return a==="day"?null:(p.useEffect(()=>{t&&l.current?.compare(t)!==0&&setTimeout(()=>{const d=n.current;if(d){const u=d.querySelector('[role="spinbutton"]');u&&u.focus()}},50),l.current=t},[t]),e.jsxs($.Flex,{ref:n,borderTop:"solid-25",borderColor:"neutral.3",py:"300",px:"400",alignItems:"center",justifyContent:"center",gap:"200",children:[e.jsx(I.Text,{textStyle:"xs",fontWeight:"500",color:"neutral.12",children:"Start time"}),e.jsx(R.TimeInput,{slot:"timeInput",locale:c,variant:"ghost",size:"sm",hideTimeZone:o,hourCycle:r})]}))},A=({children:o})=>{const r=S.$64fa3d84918910a7$export$fabf2dc03a41866e(j.$d2b4bc8c273e7be6$export$24d547caef80ccd1)||{},c=p.useContext(h.$06d5b8ec9ee5d538$export$50a10c048fdcdee9),i=c?.dateValue===null,{timeValue:a,setTimeValue:t,granularity:n}=c,l=r?.isDisabled,d=()=>{switch(n){case"hour":return"Enter time (hour)";case"minute":return"Enter time (hour and minute)";case"second":return"Enter time (hour, minute, and second)";default:return"Enter time"}},u={calendarToggle:{...r,onPress:s=>{const x=document?.activeElement;x&&x.blur(),r.onPress?.(s)}},clear:{onPress:()=>c?.setValue(null),"aria-label":"Clear input value",isDisabled:l,style:i?{display:"none"}:void 0,"aria-hidden":i?!0:void 0}},b={timeInput:{value:a,onChange:s=>{s!==null&&t(s)},granularity:n==="day"?void 0:n,"aria-label":d()}};return e.jsx(S.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[j.$d2b4bc8c273e7be6$export$24d547caef80ccd1,{slots:u}],[E.$40825cdb76e74f70$export$8e17ddc448e87c1e,{slots:b}]],children:o})},C=o=>{const{size:r="md",variant:c,granularity:i="day",hideTimeZone:a,hourCycle:t}=o,n=$.useSlotRecipe({recipe:y.datePickerSlotRecipe}),[l,d]=n.splitVariantProps(o),[u,b]=D.extractStyleProps(d),s=r==="md"?"xs":"2xs",x=i==="day"?o.shouldCloseOnSelect:!1;return e.jsx(z,{...l,...u,asChild:!0,children:e.jsx(h.$06d5b8ec9ee5d538$export$5109c6dd95d8fb00,{...b,shouldCloseOnSelect:x,children:e.jsxs(A,{children:[e.jsx(B,{asChild:!0,children:e.jsxs(v.$a049562f99e7db0e$export$eb2fcfdbd7ba97d4,{children:[e.jsx(q.DateInput,{size:r,variant:c,width:"full",hideTimeZone:a,hourCycle:t}),e.jsxs(w,{children:[e.jsx(g.IconButton,{tone:"primary",variant:"ghost",size:s,slot:"clear",children:e.jsx(m.Close,{})}),e.jsx(g.IconButton,{tone:"primary",variant:"ghost",size:s,slot:"calendarToggle",children:e.jsx(m.CalendarMonth,{})})]})]})}),e.jsx(G,{asChild:!0,children:e.jsx(P.$07b14b47974efb58$export$5b6b19405a83ff9d,{placement:"bottom end",children:e.jsxs(P.$de32f1b87079253c$export$3ddf2d174ce01153,{children:[e.jsx(F,{children:e.jsx(k.Calendar,{})}),e.jsx(O,{hideTimeZone:a,hourCycle:t})]})})})]})})})};C.displayName="DatePicker";exports.DatePicker=C;
|
|
2
|
-
//# sourceMappingURL=date-picker-BfA4uYkg.cjs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"date-picker-BfA4uYkg.cjs.js","sources":["../../src/components/date-picker/date-picker.slots.tsx","../../src/components/date-picker/components/date-picker.time-input.tsx","../../src/components/date-picker/components/date-picker.custom-context.tsx","../../src/components/date-picker/date-picker.tsx"],"sourcesContent":["import {\n type HTMLChakraProps,\n type RecipeProps,\n type UnstyledProp,\n createSlotRecipeContext,\n} from \"@chakra-ui/react\";\n\nimport { datePickerSlotRecipe } from \"./date-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 DatePickerRecipeProps 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 DatePickerRootProps\n extends HTMLChakraProps<\"div\", DatePickerRecipeProps> {}\n\n// Correctly destructure from createSlotRecipeContext based on project examples\nconst { withProvider, withContext } = createSlotRecipeContext({\n recipe: datePickerSlotRecipe,\n});\n\n/**\n * Root component that provides the styling context for the DatePicker component.\n * Uses Chakra UI's recipe context system for consistent styling across instances.\n */\nexport const DatePickerRootSlot = withProvider<\n HTMLDivElement,\n DatePickerRootProps\n>(\"div\", \"root\");\n\n/**\n * Slot component for the input group containing the DateInput and trigger button.\n */\nexport const DatePickerGroupSlot = 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 DatePickerTriggerSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"trigger\");\n\n/**\n * Slot component for the popover container.\n */\nexport const DatePickerPopoverSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"popover\");\n\n/**\n * Slot component for the calendar container within the popover.\n */\nexport const DatePickerCalendarSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"calendar\");\n\n/**\n * Slot component for the calendar header.\n */\nexport const DatePickerCalendarHeaderSlot = withContext<\n HTMLElement,\n HTMLChakraProps<\"header\">\n>(\"header\", \"calendarHeader\");\n\n/**\n * Slot component for the calendar grid.\n */\nexport const DatePickerCalendarGridSlot = withContext<\n HTMLTableElement,\n HTMLChakraProps<\"table\">\n>(\"table\", \"calendarGrid\");\n\n/**\n * Slot component for individual calendar cells.\n */\nexport const DatePickerCalendarCellSlot = 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 { DatePickerStateContext } from \"react-aria-components\";\nimport type { DatePickerTimeInputProps } from \"../date-picker.types\";\n\nexport const DatePickerTimeInput = ({\n hideTimeZone,\n hourCycle,\n}: DatePickerTimeInputProps) => {\n const { locale } = useLocale();\n const datePickerState = useContext(DatePickerStateContext);\n const { granularity, dateValue } = datePickerState!;\n const timeInputRef = useRef<HTMLDivElement>(null);\n const previousDateRef = useRef(dateValue);\n\n // do not show up to the party if you're not invited\n if (granularity === \"day\") {\n return null;\n }\n\n // Focus the time input when date changes (user selects a date from calendar)\n useEffect(() => {\n // Check if date changed\n if (dateValue && previousDateRef.current?.compare(dateValue) !== 0) {\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 previousDateRef.current = dateValue;\n }, [dateValue]);\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 {/* TODO: translate hardcoded string */}\n <Text textStyle=\"xs\" fontWeight=\"500\" color=\"neutral.12\">\n Start time\n </Text>\n <TimeInput\n slot=\"timeInput\"\n locale={locale}\n variant=\"ghost\"\n size=\"sm\"\n hideTimeZone={hideTimeZone}\n hourCycle={hourCycle}\n />\n </Flex>\n );\n};\n","import { useContext } from \"react\";\nimport {\n Provider,\n ButtonContext,\n DatePickerStateContext,\n TimeFieldContext,\n useSlottedContext,\n} from \"react-aria-components\";\nimport type { PressEvent, TimeValue } from \"react-aria\";\n\nexport const DatePickerCustomContext = ({\n children,\n}: {\n children: React.ReactNode;\n}) => {\n const buttonContext = useSlottedContext(ButtonContext) || {};\n const datePickerState = useContext(DatePickerStateContext);\n const noInputValue = datePickerState?.dateValue === null;\n\n // eslint-disable-next-line @typescript-eslint/unbound-method\n const { timeValue, setTimeValue, granularity } = datePickerState!;\n\n // Try to get disabled state from the button context\n const isDatePickerDisabled = buttonContext?.isDisabled;\n\n // Generate default aria-label based on granularity if not provided\n const getDefaultTimeInputAriaLabel = () => {\n switch (granularity) {\n case \"hour\":\n return \"Enter time (hour)\";\n case \"minute\":\n return \"Enter time (hour and minute)\";\n case \"second\":\n return \"Enter time (hour, minute, and second)\";\n default:\n return \"Enter 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 onPress: () => datePickerState?.setValue(null),\n \"aria-label\": \"Clear input value\",\n isDisabled: isDatePickerDisabled,\n // Hide the button when there's no value\n style: noInputValue ? { display: \"none\" } : undefined,\n \"aria-hidden\": noInputValue ? true : undefined,\n },\n };\n\n /**\n * TimeInput slots\n * ================================\n */\n\n const timeInputSlots = {\n timeInput: {\n value: timeValue,\n onChange: (value: TimeValue | null) => {\n if (value !== null) {\n setTimeValue(value);\n }\n },\n granularity: granularity === \"day\" ? undefined : granularity,\n \"aria-label\": getDefaultTimeInputAriaLabel(),\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 DatePickerRootSlot,\n DatePickerGroupSlot,\n DatePickerTriggerSlot,\n DatePickerPopoverSlot,\n DatePickerCalendarSlot,\n} from \"./date-picker.slots\";\n\nimport { CalendarMonth, Close } from \"@commercetools/nimbus-icons\";\n\nimport {\n DatePicker as ReactAriaDatePicker,\n Group,\n Popover,\n Dialog,\n} from \"react-aria-components\";\nimport { useSlotRecipe } from \"@chakra-ui/react\";\nimport { datePickerSlotRecipe } from \"./date-picker.recipe\";\nimport type { DatePickerProps } from \"./date-picker.types\";\nimport { extractStyleProps } from \"@/utils/extractStyleProps\";\nimport { DateInput, Calendar, IconButton } from \"@/components\";\nimport { DatePickerTimeInput } from \"./components/date-picker.time-input\";\nimport { DatePickerCustomContext } from \"./components/date-picker.custom-context\";\n\n/**\n * # DatePicker\n * \n * a UI component for users to enter or select a specific calendar date.\n * \n * @see {@link https://nimbus-documentation.vercel.app/components/inputs/datepicker}\n */\nexport const DatePicker = (props: DatePickerProps) => {\n const {\n size = \"md\",\n variant,\n granularity = \"day\",\n hideTimeZone,\n hourCycle,\n } = props;\n const recipe = useSlotRecipe({ recipe: datePickerSlotRecipe });\n const [recipeProps, remainingProps] = recipe.splitVariantProps(props);\n const [styleProps, otherProps] = extractStyleProps(remainingProps);\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 <DatePickerRootSlot {...recipeProps} {...styleProps} asChild>\n <ReactAriaDatePicker\n {...otherProps}\n shouldCloseOnSelect={shouldCloseOnSelect}\n >\n <DatePickerCustomContext>\n <DatePickerGroupSlot asChild>\n <Group>\n <DateInput\n size={size}\n variant={variant}\n width=\"full\"\n hideTimeZone={hideTimeZone}\n hourCycle={hourCycle}\n />\n <DatePickerTriggerSlot>\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 </DatePickerTriggerSlot>\n </Group>\n </DatePickerGroupSlot>\n <DatePickerPopoverSlot asChild>\n <Popover placement=\"bottom end\">\n <Dialog>\n <DatePickerCalendarSlot>\n <Calendar />\n </DatePickerCalendarSlot>\n <DatePickerTimeInput\n hideTimeZone={hideTimeZone}\n hourCycle={hourCycle}\n />\n </Dialog>\n </Popover>\n </DatePickerPopoverSlot>\n </DatePickerCustomContext>\n </ReactAriaDatePicker>\n </DatePickerRootSlot>\n );\n};\n\nDatePicker.displayName = \"DatePicker\";\n"],"names":["withProvider","withContext","createSlotRecipeContext","datePickerSlotRecipe","DatePickerRootSlot","DatePickerGroupSlot","DatePickerTriggerSlot","DatePickerPopoverSlot","DatePickerCalendarSlot","DatePickerTimeInput","hideTimeZone","hourCycle","locale","useLocale","datePickerState","useContext","DatePickerStateContext","granularity","dateValue","timeInputRef","useRef","previousDateRef","useEffect","container","firstSegment","jsxs","Flex","jsx","Text","TimeInput","DatePickerCustomContext","children","buttonContext","useSlottedContext","ButtonContext","noInputValue","timeValue","setTimeValue","isDatePickerDisabled","getDefaultTimeInputAriaLabel","buttonSlots","event","activeElement","timeInputSlots","value","Provider","TimeFieldContext","DatePicker","props","size","variant","recipe","useSlotRecipe","recipeProps","remainingProps","styleProps","otherProps","extractStyleProps","overlayButtonSize","shouldCloseOnSelect","ReactAriaDatePicker","Group","DateInput","IconButton","Close","CalendarMonth","Popover","Dialog","Calendar"],"mappings":"0sBAyBM,CAAE,aAAAA,EAAc,YAAAC,CAAA,EAAgBC,0BAAwB,CAC5D,OAAQC,EAAAA,oBACV,CAAC,EAMYC,EAAqBJ,EAGhC,MAAO,MAAM,EAKFK,EAAsBJ,EAGjC,MAAO,OAAO,EAKHK,EAAwBL,EAGnC,MAAO,SAAS,EAKLM,EAAwBN,EAGnC,MAAO,SAAS,EAKLO,EAAyBP,EAGpC,MAAO,UAAU,EC9DNQ,EAAsB,CAAC,CAClC,aAAAC,EACA,UAAAC,CACF,IAAgC,CAC9B,KAAM,CAAE,OAAAC,CAAA,EAAWC,4CAAA,EACbC,EAAkBC,EAAAA,WAAWC,2CAAsB,EACnD,CAAE,YAAAC,EAAa,UAAAC,CAAA,EAAcJ,EAC7BK,EAAeC,EAAAA,OAAuB,IAAI,EAC1CC,EAAkBD,EAAAA,OAAOF,CAAS,EAGx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AA,SAEDL,EAAA,CAEC,SAAA,CAAAqB,EAAAA,IAACoC,EAAAA,WAAA,CACC,KAAK,UACL,QAAQ,QACR,KAAML,EACN,KAAK,QAEL,eAACM,EAAAA,MAAA,CAAA,CAAM,CAAA,CAAA,EAGTrC,EAAAA,IAACoC,EAAAA,WAAA,CACC,KAAK,UACL,QAAQ,QACR,KAAML,EACN,KAAK,iBAEL,eAACO,EAAAA,cAAA,CAAA,CAAc,CAAA,CAAA,CACjB,CAAA,CACF,CAAA,CAAA,CACF,CAAA,CACF,EACAtC,EAAAA,IAACpB,GAAsB,QAAO,GAC5B,eAAC2D,EAAAA,0CAAA,CAAQ,UAAU,aACjB,SAAAzC,EAAAA,KAAC0C,EAAAA,0CAAA,CACC,SAAA,CAAAxC,EAAAA,IAACnB,EAAA,CACC,SAAAmB,EAAAA,IAACyC,EAAAA,SAAA,CAAA,CAAS,EACZ,EACAzC,EAAAA,IAAClB,EAAA,CACC,aAAAC,EACA,UAAAC,CAAA,CAAA,CACF,CAAA,CACF,EACF,CAAA,CACF,CAAA,CAAA,CACF,CAAA,CAAA,EAEJ,CAEJ,EAEAoC,EAAW,YAAc"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"date-picker-UO9jg5oK.es.js","sources":["../../src/components/date-picker/date-picker.slots.tsx","../../src/components/date-picker/components/date-picker.time-input.tsx","../../src/components/date-picker/components/date-picker.custom-context.tsx","../../src/components/date-picker/date-picker.tsx"],"sourcesContent":["import {\n type HTMLChakraProps,\n type RecipeProps,\n type UnstyledProp,\n createSlotRecipeContext,\n} from \"@chakra-ui/react\";\n\nimport { datePickerSlotRecipe } from \"./date-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 DatePickerRecipeProps 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 DatePickerRootProps\n extends HTMLChakraProps<\"div\", DatePickerRecipeProps> {}\n\n// Correctly destructure from createSlotRecipeContext based on project examples\nconst { withProvider, withContext } = createSlotRecipeContext({\n recipe: datePickerSlotRecipe,\n});\n\n/**\n * Root component that provides the styling context for the DatePicker component.\n * Uses Chakra UI's recipe context system for consistent styling across instances.\n */\nexport const DatePickerRootSlot = withProvider<\n HTMLDivElement,\n DatePickerRootProps\n>(\"div\", \"root\");\n\n/**\n * Slot component for the input group containing the DateInput and trigger button.\n */\nexport const DatePickerGroupSlot = 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 DatePickerTriggerSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"trigger\");\n\n/**\n * Slot component for the popover container.\n */\nexport const DatePickerPopoverSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"popover\");\n\n/**\n * Slot component for the calendar container within the popover.\n */\nexport const DatePickerCalendarSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"calendar\");\n\n/**\n * Slot component for the calendar header.\n */\nexport const DatePickerCalendarHeaderSlot = withContext<\n HTMLElement,\n HTMLChakraProps<\"header\">\n>(\"header\", \"calendarHeader\");\n\n/**\n * Slot component for the calendar grid.\n */\nexport const DatePickerCalendarGridSlot = withContext<\n HTMLTableElement,\n HTMLChakraProps<\"table\">\n>(\"table\", \"calendarGrid\");\n\n/**\n * Slot component for individual calendar cells.\n */\nexport const DatePickerCalendarCellSlot = 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 { DatePickerStateContext } from \"react-aria-components\";\nimport type { DatePickerTimeInputProps } from \"../date-picker.types\";\n\nexport const DatePickerTimeInput = ({\n hideTimeZone,\n hourCycle,\n}: DatePickerTimeInputProps) => {\n const { locale } = useLocale();\n const datePickerState = useContext(DatePickerStateContext);\n const { granularity, dateValue } = datePickerState!;\n const timeInputRef = useRef<HTMLDivElement>(null);\n const previousDateRef = useRef(dateValue);\n\n // do not show up to the party if you're not invited\n if (granularity === \"day\") {\n return null;\n }\n\n // Focus the time input when date changes (user selects a date from calendar)\n useEffect(() => {\n // Check if date changed\n if (dateValue && previousDateRef.current?.compare(dateValue) !== 0) {\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 previousDateRef.current = dateValue;\n }, [dateValue]);\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 {/* TODO: translate hardcoded string */}\n <Text textStyle=\"xs\" fontWeight=\"500\" color=\"neutral.12\">\n Start time\n </Text>\n <TimeInput\n slot=\"timeInput\"\n locale={locale}\n variant=\"ghost\"\n size=\"sm\"\n hideTimeZone={hideTimeZone}\n hourCycle={hourCycle}\n />\n </Flex>\n );\n};\n","import { useContext } from \"react\";\nimport {\n Provider,\n ButtonContext,\n DatePickerStateContext,\n TimeFieldContext,\n useSlottedContext,\n} from \"react-aria-components\";\nimport type { PressEvent, TimeValue } from \"react-aria\";\n\nexport const DatePickerCustomContext = ({\n children,\n}: {\n children: React.ReactNode;\n}) => {\n const buttonContext = useSlottedContext(ButtonContext) || {};\n const datePickerState = useContext(DatePickerStateContext);\n const noInputValue = datePickerState?.dateValue === null;\n\n // eslint-disable-next-line @typescript-eslint/unbound-method\n const { timeValue, setTimeValue, granularity } = datePickerState!;\n\n // Try to get disabled state from the button context\n const isDatePickerDisabled = buttonContext?.isDisabled;\n\n // Generate default aria-label based on granularity if not provided\n const getDefaultTimeInputAriaLabel = () => {\n switch (granularity) {\n case \"hour\":\n return \"Enter time (hour)\";\n case \"minute\":\n return \"Enter time (hour and minute)\";\n case \"second\":\n return \"Enter time (hour, minute, and second)\";\n default:\n return \"Enter 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 onPress: () => datePickerState?.setValue(null),\n \"aria-label\": \"Clear input value\",\n isDisabled: isDatePickerDisabled,\n // Hide the button when there's no value\n style: noInputValue ? { display: \"none\" } : undefined,\n \"aria-hidden\": noInputValue ? true : undefined,\n },\n };\n\n /**\n * TimeInput slots\n * ================================\n */\n\n const timeInputSlots = {\n timeInput: {\n value: timeValue,\n onChange: (value: TimeValue | null) => {\n if (value !== null) {\n setTimeValue(value);\n }\n },\n granularity: granularity === \"day\" ? undefined : granularity,\n \"aria-label\": getDefaultTimeInputAriaLabel(),\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 DatePickerRootSlot,\n DatePickerGroupSlot,\n DatePickerTriggerSlot,\n DatePickerPopoverSlot,\n DatePickerCalendarSlot,\n} from \"./date-picker.slots\";\n\nimport { CalendarMonth, Close } from \"@commercetools/nimbus-icons\";\n\nimport {\n DatePicker as ReactAriaDatePicker,\n Group,\n Popover,\n Dialog,\n} from \"react-aria-components\";\nimport { useSlotRecipe } from \"@chakra-ui/react\";\nimport { datePickerSlotRecipe } from \"./date-picker.recipe\";\nimport type { DatePickerProps } from \"./date-picker.types\";\nimport { extractStyleProps } from \"@/utils/extractStyleProps\";\nimport { DateInput, Calendar, IconButton } from \"@/components\";\nimport { DatePickerTimeInput } from \"./components/date-picker.time-input\";\nimport { DatePickerCustomContext } from \"./components/date-picker.custom-context\";\n\n/**\n * # DatePicker\n * \n * a UI component for users to enter or select a specific calendar date.\n * \n * @see {@link https://nimbus-documentation.vercel.app/components/inputs/datepicker}\n */\nexport const DatePicker = (props: DatePickerProps) => {\n const {\n size = \"md\",\n variant,\n granularity = \"day\",\n hideTimeZone,\n hourCycle,\n } = props;\n const recipe = useSlotRecipe({ recipe: datePickerSlotRecipe });\n const [recipeProps, remainingProps] = recipe.splitVariantProps(props);\n const [styleProps, otherProps] = extractStyleProps(remainingProps);\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 <DatePickerRootSlot {...recipeProps} {...styleProps} asChild>\n <ReactAriaDatePicker\n {...otherProps}\n shouldCloseOnSelect={shouldCloseOnSelect}\n >\n <DatePickerCustomContext>\n <DatePickerGroupSlot asChild>\n <Group>\n <DateInput\n size={size}\n variant={variant}\n width=\"full\"\n hideTimeZone={hideTimeZone}\n hourCycle={hourCycle}\n />\n <DatePickerTriggerSlot>\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 </DatePickerTriggerSlot>\n </Group>\n </DatePickerGroupSlot>\n <DatePickerPopoverSlot asChild>\n <Popover placement=\"bottom end\">\n <Dialog>\n <DatePickerCalendarSlot>\n <Calendar />\n </DatePickerCalendarSlot>\n <DatePickerTimeInput\n hideTimeZone={hideTimeZone}\n hourCycle={hourCycle}\n />\n </Dialog>\n </Popover>\n </DatePickerPopoverSlot>\n </DatePickerCustomContext>\n </ReactAriaDatePicker>\n </DatePickerRootSlot>\n );\n};\n\nDatePicker.displayName = \"DatePicker\";\n"],"names":["withProvider","withContext","createSlotRecipeContext","datePickerSlotRecipe","DatePickerRootSlot","DatePickerGroupSlot","DatePickerTriggerSlot","DatePickerPopoverSlot","DatePickerCalendarSlot","DatePickerTimeInput","hideTimeZone","hourCycle","locale","useLocale","datePickerState","useContext","DatePickerStateContext","granularity","dateValue","timeInputRef","useRef","previousDateRef","useEffect","container","firstSegment","jsxs","Flex","jsx","Text","TimeInput","DatePickerCustomContext","children","buttonContext","useSlottedContext","ButtonContext","noInputValue","timeValue","setTimeValue","isDatePickerDisabled","getDefaultTimeInputAriaLabel","buttonSlots","event","activeElement","timeInputSlots","value","Provider","TimeFieldContext","DatePicker","props","size","variant","recipe","useSlotRecipe","recipeProps","remainingProps","styleProps","otherProps","extractStyleProps","overlayButtonSize","shouldCloseOnSelect","ReactAriaDatePicker","Group","DateInput","IconButton","Close","CalendarMonth","Popover","Dialog","Calendar"],"mappings":";;;;;;;;;;;;;;;;;;AAyBA,MAAM,EAAE,cAAAA,GAAc,aAAAC,EAAA,IAAgB,gBAAAC,EAAwB;AAAA,EAC5D,QAAQC;AACV,CAAC,GAMYC,IAAqB,gBAAAJ,EAGhC,OAAO,MAAM,GAKFK,IAAsB,gBAAAJ,EAGjC,OAAO,OAAO,GAKHK,IAAwB,gBAAAL,EAGnC,OAAO,SAAS,GAKLM,IAAwB,gBAAAN,EAGn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