@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,7 +1,7 @@
|
|
|
1
1
|
import { CascaderColumn } from "./cascader-context.js";
|
|
2
2
|
import * as React$1 from "react";
|
|
3
3
|
//#region src/components/reui/cascader/cascader-columns.d.ts
|
|
4
|
-
interface CascaderColumnsProps extends Omit<React$1.ComponentProps<"div">, "children"> {
|
|
4
|
+
export interface CascaderColumnsProps extends Omit<React$1.ComponentProps<"div">, "children"> {
|
|
5
5
|
/** Width of each column. */
|
|
6
6
|
columnWidth?: number | string;
|
|
7
7
|
/** Height CAP per column. Falls back to the root `maxHeight`, then 24rem. */
|
|
@@ -16,7 +16,7 @@ interface CascaderColumnsProps extends Omit<React$1.ComponentProps<"div">, "chil
|
|
|
16
16
|
* 2D one. `CascaderInput` moves between columns with ArrowLeft/ArrowRight.
|
|
17
17
|
*/
|
|
18
18
|
declare function CascaderColumns({ className, columnWidth, maxHeight: maxHeightProp, children, ...props }: CascaderColumnsProps): React$1.JSX.Element | null;
|
|
19
|
-
interface CascaderColumnPanelProps {
|
|
19
|
+
export interface CascaderColumnPanelProps {
|
|
20
20
|
column: CascaderColumn;
|
|
21
21
|
/** Replaces the panel's rows; the empty state still wins on an empty column. */
|
|
22
22
|
children?: React$1.ReactNode;
|
|
@@ -25,5 +25,5 @@ interface CascaderColumnPanelProps {
|
|
|
25
25
|
}
|
|
26
26
|
declare function CascaderColumnPanel({ column, children, virtualized }: CascaderColumnPanelProps): React$1.JSX.Element;
|
|
27
27
|
//#endregion
|
|
28
|
-
export { CascaderColumnPanel,
|
|
28
|
+
export { CascaderColumnPanel, CascaderColumns };
|
|
29
29
|
//# sourceMappingURL=cascader-columns.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cascader-columns.d.ts","names":[],"sources":["../../../../src/components/reui/cascader/cascader-columns.tsx"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"cascader-columns.d.ts","names":[],"sources":["../../../../src/components/reui/cascader/cascader-columns.tsx"],"mappings":";;;iBAoBiB,6BAA6B,KAAK,QAAM;;EAEvD;;EAEA;;EAEA,YAAY,QAAQ,mBAAmB,QAAM;;;;;;;;iBAStC,kBACP,WACA,aACA,WAAW,eACX,aACG,SACF,uBAAoB,QAAA,IAAA;iBA8DN;EACf,QAAQ;;EAER,WAAW,QAAM;;EAEjB;;iBAGO,sBAAsB,QAAQ,UAAU,eAAe,2BAAwB,QAAA,IAAA"}
|
|
@@ -5,8 +5,8 @@ import { CASCADER_LIST_HEIGHT_CLASS, CASCADER_LIST_PAD_CLASS, CASCADER_ROWS_CLAS
|
|
|
5
5
|
import { CascaderItem, getCascaderMoreProps } from "./cascader-item.js";
|
|
6
6
|
import * as React$1 from "react";
|
|
7
7
|
import { cn } from "@kumix/utils";
|
|
8
|
-
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
9
8
|
import { LoaderCircleIcon } from "lucide-react";
|
|
9
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
10
10
|
import { Combobox } from "@base-ui/react";
|
|
11
11
|
//#region src/components/reui/cascader/cascader-columns.tsx
|
|
12
12
|
/**
|
|
@@ -7,7 +7,7 @@ import * as React$1 from "react";
|
|
|
7
7
|
* key and pointer move). One combined context re-rendered every row on every
|
|
8
8
|
* keystroke, which is what made `React.memo` on the row worth nothing.
|
|
9
9
|
*/
|
|
10
|
-
interface CascaderColumn<T = unknown> {
|
|
10
|
+
export interface CascaderColumn<T = unknown> {
|
|
11
11
|
parent: CascaderNode<T> | null;
|
|
12
12
|
items: CascaderNode<T>[];
|
|
13
13
|
depth: number;
|
|
@@ -16,7 +16,7 @@ interface CascaderColumn<T = unknown> {
|
|
|
16
16
|
/** Whether this is the deepest column, the one Base UI owns. */
|
|
17
17
|
active: boolean;
|
|
18
18
|
}
|
|
19
|
-
interface CascaderItemState<T = unknown> {
|
|
19
|
+
export interface CascaderItemState<T = unknown> {
|
|
20
20
|
branch: boolean;
|
|
21
21
|
selected: boolean;
|
|
22
22
|
disabled: boolean;
|
|
@@ -29,7 +29,7 @@ interface CascaderItemState<T = unknown> {
|
|
|
29
29
|
* Everything derived from the query, the path and the selection. One keystroke
|
|
30
30
|
* rebuilds most of it, so never subscribe to it from a row.
|
|
31
31
|
*/
|
|
32
|
-
interface CascaderStateContextValue<T = unknown> {
|
|
32
|
+
export interface CascaderStateContextValue<T = unknown> {
|
|
33
33
|
/** Same `useMemo` identity as the actions context's `index`. */
|
|
34
34
|
index: CascaderIndex<T>;
|
|
35
35
|
path: string[];
|
|
@@ -61,14 +61,14 @@ declare const CascaderStateContext: React$1.Context<CascaderStateContextValue<un
|
|
|
61
61
|
* One provider serves every `T`, so the context holds an erased `unknown` value
|
|
62
62
|
* and this cast restores it. The primitive never inspects the payload.
|
|
63
63
|
*/
|
|
64
|
-
declare function useCascaderState<T = unknown>(): CascaderStateContextValue<T>;
|
|
64
|
+
export declare function useCascaderState<T = unknown>(): CascaderStateContextValue<T>;
|
|
65
65
|
/**
|
|
66
66
|
* Config and callbacks, slow enough that a memoised row can subscribe: the
|
|
67
67
|
* mutators are `[]`-dep callbacks over a latest-props ref. The three predicates
|
|
68
68
|
* are the exception, read DURING RENDER where a ref written in an effect would
|
|
69
69
|
* return the previous commit's answer, so each is memoised on its own input.
|
|
70
70
|
*/
|
|
71
|
-
interface CascaderActionsContextValue<T = unknown> {
|
|
71
|
+
export interface CascaderActionsContextValue<T = unknown> {
|
|
72
72
|
index: CascaderIndex<T>;
|
|
73
73
|
mode: CascaderMode;
|
|
74
74
|
multiple: boolean;
|
|
@@ -157,19 +157,19 @@ interface CascaderActionsContextValue<T = unknown> {
|
|
|
157
157
|
selectedDescendantCount: (node: CascaderNode<T>) => number;
|
|
158
158
|
}
|
|
159
159
|
declare const CascaderActionsContext: React$1.Context<CascaderActionsContextValue<unknown> | undefined>;
|
|
160
|
-
declare function useCascaderActions<T = unknown>(): CascaderActionsContextValue<T>;
|
|
160
|
+
export declare function useCascaderActions<T = unknown>(): CascaderActionsContextValue<T>;
|
|
161
161
|
/**
|
|
162
162
|
* Their own context, republished every render. They cannot ride on the actions
|
|
163
163
|
* context: an inline closure read off a memoised object is whichever closure
|
|
164
164
|
* that object captured, so the row would call a stale prop over stale state.
|
|
165
165
|
*/
|
|
166
|
-
interface CascaderRenderContextValue<T = unknown> {
|
|
166
|
+
export interface CascaderRenderContextValue<T = unknown> {
|
|
167
167
|
renderItem?: (node: CascaderNode<T>, state: CascaderItemState<T>) => React$1.ReactNode;
|
|
168
168
|
renderLabel?: (node: CascaderNode<T>, state: CascaderItemState<T>) => React$1.ReactNode;
|
|
169
169
|
}
|
|
170
170
|
declare const CascaderRenderContext: React$1.Context<CascaderRenderContextValue<unknown>>;
|
|
171
|
-
declare function useCascaderRender<T = unknown>(): CascaderRenderContextValue<T>;
|
|
172
|
-
interface CascaderHighlight {
|
|
171
|
+
export declare function useCascaderRender<T = unknown>(): CascaderRenderContextValue<T>;
|
|
172
|
+
export interface CascaderHighlight {
|
|
173
173
|
index: number;
|
|
174
174
|
value: string | null;
|
|
175
175
|
}
|
|
@@ -179,15 +179,15 @@ interface CascaderHighlight {
|
|
|
179
179
|
* re-render the whole root at mousemove rate. A store re-renders subscribers
|
|
180
180
|
* only, which inside the primitive is the virtualizer.
|
|
181
181
|
*/
|
|
182
|
-
interface CascaderHighlightStore {
|
|
182
|
+
export interface CascaderHighlightStore {
|
|
183
183
|
subscribe: (onStoreChange: () => void) => () => void;
|
|
184
184
|
getSnapshot: () => CascaderHighlight;
|
|
185
185
|
set: (next: CascaderHighlight) => void;
|
|
186
186
|
}
|
|
187
|
-
declare function createCascaderHighlightStore(): CascaderHighlightStore;
|
|
187
|
+
export declare function createCascaderHighlightStore(): CascaderHighlightStore;
|
|
188
188
|
declare const CascaderHighlightContext: React$1.Context<CascaderHighlightStore>;
|
|
189
189
|
/** Subscribes to the highlight. Re-renders ONLY the calling component. */
|
|
190
|
-
declare function useCascaderHighlight(): CascaderHighlight;
|
|
190
|
+
export declare function useCascaderHighlight(): CascaderHighlight;
|
|
191
191
|
//#endregion
|
|
192
|
-
export { CascaderActionsContext,
|
|
192
|
+
export { CascaderActionsContext, CascaderHighlightContext, CascaderRenderContext, CascaderStateContext };
|
|
193
193
|
//# sourceMappingURL=cascader-context.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cascader-context.d.ts","names":[],"sources":["../../../../src/components/reui/cascader/cascader-context.tsx"],"mappings":";;;;;;;;;
|
|
1
|
+
{"version":3,"file":"cascader-context.d.ts","names":[],"sources":["../../../../src/components/reui/cascader/cascader-context.tsx"],"mappings":";;;;;;;;;iBA2BiB,eAAe;EAC9B,QAAQ,aAAa;EACrB,OAAO,aAAa;EACpB;;EAEA;;EAEA;;iBAGe,kBAAkB;EACjC;EACA;EACA;EACA;EACA;;EAEA,MAAM,aAAa;;;;;;iBAWJ,0BAA0B;;EAEzC,OAAO,cAAc;EACrB;EACA,UAAU;EACV;EACA,eAAe,aAAa;;EAE5B,YAAY,aAAa;EACzB,aAAa,aAAa;;EAE1B,eAAe,aAAa;EAC5B,SAAS,eAAe;EACxB,UAAU,iBAAiB;EAC3B;;EAEA,qBAAqB;;;;;;EAMrB,YAAY,oBAAoB;;EAEhC,aAAa;EACb;;cAGI,sBAAoB,QAAA,QAAA;;;;;wBAMV,iBAAiB,gBAAgB,0BAA0B;;;;;;;iBAkB1D,4BAA4B;EAC3C,OAAO,cAAc;EACrB,MAAM;EACN;;EAEA;;EAEA;;EAEA;EACA;EACA,SAAS;EACT,aAAa;EACb;EACA;EACA;;;;;;EAMA;EACA,QAAQ;;;;;;EAOR;;EAEA;;EAEA;EACA;EACA;EACA;;EAGA;;EAEA,WAAW;EACX,aAAa;;;;;EAKb,kBAAkB;;EAGlB,gBAAgB,cAAc;EAC9B,gBAAgB,0BAA0B;;EAE1C,sBAAsB,aAAa;EAEnC,UAAU,mBAAmB;EAC7B,YAAY;EACZ;EACA,YAAY;EACZ,iBAAiB;;;;;;;EAOjB,gBAAgB,aAAa;EAC7B;EACA,WAAW;;;;;EAKX,eAAe,kBAAkB,SAAS;;EAE1C,SAAS,MAAM,aAAa;EAC5B,WAAW,MAAM,aAAa;;EAE9B,aAAa,MAAM,aAAa,IAAI;;EAEpC,cAAc,kBAAkB,aAAa;EAC7C,WAAW,MAAM,aAAa;EAC9B,eAAe,MAAM,aAAa;EAClC,aAAa,MAAM,aAAa;;EAEhC,kBAAkB,MAAM,aAAa;;;;;EAKrC,0BAA0B,MAAM,aAAa;;cAGzC,wBAAsB,QAAA,QAAA;wBAIZ,mBAAmB,gBAAgB,4BAA4B;;;;;;iBAiB9D,2BAA2B;EAC1C,cAAc,MAAM,aAAa,IAAI,OAAO,kBAAkB,OAAO,QAAM;EAC3E,eAAe,MAAM,aAAa,IAAI,OAAO,kBAAkB,OAAO,QAAM;;cAGxE,uBAAqB,QAAA,QAAA;wBAEX,kBAAkB,gBAAgB,2BAA2B;iBAQ5D;EACf;EACA;;;;;;;;iBASe;EACf,YAAY;EACZ,mBAAmB;EACnB,MAAM,MAAM;;wBAKE,gCAAgC;cA0B1C,0BAAwB,QAAA,QAAA;;wBAId,wBAAwB"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
2
|
import { Popover } from "@base-ui/react";
|
|
3
3
|
//#region src/components/reui/cascader/cascader-footer.d.ts
|
|
4
|
-
type CascaderFooterProps = React$1.ComponentProps<"div">;
|
|
4
|
+
export type CascaderFooterProps = React$1.ComponentProps<"div">;
|
|
5
5
|
/**
|
|
6
6
|
* Actions pinned below the list, a SIBLING of `CascaderList`. Children win
|
|
7
7
|
* over the root's `actions` prop; with neither it renders nothing.
|
|
8
8
|
*/
|
|
9
9
|
declare function CascaderFooter({ className, children, onKeyDown, ...props }: CascaderFooterProps): React$1.JSX.Element | null;
|
|
10
|
-
interface CascaderActionProps extends Omit<React$1.ComponentProps<"button">, "onSelect"> {
|
|
10
|
+
export interface CascaderActionProps extends Omit<React$1.ComponentProps<"button">, "onSelect"> {
|
|
11
11
|
icon?: React$1.ReactNode;
|
|
12
12
|
/** Fires on press, after `onClick`, and not at all when disabled. */
|
|
13
13
|
onSelect?: () => void;
|
|
@@ -41,8 +41,8 @@ interface CascaderSubmenuContextValue {
|
|
|
41
41
|
keyboardRef: React$1.RefObject<boolean>;
|
|
42
42
|
}
|
|
43
43
|
/** The flyout's own state. `close()` is the one a custom entry usually wants. */
|
|
44
|
-
declare function useCascaderSubmenu(): CascaderSubmenuContextValue;
|
|
45
|
-
interface CascaderSubmenuProps {
|
|
44
|
+
export declare function useCascaderSubmenu(): CascaderSubmenuContextValue;
|
|
45
|
+
export interface CascaderSubmenuProps {
|
|
46
46
|
open?: boolean;
|
|
47
47
|
defaultOpen?: boolean;
|
|
48
48
|
onOpenChange?: (open: boolean) => void;
|
|
@@ -54,7 +54,7 @@ interface CascaderSubmenuProps {
|
|
|
54
54
|
* flyout still reads as open during the event that closed it.
|
|
55
55
|
*/
|
|
56
56
|
declare function CascaderSubmenu({ open: openProp, defaultOpen, onOpenChange, children }: CascaderSubmenuProps): React$1.JSX.Element;
|
|
57
|
-
interface CascaderSubmenuTriggerProps extends Omit<React$1.ComponentProps<"button">, "onSelect"> {
|
|
57
|
+
export interface CascaderSubmenuTriggerProps extends Omit<React$1.ComponentProps<"button">, "onSelect"> {
|
|
58
58
|
icon?: React$1.ReactNode;
|
|
59
59
|
}
|
|
60
60
|
/**
|
|
@@ -69,7 +69,7 @@ interface CascaderSubmenuTriggerProps extends Omit<React$1.ComponentProps<"butto
|
|
|
69
69
|
* ignores `defaultPrevented`).
|
|
70
70
|
*/
|
|
71
71
|
declare function CascaderSubmenuTrigger({ className, icon, children, onKeyDown, onClick, disabled, ...props }: CascaderSubmenuTriggerProps): React$1.JSX.Element;
|
|
72
|
-
interface CascaderSubmenuContentProps extends Popover.Popup.Props, Pick<Popover.Positioner.Props, "side" | "align" | "sideOffset" | "alignOffset"> {}
|
|
72
|
+
export interface CascaderSubmenuContentProps extends Popover.Popup.Props, Pick<Popover.Positioner.Props, "side" | "align" | "sideOffset" | "alignOffset"> {}
|
|
73
73
|
/**
|
|
74
74
|
* The flyout itself. `Portal` with NO `container`: a nested portal resolves to
|
|
75
75
|
* the parent portal node, the mechanism the file header describes.
|
|
@@ -79,7 +79,7 @@ declare function CascaderSubmenuContent({ className, children, onKeyDown, side,
|
|
|
79
79
|
* Whether the footer would render anything, for a wrapper (a separator, a grid
|
|
80
80
|
* row) that has to make the same call `CascaderFooter` already makes.
|
|
81
81
|
*/
|
|
82
|
-
declare function useCascaderHasActions(): boolean;
|
|
82
|
+
export declare function useCascaderHasActions(): boolean;
|
|
83
83
|
//#endregion
|
|
84
|
-
export { CascaderAction,
|
|
84
|
+
export { CascaderAction, CascaderFooter, CascaderSubmenu, CascaderSubmenuContent, CascaderSubmenuTrigger };
|
|
85
85
|
//# sourceMappingURL=cascader-footer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cascader-footer.d.ts","names":[],"sources":["../../../../src/components/reui/cascader/cascader-footer.tsx"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"cascader-footer.d.ts","names":[],"sources":["../../../../src/components/reui/cascader/cascader-footer.tsx"],"mappings":";;;YAgDY,sBAAsB,QAAM;;;;;iBAM/B,iBAAiB,WAAW,UAAU,cAAc,SAAS,sBAAmB,QAAA,IAAA;iBA2JxE,4BAA4B,KAAK,QAAM;EACtD,OAAO,QAAM;;EAEb;;;;;;;;;;;;;;iBAsBO,iBACP,WACA,MACA,UACA,UACA,SACA,WACA,aACG,SACF,sBAAmB,QAAA,IAAA;UA6DZ;EACR,QAAQ,QAAM,UAAU;EACxB;EACA,UAAU;EACV;;EAEA;;;;;;;EAOA,aAAa,QAAM;;;wBAuBL,sBAAsB;iBAQrB;EACf;EACA;EACA,gBAAgB;EAChB,WAAW,QAAM;;;;;;;iBAQV,kBACP,MAAM,UACN,aACA,cACA,YACC,uBAAoB,QAAA,IAAA;iBA2CN,oCACP,KAAK,QAAM;EACnB,OAAO,QAAM;;;;;;;;;;;;;iBAmBN,yBACP,WACA,MACA,UACA,WACA,SACA,aACG,SACF,8BAA2B,QAAA,IAAA;iBAuFb,oCACP,QAAiB,MAAM,OAC7B,KAAK,QAAiB,WAAW;;;;;iBAW5B,yBACP,WACA,UACA,WACA,MACA,OACA,YACA,gBACG,SACF,8BAA2B,QAAA,IAAA;;;;;wBAwId"}
|
|
@@ -4,8 +4,8 @@ import { CASCADER_LIST_PAD_CLASS, getCascaderFooterStops, isCascaderRtl } from "
|
|
|
4
4
|
import { CASCADER_ACTION_CLASS, CascaderGroup, CascaderLabel } from "./cascader-item.js";
|
|
5
5
|
import * as React$1 from "react";
|
|
6
6
|
import { cn } from "@kumix/utils";
|
|
7
|
-
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
8
7
|
import { ChevronRightIcon } from "lucide-react";
|
|
8
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
import { Popover } from "@base-ui/react";
|
|
10
10
|
import { useDirection } from "@base-ui/react/direction-provider";
|
|
11
11
|
//#region src/components/reui/cascader/cascader-footer.tsx
|
|
@@ -4,14 +4,13 @@ import { s as CascaderLabels } from "../../../cascader-types-BnH6wYD-.js";
|
|
|
4
4
|
* English defaults. Every string the primitive can render lives here, so a
|
|
5
5
|
* consumer can translate the whole surface by passing `labels`.
|
|
6
6
|
*/
|
|
7
|
-
declare const CASCADER_LABELS: CascaderLabels;
|
|
7
|
+
export declare const CASCADER_LABELS: CascaderLabels;
|
|
8
8
|
/**
|
|
9
9
|
* Shallow-merges consumer overrides over the defaults, so `labels` can carry a
|
|
10
10
|
* single key without restating the rest.
|
|
11
11
|
*/
|
|
12
|
-
declare function resolveCascaderLabels(labels?: Partial<CascaderLabels>): CascaderLabels;
|
|
12
|
+
export declare function resolveCascaderLabels(labels?: Partial<CascaderLabels>): CascaderLabels;
|
|
13
13
|
/** Resolves the search placeholder, which may be a string or a function. */
|
|
14
|
-
declare function resolveCascaderSearchLabel(labels: CascaderLabels, parentLabel?: string): string;
|
|
14
|
+
export declare function resolveCascaderSearchLabel(labels: CascaderLabels, parentLabel?: string): string;
|
|
15
15
|
//#endregion
|
|
16
|
-
export { CASCADER_LABELS, resolveCascaderLabels, resolveCascaderSearchLabel };
|
|
17
16
|
//# sourceMappingURL=cascader-i18n.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cascader-i18n.d.ts","names":[],"sources":["../../../../src/components/reui/cascader/cascader-i18n.tsx"],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"cascader-i18n.d.ts","names":[],"sources":["../../../../src/components/reui/cascader/cascader-i18n.tsx"],"mappings":";;;;;;qBAca,iBAAiB;;;;;wBAyDd,sBAAsB,SAAS,QAAQ,kBAAkB;;wBAMzD,2BAA2B,QAAQ,gBAAgB"}
|
|
@@ -7,7 +7,7 @@ type VetoableEvent = {
|
|
|
7
7
|
};
|
|
8
8
|
/** A row press. The veto hook is optional: an `as="button"` row is outside Base
|
|
9
9
|
* UI's listbox and gets a plain React event. */
|
|
10
|
-
type CascaderRowEvent = React$1.MouseEvent<HTMLElement> & VetoableEvent;
|
|
10
|
+
export type CascaderRowEvent = React$1.MouseEvent<HTMLElement> & VetoableEvent;
|
|
11
11
|
/** A footer COMMAND: the row theme, so it cannot drift from the list, plus the
|
|
12
12
|
* hover and `focus-visible` fills a plain button never gets. Fills, never a
|
|
13
13
|
* ring: a ring under rows that all paint with a fill read as a different
|
|
@@ -15,8 +15,8 @@ type CascaderRowEvent = React$1.MouseEvent<HTMLElement> & VetoableEvent;
|
|
|
15
15
|
* leave a command painted as if it were still hovered. Disabled keys off
|
|
16
16
|
* `aria-disabled`, not `:disabled`, to keep it FOCUSABLE: a footer whose only
|
|
17
17
|
* row is disabled has no tab stop. */
|
|
18
|
-
declare const CASCADER_ACTION_CLASS = "data-highlighted:bg-accent data-highlighted:text-accent-foreground not-data-[variant=destructive]:data-highlighted:**:text-accent-foreground [&_svg:not([class*='size-'])]:size-4 rounded-md py-1 relative flex w-full cursor-default items-center outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [--cascader-row-inset:6px] text-sm ps-[var(--cascader-row-inset,8px)]! pe-[var(--cascader-row-inset,8px)]! hover:bg-accent hover:text-accent-foreground focus-visible:bg-accent focus-visible:text-accent-foreground cursor-pointer gap-2 transition-colors aria-disabled:pointer-events-none aria-disabled:opacity-50";
|
|
19
|
-
interface CascaderItemProps extends Omit<Combobox.Item.Props, "value" | "children" | "className" | "style" | "onClick" | "onMouseUp"> {
|
|
18
|
+
export declare const CASCADER_ACTION_CLASS = "data-highlighted:bg-accent data-highlighted:text-accent-foreground not-data-[variant=destructive]:data-highlighted:**:text-accent-foreground [&_svg:not([class*='size-'])]:size-4 rounded-md py-1 relative flex w-full cursor-default items-center outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [--cascader-row-inset:6px] text-sm ps-[var(--cascader-row-inset,8px)]! pe-[var(--cascader-row-inset,8px)]! hover:bg-accent hover:text-accent-foreground focus-visible:bg-accent focus-visible:text-accent-foreground cursor-pointer gap-2 transition-colors aria-disabled:pointer-events-none aria-disabled:opacity-50";
|
|
19
|
+
export interface CascaderItemProps extends Omit<Combobox.Item.Props, "value" | "children" | "className" | "style" | "onClick" | "onMouseUp"> {
|
|
20
20
|
/** No state callback: the row merges `className` and `style` itself. */
|
|
21
21
|
className?: string;
|
|
22
22
|
style?: React$1.CSSProperties;
|
|
@@ -69,13 +69,13 @@ declare const CascaderItem: React$1.MemoExoticComponent<({ node, index, depth, s
|
|
|
69
69
|
/** Every load-derived prop a row needs. A PAGING row reports the level it
|
|
70
70
|
* belongs to, a BRANCH row the level it OWNS; mutually exclusive, so one call
|
|
71
71
|
* answers both. Exported because a memoised row cannot read them itself. */
|
|
72
|
-
declare function getCascaderMoreProps(node: CascaderNode, loadStates: ReadonlyMap<string, CascaderLoadState>): {
|
|
72
|
+
export declare function getCascaderMoreProps(node: CascaderNode, loadStates: ReadonlyMap<string, CascaderLoadState>): {
|
|
73
73
|
loading: boolean;
|
|
74
74
|
error: boolean;
|
|
75
75
|
childrenLoading: boolean;
|
|
76
76
|
childrenError: boolean;
|
|
77
77
|
};
|
|
78
|
-
interface CascaderItemsProps {
|
|
78
|
+
export interface CascaderItemsProps {
|
|
79
79
|
/** Replaces the default row for every item. */
|
|
80
80
|
children?: (node: CascaderNode, index: number) => React$1.ReactNode;
|
|
81
81
|
}
|
|
@@ -84,7 +84,7 @@ interface CascaderItemsProps {
|
|
|
84
84
|
* component, which would cycle with the context. `index` is deliberately not
|
|
85
85
|
* passed; see `CascaderItemProps`. */
|
|
86
86
|
declare function CascaderItems({ children }: CascaderItemsProps): React$1.JSX.Element;
|
|
87
|
-
interface CascaderGroupProps extends Omit<Combobox.Group.Props, "className"> {
|
|
87
|
+
export interface CascaderGroupProps extends Omit<Combobox.Group.Props, "className"> {
|
|
88
88
|
/** Base UI also accepts a state callback here; the group has no state. */
|
|
89
89
|
className?: string;
|
|
90
90
|
}
|
|
@@ -94,7 +94,7 @@ interface CascaderGroupProps extends Omit<Combobox.Group.Props, "className"> {
|
|
|
94
94
|
* Grouping is composition, not data: `CascaderItems` renders one flat run per
|
|
95
95
|
* level, so its indices line up with `listRef`. */
|
|
96
96
|
declare function CascaderGroup({ className, ...props }: CascaderGroupProps): React$1.JSX.Element;
|
|
97
|
-
interface CascaderLabelProps extends Omit<Combobox.GroupLabel.Props, "className" | "style"> {
|
|
97
|
+
export interface CascaderLabelProps extends Omit<Combobox.GroupLabel.Props, "className" | "style"> {
|
|
98
98
|
/** No state callback; outside a group this is not a Base UI part at all. */
|
|
99
99
|
className?: string;
|
|
100
100
|
style?: React$1.CSSProperties;
|
|
@@ -102,7 +102,7 @@ interface CascaderLabelProps extends Omit<Combobox.GroupLabel.Props, "className"
|
|
|
102
102
|
/** A heading. Inside `CascaderGroup` it is the group's accessible name; outside
|
|
103
103
|
* one (the footer flyout is a menu, not a listbox) it is decoration only. */
|
|
104
104
|
declare function CascaderLabel(props: CascaderLabelProps): React$1.JSX.Element;
|
|
105
|
-
interface CascaderSeparatorProps extends Omit<Combobox.Separator.Props, "className"> {
|
|
105
|
+
export interface CascaderSeparatorProps extends Omit<Combobox.Separator.Props, "className"> {
|
|
106
106
|
/** Base UI also accepts a state callback here; only the orientation varies. */
|
|
107
107
|
className?: string;
|
|
108
108
|
}
|
|
@@ -111,5 +111,5 @@ interface CascaderSeparatorProps extends Omit<Combobox.Separator.Props, "classNa
|
|
|
111
111
|
* needs a `CascaderGroup`, not a line. A consumer can pass the role back. */
|
|
112
112
|
declare function CascaderSeparator({ className, ...props }: CascaderSeparatorProps): React$1.JSX.Element;
|
|
113
113
|
//#endregion
|
|
114
|
-
export {
|
|
114
|
+
export { CascaderGroup, CascaderItem, CascaderItems, CascaderLabel, CascaderSeparator };
|
|
115
115
|
//# sourceMappingURL=cascader-item.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cascader-item.d.ts","names":[],"sources":["../../../../src/components/reui/cascader/cascader-item.tsx"],"mappings":";;;;KA0BK;EAAkB;;;;
|
|
1
|
+
{"version":3,"file":"cascader-item.d.ts","names":[],"sources":["../../../../src/components/reui/cascader/cascader-item.tsx"],"mappings":";;;;KA0BK;EAAkB;;;;YAIX,mBAAmB,QAAM,WAAW,eAAe;;;;;;;;qBAsDlD;iBAyBI,0BACP,KACN,SAAkB,KAAK;;EAIzB;EACA,QAAQ,QAAM;EACd,WAAW,OAAO;EAClB,aAAa,OAAO;EACpB,MAAM;;;EAGN;;EAEA;;EAEA;;;EAGA;;EAEA;;EAEA;;;;EAIA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;;;EAIA;;;;EAIA;EACA,WAAW,QAAM;;;;cAKb,cAAY,QAAA,uBAAA,MAAA,OAAA,OAAA,UAAA,IAAA,UAAA,QAAA,QAAA,YAAA,YAAA,gBAAA,UAAA,cAAA,eAAA,mBAAA,eAAA,mBAAA,SAAA,OAAA,iBAAA,eAAA,WAAA,UAAA,SAAA,WAAA,UAAA,SAuBf,sBAAiB,QAAA,IAAA;;;;wBAunBJ,qBACd,MAAM,cACN,YAAY,oBAAoB;EAEhC;EACA;EACA;EACA;;iBAqBe;;EAEf,YAAY,MAAM,cAAc,kBAAkB,QAAM;;;;;;iBAOjD,gBAAgB,YAAY,qBAAkB,QAAA,IAAA;iBA0EtC,2BAA2B,KAAK,SAAkB,MAAM;;EAEvE;;;;;;;iBAQO,gBAAgB,cAAc,SAAS,qBAAkB,QAAA,IAAA;iBAYjD,2BACP,KAAK,SAAkB,WAAW;;EAE1C;EACA,QAAQ,QAAM;;;;iBA+BP,cAAc,OAAO,qBAAkB,QAAA,IAAA;iBAK/B,+BACP,KAAK,SAAkB,UAAU;;EAEzC;;;;;iBAMO,oBAAoB,cAAc,SAAS,yBAAsB,QAAA,IAAA"}
|
|
@@ -4,8 +4,8 @@ import { useCascaderActions, useCascaderRender, useCascaderState } from "./casca
|
|
|
4
4
|
import { getCascaderCount, getCascaderMoreParent, getCascaderPath, isCascaderMoreNode } from "./cascader-lib.js";
|
|
5
5
|
import * as React$1 from "react";
|
|
6
6
|
import { cn } from "@kumix/utils";
|
|
7
|
-
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
8
7
|
import { CheckIcon, ChevronRightIcon, LoaderCircleIcon, MinusIcon, RotateCwIcon } from "lucide-react";
|
|
8
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
import { mergeProps } from "@base-ui/react/merge-props";
|
|
10
10
|
import { useRender } from "@base-ui/react/use-render";
|
|
11
11
|
import { Combobox } from "@base-ui/react";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { _ as CascaderSelectable, a as CascaderFlatNode, i as CascaderCollapse, m as CascaderPathSegment, o as CascaderIndex, p as CascaderNode } from "../../../cascader-types-BnH6wYD-.js";
|
|
2
2
|
//#region src/components/reui/cascader/cascader-lib.d.ts
|
|
3
3
|
/** Root level key in `childrenOf`. NUL-prefixed so no real value collides. */
|
|
4
|
-
declare const CASCADER_ROOT_KEY = "\0root";
|
|
4
|
+
export declare const CASCADER_ROOT_KEY = "\0root";
|
|
5
5
|
/**
|
|
6
6
|
* Paging pseudo-node prefix. Written as an escape sequence, not a raw 0x00
|
|
7
7
|
* byte: a literal NUL makes this module read as binary and `grep -I` skips it.
|
|
8
8
|
*/
|
|
9
|
-
declare const CASCADER_MORE_PREFIX = "\0more:";
|
|
9
|
+
export declare const CASCADER_MORE_PREFIX = "\0more:";
|
|
10
10
|
/**
|
|
11
11
|
* The four scroll classes. In the lib because `cascader-columns.tsx` needs them
|
|
12
12
|
* too and must not import `cascader.tsx`. Shell > bound > scrollport > rows.
|
|
@@ -17,65 +17,65 @@ declare const CASCADER_MORE_PREFIX = "\0more:";
|
|
|
17
17
|
* inline panel has no positioner, so no `--available-height`. `24rem` is the
|
|
18
18
|
* default cap, so the common case sets no variable at all.
|
|
19
19
|
*/
|
|
20
|
-
declare const CASCADER_LIST_HEIGHT_CLASS = "max-h-[min(var(--available-height,100vh),var(--cascader-max-height,24rem))]";
|
|
20
|
+
export declare const CASCADER_LIST_HEIGHT_CLASS = "max-h-[min(var(--available-height,100vh),var(--cascader-max-height,24rem))]";
|
|
21
21
|
/**
|
|
22
22
|
* Each style's list padding: rows take it as `padding`, the scrollport as
|
|
23
23
|
* `scroll-padding` floored at 4px so lyra's `0` does not strand a row.
|
|
24
24
|
* Mirrored per style from `registry/styles/style-*.css`; keep them in step.
|
|
25
25
|
*/
|
|
26
|
-
declare const CASCADER_LIST_PAD_CLASS = "[--cascader-list-pad:4px]";
|
|
26
|
+
export declare const CASCADER_LIST_PAD_CLASS = "[--cascader-list-pad:4px]";
|
|
27
27
|
/** The scrollport: a `max-h-*` on the ScrollArea ROOT bounds nothing. */
|
|
28
|
-
declare const CASCADER_SCROLL_CLASS = "size-full min-h-0 **:data-[slot=scroll-area-viewport]:h-full **:data-[slot=scroll-area-viewport]:overscroll-contain **:data-[slot=scroll-area-viewport]:scroll-py-[max(var(--cascader-list-pad,4px),4px)]";
|
|
28
|
+
export declare const CASCADER_SCROLL_CLASS = "size-full min-h-0 **:data-[slot=scroll-area-viewport]:h-full **:data-[slot=scroll-area-viewport]:overscroll-contain **:data-[slot=scroll-area-viewport]:scroll-py-[max(var(--cascader-list-pad,4px),4px)]";
|
|
29
29
|
/** The rows' box; `data-empty:p-0` keeps an empty state from double inset. */
|
|
30
|
-
declare const CASCADER_ROWS_CLASS = "p-(--cascader-list-pad,4px) data-empty:p-0";
|
|
30
|
+
export declare const CASCADER_ROWS_CLASS = "p-(--cascader-list-pad,4px) data-empty:p-0";
|
|
31
31
|
/** The footer's own stops; an `aria-disabled` command still counts as one. */
|
|
32
|
-
declare function getCascaderFooterStops(scope: HTMLElement): HTMLElement[];
|
|
32
|
+
export declare function getCascaderFooterStops(scope: HTMLElement): HTMLElement[];
|
|
33
33
|
/** Where Tab lands, or `null` to let the browser out: focus is never trapped. */
|
|
34
|
-
declare function getCascaderTabTarget(panel: HTMLElement, from: Element | null, backwards: boolean): HTMLElement | null;
|
|
34
|
+
export declare function getCascaderTabTarget(panel: HTMLElement, from: Element | null, backwards: boolean): HTMLElement | null;
|
|
35
35
|
/**
|
|
36
36
|
* The writing direction at `element`. `DirectionProvider` may only vote yes:
|
|
37
37
|
* unmounted it answers `"ltr"`, which would override a real `<html dir="rtl">`.
|
|
38
38
|
*/
|
|
39
|
-
declare function isCascaderRtl(element: Element, provided: string): boolean;
|
|
39
|
+
export declare function isCascaderRtl(element: Element, provided: string): boolean;
|
|
40
40
|
/**
|
|
41
41
|
* The paging row as a REAL node, not a DOM-only row after the list: every index
|
|
42
42
|
* Base UI hands out indexes the RENDERED array, so a DOM-only row shifts them.
|
|
43
43
|
*/
|
|
44
|
-
declare function createCascaderMoreNode<T = unknown>(parentKey: string, loadedCount?: number): CascaderNode<T>;
|
|
45
|
-
declare function isCascaderMoreNode<T>(node: CascaderNode<T>): boolean;
|
|
44
|
+
export declare function createCascaderMoreNode<T = unknown>(parentKey: string, loadedCount?: number): CascaderNode<T>;
|
|
45
|
+
export declare function isCascaderMoreNode<T>(node: CascaderNode<T>): boolean;
|
|
46
46
|
/** The level key a paging pseudo-node belongs to, or `null` for a real node. */
|
|
47
|
-
declare function getCascaderMoreParent<T>(node: CascaderNode<T>): string | null;
|
|
47
|
+
export declare function getCascaderMoreParent<T>(node: CascaderNode<T>): string | null;
|
|
48
48
|
/** Either input shape into one index. Cycle-guarded depths; first wins. */
|
|
49
|
-
declare function buildCascaderIndex<T = unknown>(items: readonly CascaderNode<T>[] | undefined, getParent?: (node: CascaderNode<T>) => string | null | undefined): CascaderIndex<T>;
|
|
49
|
+
export declare function buildCascaderIndex<T = unknown>(items: readonly CascaderNode<T>[] | undefined, getParent?: (node: CascaderNode<T>) => string | null | undefined): CascaderIndex<T>;
|
|
50
50
|
/**
|
|
51
51
|
* Folds loaded pages into an index built from `items`, so a re-render with a
|
|
52
52
|
* new `items` array keeps what the user drilled into. Static `items` wins;
|
|
53
53
|
* `detached` is `byValue` ONLY, or deep search doubles it and `childrenOf` lies.
|
|
54
54
|
*/
|
|
55
|
-
declare function mergeCascaderIndex<T = unknown>(base: CascaderIndex<T>, pages: ReadonlyMap<string, readonly CascaderNode<T>[]>, detached?: ReadonlyMap<string, CascaderNode<T>>): CascaderIndex<T>;
|
|
55
|
+
export declare function mergeCascaderIndex<T = unknown>(base: CascaderIndex<T>, pages: ReadonlyMap<string, readonly CascaderNode<T>[]>, detached?: ReadonlyMap<string, CascaderNode<T>>): CascaderIndex<T>;
|
|
56
56
|
/** Children of `parent`, or the root level when `parent` is nullish. */
|
|
57
|
-
declare function getCascaderChildren<T>(index: CascaderIndex<T>, parent?: string | null): CascaderNode<T>[];
|
|
57
|
+
export declare function getCascaderChildren<T>(index: CascaderIndex<T>, parent?: string | null): CascaderNode<T>[];
|
|
58
58
|
/** A branch has known children, or `hasChildren` for an unfetched level. */
|
|
59
|
-
declare function isCascaderBranch<T>(index: CascaderIndex<T>, node: CascaderNode<T>): boolean;
|
|
59
|
+
export declare function isCascaderBranch<T>(index: CascaderIndex<T>, node: CascaderNode<T>): boolean;
|
|
60
60
|
/** Trailing count for the default row. Explicit `count` wins over the tree. */
|
|
61
|
-
declare function getCascaderCount<T>(index: CascaderIndex<T>, node: CascaderNode<T>): number;
|
|
61
|
+
export declare function getCascaderCount<T>(index: CascaderIndex<T>, node: CascaderNode<T>): number;
|
|
62
62
|
/** Whether a node may be committed as a selection. */
|
|
63
|
-
declare function isCascaderSelectable<T>(index: CascaderIndex<T>, node: CascaderNode<T>, selectable: CascaderSelectable<T>): boolean;
|
|
63
|
+
export declare function isCascaderSelectable<T>(index: CascaderIndex<T>, node: CascaderNode<T>, selectable: CascaderSelectable<T>): boolean;
|
|
64
64
|
/** Ancestor chain for `value`, root first. Empty while async data loads. */
|
|
65
|
-
declare function getCascaderPath<T>(index: CascaderIndex<T>, value: string | null | undefined): CascaderNode<T>[];
|
|
65
|
+
export declare function getCascaderPath<T>(index: CascaderIndex<T>, value: string | null | undefined): CascaderNode<T>[];
|
|
66
66
|
/**
|
|
67
67
|
* `toLocaleLowerCase`, not `toLowerCase`: the invariant mapping turns Turkish
|
|
68
68
|
* "I" into "i" not "ı", so "ışık" would never match "IŞIK". Both sides fold here.
|
|
69
69
|
*/
|
|
70
|
-
declare function foldCascaderText(text: string): string;
|
|
70
|
+
export declare function foldCascaderText(text: string): string;
|
|
71
71
|
/** Folds once so callers can hoist the cost out of a per-node loop. */
|
|
72
|
-
declare function normalizeCascaderQuery(query: string): string;
|
|
72
|
+
export declare function normalizeCascaderQuery(query: string): string;
|
|
73
73
|
/** Case-insensitive substring over label and keywords; pre-fold the query. */
|
|
74
|
-
declare function matchesCascaderQuery<T>(node: CascaderNode<T>, normalized: string): boolean;
|
|
74
|
+
export declare function matchesCascaderQuery<T>(node: CascaderNode<T>, normalized: string): boolean;
|
|
75
75
|
/** Filters one level in place-order. Returns the input when the query is empty. */
|
|
76
|
-
declare function filterCascaderLevel<T>(nodes: readonly CascaderNode<T>[], query: string, matches?: (node: CascaderNode<T>, normalized: string) => boolean): CascaderNode<T>[];
|
|
76
|
+
export declare function filterCascaderLevel<T>(nodes: readonly CascaderNode<T>[], query: string, matches?: (node: CascaderNode<T>, normalized: string) => boolean): CascaderNode<T>[];
|
|
77
77
|
/** Searches every node, optionally under `within`, in one pass over `all`. */
|
|
78
|
-
declare function searchCascaderDeep<T>(index: CascaderIndex<T>, query: string, options?: {
|
|
78
|
+
export declare function searchCascaderDeep<T>(index: CascaderIndex<T>, query: string, options?: {
|
|
79
79
|
within?: string | null;
|
|
80
80
|
limit?: number;
|
|
81
81
|
matches?: (node: CascaderNode<T>, normalized: string) => boolean;
|
|
@@ -84,9 +84,9 @@ declare function searchCascaderDeep<T>(index: CascaderIndex<T>, query: string, o
|
|
|
84
84
|
* Flattens the tree into tree mode's visible rows. A `sentinels` paging row
|
|
85
85
|
* COUNTS as a sibling in `aria-setsize`: it holds an index of its own.
|
|
86
86
|
*/
|
|
87
|
-
declare function flattenCascaderTree<T>(index: CascaderIndex<T>, expanded: ReadonlySet<string>, sentinels?: ReadonlySet<string>): CascaderFlatNode<T>[];
|
|
87
|
+
export declare function flattenCascaderTree<T>(index: CascaderIndex<T>, expanded: ReadonlySet<string>, sentinels?: ReadonlySet<string>): CascaderFlatNode<T>[];
|
|
88
88
|
/** Shortens a path; the ellipsis segment still carries the hidden nodes. */
|
|
89
|
-
declare function collapseCascaderPath<T>(path: readonly CascaderNode<T>[], options?: {
|
|
89
|
+
export declare function collapseCascaderPath<T>(path: readonly CascaderNode<T>[], options?: {
|
|
90
90
|
maxSegments?: number;
|
|
91
91
|
collapse?: CascaderCollapse;
|
|
92
92
|
}): CascaderPathSegment<T>[];
|
|
@@ -94,7 +94,7 @@ declare function collapseCascaderPath<T>(path: readonly CascaderNode<T>[], optio
|
|
|
94
94
|
* Every LOADED node under `value`, root first. Reaching an unfetched descendant
|
|
95
95
|
* would mean a network request per level of the subtree on every selection.
|
|
96
96
|
*/
|
|
97
|
-
declare function collectCascaderSubtree<T>(index: CascaderIndex<T>, value: string): CascaderNode<T>[];
|
|
97
|
+
export declare function collectCascaderSubtree<T>(index: CascaderIndex<T>, value: string): CascaderNode<T>[];
|
|
98
98
|
/**
|
|
99
99
|
* Toggles `value` with its loaded subtree, then reconciles ancestors. One flat
|
|
100
100
|
* array, no hidden "checked" state: a branch is in the selection exactly when
|
|
@@ -102,40 +102,39 @@ declare function collectCascaderSubtree<T>(index: CascaderIndex<T>, value: strin
|
|
|
102
102
|
* O(1) lookup. Nodes `isSelectable` rejects are skipped down AND ignored up,
|
|
103
103
|
* the pressed node excepted.
|
|
104
104
|
*/
|
|
105
|
-
declare function applyCascadeSelection<T>(index: CascaderIndex<T>, selected: readonly string[], value: string, select: boolean, isSelectable?: (node: CascaderNode<T>) => boolean): string[];
|
|
105
|
+
export declare function applyCascadeSelection<T>(index: CascaderIndex<T>, selected: readonly string[], value: string, select: boolean, isSelectable?: (node: CascaderNode<T>) => boolean): string[];
|
|
106
106
|
/**
|
|
107
107
|
* How many selected nodes each value has BELOW it, itself excluded. Walks UP
|
|
108
108
|
* from each selection: a per-row subtree scan would be quadratic and re-paid.
|
|
109
109
|
*/
|
|
110
|
-
declare function getCascaderSelectedDescendants<T>(index: CascaderIndex<T>, selected: readonly string[]): Map<string, number>;
|
|
110
|
+
export declare function getCascaderSelectedDescendants<T>(index: CascaderIndex<T>, selected: readonly string[]): Map<string, number>;
|
|
111
111
|
/** The PARTIALLY selected values, read off counts the caller already holds. */
|
|
112
|
-
declare function getCascaderIndeterminateFrom(counts: ReadonlyMap<string, number>, selected: readonly string[]): Set<string>;
|
|
112
|
+
export declare function getCascaderIndeterminateFrom(counts: ReadonlyMap<string, number>, selected: readonly string[]): Set<string>;
|
|
113
113
|
/** The one-call form; the root uses the two halves above and its own counts. */
|
|
114
|
-
declare function getCascaderIndeterminate<T>(index: CascaderIndex<T>, selected: readonly string[]): Set<string>;
|
|
114
|
+
export declare function getCascaderIndeterminate<T>(index: CascaderIndex<T>, selected: readonly string[]): Set<string>;
|
|
115
115
|
/** How `getCascaderCheckedValues` condenses a full-closure selection. */
|
|
116
|
-
type CascaderCheckedStrategy = "all" | "parent" | "child";
|
|
116
|
+
export type CascaderCheckedStrategy = "all" | "parent" | "child";
|
|
117
117
|
/**
|
|
118
118
|
* The cascade selection under a reporting strategy. DERIVED OUTPUT ONLY: the
|
|
119
119
|
* STORED value stays the full closure, which keeps a checked state an O(1)
|
|
120
120
|
* lookup. `"all"` is the closure; `"parent"` drops a value whose parent is
|
|
121
121
|
* selected; `"child"` drops one with a selected child.
|
|
122
122
|
*/
|
|
123
|
-
declare function getCascaderCheckedValues<T>(index: CascaderIndex<T>, selected: readonly string[], strategy: CascaderCheckedStrategy): readonly string[];
|
|
123
|
+
export declare function getCascaderCheckedValues<T>(index: CascaderIndex<T>, selected: readonly string[], strategy: CascaderCheckedStrategy): readonly string[];
|
|
124
124
|
/** Values in `nodes` whose label collides, so the chip must show its path. */
|
|
125
|
-
declare function findAmbiguousCascaderLabels<T>(nodes: readonly CascaderNode<T>[]): Set<string>;
|
|
125
|
+
export declare function findAmbiguousCascaderLabels<T>(nodes: readonly CascaderNode<T>[]): Set<string>;
|
|
126
126
|
/** Warns once per `key`, never in production, never by throwing. */
|
|
127
|
-
declare function warnCascaderOnce(key: string, message: string): void;
|
|
127
|
+
export declare function warnCascaderOnce(key: string, message: string): void;
|
|
128
128
|
/** Empties the ledger. Tests only; a warning is meant to be seen once. */
|
|
129
|
-
declare function resetCascaderWarnings(): void;
|
|
129
|
+
export declare function resetCascaderWarnings(): void;
|
|
130
130
|
/** What a dev-time scan of the consumer's `items` found wrong with it. */
|
|
131
|
-
interface CascaderDataIssues {
|
|
131
|
+
export interface CascaderDataIssues {
|
|
132
132
|
/** Values appearing more than once. First wins, so a duplicate drops a row. */
|
|
133
133
|
duplicates: string[];
|
|
134
134
|
/** Values on a `getParent` cycle. Depth is clamped, so the tree reads wrong. */
|
|
135
135
|
cycles: string[];
|
|
136
136
|
}
|
|
137
137
|
/** Dev-time scan, kept out of `buildCascaderIndex` so the build stays hot. */
|
|
138
|
-
declare function findCascaderDataIssues<T>(items: readonly CascaderNode<T>[] | undefined, getParent?: (node: CascaderNode<T>) => string | null | undefined): CascaderDataIssues;
|
|
138
|
+
export declare function findCascaderDataIssues<T>(items: readonly CascaderNode<T>[] | undefined, getParent?: (node: CascaderNode<T>) => string | null | undefined): CascaderDataIssues;
|
|
139
139
|
//#endregion
|
|
140
|
-
export { CASCADER_LIST_HEIGHT_CLASS, CASCADER_LIST_PAD_CLASS, CASCADER_MORE_PREFIX, CASCADER_ROOT_KEY, CASCADER_ROWS_CLASS, CASCADER_SCROLL_CLASS, CascaderCheckedStrategy, CascaderDataIssues, applyCascadeSelection, buildCascaderIndex, collapseCascaderPath, collectCascaderSubtree, createCascaderMoreNode, filterCascaderLevel, findAmbiguousCascaderLabels, findCascaderDataIssues, flattenCascaderTree, foldCascaderText, getCascaderCheckedValues, getCascaderChildren, getCascaderCount, getCascaderFooterStops, getCascaderIndeterminate, getCascaderIndeterminateFrom, getCascaderMoreParent, getCascaderPath, getCascaderSelectedDescendants, getCascaderTabTarget, isCascaderBranch, isCascaderMoreNode, isCascaderRtl, isCascaderSelectable, matchesCascaderQuery, mergeCascaderIndex, normalizeCascaderQuery, resetCascaderWarnings, searchCascaderDeep, warnCascaderOnce };
|
|
141
140
|
//# sourceMappingURL=cascader-lib.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cascader-lib.d.ts","names":[],"sources":["../../../../src/components/reui/cascader/cascader-lib.tsx"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"cascader-lib.d.ts","names":[],"sources":["../../../../src/components/reui/cascader/cascader-lib.tsx"],"mappings":";;;qBAYa;;;;;qBAMA;;;;;;;;;;;qBAiBA;;;;;;qBAQA;;qBAGA;;qBAIA;;wBAiCG,uBAAuB,OAAO,cAAc;;wBAS5C,qBACd,OAAO,aACP,MAAM,gBACN,qBACC;;;;;wBA0Ba,cAAc,SAAS,SAAS;;;;;wBAYhC,uBAAuB,aACrC,mBACA,uBACC,aAAa;wBAUA,mBAAmB,GAAG,MAAM,aAAa;;wBAKzC,sBAAsB,GAAG,MAAM,aAAa;;wBAM5C,mBAAmB,aACjC,gBAAgB,aAAa,kBAC7B,aAAa,MAAM,aAAa,mCAC/B,cAAc;;;;;;wBAgGD,mBAAmB,aACjC,MAAM,cAAc,IACpB,OAAO,6BAA6B,aAAa,OACjD,WAAW,oBAAoB,aAAa,MAC3C,cAAc;;wBAgFD,oBAAoB,GAClC,OAAO,cAAc,IACrB,yBACC,aAAa;;wBAKA,iBAAiB,GAAG,OAAO,cAAc,IAAI,MAAM,aAAa;;wBAMhE,iBAAiB,GAAG,OAAO,cAAc,IAAI,MAAM,aAAa;;wBAMhE,qBAAqB,GACnC,OAAO,cAAc,IACrB,MAAM,aAAa,IACnB,YAAY,mBAAmB;;wBAuBjB,gBAAgB,GAC9B,OAAO,cAAc,IACrB,mCACC,aAAa;;;;;wBAmBA,iBAAiB;;wBAKjB,uBAAuB;;wBAKvB,qBAAqB,GAAG,MAAM,aAAa,IAAI;;wBAa/C,oBAAoB,GAClC,gBAAgB,aAAa,MAC7B,eACA,WAAU,MAAM,aAAa,IAAI,iCAChC,aAAa;;wBAOA,mBAAmB,GACjC,OAAO,cAAc,IACrB,eACA;EACE;EACA;EACA,WAAW,MAAM,aAAa,IAAI;IAEnC,aAAa;;;;;wBA+CA,oBAAoB,GAClC,OAAO,cAAc,IACrB,UAAU,qBACV,YAAY,sBACX,iBAAiB;;wBAuCJ,qBAAqB,GACnC,eAAe,aAAa,MAC5B;EAAW;EAAsB,WAAW;IAC3C,oBAAoB;;;;;wBAqCP,uBAAuB,GACrC,OAAO,cAAc,IACrB,gBACC,aAAa;;;;;;;;wBAwBA,sBAAsB,GACpC,OAAO,cAAc,IACrB,6BACA,eACA,iBACA,gBAAe,MAAM,aAAa;;;;;wBA6CpB,+BAA+B,GAC7C,OAAO,cAAc,IACrB,8BACC;;wBAiBa,6BACd,QAAQ,6BACR,8BACC;;wBAYa,yBAAyB,GACvC,OAAO,cAAc,IACrB,8BACC;;YAKS;;;;;;;wBAQI,yBAAyB,GACvC,OAAO,cAAc,IACrB,6BACA,UAAU;;wBAoBI,4BAA4B,GAAG,gBAAgB,aAAa,OAAO;;wBAyBnE,iBAAiB,aAAa;;wBAQ9B;;iBAKC;;EAEf;;EAEA;;;wBAIc,uBAAuB,GACrC,gBAAgB,aAAa,kBAC7B,aAAa,MAAM,aAAa,mCAC/B"}
|
|
@@ -3,18 +3,18 @@ import * as React$1 from "react";
|
|
|
3
3
|
import { useRender } from "@base-ui/react/use-render";
|
|
4
4
|
import { Combobox } from "@base-ui/react";
|
|
5
5
|
//#region src/components/reui/cascader/cascader-nav.d.ts
|
|
6
|
-
type CascaderNavProps = useRender.ComponentProps<"div">;
|
|
6
|
+
export type CascaderNavProps = useRender.ComponentProps<"div">;
|
|
7
7
|
/**
|
|
8
8
|
* Header: back control, search input, and the separator under them. The
|
|
9
9
|
* breadcrumb belongs with the list below: it describes the rows, not the field.
|
|
10
10
|
*/
|
|
11
11
|
declare function CascaderNav({ className, ...props }: CascaderNavProps): React$1.ReactElement<unknown, string | React$1.JSXElementConstructor<any>>;
|
|
12
|
-
interface CascaderBackProps extends Omit<useRender.ComponentProps<"button">, "children"> {
|
|
12
|
+
export interface CascaderBackProps extends Omit<useRender.ComponentProps<"button">, "children"> {
|
|
13
13
|
children?: React$1.ReactNode;
|
|
14
14
|
}
|
|
15
15
|
/** Pops one level. Renders nothing at the root, so no dead header space. */
|
|
16
16
|
declare function CascaderBack({ className, children, ...props }: CascaderBackProps): React$1.ReactElement<unknown, string | React$1.JSXElementConstructor<any>> | null;
|
|
17
|
-
interface CascaderBreadcrumbProps extends Omit<useRender.ComponentProps<"nav">, "children"> {
|
|
17
|
+
export interface CascaderBreadcrumbProps extends Omit<useRender.ComponentProps<"nav">, "children"> {
|
|
18
18
|
/** Maximum visible node segments before the middle collapses. */
|
|
19
19
|
maxSegments?: number;
|
|
20
20
|
collapse?: CascaderCollapse;
|
|
@@ -28,7 +28,7 @@ interface CascaderBreadcrumbProps extends Omit<useRender.ComponentProps<"nav">,
|
|
|
28
28
|
* only the places you are not.
|
|
29
29
|
*/
|
|
30
30
|
declare function CascaderBreadcrumb({ className, maxSegments, collapse, interactive, ...props }: CascaderBreadcrumbProps): React$1.ReactElement<unknown, string | React$1.JSXElementConstructor<any>> | null;
|
|
31
|
-
interface CascaderInputProps extends Combobox.Input.Props {
|
|
31
|
+
export interface CascaderInputProps extends Combobox.Input.Props {
|
|
32
32
|
/** Renders the back control inline, before the field. Defaults to true. */
|
|
33
33
|
showBack?: boolean;
|
|
34
34
|
}
|
|
@@ -37,7 +37,7 @@ interface CascaderInputProps extends Combobox.Input.Props {
|
|
|
37
37
|
* the refill from the committed selection that would fight every level swap.
|
|
38
38
|
*/
|
|
39
39
|
declare function CascaderInput({ className, showBack, placeholder, onKeyDown, "aria-describedby": ariaDescribedBy, ...props }: CascaderInputProps): React$1.JSX.Element;
|
|
40
|
-
interface CascaderValueProps extends Omit<useRender.ComponentProps<"span">, "children"> {
|
|
40
|
+
export interface CascaderValueProps extends Omit<useRender.ComponentProps<"span">, "children"> {
|
|
41
41
|
/** `path` shows the full trail, `leaf` only the node, `count` only a total. */
|
|
42
42
|
display?: CascaderValueDisplay;
|
|
43
43
|
maxSegments?: number;
|
|
@@ -55,5 +55,5 @@ interface CascaderValueProps extends Omit<useRender.ComponentProps<"span">, "chi
|
|
|
55
55
|
*/
|
|
56
56
|
declare function CascaderValue({ className, display, maxSegments, collapse, separator, showIcon, placeholder, children, ...props }: CascaderValueProps): React$1.ReactElement<unknown, string | React$1.JSXElementConstructor<any>>;
|
|
57
57
|
//#endregion
|
|
58
|
-
export { CascaderBack,
|
|
58
|
+
export { CascaderBack, CascaderBreadcrumb, CascaderInput, CascaderNav, CascaderValue };
|
|
59
59
|
//# sourceMappingURL=cascader-nav.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cascader-nav.d.ts","names":[],"sources":["../../../../src/components/reui/cascader/cascader-nav.tsx"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"cascader-nav.d.ts","names":[],"sources":["../../../../src/components/reui/cascader/cascader-nav.tsx"],"mappings":";;;;;YAgCY,mBAAmB,UAAU;;;;;iBAMhC,cAAc,cAAc,SAAS,mBAAgB,QAAA,+BAAA,QAAA;iBAsB7C,0BAA0B,KAAK,UAAU;EACxD,WAAW,QAAM;;;iBAIV,eAAe,WAAW,aAAa,SAAS,oBAAiB,QAAA,+BAAA,QAAA;iBAmCzD,gCAAgC,KAAK,UAAU;;EAE9D;EACA,WAAW;;EAEX;;;;;;;;iBASO,qBACP,WACA,aACA,UACA,gBACG,SACF,0BAAuB,QAAA,+BAAA,QAAA;iBAqFT,2BAA2B,SAAkB,MAAM;;EAElE;;;;;;iBAUO,gBACP,WACA,UACA,aACA,+BACoB,oBACjB,SACF,qBAAkB,QAAA,IAAA;iBA+OJ,2BAA2B,KAAK,UAAU;;EAEzD,UAAU;EACV;EACA,WAAW;EACX,YAAY,QAAM;;EAElB;EACA,cAAc,QAAM;;EAEpB,YAAY,UAAU,gBAAgB,MAAM,mBAAmB,QAAM;;;;;;iBAO9D,gBACP,WACA,SACA,aACA,UACA,WACA,UACA,aACA,aACG,SACF,qBAAkB,QAAA,+BAAA,QAAA"}
|
|
@@ -4,8 +4,8 @@ import { collapseCascaderPath, getCascaderFooterStops, getCascaderPath, isCascad
|
|
|
4
4
|
import { resolveCascaderSearchLabel } from "./cascader-i18n.js";
|
|
5
5
|
import * as React$1 from "react";
|
|
6
6
|
import { cn } from "@kumix/utils";
|
|
7
|
-
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
8
7
|
import { ChevronLeftIcon, ChevronRightIcon } from "lucide-react";
|
|
8
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
import { mergeProps } from "@base-ui/react/merge-props";
|
|
10
10
|
import { useRender } from "@base-ui/react/use-render";
|
|
11
11
|
import { Combobox } from "@base-ui/react";
|