@kumix/ui 0.3.10 → 0.3.12
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 +25 -25
- package/dist/components/agents/agent-activity/activity-row.d.ts +1 -2
- package/dist/components/agents/agent-activity/activity-row.d.ts.map +1 -1
- package/dist/components/agents/agent-activity/activity-row.js +1 -1
- package/dist/components/agents/agent-activity/index.d.ts +2 -2
- package/dist/components/agents/agent-activity/index.d.ts.map +1 -1
- package/dist/components/agents/agent-activity/index.js +1 -1
- package/dist/components/agents/agent-code.d.ts +8 -9
- package/dist/components/agents/agent-code.d.ts.map +1 -1
- package/dist/components/agents/agent-code.js +1 -1
- package/dist/components/agents/agent-disclosure.d.ts +2 -3
- package/dist/components/agents/agent-disclosure.d.ts.map +1 -1
- package/dist/components/agents/ai-sidebar.d.ts +8 -9
- package/dist/components/agents/ai-sidebar.d.ts.map +1 -1
- package/dist/components/agents/ai-sidebar.js +1 -1
- package/dist/components/agents/approval-card/index.d.ts +2 -2
- package/dist/components/agents/approval-card/index.d.ts.map +1 -1
- package/dist/components/agents/approval-card/index.js +1 -1
- package/dist/components/agents/chat-app.d.ts +2 -3
- package/dist/components/agents/chat-app.d.ts.map +1 -1
- package/dist/components/agents/citations.d.ts +10 -11
- package/dist/components/agents/citations.d.ts.map +1 -1
- package/dist/components/agents/citations.js +1 -1
- package/dist/components/agents/code-block.d.ts +3 -4
- package/dist/components/agents/code-block.d.ts.map +1 -1
- package/dist/components/agents/code-block.js +1 -1
- package/dist/components/agents/file-diff.d.ts +5 -6
- package/dist/components/agents/file-diff.d.ts.map +1 -1
- package/dist/components/agents/file-diff.js +1 -1
- package/dist/components/agents/image-generation.d.ts +3 -4
- package/dist/components/agents/image-generation.d.ts.map +1 -1
- package/dist/components/agents/image-generation.js +1 -1
- package/dist/components/agents/loading-states/agent-progress.d.ts +2 -3
- package/dist/components/agents/loading-states/agent-progress.d.ts.map +1 -1
- package/dist/components/agents/loading-states/reasoning-text.d.ts +3 -4
- package/dist/components/agents/loading-states/reasoning-text.d.ts.map +1 -1
- package/dist/components/agents/loading-states/thinking-shimmer.d.ts +2 -3
- package/dist/components/agents/loading-states/thinking-shimmer.d.ts.map +1 -1
- package/dist/components/agents/message-bubble.d.ts +10 -11
- package/dist/components/agents/message-bubble.d.ts.map +1 -1
- package/dist/components/agents/message-bubble.js +1 -1
- package/dist/components/agents/message-context.d.ts +2 -3
- package/dist/components/agents/message-context.d.ts.map +1 -1
- package/dist/components/agents/message-scroller.d.ts +2 -3
- package/dist/components/agents/message-scroller.d.ts.map +1 -1
- package/dist/components/agents/message.d.ts +18 -18
- package/dist/components/agents/message.d.ts.map +1 -1
- package/dist/components/agents/prompt-input.d.ts +4 -5
- package/dist/components/agents/prompt-input.d.ts.map +1 -1
- package/dist/components/agents/prompt-input.js +1 -1
- package/dist/components/agents/streaming-response.d.ts +4 -5
- package/dist/components/agents/streaming-response.d.ts.map +1 -1
- package/dist/components/agents/streaming-response.js +1 -1
- package/dist/components/agents/todo-list.d.ts +4 -5
- package/dist/components/agents/todo-list.d.ts.map +1 -1
- package/dist/components/agents/todo-list.js +1 -1
- package/dist/components/agents/tool-approval.d.ts +6 -7
- package/dist/components/agents/tool-approval.d.ts.map +1 -1
- package/dist/components/agents/tool-approval.js +1 -1
- package/dist/components/agents/tool-result.d.ts +6 -7
- package/dist/components/agents/tool-result.d.ts.map +1 -1
- package/dist/components/agents/tool-result.js +1 -1
- package/dist/components/custom/confirm-dialog.d.ts +2 -3
- package/dist/components/custom/confirm-dialog.d.ts.map +1 -1
- package/dist/components/custom/confirm-dialog.js +1 -1
- package/dist/components/custom/toast.d.ts +6 -7
- package/dist/components/custom/toast.d.ts.map +1 -1
- package/dist/components/motion/action-swap-blur.d.ts +7 -7
- package/dist/components/motion/action-swap-blur.d.ts.map +1 -1
- package/dist/components/motion/action-swap-cascade.d.ts +7 -7
- package/dist/components/motion/action-swap-cascade.d.ts.map +1 -1
- package/dist/components/motion/action-swap-roll.d.ts +7 -7
- package/dist/components/motion/action-swap-roll.d.ts.map +1 -1
- package/dist/components/motion/action-swap.d.ts +10 -11
- package/dist/components/motion/action-swap.d.ts.map +1 -1
- package/dist/components/motion/adaptive-stepper.d.ts +31 -0
- package/dist/components/motion/adaptive-stepper.d.ts.map +1 -0
- package/dist/components/motion/adaptive-stepper.js +302 -0
- package/dist/components/motion/adaptive-stepper.js.map +1 -0
- package/dist/components/motion/animated-badge.d.ts +4 -5
- package/dist/components/motion/animated-badge.d.ts.map +1 -1
- package/dist/components/motion/animated-badge.js +1 -1
- package/dist/components/motion/animated-number.d.ts +2 -3
- package/dist/components/motion/animated-number.d.ts.map +1 -1
- package/dist/components/motion/animated-sidebar.d.ts +28 -29
- package/dist/components/motion/animated-sidebar.d.ts.map +1 -1
- package/dist/components/motion/animated-sidebar.js +1 -1
- package/dist/components/motion/animated-toast-stack.d.ts +10 -11
- package/dist/components/motion/animated-toast-stack.d.ts.map +1 -1
- package/dist/components/motion/animated-toast-stack.js +1 -1
- package/dist/components/motion/attachment-upload.d.ts +7 -8
- package/dist/components/motion/attachment-upload.d.ts.map +1 -1
- package/dist/components/motion/attachment-upload.js +1 -1
- package/dist/components/motion/availability-scheduler/copy-menu.d.ts +1 -2
- package/dist/components/motion/availability-scheduler/copy-menu.d.ts.map +1 -1
- package/dist/components/motion/availability-scheduler/copy-menu.js +1 -1
- package/dist/components/motion/availability-scheduler/day-row.d.ts +1 -2
- package/dist/components/motion/availability-scheduler/day-row.d.ts.map +1 -1
- package/dist/components/motion/availability-scheduler/day-row.js +2 -2
- package/dist/components/motion/availability-scheduler/icon-button.d.ts +1 -2
- package/dist/components/motion/availability-scheduler/icon-button.d.ts.map +1 -1
- package/dist/components/motion/availability-scheduler/index.d.ts +3 -3
- package/dist/components/motion/availability-scheduler/index.d.ts.map +1 -1
- package/dist/components/motion/availability-scheduler/index.js +1 -1
- package/dist/components/motion/availability-scheduler/time-select.d.ts +1 -2
- package/dist/components/motion/availability-scheduler/time-select.d.ts.map +1 -1
- package/dist/components/motion/bloom-menu.d.ts +2 -3
- package/dist/components/motion/bloom-menu.d.ts.map +1 -1
- package/dist/components/motion/bloom-menu.js +1 -1
- package/dist/components/motion/bottom-sheet.d.ts +2 -3
- package/dist/components/motion/bottom-sheet.d.ts.map +1 -1
- package/dist/components/motion/bounce-sidebar.d.ts +3 -4
- package/dist/components/motion/bounce-sidebar.d.ts.map +1 -1
- package/dist/components/motion/bouncy-accordion.d.ts +4 -5
- package/dist/components/motion/bouncy-accordion.d.ts.map +1 -1
- package/dist/components/motion/bouncy-accordion.js +1 -1
- package/dist/components/motion/button/base.d.ts +6 -7
- package/dist/components/motion/button/base.d.ts.map +1 -1
- package/dist/components/motion/button/magnetic.d.ts +2 -3
- package/dist/components/motion/button/magnetic.d.ts.map +1 -1
- package/dist/components/motion/button/metallic.d.ts +2 -3
- package/dist/components/motion/button/metallic.d.ts.map +1 -1
- package/dist/components/motion/button/stateful.d.ts +3 -4
- package/dist/components/motion/button/stateful.d.ts.map +1 -1
- package/dist/components/motion/button/stateful.js +1 -1
- package/dist/components/motion/center-morph-modal.d.ts +8 -9
- package/dist/components/motion/center-morph-modal.d.ts.map +1 -1
- package/dist/components/motion/center-morph-modal.js +1 -1
- package/dist/components/motion/checkbox.d.ts +2 -3
- package/dist/components/motion/checkbox.d.ts.map +1 -1
- package/dist/components/motion/chromatic-text-reveal.d.ts +2 -3
- package/dist/components/motion/chromatic-text-reveal.d.ts.map +1 -1
- package/dist/components/motion/combobox/content.d.ts +2 -3
- package/dist/components/motion/combobox/content.d.ts.map +1 -1
- package/dist/components/motion/combobox/content.js +1 -1
- package/dist/components/motion/combobox/context.d.ts +9 -10
- package/dist/components/motion/combobox/context.d.ts.map +1 -1
- package/dist/components/motion/combobox/context.js +216 -1
- package/dist/components/motion/combobox/context.js.map +1 -0
- package/dist/components/motion/combobox/list.d.ts +12 -13
- package/dist/components/motion/combobox/list.d.ts.map +1 -1
- package/dist/components/motion/combobox/list.js +2 -2
- package/dist/components/motion/combobox/trigger.d.ts +6 -7
- package/dist/components/motion/combobox/trigger.d.ts.map +1 -1
- package/dist/components/motion/combobox/trigger.js +2 -2
- package/dist/components/motion/combobox.js +1 -1
- package/dist/components/motion/command-palette.d.ts +3 -4
- package/dist/components/motion/command-palette.d.ts.map +1 -1
- package/dist/components/motion/command-palette.js +1 -1
- package/dist/components/motion/context-menu.d.ts +20 -21
- package/dist/components/motion/context-menu.d.ts.map +1 -1
- package/dist/components/motion/context-menu.js +1 -1
- package/dist/components/motion/cylinder-carousel.d.ts +2 -3
- package/dist/components/motion/cylinder-carousel.d.ts.map +1 -1
- package/dist/components/motion/dock.d.ts +5 -6
- package/dist/components/motion/dock.d.ts.map +1 -1
- package/dist/components/motion/drawer.d.ts +2 -3
- package/dist/components/motion/drawer.d.ts.map +1 -1
- package/dist/components/motion/dynamic-island.d.ts +4 -5
- package/dist/components/motion/dynamic-island.d.ts.map +1 -1
- package/dist/components/motion/expandable-action-bar.d.ts +6 -7
- package/dist/components/motion/expandable-action-bar.d.ts.map +1 -1
- package/dist/components/motion/expandable-control.d.ts +4 -5
- package/dist/components/motion/expandable-control.d.ts.map +1 -1
- package/dist/components/motion/expandable-tabs.d.ts +4 -5
- package/dist/components/motion/expandable-tabs.d.ts.map +1 -1
- package/dist/components/motion/expanding-arrow-button.d.ts +2 -3
- package/dist/components/motion/expanding-arrow-button.d.ts.map +1 -1
- package/dist/components/motion/feedback-widget.d.ts +3 -4
- package/dist/components/motion/feedback-widget.d.ts.map +1 -1
- package/dist/components/motion/feedback-widget.js +1 -1
- package/dist/components/motion/file-tree.d.ts +7 -8
- package/dist/components/motion/file-tree.d.ts.map +1 -1
- package/dist/components/motion/file-tree.js +1 -1
- package/dist/components/motion/file-upload.d.ts +7 -8
- package/dist/components/motion/file-upload.d.ts.map +1 -1
- package/dist/components/motion/file-upload.js +1 -1
- package/dist/components/motion/hold-action-button.d.ts +2 -3
- package/dist/components/motion/hold-action-button.d.ts.map +1 -1
- package/dist/components/motion/infinite-masonry.d.ts +3 -4
- package/dist/components/motion/infinite-masonry.d.ts.map +1 -1
- package/dist/components/motion/infinite-masonry.js +1 -1
- package/dist/components/motion/input.d.ts +5 -4
- package/dist/components/motion/input.d.ts.map +1 -1
- package/dist/components/motion/input.js +28 -25
- package/dist/components/motion/input.js.map +1 -1
- package/dist/components/motion/liquid.d.ts +29 -0
- package/dist/components/motion/liquid.d.ts.map +1 -0
- package/dist/components/motion/liquid.js +248 -0
- package/dist/components/motion/liquid.js.map +1 -0
- package/dist/components/motion/loader.d.ts +3 -4
- package/dist/components/motion/loader.d.ts.map +1 -1
- package/dist/components/motion/magnetic.d.ts +2 -3
- package/dist/components/motion/magnetic.d.ts.map +1 -1
- package/dist/components/motion/marquee.d.ts +2 -3
- package/dist/components/motion/marquee.d.ts.map +1 -1
- package/dist/components/motion/morphing-modal.d.ts +2 -3
- package/dist/components/motion/morphing-modal.d.ts.map +1 -1
- package/dist/components/motion/morphing-search.d.ts +3 -4
- package/dist/components/motion/morphing-search.d.ts.map +1 -1
- package/dist/components/motion/morphing-search.js +1 -1
- package/dist/components/motion/morphing-tabs.d.ts +4 -5
- package/dist/components/motion/morphing-tabs.d.ts.map +1 -1
- package/dist/components/motion/morphing-tabs.js +1 -1
- package/dist/components/motion/multi-select/content.d.ts +15 -0
- package/dist/components/motion/multi-select/content.d.ts.map +1 -0
- package/dist/components/motion/multi-select/content.js +91 -0
- package/dist/components/motion/multi-select/content.js.map +1 -0
- package/dist/components/motion/multi-select/context.d.ts +63 -0
- package/dist/components/motion/multi-select/context.d.ts.map +1 -0
- package/dist/{context-BizvUNZv.js → components/motion/multi-select/context.js} +44 -114
- package/dist/components/motion/multi-select/context.js.map +1 -0
- package/dist/components/motion/multi-select/index.d.ts +5 -0
- package/dist/components/motion/multi-select/index.js +6 -0
- package/dist/components/motion/multi-select/list.d.ts +39 -0
- package/dist/components/motion/multi-select/list.d.ts.map +1 -0
- package/dist/components/motion/multi-select/list.js +144 -0
- package/dist/components/motion/multi-select/list.js.map +1 -0
- package/dist/components/motion/multi-select/trigger.d.ts +21 -0
- package/dist/components/motion/multi-select/trigger.d.ts.map +1 -0
- package/dist/components/motion/multi-select/trigger.js +185 -0
- package/dist/components/motion/multi-select/trigger.js.map +1 -0
- package/dist/components/motion/not-found/glitch.d.ts +1 -2
- package/dist/components/motion/not-found/glitch.d.ts.map +1 -1
- package/dist/components/motion/not-found/magnetic.d.ts +1 -2
- package/dist/components/motion/not-found/magnetic.d.ts.map +1 -1
- package/dist/components/motion/not-found/shared.d.ts +4 -5
- package/dist/components/motion/not-found/shared.d.ts.map +1 -1
- package/dist/components/motion/not-found/spotlight.d.ts +1 -2
- package/dist/components/motion/not-found/spotlight.d.ts.map +1 -1
- package/dist/components/motion/not-found/stacked.d.ts +1 -2
- package/dist/components/motion/not-found/stacked.d.ts.map +1 -1
- package/dist/components/motion/not-found/terminal.d.ts +1 -2
- package/dist/components/motion/not-found/terminal.d.ts.map +1 -1
- package/dist/components/motion/notification-stack.d.ts +4 -5
- package/dist/components/motion/notification-stack.d.ts.map +1 -1
- package/dist/components/motion/notification-stack.js +1 -1
- package/dist/components/motion/number-ticker.d.ts +2 -3
- package/dist/components/motion/number-ticker.d.ts.map +1 -1
- package/dist/components/motion/otp-input.d.ts +3 -4
- package/dist/components/motion/otp-input.d.ts.map +1 -1
- package/dist/components/motion/overflow-actions.d.ts +5 -6
- package/dist/components/motion/overflow-actions.d.ts.map +1 -1
- package/dist/components/motion/overflow-actions.js +1 -1
- package/dist/components/motion/parallax.d.ts +2 -3
- package/dist/components/motion/parallax.d.ts.map +1 -1
- package/dist/components/motion/popover-morph.d.ts +6 -7
- package/dist/components/motion/popover-morph.d.ts.map +1 -1
- package/dist/components/motion/popover.d.ts +6 -7
- package/dist/components/motion/popover.d.ts.map +1 -1
- package/dist/components/motion/preview-rail.d.ts +3 -4
- package/dist/components/motion/preview-rail.d.ts.map +1 -1
- package/dist/components/motion/project-folder.d.ts +3 -4
- package/dist/components/motion/project-folder.d.ts.map +1 -1
- package/dist/components/motion/project-folder.js +1 -1
- package/dist/components/motion/pull-to-refresh.d.ts +3 -4
- package/dist/components/motion/pull-to-refresh.d.ts.map +1 -1
- package/dist/components/motion/radio.d.ts +4 -5
- package/dist/components/motion/radio.d.ts.map +1 -1
- package/dist/components/motion/range-slider-bubble.d.ts +2 -3
- package/dist/components/motion/range-slider-bubble.d.ts.map +1 -1
- package/dist/components/motion/range-slider-fluid.d.ts +2 -3
- package/dist/components/motion/range-slider-fluid.d.ts.map +1 -1
- package/dist/components/motion/range-slider-ruler.d.ts +2 -3
- package/dist/components/motion/range-slider-ruler.d.ts.map +1 -1
- package/dist/components/motion/range-slider-wave.d.ts +2 -3
- package/dist/components/motion/range-slider-wave.d.ts.map +1 -1
- package/dist/components/motion/range-slider.d.ts +2 -3
- package/dist/components/motion/range-slider.d.ts.map +1 -1
- package/dist/components/motion/scroll-progress.d.ts +4 -5
- package/dist/components/motion/scroll-progress.d.ts.map +1 -1
- package/dist/components/motion/scroll-reveal.d.ts +2 -3
- package/dist/components/motion/scroll-reveal.d.ts.map +1 -1
- package/dist/components/motion/scroll-to.d.ts +2 -3
- package/dist/components/motion/scroll-to.d.ts.map +1 -1
- package/dist/components/motion/select-morph.d.ts +10 -11
- package/dist/components/motion/select-morph.d.ts.map +1 -1
- package/dist/components/motion/select-morph.js +1 -1
- package/dist/components/motion/select.d.ts +10 -11
- package/dist/components/motion/select.d.ts.map +1 -1
- package/dist/components/motion/select.js +1 -1
- package/dist/components/motion/shader-background.d.ts +4 -5
- package/dist/components/motion/shader-background.d.ts.map +1 -1
- package/dist/components/motion/shared-layout-bg.d.ts +2 -3
- package/dist/components/motion/shared-layout-bg.d.ts.map +1 -1
- package/dist/components/motion/signup-form.d.ts +7 -8
- package/dist/components/motion/signup-form.d.ts.map +1 -1
- package/dist/components/motion/signup-form.js +7 -3
- package/dist/components/motion/signup-form.js.map +1 -1
- package/dist/components/motion/slide-action-button.d.ts +2 -3
- package/dist/components/motion/slide-action-button.d.ts.map +1 -1
- package/dist/components/motion/smooth-scroll.d.ts +6 -7
- package/dist/components/motion/smooth-scroll.d.ts.map +1 -1
- package/dist/components/motion/swipeable-list.d.ts +8 -9
- package/dist/components/motion/swipeable-list.d.ts.map +1 -1
- package/dist/components/motion/switch.d.ts +2 -3
- package/dist/components/motion/switch.d.ts.map +1 -1
- package/dist/components/motion/table/editable-cell.d.ts +1 -2
- package/dist/components/motion/table/editable-cell.d.ts.map +1 -1
- package/dist/components/motion/table/index.d.ts +2 -2
- package/dist/components/motion/table/index.d.ts.map +1 -1
- package/dist/components/motion/table/index.js.map +1 -1
- package/dist/components/motion/table/row-handle.d.ts +1 -2
- package/dist/components/motion/table/row-handle.d.ts.map +1 -1
- package/dist/components/motion/table/row-handle.js +1 -1
- package/dist/components/motion/table/skeleton-rows.d.ts +1 -2
- package/dist/components/motion/table/skeleton-rows.d.ts.map +1 -1
- package/dist/components/motion/table/table-header.d.ts +2 -3
- package/dist/components/motion/table/table-header.d.ts.map +1 -1
- package/dist/components/motion/table/table-header.js +1 -1
- package/dist/components/motion/table/table-menu.d.ts +2 -3
- package/dist/components/motion/table/table-menu.d.ts.map +1 -1
- package/dist/components/motion/tabs.d.ts +4 -5
- package/dist/components/motion/tabs.d.ts.map +1 -1
- package/dist/components/motion/text-cascade.d.ts +2 -3
- package/dist/components/motion/text-cascade.d.ts.map +1 -1
- package/dist/components/motion/text-reveal.d.ts +2 -3
- package/dist/components/motion/text-reveal.d.ts.map +1 -1
- package/dist/components/motion/text-scramble.d.ts +2 -3
- package/dist/components/motion/text-scramble.d.ts.map +1 -1
- package/dist/components/motion/text-shimmer.d.ts +2 -3
- package/dist/components/motion/text-shimmer.d.ts.map +1 -1
- package/dist/components/motion/theme-toggle.d.ts +5 -6
- package/dist/components/motion/theme-toggle.d.ts.map +1 -1
- package/dist/components/motion/theme-toggle.js +1 -1
- package/dist/components/motion/tilt-card.d.ts +2 -3
- package/dist/components/motion/tilt-card.d.ts.map +1 -1
- package/dist/components/motion/tooltip.d.ts +2 -3
- package/dist/components/motion/tooltip.d.ts.map +1 -1
- package/dist/components/motion/wheel-picker.d.ts +3 -4
- package/dist/components/motion/wheel-picker.d.ts.map +1 -1
- package/dist/components/reui/alert.d.ts +1 -1
- package/dist/components/reui/alert.js +1 -1
- package/dist/components/reui/autocomplete.d.ts +3 -3
- package/dist/components/reui/autocomplete.d.ts.map +1 -1
- package/dist/components/reui/autocomplete.js +1 -1
- package/dist/components/reui/badge.d.ts +2 -2
- package/dist/components/reui/cascader/cascader-async.d.ts +8 -9
- package/dist/components/reui/cascader/cascader-async.d.ts.map +1 -1
- package/dist/components/reui/cascader/cascader-async.js.map +1 -1
- package/dist/components/reui/cascader/cascader-columns.d.ts +3 -3
- package/dist/components/reui/cascader/cascader-columns.d.ts.map +1 -1
- package/dist/components/reui/cascader/cascader-columns.js +1 -1
- package/dist/components/reui/cascader/cascader-context.d.ts +13 -13
- package/dist/components/reui/cascader/cascader-context.d.ts.map +1 -1
- package/dist/components/reui/cascader/cascader-footer.d.ts +8 -8
- package/dist/components/reui/cascader/cascader-footer.d.ts.map +1 -1
- package/dist/components/reui/cascader/cascader-footer.js +1 -1
- package/dist/components/reui/cascader/cascader-i18n.d.ts +3 -4
- package/dist/components/reui/cascader/cascader-i18n.d.ts.map +1 -1
- package/dist/components/reui/cascader/cascader-item.d.ts +9 -9
- package/dist/components/reui/cascader/cascader-item.d.ts.map +1 -1
- package/dist/components/reui/cascader/cascader-item.js +1 -1
- package/dist/components/reui/cascader/cascader-lib.d.ts +38 -39
- package/dist/components/reui/cascader/cascader-lib.d.ts.map +1 -1
- package/dist/components/reui/cascader/cascader-nav.d.ts +6 -6
- package/dist/components/reui/cascader/cascader-nav.d.ts.map +1 -1
- package/dist/components/reui/cascader/cascader-nav.js +1 -1
- package/dist/components/reui/cascader/cascader-virtual.d.ts +6 -6
- package/dist/components/reui/cascader/cascader-virtual.d.ts.map +1 -1
- package/dist/components/reui/cascader/cascader-virtual.js.map +1 -1
- package/dist/components/reui/cascader/cascader.d.ts +19 -19
- package/dist/components/reui/cascader/cascader.d.ts.map +1 -1
- package/dist/components/reui/cascader/cascader.js +1 -1
- package/dist/components/reui/cascader/cascader.js.map +1 -1
- package/dist/components/reui/code-block/code-block-highlight.d.ts +32 -33
- package/dist/components/reui/code-block/code-block-highlight.d.ts.map +1 -1
- package/dist/components/reui/code-block/code-block.d.ts +7 -7
- package/dist/components/reui/code-block/code-block.d.ts.map +1 -1
- package/dist/components/reui/code-block/code-block.js.map +1 -1
- package/dist/components/reui/data-grid/data-grid-cell-selection.d.ts +117 -0
- package/dist/components/reui/data-grid/data-grid-cell-selection.d.ts.map +1 -0
- package/dist/components/reui/data-grid/data-grid-cell-selection.js +1554 -0
- package/dist/components/reui/data-grid/data-grid-cell-selection.js.map +1 -0
- package/dist/components/reui/data-grid/data-grid-column-filter.d.ts.map +1 -1
- package/dist/components/reui/data-grid/data-grid-column-filter.js +7 -5
- package/dist/components/reui/data-grid/data-grid-column-filter.js.map +1 -1
- package/dist/components/reui/data-grid/data-grid-column-header.d.ts.map +1 -1
- package/dist/components/reui/data-grid/data-grid-column-header.js +19 -13
- package/dist/components/reui/data-grid/data-grid-column-header.js.map +1 -1
- package/dist/components/reui/data-grid/data-grid-column-visibility.js +3 -2
- package/dist/components/reui/data-grid/data-grid-column-visibility.js.map +1 -1
- package/dist/components/reui/data-grid/data-grid-i18n.d.ts +2 -0
- package/dist/components/reui/data-grid/data-grid-i18n.js +53 -0
- package/dist/components/reui/data-grid/data-grid-i18n.js.map +1 -0
- package/dist/components/reui/data-grid/data-grid-pagination.js +15 -9
- package/dist/components/reui/data-grid/data-grid-pagination.js.map +1 -1
- package/dist/components/reui/data-grid/data-grid-scroll-area.d.ts.map +1 -1
- package/dist/components/reui/data-grid/data-grid-scroll-area.js +3 -3
- package/dist/components/reui/data-grid/data-grid-scroll-area.js.map +1 -1
- package/dist/components/reui/data-grid/data-grid-table-dnd-rows.d.ts.map +1 -1
- package/dist/components/reui/data-grid/data-grid-table-dnd-rows.js +7 -5
- package/dist/components/reui/data-grid/data-grid-table-dnd-rows.js.map +1 -1
- package/dist/components/reui/data-grid/data-grid-table-dnd.js +3 -3
- 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 +17 -1
- package/dist/components/reui/data-grid/data-grid-table-virtual.d.ts.map +1 -1
- package/dist/components/reui/data-grid/data-grid-table-virtual.js +146 -50
- package/dist/components/reui/data-grid/data-grid-table-virtual.js.map +1 -1
- package/dist/components/reui/data-grid/data-grid-table.d.ts +23 -4
- package/dist/components/reui/data-grid/data-grid-table.d.ts.map +1 -1
- package/dist/components/reui/data-grid/data-grid-table.js +215 -68
- package/dist/components/reui/data-grid/data-grid-table.js.map +1 -1
- package/dist/components/reui/data-grid/data-grid.d.ts +288 -18
- package/dist/components/reui/data-grid/data-grid.d.ts.map +1 -1
- package/dist/components/reui/data-grid/data-grid.js +150 -15
- package/dist/components/reui/data-grid/data-grid.js.map +1 -1
- package/dist/components/reui/date-selector.d.ts +11 -12
- package/dist/components/reui/date-selector.d.ts.map +1 -1
- package/dist/components/reui/date-selector.js +1 -1
- package/dist/components/reui/event-calendar/event-calendar-agenda-view.js +1 -1
- package/dist/components/reui/event-calendar/event-calendar-event.js +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 +1 -1
- package/dist/components/reui/event-calendar/event-calendar.d.ts.map +1 -1
- package/dist/components/reui/event-calendar/event-calendar.js.map +1 -1
- package/dist/components/reui/filters/filters-advanced.d.ts +6 -7
- package/dist/components/reui/filters/filters-advanced.d.ts.map +1 -1
- package/dist/components/reui/filters/filters-advanced.js +1 -1
- package/dist/components/reui/filters/filters-advanced.js.map +1 -1
- package/dist/components/reui/filters/filters-builder.d.ts +5 -5
- package/dist/components/reui/filters/filters-builder.d.ts.map +1 -1
- package/dist/components/reui/filters/filters-builder.js +2 -2
- package/dist/components/reui/filters/filters-chip.d.ts +10 -11
- package/dist/components/reui/filters/filters-chip.d.ts.map +1 -1
- package/dist/components/reui/filters/filters-chip.js +1 -1
- package/dist/components/reui/filters/filters-chip.js.map +1 -1
- package/dist/components/reui/filters/filters-context.d.ts +30 -30
- package/dist/components/reui/filters/filters-context.d.ts.map +1 -1
- package/dist/components/reui/filters/filters-date.d.ts +13 -14
- package/dist/components/reui/filters/filters-date.d.ts.map +1 -1
- package/dist/components/reui/filters/filters-dnd.d.ts +15 -16
- package/dist/components/reui/filters/filters-dnd.d.ts.map +1 -1
- package/dist/components/reui/filters/filters-editors.d.ts +14 -14
- package/dist/components/reui/filters/filters-editors.d.ts.map +1 -1
- package/dist/components/reui/filters/filters-editors.js +2 -2
- package/dist/components/reui/filters/filters-i18n.d.ts +4 -5
- package/dist/components/reui/filters/filters-i18n.d.ts.map +1 -1
- package/dist/components/reui/filters/filters-lib.d.ts +34 -35
- package/dist/components/reui/filters/filters-lib.d.ts.map +1 -1
- package/dist/components/reui/filters/filters-operators.d.ts +13 -14
- package/dist/components/reui/filters/filters-operators.d.ts.map +1 -1
- package/dist/components/reui/filters/filters-query.d.ts +29 -30
- package/dist/components/reui/filters/filters-query.d.ts.map +1 -1
- package/dist/components/reui/filters/filters-types.d.ts +31 -32
- package/dist/components/reui/filters/filters-types.d.ts.map +1 -1
- package/dist/components/reui/filters/filters.d.ts +5 -5
- package/dist/components/reui/filters/filters.d.ts.map +1 -1
- package/dist/components/reui/filters/filters.js +1 -1
- package/dist/components/reui/filters/filters.js.map +1 -1
- package/dist/components/reui/frame.d.ts +1 -1
- package/dist/components/reui/frame.js +1 -1
- package/dist/components/reui/gantt/gantt-bar.js +1 -1
- package/dist/components/reui/gantt/gantt-nav.js +1 -1
- package/dist/components/reui/gantt/gantt-view.js +1 -1
- package/dist/components/reui/gantt/gantt.d.ts.map +1 -1
- package/dist/components/reui/gantt/gantt.js.map +1 -1
- package/dist/components/reui/icon-tile.d.ts +2 -2
- package/dist/components/reui/kanban.d.ts +11 -11
- package/dist/components/reui/kanban.d.ts.map +1 -1
- package/dist/components/reui/number-field.d.ts +3 -3
- package/dist/components/reui/number-field.js +1 -1
- package/dist/components/reui/phone-input.js +1 -1
- package/dist/components/reui/rating.d.ts +1 -1
- package/dist/components/reui/rating.js +1 -1
- package/dist/components/reui/scrollspy.d.ts +1 -2
- package/dist/components/reui/scrollspy.d.ts.map +1 -1
- package/dist/components/reui/sortable.d.ts +6 -6
- package/dist/components/reui/sortable.d.ts.map +1 -1
- package/dist/components/reui/tree.js +1 -1
- package/dist/components/ui/accordion.js +1 -1
- package/dist/components/ui/alert-dialog.js +1 -1
- package/dist/components/ui/alert.js +1 -1
- package/dist/components/ui/attachment.d.ts +1 -1
- package/dist/components/ui/attachment.js +1 -1
- 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/bubble.js +1 -1
- package/dist/components/ui/button-group.js +1 -1
- package/dist/components/ui/button.d.ts +2 -2
- 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/chart.d.ts +2 -2
- package/dist/components/ui/chart.d.ts.map +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.js +1 -1
- package/dist/components/ui/field.js +1 -1
- package/dist/components/ui/input-group.d.ts +1 -1
- package/dist/components/ui/input-group.js +1 -1
- package/dist/components/ui/input-otp.js +1 -1
- package/dist/components/ui/item.d.ts +2 -2
- package/dist/components/ui/item.js +1 -1
- package/dist/components/ui/marker.js +1 -1
- package/dist/components/ui/menubar.js +1 -1
- package/dist/components/ui/message-scroller.js +2 -2
- package/dist/components/ui/message-scroller.js.map +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/questionnaire.js +1 -1
- package/dist/components/ui/select.js +1 -1
- package/dist/components/ui/sheet.js +1 -1
- package/dist/components/ui/sidebar.d.ts +2 -2
- package/dist/components/ui/sidebar.js +1 -1
- package/dist/components/ui/spinner.js +1 -1
- package/dist/components/ui/tabs.js +1 -1
- package/dist/components/ui/toast.js +1 -1
- package/dist/components/ui/toggle.d.ts +2 -2
- package/dist/components/ui/toggle.js +1 -1
- package/dist/{copy-menu-C5GaT4Z-.js → copy-menu-TIKvPaAZ.js} +2 -2
- package/dist/{copy-menu-C5GaT4Z-.js.map → copy-menu-TIKvPaAZ.js.map} +1 -1
- package/dist/data-grid-i18n-TQR2PZlU.d.ts +54 -0
- package/dist/data-grid-i18n-TQR2PZlU.d.ts.map +1 -0
- package/dist/hooks/use-body-classes.d.ts +1 -2
- package/dist/hooks/use-body-classes.d.ts.map +1 -1
- package/dist/hooks/use-copy-to-clipboard.d.ts +1 -2
- package/dist/hooks/use-copy-to-clipboard.d.ts.map +1 -1
- package/dist/hooks/use-dismiss.d.ts +3 -4
- package/dist/hooks/use-dismiss.d.ts.map +1 -1
- package/dist/hooks/use-favicon.d.ts +1 -2
- package/dist/hooks/use-favicon.d.ts.map +1 -1
- package/dist/hooks/use-file-upload.d.ts +7 -8
- package/dist/hooks/use-file-upload.d.ts.map +1 -1
- package/dist/hooks/use-hover-capable.d.ts +1 -2
- package/dist/hooks/use-hover-capable.d.ts.map +1 -1
- package/dist/hooks/use-hover-gesture.d.ts +2 -3
- package/dist/hooks/use-hover-gesture.d.ts.map +1 -1
- package/dist/hooks/use-hydrated.d.ts +1 -2
- package/dist/hooks/use-hydrated.d.ts.map +1 -1
- package/dist/hooks/use-intersection-observer.d.ts +1 -2
- package/dist/hooks/use-intersection-observer.d.ts.map +1 -1
- package/dist/hooks/use-is-mac.d.ts +1 -2
- package/dist/hooks/use-is-mac.d.ts.map +1 -1
- package/dist/hooks/use-media-query.d.ts +1 -2
- package/dist/hooks/use-media-query.d.ts.map +1 -1
- package/dist/hooks/use-meta-color.d.ts +1 -2
- package/dist/hooks/use-meta-color.d.ts.map +1 -1
- package/dist/hooks/use-mobile.d.ts +1 -2
- package/dist/hooks/use-mobile.d.ts.map +1 -1
- package/dist/hooks/use-mutation-observer.d.ts +1 -2
- package/dist/hooks/use-mutation-observer.d.ts.map +1 -1
- package/dist/hooks/use-on-open.d.ts +1 -2
- package/dist/hooks/use-on-open.d.ts.map +1 -1
- package/dist/hooks/use-row-cursor.d.ts +1 -2
- package/dist/hooks/use-row-cursor.d.ts.map +1 -1
- package/dist/hooks/use-scroll-position.d.ts +1 -2
- package/dist/hooks/use-scroll-position.d.ts.map +1 -1
- package/dist/hooks/use-slider-input.d.ts +1 -2
- package/dist/hooks/use-slider-input.d.ts.map +1 -1
- package/dist/hooks/use-slider.d.ts +3 -4
- package/dist/hooks/use-slider.d.ts.map +1 -1
- package/dist/hooks/use-tap-gesture.d.ts +3 -4
- package/dist/hooks/use-tap-gesture.d.ts.map +1 -1
- package/dist/hooks/use-touch-capable.d.ts +1 -2
- package/dist/hooks/use-touch-capable.d.ts.map +1 -1
- package/dist/hooks/use-viewport.d.ts +1 -2
- package/dist/hooks/use-viewport.d.ts.map +1 -1
- package/dist/lib/ease.d.ts +10 -11
- package/dist/lib/ease.d.ts.map +1 -1
- package/dist/lib/favicon.d.ts +1 -2
- package/dist/lib/favicon.d.ts.map +1 -1
- package/dist/lib/text-shimmer.d.ts +3 -4
- package/dist/lib/text-shimmer.d.ts.map +1 -1
- package/dist/lib/tick-sound.d.ts +1 -2
- package/dist/lib/tick-sound.d.ts.map +1 -1
- package/dist/lib/touch.d.ts +6 -7
- package/dist/lib/touch.d.ts.map +1 -1
- package/dist/use-active-option-CmX6Z-4S.js +86 -0
- package/dist/use-active-option-CmX6Z-4S.js.map +1 -0
- package/package.json +6 -6
- package/dist/context-BizvUNZv.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkbox.d.ts","names":[],"sources":["../../../src/components/motion/checkbox.tsx"],"mappings":";
|
|
1
|
+
{"version":3,"file":"checkbox.d.ts","names":[],"sources":["../../../src/components/motion/checkbox.tsx"],"mappings":";iBAWiB;EACf;EACA,kBAAkB;EAClB;EACA;EACA;EACA;EACA;EACA;;EAEA;;wBAGc,WACd,SACA,iBACA,UACA,eACA,OACA,WACA,IAAI,sBACU,+BACM,mBACnB,gCAAa,IAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UseInViewOptions } from "motion/react";
|
|
2
2
|
//#region src/components/motion/chromatic-text-reveal.d.ts
|
|
3
|
-
type ChromaticTextRevealProps = {
|
|
3
|
+
export type ChromaticTextRevealProps = {
|
|
4
4
|
/** Sentence fragment that remains fixed while the final word changes. */
|
|
5
5
|
prefix: string;
|
|
6
6
|
/** Words revealed one after another after the fixed prefix. */
|
|
@@ -25,7 +25,6 @@ type ChromaticTextRevealProps = {
|
|
|
25
25
|
inViewMargin?: UseInViewOptions["margin"];
|
|
26
26
|
className?: string;
|
|
27
27
|
};
|
|
28
|
-
declare function ChromaticTextReveal({ prefix, words, colors, foregroundColor, duration, delay, pauseDuration, loop, startOnView, once, inViewMargin, className }: ChromaticTextRevealProps): import("react").JSX.Element;
|
|
28
|
+
export declare function ChromaticTextReveal({ prefix, words, colors, foregroundColor, duration, delay, pauseDuration, loop, startOnView, once, inViewMargin, className }: ChromaticTextRevealProps): import("react").JSX.Element;
|
|
29
29
|
//#endregion
|
|
30
|
-
export { ChromaticTextReveal, ChromaticTextRevealProps };
|
|
31
30
|
//# sourceMappingURL=chromatic-text-reveal.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chromatic-text-reveal.d.ts","names":[],"sources":["../../../src/components/motion/chromatic-text-reveal.tsx"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"chromatic-text-reveal.d.ts","names":[],"sources":["../../../src/components/motion/chromatic-text-reveal.tsx"],"mappings":";;YAoBY;;EAEV;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA,eAAe;EACf;;wBAkBc,sBACd,QACA,OACA,QACA,iBACA,UACA,OACA,eACA,MACA,aACA,MACA,cACA,aACC,2CAAwB,IAAA"}
|
|
@@ -2,7 +2,7 @@ import { ReactNode } from "react";
|
|
|
2
2
|
//#region src/components/motion/combobox/content.d.ts
|
|
3
3
|
type Side = "top" | "bottom";
|
|
4
4
|
type Align = "start" | "center" | "end";
|
|
5
|
-
interface ComboboxContentProps {
|
|
5
|
+
export interface ComboboxContentProps {
|
|
6
6
|
children: ReactNode;
|
|
7
7
|
side?: Side;
|
|
8
8
|
align?: Align;
|
|
@@ -10,7 +10,6 @@ interface ComboboxContentProps {
|
|
|
10
10
|
avoidCollisions?: boolean;
|
|
11
11
|
className?: string;
|
|
12
12
|
}
|
|
13
|
-
declare function ComboboxContent({ children, side, align, sideOffset, avoidCollisions, className }: ComboboxContentProps): import("react").ReactPortal | null;
|
|
13
|
+
export declare function ComboboxContent({ children, side, align, sideOffset, avoidCollisions, className }: ComboboxContentProps): import("react").ReactPortal | null;
|
|
14
14
|
//#endregion
|
|
15
|
-
export { ComboboxContent, ComboboxContentProps };
|
|
16
15
|
//# sourceMappingURL=content.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"content.d.ts","names":[],"sources":["../../../../src/components/motion/combobox/content.tsx"],"mappings":";;KAiBK;KACA;
|
|
1
|
+
{"version":3,"file":"content.d.ts","names":[],"sources":["../../../../src/components/motion/combobox/content.tsx"],"mappings":";;KAiBK;KACA;iBAWY;EACf,UAAU;EACV,OAAO;EACP,QAAQ;EACR;EACA;EACA;;wBAGc,kBACd,UACA,MACA,OACA,YACA,iBACA,aACC,uCAAoB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { t as usePopoverPortalPosition } from "../../../popover-position-BUqYCq8X.js";
|
|
3
|
-
import {
|
|
3
|
+
import { useComboboxContext } from "./context.js";
|
|
4
4
|
import { useEffect, useLayoutEffect, useRef, useState } from "react";
|
|
5
5
|
import { cn } from "@kumix/utils";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MutableRefObject, ReactNode, Ref } from "react";
|
|
2
2
|
//#region src/components/motion/combobox/context.d.ts
|
|
3
|
-
type RegisteredItem = {
|
|
3
|
+
export type RegisteredItem = {
|
|
4
4
|
value: string;
|
|
5
5
|
label: string;
|
|
6
6
|
keywords: string[];
|
|
@@ -9,8 +9,8 @@ type RegisteredItem = {
|
|
|
9
9
|
id: string;
|
|
10
10
|
ref: MutableRefObject<HTMLButtonElement | null>;
|
|
11
11
|
};
|
|
12
|
-
type ComboboxFilter = (value: string, query: string, keywords: string[]) => boolean;
|
|
13
|
-
type ComboboxContextValue = {
|
|
12
|
+
export type ComboboxFilter = (value: string, query: string, keywords: string[]) => boolean;
|
|
13
|
+
export type ComboboxContextValue = {
|
|
14
14
|
open: boolean;
|
|
15
15
|
setOpen: (open: boolean, restoreFocus?: boolean) => void;
|
|
16
16
|
value: string | undefined;
|
|
@@ -44,11 +44,11 @@ type ComboboxContextValue = {
|
|
|
44
44
|
inputRef: MutableRefObject<HTMLInputElement | null>;
|
|
45
45
|
activeLayoutId: string;
|
|
46
46
|
};
|
|
47
|
-
declare const ComboboxContext: import("react").Context<ComboboxContextValue | null>;
|
|
48
|
-
declare const ComboboxGroupContext: import("react").Context<string | null>;
|
|
49
|
-
declare function useComboboxContext(component: string): ComboboxContextValue;
|
|
50
|
-
declare function mergeRefs<T>(...refs: Array<Ref<T> | undefined>): (node: T | null) => void;
|
|
51
|
-
interface ComboboxProps {
|
|
47
|
+
export declare const ComboboxContext: import("react").Context<ComboboxContextValue | null>;
|
|
48
|
+
export declare const ComboboxGroupContext: import("react").Context<string | null>;
|
|
49
|
+
export declare function useComboboxContext(component: string): ComboboxContextValue;
|
|
50
|
+
export declare function mergeRefs<T>(...refs: Array<Ref<T> | undefined>): (node: T | null) => void;
|
|
51
|
+
export interface ComboboxProps {
|
|
52
52
|
children: ReactNode;
|
|
53
53
|
value?: string;
|
|
54
54
|
defaultValue?: string;
|
|
@@ -63,7 +63,6 @@ interface ComboboxProps {
|
|
|
63
63
|
disabled?: boolean;
|
|
64
64
|
className?: string;
|
|
65
65
|
}
|
|
66
|
-
declare function Combobox({ children, value: controlledValue, defaultValue, onValueChange, open: controlledOpen, defaultOpen, onOpenChange, query: controlledQuery, defaultQuery, onQueryChange, filter, disabled, className }: ComboboxProps): import("react").JSX.Element;
|
|
66
|
+
export declare function Combobox({ children, value: controlledValue, defaultValue, onValueChange, open: controlledOpen, defaultOpen, onOpenChange, query: controlledQuery, defaultQuery, onQueryChange, filter, disabled, className }: ComboboxProps): import("react").JSX.Element;
|
|
67
67
|
//#endregion
|
|
68
|
-
export { Combobox, ComboboxContext, ComboboxContextValue, ComboboxFilter, ComboboxGroupContext, ComboboxProps, RegisteredItem, mergeRefs, useComboboxContext };
|
|
69
68
|
//# sourceMappingURL=context.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.ts","names":[],"sources":["../../../../src/components/motion/combobox/context.tsx"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"context.d.ts","names":[],"sources":["../../../../src/components/motion/combobox/context.tsx"],"mappings":";;YAoBY;EACV;EACA;EACA;EACA;EACA;EACA;EACA,KAAK,iBAAiB;;YAGZ,kBAAkB,eAAe,eAAe;YAehD;EACV;EACA,UAAU,eAAe;EACzB;EACA,SAAS;EACT;EACA,WAAW;;EAEX;;;;;;EAMA,iBAAiB;EACjB,aAAa;EACb;EACA,eAAe,MAAM;EACrB,iBAAiB;EACjB,WAAW;EACX,YAAY;EACZ,kBAAkB;EAClB;EACA;EACA;EACA;EACA;EACA;EACA;EACA,YAAY,iBAAiB;EAC7B,YAAY,iBAAiB;EAC7B,UAAU,iBAAiB;EAC3B;;qBAGW,iCAAe,QAAA;qBACf,sCAAoB;wBAEjB,mBAAmB,oBAAiB;wBAMpC,UAAU,MAAM,MAAM,MAAM,IAAI,mBACtC,MAAM;iBAQC;EACf,UAAU;EACV;EACA;EACA,iBAAiB;EACjB;EACA;EACA,gBAAgB;EAChB;EACA;EACA,iBAAiB;EACjB,SAAS;EACT;EACA;;wBAGc,WACd,UACA,OAAO,iBACP,cACA,eACA,MAAM,gBACN,aACA,cACA,OAAO,iBACP,cACA,eACA,QACA,UACA,aACC,gCAAa,IAAA"}
|
|
@@ -1,3 +1,218 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { t as useActiveOption } from "../../../use-active-option-CmX6Z-4S.js";
|
|
3
|
+
import { createContext, useCallback, useContext, useEffect, useId, useMemo, useRef, useState } from "react";
|
|
4
|
+
import { cn } from "@kumix/utils";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
import { useReducedMotion } from "motion/react";
|
|
7
|
+
//#region src/components/motion/combobox/context.tsx
|
|
8
|
+
const defaultFilter = (value, query, keywords) => {
|
|
9
|
+
const needle = query.trim().toLocaleLowerCase();
|
|
10
|
+
if (!needle) return true;
|
|
11
|
+
const haystack = [value, ...keywords].join(" ").toLocaleLowerCase();
|
|
12
|
+
let queryIndex = 0;
|
|
13
|
+
for (const character of haystack) {
|
|
14
|
+
if (character === needle[queryIndex]) queryIndex += 1;
|
|
15
|
+
if (queryIndex === needle.length) return true;
|
|
16
|
+
}
|
|
17
|
+
return false;
|
|
18
|
+
};
|
|
19
|
+
const ComboboxContext = createContext(null);
|
|
20
|
+
const ComboboxGroupContext = createContext(null);
|
|
21
|
+
function useComboboxContext(component) {
|
|
22
|
+
const context = useContext(ComboboxContext);
|
|
23
|
+
if (!context) throw new Error(`${component} must be used within <Combobox>`);
|
|
24
|
+
return context;
|
|
25
|
+
}
|
|
26
|
+
function mergeRefs(...refs) {
|
|
27
|
+
return (node) => {
|
|
28
|
+
for (const ref of refs) if (typeof ref === "function") ref(node);
|
|
29
|
+
else if (ref && typeof ref === "object") ref.current = node;
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
function Combobox({ children, value: controlledValue, defaultValue, onValueChange, open: controlledOpen, defaultOpen = false, onOpenChange, query: controlledQuery, defaultQuery = "", onQueryChange, filter = defaultFilter, disabled = false, className }) {
|
|
33
|
+
const reduce = useReducedMotion() ?? false;
|
|
34
|
+
const baseId = useId();
|
|
35
|
+
const rootRef = useRef(null);
|
|
36
|
+
const triggerRef = useRef(null);
|
|
37
|
+
const contentRef = useRef(null);
|
|
38
|
+
const inputRef = useRef(null);
|
|
39
|
+
const [internalValue, setInternalValue] = useState(defaultValue);
|
|
40
|
+
const [internalOpen, setInternalOpen] = useState(defaultOpen);
|
|
41
|
+
const [internalQuery, setInternalQuery] = useState(defaultQuery);
|
|
42
|
+
const [items, setItems] = useState(/* @__PURE__ */ new Map());
|
|
43
|
+
const valueControlled = controlledValue !== void 0;
|
|
44
|
+
const openControlled = controlledOpen !== void 0;
|
|
45
|
+
const queryControlled = controlledQuery !== void 0;
|
|
46
|
+
const value = valueControlled ? controlledValue : internalValue;
|
|
47
|
+
const open = openControlled ? controlledOpen : internalOpen;
|
|
48
|
+
const query = queryControlled ? controlledQuery : internalQuery;
|
|
49
|
+
const updateQuery = useCallback((next) => {
|
|
50
|
+
if (!queryControlled) setInternalQuery(next);
|
|
51
|
+
onQueryChange?.(next);
|
|
52
|
+
}, [onQueryChange, queryControlled]);
|
|
53
|
+
const updateOpen = useCallback((next, restoreFocus = false) => {
|
|
54
|
+
if (disabled && next) return;
|
|
55
|
+
if (!openControlled) setInternalOpen(next);
|
|
56
|
+
onOpenChange?.(next);
|
|
57
|
+
if (!next) updateQuery("");
|
|
58
|
+
if (restoreFocus) requestAnimationFrame(() => inputRef.current?.focus({ preventScroll: true }));
|
|
59
|
+
}, [
|
|
60
|
+
disabled,
|
|
61
|
+
onOpenChange,
|
|
62
|
+
openControlled,
|
|
63
|
+
updateQuery
|
|
64
|
+
]);
|
|
65
|
+
const registerItem = useCallback((item) => {
|
|
66
|
+
setItems((current) => {
|
|
67
|
+
const existing = current.get(item.value);
|
|
68
|
+
if (existing?.label === item.label && existing.disabled === item.disabled && existing.id === item.id && existing.ref === item.ref && existing.groupId === item.groupId && existing.keywords.join("\0") === item.keywords.join("\0")) return current;
|
|
69
|
+
const next = new Map(current);
|
|
70
|
+
next.set(item.value, item);
|
|
71
|
+
return next;
|
|
72
|
+
});
|
|
73
|
+
}, []);
|
|
74
|
+
const unregisterItem = useCallback((itemValue) => {
|
|
75
|
+
setItems((current) => {
|
|
76
|
+
if (!current.has(itemValue)) return current;
|
|
77
|
+
const next = new Map(current);
|
|
78
|
+
next.delete(itemValue);
|
|
79
|
+
return next;
|
|
80
|
+
});
|
|
81
|
+
}, []);
|
|
82
|
+
const [openQuery, setOpenQuery] = useState(query);
|
|
83
|
+
if (open && openQuery !== query) setOpenQuery(query);
|
|
84
|
+
const listQuery = open ? query : openQuery;
|
|
85
|
+
const visibleItems = useMemo(() => Array.from(items.values()).filter((item) => filter(item.value, listQuery, [item.label, ...item.keywords])), [
|
|
86
|
+
filter,
|
|
87
|
+
items,
|
|
88
|
+
listQuery
|
|
89
|
+
]);
|
|
90
|
+
const enabledVisibleItems = useMemo(() => visibleItems.filter((item) => !item.disabled), [visibleItems]);
|
|
91
|
+
const visibleValues = useMemo(() => new Set(visibleItems.map((item) => item.value)), [visibleItems]);
|
|
92
|
+
const visibleGroupIds = useMemo(() => new Set(visibleItems.map((item) => item.groupId)), [visibleItems]);
|
|
93
|
+
const { activeValue, setActiveValue, moveActive } = useActiveOption({
|
|
94
|
+
open,
|
|
95
|
+
query: listQuery,
|
|
96
|
+
value,
|
|
97
|
+
enabledItems: enabledVisibleItems
|
|
98
|
+
});
|
|
99
|
+
const select = useCallback((next) => {
|
|
100
|
+
if (items.get(next)?.disabled) return;
|
|
101
|
+
if (!valueControlled) setInternalValue(next);
|
|
102
|
+
onValueChange?.(next);
|
|
103
|
+
updateOpen(false, true);
|
|
104
|
+
}, [
|
|
105
|
+
items,
|
|
106
|
+
onValueChange,
|
|
107
|
+
updateOpen,
|
|
108
|
+
valueControlled
|
|
109
|
+
]);
|
|
110
|
+
const selectActive = useCallback(() => {
|
|
111
|
+
if (activeValue) select(activeValue);
|
|
112
|
+
}, [activeValue, select]);
|
|
113
|
+
useEffect(() => {
|
|
114
|
+
if (!open) return;
|
|
115
|
+
const frame = requestAnimationFrame(() => inputRef.current?.focus({ preventScroll: true }));
|
|
116
|
+
return () => cancelAnimationFrame(frame);
|
|
117
|
+
}, [open]);
|
|
118
|
+
useEffect(() => {
|
|
119
|
+
if (!activeValue || !open) return;
|
|
120
|
+
const item = items.get(activeValue)?.ref.current;
|
|
121
|
+
const list = item?.closest("[role='listbox']");
|
|
122
|
+
if (!item || !list) return;
|
|
123
|
+
const itemRect = item.getBoundingClientRect();
|
|
124
|
+
const listRect = list.getBoundingClientRect();
|
|
125
|
+
if (itemRect.top < listRect.top) list.scrollTop -= listRect.top - itemRect.top;
|
|
126
|
+
else if (itemRect.bottom > listRect.bottom) list.scrollTop += itemRect.bottom - listRect.bottom;
|
|
127
|
+
}, [
|
|
128
|
+
activeValue,
|
|
129
|
+
items,
|
|
130
|
+
open
|
|
131
|
+
]);
|
|
132
|
+
useEffect(() => {
|
|
133
|
+
if (!open) return;
|
|
134
|
+
const isInside = (target) => rootRef.current?.contains(target) || contentRef.current?.contains(target);
|
|
135
|
+
const onPointerDown = (event) => {
|
|
136
|
+
if (!isInside(event.target)) updateOpen(false);
|
|
137
|
+
};
|
|
138
|
+
const onFocusIn = (event) => {
|
|
139
|
+
if (!isInside(event.target)) updateOpen(false);
|
|
140
|
+
};
|
|
141
|
+
const onKeyDown = (event) => {
|
|
142
|
+
if (event.key !== "Escape") return;
|
|
143
|
+
event.preventDefault();
|
|
144
|
+
updateOpen(false, true);
|
|
145
|
+
};
|
|
146
|
+
window.addEventListener("pointerdown", onPointerDown);
|
|
147
|
+
window.addEventListener("focusin", onFocusIn);
|
|
148
|
+
window.addEventListener("keydown", onKeyDown);
|
|
149
|
+
return () => {
|
|
150
|
+
window.removeEventListener("pointerdown", onPointerDown);
|
|
151
|
+
window.removeEventListener("focusin", onFocusIn);
|
|
152
|
+
window.removeEventListener("keydown", onKeyDown);
|
|
153
|
+
};
|
|
154
|
+
}, [open, updateOpen]);
|
|
155
|
+
const activeItem = activeValue ? items.get(activeValue) : void 0;
|
|
156
|
+
const context = useMemo(() => ({
|
|
157
|
+
open,
|
|
158
|
+
setOpen: updateOpen,
|
|
159
|
+
value,
|
|
160
|
+
select,
|
|
161
|
+
query,
|
|
162
|
+
setQuery: updateQuery,
|
|
163
|
+
activeValue,
|
|
164
|
+
setActiveValue,
|
|
165
|
+
moveActive,
|
|
166
|
+
selectActive,
|
|
167
|
+
registerItem,
|
|
168
|
+
unregisterItem,
|
|
169
|
+
labelFor: (itemValue) => itemValue === void 0 ? void 0 : items.get(itemValue)?.label,
|
|
170
|
+
isVisible: (itemValue) => !listQuery.trim() || visibleValues.has(itemValue),
|
|
171
|
+
hasVisibleItems: (groupId) => visibleGroupIds.has(groupId),
|
|
172
|
+
visibleCount: visibleItems.length,
|
|
173
|
+
activeItemId: activeItem?.id,
|
|
174
|
+
triggerId: `${baseId}-trigger`,
|
|
175
|
+
listId: `${baseId}-list`,
|
|
176
|
+
inputId: `${baseId}-input`,
|
|
177
|
+
disabled,
|
|
178
|
+
reduce,
|
|
179
|
+
triggerRef,
|
|
180
|
+
contentRef,
|
|
181
|
+
inputRef,
|
|
182
|
+
activeLayoutId: `${baseId}-active`
|
|
183
|
+
}), [
|
|
184
|
+
activeItem?.id,
|
|
185
|
+
activeValue,
|
|
186
|
+
baseId,
|
|
187
|
+
disabled,
|
|
188
|
+
items,
|
|
189
|
+
listQuery,
|
|
190
|
+
moveActive,
|
|
191
|
+
open,
|
|
192
|
+
query,
|
|
193
|
+
reduce,
|
|
194
|
+
registerItem,
|
|
195
|
+
select,
|
|
196
|
+
selectActive,
|
|
197
|
+
setActiveValue,
|
|
198
|
+
unregisterItem,
|
|
199
|
+
updateOpen,
|
|
200
|
+
updateQuery,
|
|
201
|
+
value,
|
|
202
|
+
visibleItems.length,
|
|
203
|
+
visibleGroupIds,
|
|
204
|
+
visibleValues
|
|
205
|
+
]);
|
|
206
|
+
return /* @__PURE__ */ jsx(ComboboxContext.Provider, {
|
|
207
|
+
value: context,
|
|
208
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
209
|
+
ref: rootRef,
|
|
210
|
+
className: cn("relative w-full", className),
|
|
211
|
+
children
|
|
212
|
+
})
|
|
213
|
+
});
|
|
214
|
+
}
|
|
215
|
+
//#endregion
|
|
3
216
|
export { Combobox, ComboboxContext, ComboboxGroupContext, mergeRefs, useComboboxContext };
|
|
217
|
+
|
|
218
|
+
//# sourceMappingURL=context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.js","names":[],"sources":["../../../../src/components/motion/combobox/context.tsx"],"sourcesContent":["\"use client\";\n\nimport {\n createContext,\n type MutableRefObject,\n type ReactNode,\n type Ref,\n useCallback,\n useContext,\n useEffect,\n useId,\n useMemo,\n useRef,\n useState,\n} from \"react\";\nimport { useReducedMotion } from \"motion/react\";\n\nimport { cn } from \"@kumix/utils\";\nimport { useActiveOption } from \"./use-active-option\";\n\nexport type RegisteredItem = {\n value: string;\n label: string;\n keywords: string[];\n disabled: boolean;\n groupId: string | null;\n id: string;\n ref: MutableRefObject<HTMLButtonElement | null>;\n};\n\nexport type ComboboxFilter = (value: string, query: string, keywords: string[]) => boolean;\n\nconst defaultFilter: ComboboxFilter = (value, query, keywords) => {\n const needle = query.trim().toLocaleLowerCase();\n if (!needle) return true;\n\n const haystack = [value, ...keywords].join(\" \").toLocaleLowerCase();\n let queryIndex = 0;\n for (const character of haystack) {\n if (character === needle[queryIndex]) queryIndex += 1;\n if (queryIndex === needle.length) return true;\n }\n return false;\n};\n\nexport type ComboboxContextValue = {\n open: boolean;\n setOpen: (open: boolean, restoreFocus?: boolean) => void;\n value: string | undefined;\n select: (value: string) => void;\n query: string;\n setQuery: (query: string) => void;\n /** The option the list is currently pointing at, resolved during render. */\n activeValue: string | null;\n /**\n * Records where the pointer or keyboard moved to. The recorded value is\n * dropped when the query or the result set changes, so it does not always\n * survive to the next `activeValue`.\n */\n setActiveValue: (value: string | null) => void;\n moveActive: (direction: 1 | -1 | \"first\" | \"last\") => void;\n selectActive: () => void;\n registerItem: (item: RegisteredItem) => void;\n unregisterItem: (value: string) => void;\n labelFor: (value: string | undefined) => string | undefined;\n isVisible: (value: string) => boolean;\n hasVisibleItems: (groupId: string) => boolean;\n visibleCount: number;\n activeItemId: string | undefined;\n triggerId: string;\n listId: string;\n inputId: string;\n disabled: boolean;\n reduce: boolean;\n triggerRef: MutableRefObject<HTMLDivElement | null>;\n contentRef: MutableRefObject<HTMLDivElement | null>;\n inputRef: MutableRefObject<HTMLInputElement | null>;\n activeLayoutId: string;\n};\n\nexport const ComboboxContext = createContext<ComboboxContextValue | null>(null);\nexport const ComboboxGroupContext = createContext<string | null>(null);\n\nexport function useComboboxContext(component: string) {\n const context = useContext(ComboboxContext);\n if (!context) throw new Error(`${component} must be used within <Combobox>`);\n return context;\n}\n\nexport function mergeRefs<T>(...refs: Array<Ref<T> | undefined>) {\n return (node: T | null) => {\n for (const ref of refs) {\n if (typeof ref === \"function\") ref(node);\n else if (ref && typeof ref === \"object\") (ref as MutableRefObject<T | null>).current = node;\n }\n };\n}\n\nexport interface ComboboxProps {\n children: ReactNode;\n value?: string;\n defaultValue?: string;\n onValueChange?: (value: string) => void;\n open?: boolean;\n defaultOpen?: boolean;\n onOpenChange?: (open: boolean) => void;\n query?: string;\n defaultQuery?: string;\n onQueryChange?: (query: string) => void;\n filter?: ComboboxFilter;\n disabled?: boolean;\n className?: string;\n}\n\nexport function Combobox({\n children,\n value: controlledValue,\n defaultValue,\n onValueChange,\n open: controlledOpen,\n defaultOpen = false,\n onOpenChange,\n query: controlledQuery,\n defaultQuery = \"\",\n onQueryChange,\n filter = defaultFilter,\n disabled = false,\n className,\n}: ComboboxProps) {\n const reduce = useReducedMotion() ?? false;\n const baseId = useId();\n const rootRef = useRef<HTMLDivElement>(null);\n const triggerRef = useRef<HTMLDivElement>(null);\n const contentRef = useRef<HTMLDivElement>(null);\n const inputRef = useRef<HTMLInputElement>(null);\n const [internalValue, setInternalValue] = useState(defaultValue);\n const [internalOpen, setInternalOpen] = useState(defaultOpen);\n const [internalQuery, setInternalQuery] = useState(defaultQuery);\n const [items, setItems] = useState<Map<string, RegisteredItem>>(new Map());\n\n const valueControlled = controlledValue !== undefined;\n const openControlled = controlledOpen !== undefined;\n const queryControlled = controlledQuery !== undefined;\n const value = valueControlled ? controlledValue : internalValue;\n const open = openControlled ? controlledOpen : internalOpen;\n const query = queryControlled ? controlledQuery : internalQuery;\n\n const updateQuery = useCallback(\n (next: string) => {\n if (!queryControlled) setInternalQuery(next);\n onQueryChange?.(next);\n },\n [onQueryChange, queryControlled],\n );\n\n const updateOpen = useCallback(\n (next: boolean, restoreFocus = false) => {\n if (disabled && next) return;\n if (!openControlled) setInternalOpen(next);\n onOpenChange?.(next);\n if (!next) updateQuery(\"\");\n if (restoreFocus)\n requestAnimationFrame(() => inputRef.current?.focus({ preventScroll: true }));\n },\n [disabled, onOpenChange, openControlled, updateQuery],\n );\n\n const registerItem = useCallback((item: RegisteredItem) => {\n setItems((current) => {\n const existing = current.get(item.value);\n if (\n existing?.label === item.label &&\n existing.disabled === item.disabled &&\n existing.id === item.id &&\n existing.ref === item.ref &&\n existing.groupId === item.groupId &&\n existing.keywords.join(\"\\u0000\") === item.keywords.join(\"\\u0000\")\n ) {\n return current;\n }\n const next = new Map(current);\n next.set(item.value, item);\n return next;\n });\n }, []);\n\n const unregisterItem = useCallback((itemValue: string) => {\n setItems((current) => {\n if (!current.has(itemValue)) return current;\n const next = new Map(current);\n next.delete(itemValue);\n return next;\n });\n }, []);\n\n // The query the list filters by. Closing clears `query`, but the panel is\n // still on screen for its exit, so it keeps filtering by the query it was\n // open with rather than repopulating mid-collapse. The input already reads\n // `query` only while open, so nothing the user can see reads the other one.\n const [openQuery, setOpenQuery] = useState(query);\n if (open && openQuery !== query) setOpenQuery(query);\n const listQuery = open ? query : openQuery;\n\n const visibleItems = useMemo(\n () =>\n Array.from(items.values()).filter((item) =>\n filter(item.value, listQuery, [item.label, ...item.keywords]),\n ),\n [filter, items, listQuery],\n );\n const enabledVisibleItems = useMemo(\n () => visibleItems.filter((item) => !item.disabled),\n [visibleItems],\n );\n const visibleValues = useMemo(\n () => new Set(visibleItems.map((item) => item.value)),\n [visibleItems],\n );\n const visibleGroupIds = useMemo(\n () => new Set(visibleItems.map((item) => item.groupId)),\n [visibleItems],\n );\n\n const { activeValue, setActiveValue, moveActive } = useActiveOption({\n open,\n query: listQuery,\n value,\n enabledItems: enabledVisibleItems,\n });\n\n const select = useCallback(\n (next: string) => {\n if (items.get(next)?.disabled) return;\n if (!valueControlled) setInternalValue(next);\n onValueChange?.(next);\n updateOpen(false, true);\n },\n [items, onValueChange, updateOpen, valueControlled],\n );\n\n const selectActive = useCallback(() => {\n if (activeValue) select(activeValue);\n }, [activeValue, select]);\n\n useEffect(() => {\n if (!open) return;\n const frame = requestAnimationFrame(() => inputRef.current?.focus({ preventScroll: true }));\n return () => cancelAnimationFrame(frame);\n }, [open]);\n\n useEffect(() => {\n if (!activeValue || !open) return;\n const item = items.get(activeValue)?.ref.current;\n const list = item?.closest<HTMLElement>(\"[role='listbox']\");\n if (!item || !list) return;\n const itemRect = item.getBoundingClientRect();\n const listRect = list.getBoundingClientRect();\n if (itemRect.top < listRect.top) list.scrollTop -= listRect.top - itemRect.top;\n else if (itemRect.bottom > listRect.bottom) list.scrollTop += itemRect.bottom - listRect.bottom;\n }, [activeValue, items, open]);\n\n useEffect(() => {\n if (!open) return;\n const isInside = (target: Node) =>\n rootRef.current?.contains(target) || contentRef.current?.contains(target);\n const onPointerDown = (event: PointerEvent) => {\n if (!isInside(event.target as Node)) updateOpen(false);\n };\n const onFocusIn = (event: FocusEvent) => {\n if (!isInside(event.target as Node)) updateOpen(false);\n };\n const onKeyDown = (event: KeyboardEvent) => {\n if (event.key !== \"Escape\") return;\n event.preventDefault();\n updateOpen(false, true);\n };\n window.addEventListener(\"pointerdown\", onPointerDown);\n window.addEventListener(\"focusin\", onFocusIn);\n window.addEventListener(\"keydown\", onKeyDown);\n return () => {\n window.removeEventListener(\"pointerdown\", onPointerDown);\n window.removeEventListener(\"focusin\", onFocusIn);\n window.removeEventListener(\"keydown\", onKeyDown);\n };\n }, [open, updateOpen]);\n\n const activeItem = activeValue ? items.get(activeValue) : undefined;\n const context = useMemo<ComboboxContextValue>(\n () => ({\n open,\n setOpen: updateOpen,\n value,\n select,\n query,\n setQuery: updateQuery,\n activeValue,\n setActiveValue,\n moveActive,\n selectActive,\n registerItem,\n unregisterItem,\n labelFor: (itemValue) => (itemValue === undefined ? undefined : items.get(itemValue)?.label),\n isVisible: (itemValue) => !listQuery.trim() || visibleValues.has(itemValue),\n hasVisibleItems: (groupId) => visibleGroupIds.has(groupId),\n visibleCount: visibleItems.length,\n activeItemId: activeItem?.id,\n triggerId: `${baseId}-trigger`,\n listId: `${baseId}-list`,\n inputId: `${baseId}-input`,\n disabled,\n reduce,\n triggerRef,\n contentRef,\n inputRef,\n activeLayoutId: `${baseId}-active`,\n }),\n [\n activeItem?.id,\n activeValue,\n baseId,\n disabled,\n items,\n listQuery,\n moveActive,\n open,\n query,\n reduce,\n registerItem,\n select,\n selectActive,\n setActiveValue,\n unregisterItem,\n updateOpen,\n updateQuery,\n value,\n visibleItems.length,\n visibleGroupIds,\n visibleValues,\n ],\n );\n\n return (\n <ComboboxContext.Provider value={context}>\n <div ref={rootRef} className={cn(\"relative w-full\", className)}>\n {children}\n </div>\n </ComboboxContext.Provider>\n );\n}\n"],"mappings":"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"}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { ReactNode } from "react";
|
|
2
2
|
//#region src/components/motion/combobox/list.d.ts
|
|
3
|
-
interface ComboboxListProps {
|
|
3
|
+
export interface ComboboxListProps {
|
|
4
4
|
children: ReactNode;
|
|
5
5
|
ariaLabel?: string;
|
|
6
6
|
className?: string;
|
|
7
7
|
}
|
|
8
|
-
declare function ComboboxList({ children, ariaLabel, className }: ComboboxListProps): import("react").JSX.Element;
|
|
9
|
-
interface ComboboxGroupProps {
|
|
8
|
+
export declare function ComboboxList({ children, ariaLabel, className }: ComboboxListProps): import("react").JSX.Element;
|
|
9
|
+
export interface ComboboxGroupProps {
|
|
10
10
|
children: ReactNode;
|
|
11
11
|
className?: string;
|
|
12
12
|
}
|
|
13
|
-
declare function ComboboxGroup({ children, className }: ComboboxGroupProps): import("react").JSX.Element;
|
|
14
|
-
interface ComboboxLabelProps {
|
|
13
|
+
export declare function ComboboxGroup({ children, className }: ComboboxGroupProps): import("react").JSX.Element;
|
|
14
|
+
export interface ComboboxLabelProps {
|
|
15
15
|
children: ReactNode;
|
|
16
16
|
className?: string;
|
|
17
17
|
}
|
|
18
|
-
declare function ComboboxLabel({ children, className }: ComboboxLabelProps): import("react").JSX.Element;
|
|
19
|
-
interface ComboboxItemProps {
|
|
18
|
+
export declare function ComboboxLabel({ children, className }: ComboboxLabelProps): import("react").JSX.Element;
|
|
19
|
+
export interface ComboboxItemProps {
|
|
20
20
|
value: string;
|
|
21
21
|
children: ReactNode;
|
|
22
22
|
textValue?: string;
|
|
@@ -25,16 +25,15 @@ interface ComboboxItemProps {
|
|
|
25
25
|
onSelect?: (value: string) => void;
|
|
26
26
|
className?: string;
|
|
27
27
|
}
|
|
28
|
-
declare function ComboboxItem({ value, children, textValue, keywords, disabled, onSelect, className }: ComboboxItemProps): import("react").JSX.Element | null;
|
|
29
|
-
interface ComboboxEmptyProps {
|
|
28
|
+
export declare function ComboboxItem({ value, children, textValue, keywords, disabled, onSelect, className }: ComboboxItemProps): import("react").JSX.Element | null;
|
|
29
|
+
export interface ComboboxEmptyProps {
|
|
30
30
|
children?: ReactNode;
|
|
31
31
|
className?: string;
|
|
32
32
|
}
|
|
33
|
-
declare function ComboboxEmpty({ children, className }: ComboboxEmptyProps): import("react").JSX.Element | null;
|
|
34
|
-
interface ComboboxSeparatorProps {
|
|
33
|
+
export declare function ComboboxEmpty({ children, className }: ComboboxEmptyProps): import("react").JSX.Element | null;
|
|
34
|
+
export interface ComboboxSeparatorProps {
|
|
35
35
|
className?: string;
|
|
36
36
|
}
|
|
37
|
-
declare function ComboboxSeparator({ className }: ComboboxSeparatorProps): import("react").JSX.Element;
|
|
37
|
+
export declare function ComboboxSeparator({ className }: ComboboxSeparatorProps): import("react").JSX.Element;
|
|
38
38
|
//#endregion
|
|
39
|
-
export { ComboboxEmpty, ComboboxEmptyProps, ComboboxGroup, ComboboxGroupProps, ComboboxItem, ComboboxItemProps, ComboboxLabel, ComboboxLabelProps, ComboboxList, ComboboxListProps, ComboboxSeparator, ComboboxSeparatorProps };
|
|
40
39
|
//# sourceMappingURL=list.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list.d.ts","names":[],"sources":["../../../../src/components/motion/combobox/list.tsx"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"list.d.ts","names":[],"sources":["../../../../src/components/motion/combobox/list.tsx"],"mappings":";;iBAUiB;EACf,UAAU;EACV;EACA;;wBAGc,eAAe,UAAU,WAAuB,aAAa,oCAAiB,IAAA;iBAiB7E;EACf,UAAU;EACV;;wBAGc,gBAAgB,UAAU,aAAa,qCAAkB,IAAA;iBAexD;EACf,UAAU;EACV;;wBAGc,gBAAgB,UAAU,aAAa,qCAAkB,IAAA;iBAaxD;EACf;EACA,UAAU;EACV;EACA;EACA;EACA,YAAY;EACZ;;wBAGc,eACd,OACA,UACA,WACA,UACA,UACA,UACA,aACC,oCAAiB,IAAA;iBAoFH;EACf,WAAW;EACX;;wBAGc,gBAAgB,UAAgC,aAAa,qCAAkB,IAAA;iBAa9E;EACf;;wBAGc,oBAAoB,aAAa,yCAAsB,IAAA"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { EASE_OUT, SPRING_LAYOUT } from "../../../lib/ease.js";
|
|
3
|
-
import {
|
|
3
|
+
import { ComboboxGroupContext, useComboboxContext } from "./context.js";
|
|
4
4
|
import { useContext, useId, useLayoutEffect, useMemo, useRef } from "react";
|
|
5
5
|
import { cn } from "@kumix/utils";
|
|
6
|
+
import { Check } from "lucide-react";
|
|
6
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
8
|
import { motion } from "motion/react";
|
|
8
|
-
import { Check } from "lucide-react";
|
|
9
9
|
//#region src/components/motion/combobox/list.tsx
|
|
10
10
|
function ComboboxList({ children, ariaLabel = "Options", className }) {
|
|
11
11
|
const context = useComboboxContext("ComboboxList");
|
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
import { InputHTMLAttributes, ReactNode, Ref } from "react";
|
|
2
2
|
//#region src/components/motion/combobox/trigger.d.ts
|
|
3
|
-
interface ComboboxTriggerProps {
|
|
3
|
+
export interface ComboboxTriggerProps {
|
|
4
4
|
children: ReactNode;
|
|
5
5
|
className?: string;
|
|
6
6
|
}
|
|
7
|
-
declare function ComboboxTrigger({ children, className }: ComboboxTriggerProps): import("react").JSX.Element;
|
|
8
|
-
interface ComboboxValueProps {
|
|
7
|
+
export declare function ComboboxTrigger({ children, className }: ComboboxTriggerProps): import("react").JSX.Element;
|
|
8
|
+
export interface ComboboxValueProps {
|
|
9
9
|
placeholder?: ReactNode;
|
|
10
10
|
children?: ReactNode | ((value: string | undefined, label: string | undefined) => ReactNode);
|
|
11
11
|
className?: string;
|
|
12
12
|
}
|
|
13
|
-
declare function ComboboxValue({ placeholder, children, className }: ComboboxValueProps): import("react").JSX.Element;
|
|
14
|
-
interface ComboboxInputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "defaultValue" | "value"> {
|
|
13
|
+
export declare function ComboboxValue({ placeholder, children, className }: ComboboxValueProps): import("react").JSX.Element;
|
|
14
|
+
export interface ComboboxInputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "defaultValue" | "value"> {
|
|
15
15
|
ref?: Ref<HTMLInputElement>;
|
|
16
16
|
wrapperClassName?: string;
|
|
17
17
|
}
|
|
18
|
-
declare function ComboboxInput({ ref, className, wrapperClassName, "aria-label": ariaLabel, onChange, onClick, onFocus, onKeyDown, onPointerDown, placeholder, ...props }: ComboboxInputProps): import("react").JSX.Element;
|
|
18
|
+
export declare function ComboboxInput({ ref, className, wrapperClassName, "aria-label": ariaLabel, onChange, onClick, onFocus, onKeyDown, onPointerDown, placeholder, ...props }: ComboboxInputProps): import("react").JSX.Element;
|
|
19
19
|
//#endregion
|
|
20
|
-
export { ComboboxInput, ComboboxInputProps, ComboboxTrigger, ComboboxTriggerProps, ComboboxValue, ComboboxValueProps };
|
|
21
20
|
//# sourceMappingURL=trigger.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trigger.d.ts","names":[],"sources":["../../../../src/components/motion/combobox/trigger.tsx"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"trigger.d.ts","names":[],"sources":["../../../../src/components/motion/combobox/trigger.tsx"],"mappings":";;iBAaiB;EACf,UAAU;EACV;;wBAGc,kBAAkB,UAAU,aAAa,uCAAoB,IAAA;iBA6B5D;EACf,cAAc;EACd,WAAW,cAAc,2BAA2B,8BAA8B;EAClF;;wBAGc,gBACd,aACA,UACA,aACC,qCAAkB,IAAA;iBAqBJ,2BACP,KAAK,oBAAoB;EACjC,MAAM,IAAI;EACV;;wBAGc,gBACd,KACA,WACA,gCACc,WACd,UACA,SACA,SACA,WACA,eACA,gBACG,SACF,qCAAkB,IAAA"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { mergeRefs, useComboboxContext } from "./context.js";
|
|
3
3
|
import { cn } from "@kumix/utils";
|
|
4
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
4
|
import { ChevronsUpDown, Search } from "lucide-react";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
//#region src/components/motion/combobox/trigger.tsx
|
|
7
7
|
function ComboboxTrigger({ children, className }) {
|
|
8
8
|
const context = useComboboxContext("ComboboxTrigger");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { Combobox } from "./combobox/context.js";
|
|
3
3
|
import { ComboboxContent } from "./combobox/content.js";
|
|
4
4
|
import { ComboboxEmpty, ComboboxGroup, ComboboxItem, ComboboxLabel, ComboboxList, ComboboxSeparator } from "./combobox/list.js";
|
|
5
5
|
import { ComboboxInput, ComboboxTrigger, ComboboxValue } from "./combobox/trigger.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ReactNode } from "react";
|
|
2
2
|
import { LucideIcon } from "lucide-react";
|
|
3
3
|
//#region src/components/motion/command-palette.d.ts
|
|
4
|
-
type CommandItem = {
|
|
4
|
+
export type CommandItem = {
|
|
5
5
|
id: string;
|
|
6
6
|
label: string;
|
|
7
7
|
group?: string;
|
|
@@ -11,7 +11,7 @@ type CommandItem = {
|
|
|
11
11
|
badge?: ReactNode;
|
|
12
12
|
onSelect: () => void;
|
|
13
13
|
};
|
|
14
|
-
interface CommandPaletteProps {
|
|
14
|
+
export interface CommandPaletteProps {
|
|
15
15
|
items: CommandItem[];
|
|
16
16
|
/** Opens with Cmd/Ctrl + this key. Default: "k" */
|
|
17
17
|
shortcut?: string;
|
|
@@ -20,7 +20,6 @@ interface CommandPaletteProps {
|
|
|
20
20
|
open?: boolean;
|
|
21
21
|
onOpenChange?: (open: boolean) => void;
|
|
22
22
|
}
|
|
23
|
-
declare function CommandPalette({ items, shortcut, placeholder, emptyMessage, open: controlledOpen, onOpenChange }: CommandPaletteProps): import("react").ReactPortal | null;
|
|
23
|
+
export declare function CommandPalette({ items, shortcut, placeholder, emptyMessage, open: controlledOpen, onOpenChange }: CommandPaletteProps): import("react").ReactPortal | null;
|
|
24
24
|
//#endregion
|
|
25
|
-
export { CommandItem, CommandPalette, CommandPaletteProps };
|
|
26
25
|
//# sourceMappingURL=command-palette.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command-palette.d.ts","names":[],"sources":["../../../src/components/motion/command-palette.tsx"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"command-palette.d.ts","names":[],"sources":["../../../src/components/motion/command-palette.tsx"],"mappings":";;;YAcY;EACV;EACA;EACA;EACA;EACA;EACA,OAAO;EACP,QAAQ;EACR;;iBAGe;EACf,OAAO;;EAEP;EACA;EACA;EACA;EACA,gBAAgB;;wBAwBF,iBACd,OACA,UACA,aACA,cACA,MAAM,gBACN,gBACC,sCAAmB"}
|
|
@@ -6,9 +6,9 @@ import { EASE_OUT } from "../../lib/ease.js";
|
|
|
6
6
|
import { t as PresenceGate } from "../../presence-gate-BekdC4Bo.js";
|
|
7
7
|
import { useCallback, useEffect, useId, useMemo, useRef, useState } from "react";
|
|
8
8
|
import { cn } from "@kumix/utils";
|
|
9
|
+
import { Search } from "lucide-react";
|
|
9
10
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
11
|
import { AnimatePresence, motion, useReducedMotion } from "motion/react";
|
|
11
|
-
import { Search } from "lucide-react";
|
|
12
12
|
import { createPortal } from "react-dom";
|
|
13
13
|
//#region src/components/motion/command-palette.tsx
|
|
14
14
|
function fuzzyMatch(needle, hay) {
|
|
@@ -3,28 +3,28 @@ import { ReactElement, ReactNode, Ref } from "react";
|
|
|
3
3
|
type TriggerElementProps = React.HTMLAttributes<HTMLElement> & {
|
|
4
4
|
ref?: Ref<HTMLElement>;
|
|
5
5
|
};
|
|
6
|
-
interface ContextMenuProps {
|
|
6
|
+
export interface ContextMenuProps {
|
|
7
7
|
children: ReactNode;
|
|
8
8
|
open?: boolean;
|
|
9
9
|
defaultOpen?: boolean;
|
|
10
10
|
onOpenChange?: (open: boolean) => void;
|
|
11
11
|
className?: string;
|
|
12
12
|
}
|
|
13
|
-
declare function ContextMenu({ children, open: controlledOpen, defaultOpen, onOpenChange, className }: ContextMenuProps): import("react").JSX.Element;
|
|
14
|
-
interface ContextMenuTriggerProps {
|
|
13
|
+
export declare function ContextMenu({ children, open: controlledOpen, defaultOpen, onOpenChange, className }: ContextMenuProps): import("react").JSX.Element;
|
|
14
|
+
export interface ContextMenuTriggerProps {
|
|
15
15
|
children: ReactElement<TriggerElementProps>;
|
|
16
16
|
disabled?: boolean;
|
|
17
17
|
className?: string;
|
|
18
18
|
}
|
|
19
|
-
declare function ContextMenuTrigger({ children, disabled, className }: ContextMenuTriggerProps): ReactElement<TriggerElementProps, string | import("react").JSXElementConstructor<any>>;
|
|
20
|
-
interface ContextMenuContentProps {
|
|
19
|
+
export declare function ContextMenuTrigger({ children, disabled, className }: ContextMenuTriggerProps): ReactElement<TriggerElementProps, string | import("react").JSXElementConstructor<any>>;
|
|
20
|
+
export interface ContextMenuContentProps {
|
|
21
21
|
children: ReactNode;
|
|
22
22
|
className?: string;
|
|
23
23
|
ariaLabel?: string;
|
|
24
24
|
}
|
|
25
|
-
declare function ContextMenuContent({ children, className, ariaLabel }: ContextMenuContentProps): import("react").ReactPortal | null;
|
|
25
|
+
export declare function ContextMenuContent({ children, className, ariaLabel }: ContextMenuContentProps): import("react").ReactPortal | null;
|
|
26
26
|
type ContextMenuItemTone = "default" | "destructive";
|
|
27
|
-
interface ContextMenuItemProps {
|
|
27
|
+
export interface ContextMenuItemProps {
|
|
28
28
|
children: ReactNode;
|
|
29
29
|
onSelect?: () => void;
|
|
30
30
|
disabled?: boolean;
|
|
@@ -34,38 +34,37 @@ interface ContextMenuItemProps {
|
|
|
34
34
|
className?: string;
|
|
35
35
|
textValue?: string;
|
|
36
36
|
}
|
|
37
|
-
declare function ContextMenuItem(props: ContextMenuItemProps): import("react").JSX.Element;
|
|
38
|
-
interface ContextMenuCheckboxItemProps extends Omit<ContextMenuItemProps, "onSelect"> {
|
|
37
|
+
export declare function ContextMenuItem(props: ContextMenuItemProps): import("react").JSX.Element;
|
|
38
|
+
export interface ContextMenuCheckboxItemProps extends Omit<ContextMenuItemProps, "onSelect"> {
|
|
39
39
|
checked: boolean;
|
|
40
40
|
onCheckedChange?: (checked: boolean) => void;
|
|
41
41
|
}
|
|
42
|
-
declare function ContextMenuCheckboxItem({ checked, onCheckedChange, children, ...props }: ContextMenuCheckboxItemProps): import("react").JSX.Element;
|
|
43
|
-
interface ContextMenuRadioGroupProps {
|
|
42
|
+
export declare function ContextMenuCheckboxItem({ checked, onCheckedChange, children, ...props }: ContextMenuCheckboxItemProps): import("react").JSX.Element;
|
|
43
|
+
export interface ContextMenuRadioGroupProps {
|
|
44
44
|
value: string;
|
|
45
45
|
onValueChange?: (value: string) => void;
|
|
46
46
|
children: ReactNode;
|
|
47
47
|
className?: string;
|
|
48
48
|
}
|
|
49
|
-
declare function ContextMenuRadioGroup({ value, onValueChange, children, className }: ContextMenuRadioGroupProps): import("react").JSX.Element;
|
|
50
|
-
interface ContextMenuRadioItemProps extends Omit<ContextMenuItemProps, "onSelect"> {
|
|
49
|
+
export declare function ContextMenuRadioGroup({ value, onValueChange, children, className }: ContextMenuRadioGroupProps): import("react").JSX.Element;
|
|
50
|
+
export interface ContextMenuRadioItemProps extends Omit<ContextMenuItemProps, "onSelect"> {
|
|
51
51
|
value: string;
|
|
52
52
|
}
|
|
53
|
-
declare function ContextMenuRadioItem({ value, children, ...props }: ContextMenuRadioItemProps): import("react").JSX.Element;
|
|
54
|
-
interface ContextMenuLabelProps {
|
|
53
|
+
export declare function ContextMenuRadioItem({ value, children, ...props }: ContextMenuRadioItemProps): import("react").JSX.Element;
|
|
54
|
+
export interface ContextMenuLabelProps {
|
|
55
55
|
children: ReactNode;
|
|
56
56
|
inset?: boolean;
|
|
57
57
|
className?: string;
|
|
58
58
|
}
|
|
59
|
-
declare function ContextMenuLabel({ children, inset, className }: ContextMenuLabelProps): import("react").JSX.Element;
|
|
60
|
-
interface ContextMenuSeparatorProps {
|
|
59
|
+
export declare function ContextMenuLabel({ children, inset, className }: ContextMenuLabelProps): import("react").JSX.Element;
|
|
60
|
+
export interface ContextMenuSeparatorProps {
|
|
61
61
|
className?: string;
|
|
62
62
|
}
|
|
63
|
-
declare function ContextMenuSeparator({ className }: ContextMenuSeparatorProps): import("react").JSX.Element;
|
|
64
|
-
interface ContextMenuShortcutProps {
|
|
63
|
+
export declare function ContextMenuSeparator({ className }: ContextMenuSeparatorProps): import("react").JSX.Element;
|
|
64
|
+
export interface ContextMenuShortcutProps {
|
|
65
65
|
children: ReactNode;
|
|
66
66
|
className?: string;
|
|
67
67
|
}
|
|
68
|
-
declare function ContextMenuShortcut({ children, className }: ContextMenuShortcutProps): import("react").JSX.Element;
|
|
68
|
+
export declare function ContextMenuShortcut({ children, className }: ContextMenuShortcutProps): import("react").JSX.Element;
|
|
69
69
|
//#endregion
|
|
70
|
-
export { ContextMenu, ContextMenuCheckboxItem, ContextMenuCheckboxItemProps, ContextMenuContent, ContextMenuContentProps, ContextMenuItem, ContextMenuItemProps, ContextMenuLabel, ContextMenuLabelProps, ContextMenuProps, ContextMenuRadioGroup, ContextMenuRadioGroupProps, ContextMenuRadioItem, ContextMenuRadioItemProps, ContextMenuSeparator, ContextMenuSeparatorProps, ContextMenuShortcut, ContextMenuShortcutProps, ContextMenuTrigger, ContextMenuTriggerProps };
|
|
71
70
|
//# sourceMappingURL=context-menu.d.ts.map
|