@yamada-ui/react 2.0.0-dev-20250626073729 → 2.0.0-dev-20250626191018
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/_virtual/rolldown_runtime.cjs +0 -7
- package/dist/cjs/components/accordion/accordion.cjs +7 -6
- package/dist/cjs/components/accordion/accordion.cjs.map +1 -1
- package/dist/cjs/components/accordion/use-accordion.cjs +14 -11
- package/dist/cjs/components/accordion/use-accordion.cjs.map +1 -1
- package/dist/cjs/components/airy/airy.cjs +5 -4
- package/dist/cjs/components/airy/airy.cjs.map +1 -1
- package/dist/cjs/components/aspect-ratio/aspect-ratio.cjs +2 -2
- package/dist/cjs/components/aspect-ratio/aspect-ratio.cjs.map +1 -1
- package/dist/cjs/components/avatar/use-avatar-group.cjs +3 -3
- package/dist/cjs/components/avatar/use-avatar-group.cjs.map +1 -1
- package/dist/cjs/components/avatar/use-avatar.cjs +5 -4
- package/dist/cjs/components/avatar/use-avatar.cjs.map +1 -1
- package/dist/cjs/components/bleed/bleed.cjs +5 -5
- package/dist/cjs/components/bleed/bleed.cjs.map +1 -1
- package/dist/cjs/components/breadcrumb/use-breadcrumb.cjs +2 -2
- package/dist/cjs/components/breadcrumb/use-breadcrumb.cjs.map +1 -1
- package/dist/cjs/components/button/button.cjs +11 -10
- package/dist/cjs/components/button/button.cjs.map +1 -1
- package/dist/cjs/components/carousel/carousel.cjs +3 -3
- package/dist/cjs/components/carousel/carousel.cjs.map +1 -1
- package/dist/cjs/components/carousel/use-carousel.cjs +12 -10
- package/dist/cjs/components/carousel/use-carousel.cjs.map +1 -1
- package/dist/cjs/components/circle-progress/circle-progress.cjs +2 -2
- package/dist/cjs/components/circle-progress/circle-progress.cjs.map +1 -1
- package/dist/cjs/components/collapse/collapse.cjs +4 -3
- package/dist/cjs/components/collapse/collapse.cjs.map +1 -1
- package/dist/cjs/components/color-swatch/color-swatch.cjs +2 -2
- package/dist/cjs/components/color-swatch/color-swatch.cjs.map +1 -1
- package/dist/cjs/components/data-list/data-list.cjs +8 -8
- package/dist/cjs/components/data-list/data-list.cjs.map +1 -1
- package/dist/cjs/components/drawer/drawer.cjs +2 -2
- package/dist/cjs/components/drawer/drawer.cjs.map +1 -1
- package/dist/cjs/components/drawer/use-drawer.cjs +4 -3
- package/dist/cjs/components/drawer/use-drawer.cjs.map +1 -1
- package/dist/cjs/components/editable/editable.cjs +2 -2
- package/dist/cjs/components/editable/editable.cjs.map +1 -1
- package/dist/cjs/components/editable/use-editable.cjs +16 -15
- package/dist/cjs/components/editable/use-editable.cjs.map +1 -1
- package/dist/cjs/components/empty-state/empty-state.cjs +2 -2
- package/dist/cjs/components/empty-state/empty-state.cjs.map +1 -1
- package/dist/cjs/components/field/field.cjs +11 -10
- package/dist/cjs/components/field/field.cjs.map +1 -1
- package/dist/cjs/components/field/use-field-props.cjs +14 -12
- package/dist/cjs/components/field/use-field-props.cjs.map +1 -1
- package/dist/cjs/components/fieldset/fieldset.cjs +5 -4
- package/dist/cjs/components/fieldset/fieldset.cjs.map +1 -1
- package/dist/cjs/components/file-button/use-file-button.cjs +2 -2
- package/dist/cjs/components/file-button/use-file-button.cjs.map +1 -1
- package/dist/cjs/components/file-input/use-file-input.cjs +7 -5
- package/dist/cjs/components/file-input/use-file-input.cjs.map +1 -1
- package/dist/cjs/components/flip/flip.cjs +5 -4
- package/dist/cjs/components/flip/flip.cjs.map +1 -1
- package/dist/cjs/components/float/float.cjs +2 -2
- package/dist/cjs/components/float/float.cjs.map +1 -1
- package/dist/cjs/components/focus-lock/focus-lock.cjs +4 -3
- package/dist/cjs/components/focus-lock/focus-lock.cjs.map +1 -1
- package/dist/cjs/components/for/for.cjs +2 -2
- package/dist/cjs/components/for/for.cjs.map +1 -1
- package/dist/cjs/components/grid/grid-item.cjs +3 -3
- package/dist/cjs/components/grid/grid-item.cjs.map +1 -1
- package/dist/cjs/components/group/group.cjs +2 -2
- package/dist/cjs/components/group/group.cjs.map +1 -1
- package/dist/cjs/components/group/use-group.cjs +6 -5
- package/dist/cjs/components/group/use-group.cjs.map +1 -1
- package/dist/cjs/components/highlight/use-highlight.cjs +2 -2
- package/dist/cjs/components/highlight/use-highlight.cjs.map +1 -1
- package/dist/cjs/components/indicator/indicator.cjs +5 -4
- package/dist/cjs/components/indicator/indicator.cjs.map +1 -1
- package/dist/cjs/components/infinite-scroll-area/use-infinite-scroll.cjs +3 -3
- package/dist/cjs/components/infinite-scroll-area/use-infinite-scroll.cjs.map +1 -1
- package/dist/cjs/components/input/input.style.cjs +5 -5
- package/dist/cjs/components/input/input.style.cjs.map +1 -1
- package/dist/cjs/components/link-box/link-box.cjs +2 -2
- package/dist/cjs/components/link-box/link-box.cjs.map +1 -1
- package/dist/cjs/components/loading/audio.cjs +2 -2
- package/dist/cjs/components/loading/audio.cjs.map +1 -1
- package/dist/cjs/components/loading/loading-provider.cjs +2 -2
- package/dist/cjs/components/loading/loading-provider.cjs.map +1 -1
- package/dist/cjs/components/loading/rings.cjs +2 -2
- package/dist/cjs/components/loading/rings.cjs.map +1 -1
- package/dist/cjs/components/loading/use-loading-component.cjs +5 -4
- package/dist/cjs/components/loading/use-loading-component.cjs.map +1 -1
- package/dist/cjs/components/modal/modal.cjs +3 -3
- package/dist/cjs/components/modal/modal.cjs.map +1 -1
- package/dist/cjs/components/modal/use-modal.cjs +9 -8
- package/dist/cjs/components/modal/use-modal.cjs.map +1 -1
- package/dist/cjs/components/motion/motion.cjs +2 -2
- package/dist/cjs/components/motion/motion.cjs.map +1 -1
- package/dist/cjs/components/motion/transition.cjs +5 -5
- package/dist/cjs/components/motion/transition.cjs.map +1 -1
- package/dist/cjs/components/native-select/use-native-select.cjs +5 -4
- package/dist/cjs/components/native-select/use-native-select.cjs.map +1 -1
- package/dist/cjs/components/number-input/use-number-counter.cjs +5 -5
- package/dist/cjs/components/number-input/use-number-counter.cjs.map +1 -1
- package/dist/cjs/components/number-input/use-number-input.cjs +8 -7
- package/dist/cjs/components/number-input/use-number-input.cjs.map +1 -1
- package/dist/cjs/components/pagination/pagination.cjs +4 -3
- package/dist/cjs/components/pagination/pagination.cjs.map +1 -1
- package/dist/cjs/components/pagination/use-pagination.cjs +8 -7
- package/dist/cjs/components/pagination/use-pagination.cjs.map +1 -1
- package/dist/cjs/components/password-input/use-password-input.cjs +4 -4
- package/dist/cjs/components/password-input/use-password-input.cjs.map +1 -1
- package/dist/cjs/components/password-input/use-strength-meter.cjs +2 -2
- package/dist/cjs/components/password-input/use-strength-meter.cjs.map +1 -1
- package/dist/cjs/components/picture/picture.cjs +6 -5
- package/dist/cjs/components/picture/picture.cjs.map +1 -1
- package/dist/cjs/components/pin-input/use-pin-input.cjs +7 -6
- package/dist/cjs/components/pin-input/use-pin-input.cjs.map +1 -1
- package/dist/cjs/components/popover/popover.cjs +4 -3
- package/dist/cjs/components/popover/popover.cjs.map +1 -1
- package/dist/cjs/components/popover/use-popover.cjs +19 -16
- package/dist/cjs/components/popover/use-popover.cjs.map +1 -1
- package/dist/cjs/components/portal/portal.cjs +3 -3
- package/dist/cjs/components/portal/portal.cjs.map +1 -1
- package/dist/cjs/components/progress/progress.cjs +2 -2
- package/dist/cjs/components/progress/progress.cjs.map +1 -1
- package/dist/cjs/components/progress/use-progress.cjs +6 -5
- package/dist/cjs/components/progress/use-progress.cjs.map +1 -1
- package/dist/cjs/components/reorder/use-reorder.cjs +11 -9
- package/dist/cjs/components/reorder/use-reorder.cjs.map +1 -1
- package/dist/cjs/components/resizable/use-resizable.cjs +10 -9
- package/dist/cjs/components/resizable/use-resizable.cjs.map +1 -1
- package/dist/cjs/components/ripple/ripple.cjs +2 -2
- package/dist/cjs/components/ripple/ripple.cjs.map +1 -1
- package/dist/cjs/components/ripple/use-ripple.cjs +4 -3
- package/dist/cjs/components/ripple/use-ripple.cjs.map +1 -1
- package/dist/cjs/components/rotate/rotate.cjs +5 -4
- package/dist/cjs/components/rotate/rotate.cjs.map +1 -1
- package/dist/cjs/components/scroll-area/use-scroll-area.cjs +10 -9
- package/dist/cjs/components/scroll-area/use-scroll-area.cjs.map +1 -1
- package/dist/cjs/components/segmented-control/use-segmented-control.cjs +18 -17
- package/dist/cjs/components/segmented-control/use-segmented-control.cjs.map +1 -1
- package/dist/cjs/components/simple-grid/simple-grid.cjs +3 -3
- package/dist/cjs/components/simple-grid/simple-grid.cjs.map +1 -1
- package/dist/cjs/components/skeleton/skeleton.cjs +6 -5
- package/dist/cjs/components/skeleton/skeleton.cjs.map +1 -1
- package/dist/cjs/components/stack/stack.cjs +4 -4
- package/dist/cjs/components/stack/stack.cjs.map +1 -1
- package/dist/cjs/components/stat/stat.cjs +2 -2
- package/dist/cjs/components/stat/stat.cjs.map +1 -1
- package/dist/cjs/components/steps/steps.cjs +2 -2
- package/dist/cjs/components/steps/steps.cjs.map +1 -1
- package/dist/cjs/components/steps/use-steps.cjs +11 -9
- package/dist/cjs/components/steps/use-steps.cjs.map +1 -1
- package/dist/cjs/components/switch/switch.cjs +2 -2
- package/dist/cjs/components/switch/switch.cjs.map +1 -1
- package/dist/cjs/components/switch/use-switch.cjs +10 -9
- package/dist/cjs/components/switch/use-switch.cjs.map +1 -1
- package/dist/cjs/components/tabs/tabs.cjs +3 -3
- package/dist/cjs/components/tabs/tabs.cjs.map +1 -1
- package/dist/cjs/components/tabs/use-tabs.cjs +8 -6
- package/dist/cjs/components/tabs/use-tabs.cjs.map +1 -1
- package/dist/cjs/components/tag/tag.cjs +6 -6
- package/dist/cjs/components/tag/tag.cjs.map +1 -1
- package/dist/cjs/components/textarea/use-autosize.cjs +9 -6
- package/dist/cjs/components/textarea/use-autosize.cjs.map +1 -1
- package/dist/cjs/components/textarea/use-textarea.cjs +2 -2
- package/dist/cjs/components/textarea/use-textarea.cjs.map +1 -1
- package/dist/cjs/components/toggle/use-toggle-group.cjs +8 -6
- package/dist/cjs/components/toggle/use-toggle-group.cjs.map +1 -1
- package/dist/cjs/components/toggle/use-toggle.cjs +11 -9
- package/dist/cjs/components/toggle/use-toggle.cjs.map +1 -1
- package/dist/cjs/components/tooltip/tooltip.cjs +2 -2
- package/dist/cjs/components/tooltip/tooltip.cjs.map +1 -1
- package/dist/cjs/components/tooltip/use-tooltip.cjs +17 -15
- package/dist/cjs/components/tooltip/use-tooltip.cjs.map +1 -1
- package/dist/cjs/core/components/create-component.cjs +26 -23
- package/dist/cjs/core/components/create-component.cjs.map +1 -1
- package/dist/cjs/core/components/props.cjs +20 -17
- package/dist/cjs/core/components/props.cjs.map +1 -1
- package/dist/cjs/core/components/use-component-style.cjs +35 -32
- package/dist/cjs/core/components/use-component-style.cjs.map +1 -1
- package/dist/cjs/core/components/utils.cjs +3 -3
- package/dist/cjs/core/components/utils.cjs.map +1 -1
- package/dist/cjs/core/css/animation.cjs +5 -4
- package/dist/cjs/core/css/animation.cjs.map +1 -1
- package/dist/cjs/core/css/at-rule.cjs +6 -4
- package/dist/cjs/core/css/at-rule.cjs.map +1 -1
- package/dist/cjs/core/css/calc.cjs +2 -2
- package/dist/cjs/core/css/calc.cjs.map +1 -1
- package/dist/cjs/core/css/color-mix.cjs +2 -2
- package/dist/cjs/core/css/color-mix.cjs.map +1 -1
- package/dist/cjs/core/css/color-scheme.cjs +4 -3
- package/dist/cjs/core/css/color-scheme.cjs.map +1 -1
- package/dist/cjs/core/css/config.cjs +5 -5
- package/dist/cjs/core/css/config.cjs.map +1 -1
- package/dist/cjs/core/css/css.cjs +24 -22
- package/dist/cjs/core/css/css.cjs.map +1 -1
- package/dist/cjs/core/css/gradient.cjs +4 -4
- package/dist/cjs/core/css/gradient.cjs.map +1 -1
- package/dist/cjs/core/css/merge-css.cjs +2 -2
- package/dist/cjs/core/css/merge-css.cjs.map +1 -1
- package/dist/cjs/core/css/style.cjs +2 -2
- package/dist/cjs/core/css/style.cjs.map +1 -1
- package/dist/cjs/core/css/utils.cjs +4 -4
- package/dist/cjs/core/css/utils.cjs.map +1 -1
- package/dist/cjs/core/system/breakpoint.cjs +4 -3
- package/dist/cjs/core/system/breakpoint.cjs.map +1 -1
- package/dist/cjs/core/system/color-mode-provider.cjs +9 -8
- package/dist/cjs/core/system/color-mode-provider.cjs.map +1 -1
- package/dist/cjs/core/system/create-system.cjs +15 -13
- package/dist/cjs/core/system/create-system.cjs.map +1 -1
- package/dist/cjs/core/system/environment-provider.cjs +5 -4
- package/dist/cjs/core/system/environment-provider.cjs.map +1 -1
- package/dist/cjs/core/system/layer.cjs +3 -3
- package/dist/cjs/core/system/layer.cjs.map +1 -1
- package/dist/cjs/core/system/styled.cjs +17 -12
- package/dist/cjs/core/system/styled.cjs.map +1 -1
- package/dist/cjs/core/system/theme-provider.cjs +7 -6
- package/dist/cjs/core/system/theme-provider.cjs.map +1 -1
- package/dist/cjs/core/system/use-system-color-mode.cjs +2 -2
- package/dist/cjs/core/system/use-system-color-mode.cjs.map +1 -1
- package/dist/cjs/core/system/var.cjs +17 -14
- package/dist/cjs/core/system/var.cjs.map +1 -1
- package/dist/cjs/hooks/use-animation/index.cjs +12 -10
- package/dist/cjs/hooks/use-animation/index.cjs.map +1 -1
- package/dist/cjs/hooks/use-breakpoint/use-breakpoint.cjs +6 -4
- package/dist/cjs/hooks/use-breakpoint/use-breakpoint.cjs.map +1 -1
- package/dist/cjs/hooks/use-clickable/index.cjs +4 -4
- package/dist/cjs/hooks/use-clickable/index.cjs.map +1 -1
- package/dist/cjs/hooks/use-clipboard/index.cjs +3 -3
- package/dist/cjs/hooks/use-clipboard/index.cjs.map +1 -1
- package/dist/cjs/hooks/use-controllable-state/index.cjs +5 -4
- package/dist/cjs/hooks/use-controllable-state/index.cjs.map +1 -1
- package/dist/cjs/hooks/use-counter/index.cjs +5 -5
- package/dist/cjs/hooks/use-counter/index.cjs.map +1 -1
- package/dist/cjs/hooks/use-descendant/index.cjs +4 -3
- package/dist/cjs/hooks/use-descendant/index.cjs.map +1 -1
- package/dist/cjs/hooks/use-disclosure/use-promise-disclosure.cjs +2 -2
- package/dist/cjs/hooks/use-disclosure/use-promise-disclosure.cjs.map +1 -1
- package/dist/cjs/hooks/use-event-listener/index.cjs +3 -3
- package/dist/cjs/hooks/use-event-listener/index.cjs.map +1 -1
- package/dist/cjs/hooks/use-focus/index.cjs +7 -7
- package/dist/cjs/hooks/use-focus/index.cjs.map +1 -1
- package/dist/cjs/hooks/use-focus-visible/index.cjs +2 -2
- package/dist/cjs/hooks/use-focus-visible/index.cjs.map +1 -1
- package/dist/cjs/hooks/use-local-storage/index.cjs +2 -2
- package/dist/cjs/hooks/use-local-storage/index.cjs.map +1 -1
- package/dist/cjs/hooks/use-os/index.cjs +2 -2
- package/dist/cjs/hooks/use-os/index.cjs.map +1 -1
- package/dist/cjs/hooks/use-outside-click/index.cjs +3 -3
- package/dist/cjs/hooks/use-outside-click/index.cjs.map +1 -1
- package/dist/cjs/hooks/use-pan-event/index.cjs +6 -6
- package/dist/cjs/hooks/use-pan-event/index.cjs.map +1 -1
- package/dist/cjs/hooks/use-resize-observer/index.cjs +2 -2
- package/dist/cjs/hooks/use-resize-observer/index.cjs.map +1 -1
- package/dist/cjs/hooks/use-size/index.cjs +3 -3
- package/dist/cjs/hooks/use-size/index.cjs.map +1 -1
- package/dist/cjs/hooks/use-token/index.cjs +9 -8
- package/dist/cjs/hooks/use-token/index.cjs.map +1 -1
- package/dist/cjs/hooks/use-value/index.cjs +3 -3
- package/dist/cjs/hooks/use-value/index.cjs.map +1 -1
- package/dist/cjs/index.cjs +148 -2468
- package/dist/cjs/providers/i18n-provider/i18n-provider.cjs +16 -12
- package/dist/cjs/providers/i18n-provider/i18n-provider.cjs.map +1 -1
- package/dist/cjs/utils/common/array.cjs +14 -0
- package/dist/cjs/utils/common/array.cjs.map +1 -0
- package/dist/cjs/utils/common/assertion.cjs +73 -0
- package/dist/cjs/utils/common/assertion.cjs.map +1 -0
- package/dist/cjs/utils/common/calc.cjs +39 -0
- package/dist/cjs/utils/common/calc.cjs.map +1 -0
- package/dist/cjs/utils/common/color.cjs +247 -0
- package/dist/cjs/utils/common/color.cjs.map +1 -0
- package/dist/cjs/utils/common/dom.cjs +378 -0
- package/dist/cjs/utils/common/dom.cjs.map +1 -0
- package/dist/cjs/utils/common/event.cjs +92 -0
- package/dist/cjs/utils/common/event.cjs.map +1 -0
- package/dist/cjs/utils/common/function.cjs +27 -0
- package/dist/cjs/utils/common/function.cjs.map +1 -0
- package/dist/cjs/utils/common/i18n.cjs +46 -0
- package/dist/cjs/utils/common/i18n.cjs.map +1 -0
- package/dist/cjs/utils/common/index.cjs +148 -0
- package/dist/cjs/utils/common/index.types.cjs +0 -0
- package/dist/cjs/utils/common/module.cjs +9 -0
- package/dist/cjs/utils/common/module.cjs.map +1 -0
- package/dist/cjs/utils/common/number.cjs +46 -0
- package/dist/cjs/utils/common/number.cjs.map +1 -0
- package/dist/cjs/utils/common/object.cjs +120 -0
- package/dist/cjs/utils/common/object.cjs.map +1 -0
- package/dist/cjs/utils/common/string.cjs +95 -0
- package/dist/cjs/utils/common/string.cjs.map +1 -0
- package/dist/cjs/utils/index.cjs +147 -49
- package/dist/esm/_virtual/rolldown_runtime.js +1 -15
- package/dist/esm/components/accordion/accordion.js +7 -6
- package/dist/esm/components/accordion/accordion.js.map +1 -1
- package/dist/esm/components/accordion/use-accordion.js +14 -11
- package/dist/esm/components/accordion/use-accordion.js.map +1 -1
- package/dist/esm/components/airy/airy.js +5 -4
- package/dist/esm/components/airy/airy.js.map +1 -1
- package/dist/esm/components/aspect-ratio/aspect-ratio.js +2 -2
- package/dist/esm/components/aspect-ratio/aspect-ratio.js.map +1 -1
- package/dist/esm/components/avatar/use-avatar-group.js +3 -3
- package/dist/esm/components/avatar/use-avatar-group.js.map +1 -1
- package/dist/esm/components/avatar/use-avatar.js +5 -4
- package/dist/esm/components/avatar/use-avatar.js.map +1 -1
- package/dist/esm/components/bleed/bleed.js +5 -5
- package/dist/esm/components/bleed/bleed.js.map +1 -1
- package/dist/esm/components/breadcrumb/use-breadcrumb.js +2 -2
- package/dist/esm/components/breadcrumb/use-breadcrumb.js.map +1 -1
- package/dist/esm/components/button/button.js +11 -10
- package/dist/esm/components/button/button.js.map +1 -1
- package/dist/esm/components/carousel/carousel.js +3 -3
- package/dist/esm/components/carousel/carousel.js.map +1 -1
- package/dist/esm/components/carousel/use-carousel.js +12 -10
- package/dist/esm/components/carousel/use-carousel.js.map +1 -1
- package/dist/esm/components/circle-progress/circle-progress.js +2 -2
- package/dist/esm/components/circle-progress/circle-progress.js.map +1 -1
- package/dist/esm/components/collapse/collapse.js +4 -3
- package/dist/esm/components/collapse/collapse.js.map +1 -1
- package/dist/esm/components/color-swatch/color-swatch.js +2 -2
- package/dist/esm/components/color-swatch/color-swatch.js.map +1 -1
- package/dist/esm/components/data-list/data-list.js +8 -8
- package/dist/esm/components/data-list/data-list.js.map +1 -1
- package/dist/esm/components/drawer/drawer.js +2 -2
- package/dist/esm/components/drawer/drawer.js.map +1 -1
- package/dist/esm/components/drawer/use-drawer.js +4 -3
- package/dist/esm/components/drawer/use-drawer.js.map +1 -1
- package/dist/esm/components/editable/editable.js +2 -2
- package/dist/esm/components/editable/editable.js.map +1 -1
- package/dist/esm/components/editable/use-editable.js +16 -15
- package/dist/esm/components/editable/use-editable.js.map +1 -1
- package/dist/esm/components/empty-state/empty-state.js +2 -2
- package/dist/esm/components/empty-state/empty-state.js.map +1 -1
- package/dist/esm/components/field/field.js +11 -10
- package/dist/esm/components/field/field.js.map +1 -1
- package/dist/esm/components/field/use-field-props.js +14 -12
- package/dist/esm/components/field/use-field-props.js.map +1 -1
- package/dist/esm/components/fieldset/fieldset.js +5 -4
- package/dist/esm/components/fieldset/fieldset.js.map +1 -1
- package/dist/esm/components/file-button/use-file-button.js +2 -2
- package/dist/esm/components/file-button/use-file-button.js.map +1 -1
- package/dist/esm/components/file-input/use-file-input.js +7 -5
- package/dist/esm/components/file-input/use-file-input.js.map +1 -1
- package/dist/esm/components/flip/flip.js +5 -4
- package/dist/esm/components/flip/flip.js.map +1 -1
- package/dist/esm/components/float/float.js +2 -2
- package/dist/esm/components/float/float.js.map +1 -1
- package/dist/esm/components/focus-lock/focus-lock.js +4 -3
- package/dist/esm/components/focus-lock/focus-lock.js.map +1 -1
- package/dist/esm/components/for/for.js +2 -2
- package/dist/esm/components/for/for.js.map +1 -1
- package/dist/esm/components/grid/grid-item.js +3 -3
- package/dist/esm/components/grid/grid-item.js.map +1 -1
- package/dist/esm/components/group/group.js +2 -2
- package/dist/esm/components/group/group.js.map +1 -1
- package/dist/esm/components/group/use-group.js +6 -5
- package/dist/esm/components/group/use-group.js.map +1 -1
- package/dist/esm/components/highlight/use-highlight.js +2 -2
- package/dist/esm/components/highlight/use-highlight.js.map +1 -1
- package/dist/esm/components/indicator/indicator.js +5 -4
- package/dist/esm/components/indicator/indicator.js.map +1 -1
- package/dist/esm/components/infinite-scroll-area/use-infinite-scroll.js +3 -3
- package/dist/esm/components/infinite-scroll-area/use-infinite-scroll.js.map +1 -1
- package/dist/esm/components/input/input.style.js +5 -5
- package/dist/esm/components/input/input.style.js.map +1 -1
- package/dist/esm/components/link-box/link-box.js +2 -2
- package/dist/esm/components/link-box/link-box.js.map +1 -1
- package/dist/esm/components/loading/audio.js +2 -2
- package/dist/esm/components/loading/audio.js.map +1 -1
- package/dist/esm/components/loading/loading-provider.js +2 -2
- package/dist/esm/components/loading/loading-provider.js.map +1 -1
- package/dist/esm/components/loading/rings.js +2 -2
- package/dist/esm/components/loading/rings.js.map +1 -1
- package/dist/esm/components/loading/use-loading-component.js +5 -4
- package/dist/esm/components/loading/use-loading-component.js.map +1 -1
- package/dist/esm/components/modal/modal.js +3 -3
- package/dist/esm/components/modal/modal.js.map +1 -1
- package/dist/esm/components/modal/use-modal.js +9 -8
- package/dist/esm/components/modal/use-modal.js.map +1 -1
- package/dist/esm/components/motion/motion.js +2 -2
- package/dist/esm/components/motion/motion.js.map +1 -1
- package/dist/esm/components/motion/transition.js +5 -5
- package/dist/esm/components/motion/transition.js.map +1 -1
- package/dist/esm/components/native-select/use-native-select.js +5 -4
- package/dist/esm/components/native-select/use-native-select.js.map +1 -1
- package/dist/esm/components/number-input/use-number-counter.js +5 -5
- package/dist/esm/components/number-input/use-number-counter.js.map +1 -1
- package/dist/esm/components/number-input/use-number-input.js +8 -7
- package/dist/esm/components/number-input/use-number-input.js.map +1 -1
- package/dist/esm/components/pagination/pagination.js +4 -3
- package/dist/esm/components/pagination/pagination.js.map +1 -1
- package/dist/esm/components/pagination/use-pagination.js +8 -7
- package/dist/esm/components/pagination/use-pagination.js.map +1 -1
- package/dist/esm/components/password-input/use-password-input.js +4 -4
- package/dist/esm/components/password-input/use-password-input.js.map +1 -1
- package/dist/esm/components/password-input/use-strength-meter.js +2 -2
- package/dist/esm/components/password-input/use-strength-meter.js.map +1 -1
- package/dist/esm/components/picture/picture.js +6 -5
- package/dist/esm/components/picture/picture.js.map +1 -1
- package/dist/esm/components/pin-input/use-pin-input.js +7 -6
- package/dist/esm/components/pin-input/use-pin-input.js.map +1 -1
- package/dist/esm/components/popover/popover.js +4 -3
- package/dist/esm/components/popover/popover.js.map +1 -1
- package/dist/esm/components/popover/use-popover.js +19 -16
- package/dist/esm/components/popover/use-popover.js.map +1 -1
- package/dist/esm/components/portal/portal.js +3 -3
- package/dist/esm/components/portal/portal.js.map +1 -1
- package/dist/esm/components/progress/progress.js +2 -2
- package/dist/esm/components/progress/progress.js.map +1 -1
- package/dist/esm/components/progress/use-progress.js +6 -5
- package/dist/esm/components/progress/use-progress.js.map +1 -1
- package/dist/esm/components/reorder/use-reorder.js +11 -9
- package/dist/esm/components/reorder/use-reorder.js.map +1 -1
- package/dist/esm/components/resizable/use-resizable.js +10 -9
- package/dist/esm/components/resizable/use-resizable.js.map +1 -1
- package/dist/esm/components/ripple/ripple.js +2 -2
- package/dist/esm/components/ripple/ripple.js.map +1 -1
- package/dist/esm/components/ripple/use-ripple.js +4 -3
- package/dist/esm/components/ripple/use-ripple.js.map +1 -1
- package/dist/esm/components/rotate/rotate.js +5 -4
- package/dist/esm/components/rotate/rotate.js.map +1 -1
- package/dist/esm/components/scroll-area/use-scroll-area.js +10 -9
- package/dist/esm/components/scroll-area/use-scroll-area.js.map +1 -1
- package/dist/esm/components/segmented-control/use-segmented-control.js +18 -17
- package/dist/esm/components/segmented-control/use-segmented-control.js.map +1 -1
- package/dist/esm/components/simple-grid/simple-grid.js +3 -3
- package/dist/esm/components/simple-grid/simple-grid.js.map +1 -1
- package/dist/esm/components/skeleton/skeleton.js +6 -5
- package/dist/esm/components/skeleton/skeleton.js.map +1 -1
- package/dist/esm/components/stack/stack.js +4 -4
- package/dist/esm/components/stack/stack.js.map +1 -1
- package/dist/esm/components/stat/stat.js +2 -2
- package/dist/esm/components/stat/stat.js.map +1 -1
- package/dist/esm/components/steps/steps.js +2 -2
- package/dist/esm/components/steps/steps.js.map +1 -1
- package/dist/esm/components/steps/use-steps.js +11 -9
- package/dist/esm/components/steps/use-steps.js.map +1 -1
- package/dist/esm/components/switch/switch.js +2 -2
- package/dist/esm/components/switch/switch.js.map +1 -1
- package/dist/esm/components/switch/use-switch.js +10 -9
- package/dist/esm/components/switch/use-switch.js.map +1 -1
- package/dist/esm/components/tabs/tabs.js +3 -3
- package/dist/esm/components/tabs/tabs.js.map +1 -1
- package/dist/esm/components/tabs/use-tabs.js +8 -6
- package/dist/esm/components/tabs/use-tabs.js.map +1 -1
- package/dist/esm/components/tag/tag.js +6 -6
- package/dist/esm/components/tag/tag.js.map +1 -1
- package/dist/esm/components/textarea/use-autosize.js +9 -6
- package/dist/esm/components/textarea/use-autosize.js.map +1 -1
- package/dist/esm/components/textarea/use-textarea.js +2 -2
- package/dist/esm/components/textarea/use-textarea.js.map +1 -1
- package/dist/esm/components/toggle/use-toggle-group.js +8 -6
- package/dist/esm/components/toggle/use-toggle-group.js.map +1 -1
- package/dist/esm/components/toggle/use-toggle.js +11 -9
- package/dist/esm/components/toggle/use-toggle.js.map +1 -1
- package/dist/esm/components/tooltip/tooltip.js +2 -2
- package/dist/esm/components/tooltip/tooltip.js.map +1 -1
- package/dist/esm/components/tooltip/use-tooltip.js +17 -15
- package/dist/esm/components/tooltip/use-tooltip.js.map +1 -1
- package/dist/esm/core/components/create-component.js +26 -23
- package/dist/esm/core/components/create-component.js.map +1 -1
- package/dist/esm/core/components/props.js +20 -17
- package/dist/esm/core/components/props.js.map +1 -1
- package/dist/esm/core/components/use-component-style.js +35 -32
- package/dist/esm/core/components/use-component-style.js.map +1 -1
- package/dist/esm/core/components/utils.js +3 -3
- package/dist/esm/core/components/utils.js.map +1 -1
- package/dist/esm/core/css/animation.js +5 -4
- package/dist/esm/core/css/animation.js.map +1 -1
- package/dist/esm/core/css/at-rule.js +6 -4
- package/dist/esm/core/css/at-rule.js.map +1 -1
- package/dist/esm/core/css/calc.js +2 -2
- package/dist/esm/core/css/calc.js.map +1 -1
- package/dist/esm/core/css/color-mix.js +2 -2
- package/dist/esm/core/css/color-mix.js.map +1 -1
- package/dist/esm/core/css/color-scheme.js +4 -3
- package/dist/esm/core/css/color-scheme.js.map +1 -1
- package/dist/esm/core/css/config.js +5 -5
- package/dist/esm/core/css/config.js.map +1 -1
- package/dist/esm/core/css/css.js +24 -22
- package/dist/esm/core/css/css.js.map +1 -1
- package/dist/esm/core/css/gradient.js +4 -4
- package/dist/esm/core/css/gradient.js.map +1 -1
- package/dist/esm/core/css/merge-css.js +2 -2
- package/dist/esm/core/css/merge-css.js.map +1 -1
- package/dist/esm/core/css/style.js +2 -2
- package/dist/esm/core/css/style.js.map +1 -1
- package/dist/esm/core/css/utils.js +4 -4
- package/dist/esm/core/css/utils.js.map +1 -1
- package/dist/esm/core/system/breakpoint.js +4 -3
- package/dist/esm/core/system/breakpoint.js.map +1 -1
- package/dist/esm/core/system/color-mode-provider.js +9 -8
- package/dist/esm/core/system/color-mode-provider.js.map +1 -1
- package/dist/esm/core/system/create-system.js +15 -13
- package/dist/esm/core/system/create-system.js.map +1 -1
- package/dist/esm/core/system/environment-provider.js +5 -4
- package/dist/esm/core/system/environment-provider.js.map +1 -1
- package/dist/esm/core/system/layer.js +3 -3
- package/dist/esm/core/system/layer.js.map +1 -1
- package/dist/esm/core/system/styled.js +17 -12
- package/dist/esm/core/system/styled.js.map +1 -1
- package/dist/esm/core/system/theme-provider.js +7 -6
- package/dist/esm/core/system/theme-provider.js.map +1 -1
- package/dist/esm/core/system/use-system-color-mode.js +2 -2
- package/dist/esm/core/system/use-system-color-mode.js.map +1 -1
- package/dist/esm/core/system/var.js +17 -14
- package/dist/esm/core/system/var.js.map +1 -1
- package/dist/esm/hooks/use-animation/index.js +12 -10
- package/dist/esm/hooks/use-animation/index.js.map +1 -1
- package/dist/esm/hooks/use-breakpoint/use-breakpoint.js +6 -4
- package/dist/esm/hooks/use-breakpoint/use-breakpoint.js.map +1 -1
- package/dist/esm/hooks/use-clickable/index.js +4 -4
- package/dist/esm/hooks/use-clickable/index.js.map +1 -1
- package/dist/esm/hooks/use-clipboard/index.js +3 -3
- package/dist/esm/hooks/use-clipboard/index.js.map +1 -1
- package/dist/esm/hooks/use-controllable-state/index.js +5 -4
- package/dist/esm/hooks/use-controllable-state/index.js.map +1 -1
- package/dist/esm/hooks/use-counter/index.js +5 -5
- package/dist/esm/hooks/use-counter/index.js.map +1 -1
- package/dist/esm/hooks/use-descendant/index.js +4 -3
- package/dist/esm/hooks/use-descendant/index.js.map +1 -1
- package/dist/esm/hooks/use-disclosure/use-promise-disclosure.js +2 -2
- package/dist/esm/hooks/use-disclosure/use-promise-disclosure.js.map +1 -1
- package/dist/esm/hooks/use-event-listener/index.js +3 -3
- package/dist/esm/hooks/use-event-listener/index.js.map +1 -1
- package/dist/esm/hooks/use-focus/index.js +7 -7
- package/dist/esm/hooks/use-focus/index.js.map +1 -1
- package/dist/esm/hooks/use-focus-visible/index.js +2 -2
- package/dist/esm/hooks/use-focus-visible/index.js.map +1 -1
- package/dist/esm/hooks/use-local-storage/index.js +2 -2
- package/dist/esm/hooks/use-local-storage/index.js.map +1 -1
- package/dist/esm/hooks/use-os/index.js +2 -2
- package/dist/esm/hooks/use-os/index.js.map +1 -1
- package/dist/esm/hooks/use-outside-click/index.js +3 -3
- package/dist/esm/hooks/use-outside-click/index.js.map +1 -1
- package/dist/esm/hooks/use-pan-event/index.js +6 -6
- package/dist/esm/hooks/use-pan-event/index.js.map +1 -1
- package/dist/esm/hooks/use-resize-observer/index.js +2 -2
- package/dist/esm/hooks/use-resize-observer/index.js.map +1 -1
- package/dist/esm/hooks/use-size/index.js +3 -3
- package/dist/esm/hooks/use-size/index.js.map +1 -1
- package/dist/esm/hooks/use-token/index.js +9 -8
- package/dist/esm/hooks/use-token/index.js.map +1 -1
- package/dist/esm/hooks/use-value/index.js +3 -3
- package/dist/esm/hooks/use-value/index.js.map +1 -1
- package/dist/esm/index.js +13 -2468
- package/dist/esm/providers/i18n-provider/i18n-provider.js +16 -12
- package/dist/esm/providers/i18n-provider/i18n-provider.js.map +1 -1
- package/dist/esm/utils/common/array.js +13 -0
- package/dist/esm/utils/common/array.js.map +1 -0
- package/dist/esm/utils/common/assertion.js +56 -0
- package/dist/esm/utils/common/assertion.js.map +1 -0
- package/dist/esm/utils/common/calc.js +38 -0
- package/dist/esm/utils/common/calc.js.map +1 -0
- package/dist/esm/utils/common/color.js +232 -0
- package/dist/esm/utils/common/color.js.map +1 -0
- package/dist/esm/utils/common/dom.js +325 -0
- package/dist/esm/utils/common/dom.js.map +1 -0
- package/dist/esm/utils/common/event.js +83 -0
- package/dist/esm/utils/common/event.js.map +1 -0
- package/dist/esm/utils/common/function.js +24 -0
- package/dist/esm/utils/common/function.js.map +1 -0
- package/dist/esm/utils/common/i18n.js +45 -0
- package/dist/esm/utils/common/i18n.js.map +1 -0
- package/dist/esm/utils/common/index.js +14 -0
- package/dist/esm/utils/common/index.types.js +0 -0
- package/dist/esm/utils/common/module.js +8 -0
- package/dist/esm/utils/common/module.js.map +1 -0
- package/dist/esm/utils/common/number.js +39 -0
- package/dist/esm/utils/common/number.js.map +1 -0
- package/dist/esm/utils/common/object.js +108 -0
- package/dist/esm/utils/common/object.js.map +1 -0
- package/dist/esm/utils/common/string.js +86 -0
- package/dist/esm/utils/common/string.js.map +1 -0
- package/dist/esm/utils/index.js +13 -39
- package/dist/types/components/accordion/accordion.d.ts +5 -5
- package/dist/types/components/airy/airy.d.ts +5 -5
- package/dist/types/components/alert/alert.d.ts +7 -7
- package/dist/types/components/alert/alert.style.d.ts +1 -1
- package/dist/types/components/aspect-ratio/aspect-ratio.d.ts +3 -3
- package/dist/types/components/avatar/avatar.d.ts +8 -8
- package/dist/types/components/avatar/avatar.style.d.ts +1 -1
- package/dist/types/components/avatar/use-avatar-group.d.ts +2 -2
- package/dist/types/components/badge/badge.d.ts +3 -3
- package/dist/types/components/bleed/bleed.d.ts +3 -3
- package/dist/types/components/blockquote/blockquote.d.ts +5 -5
- package/dist/types/components/breadcrumb/breadcrumb.d.ts +6 -6
- package/dist/types/components/breadcrumb/breadcrumb.style.d.ts +1 -1
- package/dist/types/components/breadcrumb/use-breadcrumb.d.ts +2 -2
- package/dist/types/components/button/button.d.ts +7 -7
- package/dist/types/components/button/close-button.d.ts +5 -5
- package/dist/types/components/button/icon-button.d.ts +5 -5
- package/dist/types/components/card/card.d.ts +5 -5
- package/dist/types/components/carousel/carousel.d.ts +8 -8
- package/dist/types/components/carousel/carousel.style.d.ts +2 -2
- package/dist/types/components/carousel/use-carousel.d.ts +3 -3
- package/dist/types/components/center/center.d.ts +3 -3
- package/dist/types/components/circle-progress/circle-progress.d.ts +5 -5
- package/dist/types/components/code/code.d.ts +3 -3
- package/dist/types/components/collapse/collapse.d.ts +5 -5
- package/dist/types/components/color-swatch/color-swatch.d.ts +5 -5
- package/dist/types/components/container/container.d.ts +5 -5
- package/dist/types/components/data-list/data-list.d.ts +8 -8
- package/dist/types/components/data-list/data-list.style.d.ts +1 -1
- package/dist/types/components/drawer/drawer.d.ts +12 -12
- package/dist/types/components/drawer/drawer.style.d.ts +2 -2
- package/dist/types/components/editable/editable.d.ts +7 -7
- package/dist/types/components/editable/use-editable.d.ts +2 -2
- package/dist/types/components/em/em.d.ts +3 -3
- package/dist/types/components/empty-state/empty-state.d.ts +5 -5
- package/dist/types/components/fade/fade-scale.d.ts +5 -5
- package/dist/types/components/fade/fade.d.ts +5 -5
- package/dist/types/components/field/field.d.ts +6 -6
- package/dist/types/components/field/use-field-props.d.ts +6 -6
- package/dist/types/components/fieldset/fieldset.d.ts +6 -6
- package/dist/types/components/file-button/file-button.d.ts +3 -3
- package/dist/types/components/file-button/use-file-button.d.ts +18 -18
- package/dist/types/components/file-input/file-input.d.ts +6 -6
- package/dist/types/components/file-input/file-input.style.d.ts +1 -1
- package/dist/types/components/file-input/use-file-input.d.ts +18 -18
- package/dist/types/components/flex/flex.d.ts +3 -3
- package/dist/types/components/flip/flip.d.ts +7 -7
- package/dist/types/components/float/float.d.ts +3 -3
- package/dist/types/components/format/format-byte.d.ts +5 -5
- package/dist/types/components/format/format-number.d.ts +3 -3
- package/dist/types/components/grid/grid-item.d.ts +4 -4
- package/dist/types/components/grid/grid.d.ts +3 -3
- package/dist/types/components/group/group.d.ts +5 -5
- package/dist/types/components/group/use-group.d.ts +828 -828
- package/dist/types/components/heading/heading.d.ts +3 -3
- package/dist/types/components/icon/icon.d.ts +5 -5
- package/dist/types/components/icon/icons/a-arrow-down-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/a-arrow-up-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/a-large-small-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/accessibility-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/activity-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/air-vent-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/airplay-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/alarm-clock-check-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/alarm-clock-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/alarm-clock-minus-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/alarm-clock-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/alarm-clock-plus-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/alarm-smoke-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/album-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/align-center-horizontal-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/align-center-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/align-center-vertical-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/align-end-horizontal-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/align-end-vertical-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/align-horizontal-distribute-center-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/align-horizontal-distribute-end-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/align-horizontal-distribute-start-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/align-horizontal-justify-center-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/align-horizontal-justify-end-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/align-horizontal-justify-start-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/align-horizontal-space-around-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/align-justify-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/align-right-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/align-start-horizontal-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/align-vertical-distribute-center-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/align-vertical-distribute-start-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/align-vertical-justify-center-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/align-vertical-justify-end-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/align-vertical-justify-start-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/align-vertical-space-around-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/ambulance-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/ampersand-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/ampersands-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/anchor-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/angry-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/antenna-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/anvil-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/app-window-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/app-window-mac-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/apple-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/archive-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/archive-x-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/armchair-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/arrow-big-left-dash-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/arrow-big-right-dash-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/arrow-big-right-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/arrow-big-up-dash-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/arrow-big-up-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/arrow-down-a-z-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/arrow-down-from-line-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/arrow-down-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/arrow-down-right-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/arrow-down-to-dot-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/arrow-down-to-line-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/arrow-down-wide-narrow-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/arrow-down-z-a-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/arrow-down01-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/arrow-down10-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/arrow-left-from-line-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/arrow-left-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/arrow-left-right-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/arrow-right-from-line-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/arrow-right-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/arrow-right-left-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/arrow-right-to-line-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/arrow-up-a-z-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/arrow-up-left-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/arrow-up-right-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/arrow-up-z-a-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/arrow-up01-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/arrow-up10-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/arrows-up-from-line-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/asterisk-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/at-sign-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/atom-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/audio-lines-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/audio-waveform-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/axe-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/baby-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/backpack-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/badge-alert-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/badge-cent-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/badge-check-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/badge-dollar-sign-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/badge-euro-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/badge-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/badge-info-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/badge-japanese-yen-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/badge-minus-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/badge-percent-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/badge-plus-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/badge-pound-sterling-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/baggage-claim-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/ban-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/banknote-arrow-up-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/banknote-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/banknote-x-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/barcode-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/barrel-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/baseline-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/bath-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/battery-charging-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/battery-full-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/battery-medium-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/battery-plus-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/battery-warning-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/beaker-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/bean-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/bean-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/beef-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/beer-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/bell-dot-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/bell-minus-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/bell-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/bell-plus-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/bell-ring-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/between-horizontal-start-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/between-vertical-start-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/binary-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/binoculars-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/biohazard-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/bird-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/bitcoin-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/blend-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/bluetooth-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/bluetooth-searching-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/bomb-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/bone-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/book-dashed-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/book-down-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/book-headphones-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/book-heart-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/book-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/book-image-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/book-minus-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/book-open-check-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/book-text-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/book-type-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/book-up-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/book-up2-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/bookmark-x-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/boom-box-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/bot-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/bot-message-square-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/bottle-wine-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/bow-arrow-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/box-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/boxes-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/brackets-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/brain-circuit-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/brain-cog-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/briefcase-conveyor-belt-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/briefcase-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/brush-cleaning-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/brush-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/bubbles-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/bug-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/bug-play-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/building-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/bus-front-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/bus-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/cable-car-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/cable-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/cake-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/cake-slice-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/calculator-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/calendar-arrow-down-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/calendar-arrow-up-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/calendar-check2-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/calendar-clock-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/calendar-cog-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/calendar-minus-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/calendar-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/calendar-sync-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/calendar-x-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/calendar-x2-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/calendar1-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/cannabis-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/captions-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/caravan-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/card-sim-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/chart-bar-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/chart-bar-increasing-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/chart-bar-stacked-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/chart-column-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/chart-column-increasing-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/chart-column-stacked-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/chart-gantt-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/chart-line-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/chart-no-axes-combined-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/chart-no-axes-gantt-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/chart-pie-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/chart-scatter-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/chart-spline-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/check-check-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/chevron-first-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/chevron-last-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/chevrons-right-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/chevrons-right-left-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/chevrons-up-down-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/cigarette-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/cigarette-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/circle-arrow-left-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/circle-arrow-out-down-left-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/circle-arrow-out-down-right-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/circle-arrow-out-up-left-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/circle-arrow-out-up-right-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/circle-arrow-right-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/circle-arrow-up-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/circle-check-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/circle-chevron-down-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/circle-chevron-left-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/circle-chevron-right-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/circle-dollar-sign-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/circle-dot-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/circle-ellipsis-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/circle-equal-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/circle-fading-plus-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/circle-gauge-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/circle-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/circle-minus-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/circle-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/circle-parking-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/circle-parking-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/circle-pause-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/circle-percent-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/circle-play-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/circle-plus-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/circle-pound-sterling-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/circle-power-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/circle-question-mark-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/circle-slash-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/circle-slash2-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/circle-small-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/circle-stop-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/circle-user-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/circle-user-round-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/circle-x-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/circuit-board-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/citrus-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/clapperboard-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/clipboard-check-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/clipboard-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/clipboard-list-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/clipboard-minus-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/clipboard-paste-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/clipboard-pen-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/clipboard-pen-line-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/clipboard-plus-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/clipboard-type-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/clipboard-x-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/clock-arrow-down-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/clock-arrow-up-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/clock-fading-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/clock-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/clock-plus-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/clock1-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/clock10-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/clock11-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/clock12-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/clock2-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/clock3-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/clock5-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/clock6-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/clock7-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/clock8-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/clock9-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/cloud-alert-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/cloud-check-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/cloud-download-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/cloud-drizzle-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/cloud-fog-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/cloud-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/cloud-lightning-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/cloud-moon-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/cloud-moon-rain-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/cloud-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/cloud-rain-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/cloud-rain-wind-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/cloud-snow-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/cloud-sun-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/cloud-sun-rain-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/cloudy-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/clover-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/club-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/code-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/code-xml-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/codesandbox-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/cog-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/coins-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/columns2-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/columns3-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/combine-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/compass-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/component-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/computer-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/concierge-bell-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/contact-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/contrast-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/copy-plus-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/copy-slash-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/copy-x-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/copyright-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/corner-down-right-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/corner-left-down-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/corner-left-up-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/corner-right-down-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/corner-right-up-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/corner-up-left-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/corner-up-right-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/creative-commons-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/credit-card-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/croissant-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/crop-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/crown-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/cuboid-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/cup-soda-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/currency-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/cylinder-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/dam-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/database-backup-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/database-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/database-zap-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/decimals-arrow-left-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/decimals-arrow-right-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/dessert-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/diamond-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/diamond-minus-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/diamond-percent-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/dice1-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/dice3-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/dice4-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/dice6-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/dices-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/diff-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/disc-album-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/disc-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/disc2-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/divide-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/dna-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/dock-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/dog-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/dollar-sign-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/donut-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/door-closed-locked-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/door-open-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/dot-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/download-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/drafting-compass-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/drama-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/dribbble-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/drill-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/drone-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/droplet-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/droplet-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/droplets-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/drumstick-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/dumbbell-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/ear-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/ear-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/earth-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/earth-lock-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/eclipse-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/egg-fried-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/egg-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/egg-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/ellipsis-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/ellipsis-vertical-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/equal-approximately-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/equal-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/equal-not-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/eraser-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/ethernet-port-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/euro-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/expand-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/external-link-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/eye-closed-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/eye-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/facebook-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/factory-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/fan-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/feather-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/ferris-wheel-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/figma-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/file-archive-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/file-audio-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/file-audio2-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/file-axis3d-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/file-badge-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/file-badge2-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/file-chart-column-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/file-chart-column-increasing-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/file-chart-line-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/file-chart-pie-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/file-check2-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/file-clock-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/file-code-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/file-code2-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/file-cog-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/file-diff-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/file-down-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/file-heart-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/file-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/file-image-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/file-json-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/file-key-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/file-lock-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/file-lock2-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/file-minus2-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/file-music-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/file-output-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/file-plus-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/file-plus2-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/file-search-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/file-search2-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/file-spreadsheet-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/file-symlink-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/file-terminal-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/file-text-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/file-type2-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/file-user-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/file-video-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/file-volume-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/file-volume2-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/file-warning-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/file-x-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/file-x2-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/files-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/film-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/fingerprint-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/fire-extinguisher-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/fish-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/fish-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/fish-symbol-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/flag-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/flag-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/flag-triangle-left-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/flashlight-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/flask-conical-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/flip-horizontal-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/flip-horizontal2-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/flower-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/focus-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/fold-horizontal-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/fold-vertical-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/folder-archive-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/folder-check-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/folder-clock-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/folder-closed-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/folder-dot-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/folder-down-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/folder-heart-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/folder-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/folder-input-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/folder-kanban-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/folder-lock-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/folder-open-dot-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/folder-open-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/folder-output-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/folder-pen-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/folder-plus-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/folder-root-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/folder-search-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/folder-symlink-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/folder-tree-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/folder-up-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/folder-x-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/footprints-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/forward-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/frame-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/frown-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/fuel-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/fullscreen-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/funnel-plus-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/funnel-x-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/gallery-horizontal-end-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/gallery-horizontal-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/gallery-thumbnails-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/gallery-vertical-end-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/gallery-vertical-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/gamepad-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/gamepad2-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/gem-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/georgian-lari-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/git-branch-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/git-branch-plus-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/git-commit-horizontal-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/git-compare-arrows-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/git-compare-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/git-merge-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/git-pull-request-arrow-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/git-pull-request-closed-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/git-pull-request-create-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/git-pull-request-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/github-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/globe-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/globe-lock-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/goal-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/gpu-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/grab-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/graduation-cap-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/grape-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/grid2x2-check-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/grid2x2-plus-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/grid2x2-x-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/grid3x2-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/grid3x3-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/grip-horizontal-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/grip-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/group-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/guitar-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/ham-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/hamburger-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/hammer-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/hand-metal-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/hand-platter-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/handshake-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/hard-drive-download-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/hard-drive-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/hard-drive-upload-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/hard-hat-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/hash-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/heading-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/heading1-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/heading2-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/heading3-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/heading4-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/heading5-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/heading6-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/headphone-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/headphones-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/headset-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/heart-handshake-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/heart-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/heart-plus-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/heart-pulse-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/heater-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/hexagon-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/highlighter-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/history-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/hop-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/hop-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/hospital-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/hourglass-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/house-plug-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/house-plus-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/house-wifi-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/ice-cream-cone-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/id-card-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/id-card-lanyard-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/image-down-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/image-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/image-minus-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/image-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/image-play-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/image-plus-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/image-up-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/image-upscale-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/images-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/import-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/inbox-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/indent-decrease-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/indent-increase-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/indian-rupee-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/infinity-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/info-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/inspection-panel-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/instagram-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/italic-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/iteration-ccw-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/japanese-yen-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/joystick-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/kanban-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/key-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/key-round-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/key-square-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/keyboard-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/lamp-ceiling-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/lamp-desk-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/lamp-floor-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/lamp-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/lamp-wall-down-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/lamp-wall-up-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/landmark-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/languages-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/laptop-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/laptop-minimal-check-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/lasso-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/layers2-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/layout-dashboard-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/layout-grid-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/layout-panel-left-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/layout-panel-top-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/layout-template-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/leaf-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/lectern-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/library-big-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/library-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/ligature-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/lightbulb-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/link-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/link2-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/link2-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/list-check-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/list-checks-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/list-collapse-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/list-end-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/list-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/list-music-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/list-ordered-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/list-plus-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/list-start-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/list-todo-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/list-video-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/list-x-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/loader-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/loader-pinwheel-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/locate-fixed-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/locate-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/locate-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/location-edit-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/lock-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/lock-keyhole-open-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/lock-open-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/log-in-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/log-out-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/logs-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/lollipop-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/luggage-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/magnet-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/mail-check-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/mail-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/mail-minus-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/mail-open-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/mail-plus-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/mail-question-mark-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/mail-search-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/mail-warning-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/mail-x-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/mailbox-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/mails-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/map-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/map-pin-check-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/map-pin-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/map-pin-minus-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/map-pin-minus-inside-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/map-pin-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/map-pin-plus-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/map-pin-plus-inside-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/map-pin-x-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/map-pin-x-inside-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/map-pinned-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/map-plus-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/mars-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/mars-stroke-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/martini-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/maximize-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/maximize2-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/medal-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/megaphone-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/megaphone-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/meh-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/memory-stick-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/menu-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/merge-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/message-circle-code-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/message-circle-dashed-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/message-circle-heart-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/message-circle-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/message-circle-more-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/message-circle-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/message-circle-plus-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/message-circle-question-mark-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/message-circle-reply-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/message-circle-warning-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/message-circle-x-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/message-square-code-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/message-square-dashed-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/message-square-diff-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/message-square-dot-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/message-square-heart-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/message-square-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/message-square-lock-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/message-square-more-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/message-square-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/message-square-plus-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/message-square-quote-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/message-square-reply-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/message-square-share-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/message-square-text-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/message-square-warning-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/messages-square-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/mic-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/mic-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/mic-vocal-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/microchip-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/microscope-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/microwave-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/milestone-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/milk-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/monitor-dot-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/monitor-down-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/monitor-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/monitor-pause-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/monitor-play-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/monitor-smartphone-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/monitor-stop-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/monitor-up-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/monitor-x-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/moon-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/moon-star-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/mountain-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/mouse-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/mouse-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/move-down-right-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/move-horizontal-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/move-up-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/move-up-left-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/move-up-right-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/move-vertical-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/music2-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/music4-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/navigation-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/navigation2-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/navigation2-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/network-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/nfc-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/non-binary-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/notebook-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/notebook-pen-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/notebook-tabs-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/notebook-text-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/notepad-text-dashed-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/notepad-text-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/nut-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/octagon-alert-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/octagon-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/octagon-minus-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/octagon-pause-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/octagon-x-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/omega-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/option-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/orbit-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/origami-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/package-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/package-open-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/package-plus-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/package-search-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/package-x-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/package2-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/paint-bucket-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/palette-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/panda-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/panel-bottom-close-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/panel-bottom-dashed-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/panel-bottom-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/panel-bottom-open-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/panel-left-close-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/panel-left-dashed-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/panel-left-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/panel-left-open-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/panel-right-close-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/panel-right-dashed-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/panel-right-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/panel-right-open-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/panel-top-close-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/panel-top-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/panel-top-open-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/panels-left-bottom-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/panels-right-bottom-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/panels-top-left-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/paperclip-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/parentheses-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/parking-meter-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/party-popper-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/pause-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/paw-print-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/pc-case-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/pen-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/pen-line-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/pen-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/pen-tool-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/pencil-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/pencil-line-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/pencil-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/philippine-peso-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/phone-forwarded-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/phone-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/phone-outgoing-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/pi-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/piano-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/picture-in-picture-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/picture-in-picture2-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/piggy-bank-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/pilcrow-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/pilcrow-left-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/pill-bottle-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/pin-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/pin-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/pipette-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/pizza-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/plane-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/plug-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/plug2-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/plus-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/pocket-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/podcast-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/pointer-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/pointer-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/popcorn-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/power-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/printer-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/projector-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/proportions-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/puzzle-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/qr-code-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/quote-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/radical-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/radio-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/radio-receiver-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/radio-tower-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/radius-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/rainbow-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/ratio-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/receipt-cent-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/receipt-japanese-yen-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/receipt-pound-sterling-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/receipt-russian-ruble-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/receipt-swiss-franc-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/receipt-text-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/rectangle-circle-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/rectangle-vertical-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/recycle-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/redo-dot-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/redo2-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/refresh-cw-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/refresh-cw-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/repeat-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/replace-all-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/replace-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/reply-all-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/reply-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/rewind-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/ribbon-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/rocket-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/rocking-chair-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/roller-coaster-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/rotate-ccw-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/rotate-ccw-key-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/rotate-ccw-square-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/rotate-cw-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/rotate-cw-square-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/rotate3d-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/route-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/router-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/rows2-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/rows3-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/rows4-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/rss-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/ruler-dimension-line-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/sailboat-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/salad-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/sandwich-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/satellite-dish-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/satellite-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/saudi-riyal-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/save-all-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/save-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/save-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/scale-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/scale3d-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/scaling-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/scan-barcode-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/scan-face-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/scan-heart-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/scan-line-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/scan-qr-code-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/scan-search-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/scissors-line-dashed-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/screen-share-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/screen-share-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/scroll-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/scroll-text-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/search-check-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/search-code-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/search-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/section-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/send-horizontal-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/send-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/send-to-back-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/separator-horizontal-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/separator-vertical-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/server-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/server-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/settings-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/settings2-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/share2-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/shield-alert-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/shield-ban-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/shield-ellipsis-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/shield-half-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/shield-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/shield-minus-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/shield-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/shield-plus-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/shield-question-mark-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/shield-user-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/shield-x-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/ship-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/ship-wheel-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/shirt-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/shopping-bag-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/shopping-basket-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/shopping-cart-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/shovel-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/shower-head-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/signal-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/signal-low-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/signal-medium-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/signal-zero-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/signature-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/signpost-big-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/siren-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/skip-back-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/sliders-horizontal-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/sliders-vertical-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/smartphone-charging-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/smile-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/smile-plus-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/soap-dispenser-droplet-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/sofa-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/soup-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/space-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/sparkles-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/speaker-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/speech-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/spell-check-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/spell-check2-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/spline-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/spline-pointer-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/spool-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/spray-can-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/sprout-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/square-arrow-down-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/square-arrow-down-left-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/square-arrow-left-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/square-arrow-out-down-left-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/square-arrow-out-down-right-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/square-arrow-out-up-left-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/square-arrow-out-up-right-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/square-arrow-right-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/square-asterisk-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/square-bottom-dashed-scissors-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/square-chart-gantt-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/square-check-big-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/square-check-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/square-chevron-left-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/square-chevron-right-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/square-chevron-up-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/square-code-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/square-dashed-bottom-code-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/square-dashed-bottom-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/square-dashed-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/square-dashed-kanban-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/square-dashed-mouse-pointer-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/square-dashed-top-solid-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/square-divide-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/square-equal-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/square-function-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/square-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/square-menu-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/square-minus-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/square-mouse-pointer-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/square-parking-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/square-parking-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/square-pen-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/square-percent-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/square-pi-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/square-pilcrow-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/square-play-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/square-plus-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/square-power-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/square-round-corner-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/square-scissors-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/square-slash-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/square-split-horizontal-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/square-split-vertical-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/square-square-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/square-terminal-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/square-user-round-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/square-x-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/squares-exclude-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/squares-intersect-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/squares-subtract-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/squares-unite-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/squircle-dashed-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/squircle-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/squirrel-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/stamp-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/star-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/star-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/step-back-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/stethoscope-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/stretch-horizontal-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/stretch-vertical-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/strikethrough-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/sun-moon-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/sun-snow-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/swiss-franc-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/switch-camera-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/sword-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/swords-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/syringe-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/table-cells-merge-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/table-cells-split-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/table-columns-split-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/table-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/table-of-contents-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/table-rows-split-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/table2-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/tablet-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/tablet-smartphone-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/tablets-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/tag-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/tally2-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/tally3-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/tally4-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/tally5-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/tangent-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/target-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/tent-tree-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/terminal-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/test-tube-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/test-tubes-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/text-cursor-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/text-cursor-input-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/text-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/text-quote-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/text-search-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/text-select-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/theater-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/thermometer-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/thermometer-snowflake-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/thermometer-sun-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/thumbs-down-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/thumbs-up-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/ticket-check-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/ticket-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/ticket-plus-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/ticket-slash-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/ticket-x-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/timer-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/timer-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/timer-reset-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/tornado-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/torus-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/touchpad-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/tower-control-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/toy-brick-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/traffic-cone-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/train-front-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/train-front-tunnel-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/train-track-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/trash-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/trash2-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/tree-deciduous-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/trees-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/trello-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/trending-up-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/triangle-alert-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/truck-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/tv-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/tv-minimal-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/tv-minimal-play-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/twitch-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/twitter-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/type-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/umbrella-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/underline-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/ungroup-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/university-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/unplug-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/user-lock-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/user-minus-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/user-round-pen-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/user-round-plus-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/user-x-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/users-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/vault-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/vegan-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/video-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/video-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/videotape-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/view-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/volume-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/volume-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/volume-x-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/volume2-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/vote-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/wallet-cards-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/wallet-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/wallet-minimal-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/wallpaper-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/wand-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/warehouse-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/watch-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/waves-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/waves-ladder-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/webcam-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/webhook-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/weight-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/wheat-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/wheat-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/whole-word-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/wifi-cog-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/wifi-high-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/wifi-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/wifi-low-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/wifi-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/wifi-pen-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/wifi-zero-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/wind-arrow-down-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/workflow-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/worm-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/x-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/youtube-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/zap-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/zap-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/zoom-in-icon.d.ts +2 -2
- package/dist/types/components/image/image.d.ts +3 -3
- package/dist/types/components/indicator/indicator.d.ts +7 -7
- package/dist/types/components/infinite-scroll-area/infinite-scroll-area.d.ts +7 -7
- package/dist/types/components/input/input-addon.d.ts +3 -3
- package/dist/types/components/input/input-element.d.ts +5 -5
- package/dist/types/components/input/input.d.ts +3 -3
- package/dist/types/components/kbd/kbd.d.ts +3 -3
- package/dist/types/components/link/link.d.ts +3 -3
- package/dist/types/components/link-box/link-box.d.ts +6 -6
- package/dist/types/components/list/list.d.ts +8 -8
- package/dist/types/components/loading/loading-provider.d.ts +2 -2
- package/dist/types/components/loading/use-loading-component.d.ts +2 -2
- package/dist/types/components/loading/utils.d.ts +3 -3
- package/dist/types/components/mark/mark.d.ts +3 -3
- package/dist/types/components/modal/modal.d.ts +8 -8
- package/dist/types/components/modal/modal.style.d.ts +2 -2
- package/dist/types/components/motion/index.types.d.ts +7 -7
- package/dist/types/components/native-select/native-select.d.ts +6 -6
- package/dist/types/components/native-table/native-table.d.ts +9 -9
- package/dist/types/components/number-input/number-input.d.ts +5 -5
- package/dist/types/components/pagination/pagination.d.ts +8 -8
- package/dist/types/components/pagination/use-pagination.d.ts +2 -2
- package/dist/types/components/password-input/password-input.d.ts +5 -5
- package/dist/types/components/password-input/strength-meter.d.ts +5 -5
- package/dist/types/components/password-input/use-password-input.d.ts +2 -2
- package/dist/types/components/picture/picture.d.ts +4 -4
- package/dist/types/components/pin-input/pin-input.d.ts +5 -5
- package/dist/types/components/pin-input/use-pin-input.d.ts +2 -2
- package/dist/types/components/popover/popover.d.ts +6 -6
- package/dist/types/components/progress/progress.d.ts +7 -7
- package/dist/types/components/reorder/reorder.d.ts +7 -8
- package/dist/types/components/reorder/use-reorder.d.ts +6 -6
- package/dist/types/components/resizable/resizable.d.ts +5 -5
- package/dist/types/components/resizable/use-resizable.d.ts +2 -2
- package/dist/types/components/ripple/ripple.d.ts +3 -3
- package/dist/types/components/ripple/use-ripple.d.ts +2 -2
- package/dist/types/components/rotate/rotate.d.ts +3 -3
- package/dist/types/components/scroll-area/scroll-area.d.ts +5 -5
- package/dist/types/components/segmented-control/segmented-control.d.ts +5 -5
- package/dist/types/components/segmented-control/use-segmented-control.d.ts +4 -4
- package/dist/types/components/separator/separator.d.ts +3 -3
- package/dist/types/components/simple-grid/simple-grid.d.ts +3 -3
- package/dist/types/components/skeleton/skeleton.d.ts +3 -3
- package/dist/types/components/slide/slide-fade.d.ts +5 -5
- package/dist/types/components/slide/slide.d.ts +5 -5
- package/dist/types/components/stack/h-stack.d.ts +5 -5
- package/dist/types/components/stack/stack.d.ts +5 -5
- package/dist/types/components/stack/v-stack.d.ts +5 -5
- package/dist/types/components/stack/z-stack.d.ts +5 -5
- package/dist/types/components/stat/stat.d.ts +5 -5
- package/dist/types/components/status/status.d.ts +5 -5
- package/dist/types/components/steps/steps.d.ts +8 -8
- package/dist/types/components/steps/steps.style.d.ts +1 -1
- package/dist/types/components/steps/use-steps.d.ts +5 -5
- package/dist/types/components/switch/switch.d.ts +6 -7
- package/dist/types/components/tabs/tabs.d.ts +5 -5
- package/dist/types/components/tabs/use-tabs.d.ts +6 -6
- package/dist/types/components/tag/tag.d.ts +8 -8
- package/dist/types/components/tag/tag.style.d.ts +1 -1
- package/dist/types/components/text/text.d.ts +3 -3
- package/dist/types/components/textarea/textarea.d.ts +3 -3
- package/dist/types/components/textarea/use-autosize.d.ts +2 -2
- package/dist/types/components/toggle/toggle.d.ts +6 -6
- package/dist/types/components/toggle/use-toggle-group.d.ts +2 -2
- package/dist/types/components/toggle/use-toggle.d.ts +4 -4
- package/dist/types/components/tooltip/tooltip.d.ts +5 -5
- package/dist/types/components/visually-hidden/visually-hidden.d.ts +3 -3
- package/dist/types/components/wrap/wrap.d.ts +3 -3
- package/dist/types/core/components/create-component.d.ts +18 -18
- package/dist/types/core/components/index.types.d.ts +4 -4
- package/dist/types/core/components/props.d.ts +11 -11
- package/dist/types/core/components/use-component-style.d.ts +6 -6
- package/dist/types/core/css/css.d.ts +3 -3
- package/dist/types/core/css/index.types.d.ts +4 -4
- package/dist/types/core/css/styles.d.ts +117 -117
- package/dist/types/core/css/use-inject-vars.d.ts +2 -2
- package/dist/types/core/css/utils.d.ts +2 -2
- package/dist/types/core/system/color-mode-provider.d.ts +2 -2
- package/dist/types/core/system/color-mode-script.d.ts +2 -2
- package/dist/types/core/system/create-system.d.ts +3 -3
- package/dist/types/core/system/index.types.d.ts +16 -16
- package/dist/types/core/system/layer.d.ts +2 -2
- package/dist/types/core/system/styled.d.ts +2 -2
- package/dist/types/core/system/system-provider.d.ts +2 -2
- package/dist/types/core/system/theme-script.d.ts +2 -2
- package/dist/types/core/system/var.d.ts +5 -5
- package/dist/types/hooks/use-breakpoint/use-breakpoint-state.d.ts +2 -2
- package/dist/types/hooks/use-clickable/index.d.ts +9 -9
- package/dist/types/hooks/use-clipboard/index.d.ts +2 -2
- package/dist/types/hooks/use-counter/index.d.ts +2 -2
- package/dist/types/hooks/use-descendant/index.d.ts +2 -2
- package/dist/types/hooks/use-event-listener/index.d.ts +4 -4
- package/dist/types/hooks/use-hover/index.d.ts +2 -2
- package/dist/types/hooks/use-pan-event/index.d.ts +6 -6
- package/dist/types/hooks/use-popper/index.d.ts +4 -4
- package/dist/types/hooks/use-resize-observer/index.d.ts +3 -3
- package/dist/types/index.d.ts +15 -13
- package/dist/types/providers/i18n-provider/i18n-provider.d.ts +8 -8
- package/dist/types/providers/i18n-provider/icu.types.d.ts +4 -4
- package/dist/types/utils/children.d.ts +2 -2
- package/dist/types/utils/common/array.d.ts +6 -0
- package/dist/types/utils/common/assertion.d.ts +23 -0
- package/dist/types/utils/common/calc.d.ts +25 -0
- package/dist/types/utils/common/color.d.ts +20 -0
- package/dist/types/utils/common/dom.d.ts +61 -0
- package/dist/types/utils/common/event.d.ts +21 -0
- package/dist/types/utils/common/function.d.ts +8 -0
- package/dist/types/utils/common/i18n.d.ts +5 -0
- package/dist/types/utils/common/index.d.ts +14 -0
- package/dist/types/utils/common/index.types.d.ts +15 -0
- package/dist/types/utils/common/module.d.ts +5 -0
- package/dist/types/utils/common/number.d.ts +11 -0
- package/dist/types/utils/common/object.d.ts +36 -0
- package/dist/types/utils/common/string.d.ts +16 -0
- package/dist/types/utils/index.d.ts +14 -13
- package/package.json +11 -8
- package/dist/cjs/index.cjs.map +0 -1
- package/dist/cjs/utils/index.cjs.map +0 -1
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/utils/index.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"field.cjs","names":["fieldStyle","styled"],"sources":["../../../../src/components/field/field.tsx"],"sourcesContent":["\"use client\"\n\nimport type { ReactNode } from \"react\"\nimport type { HTMLStyledProps, ThemeProps } from \"../../core\"\nimport type { FieldStyle } from \"./field.style\"\nimport { isValidElement, useId, useMemo, useState } from \"react\"\nimport { createSlotComponent, styled } from \"../../core\"\nimport {\n createContext,\n dataAttr,\n findChild,\n getValidChildren,\n isEmpty,\n omitChildren,\n} from \"../../utils\"\nimport { fieldStyle } from \"./field.style\"\n\nexport interface FieldContext\n extends FieldProps,\n Pick<FieldRootProps, \"replace\"> {\n focused: boolean\n onBlur: () => void\n onFocus: () => void\n id?: string\n errorMessageId?: string\n helperMessageId?: string\n}\n\nexport const [FieldContext, useFieldContext] = createContext<FieldContext>({\n name: \"FieldContext\",\n strict: false,\n})\n\nexport interface FieldProps {\n /**\n * If `true`, the field will be disabled.\n *\n * @default false\n */\n disabled?: boolean\n /**\n * If `true`, the field will be invalid.\n *\n * @default false\n */\n invalid?: boolean\n /**\n * If `true`, the field will be readonly.\n *\n * @default false\n */\n readOnly?: boolean\n /**\n * If `true`, the field will be required.\n *\n * @default false\n */\n required?: boolean\n}\n\nexport interface FieldRootProps\n extends HTMLStyledProps,\n ThemeProps<FieldStyle>,\n Pick<FieldLabelProps, \"optionalIndicator\" | \"requiredIndicator\">,\n FieldProps {\n /**\n * The field error message to use.\n */\n errorMessage?: ReactNode\n /**\n * The field helper message to use.\n */\n helperMessage?: ReactNode\n /**\n * The field label to use.\n */\n label?: ReactNode\n /**\n * If `true`, switch between helper message and error message using invalid.\n *\n * @default true\n */\n replace?: boolean\n /**\n * Props the error message component.\n */\n errorMessageProps?: FieldErrorMessageProps\n /**\n * Props the helper message component.\n */\n helperMessageProps?: FieldHelperMessageProps\n /**\n * Props the label component.\n */\n labelProps?: FieldLabelProps\n}\n\nexport const {\n PropsContext: FieldPropsContext,\n usePropsContext: useFieldPropsContext,\n withContext,\n withProvider,\n} = createSlotComponent<FieldRootProps, FieldStyle>(\"field\", fieldStyle)\n\n/**\n * `Field` is a component used to group form elements with label, helper message, error message, etc.\n *\n * @see https://yamada-ui.com/components/field\n */\nexport const FieldRoot = withProvider<\"div\", FieldRootProps>(\n ({\n id,\n children,\n disabled,\n errorMessage,\n helperMessage,\n invalid,\n label,\n optionalIndicator,\n readOnly,\n replace = true,\n required,\n requiredIndicator,\n errorMessageProps,\n helperMessageProps,\n labelProps,\n ...rest\n }) => {\n const uuid = useId()\n const helperMessageId = useId()\n const errorMessageId = useId()\n const [focused, setFocused] = useState<boolean>(false)\n const validChildren = getValidChildren(children)\n const customLabel = findChild(validChildren, FieldLabel)\n const customHelperMessage = findChild(validChildren, FieldHelperMessage)\n const customErrorMessage = findChild(validChildren, FieldErrorMessage)\n const cloneChildren = !isEmpty(validChildren)\n ? omitChildren(\n validChildren,\n FieldLabel,\n FieldHelperMessage,\n FieldErrorMessage,\n )\n : children\n\n id ??= uuid\n\n const context = useMemo(\n () => ({\n id,\n disabled,\n errorMessageId,\n focused,\n helperMessageId,\n invalid,\n readOnly,\n replace,\n required,\n onBlur: () => setFocused(false),\n onFocus: () => setFocused(true),\n }),\n [\n id,\n disabled,\n focused,\n invalid,\n helperMessageId,\n errorMessageId,\n readOnly,\n replace,\n required,\n ],\n )\n\n return (\n <FieldContext value={context}>\n <styled.div\n data-disabled={dataAttr(disabled)}\n data-focus={dataAttr(focused)}\n data-invalid={dataAttr(invalid)}\n data-readonly={dataAttr(readOnly)}\n {...rest}\n >\n {customLabel ||\n (label ? (\n <FieldLabel\n optionalIndicator={optionalIndicator}\n requiredIndicator={requiredIndicator}\n {...labelProps}\n >\n {label}\n </FieldLabel>\n ) : null)}\n\n {cloneChildren}\n\n {customHelperMessage ||\n (helperMessage ? (\n <FieldHelperMessage {...helperMessageProps}>\n {helperMessage}\n </FieldHelperMessage>\n ) : null)}\n\n {customErrorMessage ||\n (errorMessage ? (\n <FieldErrorMessage {...errorMessageProps}>\n {errorMessage}\n </FieldErrorMessage>\n ) : null)}\n </styled.div>\n </FieldContext>\n )\n },\n \"root\",\n)()\n\nexport interface FieldLabelProps extends HTMLStyledProps<\"label\"> {\n /**\n * The optional indicator to use.\n */\n optionalIndicator?: ReactNode\n /**\n * If `true`, the field will be required.\n *\n * @default false\n */\n required?: boolean\n /**\n * The required indicator to use.\n */\n requiredIndicator?: ReactNode\n}\n\nexport const FieldLabel = withContext<\"label\", FieldLabelProps>(\n ({\n id,\n htmlFor,\n children,\n optionalIndicator = null,\n required,\n requiredIndicator = null,\n ...rest\n }) => {\n const context = useFieldContext()\n\n required ??= context?.required\n\n return (\n <styled.label\n id={id}\n htmlFor={htmlFor ?? context?.id}\n data-disabled={dataAttr(context?.disabled)}\n data-focus={dataAttr(context?.focused)}\n data-invalid={dataAttr(context?.invalid)}\n data-readonly={dataAttr(context?.readOnly)}\n {...rest}\n >\n {children}\n\n {required ? (\n requiredIndicator ? (\n <FieldRequiredIndicator>{requiredIndicator}</FieldRequiredIndicator>\n ) : (\n <FieldRequiredIndicator />\n )\n ) : (\n optionalIndicator\n )}\n </styled.label>\n )\n },\n \"label\",\n)()\n\ninterface FieldRequiredIndicatorProps extends HTMLStyledProps<\"span\"> {}\n\nconst FieldRequiredIndicator = withContext<\"span\", FieldRequiredIndicatorProps>(\n ({ children, ...rest }) => {\n if (!isValidElement(children)) {\n return (\n <styled.span aria-hidden role=\"presentation\" {...rest}>\n {children ?? <>*</>}\n </styled.span>\n )\n } else {\n return children\n }\n },\n \"requiredIndicator\",\n)()\n\nexport interface FieldHelperMessageProps extends HTMLStyledProps<\"span\"> {}\n\nexport const FieldHelperMessage = withContext<\"span\", FieldHelperMessageProps>(\n (props) => {\n const { helperMessageId, invalid, replace } = useFieldContext() ?? {}\n\n if (replace && invalid) return null\n\n return <styled.span id={helperMessageId} {...props} />\n },\n \"helperMessage\",\n)()\n\nexport interface FieldErrorMessageProps extends HTMLStyledProps<\"span\"> {}\n\nexport const FieldErrorMessage = withContext<\"span\", FieldErrorMessageProps>(\n (props) => {\n const { errorMessageId, invalid } = useFieldContext() ?? {}\n\n if (!invalid) return null\n\n return <styled.span id={errorMessageId} aria-live=\"polite\" {...props} />\n },\n \"errorMessage\",\n)()\n"],"mappings":";;;;;;;;;;;;;;AA4BA,MAAa,CAAC,cAAc,gBAAgB,GAAG,oCAA4B;CACzE,MAAM;CACN,QAAQ;AACT,EAAC;AAkEF,MAAa,EACX,cAAc,mBACd,iBAAiB,sBACjB,aACA,cACD,GAAG,6DAAgD,SAASA,gDAAW;;;;;;AAOxE,MAAa,YAAY,aACvB,CAAC,EACC,IACA,UACA,UACA,cACA,eACA,SACA,OACA,mBACA,UACA,UAAU,MACV,UACA,mBACA,mBACA,oBACA,WACA,GAAG,MACJ,KAAK;CACJ,MAAM,OAAO,kBAAO;CACpB,MAAM,kBAAkB,kBAAO;CAC/B,MAAM,iBAAiB,kBAAO;CAC9B,MAAM,CAAC,SAAS,WAAW,GAAG,oBAAkB,MAAM;CACtD,MAAM,gBAAgB,wCAAiB,SAAS;CAChD,MAAM,cAAc,iCAAU,eAAe,WAAW;CACxD,MAAM,sBAAsB,iCAAU,eAAe,mBAAmB;CACxE,MAAM,qBAAqB,iCAAU,eAAe,kBAAkB;CACtE,MAAM,iBAAiB,+CAAQ,cAAc,GACzC,oCACE,eACA,YACA,oBACA,kBACD,GACD;AAEJ,QAAO;CAEP,MAAM,UAAU,mBACd,OAAO;EACL;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,QAAQ,MAAM,WAAW,MAAM;EAC/B,SAAS,MAAM,WAAW,KAAK;CAChC,IACD;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACD,EACF;AAED,wBACE,2BAAC;EAAa,OAAO;4BACnB,4BAACC,mCAAO;GACN,iBAAe,gDAAS,SAAS;GACjC,cAAY,gDAAS,QAAQ;GAC7B,gBAAc,gDAAS,QAAQ;GAC/B,iBAAe,gDAAS,SAAS;GACjC,GAAI;;IAEH,gBACE,wBACC,2BAAC;KACoB;KACA;KACnB,GAAI;eAEH;MACU,GACX;IAEL;IAEA,wBACE,gCACC,2BAAC;KAAmB,GAAI;eACrB;MACkB,GACnB;IAEL,uBACE,+BACC,2BAAC;KAAkB,GAAI;eACpB;MACiB,GAClB;;IACK;GACA;AAElB,GACD,OACD,EAAE;AAmBH,MAAa,aAAa,YACxB,CAAC,EACC,IACA,SACA,UACA,oBAAoB,MACpB,UACA,oBAAoB,KACpB,GAAG,MACJ,KAAK;CACJ,MAAM,UAAU,iBAAiB;AAEjC,cAAa,SAAS;AAEtB,wBACE,4BAACA,mCAAO;EACF;EACJ,SAAS,WAAW,SAAS;EAC7B,iBAAe,gDAAS,SAAS,SAAS;EAC1C,cAAY,gDAAS,SAAS,QAAQ;EACtC,gBAAc,gDAAS,SAAS,QAAQ;EACxC,iBAAe,gDAAS,SAAS,SAAS;EAC1C,GAAI;aAEH,UAEA,WACC,oCACE,2BAAC,oCAAwB,oBAA2C,mBAEpE,2BAAC,2BAAyB,GAG5B;GAEW;AAElB,GACD,QACD,EAAE;AAIH,MAAM,yBAAyB,YAC7B,CAAC,EAAE,SAAU,GAAG,MAAM,KAAK;AACzB,MAAK,0BAAe,SAAS,CAC3B,wBACE,2BAACA,mCAAO;EAAK;EAAY,MAAK;EAAe,GAAI;YAC9C,4BAAY,mEAAE,MAAI;GACP;KAGhB,QAAO;AAEV,GACD,oBACD,EAAE;AAIH,MAAa,qBAAqB,YAChC,CAAC,UAAU;CACT,MAAM,EAAE,iBAAiB,SAAS,SAAS,GAAG,iBAAiB,IAAI,CAAE;AAErE,KAAI,WAAW,QAAS,QAAO;AAE/B,wBAAO,2BAACA,mCAAO;EAAK,IAAI;EAAiB,GAAI;GAAS;AACvD,GACD,gBACD,EAAE;AAIH,MAAa,oBAAoB,YAC/B,CAAC,UAAU;CACT,MAAM,EAAE,gBAAgB,SAAS,GAAG,iBAAiB,IAAI,CAAE;AAE3D,MAAK,QAAS,QAAO;AAErB,wBAAO,2BAACA,mCAAO;EAAK,IAAI;EAAgB,aAAU;EAAS,GAAI;GAAS;AACzE,GACD,eACD,EAAE"}
|
|
1
|
+
{"version":3,"file":"field.cjs","names":["fieldStyle","styled"],"sources":["../../../../src/components/field/field.tsx"],"sourcesContent":["\"use client\"\n\nimport type { ReactNode } from \"react\"\nimport type { HTMLStyledProps, ThemeProps } from \"../../core\"\nimport type { FieldStyle } from \"./field.style\"\nimport { isValidElement, useId, useMemo, useState } from \"react\"\nimport { createSlotComponent, styled } from \"../../core\"\nimport {\n createContext,\n dataAttr,\n findChild,\n getValidChildren,\n isEmpty,\n omitChildren,\n} from \"../../utils\"\nimport { fieldStyle } from \"./field.style\"\n\nexport interface FieldContext\n extends FieldProps,\n Pick<FieldRootProps, \"replace\"> {\n focused: boolean\n onBlur: () => void\n onFocus: () => void\n id?: string\n errorMessageId?: string\n helperMessageId?: string\n}\n\nexport const [FieldContext, useFieldContext] = createContext<FieldContext>({\n name: \"FieldContext\",\n strict: false,\n})\n\nexport interface FieldProps {\n /**\n * If `true`, the field will be disabled.\n *\n * @default false\n */\n disabled?: boolean\n /**\n * If `true`, the field will be invalid.\n *\n * @default false\n */\n invalid?: boolean\n /**\n * If `true`, the field will be readonly.\n *\n * @default false\n */\n readOnly?: boolean\n /**\n * If `true`, the field will be required.\n *\n * @default false\n */\n required?: boolean\n}\n\nexport interface FieldRootProps\n extends HTMLStyledProps,\n ThemeProps<FieldStyle>,\n Pick<FieldLabelProps, \"optionalIndicator\" | \"requiredIndicator\">,\n FieldProps {\n /**\n * The field error message to use.\n */\n errorMessage?: ReactNode\n /**\n * The field helper message to use.\n */\n helperMessage?: ReactNode\n /**\n * The field label to use.\n */\n label?: ReactNode\n /**\n * If `true`, switch between helper message and error message using invalid.\n *\n * @default true\n */\n replace?: boolean\n /**\n * Props the error message component.\n */\n errorMessageProps?: FieldErrorMessageProps\n /**\n * Props the helper message component.\n */\n helperMessageProps?: FieldHelperMessageProps\n /**\n * Props the label component.\n */\n labelProps?: FieldLabelProps\n}\n\nexport const {\n PropsContext: FieldPropsContext,\n usePropsContext: useFieldPropsContext,\n withContext,\n withProvider,\n} = createSlotComponent<FieldRootProps, FieldStyle>(\"field\", fieldStyle)\n\n/**\n * `Field` is a component used to group form elements with label, helper message, error message, etc.\n *\n * @see https://yamada-ui.com/components/field\n */\nexport const FieldRoot = withProvider<\"div\", FieldRootProps>(\n ({\n id,\n children,\n disabled,\n errorMessage,\n helperMessage,\n invalid,\n label,\n optionalIndicator,\n readOnly,\n replace = true,\n required,\n requiredIndicator,\n errorMessageProps,\n helperMessageProps,\n labelProps,\n ...rest\n }) => {\n const uuid = useId()\n const helperMessageId = useId()\n const errorMessageId = useId()\n const [focused, setFocused] = useState<boolean>(false)\n const validChildren = getValidChildren(children)\n const customLabel = findChild(validChildren, FieldLabel)\n const customHelperMessage = findChild(validChildren, FieldHelperMessage)\n const customErrorMessage = findChild(validChildren, FieldErrorMessage)\n const cloneChildren = !isEmpty(validChildren)\n ? omitChildren(\n validChildren,\n FieldLabel,\n FieldHelperMessage,\n FieldErrorMessage,\n )\n : children\n\n id ??= uuid\n\n const context = useMemo(\n () => ({\n id,\n disabled,\n errorMessageId,\n focused,\n helperMessageId,\n invalid,\n readOnly,\n replace,\n required,\n onBlur: () => setFocused(false),\n onFocus: () => setFocused(true),\n }),\n [\n id,\n disabled,\n focused,\n invalid,\n helperMessageId,\n errorMessageId,\n readOnly,\n replace,\n required,\n ],\n )\n\n return (\n <FieldContext value={context}>\n <styled.div\n data-disabled={dataAttr(disabled)}\n data-focus={dataAttr(focused)}\n data-invalid={dataAttr(invalid)}\n data-readonly={dataAttr(readOnly)}\n {...rest}\n >\n {customLabel ||\n (label ? (\n <FieldLabel\n optionalIndicator={optionalIndicator}\n requiredIndicator={requiredIndicator}\n {...labelProps}\n >\n {label}\n </FieldLabel>\n ) : null)}\n\n {cloneChildren}\n\n {customHelperMessage ||\n (helperMessage ? (\n <FieldHelperMessage {...helperMessageProps}>\n {helperMessage}\n </FieldHelperMessage>\n ) : null)}\n\n {customErrorMessage ||\n (errorMessage ? (\n <FieldErrorMessage {...errorMessageProps}>\n {errorMessage}\n </FieldErrorMessage>\n ) : null)}\n </styled.div>\n </FieldContext>\n )\n },\n \"root\",\n)()\n\nexport interface FieldLabelProps extends HTMLStyledProps<\"label\"> {\n /**\n * The optional indicator to use.\n */\n optionalIndicator?: ReactNode\n /**\n * If `true`, the field will be required.\n *\n * @default false\n */\n required?: boolean\n /**\n * The required indicator to use.\n */\n requiredIndicator?: ReactNode\n}\n\nexport const FieldLabel = withContext<\"label\", FieldLabelProps>(\n ({\n id,\n htmlFor,\n children,\n optionalIndicator = null,\n required,\n requiredIndicator = null,\n ...rest\n }) => {\n const context = useFieldContext()\n\n required ??= context?.required\n\n return (\n <styled.label\n id={id}\n htmlFor={htmlFor ?? context?.id}\n data-disabled={dataAttr(context?.disabled)}\n data-focus={dataAttr(context?.focused)}\n data-invalid={dataAttr(context?.invalid)}\n data-readonly={dataAttr(context?.readOnly)}\n {...rest}\n >\n {children}\n\n {required ? (\n requiredIndicator ? (\n <FieldRequiredIndicator>{requiredIndicator}</FieldRequiredIndicator>\n ) : (\n <FieldRequiredIndicator />\n )\n ) : (\n optionalIndicator\n )}\n </styled.label>\n )\n },\n \"label\",\n)()\n\ninterface FieldRequiredIndicatorProps extends HTMLStyledProps<\"span\"> {}\n\nconst FieldRequiredIndicator = withContext<\"span\", FieldRequiredIndicatorProps>(\n ({ children, ...rest }) => {\n if (!isValidElement(children)) {\n return (\n <styled.span aria-hidden role=\"presentation\" {...rest}>\n {children ?? <>*</>}\n </styled.span>\n )\n } else {\n return children\n }\n },\n \"requiredIndicator\",\n)()\n\nexport interface FieldHelperMessageProps extends HTMLStyledProps<\"span\"> {}\n\nexport const FieldHelperMessage = withContext<\"span\", FieldHelperMessageProps>(\n (props) => {\n const { helperMessageId, invalid, replace } = useFieldContext() ?? {}\n\n if (replace && invalid) return null\n\n return <styled.span id={helperMessageId} {...props} />\n },\n \"helperMessage\",\n)()\n\nexport interface FieldErrorMessageProps extends HTMLStyledProps<\"span\"> {}\n\nexport const FieldErrorMessage = withContext<\"span\", FieldErrorMessageProps>(\n (props) => {\n const { errorMessageId, invalid } = useFieldContext() ?? {}\n\n if (!invalid) return null\n\n return <styled.span id={errorMessageId} aria-live=\"polite\" {...props} />\n },\n \"errorMessage\",\n)()\n"],"mappings":";;;;;;;;;;;;;;;AA4BA,MAAa,CAAC,cAAc,gBAAgB,GAAG,oCAA4B;CACzE,MAAM;CACN,QAAQ;AACT,EAAC;AAkEF,MAAa,EACX,cAAc,mBACd,iBAAiB,sBACjB,aACA,cACD,GAAG,6DAAgD,SAASA,gDAAW;;;;;;AAOxE,MAAa,YAAY,aACvB,CAAC,EACC,IACA,UACA,UACA,cACA,eACA,SACA,OACA,mBACA,UACA,UAAU,MACV,UACA,mBACA,mBACA,oBACA,WACA,GAAG,MACJ,KAAK;CACJ,MAAM,OAAO,kBAAO;CACpB,MAAM,kBAAkB,kBAAO;CAC/B,MAAM,iBAAiB,kBAAO;CAC9B,MAAM,CAAC,SAAS,WAAW,GAAG,oBAAkB,MAAM;CACtD,MAAM,gBAAgB,wCAAiB,SAAS;CAChD,MAAM,cAAc,iCAAU,eAAe,WAAW;CACxD,MAAM,sBAAsB,iCAAU,eAAe,mBAAmB;CACxE,MAAM,qBAAqB,iCAAU,eAAe,kBAAkB;CACtE,MAAM,iBAAiB,uCAAQ,cAAc,GACzC,oCACE,eACA,YACA,oBACA,kBACD,GACD;AAEJ,QAAO;CAEP,MAAM,UAAU,mBACd,OAAO;EACL;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,QAAQ,MAAM,WAAW,MAAM;EAC/B,SAAS,MAAM,WAAW,KAAK;CAChC,IACD;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACD,EACF;AAED,wBACE,2BAAC;EAAa,OAAO;4BACnB,4BAACC,mCAAO;GACN,iBAAe,kCAAS,SAAS;GACjC,cAAY,kCAAS,QAAQ;GAC7B,gBAAc,kCAAS,QAAQ;GAC/B,iBAAe,kCAAS,SAAS;GACjC,GAAI;;IAEH,gBACE,wBACC,2BAAC;KACoB;KACA;KACnB,GAAI;eAEH;MACU,GACX;IAEL;IAEA,wBACE,gCACC,2BAAC;KAAmB,GAAI;eACrB;MACkB,GACnB;IAEL,uBACE,+BACC,2BAAC;KAAkB,GAAI;eACpB;MACiB,GAClB;;IACK;GACA;AAElB,GACD,OACD,EAAE;AAmBH,MAAa,aAAa,YACxB,CAAC,EACC,IACA,SACA,UACA,oBAAoB,MACpB,UACA,oBAAoB,KACpB,GAAG,MACJ,KAAK;CACJ,MAAM,UAAU,iBAAiB;AAEjC,cAAa,SAAS;AAEtB,wBACE,4BAACA,mCAAO;EACF;EACJ,SAAS,WAAW,SAAS;EAC7B,iBAAe,kCAAS,SAAS,SAAS;EAC1C,cAAY,kCAAS,SAAS,QAAQ;EACtC,gBAAc,kCAAS,SAAS,QAAQ;EACxC,iBAAe,kCAAS,SAAS,SAAS;EAC1C,GAAI;aAEH,UAEA,WACC,oCACE,2BAAC,oCAAwB,oBAA2C,mBAEpE,2BAAC,2BAAyB,GAG5B;GAEW;AAElB,GACD,QACD,EAAE;AAIH,MAAM,yBAAyB,YAC7B,CAAC,EAAE,SAAU,GAAG,MAAM,KAAK;AACzB,MAAK,0BAAe,SAAS,CAC3B,wBACE,2BAACA,mCAAO;EAAK;EAAY,MAAK;EAAe,GAAI;YAC9C,4BAAY,mEAAE,MAAI;GACP;KAGhB,QAAO;AAEV,GACD,oBACD,EAAE;AAIH,MAAa,qBAAqB,YAChC,CAAC,UAAU;CACT,MAAM,EAAE,iBAAiB,SAAS,SAAS,GAAG,iBAAiB,IAAI,CAAE;AAErE,KAAI,WAAW,QAAS,QAAO;AAE/B,wBAAO,2BAACA,mCAAO;EAAK,IAAI;EAAiB,GAAI;GAAS;AACvD,GACD,gBACD,EAAE;AAIH,MAAa,oBAAoB,YAC/B,CAAC,UAAU;CACT,MAAM,EAAE,gBAAgB,SAAS,GAAG,iBAAiB,IAAI,CAAE;AAE3D,MAAK,QAAS,QAAO;AAErB,wBAAO,2BAACA,mCAAO;EAAK,IAAI;EAAgB,aAAU;EAAS,GAAI;GAAS;AACzE,GACD,eACD,EAAE"}
|
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
5
|
-
const
|
|
5
|
+
const require_utils_common_function = require('../../utils/common/function.cjs');
|
|
6
|
+
const require_utils_common_dom = require('../../utils/common/dom.cjs');
|
|
7
|
+
const require_utils_common_string = require('../../utils/common/string.cjs');
|
|
6
8
|
const require_core_system_environment_provider = require('../../core/system/environment-provider.cjs');
|
|
7
9
|
const require_components_field_field = require('./field.cjs');
|
|
8
10
|
const require_components_fieldset_fieldset = require('../fieldset/fieldset.cjs');
|
|
@@ -35,10 +37,10 @@ const useFieldProps = ({ id, "aria-describedby": ariaDescribedby, disabled, inva
|
|
|
35
37
|
ariaDescribedby
|
|
36
38
|
]);
|
|
37
39
|
const dataProps = (0, react.useMemo)(() => ({
|
|
38
|
-
"data-disabled":
|
|
39
|
-
"data-invalid":
|
|
40
|
-
"data-readonly":
|
|
41
|
-
"data-required":
|
|
40
|
+
"data-disabled": require_utils_common_dom.dataAttr(disabled),
|
|
41
|
+
"data-invalid": require_utils_common_dom.dataAttr(invalid),
|
|
42
|
+
"data-readonly": require_utils_common_dom.dataAttr(readOnly),
|
|
43
|
+
"data-required": require_utils_common_dom.dataAttr(required)
|
|
42
44
|
}), [
|
|
43
45
|
disabled,
|
|
44
46
|
invalid,
|
|
@@ -51,11 +53,11 @@ const useFieldProps = ({ id, "aria-describedby": ariaDescribedby, disabled, inva
|
|
|
51
53
|
const errorMessageId = invalid && hasErrorMessage ? fieldContext.errorMessageId : void 0;
|
|
52
54
|
const helperMessageId = (!fieldContext?.replace || !invalid) && hasHelperMessage ? fieldContext.helperMessageId : void 0;
|
|
53
55
|
return {
|
|
54
|
-
"aria-describedby":
|
|
55
|
-
"aria-disabled":
|
|
56
|
-
"aria-invalid":
|
|
57
|
-
"aria-readonly": notSupportReadOnly ? void 0 :
|
|
58
|
-
"aria-required":
|
|
56
|
+
"aria-describedby": require_utils_common_string.cx(errorMessageId, helperMessageId, ariaDescribedby),
|
|
57
|
+
"aria-disabled": require_utils_common_dom.ariaAttr(notSupportReadOnly ? readOnly || disabled : disabled),
|
|
58
|
+
"aria-invalid": require_utils_common_dom.ariaAttr(invalid),
|
|
59
|
+
"aria-readonly": notSupportReadOnly ? void 0 : require_utils_common_dom.ariaAttr(readOnly),
|
|
60
|
+
"aria-required": require_utils_common_dom.ariaAttr(required)
|
|
59
61
|
};
|
|
60
62
|
}, [
|
|
61
63
|
fieldContext,
|
|
@@ -68,8 +70,8 @@ const useFieldProps = ({ id, "aria-describedby": ariaDescribedby, disabled, inva
|
|
|
68
70
|
required
|
|
69
71
|
]);
|
|
70
72
|
const eventProps = (0, react.useMemo)(() => ({
|
|
71
|
-
onBlur:
|
|
72
|
-
onFocus:
|
|
73
|
+
onBlur: require_utils_common_function.handlerAll(fieldContext?.onBlur, onBlur),
|
|
74
|
+
onFocus: require_utils_common_function.handlerAll(fieldContext?.onFocus, onFocus)
|
|
73
75
|
}), [
|
|
74
76
|
fieldContext?.onBlur,
|
|
75
77
|
fieldContext?.onFocus,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-field-props.cjs","names":[],"sources":["../../../../src/components/field/use-field-props.ts"],"sourcesContent":["\"use client\"\n\nimport type { FocusEventHandler } from \"react\"\nimport type { Dict } from \"../../utils\"\nimport type { FieldProps } from \"./field\"\nimport { useMemo } from \"react\"\nimport { useEnvironment } from \"../../core\"\nimport { ariaAttr, cx, dataAttr, handlerAll } from \"../../utils\"\nimport { useFieldsetContext } from \"../fieldset\"\nimport { useFieldContext } from \"./field\"\n\nexport interface UseFieldProps<Y extends HTMLElement> extends FieldProps {\n id?: string\n notSupportReadOnly?: boolean\n onBlur?: FocusEventHandler<Y>\n onFocus?: FocusEventHandler<Y>\n}\n\nexport const useFieldProps = <Y extends HTMLElement, M extends Dict>(\n {\n id,\n \"aria-describedby\": ariaDescribedby,\n disabled,\n invalid,\n notSupportReadOnly,\n readOnly,\n required,\n onBlur,\n onFocus,\n ...rest\n }: M & UseFieldProps<Y> = {} as M & UseFieldProps<Y>,\n) => {\n const { getDocument } = useEnvironment()\n const fieldsetContext = useFieldsetContext()\n const fieldContext = useFieldContext()\n\n id ??= fieldContext?.id\n disabled ??= fieldContext?.disabled ?? fieldsetContext?.disabled\n required ??= fieldContext?.required\n readOnly ??= fieldContext?.readOnly\n invalid ??= fieldContext?.invalid ?? fieldsetContext?.invalid\n\n const props = useMemo(\n () => ({\n id,\n \"aria-describedby\": ariaDescribedby,\n disabled,\n readOnly: notSupportReadOnly ? undefined : readOnly,\n required,\n ...rest,\n }),\n [\n id,\n disabled,\n readOnly,\n required,\n rest,\n notSupportReadOnly,\n ariaDescribedby,\n ],\n )\n const dataProps = useMemo(\n () => ({\n \"data-disabled\": dataAttr(disabled),\n \"data-invalid\": dataAttr(invalid),\n \"data-readonly\": dataAttr(readOnly),\n \"data-required\": dataAttr(required),\n }),\n [disabled, invalid, readOnly, required],\n )\n const ariaProps = useMemo(() => {\n const hasErrorMessage =\n !!fieldContext?.errorMessageId &&\n !!getDocument()?.getElementById(fieldContext.errorMessageId)\n const hasHelperMessage =\n !!fieldContext?.helperMessageId &&\n !!getDocument()?.getElementById(fieldContext.helperMessageId)\n const errorMessageId =\n invalid && hasErrorMessage ? fieldContext.errorMessageId : undefined\n const helperMessageId =\n (!fieldContext?.replace || !invalid) && hasHelperMessage\n ? fieldContext.helperMessageId\n : undefined\n\n return {\n \"aria-describedby\": cx(errorMessageId, helperMessageId, ariaDescribedby),\n \"aria-disabled\": ariaAttr(\n notSupportReadOnly ? readOnly || disabled : disabled,\n ),\n \"aria-invalid\": ariaAttr(invalid),\n \"aria-readonly\": notSupportReadOnly ? undefined : ariaAttr(readOnly),\n \"aria-required\": ariaAttr(required),\n }\n }, [\n fieldContext,\n getDocument,\n invalid,\n ariaDescribedby,\n notSupportReadOnly,\n readOnly,\n disabled,\n required,\n ])\n const eventProps = useMemo(\n () => ({\n onBlur: handlerAll(fieldContext?.onBlur, onBlur),\n onFocus: handlerAll(fieldContext?.onFocus, onFocus),\n }),\n [fieldContext?.onBlur, fieldContext?.onFocus, onBlur, onFocus],\n )\n\n return {\n context: fieldContext,\n props,\n ariaProps,\n dataProps,\n eventProps,\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-field-props.cjs","names":[],"sources":["../../../../src/components/field/use-field-props.ts"],"sourcesContent":["\"use client\"\n\nimport type { FocusEventHandler } from \"react\"\nimport type { Dict } from \"../../utils\"\nimport type { FieldProps } from \"./field\"\nimport { useMemo } from \"react\"\nimport { useEnvironment } from \"../../core\"\nimport { ariaAttr, cx, dataAttr, handlerAll } from \"../../utils\"\nimport { useFieldsetContext } from \"../fieldset\"\nimport { useFieldContext } from \"./field\"\n\nexport interface UseFieldProps<Y extends HTMLElement> extends FieldProps {\n id?: string\n notSupportReadOnly?: boolean\n onBlur?: FocusEventHandler<Y>\n onFocus?: FocusEventHandler<Y>\n}\n\nexport const useFieldProps = <Y extends HTMLElement, M extends Dict>(\n {\n id,\n \"aria-describedby\": ariaDescribedby,\n disabled,\n invalid,\n notSupportReadOnly,\n readOnly,\n required,\n onBlur,\n onFocus,\n ...rest\n }: M & UseFieldProps<Y> = {} as M & UseFieldProps<Y>,\n) => {\n const { getDocument } = useEnvironment()\n const fieldsetContext = useFieldsetContext()\n const fieldContext = useFieldContext()\n\n id ??= fieldContext?.id\n disabled ??= fieldContext?.disabled ?? fieldsetContext?.disabled\n required ??= fieldContext?.required\n readOnly ??= fieldContext?.readOnly\n invalid ??= fieldContext?.invalid ?? fieldsetContext?.invalid\n\n const props = useMemo(\n () => ({\n id,\n \"aria-describedby\": ariaDescribedby,\n disabled,\n readOnly: notSupportReadOnly ? undefined : readOnly,\n required,\n ...rest,\n }),\n [\n id,\n disabled,\n readOnly,\n required,\n rest,\n notSupportReadOnly,\n ariaDescribedby,\n ],\n )\n const dataProps = useMemo(\n () => ({\n \"data-disabled\": dataAttr(disabled),\n \"data-invalid\": dataAttr(invalid),\n \"data-readonly\": dataAttr(readOnly),\n \"data-required\": dataAttr(required),\n }),\n [disabled, invalid, readOnly, required],\n )\n const ariaProps = useMemo(() => {\n const hasErrorMessage =\n !!fieldContext?.errorMessageId &&\n !!getDocument()?.getElementById(fieldContext.errorMessageId)\n const hasHelperMessage =\n !!fieldContext?.helperMessageId &&\n !!getDocument()?.getElementById(fieldContext.helperMessageId)\n const errorMessageId =\n invalid && hasErrorMessage ? fieldContext.errorMessageId : undefined\n const helperMessageId =\n (!fieldContext?.replace || !invalid) && hasHelperMessage\n ? fieldContext.helperMessageId\n : undefined\n\n return {\n \"aria-describedby\": cx(errorMessageId, helperMessageId, ariaDescribedby),\n \"aria-disabled\": ariaAttr(\n notSupportReadOnly ? readOnly || disabled : disabled,\n ),\n \"aria-invalid\": ariaAttr(invalid),\n \"aria-readonly\": notSupportReadOnly ? undefined : ariaAttr(readOnly),\n \"aria-required\": ariaAttr(required),\n }\n }, [\n fieldContext,\n getDocument,\n invalid,\n ariaDescribedby,\n notSupportReadOnly,\n readOnly,\n disabled,\n required,\n ])\n const eventProps = useMemo(\n () => ({\n onBlur: handlerAll(fieldContext?.onBlur, onBlur),\n onFocus: handlerAll(fieldContext?.onFocus, onFocus),\n }),\n [fieldContext?.onBlur, fieldContext?.onFocus, onBlur, onFocus],\n )\n\n return {\n context: fieldContext,\n props,\n ariaProps,\n dataProps,\n eventProps,\n }\n}\n"],"mappings":";;;;;;;;;;;;;AAkBA,MAAa,gBAAgB,CAC3B,EACE,IACA,oBAAoB,iBACpB,UACA,SACA,oBACA,UACA,UACA,QACA,QACA,GAAG,MACkB,GAAG,CAAE,MACzB;CACH,MAAM,EAAE,aAAa,GAAG,yDAAgB;CACxC,MAAM,kBAAkB,yDAAoB;CAC5C,MAAM,eAAe,gDAAiB;AAEtC,QAAO,cAAc;AACrB,cAAa,cAAc,YAAY,iBAAiB;AACxD,cAAa,cAAc;AAC3B,cAAa,cAAc;AAC3B,aAAY,cAAc,WAAW,iBAAiB;CAEtD,MAAM,QAAQ,mBACZ,OAAO;EACL;EACA,oBAAoB;EACpB;EACA,UAAU,8BAAiC;EAC3C;EACA,GAAG;CACJ,IACD;EACE;EACA;EACA;EACA;EACA;EACA;EACA;CACD,EACF;CACD,MAAM,YAAY,mBAChB,OAAO;EACL,iBAAiB,kCAAS,SAAS;EACnC,gBAAgB,kCAAS,QAAQ;EACjC,iBAAiB,kCAAS,SAAS;EACnC,iBAAiB,kCAAS,SAAS;CACpC,IACD;EAAC;EAAU;EAAS;EAAU;CAAS,EACxC;CACD,MAAM,YAAY,mBAAQ,MAAM;EAC9B,MAAM,oBACF,cAAc,oBACd,aAAa,EAAE,eAAe,aAAa,eAAe;EAC9D,MAAM,qBACF,cAAc,qBACd,aAAa,EAAE,eAAe,aAAa,gBAAgB;EAC/D,MAAM,iBACJ,WAAW,kBAAkB,aAAa;EAC5C,MAAM,oBACF,cAAc,YAAY,YAAY,mBACpC,aAAa;AAGnB,SAAO;GACL,oBAAoB,+BAAG,gBAAgB,iBAAiB,gBAAgB;GACxE,iBAAiB,kCACf,qBAAqB,YAAY,WAAW,SAC7C;GACD,gBAAgB,kCAAS,QAAQ;GACjC,iBAAiB,8BAAiC,kCAAS,SAAS;GACpE,iBAAiB,kCAAS,SAAS;EACpC;CACF,GAAE;EACD;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACD,EAAC;CACF,MAAM,aAAa,mBACjB,OAAO;EACL,QAAQ,yCAAW,cAAc,QAAQ,OAAO;EAChD,SAAS,yCAAW,cAAc,SAAS,QAAQ;CACpD,IACD;EAAC,cAAc;EAAQ,cAAc;EAAS;EAAQ;CAAQ,EAC/D;AAED,QAAO;EACL,SAAS;EACT;EACA;EACA;EACA;CACD;AACF"}
|
|
@@ -4,7 +4,8 @@
|
|
|
4
4
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
5
5
|
const require_utils_children = require('../../utils/children.cjs');
|
|
6
6
|
const require_utils_context = require('../../utils/context.cjs');
|
|
7
|
-
const
|
|
7
|
+
const require_utils_common_assertion = require('../../utils/common/assertion.cjs');
|
|
8
|
+
const require_utils_common_dom = require('../../utils/common/dom.cjs');
|
|
8
9
|
const require_core_system_factory = require('../../core/system/factory.cjs');
|
|
9
10
|
const require_core_components_create_component = require('../../core/components/create-component.cjs');
|
|
10
11
|
const require_components_fieldset_fieldset_style = require('./fieldset.style.cjs');
|
|
@@ -30,7 +31,7 @@ const FieldsetRoot = withProvider(({ id, children, disabled, errorMessage, helpe
|
|
|
30
31
|
const customContent = require_utils_children.findChild(validChildren, FieldsetContent);
|
|
31
32
|
const customHelperMessage = require_utils_children.findChild(validChildren, FieldsetHelperMessage);
|
|
32
33
|
const customErrorMessage = require_utils_children.findChild(validChildren, FieldsetErrorMessage);
|
|
33
|
-
const cloneChildren = !
|
|
34
|
+
const cloneChildren = !require_utils_common_assertion.isEmpty(validChildren) ? require_utils_children.omitChildren(validChildren, FieldsetLegend, FieldsetHeader, FieldsetContent, FieldsetHelperMessage, FieldsetErrorMessage) : children;
|
|
34
35
|
id ??= uuid;
|
|
35
36
|
const context = (0, react.useMemo)(() => ({
|
|
36
37
|
id,
|
|
@@ -72,8 +73,8 @@ const FieldsetLegend = withContext("legend", "legend")(void 0, (props) => {
|
|
|
72
73
|
const { id, disabled, invalid } = useFieldsetContext() ?? {};
|
|
73
74
|
return {
|
|
74
75
|
id,
|
|
75
|
-
"data-disabled":
|
|
76
|
-
"data-invalid":
|
|
76
|
+
"data-disabled": require_utils_common_dom.dataAttr(disabled),
|
|
77
|
+
"data-invalid": require_utils_common_dom.dataAttr(invalid),
|
|
77
78
|
...props
|
|
78
79
|
};
|
|
79
80
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fieldset.cjs","names":["fieldsetStyle","styled"],"sources":["../../../../src/components/fieldset/fieldset.tsx"],"sourcesContent":["\"use client\"\n\nimport type { ReactNode } from \"react\"\nimport type { HTMLStyledProps, ThemeProps } from \"../../core\"\nimport type { FieldsetStyle } from \"./fieldset.style\"\nimport { useId, useMemo } from \"react\"\nimport { createSlotComponent, styled } from \"../../core\"\nimport {\n createContext,\n dataAttr,\n findChild,\n getValidChildren,\n isEmpty,\n omitChildren,\n} from \"../../utils\"\nimport { fieldsetStyle } from \"./fieldset.style\"\n\nexport interface FieldsetContext\n extends Pick<FieldsetRootProps, \"disabled\" | \"invalid\"> {\n id?: string\n}\n\nexport const [FieldsetContext, useFieldsetContext] =\n createContext<FieldsetContext>({\n name: \"FieldsetContext\",\n strict: false,\n })\n\nexport interface FieldsetRootProps\n extends HTMLStyledProps<\"fieldset\">,\n ThemeProps<FieldsetStyle> {\n /**\n * If `true`, the fieldset will be disabled.\n *\n * @default false\n */\n disabled?: boolean\n /**\n * The fieldset error message to use.\n */\n errorMessage?: ReactNode\n /**\n * The fieldset helper message to use.\n */\n helperMessage?: ReactNode\n /**\n * If `true`, the fieldset will be invalid.\n *\n * @default false\n */\n invalid?: boolean\n /**\n * The fieldset legend to use.\n */\n legend?: ReactNode\n /**\n * Props the content component.\n */\n contentProps?: FieldsetContentProps\n /**\n * Props the error message component.\n */\n errorMessageProps?: FieldsetErrorMessageProps\n /**\n * Props the header component.\n */\n headerProps?: FieldsetHeaderProps\n /**\n * Props the helper message component.\n */\n helperMessageProps?: FieldsetHelperMessageProps\n /**\n * Props the legend component.\n */\n legendProps?: FieldsetLegendProps\n}\n\nexport const {\n PropsContext: FieldsetPropsContext,\n usePropsContext: useFieldsetPropsContext,\n withContext,\n withProvider,\n} = createSlotComponent<FieldsetRootProps, FieldsetStyle, FieldsetContext>(\n \"fieldset\",\n fieldsetStyle,\n)\n\n/**\n * `Fieldset` is a component used to group multiple controls.\n *\n * @see https://yamada-ui.com/components/fieldset\n */\nexport const FieldsetRoot = withProvider<\"fieldset\", FieldsetRootProps>(\n ({\n id,\n children,\n disabled,\n errorMessage,\n helperMessage,\n invalid,\n legend,\n contentProps,\n errorMessageProps,\n headerProps,\n helperMessageProps,\n legendProps,\n ...rest\n }) => {\n const uuid = useId()\n const validChildren = getValidChildren(children)\n const customLegend = findChild(validChildren, FieldsetLegend)\n const customHeader = findChild(validChildren, FieldsetHeader)\n const customContent = findChild(validChildren, FieldsetContent)\n const customHelperMessage = findChild(validChildren, FieldsetHelperMessage)\n const customErrorMessage = findChild(validChildren, FieldsetErrorMessage)\n const cloneChildren = !isEmpty(validChildren)\n ? omitChildren(\n validChildren,\n FieldsetLegend,\n FieldsetHeader,\n FieldsetContent,\n FieldsetHelperMessage,\n FieldsetErrorMessage,\n )\n : children\n\n id ??= uuid\n\n const context = useMemo(\n () => ({\n id,\n disabled,\n invalid,\n }),\n [id, disabled, invalid],\n )\n\n return (\n <FieldsetContext value={context}>\n <styled.fieldset {...rest}>\n {customHeader || (\n <FieldsetHeader {...headerProps}>\n {customLegend ||\n (legend ? (\n <FieldsetLegend {...legendProps}>{legend}</FieldsetLegend>\n ) : null)}\n\n {customHelperMessage ||\n (helperMessage ? (\n <FieldsetHelperMessage {...helperMessageProps}>\n {helperMessage}\n </FieldsetHelperMessage>\n ) : null)}\n </FieldsetHeader>\n )}\n\n {customContent || (\n <FieldsetContent {...contentProps}>{cloneChildren}</FieldsetContent>\n )}\n\n {customErrorMessage ||\n (errorMessage ? (\n <FieldsetErrorMessage {...errorMessageProps}>\n {errorMessage}\n </FieldsetErrorMessage>\n ) : null)}\n </styled.fieldset>\n </FieldsetContext>\n )\n },\n \"root\",\n)()\n\nexport interface FieldsetLegendProps extends HTMLStyledProps<\"legend\"> {}\n\nexport const FieldsetLegend = withContext<\"legend\", FieldsetLegendProps>(\n \"legend\",\n \"legend\",\n)(undefined, (props) => {\n const { id, disabled, invalid } = useFieldsetContext() ?? {}\n\n return {\n id,\n \"data-disabled\": dataAttr(disabled),\n \"data-invalid\": dataAttr(invalid),\n ...props,\n }\n})\n\nexport interface FieldsetHeaderProps extends HTMLStyledProps {}\n\nexport const FieldsetHeader = withContext<\"div\", FieldsetHeaderProps>(\n \"div\",\n \"header\",\n)()\n\nexport interface FieldsetContentProps extends HTMLStyledProps {}\n\nexport const FieldsetContent = withContext<\"div\", FieldsetContentProps>(\n \"div\",\n \"content\",\n)()\n\nexport interface FieldsetHelperMessageProps extends HTMLStyledProps<\"span\"> {}\n\nexport const FieldsetHelperMessage = withContext<\n \"span\",\n FieldsetHelperMessageProps\n>(\"span\", \"helperMessage\")(undefined, (props) => {\n const { id } = useFieldsetContext() ?? {}\n\n return { \"aria-describedby\": id, ...props }\n})\n\nexport interface FieldsetErrorMessageProps extends HTMLStyledProps<\"span\"> {}\n\nexport const FieldsetErrorMessage = withContext<\n \"span\",\n FieldsetErrorMessageProps\n>((props) => {\n const { invalid } = useFieldsetContext() ?? {}\n\n if (!invalid) return null\n\n return <styled.span aria-live=\"polite\" {...props} />\n}, \"errorMessage\")()\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"fieldset.cjs","names":["fieldsetStyle","styled"],"sources":["../../../../src/components/fieldset/fieldset.tsx"],"sourcesContent":["\"use client\"\n\nimport type { ReactNode } from \"react\"\nimport type { HTMLStyledProps, ThemeProps } from \"../../core\"\nimport type { FieldsetStyle } from \"./fieldset.style\"\nimport { useId, useMemo } from \"react\"\nimport { createSlotComponent, styled } from \"../../core\"\nimport {\n createContext,\n dataAttr,\n findChild,\n getValidChildren,\n isEmpty,\n omitChildren,\n} from \"../../utils\"\nimport { fieldsetStyle } from \"./fieldset.style\"\n\nexport interface FieldsetContext\n extends Pick<FieldsetRootProps, \"disabled\" | \"invalid\"> {\n id?: string\n}\n\nexport const [FieldsetContext, useFieldsetContext] =\n createContext<FieldsetContext>({\n name: \"FieldsetContext\",\n strict: false,\n })\n\nexport interface FieldsetRootProps\n extends HTMLStyledProps<\"fieldset\">,\n ThemeProps<FieldsetStyle> {\n /**\n * If `true`, the fieldset will be disabled.\n *\n * @default false\n */\n disabled?: boolean\n /**\n * The fieldset error message to use.\n */\n errorMessage?: ReactNode\n /**\n * The fieldset helper message to use.\n */\n helperMessage?: ReactNode\n /**\n * If `true`, the fieldset will be invalid.\n *\n * @default false\n */\n invalid?: boolean\n /**\n * The fieldset legend to use.\n */\n legend?: ReactNode\n /**\n * Props the content component.\n */\n contentProps?: FieldsetContentProps\n /**\n * Props the error message component.\n */\n errorMessageProps?: FieldsetErrorMessageProps\n /**\n * Props the header component.\n */\n headerProps?: FieldsetHeaderProps\n /**\n * Props the helper message component.\n */\n helperMessageProps?: FieldsetHelperMessageProps\n /**\n * Props the legend component.\n */\n legendProps?: FieldsetLegendProps\n}\n\nexport const {\n PropsContext: FieldsetPropsContext,\n usePropsContext: useFieldsetPropsContext,\n withContext,\n withProvider,\n} = createSlotComponent<FieldsetRootProps, FieldsetStyle, FieldsetContext>(\n \"fieldset\",\n fieldsetStyle,\n)\n\n/**\n * `Fieldset` is a component used to group multiple controls.\n *\n * @see https://yamada-ui.com/components/fieldset\n */\nexport const FieldsetRoot = withProvider<\"fieldset\", FieldsetRootProps>(\n ({\n id,\n children,\n disabled,\n errorMessage,\n helperMessage,\n invalid,\n legend,\n contentProps,\n errorMessageProps,\n headerProps,\n helperMessageProps,\n legendProps,\n ...rest\n }) => {\n const uuid = useId()\n const validChildren = getValidChildren(children)\n const customLegend = findChild(validChildren, FieldsetLegend)\n const customHeader = findChild(validChildren, FieldsetHeader)\n const customContent = findChild(validChildren, FieldsetContent)\n const customHelperMessage = findChild(validChildren, FieldsetHelperMessage)\n const customErrorMessage = findChild(validChildren, FieldsetErrorMessage)\n const cloneChildren = !isEmpty(validChildren)\n ? omitChildren(\n validChildren,\n FieldsetLegend,\n FieldsetHeader,\n FieldsetContent,\n FieldsetHelperMessage,\n FieldsetErrorMessage,\n )\n : children\n\n id ??= uuid\n\n const context = useMemo(\n () => ({\n id,\n disabled,\n invalid,\n }),\n [id, disabled, invalid],\n )\n\n return (\n <FieldsetContext value={context}>\n <styled.fieldset {...rest}>\n {customHeader || (\n <FieldsetHeader {...headerProps}>\n {customLegend ||\n (legend ? (\n <FieldsetLegend {...legendProps}>{legend}</FieldsetLegend>\n ) : null)}\n\n {customHelperMessage ||\n (helperMessage ? (\n <FieldsetHelperMessage {...helperMessageProps}>\n {helperMessage}\n </FieldsetHelperMessage>\n ) : null)}\n </FieldsetHeader>\n )}\n\n {customContent || (\n <FieldsetContent {...contentProps}>{cloneChildren}</FieldsetContent>\n )}\n\n {customErrorMessage ||\n (errorMessage ? (\n <FieldsetErrorMessage {...errorMessageProps}>\n {errorMessage}\n </FieldsetErrorMessage>\n ) : null)}\n </styled.fieldset>\n </FieldsetContext>\n )\n },\n \"root\",\n)()\n\nexport interface FieldsetLegendProps extends HTMLStyledProps<\"legend\"> {}\n\nexport const FieldsetLegend = withContext<\"legend\", FieldsetLegendProps>(\n \"legend\",\n \"legend\",\n)(undefined, (props) => {\n const { id, disabled, invalid } = useFieldsetContext() ?? {}\n\n return {\n id,\n \"data-disabled\": dataAttr(disabled),\n \"data-invalid\": dataAttr(invalid),\n ...props,\n }\n})\n\nexport interface FieldsetHeaderProps extends HTMLStyledProps {}\n\nexport const FieldsetHeader = withContext<\"div\", FieldsetHeaderProps>(\n \"div\",\n \"header\",\n)()\n\nexport interface FieldsetContentProps extends HTMLStyledProps {}\n\nexport const FieldsetContent = withContext<\"div\", FieldsetContentProps>(\n \"div\",\n \"content\",\n)()\n\nexport interface FieldsetHelperMessageProps extends HTMLStyledProps<\"span\"> {}\n\nexport const FieldsetHelperMessage = withContext<\n \"span\",\n FieldsetHelperMessageProps\n>(\"span\", \"helperMessage\")(undefined, (props) => {\n const { id } = useFieldsetContext() ?? {}\n\n return { \"aria-describedby\": id, ...props }\n})\n\nexport interface FieldsetErrorMessageProps extends HTMLStyledProps<\"span\"> {}\n\nexport const FieldsetErrorMessage = withContext<\n \"span\",\n FieldsetErrorMessageProps\n>((props) => {\n const { invalid } = useFieldsetContext() ?? {}\n\n if (!invalid) return null\n\n return <styled.span aria-live=\"polite\" {...props} />\n}, \"errorMessage\")()\n"],"mappings":";;;;;;;;;;;;;;;AAsBA,MAAa,CAAC,iBAAiB,mBAAmB,GAChD,oCAA+B;CAC7B,MAAM;CACN,QAAQ;AACT,EAAC;AAmDJ,MAAa,EACX,cAAc,sBACd,iBAAiB,yBACjB,aACA,cACD,GAAG,6DACF,YACAA,yDACD;;;;;;AAOD,MAAa,eAAe,aAC1B,CAAC,EACC,IACA,UACA,UACA,cACA,eACA,SACA,QACA,cACA,mBACA,aACA,oBACA,YACA,GAAG,MACJ,KAAK;CACJ,MAAM,OAAO,kBAAO;CACpB,MAAM,gBAAgB,wCAAiB,SAAS;CAChD,MAAM,eAAe,iCAAU,eAAe,eAAe;CAC7D,MAAM,eAAe,iCAAU,eAAe,eAAe;CAC7D,MAAM,gBAAgB,iCAAU,eAAe,gBAAgB;CAC/D,MAAM,sBAAsB,iCAAU,eAAe,sBAAsB;CAC3E,MAAM,qBAAqB,iCAAU,eAAe,qBAAqB;CACzE,MAAM,iBAAiB,uCAAQ,cAAc,GACzC,oCACE,eACA,gBACA,gBACA,iBACA,uBACA,qBACD,GACD;AAEJ,QAAO;CAEP,MAAM,UAAU,mBACd,OAAO;EACL;EACA;EACA;CACD,IACD;EAAC;EAAI;EAAU;CAAQ,EACxB;AAED,wBACE,2BAAC;EAAgB,OAAO;4BACtB,4BAACC,mCAAO;GAAS,GAAI;;IAClB,gCACC,4BAAC;KAAe,GAAI;gBACjB,iBACE,yBACC,2BAAC;MAAe,GAAI;gBAAc;OAAwB,GACxD,OAEL,wBACE,gCACC,2BAAC;MAAsB,GAAI;gBACxB;OACqB,GACtB;MACS;IAGlB,iCACC,2BAAC;KAAgB,GAAI;eAAe;MAAgC;IAGrE,uBACE,+BACC,2BAAC;KAAqB,GAAI;eACvB;MACoB,GACrB;;IACU;GACF;AAErB,GACD,OACD,EAAE;AAIH,MAAa,iBAAiB,YAC5B,UACA,SACD,SAAY,CAAC,UAAU;CACtB,MAAM,EAAE,IAAI,UAAU,SAAS,GAAG,oBAAoB,IAAI,CAAE;AAE5D,QAAO;EACL;EACA,iBAAiB,kCAAS,SAAS;EACnC,gBAAgB,kCAAS,QAAQ;EACjC,GAAG;CACJ;AACF,EAAC;AAIF,MAAa,iBAAiB,YAC5B,OACA,SACD,EAAE;AAIH,MAAa,kBAAkB,YAC7B,OACA,UACD,EAAE;AAIH,MAAa,wBAAwB,YAGnC,QAAQ,gBAAgB,SAAY,CAAC,UAAU;CAC/C,MAAM,EAAE,IAAI,GAAG,oBAAoB,IAAI,CAAE;AAEzC,QAAO;EAAE,oBAAoB;EAAI,GAAG;CAAO;AAC5C,EAAC;AAIF,MAAa,uBAAuB,YAGlC,CAAC,UAAU;CACX,MAAM,EAAE,SAAS,GAAG,oBAAoB,IAAI,CAAE;AAE9C,MAAK,QAAS,QAAO;AAErB,wBAAO,2BAACA,mCAAO;EAAK,aAAU;EAAS,GAAI;GAAS;AACrD,GAAE,eAAe,EAAE"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
5
|
-
const
|
|
5
|
+
const require_utils_common_dom = require('../../utils/common/dom.cjs');
|
|
6
6
|
const require_components_file_input_use_file_input = require('../file-input/use-file-input.cjs');
|
|
7
7
|
const react = require_rolldown_runtime.__toESM(require("react"));
|
|
8
8
|
|
|
@@ -11,7 +11,7 @@ const useFileButton = (props = {}) => {
|
|
|
11
11
|
const { interactive, clickableProps, getInputProps } = require_components_file_input_use_file_input.useFileInput(props);
|
|
12
12
|
const getButtonProps = (0, react.useCallback)((props$1) => ({
|
|
13
13
|
...clickableProps,
|
|
14
|
-
"aria-disabled":
|
|
14
|
+
"aria-disabled": require_utils_common_dom.ariaAttr(!interactive),
|
|
15
15
|
tabIndex: interactive ? clickableProps.tabIndex : -1,
|
|
16
16
|
...props$1
|
|
17
17
|
}), [clickableProps, interactive]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-file-button.cjs","names":["props: UseFileButtonProps","getButtonProps: PropGetter<\"button\">","props"],"sources":["../../../../src/components/file-button/use-file-button.ts"],"sourcesContent":["\"use client\"\n\nimport type { PropGetter } from \"../../core\"\nimport type { FieldProps } from \"../field\"\nimport type { UseFileInputProps } from \"../file-input\"\nimport { useCallback } from \"react\"\nimport { ariaAttr } from \"../../utils\"\nimport { useFileInput } from \"../file-input\"\n\nexport interface UseFileButtonProps\n extends UseFileInputProps<\"button\">,\n FieldProps {}\n\nexport const useFileButton = (props: UseFileButtonProps = {}) => {\n const { interactive, clickableProps, getInputProps } =\n useFileInput<\"button\">(props)\n\n const getButtonProps: PropGetter<\"button\"> = useCallback(\n (props) => ({\n ...clickableProps,\n \"aria-disabled\": ariaAttr(!interactive),\n tabIndex: interactive ? clickableProps.tabIndex : -1,\n ...props,\n }),\n [clickableProps, interactive],\n )\n\n return {\n clickableProps,\n getButtonProps,\n getInputProps,\n }\n}\n\nexport type UseFileButtonReturn = ReturnType<typeof useFileButton>\n"],"mappings":";;;;;;;;;AAaA,MAAa,gBAAgB,CAACA,QAA4B,CAAE,MAAK;CAC/D,MAAM,EAAE,aAAa,gBAAgB,eAAe,GAClD,0DAAuB,MAAM;CAE/B,MAAMC,iBAAuC,uBAC3C,CAACC,aAAW;EACV,GAAG;EACH,iBAAiB,
|
|
1
|
+
{"version":3,"file":"use-file-button.cjs","names":["props: UseFileButtonProps","getButtonProps: PropGetter<\"button\">","props"],"sources":["../../../../src/components/file-button/use-file-button.ts"],"sourcesContent":["\"use client\"\n\nimport type { PropGetter } from \"../../core\"\nimport type { FieldProps } from \"../field\"\nimport type { UseFileInputProps } from \"../file-input\"\nimport { useCallback } from \"react\"\nimport { ariaAttr } from \"../../utils\"\nimport { useFileInput } from \"../file-input\"\n\nexport interface UseFileButtonProps\n extends UseFileInputProps<\"button\">,\n FieldProps {}\n\nexport const useFileButton = (props: UseFileButtonProps = {}) => {\n const { interactive, clickableProps, getInputProps } =\n useFileInput<\"button\">(props)\n\n const getButtonProps: PropGetter<\"button\"> = useCallback(\n (props) => ({\n ...clickableProps,\n \"aria-disabled\": ariaAttr(!interactive),\n tabIndex: interactive ? clickableProps.tabIndex : -1,\n ...props,\n }),\n [clickableProps, interactive],\n )\n\n return {\n clickableProps,\n getButtonProps,\n getInputProps,\n }\n}\n\nexport type UseFileButtonReturn = ReturnType<typeof useFileButton>\n"],"mappings":";;;;;;;;;AAaA,MAAa,gBAAgB,CAACA,QAA4B,CAAE,MAAK;CAC/D,MAAM,EAAE,aAAa,gBAAgB,eAAe,GAClD,0DAAuB,MAAM;CAE/B,MAAMC,iBAAuC,uBAC3C,CAACC,aAAW;EACV,GAAG;EACH,iBAAiB,mCAAU,YAAY;EACvC,UAAU,cAAc,eAAe,WAAW;EAClD,GAAGA;CACJ,IACD,CAAC,gBAAgB,WAAY,EAC9B;AAED,QAAO;EACL;EACA;EACA;CACD;AACF"}
|
|
@@ -4,7 +4,9 @@
|
|
|
4
4
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
5
5
|
const require_utils_dom = require('../../utils/dom.cjs');
|
|
6
6
|
const require_utils_ref = require('../../utils/ref.cjs');
|
|
7
|
-
const
|
|
7
|
+
const require_utils_common_assertion = require('../../utils/common/assertion.cjs');
|
|
8
|
+
const require_utils_common_function = require('../../utils/common/function.cjs');
|
|
9
|
+
const require_utils_common_dom = require('../../utils/common/dom.cjs');
|
|
8
10
|
const require_hooks_use_controllable_state_index = require('../../hooks/use-controllable-state/index.cjs');
|
|
9
11
|
const require_components_field_use_field_props = require('../field/use-field-props.cjs');
|
|
10
12
|
const require_hooks_use_clickable_index = require('../../hooks/use-clickable/index.cjs');
|
|
@@ -30,7 +32,7 @@ const useFileInput = (props) => {
|
|
|
30
32
|
setValues(void 0);
|
|
31
33
|
}, [setValues]);
|
|
32
34
|
const onChange = (0, react.useCallback)((ev) => {
|
|
33
|
-
const files = !
|
|
35
|
+
const files = !require_utils_common_assertion.isNull(ev.currentTarget.files) ? Array.from(ev.currentTarget.files) : void 0;
|
|
34
36
|
setValues(files?.length ? files : void 0);
|
|
35
37
|
}, [setValues]);
|
|
36
38
|
const clickableProps = require_hooks_use_clickable_index.useClickable({
|
|
@@ -39,7 +41,7 @@ const useFileInput = (props) => {
|
|
|
39
41
|
...rest,
|
|
40
42
|
disabled,
|
|
41
43
|
focusOnClick: interactive,
|
|
42
|
-
onClick:
|
|
44
|
+
onClick: require_utils_common_function.handlerAll(onClickProp, onClick)
|
|
43
45
|
});
|
|
44
46
|
require_utils_ref.assignRef(resetRef, onReset);
|
|
45
47
|
const getInputProps = (0, react.useCallback)((props$1 = {}) => ({
|
|
@@ -57,7 +59,7 @@ const useFileInput = (props) => {
|
|
|
57
59
|
required,
|
|
58
60
|
...props$1,
|
|
59
61
|
ref: require_utils_ref.mergeRefs(inputRef, props$1.ref, ref),
|
|
60
|
-
onChange:
|
|
62
|
+
onChange: require_utils_common_function.handlerAll(props$1.onChange, onChange)
|
|
61
63
|
}), [
|
|
62
64
|
required,
|
|
63
65
|
ariaProps,
|
|
@@ -73,7 +75,7 @@ const useFileInput = (props) => {
|
|
|
73
75
|
onChange
|
|
74
76
|
]);
|
|
75
77
|
const getFieldProps = (0, react.useCallback)((props$1 = {}) => ({
|
|
76
|
-
"data-placeholder":
|
|
78
|
+
"data-placeholder": require_utils_common_dom.dataAttr(!count),
|
|
77
79
|
...clickableProps,
|
|
78
80
|
tabIndex: interactive ? 0 : clickableProps.tabIndex,
|
|
79
81
|
...props$1
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-file-input.cjs","names":["props: UseFileInputProps<Y>","ev: ChangeEvent<HTMLInputElement>","getInputProps: PropGetter<\"input\">","props","visuallyHiddenAttributes","getFieldProps: PropGetter"],"sources":["../../../../src/components/file-input/use-file-input.ts"],"sourcesContent":["\"use client\"\n\nimport type { ChangeEvent, RefObject } from \"react\"\nimport type { HTMLProps, PropGetter } from \"../../core\"\nimport type { Dict } from \"../../utils\"\nimport type { FieldProps } from \"../field\"\nimport { useCallback, useRef } from \"react\"\nimport { useClickable } from \"../../hooks/use-clickable\"\nimport { useControllableState } from \"../../hooks/use-controllable-state\"\nimport {\n assignRef,\n dataAttr,\n handlerAll,\n isNull,\n mergeRefs,\n visuallyHiddenAttributes,\n} from \"../../utils\"\nimport { useFieldProps } from \"../field\"\n\nexport type UseFileInputProps<Y extends \"button\" | \"input\" = \"input\"> =\n FieldProps &\n Omit<HTMLProps<Y>, \"defaultValue\" | \"onChange\" | \"ref\" | \"value\"> &\n Pick<HTMLProps<\"input\">, \"accept\" | \"multiple\" | \"ref\"> & {\n /**\n * The initial value of the file input.\n */\n defaultValue?: File[]\n /**\n * Ref to a reset function.\n */\n resetRef?: RefObject<(() => void) | null>\n /**\n * The value of the file input.\n */\n value?: File[]\n /**\n * Function to be called when a file change event occurs.\n */\n onChange?: (files: File[] | undefined) => void\n }\n\nexport const useFileInput = <Y extends \"button\" | \"input\" = \"input\">(\n props: UseFileInputProps<Y>,\n) => {\n const {\n props: {\n id,\n ref,\n form,\n name,\n accept,\n defaultValue,\n disabled,\n multiple,\n readOnly,\n required,\n resetRef,\n value,\n onChange: onChangeProp,\n onClick: onClickProp,\n ...rest\n },\n ariaProps,\n dataProps,\n eventProps,\n } = useFieldProps<HTMLElement, UseFileInputProps<Y>>(props)\n const interactive = !(readOnly || disabled)\n const inputRef = useRef<HTMLInputElement>(null)\n const [values, setValues] = useControllableState<File[] | undefined>({\n defaultValue,\n value,\n onChange: onChangeProp,\n })\n const count = values?.length ?? 0\n\n const onClick = useCallback(() => {\n if (!interactive) return\n\n inputRef.current?.click()\n }, [interactive])\n\n const onReset = useCallback(() => {\n if (inputRef.current) inputRef.current.value = \"\"\n\n setValues(undefined)\n }, [setValues])\n\n const onChange = useCallback(\n (ev: ChangeEvent<HTMLInputElement>) => {\n const files = !isNull(ev.currentTarget.files)\n ? Array.from(ev.currentTarget.files)\n : undefined\n\n setValues(files?.length ? files : undefined)\n },\n [setValues],\n )\n\n const clickableProps = useClickable<HTMLElement, Dict>({\n ...dataProps,\n ...eventProps,\n ...rest,\n disabled,\n focusOnClick: interactive,\n onClick: handlerAll(onClickProp, onClick),\n })\n\n assignRef(resetRef, onReset)\n\n const getInputProps: PropGetter<\"input\"> = useCallback(\n (props = {}) => ({\n ...visuallyHiddenAttributes,\n ...ariaProps,\n ...dataProps,\n id,\n form,\n type: \"file\",\n name,\n accept,\n disabled,\n multiple,\n readOnly,\n required,\n ...props,\n ref: mergeRefs(inputRef, props.ref, ref),\n onChange: handlerAll(props.onChange, onChange),\n }),\n [\n required,\n ariaProps,\n dataProps,\n id,\n form,\n name,\n accept,\n disabled,\n multiple,\n readOnly,\n ref,\n onChange,\n ],\n )\n\n const getFieldProps: PropGetter = useCallback(\n (props = {}) => ({\n \"data-placeholder\": dataAttr(!count),\n ...clickableProps,\n tabIndex: interactive ? 0 : clickableProps.tabIndex,\n ...props,\n }),\n [clickableProps, count, interactive],\n )\n\n return {\n disabled,\n interactive,\n readOnly,\n required,\n values,\n clickableProps,\n getFieldProps,\n getInputProps,\n }\n}\n\nexport type UseFileInputReturn = ReturnType<typeof useFileInput>\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-file-input.cjs","names":["props: UseFileInputProps<Y>","ev: ChangeEvent<HTMLInputElement>","getInputProps: PropGetter<\"input\">","props","visuallyHiddenAttributes","getFieldProps: PropGetter"],"sources":["../../../../src/components/file-input/use-file-input.ts"],"sourcesContent":["\"use client\"\n\nimport type { ChangeEvent, RefObject } from \"react\"\nimport type { HTMLProps, PropGetter } from \"../../core\"\nimport type { Dict } from \"../../utils\"\nimport type { FieldProps } from \"../field\"\nimport { useCallback, useRef } from \"react\"\nimport { useClickable } from \"../../hooks/use-clickable\"\nimport { useControllableState } from \"../../hooks/use-controllable-state\"\nimport {\n assignRef,\n dataAttr,\n handlerAll,\n isNull,\n mergeRefs,\n visuallyHiddenAttributes,\n} from \"../../utils\"\nimport { useFieldProps } from \"../field\"\n\nexport type UseFileInputProps<Y extends \"button\" | \"input\" = \"input\"> =\n FieldProps &\n Omit<HTMLProps<Y>, \"defaultValue\" | \"onChange\" | \"ref\" | \"value\"> &\n Pick<HTMLProps<\"input\">, \"accept\" | \"multiple\" | \"ref\"> & {\n /**\n * The initial value of the file input.\n */\n defaultValue?: File[]\n /**\n * Ref to a reset function.\n */\n resetRef?: RefObject<(() => void) | null>\n /**\n * The value of the file input.\n */\n value?: File[]\n /**\n * Function to be called when a file change event occurs.\n */\n onChange?: (files: File[] | undefined) => void\n }\n\nexport const useFileInput = <Y extends \"button\" | \"input\" = \"input\">(\n props: UseFileInputProps<Y>,\n) => {\n const {\n props: {\n id,\n ref,\n form,\n name,\n accept,\n defaultValue,\n disabled,\n multiple,\n readOnly,\n required,\n resetRef,\n value,\n onChange: onChangeProp,\n onClick: onClickProp,\n ...rest\n },\n ariaProps,\n dataProps,\n eventProps,\n } = useFieldProps<HTMLElement, UseFileInputProps<Y>>(props)\n const interactive = !(readOnly || disabled)\n const inputRef = useRef<HTMLInputElement>(null)\n const [values, setValues] = useControllableState<File[] | undefined>({\n defaultValue,\n value,\n onChange: onChangeProp,\n })\n const count = values?.length ?? 0\n\n const onClick = useCallback(() => {\n if (!interactive) return\n\n inputRef.current?.click()\n }, [interactive])\n\n const onReset = useCallback(() => {\n if (inputRef.current) inputRef.current.value = \"\"\n\n setValues(undefined)\n }, [setValues])\n\n const onChange = useCallback(\n (ev: ChangeEvent<HTMLInputElement>) => {\n const files = !isNull(ev.currentTarget.files)\n ? Array.from(ev.currentTarget.files)\n : undefined\n\n setValues(files?.length ? files : undefined)\n },\n [setValues],\n )\n\n const clickableProps = useClickable<HTMLElement, Dict>({\n ...dataProps,\n ...eventProps,\n ...rest,\n disabled,\n focusOnClick: interactive,\n onClick: handlerAll(onClickProp, onClick),\n })\n\n assignRef(resetRef, onReset)\n\n const getInputProps: PropGetter<\"input\"> = useCallback(\n (props = {}) => ({\n ...visuallyHiddenAttributes,\n ...ariaProps,\n ...dataProps,\n id,\n form,\n type: \"file\",\n name,\n accept,\n disabled,\n multiple,\n readOnly,\n required,\n ...props,\n ref: mergeRefs(inputRef, props.ref, ref),\n onChange: handlerAll(props.onChange, onChange),\n }),\n [\n required,\n ariaProps,\n dataProps,\n id,\n form,\n name,\n accept,\n disabled,\n multiple,\n readOnly,\n ref,\n onChange,\n ],\n )\n\n const getFieldProps: PropGetter = useCallback(\n (props = {}) => ({\n \"data-placeholder\": dataAttr(!count),\n ...clickableProps,\n tabIndex: interactive ? 0 : clickableProps.tabIndex,\n ...props,\n }),\n [clickableProps, count, interactive],\n )\n\n return {\n disabled,\n interactive,\n readOnly,\n required,\n values,\n clickableProps,\n getFieldProps,\n getInputProps,\n }\n}\n\nexport type UseFileInputReturn = ReturnType<typeof useFileInput>\n"],"mappings":";;;;;;;;;;;;;;;AAyCA,MAAa,eAAe,CAC1BA,UACG;CACH,MAAM,EACJ,OAAO,EACL,IACA,KACA,MACA,MACA,QACA,cACA,UACA,UACA,UACA,UACA,UACA,OACA,UAAU,cACV,SAAS,YACT,GAAG,MACJ,EACD,WACA,WACA,YACD,GAAG,uDAAiD,MAAM;CAC3D,MAAM,gBAAgB,YAAY;CAClC,MAAM,WAAW,kBAAyB,KAAK;CAC/C,MAAM,CAAC,QAAQ,UAAU,GAAG,gEAAyC;EACnE;EACA;EACA,UAAU;CACX,EAAC;CACF,MAAM,QAAQ,QAAQ,UAAU;CAEhC,MAAM,UAAU,uBAAY,MAAM;AAChC,OAAK,YAAa;AAElB,WAAS,SAAS,OAAO;CAC1B,GAAE,CAAC,WAAY,EAAC;CAEjB,MAAM,UAAU,uBAAY,MAAM;AAChC,MAAI,SAAS,QAAS,UAAS,QAAQ,QAAQ;AAE/C,mBAAoB;CACrB,GAAE,CAAC,SAAU,EAAC;CAEf,MAAM,WAAW,uBACf,CAACC,OAAsC;EACrC,MAAM,SAAS,sCAAO,GAAG,cAAc,MAAM,GACzC,MAAM,KAAK,GAAG,cAAc,MAAM;AAGtC,YAAU,OAAO,SAAS,eAAkB;CAC7C,GACD,CAAC,SAAU,EACZ;CAED,MAAM,iBAAiB,+CAAgC;EACrD,GAAG;EACH,GAAG;EACH,GAAG;EACH;EACA,cAAc;EACd,SAAS,yCAAW,aAAa,QAAQ;CAC1C,EAAC;AAEF,6BAAU,UAAU,QAAQ;CAE5B,MAAMC,gBAAqC,uBACzC,CAACC,UAAQ,CAAE,OAAM;EACf,GAAGC;EACH,GAAG;EACH,GAAG;EACH;EACA;EACA,MAAM;EACN;EACA;EACA;EACA;EACA;EACA;EACA,GAAGD;EACH,KAAK,4BAAU,UAAUA,QAAM,KAAK,IAAI;EACxC,UAAU,yCAAWA,QAAM,UAAU,SAAS;CAC/C,IACD;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACD,EACF;CAED,MAAME,gBAA4B,uBAChC,CAACF,UAAQ,CAAE,OAAM;EACf,oBAAoB,mCAAU,MAAM;EACpC,GAAG;EACH,UAAU,cAAc,IAAI,eAAe;EAC3C,GAAGA;CACJ,IACD;EAAC;EAAgB;EAAO;CAAY,EACrC;AAED,QAAO;EACL;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACD;AACF"}
|
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
|
|
4
4
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
5
5
|
const require_utils_effect = require('../../utils/effect.cjs');
|
|
6
|
-
const
|
|
6
|
+
const require_utils_common_function = require('../../utils/common/function.cjs');
|
|
7
|
+
const require_utils_common_dom = require('../../utils/common/dom.cjs');
|
|
7
8
|
const require_core_components_create_component = require('../../core/components/create-component.cjs');
|
|
8
9
|
const require_components_motion_factory = require('../motion/factory.cjs');
|
|
9
10
|
const require_hooks_use_controllable_state_index = require('../../hooks/use-controllable-state/index.cjs');
|
|
@@ -53,12 +54,12 @@ const Flip = withProvider(({ defaultValue = "from", delay = 0, disabled, duratio
|
|
|
53
54
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_components_motion_factory.motion.button, {
|
|
54
55
|
type: "button",
|
|
55
56
|
style,
|
|
56
|
-
"data-disabled":
|
|
57
|
+
"data-disabled": require_utils_common_dom.dataAttr(disabled),
|
|
57
58
|
"data-orientation": orientation,
|
|
58
|
-
"data-readonly":
|
|
59
|
+
"data-readonly": require_utils_common_dom.dataAttr(readOnly),
|
|
59
60
|
"data-value": value,
|
|
60
61
|
disabled,
|
|
61
|
-
onClick:
|
|
62
|
+
onClick: require_utils_common_function.handlerAll(onClickProp, onClick),
|
|
62
63
|
...rest,
|
|
63
64
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(FlipFrom, {
|
|
64
65
|
ref: fromRef,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flip.cjs","names":["flipVariants: Variants","flipStyle","from","to","motion"],"sources":["../../../../src/components/flip/flip.tsx"],"sourcesContent":["\"use client\"\n\nimport type { Variants } from \"motion/react\"\nimport type { ReactNode } from \"react\"\nimport type { KeyframeIdent, Orientation, ThemeProps } from \"../../core\"\nimport type { HTMLMotionProps } from \"../motion\"\nimport type { FlipStyle } from \"./flip.style\"\nimport { useMemo, useRef, useState } from \"react\"\nimport { createSlotComponent } from \"../../core\"\nimport { useControllableState } from \"../../hooks/use-controllable-state\"\nimport { dataAttr, handlerAll, useSafeLayoutEffect } from \"../../utils\"\nimport { motion } from \"../motion\"\nimport { flipStyle } from \"./flip.style\"\n\nconst flipVariants: Variants = {\n enter: ({ ident, orientation, visible }) => ({\n [orientation === \"horizontal\" ? \"rotateY\" : \"rotateX\"]:\n ident === \"from\" ? (visible ? 180 : 0) : visible ? 0 : 180,\n }),\n exit: ({ ident, orientation }) => ({\n [orientation === \"horizontal\" ? \"rotateY\" : \"rotateX\"]:\n ident === \"from\" ? 0 : 180,\n }),\n}\n\ninterface Rect {\n height?: number\n width?: number\n}\n\nexport interface FlipProps\n extends Omit<HTMLMotionProps<\"button\">, \"onChange\">,\n ThemeProps<FlipStyle> {\n /**\n * Passing React elements to \"from\" is required.\n */\n from: ReactNode\n /**\n * Passing React elements to \"to\" is required.\n */\n to: ReactNode\n /**\n * You can set the initial state.\n *\n * @default 'from'\n */\n defaultValue?: KeyframeIdent\n /**\n * The animation delay.\n *\n * @default 0\n */\n delay?: number\n /**\n * If `true`, the component is disabled.\n *\n * @default false\n */\n disabled?: boolean\n /**\n * The animation duration.\n *\n * @default 0.4\n */\n duration?: number\n /**\n * The orientation of the flip effect. Determines whether the flip occurs horizontally or vertically.\n *\n * @default 'horizontal'\n */\n orientation?: Orientation\n /**\n * If `true`, the component is readonly.\n *\n * @default false\n */\n readOnly?: boolean\n /**\n * Use this when you want to control the animation from outside the component.\n */\n value?: KeyframeIdent\n /**\n * This is a callback function that is called when the animation state changes.\n */\n onChange?: (value: KeyframeIdent) => void\n}\n\nexport const {\n PropsContext: FlipPropsContext,\n usePropsContext: useFlipPropsContext,\n useStyleContext,\n withContext,\n withProvider,\n} = createSlotComponent<FlipProps, FlipStyle>(\"flip\", flipStyle)\n\n/**\n * `Flip` is an animation component that alternates between flipping two elements.\n *\n * @see https://yamada-ui.com/components/flip\n */\nexport const Flip = withProvider(\n ({\n defaultValue = \"from\",\n delay = 0,\n disabled,\n duration = 0.4,\n from,\n orientation = \"horizontal\",\n readOnly,\n to,\n transition = {},\n value: valueProp,\n onChange,\n onClick: onClickProp,\n ...rest\n }) => {\n const [{ height, width }, setRect] = useState<Rect>({})\n const fromRef = useRef<HTMLDivElement | null>(null)\n const toRef = useRef<HTMLDivElement | null>(null)\n const [value, setValue] = useControllableState({\n defaultValue,\n value: valueProp,\n onChange,\n })\n const visible = value === \"to\"\n\n const style = useMemo(\n () => ({\n height: height ? `${height}px` : \"auto\",\n width: width ? `${width}px` : \"auto\",\n }),\n [width, height],\n )\n\n const onClick = () => {\n if (readOnly) return\n\n setValue((prev) => (prev === \"from\" ? \"to\" : \"from\"))\n }\n\n useSafeLayoutEffect(() => {\n const from = fromRef.current\n const to = toRef.current\n\n if (!from || !to) return\n\n if (\n from.offsetWidth !== to.offsetWidth ||\n from.offsetHeight !== to.offsetHeight\n ) {\n console.warn(\n `Flip: \"from\" element (width: ${from.offsetWidth}px, height: ${from.offsetHeight}px) does not match \"to\" element (width: ${to.offsetWidth}px, height: ${to.offsetHeight}px). Please ensure both elements have the same dimensions.`,\n )\n }\n\n setRect({ height: from.offsetHeight, width: from.offsetWidth })\n }, [fromRef, toRef])\n\n return (\n <motion.button\n type=\"button\"\n style={style}\n data-disabled={dataAttr(disabled)}\n data-orientation={orientation}\n data-readonly={dataAttr(readOnly)}\n data-value={value}\n disabled={disabled}\n onClick={handlerAll(onClickProp, onClick)}\n {...rest}\n >\n <FlipFrom\n ref={fromRef}\n custom={{ orientation, visible }}\n transition={{ delay, duration, ...transition }}\n >\n {from}\n </FlipFrom>\n\n <FlipTo\n ref={toRef}\n custom={{ orientation, visible }}\n transition={{ delay, duration, ...transition }}\n >\n {to}\n </FlipTo>\n </motion.button>\n )\n },\n \"root\",\n)()\n\ninterface FlipFromProps extends HTMLMotionProps<\"span\"> {}\n\nconst FlipFrom = withContext<\"span\", FlipFromProps>(\n ({ custom, ...rest }) => {\n return (\n <motion.span\n animate=\"enter\"\n custom={{ ident: \"from\", ...custom }}\n initial=\"exit\"\n variants={flipVariants}\n {...rest}\n />\n )\n },\n [\"item\", \"from\"],\n)()\n\ninterface FlipToProps extends HTMLMotionProps<\"span\"> {}\n\nconst FlipTo = withContext<\"span\", FlipToProps>(\n ({ custom, ...rest }) => {\n return (\n <motion.span\n animate=\"enter\"\n custom={{ ident: \"to\", ...custom }}\n initial=\"exit\"\n variants={flipVariants}\n {...rest}\n />\n )\n },\n [\"item\", \"to\"],\n)()\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"flip.cjs","names":["flipVariants: Variants","flipStyle","from","to","motion"],"sources":["../../../../src/components/flip/flip.tsx"],"sourcesContent":["\"use client\"\n\nimport type { Variants } from \"motion/react\"\nimport type { ReactNode } from \"react\"\nimport type { KeyframeIdent, Orientation, ThemeProps } from \"../../core\"\nimport type { HTMLMotionProps } from \"../motion\"\nimport type { FlipStyle } from \"./flip.style\"\nimport { useMemo, useRef, useState } from \"react\"\nimport { createSlotComponent } from \"../../core\"\nimport { useControllableState } from \"../../hooks/use-controllable-state\"\nimport { dataAttr, handlerAll, useSafeLayoutEffect } from \"../../utils\"\nimport { motion } from \"../motion\"\nimport { flipStyle } from \"./flip.style\"\n\nconst flipVariants: Variants = {\n enter: ({ ident, orientation, visible }) => ({\n [orientation === \"horizontal\" ? \"rotateY\" : \"rotateX\"]:\n ident === \"from\" ? (visible ? 180 : 0) : visible ? 0 : 180,\n }),\n exit: ({ ident, orientation }) => ({\n [orientation === \"horizontal\" ? \"rotateY\" : \"rotateX\"]:\n ident === \"from\" ? 0 : 180,\n }),\n}\n\ninterface Rect {\n height?: number\n width?: number\n}\n\nexport interface FlipProps\n extends Omit<HTMLMotionProps<\"button\">, \"onChange\">,\n ThemeProps<FlipStyle> {\n /**\n * Passing React elements to \"from\" is required.\n */\n from: ReactNode\n /**\n * Passing React elements to \"to\" is required.\n */\n to: ReactNode\n /**\n * You can set the initial state.\n *\n * @default 'from'\n */\n defaultValue?: KeyframeIdent\n /**\n * The animation delay.\n *\n * @default 0\n */\n delay?: number\n /**\n * If `true`, the component is disabled.\n *\n * @default false\n */\n disabled?: boolean\n /**\n * The animation duration.\n *\n * @default 0.4\n */\n duration?: number\n /**\n * The orientation of the flip effect. Determines whether the flip occurs horizontally or vertically.\n *\n * @default 'horizontal'\n */\n orientation?: Orientation\n /**\n * If `true`, the component is readonly.\n *\n * @default false\n */\n readOnly?: boolean\n /**\n * Use this when you want to control the animation from outside the component.\n */\n value?: KeyframeIdent\n /**\n * This is a callback function that is called when the animation state changes.\n */\n onChange?: (value: KeyframeIdent) => void\n}\n\nexport const {\n PropsContext: FlipPropsContext,\n usePropsContext: useFlipPropsContext,\n useStyleContext,\n withContext,\n withProvider,\n} = createSlotComponent<FlipProps, FlipStyle>(\"flip\", flipStyle)\n\n/**\n * `Flip` is an animation component that alternates between flipping two elements.\n *\n * @see https://yamada-ui.com/components/flip\n */\nexport const Flip = withProvider(\n ({\n defaultValue = \"from\",\n delay = 0,\n disabled,\n duration = 0.4,\n from,\n orientation = \"horizontal\",\n readOnly,\n to,\n transition = {},\n value: valueProp,\n onChange,\n onClick: onClickProp,\n ...rest\n }) => {\n const [{ height, width }, setRect] = useState<Rect>({})\n const fromRef = useRef<HTMLDivElement | null>(null)\n const toRef = useRef<HTMLDivElement | null>(null)\n const [value, setValue] = useControllableState({\n defaultValue,\n value: valueProp,\n onChange,\n })\n const visible = value === \"to\"\n\n const style = useMemo(\n () => ({\n height: height ? `${height}px` : \"auto\",\n width: width ? `${width}px` : \"auto\",\n }),\n [width, height],\n )\n\n const onClick = () => {\n if (readOnly) return\n\n setValue((prev) => (prev === \"from\" ? \"to\" : \"from\"))\n }\n\n useSafeLayoutEffect(() => {\n const from = fromRef.current\n const to = toRef.current\n\n if (!from || !to) return\n\n if (\n from.offsetWidth !== to.offsetWidth ||\n from.offsetHeight !== to.offsetHeight\n ) {\n console.warn(\n `Flip: \"from\" element (width: ${from.offsetWidth}px, height: ${from.offsetHeight}px) does not match \"to\" element (width: ${to.offsetWidth}px, height: ${to.offsetHeight}px). Please ensure both elements have the same dimensions.`,\n )\n }\n\n setRect({ height: from.offsetHeight, width: from.offsetWidth })\n }, [fromRef, toRef])\n\n return (\n <motion.button\n type=\"button\"\n style={style}\n data-disabled={dataAttr(disabled)}\n data-orientation={orientation}\n data-readonly={dataAttr(readOnly)}\n data-value={value}\n disabled={disabled}\n onClick={handlerAll(onClickProp, onClick)}\n {...rest}\n >\n <FlipFrom\n ref={fromRef}\n custom={{ orientation, visible }}\n transition={{ delay, duration, ...transition }}\n >\n {from}\n </FlipFrom>\n\n <FlipTo\n ref={toRef}\n custom={{ orientation, visible }}\n transition={{ delay, duration, ...transition }}\n >\n {to}\n </FlipTo>\n </motion.button>\n )\n },\n \"root\",\n)()\n\ninterface FlipFromProps extends HTMLMotionProps<\"span\"> {}\n\nconst FlipFrom = withContext<\"span\", FlipFromProps>(\n ({ custom, ...rest }) => {\n return (\n <motion.span\n animate=\"enter\"\n custom={{ ident: \"from\", ...custom }}\n initial=\"exit\"\n variants={flipVariants}\n {...rest}\n />\n )\n },\n [\"item\", \"from\"],\n)()\n\ninterface FlipToProps extends HTMLMotionProps<\"span\"> {}\n\nconst FlipTo = withContext<\"span\", FlipToProps>(\n ({ custom, ...rest }) => {\n return (\n <motion.span\n animate=\"enter\"\n custom={{ ident: \"to\", ...custom }}\n initial=\"exit\"\n variants={flipVariants}\n {...rest}\n />\n )\n },\n [\"item\", \"to\"],\n)()\n"],"mappings":";;;;;;;;;;;;;;;AAcA,MAAMA,eAAyB;CAC7B,OAAO,CAAC,EAAE,OAAO,aAAa,SAAS,MAAM,GAC1C,gBAAgB,eAAe,YAAY,YAC1C,UAAU,SAAU,UAAU,MAAM,IAAK,UAAU,IAAI,IAC1D;CACD,MAAM,CAAC,EAAE,OAAO,aAAa,MAAM,GAChC,gBAAgB,eAAe,YAAY,YAC1C,UAAU,SAAS,IAAI,IAC1B;AACF;AAgED,MAAa,EACX,cAAc,kBACd,iBAAiB,qBACjB,iBACA,aACA,cACD,GAAG,6DAA0C,QAAQC,6CAAU;;;;;;AAOhE,MAAa,OAAO,aAClB,CAAC,EACC,eAAe,QACf,QAAQ,GACR,UACA,WAAW,IACX,MACA,cAAc,cACd,UACA,IACA,aAAa,CAAE,GACf,OAAO,WACP,UACA,SAAS,YACT,GAAG,MACJ,KAAK;CACJ,MAAM,CAAC,EAAE,QAAQ,OAAO,EAAE,QAAQ,GAAG,oBAAe,CAAE,EAAC;CACvD,MAAM,UAAU,kBAA8B,KAAK;CACnD,MAAM,QAAQ,kBAA8B,KAAK;CACjD,MAAM,CAAC,OAAO,SAAS,GAAG,gEAAqB;EAC7C;EACA,OAAO;EACP;CACD,EAAC;CACF,MAAM,UAAU,UAAU;CAE1B,MAAM,QAAQ,mBACZ,OAAO;EACL,QAAQ,YAAY,OAAO,MAAM;EACjC,OAAO,WAAW,MAAM,MAAM;CAC/B,IACD,CAAC,OAAO,MAAO,EAChB;CAED,MAAM,UAAU,MAAM;AACpB,MAAI,SAAU;AAEd,WAAS,CAAC,SAAU,SAAS,SAAS,OAAO,OAAQ;CACtD;AAED,0CAAoB,MAAM;EACxB,MAAMC,SAAO,QAAQ;EACrB,MAAMC,OAAK,MAAM;AAEjB,OAAKD,WAASC,KAAI;AAElB,MACED,OAAK,gBAAgBC,KAAG,eACxBD,OAAK,iBAAiBC,KAAG,aAEzB,SAAQ,MACL,+BAA+BD,OAAK,YAAY,cAAcA,OAAK,aAAa,0CAA0CC,KAAG,YAAY,cAAcA,KAAG,aAAa,4DACzK;AAGH,UAAQ;GAAE,QAAQD,OAAK;GAAc,OAAOA,OAAK;EAAa,EAAC;CAChE,GAAE,CAAC,SAAS,KAAM,EAAC;AAEpB,wBACE,4BAACE,yCAAO;EACN,MAAK;EACE;EACP,iBAAe,kCAAS,SAAS;EACjC,oBAAkB;EAClB,iBAAe,kCAAS,SAAS;EACjC,cAAY;EACF;EACV,SAAS,yCAAW,aAAa,QAAQ;EACzC,GAAI;6BAEJ,2BAAC;GACC,KAAK;GACL,QAAQ;IAAE;IAAa;GAAS;GAChC,YAAY;IAAE;IAAO;IAAU,GAAG;GAAY;aAE7C;IACQ,kBAEX,2BAAC;GACC,KAAK;GACL,QAAQ;IAAE;IAAa;GAAS;GAChC,YAAY;IAAE;IAAO;IAAU,GAAG;GAAY;aAE7C;IACM;GACK;AAEnB,GACD,OACD,EAAE;AAIH,MAAM,WAAW,YACf,CAAC,EAAE,OAAQ,GAAG,MAAM,KAAK;AACvB,wBACE,2BAACA,yCAAO;EACN,SAAQ;EACR,QAAQ;GAAE,OAAO;GAAQ,GAAG;EAAQ;EACpC,SAAQ;EACR,UAAU;EACV,GAAI;GACJ;AAEL,GACD,CAAC,QAAQ,MAAO,EACjB,EAAE;AAIH,MAAM,SAAS,YACb,CAAC,EAAE,OAAQ,GAAG,MAAM,KAAK;AACvB,wBACE,2BAACA,yCAAO;EACN,SAAQ;EACR,QAAQ;GAAE,OAAO;GAAM,GAAG;EAAQ;EAClC,SAAQ;EACR,UAAU;EACV,GAAI;GACJ;AAEL,GACD,CAAC,QAAQ,IAAK,EACf,EAAE"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
const
|
|
4
|
+
const require_utils_common_assertion = require('../../utils/common/assertion.cjs');
|
|
5
5
|
const require_core_system_var = require('../../core/system/var.cjs');
|
|
6
6
|
const require_core_components_create_component = require('../../core/components/create-component.cjs');
|
|
7
7
|
const require_components_float_float_style = require('./float.style.cjs');
|
|
@@ -14,7 +14,7 @@ const { PropsContext: FloatPropsContext, usePropsContext: useFloatPropsContext,
|
|
|
14
14
|
* @see https://yamada-ui.com/components/float
|
|
15
15
|
*/
|
|
16
16
|
const Float = withContext("div")(void 0, ({ offset,...rest }) => {
|
|
17
|
-
const [offsetBlock, offsetInline] =
|
|
17
|
+
const [offsetBlock, offsetInline] = require_utils_common_assertion.isArray(offset) ? offset : [offset, offset];
|
|
18
18
|
return {
|
|
19
19
|
"--offset-block": require_core_system_var.varAttr(offsetBlock, "spaces"),
|
|
20
20
|
"--offset-inline": require_core_system_var.varAttr(offsetInline, "spaces"),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"float.cjs","names":["floatStyle"],"sources":["../../../../src/components/float/float.tsx"],"sourcesContent":["\"use client\"\n\nimport type { CSSProps, HTMLStyledProps, ThemeProps } from \"../../core\"\nimport type { FloatStyle } from \"./float.style\"\nimport { createComponent, varAttr } from \"../../core\"\nimport { isArray } from \"../../utils\"\nimport { floatStyle } from \"./float.style\"\n\nexport interface FloatProps\n extends Omit<HTMLStyledProps, \"offset\">,\n ThemeProps<FloatStyle> {\n /**\n * Changes position offset.\n */\n offset?: CSSProps[\"inset\"]\n}\n\nexport const {\n PropsContext: FloatPropsContext,\n usePropsContext: useFloatPropsContext,\n withContext,\n} = createComponent<FloatProps, FloatStyle>(\"float\", floatStyle)\n\n/**\n * `Float` is a component used to anchor an element to the edge of a container.\n *\n * @see https://yamada-ui.com/components/float\n */\nexport const Float = withContext(\"div\")(undefined, ({ offset, ...rest }) => {\n const [offsetBlock, offsetInline] = isArray(offset)\n ? offset\n : [offset, offset]\n\n return {\n \"--offset-block\": varAttr(offsetBlock, \"spaces\"),\n \"--offset-inline\": varAttr(offsetInline, \"spaces\"),\n ...rest,\n }\n})\n"],"mappings":";;;;;;;;;AAiBA,MAAa,EACX,cAAc,mBACd,iBAAiB,sBACjB,aACD,GAAG,yDAAwC,SAASA,gDAAW;;;;;;AAOhE,MAAa,QAAQ,YAAY,MAAM,SAAY,CAAC,EAAE,OAAQ,GAAG,MAAM,KAAK;CAC1E,MAAM,CAAC,aAAa,aAAa,GAAG
|
|
1
|
+
{"version":3,"file":"float.cjs","names":["floatStyle"],"sources":["../../../../src/components/float/float.tsx"],"sourcesContent":["\"use client\"\n\nimport type { CSSProps, HTMLStyledProps, ThemeProps } from \"../../core\"\nimport type { FloatStyle } from \"./float.style\"\nimport { createComponent, varAttr } from \"../../core\"\nimport { isArray } from \"../../utils\"\nimport { floatStyle } from \"./float.style\"\n\nexport interface FloatProps\n extends Omit<HTMLStyledProps, \"offset\">,\n ThemeProps<FloatStyle> {\n /**\n * Changes position offset.\n */\n offset?: CSSProps[\"inset\"]\n}\n\nexport const {\n PropsContext: FloatPropsContext,\n usePropsContext: useFloatPropsContext,\n withContext,\n} = createComponent<FloatProps, FloatStyle>(\"float\", floatStyle)\n\n/**\n * `Float` is a component used to anchor an element to the edge of a container.\n *\n * @see https://yamada-ui.com/components/float\n */\nexport const Float = withContext(\"div\")(undefined, ({ offset, ...rest }) => {\n const [offsetBlock, offsetInline] = isArray(offset)\n ? offset\n : [offset, offset]\n\n return {\n \"--offset-block\": varAttr(offsetBlock, \"spaces\"),\n \"--offset-inline\": varAttr(offsetInline, \"spaces\"),\n ...rest,\n }\n})\n"],"mappings":";;;;;;;;;AAiBA,MAAa,EACX,cAAc,mBACd,iBAAiB,sBACjB,aACD,GAAG,yDAAwC,SAASA,gDAAW;;;;;;AAOhE,MAAa,QAAQ,YAAY,MAAM,SAAY,CAAC,EAAE,OAAQ,GAAG,MAAM,KAAK;CAC1E,MAAM,CAAC,aAAa,aAAa,GAAG,uCAAQ,OAAO,GAC/C,SACA,CAAC,QAAQ,MAAO;AAEpB,QAAO;EACL,kBAAkB,gCAAQ,aAAa,SAAS;EAChD,mBAAmB,gCAAQ,cAAc,SAAS;EAClD,GAAG;CACJ;AACF,EAAC"}
|
|
@@ -2,13 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
5
|
-
const
|
|
5
|
+
const require_utils_common_dom = require('../../utils/common/dom.cjs');
|
|
6
|
+
const require_utils_common_module = require('../../utils/common/module.cjs');
|
|
6
7
|
const react = require_rolldown_runtime.__toESM(require("react"));
|
|
7
8
|
const react_jsx_runtime = require_rolldown_runtime.__toESM(require("react/jsx-runtime"));
|
|
8
9
|
const react_focus_lock = require_rolldown_runtime.__toESM(require("react-focus-lock"));
|
|
9
10
|
|
|
10
11
|
//#region src/components/focus-lock/focus-lock.tsx
|
|
11
|
-
const InternalFocusLock =
|
|
12
|
+
const InternalFocusLock = require_utils_common_module.interopDefault(react_focus_lock.default);
|
|
12
13
|
/**
|
|
13
14
|
* `FocusLock` is a component that improves accessibility by restricting focus within elements such as modals and dialogs, and locking the focus within that range.
|
|
14
15
|
*
|
|
@@ -19,7 +20,7 @@ const FocusLock = ({ autoFocus, children, contentRef, disabled, finalFocusRef, i
|
|
|
19
20
|
const onActivation = (0, react.useCallback)(() => {
|
|
20
21
|
if (initialFocusRef?.current) initialFocusRef.current.focus();
|
|
21
22
|
else if (contentRef?.current) {
|
|
22
|
-
const focusables =
|
|
23
|
+
const focusables = require_utils_common_dom.getFocusableElements(contentRef.current);
|
|
23
24
|
if (focusables.length === 0) requestAnimationFrame(() => {
|
|
24
25
|
contentRef.current?.focus();
|
|
25
26
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"focus-lock.cjs","names":["ReactFocusLock","FocusLock: FC<FocusLockProps>"],"sources":["../../../../src/components/focus-lock/focus-lock.tsx"],"sourcesContent":["\"use client\"\n\nimport type { FC, PropsWithChildren, RefObject } from \"react\"\nimport { useCallback } from \"react\"\nimport ReactFocusLock from \"react-focus-lock\"\nimport { getFocusableElements, interopDefault } from \"../../utils\"\n\nconst InternalFocusLock = interopDefault(ReactFocusLock)\n\nexport interface FocusLockProps extends PropsWithChildren {\n /**\n * If `true`, the first focusable element within the `children` will auto-focused once `FocusLock` mounts.\n *\n * @default false\n */\n autoFocus?: boolean\n /**\n * The `ref` of the wrapper for which the focus-lock wraps.\n */\n contentRef?: RefObject<HTMLElement | null>\n /**\n * If `true`, focus trapping will be disabled.\n *\n * @default false\n */\n disabled?: boolean\n /**\n * `ref` of the element to return focus to when `FocusLock` unmounts.\n */\n finalFocusRef?: RefObject<HTMLElement | null>\n /**\n * `ref` of the element to receive focus initially.\n */\n initialFocusRef?: RefObject<HTMLElement | null>\n /**\n * Enables aggressive focus capturing within iframes.\n * - If `true`: keep focus in the lock, no matter where lock is active.\n * - If `false`: allows focus to move outside of iframe.\n *\n * @default false\n */\n lockFocusAcrossFrames?: boolean\n /**\n * If `true`, disables text selections inside, and outside focus lock.\n *\n * @default false\n */\n persistentFocus?: boolean\n /**\n * If `true`, focus will be restored to the element that triggered the `FocusLock` once it unmounts.\n *\n * @default false\n */\n restoreFocus?: boolean\n}\n\n/**\n * `FocusLock` is a component that improves accessibility by restricting focus within elements such as modals and dialogs, and locking the focus within that range.\n *\n * @see https://yamada-ui.com/components/focus-lock\n */\nexport const FocusLock: FC<FocusLockProps> = ({\n autoFocus,\n children,\n contentRef,\n disabled,\n finalFocusRef,\n initialFocusRef,\n lockFocusAcrossFrames,\n persistentFocus,\n restoreFocus,\n}) => {\n const returnFocus = restoreFocus && !finalFocusRef\n\n const onActivation = useCallback(() => {\n if (initialFocusRef?.current) {\n initialFocusRef.current.focus()\n } else if (contentRef?.current) {\n const focusables = getFocusableElements(contentRef.current)\n\n if (focusables.length === 0)\n requestAnimationFrame(() => {\n contentRef.current?.focus()\n })\n }\n }, [initialFocusRef, contentRef])\n\n const onDeactivation = useCallback(() => {\n finalFocusRef?.current?.focus()\n }, [finalFocusRef])\n\n return (\n <InternalFocusLock\n autoFocus={autoFocus}\n crossFrame={lockFocusAcrossFrames}\n disabled={disabled}\n persistentFocus={persistentFocus}\n returnFocus={returnFocus}\n onActivation={onActivation}\n onDeactivation={onDeactivation}\n >\n {children}\n </InternalFocusLock>\n )\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"focus-lock.cjs","names":["ReactFocusLock","FocusLock: FC<FocusLockProps>"],"sources":["../../../../src/components/focus-lock/focus-lock.tsx"],"sourcesContent":["\"use client\"\n\nimport type { FC, PropsWithChildren, RefObject } from \"react\"\nimport { useCallback } from \"react\"\nimport ReactFocusLock from \"react-focus-lock\"\nimport { getFocusableElements, interopDefault } from \"../../utils\"\n\nconst InternalFocusLock = interopDefault(ReactFocusLock)\n\nexport interface FocusLockProps extends PropsWithChildren {\n /**\n * If `true`, the first focusable element within the `children` will auto-focused once `FocusLock` mounts.\n *\n * @default false\n */\n autoFocus?: boolean\n /**\n * The `ref` of the wrapper for which the focus-lock wraps.\n */\n contentRef?: RefObject<HTMLElement | null>\n /**\n * If `true`, focus trapping will be disabled.\n *\n * @default false\n */\n disabled?: boolean\n /**\n * `ref` of the element to return focus to when `FocusLock` unmounts.\n */\n finalFocusRef?: RefObject<HTMLElement | null>\n /**\n * `ref` of the element to receive focus initially.\n */\n initialFocusRef?: RefObject<HTMLElement | null>\n /**\n * Enables aggressive focus capturing within iframes.\n * - If `true`: keep focus in the lock, no matter where lock is active.\n * - If `false`: allows focus to move outside of iframe.\n *\n * @default false\n */\n lockFocusAcrossFrames?: boolean\n /**\n * If `true`, disables text selections inside, and outside focus lock.\n *\n * @default false\n */\n persistentFocus?: boolean\n /**\n * If `true`, focus will be restored to the element that triggered the `FocusLock` once it unmounts.\n *\n * @default false\n */\n restoreFocus?: boolean\n}\n\n/**\n * `FocusLock` is a component that improves accessibility by restricting focus within elements such as modals and dialogs, and locking the focus within that range.\n *\n * @see https://yamada-ui.com/components/focus-lock\n */\nexport const FocusLock: FC<FocusLockProps> = ({\n autoFocus,\n children,\n contentRef,\n disabled,\n finalFocusRef,\n initialFocusRef,\n lockFocusAcrossFrames,\n persistentFocus,\n restoreFocus,\n}) => {\n const returnFocus = restoreFocus && !finalFocusRef\n\n const onActivation = useCallback(() => {\n if (initialFocusRef?.current) {\n initialFocusRef.current.focus()\n } else if (contentRef?.current) {\n const focusables = getFocusableElements(contentRef.current)\n\n if (focusables.length === 0)\n requestAnimationFrame(() => {\n contentRef.current?.focus()\n })\n }\n }, [initialFocusRef, contentRef])\n\n const onDeactivation = useCallback(() => {\n finalFocusRef?.current?.focus()\n }, [finalFocusRef])\n\n return (\n <InternalFocusLock\n autoFocus={autoFocus}\n crossFrame={lockFocusAcrossFrames}\n disabled={disabled}\n persistentFocus={persistentFocus}\n returnFocus={returnFocus}\n onActivation={onActivation}\n onDeactivation={onDeactivation}\n >\n {children}\n </InternalFocusLock>\n )\n}\n"],"mappings":";;;;;;;;;;;AAOA,MAAM,oBAAoB,2CAAeA,yBAAe;;;;;;AAsDxD,MAAaC,YAAgC,CAAC,EAC5C,WACA,UACA,YACA,UACA,eACA,iBACA,uBACA,iBACA,cACD,KAAK;CACJ,MAAM,cAAc,iBAAiB;CAErC,MAAM,eAAe,uBAAY,MAAM;AACrC,MAAI,iBAAiB,QACnB,iBAAgB,QAAQ,OAAO;WACtB,YAAY,SAAS;GAC9B,MAAM,aAAa,8CAAqB,WAAW,QAAQ;AAE3D,OAAI,WAAW,WAAW,EACxB,uBAAsB,MAAM;AAC1B,eAAW,SAAS,OAAO;GAC5B,EAAC;EACL;CACF,GAAE,CAAC,iBAAiB,UAAW,EAAC;CAEjC,MAAM,iBAAiB,uBAAY,MAAM;AACvC,iBAAe,SAAS,OAAO;CAChC,GAAE,CAAC,aAAc,EAAC;AAEnB,wBACE,2BAAC;EACY;EACX,YAAY;EACF;EACO;EACJ;EACC;EACE;EAEf;GACiB;AAEvB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const require_utils_common_assertion = require('../../utils/common/assertion.cjs');
|
|
2
2
|
|
|
3
3
|
//#region src/components/for/for.tsx
|
|
4
4
|
/**
|
|
@@ -7,7 +7,7 @@ const require_utils_index = require('../../utils/index.cjs');
|
|
|
7
7
|
* @see https://yamada-ui.com/components/for
|
|
8
8
|
*/
|
|
9
9
|
const For = ({ children, each, fallback, filter, limit, offset = 0, reverse = false, sort }) => {
|
|
10
|
-
if (!each || !
|
|
10
|
+
if (!each || !require_utils_common_assertion.isArray(each) || !each.length) return fallback || null;
|
|
11
11
|
const cloned = [...each];
|
|
12
12
|
const filtered = filter ? cloned.filter(filter) : cloned;
|
|
13
13
|
const sorted = sort ? filtered.sort(sort) : filtered;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"for.cjs","names":[],"sources":["../../../../src/components/for/for.tsx"],"sourcesContent":["import type { ReactNode } from \"react\"\nimport { isArray } from \"../../utils\"\n\nexport interface ForProps<T> {\n /**\n * The render function to render each item in the array.\n */\n children: (value: T, index: number, array: T[]) => ReactNode\n /**\n * The array to iterate over.\n */\n each: readonly T[] | T[] | undefined\n /**\n * The fallback content to render when the array is empty.\n */\n fallback?: ReactNode\n /**\n * A function that returns a boolean indicating whether the item should be included in the render result.\n */\n filter?: (value: T, index: number, array: T[]) => boolean\n /**\n * The maximum number of items to include in the render result.\n */\n limit?: number\n /**\n * The number of items to skip before including them in the render result.\n * @default 0\n */\n offset?: number\n /**\n * The boolean value to determine the order of the items in the array.\n * If `true`, the items will be reversed.\n * If `sortBy` is provided, inversion is applied to the sorted array.\n * @default false\n */\n reverse?: boolean\n /**\n * The function to sort the items in the array.\n * If function is provided, the items will be sorted based on the return value.\n * If `reverse` is `true`, the inversion is applied to the sorted array.\n */\n sort?: (a: T, b: T) => number\n}\n\n/**\n * `For` is a component used to loop over an array and render a component for each item.\n *\n * @see https://yamada-ui.com/components/for\n */\nexport const For = <T,>({\n children,\n each,\n fallback,\n filter,\n limit,\n offset = 0,\n reverse = false,\n sort,\n}: ForProps<T>): ReactNode => {\n if (!each || !isArray(each) || !each.length) return fallback || null\n\n const cloned = [...each]\n const filtered = filter ? cloned.filter(filter) : cloned\n const sorted = sort ? filtered.sort(sort) : filtered\n const reversed = reverse ? sorted.reverse() : sorted\n const sliced = reversed.slice(offset, limit ? offset + limit : undefined)\n\n if (!sliced.length) return fallback || null\n\n return sliced.map(children)\n}\n"],"mappings":";;;;;;;;AAiDA,MAAa,MAAM,CAAK,EACtB,UACA,MACA,UACA,QACA,OACA,SAAS,GACT,UAAU,OACV,MACY,KAAgB;AAC5B,MAAK,SAAS
|
|
1
|
+
{"version":3,"file":"for.cjs","names":[],"sources":["../../../../src/components/for/for.tsx"],"sourcesContent":["import type { ReactNode } from \"react\"\nimport { isArray } from \"../../utils\"\n\nexport interface ForProps<T> {\n /**\n * The render function to render each item in the array.\n */\n children: (value: T, index: number, array: T[]) => ReactNode\n /**\n * The array to iterate over.\n */\n each: readonly T[] | T[] | undefined\n /**\n * The fallback content to render when the array is empty.\n */\n fallback?: ReactNode\n /**\n * A function that returns a boolean indicating whether the item should be included in the render result.\n */\n filter?: (value: T, index: number, array: T[]) => boolean\n /**\n * The maximum number of items to include in the render result.\n */\n limit?: number\n /**\n * The number of items to skip before including them in the render result.\n * @default 0\n */\n offset?: number\n /**\n * The boolean value to determine the order of the items in the array.\n * If `true`, the items will be reversed.\n * If `sortBy` is provided, inversion is applied to the sorted array.\n * @default false\n */\n reverse?: boolean\n /**\n * The function to sort the items in the array.\n * If function is provided, the items will be sorted based on the return value.\n * If `reverse` is `true`, the inversion is applied to the sorted array.\n */\n sort?: (a: T, b: T) => number\n}\n\n/**\n * `For` is a component used to loop over an array and render a component for each item.\n *\n * @see https://yamada-ui.com/components/for\n */\nexport const For = <T,>({\n children,\n each,\n fallback,\n filter,\n limit,\n offset = 0,\n reverse = false,\n sort,\n}: ForProps<T>): ReactNode => {\n if (!each || !isArray(each) || !each.length) return fallback || null\n\n const cloned = [...each]\n const filtered = filter ? cloned.filter(filter) : cloned\n const sorted = sort ? filtered.sort(sort) : filtered\n const reversed = reverse ? sorted.reverse() : sorted\n const sliced = reversed.slice(offset, limit ? offset + limit : undefined)\n\n if (!sliced.length) return fallback || null\n\n return sliced.map(children)\n}\n"],"mappings":";;;;;;;;AAiDA,MAAa,MAAM,CAAK,EACtB,UACA,MACA,UACA,QACA,OACA,SAAS,GACT,UAAU,OACV,MACY,KAAgB;AAC5B,MAAK,SAAS,uCAAQ,KAAK,KAAK,KAAK,OAAQ,QAAO,YAAY;CAEhE,MAAM,SAAS,CAAC,GAAG,IAAK;CACxB,MAAM,WAAW,SAAS,OAAO,OAAO,OAAO,GAAG;CAClD,MAAM,SAAS,OAAO,SAAS,KAAK,KAAK,GAAG;CAC5C,MAAM,WAAW,UAAU,OAAO,SAAS,GAAG;CAC9C,MAAM,SAAS,SAAS,MAAM,QAAQ,QAAQ,SAAS,eAAkB;AAEzE,MAAK,OAAO,OAAQ,QAAO,YAAY;AAEvC,QAAO,OAAO,IAAI,SAAS;AAC5B"}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
const
|
|
4
|
+
const require_utils_common_object = require('../../utils/common/object.cjs');
|
|
5
5
|
const require_core_components_create_component = require('../../core/components/create-component.cjs');
|
|
6
6
|
|
|
7
7
|
//#region src/components/grid/grid-item.tsx
|
|
8
8
|
const { PropsContext: GridItemPropsContext, usePropsContext: useGridItemPropsContext, withContext } = require_core_components_create_component.createComponent("grid-item");
|
|
9
9
|
const GridItem = withContext("div")(void 0, ({ area: gridArea, colEnd: gridColumnEnd, colSpan, colStart: gridColumnStart, rowEnd: gridRowEnd, rowSpan, rowStart: gridRowStart,...rest }) => ({
|
|
10
10
|
gridArea,
|
|
11
|
-
gridColumn:
|
|
11
|
+
gridColumn: require_utils_common_object.replaceObject(colSpan, (value) => value != null ? `span ${value}/span ${value}` : void 0),
|
|
12
12
|
gridColumnEnd,
|
|
13
13
|
gridColumnStart,
|
|
14
|
-
gridRow:
|
|
14
|
+
gridRow: require_utils_common_object.replaceObject(rowSpan, (value) => value != null ? `span ${value}/span ${value}` : void 0),
|
|
15
15
|
gridRowEnd,
|
|
16
16
|
gridRowStart,
|
|
17
17
|
...rest
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grid-item.cjs","names":[],"sources":["../../../../src/components/grid/grid-item.tsx"],"sourcesContent":["\"use client\"\n\nimport type { CSSProps, HTMLStyledProps, StyleValue } from \"../../core\"\nimport { createComponent } from \"../../core\"\nimport { replaceObject } from \"../../utils\"\n\nexport interface GridItemProps extends HTMLStyledProps {\n /**\n * The CSS `grid-area` property.\n */\n area?: CSSProps[\"gridArea\"]\n /**\n * The CSS `grid-column-end` property.\n */\n colEnd?: CSSProps[\"gridColumnEnd\"]\n /**\n * The number of columns the grid item should `span`.\n */\n colSpan?: StyleValue<number>\n /**\n * The CSS `grid-column-start` property.\n */\n colStart?: CSSProps[\"gridColumnStart\"]\n /**\n * The CSS `grid-row-end` property.\n */\n rowEnd?: CSSProps[\"gridRowEnd\"]\n /**\n * The number of rows the grid item should `span`.\n */\n rowSpan?: StyleValue<number>\n /**\n * The CSS `grid-row-start` property.\n */\n rowStart?: CSSProps[\"gridRowStart\"]\n}\n\nexport const {\n PropsContext: GridItemPropsContext,\n usePropsContext: useGridItemPropsContext,\n withContext,\n} = createComponent<GridItemProps>(\"grid-item\")\n\nexport const GridItem = withContext(\"div\")(\n undefined,\n ({\n area: gridArea,\n colEnd: gridColumnEnd,\n colSpan,\n colStart: gridColumnStart,\n rowEnd: gridRowEnd,\n rowSpan,\n rowStart: gridRowStart,\n ...rest\n }) => ({\n gridArea,\n gridColumn: replaceObject(colSpan, (value) =>\n value != null ? `span ${value}/span ${value}` : undefined,\n ),\n gridColumnEnd,\n gridColumnStart,\n gridRow: replaceObject(rowSpan, (value) =>\n value != null ? `span ${value}/span ${value}` : undefined,\n ),\n gridRowEnd,\n gridRowStart,\n ...rest,\n }),\n)\n"],"mappings":";;;;;;;AAqCA,MAAa,EACX,cAAc,sBACd,iBAAiB,yBACjB,aACD,GAAG,yDAA+B,YAAY;AAE/C,MAAa,WAAW,YAAY,MAAM,SAExC,CAAC,EACC,MAAM,UACN,QAAQ,eACR,SACA,UAAU,iBACV,QAAQ,YACR,SACA,UAAU,aACV,GAAG,MACJ,MAAM;CACL;CACA,YAAY,
|
|
1
|
+
{"version":3,"file":"grid-item.cjs","names":[],"sources":["../../../../src/components/grid/grid-item.tsx"],"sourcesContent":["\"use client\"\n\nimport type { CSSProps, HTMLStyledProps, StyleValue } from \"../../core\"\nimport { createComponent } from \"../../core\"\nimport { replaceObject } from \"../../utils\"\n\nexport interface GridItemProps extends HTMLStyledProps {\n /**\n * The CSS `grid-area` property.\n */\n area?: CSSProps[\"gridArea\"]\n /**\n * The CSS `grid-column-end` property.\n */\n colEnd?: CSSProps[\"gridColumnEnd\"]\n /**\n * The number of columns the grid item should `span`.\n */\n colSpan?: StyleValue<number>\n /**\n * The CSS `grid-column-start` property.\n */\n colStart?: CSSProps[\"gridColumnStart\"]\n /**\n * The CSS `grid-row-end` property.\n */\n rowEnd?: CSSProps[\"gridRowEnd\"]\n /**\n * The number of rows the grid item should `span`.\n */\n rowSpan?: StyleValue<number>\n /**\n * The CSS `grid-row-start` property.\n */\n rowStart?: CSSProps[\"gridRowStart\"]\n}\n\nexport const {\n PropsContext: GridItemPropsContext,\n usePropsContext: useGridItemPropsContext,\n withContext,\n} = createComponent<GridItemProps>(\"grid-item\")\n\nexport const GridItem = withContext(\"div\")(\n undefined,\n ({\n area: gridArea,\n colEnd: gridColumnEnd,\n colSpan,\n colStart: gridColumnStart,\n rowEnd: gridRowEnd,\n rowSpan,\n rowStart: gridRowStart,\n ...rest\n }) => ({\n gridArea,\n gridColumn: replaceObject(colSpan, (value) =>\n value != null ? `span ${value}/span ${value}` : undefined,\n ),\n gridColumnEnd,\n gridColumnStart,\n gridRow: replaceObject(rowSpan, (value) =>\n value != null ? `span ${value}/span ${value}` : undefined,\n ),\n gridRowEnd,\n gridRowStart,\n ...rest,\n }),\n)\n"],"mappings":";;;;;;;AAqCA,MAAa,EACX,cAAc,sBACd,iBAAiB,yBACjB,aACD,GAAG,yDAA+B,YAAY;AAE/C,MAAa,WAAW,YAAY,MAAM,SAExC,CAAC,EACC,MAAM,UACN,QAAQ,eACR,SACA,UAAU,iBACV,QAAQ,YACR,SACA,UAAU,aACV,GAAG,MACJ,MAAM;CACL;CACA,YAAY,0CAAc,SAAS,CAAC,UAClC,SAAS,QAAQ,OAAO,MAAM,QAAQ,iBACvC;CACD;CACA;CACA,SAAS,0CAAc,SAAS,CAAC,UAC/B,SAAS,QAAQ,OAAO,MAAM,QAAQ,iBACvC;CACD;CACA;CACA,GAAG;AACJ,GACF"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
5
|
-
const
|
|
5
|
+
const require_utils_common_dom = require('../../utils/common/dom.cjs');
|
|
6
6
|
const require_core_components_create_component = require('../../core/components/create-component.cjs');
|
|
7
7
|
const require_hooks_use_value_index = require('../../hooks/use-value/index.cjs');
|
|
8
8
|
const require_components_flex_flex = require('../flex/flex.cjs');
|
|
@@ -22,7 +22,7 @@ const Group = withContext(({ attached: attachedProp, children, orientation: orie
|
|
|
22
22
|
const attached = require_hooks_use_value_index.useValue(attachedProp);
|
|
23
23
|
const cloneChildren = require_components_group_use_group.useGroup(children);
|
|
24
24
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_flex_flex.Flex, {
|
|
25
|
-
"data-attached":
|
|
25
|
+
"data-attached": require_utils_common_dom.dataAttr(attached),
|
|
26
26
|
"data-orientation": orientation,
|
|
27
27
|
role: "group",
|
|
28
28
|
...rest,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"group.cjs","names":["groupStyle","Flex"],"sources":["../../../../src/components/group/group.tsx"],"sourcesContent":["\"use client\"\n\nimport type { ThemeProps } from \"../../core\"\nimport type { FlexProps } from \"../flex\"\nimport type { GroupStyle } from \"./group.style\"\nimport { createComponent } from \"../../core\"\nimport { useValue } from \"../../hooks/use-value\"\nimport { dataAttr } from \"../../utils\"\nimport { Flex } from \"../flex\"\nimport { groupStyle } from \"./group.style\"\nimport { useGroup } from \"./use-group\"\n\nexport interface GroupProps\n extends Omit<FlexProps, \"grow\">,\n ThemeProps<GroupStyle> {}\n\nexport const {\n PropsContext: GroupPropsContext,\n usePropsContext: useGroupPropsContext,\n withContext,\n} = createComponent<GroupProps, GroupStyle>(\"group\", groupStyle)\n\n/**\n * `Group` is a component that groups and attaches multiple elements together.\n *\n * @see https://yamada-ui.com/components/group\n */\nexport const Group = withContext(\n ({\n attached: attachedProp,\n children,\n orientation: orientationProp,\n ...rest\n }) => {\n const orientation = useValue(orientationProp)\n const attached = useValue(attachedProp)\n const cloneChildren = useGroup(children)\n\n return (\n <Flex\n data-attached={dataAttr(attached)}\n data-orientation={orientation}\n role=\"group\"\n {...rest}\n >\n {cloneChildren}\n </Flex>\n )\n },\n { transferProps: [\"attached\", \"orientation\"] },\n)()\n"],"mappings":";;;;;;;;;;;;;AAgBA,MAAa,EACX,cAAc,mBACd,iBAAiB,sBACjB,aACD,GAAG,yDAAwC,SAASA,gDAAW;;;;;;AAOhE,MAAa,QAAQ,YACnB,CAAC,EACC,UAAU,cACV,UACA,aAAa,gBACb,GAAG,MACJ,KAAK;CACJ,MAAM,cAAc,uCAAS,gBAAgB;CAC7C,MAAM,WAAW,uCAAS,aAAa;CACvC,MAAM,gBAAgB,4CAAS,SAAS;AAExC,wBACE,2BAACC;EACC,iBAAe,
|
|
1
|
+
{"version":3,"file":"group.cjs","names":["groupStyle","Flex"],"sources":["../../../../src/components/group/group.tsx"],"sourcesContent":["\"use client\"\n\nimport type { ThemeProps } from \"../../core\"\nimport type { FlexProps } from \"../flex\"\nimport type { GroupStyle } from \"./group.style\"\nimport { createComponent } from \"../../core\"\nimport { useValue } from \"../../hooks/use-value\"\nimport { dataAttr } from \"../../utils\"\nimport { Flex } from \"../flex\"\nimport { groupStyle } from \"./group.style\"\nimport { useGroup } from \"./use-group\"\n\nexport interface GroupProps\n extends Omit<FlexProps, \"grow\">,\n ThemeProps<GroupStyle> {}\n\nexport const {\n PropsContext: GroupPropsContext,\n usePropsContext: useGroupPropsContext,\n withContext,\n} = createComponent<GroupProps, GroupStyle>(\"group\", groupStyle)\n\n/**\n * `Group` is a component that groups and attaches multiple elements together.\n *\n * @see https://yamada-ui.com/components/group\n */\nexport const Group = withContext(\n ({\n attached: attachedProp,\n children,\n orientation: orientationProp,\n ...rest\n }) => {\n const orientation = useValue(orientationProp)\n const attached = useValue(attachedProp)\n const cloneChildren = useGroup(children)\n\n return (\n <Flex\n data-attached={dataAttr(attached)}\n data-orientation={orientation}\n role=\"group\"\n {...rest}\n >\n {cloneChildren}\n </Flex>\n )\n },\n { transferProps: [\"attached\", \"orientation\"] },\n)()\n"],"mappings":";;;;;;;;;;;;;AAgBA,MAAa,EACX,cAAc,mBACd,iBAAiB,sBACjB,aACD,GAAG,yDAAwC,SAASA,gDAAW;;;;;;AAOhE,MAAa,QAAQ,YACnB,CAAC,EACC,UAAU,cACV,UACA,aAAa,gBACb,GAAG,MACJ,KAAK;CACJ,MAAM,cAAc,uCAAS,gBAAgB;CAC7C,MAAM,WAAW,uCAAS,aAAa;CACvC,MAAM,gBAAgB,4CAAS,SAAS;AAExC,wBACE,2BAACC;EACC,iBAAe,kCAAS,SAAS;EACjC,oBAAkB;EAClB,MAAK;EACL,GAAI;YAEH;GACI;AAEV,GACD,EAAE,eAAe,CAAC,YAAY,aAAc,EAAE,EAC/C,EAAE"}
|