lizaui 12.0.21 → 12.0.23

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.
Files changed (108) hide show
  1. package/dist/autocomplete/index.cjs.js +1 -1
  2. package/dist/autocomplete/index.cjs.js.map +1 -1
  3. package/dist/autocomplete/index.es.js +1 -1
  4. package/dist/autocomplete/index.es.js.map +1 -1
  5. package/dist/calendar/index.cjs.js.map +1 -1
  6. package/dist/calendar/index.es.js.map +1 -1
  7. package/dist/chunks/BaseCollection-CdxYWaH6.js.map +1 -1
  8. package/dist/chunks/BaseCollection-DxI8p0cP.js.map +1 -1
  9. package/dist/chunks/Button-Bumy9bze.js.map +1 -1
  10. package/dist/chunks/Button-CFYOfByw.js.map +1 -1
  11. package/dist/chunks/FocusScope-4TdD5fCA.js.map +1 -1
  12. package/dist/chunks/FocusScope-jSNMAXzg.js.map +1 -1
  13. package/dist/chunks/Hidden-BY45Dc0j.js.map +1 -1
  14. package/dist/chunks/Hidden-C55DpjMP.js.map +1 -1
  15. package/dist/chunks/I18nProvider-BUfkOEhQ.js.map +1 -1
  16. package/dist/chunks/I18nProvider-Coj9x7B8.js.map +1 -1
  17. package/dist/chunks/ProgressBar-542C1mif.js.map +1 -1
  18. package/dist/chunks/ProgressBar-BiKRsJ8m.js.map +1 -1
  19. package/dist/chunks/SharedElementTransition-BSCoaphV.js.map +1 -1
  20. package/dist/chunks/SharedElementTransition-CJVe1D_I.js.map +1 -1
  21. package/dist/chunks/VisuallyHidden-CTe1-RoI.js.map +1 -1
  22. package/dist/chunks/VisuallyHidden-DPJuOMsW.js.map +1 -1
  23. package/dist/chunks/chevron-right-Bfa8mqfk.js.map +1 -1
  24. package/dist/chunks/chevron-right-D57wjjUp.js.map +1 -1
  25. package/dist/chunks/chevron-up-D8XaBFJG.js.map +1 -1
  26. package/dist/chunks/chevron-up-Diak1VOI.js.map +1 -1
  27. package/dist/chunks/chevrons-up-down-BEtKEloL.js.map +1 -1
  28. package/dist/chunks/chevrons-up-down-Cu7ozFlE.js.map +1 -1
  29. package/dist/chunks/createLucideIcon-C6RDgWrQ.js.map +1 -1
  30. package/dist/chunks/createLucideIcon-DvjiV7vp.js.map +1 -1
  31. package/dist/chunks/filterDOMProps-DqJGvnmf.js.map +1 -1
  32. package/dist/chunks/filterDOMProps-JgzPXl3Q.js.map +1 -1
  33. package/dist/chunks/focusSafely-CKxVSn6H.js.map +1 -1
  34. package/dist/chunks/focusSafely-DfEgLKh6.js.map +1 -1
  35. package/dist/chunks/index-CULZAuw9.js.map +1 -1
  36. package/dist/chunks/index-DvmTR3H_.js.map +1 -1
  37. package/dist/chunks/mergeRefs-Y9oG13yB.js.map +1 -1
  38. package/dist/chunks/mergeRefs-t6d4XvXq.js.map +1 -1
  39. package/dist/chunks/number-CYgYWykt.js.map +1 -1
  40. package/dist/chunks/number-DDpsLN2d.js.map +1 -1
  41. package/dist/chunks/radio-group-BwXvYzSm.js.map +1 -1
  42. package/dist/chunks/radio-group-hO2beGF6.js.map +1 -1
  43. package/dist/chunks/scroll-area-TppWtXwO.js.map +1 -1
  44. package/dist/chunks/scroll-area-W95K6hNR.js.map +1 -1
  45. package/dist/chunks/{textarea-8fv2j5Lo.js → textarea-C-0g_4r4.js} +1119 -1002
  46. package/dist/chunks/textarea-C-0g_4r4.js.map +1 -0
  47. package/dist/chunks/{textarea-DNdGuFw8.js → textarea-DUJqX13u.js} +1120 -1003
  48. package/dist/chunks/textarea-DUJqX13u.js.map +1 -0
  49. package/dist/chunks/useFormReset-BYRGk5vb.js.map +1 -1
  50. package/dist/chunks/useFormReset-Bgv2ktIE.js.map +1 -1
  51. package/dist/chunks/{useHasTabbableChild-kl2T5gEX.js → useHasTabbableChild-3an_bW0u.js} +2 -2
  52. package/dist/chunks/useHasTabbableChild-3an_bW0u.js.map +1 -0
  53. package/dist/chunks/{useHasTabbableChild-CSJ0P5QT.js → useHasTabbableChild-PNwltE9y.js} +2 -2
  54. package/dist/chunks/useHasTabbableChild-PNwltE9y.js.map +1 -0
  55. package/dist/chunks/useHover-BHCSbkLb.js.map +1 -1
  56. package/dist/chunks/useHover-D9f9xyxz.js.map +1 -1
  57. package/dist/chunks/useLabel-CzhH-Tov.js.map +1 -1
  58. package/dist/chunks/useLabel-YLbDMN-c.js.map +1 -1
  59. package/dist/chunks/useLabels-BiXnWBSL.js.map +1 -1
  60. package/dist/chunks/useLabels-Bl0mJafM.js.map +1 -1
  61. package/dist/chunks/useMove-DeuS9PRx.js.map +1 -1
  62. package/dist/chunks/useMove-Xpbmb6OD.js.map +1 -1
  63. package/dist/chunks/usePress-Arf10jW0.js.map +1 -1
  64. package/dist/chunks/usePress-B1yQk_p8.js.map +1 -1
  65. package/dist/chunks/useProgressBar-BsO-Q5JP.js.map +1 -1
  66. package/dist/chunks/useProgressBar-d2k0k8r0.js.map +1 -1
  67. package/dist/chunks/useSlot-CFaaZeQE.js.map +1 -1
  68. package/dist/chunks/useSlot-TNtJf1z8.js.map +1 -1
  69. package/dist/chunks/utils-BCEhcDlv.js.map +1 -1
  70. package/dist/chunks/utils-DvHk9ofL.js.map +1 -1
  71. package/dist/components/ui/index.d.ts +0 -1
  72. package/dist/components/ui/index.d.ts.map +1 -1
  73. package/dist/data-table/index.cjs.js +1 -1
  74. package/dist/data-table/index.cjs.js.map +1 -1
  75. package/dist/data-table/index.es.js +1 -1
  76. package/dist/data-table/index.es.js.map +1 -1
  77. package/dist/form-tabs/index.cjs.js.map +1 -1
  78. package/dist/form-tabs/index.es.js.map +1 -1
  79. package/dist/lizaui.css +9 -9
  80. package/dist/meter/index.cjs.js.map +1 -1
  81. package/dist/meter/index.es.js.map +1 -1
  82. package/dist/pagination/index.cjs.js +1 -1
  83. package/dist/pagination/index.es.js +1 -1
  84. package/dist/slider/index.cjs.js.map +1 -1
  85. package/dist/slider/index.es.js.map +1 -1
  86. package/dist/tabs/index.cjs.js +1 -1
  87. package/dist/tabs/index.cjs.js.map +1 -1
  88. package/dist/tabs/index.es.js +1 -1
  89. package/dist/tabs/index.es.js.map +1 -1
  90. package/dist/time-input/index.cjs.js +1 -1
  91. package/dist/time-input/index.es.js +1 -1
  92. package/dist/toggle-switch/index.cjs.js.map +1 -1
  93. package/dist/toggle-switch/index.es.js.map +1 -1
  94. package/dist/toolbar/index.cjs.js.map +1 -1
  95. package/dist/toolbar/index.es.js.map +1 -1
  96. package/dist/travel-calendar/index.cjs.js +1 -1
  97. package/dist/travel-calendar/index.es.js +1 -1
  98. package/dist/ui/index.cjs.js +94 -420
  99. package/dist/ui/index.cjs.js.map +1 -1
  100. package/dist/ui/index.es.js +96 -422
  101. package/dist/ui/index.es.js.map +1 -1
  102. package/package.json +31 -31
  103. package/dist/chunks/textarea-8fv2j5Lo.js.map +0 -1
  104. package/dist/chunks/textarea-DNdGuFw8.js.map +0 -1
  105. package/dist/chunks/useHasTabbableChild-CSJ0P5QT.js.map +0 -1
  106. package/dist/chunks/useHasTabbableChild-kl2T5gEX.js.map +0 -1
  107. package/dist/components/ui/tabs.d.ts +0 -8
  108. package/dist/components/ui/tabs.d.ts.map +0 -1
@@ -7,7 +7,7 @@ const React = require("react");
7
7
  const ReactDOM = require("react-dom");
8
8
  const clsx = require("clsx");
9
9
  const styledComponents_browser_esm = require("../chunks/styled-components.browser.esm-B4EOQqQb.js");
10
- require("../chunks/textarea-8fv2j5Lo.js");
10
+ require("../chunks/textarea-C-0g_4r4.js");
11
11
  require("../chunks/input-D-ETWPYh.js");
12
12
  const labelError = require("../chunks/label-error-BItokOb6.js");
13
13
  require("../chunks/modal-ByRHCAPb.js");
@@ -5,7 +5,7 @@ import { memo, useLayoutEffect, useEffect, useState, useRef, useCallback, useMem
5
5
  import { createPortal } from "react-dom";
6
6
  import clsx from "clsx";
7
7
  import { m as makeEventProps, F as Fit, g as gt } from "../chunks/styled-components.browser.esm-BuZS2FOD.js";
8
- import "../chunks/textarea-DNdGuFw8.js";
8
+ import "../chunks/textarea-DUJqX13u.js";
9
9
  import "../chunks/input-DO2QjJ-y.js";
10
10
  import { L as LabelError } from "../chunks/label-error-Agq8c0z2.js";
11
11
  import "../chunks/modal-6a44a-EQ.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs.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","$860f7da480e22816$export$b8473d3665f3a75a","$23f2114a1b82827e$export$e58f029f0fbfdb29","$d27d541f9569d26d$export$45712eceda6fad21","$jQnU8$useState","$jQnU8$privateValidationStateProp","$d1116acdf220c2da$export$4c014de7c8940b4c","$bbaa08b3cd72f041$export$9d1611c77c2fe928","$8e9d2fae0ecb9001$export$457c3d6518dd4c6f","$3274bf1495747a7b$export$5add1d006293d136","$4c14b02d5228be26$export$ed2feabec4a533f4","$3e6197669829fe11$export$40bfa8c7b0832715","$dAajM$useState","$kf3DM$createContext","$kf3DM$forwardRef","$7230ffa83bc0c2cf$export$29f1550f4b0d4415","$kf3DM$useObjectRef","$kf3DM$useMemo","$kf3DM$mergeRefs","$kf3DM$useToggleState","$kf3DM$useSwitch","$7230ffa83bc0c2cf$export$ef03459518577ad4","$kf3DM$react","$7230ffa83bc0c2cf$export$2881499e37b75b9a","$kf3DM$useContext","$kf3DM$useFocusRing","$kf3DM$useHover","$7230ffa83bc0c2cf$export$4d86445c2cf5e3","$kf3DM$filterDOMProps","$7230ffa83bc0c2cf$export$df3a06d6289f983e","$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","jsx","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,kDAA+B;AAAA,IACr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;;;","x_google_ignoreList":[0,1,2,3]}
1
+ {"version":3,"file":"index.cjs.js","sources":["../../node_modules/.pnpm/react-aria@3.53.1_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.1_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.1_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","$860f7da480e22816$export$b8473d3665f3a75a","$23f2114a1b82827e$export$e58f029f0fbfdb29","$d27d541f9569d26d$export$45712eceda6fad21","$jQnU8$useState","$jQnU8$privateValidationStateProp","$d1116acdf220c2da$export$4c014de7c8940b4c","$bbaa08b3cd72f041$export$9d1611c77c2fe928","$8e9d2fae0ecb9001$export$457c3d6518dd4c6f","$3274bf1495747a7b$export$5add1d006293d136","$4c14b02d5228be26$export$ed2feabec4a533f4","$3e6197669829fe11$export$40bfa8c7b0832715","$dAajM$useState","$kf3DM$createContext","$kf3DM$forwardRef","$7230ffa83bc0c2cf$export$29f1550f4b0d4415","$kf3DM$useObjectRef","$kf3DM$useMemo","$kf3DM$mergeRefs","$kf3DM$useToggleState","$kf3DM$useSwitch","$7230ffa83bc0c2cf$export$ef03459518577ad4","$kf3DM$react","$7230ffa83bc0c2cf$export$2881499e37b75b9a","$kf3DM$useContext","$kf3DM$useFocusRing","$kf3DM$useHover","$7230ffa83bc0c2cf$export$4d86445c2cf5e3","$kf3DM$filterDOMProps","$7230ffa83bc0c2cf$export$df3a06d6289f983e","$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","jsx","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,kDAA+B;AAAA,IACrD,GAAG;AAAA,IACH,OAAO,MAAM;AAAA,EACrB,CAAK;AACD,MAAI,EAA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.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;A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B,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.1_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.1_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.1_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,gBA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C,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 +1 @@
1
- {"version":3,"file":"index.cjs.js","sources":["../../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/Separator.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/toolbar/useToolbar.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/ToggleButtonGroup.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/Toolbar.mjs","../../src/theme/color/toolbar.ts","../../src/components/toolbar/toolbar.tsx","../../src/components/toolbar/index.ts"],"sourcesContent":["import {dom as $7230ffa83bc0c2cf$export$df3a06d6289f983e, useContextProps as $7230ffa83bc0c2cf$export$29f1550f4b0d4415} from \"./utils.mjs\";\nimport {useSeparator as $adn6H$useSeparator} from \"react-aria/useSeparator\";\nimport {CollectionNode as $adn6H$CollectionNode} from \"react-aria/private/collections/BaseCollection\";\nimport {createLeafComponent as $adn6H$createLeafComponent} from \"react-aria/CollectionBuilder\";\nimport {filterDOMProps as $adn6H$filterDOMProps} from \"react-aria/filterDOMProps\";\nimport {mergeProps as $adn6H$mergeProps} from \"react-aria/mergeProps\";\nimport $adn6H$react, {createContext as $adn6H$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\n\n\n\n\nconst $e28ab3efe3e87743$export$6615d83f6de245ce = /*#__PURE__*/ (0, $adn6H$createContext)({});\nclass $e28ab3efe3e87743$export$7750289ca694c0b5 extends (0, $adn6H$CollectionNode) {\n static{\n this.type = 'separator';\n }\n filter(collection, newCollection) {\n let prevItem = newCollection.getItem(this.prevKey);\n if (prevItem && prevItem.type !== 'separator') {\n let clone = this.clone();\n newCollection.addDescendants(clone, collection);\n return clone;\n }\n return null;\n }\n}\nconst $e28ab3efe3e87743$export$1ff3c3f08ae963c0 = /*#__PURE__*/ (0, $adn6H$createLeafComponent)($e28ab3efe3e87743$export$7750289ca694c0b5, function Separator(props, ref) {\n [props, ref] = (0, $7230ffa83bc0c2cf$export$29f1550f4b0d4415)(props, ref, $e28ab3efe3e87743$export$6615d83f6de245ce);\n let { elementType: elementType, orientation: orientation, style: style, className: className, slot: slot, ...otherProps } = props;\n let Element = elementType || 'hr';\n if (Element === 'hr' && orientation === 'vertical') Element = 'div';\n let ElementType = (0, $7230ffa83bc0c2cf$export$df3a06d6289f983e)[Element];\n let { separatorProps: separatorProps } = (0, $adn6H$useSeparator)({\n ...otherProps,\n elementType: elementType,\n orientation: orientation\n });\n let DOMProps = (0, $adn6H$filterDOMProps)(props, {\n global: true\n });\n return /*#__PURE__*/ (0, $adn6H$react).createElement(ElementType, {\n render: props.render,\n ...(0, $adn6H$mergeProps)(DOMProps, separatorProps),\n style: style,\n className: className ?? 'react-aria-Separator',\n ref: ref,\n slot: slot || undefined\n });\n});\n\n\nexport {$e28ab3efe3e87743$export$6615d83f6de245ce as SeparatorContext, $e28ab3efe3e87743$export$7750289ca694c0b5 as SeparatorNode, $e28ab3efe3e87743$export$1ff3c3f08ae963c0 as Separator};\n//# sourceMappingURL=Separator.mjs.map\n","import {createFocusManager as $535772f9d2c1f38d$export$c5251b9e124bf29} from \"../focus/FocusScope.mjs\";\nimport {filterDOMProps as $8e9d2fae0ecb9001$export$457c3d6518dd4c6f} from \"../utils/filterDOMProps.mjs\";\nimport {getActiveElement as $23f2114a1b82827e$export$cd4e5573fbe2b576, getEventTarget as $23f2114a1b82827e$export$e58f029f0fbfdb29, nodeContains as $23f2114a1b82827e$export$4282f70798064fe0} from \"../utils/shadowdom/DOMFunctions.mjs\";\nimport {useLayoutEffect as $c4867b2f328c2698$export$e5c5a5f917a5871c} from \"../utils/useLayoutEffect.mjs\";\nimport {useLocale as $2eb8e6d23f3d0cb0$export$43bb16f9c6d9e3f7} from \"../i18n/I18nProvider.mjs\";\nimport {useState as $jBcN3$useState, useRef as $jBcN3$useRef} from \"react\";\n\n/*\n * Copyright 2023 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\nfunction $afa781ff67c1cd08$export$fa142eb1681c520(props, ref) {\n const { 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, orientation: orientation = 'horizontal' } = props;\n let [isInToolbar, setInToolbar] = (0, $jBcN3$useState)(false);\n // should be safe because re-calling set state with the same value it already has is a no-op\n // this will allow us to react should a parent re-render and change its role though\n // eslint-disable-next-line react-hooks/exhaustive-deps\n (0, $c4867b2f328c2698$export$e5c5a5f917a5871c)(()=>{\n setInToolbar(!!(ref.current && ref.current.parentElement?.closest('[role=\"toolbar\"]')));\n });\n const { direction: direction } = (0, $2eb8e6d23f3d0cb0$export$43bb16f9c6d9e3f7)();\n const shouldReverse = direction === 'rtl' && orientation === 'horizontal';\n // oxlint-disable-next-line react/react-compiler\n let focusManager = (0, $535772f9d2c1f38d$export$c5251b9e124bf29)(ref);\n const onKeyDown = (e)=>{\n // don't handle portalled events\n if (!(0, $23f2114a1b82827e$export$4282f70798064fe0)(e.currentTarget, (0, $23f2114a1b82827e$export$e58f029f0fbfdb29)(e))) return;\n if (orientation === 'horizontal' && e.key === 'ArrowRight' || orientation === 'vertical' && e.key === 'ArrowDown') {\n if (shouldReverse) focusManager.focusPrevious();\n else focusManager.focusNext();\n } else if (orientation === 'horizontal' && e.key === 'ArrowLeft' || orientation === 'vertical' && e.key === 'ArrowUp') {\n if (shouldReverse) focusManager.focusNext();\n else focusManager.focusPrevious();\n } else if (e.key === 'Tab') {\n // When the tab key is pressed, we want to move focus\n // out of the entire toolbar. To do this, move focus\n // to the first or last focusable child, and let the\n // browser handle the Tab key as usual from there.\n lastFocused.current = (0, $23f2114a1b82827e$export$cd4e5573fbe2b576)();\n if (e.shiftKey) focusManager.focusFirst();\n else focusManager.focusLast();\n return;\n } else // if we didn't handle anything, return early so we don't preventDefault\n return;\n // Prevent arrow keys from being handled by nested action groups.\n e.stopPropagation();\n e.preventDefault();\n };\n // Record the last focused child when focus moves out of the toolbar.\n const lastFocused = (0, $jBcN3$useRef)(null);\n const onBlur = (e)=>{\n if (!(0, $23f2114a1b82827e$export$4282f70798064fe0)(e.currentTarget, e.relatedTarget) && !lastFocused.current) lastFocused.current = (0, $23f2114a1b82827e$export$e58f029f0fbfdb29)(e);\n };\n // Restore focus to the last focused child when focus returns into the toolbar.\n // If the element was removed, do nothing, either the first item in the first group,\n // or the last item in the last group will be focused, depending on direction.\n const onFocus = (e)=>{\n if (lastFocused.current && !(0, $23f2114a1b82827e$export$4282f70798064fe0)(e.currentTarget, e.relatedTarget) && (0, $23f2114a1b82827e$export$4282f70798064fe0)(ref.current, (0, $23f2114a1b82827e$export$e58f029f0fbfdb29)(e))) {\n lastFocused.current?.focus();\n lastFocused.current = null;\n }\n };\n return {\n toolbarProps: {\n ...(0, $8e9d2fae0ecb9001$export$457c3d6518dd4c6f)(props, {\n labelable: true\n }),\n role: !isInToolbar ? 'toolbar' : 'group',\n 'aria-orientation': orientation,\n 'aria-label': ariaLabel,\n 'aria-labelledby': ariaLabel == null ? ariaLabelledBy : undefined,\n onKeyDownCapture: !isInToolbar ? onKeyDown : undefined,\n onFocusCapture: !isInToolbar ? onFocus : undefined,\n onBlurCapture: !isInToolbar ? onBlur : undefined\n }\n };\n}\n\n\nexport {$afa781ff67c1cd08$export$fa142eb1681c520 as useToolbar};\n//# sourceMappingURL=useToolbar.mjs.map\n","import {dom as $7230ffa83bc0c2cf$export$df3a06d6289f983e, useContextProps as $7230ffa83bc0c2cf$export$29f1550f4b0d4415, useRenderProps as $7230ffa83bc0c2cf$export$4d86445c2cf5e3} from \"./utils.mjs\";\nimport {SharedElementTransition as $792f28e438b9ad5f$export$758399f318e6385a} from \"./SharedElementTransition.mjs\";\nimport {useToggleButtonGroup as $9mIod$useToggleButtonGroup} from \"react-aria/useToggleButtonGroup\";\nimport {filterDOMProps as $9mIod$filterDOMProps} from \"react-aria/filterDOMProps\";\nimport {mergeProps as $9mIod$mergeProps} from \"react-aria/mergeProps\";\nimport $9mIod$react, {createContext as $9mIod$createContext, forwardRef as $9mIod$forwardRef} from \"react\";\nimport {useToggleGroupState as $9mIod$useToggleGroupState} from \"react-stately/useToggleGroupState\";\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\n\n\n\n\n\nconst $bc25b811ec97a172$export$298258635ae0dd97 = /*#__PURE__*/ (0, $9mIod$createContext)({});\nconst $bc25b811ec97a172$export$a8a71863db173133 = /*#__PURE__*/ (0, $9mIod$createContext)(null);\nconst $bc25b811ec97a172$export$40258cc1d95ff477 = /*#__PURE__*/ (0, $9mIod$forwardRef)(function ToggleButtonGroup(props, ref) {\n [props, ref] = (0, $7230ffa83bc0c2cf$export$29f1550f4b0d4415)(props, ref, $bc25b811ec97a172$export$298258635ae0dd97);\n let state = (0, $9mIod$useToggleGroupState)(props);\n let { groupProps: groupProps } = (0, $9mIod$useToggleButtonGroup)(props, state, ref);\n let renderProps = (0, $7230ffa83bc0c2cf$export$4d86445c2cf5e3)({\n ...props,\n values: {\n orientation: props.orientation || 'horizontal',\n isDisabled: state.isDisabled,\n state: state\n },\n defaultClassName: 'react-aria-ToggleButtonGroup'\n });\n let DOMProps = (0, $9mIod$filterDOMProps)(props, {\n global: true\n });\n return /*#__PURE__*/ (0, $9mIod$react).createElement((0, $7230ffa83bc0c2cf$export$df3a06d6289f983e).div, {\n ...(0, $9mIod$mergeProps)(DOMProps, renderProps, groupProps),\n ref: ref,\n slot: props.slot || undefined,\n \"data-orientation\": props.orientation || 'horizontal',\n \"data-disabled\": props.isDisabled || undefined\n }, /*#__PURE__*/ (0, $9mIod$react).createElement($bc25b811ec97a172$export$a8a71863db173133.Provider, {\n value: state\n }, /*#__PURE__*/ (0, $9mIod$react).createElement((0, $792f28e438b9ad5f$export$758399f318e6385a), null, renderProps.children)));\n});\n\n\nexport {$bc25b811ec97a172$export$298258635ae0dd97 as ToggleButtonGroupContext, $bc25b811ec97a172$export$a8a71863db173133 as ToggleGroupStateContext, $bc25b811ec97a172$export$40258cc1d95ff477 as ToggleButtonGroup};\n//# sourceMappingURL=ToggleButtonGroup.mjs.map\n","import {dom as $7230ffa83bc0c2cf$export$df3a06d6289f983e, useContextProps as $7230ffa83bc0c2cf$export$29f1550f4b0d4415, useRenderProps as $7230ffa83bc0c2cf$export$4d86445c2cf5e3} from \"./utils.mjs\";\nimport {useToolbar as $1ohuH$useToolbar} from \"react-aria/useToolbar\";\nimport {filterDOMProps as $1ohuH$filterDOMProps} from \"react-aria/filterDOMProps\";\nimport {mergeProps as $1ohuH$mergeProps} from \"react-aria/mergeProps\";\nimport $1ohuH$react, {createContext as $1ohuH$createContext, forwardRef as $1ohuH$forwardRef} from \"react\";\n\n/*\n * Copyright 2023 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\nconst $db7105decd081705$export$6311e7ab80ef752f = /*#__PURE__*/ (0, $1ohuH$createContext)({});\nconst $db7105decd081705$export$4c260019440d418f = /*#__PURE__*/ (0, $1ohuH$forwardRef)(function Toolbar(props, ref) {\n [props, ref] = (0, $7230ffa83bc0c2cf$export$29f1550f4b0d4415)(props, ref, $db7105decd081705$export$6311e7ab80ef752f);\n let { toolbarProps: toolbarProps } = (0, $1ohuH$useToolbar)(props, ref);\n let renderProps = (0, $7230ffa83bc0c2cf$export$4d86445c2cf5e3)({\n ...props,\n values: {\n orientation: props.orientation || 'horizontal'\n },\n defaultClassName: 'react-aria-Toolbar'\n });\n let DOMProps = (0, $1ohuH$filterDOMProps)(props, {\n global: true\n });\n delete DOMProps.id;\n return /*#__PURE__*/ (0, $1ohuH$react).createElement((0, $7230ffa83bc0c2cf$export$df3a06d6289f983e).div, {\n ...(0, $1ohuH$mergeProps)(DOMProps, renderProps, toolbarProps),\n ref: ref,\n slot: props.slot || undefined,\n \"data-orientation\": props.orientation || 'horizontal'\n }, renderProps.children);\n});\n\n\nexport {$db7105decd081705$export$6311e7ab80ef752f as ToolbarContext, $db7105decd081705$export$4c260019440d418f as Toolbar};\n//# sourceMappingURL=Toolbar.mjs.map\n","import { tv } from \"@/lib/tv\";\nimport type { VariantProps } from \"tailwind-variants\";\n\nexport const toolbarVariants = tv({\n\tdefaultVariants: {\n\t\tisAttached: false,\n\t\torientation: \"horizontal\",\n\t},\n\tslots: {\n\t\tbase: \"toolbar\",\n\t},\n\tvariants: {\n\t\tisAttached: {\n\t\t\tfalse: {},\n\t\t\ttrue: {\n\t\t\t\tbase: \"toolbar--attached\",\n\t\t\t},\n\t\t},\n\t\torientation: {\n\t\t\thorizontal: {\n\t\t\t\tbase: \"toolbar--horizontal\",\n\t\t\t},\n\t\t\tvertical: {\n\t\t\t\tbase: \"toolbar--vertical\",\n\t\t\t},\n\t\t},\n\t},\n});\n\nexport type ToolbarVariants = VariantProps<typeof toolbarVariants>;\n","\"use client\";\n\nimport type { ToolbarVariants } from \"@/theme/color/toolbar\";\nimport type { ComponentPropsWithRef } from \"react\";\n\nimport { toolbarVariants } from \"@/theme/color/toolbar\";\nimport React from \"react\";\nimport { composeRenderProps, SeparatorContext, ToggleButtonGroupContext, Toolbar as ToolbarPrimitive } from \"react-aria-components\";\nimport { cx } from \"tailwind-variants\";\nimport \"./toolbar.css\";\n\nfunction composeTwRenderProps<T>(\n\tclassName: string | ((values: T) => string) | undefined,\n\ttailwind?: string | ((values: T) => string | undefined),\n): string | ((values: T) => string) {\n\treturn composeRenderProps(className, (currentClassName, renderProps): string => {\n\t\tconst tw = typeof tailwind === \"function\" ? (tailwind(renderProps as T) ?? \"\") : (tailwind ?? \"\");\n\t\tconst cls = currentClassName ?? \"\";\n\n\t\treturn cx(tw, cls) ?? \"\";\n\t});\n}\n\ntype ToolbarRootProps = ComponentPropsWithRef<typeof ToolbarPrimitive> & ToolbarVariants;\n\nconst ToolbarRoot = ({ children, className, isAttached, orientation = \"horizontal\", ...props }: ToolbarRootProps) => {\n\tconst styles = React.useMemo(() => toolbarVariants({ isAttached, orientation }), [isAttached, orientation]);\n\n\treturn (\n\t\t<ToggleButtonGroupContext.Provider value={{ orientation }}>\n\t\t\t<SeparatorContext.Provider value={{ orientation: orientation === \"horizontal\" ? \"vertical\" : \"horizontal\" }}>\n\t\t\t\t<ToolbarPrimitive className={composeTwRenderProps(className, styles.base())} data-slot=\"toolbar\" orientation={orientation} {...props}>\n\t\t\t\t\t{children}\n\t\t\t\t</ToolbarPrimitive>\n\t\t\t</SeparatorContext.Provider>\n\t\t</ToggleButtonGroupContext.Provider>\n\t);\n};\n\nexport { ToolbarRoot };\n\nexport type { ToolbarRootProps };\n","import type { ComponentProps } from \"react\";\n\nimport { toolbarVariants } from \"@/theme/color/toolbar\";\nimport { ToolbarRoot } from \"./toolbar\";\n\nexport const Toolbar = Object.assign(ToolbarRoot, {\n\tRoot: ToolbarRoot,\n});\n\nexport type Toolbar = {\n\tProps: ComponentProps<typeof ToolbarRoot>;\n\tRootProps: ComponentProps<typeof ToolbarRoot>;\n};\n\nexport { ToolbarRoot, toolbarVariants };\n\nexport type { ToolbarRootProps as ToolbarProps, ToolbarRootProps } from \"./toolbar\";\n\nexport type { ToolbarVariants } from \"@/theme/color/toolbar\";\n"],"names":["$adn6H$createContext","$adn6H$CollectionNode","$jBcN3$useState","$c4867b2f328c2698$export$e5c5a5f917a5871c","$2eb8e6d23f3d0cb0$export$43bb16f9c6d9e3f7","$535772f9d2c1f38d$export$c5251b9e124bf29","$23f2114a1b82827e$export$4282f70798064fe0","$23f2114a1b82827e$export$e58f029f0fbfdb29","$23f2114a1b82827e$export$cd4e5573fbe2b576","$jBcN3$useRef","$8e9d2fae0ecb9001$export$457c3d6518dd4c6f","$9mIod$createContext","$1ohuH$createContext","$1ohuH$forwardRef","$7230ffa83bc0c2cf$export$29f1550f4b0d4415","$1ohuH$useToolbar","$7230ffa83bc0c2cf$export$4d86445c2cf5e3","$1ohuH$filterDOMProps","$1ohuH$react","$7230ffa83bc0c2cf$export$df3a06d6289f983e","$1ohuH$mergeProps","toolbarVariants","tv","defaultVariants","isAttached","orientation","slots","base","variants","false","true","horizontal","vertical","composeTwRenderProps","className","tailwind","composeRenderProps","currentClassName","renderProps","tw","cls","cx","ToolbarRoot","t0","$","_c","children","props","t1","undefined","t2","styles","t3","t4","t5","t6","t7","jsx","ToolbarPrimitive","t8","SeparatorContext","t9","ToggleButtonGroupContext","Toolbar","Object","assign","Root"],"mappings":";;;;;;;;;;;;;AAyBA,MAAM,4CAA8DA,sBAAAA,cAAsB,EAAE;AAC5F,MAAM,6CAAN,MAAM,mDAAsDC,eAAAA,0CAAuB;AAAA,EAI/E,OAAO,YAAY,eAAe;AAC9B,QAAI,WAAW,cAAc,QAAQ,KAAK,OAAO;AACjD,QAAI,YAAY,SAAS,SAAS,aAAa;AAC3C,UAAI,QAAQ,KAAK,MAAK;AACtB,oBAAc,eAAe,OAAO,UAAU;AAC9C,aAAO;AAAA,IACX;AACA,WAAO;AAAA,EACX;AACJ;AAXQ,2CAAK,OAAO;AAFpB,IAAM,4CAAN;ACHA,SAAS,yCAAyC,OAAO,KAAK;AAC1D,QAAM,EAAE,cAAc,WAAW,mBAAmB,gBAAgB,cAA2B,aAAY,I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AAAW;AAAAX,YAAAY;AAAAA,EAAA,OAAA;AAAAA,SAAAZ,EAAA,EAAA;AAAA,EAAA;AAAA,MAAAe;AAAA,MAAAf,EAAA,EAAA,MAAAU,MAAAV,UAAAY,IAAA;AAHpBG,wCAAAC,0CAAA,UAAA,EAAkC,OAAAN,IACjCE,UAAAA,IAGD;AAA4BZ,YAAAU;AAAAV,YAAAY;AAAAZ,YAAAe;AAAAA,EAAA,OAAA;AAAAA,SAAAf,EAAA,EAAA;AAAA,EAAA;AAAA,MAAAiB;AAAA,MAAAjB,EAAA,EAAA,MAAAQ,MAAAR,UAAAe,IAAA;AAL7BE,wCAAAC,0CAAA,UAAA,EAA0C,OAAAV,IACzCO,UAAAA,IAKD;AAAoCf,YAAAQ;AAAAR,YAAAe;AAAAf,YAAAiB;AAAAA,EAAA,OAAA;AAAAA,SAAAjB,EAAA,EAAA;AAAA,EAAA;AAAA,SANpCiB;AAMoC;AC9B/B,MAAME,WAAUC,OAAOC,OAAOvB,aAAa;AAAA,EACjDwB,MAAMxB;AACP,CAAC;;;;","x_google_ignoreList":[0,1,2,3]}
1
+ {"version":3,"file":"index.cjs.js","sources":["../../node_modules/.pnpm/react-aria-components@1.22.1_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-aria-components/dist/private/Separator.mjs","../../node_modules/.pnpm/react-aria@3.53.1_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-aria/dist/private/toolbar/useToolbar.mjs","../../node_modules/.pnpm/react-aria-components@1.22.1_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-aria-components/dist/private/ToggleButtonGroup.mjs","../../node_modules/.pnpm/react-aria-components@1.22.1_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-aria-components/dist/private/Toolbar.mjs","../../src/theme/color/toolbar.ts","../../src/components/toolbar/toolbar.tsx","../../src/components/toolbar/index.ts"],"sourcesContent":["import {dom as $7230ffa83bc0c2cf$export$df3a06d6289f983e, useContextProps as $7230ffa83bc0c2cf$export$29f1550f4b0d4415} from \"./utils.mjs\";\nimport {useSeparator as $adn6H$useSeparator} from \"react-aria/useSeparator\";\nimport {CollectionNode as $adn6H$CollectionNode} from \"react-aria/private/collections/BaseCollection\";\nimport {createLeafComponent as $adn6H$createLeafComponent} from \"react-aria/CollectionBuilder\";\nimport {filterDOMProps as $adn6H$filterDOMProps} from \"react-aria/filterDOMProps\";\nimport {mergeProps as $adn6H$mergeProps} from \"react-aria/mergeProps\";\nimport $adn6H$react, {createContext as $adn6H$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\n\n\n\n\nconst $e28ab3efe3e87743$export$6615d83f6de245ce = /*#__PURE__*/ (0, $adn6H$createContext)({});\nclass $e28ab3efe3e87743$export$7750289ca694c0b5 extends (0, $adn6H$CollectionNode) {\n static{\n this.type = 'separator';\n }\n filter(collection, newCollection) {\n let prevItem = newCollection.getItem(this.prevKey);\n if (prevItem && prevItem.type !== 'separator') {\n let clone = this.clone();\n newCollection.addDescendants(clone, collection);\n return clone;\n }\n return null;\n }\n}\nconst $e28ab3efe3e87743$export$1ff3c3f08ae963c0 = /*#__PURE__*/ (0, $adn6H$createLeafComponent)($e28ab3efe3e87743$export$7750289ca694c0b5, function Separator(props, ref) {\n [props, ref] = (0, $7230ffa83bc0c2cf$export$29f1550f4b0d4415)(props, ref, $e28ab3efe3e87743$export$6615d83f6de245ce);\n let { elementType: elementType, orientation: orientation, style: style, className: className, slot: slot, ...otherProps } = props;\n let Element = elementType || 'hr';\n if (Element === 'hr' && orientation === 'vertical') Element = 'div';\n let ElementType = (0, $7230ffa83bc0c2cf$export$df3a06d6289f983e)[Element];\n let { separatorProps: separatorProps } = (0, $adn6H$useSeparator)({\n ...otherProps,\n elementType: elementType,\n orientation: orientation\n });\n let DOMProps = (0, $adn6H$filterDOMProps)(props, {\n global: true\n });\n return /*#__PURE__*/ (0, $adn6H$react).createElement(ElementType, {\n render: props.render,\n ...(0, $adn6H$mergeProps)(DOMProps, separatorProps),\n style: style,\n className: className ?? 'react-aria-Separator',\n ref: ref,\n slot: slot || undefined\n });\n});\n\n\nexport {$e28ab3efe3e87743$export$6615d83f6de245ce as SeparatorContext, $e28ab3efe3e87743$export$7750289ca694c0b5 as SeparatorNode, $e28ab3efe3e87743$export$1ff3c3f08ae963c0 as Separator};\n//# sourceMappingURL=Separator.mjs.map\n","import {createFocusManager as $535772f9d2c1f38d$export$c5251b9e124bf29} from \"../focus/FocusScope.mjs\";\nimport {filterDOMProps as $8e9d2fae0ecb9001$export$457c3d6518dd4c6f} from \"../utils/filterDOMProps.mjs\";\nimport {getActiveElement as $23f2114a1b82827e$export$cd4e5573fbe2b576, getEventTarget as $23f2114a1b82827e$export$e58f029f0fbfdb29, nodeContains as $23f2114a1b82827e$export$4282f70798064fe0} from \"../utils/shadowdom/DOMFunctions.mjs\";\nimport {useLayoutEffect as $c4867b2f328c2698$export$e5c5a5f917a5871c} from \"../utils/useLayoutEffect.mjs\";\nimport {useLocale as $2eb8e6d23f3d0cb0$export$43bb16f9c6d9e3f7} from \"../i18n/I18nProvider.mjs\";\nimport {useState as $jBcN3$useState, useRef as $jBcN3$useRef} from \"react\";\n\n/*\n * Copyright 2023 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\nfunction $afa781ff67c1cd08$export$fa142eb1681c520(props, ref) {\n const { 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, orientation: orientation = 'horizontal' } = props;\n let [isInToolbar, setInToolbar] = (0, $jBcN3$useState)(false);\n // should be safe because re-calling set state with the same value it already has is a no-op\n // this will allow us to react should a parent re-render and change its role though\n // eslint-disable-next-line react-hooks/exhaustive-deps\n (0, $c4867b2f328c2698$export$e5c5a5f917a5871c)(()=>{\n setInToolbar(!!(ref.current && ref.current.parentElement?.closest('[role=\"toolbar\"]')));\n });\n const { direction: direction } = (0, $2eb8e6d23f3d0cb0$export$43bb16f9c6d9e3f7)();\n const shouldReverse = direction === 'rtl' && orientation === 'horizontal';\n // oxlint-disable-next-line react/react-compiler\n let focusManager = (0, $535772f9d2c1f38d$export$c5251b9e124bf29)(ref);\n const onKeyDown = (e)=>{\n // don't handle portalled events\n if (!(0, $23f2114a1b82827e$export$4282f70798064fe0)(e.currentTarget, (0, $23f2114a1b82827e$export$e58f029f0fbfdb29)(e))) return;\n if (orientation === 'horizontal' && e.key === 'ArrowRight' || orientation === 'vertical' && e.key === 'ArrowDown') {\n if (shouldReverse) focusManager.focusPrevious();\n else focusManager.focusNext();\n } else if (orientation === 'horizontal' && e.key === 'ArrowLeft' || orientation === 'vertical' && e.key === 'ArrowUp') {\n if (shouldReverse) focusManager.focusNext();\n else focusManager.focusPrevious();\n } else if (e.key === 'Tab') {\n // When the tab key is pressed, we want to move focus\n // out of the entire toolbar. To do this, move focus\n // to the first or last focusable child, and let the\n // browser handle the Tab key as usual from there.\n lastFocused.current = (0, $23f2114a1b82827e$export$cd4e5573fbe2b576)();\n if (e.shiftKey) focusManager.focusFirst();\n else focusManager.focusLast();\n return;\n } else // if we didn't handle anything, return early so we don't preventDefault\n return;\n // Prevent arrow keys from being handled by nested action groups.\n e.stopPropagation();\n e.preventDefault();\n };\n // Record the last focused child when focus moves out of the toolbar.\n const lastFocused = (0, $jBcN3$useRef)(null);\n const onBlur = (e)=>{\n if (!(0, $23f2114a1b82827e$export$4282f70798064fe0)(e.currentTarget, e.relatedTarget) && !lastFocused.current) lastFocused.current = (0, $23f2114a1b82827e$export$e58f029f0fbfdb29)(e);\n };\n // Restore focus to the last focused child when focus returns into the toolbar.\n // If the element was removed, do nothing, either the first item in the first group,\n // or the last item in the last group will be focused, depending on direction.\n const onFocus = (e)=>{\n if (lastFocused.current && !(0, $23f2114a1b82827e$export$4282f70798064fe0)(e.currentTarget, e.relatedTarget) && (0, $23f2114a1b82827e$export$4282f70798064fe0)(ref.current, (0, $23f2114a1b82827e$export$e58f029f0fbfdb29)(e))) {\n lastFocused.current?.focus();\n lastFocused.current = null;\n }\n };\n return {\n toolbarProps: {\n ...(0, $8e9d2fae0ecb9001$export$457c3d6518dd4c6f)(props, {\n labelable: true\n }),\n role: !isInToolbar ? 'toolbar' : 'group',\n 'aria-orientation': orientation,\n 'aria-label': ariaLabel,\n 'aria-labelledby': ariaLabel == null ? ariaLabelledBy : undefined,\n onKeyDownCapture: !isInToolbar ? onKeyDown : undefined,\n onFocusCapture: !isInToolbar ? onFocus : undefined,\n onBlurCapture: !isInToolbar ? onBlur : undefined\n }\n };\n}\n\n\nexport {$afa781ff67c1cd08$export$fa142eb1681c520 as useToolbar};\n//# sourceMappingURL=useToolbar.mjs.map\n","import {dom as $7230ffa83bc0c2cf$export$df3a06d6289f983e, useContextProps as $7230ffa83bc0c2cf$export$29f1550f4b0d4415, useRenderProps as $7230ffa83bc0c2cf$export$4d86445c2cf5e3} from \"./utils.mjs\";\nimport {SharedElementTransition as $792f28e438b9ad5f$export$758399f318e6385a} from \"./SharedElementTransition.mjs\";\nimport {useToggleButtonGroup as $9mIod$useToggleButtonGroup} from \"react-aria/useToggleButtonGroup\";\nimport {filterDOMProps as $9mIod$filterDOMProps} from \"react-aria/filterDOMProps\";\nimport {mergeProps as $9mIod$mergeProps} from \"react-aria/mergeProps\";\nimport $9mIod$react, {createContext as $9mIod$createContext, forwardRef as $9mIod$forwardRef} from \"react\";\nimport {useToggleGroupState as $9mIod$useToggleGroupState} from \"react-stately/useToggleGroupState\";\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\n\n\n\n\n\nconst $bc25b811ec97a172$export$298258635ae0dd97 = /*#__PURE__*/ (0, $9mIod$createContext)({});\nconst $bc25b811ec97a172$export$a8a71863db173133 = /*#__PURE__*/ (0, $9mIod$createContext)(null);\nconst $bc25b811ec97a172$export$40258cc1d95ff477 = /*#__PURE__*/ (0, $9mIod$forwardRef)(function ToggleButtonGroup(props, ref) {\n [props, ref] = (0, $7230ffa83bc0c2cf$export$29f1550f4b0d4415)(props, ref, $bc25b811ec97a172$export$298258635ae0dd97);\n let state = (0, $9mIod$useToggleGroupState)(props);\n let { groupProps: groupProps } = (0, $9mIod$useToggleButtonGroup)(props, state, ref);\n let renderProps = (0, $7230ffa83bc0c2cf$export$4d86445c2cf5e3)({\n ...props,\n values: {\n orientation: props.orientation || 'horizontal',\n isDisabled: state.isDisabled,\n state: state\n },\n defaultClassName: 'react-aria-ToggleButtonGroup'\n });\n let DOMProps = (0, $9mIod$filterDOMProps)(props, {\n global: true\n });\n return /*#__PURE__*/ (0, $9mIod$react).createElement((0, $7230ffa83bc0c2cf$export$df3a06d6289f983e).div, {\n ...(0, $9mIod$mergeProps)(DOMProps, renderProps, groupProps),\n ref: ref,\n slot: props.slot || undefined,\n \"data-orientation\": props.orientation || 'horizontal',\n \"data-disabled\": props.isDisabled || undefined\n }, /*#__PURE__*/ (0, $9mIod$react).createElement($bc25b811ec97a172$export$a8a71863db173133.Provider, {\n value: state\n }, /*#__PURE__*/ (0, $9mIod$react).createElement((0, $792f28e438b9ad5f$export$758399f318e6385a), null, renderProps.children)));\n});\n\n\nexport {$bc25b811ec97a172$export$298258635ae0dd97 as ToggleButtonGroupContext, $bc25b811ec97a172$export$a8a71863db173133 as ToggleGroupStateContext, $bc25b811ec97a172$export$40258cc1d95ff477 as ToggleButtonGroup};\n//# sourceMappingURL=ToggleButtonGroup.mjs.map\n","import {dom as $7230ffa83bc0c2cf$export$df3a06d6289f983e, useContextProps as $7230ffa83bc0c2cf$export$29f1550f4b0d4415, useRenderProps as $7230ffa83bc0c2cf$export$4d86445c2cf5e3} from \"./utils.mjs\";\nimport {useToolbar as $1ohuH$useToolbar} from \"react-aria/useToolbar\";\nimport {filterDOMProps as $1ohuH$filterDOMProps} from \"react-aria/filterDOMProps\";\nimport {mergeProps as $1ohuH$mergeProps} from \"react-aria/mergeProps\";\nimport $1ohuH$react, {createContext as $1ohuH$createContext, forwardRef as $1ohuH$forwardRef} from \"react\";\n\n/*\n * Copyright 2023 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\nconst $db7105decd081705$export$6311e7ab80ef752f = /*#__PURE__*/ (0, $1ohuH$createContext)({});\nconst $db7105decd081705$export$4c260019440d418f = /*#__PURE__*/ (0, $1ohuH$forwardRef)(function Toolbar(props, ref) {\n [props, ref] = (0, $7230ffa83bc0c2cf$export$29f1550f4b0d4415)(props, ref, $db7105decd081705$export$6311e7ab80ef752f);\n let { toolbarProps: toolbarProps } = (0, $1ohuH$useToolbar)(props, ref);\n let renderProps = (0, $7230ffa83bc0c2cf$export$4d86445c2cf5e3)({\n ...props,\n values: {\n orientation: props.orientation || 'horizontal'\n },\n defaultClassName: 'react-aria-Toolbar'\n });\n let DOMProps = (0, $1ohuH$filterDOMProps)(props, {\n global: true\n });\n delete DOMProps.id;\n return /*#__PURE__*/ (0, $1ohuH$react).createElement((0, $7230ffa83bc0c2cf$export$df3a06d6289f983e).div, {\n ...(0, $1ohuH$mergeProps)(DOMProps, renderProps, toolbarProps),\n ref: ref,\n slot: props.slot || undefined,\n \"data-orientation\": props.orientation || 'horizontal'\n }, renderProps.children);\n});\n\n\nexport {$db7105decd081705$export$6311e7ab80ef752f as ToolbarContext, $db7105decd081705$export$4c260019440d418f as Toolbar};\n//# sourceMappingURL=Toolbar.mjs.map\n","import { tv } from \"@/lib/tv\";\nimport type { VariantProps } from \"tailwind-variants\";\n\nexport const toolbarVariants = tv({\n\tdefaultVariants: {\n\t\tisAttached: false,\n\t\torientation: \"horizontal\",\n\t},\n\tslots: {\n\t\tbase: \"toolbar\",\n\t},\n\tvariants: {\n\t\tisAttached: {\n\t\t\tfalse: {},\n\t\t\ttrue: {\n\t\t\t\tbase: \"toolbar--attached\",\n\t\t\t},\n\t\t},\n\t\torientation: {\n\t\t\thorizontal: {\n\t\t\t\tbase: \"toolbar--horizontal\",\n\t\t\t},\n\t\t\tvertical: {\n\t\t\t\tbase: \"toolbar--vertical\",\n\t\t\t},\n\t\t},\n\t},\n});\n\nexport type ToolbarVariants = VariantProps<typeof toolbarVariants>;\n","\"use client\";\n\nimport type { ToolbarVariants } from \"@/theme/color/toolbar\";\nimport type { ComponentPropsWithRef } from \"react\";\n\nimport { toolbarVariants } from \"@/theme/color/toolbar\";\nimport React from \"react\";\nimport { composeRenderProps, SeparatorContext, ToggleButtonGroupContext, Toolbar as ToolbarPrimitive } from \"react-aria-components\";\nimport { cx } from \"tailwind-variants\";\nimport \"./toolbar.css\";\n\nfunction composeTwRenderProps<T>(\n\tclassName: string | ((values: T) => string) | undefined,\n\ttailwind?: string | ((values: T) => string | undefined),\n): string | ((values: T) => string) {\n\treturn composeRenderProps(className, (currentClassName, renderProps): string => {\n\t\tconst tw = typeof tailwind === \"function\" ? (tailwind(renderProps as T) ?? \"\") : (tailwind ?? \"\");\n\t\tconst cls = currentClassName ?? \"\";\n\n\t\treturn cx(tw, cls) ?? \"\";\n\t});\n}\n\ntype ToolbarRootProps = ComponentPropsWithRef<typeof ToolbarPrimitive> & ToolbarVariants;\n\nconst ToolbarRoot = ({ children, className, isAttached, orientation = \"horizontal\", ...props }: ToolbarRootProps) => {\n\tconst styles = React.useMemo(() => toolbarVariants({ isAttached, orientation }), [isAttached, orientation]);\n\n\treturn (\n\t\t<ToggleButtonGroupContext.Provider value={{ orientation }}>\n\t\t\t<SeparatorContext.Provider value={{ orientation: orientation === \"horizontal\" ? \"vertical\" : \"horizontal\" }}>\n\t\t\t\t<ToolbarPrimitive className={composeTwRenderProps(className, styles.base())} data-slot=\"toolbar\" orientation={orientation} {...props}>\n\t\t\t\t\t{children}\n\t\t\t\t</ToolbarPrimitive>\n\t\t\t</SeparatorContext.Provider>\n\t\t</ToggleButtonGroupContext.Provider>\n\t);\n};\n\nexport { ToolbarRoot };\n\nexport type { ToolbarRootProps };\n","import type { ComponentProps } from \"react\";\n\nimport { toolbarVariants } from \"@/theme/color/toolbar\";\nimport { ToolbarRoot } from \"./toolbar\";\n\nexport const Toolbar = Object.assign(ToolbarRoot, {\n\tRoot: ToolbarRoot,\n});\n\nexport type Toolbar = {\n\tProps: ComponentProps<typeof ToolbarRoot>;\n\tRootProps: ComponentProps<typeof ToolbarRoot>;\n};\n\nexport { ToolbarRoot, toolbarVariants };\n\nexport type { ToolbarRootProps as ToolbarProps, ToolbarRootProps } from \"./toolbar\";\n\nexport type { ToolbarVariants } from \"@/theme/color/toolbar\";\n"],"names":["$adn6H$createContext","$adn6H$CollectionNode","$jBcN3$useState","$c4867b2f328c2698$export$e5c5a5f917a5871c","$2eb8e6d23f3d0cb0$export$43bb16f9c6d9e3f7","$535772f9d2c1f38d$export$c5251b9e124bf29","$23f2114a1b82827e$export$4282f70798064fe0","$23f2114a1b82827e$export$e58f029f0fbfdb29","$23f2114a1b82827e$export$cd4e5573fbe2b576","$jBcN3$useRef","$8e9d2fae0ecb9001$export$457c3d6518dd4c6f","$9mIod$createContext","$1ohuH$createContext","$1ohuH$forwardRef","$7230ffa83bc0c2cf$export$29f1550f4b0d4415","$1ohuH$useToolbar","$7230ffa83bc0c2cf$export$4d86445c2cf5e3","$1ohuH$filterDOMProps","$1ohuH$react","$7230ffa83bc0c2cf$export$df3a06d6289f983e","$1ohuH$mergeProps","toolbarVariants","tv","defaultVariants","isAttached","orientation","slots","base","variants","false","true","horizontal","vertical","composeTwRenderProps","className","tailwind","composeRenderProps","currentClassName","renderProps","tw","cls","cx","ToolbarRoot","t0","$","_c","children","props","t1","undefined","t2","styles","t3","t4","t5","t6","t7","jsx","ToolbarPrimitive","t8","SeparatorContext","t9","ToggleButtonGroupContext","Toolbar","Object","assign","Root"],"mappings":";;;;;;;;;;;;;AAyBA,MAAM,4CAA8DA,sBAAAA,cAAsB,EAAE;AAC5F,MAAM,6CAAN,MAAM,mDAAsDC,eAAAA,0CAAuB;AAAA,EAI/E,OAAO,YAAY,eAAe;AAC9B,QAAI,WAAW,cAAc,QAAQ,KAAK,OAAO;AACjD,QAAI,YAAY,SAAS,SAAS,aAAa;AAC3C,UAAI,QAAQ,KAAK,MAAK;AACtB,oBAAc,eAAe,OAAO,UAAU;AAC9C,aAAO;AAAA,IACX;AACA,WAAO;AAAA,EACX;AACJ;AAXQ,2CAAK,OAAO;AAFpB,IAAM,4CAAN;ACHA,SAAS,yCAAyC,OAAO,KAAK;AAC1D,QAAM,EAAE,cAAc,WAAW,mBAAmB,gBAAgB,cAA2B,aAAY,IAAK;AAChH,MAAI,CAAC,aAAa,YAAY,IAAQC,MAAAA,SAAiB,KAAK;AAI5D,EAAIC,MAA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