@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
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
|
|
4
4
|
import { useSafeLayoutEffect } from "../../utils/effect.js";
|
|
5
5
|
import { mergeRefs } from "../../utils/ref.js";
|
|
6
|
-
import {
|
|
6
|
+
import { handlerAll } from "../../utils/common/function.js";
|
|
7
|
+
import { dataAttr, isMac, vendor } from "../../utils/common/dom.js";
|
|
7
8
|
import { useCallback, useEffect, useId, useMemo, useRef, useState } from "react";
|
|
8
9
|
|
|
9
10
|
//#region src/components/scroll-area/use-scroll-area.ts
|
|
@@ -13,7 +14,7 @@ const useScrollArea = ({ id, ref, type = "hover", scrollHideDelay = 1e3, onScrol
|
|
|
13
14
|
const isAlways = type === "always";
|
|
14
15
|
const isNever = type === "never";
|
|
15
16
|
const isHidden = !isAlways && !isHovered && !isScrolling;
|
|
16
|
-
const isSafari =
|
|
17
|
+
const isSafari = isMac() && vendor(/apple/i);
|
|
17
18
|
const uuid = useId();
|
|
18
19
|
const key = `${id ?? uuid}-${isHovered}-${isScrolling}`;
|
|
19
20
|
const hoverTimeout = useRef(void 0);
|
|
@@ -84,14 +85,14 @@ const useScrollArea = ({ id, ref, type = "hover", scrollHideDelay = 1e3, onScrol
|
|
|
84
85
|
...rest,
|
|
85
86
|
...isSafari ? safariProps : {},
|
|
86
87
|
...props,
|
|
87
|
-
"data-hidden":
|
|
88
|
-
"data-hover":
|
|
89
|
-
"data-never":
|
|
90
|
-
"data-scroll":
|
|
88
|
+
"data-hidden": dataAttr(isHidden),
|
|
89
|
+
"data-hover": dataAttr(isHovered),
|
|
90
|
+
"data-never": dataAttr(isNever),
|
|
91
|
+
"data-scroll": dataAttr(isScrolling),
|
|
91
92
|
tabIndex: 0,
|
|
92
|
-
onMouseEnter:
|
|
93
|
-
onMouseLeave:
|
|
94
|
-
onScroll:
|
|
93
|
+
onMouseEnter: handlerAll(props.onMouseEnter, rest.onMouseEnter, onMouseEnter),
|
|
94
|
+
onMouseLeave: handlerAll(props.onMouseLeave, rest.onMouseLeave, onMouseLeave),
|
|
95
|
+
onScroll: handlerAll(props.onScroll, rest.onScroll, onScroll)
|
|
95
96
|
}), [
|
|
96
97
|
isNever,
|
|
97
98
|
ref,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-scroll-area.js","names":["ev: UIEvent<HTMLDivElement>","getRootProps: PropGetter"],"sources":["../../../../src/components/scroll-area/use-scroll-area.ts"],"sourcesContent":["\"use client\"\n\nimport type { UIEvent } from \"react\"\nimport type { HTMLProps, PropGetter } from \"../../core\"\nimport { useCallback, useEffect, useId, useMemo, useRef, useState } from \"react\"\nimport { dataAttr, handlerAll, isMac, vendor } from \"../../utils\"\nimport { mergeRefs, useSafeLayoutEffect } from \"../../utils\"\n\nexport interface UseScrollAreaProps extends HTMLProps {\n /**\n * Scrollbar visibility type.\n *\n * @default 'hover'\n */\n type?: \"always\" | \"hover\" | \"never\" | \"scroll\"\n /**\n * Delay in milliseconds before scrollbars are hidden.\n *\n * @default 1000\n */\n scrollHideDelay?: number\n /**\n * Callback function for when the scroll position changes.\n */\n onScrollPositionChange?: ({ x, y }: { x: number; y: number }) => void\n}\n\nexport const useScrollArea = ({\n id,\n ref,\n type = \"hover\",\n scrollHideDelay = 1000,\n onScrollPositionChange,\n ...rest\n}: UseScrollAreaProps = {}) => {\n const [isHovered, setIsHovered] = useState<boolean>(false)\n const [isScrolling, setIsScrolling] = useState<boolean>(false)\n const isAlways = type === \"always\"\n const isNever = type === \"never\"\n const isHidden = !isAlways && !isHovered && !isScrolling\n const isSafari = isMac() && vendor(/apple/i)\n const uuid = useId()\n const key = `${id ?? uuid}-${isHovered}-${isScrolling}`\n\n const hoverTimeout = useRef<any>(undefined)\n const scrollTimeout = useRef<any>(undefined)\n const scrollAreaRef = useRef<HTMLDivElement>(null)\n const scrollPosition = useRef({ x: 0, y: 0 })\n\n useSafeLayoutEffect(() => {\n if (!scrollAreaRef.current || !isSafari) return\n\n scrollAreaRef.current.scrollLeft = scrollPosition.current.x\n scrollAreaRef.current.scrollTop = scrollPosition.current.y\n })\n\n const onMouseEnter = useCallback(() => {\n if (type !== \"hover\") return\n\n clearTimeout(hoverTimeout.current)\n\n setIsHovered(true)\n }, [type])\n\n const onMouseLeave = useCallback(() => {\n if (type !== \"hover\") return\n\n hoverTimeout.current = setTimeout(\n () => setIsHovered(false),\n scrollHideDelay,\n )\n }, [scrollHideDelay, type])\n\n const onScroll = useCallback(\n (ev: UIEvent<HTMLDivElement>) => {\n const el = ev.target as HTMLDivElement\n\n const { scrollLeft: x, scrollTop: y } = el\n const { x: prevX, y: prevY } = scrollPosition.current\n const isEqual = Math.abs(x - prevX) <= 5 && Math.abs(y - prevY) <= 5\n\n onScrollPositionChange?.({ x, y })\n scrollPosition.current = { x, y }\n\n if (type !== \"scroll\" || isEqual) return\n\n if (!isScrolling) setIsScrolling(true)\n\n clearTimeout(scrollTimeout.current)\n\n scrollTimeout.current = setTimeout(\n () => setIsScrolling(false),\n scrollHideDelay,\n )\n },\n [isScrolling, onScrollPositionChange, scrollHideDelay, type],\n )\n\n useEffect(() => {\n return () => {\n if (hoverTimeout.current) clearTimeout(hoverTimeout.current)\n if (scrollTimeout.current) clearTimeout(scrollTimeout.current)\n }\n }, [])\n\n const safariProps = useMemo(\n () => ({\n key,\n ref: mergeRefs(ref, scrollAreaRef),\n \"data-key\": key,\n }),\n [key, ref, scrollAreaRef],\n )\n\n const getRootProps: PropGetter = useCallback(\n ({ style, ...props } = {}) => ({\n ref,\n style: { overflow: \"auto\", ...style },\n ...rest,\n ...(isSafari ? safariProps : {}),\n ...props,\n \"data-hidden\": dataAttr(isHidden),\n \"data-hover\": dataAttr(isHovered),\n \"data-never\": dataAttr(isNever),\n \"data-scroll\": dataAttr(isScrolling),\n tabIndex: 0,\n onMouseEnter: handlerAll(\n props.onMouseEnter,\n rest.onMouseEnter,\n onMouseEnter,\n ),\n onMouseLeave: handlerAll(\n props.onMouseLeave,\n rest.onMouseLeave,\n onMouseLeave,\n ),\n onScroll: handlerAll(props.onScroll, rest.onScroll, onScroll),\n }),\n [\n isNever,\n ref,\n isHidden,\n isHovered,\n isScrolling,\n isSafari,\n safariProps,\n rest,\n onMouseEnter,\n onMouseLeave,\n onScroll,\n ],\n )\n\n return {\n isAlways,\n isHidden,\n isHovered,\n isNever,\n isScrolling,\n getRootProps,\n }\n}\n\nexport type UseScrollAreaReturn = ReturnType<typeof useScrollArea>\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-scroll-area.js","names":["ev: UIEvent<HTMLDivElement>","getRootProps: PropGetter"],"sources":["../../../../src/components/scroll-area/use-scroll-area.ts"],"sourcesContent":["\"use client\"\n\nimport type { UIEvent } from \"react\"\nimport type { HTMLProps, PropGetter } from \"../../core\"\nimport { useCallback, useEffect, useId, useMemo, useRef, useState } from \"react\"\nimport { dataAttr, handlerAll, isMac, vendor } from \"../../utils\"\nimport { mergeRefs, useSafeLayoutEffect } from \"../../utils\"\n\nexport interface UseScrollAreaProps extends HTMLProps {\n /**\n * Scrollbar visibility type.\n *\n * @default 'hover'\n */\n type?: \"always\" | \"hover\" | \"never\" | \"scroll\"\n /**\n * Delay in milliseconds before scrollbars are hidden.\n *\n * @default 1000\n */\n scrollHideDelay?: number\n /**\n * Callback function for when the scroll position changes.\n */\n onScrollPositionChange?: ({ x, y }: { x: number; y: number }) => void\n}\n\nexport const useScrollArea = ({\n id,\n ref,\n type = \"hover\",\n scrollHideDelay = 1000,\n onScrollPositionChange,\n ...rest\n}: UseScrollAreaProps = {}) => {\n const [isHovered, setIsHovered] = useState<boolean>(false)\n const [isScrolling, setIsScrolling] = useState<boolean>(false)\n const isAlways = type === \"always\"\n const isNever = type === \"never\"\n const isHidden = !isAlways && !isHovered && !isScrolling\n const isSafari = isMac() && vendor(/apple/i)\n const uuid = useId()\n const key = `${id ?? uuid}-${isHovered}-${isScrolling}`\n\n const hoverTimeout = useRef<any>(undefined)\n const scrollTimeout = useRef<any>(undefined)\n const scrollAreaRef = useRef<HTMLDivElement>(null)\n const scrollPosition = useRef({ x: 0, y: 0 })\n\n useSafeLayoutEffect(() => {\n if (!scrollAreaRef.current || !isSafari) return\n\n scrollAreaRef.current.scrollLeft = scrollPosition.current.x\n scrollAreaRef.current.scrollTop = scrollPosition.current.y\n })\n\n const onMouseEnter = useCallback(() => {\n if (type !== \"hover\") return\n\n clearTimeout(hoverTimeout.current)\n\n setIsHovered(true)\n }, [type])\n\n const onMouseLeave = useCallback(() => {\n if (type !== \"hover\") return\n\n hoverTimeout.current = setTimeout(\n () => setIsHovered(false),\n scrollHideDelay,\n )\n }, [scrollHideDelay, type])\n\n const onScroll = useCallback(\n (ev: UIEvent<HTMLDivElement>) => {\n const el = ev.target as HTMLDivElement\n\n const { scrollLeft: x, scrollTop: y } = el\n const { x: prevX, y: prevY } = scrollPosition.current\n const isEqual = Math.abs(x - prevX) <= 5 && Math.abs(y - prevY) <= 5\n\n onScrollPositionChange?.({ x, y })\n scrollPosition.current = { x, y }\n\n if (type !== \"scroll\" || isEqual) return\n\n if (!isScrolling) setIsScrolling(true)\n\n clearTimeout(scrollTimeout.current)\n\n scrollTimeout.current = setTimeout(\n () => setIsScrolling(false),\n scrollHideDelay,\n )\n },\n [isScrolling, onScrollPositionChange, scrollHideDelay, type],\n )\n\n useEffect(() => {\n return () => {\n if (hoverTimeout.current) clearTimeout(hoverTimeout.current)\n if (scrollTimeout.current) clearTimeout(scrollTimeout.current)\n }\n }, [])\n\n const safariProps = useMemo(\n () => ({\n key,\n ref: mergeRefs(ref, scrollAreaRef),\n \"data-key\": key,\n }),\n [key, ref, scrollAreaRef],\n )\n\n const getRootProps: PropGetter = useCallback(\n ({ style, ...props } = {}) => ({\n ref,\n style: { overflow: \"auto\", ...style },\n ...rest,\n ...(isSafari ? safariProps : {}),\n ...props,\n \"data-hidden\": dataAttr(isHidden),\n \"data-hover\": dataAttr(isHovered),\n \"data-never\": dataAttr(isNever),\n \"data-scroll\": dataAttr(isScrolling),\n tabIndex: 0,\n onMouseEnter: handlerAll(\n props.onMouseEnter,\n rest.onMouseEnter,\n onMouseEnter,\n ),\n onMouseLeave: handlerAll(\n props.onMouseLeave,\n rest.onMouseLeave,\n onMouseLeave,\n ),\n onScroll: handlerAll(props.onScroll, rest.onScroll, onScroll),\n }),\n [\n isNever,\n ref,\n isHidden,\n isHovered,\n isScrolling,\n isSafari,\n safariProps,\n rest,\n onMouseEnter,\n onMouseLeave,\n onScroll,\n ],\n )\n\n return {\n isAlways,\n isHidden,\n isHovered,\n isNever,\n isScrolling,\n getRootProps,\n }\n}\n\nexport type UseScrollAreaReturn = ReturnType<typeof useScrollArea>\n"],"mappings":"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"}
|
|
@@ -4,7 +4,8 @@
|
|
|
4
4
|
import { createContext } from "../../utils/context.js";
|
|
5
5
|
import { visuallyHiddenAttributes } from "../../utils/dom.js";
|
|
6
6
|
import { mergeRefs } from "../../utils/ref.js";
|
|
7
|
-
import {
|
|
7
|
+
import { handlerAll } from "../../utils/common/function.js";
|
|
8
|
+
import { ariaAttr, dataAttr } from "../../utils/common/dom.js";
|
|
8
9
|
import { useControllableState } from "../../hooks/use-controllable-state/index.js";
|
|
9
10
|
import { createDescendant } from "../../hooks/use-descendant/index.js";
|
|
10
11
|
import { useCallback, useId } from "react";
|
|
@@ -24,11 +25,11 @@ const useSegmentedControl = ({ id, name, defaultValue, disabled, orientation = "
|
|
|
24
25
|
name ??= uuid;
|
|
25
26
|
const getRootProps = useCallback((props) => ({
|
|
26
27
|
id,
|
|
27
|
-
"aria-disabled":
|
|
28
|
+
"aria-disabled": ariaAttr(disabled),
|
|
28
29
|
"aria-orientation": orientation,
|
|
29
|
-
"data-disabled":
|
|
30
|
+
"data-disabled": dataAttr(disabled),
|
|
30
31
|
"data-orientation": orientation,
|
|
31
|
-
"data-readonly":
|
|
32
|
+
"data-readonly": dataAttr(readOnly),
|
|
32
33
|
role: "radiogroup",
|
|
33
34
|
...rest,
|
|
34
35
|
...props
|
|
@@ -62,15 +63,15 @@ const useSegmentedControlItem = ({ disabled, readOnly, value, inputProps,...rest
|
|
|
62
63
|
setValue(ev.target.value);
|
|
63
64
|
}, [setValue]);
|
|
64
65
|
const getLabelProps = useCallback((props) => ({
|
|
65
|
-
"aria-disabled":
|
|
66
|
-
"aria-readonly":
|
|
67
|
-
"data-checked":
|
|
68
|
-
"data-disabled":
|
|
66
|
+
"aria-disabled": ariaAttr(trulyDisabled),
|
|
67
|
+
"aria-readonly": ariaAttr(trulyReadOnly),
|
|
68
|
+
"data-checked": dataAttr(checked),
|
|
69
|
+
"data-disabled": dataAttr(trulyDisabled),
|
|
69
70
|
"data-index": index.toString(),
|
|
70
71
|
"data-orientation": orientation,
|
|
71
|
-
"data-readonly":
|
|
72
|
-
"data-root-disabled":
|
|
73
|
-
"data-root-readonly":
|
|
72
|
+
"data-readonly": dataAttr(trulyReadOnly),
|
|
73
|
+
"data-root-disabled": dataAttr(rootDisabled),
|
|
74
|
+
"data-root-readonly": dataAttr(rootReadOnly),
|
|
74
75
|
...props,
|
|
75
76
|
...rest
|
|
76
77
|
}), [
|
|
@@ -87,12 +88,12 @@ const useSegmentedControlItem = ({ disabled, readOnly, value, inputProps,...rest
|
|
|
87
88
|
type: "radio",
|
|
88
89
|
name,
|
|
89
90
|
style: visuallyHiddenAttributes.style,
|
|
90
|
-
"aria-disabled":
|
|
91
|
-
"aria-readonly":
|
|
92
|
-
"data-checked":
|
|
93
|
-
"data-disabled":
|
|
91
|
+
"aria-disabled": ariaAttr(trulyDisabled),
|
|
92
|
+
"aria-readonly": ariaAttr(trulyReadOnly),
|
|
93
|
+
"data-checked": dataAttr(checked),
|
|
94
|
+
"data-disabled": dataAttr(trulyDisabled),
|
|
94
95
|
"data-orientation": orientation,
|
|
95
|
-
"data-readonly":
|
|
96
|
+
"data-readonly": dataAttr(trulyReadOnly),
|
|
96
97
|
checked,
|
|
97
98
|
disabled: trulyDisabled || trulyReadOnly,
|
|
98
99
|
readOnly: trulyReadOnly,
|
|
@@ -101,7 +102,7 @@ const useSegmentedControlItem = ({ disabled, readOnly, value, inputProps,...rest
|
|
|
101
102
|
...inputProps,
|
|
102
103
|
...props,
|
|
103
104
|
ref: mergeRefs(register, ref),
|
|
104
|
-
onChange:
|
|
105
|
+
onChange: handlerAll(props.onChange, inputProps?.onChange, onChange)
|
|
105
106
|
}), [
|
|
106
107
|
orientation,
|
|
107
108
|
name,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-segmented-control.js","names":["getRootProps: PropGetter","ev: ChangeEvent<HTMLInputElement>","getLabelProps: PropGetter<\"label\">","getInputProps: PropGetter<\"input\">"],"sources":["../../../../src/components/segmented-control/use-segmented-control.ts"],"sourcesContent":["\"use client\"\n\nimport type { ChangeEvent } from \"react\"\nimport type { HTMLProps, Orientation, PropGetter } from \"../../core\"\nimport type { FieldProps } from \"../field\"\nimport { useCallback, useId } from \"react\"\nimport { useControllableState } from \"../../hooks/use-controllable-state\"\nimport { createDescendant } from \"../../hooks/use-descendant\"\nimport {\n ariaAttr,\n createContext,\n dataAttr,\n handlerAll,\n mergeRefs,\n visuallyHiddenAttributes,\n} from \"../../utils\"\n\nexport interface SegmentedControlContext\n extends Omit<UseSegmentedControlReturn, \"descendants\" | \"getRootProps\"> {}\n\nexport const [SegmentedControlContext, useSegmentedControlContext] =\n createContext<SegmentedControlContext>({ name: \"SegmentedControlContext\" })\n\nexport const { DescendantsContext, useDescendant, useDescendants } =\n createDescendant<HTMLInputElement>()\n\nexport interface UseSegmentedControlProps<Y extends string = string>\n extends Omit<HTMLProps, \"onChange\"> {\n /**\n * The HTML `name` attribute used for forms.\n */\n name?: string\n /**\n * The initial value of the segmented control.\n */\n defaultValue?: Y\n /**\n * If `true`, the segmented control will be disabled.\n *\n * @default false\n */\n disabled?: boolean\n /**\n * The orientation of the segmented control.\n *\n * @default 'horizontal'\n */\n orientation?: Orientation\n /**\n * If `true`, the segmented control will be readonly.\n *\n * @default false\n */\n readOnly?: boolean\n /**\n * The value of the segmented control.\n */\n value?: Y\n /**\n * The callback fired when any children radio is checked or unchecked.\n */\n onChange?: (value: Y) => void\n}\n\nexport const useSegmentedControl = <Y extends string = string>({\n id,\n name,\n defaultValue,\n disabled,\n orientation = \"horizontal\",\n readOnly,\n value: valueProp,\n onChange: onChangeProp,\n ...rest\n}: UseSegmentedControlProps<Y> = {}) => {\n const uuid = useId()\n const [value, setValue] = useControllableState({\n defaultValue,\n value: valueProp,\n onChange: onChangeProp,\n })\n const descendants = useDescendants()\n\n id ??= uuid\n name ??= uuid\n\n const getRootProps: PropGetter = useCallback(\n (props) => ({\n id,\n \"aria-disabled\": ariaAttr(disabled),\n \"aria-orientation\": orientation,\n \"data-disabled\": dataAttr(disabled),\n \"data-orientation\": orientation,\n \"data-readonly\": dataAttr(readOnly),\n role: \"radiogroup\",\n ...rest,\n ...props,\n }),\n [disabled, id, orientation, readOnly, rest],\n )\n\n return {\n id,\n name,\n descendants,\n disabled,\n orientation,\n readOnly,\n setValue,\n value,\n getRootProps,\n }\n}\n\nexport type UseSegmentedControlReturn = ReturnType<typeof useSegmentedControl>\n\nexport interface UseSegmentedControlItemProps<Y extends string = string>\n extends HTMLProps<\"label\">,\n Pick<FieldProps, \"disabled\" | \"readOnly\"> {\n /**\n * The value of the segmented control item.\n */\n value: Y\n /**\n * Props for the input element.\n */\n inputProps?: HTMLProps<\"input\">\n}\n\nexport const useSegmentedControlItem = <Y extends string = string>({\n disabled,\n readOnly,\n value,\n inputProps,\n ...rest\n}: UseSegmentedControlItemProps<Y>) => {\n const {\n name,\n disabled: rootDisabled,\n orientation,\n readOnly: rootReadOnly,\n setValue,\n value: selectedValue,\n } = useSegmentedControlContext()\n const { index, register } = useDescendant({ disabled: disabled || readOnly })\n const checked = value === selectedValue\n const trulyDisabled = disabled ?? rootDisabled\n const trulyReadOnly = readOnly ?? rootReadOnly\n const interactive = !(trulyReadOnly || trulyDisabled)\n\n const onChange = useCallback(\n (ev: ChangeEvent<HTMLInputElement>) => {\n setValue(ev.target.value)\n },\n [setValue],\n )\n\n const getLabelProps: PropGetter<\"label\"> = useCallback(\n (props) => ({\n \"aria-disabled\": ariaAttr(trulyDisabled),\n \"aria-readonly\": ariaAttr(trulyReadOnly),\n \"data-checked\": dataAttr(checked),\n \"data-disabled\": dataAttr(trulyDisabled),\n \"data-index\": index.toString(),\n \"data-orientation\": orientation,\n \"data-readonly\": dataAttr(trulyReadOnly),\n \"data-root-disabled\": dataAttr(rootDisabled),\n \"data-root-readonly\": dataAttr(rootReadOnly),\n ...props,\n ...rest,\n }),\n [\n orientation,\n trulyDisabled,\n index,\n trulyReadOnly,\n checked,\n rootDisabled,\n rootReadOnly,\n rest,\n ],\n )\n\n const getInputProps: PropGetter<\"input\"> = useCallback(\n ({ ref, ...props } = {}) => ({\n type: \"radio\",\n name,\n style: visuallyHiddenAttributes.style,\n \"aria-disabled\": ariaAttr(trulyDisabled),\n \"aria-readonly\": ariaAttr(trulyReadOnly),\n \"data-checked\": dataAttr(checked),\n \"data-disabled\": dataAttr(trulyDisabled),\n \"data-orientation\": orientation,\n \"data-readonly\": dataAttr(trulyReadOnly),\n checked,\n disabled: trulyDisabled || trulyReadOnly,\n readOnly: trulyReadOnly,\n tabIndex: interactive ? undefined : -1,\n value,\n ...inputProps,\n ...props,\n ref: mergeRefs(register, ref),\n onChange: handlerAll(props.onChange, inputProps?.onChange, onChange),\n }),\n [\n orientation,\n name,\n trulyDisabled,\n trulyReadOnly,\n checked,\n interactive,\n value,\n inputProps,\n register,\n onChange,\n ],\n )\n\n return {\n getInputProps,\n getLabelProps,\n }\n}\n\nexport type UseSegmentedControlItemReturn = ReturnType<\n typeof useSegmentedControlItem\n>\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-segmented-control.js","names":["getRootProps: PropGetter","ev: ChangeEvent<HTMLInputElement>","getLabelProps: PropGetter<\"label\">","getInputProps: PropGetter<\"input\">"],"sources":["../../../../src/components/segmented-control/use-segmented-control.ts"],"sourcesContent":["\"use client\"\n\nimport type { ChangeEvent } from \"react\"\nimport type { HTMLProps, Orientation, PropGetter } from \"../../core\"\nimport type { FieldProps } from \"../field\"\nimport { useCallback, useId } from \"react\"\nimport { useControllableState } from \"../../hooks/use-controllable-state\"\nimport { createDescendant } from \"../../hooks/use-descendant\"\nimport {\n ariaAttr,\n createContext,\n dataAttr,\n handlerAll,\n mergeRefs,\n visuallyHiddenAttributes,\n} from \"../../utils\"\n\nexport interface SegmentedControlContext\n extends Omit<UseSegmentedControlReturn, \"descendants\" | \"getRootProps\"> {}\n\nexport const [SegmentedControlContext, useSegmentedControlContext] =\n createContext<SegmentedControlContext>({ name: \"SegmentedControlContext\" })\n\nexport const { DescendantsContext, useDescendant, useDescendants } =\n createDescendant<HTMLInputElement>()\n\nexport interface UseSegmentedControlProps<Y extends string = string>\n extends Omit<HTMLProps, \"onChange\"> {\n /**\n * The HTML `name` attribute used for forms.\n */\n name?: string\n /**\n * The initial value of the segmented control.\n */\n defaultValue?: Y\n /**\n * If `true`, the segmented control will be disabled.\n *\n * @default false\n */\n disabled?: boolean\n /**\n * The orientation of the segmented control.\n *\n * @default 'horizontal'\n */\n orientation?: Orientation\n /**\n * If `true`, the segmented control will be readonly.\n *\n * @default false\n */\n readOnly?: boolean\n /**\n * The value of the segmented control.\n */\n value?: Y\n /**\n * The callback fired when any children radio is checked or unchecked.\n */\n onChange?: (value: Y) => void\n}\n\nexport const useSegmentedControl = <Y extends string = string>({\n id,\n name,\n defaultValue,\n disabled,\n orientation = \"horizontal\",\n readOnly,\n value: valueProp,\n onChange: onChangeProp,\n ...rest\n}: UseSegmentedControlProps<Y> = {}) => {\n const uuid = useId()\n const [value, setValue] = useControllableState({\n defaultValue,\n value: valueProp,\n onChange: onChangeProp,\n })\n const descendants = useDescendants()\n\n id ??= uuid\n name ??= uuid\n\n const getRootProps: PropGetter = useCallback(\n (props) => ({\n id,\n \"aria-disabled\": ariaAttr(disabled),\n \"aria-orientation\": orientation,\n \"data-disabled\": dataAttr(disabled),\n \"data-orientation\": orientation,\n \"data-readonly\": dataAttr(readOnly),\n role: \"radiogroup\",\n ...rest,\n ...props,\n }),\n [disabled, id, orientation, readOnly, rest],\n )\n\n return {\n id,\n name,\n descendants,\n disabled,\n orientation,\n readOnly,\n setValue,\n value,\n getRootProps,\n }\n}\n\nexport type UseSegmentedControlReturn = ReturnType<typeof useSegmentedControl>\n\nexport interface UseSegmentedControlItemProps<Y extends string = string>\n extends HTMLProps<\"label\">,\n Pick<FieldProps, \"disabled\" | \"readOnly\"> {\n /**\n * The value of the segmented control item.\n */\n value: Y\n /**\n * Props for the input element.\n */\n inputProps?: HTMLProps<\"input\">\n}\n\nexport const useSegmentedControlItem = <Y extends string = string>({\n disabled,\n readOnly,\n value,\n inputProps,\n ...rest\n}: UseSegmentedControlItemProps<Y>) => {\n const {\n name,\n disabled: rootDisabled,\n orientation,\n readOnly: rootReadOnly,\n setValue,\n value: selectedValue,\n } = useSegmentedControlContext()\n const { index, register } = useDescendant({ disabled: disabled || readOnly })\n const checked = value === selectedValue\n const trulyDisabled = disabled ?? rootDisabled\n const trulyReadOnly = readOnly ?? rootReadOnly\n const interactive = !(trulyReadOnly || trulyDisabled)\n\n const onChange = useCallback(\n (ev: ChangeEvent<HTMLInputElement>) => {\n setValue(ev.target.value)\n },\n [setValue],\n )\n\n const getLabelProps: PropGetter<\"label\"> = useCallback(\n (props) => ({\n \"aria-disabled\": ariaAttr(trulyDisabled),\n \"aria-readonly\": ariaAttr(trulyReadOnly),\n \"data-checked\": dataAttr(checked),\n \"data-disabled\": dataAttr(trulyDisabled),\n \"data-index\": index.toString(),\n \"data-orientation\": orientation,\n \"data-readonly\": dataAttr(trulyReadOnly),\n \"data-root-disabled\": dataAttr(rootDisabled),\n \"data-root-readonly\": dataAttr(rootReadOnly),\n ...props,\n ...rest,\n }),\n [\n orientation,\n trulyDisabled,\n index,\n trulyReadOnly,\n checked,\n rootDisabled,\n rootReadOnly,\n rest,\n ],\n )\n\n const getInputProps: PropGetter<\"input\"> = useCallback(\n ({ ref, ...props } = {}) => ({\n type: \"radio\",\n name,\n style: visuallyHiddenAttributes.style,\n \"aria-disabled\": ariaAttr(trulyDisabled),\n \"aria-readonly\": ariaAttr(trulyReadOnly),\n \"data-checked\": dataAttr(checked),\n \"data-disabled\": dataAttr(trulyDisabled),\n \"data-orientation\": orientation,\n \"data-readonly\": dataAttr(trulyReadOnly),\n checked,\n disabled: trulyDisabled || trulyReadOnly,\n readOnly: trulyReadOnly,\n tabIndex: interactive ? undefined : -1,\n value,\n ...inputProps,\n ...props,\n ref: mergeRefs(register, ref),\n onChange: handlerAll(props.onChange, inputProps?.onChange, onChange),\n }),\n [\n orientation,\n name,\n trulyDisabled,\n trulyReadOnly,\n checked,\n interactive,\n value,\n inputProps,\n register,\n onChange,\n ],\n )\n\n return {\n getInputProps,\n getLabelProps,\n }\n}\n\nexport type UseSegmentedControlItemReturn = ReturnType<\n typeof useSegmentedControlItem\n>\n"],"mappings":";;;;;;;;;;;;;AAoBA,MAAa,CAAC,yBAAyB,2BAA2B,GAChE,cAAuC,EAAE,MAAM,0BAA2B,EAAC;AAE7E,MAAa,EAAE,oBAAoB,eAAe,gBAAgB,GAChE,kBAAoC;AAwCtC,MAAa,sBAAsB,CAA4B,EAC7D,IACA,MACA,cACA,UACA,cAAc,cACd,UACA,OAAO,WACP,UAAU,aACV,GAAG,MACyB,GAAG,CAAE,MAAK;CACtC,MAAM,OAAO,OAAO;CACpB,MAAM,CAAC,OAAO,SAAS,GAAG,qBAAqB;EAC7C;EACA,OAAO;EACP,UAAU;CACX,EAAC;CACF,MAAM,cAAc,gBAAgB;AAEpC,QAAO;AACP,UAAS;CAET,MAAMA,eAA2B,YAC/B,CAAC,WAAW;EACV;EACA,iBAAiB,SAAS,SAAS;EACnC,oBAAoB;EACpB,iBAAiB,SAAS,SAAS;EACnC,oBAAoB;EACpB,iBAAiB,SAAS,SAAS;EACnC,MAAM;EACN,GAAG;EACH,GAAG;CACJ,IACD;EAAC;EAAU;EAAI;EAAa;EAAU;CAAK,EAC5C;AAED,QAAO;EACL;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACD;AACF;AAiBD,MAAa,0BAA0B,CAA4B,EACjE,UACA,UACA,OACA,WACA,GAAG,MAC6B,KAAK;CACrC,MAAM,EACJ,MACA,UAAU,cACV,aACA,UAAU,cACV,UACA,OAAO,eACR,GAAG,4BAA4B;CAChC,MAAM,EAAE,OAAO,UAAU,GAAG,cAAc,EAAE,UAAU,YAAY,SAAU,EAAC;CAC7E,MAAM,UAAU,UAAU;CAC1B,MAAM,gBAAgB,YAAY;CAClC,MAAM,gBAAgB,YAAY;CAClC,MAAM,gBAAgB,iBAAiB;CAEvC,MAAM,WAAW,YACf,CAACC,OAAsC;AACrC,WAAS,GAAG,OAAO,MAAM;CAC1B,GACD,CAAC,QAAS,EACX;CAED,MAAMC,gBAAqC,YACzC,CAAC,WAAW;EACV,iBAAiB,SAAS,cAAc;EACxC,iBAAiB,SAAS,cAAc;EACxC,gBAAgB,SAAS,QAAQ;EACjC,iBAAiB,SAAS,cAAc;EACxC,cAAc,MAAM,UAAU;EAC9B,oBAAoB;EACpB,iBAAiB,SAAS,cAAc;EACxC,sBAAsB,SAAS,aAAa;EAC5C,sBAAsB,SAAS,aAAa;EAC5C,GAAG;EACH,GAAG;CACJ,IACD;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACD,EACF;CAED,MAAMC,gBAAqC,YACzC,CAAC,EAAE,IAAK,GAAG,OAAO,GAAG,CAAE,OAAM;EAC3B,MAAM;EACN;EACA,OAAO,yBAAyB;EAChC,iBAAiB,SAAS,cAAc;EACxC,iBAAiB,SAAS,cAAc;EACxC,gBAAgB,SAAS,QAAQ;EACjC,iBAAiB,SAAS,cAAc;EACxC,oBAAoB;EACpB,iBAAiB,SAAS,cAAc;EACxC;EACA,UAAU,iBAAiB;EAC3B,UAAU;EACV,UAAU,uBAA0B;EACpC;EACA,GAAG;EACH,GAAG;EACH,KAAK,UAAU,UAAU,IAAI;EAC7B,UAAU,WAAW,MAAM,UAAU,YAAY,UAAU,SAAS;CACrE,IACD;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACD,EACF;AAED,QAAO;EACL;EACA;CACD;AACF"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
import {
|
|
4
|
+
import { replaceObject } from "../../utils/common/object.js";
|
|
5
5
|
import { createComponent } from "../../core/components/create-component.js";
|
|
6
6
|
import { Grid } from "../grid/grid.js";
|
|
7
7
|
import { simpleGridStyle } from "./simple-grid.style.js";
|
|
@@ -16,10 +16,10 @@ const { PropsContext: SimpleGridPropsContext, usePropsContext: useSimpleGridProp
|
|
|
16
16
|
*/
|
|
17
17
|
const SimpleGrid = withContext(Grid)(void 0, ({ columns, minChildWidth,...rest }) => {
|
|
18
18
|
const templateColumns = useMemo(() => {
|
|
19
|
-
if (minChildWidth) return
|
|
19
|
+
if (minChildWidth) return replaceObject(minChildWidth, (value) => {
|
|
20
20
|
return value != null ? `repeat(auto-fit, minmax({sizes.${value}, ${value}}, 1fr))` : void 0;
|
|
21
21
|
});
|
|
22
|
-
else return
|
|
22
|
+
else return replaceObject(columns, (value) => value != null ? `repeat(${value}, minmax(0, 1fr))` : void 0);
|
|
23
23
|
}, [minChildWidth, columns]);
|
|
24
24
|
return {
|
|
25
25
|
templateColumns,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"simple-grid.js","names":[],"sources":["../../../../src/components/simple-grid/simple-grid.tsx"],"sourcesContent":["\"use client\"\n\nimport type {\n CSSProps,\n StyleValue,\n ThemeProps,\n WithoutThemeProps,\n} from \"../../core\"\nimport type { GridProps } from \"../grid\"\nimport type { SimpleGridStyle } from \"./simple-grid.style\"\nimport { useMemo } from \"react\"\nimport { createComponent } from \"../../core\"\nimport { replaceObject } from \"../../utils\"\nimport { Grid } from \"../grid\"\nimport { simpleGridStyle } from \"./simple-grid.style\"\n\nexport interface SimpleGridProps\n extends Omit<WithoutThemeProps<GridProps, SimpleGridStyle>, \"columns\">,\n ThemeProps<SimpleGridStyle> {\n /**\n * The number of columns.\n */\n columns?: StyleValue<number>\n /**\n * The width at which child elements will break into columns.\n * Pass a number for pixel values or a string for any other valid CSS length.\n */\n minChildWidth?: CSSProps[\"minWidth\"]\n}\n\nexport const {\n PropsContext: SimpleGridPropsContext,\n usePropsContext: useSimpleGridPropsContext,\n withContext,\n} = createComponent<SimpleGridProps, SimpleGridStyle>(\n \"simple-grid\",\n simpleGridStyle,\n)\n\n/**\n * `SimpleGrid` is a component that makes `Grid` simpler and more user-friendly.\n *\n * @see https://yamada-ui.com/components/simple-grid\n */\nexport const SimpleGrid = withContext(Grid)(\n undefined,\n ({ columns, minChildWidth, ...rest }) => {\n const templateColumns = useMemo(() => {\n if (minChildWidth) {\n return replaceObject(minChildWidth, (value) => {\n return value != null\n ? `repeat(auto-fit, minmax({sizes.${value}, ${value}}, 1fr))`\n : undefined\n })\n } else {\n return replaceObject(columns, (value) =>\n value != null ? `repeat(${value}, minmax(0, 1fr))` : undefined,\n )\n }\n }, [minChildWidth, columns])\n\n return { templateColumns, ...rest }\n },\n)\n"],"mappings":";;;;;;;;;;AA8BA,MAAa,EACX,cAAc,wBACd,iBAAiB,2BACjB,aACD,GAAG,gBACF,eACA,gBACD;;;;;;AAOD,MAAa,aAAa,YAAY,KAAK,SAEzC,CAAC,EAAE,SAAS,cAAe,GAAG,MAAM,KAAK;CACvC,MAAM,kBAAkB,QAAQ,MAAM;AACpC,MAAI,cACF,QAAO,
|
|
1
|
+
{"version":3,"file":"simple-grid.js","names":[],"sources":["../../../../src/components/simple-grid/simple-grid.tsx"],"sourcesContent":["\"use client\"\n\nimport type {\n CSSProps,\n StyleValue,\n ThemeProps,\n WithoutThemeProps,\n} from \"../../core\"\nimport type { GridProps } from \"../grid\"\nimport type { SimpleGridStyle } from \"./simple-grid.style\"\nimport { useMemo } from \"react\"\nimport { createComponent } from \"../../core\"\nimport { replaceObject } from \"../../utils\"\nimport { Grid } from \"../grid\"\nimport { simpleGridStyle } from \"./simple-grid.style\"\n\nexport interface SimpleGridProps\n extends Omit<WithoutThemeProps<GridProps, SimpleGridStyle>, \"columns\">,\n ThemeProps<SimpleGridStyle> {\n /**\n * The number of columns.\n */\n columns?: StyleValue<number>\n /**\n * The width at which child elements will break into columns.\n * Pass a number for pixel values or a string for any other valid CSS length.\n */\n minChildWidth?: CSSProps[\"minWidth\"]\n}\n\nexport const {\n PropsContext: SimpleGridPropsContext,\n usePropsContext: useSimpleGridPropsContext,\n withContext,\n} = createComponent<SimpleGridProps, SimpleGridStyle>(\n \"simple-grid\",\n simpleGridStyle,\n)\n\n/**\n * `SimpleGrid` is a component that makes `Grid` simpler and more user-friendly.\n *\n * @see https://yamada-ui.com/components/simple-grid\n */\nexport const SimpleGrid = withContext(Grid)(\n undefined,\n ({ columns, minChildWidth, ...rest }) => {\n const templateColumns = useMemo(() => {\n if (minChildWidth) {\n return replaceObject(minChildWidth, (value) => {\n return value != null\n ? `repeat(auto-fit, minmax({sizes.${value}, ${value}}, 1fr))`\n : undefined\n })\n } else {\n return replaceObject(columns, (value) =>\n value != null ? `repeat(${value}, minmax(0, 1fr))` : undefined,\n )\n }\n }, [minChildWidth, columns])\n\n return { templateColumns, ...rest }\n },\n)\n"],"mappings":";;;;;;;;;;AA8BA,MAAa,EACX,cAAc,wBACd,iBAAiB,2BACjB,aACD,GAAG,gBACF,eACA,gBACD;;;;;;AAOD,MAAa,aAAa,YAAY,KAAK,SAEzC,CAAC,EAAE,SAAS,cAAe,GAAG,MAAM,KAAK;CACvC,MAAM,kBAAkB,QAAQ,MAAM;AACpC,MAAI,cACF,QAAO,cAAc,eAAe,CAAC,UAAU;AAC7C,UAAO,SAAS,QACX,iCAAiC,MAAM,IAAI,MAAM;EAEvD,EAAC;MAEF,QAAO,cAAc,SAAS,CAAC,UAC7B,SAAS,QAAQ,SAAS,MAAM,4BACjC;CAEJ,GAAE,CAAC,eAAe,OAAQ,EAAC;AAE5B,QAAO;EAAE;EAAiB,GAAG;CAAM;AACpC,EACF"}
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
import { getValidChildren } from "../../utils/children.js";
|
|
5
|
-
import {
|
|
5
|
+
import { isNumber } from "../../utils/common/assertion.js";
|
|
6
|
+
import { dataAttr } from "../../utils/common/dom.js";
|
|
6
7
|
import { varAttr } from "../../core/system/var.js";
|
|
7
8
|
import { createComponent } from "../../core/components/create-component.js";
|
|
8
9
|
import { skeletonStyle } from "./skeleton.style.js";
|
|
@@ -21,11 +22,11 @@ const Skeleton = withContext("div", { transferProps: ["loading"] })(void 0, ({ c
|
|
|
21
22
|
fitContent ??= hasChildren;
|
|
22
23
|
return {
|
|
23
24
|
"aria-busy": loading,
|
|
24
|
-
"data-loaded":
|
|
25
|
-
"data-loading":
|
|
26
|
-
"--duration":
|
|
25
|
+
"data-loaded": dataAttr(!loading),
|
|
26
|
+
"data-loading": dataAttr(loading),
|
|
27
|
+
"--duration": isNumber(duration) ? `${duration}s` : duration,
|
|
27
28
|
"--end-color": varAttr(endColor, "colors"),
|
|
28
|
-
"--fade-duration":
|
|
29
|
+
"--fade-duration": isNumber(fadeDuration) ? `${fadeDuration}s` : fadeDuration,
|
|
29
30
|
"--height": fitContent ? "fit-content" : void 0,
|
|
30
31
|
"--start-color": varAttr(startColor, "colors"),
|
|
31
32
|
"--width": fitContent ? "fit-content" : void 0,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skeleton.js","names":[],"sources":["../../../../src/components/skeleton/skeleton.tsx"],"sourcesContent":["\"use client\"\n\nimport type { CSSProps, HTMLStyledProps, ThemeProps } from \"../../core\"\nimport type { SkeletonStyle } from \"./skeleton.style\"\nimport { useMemo } from \"react\"\nimport { createComponent, varAttr } from \"../../core\"\nimport { dataAttr, getValidChildren, isNumber } from \"../../utils\"\nimport { skeletonStyle } from \"./skeleton.style\"\n\nexport interface SkeletonProps\n extends HTMLStyledProps,\n ThemeProps<SkeletonStyle> {\n /**\n * The animation duration in seconds.\n */\n duration?: number | string\n /**\n * The color at the animation end.\n */\n endColor?: CSSProps[\"color\"]\n /**\n * The fade in duration in seconds. Requires `loaded` toggled to `true` in order to see the transition.\n */\n fadeDuration?: number | string\n /**\n * If `true`, the skeleton will take the width of it's children.\n *\n * @default false\n */\n fitContent?: boolean\n /**\n * The color at the animation start.\n */\n startColor?: CSSProps[\"color\"]\n}\n\nexport const {\n PropsContext: SkeletonPropsContext,\n usePropsContext: useSkeletonPropsContext,\n withContext,\n} = createComponent<SkeletonProps, SkeletonStyle>(\"skeleton\", skeletonStyle)\n\n/**\n * `Skeleton` is a component that acts as a placeholder until content is loaded.\n *\n * @see https://yamada-ui.com/components/skeleton\n */\nexport const Skeleton = withContext(\"div\", { transferProps: [\"loading\"] })(\n undefined,\n ({\n children,\n duration,\n endColor,\n fadeDuration,\n fitContent,\n loading,\n startColor,\n ...rest\n }) => {\n const validChildren = useMemo(() => getValidChildren(children), [children])\n const hasChildren = !!validChildren.length\n\n fitContent ??= hasChildren\n\n return {\n \"aria-busy\": loading,\n \"data-loaded\": dataAttr(!loading),\n \"data-loading\": dataAttr(loading),\n \"--duration\": isNumber(duration) ? `${duration}s` : duration,\n \"--end-color\": varAttr(endColor, \"colors\"),\n \"--fade-duration\": isNumber(fadeDuration)\n ? `${fadeDuration}s`\n : fadeDuration,\n \"--height\": fitContent ? \"fit-content\" : undefined,\n \"--start-color\": varAttr(startColor, \"colors\"),\n \"--width\": fitContent ? \"fit-content\" : undefined,\n children,\n ...rest,\n }\n },\n)\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"skeleton.js","names":[],"sources":["../../../../src/components/skeleton/skeleton.tsx"],"sourcesContent":["\"use client\"\n\nimport type { CSSProps, HTMLStyledProps, ThemeProps } from \"../../core\"\nimport type { SkeletonStyle } from \"./skeleton.style\"\nimport { useMemo } from \"react\"\nimport { createComponent, varAttr } from \"../../core\"\nimport { dataAttr, getValidChildren, isNumber } from \"../../utils\"\nimport { skeletonStyle } from \"./skeleton.style\"\n\nexport interface SkeletonProps\n extends HTMLStyledProps,\n ThemeProps<SkeletonStyle> {\n /**\n * The animation duration in seconds.\n */\n duration?: number | string\n /**\n * The color at the animation end.\n */\n endColor?: CSSProps[\"color\"]\n /**\n * The fade in duration in seconds. Requires `loaded` toggled to `true` in order to see the transition.\n */\n fadeDuration?: number | string\n /**\n * If `true`, the skeleton will take the width of it's children.\n *\n * @default false\n */\n fitContent?: boolean\n /**\n * The color at the animation start.\n */\n startColor?: CSSProps[\"color\"]\n}\n\nexport const {\n PropsContext: SkeletonPropsContext,\n usePropsContext: useSkeletonPropsContext,\n withContext,\n} = createComponent<SkeletonProps, SkeletonStyle>(\"skeleton\", skeletonStyle)\n\n/**\n * `Skeleton` is a component that acts as a placeholder until content is loaded.\n *\n * @see https://yamada-ui.com/components/skeleton\n */\nexport const Skeleton = withContext(\"div\", { transferProps: [\"loading\"] })(\n undefined,\n ({\n children,\n duration,\n endColor,\n fadeDuration,\n fitContent,\n loading,\n startColor,\n ...rest\n }) => {\n const validChildren = useMemo(() => getValidChildren(children), [children])\n const hasChildren = !!validChildren.length\n\n fitContent ??= hasChildren\n\n return {\n \"aria-busy\": loading,\n \"data-loaded\": dataAttr(!loading),\n \"data-loading\": dataAttr(loading),\n \"--duration\": isNumber(duration) ? `${duration}s` : duration,\n \"--end-color\": varAttr(endColor, \"colors\"),\n \"--fade-duration\": isNumber(fadeDuration)\n ? `${fadeDuration}s`\n : fadeDuration,\n \"--height\": fitContent ? \"fit-content\" : undefined,\n \"--start-color\": varAttr(startColor, \"colors\"),\n \"--width\": fitContent ? \"fit-content\" : undefined,\n children,\n ...rest,\n }\n },\n)\n"],"mappings":";;;;;;;;;;;;AAoCA,MAAa,EACX,cAAc,sBACd,iBAAiB,yBACjB,aACD,GAAG,gBAA8C,YAAY,cAAc;;;;;;AAO5E,MAAa,WAAW,YAAY,OAAO,EAAE,eAAe,CAAC,SAAU,EAAE,EAAC,SAExE,CAAC,EACC,UACA,UACA,UACA,cACA,YACA,SACA,WACA,GAAG,MACJ,KAAK;CACJ,MAAM,gBAAgB,QAAQ,MAAM,iBAAiB,SAAS,EAAE,CAAC,QAAS,EAAC;CAC3E,MAAM,gBAAgB,cAAc;AAEpC,gBAAe;AAEf,QAAO;EACL,aAAa;EACb,eAAe,UAAU,QAAQ;EACjC,gBAAgB,SAAS,QAAQ;EACjC,cAAc,SAAS,SAAS,MAAM,SAAS,KAAK;EACpD,eAAe,QAAQ,UAAU,SAAS;EAC1C,mBAAmB,SAAS,aAAa,MAClC,aAAa,KAChB;EACJ,YAAY,aAAa;EACzB,iBAAiB,QAAQ,YAAY,SAAS;EAC9C,WAAW,aAAa;EACxB;EACA,GAAG;CACJ;AACF,EACF"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
import { getValidChildren } from "../../utils/children.js";
|
|
5
|
-
import {
|
|
5
|
+
import { replaceObject } from "../../utils/common/object.js";
|
|
6
6
|
import { styled } from "../../core/system/factory.js";
|
|
7
7
|
import { createComponent } from "../../core/components/create-component.js";
|
|
8
8
|
import { stackStyle } from "./stack.style.js";
|
|
@@ -22,9 +22,9 @@ const Stack = withContext(({ align: alignItems, children, direction: flexDirecti
|
|
|
22
22
|
const cloneChildren = useMemo(() => separator ? validChildren.map((child, index) => {
|
|
23
23
|
const key = typeof child.key !== "undefined" ? child.key : index;
|
|
24
24
|
const cloneSeparator = cloneElement(separator, {
|
|
25
|
-
borderWidth:
|
|
26
|
-
h:
|
|
27
|
-
w:
|
|
25
|
+
borderWidth: replaceObject(flexDirection, (value) => isColumn(value) ? "0 0 1px 0" : "0 0 0 1px"),
|
|
26
|
+
h: replaceObject(flexDirection, (value) => isColumn(value) ? "fit-content" : "100%"),
|
|
27
|
+
w: replaceObject(flexDirection, (value) => isColumn(value) ? "100%" : "fit-content")
|
|
28
28
|
});
|
|
29
29
|
return /* @__PURE__ */ jsxs(Fragment, { children: [!!index ? cloneSeparator : null, child] }, key);
|
|
30
30
|
}) : validChildren, [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stack.js","names":["value: any"],"sources":["../../../../src/components/stack/stack.tsx"],"sourcesContent":["\"use client\"\n\nimport type { ReactElement } from \"react\"\nimport type { CSSProps, HTMLStyledProps } from \"../../core\"\nimport type { StackStyle } from \"./stack.style\"\nimport { cloneElement, Fragment, useMemo } from \"react\"\nimport { createComponent, styled } from \"../../core\"\nimport { getValidChildren, replaceObject } from \"../../utils\"\nimport { stackStyle } from \"./stack.style\"\n\nexport interface StackProps extends Omit<HTMLStyledProps, \"direction\"> {\n /**\n * The CSS `align-items` property.\n */\n align?: CSSProps[\"alignItems\"]\n /**\n * The CSS `flex-direction` property.\n */\n direction?: CSSProps[\"flexDirection\"]\n /**\n * The CSS `justify-content` property.\n */\n justify?: CSSProps[\"justifyContent\"]\n /**\n * If `true`, each stack item will show a separator.\n */\n separator?: ReactElement\n /**\n * The CSS `flex-wrap` property.\n */\n wrap?: CSSProps[\"flexWrap\"]\n}\n\nexport const {\n PropsContext: StackPropsContext,\n usePropsContext: useStackPropsContext,\n withContext,\n} = createComponent<StackProps, StackStyle>(\"stack\", stackStyle)\n\n/**\n * `Stack` is a component that groups elements and provides space between child elements.\n *\n * @see https://yamada-ui.com/components/stack\n */\nexport const Stack = withContext(\n ({\n align: alignItems,\n children,\n direction: flexDirection = \"column\",\n justify: justifyContent,\n separator,\n wrap: flexWrap,\n ...rest\n }) => {\n const isColumn = (value: any) =>\n value === \"column\" || value === \"column-reverse\"\n\n const validChildren = getValidChildren(children)\n\n const cloneChildren = useMemo(\n () =>\n separator\n ? validChildren.map((child, index) => {\n const key = typeof child.key !== \"undefined\" ? child.key : index\n\n const cloneSeparator = cloneElement<any>(separator, {\n borderWidth: replaceObject(flexDirection, (value) =>\n isColumn(value) ? \"0 0 1px 0\" : \"0 0 0 1px\",\n ),\n h: replaceObject(flexDirection, (value) =>\n isColumn(value) ? \"fit-content\" : \"100%\",\n ),\n w: replaceObject(flexDirection, (value) =>\n isColumn(value) ? \"100%\" : \"fit-content\",\n ),\n })\n\n return (\n <Fragment key={key}>\n {!!index ? cloneSeparator : null}\n {child}\n </Fragment>\n )\n })\n : validChildren,\n [separator, flexDirection, validChildren],\n )\n\n return (\n <styled.div\n alignItems={alignItems}\n flexDirection={flexDirection}\n flexWrap={flexWrap}\n justifyContent={justifyContent}\n {...rest}\n >\n {cloneChildren}\n </styled.div>\n )\n },\n)()\n"],"mappings":";;;;;;;;;;;;AAiCA,MAAa,EACX,cAAc,mBACd,iBAAiB,sBACjB,aACD,GAAG,gBAAwC,SAAS,WAAW;;;;;;AAOhE,MAAa,QAAQ,YACnB,CAAC,EACC,OAAO,YACP,UACA,WAAW,gBAAgB,UAC3B,SAAS,gBACT,WACA,MAAM,SACN,GAAG,MACJ,KAAK;CACJ,MAAM,WAAW,CAACA,UAChB,UAAU,YAAY,UAAU;CAElC,MAAM,gBAAgB,iBAAiB,SAAS;CAEhD,MAAM,gBAAgB,QACpB,MACE,YACI,cAAc,IAAI,CAAC,OAAO,UAAU;EAClC,MAAM,aAAa,MAAM,QAAQ,cAAc,MAAM,MAAM;EAE3D,MAAM,iBAAiB,aAAkB,WAAW;GAClD,aAAa,
|
|
1
|
+
{"version":3,"file":"stack.js","names":["value: any"],"sources":["../../../../src/components/stack/stack.tsx"],"sourcesContent":["\"use client\"\n\nimport type { ReactElement } from \"react\"\nimport type { CSSProps, HTMLStyledProps } from \"../../core\"\nimport type { StackStyle } from \"./stack.style\"\nimport { cloneElement, Fragment, useMemo } from \"react\"\nimport { createComponent, styled } from \"../../core\"\nimport { getValidChildren, replaceObject } from \"../../utils\"\nimport { stackStyle } from \"./stack.style\"\n\nexport interface StackProps extends Omit<HTMLStyledProps, \"direction\"> {\n /**\n * The CSS `align-items` property.\n */\n align?: CSSProps[\"alignItems\"]\n /**\n * The CSS `flex-direction` property.\n */\n direction?: CSSProps[\"flexDirection\"]\n /**\n * The CSS `justify-content` property.\n */\n justify?: CSSProps[\"justifyContent\"]\n /**\n * If `true`, each stack item will show a separator.\n */\n separator?: ReactElement\n /**\n * The CSS `flex-wrap` property.\n */\n wrap?: CSSProps[\"flexWrap\"]\n}\n\nexport const {\n PropsContext: StackPropsContext,\n usePropsContext: useStackPropsContext,\n withContext,\n} = createComponent<StackProps, StackStyle>(\"stack\", stackStyle)\n\n/**\n * `Stack` is a component that groups elements and provides space between child elements.\n *\n * @see https://yamada-ui.com/components/stack\n */\nexport const Stack = withContext(\n ({\n align: alignItems,\n children,\n direction: flexDirection = \"column\",\n justify: justifyContent,\n separator,\n wrap: flexWrap,\n ...rest\n }) => {\n const isColumn = (value: any) =>\n value === \"column\" || value === \"column-reverse\"\n\n const validChildren = getValidChildren(children)\n\n const cloneChildren = useMemo(\n () =>\n separator\n ? validChildren.map((child, index) => {\n const key = typeof child.key !== \"undefined\" ? child.key : index\n\n const cloneSeparator = cloneElement<any>(separator, {\n borderWidth: replaceObject(flexDirection, (value) =>\n isColumn(value) ? \"0 0 1px 0\" : \"0 0 0 1px\",\n ),\n h: replaceObject(flexDirection, (value) =>\n isColumn(value) ? \"fit-content\" : \"100%\",\n ),\n w: replaceObject(flexDirection, (value) =>\n isColumn(value) ? \"100%\" : \"fit-content\",\n ),\n })\n\n return (\n <Fragment key={key}>\n {!!index ? cloneSeparator : null}\n {child}\n </Fragment>\n )\n })\n : validChildren,\n [separator, flexDirection, validChildren],\n )\n\n return (\n <styled.div\n alignItems={alignItems}\n flexDirection={flexDirection}\n flexWrap={flexWrap}\n justifyContent={justifyContent}\n {...rest}\n >\n {cloneChildren}\n </styled.div>\n )\n },\n)()\n"],"mappings":";;;;;;;;;;;;AAiCA,MAAa,EACX,cAAc,mBACd,iBAAiB,sBACjB,aACD,GAAG,gBAAwC,SAAS,WAAW;;;;;;AAOhE,MAAa,QAAQ,YACnB,CAAC,EACC,OAAO,YACP,UACA,WAAW,gBAAgB,UAC3B,SAAS,gBACT,WACA,MAAM,SACN,GAAG,MACJ,KAAK;CACJ,MAAM,WAAW,CAACA,UAChB,UAAU,YAAY,UAAU;CAElC,MAAM,gBAAgB,iBAAiB,SAAS;CAEhD,MAAM,gBAAgB,QACpB,MACE,YACI,cAAc,IAAI,CAAC,OAAO,UAAU;EAClC,MAAM,aAAa,MAAM,QAAQ,cAAc,MAAM,MAAM;EAE3D,MAAM,iBAAiB,aAAkB,WAAW;GAClD,aAAa,cAAc,eAAe,CAAC,UACzC,SAAS,MAAM,GAAG,cAAc,YACjC;GACD,GAAG,cAAc,eAAe,CAAC,UAC/B,SAAS,MAAM,GAAG,gBAAgB,OACnC;GACD,GAAG,cAAc,eAAe,CAAC,UAC/B,SAAS,MAAM,GAAG,SAAS,cAC5B;EACF,EAAC;AAEF,yBACE,KAAC,yBACI,QAAQ,iBAAiB,MAC3B,UAFY,IAGJ;CAEd,EAAC,GACF,eACN;EAAC;EAAW;EAAe;CAAc,EAC1C;AAED,wBACE,IAAC,OAAO;EACM;EACG;EACL;EACM;EAChB,GAAI;YAEH;GACU;AAEhB,EACF,EAAE"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
import { findChild, getValidChildren, omitChildren } from "../../utils/children.js";
|
|
5
|
-
import {
|
|
5
|
+
import { isEmpty } from "../../utils/common/assertion.js";
|
|
6
6
|
import { styled } from "../../core/system/factory.js";
|
|
7
7
|
import { createSlotComponent } from "../../core/components/create-component.js";
|
|
8
8
|
import { TriangleIcon } from "../icon/icons/triangle-icon.js";
|
|
@@ -22,7 +22,7 @@ const StatRoot = withProvider(({ children, helperMessage, icon, label, value, he
|
|
|
22
22
|
const customStatLabel = findChild(validChildren, StatLabel);
|
|
23
23
|
const customStatValue = findChild(validChildren, StatValue);
|
|
24
24
|
const customStatHelperMessage = findChild(validChildren, StatHelperMessage);
|
|
25
|
-
const cloneChildren = !
|
|
25
|
+
const cloneChildren = !isEmpty(validChildren) ? omitChildren(validChildren, StatLabel, StatValue, StatHelperMessage) : children;
|
|
26
26
|
return /* @__PURE__ */ jsxs(styled.dl, {
|
|
27
27
|
...rest,
|
|
28
28
|
children: [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stat.js","names":[],"sources":["../../../../src/components/stat/stat.tsx"],"sourcesContent":["\"use client\"\n\nimport type { ReactNode } from \"react\"\nimport type { HTMLStyledProps, ThemeProps } from \"../../core\"\nimport type { StatStyle } from \"./stat.style\"\nimport { createSlotComponent, styled } from \"../../core\"\nimport { useI18n } from \"../../providers/i18n-provider\"\nimport { findChild, getValidChildren, isEmpty, omitChildren } from \"../../utils\"\nimport { TriangleIcon } from \"../icon\"\nimport { statStyle } from \"./stat.style\"\n\nexport interface StatRootProps\n extends HTMLStyledProps<\"dl\">,\n ThemeProps<StatStyle> {\n /**\n * If `true`, container will center its children regardless of their width.\n *\n * @default false\n */\n centerContent?: boolean\n /**\n * The stat helper message to use.\n */\n helperMessage?: ReactNode\n /**\n * The stat icon to use.\n */\n icon?: StatIconProps[\"type\"]\n /**\n * The stat label to use.\n */\n label?: ReactNode\n /**\n * The stat value to use.\n */\n value?: ReactNode\n /**\n * Props for stat helper message component.\n */\n helperMessageProps?: StatHelperMessageProps\n /**\n * Props for stat icon component.\n */\n iconProps?: Omit<StatIconProps, \"type\">\n /**\n * Props for stat label component.\n */\n labelProps?: StatLabelProps\n /**\n * Props for stat value component.\n */\n valueProps?: StatValueProps\n}\n\nexport const {\n PropsContext: StatPropsContext,\n usePropsContext: useStatPropsContext,\n withContext,\n withProvider,\n} = createSlotComponent<StatRootProps, StatStyle>(\"stat\", statStyle)\n\n/**\n * `Stat` is used to show numbers and data in a box.\n *\n * @see https://yamada-ui.com/components/stat\n */\nexport const StatRoot = withProvider<\"dl\", StatRootProps>(\n ({\n children,\n helperMessage,\n icon,\n label,\n value,\n helperMessageProps,\n iconProps,\n labelProps,\n valueProps,\n ...rest\n }) => {\n const validChildren = getValidChildren(children)\n const customStatLabel = findChild(validChildren, StatLabel)\n const customStatValue = findChild(validChildren, StatValue)\n const customStatHelperMessage = findChild(validChildren, StatHelperMessage)\n const cloneChildren = !isEmpty(validChildren)\n ? omitChildren(validChildren, StatLabel, StatValue, StatHelperMessage)\n : children\n\n return (\n <styled.dl {...rest}>\n {customStatLabel ?? <StatLabel {...labelProps}>{label}</StatLabel>}\n {customStatValue ?? <StatValue {...valueProps}>{value}</StatValue>}\n {customStatHelperMessage ?? (\n <StatHelperMessage {...helperMessageProps}>\n {icon ? <StatIcon type={icon} {...iconProps} /> : null}\n {helperMessage}\n </StatHelperMessage>\n )}\n {cloneChildren}\n </styled.dl>\n )\n },\n \"root\",\n)()\n\nexport interface StatIconProps extends HTMLStyledProps<\"svg\"> {\n /**\n * The type of the icon.\n *\n * @default \"increase\"\n */\n type?: \"decrease\" | \"increase\"\n}\n\nexport const StatIcon = withContext<\"svg\", StatIconProps>(\n ({ type = \"increase\", ...rest }) => {\n const { t } = useI18n(\"stat\")\n\n return (\n <TriangleIcon\n aria-label={type === \"increase\" ? t(\"Increased by\") : t(\"Decreased by\")}\n data-type={type}\n {...rest}\n />\n )\n },\n \"icon\",\n)()\n\nexport interface StatLabelProps extends HTMLStyledProps<\"dt\"> {}\n\nexport const StatLabel = withContext<\"dt\", StatLabelProps>(\"dt\", \"label\")()\n\nexport interface StatValueProps extends HTMLStyledProps<\"dd\"> {}\n\nexport const StatValue = withContext<\"dd\", StatValueProps>(\"dd\", \"value\")()\n\nexport interface StatUnitProps extends HTMLStyledProps<\"span\"> {}\n\nexport const StatUnit = withContext<\"span\", StatUnitProps>(\"span\", \"unit\")()\n\nexport interface StatHelperMessageProps extends HTMLStyledProps<\"dd\"> {}\n\nexport const StatHelperMessage = withContext<\"dd\", StatHelperMessageProps>(\n \"dd\",\n \"helperMessage\",\n)()\n"],"mappings":";;;;;;;;;;;;;AAsDA,MAAa,EACX,cAAc,kBACd,iBAAiB,qBACjB,aACA,cACD,GAAG,oBAA8C,QAAQ,UAAU;;;;;;AAOpE,MAAa,WAAW,aACtB,CAAC,EACC,UACA,eACA,MACA,OACA,OACA,oBACA,WACA,YACA,WACA,GAAG,MACJ,KAAK;CACJ,MAAM,gBAAgB,iBAAiB,SAAS;CAChD,MAAM,kBAAkB,UAAU,eAAe,UAAU;CAC3D,MAAM,kBAAkB,UAAU,eAAe,UAAU;CAC3D,MAAM,0BAA0B,UAAU,eAAe,kBAAkB;CAC3E,MAAM,iBAAiB,
|
|
1
|
+
{"version":3,"file":"stat.js","names":[],"sources":["../../../../src/components/stat/stat.tsx"],"sourcesContent":["\"use client\"\n\nimport type { ReactNode } from \"react\"\nimport type { HTMLStyledProps, ThemeProps } from \"../../core\"\nimport type { StatStyle } from \"./stat.style\"\nimport { createSlotComponent, styled } from \"../../core\"\nimport { useI18n } from \"../../providers/i18n-provider\"\nimport { findChild, getValidChildren, isEmpty, omitChildren } from \"../../utils\"\nimport { TriangleIcon } from \"../icon\"\nimport { statStyle } from \"./stat.style\"\n\nexport interface StatRootProps\n extends HTMLStyledProps<\"dl\">,\n ThemeProps<StatStyle> {\n /**\n * If `true`, container will center its children regardless of their width.\n *\n * @default false\n */\n centerContent?: boolean\n /**\n * The stat helper message to use.\n */\n helperMessage?: ReactNode\n /**\n * The stat icon to use.\n */\n icon?: StatIconProps[\"type\"]\n /**\n * The stat label to use.\n */\n label?: ReactNode\n /**\n * The stat value to use.\n */\n value?: ReactNode\n /**\n * Props for stat helper message component.\n */\n helperMessageProps?: StatHelperMessageProps\n /**\n * Props for stat icon component.\n */\n iconProps?: Omit<StatIconProps, \"type\">\n /**\n * Props for stat label component.\n */\n labelProps?: StatLabelProps\n /**\n * Props for stat value component.\n */\n valueProps?: StatValueProps\n}\n\nexport const {\n PropsContext: StatPropsContext,\n usePropsContext: useStatPropsContext,\n withContext,\n withProvider,\n} = createSlotComponent<StatRootProps, StatStyle>(\"stat\", statStyle)\n\n/**\n * `Stat` is used to show numbers and data in a box.\n *\n * @see https://yamada-ui.com/components/stat\n */\nexport const StatRoot = withProvider<\"dl\", StatRootProps>(\n ({\n children,\n helperMessage,\n icon,\n label,\n value,\n helperMessageProps,\n iconProps,\n labelProps,\n valueProps,\n ...rest\n }) => {\n const validChildren = getValidChildren(children)\n const customStatLabel = findChild(validChildren, StatLabel)\n const customStatValue = findChild(validChildren, StatValue)\n const customStatHelperMessage = findChild(validChildren, StatHelperMessage)\n const cloneChildren = !isEmpty(validChildren)\n ? omitChildren(validChildren, StatLabel, StatValue, StatHelperMessage)\n : children\n\n return (\n <styled.dl {...rest}>\n {customStatLabel ?? <StatLabel {...labelProps}>{label}</StatLabel>}\n {customStatValue ?? <StatValue {...valueProps}>{value}</StatValue>}\n {customStatHelperMessage ?? (\n <StatHelperMessage {...helperMessageProps}>\n {icon ? <StatIcon type={icon} {...iconProps} /> : null}\n {helperMessage}\n </StatHelperMessage>\n )}\n {cloneChildren}\n </styled.dl>\n )\n },\n \"root\",\n)()\n\nexport interface StatIconProps extends HTMLStyledProps<\"svg\"> {\n /**\n * The type of the icon.\n *\n * @default \"increase\"\n */\n type?: \"decrease\" | \"increase\"\n}\n\nexport const StatIcon = withContext<\"svg\", StatIconProps>(\n ({ type = \"increase\", ...rest }) => {\n const { t } = useI18n(\"stat\")\n\n return (\n <TriangleIcon\n aria-label={type === \"increase\" ? t(\"Increased by\") : t(\"Decreased by\")}\n data-type={type}\n {...rest}\n />\n )\n },\n \"icon\",\n)()\n\nexport interface StatLabelProps extends HTMLStyledProps<\"dt\"> {}\n\nexport const StatLabel = withContext<\"dt\", StatLabelProps>(\"dt\", \"label\")()\n\nexport interface StatValueProps extends HTMLStyledProps<\"dd\"> {}\n\nexport const StatValue = withContext<\"dd\", StatValueProps>(\"dd\", \"value\")()\n\nexport interface StatUnitProps extends HTMLStyledProps<\"span\"> {}\n\nexport const StatUnit = withContext<\"span\", StatUnitProps>(\"span\", \"unit\")()\n\nexport interface StatHelperMessageProps extends HTMLStyledProps<\"dd\"> {}\n\nexport const StatHelperMessage = withContext<\"dd\", StatHelperMessageProps>(\n \"dd\",\n \"helperMessage\",\n)()\n"],"mappings":";;;;;;;;;;;;;AAsDA,MAAa,EACX,cAAc,kBACd,iBAAiB,qBACjB,aACA,cACD,GAAG,oBAA8C,QAAQ,UAAU;;;;;;AAOpE,MAAa,WAAW,aACtB,CAAC,EACC,UACA,eACA,MACA,OACA,OACA,oBACA,WACA,YACA,WACA,GAAG,MACJ,KAAK;CACJ,MAAM,gBAAgB,iBAAiB,SAAS;CAChD,MAAM,kBAAkB,UAAU,eAAe,UAAU;CAC3D,MAAM,kBAAkB,UAAU,eAAe,UAAU;CAC3D,MAAM,0BAA0B,UAAU,eAAe,kBAAkB;CAC3E,MAAM,iBAAiB,QAAQ,cAAc,GACzC,aAAa,eAAe,WAAW,WAAW,kBAAkB,GACpE;AAEJ,wBACE,KAAC,OAAO;EAAG,GAAI;;GACZ,mCAAmB,IAAC;IAAU,GAAI;cAAa;KAAkB;GACjE,mCAAmB,IAAC;IAAU,GAAI;cAAa;KAAkB;GACjE,2CACC,KAAC;IAAkB,GAAI;eACpB,uBAAO,IAAC;KAAS,MAAM;KAAM,GAAI;MAAa,GAAG,MACjD;KACiB;GAErB;;GACS;AAEf,GACD,OACD,EAAE;AAWH,MAAa,WAAW,YACtB,CAAC,EAAE,OAAO,WAAY,GAAG,MAAM,KAAK;CAClC,MAAM,EAAE,GAAG,GAAG,QAAQ,OAAO;AAE7B,wBACE,IAAC;EACC,cAAY,SAAS,aAAa,EAAE,eAAe,GAAG,EAAE,eAAe;EACvE,aAAW;EACX,GAAI;GACJ;AAEL,GACD,OACD,EAAE;AAIH,MAAa,YAAY,YAAkC,MAAM,QAAQ,EAAE;AAI3E,MAAa,YAAY,YAAkC,MAAM,QAAQ,EAAE;AAI3E,MAAa,WAAW,YAAmC,QAAQ,OAAO,EAAE;AAI5E,MAAa,oBAAoB,YAC/B,MACA,gBACD,EAAE"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
import {
|
|
4
|
+
import { isNull, isUndefined } from "../../utils/common/assertion.js";
|
|
5
5
|
import { styled } from "../../core/system/factory.js";
|
|
6
6
|
import { createSlotComponent } from "../../core/components/create-component.js";
|
|
7
7
|
import { CheckIcon } from "../icon/icons/check-icon.js";
|
|
@@ -171,7 +171,7 @@ const StepsContents = ({ children }) => {
|
|
|
171
171
|
const { items } = useComponentContext();
|
|
172
172
|
return useMemo(() => {
|
|
173
173
|
if (children) return children;
|
|
174
|
-
else return items?.map(({ content, contentProps }, index) =>
|
|
174
|
+
else return items?.map(({ content, contentProps }, index) => isUndefined(content) || isNull(content) ? null : /* @__PURE__ */ jsx(StepsContent, {
|
|
175
175
|
index,
|
|
176
176
|
...contentProps,
|
|
177
177
|
children: content
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"steps.js","names":["rest","StepsContents: FC<StepsContentsProps>"],"sources":["../../../../src/components/steps/steps.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 { StepsStyle } from \"./steps.style\"\nimport type { UseStepsItemProps, UseStepsProps } from \"./use-steps\"\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 { CheckIcon } from \"../icon\"\nimport { stepsStyle } from \"./steps.style\"\nimport {\n StepsContext,\n StepsDescendantsContext,\n StepsItemContext,\n useSteps,\n useStepsContext,\n useStepsItem,\n useStepsItemContext,\n} from \"./use-steps\"\n\ninterface ComponentContext\n extends Pick<StepsRootProps, \"items\" | \"lazy\" | \"lazyBehavior\"> {}\n\ninterface StepsItem\n extends Omit<StepsItemProps, \"content\" | \"title\">,\n Pick<StepsIndicatorProps, \"complete\" | \"current\" | \"incomplete\"> {\n /**\n * The content for step element.\n */\n content?: ReactNode\n /**\n * The description for step element.\n */\n description?: ReactNode\n /**\n * If true, display the step separator.\n *\n * @default true\n */\n hasSeparator?: boolean\n /**\n * The title for step element.\n */\n title?: string\n /**\n * Props for step content element.\n */\n contentProps?: StepsContentProps\n /**\n * Props for step description element.\n */\n descriptionProps?: StepsDescriptionProps\n /**\n * Props for step indicator element.\n */\n indicatorProps?: StepsIndicatorProps\n /**\n * Props for step separator element.\n */\n separatorProps?: StepsSeparatorProps\n /**\n * Props for step title element.\n */\n titleProps?: StepsTitleProps\n}\n\nexport interface StepsRootProps\n extends Omit<HTMLStyledProps, \"onChange\">,\n Omit<UseStepsProps, \"orientation\">,\n Pick<UseLazyMountProps, \"lazy\" | \"lazyBehavior\">,\n ThemeProps<StepsStyle> {\n /**\n * If provided, generate step components based on steps.\n */\n items?: StepsItem[]\n}\n\nexport const {\n ComponentContext,\n PropsContext: StepsPropsContext,\n useComponentContext,\n usePropsContext: useStepsPropsContext,\n withContext,\n withProvider,\n} = createSlotComponent<StepsRootProps, StepsStyle, ComponentContext>(\n \"steps\",\n stepsStyle,\n)\n\n/**\n * `Steps` is a component that displays the progress of a multi-step process.\n *\n * @see https://yamada-ui.com/components/steps\n */\nexport const StepsRoot = withProvider(\n ({\n children,\n items,\n lazy,\n lazyBehavior,\n orientation: orientationProp,\n ...rest\n }) => {\n const computedOrientation = useValue(orientationProp)\n const {\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 } = useSteps({ ...rest, orientation: computedOrientation })\n const componentContext = useMemo(\n () => ({ items, lazy, lazyBehavior }),\n [items, lazy, lazyBehavior],\n )\n const stepsContext = useMemo(\n () => ({\n id,\n count,\n getStatus,\n index,\n orientation,\n setIndex,\n getContentProps,\n getListProps,\n getNextTriggerProps,\n getPrevTriggerProps,\n onNext,\n onPrev,\n }),\n [\n id,\n count,\n index,\n orientation,\n setIndex,\n getStatus,\n onNext,\n onPrev,\n getListProps,\n getNextTriggerProps,\n getPrevTriggerProps,\n getContentProps,\n ],\n )\n\n return (\n <StepsDescendantsContext value={descendants}>\n <StepsContext value={stepsContext}>\n <ComponentContext value={componentContext}>\n <styled.div {...getRootProps()}>{children}</styled.div>\n </ComponentContext>\n </StepsContext>\n </StepsDescendantsContext>\n )\n },\n \"root\",\n { transferProps: [\"orientation\"] },\n)()\n\nexport interface StepsListProps extends HTMLStyledProps<\"ol\"> {}\n\nexport const StepsList = withContext<\"ol\", StepsListProps>(\n ({ children, ...rest }) => {\n const { items } = useComponentContext()\n const { getListProps } = useStepsContext()\n const computedChildren = useMemo(() => {\n if (children) {\n return children\n } else {\n return items?.map(\n (\n {\n complete,\n content: _content,\n current,\n description,\n hasSeparator = true,\n incomplete,\n title,\n contentProps: _contentProps,\n descriptionProps,\n indicatorProps,\n separatorProps,\n titleProps,\n ...rest\n },\n index,\n ) => (\n <StepsItem key={index} title={title} {...rest}>\n <StepsIndicator\n complete={complete}\n current={current}\n incomplete={incomplete}\n {...indicatorProps}\n />\n\n <styled.div>\n {title ? (\n <StepsTitle {...titleProps}>{title}</StepsTitle>\n ) : null}\n {description ? (\n <StepsDescription {...descriptionProps}>\n {description}\n </StepsDescription>\n ) : null}\n </styled.div>\n\n {hasSeparator ? <StepsSeparator {...separatorProps} /> : null}\n </StepsItem>\n ),\n )\n }\n }, [children, items])\n\n return <styled.ol {...getListProps(rest)}>{computedChildren}</styled.ol>\n },\n \"list\",\n)()\n\nexport interface StepsItemProps\n extends HTMLStyledProps<\"li\">,\n UseStepsItemProps {}\n\nexport const StepsItem = withContext<\"li\", StepsItemProps>((props) => {\n const {\n first,\n index,\n last,\n status,\n getDescriptionProps,\n getIndicatorProps,\n getRootProps,\n getSeparatorProps,\n getTitleProps,\n } = useStepsItem(props)\n const context = useMemo(\n () => ({\n first,\n index,\n last,\n status,\n getDescriptionProps,\n getIndicatorProps,\n getSeparatorProps,\n getTitleProps,\n }),\n [\n first,\n index,\n last,\n status,\n getTitleProps,\n getDescriptionProps,\n getSeparatorProps,\n getIndicatorProps,\n ],\n )\n\n return (\n <StepsItemContext value={context}>\n <styled.li {...getRootProps()} />\n </StepsItemContext>\n )\n}, \"item\")()\n\nexport interface StepsIndicatorProps extends HTMLStyledProps {\n /**\n * The element for the complete indicator.\n *\n * @default '<CheckIcon />'\n */\n complete?: ReactNode\n /**\n * The element for the current indicator.\n *\n * @default '<StepsNumber />'\n */\n current?: ReactNode\n /**\n * The element for the incomplete indicator.\n *\n * @default '<StepsNumber />'\n */\n incomplete?: ReactNode\n}\n\nexport const StepsIndicator = withContext<\"div\", StepsIndicatorProps>(\n ({\n complete = <CheckIcon />,\n current = <StepsNumber />,\n incomplete = <StepsNumber />,\n ...rest\n }) => {\n const { status, getIndicatorProps } = useStepsItemContext()\n const components = useMemo(\n () => ({ complete, current, incomplete }),\n [complete, current, incomplete],\n )\n\n return (\n <styled.div {...getIndicatorProps(rest)}>{components[status]}</styled.div>\n )\n },\n \"indicator\",\n)()\n\nexport interface StepsNumberProps extends HTMLStyledProps<\"span\"> {}\n\nexport const StepsNumber = withContext<\"span\", StepsNumberProps>(\n \"span\",\n \"number\",\n)(undefined, ({ children, ...rest }) => {\n const { index } = useStepsItemContext()\n\n return { ...rest, children: children ?? index + 1 }\n})\n\nexport interface StepsTitleProps extends HTMLStyledProps {}\n\nexport const StepsTitle = withContext<\"h3\", StepsTitleProps>(\"h3\", \"title\")(\n undefined,\n (props) => {\n const { getTitleProps } = useStepsItemContext()\n\n return getTitleProps(props)\n },\n)\n\nexport interface StepsDescriptionProps extends HTMLStyledProps<\"p\"> {}\n\nexport const StepsDescription = withContext<\"p\", StepsDescriptionProps>(\n \"p\",\n \"description\",\n)(undefined, (props) => {\n const { getDescriptionProps } = useStepsItemContext()\n\n return getDescriptionProps(props)\n})\n\nexport interface StepsSeparatorProps extends HTMLStyledProps {}\n\nexport const StepsSeparator = withContext<\"div\", StepsSeparatorProps>(\n \"div\",\n \"separator\",\n)(undefined, (props) => {\n const { getSeparatorProps } = useStepsItemContext()\n\n return getSeparatorProps(props)\n})\n\nexport interface StepsContentsProps extends PropsWithChildren {}\n\nexport const StepsContents: FC<StepsContentsProps> = ({ children }) => {\n const { items } = useComponentContext()\n\n return useMemo(() => {\n if (children) {\n return children\n } else {\n return items?.map(({ content, contentProps }, index) =>\n isUndefined(content) || isNull(content) ? null : (\n <StepsContent key={index} index={index} {...contentProps}>\n {content}\n </StepsContent>\n ),\n )\n }\n }, [children, items])\n}\n\nexport interface StepsContentProps extends HTMLStyledProps {\n /**\n * The index of the step content.\n */\n index: number\n}\n\nexport const StepsContent = withContext<\"div\", StepsContentProps>(\n \"div\",\n \"content\",\n)(undefined, ({ index, ...rest }) => {\n const { lazy, lazyBehavior } = useComponentContext()\n const { index: selectedIndex, getContentProps } = useStepsContext()\n const mounted = index === selectedIndex\n const children = useLazyMount({\n lazy,\n lazyBehavior,\n mounted,\n ...rest,\n })\n\n return { ...getContentProps({ index, ...rest }), children }\n})\n\nexport interface StepsCompletedContentProps extends HTMLStyledProps {}\n\nexport const StepsCompletedContent = withContext<\n \"div\",\n StepsCompletedContentProps\n>(\"div\", { name: \"CompletedContent\", slot: [\"content\", \"completed\"] })(\n undefined,\n (props) => {\n const { lazy, lazyBehavior } = useComponentContext()\n const { count, index: selectedIndex, getContentProps } = useStepsContext()\n const mounted = count !== 0 && count === selectedIndex\n const children = useLazyMount({\n lazy,\n lazyBehavior,\n mounted,\n ...props,\n })\n\n return { ...getContentProps(props), children }\n },\n)\n\nexport interface StepsPrevTriggerProps extends HTMLStyledProps<\"button\"> {}\n\nexport const StepsPrevTrigger = withContext<\"button\", StepsPrevTriggerProps>(\n \"button\",\n { name: \"PrevTrigger\", slot: [\"trigger\", \"prev\"] },\n)((props) => {\n const { getPrevTriggerProps } = useStepsContext()\n\n return { asChild: true, ...getPrevTriggerProps(props) }\n})\n\nexport interface StepsNextTriggerProps extends HTMLStyledProps<\"button\"> {}\n\nexport const StepsNextTrigger = withContext<\"button\", StepsNextTriggerProps>(\n \"button\",\n { name: \"NextTrigger\", slot: [\"trigger\", \"next\"] },\n)((props) => {\n const { getNextTriggerProps } = useStepsContext()\n\n return { asChild: true, ...getNextTriggerProps(props) }\n})\n"],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"steps.js","names":["rest","StepsContents: FC<StepsContentsProps>"],"sources":["../../../../src/components/steps/steps.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 { StepsStyle } from \"./steps.style\"\nimport type { UseStepsItemProps, UseStepsProps } from \"./use-steps\"\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 { CheckIcon } from \"../icon\"\nimport { stepsStyle } from \"./steps.style\"\nimport {\n StepsContext,\n StepsDescendantsContext,\n StepsItemContext,\n useSteps,\n useStepsContext,\n useStepsItem,\n useStepsItemContext,\n} from \"./use-steps\"\n\ninterface ComponentContext\n extends Pick<StepsRootProps, \"items\" | \"lazy\" | \"lazyBehavior\"> {}\n\ninterface StepsItem\n extends Omit<StepsItemProps, \"content\" | \"title\">,\n Pick<StepsIndicatorProps, \"complete\" | \"current\" | \"incomplete\"> {\n /**\n * The content for step element.\n */\n content?: ReactNode\n /**\n * The description for step element.\n */\n description?: ReactNode\n /**\n * If true, display the step separator.\n *\n * @default true\n */\n hasSeparator?: boolean\n /**\n * The title for step element.\n */\n title?: string\n /**\n * Props for step content element.\n */\n contentProps?: StepsContentProps\n /**\n * Props for step description element.\n */\n descriptionProps?: StepsDescriptionProps\n /**\n * Props for step indicator element.\n */\n indicatorProps?: StepsIndicatorProps\n /**\n * Props for step separator element.\n */\n separatorProps?: StepsSeparatorProps\n /**\n * Props for step title element.\n */\n titleProps?: StepsTitleProps\n}\n\nexport interface StepsRootProps\n extends Omit<HTMLStyledProps, \"onChange\">,\n Omit<UseStepsProps, \"orientation\">,\n Pick<UseLazyMountProps, \"lazy\" | \"lazyBehavior\">,\n ThemeProps<StepsStyle> {\n /**\n * If provided, generate step components based on steps.\n */\n items?: StepsItem[]\n}\n\nexport const {\n ComponentContext,\n PropsContext: StepsPropsContext,\n useComponentContext,\n usePropsContext: useStepsPropsContext,\n withContext,\n withProvider,\n} = createSlotComponent<StepsRootProps, StepsStyle, ComponentContext>(\n \"steps\",\n stepsStyle,\n)\n\n/**\n * `Steps` is a component that displays the progress of a multi-step process.\n *\n * @see https://yamada-ui.com/components/steps\n */\nexport const StepsRoot = withProvider(\n ({\n children,\n items,\n lazy,\n lazyBehavior,\n orientation: orientationProp,\n ...rest\n }) => {\n const computedOrientation = useValue(orientationProp)\n const {\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 } = useSteps({ ...rest, orientation: computedOrientation })\n const componentContext = useMemo(\n () => ({ items, lazy, lazyBehavior }),\n [items, lazy, lazyBehavior],\n )\n const stepsContext = useMemo(\n () => ({\n id,\n count,\n getStatus,\n index,\n orientation,\n setIndex,\n getContentProps,\n getListProps,\n getNextTriggerProps,\n getPrevTriggerProps,\n onNext,\n onPrev,\n }),\n [\n id,\n count,\n index,\n orientation,\n setIndex,\n getStatus,\n onNext,\n onPrev,\n getListProps,\n getNextTriggerProps,\n getPrevTriggerProps,\n getContentProps,\n ],\n )\n\n return (\n <StepsDescendantsContext value={descendants}>\n <StepsContext value={stepsContext}>\n <ComponentContext value={componentContext}>\n <styled.div {...getRootProps()}>{children}</styled.div>\n </ComponentContext>\n </StepsContext>\n </StepsDescendantsContext>\n )\n },\n \"root\",\n { transferProps: [\"orientation\"] },\n)()\n\nexport interface StepsListProps extends HTMLStyledProps<\"ol\"> {}\n\nexport const StepsList = withContext<\"ol\", StepsListProps>(\n ({ children, ...rest }) => {\n const { items } = useComponentContext()\n const { getListProps } = useStepsContext()\n const computedChildren = useMemo(() => {\n if (children) {\n return children\n } else {\n return items?.map(\n (\n {\n complete,\n content: _content,\n current,\n description,\n hasSeparator = true,\n incomplete,\n title,\n contentProps: _contentProps,\n descriptionProps,\n indicatorProps,\n separatorProps,\n titleProps,\n ...rest\n },\n index,\n ) => (\n <StepsItem key={index} title={title} {...rest}>\n <StepsIndicator\n complete={complete}\n current={current}\n incomplete={incomplete}\n {...indicatorProps}\n />\n\n <styled.div>\n {title ? (\n <StepsTitle {...titleProps}>{title}</StepsTitle>\n ) : null}\n {description ? (\n <StepsDescription {...descriptionProps}>\n {description}\n </StepsDescription>\n ) : null}\n </styled.div>\n\n {hasSeparator ? <StepsSeparator {...separatorProps} /> : null}\n </StepsItem>\n ),\n )\n }\n }, [children, items])\n\n return <styled.ol {...getListProps(rest)}>{computedChildren}</styled.ol>\n },\n \"list\",\n)()\n\nexport interface StepsItemProps\n extends HTMLStyledProps<\"li\">,\n UseStepsItemProps {}\n\nexport const StepsItem = withContext<\"li\", StepsItemProps>((props) => {\n const {\n first,\n index,\n last,\n status,\n getDescriptionProps,\n getIndicatorProps,\n getRootProps,\n getSeparatorProps,\n getTitleProps,\n } = useStepsItem(props)\n const context = useMemo(\n () => ({\n first,\n index,\n last,\n status,\n getDescriptionProps,\n getIndicatorProps,\n getSeparatorProps,\n getTitleProps,\n }),\n [\n first,\n index,\n last,\n status,\n getTitleProps,\n getDescriptionProps,\n getSeparatorProps,\n getIndicatorProps,\n ],\n )\n\n return (\n <StepsItemContext value={context}>\n <styled.li {...getRootProps()} />\n </StepsItemContext>\n )\n}, \"item\")()\n\nexport interface StepsIndicatorProps extends HTMLStyledProps {\n /**\n * The element for the complete indicator.\n *\n * @default '<CheckIcon />'\n */\n complete?: ReactNode\n /**\n * The element for the current indicator.\n *\n * @default '<StepsNumber />'\n */\n current?: ReactNode\n /**\n * The element for the incomplete indicator.\n *\n * @default '<StepsNumber />'\n */\n incomplete?: ReactNode\n}\n\nexport const StepsIndicator = withContext<\"div\", StepsIndicatorProps>(\n ({\n complete = <CheckIcon />,\n current = <StepsNumber />,\n incomplete = <StepsNumber />,\n ...rest\n }) => {\n const { status, getIndicatorProps } = useStepsItemContext()\n const components = useMemo(\n () => ({ complete, current, incomplete }),\n [complete, current, incomplete],\n )\n\n return (\n <styled.div {...getIndicatorProps(rest)}>{components[status]}</styled.div>\n )\n },\n \"indicator\",\n)()\n\nexport interface StepsNumberProps extends HTMLStyledProps<\"span\"> {}\n\nexport const StepsNumber = withContext<\"span\", StepsNumberProps>(\n \"span\",\n \"number\",\n)(undefined, ({ children, ...rest }) => {\n const { index } = useStepsItemContext()\n\n return { ...rest, children: children ?? index + 1 }\n})\n\nexport interface StepsTitleProps extends HTMLStyledProps {}\n\nexport const StepsTitle = withContext<\"h3\", StepsTitleProps>(\"h3\", \"title\")(\n undefined,\n (props) => {\n const { getTitleProps } = useStepsItemContext()\n\n return getTitleProps(props)\n },\n)\n\nexport interface StepsDescriptionProps extends HTMLStyledProps<\"p\"> {}\n\nexport const StepsDescription = withContext<\"p\", StepsDescriptionProps>(\n \"p\",\n \"description\",\n)(undefined, (props) => {\n const { getDescriptionProps } = useStepsItemContext()\n\n return getDescriptionProps(props)\n})\n\nexport interface StepsSeparatorProps extends HTMLStyledProps {}\n\nexport const StepsSeparator = withContext<\"div\", StepsSeparatorProps>(\n \"div\",\n \"separator\",\n)(undefined, (props) => {\n const { getSeparatorProps } = useStepsItemContext()\n\n return getSeparatorProps(props)\n})\n\nexport interface StepsContentsProps extends PropsWithChildren {}\n\nexport const StepsContents: FC<StepsContentsProps> = ({ children }) => {\n const { items } = useComponentContext()\n\n return useMemo(() => {\n if (children) {\n return children\n } else {\n return items?.map(({ content, contentProps }, index) =>\n isUndefined(content) || isNull(content) ? null : (\n <StepsContent key={index} index={index} {...contentProps}>\n {content}\n </StepsContent>\n ),\n )\n }\n }, [children, items])\n}\n\nexport interface StepsContentProps extends HTMLStyledProps {\n /**\n * The index of the step content.\n */\n index: number\n}\n\nexport const StepsContent = withContext<\"div\", StepsContentProps>(\n \"div\",\n \"content\",\n)(undefined, ({ index, ...rest }) => {\n const { lazy, lazyBehavior } = useComponentContext()\n const { index: selectedIndex, getContentProps } = useStepsContext()\n const mounted = index === selectedIndex\n const children = useLazyMount({\n lazy,\n lazyBehavior,\n mounted,\n ...rest,\n })\n\n return { ...getContentProps({ index, ...rest }), children }\n})\n\nexport interface StepsCompletedContentProps extends HTMLStyledProps {}\n\nexport const StepsCompletedContent = withContext<\n \"div\",\n StepsCompletedContentProps\n>(\"div\", { name: \"CompletedContent\", slot: [\"content\", \"completed\"] })(\n undefined,\n (props) => {\n const { lazy, lazyBehavior } = useComponentContext()\n const { count, index: selectedIndex, getContentProps } = useStepsContext()\n const mounted = count !== 0 && count === selectedIndex\n const children = useLazyMount({\n lazy,\n lazyBehavior,\n mounted,\n ...props,\n })\n\n return { ...getContentProps(props), children }\n },\n)\n\nexport interface StepsPrevTriggerProps extends HTMLStyledProps<\"button\"> {}\n\nexport const StepsPrevTrigger = withContext<\"button\", StepsPrevTriggerProps>(\n \"button\",\n { name: \"PrevTrigger\", slot: [\"trigger\", \"prev\"] },\n)((props) => {\n const { getPrevTriggerProps } = useStepsContext()\n\n return { asChild: true, ...getPrevTriggerProps(props) }\n})\n\nexport interface StepsNextTriggerProps extends HTMLStyledProps<\"button\"> {}\n\nexport const StepsNextTrigger = withContext<\"button\", StepsNextTriggerProps>(\n \"button\",\n { name: \"NextTrigger\", slot: [\"trigger\", \"next\"] },\n)((props) => {\n const { getNextTriggerProps } = useStepsContext()\n\n return { asChild: true, ...getNextTriggerProps(props) }\n})\n"],"mappings":"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"}
|
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
|
|
4
4
|
import { createContext } from "../../utils/context.js";
|
|
5
5
|
import { mergeRefs } from "../../utils/ref.js";
|
|
6
|
-
import {
|
|
6
|
+
import { handlerAll } from "../../utils/common/function.js";
|
|
7
|
+
import { dataAttr } from "../../utils/common/dom.js";
|
|
8
|
+
import { cx } from "../../utils/common/string.js";
|
|
7
9
|
import { useEnvironment } from "../../core/system/environment-provider.js";
|
|
8
10
|
import { useControllableState } from "../../hooks/use-controllable-state/index.js";
|
|
9
11
|
import { createDescendant } from "../../hooks/use-descendant/index.js";
|
|
@@ -55,13 +57,13 @@ const useSteps = ({ defaultIndex = 0, index: indexProp, orientation = "horizonta
|
|
|
55
57
|
const getPrevTriggerProps = useCallback((props = {}) => ({
|
|
56
58
|
disabled: index === 0,
|
|
57
59
|
...props,
|
|
58
|
-
onClick:
|
|
60
|
+
onClick: handlerAll(props.onClick, onPrev)
|
|
59
61
|
}), [onPrev, index]);
|
|
60
62
|
const getNextTriggerProps = useCallback((props = {}) => {
|
|
61
63
|
return {
|
|
62
64
|
disabled: count <= index,
|
|
63
65
|
...props,
|
|
64
|
-
onClick:
|
|
66
|
+
onClick: handlerAll(props.onClick, onNext)
|
|
65
67
|
};
|
|
66
68
|
}, [
|
|
67
69
|
count,
|
|
@@ -98,9 +100,9 @@ const useStepsItem = ({ "aria-labelledby": ariaLabelledbyProp,...rest } = {}) =>
|
|
|
98
100
|
const hasContent = !!getDocument()?.getElementById(`${id}-${index}`);
|
|
99
101
|
return {
|
|
100
102
|
"aria-current": current ? "step" : void 0,
|
|
101
|
-
"aria-labelledby":
|
|
103
|
+
"aria-labelledby": cx(ariaLabelledbyProp, ariaLabelledby, hasContent ? `${id}-${index}` : void 0),
|
|
102
104
|
"data-orientation": orientation,
|
|
103
|
-
[statusDataAttr]:
|
|
105
|
+
[statusDataAttr]: dataAttr(true),
|
|
104
106
|
...rest,
|
|
105
107
|
...props,
|
|
106
108
|
ref: mergeRefs(ref, register)
|
|
@@ -117,21 +119,21 @@ const useStepsItem = ({ "aria-labelledby": ariaLabelledbyProp,...rest } = {}) =>
|
|
|
117
119
|
register
|
|
118
120
|
]);
|
|
119
121
|
const getTitleProps = useCallback((props) => ({
|
|
120
|
-
[statusDataAttr]:
|
|
122
|
+
[statusDataAttr]: dataAttr(true),
|
|
121
123
|
...props
|
|
122
124
|
}), [statusDataAttr]);
|
|
123
125
|
const getDescriptionProps = useCallback((props) => ({
|
|
124
|
-
[statusDataAttr]:
|
|
126
|
+
[statusDataAttr]: dataAttr(true),
|
|
125
127
|
...props
|
|
126
128
|
}), [statusDataAttr]);
|
|
127
129
|
const getIndicatorProps = useCallback((props) => ({
|
|
128
|
-
[statusDataAttr]:
|
|
130
|
+
[statusDataAttr]: dataAttr(true),
|
|
129
131
|
...props
|
|
130
132
|
}), [statusDataAttr]);
|
|
131
133
|
const getSeparatorProps = useCallback((props) => ({
|
|
132
134
|
"data-orientation": orientation,
|
|
133
135
|
role: "separator",
|
|
134
|
-
[statusDataAttr]:
|
|
136
|
+
[statusDataAttr]: dataAttr(true),
|
|
135
137
|
...props
|
|
136
138
|
}), [orientation, statusDataAttr]);
|
|
137
139
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-steps.js","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.js","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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"}
|