@kumix/ui 0.4.4 → 0.6.0
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 +18 -12
- package/dist/{account-avatar--0_0u0WW.js → account-avatar-BHh_21aQ.js} +1 -1
- package/dist/account-avatar-BHh_21aQ.js.map +1 -0
- package/dist/{cascader-types-Bh_kJ3Qw.d.ts → cascader-types-D2DFznHz.d.ts} +5 -5
- package/dist/cascader-types-D2DFznHz.d.ts.map +1 -0
- package/dist/components/agents/agent-activity/activity-row.d.ts +3 -2
- package/dist/components/agents/agent-activity/activity-row.d.ts.map +1 -1
- package/dist/components/agents/agent-activity/activity-row.js +24 -15
- package/dist/components/agents/agent-activity/activity-row.js.map +1 -1
- package/dist/components/agents/agent-activity/index.d.ts +3 -3
- package/dist/components/agents/agent-activity/index.d.ts.map +1 -1
- package/dist/components/agents/agent-activity/index.js +74 -28
- package/dist/components/agents/agent-activity/index.js.map +1 -1
- package/dist/components/agents/agent-code.js +1 -1
- package/dist/components/agents/agent-disclosure.js +2 -2
- package/dist/components/agents/ai-sidebar.d.ts +23 -1
- package/dist/components/agents/ai-sidebar.d.ts.map +1 -1
- package/dist/components/agents/ai-sidebar.js +53 -21
- package/dist/components/agents/ai-sidebar.js.map +1 -1
- package/dist/components/agents/approval-card/index.d.ts +24 -2
- package/dist/components/agents/approval-card/index.d.ts.map +1 -1
- package/dist/components/agents/approval-card/index.js +64 -43
- package/dist/components/agents/approval-card/index.js.map +1 -1
- package/dist/components/agents/chat-app.js +1 -1
- package/dist/components/agents/citations.d.ts +8 -1
- package/dist/components/agents/citations.d.ts.map +1 -1
- package/dist/components/agents/citations.js +15 -8
- package/dist/components/agents/citations.js.map +1 -1
- package/dist/components/agents/code-block.d.ts +11 -2
- package/dist/components/agents/code-block.d.ts.map +1 -1
- package/dist/components/agents/code-block.js +19 -9
- package/dist/components/agents/code-block.js.map +1 -1
- package/dist/components/agents/file-diff.d.ts +13 -2
- package/dist/components/agents/file-diff.d.ts.map +1 -1
- package/dist/components/agents/file-diff.js +23 -12
- package/dist/components/agents/file-diff.js.map +1 -1
- package/dist/components/agents/image-generation.d.ts +15 -1
- package/dist/components/agents/image-generation.d.ts.map +1 -1
- package/dist/components/agents/image-generation.js +23 -17
- package/dist/components/agents/image-generation.js.map +1 -1
- package/dist/components/agents/loading-states/agent-progress.d.ts +4 -1
- package/dist/components/agents/loading-states/agent-progress.d.ts.map +1 -1
- package/dist/components/agents/loading-states/agent-progress.js +30 -9
- package/dist/components/agents/loading-states/agent-progress.js.map +1 -1
- package/dist/components/agents/loading-states/reasoning-text.d.ts +4 -1
- package/dist/components/agents/loading-states/reasoning-text.d.ts.map +1 -1
- package/dist/components/agents/loading-states/reasoning-text.js +14 -12
- package/dist/components/agents/loading-states/reasoning-text.js.map +1 -1
- package/dist/components/agents/loading-states/thinking-shimmer.d.ts +4 -1
- package/dist/components/agents/loading-states/thinking-shimmer.d.ts.map +1 -1
- package/dist/components/agents/loading-states/thinking-shimmer.js +6 -3
- package/dist/components/agents/loading-states/thinking-shimmer.js.map +1 -1
- package/dist/components/agents/message-bubble.d.ts +9 -1
- package/dist/components/agents/message-bubble.d.ts.map +1 -1
- package/dist/components/agents/message-bubble.js +18 -10
- package/dist/components/agents/message-bubble.js.map +1 -1
- package/dist/components/agents/message-scroller.d.ts +12 -1
- package/dist/components/agents/message-scroller.d.ts.map +1 -1
- package/dist/components/agents/message-scroller.js +29 -10
- package/dist/components/agents/message-scroller.js.map +1 -1
- package/dist/components/agents/message.d.ts +11 -3
- package/dist/components/agents/message.d.ts.map +1 -1
- package/dist/components/agents/message.js +17 -9
- package/dist/components/agents/message.js.map +1 -1
- package/dist/components/agents/prompt-input.d.ts +13 -1
- package/dist/components/agents/prompt-input.d.ts.map +1 -1
- package/dist/components/agents/prompt-input.js +22 -12
- package/dist/components/agents/prompt-input.js.map +1 -1
- package/dist/components/agents/streaming-response.d.ts +15 -2
- package/dist/components/agents/streaming-response.d.ts.map +1 -1
- package/dist/components/agents/streaming-response.js +26 -18
- package/dist/components/agents/streaming-response.js.map +1 -1
- package/dist/components/agents/todo-list.d.ts +15 -1
- package/dist/components/agents/todo-list.d.ts.map +1 -1
- package/dist/components/agents/todo-list.js +39 -27
- package/dist/components/agents/todo-list.js.map +1 -1
- package/dist/components/agents/tool-approval.d.ts +20 -2
- package/dist/components/agents/tool-approval.d.ts.map +1 -1
- package/dist/components/agents/tool-approval.js +29 -21
- package/dist/components/agents/tool-approval.js.map +1 -1
- package/dist/components/agents/tool-result.d.ts +15 -2
- package/dist/components/agents/tool-result.d.ts.map +1 -1
- package/dist/components/agents/tool-result.js +21 -15
- package/dist/components/agents/tool-result.js.map +1 -1
- package/dist/components/agents/voice-orb.d.ts +7 -1
- package/dist/components/agents/voice-orb.d.ts.map +1 -1
- package/dist/components/agents/voice-orb.js +8 -5
- package/dist/components/agents/voice-orb.js.map +1 -1
- package/dist/components/charts/bar-chart/context.d.ts +24 -9
- package/dist/components/charts/bar-chart/context.d.ts.map +1 -1
- package/dist/components/charts/bar-chart/context.js +16 -5
- package/dist/components/charts/bar-chart/context.js.map +1 -1
- package/dist/components/charts/bar-chart/legend.js +2 -2
- package/dist/components/charts/bar-chart/legend.js.map +1 -1
- package/dist/components/charts/bar-chart/plot.js +23 -13
- package/dist/components/charts/bar-chart/plot.js.map +1 -1
- package/dist/components/charts/bar-chart/tooltip.d.ts +1 -1
- package/dist/components/charts/bar-chart/tooltip.js +5 -4
- package/dist/components/charts/bar-chart/tooltip.js.map +1 -1
- package/dist/components/charts/bar-chart.d.ts +5 -4
- package/dist/components/charts/bar-chart.d.ts.map +1 -1
- package/dist/components/charts/bar-chart.js +9 -6
- package/dist/components/charts/bar-chart.js.map +1 -1
- package/dist/components/charts/bump-chart/context.d.ts +1 -1
- package/dist/components/charts/bump-chart/context.js +1 -1
- package/dist/components/charts/bump-chart/legend.js +4 -4
- package/dist/components/charts/bump-chart/legend.js.map +1 -1
- package/dist/components/charts/bump-chart/plot.js +1 -1
- package/dist/components/charts/bump-chart/point.d.ts +1 -1
- package/dist/components/charts/bump-chart/point.js +15 -13
- package/dist/components/charts/bump-chart/point.js.map +1 -1
- package/dist/components/charts/bump-chart/series.d.ts +2 -2
- package/dist/components/charts/bump-chart/series.js +3 -3
- package/dist/components/charts/bump-chart.d.ts +2 -2
- package/dist/components/charts/bump-chart.d.ts.map +1 -1
- package/dist/components/charts/bump-chart.js +4 -4
- package/dist/components/charts/bump-chart.js.map +1 -1
- package/dist/components/charts/candlestick-chart/context.d.ts +18 -1
- package/dist/components/charts/candlestick-chart/context.d.ts.map +1 -1
- package/dist/components/charts/candlestick-chart/context.js +17 -3
- package/dist/components/charts/candlestick-chart/context.js.map +1 -1
- package/dist/components/charts/candlestick-chart/legend.d.ts +1 -1
- package/dist/components/charts/candlestick-chart/legend.js +10 -10
- package/dist/components/charts/candlestick-chart/legend.js.map +1 -1
- package/dist/components/charts/candlestick-chart/plot.d.ts.map +1 -1
- package/dist/components/charts/candlestick-chart/plot.js +16 -17
- package/dist/components/charts/candlestick-chart/plot.js.map +1 -1
- package/dist/components/charts/candlestick-chart.d.ts +2 -2
- package/dist/components/charts/candlestick-chart.js +3 -3
- package/dist/components/charts/candlestick-chart.js.map +1 -1
- package/dist/components/charts/composition-chart/context.d.ts +1 -1
- package/dist/components/charts/composition-chart/context.js +1 -1
- package/dist/components/charts/composition-chart/legend.js +4 -4
- package/dist/components/charts/composition-chart/legend.js.map +1 -1
- package/dist/components/charts/composition-chart/plot.js +9 -9
- package/dist/components/charts/composition-chart/plot.js.map +1 -1
- package/dist/components/charts/composition-chart/tooltip-content.js +4 -4
- package/dist/components/charts/composition-chart/tooltip-content.js.map +1 -1
- package/dist/components/charts/composition-chart.d.ts +2 -2
- package/dist/components/charts/composition-chart.js +3 -3
- package/dist/components/charts/composition-chart.js.map +1 -1
- package/dist/components/charts/donut-chart/center.d.ts +1 -1
- package/dist/components/charts/donut-chart/center.d.ts.map +1 -1
- package/dist/components/charts/donut-chart/center.js +7 -7
- package/dist/components/charts/donut-chart/center.js.map +1 -1
- package/dist/components/charts/donut-chart/context.d.ts +13 -2
- package/dist/components/charts/donut-chart/context.d.ts.map +1 -1
- package/dist/components/charts/donut-chart/context.js +1 -1
- package/dist/components/charts/donut-chart/legend.d.ts +1 -1
- package/dist/components/charts/donut-chart/legend.js +3 -3
- package/dist/components/charts/donut-chart/plot.js +3 -3
- package/dist/components/charts/donut-chart.d.ts +3 -3
- package/dist/components/charts/donut-chart.js +3 -3
- package/dist/components/charts/donut-chart.js.map +1 -1
- package/dist/components/charts/funnel-chart.d.ts +19 -1
- package/dist/components/charts/funnel-chart.d.ts.map +1 -1
- package/dist/components/charts/funnel-chart.js +45 -30
- package/dist/components/charts/funnel-chart.js.map +1 -1
- package/dist/components/charts/heat-calendar/grid.js +12 -5
- package/dist/components/charts/heat-calendar/grid.js.map +1 -1
- package/dist/components/charts/heat-calendar/legend.js +9 -6
- package/dist/components/charts/heat-calendar/legend.js.map +1 -1
- package/dist/components/charts/heat-calendar/tooltip.d.ts +1 -1
- package/dist/components/charts/heat-calendar/tooltip.js +10 -7
- package/dist/components/charts/heat-calendar/tooltip.js.map +1 -1
- package/dist/components/charts/heat-calendar.d.ts +2 -2
- package/dist/components/charts/heat-calendar.js +3 -3
- package/dist/components/charts/heat-calendar.js.map +1 -1
- package/dist/components/charts/line-chart/context.d.ts +21 -4
- package/dist/components/charts/line-chart/context.d.ts.map +1 -1
- package/dist/components/charts/line-chart/context.js +19 -6
- package/dist/components/charts/line-chart/context.js.map +1 -1
- package/dist/components/charts/line-chart/legend.js +2 -2
- package/dist/components/charts/line-chart/legend.js.map +1 -1
- package/dist/components/charts/line-chart/plot.js +26 -16
- package/dist/components/charts/line-chart/plot.js.map +1 -1
- package/dist/components/charts/line-chart/tooltip.d.ts +1 -1
- package/dist/components/charts/line-chart/tooltip.js +7 -6
- package/dist/components/charts/line-chart/tooltip.js.map +1 -1
- package/dist/components/charts/line-chart.d.ts +6 -5
- package/dist/components/charts/line-chart.d.ts.map +1 -1
- package/dist/components/charts/line-chart.js +9 -6
- package/dist/components/charts/line-chart.js.map +1 -1
- package/dist/components/charts/liquidity-heatmap.d.ts +17 -1
- package/dist/components/charts/liquidity-heatmap.d.ts.map +1 -1
- package/dist/components/charts/liquidity-heatmap.js +52 -27
- package/dist/components/charts/liquidity-heatmap.js.map +1 -1
- package/dist/components/charts/order-book/depth-row.d.ts +1 -1
- package/dist/components/charts/order-book/depth-row.js +2 -2
- package/dist/components/charts/order-book.d.ts +26 -1
- package/dist/components/charts/order-book.d.ts.map +1 -1
- package/dist/components/charts/order-book.js +84 -33
- package/dist/components/charts/order-book.js.map +1 -1
- package/dist/components/charts/price-target-fan/header.js +5 -5
- package/dist/components/charts/price-target-fan/header.js.map +1 -1
- package/dist/components/charts/price-target-fan/plot.d.ts.map +1 -1
- package/dist/components/charts/price-target-fan/plot.js +21 -11
- package/dist/components/charts/price-target-fan/plot.js.map +1 -1
- package/dist/components/charts/price-target-fan/series.d.ts.map +1 -1
- package/dist/components/charts/price-target-fan/series.js +11 -7
- package/dist/components/charts/price-target-fan/series.js.map +1 -1
- package/dist/components/charts/price-target-fan/tooltip.d.ts +1 -1
- package/dist/components/charts/price-target-fan/tooltip.js +2 -2
- package/dist/components/charts/price-target-fan.d.ts +2 -2
- package/dist/components/charts/price-target-fan.js +4 -4
- package/dist/components/charts/price-target-fan.js.map +1 -1
- package/dist/components/charts/returns-calendar/grid.js +16 -9
- package/dist/components/charts/returns-calendar/grid.js.map +1 -1
- package/dist/components/charts/returns-calendar/tooltip.d.ts +1 -1
- package/dist/components/charts/returns-calendar/tooltip.js +3 -3
- package/dist/components/charts/returns-calendar.d.ts +9 -2
- package/dist/components/charts/returns-calendar.d.ts.map +1 -1
- package/dist/components/charts/returns-calendar.js +3 -3
- package/dist/components/charts/returns-calendar.js.map +1 -1
- package/dist/components/charts/sankey-chart/context.d.ts +1 -1
- package/dist/components/charts/sankey-chart/context.js +1 -1
- package/dist/components/charts/sankey-chart/plot.js +9 -6
- package/dist/components/charts/sankey-chart/plot.js.map +1 -1
- package/dist/components/charts/sankey-chart/tooltip.d.ts +1 -1
- package/dist/components/charts/sankey-chart/tooltip.js +16 -19
- package/dist/components/charts/sankey-chart/tooltip.js.map +1 -1
- package/dist/components/charts/sankey-chart.d.ts +3 -3
- package/dist/components/charts/sankey-chart.d.ts.map +1 -1
- package/dist/components/charts/sankey-chart.js +16 -15
- package/dist/components/charts/sankey-chart.js.map +1 -1
- package/dist/components/charts/sparkline.d.ts +19 -2
- package/dist/components/charts/sparkline.d.ts.map +1 -1
- package/dist/components/charts/sparkline.js +34 -14
- package/dist/components/charts/sparkline.js.map +1 -1
- package/dist/components/charts/status-bar/legend.js +3 -3
- package/dist/components/charts/status-bar/legend.js.map +1 -1
- package/dist/components/charts/status-bar/plot.js +6 -6
- package/dist/components/charts/status-bar/plot.js.map +1 -1
- package/dist/components/charts/status-bar/tooltip.d.ts +1 -1
- package/dist/components/charts/status-bar/tooltip.js +2 -2
- package/dist/components/charts/status-bar.d.ts +3 -3
- package/dist/components/charts/status-bar.d.ts.map +1 -1
- package/dist/components/charts/status-bar.js +11 -9
- package/dist/components/charts/status-bar.js.map +1 -1
- package/dist/components/charts/treemap/legend.js +3 -3
- package/dist/components/charts/treemap/legend.js.map +1 -1
- package/dist/components/charts/treemap/plot.d.ts +1 -1
- package/dist/components/charts/treemap/plot.js +6 -6
- package/dist/components/charts/treemap/plot.js.map +1 -1
- package/dist/components/charts/treemap/tile.d.ts +1 -1
- package/dist/components/charts/treemap/tile.js +5 -5
- package/dist/components/charts/treemap/tile.js.map +1 -1
- package/dist/components/charts/treemap/tooltip.d.ts +1 -1
- package/dist/components/charts/treemap/tooltip.js +4 -4
- package/dist/components/charts/treemap.d.ts +21 -4
- package/dist/components/charts/treemap.d.ts.map +1 -1
- package/dist/components/charts/treemap.js +12 -10
- package/dist/components/charts/treemap.js.map +1 -1
- package/dist/components/charts/volume-profile/plot.js +7 -7
- package/dist/components/charts/volume-profile/plot.js.map +1 -1
- package/dist/components/charts/volume-profile/summary.js +15 -21
- package/dist/components/charts/volume-profile/summary.js.map +1 -1
- package/dist/components/charts/volume-profile/tooltip.d.ts +1 -1
- package/dist/components/charts/volume-profile/tooltip.js +6 -6
- package/dist/components/charts/volume-profile/tooltip.js.map +1 -1
- package/dist/components/charts/volume-profile.d.ts +29 -4
- package/dist/components/charts/volume-profile.d.ts.map +1 -1
- package/dist/components/charts/volume-profile.js +18 -22
- package/dist/components/charts/volume-profile.js.map +1 -1
- package/dist/components/charts/xy/axis.js +1 -1
- package/dist/components/charts/xy/data-table.d.ts +4 -2
- package/dist/components/charts/xy/data-table.d.ts.map +1 -1
- package/dist/components/charts/xy/data-table.js +4 -4
- package/dist/components/charts/xy/data-table.js.map +1 -1
- package/dist/components/charts/xy/legend.d.ts +1 -1
- package/dist/components/charts/xy/tooltip-content.d.ts +1 -1
- package/dist/components/charts/xy/tooltip-content.js +5 -5
- package/dist/components/charts/xy/tooltip-content.js.map +1 -1
- package/dist/components/custom/confirm-dialog.js +1 -1
- package/dist/components/custom/toast.js +1 -1
- package/dist/components/motion/action-swap.js +2 -2
- package/dist/components/motion/adaptive-stepper.d.ts +11 -1
- package/dist/components/motion/adaptive-stepper.d.ts.map +1 -1
- package/dist/components/motion/adaptive-stepper.js +26 -16
- package/dist/components/motion/adaptive-stepper.js.map +1 -1
- package/dist/components/motion/alert.d.ts +8 -1
- package/dist/components/motion/alert.d.ts.map +1 -1
- package/dist/components/motion/alert.js +16 -10
- package/dist/components/motion/alert.js.map +1 -1
- package/dist/components/motion/animated-badge.js +5 -5
- package/dist/components/motion/animated-number.js +2 -2
- package/dist/components/motion/animated-sidebar.d.ts +12 -1
- package/dist/components/motion/animated-sidebar.d.ts.map +1 -1
- package/dist/components/motion/animated-sidebar.js +24 -14
- package/dist/components/motion/animated-sidebar.js.map +1 -1
- package/dist/components/motion/animated-toast-stack.d.ts +8 -1
- package/dist/components/motion/animated-toast-stack.d.ts.map +1 -1
- package/dist/components/motion/animated-toast-stack.js +14 -9
- package/dist/components/motion/animated-toast-stack.js.map +1 -1
- package/dist/components/motion/arc-picker.d.ts +11 -1
- package/dist/components/motion/arc-picker.d.ts.map +1 -1
- package/dist/components/motion/arc-picker.js +20 -13
- package/dist/components/motion/arc-picker.js.map +1 -1
- package/dist/components/motion/aspect-ratio.js +2 -2
- package/dist/components/motion/attachment-upload.d.ts +32 -1
- package/dist/components/motion/attachment-upload.d.ts.map +1 -1
- package/dist/components/motion/attachment-upload.js +106 -52
- package/dist/components/motion/attachment-upload.js.map +1 -1
- package/dist/components/motion/availability-scheduler/copy-menu.d.ts +5 -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 +4 -2
- package/dist/components/motion/availability-scheduler/day-row.d.ts.map +1 -1
- package/dist/components/motion/availability-scheduler/day-row.js +23 -15
- package/dist/components/motion/availability-scheduler/day-row.js.map +1 -1
- package/dist/components/motion/availability-scheduler/icon-button.js +2 -2
- package/dist/components/motion/availability-scheduler/index.d.ts +6 -3
- package/dist/components/motion/availability-scheduler/index.d.ts.map +1 -1
- package/dist/components/motion/availability-scheduler/index.js +30 -8
- package/dist/components/motion/availability-scheduler/index.js.map +1 -1
- package/dist/components/motion/availability-scheduler/time-select.d.ts +1 -1
- package/dist/components/motion/avatar-group.d.ts +10 -1
- package/dist/components/motion/avatar-group.d.ts.map +1 -1
- package/dist/components/motion/avatar-group.js +18 -9
- package/dist/components/motion/avatar-group.js.map +1 -1
- package/dist/components/motion/before-after-slider.d.ts +35 -0
- package/dist/components/motion/before-after-slider.d.ts.map +1 -0
- package/dist/components/motion/before-after-slider.js +352 -0
- package/dist/components/motion/before-after-slider.js.map +1 -0
- package/dist/components/motion/bloom-menu.d.ts +15 -1
- package/dist/components/motion/bloom-menu.d.ts.map +1 -1
- package/dist/components/motion/bloom-menu.js +32 -11
- package/dist/components/motion/bloom-menu.js.map +1 -1
- package/dist/components/motion/bookshelf.d.ts +46 -0
- package/dist/components/motion/bookshelf.d.ts.map +1 -0
- package/dist/components/motion/bookshelf.js +518 -0
- package/dist/components/motion/bookshelf.js.map +1 -0
- package/dist/components/motion/bottom-sheet.d.ts +9 -1
- package/dist/components/motion/bottom-sheet.d.ts.map +1 -1
- package/dist/components/motion/bottom-sheet.js +16 -13
- package/dist/components/motion/bottom-sheet.js.map +1 -1
- package/dist/components/motion/bounce-sidebar.d.ts +8 -1
- package/dist/components/motion/bounce-sidebar.d.ts.map +1 -1
- package/dist/components/motion/bounce-sidebar.js +8 -4
- package/dist/components/motion/bounce-sidebar.js.map +1 -1
- package/dist/components/motion/bouncy-accordion.d.ts.map +1 -1
- package/dist/components/motion/bouncy-accordion.js +45 -36
- package/dist/components/motion/bouncy-accordion.js.map +1 -1
- package/dist/components/motion/breadcrumb.d.ts +11 -2
- package/dist/components/motion/breadcrumb.d.ts.map +1 -1
- package/dist/components/motion/breadcrumb.js +29 -14
- package/dist/components/motion/breadcrumb.js.map +1 -1
- package/dist/components/motion/button/base.js +3 -3
- package/dist/components/motion/button/index.d.ts +2 -2
- package/dist/components/motion/button/index.js +2 -2
- package/dist/components/motion/button/magnetic.js +1 -1
- package/dist/components/motion/button/metallic.js +7 -7
- package/dist/components/motion/button/metallic.js.map +1 -1
- package/dist/components/motion/button/stateful.d.ts +10 -1
- package/dist/components/motion/button/stateful.d.ts.map +1 -1
- package/dist/components/motion/button/stateful.js +14 -6
- package/dist/components/motion/button/stateful.js.map +1 -1
- package/dist/components/motion/card-dealer.d.ts +8 -1
- package/dist/components/motion/card-dealer.d.ts.map +1 -1
- package/dist/components/motion/card-dealer.js +13 -9
- package/dist/components/motion/card-dealer.js.map +1 -1
- package/dist/components/motion/card-folder.d.ts +14 -1
- package/dist/components/motion/card-folder.d.ts.map +1 -1
- package/dist/components/motion/card-folder.js +27 -11
- package/dist/components/motion/card-folder.js.map +1 -1
- package/dist/components/motion/card.js +2 -2
- package/dist/components/motion/casino/game-parts.d.ts +2 -0
- package/dist/components/motion/casino/game-parts.js +207 -0
- package/dist/components/motion/casino/game-parts.js.map +1 -0
- package/dist/components/motion/center-morph-modal.d.ts +9 -1
- package/dist/components/motion/center-morph-modal.d.ts.map +1 -1
- package/dist/components/motion/center-morph-modal.js +22 -11
- package/dist/components/motion/center-morph-modal.js.map +1 -1
- package/dist/components/motion/checkbox.d.ts +9 -1
- package/dist/components/motion/checkbox.d.ts.map +1 -1
- package/dist/components/motion/checkbox.js +12 -5
- package/dist/components/motion/checkbox.js.map +1 -1
- package/dist/components/motion/chromatic-text-reveal.js +2 -2
- package/dist/components/motion/collapsible.js +3 -3
- package/dist/components/motion/color-picker.d.ts +23 -1
- package/dist/components/motion/color-picker.d.ts.map +1 -1
- package/dist/components/motion/color-picker.js +72 -37
- package/dist/components/motion/color-picker.js.map +1 -1
- package/dist/components/motion/color-selector.js +2 -2
- package/dist/components/motion/combobox/content.js +4 -4
- package/dist/components/motion/combobox/context.d.ts +2 -66
- package/dist/components/motion/combobox/context.js +1 -216
- package/dist/components/motion/combobox/list.d.ts.map +1 -1
- package/dist/components/motion/combobox/list.js +10 -9
- package/dist/components/motion/combobox/list.js.map +1 -1
- package/dist/components/motion/combobox/trigger.d.ts.map +1 -1
- package/dist/components/motion/combobox/trigger.js +8 -7
- package/dist/components/motion/combobox/trigger.js.map +1 -1
- package/dist/components/motion/combobox.d.ts +2 -2
- package/dist/components/motion/combobox.js +2 -2
- package/dist/components/motion/command-palette.d.ts +13 -1
- package/dist/components/motion/command-palette.d.ts.map +1 -1
- package/dist/components/motion/command-palette.js +28 -13
- package/dist/components/motion/command-palette.js.map +1 -1
- package/dist/components/motion/context-menu.d.ts +8 -1
- package/dist/components/motion/context-menu.d.ts.map +1 -1
- package/dist/components/motion/context-menu.js +17 -11
- package/dist/components/motion/context-menu.js.map +1 -1
- package/dist/components/motion/crash/crash-balloon.d.ts +10 -0
- package/dist/components/motion/crash/crash-balloon.d.ts.map +1 -0
- package/dist/components/motion/crash/crash-balloon.js +831 -0
- package/dist/components/motion/crash/crash-balloon.js.map +1 -0
- package/dist/components/motion/crash/crash-parts.d.ts +55 -0
- package/dist/components/motion/crash/crash-parts.d.ts.map +1 -0
- package/dist/components/motion/crash/crash-parts.js +4 -0
- package/dist/components/motion/crash/crash-tower.d.ts +10 -0
- package/dist/components/motion/crash/crash-tower.d.ts.map +1 -0
- package/dist/components/motion/crash/crash-tower.js +371 -0
- package/dist/components/motion/crash/crash-tower.js.map +1 -0
- package/dist/components/motion/crash.d.ts +10 -0
- package/dist/components/motion/crash.d.ts.map +1 -0
- package/dist/components/motion/crash.js +592 -0
- package/dist/components/motion/crash.js.map +1 -0
- package/dist/components/motion/cylinder-carousel.d.ts +8 -1
- package/dist/components/motion/cylinder-carousel.d.ts.map +1 -1
- package/dist/components/motion/cylinder-carousel.js +13 -7
- package/dist/components/motion/cylinder-carousel.js.map +1 -1
- package/dist/components/motion/date-range-picker.d.ts +37 -3
- package/dist/components/motion/date-range-picker.d.ts.map +1 -1
- package/dist/components/motion/date-range-picker.js +80 -32
- package/dist/components/motion/date-range-picker.js.map +1 -1
- package/dist/components/motion/digit-swap.js +2 -2
- package/dist/components/motion/dock.js +2 -2
- package/dist/components/motion/drawer.d.ts +8 -1
- package/dist/components/motion/drawer.d.ts.map +1 -1
- package/dist/components/motion/drawer.js +11 -7
- package/dist/components/motion/drawer.js.map +1 -1
- package/dist/components/motion/dropdown-menu.d.ts +99 -0
- package/dist/components/motion/dropdown-menu.d.ts.map +1 -0
- package/dist/components/motion/dropdown-menu.js +708 -0
- package/dist/components/motion/dropdown-menu.js.map +1 -0
- package/dist/components/motion/dynamic-island.js +2 -2
- package/dist/components/motion/expandable-action-bar.js +3 -3
- package/dist/components/motion/expandable-control.js +5 -2
- package/dist/components/motion/expandable-control.js.map +1 -1
- package/dist/components/motion/expandable-tabs.d.ts +8 -1
- package/dist/components/motion/expandable-tabs.d.ts.map +1 -1
- package/dist/components/motion/expandable-tabs.js +9 -5
- package/dist/components/motion/expandable-tabs.js.map +1 -1
- package/dist/components/motion/expanding-arrow-button.js +3 -3
- package/dist/components/motion/feedback-widget.d.ts +18 -1
- package/dist/components/motion/feedback-widget.d.ts.map +1 -1
- package/dist/components/motion/feedback-widget.js +33 -16
- package/dist/components/motion/feedback-widget.js.map +1 -1
- package/dist/components/motion/file-tree.d.ts +8 -1
- package/dist/components/motion/file-tree.d.ts.map +1 -1
- package/dist/components/motion/file-tree.js +11 -11
- package/dist/components/motion/file-tree.js.map +1 -1
- package/dist/components/motion/file-upload.d.ts +20 -1
- package/dist/components/motion/file-upload.d.ts.map +1 -1
- package/dist/components/motion/file-upload.js +63 -31
- package/dist/components/motion/file-upload.js.map +1 -1
- package/dist/components/motion/hold-action-button.d.ts +8 -0
- package/dist/components/motion/hold-action-button.d.ts.map +1 -1
- package/dist/components/motion/hold-action-button.js +20 -8
- package/dist/components/motion/hold-action-button.js.map +1 -1
- package/dist/components/motion/infinite-masonry.d.ts +13 -1
- package/dist/components/motion/infinite-masonry.d.ts.map +1 -1
- package/dist/components/motion/infinite-masonry.js +30 -15
- package/dist/components/motion/infinite-masonry.js.map +1 -1
- package/dist/components/motion/input.js +1 -1
- package/dist/components/motion/knockout-bracket.d.ts +21 -2
- package/dist/components/motion/knockout-bracket.d.ts.map +1 -1
- package/dist/components/motion/knockout-bracket.js +78 -33
- package/dist/components/motion/knockout-bracket.js.map +1 -1
- package/dist/components/motion/knockout-wheel.d.ts +14 -1
- package/dist/components/motion/knockout-wheel.d.ts.map +1 -1
- package/dist/components/motion/knockout-wheel.js +46 -20
- package/dist/components/motion/knockout-wheel.js.map +1 -1
- package/dist/components/motion/liquid.js +2 -2
- package/dist/components/motion/loader.d.ts +10 -1
- package/dist/components/motion/loader.d.ts.map +1 -1
- package/dist/components/motion/loader.js +49 -34
- package/dist/components/motion/loader.js.map +1 -1
- package/dist/components/motion/magnetic.js +3 -3
- package/dist/components/motion/mines.d.ts +80 -0
- package/dist/components/motion/mines.d.ts.map +1 -0
- package/dist/components/motion/mines.js +797 -0
- package/dist/components/motion/mines.js.map +1 -0
- package/dist/components/motion/morphing-lightbox.d.ts +17 -1
- package/dist/components/motion/morphing-lightbox.d.ts.map +1 -1
- package/dist/components/motion/morphing-lightbox.js +39 -22
- package/dist/components/motion/morphing-lightbox.js.map +1 -1
- package/dist/components/motion/morphing-modal.d.ts +8 -1
- package/dist/components/motion/morphing-modal.d.ts.map +1 -1
- package/dist/components/motion/morphing-modal.js +12 -8
- package/dist/components/motion/morphing-modal.js.map +1 -1
- package/dist/components/motion/morphing-search-chips.d.ts +22 -1
- package/dist/components/motion/morphing-search-chips.d.ts.map +1 -1
- package/dist/components/motion/morphing-search-chips.js +41 -19
- package/dist/components/motion/morphing-search-chips.js.map +1 -1
- package/dist/components/motion/morphing-search.d.ts +12 -1
- package/dist/components/motion/morphing-search.d.ts.map +1 -1
- package/dist/components/motion/morphing-search.js +27 -13
- package/dist/components/motion/morphing-search.js.map +1 -1
- package/dist/components/motion/morphing-tabs.d.ts +9 -1
- package/dist/components/motion/morphing-tabs.d.ts.map +1 -1
- package/dist/components/motion/morphing-tabs.js +40 -16
- package/dist/components/motion/morphing-tabs.js.map +1 -1
- package/dist/components/motion/multi-select/content.js +4 -4
- package/dist/components/motion/multi-select/context.d.ts +2 -61
- package/dist/components/motion/multi-select/context.js +1 -226
- package/dist/components/motion/multi-select/index.d.ts +2 -2
- package/dist/components/motion/multi-select/index.js +2 -2
- package/dist/components/motion/multi-select/list.d.ts.map +1 -1
- package/dist/components/motion/multi-select/list.js +10 -9
- package/dist/components/motion/multi-select/list.js.map +1 -1
- package/dist/components/motion/multi-select/trigger.js +11 -10
- package/dist/components/motion/multi-select/trigger.js.map +1 -1
- package/dist/components/motion/not-found/glitch.d.ts +1 -1
- package/dist/components/motion/not-found/glitch.d.ts.map +1 -1
- package/dist/components/motion/not-found/glitch.js +8 -6
- package/dist/components/motion/not-found/glitch.js.map +1 -1
- package/dist/components/motion/not-found/magnetic.d.ts +1 -1
- package/dist/components/motion/not-found/magnetic.d.ts.map +1 -1
- package/dist/components/motion/not-found/magnetic.js +8 -6
- package/dist/components/motion/not-found/magnetic.js.map +1 -1
- package/dist/components/motion/not-found/shared.d.ts +16 -6
- package/dist/components/motion/not-found/shared.d.ts.map +1 -1
- package/dist/components/motion/not-found/shared.js +20 -9
- package/dist/components/motion/not-found/shared.js.map +1 -1
- package/dist/components/motion/not-found/spotlight.d.ts +1 -1
- package/dist/components/motion/not-found/spotlight.d.ts.map +1 -1
- package/dist/components/motion/not-found/spotlight.js +9 -7
- package/dist/components/motion/not-found/spotlight.js.map +1 -1
- package/dist/components/motion/not-found/stacked.d.ts +1 -1
- package/dist/components/motion/not-found/stacked.d.ts.map +1 -1
- package/dist/components/motion/not-found/stacked.js +9 -7
- package/dist/components/motion/not-found/stacked.js.map +1 -1
- package/dist/components/motion/not-found/terminal.d.ts +1 -1
- package/dist/components/motion/not-found/terminal.d.ts.map +1 -1
- package/dist/components/motion/not-found/terminal.js +8 -6
- package/dist/components/motion/not-found/terminal.js.map +1 -1
- package/dist/components/motion/notification-stack.d.ts +12 -1
- package/dist/components/motion/notification-stack.d.ts.map +1 -1
- package/dist/components/motion/notification-stack.js +23 -7
- package/dist/components/motion/notification-stack.js.map +1 -1
- package/dist/components/motion/number-ticker.d.ts +5 -2
- package/dist/components/motion/number-ticker.d.ts.map +1 -1
- package/dist/components/motion/number-ticker.js +7 -4
- package/dist/components/motion/number-ticker.js.map +1 -1
- package/dist/components/motion/otp-input.d.ts +16 -1
- package/dist/components/motion/otp-input.d.ts.map +1 -1
- package/dist/components/motion/otp-input.js +34 -9
- package/dist/components/motion/otp-input.js.map +1 -1
- package/dist/components/motion/overflow-actions.d.ts +9 -1
- package/dist/components/motion/overflow-actions.d.ts.map +1 -1
- package/dist/components/motion/overflow-actions.js +16 -8
- package/dist/components/motion/overflow-actions.js.map +1 -1
- package/dist/components/motion/pagination.d.ts +13 -1
- package/dist/components/motion/pagination.d.ts.map +1 -1
- package/dist/components/motion/pagination.js +22 -11
- package/dist/components/motion/pagination.js.map +1 -1
- package/dist/components/motion/parallax.js +1 -1
- package/dist/components/motion/plinko.d.ts +70 -0
- package/dist/components/motion/plinko.d.ts.map +1 -0
- package/dist/components/motion/plinko.js +399 -0
- package/dist/components/motion/plinko.js.map +1 -0
- package/dist/components/motion/popover-morph.js +6 -6
- package/dist/components/motion/popover-morph.js.map +1 -1
- package/dist/components/motion/popover.js +5 -5
- package/dist/components/motion/popover.js.map +1 -1
- package/dist/components/motion/prediction-market-card.d.ts +15 -1
- package/dist/components/motion/prediction-market-card.d.ts.map +1 -1
- package/dist/components/motion/prediction-market-card.js +32 -15
- package/dist/components/motion/prediction-market-card.js.map +1 -1
- package/dist/components/motion/prediction-market.d.ts +24 -1
- package/dist/components/motion/prediction-market.d.ts.map +1 -1
- package/dist/components/motion/prediction-market.js +56 -37
- package/dist/components/motion/prediction-market.js.map +1 -1
- package/dist/components/motion/preview-rail.d.ts +8 -1
- package/dist/components/motion/preview-rail.d.ts.map +1 -1
- package/dist/components/motion/preview-rail.js +10 -5
- package/dist/components/motion/preview-rail.js.map +1 -1
- package/dist/components/motion/project-folder.d.ts +17 -1
- package/dist/components/motion/project-folder.d.ts.map +1 -1
- package/dist/components/motion/project-folder.js +21 -10
- package/dist/components/motion/project-folder.js.map +1 -1
- package/dist/components/motion/pull-to-refresh.d.ts +11 -1
- package/dist/components/motion/pull-to-refresh.d.ts.map +1 -1
- package/dist/components/motion/pull-to-refresh.js +21 -10
- package/dist/components/motion/pull-to-refresh.js.map +1 -1
- package/dist/components/motion/radio.js +2 -2
- package/dist/components/motion/range-slider-bubble.js +3 -3
- package/dist/components/motion/range-slider-fluid.js +3 -3
- package/dist/components/motion/range-slider-inline.js +3 -3
- package/dist/components/motion/range-slider-ruler.js +3 -3
- package/dist/components/motion/range-slider-ruler.js.map +1 -1
- package/dist/components/motion/range-slider-wave.js +3 -3
- package/dist/components/motion/range-slider.js +3 -3
- package/dist/components/motion/scroll-progress.js +2 -2
- package/dist/components/motion/scroll-reveal.js +2 -2
- package/dist/components/motion/scroll-to.d.ts +1 -1
- package/dist/components/motion/scroll-to.js +1 -1
- package/dist/components/motion/select-morph.d.ts +1 -1
- package/dist/components/motion/select-morph.js +4 -4
- package/dist/components/motion/select-morph.js.map +1 -1
- package/dist/components/motion/select.js +4 -4
- package/dist/components/motion/shader-background.js +2 -2
- package/dist/components/motion/shared-layout-bg.js +4 -4
- package/dist/components/motion/shared-layout-bg.js.map +1 -1
- package/dist/components/motion/signup-form.d.ts +38 -1
- package/dist/components/motion/signup-form.d.ts.map +1 -1
- package/dist/components/motion/signup-form.js +80 -38
- package/dist/components/motion/signup-form.js.map +1 -1
- package/dist/components/motion/slide-action-button.d.ts +9 -1
- package/dist/components/motion/slide-action-button.d.ts.map +1 -1
- package/dist/components/motion/slide-action-button.js +15 -9
- package/dist/components/motion/slide-action-button.js.map +1 -1
- package/dist/components/motion/slide-game.d.ts +91 -0
- package/dist/components/motion/slide-game.d.ts.map +1 -0
- package/dist/components/motion/slide-game.js +642 -0
- package/dist/components/motion/slide-game.js.map +1 -0
- package/dist/components/motion/smooth-scroll.d.ts +1 -1
- package/dist/components/motion/smooth-scroll.js +5 -4
- package/dist/components/motion/smooth-scroll.js.map +1 -1
- package/dist/components/motion/sortable-list.d.ts +13 -1
- package/dist/components/motion/sortable-list.d.ts.map +1 -1
- package/dist/components/motion/sortable-list.js +39 -14
- package/dist/components/motion/sortable-list.js.map +1 -1
- package/dist/components/motion/swap/controls.d.ts +8 -4
- package/dist/components/motion/swap/controls.d.ts.map +1 -1
- package/dist/components/motion/swap/controls.js +20 -12
- package/dist/components/motion/swap/controls.js.map +1 -1
- package/dist/components/motion/swap/field.d.ts +4 -2
- package/dist/components/motion/swap/field.d.ts.map +1 -1
- package/dist/components/motion/swap/field.js +9 -7
- package/dist/components/motion/swap/field.js.map +1 -1
- package/dist/components/motion/swap/quote-row.d.ts +4 -2
- package/dist/components/motion/swap/quote-row.d.ts.map +1 -1
- package/dist/components/motion/swap/quote-row.js +9 -7
- package/dist/components/motion/swap/quote-row.js.map +1 -1
- package/dist/components/motion/swap/token-badges.d.ts +1 -1
- package/dist/components/motion/swap/token-badges.js +1 -1
- package/dist/components/motion/swap/token-badges.js.map +1 -1
- package/dist/components/motion/swap/token-picker.d.ts +4 -2
- package/dist/components/motion/swap/token-picker.d.ts.map +1 -1
- package/dist/components/motion/swap/token-picker.js +39 -37
- package/dist/components/motion/swap/token-picker.js.map +1 -1
- package/dist/components/motion/swap.d.ts +7 -4
- package/dist/components/motion/swap.d.ts.map +1 -1
- package/dist/components/motion/swap.js +30 -18
- package/dist/components/motion/swap.js.map +1 -1
- package/dist/components/motion/swipeable-list.d.ts +9 -1
- package/dist/components/motion/swipeable-list.d.ts.map +1 -1
- package/dist/components/motion/swipeable-list.js +17 -9
- package/dist/components/motion/swipeable-list.js.map +1 -1
- package/dist/components/motion/switch.js +3 -7
- package/dist/components/motion/switch.js.map +1 -1
- package/dist/components/motion/table/editable-cell.d.ts +2 -1
- package/dist/components/motion/table/editable-cell.d.ts.map +1 -1
- package/dist/components/motion/table/editable-cell.js +2 -2
- package/dist/components/motion/table/editable-cell.js.map +1 -1
- package/dist/components/motion/table/index.d.ts +4 -3
- package/dist/components/motion/table/index.d.ts.map +1 -1
- package/dist/components/motion/table/index.js +44 -13
- package/dist/components/motion/table/index.js.map +1 -1
- package/dist/components/motion/table/row-handle.d.ts +3 -1
- package/dist/components/motion/table/row-handle.d.ts.map +1 -1
- package/dist/components/motion/table/row-handle.js +7 -7
- package/dist/components/motion/table/row-handle.js.map +1 -1
- package/dist/components/motion/table/skeleton-rows.d.ts +1 -1
- package/dist/components/motion/table/skeleton-rows.js +1 -1
- package/dist/components/motion/table/table-header.d.ts +4 -2
- package/dist/components/motion/table/table-header.d.ts.map +1 -1
- package/dist/components/motion/table/table-header.js +22 -19
- package/dist/components/motion/table/table-header.js.map +1 -1
- package/dist/components/motion/table/table-menu.js +3 -3
- package/dist/components/motion/tabs.d.ts +9 -1
- package/dist/components/motion/tabs.d.ts.map +1 -1
- package/dist/components/motion/tabs.js +19 -10
- package/dist/components/motion/tabs.js.map +1 -1
- package/dist/components/motion/text-reveal.js +2 -2
- package/dist/components/motion/text-scramble.js +1 -1
- package/dist/components/motion/text-shimmer.js +1 -1
- package/dist/components/motion/theme-toggle.d.ts +9 -1
- package/dist/components/motion/theme-toggle.d.ts.map +1 -1
- package/dist/components/motion/theme-toggle.js +15 -8
- package/dist/components/motion/theme-toggle.js.map +1 -1
- package/dist/components/motion/tilt-card.js +3 -3
- package/dist/components/motion/timeline.d.ts +9 -1
- package/dist/components/motion/timeline.d.ts.map +1 -1
- package/dist/components/motion/timeline.js +26 -7
- package/dist/components/motion/timeline.js.map +1 -1
- package/dist/components/motion/tooltip/positioner.d.ts +1 -1
- package/dist/components/motion/tooltip/positioner.js +1 -1
- package/dist/components/motion/tooltip-surface.d.ts +1 -2
- package/dist/components/motion/tooltip-surface.d.ts.map +1 -1
- package/dist/components/motion/tooltip-surface.js +3 -3
- package/dist/components/motion/tooltip-surface.js.map +1 -1
- package/dist/components/motion/tooltip.d.ts +1 -1
- package/dist/components/motion/tooltip.js +1 -1
- package/dist/components/motion/wallet-card/account-avatar.d.ts +1 -1
- package/dist/components/motion/wallet-card/account-avatar.js +1 -1
- package/dist/components/motion/wallet-card/account-switcher.d.ts +4 -2
- package/dist/components/motion/wallet-card/account-switcher.d.ts.map +1 -1
- package/dist/components/motion/wallet-card/account-switcher.js +17 -10
- package/dist/components/motion/wallet-card/account-switcher.js.map +1 -1
- package/dist/components/motion/wallet-card/actions.d.ts +3 -1
- package/dist/components/motion/wallet-card/actions.d.ts.map +1 -1
- package/dist/components/motion/wallet-card/actions.js +33 -29
- package/dist/components/motion/wallet-card/actions.js.map +1 -1
- package/dist/components/motion/wallet-card/balance-delta.d.ts +2 -1
- package/dist/components/motion/wallet-card/balance-delta.d.ts.map +1 -1
- package/dist/components/motion/wallet-card/balance-delta.js +5 -5
- package/dist/components/motion/wallet-card/balance-delta.js.map +1 -1
- package/dist/components/motion/wallet-card/copy-button.d.ts +3 -1
- package/dist/components/motion/wallet-card/copy-button.d.ts.map +1 -1
- package/dist/components/motion/wallet-card/copy-button.js +12 -6
- package/dist/components/motion/wallet-card/copy-button.js.map +1 -1
- package/dist/components/motion/wallet-card/index.d.ts +8 -3
- package/dist/components/motion/wallet-card/index.d.ts.map +1 -1
- package/dist/components/motion/wallet-card/index.js +19 -13
- package/dist/components/motion/wallet-card/index.js.map +1 -1
- package/dist/components/motion/wallet-card/search-bar.d.ts +3 -1
- package/dist/components/motion/wallet-card/search-bar.d.ts.map +1 -1
- package/dist/components/motion/wallet-card/search-bar.js +14 -11
- package/dist/components/motion/wallet-card/search-bar.js.map +1 -1
- package/dist/components/motion/wheel-picker.js +3 -3
- package/dist/components/reui/alert.d.ts +1 -1
- package/dist/components/reui/alert.js +1 -1
- package/dist/components/reui/autocomplete.d.ts +2 -2
- package/dist/components/reui/autocomplete.js +4 -4
- package/dist/components/reui/badge.d.ts +3 -3
- package/dist/components/reui/badge.js +2 -2
- package/dist/components/reui/cascader/cascader-async.d.ts +1 -1
- package/dist/components/reui/cascader/cascader-async.js +37 -37
- package/dist/components/reui/cascader/cascader-async.js.map +1 -1
- package/dist/components/reui/cascader/cascader-columns.d.ts +6 -6
- package/dist/components/reui/cascader/cascader-columns.d.ts.map +1 -1
- package/dist/components/reui/cascader/cascader-columns.js +6 -6
- package/dist/components/reui/cascader/cascader-columns.js.map +1 -1
- package/dist/components/reui/cascader/cascader-context.d.ts +8 -8
- package/dist/components/reui/cascader/cascader-context.d.ts.map +1 -1
- package/dist/components/reui/cascader/cascader-context.js +10 -10
- package/dist/components/reui/cascader/cascader-context.js.map +1 -1
- package/dist/components/reui/cascader/cascader-footer.d.ts +14 -14
- package/dist/components/reui/cascader/cascader-footer.d.ts.map +1 -1
- package/dist/components/reui/cascader/cascader-footer.js +32 -33
- package/dist/components/reui/cascader/cascader-footer.js.map +1 -1
- package/dist/components/reui/cascader/cascader-i18n.d.ts +1 -1
- package/dist/components/reui/cascader/cascader-item.d.ts +12 -12
- package/dist/components/reui/cascader/cascader-item.d.ts.map +1 -1
- package/dist/components/reui/cascader/cascader-item.js +27 -27
- package/dist/components/reui/cascader/cascader-item.js.map +1 -1
- package/dist/components/reui/cascader/cascader-lib.d.ts +1 -1
- package/dist/components/reui/cascader/cascader-nav.d.ts +12 -12
- package/dist/components/reui/cascader/cascader-nav.d.ts.map +1 -1
- package/dist/components/reui/cascader/cascader-nav.js +12 -12
- package/dist/components/reui/cascader/cascader-nav.js.map +1 -1
- package/dist/components/reui/cascader/cascader-types.d.ts +1 -1
- package/dist/components/reui/cascader/cascader-virtual.d.ts +4 -4
- package/dist/components/reui/cascader/cascader-virtual.d.ts.map +1 -1
- package/dist/components/reui/cascader/cascader-virtual.js +13 -13
- package/dist/components/reui/cascader/cascader-virtual.js.map +1 -1
- package/dist/components/reui/cascader/cascader.d.ts +24 -24
- package/dist/components/reui/cascader/cascader.d.ts.map +1 -1
- package/dist/components/reui/cascader/cascader.js +110 -110
- package/dist/components/reui/cascader/cascader.js.map +1 -1
- package/dist/components/reui/code-block/code-block.d.ts +2 -1
- package/dist/components/reui/code-block/code-block.d.ts.map +1 -1
- package/dist/components/reui/code-block/code-block.js +2 -2
- package/dist/components/reui/code-block/code-block.js.map +1 -1
- package/dist/components/reui/color-picker.d.ts +1 -1
- package/dist/components/reui/color-picker.js +6 -6
- package/dist/components/reui/data-grid/data-grid-cell-selection.d.ts +1 -1
- package/dist/components/reui/data-grid/data-grid-cell-selection.js +4 -4
- package/dist/components/reui/data-grid/data-grid-cell-selection.js.map +1 -1
- package/dist/components/reui/data-grid/data-grid-column-filter.d.ts +1 -1
- package/dist/components/reui/data-grid/data-grid-column-filter.js +3 -3
- package/dist/components/reui/data-grid/data-grid-column-header.d.ts +1 -1
- package/dist/components/reui/data-grid/data-grid-column-header.js +4 -4
- package/dist/components/reui/data-grid/data-grid-column-visibility.d.ts +1 -1
- package/dist/components/reui/data-grid/data-grid-i18n.d.ts +1 -1
- package/dist/components/reui/data-grid/data-grid-pagination.js +2 -2
- package/dist/components/reui/data-grid/data-grid-scroll-area.js +3 -3
- package/dist/components/reui/data-grid/data-grid-table-dnd-rows.d.ts +1 -1
- package/dist/components/reui/data-grid/data-grid-table-dnd-rows.js +8 -8
- package/dist/components/reui/data-grid/data-grid-table-dnd.js +6 -6
- package/dist/components/reui/data-grid/data-grid-table-virtual.d.ts +2 -2
- package/dist/components/reui/data-grid/data-grid-table-virtual.js +3 -3
- package/dist/components/reui/data-grid/data-grid-table.d.ts.map +1 -1
- package/dist/components/reui/data-grid/data-grid-table.js +4 -4
- package/dist/components/reui/data-grid/data-grid-table.js.map +1 -1
- package/dist/components/reui/data-grid/data-grid.d.ts +1 -1
- package/dist/components/reui/data-grid/data-grid.js +2 -2
- package/dist/components/reui/date-selector.js +4 -4
- package/dist/components/reui/emoji-picker.d.ts +1 -1
- package/dist/components/reui/emoji-picker.js +5 -5
- package/dist/components/reui/emoji-picker.js.map +1 -1
- package/dist/components/reui/event-calendar/event-calendar-agenda-view.js +6 -6
- package/dist/components/reui/event-calendar/event-calendar-content.d.ts +1 -1
- package/dist/components/reui/event-calendar/event-calendar-content.js +3 -3
- package/dist/components/reui/event-calendar/event-calendar-dnd.js +2 -2
- package/dist/components/reui/event-calendar/event-calendar-event.d.ts +1 -1
- package/dist/components/reui/event-calendar/event-calendar-event.js +6 -6
- package/dist/components/reui/event-calendar/event-calendar-i18n.d.ts +1 -1
- package/dist/components/reui/event-calendar/event-calendar-lib.d.ts +1 -1
- package/dist/components/reui/event-calendar/event-calendar-lib.js +4 -4
- package/dist/components/reui/event-calendar/event-calendar-month-view.d.ts +1 -1
- package/dist/components/reui/event-calendar/event-calendar-month-view.js +6 -6
- package/dist/components/reui/event-calendar/event-calendar-nav.js +6 -6
- package/dist/components/reui/event-calendar/event-calendar-recurrence.js +1 -1
- package/dist/components/reui/event-calendar/event-calendar-resource-view.js +5 -5
- package/dist/components/reui/event-calendar/event-calendar-time-grid.d.ts +1 -1
- package/dist/components/reui/event-calendar/event-calendar-time-grid.js +5 -5
- package/dist/components/reui/event-calendar/event-calendar.d.ts +3 -3
- package/dist/components/reui/event-calendar/event-calendar.js +4 -4
- package/dist/components/reui/event-calendar/event-calendar.js.map +1 -1
- package/dist/components/reui/file-type.d.ts +1 -1
- package/dist/components/reui/file-type.js +1 -1
- package/dist/components/reui/filters/filters-advanced.d.ts +6 -6
- package/dist/components/reui/filters/filters-advanced.d.ts.map +1 -1
- package/dist/components/reui/filters/filters-advanced.js +35 -35
- 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 +6 -6
- package/dist/components/reui/filters/filters-builder.js.map +1 -1
- package/dist/components/reui/filters/filters-chip.d.ts +10 -10
- package/dist/components/reui/filters/filters-chip.d.ts.map +1 -1
- package/dist/components/reui/filters/filters-chip.js +20 -20
- package/dist/components/reui/filters/filters-chip.js.map +1 -1
- package/dist/components/reui/filters/filters-context.d.ts +11 -11
- package/dist/components/reui/filters/filters-context.d.ts.map +1 -1
- package/dist/components/reui/filters/filters-context.js +27 -27
- package/dist/components/reui/filters/filters-context.js.map +1 -1
- package/dist/components/reui/filters/filters-dnd.d.ts +2 -2
- package/dist/components/reui/filters/filters-dnd.d.ts.map +1 -1
- package/dist/components/reui/filters/filters-dnd.js +5 -5
- package/dist/components/reui/filters/filters-dnd.js.map +1 -1
- package/dist/components/reui/filters/filters-draft.d.ts +1 -1
- package/dist/components/reui/filters/filters-editors.d.ts +9 -9
- package/dist/components/reui/filters/filters-editors.d.ts.map +1 -1
- package/dist/components/reui/filters/filters-editors.js +41 -41
- package/dist/components/reui/filters/filters-editors.js.map +1 -1
- package/dist/components/reui/filters/filters-lib.d.ts +1 -1
- package/dist/components/reui/filters/filters-types.d.ts +7 -7
- package/dist/components/reui/filters/filters-types.d.ts.map +1 -1
- package/dist/components/reui/filters/filters.d.ts +9 -9
- package/dist/components/reui/filters/filters.d.ts.map +1 -1
- package/dist/components/reui/filters/filters.js +56 -56
- package/dist/components/reui/filters/filters.js.map +1 -1
- package/dist/components/reui/frame.d.ts +2 -2
- package/dist/components/reui/frame.js +1 -1
- package/dist/components/reui/gantt/gantt-bar.d.ts +1 -1
- package/dist/components/reui/gantt/gantt-bar.js +5 -5
- package/dist/components/reui/gantt/gantt-dnd.js +5 -5
- package/dist/components/reui/gantt/gantt-dnd.js.map +1 -1
- package/dist/components/reui/gantt/gantt-i18n.d.ts +1 -1
- package/dist/components/reui/gantt/gantt-lib.d.ts +1 -1
- package/dist/components/reui/gantt/gantt-lib.js +4 -4
- package/dist/components/reui/gantt/gantt-nav.d.ts +1 -1
- package/dist/components/reui/gantt/gantt-nav.js +6 -6
- package/dist/components/reui/gantt/gantt-recurrence.js +1 -1
- package/dist/components/reui/gantt/gantt-view.js +11 -11
- package/dist/components/reui/gantt/gantt-view.js.map +1 -1
- package/dist/components/reui/gantt/gantt.d.ts +3 -3
- package/dist/components/reui/gantt/gantt.js +4 -4
- package/dist/components/reui/gantt/gantt.js.map +1 -1
- package/dist/components/reui/icon-tile.d.ts +3 -3
- package/dist/components/reui/icon-tile.js +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/kanban.js +3 -3
- package/dist/components/reui/number-field.d.ts +4 -4
- package/dist/components/reui/number-field.js +4 -4
- package/dist/components/reui/phone-input.js +5 -5
- package/dist/components/reui/rating.d.ts +1 -1
- package/dist/components/reui/rating.js +2 -2
- package/dist/components/reui/scrollspy.js +1 -1
- package/dist/components/reui/signature-pad.d.ts +1 -1
- package/dist/components/reui/signature-pad.js +7 -7
- package/dist/components/reui/signature-pad.js.map +1 -1
- package/dist/components/reui/sortable.d.ts +7 -7
- package/dist/components/reui/sortable.d.ts.map +1 -1
- package/dist/components/reui/sortable.js +3 -3
- package/dist/components/reui/stepper.js +2 -2
- package/dist/components/reui/time-picker.d.ts +1 -1
- package/dist/components/reui/time-picker.js +4 -4
- package/dist/components/reui/timeline.js +2 -2
- package/dist/components/reui/tree.d.ts +1 -0
- package/dist/components/reui/tree.d.ts.map +1 -1
- package/dist/components/reui/tree.js +3 -3
- package/dist/components/ui/accordion.js +2 -2
- package/dist/components/ui/alert-dialog.d.ts +14 -14
- package/dist/components/ui/alert-dialog.d.ts.map +1 -1
- package/dist/components/ui/alert-dialog.js +2 -2
- package/dist/components/ui/alert.d.ts +5 -5
- package/dist/components/ui/alert.d.ts.map +1 -1
- package/dist/components/ui/alert.js +1 -1
- package/dist/components/ui/attachment.d.ts +15 -15
- package/dist/components/ui/attachment.d.ts.map +1 -1
- package/dist/components/ui/attachment.js +4 -4
- package/dist/components/ui/avatar.d.ts +7 -7
- package/dist/components/ui/avatar.d.ts.map +1 -1
- package/dist/components/ui/avatar.js +1 -1
- package/dist/components/ui/badge.d.ts +2 -2
- package/dist/components/ui/badge.js +2 -2
- package/dist/components/ui/breadcrumb.d.ts +8 -8
- package/dist/components/ui/breadcrumb.d.ts.map +1 -1
- package/dist/components/ui/breadcrumb.js +3 -3
- package/dist/components/ui/bubble.d.ts +9 -9
- package/dist/components/ui/bubble.d.ts.map +1 -1
- package/dist/components/ui/bubble.js +3 -3
- package/dist/components/ui/button-group.d.ts +3 -3
- package/dist/components/ui/button-group.js +4 -4
- package/dist/components/ui/button.d.ts +2 -2
- package/dist/components/ui/button.js +2 -2
- package/dist/components/ui/calendar.d.ts +7 -7
- package/dist/components/ui/calendar.d.ts.map +1 -1
- package/dist/components/ui/calendar.js +6 -6
- package/dist/components/ui/calendar.js.map +1 -1
- package/dist/components/ui/card.d.ts +9 -9
- package/dist/components/ui/card.d.ts.map +1 -1
- package/dist/components/ui/carousel.d.ts +7 -7
- package/dist/components/ui/carousel.d.ts.map +1 -1
- package/dist/components/ui/carousel.js +14 -14
- package/dist/components/ui/carousel.js.map +1 -1
- package/dist/components/ui/chart.d.ts +12 -12
- package/dist/components/ui/chart.d.ts.map +1 -1
- package/dist/components/ui/chart.js +6 -6
- package/dist/components/ui/chart.js.map +1 -1
- package/dist/components/ui/checkbox.js +2 -2
- package/dist/components/ui/code-block.d.ts +13 -13
- package/dist/components/ui/code-block.d.ts.map +1 -1
- package/dist/components/ui/code-block.js +6 -6
- package/dist/components/ui/code-block.js.map +1 -1
- package/dist/components/ui/collapsible.js +1 -1
- package/dist/components/ui/combobox.d.ts +16 -16
- package/dist/components/ui/combobox.d.ts.map +1 -1
- package/dist/components/ui/combobox.js +5 -5
- package/dist/components/ui/combobox.js.map +1 -1
- package/dist/components/ui/command.d.ts +13 -13
- package/dist/components/ui/command.d.ts.map +1 -1
- package/dist/components/ui/command.js +3 -3
- package/dist/components/ui/context-menu.d.ts +16 -16
- package/dist/components/ui/context-menu.d.ts.map +1 -1
- package/dist/components/ui/context-menu.js +2 -2
- package/dist/components/ui/dialog.d.ts +12 -12
- package/dist/components/ui/dialog.d.ts.map +1 -1
- package/dist/components/ui/dialog.js +3 -3
- package/dist/components/ui/drawer.d.ts +12 -12
- package/dist/components/ui/drawer.d.ts.map +1 -1
- package/dist/components/ui/drawer.js +5 -5
- package/dist/components/ui/drawer.js.map +1 -1
- package/dist/components/ui/dropdown-menu.d.ts +16 -16
- package/dist/components/ui/dropdown-menu.d.ts.map +1 -1
- package/dist/components/ui/dropdown-menu.js +2 -2
- package/dist/components/ui/empty.js +1 -1
- package/dist/components/ui/field.d.ts +2 -2
- package/dist/components/ui/field.js +3 -3
- package/dist/components/ui/hover-card.js +1 -1
- package/dist/components/ui/input-group.d.ts +11 -11
- package/dist/components/ui/input-group.d.ts.map +1 -1
- package/dist/components/ui/input-group.js +2 -2
- package/dist/components/ui/input-otp.d.ts +7 -7
- package/dist/components/ui/input-otp.d.ts.map +1 -1
- package/dist/components/ui/input-otp.js +4 -4
- package/dist/components/ui/input-otp.js.map +1 -1
- package/dist/components/ui/input.d.ts +2 -2
- package/dist/components/ui/input.d.ts.map +1 -1
- package/dist/components/ui/input.js +1 -1
- package/dist/components/ui/item.d.ts +14 -14
- package/dist/components/ui/item.d.ts.map +1 -1
- package/dist/components/ui/item.js +4 -4
- package/dist/components/ui/label.d.ts +2 -2
- package/dist/components/ui/label.d.ts.map +1 -1
- package/dist/components/ui/marker.d.ts +6 -6
- package/dist/components/ui/marker.d.ts.map +1 -1
- package/dist/components/ui/marker.js +3 -3
- package/dist/components/ui/menubar.d.ts +20 -20
- package/dist/components/ui/menubar.d.ts.map +1 -1
- package/dist/components/ui/menubar.js +4 -4
- package/dist/components/ui/message-scroller.d.ts +8 -8
- package/dist/components/ui/message-scroller.d.ts.map +1 -1
- package/dist/components/ui/message-scroller.js +3 -3
- package/dist/components/ui/message.d.ts +8 -8
- package/dist/components/ui/message.d.ts.map +1 -1
- package/dist/components/ui/native-select.d.ts +5 -5
- package/dist/components/ui/native-select.d.ts.map +1 -1
- package/dist/components/ui/native-select.js +1 -1
- package/dist/components/ui/navigation-menu.js +3 -3
- package/dist/components/ui/pagination.d.ts +11 -11
- package/dist/components/ui/pagination.d.ts.map +1 -1
- package/dist/components/ui/pagination.js +2 -2
- package/dist/components/ui/popover.d.ts +7 -7
- package/dist/components/ui/popover.d.ts.map +1 -1
- package/dist/components/ui/popover.js +1 -1
- package/dist/components/ui/progress.js +1 -1
- package/dist/components/ui/questionnaire.d.ts +17 -17
- package/dist/components/ui/questionnaire.d.ts.map +1 -1
- package/dist/components/ui/questionnaire.js +3 -3
- package/dist/components/ui/radio-group.js +2 -2
- package/dist/components/ui/resizable.js +1 -1
- package/dist/components/ui/scroll-area.js +1 -1
- package/dist/components/ui/select.d.ts +10 -10
- package/dist/components/ui/select.d.ts.map +1 -1
- package/dist/components/ui/select.js +2 -2
- package/dist/components/ui/separator.js +1 -1
- package/dist/components/ui/sheet.d.ts +9 -9
- package/dist/components/ui/sheet.d.ts.map +1 -1
- package/dist/components/ui/sheet.js +3 -3
- package/dist/components/ui/sidebar.d.ts +34 -34
- package/dist/components/ui/sidebar.d.ts.map +1 -1
- package/dist/components/ui/sidebar.js +15 -15
- package/dist/components/ui/sidebar.js.map +1 -1
- package/dist/components/ui/slider.js +1 -1
- package/dist/components/ui/spinner.js +1 -1
- package/dist/components/ui/switch.js +1 -1
- package/dist/components/ui/table.d.ts +9 -9
- package/dist/components/ui/table.d.ts.map +1 -1
- package/dist/components/ui/tabs.d.ts +1 -1
- package/dist/components/ui/tabs.js +2 -2
- package/dist/components/ui/textarea.d.ts +2 -2
- package/dist/components/ui/textarea.d.ts.map +1 -1
- package/dist/components/ui/toast.d.ts +11 -11
- package/dist/components/ui/toast.d.ts.map +1 -1
- package/dist/components/ui/toast.js +3 -3
- package/dist/components/ui/toggle-group.d.ts +5 -5
- package/dist/components/ui/toggle-group.d.ts.map +1 -1
- package/dist/components/ui/toggle-group.js +6 -6
- package/dist/components/ui/toggle-group.js.map +1 -1
- package/dist/components/ui/toggle.d.ts +2 -2
- package/dist/components/ui/toggle.js +2 -2
- package/dist/components/ui/tooltip.js +1 -1
- package/dist/components/ui/trace.d.ts +12 -12
- package/dist/components/ui/trace.d.ts.map +1 -1
- package/dist/components/ui/trace.js +2 -2
- package/dist/{constants-evLzfUhL.js → constants-CggcOqef.js} +1 -1
- package/dist/constants-CggcOqef.js.map +1 -0
- package/dist/context-B5NItr9C.d.ts +82 -0
- package/dist/context-B5NItr9C.d.ts.map +1 -0
- package/dist/context-BEYROlTB.d.ts +78 -0
- package/dist/context-BEYROlTB.d.ts.map +1 -0
- package/dist/context-BLjAwZ5V.js +243 -0
- package/dist/context-BLjAwZ5V.js.map +1 -0
- package/dist/{context-CXlD0FcC.js → context-BpHX6J1T.js} +28 -4
- package/dist/context-BpHX6J1T.js.map +1 -0
- package/dist/{context-tv-kneJV.d.ts → context-BrGWrRwa.d.ts} +26 -3
- package/dist/context-BrGWrRwa.d.ts.map +1 -0
- package/dist/{context-D-juVNr2.d.ts → context-C1Z_5vew.d.ts} +18 -3
- package/dist/context-C1Z_5vew.d.ts.map +1 -0
- package/dist/context-C5DO1oe1.js +232 -0
- package/dist/context-C5DO1oe1.js.map +1 -0
- package/dist/{context-Dk6C9IvC.js → context-C8M88I1F.js} +48 -8
- package/dist/context-C8M88I1F.js.map +1 -0
- package/dist/{context-3i2_6ly8.js → context-C92iQeLO.js} +13 -5
- package/dist/context-C92iQeLO.js.map +1 -0
- package/dist/{context-DdnKlMjE.js → context-CHXHCbuu.js} +18 -4
- package/dist/context-CHXHCbuu.js.map +1 -0
- package/dist/{context-mjP5wifG.d.ts → context-CgRa89Bq.d.ts} +29 -3
- package/dist/context-CgRa89Bq.d.ts.map +1 -0
- package/dist/{context-CQbvWVnM.js → context-CmexbpIK.js} +31 -9
- package/dist/context-CmexbpIK.js.map +1 -0
- package/dist/{context-i6Dwvi3T.js → context-Cr2SLhVi.js} +45 -21
- package/dist/context-Cr2SLhVi.js.map +1 -0
- package/dist/{context-DWXNECDe.js → context-CwSk1WZR.js} +23 -5
- package/dist/context-CwSk1WZR.js.map +1 -0
- package/dist/{context-C5TW-k6u.js → context-DWHy9EUW.js} +41 -8
- package/dist/context-DWHy9EUW.js.map +1 -0
- package/dist/{context-ChsuSih6.js → context-Dae38FV_.js} +33 -14
- package/dist/context-Dae38FV_.js.map +1 -0
- package/dist/{context-DUx44mGi.js → context-r3QNWoPh.js} +29 -5
- package/dist/context-r3QNWoPh.js.map +1 -0
- package/dist/{copy-menu-LU54Aruj.js → copy-menu-BizTEv8v.js} +42 -23
- package/dist/copy-menu-BizTEv8v.js.map +1 -0
- package/dist/crash-parts-Dg5WC8u4.js +926 -0
- package/dist/crash-parts-Dg5WC8u4.js.map +1 -0
- package/dist/{data-grid-i18n-BySPLTBy.d.ts → data-grid-i18n-BcJcbW5k.d.ts} +1 -1
- package/dist/{data-grid-i18n-BySPLTBy.d.ts.map → data-grid-i18n-BcJcbW5k.d.ts.map} +1 -1
- package/dist/{ease-CHhXKlG3.d.ts → ease-DnPhwGe6.d.ts} +4 -2
- package/dist/ease-DnPhwGe6.d.ts.map +1 -0
- package/dist/{filters-draft-COwwppZX.d.ts → filters-draft-b-BwSZb1.d.ts} +1 -1
- package/dist/{filters-draft-COwwppZX.d.ts.map → filters-draft-b-BwSZb1.d.ts.map} +1 -1
- package/dist/game-parts-hATtqY3s.d.ts +89 -0
- package/dist/game-parts-hATtqY3s.d.ts.map +1 -0
- package/dist/hooks/use-copy-to-clipboard.js +5 -5
- package/dist/hooks/use-copy-to-clipboard.js.map +1 -1
- package/dist/hooks/use-favicon.js +1 -1
- package/dist/hooks/use-highlighted-code.d.ts +2 -2
- package/dist/hooks/use-highlighted-code.d.ts.map +1 -1
- package/dist/hooks/use-highlighted-code.js +6 -76
- package/dist/hooks/use-highlighted-code.js.map +1 -1
- package/dist/hooks/use-hover-gesture.js +1 -1
- package/dist/hooks/use-intersection-observer.d.ts +2 -2
- package/dist/hooks/use-intersection-observer.d.ts.map +1 -1
- package/dist/hooks/use-intersection-observer.js +4 -4
- package/dist/hooks/use-intersection-observer.js.map +1 -1
- package/dist/hooks/use-listbox.js +1 -1
- package/dist/hooks/use-listbox.js.map +1 -1
- package/dist/hooks/use-meta-color.js +7 -7
- package/dist/hooks/use-meta-color.js.map +1 -1
- package/dist/hooks/use-mobile.js +3 -3
- package/dist/hooks/use-mobile.js.map +1 -1
- package/dist/hooks/use-modal-scope.js +1 -1
- package/dist/hooks/use-mutation-observer.d.ts +2 -2
- package/dist/hooks/use-mutation-observer.d.ts.map +1 -1
- package/dist/hooks/use-mutation-observer.js +2 -2
- package/dist/hooks/use-mutation-observer.js.map +1 -1
- package/dist/hooks/use-slider-input.d.ts +4 -4
- package/dist/hooks/use-slider-input.d.ts.map +1 -1
- package/dist/hooks/use-slider.js +1 -1
- package/dist/i18n-BRH0Y7Sm.d.ts +34 -0
- package/dist/i18n-BRH0Y7Sm.d.ts.map +1 -0
- package/dist/lib/audio-context.d.ts +11 -0
- package/dist/lib/audio-context.d.ts.map +1 -0
- package/dist/lib/audio-context.js +37 -0
- package/dist/lib/audio-context.js.map +1 -0
- package/dist/lib/book-sounds.d.ts +18 -0
- package/dist/lib/book-sounds.d.ts.map +1 -0
- package/dist/lib/book-sounds.js +202 -0
- package/dist/lib/book-sounds.js.map +1 -0
- package/dist/lib/ease.d.ts +2 -2
- package/dist/lib/ease.js +8 -1
- package/dist/lib/ease.js.map +1 -1
- package/dist/lib/game-sounds.d.ts +18 -0
- package/dist/lib/game-sounds.d.ts.map +1 -0
- package/dist/lib/game-sounds.js +142 -0
- package/dist/lib/game-sounds.js.map +1 -0
- package/dist/lib/highlighter.d.ts +10 -0
- package/dist/lib/highlighter.d.ts.map +1 -0
- package/dist/lib/highlighter.js +78 -0
- package/dist/lib/highlighter.js.map +1 -0
- package/dist/lib/i18n.d.ts +2 -0
- package/dist/lib/i18n.js +51 -0
- package/dist/lib/i18n.js.map +1 -0
- package/dist/lib/presence-gate.d.ts +39 -0
- package/dist/lib/presence-gate.d.ts.map +1 -0
- package/dist/{presence-gate-DC7yL1Ls.js → lib/presence-gate.js} +3 -2
- package/dist/lib/presence-gate.js.map +1 -0
- package/dist/lib/text-shimmer.js.map +1 -1
- package/dist/lib/tick-sound.d.ts +4 -3
- package/dist/lib/tick-sound.d.ts.map +1 -1
- package/dist/lib/tick-sound.js +30 -37
- package/dist/lib/tick-sound.js.map +1 -1
- package/dist/messages-BYMFNf5X.d.ts +13 -0
- package/dist/messages-BYMFNf5X.d.ts.map +1 -0
- package/dist/messages-CVaE8xc6.js +14 -0
- package/dist/messages-CVaE8xc6.js.map +1 -0
- package/dist/messages-CqyH8Hd7.js +21 -0
- package/dist/messages-CqyH8Hd7.js.map +1 -0
- package/dist/messages-CrtN5AXG.js +20 -0
- package/dist/messages-CrtN5AXG.js.map +1 -0
- package/dist/messages-D4axySpl.d.ts +21 -0
- package/dist/messages-D4axySpl.d.ts.map +1 -0
- package/dist/messages-Dyou6PVt.d.ts +23 -0
- package/dist/messages-Dyou6PVt.d.ts.map +1 -0
- package/dist/messages-azsh5xBO.d.ts +20 -0
- package/dist/messages-azsh5xBO.d.ts.map +1 -0
- package/dist/messages-ogb0tIIX.d.ts +23 -0
- package/dist/messages-ogb0tIIX.d.ts.map +1 -0
- package/dist/messages-tLRkxZwI.d.ts +33 -0
- package/dist/messages-tLRkxZwI.d.ts.map +1 -0
- package/dist/{model-mS4UXPwk.d.ts → model-B_LLKNOs.d.ts} +1 -1
- package/dist/model-B_LLKNOs.d.ts.map +1 -0
- package/dist/{model-CvWolJdo.d.ts → model-Cbzktxjx.d.ts} +1 -1
- package/dist/model-Cbzktxjx.d.ts.map +1 -0
- package/dist/{model-BFZGhrnQ.d.ts → model-Cqi9KKo1.d.ts} +1 -1
- package/dist/{model-BFZGhrnQ.d.ts.map → model-Cqi9KKo1.d.ts.map} +1 -1
- package/dist/{model-DuAc65oe.d.ts → model-DP6FsG__.d.ts} +1 -1
- package/dist/model-DP6FsG__.d.ts.map +1 -0
- package/dist/{path-VEfFUowr.d.ts → path-DMP3rnd1.d.ts} +1 -1
- package/dist/path-DMP3rnd1.d.ts.map +1 -0
- package/dist/{plot-CTQFrQKi.js → plot-B2aPWHib.js} +12 -12
- package/dist/plot-B2aPWHib.js.map +1 -0
- package/dist/{popover-position-BaDNBZ-D.js → popover-position-U1ZMRPsY.js} +1 -1
- package/dist/{popover-position-BaDNBZ-D.js.map → popover-position-U1ZMRPsY.js.map} +1 -1
- package/dist/{positioner-MidjIUUT.js → positioner-DY1vB4rF.js} +6 -6
- package/dist/positioner-DY1vB4rF.js.map +1 -0
- package/dist/{scale-DSsaupNc.d.ts → scale-BLDMdHAp.d.ts} +1 -1
- package/dist/scale-BLDMdHAp.d.ts.map +1 -0
- package/dist/{tooltip-CuHpilPN.js → tooltip-BUkacvMl.js} +6 -6
- package/dist/tooltip-BUkacvMl.js.map +1 -0
- package/dist/{tooltip-Cq46pSJ2.d.ts → tooltip-CJccRGy9.d.ts} +21 -2
- package/dist/tooltip-CJccRGy9.d.ts.map +1 -0
- package/dist/{tooltip-CNEYdIX3.d.ts → tooltip-CMtIWcUY.d.ts} +19 -2
- package/dist/tooltip-CMtIWcUY.d.ts.map +1 -0
- package/dist/{tooltip-BVRmgnbZ.d.ts → tooltip-DuPE_3Gi.d.ts} +21 -2
- package/dist/tooltip-DuPE_3Gi.d.ts.map +1 -0
- package/dist/{tooltip-w0KptZat.d.ts → tooltip-UI0lMGya.d.ts} +1 -1
- package/dist/tooltip-UI0lMGya.d.ts.map +1 -0
- package/dist/{tooltip-content-K0vPsEtI.d.ts → tooltip-content-Dr8bhW-q.d.ts} +4 -2
- package/dist/tooltip-content-Dr8bhW-q.d.ts.map +1 -0
- package/dist/{tooltip-CMVyNolz.d.ts → tooltip-jQICwV_k.d.ts} +13 -2
- package/dist/tooltip-jQICwV_k.d.ts.map +1 -0
- package/dist/{types-B0d0d7PF.d.ts → types-C1WFGMvf.d.ts} +1 -1
- package/dist/types-C1WFGMvf.d.ts.map +1 -0
- package/dist/{types-BB61jXS_.d.ts → types-C_v1N4fH.d.ts} +4 -1
- package/dist/types-C_v1N4fH.d.ts.map +1 -0
- package/dist/{types-D9hKqIzm.d.ts → types-DJ8z6gW8.d.ts} +32 -2
- package/dist/types-DJ8z6gW8.d.ts.map +1 -0
- package/dist/{types-qTGsGdN1.d.ts → types-DROZkngo.d.ts} +1 -1
- package/dist/types-DROZkngo.d.ts.map +1 -0
- package/dist/{types-BSMELKE5.d.ts → types-DlSHf6nJ.d.ts} +1 -1
- package/dist/types-DlSHf6nJ.d.ts.map +1 -0
- package/dist/{use-active-option-DerS-wGL.js → use-active-option-DbxnIM2n.js} +1 -1
- package/dist/{use-active-option-DerS-wGL.js.map → use-active-option-DbxnIM2n.js.map} +1 -1
- package/dist/use-crash-game-DiGujbfH.d.ts +160 -0
- package/dist/use-crash-game-DiGujbfH.d.ts.map +1 -0
- package/dist/{use-geometry-C84j2gUk.d.ts → use-geometry-BajLqxjC.d.ts} +1 -1
- package/dist/use-geometry-BajLqxjC.d.ts.map +1 -0
- package/dist/{use-inspection-CZhdpH8J.js → use-inspection-DWk6TdY9.js} +1 -1
- package/dist/use-inspection-DWk6TdY9.js.map +1 -0
- package/dist/{use-points-C2jpElHh.js → use-points-y0l-9pdN.js} +1 -1
- package/dist/use-points-y0l-9pdN.js.map +1 -0
- package/dist/{use-position-CWSE4wCz.d.ts → use-position-B1lYvN8D.d.ts} +1 -1
- package/dist/{use-position-CWSE4wCz.d.ts.map → use-position-B1lYvN8D.d.ts.map} +1 -1
- package/dist/{use-width-CkKCh1b3.js → use-width-Dmy1eT1-.js} +1 -1
- package/dist/{use-width-CkKCh1b3.js.map → use-width-Dmy1eT1-.js.map} +1 -1
- package/dist/utils-Dve5wIjB.js +56 -0
- package/dist/utils-Dve5wIjB.js.map +1 -0
- package/dist/{utils-ZRfJ78Df.js → utils-F-hKjEFd.js} +1 -1
- package/dist/utils-F-hKjEFd.js.map +1 -0
- package/package.json +9 -9
- package/dist/account-avatar--0_0u0WW.js.map +0 -1
- package/dist/cascader-types-Bh_kJ3Qw.d.ts.map +0 -1
- package/dist/components/motion/combobox/context.d.ts.map +0 -1
- package/dist/components/motion/combobox/context.js.map +0 -1
- package/dist/components/motion/multi-select/context.d.ts.map +0 -1
- package/dist/components/motion/multi-select/context.js.map +0 -1
- package/dist/constants-evLzfUhL.js.map +0 -1
- package/dist/context-3i2_6ly8.js.map +0 -1
- package/dist/context-C5TW-k6u.js.map +0 -1
- package/dist/context-CQbvWVnM.js.map +0 -1
- package/dist/context-CXlD0FcC.js.map +0 -1
- package/dist/context-ChsuSih6.js.map +0 -1
- package/dist/context-D-juVNr2.d.ts.map +0 -1
- package/dist/context-DUx44mGi.js.map +0 -1
- package/dist/context-DWXNECDe.js.map +0 -1
- package/dist/context-DdnKlMjE.js.map +0 -1
- package/dist/context-Dk6C9IvC.js.map +0 -1
- package/dist/context-i6Dwvi3T.js.map +0 -1
- package/dist/context-mjP5wifG.d.ts.map +0 -1
- package/dist/context-tv-kneJV.d.ts.map +0 -1
- package/dist/copy-menu-LU54Aruj.js.map +0 -1
- package/dist/ease-CHhXKlG3.d.ts.map +0 -1
- package/dist/model-CvWolJdo.d.ts.map +0 -1
- package/dist/model-DuAc65oe.d.ts.map +0 -1
- package/dist/model-mS4UXPwk.d.ts.map +0 -1
- package/dist/path-VEfFUowr.d.ts.map +0 -1
- package/dist/plot-CTQFrQKi.js.map +0 -1
- package/dist/positioner-MidjIUUT.js.map +0 -1
- package/dist/presence-gate-DC7yL1Ls.js.map +0 -1
- package/dist/scale-DSsaupNc.d.ts.map +0 -1
- package/dist/tooltip-BVRmgnbZ.d.ts.map +0 -1
- package/dist/tooltip-CMVyNolz.d.ts.map +0 -1
- package/dist/tooltip-CNEYdIX3.d.ts.map +0 -1
- package/dist/tooltip-Cq46pSJ2.d.ts.map +0 -1
- package/dist/tooltip-CuHpilPN.js.map +0 -1
- package/dist/tooltip-content-K0vPsEtI.d.ts.map +0 -1
- package/dist/tooltip-w0KptZat.d.ts.map +0 -1
- package/dist/types-B0d0d7PF.d.ts.map +0 -1
- package/dist/types-BB61jXS_.d.ts.map +0 -1
- package/dist/types-BSMELKE5.d.ts.map +0 -1
- package/dist/types-D9hKqIzm.d.ts.map +0 -1
- package/dist/types-qTGsGdN1.d.ts.map +0 -1
- package/dist/use-geometry-C84j2gUk.d.ts.map +0 -1
- package/dist/use-inspection-CZhdpH8J.js.map +0 -1
- package/dist/use-points-C2jpElHh.js.map +0 -1
- package/dist/utils-DMrlhG6M.js +0 -25
- package/dist/utils-DMrlhG6M.js.map +0 -1
- package/dist/utils-ZRfJ78Df.js.map +0 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
import * as React$1 from "react";
|
|
1
|
+
import * as React from "react";
|
|
3
2
|
import { Combobox } from "@base-ui/react";
|
|
3
|
+
import { d as CascaderLoadState, p as CascaderNode } from "../../../cascader-types-D2DFznHz.js";
|
|
4
4
|
type VetoableEvent = {
|
|
5
5
|
preventBaseUIHandler?: () => void;
|
|
6
6
|
};
|
|
7
7
|
/** A row press. The veto hook is optional: an `as="button"` row is outside Base
|
|
8
8
|
* UI's listbox and gets a plain React event. */
|
|
9
|
-
export type CascaderRowEvent = React
|
|
9
|
+
export type CascaderRowEvent = React.MouseEvent<HTMLElement> & VetoableEvent;
|
|
10
10
|
/** A footer COMMAND: the row theme, so it cannot drift from the list, plus the
|
|
11
11
|
* hover and `focus-visible` fills a plain button never gets. Fills, never a
|
|
12
12
|
* ring: a ring under rows that all paint with a fill read as a different
|
|
@@ -18,7 +18,7 @@ export declare const CASCADER_ACTION_CLASS = "data-highlighted:bg-accent data-hi
|
|
|
18
18
|
export interface CascaderItemProps extends Omit<Combobox.Item.Props, "value" | "children" | "className" | "style" | "onClick" | "onMouseUp"> {
|
|
19
19
|
/** No state callback: the row merges `className` and `style` itself. */
|
|
20
20
|
className?: string;
|
|
21
|
-
style?: React
|
|
21
|
+
style?: React.CSSProperties;
|
|
22
22
|
onClick?: (event: CascaderRowEvent) => void;
|
|
23
23
|
onMouseUp?: (event: CascaderRowEvent) => void;
|
|
24
24
|
node: CascaderNode;
|
|
@@ -60,11 +60,11 @@ export interface CascaderItemProps extends Omit<Combobox.Item.Props, "value" | "
|
|
|
60
60
|
* box becomes the retry. The press path is unchanged: it goes through
|
|
61
61
|
* `navigate`, which refires the failed level rather than moving. */
|
|
62
62
|
childrenError?: boolean;
|
|
63
|
-
children?: React
|
|
63
|
+
children?: React.ReactNode;
|
|
64
64
|
}
|
|
65
65
|
/** One row. Branch presses navigate instead of selecting, vetoed here with
|
|
66
66
|
* `preventBaseUIHandler()` on `onClick` (Enter too) and on `onMouseUp`. */
|
|
67
|
-
declare const CascaderItem: React
|
|
67
|
+
declare const CascaderItem: React.MemoExoticComponent<({ node, index, depth, showPath, as, expanded, indent, branch: branchProp, selectable: selectableProp, selected: selectedProp, indeterminate: indeterminateProp, selectedCount: selectedCountProp, loading, error, childrenLoading, childrenError, className, children, onClick, onMouseUp, style, ...props }: CascaderItemProps) => React.JSX.Element>;
|
|
68
68
|
/** Every load-derived prop a row needs. A PAGING row reports the level it
|
|
69
69
|
* belongs to, a BRANCH row the level it OWNS; mutually exclusive, so one call
|
|
70
70
|
* answers both. Exported because a memoised row cannot read them itself. */
|
|
@@ -76,13 +76,13 @@ export declare function getCascaderMoreProps(node: CascaderNode, loadStates: Rea
|
|
|
76
76
|
};
|
|
77
77
|
export interface CascaderItemsProps {
|
|
78
78
|
/** Replaces the default row for every item. */
|
|
79
|
-
children?: (node: CascaderNode, index: number) => React
|
|
79
|
+
children?: (node: CascaderNode, index: number) => React.ReactNode;
|
|
80
80
|
}
|
|
81
81
|
/** Whatever the active view is: the current level, the deepest column, or the
|
|
82
82
|
* flattened tree rows. Lives here so `cascader.tsx` never imports a row
|
|
83
83
|
* component, which would cycle with the context. `index` is deliberately not
|
|
84
84
|
* passed; see `CascaderItemProps`. */
|
|
85
|
-
declare function CascaderItems({ children }: CascaderItemsProps): React
|
|
85
|
+
declare function CascaderItems({ children }: CascaderItemsProps): React.JSX.Element;
|
|
86
86
|
export interface CascaderGroupProps extends Omit<Combobox.Group.Props, "className"> {
|
|
87
87
|
/** Base UI also accepts a state callback here; the group has no state. */
|
|
88
88
|
className?: string;
|
|
@@ -92,15 +92,15 @@ export interface CascaderGroupProps extends Omit<Combobox.Group.Props, "classNam
|
|
|
92
92
|
* heading alone inside a listbox is dropped from the accessibility tree.
|
|
93
93
|
* Grouping is composition, not data: `CascaderItems` renders one flat run per
|
|
94
94
|
* level, so its indices line up with `listRef`. */
|
|
95
|
-
declare function CascaderGroup({ className, ...props }: CascaderGroupProps): React
|
|
95
|
+
declare function CascaderGroup({ className, ...props }: CascaderGroupProps): React.JSX.Element;
|
|
96
96
|
export interface CascaderLabelProps extends Omit<Combobox.GroupLabel.Props, "className" | "style"> {
|
|
97
97
|
/** No state callback; outside a group this is not a Base UI part at all. */
|
|
98
98
|
className?: string;
|
|
99
|
-
style?: React
|
|
99
|
+
style?: React.CSSProperties;
|
|
100
100
|
}
|
|
101
101
|
/** A heading. Inside `CascaderGroup` it is the group's accessible name; outside
|
|
102
102
|
* one (the footer flyout is a menu, not a listbox) it is decoration only. */
|
|
103
|
-
declare function CascaderLabel(props: CascaderLabelProps): React
|
|
103
|
+
declare function CascaderLabel(props: CascaderLabelProps): React.JSX.Element;
|
|
104
104
|
export interface CascaderSeparatorProps extends Omit<Combobox.Separator.Props, "className"> {
|
|
105
105
|
/** Base UI also accepts a state callback here; only the orientation varies. */
|
|
106
106
|
className?: string;
|
|
@@ -108,6 +108,6 @@ export interface CascaderSeparatorProps extends Omit<Combobox.Separator.Props, "
|
|
|
108
108
|
/** Decorative on purpose: Base UI's separator is `role="separator"`, which a
|
|
109
109
|
* `listbox` may not own, and a run that needs separating for a screen reader
|
|
110
110
|
* needs a `CascaderGroup`, not a line. A consumer can pass the role back. */
|
|
111
|
-
declare function CascaderSeparator({ className, ...props }: CascaderSeparatorProps): React
|
|
111
|
+
declare function CascaderSeparator({ className, ...props }: CascaderSeparatorProps): React.JSX.Element;
|
|
112
112
|
export { CascaderGroup, CascaderItem, CascaderItems, CascaderLabel, CascaderSeparator };
|
|
113
113
|
//# sourceMappingURL=cascader-item.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cascader-item.d.ts","names":["
|
|
1
|
+
{"version":3,"file":"cascader-item.d.ts","names":["ComboboxPrimitive"],"sources":["../../../../src/components/reui/cascader/cascader-item.tsx"],"mappings":";;;KA0BK;EAAkB;;;;YAIX,mBAAmB,MAAM,WAAW,eAAe;;;;;;;;qBAsDlD;iBAyBI,0BACP,KACNA,SAAkB,KAAK;;EAIzB;EACA,QAAQ,MAAM;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,MAAM;;;;cAKb,cAAY,MAAA,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,MAAA,IAAA;;;;wBAqoBJ,qBACd,MAAM,cACN,YAAY,oBAAoB;EAEhC;EACA;EACA;EACA;;iBAqBe;;EAEf,YAAY,MAAM,cAAc,kBAAkB,MAAM;;;;;;iBAOjD,gBAAgB,YAAY,qBAAkB,MAAA,IAAA;iBA0EtC,2BAA2B,KAAKA,SAAkB,MAAM;;EAEvE;;;;;;;iBAQO,gBAAgB,cAAc,SAAS,qBAAkB,MAAA,IAAA;iBAYjD,2BACP,KAAKA,SAAkB,WAAW;;EAE1C;EACA,QAAQ,MAAM;;;;iBA+BP,cAAc,OAAO,qBAAkB,MAAA,IAAA;iBAK/B,+BACP,KAAKA,SAAkB,UAAU;;EAEzC;;;;;iBAMO,oBAAoB,cAAc,SAAS,yBAAsB,MAAA,IAAA"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { Combobox } from "@base-ui/react";
|
|
4
|
+
import { mergeProps } from "@base-ui/react/merge-props";
|
|
5
|
+
import { useRender } from "@base-ui/react/use-render";
|
|
6
|
+
import { CheckIcon, ChevronRightIcon, LoaderCircleIcon, MinusIcon, RotateCwIcon } from "lucide-react";
|
|
7
|
+
import { cn } from "@kumix/utils";
|
|
2
8
|
import { Spinner } from "../../ui/spinner.js";
|
|
3
9
|
import { useCascaderActions, useCascaderRender, useCascaderState } from "./cascader-context.js";
|
|
4
10
|
import { getCascaderCount, getCascaderMoreParent, getCascaderPath, isCascaderMoreNode } from "./cascader-lib.js";
|
|
5
|
-
import * as React$1 from "react";
|
|
6
|
-
import { cn } from "@kumix/utils";
|
|
7
11
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
-
import { CheckIcon, ChevronRightIcon, LoaderCircleIcon, MinusIcon, RotateCwIcon } from "lucide-react";
|
|
9
|
-
import { mergeProps } from "@base-ui/react/merge-props";
|
|
10
|
-
import { useRender } from "@base-ui/react/use-render";
|
|
11
|
-
import { Combobox } from "@base-ui/react";
|
|
12
12
|
// src/components/reui/cascader/cascader-item.tsx
|
|
13
13
|
const ROW_INSET_CLASS = "[--cascader-row-inset:6px]";
|
|
14
14
|
const ROW_FLUSH_CLASS = "ps-[var(--cascader-row-inset,8px)]! pe-[var(--cascader-row-inset,8px)]!";
|
|
@@ -43,7 +43,7 @@ const INDICATOR_MARK_CLASS = "text-foreground! **:text-foreground!";
|
|
|
43
43
|
const CASCADER_HOVER_EXPAND_DELAY = 150;
|
|
44
44
|
/** One row. Branch presses navigate instead of selecting, vetoed here with
|
|
45
45
|
* `preventBaseUIHandler()` on `onClick` (Enter too) and on `onMouseUp`. */
|
|
46
|
-
const CascaderItem = React
|
|
46
|
+
const CascaderItem = React.memo(function CascaderItem({ node, index, depth, showPath = false, as = "option", expanded, indent = 16, branch: branchProp, selectable: selectableProp, selected: selectedProp, indeterminate: indeterminateProp, selectedCount: selectedCountProp, loading, error, childrenLoading = false, childrenError = false, className, children, onClick, onMouseUp, style, ...props }) {
|
|
47
47
|
const { index: treeIndex, mode, labels, isBranch, isSelectable, isDisabled, isSelected, isIndeterminate, selectedDescendantCount, multiple, branchesSelectable, indicator: indicatorEnabled, expandTrigger = "click", navigate, navigateAt, toggleExpanded, commit, getState, virtualized, loadMore, retryLevel } = useCascaderActions();
|
|
48
48
|
const { renderItem, renderLabel } = useCascaderRender();
|
|
49
49
|
const branch = branchProp ?? isBranch(node);
|
|
@@ -59,10 +59,10 @@ const CascaderItem = React$1.memo(function CascaderItem({ node, index, depth, sh
|
|
|
59
59
|
const showCount = trailingCount > 0;
|
|
60
60
|
const leadingCheckbox = mode === "tree" && multiple;
|
|
61
61
|
const showsIndicator = indicatorEnabled || multiple;
|
|
62
|
-
const veto = React
|
|
62
|
+
const veto = React.useCallback((event) => {
|
|
63
63
|
event.preventBaseUIHandler?.();
|
|
64
64
|
}, []);
|
|
65
|
-
const handleClick = React
|
|
65
|
+
const handleClick = React.useCallback((event) => {
|
|
66
66
|
onClick?.(event);
|
|
67
67
|
if (disabled) return;
|
|
68
68
|
if (branch && !selectable) {
|
|
@@ -78,7 +78,7 @@ const CascaderItem = React$1.memo(function CascaderItem({ node, index, depth, sh
|
|
|
78
78
|
veto,
|
|
79
79
|
navigate
|
|
80
80
|
]);
|
|
81
|
-
const handleMouseUp = React
|
|
81
|
+
const handleMouseUp = React.useCallback((event) => {
|
|
82
82
|
onMouseUp?.(event);
|
|
83
83
|
if (disabled) return;
|
|
84
84
|
if (branch && !selectable) veto(event);
|
|
@@ -89,7 +89,7 @@ const CascaderItem = React$1.memo(function CascaderItem({ node, index, depth, sh
|
|
|
89
89
|
selectable,
|
|
90
90
|
veto
|
|
91
91
|
]);
|
|
92
|
-
const handleExpanderClick = React
|
|
92
|
+
const handleExpanderClick = React.useCallback((event) => {
|
|
93
93
|
event.stopPropagation();
|
|
94
94
|
veto(event);
|
|
95
95
|
if (expanded) {
|
|
@@ -104,11 +104,11 @@ const CascaderItem = React$1.memo(function CascaderItem({ node, index, depth, sh
|
|
|
104
104
|
toggleExpanded,
|
|
105
105
|
navigate
|
|
106
106
|
]);
|
|
107
|
-
const handleExpanderMouseUp = React
|
|
107
|
+
const handleExpanderMouseUp = React.useCallback((event) => {
|
|
108
108
|
event.stopPropagation();
|
|
109
109
|
veto(event);
|
|
110
110
|
}, [veto]);
|
|
111
|
-
const handleChevronClick = React
|
|
111
|
+
const handleChevronClick = React.useCallback((event) => {
|
|
112
112
|
event.stopPropagation();
|
|
113
113
|
veto(event);
|
|
114
114
|
if (disabled) return;
|
|
@@ -123,11 +123,11 @@ const CascaderItem = React$1.memo(function CascaderItem({ node, index, depth, sh
|
|
|
123
123
|
depth,
|
|
124
124
|
navigate
|
|
125
125
|
]);
|
|
126
|
-
const handleChevronMouseUp = React
|
|
127
|
-
const handleButtonMouseDown = React
|
|
126
|
+
const handleChevronMouseUp = React.useCallback((event) => veto(event), [veto]);
|
|
127
|
+
const handleButtonMouseDown = React.useCallback((event) => {
|
|
128
128
|
event.preventDefault();
|
|
129
129
|
}, []);
|
|
130
|
-
const handleButtonClick = React
|
|
130
|
+
const handleButtonClick = React.useCallback((event) => {
|
|
131
131
|
onClick?.(event);
|
|
132
132
|
if (disabled) return;
|
|
133
133
|
if (branch && !selectable) {
|
|
@@ -145,7 +145,7 @@ const CascaderItem = React$1.memo(function CascaderItem({ node, index, depth, sh
|
|
|
145
145
|
depth,
|
|
146
146
|
commit
|
|
147
147
|
]);
|
|
148
|
-
const handleMoreClick = React
|
|
148
|
+
const handleMoreClick = React.useCallback((event) => {
|
|
149
149
|
onClick?.(event);
|
|
150
150
|
veto(event);
|
|
151
151
|
const parent = getCascaderMoreParent(node);
|
|
@@ -162,13 +162,13 @@ const CascaderItem = React$1.memo(function CascaderItem({ node, index, depth, sh
|
|
|
162
162
|
loadMore
|
|
163
163
|
]);
|
|
164
164
|
const hoverNavigates = expandTrigger === "hover" && mode === "columns" && as === "option" && branch && !disabled;
|
|
165
|
-
const hoverTimerRef = React
|
|
166
|
-
const cancelHoverNavigate = React
|
|
165
|
+
const hoverTimerRef = React.useRef(null);
|
|
166
|
+
const cancelHoverNavigate = React.useCallback(() => {
|
|
167
167
|
if (hoverTimerRef.current == null) return;
|
|
168
168
|
window.clearTimeout(hoverTimerRef.current);
|
|
169
169
|
hoverTimerRef.current = null;
|
|
170
170
|
}, []);
|
|
171
|
-
const handleHoverPointerEnter = React
|
|
171
|
+
const handleHoverPointerEnter = React.useCallback(() => {
|
|
172
172
|
cancelHoverNavigate();
|
|
173
173
|
hoverTimerRef.current = window.setTimeout(() => {
|
|
174
174
|
hoverTimerRef.current = null;
|
|
@@ -179,10 +179,10 @@ const CascaderItem = React$1.memo(function CascaderItem({ node, index, depth, sh
|
|
|
179
179
|
navigate,
|
|
180
180
|
node
|
|
181
181
|
]);
|
|
182
|
-
React
|
|
182
|
+
React.useEffect(() => {
|
|
183
183
|
if (!hoverNavigates) cancelHoverNavigate();
|
|
184
184
|
}, [hoverNavigates, cancelHoverNavigate]);
|
|
185
|
-
React
|
|
185
|
+
React.useEffect(() => cancelHoverNavigate, [cancelHoverNavigate]);
|
|
186
186
|
if (isCascaderMoreNode(node)) {
|
|
187
187
|
const text = error ? labels.error : loading ? node.count ? labels.loadingMore : labels.loading : labels.loadMore;
|
|
188
188
|
const moreStyle = mode === "tree" && nodeDepth > 0 ? {
|
|
@@ -413,7 +413,7 @@ function CascaderItemPath({ node }) {
|
|
|
413
413
|
return /* @__PURE__ */ jsx("span", {
|
|
414
414
|
"data-slot": "cascader-item-path",
|
|
415
415
|
className: "text-muted-foreground flex w-full items-center gap-0.5 truncate text-start text-xs",
|
|
416
|
-
children: ancestors.map((ancestor, i) => /* @__PURE__ */ jsxs(React
|
|
416
|
+
children: ancestors.map((ancestor, i) => /* @__PURE__ */ jsxs(React.Fragment, { children: [i > 0 ? /* @__PURE__ */ jsx("span", {
|
|
417
417
|
"aria-hidden": "true",
|
|
418
418
|
children: labels.pathSeparator
|
|
419
419
|
}) : null, /* @__PURE__ */ jsx("span", {
|
|
@@ -452,7 +452,7 @@ function CascaderItems({ children }) {
|
|
|
452
452
|
const { mode, isBranch, isSelectable, isSelected, isIndeterminate } = useCascaderActions();
|
|
453
453
|
const { renderedItems, deepResults, treeRows, loadStates } = useCascaderState();
|
|
454
454
|
const showPath = deepResults !== null;
|
|
455
|
-
if (mode === "tree") return /* @__PURE__ */ jsx(Fragment$1, { children: treeRows.map((row, i) => children ? /* @__PURE__ */ jsx(React
|
|
455
|
+
if (mode === "tree") return /* @__PURE__ */ jsx(Fragment$1, { children: treeRows.map((row, i) => children ? /* @__PURE__ */ jsx(React.Fragment, { children: children(row.node, i) }, row.node.value) : /* @__PURE__ */ jsx(CascaderItem, {
|
|
456
456
|
node: row.node,
|
|
457
457
|
depth: row.depth,
|
|
458
458
|
expanded: row.expanded,
|
|
@@ -464,7 +464,7 @@ function CascaderItems({ children }) {
|
|
|
464
464
|
"aria-setsize": row.setSize,
|
|
465
465
|
"aria-posinset": row.posInSet
|
|
466
466
|
}, row.node.value)) });
|
|
467
|
-
return /* @__PURE__ */ jsx(Fragment$1, { children: renderedItems.map((node, i) => children ? /* @__PURE__ */ jsx(React
|
|
467
|
+
return /* @__PURE__ */ jsx(Fragment$1, { children: renderedItems.map((node, i) => children ? /* @__PURE__ */ jsx(React.Fragment, { children: children(node, i) }, node.value) : /* @__PURE__ */ jsx(CascaderItem, {
|
|
468
468
|
node,
|
|
469
469
|
showPath,
|
|
470
470
|
branch: isBranch(node),
|
|
@@ -476,7 +476,7 @@ function CascaderItems({ children }) {
|
|
|
476
476
|
"aria-posinset": i + 1
|
|
477
477
|
}, node.value)) });
|
|
478
478
|
}
|
|
479
|
-
const CascaderGroupContext = React
|
|
479
|
+
const CascaderGroupContext = React.createContext(false);
|
|
480
480
|
const CASCADER_LABEL_CLASS = `text-muted-foreground text-xs py-1.5 ${CASCADER_ACTION_INSET_CLASS} block truncate`;
|
|
481
481
|
const CASCADER_SEPARATOR_CLASS = "h-px bg-border my-1 mx-[calc(var(--cascader-list-pad,4px)*-1)]! shrink-0";
|
|
482
482
|
/** A run of related rows, named by the `CascaderLabel` inside it: the group is
|
|
@@ -516,7 +516,7 @@ function CascaderPlainLabel({ className, ...props }) {
|
|
|
516
516
|
/** A heading. Inside `CascaderGroup` it is the group's accessible name; outside
|
|
517
517
|
* one (the footer flyout is a menu, not a listbox) it is decoration only. */
|
|
518
518
|
function CascaderLabel(props) {
|
|
519
|
-
return React
|
|
519
|
+
return React.useContext(CascaderGroupContext) ? /* @__PURE__ */ jsx(CascaderGroupLabel, { ...props }) : /* @__PURE__ */ jsx(CascaderPlainLabel, { ...props });
|
|
520
520
|
}
|
|
521
521
|
/** Decorative on purpose: Base UI's separator is `role="separator"`, which a
|
|
522
522
|
* `listbox` may not own, and a run that needs separating for a screen reader
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cascader-item.js","names":["React","ComboboxPrimitive"],"sources":["../../../../src/components/reui/cascader/cascader-item.tsx"],"sourcesContent":["\"use client\";\n\nimport * as React from \"react\";\nimport { Combobox as ComboboxPrimitive } from \"@base-ui/react\";\nimport { mergeProps } from \"@base-ui/react/merge-props\";\nimport { useRender } from \"@base-ui/react/use-render\";\nimport {\n CheckIcon,\n ChevronRightIcon,\n LoaderCircleIcon,\n MinusIcon,\n RotateCwIcon,\n} from \"lucide-react\";\n\nimport { cn } from \"@kumix/utils\";\nimport { Spinner } from \"../../ui/spinner\";\nimport { useCascaderActions, useCascaderRender, useCascaderState } from \"./cascader-context\";\nimport {\n getCascaderCount,\n getCascaderMoreParent,\n getCascaderPath,\n isCascaderMoreNode,\n} from \"./cascader-lib\";\nimport type { CascaderLoadState, CascaderNode } from \"./cascader-types\";\n\n// Base UI extends its synthetic events with a handler-veto escape hatch.\ntype VetoableEvent = { preventBaseUIHandler?: () => void };\n\n/** A row press. The veto hook is optional: an `as=\"button\"` row is outside Base\n * UI's listbox and gets a plain React event. */\nexport type CascaderRowEvent = React.MouseEvent<HTMLElement> & VetoableEvent;\n\n// Each style's inline inset, as a variable: a row and its absolutely positioned\n// check have to land on the same number, in LOGICAL properties. These eight\n// numbers MIRROR the shared style sheets; keep them in step with\n// `registry/styles/style-*.css`.\nconst ROW_INSET_CLASS = \"[--cascader-row-inset:6px]\";\n\n// Both insets equal, for a row with no check. `!` because a consumer may not\n// import the sheets into `layer(base)`, where the class would win on order.\nconst ROW_FLUSH_CLASS = \"ps-[var(--cascader-row-inset,8px)]! pe-[var(--cascader-row-inset,8px)]!\";\n\n// The same start inset plus room for the check. A flat `pr-8` is wrong in five\n// of the eight styles: 4px of slack in nova, 8px short in maia, luma and sera,\n// and no gutter at all in mira, whose check then overlaps its own label.\nconst ROW_GUTTER_CLASS =\n \"ps-[var(--cascader-row-inset,8px)]! pe-[calc(var(--cascader-row-inset,8px)*2_+_16px)]!\";\n\n// The check's box, inset to match the row's. A physical `right-2` neither\n// mirrors under RTL nor tracks the style's inset; `right-auto` comes with the\n// logical `end-*`, because width + `left` + `right` is over-constrained.\nconst INDICATOR_CLASS =\n \"pointer-events-none absolute flex items-center justify-center size-4 end-[var(--cascader-row-inset,8px)]! rtl:right-auto!\";\n\n// The row's type, gap, radius and icon size per style. No horizontal padding:\n// every row pairs this with `ROW_FLUSH_CLASS` or `ROW_GUTTER_CLASS`.\nconst ROW_THEME_CLASS =\n \"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\";\n\n/**\n * The row's gap and type, per style, held apart from the rest of the theme.\n *\n * A row that pins its own gap or text size takes `ROW_SHELL_CLASS` and leaves\n * these out, because a `style-<name>:` utility is emitted AFTER the plain one\n * it would have to lose to. Not receiving the token beats overriding it with\n * `!`, which a consumer then has to fight in turn.\n */\nconst ROW_GAP_CLASS = \"gap-2\";\n\nconst ROW_TEXT_CLASS = \"text-sm\";\n\nconst ROW_SHELL_CLASS = `${ROW_THEME_CLASS} 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 ${ROW_INSET_CLASS}`;\n\nconst ROW_CLASS = `${ROW_SHELL_CLASS} ${ROW_GAP_CLASS} ${ROW_TEXT_CLASS}`;\n\nconst CASCADER_ACTION_INSET_CLASS = `${ROW_INSET_CLASS} ${ROW_FLUSH_CLASS}`;\n\n/** A footer COMMAND: the row theme, so it cannot drift from the list, plus the\n * hover and `focus-visible` fills a plain button never gets. Fills, never a\n * ring: a ring under rows that all paint with a fill read as a different\n * widget bolted on. `focus-visible`, not `focus`, so a pointer press does not\n * leave a command painted as if it were still hovered. Disabled keys off\n * `aria-disabled`, not `:disabled`, to keep it FOCUSABLE: a footer whose only\n * row is disabled has no tab stop. */\nexport const CASCADER_ACTION_CLASS = `${ROW_SHELL_CLASS} ${ROW_TEXT_CLASS} ${ROW_FLUSH_CLASS} 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`;\n\n// The box around the affordances that are not the row. 20px around a 16px icon,\n// the outer 2px cancelled at the call site; 24px would set the row height.\nconst AFFORDANCE_BOX_CLASS = \"flex size-5 shrink-0 items-center justify-center rounded-sm\";\n\n// What makes an affordance read as pressable on an already highlighted row. Not\n// `hover:bg-accent`: the row is `bg-accent` under the pointer, so the chip would\n// be invisible. `!` and `**:` for the `CHECKBOX_MARK_CLASS` reason.\nconst AFFORDANCE_HOVER_CLASS =\n \"transition-[background-color,box-shadow,color] hover:bg-background hover:text-foreground! hover:**:text-foreground! hover:shadow-xs\";\n\n// The selection MARK's colour, pinned so nothing can repaint it: every row\n// carries a DESCENDANT highlight rule, and a mark is STATE. Pinned TWICE\n// because icon sets draw with `fill`/`stroke=\"currentColor\"`, which the\n// `<path>` inherits and resolves against the PATH's own `color`. Both halves\n// are asserted in `cascader-behavior.test.tsx`.\nconst CHECKBOX_MARK_CLASS = \"text-primary-foreground! **:text-primary-foreground!\";\nconst INDICATOR_MARK_CLASS = \"text-foreground! **:text-foreground!\";\n\n// Milliseconds the pointer must rest on a branch row before\n// `expandTrigger=\"hover\"` drills in: long enough that a pointer crossing the\n// column on its way elsewhere opens nothing, short enough to read as immediate.\nconst CASCADER_HOVER_EXPAND_DELAY = 150;\n\nexport interface CascaderItemProps\n extends Omit<\n ComboboxPrimitive.Item.Props,\n \"value\" | \"children\" | \"className\" | \"style\" | \"onClick\" | \"onMouseUp\"\n > {\n /** No state callback: the row merges `className` and `style` itself. */\n className?: string;\n style?: React.CSSProperties;\n onClick?: (event: CascaderRowEvent) => void;\n onMouseUp?: (event: CascaderRowEvent) => void;\n node: CascaderNode;\n /** Explicit render index. Required while virtualized and DELIBERATELY IGNORED\n * otherwise: it self-registers the row and breaks `aria-activedescendant`. */\n index?: number;\n /** Indentation depth. Drives `--cascader-indent` in tree mode. */\n depth?: number;\n /** Renders the ancestor chain under the label, for deep and global search. */\n showPath?: boolean;\n /** `option` renders a real `Combobox.Item`; `button` renders identical markup\n * outside the listbox, for the ancestor columns in columns mode. */\n as?: \"option\" | \"button\";\n /** Tree mode: this row is an expanded branch. */\n expanded?: boolean;\n /** Indent each depth by this many pixels. Tree mode only. */\n indent?: number;\n /** Whether the node has children. Defaults to the cascader's own answer, as do\n * the three below: callers pass them because they already hold the level,\n * which keeps a memoised row off the volatile context. */\n branch?: boolean;\n /** Whether the node may be committed. Defaults to the cascader's own answer. */\n selectable?: boolean;\n /** Whether the node is currently selected. Defaults to the cascader's answer. */\n selected?: boolean;\n /** Some but not all of the loaded subtree selected. `cascade` only. */\n indeterminate?: boolean;\n /** Selected nodes below this one, at any depth. Drives the trailing count. */\n selectedCount?: number;\n /** Paging row only: a request for this level is in flight. */\n loading?: boolean;\n /** Paging row only: this level's last request failed. */\n error?: boolean;\n /** Branch row only: this node's OWN children are being fetched. The chevron\n * (or, in tree mode, the expander) becomes a spinner IN PLACE, in the same\n * 16px box: no skeleton row appears below, nothing reflows. */\n childrenLoading?: boolean;\n /** Branch row only: the last fetch of this node's children failed. The same\n * box becomes the retry. The press path is unchanged: it goes through\n * `navigate`, which refires the failed level rather than moving. */\n childrenError?: boolean;\n children?: React.ReactNode;\n}\n\n/** One row. Branch presses navigate instead of selecting, vetoed here with\n * `preventBaseUIHandler()` on `onClick` (Enter too) and on `onMouseUp`. */\nconst CascaderItem = React.memo(function CascaderItem({\n node,\n index,\n depth,\n showPath = false,\n as = \"option\",\n expanded,\n indent = 16,\n branch: branchProp,\n selectable: selectableProp,\n selected: selectedProp,\n indeterminate: indeterminateProp,\n selectedCount: selectedCountProp,\n loading,\n error,\n childrenLoading = false,\n childrenError = false,\n className,\n children,\n onClick,\n onMouseUp,\n style,\n ...props\n}: CascaderItemProps) {\n // The ACTIONS context only: the state context republishes on every keystroke.\n const {\n index: treeIndex,\n mode,\n labels,\n isBranch,\n isSelectable,\n isDisabled,\n isSelected,\n isIndeterminate,\n selectedDescendantCount,\n multiple,\n branchesSelectable,\n indicator: indicatorEnabled,\n expandTrigger = \"click\",\n navigate,\n navigateAt,\n toggleExpanded,\n commit,\n getState,\n virtualized,\n loadMore,\n retryLevel,\n } = useCascaderActions();\n // Render props come from an always-current context, or a closure goes stale.\n const { renderItem, renderLabel } = useCascaderRender();\n\n const branch = branchProp ?? isBranch(node);\n const selectable = selectableProp ?? isSelectable(node);\n // An ancestor's flag counts: a search hit or a revealed path can list a row\n // inside a branch nobody may open. Asked here, off the near-stable context,\n // so no new prop and only a row that re-renders pays the ancestor walk.\n const disabled = isDisabled(node);\n const selected = selectedProp ?? isSelected(node);\n // A selected node is never also partially selected (a dash in a filled box).\n const indeterminate = !selected && (indeterminateProp ?? isIndeterminate(node));\n const count = branch ? getCascaderCount(treeIndex, node) : 0;\n const nodeDepth = depth ?? treeIndex.depthOf.get(node.value) ?? 0;\n\n // O(1): the cascader publishes a map of selected-descendant counts, because a\n // row walking its own subtree is `rows x descendants`, paid every keystroke.\n const selectedDescendants = branch ? (selectedCountProp ?? selectedDescendantCount(node)) : 0;\n // `multiple` only: with a single selection the trigger, the breadcrumb and\n // the leaf's own check already say where it is, so swapping a branch's real\n // child total (\"24\") for a permanent \"1\" would trade a useful number away.\n const showsSelectedCount = multiple && selectedDescendants > 0;\n const trailingCount = showsSelectedCount ? selectedDescendants : count;\n // Shown selected or not: suppressing it under a checked branch read as data\n // loss, and the row's TWO trailing columns mean the count never has to share\n // a slot with the check.\n const showCount = trailingCount > 0;\n\n // Where a multi-select tree puts its checkbox: at the HEAD of the row, since a\n // trailing box does not follow the label stagger. Per-LIST, never per-row, or\n // the labels below an unselectable row step back out.\n const leadingCheckbox = mode === \"tree\" && multiple;\n\n // Whether this row draws a MARK, and so whether it reserves the gutter one\n // needs. `|| multiple` is the scope of the opt-out: a checkbox is the\n // selection CONTROL, so `indicator={false}` is a no-op in multi-select.\n const showsIndicator = indicatorEnabled || multiple;\n\n const veto = React.useCallback((event: VetoableEvent) => {\n event.preventBaseUIHandler?.();\n }, []);\n\n const handleClick = React.useCallback(\n (event: CascaderRowEvent) => {\n onClick?.(event);\n if (disabled) return;\n if (branch && !selectable) {\n veto(event);\n navigate(node);\n }\n },\n [onClick, node, disabled, branch, selectable, veto, navigate],\n );\n\n const handleMouseUp = React.useCallback(\n (event: CascaderRowEvent) => {\n onMouseUp?.(event);\n if (disabled) return;\n if (branch && !selectable) veto(event);\n },\n [onMouseUp, disabled, branch, selectable, veto],\n );\n\n // The tree expander's own press. With `selectable=\"any\"` the row press\n // commits, and under `cascade` that selected a whole subtree while the row\n // stayed collapsed, so expanding needs its own target. `stopPropagation`\n // before the veto, so Base UI's handler never runs, and no role: nesting\n // one in `role=\"option\"` fails axe. `navigate` fetches BEFORE it opens.\n // A disabled row may still CLOSE what `expanded` opened, never open: a row\n // only a query holds open is not in `expanded`, and the toggle would add it.\n const handleExpanderClick = React.useCallback(\n (event: CascaderRowEvent) => {\n event.stopPropagation();\n veto(event);\n if (expanded) {\n if (!disabled || getState().expanded.has(node.value)) {\n toggleExpanded(node.value);\n }\n } else if (!disabled) navigate(node);\n },\n [veto, node, disabled, expanded, getState, toggleExpanded, navigate],\n );\n\n const handleExpanderMouseUp = React.useCallback(\n (event: CascaderRowEvent) => {\n // Base UI treats a drag-select mouseup as a commit; this is not one.\n event.stopPropagation();\n veto(event);\n },\n [veto],\n );\n\n const handleChevronClick = React.useCallback(\n (event: CascaderRowEvent) => {\n event.stopPropagation();\n veto(event);\n if (disabled) return;\n // `navigate` falls through to `pushLevel`, which APPENDS: right in the\n // deepest column, but from an ancestor column it duplicated the level and\n // corrupted the path. `navigateAt` rebuilds the trail from this depth.\n if (as === \"button\") navigateAt(node, depth ?? 0);\n else navigate(node);\n },\n [veto, node, disabled, as, navigateAt, depth, navigate],\n );\n\n const handleChevronMouseUp = React.useCallback((event: CascaderRowEvent) => veto(event), [veto]);\n\n // Keeps focus in the search field: Base UI prevents the mousedown default for\n // option rows, and focusing a `tabindex=\"-1\"` trail row kills every key.\n const handleButtonMouseDown = React.useCallback((event: React.MouseEvent<HTMLElement>) => {\n event.preventDefault();\n }, []);\n\n const handleButtonClick = React.useCallback(\n (event: CascaderRowEvent) => {\n onClick?.(event);\n if (disabled) return;\n if (branch && !selectable) {\n // Button rows only exist in the columns trail, where `depth` is the\n // column's own depth, so navigating replaces the trail from here.\n navigateAt(node, depth ?? 0);\n return;\n }\n if (selectable) commit(node);\n },\n [onClick, node, disabled, branch, selectable, navigateAt, depth, commit],\n );\n\n // The paging row's press, never a selection, whatever `selectable` says.\n const handleMoreClick = React.useCallback(\n (event: CascaderRowEvent) => {\n onClick?.(event);\n veto(event);\n const parent = getCascaderMoreParent(node);\n if (parent == null) return;\n if (error) retryLevel(parent);\n else if (!loading) loadMore(parent);\n },\n [onClick, veto, node, error, loading, retryLevel, loadMore],\n );\n\n // `expandTrigger=\"hover\"`: resting on a BRANCH row in the ACTIVE column drills\n // in after a delay. The deepest column of columns mode only, and it never\n // commits, so a pointer crossing the panel cannot change the value.\n const hoverNavigates =\n expandTrigger === \"hover\" && mode === \"columns\" && as === \"option\" && branch && !disabled;\n const hoverTimerRef = React.useRef<number | null>(null);\n\n const cancelHoverNavigate = React.useCallback(() => {\n if (hoverTimerRef.current == null) return;\n window.clearTimeout(hoverTimerRef.current);\n hoverTimerRef.current = null;\n }, []);\n\n const handleHoverPointerEnter = React.useCallback(() => {\n cancelHoverNavigate();\n hoverTimerRef.current = window.setTimeout(() => {\n hoverTimerRef.current = null;\n navigate(node);\n }, CASCADER_HOVER_EXPAND_DELAY);\n }, [cancelHoverNavigate, navigate, node]);\n\n // Drilling in demotes this column to the trail WITHOUT unmounting the row, so\n // a pending timer has to die or it fires `navigate` from an inactive column.\n React.useEffect(() => {\n if (!hoverNavigates) cancelHoverNavigate();\n }, [hoverNavigates, cancelHoverNavigate]);\n React.useEffect(() => cancelHoverNavigate, [cancelHoverNavigate]);\n\n /* ------------------------------- paging row ------------------------------ */\n\n if (isCascaderMoreNode(node)) {\n const text = error\n ? labels.error\n : loading\n ? node.count\n ? labels.loadingMore\n : labels.loading\n : labels.loadMore;\n\n const moreStyle =\n mode === \"tree\" && nodeDepth > 0\n ? ({\n ...style,\n \"--cascader-indent\": `${nodeDepth * indent}px`,\n } as React.CSSProperties)\n : style;\n\n const moreShared = {\n \"data-slot\": \"cascader-item\",\n \"data-more\": \"\",\n \"data-state\": error ? \"error\" : loading ? \"loading\" : \"idle\",\n \"data-depth\": nodeDepth,\n style: moreStyle,\n className: cn(\n ROW_SHELL_CLASS,\n ROW_FLUSH_CLASS,\n \"text-muted-foreground justify-center gap-1.5 text-xs\",\n !error && !loading && \"hover:text-foreground\",\n mode === \"tree\" && \"ps-[calc(var(--cascader-row-inset,8px)_+_var(--cascader-indent,0px))]!\",\n className,\n ),\n };\n\n const moreBody = children ?? (\n <>\n {loading ? <LoaderCircleIcon className=\"size-3.5 animate-spin\" aria-hidden /> : null}\n <span>{text}</span>\n {/* TEXT, not a button: a focusable element inside a `role=\"option\"`\n row is a `nested-interactive` violation. */}\n {error ? <span className=\"text-foreground font-medium\">{labels.retry}</span> : null}\n </>\n );\n\n if (as === \"button\") {\n const buttonProps = { ...(props as React.ComponentProps<\"button\">) };\n delete buttonProps[\"aria-setsize\"];\n delete buttonProps[\"aria-posinset\"];\n delete buttonProps[\"aria-level\"];\n\n return (\n <button\n type=\"button\"\n {...moreShared}\n tabIndex={-1}\n onClick={handleMoreClick}\n {...buttonProps}\n >\n {moreBody}\n </button>\n );\n }\n\n return (\n <ComboboxPrimitive.Item\n {...moreShared}\n value={node}\n {...(virtualized && index != null ? { index } : null)}\n {...(mode === \"tree\" ? { role: \"treeitem\" as const, \"aria-level\": nodeDepth + 1 } : null)}\n onClick={handleMoreClick}\n onMouseUp={veto}\n {...props}\n >\n {moreBody}\n </ComboboxPrimitive.Item>\n );\n }\n\n const itemState = {\n branch,\n selected,\n disabled,\n depth: nodeDepth,\n count,\n path: showPath ? getCascaderPath(treeIndex, node.value).slice(0, -1) : [],\n };\n\n const custom = renderItem?.(node, itemState);\n const customLabel = renderLabel?.(node, itemState);\n\n // What the markup cannot say: a branch would announce \"Person 24\", a naked\n // number. Trail rows are outside the listbox, so they need words for state.\n const srDetails = [\n branch ? labels.itemCount(count) : null,\n showsSelectedCount ? labels.selectedCount(selectedDescendants) : null,\n branch && mode !== \"tree\" ? labels.branchAffordance : null,\n as === \"button\" && selected ? labels.selectedState : null,\n // Option rows say this with `aria-checked=\"mixed\"`; `role=\"button\"` allows\n // neither that nor `aria-selected`, so a trail row says it in words.\n as === \"button\" && indeterminate ? labels.partiallySelectedState : null,\n ]\n .filter(Boolean)\n .map((detail) => `, ${detail}`)\n .join(\"\");\n\n // Extracted because tree mode renders it INLINE at the head of the row. It\n // reads `data-selected` off the ROW, so it also works on the trail rows.\n const checkbox = (\n <span\n data-slot=\"cascader-item-checkbox\"\n className=\"border-input in-data-indeterminate:border-primary in-data-selected:border-primary in-data-indeterminate:bg-primary in-data-selected:bg-primary in-data-indeterminate:text-primary-foreground in-data-selected:text-primary-foreground flex size-4 shrink-0 items-center justify-center rounded-[4px] border transition-colors\"\n >\n {/* Colour declared ON THE ICON with `!`; see `CHECKBOX_MARK_CLASS`. */}\n {indeterminate ? (\n <MinusIcon data-slot=\"cascader-item-dash\" className={cn(CHECKBOX_MARK_CLASS, \"size-3\")} />\n ) : (\n <CheckIcon\n data-slot=\"cascader-item-tick\"\n className={cn(CHECKBOX_MARK_CLASS, \"size-3 opacity-0 in-data-selected:opacity-100\")}\n />\n )}\n </span>\n );\n\n const indicator = (\n <>\n {multiple ? (\n checkbox\n ) : (\n <CheckIcon\n data-slot=\"cascader-item-check\"\n className={cn(\"pointer-events-none\", INDICATOR_MARK_CLASS)}\n />\n )}\n </>\n );\n\n const body = custom ?? children ?? (\n <>\n {/* Tree mode expands in place, so the branch marker leads the row. */}\n {mode === \"tree\" && branch ? (\n <span\n data-slot=\"cascader-item-expander\"\n /* Pure affordance: the row itself carries `aria-expanded`. */\n aria-hidden=\"true\"\n data-state={childrenError ? \"error\" : childrenLoading ? \"loading\" : \"idle\"}\n onClick={handleExpanderClick}\n onMouseUp={handleExpanderMouseUp}\n className={cn(\n \"-ms-0.5\",\n childrenError ? \"text-destructive\" : \"text-muted-foreground\",\n AFFORDANCE_BOX_CLASS,\n AFFORDANCE_HOVER_CLASS,\n /* A disabled row is `pointer-events-none`; only while open does its\n expander take the pointer back, to close what `expanded` opened. */\n disabled && expanded && \"pointer-events-auto\",\n childrenLoading && \"pointer-events-none\",\n )}\n >\n {childrenLoading ? (\n <Spinner aria-hidden=\"true\" className=\"size-4\" />\n ) : childrenError ? (\n <RotateCwIcon className=\"size-4\" />\n ) : (\n <ChevronRightIcon\n className={cn(\n \"size-4 transition-transform\",\n /* Collapsed it points INTO the level, so it mirrors; expanded\n it points DOWN, the same in both writing modes, so the mirror\n has to come off or `scaleX(-1)` composed with `rotate(90deg)`\n lands it pointing up. `rtl:rotate-90` beside `rotate-90` was\n a no-op that only looked like it handled this. */\n expanded ? \"rotate-90\" : \"rtl:-scale-x-100\",\n )}\n />\n )}\n </span>\n ) : mode === \"tree\" ? (\n // A LEAF's expander slot, reserved and empty: without it a leaf's label\n // started 28px off its sibling branches' and read as one level up.\n <span\n data-slot=\"cascader-item-expander-spacer\"\n aria-hidden=\"true\"\n className={cn(\"-ms-0.5\", AFFORDANCE_BOX_CLASS)}\n />\n ) : null}\n\n {/* Tree + multi-select: the box leads the row, and an unselectable row\n still reserves its width. */}\n {leadingCheckbox ? (\n selectable ? (\n checkbox\n ) : (\n <span\n data-slot=\"cascader-item-checkbox-spacer\"\n aria-hidden=\"true\"\n className=\"size-4 shrink-0\"\n />\n )\n ) : null}\n\n {node.icon ? (\n <span\n data-slot=\"cascader-item-icon\"\n className=\"text-muted-foreground flex shrink-0 items-center justify-center\"\n >\n {node.icon}\n </span>\n ) : null}\n\n {/* The row box is sized for pieces side by side; this one stacks, so it\n restates the gap: 8px reads as a paragraph break, not a subtitle. */}\n <span className=\"flex min-w-0 flex-1 flex-col items-start gap-0.5\">\n {customLabel ?? (\n <>\n <span className=\"w-full truncate text-start\">{node.label}</span>\n {node.description ? (\n <span\n data-slot=\"cascader-item-description\"\n className=\"text-muted-foreground w-full truncate text-start text-xs\"\n >\n {node.description}\n </span>\n ) : null}\n </>\n )}\n {showPath ? <CascaderItemPath node={node} /> : null}\n </span>\n\n {/* The count is a bare number, and nothing else says a branch opens. */}\n {srDetails ? (\n <span data-slot=\"cascader-item-details\" className=\"sr-only\">\n {srDetails}\n </span>\n ) : null}\n\n {/* Tree mode expands in place, so it has no drill-in chevron. */}\n {branch && mode !== \"tree\" ? (\n <span\n data-slot=\"cascader-item-trailing\"\n aria-hidden=\"true\"\n className=\"text-muted-foreground ms-auto flex shrink-0 items-center gap-1 text-xs tabular-nums\"\n >\n {showCount ? (\n <span\n data-slot=\"cascader-item-count\"\n /* The marker a consumer (and a test) reads to tell the two\n numbers apart without matching on a colour class. */\n {...(showsSelectedCount ? { \"data-selected-count\": \"\" } : null)}\n className={cn(showsSelectedCount && \"text-primary!\")}\n >\n {trailingCount}\n </span>\n ) : null}\n {/* ONLY the chevron is the drill target: sharing a hit area with\n the count made a number pressable. */}\n {/** biome-ignore lint/a11y/useKeyWithClickEvents: <> */}\n <span\n data-slot=\"cascader-item-chevron\"\n data-state={childrenError ? \"error\" : childrenLoading ? \"loading\" : \"idle\"}\n onClick={selectable ? handleChevronClick : undefined}\n onMouseUp={selectable ? handleChevronMouseUp : undefined}\n onMouseDown={as === \"button\" ? handleButtonMouseDown : undefined}\n className={cn(\n /* Cancels the box's outer slack, so the icon keeps its column. */\n \"-me-0.5\",\n AFFORDANCE_BOX_CLASS,\n selectable && AFFORDANCE_HOVER_CLASS,\n childrenError && \"text-destructive\",\n childrenLoading && \"pointer-events-none\",\n )}\n >\n {childrenLoading ? (\n <Spinner aria-hidden=\"true\" className=\"size-4\" />\n ) : childrenError ? (\n <RotateCwIcon className=\"size-4\" />\n ) : (\n <ChevronRightIcon className=\"size-4 rtl:-scale-x-100\" />\n )}\n </span>\n </span>\n ) : null}\n\n {branch && mode === \"tree\" && showCount ? (\n <span\n data-slot=\"cascader-item-count\"\n {...(showsSelectedCount ? { \"data-selected-count\": \"\" } : null)}\n /* The count is spoken by the sr-only details span instead. */\n aria-hidden=\"true\"\n className={cn(\n \"text-muted-foreground ms-auto shrink-0 text-xs tabular-nums\",\n showsSelectedCount && \"text-primary!\",\n )}\n >\n {trailingCount}\n </span>\n ) : null}\n\n {/* No trailing indicator when a tree's box led the row, or when\n `indicator={false}` opted out. See `showsIndicator`. */}\n {selectable && !leadingCheckbox && showsIndicator ? (\n as === \"button\" ? (\n // No ItemIndicator outside Base UI: `data-selected` drives it.\n (multiple || selected) && (\n <span data-slot=\"cascader-item-indicator\" className={INDICATOR_CLASS}>\n {indicator}\n </span>\n )\n ) : (\n <ComboboxPrimitive.ItemIndicator\n /* Kept mounted for a partial selection too: the row is not\n selected, so Base UI would unmount the box the dash lives in. */\n keepMounted={multiple || indeterminate}\n render={<span data-slot=\"cascader-item-indicator\" className={INDICATOR_CLASS} />}\n >\n {indicator}\n </ComboboxPrimitive.ItemIndicator>\n )\n ) : null}\n </>\n );\n\n const rowStyle =\n mode === \"tree\" && nodeDepth > 0\n ? ({\n ...style,\n \"--cascader-indent\": `${nodeDepth * indent}px`,\n } as React.CSSProperties)\n : style;\n\n const shared = {\n \"data-slot\": \"cascader-item\",\n \"data-branch\": branch || undefined,\n \"data-selected\": selected || undefined,\n \"data-indeterminate\": indeterminate || undefined,\n \"data-depth\": nodeDepth,\n \"data-expanded\": expanded || undefined,\n // No `aria-level`: `role=\"option\"` allows only `aria-selected`,\n // `aria-checked`, `aria-posinset` and `aria-setsize`, and a `role=\"button\"`\n // trail row allows none of the four. Only tree mode has a role that takes a\n // level, and it adds one below.\n style: rowStyle,\n className: cn(\n ROW_CLASS,\n /* Three separate reasons to hand the check gutter back. A multi-select\n tree's box leads the row, so the gutter would be 24px of dead space;\n `indicator={false}` drops the check, and keeping the gutter would park\n the count and the chevron one gutter in from an edge nothing sits on;\n and for branches the question is per-LIST, not per-row, because the old\n `branch && !selectable` put neighbouring chevrons on 24px and 6px in\n nova. One `pe-*` is emitted either way, so nothing here depends on\n class-merge order. */\n leadingCheckbox || !showsIndicator || (branch && !branchesSelectable)\n ? ROW_FLUSH_CLASS\n : ROW_GUTTER_CLASS,\n /* ADDED to the style's own inset, never substituted: replacing it put\n depth 0 at 12px and depth 1 at 16px in maia, luma and sera, a 4px step.\n `_+_` because Tailwind's parser splits on whitespace. */\n mode === \"tree\" && \"ps-[calc(var(--cascader-row-inset,8px)_+_var(--cascader-indent,0px))]!\",\n className,\n ),\n };\n\n if (as === \"button\") {\n const buttonProps = { ...(props as React.ComponentProps<\"button\">) };\n // `role=\"button\"` allows none of these, so they are dropped, not passed.\n delete buttonProps[\"aria-setsize\"];\n delete buttonProps[\"aria-posinset\"];\n delete buttonProps[\"aria-level\"];\n\n return (\n <button\n type=\"button\"\n {...shared}\n /* Focus stays in the search input; the trail uses ArrowLeft. */\n tabIndex={-1}\n disabled={disabled}\n aria-disabled={disabled || undefined}\n onClick={handleButtonClick}\n onMouseDown={handleButtonMouseDown}\n {...buttonProps}\n >\n {body}\n </button>\n );\n }\n\n return (\n <ComboboxPrimitive.Item\n {...shared}\n value={node}\n /* THE one gate for the explicit index: supply one outside virtualized mode\n and the first arrow key leaves `aria-activedescendant` pointing at\n nothing. */\n {...(virtualized && index != null ? { index } : null)}\n disabled={disabled}\n /* Conditional spread, never `role={... : undefined}`: `mergeProps`\n iterates own keys, so `undefined` would delete `role=\"option\"`. */\n {...(mode === \"tree\"\n ? {\n role: \"treeitem\" as const,\n \"aria-level\": nodeDepth + 1,\n ...(branch ? { \"aria-expanded\": !!expanded } : null),\n }\n : branch\n ? { \"aria-haspopup\": \"listbox\" as const }\n : null)}\n /* Only ever `mixed`: a selected row already says so with `aria-selected`,\n and two selection attributes on one row is noise. */\n {...(indeterminate ? { \"aria-checked\": \"mixed\" as const } : null)}\n {...(hoverNavigates\n ? {\n onPointerEnter: handleHoverPointerEnter,\n onPointerLeave: cancelHoverNavigate,\n }\n : null)}\n onClick={handleClick}\n onMouseUp={handleMouseUp}\n {...props}\n >\n {body}\n </ComboboxPrimitive.Item>\n );\n});\n\n/** Ancestor chain under a deep or global hit: \"Name\" alone is ambiguous. */\nfunction CascaderItemPath({ node }: { node: CascaderNode }) {\n const { index, labels } = useCascaderActions();\n const ancestors = getCascaderPath(index, node.value).slice(0, -1);\n if (!ancestors.length) return null;\n\n return (\n <span\n data-slot=\"cascader-item-path\"\n className=\"text-muted-foreground flex w-full items-center gap-0.5 truncate text-start text-xs\"\n >\n {ancestors.map((ancestor, i) => (\n <React.Fragment key={ancestor.value}>\n {i > 0 ? <span aria-hidden=\"true\">{labels.pathSeparator}</span> : null}\n <span className=\"truncate\">{ancestor.label}</span>\n </React.Fragment>\n ))}\n </span>\n );\n}\n\n/** Every load-derived prop a row needs. A PAGING row reports the level it\n * belongs to, a BRANCH row the level it OWNS; mutually exclusive, so one call\n * answers both. Exported because a memoised row cannot read them itself. */\nexport function getCascaderMoreProps(\n node: CascaderNode,\n loadStates: ReadonlyMap<string, CascaderLoadState>,\n): {\n loading: boolean;\n error: boolean;\n childrenLoading: boolean;\n childrenError: boolean;\n} {\n const parent = getCascaderMoreParent(node);\n if (parent == null) {\n const own = loadStates.get(node.value);\n return {\n loading: false,\n error: false,\n childrenLoading: !!own?.loading,\n childrenError: !!own?.error,\n };\n }\n const state = loadStates.get(parent);\n return {\n loading: !!state?.loading,\n error: !!state?.error,\n childrenLoading: false,\n childrenError: false,\n };\n}\n\nexport interface CascaderItemsProps {\n /** Replaces the default row for every item. */\n children?: (node: CascaderNode, index: number) => React.ReactNode;\n}\n\n/** Whatever the active view is: the current level, the deepest column, or the\n * flattened tree rows. Lives here so `cascader.tsx` never imports a row\n * component, which would cycle with the context. `index` is deliberately not\n * passed; see `CascaderItemProps`. */\nfunction CascaderItems({ children }: CascaderItemsProps) {\n const { mode, isBranch, isSelectable, isSelected, isIndeterminate } = useCascaderActions();\n const { renderedItems, deepResults, treeRows, loadStates } = useCascaderState();\n const showPath = deepResults !== null;\n\n // Answered once here, as plain booleans, so `React.memo` can skip a row.\n if (mode === \"tree\") {\n return (\n <>\n {treeRows.map((row, i) =>\n children ? (\n <React.Fragment key={row.node.value}>{children(row.node, i)}</React.Fragment>\n ) : (\n <CascaderItem\n key={row.node.value}\n node={row.node}\n depth={row.depth}\n expanded={row.expanded}\n branch={row.branch}\n selectable={isSelectable(row.node)}\n selected={isSelected(row.node)}\n indeterminate={isIndeterminate(row.node)}\n {...getCascaderMoreProps(row.node, loadStates)}\n aria-setsize={row.setSize}\n aria-posinset={row.posInSet}\n />\n ),\n )}\n </>\n );\n }\n\n return (\n <>\n {renderedItems.map((node, i) =>\n children ? (\n <React.Fragment key={node.value}>{children(node, i)}</React.Fragment>\n ) : (\n <CascaderItem\n key={node.value}\n node={node}\n showPath={showPath}\n branch={isBranch(node)}\n selectable={isSelectable(node)}\n selected={isSelected(node)}\n indeterminate={isIndeterminate(node)}\n {...getCascaderMoreProps(node, loadStates)}\n aria-setsize={renderedItems.length}\n aria-posinset={i + 1}\n />\n ),\n )}\n </>\n );\n}\n\n/* -------------------------------------------------------------------------- */\n/* Group / Label / Separator */\n/* -------------------------------------------------------------------------- */\n\n// Whether a `CascaderLabel` has a group to name: Base UI's `Combobox.GroupLabel`\n// THROWS when there is none, and a heading is useful outside a group.\nconst CascaderGroupContext = React.createContext(false);\n\n// A heading over a run of rows. All eight styles are spelled out because the\n// type is not uniform (sera is uppercase), and the inset is the row's own.\nconst CASCADER_LABEL_CLASS = `text-muted-foreground text-xs py-1.5 ${CASCADER_ACTION_INSET_CLASS} block truncate`;\n\n// A rule between two runs. The inline margin is not the combobox separator's:\n// that cancels the container's padding with a per-style number, wrong in a\n// footer and 4px too much in lyra. `--cascader-list-pad` reaches the edge.\nconst CASCADER_SEPARATOR_CLASS =\n \"h-px bg-border my-1 mx-[calc(var(--cascader-list-pad,4px)*-1)]! shrink-0\";\n\nexport interface CascaderGroupProps extends Omit<ComboboxPrimitive.Group.Props, \"className\"> {\n /** Base UI also accepts a state callback here; the group has no state. */\n className?: string;\n}\n\n/** A run of related rows, named by the `CascaderLabel` inside it: the group is\n * `role=\"group\"` and Base UI points its `aria-labelledby` at the label, where a\n * heading alone inside a listbox is dropped from the accessibility tree.\n * Grouping is composition, not data: `CascaderItems` renders one flat run per\n * level, so its indices line up with `listRef`. */\nfunction CascaderGroup({ className, ...props }: CascaderGroupProps) {\n return (\n <CascaderGroupContext.Provider value={true}>\n <ComboboxPrimitive.Group\n data-slot=\"cascader-group\"\n className={cn(\"flex flex-col\", className)}\n {...props}\n />\n </CascaderGroupContext.Provider>\n );\n}\n\nexport interface CascaderLabelProps\n extends Omit<ComboboxPrimitive.GroupLabel.Props, \"className\" | \"style\"> {\n /** No state callback; outside a group this is not a Base UI part at all. */\n className?: string;\n style?: React.CSSProperties;\n}\n\n/** Inside a group: the real thing, with the id association Base UI wires up. */\nfunction CascaderGroupLabel({ className, ...props }: CascaderLabelProps) {\n return (\n <ComboboxPrimitive.GroupLabel\n data-slot=\"cascader-label\"\n className={cn(CASCADER_LABEL_CLASS, className)}\n {...props}\n />\n );\n}\n\n// Outside a group: the same heading as a plain element. A separate component\n// rather than a branch, so the hook count cannot change when a label moves in.\nfunction CascaderPlainLabel({ className, ...props }: CascaderLabelProps) {\n const defaultProps = {\n \"data-slot\": \"cascader-label\",\n className: cn(CASCADER_LABEL_CLASS, className),\n };\n\n return useRender({\n defaultTagName: \"div\",\n render: props.render,\n props: mergeProps<\"div\">(defaultProps, props),\n });\n}\n\n/** A heading. Inside `CascaderGroup` it is the group's accessible name; outside\n * one (the footer flyout is a menu, not a listbox) it is decoration only. */\nfunction CascaderLabel(props: CascaderLabelProps) {\n const grouped = React.useContext(CascaderGroupContext);\n return grouped ? <CascaderGroupLabel {...props} /> : <CascaderPlainLabel {...props} />;\n}\n\nexport interface CascaderSeparatorProps\n extends Omit<ComboboxPrimitive.Separator.Props, \"className\"> {\n /** Base UI also accepts a state callback here; only the orientation varies. */\n className?: string;\n}\n\n/** Decorative on purpose: Base UI's separator is `role=\"separator\"`, which a\n * `listbox` may not own, and a run that needs separating for a screen reader\n * needs a `CascaderGroup`, not a line. A consumer can pass the role back. */\nfunction CascaderSeparator({ className, ...props }: CascaderSeparatorProps) {\n return (\n <ComboboxPrimitive.Separator\n data-slot=\"cascader-separator\"\n role=\"presentation\"\n aria-hidden=\"true\"\n className={cn(CASCADER_SEPARATOR_CLASS, className)}\n {...props}\n />\n );\n}\n\nexport { CascaderGroup, CascaderItem, CascaderItems, CascaderLabel, CascaderSeparator };\n"],"mappings":";;;;;;;;;;;;AAoCA,MAAM,kBAAkB;AAIxB,MAAM,kBAAkB;AAKxB,MAAM,mBACJ;AAKF,MAAM,kBACJ;AAIF,MAAM,kBACJ;;;;;;;;;AAUF,MAAM,gBAAgB;AAEtB,MAAM,iBAAiB;AAEvB,MAAM,kBAAkB,GAAG,gBAAgB,uLAAuL;AAElO,MAAM,YAAY,GAAG,gBAAgB,GAAG,cAAc,GAAG;AAEzD,MAAM,8BAA8B,GAAG,gBAAgB,GAAG;;;;;;;;AAS1D,MAAa,wBAAwB,GAAG,gBAAgB,GAAG,eAAe,GAAG,gBAAgB;AAI7F,MAAM,uBAAuB;AAK7B,MAAM,yBACJ;AAOF,MAAM,sBAAsB;AAC5B,MAAM,uBAAuB;AAK7B,MAAM,8BAA8B;;;AAwDpC,MAAM,eAAeA,QAAM,KAAK,SAAS,aAAa,EAC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6B;CACvE,MAAM,eAAe;EACnB,aAAa;EACb,WAAW,GAAG,sBAAsB,SAAS;CAC/C;CAEA,OAAO,UAAU;EACf,gBAAgB;EAChB,QAAQ,MAAM;EACd,OAAO,WAAkB,cAAc,KAAK;CAC9C,CAAC;AACH;;;AAIA,SAAS,cAAc,OAA2B;CAEhD,OADgBD,QAAM,WAAW,oBACpB,IAAI,oBAAC,oBAAD,EAAoB,GAAI,MAAQ,CAAA,IAAI,oBAAC,oBAAD,EAAoB,GAAI,MAAQ,CAAA;AACvF;;;;AAWA,SAAS,kBAAkB,EAAE,WAAW,GAAG,SAAiC;CAC1E,OACE,oBAACC,SAAkB,WAAnB;EACE,aAAU;EACV,MAAK;EACL,eAAY;EACZ,WAAW,GAAG,0BAA0B,SAAS;EACjD,GAAI;CACL,CAAA;AAEL"}
|
|
1
|
+
{"version":3,"file":"cascader-item.js","names":["ComboboxPrimitive"],"sources":["../../../../src/components/reui/cascader/cascader-item.tsx"],"sourcesContent":["\"use client\";\n\nimport * as React from \"react\";\nimport { Combobox as ComboboxPrimitive } from \"@base-ui/react\";\nimport { mergeProps } from \"@base-ui/react/merge-props\";\nimport { useRender } from \"@base-ui/react/use-render\";\nimport {\n CheckIcon,\n ChevronRightIcon,\n LoaderCircleIcon,\n MinusIcon,\n RotateCwIcon,\n} from \"lucide-react\";\n\nimport { cn } from \"@kumix/utils\";\nimport { Spinner } from \"../../ui/spinner\";\nimport { useCascaderActions, useCascaderRender, useCascaderState } from \"./cascader-context\";\nimport {\n getCascaderCount,\n getCascaderMoreParent,\n getCascaderPath,\n isCascaderMoreNode,\n} from \"./cascader-lib\";\nimport type { CascaderLoadState, CascaderNode } from \"./cascader-types\";\n\n// Base UI extends its synthetic events with a handler-veto escape hatch.\ntype VetoableEvent = { preventBaseUIHandler?: () => void };\n\n/** A row press. The veto hook is optional: an `as=\"button\"` row is outside Base\n * UI's listbox and gets a plain React event. */\nexport type CascaderRowEvent = React.MouseEvent<HTMLElement> & VetoableEvent;\n\n// Each style's inline inset, as a variable: a row and its absolutely positioned\n// check have to land on the same number, in LOGICAL properties. These eight\n// numbers MIRROR the shared style sheets; keep them in step with\n// `registry/styles/style-*.css`.\nconst ROW_INSET_CLASS = \"[--cascader-row-inset:6px]\";\n\n// Both insets equal, for a row with no check. `!` because a consumer may not\n// import the sheets into `layer(base)`, where the class would win on order.\nconst ROW_FLUSH_CLASS = \"ps-[var(--cascader-row-inset,8px)]! pe-[var(--cascader-row-inset,8px)]!\";\n\n// The same start inset plus room for the check. A flat `pr-8` is wrong in five\n// of the eight styles: 4px of slack in nova, 8px short in maia, luma and sera,\n// and no gutter at all in mira, whose check then overlaps its own label.\nconst ROW_GUTTER_CLASS =\n \"ps-[var(--cascader-row-inset,8px)]! pe-[calc(var(--cascader-row-inset,8px)*2_+_16px)]!\";\n\n// The check's box, inset to match the row's. A physical `right-2` neither\n// mirrors under RTL nor tracks the style's inset; `right-auto` comes with the\n// logical `end-*`, because width + `left` + `right` is over-constrained.\nconst INDICATOR_CLASS =\n \"pointer-events-none absolute flex items-center justify-center size-4 end-[var(--cascader-row-inset,8px)]! rtl:right-auto!\";\n\n// The row's type, gap, radius and icon size per style. No horizontal padding:\n// every row pairs this with `ROW_FLUSH_CLASS` or `ROW_GUTTER_CLASS`.\nconst ROW_THEME_CLASS =\n \"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\";\n\n/**\n * The row's gap and type, per style, held apart from the rest of the theme.\n *\n * A row that pins its own gap or text size takes `ROW_SHELL_CLASS` and leaves\n * these out, because a `style-<name>:` utility is emitted AFTER the plain one\n * it would have to lose to. Not receiving the token beats overriding it with\n * `!`, which a consumer then has to fight in turn.\n */\nconst ROW_GAP_CLASS = \"gap-2\";\n\nconst ROW_TEXT_CLASS = \"text-sm\";\n\nconst ROW_SHELL_CLASS = `${ROW_THEME_CLASS} 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 ${ROW_INSET_CLASS}`;\n\nconst ROW_CLASS = `${ROW_SHELL_CLASS} ${ROW_GAP_CLASS} ${ROW_TEXT_CLASS}`;\n\nconst CASCADER_ACTION_INSET_CLASS = `${ROW_INSET_CLASS} ${ROW_FLUSH_CLASS}`;\n\n/** A footer COMMAND: the row theme, so it cannot drift from the list, plus the\n * hover and `focus-visible` fills a plain button never gets. Fills, never a\n * ring: a ring under rows that all paint with a fill read as a different\n * widget bolted on. `focus-visible`, not `focus`, so a pointer press does not\n * leave a command painted as if it were still hovered. Disabled keys off\n * `aria-disabled`, not `:disabled`, to keep it FOCUSABLE: a footer whose only\n * row is disabled has no tab stop. */\nexport const CASCADER_ACTION_CLASS = `${ROW_SHELL_CLASS} ${ROW_TEXT_CLASS} ${ROW_FLUSH_CLASS} 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`;\n\n// The box around the affordances that are not the row. 20px around a 16px icon,\n// the outer 2px cancelled at the call site; 24px would set the row height.\nconst AFFORDANCE_BOX_CLASS = \"flex size-5 shrink-0 items-center justify-center rounded-sm\";\n\n// What makes an affordance read as pressable on an already highlighted row. Not\n// `hover:bg-accent`: the row is `bg-accent` under the pointer, so the chip would\n// be invisible. `!` and `**:` for the `CHECKBOX_MARK_CLASS` reason.\nconst AFFORDANCE_HOVER_CLASS =\n \"transition-[background-color,box-shadow,color] hover:bg-background hover:text-foreground! hover:**:text-foreground! hover:shadow-xs\";\n\n// The selection MARK's colour, pinned so nothing can repaint it: every row\n// carries a DESCENDANT highlight rule, and a mark is STATE. Pinned TWICE\n// because icon sets draw with `fill`/`stroke=\"currentColor\"`, which the\n// `<path>` inherits and resolves against the PATH's own `color`. Both halves\n// are asserted in `cascader-behavior.test.tsx`.\nconst CHECKBOX_MARK_CLASS = \"text-primary-foreground! **:text-primary-foreground!\";\nconst INDICATOR_MARK_CLASS = \"text-foreground! **:text-foreground!\";\n\n// Milliseconds the pointer must rest on a branch row before\n// `expandTrigger=\"hover\"` drills in: long enough that a pointer crossing the\n// column on its way elsewhere opens nothing, short enough to read as immediate.\nconst CASCADER_HOVER_EXPAND_DELAY = 150;\n\nexport interface CascaderItemProps\n extends Omit<\n ComboboxPrimitive.Item.Props,\n \"value\" | \"children\" | \"className\" | \"style\" | \"onClick\" | \"onMouseUp\"\n > {\n /** No state callback: the row merges `className` and `style` itself. */\n className?: string;\n style?: React.CSSProperties;\n onClick?: (event: CascaderRowEvent) => void;\n onMouseUp?: (event: CascaderRowEvent) => void;\n node: CascaderNode;\n /** Explicit render index. Required while virtualized and DELIBERATELY IGNORED\n * otherwise: it self-registers the row and breaks `aria-activedescendant`. */\n index?: number;\n /** Indentation depth. Drives `--cascader-indent` in tree mode. */\n depth?: number;\n /** Renders the ancestor chain under the label, for deep and global search. */\n showPath?: boolean;\n /** `option` renders a real `Combobox.Item`; `button` renders identical markup\n * outside the listbox, for the ancestor columns in columns mode. */\n as?: \"option\" | \"button\";\n /** Tree mode: this row is an expanded branch. */\n expanded?: boolean;\n /** Indent each depth by this many pixels. Tree mode only. */\n indent?: number;\n /** Whether the node has children. Defaults to the cascader's own answer, as do\n * the three below: callers pass them because they already hold the level,\n * which keeps a memoised row off the volatile context. */\n branch?: boolean;\n /** Whether the node may be committed. Defaults to the cascader's own answer. */\n selectable?: boolean;\n /** Whether the node is currently selected. Defaults to the cascader's answer. */\n selected?: boolean;\n /** Some but not all of the loaded subtree selected. `cascade` only. */\n indeterminate?: boolean;\n /** Selected nodes below this one, at any depth. Drives the trailing count. */\n selectedCount?: number;\n /** Paging row only: a request for this level is in flight. */\n loading?: boolean;\n /** Paging row only: this level's last request failed. */\n error?: boolean;\n /** Branch row only: this node's OWN children are being fetched. The chevron\n * (or, in tree mode, the expander) becomes a spinner IN PLACE, in the same\n * 16px box: no skeleton row appears below, nothing reflows. */\n childrenLoading?: boolean;\n /** Branch row only: the last fetch of this node's children failed. The same\n * box becomes the retry. The press path is unchanged: it goes through\n * `navigate`, which refires the failed level rather than moving. */\n childrenError?: boolean;\n children?: React.ReactNode;\n}\n\n/** One row. Branch presses navigate instead of selecting, vetoed here with\n * `preventBaseUIHandler()` on `onClick` (Enter too) and on `onMouseUp`. */\nconst CascaderItem = React.memo(function CascaderItem({\n node,\n index,\n depth,\n showPath = false,\n as = \"option\",\n expanded,\n indent = 16,\n branch: branchProp,\n selectable: selectableProp,\n selected: selectedProp,\n indeterminate: indeterminateProp,\n selectedCount: selectedCountProp,\n loading,\n error,\n childrenLoading = false,\n childrenError = false,\n className,\n children,\n onClick,\n onMouseUp,\n style,\n ...props\n}: CascaderItemProps) {\n // The ACTIONS context only: the state context republishes on every keystroke.\n const {\n index: treeIndex,\n mode,\n labels,\n isBranch,\n isSelectable,\n isDisabled,\n isSelected,\n isIndeterminate,\n selectedDescendantCount,\n multiple,\n branchesSelectable,\n indicator: indicatorEnabled,\n expandTrigger = \"click\",\n navigate,\n navigateAt,\n toggleExpanded,\n commit,\n getState,\n virtualized,\n loadMore,\n retryLevel,\n } = useCascaderActions();\n // Render props come from an always-current context, or a closure goes stale.\n const { renderItem, renderLabel } = useCascaderRender();\n\n const branch = branchProp ?? isBranch(node);\n const selectable = selectableProp ?? isSelectable(node);\n // An ancestor's flag counts: a search hit or a revealed path can list a row\n // inside a branch nobody may open. Asked here, off the near-stable context,\n // so no new prop and only a row that re-renders pays the ancestor walk.\n const disabled = isDisabled(node);\n const selected = selectedProp ?? isSelected(node);\n // A selected node is never also partially selected (a dash in a filled box).\n const indeterminate = !selected && (indeterminateProp ?? isIndeterminate(node));\n const count = branch ? getCascaderCount(treeIndex, node) : 0;\n const nodeDepth = depth ?? treeIndex.depthOf.get(node.value) ?? 0;\n\n // O(1): the cascader publishes a map of selected-descendant counts, because a\n // row walking its own subtree is `rows x descendants`, paid every keystroke.\n const selectedDescendants = branch ? (selectedCountProp ?? selectedDescendantCount(node)) : 0;\n // `multiple` only: with a single selection the trigger, the breadcrumb and\n // the leaf's own check already say where it is, so swapping a branch's real\n // child total (\"24\") for a permanent \"1\" would trade a useful number away.\n const showsSelectedCount = multiple && selectedDescendants > 0;\n const trailingCount = showsSelectedCount ? selectedDescendants : count;\n // Shown selected or not: suppressing it under a checked branch read as data\n // loss, and the row's TWO trailing columns mean the count never has to share\n // a slot with the check.\n const showCount = trailingCount > 0;\n\n // Where a multi-select tree puts its checkbox: at the HEAD of the row, since a\n // trailing box does not follow the label stagger. Per-LIST, never per-row, or\n // the labels below an unselectable row step back out.\n const leadingCheckbox = mode === \"tree\" && multiple;\n\n // Whether this row draws a MARK, and so whether it reserves the gutter one\n // needs. `|| multiple` is the scope of the opt-out: a checkbox is the\n // selection CONTROL, so `indicator={false}` is a no-op in multi-select.\n const showsIndicator = indicatorEnabled || multiple;\n\n const veto = React.useCallback((event: VetoableEvent) => {\n event.preventBaseUIHandler?.();\n }, []);\n\n const handleClick = React.useCallback(\n (event: CascaderRowEvent) => {\n onClick?.(event);\n if (disabled) return;\n if (branch && !selectable) {\n veto(event);\n navigate(node);\n }\n },\n [onClick, node, disabled, branch, selectable, veto, navigate],\n );\n\n const handleMouseUp = React.useCallback(\n (event: CascaderRowEvent) => {\n onMouseUp?.(event);\n if (disabled) return;\n if (branch && !selectable) veto(event);\n },\n [onMouseUp, disabled, branch, selectable, veto],\n );\n\n // The tree expander's own press. With `selectable=\"any\"` the row press\n // commits, and under `cascade` that selected a whole subtree while the row\n // stayed collapsed, so expanding needs its own target. `stopPropagation`\n // before the veto, so Base UI's handler never runs, and no role: nesting\n // one in `role=\"option\"` fails axe. `navigate` fetches BEFORE it opens.\n // A disabled row may still CLOSE what `expanded` opened, never open: a row\n // only a query holds open is not in `expanded`, and the toggle would add it.\n const handleExpanderClick = React.useCallback(\n (event: CascaderRowEvent) => {\n event.stopPropagation();\n veto(event);\n if (expanded) {\n if (!disabled || getState().expanded.has(node.value)) {\n toggleExpanded(node.value);\n }\n } else if (!disabled) navigate(node);\n },\n [veto, node, disabled, expanded, getState, toggleExpanded, navigate],\n );\n\n const handleExpanderMouseUp = React.useCallback(\n (event: CascaderRowEvent) => {\n // Base UI treats a drag-select mouseup as a commit; this is not one.\n event.stopPropagation();\n veto(event);\n },\n [veto],\n );\n\n const handleChevronClick = React.useCallback(\n (event: CascaderRowEvent) => {\n event.stopPropagation();\n veto(event);\n if (disabled) return;\n // `navigate` falls through to `pushLevel`, which APPENDS: right in the\n // deepest column, but from an ancestor column it duplicated the level and\n // corrupted the path. `navigateAt` rebuilds the trail from this depth.\n if (as === \"button\") navigateAt(node, depth ?? 0);\n else navigate(node);\n },\n [veto, node, disabled, as, navigateAt, depth, navigate],\n );\n\n const handleChevronMouseUp = React.useCallback((event: CascaderRowEvent) => veto(event), [veto]);\n\n // Keeps focus in the search field: Base UI prevents the mousedown default for\n // option rows, and focusing a `tabindex=\"-1\"` trail row kills every key.\n const handleButtonMouseDown = React.useCallback((event: React.MouseEvent<HTMLElement>) => {\n event.preventDefault();\n }, []);\n\n const handleButtonClick = React.useCallback(\n (event: CascaderRowEvent) => {\n onClick?.(event);\n if (disabled) return;\n if (branch && !selectable) {\n // Button rows only exist in the columns trail, where `depth` is the\n // column's own depth, so navigating replaces the trail from here.\n navigateAt(node, depth ?? 0);\n return;\n }\n if (selectable) commit(node);\n },\n [onClick, node, disabled, branch, selectable, navigateAt, depth, commit],\n );\n\n // The paging row's press, never a selection, whatever `selectable` says.\n const handleMoreClick = React.useCallback(\n (event: CascaderRowEvent) => {\n onClick?.(event);\n veto(event);\n const parent = getCascaderMoreParent(node);\n if (parent == null) return;\n if (error) retryLevel(parent);\n else if (!loading) loadMore(parent);\n },\n [onClick, veto, node, error, loading, retryLevel, loadMore],\n );\n\n // `expandTrigger=\"hover\"`: resting on a BRANCH row in the ACTIVE column drills\n // in after a delay. The deepest column of columns mode only, and it never\n // commits, so a pointer crossing the panel cannot change the value.\n const hoverNavigates =\n expandTrigger === \"hover\" && mode === \"columns\" && as === \"option\" && branch && !disabled;\n const hoverTimerRef = React.useRef<number | null>(null);\n\n const cancelHoverNavigate = React.useCallback(() => {\n if (hoverTimerRef.current == null) return;\n window.clearTimeout(hoverTimerRef.current);\n hoverTimerRef.current = null;\n }, []);\n\n const handleHoverPointerEnter = React.useCallback(() => {\n cancelHoverNavigate();\n hoverTimerRef.current = window.setTimeout(() => {\n hoverTimerRef.current = null;\n navigate(node);\n }, CASCADER_HOVER_EXPAND_DELAY);\n }, [cancelHoverNavigate, navigate, node]);\n\n // Drilling in demotes this column to the trail WITHOUT unmounting the row, so\n // a pending timer has to die or it fires `navigate` from an inactive column.\n React.useEffect(() => {\n if (!hoverNavigates) cancelHoverNavigate();\n }, [hoverNavigates, cancelHoverNavigate]);\n React.useEffect(() => cancelHoverNavigate, [cancelHoverNavigate]);\n\n /* ------------------------------- paging row ------------------------------ */\n\n if (isCascaderMoreNode(node)) {\n const text = error\n ? labels.error\n : loading\n ? node.count\n ? labels.loadingMore\n : labels.loading\n : labels.loadMore;\n\n const moreStyle =\n mode === \"tree\" && nodeDepth > 0\n ? ({\n ...style,\n \"--cascader-indent\": `${nodeDepth * indent}px`,\n } as React.CSSProperties)\n : style;\n\n const moreShared = {\n \"data-slot\": \"cascader-item\",\n \"data-more\": \"\",\n \"data-state\": error ? \"error\" : loading ? \"loading\" : \"idle\",\n \"data-depth\": nodeDepth,\n style: moreStyle,\n className: cn(\n ROW_SHELL_CLASS,\n ROW_FLUSH_CLASS,\n \"text-muted-foreground justify-center gap-1.5 text-xs\",\n !error && !loading && \"hover:text-foreground\",\n mode === \"tree\" && \"ps-[calc(var(--cascader-row-inset,8px)_+_var(--cascader-indent,0px))]!\",\n className,\n ),\n };\n\n const moreBody = children ?? (\n <>\n {loading ? <LoaderCircleIcon className=\"size-3.5 animate-spin\" aria-hidden /> : null}\n <span>{text}</span>\n {/* TEXT, not a button: a focusable element inside a `role=\"option\"`\n row is a `nested-interactive` violation. */}\n {error ? <span className=\"text-foreground font-medium\">{labels.retry}</span> : null}\n </>\n );\n\n if (as === \"button\") {\n const buttonProps = { ...(props as React.ComponentProps<\"button\">) };\n delete buttonProps[\"aria-setsize\"];\n delete buttonProps[\"aria-posinset\"];\n delete buttonProps[\"aria-level\"];\n\n return (\n <button\n type=\"button\"\n {...moreShared}\n tabIndex={-1}\n onClick={handleMoreClick}\n {...buttonProps}\n >\n {moreBody}\n </button>\n );\n }\n\n return (\n <ComboboxPrimitive.Item\n {...moreShared}\n value={node}\n {...(virtualized && index != null ? { index } : null)}\n {...(mode === \"tree\" ? { role: \"treeitem\" as const, \"aria-level\": nodeDepth + 1 } : null)}\n onClick={handleMoreClick}\n onMouseUp={veto}\n {...props}\n >\n {moreBody}\n </ComboboxPrimitive.Item>\n );\n }\n\n const itemState = {\n branch,\n selected,\n disabled,\n depth: nodeDepth,\n count,\n path: showPath ? getCascaderPath(treeIndex, node.value).slice(0, -1) : [],\n };\n\n const custom = renderItem?.(node, itemState);\n const customLabel = renderLabel?.(node, itemState);\n\n // What the markup cannot say: a branch would announce \"Person 24\", a naked\n // number. Trail rows are outside the listbox, so they need words for state.\n const srDetails = [\n branch ? labels.itemCount(count) : null,\n showsSelectedCount ? labels.selectedCount(selectedDescendants) : null,\n branch && mode !== \"tree\" ? labels.branchAffordance : null,\n as === \"button\" && selected ? labels.selectedState : null,\n // Option rows say this with `aria-checked=\"mixed\"`; `role=\"button\"` allows\n // neither that nor `aria-selected`, so a trail row says it in words.\n as === \"button\" && indeterminate ? labels.partiallySelectedState : null,\n ]\n .filter(Boolean)\n .map((detail) => `, ${detail}`)\n .join(\"\");\n\n // Extracted because tree mode renders it INLINE at the head of the row. It\n // reads `data-selected` off the ROW, so it also works on the trail rows.\n const checkbox = (\n <span\n data-slot=\"cascader-item-checkbox\"\n className=\"border-input in-data-indeterminate:border-primary in-data-selected:border-primary in-data-indeterminate:bg-primary in-data-selected:bg-primary in-data-indeterminate:text-primary-foreground in-data-selected:text-primary-foreground flex size-4 shrink-0 items-center justify-center rounded-[4px] border transition-colors\"\n >\n {/* Colour declared ON THE ICON with `!`; see `CHECKBOX_MARK_CLASS`. */}\n {indeterminate ? (\n <MinusIcon data-slot=\"cascader-item-dash\" className={cn(CHECKBOX_MARK_CLASS, \"size-3\")} />\n ) : (\n <CheckIcon\n data-slot=\"cascader-item-tick\"\n className={cn(CHECKBOX_MARK_CLASS, \"size-3 opacity-0 in-data-selected:opacity-100\")}\n />\n )}\n </span>\n );\n\n const indicator = (\n <>\n {multiple ? (\n checkbox\n ) : (\n <CheckIcon\n data-slot=\"cascader-item-check\"\n className={cn(\"pointer-events-none\", INDICATOR_MARK_CLASS)}\n />\n )}\n </>\n );\n\n const body = custom ?? children ?? (\n <>\n {/* Tree mode expands in place, so the branch marker leads the row. */}\n {mode === \"tree\" && branch ? (\n <span\n data-slot=\"cascader-item-expander\"\n /* Pure affordance: the row itself carries `aria-expanded`. */\n aria-hidden=\"true\"\n data-state={childrenError ? \"error\" : childrenLoading ? \"loading\" : \"idle\"}\n onClick={handleExpanderClick}\n onMouseUp={handleExpanderMouseUp}\n className={cn(\n \"-ms-0.5\",\n childrenError ? \"text-destructive\" : \"text-muted-foreground\",\n AFFORDANCE_BOX_CLASS,\n AFFORDANCE_HOVER_CLASS,\n /* A disabled row is `pointer-events-none`; only while open does its\n expander take the pointer back, to close what `expanded` opened. */\n disabled && expanded && \"pointer-events-auto\",\n childrenLoading && \"pointer-events-none\",\n )}\n >\n {childrenLoading ? (\n <Spinner aria-hidden=\"true\" className=\"size-4\" />\n ) : childrenError ? (\n <RotateCwIcon className=\"size-4\" />\n ) : (\n <ChevronRightIcon\n className={cn(\n \"size-4 transition-transform\",\n /* Collapsed it points INTO the level, so it mirrors; expanded\n it points DOWN, the same in both writing modes, so the mirror\n has to come off or `scaleX(-1)` composed with `rotate(90deg)`\n lands it pointing up. `rtl:rotate-90` beside `rotate-90` was\n a no-op that only looked like it handled this. */\n expanded ? \"rotate-90\" : \"rtl:-scale-x-100\",\n )}\n />\n )}\n </span>\n ) : mode === \"tree\" ? (\n // A LEAF's expander slot, reserved and empty: without it a leaf's label\n // started 28px off its sibling branches' and read as one level up.\n <span\n data-slot=\"cascader-item-expander-spacer\"\n aria-hidden=\"true\"\n className={cn(\"-ms-0.5\", AFFORDANCE_BOX_CLASS)}\n />\n ) : null}\n\n {/* Tree + multi-select: the box leads the row, and an unselectable row\n still reserves its width. */}\n {leadingCheckbox ? (\n selectable ? (\n checkbox\n ) : (\n <span\n data-slot=\"cascader-item-checkbox-spacer\"\n aria-hidden=\"true\"\n className=\"size-4 shrink-0\"\n />\n )\n ) : null}\n\n {node.icon ? (\n <span\n data-slot=\"cascader-item-icon\"\n className=\"text-muted-foreground flex shrink-0 items-center justify-center\"\n >\n {node.icon}\n </span>\n ) : null}\n\n {/* The row box is sized for pieces side by side; this one stacks, so it\n restates the gap: 8px reads as a paragraph break, not a subtitle. */}\n <span className=\"flex min-w-0 flex-1 flex-col items-start gap-0.5\">\n {customLabel ?? (\n <>\n <span className=\"w-full truncate text-start\">{node.label}</span>\n {node.description ? (\n <span\n data-slot=\"cascader-item-description\"\n className=\"text-muted-foreground w-full truncate text-start text-xs\"\n >\n {node.description}\n </span>\n ) : null}\n </>\n )}\n {showPath ? <CascaderItemPath node={node} /> : null}\n </span>\n\n {/* The count is a bare number, and nothing else says a branch opens. */}\n {srDetails ? (\n <span data-slot=\"cascader-item-details\" className=\"sr-only\">\n {srDetails}\n </span>\n ) : null}\n\n {/* Tree mode expands in place, so it has no drill-in chevron. */}\n {branch && mode !== \"tree\" ? (\n <span\n data-slot=\"cascader-item-trailing\"\n aria-hidden=\"true\"\n className=\"text-muted-foreground ms-auto flex shrink-0 items-center gap-1 text-xs tabular-nums\"\n >\n {showCount ? (\n <span\n data-slot=\"cascader-item-count\"\n /* The marker a consumer (and a test) reads to tell the two\n numbers apart without matching on a colour class. */\n {...(showsSelectedCount ? { \"data-selected-count\": \"\" } : null)}\n className={cn(showsSelectedCount && \"text-primary!\")}\n >\n {trailingCount}\n </span>\n ) : null}\n {/* ONLY the chevron is the drill target: sharing a hit area with\n the count made a number pressable. */}\n {/** biome-ignore lint/a11y/useKeyWithClickEvents: <> */}\n <span\n data-slot=\"cascader-item-chevron\"\n data-state={childrenError ? \"error\" : childrenLoading ? \"loading\" : \"idle\"}\n onClick={selectable ? handleChevronClick : undefined}\n onMouseUp={selectable ? handleChevronMouseUp : undefined}\n onMouseDown={as === \"button\" ? handleButtonMouseDown : undefined}\n className={cn(\n /* Cancels the box's outer slack, so the icon keeps its column. */\n \"-me-0.5\",\n AFFORDANCE_BOX_CLASS,\n selectable && AFFORDANCE_HOVER_CLASS,\n childrenError && \"text-destructive\",\n childrenLoading && \"pointer-events-none\",\n )}\n >\n {childrenLoading ? (\n <Spinner aria-hidden=\"true\" className=\"size-4\" />\n ) : childrenError ? (\n <RotateCwIcon className=\"size-4\" />\n ) : (\n <ChevronRightIcon className=\"size-4 rtl:-scale-x-100\" />\n )}\n </span>\n </span>\n ) : null}\n\n {branch && mode === \"tree\" && showCount ? (\n <span\n data-slot=\"cascader-item-count\"\n {...(showsSelectedCount ? { \"data-selected-count\": \"\" } : null)}\n /* The count is spoken by the sr-only details span instead. */\n aria-hidden=\"true\"\n className={cn(\n \"text-muted-foreground ms-auto shrink-0 text-xs tabular-nums\",\n showsSelectedCount && \"text-primary!\",\n )}\n >\n {trailingCount}\n </span>\n ) : null}\n\n {/* No trailing indicator when a tree's box led the row, or when\n `indicator={false}` opted out. See `showsIndicator`. */}\n {selectable && !leadingCheckbox && showsIndicator ? (\n as === \"button\" ? (\n // No ItemIndicator outside Base UI: `data-selected` drives it.\n (multiple || selected) && (\n <span data-slot=\"cascader-item-indicator\" className={INDICATOR_CLASS}>\n {indicator}\n </span>\n )\n ) : (\n <ComboboxPrimitive.ItemIndicator\n /* Kept mounted for a partial selection too: the row is not\n selected, so Base UI would unmount the box the dash lives in. */\n keepMounted={multiple || indeterminate}\n render={<span data-slot=\"cascader-item-indicator\" className={INDICATOR_CLASS} />}\n >\n {indicator}\n </ComboboxPrimitive.ItemIndicator>\n )\n ) : null}\n </>\n );\n\n const rowStyle =\n mode === \"tree\" && nodeDepth > 0\n ? ({\n ...style,\n \"--cascader-indent\": `${nodeDepth * indent}px`,\n } as React.CSSProperties)\n : style;\n\n const shared = {\n \"data-slot\": \"cascader-item\",\n \"data-branch\": branch || undefined,\n \"data-selected\": selected || undefined,\n \"data-indeterminate\": indeterminate || undefined,\n \"data-depth\": nodeDepth,\n \"data-expanded\": expanded || undefined,\n // No `aria-level`: `role=\"option\"` allows only `aria-selected`,\n // `aria-checked`, `aria-posinset` and `aria-setsize`, and a `role=\"button\"`\n // trail row allows none of the four. Only tree mode has a role that takes a\n // level, and it adds one below.\n style: rowStyle,\n className: cn(\n ROW_CLASS,\n /* Three separate reasons to hand the check gutter back. A multi-select\n tree's box leads the row, so the gutter would be 24px of dead space;\n `indicator={false}` drops the check, and keeping the gutter would park\n the count and the chevron one gutter in from an edge nothing sits on;\n and for branches the question is per-LIST, not per-row, because the old\n `branch && !selectable` put neighbouring chevrons on 24px and 6px in\n nova. One `pe-*` is emitted either way, so nothing here depends on\n class-merge order. */\n leadingCheckbox || !showsIndicator || (branch && !branchesSelectable)\n ? ROW_FLUSH_CLASS\n : ROW_GUTTER_CLASS,\n /* ADDED to the style's own inset, never substituted: replacing it put\n depth 0 at 12px and depth 1 at 16px in maia, luma and sera, a 4px step.\n `_+_` because Tailwind's parser splits on whitespace. */\n mode === \"tree\" && \"ps-[calc(var(--cascader-row-inset,8px)_+_var(--cascader-indent,0px))]!\",\n className,\n ),\n };\n\n if (as === \"button\") {\n const buttonProps = { ...(props as React.ComponentProps<\"button\">) };\n // `role=\"button\"` allows none of these, so they are dropped, not passed.\n delete buttonProps[\"aria-setsize\"];\n delete buttonProps[\"aria-posinset\"];\n delete buttonProps[\"aria-level\"];\n\n return (\n <button\n type=\"button\"\n {...shared}\n /* Focus stays in the search input; the trail uses ArrowLeft. */\n tabIndex={-1}\n disabled={disabled}\n aria-disabled={disabled || undefined}\n onClick={handleButtonClick}\n onMouseDown={handleButtonMouseDown}\n {...buttonProps}\n >\n {body}\n </button>\n );\n }\n\n return (\n <ComboboxPrimitive.Item\n {...shared}\n value={node}\n /* THE one gate for the explicit index: supply one outside virtualized mode\n and the first arrow key leaves `aria-activedescendant` pointing at\n nothing. */\n {...(virtualized && index != null ? { index } : null)}\n disabled={disabled}\n /* Conditional spread, never `role={... : undefined}`: `mergeProps`\n iterates own keys, so `undefined` would delete `role=\"option\"`. */\n {...(mode === \"tree\"\n ? {\n role: \"treeitem\" as const,\n \"aria-level\": nodeDepth + 1,\n ...(branch ? { \"aria-expanded\": !!expanded } : null),\n }\n : branch\n ? { \"aria-haspopup\": \"listbox\" as const }\n : null)}\n /* Only ever `mixed`: a selected row already says so with `aria-selected`,\n and two selection attributes on one row is noise. */\n {...(indeterminate ? { \"aria-checked\": \"mixed\" as const } : null)}\n {...(hoverNavigates\n ? {\n onPointerEnter: handleHoverPointerEnter,\n onPointerLeave: cancelHoverNavigate,\n }\n : null)}\n onClick={handleClick}\n onMouseUp={handleMouseUp}\n {...props}\n >\n {body}\n </ComboboxPrimitive.Item>\n );\n});\n\n/** Ancestor chain under a deep or global hit: \"Name\" alone is ambiguous. */\nfunction CascaderItemPath({ node }: { node: CascaderNode }) {\n const { index, labels } = useCascaderActions();\n const ancestors = getCascaderPath(index, node.value).slice(0, -1);\n if (!ancestors.length) return null;\n\n return (\n <span\n data-slot=\"cascader-item-path\"\n className=\"text-muted-foreground flex w-full items-center gap-0.5 truncate text-start text-xs\"\n >\n {ancestors.map((ancestor, i) => (\n <React.Fragment key={ancestor.value}>\n {i > 0 ? <span aria-hidden=\"true\">{labels.pathSeparator}</span> : null}\n <span className=\"truncate\">{ancestor.label}</span>\n </React.Fragment>\n ))}\n </span>\n );\n}\n\n/** Every load-derived prop a row needs. A PAGING row reports the level it\n * belongs to, a BRANCH row the level it OWNS; mutually exclusive, so one call\n * answers both. Exported because a memoised row cannot read them itself. */\nexport function getCascaderMoreProps(\n node: CascaderNode,\n loadStates: ReadonlyMap<string, CascaderLoadState>,\n): {\n loading: boolean;\n error: boolean;\n childrenLoading: boolean;\n childrenError: boolean;\n} {\n const parent = getCascaderMoreParent(node);\n if (parent == null) {\n const own = loadStates.get(node.value);\n return {\n loading: false,\n error: false,\n childrenLoading: !!own?.loading,\n childrenError: !!own?.error,\n };\n }\n const state = loadStates.get(parent);\n return {\n loading: !!state?.loading,\n error: !!state?.error,\n childrenLoading: false,\n childrenError: false,\n };\n}\n\nexport interface CascaderItemsProps {\n /** Replaces the default row for every item. */\n children?: (node: CascaderNode, index: number) => React.ReactNode;\n}\n\n/** Whatever the active view is: the current level, the deepest column, or the\n * flattened tree rows. Lives here so `cascader.tsx` never imports a row\n * component, which would cycle with the context. `index` is deliberately not\n * passed; see `CascaderItemProps`. */\nfunction CascaderItems({ children }: CascaderItemsProps) {\n const { mode, isBranch, isSelectable, isSelected, isIndeterminate } = useCascaderActions();\n const { renderedItems, deepResults, treeRows, loadStates } = useCascaderState();\n const showPath = deepResults !== null;\n\n // Answered once here, as plain booleans, so `React.memo` can skip a row.\n if (mode === \"tree\") {\n return (\n <>\n {treeRows.map((row, i) =>\n children ? (\n <React.Fragment key={row.node.value}>{children(row.node, i)}</React.Fragment>\n ) : (\n <CascaderItem\n key={row.node.value}\n node={row.node}\n depth={row.depth}\n expanded={row.expanded}\n branch={row.branch}\n selectable={isSelectable(row.node)}\n selected={isSelected(row.node)}\n indeterminate={isIndeterminate(row.node)}\n {...getCascaderMoreProps(row.node, loadStates)}\n aria-setsize={row.setSize}\n aria-posinset={row.posInSet}\n />\n ),\n )}\n </>\n );\n }\n\n return (\n <>\n {renderedItems.map((node, i) =>\n children ? (\n <React.Fragment key={node.value}>{children(node, i)}</React.Fragment>\n ) : (\n <CascaderItem\n key={node.value}\n node={node}\n showPath={showPath}\n branch={isBranch(node)}\n selectable={isSelectable(node)}\n selected={isSelected(node)}\n indeterminate={isIndeterminate(node)}\n {...getCascaderMoreProps(node, loadStates)}\n aria-setsize={renderedItems.length}\n aria-posinset={i + 1}\n />\n ),\n )}\n </>\n );\n}\n\n/* -------------------------------------------------------------------------- */\n/* Group / Label / Separator */\n/* -------------------------------------------------------------------------- */\n\n// Whether a `CascaderLabel` has a group to name: Base UI's `Combobox.GroupLabel`\n// THROWS when there is none, and a heading is useful outside a group.\nconst CascaderGroupContext = React.createContext(false);\n\n// A heading over a run of rows. All eight styles are spelled out because the\n// type is not uniform (sera is uppercase), and the inset is the row's own.\nconst CASCADER_LABEL_CLASS = `text-muted-foreground text-xs py-1.5 ${CASCADER_ACTION_INSET_CLASS} block truncate`;\n\n// A rule between two runs. The inline margin is not the combobox separator's:\n// that cancels the container's padding with a per-style number, wrong in a\n// footer and 4px too much in lyra. `--cascader-list-pad` reaches the edge.\nconst CASCADER_SEPARATOR_CLASS =\n \"h-px bg-border my-1 mx-[calc(var(--cascader-list-pad,4px)*-1)]! shrink-0\";\n\nexport interface CascaderGroupProps extends Omit<ComboboxPrimitive.Group.Props, \"className\"> {\n /** Base UI also accepts a state callback here; the group has no state. */\n className?: string;\n}\n\n/** A run of related rows, named by the `CascaderLabel` inside it: the group is\n * `role=\"group\"` and Base UI points its `aria-labelledby` at the label, where a\n * heading alone inside a listbox is dropped from the accessibility tree.\n * Grouping is composition, not data: `CascaderItems` renders one flat run per\n * level, so its indices line up with `listRef`. */\nfunction CascaderGroup({ className, ...props }: CascaderGroupProps) {\n return (\n <CascaderGroupContext.Provider value={true}>\n <ComboboxPrimitive.Group\n data-slot=\"cascader-group\"\n className={cn(\"flex flex-col\", className)}\n {...props}\n />\n </CascaderGroupContext.Provider>\n );\n}\n\nexport interface CascaderLabelProps\n extends Omit<ComboboxPrimitive.GroupLabel.Props, \"className\" | \"style\"> {\n /** No state callback; outside a group this is not a Base UI part at all. */\n className?: string;\n style?: React.CSSProperties;\n}\n\n/** Inside a group: the real thing, with the id association Base UI wires up. */\nfunction CascaderGroupLabel({ className, ...props }: CascaderLabelProps) {\n return (\n <ComboboxPrimitive.GroupLabel\n data-slot=\"cascader-label\"\n className={cn(CASCADER_LABEL_CLASS, className)}\n {...props}\n />\n );\n}\n\n// Outside a group: the same heading as a plain element. A separate component\n// rather than a branch, so the hook count cannot change when a label moves in.\nfunction CascaderPlainLabel({ className, ...props }: CascaderLabelProps) {\n const defaultProps = {\n \"data-slot\": \"cascader-label\",\n className: cn(CASCADER_LABEL_CLASS, className),\n };\n\n return useRender({\n defaultTagName: \"div\",\n render: props.render,\n props: mergeProps<\"div\">(defaultProps, props),\n });\n}\n\n/** A heading. Inside `CascaderGroup` it is the group's accessible name; outside\n * one (the footer flyout is a menu, not a listbox) it is decoration only. */\nfunction CascaderLabel(props: CascaderLabelProps) {\n const grouped = React.useContext(CascaderGroupContext);\n return grouped ? <CascaderGroupLabel {...props} /> : <CascaderPlainLabel {...props} />;\n}\n\nexport interface CascaderSeparatorProps\n extends Omit<ComboboxPrimitive.Separator.Props, \"className\"> {\n /** Base UI also accepts a state callback here; only the orientation varies. */\n className?: string;\n}\n\n/** Decorative on purpose: Base UI's separator is `role=\"separator\"`, which a\n * `listbox` may not own, and a run that needs separating for a screen reader\n * needs a `CascaderGroup`, not a line. A consumer can pass the role back. */\nfunction CascaderSeparator({ className, ...props }: CascaderSeparatorProps) {\n return (\n <ComboboxPrimitive.Separator\n data-slot=\"cascader-separator\"\n role=\"presentation\"\n aria-hidden=\"true\"\n className={cn(CASCADER_SEPARATOR_CLASS, className)}\n {...props}\n />\n );\n}\n\nexport { CascaderGroup, CascaderItem, CascaderItems, CascaderLabel, CascaderSeparator };\n"],"mappings":";;;;;;;;;;;;AAoCA,MAAM,kBAAkB;AAIxB,MAAM,kBAAkB;AAKxB,MAAM,mBACJ;AAKF,MAAM,kBACJ;AAIF,MAAM,kBACJ;;;;;;;;;AAUF,MAAM,gBAAgB;AAEtB,MAAM,iBAAiB;AAEvB,MAAM,kBAAkB,GAAG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,OAAO;EACpC,UAAA,oBAACA,SAAkB,OAAnB;GACE,aAAU;GACV,WAAW,GAAG,iBAAiB,SAAS;GACxC,GAAI;EACL,CAAA;CAC4B,CAAA;AAEnC;;AAUA,SAAS,mBAAmB,EAAE,WAAW,GAAG,SAA6B;CACvE,OACE,oBAACA,SAAkB,YAAnB;EACE,aAAU;EACV,WAAW,GAAG,sBAAsB,SAAS;EAC7C,GAAI;CACL,CAAA;AAEL;AAIA,SAAS,mBAAmB,EAAE,WAAW,GAAG,SAA6B;CACvE,MAAM,eAAe;EACnB,aAAa;EACb,WAAW,GAAG,sBAAsB,SAAS;CAC/C;CAEA,OAAO,UAAU;EACf,gBAAgB;EAChB,QAAQ,MAAM;EACd,OAAO,WAAkB,cAAc,KAAK;CAC9C,CAAC;AACH;;;AAIA,SAAS,cAAc,OAA2B;CAEhD,OADgB,MAAM,WAAW,oBACpB,IAAI,oBAAC,oBAAD,EAAoB,GAAI,MAAQ,CAAA,IAAI,oBAAC,oBAAD,EAAoB,GAAI,MAAQ,CAAA;AACvF;;;;AAWA,SAAS,kBAAkB,EAAE,WAAW,GAAG,SAAiC;CAC1E,OACE,oBAACA,SAAkB,WAAnB;EACE,aAAU;EACV,MAAK;EACL,eAAY;EACZ,WAAW,GAAG,0BAA0B,SAAS;EACjD,GAAI;CACL,CAAA;AAEL"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as CascaderSelectable, a as CascaderFlatNode, i as CascaderCollapse, m as CascaderPathSegment, o as CascaderIndex, p as CascaderNode } from "../../../cascader-types-
|
|
1
|
+
import { _ as CascaderSelectable, a as CascaderFlatNode, i as CascaderCollapse, m as CascaderPathSegment, o as CascaderIndex, p as CascaderNode } from "../../../cascader-types-D2DFznHz.js";
|
|
2
2
|
/** Root level key in `childrenOf`. NUL-prefixed so no real value collides. */
|
|
3
3
|
export declare const CASCADER_ROOT_KEY = "\0root";
|
|
4
4
|
/**
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import
|
|
2
|
-
import * as React$1 from "react";
|
|
3
|
-
import { useRender } from "@base-ui/react/use-render";
|
|
1
|
+
import * as React from "react";
|
|
4
2
|
import { Combobox } from "@base-ui/react";
|
|
3
|
+
import { useRender } from "@base-ui/react/use-render";
|
|
4
|
+
import { i as CascaderCollapse, p as CascaderNode, v as CascaderValueDisplay } from "../../../cascader-types-D2DFznHz.js";
|
|
5
5
|
export type CascaderNavProps = useRender.ComponentProps<"div">;
|
|
6
6
|
/**
|
|
7
7
|
* Header: back control, search input, and the separator under them. The
|
|
8
8
|
* breadcrumb belongs with the list below: it describes the rows, not the field.
|
|
9
9
|
*/
|
|
10
|
-
declare function CascaderNav({ className, ...props }: CascaderNavProps): React
|
|
10
|
+
declare function CascaderNav({ className, ...props }: CascaderNavProps): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
|
|
11
11
|
export interface CascaderBackProps extends Omit<useRender.ComponentProps<"button">, "children"> {
|
|
12
|
-
children?: React
|
|
12
|
+
children?: React.ReactNode;
|
|
13
13
|
}
|
|
14
14
|
/** Pops one level. Renders nothing at the root, so no dead header space. */
|
|
15
|
-
declare function CascaderBack({ className, children, ...props }: CascaderBackProps): React
|
|
15
|
+
declare function CascaderBack({ className, children, ...props }: CascaderBackProps): React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | null;
|
|
16
16
|
export interface CascaderBreadcrumbProps extends Omit<useRender.ComponentProps<"nav">, "children"> {
|
|
17
17
|
/** Maximum visible node segments before the middle collapses. */
|
|
18
18
|
maxSegments?: number;
|
|
@@ -26,7 +26,7 @@ export interface CascaderBreadcrumbProps extends Omit<useRender.ComponentProps<"
|
|
|
26
26
|
* level IS the last crumb: dropping it read as a rendering bug, a trail naming
|
|
27
27
|
* only the places you are not.
|
|
28
28
|
*/
|
|
29
|
-
declare function CascaderBreadcrumb({ className, maxSegments, collapse, interactive, ...props }: CascaderBreadcrumbProps): React
|
|
29
|
+
declare function CascaderBreadcrumb({ className, maxSegments, collapse, interactive, ...props }: CascaderBreadcrumbProps): React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | null;
|
|
30
30
|
export interface CascaderInputProps extends Combobox.Input.Props {
|
|
31
31
|
/** Renders the back control inline, before the field. Defaults to true. */
|
|
32
32
|
showBack?: boolean;
|
|
@@ -35,23 +35,23 @@ export interface CascaderInputProps extends Combobox.Input.Props {
|
|
|
35
35
|
* Search field. MUST render inside the positioner: only there does Base UI skip
|
|
36
36
|
* the refill from the committed selection that would fight every level swap.
|
|
37
37
|
*/
|
|
38
|
-
declare function CascaderInput({ className, showBack, placeholder, onKeyDown, "aria-describedby": ariaDescribedBy, ...props }: CascaderInputProps): React
|
|
38
|
+
declare function CascaderInput({ className, showBack, placeholder, onKeyDown, "aria-describedby": ariaDescribedBy, ...props }: CascaderInputProps): React.JSX.Element;
|
|
39
39
|
export interface CascaderValueProps extends Omit<useRender.ComponentProps<"span">, "children"> {
|
|
40
40
|
/** `path` shows the full trail, `leaf` only the node, `count` only a total. */
|
|
41
41
|
display?: CascaderValueDisplay;
|
|
42
42
|
maxSegments?: number;
|
|
43
43
|
collapse?: CascaderCollapse;
|
|
44
|
-
separator?: React
|
|
44
|
+
separator?: React.ReactNode;
|
|
45
45
|
/** Renders the selected node's icon before the trail. */
|
|
46
46
|
showIcon?: boolean;
|
|
47
|
-
placeholder?: React
|
|
47
|
+
placeholder?: React.ReactNode;
|
|
48
48
|
/** Replaces the whole rendering. Receives the resolved selection and path. */
|
|
49
|
-
children?: (selected: CascaderNode[], path: CascaderNode[]) => React
|
|
49
|
+
children?: (selected: CascaderNode[], path: CascaderNode[]) => React.ReactNode;
|
|
50
50
|
}
|
|
51
51
|
/**
|
|
52
52
|
* Trigger display. Defaults to the collapsed selection path rather than a bare
|
|
53
53
|
* leaf label, which in a nested picker is frequently ambiguous.
|
|
54
54
|
*/
|
|
55
|
-
declare function CascaderValue({ className, display, maxSegments, collapse, separator, showIcon, placeholder, children, ...props }: CascaderValueProps): React
|
|
55
|
+
declare function CascaderValue({ className, display, maxSegments, collapse, separator, showIcon, placeholder, children, ...props }: CascaderValueProps): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
|
|
56
56
|
export { CascaderBack, CascaderBreadcrumb, CascaderInput, CascaderNav, CascaderValue };
|
|
57
57
|
//# sourceMappingURL=cascader-nav.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cascader-nav.d.ts","names":["
|
|
1
|
+
{"version":3,"file":"cascader-nav.d.ts","names":["ComboboxPrimitive"],"sources":["../../../../src/components/reui/cascader/cascader-nav.tsx"],"mappings":";;;;YAgCY,mBAAmB,UAAU;;;;;iBAMhC,cAAc,cAAc,SAAS,mBAAgB,MAAA,+BAAA,MAAA;iBAsB7C,0BAA0B,KAAK,UAAU;EACxD,WAAW,MAAM;;;iBAIV,eAAe,WAAW,aAAa,SAAS,oBAAiB,MAAA,+BAAA,MAAA;iBAmCzD,gCAAgC,KAAK,UAAU;;EAE9D;EACA,WAAW;;EAEX;;;;;;;;iBASO,qBACP,WACA,aACA,UACA,gBACG,SACF,0BAAuB,MAAA,+BAAA,MAAA;iBAqFT,2BAA2BA,SAAkB,MAAM;;EAElE;;;;;;iBAUO,gBACP,WACA,UACA,aACA,+BACoB,oBACjB,SACF,qBAAkB,MAAA,IAAA;iBAwPJ,2BAA2B,KAAK,UAAU;;EAEzD,UAAU;EACV;EACA,WAAW;EACX,YAAY,MAAM;;EAElB;EACA,cAAc,MAAM;;EAEpB,YAAY,UAAU,gBAAgB,MAAM,mBAAmB,MAAM;;;;;;iBAO9D,gBACP,WACA,SACA,aACA,UACA,WACA,UACA,aACA,aACG,SACF,qBAAkB,MAAA,+BAAA,MAAA"}
|