@yamada-ui/react 2.2.3-dev-20260622135744 → 2.2.3-dev-20260624122859
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/components/accordion/use-accordion.cjs.map +1 -1
- package/dist/cjs/components/autocomplete/use-autocomplete.cjs.map +1 -1
- package/dist/cjs/components/calendar/use-calendar.cjs +1 -1
- package/dist/cjs/components/calendar/use-calendar.cjs.map +1 -1
- package/dist/cjs/components/carousel/carousel.cjs.map +1 -1
- package/dist/cjs/components/chart/chart.cjs.map +1 -1
- package/dist/cjs/components/chart/use-polar-chart.cjs.map +1 -1
- package/dist/cjs/components/checkbox/checkbox.cjs.map +1 -1
- package/dist/cjs/components/checkbox/use-checkbox-group.cjs.map +1 -1
- package/dist/cjs/components/checkbox-card/checkbox-card.cjs.map +1 -1
- package/dist/cjs/components/collapse/collapse.cjs.map +1 -1
- package/dist/cjs/components/color-picker/use-color-picker.cjs.map +1 -1
- package/dist/cjs/components/color-swatch/color-swatch-group.cjs.map +1 -1
- package/dist/cjs/components/date-picker/date-picker.cjs.map +1 -1
- package/dist/cjs/components/date-picker/use-date-picker.cjs +1 -1
- package/dist/cjs/components/date-picker/use-date-picker.cjs.map +1 -1
- package/dist/cjs/components/editable/use-editable.cjs.map +1 -1
- package/dist/cjs/components/field/field.cjs.map +1 -1
- package/dist/cjs/components/file-input/file-input.cjs.map +1 -1
- package/dist/cjs/components/flip/flip.cjs.map +1 -1
- package/dist/cjs/components/highlight/highlight.cjs.map +1 -1
- package/dist/cjs/components/indicator/indicator.cjs.map +1 -1
- package/dist/cjs/components/infinite-scroll-area/use-infinite-scroll.cjs.map +1 -1
- package/dist/cjs/components/input/input-group.cjs.map +1 -1
- package/dist/cjs/components/list/list.cjs.map +1 -1
- package/dist/cjs/components/menu/use-menu.cjs.map +1 -1
- package/dist/cjs/components/native-select/use-native-select.cjs.map +1 -1
- package/dist/cjs/components/native-table/native-table.cjs.map +1 -1
- package/dist/cjs/components/notice/notice.cjs.map +1 -1
- package/dist/cjs/components/number-input/use-number-input.cjs.map +1 -1
- package/dist/cjs/components/pagination/pagination.cjs.map +1 -1
- package/dist/cjs/components/pagination/use-pagination.cjs.map +1 -1
- package/dist/cjs/components/picture/picture.cjs.map +1 -1
- package/dist/cjs/components/pin-input/pin-input.cjs.map +1 -1
- package/dist/cjs/components/pin-input/use-pin-input.cjs.map +1 -1
- package/dist/cjs/components/qr-code/use-qr-code.cjs.map +1 -1
- package/dist/cjs/components/radio/use-radio-group.cjs.map +1 -1
- package/dist/cjs/components/segmented-control/segmented-control.cjs.map +1 -1
- package/dist/cjs/components/select/use-select.cjs.map +1 -1
- package/dist/cjs/components/show/show.cjs.map +1 -1
- package/dist/cjs/components/sidebar/sidebar.cjs.map +1 -1
- package/dist/cjs/components/sidebar/use-sidebar.cjs.map +1 -1
- package/dist/cjs/components/simple-grid/simple-grid.cjs.map +1 -1
- package/dist/cjs/components/stack/z-stack.cjs.map +1 -1
- package/dist/cjs/components/steps/steps.cjs.map +1 -1
- package/dist/cjs/components/steps/use-steps.cjs.map +1 -1
- package/dist/cjs/components/table/table.cjs.map +1 -1
- package/dist/cjs/components/tabs/tabs.cjs.map +1 -1
- package/dist/cjs/components/toggle/use-toggle-group.cjs.map +1 -1
- package/dist/cjs/components/toggle/use-toggle.cjs.map +1 -1
- package/dist/cjs/components/tree/tree.cjs.map +1 -1
- package/dist/cjs/components/tree/use-tree.cjs.map +1 -1
- package/dist/cjs/core/components/create-component.cjs.map +1 -1
- package/dist/cjs/core/components/props.cjs +5 -1
- package/dist/cjs/core/components/props.cjs.map +1 -1
- package/dist/cjs/core/components/use-component-style.cjs.map +1 -1
- package/dist/cjs/core/css/animation.cjs.map +1 -1
- package/dist/cjs/core/css/at-rule.cjs.map +1 -1
- package/dist/cjs/core/css/calc.cjs.map +1 -1
- package/dist/cjs/core/css/color-mix.cjs.map +1 -1
- package/dist/cjs/core/css/config.cjs.map +1 -1
- package/dist/cjs/core/css/css.cjs.map +1 -1
- package/dist/cjs/core/css/gradient.cjs.map +1 -1
- package/dist/cjs/core/css/grid.cjs.map +1 -1
- package/dist/cjs/core/css/index.cjs +1 -0
- package/dist/cjs/core/css/styles.cjs +253 -0
- package/dist/cjs/core/css/styles.cjs.map +1 -1
- package/dist/cjs/core/css/transition.cjs.map +1 -1
- package/dist/cjs/core/css/utils.cjs.map +1 -1
- package/dist/cjs/core/index.cjs +1 -0
- package/dist/cjs/core/system/breakpoint.cjs.map +1 -1
- package/dist/cjs/core/system/color-mode-provider.cjs.map +1 -1
- package/dist/cjs/core/system/create-system.cjs.map +1 -1
- package/dist/cjs/core/system/environment-provider.cjs.map +1 -1
- package/dist/cjs/core/system/storage-manager.cjs.map +1 -1
- package/dist/cjs/core/system/storage-script.cjs.map +1 -1
- package/dist/cjs/core/system/use-system-color-mode.cjs.map +1 -1
- package/dist/cjs/core/system/var.cjs.map +1 -1
- package/dist/cjs/hooks/use-animation/index.cjs.map +1 -1
- package/dist/cjs/hooks/use-breakpoint/use-breakpoint-value.cjs.map +1 -1
- package/dist/cjs/hooks/use-breakpoint/use-breakpoint.cjs.map +1 -1
- package/dist/cjs/hooks/use-clickable/index.cjs.map +1 -1
- package/dist/cjs/hooks/use-clipboard/index.cjs.map +1 -1
- package/dist/cjs/hooks/use-controllable-state/index.cjs.map +1 -1
- package/dist/cjs/hooks/use-counter/index.cjs.map +1 -1
- package/dist/cjs/hooks/use-descendants/index.cjs.map +1 -1
- package/dist/cjs/hooks/use-focus/index.cjs.map +1 -1
- package/dist/cjs/hooks/use-local-storage/index.cjs.map +1 -1
- package/dist/cjs/hooks/use-mounted/index.cjs.map +1 -1
- package/dist/cjs/hooks/use-outside-click/index.cjs.map +1 -1
- package/dist/cjs/index.cjs +2 -0
- package/dist/cjs/providers/i18n-provider/i18n-provider.cjs.map +1 -1
- package/dist/cjs/utils/children.cjs.map +1 -1
- package/dist/cjs/utils/dom.cjs.map +1 -1
- package/dist/cjs/utils/store.cjs.map +1 -1
- package/dist/esm/components/accordion/use-accordion.js.map +1 -1
- package/dist/esm/components/autocomplete/use-autocomplete.js.map +1 -1
- package/dist/esm/components/calendar/use-calendar.js +1 -1
- package/dist/esm/components/calendar/use-calendar.js.map +1 -1
- package/dist/esm/components/carousel/carousel.js.map +1 -1
- package/dist/esm/components/chart/chart.js.map +1 -1
- package/dist/esm/components/chart/use-polar-chart.js.map +1 -1
- package/dist/esm/components/checkbox/checkbox.js.map +1 -1
- package/dist/esm/components/checkbox/use-checkbox-group.js.map +1 -1
- package/dist/esm/components/checkbox-card/checkbox-card.js.map +1 -1
- package/dist/esm/components/collapse/collapse.js.map +1 -1
- package/dist/esm/components/color-picker/use-color-picker.js.map +1 -1
- package/dist/esm/components/color-swatch/color-swatch-group.js.map +1 -1
- package/dist/esm/components/date-picker/date-picker.js.map +1 -1
- package/dist/esm/components/date-picker/use-date-picker.js +1 -1
- package/dist/esm/components/date-picker/use-date-picker.js.map +1 -1
- package/dist/esm/components/editable/use-editable.js.map +1 -1
- package/dist/esm/components/field/field.js.map +1 -1
- package/dist/esm/components/file-input/file-input.js.map +1 -1
- package/dist/esm/components/flip/flip.js.map +1 -1
- package/dist/esm/components/highlight/highlight.js.map +1 -1
- package/dist/esm/components/indicator/indicator.js.map +1 -1
- package/dist/esm/components/infinite-scroll-area/use-infinite-scroll.js.map +1 -1
- package/dist/esm/components/input/input-group.js.map +1 -1
- package/dist/esm/components/list/list.js.map +1 -1
- package/dist/esm/components/menu/use-menu.js.map +1 -1
- package/dist/esm/components/native-select/use-native-select.js.map +1 -1
- package/dist/esm/components/native-table/native-table.js.map +1 -1
- package/dist/esm/components/notice/notice.js.map +1 -1
- package/dist/esm/components/number-input/use-number-input.js.map +1 -1
- package/dist/esm/components/pagination/pagination.js.map +1 -1
- package/dist/esm/components/pagination/use-pagination.js.map +1 -1
- package/dist/esm/components/picture/picture.js.map +1 -1
- package/dist/esm/components/pin-input/pin-input.js.map +1 -1
- package/dist/esm/components/pin-input/use-pin-input.js.map +1 -1
- package/dist/esm/components/qr-code/use-qr-code.js.map +1 -1
- package/dist/esm/components/radio/use-radio-group.js.map +1 -1
- package/dist/esm/components/segmented-control/segmented-control.js.map +1 -1
- package/dist/esm/components/select/use-select.js.map +1 -1
- package/dist/esm/components/show/show.js.map +1 -1
- package/dist/esm/components/sidebar/sidebar.js.map +1 -1
- package/dist/esm/components/sidebar/use-sidebar.js.map +1 -1
- package/dist/esm/components/simple-grid/simple-grid.js.map +1 -1
- package/dist/esm/components/stack/z-stack.js.map +1 -1
- package/dist/esm/components/steps/steps.js.map +1 -1
- package/dist/esm/components/steps/use-steps.js.map +1 -1
- package/dist/esm/components/table/table.js.map +1 -1
- package/dist/esm/components/tabs/tabs.js.map +1 -1
- package/dist/esm/components/toggle/use-toggle-group.js.map +1 -1
- package/dist/esm/components/toggle/use-toggle.js.map +1 -1
- package/dist/esm/components/tree/tree.js.map +1 -1
- package/dist/esm/components/tree/use-tree.js.map +1 -1
- package/dist/esm/core/components/create-component.js.map +1 -1
- package/dist/esm/core/components/props.js +6 -2
- package/dist/esm/core/components/props.js.map +1 -1
- package/dist/esm/core/components/use-component-style.js.map +1 -1
- package/dist/esm/core/css/animation.js.map +1 -1
- package/dist/esm/core/css/at-rule.js.map +1 -1
- package/dist/esm/core/css/calc.js.map +1 -1
- package/dist/esm/core/css/color-mix.js.map +1 -1
- package/dist/esm/core/css/config.js.map +1 -1
- package/dist/esm/core/css/css.js.map +1 -1
- package/dist/esm/core/css/gradient.js.map +1 -1
- package/dist/esm/core/css/grid.js.map +1 -1
- package/dist/esm/core/css/index.js +2 -2
- package/dist/esm/core/css/styles.js +253 -1
- package/dist/esm/core/css/styles.js.map +1 -1
- package/dist/esm/core/css/transition.js.map +1 -1
- package/dist/esm/core/css/utils.js.map +1 -1
- package/dist/esm/core/index.js +2 -2
- package/dist/esm/core/system/breakpoint.js.map +1 -1
- package/dist/esm/core/system/color-mode-provider.js.map +1 -1
- package/dist/esm/core/system/create-system.js.map +1 -1
- package/dist/esm/core/system/environment-provider.js.map +1 -1
- package/dist/esm/core/system/storage-manager.js.map +1 -1
- package/dist/esm/core/system/storage-script.js.map +1 -1
- package/dist/esm/core/system/use-system-color-mode.js.map +1 -1
- package/dist/esm/core/system/var.js.map +1 -1
- package/dist/esm/hooks/use-animation/index.js.map +1 -1
- package/dist/esm/hooks/use-breakpoint/use-breakpoint-value.js.map +1 -1
- package/dist/esm/hooks/use-breakpoint/use-breakpoint.js.map +1 -1
- package/dist/esm/hooks/use-clickable/index.js.map +1 -1
- package/dist/esm/hooks/use-clipboard/index.js.map +1 -1
- package/dist/esm/hooks/use-controllable-state/index.js.map +1 -1
- package/dist/esm/hooks/use-counter/index.js.map +1 -1
- package/dist/esm/hooks/use-descendants/index.js.map +1 -1
- package/dist/esm/hooks/use-focus/index.js.map +1 -1
- package/dist/esm/hooks/use-local-storage/index.js.map +1 -1
- package/dist/esm/hooks/use-mounted/index.js.map +1 -1
- package/dist/esm/hooks/use-outside-click/index.js.map +1 -1
- package/dist/esm/index.js +3 -2
- package/dist/esm/providers/i18n-provider/i18n-provider.js.map +1 -1
- package/dist/esm/utils/children.js.map +1 -1
- package/dist/esm/utils/dom.js.map +1 -1
- package/dist/esm/utils/store.js.map +1 -1
- package/dist/types/core/css/index.d.ts +2 -2
- package/dist/types/core/css/styles.d.ts +3 -1
- package/dist/types/core/index.d.ts +2 -2
- package/dist/types/index.d.ts +3 -3
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../../src/hooks/use-counter/index.ts"],"sourcesContent":["\"use client\"\n\nimport { useCallback, useState } from \"react\"\nimport {\n clampNumber,\n countDecimal,\n toPrecision,\n useCallbackRef,\n} from \"../../utils\"\n\nconst parse = (value: number | string): number =>\n parseFloat(value.toString().replace(/[^\\w.-]+/g, \"\"))\n\nconst getCountDecimal = (value: number, step: number): number =>\n Math.max(countDecimal(step), countDecimal(value))\n\nconst casting = (\n value: number | string,\n step: number,\n precision?: number,\n): string | undefined => {\n value = parse(value)\n\n return !Number.isNaN(value)\n ? toPrecision(value, precision ?? getCountDecimal(value, step))\n : undefined\n}\n\nexport interface UseCounterProps {\n /**\n * The initial value of the counter.\n * Should be less than `max` and greater than `min`.\n */\n defaultValue?: number | string\n /**\n * This controls the value update behavior in general.\n *\n * - If `true` and you use the stepper or up/down arrow keys,\n * the value will not exceed the `max` or go lower than `min`.\n *\n * - If `false`, the value will be allowed to go out of range.\n *\n * @default true\n */\n keepWithinRange?: boolean\n /**\n * The maximum value of the counter\n *\n * @default Number.MAX_SAFE_INTEGER\n */\n max?: number\n /**\n * The minimum value of the counter\n *\n * @default Number.MIN_SAFE_INTEGER\n */\n min?: number\n /**\n * The number of decimal points used to round the value.\n */\n precision?: number\n /**\n * The step used to increment or decrement the value.\n *\n * @default 1\n */\n step?: number\n /**\n * The value of the counter.\n * Should be less than `max` and greater than `min`.\n */\n value?: number | string\n /**\n * The callback fired when the value changes.\n */\n onChange?: (valueAsString: string, valueAsNumber: number) => void\n}\n\n/**\n * `useCounter` is a custom hook that returns the current counter value.\n *\n * @see https://yamada-ui.com/docs/hooks/use-counter\n */\nexport const useCounter = ({\n keepWithinRange = true,\n max: maxValue = Number.MAX_SAFE_INTEGER,\n min: minValue = Number.MIN_SAFE_INTEGER,\n step: stepProp = 1,\n ...props\n}: UseCounterProps = {}) => {\n const onChange = useCallbackRef(props.onChange)\n\n const [defaultValue, setValue] = useState<number | string>(() => {\n if (props.defaultValue == null) return \"\"\n\n return casting(props.defaultValue, stepProp, props.precision) ?? \"\"\n })\n\n const isControlled = typeof props.value !== \"undefined\"\n const value = isControlled ? (props.value as number | string) : defaultValue\n\n const countDecimal = getCountDecimal(parse(value), stepProp)\n\n const precision = props.precision ?? countDecimal\n\n const update = useCallback(\n (next: number | string) => {\n if (next === value) return\n\n if (!isControlled) setValue(next.toString())\n\n onChange(next.toString(), parse(next))\n },\n [onChange, isControlled, value],\n )\n\n const clamp = useCallback(\n (value: number) => {\n let nextValue = value\n\n if (keepWithinRange)\n nextValue = clampNumber(nextValue, minValue, maxValue)\n\n return toPrecision(nextValue, precision)\n },\n [precision, keepWithinRange, maxValue, minValue],\n )\n\n const increment = useCallback(\n (step = stepProp) => {\n let next: number | string\n\n if (value === \"\")
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../src/hooks/use-counter/index.ts"],"sourcesContent":["\"use client\"\n\nimport { useCallback, useState } from \"react\"\nimport {\n clampNumber,\n countDecimal,\n toPrecision,\n useCallbackRef,\n} from \"../../utils\"\n\nconst parse = (value: number | string): number =>\n parseFloat(value.toString().replace(/[^\\w.-]+/g, \"\"))\n\nconst getCountDecimal = (value: number, step: number): number =>\n Math.max(countDecimal(step), countDecimal(value))\n\nconst casting = (\n value: number | string,\n step: number,\n precision?: number,\n): string | undefined => {\n value = parse(value)\n\n return !Number.isNaN(value)\n ? toPrecision(value, precision ?? getCountDecimal(value, step))\n : undefined\n}\n\nexport interface UseCounterProps {\n /**\n * The initial value of the counter.\n * Should be less than `max` and greater than `min`.\n */\n defaultValue?: number | string\n /**\n * This controls the value update behavior in general.\n *\n * - If `true` and you use the stepper or up/down arrow keys,\n * the value will not exceed the `max` or go lower than `min`.\n *\n * - If `false`, the value will be allowed to go out of range.\n *\n * @default true\n */\n keepWithinRange?: boolean\n /**\n * The maximum value of the counter\n *\n * @default Number.MAX_SAFE_INTEGER\n */\n max?: number\n /**\n * The minimum value of the counter\n *\n * @default Number.MIN_SAFE_INTEGER\n */\n min?: number\n /**\n * The number of decimal points used to round the value.\n */\n precision?: number\n /**\n * The step used to increment or decrement the value.\n *\n * @default 1\n */\n step?: number\n /**\n * The value of the counter.\n * Should be less than `max` and greater than `min`.\n */\n value?: number | string\n /**\n * The callback fired when the value changes.\n */\n onChange?: (valueAsString: string, valueAsNumber: number) => void\n}\n\n/**\n * `useCounter` is a custom hook that returns the current counter value.\n *\n * @see https://yamada-ui.com/docs/hooks/use-counter\n */\nexport const useCounter = ({\n keepWithinRange = true,\n max: maxValue = Number.MAX_SAFE_INTEGER,\n min: minValue = Number.MIN_SAFE_INTEGER,\n step: stepProp = 1,\n ...props\n}: UseCounterProps = {}) => {\n const onChange = useCallbackRef(props.onChange)\n\n const [defaultValue, setValue] = useState<number | string>(() => {\n if (props.defaultValue == null) return \"\"\n\n return casting(props.defaultValue, stepProp, props.precision) ?? \"\"\n })\n\n const isControlled = typeof props.value !== \"undefined\"\n const value = isControlled ? (props.value as number | string) : defaultValue\n\n const countDecimal = getCountDecimal(parse(value), stepProp)\n\n const precision = props.precision ?? countDecimal\n\n const update = useCallback(\n (next: number | string) => {\n if (next === value) return\n\n if (!isControlled) setValue(next.toString())\n\n onChange(next.toString(), parse(next))\n },\n [onChange, isControlled, value],\n )\n\n const clamp = useCallback(\n (value: number) => {\n let nextValue = value\n\n if (keepWithinRange)\n nextValue = clampNumber(nextValue, minValue, maxValue)\n\n return toPrecision(nextValue, precision)\n },\n [precision, keepWithinRange, maxValue, minValue],\n )\n\n const increment = useCallback(\n (step = stepProp) => {\n let next: number | string\n\n if (value === \"\") next = parse(step)\n else next = parse(value) + step\n\n next = clamp(next)\n\n update(next)\n },\n [clamp, stepProp, update, value],\n )\n\n const decrement = useCallback(\n (step = stepProp) => {\n let next: number | string\n\n if (value === \"\") next = parse(-step)\n else next = parse(value) - step\n\n next = clamp(next)\n\n update(next)\n },\n [clamp, stepProp, update, value],\n )\n\n const reset = useCallback(() => {\n let next: number | string\n\n if (props.defaultValue == null) next = \"\"\n else\n next = casting(props.defaultValue, stepProp, props.precision) ?? minValue\n\n update(next)\n }, [props.defaultValue, props.precision, stepProp, update, minValue])\n\n const cast = useCallback(\n (value: number | string) => {\n const nextValue = casting(value, stepProp, precision) ?? minValue\n\n update(nextValue)\n },\n [precision, stepProp, update, minValue],\n )\n\n const valueAsNumber = parse(value)\n\n const out = valueAsNumber < minValue || maxValue < valueAsNumber\n const max = valueAsNumber === maxValue\n const min = valueAsNumber === minValue\n\n return {\n cast,\n clamp,\n decrement,\n increment,\n max,\n min,\n out,\n precision,\n reset,\n setValue,\n step: stepProp,\n update,\n value,\n valueAsNumber,\n }\n}\n\nexport type UseCounterReturn = ReturnType<typeof useCounter>\n"],"mappings":";;;;;AAUA,MAAM,SAAS,UACb,WAAW,MAAM,SAAS,CAAC,CAAC,QAAQ,aAAa,EAAE,CAAC;AAEtD,MAAM,mBAAmB,OAAe,SACtC,KAAK,KAAA,GAAA,cAAA,aAAA,CAAiB,IAAI,IAAA,GAAA,cAAA,aAAA,CAAgB,KAAK,CAAC;AAElD,MAAM,WACJ,OACA,MACA,cACuB;CACvB,QAAQ,MAAM,KAAK;CAEnB,OAAO,CAAC,OAAO,MAAM,KAAK,KAAA,GAAA,cAAA,YAAA,CACV,OAAO,aAAa,gBAAgB,OAAO,IAAI,CAAC,IAC5D,KAAA;AACN;;;;;;AAyDA,MAAa,cAAc,EACzB,kBAAkB,MAClB,KAAK,WAAW,OAAO,kBACvB,KAAK,WAAW,OAAO,kBACvB,MAAM,WAAW,GACjB,GAAG,UACgB,CAAC,MAAM;CAC1B,MAAM,WAAW,eAAe,MAAM,QAAQ;CAE9C,MAAM,CAAC,cAAc,YAAY,eAAgC;EAC/D,IAAI,MAAM,gBAAgB,MAAM,OAAO;EAEvC,OAAO,QAAQ,MAAM,cAAc,UAAU,MAAM,SAAS,KAAK;CACnE,CAAC;CAED,MAAM,eAAe,OAAO,MAAM,UAAU;CAC5C,MAAM,QAAQ,eAAgB,MAAM,QAA4B;CAEhE,MAAM,eAAe,gBAAgB,MAAM,KAAK,GAAG,QAAQ;CAE3D,MAAM,YAAY,MAAM,aAAa;CAErC,MAAM,SAAS,aACZ,SAA0B;EACzB,IAAI,SAAS,OAAO;EAEpB,IAAI,CAAC,cAAc,SAAS,KAAK,SAAS,CAAC;EAE3C,SAAS,KAAK,SAAS,GAAG,MAAM,IAAI,CAAC;CACvC,GACA;EAAC;EAAU;EAAc;CAAK,CAChC;CAEA,MAAM,QA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js","names":["createContext"],"sources":["../../../../src/hooks/use-descendants/index.ts"],"sourcesContent":["\"use client\"\n\nimport type { RefCallback } from \"react\"\nimport { useRef } from \"react\"\nimport {\n createContext,\n isNumber,\n isTruthyDataAttr,\n mergeRefs,\n runIfFn,\n useSafeLayoutEffect,\n} from \"../../utils\"\n\nconst sortNodes = (nodes: Node[]) =>\n nodes.sort((a, b) => {\n const compare = a.compareDocumentPosition(b)\n\n if (\n compare & Node.DOCUMENT_POSITION_FOLLOWING ||\n compare & Node.DOCUMENT_POSITION_CONTAINED_BY\n )\n return -1\n\n if (\n compare & Node.DOCUMENT_POSITION_PRECEDING ||\n compare & Node.DOCUMENT_POSITION_CONTAINS\n )\n return 1\n\n if (\n compare & Node.DOCUMENT_POSITION_DISCONNECTED ||\n compare & Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC\n ) {\n console.warn(\"Cannot sort the given nodes.\")\n return 0\n } else {\n return 0\n }\n })\n\nconst getNextIndex = (current: number, max: number, loop: boolean) => {\n let next = current + 1\n\n if (loop && next >= max) next = 0\n\n return next\n}\n\nconst getPrevIndex = (current: number, max: number, loop: boolean) => {\n let next = current - 1\n\n if (loop && next < 0) next = max\n\n return next\n}\n\nconst isMatch =\n <Y extends HTMLElement = HTMLElement, M = {}>(props?: Partial<M>) =>\n (descendant: Descendant<Y, M>) =>\n Object.entries(props ?? {}).every(\n ([key, value]) => descendant[key as keyof Descendant<Y, M>] === value,\n )\n\nexport type DescendantProps<Y extends HTMLElement = HTMLElement, M = {}> = M & {\n disabled?: ((node: Y) => boolean) | boolean\n}\n\nexport type Descendant<\n Y extends HTMLElement = HTMLElement,\n M = {},\n> = DescendantProps<Y, M> & {\n index: number\n node: Y\n recurred?: boolean\n}\n\nconst descendantManager = <Y extends HTMLElement = HTMLElement, M = {}>() => {\n const descendants = new Map<Y, Descendant<Y, M>>()\n\n const setIndexes = (next: Node[]) => {\n descendants.forEach((descendant) => {\n const index = next.indexOf(descendant.node)\n\n descendant.index = index\n descendant.node.dataset.index = descendant.index.toString()\n })\n }\n\n const set = (node: null | Y, props?: DescendantProps<Y, M>) => {\n if (!node) return\n\n if (descendants.has(node)) {\n const descendant = descendants.get(node)!\n\n descendants.set(node, {\n ...descendant,\n ...props,\n index: descendant.index,\n node: descendant.node,\n })\n } else {\n const keys = Array.from(descendants.keys()).concat(node)\n const sorted = sortNodes(keys)\n\n const descendant = { ...props, index: -1, node } as Descendant<Y, M>\n\n descendants.set(node, descendant)\n\n setIndexes(sorted)\n }\n }\n\n const destroy = () => descendants.clear()\n\n const register = (props?: DescendantProps<Y, M>): RefCallback<Y> => {\n return (node: null | Y) => set(node, props)\n }\n\n const unregister = (node?: null | Y) => {\n if (node == null) return\n\n descendants.delete(node)\n\n const sorted = sortNodes(Array.from(descendants.keys()))\n\n setIndexes(sorted)\n }\n\n const count = (props?: Partial<M>) => values(props).length\n\n const enabledCount = (props?: Partial<M>) => enabledValues(props).length\n\n const active = (\n target?: Descendant<Y, M> | null | Y,\n options?: FocusOptions,\n ) => {\n if (!target) return\n\n if (!(target instanceof Node)) target = target.node\n\n if (isTruthyDataAttr(target.dataset.activedescendant)) return\n\n const descendants = values()\n\n descendants.forEach(({ node }) => {\n delete node.dataset.activedescendant\n })\n\n target.dataset.activedescendant = \"\"\n\n if (options) target.focus(options)\n }\n\n const indexOf = (target?: Descendant<Y, M> | null | Y) => {\n if (!target) return -1\n\n if (target instanceof Node) {\n return descendants.get(target)?.index ?? -1\n } else {\n return descendants.get(target.node)?.index ?? -1\n }\n }\n\n const enabledIndexOf = (target?: Descendant<Y, M> | null | Y) => {\n if (!target) return -1\n\n if (target instanceof Node) {\n return enabledValues().findIndex(({ node }) => node.isSameNode(target))\n } else {\n return enabledValues().findIndex(({ node }) =>\n node.isSameNode(target.node),\n )\n }\n }\n\n const values = (props?: Partial<M>) =>\n Array.from(descendants.values())\n .filter(isMatch(props))\n .sort((a, b) => a.index - b.index)\n\n const enabledValues = (props?: Partial<M>) =>\n values(props).filter(({ disabled, node }) => !runIfFn(disabled, node))\n\n const value = (indexOrNode: null | number | Y) => {\n if (!count() || indexOrNode == null) return undefined\n\n return isNumber(indexOrNode)\n ? values()[indexOrNode]\n : descendants.get(indexOrNode)\n }\n\n const enabledValue = (indexOrNode: null | number | Y) => {\n if (!enabledCount() || indexOrNode == null) return undefined\n\n return enabledValues()[\n isNumber(indexOrNode) ? indexOrNode : enabledIndexOf(indexOrNode)\n ]\n }\n\n const firstValue = (props?: Partial<M>) => values(props).at(0)\n\n const enabledFirstValue = (props?: Partial<M>) => enabledValues(props).at(0)\n\n const lastValue = (props?: Partial<M>) => values(props).at(-1)\n\n const enabledLastValue = (props?: Partial<M>) => enabledValues(props).at(-1)\n\n const prevValue = (\n indexOrNode: Descendant<Y, M> | null | number | Y,\n loop = true,\n props?: Partial<M>,\n ) => {\n const filtered = values(props)\n\n if (!filtered.length || indexOrNode == null) return undefined\n\n const currentIndex = isNumber(indexOrNode)\n ? filtered.findIndex((d) => d.index === indexOrNode)\n : filtered.findIndex((d) =>\n d.node.isSameNode(\n indexOrNode instanceof Node ? indexOrNode : indexOrNode.node,\n ),\n )\n\n if (currentIndex === -1) return undefined\n\n const prevIndex = getPrevIndex(currentIndex, filtered.length - 1, loop)\n\n return filtered[prevIndex]\n }\n\n const enabledPrevValue = (\n indexOrNode: Descendant<Y, M> | null | number | Y,\n loop = true,\n props?: Partial<M>,\n ) => {\n if (!enabledCount(props)) return undefined\n\n let index = isNumber(indexOrNode) ? indexOrNode : indexOf(indexOrNode)\n let enabledValue = null\n let recurred = false\n\n while (enabledValue == null) {\n index--\n\n if (index < 0) {\n if (!loop) return\n\n index = count() - 1\n recurred = true\n }\n\n const descendant = value(index)\n\n enabledValue =\n descendant &&\n !runIfFn(descendant.disabled, descendant.node) &&\n isMatch<Y, M>(props)(descendant)\n ? descendant\n : null\n }\n\n if (recurred) enabledValue.recurred = recurred\n\n return enabledValue\n }\n\n const nextValue = (\n indexOrNode: Descendant<Y, M> | null | number | Y,\n loop = true,\n props?: Partial<M>,\n ) => {\n const filtered = values(props)\n\n if (!filtered.length || indexOrNode == null) return undefined\n\n const currentIndex = isNumber(indexOrNode)\n ? filtered.findIndex((d) => d.index === indexOrNode)\n : filtered.findIndex((d) =>\n d.node.isSameNode(\n indexOrNode instanceof Node ? indexOrNode : indexOrNode.node,\n ),\n )\n\n if (currentIndex === -1) return undefined\n\n const nextIndex = getNextIndex(currentIndex, filtered.length, loop)\n\n return filtered[nextIndex]\n }\n\n const enabledNextValue = (\n indexOrNode: Descendant<Y, M> | null | number | Y,\n loop = true,\n props?: Partial<M>,\n ) => {\n if (!enabledCount(props)) return undefined\n\n let index = isNumber(indexOrNode) ? indexOrNode : indexOf(indexOrNode)\n let enabledValue = null\n let recurred = false\n\n while (enabledValue == null) {\n index++\n\n if (index >= count()) {\n if (!loop) return\n\n index = 0\n recurred = true\n }\n\n const descendant = value(index)\n\n enabledValue =\n descendant &&\n !runIfFn(descendant.disabled, descendant.node) &&\n isMatch<Y, M>(props)(descendant)\n ? descendant\n : null\n }\n\n if (recurred) enabledValue.recurred = recurred\n\n return enabledValue\n }\n\n return {\n active,\n count,\n destroy,\n enabledCount,\n enabledFirstValue,\n enabledIndexOf,\n enabledLastValue,\n enabledNextValue,\n enabledPrevValue,\n enabledValue,\n enabledValues,\n firstValue,\n indexOf,\n lastValue,\n nextValue,\n prevValue,\n register,\n unregister,\n value,\n values,\n }\n}\n\nexport type Descendants<Y extends HTMLElement, M = {}> = ReturnType<\n typeof descendantManager<Y, M>\n>\n\nexport type CreateDescendantRegister<Y extends HTMLElement, M = {}> = (\n props?: DescendantProps<Y, M>,\n) => RefCallback<Y>\n\n/**\n * `useDescendants` is a custom hook that manages descendants.\n *\n * @see https://yamada-ui.com/docs/hooks/use-descendants\n */\nexport const createDescendants = <\n Y extends HTMLElement = HTMLElement,\n M = {},\n>() => {\n const [DescendantsContext, useDescendantsContext] = createContext<\n Descendants<Y, M>\n >({\n name: \"DescendantsContext\",\n })\n\n const useDescendantRegister = (descendants?: Descendants<Y, M>) => {\n const ref = useRef<Y>(null)\n\n useSafeLayoutEffect(() => {\n return () => {\n if (ref.current) descendants?.unregister(ref.current)\n }\n }, [])\n\n return (props?: DescendantProps<Y, M>): RefCallback<Y> =>\n mergeRefs(ref, descendants?.register(props))\n }\n\n const useDescendants = () => {\n const descendants = useRef(descendantManager<Y, M>())\n\n useSafeLayoutEffect(() => {\n return () => descendants.current.destroy()\n })\n\n return descendants.current\n }\n\n const useDescendant = (props?: DescendantProps<Y, M>) => {\n const descendants = useDescendantsContext()\n const createRegister = useDescendantRegister(descendants)\n\n return {\n descendants,\n register: createRegister(props),\n }\n }\n\n return {\n DescendantsContext,\n useDescendant,\n useDescendantRegister,\n useDescendants,\n useDescendantsContext,\n }\n}\n"],"mappings":";;;;;;;AAaA,MAAM,aAAa,UACjB,MAAM,MAAM,GAAG,MAAM;CACnB,MAAM,UAAU,EAAE,wBAAwB,CAAC;CAE3C,IACE,UAAU,KAAK,+BACf,UAAU,KAAK,gCAEf,OAAO;CAET,IACE,UAAU,KAAK,+BACf,UAAU,KAAK,4BAEf,OAAO;CAET,IACE,UAAU,KAAK,kCACf,UAAU,KAAK,2CACf;EACA,QAAQ,KAAK,8BAA8B;EAC3C,OAAO;CACT,OACE,OAAO;AAEX,CAAC;AAEH,MAAM,gBAAgB,SAAiB,KAAa,SAAkB;CACpE,IAAI,OAAO,UAAU;CAErB,IAAI,QAAQ,QAAQ,KAAK,OAAO;CAEhC,OAAO;AACT;AAEA,MAAM,gBAAgB,SAAiB,KAAa,SAAkB;CACpE,IAAI,OAAO,UAAU;CAErB,IAAI,QAAQ,OAAO,GAAG,OAAO;CAE7B,OAAO;AACT;AAEA,MAAM,WAC0C,WAC7C,eACC,OAAO,QAAQ,SAAS,CAAC,CAAC,CAAC,CAAC,OACzB,CAAC,KAAK,WAAW,WAAW,SAAmC,KAClE;AAeJ,MAAM,0BAAuE;CAC3E,MAAM,8BAAc,IAAI,IAAyB;CAEjD,MA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,QAAQ;EAC3C,CAAC;EAED,OAAO,YAAY;CACrB;CAEA,MAAM,iBAAiB,UAAkC;EACvD,MAAM,cAAc,sBAAsB;EAG1C,OAAO;GACL;GACA,UAJqB,sBAAsB,WAIpB,CAAC,CAAC,KAAK;EAChC;CACF;CAEA,OAAO;EACL;EACA;EACA;EACA;EACA;CACF;AACF"}
|
|
1
|
+
{"version":3,"file":"index.js","names":["createContext"],"sources":["../../../../src/hooks/use-descendants/index.ts"],"sourcesContent":["\"use client\"\n\nimport type { RefCallback } from \"react\"\nimport { useRef } from \"react\"\nimport {\n createContext,\n isNumber,\n isTruthyDataAttr,\n mergeRefs,\n runIfFn,\n useSafeLayoutEffect,\n} from \"../../utils\"\n\nconst sortNodes = (nodes: Node[]) =>\n nodes.sort((a, b) => {\n const compare = a.compareDocumentPosition(b)\n\n if (\n compare & Node.DOCUMENT_POSITION_FOLLOWING ||\n compare & Node.DOCUMENT_POSITION_CONTAINED_BY\n )\n return -1\n\n if (\n compare & Node.DOCUMENT_POSITION_PRECEDING ||\n compare & Node.DOCUMENT_POSITION_CONTAINS\n )\n return 1\n\n if (\n compare & Node.DOCUMENT_POSITION_DISCONNECTED ||\n compare & Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC\n ) {\n console.warn(\"Cannot sort the given nodes.\")\n return 0\n } else {\n return 0\n }\n })\n\nconst getNextIndex = (current: number, max: number, loop: boolean) => {\n let next = current + 1\n\n if (loop && next >= max) next = 0\n\n return next\n}\n\nconst getPrevIndex = (current: number, max: number, loop: boolean) => {\n let next = current - 1\n\n if (loop && next < 0) next = max\n\n return next\n}\n\nconst isMatch =\n <Y extends HTMLElement = HTMLElement, M = {}>(props?: Partial<M>) =>\n (descendant: Descendant<Y, M>) =>\n Object.entries(props ?? {}).every(\n ([key, value]) => descendant[key as keyof Descendant<Y, M>] === value,\n )\n\nexport type DescendantProps<Y extends HTMLElement = HTMLElement, M = {}> = M & {\n disabled?: ((node: Y) => boolean) | boolean\n}\n\nexport type Descendant<\n Y extends HTMLElement = HTMLElement,\n M = {},\n> = DescendantProps<Y, M> & {\n index: number\n node: Y\n recurred?: boolean\n}\n\nconst descendantManager = <Y extends HTMLElement = HTMLElement, M = {}>() => {\n const descendants = new Map<Y, Descendant<Y, M>>()\n\n const setIndexes = (next: Node[]) => {\n descendants.forEach((descendant) => {\n const index = next.indexOf(descendant.node)\n\n descendant.index = index\n descendant.node.dataset.index = descendant.index.toString()\n })\n }\n\n const set = (node: null | Y, props?: DescendantProps<Y, M>) => {\n if (!node) return\n\n if (descendants.has(node)) {\n const descendant = descendants.get(node)!\n\n descendants.set(node, {\n ...descendant,\n ...props,\n index: descendant.index,\n node: descendant.node,\n })\n } else {\n const keys = Array.from(descendants.keys()).concat(node)\n const sorted = sortNodes(keys)\n\n const descendant = { ...props, index: -1, node } as Descendant<Y, M>\n\n descendants.set(node, descendant)\n\n setIndexes(sorted)\n }\n }\n\n const destroy = () => descendants.clear()\n\n const register = (props?: DescendantProps<Y, M>): RefCallback<Y> => {\n return (node: null | Y) => set(node, props)\n }\n\n const unregister = (node?: null | Y) => {\n if (node == null) return\n\n descendants.delete(node)\n\n const sorted = sortNodes(Array.from(descendants.keys()))\n\n setIndexes(sorted)\n }\n\n const count = (props?: Partial<M>) => values(props).length\n\n const enabledCount = (props?: Partial<M>) => enabledValues(props).length\n\n const active = (\n target?: Descendant<Y, M> | null | Y,\n options?: FocusOptions,\n ) => {\n if (!target) return\n\n if (!(target instanceof Node)) target = target.node\n\n if (isTruthyDataAttr(target.dataset.activedescendant)) return\n\n const descendants = values()\n\n descendants.forEach(({ node }) => {\n delete node.dataset.activedescendant\n })\n\n target.dataset.activedescendant = \"\"\n\n if (options) target.focus(options)\n }\n\n const indexOf = (target?: Descendant<Y, M> | null | Y) => {\n if (!target) return -1\n\n if (target instanceof Node) return descendants.get(target)?.index ?? -1\n else return descendants.get(target.node)?.index ?? -1\n }\n\n const enabledIndexOf = (target?: Descendant<Y, M> | null | Y) => {\n if (!target) return -1\n\n if (target instanceof Node)\n return enabledValues().findIndex(({ node }) => node.isSameNode(target))\n else\n return enabledValues().findIndex(({ node }) =>\n node.isSameNode(target.node),\n )\n }\n\n const values = (props?: Partial<M>) =>\n Array.from(descendants.values())\n .filter(isMatch(props))\n .sort((a, b) => a.index - b.index)\n\n const enabledValues = (props?: Partial<M>) =>\n values(props).filter(({ disabled, node }) => !runIfFn(disabled, node))\n\n const value = (indexOrNode: null | number | Y) => {\n if (!count() || indexOrNode == null) return undefined\n\n return isNumber(indexOrNode)\n ? values()[indexOrNode]\n : descendants.get(indexOrNode)\n }\n\n const enabledValue = (indexOrNode: null | number | Y) => {\n if (!enabledCount() || indexOrNode == null) return undefined\n\n return enabledValues()[\n isNumber(indexOrNode) ? indexOrNode : enabledIndexOf(indexOrNode)\n ]\n }\n\n const firstValue = (props?: Partial<M>) => values(props).at(0)\n\n const enabledFirstValue = (props?: Partial<M>) => enabledValues(props).at(0)\n\n const lastValue = (props?: Partial<M>) => values(props).at(-1)\n\n const enabledLastValue = (props?: Partial<M>) => enabledValues(props).at(-1)\n\n const prevValue = (\n indexOrNode: Descendant<Y, M> | null | number | Y,\n loop = true,\n props?: Partial<M>,\n ) => {\n const filtered = values(props)\n\n if (!filtered.length || indexOrNode == null) return undefined\n\n const currentIndex = isNumber(indexOrNode)\n ? filtered.findIndex((d) => d.index === indexOrNode)\n : filtered.findIndex((d) =>\n d.node.isSameNode(\n indexOrNode instanceof Node ? indexOrNode : indexOrNode.node,\n ),\n )\n\n if (currentIndex === -1) return undefined\n\n const prevIndex = getPrevIndex(currentIndex, filtered.length - 1, loop)\n\n return filtered[prevIndex]\n }\n\n const enabledPrevValue = (\n indexOrNode: Descendant<Y, M> | null | number | Y,\n loop = true,\n props?: Partial<M>,\n ) => {\n if (!enabledCount(props)) return undefined\n\n let index = isNumber(indexOrNode) ? indexOrNode : indexOf(indexOrNode)\n let enabledValue = null\n let recurred = false\n\n while (enabledValue == null) {\n index--\n\n if (index < 0) {\n if (!loop) return\n\n index = count() - 1\n recurred = true\n }\n\n const descendant = value(index)\n\n enabledValue =\n descendant &&\n !runIfFn(descendant.disabled, descendant.node) &&\n isMatch<Y, M>(props)(descendant)\n ? descendant\n : null\n }\n\n if (recurred) enabledValue.recurred = recurred\n\n return enabledValue\n }\n\n const nextValue = (\n indexOrNode: Descendant<Y, M> | null | number | Y,\n loop = true,\n props?: Partial<M>,\n ) => {\n const filtered = values(props)\n\n if (!filtered.length || indexOrNode == null) return undefined\n\n const currentIndex = isNumber(indexOrNode)\n ? filtered.findIndex((d) => d.index === indexOrNode)\n : filtered.findIndex((d) =>\n d.node.isSameNode(\n indexOrNode instanceof Node ? indexOrNode : indexOrNode.node,\n ),\n )\n\n if (currentIndex === -1) return undefined\n\n const nextIndex = getNextIndex(currentIndex, filtered.length, loop)\n\n return filtered[nextIndex]\n }\n\n const enabledNextValue = (\n indexOrNode: Descendant<Y, M> | null | number | Y,\n loop = true,\n props?: Partial<M>,\n ) => {\n if (!enabledCount(props)) return undefined\n\n let index = isNumber(indexOrNode) ? indexOrNode : indexOf(indexOrNode)\n let enabledValue = null\n let recurred = false\n\n while (enabledValue == null) {\n index++\n\n if (index >= count()) {\n if (!loop) return\n\n index = 0\n recurred = true\n }\n\n const descendant = value(index)\n\n enabledValue =\n descendant &&\n !runIfFn(descendant.disabled, descendant.node) &&\n isMatch<Y, M>(props)(descendant)\n ? descendant\n : null\n }\n\n if (recurred) enabledValue.recurred = recurred\n\n return enabledValue\n }\n\n return {\n active,\n count,\n destroy,\n enabledCount,\n enabledFirstValue,\n enabledIndexOf,\n enabledLastValue,\n enabledNextValue,\n enabledPrevValue,\n enabledValue,\n enabledValues,\n firstValue,\n indexOf,\n lastValue,\n nextValue,\n prevValue,\n register,\n unregister,\n value,\n values,\n }\n}\n\nexport type Descendants<Y extends HTMLElement, M = {}> = ReturnType<\n typeof descendantManager<Y, M>\n>\n\nexport type CreateDescendantRegister<Y extends HTMLElement, M = {}> = (\n props?: DescendantProps<Y, M>,\n) => RefCallback<Y>\n\n/**\n * `useDescendants` is a custom hook that manages descendants.\n *\n * @see https://yamada-ui.com/docs/hooks/use-descendants\n */\nexport const createDescendants = <\n Y extends HTMLElement = HTMLElement,\n M = {},\n>() => {\n const [DescendantsContext, useDescendantsContext] = createContext<\n Descendants<Y, M>\n >({\n name: \"DescendantsContext\",\n })\n\n const useDescendantRegister = (descendants?: Descendants<Y, M>) => {\n const ref = useRef<Y>(null)\n\n useSafeLayoutEffect(() => {\n return () => {\n if (ref.current) descendants?.unregister(ref.current)\n }\n }, [])\n\n return (props?: DescendantProps<Y, M>): RefCallback<Y> =>\n mergeRefs(ref, descendants?.register(props))\n }\n\n const useDescendants = () => {\n const descendants = useRef(descendantManager<Y, M>())\n\n useSafeLayoutEffect(() => {\n return () => descendants.current.destroy()\n })\n\n return descendants.current\n }\n\n const useDescendant = (props?: DescendantProps<Y, M>) => {\n const descendants = useDescendantsContext()\n const createRegister = useDescendantRegister(descendants)\n\n return {\n descendants,\n register: createRegister(props),\n }\n }\n\n return {\n DescendantsContext,\n useDescendant,\n useDescendantRegister,\n useDescendants,\n useDescendantsContext,\n }\n}\n"],"mappings":";;;;;;;AAaA,MAAM,aAAa,UACjB,MAAM,MAAM,GAAG,MAAM;CACnB,MAAM,UAAU,EAAE,wBAAwB,CAAC;CAE3C,IACE,UAAU,KAAK,+BACf,UAAU,KAAK,gCAEf,OAAO;CAET,IACE,UAAU,KAAK,+BACf,UAAU,KAAK,4BAEf,OAAO;CAET,IACE,UAAU,KAAK,kCACf,UAAU,KAAK,2CACf;EACA,QAAQ,KAAK,8BAA8B;EAC3C,OAAO;CACT,OACE,OAAO;AAEX,CAAC;AAEH,MAAM,gBAAgB,SAAiB,KAAa,SAAkB;CACpE,IAAI,OAAO,UAAU;CAErB,IAAI,QAAQ,QAAQ,KAAK,OAAO;CAEhC,OAAO;AACT;AAEA,MAAM,gBAAgB,SAAiB,KAAa,SAAkB;CACpE,IAAI,OAAO,UAAU;CAErB,IA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I,IAAI,SAAS,aAAa,WAAW,IAAI,OAAO;GACtD;EACF,GAAG,CAAC,CAAC;EAEL,QAAQ,UACN,UAAU,KAAK,aAAa,SAAS,KAAK,CAAC;CAC/C;CAEA,MAAM,uBAAuB;EAC3B,MAAM,cAAc,OAAO,kBAAwB,CAAC;EAEpD,0BAA0B;GACxB,aAAa,YAAY,QAAQ,QAAQ;EAC3C,CAAC;EAED,OAAO,YAAY;CACrB;CAEA,MAAM,iBAAiB,UAAkC;EACvD,MAAM,cAAc,sBAAsB;EAG1C,OAAO;GACL;GACA,UAJqB,sBAAsB,WAIpB,CAAC,CAAC,KAAK;EAChC;CACF;CAEA,OAAO;EACL;EACA;EACA;EACA;EACA;CACF;AACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../../src/hooks/use-focus/index.ts"],"sourcesContent":["\"use client\"\n\nimport type { RefObject } from \"react\"\nimport { useCallback, useRef } from \"react\"\nimport {\n getActiveElement,\n getDocument,\n getFirstFocusableElement,\n isRefObject,\n isSafari,\n useUpdateEffect,\n} from \"../../utils\"\nimport { useEventListener } from \"../use-event-listener\"\n\nexport interface UseFocusOnShowProps {\n focusTarget?: HTMLElement | null | RefObject<HTMLElement | null>\n preventScroll?: boolean\n shouldFocus?: boolean\n visible?: boolean\n}\n\n/**\n * `useFocusOnShow` is a custom hook that focuses on the target element when it is shown.\n *\n * @see https://yamada-ui.com/docs/hooks/use-focus-on-show\n */\nexport const useFocusOnShow = <Y extends HTMLElement>(\n refOrEl: RefObject<null | Y> | Y,\n {\n focusTarget: focusRefOrEl,\n preventScroll,\n shouldFocus,\n visible,\n }: UseFocusOnShowProps = {\n preventScroll: true,\n shouldFocus: false,\n },\n) => {\n const trulyShouldFocus = shouldFocus && visible\n const focused = useRef(false)\n\n const getTarget = useCallback(() => {\n return isRefObject(refOrEl) ? refOrEl.current : refOrEl\n }, [refOrEl])\n\n const getFocusTarget = useCallback(() => {\n return isRefObject(focusRefOrEl) ? focusRefOrEl.current : focusRefOrEl\n }, [focusRefOrEl])\n\n const onFocus = useCallback(() => {\n const target = getTarget()\n\n if (!target || !trulyShouldFocus || focused.current) return\n if (target.contains(document.activeElement as HTMLElement)) return\n\n const focusTarget = getFocusTarget()\n\n if (focusTarget) {\n requestAnimationFrame(() => {\n focusTarget.focus({ preventScroll })\n\n focused.current = true\n })\n } else {\n const firstFocusable = getFirstFocusableElement(target)\n\n if (firstFocusable)
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../src/hooks/use-focus/index.ts"],"sourcesContent":["\"use client\"\n\nimport type { RefObject } from \"react\"\nimport { useCallback, useRef } from \"react\"\nimport {\n getActiveElement,\n getDocument,\n getFirstFocusableElement,\n isRefObject,\n isSafari,\n useUpdateEffect,\n} from \"../../utils\"\nimport { useEventListener } from \"../use-event-listener\"\n\nexport interface UseFocusOnShowProps {\n focusTarget?: HTMLElement | null | RefObject<HTMLElement | null>\n preventScroll?: boolean\n shouldFocus?: boolean\n visible?: boolean\n}\n\n/**\n * `useFocusOnShow` is a custom hook that focuses on the target element when it is shown.\n *\n * @see https://yamada-ui.com/docs/hooks/use-focus-on-show\n */\nexport const useFocusOnShow = <Y extends HTMLElement>(\n refOrEl: RefObject<null | Y> | Y,\n {\n focusTarget: focusRefOrEl,\n preventScroll,\n shouldFocus,\n visible,\n }: UseFocusOnShowProps = {\n preventScroll: true,\n shouldFocus: false,\n },\n) => {\n const trulyShouldFocus = shouldFocus && visible\n const focused = useRef(false)\n\n const getTarget = useCallback(() => {\n return isRefObject(refOrEl) ? refOrEl.current : refOrEl\n }, [refOrEl])\n\n const getFocusTarget = useCallback(() => {\n return isRefObject(focusRefOrEl) ? focusRefOrEl.current : focusRefOrEl\n }, [focusRefOrEl])\n\n const onFocus = useCallback(() => {\n const target = getTarget()\n\n if (!target || !trulyShouldFocus || focused.current) return\n if (target.contains(document.activeElement as HTMLElement)) return\n\n const focusTarget = getFocusTarget()\n\n if (focusTarget) {\n requestAnimationFrame(() => {\n focusTarget.focus({ preventScroll })\n\n focused.current = true\n })\n } else {\n const firstFocusable = getFirstFocusableElement(target)\n\n if (firstFocusable)\n requestAnimationFrame(() => {\n firstFocusable.focus({ preventScroll })\n\n focused.current = true\n })\n else\n requestAnimationFrame(() => {\n target.focus({ preventScroll })\n\n focused.current = true\n })\n }\n }, [getTarget, trulyShouldFocus, getFocusTarget, preventScroll])\n\n useUpdateEffect(() => {\n focused.current = !trulyShouldFocus\n }, [trulyShouldFocus])\n\n useUpdateEffect(() => {\n requestAnimationFrame(onFocus)\n }, [onFocus])\n\n useEventListener(getTarget, \"transitionend\", onFocus)\n}\n\nexport interface UseFocusOnMouseDownProps {\n ref: RefObject<HTMLElement | null>\n elements?: (HTMLElement | null | RefObject<HTMLElement | null>)[]\n enabled?: boolean\n}\n\n/**\n * `useFocusOnPointerDown` is a custom hook that focuses on the target element when it is clicked.\n *\n * @see https://yamada-ui.com/docs/hooks/use-focus-on-pointer-down\n */\nexport const useFocusOnPointerDown = ({\n ref,\n elements,\n enabled,\n}: UseFocusOnMouseDownProps) => {\n useEventListener(\n () => getDocument(ref.current),\n \"pointerdown\",\n (ev) => {\n if (!isSafari() || !enabled) return\n const target = ev.target as HTMLElement\n\n const els = elements ?? [ref]\n\n const validTarget = els.some((elOrRef) => {\n const el = isRefObject(elOrRef) ? elOrRef.current : elOrRef\n\n return el?.contains(target) || el === target\n })\n\n if (\n getActiveElement(getDocument(ref.current)) !== target &&\n validTarget\n ) {\n ev.preventDefault()\n\n target.focus()\n }\n },\n )\n}\n"],"mappings":";;;;;;;;;;;;AA0BA,MAAa,kBACX,SACA,EACE,aAAa,cACb,eACA,aACA,YACuB;CACvB,eAAe;CACf,aAAa;AACf,MACG;CACH,MAAM,mBAAmB,eAAe;CACxC,MAAM,UAAU,OAAO,KAAK;CAE5B,MAAM,YAAY,kBAAkB;EAClC,OAAO,YAAY,OAAO,IAAI,QAAQ,UAAU;CAClD,GAAG,CAAC,OAAO,CAA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A,cAAA,iBAAA,EAAA,GAAA,cAAA,YAAA,CAC+B,IAAI,OAAO,CAAC,MAAM,UAC/C,aACA;GACA,GAAG,eAAe;GAElB,OAAO,MAAM;EACf;CACF,CACF;AACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../../src/hooks/use-local-storage/index.ts"],"sourcesContent":["\"use client\"\n\nimport { useCallback, useEffect, useState } from \"react\"\nimport { isFunction } from \"../../utils\"\nimport { useWindowEvent } from \"../use-window-event\"\n\nexport type StorageType = \"localStorage\" | \"sessionStorage\"\n\nexport interface StorageProps<Y> {\n key: string\n defaultValue?: Y\n getInitialValueInEffect?: boolean\n deserialize?: (value: string | undefined) => Y\n serialize?: (value: Y) => string\n}\n\nconst serializeJSON = <Y>(value: Y, name: string) => {\n try {\n return JSON.stringify(value)\n } catch {\n throw new Error(`useLocalStorage ${name}: Failed to serialize the value`)\n }\n}\n\nconst deserializeJSON = (value: string | undefined) => {\n if (!value) return value\n\n try {\n return JSON.parse(value)\n } catch {\n return value\n }\n}\n\nexport const createStorage = <Y>(type: StorageType, name: string) => {\n const eventName =\n type === \"localStorage\" ? \"local-storage\" : \"session-storage\"\n\n return ({\n key,\n defaultValue,\n deserialize = deserializeJSON,\n getInitialValueInEffect = true,\n serialize = (value: Y) => serializeJSON(value, name),\n }: StorageProps<Y>) => {\n const readStorageValue = useCallback(\n (skipStorage?: boolean): Y => {\n if (\n typeof window === \"undefined\" ||\n !(type in window) ||\n (window[type] as null | Storage | undefined) == null ||\n skipStorage\n )
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../src/hooks/use-local-storage/index.ts"],"sourcesContent":["\"use client\"\n\nimport { useCallback, useEffect, useState } from \"react\"\nimport { isFunction } from \"../../utils\"\nimport { useWindowEvent } from \"../use-window-event\"\n\nexport type StorageType = \"localStorage\" | \"sessionStorage\"\n\nexport interface StorageProps<Y> {\n key: string\n defaultValue?: Y\n getInitialValueInEffect?: boolean\n deserialize?: (value: string | undefined) => Y\n serialize?: (value: Y) => string\n}\n\nconst serializeJSON = <Y>(value: Y, name: string) => {\n try {\n return JSON.stringify(value)\n } catch {\n throw new Error(`useLocalStorage ${name}: Failed to serialize the value`)\n }\n}\n\nconst deserializeJSON = (value: string | undefined) => {\n if (!value) return value\n\n try {\n return JSON.parse(value)\n } catch {\n return value\n }\n}\n\nexport const createStorage = <Y>(type: StorageType, name: string) => {\n const eventName =\n type === \"localStorage\" ? \"local-storage\" : \"session-storage\"\n\n return ({\n key,\n defaultValue,\n deserialize = deserializeJSON,\n getInitialValueInEffect = true,\n serialize = (value: Y) => serializeJSON(value, name),\n }: StorageProps<Y>) => {\n const readStorageValue = useCallback(\n (skipStorage?: boolean): Y => {\n if (\n typeof window === \"undefined\" ||\n !(type in window) ||\n (window[type] as null | Storage | undefined) == null ||\n skipStorage\n )\n return (defaultValue ?? \"\") as Y\n\n const storageValue = window[type].getItem(key)\n\n return storageValue !== null\n ? deserialize(storageValue)\n : ((defaultValue ?? \"\") as Y)\n },\n [key, deserialize, defaultValue],\n )\n\n const [value, setValue] = useState<Y>(\n readStorageValue(getInitialValueInEffect),\n )\n\n const setStorageValue = useCallback(\n (valOrFn: ((prevState: Y) => Y) | Y) => {\n if (isFunction(valOrFn)) {\n setValue((current) => {\n const result = valOrFn(current)\n\n window[type].setItem(key, serialize(result))\n window.dispatchEvent(\n new CustomEvent(eventName, {\n detail: { key, value: valOrFn(current) },\n }),\n )\n\n return result\n })\n } else {\n window[type].setItem(key, serialize(valOrFn))\n window.dispatchEvent(\n new CustomEvent(eventName, { detail: { key, value: valOrFn } }),\n )\n\n setValue(valOrFn)\n }\n },\n [key, serialize],\n )\n\n const removeStorageValue = useCallback(() => {\n window[type].removeItem(key)\n setValue(defaultValue as Y)\n }, [defaultValue, key])\n\n useWindowEvent(\"storage\", (ev) => {\n if (ev.storageArea === window[type] && ev.key === key)\n setValue(deserialize(ev.newValue ?? undefined))\n })\n\n useWindowEvent(eventName, (ev) => {\n if (ev.detail.key === key) setValue(ev.detail.value)\n })\n\n useEffect(() => {\n if (defaultValue !== undefined && value === undefined)\n setStorageValue(defaultValue)\n }, [defaultValue, value, setStorageValue])\n\n useEffect(() => {\n if (getInitialValueInEffect) setValue(readStorageValue())\n }, [getInitialValueInEffect, readStorageValue])\n\n return [\n value === undefined ? defaultValue : value,\n setStorageValue,\n removeStorageValue,\n ] as const\n }\n}\n\n/**\n * `useLocalStorage` is a custom hook for storing, updating, and retrieving values in local storage.\n *\n * @see https://yamada-ui.com/docs/hooks/use-local-storage\n */\nexport const useLocalStorage = <Y = string>(props: StorageProps<Y>) =>\n createStorage<Y>(\"localStorage\", \"use-local-storage\")(props)\n"],"mappings":";;;;;AAgBA,MAAM,iBAAoB,OAAU,SAAiB;CACnD,IAAI;EACF,OAAO,KAAK,UAAU,KAAK;CAC7B,QAAQ;EACN,MAAM,IAAI,MAAM,mBAAmB,KAAK,gCAAgC;CAC1E;AACF;AAEA,MAAM,mBAAmB,UAA8B;CACrD,IAAI,CAAC,OAAO,OAAO;CAEnB,IAAI;EACF,OAAO,KAAK,MAAM,KAAK;CACzB,QAAQ;EACN,OAAO;CACT;AACF;AAEA,MAAa,iBAAoB,MAAmB,SAAiB;CACnE,MAAM,YACJ,SAAS,iBAAiB,kBAAkB;CAE9C,QAAQ,EACN,KACA,cACA,cAAc,iBACd,0BAA0B,MAC1B,aAAa,UAAa,cAAc,OAAO,IAAI,QAC9B;EACrB,MAAM,mBAAmB,aACtB,gBAA6B;GAC5B,IACE,OAAO,WAAW,eAClB,EAAE,QAAQ,WACT,OAAO,SAAwC,QAChD,aAEA,OAAQ,gBAAgB;GAE1B,MAAM,eAAe,OAAO,KAAK,CAAC,QAAQ,GAAG;GAE7C,OAAO,iBAAiB,OACpB,YAAY,YAAY,IACtB,gBAAgB;EACxB,GACA;GAAC;GAAK;GAAa;EAAY,CACjC;EAEA,MAAM,CAAC,OAAO,YAAY,SACxB,iBAAiB,uBAAuB,CAC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,KAAK"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../../src/hooks/use-mounted/index.ts"],"sourcesContent":["\"use client\"\n\nimport { useCallback, useRef, useState } from \"react\"\nimport { useSafeLayoutEffect } from \"../../utils\"\n\nexport interface UseMountedProps {\n delay?: number\n state?: boolean\n}\n\nexport function useMounted(props?: {\n delay?: number\n state?: false\n}): () => boolean\n\nexport function useMounted(props?: { delay?: number; state?: true }): boolean\n\nexport function useMounted({ delay = 0, state = false }: UseMountedProps = {}) {\n const mountedRef = useRef(false)\n const [mounted, setMounted] = useState(false)\n\n useSafeLayoutEffect(() => {\n mountedRef.current = true\n\n let timeoutId: NodeJS.Timeout | null = null\n\n if (state)
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../src/hooks/use-mounted/index.ts"],"sourcesContent":["\"use client\"\n\nimport { useCallback, useRef, useState } from \"react\"\nimport { useSafeLayoutEffect } from \"../../utils\"\n\nexport interface UseMountedProps {\n delay?: number\n state?: boolean\n}\n\nexport function useMounted(props?: {\n delay?: number\n state?: false\n}): () => boolean\n\nexport function useMounted(props?: { delay?: number; state?: true }): boolean\n\nexport function useMounted({ delay = 0, state = false }: UseMountedProps = {}) {\n const mountedRef = useRef(false)\n const [mounted, setMounted] = useState(false)\n\n useSafeLayoutEffect(() => {\n mountedRef.current = true\n\n let timeoutId: NodeJS.Timeout | null = null\n\n if (state)\n if (delay > 0) timeoutId = setTimeout(() => setMounted(true), delay)\n else setMounted(true)\n\n return () => {\n mountedRef.current = false\n\n if (state) setMounted(false)\n\n if (timeoutId) clearTimeout(timeoutId)\n }\n }, [delay, state])\n\n if (state) return mounted\n else\n // eslint-disable-next-line react-hooks/rules-of-hooks\n return useCallback(() => mountedRef.current, [])\n}\n\nexport type UseMountedReturn = ReturnType<typeof useMounted>\n"],"mappings":";;;;AAiBA,SAAgB,WAAW,EAAE,QAAQ,GAAG,QAAQ,UAA2B,CAAC,GAAG;CAC7E,MAAM,aAAa,OAAO,KAAK;CAC/B,MAAM,CAAC,SAAS,cAAc,SAAS,KAAK;CAE5C,0BAA0B;EACxB,WAAW,UAAU;EAErB,IAAI,YAAmC;EAEvC,IAAI,OACF,IAAI,QAAQ,GAAG,YAAY,iBAAiB,WAAW,IAAI,GAAG,KAAK;OAC9D,WAAW,IAAI;EAEtB,aAAa;GACX,WAAW,UAAU;GAErB,IAAI,OAAO,WAAW,KAAK;GAE3B,IAAI,WAAW,aAAa,SAAS;EACvC;CACF,GAAG,CAAC,OAAO,KAAK,CAAC;CAEjB,IAAI,OAAO,OAAO;MAGhB,OAAO,kBAAkB,WAAW,SAAS,CAAC,CAAC;AACnD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../../src/hooks/use-outside-click/index.ts"],"sourcesContent":["\"use client\"\n\nimport type { RefObject } from \"react\"\nimport { useCallback, useEffect, useRef } from \"react\"\nimport { getDocument, isArray, useCallbackRef } from \"../../utils\"\n\nexport interface UseOutsideClickProps {\n ref: RefObject<HTMLElement | null> | RefObject<HTMLElement | null>[]\n enabled?: boolean\n handler?: (ev: Event) => void\n}\n\n/**\n * `useOutsideClick` is a custom hook that detects click events outside of an element.\n *\n * @see https://yamada-ui.com/docs/hooks/use-outside-click\n */\nexport const useOutsideClick = ({\n ref,\n enabled = true,\n handler,\n}: UseOutsideClickProps) => {\n const handlerRef = useCallbackRef(handler)\n\n const state = useRef({\n ignoreEmulatedMouseEvents: false,\n isPointerDown: false,\n })\n\n const onPointerDown = useCallback(\n (ev: MouseEvent | TouchEvent) => {\n if (isValidEvent(ev, ref)) state.current.isPointerDown = true\n },\n [ref],\n )\n\n const onMouseUp = useCallback(\n (ev: MouseEvent) => {\n if (state.current.ignoreEmulatedMouseEvents) {\n state.current.ignoreEmulatedMouseEvents = false\n\n return\n }\n\n if (state.current.isPointerDown && handler && isValidEvent(ev, ref)) {\n state.current.isPointerDown = false\n\n handlerRef(ev)\n }\n },\n [handler, handlerRef, ref],\n )\n\n const onTouchEnd = useCallback(\n (ev: TouchEvent) => {\n state.current.ignoreEmulatedMouseEvents = true\n\n if (state.current.isPointerDown && handler && isValidEvent(ev, ref)) {\n state.current.isPointerDown = false\n\n handlerRef(ev)\n }\n },\n [handler, handlerRef, ref],\n )\n\n useEffect(() => {\n if (!enabled) return\n\n const doc = getDocument(isArray(ref) ? ref[0]?.current : ref.current)\n\n doc.addEventListener(\"mousedown\", onPointerDown, true)\n doc.addEventListener(\"mouseup\", onMouseUp, true)\n doc.addEventListener(\"touchstart\", onPointerDown, true)\n doc.addEventListener(\"touchend\", onTouchEnd, true)\n\n return () => {\n doc.removeEventListener(\"mousedown\", onPointerDown, true)\n doc.removeEventListener(\"mouseup\", onMouseUp, true)\n doc.removeEventListener(\"touchstart\", onPointerDown, true)\n doc.removeEventListener(\"touchend\", onTouchEnd, true)\n }\n }, [\n handler,\n ref,\n handlerRef,\n state,\n enabled,\n onPointerDown,\n onMouseUp,\n onTouchEnd,\n ])\n}\n\nconst isValidEvent = (\n ev: MouseEvent | TouchEvent,\n ref: RefObject<HTMLElement | null> | RefObject<HTMLElement | null>[],\n) => {\n const target = ev.target as HTMLElement | null\n\n if (\"button\" in ev && ev.button > 0) return false\n\n if (target) if (!getDocument(target).contains(target)) return false\n\n if (isArray(ref))
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../src/hooks/use-outside-click/index.ts"],"sourcesContent":["\"use client\"\n\nimport type { RefObject } from \"react\"\nimport { useCallback, useEffect, useRef } from \"react\"\nimport { getDocument, isArray, useCallbackRef } from \"../../utils\"\n\nexport interface UseOutsideClickProps {\n ref: RefObject<HTMLElement | null> | RefObject<HTMLElement | null>[]\n enabled?: boolean\n handler?: (ev: Event) => void\n}\n\n/**\n * `useOutsideClick` is a custom hook that detects click events outside of an element.\n *\n * @see https://yamada-ui.com/docs/hooks/use-outside-click\n */\nexport const useOutsideClick = ({\n ref,\n enabled = true,\n handler,\n}: UseOutsideClickProps) => {\n const handlerRef = useCallbackRef(handler)\n\n const state = useRef({\n ignoreEmulatedMouseEvents: false,\n isPointerDown: false,\n })\n\n const onPointerDown = useCallback(\n (ev: MouseEvent | TouchEvent) => {\n if (isValidEvent(ev, ref)) state.current.isPointerDown = true\n },\n [ref],\n )\n\n const onMouseUp = useCallback(\n (ev: MouseEvent) => {\n if (state.current.ignoreEmulatedMouseEvents) {\n state.current.ignoreEmulatedMouseEvents = false\n\n return\n }\n\n if (state.current.isPointerDown && handler && isValidEvent(ev, ref)) {\n state.current.isPointerDown = false\n\n handlerRef(ev)\n }\n },\n [handler, handlerRef, ref],\n )\n\n const onTouchEnd = useCallback(\n (ev: TouchEvent) => {\n state.current.ignoreEmulatedMouseEvents = true\n\n if (state.current.isPointerDown && handler && isValidEvent(ev, ref)) {\n state.current.isPointerDown = false\n\n handlerRef(ev)\n }\n },\n [handler, handlerRef, ref],\n )\n\n useEffect(() => {\n if (!enabled) return\n\n const doc = getDocument(isArray(ref) ? ref[0]?.current : ref.current)\n\n doc.addEventListener(\"mousedown\", onPointerDown, true)\n doc.addEventListener(\"mouseup\", onMouseUp, true)\n doc.addEventListener(\"touchstart\", onPointerDown, true)\n doc.addEventListener(\"touchend\", onTouchEnd, true)\n\n return () => {\n doc.removeEventListener(\"mousedown\", onPointerDown, true)\n doc.removeEventListener(\"mouseup\", onMouseUp, true)\n doc.removeEventListener(\"touchstart\", onPointerDown, true)\n doc.removeEventListener(\"touchend\", onTouchEnd, true)\n }\n }, [\n handler,\n ref,\n handlerRef,\n state,\n enabled,\n onPointerDown,\n onMouseUp,\n onTouchEnd,\n ])\n}\n\nconst isValidEvent = (\n ev: MouseEvent | TouchEvent,\n ref: RefObject<HTMLElement | null> | RefObject<HTMLElement | null>[],\n) => {\n const target = ev.target as HTMLElement | null\n\n if (\"button\" in ev && ev.button > 0) return false\n\n if (target) if (!getDocument(target).contains(target)) return false\n\n if (isArray(ref)) return !ref.some((ref) => ref.current?.contains(target))\n else return !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AI,oBAAoB,YAAY,YAAY,IAAI;EACtD;CACF,GAAG;EACD;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACF,CAAC;AACH;AAEA,MAAM,gBACJ,IACA,QACG;CACH,MAAM,SAAS,GAAG;CAElB,IAAI,YAAY,MAAM,GAAG,SAAS,GAAG,OAAO;CAE5C,IAAI;MAAY,EAAA,GAAA,cAAA,YAAA,CAAa,MAAM,CAAC,CAAC,SAAS,MAAM,GAAG,OAAO;CAAA;CAE9D,KAAA,GAAA,cAAA,QAAA,CAAY,GAAG,GAAG,OAAO,CAAC,IAAI,MAAM,QAAQ,IAAI,SAAS,SAAS,MAAM,CAAC;MACpE,OAAO,CAAC,IAAI,SAAS,SAAS,MAAM;AAC3C"}
|
package/dist/esm/index.js
CHANGED
|
@@ -32,7 +32,7 @@ import { display } from "./core/css/display.js";
|
|
|
32
32
|
import { focusRingStyle } from "./core/css/focus-ring.js";
|
|
33
33
|
import { gradient } from "./core/css/gradient.js";
|
|
34
34
|
import { transforms } from "./core/css/config.js";
|
|
35
|
-
import { animationProperties, aspectRatioProperties, atRuleStyles, blurProperties, borderProperties, colorProperties, durationProperties, easingProperties, fontProperties, gradientProperties, keyframeProperties, pseudoStyles, radiusProperties, shadowProperties, shorthandStyles, sizeProperties, spaceProperties, standardStyles, styleProperties, styledStyles, styles, variableLengthProperties, zIndexProperties } from "./core/css/styles.js";
|
|
35
|
+
import { animationProperties, aspectRatioProperties, atRuleStyles, blurProperties, borderProperties, colorProperties, durationProperties, easingProperties, fontProperties, gradientProperties, keyframeProperties, pseudoStyles, radiusProperties, shadowProperties, shorthandStyles, sizeProperties, spaceProperties, standardStyles, styleProperties, styledStyles, styles, variableLengthProperties, vendorProperties, zIndexProperties } from "./core/css/styles.js";
|
|
36
36
|
import { css, getStyle, transformConditionalValue } from "./core/css/css.js";
|
|
37
37
|
import { mergeCSS } from "./core/css/merge-css.js";
|
|
38
38
|
import { getCSS, useCSS } from "./core/css/use-css.js";
|
|
@@ -5245,6 +5245,7 @@ __reExport(/* @__PURE__ */ __exportAll({
|
|
|
5245
5245
|
varAttr: () => varAttr,
|
|
5246
5246
|
varToValue: () => varToValue,
|
|
5247
5247
|
variableLengthProperties: () => variableLengthProperties,
|
|
5248
|
+
vendorProperties: () => vendorProperties,
|
|
5248
5249
|
visuallyHiddenAttributes: () => visuallyHiddenAttributes,
|
|
5249
5250
|
visuallyHiddenStyle: () => visuallyHiddenStyle,
|
|
5250
5251
|
wrapOrPassProps: () => wrapOrPassProps,
|
|
@@ -5253,6 +5254,6 @@ __reExport(/* @__PURE__ */ __exportAll({
|
|
|
5253
5254
|
zStackStyle: () => zStackStyle
|
|
5254
5255
|
}), utils_exports);
|
|
5255
5256
|
//#endregion
|
|
5256
|
-
export { AArrowDownIcon, AArrowUpIcon, ALargeSmallIcon, AccessibilityIcon, namespace_exports as Accordion, AccordionButton, AccordionContext, AccordionDescendantsContext, AccordionItem, AccordionItemContext, AccordionPanel, AccordionPropsContext, AccordionRoot, namespace_exports$1 as ActionBar, ActionBarCloseTrigger, ActionBarContent, ActionBarOpenTrigger, ActionBarPropsContext, ActionBarRoot, ActionBarSeparator, ActivityIcon, AirVentIcon, AirplayIcon, Airy, AiryPropsContext, AlarmClockCheckIcon, AlarmClockIcon, AlarmClockMinusIcon, AlarmClockOffIcon, AlarmClockPlusIcon, AlarmSmokeIcon, AlbumIcon, namespace_exports$2 as Alert, AlertDescription, AlertIcon, AlertLoading, AlertPropsContext, AlertRoot, AlertTitle, AlignCenterHorizontalIcon, AlignCenterVerticalIcon, AlignEndHorizontalIcon, AlignEndVerticalIcon, AlignHorizontalDistributeCenterIcon, AlignHorizontalDistributeEndIcon, AlignHorizontalDistributeStartIcon, AlignHorizontalJustifyCenterIcon, AlignHorizontalJustifyEndIcon, AlignHorizontalJustifyStartIcon, AlignHorizontalSpaceAroundIcon, AlignHorizontalSpaceBetweenIcon, AlignStartHorizontalIcon, AlignStartVerticalIcon, AlignVerticalDistributeCenterIcon, AlignVerticalDistributeEndIcon, AlignVerticalDistributeStartIcon, AlignVerticalJustifyCenterIcon, AlignVerticalJustifyEndIcon, AlignVerticalJustifyStartIcon, AlignVerticalSpaceAroundIcon, AlignVerticalSpaceBetweenIcon, namespace_exports$3 as AlphaSlider, AlphaSliderOverlay, AlphaSliderPropsContext, AlphaSliderRoot, AlphaSliderThumb, AlphaSliderTrack, AmbulanceIcon, AmpersandIcon, AmpersandsIcon, AmphoraIcon, AnchorIcon, AngryIcon, AnnoyedIcon, AntennaIcon, AnvilIcon, ApertureIcon, AppWindowIcon, AppWindowMacIcon, AppleIcon, ArchiveIcon, ArchiveRestoreIcon, ArchiveXIcon, area_chart_namespace_exports as AreaChart, ArmchairIcon, ArrowBigDownDashIcon, ArrowBigDownIcon, ArrowBigLeftDashIcon, ArrowBigLeftIcon, ArrowBigRightDashIcon, ArrowBigRightIcon, ArrowBigUpDashIcon, ArrowBigUpIcon, ArrowDown01Icon, ArrowDown10Icon, ArrowDownAZIcon, ArrowDownFromLineIcon, ArrowDownIcon, ArrowDownLeftIcon, ArrowDownNarrowWideIcon, ArrowDownRightIcon, ArrowDownToDotIcon, ArrowDownToLineIcon, ArrowDownUpIcon, ArrowDownWideNarrowIcon, ArrowDownZAIcon, ArrowLeftFromLineIcon, ArrowLeftIcon, ArrowLeftRightIcon, ArrowLeftToLineIcon, ArrowRightFromLineIcon, ArrowRightIcon, ArrowRightLeftIcon, ArrowRightToLineIcon, ArrowUp01Icon, ArrowUp10Icon, ArrowUpAZIcon, ArrowUpDownIcon, ArrowUpFromDotIcon, ArrowUpFromLineIcon, ArrowUpIcon, ArrowUpLeftIcon, ArrowUpNarrowWideIcon, ArrowUpRightIcon, ArrowUpToLineIcon, ArrowUpWideNarrowIcon, ArrowUpZAIcon, ArrowsUpFromLineIcon, AspectRatio, AspectRatioPropsContext, AsteriskIcon, AstroidIcon, AtSignIcon, AtomIcon, AudioLinesIcon, AudioWaveformIcon, namespace_exports$4 as Autocomplete, AutocompleteContext, AutocompleteGroup, AutocompleteLabel, AutocompleteOption, AutocompletePropsContext, AutocompleteRoot, Avatar, namespace_exports$5 as AvatarGroup, AvatarGroupRoot, AvatarPropsContext, AwardIcon, AxeIcon, Axis3dIcon, BabyIcon, BackpackIcon, Badge, BadgeAlertIcon, BadgeCentIcon, BadgeCheckIcon, BadgeDollarSignIcon, BadgeEuroIcon, BadgeIcon, BadgeIndianRupeeIcon, BadgeInfoIcon, BadgeJapaneseYenIcon, BadgeMinusIcon, BadgePercentIcon, BadgePlusIcon, BadgePoundSterlingIcon, BadgePropsContext, BadgeQuestionMarkIcon, BadgeRussianRubleIcon, BadgeSwissFrancIcon, BadgeTurkishLiraIcon, BadgeXIcon, BaggageClaimIcon, BalloonIcon, BanIcon, BananaIcon, BandageIcon, BanknoteArrowDownIcon, BanknoteArrowUpIcon, BanknoteIcon, BanknoteXIcon, bar_chart_namespace_exports as BarChart, BarcodeIcon, BarrelIcon, BaselineIcon, BathIcon, BatteryChargingIcon, BatteryFullIcon, BatteryIcon, BatteryLowIcon, BatteryMediumIcon, BatteryPlusIcon, BatteryWarningIcon, BeakerIcon, BeanIcon, BeanOffIcon, BedDoubleIcon, BedIcon, BedSingleIcon, BeefIcon, BeefOffIcon, BeerIcon, BeerOffIcon, BellCheckIcon, BellDotIcon, BellElectricIcon, BellIcon, BellMinusIcon, BellOffIcon, BellPlusIcon, BellRingIcon, BetweenHorizontalEndIcon, BetweenHorizontalStartIcon, BetweenVerticalEndIcon, BetweenVerticalStartIcon, BicepsFlexedIcon, BikeIcon, BinaryIcon, BinocularsIcon, BiohazardIcon, BirdIcon, BirdhouseIcon, BitcoinIcon, Bleed, BleedPropsContext, BlendIcon, BlenderIcon, BlindsIcon, namespace_exports$6 as Blockquote, BlockquoteCaption, BlockquoteCite, BlockquoteContent, BlockquoteIcon, BlockquotePropsContext, BlockquoteRoot, BlocksIcon, BluetoothConnectedIcon, BluetoothIcon, BluetoothOffIcon, BluetoothSearchingIcon, BoldIcon, BoltIcon, BombIcon, BoneIcon, BookAIcon, BookAlertIcon, BookAudioIcon, BookCheckIcon, BookCopyIcon, BookDashedIcon, BookDownIcon, BookHeadphonesIcon, BookHeartIcon, BookIcon, BookImageIcon, BookKeyIcon, BookLockIcon, BookMarkedIcon, BookMinusIcon, BookOpenCheckIcon, BookOpenIcon, BookOpenTextIcon, BookPlusIcon, BookSearchIcon, BookTextIcon, BookTypeIcon, BookUp2Icon, BookUpIcon, BookUserIcon, BookXIcon, BookmarkCheckIcon, BookmarkIcon, BookmarkMinusIcon, BookmarkOffIcon, BookmarkPlusIcon, BookmarkXIcon, BoomBoxIcon, BotIcon, BotMessageSquareIcon, BotOffIcon, BottleWineIcon, BowArrowIcon, Box, BoxIcon, BoxesIcon, BracesIcon, BracketsIcon, BrainCircuitIcon, BrainCogIcon, BrainIcon, namespace_exports$7 as Breadcrumb, BreadcrumbEllipsis, BreadcrumbLink, BreadcrumbPropsContext, BreadcrumbRoot, BrickWallFireIcon, BrickWallIcon, BrickWallShieldIcon, BriefcaseBusinessIcon, BriefcaseConveyorBeltIcon, BriefcaseIcon, BriefcaseMedicalIcon, BringToFrontIcon, BroccoliIcon, BrushCleaningIcon, BrushIcon, BubblesIcon, BugIcon, BugOffIcon, BugPlayIcon, Building2Icon, BuildingIcon, BusFrontIcon, BusIcon, Button, namespace_exports$8 as ButtonGroup, ButtonGroupRoot, ButtonPropsContext, COLOR_MODE_STORAGE_KEY, CableCarIcon, CableIcon, CakeIcon, CakeSliceIcon, CalculatorIcon, namespace_exports$9 as Calendar, Calendar1Icon, CalendarArrowDownIcon, CalendarArrowUpIcon, CalendarCheck2Icon, CalendarCheckIcon, CalendarClockIcon, CalendarCogIcon, CalendarContext, CalendarControl, CalendarDaysIcon, CalendarDescendantsContext, CalendarFoldIcon, CalendarHeartIcon, CalendarIcon, CalendarMinus2Icon, CalendarMinusIcon, CalendarMonth, CalendarMonthSelect, CalendarNavigation, CalendarNextButton, CalendarOffIcon, CalendarPlus2Icon, CalendarPlusIcon, CalendarPrevButton, CalendarPropsContext, CalendarRangeIcon, CalendarRoot, CalendarSearchIcon, CalendarSyncIcon, CalendarX2Icon, CalendarXIcon, CalendarYearSelect, CalendarsIcon, CameraIcon, CameraOffIcon, CandyCaneIcon, CandyIcon, CandyOffIcon, CannabisIcon, CannabisOffIcon, Caption, CaptionsIcon, CaptionsOffIcon, CarFrontIcon, CarIcon, CarTaxiFrontIcon, CaravanIcon, namespace_exports$10 as Card, CardBody, CardFooter, CardHeader, CardPropsContext, CardRoot, CardSimIcon, namespace_exports$11 as Carousel, CarouselContext, CarouselIndicator, CarouselIndicators, CarouselItem, CarouselList, CarouselNextTrigger, CarouselPrevTrigger, CarouselPropsContext, CarouselRoot, CarrotIcon, CartesianChart, CaseLowerIcon, CaseSensitiveIcon, CaseUpperIcon, CassetteTapeIcon, CastIcon, CastleIcon, CatIcon, CctvIcon, CctvOffIcon, Center, CenterPropsContext, Chart, ChartAngleAxis, ChartArea, ChartAreaIcon, ChartBar, ChartBarBigIcon, ChartBarDecreasingIcon, ChartBarIcon, ChartBarIncreasingIcon, ChartBarStackedIcon, ChartCandlestickIcon, ChartColumnBigIcon, ChartColumnDecreasingIcon, ChartColumnIcon, ChartColumnIncreasingIcon, ChartColumnStackedIcon, ChartContext, ChartDonut, ChartGanttIcon, ChartGrid, ChartLabel, ChartLabelList, ChartLegend, ChartLine, ChartLineIcon, ChartNetworkIcon, ChartNoAxesColumnDecreasingIcon, ChartNoAxesColumnIcon, ChartNoAxesColumnIncreasingIcon, ChartNoAxesCombinedIcon, ChartNoAxesGanttIcon, ChartPie, ChartPieIcon, ChartPolarGrid, ChartPropsContext, ChartRadar, ChartRadial, ChartRadiusAxis, ChartReferenceLine, ChartScatterIcon, ChartSplineIcon, ChartTooltip, ChartXAxis, ChartYAxis, CheckCheckIcon, CheckIcon, CheckLineIcon, Checkbox, checkbox_card_namespace_exports as CheckboxCard, CheckboxCardAddon, CheckboxCardDescription, checkbox_card_group_namespace_exports as CheckboxCardGroup, CheckboxCardRoot as CheckboxCardGroupItem, CheckboxCardGroupRoot, CheckboxCardLabel, CheckboxCardPropsContext, CheckboxCardRoot, namespace_exports$12 as CheckboxGroup, CheckboxGroupContext, Checkbox as CheckboxGroupItem, CheckboxGroupRoot, CheckboxPropsContext, ChefHatIcon, CherryIcon, ChessBishopIcon, ChessKingIcon, ChessKnightIcon, ChessPawnIcon, ChessQueenIcon, ChessRookIcon, ChevronDownIcon, ChevronFirstIcon, ChevronLastIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, ChevronsDownIcon, ChevronsDownUpIcon, ChevronsLeftIcon, ChevronsLeftRightEllipsisIcon, ChevronsLeftRightIcon, ChevronsRightIcon, ChevronsRightLeftIcon, ChevronsUpDownIcon, ChevronsUpIcon, ChurchIcon, CigaretteIcon, CigaretteOffIcon, CircleAlertIcon, CircleArrowDownIcon, CircleArrowLeftIcon, CircleArrowOutDownLeftIcon, CircleArrowOutDownRightIcon, CircleArrowOutUpLeftIcon, CircleArrowOutUpRightIcon, CircleArrowRightIcon, CircleArrowUpIcon, CircleCheckBigIcon, CircleCheckIcon, CircleChevronDownIcon, CircleChevronLeftIcon, CircleChevronRightIcon, CircleChevronUpIcon, CircleDashedIcon, CircleDivideIcon, CircleDollarSignIcon, CircleDotDashedIcon, CircleDotIcon, CircleEllipsisIcon, CircleEqualIcon, CircleFadingArrowUpIcon, CircleFadingPlusIcon, CircleGaugeIcon, CircleIcon, CircleMinusIcon, CircleOffIcon, CircleParkingIcon, CircleParkingOffIcon, CirclePauseIcon, CirclePercentIcon, CirclePileIcon, CirclePlayIcon, CirclePlusIcon, CirclePoundSterlingIcon, CirclePowerIcon, namespace_exports$13 as CircleProgress, CircleProgressLabel, CircleProgressPropsContext, CircleProgressRoot, CircleQuestionMarkIcon, CircleSlash2Icon, CircleSlashIcon, CircleSmallIcon, CircleStarIcon, CircleStopIcon, CircleUserIcon, CircleUserRoundIcon, CircleXIcon, CircuitBoardIcon, CitrusIcon, ClapperboardIcon, ClientOnly, ClipboardCheckIcon, ClipboardClockIcon, ClipboardCopyIcon, ClipboardIcon, ClipboardListIcon, ClipboardMinusIcon, ClipboardPasteIcon, ClipboardPenIcon, ClipboardPenLineIcon, ClipboardPlusIcon, ClipboardTypeIcon, ClipboardXIcon, Clock10Icon, Clock11Icon, Clock12Icon, Clock1Icon, Clock2Icon, Clock3Icon, Clock4Icon, Clock5Icon, Clock6Icon, Clock7Icon, Clock8Icon, Clock9Icon, ClockAlertIcon, ClockArrowDownIcon, ClockArrowUpIcon, ClockCheckIcon, ClockFadingIcon, ClockIcon, ClockPlusIcon, CloseButton, CloseButtonPropsContext, ClosedCaptionIcon, CloudAlertIcon, CloudBackupIcon, CloudCheckIcon, CloudCogIcon, CloudDownloadIcon, CloudDrizzleIcon, CloudFogIcon, CloudHailIcon, CloudIcon, CloudLightningIcon, CloudMoonIcon, CloudMoonRainIcon, CloudOffIcon, CloudRainIcon, CloudRainWindIcon, CloudSnowIcon, CloudSunIcon, CloudSunRainIcon, CloudSyncIcon, CloudUploadIcon, CloudyIcon, CloverIcon, ClubIcon, Code, CodeIcon, CodePropsContext, CodeXmlIcon, CoffeeIcon, CogIcon, CoinsIcon, Col, Colgroup, Collapse, CollapsePropsContext, ColorModeContext, ColorModeProvider, ColorModeScript, ColorPicker, ColorPickerPropsContext, ColorSchemeContext, namespace_exports$14 as ColorSelector, ColorSelectorAlphaSlider, ColorSelectorColorSwatchGroup, ColorSelectorColorSwatchGroupLabel, ColorSelectorColorSwatchItem, ColorSelectorEyeDropper, ColorSelectorHueSlider, ColorSelectorPropsContext, ColorSelectorRoot, ColorSelectorSaturationSlider, ColorSwatch, ColorSwatchGroup, ColorSwatchPropsContext, Columns2Icon, Columns3CogIcon, Columns3Icon, Columns4Icon, CombineIcon, ComboboxContext, ComboboxDescendantsContext, ComboboxGroupContext, CommandIcon, CompassIcon, ComponentIcon, composed_chart_namespace_exports as ComposedChart, ComputerIcon, ConciergeBellIcon, ConeIcon, ConstructionIcon, ContactIcon, ContactRoundIcon, namespace_exports$15 as Container, ContainerBody, ContainerFooter, ContainerHeader, ContainerIcon, ContainerPropsContext, ContainerRoot, ContrastIcon, CookieIcon, CookingPotIcon, CopyCheckIcon, CopyIcon, CopyMinusIcon, CopyPlusIcon, CopySlashIcon, CopyXIcon, CopyleftIcon, CopyrightIcon, CornerDownLeftIcon, CornerDownRightIcon, CornerLeftDownIcon, CornerLeftUpIcon, CornerRightDownIcon, CornerRightUpIcon, CornerUpLeftIcon, CornerUpRightIcon, CpuIcon, CreativeCommonsIcon, CreditCardIcon, CroissantIcon, CropIcon, CrossIcon, CrosshairIcon, CrownIcon, CuboidIcon, CupSodaIcon, CurrencyIcon, CylinderIcon, DEFAULT_DIRECTION, DEFAULT_FIRST_DAY_OF_WEEK, DEFAULT_HOLIDAYS, DEFAULT_LAYERS, DEFAULT_LOCALE, DEFAULT_MAX_DATE, DEFAULT_MIN_DATE, DEFAULT_VAR_PREFIX, DEFAULT_WEEKEND_DAYS, DamIcon, namespace_exports$16 as DataList, DataListDescription, DataListItem, DataListPropsContext, DataListRoot, DataListTerm, DatabaseBackupIcon, DatabaseIcon, DatabaseSearchIcon, DatabaseZapIcon, DatePicker, DatePickerPropsContext, DecimalsArrowLeftIcon, DecimalsArrowRightIcon, DeleteIcon, DessertIcon, DiameterIcon, DiamondIcon, DiamondMinusIcon, DiamondPercentIcon, DiamondPlusIcon, Dice1Icon, Dice2Icon, Dice3Icon, Dice4Icon, Dice5Icon, Dice6Icon, DicesIcon, DiffIcon, Disc2Icon, Disc3Icon, DiscAlbumIcon, DiscIcon, DivideIcon, DnaIcon, DnaOffIcon, DockIcon, DogIcon, DollarSignIcon, donut_chart_namespace_exports as DonutChart, DonutIcon, DoorClosedIcon, DoorClosedLockedIcon, DoorOpenIcon, DotIcon, DownloadIcon, DraftingCompassIcon, DramaIcon, namespace_exports$17 as Drawer, DrawerBody, DrawerCloseButton, DrawerCloseTrigger, DrawerContent, DrawerDragBar, DrawerFooter, DrawerHeader, DrawerOpenTrigger, DrawerOverlay, DrawerPropsContext, DrawerRoot, DrawerTitle, DrillIcon, DroneIcon, DropletIcon, DropletOffIcon, DropletsIcon, namespace_exports$18 as Dropzone, DropzoneAccept, DropzoneDescription, DropzoneIcon, DropzoneIdle, DropzonePropsContext, DropzoneReject, DropzoneRoot, DropzoneTitle, DrumIcon, DrumstickIcon, DumbbellIcon, EarIcon, EarOffIcon, EarthIcon, EarthLockIcon, EclipseIcon, namespace_exports$19 as Editable, EditableCancelTrigger, EditableContext, EditableControl, EditableEditTrigger, EditableInput, EditablePreview, EditablePropsContext, EditableRoot, EditableSubmitTrigger, EditableTextarea, EggFriedIcon, EggIcon, EggOffIcon, EllipseIcon, EllipsisIcon, EllipsisVerticalIcon, Em, EmPropsContext, namespace_exports$20 as EmptyState, EmptyStateContent, EmptyStateDescription, EmptyStateIndicator, EmptyStatePropsContext, EmptyStateRoot, EmptyStateTitle, EnvironmentProvider, EqualApproximatelyIcon, EqualIcon, EqualNotIcon, EraserIcon, EthernetPortIcon, EuroIcon, EvChargerIcon, ExpandIcon, ExternalLinkIcon, EyeClosedIcon, EyeIcon, EyeOffIcon, FactoryIcon, Fade, FadePropsContext, FadeScale, FanIcon, FastForwardIcon, FeatherIcon, FenceIcon, FerrisWheelIcon, namespace_exports$21 as Field, FieldErrorMessage, FieldHelperMessage, FieldLabel, FieldPropsContext, FieldRoot, namespace_exports$22 as Fieldset, FieldsetContent, FieldsetContext, FieldsetErrorMessage, FieldsetHeader, FieldsetHelperMessage, FieldsetLegend, FieldsetPropsContext, FieldsetRoot, FileArchiveIcon, FileAxis3dIcon, FileBadgeIcon, FileBoxIcon, FileBracesCornerIcon, FileBracesIcon, FileButton, FileButtonPropsContext, FileChartColumnIcon, FileChartColumnIncreasingIcon, FileChartLineIcon, FileChartPieIcon, FileCheckCornerIcon, FileCheckIcon, FileClockIcon, FileCodeCornerIcon, FileCodeIcon, FileCogIcon, FileDiffIcon, FileDigitIcon, FileDownIcon, FileExclamationPointIcon, FileHeadphoneIcon, FileHeartIcon, FileIcon, FileImageIcon, FileInput, FileInputIcon, FileInputPropsContext, FileKeyIcon, FileLockIcon, FileMinusCornerIcon, FileMinusIcon, FileMusicIcon, FileOutputIcon, FilePenIcon, FilePenLineIcon, FilePlayIcon, FilePlusCornerIcon, FilePlusIcon, FileQuestionMarkIcon, FileScanIcon, FileSearchCornerIcon, FileSearchIcon, FileSignalIcon, FileSlidersIcon, FileSpreadsheetIcon, FileStackIcon, FileSymlinkIcon, FileTerminalIcon, FileTextIcon, FileTypeCornerIcon, FileTypeIcon, FileUpIcon, FileUserIcon, FileVideoCameraIcon, FileVolumeIcon, FileXCornerIcon, FileXIcon, FilesIcon, FilmIcon, FingerprintPatternIcon, FireExtinguisherIcon, FishIcon, FishOffIcon, FishSymbolIcon, FishingHookIcon, FishingRodIcon, FlagIcon, FlagOffIcon, FlagTriangleLeftIcon, FlagTriangleRightIcon, FlameIcon, FlameKindlingIcon, FlashlightIcon, FlashlightOffIcon, FlaskConicalIcon, FlaskConicalOffIcon, FlaskRoundIcon, Flex, FlexPropsContext, Flip, FlipHorizontal2Icon, FlipPropsContext, FlipVertical2Icon, Float, FloatPropsContext, Flower2Icon, FlowerIcon, FocusIcon, FocusLock, FoldHorizontalIcon, FoldVerticalIcon, FolderArchiveIcon, FolderBookmarkIcon, FolderCheckIcon, FolderClockIcon, FolderClosedIcon, FolderCodeIcon, FolderCogIcon, FolderDotIcon, FolderDownIcon, FolderGit2Icon, FolderGitIcon, FolderHeartIcon, FolderIcon, FolderInputIcon, FolderKanbanIcon, FolderKeyIcon, FolderLockIcon, FolderMinusIcon, FolderOpenDotIcon, FolderOpenIcon, FolderOutputIcon, FolderPenIcon, FolderPlusIcon, FolderRootIcon, FolderSearch2Icon, FolderSearchIcon, FolderSymlinkIcon, FolderSyncIcon, FolderTreeIcon, FolderUpIcon, FolderXIcon, FoldersIcon, FootprintsIcon, For, ForkliftIcon, namespace_exports$23 as Form, FormBody, FormContext, FormDescription, FormFooter, FormGroup, FormHeader, FormIcon, FormPropsContext, FormRoot, FormSubmitButton, FormTitle, namespace_exports$24 as Format, FormatByte, FormatBytePropsContext, FormatDateTime, FormatDateTimePropsContext, FormatNumber, FormatNumberPropsContext, ForwardIcon, FrameIcon, FrownIcon, FuelIcon, FullscreenIcon, FunnelIcon, FunnelPlusIcon, FunnelXIcon, GalleryHorizontalEndIcon, GalleryHorizontalIcon, GalleryThumbnailsIcon, GalleryVerticalEndIcon, GalleryVerticalIcon, Gamepad2Icon, GamepadDirectionalIcon, GamepadIcon, GaugeIcon, GavelIcon, GemIcon, GeorgianLariIcon, GhostIcon, GiftIcon, GitBranchIcon, GitBranchMinusIcon, GitBranchPlusIcon, GitCommitHorizontalIcon, GitCommitVerticalIcon, GitCompareArrowsIcon, GitCompareIcon, GitForkIcon, GitGraphIcon, GitMergeConflictIcon, GitMergeIcon, GitPullRequestArrowIcon, GitPullRequestClosedIcon, GitPullRequestCreateArrowIcon, GitPullRequestCreateIcon, GitPullRequestDraftIcon, GitPullRequestIcon, GlassWaterIcon, GlassesIcon, GlobalStyles, GlobeCheckIcon, GlobeIcon, GlobeLockIcon, GlobeOffIcon, GlobeXIcon, GoalIcon, GpuIcon, GraduationCapIcon, GrapeIcon, Grid, Grid2x2CheckIcon, Grid2x2Icon, Grid2x2PlusIcon, Grid2x2XIcon, Grid3x2Icon, Grid3x3Icon, GridItem, GridItemPropsContext, GridPropsContext, GripHorizontalIcon, GripIcon, GripVerticalIcon, Group, GroupIcon, GroupPropsContext, GuitarIcon, HStack, HStackPropsContext, HamIcon, HamburgerIcon, HammerIcon, HandCoinsIcon, HandFistIcon, HandGrabIcon, HandHeartIcon, HandHelpingIcon, HandIcon, HandMetalIcon, HandPlatterIcon, HandbagIcon, HandshakeIcon, HardDriveDownloadIcon, HardDriveIcon, HardDriveUploadIcon, HardHatIcon, HashIcon, HatGlassesIcon, HazeIcon, HdIcon, HdmiPortIcon, Heading, Heading1Icon, Heading2Icon, Heading3Icon, Heading4Icon, Heading5Icon, Heading6Icon, HeadingIcon, HeadingPropsContext, HeadphoneOffIcon, HeadphonesIcon, HeadsetIcon, HeartCrackIcon, HeartHandshakeIcon, HeartIcon, HeartMinusIcon, HeartOffIcon, HeartPlusIcon, HeartPulseIcon, HeartXIcon, HeaterIcon, HelicopterIcon, HexagonIcon, Highlight, HighlighterIcon, HistoryIcon, HopIcon, HopOffIcon, HospitalIcon, HotelIcon, HourglassIcon, HouseHeartIcon, HouseIcon, HousePlugIcon, HousePlusIcon, HouseWifiIcon, namespace_exports$25 as HueSlider, HueSliderOverlay, HueSliderPropsContext, HueSliderRoot, HueSliderThumb, HueSliderTrack, I18nContext, I18nProvider, IceCreamBowlIcon, IceCreamConeIcon, Icon, IconButton, IconButtonPropsContext, IconPropsContext, IdCardIcon, IdCardLanyardIcon, Image, ImageDownIcon, ImageIcon, ImageMinusIcon, ImageOffIcon, ImagePlayIcon, ImagePlusIcon, ImagePropsContext, ImageUpIcon, ImageUpscaleIcon, ImagesIcon, Image as Img, ImagePropsContext as ImgPropsContext, ImportIcon, InboxIcon, IndianRupeeIcon, Indicator, IndicatorPropsContext, InfiniteScrollArea, InfiniteScrollAreaPropsContext, InfinityIcon, InfoIcon, Input, InputAddon, InputAddonPropsContext, InputElement, InputElementPropsContext, namespace_exports$26 as InputGroup, InputGroupRoot, InputPropsContext, InspectionPanelIcon, ItalicIcon, IterationCcwIcon, IterationCwIcon, JapaneseYenIcon, JoystickIcon, KanbanIcon, KayakIcon, Kbd, KbdPropsContext, KeyIcon, KeyRoundIcon, KeySquareIcon, KeyboardIcon, KeyboardMusicIcon, KeyboardOffIcon, LOCALES, LampCeilingIcon, LampDeskIcon, LampFloorIcon, LampIcon, LampWallDownIcon, LampWallUpIcon, LandPlotIcon, LandmarkIcon, LanguagesIcon, LaptopIcon, LaptopMinimalCheckIcon, LaptopMinimalIcon, LassoIcon, LassoSelectIcon, LaughIcon, Layers2Icon, LayersIcon, LayersMinusIcon, LayersPlusIcon, LayoutDashboardIcon, LayoutGridIcon, LayoutListIcon, LayoutPanelLeftIcon, LayoutPanelTopIcon, LayoutTemplateIcon, LeafIcon, LeafyGreenIcon, LecternIcon, LensConcaveIcon, LensConvexIcon, LibraryBigIcon, LibraryIcon, LifeBuoyIcon, LigatureIcon, LightbulbIcon, LightbulbOffIcon, line_chart_namespace_exports as LineChart, LineDotRightHorizontalIcon, LineSquiggleIcon, LineStyleIcon, Link, Link2Icon, Link2OffIcon, namespace_exports$27 as LinkBox, LinkBoxOverlay, LinkBoxPropsContext, LinkBoxRoot, LinkIcon, LinkPropsContext, namespace_exports$28 as List, ListCheckIcon, ListChecksIcon, ListChevronsDownUpIcon, ListChevronsUpDownIcon, ListCollapseIcon, ListEndIcon, ListFilterIcon, ListFilterPlusIcon, ListIcon, ListIndentDecreaseIcon, ListIndentIncreaseIcon, ListItem, ListItemIcon, ListMinusIcon, ListMusicIcon, ListOrderedIcon, ListPlusIcon, ListPropsContext, ListRestartIcon, ListRoot, ListStartIcon, ListTodoIcon, ListTreeIcon, ListVideoIcon, ListXIcon, LoaderCircleIcon, LoaderIcon, LoaderPinwheelIcon, namespace_exports$29 as Loading, LoadingPropsContext, LoadingProvider, LocateFixedIcon, LocateIcon, LocateOffIcon, LockIcon, LockKeyholeIcon, LockKeyholeOpenIcon, LockOpenIcon, LogInIcon, LogOutIcon, LogsIcon, LollipopIcon, LucideIcon, LuggageIcon, MagnetIcon, MailCheckIcon, MailIcon, MailMinusIcon, MailOpenIcon, MailPlusIcon, MailQuestionMarkIcon, MailSearchIcon, MailWarningIcon, MailXIcon, MailboxIcon, MailsIcon, MainMenuContext, MapIcon, MapMinusIcon, MapPinCheckIcon, MapPinCheckInsideIcon, MapPinHouseIcon, MapPinIcon, MapPinMinusIcon, MapPinMinusInsideIcon, MapPinOffIcon, MapPinPenIcon, MapPinPlusIcon, MapPinPlusInsideIcon, MapPinSearchIcon, MapPinXIcon, MapPinXInsideIcon, MapPinnedIcon, MapPlusIcon, Mark, MarkPropsContext, MarsIcon, MarsStrokeIcon, MartiniIcon, Maximize2Icon, MaximizeIcon, MedalIcon, MegaphoneIcon, MegaphoneOffIcon, MehIcon, MemoryStickIcon, namespace_exports$30 as Menu, MenuAnchor, MenuCommand, MenuContent, MenuContext, MenuContextTrigger, MenuDescendantsContext, MenuFooter, MenuGroup, MenuGroupContext, MenuHeader, MenuIcon, MenuIndicator, MenuItem, MenuLabel, MenuOptionGroup, MenuOptionGroupContext, MenuOptionItem, MenuPropsContext, MenuRoot, MenuSeparator, MenuTrigger, MergeIcon, MessageCircleCheckIcon, MessageCircleCodeIcon, MessageCircleDashedIcon, MessageCircleHeartIcon, MessageCircleIcon, MessageCircleMoreIcon, MessageCircleOffIcon, MessageCirclePlusIcon, MessageCircleQuestionMarkIcon, MessageCircleReplyIcon, MessageCircleWarningIcon, MessageCircleXIcon, MessageSquareCheckIcon, MessageSquareCodeIcon, MessageSquareDashedIcon, MessageSquareDiffIcon, MessageSquareDotIcon, MessageSquareHeartIcon, MessageSquareIcon, MessageSquareLockIcon, MessageSquareMoreIcon, MessageSquareOffIcon, MessageSquarePlusIcon, MessageSquareQuoteIcon, MessageSquareReplyIcon, MessageSquareShareIcon, MessageSquareTextIcon, MessageSquareWarningIcon, MessageSquareXIcon, MessagesSquareIcon, MetronomeIcon, MicIcon, MicOffIcon, MicVocalIcon, MicrochipIcon, MicroscopeIcon, MicrowaveIcon, MilestoneIcon, MilkIcon, MilkOffIcon, Minimize2Icon, MinimizeIcon, MinusIcon, MirrorRectangularIcon, MirrorRoundIcon, namespace_exports$31 as Modal, ModalBody, ModalCloseButton, ModalCloseTrigger, ModalContent, ModalFooter, ModalHeader, ModalOpenTrigger, ModalOverlay, ModalPropsContext, ModalRoot, ModalTitle, MonitorCheckIcon, MonitorCloudIcon, MonitorCogIcon, MonitorDotIcon, MonitorDownIcon, MonitorIcon, MonitorOffIcon, MonitorPauseIcon, MonitorPlayIcon, MonitorSmartphoneIcon, MonitorSpeakerIcon, MonitorStopIcon, MonitorUpIcon, MonitorXIcon, MoonIcon, MoonStarIcon, Motion, MotorbikeIcon, MountainIcon, MountainSnowIcon, MouseIcon, MouseLeftIcon, MouseOffIcon, MousePointer2Icon, MousePointer2OffIcon, MousePointerBanIcon, MousePointerClickIcon, MousePointerIcon, MouseRightIcon, Move3dIcon, MoveDiagonal2Icon, MoveDiagonalIcon, MoveDownIcon, MoveDownLeftIcon, MoveDownRightIcon, MoveHorizontalIcon, MoveIcon, MoveLeftIcon, MoveRightIcon, MoveUpIcon, MoveUpLeftIcon, MoveUpRightIcon, MoveVerticalIcon, Music2Icon, Music3Icon, Music4Icon, MusicIcon, namespace_exports$32 as NativeAccordion, NativeAccordionButton, NativeAccordionContext, NativeAccordionIcon, NativeAccordionItem, NativeAccordionPanel, NativeAccordionPropsContext, NativeAccordionRoot, namespace_exports$33 as NativePopover, NativePopoverAnchor, NativePopoverBody, NativePopoverCloseTrigger, NativePopoverContent, NativePopoverFooter, NativePopoverHeader, NativePopoverPropsContext, NativePopoverRoot, NativePopoverTrigger, namespace_exports$34 as NativeSelect, NativeSelectGroup, NativeSelectOption, NativeSelectPropsContext, NativeSelectRoot, NativeSelectSeparator, namespace_exports$35 as NativeTable, NativeTablePropsContext, NativeTableRoot, Navigation2Icon, Navigation2OffIcon, NavigationIcon, NavigationOffIcon, NetworkIcon, NewspaperIcon, NfcIcon, NonBinaryIcon, NotebookIcon, NotebookPenIcon, NotebookTabsIcon, NotebookTextIcon, NotepadTextDashedIcon, NotepadTextIcon, NoticeProvider, NumberInput, NumberInputPropsContext, NutIcon, NutOffIcon, OctagonAlertIcon, OctagonIcon, OctagonMinusIcon, OctagonPauseIcon, OctagonXIcon, OmegaIcon, OptionIcon, OrbitIcon, OrigamiIcon, Package2Icon, PackageCheckIcon, PackageIcon, PackageMinusIcon, PackageOpenIcon, PackagePlusIcon, PackageSearchIcon, PackageXIcon, namespace_exports$36 as Pagination, PaginationContext, PaginationEndTrigger, PaginationItem, PaginationItems, PaginationNextTrigger, PaginationPrevTrigger, PaginationPropsContext, PaginationRoot, PaginationStartTrigger, PaginationText, PaintBucketIcon, PaintRollerIcon, PaintbrushIcon, PaintbrushVerticalIcon, PaletteIcon, PandaIcon, PanelBottomCloseIcon, PanelBottomDashedIcon, PanelBottomIcon, PanelBottomOpenIcon, PanelLeftCloseIcon, PanelLeftDashedIcon, PanelLeftIcon, PanelLeftOpenIcon, PanelLeftRightDashedIcon, PanelRightCloseIcon, PanelRightDashedIcon, PanelRightIcon, PanelRightOpenIcon, PanelTopBottomDashedIcon, PanelTopCloseIcon, PanelTopDashedIcon, PanelTopIcon, PanelTopOpenIcon, PanelsLeftBottomIcon, PanelsRightBottomIcon, PanelsTopLeftIcon, PaperclipIcon, ParasolIcon, ParenthesesIcon, ParkingMeterIcon, PartyPopperIcon, PasswordInput, PasswordInputPropsContext, PauseIcon, PawPrintIcon, PcCaseIcon, PenIcon, PenLineIcon, PenOffIcon, PenToolIcon, PencilIcon, PencilLineIcon, PencilOffIcon, PencilRulerIcon, PentagonIcon, PercentIcon, PersonStandingIcon, PhilippinePesoIcon, PhoneCallIcon, PhoneForwardedIcon, PhoneIcon, PhoneIncomingIcon, PhoneMissedIcon, PhoneOffIcon, PhoneOutgoingIcon, PiIcon, PianoIcon, PickaxeIcon, Picture, PictureInPicture2Icon, PictureInPictureIcon, pie_chart_namespace_exports as PieChart, PiggyBankIcon, PilcrowIcon, PilcrowLeftIcon, PilcrowRightIcon, PillBottleIcon, PillIcon, PinIcon, namespace_exports$37 as PinInput, PinInputDescendantsContext, PinInputField, PinInputPropsContext, PinInputRoot, PinOffIcon, PipetteIcon, PizzaIcon, PlaneIcon, PlaneLandingIcon, PlaneTakeoffIcon, PlayIcon, PlayOffIcon, Plug2Icon, PlugIcon, PlugZapIcon, PlusIcon, PocketKnifeIcon, PodcastIcon, PointerIcon, PointerOffIcon, PolarChart, PopcornIcon, namespace_exports$38 as Popover, PopoverAnchor, PopoverBody, PopoverCloseTrigger, PopoverContent, PopoverFooter, PopoverHeader, PopoverPropsContext, PopoverRoot, PopoverTrigger, PopsicleIcon, Portal, PoundSterlingIcon, PowerIcon, PowerOffIcon, PresentationIcon, PrinterCheckIcon, PrinterIcon, PrinterXIcon, Progress, ProgressPropsContext, ProjectorIcon, ProportionsIcon, PuzzleIcon, PyramidIcon, namespace_exports$39 as QrCode, QrCodeFrame, QrCodeIcon, QrCodeOverlay, QrCodePattern, QrCodePropsContext, QrCodeRoot, QuoteIcon, RabbitIcon, radar_chart_namespace_exports as RadarChart, RadarIcon, radial_chart_namespace_exports as RadialChart, RadiationIcon, RadicalIcon, Radio, radio_card_namespace_exports as RadioCard, RadioCardAddon, RadioCardDescription, radio_card_group_namespace_exports as RadioCardGroup, RadioCardRoot as RadioCardGroupItem, RadioCardGroupRoot, RadioCardLabel, RadioCardPropsContext, RadioCardRoot, namespace_exports$40 as RadioGroup, RadioGroupContext, Radio as RadioGroupItem, RadioGroupRoot, RadioIcon, RadioOffIcon, RadioPropsContext, RadioReceiverIcon, RadioTowerIcon, RadiusIcon, RainbowIcon, RatIcon, Rating, RatingContext, RatioIcon, ReceiptCentIcon, ReceiptEuroIcon, ReceiptIcon, ReceiptIndianRupeeIcon, ReceiptJapaneseYenIcon, ReceiptPoundSterlingIcon, ReceiptRussianRubleIcon, ReceiptSwissFrancIcon, ReceiptTextIcon, ReceiptTurkishLiraIcon, RectangleCircleIcon, RectangleEllipsisIcon, RectangleGogglesIcon, RectangleHorizontalIcon, RectangleVerticalIcon, RecycleIcon, Redo2Icon, RedoDotIcon, RedoIcon, RefreshCcwDotIcon, RefreshCcwIcon, RefreshCwIcon, RefreshCwOffIcon, RefrigeratorIcon, RegexIcon, RemoveFormattingIcon, namespace_exports$41 as Reorder, ReorderContext, ReorderItem, ReorderItemContext, ReorderPropsContext, ReorderRoot, ReorderTrigger, Repeat1Icon, Repeat2Icon, RepeatIcon, RepeatOffIcon, ReplaceAllIcon, ReplaceIcon, ReplyAllIcon, ReplyIcon, namespace_exports$42 as Resizable, ResizableContext, ResizableItem, ResizablePropsContext, ResizableRoot, ResizableTrigger, RewindIcon, RibbonIcon, Ripple, RipplePropsContext, RoadIcon, RocketIcon, RockingChairIcon, RollerCoasterIcon, RoseIcon, Rotate, Rotate3dIcon, RotateCcwIcon, RotateCcwKeyIcon, RotateCcwSquareIcon, RotateCwIcon, RotateCwSquareIcon, RotatePropsContext, RouteIcon, RouteOffIcon, RouterIcon, Rows2Icon, Rows3Icon, Rows4Icon, RssIcon, RulerDimensionLineIcon, RulerIcon, RussianRubleIcon, SailboatIcon, SaladIcon, SandwichIcon, SatelliteDishIcon, SatelliteIcon, namespace_exports$43 as SaturationSlider, SaturationSliderPropsContext, SaturationSliderRoot, SaturationSliderThumb, SaturationSliderTrack, SaudiRiyalIcon, SaveAllIcon, SaveIcon, SaveOffIcon, Scale3dIcon, ScaleIcon, ScalingIcon, ScanBarcodeIcon, ScanEyeIcon, ScanFaceIcon, ScanHeartIcon, ScanIcon, ScanLineIcon, ScanQrCodeIcon, ScanSearchIcon, ScanTextIcon, SchoolIcon, ScissorsIcon, ScissorsLineDashedIcon, ScooterIcon, ScreenShareIcon, ScreenShareOffIcon, ScrollArea, ScrollAreaPropsContext, ScrollIcon, ScrollTextIcon, SearchAlertIcon, SearchCheckIcon, SearchCodeIcon, SearchIcon, SearchSlashIcon, SearchXIcon, SectionIcon, namespace_exports$44 as SegmentedControl, SegmentedControlContext, SegmentedControlDescendantsContext, SegmentedControlItem, SegmentedControlPropsContext, SegmentedControlRoot, namespace_exports$45 as Select, SelectContext, SelectGroup, SelectLabel, SelectOption, SelectPropsContext, SelectRoot, SelectSeparator, SendHorizontalIcon, SendIcon, SendToBackIcon, Separator, SeparatorHorizontalIcon, SeparatorPropsContext, SeparatorVerticalIcon, ServerCogIcon, ServerCrashIcon, ServerIcon, ServerOffIcon, Settings2Icon, SettingsIcon, ShapesIcon, Share2Icon, ShareIcon, SheetIcon, ShellIcon, ShelvingUnitIcon, ShieldAlertIcon, ShieldBanIcon, ShieldCheckIcon, ShieldCogCornerIcon, ShieldCogIcon, ShieldEllipsisIcon, ShieldHalfIcon, ShieldIcon, ShieldMinusIcon, ShieldOffIcon, ShieldPlusIcon, ShieldQuestionMarkIcon, ShieldUserIcon, ShieldXIcon, ShipIcon, ShipWheelIcon, ShirtIcon, ShoppingBagIcon, ShoppingBasketIcon, ShoppingCartIcon, ShovelIcon, Show, ShowerHeadIcon, ShredderIcon, ShrimpIcon, ShrinkIcon, ShrubIcon, ShuffleIcon, namespace_exports$46 as Sidebar, SidebarContent, SidebarContext, SidebarDescendantsContext, SidebarFooter, SidebarGroup, SidebarGroupContent, SidebarGroupLabel, SidebarHandle, SidebarHeader, SidebarItem, SidebarItemContent, SidebarItemContext, SidebarItemEndElement, SidebarItemIndicator, SidebarItemLabel, SidebarItemLink, SidebarItemStartElement, SidebarItemTrigger, SidebarMainPanel, SidebarMenu, SidebarMenuButton, SidebarPropsContext, SidebarRoot, SidebarSidePanel, SidebarTrigger, SigmaIcon, SignalHighIcon, SignalIcon, SignalLowIcon, SignalMediumIcon, SignalZeroIcon, SignatureIcon, SignpostBigIcon, SignpostIcon, SimpleGrid, SimpleGridPropsContext, SirenIcon, Skeleton, SkeletonCircle, SkeletonPropsContext, SkeletonText, SkipBackIcon, SkipForwardIcon, SkullIcon, SlashIcon, SliceIcon, Slide, SlideFade, SlideFadePropsContext, SlidePropsContext, namespace_exports$47 as Slider, SliderMark, SliderMarks, SliderPropsContext, SliderRange, SliderRoot, SliderThumb, SliderThumbs, SliderTrack, SlidersHorizontalIcon, SlidersVerticalIcon, Slot, Slottable, SmartphoneChargingIcon, SmartphoneIcon, SmartphoneNfcIcon, SmileIcon, SmilePlusIcon, Snacks, SnailIcon, SnowflakeIcon, SoapDispenserDropletIcon, SofaIcon, SolarPanelIcon, SoupIcon, Source, SpaceIcon, Spacer, SpadeIcon, SparkleIcon, SparklesIcon, SpeakerIcon, SpeechIcon, SpellCheck2Icon, SpellCheckIcon, SplineIcon, SplinePointerIcon, SplitIcon, SpoolIcon, SportShoeIcon, SpotlightIcon, SprayCanIcon, SproutIcon, SquareActivityIcon, SquareArrowDownIcon, SquareArrowDownLeftIcon, SquareArrowDownRightIcon, SquareArrowLeftIcon, SquareArrowOutDownLeftIcon, SquareArrowOutDownRightIcon, SquareArrowOutUpLeftIcon, SquareArrowOutUpRightIcon, SquareArrowRightEnterIcon, SquareArrowRightExitIcon, SquareArrowRightIcon, SquareArrowUpIcon, SquareArrowUpLeftIcon, SquareArrowUpRightIcon, SquareAsteriskIcon, SquareBottomDashedScissorsIcon, SquareCenterlineDashedHorizontalIcon, SquareCenterlineDashedVerticalIcon, SquareChartGanttIcon, SquareCheckBigIcon, SquareCheckIcon, SquareChevronDownIcon, SquareChevronLeftIcon, SquareChevronRightIcon, SquareChevronUpIcon, SquareCodeIcon, SquareDashedBottomCodeIcon, SquareDashedBottomIcon, SquareDashedIcon, SquareDashedKanbanIcon, SquareDashedMousePointerIcon, SquareDashedTextIcon, SquareDashedTopSolidIcon, SquareDivideIcon, SquareDotIcon, SquareEqualIcon, SquareFunctionIcon, SquareIcon, SquareKanbanIcon, SquareLibraryIcon, SquareMIcon, SquareMenuIcon, SquareMinusIcon, SquareMousePointerIcon, SquareParkingIcon, SquareParkingOffIcon, SquarePauseIcon, SquarePenIcon, SquarePercentIcon, SquarePiIcon, SquarePilcrowIcon, SquarePlayIcon, SquarePlusIcon, SquarePowerIcon, SquareRadicalIcon, SquareRoundCornerIcon, SquareScissorsIcon, SquareSigmaIcon, SquareSlashIcon, SquareSplitHorizontalIcon, SquareSplitVerticalIcon, SquareSquareIcon, SquareStackIcon, SquareStarIcon, SquareStopIcon, SquareTerminalIcon, SquareUserIcon, SquareUserRoundIcon, SquareXIcon, SquaresExcludeIcon, SquaresIntersectIcon, SquaresSubtractIcon, SquaresUniteIcon, SquircleDashedIcon, SquircleIcon, SquirrelIcon, Stack, StackPropsContext, StampIcon, StarHalfIcon, StarIcon, StarOffIcon, namespace_exports$48 as Stat, StatHelperMessage, StatIcon, StatLabel, StatPropsContext, StatRoot, StatUnit, StatValue, Status, StatusPropsContext, StepBackIcon, StepForwardIcon, namespace_exports$49 as Steps, StepsContext, StepsDescendantsContext, StepsDescription, StepsIndicator, StepsItem, StepsItemContext, StepsList, StepsNextTrigger, StepsNumber, StepsPrevTrigger, StepsPropsContext, StepsRoot, StepsSeparator, StepsTitle, StethoscopeIcon, StickerIcon, StickyNoteCheckIcon, StickyNoteIcon, StickyNoteMinusIcon, StickyNoteOffIcon, StickyNotePlusIcon, StickyNoteXIcon, StickyNotesIcon, StoneIcon, StoreIcon, StrengthMeter, StrengthMeterPropsContext, StretchHorizontalIcon, StretchVerticalIcon, StrikethroughIcon, SubscriptIcon, SunDimIcon, SunIcon, SunMediumIcon, SunMoonIcon, SunSnowIcon, SunriseIcon, SunsetIcon, SuperscriptIcon, SwatchBookIcon, SwissFrancIcon, Switch, SwitchCameraIcon, SwitchPropsContext, SwordIcon, SwordsIcon, SyringeIcon, SystemProvider, THEME_SCHEME_STORAGE_KEY, TabDescendantsContext, TabPanelDescendantsContext, Table, Table2Icon, TableCellsMergeIcon, TableCellsSplitIcon, TableColumnsSplitIcon, TableIcon, TableOfContentsIcon, TablePropertiesIcon, TablePropsContext, TableRowsSplitIcon, TabletIcon, TabletSmartphoneIcon, TabletsIcon, namespace_exports$50 as Tabs, TabsContext, TabsList, TabsPanel, TabsPanels, TabsPropsContext, TabsRoot, TabsTab, Tag, TagIcon, TagPropsContext, TagsIcon, Tally1Icon, Tally2Icon, Tally3Icon, Tally4Icon, Tally5Icon, TangentIcon, TargetIcon, Tbody, Td, TelescopeIcon, TentIcon, TentTreeIcon, TerminalIcon, TestTubeDiagonalIcon, TestTubeIcon, TestTubesIcon, Text, TextAlignCenterIcon, TextAlignEndIcon, TextAlignJustifyIcon, TextAlignStartIcon, TextCursorIcon, TextCursorInputIcon, TextInitialIcon, TextPropsContext, TextQuoteIcon, TextSearchIcon, TextWrapIcon, Textarea, TextareaPropsContext, Tfoot, Th, Thead, TheaterIcon, ThemeProvider, ThemeSchemeScript, ThermometerIcon, ThermometerSnowflakeIcon, ThermometerSunIcon, ThumbsDownIcon, ThumbsUpIcon, TicketCheckIcon, TicketIcon, TicketMinusIcon, TicketPercentIcon, TicketPlusIcon, TicketSlashIcon, TicketXIcon, TicketsIcon, TicketsPlaneIcon, namespace_exports$51 as Timeline, TimelineConnector, TimelineContent, TimelineDescription, TimelineIcon, TimelineIndicator, TimelineItem, TimelinePropsContext, TimelineRoot, TimelineTitle, TimerIcon, TimerOffIcon, TimerResetIcon, Tip, Toggle, namespace_exports$52 as ToggleGroup, ToggleGroupContext, ToggleGroupRoot, ToggleLeftIcon, TogglePropsContext, ToggleRightIcon, ToiletIcon, ToolCaseIcon, ToolboxIcon, Tooltip, TooltipPropsContext, TornadoIcon, TorusIcon, TouchpadIcon, TouchpadOffIcon, TowelRackIcon, TowerControlIcon, ToyBrickIcon, Tr, TractorIcon, TrafficConeIcon, TrainFrontIcon, TrainFrontTunnelIcon, TrainTrackIcon, TramFrontIcon, TransgenderIcon, Trash2Icon, TrashIcon, namespace_exports$53 as Tree, TreeContext, TreeDeciduousIcon, TreeDescendantsContext, TreeItem, TreeItemContext, TreePalmIcon, TreePineIcon, TreePropsContext, TreeRoot, TreesIcon, TrendingDownIcon, TrendingUpDownIcon, TrendingUpIcon, TriangleAlertIcon, TriangleDashedIcon, TriangleIcon, TriangleRightIcon, TrophyIcon, TruckElectricIcon, TruckIcon, TurkishLiraIcon, TurntableIcon, TurtleIcon, TvIcon, TvMinimalIcon, TvMinimalPlayIcon, TypeIcon, TypeOutlineIcon, UIProvider, UmbrellaIcon, UmbrellaOffIcon, UnderlineIcon, Undo2Icon, UndoDotIcon, UndoIcon, UnfoldHorizontalIcon, UnfoldVerticalIcon, UngroupIcon, UniversityIcon, Unlink2Icon, UnlinkIcon, UnplugIcon, UploadIcon, UsbIcon, UserCheckIcon, UserCogIcon, UserIcon, UserKeyIcon, UserLockIcon, UserMinusIcon, UserPenIcon, UserPlusIcon, UserRoundCheckIcon, UserRoundCogIcon, UserRoundIcon, UserRoundKeyIcon, UserRoundMinusIcon, UserRoundPenIcon, UserRoundPlusIcon, UserRoundSearchIcon, UserRoundXIcon, UserSearchIcon, UserStarIcon, UserXIcon, UsersIcon, UsersRoundIcon, UtensilsCrossedIcon, UtensilsIcon, UtilityPoleIcon, VStack, VStackPropsContext, VanIcon, VariableIcon, VaultIcon, VectorSquareIcon, VeganIcon, VenetianMaskIcon, VenusAndMarsIcon, VenusIcon, VibrateIcon, VibrateOffIcon, VideoIcon, VideoOffIcon, VideotapeIcon, ViewIcon, VisuallyHidden, VisuallyHiddenPropsContext, VoicemailIcon, VolleyballIcon, Volume1Icon, Volume2Icon, VolumeIcon, VolumeOffIcon, VolumeXIcon, VoteIcon, WalletCardsIcon, WalletIcon, WalletMinimalIcon, WallpaperIcon, WandIcon, WandSparklesIcon, WarehouseIcon, WashingMachineIcon, WatchIcon, WavesArrowDownIcon, WavesArrowUpIcon, WavesHorizontalIcon, WavesLadderIcon, WavesVerticalIcon, WaypointsIcon, WebcamIcon, WebcamOffIcon, WebhookIcon, WebhookOffIcon, WeightIcon, WeightTildeIcon, WheatIcon, WheatOffIcon, WholeWordIcon, WifiCogIcon, WifiHighIcon, WifiIcon, WifiLowIcon, WifiOffIcon, WifiPenIcon, WifiSyncIcon, WifiZeroIcon, WindArrowDownIcon, WindIcon, WineIcon, WineOffIcon, WorkflowIcon, WormIcon, Wrap, WrapPropsContext, WrenchIcon, XIcon, XLineTopIcon, ZStack, ZStackPropsContext, ZapIcon, ZapOffIcon, ZodiacAquariusIcon, ZodiacAriesIcon, ZodiacCancerIcon, ZodiacCapricornIcon, ZodiacGeminiIcon, ZodiacLeoIcon, ZodiacLibraIcon, ZodiacOphiuchusIcon, ZodiacPiscesIcon, ZodiacSagittariusIcon, ZodiacScorpioIcon, ZodiacTaurusIcon, ZodiacVirgoIcon, ZoomInIcon, ZoomOutIcon, accordionStyle, actionBarStyle, airyStyle, alertStyle, alphaSliderStyle, animation, animationProperties, areaChartStyle, aspectRatioProperties, aspectRatioStyle, assignRef, atRuleStyles, attributeProperties, attributeSelectors, attributes, autocompleteStyle, avatarStyle, badgeStyle, barChartStyle, bleedStyle, blockquoteStyle, blurProperties, borderProperties, breadcrumbStyle, buttonStyle, calendarStyle, cardStyle, carouselStyle, cartesianChartStyle, centerStyle, chainProps, chartStyle, checkboxCardStyle, checkboxStyle, checkersProps, circleProgressStyle, closeButtonStyle, codeStyle, collapseStyle, colorMix, colorPickerStyle, colorProperties, colorSelectorStyle, colorSwatchStyle, composedChartStyle, conditionProperties, conditionSelectors, conditions, config, containerStyle, createBreakpoints, createColumnHelper, createComboboxChildren, createComboboxItem, createComponent, createContext, createDescendants, createLayers, createShouldForwardProp, createSlotComponent, createStorage, createStorageManager, createStore, createStyled, createSystem, createTransition, createVars, css, cssProps, dataListStyle, datePickerStyle, defaultEnvironment, defaultLayers, defaultSystem, defineComponentSlotStyle, defineComponentStyle, defineConfig, defineSemanticTokens, defineStyles, defineTheme, defineThemeSchemes, defineTokens, display, donutChartStyle, drawerStyle, dropzoneStyle, durationProperties, easingProperties, editableStyle, emStyle, emptyState, extendConfig, extendTheme, extractProps, fadeScaleStyle, fadeScaleVariants, fadeStyle, fadeVariants, fieldStyle, fieldsetStyle, fileButtonStyle, fileInputStyle, findChild, findChildren, flexStyle, flipStyle, floatStyle, focusRingStyle, fontProperties, formStyle, formatByteStyle, formatNumberStyle, getAdjustedMonth, getBreakpointValue, getCSS, getCSSFunction, getClassName, getColorModeValue, getColorSchemeVar, getCondition, getDisplayName, getEndOfWeek, getEventRelatedTarget, getFormatDateTime, getFormatNumber, getInputHeightStyle, getInputPaddingEndResetStyle, getInputPaddingStartResetStyle, getLanguage, getLoadingComponent, getMonthDays, getPreventTransition, getSlotClassName, getStartOfWeek, getStorageScript, getStyle, getValidChildren, getValue, getVar, getVarName, getWeekdays, gradient, gradientProperties, gridItemStyle, gridStyle, groupAttributeProperties, groupAttributeSelectors, groupAttributes, groupStyle, hStackStyle, headingStyle, hueSliderStyle, i18nCache, iconButtonStyle, iconStyle, icons_exports as icons, imageStyle, includesChildren, indicatorStyle, infiniteScrollAreaStyle, injectKeyframes, injectVars, inputAddonStyle, inputElementStyle, inputStyle, isAfterDate, isAfterMonth, isAfterYear, isBeforeDate, isBeforeMonth, isBeforeYear, isCSSFunction, isCSSToken, isCSSVar, isColorScheme, isComposing, isEqualProps, isInRange, isIncludeDates, isLoadingScheme, isRefObject, isSameAfterDate, isSameAfterMonth, isSameAfterYear, isSameBeforeDate, isSameBeforeMonth, isSameBeforeYear, isSameDate, isSameMonth, isSameYear, isSomeDisplayName, isSomeElement, isValidElement, kbdStyle, keyframeProperties, keyframes, lineChartStyle, linkBoxStyle, linkStyle, listStyle, loadingStyle, markStyle, menuStyle, mergeCSS, mergeProps, mergeRefs, mergeSlotCSS, mergeVars, modalStyle, motion, nativeAccordionStyle, nativePopoverStyle, nativeSelectStyle, nativeTableStyle, numberInputStyle, omitChildren, paginationStyle, passwordInputStyle, peerAttributeProperties, peerAttributeSelectors, peerAttributes, pickChildren, pieChartStyle, pinInputStyle, polarChartStyle, popoverProps, popoverStyle, popperProps, progressStyle, pseudoClassProperties, pseudoClassSelectors, pseudoClasses, pseudoElementProperties, pseudoElementSelectors, pseudoElements, pseudoStyles, qrCodeStyle, radarChartStyle, radialChartStyle, radioCardStyle, radioStyle, radiusProperties, ratingStyle, reorderStyle, resetFieldProps, resizableStyle, rotateStyle, runKeyAction, saturationSliderStyle, scrollAreaStyle, segmentedControlStyle, selectStyle, separatorStyle, shadowProperties, shorthandStyles, sidebarStyle, simpleGridStyle, sizeProperties, skeletonStyle, slideFadeStyle, slideFadeVariants, slideStyle, slideVariants, sliderStyle, sortDates, spaceProperties, splitChildren, stackStyle, standardStyles, statStyle, statusStyle, stepsStyle, strengthMeterStyle, styleProperties, styled, styledStyles, styles, switchStyle, tabsStyle, tagStyle, textStyle, textareaStyle, theme, timelineStyle, toggleStyle, tokenToValue, tokenToVar, tooltipProps, tooltipStyle, transformConditionalValue, transformInterpolation, transforms, treeStyle, updateMaybeDateValue, useAccordion, useAccordionContext, useAccordionDescendant, useAccordionDescendants, useAccordionItem, useAccordionItemContext, useAccordionPropsContext, useActionBar, useActionBarPropsContext, useAiryPropsContext, useAlertPropsContext, useAlphaSliderPropsContext, useAngleAxis, useAnimation, useAspectRatioPropsContext, useAsync, useAsyncCallback, useAsyncFunc, useAsyncRetry, useAttributeObserver, useAutocomplete, useAutocompleteContext, useAutocompleteOption, useAutocompletePropsContext, useAutosize, useAvatar, useAvatarGroup, useAvatarPropsContext, useBadgePropsContext, useBleedPropsContext, useBlockquotePropsContext, useBoolean, useBreadcrumb, useBreadcrumbPropsContext, useBreakpoint, useBreakpointEffect, useBreakpointState, useBreakpointValue, useButtonPropsContext, useByteFormat, useCSS, useCalendar, useCalendarContext, useCalendarDay, useCalendarDescendant, useCalendarDescendants, useCalendarProps, useCalendarPropsContext, useCallbackRef, useCardPropsContext, useCarousel, useCarouselContext, useCarouselPropsContext, useCartesianChart, useCenterPropsContext, useChart, useChartArea, useChartBar, useChartContext, useChartGrid, useChartLabel, useChartLabelList, useChartLegend, useChartLine, useChartPie, useChartPieLabel, useChartPieLabelLine, useChartPropsContext, useChartRadar, useChartRadial, useChartReferenceLine, useChartSector, useChartTooltip, useChartXAxis, useChartYAxis, useCheckbox, useCheckboxCardPropsContext, useCheckboxGroup, useCheckboxGroupContext, useCheckboxPropsContext, useCircleProgressPropsContext, useClickable, useClipboard, useCloseButtonPropsContext, useCodePropsContext, useCollapsePropsContext, useColorMode, useColorModeValue, useColorPicker, useColorPickerPropsContext, useColorSchemeContext, useColorSelector, useColorSelectorPropsContext, useColorSwatchPropsContext, useCombobox, useComboboxContext, useComboboxDescendant, useComboboxDescendantRegister, useComboboxDescendants, useComboboxGroup, useComboboxGroupContext, useComboboxItem, useComponentSlotStyle, useComponentStyle, useContainerPropsContext, useControllableEventState, useControllableState, useCounter, useDataListPropsContext, useDatePicker, useDatePickerPropsContext, useDateTimeFormat, useDisclosure, useDrawer, useDrawerPropsContext, useDropzone, useDropzonePropsContext, useDynamicAnimation, useEditable, useEditableContext, useEditablePropsContext, useElementSize, useEmPropsContext, useEmptyStatePropsContext, useEnvironment, useEventListener, useEventListeners, useExtractProps, useEyeDropper, useFadePropsContext, useFieldProps, useFieldPropsContext, useFieldSizing, useFieldsetContext, useFieldsetPropsContext, useFileButton, useFileButtonPropsContext, useFileInput, useFileInputPropsContext, useFindChild, useFindChildren, useFlexPropsContext, useFlipPropsContext, useFloatPropsContext, useFocusOnPointerDown, useFocusOnShow, useFormContext, useFormPropsContext, useFormatByte, useFormatBytePropsContext, useFormatDateTime, useFormatDateTimePropsContext, useFormatNumber, useFormatNumberPropsContext, useGridItemPropsContext, useGridPropsContext, useGroup, useGroupItemProps, useGroupPropsContext, useHStackPropsContext, useHeadingPropsContext, useHighlight, useHover, useHueSliderPropsContext, useI18n, useIconButtonPropsContext, useIconPropsContext, useIdle, useIds, useImagePropsContext, useImagePropsContext as useImgPropsContext, useIncludesChildren, useIndicatorPropsContext, useInfiniteScroll, useInfiniteScrollAreaPropsContext, useInjectVarsIntoCss, useInjectVarsIntoProps, useInputAddonPropsContext, useInputBorder, useInputElementPropsContext, useInputPropsContext, useInterval, useKbdPropsContext, useLazyMount, useLinkBoxPropsContext, useLinkPropsContext, useListPropsContext, useLoading, useLoadingComponent, useLoadingPropsContext, useLocalStorage, useMainMenuContext, useMarkPropsContext, useMediaQuery, useMenu, useMenuContext, useMenuDescendant, useMenuDescendants, useMenuGroup, useMenuGroupContext, useMenuItem, useMenuOptionGroup, useMenuOptionGroupContext, useMenuOptionItem, useMenuPropsContext, useMergeRefs, useModal, useModalPropsContext, useMounted, useNativeAccordion, useNativeAccordionContext, useNativeAccordionItem, useNativeAccordionPropsContext, useNativePopover, useNativePopoverPropsContext, useNativeSelect, useNativeSelectPropsContext, useNativeTablePropsContext, useNotice, useNumberFormat, useNumberInput, useNumberInputPropsContext, useOS, useOmitChildren, useOnline, useOutsideClick, usePagination, usePaginationContext, usePaginationPropsContext, usePanEvent, usePasswordInput, usePasswordInputPropsContext, usePickChildren, usePinInput, usePinInputDescendant, usePinInputDescendants, usePinInputPropsContext, usePolarChart, usePolarGrid, usePopover, usePopoverProps, usePopoverPropsContext, usePopoverStyleProps, usePopper, usePopperProps, usePopupAnimationProps, usePrevious, useProcessing, useProgress, useProgressPropsContext, usePromiseDisclosure, useQrCode, useQrCodePropsContext, useRadio, useRadioCardPropsContext, useRadioGroup, useRadioGroupContext, useRadioPropsContext, useRadiusAxis, useRating, useRatingContext, useRatingItem, useReorder, useReorderContext, useReorderItem, useReorderItemContext, useReorderPropsContext, useResizable, useResizableContext, useResizableItem, useResizableLayout, useResizablePropsContext, useResizableTrigger, useResizeObserver, useRipple, useRipplePropsContext, useRotatePropsContext, useSafeLayoutEffect, useSaturationSlider, useSaturationSliderPropsContext, useScrollArea, useScrollAreaPropsContext, useSegmentedControl, useSegmentedControlContext, useSegmentedControlDescendant, useSegmentedControlDescendants, useSegmentedControlItem, useSegmentedControlPropsContext, useSelect, useSelectContext, useSelectOption, useSelectPropsContext, useSeparatorPropsContext, useSidebar, useSidebarContext, useSidebarDescendant, useSidebarDescendants, useSidebarGroup, useSidebarItem, useSidebarItemContext, useSidebarPropsContext, useSimpleGridPropsContext, useSkeletonPropsContext, useSlideFadePropsContext, useSlidePropsContext, useSlider, useSliderPropsContext, useSnacks, useSplitChildren, useSplitProps, useSsr, useStackPropsContext, useStatPropsContext, useStatusPropsContext, useSteps, useStepsContext, useStepsDescendant, useStepsDescendants, useStepsItem, useStepsItemContext, useStepsPropsContext, useStrengthMeter, useStrengthMeterPropsContext, useSubMenu, useSwitch, useSwitchPropsContext, useSystem, useSystemColorMode, useTab, useTabDescendant, useTabDescendants, useTabPanel, useTabPanelDescendant, useTabPanelDescendants, useTablePropsContext, useTabs, useTabsContext, useTabsPropsContext, useTagPropsContext, useTextPropsContext, useTextarea, useTextareaPropsContext, useTheme, useTimelinePropsContext, useTimeout, useToggle, useToggleGroup, useToggleGroupContext, useTogglePropsContext, useTooltip, useTooltipProps, useTooltipPropsContext, useTree, useTreeContext, useTreeDescendant, useTreeDescendants, useTreeItem, useTreeItemContext, useTreePropsContext, useUnmountEffect, useUpdateBreakpointEffect, useUpdateEffect, useVStackPropsContext, useValidChildren, useValue, useVisuallyHiddenPropsContext, useWindowEvent, useWrapPropsContext, useZStackPropsContext, vStackStyle, varAttr, varToValue, variableLengthProperties, visuallyHiddenAttributes, visuallyHiddenStyle, wrapOrPassProps, wrapStyle, zIndexProperties, zStackStyle };
|
|
5257
|
+
export { AArrowDownIcon, AArrowUpIcon, ALargeSmallIcon, AccessibilityIcon, namespace_exports as Accordion, AccordionButton, AccordionContext, AccordionDescendantsContext, AccordionItem, AccordionItemContext, AccordionPanel, AccordionPropsContext, AccordionRoot, namespace_exports$1 as ActionBar, ActionBarCloseTrigger, ActionBarContent, ActionBarOpenTrigger, ActionBarPropsContext, ActionBarRoot, ActionBarSeparator, ActivityIcon, AirVentIcon, AirplayIcon, Airy, AiryPropsContext, AlarmClockCheckIcon, AlarmClockIcon, AlarmClockMinusIcon, AlarmClockOffIcon, AlarmClockPlusIcon, AlarmSmokeIcon, AlbumIcon, namespace_exports$2 as Alert, AlertDescription, AlertIcon, AlertLoading, AlertPropsContext, AlertRoot, AlertTitle, AlignCenterHorizontalIcon, AlignCenterVerticalIcon, AlignEndHorizontalIcon, AlignEndVerticalIcon, AlignHorizontalDistributeCenterIcon, AlignHorizontalDistributeEndIcon, AlignHorizontalDistributeStartIcon, AlignHorizontalJustifyCenterIcon, AlignHorizontalJustifyEndIcon, AlignHorizontalJustifyStartIcon, AlignHorizontalSpaceAroundIcon, AlignHorizontalSpaceBetweenIcon, AlignStartHorizontalIcon, AlignStartVerticalIcon, AlignVerticalDistributeCenterIcon, AlignVerticalDistributeEndIcon, AlignVerticalDistributeStartIcon, AlignVerticalJustifyCenterIcon, AlignVerticalJustifyEndIcon, AlignVerticalJustifyStartIcon, AlignVerticalSpaceAroundIcon, AlignVerticalSpaceBetweenIcon, namespace_exports$3 as AlphaSlider, AlphaSliderOverlay, AlphaSliderPropsContext, AlphaSliderRoot, AlphaSliderThumb, AlphaSliderTrack, AmbulanceIcon, AmpersandIcon, AmpersandsIcon, AmphoraIcon, AnchorIcon, AngryIcon, AnnoyedIcon, AntennaIcon, AnvilIcon, ApertureIcon, AppWindowIcon, AppWindowMacIcon, AppleIcon, ArchiveIcon, ArchiveRestoreIcon, ArchiveXIcon, area_chart_namespace_exports as AreaChart, ArmchairIcon, ArrowBigDownDashIcon, ArrowBigDownIcon, ArrowBigLeftDashIcon, ArrowBigLeftIcon, ArrowBigRightDashIcon, ArrowBigRightIcon, ArrowBigUpDashIcon, ArrowBigUpIcon, ArrowDown01Icon, ArrowDown10Icon, ArrowDownAZIcon, ArrowDownFromLineIcon, ArrowDownIcon, ArrowDownLeftIcon, ArrowDownNarrowWideIcon, ArrowDownRightIcon, ArrowDownToDotIcon, ArrowDownToLineIcon, ArrowDownUpIcon, ArrowDownWideNarrowIcon, ArrowDownZAIcon, ArrowLeftFromLineIcon, ArrowLeftIcon, ArrowLeftRightIcon, ArrowLeftToLineIcon, ArrowRightFromLineIcon, ArrowRightIcon, ArrowRightLeftIcon, ArrowRightToLineIcon, ArrowUp01Icon, ArrowUp10Icon, ArrowUpAZIcon, ArrowUpDownIcon, ArrowUpFromDotIcon, ArrowUpFromLineIcon, ArrowUpIcon, ArrowUpLeftIcon, ArrowUpNarrowWideIcon, ArrowUpRightIcon, ArrowUpToLineIcon, ArrowUpWideNarrowIcon, ArrowUpZAIcon, ArrowsUpFromLineIcon, AspectRatio, AspectRatioPropsContext, AsteriskIcon, AstroidIcon, AtSignIcon, AtomIcon, AudioLinesIcon, AudioWaveformIcon, namespace_exports$4 as Autocomplete, AutocompleteContext, AutocompleteGroup, AutocompleteLabel, AutocompleteOption, AutocompletePropsContext, AutocompleteRoot, Avatar, namespace_exports$5 as AvatarGroup, AvatarGroupRoot, AvatarPropsContext, AwardIcon, AxeIcon, Axis3dIcon, BabyIcon, BackpackIcon, Badge, BadgeAlertIcon, BadgeCentIcon, BadgeCheckIcon, BadgeDollarSignIcon, BadgeEuroIcon, BadgeIcon, BadgeIndianRupeeIcon, BadgeInfoIcon, BadgeJapaneseYenIcon, BadgeMinusIcon, BadgePercentIcon, BadgePlusIcon, BadgePoundSterlingIcon, BadgePropsContext, BadgeQuestionMarkIcon, BadgeRussianRubleIcon, BadgeSwissFrancIcon, BadgeTurkishLiraIcon, BadgeXIcon, BaggageClaimIcon, BalloonIcon, BanIcon, BananaIcon, BandageIcon, BanknoteArrowDownIcon, BanknoteArrowUpIcon, BanknoteIcon, BanknoteXIcon, bar_chart_namespace_exports as BarChart, BarcodeIcon, BarrelIcon, BaselineIcon, BathIcon, BatteryChargingIcon, BatteryFullIcon, BatteryIcon, BatteryLowIcon, BatteryMediumIcon, BatteryPlusIcon, BatteryWarningIcon, BeakerIcon, BeanIcon, BeanOffIcon, BedDoubleIcon, BedIcon, BedSingleIcon, BeefIcon, BeefOffIcon, BeerIcon, BeerOffIcon, BellCheckIcon, BellDotIcon, BellElectricIcon, BellIcon, BellMinusIcon, BellOffIcon, BellPlusIcon, BellRingIcon, BetweenHorizontalEndIcon, BetweenHorizontalStartIcon, BetweenVerticalEndIcon, BetweenVerticalStartIcon, BicepsFlexedIcon, BikeIcon, BinaryIcon, BinocularsIcon, BiohazardIcon, BirdIcon, BirdhouseIcon, BitcoinIcon, Bleed, BleedPropsContext, BlendIcon, BlenderIcon, BlindsIcon, namespace_exports$6 as Blockquote, BlockquoteCaption, BlockquoteCite, BlockquoteContent, BlockquoteIcon, BlockquotePropsContext, BlockquoteRoot, BlocksIcon, BluetoothConnectedIcon, BluetoothIcon, BluetoothOffIcon, BluetoothSearchingIcon, BoldIcon, BoltIcon, BombIcon, BoneIcon, BookAIcon, BookAlertIcon, BookAudioIcon, BookCheckIcon, BookCopyIcon, BookDashedIcon, BookDownIcon, BookHeadphonesIcon, BookHeartIcon, BookIcon, BookImageIcon, BookKeyIcon, BookLockIcon, BookMarkedIcon, BookMinusIcon, BookOpenCheckIcon, BookOpenIcon, BookOpenTextIcon, BookPlusIcon, BookSearchIcon, BookTextIcon, BookTypeIcon, BookUp2Icon, BookUpIcon, BookUserIcon, BookXIcon, BookmarkCheckIcon, BookmarkIcon, BookmarkMinusIcon, BookmarkOffIcon, BookmarkPlusIcon, BookmarkXIcon, BoomBoxIcon, BotIcon, BotMessageSquareIcon, BotOffIcon, BottleWineIcon, BowArrowIcon, Box, BoxIcon, BoxesIcon, BracesIcon, BracketsIcon, BrainCircuitIcon, BrainCogIcon, BrainIcon, namespace_exports$7 as Breadcrumb, BreadcrumbEllipsis, BreadcrumbLink, BreadcrumbPropsContext, BreadcrumbRoot, BrickWallFireIcon, BrickWallIcon, BrickWallShieldIcon, BriefcaseBusinessIcon, BriefcaseConveyorBeltIcon, BriefcaseIcon, BriefcaseMedicalIcon, BringToFrontIcon, BroccoliIcon, BrushCleaningIcon, BrushIcon, BubblesIcon, BugIcon, BugOffIcon, BugPlayIcon, Building2Icon, BuildingIcon, BusFrontIcon, BusIcon, Button, namespace_exports$8 as ButtonGroup, ButtonGroupRoot, ButtonPropsContext, COLOR_MODE_STORAGE_KEY, CableCarIcon, CableIcon, CakeIcon, CakeSliceIcon, CalculatorIcon, namespace_exports$9 as Calendar, Calendar1Icon, CalendarArrowDownIcon, CalendarArrowUpIcon, CalendarCheck2Icon, CalendarCheckIcon, CalendarClockIcon, CalendarCogIcon, CalendarContext, CalendarControl, CalendarDaysIcon, CalendarDescendantsContext, CalendarFoldIcon, CalendarHeartIcon, CalendarIcon, CalendarMinus2Icon, CalendarMinusIcon, CalendarMonth, CalendarMonthSelect, CalendarNavigation, CalendarNextButton, CalendarOffIcon, CalendarPlus2Icon, CalendarPlusIcon, CalendarPrevButton, CalendarPropsContext, CalendarRangeIcon, CalendarRoot, CalendarSearchIcon, CalendarSyncIcon, CalendarX2Icon, CalendarXIcon, CalendarYearSelect, CalendarsIcon, CameraIcon, CameraOffIcon, CandyCaneIcon, CandyIcon, CandyOffIcon, CannabisIcon, CannabisOffIcon, Caption, CaptionsIcon, CaptionsOffIcon, CarFrontIcon, CarIcon, CarTaxiFrontIcon, CaravanIcon, namespace_exports$10 as Card, CardBody, CardFooter, CardHeader, CardPropsContext, CardRoot, CardSimIcon, namespace_exports$11 as Carousel, CarouselContext, CarouselIndicator, CarouselIndicators, CarouselItem, CarouselList, CarouselNextTrigger, CarouselPrevTrigger, CarouselPropsContext, CarouselRoot, CarrotIcon, CartesianChart, CaseLowerIcon, CaseSensitiveIcon, CaseUpperIcon, CassetteTapeIcon, CastIcon, CastleIcon, CatIcon, CctvIcon, CctvOffIcon, Center, CenterPropsContext, Chart, ChartAngleAxis, ChartArea, ChartAreaIcon, ChartBar, ChartBarBigIcon, ChartBarDecreasingIcon, ChartBarIcon, ChartBarIncreasingIcon, ChartBarStackedIcon, ChartCandlestickIcon, ChartColumnBigIcon, ChartColumnDecreasingIcon, ChartColumnIcon, ChartColumnIncreasingIcon, ChartColumnStackedIcon, ChartContext, ChartDonut, ChartGanttIcon, ChartGrid, ChartLabel, ChartLabelList, ChartLegend, ChartLine, ChartLineIcon, ChartNetworkIcon, ChartNoAxesColumnDecreasingIcon, ChartNoAxesColumnIcon, ChartNoAxesColumnIncreasingIcon, ChartNoAxesCombinedIcon, ChartNoAxesGanttIcon, ChartPie, ChartPieIcon, ChartPolarGrid, ChartPropsContext, ChartRadar, ChartRadial, ChartRadiusAxis, ChartReferenceLine, ChartScatterIcon, ChartSplineIcon, ChartTooltip, ChartXAxis, ChartYAxis, CheckCheckIcon, CheckIcon, CheckLineIcon, Checkbox, checkbox_card_namespace_exports as CheckboxCard, CheckboxCardAddon, CheckboxCardDescription, checkbox_card_group_namespace_exports as CheckboxCardGroup, CheckboxCardRoot as CheckboxCardGroupItem, CheckboxCardGroupRoot, CheckboxCardLabel, CheckboxCardPropsContext, CheckboxCardRoot, namespace_exports$12 as CheckboxGroup, CheckboxGroupContext, Checkbox as CheckboxGroupItem, CheckboxGroupRoot, CheckboxPropsContext, ChefHatIcon, CherryIcon, ChessBishopIcon, ChessKingIcon, ChessKnightIcon, ChessPawnIcon, ChessQueenIcon, ChessRookIcon, ChevronDownIcon, ChevronFirstIcon, ChevronLastIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, ChevronsDownIcon, ChevronsDownUpIcon, ChevronsLeftIcon, ChevronsLeftRightEllipsisIcon, ChevronsLeftRightIcon, ChevronsRightIcon, ChevronsRightLeftIcon, ChevronsUpDownIcon, ChevronsUpIcon, ChurchIcon, CigaretteIcon, CigaretteOffIcon, CircleAlertIcon, CircleArrowDownIcon, CircleArrowLeftIcon, CircleArrowOutDownLeftIcon, CircleArrowOutDownRightIcon, CircleArrowOutUpLeftIcon, CircleArrowOutUpRightIcon, CircleArrowRightIcon, CircleArrowUpIcon, CircleCheckBigIcon, CircleCheckIcon, CircleChevronDownIcon, CircleChevronLeftIcon, CircleChevronRightIcon, CircleChevronUpIcon, CircleDashedIcon, CircleDivideIcon, CircleDollarSignIcon, CircleDotDashedIcon, CircleDotIcon, CircleEllipsisIcon, CircleEqualIcon, CircleFadingArrowUpIcon, CircleFadingPlusIcon, CircleGaugeIcon, CircleIcon, CircleMinusIcon, CircleOffIcon, CircleParkingIcon, CircleParkingOffIcon, CirclePauseIcon, CirclePercentIcon, CirclePileIcon, CirclePlayIcon, CirclePlusIcon, CirclePoundSterlingIcon, CirclePowerIcon, namespace_exports$13 as CircleProgress, CircleProgressLabel, CircleProgressPropsContext, CircleProgressRoot, CircleQuestionMarkIcon, CircleSlash2Icon, CircleSlashIcon, CircleSmallIcon, CircleStarIcon, CircleStopIcon, CircleUserIcon, CircleUserRoundIcon, CircleXIcon, CircuitBoardIcon, CitrusIcon, ClapperboardIcon, ClientOnly, ClipboardCheckIcon, ClipboardClockIcon, ClipboardCopyIcon, ClipboardIcon, ClipboardListIcon, ClipboardMinusIcon, ClipboardPasteIcon, ClipboardPenIcon, ClipboardPenLineIcon, ClipboardPlusIcon, ClipboardTypeIcon, ClipboardXIcon, Clock10Icon, Clock11Icon, Clock12Icon, Clock1Icon, Clock2Icon, Clock3Icon, Clock4Icon, Clock5Icon, Clock6Icon, Clock7Icon, Clock8Icon, Clock9Icon, ClockAlertIcon, ClockArrowDownIcon, ClockArrowUpIcon, ClockCheckIcon, ClockFadingIcon, ClockIcon, ClockPlusIcon, CloseButton, CloseButtonPropsContext, ClosedCaptionIcon, CloudAlertIcon, CloudBackupIcon, CloudCheckIcon, CloudCogIcon, CloudDownloadIcon, CloudDrizzleIcon, CloudFogIcon, CloudHailIcon, CloudIcon, CloudLightningIcon, CloudMoonIcon, CloudMoonRainIcon, CloudOffIcon, CloudRainIcon, CloudRainWindIcon, CloudSnowIcon, CloudSunIcon, CloudSunRainIcon, CloudSyncIcon, CloudUploadIcon, CloudyIcon, CloverIcon, ClubIcon, Code, CodeIcon, CodePropsContext, CodeXmlIcon, CoffeeIcon, CogIcon, CoinsIcon, Col, Colgroup, Collapse, CollapsePropsContext, ColorModeContext, ColorModeProvider, ColorModeScript, ColorPicker, ColorPickerPropsContext, ColorSchemeContext, namespace_exports$14 as ColorSelector, ColorSelectorAlphaSlider, ColorSelectorColorSwatchGroup, ColorSelectorColorSwatchGroupLabel, ColorSelectorColorSwatchItem, ColorSelectorEyeDropper, ColorSelectorHueSlider, ColorSelectorPropsContext, ColorSelectorRoot, ColorSelectorSaturationSlider, ColorSwatch, ColorSwatchGroup, ColorSwatchPropsContext, Columns2Icon, Columns3CogIcon, Columns3Icon, Columns4Icon, CombineIcon, ComboboxContext, ComboboxDescendantsContext, ComboboxGroupContext, CommandIcon, CompassIcon, ComponentIcon, composed_chart_namespace_exports as ComposedChart, ComputerIcon, ConciergeBellIcon, ConeIcon, ConstructionIcon, ContactIcon, ContactRoundIcon, namespace_exports$15 as Container, ContainerBody, ContainerFooter, ContainerHeader, ContainerIcon, ContainerPropsContext, ContainerRoot, ContrastIcon, CookieIcon, CookingPotIcon, CopyCheckIcon, CopyIcon, CopyMinusIcon, CopyPlusIcon, CopySlashIcon, CopyXIcon, CopyleftIcon, CopyrightIcon, CornerDownLeftIcon, CornerDownRightIcon, CornerLeftDownIcon, CornerLeftUpIcon, CornerRightDownIcon, CornerRightUpIcon, CornerUpLeftIcon, CornerUpRightIcon, CpuIcon, CreativeCommonsIcon, CreditCardIcon, CroissantIcon, CropIcon, CrossIcon, CrosshairIcon, CrownIcon, CuboidIcon, CupSodaIcon, CurrencyIcon, CylinderIcon, DEFAULT_DIRECTION, DEFAULT_FIRST_DAY_OF_WEEK, DEFAULT_HOLIDAYS, DEFAULT_LAYERS, DEFAULT_LOCALE, DEFAULT_MAX_DATE, DEFAULT_MIN_DATE, DEFAULT_VAR_PREFIX, DEFAULT_WEEKEND_DAYS, DamIcon, namespace_exports$16 as DataList, DataListDescription, DataListItem, DataListPropsContext, DataListRoot, DataListTerm, DatabaseBackupIcon, DatabaseIcon, DatabaseSearchIcon, DatabaseZapIcon, DatePicker, DatePickerPropsContext, DecimalsArrowLeftIcon, DecimalsArrowRightIcon, DeleteIcon, DessertIcon, DiameterIcon, DiamondIcon, DiamondMinusIcon, DiamondPercentIcon, DiamondPlusIcon, Dice1Icon, Dice2Icon, Dice3Icon, Dice4Icon, Dice5Icon, Dice6Icon, DicesIcon, DiffIcon, Disc2Icon, Disc3Icon, DiscAlbumIcon, DiscIcon, DivideIcon, DnaIcon, DnaOffIcon, DockIcon, DogIcon, DollarSignIcon, donut_chart_namespace_exports as DonutChart, DonutIcon, DoorClosedIcon, DoorClosedLockedIcon, DoorOpenIcon, DotIcon, DownloadIcon, DraftingCompassIcon, DramaIcon, namespace_exports$17 as Drawer, DrawerBody, DrawerCloseButton, DrawerCloseTrigger, DrawerContent, DrawerDragBar, DrawerFooter, DrawerHeader, DrawerOpenTrigger, DrawerOverlay, DrawerPropsContext, DrawerRoot, DrawerTitle, DrillIcon, DroneIcon, DropletIcon, DropletOffIcon, DropletsIcon, namespace_exports$18 as Dropzone, DropzoneAccept, DropzoneDescription, DropzoneIcon, DropzoneIdle, DropzonePropsContext, DropzoneReject, DropzoneRoot, DropzoneTitle, DrumIcon, DrumstickIcon, DumbbellIcon, EarIcon, EarOffIcon, EarthIcon, EarthLockIcon, EclipseIcon, namespace_exports$19 as Editable, EditableCancelTrigger, EditableContext, EditableControl, EditableEditTrigger, EditableInput, EditablePreview, EditablePropsContext, EditableRoot, EditableSubmitTrigger, EditableTextarea, EggFriedIcon, EggIcon, EggOffIcon, EllipseIcon, EllipsisIcon, EllipsisVerticalIcon, Em, EmPropsContext, namespace_exports$20 as EmptyState, EmptyStateContent, EmptyStateDescription, EmptyStateIndicator, EmptyStatePropsContext, EmptyStateRoot, EmptyStateTitle, EnvironmentProvider, EqualApproximatelyIcon, EqualIcon, EqualNotIcon, EraserIcon, EthernetPortIcon, EuroIcon, EvChargerIcon, ExpandIcon, ExternalLinkIcon, EyeClosedIcon, EyeIcon, EyeOffIcon, FactoryIcon, Fade, FadePropsContext, FadeScale, FanIcon, FastForwardIcon, FeatherIcon, FenceIcon, FerrisWheelIcon, namespace_exports$21 as Field, FieldErrorMessage, FieldHelperMessage, FieldLabel, FieldPropsContext, FieldRoot, namespace_exports$22 as Fieldset, FieldsetContent, FieldsetContext, FieldsetErrorMessage, FieldsetHeader, FieldsetHelperMessage, FieldsetLegend, FieldsetPropsContext, FieldsetRoot, FileArchiveIcon, FileAxis3dIcon, FileBadgeIcon, FileBoxIcon, FileBracesCornerIcon, FileBracesIcon, FileButton, FileButtonPropsContext, FileChartColumnIcon, FileChartColumnIncreasingIcon, FileChartLineIcon, FileChartPieIcon, FileCheckCornerIcon, FileCheckIcon, FileClockIcon, FileCodeCornerIcon, FileCodeIcon, FileCogIcon, FileDiffIcon, FileDigitIcon, FileDownIcon, FileExclamationPointIcon, FileHeadphoneIcon, FileHeartIcon, FileIcon, FileImageIcon, FileInput, FileInputIcon, FileInputPropsContext, FileKeyIcon, FileLockIcon, FileMinusCornerIcon, FileMinusIcon, FileMusicIcon, FileOutputIcon, FilePenIcon, FilePenLineIcon, FilePlayIcon, FilePlusCornerIcon, FilePlusIcon, FileQuestionMarkIcon, FileScanIcon, FileSearchCornerIcon, FileSearchIcon, FileSignalIcon, FileSlidersIcon, FileSpreadsheetIcon, FileStackIcon, FileSymlinkIcon, FileTerminalIcon, FileTextIcon, FileTypeCornerIcon, FileTypeIcon, FileUpIcon, FileUserIcon, FileVideoCameraIcon, FileVolumeIcon, FileXCornerIcon, FileXIcon, FilesIcon, FilmIcon, FingerprintPatternIcon, FireExtinguisherIcon, FishIcon, FishOffIcon, FishSymbolIcon, FishingHookIcon, FishingRodIcon, FlagIcon, FlagOffIcon, FlagTriangleLeftIcon, FlagTriangleRightIcon, FlameIcon, FlameKindlingIcon, FlashlightIcon, FlashlightOffIcon, FlaskConicalIcon, FlaskConicalOffIcon, FlaskRoundIcon, Flex, FlexPropsContext, Flip, FlipHorizontal2Icon, FlipPropsContext, FlipVertical2Icon, Float, FloatPropsContext, Flower2Icon, FlowerIcon, FocusIcon, FocusLock, FoldHorizontalIcon, FoldVerticalIcon, FolderArchiveIcon, FolderBookmarkIcon, FolderCheckIcon, FolderClockIcon, FolderClosedIcon, FolderCodeIcon, FolderCogIcon, FolderDotIcon, FolderDownIcon, FolderGit2Icon, FolderGitIcon, FolderHeartIcon, FolderIcon, FolderInputIcon, FolderKanbanIcon, FolderKeyIcon, FolderLockIcon, FolderMinusIcon, FolderOpenDotIcon, FolderOpenIcon, FolderOutputIcon, FolderPenIcon, FolderPlusIcon, FolderRootIcon, FolderSearch2Icon, FolderSearchIcon, FolderSymlinkIcon, FolderSyncIcon, FolderTreeIcon, FolderUpIcon, FolderXIcon, FoldersIcon, FootprintsIcon, For, ForkliftIcon, namespace_exports$23 as Form, FormBody, FormContext, FormDescription, FormFooter, FormGroup, FormHeader, FormIcon, FormPropsContext, FormRoot, FormSubmitButton, FormTitle, namespace_exports$24 as Format, FormatByte, FormatBytePropsContext, FormatDateTime, FormatDateTimePropsContext, FormatNumber, FormatNumberPropsContext, ForwardIcon, FrameIcon, FrownIcon, FuelIcon, FullscreenIcon, FunnelIcon, FunnelPlusIcon, FunnelXIcon, GalleryHorizontalEndIcon, GalleryHorizontalIcon, GalleryThumbnailsIcon, GalleryVerticalEndIcon, GalleryVerticalIcon, Gamepad2Icon, GamepadDirectionalIcon, GamepadIcon, GaugeIcon, GavelIcon, GemIcon, GeorgianLariIcon, GhostIcon, GiftIcon, GitBranchIcon, GitBranchMinusIcon, GitBranchPlusIcon, GitCommitHorizontalIcon, GitCommitVerticalIcon, GitCompareArrowsIcon, GitCompareIcon, GitForkIcon, GitGraphIcon, GitMergeConflictIcon, GitMergeIcon, GitPullRequestArrowIcon, GitPullRequestClosedIcon, GitPullRequestCreateArrowIcon, GitPullRequestCreateIcon, GitPullRequestDraftIcon, GitPullRequestIcon, GlassWaterIcon, GlassesIcon, GlobalStyles, GlobeCheckIcon, GlobeIcon, GlobeLockIcon, GlobeOffIcon, GlobeXIcon, GoalIcon, GpuIcon, GraduationCapIcon, GrapeIcon, Grid, Grid2x2CheckIcon, Grid2x2Icon, Grid2x2PlusIcon, Grid2x2XIcon, Grid3x2Icon, Grid3x3Icon, GridItem, GridItemPropsContext, GridPropsContext, GripHorizontalIcon, GripIcon, GripVerticalIcon, Group, GroupIcon, GroupPropsContext, GuitarIcon, HStack, HStackPropsContext, HamIcon, HamburgerIcon, HammerIcon, HandCoinsIcon, HandFistIcon, HandGrabIcon, HandHeartIcon, HandHelpingIcon, HandIcon, HandMetalIcon, HandPlatterIcon, HandbagIcon, HandshakeIcon, HardDriveDownloadIcon, HardDriveIcon, HardDriveUploadIcon, HardHatIcon, HashIcon, HatGlassesIcon, HazeIcon, HdIcon, HdmiPortIcon, Heading, Heading1Icon, Heading2Icon, Heading3Icon, Heading4Icon, Heading5Icon, Heading6Icon, HeadingIcon, HeadingPropsContext, HeadphoneOffIcon, HeadphonesIcon, HeadsetIcon, HeartCrackIcon, HeartHandshakeIcon, HeartIcon, HeartMinusIcon, HeartOffIcon, HeartPlusIcon, HeartPulseIcon, HeartXIcon, HeaterIcon, HelicopterIcon, HexagonIcon, Highlight, HighlighterIcon, HistoryIcon, HopIcon, HopOffIcon, HospitalIcon, HotelIcon, HourglassIcon, HouseHeartIcon, HouseIcon, HousePlugIcon, HousePlusIcon, HouseWifiIcon, namespace_exports$25 as HueSlider, HueSliderOverlay, HueSliderPropsContext, HueSliderRoot, HueSliderThumb, HueSliderTrack, I18nContext, I18nProvider, IceCreamBowlIcon, IceCreamConeIcon, Icon, IconButton, IconButtonPropsContext, IconPropsContext, IdCardIcon, IdCardLanyardIcon, Image, ImageDownIcon, ImageIcon, ImageMinusIcon, ImageOffIcon, ImagePlayIcon, ImagePlusIcon, ImagePropsContext, ImageUpIcon, ImageUpscaleIcon, ImagesIcon, Image as Img, ImagePropsContext as ImgPropsContext, ImportIcon, InboxIcon, IndianRupeeIcon, Indicator, IndicatorPropsContext, InfiniteScrollArea, InfiniteScrollAreaPropsContext, InfinityIcon, InfoIcon, Input, InputAddon, InputAddonPropsContext, InputElement, InputElementPropsContext, namespace_exports$26 as InputGroup, InputGroupRoot, InputPropsContext, InspectionPanelIcon, ItalicIcon, IterationCcwIcon, IterationCwIcon, JapaneseYenIcon, JoystickIcon, KanbanIcon, KayakIcon, Kbd, KbdPropsContext, KeyIcon, KeyRoundIcon, KeySquareIcon, KeyboardIcon, KeyboardMusicIcon, KeyboardOffIcon, LOCALES, LampCeilingIcon, LampDeskIcon, LampFloorIcon, LampIcon, LampWallDownIcon, LampWallUpIcon, LandPlotIcon, LandmarkIcon, LanguagesIcon, LaptopIcon, LaptopMinimalCheckIcon, LaptopMinimalIcon, LassoIcon, LassoSelectIcon, LaughIcon, Layers2Icon, LayersIcon, LayersMinusIcon, LayersPlusIcon, LayoutDashboardIcon, LayoutGridIcon, LayoutListIcon, LayoutPanelLeftIcon, LayoutPanelTopIcon, LayoutTemplateIcon, LeafIcon, LeafyGreenIcon, LecternIcon, LensConcaveIcon, LensConvexIcon, LibraryBigIcon, LibraryIcon, LifeBuoyIcon, LigatureIcon, LightbulbIcon, LightbulbOffIcon, line_chart_namespace_exports as LineChart, LineDotRightHorizontalIcon, LineSquiggleIcon, LineStyleIcon, Link, Link2Icon, Link2OffIcon, namespace_exports$27 as LinkBox, LinkBoxOverlay, LinkBoxPropsContext, LinkBoxRoot, LinkIcon, LinkPropsContext, namespace_exports$28 as List, ListCheckIcon, ListChecksIcon, ListChevronsDownUpIcon, ListChevronsUpDownIcon, ListCollapseIcon, ListEndIcon, ListFilterIcon, ListFilterPlusIcon, ListIcon, ListIndentDecreaseIcon, ListIndentIncreaseIcon, ListItem, ListItemIcon, ListMinusIcon, ListMusicIcon, ListOrderedIcon, ListPlusIcon, ListPropsContext, ListRestartIcon, ListRoot, ListStartIcon, ListTodoIcon, ListTreeIcon, ListVideoIcon, ListXIcon, LoaderCircleIcon, LoaderIcon, LoaderPinwheelIcon, namespace_exports$29 as Loading, LoadingPropsContext, LoadingProvider, LocateFixedIcon, LocateIcon, LocateOffIcon, LockIcon, LockKeyholeIcon, LockKeyholeOpenIcon, LockOpenIcon, LogInIcon, LogOutIcon, LogsIcon, LollipopIcon, LucideIcon, LuggageIcon, MagnetIcon, MailCheckIcon, MailIcon, MailMinusIcon, MailOpenIcon, MailPlusIcon, MailQuestionMarkIcon, MailSearchIcon, MailWarningIcon, MailXIcon, MailboxIcon, MailsIcon, MainMenuContext, MapIcon, MapMinusIcon, MapPinCheckIcon, MapPinCheckInsideIcon, MapPinHouseIcon, MapPinIcon, MapPinMinusIcon, MapPinMinusInsideIcon, MapPinOffIcon, MapPinPenIcon, MapPinPlusIcon, MapPinPlusInsideIcon, MapPinSearchIcon, MapPinXIcon, MapPinXInsideIcon, MapPinnedIcon, MapPlusIcon, Mark, MarkPropsContext, MarsIcon, MarsStrokeIcon, MartiniIcon, Maximize2Icon, MaximizeIcon, MedalIcon, MegaphoneIcon, MegaphoneOffIcon, MehIcon, MemoryStickIcon, namespace_exports$30 as Menu, MenuAnchor, MenuCommand, MenuContent, MenuContext, MenuContextTrigger, MenuDescendantsContext, MenuFooter, MenuGroup, MenuGroupContext, MenuHeader, MenuIcon, MenuIndicator, MenuItem, MenuLabel, MenuOptionGroup, MenuOptionGroupContext, MenuOptionItem, MenuPropsContext, MenuRoot, MenuSeparator, MenuTrigger, MergeIcon, MessageCircleCheckIcon, MessageCircleCodeIcon, MessageCircleDashedIcon, MessageCircleHeartIcon, MessageCircleIcon, MessageCircleMoreIcon, MessageCircleOffIcon, MessageCirclePlusIcon, MessageCircleQuestionMarkIcon, MessageCircleReplyIcon, MessageCircleWarningIcon, MessageCircleXIcon, MessageSquareCheckIcon, MessageSquareCodeIcon, MessageSquareDashedIcon, MessageSquareDiffIcon, MessageSquareDotIcon, MessageSquareHeartIcon, MessageSquareIcon, MessageSquareLockIcon, MessageSquareMoreIcon, MessageSquareOffIcon, MessageSquarePlusIcon, MessageSquareQuoteIcon, MessageSquareReplyIcon, MessageSquareShareIcon, MessageSquareTextIcon, MessageSquareWarningIcon, MessageSquareXIcon, MessagesSquareIcon, MetronomeIcon, MicIcon, MicOffIcon, MicVocalIcon, MicrochipIcon, MicroscopeIcon, MicrowaveIcon, MilestoneIcon, MilkIcon, MilkOffIcon, Minimize2Icon, MinimizeIcon, MinusIcon, MirrorRectangularIcon, MirrorRoundIcon, namespace_exports$31 as Modal, ModalBody, ModalCloseButton, ModalCloseTrigger, ModalContent, ModalFooter, ModalHeader, ModalOpenTrigger, ModalOverlay, ModalPropsContext, ModalRoot, ModalTitle, MonitorCheckIcon, MonitorCloudIcon, MonitorCogIcon, MonitorDotIcon, MonitorDownIcon, MonitorIcon, MonitorOffIcon, MonitorPauseIcon, MonitorPlayIcon, MonitorSmartphoneIcon, MonitorSpeakerIcon, MonitorStopIcon, MonitorUpIcon, MonitorXIcon, MoonIcon, MoonStarIcon, Motion, MotorbikeIcon, MountainIcon, MountainSnowIcon, MouseIcon, MouseLeftIcon, MouseOffIcon, MousePointer2Icon, MousePointer2OffIcon, MousePointerBanIcon, MousePointerClickIcon, MousePointerIcon, MouseRightIcon, Move3dIcon, MoveDiagonal2Icon, MoveDiagonalIcon, MoveDownIcon, MoveDownLeftIcon, MoveDownRightIcon, MoveHorizontalIcon, MoveIcon, MoveLeftIcon, MoveRightIcon, MoveUpIcon, MoveUpLeftIcon, MoveUpRightIcon, MoveVerticalIcon, Music2Icon, Music3Icon, Music4Icon, MusicIcon, namespace_exports$32 as NativeAccordion, NativeAccordionButton, NativeAccordionContext, NativeAccordionIcon, NativeAccordionItem, NativeAccordionPanel, NativeAccordionPropsContext, NativeAccordionRoot, namespace_exports$33 as NativePopover, NativePopoverAnchor, NativePopoverBody, NativePopoverCloseTrigger, NativePopoverContent, NativePopoverFooter, NativePopoverHeader, NativePopoverPropsContext, NativePopoverRoot, NativePopoverTrigger, namespace_exports$34 as NativeSelect, NativeSelectGroup, NativeSelectOption, NativeSelectPropsContext, NativeSelectRoot, NativeSelectSeparator, namespace_exports$35 as NativeTable, NativeTablePropsContext, NativeTableRoot, Navigation2Icon, Navigation2OffIcon, NavigationIcon, NavigationOffIcon, NetworkIcon, NewspaperIcon, NfcIcon, NonBinaryIcon, NotebookIcon, NotebookPenIcon, NotebookTabsIcon, NotebookTextIcon, NotepadTextDashedIcon, NotepadTextIcon, NoticeProvider, NumberInput, NumberInputPropsContext, NutIcon, NutOffIcon, OctagonAlertIcon, OctagonIcon, OctagonMinusIcon, OctagonPauseIcon, OctagonXIcon, OmegaIcon, OptionIcon, OrbitIcon, OrigamiIcon, Package2Icon, PackageCheckIcon, PackageIcon, PackageMinusIcon, PackageOpenIcon, PackagePlusIcon, PackageSearchIcon, PackageXIcon, namespace_exports$36 as Pagination, PaginationContext, PaginationEndTrigger, PaginationItem, PaginationItems, PaginationNextTrigger, PaginationPrevTrigger, PaginationPropsContext, PaginationRoot, PaginationStartTrigger, PaginationText, PaintBucketIcon, PaintRollerIcon, PaintbrushIcon, PaintbrushVerticalIcon, PaletteIcon, PandaIcon, PanelBottomCloseIcon, PanelBottomDashedIcon, PanelBottomIcon, PanelBottomOpenIcon, PanelLeftCloseIcon, PanelLeftDashedIcon, PanelLeftIcon, PanelLeftOpenIcon, PanelLeftRightDashedIcon, PanelRightCloseIcon, PanelRightDashedIcon, PanelRightIcon, PanelRightOpenIcon, PanelTopBottomDashedIcon, PanelTopCloseIcon, PanelTopDashedIcon, PanelTopIcon, PanelTopOpenIcon, PanelsLeftBottomIcon, PanelsRightBottomIcon, PanelsTopLeftIcon, PaperclipIcon, ParasolIcon, ParenthesesIcon, ParkingMeterIcon, PartyPopperIcon, PasswordInput, PasswordInputPropsContext, PauseIcon, PawPrintIcon, PcCaseIcon, PenIcon, PenLineIcon, PenOffIcon, PenToolIcon, PencilIcon, PencilLineIcon, PencilOffIcon, PencilRulerIcon, PentagonIcon, PercentIcon, PersonStandingIcon, PhilippinePesoIcon, PhoneCallIcon, PhoneForwardedIcon, PhoneIcon, PhoneIncomingIcon, PhoneMissedIcon, PhoneOffIcon, PhoneOutgoingIcon, PiIcon, PianoIcon, PickaxeIcon, Picture, PictureInPicture2Icon, PictureInPictureIcon, pie_chart_namespace_exports as PieChart, PiggyBankIcon, PilcrowIcon, PilcrowLeftIcon, PilcrowRightIcon, PillBottleIcon, PillIcon, PinIcon, namespace_exports$37 as PinInput, PinInputDescendantsContext, PinInputField, PinInputPropsContext, PinInputRoot, PinOffIcon, PipetteIcon, PizzaIcon, PlaneIcon, PlaneLandingIcon, PlaneTakeoffIcon, PlayIcon, PlayOffIcon, Plug2Icon, PlugIcon, PlugZapIcon, PlusIcon, PocketKnifeIcon, PodcastIcon, PointerIcon, PointerOffIcon, PolarChart, PopcornIcon, namespace_exports$38 as Popover, PopoverAnchor, PopoverBody, PopoverCloseTrigger, PopoverContent, PopoverFooter, PopoverHeader, PopoverPropsContext, PopoverRoot, PopoverTrigger, PopsicleIcon, Portal, PoundSterlingIcon, PowerIcon, PowerOffIcon, PresentationIcon, PrinterCheckIcon, PrinterIcon, PrinterXIcon, Progress, ProgressPropsContext, ProjectorIcon, ProportionsIcon, PuzzleIcon, PyramidIcon, namespace_exports$39 as QrCode, QrCodeFrame, QrCodeIcon, QrCodeOverlay, QrCodePattern, QrCodePropsContext, QrCodeRoot, QuoteIcon, RabbitIcon, radar_chart_namespace_exports as RadarChart, RadarIcon, radial_chart_namespace_exports as RadialChart, RadiationIcon, RadicalIcon, Radio, radio_card_namespace_exports as RadioCard, RadioCardAddon, RadioCardDescription, radio_card_group_namespace_exports as RadioCardGroup, RadioCardRoot as RadioCardGroupItem, RadioCardGroupRoot, RadioCardLabel, RadioCardPropsContext, RadioCardRoot, namespace_exports$40 as RadioGroup, RadioGroupContext, Radio as RadioGroupItem, RadioGroupRoot, RadioIcon, RadioOffIcon, RadioPropsContext, RadioReceiverIcon, RadioTowerIcon, RadiusIcon, RainbowIcon, RatIcon, Rating, RatingContext, RatioIcon, ReceiptCentIcon, ReceiptEuroIcon, ReceiptIcon, ReceiptIndianRupeeIcon, ReceiptJapaneseYenIcon, ReceiptPoundSterlingIcon, ReceiptRussianRubleIcon, ReceiptSwissFrancIcon, ReceiptTextIcon, ReceiptTurkishLiraIcon, RectangleCircleIcon, RectangleEllipsisIcon, RectangleGogglesIcon, RectangleHorizontalIcon, RectangleVerticalIcon, RecycleIcon, Redo2Icon, RedoDotIcon, RedoIcon, RefreshCcwDotIcon, RefreshCcwIcon, RefreshCwIcon, RefreshCwOffIcon, RefrigeratorIcon, RegexIcon, RemoveFormattingIcon, namespace_exports$41 as Reorder, ReorderContext, ReorderItem, ReorderItemContext, ReorderPropsContext, ReorderRoot, ReorderTrigger, Repeat1Icon, Repeat2Icon, RepeatIcon, RepeatOffIcon, ReplaceAllIcon, ReplaceIcon, ReplyAllIcon, ReplyIcon, namespace_exports$42 as Resizable, ResizableContext, ResizableItem, ResizablePropsContext, ResizableRoot, ResizableTrigger, RewindIcon, RibbonIcon, Ripple, RipplePropsContext, RoadIcon, RocketIcon, RockingChairIcon, RollerCoasterIcon, RoseIcon, Rotate, Rotate3dIcon, RotateCcwIcon, RotateCcwKeyIcon, RotateCcwSquareIcon, RotateCwIcon, RotateCwSquareIcon, RotatePropsContext, RouteIcon, RouteOffIcon, RouterIcon, Rows2Icon, Rows3Icon, Rows4Icon, RssIcon, RulerDimensionLineIcon, RulerIcon, RussianRubleIcon, SailboatIcon, SaladIcon, SandwichIcon, SatelliteDishIcon, SatelliteIcon, namespace_exports$43 as SaturationSlider, SaturationSliderPropsContext, SaturationSliderRoot, SaturationSliderThumb, SaturationSliderTrack, SaudiRiyalIcon, SaveAllIcon, SaveIcon, SaveOffIcon, Scale3dIcon, ScaleIcon, ScalingIcon, ScanBarcodeIcon, ScanEyeIcon, ScanFaceIcon, ScanHeartIcon, ScanIcon, ScanLineIcon, ScanQrCodeIcon, ScanSearchIcon, ScanTextIcon, SchoolIcon, ScissorsIcon, ScissorsLineDashedIcon, ScooterIcon, ScreenShareIcon, ScreenShareOffIcon, ScrollArea, ScrollAreaPropsContext, ScrollIcon, ScrollTextIcon, SearchAlertIcon, SearchCheckIcon, SearchCodeIcon, SearchIcon, SearchSlashIcon, SearchXIcon, SectionIcon, namespace_exports$44 as SegmentedControl, SegmentedControlContext, SegmentedControlDescendantsContext, SegmentedControlItem, SegmentedControlPropsContext, SegmentedControlRoot, namespace_exports$45 as Select, SelectContext, SelectGroup, SelectLabel, SelectOption, SelectPropsContext, SelectRoot, SelectSeparator, SendHorizontalIcon, SendIcon, SendToBackIcon, Separator, SeparatorHorizontalIcon, SeparatorPropsContext, SeparatorVerticalIcon, ServerCogIcon, ServerCrashIcon, ServerIcon, ServerOffIcon, Settings2Icon, SettingsIcon, ShapesIcon, Share2Icon, ShareIcon, SheetIcon, ShellIcon, ShelvingUnitIcon, ShieldAlertIcon, ShieldBanIcon, ShieldCheckIcon, ShieldCogCornerIcon, ShieldCogIcon, ShieldEllipsisIcon, ShieldHalfIcon, ShieldIcon, ShieldMinusIcon, ShieldOffIcon, ShieldPlusIcon, ShieldQuestionMarkIcon, ShieldUserIcon, ShieldXIcon, ShipIcon, ShipWheelIcon, ShirtIcon, ShoppingBagIcon, ShoppingBasketIcon, ShoppingCartIcon, ShovelIcon, Show, ShowerHeadIcon, ShredderIcon, ShrimpIcon, ShrinkIcon, ShrubIcon, ShuffleIcon, namespace_exports$46 as Sidebar, SidebarContent, SidebarContext, SidebarDescendantsContext, SidebarFooter, SidebarGroup, SidebarGroupContent, SidebarGroupLabel, SidebarHandle, SidebarHeader, SidebarItem, SidebarItemContent, SidebarItemContext, SidebarItemEndElement, SidebarItemIndicator, SidebarItemLabel, SidebarItemLink, SidebarItemStartElement, SidebarItemTrigger, SidebarMainPanel, SidebarMenu, SidebarMenuButton, SidebarPropsContext, SidebarRoot, SidebarSidePanel, SidebarTrigger, SigmaIcon, SignalHighIcon, SignalIcon, SignalLowIcon, SignalMediumIcon, SignalZeroIcon, SignatureIcon, SignpostBigIcon, SignpostIcon, SimpleGrid, SimpleGridPropsContext, SirenIcon, Skeleton, SkeletonCircle, SkeletonPropsContext, SkeletonText, SkipBackIcon, SkipForwardIcon, SkullIcon, SlashIcon, SliceIcon, Slide, SlideFade, SlideFadePropsContext, SlidePropsContext, namespace_exports$47 as Slider, SliderMark, SliderMarks, SliderPropsContext, SliderRange, SliderRoot, SliderThumb, SliderThumbs, SliderTrack, SlidersHorizontalIcon, SlidersVerticalIcon, Slot, Slottable, SmartphoneChargingIcon, SmartphoneIcon, SmartphoneNfcIcon, SmileIcon, SmilePlusIcon, Snacks, SnailIcon, SnowflakeIcon, SoapDispenserDropletIcon, SofaIcon, SolarPanelIcon, SoupIcon, Source, SpaceIcon, Spacer, SpadeIcon, SparkleIcon, SparklesIcon, SpeakerIcon, SpeechIcon, SpellCheck2Icon, SpellCheckIcon, SplineIcon, SplinePointerIcon, SplitIcon, SpoolIcon, SportShoeIcon, SpotlightIcon, SprayCanIcon, SproutIcon, SquareActivityIcon, SquareArrowDownIcon, SquareArrowDownLeftIcon, SquareArrowDownRightIcon, SquareArrowLeftIcon, SquareArrowOutDownLeftIcon, SquareArrowOutDownRightIcon, SquareArrowOutUpLeftIcon, SquareArrowOutUpRightIcon, SquareArrowRightEnterIcon, SquareArrowRightExitIcon, SquareArrowRightIcon, SquareArrowUpIcon, SquareArrowUpLeftIcon, SquareArrowUpRightIcon, SquareAsteriskIcon, SquareBottomDashedScissorsIcon, SquareCenterlineDashedHorizontalIcon, SquareCenterlineDashedVerticalIcon, SquareChartGanttIcon, SquareCheckBigIcon, SquareCheckIcon, SquareChevronDownIcon, SquareChevronLeftIcon, SquareChevronRightIcon, SquareChevronUpIcon, SquareCodeIcon, SquareDashedBottomCodeIcon, SquareDashedBottomIcon, SquareDashedIcon, SquareDashedKanbanIcon, SquareDashedMousePointerIcon, SquareDashedTextIcon, SquareDashedTopSolidIcon, SquareDivideIcon, SquareDotIcon, SquareEqualIcon, SquareFunctionIcon, SquareIcon, SquareKanbanIcon, SquareLibraryIcon, SquareMIcon, SquareMenuIcon, SquareMinusIcon, SquareMousePointerIcon, SquareParkingIcon, SquareParkingOffIcon, SquarePauseIcon, SquarePenIcon, SquarePercentIcon, SquarePiIcon, SquarePilcrowIcon, SquarePlayIcon, SquarePlusIcon, SquarePowerIcon, SquareRadicalIcon, SquareRoundCornerIcon, SquareScissorsIcon, SquareSigmaIcon, SquareSlashIcon, SquareSplitHorizontalIcon, SquareSplitVerticalIcon, SquareSquareIcon, SquareStackIcon, SquareStarIcon, SquareStopIcon, SquareTerminalIcon, SquareUserIcon, SquareUserRoundIcon, SquareXIcon, SquaresExcludeIcon, SquaresIntersectIcon, SquaresSubtractIcon, SquaresUniteIcon, SquircleDashedIcon, SquircleIcon, SquirrelIcon, Stack, StackPropsContext, StampIcon, StarHalfIcon, StarIcon, StarOffIcon, namespace_exports$48 as Stat, StatHelperMessage, StatIcon, StatLabel, StatPropsContext, StatRoot, StatUnit, StatValue, Status, StatusPropsContext, StepBackIcon, StepForwardIcon, namespace_exports$49 as Steps, StepsContext, StepsDescendantsContext, StepsDescription, StepsIndicator, StepsItem, StepsItemContext, StepsList, StepsNextTrigger, StepsNumber, StepsPrevTrigger, StepsPropsContext, StepsRoot, StepsSeparator, StepsTitle, StethoscopeIcon, StickerIcon, StickyNoteCheckIcon, StickyNoteIcon, StickyNoteMinusIcon, StickyNoteOffIcon, StickyNotePlusIcon, StickyNoteXIcon, StickyNotesIcon, StoneIcon, StoreIcon, StrengthMeter, StrengthMeterPropsContext, StretchHorizontalIcon, StretchVerticalIcon, StrikethroughIcon, SubscriptIcon, SunDimIcon, SunIcon, SunMediumIcon, SunMoonIcon, SunSnowIcon, SunriseIcon, SunsetIcon, SuperscriptIcon, SwatchBookIcon, SwissFrancIcon, Switch, SwitchCameraIcon, SwitchPropsContext, SwordIcon, SwordsIcon, SyringeIcon, SystemProvider, THEME_SCHEME_STORAGE_KEY, TabDescendantsContext, TabPanelDescendantsContext, Table, Table2Icon, TableCellsMergeIcon, TableCellsSplitIcon, TableColumnsSplitIcon, TableIcon, TableOfContentsIcon, TablePropertiesIcon, TablePropsContext, TableRowsSplitIcon, TabletIcon, TabletSmartphoneIcon, TabletsIcon, namespace_exports$50 as Tabs, TabsContext, TabsList, TabsPanel, TabsPanels, TabsPropsContext, TabsRoot, TabsTab, Tag, TagIcon, TagPropsContext, TagsIcon, Tally1Icon, Tally2Icon, Tally3Icon, Tally4Icon, Tally5Icon, TangentIcon, TargetIcon, Tbody, Td, TelescopeIcon, TentIcon, TentTreeIcon, TerminalIcon, TestTubeDiagonalIcon, TestTubeIcon, TestTubesIcon, Text, TextAlignCenterIcon, TextAlignEndIcon, TextAlignJustifyIcon, TextAlignStartIcon, TextCursorIcon, TextCursorInputIcon, TextInitialIcon, TextPropsContext, TextQuoteIcon, TextSearchIcon, TextWrapIcon, Textarea, TextareaPropsContext, Tfoot, Th, Thead, TheaterIcon, ThemeProvider, ThemeSchemeScript, ThermometerIcon, ThermometerSnowflakeIcon, ThermometerSunIcon, ThumbsDownIcon, ThumbsUpIcon, TicketCheckIcon, TicketIcon, TicketMinusIcon, TicketPercentIcon, TicketPlusIcon, TicketSlashIcon, TicketXIcon, TicketsIcon, TicketsPlaneIcon, namespace_exports$51 as Timeline, TimelineConnector, TimelineContent, TimelineDescription, TimelineIcon, TimelineIndicator, TimelineItem, TimelinePropsContext, TimelineRoot, TimelineTitle, TimerIcon, TimerOffIcon, TimerResetIcon, Tip, Toggle, namespace_exports$52 as ToggleGroup, ToggleGroupContext, ToggleGroupRoot, ToggleLeftIcon, TogglePropsContext, ToggleRightIcon, ToiletIcon, ToolCaseIcon, ToolboxIcon, Tooltip, TooltipPropsContext, TornadoIcon, TorusIcon, TouchpadIcon, TouchpadOffIcon, TowelRackIcon, TowerControlIcon, ToyBrickIcon, Tr, TractorIcon, TrafficConeIcon, TrainFrontIcon, TrainFrontTunnelIcon, TrainTrackIcon, TramFrontIcon, TransgenderIcon, Trash2Icon, TrashIcon, namespace_exports$53 as Tree, TreeContext, TreeDeciduousIcon, TreeDescendantsContext, TreeItem, TreeItemContext, TreePalmIcon, TreePineIcon, TreePropsContext, TreeRoot, TreesIcon, TrendingDownIcon, TrendingUpDownIcon, TrendingUpIcon, TriangleAlertIcon, TriangleDashedIcon, TriangleIcon, TriangleRightIcon, TrophyIcon, TruckElectricIcon, TruckIcon, TurkishLiraIcon, TurntableIcon, TurtleIcon, TvIcon, TvMinimalIcon, TvMinimalPlayIcon, TypeIcon, TypeOutlineIcon, UIProvider, UmbrellaIcon, UmbrellaOffIcon, UnderlineIcon, Undo2Icon, UndoDotIcon, UndoIcon, UnfoldHorizontalIcon, UnfoldVerticalIcon, UngroupIcon, UniversityIcon, Unlink2Icon, UnlinkIcon, UnplugIcon, UploadIcon, UsbIcon, UserCheckIcon, UserCogIcon, UserIcon, UserKeyIcon, UserLockIcon, UserMinusIcon, UserPenIcon, UserPlusIcon, UserRoundCheckIcon, UserRoundCogIcon, UserRoundIcon, UserRoundKeyIcon, UserRoundMinusIcon, UserRoundPenIcon, UserRoundPlusIcon, UserRoundSearchIcon, UserRoundXIcon, UserSearchIcon, UserStarIcon, UserXIcon, UsersIcon, UsersRoundIcon, UtensilsCrossedIcon, UtensilsIcon, UtilityPoleIcon, VStack, VStackPropsContext, VanIcon, VariableIcon, VaultIcon, VectorSquareIcon, VeganIcon, VenetianMaskIcon, VenusAndMarsIcon, VenusIcon, VibrateIcon, VibrateOffIcon, VideoIcon, VideoOffIcon, VideotapeIcon, ViewIcon, VisuallyHidden, VisuallyHiddenPropsContext, VoicemailIcon, VolleyballIcon, Volume1Icon, Volume2Icon, VolumeIcon, VolumeOffIcon, VolumeXIcon, VoteIcon, WalletCardsIcon, WalletIcon, WalletMinimalIcon, WallpaperIcon, WandIcon, WandSparklesIcon, WarehouseIcon, WashingMachineIcon, WatchIcon, WavesArrowDownIcon, WavesArrowUpIcon, WavesHorizontalIcon, WavesLadderIcon, WavesVerticalIcon, WaypointsIcon, WebcamIcon, WebcamOffIcon, WebhookIcon, WebhookOffIcon, WeightIcon, WeightTildeIcon, WheatIcon, WheatOffIcon, WholeWordIcon, WifiCogIcon, WifiHighIcon, WifiIcon, WifiLowIcon, WifiOffIcon, WifiPenIcon, WifiSyncIcon, WifiZeroIcon, WindArrowDownIcon, WindIcon, WineIcon, WineOffIcon, WorkflowIcon, WormIcon, Wrap, WrapPropsContext, WrenchIcon, XIcon, XLineTopIcon, ZStack, ZStackPropsContext, ZapIcon, ZapOffIcon, ZodiacAquariusIcon, ZodiacAriesIcon, ZodiacCancerIcon, ZodiacCapricornIcon, ZodiacGeminiIcon, ZodiacLeoIcon, ZodiacLibraIcon, ZodiacOphiuchusIcon, ZodiacPiscesIcon, ZodiacSagittariusIcon, ZodiacScorpioIcon, ZodiacTaurusIcon, ZodiacVirgoIcon, ZoomInIcon, ZoomOutIcon, accordionStyle, actionBarStyle, airyStyle, alertStyle, alphaSliderStyle, animation, animationProperties, areaChartStyle, aspectRatioProperties, aspectRatioStyle, assignRef, atRuleStyles, attributeProperties, attributeSelectors, attributes, autocompleteStyle, avatarStyle, badgeStyle, barChartStyle, bleedStyle, blockquoteStyle, blurProperties, borderProperties, breadcrumbStyle, buttonStyle, calendarStyle, cardStyle, carouselStyle, cartesianChartStyle, centerStyle, chainProps, chartStyle, checkboxCardStyle, checkboxStyle, checkersProps, circleProgressStyle, closeButtonStyle, codeStyle, collapseStyle, colorMix, colorPickerStyle, colorProperties, colorSelectorStyle, colorSwatchStyle, composedChartStyle, conditionProperties, conditionSelectors, conditions, config, containerStyle, createBreakpoints, createColumnHelper, createComboboxChildren, createComboboxItem, createComponent, createContext, createDescendants, createLayers, createShouldForwardProp, createSlotComponent, createStorage, createStorageManager, createStore, createStyled, createSystem, createTransition, createVars, css, cssProps, dataListStyle, datePickerStyle, defaultEnvironment, defaultLayers, defaultSystem, defineComponentSlotStyle, defineComponentStyle, defineConfig, defineSemanticTokens, defineStyles, defineTheme, defineThemeSchemes, defineTokens, display, donutChartStyle, drawerStyle, dropzoneStyle, durationProperties, easingProperties, editableStyle, emStyle, emptyState, extendConfig, extendTheme, extractProps, fadeScaleStyle, fadeScaleVariants, fadeStyle, fadeVariants, fieldStyle, fieldsetStyle, fileButtonStyle, fileInputStyle, findChild, findChildren, flexStyle, flipStyle, floatStyle, focusRingStyle, fontProperties, formStyle, formatByteStyle, formatNumberStyle, getAdjustedMonth, getBreakpointValue, getCSS, getCSSFunction, getClassName, getColorModeValue, getColorSchemeVar, getCondition, getDisplayName, getEndOfWeek, getEventRelatedTarget, getFormatDateTime, getFormatNumber, getInputHeightStyle, getInputPaddingEndResetStyle, getInputPaddingStartResetStyle, getLanguage, getLoadingComponent, getMonthDays, getPreventTransition, getSlotClassName, getStartOfWeek, getStorageScript, getStyle, getValidChildren, getValue, getVar, getVarName, getWeekdays, gradient, gradientProperties, gridItemStyle, gridStyle, groupAttributeProperties, groupAttributeSelectors, groupAttributes, groupStyle, hStackStyle, headingStyle, hueSliderStyle, i18nCache, iconButtonStyle, iconStyle, icons_exports as icons, imageStyle, includesChildren, indicatorStyle, infiniteScrollAreaStyle, injectKeyframes, injectVars, inputAddonStyle, inputElementStyle, inputStyle, isAfterDate, isAfterMonth, isAfterYear, isBeforeDate, isBeforeMonth, isBeforeYear, isCSSFunction, isCSSToken, isCSSVar, isColorScheme, isComposing, isEqualProps, isInRange, isIncludeDates, isLoadingScheme, isRefObject, isSameAfterDate, isSameAfterMonth, isSameAfterYear, isSameBeforeDate, isSameBeforeMonth, isSameBeforeYear, isSameDate, isSameMonth, isSameYear, isSomeDisplayName, isSomeElement, isValidElement, kbdStyle, keyframeProperties, keyframes, lineChartStyle, linkBoxStyle, linkStyle, listStyle, loadingStyle, markStyle, menuStyle, mergeCSS, mergeProps, mergeRefs, mergeSlotCSS, mergeVars, modalStyle, motion, nativeAccordionStyle, nativePopoverStyle, nativeSelectStyle, nativeTableStyle, numberInputStyle, omitChildren, paginationStyle, passwordInputStyle, peerAttributeProperties, peerAttributeSelectors, peerAttributes, pickChildren, pieChartStyle, pinInputStyle, polarChartStyle, popoverProps, popoverStyle, popperProps, progressStyle, pseudoClassProperties, pseudoClassSelectors, pseudoClasses, pseudoElementProperties, pseudoElementSelectors, pseudoElements, pseudoStyles, qrCodeStyle, radarChartStyle, radialChartStyle, radioCardStyle, radioStyle, radiusProperties, ratingStyle, reorderStyle, resetFieldProps, resizableStyle, rotateStyle, runKeyAction, saturationSliderStyle, scrollAreaStyle, segmentedControlStyle, selectStyle, separatorStyle, shadowProperties, shorthandStyles, sidebarStyle, simpleGridStyle, sizeProperties, skeletonStyle, slideFadeStyle, slideFadeVariants, slideStyle, slideVariants, sliderStyle, sortDates, spaceProperties, splitChildren, stackStyle, standardStyles, statStyle, statusStyle, stepsStyle, strengthMeterStyle, styleProperties, styled, styledStyles, styles, switchStyle, tabsStyle, tagStyle, textStyle, textareaStyle, theme, timelineStyle, toggleStyle, tokenToValue, tokenToVar, tooltipProps, tooltipStyle, transformConditionalValue, transformInterpolation, transforms, treeStyle, updateMaybeDateValue, useAccordion, useAccordionContext, useAccordionDescendant, useAccordionDescendants, useAccordionItem, useAccordionItemContext, useAccordionPropsContext, useActionBar, useActionBarPropsContext, useAiryPropsContext, useAlertPropsContext, useAlphaSliderPropsContext, useAngleAxis, useAnimation, useAspectRatioPropsContext, useAsync, useAsyncCallback, useAsyncFunc, useAsyncRetry, useAttributeObserver, useAutocomplete, useAutocompleteContext, useAutocompleteOption, useAutocompletePropsContext, useAutosize, useAvatar, useAvatarGroup, useAvatarPropsContext, useBadgePropsContext, useBleedPropsContext, useBlockquotePropsContext, useBoolean, useBreadcrumb, useBreadcrumbPropsContext, useBreakpoint, useBreakpointEffect, useBreakpointState, useBreakpointValue, useButtonPropsContext, useByteFormat, useCSS, useCalendar, useCalendarContext, useCalendarDay, useCalendarDescendant, useCalendarDescendants, useCalendarProps, useCalendarPropsContext, useCallbackRef, useCardPropsContext, useCarousel, useCarouselContext, useCarouselPropsContext, useCartesianChart, useCenterPropsContext, useChart, useChartArea, useChartBar, useChartContext, useChartGrid, useChartLabel, useChartLabelList, useChartLegend, useChartLine, useChartPie, useChartPieLabel, useChartPieLabelLine, useChartPropsContext, useChartRadar, useChartRadial, useChartReferenceLine, useChartSector, useChartTooltip, useChartXAxis, useChartYAxis, useCheckbox, useCheckboxCardPropsContext, useCheckboxGroup, useCheckboxGroupContext, useCheckboxPropsContext, useCircleProgressPropsContext, useClickable, useClipboard, useCloseButtonPropsContext, useCodePropsContext, useCollapsePropsContext, useColorMode, useColorModeValue, useColorPicker, useColorPickerPropsContext, useColorSchemeContext, useColorSelector, useColorSelectorPropsContext, useColorSwatchPropsContext, useCombobox, useComboboxContext, useComboboxDescendant, useComboboxDescendantRegister, useComboboxDescendants, useComboboxGroup, useComboboxGroupContext, useComboboxItem, useComponentSlotStyle, useComponentStyle, useContainerPropsContext, useControllableEventState, useControllableState, useCounter, useDataListPropsContext, useDatePicker, useDatePickerPropsContext, useDateTimeFormat, useDisclosure, useDrawer, useDrawerPropsContext, useDropzone, useDropzonePropsContext, useDynamicAnimation, useEditable, useEditableContext, useEditablePropsContext, useElementSize, useEmPropsContext, useEmptyStatePropsContext, useEnvironment, useEventListener, useEventListeners, useExtractProps, useEyeDropper, useFadePropsContext, useFieldProps, useFieldPropsContext, useFieldSizing, useFieldsetContext, useFieldsetPropsContext, useFileButton, useFileButtonPropsContext, useFileInput, useFileInputPropsContext, useFindChild, useFindChildren, useFlexPropsContext, useFlipPropsContext, useFloatPropsContext, useFocusOnPointerDown, useFocusOnShow, useFormContext, useFormPropsContext, useFormatByte, useFormatBytePropsContext, useFormatDateTime, useFormatDateTimePropsContext, useFormatNumber, useFormatNumberPropsContext, useGridItemPropsContext, useGridPropsContext, useGroup, useGroupItemProps, useGroupPropsContext, useHStackPropsContext, useHeadingPropsContext, useHighlight, useHover, useHueSliderPropsContext, useI18n, useIconButtonPropsContext, useIconPropsContext, useIdle, useIds, useImagePropsContext, useImagePropsContext as useImgPropsContext, useIncludesChildren, useIndicatorPropsContext, useInfiniteScroll, useInfiniteScrollAreaPropsContext, useInjectVarsIntoCss, useInjectVarsIntoProps, useInputAddonPropsContext, useInputBorder, useInputElementPropsContext, useInputPropsContext, useInterval, useKbdPropsContext, useLazyMount, useLinkBoxPropsContext, useLinkPropsContext, useListPropsContext, useLoading, useLoadingComponent, useLoadingPropsContext, useLocalStorage, useMainMenuContext, useMarkPropsContext, useMediaQuery, useMenu, useMenuContext, useMenuDescendant, useMenuDescendants, useMenuGroup, useMenuGroupContext, useMenuItem, useMenuOptionGroup, useMenuOptionGroupContext, useMenuOptionItem, useMenuPropsContext, useMergeRefs, useModal, useModalPropsContext, useMounted, useNativeAccordion, useNativeAccordionContext, useNativeAccordionItem, useNativeAccordionPropsContext, useNativePopover, useNativePopoverPropsContext, useNativeSelect, useNativeSelectPropsContext, useNativeTablePropsContext, useNotice, useNumberFormat, useNumberInput, useNumberInputPropsContext, useOS, useOmitChildren, useOnline, useOutsideClick, usePagination, usePaginationContext, usePaginationPropsContext, usePanEvent, usePasswordInput, usePasswordInputPropsContext, usePickChildren, usePinInput, usePinInputDescendant, usePinInputDescendants, usePinInputPropsContext, usePolarChart, usePolarGrid, usePopover, usePopoverProps, usePopoverPropsContext, usePopoverStyleProps, usePopper, usePopperProps, usePopupAnimationProps, usePrevious, useProcessing, useProgress, useProgressPropsContext, usePromiseDisclosure, useQrCode, useQrCodePropsContext, useRadio, useRadioCardPropsContext, useRadioGroup, useRadioGroupContext, useRadioPropsContext, useRadiusAxis, useRating, useRatingContext, useRatingItem, useReorder, useReorderContext, useReorderItem, useReorderItemContext, useReorderPropsContext, useResizable, useResizableContext, useResizableItem, useResizableLayout, useResizablePropsContext, useResizableTrigger, useResizeObserver, useRipple, useRipplePropsContext, useRotatePropsContext, useSafeLayoutEffect, useSaturationSlider, useSaturationSliderPropsContext, useScrollArea, useScrollAreaPropsContext, useSegmentedControl, useSegmentedControlContext, useSegmentedControlDescendant, useSegmentedControlDescendants, useSegmentedControlItem, useSegmentedControlPropsContext, useSelect, useSelectContext, useSelectOption, useSelectPropsContext, useSeparatorPropsContext, useSidebar, useSidebarContext, useSidebarDescendant, useSidebarDescendants, useSidebarGroup, useSidebarItem, useSidebarItemContext, useSidebarPropsContext, useSimpleGridPropsContext, useSkeletonPropsContext, useSlideFadePropsContext, useSlidePropsContext, useSlider, useSliderPropsContext, useSnacks, useSplitChildren, useSplitProps, useSsr, useStackPropsContext, useStatPropsContext, useStatusPropsContext, useSteps, useStepsContext, useStepsDescendant, useStepsDescendants, useStepsItem, useStepsItemContext, useStepsPropsContext, useStrengthMeter, useStrengthMeterPropsContext, useSubMenu, useSwitch, useSwitchPropsContext, useSystem, useSystemColorMode, useTab, useTabDescendant, useTabDescendants, useTabPanel, useTabPanelDescendant, useTabPanelDescendants, useTablePropsContext, useTabs, useTabsContext, useTabsPropsContext, useTagPropsContext, useTextPropsContext, useTextarea, useTextareaPropsContext, useTheme, useTimelinePropsContext, useTimeout, useToggle, useToggleGroup, useToggleGroupContext, useTogglePropsContext, useTooltip, useTooltipProps, useTooltipPropsContext, useTree, useTreeContext, useTreeDescendant, useTreeDescendants, useTreeItem, useTreeItemContext, useTreePropsContext, useUnmountEffect, useUpdateBreakpointEffect, useUpdateEffect, useVStackPropsContext, useValidChildren, useValue, useVisuallyHiddenPropsContext, useWindowEvent, useWrapPropsContext, useZStackPropsContext, vStackStyle, varAttr, varToValue, variableLengthProperties, vendorProperties, visuallyHiddenAttributes, visuallyHiddenStyle, wrapOrPassProps, wrapStyle, zIndexProperties, zStackStyle };
|
|
5257
5258
|
|
|
5258
5259
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i18n-provider.js","names":["INTL","noop"],"sources":["../../../../src/providers/i18n-provider/i18n-provider.tsx"],"sourcesContent":["\"use client\"\n\nimport type { Formats, Options } from \"intl-messageformat\"\nimport type { FC, ReactNode } from \"react\"\nimport type { TextDirection } from \"../../core\"\nimport type { AnyString, Dict, Path, Value } from \"../../utils\"\nimport type { IcuArgs } from \"./icu.types\"\nimport type { DefaultIntlData } from \"./intl\"\nimport IntlMessageFormat from \"intl-messageformat\"\nimport {\n createContext,\n useCallback,\n useContext,\n useEffect,\n useMemo,\n useState,\n} from \"react\"\nimport { DEFAULT_DIRECTION, DEFAULT_LOCALE } from \"../../core\"\nimport {\n createdDom,\n getMemoizedObject as get,\n isEmptyObject,\n isRtl,\n isString,\n isUndefined,\n noop,\n useUpdateEffect,\n} from \"../../utils\"\nimport INTL from \"./intl\"\n\nexport interface Language {\n dir: TextDirection\n locale: string\n}\n\nconst DEFAULT_LANGUAGE: Language = {\n dir: DEFAULT_DIRECTION,\n locale: DEFAULT_LOCALE,\n}\n\nexport const LOCALES = Object.keys(INTL) as readonly Locale[]\n\nexport function getLanguage(locale?: string, dir?: TextDirection): Language {\n locale ??= createdDom() ? navigator.language : DEFAULT_LOCALE\n\n try {\n Intl.DateTimeFormat.supportedLocalesOf([locale])\n } catch (_err) {\n locale = DEFAULT_LOCALE\n }\n\n dir ??= isRtl(locale) ? \"rtl\" : \"ltr\"\n\n return { dir, locale }\n}\n\ntype IntlData = DefaultIntlData\ntype IntlKey = keyof IntlData\ntype IntlPath = Path<IntlData>\n\nexport type Locale = keyof typeof INTL\n\ntype Translation<Y extends object = IntlData, M extends string = IntlPath> = <\n D extends M,\n>(\n path: D,\n ...args: IcuArgs<Value<Y, D>> extends never\n ? [replaceValues?: IcuArgs<Value<Y, D>, IntlPath | M>]\n : [replaceValues: IcuArgs<Value<Y, D>, IntlPath | M>]\n) => string\n\ninterface I18nContext<\n Y extends object = IntlData,\n M extends string = IntlPath,\n> extends Language {\n t: Translation<Y, M>\n changeLanguage: (locale?: string, dir?: TextDirection) => void\n getTranslation: (key?: IntlKey) => Translation<Y, M>\n}\n\nexport const I18nContext = createContext<I18nContext>({\n ...DEFAULT_LANGUAGE,\n changeLanguage: noop,\n getTranslation: () => () => \"\",\n t: () => \"\",\n})\n\nexport interface I18nProviderProps {\n children?: ReactNode\n /**\n * The text direction to apply to the application.\n *\n * If not provided, the direction will be determined by the locale.\n */\n dir?: TextDirection\n /**\n * The formats to pass to the `intlMessageFormat` instance.\n */\n formats?: Formats\n /**\n * The internationalization messages to apply to the application.\n *\n * This prop expects a dictionary object where the keys are locale strings (e.g., \"en-US\").\n */\n intl?: Dict\n /**\n * The options to pass to the `intlMessageFormat` instance.\n */\n intlMessageFormatOptions?: Options\n /**\n * The locale to apply to the application.\n *\n * If not provided, the locale will be determined by the browser.\n */\n locale?: AnyString | Locale\n}\n\nexport const I18nProvider: FC<I18nProviderProps> = ({\n children,\n dir: forcedDir,\n formats,\n intl = INTL as Dict,\n intlMessageFormatOptions,\n locale: forcedLocale,\n}) => {\n const [language, setLanguage] = useState(getLanguage(forcedLocale, forcedDir))\n const controlled = !isUndefined(forcedLocale)\n const { locale } = language\n\n const messages = useMemo(() => intl[locale], [intl, locale])\n\n const changeSystemLanguage = useCallback(() => {\n setLanguage(getLanguage())\n }, [])\n\n const changeLanguage = useCallback((locale?: string, dir?: TextDirection) => {\n setLanguage(getLanguage(locale, dir))\n }, [])\n\n const getValue = useCallback(\n (path: number | string) => {\n const value = get<string | undefined>(messages, path)\n\n if (!isUndefined(value)) {\n return value\n } else {\n path = path.toString().replace(/^[^.]+\\./g, \"\")\n\n return get<string | undefined>(messages, path)\n }\n },\n [messages],\n )\n\n const getTranslation = useCallback(\n (key?: IntlKey) =>\n <Y extends IntlPath>(\n path: Y,\n replaceValues?: IcuArgs<Value<IntlData, Y>, IntlPath>,\n ) => {\n const value = getValue(key ? `${key}.${path}` : path) ?? path\n\n if (isUndefined(replaceValues)) return value\n\n try {\n const resolvedReplaceValues = Object.entries(replaceValues).reduce<{\n [key: string]: any\n }>((prev, [key, pathOrValue]) => {\n if (isString(pathOrValue)) {\n const resolvedPathOrValue = String(pathOrValue)\n const value =\n getValue(\n key ? `${key}.${resolvedPathOrValue}` : resolvedPathOrValue,\n ) ?? resolvedPathOrValue\n\n prev[key] = value\n } else {\n prev[key] = pathOrValue\n }\n\n return prev\n }, {})\n\n const message = new IntlMessageFormat(\n value,\n locale,\n formats,\n intlMessageFormatOptions,\n )\n\n return message.format(resolvedReplaceValues) as string\n } catch (e) {\n if (e instanceof Error) console.warn(e.message)\n\n return value\n }\n },\n [getValue, locale, formats, intlMessageFormatOptions],\n )\n\n const value = useMemo(() => {\n const rest = { changeLanguage, getTranslation, t: getTranslation() }\n\n return { ...language, ...rest }\n }, [changeLanguage, getTranslation, language])\n\n useEffect(() => {\n if (controlled) return\n\n window.addEventListener(\"languagechange\", changeSystemLanguage)\n\n return () => {\n window.removeEventListener(\"languagechange\", changeSystemLanguage)\n }\n }, [controlled, changeSystemLanguage])\n\n useUpdateEffect(() => {\n setLanguage(getLanguage(forcedLocale, forcedDir))\n }, [forcedLocale, forcedDir])\n\n return <I18nContext value={value}>{children}</I18nContext>\n}\n\nexport function useI18n(): I18nContext\n\nexport function useI18n<Y extends IntlKey>(\n key: Y,\n): I18nContext<IntlData[Y], Path<IntlData[Y]>>\n\nexport function useI18n<Y extends IntlKey>(key?: Y) {\n const context = useContext(I18nContext)\n\n const translation = useCallback(\n <M extends Path<IntlData[Y]>>(\n path: M,\n replaceValues?: IcuArgs<\n Value<IntlData[Y], M>,\n IntlPath | Path<IntlData[Y]>\n >,\n ) => context.getTranslation(key)(path as any, replaceValues as any),\n [key, context],\n )\n\n if (isEmptyObject(context))\n return {\n ...DEFAULT_LANGUAGE,\n changeLanguage: noop,\n t: () => \"\",\n }\n\n if (key)
|
|
1
|
+
{"version":3,"file":"i18n-provider.js","names":["INTL","noop"],"sources":["../../../../src/providers/i18n-provider/i18n-provider.tsx"],"sourcesContent":["\"use client\"\n\nimport type { Formats, Options } from \"intl-messageformat\"\nimport type { FC, ReactNode } from \"react\"\nimport type { TextDirection } from \"../../core\"\nimport type { AnyString, Dict, Path, Value } from \"../../utils\"\nimport type { IcuArgs } from \"./icu.types\"\nimport type { DefaultIntlData } from \"./intl\"\nimport IntlMessageFormat from \"intl-messageformat\"\nimport {\n createContext,\n useCallback,\n useContext,\n useEffect,\n useMemo,\n useState,\n} from \"react\"\nimport { DEFAULT_DIRECTION, DEFAULT_LOCALE } from \"../../core\"\nimport {\n createdDom,\n getMemoizedObject as get,\n isEmptyObject,\n isRtl,\n isString,\n isUndefined,\n noop,\n useUpdateEffect,\n} from \"../../utils\"\nimport INTL from \"./intl\"\n\nexport interface Language {\n dir: TextDirection\n locale: string\n}\n\nconst DEFAULT_LANGUAGE: Language = {\n dir: DEFAULT_DIRECTION,\n locale: DEFAULT_LOCALE,\n}\n\nexport const LOCALES = Object.keys(INTL) as readonly Locale[]\n\nexport function getLanguage(locale?: string, dir?: TextDirection): Language {\n locale ??= createdDom() ? navigator.language : DEFAULT_LOCALE\n\n try {\n Intl.DateTimeFormat.supportedLocalesOf([locale])\n } catch (_err) {\n locale = DEFAULT_LOCALE\n }\n\n dir ??= isRtl(locale) ? \"rtl\" : \"ltr\"\n\n return { dir, locale }\n}\n\ntype IntlData = DefaultIntlData\ntype IntlKey = keyof IntlData\ntype IntlPath = Path<IntlData>\n\nexport type Locale = keyof typeof INTL\n\ntype Translation<Y extends object = IntlData, M extends string = IntlPath> = <\n D extends M,\n>(\n path: D,\n ...args: IcuArgs<Value<Y, D>> extends never\n ? [replaceValues?: IcuArgs<Value<Y, D>, IntlPath | M>]\n : [replaceValues: IcuArgs<Value<Y, D>, IntlPath | M>]\n) => string\n\ninterface I18nContext<\n Y extends object = IntlData,\n M extends string = IntlPath,\n> extends Language {\n t: Translation<Y, M>\n changeLanguage: (locale?: string, dir?: TextDirection) => void\n getTranslation: (key?: IntlKey) => Translation<Y, M>\n}\n\nexport const I18nContext = createContext<I18nContext>({\n ...DEFAULT_LANGUAGE,\n changeLanguage: noop,\n getTranslation: () => () => \"\",\n t: () => \"\",\n})\n\nexport interface I18nProviderProps {\n children?: ReactNode\n /**\n * The text direction to apply to the application.\n *\n * If not provided, the direction will be determined by the locale.\n */\n dir?: TextDirection\n /**\n * The formats to pass to the `intlMessageFormat` instance.\n */\n formats?: Formats\n /**\n * The internationalization messages to apply to the application.\n *\n * This prop expects a dictionary object where the keys are locale strings (e.g., \"en-US\").\n */\n intl?: Dict\n /**\n * The options to pass to the `intlMessageFormat` instance.\n */\n intlMessageFormatOptions?: Options\n /**\n * The locale to apply to the application.\n *\n * If not provided, the locale will be determined by the browser.\n */\n locale?: AnyString | Locale\n}\n\nexport const I18nProvider: FC<I18nProviderProps> = ({\n children,\n dir: forcedDir,\n formats,\n intl = INTL as Dict,\n intlMessageFormatOptions,\n locale: forcedLocale,\n}) => {\n const [language, setLanguage] = useState(getLanguage(forcedLocale, forcedDir))\n const controlled = !isUndefined(forcedLocale)\n const { locale } = language\n\n const messages = useMemo(() => intl[locale], [intl, locale])\n\n const changeSystemLanguage = useCallback(() => {\n setLanguage(getLanguage())\n }, [])\n\n const changeLanguage = useCallback((locale?: string, dir?: TextDirection) => {\n setLanguage(getLanguage(locale, dir))\n }, [])\n\n const getValue = useCallback(\n (path: number | string) => {\n const value = get<string | undefined>(messages, path)\n\n if (!isUndefined(value)) {\n return value\n } else {\n path = path.toString().replace(/^[^.]+\\./g, \"\")\n\n return get<string | undefined>(messages, path)\n }\n },\n [messages],\n )\n\n const getTranslation = useCallback(\n (key?: IntlKey) =>\n <Y extends IntlPath>(\n path: Y,\n replaceValues?: IcuArgs<Value<IntlData, Y>, IntlPath>,\n ) => {\n const value = getValue(key ? `${key}.${path}` : path) ?? path\n\n if (isUndefined(replaceValues)) return value\n\n try {\n const resolvedReplaceValues = Object.entries(replaceValues).reduce<{\n [key: string]: any\n }>((prev, [key, pathOrValue]) => {\n if (isString(pathOrValue)) {\n const resolvedPathOrValue = String(pathOrValue)\n const value =\n getValue(\n key ? `${key}.${resolvedPathOrValue}` : resolvedPathOrValue,\n ) ?? resolvedPathOrValue\n\n prev[key] = value\n } else {\n prev[key] = pathOrValue\n }\n\n return prev\n }, {})\n\n const message = new IntlMessageFormat(\n value,\n locale,\n formats,\n intlMessageFormatOptions,\n )\n\n return message.format(resolvedReplaceValues) as string\n } catch (e) {\n if (e instanceof Error) console.warn(e.message)\n\n return value\n }\n },\n [getValue, locale, formats, intlMessageFormatOptions],\n )\n\n const value = useMemo(() => {\n const rest = { changeLanguage, getTranslation, t: getTranslation() }\n\n return { ...language, ...rest }\n }, [changeLanguage, getTranslation, language])\n\n useEffect(() => {\n if (controlled) return\n\n window.addEventListener(\"languagechange\", changeSystemLanguage)\n\n return () => {\n window.removeEventListener(\"languagechange\", changeSystemLanguage)\n }\n }, [controlled, changeSystemLanguage])\n\n useUpdateEffect(() => {\n setLanguage(getLanguage(forcedLocale, forcedDir))\n }, [forcedLocale, forcedDir])\n\n return <I18nContext value={value}>{children}</I18nContext>\n}\n\nexport function useI18n(): I18nContext\n\nexport function useI18n<Y extends IntlKey>(\n key: Y,\n): I18nContext<IntlData[Y], Path<IntlData[Y]>>\n\nexport function useI18n<Y extends IntlKey>(key?: Y) {\n const context = useContext(I18nContext)\n\n const translation = useCallback(\n <M extends Path<IntlData[Y]>>(\n path: M,\n replaceValues?: IcuArgs<\n Value<IntlData[Y], M>,\n IntlPath | Path<IntlData[Y]>\n >,\n ) => context.getTranslation(key)(path as any, replaceValues as any),\n [key, context],\n )\n\n if (isEmptyObject(context))\n return {\n ...DEFAULT_LANGUAGE,\n changeLanguage: noop,\n t: () => \"\",\n }\n\n if (key) return { ...context, t: translation }\n else return context\n}\n"],"mappings":";;;;;;;;;AAmCA,MAAM,mBAA6B;CACjC,KAAA;CACA,QAAQ;AACV;AAEA,MAAa,UAAU,OAAO,KAAKA,YAAI;AAEvC,SAAgB,YAAY,QAAiB,KAA+B;CAC1E,YAAA,GAAA,cAAA,WAAA,CAAsB,IAAI,UAAU,WAAW;CAE/C,IAAI;EACF,KAAK,eAAe,mBAAmB,CAAC,MAAM,CAAC;CACjD,SAAS,MAAM;EACb,SAAS;CACX;CAEA,SAAA,GAAA,cAAA,MAAA,CAAc,MAAM,IAAI,QAAQ;CAEhC,OAAO;EAAE;EAAK;CAAO;AACvB;AA0BA,MAAa,cAAc,cAA2B;CACpD,GAAG;CACH,gBAAgBC,cAAAA;CAChB,4BAA4B;CAC5B,SAAS;AACX,CAAC;AAgCD,MAAa,gBAAuC,EAClD,UACA,KAAK,WACL,SACA,OAAOD,cACP,0BACA,QAAQ,mBACJ;CACJ,MAAM,CAAC,UAAU,eAAe,SAAS,YAAY,cAAc,SAAS,CAAC;CAC7E,MAAM,aAAa,EAAA,GAAA,cAAA,YAAA,CAAa,YAAY;CAC5C,MAAM,EAAE,WAAW;CAEnB,MAAM,WAAW,cAAc,KAAK,SAAS,CAAC,MAAM,MAAM,CAAC;CAE3D,MAAM,uBAAuB,kBAAkB;EAC7C,YAAY,YAAY,CAAC;CAC3B,GAAG,CAAC,CAAC;CAEL,MAAM,iBAAiB,aAAa,QAAiB,QAAwB;EAC3E,YAAY,YAAY,QAAQ,GAAG,CAA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,oBAAoB;EAE9D,aAAa;GACX,OAAO,oBAAoB,kBAAkB,oBAAoB;EACnE;CACF,GAAG,CAAC,YAAY,oBAAoB,CAAC;CAErC,sBAAsB;EACpB,YAAY,YAAY,cAAc,SAAS,CAAC;CAClD,GAAG,CAAC,cAAc,SAAS,CAAC;CAE5B,OAAO,oBAAC,aAAD;EAAoB;EAAQ;CAAsB,CAAA;AAC3D;AAQA,SAAgB,QAA2B,KAAS;CAClD,MAAM,UAAU,WAAW,WAAW;CAEtC,MAAM,cAAc,aAEhB,MACA,kBAIG,QAAQ,eAAe,GAAG,CAAC,CAAC,MAAa,aAAoB,GAClE,CAAC,KAAK,OAAO,CACf;CAEA,KAAA,GAAA,cAAA,cAAA,CAAkB,OAAO,GACvB,OAAO;EACL,GAAG;EACH,gBAAgBC,cAAAA;EAChB,SAAS;CACX;CAEF,IAAI,KAAK,OAAO;EAAE,GAAG;EAAS,GAAG;CAAY;MACxC,OAAO;AACd"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"children.js","names":["isValidElement"],"sources":["../../../src/utils/children.tsx"],"sourcesContent":["import {\n isArray,\n isEmpty,\n isNumber,\n isString,\n isUndefined,\n} from \"@yamada-ui/utils\"\nimport * as React from \"react\"\n\nexport function getValidChildren(\n children: React.ReactNode,\n): React.ReactElement<any>[] {\n return React.Children.toArray(children).filter((child) =>\n React.isValidElement(child),\n )\n}\n\nexport function useValidChildren(children: React.ReactNode) {\n return React.useMemo(() => getValidChildren(children), [children])\n}\n\nexport function isValidElement(child: any): child is React.ReactNode {\n return React.isValidElement(child) || isString(child) || isNumber(child)\n}\n\nexport function isSomeDisplayName(a: any, b: any): boolean {\n if (isUndefined(a) || isUndefined(b)) return false\n\n if (isArray(a)) {\n if (a.includes(b)) return true\n if (!!b.displayName && a.includes(b.displayName)) return true\n if (!!b.name && a.includes(b.name)) return true\n } else {\n if (a === b) return true\n if (!!a.displayName && !!b.displayName && a.displayName === b.displayName)\n return true\n if (!!a.name && !!b.name && a.name === b.name) return true\n if (!!a.displayName && !!b.name && a.displayName === b.name) return true\n if (!!a.name && !!b.displayName && a.name === b.displayName) return true\n }\n\n return false\n}\n\nexport function isSomeElement(a: any, b: any): boolean {\n if (isUndefined(a) || isUndefined(b)) return false\n if (a === b) return true\n if (isSomeDisplayName(a, b)) return true\n\n a = a._payload?.value\n\n if (isUndefined(a)) return false\n if (isSomeDisplayName(a, b)) return true\n\n return false\n}\n\nexport function findChild<Y = any>(\n children: React.ReactElement[],\n ...types: (React.JSXElementConstructor<any> | string)[]\n): React.ReactElement<Y> | undefined {\n const child = children.find((child) =>\n types.some((type) => isSomeElement(child.type, type)),\n )\n\n return child as React.ReactElement<Y> | undefined\n}\n\nexport function useFindChild<Y = any>(\n children: React.ReactElement[],\n ...types: (React.JSXElementConstructor<any> | string)[]\n): React.ReactElement<Y> | undefined {\n const typesRef = React.useRef(types)\n\n return React.useMemo(\n () => findChild<Y>(children, ...typesRef.current),\n [children],\n )\n}\n\nexport function findChildren<Y = any, M = any>(\n children: React.ReactElement[],\n ...types: (React.JSXElementConstructor<any> | string)[]\n): [React.ReactElement<Y> | undefined, ...React.ReactElement<M>[]] {\n const child = findChild(children, ...types)\n\n if (child) {\n return children.sort((a, b) => {\n if (types.some((type) => isSomeElement(a.type, type))) {\n return -1\n } else if (types.some((type) => isSomeElement(b.type, type))) {\n return 1\n } else {\n return 0\n }\n }) as [React.ReactElement<Y> | undefined, ...React.ReactElement<M>[]]\n } else {\n return [undefined, ...(children as React.ReactElement<M>[])]\n }\n}\n\nexport function useFindChildren<Y = any, M = any>(\n children: React.ReactElement<M>[],\n ...types: (React.JSXElementConstructor<any> | string)[]\n): [React.ReactElement<Y> | undefined, ...React.ReactElement<M>[]] {\n const typesRef = React.useRef(types)\n\n return React.useMemo(\n () => findChildren<Y, M>(children, ...typesRef.current),\n [children],\n )\n}\n\nexport function includesChildren(\n children: React.ReactElement<any>[],\n ...types: (React.JSXElementConstructor<any> | string)[]\n): boolean {\n return children.some((child) => {\n if (types.some((type) => isSomeElement(child.type, type))) return true\n\n const children = getValidChildren(child.props.children)\n\n return children.length ? includesChildren(children, ...types) : false\n })\n}\n\nexport function useIncludesChildren(\n children: React.ReactElement<any>[],\n ...types: (React.JSXElementConstructor<any> | string)[]\n): boolean {\n return React.useMemo(\n () => includesChildren(children, ...types),\n [children, types],\n )\n}\n\nexport function omitChildren<Y = any>(\n children: React.ReactElement[],\n ...types: (React.JSXElementConstructor<any> | string)[]\n): React.ReactElement<Y>[] {\n return children.filter((child) =>\n types.every((type) => !isSomeElement(child.type, type)),\n ) as React.ReactElement<Y>[]\n}\n\nexport function useOmitChildren<Y = any>(\n children: React.ReactElement<any>[],\n ...types: (React.JSXElementConstructor<any> | string)[]\n): React.ReactElement<Y>[] {\n const typesRef = React.useRef(types)\n\n return React.useMemo(\n () => omitChildren<Y>(children, ...typesRef.current),\n [children],\n )\n}\n\nexport function pickChildren<Y = any>(\n children: React.ReactElement[],\n ...types: (React.JSXElementConstructor<any> | string)[]\n): React.ReactElement<Y>[] {\n return children.filter((child) =>\n types.some((type) => isSomeElement(child.type, type)),\n ) as React.ReactElement<Y>[]\n}\n\nexport function usePickChildren<Y = any>(\n children: React.ReactElement<any>[],\n ...types: (React.JSXElementConstructor<any> | string)[]\n): React.ReactElement<Y>[] {\n const typesRef = React.useRef(types)\n\n return React.useMemo(\n () => pickChildren<Y>(children, ...typesRef.current),\n [children],\n )\n}\n\nexport function splitChildren<Y = any, M = any>(\n children: React.ReactNode,\n ...types: (\n | (React.JSXElementConstructor<any> | string)[]\n | React.JSXElementConstructor<any>\n | string\n )[]\n): [\n React.ReactElement<M>[] | React.ReactNode,\n ...(React.ReactElement<Y>[] | undefined)[],\n] {\n const validChildren = getValidChildren(children)\n\n if (isEmpty(validChildren)) return [children]\n\n const pickedChildren = types.map((types) => {\n if (isArray(types)) {\n const pickedChildren = pickChildren(validChildren, ...types)\n\n return !isEmpty(pickedChildren) ? pickedChildren : undefined\n } else {\n const pickedChildren = pickChildren(validChildren, types)\n\n return !isEmpty(pickedChildren) ? pickedChildren : undefined\n }\n })\n\n const omittedChildren = omitChildren(validChildren, ...types.flat())\n\n return [omittedChildren, ...pickedChildren] as const\n}\n\nexport function useSplitChildren<Y = any, M = any>(\n children: React.ReactNode,\n ...types: (\n | (React.JSXElementConstructor<any> | string)[]\n | React.JSXElementConstructor<any>\n | string\n )[]\n): [\n React.ReactElement<M>[] | React.ReactNode,\n ...(React.ReactElement<Y>[] | undefined)[],\n] {\n const typesRef = React.useRef(types)\n\n return React.useMemo(\n () => splitChildren<Y, M>(children, ...typesRef.current),\n [children],\n )\n}\n\nexport const wrapOrPassProps = <Y extends React.PropsWithChildren>(\n Component: React.FC<Y>,\n nodeOrProps: React.ReactNode | Y,\n additionalProps?: Y,\n) => {\n if (isUndefined(nodeOrProps)) {\n return null\n } else if (isValidElement(nodeOrProps)) {\n additionalProps ??= {} as Y\n additionalProps.children = nodeOrProps\n\n return <Component {...additionalProps} />\n } else {\n return <Component {...additionalProps} {...nodeOrProps} />\n }\n}\n"],"mappings":";;;;AASA,SAAgB,iBACd,UAC2B;CAC3B,OAAO,MAAM,SAAS,QAAQ,QAAQ,CAAC,CAAC,QAAQ,UAC9C,MAAM,eAAe,KAAK,CAC5B;AACF;AAEA,SAAgB,iBAAiB,UAA2B;CAC1D,OAAO,MAAM,cAAc,iBAAiB,QAAQ,GAAG,CAAC,QAAQ,CAAC;AACnE;AAEA,SAAgBA,iBAAe,OAAsC;CACnE,OAAO,MAAM,eAAe,KAAK,KAAK,SAAS,KAAK,KAAK,SAAS,KAAK;AACzE;AAEA,SAAgB,kBAAkB,GAAQ,GAAiB;CACzD,IAAI,YAAY,CAAC,KAAK,YAAY,CAAC,GAAG,OAAO;CAE7C,IAAI,QAAQ,CAAC,GAAG;EACd,IAAI,EAAE,SAAS,CAAC,GAAG,OAAO;EAC1B,IAAI,CAAC,CAAC,EAAE,eAAe,EAAE,SAAS,EAAE,WAAW,GAAG,OAAO;E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AG,SAAS,OAAO,GACnD,CAAC,QAAQ,CACX;AACF;AAEA,SAAgB,cACd,UACA,GAAG,OAQH;CACA,MAAM,gBAAgB,iBAAiB,QAAQ;CAE/C,IAAI,QAAQ,aAAa,GAAG,OAAO,CAAC,QAAQ;CAE5C,MAAM,iBAAiB,MAAM,KAAK,UAAU;EAC1C,IAAI,QAAQ,KAAK,GAAG;GAClB,MAAM,iBAAiB,aAAa,eAAe,GAAG,KAAK;GAE3D,OAAO,CAAC,QAAQ,cAAc,IAAI,iBAAiB,KAAA;EACrD,OAAO;GACL,MAAM,iBAAiB,aAAa,eAAe,KAAK;GAExD,OAAO,CAAC,QAAQ,cAAc,IAAI,iBAAiB,KAAA;EACrD;CACF,CAAC;CAID,OAAO,CAFiB,aAAa,eAAe,GAAG,MAAM,KAAK,CAE5C,GAAG,GAAG,cAAc;AAC5C;AAEA,SAAgB,iBACd,UACA,GAAG,OAQH;CACA,MAAM,WAAW,MAAM,OAAO,KAAK;CAEnC,OAAO,MAAM,cACL,cAAoB,UAAU,GAAG,SAAS,OAAO,GACvD,CAAC,QAAQ,CACX;AACF;AAEA,MAAa,mBACX,WACA,aACA,oBACG;CACH,IAAI,YAAY,WAAW,GACzB,OAAO;MACF,IAAIA,iBAAe,WAAW,GAAG;EACtC,oBAAoB,CAAC;EACrB,gBAAgB,WAAW;EAE3B,OAAO,oBAAC,WAAD,EAAW,GAAI,gBAAkB,CAAA;CAC1C,OACE,OAAO,oBAAC,WAAD;EAAW,GAAI;EAAiB,GAAI;CAAc,CAAA;AAE7D"}
|
|
1
|
+
{"version":3,"file":"children.js","names":["isValidElement"],"sources":["../../../src/utils/children.tsx"],"sourcesContent":["import {\n isArray,\n isEmpty,\n isNumber,\n isString,\n isUndefined,\n} from \"@yamada-ui/utils\"\nimport * as React from \"react\"\n\nexport function getValidChildren(\n children: React.ReactNode,\n): React.ReactElement<any>[] {\n return React.Children.toArray(children).filter((child) =>\n React.isValidElement(child),\n )\n}\n\nexport function useValidChildren(children: React.ReactNode) {\n return React.useMemo(() => getValidChildren(children), [children])\n}\n\nexport function isValidElement(child: any): child is React.ReactNode {\n return React.isValidElement(child) || isString(child) || isNumber(child)\n}\n\nexport function isSomeDisplayName(a: any, b: any): boolean {\n if (isUndefined(a) || isUndefined(b)) return false\n\n if (isArray(a)) {\n if (a.includes(b)) return true\n if (!!b.displayName && a.includes(b.displayName)) return true\n if (!!b.name && a.includes(b.name)) return true\n } else {\n if (a === b) return true\n if (!!a.displayName && !!b.displayName && a.displayName === b.displayName)\n return true\n if (!!a.name && !!b.name && a.name === b.name) return true\n if (!!a.displayName && !!b.name && a.displayName === b.name) return true\n if (!!a.name && !!b.displayName && a.name === b.displayName) return true\n }\n\n return false\n}\n\nexport function isSomeElement(a: any, b: any): boolean {\n if (isUndefined(a) || isUndefined(b)) return false\n if (a === b) return true\n if (isSomeDisplayName(a, b)) return true\n\n a = a._payload?.value\n\n if (isUndefined(a)) return false\n if (isSomeDisplayName(a, b)) return true\n\n return false\n}\n\nexport function findChild<Y = any>(\n children: React.ReactElement[],\n ...types: (React.JSXElementConstructor<any> | string)[]\n): React.ReactElement<Y> | undefined {\n const child = children.find((child) =>\n types.some((type) => isSomeElement(child.type, type)),\n )\n\n return child as React.ReactElement<Y> | undefined\n}\n\nexport function useFindChild<Y = any>(\n children: React.ReactElement[],\n ...types: (React.JSXElementConstructor<any> | string)[]\n): React.ReactElement<Y> | undefined {\n const typesRef = React.useRef(types)\n\n return React.useMemo(\n () => findChild<Y>(children, ...typesRef.current),\n [children],\n )\n}\n\nexport function findChildren<Y = any, M = any>(\n children: React.ReactElement[],\n ...types: (React.JSXElementConstructor<any> | string)[]\n): [React.ReactElement<Y> | undefined, ...React.ReactElement<M>[]] {\n const child = findChild(children, ...types)\n\n if (child)\n return children.sort((a, b) => {\n if (types.some((type) => isSomeElement(a.type, type))) return -1\n else if (types.some((type) => isSomeElement(b.type, type))) return 1\n else return 0\n }) as [React.ReactElement<Y> | undefined, ...React.ReactElement<M>[]]\n else return [undefined, ...(children as React.ReactElement<M>[])]\n}\n\nexport function useFindChildren<Y = any, M = any>(\n children: React.ReactElement<M>[],\n ...types: (React.JSXElementConstructor<any> | string)[]\n): [React.ReactElement<Y> | undefined, ...React.ReactElement<M>[]] {\n const typesRef = React.useRef(types)\n\n return React.useMemo(\n () => findChildren<Y, M>(children, ...typesRef.current),\n [children],\n )\n}\n\nexport function includesChildren(\n children: React.ReactElement<any>[],\n ...types: (React.JSXElementConstructor<any> | string)[]\n): boolean {\n return children.some((child) => {\n if (types.some((type) => isSomeElement(child.type, type))) return true\n\n const children = getValidChildren(child.props.children)\n\n return children.length ? includesChildren(children, ...types) : false\n })\n}\n\nexport function useIncludesChildren(\n children: React.ReactElement<any>[],\n ...types: (React.JSXElementConstructor<any> | string)[]\n): boolean {\n return React.useMemo(\n () => includesChildren(children, ...types),\n [children, types],\n )\n}\n\nexport function omitChildren<Y = any>(\n children: React.ReactElement[],\n ...types: (React.JSXElementConstructor<any> | string)[]\n): React.ReactElement<Y>[] {\n return children.filter((child) =>\n types.every((type) => !isSomeElement(child.type, type)),\n ) as React.ReactElement<Y>[]\n}\n\nexport function useOmitChildren<Y = any>(\n children: React.ReactElement<any>[],\n ...types: (React.JSXElementConstructor<any> | string)[]\n): React.ReactElement<Y>[] {\n const typesRef = React.useRef(types)\n\n return React.useMemo(\n () => omitChildren<Y>(children, ...typesRef.current),\n [children],\n )\n}\n\nexport function pickChildren<Y = any>(\n children: React.ReactElement[],\n ...types: (React.JSXElementConstructor<any> | string)[]\n): React.ReactElement<Y>[] {\n return children.filter((child) =>\n types.some((type) => isSomeElement(child.type, type)),\n ) as React.ReactElement<Y>[]\n}\n\nexport function usePickChildren<Y = any>(\n children: React.ReactElement<any>[],\n ...types: (React.JSXElementConstructor<any> | string)[]\n): React.ReactElement<Y>[] {\n const typesRef = React.useRef(types)\n\n return React.useMemo(\n () => pickChildren<Y>(children, ...typesRef.current),\n [children],\n )\n}\n\nexport function splitChildren<Y = any, M = any>(\n children: React.ReactNode,\n ...types: (\n | (React.JSXElementConstructor<any> | string)[]\n | React.JSXElementConstructor<any>\n | string\n )[]\n): [\n React.ReactElement<M>[] | React.ReactNode,\n ...(React.ReactElement<Y>[] | undefined)[],\n] {\n const validChildren = getValidChildren(children)\n\n if (isEmpty(validChildren)) return [children]\n\n const pickedChildren = types.map((types) => {\n if (isArray(types)) {\n const pickedChildren = pickChildren(validChildren, ...types)\n\n return !isEmpty(pickedChildren) ? pickedChildren : undefined\n } else {\n const pickedChildren = pickChildren(validChildren, types)\n\n return !isEmpty(pickedChildren) ? pickedChildren : undefined\n }\n })\n\n const omittedChildren = omitChildren(validChildren, ...types.flat())\n\n return [omittedChildren, ...pickedChildren] as const\n}\n\nexport function useSplitChildren<Y = any, M = any>(\n children: React.ReactNode,\n ...types: (\n | (React.JSXElementConstructor<any> | string)[]\n | React.JSXElementConstructor<any>\n | string\n )[]\n): [\n React.ReactElement<M>[] | React.ReactNode,\n ...(React.ReactElement<Y>[] | undefined)[],\n] {\n const typesRef = React.useRef(types)\n\n return React.useMemo(\n () => splitChildren<Y, M>(children, ...typesRef.current),\n [children],\n )\n}\n\nexport const wrapOrPassProps = <Y extends React.PropsWithChildren>(\n Component: React.FC<Y>,\n nodeOrProps: React.ReactNode | Y,\n additionalProps?: Y,\n) => {\n if (isUndefined(nodeOrProps)) {\n return null\n } else if (isValidElement(nodeOrProps)) {\n additionalProps ??= {} as Y\n additionalProps.children = nodeOrProps\n\n return <Component {...additionalProps} />\n } else {\n return <Component {...additionalProps} {...nodeOrProps} />\n }\n}\n"],"mappings":";;;;AASA,SAAgB,iBACd,UAC2B;CAC3B,OAAO,MAAM,SAAS,QAAQ,QAAQ,CAAC,CAAC,QAAQ,UAC9C,MAAM,eAAe,KAAK,CAC5B;AACF;AAEA,SAAgB,iBAAiB,UAA2B;CAC1D,OAAO,MAAM,cAAc,iBAAiB,QAAQ,GAAG,CAAC,QAAQ,CAAC;AACnE;AAEA,SAAgBA,iBAAe,O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