@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
|
@@ -4,7 +4,8 @@
|
|
|
4
4
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
5
5
|
const require_utils_effect = require('../../utils/effect.cjs');
|
|
6
6
|
const require_utils_ref = require('../../utils/ref.cjs');
|
|
7
|
-
const
|
|
7
|
+
const require_utils_common_function = require('../../utils/common/function.cjs');
|
|
8
|
+
const require_utils_common_dom = require('../../utils/common/dom.cjs');
|
|
8
9
|
const react = require_rolldown_runtime.__toESM(require("react"));
|
|
9
10
|
|
|
10
11
|
//#region src/components/scroll-area/use-scroll-area.ts
|
|
@@ -14,7 +15,7 @@ const useScrollArea = ({ id, ref, type = "hover", scrollHideDelay = 1e3, onScrol
|
|
|
14
15
|
const isAlways = type === "always";
|
|
15
16
|
const isNever = type === "never";
|
|
16
17
|
const isHidden = !isAlways && !isHovered && !isScrolling;
|
|
17
|
-
const isSafari =
|
|
18
|
+
const isSafari = require_utils_common_dom.isMac() && require_utils_common_dom.vendor(/apple/i);
|
|
18
19
|
const uuid = (0, react.useId)();
|
|
19
20
|
const key = `${id ?? uuid}-${isHovered}-${isScrolling}`;
|
|
20
21
|
const hoverTimeout = (0, react.useRef)(void 0);
|
|
@@ -85,14 +86,14 @@ const useScrollArea = ({ id, ref, type = "hover", scrollHideDelay = 1e3, onScrol
|
|
|
85
86
|
...rest,
|
|
86
87
|
...isSafari ? safariProps : {},
|
|
87
88
|
...props,
|
|
88
|
-
"data-hidden":
|
|
89
|
-
"data-hover":
|
|
90
|
-
"data-never":
|
|
91
|
-
"data-scroll":
|
|
89
|
+
"data-hidden": require_utils_common_dom.dataAttr(isHidden),
|
|
90
|
+
"data-hover": require_utils_common_dom.dataAttr(isHovered),
|
|
91
|
+
"data-never": require_utils_common_dom.dataAttr(isNever),
|
|
92
|
+
"data-scroll": require_utils_common_dom.dataAttr(isScrolling),
|
|
92
93
|
tabIndex: 0,
|
|
93
|
-
onMouseEnter:
|
|
94
|
-
onMouseLeave:
|
|
95
|
-
onScroll:
|
|
94
|
+
onMouseEnter: require_utils_common_function.handlerAll(props.onMouseEnter, rest.onMouseEnter, onMouseEnter),
|
|
95
|
+
onMouseLeave: require_utils_common_function.handlerAll(props.onMouseLeave, rest.onMouseLeave, onMouseLeave),
|
|
96
|
+
onScroll: require_utils_common_function.handlerAll(props.onScroll, rest.onScroll, onScroll)
|
|
96
97
|
}), [
|
|
97
98
|
isNever,
|
|
98
99
|
ref,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-scroll-area.cjs","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.cjs","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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"}
|
|
@@ -5,7 +5,8 @@ const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
|
5
5
|
const require_utils_context = require('../../utils/context.cjs');
|
|
6
6
|
const require_utils_dom = require('../../utils/dom.cjs');
|
|
7
7
|
const require_utils_ref = require('../../utils/ref.cjs');
|
|
8
|
-
const
|
|
8
|
+
const require_utils_common_function = require('../../utils/common/function.cjs');
|
|
9
|
+
const require_utils_common_dom = require('../../utils/common/dom.cjs');
|
|
9
10
|
const require_hooks_use_controllable_state_index = require('../../hooks/use-controllable-state/index.cjs');
|
|
10
11
|
const require_hooks_use_descendant_index = require('../../hooks/use-descendant/index.cjs');
|
|
11
12
|
const react = require_rolldown_runtime.__toESM(require("react"));
|
|
@@ -25,11 +26,11 @@ const useSegmentedControl = ({ id, name, defaultValue, disabled, orientation = "
|
|
|
25
26
|
name ??= uuid;
|
|
26
27
|
const getRootProps = (0, react.useCallback)((props) => ({
|
|
27
28
|
id,
|
|
28
|
-
"aria-disabled":
|
|
29
|
+
"aria-disabled": require_utils_common_dom.ariaAttr(disabled),
|
|
29
30
|
"aria-orientation": orientation,
|
|
30
|
-
"data-disabled":
|
|
31
|
+
"data-disabled": require_utils_common_dom.dataAttr(disabled),
|
|
31
32
|
"data-orientation": orientation,
|
|
32
|
-
"data-readonly":
|
|
33
|
+
"data-readonly": require_utils_common_dom.dataAttr(readOnly),
|
|
33
34
|
role: "radiogroup",
|
|
34
35
|
...rest,
|
|
35
36
|
...props
|
|
@@ -63,15 +64,15 @@ const useSegmentedControlItem = ({ disabled, readOnly, value, inputProps,...rest
|
|
|
63
64
|
setValue(ev.target.value);
|
|
64
65
|
}, [setValue]);
|
|
65
66
|
const getLabelProps = (0, react.useCallback)((props) => ({
|
|
66
|
-
"aria-disabled":
|
|
67
|
-
"aria-readonly":
|
|
68
|
-
"data-checked":
|
|
69
|
-
"data-disabled":
|
|
67
|
+
"aria-disabled": require_utils_common_dom.ariaAttr(trulyDisabled),
|
|
68
|
+
"aria-readonly": require_utils_common_dom.ariaAttr(trulyReadOnly),
|
|
69
|
+
"data-checked": require_utils_common_dom.dataAttr(checked),
|
|
70
|
+
"data-disabled": require_utils_common_dom.dataAttr(trulyDisabled),
|
|
70
71
|
"data-index": index.toString(),
|
|
71
72
|
"data-orientation": orientation,
|
|
72
|
-
"data-readonly":
|
|
73
|
-
"data-root-disabled":
|
|
74
|
-
"data-root-readonly":
|
|
73
|
+
"data-readonly": require_utils_common_dom.dataAttr(trulyReadOnly),
|
|
74
|
+
"data-root-disabled": require_utils_common_dom.dataAttr(rootDisabled),
|
|
75
|
+
"data-root-readonly": require_utils_common_dom.dataAttr(rootReadOnly),
|
|
75
76
|
...props,
|
|
76
77
|
...rest
|
|
77
78
|
}), [
|
|
@@ -88,12 +89,12 @@ const useSegmentedControlItem = ({ disabled, readOnly, value, inputProps,...rest
|
|
|
88
89
|
type: "radio",
|
|
89
90
|
name,
|
|
90
91
|
style: require_utils_dom.visuallyHiddenAttributes.style,
|
|
91
|
-
"aria-disabled":
|
|
92
|
-
"aria-readonly":
|
|
93
|
-
"data-checked":
|
|
94
|
-
"data-disabled":
|
|
92
|
+
"aria-disabled": require_utils_common_dom.ariaAttr(trulyDisabled),
|
|
93
|
+
"aria-readonly": require_utils_common_dom.ariaAttr(trulyReadOnly),
|
|
94
|
+
"data-checked": require_utils_common_dom.dataAttr(checked),
|
|
95
|
+
"data-disabled": require_utils_common_dom.dataAttr(trulyDisabled),
|
|
95
96
|
"data-orientation": orientation,
|
|
96
|
-
"data-readonly":
|
|
97
|
+
"data-readonly": require_utils_common_dom.dataAttr(trulyReadOnly),
|
|
97
98
|
checked,
|
|
98
99
|
disabled: trulyDisabled || trulyReadOnly,
|
|
99
100
|
readOnly: trulyReadOnly,
|
|
@@ -102,7 +103,7 @@ const useSegmentedControlItem = ({ disabled, readOnly, value, inputProps,...rest
|
|
|
102
103
|
...inputProps,
|
|
103
104
|
...props,
|
|
104
105
|
ref: require_utils_ref.mergeRefs(register, ref),
|
|
105
|
-
onChange:
|
|
106
|
+
onChange: require_utils_common_function.handlerAll(props.onChange, inputProps?.onChange, onChange)
|
|
106
107
|
}), [
|
|
107
108
|
orientation,
|
|
108
109
|
name,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-segmented-control.cjs","names":["getRootProps: PropGetter","ev: ChangeEvent<HTMLInputElement>","getLabelProps: PropGetter<\"label\">","getInputProps: PropGetter<\"input\">","visuallyHiddenAttributes"],"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.cjs","names":["getRootProps: PropGetter","ev: ChangeEvent<HTMLInputElement>","getLabelProps: PropGetter<\"label\">","getInputProps: PropGetter<\"input\">","visuallyHiddenAttributes"],"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,oCAAuC,EAAE,MAAM,0BAA2B,EAAC;AAE7E,MAAa,EAAE,oBAAoB,eAAe,gBAAgB,GAChE,qDAAoC;AAwCtC,MAAa,sBAAsB,CAA4B,EAC7D,IACA,MACA,cACA,UACA,cAAc,cACd,UACA,OAAO,WACP,UAAU,aACV,GAAG,MACyB,GAAG,CAAE,MAAK;CACtC,MAAM,OAAO,kBAAO;CACpB,MAAM,CAAC,OAAO,SAAS,GAAG,gEAAqB;EAC7C;EACA,OAAO;EACP,UAAU;CACX,EAAC;CACF,MAAM,cAAc,gBAAgB;AAEpC,QAAO;AACP,UAAS;CAET,MAAMA,eAA2B,uBAC/B,CAAC,WAAW;EACV;EACA,iBAAiB,kCAAS,SAAS;EACnC,oBAAoB;EACpB,iBAAiB,kCAAS,SAAS;EACnC,oBAAoB;EACpB,iBAAiB,kCAAS,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,uBACf,CAACC,OAAsC;AACrC,WAAS,GAAG,OAAO,MAAM;CAC1B,GACD,CAAC,QAAS,EACX;CAED,MAAMC,gBAAqC,uBACzC,CAAC,WAAW;EACV,iBAAiB,kCAAS,cAAc;EACxC,iBAAiB,kCAAS,cAAc;EACxC,gBAAgB,kCAAS,QAAQ;EACjC,iBAAiB,kCAAS,cAAc;EACxC,cAAc,MAAM,UAAU;EAC9B,oBAAoB;EACpB,iBAAiB,kCAAS,cAAc;EACxC,sBAAsB,kCAAS,aAAa;EAC5C,sBAAsB,kCAAS,aAAa;EAC5C,GAAG;EACH,GAAG;CACJ,IACD;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACD,EACF;CAED,MAAMC,gBAAqC,uBACzC,CAAC,EAAE,IAAK,GAAG,OAAO,GAAG,CAAE,OAAM;EAC3B,MAAM;EACN;EACA,OAAOC,2CAAyB;EAChC,iBAAiB,kCAAS,cAAc;EACxC,iBAAiB,kCAAS,cAAc;EACxC,gBAAgB,kCAAS,QAAQ;EACjC,iBAAiB,kCAAS,cAAc;EACxC,oBAAoB;EACpB,iBAAiB,kCAAS,cAAc;EACxC;EACA,UAAU,iBAAiB;EAC3B,UAAU;EACV,UAAU,uBAA0B;EACpC;EACA,GAAG;EACH,GAAG;EACH,KAAK,4BAAU,UAAU,IAAI;EAC7B,UAAU,yCAAW,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"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
5
|
-
const
|
|
5
|
+
const require_utils_common_object = require('../../utils/common/object.cjs');
|
|
6
6
|
const require_core_components_create_component = require('../../core/components/create-component.cjs');
|
|
7
7
|
const require_components_grid_grid = require('../grid/grid.cjs');
|
|
8
8
|
const require_components_simple_grid_simple_grid_style = require('./simple-grid.style.cjs');
|
|
@@ -17,10 +17,10 @@ const { PropsContext: SimpleGridPropsContext, usePropsContext: useSimpleGridProp
|
|
|
17
17
|
*/
|
|
18
18
|
const SimpleGrid = withContext(require_components_grid_grid.Grid)(void 0, ({ columns, minChildWidth,...rest }) => {
|
|
19
19
|
const templateColumns = (0, react.useMemo)(() => {
|
|
20
|
-
if (minChildWidth) return
|
|
20
|
+
if (minChildWidth) return require_utils_common_object.replaceObject(minChildWidth, (value) => {
|
|
21
21
|
return value != null ? `repeat(auto-fit, minmax({sizes.${value}, ${value}}, 1fr))` : void 0;
|
|
22
22
|
});
|
|
23
|
-
else return
|
|
23
|
+
else return require_utils_common_object.replaceObject(columns, (value) => value != null ? `repeat(${value}, minmax(0, 1fr))` : void 0);
|
|
24
24
|
}, [minChildWidth, columns]);
|
|
25
25
|
return {
|
|
26
26
|
templateColumns,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"simple-grid.cjs","names":["simpleGridStyle","Grid"],"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,yDACF,eACAA,iEACD;;;;;;AAOD,MAAa,aAAa,YAAYC,kCAAK,SAEzC,CAAC,EAAE,SAAS,cAAe,GAAG,MAAM,KAAK;CACvC,MAAM,kBAAkB,mBAAQ,MAAM;AACpC,MAAI,cACF,QAAO,
|
|
1
|
+
{"version":3,"file":"simple-grid.cjs","names":["simpleGridStyle","Grid"],"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,yDACF,eACAA,iEACD;;;;;;AAOD,MAAa,aAAa,YAAYC,kCAAK,SAEzC,CAAC,EAAE,SAAS,cAAe,GAAG,MAAM,KAAK;CACvC,MAAM,kBAAkB,mBAAQ,MAAM;AACpC,MAAI,cACF,QAAO,0CAAc,eAAe,CAAC,UAAU;AAC7C,UAAO,SAAS,QACX,iCAAiC,MAAM,IAAI,MAAM;EAEvD,EAAC;MAEF,QAAO,0CAAc,SAAS,CAAC,UAC7B,SAAS,QAAQ,SAAS,MAAM,4BACjC;CAEJ,GAAE,CAAC,eAAe,OAAQ,EAAC;AAE5B,QAAO;EAAE;EAAiB,GAAG;CAAM;AACpC,EACF"}
|
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
|
|
4
4
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
5
5
|
const require_utils_children = require('../../utils/children.cjs');
|
|
6
|
-
const
|
|
6
|
+
const require_utils_common_assertion = require('../../utils/common/assertion.cjs');
|
|
7
|
+
const require_utils_common_dom = require('../../utils/common/dom.cjs');
|
|
7
8
|
const require_core_system_var = require('../../core/system/var.cjs');
|
|
8
9
|
const require_core_components_create_component = require('../../core/components/create-component.cjs');
|
|
9
10
|
const require_components_skeleton_skeleton_style = require('./skeleton.style.cjs');
|
|
@@ -22,11 +23,11 @@ const Skeleton = withContext("div", { transferProps: ["loading"] })(void 0, ({ c
|
|
|
22
23
|
fitContent ??= hasChildren;
|
|
23
24
|
return {
|
|
24
25
|
"aria-busy": loading,
|
|
25
|
-
"data-loaded":
|
|
26
|
-
"data-loading":
|
|
27
|
-
"--duration":
|
|
26
|
+
"data-loaded": require_utils_common_dom.dataAttr(!loading),
|
|
27
|
+
"data-loading": require_utils_common_dom.dataAttr(loading),
|
|
28
|
+
"--duration": require_utils_common_assertion.isNumber(duration) ? `${duration}s` : duration,
|
|
28
29
|
"--end-color": require_core_system_var.varAttr(endColor, "colors"),
|
|
29
|
-
"--fade-duration":
|
|
30
|
+
"--fade-duration": require_utils_common_assertion.isNumber(fadeDuration) ? `${fadeDuration}s` : fadeDuration,
|
|
30
31
|
"--height": fitContent ? "fit-content" : void 0,
|
|
31
32
|
"--start-color": require_core_system_var.varAttr(startColor, "colors"),
|
|
32
33
|
"--width": fitContent ? "fit-content" : void 0,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skeleton.cjs","names":["skeletonStyle"],"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.cjs","names":["skeletonStyle"],"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,yDAA8C,YAAYA,yDAAc;;;;;;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,mBAAQ,MAAM,wCAAiB,SAAS,EAAE,CAAC,QAAS,EAAC;CAC3E,MAAM,gBAAgB,cAAc;AAEpC,gBAAe;AAEf,QAAO;EACL,aAAa;EACb,eAAe,mCAAU,QAAQ;EACjC,gBAAgB,kCAAS,QAAQ;EACjC,cAAc,wCAAS,SAAS,MAAM,SAAS,KAAK;EACpD,eAAe,gCAAQ,UAAU,SAAS;EAC1C,mBAAmB,wCAAS,aAAa,MAClC,aAAa,KAChB;EACJ,YAAY,aAAa;EACzB,iBAAiB,gCAAQ,YAAY,SAAS;EAC9C,WAAW,aAAa;EACxB;EACA,GAAG;CACJ;AACF,EACF"}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
5
5
|
const require_utils_children = require('../../utils/children.cjs');
|
|
6
|
-
const
|
|
6
|
+
const require_utils_common_object = require('../../utils/common/object.cjs');
|
|
7
7
|
const require_core_system_factory = require('../../core/system/factory.cjs');
|
|
8
8
|
const require_core_components_create_component = require('../../core/components/create-component.cjs');
|
|
9
9
|
const require_components_stack_stack_style = require('./stack.style.cjs');
|
|
@@ -23,9 +23,9 @@ const Stack = withContext(({ align: alignItems, children, direction: flexDirecti
|
|
|
23
23
|
const cloneChildren = (0, react.useMemo)(() => separator ? validChildren.map((child, index) => {
|
|
24
24
|
const key = typeof child.key !== "undefined" ? child.key : index;
|
|
25
25
|
const cloneSeparator = (0, react.cloneElement)(separator, {
|
|
26
|
-
borderWidth:
|
|
27
|
-
h:
|
|
28
|
-
w:
|
|
26
|
+
borderWidth: require_utils_common_object.replaceObject(flexDirection, (value) => isColumn(value) ? "0 0 1px 0" : "0 0 0 1px"),
|
|
27
|
+
h: require_utils_common_object.replaceObject(flexDirection, (value) => isColumn(value) ? "fit-content" : "100%"),
|
|
28
|
+
w: require_utils_common_object.replaceObject(flexDirection, (value) => isColumn(value) ? "100%" : "fit-content")
|
|
29
29
|
});
|
|
30
30
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react.Fragment, { children: [!!index ? cloneSeparator : null, child] }, key);
|
|
31
31
|
}) : validChildren, [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stack.cjs","names":["stackStyle","value: any","Fragment","styled"],"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,yDAAwC,SAASA,gDAAW;;;;;;AAOhE,MAAa,QAAQ,YACnB,CAAC,EACC,OAAO,YACP,UACA,WAAW,gBAAgB,UAC3B,SAAS,gBACT,WACA,MAAM,SACN,GAAG,MACJ,KAAK;CACJ,MAAM,WAAW,CAACC,UAChB,UAAU,YAAY,UAAU;CAElC,MAAM,gBAAgB,wCAAiB,SAAS;CAEhD,MAAM,gBAAgB,mBACpB,MACE,YACI,cAAc,IAAI,CAAC,OAAO,UAAU;EAClC,MAAM,aAAa,MAAM,QAAQ,cAAc,MAAM,MAAM;EAE3D,MAAM,iBAAiB,wBAAkB,WAAW;GAClD,aAAa,
|
|
1
|
+
{"version":3,"file":"stack.cjs","names":["stackStyle","value: any","Fragment","styled"],"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,yDAAwC,SAASA,gDAAW;;;;;;AAOhE,MAAa,QAAQ,YACnB,CAAC,EACC,OAAO,YACP,UACA,WAAW,gBAAgB,UAC3B,SAAS,gBACT,WACA,MAAM,SACN,GAAG,MACJ,KAAK;CACJ,MAAM,WAAW,CAACC,UAChB,UAAU,YAAY,UAAU;CAElC,MAAM,gBAAgB,wCAAiB,SAAS;CAEhD,MAAM,gBAAgB,mBACpB,MACE,YACI,cAAc,IAAI,CAAC,OAAO,UAAU;EAClC,MAAM,aAAa,MAAM,QAAQ,cAAc,MAAM,MAAM;EAE3D,MAAM,iBAAiB,wBAAkB,WAAW;GAClD,aAAa,0CAAc,eAAe,CAAC,UACzC,SAAS,MAAM,GAAG,cAAc,YACjC;GACD,GAAG,0CAAc,eAAe,CAAC,UAC/B,SAAS,MAAM,GAAG,gBAAgB,OACnC;GACD,GAAG,0CAAc,eAAe,CAAC,UAC/B,SAAS,MAAM,GAAG,SAAS,cAC5B;EACF,EAAC;AAEF,yBACE,4BAACC,+BACI,QAAQ,iBAAiB,MAC3B,UAFY,IAGJ;CAEd,EAAC,GACF,eACN;EAAC;EAAW;EAAe;CAAc,EAC1C;AAED,wBACE,2BAACC,mCAAO;EACM;EACG;EACL;EACM;EAChB,GAAI;YAEH;GACU;AAEhB,EACF,EAAE"}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
5
5
|
const require_utils_children = require('../../utils/children.cjs');
|
|
6
|
-
const
|
|
6
|
+
const require_utils_common_assertion = require('../../utils/common/assertion.cjs');
|
|
7
7
|
const require_core_system_factory = require('../../core/system/factory.cjs');
|
|
8
8
|
const require_core_components_create_component = require('../../core/components/create-component.cjs');
|
|
9
9
|
const require_triangle_icon = require('../icon/icons/triangle-icon.cjs');
|
|
@@ -23,7 +23,7 @@ const StatRoot = withProvider(({ children, helperMessage, icon, label, value, he
|
|
|
23
23
|
const customStatLabel = require_utils_children.findChild(validChildren, StatLabel);
|
|
24
24
|
const customStatValue = require_utils_children.findChild(validChildren, StatValue);
|
|
25
25
|
const customStatHelperMessage = require_utils_children.findChild(validChildren, StatHelperMessage);
|
|
26
|
-
const cloneChildren = !
|
|
26
|
+
const cloneChildren = !require_utils_common_assertion.isEmpty(validChildren) ? require_utils_children.omitChildren(validChildren, StatLabel, StatValue, StatHelperMessage) : children;
|
|
27
27
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_core_system_factory.styled.dl, {
|
|
28
28
|
...rest,
|
|
29
29
|
children: [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stat.cjs","names":["statStyle","styled","TriangleIcon"],"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,6DAA8C,QAAQA,6CAAU;;;;;;AAOpE,MAAa,WAAW,aACtB,CAAC,EACC,UACA,eACA,MACA,OACA,OACA,oBACA,WACA,YACA,WACA,GAAG,MACJ,KAAK;CACJ,MAAM,gBAAgB,wCAAiB,SAAS;CAChD,MAAM,kBAAkB,iCAAU,eAAe,UAAU;CAC3D,MAAM,kBAAkB,iCAAU,eAAe,UAAU;CAC3D,MAAM,0BAA0B,iCAAU,eAAe,kBAAkB;CAC3E,MAAM,iBAAiB
|
|
1
|
+
{"version":3,"file":"stat.cjs","names":["statStyle","styled","TriangleIcon"],"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,6DAA8C,QAAQA,6CAAU;;;;;;AAOpE,MAAa,WAAW,aACtB,CAAC,EACC,UACA,eACA,MACA,OACA,OACA,oBACA,WACA,YACA,WACA,GAAG,MACJ,KAAK;CACJ,MAAM,gBAAgB,wCAAiB,SAAS;CAChD,MAAM,kBAAkB,iCAAU,eAAe,UAAU;CAC3D,MAAM,kBAAkB,iCAAU,eAAe,UAAU;CAC3D,MAAM,0BAA0B,iCAAU,eAAe,kBAAkB;CAC3E,MAAM,iBAAiB,uCAAQ,cAAc,GACzC,oCAAa,eAAe,WAAW,WAAW,kBAAkB,GACpE;AAEJ,wBACE,4BAACC,mCAAO;EAAG,GAAI;;GACZ,mCAAmB,2BAAC;IAAU,GAAI;cAAa;KAAkB;GACjE,mCAAmB,2BAAC;IAAU,GAAI;cAAa;KAAkB;GACjE,2CACC,4BAAC;IAAkB,GAAI;eACpB,uBAAO,2BAAC;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,sDAAQ,OAAO;AAE7B,wBACE,2BAACC;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"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
5
|
-
const
|
|
5
|
+
const require_utils_common_assertion = require('../../utils/common/assertion.cjs');
|
|
6
6
|
const require_core_system_factory = require('../../core/system/factory.cjs');
|
|
7
7
|
const require_core_components_create_component = require('../../core/components/create-component.cjs');
|
|
8
8
|
const require_check_icon = require('../icon/icons/check-icon.cjs');
|
|
@@ -172,7 +172,7 @@ const StepsContents = ({ children }) => {
|
|
|
172
172
|
const { items } = useComponentContext();
|
|
173
173
|
return (0, react.useMemo)(() => {
|
|
174
174
|
if (children) return children;
|
|
175
|
-
else return items?.map(({ content, contentProps }, index) =>
|
|
175
|
+
else return items?.map(({ content, contentProps }, index) => require_utils_common_assertion.isUndefined(content) || require_utils_common_assertion.isNull(content) ? null : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StepsContent, {
|
|
176
176
|
index,
|
|
177
177
|
...contentProps,
|
|
178
178
|
children: content
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"steps.cjs","names":["stepsStyle","StepsDescendantsContext","StepsContext","styled","rest","StepsItemContext","CheckIcon","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.cjs","names":["stepsStyle","StepsDescendantsContext","StepsContext","styled","rest","StepsItemContext","CheckIcon","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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"}
|
|
@@ -4,7 +4,9 @@
|
|
|
4
4
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
5
5
|
const require_utils_context = require('../../utils/context.cjs');
|
|
6
6
|
const require_utils_ref = require('../../utils/ref.cjs');
|
|
7
|
-
const
|
|
7
|
+
const require_utils_common_function = require('../../utils/common/function.cjs');
|
|
8
|
+
const require_utils_common_dom = require('../../utils/common/dom.cjs');
|
|
9
|
+
const require_utils_common_string = require('../../utils/common/string.cjs');
|
|
8
10
|
const require_core_system_environment_provider = require('../../core/system/environment-provider.cjs');
|
|
9
11
|
const require_hooks_use_controllable_state_index = require('../../hooks/use-controllable-state/index.cjs');
|
|
10
12
|
const require_hooks_use_descendant_index = require('../../hooks/use-descendant/index.cjs');
|
|
@@ -56,13 +58,13 @@ const useSteps = ({ defaultIndex = 0, index: indexProp, orientation = "horizonta
|
|
|
56
58
|
const getPrevTriggerProps = (0, react.useCallback)((props = {}) => ({
|
|
57
59
|
disabled: index === 0,
|
|
58
60
|
...props,
|
|
59
|
-
onClick:
|
|
61
|
+
onClick: require_utils_common_function.handlerAll(props.onClick, onPrev)
|
|
60
62
|
}), [onPrev, index]);
|
|
61
63
|
const getNextTriggerProps = (0, react.useCallback)((props = {}) => {
|
|
62
64
|
return {
|
|
63
65
|
disabled: count <= index,
|
|
64
66
|
...props,
|
|
65
|
-
onClick:
|
|
67
|
+
onClick: require_utils_common_function.handlerAll(props.onClick, onNext)
|
|
66
68
|
};
|
|
67
69
|
}, [
|
|
68
70
|
count,
|
|
@@ -99,9 +101,9 @@ const useStepsItem = ({ "aria-labelledby": ariaLabelledbyProp,...rest } = {}) =>
|
|
|
99
101
|
const hasContent = !!getDocument()?.getElementById(`${id}-${index}`);
|
|
100
102
|
return {
|
|
101
103
|
"aria-current": current ? "step" : void 0,
|
|
102
|
-
"aria-labelledby":
|
|
104
|
+
"aria-labelledby": require_utils_common_string.cx(ariaLabelledbyProp, ariaLabelledby, hasContent ? `${id}-${index}` : void 0),
|
|
103
105
|
"data-orientation": orientation,
|
|
104
|
-
[statusDataAttr]:
|
|
106
|
+
[statusDataAttr]: require_utils_common_dom.dataAttr(true),
|
|
105
107
|
...rest,
|
|
106
108
|
...props,
|
|
107
109
|
ref: require_utils_ref.mergeRefs(ref, register)
|
|
@@ -118,21 +120,21 @@ const useStepsItem = ({ "aria-labelledby": ariaLabelledbyProp,...rest } = {}) =>
|
|
|
118
120
|
register
|
|
119
121
|
]);
|
|
120
122
|
const getTitleProps = (0, react.useCallback)((props) => ({
|
|
121
|
-
[statusDataAttr]:
|
|
123
|
+
[statusDataAttr]: require_utils_common_dom.dataAttr(true),
|
|
122
124
|
...props
|
|
123
125
|
}), [statusDataAttr]);
|
|
124
126
|
const getDescriptionProps = (0, react.useCallback)((props) => ({
|
|
125
|
-
[statusDataAttr]:
|
|
127
|
+
[statusDataAttr]: require_utils_common_dom.dataAttr(true),
|
|
126
128
|
...props
|
|
127
129
|
}), [statusDataAttr]);
|
|
128
130
|
const getIndicatorProps = (0, react.useCallback)((props) => ({
|
|
129
|
-
[statusDataAttr]:
|
|
131
|
+
[statusDataAttr]: require_utils_common_dom.dataAttr(true),
|
|
130
132
|
...props
|
|
131
133
|
}), [statusDataAttr]);
|
|
132
134
|
const getSeparatorProps = (0, react.useCallback)((props) => ({
|
|
133
135
|
"data-orientation": orientation,
|
|
134
136
|
role: "separator",
|
|
135
|
-
[statusDataAttr]:
|
|
137
|
+
[statusDataAttr]: require_utils_common_dom.dataAttr(true),
|
|
136
138
|
...props
|
|
137
139
|
}), [orientation, statusDataAttr]);
|
|
138
140
|
return {
|