@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,291 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { EASE_OUT } from "../../lib/ease.js";
|
|
3
|
+
import { useCallback, useEffect, 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/expandable-tabs.tsx
|
|
8
|
+
const SHELL_SPRING = {
|
|
9
|
+
type: "spring",
|
|
10
|
+
duration: .58,
|
|
11
|
+
bounce: .06
|
|
12
|
+
};
|
|
13
|
+
const TAB_CHANGE_SPRING = {
|
|
14
|
+
type: "spring",
|
|
15
|
+
duration: .46,
|
|
16
|
+
bounce: .04
|
|
17
|
+
};
|
|
18
|
+
const LABEL_OPEN = {
|
|
19
|
+
type: "spring",
|
|
20
|
+
duration: .38,
|
|
21
|
+
bounce: .03
|
|
22
|
+
};
|
|
23
|
+
const LABEL_CLOSE = {
|
|
24
|
+
duration: .16,
|
|
25
|
+
ease: EASE_OUT
|
|
26
|
+
};
|
|
27
|
+
const BAR_H = 52;
|
|
28
|
+
const TAB_W = 32;
|
|
29
|
+
const BAR_X = 16;
|
|
30
|
+
const BAR_GAP = 4;
|
|
31
|
+
const ROOT_BORDER = 2;
|
|
32
|
+
const ACTIVE_RIGHT_PAD = 16;
|
|
33
|
+
const LABEL_GAP = 7;
|
|
34
|
+
const CONTENT_VARIANTS = {
|
|
35
|
+
enter: {
|
|
36
|
+
y: -8,
|
|
37
|
+
scale: .98,
|
|
38
|
+
opacity: 0,
|
|
39
|
+
filter: "blur(4px)"
|
|
40
|
+
},
|
|
41
|
+
center: {
|
|
42
|
+
y: 0,
|
|
43
|
+
scale: 1,
|
|
44
|
+
opacity: 1,
|
|
45
|
+
filter: "blur(0px)"
|
|
46
|
+
},
|
|
47
|
+
exit: {
|
|
48
|
+
y: -6,
|
|
49
|
+
scale: .98,
|
|
50
|
+
opacity: 0,
|
|
51
|
+
filter: "blur(4px)",
|
|
52
|
+
transition: {
|
|
53
|
+
duration: .08,
|
|
54
|
+
ease: EASE_OUT
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
const REDUCED_CONTENT_VARIANTS = {
|
|
59
|
+
enter: {
|
|
60
|
+
opacity: 0,
|
|
61
|
+
filter: "blur(0px)"
|
|
62
|
+
},
|
|
63
|
+
center: {
|
|
64
|
+
opacity: 1,
|
|
65
|
+
filter: "blur(0px)"
|
|
66
|
+
},
|
|
67
|
+
exit: {
|
|
68
|
+
opacity: 0,
|
|
69
|
+
filter: "blur(0px)",
|
|
70
|
+
transition: {
|
|
71
|
+
duration: .08,
|
|
72
|
+
ease: EASE_OUT
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
const CONTENT_SPRING = {
|
|
77
|
+
type: "spring",
|
|
78
|
+
duration: .46,
|
|
79
|
+
bounce: .08
|
|
80
|
+
};
|
|
81
|
+
function sameSize(a, b) {
|
|
82
|
+
return a?.width === b?.width && a?.height === b?.height;
|
|
83
|
+
}
|
|
84
|
+
function sameWidths(a, b) {
|
|
85
|
+
const aKeys = Object.keys(a);
|
|
86
|
+
const bKeys = Object.keys(b);
|
|
87
|
+
if (aKeys.length !== bKeys.length) return false;
|
|
88
|
+
return aKeys.every((key) => a[key] === b[key]);
|
|
89
|
+
}
|
|
90
|
+
function useContentSize() {
|
|
91
|
+
const ref = useRef(null);
|
|
92
|
+
const [size, setSize] = useState(null);
|
|
93
|
+
const measure = useCallback(() => {
|
|
94
|
+
const el = ref.current;
|
|
95
|
+
if (!el) return;
|
|
96
|
+
const next = {
|
|
97
|
+
width: el.offsetWidth,
|
|
98
|
+
height: el.offsetHeight
|
|
99
|
+
};
|
|
100
|
+
setSize((current) => sameSize(current, next) ? current : next);
|
|
101
|
+
}, []);
|
|
102
|
+
useLayoutEffect(() => {
|
|
103
|
+
measure();
|
|
104
|
+
}, [measure]);
|
|
105
|
+
useEffect(() => {
|
|
106
|
+
const el = ref.current;
|
|
107
|
+
if (!el || typeof ResizeObserver === "undefined") return;
|
|
108
|
+
const observer = new ResizeObserver(measure);
|
|
109
|
+
observer.observe(el);
|
|
110
|
+
return () => observer.disconnect();
|
|
111
|
+
}, [measure]);
|
|
112
|
+
return [ref, size];
|
|
113
|
+
}
|
|
114
|
+
function useLabelWidths(items) {
|
|
115
|
+
const refs = useRef({});
|
|
116
|
+
const [widths, setWidths] = useState({});
|
|
117
|
+
const setLabelMeasureRef = useCallback((id) => (node) => {
|
|
118
|
+
refs.current[id] = node;
|
|
119
|
+
}, []);
|
|
120
|
+
const measure = useCallback(() => {
|
|
121
|
+
const next = {};
|
|
122
|
+
for (const item of items) {
|
|
123
|
+
const node = refs.current[item.id];
|
|
124
|
+
if (node) next[item.id] = Math.ceil(node.offsetWidth);
|
|
125
|
+
}
|
|
126
|
+
setWidths((current) => sameWidths(current, next) ? current : next);
|
|
127
|
+
}, [items]);
|
|
128
|
+
useLayoutEffect(() => {
|
|
129
|
+
measure();
|
|
130
|
+
}, [measure]);
|
|
131
|
+
useEffect(() => {
|
|
132
|
+
if (typeof ResizeObserver === "undefined") return;
|
|
133
|
+
const observer = new ResizeObserver(measure);
|
|
134
|
+
for (const item of items) {
|
|
135
|
+
const node = refs.current[item.id];
|
|
136
|
+
if (node) observer.observe(node);
|
|
137
|
+
}
|
|
138
|
+
return () => observer.disconnect();
|
|
139
|
+
}, [items, measure]);
|
|
140
|
+
return {
|
|
141
|
+
setLabelMeasureRef,
|
|
142
|
+
widths
|
|
143
|
+
};
|
|
144
|
+
}
|
|
145
|
+
function ExpandableTabs({ items, value, defaultValue = null, onValueChange, className, classNames }) {
|
|
146
|
+
const reduce = useReducedMotion();
|
|
147
|
+
const rootRef = useRef(null);
|
|
148
|
+
const [sizerRef, size] = useContentSize();
|
|
149
|
+
const { setLabelMeasureRef, widths: labelWidths } = useLabelWidths(items);
|
|
150
|
+
const controlled = value !== void 0;
|
|
151
|
+
const [internal, setInternal] = useState(defaultValue);
|
|
152
|
+
const activeId = controlled ? value : internal;
|
|
153
|
+
const active = items.find((item) => item.id === activeId) ?? null;
|
|
154
|
+
const visualActiveId = active?.id ?? null;
|
|
155
|
+
const setActive = useCallback((next) => {
|
|
156
|
+
if (!controlled) setInternal(next);
|
|
157
|
+
onValueChange?.(next);
|
|
158
|
+
}, [controlled, onValueChange]);
|
|
159
|
+
useEffect(() => {
|
|
160
|
+
if (!visualActiveId) return;
|
|
161
|
+
const onPointer = (e) => {
|
|
162
|
+
if (!rootRef.current?.contains(e.target)) setActive(null);
|
|
163
|
+
};
|
|
164
|
+
const onKey = (e) => {
|
|
165
|
+
if (e.key === "Escape") setActive(null);
|
|
166
|
+
};
|
|
167
|
+
document.addEventListener("pointerdown", onPointer);
|
|
168
|
+
document.addEventListener("keydown", onKey);
|
|
169
|
+
return () => {
|
|
170
|
+
document.removeEventListener("pointerdown", onPointer);
|
|
171
|
+
document.removeEventListener("keydown", onKey);
|
|
172
|
+
};
|
|
173
|
+
}, [setActive, visualActiveId]);
|
|
174
|
+
const closedSize = {
|
|
175
|
+
width: items.length * TAB_W + Math.max(0, items.length - 1) * BAR_GAP + BAR_X + ROOT_BORDER,
|
|
176
|
+
height: 54
|
|
177
|
+
};
|
|
178
|
+
const openSize = size ? {
|
|
179
|
+
width: Math.max(size.width + ROOT_BORDER, closedSize.width),
|
|
180
|
+
height: Math.max(size.height + ROOT_BORDER, closedSize.height)
|
|
181
|
+
} : closedSize;
|
|
182
|
+
const targetSize = active ? openSize : closedSize;
|
|
183
|
+
const getActiveTabWidth = useCallback((item) => Math.max(TAB_W, 33 + (labelWidths[item.id] ?? 0) + ACTIVE_RIGHT_PAD), [labelWidths]);
|
|
184
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsxs(motion.div, {
|
|
185
|
+
ref: rootRef,
|
|
186
|
+
initial: false,
|
|
187
|
+
animate: targetSize ? {
|
|
188
|
+
width: targetSize.width,
|
|
189
|
+
height: targetSize.height
|
|
190
|
+
} : void 0,
|
|
191
|
+
transition: reduce ? { duration: 0 } : SHELL_SPRING,
|
|
192
|
+
style: { transformOrigin: "bottom center" },
|
|
193
|
+
className: cn("relative overflow-hidden rounded-[26px] border border-border bg-card", className, classNames?.root),
|
|
194
|
+
children: [
|
|
195
|
+
/* @__PURE__ */ jsx("div", {
|
|
196
|
+
ref: sizerRef,
|
|
197
|
+
"aria-hidden": true,
|
|
198
|
+
className: cn("pointer-events-none invisible absolute top-0 left-0 grid w-max px-2 pt-2", classNames?.panel),
|
|
199
|
+
style: { paddingBottom: 56 },
|
|
200
|
+
children: items.map((item) => /* @__PURE__ */ jsx("div", {
|
|
201
|
+
className: "col-start-1 row-start-1 w-max",
|
|
202
|
+
children: item.content
|
|
203
|
+
}, item.id))
|
|
204
|
+
}),
|
|
205
|
+
/* @__PURE__ */ jsx("div", {
|
|
206
|
+
className: cn("absolute top-0 right-0 left-0 z-10 overflow-hidden px-2 pt-2", classNames?.panel),
|
|
207
|
+
style: { bottom: 56 },
|
|
208
|
+
children: /* @__PURE__ */ jsx(AnimatePresence, {
|
|
209
|
+
mode: "popLayout",
|
|
210
|
+
initial: false,
|
|
211
|
+
children: active ? /* @__PURE__ */ jsx(motion.div, {
|
|
212
|
+
variants: reduce ? REDUCED_CONTENT_VARIANTS : CONTENT_VARIANTS,
|
|
213
|
+
initial: "enter",
|
|
214
|
+
animate: "center",
|
|
215
|
+
exit: "exit",
|
|
216
|
+
transition: reduce ? {
|
|
217
|
+
duration: .15,
|
|
218
|
+
ease: EASE_OUT
|
|
219
|
+
} : CONTENT_SPRING,
|
|
220
|
+
className: "w-max",
|
|
221
|
+
style: {
|
|
222
|
+
transformOrigin: "top center",
|
|
223
|
+
willChange: "transform, opacity, filter"
|
|
224
|
+
},
|
|
225
|
+
children: active.content
|
|
226
|
+
}, active.id) : null
|
|
227
|
+
})
|
|
228
|
+
}),
|
|
229
|
+
/* @__PURE__ */ jsx("div", {
|
|
230
|
+
role: "tablist",
|
|
231
|
+
"aria-label": "Navigation tabs",
|
|
232
|
+
"aria-orientation": "horizontal",
|
|
233
|
+
className: cn("absolute bottom-0 left-0 z-20 flex w-full items-center justify-between gap-1 p-2", classNames?.bar),
|
|
234
|
+
style: { height: BAR_H },
|
|
235
|
+
children: items.map((item) => {
|
|
236
|
+
const isActive = item.id === visualActiveId;
|
|
237
|
+
const activeTabWidth = getActiveTabWidth(item);
|
|
238
|
+
const labelWidth = labelWidths[item.id] ?? 0;
|
|
239
|
+
return /* @__PURE__ */ jsxs(motion.button, {
|
|
240
|
+
type: "button",
|
|
241
|
+
role: "tab",
|
|
242
|
+
"aria-selected": isActive,
|
|
243
|
+
"aria-label": item.label,
|
|
244
|
+
onClick: () => setActive(isActive ? null : item.id),
|
|
245
|
+
layout: reduce ? false : "position",
|
|
246
|
+
animate: { width: active && isActive ? activeTabWidth : TAB_W },
|
|
247
|
+
transition: reduce ? { duration: 0 } : TAB_CHANGE_SPRING,
|
|
248
|
+
className: cn("relative isolate flex h-9 min-w-8 shrink-0 items-center justify-center overflow-hidden rounded-[18px] px-2 font-medium text-sm outline-none", "focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background", active && isActive && "min-w-0 justify-start pr-4 pl-2.5", isActive ? "text-foreground" : "text-muted-foreground hover:text-foreground", classNames?.tab, isActive && classNames?.activeTab),
|
|
249
|
+
children: [
|
|
250
|
+
isActive ? /* @__PURE__ */ jsx("span", { className: cn("absolute inset-0 -z-10 rounded-[18px] bg-foreground/10", classNames?.pill) }) : null,
|
|
251
|
+
/* @__PURE__ */ jsx("span", {
|
|
252
|
+
className: cn("grid shrink-0 place-items-center", classNames?.icon),
|
|
253
|
+
children: item.icon
|
|
254
|
+
}),
|
|
255
|
+
/* @__PURE__ */ jsx(motion.span, {
|
|
256
|
+
"aria-hidden": true,
|
|
257
|
+
initial: false,
|
|
258
|
+
animate: reduce ? {
|
|
259
|
+
width: isActive ? labelWidth : 0,
|
|
260
|
+
opacity: isActive ? 1 : 0,
|
|
261
|
+
marginLeft: isActive ? LABEL_GAP : 0,
|
|
262
|
+
filter: "blur(0px)"
|
|
263
|
+
} : {
|
|
264
|
+
width: isActive ? labelWidth : 0,
|
|
265
|
+
opacity: isActive ? 1 : 0,
|
|
266
|
+
marginLeft: isActive ? LABEL_GAP : 0,
|
|
267
|
+
filter: isActive ? "blur(0px)" : "blur(3px)"
|
|
268
|
+
},
|
|
269
|
+
transition: reduce ? { duration: 0 } : isActive ? LABEL_OPEN : LABEL_CLOSE,
|
|
270
|
+
className: cn("inline-block overflow-hidden whitespace-nowrap", classNames?.label),
|
|
271
|
+
children: item.label
|
|
272
|
+
})
|
|
273
|
+
]
|
|
274
|
+
}, item.id);
|
|
275
|
+
})
|
|
276
|
+
})
|
|
277
|
+
]
|
|
278
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
279
|
+
"aria-hidden": "true",
|
|
280
|
+
className: "pointer-events-none fixed top-0 left-0 -z-10 flex opacity-0",
|
|
281
|
+
children: items.map((item) => /* @__PURE__ */ jsx("span", {
|
|
282
|
+
className: cn("whitespace-nowrap font-medium text-sm leading-none", classNames?.label),
|
|
283
|
+
ref: setLabelMeasureRef(item.id),
|
|
284
|
+
children: item.label
|
|
285
|
+
}, item.id))
|
|
286
|
+
})] });
|
|
287
|
+
}
|
|
288
|
+
//#endregion
|
|
289
|
+
export { ExpandableTabs };
|
|
290
|
+
|
|
291
|
+
//# sourceMappingURL=expandable-tabs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"expandable-tabs.js","names":[],"sources":["../../../src/components/motion/expandable-tabs.tsx"],"sourcesContent":["\"use client\";\n\nimport { type ReactNode, useCallback, useEffect, useLayoutEffect, useRef, useState } from \"react\";\nimport { AnimatePresence, motion, useReducedMotion, type Variants } from \"motion/react\";\n\nimport { cn } from \"@kumix/utils\";\nimport { EASE_OUT } from \"../../lib/ease\";\n\nexport type ExpandableTabsItem = {\n id: string;\n /** String label — shown inside the active tab and used as the button's accessible name. */\n label: string;\n icon: ReactNode;\n /** Panel shown above the bar when this tab is active. */\n content: ReactNode;\n};\n\nexport type ExpandableTabsClassNames = {\n root?: string;\n panel?: string;\n bar?: string;\n tab?: string;\n activeTab?: string;\n icon?: string;\n label?: string;\n pill?: string;\n};\n\nexport interface ExpandableTabsProps {\n items: ExpandableTabsItem[];\n /** Active tab id, or null/undefined for the closed (bar-only) state. */\n value?: string | null;\n defaultValue?: string | null;\n onValueChange?: (id: string | null) => void;\n className?: string;\n classNames?: ExpandableTabsClassNames;\n}\n\ntype Size = { width: number; height: number };\n\n// DynamicIsland-style real width/height motion, tuned tighter here so the tab\n// bar feels controlled instead of elastic.\nconst SHELL_SPRING = { type: \"spring\", duration: 0.58, bounce: 0.06 } as const;\n\n// Position-only tab layout motion keeps switching loose without stretching\n// icons or letting the label linger.\nconst TAB_CHANGE_SPRING = {\n type: \"spring\",\n duration: 0.46,\n bounce: 0.04,\n} as const;\nconst LABEL_OPEN = { type: \"spring\", duration: 0.38, bounce: 0.03 } as const;\nconst LABEL_CLOSE = { duration: 0.16, ease: EASE_OUT } as const;\n\n// Fixed bar height keeps the content panel's bottom reserve static so the open\n// height is right on the first frame. p-2 (16) + h-9 button (36).\nconst BAR_H = 52;\nconst TAB_W = 32;\nconst BAR_X = 16;\nconst BAR_GAP = 4;\nconst ROOT_BORDER = 2;\nconst ICON_W = 16;\nconst ACTIVE_LEFT_PAD = 10;\nconst ACTIVE_RIGHT_PAD = 16;\nconst LABEL_GAP = 7;\nconst PANEL_DOCK_GAP = 4;\n\n// Content is clipped above the dock so rows never pass through the icon bar.\n// It enters from slightly above instead of from the dock line.\nconst CONTENT_VARIANTS: Variants = {\n enter: { y: -8, scale: 0.98, opacity: 0, filter: \"blur(4px)\" },\n center: { y: 0, scale: 1, opacity: 1, filter: \"blur(0px)\" },\n exit: {\n y: -6,\n scale: 0.98,\n opacity: 0,\n filter: \"blur(4px)\",\n transition: { duration: 0.08, ease: EASE_OUT },\n },\n};\n\nconst REDUCED_CONTENT_VARIANTS: Variants = {\n enter: { opacity: 0, filter: \"blur(0px)\" },\n center: { opacity: 1, filter: \"blur(0px)\" },\n exit: {\n opacity: 0,\n filter: \"blur(0px)\",\n transition: { duration: 0.08, ease: EASE_OUT },\n },\n};\n\nconst CONTENT_SPRING = { type: \"spring\", duration: 0.46, bounce: 0.08 } as const;\n\nfunction sameSize(a: Size | null | undefined, b: Size | null | undefined) {\n return a?.width === b?.width && a?.height === b?.height;\n}\n\nfunction sameWidths(a: Record<string, number>, b: Record<string, number>) {\n const aKeys = Object.keys(a);\n const bKeys = Object.keys(b);\n\n if (aKeys.length !== bKeys.length) {\n return false;\n }\n\n return aKeys.every((key) => a[key] === b[key]);\n}\n\nfunction useContentSize() {\n const ref = useRef<HTMLDivElement | null>(null);\n const [size, setSize] = useState<Size | null>(null);\n\n const measure = useCallback(() => {\n const el = ref.current;\n if (!el) return;\n const next = { width: el.offsetWidth, height: el.offsetHeight };\n setSize((current) => (sameSize(current, next) ? current : next));\n }, []);\n\n useLayoutEffect(() => {\n measure();\n }, [measure]);\n\n useEffect(() => {\n const el = ref.current;\n if (!el || typeof ResizeObserver === \"undefined\") return;\n const observer = new ResizeObserver(measure);\n observer.observe(el);\n return () => observer.disconnect();\n }, [measure]);\n\n return [ref, size] as const;\n}\n\nfunction useLabelWidths(items: ExpandableTabsItem[]) {\n const refs = useRef<Record<string, HTMLSpanElement | null>>({});\n const [widths, setWidths] = useState<Record<string, number>>({});\n\n const setLabelMeasureRef = useCallback(\n (id: string) => (node: HTMLSpanElement | null) => {\n refs.current[id] = node;\n },\n [],\n );\n\n const measure = useCallback(() => {\n const next: Record<string, number> = {};\n\n for (const item of items) {\n const node = refs.current[item.id];\n\n if (node) {\n next[item.id] = Math.ceil(node.offsetWidth);\n }\n }\n\n setWidths((current) => (sameWidths(current, next) ? current : next));\n }, [items]);\n\n useLayoutEffect(() => {\n measure();\n }, [measure]);\n\n useEffect(() => {\n if (typeof ResizeObserver === \"undefined\") {\n return;\n }\n\n const observer = new ResizeObserver(measure);\n\n for (const item of items) {\n const node = refs.current[item.id];\n\n if (node) {\n observer.observe(node);\n }\n }\n\n return () => observer.disconnect();\n }, [items, measure]);\n\n return { setLabelMeasureRef, widths };\n}\n\nexport function ExpandableTabs({\n items,\n value,\n defaultValue = null,\n onValueChange,\n className,\n classNames,\n}: ExpandableTabsProps) {\n const reduce = useReducedMotion();\n const rootRef = useRef<HTMLDivElement>(null);\n const [sizerRef, size] = useContentSize();\n const { setLabelMeasureRef, widths: labelWidths } = useLabelWidths(items);\n\n const controlled = value !== undefined;\n const [internal, setInternal] = useState<string | null>(defaultValue);\n const activeId = controlled ? value : internal;\n const active = items.find((item) => item.id === activeId) ?? null;\n const visualActiveId = active?.id ?? null;\n\n const setActive = useCallback(\n (next: string | null) => {\n if (!controlled) setInternal(next);\n onValueChange?.(next);\n },\n [controlled, onValueChange],\n );\n\n // Outside click / Escape closes — it behaves like an open menu.\n useEffect(() => {\n if (!visualActiveId) return;\n const onPointer = (e: PointerEvent) => {\n if (!rootRef.current?.contains(e.target as Node)) setActive(null);\n };\n const onKey = (e: KeyboardEvent) => {\n if (e.key === \"Escape\") setActive(null);\n };\n document.addEventListener(\"pointerdown\", onPointer);\n document.addEventListener(\"keydown\", onKey);\n return () => {\n document.removeEventListener(\"pointerdown\", onPointer);\n document.removeEventListener(\"keydown\", onKey);\n };\n }, [setActive, visualActiveId]);\n\n const closedSize = {\n width: items.length * TAB_W + Math.max(0, items.length - 1) * BAR_GAP + BAR_X + ROOT_BORDER,\n height: BAR_H + ROOT_BORDER,\n };\n const openSize = size\n ? {\n width: Math.max(size.width + ROOT_BORDER, closedSize.width),\n height: Math.max(size.height + ROOT_BORDER, closedSize.height),\n }\n : closedSize;\n const targetSize = active ? openSize : closedSize;\n\n const getActiveTabWidth = useCallback(\n (item: ExpandableTabsItem) =>\n Math.max(\n TAB_W,\n ACTIVE_LEFT_PAD + ICON_W + LABEL_GAP + (labelWidths[item.id] ?? 0) + ACTIVE_RIGHT_PAD,\n ),\n [labelWidths],\n );\n\n return (\n <>\n <motion.div\n ref={rootRef}\n initial={false}\n animate={targetSize ? { width: targetSize.width, height: targetSize.height } : undefined}\n transition={reduce ? { duration: 0 } : SHELL_SPRING}\n style={{ transformOrigin: \"bottom center\" }}\n className={cn(\n \"relative overflow-hidden rounded-[26px] border border-border bg-card\",\n className,\n classNames?.root,\n )}\n >\n <div\n ref={sizerRef}\n aria-hidden\n className={cn(\n \"pointer-events-none invisible absolute top-0 left-0 grid w-max px-2 pt-2\",\n classNames?.panel,\n )}\n style={{ paddingBottom: BAR_H + PANEL_DOCK_GAP }}\n >\n {items.map((item) => (\n <div key={item.id} className=\"col-start-1 row-start-1 w-max\">\n {item.content}\n </div>\n ))}\n </div>\n\n <div\n className={cn(\n \"absolute top-0 right-0 left-0 z-10 overflow-hidden px-2 pt-2\",\n classNames?.panel,\n )}\n style={{ bottom: BAR_H + PANEL_DOCK_GAP }}\n >\n <AnimatePresence mode=\"popLayout\" initial={false}>\n {active ? (\n <motion.div\n key={active.id}\n variants={reduce ? REDUCED_CONTENT_VARIANTS : CONTENT_VARIANTS}\n initial=\"enter\"\n animate=\"center\"\n exit=\"exit\"\n transition={reduce ? { duration: 0.15, ease: EASE_OUT } : CONTENT_SPRING}\n className=\"w-max\"\n style={{\n transformOrigin: \"top center\",\n willChange: \"transform, opacity, filter\",\n }}\n >\n {active.content}\n </motion.div>\n ) : null}\n </AnimatePresence>\n </div>\n\n <div\n role=\"tablist\"\n aria-label=\"Navigation tabs\"\n aria-orientation=\"horizontal\"\n className={cn(\n \"absolute bottom-0 left-0 z-20 flex w-full items-center justify-between gap-1 p-2\",\n classNames?.bar,\n )}\n style={{ height: BAR_H }}\n >\n {items.map((item) => {\n const isActive = item.id === visualActiveId;\n const activeTabWidth = getActiveTabWidth(item);\n const labelWidth = labelWidths[item.id] ?? 0;\n\n return (\n <motion.button\n key={item.id}\n type=\"button\"\n role=\"tab\"\n aria-selected={isActive}\n aria-label={item.label}\n onClick={() => setActive(isActive ? null : item.id)}\n layout={reduce ? false : \"position\"}\n animate={{\n width: active && isActive ? activeTabWidth : TAB_W,\n }}\n transition={reduce ? { duration: 0 } : TAB_CHANGE_SPRING}\n className={cn(\n \"relative isolate flex h-9 min-w-8 shrink-0 items-center justify-center overflow-hidden rounded-[18px] px-2 font-medium text-sm outline-none\",\n \"focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background\",\n active && isActive && \"min-w-0 justify-start pr-4 pl-2.5\",\n isActive ? \"text-foreground\" : \"text-muted-foreground hover:text-foreground\",\n classNames?.tab,\n isActive && classNames?.activeTab,\n )}\n >\n {isActive ? (\n <span\n className={cn(\n \"absolute inset-0 -z-10 rounded-[18px] bg-foreground/10\",\n classNames?.pill,\n )}\n />\n ) : null}\n <span className={cn(\"grid shrink-0 place-items-center\", classNames?.icon)}>\n {item.icon}\n </span>\n <motion.span\n aria-hidden\n initial={false}\n animate={\n reduce\n ? {\n width: isActive ? labelWidth : 0,\n opacity: isActive ? 1 : 0,\n marginLeft: isActive ? LABEL_GAP : 0,\n filter: \"blur(0px)\",\n }\n : {\n width: isActive ? labelWidth : 0,\n opacity: isActive ? 1 : 0,\n marginLeft: isActive ? LABEL_GAP : 0,\n filter: isActive ? \"blur(0px)\" : \"blur(3px)\",\n }\n }\n transition={reduce ? { duration: 0 } : isActive ? LABEL_OPEN : LABEL_CLOSE}\n className={cn(\n \"inline-block overflow-hidden whitespace-nowrap\",\n classNames?.label,\n )}\n >\n {item.label}\n </motion.span>\n </motion.button>\n );\n })}\n </div>\n </motion.div>\n <div\n aria-hidden=\"true\"\n className=\"pointer-events-none fixed top-0 left-0 -z-10 flex opacity-0\"\n >\n {items.map((item) => (\n <span\n className={cn(\"whitespace-nowrap font-medium text-sm leading-none\", classNames?.label)}\n key={item.id}\n ref={setLabelMeasureRef(item.id)}\n >\n {item.label}\n </span>\n ))}\n </div>\n </>\n );\n}\n"],"mappings":";;;;;;;AA0CA,MAAM,eAAe;CAAE,MAAM;CAAU,UAAU;CAAM,QAAQ;AAAK;AAIpE,MAAM,oBAAoB;CACxB,MAA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AAE;GAE9B,UAAA,KAAK;EACF,GAJC,KAAK,EAIN,CACP;CACE,CAAA,CACL,EAAA,CAAA;AAEN"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
//#region src/components/motion/feedback-widget.d.ts
|
|
3
|
+
interface FeedbackData {
|
|
4
|
+
message: string;
|
|
5
|
+
}
|
|
6
|
+
interface FeedbackWidgetProps {
|
|
7
|
+
/** Called on submit. May be async; the button shows a sending state until it resolves. */
|
|
8
|
+
onSubmit?: (data: FeedbackData) => void | Promise<void>;
|
|
9
|
+
position?: "bottom-right" | "bottom-left";
|
|
10
|
+
title?: string;
|
|
11
|
+
placeholder?: string;
|
|
12
|
+
icon?: ReactNode;
|
|
13
|
+
className?: string;
|
|
14
|
+
}
|
|
15
|
+
declare function FeedbackWidget({ onSubmit, position, title, placeholder, icon, className }: FeedbackWidgetProps): import("react").JSX.Element;
|
|
16
|
+
//#endregion
|
|
17
|
+
export { FeedbackData, FeedbackWidget, FeedbackWidgetProps };
|
|
18
|
+
//# sourceMappingURL=feedback-widget.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"feedback-widget.d.ts","names":[],"sources":["../../../src/components/motion/feedback-widget.tsx"],"mappings":";;UAmCiB;EACf;;UAGe;;EAEf,YAAY,MAAM,wBAAwB;EAC1C;EACA;EACA;EACA,OAAO;EACP;;iBAGc,iBACd,UACA,UACA,OACA,aACA,MACA,aACC,sCAAmB,IAAA"}
|