@kumix/ui 0.2.4 → 0.3.1
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/README.md +45 -10
- package/dist/components/custom/confirm-dialog.d.ts +16 -0
- package/dist/components/custom/confirm-dialog.d.ts.map +1 -0
- package/dist/components/custom/confirm-dialog.js +93 -0
- package/dist/components/custom/confirm-dialog.js.map +1 -0
- package/dist/components/custom/toast.d.ts +20 -0
- package/dist/components/custom/toast.d.ts.map +1 -0
- package/dist/components/custom/toast.js +73 -0
- package/dist/components/custom/toast.js.map +1 -0
- package/dist/components/motion/action-swap-blur.d.ts +11 -0
- package/dist/components/motion/action-swap-blur.d.ts.map +1 -0
- package/dist/components/motion/action-swap-blur.js +26 -0
- package/dist/components/motion/action-swap-blur.js.map +1 -0
- package/dist/components/motion/action-swap-cascade.d.ts +11 -0
- package/dist/components/motion/action-swap-cascade.d.ts.map +1 -0
- package/dist/components/motion/action-swap-cascade.js +26 -0
- package/dist/components/motion/action-swap-cascade.js.map +1 -0
- package/dist/components/motion/action-swap-roll.d.ts +11 -0
- package/dist/components/motion/action-swap-roll.d.ts.map +1 -0
- package/dist/components/motion/action-swap-roll.js +26 -0
- package/dist/components/motion/action-swap-roll.js.map +1 -0
- package/dist/components/motion/action-swap.d.ts +41 -0
- package/dist/components/motion/action-swap.d.ts.map +1 -0
- package/dist/components/motion/action-swap.js +261 -0
- package/dist/components/motion/action-swap.js.map +1 -0
- package/dist/components/motion/animated-badge.d.ts +18 -0
- package/dist/components/motion/animated-badge.d.ts.map +1 -0
- package/dist/components/motion/animated-badge.js +206 -0
- package/dist/components/motion/animated-badge.js.map +1 -0
- package/dist/components/motion/animated-number.d.ts +12 -0
- package/dist/components/motion/animated-number.d.ts.map +1 -0
- package/dist/components/motion/animated-number.js +47 -0
- package/dist/components/motion/animated-number.js.map +1 -0
- package/dist/components/motion/animated-sidebar.d.ts +97 -0
- package/dist/components/motion/animated-sidebar.d.ts.map +1 -0
- package/dist/components/motion/animated-sidebar.js +611 -0
- package/dist/components/motion/animated-sidebar.js.map +1 -0
- package/dist/components/motion/animated-toast-stack.d.ts +65 -0
- package/dist/components/motion/animated-toast-stack.d.ts.map +1 -0
- package/dist/components/motion/animated-toast-stack.js +303 -0
- package/dist/components/motion/animated-toast-stack.js.map +1 -0
- package/dist/components/motion/attachment-upload.d.ts +47 -0
- package/dist/components/motion/attachment-upload.d.ts.map +1 -0
- package/dist/components/motion/attachment-upload.js +737 -0
- package/dist/components/motion/attachment-upload.js.map +1 -0
- package/dist/components/motion/availability-scheduler/copy-menu.d.ts +10 -0
- package/dist/components/motion/availability-scheduler/copy-menu.d.ts.map +1 -0
- package/dist/components/motion/availability-scheduler/copy-menu.js +3 -0
- package/dist/components/motion/availability-scheduler/day-row.d.ts +15 -0
- package/dist/components/motion/availability-scheduler/day-row.d.ts.map +1 -0
- package/dist/components/motion/availability-scheduler/day-row.js +181 -0
- package/dist/components/motion/availability-scheduler/day-row.js.map +1 -0
- package/dist/components/motion/availability-scheduler/icon-button.d.ts +15 -0
- package/dist/components/motion/availability-scheduler/icon-button.d.ts.map +1 -0
- package/dist/components/motion/availability-scheduler/icon-button.js +24 -0
- package/dist/components/motion/availability-scheduler/icon-button.js.map +1 -0
- package/dist/components/motion/availability-scheduler/index.d.ts +14 -0
- package/dist/components/motion/availability-scheduler/index.d.ts.map +1 -0
- package/dist/components/motion/availability-scheduler/index.js +59 -0
- package/dist/components/motion/availability-scheduler/index.js.map +1 -0
- package/dist/components/motion/availability-scheduler/time-select.d.ts +10 -0
- package/dist/components/motion/availability-scheduler/time-select.d.ts.map +1 -0
- package/dist/components/motion/availability-scheduler/time-select.js +26 -0
- package/dist/components/motion/availability-scheduler/time-select.js.map +1 -0
- package/dist/components/motion/bloom-menu.d.ts +17 -0
- package/dist/components/motion/bloom-menu.d.ts.map +1 -0
- package/dist/components/motion/bloom-menu.js +170 -0
- package/dist/components/motion/bloom-menu.js.map +1 -0
- package/dist/components/motion/bottom-sheet.d.ts +19 -0
- package/dist/components/motion/bottom-sheet.d.ts.map +1 -0
- package/dist/components/motion/bottom-sheet.js +146 -0
- package/dist/components/motion/bottom-sheet.js.map +1 -0
- package/dist/components/motion/bounce-sidebar.d.ts +26 -0
- package/dist/components/motion/bounce-sidebar.d.ts.map +1 -0
- package/dist/components/motion/bounce-sidebar.js +164 -0
- package/dist/components/motion/bounce-sidebar.js.map +1 -0
- package/dist/components/motion/bouncy-accordion.d.ts +32 -0
- package/dist/components/motion/bouncy-accordion.d.ts.map +1 -0
- package/dist/components/motion/bouncy-accordion.js +172 -0
- package/dist/components/motion/bouncy-accordion.js.map +1 -0
- package/dist/components/motion/button/base.d.ts +17 -0
- package/dist/components/motion/button/base.d.ts.map +1 -0
- package/dist/components/motion/button/base.js +86 -0
- package/dist/components/motion/button/base.js.map +1 -0
- package/dist/components/motion/button/index.d.ts +4 -0
- package/dist/components/motion/button/index.js +5 -0
- package/dist/components/motion/button/magnetic.d.ts +12 -0
- package/dist/components/motion/button/magnetic.d.ts.map +1 -0
- package/dist/components/motion/button/magnetic.js +21 -0
- package/dist/components/motion/button/magnetic.js.map +1 -0
- package/dist/components/motion/button/stateful.d.ts +16 -0
- package/dist/components/motion/button/stateful.d.ts.map +1 -0
- package/dist/components/motion/button/stateful.js +190 -0
- package/dist/components/motion/button/stateful.js.map +1 -0
- package/dist/components/motion/center-morph-modal.d.ts +43 -0
- package/dist/components/motion/center-morph-modal.d.ts.map +1 -0
- package/dist/components/motion/center-morph-modal.js +238 -0
- package/dist/components/motion/center-morph-modal.js.map +1 -0
- package/dist/components/motion/checkbox.d.ts +15 -0
- package/dist/components/motion/checkbox.d.ts.map +1 -0
- package/dist/components/motion/checkbox.js +81 -0
- package/dist/components/motion/checkbox.js.map +1 -0
- package/dist/components/motion/chromatic-text-reveal.d.ts +31 -0
- package/dist/components/motion/chromatic-text-reveal.d.ts.map +1 -0
- package/dist/components/motion/chromatic-text-reveal.js +132 -0
- package/dist/components/motion/chromatic-text-reveal.js.map +1 -0
- package/dist/components/motion/command-palette.d.ts +26 -0
- package/dist/components/motion/command-palette.d.ts.map +1 -0
- package/dist/components/motion/command-palette.js +246 -0
- package/dist/components/motion/command-palette.js.map +1 -0
- package/dist/components/motion/context-menu.d.ts +71 -0
- package/dist/components/motion/context-menu.d.ts.map +1 -0
- package/dist/components/motion/context-menu.js +454 -0
- package/dist/components/motion/context-menu.js.map +1 -0
- package/dist/components/motion/cylinder-carousel.d.ts +40 -0
- package/dist/components/motion/cylinder-carousel.d.ts.map +1 -0
- package/dist/components/motion/cylinder-carousel.js +274 -0
- package/dist/components/motion/cylinder-carousel.js.map +1 -0
- package/dist/components/motion/dock.d.ts +24 -0
- package/dist/components/motion/dock.d.ts.map +1 -0
- package/dist/components/motion/dock.js +62 -0
- package/dist/components/motion/dock.js.map +1 -0
- package/dist/components/motion/drawer.d.ts +19 -0
- package/dist/components/motion/drawer.d.ts.map +1 -0
- package/dist/components/motion/drawer.js +58 -0
- package/dist/components/motion/drawer.js.map +1 -0
- package/dist/components/motion/dynamic-island.d.ts +22 -0
- package/dist/components/motion/dynamic-island.d.ts.map +1 -0
- package/dist/components/motion/dynamic-island.js +143 -0
- package/dist/components/motion/dynamic-island.js.map +1 -0
- package/dist/components/motion/expandable-action-bar.d.ts +52 -0
- package/dist/components/motion/expandable-action-bar.d.ts.map +1 -0
- package/dist/components/motion/expandable-action-bar.js +191 -0
- package/dist/components/motion/expandable-action-bar.js.map +1 -0
- package/dist/components/motion/expandable-tabs.d.ts +33 -0
- package/dist/components/motion/expandable-tabs.d.ts.map +1 -0
- package/dist/components/motion/expandable-tabs.js +291 -0
- package/dist/components/motion/expandable-tabs.js.map +1 -0
- package/dist/components/motion/feedback-widget.d.ts +18 -0
- package/dist/components/motion/feedback-widget.d.ts.map +1 -0
- package/dist/components/motion/feedback-widget.js +413 -0
- package/dist/components/motion/feedback-widget.js.map +1 -0
- package/dist/components/motion/file-upload.d.ts +48 -0
- package/dist/components/motion/file-upload.d.ts.map +1 -0
- package/dist/components/motion/file-upload.js +382 -0
- package/dist/components/motion/file-upload.js.map +1 -0
- package/dist/components/motion/hold-action-button.d.ts +17 -0
- package/dist/components/motion/hold-action-button.d.ts.map +1 -0
- package/dist/components/motion/hold-action-button.js +158 -0
- package/dist/components/motion/hold-action-button.js.map +1 -0
- package/dist/components/motion/infinite-masonry.d.ts +31 -0
- package/dist/components/motion/infinite-masonry.d.ts.map +1 -0
- package/dist/components/motion/infinite-masonry.js +223 -0
- package/dist/components/motion/infinite-masonry.js.map +1 -0
- package/dist/components/motion/input.d.ts +29 -0
- package/dist/components/motion/input.d.ts.map +1 -0
- package/dist/components/motion/input.js +126 -0
- package/dist/components/motion/input.js.map +1 -0
- package/dist/components/motion/loader.d.ts +17 -0
- package/dist/components/motion/loader.d.ts.map +1 -0
- package/dist/components/motion/loader.js +791 -0
- package/dist/components/motion/loader.js.map +1 -0
- package/dist/components/motion/magnetic.d.ts +11 -0
- package/dist/components/motion/magnetic.d.ts.map +1 -0
- package/dist/components/motion/magnetic.js +44 -0
- package/dist/components/motion/magnetic.js.map +1 -0
- package/dist/components/motion/marquee.d.ts +15 -0
- package/dist/components/motion/marquee.d.ts.map +1 -0
- package/dist/components/motion/marquee.js +35 -0
- package/dist/components/motion/marquee.js.map +1 -0
- package/dist/components/motion/morphing-modal.d.ts +15 -0
- package/dist/components/motion/morphing-modal.d.ts.map +1 -0
- package/dist/components/motion/morphing-modal.js +117 -0
- package/dist/components/motion/morphing-modal.js.map +1 -0
- package/dist/components/motion/not-found/glitch.d.ts +6 -0
- package/dist/components/motion/not-found/glitch.d.ts.map +1 -0
- package/dist/components/motion/not-found/glitch.js +90 -0
- package/dist/components/motion/not-found/glitch.js.map +1 -0
- package/dist/components/motion/not-found/magnetic.d.ts +6 -0
- package/dist/components/motion/not-found/magnetic.d.ts.map +1 -0
- package/dist/components/motion/not-found/magnetic.js +47 -0
- package/dist/components/motion/not-found/magnetic.js.map +1 -0
- package/dist/components/motion/not-found/shared.d.ts +32 -0
- package/dist/components/motion/not-found/shared.d.ts.map +1 -0
- package/dist/components/motion/not-found/shared.js +52 -0
- package/dist/components/motion/not-found/shared.js.map +1 -0
- package/dist/components/motion/not-found/spotlight.d.ts +6 -0
- package/dist/components/motion/not-found/spotlight.d.ts.map +1 -0
- package/dist/components/motion/not-found/spotlight.js +70 -0
- package/dist/components/motion/not-found/spotlight.js.map +1 -0
- package/dist/components/motion/not-found/stacked.d.ts +6 -0
- package/dist/components/motion/not-found/stacked.d.ts.map +1 -0
- package/dist/components/motion/not-found/stacked.js +95 -0
- package/dist/components/motion/not-found/stacked.js.map +1 -0
- package/dist/components/motion/not-found/terminal.d.ts +6 -0
- package/dist/components/motion/not-found/terminal.d.ts.map +1 -0
- package/dist/components/motion/not-found/terminal.js +90 -0
- package/dist/components/motion/not-found/terminal.js.map +1 -0
- package/dist/components/motion/notification-stack.d.ts +35 -0
- package/dist/components/motion/notification-stack.d.ts.map +1 -0
- package/dist/components/motion/notification-stack.js +187 -0
- package/dist/components/motion/notification-stack.js.map +1 -0
- package/dist/components/motion/number-ticker.d.ts +26 -0
- package/dist/components/motion/number-ticker.d.ts.map +1 -0
- package/dist/components/motion/number-ticker.js +129 -0
- package/dist/components/motion/number-ticker.js.map +1 -0
- package/dist/components/motion/otp-input.d.ts +32 -0
- package/dist/components/motion/otp-input.d.ts.map +1 -0
- package/dist/components/motion/otp-input.js +272 -0
- package/dist/components/motion/otp-input.js.map +1 -0
- package/dist/components/motion/overflow-actions.d.ts +39 -0
- package/dist/components/motion/overflow-actions.d.ts.map +1 -0
- package/dist/components/motion/overflow-actions.js +220 -0
- package/dist/components/motion/overflow-actions.js.map +1 -0
- package/dist/components/motion/parallax.d.ts +21 -0
- package/dist/components/motion/parallax.d.ts.map +1 -0
- package/dist/components/motion/parallax.js +35 -0
- package/dist/components/motion/parallax.js.map +1 -0
- package/dist/components/motion/popover-morph.d.ts +38 -0
- package/dist/components/motion/popover-morph.d.ts.map +1 -0
- package/dist/components/motion/popover-morph.js +167 -0
- package/dist/components/motion/popover-morph.js.map +1 -0
- package/dist/components/motion/popover.d.ts +40 -0
- package/dist/components/motion/popover.d.ts.map +1 -0
- package/dist/components/motion/popover.js +393 -0
- package/dist/components/motion/popover.js.map +1 -0
- package/dist/components/motion/preview-rail.d.ts +26 -0
- package/dist/components/motion/preview-rail.d.ts.map +1 -0
- package/dist/components/motion/preview-rail.js +134 -0
- package/dist/components/motion/preview-rail.js.map +1 -0
- package/dist/components/motion/pull-to-refresh.d.ts +28 -0
- package/dist/components/motion/pull-to-refresh.d.ts.map +1 -0
- package/dist/components/motion/pull-to-refresh.js +389 -0
- package/dist/components/motion/pull-to-refresh.js.map +1 -0
- package/dist/components/motion/radio.d.ts +22 -0
- package/dist/components/motion/radio.d.ts.map +1 -0
- package/dist/components/motion/radio.js +79 -0
- package/dist/components/motion/radio.js.map +1 -0
- package/dist/components/motion/range-slider-bubble.d.ts +16 -0
- package/dist/components/motion/range-slider-bubble.d.ts.map +1 -0
- package/dist/components/motion/range-slider-bubble.js +117 -0
- package/dist/components/motion/range-slider-bubble.js.map +1 -0
- package/dist/components/motion/range-slider-fluid.d.ts +18 -0
- package/dist/components/motion/range-slider-fluid.d.ts.map +1 -0
- package/dist/components/motion/range-slider-fluid.js +63 -0
- package/dist/components/motion/range-slider-fluid.js.map +1 -0
- package/dist/components/motion/range-slider-ruler.d.ts +19 -0
- package/dist/components/motion/range-slider-ruler.d.ts.map +1 -0
- package/dist/components/motion/range-slider-ruler.js +142 -0
- package/dist/components/motion/range-slider-ruler.js.map +1 -0
- package/dist/components/motion/range-slider-wave.d.ts +16 -0
- package/dist/components/motion/range-slider-wave.d.ts.map +1 -0
- package/dist/components/motion/range-slider-wave.js +57 -0
- package/dist/components/motion/range-slider-wave.js.map +1 -0
- package/dist/components/motion/range-slider.d.ts +11 -0
- package/dist/components/motion/range-slider.d.ts.map +1 -0
- package/dist/components/motion/range-slider.js +63 -0
- package/dist/components/motion/range-slider.js.map +1 -0
- package/dist/components/motion/scroll-progress.d.ts +29 -0
- package/dist/components/motion/scroll-progress.d.ts.map +1 -0
- package/dist/components/motion/scroll-progress.js +71 -0
- package/dist/components/motion/scroll-progress.js.map +1 -0
- package/dist/components/motion/scroll-reveal.d.ts +23 -0
- package/dist/components/motion/scroll-reveal.d.ts.map +1 -0
- package/dist/components/motion/scroll-reveal.js +42 -0
- package/dist/components/motion/scroll-reveal.js.map +1 -0
- package/dist/components/motion/scroll-to.d.ts +21 -0
- package/dist/components/motion/scroll-to.d.ts.map +1 -0
- package/dist/components/motion/scroll-to.js +27 -0
- package/dist/components/motion/scroll-to.js.map +1 -0
- package/dist/components/motion/select-morph.d.ts +41 -0
- package/dist/components/motion/select-morph.d.ts.map +1 -0
- package/dist/components/motion/select-morph.js +251 -0
- package/dist/components/motion/select-morph.js.map +1 -0
- package/dist/components/motion/select.d.ts +36 -0
- package/dist/components/motion/select.d.ts.map +1 -0
- package/dist/components/motion/select.js +319 -0
- package/dist/components/motion/select.js.map +1 -0
- package/dist/components/motion/shader-background.d.ts +38 -0
- package/dist/components/motion/shader-background.d.ts.map +1 -0
- package/dist/components/motion/shader-background.js +49 -0
- package/dist/components/motion/shader-background.js.map +1 -0
- package/dist/components/motion/shared-layout-bg.d.ts +17 -0
- package/dist/components/motion/shared-layout-bg.d.ts.map +1 -0
- package/dist/components/motion/shared-layout-bg.js +88 -0
- package/dist/components/motion/shared-layout-bg.js.map +1 -0
- package/dist/components/motion/slide-action-button.d.ts +15 -0
- package/dist/components/motion/slide-action-button.d.ts.map +1 -0
- package/dist/components/motion/slide-action-button.js +146 -0
- package/dist/components/motion/slide-action-button.js.map +1 -0
- package/dist/components/motion/smooth-scroll.d.ts +47 -0
- package/dist/components/motion/smooth-scroll.d.ts.map +1 -0
- package/dist/components/motion/smooth-scroll.js +182 -0
- package/dist/components/motion/smooth-scroll.js.map +1 -0
- package/dist/components/motion/swipeable-list.d.ts +60 -0
- package/dist/components/motion/swipeable-list.d.ts.map +1 -0
- package/dist/components/motion/swipeable-list.js +254 -0
- package/dist/components/motion/swipeable-list.js.map +1 -0
- package/dist/components/motion/switch.d.ts +13 -0
- package/dist/components/motion/switch.d.ts.map +1 -0
- package/dist/components/motion/switch.js +76 -0
- package/dist/components/motion/switch.js.map +1 -0
- package/dist/components/motion/table/editable-cell.d.ts +9 -0
- package/dist/components/motion/table/editable-cell.d.ts.map +1 -0
- package/dist/components/motion/table/editable-cell.js +17 -0
- package/dist/components/motion/table/editable-cell.js.map +1 -0
- package/dist/components/motion/table/index.d.ts +6 -0
- package/dist/components/motion/table/index.d.ts.map +1 -0
- package/dist/components/motion/table/index.js +420 -0
- package/dist/components/motion/table/index.js.map +1 -0
- package/dist/components/motion/table/row-handle.d.ts +15 -0
- package/dist/components/motion/table/row-handle.d.ts.map +1 -0
- package/dist/components/motion/table/row-handle.js +51 -0
- package/dist/components/motion/table/row-handle.js.map +1 -0
- package/dist/components/motion/table/skeleton-rows.d.ts +11 -0
- package/dist/components/motion/table/skeleton-rows.d.ts.map +1 -0
- package/dist/components/motion/table/skeleton-rows.js +23 -0
- package/dist/components/motion/table/skeleton-rows.js.map +1 -0
- package/dist/components/motion/table/table-header.d.ts +35 -0
- package/dist/components/motion/table/table-header.d.ts.map +1 -0
- package/dist/components/motion/table/table-header.js +167 -0
- package/dist/components/motion/table/table-header.js.map +1 -0
- package/dist/components/motion/table/table-menu.d.ts +17 -0
- package/dist/components/motion/table/table-menu.d.ts.map +1 -0
- package/dist/components/motion/table/table-menu.js +92 -0
- package/dist/components/motion/table/table-menu.js.map +1 -0
- package/dist/components/motion/tabs.d.ts +29 -0
- package/dist/components/motion/tabs.d.ts.map +1 -0
- package/dist/components/motion/tabs.js +125 -0
- package/dist/components/motion/tabs.js.map +1 -0
- package/dist/components/motion/text-cascade.d.ts +15 -0
- package/dist/components/motion/text-cascade.d.ts.map +1 -0
- package/dist/components/motion/text-cascade.js +21 -0
- package/dist/components/motion/text-cascade.js.map +1 -0
- package/dist/components/motion/text-reveal.d.ts +25 -0
- package/dist/components/motion/text-reveal.d.ts.map +1 -0
- package/dist/components/motion/text-reveal.js +94 -0
- package/dist/components/motion/text-reveal.js.map +1 -0
- package/dist/components/motion/text-shimmer.d.ts +12 -0
- package/dist/components/motion/text-shimmer.d.ts.map +1 -0
- package/dist/components/motion/text-shimmer.js +15 -0
- package/dist/components/motion/text-shimmer.js.map +1 -0
- package/dist/components/motion/theme-toggle.d.ts +23 -0
- package/dist/components/motion/theme-toggle.d.ts.map +1 -0
- package/dist/components/motion/theme-toggle.js +160 -0
- package/dist/components/motion/theme-toggle.js.map +1 -0
- package/dist/components/motion/tilt-card.d.ts +12 -0
- package/dist/components/motion/tilt-card.d.ts.map +1 -0
- package/dist/components/motion/tilt-card.js +56 -0
- package/dist/components/motion/tilt-card.js.map +1 -0
- package/dist/components/motion/tooltip.d.ts +17 -0
- package/dist/components/motion/tooltip.d.ts.map +1 -0
- package/dist/components/motion/tooltip.js +194 -0
- package/dist/components/motion/tooltip.js.map +1 -0
- package/dist/components/motion/wheel-picker.d.ts +24 -0
- package/dist/components/motion/wheel-picker.d.ts.map +1 -0
- package/dist/components/motion/wheel-picker.js +442 -0
- package/dist/components/motion/wheel-picker.js.map +1 -0
- package/dist/components/reui/alert.d.ts +1 -1
- package/dist/components/reui/autocomplete.js +1 -1
- package/dist/components/reui/badge.d.ts +2 -2
- package/dist/components/reui/badge.js +10 -9
- package/dist/components/reui/badge.js.map +1 -1
- package/dist/components/reui/data-grid/data-grid-column-filter.js +2 -2
- package/dist/components/reui/data-grid/data-grid-column-header.js +1 -1
- package/dist/components/reui/data-grid/data-grid-pagination.js +1 -1
- package/dist/components/reui/data-grid/data-grid-table-dnd-rows.js +1 -1
- package/dist/components/reui/data-grid/data-grid-table-dnd.js +22 -20
- package/dist/components/reui/data-grid/data-grid-table-dnd.js.map +1 -1
- package/dist/components/reui/data-grid/data-grid-table-virtual.d.ts +1 -1
- package/dist/components/reui/data-grid/data-grid-table-virtual.js +1 -1
- package/dist/components/reui/data-grid/data-grid-table.js +5 -3
- package/dist/components/reui/data-grid/data-grid-table.js.map +1 -1
- package/dist/components/reui/date-selector.js +2 -2
- package/dist/components/reui/event-calendar/event-calendar-agenda-view.js +3 -2
- package/dist/components/reui/event-calendar/event-calendar-agenda-view.js.map +1 -1
- package/dist/components/reui/event-calendar/event-calendar-content.js +8 -7
- package/dist/components/reui/event-calendar/event-calendar-content.js.map +1 -1
- package/dist/components/reui/event-calendar/event-calendar-dnd.js +7 -4
- package/dist/components/reui/event-calendar/event-calendar-dnd.js.map +1 -1
- package/dist/components/reui/event-calendar/event-calendar-event.js +50 -48
- package/dist/components/reui/event-calendar/event-calendar-event.js.map +1 -1
- package/dist/components/reui/event-calendar/event-calendar-lib.js +3 -2
- package/dist/components/reui/event-calendar/event-calendar-lib.js.map +1 -1
- package/dist/components/reui/event-calendar/event-calendar-month-view.js +1 -1
- package/dist/components/reui/event-calendar/event-calendar-nav.js +38 -32
- package/dist/components/reui/event-calendar/event-calendar-nav.js.map +1 -1
- package/dist/components/reui/event-calendar/event-calendar-time-grid.js +2 -1
- package/dist/components/reui/event-calendar/event-calendar-time-grid.js.map +1 -1
- package/dist/components/reui/event-calendar/event-calendar.js +2 -1
- package/dist/components/reui/event-calendar/event-calendar.js.map +1 -1
- package/dist/components/reui/filters.js +6 -4
- package/dist/components/reui/filters.js.map +1 -1
- package/dist/components/reui/frame.d.ts +1 -1
- package/dist/components/reui/gantt/gantt-bar.js +53 -52
- package/dist/components/reui/gantt/gantt-bar.js.map +1 -1
- package/dist/components/reui/gantt/gantt-lib.js +3 -2
- package/dist/components/reui/gantt/gantt-lib.js.map +1 -1
- package/dist/components/reui/gantt/gantt-nav.js +35 -31
- package/dist/components/reui/gantt/gantt-nav.js.map +1 -1
- package/dist/components/reui/gantt/gantt-recurrence.js +2 -2
- package/dist/components/reui/gantt/gantt-recurrence.js.map +1 -1
- package/dist/components/reui/gantt/gantt-view.js +177 -173
- package/dist/components/reui/gantt/gantt-view.js.map +1 -1
- package/dist/components/reui/icon-tile.d.ts +1 -1
- package/dist/components/reui/icon-tile.js +12 -11
- package/dist/components/reui/icon-tile.js.map +1 -1
- package/dist/components/reui/kanban.js +42 -37
- package/dist/components/reui/kanban.js.map +1 -1
- package/dist/components/reui/number-field.js +1 -1
- package/dist/components/reui/phone-input.js +2 -2
- package/dist/components/reui/rating.js +1 -1
- package/dist/components/reui/sortable.js +10 -9
- package/dist/components/reui/sortable.js.map +1 -1
- package/dist/components/reui/stepper.js +16 -16
- package/dist/components/reui/stepper.js.map +1 -1
- package/dist/components/reui/timeline.js +45 -38
- package/dist/components/reui/timeline.js.map +1 -1
- package/dist/components/reui/tree.js +3 -2
- package/dist/components/reui/tree.js.map +1 -1
- package/dist/components/ui/accordion.js +1 -1
- package/dist/components/ui/alert-dialog.js +1 -1
- package/dist/components/ui/attachment.d.ts +2 -2
- package/dist/components/ui/badge.d.ts +1 -1
- package/dist/components/ui/breadcrumb.js +1 -1
- package/dist/components/ui/bubble.d.ts +1 -1
- package/dist/components/ui/button-group.d.ts +1 -1
- package/dist/components/ui/button.d.ts +3 -3
- package/dist/components/ui/button.js +1 -1
- package/dist/components/ui/calendar.js +1 -1
- package/dist/components/ui/carousel.js +1 -1
- package/dist/components/ui/checkbox.js +1 -1
- package/dist/components/ui/combobox.js +1 -1
- package/dist/components/ui/command.js +1 -1
- package/dist/components/ui/context-menu.js +1 -1
- package/dist/components/ui/dialog.js +1 -1
- package/dist/components/ui/dropdown-menu.js +1 -1
- package/dist/components/ui/empty.d.ts +1 -1
- package/dist/components/ui/field.d.ts +1 -1
- package/dist/components/ui/input-otp.js +1 -1
- package/dist/components/ui/item.d.ts +1 -1
- package/dist/components/ui/marker.d.ts +1 -1
- package/dist/components/ui/menubar.js +1 -1
- package/dist/components/ui/message-scroller.js +1 -1
- package/dist/components/ui/native-select.js +1 -1
- package/dist/components/ui/navigation-menu.js +1 -1
- package/dist/components/ui/pagination.js +1 -1
- package/dist/components/ui/select.js +1 -1
- package/dist/components/ui/sheet.js +1 -1
- package/dist/components/ui/sidebar.js +2 -2
- package/dist/components/ui/sidebar.js.map +1 -1
- package/dist/components/ui/sonner.js +1 -1
- package/dist/components/ui/spinner.js +1 -1
- package/dist/components/ui/toast.js +1 -1
- package/dist/copy-menu-BJ-MXnkN.js +201 -0
- package/dist/copy-menu-BJ-MXnkN.js.map +1 -0
- package/dist/hooks/use-hover-capable.d.ts +10 -0
- package/dist/hooks/use-hover-capable.d.ts.map +1 -0
- package/dist/hooks/use-hover-capable.js +24 -0
- package/dist/hooks/use-hover-capable.js.map +1 -0
- package/dist/hooks/use-mobile.js +1 -1
- package/dist/hooks/use-mobile.js.map +1 -1
- package/dist/hooks/use-slider.d.ts +58 -0
- package/dist/hooks/use-slider.d.ts.map +1 -0
- package/dist/hooks/use-slider.js +133 -0
- package/dist/hooks/use-slider.js.map +1 -0
- package/dist/lib/ease.d.ts +50 -0
- package/dist/lib/ease.d.ts.map +1 -0
- package/dist/lib/ease.js +66 -0
- package/dist/lib/ease.js.map +1 -0
- package/dist/lib/tick-sound.d.ts +17 -0
- package/dist/lib/tick-sound.d.ts.map +1 -0
- package/dist/lib/tick-sound.js +120 -0
- package/dist/lib/tick-sound.js.map +1 -0
- package/dist/popover-position-BUqYCq8X.js +54 -0
- package/dist/popover-position-BUqYCq8X.js.map +1 -0
- package/dist/types-Bah5NY44.d.ts +81 -0
- package/dist/types-Bah5NY44.d.ts.map +1 -0
- package/dist/types-smkWN_7x.d.ts +20 -0
- package/dist/types-smkWN_7x.d.ts.map +1 -0
- package/dist/utils-DQ7OpbYQ.js +25 -0
- package/dist/utils-DQ7OpbYQ.js.map +1 -0
- package/package.json +17 -6
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { EASE_OUT, EASE_OUT_CSS, SPRING_PRESS, SPRING_SWAP } from "../../lib/ease.js";
|
|
3
|
+
import { useLayoutEffect, useRef, useState } from "react";
|
|
4
|
+
import { cn } from "@kumix/utils";
|
|
5
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
import { AnimatePresence, motion, useReducedMotion } from "motion/react";
|
|
7
|
+
//#region src/components/motion/action-swap.tsx
|
|
8
|
+
const BLUR_TRANSITION = {
|
|
9
|
+
duration: .2,
|
|
10
|
+
ease: "easeInOut"
|
|
11
|
+
};
|
|
12
|
+
const ROLL_TRANSITION = SPRING_SWAP;
|
|
13
|
+
const ROLL_EXIT_TRANSITION = {
|
|
14
|
+
duration: .14,
|
|
15
|
+
ease: EASE_OUT
|
|
16
|
+
};
|
|
17
|
+
const SWAP_BLUR = "blur(8px)";
|
|
18
|
+
const ROLL_BLUR = "blur(3px)";
|
|
19
|
+
const CASCADE_STAGGER = .025;
|
|
20
|
+
const CASCADE_LETTER_VARIANTS = {
|
|
21
|
+
initial: {
|
|
22
|
+
opacity: 0,
|
|
23
|
+
y: "105%",
|
|
24
|
+
filter: ROLL_BLUR
|
|
25
|
+
},
|
|
26
|
+
animate: (delay = 0) => ({
|
|
27
|
+
opacity: 1,
|
|
28
|
+
y: "0%",
|
|
29
|
+
filter: "blur(0px)",
|
|
30
|
+
transition: {
|
|
31
|
+
...SPRING_SWAP,
|
|
32
|
+
delay
|
|
33
|
+
}
|
|
34
|
+
}),
|
|
35
|
+
exit: (delay = 0) => ({
|
|
36
|
+
opacity: 0,
|
|
37
|
+
y: "-105%",
|
|
38
|
+
filter: ROLL_BLUR,
|
|
39
|
+
transition: {
|
|
40
|
+
duration: .16,
|
|
41
|
+
ease: EASE_OUT,
|
|
42
|
+
delay: delay * .5
|
|
43
|
+
}
|
|
44
|
+
})
|
|
45
|
+
};
|
|
46
|
+
const TEXT_VARIANTS = {
|
|
47
|
+
blur: {
|
|
48
|
+
initial: {
|
|
49
|
+
opacity: 0,
|
|
50
|
+
scale: .94,
|
|
51
|
+
filter: SWAP_BLUR
|
|
52
|
+
},
|
|
53
|
+
animate: {
|
|
54
|
+
opacity: 1,
|
|
55
|
+
scale: 1,
|
|
56
|
+
filter: "blur(0px)",
|
|
57
|
+
transition: BLUR_TRANSITION
|
|
58
|
+
},
|
|
59
|
+
exit: {
|
|
60
|
+
opacity: 0,
|
|
61
|
+
scale: .94,
|
|
62
|
+
filter: SWAP_BLUR,
|
|
63
|
+
transition: BLUR_TRANSITION
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
roll: {
|
|
67
|
+
initial: {
|
|
68
|
+
opacity: 0,
|
|
69
|
+
y: "90%",
|
|
70
|
+
filter: ROLL_BLUR
|
|
71
|
+
},
|
|
72
|
+
animate: {
|
|
73
|
+
opacity: 1,
|
|
74
|
+
y: "0%",
|
|
75
|
+
filter: "blur(0px)",
|
|
76
|
+
transition: ROLL_TRANSITION
|
|
77
|
+
},
|
|
78
|
+
exit: {
|
|
79
|
+
opacity: 0,
|
|
80
|
+
y: "-90%",
|
|
81
|
+
filter: ROLL_BLUR,
|
|
82
|
+
transition: ROLL_EXIT_TRANSITION
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
const ICON_VARIANTS = {
|
|
87
|
+
blur: {
|
|
88
|
+
initial: {
|
|
89
|
+
opacity: 0,
|
|
90
|
+
scale: .25,
|
|
91
|
+
filter: SWAP_BLUR
|
|
92
|
+
},
|
|
93
|
+
animate: {
|
|
94
|
+
opacity: 1,
|
|
95
|
+
scale: 1,
|
|
96
|
+
filter: "blur(0px)",
|
|
97
|
+
transition: BLUR_TRANSITION
|
|
98
|
+
},
|
|
99
|
+
exit: {
|
|
100
|
+
opacity: 0,
|
|
101
|
+
scale: .25,
|
|
102
|
+
filter: SWAP_BLUR,
|
|
103
|
+
transition: BLUR_TRANSITION
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
roll: {
|
|
107
|
+
initial: {
|
|
108
|
+
opacity: 0,
|
|
109
|
+
y: 12,
|
|
110
|
+
filter: ROLL_BLUR
|
|
111
|
+
},
|
|
112
|
+
animate: {
|
|
113
|
+
opacity: 1,
|
|
114
|
+
y: 0,
|
|
115
|
+
filter: "blur(0px)",
|
|
116
|
+
transition: ROLL_TRANSITION
|
|
117
|
+
},
|
|
118
|
+
exit: {
|
|
119
|
+
opacity: 0,
|
|
120
|
+
y: -12,
|
|
121
|
+
filter: ROLL_BLUR,
|
|
122
|
+
transition: ROLL_EXIT_TRANSITION
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
};
|
|
126
|
+
const VARIANT_CLASS = {
|
|
127
|
+
primary: "bg-primary text-primary-foreground hover:bg-primary/90",
|
|
128
|
+
secondary: "border border-border bg-card text-foreground hover:border-border",
|
|
129
|
+
outline: "border border-border bg-transparent text-foreground hover:bg-primary/5",
|
|
130
|
+
ghost: "text-muted-foreground hover:bg-primary/5 hover:text-foreground"
|
|
131
|
+
};
|
|
132
|
+
const SIZE_CLASS = {
|
|
133
|
+
sm: "h-8 gap-1.5 rounded-full px-3 text-xs",
|
|
134
|
+
md: "h-10 gap-2 rounded-full px-4 text-sm",
|
|
135
|
+
lg: "h-12 gap-2.5 rounded-full px-5 text-base",
|
|
136
|
+
icon: "h-10 w-10 rounded-full"
|
|
137
|
+
};
|
|
138
|
+
function ActionSwapText({ value, children, animation = "blur", className }) {
|
|
139
|
+
const reduce = useReducedMotion();
|
|
140
|
+
const measureRef = useRef(null);
|
|
141
|
+
const [width, setWidth] = useState();
|
|
142
|
+
useLayoutEffect(() => {
|
|
143
|
+
const nextWidth = measureRef.current?.offsetWidth;
|
|
144
|
+
if (!nextWidth) return;
|
|
145
|
+
setWidth((currentWidth) => currentWidth === nextWidth ? currentWidth : nextWidth);
|
|
146
|
+
});
|
|
147
|
+
const label = typeof children === "string" ? children : null;
|
|
148
|
+
const cascade = animation === "cascade" && label !== null && !reduce;
|
|
149
|
+
const coreAnimation = animation === "cascade" ? "roll" : animation;
|
|
150
|
+
return /* @__PURE__ */ jsxs("span", {
|
|
151
|
+
className: cn("relative inline-block overflow-hidden whitespace-nowrap align-bottom", className),
|
|
152
|
+
style: {
|
|
153
|
+
width,
|
|
154
|
+
transition: reduce ? void 0 : `width 220ms ${EASE_OUT_CSS}`
|
|
155
|
+
},
|
|
156
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
157
|
+
ref: measureRef,
|
|
158
|
+
"aria-hidden": true,
|
|
159
|
+
className: "invisible inline-block whitespace-nowrap",
|
|
160
|
+
children
|
|
161
|
+
}), cascade ? /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("span", {
|
|
162
|
+
className: "sr-only",
|
|
163
|
+
children: label
|
|
164
|
+
}), /* @__PURE__ */ jsx(AnimatePresence, {
|
|
165
|
+
initial: false,
|
|
166
|
+
children: /* @__PURE__ */ jsx(motion.span, {
|
|
167
|
+
"aria-hidden": true,
|
|
168
|
+
initial: "initial",
|
|
169
|
+
animate: "animate",
|
|
170
|
+
exit: "exit",
|
|
171
|
+
className: "absolute top-0 left-0 inline-block whitespace-pre",
|
|
172
|
+
children: label.split("").map((char, i) => /* @__PURE__ */ jsx(motion.span, {
|
|
173
|
+
custom: i * CASCADE_STAGGER,
|
|
174
|
+
variants: CASCADE_LETTER_VARIANTS,
|
|
175
|
+
className: "inline-block whitespace-pre will-change-[opacity,filter,transform]",
|
|
176
|
+
children: char
|
|
177
|
+
}, i))
|
|
178
|
+
}, `cascade-${value}`)
|
|
179
|
+
})] }) : /* @__PURE__ */ jsx(AnimatePresence, {
|
|
180
|
+
initial: false,
|
|
181
|
+
children: /* @__PURE__ */ jsx(motion.span, {
|
|
182
|
+
variants: TEXT_VARIANTS[coreAnimation],
|
|
183
|
+
initial: reduce ? false : "initial",
|
|
184
|
+
animate: reduce ? {
|
|
185
|
+
opacity: 1,
|
|
186
|
+
filter: "blur(0px)",
|
|
187
|
+
scale: 1,
|
|
188
|
+
y: 0
|
|
189
|
+
} : "animate",
|
|
190
|
+
exit: reduce ? void 0 : "exit",
|
|
191
|
+
className: "absolute top-0 left-0 inline-block will-change-[opacity,filter,transform]",
|
|
192
|
+
children
|
|
193
|
+
}, `${animation}-${value}`)
|
|
194
|
+
})]
|
|
195
|
+
});
|
|
196
|
+
}
|
|
197
|
+
function ActionSwapIcon({ value, children, animation = "blur", className }) {
|
|
198
|
+
const reduce = useReducedMotion();
|
|
199
|
+
const coreAnimation = animation === "cascade" ? "roll" : animation;
|
|
200
|
+
return /* @__PURE__ */ jsx("span", {
|
|
201
|
+
className: cn("relative inline-grid shrink-0 place-items-center overflow-hidden", className),
|
|
202
|
+
children: /* @__PURE__ */ jsx(AnimatePresence, {
|
|
203
|
+
mode: "popLayout",
|
|
204
|
+
initial: false,
|
|
205
|
+
children: /* @__PURE__ */ jsx(motion.span, {
|
|
206
|
+
"aria-hidden": true,
|
|
207
|
+
variants: ICON_VARIANTS[coreAnimation],
|
|
208
|
+
initial: reduce ? false : "initial",
|
|
209
|
+
animate: reduce ? {
|
|
210
|
+
opacity: 1,
|
|
211
|
+
filter: "blur(0px)",
|
|
212
|
+
scale: 1,
|
|
213
|
+
y: 0
|
|
214
|
+
} : "animate",
|
|
215
|
+
exit: reduce ? void 0 : "exit",
|
|
216
|
+
className: "col-start-1 row-start-1 inline-flex items-center justify-center will-change-[opacity,filter,transform]",
|
|
217
|
+
children
|
|
218
|
+
}, `${animation}-${value}`)
|
|
219
|
+
})
|
|
220
|
+
});
|
|
221
|
+
}
|
|
222
|
+
function ActionSwapButton({ items, value, defaultValue, onValueChange, variant = "secondary", size = "md", animation = "blur", iconOnly = size === "icon", cycle = true, className, disabled, onClick, ...rest }) {
|
|
223
|
+
const reduce = useReducedMotion();
|
|
224
|
+
const [internalValue, setInternalValue] = useState(defaultValue ?? items[0]?.id);
|
|
225
|
+
const currentValue = value ?? internalValue;
|
|
226
|
+
const activeIndex = Math.max(0, items.findIndex((item) => item.id === currentValue));
|
|
227
|
+
const activeItem = items[activeIndex] ?? items[0];
|
|
228
|
+
const hasIcon = items.some((item) => item.icon);
|
|
229
|
+
const nextItem = cycle && items.length > 0 ? items[(activeIndex + 1) % items.length] : void 0;
|
|
230
|
+
if (!activeItem) return null;
|
|
231
|
+
const accessibleLabel = activeItem.ariaLabel ?? (iconOnly && typeof activeItem.label === "string" ? activeItem.label : void 0);
|
|
232
|
+
return /* @__PURE__ */ jsxs(motion.button, {
|
|
233
|
+
type: "button",
|
|
234
|
+
disabled,
|
|
235
|
+
whileTap: reduce || disabled ? void 0 : { scale: .97 },
|
|
236
|
+
transition: SPRING_PRESS,
|
|
237
|
+
className: cn("inline-flex items-center justify-center overflow-hidden font-medium transition-colors", "disabled:pointer-events-none disabled:opacity-50", VARIANT_CLASS[variant], SIZE_CLASS[size], className),
|
|
238
|
+
"aria-label": accessibleLabel,
|
|
239
|
+
onClick: (event) => {
|
|
240
|
+
onClick?.(event);
|
|
241
|
+
if (event.defaultPrevented || disabled || !cycle || !nextItem) return;
|
|
242
|
+
if (value === void 0) setInternalValue(nextItem.id);
|
|
243
|
+
onValueChange?.(nextItem.id, nextItem);
|
|
244
|
+
},
|
|
245
|
+
...rest,
|
|
246
|
+
children: [hasIcon ? /* @__PURE__ */ jsx(ActionSwapIcon, {
|
|
247
|
+
value: activeItem.id,
|
|
248
|
+
animation,
|
|
249
|
+
className: "h-4 w-4",
|
|
250
|
+
children: activeItem.icon ?? null
|
|
251
|
+
}) : null, !iconOnly ? /* @__PURE__ */ jsx(ActionSwapText, {
|
|
252
|
+
value: activeItem.id,
|
|
253
|
+
animation,
|
|
254
|
+
children: activeItem.label
|
|
255
|
+
}) : null]
|
|
256
|
+
});
|
|
257
|
+
}
|
|
258
|
+
//#endregion
|
|
259
|
+
export { ActionSwapButton, ActionSwapIcon, ActionSwapText };
|
|
260
|
+
|
|
261
|
+
//# sourceMappingURL=action-swap.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action-swap.js","names":[],"sources":["../../../src/components/motion/action-swap.tsx"],"sourcesContent":["\"use client\";\n\nimport { type ReactNode, useLayoutEffect, useRef, useState } from \"react\";\nimport {\n AnimatePresence,\n type HTMLMotionProps,\n motion,\n useReducedMotion,\n type Variants,\n} from \"motion/react\";\n\nimport { cn } from \"@kumix/utils\";\nimport { EASE_OUT, EASE_OUT_CSS, SPRING_PRESS, SPRING_SWAP } from \"../../lib/ease\";\n\nexport type ActionSwapItem = {\n id: string;\n label: ReactNode;\n icon?: ReactNode;\n ariaLabel?: string;\n};\n\nexport type ActionSwapButtonVariant = \"primary\" | \"secondary\" | \"outline\" | \"ghost\";\nexport type ActionSwapButtonSize = \"sm\" | \"md\" | \"lg\" | \"icon\";\nexport type ActionSwapAnimation = \"blur\" | \"roll\" | \"cascade\";\n\n/** Animations with a single-element variant set (cascade animates per letter). */\ntype CoreAnimation = \"blur\" | \"roll\";\n\nexport interface ActionSwapButtonProps\n extends Omit<HTMLMotionProps<\"button\">, \"children\" | \"onChange\"> {\n items: ActionSwapItem[];\n value?: string;\n defaultValue?: string;\n onValueChange?: (value: string, item: ActionSwapItem) => void;\n variant?: ActionSwapButtonVariant;\n size?: ActionSwapButtonSize;\n animation?: ActionSwapAnimation;\n iconOnly?: boolean;\n cycle?: boolean;\n}\n\nexport interface ActionSwapTextProps {\n value: string;\n children: ReactNode;\n animation?: ActionSwapAnimation;\n className?: string;\n}\n\nexport interface ActionSwapIconProps {\n value: string;\n children: ReactNode;\n animation?: ActionSwapAnimation;\n className?: string;\n}\n\nconst BLUR_TRANSITION = { duration: 0.2, ease: \"easeInOut\" } as const;\nconst ROLL_TRANSITION = SPRING_SWAP;\nconst ROLL_EXIT_TRANSITION = { duration: 0.14, ease: EASE_OUT } as const;\nconst SWAP_BLUR = \"blur(8px)\";\nconst ROLL_BLUR = \"blur(3px)\";\n\n// Cascade rolls the label one letter at a time, left to right. The leaving\n// and landing strings overlap as independent layers (no shared cells), so\n// proportional glyph widths never jitter. Exits cascade at half the enter\n// stagger so the tail of the old label lingers briefly.\nconst CASCADE_STAGGER = 0.025;\n\nconst CASCADE_LETTER_VARIANTS: Variants = {\n initial: { opacity: 0, y: \"105%\", filter: ROLL_BLUR },\n animate: (delay: number = 0) => ({\n opacity: 1,\n y: \"0%\",\n filter: \"blur(0px)\",\n transition: { ...SPRING_SWAP, delay },\n }),\n exit: (delay: number = 0) => ({\n opacity: 0,\n y: \"-105%\",\n filter: ROLL_BLUR,\n transition: { duration: 0.16, ease: EASE_OUT, delay: delay * 0.5 },\n }),\n};\n\nconst TEXT_VARIANTS: Record<CoreAnimation, Variants> = {\n blur: {\n initial: { opacity: 0, scale: 0.94, filter: SWAP_BLUR },\n animate: {\n opacity: 1,\n scale: 1,\n filter: \"blur(0px)\",\n transition: BLUR_TRANSITION,\n },\n exit: {\n opacity: 0,\n scale: 0.94,\n filter: SWAP_BLUR,\n transition: BLUR_TRANSITION,\n },\n },\n roll: {\n initial: { opacity: 0, y: \"90%\", filter: ROLL_BLUR },\n animate: {\n opacity: 1,\n y: \"0%\",\n filter: \"blur(0px)\",\n transition: ROLL_TRANSITION,\n },\n exit: {\n opacity: 0,\n y: \"-90%\",\n filter: ROLL_BLUR,\n transition: ROLL_EXIT_TRANSITION,\n },\n },\n};\n\nconst ICON_VARIANTS: Record<CoreAnimation, Variants> = {\n blur: {\n initial: { opacity: 0, scale: 0.25, filter: SWAP_BLUR },\n animate: {\n opacity: 1,\n scale: 1,\n filter: \"blur(0px)\",\n transition: BLUR_TRANSITION,\n },\n exit: {\n opacity: 0,\n scale: 0.25,\n filter: SWAP_BLUR,\n transition: BLUR_TRANSITION,\n },\n },\n roll: {\n initial: { opacity: 0, y: 12, filter: ROLL_BLUR },\n animate: {\n opacity: 1,\n y: 0,\n filter: \"blur(0px)\",\n transition: ROLL_TRANSITION,\n },\n exit: {\n opacity: 0,\n y: -12,\n filter: ROLL_BLUR,\n transition: ROLL_EXIT_TRANSITION,\n },\n },\n};\n\nconst VARIANT_CLASS: Record<ActionSwapButtonVariant, string> = {\n primary: \"bg-primary text-primary-foreground hover:bg-primary/90\",\n secondary: \"border border-border bg-card text-foreground hover:border-border\",\n outline: \"border border-border bg-transparent text-foreground hover:bg-primary/5\",\n ghost: \"text-muted-foreground hover:bg-primary/5 hover:text-foreground\",\n};\n\nconst SIZE_CLASS: Record<ActionSwapButtonSize, string> = {\n sm: \"h-8 gap-1.5 rounded-full px-3 text-xs\",\n md: \"h-10 gap-2 rounded-full px-4 text-sm\",\n lg: \"h-12 gap-2.5 rounded-full px-5 text-base\",\n icon: \"h-10 w-10 rounded-full\",\n};\n\nexport function ActionSwapText({\n value,\n children,\n animation = \"blur\",\n className,\n}: ActionSwapTextProps) {\n const reduce = useReducedMotion();\n const measureRef = useRef<HTMLSpanElement>(null);\n const [width, setWidth] = useState<number>();\n\n useLayoutEffect(() => {\n const nextWidth = measureRef.current?.offsetWidth;\n if (!nextWidth) return;\n setWidth((currentWidth) => (currentWidth === nextWidth ? currentWidth : nextWidth));\n });\n\n // Cascade needs a plain string to split into letters; non-string content\n // and reduced motion fall back to the closest single-element animation.\n const label = typeof children === \"string\" ? children : null;\n const cascade = animation === \"cascade\" && label !== null && !reduce;\n const coreAnimation: CoreAnimation = animation === \"cascade\" ? \"roll\" : animation;\n\n return (\n <span\n className={cn(\n \"relative inline-block overflow-hidden whitespace-nowrap align-bottom\",\n className,\n )}\n style={{\n width,\n transition: reduce ? undefined : `width 220ms ${EASE_OUT_CSS}`,\n }}\n >\n <span ref={measureRef} aria-hidden className=\"invisible inline-block whitespace-nowrap\">\n {children}\n </span>\n {cascade ? (\n <>\n {/* Letters are decorative fragments; readers get the whole label. */}\n <span className=\"sr-only\">{label}</span>\n <AnimatePresence initial={false}>\n <motion.span\n key={`cascade-${value}`}\n aria-hidden\n initial=\"initial\"\n animate=\"animate\"\n exit=\"exit\"\n className=\"absolute top-0 left-0 inline-block whitespace-pre\"\n >\n {label.split(\"\").map((char, i) => (\n <motion.span\n key={i}\n custom={i * CASCADE_STAGGER}\n variants={CASCADE_LETTER_VARIANTS}\n className=\"inline-block whitespace-pre will-change-[opacity,filter,transform]\"\n >\n {char}\n </motion.span>\n ))}\n </motion.span>\n </AnimatePresence>\n </>\n ) : (\n <AnimatePresence initial={false}>\n <motion.span\n key={`${animation}-${value}`}\n variants={TEXT_VARIANTS[coreAnimation]}\n initial={reduce ? false : \"initial\"}\n animate={reduce ? { opacity: 1, filter: \"blur(0px)\", scale: 1, y: 0 } : \"animate\"}\n exit={reduce ? undefined : \"exit\"}\n className=\"absolute top-0 left-0 inline-block will-change-[opacity,filter,transform]\"\n >\n {children}\n </motion.span>\n </AnimatePresence>\n )}\n </span>\n );\n}\n\nexport function ActionSwapIcon({\n value,\n children,\n animation = \"blur\",\n className,\n}: ActionSwapIconProps) {\n const reduce = useReducedMotion();\n // Icons are single elements — cascade maps to its closest motion, roll.\n const coreAnimation: CoreAnimation = animation === \"cascade\" ? \"roll\" : animation;\n\n return (\n <span\n className={cn(\"relative inline-grid shrink-0 place-items-center overflow-hidden\", className)}\n >\n <AnimatePresence mode=\"popLayout\" initial={false}>\n <motion.span\n key={`${animation}-${value}`}\n aria-hidden\n variants={ICON_VARIANTS[coreAnimation]}\n initial={reduce ? false : \"initial\"}\n animate={reduce ? { opacity: 1, filter: \"blur(0px)\", scale: 1, y: 0 } : \"animate\"}\n exit={reduce ? undefined : \"exit\"}\n className=\"col-start-1 row-start-1 inline-flex items-center justify-center will-change-[opacity,filter,transform]\"\n >\n {children}\n </motion.span>\n </AnimatePresence>\n </span>\n );\n}\n\nexport function ActionSwapButton({\n items,\n value,\n defaultValue,\n onValueChange,\n variant = \"secondary\",\n size = \"md\",\n animation = \"blur\",\n iconOnly = size === \"icon\",\n cycle = true,\n className,\n disabled,\n onClick,\n ...rest\n}: ActionSwapButtonProps) {\n const reduce = useReducedMotion();\n const [internalValue, setInternalValue] = useState(defaultValue ?? items[0]?.id);\n const currentValue = value ?? internalValue;\n const activeIndex = Math.max(\n 0,\n items.findIndex((item) => item.id === currentValue),\n );\n const activeItem = items[activeIndex] ?? items[0];\n const hasIcon = items.some((item) => item.icon);\n const nextItem = cycle && items.length > 0 ? items[(activeIndex + 1) % items.length] : undefined;\n\n if (!activeItem) return null;\n\n const accessibleLabel =\n activeItem.ariaLabel ??\n (iconOnly && typeof activeItem.label === \"string\" ? activeItem.label : undefined);\n\n return (\n <motion.button\n type=\"button\"\n disabled={disabled}\n whileTap={reduce || disabled ? undefined : { scale: 0.97 }}\n transition={SPRING_PRESS}\n className={cn(\n \"inline-flex items-center justify-center overflow-hidden font-medium transition-colors\",\n \"disabled:pointer-events-none disabled:opacity-50\",\n VARIANT_CLASS[variant],\n SIZE_CLASS[size],\n className,\n )}\n aria-label={accessibleLabel}\n onClick={(event) => {\n onClick?.(event);\n if (event.defaultPrevented || disabled || !cycle || !nextItem) return;\n if (value === undefined) setInternalValue(nextItem.id);\n onValueChange?.(nextItem.id, nextItem);\n }}\n {...rest}\n >\n {hasIcon ? (\n <ActionSwapIcon value={activeItem.id} animation={animation} className=\"h-4 w-4\">\n {activeItem.icon ?? null}\n </ActionSwapIcon>\n ) : null}\n {!iconOnly ? (\n <ActionSwapText value={activeItem.id} animation={animation}>\n {activeItem.label}\n </ActionSwapText>\n ) : null}\n </motion.button>\n );\n}\n"],"mappings":"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"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
import { HTMLMotionProps } from "motion/react";
|
|
3
|
+
//#region src/components/motion/animated-badge.d.ts
|
|
4
|
+
type AnimatedBadgeStatus = "neutral" | "info" | "success" | "warning" | "danger" | "loading";
|
|
5
|
+
type AnimatedBadgeSize = "sm" | "md";
|
|
6
|
+
interface AnimatedBadgeProps extends Omit<HTMLMotionProps<"span">, "children"> {
|
|
7
|
+
status?: AnimatedBadgeStatus;
|
|
8
|
+
size?: AnimatedBadgeSize;
|
|
9
|
+
children?: ReactNode;
|
|
10
|
+
icon?: ReactNode;
|
|
11
|
+
showIcon?: boolean;
|
|
12
|
+
pulse?: boolean;
|
|
13
|
+
contentKey?: string | number;
|
|
14
|
+
}
|
|
15
|
+
declare function AnimatedBadge({ status, size, children, icon, showIcon, pulse, contentKey, className, ...rest }: AnimatedBadgeProps): import("react").JSX.Element;
|
|
16
|
+
//#endregion
|
|
17
|
+
export { AnimatedBadge, AnimatedBadgeProps, AnimatedBadgeSize, AnimatedBadgeStatus };
|
|
18
|
+
//# sourceMappingURL=animated-badge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"animated-badge.d.ts","names":[],"sources":["../../../src/components/motion/animated-badge.tsx"],"mappings":";;;KAeY;KAEA;UAEK,2BAA2B,KAAK;EAC/C,SAAS;EACT,OAAO;EACP,WAAW;EACX,OAAO;EACP;EACA;EACA;;iBAmFc,gBACd,QACA,MACA,UACA,MACA,UACA,OACA,YACA,cACG,QACF,qCAAkB,IAAA"}
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { EASE_OUT } from "../../lib/ease.js";
|
|
3
|
+
import { cn } from "@kumix/utils";
|
|
4
|
+
import { AlertTriangle, Check, Circle, Info, LoaderCircle, X } from "lucide-react";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
import { AnimatePresence, motion, useReducedMotion } from "motion/react";
|
|
7
|
+
//#region src/components/motion/animated-badge.tsx
|
|
8
|
+
const STATUS_CLASS = {
|
|
9
|
+
neutral: "border-border bg-card text-muted-foreground",
|
|
10
|
+
info: "border-primary/30 bg-primary/10 text-primary",
|
|
11
|
+
success: "border-emerald-500/30 bg-emerald-500/10 text-emerald-600 dark:text-emerald-400",
|
|
12
|
+
warning: "border-amber-500/30 bg-amber-500/10 text-amber-600 dark:text-amber-400",
|
|
13
|
+
danger: "border-destructive/30 bg-destructive/10 text-destructive",
|
|
14
|
+
loading: "border-primary/30 bg-primary/10 text-primary"
|
|
15
|
+
};
|
|
16
|
+
const SIZE_CLASS = {
|
|
17
|
+
sm: "h-6 gap-1.5 px-2 text-[11px]",
|
|
18
|
+
md: "h-8 gap-2 px-3 text-xs"
|
|
19
|
+
};
|
|
20
|
+
const ICON_CLASS = {
|
|
21
|
+
sm: "h-3 w-3",
|
|
22
|
+
md: "h-3.5 w-3.5"
|
|
23
|
+
};
|
|
24
|
+
const ICONS = {
|
|
25
|
+
neutral: Circle,
|
|
26
|
+
info: Info,
|
|
27
|
+
success: Check,
|
|
28
|
+
warning: AlertTriangle,
|
|
29
|
+
danger: X,
|
|
30
|
+
loading: LoaderCircle
|
|
31
|
+
};
|
|
32
|
+
const ICON_ROLL_VARIANTS = {
|
|
33
|
+
initial: {
|
|
34
|
+
opacity: .72,
|
|
35
|
+
y: "80%",
|
|
36
|
+
scale: .92,
|
|
37
|
+
rotate: -8,
|
|
38
|
+
filter: "blur(6px)"
|
|
39
|
+
},
|
|
40
|
+
animate: {
|
|
41
|
+
opacity: 1,
|
|
42
|
+
y: "0%",
|
|
43
|
+
scale: 1,
|
|
44
|
+
rotate: 0,
|
|
45
|
+
filter: "blur(0px)",
|
|
46
|
+
transition: {
|
|
47
|
+
y: {
|
|
48
|
+
type: "spring",
|
|
49
|
+
stiffness: 210,
|
|
50
|
+
damping: 24,
|
|
51
|
+
mass: .85
|
|
52
|
+
},
|
|
53
|
+
scale: {
|
|
54
|
+
type: "spring",
|
|
55
|
+
stiffness: 250,
|
|
56
|
+
damping: 24,
|
|
57
|
+
mass: .75
|
|
58
|
+
},
|
|
59
|
+
rotate: {
|
|
60
|
+
duration: .28,
|
|
61
|
+
ease: EASE_OUT
|
|
62
|
+
},
|
|
63
|
+
opacity: {
|
|
64
|
+
duration: .28,
|
|
65
|
+
ease: EASE_OUT
|
|
66
|
+
},
|
|
67
|
+
filter: {
|
|
68
|
+
duration: .42,
|
|
69
|
+
ease: EASE_OUT
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
exit: {
|
|
74
|
+
opacity: .5,
|
|
75
|
+
y: "-80%",
|
|
76
|
+
scale: .96,
|
|
77
|
+
rotate: 8,
|
|
78
|
+
filter: "blur(6px)",
|
|
79
|
+
transition: {
|
|
80
|
+
duration: .22,
|
|
81
|
+
ease: EASE_OUT
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
const TEXT_ROLL_VARIANTS = {
|
|
86
|
+
initial: {
|
|
87
|
+
opacity: .76,
|
|
88
|
+
y: "85%",
|
|
89
|
+
filter: "blur(6px)"
|
|
90
|
+
},
|
|
91
|
+
animate: {
|
|
92
|
+
opacity: 1,
|
|
93
|
+
y: "0%",
|
|
94
|
+
filter: "blur(0px)",
|
|
95
|
+
transition: {
|
|
96
|
+
y: {
|
|
97
|
+
type: "spring",
|
|
98
|
+
stiffness: 210,
|
|
99
|
+
damping: 24,
|
|
100
|
+
mass: .85
|
|
101
|
+
},
|
|
102
|
+
opacity: {
|
|
103
|
+
duration: .3,
|
|
104
|
+
ease: EASE_OUT
|
|
105
|
+
},
|
|
106
|
+
filter: {
|
|
107
|
+
duration: .42,
|
|
108
|
+
ease: EASE_OUT
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
exit: {
|
|
113
|
+
opacity: .5,
|
|
114
|
+
y: "-85%",
|
|
115
|
+
filter: "blur(6px)",
|
|
116
|
+
transition: {
|
|
117
|
+
duration: .2,
|
|
118
|
+
ease: EASE_OUT
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
};
|
|
122
|
+
function AnimatedBadge({ status = "neutral", size = "md", children, icon, showIcon = true, pulse = status === "loading", contentKey, className, ...rest }) {
|
|
123
|
+
const reduce = useReducedMotion();
|
|
124
|
+
const Icon = ICONS[status];
|
|
125
|
+
const resolvedContentKey = contentKey ?? (typeof children === "string" || typeof children === "number" ? children : status);
|
|
126
|
+
return /* @__PURE__ */ jsxs(motion.span, {
|
|
127
|
+
layout: true,
|
|
128
|
+
transition: {
|
|
129
|
+
type: "spring",
|
|
130
|
+
stiffness: 420,
|
|
131
|
+
damping: 30,
|
|
132
|
+
mass: .7
|
|
133
|
+
},
|
|
134
|
+
className: cn("relative inline-flex shrink-0 items-center overflow-hidden whitespace-nowrap rounded-full border font-medium tabular-nums", "transition-colors duration-300", STATUS_CLASS[status], SIZE_CLASS[size], className),
|
|
135
|
+
...rest,
|
|
136
|
+
children: [
|
|
137
|
+
pulse && !reduce ? /* @__PURE__ */ jsx(motion.span, {
|
|
138
|
+
"aria-hidden": true,
|
|
139
|
+
className: "absolute inset-0 rounded-full bg-current opacity-10",
|
|
140
|
+
animate: {
|
|
141
|
+
scale: [
|
|
142
|
+
.94,
|
|
143
|
+
1.08,
|
|
144
|
+
.94
|
|
145
|
+
],
|
|
146
|
+
opacity: [
|
|
147
|
+
.08,
|
|
148
|
+
.16,
|
|
149
|
+
.08
|
|
150
|
+
]
|
|
151
|
+
},
|
|
152
|
+
transition: {
|
|
153
|
+
duration: 1.6,
|
|
154
|
+
repeat: Infinity,
|
|
155
|
+
ease: "easeInOut"
|
|
156
|
+
}
|
|
157
|
+
}) : null,
|
|
158
|
+
showIcon ? /* @__PURE__ */ jsx("span", {
|
|
159
|
+
className: "relative z-10 inline-flex items-center justify-center overflow-hidden",
|
|
160
|
+
children: /* @__PURE__ */ jsx(AnimatePresence, {
|
|
161
|
+
mode: "popLayout",
|
|
162
|
+
initial: false,
|
|
163
|
+
children: /* @__PURE__ */ jsx(motion.span, {
|
|
164
|
+
"aria-hidden": true,
|
|
165
|
+
"data-badge-icon": true,
|
|
166
|
+
variants: ICON_ROLL_VARIANTS,
|
|
167
|
+
initial: reduce ? false : "initial",
|
|
168
|
+
animate: reduce ? { opacity: 1 } : "animate",
|
|
169
|
+
exit: reduce ? void 0 : "exit",
|
|
170
|
+
className: "inline-flex will-change-transform",
|
|
171
|
+
children: status === "loading" && !reduce && !icon ? /* @__PURE__ */ jsx(motion.span, {
|
|
172
|
+
animate: { rotate: 360 },
|
|
173
|
+
transition: {
|
|
174
|
+
duration: 1,
|
|
175
|
+
repeat: Infinity,
|
|
176
|
+
ease: "linear"
|
|
177
|
+
},
|
|
178
|
+
className: "inline-flex",
|
|
179
|
+
children: /* @__PURE__ */ jsx(Icon, { className: ICON_CLASS[size] })
|
|
180
|
+
}) : icon ?? /* @__PURE__ */ jsx(Icon, { className: ICON_CLASS[size] })
|
|
181
|
+
}, status)
|
|
182
|
+
})
|
|
183
|
+
}) : null,
|
|
184
|
+
children != null ? /* @__PURE__ */ jsx("span", {
|
|
185
|
+
className: "relative z-10 inline-flex overflow-hidden",
|
|
186
|
+
children: /* @__PURE__ */ jsx(AnimatePresence, {
|
|
187
|
+
mode: "popLayout",
|
|
188
|
+
initial: false,
|
|
189
|
+
children: /* @__PURE__ */ jsx(motion.span, {
|
|
190
|
+
"data-badge-label": true,
|
|
191
|
+
variants: TEXT_ROLL_VARIANTS,
|
|
192
|
+
initial: reduce ? false : "initial",
|
|
193
|
+
animate: reduce ? { opacity: 1 } : "animate",
|
|
194
|
+
exit: reduce ? void 0 : "exit",
|
|
195
|
+
className: "inline-block will-change-transform",
|
|
196
|
+
children
|
|
197
|
+
}, resolvedContentKey)
|
|
198
|
+
})
|
|
199
|
+
}) : null
|
|
200
|
+
]
|
|
201
|
+
});
|
|
202
|
+
}
|
|
203
|
+
//#endregion
|
|
204
|
+
export { AnimatedBadge };
|
|
205
|
+
|
|
206
|
+
//# sourceMappingURL=animated-badge.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"animated-badge.js","names":[],"sources":["../../../src/components/motion/animated-badge.tsx"],"sourcesContent":["\"use client\";\n\nimport type { ReactNode } from \"react\";\nimport { AlertTriangle, Check, Circle, Info, LoaderCircle, type LucideIcon, X } from \"lucide-react\";\nimport {\n AnimatePresence,\n type HTMLMotionProps,\n motion,\n useReducedMotion,\n type Variants,\n} from \"motion/react\";\n\nimport { cn } from \"@kumix/utils\";\nimport { EASE_OUT } from \"../../lib/ease\";\n\nexport type AnimatedBadgeStatus = \"neutral\" | \"info\" | \"success\" | \"warning\" | \"danger\" | \"loading\";\n\nexport type AnimatedBadgeSize = \"sm\" | \"md\";\n\nexport interface AnimatedBadgeProps extends Omit<HTMLMotionProps<\"span\">, \"children\"> {\n status?: AnimatedBadgeStatus;\n size?: AnimatedBadgeSize;\n children?: ReactNode;\n icon?: ReactNode;\n showIcon?: boolean;\n pulse?: boolean;\n contentKey?: string | number;\n}\n\nconst STATUS_CLASS: Record<AnimatedBadgeStatus, string> = {\n neutral: \"border-border bg-card text-muted-foreground\",\n info: \"border-primary/30 bg-primary/10 text-primary\",\n success: \"border-emerald-500/30 bg-emerald-500/10 text-emerald-600 dark:text-emerald-400\",\n warning: \"border-amber-500/30 bg-amber-500/10 text-amber-600 dark:text-amber-400\",\n danger: \"border-destructive/30 bg-destructive/10 text-destructive\",\n loading: \"border-primary/30 bg-primary/10 text-primary\",\n};\n\nconst SIZE_CLASS: Record<AnimatedBadgeSize, string> = {\n sm: \"h-6 gap-1.5 px-2 text-[11px]\",\n md: \"h-8 gap-2 px-3 text-xs\",\n};\n\nconst ICON_CLASS: Record<AnimatedBadgeSize, string> = {\n sm: \"h-3 w-3\",\n md: \"h-3.5 w-3.5\",\n};\n\nconst ICONS: Record<AnimatedBadgeStatus, LucideIcon> = {\n neutral: Circle,\n info: Info,\n success: Check,\n warning: AlertTriangle,\n danger: X,\n loading: LoaderCircle,\n};\n\nconst ICON_ROLL_VARIANTS: Variants = {\n initial: {\n opacity: 0.72,\n y: \"80%\",\n scale: 0.92,\n rotate: -8,\n filter: \"blur(6px)\",\n },\n animate: {\n opacity: 1,\n y: \"0%\",\n scale: 1,\n rotate: 0,\n filter: \"blur(0px)\",\n transition: {\n y: { type: \"spring\", stiffness: 210, damping: 24, mass: 0.85 },\n scale: { type: \"spring\", stiffness: 250, damping: 24, mass: 0.75 },\n rotate: { duration: 0.28, ease: EASE_OUT },\n opacity: { duration: 0.28, ease: EASE_OUT },\n filter: { duration: 0.42, ease: EASE_OUT },\n },\n },\n exit: {\n opacity: 0.5,\n y: \"-80%\",\n scale: 0.96,\n rotate: 8,\n filter: \"blur(6px)\",\n transition: { duration: 0.22, ease: EASE_OUT },\n },\n};\n\nconst TEXT_ROLL_VARIANTS: Variants = {\n initial: { opacity: 0.76, y: \"85%\", filter: \"blur(6px)\" },\n animate: {\n opacity: 1,\n y: \"0%\",\n filter: \"blur(0px)\",\n transition: {\n y: { type: \"spring\", stiffness: 210, damping: 24, mass: 0.85 },\n opacity: { duration: 0.3, ease: EASE_OUT },\n filter: { duration: 0.42, ease: EASE_OUT },\n },\n },\n exit: {\n opacity: 0.5,\n y: \"-85%\",\n filter: \"blur(6px)\",\n transition: { duration: 0.2, ease: EASE_OUT },\n },\n};\n\nexport function AnimatedBadge({\n status = \"neutral\",\n size = \"md\",\n children,\n icon,\n showIcon = true,\n pulse = status === \"loading\",\n contentKey,\n className,\n ...rest\n}: AnimatedBadgeProps) {\n const reduce = useReducedMotion();\n const Icon = ICONS[status];\n const resolvedContentKey =\n contentKey ??\n (typeof children === \"string\" || typeof children === \"number\" ? children : status);\n\n return (\n <motion.span\n layout\n transition={{ type: \"spring\", stiffness: 420, damping: 30, mass: 0.7 }}\n className={cn(\n \"relative inline-flex shrink-0 items-center overflow-hidden whitespace-nowrap rounded-full border font-medium tabular-nums\",\n \"transition-colors duration-300\",\n STATUS_CLASS[status],\n SIZE_CLASS[size],\n className,\n )}\n {...rest}\n >\n {pulse && !reduce ? (\n <motion.span\n aria-hidden\n className=\"absolute inset-0 rounded-full bg-current opacity-10\"\n animate={{ scale: [0.94, 1.08, 0.94], opacity: [0.08, 0.16, 0.08] }}\n transition={{ duration: 1.6, repeat: Infinity, ease: \"easeInOut\" }}\n />\n ) : null}\n {showIcon ? (\n <span className=\"relative z-10 inline-flex items-center justify-center overflow-hidden\">\n <AnimatePresence mode=\"popLayout\" initial={false}>\n <motion.span\n key={status}\n aria-hidden\n data-badge-icon\n variants={ICON_ROLL_VARIANTS}\n initial={reduce ? false : \"initial\"}\n animate={reduce ? { opacity: 1 } : \"animate\"}\n exit={reduce ? undefined : \"exit\"}\n className=\"inline-flex will-change-transform\"\n >\n {status === \"loading\" && !reduce && !icon ? (\n <motion.span\n animate={{ rotate: 360 }}\n transition={{ duration: 1, repeat: Infinity, ease: \"linear\" }}\n className=\"inline-flex\"\n >\n <Icon className={ICON_CLASS[size]} />\n </motion.span>\n ) : (\n (icon ?? <Icon className={ICON_CLASS[size]} />)\n )}\n </motion.span>\n </AnimatePresence>\n </span>\n ) : null}\n {children != null ? (\n <span className=\"relative z-10 inline-flex overflow-hidden\">\n <AnimatePresence mode=\"popLayout\" initial={false}>\n <motion.span\n key={resolvedContentKey}\n data-badge-label\n variants={TEXT_ROLL_VARIANTS}\n initial={reduce ? false : \"initial\"}\n animate={reduce ? { opacity: 1 } : \"animate\"}\n exit={reduce ? undefined : \"exit\"}\n className=\"inline-block will-change-transform\"\n >\n {children}\n </motion.span>\n </AnimatePresence>\n </span>\n ) : null}\n </motion.span>\n );\n}\n"],"mappings":";;;;;;;AA6BA,MAAM,eAAoD;CACxD,SAAS;CACT,MAAM;CACN,SAAS;CACT,SAAS;CACT,QAAQ;CACR,SAAS;AACX;AAEA,MAAM,aAAgD;CACpD,IAAI;CACJ,IAAI;AACN;AAEA,MAAM,aAAgD;CACpD,IAAI;CACJ,IAAI;AACN;AAEA,MAAM,QAAiD;CACrD,SAAS;CACT,MAAM;CACN,SAAS;CACT,SAAS;CACT,QAAQ;CACR,SAAS;AACX;AAEA,MAAM,qBAA+B;CACnC,SAAS;EACP,SAAS;EACT,GAAG;EACH,OAAO;EACP,QAAQ;EACR,QAAQ;CACV;CACA,SAAS;EACP,SAAS;EACT,GAAG;EACH,OAAO;EACP,QAAQ;EACR,QAAQ;EACR,YAAY;GACV,GAAG;IAAE,MAAM;IAAU,WAAW;IAAK,SAAS;IAAI,MAAM;GAAK;GAC7D,OAAO;IAAE,MAAM;IAAU,WAAW;IAAK,SAAS;IAAI,MAAM;GAAK;GACjE,QAAQ;IAAE,UAAU;IAAM,MAAM;GAAS;GACzC,SAAS;IAAE,UAAU;IAAM,MAAM;GAAS;GAC1C,QAAQ;IAAE,UAAU;IAAM,MAAM;GAAS;EAC3C;CACF;CACA,MAAM;EACJ,SAAS;EACT,GAAG;EACH,OAAO;EACP,QAAQ;EACR,QAAQ;EACR,YAAY;GAAE,UAAU;GAAM,MAAM;EAAS;CAC/C;AACF;AAEA,MAAM,qBAA+B;CACnC,SAAS;EAAE,SAAS;EAAM,GAAG;EAAO,QAAQ;CAAY;CACxD,SAAS;EACP,SAAS;EACT,GAAG;EACH,QAAQ;EACR,YAAY;GACV,GAAG;IAAE,MAAM;IAAU,WAAW;IAAK,SAAS;IAAI,MAAM;GAAK;GAC7D,SAAS;IAAE,UAAU;IAAK,MAAM;GAAS;GACzC,QAAQ;IAAE,UAAU;IAAM,MAAM;GAAS;EAC3C;CACF;CACA,MAAM;EACJ,SAAS;EACT,GAAG;EACH,QAAQ;EACR,YAAY;GAAE,UAAU;GAAK,MAAM;EAAS;CAC9C;AACF;AAEA,SAAgB,cAAc,EAC5B,SAAS,WACT,OAAO,MACP,UACA,MACA,WAAW,MACX,QAAQ,WAAW,WACnB,YACA,WACA,GAAG,QACkB;CACrB,MAAM,SAAS,iBAAiB;CAChC,MAAM,OAAO,MAAM;CACnB,MAAM,qBACJ,eACC,OAAO,aAAa,YAAY,OAAO,aAAa,WAAW,WAAW;CAE7E,OACE,qBAAC,OAAO,MAAR;EACE,QAAA;EACA,YAAY;GAAE,MAAM;GAAU,WAAW;GAAK,SAAS;GAAI,MAAM;EAAI;EACrE,WAAW,GACT,6HACA,kCACA,aAAa,SACb,WAAW,OACX,SACF;EACA,GAAI;EAVN,UAAA;GAYG,SAAS,CAAC,SACT,oBAAC,OAAO,MAAR;IACE,eAAA;IACA,WAAU;IACV,SAAS;KAAE,OAAO;MAAC;MAAM;MAAM;KAAI;KAAG,SAAS;MAAC;MAAM;MAAM;KAAI;IAAE;IAClE,YAAY;KAAE,UAAU;KAAK,QAAQ;KAAU,MAAM;IAAY;GAClE,CAAA,IACC;GACH,WACC,oBAAC,QAAD;IAAM,WAAU;IACd,UAAA,oBAAC,iBAAD;KAAiB,MAAK;KAAY,SAAS;KACzC,UAAA,oBAAC,OAAO,MAAR;MAEE,eAAA;MACA,mBAAA;MACA,UAAU;MACV,SAAS,SAAS,QAAQ;MAC1B,SAAS,SAAS,EAAE,SAAS,EAAE,IAAI;MACnC,MAAM,SAAS,KAAA,IAAY;MAC3B,WAAU;MAET,UAAA,WAAW,aAAa,CAAC,UAAU,CAAC,OACnC,oBAAC,OAAO,MAAR;OACE,SAAS,EAAE,QAAQ,IAAI;OACvB,YAAY;QAAE,UAAU;QAAG,QAAQ;QAAU,MAAM;OAAS;OAC5D,WAAU;OAEV,UAAA,oBAAC,MAAD,EAAM,WAAW,WAAW,MAAQ,CAAA;MACzB,CAAA,IAEZ,QAAQ,oBAAC,MAAD,EAAM,WAAW,WAAW,MAAQ,CAAA;KAEpC,GApBN,MAoBM;IACE,CAAA;GACb,CAAA,IACJ;GACH,YAAY,OACX,oBAAC,QAAD;IAAM,WAAU;IACd,UAAA,oBAAC,iBAAD;KAAiB,MAAK;KAAY,SAAS;KACzC,UAAA,oBAAC,OAAO,MAAR;MAEE,oBAAA;MACA,UAAU;MACV,SAAS,SAAS,QAAQ;MAC1B,SAAS,SAAS,EAAE,SAAS,EAAE,IAAI;MACnC,MAAM,SAAS,KAAA,IAAY;MAC3B,WAAU;MAET;KACU,GATN,kBASM;IACE,CAAA;GACb,CAAA,IACJ;EACO;;AAEjB"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
//#region src/components/motion/animated-number.d.ts
|
|
2
|
+
interface AnimatedNumberProps {
|
|
3
|
+
value: number;
|
|
4
|
+
duration?: number;
|
|
5
|
+
format?: (n: number) => string;
|
|
6
|
+
className?: string;
|
|
7
|
+
startOnView?: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare function AnimatedNumber({ value, duration, format, className, startOnView }: AnimatedNumberProps): import("react").JSX.Element;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { AnimatedNumber, AnimatedNumberProps };
|
|
12
|
+
//# sourceMappingURL=animated-number.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"animated-number.d.ts","names":[],"sources":["../../../src/components/motion/animated-number.tsx"],"mappings":";UAQiB;EACf;EACA;EACA,UAAU;EACV;EACA;;iBAGc,iBACd,OACA,UACA,QACA,WACA,eACC,sCAAmB,IAAA"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { EASE_OUT } from "../../lib/ease.js";
|
|
3
|
+
import { useEffect, useRef, useState } from "react";
|
|
4
|
+
import { cn } from "@kumix/utils";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
import { animate, useInView, useReducedMotion } from "motion/react";
|
|
7
|
+
//#region src/components/motion/animated-number.tsx
|
|
8
|
+
function AnimatedNumber({ value, duration = 1.2, format = (n) => Math.round(n).toLocaleString(), className, startOnView = true }) {
|
|
9
|
+
const ref = useRef(null);
|
|
10
|
+
const inView = useInView(ref, {
|
|
11
|
+
once: true,
|
|
12
|
+
amount: .6
|
|
13
|
+
});
|
|
14
|
+
const reduce = useReducedMotion();
|
|
15
|
+
const [display, setDisplay] = useState(0);
|
|
16
|
+
const fromRef = useRef(0);
|
|
17
|
+
useEffect(() => {
|
|
18
|
+
if (startOnView && !inView) return;
|
|
19
|
+
if (reduce) {
|
|
20
|
+
fromRef.current = value;
|
|
21
|
+
setDisplay(value);
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
const controls = animate(fromRef.current, value, {
|
|
25
|
+
duration,
|
|
26
|
+
ease: EASE_OUT,
|
|
27
|
+
onUpdate: (v) => setDisplay(v)
|
|
28
|
+
});
|
|
29
|
+
fromRef.current = value;
|
|
30
|
+
return () => controls.stop();
|
|
31
|
+
}, [
|
|
32
|
+
value,
|
|
33
|
+
duration,
|
|
34
|
+
inView,
|
|
35
|
+
startOnView,
|
|
36
|
+
reduce
|
|
37
|
+
]);
|
|
38
|
+
return /* @__PURE__ */ jsx("span", {
|
|
39
|
+
ref,
|
|
40
|
+
className: cn("tabular-nums", className),
|
|
41
|
+
children: format(display)
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
//#endregion
|
|
45
|
+
export { AnimatedNumber };
|
|
46
|
+
|
|
47
|
+
//# sourceMappingURL=animated-number.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"animated-number.js","names":[],"sources":["../../../src/components/motion/animated-number.tsx"],"sourcesContent":["\"use client\";\n\nimport { useEffect, useRef, useState } from \"react\";\nimport { animate, useInView, useReducedMotion } from \"motion/react\";\n\nimport { cn } from \"@kumix/utils\";\nimport { EASE_OUT } from \"../../lib/ease\";\n\nexport interface AnimatedNumberProps {\n value: number;\n duration?: number;\n format?: (n: number) => string;\n className?: string;\n startOnView?: boolean;\n}\n\nexport function AnimatedNumber({\n value,\n duration = 1.2,\n format = (n) => Math.round(n).toLocaleString(),\n className,\n startOnView = true,\n}: AnimatedNumberProps) {\n const ref = useRef<HTMLSpanElement>(null);\n const inView = useInView(ref, { once: true, amount: 0.6 });\n const reduce = useReducedMotion();\n const [display, setDisplay] = useState(0);\n const fromRef = useRef(0);\n\n useEffect(() => {\n if (startOnView && !inView) return;\n if (reduce) {\n fromRef.current = value;\n setDisplay(value);\n return;\n }\n const controls = animate(fromRef.current, value, {\n duration,\n ease: EASE_OUT,\n onUpdate: (v) => setDisplay(v),\n });\n fromRef.current = value;\n return () => controls.stop();\n }, [value, duration, inView, startOnView, reduce]);\n\n return (\n <span ref={ref} className={cn(\"tabular-nums\", className)}>\n {format(display)}\n </span>\n );\n}\n"],"mappings":";;;;;;;AAgBA,SAAgB,eAAe,EAC7B,OACA,WAAW,KACX,UAAU,MAAM,KAAK,MAAM,CAAC,CAAC,CAAC,eAAe,GAC7C,WACA,cAAc,QACQ;CACtB,MAAM,MAAM,OAAwB,IAAI;CACxC,MAAM,SAAS,UAAU,KAAK;EAAE,MAAM;EAAM,QAAQ;CAAI,CAAC;CACzD,MAAM,SAAS,iBAAiB;CAChC,MAAM,CAAC,SAAS,cAAc,SAAS,CAAC;CACxC,MAAM,UAAU,OAAO,CAAC;CAExB,gBAAgB;EACd,IAAI,eAAe,CAAC,QAAQ;EAC5B,IAAI,QAAQ;GACV,QAAQ,UAAU;GAClB,WAAW,KAAK;GAChB;EACF;EACA,MAAM,WAAW,QAAQ,QAAQ,SAAS,OAAO;GAC/C;GACA,MAAM;GACN,WAAW,MAAM,WAAW,CAAC;EAC/B,CAAC;EACD,QAAQ,UAAU;EAClB,aAAa,SAAS,KAAK;CAC7B,GAAG;EAAC;EAAO;EAAU;EAAQ;EAAa;CAAM,CAAC;CAEjD,OACE,oBAAC,QAAD;EAAW;EAAK,WAAW,GAAG,gBAAgB,SAAS;EACpD,UAAA,OAAO,OAAO;CACX,CAAA;AAEV"}
|