@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
|
@@ -0,0 +1,797 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useEffect, useRef, useState } from "react";
|
|
3
|
+
import { Gem, Volume2, VolumeX } from "lucide-react";
|
|
4
|
+
import { AnimatePresence, motion, useAnimate, useReducedMotion } from "motion/react";
|
|
5
|
+
import { cn } from "@kumix/utils";
|
|
6
|
+
import { EASE_OUT } from "../../lib/ease.js";
|
|
7
|
+
import { createGameSounds } from "../../lib/game-sounds.js";
|
|
8
|
+
import { useMessages } from "../../lib/i18n.js";
|
|
9
|
+
import { PresenceGate } from "../../lib/presence-gate.js";
|
|
10
|
+
import { ActionSwapCascadeIcon } from "./action-swap-cascade.js";
|
|
11
|
+
import { AdaptiveStepper, AdaptiveStepperDecrement, AdaptiveStepperIncrement, AdaptiveStepperValue } from "./adaptive-stepper.js";
|
|
12
|
+
import { Button } from "./button/base.js";
|
|
13
|
+
import { formatMultiplier, formatOdds } from "./casino/game-parts.js";
|
|
14
|
+
import { NumberTicker } from "./number-ticker.js";
|
|
15
|
+
import { t as Tooltip } from "../../tooltip-BUkacvMl.js";
|
|
16
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
17
|
+
// src/components/motion/mines.tsx
|
|
18
|
+
/** English defaults. Override per instance with `labels`, or app-wide with `LocaleProvider`. */
|
|
19
|
+
const minesMessages = {
|
|
20
|
+
label: "Mines",
|
|
21
|
+
mineCount: "Mine count",
|
|
22
|
+
mineOne: "{count} mine",
|
|
23
|
+
mineMany: "{count} mines",
|
|
24
|
+
multiplier: "Multiplier",
|
|
25
|
+
multiplierLost: "Multiplier lost",
|
|
26
|
+
oddsNext: "{percent}% safe · next {multiplier}",
|
|
27
|
+
oddsFirst: "First pick {percent}% safe",
|
|
28
|
+
tiles: "Tiles",
|
|
29
|
+
tile: "Row {row}, column {column}, {state}",
|
|
30
|
+
tileHidden: "hidden",
|
|
31
|
+
tileGemNotPicked: "gem, not picked",
|
|
32
|
+
tileMineNotPicked: "mine, not picked",
|
|
33
|
+
tileGemPicked: "gem, pick {pick}",
|
|
34
|
+
tileMineHit: "mine, hit",
|
|
35
|
+
start: "Start",
|
|
36
|
+
cashOut: "Cash out {multiplier}",
|
|
37
|
+
playAgain: "Play again",
|
|
38
|
+
sound: "Sound",
|
|
39
|
+
roundStarted: "Round started with {mines}.",
|
|
40
|
+
gemFound: "Gem. {multiplier}.",
|
|
41
|
+
mineFound: "Mine. The round is over.",
|
|
42
|
+
cashedOutAt: "Cashed out at {multiplier}.",
|
|
43
|
+
hideResult: "Hide result and show the board",
|
|
44
|
+
roundResult: "Round result",
|
|
45
|
+
cashedOut: "Cashed out",
|
|
46
|
+
mineHit: "Mine hit",
|
|
47
|
+
gems: "Gems",
|
|
48
|
+
gemsOf: "{gems} of {total}",
|
|
49
|
+
mines: "Mines",
|
|
50
|
+
oddsBeaten: "Odds beaten",
|
|
51
|
+
oddsBeatenValue: "1 in {odds}",
|
|
52
|
+
lostOnPick: "Lost on pick"
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* Fair payout after `gems` safe picks on a board of `tiles` with `mines`:
|
|
56
|
+
* the inverse of the chance of picking that many gems in a row. `mines` is
|
|
57
|
+
* kept between 0 and tiles − 1 and `gems` between 0 and the safe tiles, so
|
|
58
|
+
* the result is always finite.
|
|
59
|
+
*/
|
|
60
|
+
function minesMultiplier(tiles, mines, gems) {
|
|
61
|
+
const safeMines = Math.max(0, Math.min(Math.round(mines), tiles - 1));
|
|
62
|
+
const safeGems = Math.max(0, Math.min(Math.round(gems), tiles - safeMines));
|
|
63
|
+
let multiplier = 1;
|
|
64
|
+
for (let i = 0; i < safeGems; i++) multiplier *= (tiles - i) / (tiles - safeMines - i);
|
|
65
|
+
return multiplier;
|
|
66
|
+
}
|
|
67
|
+
const ICON_SPRING = {
|
|
68
|
+
type: "spring",
|
|
69
|
+
duration: .3,
|
|
70
|
+
bounce: 0
|
|
71
|
+
};
|
|
72
|
+
const RIPPLE_STEP = .025;
|
|
73
|
+
const SHAKE = {
|
|
74
|
+
duration: .3,
|
|
75
|
+
ease: EASE_OUT
|
|
76
|
+
};
|
|
77
|
+
const GEM_POP = {
|
|
78
|
+
type: "spring",
|
|
79
|
+
duration: .35,
|
|
80
|
+
bounce: .4
|
|
81
|
+
};
|
|
82
|
+
const PULSE_STEP = .04;
|
|
83
|
+
const PULSE_TIME = .35;
|
|
84
|
+
const EXIT = {
|
|
85
|
+
duration: .12,
|
|
86
|
+
ease: EASE_OUT
|
|
87
|
+
};
|
|
88
|
+
/**
|
|
89
|
+
* A mines board: pick tiles to find gems, each raising the multiplier, and
|
|
90
|
+
* cash out before you hit a mine. The round's end reveals every tile.
|
|
91
|
+
*/
|
|
92
|
+
function Mines({ size: sizeProp = 5, mines: minesProp, defaultMines = 3, onMinesChange, onReveal, onCashOut, sound, defaultSound = false, onSoundChange, showResult = true, "aria-label": ariaLabel, labels, className }) {
|
|
93
|
+
const t = useMessages("mines", minesMessages, labels);
|
|
94
|
+
const mineCount = (count) => t(count === 1 ? "mineOne" : "mineMany", { count });
|
|
95
|
+
const reduce = useReducedMotion() ?? false;
|
|
96
|
+
const size = Math.max(2, Math.round(sizeProp) || 2);
|
|
97
|
+
useEffect(() => {
|
|
98
|
+
if (process.env.NODE_ENV !== "production" && size !== sizeProp) console.warn(`Mines: size must be a whole number of at least 2; using ${size}.`);
|
|
99
|
+
}, [size, sizeProp]);
|
|
100
|
+
const tiles = size * size;
|
|
101
|
+
const [internalMines, setInternalMines] = useState(defaultMines);
|
|
102
|
+
const chosenMines = Math.min(Math.max(1, Math.round(minesProp ?? internalMines) || 1), tiles - 1);
|
|
103
|
+
const [phase, setPhase] = useState("idle");
|
|
104
|
+
const [mineSet, setMineSet] = useState(/* @__PURE__ */ new Set());
|
|
105
|
+
const [picked, setPicked] = useState([]);
|
|
106
|
+
const [cursor, setCursor] = useState(0);
|
|
107
|
+
const [announcement, setAnnouncement] = useState("");
|
|
108
|
+
const [resultOpen, setResultOpen] = useState(false);
|
|
109
|
+
const sectionRef = useRef(null);
|
|
110
|
+
const mainButtonRef = useRef(null);
|
|
111
|
+
const tileRefs = useRef([]);
|
|
112
|
+
const [, animate] = useAnimate();
|
|
113
|
+
const resetBoard = () => {
|
|
114
|
+
setPhase("idle");
|
|
115
|
+
setPicked([]);
|
|
116
|
+
setMineSet(/* @__PURE__ */ new Set());
|
|
117
|
+
setResultOpen(false);
|
|
118
|
+
};
|
|
119
|
+
const [boardSize, setBoardSize] = useState(size);
|
|
120
|
+
if (boardSize !== size) {
|
|
121
|
+
setBoardSize(size);
|
|
122
|
+
resetBoard();
|
|
123
|
+
setCursor(0);
|
|
124
|
+
}
|
|
125
|
+
const mines = phase === "idle" ? chosenMines : mineSet.size;
|
|
126
|
+
const gems = picked.filter((tile) => !mineSet.has(tile)).length;
|
|
127
|
+
const multiplier = minesMultiplier(tiles, mines, gems);
|
|
128
|
+
const next = minesMultiplier(tiles, mines, gems + 1);
|
|
129
|
+
const over = phase === "busted" || phase === "cashed";
|
|
130
|
+
const safe = (tiles - mines - gems) / (tiles - gems);
|
|
131
|
+
const lastPick = picked.at(-1) ?? Math.floor(tiles / 2);
|
|
132
|
+
const resultShown = resultOpen && showResult && over;
|
|
133
|
+
const [internalSound, setInternalSound] = useState(defaultSound);
|
|
134
|
+
const soundOn = sound ?? internalSound;
|
|
135
|
+
const player = useRef(null);
|
|
136
|
+
const getPlayer = () => {
|
|
137
|
+
if (!player.current) player.current = createGameSounds();
|
|
138
|
+
return player.current;
|
|
139
|
+
};
|
|
140
|
+
useEffect(() => () => {
|
|
141
|
+
player.current?.dispose();
|
|
142
|
+
player.current = null;
|
|
143
|
+
}, []);
|
|
144
|
+
const setMines = (value) => {
|
|
145
|
+
if (over) resetBoard();
|
|
146
|
+
if (minesProp === void 0) setInternalMines(value);
|
|
147
|
+
onMinesChange?.(value);
|
|
148
|
+
};
|
|
149
|
+
const closeResult = () => {
|
|
150
|
+
setResultOpen(false);
|
|
151
|
+
mainButtonRef.current?.focus();
|
|
152
|
+
};
|
|
153
|
+
const start = () => {
|
|
154
|
+
resetBoard();
|
|
155
|
+
const order = Array.from({ length: tiles }, (_, i) => i);
|
|
156
|
+
for (let i = order.length - 1; i > 0; i--) {
|
|
157
|
+
const j = Math.floor(Math.random() * (i + 1));
|
|
158
|
+
[order[i], order[j]] = [order[j], order[i]];
|
|
159
|
+
}
|
|
160
|
+
setMineSet(new Set(order.slice(0, chosenMines)));
|
|
161
|
+
setPhase("playing");
|
|
162
|
+
if (!reduce) tileRefs.current.forEach((tile, index) => {
|
|
163
|
+
if (!tile) return;
|
|
164
|
+
const wave = Math.floor(index / size) + index % size;
|
|
165
|
+
animate(tile, {
|
|
166
|
+
scale: [.94, 1],
|
|
167
|
+
opacity: [.5, 1]
|
|
168
|
+
}, {
|
|
169
|
+
duration: .2,
|
|
170
|
+
delay: wave * .025,
|
|
171
|
+
ease: EASE_OUT
|
|
172
|
+
});
|
|
173
|
+
});
|
|
174
|
+
setAnnouncement(t("roundStarted", { mines: mineCount(chosenMines) }));
|
|
175
|
+
if (soundOn) getPlayer().prepare();
|
|
176
|
+
};
|
|
177
|
+
const cashOut = (finalGems = gems) => {
|
|
178
|
+
if (phase !== "playing" || finalGems === 0) return;
|
|
179
|
+
const value = minesMultiplier(tiles, mines, finalGems);
|
|
180
|
+
setPhase("cashed");
|
|
181
|
+
setAnnouncement(t("cashedOutAt", { multiplier: formatMultiplier(value) }));
|
|
182
|
+
if (soundOn) getPlayer().cashOut();
|
|
183
|
+
onCashOut?.(value, finalGems);
|
|
184
|
+
};
|
|
185
|
+
const pick = (tile) => {
|
|
186
|
+
if (phase !== "playing" || picked.includes(tile)) return;
|
|
187
|
+
setPicked((current) => [...current, tile]);
|
|
188
|
+
if (mineSet.has(tile)) {
|
|
189
|
+
setPhase("busted");
|
|
190
|
+
setAnnouncement(t("mineFound"));
|
|
191
|
+
if (soundOn) getPlayer().mine();
|
|
192
|
+
onReveal?.(tile, "mine", 0);
|
|
193
|
+
return;
|
|
194
|
+
}
|
|
195
|
+
const found = gems + 1;
|
|
196
|
+
const node = tileRefs.current[tile];
|
|
197
|
+
if (node && !reduce) animate(node, { scale: [.92, 1] }, GEM_POP);
|
|
198
|
+
const value = minesMultiplier(tiles, mines, found);
|
|
199
|
+
if (soundOn) getPlayer().gem(found);
|
|
200
|
+
onReveal?.(tile, "gem", value);
|
|
201
|
+
if (found === tiles - mines) {
|
|
202
|
+
cashOut(found);
|
|
203
|
+
return;
|
|
204
|
+
}
|
|
205
|
+
setAnnouncement(t("gemFound", { multiplier: formatMultiplier(value) }));
|
|
206
|
+
};
|
|
207
|
+
const onKeyDown = (event, tile) => {
|
|
208
|
+
const row = Math.floor(tile / size);
|
|
209
|
+
const col = tile % size;
|
|
210
|
+
const target = {
|
|
211
|
+
ArrowRight: row * size + Math.min(size - 1, col + 1),
|
|
212
|
+
ArrowLeft: row * size + Math.max(0, col - 1),
|
|
213
|
+
ArrowDown: Math.min(size - 1, row + 1) * size + col,
|
|
214
|
+
ArrowUp: Math.max(0, row - 1) * size + col,
|
|
215
|
+
Home: row * size,
|
|
216
|
+
End: row * size + size - 1
|
|
217
|
+
}[event.key];
|
|
218
|
+
if (target === void 0) return;
|
|
219
|
+
event.preventDefault();
|
|
220
|
+
setCursor(target);
|
|
221
|
+
tileRefs.current[target]?.focus();
|
|
222
|
+
};
|
|
223
|
+
let closingEnd = 0;
|
|
224
|
+
if (over) for (let tile = 0; tile < tiles; tile++) {
|
|
225
|
+
const order = picked.indexOf(tile);
|
|
226
|
+
const end = order === -1 ? ringFrom(lastPick, tile, size) * RIPPLE_STEP + ICON_SPRING.duration : phase === "cashed" && !reduce ? order * PULSE_STEP + PULSE_TIME : 0;
|
|
227
|
+
closingEnd = Math.max(closingEnd, end);
|
|
228
|
+
}
|
|
229
|
+
useEffect(() => {
|
|
230
|
+
if (!over || !showResult) return;
|
|
231
|
+
const id = setTimeout(() => {
|
|
232
|
+
if (sectionRef.current?.contains(document.activeElement)) mainButtonRef.current?.focus({ preventScroll: true });
|
|
233
|
+
setResultOpen(true);
|
|
234
|
+
}, closingEnd * 1e3);
|
|
235
|
+
return () => clearTimeout(id);
|
|
236
|
+
}, [
|
|
237
|
+
over,
|
|
238
|
+
showResult,
|
|
239
|
+
closingEnd
|
|
240
|
+
]);
|
|
241
|
+
const toggleSound = () => {
|
|
242
|
+
const nextSound = !soundOn;
|
|
243
|
+
if (nextSound) getPlayer().prepare();
|
|
244
|
+
if (sound === void 0) setInternalSound(nextSound);
|
|
245
|
+
onSoundChange?.(nextSound);
|
|
246
|
+
};
|
|
247
|
+
return /* @__PURE__ */ jsxs("section", {
|
|
248
|
+
ref: sectionRef,
|
|
249
|
+
"aria-label": ariaLabel ?? t("label"),
|
|
250
|
+
className: cn("flex w-full max-w-md flex-col gap-4", className),
|
|
251
|
+
onKeyDown: (event) => {
|
|
252
|
+
if (event.key !== "Escape" || !resultShown) return;
|
|
253
|
+
event.stopPropagation();
|
|
254
|
+
closeResult();
|
|
255
|
+
},
|
|
256
|
+
children: [
|
|
257
|
+
/* @__PURE__ */ jsxs("div", {
|
|
258
|
+
className: "flex flex-wrap items-center justify-between gap-3",
|
|
259
|
+
children: [/* @__PURE__ */ jsxs(AdaptiveStepper, {
|
|
260
|
+
value: chosenMines,
|
|
261
|
+
onValueChange: setMines,
|
|
262
|
+
min: 1,
|
|
263
|
+
max: tiles - 1,
|
|
264
|
+
disabled: phase === "playing",
|
|
265
|
+
formatValueText: mineCount,
|
|
266
|
+
"aria-label": t("mineCount"),
|
|
267
|
+
children: [
|
|
268
|
+
/* @__PURE__ */ jsx(AdaptiveStepperDecrement, {}),
|
|
269
|
+
/* @__PURE__ */ jsx(AdaptiveStepperValue, { children: (value) => /* @__PURE__ */ jsxs("span", {
|
|
270
|
+
className: "inline-flex items-center gap-1.5",
|
|
271
|
+
children: [/* @__PURE__ */ jsx(MineIcon, { className: "text-muted-foreground size-4" }), value]
|
|
272
|
+
}) }),
|
|
273
|
+
/* @__PURE__ */ jsx(AdaptiveStepperIncrement, {})
|
|
274
|
+
]
|
|
275
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
276
|
+
className: "text-right",
|
|
277
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
278
|
+
className: "text-foreground text-2xl font-semibold",
|
|
279
|
+
children: phase === "busted" ? /* @__PURE__ */ jsx("span", {
|
|
280
|
+
className: "text-muted-foreground tabular-nums line-through decoration-2",
|
|
281
|
+
children: formatMultiplier(multiplier)
|
|
282
|
+
}) : /* @__PURE__ */ jsx(NumberTicker, {
|
|
283
|
+
value: multiplier,
|
|
284
|
+
decimals: 2,
|
|
285
|
+
format: formatOdds,
|
|
286
|
+
suffix: "×",
|
|
287
|
+
startOnView: false,
|
|
288
|
+
duration: .35
|
|
289
|
+
})
|
|
290
|
+
}), /* @__PURE__ */ jsx("p", {
|
|
291
|
+
className: "text-muted-foreground flex items-center justify-end gap-1.5 text-xs tabular-nums",
|
|
292
|
+
children: over ? t(phase === "busted" ? "multiplierLost" : "multiplier") : /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(OddsRing, {
|
|
293
|
+
safe,
|
|
294
|
+
reduce
|
|
295
|
+
}), phase === "playing" ? t("oddsNext", {
|
|
296
|
+
percent: Math.round(safe * 100),
|
|
297
|
+
multiplier: formatMultiplier(next)
|
|
298
|
+
}) : t("oddsFirst", { percent: Math.round(safe * 100) })] })
|
|
299
|
+
})]
|
|
300
|
+
})]
|
|
301
|
+
}),
|
|
302
|
+
/* @__PURE__ */ jsxs("div", {
|
|
303
|
+
className: "bg-muted/40 relative rounded-3xl p-3",
|
|
304
|
+
children: [/* @__PURE__ */ jsxs("fieldset", {
|
|
305
|
+
inert: resultShown,
|
|
306
|
+
className: "m-0 grid min-w-0 gap-2 border-0 p-0",
|
|
307
|
+
style: { gridTemplateColumns: `repeat(${size}, minmax(0, 1fr))` },
|
|
308
|
+
children: [/* @__PURE__ */ jsx("legend", {
|
|
309
|
+
className: "sr-only",
|
|
310
|
+
children: t("tiles")
|
|
311
|
+
}), Array.from({ length: tiles }, (_, tile) => {
|
|
312
|
+
const isPicked = picked.includes(tile);
|
|
313
|
+
const isMine = mineSet.has(tile);
|
|
314
|
+
const shown = isPicked || over;
|
|
315
|
+
const content = shown ? isMine ? "mine" : "gem" : null;
|
|
316
|
+
const hit = isPicked && isMine;
|
|
317
|
+
const row = Math.floor(tile / size);
|
|
318
|
+
const col = tile % size;
|
|
319
|
+
const ripple = ringFrom(lastPick, tile, size);
|
|
320
|
+
const order = picked.indexOf(tile);
|
|
321
|
+
const celebrate = phase === "cashed" && isPicked && !reduce;
|
|
322
|
+
const interactive = phase === "playing" && !isPicked;
|
|
323
|
+
return /* @__PURE__ */ jsxs(motion.button, {
|
|
324
|
+
ref: (node) => {
|
|
325
|
+
tileRefs.current[tile] = node;
|
|
326
|
+
},
|
|
327
|
+
type: "button",
|
|
328
|
+
tabIndex: tile === cursor ? 0 : -1,
|
|
329
|
+
"aria-disabled": !interactive,
|
|
330
|
+
"aria-label": t("tile", {
|
|
331
|
+
row: row + 1,
|
|
332
|
+
column: col + 1,
|
|
333
|
+
state: tileState(t, content, isPicked, order)
|
|
334
|
+
}),
|
|
335
|
+
onFocus: () => setCursor(tile),
|
|
336
|
+
onClick: () => pick(tile),
|
|
337
|
+
onKeyDown: (event) => onKeyDown(event, tile),
|
|
338
|
+
animate: hit && !reduce ? { x: [
|
|
339
|
+
0,
|
|
340
|
+
-5,
|
|
341
|
+
5,
|
|
342
|
+
-3,
|
|
343
|
+
3,
|
|
344
|
+
0
|
|
345
|
+
] } : { x: 0 },
|
|
346
|
+
transition: SHAKE,
|
|
347
|
+
className: cn("relative grid aspect-square place-items-center rounded-xl border outline-none", hit && "z-10", "transition-[translate,scale,background-color,border-color] duration-150 ease-out", "focus-visible:ring-ring focus-visible:ring-2", interactive ? "border-border bg-card cursor-pointer hover:-translate-y-0.5 hover:border-(--color-border-strong) active:scale-[0.96]" : "cursor-default border-transparent", !interactive && !shown && "bg-card/60", content === "gem" && (isPicked ? "bg-primary/15" : "bg-card/40"), content === "mine" && (hit ? "bg-rose-500/20" : "bg-card/40")),
|
|
348
|
+
children: [
|
|
349
|
+
hit && !reduce ? /* @__PURE__ */ jsx(motion.span, {
|
|
350
|
+
"aria-hidden": "true",
|
|
351
|
+
className: "pointer-events-none absolute inset-0 rounded-xl border-2 border-rose-500",
|
|
352
|
+
initial: {
|
|
353
|
+
scale: 1,
|
|
354
|
+
opacity: .7
|
|
355
|
+
},
|
|
356
|
+
animate: {
|
|
357
|
+
scale: 1.7,
|
|
358
|
+
opacity: 0
|
|
359
|
+
},
|
|
360
|
+
transition: {
|
|
361
|
+
duration: .45,
|
|
362
|
+
ease: EASE_OUT
|
|
363
|
+
}
|
|
364
|
+
}) : null,
|
|
365
|
+
isPicked && !isMine ? /* @__PURE__ */ jsx(motion.span, {
|
|
366
|
+
"aria-hidden": "true",
|
|
367
|
+
initial: { opacity: 0 },
|
|
368
|
+
animate: { opacity: 1 },
|
|
369
|
+
transition: {
|
|
370
|
+
duration: .15,
|
|
371
|
+
ease: EASE_OUT,
|
|
372
|
+
delay: .1
|
|
373
|
+
},
|
|
374
|
+
className: "text-primary/70 absolute top-1.5 left-2 text-[10px] font-medium tabular-nums",
|
|
375
|
+
children: order + 1
|
|
376
|
+
}) : null,
|
|
377
|
+
/* @__PURE__ */ jsx(AnimatePresence, {
|
|
378
|
+
initial: false,
|
|
379
|
+
children: content ? /* @__PURE__ */ jsx(motion.span, {
|
|
380
|
+
"aria-hidden": "true",
|
|
381
|
+
initial: reduce ? { opacity: 0 } : {
|
|
382
|
+
opacity: 0,
|
|
383
|
+
scale: .25,
|
|
384
|
+
filter: "blur(4px)"
|
|
385
|
+
},
|
|
386
|
+
animate: celebrate ? {
|
|
387
|
+
opacity: 1,
|
|
388
|
+
scale: [
|
|
389
|
+
1,
|
|
390
|
+
1.2,
|
|
391
|
+
1
|
|
392
|
+
],
|
|
393
|
+
filter: "blur(0px)"
|
|
394
|
+
} : {
|
|
395
|
+
opacity: isPicked ? 1 : .4,
|
|
396
|
+
scale: 1,
|
|
397
|
+
filter: "blur(0px)"
|
|
398
|
+
},
|
|
399
|
+
exit: reduce ? {
|
|
400
|
+
opacity: 0,
|
|
401
|
+
transition: EXIT
|
|
402
|
+
} : {
|
|
403
|
+
opacity: 0,
|
|
404
|
+
scale: .9,
|
|
405
|
+
transition: EXIT
|
|
406
|
+
},
|
|
407
|
+
transition: celebrate ? {
|
|
408
|
+
duration: PULSE_TIME,
|
|
409
|
+
ease: EASE_OUT,
|
|
410
|
+
delay: order * PULSE_STEP
|
|
411
|
+
} : {
|
|
412
|
+
...ICON_SPRING,
|
|
413
|
+
delay: isPicked ? 0 : ripple * RIPPLE_STEP
|
|
414
|
+
},
|
|
415
|
+
className: cn("grid place-items-center", content === "gem" ? "text-primary" : "text-rose-500 dark:text-rose-400"),
|
|
416
|
+
children: content === "gem" ? /* @__PURE__ */ jsx(Gem, {
|
|
417
|
+
className: "size-[45%] min-h-5 min-w-5",
|
|
418
|
+
strokeWidth: 2
|
|
419
|
+
}) : /* @__PURE__ */ jsx(MineIcon, { className: "size-[45%] min-h-5 min-w-5" })
|
|
420
|
+
}, content) : null
|
|
421
|
+
})
|
|
422
|
+
]
|
|
423
|
+
}, tile);
|
|
424
|
+
})]
|
|
425
|
+
}), /* @__PURE__ */ jsx(AnimatePresence, { children: resultShown ? /* @__PURE__ */ jsx(PresenceGate, { children: ({ gate }) => /* @__PURE__ */ jsx(ResultCard, {
|
|
426
|
+
gate,
|
|
427
|
+
outcome: phase === "cashed" ? "cashed" : "busted",
|
|
428
|
+
multiplier,
|
|
429
|
+
gems,
|
|
430
|
+
safeTiles: tiles - mines,
|
|
431
|
+
mines,
|
|
432
|
+
size,
|
|
433
|
+
picked,
|
|
434
|
+
mineSet,
|
|
435
|
+
reduce,
|
|
436
|
+
onClose: closeResult,
|
|
437
|
+
t
|
|
438
|
+
}) }, "result") : null })]
|
|
439
|
+
}),
|
|
440
|
+
/* @__PURE__ */ jsxs("div", {
|
|
441
|
+
className: "flex items-center gap-2",
|
|
442
|
+
children: [/* @__PURE__ */ jsx(Button, {
|
|
443
|
+
ref: mainButtonRef,
|
|
444
|
+
className: "flex-1 aria-disabled:cursor-not-allowed aria-disabled:opacity-50",
|
|
445
|
+
pressScale: .96,
|
|
446
|
+
"aria-disabled": phase === "playing" && gems === 0 || void 0,
|
|
447
|
+
onClick: () => phase === "playing" ? cashOut() : start(),
|
|
448
|
+
children: phase === "playing" ? t("cashOut", { multiplier: formatMultiplier(multiplier) }) : t(over ? "playAgain" : "start")
|
|
449
|
+
}), /* @__PURE__ */ jsx(Tooltip, {
|
|
450
|
+
content: t("sound"),
|
|
451
|
+
side: "top",
|
|
452
|
+
children: /* @__PURE__ */ jsx(Button, {
|
|
453
|
+
variant: "secondary",
|
|
454
|
+
onClick: toggleSound,
|
|
455
|
+
"aria-label": t("sound"),
|
|
456
|
+
"aria-pressed": soundOn,
|
|
457
|
+
pressScale: .96,
|
|
458
|
+
className: cn("w-10 px-0", soundOn ? "text-foreground" : "text-muted-foreground"),
|
|
459
|
+
children: /* @__PURE__ */ jsx(ActionSwapCascadeIcon, {
|
|
460
|
+
value: soundOn ? "on" : "off",
|
|
461
|
+
className: "size-4",
|
|
462
|
+
children: soundOn ? /* @__PURE__ */ jsx(Volume2, {
|
|
463
|
+
"aria-hidden": "true",
|
|
464
|
+
className: "size-4"
|
|
465
|
+
}) : /* @__PURE__ */ jsx(VolumeX, {
|
|
466
|
+
"aria-hidden": "true",
|
|
467
|
+
className: "size-4"
|
|
468
|
+
})
|
|
469
|
+
})
|
|
470
|
+
})
|
|
471
|
+
})]
|
|
472
|
+
}),
|
|
473
|
+
/* @__PURE__ */ jsx("p", {
|
|
474
|
+
"aria-live": "polite",
|
|
475
|
+
className: "sr-only",
|
|
476
|
+
children: announcement
|
|
477
|
+
})
|
|
478
|
+
]
|
|
479
|
+
});
|
|
480
|
+
}
|
|
481
|
+
const TEAR = 104;
|
|
482
|
+
const NOTCH_MASK = `radial-gradient(circle 9px at 0 ${TEAR}px, transparent 98%, black), radial-gradient(circle 9px at 100% ${TEAR}px, transparent 98%, black)`;
|
|
483
|
+
const CARD_IN = {
|
|
484
|
+
type: "spring",
|
|
485
|
+
duration: .4,
|
|
486
|
+
bounce: .15
|
|
487
|
+
};
|
|
488
|
+
const CARD_OUT = {
|
|
489
|
+
duration: .15,
|
|
490
|
+
ease: EASE_OUT
|
|
491
|
+
};
|
|
492
|
+
/**
|
|
493
|
+
* The end-of-round summary over a dimmed board. It has no buttons: the main
|
|
494
|
+
* action below the board already says Play again, and tapping anywhere on
|
|
495
|
+
* the board (or Escape) puts the card away to study the board.
|
|
496
|
+
*/
|
|
497
|
+
function ResultCard(props) {
|
|
498
|
+
const { gate, reduce, onClose, t } = props;
|
|
499
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(motion.button, {
|
|
500
|
+
type: "button",
|
|
501
|
+
"aria-label": t("hideResult"),
|
|
502
|
+
onClick: onClose,
|
|
503
|
+
...gate,
|
|
504
|
+
className: "bg-background/55 focus-visible:ring-ring absolute inset-0 z-20 cursor-default rounded-3xl backdrop-blur-[2px] outline-none focus-visible:ring-2",
|
|
505
|
+
initial: { opacity: 0 },
|
|
506
|
+
animate: { opacity: 1 },
|
|
507
|
+
exit: {
|
|
508
|
+
opacity: 0,
|
|
509
|
+
transition: CARD_OUT
|
|
510
|
+
},
|
|
511
|
+
transition: {
|
|
512
|
+
duration: .2,
|
|
513
|
+
ease: EASE_OUT
|
|
514
|
+
}
|
|
515
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
516
|
+
inert: gate.inert,
|
|
517
|
+
className: "pointer-events-none absolute inset-0 z-20 grid place-items-center p-4",
|
|
518
|
+
children: /* @__PURE__ */ jsx(motion.div, {
|
|
519
|
+
role: "group",
|
|
520
|
+
"aria-label": t("roundResult"),
|
|
521
|
+
className: cn("w-full max-w-[17rem]", TICKET_SHADOW),
|
|
522
|
+
initial: reduce ? { opacity: 0 } : {
|
|
523
|
+
opacity: 0,
|
|
524
|
+
y: 16,
|
|
525
|
+
scale: .96
|
|
526
|
+
},
|
|
527
|
+
animate: {
|
|
528
|
+
opacity: 1,
|
|
529
|
+
y: 0,
|
|
530
|
+
scale: 1
|
|
531
|
+
},
|
|
532
|
+
exit: reduce ? {
|
|
533
|
+
opacity: 0,
|
|
534
|
+
transition: CARD_OUT
|
|
535
|
+
} : {
|
|
536
|
+
opacity: 0,
|
|
537
|
+
y: 8,
|
|
538
|
+
scale: .98,
|
|
539
|
+
transition: CARD_OUT
|
|
540
|
+
},
|
|
541
|
+
transition: reduce ? { duration: .2 } : CARD_IN,
|
|
542
|
+
children: /* @__PURE__ */ jsx(Ticket, { ...props })
|
|
543
|
+
})
|
|
544
|
+
})] });
|
|
545
|
+
}
|
|
546
|
+
const STAGE = {
|
|
547
|
+
duration: .25,
|
|
548
|
+
ease: EASE_OUT
|
|
549
|
+
};
|
|
550
|
+
const REPLAY_START = .3;
|
|
551
|
+
const REPLAY_STEP = .05;
|
|
552
|
+
const CELL_SPRING = {
|
|
553
|
+
type: "spring",
|
|
554
|
+
duration: .3,
|
|
555
|
+
bounce: .3
|
|
556
|
+
};
|
|
557
|
+
function Stage({ delay, reduce, className, children }) {
|
|
558
|
+
return /* @__PURE__ */ jsx(motion.div, {
|
|
559
|
+
className,
|
|
560
|
+
initial: reduce ? { opacity: 0 } : {
|
|
561
|
+
opacity: 0,
|
|
562
|
+
y: 6
|
|
563
|
+
},
|
|
564
|
+
animate: {
|
|
565
|
+
opacity: 1,
|
|
566
|
+
y: 0
|
|
567
|
+
},
|
|
568
|
+
transition: {
|
|
569
|
+
...STAGE,
|
|
570
|
+
delay: reduce ? 0 : delay
|
|
571
|
+
},
|
|
572
|
+
children
|
|
573
|
+
});
|
|
574
|
+
}
|
|
575
|
+
function MiniMap({ size, picked, mineSet, reduce }) {
|
|
576
|
+
const hit = picked.at(-1);
|
|
577
|
+
const gap = size > 10 ? 1 : 3;
|
|
578
|
+
return /* @__PURE__ */ jsx("div", {
|
|
579
|
+
"aria-hidden": "true",
|
|
580
|
+
className: "grid shrink-0",
|
|
581
|
+
style: {
|
|
582
|
+
gridTemplateColumns: `repeat(${size}, minmax(0, 1fr))`,
|
|
583
|
+
gap,
|
|
584
|
+
width: Math.min(88, size * 8 + (size - 1) * gap)
|
|
585
|
+
},
|
|
586
|
+
children: Array.from({ length: size * size }, (_, tile) => {
|
|
587
|
+
const isMine = mineSet.has(tile);
|
|
588
|
+
const isPicked = picked.includes(tile);
|
|
589
|
+
const order = picked.indexOf(tile);
|
|
590
|
+
return /* @__PURE__ */ jsx(motion.span, {
|
|
591
|
+
initial: isPicked && !reduce ? {
|
|
592
|
+
opacity: 0,
|
|
593
|
+
scale: .4
|
|
594
|
+
} : false,
|
|
595
|
+
animate: {
|
|
596
|
+
opacity: 1,
|
|
597
|
+
scale: 1
|
|
598
|
+
},
|
|
599
|
+
transition: {
|
|
600
|
+
...CELL_SPRING,
|
|
601
|
+
delay: REPLAY_START + order * REPLAY_STEP
|
|
602
|
+
},
|
|
603
|
+
className: cn("aspect-square rounded-[2px]", isPicked && !isMine && "bg-primary", isPicked && isMine && tile === hit && "bg-rose-500", !isPicked && isMine && "ring-1 ring-rose-500/60 ring-inset", !isPicked && !isMine && "bg-foreground/10")
|
|
604
|
+
}, tile);
|
|
605
|
+
})
|
|
606
|
+
});
|
|
607
|
+
}
|
|
608
|
+
const TICKET_SHADOW = "[filter:drop-shadow(0_1px_1px_rgb(0_0_0/0.12))_drop-shadow(0_12px_16px_rgb(0_0_0/0.3))]";
|
|
609
|
+
/** A ticket stub, notched at a dashed tear line. */
|
|
610
|
+
function Ticket({ outcome, multiplier, gems, safeTiles, mines, size, picked, mineSet, reduce, t }) {
|
|
611
|
+
const cashed = outcome === "cashed";
|
|
612
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
613
|
+
className: "bg-card text-foreground @container w-full rounded-2xl",
|
|
614
|
+
style: {
|
|
615
|
+
WebkitMaskImage: NOTCH_MASK,
|
|
616
|
+
WebkitMaskComposite: "source-in",
|
|
617
|
+
maskImage: NOTCH_MASK,
|
|
618
|
+
maskComposite: "intersect"
|
|
619
|
+
},
|
|
620
|
+
children: [
|
|
621
|
+
/* @__PURE__ */ jsxs("div", {
|
|
622
|
+
className: cn("flex flex-col items-center justify-center gap-1 rounded-t-2xl px-5 text-center", cashed ? "bg-primary/10" : "bg-rose-500/10"),
|
|
623
|
+
style: { height: TEAR },
|
|
624
|
+
children: [/* @__PURE__ */ jsx(Stage, {
|
|
625
|
+
delay: .05,
|
|
626
|
+
reduce,
|
|
627
|
+
children: /* @__PURE__ */ jsx("p", {
|
|
628
|
+
className: cn("text-xs font-medium tracking-wide uppercase", cashed ? "text-primary" : "text-rose-600 dark:text-rose-400"),
|
|
629
|
+
children: t(cashed ? "cashedOut" : "mineHit")
|
|
630
|
+
})
|
|
631
|
+
}), /* @__PURE__ */ jsx(Stage, {
|
|
632
|
+
delay: .1,
|
|
633
|
+
reduce,
|
|
634
|
+
children: /* @__PURE__ */ jsx("p", {
|
|
635
|
+
className: cn("text-3xl font-semibold", !cashed && "text-muted-foreground line-through decoration-2"),
|
|
636
|
+
children: cashed ? /* @__PURE__ */ jsx(NumberTicker, {
|
|
637
|
+
value: multiplier,
|
|
638
|
+
decimals: 2,
|
|
639
|
+
format: formatOdds,
|
|
640
|
+
suffix: "×",
|
|
641
|
+
startOnView: false,
|
|
642
|
+
duration: .6,
|
|
643
|
+
stagger: .05
|
|
644
|
+
}) : /* @__PURE__ */ jsx("span", {
|
|
645
|
+
className: "tabular-nums",
|
|
646
|
+
children: formatMultiplier(multiplier)
|
|
647
|
+
})
|
|
648
|
+
})
|
|
649
|
+
})]
|
|
650
|
+
}),
|
|
651
|
+
/* @__PURE__ */ jsx("div", {
|
|
652
|
+
"aria-hidden": "true",
|
|
653
|
+
className: "border-border mx-4 border-t-2 border-dashed"
|
|
654
|
+
}),
|
|
655
|
+
/* @__PURE__ */ jsxs("div", {
|
|
656
|
+
className: "flex items-center gap-4 px-5 pt-4 pb-5",
|
|
657
|
+
children: [/* @__PURE__ */ jsx(Stage, {
|
|
658
|
+
delay: .18,
|
|
659
|
+
reduce,
|
|
660
|
+
className: "flex-1",
|
|
661
|
+
children: /* @__PURE__ */ jsxs("dl", {
|
|
662
|
+
className: "grid gap-1.5 text-xs",
|
|
663
|
+
children: [
|
|
664
|
+
/* @__PURE__ */ jsx(Row, {
|
|
665
|
+
label: t("gems"),
|
|
666
|
+
value: t("gemsOf", {
|
|
667
|
+
gems,
|
|
668
|
+
total: safeTiles
|
|
669
|
+
})
|
|
670
|
+
}),
|
|
671
|
+
/* @__PURE__ */ jsx(Row, {
|
|
672
|
+
label: t("mines"),
|
|
673
|
+
value: mines
|
|
674
|
+
}),
|
|
675
|
+
/* @__PURE__ */ jsx(Row, {
|
|
676
|
+
label: t(cashed ? "oddsBeaten" : "lostOnPick"),
|
|
677
|
+
value: cashed ? t("oddsBeatenValue", { odds: formatOdds(multiplier) }) : picked.length
|
|
678
|
+
})
|
|
679
|
+
]
|
|
680
|
+
})
|
|
681
|
+
}), /* @__PURE__ */ jsx(Stage, {
|
|
682
|
+
delay: .24,
|
|
683
|
+
reduce,
|
|
684
|
+
className: "@max-[15rem]:hidden",
|
|
685
|
+
children: /* @__PURE__ */ jsx(MiniMap, {
|
|
686
|
+
size,
|
|
687
|
+
picked,
|
|
688
|
+
mineSet,
|
|
689
|
+
reduce
|
|
690
|
+
})
|
|
691
|
+
})]
|
|
692
|
+
})
|
|
693
|
+
]
|
|
694
|
+
});
|
|
695
|
+
}
|
|
696
|
+
function Row({ label, value }) {
|
|
697
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
698
|
+
className: "flex justify-between gap-2 whitespace-nowrap",
|
|
699
|
+
children: [/* @__PURE__ */ jsx("dt", {
|
|
700
|
+
className: "text-muted-foreground",
|
|
701
|
+
children: label
|
|
702
|
+
}), /* @__PURE__ */ jsx("dd", {
|
|
703
|
+
className: "font-medium tabular-nums",
|
|
704
|
+
children: value
|
|
705
|
+
})]
|
|
706
|
+
});
|
|
707
|
+
}
|
|
708
|
+
const SPIKES = Array.from({ length: 8 }, (_, i) => {
|
|
709
|
+
const angle = i * Math.PI / 4;
|
|
710
|
+
const main = i % 2 === 0;
|
|
711
|
+
const [cos, sin] = [Math.cos(angle), Math.sin(angle)];
|
|
712
|
+
const reach = main ? 10.5 : 9;
|
|
713
|
+
return {
|
|
714
|
+
main,
|
|
715
|
+
x1: 12 + cos * 6,
|
|
716
|
+
y1: 12 + sin * 6,
|
|
717
|
+
x2: 12 + cos * reach,
|
|
718
|
+
y2: 12 + sin * reach
|
|
719
|
+
};
|
|
720
|
+
});
|
|
721
|
+
/** A mine on Lucide's 24px grid, sized to pair with the gem. */
|
|
722
|
+
function MineIcon({ className }) {
|
|
723
|
+
return /* @__PURE__ */ jsxs("svg", {
|
|
724
|
+
"aria-hidden": "true",
|
|
725
|
+
viewBox: "0 0 24 24",
|
|
726
|
+
fill: "currentColor",
|
|
727
|
+
stroke: "currentColor",
|
|
728
|
+
strokeLinecap: "round",
|
|
729
|
+
className,
|
|
730
|
+
children: [
|
|
731
|
+
SPIKES.map((spike) => /* @__PURE__ */ jsx("line", {
|
|
732
|
+
x1: spike.x1,
|
|
733
|
+
y1: spike.y1,
|
|
734
|
+
x2: spike.x2,
|
|
735
|
+
y2: spike.y2,
|
|
736
|
+
strokeWidth: spike.main ? 2.5 : 2
|
|
737
|
+
}, `${spike.x2.toFixed(2)}-${spike.y2.toFixed(2)}`)),
|
|
738
|
+
/* @__PURE__ */ jsx("circle", {
|
|
739
|
+
cx: 12,
|
|
740
|
+
cy: 12,
|
|
741
|
+
r: 6.5,
|
|
742
|
+
stroke: "none"
|
|
743
|
+
}),
|
|
744
|
+
/* @__PURE__ */ jsx("circle", {
|
|
745
|
+
cx: 9.75,
|
|
746
|
+
cy: 9.75,
|
|
747
|
+
r: 1.6,
|
|
748
|
+
fill: "white",
|
|
749
|
+
fillOpacity: .75,
|
|
750
|
+
stroke: "none"
|
|
751
|
+
})
|
|
752
|
+
]
|
|
753
|
+
});
|
|
754
|
+
}
|
|
755
|
+
/** A small ring that fills with the chance the next pick is safe. */
|
|
756
|
+
function OddsRing({ safe, reduce }) {
|
|
757
|
+
return /* @__PURE__ */ jsxs("svg", {
|
|
758
|
+
"aria-hidden": "true",
|
|
759
|
+
viewBox: "0 0 14 14",
|
|
760
|
+
className: "size-3.5 -rotate-90",
|
|
761
|
+
children: [/* @__PURE__ */ jsx("circle", {
|
|
762
|
+
cx: 7,
|
|
763
|
+
cy: 7,
|
|
764
|
+
r: 5.5,
|
|
765
|
+
fill: "none",
|
|
766
|
+
strokeWidth: 2,
|
|
767
|
+
className: "stroke-foreground/10"
|
|
768
|
+
}), /* @__PURE__ */ jsx(motion.circle, {
|
|
769
|
+
cx: 7,
|
|
770
|
+
cy: 7,
|
|
771
|
+
r: 5.5,
|
|
772
|
+
fill: "none",
|
|
773
|
+
strokeWidth: 2,
|
|
774
|
+
strokeLinecap: "round",
|
|
775
|
+
className: safe < .5 ? "stroke-rose-500 dark:stroke-rose-400" : "stroke-primary",
|
|
776
|
+
initial: false,
|
|
777
|
+
animate: { pathLength: safe },
|
|
778
|
+
transition: reduce ? { duration: 0 } : {
|
|
779
|
+
duration: .2,
|
|
780
|
+
ease: EASE_OUT
|
|
781
|
+
}
|
|
782
|
+
})]
|
|
783
|
+
});
|
|
784
|
+
}
|
|
785
|
+
/** What a tile shows, and for revealed tiles whether the player picked it. */
|
|
786
|
+
function tileState(t, content, isPicked, order) {
|
|
787
|
+
if (!content) return t("tileHidden");
|
|
788
|
+
if (!isPicked) return t(content === "mine" ? "tileMineNotPicked" : "tileGemNotPicked");
|
|
789
|
+
return content === "mine" ? t("tileMineHit") : t("tileGemPicked", { pick: order + 1 });
|
|
790
|
+
}
|
|
791
|
+
/** Rings between two tiles: 0 for the same tile, 1 for its neighbours. */
|
|
792
|
+
function ringFrom(from, tile, size) {
|
|
793
|
+
return Math.max(Math.abs(Math.floor(tile / size) - Math.floor(from / size)), Math.abs(tile % size - from % size));
|
|
794
|
+
}
|
|
795
|
+
export { Mines, formatMultiplier, minesMessages, minesMultiplier };
|
|
796
|
+
|
|
797
|
+
//# sourceMappingURL=mines.js.map
|