@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":"use-steps.cjs","names":["indexProp: number","indexProp","index","getRootProps: PropGetter","getListProps: PropGetter<\"ol\">","getContentProps: PropGetter<\"div\", { index?: number }>","getPrevTriggerProps: PropGetter<\"button\">","getNextTriggerProps: PropGetter<\"button\">","getRootProps: PropGetter<\"li\">","getTitleProps: PropGetter<\"h3\">","getDescriptionProps: PropGetter<\"p\">","getIndicatorProps: PropGetter","getSeparatorProps: PropGetter"],"sources":["../../../../src/components/steps/use-steps.ts"],"sourcesContent":["\"use client\"\n\nimport type { HTMLProps, Orientation, PropGetter } from \"../../core\"\nimport { useCallback, useId } from \"react\"\nimport { useEnvironment } from \"../../core\"\nimport { useControllableState } from \"../../hooks/use-controllable-state\"\nimport { createDescendant } from \"../../hooks/use-descendant\"\nimport { createContext, cx, dataAttr, handlerAll, mergeRefs } from \"../../utils\"\n\nexport type StepStatusScheme = \"complete\" | \"current\" | \"incomplete\"\n\nexport const {\n DescendantsContext: StepsDescendantsContext,\n useDescendant: useStepsDescendant,\n useDescendants: useStepsDescendants,\n} = createDescendant<HTMLLIElement>()\n\ninterface StepsContext\n extends Omit<UseStepsReturn, \"descendants\" | \"getRootProps\"> {}\n\nexport const [StepsContext, useStepsContext] = createContext<StepsContext>({\n name: \"StepsContext\",\n})\n\nexport interface StepsItemContext\n extends Omit<UseStepsItemReturn, \"getRootProps\"> {}\n\nexport const [StepsItemContext, useStepsItemContext] =\n createContext<StepsItemContext>({\n name: \"StepsItemContext\",\n })\n\nexport interface UseStepsProps extends Omit<HTMLProps, \"onChange\"> {\n /**\n * The initial index of the active step.\n *\n * @default 0\n */\n defaultIndex?: number\n /**\n * The index of the active step.\n */\n index?: number\n /**\n * The orientation of the steps.\n *\n * @default 'horizontal'\n */\n orientation?: Orientation\n /**\n * The callback function that is called when the active step index is changed.\n */\n onChange?: (index: number) => void\n}\n\nexport const useSteps = ({\n defaultIndex = 0,\n index: indexProp,\n orientation = \"horizontal\",\n onChange,\n ...rest\n}: UseStepsProps = {}) => {\n const descendants = useStepsDescendants()\n const [index, setIndex] = useControllableState({\n defaultValue: defaultIndex,\n value: indexProp,\n onChange,\n })\n const id = useId()\n const count = descendants.count()\n\n const getStatus = useCallback(\n (indexProp: number): StepStatusScheme => {\n if (indexProp < index) {\n return \"complete\"\n } else if (indexProp > index) {\n return \"incomplete\"\n } else {\n return \"current\"\n }\n },\n [index],\n )\n\n const onPrev = useCallback(\n () => setIndex((index) => Math.max(0, index - 1)),\n [setIndex],\n )\n\n const onNext = useCallback(() => {\n setIndex((index) => Math.min(count, index + 1))\n }, [count, setIndex])\n\n const getRootProps: PropGetter = useCallback(\n ({ ref, ...props } = {}) => ({\n ...rest,\n ...props,\n ref: mergeRefs(ref, rest.ref),\n }),\n [rest],\n )\n\n const getListProps: PropGetter<\"ol\"> = useCallback(\n (props) => {\n return {\n \"data-orientation\": orientation,\n ...props,\n }\n },\n [orientation],\n )\n\n const getContentProps: PropGetter<\"div\", { index?: number }> = useCallback(\n ({ index: indexProp = count, ...props } = {}) => ({\n id: `${id}-${indexProp}`,\n hidden: indexProp !== index,\n tabIndex: 0,\n ...props,\n }),\n [count, id, index],\n )\n\n const getPrevTriggerProps: PropGetter<\"button\"> = useCallback(\n (props = {}) => ({\n disabled: index === 0,\n ...props,\n onClick: handlerAll(props.onClick, onPrev),\n }),\n [onPrev, index],\n )\n\n const getNextTriggerProps: PropGetter<\"button\"> = useCallback(\n (props = {}) => {\n return {\n disabled: count <= index,\n ...props,\n onClick: handlerAll(props.onClick, onNext),\n }\n },\n [count, index, onNext],\n )\n\n return {\n id,\n count,\n descendants,\n getStatus,\n index,\n orientation,\n setIndex,\n getContentProps,\n getListProps,\n getNextTriggerProps,\n getPrevTriggerProps,\n getRootProps,\n onNext,\n onPrev,\n }\n}\n\nexport type UseStepsReturn = ReturnType<typeof useSteps>\n\nexport interface UseStepsItemProps extends HTMLProps<\"li\"> {}\n\nexport const useStepsItem = ({\n \"aria-labelledby\": ariaLabelledbyProp,\n ...rest\n}: UseStepsItemProps = {}) => {\n const { descendants, index, register } = useStepsDescendant()\n const { id, getStatus, orientation } = useStepsContext()\n const status = getStatus(index)\n const current = status === \"current\"\n const first = index === 0\n const last = index === descendants.lastValue()?.index\n const statusDataAttr = `data-${status}`\n const { getDocument } = useEnvironment()\n\n const getRootProps: PropGetter<\"li\"> = useCallback(\n ({ ref, \"aria-labelledby\": ariaLabelledby, ...props } = {}) => {\n const hasContent = !!getDocument()?.getElementById(`${id}-${index}`)\n\n return {\n \"aria-current\": current ? \"step\" : undefined,\n \"aria-labelledby\": cx(\n ariaLabelledbyProp,\n ariaLabelledby,\n hasContent ? `${id}-${index}` : undefined,\n ),\n \"data-orientation\": orientation,\n [statusDataAttr]: dataAttr(true),\n ...rest,\n ...props,\n ref: mergeRefs(ref, register),\n }\n },\n [\n ariaLabelledbyProp,\n getDocument,\n id,\n index,\n current,\n orientation,\n statusDataAttr,\n rest,\n register,\n ],\n )\n\n const getTitleProps: PropGetter<\"h3\"> = useCallback(\n (props) => ({\n [statusDataAttr]: dataAttr(true),\n ...props,\n }),\n [statusDataAttr],\n )\n\n const getDescriptionProps: PropGetter<\"p\"> = useCallback(\n (props) => ({\n [statusDataAttr]: dataAttr(true),\n ...props,\n }),\n [statusDataAttr],\n )\n\n const getIndicatorProps: PropGetter = useCallback(\n (props) => ({\n [statusDataAttr]: dataAttr(true),\n ...props,\n }),\n [statusDataAttr],\n )\n\n const getSeparatorProps: PropGetter = useCallback(\n (props) => ({\n \"data-orientation\": orientation,\n role: \"separator\",\n [statusDataAttr]: dataAttr(true),\n ...props,\n }),\n [orientation, statusDataAttr],\n )\n\n return {\n first,\n index,\n last,\n status,\n getDescriptionProps,\n getIndicatorProps,\n getRootProps,\n getSeparatorProps,\n getTitleProps,\n }\n}\n\nexport type UseStepsItemReturn = ReturnType<typeof useStepsItem>\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-steps.cjs","names":["indexProp: number","indexProp","index","getRootProps: PropGetter","getListProps: PropGetter<\"ol\">","getContentProps: PropGetter<\"div\", { index?: number }>","getPrevTriggerProps: PropGetter<\"button\">","getNextTriggerProps: PropGetter<\"button\">","getRootProps: PropGetter<\"li\">","getTitleProps: PropGetter<\"h3\">","getDescriptionProps: PropGetter<\"p\">","getIndicatorProps: PropGetter","getSeparatorProps: PropGetter"],"sources":["../../../../src/components/steps/use-steps.ts"],"sourcesContent":["\"use client\"\n\nimport type { HTMLProps, Orientation, PropGetter } from \"../../core\"\nimport { useCallback, useId } from \"react\"\nimport { useEnvironment } from \"../../core\"\nimport { useControllableState } from \"../../hooks/use-controllable-state\"\nimport { createDescendant } from \"../../hooks/use-descendant\"\nimport { createContext, cx, dataAttr, handlerAll, mergeRefs } from \"../../utils\"\n\nexport type StepStatusScheme = \"complete\" | \"current\" | \"incomplete\"\n\nexport const {\n DescendantsContext: StepsDescendantsContext,\n useDescendant: useStepsDescendant,\n useDescendants: useStepsDescendants,\n} = createDescendant<HTMLLIElement>()\n\ninterface StepsContext\n extends Omit<UseStepsReturn, \"descendants\" | \"getRootProps\"> {}\n\nexport const [StepsContext, useStepsContext] = createContext<StepsContext>({\n name: \"StepsContext\",\n})\n\nexport interface StepsItemContext\n extends Omit<UseStepsItemReturn, \"getRootProps\"> {}\n\nexport const [StepsItemContext, useStepsItemContext] =\n createContext<StepsItemContext>({\n name: \"StepsItemContext\",\n })\n\nexport interface UseStepsProps extends Omit<HTMLProps, \"onChange\"> {\n /**\n * The initial index of the active step.\n *\n * @default 0\n */\n defaultIndex?: number\n /**\n * The index of the active step.\n */\n index?: number\n /**\n * The orientation of the steps.\n *\n * @default 'horizontal'\n */\n orientation?: Orientation\n /**\n * The callback function that is called when the active step index is changed.\n */\n onChange?: (index: number) => void\n}\n\nexport const useSteps = ({\n defaultIndex = 0,\n index: indexProp,\n orientation = \"horizontal\",\n onChange,\n ...rest\n}: UseStepsProps = {}) => {\n const descendants = useStepsDescendants()\n const [index, setIndex] = useControllableState({\n defaultValue: defaultIndex,\n value: indexProp,\n onChange,\n })\n const id = useId()\n const count = descendants.count()\n\n const getStatus = useCallback(\n (indexProp: number): StepStatusScheme => {\n if (indexProp < index) {\n return \"complete\"\n } else if (indexProp > index) {\n return \"incomplete\"\n } else {\n return \"current\"\n }\n },\n [index],\n )\n\n const onPrev = useCallback(\n () => setIndex((index) => Math.max(0, index - 1)),\n [setIndex],\n )\n\n const onNext = useCallback(() => {\n setIndex((index) => Math.min(count, index + 1))\n }, [count, setIndex])\n\n const getRootProps: PropGetter = useCallback(\n ({ ref, ...props } = {}) => ({\n ...rest,\n ...props,\n ref: mergeRefs(ref, rest.ref),\n }),\n [rest],\n )\n\n const getListProps: PropGetter<\"ol\"> = useCallback(\n (props) => {\n return {\n \"data-orientation\": orientation,\n ...props,\n }\n },\n [orientation],\n )\n\n const getContentProps: PropGetter<\"div\", { index?: number }> = useCallback(\n ({ index: indexProp = count, ...props } = {}) => ({\n id: `${id}-${indexProp}`,\n hidden: indexProp !== index,\n tabIndex: 0,\n ...props,\n }),\n [count, id, index],\n )\n\n const getPrevTriggerProps: PropGetter<\"button\"> = useCallback(\n (props = {}) => ({\n disabled: index === 0,\n ...props,\n onClick: handlerAll(props.onClick, onPrev),\n }),\n [onPrev, index],\n )\n\n const getNextTriggerProps: PropGetter<\"button\"> = useCallback(\n (props = {}) => {\n return {\n disabled: count <= index,\n ...props,\n onClick: handlerAll(props.onClick, onNext),\n }\n },\n [count, index, onNext],\n )\n\n return {\n id,\n count,\n descendants,\n getStatus,\n index,\n orientation,\n setIndex,\n getContentProps,\n getListProps,\n getNextTriggerProps,\n getPrevTriggerProps,\n getRootProps,\n onNext,\n onPrev,\n }\n}\n\nexport type UseStepsReturn = ReturnType<typeof useSteps>\n\nexport interface UseStepsItemProps extends HTMLProps<\"li\"> {}\n\nexport const useStepsItem = ({\n \"aria-labelledby\": ariaLabelledbyProp,\n ...rest\n}: UseStepsItemProps = {}) => {\n const { descendants, index, register } = useStepsDescendant()\n const { id, getStatus, orientation } = useStepsContext()\n const status = getStatus(index)\n const current = status === \"current\"\n const first = index === 0\n const last = index === descendants.lastValue()?.index\n const statusDataAttr = `data-${status}`\n const { getDocument } = useEnvironment()\n\n const getRootProps: PropGetter<\"li\"> = useCallback(\n ({ ref, \"aria-labelledby\": ariaLabelledby, ...props } = {}) => {\n const hasContent = !!getDocument()?.getElementById(`${id}-${index}`)\n\n return {\n \"aria-current\": current ? \"step\" : undefined,\n \"aria-labelledby\": cx(\n ariaLabelledbyProp,\n ariaLabelledby,\n hasContent ? `${id}-${index}` : undefined,\n ),\n \"data-orientation\": orientation,\n [statusDataAttr]: dataAttr(true),\n ...rest,\n ...props,\n ref: mergeRefs(ref, register),\n }\n },\n [\n ariaLabelledbyProp,\n getDocument,\n id,\n index,\n current,\n orientation,\n statusDataAttr,\n rest,\n register,\n ],\n )\n\n const getTitleProps: PropGetter<\"h3\"> = useCallback(\n (props) => ({\n [statusDataAttr]: dataAttr(true),\n ...props,\n }),\n [statusDataAttr],\n )\n\n const getDescriptionProps: PropGetter<\"p\"> = useCallback(\n (props) => ({\n [statusDataAttr]: dataAttr(true),\n ...props,\n }),\n [statusDataAttr],\n )\n\n const getIndicatorProps: PropGetter = useCallback(\n (props) => ({\n [statusDataAttr]: dataAttr(true),\n ...props,\n }),\n [statusDataAttr],\n )\n\n const getSeparatorProps: PropGetter = useCallback(\n (props) => ({\n \"data-orientation\": orientation,\n role: \"separator\",\n [statusDataAttr]: dataAttr(true),\n ...props,\n }),\n [orientation, statusDataAttr],\n )\n\n return {\n first,\n index,\n last,\n status,\n getDescriptionProps,\n getIndicatorProps,\n getRootProps,\n getSeparatorProps,\n getTitleProps,\n }\n}\n\nexport type UseStepsItemReturn = ReturnType<typeof useStepsItem>\n"],"mappings":"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"}
|
|
@@ -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_assertion = require('../../utils/common/assertion.cjs');
|
|
6
6
|
const require_core_system_factory = require('../../core/system/factory.cjs');
|
|
7
7
|
const require_core_components_create_component = require('../../core/components/create-component.cjs');
|
|
8
8
|
const require_components_switch_switch_style = require('./switch.style.cjs');
|
|
@@ -29,7 +29,7 @@ const Switch = withProvider(({ children, icon, inputProps, labelProps,...props }
|
|
|
29
29
|
...getTrackProps(),
|
|
30
30
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SwitchThumb, {
|
|
31
31
|
...getThumbProps(),
|
|
32
|
-
children: icon &&
|
|
32
|
+
children: icon && require_utils_common_assertion.isObject(icon) && "on" in icon ? checked ? icon.on : icon.off : icon
|
|
33
33
|
})
|
|
34
34
|
}),
|
|
35
35
|
children ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SwitchLabel, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"switch.cjs","names":["switchStyle","styled"],"sources":["../../../../src/components/switch/switch.tsx"],"sourcesContent":["\"use client\"\n\nimport type { ReactNode } from \"react\"\nimport type { HTMLStyledProps, ThemeProps } from \"../../core\"\nimport type { Merge } from \"../../utils\"\nimport type { SwitchStyle } from \"./switch.style\"\nimport type { UseSwitchProps } from \"./use-switch\"\nimport { createSlotComponent, styled } from \"../../core\"\nimport { isObject } from \"../../utils\"\nimport { switchStyle } from \"./switch.style\"\nimport { useSwitch } from \"./use-switch\"\n\nexport interface SwitchProps\n extends Merge<HTMLStyledProps<\"label\">, UseSwitchProps>,\n ThemeProps<SwitchStyle> {\n /**\n * The switch icon to use.\n */\n icon?: ReactNode | { off: ReactNode; on: ReactNode }\n /**\n * Props for switch input element.\n */\n inputProps?: HTMLStyledProps<\"input\">\n /**\n * Props for switch label element.\n */\n labelProps?: HTMLStyledProps<\"span\">\n}\n\nexport const {\n PropsContext: SwitchPropsContext,\n usePropsContext: useSwitchPropsContext,\n withContext,\n withProvider,\n} = createSlotComponent<SwitchProps, SwitchStyle>(\"switch\", switchStyle)\n\n/**\n * `Switch` is a component used to toggle between on and off states.\n *\n * @see https://yamada-ui.com/components/switch\n */\nexport const Switch = withProvider<\"input\", SwitchProps>(\n ({ children, icon, inputProps, labelProps, ...props }) => {\n const {\n checked,\n getInputProps,\n getLabelProps,\n getRootProps,\n getThumbProps,\n getTrackProps,\n } = useSwitch(props)\n\n return (\n <styled.label {...getRootProps()}>\n <styled.input data-peer {...getInputProps(inputProps)} />\n\n <SwitchTrack {...getTrackProps()}>\n <SwitchThumb {...getThumbProps()}>\n {icon && isObject(icon) && \"on\" in icon\n ? checked\n ? icon.on\n : icon.off\n : icon}\n </SwitchThumb>\n </SwitchTrack>\n\n {children ? (\n <SwitchLabel {...getLabelProps(labelProps)}>{children}</SwitchLabel>\n ) : null}\n </styled.label>\n )\n },\n \"root\",\n)()\n\ninterface SwitchThumbProps extends HTMLStyledProps {}\n\nconst SwitchThumb = withContext<\"div\", SwitchThumbProps>(\"div\", \"thumb\")()\n\ninterface SwitchTrackProps extends HTMLStyledProps {}\n\nconst SwitchTrack = withContext<\"div\", SwitchTrackProps>(\"div\", \"track\")()\n\ninterface SwitchLabelProps extends HTMLStyledProps<\"span\"> {}\n\nconst SwitchLabel = withContext<\"span\", SwitchLabelProps>(\"span\", \"label\")()\n"],"mappings":";;;;;;;;;;;;AA6BA,MAAa,EACX,cAAc,oBACd,iBAAiB,uBACjB,aACA,cACD,GAAG,6DAA8C,UAAUA,mDAAY;;;;;;AAOxE,MAAa,SAAS,aACpB,CAAC,EAAE,UAAU,MAAM,YAAY,WAAY,GAAG,OAAO,KAAK;CACxD,MAAM,EACJ,SACA,eACA,eACA,cACA,eACA,eACD,GAAG,+CAAU,MAAM;AAEpB,wBACE,4BAACC,mCAAO;EAAM,GAAI,cAAc;;mBAC9B,2BAACA,mCAAO;IAAM;IAAU,GAAI,cAAc,WAAW;KAAI;mBAEzD,2BAAC;IAAY,GAAI,eAAe;8BAC9B,2BAAC;KAAY,GAAI,eAAe;eAC7B,QAAQ,
|
|
1
|
+
{"version":3,"file":"switch.cjs","names":["switchStyle","styled"],"sources":["../../../../src/components/switch/switch.tsx"],"sourcesContent":["\"use client\"\n\nimport type { ReactNode } from \"react\"\nimport type { HTMLStyledProps, ThemeProps } from \"../../core\"\nimport type { Merge } from \"../../utils\"\nimport type { SwitchStyle } from \"./switch.style\"\nimport type { UseSwitchProps } from \"./use-switch\"\nimport { createSlotComponent, styled } from \"../../core\"\nimport { isObject } from \"../../utils\"\nimport { switchStyle } from \"./switch.style\"\nimport { useSwitch } from \"./use-switch\"\n\nexport interface SwitchProps\n extends Merge<HTMLStyledProps<\"label\">, UseSwitchProps>,\n ThemeProps<SwitchStyle> {\n /**\n * The switch icon to use.\n */\n icon?: ReactNode | { off: ReactNode; on: ReactNode }\n /**\n * Props for switch input element.\n */\n inputProps?: HTMLStyledProps<\"input\">\n /**\n * Props for switch label element.\n */\n labelProps?: HTMLStyledProps<\"span\">\n}\n\nexport const {\n PropsContext: SwitchPropsContext,\n usePropsContext: useSwitchPropsContext,\n withContext,\n withProvider,\n} = createSlotComponent<SwitchProps, SwitchStyle>(\"switch\", switchStyle)\n\n/**\n * `Switch` is a component used to toggle between on and off states.\n *\n * @see https://yamada-ui.com/components/switch\n */\nexport const Switch = withProvider<\"input\", SwitchProps>(\n ({ children, icon, inputProps, labelProps, ...props }) => {\n const {\n checked,\n getInputProps,\n getLabelProps,\n getRootProps,\n getThumbProps,\n getTrackProps,\n } = useSwitch(props)\n\n return (\n <styled.label {...getRootProps()}>\n <styled.input data-peer {...getInputProps(inputProps)} />\n\n <SwitchTrack {...getTrackProps()}>\n <SwitchThumb {...getThumbProps()}>\n {icon && isObject(icon) && \"on\" in icon\n ? checked\n ? icon.on\n : icon.off\n : icon}\n </SwitchThumb>\n </SwitchTrack>\n\n {children ? (\n <SwitchLabel {...getLabelProps(labelProps)}>{children}</SwitchLabel>\n ) : null}\n </styled.label>\n )\n },\n \"root\",\n)()\n\ninterface SwitchThumbProps extends HTMLStyledProps {}\n\nconst SwitchThumb = withContext<\"div\", SwitchThumbProps>(\"div\", \"thumb\")()\n\ninterface SwitchTrackProps extends HTMLStyledProps {}\n\nconst SwitchTrack = withContext<\"div\", SwitchTrackProps>(\"div\", \"track\")()\n\ninterface SwitchLabelProps extends HTMLStyledProps<\"span\"> {}\n\nconst SwitchLabel = withContext<\"span\", SwitchLabelProps>(\"span\", \"label\")()\n"],"mappings":";;;;;;;;;;;;AA6BA,MAAa,EACX,cAAc,oBACd,iBAAiB,uBACjB,aACA,cACD,GAAG,6DAA8C,UAAUA,mDAAY;;;;;;AAOxE,MAAa,SAAS,aACpB,CAAC,EAAE,UAAU,MAAM,YAAY,WAAY,GAAG,OAAO,KAAK;CACxD,MAAM,EACJ,SACA,eACA,eACA,cACA,eACA,eACD,GAAG,+CAAU,MAAM;AAEpB,wBACE,4BAACC,mCAAO;EAAM,GAAI,cAAc;;mBAC9B,2BAACA,mCAAO;IAAM;IAAU,GAAI,cAAc,WAAW;KAAI;mBAEzD,2BAAC;IAAY,GAAI,eAAe;8BAC9B,2BAAC;KAAY,GAAI,eAAe;eAC7B,QAAQ,wCAAS,KAAK,IAAI,QAAQ,OAC/B,UACE,KAAK,KACL,KAAK,MACP;MACQ;KACF;GAEb,2BACC,2BAAC;IAAY,GAAI,cAAc,WAAW;IAAG;KAAuB,GAClE;;GACS;AAElB,GACD,OACD,EAAE;AAIH,MAAM,cAAc,YAAqC,OAAO,QAAQ,EAAE;AAI1E,MAAM,cAAc,YAAqC,OAAO,QAAQ,EAAE;AAI1E,MAAM,cAAc,YAAsC,QAAQ,QAAQ,EAAE"}
|
|
@@ -4,7 +4,8 @@
|
|
|
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_function = require('../../utils/common/function.cjs');
|
|
8
|
+
const require_utils_common_dom = require('../../utils/common/dom.cjs');
|
|
8
9
|
const require_hooks_use_controllable_state_index = require('../../hooks/use-controllable-state/index.cjs');
|
|
9
10
|
const require_components_field_use_field_props = require('../field/use-field-props.cjs');
|
|
10
11
|
const react = require_rolldown_runtime.__toESM(require("react"));
|
|
@@ -34,7 +35,7 @@ const useSwitch = (props = {}) => {
|
|
|
34
35
|
const getRootProps = (0, react.useCallback)((props$1 = {}) => ({
|
|
35
36
|
...dataProps,
|
|
36
37
|
htmlFor: id,
|
|
37
|
-
"data-checked":
|
|
38
|
+
"data-checked": require_utils_common_dom.dataAttr(checked),
|
|
38
39
|
...rest,
|
|
39
40
|
...props$1
|
|
40
41
|
}), [
|
|
@@ -44,12 +45,12 @@ const useSwitch = (props = {}) => {
|
|
|
44
45
|
dataProps
|
|
45
46
|
]);
|
|
46
47
|
const getTrackProps = (0, react.useCallback)((props$1 = {}) => ({
|
|
47
|
-
"data-checked":
|
|
48
|
+
"data-checked": require_utils_common_dom.dataAttr(checked),
|
|
48
49
|
...dataProps,
|
|
49
50
|
...props$1
|
|
50
51
|
}), [checked, dataProps]);
|
|
51
52
|
const getThumbProps = (0, react.useCallback)((props$1 = {}) => ({
|
|
52
|
-
"data-checked":
|
|
53
|
+
"data-checked": require_utils_common_dom.dataAttr(checked),
|
|
53
54
|
...dataProps,
|
|
54
55
|
...props$1
|
|
55
56
|
}), [checked, dataProps]);
|
|
@@ -69,10 +70,10 @@ const useSwitch = (props = {}) => {
|
|
|
69
70
|
value,
|
|
70
71
|
...props$1,
|
|
71
72
|
ref: require_utils_ref.mergeRefs(inputRef, props$1.ref, ref),
|
|
72
|
-
onBlur:
|
|
73
|
-
onChange:
|
|
74
|
-
onFocus:
|
|
75
|
-
onKeyDown:
|
|
73
|
+
onBlur: require_utils_common_function.handlerAll(eventProps.onBlur, props$1.onBlur),
|
|
74
|
+
onChange: require_utils_common_function.handlerAll(props$1.onChange, onChange),
|
|
75
|
+
onFocus: require_utils_common_function.handlerAll(eventProps.onFocus, props$1.onFocus),
|
|
76
|
+
onKeyDown: require_utils_common_function.handlerAll(props$1.onKeyDown, onKeyDown)
|
|
76
77
|
}), [
|
|
77
78
|
ariaProps,
|
|
78
79
|
dataProps,
|
|
@@ -91,7 +92,7 @@ const useSwitch = (props = {}) => {
|
|
|
91
92
|
]);
|
|
92
93
|
const getLabelProps = (0, react.useCallback)((props$1 = {}) => ({
|
|
93
94
|
...dataProps,
|
|
94
|
-
"data-checked":
|
|
95
|
+
"data-checked": require_utils_common_dom.dataAttr(checked),
|
|
95
96
|
...props$1
|
|
96
97
|
}), [dataProps, checked]);
|
|
97
98
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-switch.cjs","names":["props: UseSwitchProps<Y>","ev: ChangeEvent<HTMLInputElement>","ev: KeyboardEvent<HTMLInputElement>","getRootProps: PropGetter<\"label\">","props","getTrackProps: PropGetter","getThumbProps: PropGetter","getInputProps: PropGetter<\"input\">","visuallyHiddenAttributes","getLabelProps: PropGetter<\"span\">"],"sources":["../../../../src/components/switch/use-switch.ts"],"sourcesContent":["\"use client\"\n\nimport type {\n ChangeEvent,\n ChangeEventHandler,\n FocusEventHandler,\n KeyboardEvent,\n} from \"react\"\nimport type { HTMLProps, HTMLRefAttributes, PropGetter } from \"../../core\"\nimport type { FieldProps } from \"../field\"\nimport { useCallback, useId, useRef } from \"react\"\nimport { useControllableState } from \"../../hooks/use-controllable-state\"\nimport {\n dataAttr,\n handlerAll,\n mergeRefs,\n visuallyHiddenAttributes,\n} from \"../../utils\"\nimport { useFieldProps } from \"../field\"\n\nexport interface UseSwitchProps<Y extends number | string = string>\n extends Omit<HTMLProps<\"label\">, \"onBlur\" | \"onChange\" | \"onFocus\" | \"ref\">,\n HTMLRefAttributes<\"input\">,\n FieldProps {\n /**\n * id assigned to input.\n */\n id?: string\n /**\n * The HTML `name` attribute used for forms.\n */\n name?: string\n /**\n * If `true`, the switch will be checked.\n *\n * @default false\n */\n checked?: boolean\n /**\n * If `true`, the switch will be checked when the Enter key is pressed.\n *\n * @default true\n */\n checkOnEnter?: boolean\n /**\n * If `true`, the switch will be initially checked.\n *\n * @default false\n */\n defaultChecked?: boolean\n /**\n * The tab-index property of the underlying input element.\n */\n tabIndex?: number\n /**\n * The value to be used in the switch input.\n */\n value?: Y\n /**\n * The callback invoked when the switch is blurred.\n */\n onBlur?: FocusEventHandler<HTMLInputElement>\n /**\n * The callback invoked when the checked state changes.\n */\n onChange?: ChangeEventHandler<HTMLInputElement>\n /**\n * The callback invoked when the switch is focused.\n */\n onFocus?: FocusEventHandler<HTMLInputElement>\n}\n\nexport const useSwitch = <Y extends number | string = string>(\n props: UseSwitchProps<Y> = {},\n) => {\n const uuid = useId()\n const {\n props: {\n id = uuid,\n ref,\n name,\n checked: checkedProp,\n checkOnEnter = true,\n defaultChecked = false,\n disabled,\n readOnly,\n required,\n value,\n onChange: onChangeProp,\n ...rest\n },\n ariaProps,\n dataProps,\n eventProps,\n } = useFieldProps(props)\n const interactive = !(readOnly || disabled)\n const inputRef = useRef<HTMLInputElement>(null)\n const [checked, setChecked] = useControllableState({\n defaultValue: defaultChecked,\n value: checkedProp,\n })\n\n const onChange = useCallback(\n (ev: ChangeEvent<HTMLInputElement>) => {\n if (!interactive) return ev.preventDefault()\n\n setChecked(ev.target.checked)\n onChangeProp?.(ev)\n },\n [onChangeProp, setChecked, interactive],\n )\n\n const onKeyDown = useCallback(\n (ev: KeyboardEvent<HTMLInputElement>) => {\n if (interactive && checkOnEnter && ev.key === \"Enter\")\n inputRef.current?.click()\n },\n [interactive, checkOnEnter],\n )\n\n const getRootProps: PropGetter<\"label\"> = useCallback(\n (props = {}) => ({\n ...dataProps,\n htmlFor: id,\n \"data-checked\": dataAttr(checked),\n ...rest,\n ...props,\n }),\n [checked, rest, id, dataProps],\n )\n\n const getTrackProps: PropGetter = useCallback(\n (props = {}) => ({\n \"data-checked\": dataAttr(checked),\n ...dataProps,\n ...props,\n }),\n [checked, dataProps],\n )\n\n const getThumbProps: PropGetter = useCallback(\n (props = {}) => ({\n \"data-checked\": dataAttr(checked),\n ...dataProps,\n ...props,\n }),\n [checked, dataProps],\n )\n\n const getInputProps: PropGetter<\"input\"> = useCallback(\n (props = {}) => ({\n ...ariaProps,\n ...dataProps,\n id,\n type: \"checkbox\",\n name,\n style: visuallyHiddenAttributes.style,\n checked,\n disabled,\n readOnly,\n required,\n role: \"switch\",\n tabIndex: interactive ? 0 : -1,\n value,\n ...props,\n ref: mergeRefs(inputRef, props.ref, ref),\n onBlur: handlerAll(eventProps.onBlur, props.onBlur),\n onChange: handlerAll(props.onChange, onChange),\n onFocus: handlerAll(eventProps.onFocus, props.onFocus),\n onKeyDown: handlerAll(props.onKeyDown, onKeyDown),\n }),\n [\n ariaProps,\n dataProps,\n id,\n name,\n checked,\n disabled,\n readOnly,\n required,\n interactive,\n value,\n ref,\n eventProps,\n onChange,\n onKeyDown,\n ],\n )\n\n const getLabelProps: PropGetter<\"span\"> = useCallback(\n (props = {}) => ({\n ...dataProps,\n \"data-checked\": dataAttr(checked),\n ...props,\n }),\n [dataProps, checked],\n )\n\n return {\n checked,\n getInputProps,\n getLabelProps,\n getRootProps,\n getThumbProps,\n getTrackProps,\n }\n}\n\nexport type UseSwitchReturn = ReturnType<typeof useSwitch>\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-switch.cjs","names":["props: UseSwitchProps<Y>","ev: ChangeEvent<HTMLInputElement>","ev: KeyboardEvent<HTMLInputElement>","getRootProps: PropGetter<\"label\">","props","getTrackProps: PropGetter","getThumbProps: PropGetter","getInputProps: PropGetter<\"input\">","visuallyHiddenAttributes","getLabelProps: PropGetter<\"span\">"],"sources":["../../../../src/components/switch/use-switch.ts"],"sourcesContent":["\"use client\"\n\nimport type {\n ChangeEvent,\n ChangeEventHandler,\n FocusEventHandler,\n KeyboardEvent,\n} from \"react\"\nimport type { HTMLProps, HTMLRefAttributes, PropGetter } from \"../../core\"\nimport type { FieldProps } from \"../field\"\nimport { useCallback, useId, useRef } from \"react\"\nimport { useControllableState } from \"../../hooks/use-controllable-state\"\nimport {\n dataAttr,\n handlerAll,\n mergeRefs,\n visuallyHiddenAttributes,\n} from \"../../utils\"\nimport { useFieldProps } from \"../field\"\n\nexport interface UseSwitchProps<Y extends number | string = string>\n extends Omit<HTMLProps<\"label\">, \"onBlur\" | \"onChange\" | \"onFocus\" | \"ref\">,\n HTMLRefAttributes<\"input\">,\n FieldProps {\n /**\n * id assigned to input.\n */\n id?: string\n /**\n * The HTML `name` attribute used for forms.\n */\n name?: string\n /**\n * If `true`, the switch will be checked.\n *\n * @default false\n */\n checked?: boolean\n /**\n * If `true`, the switch will be checked when the Enter key is pressed.\n *\n * @default true\n */\n checkOnEnter?: boolean\n /**\n * If `true`, the switch will be initially checked.\n *\n * @default false\n */\n defaultChecked?: boolean\n /**\n * The tab-index property of the underlying input element.\n */\n tabIndex?: number\n /**\n * The value to be used in the switch input.\n */\n value?: Y\n /**\n * The callback invoked when the switch is blurred.\n */\n onBlur?: FocusEventHandler<HTMLInputElement>\n /**\n * The callback invoked when the checked state changes.\n */\n onChange?: ChangeEventHandler<HTMLInputElement>\n /**\n * The callback invoked when the switch is focused.\n */\n onFocus?: FocusEventHandler<HTMLInputElement>\n}\n\nexport const useSwitch = <Y extends number | string = string>(\n props: UseSwitchProps<Y> = {},\n) => {\n const uuid = useId()\n const {\n props: {\n id = uuid,\n ref,\n name,\n checked: checkedProp,\n checkOnEnter = true,\n defaultChecked = false,\n disabled,\n readOnly,\n required,\n value,\n onChange: onChangeProp,\n ...rest\n },\n ariaProps,\n dataProps,\n eventProps,\n } = useFieldProps(props)\n const interactive = !(readOnly || disabled)\n const inputRef = useRef<HTMLInputElement>(null)\n const [checked, setChecked] = useControllableState({\n defaultValue: defaultChecked,\n value: checkedProp,\n })\n\n const onChange = useCallback(\n (ev: ChangeEvent<HTMLInputElement>) => {\n if (!interactive) return ev.preventDefault()\n\n setChecked(ev.target.checked)\n onChangeProp?.(ev)\n },\n [onChangeProp, setChecked, interactive],\n )\n\n const onKeyDown = useCallback(\n (ev: KeyboardEvent<HTMLInputElement>) => {\n if (interactive && checkOnEnter && ev.key === \"Enter\")\n inputRef.current?.click()\n },\n [interactive, checkOnEnter],\n )\n\n const getRootProps: PropGetter<\"label\"> = useCallback(\n (props = {}) => ({\n ...dataProps,\n htmlFor: id,\n \"data-checked\": dataAttr(checked),\n ...rest,\n ...props,\n }),\n [checked, rest, id, dataProps],\n )\n\n const getTrackProps: PropGetter = useCallback(\n (props = {}) => ({\n \"data-checked\": dataAttr(checked),\n ...dataProps,\n ...props,\n }),\n [checked, dataProps],\n )\n\n const getThumbProps: PropGetter = useCallback(\n (props = {}) => ({\n \"data-checked\": dataAttr(checked),\n ...dataProps,\n ...props,\n }),\n [checked, dataProps],\n )\n\n const getInputProps: PropGetter<\"input\"> = useCallback(\n (props = {}) => ({\n ...ariaProps,\n ...dataProps,\n id,\n type: \"checkbox\",\n name,\n style: visuallyHiddenAttributes.style,\n checked,\n disabled,\n readOnly,\n required,\n role: \"switch\",\n tabIndex: interactive ? 0 : -1,\n value,\n ...props,\n ref: mergeRefs(inputRef, props.ref, ref),\n onBlur: handlerAll(eventProps.onBlur, props.onBlur),\n onChange: handlerAll(props.onChange, onChange),\n onFocus: handlerAll(eventProps.onFocus, props.onFocus),\n onKeyDown: handlerAll(props.onKeyDown, onKeyDown),\n }),\n [\n ariaProps,\n dataProps,\n id,\n name,\n checked,\n disabled,\n readOnly,\n required,\n interactive,\n value,\n ref,\n eventProps,\n onChange,\n onKeyDown,\n ],\n )\n\n const getLabelProps: PropGetter<\"span\"> = useCallback(\n (props = {}) => ({\n ...dataProps,\n \"data-checked\": dataAttr(checked),\n ...props,\n }),\n [dataProps, checked],\n )\n\n return {\n checked,\n getInputProps,\n getLabelProps,\n getRootProps,\n getThumbProps,\n getTrackProps,\n }\n}\n\nexport type UseSwitchReturn = ReturnType<typeof useSwitch>\n"],"mappings":";;;;;;;;;;;;;AAwEA,MAAa,YAAY,CACvBA,QAA2B,CAAE,MAC1B;CACH,MAAM,OAAO,kBAAO;CACpB,MAAM,EACJ,OAAO,EACL,KAAK,MACL,KACA,MACA,SAAS,aACT,eAAe,MACf,iBAAiB,OACjB,UACA,UACA,UACA,OACA,UAAU,aACV,GAAG,MACJ,EACD,WACA,WACA,YACD,GAAG,uDAAc,MAAM;CACxB,MAAM,gBAAgB,YAAY;CAClC,MAAM,WAAW,kBAAyB,KAAK;CAC/C,MAAM,CAAC,SAAS,WAAW,GAAG,gEAAqB;EACjD,cAAc;EACd,OAAO;CACR,EAAC;CAEF,MAAM,WAAW,uBACf,CAACC,OAAsC;AACrC,OAAK,YAAa,QAAO,GAAG,gBAAgB;AAE5C,aAAW,GAAG,OAAO,QAAQ;AAC7B,iBAAe,GAAG;CACnB,GACD;EAAC;EAAc;EAAY;CAAY,EACxC;CAED,MAAM,YAAY,uBAChB,CAACC,OAAwC;AACvC,MAAI,eAAe,gBAAgB,GAAG,QAAQ,QAC5C,UAAS,SAAS,OAAO;CAC5B,GACD,CAAC,aAAa,YAAa,EAC5B;CAED,MAAMC,eAAoC,uBACxC,CAACC,UAAQ,CAAE,OAAM;EACf,GAAG;EACH,SAAS;EACT,gBAAgB,kCAAS,QAAQ;EACjC,GAAG;EACH,GAAGA;CACJ,IACD;EAAC;EAAS;EAAM;EAAI;CAAU,EAC/B;CAED,MAAMC,gBAA4B,uBAChC,CAACD,UAAQ,CAAE,OAAM;EACf,gBAAgB,kCAAS,QAAQ;EACjC,GAAG;EACH,GAAGA;CACJ,IACD,CAAC,SAAS,SAAU,EACrB;CAED,MAAME,gBAA4B,uBAChC,CAACF,UAAQ,CAAE,OAAM;EACf,gBAAgB,kCAAS,QAAQ;EACjC,GAAG;EACH,GAAGA;CACJ,IACD,CAAC,SAAS,SAAU,EACrB;CAED,MAAMG,gBAAqC,uBACzC,CAACH,UAAQ,CAAE,OAAM;EACf,GAAG;EACH,GAAG;EACH;EACA,MAAM;EACN;EACA,OAAOI,2CAAyB;EAChC;EACA;EACA;EACA;EACA,MAAM;EACN,UAAU,cAAc,IAAI;EAC5B;EACA,GAAGJ;EACH,KAAK,4BAAU,UAAUA,QAAM,KAAK,IAAI;EACxC,QAAQ,yCAAW,WAAW,QAAQA,QAAM,OAAO;EACnD,UAAU,yCAAWA,QAAM,UAAU,SAAS;EAC9C,SAAS,yCAAW,WAAW,SAASA,QAAM,QAAQ;EACtD,WAAW,yCAAWA,QAAM,WAAW,UAAU;CAClD,IACD;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACD,EACF;CAED,MAAMK,gBAAoC,uBACxC,CAACL,UAAQ,CAAE,OAAM;EACf,GAAG;EACH,gBAAgB,kCAAS,QAAQ;EACjC,GAAGA;CACJ,IACD,CAAC,WAAW,OAAQ,EACrB;AAED,QAAO;EACL;EACA;EACA;EACA;EACA;EACA;CACD;AACF"}
|
|
@@ -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_assertion = require('../../utils/common/assertion.cjs');
|
|
6
6
|
const require_core_system_factory = require('../../core/system/factory.cjs');
|
|
7
7
|
const require_core_components_create_component = require('../../core/components/create-component.cjs');
|
|
8
8
|
const require_hooks_use_value_index = require('../../hooks/use-value/index.cjs');
|
|
@@ -73,7 +73,7 @@ const TabsList = withContext(({ children,...rest }) => {
|
|
|
73
73
|
const { getListProps } = require_components_tabs_use_tabs.useTabsContext();
|
|
74
74
|
const computedChildren = (0, react.useMemo)(() => {
|
|
75
75
|
if (children) return children;
|
|
76
|
-
else return items?.map(({ id, panel: _panel, tab, panelProps: _panelProps,...rest$1 }, index) =>
|
|
76
|
+
else return items?.map(({ id, panel: _panel, tab, panelProps: _panelProps,...rest$1 }, index) => require_utils_common_assertion.isUndefined(tab) || require_utils_common_assertion.isNull(tab) ? null : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TabsTab, {
|
|
77
77
|
id,
|
|
78
78
|
...rest$1,
|
|
79
79
|
children: tab
|
|
@@ -92,7 +92,7 @@ const TabsPanels = ({ children }) => {
|
|
|
92
92
|
const { items } = useComponentContext();
|
|
93
93
|
return (0, react.useMemo)(() => {
|
|
94
94
|
if (children) return children;
|
|
95
|
-
else return items?.map(({ id, panel, panelProps }, index) =>
|
|
95
|
+
else return items?.map(({ id, panel, panelProps }, index) => require_utils_common_assertion.isUndefined(panel) || require_utils_common_assertion.isNull(panel) ? null : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TabsPanel, {
|
|
96
96
|
...panelProps,
|
|
97
97
|
children: panel
|
|
98
98
|
}, id ?? index));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tabs.cjs","names":["tabsStyle","TabsRoot: FC<TabsRootProps>","TabDescendantsContext","TabPanelDescendantsContext","TabsContext","styled","rest","TabsPanels: FC<TabsPanelsProps>"],"sources":["../../../../src/components/tabs/tabs.tsx"],"sourcesContent":["\"use client\"\n\nimport type { FC, PropsWithChildren, ReactNode } from \"react\"\nimport type { HTMLStyledProps, ThemeProps } from \"../../core\"\nimport type { UseLazyMountProps } from \"../../hooks/use-lazy-mount\"\nimport type { TabsStyle } from \"./tabs.style\"\nimport type { UseTabPanelProps, UseTabProps, UseTabsProps } from \"./use-tabs\"\nimport { useMemo } from \"react\"\nimport { createSlotComponent, styled } from \"../../core\"\nimport { useLazyMount } from \"../../hooks/use-lazy-mount\"\nimport { useValue } from \"../../hooks/use-value\"\nimport { isNull, isUndefined } from \"../../utils\"\nimport { tabsStyle } from \"./tabs.style\"\nimport {\n TabDescendantsContext,\n TabPanelDescendantsContext,\n TabsContext,\n useTab,\n useTabPanel,\n useTabs,\n useTabsContext,\n} from \"./use-tabs\"\n\ninterface ComponentContext\n extends Pick<TabsRootProps, \"items\" | \"lazy\" | \"lazyBehavior\"> {}\n\ninterface TabsItem extends TabsTabProps {\n /**\n * The content for panel element.\n */\n panel: ReactNode\n /**\n * The content for tab element.\n */\n tab: ReactNode\n /**\n * Props for panel element.\n */\n panelProps?: TabsPanelProps\n}\n\nexport interface TabsRootProps\n extends Omit<HTMLStyledProps, \"onChange\">,\n Omit<UseTabsProps, \"orientation\">,\n Pick<UseLazyMountProps, \"lazy\" | \"lazyBehavior\">,\n ThemeProps<TabsStyle> {\n /**\n * If provided, generate tab and panel components based on tabs.\n */\n items?: TabsItem[]\n}\n\nexport const {\n ComponentContext,\n PropsContext: TabsPropsContext,\n useComponentContext,\n usePropsContext: useTabsPropsContext,\n withContext,\n withProvider,\n} = createSlotComponent<TabsRootProps, TabsStyle, ComponentContext>(\n \"tabs\",\n tabsStyle,\n)\n\n/**\n * `Tabs` is a component for switching between different display areas.\n *\n * @see https://yamada-ui.com/components/tabs\n */\nexport const TabsRoot: FC<TabsRootProps> = withProvider(\n ({\n children,\n items,\n lazy,\n lazyBehavior,\n orientation: orientationProp,\n ...rest\n }) => {\n const computedOrientation = useValue(orientationProp)\n const {\n focusedIndex,\n index,\n manual,\n orientation,\n setFocusedIndex,\n setIndex,\n tabDescendants,\n tabPanelDescendants,\n getListProps,\n getRootProps,\n } = useTabs({ orientation: computedOrientation, ...rest })\n const componentContext = useMemo(\n () => ({ items, lazy, lazyBehavior }),\n [items, lazy, lazyBehavior],\n )\n const tabsContext = useMemo(\n () => ({\n focusedIndex,\n index,\n manual,\n orientation,\n setFocusedIndex,\n setIndex,\n getListProps,\n }),\n [\n manual,\n focusedIndex,\n index,\n orientation,\n setFocusedIndex,\n setIndex,\n getListProps,\n ],\n )\n\n return (\n <TabDescendantsContext value={tabDescendants}>\n <TabPanelDescendantsContext value={tabPanelDescendants}>\n <TabsContext value={tabsContext}>\n <ComponentContext value={componentContext}>\n <styled.div {...getRootProps()}>{children}</styled.div>\n </ComponentContext>\n </TabsContext>\n </TabPanelDescendantsContext>\n </TabDescendantsContext>\n )\n },\n \"root\",\n { transferProps: [\"orientation\"] },\n)()\n\nexport interface TabsListProps extends HTMLStyledProps {}\n\nexport const TabsList = withContext<\"div\", TabsListProps>(\n ({ children, ...rest }) => {\n const { items } = useComponentContext()\n const { getListProps } = useTabsContext()\n const computedChildren = useMemo(() => {\n if (children) {\n return children\n } else {\n return items?.map(\n (\n { id, panel: _panel, tab, panelProps: _panelProps, ...rest },\n index,\n ) =>\n isUndefined(tab) || isNull(tab) ? null : (\n <TabsTab id={id} key={id ?? index} {...rest}>\n {tab}\n </TabsTab>\n ),\n )\n }\n }, [children, items])\n\n return <styled.div {...getListProps(rest)}>{computedChildren}</styled.div>\n },\n \"list\",\n)()\n\nexport interface TabsTabProps extends HTMLStyledProps<\"button\">, UseTabProps {}\n\nexport const TabsTab = withContext<\"button\", TabsTabProps>(\"button\", \"tab\")(\n undefined,\n (props) => {\n const { getRootProps } = useTab(props)\n\n return getRootProps()\n },\n)\n\nexport interface TabsPanelsProps extends PropsWithChildren {}\n\nexport const TabsPanels: FC<TabsPanelsProps> = ({ children }) => {\n const { items } = useComponentContext()\n\n return useMemo(() => {\n if (children) {\n return children\n } else {\n return items?.map(({ id, panel, panelProps }, index) =>\n isUndefined(panel) || isNull(panel) ? null : (\n <TabsPanel key={id ?? index} {...panelProps}>\n {panel}\n </TabsPanel>\n ),\n )\n }\n }, [children, items])\n}\n\nexport interface TabsPanelProps extends HTMLStyledProps, UseTabPanelProps {}\n\nexport const TabsPanel = withContext<\"div\", TabsPanelProps>(\"div\", \"panel\")(\n undefined,\n (props) => {\n const { lazy, lazyBehavior } = useComponentContext()\n const { selected: mounted, getRootProps } = useTabPanel(props)\n const children = useLazyMount({ lazy, lazyBehavior, mounted, ...props })\n\n return { ...getRootProps(), children }\n },\n)\n"],"mappings":";;;;;;;;;;;;;;;AAoDA,MAAa,EACX,kBACA,cAAc,kBACd,qBACA,iBAAiB,qBACjB,aACA,cACD,GAAG,6DACF,QACAA,6CACD;;;;;;AAOD,MAAaC,WAA8B,aACzC,CAAC,EACC,UACA,OACA,MACA,cACA,aAAa,gBACb,GAAG,MACJ,KAAK;CACJ,MAAM,sBAAsB,uCAAS,gBAAgB;CACrD,MAAM,EACJ,cACA,OACA,QACA,aACA,iBACA,UACA,gBACA,qBACA,cACA,cACD,GAAG,yCAAQ;EAAE,aAAa;EAAqB,GAAG;CAAM,EAAC;CAC1D,MAAM,mBAAmB,mBACvB,OAAO;EAAE;EAAO;EAAM;CAAc,IACpC;EAAC;EAAO;EAAM;CAAa,EAC5B;CACD,MAAM,cAAc,mBAClB,OAAO;EACL;EACA;EACA;EACA;EACA;EACA;EACA;CACD,IACD;EACE;EACA;EACA;EACA;EACA;EACA;EACA;CACD,EACF;AAED,wBACE,2BAACC;EAAsB,OAAO;4BAC5B,2BAACC;GAA2B,OAAO;6BACjC,2BAACC;IAAY,OAAO;8BAClB,2BAAC;KAAiB,OAAO;+BACvB,2BAACC,mCAAO;MAAI,GAAI,cAAc;MAAG;OAAsB;MACtC;KACP;IACa;GACP;AAE3B,GACD,QACA,EAAE,eAAe,CAAC,aAAc,EAAE,EACnC,EAAE;AAIH,MAAa,WAAW,YACtB,CAAC,EAAE,SAAU,GAAG,MAAM,KAAK;CACzB,MAAM,EAAE,OAAO,GAAG,qBAAqB;CACvC,MAAM,EAAE,cAAc,GAAG,iDAAgB;CACzC,MAAM,mBAAmB,mBAAQ,MAAM;AACrC,MAAI,SACF,QAAO;MAEP,QAAO,OAAO,IACZ,CACE,EAAE,IAAI,OAAO,QAAQ,KAAK,YAAY,YAAa,GAAGC,QAAM,EAC5D,UAEA,
|
|
1
|
+
{"version":3,"file":"tabs.cjs","names":["tabsStyle","TabsRoot: FC<TabsRootProps>","TabDescendantsContext","TabPanelDescendantsContext","TabsContext","styled","rest","TabsPanels: FC<TabsPanelsProps>"],"sources":["../../../../src/components/tabs/tabs.tsx"],"sourcesContent":["\"use client\"\n\nimport type { FC, PropsWithChildren, ReactNode } from \"react\"\nimport type { HTMLStyledProps, ThemeProps } from \"../../core\"\nimport type { UseLazyMountProps } from \"../../hooks/use-lazy-mount\"\nimport type { TabsStyle } from \"./tabs.style\"\nimport type { UseTabPanelProps, UseTabProps, UseTabsProps } from \"./use-tabs\"\nimport { useMemo } from \"react\"\nimport { createSlotComponent, styled } from \"../../core\"\nimport { useLazyMount } from \"../../hooks/use-lazy-mount\"\nimport { useValue } from \"../../hooks/use-value\"\nimport { isNull, isUndefined } from \"../../utils\"\nimport { tabsStyle } from \"./tabs.style\"\nimport {\n TabDescendantsContext,\n TabPanelDescendantsContext,\n TabsContext,\n useTab,\n useTabPanel,\n useTabs,\n useTabsContext,\n} from \"./use-tabs\"\n\ninterface ComponentContext\n extends Pick<TabsRootProps, \"items\" | \"lazy\" | \"lazyBehavior\"> {}\n\ninterface TabsItem extends TabsTabProps {\n /**\n * The content for panel element.\n */\n panel: ReactNode\n /**\n * The content for tab element.\n */\n tab: ReactNode\n /**\n * Props for panel element.\n */\n panelProps?: TabsPanelProps\n}\n\nexport interface TabsRootProps\n extends Omit<HTMLStyledProps, \"onChange\">,\n Omit<UseTabsProps, \"orientation\">,\n Pick<UseLazyMountProps, \"lazy\" | \"lazyBehavior\">,\n ThemeProps<TabsStyle> {\n /**\n * If provided, generate tab and panel components based on tabs.\n */\n items?: TabsItem[]\n}\n\nexport const {\n ComponentContext,\n PropsContext: TabsPropsContext,\n useComponentContext,\n usePropsContext: useTabsPropsContext,\n withContext,\n withProvider,\n} = createSlotComponent<TabsRootProps, TabsStyle, ComponentContext>(\n \"tabs\",\n tabsStyle,\n)\n\n/**\n * `Tabs` is a component for switching between different display areas.\n *\n * @see https://yamada-ui.com/components/tabs\n */\nexport const TabsRoot: FC<TabsRootProps> = withProvider(\n ({\n children,\n items,\n lazy,\n lazyBehavior,\n orientation: orientationProp,\n ...rest\n }) => {\n const computedOrientation = useValue(orientationProp)\n const {\n focusedIndex,\n index,\n manual,\n orientation,\n setFocusedIndex,\n setIndex,\n tabDescendants,\n tabPanelDescendants,\n getListProps,\n getRootProps,\n } = useTabs({ orientation: computedOrientation, ...rest })\n const componentContext = useMemo(\n () => ({ items, lazy, lazyBehavior }),\n [items, lazy, lazyBehavior],\n )\n const tabsContext = useMemo(\n () => ({\n focusedIndex,\n index,\n manual,\n orientation,\n setFocusedIndex,\n setIndex,\n getListProps,\n }),\n [\n manual,\n focusedIndex,\n index,\n orientation,\n setFocusedIndex,\n setIndex,\n getListProps,\n ],\n )\n\n return (\n <TabDescendantsContext value={tabDescendants}>\n <TabPanelDescendantsContext value={tabPanelDescendants}>\n <TabsContext value={tabsContext}>\n <ComponentContext value={componentContext}>\n <styled.div {...getRootProps()}>{children}</styled.div>\n </ComponentContext>\n </TabsContext>\n </TabPanelDescendantsContext>\n </TabDescendantsContext>\n )\n },\n \"root\",\n { transferProps: [\"orientation\"] },\n)()\n\nexport interface TabsListProps extends HTMLStyledProps {}\n\nexport const TabsList = withContext<\"div\", TabsListProps>(\n ({ children, ...rest }) => {\n const { items } = useComponentContext()\n const { getListProps } = useTabsContext()\n const computedChildren = useMemo(() => {\n if (children) {\n return children\n } else {\n return items?.map(\n (\n { id, panel: _panel, tab, panelProps: _panelProps, ...rest },\n index,\n ) =>\n isUndefined(tab) || isNull(tab) ? null : (\n <TabsTab id={id} key={id ?? index} {...rest}>\n {tab}\n </TabsTab>\n ),\n )\n }\n }, [children, items])\n\n return <styled.div {...getListProps(rest)}>{computedChildren}</styled.div>\n },\n \"list\",\n)()\n\nexport interface TabsTabProps extends HTMLStyledProps<\"button\">, UseTabProps {}\n\nexport const TabsTab = withContext<\"button\", TabsTabProps>(\"button\", \"tab\")(\n undefined,\n (props) => {\n const { getRootProps } = useTab(props)\n\n return getRootProps()\n },\n)\n\nexport interface TabsPanelsProps extends PropsWithChildren {}\n\nexport const TabsPanels: FC<TabsPanelsProps> = ({ children }) => {\n const { items } = useComponentContext()\n\n return useMemo(() => {\n if (children) {\n return children\n } else {\n return items?.map(({ id, panel, panelProps }, index) =>\n isUndefined(panel) || isNull(panel) ? null : (\n <TabsPanel key={id ?? index} {...panelProps}>\n {panel}\n </TabsPanel>\n ),\n )\n }\n }, [children, items])\n}\n\nexport interface TabsPanelProps extends HTMLStyledProps, UseTabPanelProps {}\n\nexport const TabsPanel = withContext<\"div\", TabsPanelProps>(\"div\", \"panel\")(\n undefined,\n (props) => {\n const { lazy, lazyBehavior } = useComponentContext()\n const { selected: mounted, getRootProps } = useTabPanel(props)\n const children = useLazyMount({ lazy, lazyBehavior, mounted, ...props })\n\n return { ...getRootProps(), children }\n },\n)\n"],"mappings":";;;;;;;;;;;;;;;AAoDA,MAAa,EACX,kBACA,cAAc,kBACd,qBACA,iBAAiB,qBACjB,aACA,cACD,GAAG,6DACF,QACAA,6CACD;;;;;;AAOD,MAAaC,WAA8B,aACzC,CAAC,EACC,UACA,OACA,MACA,cACA,aAAa,gBACb,GAAG,MACJ,KAAK;CACJ,MAAM,sBAAsB,uCAAS,gBAAgB;CACrD,MAAM,EACJ,cACA,OACA,QACA,aACA,iBACA,UACA,gBACA,qBACA,cACA,cACD,GAAG,yCAAQ;EAAE,aAAa;EAAqB,GAAG;CAAM,EAAC;CAC1D,MAAM,mBAAmB,mBACvB,OAAO;EAAE;EAAO;EAAM;CAAc,IACpC;EAAC;EAAO;EAAM;CAAa,EAC5B;CACD,MAAM,cAAc,mBAClB,OAAO;EACL;EACA;EACA;EACA;EACA;EACA;EACA;CACD,IACD;EACE;EACA;EACA;EACA;EACA;EACA;EACA;CACD,EACF;AAED,wBACE,2BAACC;EAAsB,OAAO;4BAC5B,2BAACC;GAA2B,OAAO;6BACjC,2BAACC;IAAY,OAAO;8BAClB,2BAAC;KAAiB,OAAO;+BACvB,2BAACC,mCAAO;MAAI,GAAI,cAAc;MAAG;OAAsB;MACtC;KACP;IACa;GACP;AAE3B,GACD,QACA,EAAE,eAAe,CAAC,aAAc,EAAE,EACnC,EAAE;AAIH,MAAa,WAAW,YACtB,CAAC,EAAE,SAAU,GAAG,MAAM,KAAK;CACzB,MAAM,EAAE,OAAO,GAAG,qBAAqB;CACvC,MAAM,EAAE,cAAc,GAAG,iDAAgB;CACzC,MAAM,mBAAmB,mBAAQ,MAAM;AACrC,MAAI,SACF,QAAO;MAEP,QAAO,OAAO,IACZ,CACE,EAAE,IAAI,OAAO,QAAQ,KAAK,YAAY,YAAa,GAAGC,QAAM,EAC5D,UAEA,2CAAY,IAAI,IAAI,sCAAO,IAAI,GAAG,uBAChC,2BAAC;GAAY;GAAsB,GAAIA;aACpC;KADmB,MAAM,MAElB,CAEf;CAEJ,GAAE,CAAC,UAAU,KAAM,EAAC;AAErB,wBAAO,2BAACD,mCAAO;EAAI,GAAI,aAAa,KAAK;YAAG;GAA8B;AAC3E,GACD,OACD,EAAE;AAIH,MAAa,UAAU,YAAoC,UAAU,MAAM,SAEzE,CAAC,UAAU;CACT,MAAM,EAAE,cAAc,GAAG,wCAAO,MAAM;AAEtC,QAAO,cAAc;AACtB,EACF;AAID,MAAaE,aAAkC,CAAC,EAAE,UAAU,KAAK;CAC/D,MAAM,EAAE,OAAO,GAAG,qBAAqB;AAEvC,QAAO,mBAAQ,MAAM;AACnB,MAAI,SACF,QAAO;MAEP,QAAO,OAAO,IAAI,CAAC,EAAE,IAAI,OAAO,YAAY,EAAE,UAC5C,2CAAY,MAAM,IAAI,sCAAO,MAAM,GAAG,uBACpC,2BAAC;GAA4B,GAAI;aAC9B;KADa,MAAM,MAEV,CAEf;CAEJ,GAAE,CAAC,UAAU,KAAM,EAAC;AACtB;AAID,MAAa,YAAY,YAAmC,OAAO,QAAQ,SAEzE,CAAC,UAAU;CACT,MAAM,EAAE,MAAM,cAAc,GAAG,qBAAqB;CACpD,MAAM,EAAE,UAAU,SAAS,cAAc,GAAG,6CAAY,MAAM;CAC9D,MAAM,WAAW,gDAAa;EAAE;EAAM;EAAc;EAAS,GAAG;CAAO,EAAC;AAExE,QAAO;EAAE,GAAG,cAAc;EAAE;CAAU;AACvC,EACF"}
|
|
@@ -6,7 +6,9 @@ const require_utils_context = require('../../utils/context.cjs');
|
|
|
6
6
|
const require_utils_dom = require('../../utils/dom.cjs');
|
|
7
7
|
const require_utils_effect = require('../../utils/effect.cjs');
|
|
8
8
|
const require_utils_ref = require('../../utils/ref.cjs');
|
|
9
|
-
const
|
|
9
|
+
const require_utils_common_assertion = require('../../utils/common/assertion.cjs');
|
|
10
|
+
const require_utils_common_function = require('../../utils/common/function.cjs');
|
|
11
|
+
const require_utils_common_string = require('../../utils/common/string.cjs');
|
|
10
12
|
const require_hooks_use_controllable_state_index = require('../../hooks/use-controllable-state/index.cjs');
|
|
11
13
|
const require_hooks_use_descendant_index = require('../../hooks/use-descendant/index.cjs');
|
|
12
14
|
const react = require_rolldown_runtime.__toESM(require("react"));
|
|
@@ -60,7 +62,7 @@ const useTabs = ({ id, defaultIndex = 0, index: indexProp, manual = false, orien
|
|
|
60
62
|
onFocusFirstTab
|
|
61
63
|
]);
|
|
62
64
|
require_utils_effect.useUpdateEffect(() => {
|
|
63
|
-
if (
|
|
65
|
+
if (require_utils_common_assertion.isUndefined(indexProp)) return;
|
|
64
66
|
setIndex(indexProp);
|
|
65
67
|
setFocusedIndex(indexProp);
|
|
66
68
|
}, [indexProp]);
|
|
@@ -74,7 +76,7 @@ const useTabs = ({ id, defaultIndex = 0, index: indexProp, manual = false, orien
|
|
|
74
76
|
"aria-orientation": orientation,
|
|
75
77
|
role: "tablist",
|
|
76
78
|
...props,
|
|
77
|
-
onKeyDown:
|
|
79
|
+
onKeyDown: require_utils_common_function.handlerAll(props.onKeyDown, onKeyDown)
|
|
78
80
|
}), [orientation, onKeyDown]);
|
|
79
81
|
return {
|
|
80
82
|
focusedIndex,
|
|
@@ -127,8 +129,8 @@ const useTab = ({ id, disabled,...rest } = {}) => {
|
|
|
127
129
|
...rest,
|
|
128
130
|
...props,
|
|
129
131
|
ref: require_utils_ref.mergeRefs(ref, register),
|
|
130
|
-
onClick:
|
|
131
|
-
onFocus:
|
|
132
|
+
onClick: require_utils_common_function.handlerAll(props.onClick, rest.onClick, onClick),
|
|
133
|
+
onFocus: require_utils_common_function.handlerAll(props.onFocus, rest.onFocus, onFocus)
|
|
132
134
|
}), [
|
|
133
135
|
disabled,
|
|
134
136
|
id,
|
|
@@ -155,7 +157,7 @@ const useTabPanel = ({ "aria-labelledby": ariaLabelledbyProp,...rest } = {}) =>
|
|
|
155
157
|
const selected = index === selectedIndex;
|
|
156
158
|
const getRootProps = (0, react.useCallback)(({ ref, "aria-labelledby": ariaLabelledby,...props } = {}) => ({
|
|
157
159
|
id,
|
|
158
|
-
"aria-labelledby":
|
|
160
|
+
"aria-labelledby": require_utils_common_string.cx(ariaLabelledbyProp, ariaLabelledby, tabId),
|
|
159
161
|
"data-orientation": orientation,
|
|
160
162
|
hidden: !selected,
|
|
161
163
|
role: "tabpanel",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-tabs.cjs","names":["ev: KeyboardEvent<HTMLDivElement>","getRootProps: PropGetter","getListProps: PropGetter","getRootProps: PropGetter<\"button\">"],"sources":["../../../../src/components/tabs/use-tabs.ts"],"sourcesContent":["\"use client\"\n\nimport type { KeyboardEvent } from \"react\"\nimport type { HTMLProps, Orientation, PropGetter } from \"../../core\"\nimport { useCallback, useId, useState } from \"react\"\nimport { useControllableState } from \"../../hooks/use-controllable-state\"\nimport { createDescendant } from \"../../hooks/use-descendant\"\nimport {\n createContext,\n cx,\n handlerAll,\n isUndefined,\n mergeRefs,\n runKeyAction,\n useUpdateEffect,\n} from \"../../utils\"\n\nexport const {\n DescendantsContext: TabDescendantsContext,\n useDescendant: useTabDescendant,\n useDescendants: useTabDescendants,\n} = createDescendant<HTMLButtonElement>()\n\nexport const {\n DescendantsContext: TabPanelDescendantsContext,\n useDescendant: useTabPanelDescendant,\n useDescendants: useTabPanelDescendants,\n} = createDescendant<HTMLDivElement>()\n\ninterface TabsContext\n extends Omit<\n UseTabsReturn,\n \"getRootProps\" | \"tabDescendants\" | \"tabPanelDescendants\"\n > {}\n\nexport const [TabsContext, useTabsContext] = createContext<TabsContext>({\n name: \"TabsContext\",\n})\n\nexport interface UseTabsProps extends Omit<HTMLProps, \"onChange\"> {\n /**\n * The index of the selected tab.\n */\n defaultIndex?: number\n /**\n * The index of the selected tab.\n */\n index?: number\n /**\n * If `true`, the tabs will be manually activated and display its panel by pressing Space or Enter.\n *\n * If `false`, the tabs will be automatically activated and their panel is displayed when they receive focus.\n *\n * @default false\n */\n manual?: boolean\n /**\n * The orientation of the tabs.\n *\n * @default 'horizontal'\n */\n orientation?: Orientation\n /**\n * The callback invoked when the index changes.\n */\n onChange?: (index: number) => void\n}\n\nexport const useTabs = ({\n id,\n defaultIndex = 0,\n index: indexProp,\n manual = false,\n orientation = \"horizontal\",\n onChange,\n ...rest\n}: UseTabsProps = {}) => {\n const uuid = useId()\n const tabDescendants = useTabDescendants()\n const tabPanelDescendants = useTabPanelDescendants()\n const [index, setIndex] = useControllableState({\n defaultValue: defaultIndex,\n value: indexProp,\n onChange,\n })\n const [focusedIndex, setFocusedIndex] = useState<number>(index)\n const horizontal = orientation === \"horizontal\"\n\n id ??= uuid\n\n const onFocusFirstTab = useCallback(() => {\n const first = tabDescendants.enabledFirstValue()\n\n if (first) first.node.focus()\n }, [tabDescendants])\n\n const onFocusLastTab = useCallback(() => {\n const last = tabDescendants.enabledLastValue()\n\n if (last) last.node.focus()\n }, [tabDescendants])\n\n const onFocusNextTab = useCallback(() => {\n const next = tabDescendants.enabledNextValue(focusedIndex)\n\n if (next) next.node.focus()\n }, [tabDescendants, focusedIndex])\n\n const onFocusPrevTab = useCallback(() => {\n const prev = tabDescendants.enabledPrevValue(focusedIndex)\n\n if (prev) prev.node.focus()\n }, [tabDescendants, focusedIndex])\n\n const onKeyDown = useCallback(\n (ev: KeyboardEvent<HTMLDivElement>) => {\n runKeyAction(ev, {\n ArrowDown: !horizontal ? onFocusNextTab : undefined,\n ArrowLeft: horizontal ? onFocusPrevTab : undefined,\n ArrowRight: horizontal ? onFocusNextTab : undefined,\n ArrowUp: !horizontal ? onFocusPrevTab : undefined,\n End: onFocusLastTab,\n Home: onFocusFirstTab,\n })\n },\n [\n horizontal,\n onFocusNextTab,\n onFocusPrevTab,\n onFocusLastTab,\n onFocusFirstTab,\n ],\n )\n\n useUpdateEffect(() => {\n if (isUndefined(indexProp)) return\n\n setIndex(indexProp)\n setFocusedIndex(indexProp)\n }, [indexProp])\n\n const getRootProps: PropGetter = useCallback(\n ({ ref, ...props } = {}) => ({\n \"data-orientation\": orientation,\n ...rest,\n ...props,\n ref: mergeRefs(ref, rest.ref),\n }),\n [orientation, rest],\n )\n\n const getListProps: PropGetter = useCallback(\n (props = {}) => ({\n \"aria-orientation\": orientation,\n role: \"tablist\",\n ...props,\n onKeyDown: handlerAll(props.onKeyDown, onKeyDown),\n }),\n [orientation, onKeyDown],\n )\n\n return {\n focusedIndex,\n index,\n manual,\n orientation,\n setFocusedIndex,\n setIndex,\n tabDescendants,\n tabPanelDescendants,\n getListProps,\n getRootProps,\n }\n}\n\nexport type UseTabsReturn = ReturnType<typeof useTabs>\n\nexport interface UseTabProps extends HTMLProps<\"button\"> {}\n\nexport const useTab = ({ id, disabled, ...rest }: UseTabProps = {}) => {\n const uuid = useId()\n const {\n index: selectedIndex,\n manual,\n orientation,\n setFocusedIndex,\n setIndex,\n } = useTabsContext()\n const { index, register } = useTabDescendant({ disabled })\n const { descendants } = useTabPanelDescendant()\n const tabPanelId = descendants.value(index)?.node.id\n const selected = index === selectedIndex\n\n id ??= uuid\n\n const onClick = useCallback(() => {\n if (!disabled) setIndex(index)\n }, [index, setIndex, disabled])\n\n const onFocus = useCallback(() => {\n if (disabled) return\n\n setFocusedIndex(index)\n\n if (!manual) setIndex(index)\n }, [setFocusedIndex, index, manual, disabled, setIndex])\n\n const getRootProps: PropGetter<\"button\"> = useCallback(\n ({ ref, ...props } = {}) => ({\n id,\n type: \"button\",\n \"aria-controls\": tabPanelId,\n \"aria-selected\": selected,\n \"data-orientation\": orientation,\n disabled,\n role: \"tab\",\n tabIndex: selected ? 0 : -1,\n ...rest,\n ...props,\n ref: mergeRefs(ref, register),\n onClick: handlerAll(props.onClick, rest.onClick, onClick),\n onFocus: handlerAll(props.onFocus, rest.onFocus, onFocus),\n }),\n [\n disabled,\n id,\n onClick,\n onFocus,\n orientation,\n register,\n rest,\n selected,\n tabPanelId,\n ],\n )\n\n return { index, selected, getRootProps }\n}\n\nexport type UseTabReturn = ReturnType<typeof useTab>\n\nexport interface UseTabPanelProps extends HTMLProps {}\n\nexport const useTabPanel = ({\n \"aria-labelledby\": ariaLabelledbyProp,\n ...rest\n}: UseTabPanelProps = {}) => {\n const id = useId()\n const { index: selectedIndex, orientation } = useTabsContext()\n const { index, register } = useTabPanelDescendant()\n const { descendants } = useTabDescendant()\n const tabId = descendants.value(index)?.node.id\n const selected = index === selectedIndex\n\n const getRootProps: PropGetter = useCallback(\n ({ ref, \"aria-labelledby\": ariaLabelledby, ...props } = {}) => ({\n id,\n \"aria-labelledby\": cx(ariaLabelledbyProp, ariaLabelledby, tabId),\n \"data-orientation\": orientation,\n hidden: !selected,\n role: \"tabpanel\",\n tabIndex: selected ? 0 : -1,\n ...rest,\n ...props,\n ref: mergeRefs(ref, register),\n }),\n [id, ariaLabelledbyProp, orientation, register, rest, selected, tabId],\n )\n\n return { index, selected, getRootProps }\n}\n\nexport type UseTabPanelReturn = ReturnType<typeof useTabPanel>\n"],"mappings":";;;;;;;;;;;;;;AAiBA,MAAa,EACX,oBAAoB,uBACpB,eAAe,kBACf,gBAAgB,mBACjB,GAAG,qDAAqC;AAEzC,MAAa,EACX,oBAAoB,4BACpB,eAAe,uBACf,gBAAgB,wBACjB,GAAG,qDAAkC;AAQtC,MAAa,CAAC,aAAa,eAAe,GAAG,oCAA2B,EACtE,MAAM,cACP,EAAC;AA+BF,MAAa,UAAU,CAAC,EACtB,IACA,eAAe,GACf,OAAO,WACP,SAAS,OACT,cAAc,cACd,SACA,GAAG,MACU,GAAG,CAAE,MAAK;CACvB,MAAM,OAAO,kBAAO;CACpB,MAAM,iBAAiB,mBAAmB;CAC1C,MAAM,sBAAsB,wBAAwB;CACpD,MAAM,CAAC,OAAO,SAAS,GAAG,gEAAqB;EAC7C,cAAc;EACd,OAAO;EACP;CACD,EAAC;CACF,MAAM,CAAC,cAAc,gBAAgB,GAAG,oBAAiB,MAAM;CAC/D,MAAM,aAAa,gBAAgB;AAEnC,QAAO;CAEP,MAAM,kBAAkB,uBAAY,MAAM;EACxC,MAAM,QAAQ,eAAe,mBAAmB;AAEhD,MAAI,MAAO,OAAM,KAAK,OAAO;CAC9B,GAAE,CAAC,cAAe,EAAC;CAEpB,MAAM,iBAAiB,uBAAY,MAAM;EACvC,MAAM,OAAO,eAAe,kBAAkB;AAE9C,MAAI,KAAM,MAAK,KAAK,OAAO;CAC5B,GAAE,CAAC,cAAe,EAAC;CAEpB,MAAM,iBAAiB,uBAAY,MAAM;EACvC,MAAM,OAAO,eAAe,iBAAiB,aAAa;AAE1D,MAAI,KAAM,MAAK,KAAK,OAAO;CAC5B,GAAE,CAAC,gBAAgB,YAAa,EAAC;CAElC,MAAM,iBAAiB,uBAAY,MAAM;EACvC,MAAM,OAAO,eAAe,iBAAiB,aAAa;AAE1D,MAAI,KAAM,MAAK,KAAK,OAAO;CAC5B,GAAE,CAAC,gBAAgB,YAAa,EAAC;CAElC,MAAM,YAAY,uBAChB,CAACA,OAAsC;AACrC,iCAAa,IAAI;GACf,YAAY,aAAa;GACzB,WAAW,aAAa;GACxB,YAAY,aAAa;GACzB,UAAU,aAAa;GACvB,KAAK;GACL,MAAM;EACP,EAAC;CACH,GACD;EACE;EACA;EACA;EACA;EACA;CACD,EACF;AAED,sCAAgB,MAAM;AACpB,MAAI,mDAAY,UAAU,CAAE;AAE5B,WAAS,UAAU;AACnB,kBAAgB,UAAU;CAC3B,GAAE,CAAC,SAAU,EAAC;CAEf,MAAMC,eAA2B,uBAC/B,CAAC,EAAE,IAAK,GAAG,OAAO,GAAG,CAAE,OAAM;EAC3B,oBAAoB;EACpB,GAAG;EACH,GAAG;EACH,KAAK,4BAAU,KAAK,KAAK,IAAI;CAC9B,IACD,CAAC,aAAa,IAAK,EACpB;CAED,MAAMC,eAA2B,uBAC/B,CAAC,QAAQ,CAAE,OAAM;EACf,oBAAoB;EACpB,MAAM;EACN,GAAG;EACH,WAAW,kDAAW,MAAM,WAAW,UAAU;CAClD,IACD,CAAC,aAAa,SAAU,EACzB;AAED,QAAO;EACL;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACD;AACF;AAMD,MAAa,SAAS,CAAC,EAAE,IAAI,SAAU,GAAG,MAAmB,GAAG,CAAE,MAAK;CACrE,MAAM,OAAO,kBAAO;CACpB,MAAM,EACJ,OAAO,eACP,QACA,aACA,iBACA,UACD,GAAG,gBAAgB;CACpB,MAAM,EAAE,OAAO,UAAU,GAAG,iBAAiB,EAAE,SAAU,EAAC;CAC1D,MAAM,EAAE,aAAa,GAAG,uBAAuB;CAC/C,MAAM,aAAa,YAAY,MAAM,MAAM,EAAE,KAAK;CAClD,MAAM,WAAW,UAAU;AAE3B,QAAO;CAEP,MAAM,UAAU,uBAAY,MAAM;AAChC,OAAK,SAAU,UAAS,MAAM;CAC/B,GAAE;EAAC;EAAO;EAAU;CAAS,EAAC;CAE/B,MAAM,UAAU,uBAAY,MAAM;AAChC,MAAI,SAAU;AAEd,kBAAgB,MAAM;AAEtB,OAAK,OAAQ,UAAS,MAAM;CAC7B,GAAE;EAAC;EAAiB;EAAO;EAAQ;EAAU;CAAS,EAAC;CAExD,MAAMC,eAAqC,uBACzC,CAAC,EAAE,IAAK,GAAG,OAAO,GAAG,CAAE,OAAM;EAC3B;EACA,MAAM;EACN,iBAAiB;EACjB,iBAAiB;EACjB,oBAAoB;EACpB;EACA,MAAM;EACN,UAAU,WAAW,IAAI;EACzB,GAAG;EACH,GAAG;EACH,KAAK,4BAAU,KAAK,SAAS;EAC7B,SAAS,kDAAW,MAAM,SAAS,KAAK,SAAS,QAAQ;EACzD,SAAS,kDAAW,MAAM,SAAS,KAAK,SAAS,QAAQ;CAC1D,IACD;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACD,EACF;AAED,QAAO;EAAE;EAAO;EAAU;CAAc;AACzC;AAMD,MAAa,cAAc,CAAC,EAC1B,mBAAmB,mBACnB,GAAG,MACc,GAAG,CAAE,MAAK;CAC3B,MAAM,KAAK,kBAAO;CAClB,MAAM,EAAE,OAAO,eAAe,aAAa,GAAG,gBAAgB;CAC9D,MAAM,EAAE,OAAO,UAAU,GAAG,uBAAuB;CACnD,MAAM,EAAE,aAAa,GAAG,kBAAkB;CAC1C,MAAM,QAAQ,YAAY,MAAM,MAAM,EAAE,KAAK;CAC7C,MAAM,WAAW,UAAU;CAE3B,MAAMF,eAA2B,uBAC/B,CAAC,EAAE,KAAK,mBAAmB,eAAgB,GAAG,OAAO,GAAG,CAAE,OAAM;EAC9D;EACA,mBAAmB,0CAAG,oBAAoB,gBAAgB,MAAM;EAChE,oBAAoB;EACpB,SAAS;EACT,MAAM;EACN,UAAU,WAAW,IAAI;EACzB,GAAG;EACH,GAAG;EACH,KAAK,4BAAU,KAAK,SAAS;CAC9B,IACD;EAAC;EAAI;EAAoB;EAAa;EAAU;EAAM;EAAU;CAAM,EACvE;AAED,QAAO;EAAE;EAAO;EAAU;CAAc;AACzC"}
|
|
1
|
+
{"version":3,"file":"use-tabs.cjs","names":["ev: KeyboardEvent<HTMLDivElement>","getRootProps: PropGetter","getListProps: PropGetter","getRootProps: PropGetter<\"button\">"],"sources":["../../../../src/components/tabs/use-tabs.ts"],"sourcesContent":["\"use client\"\n\nimport type { KeyboardEvent } from \"react\"\nimport type { HTMLProps, Orientation, PropGetter } from \"../../core\"\nimport { useCallback, useId, useState } from \"react\"\nimport { useControllableState } from \"../../hooks/use-controllable-state\"\nimport { createDescendant } from \"../../hooks/use-descendant\"\nimport {\n createContext,\n cx,\n handlerAll,\n isUndefined,\n mergeRefs,\n runKeyAction,\n useUpdateEffect,\n} from \"../../utils\"\n\nexport const {\n DescendantsContext: TabDescendantsContext,\n useDescendant: useTabDescendant,\n useDescendants: useTabDescendants,\n} = createDescendant<HTMLButtonElement>()\n\nexport const {\n DescendantsContext: TabPanelDescendantsContext,\n useDescendant: useTabPanelDescendant,\n useDescendants: useTabPanelDescendants,\n} = createDescendant<HTMLDivElement>()\n\ninterface TabsContext\n extends Omit<\n UseTabsReturn,\n \"getRootProps\" | \"tabDescendants\" | \"tabPanelDescendants\"\n > {}\n\nexport const [TabsContext, useTabsContext] = createContext<TabsContext>({\n name: \"TabsContext\",\n})\n\nexport interface UseTabsProps extends Omit<HTMLProps, \"onChange\"> {\n /**\n * The index of the selected tab.\n */\n defaultIndex?: number\n /**\n * The index of the selected tab.\n */\n index?: number\n /**\n * If `true`, the tabs will be manually activated and display its panel by pressing Space or Enter.\n *\n * If `false`, the tabs will be automatically activated and their panel is displayed when they receive focus.\n *\n * @default false\n */\n manual?: boolean\n /**\n * The orientation of the tabs.\n *\n * @default 'horizontal'\n */\n orientation?: Orientation\n /**\n * The callback invoked when the index changes.\n */\n onChange?: (index: number) => void\n}\n\nexport const useTabs = ({\n id,\n defaultIndex = 0,\n index: indexProp,\n manual = false,\n orientation = \"horizontal\",\n onChange,\n ...rest\n}: UseTabsProps = {}) => {\n const uuid = useId()\n const tabDescendants = useTabDescendants()\n const tabPanelDescendants = useTabPanelDescendants()\n const [index, setIndex] = useControllableState({\n defaultValue: defaultIndex,\n value: indexProp,\n onChange,\n })\n const [focusedIndex, setFocusedIndex] = useState<number>(index)\n const horizontal = orientation === \"horizontal\"\n\n id ??= uuid\n\n const onFocusFirstTab = useCallback(() => {\n const first = tabDescendants.enabledFirstValue()\n\n if (first) first.node.focus()\n }, [tabDescendants])\n\n const onFocusLastTab = useCallback(() => {\n const last = tabDescendants.enabledLastValue()\n\n if (last) last.node.focus()\n }, [tabDescendants])\n\n const onFocusNextTab = useCallback(() => {\n const next = tabDescendants.enabledNextValue(focusedIndex)\n\n if (next) next.node.focus()\n }, [tabDescendants, focusedIndex])\n\n const onFocusPrevTab = useCallback(() => {\n const prev = tabDescendants.enabledPrevValue(focusedIndex)\n\n if (prev) prev.node.focus()\n }, [tabDescendants, focusedIndex])\n\n const onKeyDown = useCallback(\n (ev: KeyboardEvent<HTMLDivElement>) => {\n runKeyAction(ev, {\n ArrowDown: !horizontal ? onFocusNextTab : undefined,\n ArrowLeft: horizontal ? onFocusPrevTab : undefined,\n ArrowRight: horizontal ? onFocusNextTab : undefined,\n ArrowUp: !horizontal ? onFocusPrevTab : undefined,\n End: onFocusLastTab,\n Home: onFocusFirstTab,\n })\n },\n [\n horizontal,\n onFocusNextTab,\n onFocusPrevTab,\n onFocusLastTab,\n onFocusFirstTab,\n ],\n )\n\n useUpdateEffect(() => {\n if (isUndefined(indexProp)) return\n\n setIndex(indexProp)\n setFocusedIndex(indexProp)\n }, [indexProp])\n\n const getRootProps: PropGetter = useCallback(\n ({ ref, ...props } = {}) => ({\n \"data-orientation\": orientation,\n ...rest,\n ...props,\n ref: mergeRefs(ref, rest.ref),\n }),\n [orientation, rest],\n )\n\n const getListProps: PropGetter = useCallback(\n (props = {}) => ({\n \"aria-orientation\": orientation,\n role: \"tablist\",\n ...props,\n onKeyDown: handlerAll(props.onKeyDown, onKeyDown),\n }),\n [orientation, onKeyDown],\n )\n\n return {\n focusedIndex,\n index,\n manual,\n orientation,\n setFocusedIndex,\n setIndex,\n tabDescendants,\n tabPanelDescendants,\n getListProps,\n getRootProps,\n }\n}\n\nexport type UseTabsReturn = ReturnType<typeof useTabs>\n\nexport interface UseTabProps extends HTMLProps<\"button\"> {}\n\nexport const useTab = ({ id, disabled, ...rest }: UseTabProps = {}) => {\n const uuid = useId()\n const {\n index: selectedIndex,\n manual,\n orientation,\n setFocusedIndex,\n setIndex,\n } = useTabsContext()\n const { index, register } = useTabDescendant({ disabled })\n const { descendants } = useTabPanelDescendant()\n const tabPanelId = descendants.value(index)?.node.id\n const selected = index === selectedIndex\n\n id ??= uuid\n\n const onClick = useCallback(() => {\n if (!disabled) setIndex(index)\n }, [index, setIndex, disabled])\n\n const onFocus = useCallback(() => {\n if (disabled) return\n\n setFocusedIndex(index)\n\n if (!manual) setIndex(index)\n }, [setFocusedIndex, index, manual, disabled, setIndex])\n\n const getRootProps: PropGetter<\"button\"> = useCallback(\n ({ ref, ...props } = {}) => ({\n id,\n type: \"button\",\n \"aria-controls\": tabPanelId,\n \"aria-selected\": selected,\n \"data-orientation\": orientation,\n disabled,\n role: \"tab\",\n tabIndex: selected ? 0 : -1,\n ...rest,\n ...props,\n ref: mergeRefs(ref, register),\n onClick: handlerAll(props.onClick, rest.onClick, onClick),\n onFocus: handlerAll(props.onFocus, rest.onFocus, onFocus),\n }),\n [\n disabled,\n id,\n onClick,\n onFocus,\n orientation,\n register,\n rest,\n selected,\n tabPanelId,\n ],\n )\n\n return { index, selected, getRootProps }\n}\n\nexport type UseTabReturn = ReturnType<typeof useTab>\n\nexport interface UseTabPanelProps extends HTMLProps {}\n\nexport const useTabPanel = ({\n \"aria-labelledby\": ariaLabelledbyProp,\n ...rest\n}: UseTabPanelProps = {}) => {\n const id = useId()\n const { index: selectedIndex, orientation } = useTabsContext()\n const { index, register } = useTabPanelDescendant()\n const { descendants } = useTabDescendant()\n const tabId = descendants.value(index)?.node.id\n const selected = index === selectedIndex\n\n const getRootProps: PropGetter = useCallback(\n ({ ref, \"aria-labelledby\": ariaLabelledby, ...props } = {}) => ({\n id,\n \"aria-labelledby\": cx(ariaLabelledbyProp, ariaLabelledby, tabId),\n \"data-orientation\": orientation,\n hidden: !selected,\n role: \"tabpanel\",\n tabIndex: selected ? 0 : -1,\n ...rest,\n ...props,\n ref: mergeRefs(ref, register),\n }),\n [id, ariaLabelledbyProp, orientation, register, rest, selected, tabId],\n )\n\n return { index, selected, getRootProps }\n}\n\nexport type UseTabPanelReturn = ReturnType<typeof useTabPanel>\n"],"mappings":"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"}
|
|
@@ -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_system_factory = require('../../core/system/factory.cjs');
|
|
7
7
|
const require_core_components_create_component = require('../../core/components/create-component.cjs');
|
|
8
8
|
const require_x_icon = require('../icon/icons/x-icon.cjs');
|
|
@@ -24,7 +24,7 @@ const Tag = withProvider(({ children, disabled, endIcon, startIcon, closeButtonP
|
|
|
24
24
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ComponentContext, {
|
|
25
25
|
value: context,
|
|
26
26
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_core_system_factory.styled.span, {
|
|
27
|
-
"data-disabled":
|
|
27
|
+
"data-disabled": require_utils_common_dom.dataAttr(disabled),
|
|
28
28
|
...rest,
|
|
29
29
|
children: [
|
|
30
30
|
startIcon ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TagStartIcon, {
|
|
@@ -50,21 +50,21 @@ const Tag = withProvider(({ children, disabled, endIcon, startIcon, closeButtonP
|
|
|
50
50
|
const TagContent = withContext("span", "content")(void 0, (props) => {
|
|
51
51
|
const { disabled } = useComponentContext();
|
|
52
52
|
return {
|
|
53
|
-
"data-disabled":
|
|
53
|
+
"data-disabled": require_utils_common_dom.dataAttr(disabled),
|
|
54
54
|
...props
|
|
55
55
|
};
|
|
56
56
|
});
|
|
57
57
|
const TagStartIcon = withContext("span", ["icon", "start"])(void 0, (props) => {
|
|
58
58
|
const { disabled } = useComponentContext();
|
|
59
59
|
return {
|
|
60
|
-
"data-disabled":
|
|
60
|
+
"data-disabled": require_utils_common_dom.dataAttr(disabled),
|
|
61
61
|
...props
|
|
62
62
|
};
|
|
63
63
|
});
|
|
64
64
|
const TagEndIcon = withContext("span", ["icon", "end"])(void 0, (props) => {
|
|
65
65
|
const { disabled } = useComponentContext();
|
|
66
66
|
return {
|
|
67
|
-
"data-disabled":
|
|
67
|
+
"data-disabled": require_utils_common_dom.dataAttr(disabled),
|
|
68
68
|
...props
|
|
69
69
|
};
|
|
70
70
|
});
|
|
@@ -79,7 +79,7 @@ const TagCloseButton = withContext("span", ["icon", "closeButton"])(void 0, ({ c
|
|
|
79
79
|
const { t } = require_providers_i18n_provider_i18n_provider.useI18n("tag");
|
|
80
80
|
return {
|
|
81
81
|
"aria-label": t("Close tag"),
|
|
82
|
-
"data-disabled":
|
|
82
|
+
"data-disabled": require_utils_common_dom.dataAttr(disabled),
|
|
83
83
|
children: children || /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_x_icon.XIcon, {}),
|
|
84
84
|
...rest
|
|
85
85
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tag.cjs","names":["tagStyle","styled","XIcon"],"sources":["../../../../src/components/tag/tag.tsx"],"sourcesContent":["\"use client\"\n\nimport type { MouseEventHandler, ReactNode } from \"react\"\nimport type { HTMLStyledProps, ThemeProps } from \"../../core\"\nimport type { TagStyle } from \"./tag.style\"\nimport { useMemo, useRef } from \"react\"\nimport { createSlotComponent, styled } from \"../../core\"\nimport { useClickable } from \"../../hooks/use-clickable\"\nimport { useI18n } from \"../../providers/i18n-provider\"\nimport { dataAttr } from \"../../utils\"\nimport { XIcon } from \"../icon\"\nimport { tagStyle } from \"./tag.style\"\n\ninterface ComponentContext extends Pick<TagProps, \"disabled\"> {}\n\nexport interface TagProps\n extends HTMLStyledProps<\"span\">,\n ThemeProps<TagStyle> {\n /**\n * If `true`, the tag is disabled.\n *\n * @default false\n */\n disabled?: boolean\n /**\n * Icon to be displayed to the end of the tag.\n */\n endIcon?: ReactNode\n /**\n * Icon to be displayed to the start of the tag.\n */\n startIcon?: ReactNode\n /**\n * Props for tag close button element.\n */\n closeButtonProps?: TagCloseButtonProps\n /**\n * Props for content element.\n */\n contentProps?: TagContentProps\n /**\n * Props for icon element.\n */\n iconProps?: HTMLStyledProps<\"span\">\n /**\n * Function to be executed when the close button is clicked.\n */\n onClose?: MouseEventHandler<HTMLElement>\n}\n\nexport const {\n ComponentContext,\n PropsContext: TagPropsContext,\n useComponentContext,\n usePropsContext: useTagPropsContext,\n withContext,\n withProvider,\n} = createSlotComponent<TagProps, TagStyle, ComponentContext>(\"tag\", tagStyle)\n\n/**\n * `Tag` is a component used to categorize or organize items using keywords that describe them.\n *\n * @see https://yamada-ui.com/components/tag\n */\nexport const Tag = withProvider(\n ({\n children,\n disabled,\n endIcon,\n startIcon,\n closeButtonProps,\n contentProps,\n iconProps,\n onClose,\n ...rest\n }) => {\n const context = useMemo(() => ({ disabled }), [disabled])\n\n return (\n <ComponentContext value={context}>\n <styled.span data-disabled={dataAttr(disabled)} {...rest}>\n {startIcon ? (\n <TagStartIcon {...iconProps}>{startIcon}</TagStartIcon>\n ) : null}\n\n {children ? (\n <TagContent {...contentProps}>{children}</TagContent>\n ) : null}\n\n {endIcon ? <TagEndIcon {...iconProps}>{endIcon}</TagEndIcon> : null}\n\n {onClose ? (\n <TagCloseButton onClick={onClose} {...closeButtonProps} />\n ) : null}\n </styled.span>\n </ComponentContext>\n )\n },\n \"root\",\n { transferProps: [\"disabled\"] },\n)()\n\ninterface TagContentProps extends HTMLStyledProps<\"span\"> {}\n\nconst TagContent = withContext<\"span\", TagContentProps>(\"span\", \"content\")(\n undefined,\n (props) => {\n const { disabled } = useComponentContext()\n\n return { \"data-disabled\": dataAttr(disabled), ...props }\n },\n)\n\ninterface TagStartIconProps extends HTMLStyledProps<\"span\"> {}\n\nconst TagStartIcon = withContext<\"span\", TagStartIconProps>(\"span\", [\n \"icon\",\n \"start\",\n])(undefined, (props) => {\n const { disabled } = useComponentContext()\n\n return { \"data-disabled\": dataAttr(disabled), ...props }\n})\n\ninterface TagEndIconProps extends HTMLStyledProps<\"span\"> {}\n\nconst TagEndIcon = withContext<\"span\", TagEndIconProps>(\"span\", [\n \"icon\",\n \"end\",\n])(undefined, (props) => {\n const { disabled } = useComponentContext()\n\n return { \"data-disabled\": dataAttr(disabled), ...props }\n})\n\ninterface TagCloseButtonProps extends HTMLStyledProps<\"span\"> {}\n\nconst TagCloseButton = withContext<\"span\", TagCloseButtonProps>(\"span\", [\n \"icon\",\n \"closeButton\",\n])(undefined, ({ children, ...props }) => {\n const ref = useRef<HTMLSpanElement>(null)\n const { disabled } = useComponentContext()\n const rest = useClickable<HTMLSpanElement>({ ref, disabled, ...props })\n const { t } = useI18n(\"tag\")\n\n return {\n \"aria-label\": t(\"Close tag\"),\n \"data-disabled\": dataAttr(disabled),\n children: children || <XIcon />,\n ...rest,\n }\n})\n"],"mappings":";;;;;;;;;;;;;;;AAkDA,MAAa,EACX,kBACA,cAAc,iBACd,qBACA,iBAAiB,oBACjB,aACA,cACD,GAAG,6DAA0D,OAAOA,0CAAS;;;;;;AAO9E,MAAa,MAAM,aACjB,CAAC,EACC,UACA,UACA,SACA,WACA,kBACA,cACA,WACA,QACA,GAAG,MACJ,KAAK;CACJ,MAAM,UAAU,mBAAQ,OAAO,EAAE,SAAU,IAAG,CAAC,QAAS,EAAC;AAEzD,wBACE,2BAAC;EAAiB,OAAO;4BACvB,4BAACC,mCAAO;GAAK,iBAAe,
|
|
1
|
+
{"version":3,"file":"tag.cjs","names":["tagStyle","styled","XIcon"],"sources":["../../../../src/components/tag/tag.tsx"],"sourcesContent":["\"use client\"\n\nimport type { MouseEventHandler, ReactNode } from \"react\"\nimport type { HTMLStyledProps, ThemeProps } from \"../../core\"\nimport type { TagStyle } from \"./tag.style\"\nimport { useMemo, useRef } from \"react\"\nimport { createSlotComponent, styled } from \"../../core\"\nimport { useClickable } from \"../../hooks/use-clickable\"\nimport { useI18n } from \"../../providers/i18n-provider\"\nimport { dataAttr } from \"../../utils\"\nimport { XIcon } from \"../icon\"\nimport { tagStyle } from \"./tag.style\"\n\ninterface ComponentContext extends Pick<TagProps, \"disabled\"> {}\n\nexport interface TagProps\n extends HTMLStyledProps<\"span\">,\n ThemeProps<TagStyle> {\n /**\n * If `true`, the tag is disabled.\n *\n * @default false\n */\n disabled?: boolean\n /**\n * Icon to be displayed to the end of the tag.\n */\n endIcon?: ReactNode\n /**\n * Icon to be displayed to the start of the tag.\n */\n startIcon?: ReactNode\n /**\n * Props for tag close button element.\n */\n closeButtonProps?: TagCloseButtonProps\n /**\n * Props for content element.\n */\n contentProps?: TagContentProps\n /**\n * Props for icon element.\n */\n iconProps?: HTMLStyledProps<\"span\">\n /**\n * Function to be executed when the close button is clicked.\n */\n onClose?: MouseEventHandler<HTMLElement>\n}\n\nexport const {\n ComponentContext,\n PropsContext: TagPropsContext,\n useComponentContext,\n usePropsContext: useTagPropsContext,\n withContext,\n withProvider,\n} = createSlotComponent<TagProps, TagStyle, ComponentContext>(\"tag\", tagStyle)\n\n/**\n * `Tag` is a component used to categorize or organize items using keywords that describe them.\n *\n * @see https://yamada-ui.com/components/tag\n */\nexport const Tag = withProvider(\n ({\n children,\n disabled,\n endIcon,\n startIcon,\n closeButtonProps,\n contentProps,\n iconProps,\n onClose,\n ...rest\n }) => {\n const context = useMemo(() => ({ disabled }), [disabled])\n\n return (\n <ComponentContext value={context}>\n <styled.span data-disabled={dataAttr(disabled)} {...rest}>\n {startIcon ? (\n <TagStartIcon {...iconProps}>{startIcon}</TagStartIcon>\n ) : null}\n\n {children ? (\n <TagContent {...contentProps}>{children}</TagContent>\n ) : null}\n\n {endIcon ? <TagEndIcon {...iconProps}>{endIcon}</TagEndIcon> : null}\n\n {onClose ? (\n <TagCloseButton onClick={onClose} {...closeButtonProps} />\n ) : null}\n </styled.span>\n </ComponentContext>\n )\n },\n \"root\",\n { transferProps: [\"disabled\"] },\n)()\n\ninterface TagContentProps extends HTMLStyledProps<\"span\"> {}\n\nconst TagContent = withContext<\"span\", TagContentProps>(\"span\", \"content\")(\n undefined,\n (props) => {\n const { disabled } = useComponentContext()\n\n return { \"data-disabled\": dataAttr(disabled), ...props }\n },\n)\n\ninterface TagStartIconProps extends HTMLStyledProps<\"span\"> {}\n\nconst TagStartIcon = withContext<\"span\", TagStartIconProps>(\"span\", [\n \"icon\",\n \"start\",\n])(undefined, (props) => {\n const { disabled } = useComponentContext()\n\n return { \"data-disabled\": dataAttr(disabled), ...props }\n})\n\ninterface TagEndIconProps extends HTMLStyledProps<\"span\"> {}\n\nconst TagEndIcon = withContext<\"span\", TagEndIconProps>(\"span\", [\n \"icon\",\n \"end\",\n])(undefined, (props) => {\n const { disabled } = useComponentContext()\n\n return { \"data-disabled\": dataAttr(disabled), ...props }\n})\n\ninterface TagCloseButtonProps extends HTMLStyledProps<\"span\"> {}\n\nconst TagCloseButton = withContext<\"span\", TagCloseButtonProps>(\"span\", [\n \"icon\",\n \"closeButton\",\n])(undefined, ({ children, ...props }) => {\n const ref = useRef<HTMLSpanElement>(null)\n const { disabled } = useComponentContext()\n const rest = useClickable<HTMLSpanElement>({ ref, disabled, ...props })\n const { t } = useI18n(\"tag\")\n\n return {\n \"aria-label\": t(\"Close tag\"),\n \"data-disabled\": dataAttr(disabled),\n children: children || <XIcon />,\n ...rest,\n }\n})\n"],"mappings":";;;;;;;;;;;;;;;AAkDA,MAAa,EACX,kBACA,cAAc,iBACd,qBACA,iBAAiB,oBACjB,aACA,cACD,GAAG,6DAA0D,OAAOA,0CAAS;;;;;;AAO9E,MAAa,MAAM,aACjB,CAAC,EACC,UACA,UACA,SACA,WACA,kBACA,cACA,WACA,QACA,GAAG,MACJ,KAAK;CACJ,MAAM,UAAU,mBAAQ,OAAO,EAAE,SAAU,IAAG,CAAC,QAAS,EAAC;AAEzD,wBACE,2BAAC;EAAiB,OAAO;4BACvB,4BAACC,mCAAO;GAAK,iBAAe,kCAAS,SAAS;GAAE,GAAI;;IACjD,4BACC,2BAAC;KAAa,GAAI;eAAY;MAAyB,GACrD;IAEH,2BACC,2BAAC;KAAW,GAAI;KAAe;MAAsB,GACnD;IAEH,0BAAU,2BAAC;KAAW,GAAI;eAAY;MAAqB,GAAG;IAE9D,0BACC,2BAAC;KAAe,SAAS;KAAS,GAAI;MAAoB,GACxD;;IACQ;GACG;AAEtB,GACD,QACA,EAAE,eAAe,CAAC,UAAW,EAAE,EAChC,EAAE;AAIH,MAAM,aAAa,YAAqC,QAAQ,UAAU,SAExE,CAAC,UAAU;CACT,MAAM,EAAE,UAAU,GAAG,qBAAqB;AAE1C,QAAO;EAAE,iBAAiB,kCAAS,SAAS;EAAE,GAAG;CAAO;AACzD,EACF;AAID,MAAM,eAAe,YAAuC,QAAQ,CAClE,QACA,OACD,EAAC,SAAY,CAAC,UAAU;CACvB,MAAM,EAAE,UAAU,GAAG,qBAAqB;AAE1C,QAAO;EAAE,iBAAiB,kCAAS,SAAS;EAAE,GAAG;CAAO;AACzD,EAAC;AAIF,MAAM,aAAa,YAAqC,QAAQ,CAC9D,QACA,KACD,EAAC,SAAY,CAAC,UAAU;CACvB,MAAM,EAAE,UAAU,GAAG,qBAAqB;AAE1C,QAAO;EAAE,iBAAiB,kCAAS,SAAS;EAAE,GAAG;CAAO;AACzD,EAAC;AAIF,MAAM,iBAAiB,YAAyC,QAAQ,CACtE,QACA,aACD,EAAC,SAAY,CAAC,EAAE,SAAU,GAAG,OAAO,KAAK;CACxC,MAAM,MAAM,kBAAwB,KAAK;CACzC,MAAM,EAAE,UAAU,GAAG,qBAAqB;CAC1C,MAAM,OAAO,+CAA8B;EAAE;EAAK;EAAU,GAAG;CAAO,EAAC;CACvE,MAAM,EAAE,GAAG,GAAG,sDAAQ,MAAM;AAE5B,QAAO;EACL,cAAc,EAAE,YAAY;EAC5B,iBAAiB,kCAAS,SAAS;EACnC,UAAU,4BAAY,2BAACC,yBAAQ;EAC/B,GAAG;CACJ;AACF,EAAC"}
|
|
@@ -4,7 +4,10 @@
|
|
|
4
4
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
5
5
|
const require_utils_effect = require('../../utils/effect.cjs');
|
|
6
6
|
const require_utils_ref = require('../../utils/ref.cjs');
|
|
7
|
-
const
|
|
7
|
+
const require_utils_common_function = require('../../utils/common/function.cjs');
|
|
8
|
+
const require_utils_common_dom = require('../../utils/common/dom.cjs');
|
|
9
|
+
const require_utils_common_event = require('../../utils/common/event.cjs');
|
|
10
|
+
const require_utils_common_object = require('../../utils/common/object.cjs');
|
|
8
11
|
const react = require_rolldown_runtime.__toESM(require("react"));
|
|
9
12
|
|
|
10
13
|
//#region src/components/textarea/use-autosize.ts
|
|
@@ -45,7 +48,7 @@ const HIDDEN_STYLE = {
|
|
|
45
48
|
const getSizingStyle = (el) => {
|
|
46
49
|
const style = window.getComputedStyle(el);
|
|
47
50
|
if (style == null) return null;
|
|
48
|
-
const computedStyle =
|
|
51
|
+
const computedStyle = require_utils_common_object.pickObject(style, SIZING_STYLE_PROPERTIES);
|
|
49
52
|
if (computedStyle.boxSizing === "") return null;
|
|
50
53
|
const padding = parseFloat(computedStyle.paddingBottom) + parseFloat(computedStyle.paddingTop);
|
|
51
54
|
const border = parseFloat(computedStyle.borderBottomWidth) + parseFloat(computedStyle.borderTopWidth);
|
|
@@ -106,17 +109,17 @@ const useAutosize = ({ disabled = false, maxRows = Infinity, minRows = 2 } = {})
|
|
|
106
109
|
resize: !disabled ? "none" : void 0,
|
|
107
110
|
...props.style
|
|
108
111
|
},
|
|
109
|
-
onChange:
|
|
112
|
+
onChange: require_utils_common_function.handlerAll(props.onChange, !disabled ? onResizeTextarea : require_utils_common_function.noop)
|
|
110
113
|
}), [
|
|
111
114
|
ref,
|
|
112
115
|
onResizeTextarea,
|
|
113
116
|
disabled
|
|
114
117
|
]);
|
|
115
118
|
require_utils_effect.useSafeLayoutEffect(() => {
|
|
116
|
-
if (!
|
|
119
|
+
if (!require_utils_common_dom.createdDom() || disabled) return;
|
|
117
120
|
onResizeTextarea();
|
|
118
|
-
const unsubscribeResize =
|
|
119
|
-
const unsubscribeLoadingdone =
|
|
121
|
+
const unsubscribeResize = require_utils_common_event.addDomEvent(window, "resize", onResizeTextarea);
|
|
122
|
+
const unsubscribeLoadingdone = require_utils_common_event.addDomEvent(document.fonts, "loadingdone", onResizeTextarea);
|
|
120
123
|
return () => {
|
|
121
124
|
unsubscribeResize();
|
|
122
125
|
unsubscribeLoadingdone();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-autosize.cjs","names":["el: HTMLElement","el: HTMLTextAreaElement","sizingStyle: SizingStyle","value: string","maxRows: number","minRows: number","rows: number","value","getTextareaProps: PropGetter<\"textarea\">"],"sources":["../../../../src/components/textarea/use-autosize.ts"],"sourcesContent":["\"use client\"\n\nimport type { PropGetter } from \"../../core\"\nimport { useCallback, useRef } from \"react\"\nimport {\n addDomEvent,\n createdDom,\n handlerAll,\n mergeRefs,\n noop,\n pickObject,\n useSafeLayoutEffect,\n useUpdateEffect,\n} from \"../../utils\"\n\nconst SIZING_STYLE_PROPERTIES = [\n \"borderBottomWidth\",\n \"borderLeftWidth\",\n \"borderRightWidth\",\n \"borderTopWidth\",\n \"boxSizing\",\n \"fontFamily\",\n \"fontSize\",\n \"fontStyle\",\n \"fontWeight\",\n \"letterSpacing\",\n \"lineHeight\",\n \"paddingBottom\",\n \"paddingLeft\",\n \"paddingRight\",\n \"paddingTop\",\n // non-standard\n \"tabSize\",\n \"textIndent\",\n // non-standard\n \"textRendering\",\n \"textTransform\",\n \"width\",\n \"wordBreak\",\n] as const\n\nconst HIDDEN_STYLE = {\n height: \"0\",\n \"max-height\": \"none\",\n \"min-height\": \"0\",\n overflow: \"hidden\",\n position: \"absolute\",\n right: \"0\",\n top: \"0\",\n visibility: \"hidden\",\n \"z-index\": \"-1000\",\n} as const\n\ntype SizingProperties = Extract<\n (typeof SIZING_STYLE_PROPERTIES)[number],\n keyof CSSStyleDeclaration\n>\n\ninterface SizingStyle {\n style: Pick<CSSStyleDeclaration, SizingProperties>\n border: number\n padding: number\n rowHeight: number\n}\n\nconst getSizingStyle = (el: HTMLElement): null | SizingStyle => {\n const style = window.getComputedStyle(el) as CSSStyleDeclaration | undefined\n\n if (style == null) return null\n\n const computedStyle = pickObject(style, SIZING_STYLE_PROPERTIES)\n\n if (computedStyle.boxSizing === \"\") return null\n\n const padding =\n parseFloat(computedStyle.paddingBottom!) +\n parseFloat(computedStyle.paddingTop!)\n\n const border =\n parseFloat(computedStyle.borderBottomWidth!) +\n parseFloat(computedStyle.borderTopWidth!)\n\n const rowHeight = parseFloat(computedStyle.lineHeight!)\n\n return {\n style: computedStyle,\n border,\n padding,\n rowHeight,\n }\n}\n\nconst setHiddenStyle = (el: HTMLElement) => {\n Object.keys(HIDDEN_STYLE).forEach((key) => {\n el.style.setProperty(\n key,\n HIDDEN_STYLE[key as keyof typeof HIDDEN_STYLE],\n \"important\",\n )\n })\n}\n\nconst calcRows = (\n el: HTMLTextAreaElement,\n sizingStyle: SizingStyle,\n value: string,\n maxRows: number,\n minRows: number,\n) => {\n const cloneEl = el.cloneNode() as HTMLTextAreaElement\n\n Object.assign(cloneEl.style, sizingStyle.style)\n\n setHiddenStyle(cloneEl)\n\n cloneEl.value = value\n\n document.body.appendChild(cloneEl)\n\n let rows: number\n\n if (cloneEl.scrollHeight) {\n const rowHeight = sizingStyle.rowHeight\n\n rows = Math.min(\n maxRows,\n Math.max(minRows, Math.floor(cloneEl.scrollHeight / rowHeight)),\n )\n } else {\n const lineBreaks = (value.match(/\\n/g) || []).length\n\n rows = Math.min(maxRows, Math.max(minRows, lineBreaks + 1))\n }\n\n document.body.removeChild(cloneEl)\n\n return rows\n}\n\nexport interface UseAutosizeProps {\n /**\n * If `true`, the Textarea height will not be adjusted.\n *\n * @default false\n */\n disabled?: boolean\n /**\n * Autosize up to maxRows rows.\n *\n * @default Infinity\n */\n maxRows?: number\n /**\n * Autosize up to minRows rows.\n *\n * @default 2\n */\n minRows?: number\n}\n\nexport const useAutosize = ({\n disabled = false,\n maxRows = Infinity,\n minRows = 2,\n}: UseAutosizeProps = {}) => {\n const ref = useRef<HTMLTextAreaElement>(null)\n const beforeValueRef = useRef<string>(null)\n const value = ref.current?.value ?? \"\"\n\n const onResizeTextarea = useCallback(() => {\n const el = ref.current\n\n if (!el) return\n\n let { placeholder, value } = el\n\n if (value === beforeValueRef.current) return\n\n beforeValueRef.current = value\n\n value ||= placeholder || \"x\"\n\n const sizingStyle = getSizingStyle(el)\n\n if (!sizingStyle) return\n\n const rows = calcRows(el, sizingStyle, value, maxRows, minRows)\n\n el.rows = rows\n }, [ref, maxRows, minRows])\n\n const getTextareaProps: PropGetter<\"textarea\"> = useCallback(\n (props = {}) => ({\n ...props,\n ref: mergeRefs(props.ref, ref),\n style: { resize: !disabled ? \"none\" : undefined, ...props.style },\n onChange: handlerAll(props.onChange, !disabled ? onResizeTextarea : noop),\n }),\n [ref, onResizeTextarea, disabled],\n )\n\n useSafeLayoutEffect(() => {\n if (!createdDom() || disabled) return\n\n onResizeTextarea()\n\n const unsubscribeResize = addDomEvent(window, \"resize\", onResizeTextarea)\n const unsubscribeLoadingdone = addDomEvent(\n document.fonts,\n \"loadingdone\",\n onResizeTextarea,\n )\n\n return () => {\n unsubscribeResize()\n unsubscribeLoadingdone()\n }\n }, [])\n\n useUpdateEffect(() => {\n if (disabled) return\n\n onResizeTextarea()\n }, [value])\n\n return { ref, getTextareaProps, onResizeTextarea }\n}\n\nexport type UseAutosizeReturn = ReturnType<typeof useAutosize>\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-autosize.cjs","names":["el: HTMLElement","el: HTMLTextAreaElement","sizingStyle: SizingStyle","value: string","maxRows: number","minRows: number","rows: number","value","getTextareaProps: PropGetter<\"textarea\">","noop"],"sources":["../../../../src/components/textarea/use-autosize.ts"],"sourcesContent":["\"use client\"\n\nimport type { PropGetter } from \"../../core\"\nimport { useCallback, useRef } from \"react\"\nimport {\n addDomEvent,\n createdDom,\n handlerAll,\n mergeRefs,\n noop,\n pickObject,\n useSafeLayoutEffect,\n useUpdateEffect,\n} from \"../../utils\"\n\nconst SIZING_STYLE_PROPERTIES = [\n \"borderBottomWidth\",\n \"borderLeftWidth\",\n \"borderRightWidth\",\n \"borderTopWidth\",\n \"boxSizing\",\n \"fontFamily\",\n \"fontSize\",\n \"fontStyle\",\n \"fontWeight\",\n \"letterSpacing\",\n \"lineHeight\",\n \"paddingBottom\",\n \"paddingLeft\",\n \"paddingRight\",\n \"paddingTop\",\n // non-standard\n \"tabSize\",\n \"textIndent\",\n // non-standard\n \"textRendering\",\n \"textTransform\",\n \"width\",\n \"wordBreak\",\n] as const\n\nconst HIDDEN_STYLE = {\n height: \"0\",\n \"max-height\": \"none\",\n \"min-height\": \"0\",\n overflow: \"hidden\",\n position: \"absolute\",\n right: \"0\",\n top: \"0\",\n visibility: \"hidden\",\n \"z-index\": \"-1000\",\n} as const\n\ntype SizingProperties = Extract<\n (typeof SIZING_STYLE_PROPERTIES)[number],\n keyof CSSStyleDeclaration\n>\n\ninterface SizingStyle {\n style: Pick<CSSStyleDeclaration, SizingProperties>\n border: number\n padding: number\n rowHeight: number\n}\n\nconst getSizingStyle = (el: HTMLElement): null | SizingStyle => {\n const style = window.getComputedStyle(el) as CSSStyleDeclaration | undefined\n\n if (style == null) return null\n\n const computedStyle = pickObject(style, SIZING_STYLE_PROPERTIES)\n\n if (computedStyle.boxSizing === \"\") return null\n\n const padding =\n parseFloat(computedStyle.paddingBottom!) +\n parseFloat(computedStyle.paddingTop!)\n\n const border =\n parseFloat(computedStyle.borderBottomWidth!) +\n parseFloat(computedStyle.borderTopWidth!)\n\n const rowHeight = parseFloat(computedStyle.lineHeight!)\n\n return {\n style: computedStyle,\n border,\n padding,\n rowHeight,\n }\n}\n\nconst setHiddenStyle = (el: HTMLElement) => {\n Object.keys(HIDDEN_STYLE).forEach((key) => {\n el.style.setProperty(\n key,\n HIDDEN_STYLE[key as keyof typeof HIDDEN_STYLE],\n \"important\",\n )\n })\n}\n\nconst calcRows = (\n el: HTMLTextAreaElement,\n sizingStyle: SizingStyle,\n value: string,\n maxRows: number,\n minRows: number,\n) => {\n const cloneEl = el.cloneNode() as HTMLTextAreaElement\n\n Object.assign(cloneEl.style, sizingStyle.style)\n\n setHiddenStyle(cloneEl)\n\n cloneEl.value = value\n\n document.body.appendChild(cloneEl)\n\n let rows: number\n\n if (cloneEl.scrollHeight) {\n const rowHeight = sizingStyle.rowHeight\n\n rows = Math.min(\n maxRows,\n Math.max(minRows, Math.floor(cloneEl.scrollHeight / rowHeight)),\n )\n } else {\n const lineBreaks = (value.match(/\\n/g) || []).length\n\n rows = Math.min(maxRows, Math.max(minRows, lineBreaks + 1))\n }\n\n document.body.removeChild(cloneEl)\n\n return rows\n}\n\nexport interface UseAutosizeProps {\n /**\n * If `true`, the Textarea height will not be adjusted.\n *\n * @default false\n */\n disabled?: boolean\n /**\n * Autosize up to maxRows rows.\n *\n * @default Infinity\n */\n maxRows?: number\n /**\n * Autosize up to minRows rows.\n *\n * @default 2\n */\n minRows?: number\n}\n\nexport const useAutosize = ({\n disabled = false,\n maxRows = Infinity,\n minRows = 2,\n}: UseAutosizeProps = {}) => {\n const ref = useRef<HTMLTextAreaElement>(null)\n const beforeValueRef = useRef<string>(null)\n const value = ref.current?.value ?? \"\"\n\n const onResizeTextarea = useCallback(() => {\n const el = ref.current\n\n if (!el) return\n\n let { placeholder, value } = el\n\n if (value === beforeValueRef.current) return\n\n beforeValueRef.current = value\n\n value ||= placeholder || \"x\"\n\n const sizingStyle = getSizingStyle(el)\n\n if (!sizingStyle) return\n\n const rows = calcRows(el, sizingStyle, value, maxRows, minRows)\n\n el.rows = rows\n }, [ref, maxRows, minRows])\n\n const getTextareaProps: PropGetter<\"textarea\"> = useCallback(\n (props = {}) => ({\n ...props,\n ref: mergeRefs(props.ref, ref),\n style: { resize: !disabled ? \"none\" : undefined, ...props.style },\n onChange: handlerAll(props.onChange, !disabled ? onResizeTextarea : noop),\n }),\n [ref, onResizeTextarea, disabled],\n )\n\n useSafeLayoutEffect(() => {\n if (!createdDom() || disabled) return\n\n onResizeTextarea()\n\n const unsubscribeResize = addDomEvent(window, \"resize\", onResizeTextarea)\n const unsubscribeLoadingdone = addDomEvent(\n document.fonts,\n \"loadingdone\",\n onResizeTextarea,\n )\n\n return () => {\n unsubscribeResize()\n unsubscribeLoadingdone()\n }\n }, [])\n\n useUpdateEffect(() => {\n if (disabled) return\n\n onResizeTextarea()\n }, [value])\n\n return { ref, getTextareaProps, onResizeTextarea }\n}\n\nexport type UseAutosizeReturn = ReturnType<typeof useAutosize>\n"],"mappings":"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"}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
5
5
|
const require_utils_ref = require('../../utils/ref.cjs');
|
|
6
|
-
const
|
|
6
|
+
const require_utils_common_function = require('../../utils/common/function.cjs');
|
|
7
7
|
const require_components_textarea_use_autosize = require('./use-autosize.cjs');
|
|
8
8
|
const react = require_rolldown_runtime.__toESM(require("react"));
|
|
9
9
|
|
|
@@ -24,7 +24,7 @@ const useTextarea = ({ autosize, maxRows, minRows, resizeRef,...rest } = {}) =>
|
|
|
24
24
|
...rest.style,
|
|
25
25
|
...style
|
|
26
26
|
},
|
|
27
|
-
onChange:
|
|
27
|
+
onChange: require_utils_common_function.handlerAll(props.onChange, rest.onChange, autosize ? onResizeTextarea : require_utils_common_function.noop)
|
|
28
28
|
}), [
|
|
29
29
|
autosize,
|
|
30
30
|
onResizeTextarea,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-textarea.cjs","names":["getTextareaProps: PropGetter<\"textarea\">"],"sources":["../../../../src/components/textarea/use-textarea.ts"],"sourcesContent":["\"use client\"\n\nimport type { ForwardedRef } from \"react\"\nimport type { HTMLProps, PropGetter } from \"../../core\"\nimport type { UseAutosizeProps } from \"./use-autosize\"\nimport { useCallback } from \"react\"\nimport { assignRef, handlerAll, mergeRefs, noop } from \"../../utils\"\nimport { useAutosize } from \"./use-autosize\"\n\nexport interface UseTextareaProps\n extends HTMLProps<\"textarea\">,\n Omit<UseAutosizeProps, \"disabled\" | \"ref\"> {\n /**\n * If `true`, the Textarea height auto-adjusts to text height.\n */\n autosize?: boolean\n /**\n * Ref to a resize function.\n */\n resizeRef?: ForwardedRef<() => void>\n}\n\nexport const useTextarea = ({\n autosize,\n maxRows,\n minRows,\n resizeRef,\n ...rest\n}: UseTextareaProps = {}) => {\n const { ref, onResizeTextarea } = useAutosize({\n disabled: !autosize,\n maxRows,\n minRows,\n })\n\n assignRef(resizeRef, onResizeTextarea)\n\n const getTextareaProps: PropGetter<\"textarea\"> = useCallback(\n ({ style, ...props } = {}) => ({\n ...rest,\n ...props,\n ref: mergeRefs(props.ref, rest.ref, ref),\n style: { resize: autosize ? \"none\" : undefined, ...rest.style, ...style },\n onChange: handlerAll(\n props.onChange,\n rest.onChange,\n autosize ? onResizeTextarea : noop,\n ),\n }),\n [autosize, onResizeTextarea, rest, ref],\n )\n\n return {\n getTextareaProps,\n onResizeTextarea,\n }\n}\n\nexport type UseTextareaReturn = ReturnType<typeof useTextarea>\n"],"mappings":";;;;;;;;;;AAsBA,MAAa,cAAc,CAAC,EAC1B,UACA,SACA,SACA,UACA,GAAG,MACc,GAAG,CAAE,MAAK;CAC3B,MAAM,EAAE,KAAK,kBAAkB,GAAG,qDAAY;EAC5C,WAAW;EACX;EACA;CACD,EAAC;AAEF,6BAAU,WAAW,iBAAiB;CAEtC,MAAMA,mBAA2C,uBAC/C,CAAC,EAAE,MAAO,GAAG,OAAO,GAAG,CAAE,OAAM;EAC7B,GAAG;EACH,GAAG;EACH,KAAK,4BAAU,MAAM,KAAK,KAAK,KAAK,IAAI;EACxC,OAAO;GAAE,QAAQ,WAAW;GAAoB,GAAG,KAAK;GAAO,GAAG;EAAO;EACzE,UAAU,
|
|
1
|
+
{"version":3,"file":"use-textarea.cjs","names":["getTextareaProps: PropGetter<\"textarea\">","noop"],"sources":["../../../../src/components/textarea/use-textarea.ts"],"sourcesContent":["\"use client\"\n\nimport type { ForwardedRef } from \"react\"\nimport type { HTMLProps, PropGetter } from \"../../core\"\nimport type { UseAutosizeProps } from \"./use-autosize\"\nimport { useCallback } from \"react\"\nimport { assignRef, handlerAll, mergeRefs, noop } from \"../../utils\"\nimport { useAutosize } from \"./use-autosize\"\n\nexport interface UseTextareaProps\n extends HTMLProps<\"textarea\">,\n Omit<UseAutosizeProps, \"disabled\" | \"ref\"> {\n /**\n * If `true`, the Textarea height auto-adjusts to text height.\n */\n autosize?: boolean\n /**\n * Ref to a resize function.\n */\n resizeRef?: ForwardedRef<() => void>\n}\n\nexport const useTextarea = ({\n autosize,\n maxRows,\n minRows,\n resizeRef,\n ...rest\n}: UseTextareaProps = {}) => {\n const { ref, onResizeTextarea } = useAutosize({\n disabled: !autosize,\n maxRows,\n minRows,\n })\n\n assignRef(resizeRef, onResizeTextarea)\n\n const getTextareaProps: PropGetter<\"textarea\"> = useCallback(\n ({ style, ...props } = {}) => ({\n ...rest,\n ...props,\n ref: mergeRefs(props.ref, rest.ref, ref),\n style: { resize: autosize ? \"none\" : undefined, ...rest.style, ...style },\n onChange: handlerAll(\n props.onChange,\n rest.onChange,\n autosize ? onResizeTextarea : noop,\n ),\n }),\n [autosize, onResizeTextarea, rest, ref],\n )\n\n return {\n getTextareaProps,\n onResizeTextarea,\n }\n}\n\nexport type UseTextareaReturn = ReturnType<typeof useTextarea>\n"],"mappings":";;;;;;;;;;AAsBA,MAAa,cAAc,CAAC,EAC1B,UACA,SACA,SACA,UACA,GAAG,MACc,GAAG,CAAE,MAAK;CAC3B,MAAM,EAAE,KAAK,kBAAkB,GAAG,qDAAY;EAC5C,WAAW;EACX;EACA;CACD,EAAC;AAEF,6BAAU,WAAW,iBAAiB;CAEtC,MAAMA,mBAA2C,uBAC/C,CAAC,EAAE,MAAO,GAAG,OAAO,GAAG,CAAE,OAAM;EAC7B,GAAG;EACH,GAAG;EACH,KAAK,4BAAU,MAAM,KAAK,KAAK,KAAK,IAAI;EACxC,OAAO;GAAE,QAAQ,WAAW;GAAoB,GAAG,KAAK;GAAO,GAAG;EAAO;EACzE,UAAU,yCACR,MAAM,UACN,KAAK,UACL,WAAW,mBAAmBC,mCAC/B;CACF,IACD;EAAC;EAAU;EAAkB;EAAM;CAAI,EACxC;AAED,QAAO;EACL;EACA;CACD;AACF"}
|