lizaui 12.0.20 → 12.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/button-group/index.es.js +2 -2
- package/dist/button-v2/index.cjs.js +1 -1
- package/dist/button-v2/index.es.js +3 -3
- package/dist/chunks/{Button-DdtCMsXJ.js → Button-Bumy9bze.js} +6 -55
- package/dist/chunks/Button-Bumy9bze.js.map +1 -0
- package/dist/chunks/{Button-B-wLEikV.js → Button-CFYOfByw.js} +9 -58
- package/dist/chunks/Button-CFYOfByw.js.map +1 -0
- package/dist/chunks/{FocusScope-Txa6B8J4.js → FocusScope-4TdD5fCA.js} +2 -2
- package/dist/chunks/{FocusScope-Txa6B8J4.js.map → FocusScope-4TdD5fCA.js.map} +1 -1
- package/dist/chunks/{FocusScope-BVEv8CgQ.js → FocusScope-jSNMAXzg.js} +3 -3
- package/dist/chunks/{FocusScope-BVEv8CgQ.js.map → FocusScope-jSNMAXzg.js.map} +1 -1
- package/dist/chunks/Hidden-BY45Dc0j.js +54 -0
- package/dist/chunks/Hidden-BY45Dc0j.js.map +1 -0
- package/dist/chunks/Hidden-C55DpjMP.js +55 -0
- package/dist/chunks/Hidden-C55DpjMP.js.map +1 -0
- package/dist/chunks/{I18nProvider-Dfr8Km7j.js → I18nProvider-Coj9x7B8.js} +2 -2
- package/dist/chunks/{I18nProvider-Dfr8Km7j.js.map → I18nProvider-Coj9x7B8.js.map} +1 -1
- package/dist/chunks/{ProgressBar-D0THM7Dn.js → ProgressBar-542C1mif.js} +5 -5
- package/dist/chunks/{ProgressBar-D0THM7Dn.js.map → ProgressBar-542C1mif.js.map} +1 -1
- package/dist/chunks/{ProgressBar-BPfa9vzz.js → ProgressBar-BiKRsJ8m.js} +3 -3
- package/dist/chunks/{ProgressBar-BPfa9vzz.js.map → ProgressBar-BiKRsJ8m.js.map} +1 -1
- package/dist/chunks/SharedElementTransition-BSCoaphV.js +106 -0
- package/dist/chunks/{SharedElementTransition-D87oSBzB.js.map → SharedElementTransition-BSCoaphV.js.map} +1 -1
- package/dist/chunks/SharedElementTransition-CJVe1D_I.js +107 -0
- package/dist/chunks/{SharedElementTransition-BxczX23g.js.map → SharedElementTransition-CJVe1D_I.js.map} +1 -1
- package/dist/chunks/{VisuallyHidden-CiBoSB1U.js → VisuallyHidden-CTe1-RoI.js} +3 -39
- package/dist/chunks/VisuallyHidden-CTe1-RoI.js.map +1 -0
- package/dist/chunks/VisuallyHidden-DPJuOMsW.js +50 -0
- package/dist/chunks/VisuallyHidden-DPJuOMsW.js.map +1 -0
- package/dist/chunks/{button-group-CGyXDmwt.js → button-group-DJ5IdBp6.js} +2 -2
- package/dist/chunks/{button-group-CGyXDmwt.js.map → button-group-DJ5IdBp6.js.map} +1 -1
- package/dist/chunks/{compose-Ch-3fhek.js → compose-DOOi0Yan.js} +2 -2
- package/dist/chunks/{compose-Ch-3fhek.js.map → compose-DOOi0Yan.js.map} +1 -1
- package/dist/chunks/{focusSafely-Cxp4n3zg.js → focusSafely-CKxVSn6H.js} +39 -1
- package/dist/chunks/{focusSafely-Cxp4n3zg.js.map → focusSafely-CKxVSn6H.js.map} +1 -1
- package/dist/chunks/{focusSafely--u_yGz_7.js → focusSafely-DfEgLKh6.js} +46 -8
- package/dist/chunks/{focusSafely--u_yGz_7.js.map → focusSafely-DfEgLKh6.js.map} +1 -1
- package/dist/chunks/{number-DigQ78uS.js → number-CYgYWykt.js} +2 -2
- package/dist/chunks/{number-DigQ78uS.js.map → number-CYgYWykt.js.map} +1 -1
- package/dist/chunks/{radio-group-4o00BMkw.js → radio-group-BwXvYzSm.js} +14 -13
- package/dist/chunks/{radio-group-4o00BMkw.js.map → radio-group-BwXvYzSm.js.map} +1 -1
- package/dist/chunks/{radio-group-voOEmmYI.js → radio-group-hO2beGF6.js} +12 -11
- package/dist/chunks/{radio-group-voOEmmYI.js.map → radio-group-hO2beGF6.js.map} +1 -1
- package/dist/chunks/useControlledState-DE_m1RML.js +39 -0
- package/dist/chunks/useControlledState-DE_m1RML.js.map +1 -0
- package/dist/chunks/useControlledState-DZA25XHU.js +40 -0
- package/dist/chunks/useControlledState-DZA25XHU.js.map +1 -0
- package/dist/chunks/{useFormReset-BL4MH85g.js → useFormReset-BYRGk5vb.js} +2 -2
- package/dist/chunks/{useFormReset-BL4MH85g.js.map → useFormReset-BYRGk5vb.js.map} +1 -1
- package/dist/chunks/{useFormReset-YYNrlE-8.js → useFormReset-Bgv2ktIE.js} +2 -2
- package/dist/chunks/{useFormReset-YYNrlE-8.js.map → useFormReset-Bgv2ktIE.js.map} +1 -1
- package/dist/chunks/useHasTabbableChild-CSJ0P5QT.js +2577 -0
- package/dist/chunks/useHasTabbableChild-CSJ0P5QT.js.map +1 -0
- package/dist/chunks/useHasTabbableChild-kl2T5gEX.js +2576 -0
- package/dist/chunks/useHasTabbableChild-kl2T5gEX.js.map +1 -0
- package/dist/chunks/{useHover-_Q7y99al.js → useHover-BHCSbkLb.js} +3 -3
- package/dist/chunks/{useHover-_Q7y99al.js.map → useHover-BHCSbkLb.js.map} +1 -1
- package/dist/chunks/{useHover-COOv7KTv.js → useHover-D9f9xyxz.js} +2 -2
- package/dist/chunks/{useHover-COOv7KTv.js.map → useHover-D9f9xyxz.js.map} +1 -1
- package/dist/chunks/{useLabel-DjFU7E9u.js → useLabel-CzhH-Tov.js} +3 -22
- package/dist/chunks/useLabel-CzhH-Tov.js.map +1 -0
- package/dist/chunks/{useLabel-DgF69V6e.js → useLabel-YLbDMN-c.js} +4 -23
- package/dist/chunks/useLabel-YLbDMN-c.js.map +1 -0
- package/dist/chunks/useLabels-BiXnWBSL.js +23 -0
- package/dist/chunks/useLabels-BiXnWBSL.js.map +1 -0
- package/dist/chunks/useLabels-Bl0mJafM.js +24 -0
- package/dist/chunks/useLabels-Bl0mJafM.js.map +1 -0
- package/dist/chunks/{useMove-KCXqjWm-.js → useMove-DeuS9PRx.js} +3 -3
- package/dist/chunks/{useMove-KCXqjWm-.js.map → useMove-DeuS9PRx.js.map} +1 -1
- package/dist/chunks/{useMove-D5nRSeRO.js → useMove-Xpbmb6OD.js} +3 -3
- package/dist/chunks/{useMove-D5nRSeRO.js.map → useMove-Xpbmb6OD.js.map} +1 -1
- package/dist/chunks/{usePress-BnXPCNhr.js → usePress-Arf10jW0.js} +4 -4
- package/dist/chunks/{usePress-BnXPCNhr.js.map → usePress-Arf10jW0.js.map} +1 -1
- package/dist/chunks/{usePress-4yjnfhQ_.js → usePress-B1yQk_p8.js} +3 -3
- package/dist/chunks/{usePress-4yjnfhQ_.js.map → usePress-B1yQk_p8.js.map} +1 -1
- package/dist/chunks/{useProgressBar-DJZIQMyS.js → useProgressBar-BsO-Q5JP.js} +2 -2
- package/dist/chunks/{useProgressBar-DJZIQMyS.js.map → useProgressBar-BsO-Q5JP.js.map} +1 -1
- package/dist/chunks/{useProgressBar-D2OaXApL.js → useProgressBar-d2k0k8r0.js} +4 -4
- package/dist/chunks/{useProgressBar-D2OaXApL.js.map → useProgressBar-d2k0k8r0.js.map} +1 -1
- package/dist/chunks/{useSlot-CEcR5EcL.js → useSlot-CFaaZeQE.js} +4 -4
- package/dist/chunks/{useSlot-CEcR5EcL.js.map → useSlot-CFaaZeQE.js.map} +1 -1
- package/dist/chunks/{useSlot-YqT3Ml-j.js → useSlot-TNtJf1z8.js} +3 -3
- package/dist/chunks/{useSlot-YqT3Ml-j.js.map → useSlot-TNtJf1z8.js.map} +1 -1
- package/dist/chunks/{utils-B3shU_E6.js → utils-BCEhcDlv.js} +6 -6
- package/dist/chunks/{utils-B3shU_E6.js.map → utils-BCEhcDlv.js.map} +1 -1
- package/dist/components/icons/icons.d.ts +20 -0
- package/dist/components/icons/icons.d.ts.map +1 -0
- package/dist/components/tabs/index.d.ts +26 -0
- package/dist/components/tabs/index.d.ts.map +1 -0
- package/dist/components/tabs/tabs.d.ts +40 -0
- package/dist/components/tabs/tabs.d.ts.map +1 -0
- package/dist/components/tabs/tabs.styles.d.ts +87 -0
- package/dist/components/tabs/tabs.styles.d.ts.map +1 -0
- package/dist/data-table/index.cjs.js +293 -2810
- package/dist/data-table/index.cjs.js.map +1 -1
- package/dist/data-table/index.es.js +207 -2724
- package/dist/data-table/index.es.js.map +1 -1
- package/dist/index.cjs.js +2 -2
- package/dist/index.es.js +3 -3
- package/dist/lib/utils/assertion.d.ts +10 -0
- package/dist/lib/utils/assertion.d.ts.map +1 -0
- package/dist/lib/utils/class-name.d.ts +8 -0
- package/dist/lib/utils/class-name.d.ts.map +1 -0
- package/dist/lib/utils/cn.d.ts +23 -0
- package/dist/lib/utils/cn.d.ts.map +1 -0
- package/dist/lib/utils/collection-prop-injection.d.ts +32 -0
- package/dist/lib/utils/collection-prop-injection.d.ts.map +1 -0
- package/dist/lib/utils/compose.d.ts +8 -0
- package/dist/lib/utils/compose.d.ts.map +1 -0
- package/dist/lib/utils/dom.d.ts +22 -0
- package/dist/lib/utils/dom.d.ts.map +1 -0
- package/dist/lib/utils/field-slots-gate.d.ts +10 -0
- package/dist/lib/utils/field-slots-gate.d.ts.map +1 -0
- package/dist/lib/utils/logger.d.ts +24 -0
- package/dist/lib/utils/logger.d.ts.map +1 -0
- package/dist/lib/utils/normalize.d.ts +6 -0
- package/dist/lib/utils/normalize.d.ts.map +1 -0
- package/dist/lib/utils/use-has-text-slot.d.ts +14 -0
- package/dist/lib/utils/use-has-text-slot.d.ts.map +1 -0
- package/dist/lizaui.css +458 -0
- package/dist/meter/index.cjs.js +2 -2
- package/dist/meter/index.es.js +4 -4
- package/dist/progress-bar/index.cjs.js +1 -1
- package/dist/progress-bar/index.es.js +2 -2
- package/dist/radio/index.cjs.js +1 -1
- package/dist/radio/index.es.js +2 -2
- package/dist/radio-group/index.cjs.js +1 -1
- package/dist/radio-group/index.es.js +2 -2
- package/dist/slider/index.cjs.js +8 -7
- package/dist/slider/index.cjs.js.map +1 -1
- package/dist/slider/index.es.js +10 -9
- package/dist/slider/index.es.js.map +1 -1
- package/dist/tabs/index.cjs.js +1400 -0
- package/dist/tabs/index.cjs.js.map +1 -0
- package/dist/tabs/index.es.js +1400 -0
- package/dist/tabs/index.es.js.map +1 -0
- package/dist/tabs.d.ts +2 -0
- package/dist/toggle-switch/index.cjs.js +8 -7
- package/dist/toggle-switch/index.cjs.js.map +1 -1
- package/dist/toggle-switch/index.es.js +8 -7
- package/dist/toggle-switch/index.es.js.map +1 -1
- package/dist/toolbar/index.cjs.js +2 -2
- package/dist/toolbar/index.es.js +4 -4
- package/package.json +6 -1
- package/dist/chunks/Button-B-wLEikV.js.map +0 -1
- package/dist/chunks/Button-DdtCMsXJ.js.map +0 -1
- package/dist/chunks/SharedElementTransition-BxczX23g.js +0 -12
- package/dist/chunks/SharedElementTransition-D87oSBzB.js +0 -13
- package/dist/chunks/VisuallyHidden-CiBoSB1U.js.map +0 -1
- package/dist/chunks/VisuallyHidden-paROiuP0.js +0 -86
- package/dist/chunks/VisuallyHidden-paROiuP0.js.map +0 -1
- package/dist/chunks/useLabel-DgF69V6e.js.map +0 -1
- package/dist/chunks/useLabel-DjFU7E9u.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es.js","sources":["../../node_modules/.pnpm/react-aria@3.53.0_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-aria/dist/private/toggle/useToggle.mjs","../../node_modules/.pnpm/react-stately@3.51.0_react@19.3.0/node_modules/react-stately/dist/private/toggle/useToggleState.mjs","../../node_modules/.pnpm/react-aria@3.53.0_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-aria/dist/private/switch/useSwitch.mjs","../../node_modules/.pnpm/react-aria-components@1.22.0_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-aria-components/dist/private/Switch.mjs","../../src/components/toggle-switch/toggle-switch.tsx","../../src/components/toggle-switch/index.ts"],"sourcesContent":["import {filterDOMProps as $8e9d2fae0ecb9001$export$457c3d6518dd4c6f} from \"../utils/filterDOMProps.mjs\";\nimport {getEventTarget as $23f2114a1b82827e$export$e58f029f0fbfdb29} from \"../utils/shadowdom/DOMFunctions.mjs\";\nimport {mergeProps as $bbaa08b3cd72f041$export$9d1611c77c2fe928} from \"../utils/mergeProps.mjs\";\nimport {useFocusable as $d1116acdf220c2da$export$4c014de7c8940b4c} from \"../interactions/useFocusable.mjs\";\nimport {useFormReset as $3274bf1495747a7b$export$5add1d006293d136} from \"../utils/useFormReset.mjs\";\nimport {useFormValidation as $860f7da480e22816$export$b8473d3665f3a75a} from \"../form/useFormValidation.mjs\";\nimport {usePress as $d27d541f9569d26d$export$45712eceda6fad21} from \"../interactions/usePress.mjs\";\nimport {useSlotId2 as $4c14b02d5228be26$export$ed2feabec4a533f4} from \"../utils/useSlot.mjs\";\nimport {useState as $jQnU8$useState} from \"react\";\nimport {useFormValidationState as $jQnU8$useFormValidationState, privateValidationStateProp as $jQnU8$privateValidationStateProp} from \"react-stately/private/form/useFormValidationState\";\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\n\n\n\n\n\n\nfunction $876b6f32ca5a04c3$export$cbe85ee05b554577(props, state, ref) {\n let { isDisabled: isDisabled = false, isReadOnly: isReadOnly = false, value: value, name: name, form: form, children: children, isRequired: isRequired, validationBehavior: validationBehavior = 'aria', 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledby, 'aria-describedby': ariaDescribedby, onPressStart: onPressStart, onPressEnd: onPressEnd, onPressChange: onPressChange, onPress: onPress, onPressUp: onPressUp, onClick: onClick } = props;\n // Create validation state here because it doesn't make sense to add to general useToggleState.\n let validationState = (0, $jQnU8$useFormValidationState)({\n ...props,\n value: state.isSelected\n });\n let { isInvalid: isInvalid, validationErrors: validationErrors, validationDetails: validationDetails } = validationState.displayValidation;\n (0, $860f7da480e22816$export$b8473d3665f3a75a)(props, validationState, ref);\n let onChange = (e)=>{\n // since we spread props on label, onChange will end up there as well as in here.\n // so we have to stop propagation at the lowest level that we care about\n e.stopPropagation();\n state.setSelected((0, $23f2114a1b82827e$export$e58f029f0fbfdb29)(e).checked);\n };\n let hasChildren = children != null;\n let hasAriaLabel = ariaLabel != null || ariaLabelledby != null;\n if (!hasChildren && !hasAriaLabel && process.env.NODE_ENV !== 'production') console.warn('If you do not provide children, you must specify an aria-label for accessibility');\n // Handle press state for keyboard interactions and cases where labelProps is not used.\n let { pressProps: pressProps, isPressed: isPressed } = (0, $d27d541f9569d26d$export$45712eceda6fad21)({\n onPressStart: onPressStart,\n onPressEnd: onPressEnd,\n onPressChange: onPressChange,\n onPress: onPress,\n onPressUp: onPressUp,\n onClick: onClick,\n isDisabled: isDisabled\n });\n // Handle press state on the label.\n let [isLabelPressed, setLabelPressed] = (0, $jQnU8$useState)(false);\n let { pressProps: labelProps } = (0, $d27d541f9569d26d$export$45712eceda6fad21)({\n onPressStart (e) {\n // Keyboard interactions are handled directly on the input.\n if (e.pointerType === 'keyboard' || e.pointerType === 'virtual') {\n e.continuePropagation();\n return;\n }\n onPressStart?.(e);\n onPressChange?.(true);\n setLabelPressed(true);\n },\n onPressEnd (e) {\n // Keyboard interactions are handled directly on the input.\n if (e.pointerType === 'keyboard' || e.pointerType === 'virtual') {\n e.continuePropagation();\n return;\n }\n onPressEnd?.(e);\n onPressChange?.(false);\n setLabelPressed(false);\n },\n onPressUp (e) {\n if (e.pointerType === 'keyboard' || e.pointerType === 'virtual') {\n e.continuePropagation();\n return;\n }\n onPressUp?.(e);\n },\n onClick: onClick,\n onPress (e) {\n if (e.pointerType === 'keyboard' || e.pointerType === 'virtual') {\n e.continuePropagation();\n return;\n }\n onPress?.(e);\n state.toggle();\n ref.current?.focus();\n // @ts-expect-error\n let { [(0, $jQnU8$privateValidationStateProp)]: groupValidationState } = props;\n // oxlint-disable-next-line react/react-compiler\n let { commitValidation: commitValidation } = groupValidationState ? groupValidationState : validationState;\n commitValidation();\n },\n isDisabled: isDisabled || isReadOnly\n });\n let { focusableProps: focusableProps } = (0, $d1116acdf220c2da$export$4c014de7c8940b4c)(props, ref);\n let interactions = (0, $bbaa08b3cd72f041$export$9d1611c77c2fe928)(pressProps, focusableProps);\n let domProps = (0, $8e9d2fae0ecb9001$export$457c3d6518dd4c6f)(props, {\n labelable: true\n });\n (0, $3274bf1495747a7b$export$5add1d006293d136)(ref, state.defaultSelected, state.setSelected);\n // Copied from useField because we don't want the label behavior that provides.\n let descriptionProps = (0, $4c14b02d5228be26$export$ed2feabec4a533f4)();\n let errorMessageProps = (0, $4c14b02d5228be26$export$ed2feabec4a533f4)();\n return {\n labelProps: (0, $bbaa08b3cd72f041$export$9d1611c77c2fe928)(labelProps, {\n onClick: (e)=>e.preventDefault()\n }),\n inputProps: (0, $bbaa08b3cd72f041$export$9d1611c77c2fe928)(domProps, {\n checked: state.isSelected,\n 'aria-required': isRequired && validationBehavior === 'aria' || undefined,\n required: isRequired && validationBehavior === 'native',\n 'aria-invalid': isInvalid || props.validationState === 'invalid' || undefined,\n 'aria-errormessage': props['aria-errormessage'],\n 'aria-controls': props['aria-controls'],\n 'aria-readonly': isReadOnly || undefined,\n 'aria-describedby': [\n descriptionProps.id,\n errorMessageProps.id,\n ariaDescribedby\n ].filter(Boolean).join(' ') || undefined,\n onChange: onChange,\n disabled: isDisabled,\n ...value == null ? {} : {\n value: value\n },\n name: name,\n form: form,\n type: 'checkbox',\n ...interactions\n }),\n descriptionProps: descriptionProps,\n errorMessageProps: errorMessageProps,\n isSelected: state.isSelected,\n isPressed: isPressed || isLabelPressed,\n isDisabled: isDisabled,\n isReadOnly: isReadOnly,\n isInvalid: isInvalid || props.validationState === 'invalid',\n validationErrors: validationErrors,\n validationDetails: validationDetails\n };\n}\n\n\nexport {$876b6f32ca5a04c3$export$cbe85ee05b554577 as useToggle};\n//# sourceMappingURL=useToggle.mjs.map\n","import {useControlledState as $3e6197669829fe11$export$40bfa8c7b0832715} from \"../utils/useControlledState.mjs\";\nimport {useState as $dAajM$useState} 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\nfunction $fd3c5e01e837dc20$export$8042c6c013fd5226(props = {}) {\n let { isReadOnly: isReadOnly } = props;\n // have to provide an empty function so useControlledState doesn't throw a fit\n // can't use useControlledState's prop calling because we need the event object from the change\n let [isSelected, setSelected] = (0, $3e6197669829fe11$export$40bfa8c7b0832715)(props.isSelected, props.defaultSelected || false, props.onChange);\n let [initialValue] = (0, $dAajM$useState)(isSelected);\n function updateSelected(value) {\n if (!isReadOnly) setSelected(value);\n }\n function toggleState() {\n if (!isReadOnly) setSelected(!isSelected);\n }\n return {\n isSelected: isSelected,\n defaultSelected: props.defaultSelected ?? initialValue,\n setSelected: updateSelected,\n toggle: toggleState\n };\n}\n\n\nexport {$fd3c5e01e837dc20$export$8042c6c013fd5226 as useToggleState};\n//# sourceMappingURL=useToggleState.mjs.map\n","import {useToggle as $876b6f32ca5a04c3$export$cbe85ee05b554577} from \"../toggle/useToggle.mjs\";\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 */ \nfunction $08312b2089c5b722$export$d853f7095ae95f88(props, state, ref) {\n let { labelProps: labelProps, inputProps: inputProps, isSelected: isSelected, ...states } = (0, $876b6f32ca5a04c3$export$cbe85ee05b554577)(props, state, ref);\n return {\n labelProps: labelProps,\n inputProps: {\n ...inputProps,\n role: 'switch',\n checked: isSelected\n },\n isSelected: isSelected,\n ...states\n };\n}\n\n\nexport {$08312b2089c5b722$export$d853f7095ae95f88 as useSwitch};\n//# sourceMappingURL=useSwitch.mjs.map\n","import {dom as $7230ffa83bc0c2cf$export$df3a06d6289f983e, Provider as $7230ffa83bc0c2cf$export$2881499e37b75b9a, removeDataAttributes as $7230ffa83bc0c2cf$export$ef03459518577ad4, useContextProps as $7230ffa83bc0c2cf$export$29f1550f4b0d4415, useRenderProps as $7230ffa83bc0c2cf$export$4d86445c2cf5e3, useSlottedContext as $7230ffa83bc0c2cf$export$fabf2dc03a41866e} from \"./utils.mjs\";\nimport {FieldErrorContext as $1f3c3b1a70cec653$export$ff05c3ac10437e03} from \"./FieldError.mjs\";\nimport {FormContext as $cdaed739b1139372$export$c24727297075ec6a} from \"./Form.mjs\";\nimport {TextContext as $efe09c6d1c304b50$export$9afb8bc826b033ea} from \"./Text.mjs\";\nimport {useSwitch as $kf3DM$useSwitch} from \"react-aria/useSwitch\";\nimport {filterDOMProps as $kf3DM$filterDOMProps} from \"react-aria/filterDOMProps\";\nimport {mergeProps as $kf3DM$mergeProps} from \"react-aria/mergeProps\";\nimport {mergeRefs as $kf3DM$mergeRefs} from \"react-aria/mergeRefs\";\nimport $kf3DM$react, {createContext as $kf3DM$createContext, forwardRef as $kf3DM$forwardRef, useMemo as $kf3DM$useMemo, useContext as $kf3DM$useContext} from \"react\";\nimport {useToggleState as $kf3DM$useToggleState} from \"react-stately/useToggleState\";\nimport {useFocusRing as $kf3DM$useFocusRing} from \"react-aria/useFocusRing\";\nimport {useHover as $kf3DM$useHover} from \"react-aria/useHover\";\nimport {useObjectRef as $kf3DM$useObjectRef} from \"react-aria/useObjectRef\";\nimport {VisuallyHidden as $kf3DM$VisuallyHidden} from \"react-aria/VisuallyHidden\";\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\n\n\n\n\n\n\n\nconst $24585aa46d6ffdff$export$8699e3b644d5a28a = /*#__PURE__*/ (0, $kf3DM$createContext)(null);\nconst $24585aa46d6ffdff$export$3e1405298f0cafda = /*#__PURE__*/ (0, $kf3DM$createContext)(null);\nconst $24585aa46d6ffdff$export$5cc1518e1ec171c = /*#__PURE__*/ (0, $kf3DM$createContext)(null);\nconst $24585aa46d6ffdff$export$b5d5cf8927ab7262 = /*#__PURE__*/ (0, $kf3DM$forwardRef)(function Switch(props, ref) {\n let { inputRef: userProvidedInputRef = null, ...otherProps } = props;\n [props, ref] = (0, $7230ffa83bc0c2cf$export$29f1550f4b0d4415)(otherProps, ref, $24585aa46d6ffdff$export$8699e3b644d5a28a);\n let inputRef = (0, $kf3DM$useObjectRef)((0, $kf3DM$useMemo)(()=>(0, $kf3DM$mergeRefs)(userProvidedInputRef, props.inputRef !== undefined ? props.inputRef : null), [\n userProvidedInputRef,\n props.inputRef\n ]));\n let state = (0, $kf3DM$useToggleState)(props);\n let aria = (0, $kf3DM$useSwitch)({\n ...(0, $7230ffa83bc0c2cf$export$ef03459518577ad4)(props),\n // ReactNode type doesn't allow function children.\n children: typeof props.children === 'function' ? true : props.children\n }, state, inputRef);\n return /*#__PURE__*/ (0, $kf3DM$react).createElement((0, $7230ffa83bc0c2cf$export$2881499e37b75b9a), {\n values: [\n [\n $24585aa46d6ffdff$export$5cc1518e1ec171c,\n state\n ],\n [\n $24585aa46d6ffdff$var$InternalSwitchContext,\n {\n ...aria,\n inputRef: inputRef,\n defaultClassName: 'react-aria-Switch'\n }\n ]\n ]\n }, /*#__PURE__*/ (0, $kf3DM$react).createElement($24585aa46d6ffdff$export$72111f742dee7cb8, {\n ...props,\n ref: ref\n }));\n});\nconst $24585aa46d6ffdff$var$InternalSwitchContext = /*#__PURE__*/ (0, $kf3DM$createContext)(null);\nconst $24585aa46d6ffdff$export$208c2e617baf9fc3 = /*#__PURE__*/ (0, $kf3DM$forwardRef)(function Switch(props, ref) {\n let { inputRef: userProvidedInputRef = null, ...otherProps } = props;\n [props, ref] = (0, $7230ffa83bc0c2cf$export$29f1550f4b0d4415)(otherProps, ref, $24585aa46d6ffdff$export$3e1405298f0cafda);\n let { validationBehavior: formValidationBehavior } = (0, $7230ffa83bc0c2cf$export$fabf2dc03a41866e)((0, $cdaed739b1139372$export$c24727297075ec6a)) || {};\n let validationBehavior = props.validationBehavior ?? formValidationBehavior ?? 'native';\n let inputRef = (0, $kf3DM$useObjectRef)((0, $kf3DM$useMemo)(()=>(0, $kf3DM$mergeRefs)(userProvidedInputRef, props.inputRef !== undefined ? props.inputRef : null), [\n userProvidedInputRef,\n props.inputRef\n ]));\n let state = (0, $kf3DM$useToggleState)(props);\n let aria = (0, $kf3DM$useSwitch)({\n ...(0, $7230ffa83bc0c2cf$export$ef03459518577ad4)(props),\n // ReactNode type doesn't allow function children.\n children: typeof props.children === 'function' ? true : props.children,\n validationBehavior: validationBehavior\n }, state, inputRef);\n let { descriptionProps: descriptionProps, errorMessageProps: errorMessageProps, isSelected: isSelected, isDisabled: isDisabled, isReadOnly: isReadOnly, isInvalid: isInvalid, validationDetails: validationDetails, validationErrors: validationErrors } = aria;\n let renderProps = (0, $7230ffa83bc0c2cf$export$4d86445c2cf5e3)({\n ...props,\n defaultClassName: 'react-aria-SwitchField',\n values: {\n isSelected: isSelected,\n isDisabled: isDisabled,\n isReadOnly: isReadOnly,\n isInvalid: isInvalid,\n isRequired: props.isRequired || false,\n state: state\n }\n });\n let DOMProps = (0, $kf3DM$filterDOMProps)(props, {\n global: true\n });\n delete DOMProps.id;\n delete DOMProps.onClick;\n return /*#__PURE__*/ (0, $kf3DM$react).createElement((0, $7230ffa83bc0c2cf$export$df3a06d6289f983e).div, {\n ...(0, $kf3DM$mergeProps)(DOMProps, renderProps),\n ref: ref,\n slot: props.slot || undefined,\n \"data-selected\": isSelected || undefined,\n \"data-disabled\": isDisabled || undefined,\n \"data-readonly\": isReadOnly || undefined,\n \"data-invalid\": isInvalid || undefined,\n \"data-required\": props.isRequired || undefined\n }, /*#__PURE__*/ (0, $kf3DM$react).createElement((0, $7230ffa83bc0c2cf$export$2881499e37b75b9a), {\n values: [\n [\n $24585aa46d6ffdff$export$5cc1518e1ec171c,\n state\n ],\n [\n $24585aa46d6ffdff$var$InternalSwitchContext,\n {\n ...aria,\n inputRef: inputRef,\n defaultClassName: 'react-aria-SwitchButton',\n isRequired: props.isRequired\n }\n ],\n [\n (0, $efe09c6d1c304b50$export$9afb8bc826b033ea),\n {\n slots: {\n description: descriptionProps,\n errorMessage: errorMessageProps\n }\n }\n ],\n [\n (0, $1f3c3b1a70cec653$export$ff05c3ac10437e03),\n {\n isInvalid: isInvalid,\n validationDetails: validationDetails,\n validationErrors: validationErrors\n }\n ]\n ]\n }, renderProps.children));\n});\nconst $24585aa46d6ffdff$export$72111f742dee7cb8 = /*#__PURE__*/ (0, $kf3DM$forwardRef)(function SwitchButton(props, ref) {\n let { labelProps: labelProps, inputProps: inputProps, isSelected: isSelected, isDisabled: isDisabled, isReadOnly: isReadOnly, isPressed: isPressed, isInvalid: isInvalid, inputRef: inputRef, defaultClassName: defaultClassName, isRequired: isRequired } = (0, $kf3DM$useContext)($24585aa46d6ffdff$var$InternalSwitchContext);\n let { isFocused: isFocused, isFocusVisible: isFocusVisible, focusProps: focusProps } = (0, $kf3DM$useFocusRing)();\n let isInteractionDisabled = isDisabled || isReadOnly;\n let state = (0, $kf3DM$useContext)($24585aa46d6ffdff$export$5cc1518e1ec171c);\n let { hoverProps: hoverProps, isHovered: isHovered } = (0, $kf3DM$useHover)({\n ...props,\n isDisabled: isInteractionDisabled\n });\n let renderProps = (0, $7230ffa83bc0c2cf$export$4d86445c2cf5e3)({\n ...props,\n defaultClassName: defaultClassName,\n values: {\n isSelected: isSelected,\n isPressed: isPressed,\n isHovered: isHovered,\n isFocused: isFocused,\n isFocusVisible: isFocusVisible,\n isDisabled: isDisabled,\n isReadOnly: isReadOnly,\n isInvalid: isInvalid,\n isRequired: isRequired || false,\n state: state\n }\n });\n let DOMProps = (0, $kf3DM$filterDOMProps)(props, {\n global: true\n });\n delete DOMProps.id;\n delete DOMProps.onClick;\n return /*#__PURE__*/ (0, $kf3DM$react).createElement((0, $7230ffa83bc0c2cf$export$df3a06d6289f983e).label, {\n ...(0, $kf3DM$mergeProps)(DOMProps, labelProps, hoverProps, renderProps),\n ref: ref,\n slot: props.slot || undefined,\n \"data-selected\": isSelected || undefined,\n \"data-pressed\": isPressed || undefined,\n \"data-hovered\": isHovered || undefined,\n \"data-focused\": isFocused || undefined,\n \"data-focus-visible\": isFocusVisible || undefined,\n \"data-disabled\": isDisabled || undefined,\n \"data-readonly\": isReadOnly || undefined,\n \"data-invalid\": isInvalid || undefined,\n \"data-required\": isRequired || undefined\n }, /*#__PURE__*/ (0, $kf3DM$react).createElement((0, $kf3DM$VisuallyHidden), {\n elementType: \"span\"\n }, /*#__PURE__*/ (0, $kf3DM$react).createElement(\"input\", {\n ...(0, $kf3DM$mergeProps)(inputProps, focusProps),\n ref: inputRef\n })), renderProps.children);\n});\n\n\nexport {$24585aa46d6ffdff$export$8699e3b644d5a28a as SwitchContext, $24585aa46d6ffdff$export$3e1405298f0cafda as SwitchFieldContext, $24585aa46d6ffdff$export$5cc1518e1ec171c as ToggleStateContext, $24585aa46d6ffdff$export$b5d5cf8927ab7262 as Switch, $24585aa46d6ffdff$export$72111f742dee7cb8 as SwitchButton, $24585aa46d6ffdff$export$208c2e617baf9fc3 as SwitchField};\n//# sourceMappingURL=Switch.mjs.map\n","\"use client\";\n\nimport type { SwitchVariants } from \"@/theme/color/toggle-switch\";\nimport type { SwitchProps as SwitchPrimitiveProps, SwitchRenderProps } from \"react-aria-components\";\n\nimport { switchVariants } from \"@/theme/color/toggle-switch\";\nimport React, { createContext, useContext } from \"react\";\nimport { Switch as SwitchPrimitive, composeRenderProps } from \"react-aria-components\";\nimport { cx } from \"tailwind-variants\";\nimport \"./toggle-switch.css\";\n\ninterface SwitchContextValue {\n\tslots?: ReturnType<typeof switchVariants>;\n}\n\nconst SwitchContext = createContext<SwitchContextValue>({});\n\nfunction composeTwRenderProps(className: any, tailwind?: string | ((values: any) => string | undefined)): string | ((values: any) => string) {\n\treturn composeRenderProps(className, (currentClassName, renderProps): string => {\n\t\tconst tw = typeof tailwind === \"function\" ? (tailwind(renderProps) ?? \"\") : (tailwind ?? \"\");\n\t\tconst cls = currentClassName ?? \"\";\n\n\t\treturn cx(tw, cls) ?? \"\";\n\t});\n}\n\nconst composeSlotClassName = (\n\tslotFn: ((args?: { className?: string; [key: string]: any }) => string) | undefined,\n\tclassName?: string,\n\tvariants?: Record<string, any>,\n): string | undefined => {\n\treturn typeof slotFn === \"function\" ? slotFn({ ...(variants ?? {}), className }) : className;\n};\n\ntype SwitchRootProps = SwitchPrimitiveProps & SwitchVariants;\n\nconst SwitchRoot = ({ children, className, size, ...props }: SwitchRootProps) => {\n\tconst slots = React.useMemo(() => switchVariants({ size }), [size]);\n\n\treturn (\n\t\t<SwitchContext.Provider value={{ slots }}>\n\t\t\t<SwitchPrimitive data-slot=\"switch\" {...props} className={composeTwRenderProps(className, slots.base())}>\n\t\t\t\t{(values: SwitchRenderProps) => <>{typeof children === \"function\" ? children(values as any) : children}</>}\n\t\t\t</SwitchPrimitive>\n\t\t</SwitchContext.Provider>\n\t);\n};\n\ninterface SwitchControlProps extends React.ComponentPropsWithRef<\"span\"> {}\n\nconst SwitchControl = ({ children, className, ...props }: SwitchControlProps) => {\n\tconst { slots } = useContext(SwitchContext);\n\n\treturn (\n\t\t<span className={composeSlotClassName(slots?.control, className)} data-slot=\"switch-control\" {...props}>\n\t\t\t{children}\n\t\t</span>\n\t);\n};\n\ninterface SwitchThumbProps extends React.ComponentPropsWithRef<\"span\"> {}\n\nconst SwitchThumb = ({ children, className, ...props }: SwitchThumbProps) => {\n\tconst { slots } = useContext(SwitchContext);\n\n\treturn (\n\t\t<span className={composeSlotClassName(slots?.thumb, className)} data-slot=\"switch-thumb\" {...props}>\n\t\t\t{children}\n\t\t</span>\n\t);\n};\n\ninterface SwitchIconProps extends React.ComponentPropsWithRef<\"span\"> {}\n\nconst SwitchIcon = ({ children, className, ...props }: SwitchIconProps) => {\n\tconst { slots } = useContext(SwitchContext);\n\n\treturn (\n\t\t<span className={composeSlotClassName(slots?.icon, className)} data-slot=\"switch-icon\" {...props}>\n\t\t\t{children}\n\t\t</span>\n\t);\n};\n\ninterface SwitchContentProps extends React.ComponentPropsWithRef<\"div\"> {}\n\nconst SwitchContent = ({ children, className, ...props }: SwitchContentProps) => {\n\tconst { slots } = useContext(SwitchContext);\n\n\treturn (\n\t\t<div className={composeSlotClassName(slots?.content, className)} data-slot=\"switch-content\" {...props}>\n\t\t\t{children}\n\t\t</div>\n\t);\n};\n\nexport { SwitchContent, SwitchControl, SwitchIcon, SwitchRoot, SwitchThumb };\n\nexport type { SwitchContentProps, SwitchControlProps, SwitchIconProps, SwitchRootProps, SwitchThumbProps };\n","import type { ComponentProps } from \"react\";\n\nimport { switchVariants } from \"@/theme/color/toggle-switch\";\nimport { SwitchContent, SwitchControl, SwitchIcon, SwitchRoot, SwitchThumb } from \"./toggle-switch\";\n\nexport const Switch = Object.assign(SwitchRoot, {\n\tRoot: SwitchRoot,\n\tContent: SwitchContent,\n\tControl: SwitchControl,\n\tThumb: SwitchThumb,\n\tIcon: SwitchIcon,\n});\n\nexport const ToggleSwitch = Switch;\n\nexport type Switch = {\n\tProps: ComponentProps<typeof SwitchRoot>;\n\tRootProps: ComponentProps<typeof SwitchRoot>;\n\tContentProps: ComponentProps<typeof SwitchContent>;\n\tControlProps: ComponentProps<typeof SwitchControl>;\n\tThumbProps: ComponentProps<typeof SwitchThumb>;\n\tIconProps: ComponentProps<typeof SwitchIcon>;\n};\n\nexport { SwitchRoot, SwitchContent, SwitchControl, SwitchIcon, SwitchThumb, switchVariants };\n\nexport type {\n\tSwitchRootProps,\n\tSwitchRootProps as SwitchProps,\n\tSwitchContentProps,\n\tSwitchControlProps,\n\tSwitchThumbProps,\n\tSwitchIconProps,\n} from \"./toggle-switch\";\n\nexport type { SwitchVariants } from \"@/theme/color/toggle-switch\";\n"],"names":["$jQnU8$useFormValidationState","$jQnU8$useState","$jQnU8$privateValidationStateProp","$dAajM$useState","$kf3DM$createContext","$kf3DM$forwardRef","$kf3DM$useObjectRef","$kf3DM$useMemo","$kf3DM$mergeRefs","$kf3DM$useToggleState","$kf3DM$useSwitch","$kf3DM$react","$kf3DM$useContext","$kf3DM$useFocusRing","$kf3DM$useHover","$kf3DM$filterDOMProps","$kf3DM$mergeProps","$kf3DM$VisuallyHidden","SwitchContext","createContext","composeTwRenderProps","className","tailwind","composeRenderProps","currentClassName","renderProps","tw","cls","cx","composeSlotClassName","slotFn","variants","SwitchRoot","t0","$","_c","children","props","size","t1","switchVariants","slots","t2","t3","base","t4","values","t5","SwitchPrimitive","t6","SwitchControl","useContext","control","SwitchThumb","thumb","SwitchIcon","icon","SwitchContent","content","Switch","Object","assign","Root","Content","Control","Thumb","Icon","ToggleSwitch"],"mappings":";;;;;;;;;;;;;;AA+BA,SAAS,0CAA0C,OAAO,OAAO,KAAK;AAClE,MAAI,EAAE,aAAyB,OAAO,aAAyB,OAAO,OAAc,MAAY,MAAY,UAAoB,YAAwB,qBAAyC,QAAQ,cAAc,WAA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AA;AAAC,KAAA;AAAA,MAAAG;AAAAA,MAAAf;AAAAA,MAAA,GAAAgB;AAAAA,IAAAA,IAAAJ;AAAqDC,WAAAD;AAAAC,WAAAE;AAAAF,WAAAb;AAAAa,WAAAG;AAAAA,EAAA,OAAA;AAAAD,eAAAF,EAAA,CAAA;AAAAb,gBAAAa,EAAA,CAAA;AAAAG,YAAAH,EAAA,CAAA;AAAA,EAAA;AAC3E,QAAA;AAAA,IAAAO;AAAAA,EAAAA,IAAkBU,WAAWjC,aAAa;AAGJ,QAAAqB,KAAAE,OAAKiB;AAAS,MAAAhB;AAAA,MAAAR,EAAA,CAAA,MAAAb,aAAAa,SAAAK,IAAA;AAAnCG,SAAAb,qBAAqBU,IAAgBlB,SAAS;AAACa,WAAAb;AAAAa,WAAAK;AAAAL,WAAAQ;AAAAA,EAAA,OAAA;AAAAA,SAAAR,EAAA,CAAA;AAAA,EAAA;AAAA,MAAAS;AAAA,MAAAT,EAAA,CAAA,MAAAE,YAAAF,SAAAG,SAAAH,EAAA,CAAA,MAAAQ,IAAA;AAA/DC,sCAAgB,WAAAD,IAA2D,aAAA,kBAAgB,GAAKL,OAC9FD,UACF;AAAMF,WAAAE;AAAAF,WAAAG;AAAAH,WAAAQ;AAAAR,YAAAS;AAAAA,EAAA,OAAA;AAAAA,SAAAT,EAAA,EAAA;AAAA,EAAA;AAAA,SAFNS;AAEM;ACvFD,MAAMgB,UAASC,OAAOC,OAAO7B,YAAY;AAAA,EAC/C8B,MAAM9B;AAAAA,EACN+B,SAASN;AAAAA,EACTO,SAASd;AAAAA,EACTe,OAAOZ;AAAAA,EACPa,MAAMX;AACP,CAAC;AAEM,MAAMY,eAAeR;","x_google_ignoreList":[0,1,2,3]}
|
|
1
|
+
{"version":3,"file":"index.es.js","sources":["../../node_modules/.pnpm/react-aria@3.53.0_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-aria/dist/private/toggle/useToggle.mjs","../../node_modules/.pnpm/react-stately@3.51.0_react@19.3.0/node_modules/react-stately/dist/private/toggle/useToggleState.mjs","../../node_modules/.pnpm/react-aria@3.53.0_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-aria/dist/private/switch/useSwitch.mjs","../../node_modules/.pnpm/react-aria-components@1.22.0_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-aria-components/dist/private/Switch.mjs","../../src/components/toggle-switch/toggle-switch.tsx","../../src/components/toggle-switch/index.ts"],"sourcesContent":["import {filterDOMProps as $8e9d2fae0ecb9001$export$457c3d6518dd4c6f} from \"../utils/filterDOMProps.mjs\";\nimport {getEventTarget as $23f2114a1b82827e$export$e58f029f0fbfdb29} from \"../utils/shadowdom/DOMFunctions.mjs\";\nimport {mergeProps as $bbaa08b3cd72f041$export$9d1611c77c2fe928} from \"../utils/mergeProps.mjs\";\nimport {useFocusable as $d1116acdf220c2da$export$4c014de7c8940b4c} from \"../interactions/useFocusable.mjs\";\nimport {useFormReset as $3274bf1495747a7b$export$5add1d006293d136} from \"../utils/useFormReset.mjs\";\nimport {useFormValidation as $860f7da480e22816$export$b8473d3665f3a75a} from \"../form/useFormValidation.mjs\";\nimport {usePress as $d27d541f9569d26d$export$45712eceda6fad21} from \"../interactions/usePress.mjs\";\nimport {useSlotId2 as $4c14b02d5228be26$export$ed2feabec4a533f4} from \"../utils/useSlot.mjs\";\nimport {useState as $jQnU8$useState} from \"react\";\nimport {useFormValidationState as $jQnU8$useFormValidationState, privateValidationStateProp as $jQnU8$privateValidationStateProp} from \"react-stately/private/form/useFormValidationState\";\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\n\n\n\n\n\n\nfunction $876b6f32ca5a04c3$export$cbe85ee05b554577(props, state, ref) {\n let { isDisabled: isDisabled = false, isReadOnly: isReadOnly = false, value: value, name: name, form: form, children: children, isRequired: isRequired, validationBehavior: validationBehavior = 'aria', 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledby, 'aria-describedby': ariaDescribedby, onPressStart: onPressStart, onPressEnd: onPressEnd, onPressChange: onPressChange, onPress: onPress, onPressUp: onPressUp, onClick: onClick } = props;\n // Create validation state here because it doesn't make sense to add to general useToggleState.\n let validationState = (0, $jQnU8$useFormValidationState)({\n ...props,\n value: state.isSelected\n });\n let { isInvalid: isInvalid, validationErrors: validationErrors, validationDetails: validationDetails } = validationState.displayValidation;\n (0, $860f7da480e22816$export$b8473d3665f3a75a)(props, validationState, ref);\n let onChange = (e)=>{\n // since we spread props on label, onChange will end up there as well as in here.\n // so we have to stop propagation at the lowest level that we care about\n e.stopPropagation();\n state.setSelected((0, $23f2114a1b82827e$export$e58f029f0fbfdb29)(e).checked);\n };\n let hasChildren = children != null;\n let hasAriaLabel = ariaLabel != null || ariaLabelledby != null;\n if (!hasChildren && !hasAriaLabel && process.env.NODE_ENV !== 'production') console.warn('If you do not provide children, you must specify an aria-label for accessibility');\n // Handle press state for keyboard interactions and cases where labelProps is not used.\n let { pressProps: pressProps, isPressed: isPressed } = (0, $d27d541f9569d26d$export$45712eceda6fad21)({\n onPressStart: onPressStart,\n onPressEnd: onPressEnd,\n onPressChange: onPressChange,\n onPress: onPress,\n onPressUp: onPressUp,\n onClick: onClick,\n isDisabled: isDisabled\n });\n // Handle press state on the label.\n let [isLabelPressed, setLabelPressed] = (0, $jQnU8$useState)(false);\n let { pressProps: labelProps } = (0, $d27d541f9569d26d$export$45712eceda6fad21)({\n onPressStart (e) {\n // Keyboard interactions are handled directly on the input.\n if (e.pointerType === 'keyboard' || e.pointerType === 'virtual') {\n e.continuePropagation();\n return;\n }\n onPressStart?.(e);\n onPressChange?.(true);\n setLabelPressed(true);\n },\n onPressEnd (e) {\n // Keyboard interactions are handled directly on the input.\n if (e.pointerType === 'keyboard' || e.pointerType === 'virtual') {\n e.continuePropagation();\n return;\n }\n onPressEnd?.(e);\n onPressChange?.(false);\n setLabelPressed(false);\n },\n onPressUp (e) {\n if (e.pointerType === 'keyboard' || e.pointerType === 'virtual') {\n e.continuePropagation();\n return;\n }\n onPressUp?.(e);\n },\n onClick: onClick,\n onPress (e) {\n if (e.pointerType === 'keyboard' || e.pointerType === 'virtual') {\n e.continuePropagation();\n return;\n }\n onPress?.(e);\n state.toggle();\n ref.current?.focus();\n // @ts-expect-error\n let { [(0, $jQnU8$privateValidationStateProp)]: groupValidationState } = props;\n // oxlint-disable-next-line react/react-compiler\n let { commitValidation: commitValidation } = groupValidationState ? groupValidationState : validationState;\n commitValidation();\n },\n isDisabled: isDisabled || isReadOnly\n });\n let { focusableProps: focusableProps } = (0, $d1116acdf220c2da$export$4c014de7c8940b4c)(props, ref);\n let interactions = (0, $bbaa08b3cd72f041$export$9d1611c77c2fe928)(pressProps, focusableProps);\n let domProps = (0, $8e9d2fae0ecb9001$export$457c3d6518dd4c6f)(props, {\n labelable: true\n });\n (0, $3274bf1495747a7b$export$5add1d006293d136)(ref, state.defaultSelected, state.setSelected);\n // Copied from useField because we don't want the label behavior that provides.\n let descriptionProps = (0, $4c14b02d5228be26$export$ed2feabec4a533f4)();\n let errorMessageProps = (0, $4c14b02d5228be26$export$ed2feabec4a533f4)();\n return {\n labelProps: (0, $bbaa08b3cd72f041$export$9d1611c77c2fe928)(labelProps, {\n onClick: (e)=>e.preventDefault()\n }),\n inputProps: (0, $bbaa08b3cd72f041$export$9d1611c77c2fe928)(domProps, {\n checked: state.isSelected,\n 'aria-required': isRequired && validationBehavior === 'aria' || undefined,\n required: isRequired && validationBehavior === 'native',\n 'aria-invalid': isInvalid || props.validationState === 'invalid' || undefined,\n 'aria-errormessage': props['aria-errormessage'],\n 'aria-controls': props['aria-controls'],\n 'aria-readonly': isReadOnly || undefined,\n 'aria-describedby': [\n descriptionProps.id,\n errorMessageProps.id,\n ariaDescribedby\n ].filter(Boolean).join(' ') || undefined,\n onChange: onChange,\n disabled: isDisabled,\n ...value == null ? {} : {\n value: value\n },\n name: name,\n form: form,\n type: 'checkbox',\n ...interactions\n }),\n descriptionProps: descriptionProps,\n errorMessageProps: errorMessageProps,\n isSelected: state.isSelected,\n isPressed: isPressed || isLabelPressed,\n isDisabled: isDisabled,\n isReadOnly: isReadOnly,\n isInvalid: isInvalid || props.validationState === 'invalid',\n validationErrors: validationErrors,\n validationDetails: validationDetails\n };\n}\n\n\nexport {$876b6f32ca5a04c3$export$cbe85ee05b554577 as useToggle};\n//# sourceMappingURL=useToggle.mjs.map\n","import {useControlledState as $3e6197669829fe11$export$40bfa8c7b0832715} from \"../utils/useControlledState.mjs\";\nimport {useState as $dAajM$useState} 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\nfunction $fd3c5e01e837dc20$export$8042c6c013fd5226(props = {}) {\n let { isReadOnly: isReadOnly } = props;\n // have to provide an empty function so useControlledState doesn't throw a fit\n // can't use useControlledState's prop calling because we need the event object from the change\n let [isSelected, setSelected] = (0, $3e6197669829fe11$export$40bfa8c7b0832715)(props.isSelected, props.defaultSelected || false, props.onChange);\n let [initialValue] = (0, $dAajM$useState)(isSelected);\n function updateSelected(value) {\n if (!isReadOnly) setSelected(value);\n }\n function toggleState() {\n if (!isReadOnly) setSelected(!isSelected);\n }\n return {\n isSelected: isSelected,\n defaultSelected: props.defaultSelected ?? initialValue,\n setSelected: updateSelected,\n toggle: toggleState\n };\n}\n\n\nexport {$fd3c5e01e837dc20$export$8042c6c013fd5226 as useToggleState};\n//# sourceMappingURL=useToggleState.mjs.map\n","import {useToggle as $876b6f32ca5a04c3$export$cbe85ee05b554577} from \"../toggle/useToggle.mjs\";\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 */ \nfunction $08312b2089c5b722$export$d853f7095ae95f88(props, state, ref) {\n let { labelProps: labelProps, inputProps: inputProps, isSelected: isSelected, ...states } = (0, $876b6f32ca5a04c3$export$cbe85ee05b554577)(props, state, ref);\n return {\n labelProps: labelProps,\n inputProps: {\n ...inputProps,\n role: 'switch',\n checked: isSelected\n },\n isSelected: isSelected,\n ...states\n };\n}\n\n\nexport {$08312b2089c5b722$export$d853f7095ae95f88 as useSwitch};\n//# sourceMappingURL=useSwitch.mjs.map\n","import {dom as $7230ffa83bc0c2cf$export$df3a06d6289f983e, Provider as $7230ffa83bc0c2cf$export$2881499e37b75b9a, removeDataAttributes as $7230ffa83bc0c2cf$export$ef03459518577ad4, useContextProps as $7230ffa83bc0c2cf$export$29f1550f4b0d4415, useRenderProps as $7230ffa83bc0c2cf$export$4d86445c2cf5e3, useSlottedContext as $7230ffa83bc0c2cf$export$fabf2dc03a41866e} from \"./utils.mjs\";\nimport {FieldErrorContext as $1f3c3b1a70cec653$export$ff05c3ac10437e03} from \"./FieldError.mjs\";\nimport {FormContext as $cdaed739b1139372$export$c24727297075ec6a} from \"./Form.mjs\";\nimport {TextContext as $efe09c6d1c304b50$export$9afb8bc826b033ea} from \"./Text.mjs\";\nimport {useSwitch as $kf3DM$useSwitch} from \"react-aria/useSwitch\";\nimport {filterDOMProps as $kf3DM$filterDOMProps} from \"react-aria/filterDOMProps\";\nimport {mergeProps as $kf3DM$mergeProps} from \"react-aria/mergeProps\";\nimport {mergeRefs as $kf3DM$mergeRefs} from \"react-aria/mergeRefs\";\nimport $kf3DM$react, {createContext as $kf3DM$createContext, forwardRef as $kf3DM$forwardRef, useMemo as $kf3DM$useMemo, useContext as $kf3DM$useContext} from \"react\";\nimport {useToggleState as $kf3DM$useToggleState} from \"react-stately/useToggleState\";\nimport {useFocusRing as $kf3DM$useFocusRing} from \"react-aria/useFocusRing\";\nimport {useHover as $kf3DM$useHover} from \"react-aria/useHover\";\nimport {useObjectRef as $kf3DM$useObjectRef} from \"react-aria/useObjectRef\";\nimport {VisuallyHidden as $kf3DM$VisuallyHidden} from \"react-aria/VisuallyHidden\";\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\n\n\n\n\n\n\n\nconst $24585aa46d6ffdff$export$8699e3b644d5a28a = /*#__PURE__*/ (0, $kf3DM$createContext)(null);\nconst $24585aa46d6ffdff$export$3e1405298f0cafda = /*#__PURE__*/ (0, $kf3DM$createContext)(null);\nconst $24585aa46d6ffdff$export$5cc1518e1ec171c = /*#__PURE__*/ (0, $kf3DM$createContext)(null);\nconst $24585aa46d6ffdff$export$b5d5cf8927ab7262 = /*#__PURE__*/ (0, $kf3DM$forwardRef)(function Switch(props, ref) {\n let { inputRef: userProvidedInputRef = null, ...otherProps } = props;\n [props, ref] = (0, $7230ffa83bc0c2cf$export$29f1550f4b0d4415)(otherProps, ref, $24585aa46d6ffdff$export$8699e3b644d5a28a);\n let inputRef = (0, $kf3DM$useObjectRef)((0, $kf3DM$useMemo)(()=>(0, $kf3DM$mergeRefs)(userProvidedInputRef, props.inputRef !== undefined ? props.inputRef : null), [\n userProvidedInputRef,\n props.inputRef\n ]));\n let state = (0, $kf3DM$useToggleState)(props);\n let aria = (0, $kf3DM$useSwitch)({\n ...(0, $7230ffa83bc0c2cf$export$ef03459518577ad4)(props),\n // ReactNode type doesn't allow function children.\n children: typeof props.children === 'function' ? true : props.children\n }, state, inputRef);\n return /*#__PURE__*/ (0, $kf3DM$react).createElement((0, $7230ffa83bc0c2cf$export$2881499e37b75b9a), {\n values: [\n [\n $24585aa46d6ffdff$export$5cc1518e1ec171c,\n state\n ],\n [\n $24585aa46d6ffdff$var$InternalSwitchContext,\n {\n ...aria,\n inputRef: inputRef,\n defaultClassName: 'react-aria-Switch'\n }\n ]\n ]\n }, /*#__PURE__*/ (0, $kf3DM$react).createElement($24585aa46d6ffdff$export$72111f742dee7cb8, {\n ...props,\n ref: ref\n }));\n});\nconst $24585aa46d6ffdff$var$InternalSwitchContext = /*#__PURE__*/ (0, $kf3DM$createContext)(null);\nconst $24585aa46d6ffdff$export$208c2e617baf9fc3 = /*#__PURE__*/ (0, $kf3DM$forwardRef)(function Switch(props, ref) {\n let { inputRef: userProvidedInputRef = null, ...otherProps } = props;\n [props, ref] = (0, $7230ffa83bc0c2cf$export$29f1550f4b0d4415)(otherProps, ref, $24585aa46d6ffdff$export$3e1405298f0cafda);\n let { validationBehavior: formValidationBehavior } = (0, $7230ffa83bc0c2cf$export$fabf2dc03a41866e)((0, $cdaed739b1139372$export$c24727297075ec6a)) || {};\n let validationBehavior = props.validationBehavior ?? formValidationBehavior ?? 'native';\n let inputRef = (0, $kf3DM$useObjectRef)((0, $kf3DM$useMemo)(()=>(0, $kf3DM$mergeRefs)(userProvidedInputRef, props.inputRef !== undefined ? props.inputRef : null), [\n userProvidedInputRef,\n props.inputRef\n ]));\n let state = (0, $kf3DM$useToggleState)(props);\n let aria = (0, $kf3DM$useSwitch)({\n ...(0, $7230ffa83bc0c2cf$export$ef03459518577ad4)(props),\n // ReactNode type doesn't allow function children.\n children: typeof props.children === 'function' ? true : props.children,\n validationBehavior: validationBehavior\n }, state, inputRef);\n let { descriptionProps: descriptionProps, errorMessageProps: errorMessageProps, isSelected: isSelected, isDisabled: isDisabled, isReadOnly: isReadOnly, isInvalid: isInvalid, validationDetails: validationDetails, validationErrors: validationErrors } = aria;\n let renderProps = (0, $7230ffa83bc0c2cf$export$4d86445c2cf5e3)({\n ...props,\n defaultClassName: 'react-aria-SwitchField',\n values: {\n isSelected: isSelected,\n isDisabled: isDisabled,\n isReadOnly: isReadOnly,\n isInvalid: isInvalid,\n isRequired: props.isRequired || false,\n state: state\n }\n });\n let DOMProps = (0, $kf3DM$filterDOMProps)(props, {\n global: true\n });\n delete DOMProps.id;\n delete DOMProps.onClick;\n return /*#__PURE__*/ (0, $kf3DM$react).createElement((0, $7230ffa83bc0c2cf$export$df3a06d6289f983e).div, {\n ...(0, $kf3DM$mergeProps)(DOMProps, renderProps),\n ref: ref,\n slot: props.slot || undefined,\n \"data-selected\": isSelected || undefined,\n \"data-disabled\": isDisabled || undefined,\n \"data-readonly\": isReadOnly || undefined,\n \"data-invalid\": isInvalid || undefined,\n \"data-required\": props.isRequired || undefined\n }, /*#__PURE__*/ (0, $kf3DM$react).createElement((0, $7230ffa83bc0c2cf$export$2881499e37b75b9a), {\n values: [\n [\n $24585aa46d6ffdff$export$5cc1518e1ec171c,\n state\n ],\n [\n $24585aa46d6ffdff$var$InternalSwitchContext,\n {\n ...aria,\n inputRef: inputRef,\n defaultClassName: 'react-aria-SwitchButton',\n isRequired: props.isRequired\n }\n ],\n [\n (0, $efe09c6d1c304b50$export$9afb8bc826b033ea),\n {\n slots: {\n description: descriptionProps,\n errorMessage: errorMessageProps\n }\n }\n ],\n [\n (0, $1f3c3b1a70cec653$export$ff05c3ac10437e03),\n {\n isInvalid: isInvalid,\n validationDetails: validationDetails,\n validationErrors: validationErrors\n }\n ]\n ]\n }, renderProps.children));\n});\nconst $24585aa46d6ffdff$export$72111f742dee7cb8 = /*#__PURE__*/ (0, $kf3DM$forwardRef)(function SwitchButton(props, ref) {\n let { labelProps: labelProps, inputProps: inputProps, isSelected: isSelected, isDisabled: isDisabled, isReadOnly: isReadOnly, isPressed: isPressed, isInvalid: isInvalid, inputRef: inputRef, defaultClassName: defaultClassName, isRequired: isRequired } = (0, $kf3DM$useContext)($24585aa46d6ffdff$var$InternalSwitchContext);\n let { isFocused: isFocused, isFocusVisible: isFocusVisible, focusProps: focusProps } = (0, $kf3DM$useFocusRing)();\n let isInteractionDisabled = isDisabled || isReadOnly;\n let state = (0, $kf3DM$useContext)($24585aa46d6ffdff$export$5cc1518e1ec171c);\n let { hoverProps: hoverProps, isHovered: isHovered } = (0, $kf3DM$useHover)({\n ...props,\n isDisabled: isInteractionDisabled\n });\n let renderProps = (0, $7230ffa83bc0c2cf$export$4d86445c2cf5e3)({\n ...props,\n defaultClassName: defaultClassName,\n values: {\n isSelected: isSelected,\n isPressed: isPressed,\n isHovered: isHovered,\n isFocused: isFocused,\n isFocusVisible: isFocusVisible,\n isDisabled: isDisabled,\n isReadOnly: isReadOnly,\n isInvalid: isInvalid,\n isRequired: isRequired || false,\n state: state\n }\n });\n let DOMProps = (0, $kf3DM$filterDOMProps)(props, {\n global: true\n });\n delete DOMProps.id;\n delete DOMProps.onClick;\n return /*#__PURE__*/ (0, $kf3DM$react).createElement((0, $7230ffa83bc0c2cf$export$df3a06d6289f983e).label, {\n ...(0, $kf3DM$mergeProps)(DOMProps, labelProps, hoverProps, renderProps),\n ref: ref,\n slot: props.slot || undefined,\n \"data-selected\": isSelected || undefined,\n \"data-pressed\": isPressed || undefined,\n \"data-hovered\": isHovered || undefined,\n \"data-focused\": isFocused || undefined,\n \"data-focus-visible\": isFocusVisible || undefined,\n \"data-disabled\": isDisabled || undefined,\n \"data-readonly\": isReadOnly || undefined,\n \"data-invalid\": isInvalid || undefined,\n \"data-required\": isRequired || undefined\n }, /*#__PURE__*/ (0, $kf3DM$react).createElement((0, $kf3DM$VisuallyHidden), {\n elementType: \"span\"\n }, /*#__PURE__*/ (0, $kf3DM$react).createElement(\"input\", {\n ...(0, $kf3DM$mergeProps)(inputProps, focusProps),\n ref: inputRef\n })), renderProps.children);\n});\n\n\nexport {$24585aa46d6ffdff$export$8699e3b644d5a28a as SwitchContext, $24585aa46d6ffdff$export$3e1405298f0cafda as SwitchFieldContext, $24585aa46d6ffdff$export$5cc1518e1ec171c as ToggleStateContext, $24585aa46d6ffdff$export$b5d5cf8927ab7262 as Switch, $24585aa46d6ffdff$export$72111f742dee7cb8 as SwitchButton, $24585aa46d6ffdff$export$208c2e617baf9fc3 as SwitchField};\n//# sourceMappingURL=Switch.mjs.map\n","\"use client\";\n\nimport type { SwitchVariants } from \"@/theme/color/toggle-switch\";\nimport type { SwitchProps as SwitchPrimitiveProps, SwitchRenderProps } from \"react-aria-components\";\n\nimport { switchVariants } from \"@/theme/color/toggle-switch\";\nimport React, { createContext, useContext } from \"react\";\nimport { Switch as SwitchPrimitive, composeRenderProps } from \"react-aria-components\";\nimport { cx } from \"tailwind-variants\";\nimport \"./toggle-switch.css\";\n\ninterface SwitchContextValue {\n\tslots?: ReturnType<typeof switchVariants>;\n}\n\nconst SwitchContext = createContext<SwitchContextValue>({});\n\nfunction composeTwRenderProps(className: any, tailwind?: string | ((values: any) => string | undefined)): string | ((values: any) => string) {\n\treturn composeRenderProps(className, (currentClassName, renderProps): string => {\n\t\tconst tw = typeof tailwind === \"function\" ? (tailwind(renderProps) ?? \"\") : (tailwind ?? \"\");\n\t\tconst cls = currentClassName ?? \"\";\n\n\t\treturn cx(tw, cls) ?? \"\";\n\t});\n}\n\nconst composeSlotClassName = (\n\tslotFn: ((args?: { className?: string; [key: string]: any }) => string) | undefined,\n\tclassName?: string,\n\tvariants?: Record<string, any>,\n): string | undefined => {\n\treturn typeof slotFn === \"function\" ? slotFn({ ...(variants ?? {}), className }) : className;\n};\n\ntype SwitchRootProps = SwitchPrimitiveProps & SwitchVariants;\n\nconst SwitchRoot = ({ children, className, size, ...props }: SwitchRootProps) => {\n\tconst slots = React.useMemo(() => switchVariants({ size }), [size]);\n\n\treturn (\n\t\t<SwitchContext.Provider value={{ slots }}>\n\t\t\t<SwitchPrimitive data-slot=\"switch\" {...props} className={composeTwRenderProps(className, slots.base())}>\n\t\t\t\t{(values: SwitchRenderProps) => <>{typeof children === \"function\" ? children(values as any) : children}</>}\n\t\t\t</SwitchPrimitive>\n\t\t</SwitchContext.Provider>\n\t);\n};\n\ninterface SwitchControlProps extends React.ComponentPropsWithRef<\"span\"> {}\n\nconst SwitchControl = ({ children, className, ...props }: SwitchControlProps) => {\n\tconst { slots } = useContext(SwitchContext);\n\n\treturn (\n\t\t<span className={composeSlotClassName(slots?.control, className)} data-slot=\"switch-control\" {...props}>\n\t\t\t{children}\n\t\t</span>\n\t);\n};\n\ninterface SwitchThumbProps extends React.ComponentPropsWithRef<\"span\"> {}\n\nconst SwitchThumb = ({ children, className, ...props }: SwitchThumbProps) => {\n\tconst { slots } = useContext(SwitchContext);\n\n\treturn (\n\t\t<span className={composeSlotClassName(slots?.thumb, className)} data-slot=\"switch-thumb\" {...props}>\n\t\t\t{children}\n\t\t</span>\n\t);\n};\n\ninterface SwitchIconProps extends React.ComponentPropsWithRef<\"span\"> {}\n\nconst SwitchIcon = ({ children, className, ...props }: SwitchIconProps) => {\n\tconst { slots } = useContext(SwitchContext);\n\n\treturn (\n\t\t<span className={composeSlotClassName(slots?.icon, className)} data-slot=\"switch-icon\" {...props}>\n\t\t\t{children}\n\t\t</span>\n\t);\n};\n\ninterface SwitchContentProps extends React.ComponentPropsWithRef<\"div\"> {}\n\nconst SwitchContent = ({ children, className, ...props }: SwitchContentProps) => {\n\tconst { slots } = useContext(SwitchContext);\n\n\treturn (\n\t\t<div className={composeSlotClassName(slots?.content, className)} data-slot=\"switch-content\" {...props}>\n\t\t\t{children}\n\t\t</div>\n\t);\n};\n\nexport { SwitchContent, SwitchControl, SwitchIcon, SwitchRoot, SwitchThumb };\n\nexport type { SwitchContentProps, SwitchControlProps, SwitchIconProps, SwitchRootProps, SwitchThumbProps };\n","import type { ComponentProps } from \"react\";\n\nimport { switchVariants } from \"@/theme/color/toggle-switch\";\nimport { SwitchContent, SwitchControl, SwitchIcon, SwitchRoot, SwitchThumb } from \"./toggle-switch\";\n\nexport const Switch = Object.assign(SwitchRoot, {\n\tRoot: SwitchRoot,\n\tContent: SwitchContent,\n\tControl: SwitchControl,\n\tThumb: SwitchThumb,\n\tIcon: SwitchIcon,\n});\n\nexport const ToggleSwitch = Switch;\n\nexport type Switch = {\n\tProps: ComponentProps<typeof SwitchRoot>;\n\tRootProps: ComponentProps<typeof SwitchRoot>;\n\tContentProps: ComponentProps<typeof SwitchContent>;\n\tControlProps: ComponentProps<typeof SwitchControl>;\n\tThumbProps: ComponentProps<typeof SwitchThumb>;\n\tIconProps: ComponentProps<typeof SwitchIcon>;\n};\n\nexport { SwitchRoot, SwitchContent, SwitchControl, SwitchIcon, SwitchThumb, switchVariants };\n\nexport type {\n\tSwitchRootProps,\n\tSwitchRootProps as SwitchProps,\n\tSwitchContentProps,\n\tSwitchControlProps,\n\tSwitchThumbProps,\n\tSwitchIconProps,\n} from \"./toggle-switch\";\n\nexport type { SwitchVariants } from \"@/theme/color/toggle-switch\";\n"],"names":["$jQnU8$useFormValidationState","$jQnU8$useState","$jQnU8$privateValidationStateProp","$dAajM$useState","$kf3DM$createContext","$kf3DM$forwardRef","$kf3DM$useObjectRef","$kf3DM$useMemo","$kf3DM$mergeRefs","$kf3DM$useToggleState","$kf3DM$useSwitch","$kf3DM$react","$kf3DM$useContext","$kf3DM$useFocusRing","$kf3DM$useHover","$kf3DM$filterDOMProps","$kf3DM$mergeProps","$kf3DM$VisuallyHidden","SwitchContext","createContext","composeTwRenderProps","className","tailwind","composeRenderProps","currentClassName","renderProps","tw","cls","cx","composeSlotClassName","slotFn","variants","SwitchRoot","t0","$","_c","children","props","size","t1","switchVariants","slots","t2","t3","base","t4","values","t5","SwitchPrimitive","t6","SwitchControl","useContext","control","SwitchThumb","thumb","SwitchIcon","icon","SwitchContent","content","Switch","Object","assign","Root","Content","Control","Thumb","Icon","ToggleSwitch"],"mappings":";;;;;;;;;;;;;;;AA+BA,SAAS,0CAA0C,OAAO,OAAO,KAAK;AAClE,MAAI,EAAE,aAAyB,OAAO,aAAyB,OAAO,OAAc,MAAY,MAAY,UAAoB,YAAwB,qBAAyC,QAAQ,cAAc,WAAW,mBAAmB,gBAAgB,oBAAoB,iBAAiB,cAA4B,YAAwB,eAA8B,SAAkB,WAAsB,QAAgB,IAAK;AAEzb,MAAI,kBAAsBA,0CAA+B;AAAA,IACrD,GAAG;AAAA,IACH,OAAO,MAAM;AAAA,EACrB,CAAK;AACD,MAAI,EAAE,WAAsB,kBAAoC,sBAAyC,gBAAgB;AACzH,EAAI,0CAA2C,OAAO,iBAAiB,GAAG;AAC1E,MAAI,WAAW,CAAC,MAAI;AAGhB,MAAE,gBAAe;AACjB,UAAM,YAAgB,0CAA2C,CAAC,EAAE,OAAO;AAAA,EAC/E;AACA,MAAI,cAAc,YAAY;AAC9B,MAAI,eAAe,aAAa,QAAQ,kBAAkB;AAC1D,MAAI,CAAC,eAAe,CAAC,gBAAgB,QAAQ,IAAI,aAAa,aAAc;AAE5E,MAAI,EAAE,YAAwB,UAAoB,IAAS,0CAA2C;AAAA,IAClG;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACR,CAAK;AAED,MAAI,CAAC,gBAAgB,eAAe,IAAQC,SAAiB,KAAK;AAClE,MAAI,EAAE,YAAY,WAAU,IAAS,0CAA2C;AAAA,IAC5E,aAAc,GAAG;AAEb,UAAI,EAAE,gBAAgB,cAAc,EAAE,gBAAgB,WAAW;AAC7D,UAAE,oBA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;AAAA,SAFNS;AAEM;ACvFD,MAAMgB,UAASC,OAAOC,OAAO7B,YAAY;AAAA,EAC/C8B,MAAM9B;AAAAA,EACN+B,SAASN;AAAAA,EACTO,SAASd;AAAAA,EACTe,OAAOZ;AAAAA,EACPa,MAAMX;AACP,CAAC;AAEM,MAAMY,eAAeR;","x_google_ignoreList":[0,1,2,3]}
|
|
@@ -6,9 +6,9 @@ const compilerRuntime = require("react/compiler-runtime");
|
|
|
6
6
|
const React = require("react");
|
|
7
7
|
const utils = require("../chunks/utils-DvHk9ofL.js");
|
|
8
8
|
const BaseCollection = require("../chunks/BaseCollection-DxI8p0cP.js");
|
|
9
|
-
const FocusScope = require("../chunks/FocusScope-
|
|
9
|
+
const FocusScope = require("../chunks/FocusScope-4TdD5fCA.js");
|
|
10
10
|
const filterDOMProps = require("../chunks/filterDOMProps-JgzPXl3Q.js");
|
|
11
|
-
const focusSafely = require("../chunks/focusSafely-
|
|
11
|
+
const focusSafely = require("../chunks/focusSafely-CKxVSn6H.js");
|
|
12
12
|
const I18nProvider = require("../chunks/I18nProvider-BUfkOEhQ.js");
|
|
13
13
|
const tailwindVariants = require("tailwind-variants");
|
|
14
14
|
const $e28ab3efe3e87743$export$6615d83f6de245ce = /* @__PURE__ */ React.createContext({});
|
package/dist/toolbar/index.es.js
CHANGED
|
@@ -2,12 +2,12 @@ import { t as tv } from "../chunks/tv-CBcwbOk5.js";
|
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { c } from "react/compiler-runtime";
|
|
4
4
|
import React__default, { createContext, useState, useRef, forwardRef } from "react";
|
|
5
|
-
import {
|
|
5
|
+
import { g as $c4867b2f328c2698$export$e5c5a5f917a5871c, $ as $7230ffa83bc0c2cf$export$29f1550f4b0d4415, b as $7230ffa83bc0c2cf$export$4d86445c2cf5e3, c as $7230ffa83bc0c2cf$export$df3a06d6289f983e, d as $bbaa08b3cd72f041$export$9d1611c77c2fe928, e as $7230ffa83bc0c2cf$export$c245e6201fed2f75 } from "../chunks/utils-BCEhcDlv.js";
|
|
6
6
|
import { $ as $6f0c29017aeec335$export$d68d59712b04d9d1 } from "../chunks/BaseCollection-CdxYWaH6.js";
|
|
7
|
-
import { $ as $535772f9d2c1f38d$export$c5251b9e124bf29 } from "../chunks/FocusScope-
|
|
7
|
+
import { $ as $535772f9d2c1f38d$export$c5251b9e124bf29 } from "../chunks/FocusScope-jSNMAXzg.js";
|
|
8
8
|
import { $ as $8e9d2fae0ecb9001$export$457c3d6518dd4c6f } from "../chunks/filterDOMProps-DqJGvnmf.js";
|
|
9
|
-
import { c as $23f2114a1b82827e$export$4282f70798064fe0, a as $23f2114a1b82827e$export$e58f029f0fbfdb29, g as $23f2114a1b82827e$export$cd4e5573fbe2b576 } from "../chunks/focusSafely
|
|
10
|
-
import { $ as $2eb8e6d23f3d0cb0$export$43bb16f9c6d9e3f7 } from "../chunks/I18nProvider-
|
|
9
|
+
import { c as $23f2114a1b82827e$export$4282f70798064fe0, a as $23f2114a1b82827e$export$e58f029f0fbfdb29, g as $23f2114a1b82827e$export$cd4e5573fbe2b576 } from "../chunks/focusSafely-DfEgLKh6.js";
|
|
10
|
+
import { $ as $2eb8e6d23f3d0cb0$export$43bb16f9c6d9e3f7 } from "../chunks/I18nProvider-Coj9x7B8.js";
|
|
11
11
|
import { cx } from "tailwind-variants";
|
|
12
12
|
const $e28ab3efe3e87743$export$6615d83f6de245ce = /* @__PURE__ */ createContext({});
|
|
13
13
|
const _$e28ab3efe3e87743$export$7750289ca694c0b5 = class _$e28ab3efe3e87743$export$7750289ca694c0b5 extends $6f0c29017aeec335$export$d68d59712b04d9d1 {
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "lizaui",
|
|
3
3
|
"private": false,
|
|
4
4
|
"license": "ISC",
|
|
5
|
-
"version": "12.0.
|
|
5
|
+
"version": "12.0.21",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "dist/index.cjs.js",
|
|
8
8
|
"module": "dist/index.es.js",
|
|
@@ -128,6 +128,11 @@
|
|
|
128
128
|
"import": "./dist/table/index.es.js",
|
|
129
129
|
"require": "./dist/table/index.cjs.js"
|
|
130
130
|
},
|
|
131
|
+
"./tabs": {
|
|
132
|
+
"types": "./dist/tabs.d.ts",
|
|
133
|
+
"import": "./dist/tabs/index.es.js",
|
|
134
|
+
"require": "./dist/tabs/index.cjs.js"
|
|
135
|
+
},
|
|
131
136
|
"./time-input": {
|
|
132
137
|
"types": "./dist/time-input.d.ts",
|
|
133
138
|
"import": "./dist/time-input/index.es.js",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Button-B-wLEikV.js","sources":["../../node_modules/.pnpm/react-aria@3.53.0_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-aria/dist/private/collections/Hidden.mjs","../../node_modules/.pnpm/react-aria@3.53.0_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-aria/dist/private/live-announcer/LiveAnnouncer.mjs","../../node_modules/.pnpm/react-aria@3.53.0_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-aria/dist/private/button/useButton.mjs","../../node_modules/.pnpm/react-aria-components@1.22.0_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-aria-components/dist/private/Button.mjs"],"sourcesContent":["import $iuCOg$react, {createContext as $iuCOg$createContext, useContext as $iuCOg$useContext, forwardRef as $iuCOg$forwardRef} from \"react\";\n\n/*\n * Copyright 2024 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// React doesn't understand the <template> element, which doesn't have children like a normal element.\n// It will throw an error during hydration when it expects the firstChild to contain content rendered\n// on the server, when in reality, the browser will have placed this inside the `content` document fragment.\n// This monkey patches the firstChild property for our special hidden template elements to work around this error.\n// does the same for appendChild/removeChild/insertBefore as per the issue below\n// See https://github.com/facebook/react/issues/19932\nif (typeof HTMLTemplateElement !== 'undefined') {\n Object.defineProperty(HTMLTemplateElement.prototype, 'firstChild', {\n configurable: true,\n enumerable: true,\n get: function() {\n return this.content.firstChild;\n }\n });\n Object.defineProperty(HTMLTemplateElement.prototype, 'appendChild', {\n configurable: true,\n enumerable: true,\n value: function(node) {\n return this.content.appendChild(node);\n }\n });\n Object.defineProperty(HTMLTemplateElement.prototype, 'removeChild', {\n configurable: true,\n enumerable: true,\n value: function(node) {\n return this.content.removeChild(node);\n }\n });\n Object.defineProperty(HTMLTemplateElement.prototype, 'insertBefore', {\n configurable: true,\n enumerable: true,\n value: function(node, child) {\n return this.content.insertBefore(node, child);\n }\n });\n}\nconst $d7f64c32b702fe2c$export$94b6d0abf7d33e8c = /*#__PURE__*/ (0, $iuCOg$createContext)(false);\nfunction $d7f64c32b702fe2c$export$8dc98ba7eadeaa56(props) {\n let isHidden = (0, $iuCOg$useContext)($d7f64c32b702fe2c$export$94b6d0abf7d33e8c);\n if (isHidden) // Don't hide again if we are already hidden.\n return /*#__PURE__*/ (0, $iuCOg$react).createElement((0, $iuCOg$react).Fragment, null, props.children);\n let children = /*#__PURE__*/ (0, $iuCOg$react).createElement($d7f64c32b702fe2c$export$94b6d0abf7d33e8c.Provider, {\n value: true\n }, props.children);\n // In SSR, portals are not supported by React. Instead, always render into a <template>\n // element, which the browser will never display to the user. In addition, the\n // content is not part of the accessible DOM tree, so it won't affect ids or other accessibility attributes.\n return /*#__PURE__*/ (0, $iuCOg$react).createElement(\"template\", null, children);\n}\nfunction $d7f64c32b702fe2c$export$86427a43e3e48ebb(fn) {\n let Wrapper = (props, ref)=>{\n let isHidden = (0, $iuCOg$useContext)($d7f64c32b702fe2c$export$94b6d0abf7d33e8c);\n if (isHidden) return null;\n // oxlint-disable-next-line react/react-compiler\n return fn(props, ref);\n };\n // @ts-ignore - for react dev tools\n Wrapper.displayName = fn.displayName || fn.name;\n return (0, $iuCOg$forwardRef)(Wrapper);\n}\nfunction $d7f64c32b702fe2c$export$b5d7cc18bb8d2b59() {\n return (0, $iuCOg$useContext)($d7f64c32b702fe2c$export$94b6d0abf7d33e8c);\n}\n\n\nexport {$d7f64c32b702fe2c$export$94b6d0abf7d33e8c as HiddenContext, $d7f64c32b702fe2c$export$8dc98ba7eadeaa56 as Hidden, $d7f64c32b702fe2c$export$86427a43e3e48ebb as createHideableComponent, $d7f64c32b702fe2c$export$b5d7cc18bb8d2b59 as useIsHidden};\n//# sourceMappingURL=Hidden.mjs.map\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 */ /* Inspired by https://github.com/AlmeroSteyn/react-aria-live */ const $a46cf152bb926da5$var$LIVEREGION_TIMEOUT_DELAY = 7000;\nlet $a46cf152bb926da5$var$liveAnnouncer = null;\nfunction $a46cf152bb926da5$export$a9b970dcc4ae71a9(message, assertiveness = 'assertive', timeout = $a46cf152bb926da5$var$LIVEREGION_TIMEOUT_DELAY) {\n if (!$a46cf152bb926da5$var$liveAnnouncer) {\n $a46cf152bb926da5$var$liveAnnouncer = new $a46cf152bb926da5$var$LiveAnnouncer();\n // wait for the live announcer regions to be added to the dom, then announce\n // otherwise Safari won't announce the message if it's added too quickly\n // found most times less than 100ms were not consistent when announcing with Safari\n // IS_REACT_ACT_ENVIRONMENT is used by React 18. Previous versions checked for the `jest` global.\n // https://github.com/reactwg/react-18/discussions/102\n // if we're in a test environment, announce without waiting\n if (// @ts-ignore\n !(typeof IS_REACT_ACT_ENVIRONMENT === 'boolean' ? IS_REACT_ACT_ENVIRONMENT : typeof jest !== 'undefined')) setTimeout(()=>{\n if ($a46cf152bb926da5$var$liveAnnouncer?.isAttached()) $a46cf152bb926da5$var$liveAnnouncer?.announce(message, assertiveness, timeout);\n }, 100);\n else $a46cf152bb926da5$var$liveAnnouncer.announce(message, assertiveness, timeout);\n } else $a46cf152bb926da5$var$liveAnnouncer.announce(message, assertiveness, timeout);\n}\nfunction $a46cf152bb926da5$export$d10ae4f68404609a(assertiveness) {\n if ($a46cf152bb926da5$var$liveAnnouncer) $a46cf152bb926da5$var$liveAnnouncer.clear(assertiveness);\n}\nfunction $a46cf152bb926da5$export$d8686216b8b81b2f() {\n if ($a46cf152bb926da5$var$liveAnnouncer) {\n $a46cf152bb926da5$var$liveAnnouncer.destroy();\n $a46cf152bb926da5$var$liveAnnouncer = null;\n }\n}\n// LiveAnnouncer is implemented using vanilla DOM, not React. That's because as of React 18\n// ReactDOM.render is deprecated, and the replacement, ReactDOM.createRoot is moved into a\n// subpath import `react-dom/client`. That makes it hard for us to support multiple React versions.\n// As a global API, we can't use portals without introducing a breaking API change. LiveAnnouncer\n// is simple enough to implement without React, so that's what we do here.\n// See this discussion for more details: https://github.com/reactwg/react-18/discussions/125#discussioncomment-2382638\nclass $a46cf152bb926da5$var$LiveAnnouncer {\n constructor(){\n this.node = null;\n this.assertiveLog = null;\n this.politeLog = null;\n if (typeof document !== 'undefined') {\n this.node = document.createElement('div');\n this.node.dataset.liveAnnouncer = 'true';\n // copied from VisuallyHidden\n Object.assign(this.node.style, {\n border: 0,\n clip: 'rect(0 0 0 0)',\n clipPath: 'inset(50%)',\n height: '1px',\n margin: '-1px',\n overflow: 'hidden',\n padding: 0,\n position: 'absolute',\n width: '1px',\n whiteSpace: 'nowrap'\n });\n this.assertiveLog = this.createLog('assertive');\n this.node.appendChild(this.assertiveLog);\n this.politeLog = this.createLog('polite');\n this.node.appendChild(this.politeLog);\n document.body.prepend(this.node);\n }\n }\n isAttached() {\n return this.node?.isConnected;\n }\n createLog(ariaLive) {\n let node = document.createElement('div');\n node.setAttribute('role', 'log');\n node.setAttribute('aria-live', ariaLive);\n node.setAttribute('aria-relevant', 'additions');\n return node;\n }\n destroy() {\n if (!this.node) return;\n document.body.removeChild(this.node);\n this.node = null;\n }\n announce(message, assertiveness = 'assertive', timeout = $a46cf152bb926da5$var$LIVEREGION_TIMEOUT_DELAY) {\n if (!this.node) return;\n let node = document.createElement('div');\n if (typeof message === 'object') {\n // To read an aria-labelledby, the element must have an appropriate role, such as img.\n node.setAttribute('role', 'img');\n node.setAttribute('aria-labelledby', message['aria-labelledby']);\n } else node.textContent = message;\n if (assertiveness === 'assertive') this.assertiveLog?.appendChild(node);\n else this.politeLog?.appendChild(node);\n if (message !== '') setTimeout(()=>{\n node.remove();\n }, timeout);\n }\n clear(assertiveness) {\n if (!this.node) return;\n if ((!assertiveness || assertiveness === 'assertive') && this.assertiveLog) this.assertiveLog.innerHTML = '';\n if ((!assertiveness || assertiveness === 'polite') && this.politeLog) this.politeLog.innerHTML = '';\n }\n}\n\n\nexport {$a46cf152bb926da5$export$a9b970dcc4ae71a9 as announce, $a46cf152bb926da5$export$d10ae4f68404609a as clearAnnouncer, $a46cf152bb926da5$export$d8686216b8b81b2f as destroyAnnouncer};\n//# sourceMappingURL=LiveAnnouncer.mjs.map\n","import {filterDOMProps as $8e9d2fae0ecb9001$export$457c3d6518dd4c6f} from \"../utils/filterDOMProps.mjs\";\nimport {mergeProps as $bbaa08b3cd72f041$export$9d1611c77c2fe928} from \"../utils/mergeProps.mjs\";\nimport {useFocusable as $d1116acdf220c2da$export$4c014de7c8940b4c} from \"../interactions/useFocusable.mjs\";\nimport {usePress as $d27d541f9569d26d$export$45712eceda6fad21} from \"../interactions/usePress.mjs\";\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\nfunction $ac4318a9c075bb9f$export$ea18c227d4417cc3(props, ref) {\n let { elementType: elementType = 'button', isDisabled: isDisabled, onPress: onPress, onPressStart: onPressStart, onPressEnd: onPressEnd, onPressUp: onPressUp, onPressChange: onPressChange, preventFocusOnPress: preventFocusOnPress, allowFocusWhenDisabled: // @ts-ignore - undocumented\n allowFocusWhenDisabled, onClick: onClick, href: href, target: target, rel: rel, type: type = 'button' } = props;\n let additionalProps;\n if (elementType === 'button') additionalProps = {\n type: type,\n disabled: isDisabled,\n form: props.form,\n formAction: props.formAction,\n formEncType: props.formEncType,\n formMethod: props.formMethod,\n formNoValidate: props.formNoValidate,\n formTarget: props.formTarget,\n name: props.name,\n value: props.value\n };\n else additionalProps = {\n role: 'button',\n href: elementType === 'a' && !isDisabled ? href : undefined,\n target: elementType === 'a' ? target : undefined,\n type: elementType === 'input' ? type : undefined,\n disabled: elementType === 'input' ? isDisabled : undefined,\n 'aria-disabled': !isDisabled || elementType === 'input' ? undefined : isDisabled,\n rel: elementType === 'a' ? rel : undefined\n };\n let { pressProps: pressProps, isPressed: isPressed } = (0, $d27d541f9569d26d$export$45712eceda6fad21)({\n onPressStart: onPressStart,\n onPressEnd: onPressEnd,\n onPressChange: onPressChange,\n onPress: onPress,\n onPressUp: onPressUp,\n onClick: onClick,\n isDisabled: isDisabled,\n preventFocusOnPress: preventFocusOnPress,\n ref: ref\n });\n let { focusableProps: focusableProps } = (0, $d1116acdf220c2da$export$4c014de7c8940b4c)(props, ref);\n if (allowFocusWhenDisabled) // oxlint-disable-next-line react/react-compiler\n focusableProps.tabIndex = isDisabled ? -1 : focusableProps.tabIndex;\n let buttonProps = (0, $bbaa08b3cd72f041$export$9d1611c77c2fe928)(focusableProps, pressProps, (0, $8e9d2fae0ecb9001$export$457c3d6518dd4c6f)(props, {\n labelable: true\n }));\n return {\n isPressed: isPressed,\n buttonProps: (0, $bbaa08b3cd72f041$export$9d1611c77c2fe928)(additionalProps, buttonProps, {\n 'aria-haspopup': props['aria-haspopup'],\n 'aria-expanded': props['aria-expanded'],\n 'aria-controls': props['aria-controls'],\n 'aria-pressed': props['aria-pressed'],\n 'aria-current': props['aria-current'],\n 'aria-disabled': props['aria-disabled']\n })\n };\n}\n\n\nexport {$ac4318a9c075bb9f$export$ea18c227d4417cc3 as useButton};\n//# sourceMappingURL=useButton.mjs.map\n","import {dom as $7230ffa83bc0c2cf$export$df3a06d6289f983e, useContextProps as $7230ffa83bc0c2cf$export$29f1550f4b0d4415, useRenderProps as $7230ffa83bc0c2cf$export$4d86445c2cf5e3} from \"./utils.mjs\";\nimport {ProgressBarContext as $6c0095e7e99364f2$export$e9f3bf65a26ce129} from \"./ProgressBar.mjs\";\nimport {announce as $9s8kH$announce} from \"react-aria/private/live-announcer/LiveAnnouncer\";\nimport {useButton as $9s8kH$useButton} from \"react-aria/useButton\";\nimport {createHideableComponent as $9s8kH$createHideableComponent} from \"react-aria/private/collections/Hidden\";\nimport {filterDOMProps as $9s8kH$filterDOMProps} from \"react-aria/filterDOMProps\";\nimport {mergeProps as $9s8kH$mergeProps} from \"react-aria/mergeProps\";\nimport $9s8kH$react, {createContext as $9s8kH$createContext, useRef as $9s8kH$useRef, useEffect as $9s8kH$useEffect} from \"react\";\nimport {useFocusRing as $9s8kH$useFocusRing} from \"react-aria/useFocusRing\";\nimport {useHover as $9s8kH$useHover} from \"react-aria/useHover\";\nimport {useId as $9s8kH$useId} from \"react-aria/useId\";\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\n\n\n\n\nconst $7705c033048f6da7$export$24d547caef80ccd1 = /*#__PURE__*/ (0, $9s8kH$createContext)({});\nconst $7705c033048f6da7$export$353f5b6fc5456de1 = /*#__PURE__*/ (0, $9s8kH$createHideableComponent)(function Button(props, ref) {\n [props, ref] = (0, $7230ffa83bc0c2cf$export$29f1550f4b0d4415)(props, ref, $7705c033048f6da7$export$24d547caef80ccd1);\n let ctx = props;\n let { isPending: isPending } = ctx;\n let { buttonProps: buttonProps, isPressed: isPressed } = (0, $9s8kH$useButton)(props, ref);\n buttonProps = $7705c033048f6da7$var$useDisableInteractions(buttonProps, isPending);\n let { focusProps: focusProps, isFocused: isFocused, isFocusVisible: isFocusVisible } = (0, $9s8kH$useFocusRing)(props);\n let { hoverProps: hoverProps, isHovered: isHovered } = (0, $9s8kH$useHover)({\n ...props,\n isDisabled: props.isDisabled || isPending\n });\n let renderValues = {\n isHovered: isHovered,\n isPressed: (ctx.isPressed || isPressed) && !isPending,\n isFocused: isFocused,\n isFocusVisible: isFocusVisible,\n isDisabled: props.isDisabled || false,\n isPending: isPending ?? false\n };\n let renderProps = (0, $7230ffa83bc0c2cf$export$4d86445c2cf5e3)({\n ...props,\n values: renderValues,\n defaultClassName: 'react-aria-Button'\n });\n let buttonId = (0, $9s8kH$useId)(buttonProps.id);\n let progressId = (0, $9s8kH$useId)();\n let ariaLabelledby = buttonProps['aria-labelledby'];\n if (isPending) {\n // aria-labelledby wins over aria-label\n // https://www.w3.org/TR/accname-1.2/#computation-steps\n if (ariaLabelledby) ariaLabelledby = `${ariaLabelledby} ${progressId}`;\n else if (buttonProps['aria-label']) ariaLabelledby = `${buttonId} ${progressId}`;\n }\n let wasPending = (0, $9s8kH$useRef)(isPending);\n (0, $9s8kH$useEffect)(()=>{\n let message = {\n 'aria-labelledby': ariaLabelledby || buttonId\n };\n if (!wasPending.current && isFocused && isPending) (0, $9s8kH$announce)(message, 'assertive');\n else if (wasPending.current && isFocused && !isPending) (0, $9s8kH$announce)(message, 'assertive');\n wasPending.current = isPending;\n }, [\n isPending,\n isFocused,\n ariaLabelledby,\n buttonId\n ]);\n let DOMProps = (0, $9s8kH$filterDOMProps)(props, {\n global: true\n });\n delete DOMProps.onClick;\n return /*#__PURE__*/ (0, $9s8kH$react).createElement((0, $7230ffa83bc0c2cf$export$df3a06d6289f983e).button, {\n ...(0, $9s8kH$mergeProps)(DOMProps, renderProps, buttonProps, focusProps, hoverProps),\n // When the button is in a pending state, we want to stop implicit form submission (ie. when the user presses enter on a text input).\n // We do this by changing the button's type to button.\n type: buttonProps.type === 'submit' && isPending ? 'button' : buttonProps.type,\n id: buttonId,\n ref: ref,\n \"aria-labelledby\": ariaLabelledby,\n slot: props.slot || undefined,\n \"aria-disabled\": isPending ? 'true' : buttonProps['aria-disabled'],\n \"data-disabled\": props.isDisabled || undefined,\n \"data-pressed\": renderValues.isPressed || undefined,\n \"data-hovered\": isHovered || undefined,\n \"data-focused\": isFocused || undefined,\n \"data-pending\": isPending || undefined,\n \"data-focus-visible\": isFocusVisible || undefined\n }, /*#__PURE__*/ (0, $9s8kH$react).createElement((0, $6c0095e7e99364f2$export$e9f3bf65a26ce129).Provider, {\n value: {\n id: progressId\n }\n }, renderProps.children));\n});\n// Events to preserve when isPending is true (for tooltips and other overlays)\nconst $7705c033048f6da7$var$PRESERVED_EVENT_PATTERN = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;\nfunction $7705c033048f6da7$var$useDisableInteractions(props, isPending) {\n if (isPending) {\n for(const key in props)if (key.startsWith('on') && !$7705c033048f6da7$var$PRESERVED_EVENT_PATTERN.test(key)) props[key] = undefined;\n props.href = undefined;\n props.target = undefined;\n }\n return props;\n}\n\n\nexport {$7705c033048f6da7$export$24d547caef80ccd1 as ButtonContext, $7705c033048f6da7$export$353f5b6fc5456de1 as Button};\n//# sourceMappingURL=Button.mjs.map\n"],"names":["$iuCOg$createContext","$iuCOg$useContext","$iuCOg$react","$iuCOg$forwardRef","$9s8kH$createContext","$9s8kH$createHideableComponent","$9s8kH$useButton","$9s8kH$useFocusRing","$9s8kH$useHover","$9s8kH$useId","$9s8kH$useRef","$9s8kH$useEffect","$9s8kH$announce","$9s8kH$filterDOMProps","$9s8kH$react","$9s8kH$mergeProps"],"mappings":";;;;;;AAmBA,IAAI,OAAO,wBAAwB,aAAa;AAC5C,SAAO,eAAe,oBAAoB,WAAW,cAAc;AAAA,IAC/D,cAAc;AAAA,IACd,YAAY;AAAA,IACZ,KAAK,WAAW;AACZ,aAAO,KAAK,QAAQ;AAAA,IACxB;AAAA,EACR,CAAK;AACD,SAAO,eAAe,oBAAoB,WAAW,eAAe;AAAA,IAChE,cAAc;AAAA,IACd,YAAY;AAAA,IACZ,OAAO,SAAS,MAAM;AAClB,aAAO,KAAK,QAAQ,YAAY,IAAI;AAAA,IACxC;AAAA,EACR,CAAK;AACD,SAAO,eAAe,oBAAoB,WAAW,eAAe;AAAA,IAChE,cAAc;AAAA,IACd,YAAY;AAAA,IACZ,OAAO,SAAS,MAAM;AAClB,aAAO,KAAK,QAAQ,YAAY,IAAI;AAAA,IACxC;AAAA,EACR,CAAK;AACD,SAAO,eAAe,oBAAoB,WAAW,gBAAgB;AAAA,IACjE,cAAc;AAAA,IACd,YAAY;AAAA,IACZ,OAAO,SAAS,MAAM,OAAO;AACzB,aAAO,KAAK,QAAQ,aAAa,MAAM,KAAK;AAAA,IAChD;AAAA,EACR,CAAK;AACL;AACA,MAAM,4CAA8DA,8BAAsB,KAAK;AAC/F,SAAS,0CAA0C,OAAO;AACtD,MAAI,WAAeC,WAAmB,yCAAyC;AAC/E,MAAI;AACJ,WAAyBC,+BAAc,cAAkBA,e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,SAAO;AACX;","x_google_ignoreList":[0,1,2,3]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Button-DdtCMsXJ.js","sources":["../../node_modules/.pnpm/react-aria@3.53.0_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-aria/dist/private/collections/Hidden.mjs","../../node_modules/.pnpm/react-aria@3.53.0_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-aria/dist/private/live-announcer/LiveAnnouncer.mjs","../../node_modules/.pnpm/react-aria@3.53.0_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-aria/dist/private/button/useButton.mjs","../../node_modules/.pnpm/react-aria-components@1.22.0_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-aria-components/dist/private/Button.mjs"],"sourcesContent":["import $iuCOg$react, {createContext as $iuCOg$createContext, useContext as $iuCOg$useContext, forwardRef as $iuCOg$forwardRef} from \"react\";\n\n/*\n * Copyright 2024 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// React doesn't understand the <template> element, which doesn't have children like a normal element.\n// It will throw an error during hydration when it expects the firstChild to contain content rendered\n// on the server, when in reality, the browser will have placed this inside the `content` document fragment.\n// This monkey patches the firstChild property for our special hidden template elements to work around this error.\n// does the same for appendChild/removeChild/insertBefore as per the issue below\n// See https://github.com/facebook/react/issues/19932\nif (typeof HTMLTemplateElement !== 'undefined') {\n Object.defineProperty(HTMLTemplateElement.prototype, 'firstChild', {\n configurable: true,\n enumerable: true,\n get: function() {\n return this.content.firstChild;\n }\n });\n Object.defineProperty(HTMLTemplateElement.prototype, 'appendChild', {\n configurable: true,\n enumerable: true,\n value: function(node) {\n return this.content.appendChild(node);\n }\n });\n Object.defineProperty(HTMLTemplateElement.prototype, 'removeChild', {\n configurable: true,\n enumerable: true,\n value: function(node) {\n return this.content.removeChild(node);\n }\n });\n Object.defineProperty(HTMLTemplateElement.prototype, 'insertBefore', {\n configurable: true,\n enumerable: true,\n value: function(node, child) {\n return this.content.insertBefore(node, child);\n }\n });\n}\nconst $d7f64c32b702fe2c$export$94b6d0abf7d33e8c = /*#__PURE__*/ (0, $iuCOg$createContext)(false);\nfunction $d7f64c32b702fe2c$export$8dc98ba7eadeaa56(props) {\n let isHidden = (0, $iuCOg$useContext)($d7f64c32b702fe2c$export$94b6d0abf7d33e8c);\n if (isHidden) // Don't hide again if we are already hidden.\n return /*#__PURE__*/ (0, $iuCOg$react).createElement((0, $iuCOg$react).Fragment, null, props.children);\n let children = /*#__PURE__*/ (0, $iuCOg$react).createElement($d7f64c32b702fe2c$export$94b6d0abf7d33e8c.Provider, {\n value: true\n }, props.children);\n // In SSR, portals are not supported by React. Instead, always render into a <template>\n // element, which the browser will never display to the user. In addition, the\n // content is not part of the accessible DOM tree, so it won't affect ids or other accessibility attributes.\n return /*#__PURE__*/ (0, $iuCOg$react).createElement(\"template\", null, children);\n}\nfunction $d7f64c32b702fe2c$export$86427a43e3e48ebb(fn) {\n let Wrapper = (props, ref)=>{\n let isHidden = (0, $iuCOg$useContext)($d7f64c32b702fe2c$export$94b6d0abf7d33e8c);\n if (isHidden) return null;\n // oxlint-disable-next-line react/react-compiler\n return fn(props, ref);\n };\n // @ts-ignore - for react dev tools\n Wrapper.displayName = fn.displayName || fn.name;\n return (0, $iuCOg$forwardRef)(Wrapper);\n}\nfunction $d7f64c32b702fe2c$export$b5d7cc18bb8d2b59() {\n return (0, $iuCOg$useContext)($d7f64c32b702fe2c$export$94b6d0abf7d33e8c);\n}\n\n\nexport {$d7f64c32b702fe2c$export$94b6d0abf7d33e8c as HiddenContext, $d7f64c32b702fe2c$export$8dc98ba7eadeaa56 as Hidden, $d7f64c32b702fe2c$export$86427a43e3e48ebb as createHideableComponent, $d7f64c32b702fe2c$export$b5d7cc18bb8d2b59 as useIsHidden};\n//# sourceMappingURL=Hidden.mjs.map\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 */ /* Inspired by https://github.com/AlmeroSteyn/react-aria-live */ const $a46cf152bb926da5$var$LIVEREGION_TIMEOUT_DELAY = 7000;\nlet $a46cf152bb926da5$var$liveAnnouncer = null;\nfunction $a46cf152bb926da5$export$a9b970dcc4ae71a9(message, assertiveness = 'assertive', timeout = $a46cf152bb926da5$var$LIVEREGION_TIMEOUT_DELAY) {\n if (!$a46cf152bb926da5$var$liveAnnouncer) {\n $a46cf152bb926da5$var$liveAnnouncer = new $a46cf152bb926da5$var$LiveAnnouncer();\n // wait for the live announcer regions to be added to the dom, then announce\n // otherwise Safari won't announce the message if it's added too quickly\n // found most times less than 100ms were not consistent when announcing with Safari\n // IS_REACT_ACT_ENVIRONMENT is used by React 18. Previous versions checked for the `jest` global.\n // https://github.com/reactwg/react-18/discussions/102\n // if we're in a test environment, announce without waiting\n if (// @ts-ignore\n !(typeof IS_REACT_ACT_ENVIRONMENT === 'boolean' ? IS_REACT_ACT_ENVIRONMENT : typeof jest !== 'undefined')) setTimeout(()=>{\n if ($a46cf152bb926da5$var$liveAnnouncer?.isAttached()) $a46cf152bb926da5$var$liveAnnouncer?.announce(message, assertiveness, timeout);\n }, 100);\n else $a46cf152bb926da5$var$liveAnnouncer.announce(message, assertiveness, timeout);\n } else $a46cf152bb926da5$var$liveAnnouncer.announce(message, assertiveness, timeout);\n}\nfunction $a46cf152bb926da5$export$d10ae4f68404609a(assertiveness) {\n if ($a46cf152bb926da5$var$liveAnnouncer) $a46cf152bb926da5$var$liveAnnouncer.clear(assertiveness);\n}\nfunction $a46cf152bb926da5$export$d8686216b8b81b2f() {\n if ($a46cf152bb926da5$var$liveAnnouncer) {\n $a46cf152bb926da5$var$liveAnnouncer.destroy();\n $a46cf152bb926da5$var$liveAnnouncer = null;\n }\n}\n// LiveAnnouncer is implemented using vanilla DOM, not React. That's because as of React 18\n// ReactDOM.render is deprecated, and the replacement, ReactDOM.createRoot is moved into a\n// subpath import `react-dom/client`. That makes it hard for us to support multiple React versions.\n// As a global API, we can't use portals without introducing a breaking API change. LiveAnnouncer\n// is simple enough to implement without React, so that's what we do here.\n// See this discussion for more details: https://github.com/reactwg/react-18/discussions/125#discussioncomment-2382638\nclass $a46cf152bb926da5$var$LiveAnnouncer {\n constructor(){\n this.node = null;\n this.assertiveLog = null;\n this.politeLog = null;\n if (typeof document !== 'undefined') {\n this.node = document.createElement('div');\n this.node.dataset.liveAnnouncer = 'true';\n // copied from VisuallyHidden\n Object.assign(this.node.style, {\n border: 0,\n clip: 'rect(0 0 0 0)',\n clipPath: 'inset(50%)',\n height: '1px',\n margin: '-1px',\n overflow: 'hidden',\n padding: 0,\n position: 'absolute',\n width: '1px',\n whiteSpace: 'nowrap'\n });\n this.assertiveLog = this.createLog('assertive');\n this.node.appendChild(this.assertiveLog);\n this.politeLog = this.createLog('polite');\n this.node.appendChild(this.politeLog);\n document.body.prepend(this.node);\n }\n }\n isAttached() {\n return this.node?.isConnected;\n }\n createLog(ariaLive) {\n let node = document.createElement('div');\n node.setAttribute('role', 'log');\n node.setAttribute('aria-live', ariaLive);\n node.setAttribute('aria-relevant', 'additions');\n return node;\n }\n destroy() {\n if (!this.node) return;\n document.body.removeChild(this.node);\n this.node = null;\n }\n announce(message, assertiveness = 'assertive', timeout = $a46cf152bb926da5$var$LIVEREGION_TIMEOUT_DELAY) {\n if (!this.node) return;\n let node = document.createElement('div');\n if (typeof message === 'object') {\n // To read an aria-labelledby, the element must have an appropriate role, such as img.\n node.setAttribute('role', 'img');\n node.setAttribute('aria-labelledby', message['aria-labelledby']);\n } else node.textContent = message;\n if (assertiveness === 'assertive') this.assertiveLog?.appendChild(node);\n else this.politeLog?.appendChild(node);\n if (message !== '') setTimeout(()=>{\n node.remove();\n }, timeout);\n }\n clear(assertiveness) {\n if (!this.node) return;\n if ((!assertiveness || assertiveness === 'assertive') && this.assertiveLog) this.assertiveLog.innerHTML = '';\n if ((!assertiveness || assertiveness === 'polite') && this.politeLog) this.politeLog.innerHTML = '';\n }\n}\n\n\nexport {$a46cf152bb926da5$export$a9b970dcc4ae71a9 as announce, $a46cf152bb926da5$export$d10ae4f68404609a as clearAnnouncer, $a46cf152bb926da5$export$d8686216b8b81b2f as destroyAnnouncer};\n//# sourceMappingURL=LiveAnnouncer.mjs.map\n","import {filterDOMProps as $8e9d2fae0ecb9001$export$457c3d6518dd4c6f} from \"../utils/filterDOMProps.mjs\";\nimport {mergeProps as $bbaa08b3cd72f041$export$9d1611c77c2fe928} from \"../utils/mergeProps.mjs\";\nimport {useFocusable as $d1116acdf220c2da$export$4c014de7c8940b4c} from \"../interactions/useFocusable.mjs\";\nimport {usePress as $d27d541f9569d26d$export$45712eceda6fad21} from \"../interactions/usePress.mjs\";\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\nfunction $ac4318a9c075bb9f$export$ea18c227d4417cc3(props, ref) {\n let { elementType: elementType = 'button', isDisabled: isDisabled, onPress: onPress, onPressStart: onPressStart, onPressEnd: onPressEnd, onPressUp: onPressUp, onPressChange: onPressChange, preventFocusOnPress: preventFocusOnPress, allowFocusWhenDisabled: // @ts-ignore - undocumented\n allowFocusWhenDisabled, onClick: onClick, href: href, target: target, rel: rel, type: type = 'button' } = props;\n let additionalProps;\n if (elementType === 'button') additionalProps = {\n type: type,\n disabled: isDisabled,\n form: props.form,\n formAction: props.formAction,\n formEncType: props.formEncType,\n formMethod: props.formMethod,\n formNoValidate: props.formNoValidate,\n formTarget: props.formTarget,\n name: props.name,\n value: props.value\n };\n else additionalProps = {\n role: 'button',\n href: elementType === 'a' && !isDisabled ? href : undefined,\n target: elementType === 'a' ? target : undefined,\n type: elementType === 'input' ? type : undefined,\n disabled: elementType === 'input' ? isDisabled : undefined,\n 'aria-disabled': !isDisabled || elementType === 'input' ? undefined : isDisabled,\n rel: elementType === 'a' ? rel : undefined\n };\n let { pressProps: pressProps, isPressed: isPressed } = (0, $d27d541f9569d26d$export$45712eceda6fad21)({\n onPressStart: onPressStart,\n onPressEnd: onPressEnd,\n onPressChange: onPressChange,\n onPress: onPress,\n onPressUp: onPressUp,\n onClick: onClick,\n isDisabled: isDisabled,\n preventFocusOnPress: preventFocusOnPress,\n ref: ref\n });\n let { focusableProps: focusableProps } = (0, $d1116acdf220c2da$export$4c014de7c8940b4c)(props, ref);\n if (allowFocusWhenDisabled) // oxlint-disable-next-line react/react-compiler\n focusableProps.tabIndex = isDisabled ? -1 : focusableProps.tabIndex;\n let buttonProps = (0, $bbaa08b3cd72f041$export$9d1611c77c2fe928)(focusableProps, pressProps, (0, $8e9d2fae0ecb9001$export$457c3d6518dd4c6f)(props, {\n labelable: true\n }));\n return {\n isPressed: isPressed,\n buttonProps: (0, $bbaa08b3cd72f041$export$9d1611c77c2fe928)(additionalProps, buttonProps, {\n 'aria-haspopup': props['aria-haspopup'],\n 'aria-expanded': props['aria-expanded'],\n 'aria-controls': props['aria-controls'],\n 'aria-pressed': props['aria-pressed'],\n 'aria-current': props['aria-current'],\n 'aria-disabled': props['aria-disabled']\n })\n };\n}\n\n\nexport {$ac4318a9c075bb9f$export$ea18c227d4417cc3 as useButton};\n//# sourceMappingURL=useButton.mjs.map\n","import {dom as $7230ffa83bc0c2cf$export$df3a06d6289f983e, useContextProps as $7230ffa83bc0c2cf$export$29f1550f4b0d4415, useRenderProps as $7230ffa83bc0c2cf$export$4d86445c2cf5e3} from \"./utils.mjs\";\nimport {ProgressBarContext as $6c0095e7e99364f2$export$e9f3bf65a26ce129} from \"./ProgressBar.mjs\";\nimport {announce as $9s8kH$announce} from \"react-aria/private/live-announcer/LiveAnnouncer\";\nimport {useButton as $9s8kH$useButton} from \"react-aria/useButton\";\nimport {createHideableComponent as $9s8kH$createHideableComponent} from \"react-aria/private/collections/Hidden\";\nimport {filterDOMProps as $9s8kH$filterDOMProps} from \"react-aria/filterDOMProps\";\nimport {mergeProps as $9s8kH$mergeProps} from \"react-aria/mergeProps\";\nimport $9s8kH$react, {createContext as $9s8kH$createContext, useRef as $9s8kH$useRef, useEffect as $9s8kH$useEffect} from \"react\";\nimport {useFocusRing as $9s8kH$useFocusRing} from \"react-aria/useFocusRing\";\nimport {useHover as $9s8kH$useHover} from \"react-aria/useHover\";\nimport {useId as $9s8kH$useId} from \"react-aria/useId\";\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\n\n\n\n\nconst $7705c033048f6da7$export$24d547caef80ccd1 = /*#__PURE__*/ (0, $9s8kH$createContext)({});\nconst $7705c033048f6da7$export$353f5b6fc5456de1 = /*#__PURE__*/ (0, $9s8kH$createHideableComponent)(function Button(props, ref) {\n [props, ref] = (0, $7230ffa83bc0c2cf$export$29f1550f4b0d4415)(props, ref, $7705c033048f6da7$export$24d547caef80ccd1);\n let ctx = props;\n let { isPending: isPending } = ctx;\n let { buttonProps: buttonProps, isPressed: isPressed } = (0, $9s8kH$useButton)(props, ref);\n buttonProps = $7705c033048f6da7$var$useDisableInteractions(buttonProps, isPending);\n let { focusProps: focusProps, isFocused: isFocused, isFocusVisible: isFocusVisible } = (0, $9s8kH$useFocusRing)(props);\n let { hoverProps: hoverProps, isHovered: isHovered } = (0, $9s8kH$useHover)({\n ...props,\n isDisabled: props.isDisabled || isPending\n });\n let renderValues = {\n isHovered: isHovered,\n isPressed: (ctx.isPressed || isPressed) && !isPending,\n isFocused: isFocused,\n isFocusVisible: isFocusVisible,\n isDisabled: props.isDisabled || false,\n isPending: isPending ?? false\n };\n let renderProps = (0, $7230ffa83bc0c2cf$export$4d86445c2cf5e3)({\n ...props,\n values: renderValues,\n defaultClassName: 'react-aria-Button'\n });\n let buttonId = (0, $9s8kH$useId)(buttonProps.id);\n let progressId = (0, $9s8kH$useId)();\n let ariaLabelledby = buttonProps['aria-labelledby'];\n if (isPending) {\n // aria-labelledby wins over aria-label\n // https://www.w3.org/TR/accname-1.2/#computation-steps\n if (ariaLabelledby) ariaLabelledby = `${ariaLabelledby} ${progressId}`;\n else if (buttonProps['aria-label']) ariaLabelledby = `${buttonId} ${progressId}`;\n }\n let wasPending = (0, $9s8kH$useRef)(isPending);\n (0, $9s8kH$useEffect)(()=>{\n let message = {\n 'aria-labelledby': ariaLabelledby || buttonId\n };\n if (!wasPending.current && isFocused && isPending) (0, $9s8kH$announce)(message, 'assertive');\n else if (wasPending.current && isFocused && !isPending) (0, $9s8kH$announce)(message, 'assertive');\n wasPending.current = isPending;\n }, [\n isPending,\n isFocused,\n ariaLabelledby,\n buttonId\n ]);\n let DOMProps = (0, $9s8kH$filterDOMProps)(props, {\n global: true\n });\n delete DOMProps.onClick;\n return /*#__PURE__*/ (0, $9s8kH$react).createElement((0, $7230ffa83bc0c2cf$export$df3a06d6289f983e).button, {\n ...(0, $9s8kH$mergeProps)(DOMProps, renderProps, buttonProps, focusProps, hoverProps),\n // When the button is in a pending state, we want to stop implicit form submission (ie. when the user presses enter on a text input).\n // We do this by changing the button's type to button.\n type: buttonProps.type === 'submit' && isPending ? 'button' : buttonProps.type,\n id: buttonId,\n ref: ref,\n \"aria-labelledby\": ariaLabelledby,\n slot: props.slot || undefined,\n \"aria-disabled\": isPending ? 'true' : buttonProps['aria-disabled'],\n \"data-disabled\": props.isDisabled || undefined,\n \"data-pressed\": renderValues.isPressed || undefined,\n \"data-hovered\": isHovered || undefined,\n \"data-focused\": isFocused || undefined,\n \"data-pending\": isPending || undefined,\n \"data-focus-visible\": isFocusVisible || undefined\n }, /*#__PURE__*/ (0, $9s8kH$react).createElement((0, $6c0095e7e99364f2$export$e9f3bf65a26ce129).Provider, {\n value: {\n id: progressId\n }\n }, renderProps.children));\n});\n// Events to preserve when isPending is true (for tooltips and other overlays)\nconst $7705c033048f6da7$var$PRESERVED_EVENT_PATTERN = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;\nfunction $7705c033048f6da7$var$useDisableInteractions(props, isPending) {\n if (isPending) {\n for(const key in props)if (key.startsWith('on') && !$7705c033048f6da7$var$PRESERVED_EVENT_PATTERN.test(key)) props[key] = undefined;\n props.href = undefined;\n props.target = undefined;\n }\n return props;\n}\n\n\nexport {$7705c033048f6da7$export$24d547caef80ccd1 as ButtonContext, $7705c033048f6da7$export$353f5b6fc5456de1 as Button};\n//# sourceMappingURL=Button.mjs.map\n"],"names":["$iuCOg$createContext","$iuCOg$useContext","$iuCOg$react","$iuCOg$forwardRef","$d27d541f9569d26d$export$45712eceda6fad21","$d1116acdf220c2da$export$4c014de7c8940b4c","$bbaa08b3cd72f041$export$9d1611c77c2fe928","$8e9d2fae0ecb9001$export$457c3d6518dd4c6f","$9s8kH$createContext","$9s8kH$createHideableComponent","$7230ffa83bc0c2cf$export$29f1550f4b0d4415","$9s8kH$useButton","$9s8kH$useFocusRing","$9s8kH$useHover","$7230ffa83bc0c2cf$export$4d86445c2cf5e3","$9s8kH$useId","$9s8kH$useRef","$9s8kH$useEffect","$9s8kH$announce","$9s8kH$filterDOMProps","$9s8kH$react","$7230ffa83bc0c2cf$export$df3a06d6289f983e","$9s8kH$mergeProps","$6c0095e7e99364f2$export$e9f3bf65a26ce129"],"mappings":";;;;;;;AAmBA,IAAI,OAAO,wBAAwB,aAAa;AAC5C,SAAO,eAAe,oBAAoB,WAAW,cAAc;AAAA,IAC/D,cAAc;AAAA,IACd,YAAY;AAAA,IACZ,KAAK,WAAW;AACZ,aAAO,KAAK,QAAQ;AAAA,IACxB;AAAA,EACR,CAAK;AACD,SAAO,eAAe,oBAAoB,WAAW,eAAe;AAAA,IAChE,cAAc;AAAA,IACd,YAAY;AAAA,IACZ,OAAO,SAAS,MAAM;AAClB,aAAO,KAAK,QAAQ,YAAY,IAAI;AAAA,IACxC;AAAA,EACR,CAAK;AACD,SAAO,eAAe,oBAAoB,WAAW,eAAe;AAAA,IAChE,cAAc;AAAA,IACd,YAAY;AAAA,IACZ,OAAO,SAAS,MAAM;AAClB,aAAO,KAAK,QAAQ,YAAY,IAAI;AAAA,IACxC;AAAA,EACR,CAAK;AACD,SAAO,eAAe,oBAAoB,WAAW,gBAAgB;AAAA,IACjE,cAAc;AAAA,IACd,YAAY;AAAA,IACZ,OAAO,SAAS,MAAM,OAAO;AACzB,aAAO,KAAK,QAAQ,aAAa,MAAM,KAAK;AAAA,IAChD;AAAA,EACR,CAAK;AACL;AACA,MAAM,4CAA8DA,sBAAAA,cAAsB,KAAK;AAC/F,SAAS,0CAA0C,OAAO;AACtD,MAAI,WAAeC,MAAAA,WAAmB,yCAAyC;AAC/E,MAAI;AACJ,WAAyBC,sBAAc,cAAkBA,MAAc,UAAU,MAAM,MAAM,QAAQ;AAC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EAAG,OAAM,GAAG,IAAI;AAC1H,UAAM,OAAO;AACb,UAAM,SAAS;AAAA,EACnB;AACA,SAAO;AACX;;;;;","x_google_ignoreList":[0,1,2,3]}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
require("react-dom");
|
|
3
|
-
const React = require("react");
|
|
4
|
-
const $792f28e438b9ad5f$var$SharedElementContext = /* @__PURE__ */ React.createContext(null);
|
|
5
|
-
function $792f28e438b9ad5f$export$758399f318e6385a(props) {
|
|
6
|
-
let ref = React.useRef({});
|
|
7
|
-
return /* @__PURE__ */ React.createElement($792f28e438b9ad5f$var$SharedElementContext.Provider, {
|
|
8
|
-
value: ref
|
|
9
|
-
}, props.children);
|
|
10
|
-
}
|
|
11
|
-
exports.$792f28e438b9ad5f$export$758399f318e6385a = $792f28e438b9ad5f$export$758399f318e6385a;
|
|
12
|
-
//# sourceMappingURL=SharedElementTransition-BxczX23g.js.map
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import "react-dom";
|
|
2
|
-
import React__default, { useRef, createContext } from "react";
|
|
3
|
-
const $792f28e438b9ad5f$var$SharedElementContext = /* @__PURE__ */ createContext(null);
|
|
4
|
-
function $792f28e438b9ad5f$export$758399f318e6385a(props) {
|
|
5
|
-
let ref = useRef({});
|
|
6
|
-
return /* @__PURE__ */ React__default.createElement($792f28e438b9ad5f$var$SharedElementContext.Provider, {
|
|
7
|
-
value: ref
|
|
8
|
-
}, props.children);
|
|
9
|
-
}
|
|
10
|
-
export {
|
|
11
|
-
$792f28e438b9ad5f$export$758399f318e6385a as $
|
|
12
|
-
};
|
|
13
|
-
//# sourceMappingURL=SharedElementTransition-D87oSBzB.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"VisuallyHidden-CiBoSB1U.js","sources":["../../node_modules/.pnpm/react-stately@3.51.0_react@19.3.0/node_modules/react-stately/dist/private/utils/useControlledState.mjs","../../node_modules/.pnpm/react-aria@3.53.0_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-aria/dist/private/visually-hidden/VisuallyHidden.mjs"],"sourcesContent":["import $1CcWn$react, {useState as $1CcWn$useState, useRef as $1CcWn$useRef, useEffect as $1CcWn$useEffect, useReducer as $1CcWn$useReducer, useCallback as $1CcWn$useCallback} 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// Use the earliest effect possible to reset the ref below.\nconst $3e6197669829fe11$var$useEarlyEffect = typeof document !== 'undefined' || parseInt((0, $1CcWn$react).version, 10) >= 19 ? (0, $1CcWn$react)['useInsertionEffect'] ?? (0, $1CcWn$react).useLayoutEffect : ()=>{};\nfunction $3e6197669829fe11$export$40bfa8c7b0832715(value, defaultValue, onChange) {\n // Store the value in both state and a ref. The state value will only be used when uncontrolled.\n // The ref is used to track the most current value, which is passed to the function setState callback.\n let [stateValue, setStateValue] = (0, $1CcWn$useState)(value || defaultValue);\n let valueRef = (0, $1CcWn$useRef)(stateValue);\n let isControlledRef = (0, $1CcWn$useRef)(value !== undefined);\n let isControlled = value !== undefined;\n (0, $1CcWn$useEffect)(()=>{\n let wasControlled = isControlledRef.current;\n if (wasControlled !== isControlled && process.env.NODE_ENV !== 'production') console.warn(`WARN: A component changed from ${wasControlled ? 'controlled' : 'uncontrolled'} to ${isControlled ? 'controlled' : 'uncontrolled'}.`);\n isControlledRef.current = isControlled;\n }, [\n isControlled\n ]);\n // After each render, update the ref to the current value.\n // This ensures that the setState callback argument is reset.\n // Note: the effect should not have any dependencies so that controlled values always reset.\n let currentValue = isControlled ? value : stateValue;\n $3e6197669829fe11$var$useEarlyEffect(()=>{\n valueRef.current = currentValue;\n });\n let [, forceUpdate] = (0, $1CcWn$useReducer)(()=>({}), {});\n let setValue = (0, $1CcWn$useCallback)((value, ...args)=>{\n // @ts-ignore - TS doesn't know that T cannot be a function.\n let newValue = typeof value === 'function' ? value(valueRef.current) : value;\n if (!Object.is(valueRef.current, newValue)) {\n // Update the ref so that the next setState callback has the most recent value.\n valueRef.current = newValue;\n setStateValue(newValue);\n // Always trigger a re-render, even when controlled, so that the layout effect above runs to reset the value.\n forceUpdate();\n // Trigger onChange. Note that if setState is called multiple times in a single event,\n // onChange will be called for each one instead of only once.\n onChange?.(newValue, ...args);\n }\n }, [\n onChange\n ]);\n return [\n currentValue,\n setValue\n ];\n}\n\n\nexport {$3e6197669829fe11$export$40bfa8c7b0832715 as useControlledState};\n//# sourceMappingURL=useControlledState.mjs.map\n","import {mergeProps as $bbaa08b3cd72f041$export$9d1611c77c2fe928} from \"../utils/mergeProps.mjs\";\nimport {useFocusWithin as $2c9edc598a03d523$export$420e68273165f4ec} from \"../interactions/useFocusWithin.mjs\";\nimport $48drk$react, {useState as $48drk$useState, useMemo as $48drk$useMemo} 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\nconst $ea3928288112382f$var$styles = {\n border: 0,\n clip: 'rect(0 0 0 0)',\n clipPath: 'inset(50%)',\n height: '1px',\n margin: '-1px',\n overflow: 'hidden',\n padding: 0,\n position: 'absolute',\n width: '1px',\n whiteSpace: 'nowrap'\n};\nfunction $ea3928288112382f$export$a966af930f325cab(props = {}) {\n let { style: style, isFocusable: isFocusable } = props;\n let [isFocused, setFocused] = (0, $48drk$useState)(false);\n let { focusWithinProps: focusWithinProps } = (0, $2c9edc598a03d523$export$420e68273165f4ec)({\n isDisabled: !isFocusable,\n onFocusWithinChange: (val)=>setFocused(val)\n });\n // If focused, don't hide the element.\n let combinedStyles = (0, $48drk$useMemo)(()=>{\n if (isFocused) // oxlint-disable-next-line react/react-compiler\n return style;\n else if (style) return {\n ...$ea3928288112382f$var$styles,\n ...style\n };\n else return $ea3928288112382f$var$styles;\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [\n isFocused\n ]);\n return {\n visuallyHiddenProps: {\n ...focusWithinProps,\n style: combinedStyles\n }\n };\n}\nfunction $ea3928288112382f$export$439d29a4e110a164(props) {\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n let { children: children, elementType: Element = 'div', isFocusable: isFocusable, style: style, ...otherProps } = props;\n let { visuallyHiddenProps: visuallyHiddenProps } = $ea3928288112382f$export$a966af930f325cab(props);\n return /*#__PURE__*/ (0, $48drk$react).createElement(Element, (0, $bbaa08b3cd72f041$export$9d1611c77c2fe928)(otherProps, visuallyHiddenProps), children);\n}\n\n\nexport {$ea3928288112382f$export$a966af930f325cab as useVisuallyHidden, $ea3928288112382f$export$439d29a4e110a164 as VisuallyHidden};\n//# sourceMappingURL=VisuallyHidden.mjs.map\n"],"names":["$1CcWn$react","$1CcWn$useState","$1CcWn$useRef","$1CcWn$useEffect","$1CcWn$useReducer","$1CcWn$useCallback","value","$48drk$useState","$2c9edc598a03d523$export$420e68273165f4ec","$48drk$useMemo","$48drk$react","$bbaa08b3cd72f041$export$9d1611c77c2fe928"],"mappings":";;;;AAcA,MAAM,uCAAuC,OAAO,aAAa,eAAe,SAAaA,MAAc,SAAS,EAAE,KAAK,KAASA,MAAc,oBAAoB,KAASA,MAAc,kBAAkB,MAAI;AAAC;AACpN,SAAS,0CAA0C,OAAO,cAAc,UAAU;AAG9E,MAAI,CAAC,YAAY,aAAa,I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IACxF,YAAY,CAAC;AAAA,IACb,qBAAqB,CAAC,QAAM,WAAW,GAAG;AAAA,EAClD,CAAK;AAED,MAAI,iBAAqBC,MAAAA,QAAgB,MAAI;AACzC,QAAI;AACJ,aAAO;AAAA,aACE,MAAO,QAAO;AAAA,MACnB,GAAG;AAAA,MACH,GAAG;AAAA,IACf;AAAA,QACa,QAAO;AAAA,EAEhB,GAAG;AAAA,IACC;AAAA,EACR,CAAK;AACD,SAAO;AAAA,IACH,qBAAqB;AAAA,MACjB,GAAG;AAAA,MACH,OAAO;AAAA,IACnB;AAAA,EACA;AACA;AACA,SAAS,0CAA0C,OAAO;AAEtD,MAAI,EAAE,UAAoB,aAAa,UAAU,OAAO,aAA0B,OAAc,GAAG,WAAU,IAAK;AAClH,MAAI,EAAE,wBAA6C,0CAA0C,KAAK;AAClG,SAAyBC,sBAAc,cAAc,SAAaC,MAAAA,0CAA2C,YAAY,mBAAmB,GAAG,QAAQ;AAC3J;;;;","x_google_ignoreList":[0,1]}
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import React__default, { useState, useRef, useEffect, useReducer, useCallback, useMemo } from "react";
|
|
2
|
-
import { d as $bbaa08b3cd72f041$export$9d1611c77c2fe928 } from "./utils-B3shU_E6.js";
|
|
3
|
-
import { d as $2c9edc598a03d523$export$420e68273165f4ec } from "./useHover-_Q7y99al.js";
|
|
4
|
-
const $3e6197669829fe11$var$useEarlyEffect = typeof document !== "undefined" || parseInt(React__default.version, 10) >= 19 ? React__default["useInsertionEffect"] ?? React__default.useLayoutEffect : () => {
|
|
5
|
-
};
|
|
6
|
-
function $3e6197669829fe11$export$40bfa8c7b0832715(value, defaultValue, onChange) {
|
|
7
|
-
let [stateValue, setStateValue] = useState(value || defaultValue);
|
|
8
|
-
let valueRef = useRef(stateValue);
|
|
9
|
-
let isControlledRef = useRef(value !== void 0);
|
|
10
|
-
let isControlled = value !== void 0;
|
|
11
|
-
useEffect(() => {
|
|
12
|
-
let wasControlled = isControlledRef.current;
|
|
13
|
-
if (wasControlled !== isControlled && process.env.NODE_ENV !== "production") ;
|
|
14
|
-
isControlledRef.current = isControlled;
|
|
15
|
-
}, [
|
|
16
|
-
isControlled
|
|
17
|
-
]);
|
|
18
|
-
let currentValue = isControlled ? value : stateValue;
|
|
19
|
-
$3e6197669829fe11$var$useEarlyEffect(() => {
|
|
20
|
-
valueRef.current = currentValue;
|
|
21
|
-
});
|
|
22
|
-
let [, forceUpdate] = useReducer(() => ({}), {});
|
|
23
|
-
let setValue = useCallback((value2, ...args) => {
|
|
24
|
-
let newValue = typeof value2 === "function" ? value2(valueRef.current) : value2;
|
|
25
|
-
if (!Object.is(valueRef.current, newValue)) {
|
|
26
|
-
valueRef.current = newValue;
|
|
27
|
-
setStateValue(newValue);
|
|
28
|
-
forceUpdate();
|
|
29
|
-
onChange?.(newValue, ...args);
|
|
30
|
-
}
|
|
31
|
-
}, [
|
|
32
|
-
onChange
|
|
33
|
-
]);
|
|
34
|
-
return [
|
|
35
|
-
currentValue,
|
|
36
|
-
setValue
|
|
37
|
-
];
|
|
38
|
-
}
|
|
39
|
-
const $ea3928288112382f$var$styles = {
|
|
40
|
-
border: 0,
|
|
41
|
-
clip: "rect(0 0 0 0)",
|
|
42
|
-
clipPath: "inset(50%)",
|
|
43
|
-
height: "1px",
|
|
44
|
-
margin: "-1px",
|
|
45
|
-
overflow: "hidden",
|
|
46
|
-
padding: 0,
|
|
47
|
-
position: "absolute",
|
|
48
|
-
width: "1px",
|
|
49
|
-
whiteSpace: "nowrap"
|
|
50
|
-
};
|
|
51
|
-
function $ea3928288112382f$export$a966af930f325cab(props = {}) {
|
|
52
|
-
let { style, isFocusable } = props;
|
|
53
|
-
let [isFocused, setFocused] = useState(false);
|
|
54
|
-
let { focusWithinProps } = $2c9edc598a03d523$export$420e68273165f4ec({
|
|
55
|
-
isDisabled: !isFocusable,
|
|
56
|
-
onFocusWithinChange: (val) => setFocused(val)
|
|
57
|
-
});
|
|
58
|
-
let combinedStyles = useMemo(() => {
|
|
59
|
-
if (isFocused)
|
|
60
|
-
return style;
|
|
61
|
-
else if (style) return {
|
|
62
|
-
...$ea3928288112382f$var$styles,
|
|
63
|
-
...style
|
|
64
|
-
};
|
|
65
|
-
else return $ea3928288112382f$var$styles;
|
|
66
|
-
}, [
|
|
67
|
-
isFocused
|
|
68
|
-
]);
|
|
69
|
-
return {
|
|
70
|
-
visuallyHiddenProps: {
|
|
71
|
-
...focusWithinProps,
|
|
72
|
-
style: combinedStyles
|
|
73
|
-
}
|
|
74
|
-
};
|
|
75
|
-
}
|
|
76
|
-
function $ea3928288112382f$export$439d29a4e110a164(props) {
|
|
77
|
-
let { children, elementType: Element = "div", isFocusable, style, ...otherProps } = props;
|
|
78
|
-
let { visuallyHiddenProps } = $ea3928288112382f$export$a966af930f325cab(props);
|
|
79
|
-
return /* @__PURE__ */ React__default.createElement(Element, $bbaa08b3cd72f041$export$9d1611c77c2fe928(otherProps, visuallyHiddenProps), children);
|
|
80
|
-
}
|
|
81
|
-
export {
|
|
82
|
-
$3e6197669829fe11$export$40bfa8c7b0832715 as $,
|
|
83
|
-
$ea3928288112382f$export$439d29a4e110a164 as a,
|
|
84
|
-
$ea3928288112382f$export$a966af930f325cab as b
|
|
85
|
-
};
|
|
86
|
-
//# sourceMappingURL=VisuallyHidden-paROiuP0.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"VisuallyHidden-paROiuP0.js","sources":["../../node_modules/.pnpm/react-stately@3.51.0_react@19.3.0/node_modules/react-stately/dist/private/utils/useControlledState.mjs","../../node_modules/.pnpm/react-aria@3.53.0_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-aria/dist/private/visually-hidden/VisuallyHidden.mjs"],"sourcesContent":["import $1CcWn$react, {useState as $1CcWn$useState, useRef as $1CcWn$useRef, useEffect as $1CcWn$useEffect, useReducer as $1CcWn$useReducer, useCallback as $1CcWn$useCallback} 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// Use the earliest effect possible to reset the ref below.\nconst $3e6197669829fe11$var$useEarlyEffect = typeof document !== 'undefined' || parseInt((0, $1CcWn$react).version, 10) >= 19 ? (0, $1CcWn$react)['useInsertionEffect'] ?? (0, $1CcWn$react).useLayoutEffect : ()=>{};\nfunction $3e6197669829fe11$export$40bfa8c7b0832715(value, defaultValue, onChange) {\n // Store the value in both state and a ref. The state value will only be used when uncontrolled.\n // The ref is used to track the most current value, which is passed to the function setState callback.\n let [stateValue, setStateValue] = (0, $1CcWn$useState)(value || defaultValue);\n let valueRef = (0, $1CcWn$useRef)(stateValue);\n let isControlledRef = (0, $1CcWn$useRef)(value !== undefined);\n let isControlled = value !== undefined;\n (0, $1CcWn$useEffect)(()=>{\n let wasControlled = isControlledRef.current;\n if (wasControlled !== isControlled && process.env.NODE_ENV !== 'production') console.warn(`WARN: A component changed from ${wasControlled ? 'controlled' : 'uncontrolled'} to ${isControlled ? 'controlled' : 'uncontrolled'}.`);\n isControlledRef.current = isControlled;\n }, [\n isControlled\n ]);\n // After each render, update the ref to the current value.\n // This ensures that the setState callback argument is reset.\n // Note: the effect should not have any dependencies so that controlled values always reset.\n let currentValue = isControlled ? value : stateValue;\n $3e6197669829fe11$var$useEarlyEffect(()=>{\n valueRef.current = currentValue;\n });\n let [, forceUpdate] = (0, $1CcWn$useReducer)(()=>({}), {});\n let setValue = (0, $1CcWn$useCallback)((value, ...args)=>{\n // @ts-ignore - TS doesn't know that T cannot be a function.\n let newValue = typeof value === 'function' ? value(valueRef.current) : value;\n if (!Object.is(valueRef.current, newValue)) {\n // Update the ref so that the next setState callback has the most recent value.\n valueRef.current = newValue;\n setStateValue(newValue);\n // Always trigger a re-render, even when controlled, so that the layout effect above runs to reset the value.\n forceUpdate();\n // Trigger onChange. Note that if setState is called multiple times in a single event,\n // onChange will be called for each one instead of only once.\n onChange?.(newValue, ...args);\n }\n }, [\n onChange\n ]);\n return [\n currentValue,\n setValue\n ];\n}\n\n\nexport {$3e6197669829fe11$export$40bfa8c7b0832715 as useControlledState};\n//# sourceMappingURL=useControlledState.mjs.map\n","import {mergeProps as $bbaa08b3cd72f041$export$9d1611c77c2fe928} from \"../utils/mergeProps.mjs\";\nimport {useFocusWithin as $2c9edc598a03d523$export$420e68273165f4ec} from \"../interactions/useFocusWithin.mjs\";\nimport $48drk$react, {useState as $48drk$useState, useMemo as $48drk$useMemo} 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\nconst $ea3928288112382f$var$styles = {\n border: 0,\n clip: 'rect(0 0 0 0)',\n clipPath: 'inset(50%)',\n height: '1px',\n margin: '-1px',\n overflow: 'hidden',\n padding: 0,\n position: 'absolute',\n width: '1px',\n whiteSpace: 'nowrap'\n};\nfunction $ea3928288112382f$export$a966af930f325cab(props = {}) {\n let { style: style, isFocusable: isFocusable } = props;\n let [isFocused, setFocused] = (0, $48drk$useState)(false);\n let { focusWithinProps: focusWithinProps } = (0, $2c9edc598a03d523$export$420e68273165f4ec)({\n isDisabled: !isFocusable,\n onFocusWithinChange: (val)=>setFocused(val)\n });\n // If focused, don't hide the element.\n let combinedStyles = (0, $48drk$useMemo)(()=>{\n if (isFocused) // oxlint-disable-next-line react/react-compiler\n return style;\n else if (style) return {\n ...$ea3928288112382f$var$styles,\n ...style\n };\n else return $ea3928288112382f$var$styles;\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [\n isFocused\n ]);\n return {\n visuallyHiddenProps: {\n ...focusWithinProps,\n style: combinedStyles\n }\n };\n}\nfunction $ea3928288112382f$export$439d29a4e110a164(props) {\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n let { children: children, elementType: Element = 'div', isFocusable: isFocusable, style: style, ...otherProps } = props;\n let { visuallyHiddenProps: visuallyHiddenProps } = $ea3928288112382f$export$a966af930f325cab(props);\n return /*#__PURE__*/ (0, $48drk$react).createElement(Element, (0, $bbaa08b3cd72f041$export$9d1611c77c2fe928)(otherProps, visuallyHiddenProps), children);\n}\n\n\nexport {$ea3928288112382f$export$a966af930f325cab as useVisuallyHidden, $ea3928288112382f$export$439d29a4e110a164 as VisuallyHidden};\n//# sourceMappingURL=VisuallyHidden.mjs.map\n"],"names":["$1CcWn$react","$1CcWn$useState","$1CcWn$useRef","$1CcWn$useEffect","$1CcWn$useReducer","$1CcWn$useCallback","value","$48drk$useState","$48drk$useMemo","$48drk$react"],"mappings":";;;AAcA,MAAM,uCAAuC,OAAO,aAAa,eAAe,SAAaA,eAAc,SAAS,EAAE,KAAK,KAASA,eAAc,oBAAoB,KAASA,eAAc,kBAAkB,MAAI;AAAC;AACpN,SAAS,0CAA0C,OAAO,cAAc,UAAU;AAG9E,MAAI,CAAC,YAAY,aAAa,IAAQC,SAAiB,SAAS,YAAY;AAC5E,MAAI,WAAeC,OAAe,UAAU;AAC5C,MAAI,kBAAsBA,OAAe,UAAU,MAAS;AAC5D,MAAI,eAAe,UAAU;AAC7B,EAAIC,UAAkB,MAAI;AACtB,QAAI,gBAAgB,gBAAgB;AACpC,QAAI,kBAAkB,gBAAgB,QAAQ,IAAI,aAAa,aAAc;AAC7E,oBAAgB,UAAU;AAAA,EAC9B,GAAG;AAAA,IACC;AAAA,EACR,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AAA,EACA;AACA;AACA,SAAS,0CAA0C,OAAO;AAEtD,MAAI,EAAE,UAAoB,aAAa,UAAU,OAAO,aAA0B,OAAc,GAAG,WAAU,IAAK;AAClH,MAAI,EAAE,wBAA6C,0CAA0C,KAAK;AAClG,SAAyBC,+BAAc,cAAc,SAAa,0CAA2C,YAAY,mBAAmB,GAAG,QAAQ;AAC3J;","x_google_ignoreList":[0,1]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useLabel-DgF69V6e.js","sources":["../../node_modules/.pnpm/react-aria@3.53.0_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-aria/dist/private/utils/useLabels.mjs","../../node_modules/.pnpm/react-aria-components@1.22.0_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-aria-components/dist/private/Label.mjs","../../node_modules/.pnpm/react-aria@3.53.0_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-aria/dist/private/label/useLabel.mjs"],"sourcesContent":["import {useId as $390e54f620492c70$export$f680877a34711e37} from \"./useId.mjs\";\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 */ \nfunction $e8ac3c3f5d4bae7f$export$d6875122194c7b44(props, defaultLabel) {\n let { id: id, 'aria-label': label, 'aria-labelledby': labelledBy } = props;\n // If there is both an aria-label and aria-labelledby,\n // combine them by pointing to the element itself.\n id = (0, $390e54f620492c70$export$f680877a34711e37)(id);\n if (labelledBy && label) {\n let ids = new Set([\n id,\n ...labelledBy.trim().split(/\\s+/)\n ]);\n labelledBy = [\n ...ids\n ].join(' ');\n } else if (labelledBy) labelledBy = labelledBy.trim().split(/\\s+/).join(' ');\n // If no labels are provided, use the default\n if (!label && !labelledBy && defaultLabel) label = defaultLabel;\n return {\n id: id,\n 'aria-label': label,\n 'aria-labelledby': labelledBy\n };\n}\n\n\nexport {$e8ac3c3f5d4bae7f$export$d6875122194c7b44 as useLabels};\n//# sourceMappingURL=useLabels.mjs.map\n","import {dom as $7230ffa83bc0c2cf$export$df3a06d6289f983e, useContextProps as $7230ffa83bc0c2cf$export$29f1550f4b0d4415} from \"./utils.mjs\";\nimport {createHideableComponent as $32wDz$createHideableComponent} from \"react-aria/private/collections/Hidden\";\nimport $32wDz$react, {createContext as $32wDz$createContext} from \"react\";\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\nconst $43a3b93638fe5db9$export$75b6ee27786ba447 = /*#__PURE__*/ (0, $32wDz$createContext)({});\nconst $43a3b93638fe5db9$export$b04be29aa201d4f5 = /*#__PURE__*/ (0, $32wDz$createHideableComponent)(function Label(props, ref) {\n [props, ref] = (0, $7230ffa83bc0c2cf$export$29f1550f4b0d4415)(props, ref, $43a3b93638fe5db9$export$75b6ee27786ba447);\n let { elementType: elementType = 'label', ...labelProps } = props;\n let ElementType = (0, $7230ffa83bc0c2cf$export$df3a06d6289f983e)[elementType];\n // @ts-ignore\n return /*#__PURE__*/ (0, $32wDz$react).createElement(ElementType, {\n className: \"react-aria-Label\",\n ...labelProps,\n ref: ref\n });\n});\n\n\nexport {$43a3b93638fe5db9$export$75b6ee27786ba447 as LabelContext, $43a3b93638fe5db9$export$b04be29aa201d4f5 as Label};\n//# sourceMappingURL=Label.mjs.map\n","import {useId as $390e54f620492c70$export$f680877a34711e37} from \"../utils/useId.mjs\";\nimport {useLabels as $e8ac3c3f5d4bae7f$export$d6875122194c7b44} from \"../utils/useLabels.mjs\";\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 $0beb20c9744a2065$export$8467354a121f1b9f(props) {\n let { id: id, label: label, 'aria-labelledby': ariaLabelledby, 'aria-label': ariaLabel, labelElementType: labelElementType = 'label' } = props;\n id = (0, $390e54f620492c70$export$f680877a34711e37)(id);\n let labelId = (0, $390e54f620492c70$export$f680877a34711e37)();\n let labelProps = {};\n if (label) {\n ariaLabelledby = ariaLabelledby ? `${labelId} ${ariaLabelledby}` : labelId;\n labelProps = {\n id: labelId,\n htmlFor: labelElementType === 'label' ? id : undefined\n };\n } else if (!ariaLabelledby && !ariaLabel && process.env.NODE_ENV !== 'production') console.warn('If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility');\n let fieldProps = (0, $e8ac3c3f5d4bae7f$export$d6875122194c7b44)({\n id: id,\n 'aria-label': ariaLabel,\n 'aria-labelledby': ariaLabelledby\n });\n return {\n labelProps: labelProps,\n fieldProps: fieldProps\n };\n}\n\n\nexport {$0beb20c9744a2065$export$8467354a121f1b9f as useLabel};\n//# sourceMappingURL=useLabel.mjs.map\n"],"names":["$32wDz$createContext"],"mappings":";;AAaA,SAAS,0CAA0C,OAAO,cAAc;AACpE,MAAI,EAAE,IAAQ,cAAc,OAAO,mBAAmB,WAAU,IAAK;AAGrE,OAAS,0CAA2C,EAAE;AACtD,MAAI,cAAc,OAAO;AACrB,QAAI,MAAM,oBAAI,IAAI;AAAA,MACd;AAAA,MACA,GAAG,WAAW,OAAO,MAAM,KAAK;AAAA,IAC5C,CAAS;AACD,iBAAa;AAAA,MACT,GAAG;AAAA,IACf,EAAU,KAAK,GAAG;AAAA,EACd,WAAW,WAAY,cAAa,WAAW,OAAO,MAAM,KAAK,EAAE,KAAK,GAAG;AAE3E,MAAI,CAAC,SAAS,CAAC,cAAc,aAAc,SAAQ;AACnD,SAAO;AAAA,IACH;AAAA,IACA,cAAc;AAAA,IACd,mBAAmB;AAAA,EAC3B;AACA;ACjBK,MAAC,4CAA8DA,8BAAsB,CAAA,CAAE;ACF5F,SAAS,0CAA0C,OAAO;AACtD,MAAI,EAAE,IAAQ,OAAc,mBAAmB,gBAAgB,cAAc,WAAW,mBAAqC,QAAO,IAAK;AACzI,OAAS,0CAA2C,EAAE;AACtD,MAAI,UAAc,0CAAyC;AAC3D,MAAI,aAAa,CAAA;AACjB,MAAI,OAAO;AACP,qBAAiB,iBAAiB,GAAG,OAAO,IAAI,cAAc,KAAK;AACnE,iBAAa;AAAA,MACT,IAAI;AAAA,MACJ,SAAS,qBAAqB,UAAU,KAAK;AAAA,IACzD;AAAA,EACI,WAAW,CAAC,kBAAkB,CAAC,aAAa,QAAQ,IAAI,aAAa,aAAc;AACnF,MAAI,aAAiB,0CAA2C;AAAA,IAC5D;AAAA,IACA,cAAc;AAAA,IACd,mBAAmB;AAAA,EAC3B,CAAK;AACD,SAAO;AAAA,IACH;AAAA,IACA;AAAA,EACR;AACA;","x_google_ignoreList":[0,1,2]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useLabel-DjFU7E9u.js","sources":["../../node_modules/.pnpm/react-aria@3.53.0_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-aria/dist/private/utils/useLabels.mjs","../../node_modules/.pnpm/react-aria-components@1.22.0_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-aria-components/dist/private/Label.mjs","../../node_modules/.pnpm/react-aria@3.53.0_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-aria/dist/private/label/useLabel.mjs"],"sourcesContent":["import {useId as $390e54f620492c70$export$f680877a34711e37} from \"./useId.mjs\";\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 */ \nfunction $e8ac3c3f5d4bae7f$export$d6875122194c7b44(props, defaultLabel) {\n let { id: id, 'aria-label': label, 'aria-labelledby': labelledBy } = props;\n // If there is both an aria-label and aria-labelledby,\n // combine them by pointing to the element itself.\n id = (0, $390e54f620492c70$export$f680877a34711e37)(id);\n if (labelledBy && label) {\n let ids = new Set([\n id,\n ...labelledBy.trim().split(/\\s+/)\n ]);\n labelledBy = [\n ...ids\n ].join(' ');\n } else if (labelledBy) labelledBy = labelledBy.trim().split(/\\s+/).join(' ');\n // If no labels are provided, use the default\n if (!label && !labelledBy && defaultLabel) label = defaultLabel;\n return {\n id: id,\n 'aria-label': label,\n 'aria-labelledby': labelledBy\n };\n}\n\n\nexport {$e8ac3c3f5d4bae7f$export$d6875122194c7b44 as useLabels};\n//# sourceMappingURL=useLabels.mjs.map\n","import {dom as $7230ffa83bc0c2cf$export$df3a06d6289f983e, useContextProps as $7230ffa83bc0c2cf$export$29f1550f4b0d4415} from \"./utils.mjs\";\nimport {createHideableComponent as $32wDz$createHideableComponent} from \"react-aria/private/collections/Hidden\";\nimport $32wDz$react, {createContext as $32wDz$createContext} from \"react\";\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\nconst $43a3b93638fe5db9$export$75b6ee27786ba447 = /*#__PURE__*/ (0, $32wDz$createContext)({});\nconst $43a3b93638fe5db9$export$b04be29aa201d4f5 = /*#__PURE__*/ (0, $32wDz$createHideableComponent)(function Label(props, ref) {\n [props, ref] = (0, $7230ffa83bc0c2cf$export$29f1550f4b0d4415)(props, ref, $43a3b93638fe5db9$export$75b6ee27786ba447);\n let { elementType: elementType = 'label', ...labelProps } = props;\n let ElementType = (0, $7230ffa83bc0c2cf$export$df3a06d6289f983e)[elementType];\n // @ts-ignore\n return /*#__PURE__*/ (0, $32wDz$react).createElement(ElementType, {\n className: \"react-aria-Label\",\n ...labelProps,\n ref: ref\n });\n});\n\n\nexport {$43a3b93638fe5db9$export$75b6ee27786ba447 as LabelContext, $43a3b93638fe5db9$export$b04be29aa201d4f5 as Label};\n//# sourceMappingURL=Label.mjs.map\n","import {useId as $390e54f620492c70$export$f680877a34711e37} from \"../utils/useId.mjs\";\nimport {useLabels as $e8ac3c3f5d4bae7f$export$d6875122194c7b44} from \"../utils/useLabels.mjs\";\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 $0beb20c9744a2065$export$8467354a121f1b9f(props) {\n let { id: id, label: label, 'aria-labelledby': ariaLabelledby, 'aria-label': ariaLabel, labelElementType: labelElementType = 'label' } = props;\n id = (0, $390e54f620492c70$export$f680877a34711e37)(id);\n let labelId = (0, $390e54f620492c70$export$f680877a34711e37)();\n let labelProps = {};\n if (label) {\n ariaLabelledby = ariaLabelledby ? `${labelId} ${ariaLabelledby}` : labelId;\n labelProps = {\n id: labelId,\n htmlFor: labelElementType === 'label' ? id : undefined\n };\n } else if (!ariaLabelledby && !ariaLabel && process.env.NODE_ENV !== 'production') console.warn('If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility');\n let fieldProps = (0, $e8ac3c3f5d4bae7f$export$d6875122194c7b44)({\n id: id,\n 'aria-label': ariaLabel,\n 'aria-labelledby': ariaLabelledby\n });\n return {\n labelProps: labelProps,\n fieldProps: fieldProps\n };\n}\n\n\nexport {$0beb20c9744a2065$export$8467354a121f1b9f as useLabel};\n//# sourceMappingURL=useLabel.mjs.map\n"],"names":["$390e54f620492c70$export$f680877a34711e37","$32wDz$createContext"],"mappings":";;;AAaA,SAAS,0CAA0C,OAAO,cAAc;AACpE,MAAI,EAAE,IAAQ,cAAc,OAAO,mBAAmB,WAAU,IAAK;AAGrE,OAASA,MAAAA,0CAA2C,EAAE;AACtD,MAAI,cAAc,OAAO;AACrB,QAAI,MAAM,oBAAI,IAAI;AAAA,MACd;AAAA,MACA,GAAG,WAAW,OAAO,MAAM,KAAK;AAAA,IAC5C,CAAS;AACD,iBAAa;AAAA,MACT,GAAG;AAAA,IACf,EAAU,KAAK,GAAG;AAAA,EACd,WAAW,WAAY,cAAa,WAAW,OAAO,MAAM,KAAK,EAAE,KAAK,GAAG;AAE3E,MAAI,CAAC,SAAS,CAAC,cAAc,aAAc,SAAQ;AACnD,SAAO;AAAA,IACH;AAAA,IACA,cAAc;AAAA,IACd,mBAAmB;AAAA,EAC3B;AACA;ACjBK,MAAC,4CAA8DC,sBAAAA,cAAsB,CAAA,CAAE;ACF5F,SAAS,0CAA0C,OAAO;AACtD,MAAI,EAAE,IAAQ,OAAc,mBAAmB,gBAAgB,cAAc,WAAW,mBAAqC,QAAO,IAAK;AACzI,OAASD,MAAAA,0CAA2C,EAAE;AACtD,MAAI,UAAcA,gDAAyC;AAC3D,MAAI,aAAa,CAAA;AACjB,MAAI,OAAO;AACP,qBAAiB,iBAAiB,GAAG,OAAO,IAAI,cAAc,KAAK;AACnE,iBAAa;AAAA,MACT,IAAI;AAAA,MACJ,SAAS,qBAAqB,UAAU,KAAK;AAAA,IACzD;AAAA,EACI,WAAW,CAAC,kBAAkB,CAAC,aAAa,QAAQ,IAAI,aAAa,aAAc;AACnF,MAAI,aAAiB,0CAA2C;AAAA,IAC5D;AAAA,IACA,cAAc;AAAA,IACd,mBAAmB;AAAA,EAC3B,CAAK;AACD,SAAO;AAAA,IACH;AAAA,IACA;AAAA,EACR;AACA;;;;","x_google_ignoreList":[0,1,2]}
|