@yamada-ui/react 2.0.0-dev-20250626073729 → 2.0.0-dev-20250626191018
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/_virtual/rolldown_runtime.cjs +0 -7
- package/dist/cjs/components/accordion/accordion.cjs +7 -6
- package/dist/cjs/components/accordion/accordion.cjs.map +1 -1
- package/dist/cjs/components/accordion/use-accordion.cjs +14 -11
- package/dist/cjs/components/accordion/use-accordion.cjs.map +1 -1
- package/dist/cjs/components/airy/airy.cjs +5 -4
- package/dist/cjs/components/airy/airy.cjs.map +1 -1
- package/dist/cjs/components/aspect-ratio/aspect-ratio.cjs +2 -2
- package/dist/cjs/components/aspect-ratio/aspect-ratio.cjs.map +1 -1
- package/dist/cjs/components/avatar/use-avatar-group.cjs +3 -3
- package/dist/cjs/components/avatar/use-avatar-group.cjs.map +1 -1
- package/dist/cjs/components/avatar/use-avatar.cjs +5 -4
- package/dist/cjs/components/avatar/use-avatar.cjs.map +1 -1
- package/dist/cjs/components/bleed/bleed.cjs +5 -5
- package/dist/cjs/components/bleed/bleed.cjs.map +1 -1
- package/dist/cjs/components/breadcrumb/use-breadcrumb.cjs +2 -2
- package/dist/cjs/components/breadcrumb/use-breadcrumb.cjs.map +1 -1
- package/dist/cjs/components/button/button.cjs +11 -10
- package/dist/cjs/components/button/button.cjs.map +1 -1
- package/dist/cjs/components/carousel/carousel.cjs +3 -3
- package/dist/cjs/components/carousel/carousel.cjs.map +1 -1
- package/dist/cjs/components/carousel/use-carousel.cjs +12 -10
- package/dist/cjs/components/carousel/use-carousel.cjs.map +1 -1
- package/dist/cjs/components/circle-progress/circle-progress.cjs +2 -2
- package/dist/cjs/components/circle-progress/circle-progress.cjs.map +1 -1
- package/dist/cjs/components/collapse/collapse.cjs +4 -3
- package/dist/cjs/components/collapse/collapse.cjs.map +1 -1
- package/dist/cjs/components/color-swatch/color-swatch.cjs +2 -2
- package/dist/cjs/components/color-swatch/color-swatch.cjs.map +1 -1
- package/dist/cjs/components/data-list/data-list.cjs +8 -8
- package/dist/cjs/components/data-list/data-list.cjs.map +1 -1
- package/dist/cjs/components/drawer/drawer.cjs +2 -2
- package/dist/cjs/components/drawer/drawer.cjs.map +1 -1
- package/dist/cjs/components/drawer/use-drawer.cjs +4 -3
- package/dist/cjs/components/drawer/use-drawer.cjs.map +1 -1
- package/dist/cjs/components/editable/editable.cjs +2 -2
- package/dist/cjs/components/editable/editable.cjs.map +1 -1
- package/dist/cjs/components/editable/use-editable.cjs +16 -15
- package/dist/cjs/components/editable/use-editable.cjs.map +1 -1
- package/dist/cjs/components/empty-state/empty-state.cjs +2 -2
- package/dist/cjs/components/empty-state/empty-state.cjs.map +1 -1
- package/dist/cjs/components/field/field.cjs +11 -10
- package/dist/cjs/components/field/field.cjs.map +1 -1
- package/dist/cjs/components/field/use-field-props.cjs +14 -12
- package/dist/cjs/components/field/use-field-props.cjs.map +1 -1
- package/dist/cjs/components/fieldset/fieldset.cjs +5 -4
- package/dist/cjs/components/fieldset/fieldset.cjs.map +1 -1
- package/dist/cjs/components/file-button/use-file-button.cjs +2 -2
- package/dist/cjs/components/file-button/use-file-button.cjs.map +1 -1
- package/dist/cjs/components/file-input/use-file-input.cjs +7 -5
- package/dist/cjs/components/file-input/use-file-input.cjs.map +1 -1
- package/dist/cjs/components/flip/flip.cjs +5 -4
- package/dist/cjs/components/flip/flip.cjs.map +1 -1
- package/dist/cjs/components/float/float.cjs +2 -2
- package/dist/cjs/components/float/float.cjs.map +1 -1
- package/dist/cjs/components/focus-lock/focus-lock.cjs +4 -3
- package/dist/cjs/components/focus-lock/focus-lock.cjs.map +1 -1
- package/dist/cjs/components/for/for.cjs +2 -2
- package/dist/cjs/components/for/for.cjs.map +1 -1
- package/dist/cjs/components/grid/grid-item.cjs +3 -3
- package/dist/cjs/components/grid/grid-item.cjs.map +1 -1
- package/dist/cjs/components/group/group.cjs +2 -2
- package/dist/cjs/components/group/group.cjs.map +1 -1
- package/dist/cjs/components/group/use-group.cjs +6 -5
- package/dist/cjs/components/group/use-group.cjs.map +1 -1
- package/dist/cjs/components/highlight/use-highlight.cjs +2 -2
- package/dist/cjs/components/highlight/use-highlight.cjs.map +1 -1
- package/dist/cjs/components/indicator/indicator.cjs +5 -4
- package/dist/cjs/components/indicator/indicator.cjs.map +1 -1
- package/dist/cjs/components/infinite-scroll-area/use-infinite-scroll.cjs +3 -3
- package/dist/cjs/components/infinite-scroll-area/use-infinite-scroll.cjs.map +1 -1
- package/dist/cjs/components/input/input.style.cjs +5 -5
- package/dist/cjs/components/input/input.style.cjs.map +1 -1
- package/dist/cjs/components/link-box/link-box.cjs +2 -2
- package/dist/cjs/components/link-box/link-box.cjs.map +1 -1
- package/dist/cjs/components/loading/audio.cjs +2 -2
- package/dist/cjs/components/loading/audio.cjs.map +1 -1
- package/dist/cjs/components/loading/loading-provider.cjs +2 -2
- package/dist/cjs/components/loading/loading-provider.cjs.map +1 -1
- package/dist/cjs/components/loading/rings.cjs +2 -2
- package/dist/cjs/components/loading/rings.cjs.map +1 -1
- package/dist/cjs/components/loading/use-loading-component.cjs +5 -4
- package/dist/cjs/components/loading/use-loading-component.cjs.map +1 -1
- package/dist/cjs/components/modal/modal.cjs +3 -3
- package/dist/cjs/components/modal/modal.cjs.map +1 -1
- package/dist/cjs/components/modal/use-modal.cjs +9 -8
- package/dist/cjs/components/modal/use-modal.cjs.map +1 -1
- package/dist/cjs/components/motion/motion.cjs +2 -2
- package/dist/cjs/components/motion/motion.cjs.map +1 -1
- package/dist/cjs/components/motion/transition.cjs +5 -5
- package/dist/cjs/components/motion/transition.cjs.map +1 -1
- package/dist/cjs/components/native-select/use-native-select.cjs +5 -4
- package/dist/cjs/components/native-select/use-native-select.cjs.map +1 -1
- package/dist/cjs/components/number-input/use-number-counter.cjs +5 -5
- package/dist/cjs/components/number-input/use-number-counter.cjs.map +1 -1
- package/dist/cjs/components/number-input/use-number-input.cjs +8 -7
- package/dist/cjs/components/number-input/use-number-input.cjs.map +1 -1
- package/dist/cjs/components/pagination/pagination.cjs +4 -3
- package/dist/cjs/components/pagination/pagination.cjs.map +1 -1
- package/dist/cjs/components/pagination/use-pagination.cjs +8 -7
- package/dist/cjs/components/pagination/use-pagination.cjs.map +1 -1
- package/dist/cjs/components/password-input/use-password-input.cjs +4 -4
- package/dist/cjs/components/password-input/use-password-input.cjs.map +1 -1
- package/dist/cjs/components/password-input/use-strength-meter.cjs +2 -2
- package/dist/cjs/components/password-input/use-strength-meter.cjs.map +1 -1
- package/dist/cjs/components/picture/picture.cjs +6 -5
- package/dist/cjs/components/picture/picture.cjs.map +1 -1
- package/dist/cjs/components/pin-input/use-pin-input.cjs +7 -6
- package/dist/cjs/components/pin-input/use-pin-input.cjs.map +1 -1
- package/dist/cjs/components/popover/popover.cjs +4 -3
- package/dist/cjs/components/popover/popover.cjs.map +1 -1
- package/dist/cjs/components/popover/use-popover.cjs +19 -16
- package/dist/cjs/components/popover/use-popover.cjs.map +1 -1
- package/dist/cjs/components/portal/portal.cjs +3 -3
- package/dist/cjs/components/portal/portal.cjs.map +1 -1
- package/dist/cjs/components/progress/progress.cjs +2 -2
- package/dist/cjs/components/progress/progress.cjs.map +1 -1
- package/dist/cjs/components/progress/use-progress.cjs +6 -5
- package/dist/cjs/components/progress/use-progress.cjs.map +1 -1
- package/dist/cjs/components/reorder/use-reorder.cjs +11 -9
- package/dist/cjs/components/reorder/use-reorder.cjs.map +1 -1
- package/dist/cjs/components/resizable/use-resizable.cjs +10 -9
- package/dist/cjs/components/resizable/use-resizable.cjs.map +1 -1
- package/dist/cjs/components/ripple/ripple.cjs +2 -2
- package/dist/cjs/components/ripple/ripple.cjs.map +1 -1
- package/dist/cjs/components/ripple/use-ripple.cjs +4 -3
- package/dist/cjs/components/ripple/use-ripple.cjs.map +1 -1
- package/dist/cjs/components/rotate/rotate.cjs +5 -4
- package/dist/cjs/components/rotate/rotate.cjs.map +1 -1
- package/dist/cjs/components/scroll-area/use-scroll-area.cjs +10 -9
- package/dist/cjs/components/scroll-area/use-scroll-area.cjs.map +1 -1
- package/dist/cjs/components/segmented-control/use-segmented-control.cjs +18 -17
- package/dist/cjs/components/segmented-control/use-segmented-control.cjs.map +1 -1
- package/dist/cjs/components/simple-grid/simple-grid.cjs +3 -3
- package/dist/cjs/components/simple-grid/simple-grid.cjs.map +1 -1
- package/dist/cjs/components/skeleton/skeleton.cjs +6 -5
- package/dist/cjs/components/skeleton/skeleton.cjs.map +1 -1
- package/dist/cjs/components/stack/stack.cjs +4 -4
- package/dist/cjs/components/stack/stack.cjs.map +1 -1
- package/dist/cjs/components/stat/stat.cjs +2 -2
- package/dist/cjs/components/stat/stat.cjs.map +1 -1
- package/dist/cjs/components/steps/steps.cjs +2 -2
- package/dist/cjs/components/steps/steps.cjs.map +1 -1
- package/dist/cjs/components/steps/use-steps.cjs +11 -9
- package/dist/cjs/components/steps/use-steps.cjs.map +1 -1
- package/dist/cjs/components/switch/switch.cjs +2 -2
- package/dist/cjs/components/switch/switch.cjs.map +1 -1
- package/dist/cjs/components/switch/use-switch.cjs +10 -9
- package/dist/cjs/components/switch/use-switch.cjs.map +1 -1
- package/dist/cjs/components/tabs/tabs.cjs +3 -3
- package/dist/cjs/components/tabs/tabs.cjs.map +1 -1
- package/dist/cjs/components/tabs/use-tabs.cjs +8 -6
- package/dist/cjs/components/tabs/use-tabs.cjs.map +1 -1
- package/dist/cjs/components/tag/tag.cjs +6 -6
- package/dist/cjs/components/tag/tag.cjs.map +1 -1
- package/dist/cjs/components/textarea/use-autosize.cjs +9 -6
- package/dist/cjs/components/textarea/use-autosize.cjs.map +1 -1
- package/dist/cjs/components/textarea/use-textarea.cjs +2 -2
- package/dist/cjs/components/textarea/use-textarea.cjs.map +1 -1
- package/dist/cjs/components/toggle/use-toggle-group.cjs +8 -6
- package/dist/cjs/components/toggle/use-toggle-group.cjs.map +1 -1
- package/dist/cjs/components/toggle/use-toggle.cjs +11 -9
- package/dist/cjs/components/toggle/use-toggle.cjs.map +1 -1
- package/dist/cjs/components/tooltip/tooltip.cjs +2 -2
- package/dist/cjs/components/tooltip/tooltip.cjs.map +1 -1
- package/dist/cjs/components/tooltip/use-tooltip.cjs +17 -15
- package/dist/cjs/components/tooltip/use-tooltip.cjs.map +1 -1
- package/dist/cjs/core/components/create-component.cjs +26 -23
- package/dist/cjs/core/components/create-component.cjs.map +1 -1
- package/dist/cjs/core/components/props.cjs +20 -17
- package/dist/cjs/core/components/props.cjs.map +1 -1
- package/dist/cjs/core/components/use-component-style.cjs +35 -32
- package/dist/cjs/core/components/use-component-style.cjs.map +1 -1
- package/dist/cjs/core/components/utils.cjs +3 -3
- package/dist/cjs/core/components/utils.cjs.map +1 -1
- package/dist/cjs/core/css/animation.cjs +5 -4
- package/dist/cjs/core/css/animation.cjs.map +1 -1
- package/dist/cjs/core/css/at-rule.cjs +6 -4
- package/dist/cjs/core/css/at-rule.cjs.map +1 -1
- package/dist/cjs/core/css/calc.cjs +2 -2
- package/dist/cjs/core/css/calc.cjs.map +1 -1
- package/dist/cjs/core/css/color-mix.cjs +2 -2
- package/dist/cjs/core/css/color-mix.cjs.map +1 -1
- package/dist/cjs/core/css/color-scheme.cjs +4 -3
- package/dist/cjs/core/css/color-scheme.cjs.map +1 -1
- package/dist/cjs/core/css/config.cjs +5 -5
- package/dist/cjs/core/css/config.cjs.map +1 -1
- package/dist/cjs/core/css/css.cjs +24 -22
- package/dist/cjs/core/css/css.cjs.map +1 -1
- package/dist/cjs/core/css/gradient.cjs +4 -4
- package/dist/cjs/core/css/gradient.cjs.map +1 -1
- package/dist/cjs/core/css/merge-css.cjs +2 -2
- package/dist/cjs/core/css/merge-css.cjs.map +1 -1
- package/dist/cjs/core/css/style.cjs +2 -2
- package/dist/cjs/core/css/style.cjs.map +1 -1
- package/dist/cjs/core/css/utils.cjs +4 -4
- package/dist/cjs/core/css/utils.cjs.map +1 -1
- package/dist/cjs/core/system/breakpoint.cjs +4 -3
- package/dist/cjs/core/system/breakpoint.cjs.map +1 -1
- package/dist/cjs/core/system/color-mode-provider.cjs +9 -8
- package/dist/cjs/core/system/color-mode-provider.cjs.map +1 -1
- package/dist/cjs/core/system/create-system.cjs +15 -13
- package/dist/cjs/core/system/create-system.cjs.map +1 -1
- package/dist/cjs/core/system/environment-provider.cjs +5 -4
- package/dist/cjs/core/system/environment-provider.cjs.map +1 -1
- package/dist/cjs/core/system/layer.cjs +3 -3
- package/dist/cjs/core/system/layer.cjs.map +1 -1
- package/dist/cjs/core/system/styled.cjs +17 -12
- package/dist/cjs/core/system/styled.cjs.map +1 -1
- package/dist/cjs/core/system/theme-provider.cjs +7 -6
- package/dist/cjs/core/system/theme-provider.cjs.map +1 -1
- package/dist/cjs/core/system/use-system-color-mode.cjs +2 -2
- package/dist/cjs/core/system/use-system-color-mode.cjs.map +1 -1
- package/dist/cjs/core/system/var.cjs +17 -14
- package/dist/cjs/core/system/var.cjs.map +1 -1
- package/dist/cjs/hooks/use-animation/index.cjs +12 -10
- package/dist/cjs/hooks/use-animation/index.cjs.map +1 -1
- package/dist/cjs/hooks/use-breakpoint/use-breakpoint.cjs +6 -4
- package/dist/cjs/hooks/use-breakpoint/use-breakpoint.cjs.map +1 -1
- package/dist/cjs/hooks/use-clickable/index.cjs +4 -4
- package/dist/cjs/hooks/use-clickable/index.cjs.map +1 -1
- package/dist/cjs/hooks/use-clipboard/index.cjs +3 -3
- package/dist/cjs/hooks/use-clipboard/index.cjs.map +1 -1
- package/dist/cjs/hooks/use-controllable-state/index.cjs +5 -4
- package/dist/cjs/hooks/use-controllable-state/index.cjs.map +1 -1
- package/dist/cjs/hooks/use-counter/index.cjs +5 -5
- package/dist/cjs/hooks/use-counter/index.cjs.map +1 -1
- package/dist/cjs/hooks/use-descendant/index.cjs +4 -3
- package/dist/cjs/hooks/use-descendant/index.cjs.map +1 -1
- package/dist/cjs/hooks/use-disclosure/use-promise-disclosure.cjs +2 -2
- package/dist/cjs/hooks/use-disclosure/use-promise-disclosure.cjs.map +1 -1
- package/dist/cjs/hooks/use-event-listener/index.cjs +3 -3
- package/dist/cjs/hooks/use-event-listener/index.cjs.map +1 -1
- package/dist/cjs/hooks/use-focus/index.cjs +7 -7
- package/dist/cjs/hooks/use-focus/index.cjs.map +1 -1
- package/dist/cjs/hooks/use-focus-visible/index.cjs +2 -2
- package/dist/cjs/hooks/use-focus-visible/index.cjs.map +1 -1
- package/dist/cjs/hooks/use-local-storage/index.cjs +2 -2
- package/dist/cjs/hooks/use-local-storage/index.cjs.map +1 -1
- package/dist/cjs/hooks/use-os/index.cjs +2 -2
- package/dist/cjs/hooks/use-os/index.cjs.map +1 -1
- package/dist/cjs/hooks/use-outside-click/index.cjs +3 -3
- package/dist/cjs/hooks/use-outside-click/index.cjs.map +1 -1
- package/dist/cjs/hooks/use-pan-event/index.cjs +6 -6
- package/dist/cjs/hooks/use-pan-event/index.cjs.map +1 -1
- package/dist/cjs/hooks/use-resize-observer/index.cjs +2 -2
- package/dist/cjs/hooks/use-resize-observer/index.cjs.map +1 -1
- package/dist/cjs/hooks/use-size/index.cjs +3 -3
- package/dist/cjs/hooks/use-size/index.cjs.map +1 -1
- package/dist/cjs/hooks/use-token/index.cjs +9 -8
- package/dist/cjs/hooks/use-token/index.cjs.map +1 -1
- package/dist/cjs/hooks/use-value/index.cjs +3 -3
- package/dist/cjs/hooks/use-value/index.cjs.map +1 -1
- package/dist/cjs/index.cjs +148 -2468
- package/dist/cjs/providers/i18n-provider/i18n-provider.cjs +16 -12
- package/dist/cjs/providers/i18n-provider/i18n-provider.cjs.map +1 -1
- package/dist/cjs/utils/common/array.cjs +14 -0
- package/dist/cjs/utils/common/array.cjs.map +1 -0
- package/dist/cjs/utils/common/assertion.cjs +73 -0
- package/dist/cjs/utils/common/assertion.cjs.map +1 -0
- package/dist/cjs/utils/common/calc.cjs +39 -0
- package/dist/cjs/utils/common/calc.cjs.map +1 -0
- package/dist/cjs/utils/common/color.cjs +247 -0
- package/dist/cjs/utils/common/color.cjs.map +1 -0
- package/dist/cjs/utils/common/dom.cjs +378 -0
- package/dist/cjs/utils/common/dom.cjs.map +1 -0
- package/dist/cjs/utils/common/event.cjs +92 -0
- package/dist/cjs/utils/common/event.cjs.map +1 -0
- package/dist/cjs/utils/common/function.cjs +27 -0
- package/dist/cjs/utils/common/function.cjs.map +1 -0
- package/dist/cjs/utils/common/i18n.cjs +46 -0
- package/dist/cjs/utils/common/i18n.cjs.map +1 -0
- package/dist/cjs/utils/common/index.cjs +148 -0
- package/dist/cjs/utils/common/index.types.cjs +0 -0
- package/dist/cjs/utils/common/module.cjs +9 -0
- package/dist/cjs/utils/common/module.cjs.map +1 -0
- package/dist/cjs/utils/common/number.cjs +46 -0
- package/dist/cjs/utils/common/number.cjs.map +1 -0
- package/dist/cjs/utils/common/object.cjs +120 -0
- package/dist/cjs/utils/common/object.cjs.map +1 -0
- package/dist/cjs/utils/common/string.cjs +95 -0
- package/dist/cjs/utils/common/string.cjs.map +1 -0
- package/dist/cjs/utils/index.cjs +147 -49
- package/dist/esm/_virtual/rolldown_runtime.js +1 -15
- package/dist/esm/components/accordion/accordion.js +7 -6
- package/dist/esm/components/accordion/accordion.js.map +1 -1
- package/dist/esm/components/accordion/use-accordion.js +14 -11
- package/dist/esm/components/accordion/use-accordion.js.map +1 -1
- package/dist/esm/components/airy/airy.js +5 -4
- package/dist/esm/components/airy/airy.js.map +1 -1
- package/dist/esm/components/aspect-ratio/aspect-ratio.js +2 -2
- package/dist/esm/components/aspect-ratio/aspect-ratio.js.map +1 -1
- package/dist/esm/components/avatar/use-avatar-group.js +3 -3
- package/dist/esm/components/avatar/use-avatar-group.js.map +1 -1
- package/dist/esm/components/avatar/use-avatar.js +5 -4
- package/dist/esm/components/avatar/use-avatar.js.map +1 -1
- package/dist/esm/components/bleed/bleed.js +5 -5
- package/dist/esm/components/bleed/bleed.js.map +1 -1
- package/dist/esm/components/breadcrumb/use-breadcrumb.js +2 -2
- package/dist/esm/components/breadcrumb/use-breadcrumb.js.map +1 -1
- package/dist/esm/components/button/button.js +11 -10
- package/dist/esm/components/button/button.js.map +1 -1
- package/dist/esm/components/carousel/carousel.js +3 -3
- package/dist/esm/components/carousel/carousel.js.map +1 -1
- package/dist/esm/components/carousel/use-carousel.js +12 -10
- package/dist/esm/components/carousel/use-carousel.js.map +1 -1
- package/dist/esm/components/circle-progress/circle-progress.js +2 -2
- package/dist/esm/components/circle-progress/circle-progress.js.map +1 -1
- package/dist/esm/components/collapse/collapse.js +4 -3
- package/dist/esm/components/collapse/collapse.js.map +1 -1
- package/dist/esm/components/color-swatch/color-swatch.js +2 -2
- package/dist/esm/components/color-swatch/color-swatch.js.map +1 -1
- package/dist/esm/components/data-list/data-list.js +8 -8
- package/dist/esm/components/data-list/data-list.js.map +1 -1
- package/dist/esm/components/drawer/drawer.js +2 -2
- package/dist/esm/components/drawer/drawer.js.map +1 -1
- package/dist/esm/components/drawer/use-drawer.js +4 -3
- package/dist/esm/components/drawer/use-drawer.js.map +1 -1
- package/dist/esm/components/editable/editable.js +2 -2
- package/dist/esm/components/editable/editable.js.map +1 -1
- package/dist/esm/components/editable/use-editable.js +16 -15
- package/dist/esm/components/editable/use-editable.js.map +1 -1
- package/dist/esm/components/empty-state/empty-state.js +2 -2
- package/dist/esm/components/empty-state/empty-state.js.map +1 -1
- package/dist/esm/components/field/field.js +11 -10
- package/dist/esm/components/field/field.js.map +1 -1
- package/dist/esm/components/field/use-field-props.js +14 -12
- package/dist/esm/components/field/use-field-props.js.map +1 -1
- package/dist/esm/components/fieldset/fieldset.js +5 -4
- package/dist/esm/components/fieldset/fieldset.js.map +1 -1
- package/dist/esm/components/file-button/use-file-button.js +2 -2
- package/dist/esm/components/file-button/use-file-button.js.map +1 -1
- package/dist/esm/components/file-input/use-file-input.js +7 -5
- package/dist/esm/components/file-input/use-file-input.js.map +1 -1
- package/dist/esm/components/flip/flip.js +5 -4
- package/dist/esm/components/flip/flip.js.map +1 -1
- package/dist/esm/components/float/float.js +2 -2
- package/dist/esm/components/float/float.js.map +1 -1
- package/dist/esm/components/focus-lock/focus-lock.js +4 -3
- package/dist/esm/components/focus-lock/focus-lock.js.map +1 -1
- package/dist/esm/components/for/for.js +2 -2
- package/dist/esm/components/for/for.js.map +1 -1
- package/dist/esm/components/grid/grid-item.js +3 -3
- package/dist/esm/components/grid/grid-item.js.map +1 -1
- package/dist/esm/components/group/group.js +2 -2
- package/dist/esm/components/group/group.js.map +1 -1
- package/dist/esm/components/group/use-group.js +6 -5
- package/dist/esm/components/group/use-group.js.map +1 -1
- package/dist/esm/components/highlight/use-highlight.js +2 -2
- package/dist/esm/components/highlight/use-highlight.js.map +1 -1
- package/dist/esm/components/indicator/indicator.js +5 -4
- package/dist/esm/components/indicator/indicator.js.map +1 -1
- package/dist/esm/components/infinite-scroll-area/use-infinite-scroll.js +3 -3
- package/dist/esm/components/infinite-scroll-area/use-infinite-scroll.js.map +1 -1
- package/dist/esm/components/input/input.style.js +5 -5
- package/dist/esm/components/input/input.style.js.map +1 -1
- package/dist/esm/components/link-box/link-box.js +2 -2
- package/dist/esm/components/link-box/link-box.js.map +1 -1
- package/dist/esm/components/loading/audio.js +2 -2
- package/dist/esm/components/loading/audio.js.map +1 -1
- package/dist/esm/components/loading/loading-provider.js +2 -2
- package/dist/esm/components/loading/loading-provider.js.map +1 -1
- package/dist/esm/components/loading/rings.js +2 -2
- package/dist/esm/components/loading/rings.js.map +1 -1
- package/dist/esm/components/loading/use-loading-component.js +5 -4
- package/dist/esm/components/loading/use-loading-component.js.map +1 -1
- package/dist/esm/components/modal/modal.js +3 -3
- package/dist/esm/components/modal/modal.js.map +1 -1
- package/dist/esm/components/modal/use-modal.js +9 -8
- package/dist/esm/components/modal/use-modal.js.map +1 -1
- package/dist/esm/components/motion/motion.js +2 -2
- package/dist/esm/components/motion/motion.js.map +1 -1
- package/dist/esm/components/motion/transition.js +5 -5
- package/dist/esm/components/motion/transition.js.map +1 -1
- package/dist/esm/components/native-select/use-native-select.js +5 -4
- package/dist/esm/components/native-select/use-native-select.js.map +1 -1
- package/dist/esm/components/number-input/use-number-counter.js +5 -5
- package/dist/esm/components/number-input/use-number-counter.js.map +1 -1
- package/dist/esm/components/number-input/use-number-input.js +8 -7
- package/dist/esm/components/number-input/use-number-input.js.map +1 -1
- package/dist/esm/components/pagination/pagination.js +4 -3
- package/dist/esm/components/pagination/pagination.js.map +1 -1
- package/dist/esm/components/pagination/use-pagination.js +8 -7
- package/dist/esm/components/pagination/use-pagination.js.map +1 -1
- package/dist/esm/components/password-input/use-password-input.js +4 -4
- package/dist/esm/components/password-input/use-password-input.js.map +1 -1
- package/dist/esm/components/password-input/use-strength-meter.js +2 -2
- package/dist/esm/components/password-input/use-strength-meter.js.map +1 -1
- package/dist/esm/components/picture/picture.js +6 -5
- package/dist/esm/components/picture/picture.js.map +1 -1
- package/dist/esm/components/pin-input/use-pin-input.js +7 -6
- package/dist/esm/components/pin-input/use-pin-input.js.map +1 -1
- package/dist/esm/components/popover/popover.js +4 -3
- package/dist/esm/components/popover/popover.js.map +1 -1
- package/dist/esm/components/popover/use-popover.js +19 -16
- package/dist/esm/components/popover/use-popover.js.map +1 -1
- package/dist/esm/components/portal/portal.js +3 -3
- package/dist/esm/components/portal/portal.js.map +1 -1
- package/dist/esm/components/progress/progress.js +2 -2
- package/dist/esm/components/progress/progress.js.map +1 -1
- package/dist/esm/components/progress/use-progress.js +6 -5
- package/dist/esm/components/progress/use-progress.js.map +1 -1
- package/dist/esm/components/reorder/use-reorder.js +11 -9
- package/dist/esm/components/reorder/use-reorder.js.map +1 -1
- package/dist/esm/components/resizable/use-resizable.js +10 -9
- package/dist/esm/components/resizable/use-resizable.js.map +1 -1
- package/dist/esm/components/ripple/ripple.js +2 -2
- package/dist/esm/components/ripple/ripple.js.map +1 -1
- package/dist/esm/components/ripple/use-ripple.js +4 -3
- package/dist/esm/components/ripple/use-ripple.js.map +1 -1
- package/dist/esm/components/rotate/rotate.js +5 -4
- package/dist/esm/components/rotate/rotate.js.map +1 -1
- package/dist/esm/components/scroll-area/use-scroll-area.js +10 -9
- package/dist/esm/components/scroll-area/use-scroll-area.js.map +1 -1
- package/dist/esm/components/segmented-control/use-segmented-control.js +18 -17
- package/dist/esm/components/segmented-control/use-segmented-control.js.map +1 -1
- package/dist/esm/components/simple-grid/simple-grid.js +3 -3
- package/dist/esm/components/simple-grid/simple-grid.js.map +1 -1
- package/dist/esm/components/skeleton/skeleton.js +6 -5
- package/dist/esm/components/skeleton/skeleton.js.map +1 -1
- package/dist/esm/components/stack/stack.js +4 -4
- package/dist/esm/components/stack/stack.js.map +1 -1
- package/dist/esm/components/stat/stat.js +2 -2
- package/dist/esm/components/stat/stat.js.map +1 -1
- package/dist/esm/components/steps/steps.js +2 -2
- package/dist/esm/components/steps/steps.js.map +1 -1
- package/dist/esm/components/steps/use-steps.js +11 -9
- package/dist/esm/components/steps/use-steps.js.map +1 -1
- package/dist/esm/components/switch/switch.js +2 -2
- package/dist/esm/components/switch/switch.js.map +1 -1
- package/dist/esm/components/switch/use-switch.js +10 -9
- package/dist/esm/components/switch/use-switch.js.map +1 -1
- package/dist/esm/components/tabs/tabs.js +3 -3
- package/dist/esm/components/tabs/tabs.js.map +1 -1
- package/dist/esm/components/tabs/use-tabs.js +8 -6
- package/dist/esm/components/tabs/use-tabs.js.map +1 -1
- package/dist/esm/components/tag/tag.js +6 -6
- package/dist/esm/components/tag/tag.js.map +1 -1
- package/dist/esm/components/textarea/use-autosize.js +9 -6
- package/dist/esm/components/textarea/use-autosize.js.map +1 -1
- package/dist/esm/components/textarea/use-textarea.js +2 -2
- package/dist/esm/components/textarea/use-textarea.js.map +1 -1
- package/dist/esm/components/toggle/use-toggle-group.js +8 -6
- package/dist/esm/components/toggle/use-toggle-group.js.map +1 -1
- package/dist/esm/components/toggle/use-toggle.js +11 -9
- package/dist/esm/components/toggle/use-toggle.js.map +1 -1
- package/dist/esm/components/tooltip/tooltip.js +2 -2
- package/dist/esm/components/tooltip/tooltip.js.map +1 -1
- package/dist/esm/components/tooltip/use-tooltip.js +17 -15
- package/dist/esm/components/tooltip/use-tooltip.js.map +1 -1
- package/dist/esm/core/components/create-component.js +26 -23
- package/dist/esm/core/components/create-component.js.map +1 -1
- package/dist/esm/core/components/props.js +20 -17
- package/dist/esm/core/components/props.js.map +1 -1
- package/dist/esm/core/components/use-component-style.js +35 -32
- package/dist/esm/core/components/use-component-style.js.map +1 -1
- package/dist/esm/core/components/utils.js +3 -3
- package/dist/esm/core/components/utils.js.map +1 -1
- package/dist/esm/core/css/animation.js +5 -4
- package/dist/esm/core/css/animation.js.map +1 -1
- package/dist/esm/core/css/at-rule.js +6 -4
- package/dist/esm/core/css/at-rule.js.map +1 -1
- package/dist/esm/core/css/calc.js +2 -2
- package/dist/esm/core/css/calc.js.map +1 -1
- package/dist/esm/core/css/color-mix.js +2 -2
- package/dist/esm/core/css/color-mix.js.map +1 -1
- package/dist/esm/core/css/color-scheme.js +4 -3
- package/dist/esm/core/css/color-scheme.js.map +1 -1
- package/dist/esm/core/css/config.js +5 -5
- package/dist/esm/core/css/config.js.map +1 -1
- package/dist/esm/core/css/css.js +24 -22
- package/dist/esm/core/css/css.js.map +1 -1
- package/dist/esm/core/css/gradient.js +4 -4
- package/dist/esm/core/css/gradient.js.map +1 -1
- package/dist/esm/core/css/merge-css.js +2 -2
- package/dist/esm/core/css/merge-css.js.map +1 -1
- package/dist/esm/core/css/style.js +2 -2
- package/dist/esm/core/css/style.js.map +1 -1
- package/dist/esm/core/css/utils.js +4 -4
- package/dist/esm/core/css/utils.js.map +1 -1
- package/dist/esm/core/system/breakpoint.js +4 -3
- package/dist/esm/core/system/breakpoint.js.map +1 -1
- package/dist/esm/core/system/color-mode-provider.js +9 -8
- package/dist/esm/core/system/color-mode-provider.js.map +1 -1
- package/dist/esm/core/system/create-system.js +15 -13
- package/dist/esm/core/system/create-system.js.map +1 -1
- package/dist/esm/core/system/environment-provider.js +5 -4
- package/dist/esm/core/system/environment-provider.js.map +1 -1
- package/dist/esm/core/system/layer.js +3 -3
- package/dist/esm/core/system/layer.js.map +1 -1
- package/dist/esm/core/system/styled.js +17 -12
- package/dist/esm/core/system/styled.js.map +1 -1
- package/dist/esm/core/system/theme-provider.js +7 -6
- package/dist/esm/core/system/theme-provider.js.map +1 -1
- package/dist/esm/core/system/use-system-color-mode.js +2 -2
- package/dist/esm/core/system/use-system-color-mode.js.map +1 -1
- package/dist/esm/core/system/var.js +17 -14
- package/dist/esm/core/system/var.js.map +1 -1
- package/dist/esm/hooks/use-animation/index.js +12 -10
- package/dist/esm/hooks/use-animation/index.js.map +1 -1
- package/dist/esm/hooks/use-breakpoint/use-breakpoint.js +6 -4
- package/dist/esm/hooks/use-breakpoint/use-breakpoint.js.map +1 -1
- package/dist/esm/hooks/use-clickable/index.js +4 -4
- package/dist/esm/hooks/use-clickable/index.js.map +1 -1
- package/dist/esm/hooks/use-clipboard/index.js +3 -3
- package/dist/esm/hooks/use-clipboard/index.js.map +1 -1
- package/dist/esm/hooks/use-controllable-state/index.js +5 -4
- package/dist/esm/hooks/use-controllable-state/index.js.map +1 -1
- package/dist/esm/hooks/use-counter/index.js +5 -5
- package/dist/esm/hooks/use-counter/index.js.map +1 -1
- package/dist/esm/hooks/use-descendant/index.js +4 -3
- package/dist/esm/hooks/use-descendant/index.js.map +1 -1
- package/dist/esm/hooks/use-disclosure/use-promise-disclosure.js +2 -2
- package/dist/esm/hooks/use-disclosure/use-promise-disclosure.js.map +1 -1
- package/dist/esm/hooks/use-event-listener/index.js +3 -3
- package/dist/esm/hooks/use-event-listener/index.js.map +1 -1
- package/dist/esm/hooks/use-focus/index.js +7 -7
- package/dist/esm/hooks/use-focus/index.js.map +1 -1
- package/dist/esm/hooks/use-focus-visible/index.js +2 -2
- package/dist/esm/hooks/use-focus-visible/index.js.map +1 -1
- package/dist/esm/hooks/use-local-storage/index.js +2 -2
- package/dist/esm/hooks/use-local-storage/index.js.map +1 -1
- package/dist/esm/hooks/use-os/index.js +2 -2
- package/dist/esm/hooks/use-os/index.js.map +1 -1
- package/dist/esm/hooks/use-outside-click/index.js +3 -3
- package/dist/esm/hooks/use-outside-click/index.js.map +1 -1
- package/dist/esm/hooks/use-pan-event/index.js +6 -6
- package/dist/esm/hooks/use-pan-event/index.js.map +1 -1
- package/dist/esm/hooks/use-resize-observer/index.js +2 -2
- package/dist/esm/hooks/use-resize-observer/index.js.map +1 -1
- package/dist/esm/hooks/use-size/index.js +3 -3
- package/dist/esm/hooks/use-size/index.js.map +1 -1
- package/dist/esm/hooks/use-token/index.js +9 -8
- package/dist/esm/hooks/use-token/index.js.map +1 -1
- package/dist/esm/hooks/use-value/index.js +3 -3
- package/dist/esm/hooks/use-value/index.js.map +1 -1
- package/dist/esm/index.js +13 -2468
- package/dist/esm/providers/i18n-provider/i18n-provider.js +16 -12
- package/dist/esm/providers/i18n-provider/i18n-provider.js.map +1 -1
- package/dist/esm/utils/common/array.js +13 -0
- package/dist/esm/utils/common/array.js.map +1 -0
- package/dist/esm/utils/common/assertion.js +56 -0
- package/dist/esm/utils/common/assertion.js.map +1 -0
- package/dist/esm/utils/common/calc.js +38 -0
- package/dist/esm/utils/common/calc.js.map +1 -0
- package/dist/esm/utils/common/color.js +232 -0
- package/dist/esm/utils/common/color.js.map +1 -0
- package/dist/esm/utils/common/dom.js +325 -0
- package/dist/esm/utils/common/dom.js.map +1 -0
- package/dist/esm/utils/common/event.js +83 -0
- package/dist/esm/utils/common/event.js.map +1 -0
- package/dist/esm/utils/common/function.js +24 -0
- package/dist/esm/utils/common/function.js.map +1 -0
- package/dist/esm/utils/common/i18n.js +45 -0
- package/dist/esm/utils/common/i18n.js.map +1 -0
- package/dist/esm/utils/common/index.js +14 -0
- package/dist/esm/utils/common/index.types.js +0 -0
- package/dist/esm/utils/common/module.js +8 -0
- package/dist/esm/utils/common/module.js.map +1 -0
- package/dist/esm/utils/common/number.js +39 -0
- package/dist/esm/utils/common/number.js.map +1 -0
- package/dist/esm/utils/common/object.js +108 -0
- package/dist/esm/utils/common/object.js.map +1 -0
- package/dist/esm/utils/common/string.js +86 -0
- package/dist/esm/utils/common/string.js.map +1 -0
- package/dist/esm/utils/index.js +13 -39
- package/dist/types/components/accordion/accordion.d.ts +5 -5
- package/dist/types/components/airy/airy.d.ts +5 -5
- package/dist/types/components/alert/alert.d.ts +7 -7
- package/dist/types/components/alert/alert.style.d.ts +1 -1
- package/dist/types/components/aspect-ratio/aspect-ratio.d.ts +3 -3
- package/dist/types/components/avatar/avatar.d.ts +8 -8
- package/dist/types/components/avatar/avatar.style.d.ts +1 -1
- package/dist/types/components/avatar/use-avatar-group.d.ts +2 -2
- package/dist/types/components/badge/badge.d.ts +3 -3
- package/dist/types/components/bleed/bleed.d.ts +3 -3
- package/dist/types/components/blockquote/blockquote.d.ts +5 -5
- package/dist/types/components/breadcrumb/breadcrumb.d.ts +6 -6
- package/dist/types/components/breadcrumb/breadcrumb.style.d.ts +1 -1
- package/dist/types/components/breadcrumb/use-breadcrumb.d.ts +2 -2
- package/dist/types/components/button/button.d.ts +7 -7
- package/dist/types/components/button/close-button.d.ts +5 -5
- package/dist/types/components/button/icon-button.d.ts +5 -5
- package/dist/types/components/card/card.d.ts +5 -5
- package/dist/types/components/carousel/carousel.d.ts +8 -8
- package/dist/types/components/carousel/carousel.style.d.ts +2 -2
- package/dist/types/components/carousel/use-carousel.d.ts +3 -3
- package/dist/types/components/center/center.d.ts +3 -3
- package/dist/types/components/circle-progress/circle-progress.d.ts +5 -5
- package/dist/types/components/code/code.d.ts +3 -3
- package/dist/types/components/collapse/collapse.d.ts +5 -5
- package/dist/types/components/color-swatch/color-swatch.d.ts +5 -5
- package/dist/types/components/container/container.d.ts +5 -5
- package/dist/types/components/data-list/data-list.d.ts +8 -8
- package/dist/types/components/data-list/data-list.style.d.ts +1 -1
- package/dist/types/components/drawer/drawer.d.ts +12 -12
- package/dist/types/components/drawer/drawer.style.d.ts +2 -2
- package/dist/types/components/editable/editable.d.ts +7 -7
- package/dist/types/components/editable/use-editable.d.ts +2 -2
- package/dist/types/components/em/em.d.ts +3 -3
- package/dist/types/components/empty-state/empty-state.d.ts +5 -5
- package/dist/types/components/fade/fade-scale.d.ts +5 -5
- package/dist/types/components/fade/fade.d.ts +5 -5
- package/dist/types/components/field/field.d.ts +6 -6
- package/dist/types/components/field/use-field-props.d.ts +6 -6
- package/dist/types/components/fieldset/fieldset.d.ts +6 -6
- package/dist/types/components/file-button/file-button.d.ts +3 -3
- package/dist/types/components/file-button/use-file-button.d.ts +18 -18
- package/dist/types/components/file-input/file-input.d.ts +6 -6
- package/dist/types/components/file-input/file-input.style.d.ts +1 -1
- package/dist/types/components/file-input/use-file-input.d.ts +18 -18
- package/dist/types/components/flex/flex.d.ts +3 -3
- package/dist/types/components/flip/flip.d.ts +7 -7
- package/dist/types/components/float/float.d.ts +3 -3
- package/dist/types/components/format/format-byte.d.ts +5 -5
- package/dist/types/components/format/format-number.d.ts +3 -3
- package/dist/types/components/grid/grid-item.d.ts +4 -4
- package/dist/types/components/grid/grid.d.ts +3 -3
- package/dist/types/components/group/group.d.ts +5 -5
- package/dist/types/components/group/use-group.d.ts +828 -828
- package/dist/types/components/heading/heading.d.ts +3 -3
- package/dist/types/components/icon/icon.d.ts +5 -5
- package/dist/types/components/icon/icons/a-arrow-down-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/a-arrow-up-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/a-large-small-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/accessibility-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/activity-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/air-vent-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/airplay-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/alarm-clock-check-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/alarm-clock-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/alarm-clock-minus-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/alarm-clock-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/alarm-clock-plus-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/alarm-smoke-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/album-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/align-center-horizontal-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/align-center-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/align-center-vertical-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/align-end-horizontal-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/align-end-vertical-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/align-horizontal-distribute-center-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/align-horizontal-distribute-end-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/align-horizontal-distribute-start-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/align-horizontal-justify-center-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/align-horizontal-justify-end-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/align-horizontal-justify-start-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/align-horizontal-space-around-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/align-justify-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/align-right-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/align-start-horizontal-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/align-vertical-distribute-center-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/align-vertical-distribute-start-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/align-vertical-justify-center-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/align-vertical-justify-end-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/align-vertical-justify-start-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/align-vertical-space-around-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/ambulance-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/ampersand-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/ampersands-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/anchor-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/angry-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/antenna-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/anvil-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/app-window-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/app-window-mac-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/apple-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/archive-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/archive-x-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/armchair-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/arrow-big-left-dash-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/arrow-big-right-dash-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/arrow-big-right-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/arrow-big-up-dash-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/arrow-big-up-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/arrow-down-a-z-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/arrow-down-from-line-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/arrow-down-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/arrow-down-right-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/arrow-down-to-dot-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/arrow-down-to-line-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/arrow-down-wide-narrow-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/arrow-down-z-a-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/arrow-down01-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/arrow-down10-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/arrow-left-from-line-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/arrow-left-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/arrow-left-right-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/arrow-right-from-line-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/arrow-right-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/arrow-right-left-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/arrow-right-to-line-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/arrow-up-a-z-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/arrow-up-left-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/arrow-up-right-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/arrow-up-z-a-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/arrow-up01-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/arrow-up10-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/arrows-up-from-line-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/asterisk-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/at-sign-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/atom-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/audio-lines-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/audio-waveform-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/axe-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/baby-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/backpack-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/badge-alert-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/badge-cent-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/badge-check-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/badge-dollar-sign-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/badge-euro-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/badge-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/badge-info-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/badge-japanese-yen-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/badge-minus-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/badge-percent-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/badge-plus-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/badge-pound-sterling-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/baggage-claim-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/ban-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/banknote-arrow-up-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/banknote-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/banknote-x-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/barcode-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/barrel-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/baseline-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/bath-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/battery-charging-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/battery-full-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/battery-medium-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/battery-plus-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/battery-warning-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/beaker-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/bean-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/bean-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/beef-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/beer-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/bell-dot-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/bell-minus-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/bell-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/bell-plus-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/bell-ring-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/between-horizontal-start-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/between-vertical-start-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/binary-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/binoculars-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/biohazard-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/bird-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/bitcoin-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/blend-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/bluetooth-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/bluetooth-searching-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/bomb-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/bone-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/book-dashed-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/book-down-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/book-headphones-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/book-heart-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/book-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/book-image-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/book-minus-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/book-open-check-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/book-text-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/book-type-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/book-up-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/book-up2-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/bookmark-x-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/boom-box-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/bot-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/bot-message-square-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/bottle-wine-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/bow-arrow-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/box-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/boxes-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/brackets-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/brain-circuit-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/brain-cog-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/briefcase-conveyor-belt-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/briefcase-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/brush-cleaning-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/brush-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/bubbles-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/bug-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/bug-play-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/building-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/bus-front-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/bus-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/cable-car-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/cable-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/cake-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/cake-slice-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/calculator-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/calendar-arrow-down-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/calendar-arrow-up-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/calendar-check2-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/calendar-clock-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/calendar-cog-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/calendar-minus-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/calendar-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/calendar-sync-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/calendar-x-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/calendar-x2-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/calendar1-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/cannabis-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/captions-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/caravan-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/card-sim-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/chart-bar-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/chart-bar-increasing-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/chart-bar-stacked-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/chart-column-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/chart-column-increasing-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/chart-column-stacked-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/chart-gantt-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/chart-line-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/chart-no-axes-combined-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/chart-no-axes-gantt-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/chart-pie-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/chart-scatter-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/chart-spline-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/check-check-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/chevron-first-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/chevron-last-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/chevrons-right-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/chevrons-right-left-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/chevrons-up-down-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/cigarette-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/cigarette-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/circle-arrow-left-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/circle-arrow-out-down-left-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/circle-arrow-out-down-right-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/circle-arrow-out-up-left-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/circle-arrow-out-up-right-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/circle-arrow-right-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/circle-arrow-up-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/circle-check-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/circle-chevron-down-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/circle-chevron-left-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/circle-chevron-right-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/circle-dollar-sign-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/circle-dot-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/circle-ellipsis-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/circle-equal-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/circle-fading-plus-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/circle-gauge-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/circle-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/circle-minus-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/circle-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/circle-parking-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/circle-parking-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/circle-pause-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/circle-percent-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/circle-play-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/circle-plus-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/circle-pound-sterling-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/circle-power-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/circle-question-mark-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/circle-slash-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/circle-slash2-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/circle-small-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/circle-stop-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/circle-user-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/circle-user-round-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/circle-x-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/circuit-board-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/citrus-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/clapperboard-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/clipboard-check-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/clipboard-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/clipboard-list-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/clipboard-minus-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/clipboard-paste-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/clipboard-pen-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/clipboard-pen-line-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/clipboard-plus-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/clipboard-type-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/clipboard-x-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/clock-arrow-down-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/clock-arrow-up-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/clock-fading-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/clock-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/clock-plus-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/clock1-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/clock10-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/clock11-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/clock12-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/clock2-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/clock3-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/clock5-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/clock6-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/clock7-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/clock8-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/clock9-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/cloud-alert-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/cloud-check-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/cloud-download-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/cloud-drizzle-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/cloud-fog-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/cloud-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/cloud-lightning-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/cloud-moon-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/cloud-moon-rain-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/cloud-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/cloud-rain-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/cloud-rain-wind-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/cloud-snow-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/cloud-sun-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/cloud-sun-rain-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/cloudy-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/clover-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/club-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/code-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/code-xml-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/codesandbox-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/cog-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/coins-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/columns2-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/columns3-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/combine-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/compass-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/component-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/computer-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/concierge-bell-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/contact-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/contrast-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/copy-plus-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/copy-slash-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/copy-x-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/copyright-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/corner-down-right-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/corner-left-down-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/corner-left-up-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/corner-right-down-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/corner-right-up-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/corner-up-left-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/corner-up-right-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/creative-commons-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/credit-card-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/croissant-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/crop-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/crown-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/cuboid-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/cup-soda-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/currency-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/cylinder-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/dam-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/database-backup-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/database-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/database-zap-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/decimals-arrow-left-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/decimals-arrow-right-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/dessert-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/diamond-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/diamond-minus-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/diamond-percent-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/dice1-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/dice3-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/dice4-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/dice6-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/dices-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/diff-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/disc-album-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/disc-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/disc2-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/divide-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/dna-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/dock-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/dog-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/dollar-sign-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/donut-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/door-closed-locked-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/door-open-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/dot-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/download-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/drafting-compass-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/drama-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/dribbble-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/drill-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/drone-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/droplet-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/droplet-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/droplets-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/drumstick-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/dumbbell-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/ear-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/ear-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/earth-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/earth-lock-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/eclipse-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/egg-fried-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/egg-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/egg-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/ellipsis-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/ellipsis-vertical-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/equal-approximately-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/equal-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/equal-not-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/eraser-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/ethernet-port-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/euro-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/expand-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/external-link-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/eye-closed-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/eye-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/facebook-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/factory-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/fan-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/feather-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/ferris-wheel-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/figma-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/file-archive-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/file-audio-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/file-audio2-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/file-axis3d-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/file-badge-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/file-badge2-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/file-chart-column-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/file-chart-column-increasing-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/file-chart-line-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/file-chart-pie-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/file-check2-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/file-clock-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/file-code-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/file-code2-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/file-cog-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/file-diff-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/file-down-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/file-heart-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/file-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/file-image-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/file-json-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/file-key-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/file-lock-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/file-lock2-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/file-minus2-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/file-music-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/file-output-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/file-plus-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/file-plus2-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/file-search-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/file-search2-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/file-spreadsheet-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/file-symlink-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/file-terminal-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/file-text-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/file-type2-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/file-user-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/file-video-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/file-volume-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/file-volume2-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/file-warning-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/file-x-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/file-x2-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/files-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/film-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/fingerprint-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/fire-extinguisher-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/fish-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/fish-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/fish-symbol-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/flag-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/flag-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/flag-triangle-left-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/flashlight-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/flask-conical-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/flip-horizontal-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/flip-horizontal2-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/flower-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/focus-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/fold-horizontal-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/fold-vertical-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/folder-archive-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/folder-check-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/folder-clock-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/folder-closed-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/folder-dot-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/folder-down-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/folder-heart-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/folder-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/folder-input-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/folder-kanban-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/folder-lock-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/folder-open-dot-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/folder-open-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/folder-output-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/folder-pen-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/folder-plus-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/folder-root-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/folder-search-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/folder-symlink-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/folder-tree-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/folder-up-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/folder-x-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/footprints-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/forward-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/frame-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/frown-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/fuel-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/fullscreen-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/funnel-plus-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/funnel-x-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/gallery-horizontal-end-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/gallery-horizontal-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/gallery-thumbnails-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/gallery-vertical-end-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/gallery-vertical-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/gamepad-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/gamepad2-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/gem-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/georgian-lari-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/git-branch-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/git-branch-plus-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/git-commit-horizontal-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/git-compare-arrows-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/git-compare-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/git-merge-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/git-pull-request-arrow-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/git-pull-request-closed-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/git-pull-request-create-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/git-pull-request-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/github-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/globe-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/globe-lock-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/goal-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/gpu-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/grab-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/graduation-cap-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/grape-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/grid2x2-check-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/grid2x2-plus-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/grid2x2-x-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/grid3x2-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/grid3x3-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/grip-horizontal-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/grip-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/group-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/guitar-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/ham-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/hamburger-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/hammer-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/hand-metal-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/hand-platter-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/handshake-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/hard-drive-download-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/hard-drive-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/hard-drive-upload-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/hard-hat-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/hash-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/heading-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/heading1-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/heading2-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/heading3-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/heading4-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/heading5-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/heading6-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/headphone-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/headphones-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/headset-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/heart-handshake-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/heart-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/heart-plus-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/heart-pulse-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/heater-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/hexagon-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/highlighter-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/history-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/hop-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/hop-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/hospital-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/hourglass-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/house-plug-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/house-plus-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/house-wifi-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/ice-cream-cone-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/id-card-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/id-card-lanyard-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/image-down-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/image-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/image-minus-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/image-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/image-play-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/image-plus-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/image-up-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/image-upscale-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/images-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/import-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/inbox-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/indent-decrease-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/indent-increase-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/indian-rupee-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/infinity-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/info-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/inspection-panel-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/instagram-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/italic-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/iteration-ccw-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/japanese-yen-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/joystick-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/kanban-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/key-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/key-round-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/key-square-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/keyboard-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/lamp-ceiling-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/lamp-desk-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/lamp-floor-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/lamp-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/lamp-wall-down-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/lamp-wall-up-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/landmark-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/languages-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/laptop-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/laptop-minimal-check-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/lasso-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/layers2-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/layout-dashboard-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/layout-grid-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/layout-panel-left-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/layout-panel-top-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/layout-template-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/leaf-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/lectern-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/library-big-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/library-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/ligature-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/lightbulb-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/link-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/link2-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/link2-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/list-check-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/list-checks-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/list-collapse-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/list-end-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/list-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/list-music-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/list-ordered-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/list-plus-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/list-start-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/list-todo-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/list-video-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/list-x-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/loader-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/loader-pinwheel-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/locate-fixed-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/locate-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/locate-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/location-edit-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/lock-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/lock-keyhole-open-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/lock-open-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/log-in-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/log-out-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/logs-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/lollipop-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/luggage-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/magnet-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/mail-check-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/mail-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/mail-minus-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/mail-open-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/mail-plus-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/mail-question-mark-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/mail-search-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/mail-warning-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/mail-x-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/mailbox-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/mails-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/map-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/map-pin-check-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/map-pin-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/map-pin-minus-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/map-pin-minus-inside-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/map-pin-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/map-pin-plus-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/map-pin-plus-inside-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/map-pin-x-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/map-pin-x-inside-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/map-pinned-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/map-plus-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/mars-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/mars-stroke-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/martini-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/maximize-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/maximize2-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/medal-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/megaphone-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/megaphone-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/meh-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/memory-stick-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/menu-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/merge-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/message-circle-code-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/message-circle-dashed-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/message-circle-heart-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/message-circle-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/message-circle-more-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/message-circle-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/message-circle-plus-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/message-circle-question-mark-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/message-circle-reply-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/message-circle-warning-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/message-circle-x-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/message-square-code-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/message-square-dashed-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/message-square-diff-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/message-square-dot-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/message-square-heart-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/message-square-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/message-square-lock-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/message-square-more-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/message-square-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/message-square-plus-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/message-square-quote-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/message-square-reply-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/message-square-share-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/message-square-text-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/message-square-warning-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/messages-square-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/mic-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/mic-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/mic-vocal-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/microchip-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/microscope-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/microwave-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/milestone-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/milk-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/monitor-dot-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/monitor-down-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/monitor-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/monitor-pause-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/monitor-play-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/monitor-smartphone-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/monitor-stop-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/monitor-up-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/monitor-x-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/moon-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/moon-star-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/mountain-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/mouse-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/mouse-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/move-down-right-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/move-horizontal-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/move-up-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/move-up-left-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/move-up-right-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/move-vertical-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/music2-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/music4-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/navigation-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/navigation2-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/navigation2-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/network-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/nfc-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/non-binary-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/notebook-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/notebook-pen-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/notebook-tabs-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/notebook-text-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/notepad-text-dashed-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/notepad-text-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/nut-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/octagon-alert-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/octagon-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/octagon-minus-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/octagon-pause-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/octagon-x-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/omega-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/option-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/orbit-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/origami-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/package-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/package-open-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/package-plus-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/package-search-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/package-x-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/package2-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/paint-bucket-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/palette-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/panda-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/panel-bottom-close-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/panel-bottom-dashed-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/panel-bottom-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/panel-bottom-open-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/panel-left-close-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/panel-left-dashed-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/panel-left-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/panel-left-open-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/panel-right-close-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/panel-right-dashed-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/panel-right-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/panel-right-open-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/panel-top-close-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/panel-top-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/panel-top-open-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/panels-left-bottom-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/panels-right-bottom-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/panels-top-left-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/paperclip-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/parentheses-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/parking-meter-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/party-popper-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/pause-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/paw-print-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/pc-case-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/pen-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/pen-line-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/pen-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/pen-tool-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/pencil-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/pencil-line-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/pencil-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/philippine-peso-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/phone-forwarded-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/phone-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/phone-outgoing-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/pi-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/piano-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/picture-in-picture-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/picture-in-picture2-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/piggy-bank-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/pilcrow-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/pilcrow-left-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/pill-bottle-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/pin-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/pin-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/pipette-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/pizza-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/plane-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/plug-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/plug2-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/plus-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/pocket-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/podcast-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/pointer-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/pointer-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/popcorn-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/power-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/printer-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/projector-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/proportions-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/puzzle-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/qr-code-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/quote-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/radical-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/radio-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/radio-receiver-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/radio-tower-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/radius-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/rainbow-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/ratio-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/receipt-cent-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/receipt-japanese-yen-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/receipt-pound-sterling-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/receipt-russian-ruble-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/receipt-swiss-franc-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/receipt-text-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/rectangle-circle-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/rectangle-vertical-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/recycle-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/redo-dot-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/redo2-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/refresh-cw-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/refresh-cw-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/repeat-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/replace-all-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/replace-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/reply-all-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/reply-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/rewind-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/ribbon-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/rocket-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/rocking-chair-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/roller-coaster-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/rotate-ccw-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/rotate-ccw-key-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/rotate-ccw-square-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/rotate-cw-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/rotate-cw-square-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/rotate3d-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/route-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/router-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/rows2-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/rows3-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/rows4-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/rss-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/ruler-dimension-line-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/sailboat-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/salad-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/sandwich-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/satellite-dish-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/satellite-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/saudi-riyal-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/save-all-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/save-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/save-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/scale-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/scale3d-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/scaling-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/scan-barcode-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/scan-face-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/scan-heart-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/scan-line-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/scan-qr-code-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/scan-search-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/scissors-line-dashed-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/screen-share-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/screen-share-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/scroll-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/scroll-text-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/search-check-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/search-code-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/search-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/section-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/send-horizontal-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/send-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/send-to-back-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/separator-horizontal-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/separator-vertical-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/server-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/server-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/settings-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/settings2-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/share2-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/shield-alert-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/shield-ban-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/shield-ellipsis-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/shield-half-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/shield-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/shield-minus-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/shield-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/shield-plus-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/shield-question-mark-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/shield-user-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/shield-x-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/ship-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/ship-wheel-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/shirt-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/shopping-bag-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/shopping-basket-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/shopping-cart-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/shovel-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/shower-head-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/signal-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/signal-low-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/signal-medium-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/signal-zero-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/signature-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/signpost-big-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/siren-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/skip-back-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/sliders-horizontal-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/sliders-vertical-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/smartphone-charging-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/smile-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/smile-plus-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/soap-dispenser-droplet-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/sofa-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/soup-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/space-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/sparkles-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/speaker-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/speech-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/spell-check-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/spell-check2-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/spline-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/spline-pointer-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/spool-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/spray-can-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/sprout-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/square-arrow-down-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/square-arrow-down-left-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/square-arrow-left-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/square-arrow-out-down-left-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/square-arrow-out-down-right-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/square-arrow-out-up-left-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/square-arrow-out-up-right-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/square-arrow-right-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/square-asterisk-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/square-bottom-dashed-scissors-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/square-chart-gantt-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/square-check-big-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/square-check-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/square-chevron-left-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/square-chevron-right-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/square-chevron-up-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/square-code-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/square-dashed-bottom-code-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/square-dashed-bottom-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/square-dashed-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/square-dashed-kanban-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/square-dashed-mouse-pointer-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/square-dashed-top-solid-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/square-divide-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/square-equal-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/square-function-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/square-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/square-menu-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/square-minus-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/square-mouse-pointer-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/square-parking-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/square-parking-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/square-pen-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/square-percent-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/square-pi-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/square-pilcrow-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/square-play-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/square-plus-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/square-power-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/square-round-corner-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/square-scissors-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/square-slash-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/square-split-horizontal-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/square-split-vertical-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/square-square-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/square-terminal-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/square-user-round-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/square-x-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/squares-exclude-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/squares-intersect-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/squares-subtract-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/squares-unite-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/squircle-dashed-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/squircle-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/squirrel-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/stamp-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/star-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/star-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/step-back-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/stethoscope-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/stretch-horizontal-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/stretch-vertical-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/strikethrough-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/sun-moon-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/sun-snow-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/swiss-franc-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/switch-camera-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/sword-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/swords-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/syringe-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/table-cells-merge-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/table-cells-split-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/table-columns-split-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/table-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/table-of-contents-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/table-rows-split-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/table2-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/tablet-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/tablet-smartphone-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/tablets-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/tag-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/tally2-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/tally3-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/tally4-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/tally5-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/tangent-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/target-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/tent-tree-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/terminal-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/test-tube-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/test-tubes-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/text-cursor-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/text-cursor-input-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/text-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/text-quote-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/text-search-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/text-select-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/theater-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/thermometer-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/thermometer-snowflake-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/thermometer-sun-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/thumbs-down-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/thumbs-up-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/ticket-check-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/ticket-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/ticket-plus-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/ticket-slash-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/ticket-x-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/timer-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/timer-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/timer-reset-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/tornado-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/torus-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/touchpad-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/tower-control-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/toy-brick-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/traffic-cone-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/train-front-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/train-front-tunnel-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/train-track-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/trash-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/trash2-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/tree-deciduous-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/trees-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/trello-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/trending-up-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/triangle-alert-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/truck-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/tv-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/tv-minimal-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/tv-minimal-play-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/twitch-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/twitter-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/type-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/umbrella-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/underline-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/ungroup-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/university-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/unplug-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/user-lock-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/user-minus-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/user-round-pen-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/user-round-plus-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/user-x-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/users-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/vault-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/vegan-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/video-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/video-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/videotape-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/view-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/volume-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/volume-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/volume-x-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/volume2-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/vote-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/wallet-cards-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/wallet-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/wallet-minimal-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/wallpaper-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/wand-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/warehouse-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/watch-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/waves-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/waves-ladder-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/webcam-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/webhook-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/weight-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/wheat-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/wheat-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/whole-word-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/wifi-cog-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/wifi-high-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/wifi-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/wifi-low-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/wifi-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/wifi-pen-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/wifi-zero-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/wind-arrow-down-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/workflow-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/worm-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/x-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/youtube-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/zap-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/zap-off-icon.d.ts +2 -2
- package/dist/types/components/icon/icons/zoom-in-icon.d.ts +2 -2
- package/dist/types/components/image/image.d.ts +3 -3
- package/dist/types/components/indicator/indicator.d.ts +7 -7
- package/dist/types/components/infinite-scroll-area/infinite-scroll-area.d.ts +7 -7
- package/dist/types/components/input/input-addon.d.ts +3 -3
- package/dist/types/components/input/input-element.d.ts +5 -5
- package/dist/types/components/input/input.d.ts +3 -3
- package/dist/types/components/kbd/kbd.d.ts +3 -3
- package/dist/types/components/link/link.d.ts +3 -3
- package/dist/types/components/link-box/link-box.d.ts +6 -6
- package/dist/types/components/list/list.d.ts +8 -8
- package/dist/types/components/loading/loading-provider.d.ts +2 -2
- package/dist/types/components/loading/use-loading-component.d.ts +2 -2
- package/dist/types/components/loading/utils.d.ts +3 -3
- package/dist/types/components/mark/mark.d.ts +3 -3
- package/dist/types/components/modal/modal.d.ts +8 -8
- package/dist/types/components/modal/modal.style.d.ts +2 -2
- package/dist/types/components/motion/index.types.d.ts +7 -7
- package/dist/types/components/native-select/native-select.d.ts +6 -6
- package/dist/types/components/native-table/native-table.d.ts +9 -9
- package/dist/types/components/number-input/number-input.d.ts +5 -5
- package/dist/types/components/pagination/pagination.d.ts +8 -8
- package/dist/types/components/pagination/use-pagination.d.ts +2 -2
- package/dist/types/components/password-input/password-input.d.ts +5 -5
- package/dist/types/components/password-input/strength-meter.d.ts +5 -5
- package/dist/types/components/password-input/use-password-input.d.ts +2 -2
- package/dist/types/components/picture/picture.d.ts +4 -4
- package/dist/types/components/pin-input/pin-input.d.ts +5 -5
- package/dist/types/components/pin-input/use-pin-input.d.ts +2 -2
- package/dist/types/components/popover/popover.d.ts +6 -6
- package/dist/types/components/progress/progress.d.ts +7 -7
- package/dist/types/components/reorder/reorder.d.ts +7 -8
- package/dist/types/components/reorder/use-reorder.d.ts +6 -6
- package/dist/types/components/resizable/resizable.d.ts +5 -5
- package/dist/types/components/resizable/use-resizable.d.ts +2 -2
- package/dist/types/components/ripple/ripple.d.ts +3 -3
- package/dist/types/components/ripple/use-ripple.d.ts +2 -2
- package/dist/types/components/rotate/rotate.d.ts +3 -3
- package/dist/types/components/scroll-area/scroll-area.d.ts +5 -5
- package/dist/types/components/segmented-control/segmented-control.d.ts +5 -5
- package/dist/types/components/segmented-control/use-segmented-control.d.ts +4 -4
- package/dist/types/components/separator/separator.d.ts +3 -3
- package/dist/types/components/simple-grid/simple-grid.d.ts +3 -3
- package/dist/types/components/skeleton/skeleton.d.ts +3 -3
- package/dist/types/components/slide/slide-fade.d.ts +5 -5
- package/dist/types/components/slide/slide.d.ts +5 -5
- package/dist/types/components/stack/h-stack.d.ts +5 -5
- package/dist/types/components/stack/stack.d.ts +5 -5
- package/dist/types/components/stack/v-stack.d.ts +5 -5
- package/dist/types/components/stack/z-stack.d.ts +5 -5
- package/dist/types/components/stat/stat.d.ts +5 -5
- package/dist/types/components/status/status.d.ts +5 -5
- package/dist/types/components/steps/steps.d.ts +8 -8
- package/dist/types/components/steps/steps.style.d.ts +1 -1
- package/dist/types/components/steps/use-steps.d.ts +5 -5
- package/dist/types/components/switch/switch.d.ts +6 -7
- package/dist/types/components/tabs/tabs.d.ts +5 -5
- package/dist/types/components/tabs/use-tabs.d.ts +6 -6
- package/dist/types/components/tag/tag.d.ts +8 -8
- package/dist/types/components/tag/tag.style.d.ts +1 -1
- package/dist/types/components/text/text.d.ts +3 -3
- package/dist/types/components/textarea/textarea.d.ts +3 -3
- package/dist/types/components/textarea/use-autosize.d.ts +2 -2
- package/dist/types/components/toggle/toggle.d.ts +6 -6
- package/dist/types/components/toggle/use-toggle-group.d.ts +2 -2
- package/dist/types/components/toggle/use-toggle.d.ts +4 -4
- package/dist/types/components/tooltip/tooltip.d.ts +5 -5
- package/dist/types/components/visually-hidden/visually-hidden.d.ts +3 -3
- package/dist/types/components/wrap/wrap.d.ts +3 -3
- package/dist/types/core/components/create-component.d.ts +18 -18
- package/dist/types/core/components/index.types.d.ts +4 -4
- package/dist/types/core/components/props.d.ts +11 -11
- package/dist/types/core/components/use-component-style.d.ts +6 -6
- package/dist/types/core/css/css.d.ts +3 -3
- package/dist/types/core/css/index.types.d.ts +4 -4
- package/dist/types/core/css/styles.d.ts +117 -117
- package/dist/types/core/css/use-inject-vars.d.ts +2 -2
- package/dist/types/core/css/utils.d.ts +2 -2
- package/dist/types/core/system/color-mode-provider.d.ts +2 -2
- package/dist/types/core/system/color-mode-script.d.ts +2 -2
- package/dist/types/core/system/create-system.d.ts +3 -3
- package/dist/types/core/system/index.types.d.ts +16 -16
- package/dist/types/core/system/layer.d.ts +2 -2
- package/dist/types/core/system/styled.d.ts +2 -2
- package/dist/types/core/system/system-provider.d.ts +2 -2
- package/dist/types/core/system/theme-script.d.ts +2 -2
- package/dist/types/core/system/var.d.ts +5 -5
- package/dist/types/hooks/use-breakpoint/use-breakpoint-state.d.ts +2 -2
- package/dist/types/hooks/use-clickable/index.d.ts +9 -9
- package/dist/types/hooks/use-clipboard/index.d.ts +2 -2
- package/dist/types/hooks/use-counter/index.d.ts +2 -2
- package/dist/types/hooks/use-descendant/index.d.ts +2 -2
- package/dist/types/hooks/use-event-listener/index.d.ts +4 -4
- package/dist/types/hooks/use-hover/index.d.ts +2 -2
- package/dist/types/hooks/use-pan-event/index.d.ts +6 -6
- package/dist/types/hooks/use-popper/index.d.ts +4 -4
- package/dist/types/hooks/use-resize-observer/index.d.ts +3 -3
- package/dist/types/index.d.ts +15 -13
- package/dist/types/providers/i18n-provider/i18n-provider.d.ts +8 -8
- package/dist/types/providers/i18n-provider/icu.types.d.ts +4 -4
- package/dist/types/utils/children.d.ts +2 -2
- package/dist/types/utils/common/array.d.ts +6 -0
- package/dist/types/utils/common/assertion.d.ts +23 -0
- package/dist/types/utils/common/calc.d.ts +25 -0
- package/dist/types/utils/common/color.d.ts +20 -0
- package/dist/types/utils/common/dom.d.ts +61 -0
- package/dist/types/utils/common/event.d.ts +21 -0
- package/dist/types/utils/common/function.d.ts +8 -0
- package/dist/types/utils/common/i18n.d.ts +5 -0
- package/dist/types/utils/common/index.d.ts +14 -0
- package/dist/types/utils/common/index.types.d.ts +15 -0
- package/dist/types/utils/common/module.d.ts +5 -0
- package/dist/types/utils/common/number.d.ts +11 -0
- package/dist/types/utils/common/object.d.ts +36 -0
- package/dist/types/utils/common/string.d.ts +16 -0
- package/dist/types/utils/index.d.ts +14 -13
- package/package.json +11 -8
- package/dist/cjs/index.cjs.map +0 -1
- package/dist/cjs/utils/index.cjs.map +0 -1
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/utils/index.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-popover.cjs","names":["ev: KeyboardEvent<HTMLDivElement>","ev: FocusEvent<HTMLDivElement>","getTriggerProps: PropGetter<\"button\">","getAnchorProps: PropGetter","getPositionerProps: PropGetter","getContentProps: PropGetter","getHeaderProps: PropGetter","getBodyProps: PropGetter","getFooterProps: PropGetter"],"sources":["../../../../src/components/popover/use-popover.tsx"],"sourcesContent":["\"use client\"\n\nimport type { FocusEvent, KeyboardEvent, RefObject } from \"react\"\nimport type { PropGetter } from \"../../core\"\nimport type { UseDisclosureProps } from \"../../hooks/use-disclosure\"\nimport type { UsePopperProps } from \"../../hooks/use-popper\"\nimport { useCallback, useEffect, useId, useRef } from \"react\"\nimport { useEnvironment } from \"../../core\"\nimport { useDisclosure } from \"../../hooks/use-disclosure\"\nimport { useEventListener } from \"../../hooks/use-event-listener\"\nimport { useFocusOnShow } from \"../../hooks/use-focus\"\nimport { useOutsideClick } from \"../../hooks/use-outside-click\"\nimport { usePopper } from \"../../hooks/use-popper\"\nimport {\n contains,\n cx,\n dataAttr,\n focusTransfer,\n focusTrap,\n getEventRelatedTarget,\n getWindow,\n handlerAll,\n mergeRefs,\n scrollLock,\n useUnmountEffect,\n} from \"../../utils\"\n\nexport interface UsePopoverProps\n extends Omit<UseDisclosureProps, \"timing\">,\n UsePopperProps {\n /**\n * If `true`, focus will be transferred to the first interactive element when the popover opens.\n *\n * @default true\n */\n autoFocus?: boolean\n /**\n * If `true`, scrolling will be disabled on the `body` when the modal opens.\n *\n * @default false\n */\n blockScrollOnMount?: boolean\n /**\n * The delay before hiding the popover.\n *\n * @default 0\n */\n closeDelay?: number\n /**\n * If `true`, the popover will close when you blur out it by clicking outside or tabbing out.\n *\n * @default true\n */\n closeOnBlur?: boolean\n /**\n * If `true`, the popover will hide on pressing Esc key.\n *\n * @default true\n */\n closeOnEsc?: boolean\n /**\n * If `true`, the popover will hide on scroll.\n *\n * @default false\n */\n closeOnScroll?: boolean\n /**\n * If `true`, the popover will be disabled.\n *\n * @default false\n */\n disabled?: boolean\n /**\n * The `ref` of the element that should receive focus when the popover opens.\n */\n initialFocusRef?: RefObject<HTMLElement | null>\n /**\n * If `true`, the popover will be modal.\n *\n * - scrolling is blocked.\n * - focus is trapped within the popover.\n *\n * @default false\n */\n modal?: boolean\n /**\n * The delay before showing the popover.\n *\n * @default 0\n */\n openDelay?: number\n}\n\nexport const usePopover = ({\n autoFocus = true,\n autoUpdate,\n blockScrollOnMount = false,\n closeDelay = 0,\n closeOnBlur = true,\n closeOnEsc = true,\n closeOnScroll,\n defaultOpen,\n disabled,\n elements,\n flip,\n gutter,\n initialFocusRef,\n matchWidth,\n middleware,\n modal = false,\n offset,\n open: openProp,\n openDelay = 0,\n placement = \"end\",\n platform,\n preventOverflow,\n strategy,\n transform,\n whileElementsMounted,\n onClose: onCloseProp,\n onOpen: onOpenProp,\n}: UsePopoverProps = {}) => {\n const { getDocument } = useEnvironment()\n const headerId = useId()\n const bodyId = useId()\n const contentId = useId()\n const anchorRef = useRef<HTMLElement>(null)\n const triggerRef = useRef<HTMLButtonElement>(null)\n const contentRef = useRef<HTMLElement>(null)\n const openTimeout = useRef<NodeJS.Timeout>(undefined)\n const closeTimeout = useRef<NodeJS.Timeout>(undefined)\n const { open, onClose, onOpen } = useDisclosure({\n defaultOpen,\n open: openProp,\n onClose: onCloseProp,\n onOpen: onOpenProp,\n })\n const { refs, getPopperProps } = usePopper<\"button\">({\n autoUpdate,\n elements,\n flip,\n gutter,\n matchWidth,\n middleware,\n offset,\n open,\n placement,\n platform,\n preventOverflow,\n strategy,\n transform,\n whileElementsMounted,\n })\n\n const onForceClose = useCallback(() => {\n if (closeTimeout.current) {\n clearTimeout(closeTimeout.current)\n\n closeTimeout.current = undefined\n }\n\n onClose()\n }, [onClose])\n\n const onDelayOpen = useCallback(() => {\n if (!disabled && !openTimeout.current) {\n if (open) onForceClose()\n\n openTimeout.current = getWindow(refs.reference.current).setTimeout(() => {\n onOpen()\n openTimeout.current = undefined\n }, openDelay)\n }\n }, [disabled, open, onForceClose, refs.reference, onOpen, openDelay])\n\n const onDelayClose = useCallback(() => {\n if (openTimeout.current) {\n clearTimeout(openTimeout.current)\n openTimeout.current = undefined\n }\n\n closeTimeout.current = getWindow(refs.reference.current).setTimeout(\n onForceClose,\n closeDelay,\n )\n }, [closeDelay, onForceClose, refs.reference])\n\n const onKeyDown = useCallback(\n (ev: KeyboardEvent<HTMLDivElement>) => {\n if (closeOnEsc && ev.key === \"Escape\") {\n onDelayClose()\n\n triggerRef.current?.focus()\n }\n },\n [closeOnEsc, onDelayClose],\n )\n\n const onBlur = useCallback(\n (ev: FocusEvent<HTMLDivElement>) => {\n const relatedTarget = getEventRelatedTarget(ev)\n const popup = relatedTarget?.hasAttribute(\"data-popup\")\n\n if (contains(contentRef.current, relatedTarget)) return\n if (contains(contentRef.current, ev.target) && popup) return\n\n if (closeOnBlur) onDelayClose()\n },\n [closeOnBlur, onDelayClose],\n )\n\n useEventListener(getDocument(), \"scroll\", () => {\n if (open && closeOnScroll) onForceClose()\n })\n\n useFocusOnShow(contentRef, {\n focusTarget: initialFocusRef,\n shouldFocus: autoFocus,\n visible: open,\n })\n\n useOutsideClick({\n ref: contentRef,\n enabled: open,\n handler: () => {\n onDelayClose()\n },\n })\n\n useEffect(() => {\n if (!open || !modal) return\n\n return focusTrap(contentRef.current)\n }, [open, modal])\n\n useEffect(() => {\n if (!open || !modal || !blockScrollOnMount) return\n\n return scrollLock(contentRef.current)\n }, [open, modal, blockScrollOnMount])\n\n useEffect(() => {\n if (!open || modal) return\n\n return focusTransfer(contentRef.current, triggerRef.current)\n }, [open, modal])\n\n useUnmountEffect(() => {\n clearTimeout(openTimeout.current)\n clearTimeout(closeTimeout.current)\n })\n\n const getTriggerProps: PropGetter<\"button\"> = useCallback(\n ({ ref, ...props } = {}) => ({\n \"aria-controls\": open ? contentId : undefined,\n \"aria-expanded\": open,\n \"aria-haspopup\": \"dialog\",\n role: \"button\",\n ...props,\n ref: mergeRefs(ref, triggerRef, (node) => {\n if (anchorRef.current == null) refs.setReference(node)\n }),\n onClick: handlerAll(props.onClick, !open ? onDelayOpen : onDelayClose),\n }),\n [contentId, onDelayClose, onDelayOpen, open, refs],\n )\n\n const getAnchorProps: PropGetter = useCallback(\n ({ ref, ...props } = {}) => ({\n ...props,\n ref: mergeRefs(ref, anchorRef, refs.setReference),\n }),\n [refs.setReference],\n )\n\n const getPositionerProps: PropGetter = useCallback(\n (props) => {\n return getPopperProps(props)\n },\n [getPopperProps],\n )\n\n const getContentProps: PropGetter = useCallback(\n ({\n ref,\n \"aria-describedby\": ariaDescribedby,\n \"aria-labelledby\": ariaLabelledby,\n ...props\n } = {}) => {\n const hasHeader = !!getDocument()?.getElementById(headerId)\n const hasBody = !!getDocument()?.getElementById(bodyId)\n\n return {\n id: contentId,\n \"aria-describedby\": cx(ariaDescribedby, hasBody ? bodyId : undefined),\n \"aria-hidden\": !open,\n \"aria-labelledby\": cx(ariaLabelledby, hasHeader ? headerId : undefined),\n \"aria-modal\": modal ? \"true\" : undefined,\n \"data-close\": dataAttr(!open),\n \"data-open\": dataAttr(open),\n \"data-popup\": dataAttr(true),\n role: \"dialog\",\n tabIndex: -1,\n ...props,\n ref: mergeRefs(ref, contentRef),\n onBlur: handlerAll(props.onBlur, onBlur),\n onKeyDown: handlerAll(props.onKeyDown, onKeyDown),\n }\n },\n [getDocument, headerId, bodyId, contentId, open, modal, onBlur, onKeyDown],\n )\n\n const getHeaderProps: PropGetter = useCallback(\n (props) => ({\n id: headerId,\n ...props,\n }),\n [headerId],\n )\n\n const getBodyProps: PropGetter = useCallback(\n (props) => ({\n id: bodyId,\n ...props,\n }),\n [bodyId],\n )\n\n const getFooterProps: PropGetter = useCallback((props) => ({ ...props }), [])\n\n return {\n open,\n getAnchorProps,\n getBodyProps,\n getContentProps,\n getFooterProps,\n getHeaderProps,\n getPositionerProps,\n getTriggerProps,\n onClose: onForceClose,\n onDelayClose,\n onDelayOpen,\n onOpen,\n }\n}\n\nexport type UsePopoverReturn = ReturnType<typeof usePopover>\n"],"mappings":";;;;;;;;;;;;;;;;;AA6FA,MAAa,aAAa,CAAC,EACzB,YAAY,MACZ,YACA,qBAAqB,OACrB,aAAa,GACb,cAAc,MACd,aAAa,MACb,eACA,aACA,UACA,UACA,MACA,QACA,iBACA,YACA,YACA,QAAQ,OACR,QACA,MAAM,UACN,YAAY,GACZ,YAAY,OACZ,UACA,iBACA,UACA,WACA,sBACA,SAAS,aACT,QAAQ,YACQ,GAAG,CAAE,MAAK;CAC1B,MAAM,EAAE,aAAa,GAAG,yDAAgB;CACxC,MAAM,WAAW,kBAAO;CACxB,MAAM,SAAS,kBAAO;CACtB,MAAM,YAAY,kBAAO;CACzB,MAAM,YAAY,kBAAoB,KAAK;CAC3C,MAAM,aAAa,kBAA0B,KAAK;CAClD,MAAM,aAAa,kBAAoB,KAAK;CAC5C,MAAM,cAAc,yBAAiC;CACrD,MAAM,eAAe,yBAAiC;CACtD,MAAM,EAAE,MAAM,SAAS,QAAQ,GAAG,0DAAc;EAC9C;EACA,MAAM;EACN,SAAS;EACT,QAAQ;CACT,EAAC;CACF,MAAM,EAAE,MAAM,gBAAgB,GAAG,yCAAoB;EACnD;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACD,EAAC;CAEF,MAAM,eAAe,uBAAY,MAAM;AACrC,MAAI,aAAa,SAAS;AACxB,gBAAa,aAAa,QAAQ;AA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oBAAoB,0CAAG,iBAAiB,UAAU,gBAAmB;GACrE,gBAAgB;GAChB,mBAAmB,0CAAG,gBAAgB,YAAY,kBAAqB;GACvE,cAAc,QAAQ;GACtB,cAAc,iDAAU,KAAK;GAC7B,aAAa,gDAAS,KAAK;GAC3B,cAAc,gDAAS,KAAK;GAC5B,MAAM;GACN,UAAU;GACV,GAAG;GACH,KAAK,4BAAU,KAAK,WAAW;GAC/B,QAAQ,kDAAW,MAAM,QAAQ,OAAO;GACxC,WAAW,kDAAW,MAAM,WAAW,UAAU;EAClD;CACF,GACD;EAAC;EAAa;EAAU;EAAQ;EAAW;EAAM;EAAO;EAAQ;CAAU,EAC3E;CAED,MAAMC,iBAA6B,uBACjC,CAAC,WAAW;EACV,IAAI;EACJ,GAAG;CACJ,IACD,CAAC,QAAS,EACX;CAED,MAAMC,eAA2B,uBAC/B,CAAC,WAAW;EACV,IAAI;EACJ,GAAG;CACJ,IACD,CAAC,MAAO,EACT;CAED,MAAMC,iBAA6B,uBAAY,CAAC,WAAW,EAAE,GAAG,MAAO,IAAG,CAAE,EAAC;AAE7E,QAAO;EACL;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,SAAS;EACT;EACA;EACA;CACD;AACF"}
|
|
1
|
+
{"version":3,"file":"use-popover.cjs","names":["ev: KeyboardEvent<HTMLDivElement>","ev: FocusEvent<HTMLDivElement>","getTriggerProps: PropGetter<\"button\">","getAnchorProps: PropGetter","getPositionerProps: PropGetter","getContentProps: PropGetter","getHeaderProps: PropGetter","getBodyProps: PropGetter","getFooterProps: PropGetter"],"sources":["../../../../src/components/popover/use-popover.tsx"],"sourcesContent":["\"use client\"\n\nimport type { FocusEvent, KeyboardEvent, RefObject } from \"react\"\nimport type { PropGetter } from \"../../core\"\nimport type { UseDisclosureProps } from \"../../hooks/use-disclosure\"\nimport type { UsePopperProps } from \"../../hooks/use-popper\"\nimport { useCallback, useEffect, useId, useRef } from \"react\"\nimport { useEnvironment } from \"../../core\"\nimport { useDisclosure } from \"../../hooks/use-disclosure\"\nimport { useEventListener } from \"../../hooks/use-event-listener\"\nimport { useFocusOnShow } from \"../../hooks/use-focus\"\nimport { useOutsideClick } from \"../../hooks/use-outside-click\"\nimport { usePopper } from \"../../hooks/use-popper\"\nimport {\n contains,\n cx,\n dataAttr,\n focusTransfer,\n focusTrap,\n getEventRelatedTarget,\n getWindow,\n handlerAll,\n mergeRefs,\n scrollLock,\n useUnmountEffect,\n} from \"../../utils\"\n\nexport interface UsePopoverProps\n extends Omit<UseDisclosureProps, \"timing\">,\n UsePopperProps {\n /**\n * If `true`, focus will be transferred to the first interactive element when the popover opens.\n *\n * @default true\n */\n autoFocus?: boolean\n /**\n * If `true`, scrolling will be disabled on the `body` when the modal opens.\n *\n * @default false\n */\n blockScrollOnMount?: boolean\n /**\n * The delay before hiding the popover.\n *\n * @default 0\n */\n closeDelay?: number\n /**\n * If `true`, the popover will close when you blur out it by clicking outside or tabbing out.\n *\n * @default true\n */\n closeOnBlur?: boolean\n /**\n * If `true`, the popover will hide on pressing Esc key.\n *\n * @default true\n */\n closeOnEsc?: boolean\n /**\n * If `true`, the popover will hide on scroll.\n *\n * @default false\n */\n closeOnScroll?: boolean\n /**\n * If `true`, the popover will be disabled.\n *\n * @default false\n */\n disabled?: boolean\n /**\n * The `ref` of the element that should receive focus when the popover opens.\n */\n initialFocusRef?: RefObject<HTMLElement | null>\n /**\n * If `true`, the popover will be modal.\n *\n * - scrolling is blocked.\n * - focus is trapped within the popover.\n *\n * @default false\n */\n modal?: boolean\n /**\n * The delay before showing the popover.\n *\n * @default 0\n */\n openDelay?: number\n}\n\nexport const usePopover = ({\n autoFocus = true,\n autoUpdate,\n blockScrollOnMount = false,\n closeDelay = 0,\n closeOnBlur = true,\n closeOnEsc = true,\n closeOnScroll,\n defaultOpen,\n disabled,\n elements,\n flip,\n gutter,\n initialFocusRef,\n matchWidth,\n middleware,\n modal = false,\n offset,\n open: openProp,\n openDelay = 0,\n placement = \"end\",\n platform,\n preventOverflow,\n strategy,\n transform,\n whileElementsMounted,\n onClose: onCloseProp,\n onOpen: onOpenProp,\n}: UsePopoverProps = {}) => {\n const { getDocument } = useEnvironment()\n const headerId = useId()\n const bodyId = useId()\n const contentId = useId()\n const anchorRef = useRef<HTMLElement>(null)\n const triggerRef = useRef<HTMLButtonElement>(null)\n const contentRef = useRef<HTMLElement>(null)\n const openTimeout = useRef<NodeJS.Timeout>(undefined)\n const closeTimeout = useRef<NodeJS.Timeout>(undefined)\n const { open, onClose, onOpen } = useDisclosure({\n defaultOpen,\n open: openProp,\n onClose: onCloseProp,\n onOpen: onOpenProp,\n })\n const { refs, getPopperProps } = usePopper<\"button\">({\n autoUpdate,\n elements,\n flip,\n gutter,\n matchWidth,\n middleware,\n offset,\n open,\n placement,\n platform,\n preventOverflow,\n strategy,\n transform,\n whileElementsMounted,\n })\n\n const onForceClose = useCallback(() => {\n if (closeTimeout.current) {\n clearTimeout(closeTimeout.current)\n\n closeTimeout.current = undefined\n }\n\n onClose()\n }, [onClose])\n\n const onDelayOpen = useCallback(() => {\n if (!disabled && !openTimeout.current) {\n if (open) onForceClose()\n\n openTimeout.current = getWindow(refs.reference.current).setTimeout(() => {\n onOpen()\n openTimeout.current = undefined\n }, openDelay)\n }\n }, [disabled, open, onForceClose, refs.reference, onOpen, openDelay])\n\n const onDelayClose = useCallback(() => {\n if (openTimeout.current) {\n clearTimeout(openTimeout.current)\n openTimeout.current = undefined\n }\n\n closeTimeout.current = getWindow(refs.reference.current).setTimeout(\n onForceClose,\n closeDelay,\n )\n }, [closeDelay, onForceClose, refs.reference])\n\n const onKeyDown = useCallback(\n (ev: KeyboardEvent<HTMLDivElement>) => {\n if (closeOnEsc && ev.key === \"Escape\") {\n onDelayClose()\n\n triggerRef.current?.focus()\n }\n },\n [closeOnEsc, onDelayClose],\n )\n\n const onBlur = useCallback(\n (ev: FocusEvent<HTMLDivElement>) => {\n const relatedTarget = getEventRelatedTarget(ev)\n const popup = relatedTarget?.hasAttribute(\"data-popup\")\n\n if (contains(contentRef.current, relatedTarget)) return\n if (contains(contentRef.current, ev.target) && popup) return\n\n if (closeOnBlur) onDelayClose()\n },\n [closeOnBlur, onDelayClose],\n )\n\n useEventListener(getDocument(), \"scroll\", () => {\n if (open && closeOnScroll) onForceClose()\n })\n\n useFocusOnShow(contentRef, {\n focusTarget: initialFocusRef,\n shouldFocus: autoFocus,\n visible: open,\n })\n\n useOutsideClick({\n ref: contentRef,\n enabled: open,\n handler: () => {\n onDelayClose()\n },\n })\n\n useEffect(() => {\n if (!open || !modal) return\n\n return focusTrap(contentRef.current)\n }, [open, modal])\n\n useEffect(() => {\n if (!open || !modal || !blockScrollOnMount) return\n\n return scrollLock(contentRef.current)\n }, [open, modal, blockScrollOnMount])\n\n useEffect(() => {\n if (!open || modal) return\n\n return focusTransfer(contentRef.current, triggerRef.current)\n }, [open, modal])\n\n useUnmountEffect(() => {\n clearTimeout(openTimeout.current)\n clearTimeout(closeTimeout.current)\n })\n\n const getTriggerProps: PropGetter<\"button\"> = useCallback(\n ({ ref, ...props } = {}) => ({\n \"aria-controls\": open ? contentId : undefined,\n \"aria-expanded\": open,\n \"aria-haspopup\": \"dialog\",\n role: \"button\",\n ...props,\n ref: mergeRefs(ref, triggerRef, (node) => {\n if (anchorRef.current == null) refs.setReference(node)\n }),\n onClick: handlerAll(props.onClick, !open ? onDelayOpen : onDelayClose),\n }),\n [contentId, onDelayClose, onDelayOpen, open, refs],\n )\n\n const getAnchorProps: PropGetter = useCallback(\n ({ ref, ...props } = {}) => ({\n ...props,\n ref: mergeRefs(ref, anchorRef, refs.setReference),\n }),\n [refs.setReference],\n )\n\n const getPositionerProps: PropGetter = useCallback(\n (props) => {\n return getPopperProps(props)\n },\n [getPopperProps],\n )\n\n const getContentProps: PropGetter = useCallback(\n ({\n ref,\n \"aria-describedby\": ariaDescribedby,\n \"aria-labelledby\": ariaLabelledby,\n ...props\n } = {}) => {\n const hasHeader = !!getDocument()?.getElementById(headerId)\n const hasBody = !!getDocument()?.getElementById(bodyId)\n\n return {\n id: contentId,\n \"aria-describedby\": cx(ariaDescribedby, hasBody ? bodyId : undefined),\n \"aria-hidden\": !open,\n \"aria-labelledby\": cx(ariaLabelledby, hasHeader ? headerId : undefined),\n \"aria-modal\": modal ? \"true\" : undefined,\n \"data-close\": dataAttr(!open),\n \"data-open\": dataAttr(open),\n \"data-popup\": dataAttr(true),\n role: \"dialog\",\n tabIndex: -1,\n ...props,\n ref: mergeRefs(ref, contentRef),\n onBlur: handlerAll(props.onBlur, onBlur),\n onKeyDown: handlerAll(props.onKeyDown, onKeyDown),\n }\n },\n [getDocument, headerId, bodyId, contentId, open, modal, onBlur, onKeyDown],\n )\n\n const getHeaderProps: PropGetter = useCallback(\n (props) => ({\n id: headerId,\n ...props,\n }),\n [headerId],\n )\n\n const getBodyProps: PropGetter = useCallback(\n (props) => ({\n id: bodyId,\n ...props,\n }),\n [bodyId],\n )\n\n const getFooterProps: PropGetter = useCallback((props) => ({ ...props }), [])\n\n return {\n open,\n getAnchorProps,\n getBodyProps,\n getContentProps,\n getFooterProps,\n getHeaderProps,\n getPositionerProps,\n getTriggerProps,\n onClose: onForceClose,\n onDelayClose,\n onDelayOpen,\n onOpen,\n }\n}\n\nexport type UsePopoverReturn = ReturnType<typeof usePopover>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AA6FA,MAAa,aAAa,CAAC,EACzB,YAAY,MACZ,YACA,qBAAqB,OACrB,aAAa,GACb,cAAc,MACd,aAAa,MACb,eACA,aACA,UACA,UACA,MACA,QACA,iBACA,YACA,YACA,QAAQ,OACR,QACA,MAAM,UACN,YAAY,GACZ,YAAY,OACZ,UACA,iBACA,UACA,WACA,sBACA,SAAS,aACT,QAAQ,YACQ,GAAG,CAAE,MAAK;CAC1B,MAAM,EAAE,aAAa,GAAG,yDAAgB;CACxC,MAAM,WAAW,kBAAO;CACxB,MAAM,SAAS,kBAAO;CACtB,MAAM,YAAY,kBAAO;CACzB,MAAM,YAAY,kBAAoB,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3
3
|
|
|
4
4
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
5
5
|
const require_utils_ssr = require('../../utils/ssr.cjs');
|
|
6
|
-
const
|
|
6
|
+
const require_utils_common_dom = require('../../utils/common/dom.cjs');
|
|
7
7
|
const require_core_system_environment_provider = require('../../core/system/environment-provider.cjs');
|
|
8
8
|
const react = require_rolldown_runtime.__toESM(require("react"));
|
|
9
9
|
const react_jsx_runtime = require_rolldown_runtime.__toESM(require("react/jsx-runtime"));
|
|
@@ -12,8 +12,8 @@ const react_dom = require_rolldown_runtime.__toESM(require("react-dom"));
|
|
|
12
12
|
//#region src/components/portal/portal.tsx
|
|
13
13
|
const getPortalNode = (node) => {
|
|
14
14
|
const rootNode = node.getRootNode();
|
|
15
|
-
if (
|
|
16
|
-
return
|
|
15
|
+
if (require_utils_common_dom.isShadowRoot(rootNode)) return rootNode;
|
|
16
|
+
return require_utils_common_dom.getDocument(node).body;
|
|
17
17
|
};
|
|
18
18
|
/**
|
|
19
19
|
* `Portal` is a component that renders elements outside of the current `DOM` hierarchy.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"portal.cjs","names":["node: RootNode","Portal: FC<PortalProps>"],"sources":["../../../../src/components/portal/portal.tsx"],"sourcesContent":["\"use client\"\n\nimport type { FC, PropsWithChildren, RefObject } from \"react\"\nimport type { RootNode } from \"../../core\"\nimport { Children, useEffect, useState } from \"react\"\nimport { createPortal } from \"react-dom\"\nimport { useEnvironment } from \"../../core\"\nimport { getDocument, isShadowRoot, useSsr } from \"../../utils\"\n\nconst getPortalNode = (node: RootNode) => {\n const rootNode = node.getRootNode()\n\n if (isShadowRoot(rootNode)) return rootNode\n\n return getDocument(node).body\n}\n\nexport interface PortalProps extends PropsWithChildren {\n /**\n * The `ref` to the component where the portal will be attached to.\n */\n containerRef?: RefObject<HTMLElement | null>\n /**\n * If `true`, the forwarding will be disabled.\n */\n disabled?: boolean\n}\n\n/**\n * `Portal` is a component that renders elements outside of the current `DOM` hierarchy.\n *\n * @see https://yamada-ui.com/components/portal\n */\nexport const Portal: FC<PortalProps> = ({\n children,\n containerRef: ref,\n disabled,\n}) => {\n const [target, setTarget] = useState(ref?.current)\n const ssr = useSsr()\n const { getRootNode } = useEnvironment()\n\n useEffect(() => {\n setTarget(() => ref?.current)\n }, [ref])\n\n if (ssr || disabled) return children\n\n const container = target ?? getPortalNode(getRootNode())\n\n return (\n <>{Children.map(children, (child) => createPortal(child, container))}</>\n )\n}\n"],"mappings":";;;;;;;;;;;;AASA,MAAM,gBAAgB,CAACA,SAAmB;CACxC,MAAM,WAAW,KAAK,aAAa;AAEnC,KAAI,
|
|
1
|
+
{"version":3,"file":"portal.cjs","names":["node: RootNode","Portal: FC<PortalProps>"],"sources":["../../../../src/components/portal/portal.tsx"],"sourcesContent":["\"use client\"\n\nimport type { FC, PropsWithChildren, RefObject } from \"react\"\nimport type { RootNode } from \"../../core\"\nimport { Children, useEffect, useState } from \"react\"\nimport { createPortal } from \"react-dom\"\nimport { useEnvironment } from \"../../core\"\nimport { getDocument, isShadowRoot, useSsr } from \"../../utils\"\n\nconst getPortalNode = (node: RootNode) => {\n const rootNode = node.getRootNode()\n\n if (isShadowRoot(rootNode)) return rootNode\n\n return getDocument(node).body\n}\n\nexport interface PortalProps extends PropsWithChildren {\n /**\n * The `ref` to the component where the portal will be attached to.\n */\n containerRef?: RefObject<HTMLElement | null>\n /**\n * If `true`, the forwarding will be disabled.\n */\n disabled?: boolean\n}\n\n/**\n * `Portal` is a component that renders elements outside of the current `DOM` hierarchy.\n *\n * @see https://yamada-ui.com/components/portal\n */\nexport const Portal: FC<PortalProps> = ({\n children,\n containerRef: ref,\n disabled,\n}) => {\n const [target, setTarget] = useState(ref?.current)\n const ssr = useSsr()\n const { getRootNode } = useEnvironment()\n\n useEffect(() => {\n setTarget(() => ref?.current)\n }, [ref])\n\n if (ssr || disabled) return children\n\n const container = target ?? getPortalNode(getRootNode())\n\n return (\n <>{Children.map(children, (child) => createPortal(child, container))}</>\n )\n}\n"],"mappings":";;;;;;;;;;;;AASA,MAAM,gBAAgB,CAACA,SAAmB;CACxC,MAAM,WAAW,KAAK,aAAa;AAEnC,KAAI,sCAAa,SAAS,CAAE,QAAO;AAEnC,QAAO,qCAAY,KAAK,CAAC;AAC1B;;;;;;AAkBD,MAAaC,SAA0B,CAAC,EACtC,UACA,cAAc,KACd,UACD,KAAK;CACJ,MAAM,CAAC,QAAQ,UAAU,GAAG,oBAAS,KAAK,QAAQ;CAClD,MAAM,MAAM,0BAAQ;CACpB,MAAM,EAAE,aAAa,GAAG,yDAAgB;AAExC,sBAAU,MAAM;AACd,YAAU,MAAM,KAAK,QAAQ;CAC9B,GAAE,CAAC,GAAI,EAAC;AAET,KAAI,OAAO,SAAU,QAAO;CAE5B,MAAM,YAAY,UAAU,cAAc,aAAa,CAAC;AAExD,wBACE,mEAAG,eAAS,IAAI,UAAU,CAAC,UAAU,4BAAa,OAAO,UAAU,CAAC,GAAI;AAE3E"}
|
|
@@ -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_css_merge_css = require('../../core/css/merge-css.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');
|
|
@@ -33,7 +33,7 @@ const Progress = withProvider(({ css, max, min, rangeColor, trackColor, value, r
|
|
|
33
33
|
})
|
|
34
34
|
});
|
|
35
35
|
}, "root")(void 0, ({ duration,...rest }) => ({
|
|
36
|
-
"--duration":
|
|
36
|
+
"--duration": require_utils_common_assertion.isNumber(duration) ? `${duration}s` : duration,
|
|
37
37
|
...rest
|
|
38
38
|
}));
|
|
39
39
|
const ProgressRange = withContext("div", "range")();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"progress.cjs","names":["progressStyle","styled"],"sources":["../../../../src/components/progress/progress.tsx"],"sourcesContent":["\"use client\"\n\nimport type { CSSProps, HTMLStyledProps, ThemeProps } from \"../../core\"\nimport type { ProgressStyle } from \"./progress.style\"\nimport type { UseProgressProps } from \"./use-progress\"\nimport { createSlotComponent, mergeCSS, styled } from \"../../core\"\nimport { isNumber } from \"../../utils\"\nimport { progressStyle } from \"./progress.style\"\nimport { useProgress } from \"./use-progress\"\n\nexport interface ProgressProps\n extends HTMLStyledProps,\n UseProgressProps,\n ThemeProps<ProgressStyle> {\n /**\n * The animation duration in seconds.\n */\n duration?: number | string\n /**\n * The color of the progress range.\n */\n rangeColor?: CSSProps[\"color\"]\n /**\n * The color of the progress track.\n */\n trackColor?: CSSProps[\"color\"]\n /**\n * Props for the progress range element.\n */\n rangeProps?: ProgressRangeProps\n}\n\nexport const {\n PropsContext: ProgressPropsContext,\n usePropsContext: useProgressPropsContext,\n withContext,\n withProvider,\n} = createSlotComponent<ProgressProps, ProgressStyle>(\"progress\", progressStyle)\n\n/**\n * `Progress` is a component for visually indicating progress.\n *\n * @see https://yamada-ui.com/components/progress\n */\nexport const Progress = withProvider(\n ({ css, max, min, rangeColor, trackColor, value, rangeProps, ...rest }) => {\n const { percent, getRangeProps, getRootProps } = useProgress({\n max,\n min,\n value,\n })\n\n return (\n <styled.div\n css={mergeCSS(css, { \"--width\": `${percent}%` })}\n bg={trackColor}\n {...getRootProps(rest)}\n >\n <ProgressRange bg={rangeColor} {...getRangeProps(rangeProps)} />\n </styled.div>\n )\n },\n \"root\",\n)(undefined, ({ duration, ...rest }) => ({\n \"--duration\": isNumber(duration) ? `${duration}s` : duration,\n ...rest,\n}))\n\ninterface ProgressRangeProps extends HTMLStyledProps {}\n\nconst ProgressRange = withContext<\"div\", ProgressRangeProps>(\"div\", \"range\")()\n"],"mappings":";;;;;;;;;;;;;AAgCA,MAAa,EACX,cAAc,sBACd,iBAAiB,yBACjB,aACA,cACD,GAAG,6DAAkD,YAAYA,yDAAc;;;;;;AAOhF,MAAa,WAAW,aACtB,CAAC,EAAE,KAAK,KAAK,KAAK,YAAY,YAAY,OAAO,WAAY,GAAG,MAAM,KAAK;CACzE,MAAM,EAAE,SAAS,eAAe,cAAc,GAAG,qDAAY;EAC3D;EACA;EACA;CACD,EAAC;AAEF,wBACE,2BAACC,mCAAO;EACN,KAAK,oCAAS,KAAK,EAAE,cAAc,QAAQ,GAAI,EAAC;EAChD,IAAI;EACJ,GAAI,aAAa,KAAK;4BAEtB,2BAAC;GAAc,IAAI;GAAY,GAAI,cAAc,WAAW;IAAI;GACrD;AAEhB,GACD,OACD,SAAY,CAAC,EAAE,SAAU,GAAG,MAAM,MAAM;CACvC,cAAc,
|
|
1
|
+
{"version":3,"file":"progress.cjs","names":["progressStyle","styled"],"sources":["../../../../src/components/progress/progress.tsx"],"sourcesContent":["\"use client\"\n\nimport type { CSSProps, HTMLStyledProps, ThemeProps } from \"../../core\"\nimport type { ProgressStyle } from \"./progress.style\"\nimport type { UseProgressProps } from \"./use-progress\"\nimport { createSlotComponent, mergeCSS, styled } from \"../../core\"\nimport { isNumber } from \"../../utils\"\nimport { progressStyle } from \"./progress.style\"\nimport { useProgress } from \"./use-progress\"\n\nexport interface ProgressProps\n extends HTMLStyledProps,\n UseProgressProps,\n ThemeProps<ProgressStyle> {\n /**\n * The animation duration in seconds.\n */\n duration?: number | string\n /**\n * The color of the progress range.\n */\n rangeColor?: CSSProps[\"color\"]\n /**\n * The color of the progress track.\n */\n trackColor?: CSSProps[\"color\"]\n /**\n * Props for the progress range element.\n */\n rangeProps?: ProgressRangeProps\n}\n\nexport const {\n PropsContext: ProgressPropsContext,\n usePropsContext: useProgressPropsContext,\n withContext,\n withProvider,\n} = createSlotComponent<ProgressProps, ProgressStyle>(\"progress\", progressStyle)\n\n/**\n * `Progress` is a component for visually indicating progress.\n *\n * @see https://yamada-ui.com/components/progress\n */\nexport const Progress = withProvider(\n ({ css, max, min, rangeColor, trackColor, value, rangeProps, ...rest }) => {\n const { percent, getRangeProps, getRootProps } = useProgress({\n max,\n min,\n value,\n })\n\n return (\n <styled.div\n css={mergeCSS(css, { \"--width\": `${percent}%` })}\n bg={trackColor}\n {...getRootProps(rest)}\n >\n <ProgressRange bg={rangeColor} {...getRangeProps(rangeProps)} />\n </styled.div>\n )\n },\n \"root\",\n)(undefined, ({ duration, ...rest }) => ({\n \"--duration\": isNumber(duration) ? `${duration}s` : duration,\n ...rest,\n}))\n\ninterface ProgressRangeProps extends HTMLStyledProps {}\n\nconst ProgressRange = withContext<\"div\", ProgressRangeProps>(\"div\", \"range\")()\n"],"mappings":";;;;;;;;;;;;;AAgCA,MAAa,EACX,cAAc,sBACd,iBAAiB,yBACjB,aACA,cACD,GAAG,6DAAkD,YAAYA,yDAAc;;;;;;AAOhF,MAAa,WAAW,aACtB,CAAC,EAAE,KAAK,KAAK,KAAK,YAAY,YAAY,OAAO,WAAY,GAAG,MAAM,KAAK;CACzE,MAAM,EAAE,SAAS,eAAe,cAAc,GAAG,qDAAY;EAC3D;EACA;EACA;CACD,EAAC;AAEF,wBACE,2BAACC,mCAAO;EACN,KAAK,oCAAS,KAAK,EAAE,cAAc,QAAQ,GAAI,EAAC;EAChD,IAAI;EACJ,GAAI,aAAa,KAAK;4BAEtB,2BAAC;GAAc,IAAI;GAAY,GAAI,cAAc,WAAW;IAAI;GACrD;AAEhB,GACD,OACD,SAAY,CAAC,EAAE,SAAU,GAAG,MAAM,MAAM;CACvC,cAAc,wCAAS,SAAS,MAAM,SAAS,KAAK;CACpD,GAAG;AACJ,GAAE;AAIH,MAAM,gBAAgB,YAAuC,OAAO,QAAQ,EAAE"}
|
|
@@ -2,21 +2,22 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
5
|
-
const
|
|
5
|
+
const require_utils_common_dom = require('../../utils/common/dom.cjs');
|
|
6
|
+
const require_utils_common_number = require('../../utils/common/number.cjs');
|
|
6
7
|
const require_providers_i18n_provider_i18n_provider = require('../../providers/i18n-provider/i18n-provider.cjs');
|
|
7
8
|
const react = require_rolldown_runtime.__toESM(require("react"));
|
|
8
9
|
|
|
9
10
|
//#region src/components/progress/use-progress.ts
|
|
10
11
|
const useProgress = ({ max = 100, min = 0, value } = {}) => {
|
|
11
12
|
const indeterminate = value === null;
|
|
12
|
-
const percent =
|
|
13
|
+
const percent = require_utils_common_number.valueToPercent(value ?? 0, min, max);
|
|
13
14
|
const { t } = require_providers_i18n_provider_i18n_provider.useI18n("progress");
|
|
14
15
|
const getRootProps = (0, react.useCallback)((props) => ({
|
|
15
16
|
"aria-label": indeterminate ? t("loading") : t("percent", { value: percent }),
|
|
16
17
|
"aria-valuemax": max,
|
|
17
18
|
"aria-valuemin": min,
|
|
18
19
|
"aria-valuenow": value ?? void 0,
|
|
19
|
-
"data-indeterminate":
|
|
20
|
+
"data-indeterminate": require_utils_common_dom.dataAttr(indeterminate),
|
|
20
21
|
role: "progressbar",
|
|
21
22
|
...props
|
|
22
23
|
}), [
|
|
@@ -28,11 +29,11 @@ const useProgress = ({ max = 100, min = 0, value } = {}) => {
|
|
|
28
29
|
t
|
|
29
30
|
]);
|
|
30
31
|
const getTrackProps = (0, react.useCallback)((props) => ({
|
|
31
|
-
"data-indeterminate":
|
|
32
|
+
"data-indeterminate": require_utils_common_dom.dataAttr(indeterminate),
|
|
32
33
|
...props
|
|
33
34
|
}), [indeterminate]);
|
|
34
35
|
const getRangeProps = (0, react.useCallback)((props) => ({
|
|
35
|
-
"data-indeterminate":
|
|
36
|
+
"data-indeterminate": require_utils_common_dom.dataAttr(indeterminate),
|
|
36
37
|
...props
|
|
37
38
|
}), [indeterminate]);
|
|
38
39
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-progress.cjs","names":["props?: HTMLProps<Y>","props?: HTMLProps<Y extends \"svg\" ? \"circle\" : \"div\">"],"sources":["../../../../src/components/progress/use-progress.ts"],"sourcesContent":["\"use client\"\n\nimport type { HTMLProps } from \"../../core\"\nimport { useCallback } from \"react\"\nimport { useI18n } from \"../../providers/i18n-provider\"\nimport { dataAttr, valueToPercent } from \"../../utils\"\n\nexport interface UseProgressProps {\n /**\n * The maximum value of the progress.\n *\n * @default 100\n */\n max?: number\n /**\n * The minimum value of the progress.\n *\n * @default 0\n */\n min?: number\n /**\n * The value of the progress. If `null`, the progress will be indeterminate.\n *\n * @default 0\n */\n value?: null | number\n}\n\nexport const useProgress = <Y extends \"div\" | \"svg\" = \"div\">({\n max = 100,\n min = 0,\n value,\n}: UseProgressProps = {}) => {\n const indeterminate = value === null\n const percent = valueToPercent(value ?? 0, min, max)\n const { t } = useI18n(\"progress\")\n\n const getRootProps = useCallback(\n (props?: HTMLProps<Y>) => ({\n \"aria-label\": indeterminate\n ? t(\"loading\")\n : t(\"percent\", { value: percent }),\n \"aria-valuemax\": max,\n \"aria-valuemin\": min,\n \"aria-valuenow\": value ?? undefined,\n \"data-indeterminate\": dataAttr(indeterminate),\n role: \"progressbar\",\n ...props,\n }),\n [max, min, percent, value, indeterminate, t],\n )\n\n const getTrackProps = useCallback(\n (props?: HTMLProps<Y extends \"svg\" ? \"circle\" : \"div\">) => ({\n \"data-indeterminate\": dataAttr(indeterminate),\n ...props,\n }),\n [indeterminate],\n )\n\n const getRangeProps = useCallback(\n (props?: HTMLProps<Y extends \"svg\" ? \"circle\" : \"div\">) => ({\n \"data-indeterminate\": dataAttr(indeterminate),\n ...props,\n }),\n [indeterminate],\n )\n\n return {\n percent,\n getRangeProps,\n getRootProps,\n getTrackProps,\n }\n}\n\nexport type UseProgressReturn = ReturnType<typeof useProgress>\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-progress.cjs","names":["props?: HTMLProps<Y>","props?: HTMLProps<Y extends \"svg\" ? \"circle\" : \"div\">"],"sources":["../../../../src/components/progress/use-progress.ts"],"sourcesContent":["\"use client\"\n\nimport type { HTMLProps } from \"../../core\"\nimport { useCallback } from \"react\"\nimport { useI18n } from \"../../providers/i18n-provider\"\nimport { dataAttr, valueToPercent } from \"../../utils\"\n\nexport interface UseProgressProps {\n /**\n * The maximum value of the progress.\n *\n * @default 100\n */\n max?: number\n /**\n * The minimum value of the progress.\n *\n * @default 0\n */\n min?: number\n /**\n * The value of the progress. If `null`, the progress will be indeterminate.\n *\n * @default 0\n */\n value?: null | number\n}\n\nexport const useProgress = <Y extends \"div\" | \"svg\" = \"div\">({\n max = 100,\n min = 0,\n value,\n}: UseProgressProps = {}) => {\n const indeterminate = value === null\n const percent = valueToPercent(value ?? 0, min, max)\n const { t } = useI18n(\"progress\")\n\n const getRootProps = useCallback(\n (props?: HTMLProps<Y>) => ({\n \"aria-label\": indeterminate\n ? t(\"loading\")\n : t(\"percent\", { value: percent }),\n \"aria-valuemax\": max,\n \"aria-valuemin\": min,\n \"aria-valuenow\": value ?? undefined,\n \"data-indeterminate\": dataAttr(indeterminate),\n role: \"progressbar\",\n ...props,\n }),\n [max, min, percent, value, indeterminate, t],\n )\n\n const getTrackProps = useCallback(\n (props?: HTMLProps<Y extends \"svg\" ? \"circle\" : \"div\">) => ({\n \"data-indeterminate\": dataAttr(indeterminate),\n ...props,\n }),\n [indeterminate],\n )\n\n const getRangeProps = useCallback(\n (props?: HTMLProps<Y extends \"svg\" ? \"circle\" : \"div\">) => ({\n \"data-indeterminate\": dataAttr(indeterminate),\n ...props,\n }),\n [indeterminate],\n )\n\n return {\n percent,\n getRangeProps,\n getRootProps,\n getTrackProps,\n }\n}\n\nexport type UseProgressReturn = ReturnType<typeof useProgress>\n"],"mappings":";;;;;;;;;;AA4BA,MAAa,cAAc,CAAkC,EAC3D,MAAM,KACN,MAAM,GACN,OACiB,GAAG,CAAE,MAAK;CAC3B,MAAM,gBAAgB,UAAU;CAChC,MAAM,UAAU,2CAAe,SAAS,GAAG,KAAK,IAAI;CACpD,MAAM,EAAE,GAAG,GAAG,sDAAQ,WAAW;CAEjC,MAAM,eAAe,uBACnB,CAACA,WAA0B;EACzB,cAAc,gBACV,EAAE,UAAU,GACZ,EAAE,WAAW,EAAE,OAAO,QAAS,EAAC;EACpC,iBAAiB;EACjB,iBAAiB;EACjB,iBAAiB;EACjB,sBAAsB,kCAAS,cAAc;EAC7C,MAAM;EACN,GAAG;CACJ,IACD;EAAC;EAAK;EAAK;EAAS;EAAO;EAAe;CAAE,EAC7C;CAED,MAAM,gBAAgB,uBACpB,CAACC,WAA2D;EAC1D,sBAAsB,kCAAS,cAAc;EAC7C,GAAG;CACJ,IACD,CAAC,aAAc,EAChB;CAED,MAAM,gBAAgB,uBACpB,CAACA,WAA2D;EAC1D,sBAAsB,kCAAS,cAAc;EAC7C,GAAG;CACJ,IACD,CAAC,aAAc,EAChB;AAED,QAAO;EACL;EACA;EACA;EACA;CACD;AACF"}
|
|
@@ -6,13 +6,15 @@ const require_utils_children = require('../../utils/children.cjs');
|
|
|
6
6
|
const require_utils_context = require('../../utils/context.cjs');
|
|
7
7
|
const require_utils_effect = require('../../utils/effect.cjs');
|
|
8
8
|
const require_utils_ref = require('../../utils/ref.cjs');
|
|
9
|
-
const
|
|
9
|
+
const require_utils_common_assertion = require('../../utils/common/assertion.cjs');
|
|
10
|
+
const require_utils_common_function = require('../../utils/common/function.cjs');
|
|
11
|
+
const require_utils_common_dom = require('../../utils/common/dom.cjs');
|
|
10
12
|
const react = require_rolldown_runtime.__toESM(require("react"));
|
|
11
13
|
const motion_react = require_rolldown_runtime.__toESM(require("motion/react"));
|
|
12
14
|
|
|
13
15
|
//#region src/components/reorder/use-reorder.ts
|
|
14
16
|
const getAlternativeValue = ({ children, label } = {}) => serializeValue(children ?? label);
|
|
15
|
-
const serializeValue = (value) =>
|
|
17
|
+
const serializeValue = (value) => require_utils_common_assertion.isObject(value) || require_utils_common_assertion.isArray(value) ? JSON.stringify(value) : value;
|
|
16
18
|
const [ReorderContext, useReorderContext] = require_utils_context.createContext({ name: "ReorderContext" });
|
|
17
19
|
const [ReorderItemContext, useReorderItemContext] = require_utils_context.createContext({ name: "ReorderItemContext" });
|
|
18
20
|
const useReorder = ({ ref, children, item, items = [], orientation = "vertical", onChange, onCompleteChange,...rest } = {}) => {
|
|
@@ -77,9 +79,9 @@ const useReorder = ({ ref, children, item, items = [], orientation = "vertical",
|
|
|
77
79
|
...rest,
|
|
78
80
|
...props,
|
|
79
81
|
ref: require_utils_ref.mergeRefs(props.ref, ref),
|
|
80
|
-
onMouseUp:
|
|
81
|
-
onReorder:
|
|
82
|
-
onTouchEnd:
|
|
82
|
+
onMouseUp: require_utils_common_function.handlerAll(props.onMouseUp, rest.onMouseUp, onCompleteReorder),
|
|
83
|
+
onReorder: require_utils_common_function.handlerAll(props.onReorder, rest.onReorder, onReorder),
|
|
84
|
+
onTouchEnd: require_utils_common_function.handlerAll(props.onTouchEnd, rest.onTouchEnd, onCompleteReorder)
|
|
83
85
|
}), [
|
|
84
86
|
rest,
|
|
85
87
|
ref,
|
|
@@ -122,8 +124,8 @@ const useReorderItem = ({ ref, label, value,...rest }) => {
|
|
|
122
124
|
const getItemProps = (0, react.useCallback)((props = {}) => {
|
|
123
125
|
const children = props.children ?? rest.children ?? label;
|
|
124
126
|
return {
|
|
125
|
-
"data-has-trigger":
|
|
126
|
-
"data-selected":
|
|
127
|
+
"data-has-trigger": require_utils_common_dom.dataAttr(hasTrigger),
|
|
128
|
+
"data-selected": require_utils_common_dom.dataAttr(drag),
|
|
127
129
|
dragControls,
|
|
128
130
|
dragListener: !hasTrigger,
|
|
129
131
|
value: value ?? getAlternativeValue({ children }),
|
|
@@ -152,8 +154,8 @@ const useReorderItem = ({ ref, label, value,...rest }) => {
|
|
|
152
154
|
const getTriggerProps = (0, react.useCallback)((props = {}) => ({
|
|
153
155
|
...props,
|
|
154
156
|
ref: require_utils_ref.mergeRefs(register, props.ref),
|
|
155
|
-
"data-selected":
|
|
156
|
-
onPointerDown:
|
|
157
|
+
"data-selected": require_utils_common_dom.dataAttr(drag),
|
|
158
|
+
onPointerDown: require_utils_common_function.handlerAll(props.onPointerDown, (ev) => dragControls.start(ev))
|
|
157
159
|
}), [
|
|
158
160
|
drag,
|
|
159
161
|
dragControls,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-reorder.cjs","names":["value: any","values","newValues: Y[]","getRootProps: PropGetter<\n Partial<Omit<ReorderGroupProps<Y>, \"values\">>,\n undefined,\n ReorderGroupProps<Y>\n >","node: HTMLElement | null","x","y","getItemProps: PropGetter<\n Omit<HTMLMotionProps<\"li\">, \"layout\" | \"value\"> &\n Pick<ReorderItemProps<Y>, \"layout\">,\n undefined,\n ReorderItemProps<Y>\n >","getTriggerProps: PropGetter"],"sources":["../../../../src/components/reorder/use-reorder.ts"],"sourcesContent":["\"use client\"\n\nimport type { HTMLMotionProps, Reorder } from \"motion/react\"\nimport type { PropsWithChildren, ReactElement, ReactNode } from \"react\"\nimport type { Orientation, PropGetter } from \"../../core\"\nimport type { Dict, Merge } from \"../../utils\"\nimport { useDragControls, useMotionValue } from \"motion/react\"\nimport {\n cloneElement,\n useCallback,\n useEffect,\n useMemo,\n useRef,\n useState,\n} from \"react\"\nimport {\n createContext,\n dataAttr,\n getValidChildren,\n handlerAll,\n isArray,\n isObject,\n mergeRefs,\n useUpdateEffect,\n} from \"../../utils\"\n\nconst getAlternativeValue = ({ children, label }: Dict = {}) =>\n serializeValue(children ?? label)\n\nconst serializeValue = (value: any) =>\n isObject(value) || isArray(value) ? JSON.stringify(value) : value\n\ntype ReorderGroupProps<Y = string> = Merge<\n HTMLMotionProps<\"ul\">,\n Pick<Parameters<typeof Reorder.Group<Y>>[0], \"axis\" | \"onReorder\" | \"values\">\n>\ntype ReorderItemProps<Y = string> = Merge<\n HTMLMotionProps<\"li\">,\n Partial<Pick<Parameters<typeof Reorder.Item<Y>>[0], \"layout\" | \"value\">>\n>\n\ninterface ReorderContext extends Pick<UseReorderProps, \"orientation\"> {}\n\nexport const [ReorderContext, useReorderContext] =\n createContext<ReorderContext>({\n name: \"ReorderContext\",\n })\n\ninterface ReorderItemContext {\n getTriggerProps: PropGetter\n}\n\nexport const [ReorderItemContext, useReorderItemContext] =\n createContext<ReorderItemContext>({\n name: \"ReorderItemContext\",\n })\n\nexport interface UseReorderProps<Y = string>\n extends Partial<\n Omit<ReorderGroupProps<Y>, \"children\" | \"onChange\" | \"values\">\n >,\n PropsWithChildren {\n /**\n * The component to be used for the item.\n */\n item?: ReactElement<any>\n /**\n * If provided, generate reorder items based on items.\n *\n */\n items?: UseReorderItemProps<Y>[]\n /**\n * The orientation of the reorder.\n *\n * @default 'vertical'\n */\n orientation?: Orientation\n /**\n * The callback invoked when reorder items are moved.\n */\n onChange?: (values: Y[]) => void\n /**\n * The callback invoked when the movement of reorder items is completed.\n */\n onCompleteChange?: (values: Y[]) => void\n}\n\nexport const useReorder = <Y = string>({\n ref,\n children,\n item,\n items = [],\n orientation = \"vertical\",\n onChange,\n onCompleteChange,\n ...rest\n}: UseReorderProps<Y> = {}) => {\n const axis = orientation === \"vertical\" ? \"y\" : \"x\"\n const validChildren = useMemo(() => getValidChildren(children), [children])\n const hasChildren = !!validChildren.length\n const defaultValues = useMemo(() => {\n const values = hasChildren\n ? validChildren.map(\n ({ props }) => props.value ?? getAlternativeValue(props),\n )\n : items.map((props) => props.value ?? getAlternativeValue(props))\n\n const duplicatedValues = values.filter(\n (value, index, self) =>\n self.indexOf(value) === index && index !== self.lastIndexOf(value),\n )\n\n if (duplicatedValues.length)\n console.warn(\n `Reorder: 'value' of 'ReorderItem' must not be duplicated. duplicate 'value' is '${duplicatedValues.join(\n `', '`,\n )}' `,\n )\n\n return Array.from(new Set(values))\n }, [hasChildren, validChildren, items])\n const childMap = useMemo(() => {\n return Object.fromEntries(\n validChildren.map((child) => [\n serializeValue(child.props.value) ??\n serializeValue(getAlternativeValue(child.props)),\n child,\n ]),\n )\n }, [validChildren])\n const itemMap = useMemo(() => {\n return Object.fromEntries(\n items.map((props) => [\n serializeValue(props.value) ??\n serializeValue(getAlternativeValue(props)),\n props,\n ]),\n )\n }, [items])\n const prevDefaultValues = useRef<Y[]>(defaultValues)\n const [values, setValues] = useState<Y[]>(defaultValues)\n const prevValues = useRef<Y[]>(defaultValues)\n const cloneChildren = useMemo(\n () =>\n values.map((value) => {\n if (hasChildren) {\n return childMap[serializeValue(value)]\n } else {\n const props = itemMap[serializeValue(value)]\n\n return props && item\n ? cloneElement(item, { key: serializeValue(props.value), ...props })\n : null\n }\n }),\n [values, hasChildren, childMap, itemMap, item],\n )\n\n const onReorder = useCallback(\n (newValues: Y[]) => {\n setValues(newValues)\n\n onChange?.(newValues)\n },\n [onChange],\n )\n\n const onCompleteReorder = useCallback(() => {\n const equal = JSON.stringify(prevValues.current) === JSON.stringify(values)\n\n if (equal) return\n\n prevValues.current = values\n\n onCompleteChange?.(values)\n }, [onCompleteChange, values])\n\n useUpdateEffect(() => {\n const equal =\n JSON.stringify(defaultValues) ===\n JSON.stringify(prevDefaultValues.current)\n\n if (equal) return\n\n prevValues.current = defaultValues\n prevDefaultValues.current = defaultValues\n\n setValues(defaultValues)\n }, [defaultValues])\n\n const getRootProps: PropGetter<\n Partial<Omit<ReorderGroupProps<Y>, \"values\">>,\n undefined,\n ReorderGroupProps<Y>\n > = useCallback(\n (props = {}) => ({\n axis,\n values,\n ...rest,\n ...props,\n ref: mergeRefs(props.ref, ref),\n onMouseUp: handlerAll(props.onMouseUp, rest.onMouseUp, onCompleteReorder),\n onReorder: handlerAll(props.onReorder, rest.onReorder, onReorder),\n onTouchEnd: handlerAll(\n props.onTouchEnd,\n rest.onTouchEnd,\n onCompleteReorder,\n ),\n }),\n [rest, ref, onCompleteReorder, onReorder, axis, values],\n )\n\n return { children: cloneChildren, orientation, values, getRootProps }\n}\n\nexport type UseReorderReturn<Y = string> = ReturnType<typeof useReorder<Y>>\n\nexport interface UseReorderItemProps<Y = string> extends ReorderItemProps<Y> {\n /**\n * The label of the reorder item.\n */\n label?: ReactNode\n /**\n * The value of the reorder item.\n */\n value?: Y\n}\n\nexport const useReorderItem = <Y = string>({\n ref,\n label,\n value,\n ...rest\n}: UseReorderItemProps<Y>) => {\n const { orientation } = useReorderContext()\n const dragControls = useDragControls()\n const [hasTrigger, setHasTrigger] = useState<boolean>(false)\n const [drag, setDrag] = useState<boolean>(false)\n const x = useMotionValue(0)\n const y = useMotionValue(0)\n\n const register = useCallback(\n (node: HTMLElement | null) => setHasTrigger(!!node),\n [],\n )\n\n useEffect(() => {\n const unsubscribeX = x.on(\"change\", (x) => {\n if (orientation === \"horizontal\") setDrag(x !== 0)\n })\n const unsubscribeY = y.on(\"change\", (y) => {\n if (orientation === \"vertical\") setDrag(y !== 0)\n })\n\n return () => {\n unsubscribeX()\n unsubscribeY()\n }\n }, [orientation, x, y])\n\n const getItemProps: PropGetter<\n Omit<HTMLMotionProps<\"li\">, \"layout\" | \"value\"> &\n Pick<ReorderItemProps<Y>, \"layout\">,\n undefined,\n ReorderItemProps<Y>\n > = useCallback(\n (props = {}) => {\n const children = props.children ?? rest.children ?? label\n\n return {\n \"data-has-trigger\": dataAttr(hasTrigger),\n \"data-selected\": dataAttr(drag),\n dragControls,\n dragListener: !hasTrigger,\n value: value ?? getAlternativeValue({ children }),\n ...props,\n ...rest,\n ref: mergeRefs(props.ref, ref),\n style: { x, y, ...props.style, ...rest.style },\n children,\n }\n },\n [ref, rest, dragControls, hasTrigger, value, x, y, drag, label],\n )\n\n const getTriggerProps: PropGetter = useCallback(\n (props = {}) => ({\n ...props,\n ref: mergeRefs(register, props.ref),\n \"data-selected\": dataAttr(drag),\n onPointerDown: handlerAll(props.onPointerDown, (ev) =>\n dragControls.start(ev),\n ),\n }),\n [drag, dragControls, register],\n )\n\n return { getItemProps, getTriggerProps }\n}\n\nexport type UseReorderItemReturn<Y = string> = ReturnType<\n typeof useReorderItem<Y>\n>\n"],"mappings":";;;;;;;;;;;;;AA0BA,MAAM,sBAAsB,CAAC,EAAE,UAAU,OAAa,GAAG,CAAE,MACzD,eAAe,YAAY,MAAM;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AK;GAAO;GAC9C;EACD;CACF,GACD;EAAC;EAAK;EAAM;EAAc;EAAY;EAAO;EAAG;EAAG;EAAM;CAAM,EAChE;CAED,MAAMC,kBAA8B,uBAClC,CAAC,QAAQ,CAAE,OAAM;EACf,GAAG;EACH,KAAK,4BAAU,UAAU,MAAM,IAAI;EACnC,iBAAiB,gDAAS,KAAK;EAC/B,eAAe,kDAAW,MAAM,eAAe,CAAC,OAC9C,aAAa,MAAM,GAAG,CACvB;CACF,IACD;EAAC;EAAM;EAAc;CAAS,EAC/B;AAED,QAAO;EAAE;EAAc;CAAiB;AACzC"}
|
|
1
|
+
{"version":3,"file":"use-reorder.cjs","names":["value: any","values","newValues: Y[]","getRootProps: PropGetter<\n Partial<Omit<ReorderGroupProps<Y>, \"values\">>,\n undefined,\n ReorderGroupProps<Y>\n >","node: HTMLElement | null","x","y","getItemProps: PropGetter<\n Omit<HTMLMotionProps<\"li\">, \"layout\" | \"value\"> &\n Pick<ReorderItemProps<Y>, \"layout\">,\n undefined,\n ReorderItemProps<Y>\n >","getTriggerProps: PropGetter"],"sources":["../../../../src/components/reorder/use-reorder.ts"],"sourcesContent":["\"use client\"\n\nimport type { HTMLMotionProps, Reorder } from \"motion/react\"\nimport type { PropsWithChildren, ReactElement, ReactNode } from \"react\"\nimport type { Orientation, PropGetter } from \"../../core\"\nimport type { Dict, Merge } from \"../../utils\"\nimport { useDragControls, useMotionValue } from \"motion/react\"\nimport {\n cloneElement,\n useCallback,\n useEffect,\n useMemo,\n useRef,\n useState,\n} from \"react\"\nimport {\n createContext,\n dataAttr,\n getValidChildren,\n handlerAll,\n isArray,\n isObject,\n mergeRefs,\n useUpdateEffect,\n} from \"../../utils\"\n\nconst getAlternativeValue = ({ children, label }: Dict = {}) =>\n serializeValue(children ?? label)\n\nconst serializeValue = (value: any) =>\n isObject(value) || isArray(value) ? JSON.stringify(value) : value\n\ntype ReorderGroupProps<Y = string> = Merge<\n HTMLMotionProps<\"ul\">,\n Pick<Parameters<typeof Reorder.Group<Y>>[0], \"axis\" | \"onReorder\" | \"values\">\n>\ntype ReorderItemProps<Y = string> = Merge<\n HTMLMotionProps<\"li\">,\n Partial<Pick<Parameters<typeof Reorder.Item<Y>>[0], \"layout\" | \"value\">>\n>\n\ninterface ReorderContext extends Pick<UseReorderProps, \"orientation\"> {}\n\nexport const [ReorderContext, useReorderContext] =\n createContext<ReorderContext>({\n name: \"ReorderContext\",\n })\n\ninterface ReorderItemContext {\n getTriggerProps: PropGetter\n}\n\nexport const [ReorderItemContext, useReorderItemContext] =\n createContext<ReorderItemContext>({\n name: \"ReorderItemContext\",\n })\n\nexport interface UseReorderProps<Y = string>\n extends Partial<\n Omit<ReorderGroupProps<Y>, \"children\" | \"onChange\" | \"values\">\n >,\n PropsWithChildren {\n /**\n * The component to be used for the item.\n */\n item?: ReactElement<any>\n /**\n * If provided, generate reorder items based on items.\n *\n */\n items?: UseReorderItemProps<Y>[]\n /**\n * The orientation of the reorder.\n *\n * @default 'vertical'\n */\n orientation?: Orientation\n /**\n * The callback invoked when reorder items are moved.\n */\n onChange?: (values: Y[]) => void\n /**\n * The callback invoked when the movement of reorder items is completed.\n */\n onCompleteChange?: (values: Y[]) => void\n}\n\nexport const useReorder = <Y = string>({\n ref,\n children,\n item,\n items = [],\n orientation = \"vertical\",\n onChange,\n onCompleteChange,\n ...rest\n}: UseReorderProps<Y> = {}) => {\n const axis = orientation === \"vertical\" ? \"y\" : \"x\"\n const validChildren = useMemo(() => getValidChildren(children), [children])\n const hasChildren = !!validChildren.length\n const defaultValues = useMemo(() => {\n const values = hasChildren\n ? validChildren.map(\n ({ props }) => props.value ?? getAlternativeValue(props),\n )\n : items.map((props) => props.value ?? getAlternativeValue(props))\n\n const duplicatedValues = values.filter(\n (value, index, self) =>\n self.indexOf(value) === index && index !== self.lastIndexOf(value),\n )\n\n if (duplicatedValues.length)\n console.warn(\n `Reorder: 'value' of 'ReorderItem' must not be duplicated. duplicate 'value' is '${duplicatedValues.join(\n `', '`,\n )}' `,\n )\n\n return Array.from(new Set(values))\n }, [hasChildren, validChildren, items])\n const childMap = useMemo(() => {\n return Object.fromEntries(\n validChildren.map((child) => [\n serializeValue(child.props.value) ??\n serializeValue(getAlternativeValue(child.props)),\n child,\n ]),\n )\n }, [validChildren])\n const itemMap = useMemo(() => {\n return Object.fromEntries(\n items.map((props) => [\n serializeValue(props.value) ??\n serializeValue(getAlternativeValue(props)),\n props,\n ]),\n )\n }, [items])\n const prevDefaultValues = useRef<Y[]>(defaultValues)\n const [values, setValues] = useState<Y[]>(defaultValues)\n const prevValues = useRef<Y[]>(defaultValues)\n const cloneChildren = useMemo(\n () =>\n values.map((value) => {\n if (hasChildren) {\n return childMap[serializeValue(value)]\n } else {\n const props = itemMap[serializeValue(value)]\n\n return props && item\n ? cloneElement(item, { key: serializeValue(props.value), ...props })\n : null\n }\n }),\n [values, hasChildren, childMap, itemMap, item],\n )\n\n const onReorder = useCallback(\n (newValues: Y[]) => {\n setValues(newValues)\n\n onChange?.(newValues)\n },\n [onChange],\n )\n\n const onCompleteReorder = useCallback(() => {\n const equal = JSON.stringify(prevValues.current) === JSON.stringify(values)\n\n if (equal) return\n\n prevValues.current = values\n\n onCompleteChange?.(values)\n }, [onCompleteChange, values])\n\n useUpdateEffect(() => {\n const equal =\n JSON.stringify(defaultValues) ===\n JSON.stringify(prevDefaultValues.current)\n\n if (equal) return\n\n prevValues.current = defaultValues\n prevDefaultValues.current = defaultValues\n\n setValues(defaultValues)\n }, [defaultValues])\n\n const getRootProps: PropGetter<\n Partial<Omit<ReorderGroupProps<Y>, \"values\">>,\n undefined,\n ReorderGroupProps<Y>\n > = useCallback(\n (props = {}) => ({\n axis,\n values,\n ...rest,\n ...props,\n ref: mergeRefs(props.ref, ref),\n onMouseUp: handlerAll(props.onMouseUp, rest.onMouseUp, onCompleteReorder),\n onReorder: handlerAll(props.onReorder, rest.onReorder, onReorder),\n onTouchEnd: handlerAll(\n props.onTouchEnd,\n rest.onTouchEnd,\n onCompleteReorder,\n ),\n }),\n [rest, ref, onCompleteReorder, onReorder, axis, values],\n )\n\n return { children: cloneChildren, orientation, values, getRootProps }\n}\n\nexport type UseReorderReturn<Y = string> = ReturnType<typeof useReorder<Y>>\n\nexport interface UseReorderItemProps<Y = string> extends ReorderItemProps<Y> {\n /**\n * The label of the reorder item.\n */\n label?: ReactNode\n /**\n * The value of the reorder item.\n */\n value?: Y\n}\n\nexport const useReorderItem = <Y = string>({\n ref,\n label,\n value,\n ...rest\n}: UseReorderItemProps<Y>) => {\n const { orientation } = useReorderContext()\n const dragControls = useDragControls()\n const [hasTrigger, setHasTrigger] = useState<boolean>(false)\n const [drag, setDrag] = useState<boolean>(false)\n const x = useMotionValue(0)\n const y = useMotionValue(0)\n\n const register = useCallback(\n (node: HTMLElement | null) => setHasTrigger(!!node),\n [],\n )\n\n useEffect(() => {\n const unsubscribeX = x.on(\"change\", (x) => {\n if (orientation === \"horizontal\") setDrag(x !== 0)\n })\n const unsubscribeY = y.on(\"change\", (y) => {\n if (orientation === \"vertical\") setDrag(y !== 0)\n })\n\n return () => {\n unsubscribeX()\n unsubscribeY()\n }\n }, [orientation, x, y])\n\n const getItemProps: PropGetter<\n Omit<HTMLMotionProps<\"li\">, \"layout\" | \"value\"> &\n Pick<ReorderItemProps<Y>, \"layout\">,\n undefined,\n ReorderItemProps<Y>\n > = useCallback(\n (props = {}) => {\n const children = props.children ?? rest.children ?? label\n\n return {\n \"data-has-trigger\": dataAttr(hasTrigger),\n \"data-selected\": dataAttr(drag),\n dragControls,\n dragListener: !hasTrigger,\n value: value ?? getAlternativeValue({ children }),\n ...props,\n ...rest,\n ref: mergeRefs(props.ref, ref),\n style: { x, y, ...props.style, ...rest.style },\n children,\n }\n },\n [ref, rest, dragControls, hasTrigger, value, x, y, drag, label],\n )\n\n const getTriggerProps: PropGetter = useCallback(\n (props = {}) => ({\n ...props,\n ref: mergeRefs(register, props.ref),\n \"data-selected\": dataAttr(drag),\n onPointerDown: handlerAll(props.onPointerDown, (ev) =>\n dragControls.start(ev),\n ),\n }),\n [drag, dragControls, register],\n )\n\n return { getItemProps, getTriggerProps }\n}\n\nexport type UseReorderItemReturn<Y = string> = ReturnType<\n typeof useReorderItem<Y>\n>\n"],"mappings":";;;;;;;;;;;;;;;AA0BA,MAAM,sBAAsB,CAAC,EAAE,UAAU,OAAa,GAAG,CAAE,MACzD,eAAe,YAAY,MAAM;AAEnC,MAAM,iBAAiB,CAACA,UACtB,wCAAS,MAAM,IAAI,uCAAQ,MAAM,GAAG,KAAK,UAAU,MAAM,GAAG;AAa9D,MAAa,CAAC,gBAAgB,kBAAkB,GAC9C,oCAA8B,EAC5B,MAAM,iBACP,EAAC;AAMJ,MAAa,CAAC,oBAAoB,sBAAsB,GACtD,oCAAkC,EAChC,MAAM,qBACP,EAAC;AAgCJ,MAAa,aAAa,CAAa,EACrC,KACA,UACA,MACA,QAAQ,CAAE,GACV,cAAc,YACd,UACA,iBACA,GAAG,MACgB,GAAG,CAAE,MAAK;CAC7B,MAAM,OAAO,gBAAgB,aAAa,MAAM;CAChD,MAAM,gBAAgB,mBAAQ,MAAM,wCAAiB,SAAS,EAAE,CAAC,QAAS,EAAC;CAC3E,MAAM,gBAAgB,cAAc;CACpC,MAAM,gBAAgB,mBAAQ,MAAM;EAClC,MAAMC,WAAS,cACX,cAAc,IACZ,CAAC,EAAE,OAAO,KAAK,MAAM,SAAS,oBAAoB,MAAM,CACzD,GACD,MAAM,IAAI,CAAC,UAAU,MAAM,SAAS,oBAAoB,MAAM,CAAC;EAEnE,MAAM,mBAAmB,SAAO,OAC9B,CAAC,OAAO,OAAO,SACb,KAAK,QAAQ,MAAM,KAAK,SAAS,UAAU,KAAK,YAAY,MAAM,CACrE;AAED,MAAI,iBAAiB,OACnB,SAAQ,MACL,kFAAkF,iBAAiB,MACjG,MACF,CAAC,IACH;AAEH,SAAO,MAAM,KAAK,IAAI,IAAIA,UAAQ;CACnC,GAAE;EAAC;EAAa;EAAe;CAAM,EAAC;CACvC,MA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;AAEpD,SAAO;GACL,oBAAoB,kCAAS,WAAW;GACxC,iBAAiB,kCAAS,KAAK;GAC/B;GACA,eAAe;GACf,OAAO,SAAS,oBAAoB,EAAE,SAAU,EAAC;GACjD,GAAG;GACH,GAAG;GACH,KAAK,4BAAU,MAAM,KAAK,IAAI;GAC9B,OAAO;IAAE;IAAG;IAAG,GAAG,MAAM;IAAO,GAAG,KAAK;GAAO;GAC9C;EACD;CACF,GACD;EAAC;EAAK;EAAM;EAAc;EAAY;EAAO;EAAG;EAAG;EAAM;CAAM,EAChE;CAED,MAAMC,kBAA8B,uBAClC,CAAC,QAAQ,CAAE,OAAM;EACf,GAAG;EACH,KAAK,4BAAU,UAAU,MAAM,IAAI;EACnC,iBAAiB,kCAAS,KAAK;EAC/B,eAAe,yCAAW,MAAM,eAAe,CAAC,OAC9C,aAAa,MAAM,GAAG,CACvB;CACF,IACD;EAAC;EAAM;EAAc;CAAS,EAC/B;AAED,QAAO;EAAE;EAAc;CAAiB;AACzC"}
|
|
@@ -4,7 +4,8 @@
|
|
|
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');
|
|
8
9
|
const react = require_rolldown_runtime.__toESM(require("react"));
|
|
9
10
|
const react_resizable_panels = require_rolldown_runtime.__toESM(require("react-resizable-panels"));
|
|
10
11
|
|
|
@@ -28,7 +29,7 @@ const useResizable = ({ id, ref, controlRef: controlRefProp, disabled, keyboardS
|
|
|
28
29
|
...props,
|
|
29
30
|
ref: require_utils_ref.mergeRefs(ref$1, controlRefProp, controlRef),
|
|
30
31
|
tagName: props.as ?? groupProps.as,
|
|
31
|
-
onLayout:
|
|
32
|
+
onLayout: require_utils_common_function.fnAll(props.onLayout, groupProps.onLayout, onLayout)
|
|
32
33
|
}), [
|
|
33
34
|
id,
|
|
34
35
|
orientation,
|
|
@@ -60,9 +61,9 @@ const useResizableItem = ({ id, ref, as, controlRef, onCollapse, onExpand, onRes
|
|
|
60
61
|
tagName: props.as ?? as,
|
|
61
62
|
...props,
|
|
62
63
|
...rest,
|
|
63
|
-
onCollapse:
|
|
64
|
-
onExpand:
|
|
65
|
-
onResize:
|
|
64
|
+
onCollapse: require_utils_common_function.fnAll(props.onCollapse, onCollapse),
|
|
65
|
+
onExpand: require_utils_common_function.fnAll(props.onExpand, onExpand),
|
|
66
|
+
onResize: require_utils_common_function.fnAll(props.onResize, onResize)
|
|
66
67
|
}), [
|
|
67
68
|
as,
|
|
68
69
|
controlRef,
|
|
@@ -96,13 +97,13 @@ const useResizableTrigger = ({ id, ref, as, disabled, onDragging,...rest }) => {
|
|
|
96
97
|
const getTriggerProps = (0, react.useCallback)((props = {}) => ({
|
|
97
98
|
id,
|
|
98
99
|
"aria-orientation": orientation,
|
|
99
|
-
"data-active":
|
|
100
|
+
"data-active": require_utils_common_dom.dataAttr(active),
|
|
100
101
|
disabled: trulyDisabled,
|
|
101
102
|
tagName: props.as ?? as,
|
|
102
103
|
...rest,
|
|
103
104
|
...props,
|
|
104
|
-
onDoubleClick:
|
|
105
|
-
onDragging:
|
|
105
|
+
onDoubleClick: require_utils_common_function.handlerAll(props.onDoubleClick, rest.onDoubleClick, onDoubleClick),
|
|
106
|
+
onDragging: require_utils_common_function.fnAll(props.onDragging, onDragging, setActive)
|
|
106
107
|
}), [
|
|
107
108
|
id,
|
|
108
109
|
as,
|
|
@@ -114,7 +115,7 @@ const useResizableTrigger = ({ id, ref, as, disabled, onDragging,...rest }) => {
|
|
|
114
115
|
active
|
|
115
116
|
]);
|
|
116
117
|
const getIconProps = (0, react.useCallback)((props = {}) => ({
|
|
117
|
-
"data-active":
|
|
118
|
+
"data-active": require_utils_common_dom.dataAttr(active),
|
|
118
119
|
"data-icon": "",
|
|
119
120
|
...props
|
|
120
121
|
}), [active]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-resizable.cjs","names":["getRootProps: PropGetter","getGroupProps: PropGetter<\n ResizableGroupProps,\n undefined,\n PanelGroupProps\n >","ref","getItemProps: PropGetter<ResizableItemProps, undefined, PanelProps>","ev: MouseEvent<HTMLDivElement>","getTriggerProps: PropGetter<\n ResizableTriggerProps,\n undefined,\n PanelResizeHandleProps\n >","getIconProps: PropGetter"],"sources":["../../../../src/components/resizable/use-resizable.ts"],"sourcesContent":["\"use client\"\n\nimport type { MouseEvent, MouseEventHandler, RefObject } from \"react\"\nimport type {\n ImperativePanelGroupHandle,\n ImperativePanelHandle,\n PanelGroupOnLayout,\n PanelGroupProps,\n PanelGroupStorage,\n PanelProps,\n PanelResizeHandleProps,\n} from \"react-resizable-panels\"\nimport type {\n HTMLProps,\n HTMLRefAttributes,\n Orientation,\n PropGetter,\n} from \"../../core\"\nimport { useCallback, useId, useLayoutEffect, useRef, useState } from \"react\"\nimport {\n getPanelElement,\n getPanelGroupElement,\n getResizeHandleElement,\n} from \"react-resizable-panels\"\nimport {\n assignRef,\n createContext,\n dataAttr,\n fnAll,\n handlerAll,\n mergeRefs,\n} from \"../../utils\"\n\ninterface ResizableContext\n extends Omit<UseResizableReturn, \"getGroupProps\" | \"getRootProps\"> {}\n\nexport const [ResizableContext, useResizableContext] =\n createContext<ResizableContext>({\n name: \"ResizableContext\",\n })\n\nexport interface ResizableStorage extends PanelGroupStorage {}\nexport interface ResizableGroupControl extends ImperativePanelGroupHandle {}\nexport interface ResizableItemControl extends ImperativePanelHandle {}\n\ninterface ResizableGroupProps\n extends Omit<Partial<PanelGroupProps>, \"tagName\"> {\n /**\n * Ref of the resizable group callback.\n */\n ref?: RefObject<ResizableGroupControl>\n /**\n * The HTML element to render.\n */\n as?: keyof HTMLElementTagNameMap\n}\ninterface ResizableItemProps extends Omit<PanelProps, \"tagName\"> {\n /**\n * Ref of the resizable item callback.\n */\n ref?: RefObject<ResizableItemControl>\n /**\n * The HTML element to render.\n */\n as?: keyof HTMLElementTagNameMap\n}\ninterface ResizableTriggerProps\n extends Omit<PanelResizeHandleProps, \"tagName\">,\n HTMLRefAttributes {\n /**\n * The HTML element to render.\n */\n as?: keyof HTMLElementTagNameMap\n}\n\nexport interface UseResizableProps extends HTMLProps {\n /**\n * Ref of the resizable item callback.\n */\n controlRef?: RefObject<null | ResizableGroupControl>\n /**\n * If `true`, the resizable trigger will be disabled.\n */\n disabled?: boolean\n /**\n * Unit to resize by keyboard operation.\n *\n * @default 10\n */\n keyboardStep?: number\n /**\n * The orientation of the resizable.\n *\n * @default \"horizontal\"\n */\n orientation?: Orientation\n /**\n * A callback that gets and sets a value in custom storage.\n */\n storage?: PanelGroupStorage\n /**\n * Key of value saved in storage.\n * By default, it is saved to `local storage`.\n */\n storageKey?: string\n /**\n * Props for resizable component.\n */\n groupProps?: ResizableGroupProps\n /**\n * The callback invoked when resizable items are resized.\n */\n onLayout?: PanelGroupOnLayout\n}\n\nexport const useResizable = ({\n id,\n ref,\n\n controlRef: controlRefProp,\n disabled,\n keyboardStep,\n orientation = \"horizontal\",\n storage,\n storageKey,\n groupProps = {},\n onLayout,\n ...rest\n}: UseResizableProps = {}) => {\n const controlRef = useRef<ResizableGroupControl>(null)\n const uuid = useId()\n\n id ??= uuid\n\n const getRootProps: PropGetter = useCallback(\n (props = {}) => ({ ...rest, ...props }),\n [rest],\n )\n\n const getGroupProps: PropGetter<\n ResizableGroupProps,\n undefined,\n PanelGroupProps\n > = useCallback(\n ({ ref, ...props } = {}) => ({\n id,\n autoSaveId: storageKey,\n direction: orientation,\n keyboardResizeBy: keyboardStep,\n storage,\n ...groupProps,\n ...props,\n ref: mergeRefs(ref, controlRefProp, controlRef),\n tagName: props.as ?? groupProps.as,\n onLayout: fnAll(props.onLayout, groupProps.onLayout, onLayout),\n }),\n [\n id,\n orientation,\n groupProps,\n controlRefProp,\n storageKey,\n keyboardStep,\n onLayout,\n storage,\n ],\n )\n\n useLayoutEffect(() => {\n const el = getPanelGroupElement(id) as HTMLDivElement | null\n\n assignRef(ref, el)\n }, [ref, id])\n\n return {\n controlRef,\n disabled,\n orientation,\n getGroupProps,\n getRootProps,\n }\n}\n\nexport type UseResizableReturn = ReturnType<typeof useResizable>\n\nexport interface UseResizableItemProps\n extends HTMLProps,\n Pick<ResizableItemProps, \"as\"> {\n /**\n * The collapsed size of the resizable item.\n */\n collapsedSize?: number\n /**\n * If `true`, the resizable item can be collapsed.\n *\n * @default false\n */\n collapsible?: boolean\n /**\n * Ref of the resizable item callback.\n */\n controlRef?: RefObject<null | ResizableItemControl>\n /**\n * The initial size of the resizable item.\n */\n defaultSize?: number\n /**\n * The maximum allowed value of the resizable item.\n */\n maxSize?: number\n /**\n * The minimum allowed value of the resizable item.\n */\n minSize?: number\n /**\n * Order for the resizable item.\n */\n order?: number\n /**\n * The callback invoked when resizable item are collapsed.\n */\n onCollapse?: () => void\n /**\n * The callback invoked when resizable item are expanded.\n */\n onExpand?: () => void\n /**\n * The callback invoked when resizable item are resized.\n */\n onResize?: (size: number, prevSize: number | undefined) => void\n}\n\nexport const useResizableItem = ({\n id,\n ref,\n as,\n controlRef,\n onCollapse,\n onExpand,\n onResize,\n ...rest\n}: UseResizableItemProps) => {\n const uuid = useId()\n\n id ??= uuid\n\n const getItemProps: PropGetter<ResizableItemProps, undefined, PanelProps> =\n useCallback(\n ({ ref, ...props } = {}) => ({\n id,\n ref: mergeRefs(ref, controlRef),\n tagName: props.as ?? as,\n ...props,\n ...rest,\n onCollapse: fnAll(props.onCollapse, onCollapse),\n onExpand: fnAll(props.onExpand, onExpand),\n onResize: fnAll(props.onResize, onResize),\n }),\n [as, controlRef, id, onCollapse, onExpand, onResize, rest],\n )\n\n useLayoutEffect(() => {\n const el = getPanelElement(id) as HTMLDivElement | null\n\n assignRef(ref, el)\n }, [ref, id])\n\n return {\n getItemProps,\n }\n}\n\nexport type UseResizableItemReturn = ReturnType<typeof useResizableItem>\n\nexport interface UseResizableTriggerProps\n extends HTMLProps,\n Pick<ResizableTriggerProps, \"as\"> {\n /**\n * If `true`, the resizable trigger will be disabled.\n *\n * @default false\n */\n disabled?: boolean\n /**\n * The callback invoked when resizable trigger are dragged.\n */\n onDragging?: (dragging: boolean) => void\n}\n\nexport const useResizableTrigger = ({\n id,\n ref,\n as,\n disabled,\n onDragging,\n ...rest\n}: UseResizableTriggerProps) => {\n const uuid = useId()\n const {\n controlRef,\n disabled: groupDisabled,\n orientation,\n } = useResizableContext()\n const [active, setActive] = useState<boolean>(false)\n const trulyDisabled = disabled || groupDisabled\n\n id ??= uuid\n\n const onDoubleClick = useCallback(\n (ev: MouseEvent<HTMLDivElement>) => {\n ev.preventDefault()\n\n const layout = controlRef.current?.getLayout()\n\n if (!layout) return\n\n const count = layout.length\n const size = 100 / count\n const nextLayout = layout.map(() => size)\n\n controlRef.current?.setLayout(nextLayout)\n },\n [controlRef],\n )\n\n const getTriggerProps: PropGetter<\n ResizableTriggerProps,\n undefined,\n PanelResizeHandleProps\n > = useCallback(\n (props = {}) =>\n ({\n id,\n \"aria-orientation\": orientation,\n \"data-active\": dataAttr(active),\n disabled: trulyDisabled,\n tagName: props.as ?? as,\n ...rest,\n ...props,\n onDoubleClick: handlerAll(\n props.onDoubleClick as MouseEventHandler<HTMLDivElement> | undefined,\n rest.onDoubleClick,\n onDoubleClick,\n ),\n onDragging: fnAll(props.onDragging, onDragging, setActive),\n }) as unknown as PanelResizeHandleProps,\n [\n id,\n as,\n orientation,\n trulyDisabled,\n rest,\n onDoubleClick,\n onDragging,\n active,\n ],\n )\n\n const getIconProps: PropGetter = useCallback(\n (props = {}) => ({\n \"data-active\": dataAttr(active),\n \"data-icon\": \"\",\n ...props,\n }),\n [active],\n )\n\n useLayoutEffect(() => {\n const el = getResizeHandleElement(id) as HTMLDivElement | null\n\n assignRef(ref, el)\n }, [ref, id])\n\n return {\n getIconProps,\n getTriggerProps,\n }\n}\n\nexport type UseResiz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ACD,CAAC,MAAO,EACT;AAED,4BAAgB,MAAM;EACpB,MAAM,KAAK,mDAAuB,GAAG;AAErC,8BAAU,KAAK,GAAG;CACnB,GAAE,CAAC,KAAK,EAAG,EAAC;AAEb,QAAO;EACL;EACA;CACD;AACF"}
|
|
1
|
+
{"version":3,"file":"use-resizable.cjs","names":["getRootProps: PropGetter","getGroupProps: PropGetter<\n ResizableGroupProps,\n undefined,\n PanelGroupProps\n >","ref","getItemProps: PropGetter<ResizableItemProps, undefined, PanelProps>","ev: MouseEvent<HTMLDivElement>","getTriggerProps: PropGetter<\n ResizableTriggerProps,\n undefined,\n PanelResizeHandleProps\n >","getIconProps: PropGetter"],"sources":["../../../../src/components/resizable/use-resizable.ts"],"sourcesContent":["\"use client\"\n\nimport type { MouseEvent, MouseEventHandler, RefObject } from \"react\"\nimport type {\n ImperativePanelGroupHandle,\n ImperativePanelHandle,\n PanelGroupOnLayout,\n PanelGroupProps,\n PanelGroupStorage,\n PanelProps,\n PanelResizeHandleProps,\n} from \"react-resizable-panels\"\nimport type {\n HTMLProps,\n HTMLRefAttributes,\n Orientation,\n PropGetter,\n} from \"../../core\"\nimport { useCallback, useId, useLayoutEffect, useRef, useState } from \"react\"\nimport {\n getPanelElement,\n getPanelGroupElement,\n getResizeHandleElement,\n} from \"react-resizable-panels\"\nimport {\n assignRef,\n createContext,\n dataAttr,\n fnAll,\n handlerAll,\n mergeRefs,\n} from \"../../utils\"\n\ninterface ResizableContext\n extends Omit<UseResizableReturn, \"getGroupProps\" | \"getRootProps\"> {}\n\nexport const [ResizableContext, useResizableContext] =\n createContext<ResizableContext>({\n name: \"ResizableContext\",\n })\n\nexport interface ResizableStorage extends PanelGroupStorage {}\nexport interface ResizableGroupControl extends ImperativePanelGroupHandle {}\nexport interface ResizableItemControl extends ImperativePanelHandle {}\n\ninterface ResizableGroupProps\n extends Omit<Partial<PanelGroupProps>, \"tagName\"> {\n /**\n * Ref of the resizable group callback.\n */\n ref?: RefObject<ResizableGroupControl>\n /**\n * The HTML element to render.\n */\n as?: keyof HTMLElementTagNameMap\n}\ninterface ResizableItemProps extends Omit<PanelProps, \"tagName\"> {\n /**\n * Ref of the resizable item callback.\n */\n ref?: RefObject<ResizableItemControl>\n /**\n * The HTML element to render.\n */\n as?: keyof HTMLElementTagNameMap\n}\ninterface ResizableTriggerProps\n extends Omit<PanelResizeHandleProps, \"tagName\">,\n HTMLRefAttributes {\n /**\n * The HTML element to render.\n */\n as?: keyof HTMLElementTagNameMap\n}\n\nexport interface UseResizableProps extends HTMLProps {\n /**\n * Ref of the resizable item callback.\n */\n controlRef?: RefObject<null | ResizableGroupControl>\n /**\n * If `true`, the resizable trigger will be disabled.\n */\n disabled?: boolean\n /**\n * Unit to resize by keyboard operation.\n *\n * @default 10\n */\n keyboardStep?: number\n /**\n * The orientation of the resizable.\n *\n * @default \"horizontal\"\n */\n orientation?: Orientation\n /**\n * A callback that gets and sets a value in custom storage.\n */\n storage?: PanelGroupStorage\n /**\n * Key of value saved in storage.\n * By default, it is saved to `local storage`.\n */\n storageKey?: string\n /**\n * Props for resizable component.\n */\n groupProps?: ResizableGroupProps\n /**\n * The callback invoked when resizable items are resized.\n */\n onLayout?: PanelGroupOnLayout\n}\n\nexport const useResizable = ({\n id,\n ref,\n\n controlRef: controlRefProp,\n disabled,\n keyboardStep,\n orientation = \"horizontal\",\n storage,\n storageKey,\n groupProps = {},\n onLayout,\n ...rest\n}: UseResizableProps = {}) => {\n const controlRef = useRef<ResizableGroupControl>(null)\n const uuid = useId()\n\n id ??= uuid\n\n const getRootProps: PropGetter = useCallback(\n (props = {}) => ({ ...rest, ...props }),\n [rest],\n )\n\n const getGroupProps: PropGetter<\n ResizableGroupProps,\n undefined,\n PanelGroupProps\n > = useCallback(\n ({ ref, ...props } = {}) => ({\n id,\n autoSaveId: storageKey,\n direction: orientation,\n keyboardResizeBy: keyboardStep,\n storage,\n ...groupProps,\n ...props,\n ref: mergeRefs(ref, controlRefProp, controlRef),\n tagName: props.as ?? groupProps.as,\n onLayout: fnAll(props.onLayout, groupProps.onLayout, onLayout),\n }),\n [\n id,\n orientation,\n groupProps,\n controlRefProp,\n storageKey,\n keyboardStep,\n onLayout,\n storage,\n ],\n )\n\n useLayoutEffect(() => {\n const el = getPanelGroupElement(id) as HTMLDivElement | null\n\n assignRef(ref, el)\n }, [ref, id])\n\n return {\n controlRef,\n disabled,\n orientation,\n getGroupProps,\n getRootProps,\n }\n}\n\nexport type UseResizableReturn = ReturnType<typeof useResizable>\n\nexport interface UseResizableItemProps\n extends HTMLProps,\n Pick<ResizableItemProps, \"as\"> {\n /**\n * The collapsed size of the resizable item.\n */\n collapsedSize?: number\n /**\n * If `true`, the resizable item can be collapsed.\n *\n * @default false\n */\n collapsible?: boolean\n /**\n * Ref of the resizable item callback.\n */\n controlRef?: RefObject<null | ResizableItemControl>\n /**\n * The initial size of the resizable item.\n */\n defaultSize?: number\n /**\n * The maximum allowed value of the resizable item.\n */\n maxSize?: number\n /**\n * The minimum allowed value of the resizable item.\n */\n minSize?: number\n /**\n * Order for the resizable item.\n */\n order?: number\n /**\n * The callback invoked when resizable item are collapsed.\n */\n onCollapse?: () => void\n /**\n * The callback invoked when resizable item are expanded.\n */\n onExpand?: () => void\n /**\n * The callback invoked when resizable item are resized.\n */\n onResize?: (size: number, prevSize: number | undefined) => void\n}\n\nexport const useResizableItem = ({\n id,\n ref,\n as,\n controlRef,\n onCollapse,\n onExpand,\n onResize,\n ...rest\n}: UseResizableItemProps) => {\n const uuid = useId()\n\n id ??= uuid\n\n const getItemProps: PropGetter<ResizableItemProps, undefined, PanelProps> =\n useCallback(\n ({ ref, ...props } = {}) => ({\n id,\n ref: mergeRefs(ref, controlRef),\n tagName: props.as ?? as,\n ...props,\n ...rest,\n onCollapse: fnAll(props.onCollapse, onCollapse),\n onExpand: fnAll(props.onExpand, onExpand),\n onResize: fnAll(props.onResize, onResize),\n }),\n [as, controlRef, id, onCollapse, onExpand, onResize, rest],\n )\n\n useLayoutEffect(() => {\n const el = getPanelElement(id) as HTMLDivElement | null\n\n assignRef(ref, el)\n }, [ref, id])\n\n return {\n getItemProps,\n }\n}\n\nexport type UseResizableItemReturn = ReturnType<typeof useResizableItem>\n\nexport interface UseResizableTriggerProps\n extends HTMLProps,\n Pick<ResizableTriggerProps, \"as\"> {\n /**\n * If `true`, the resizable trigger will be disabled.\n *\n * @default false\n */\n disabled?: boolean\n /**\n * The callback invoked when resizable trigger are dragged.\n */\n onDragging?: (dragging: boolean) => void\n}\n\nexport const useResizableTrigger = ({\n id,\n ref,\n as,\n disabled,\n onDragging,\n ...rest\n}: UseResizableTriggerProps) => {\n const uuid = useId()\n const {\n controlRef,\n disabled: groupDisabled,\n orientation,\n } = useResizableContext()\n const [active, setActive] = useState<boolean>(false)\n const trulyDisabled = disabled || groupDisabled\n\n id ??= uuid\n\n const onDoubleClick = useCallback(\n (ev: MouseEvent<HTMLDivElement>) => {\n ev.preventDefault()\n\n const layout = controlRef.current?.getLayout()\n\n if (!layout) return\n\n const count = layout.length\n const size = 100 / count\n const nextLayout = layout.map(() => size)\n\n controlRef.current?.setLayout(nextLayout)\n },\n [controlRef],\n )\n\n const getTriggerProps: PropGetter<\n ResizableTriggerProps,\n undefined,\n PanelResizeHandleProps\n > = useCallback(\n (props = {}) =>\n ({\n id,\n \"aria-orientation\": orientation,\n \"data-active\": dataAttr(active),\n disabled: trulyDisabled,\n tagName: props.as ?? as,\n ...rest,\n ...props,\n onDoubleClick: handlerAll(\n props.onDoubleClick as MouseEventHandler<HTMLDivElement> | undefined,\n rest.onDoubleClick,\n onDoubleClick,\n ),\n onDragging: fnAll(props.onDragging, onDragging, setActive),\n }) as unknown as PanelResizeHandleProps,\n [\n id,\n as,\n orientation,\n trulyDisabled,\n rest,\n onDoubleClick,\n onDragging,\n active,\n ],\n )\n\n const getIconProps: PropGetter = useCallback(\n (props = {}) => ({\n \"data-active\": dataAttr(active),\n \"data-icon\": \"\",\n ...props,\n }),\n [active],\n )\n\n useLayoutEffect(() => {\n const el = getResizeHandleElement(id) as HTMLDivElement | null\n\n assignRef(ref, el)\n }, [ref, id])\n\n return {\n getIconProps,\n getTriggerProps,\n }\n}\n\nexport type UseResizableTriggerReturn = ReturnType<typeof useResizableTrigger>\n"],"mappings":";;;;;;;;;;;;AAoCA,MAAa,CAAC,kBAAkB,oBAAoB,GAClD,oCAAgC,EAC9B,MAAM,mBACP,EAAC;AA4EJ,MAAa,eAAe,CAAC,EAC3B,IACA,KAEA,YAAY,gBACZ,UACA,cACA,cAAc,cACd,SACA,YACA,aAAa,CAAE,GACf,SACA,GAAG,MACe,GAAG,CAAE,MAAK;CAC5B,MAAM,aAAa,kBAA8B,KAAK;CACtD,MAAM,OAAO,kBAAO;AAEpB,QAAO;CAEP,MAAMA,eAA2B,uBAC/B,CAAC,QAAQ,CAAE,OAAM;EAAE,GAAG;EAAM,GAAG;CAAO,IACtC,CAAC,IAAK,EACP;CAED,MAAMC,gBAIF,uBACF,CAAC,EAAE,WAAK,GAAG,OAAO,GAAG,CAAE,OAAM;EAC3B;EACA,YAAY;EACZ,WAAW;EACX,kBAAkB;EAClB;EACA,GAAG;EACH,GAAG;EACH,KAAK,4BAAUC,OAAK,gBAAgB,WAAW;EAC/C,SAAS,MAAM,MAAM,WAAW;EAChC,UAAU,oCAAM,MAAM,UAAU,WAAW,UAAU,SAAS;CAC/D,IACD;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACD,EACF;AAED,4BAAgB,MAAM;EACpB,MAAM,KAAK,iDAAqB,GAAG;AAEnC,8BAAU,KAAK,GAAG;CACnB,GAAE,CAAC,KAAK,EAAG,EAAC;AAEb,QAAO;EACL;EACA;EACA;EACA;EACA;CACD;AACF;AAmDD,MAAa,mBAAmB,CAAC,EAC/B,IACA,KACA,IACA,YACA,YACA,UACA,SACA,GAAG,MACmB,KAAK;CAC3B,MAAM,OAAO,kBAAO;AAEpB,QAAO;CAEP,MAAMC,eACJ,uBACE,CAAC,EAAE,WAAK,GAAG,OAAO,GAA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ACF;CAED,MAAMC,eAA2B,uBAC/B,CAAC,QAAQ,CAAE,OAAM;EACf,eAAe,kCAAS,OAAO;EAC/B,aAAa;EACb,GAAG;CACJ,IACD,CAAC,MAAO,EACT;AAED,4BAAgB,MAAM;EACpB,MAAM,KAAK,mDAAuB,GAAG;AAErC,8BAAU,KAAK,GAAG;CACnB,GAAE,CAAC,KAAK,EAAG,EAAC;AAEb,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_function = require('../../utils/common/function.cjs');
|
|
6
6
|
const require_core_components_create_component = require('../../core/components/create-component.cjs');
|
|
7
7
|
const require_components_motion_factory = require('../motion/factory.cjs');
|
|
8
8
|
const require_components_ripple_ripple_style = require('./ripple.style.cjs');
|
|
@@ -46,7 +46,7 @@ const Ripple = withContext(({ style, color = "currentColor", disabled, ripples,
|
|
|
46
46
|
},
|
|
47
47
|
transition: { duration },
|
|
48
48
|
...rest,
|
|
49
|
-
onAnimationComplete:
|
|
49
|
+
onAnimationComplete: require_utils_common_function.handlerAll(onAnimationComplete, () => onClear(key))
|
|
50
50
|
})
|
|
51
51
|
}, key);
|
|
52
52
|
}) });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ripple.cjs","names":["value: number","min: number","max: number","rippleStyle","Ripple: FC<RippleProps>","AnimatePresence","motion"],"sources":["../../../../src/components/ripple/ripple.tsx"],"sourcesContent":["\"use client\"\n\nimport type { FC, Key } from \"react\"\nimport type { ThemeProps } from \"../../core\"\nimport type { HTMLMotionProps } from \"../motion\"\nimport type { RippleStyle } from \"./ripple.style\"\nimport type { RippleOptions } from \"./use-ripple\"\nimport { AnimatePresence } from \"motion/react\"\nimport { createComponent } from \"../../core\"\nimport { handlerAll } from \"../../utils\"\nimport { motion } from \"../motion\"\nimport { rippleStyle } from \"./ripple.style\"\n\nconst clamp = (value: number, min: number, max: number) =>\n Math.min(Math.max(value, min), max)\n\nexport interface RippleProps\n extends HTMLMotionProps<\"span\">,\n ThemeProps<RippleStyle> {\n /**\n * The ripples to use.\n */\n ripples: RippleOptions[]\n /**\n * The callback invoked when a ripple is cleared.\n */\n onClear: (key: Key) => void\n /**\n * If `true`, disable ripple effects when pressing a element.\n *\n * @default false\n */\n disabled?: boolean\n}\n\nexport const {\n PropsContext: RipplePropsContext,\n usePropsContext: useRipplePropsContext,\n withContext,\n} = createComponent<RippleProps, RippleStyle>(\"ripple\", rippleStyle)\n\n/**\n * `Ripple` is a component that adds a ripple effect to elements, allowing users to recognize when they have clicked.\n *\n * @see https://yamada-ui.com/components/ripple\n */\nexport const Ripple: FC<RippleProps> = withContext(\n ({\n style,\n color = \"currentColor\",\n disabled,\n ripples,\n onAnimationComplete,\n onClear,\n ...rest\n }) => {\n if (disabled) return null\n\n return (\n <>\n {ripples.map(({ key, size, x, y }) => {\n const duration = clamp(0.01 * size, 0.2, size > 100 ? 0.75 : 0.5)\n\n return (\n <AnimatePresence key={key} mode=\"popLayout\">\n <motion.span\n style={{\n height: `${size}px`,\n left: x,\n pointerEvents: \"none\",\n position: \"absolute\",\n top: y,\n transformOrigin: \"center\",\n width: `${size}px`,\n ...style,\n }}\n animate={{ opacity: 0, transform: \"scale(2)\" }}\n bgColor={color}\n exit={{ opacity: 0 }}\n initial={{ opacity: 0.35, transform: \"scale(0)\" }}\n transition={{ duration }}\n {...rest}\n onAnimationComplete={handlerAll(onAnimationComplete, () =>\n onClear(key),\n )}\n />\n </AnimatePresence>\n )\n })}\n </>\n )\n },\n)()\n"],"mappings":";;;;;;;;;;;;AAaA,MAAM,QAAQ,CAACA,OAAeC,KAAaC,QACzC,KAAK,IAAI,KAAK,IAAI,OAAO,IAAI,EAAE,IAAI;AAqBrC,MAAa,EACX,cAAc,oBACd,iBAAiB,uBACjB,aACD,GAAG,yDAA0C,UAAUC,mDAAY;;;;;;AAOpE,MAAaC,SAA0B,YACrC,CAAC,EACC,OACA,QAAQ,gBACR,UACA,SACA,qBACA,QACA,GAAG,MACJ,KAAK;AACJ,KAAI,SAAU,QAAO;AAErB,wBACE,mEACG,QAAQ,IAAI,CAAC,EAAE,KAAK,MAAM,GAAG,GAAG,KAAK;EACpC,MAAM,WAAW,MAAM,MAAO,MAAM,IAAK,OAAO,MAAM,MAAO,GAAI;AAEjE,yBACE,2BAACC;GAA0B,MAAK;6BAC9B,2BAACC,yCAAO;IACN,OAAO;KACL,WAAW,KAAK;KAChB,MAAM;KACN,eAAe;KACf,UAAU;KACV,KAAK;KACL,iBAAiB;KACjB,UAAU,KAAK;KACf,GAAG;IACJ;IACD,SAAS;KAAE,SAAS;KAAG,WAAW;IAAY;IAC9C,SAAS;IACT,MAAM,EAAE,SAAS,EAAG;IACpB,SAAS;KAAE,SAAS;KAAM,WAAW;IAAY;IACjD,YAAY,EAAE,SAAU;IACxB,GAAI;IACJ,qBAAqB,
|
|
1
|
+
{"version":3,"file":"ripple.cjs","names":["value: number","min: number","max: number","rippleStyle","Ripple: FC<RippleProps>","AnimatePresence","motion"],"sources":["../../../../src/components/ripple/ripple.tsx"],"sourcesContent":["\"use client\"\n\nimport type { FC, Key } from \"react\"\nimport type { ThemeProps } from \"../../core\"\nimport type { HTMLMotionProps } from \"../motion\"\nimport type { RippleStyle } from \"./ripple.style\"\nimport type { RippleOptions } from \"./use-ripple\"\nimport { AnimatePresence } from \"motion/react\"\nimport { createComponent } from \"../../core\"\nimport { handlerAll } from \"../../utils\"\nimport { motion } from \"../motion\"\nimport { rippleStyle } from \"./ripple.style\"\n\nconst clamp = (value: number, min: number, max: number) =>\n Math.min(Math.max(value, min), max)\n\nexport interface RippleProps\n extends HTMLMotionProps<\"span\">,\n ThemeProps<RippleStyle> {\n /**\n * The ripples to use.\n */\n ripples: RippleOptions[]\n /**\n * The callback invoked when a ripple is cleared.\n */\n onClear: (key: Key) => void\n /**\n * If `true`, disable ripple effects when pressing a element.\n *\n * @default false\n */\n disabled?: boolean\n}\n\nexport const {\n PropsContext: RipplePropsContext,\n usePropsContext: useRipplePropsContext,\n withContext,\n} = createComponent<RippleProps, RippleStyle>(\"ripple\", rippleStyle)\n\n/**\n * `Ripple` is a component that adds a ripple effect to elements, allowing users to recognize when they have clicked.\n *\n * @see https://yamada-ui.com/components/ripple\n */\nexport const Ripple: FC<RippleProps> = withContext(\n ({\n style,\n color = \"currentColor\",\n disabled,\n ripples,\n onAnimationComplete,\n onClear,\n ...rest\n }) => {\n if (disabled) return null\n\n return (\n <>\n {ripples.map(({ key, size, x, y }) => {\n const duration = clamp(0.01 * size, 0.2, size > 100 ? 0.75 : 0.5)\n\n return (\n <AnimatePresence key={key} mode=\"popLayout\">\n <motion.span\n style={{\n height: `${size}px`,\n left: x,\n pointerEvents: \"none\",\n position: \"absolute\",\n top: y,\n transformOrigin: \"center\",\n width: `${size}px`,\n ...style,\n }}\n animate={{ opacity: 0, transform: \"scale(2)\" }}\n bgColor={color}\n exit={{ opacity: 0 }}\n initial={{ opacity: 0.35, transform: \"scale(0)\" }}\n transition={{ duration }}\n {...rest}\n onAnimationComplete={handlerAll(onAnimationComplete, () =>\n onClear(key),\n )}\n />\n </AnimatePresence>\n )\n })}\n </>\n )\n },\n)()\n"],"mappings":";;;;;;;;;;;;AAaA,MAAM,QAAQ,CAACA,OAAeC,KAAaC,QACzC,KAAK,IAAI,KAAK,IAAI,OAAO,IAAI,EAAE,IAAI;AAqBrC,MAAa,EACX,cAAc,oBACd,iBAAiB,uBACjB,aACD,GAAG,yDAA0C,UAAUC,mDAAY;;;;;;AAOpE,MAAaC,SAA0B,YACrC,CAAC,EACC,OACA,QAAQ,gBACR,UACA,SACA,qBACA,QACA,GAAG,MACJ,KAAK;AACJ,KAAI,SAAU,QAAO;AAErB,wBACE,mEACG,QAAQ,IAAI,CAAC,EAAE,KAAK,MAAM,GAAG,GAAG,KAAK;EACpC,MAAM,WAAW,MAAM,MAAO,MAAM,IAAK,OAAO,MAAM,MAAO,GAAI;AAEjE,yBACE,2BAACC;GAA0B,MAAK;6BAC9B,2BAACC,yCAAO;IACN,OAAO;KACL,WAAW,KAAK;KAChB,MAAM;KACN,eAAe;KACf,UAAU;KACV,KAAK;KACL,iBAAiB;KACjB,UAAU,KAAK;KACf,GAAG;IACJ;IACD,SAAS;KAAE,SAAS;KAAG,WAAW;IAAY;IAC9C,SAAS;IACT,MAAM,EAAE,SAAS,EAAG;IACpB,SAAS;KAAE,SAAS;KAAM,WAAW;IAAY;IACjD,YAAY,EAAE,SAAU;IACxB,GAAI;IACJ,qBAAqB,yCAAW,qBAAqB,MACnD,QAAQ,IAAI,CACb;KACD;KArBkB,IAsBJ;CAErB,EAAC,GACD;AAEN,EACF,EAAE"}
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
5
|
-
const
|
|
5
|
+
const require_utils_common_function = require('../../utils/common/function.cjs');
|
|
6
|
+
const require_utils_common_dom = require('../../utils/common/dom.cjs');
|
|
6
7
|
const react = require_rolldown_runtime.__toESM(require("react"));
|
|
7
8
|
|
|
8
9
|
//#region src/components/ripple/use-ripple.ts
|
|
@@ -14,7 +15,7 @@ const useRipple = ({ disabled,...rest } = {}) => {
|
|
|
14
15
|
const size = Math.max(trigger.clientWidth, trigger.clientHeight);
|
|
15
16
|
const rect = trigger.getBoundingClientRect();
|
|
16
17
|
setRipples((prev) => [...prev, {
|
|
17
|
-
key:
|
|
18
|
+
key: require_utils_common_dom.uuid(),
|
|
18
19
|
size,
|
|
19
20
|
x: ev.clientX - rect.x - size / 2,
|
|
20
21
|
y: ev.clientY - rect.y - size / 2
|
|
@@ -26,7 +27,7 @@ const useRipple = ({ disabled,...rest } = {}) => {
|
|
|
26
27
|
return {
|
|
27
28
|
ripples,
|
|
28
29
|
onClear,
|
|
29
|
-
onClick:
|
|
30
|
+
onClick: require_utils_common_function.handlerAll(onClick, rest.onClick)
|
|
30
31
|
};
|
|
31
32
|
};
|
|
32
33
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-ripple.cjs","names":["onClick: MouseEventHandler<T>","key: Key"],"sources":["../../../../src/components/ripple/use-ripple.ts"],"sourcesContent":["\"use client\"\n\nimport type { Key, MouseEventHandler } from \"react\"\nimport { useCallback, useState } from \"react\"\nimport { handlerAll, uuid } from \"../../utils\"\n\nexport interface RippleOptions {\n key: Key\n size: number\n x: number\n y: number\n}\n\nexport interface UseRippleProps<T = HTMLElement> {\n disabled?: boolean\n onClick?: MouseEventHandler<T>\n}\n\nexport const useRipple = <T = HTMLElement>({\n disabled,\n ...rest\n}: UseRippleProps<T> = {}) => {\n const [ripples, setRipples] = useState<RippleOptions[]>([])\n\n const onClick: MouseEventHandler<T> = useCallback(\n (ev) => {\n if (disabled) return\n\n const trigger = ev.currentTarget as unknown as Element\n\n const size = Math.max(trigger.clientWidth, trigger.clientHeight)\n const rect = trigger.getBoundingClientRect()\n\n setRipples((prev) => [\n ...prev,\n {\n key: uuid(),\n size,\n x: ev.clientX - rect.x - size / 2,\n y: ev.clientY - rect.y - size / 2,\n },\n ])\n },\n [disabled],\n )\n\n const onClear = useCallback((key: Key) => {\n setRipples((prev) => prev.filter((item) => item.key !== key))\n }, [])\n\n return {\n ripples,\n onClear,\n onClick: handlerAll(onClick, rest.onClick),\n }\n}\n\nexport type UseRippleReturn = ReturnType<typeof useRipple>\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-ripple.cjs","names":["onClick: MouseEventHandler<T>","key: Key"],"sources":["../../../../src/components/ripple/use-ripple.ts"],"sourcesContent":["\"use client\"\n\nimport type { Key, MouseEventHandler } from \"react\"\nimport { useCallback, useState } from \"react\"\nimport { handlerAll, uuid } from \"../../utils\"\n\nexport interface RippleOptions {\n key: Key\n size: number\n x: number\n y: number\n}\n\nexport interface UseRippleProps<T = HTMLElement> {\n disabled?: boolean\n onClick?: MouseEventHandler<T>\n}\n\nexport const useRipple = <T = HTMLElement>({\n disabled,\n ...rest\n}: UseRippleProps<T> = {}) => {\n const [ripples, setRipples] = useState<RippleOptions[]>([])\n\n const onClick: MouseEventHandler<T> = useCallback(\n (ev) => {\n if (disabled) return\n\n const trigger = ev.currentTarget as unknown as Element\n\n const size = Math.max(trigger.clientWidth, trigger.clientHeight)\n const rect = trigger.getBoundingClientRect()\n\n setRipples((prev) => [\n ...prev,\n {\n key: uuid(),\n size,\n x: ev.clientX - rect.x - size / 2,\n y: ev.clientY - rect.y - size / 2,\n },\n ])\n },\n [disabled],\n )\n\n const onClear = useCallback((key: Key) => {\n setRipples((prev) => prev.filter((item) => item.key !== key))\n }, [])\n\n return {\n ripples,\n onClear,\n onClick: handlerAll(onClick, rest.onClick),\n }\n}\n\nexport type UseRippleReturn = ReturnType<typeof useRipple>\n"],"mappings":";;;;;;;;;AAkBA,MAAa,YAAY,CAAkB,EACzC,SACA,GAAG,MACe,GAAG,CAAE,MAAK;CAC5B,MAAM,CAAC,SAAS,WAAW,GAAG,oBAA0B,CAAE,EAAC;CAE3D,MAAMA,UAAgC,uBACpC,CAAC,OAAO;AACN,MAAI,SAAU;EAEd,MAAM,UAAU,GAAG;EAEnB,MAAM,OAAO,KAAK,IAAI,QAAQ,aAAa,QAAQ,aAAa;EAChE,MAAM,OAAO,QAAQ,uBAAuB;AAE5C,aAAW,CAAC,SAAS,CACnB,GAAG,MACH;GACE,KAAK,+BAAM;GACX;GACA,GAAG,GAAG,UAAU,KAAK,IAAI,OAAO;GAChC,GAAG,GAAG,UAAU,KAAK,IAAI,OAAO;EACjC,CACF,EAAC;CACH,GACD,CAAC,QAAS,EACX;CAED,MAAM,UAAU,uBAAY,CAACC,QAAa;AACxC,aAAW,CAAC,SAAS,KAAK,OAAO,CAAC,SAAS,KAAK,QAAQ,IAAI,CAAC;CAC9D,GAAE,CAAE,EAAC;AAEN,QAAO;EACL;EACA;EACA,SAAS,yCAAW,SAAS,KAAK,QAAQ;CAC3C;AACF"}
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
5
|
-
const
|
|
5
|
+
const require_utils_common_function = require('../../utils/common/function.cjs');
|
|
6
|
+
const require_utils_common_dom = require('../../utils/common/dom.cjs');
|
|
6
7
|
const require_core_css_use_inject_vars = require('../../core/css/use-inject-vars.cjs');
|
|
7
8
|
const require_core_components_create_component = require('../../core/components/create-component.cjs');
|
|
8
9
|
const require_components_motion_factory = require('../motion/factory.cjs');
|
|
@@ -53,8 +54,8 @@ const Rotate = withContext(({ defaultValue = "from", delay = 0, disabled, durati
|
|
|
53
54
|
]);
|
|
54
55
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_motion_factory.motion.button, {
|
|
55
56
|
type: "button",
|
|
56
|
-
"data-disabled":
|
|
57
|
-
"data-readonly":
|
|
57
|
+
"data-disabled": require_utils_common_dom.dataAttr(disabled),
|
|
58
|
+
"data-readonly": require_utils_common_dom.dataAttr(readOnly),
|
|
58
59
|
"data-value": value,
|
|
59
60
|
animate,
|
|
60
61
|
custom: { rotate },
|
|
@@ -63,7 +64,7 @@ const Rotate = withContext(({ defaultValue = "from", delay = 0, disabled, durati
|
|
|
63
64
|
opacity,
|
|
64
65
|
rotate: "0deg"
|
|
65
66
|
},
|
|
66
|
-
onClick:
|
|
67
|
+
onClick: require_utils_common_function.handlerAll(onClickProp, onClick),
|
|
67
68
|
...rest,
|
|
68
69
|
children: value === "from" ? from : to
|
|
69
70
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rotate.cjs","names":["rotateStyle","motion"],"sources":["../../../../src/components/rotate/rotate.tsx"],"sourcesContent":["\"use client\"\n\nimport type { ReactNode } from \"react\"\nimport type { KeyframeIdent, ThemeProps } from \"../../core\"\nimport type { HTMLMotionProps } from \"../motion\"\nimport type { RotateStyle } from \"./rotate.style\"\nimport { useAnimation } from \"motion/react\"\nimport { useCallback } from \"react\"\nimport {\n createComponent,\n useInjectVarsIntoCss,\n useInjectVarsIntoProps,\n} from \"../../core\"\nimport { useControllableState } from \"../../hooks/use-controllable-state\"\nimport { dataAttr, handlerAll } from \"../../utils\"\nimport { motion } from \"../motion\"\nimport { rotateStyle } from \"./rotate.style\"\n\nexport interface RotateProps\n extends Omit<HTMLMotionProps<\"button\">, \"onChange\" | \"rotate\">,\n ThemeProps<RotateStyle> {\n /**\n * Passing React elements to \"from\" is required.\n */\n from: ReactNode\n /**\n * Passing React elements to \"to\" is required.\n */\n to: ReactNode\n /**\n * You can set the initial state.\n *\n * @default 'from'\n */\n defaultValue?: KeyframeIdent\n /**\n * The animation delay.\n *\n * @default 0\n */\n delay?: number\n /**\n * If `true`, the component is disabled.\n *\n * @default false\n */\n disabled?: boolean\n /**\n * The animation duration.\n *\n * @default 0.4\n */\n duration?: number\n /**\n * If `true`, the component is readonly.\n *\n * @default false\n */\n readOnly?: boolean\n /**\n * The animation rotation.\n *\n * @default 45\n */\n rotate?: number\n /**\n * Use this when you want to control the animation from outside the component.\n */\n value?: KeyframeIdent\n /**\n * This is a callback function that is called when the animation state changes.\n */\n onChange?: (value: KeyframeIdent) => void\n}\n\nexport const {\n PropsContext: RotatePropsContext,\n usePropsContext: useRotatePropsContext,\n withContext,\n} = createComponent<RotateProps, RotateStyle>(\"rotate\", rotateStyle)\n\n/**\n * `Rotate` is an animation component that alternately rotates two elements as they switch.\n *\n * @see https://yamada-ui.com/components/rotate\n */\nexport const Rotate = withContext<\"button\", RotateProps>(\n ({\n defaultValue = \"from\",\n delay = 0,\n disabled,\n duration = 0.4,\n from,\n readOnly,\n rotate = 45,\n to,\n value: valueProp,\n onChange,\n onClick: onClickProp,\n ...rest\n }) => {\n const opacity = \"var(--opacity)\"\n const animate = useAnimation()\n const [value, setValue] = useControllableState<KeyframeIdent>({\n defaultValue,\n value: valueProp,\n onChange,\n })\n\n const onClick = useCallback(async () => {\n if (readOnly) return\n\n await animate.start({\n opacity: 0,\n rotate: `${rotate}deg`,\n transition: { delay, duration },\n })\n\n setValue((prev) => (prev === \"from\" ? \"to\" : \"from\"))\n\n await animate.start({\n opacity: \"var(--opacity)\",\n rotate: \"0deg\",\n transition: { duration },\n })\n }, [readOnly, animate, rotate, duration, delay, setValue])\n\n return (\n <motion.button\n type=\"button\"\n data-disabled={dataAttr(disabled)}\n data-readonly={dataAttr(readOnly)}\n data-value={value}\n animate={animate}\n custom={{ rotate }}\n disabled={disabled}\n initial={{ opacity, rotate: \"0deg\" }}\n onClick={handlerAll(onClickProp, onClick)}\n {...rest}\n >\n {value === \"from\" ? from : to}\n </motion.button>\n )\n },\n)(undefined, (props) => {\n const css = useInjectVarsIntoCss(props.css, { opacity: \"opacity\" })\n const rest = useInjectVarsIntoProps(props, { opacity: \"opacity\" })\n\n return { ...rest, css, opacity: \"{opacity}\" }\n})\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"rotate.cjs","names":["rotateStyle","motion"],"sources":["../../../../src/components/rotate/rotate.tsx"],"sourcesContent":["\"use client\"\n\nimport type { ReactNode } from \"react\"\nimport type { KeyframeIdent, ThemeProps } from \"../../core\"\nimport type { HTMLMotionProps } from \"../motion\"\nimport type { RotateStyle } from \"./rotate.style\"\nimport { useAnimation } from \"motion/react\"\nimport { useCallback } from \"react\"\nimport {\n createComponent,\n useInjectVarsIntoCss,\n useInjectVarsIntoProps,\n} from \"../../core\"\nimport { useControllableState } from \"../../hooks/use-controllable-state\"\nimport { dataAttr, handlerAll } from \"../../utils\"\nimport { motion } from \"../motion\"\nimport { rotateStyle } from \"./rotate.style\"\n\nexport interface RotateProps\n extends Omit<HTMLMotionProps<\"button\">, \"onChange\" | \"rotate\">,\n ThemeProps<RotateStyle> {\n /**\n * Passing React elements to \"from\" is required.\n */\n from: ReactNode\n /**\n * Passing React elements to \"to\" is required.\n */\n to: ReactNode\n /**\n * You can set the initial state.\n *\n * @default 'from'\n */\n defaultValue?: KeyframeIdent\n /**\n * The animation delay.\n *\n * @default 0\n */\n delay?: number\n /**\n * If `true`, the component is disabled.\n *\n * @default false\n */\n disabled?: boolean\n /**\n * The animation duration.\n *\n * @default 0.4\n */\n duration?: number\n /**\n * If `true`, the component is readonly.\n *\n * @default false\n */\n readOnly?: boolean\n /**\n * The animation rotation.\n *\n * @default 45\n */\n rotate?: number\n /**\n * Use this when you want to control the animation from outside the component.\n */\n value?: KeyframeIdent\n /**\n * This is a callback function that is called when the animation state changes.\n */\n onChange?: (value: KeyframeIdent) => void\n}\n\nexport const {\n PropsContext: RotatePropsContext,\n usePropsContext: useRotatePropsContext,\n withContext,\n} = createComponent<RotateProps, RotateStyle>(\"rotate\", rotateStyle)\n\n/**\n * `Rotate` is an animation component that alternately rotates two elements as they switch.\n *\n * @see https://yamada-ui.com/components/rotate\n */\nexport const Rotate = withContext<\"button\", RotateProps>(\n ({\n defaultValue = \"from\",\n delay = 0,\n disabled,\n duration = 0.4,\n from,\n readOnly,\n rotate = 45,\n to,\n value: valueProp,\n onChange,\n onClick: onClickProp,\n ...rest\n }) => {\n const opacity = \"var(--opacity)\"\n const animate = useAnimation()\n const [value, setValue] = useControllableState<KeyframeIdent>({\n defaultValue,\n value: valueProp,\n onChange,\n })\n\n const onClick = useCallback(async () => {\n if (readOnly) return\n\n await animate.start({\n opacity: 0,\n rotate: `${rotate}deg`,\n transition: { delay, duration },\n })\n\n setValue((prev) => (prev === \"from\" ? \"to\" : \"from\"))\n\n await animate.start({\n opacity: \"var(--opacity)\",\n rotate: \"0deg\",\n transition: { duration },\n })\n }, [readOnly, animate, rotate, duration, delay, setValue])\n\n return (\n <motion.button\n type=\"button\"\n data-disabled={dataAttr(disabled)}\n data-readonly={dataAttr(readOnly)}\n data-value={value}\n animate={animate}\n custom={{ rotate }}\n disabled={disabled}\n initial={{ opacity, rotate: \"0deg\" }}\n onClick={handlerAll(onClickProp, onClick)}\n {...rest}\n >\n {value === \"from\" ? from : to}\n </motion.button>\n )\n },\n)(undefined, (props) => {\n const css = useInjectVarsIntoCss(props.css, { opacity: \"opacity\" })\n const rest = useInjectVarsIntoProps(props, { opacity: \"opacity\" })\n\n return { ...rest, css, opacity: \"{opacity}\" }\n})\n"],"mappings":";;;;;;;;;;;;;;;;AA2EA,MAAa,EACX,cAAc,oBACd,iBAAiB,uBACjB,aACD,GAAG,yDAA0C,UAAUA,mDAAY;;;;;;AAOpE,MAAa,SAAS,YACpB,CAAC,EACC,eAAe,QACf,QAAQ,GACR,UACA,WAAW,IACX,MACA,UACA,SAAS,IACT,IACA,OAAO,WACP,UACA,SAAS,YACT,GAAG,MACJ,KAAK;CACJ,MAAM,UAAU;CAChB,MAAM,UAAU,gCAAc;CAC9B,MAAM,CAAC,OAAO,SAAS,GAAG,gEAAoC;EAC5D;EACA,OAAO;EACP;CACD,EAAC;CAEF,MAAM,UAAU,uBAAY,YAAY;AACtC,MAAI,SAAU;AAEd,QAAM,QAAQ,MAAM;GAClB,SAAS;GACT,WAAW,OAAO;GAClB,YAAY;IAAE;IAAO;GAAU;EAChC,EAAC;AAEF,WAAS,CAAC,SAAU,SAAS,SAAS,OAAO,OAAQ;AAErD,QAAM,QAAQ,MAAM;GAClB,SAAS;GACT,QAAQ;GACR,YAAY,EAAE,SAAU;EACzB,EAAC;CACH,GAAE;EAAC;EAAU;EAAS;EAAQ;EAAU;EAAO;CAAS,EAAC;AAE1D,wBACE,2BAACC,yCAAO;EACN,MAAK;EACL,iBAAe,kCAAS,SAAS;EACjC,iBAAe,kCAAS,SAAS;EACjC,cAAY;EACH;EACT,QAAQ,EAAE,OAAQ;EACR;EACV,SAAS;GAAE;GAAS,QAAQ;EAAQ;EACpC,SAAS,yCAAW,aAAa,QAAQ;EACzC,GAAI;YAEH,UAAU,SAAS,OAAO;GACb;AAEnB,EACF,SAAY,CAAC,UAAU;CACtB,MAAM,MAAM,sDAAqB,MAAM,KAAK,EAAE,SAAS,UAAW,EAAC;CACnE,MAAM,OAAO,wDAAuB,O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