@kumix/ui 0.3.18 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +28 -17
- package/dist/account-avatar-DILzuuvz.js +23 -0
- package/dist/account-avatar-DILzuuvz.js.map +1 -0
- package/dist/{cascader-types-BnH6wYD-.d.ts → cascader-types-DVT-znZ-.d.ts} +6 -3
- package/dist/cascader-types-DVT-znZ-.d.ts.map +1 -0
- package/dist/components/agents/approval-card/index.d.ts +2 -0
- package/dist/components/agents/approval-card/index.d.ts.map +1 -1
- package/dist/components/agents/approval-card/index.js +2 -0
- package/dist/components/agents/approval-card/index.js.map +1 -1
- package/dist/components/agents/citations.d.ts +14 -2
- package/dist/components/agents/citations.d.ts.map +1 -1
- package/dist/components/agents/citations.js +11 -7
- package/dist/components/agents/citations.js.map +1 -1
- package/dist/components/agents/loading-states/reasoning-text.d.ts.map +1 -1
- package/dist/components/agents/loading-states/reasoning-text.js +3 -0
- package/dist/components/agents/loading-states/reasoning-text.js.map +1 -1
- package/dist/components/agents/voice-orb.d.ts +19 -0
- package/dist/components/agents/voice-orb.d.ts.map +1 -0
- package/dist/components/agents/voice-orb.js +389 -0
- package/dist/components/agents/voice-orb.js.map +1 -0
- package/dist/components/charts/bump-chart/context.d.ts +2 -0
- package/dist/components/charts/bump-chart/context.js +2 -0
- package/dist/components/charts/bump-chart/legend.d.ts +6 -0
- package/dist/components/charts/bump-chart/legend.d.ts.map +1 -0
- package/dist/components/charts/bump-chart/legend.js +60 -0
- package/dist/components/charts/bump-chart/legend.js.map +1 -0
- package/dist/components/charts/bump-chart/plot.d.ts +6 -0
- package/dist/components/charts/bump-chart/plot.d.ts.map +1 -0
- package/dist/components/charts/bump-chart/plot.js +2 -0
- package/dist/components/charts/bump-chart/point.d.ts +10 -0
- package/dist/components/charts/bump-chart/point.d.ts.map +1 -0
- package/dist/components/charts/bump-chart/point.js +124 -0
- package/dist/components/charts/bump-chart/point.js.map +1 -0
- package/dist/components/charts/bump-chart/series.d.ts +12 -0
- package/dist/components/charts/bump-chart/series.d.ts.map +1 -0
- package/dist/components/charts/bump-chart/series.js +101 -0
- package/dist/components/charts/bump-chart/series.js.map +1 -0
- package/dist/components/charts/bump-chart.d.ts +10 -0
- package/dist/components/charts/bump-chart.d.ts.map +1 -0
- package/dist/components/charts/bump-chart.js +23 -0
- package/dist/components/charts/bump-chart.js.map +1 -0
- package/dist/components/charts/candlestick-chart/context.d.ts +79 -0
- package/dist/components/charts/candlestick-chart/context.d.ts.map +1 -0
- package/dist/components/charts/candlestick-chart/context.js +69 -0
- package/dist/components/charts/candlestick-chart/context.js.map +1 -0
- package/dist/components/charts/candlestick-chart/legend.d.ts +12 -0
- package/dist/components/charts/candlestick-chart/legend.d.ts.map +1 -0
- package/dist/components/charts/candlestick-chart/legend.js +56 -0
- package/dist/components/charts/candlestick-chart/legend.js.map +1 -0
- package/dist/components/charts/candlestick-chart/plot.d.ts +9 -0
- package/dist/components/charts/candlestick-chart/plot.d.ts.map +1 -0
- package/dist/components/charts/candlestick-chart/plot.js +218 -0
- package/dist/components/charts/candlestick-chart/plot.js.map +1 -0
- package/dist/components/charts/candlestick-chart.d.ts +18 -0
- package/dist/components/charts/candlestick-chart.d.ts.map +1 -0
- package/dist/components/charts/candlestick-chart.js +34 -0
- package/dist/components/charts/candlestick-chart.js.map +1 -0
- package/dist/components/charts/composition-chart/context.d.ts +2 -0
- package/dist/components/charts/composition-chart/context.js +2 -0
- package/dist/components/charts/composition-chart/legend.d.ts +6 -0
- package/dist/components/charts/composition-chart/legend.d.ts.map +1 -0
- package/dist/components/charts/composition-chart/legend.js +51 -0
- package/dist/components/charts/composition-chart/legend.js.map +1 -0
- package/dist/components/charts/composition-chart/plot.d.ts +6 -0
- package/dist/components/charts/composition-chart/plot.d.ts.map +1 -0
- package/dist/components/charts/composition-chart/plot.js +174 -0
- package/dist/components/charts/composition-chart/plot.js.map +1 -0
- package/dist/components/charts/composition-chart/tooltip-content.d.ts +6 -0
- package/dist/components/charts/composition-chart/tooltip-content.d.ts.map +1 -0
- package/dist/components/charts/composition-chart/tooltip-content.js +63 -0
- package/dist/components/charts/composition-chart/tooltip-content.js.map +1 -0
- package/dist/components/charts/composition-chart.d.ts +9 -0
- package/dist/components/charts/composition-chart.d.ts.map +1 -0
- package/dist/components/charts/composition-chart.js +26 -0
- package/dist/components/charts/composition-chart.js.map +1 -0
- package/dist/components/charts/donut-chart/center.d.ts +16 -0
- package/dist/components/charts/donut-chart/center.d.ts.map +1 -0
- package/dist/components/charts/donut-chart/center.js +78 -0
- package/dist/components/charts/donut-chart/center.js.map +1 -0
- package/dist/components/charts/donut-chart/context.d.ts +68 -0
- package/dist/components/charts/donut-chart/context.d.ts.map +1 -0
- package/dist/components/charts/donut-chart/context.js +2 -0
- package/dist/components/charts/donut-chart/legend.d.ts +17 -0
- package/dist/components/charts/donut-chart/legend.d.ts.map +1 -0
- package/dist/components/charts/donut-chart/legend.js +85 -0
- package/dist/components/charts/donut-chart/legend.js.map +1 -0
- package/dist/components/charts/donut-chart/plot.d.ts +10 -0
- package/dist/components/charts/donut-chart/plot.d.ts.map +1 -0
- package/dist/components/charts/donut-chart/plot.js +108 -0
- package/dist/components/charts/donut-chart/plot.js.map +1 -0
- package/dist/components/charts/donut-chart.d.ts +22 -0
- package/dist/components/charts/donut-chart.d.ts.map +1 -0
- package/dist/components/charts/donut-chart.js +37 -0
- package/dist/components/charts/donut-chart.js.map +1 -0
- package/dist/components/charts/funnel-chart.d.ts +50 -0
- package/dist/components/charts/funnel-chart.d.ts.map +1 -0
- package/dist/components/charts/funnel-chart.js +215 -0
- package/dist/components/charts/funnel-chart.js.map +1 -0
- package/dist/components/charts/heat-calendar/grid.d.ts +8 -0
- package/dist/components/charts/heat-calendar/grid.d.ts.map +1 -0
- package/dist/components/charts/heat-calendar/grid.js +127 -0
- package/dist/components/charts/heat-calendar/grid.js.map +1 -0
- package/dist/components/charts/heat-calendar/legend.d.ts +6 -0
- package/dist/components/charts/heat-calendar/legend.d.ts.map +1 -0
- package/dist/components/charts/heat-calendar/legend.js +48 -0
- package/dist/components/charts/heat-calendar/legend.js.map +1 -0
- package/dist/components/charts/heat-calendar/tooltip.d.ts +2 -0
- package/dist/components/charts/heat-calendar/tooltip.js +50 -0
- package/dist/components/charts/heat-calendar/tooltip.js.map +1 -0
- package/dist/components/charts/heat-calendar.d.ts +9 -0
- package/dist/components/charts/heat-calendar.d.ts.map +1 -0
- package/dist/components/charts/heat-calendar.js +23 -0
- package/dist/components/charts/heat-calendar.js.map +1 -0
- package/dist/components/charts/liquidity-heatmap.d.ts +51 -0
- package/dist/components/charts/liquidity-heatmap.d.ts.map +1 -0
- package/dist/components/charts/liquidity-heatmap.js +311 -0
- package/dist/components/charts/liquidity-heatmap.js.map +1 -0
- package/dist/components/charts/order-book/depth-row.d.ts +19 -0
- package/dist/components/charts/order-book/depth-row.d.ts.map +1 -0
- package/dist/components/charts/order-book/depth-row.js +107 -0
- package/dist/components/charts/order-book/depth-row.js.map +1 -0
- package/dist/components/charts/order-book.d.ts +89 -0
- package/dist/components/charts/order-book.d.ts.map +1 -0
- package/dist/components/charts/order-book.js +282 -0
- package/dist/components/charts/order-book.js.map +1 -0
- package/dist/components/charts/price-target-fan/header.d.ts +8 -0
- package/dist/components/charts/price-target-fan/header.d.ts.map +1 -0
- package/dist/components/charts/price-target-fan/header.js +43 -0
- package/dist/components/charts/price-target-fan/header.js.map +1 -0
- package/dist/components/charts/price-target-fan/plot.d.ts +16 -0
- package/dist/components/charts/price-target-fan/plot.d.ts.map +1 -0
- package/dist/components/charts/price-target-fan/plot.js +142 -0
- package/dist/components/charts/price-target-fan/plot.js.map +1 -0
- package/dist/components/charts/price-target-fan/series.d.ts +15 -0
- package/dist/components/charts/price-target-fan/series.d.ts.map +1 -0
- package/dist/components/charts/price-target-fan/series.js +238 -0
- package/dist/components/charts/price-target-fan/series.js.map +1 -0
- package/dist/components/charts/price-target-fan/tooltip.d.ts +2 -0
- package/dist/components/charts/price-target-fan/tooltip.js +58 -0
- package/dist/components/charts/price-target-fan/tooltip.js.map +1 -0
- package/dist/components/charts/price-target-fan.d.ts +10 -0
- package/dist/components/charts/price-target-fan.d.ts.map +1 -0
- package/dist/components/charts/price-target-fan.js +24 -0
- package/dist/components/charts/price-target-fan.js.map +1 -0
- package/dist/components/charts/returns-calendar/grid.d.ts +8 -0
- package/dist/components/charts/returns-calendar/grid.d.ts.map +1 -0
- package/dist/components/charts/returns-calendar/grid.js +176 -0
- package/dist/components/charts/returns-calendar/grid.js.map +1 -0
- package/dist/components/charts/returns-calendar/tooltip.d.ts +2 -0
- package/dist/components/charts/returns-calendar/tooltip.js +55 -0
- package/dist/components/charts/returns-calendar/tooltip.js.map +1 -0
- package/dist/components/charts/returns-calendar.d.ts +48 -0
- package/dist/components/charts/returns-calendar.d.ts.map +1 -0
- package/dist/components/charts/returns-calendar.js +22 -0
- package/dist/components/charts/returns-calendar.js.map +1 -0
- package/dist/components/charts/status-bar/legend.d.ts +8 -0
- package/dist/components/charts/status-bar/legend.d.ts.map +1 -0
- package/dist/components/charts/status-bar/legend.js +37 -0
- package/dist/components/charts/status-bar/legend.js.map +1 -0
- package/dist/components/charts/status-bar/plot.d.ts +12 -0
- package/dist/components/charts/status-bar/plot.d.ts.map +1 -0
- package/dist/components/charts/status-bar/plot.js +176 -0
- package/dist/components/charts/status-bar/plot.js.map +1 -0
- package/dist/components/charts/status-bar/tooltip.d.ts +2 -0
- package/dist/components/charts/status-bar/tooltip.js +49 -0
- package/dist/components/charts/status-bar/tooltip.js.map +1 -0
- package/dist/components/charts/status-bar.d.ts +9 -0
- package/dist/components/charts/status-bar.d.ts.map +1 -0
- package/dist/components/charts/status-bar.js +64 -0
- package/dist/components/charts/status-bar.js.map +1 -0
- package/dist/components/charts/treemap/legend.d.ts +8 -0
- package/dist/components/charts/treemap/legend.d.ts.map +1 -0
- package/dist/components/charts/treemap/legend.js +35 -0
- package/dist/components/charts/treemap/legend.js.map +1 -0
- package/dist/components/charts/treemap/plot.d.ts +13 -0
- package/dist/components/charts/treemap/plot.d.ts.map +1 -0
- package/dist/components/charts/treemap/plot.js +123 -0
- package/dist/components/charts/treemap/plot.js.map +1 -0
- package/dist/components/charts/treemap/tile.d.ts +10 -0
- package/dist/components/charts/treemap/tile.d.ts.map +1 -0
- package/dist/components/charts/treemap/tile.js +114 -0
- package/dist/components/charts/treemap/tile.js.map +1 -0
- package/dist/components/charts/treemap/tooltip.d.ts +11 -0
- package/dist/components/charts/treemap/tooltip.d.ts.map +1 -0
- package/dist/components/charts/treemap/tooltip.js +73 -0
- package/dist/components/charts/treemap/tooltip.js.map +1 -0
- package/dist/components/charts/treemap.d.ts +56 -0
- package/dist/components/charts/treemap.d.ts.map +1 -0
- package/dist/components/charts/treemap.js +71 -0
- package/dist/components/charts/treemap.js.map +1 -0
- package/dist/components/charts/volume-profile/plot.d.ts +12 -0
- package/dist/components/charts/volume-profile/plot.d.ts.map +1 -0
- package/dist/components/charts/volume-profile/plot.js +211 -0
- package/dist/components/charts/volume-profile/plot.js.map +1 -0
- package/dist/components/charts/volume-profile/summary.d.ts +6 -0
- package/dist/components/charts/volume-profile/summary.d.ts.map +1 -0
- package/dist/components/charts/volume-profile/summary.js +76 -0
- package/dist/components/charts/volume-profile/summary.js.map +1 -0
- package/dist/components/charts/volume-profile/tooltip.d.ts +2 -0
- package/dist/components/charts/volume-profile/tooltip.js +84 -0
- package/dist/components/charts/volume-profile/tooltip.js.map +1 -0
- package/dist/components/charts/volume-profile.d.ts +111 -0
- package/dist/components/charts/volume-profile.d.ts.map +1 -0
- package/dist/components/charts/volume-profile.js +82 -0
- package/dist/components/charts/volume-profile.js.map +1 -0
- package/dist/components/custom/confirm-dialog.d.ts +1 -0
- package/dist/components/custom/toast.d.ts +1 -0
- package/dist/components/motion/action-swap.d.ts.map +1 -1
- package/dist/components/motion/action-swap.js +3 -0
- package/dist/components/motion/action-swap.js.map +1 -1
- package/dist/components/motion/alert.d.ts +40 -0
- package/dist/components/motion/alert.d.ts.map +1 -0
- package/dist/components/motion/alert.js +247 -0
- package/dist/components/motion/alert.js.map +1 -0
- package/dist/components/motion/animated-sidebar.d.ts +1 -0
- package/dist/components/motion/arc-picker.d.ts +28 -0
- package/dist/components/motion/arc-picker.d.ts.map +1 -0
- package/dist/components/motion/arc-picker.js +569 -0
- package/dist/components/motion/arc-picker.js.map +1 -0
- package/dist/components/motion/aspect-ratio.d.ts +23 -0
- package/dist/components/motion/aspect-ratio.d.ts.map +1 -0
- package/dist/components/motion/aspect-ratio.js +61 -0
- package/dist/components/motion/aspect-ratio.js.map +1 -0
- package/dist/components/motion/attachment-upload.d.ts.map +1 -1
- package/dist/components/motion/attachment-upload.js +1 -2
- package/dist/components/motion/attachment-upload.js.map +1 -1
- package/dist/components/motion/availability-scheduler/copy-menu.js +1 -2
- package/dist/components/motion/availability-scheduler/day-row.js +2 -2
- package/dist/components/motion/availability-scheduler/index.js +1 -1
- package/dist/components/motion/bloom-menu.d.ts +1 -0
- package/dist/components/motion/bounce-sidebar.d.ts.map +1 -1
- package/dist/components/motion/bounce-sidebar.js +34 -42
- package/dist/components/motion/bounce-sidebar.js.map +1 -1
- package/dist/components/motion/button/stateful.d.ts.map +1 -1
- package/dist/components/motion/button/stateful.js +3 -0
- package/dist/components/motion/button/stateful.js.map +1 -1
- package/dist/components/motion/card.d.ts +44 -0
- package/dist/components/motion/card.d.ts.map +1 -0
- package/dist/components/motion/card.js +122 -0
- package/dist/components/motion/card.js.map +1 -0
- package/dist/components/motion/checkbox.d.ts +3 -1
- package/dist/components/motion/checkbox.d.ts.map +1 -1
- package/dist/components/motion/checkbox.js +18 -6
- package/dist/components/motion/checkbox.js.map +1 -1
- package/dist/components/motion/collapsible.d.ts +34 -0
- package/dist/components/motion/collapsible.d.ts.map +1 -0
- package/dist/components/motion/collapsible.js +237 -0
- package/dist/components/motion/collapsible.js.map +1 -0
- package/dist/components/motion/color-picker.d.ts +110 -0
- package/dist/components/motion/color-picker.d.ts.map +1 -0
- package/dist/components/motion/color-picker.js +1053 -0
- package/dist/components/motion/color-picker.js.map +1 -0
- package/dist/components/motion/color-selector.d.ts.map +1 -1
- package/dist/components/motion/color-selector.js +9 -2
- package/dist/components/motion/color-selector.js.map +1 -1
- package/dist/components/motion/combobox/content.d.ts +1 -0
- package/dist/components/motion/command-palette.js +2 -2
- package/dist/components/motion/command-palette.js.map +1 -1
- package/dist/components/motion/context-menu.d.ts +1 -0
- package/dist/components/motion/date-range-picker.d.ts +107 -0
- package/dist/components/motion/date-range-picker.d.ts.map +1 -0
- package/dist/components/motion/date-range-picker.js +907 -0
- package/dist/components/motion/date-range-picker.js.map +1 -0
- package/dist/components/motion/digit-swap.d.ts +9 -1
- package/dist/components/motion/digit-swap.d.ts.map +1 -1
- package/dist/components/motion/digit-swap.js +18 -7
- package/dist/components/motion/digit-swap.js.map +1 -1
- package/dist/components/motion/expandable-control.d.ts +1 -0
- package/dist/components/motion/knockout-bracket.d.ts +190 -0
- package/dist/components/motion/knockout-bracket.d.ts.map +1 -0
- package/dist/components/motion/knockout-bracket.js +952 -0
- package/dist/components/motion/knockout-bracket.js.map +1 -0
- package/dist/components/motion/knockout-wheel.d.ts +183 -0
- package/dist/components/motion/knockout-wheel.d.ts.map +1 -0
- package/dist/components/motion/knockout-wheel.js +1038 -0
- package/dist/components/motion/knockout-wheel.js.map +1 -0
- package/dist/components/motion/morphing-lightbox.d.ts +67 -0
- package/dist/components/motion/morphing-lightbox.d.ts.map +1 -0
- package/dist/components/motion/morphing-lightbox.js +499 -0
- package/dist/components/motion/morphing-lightbox.js.map +1 -0
- package/dist/components/motion/morphing-search-chips.d.ts +54 -0
- package/dist/components/motion/morphing-search-chips.d.ts.map +1 -0
- package/dist/components/motion/morphing-search-chips.js +599 -0
- package/dist/components/motion/morphing-search-chips.js.map +1 -0
- package/dist/components/motion/multi-select/content.d.ts +1 -0
- package/dist/components/motion/not-found/shared.d.ts +1 -0
- package/dist/components/motion/number-ticker.d.ts +6 -1
- package/dist/components/motion/number-ticker.d.ts.map +1 -1
- package/dist/components/motion/number-ticker.js +19 -9
- package/dist/components/motion/number-ticker.js.map +1 -1
- package/dist/components/motion/parallax.js.map +1 -1
- package/dist/components/motion/popover-morph.d.ts +5 -0
- package/dist/components/motion/popover-morph.d.ts.map +1 -1
- package/dist/components/motion/popover-morph.js +34 -8
- package/dist/components/motion/popover-morph.js.map +1 -1
- package/dist/components/motion/popover.d.ts +1 -0
- package/dist/components/motion/prediction-market-card.d.ts +37 -0
- package/dist/components/motion/prediction-market-card.d.ts.map +1 -0
- package/dist/components/motion/prediction-market-card.js +215 -0
- package/dist/components/motion/prediction-market-card.js.map +1 -0
- package/dist/components/motion/prediction-market.d.ts +49 -0
- package/dist/components/motion/prediction-market.d.ts.map +1 -0
- package/dist/components/motion/prediction-market.js +440 -0
- package/dist/components/motion/prediction-market.js.map +1 -0
- package/dist/components/motion/radio.d.ts +3 -1
- package/dist/components/motion/radio.d.ts.map +1 -1
- package/dist/components/motion/radio.js +17 -5
- package/dist/components/motion/radio.js.map +1 -1
- package/dist/components/motion/scroll-progress.d.ts +1 -0
- package/dist/components/motion/shader-background.d.ts +1 -0
- package/dist/components/motion/sortable-list.d.ts +54 -0
- package/dist/components/motion/sortable-list.d.ts.map +1 -0
- package/dist/components/motion/sortable-list.js +254 -0
- package/dist/components/motion/sortable-list.js.map +1 -0
- package/dist/components/motion/sortable-stack.d.ts +2 -0
- package/dist/components/motion/sortable-stack.js +2 -0
- package/dist/components/motion/swap/controls.d.ts +22 -0
- package/dist/components/motion/swap/controls.d.ts.map +1 -0
- package/dist/components/motion/swap/controls.js +167 -0
- package/dist/components/motion/swap/controls.js.map +1 -0
- package/dist/components/motion/swap/field.d.ts +14 -0
- package/dist/components/motion/swap/field.d.ts.map +1 -0
- package/dist/components/motion/swap/field.js +107 -0
- package/dist/components/motion/swap/field.js.map +1 -0
- package/dist/components/motion/swap/quote-row.d.ts +13 -0
- package/dist/components/motion/swap/quote-row.d.ts.map +1 -0
- package/dist/components/motion/swap/quote-row.js +55 -0
- package/dist/components/motion/swap/quote-row.js.map +1 -0
- package/dist/components/motion/swap/token-badges.d.ts +19 -0
- package/dist/components/motion/swap/token-badges.d.ts.map +1 -0
- package/dist/components/motion/swap/token-badges.js +54 -0
- package/dist/components/motion/swap/token-badges.js.map +1 -0
- package/dist/components/motion/swap/token-picker.d.ts +14 -0
- package/dist/components/motion/swap/token-picker.d.ts.map +1 -0
- package/dist/components/motion/swap/token-picker.js +190 -0
- package/dist/components/motion/swap/token-picker.js.map +1 -0
- package/dist/components/motion/swap.d.ts +14 -0
- package/dist/components/motion/swap.d.ts.map +1 -0
- package/dist/components/motion/swap.js +378 -0
- package/dist/components/motion/swap.js.map +1 -0
- package/dist/components/motion/tabs.d.ts +6 -9
- package/dist/components/motion/tabs.d.ts.map +1 -1
- package/dist/components/motion/tabs.js +13 -4
- package/dist/components/motion/tabs.js.map +1 -1
- package/dist/components/motion/text-reveal.d.ts +1 -0
- package/dist/components/motion/tooltip/positioner.d.ts +8 -26
- package/dist/components/motion/tooltip/positioner.d.ts.map +1 -1
- package/dist/components/motion/tooltip/positioner.js +1 -2
- package/dist/components/motion/tooltip.d.ts +62 -20
- package/dist/components/motion/tooltip.d.ts.map +1 -1
- package/dist/components/motion/tooltip.js +1 -135
- package/dist/components/motion/wallet-card/account-avatar.d.ts +8 -0
- package/dist/components/motion/wallet-card/account-avatar.d.ts.map +1 -0
- package/dist/components/motion/wallet-card/account-avatar.js +2 -0
- package/dist/components/motion/wallet-card/account-switcher.d.ts +14 -0
- package/dist/components/motion/wallet-card/account-switcher.d.ts.map +1 -0
- package/dist/components/motion/wallet-card/account-switcher.js +153 -0
- package/dist/components/motion/wallet-card/account-switcher.js.map +1 -0
- package/dist/components/motion/wallet-card/actions.d.ts +12 -0
- package/dist/components/motion/wallet-card/actions.d.ts.map +1 -0
- package/dist/components/motion/wallet-card/actions.js +58 -0
- package/dist/components/motion/wallet-card/actions.js.map +1 -0
- package/dist/components/motion/wallet-card/balance-delta.d.ts +12 -0
- package/dist/components/motion/wallet-card/balance-delta.d.ts.map +1 -0
- package/dist/components/motion/wallet-card/balance-delta.js +72 -0
- package/dist/components/motion/wallet-card/balance-delta.js.map +1 -0
- package/dist/components/motion/wallet-card/copy-button.d.ts +12 -0
- package/dist/components/motion/wallet-card/copy-button.d.ts.map +1 -0
- package/dist/components/motion/wallet-card/copy-button.js +41 -0
- package/dist/components/motion/wallet-card/copy-button.js.map +1 -0
- package/dist/components/motion/wallet-card/index.d.ts +13 -0
- package/dist/components/motion/wallet-card/index.d.ts.map +1 -0
- package/dist/components/motion/wallet-card/index.js +115 -0
- package/dist/components/motion/wallet-card/index.js.map +1 -0
- package/dist/components/motion/wallet-card/search-bar.d.ts +17 -0
- package/dist/components/motion/wallet-card/search-bar.d.ts.map +1 -0
- package/dist/components/motion/wallet-card/search-bar.js +156 -0
- package/dist/components/motion/wallet-card/search-bar.js.map +1 -0
- package/dist/components/reui/alert.d.ts +1 -1
- package/dist/components/reui/autocomplete.d.ts +1 -1
- package/dist/components/reui/autocomplete.d.ts.map +1 -1
- package/dist/components/reui/autocomplete.js.map +1 -1
- package/dist/components/reui/badge.d.ts +2 -2
- package/dist/components/reui/cascader/cascader-async.d.ts +3 -2
- package/dist/components/reui/cascader/cascader-async.d.ts.map +1 -1
- package/dist/components/reui/cascader/cascader-async.js.map +1 -1
- package/dist/components/reui/cascader/cascader-columns.js +3 -3
- package/dist/components/reui/cascader/cascader-columns.js.map +1 -1
- package/dist/components/reui/cascader/cascader-context.d.ts +12 -4
- package/dist/components/reui/cascader/cascader-context.d.ts.map +1 -1
- package/dist/components/reui/cascader/cascader-context.js.map +1 -1
- package/dist/components/reui/cascader/cascader-i18n.d.ts +1 -1
- package/dist/components/reui/cascader/cascader-item.d.ts +2 -2
- package/dist/components/reui/cascader/cascader-item.d.ts.map +1 -1
- package/dist/components/reui/cascader/cascader-item.js +22 -16
- package/dist/components/reui/cascader/cascader-item.js.map +1 -1
- package/dist/components/reui/cascader/cascader-lib.d.ts +8 -1
- package/dist/components/reui/cascader/cascader-lib.d.ts.map +1 -1
- package/dist/components/reui/cascader/cascader-lib.js +19 -11
- package/dist/components/reui/cascader/cascader-lib.js.map +1 -1
- package/dist/components/reui/cascader/cascader-nav.d.ts +1 -1
- package/dist/components/reui/cascader/cascader-nav.d.ts.map +1 -1
- package/dist/components/reui/cascader/cascader-nav.js +5 -4
- 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.map +1 -1
- package/dist/components/reui/cascader/cascader-virtual.js.map +1 -1
- package/dist/components/reui/cascader/cascader.d.ts +6 -2
- package/dist/components/reui/cascader/cascader.d.ts.map +1 -1
- package/dist/components/reui/cascader/cascader.js +58 -20
- package/dist/components/reui/cascader/cascader.js.map +1 -1
- package/dist/components/reui/color-picker.d.ts +280 -0
- package/dist/components/reui/color-picker.d.ts.map +1 -0
- package/dist/components/reui/color-picker.js +2013 -0
- package/dist/components/reui/color-picker.js.map +1 -0
- package/dist/components/reui/data-grid/data-grid-cell-selection.d.ts.map +1 -1
- package/dist/components/reui/data-grid/data-grid-column-filter.js +2 -2
- package/dist/components/reui/data-grid/data-grid-column-filter.js.map +1 -1
- package/dist/components/reui/data-grid/data-grid-column-header.d.ts.map +1 -1
- package/dist/components/reui/data-grid/data-grid-column-header.js +59 -33
- package/dist/components/reui/data-grid/data-grid-column-header.js.map +1 -1
- package/dist/components/reui/data-grid/data-grid-column-visibility.js +1 -1
- package/dist/components/reui/data-grid/data-grid-column-visibility.js.map +1 -1
- package/dist/components/reui/data-grid/data-grid-pagination.js +2 -2
- package/dist/components/reui/data-grid/data-grid-pagination.js.map +1 -1
- package/dist/components/reui/data-grid/data-grid-scroll-area.d.ts.map +1 -1
- package/dist/components/reui/data-grid/data-grid-scroll-area.js +94 -64
- package/dist/components/reui/data-grid/data-grid-scroll-area.js.map +1 -1
- package/dist/components/reui/data-grid/data-grid-table-dnd-rows.d.ts +7 -2
- package/dist/components/reui/data-grid/data-grid-table-dnd-rows.d.ts.map +1 -1
- package/dist/components/reui/data-grid/data-grid-table-dnd-rows.js +74 -41
- package/dist/components/reui/data-grid/data-grid-table-dnd-rows.js.map +1 -1
- package/dist/components/reui/data-grid/data-grid-table-dnd.d.ts +7 -2
- package/dist/components/reui/data-grid/data-grid-table-dnd.d.ts.map +1 -1
- package/dist/components/reui/data-grid/data-grid-table-dnd.js +135 -32
- package/dist/components/reui/data-grid/data-grid-table-dnd.js.map +1 -1
- package/dist/components/reui/data-grid/data-grid-table-virtual.d.ts.map +1 -1
- package/dist/components/reui/data-grid/data-grid-table-virtual.js +36 -42
- package/dist/components/reui/data-grid/data-grid-table-virtual.js.map +1 -1
- package/dist/components/reui/data-grid/data-grid-table.d.ts +168 -5
- package/dist/components/reui/data-grid/data-grid-table.d.ts.map +1 -1
- package/dist/components/reui/data-grid/data-grid-table.js +354 -101
- package/dist/components/reui/data-grid/data-grid-table.js.map +1 -1
- package/dist/components/reui/data-grid/data-grid.d.ts +55 -0
- package/dist/components/reui/data-grid/data-grid.d.ts.map +1 -1
- package/dist/components/reui/data-grid/data-grid.js +114 -52
- package/dist/components/reui/data-grid/data-grid.js.map +1 -1
- package/dist/components/reui/date-selector.d.ts +1 -0
- package/dist/components/reui/date-selector.js +1 -1
- package/dist/components/reui/emoji-picker.d.ts +367 -0
- package/dist/components/reui/emoji-picker.d.ts.map +1 -0
- package/dist/components/reui/emoji-picker.js +1768 -0
- package/dist/components/reui/emoji-picker.js.map +1 -0
- package/dist/components/reui/event-calendar/event-calendar-i18n.d.ts.map +1 -1
- package/dist/components/reui/event-calendar/event-calendar-nav.js +1 -1
- package/dist/components/reui/file-type.d.ts +496 -0
- package/dist/components/reui/file-type.d.ts.map +1 -0
- package/dist/components/reui/file-type.js +964 -0
- package/dist/components/reui/file-type.js.map +1 -0
- package/dist/components/reui/filters/filters-advanced.d.ts +1 -0
- package/dist/components/reui/filters/filters-advanced.js +1 -1
- package/dist/components/reui/filters/filters-advanced.js.map +1 -1
- package/dist/components/reui/filters/filters-builder.d.ts +1 -1
- package/dist/components/reui/filters/filters-chip.d.ts +5 -1
- package/dist/components/reui/filters/filters-chip.d.ts.map +1 -1
- package/dist/components/reui/filters/filters-chip.js +1 -1
- package/dist/components/reui/filters/filters-lib.d.ts +1 -1
- package/dist/components/reui/filters/filters-lib.d.ts.map +1 -1
- package/dist/components/reui/frame.d.ts +2 -2
- package/dist/components/reui/frame.d.ts.map +1 -1
- package/dist/components/reui/frame.js.map +1 -1
- package/dist/components/reui/gantt/gantt-nav.js +1 -1
- package/dist/components/reui/icon-tile.d.ts +1 -1
- package/dist/components/reui/icon-tile.js +8 -7
- package/dist/components/reui/icon-tile.js.map +1 -1
- package/dist/components/reui/kanban.d.ts.map +1 -1
- package/dist/components/reui/kanban.js +1 -1
- package/dist/components/reui/kanban.js.map +1 -1
- package/dist/components/reui/number-field.d.ts +3 -3
- package/dist/components/reui/number-field.d.ts.map +1 -1
- package/dist/components/reui/number-field.js.map +1 -1
- package/dist/components/reui/rating.d.ts +1 -1
- package/dist/components/reui/scrollspy.d.ts +1 -0
- package/dist/components/reui/signature-pad.d.ts +160 -0
- package/dist/components/reui/signature-pad.d.ts.map +1 -0
- package/dist/components/reui/signature-pad.js +764 -0
- package/dist/components/reui/signature-pad.js.map +1 -0
- package/dist/components/reui/time-picker.d.ts +202 -0
- package/dist/components/reui/time-picker.d.ts.map +1 -0
- package/dist/components/reui/time-picker.js +1002 -0
- package/dist/components/reui/time-picker.js.map +1 -0
- package/dist/components/ui/attachment.d.ts +2 -2
- package/dist/components/ui/badge.d.ts +1 -1
- package/dist/components/ui/bubble.d.ts +1 -1
- package/dist/components/ui/button.d.ts +2 -2
- package/dist/components/ui/command.d.ts.map +1 -1
- package/dist/components/ui/direction.js +1 -2
- package/dist/components/ui/empty.d.ts +1 -1
- package/dist/components/ui/field.js +1 -1
- package/dist/components/ui/input-group.d.ts +1 -1
- package/dist/components/ui/item.d.ts +3 -3
- package/dist/components/ui/message-scroller.d.ts.map +1 -1
- package/dist/components/ui/questionnaire.d.ts.map +1 -1
- package/dist/components/ui/sidebar.d.ts +2 -2
- package/dist/components/ui/sidebar.js +1 -1
- package/dist/components/ui/tabs.d.ts +1 -1
- package/dist/components/ui/toggle.d.ts +2 -2
- package/dist/constants-CsKm9sSk.js +30 -0
- package/dist/constants-CsKm9sSk.js.map +1 -0
- package/dist/context-3_vY1jbv.js +141 -0
- package/dist/context-3_vY1jbv.js.map +1 -0
- package/dist/context-BE60udRT.js +99 -0
- package/dist/context-BE60udRT.js.map +1 -0
- package/dist/context-BYXeJQnz.d.ts +150 -0
- package/dist/context-BYXeJQnz.d.ts.map +1 -0
- package/dist/context-Bc6VC1HA.js +181 -0
- package/dist/context-Bc6VC1HA.js.map +1 -0
- package/dist/context-BqjZ1Z_w.js +111 -0
- package/dist/context-BqjZ1Z_w.js.map +1 -0
- package/dist/context-CZfRKkcZ.js +204 -0
- package/dist/context-CZfRKkcZ.js.map +1 -0
- package/dist/context-Cn-00gfW.js +169 -0
- package/dist/context-Cn-00gfW.js.map +1 -0
- package/dist/context-Cnlo53sV.d.ts +92 -0
- package/dist/context-Cnlo53sV.d.ts.map +1 -0
- package/dist/context-Rl5VCYA8.js +257 -0
- package/dist/context-Rl5VCYA8.js.map +1 -0
- package/dist/context-sD8DQga-.js +122 -0
- package/dist/context-sD8DQga-.js.map +1 -0
- package/dist/context-tTdLKYNf.js +99 -0
- package/dist/context-tTdLKYNf.js.map +1 -0
- package/dist/{copy-menu-C5GaT4Z-.js → copy-menu-BXUh52bu.js} +2 -2
- package/dist/{copy-menu-C5GaT4Z-.js.map → copy-menu-BXUh52bu.js.map} +1 -1
- package/dist/ease-B82HVmio.d.ts +50 -0
- package/dist/ease-B82HVmio.d.ts.map +1 -0
- package/dist/hooks/use-copy-to-clipboard.d.ts +1 -0
- package/dist/hooks/use-hover-gesture.d.ts +1 -0
- package/dist/hooks/use-intersection-observer.d.ts +1 -0
- package/dist/hooks/use-modal-scope.d.ts +6 -0
- package/dist/hooks/use-modal-scope.d.ts.map +1 -0
- package/dist/hooks/use-modal-scope.js +83 -0
- package/dist/hooks/use-modal-scope.js.map +1 -0
- package/dist/hooks/use-scroll-position.d.ts +1 -0
- package/dist/hooks/use-slider-input.d.ts +1 -0
- package/dist/hooks/use-viewport.d.ts +1 -0
- package/dist/lib/ease.d.ts +2 -49
- package/dist/lib/tick-sound.d.ts +1 -0
- package/dist/model-DlbIqCZg.d.ts +41 -0
- package/dist/model-DlbIqCZg.d.ts.map +1 -0
- package/dist/model-NSIg2p7a.d.ts +20 -0
- package/dist/model-NSIg2p7a.d.ts.map +1 -0
- package/dist/model-_mRyI6V9.d.ts +18 -0
- package/dist/model-_mRyI6V9.d.ts.map +1 -0
- package/dist/plot-CdFTbMI_.js +131 -0
- package/dist/plot-CdFTbMI_.js.map +1 -0
- package/dist/{positioner-3mCqiebN.js → positioner-3r3cfkqT.js} +97 -33
- package/dist/positioner-3r3cfkqT.js.map +1 -0
- package/dist/tooltip-Bam5KeYe.js +535 -0
- package/dist/tooltip-Bam5KeYe.js.map +1 -0
- package/dist/tooltip-BarafYiU.d.ts +67 -0
- package/dist/tooltip-BarafYiU.d.ts.map +1 -0
- package/dist/tooltip-BqxVD6D-.d.ts +64 -0
- package/dist/tooltip-BqxVD6D-.d.ts.map +1 -0
- package/dist/tooltip-C01qUgsW.d.ts +133 -0
- package/dist/tooltip-C01qUgsW.d.ts.map +1 -0
- package/dist/tooltip-C6qUs7px.d.ts +36 -0
- package/dist/tooltip-C6qUs7px.d.ts.map +1 -0
- package/dist/tooltip-DQ4DXgeu.d.ts +94 -0
- package/dist/tooltip-DQ4DXgeu.d.ts.map +1 -0
- package/dist/types-B_6p3LXz.d.ts +36 -0
- package/dist/types-B_6p3LXz.d.ts.map +1 -0
- package/dist/types-D6e3gWOA.d.ts +22 -0
- package/dist/types-D6e3gWOA.d.ts.map +1 -0
- package/dist/use-geometry-CH0foIo7.d.ts +9 -0
- package/dist/use-geometry-CH0foIo7.d.ts.map +1 -0
- package/dist/use-position-DOi1gVL0.d.ts +32 -0
- package/dist/use-position-DOi1gVL0.d.ts.map +1 -0
- package/dist/utils-B3YXTsDI.js +26 -0
- package/dist/utils-B3YXTsDI.js.map +1 -0
- package/package.json +12 -12
- package/dist/cascader-types-BnH6wYD-.d.ts.map +0 -1
- package/dist/components/motion/tooltip.js.map +0 -1
- package/dist/lib/ease.d.ts.map +0 -1
- package/dist/positioner-3mCqiebN.js.map +0 -1
|
@@ -0,0 +1,367 @@
|
|
|
1
|
+
import { Button } from "../ui/button.js";
|
|
2
|
+
import { InputGroupInput } from "../ui/input-group.js";
|
|
3
|
+
import { PopoverContent } from "../ui/popover.js";
|
|
4
|
+
import { ComponentProps, ReactNode, Ref, RefObject } from "react";
|
|
5
|
+
//#region src/components/reui/emoji-picker.d.ts
|
|
6
|
+
/** 0 is the default yellow; 1 to 5 run from light to dark. */
|
|
7
|
+
export type EmojiPickerSkinTone = 0 | 1 | 2 | 3 | 4 | 5;
|
|
8
|
+
/** The Unicode categories, in their standard order. */
|
|
9
|
+
export type EmojiPickerCategory = "smileys" | "people" | "nature" | "food" | "travel" | "activities" | "objects" | "symbols" | "flags";
|
|
10
|
+
export type EmojiPickerEmoji = {
|
|
11
|
+
/** The hexcode of a Unicode emoji, like `1F44D`; the given id of a custom one. */
|
|
12
|
+
id: string;
|
|
13
|
+
/** The native emoji at the default tone. Empty for a custom emoji. */
|
|
14
|
+
emoji: string;
|
|
15
|
+
/** Lowercase name in the data's language, like `thumbs up`. */
|
|
16
|
+
label: string;
|
|
17
|
+
/** Search keywords in the data's language. */
|
|
18
|
+
tags: string[];
|
|
19
|
+
/** Without colons, like `+1` and `thumbsup`. */
|
|
20
|
+
shortcodes: string[];
|
|
21
|
+
/** A category key, or a custom category id. */
|
|
22
|
+
category: string;
|
|
23
|
+
/** The Emoji version that added it. 0 for a custom emoji. */
|
|
24
|
+
version: number;
|
|
25
|
+
/** The five toned forms, light to dark, when the emoji takes a skin tone. */
|
|
26
|
+
skins?: string[];
|
|
27
|
+
/** The Emoji version that added the tones, when later than the emoji's own. */
|
|
28
|
+
skinVersion?: number;
|
|
29
|
+
/** Image URL of a custom emoji. */
|
|
30
|
+
src?: string;
|
|
31
|
+
};
|
|
32
|
+
export type EmojiPickerCustomEmoji = {
|
|
33
|
+
id: string;
|
|
34
|
+
label: string;
|
|
35
|
+
/** Image URL. A square image of 64px or more stays sharp at every size. */
|
|
36
|
+
src: string;
|
|
37
|
+
tags?: string[];
|
|
38
|
+
/** Defaults to the id. The first one makes the value: `:partyparrot:`. */
|
|
39
|
+
shortcodes?: string[];
|
|
40
|
+
/** A `customCategories` id. Defaults to `custom`. */
|
|
41
|
+
category?: string;
|
|
42
|
+
};
|
|
43
|
+
export type EmojiPickerCustomCategory = {
|
|
44
|
+
id: string;
|
|
45
|
+
label: string;
|
|
46
|
+
/** Tab icon. Defaults to a sparkle. */
|
|
47
|
+
icon?: ReactNode;
|
|
48
|
+
};
|
|
49
|
+
export type EmojiPickerData = {
|
|
50
|
+
locale: string;
|
|
51
|
+
emojis: EmojiPickerEmoji[];
|
|
52
|
+
/** Category names in the data's language. */
|
|
53
|
+
categories: Partial<Record<EmojiPickerCategory, string>>;
|
|
54
|
+
};
|
|
55
|
+
/** What a pick hands back. */
|
|
56
|
+
export type EmojiPickerSelection = {
|
|
57
|
+
/** The native emoji with the skin tone applied, or `:shortcode:` for a custom emoji. */
|
|
58
|
+
value: string;
|
|
59
|
+
emoji: EmojiPickerEmoji;
|
|
60
|
+
skinTone: EmojiPickerSkinTone;
|
|
61
|
+
};
|
|
62
|
+
/** One frequently used emoji, by base id. `count` orders the frequent mode. */
|
|
63
|
+
export type EmojiPickerRecentEntry = {
|
|
64
|
+
id: string;
|
|
65
|
+
count: number;
|
|
66
|
+
};
|
|
67
|
+
/** GitHub and Slack (`iamcal`) codes are English only; `emojibase` and `cldr` follow the locale. */
|
|
68
|
+
export type EmojiPickerShortcodePreset = "github" | "iamcal" | "emojibase" | "cldr";
|
|
69
|
+
export type EmojiPickerSize = "sm" | "default" | "lg";
|
|
70
|
+
export type EmojiPickerDataStatus = "idle" | "loading" | "ready" | "error";
|
|
71
|
+
export type EmojiPickerLabels = {
|
|
72
|
+
/** The trigger's name while there is no value. */
|
|
73
|
+
trigger: string;
|
|
74
|
+
/** Names the popup and an inline panel. */
|
|
75
|
+
panel: string;
|
|
76
|
+
/** Search placeholder and name. */
|
|
77
|
+
search: string;
|
|
78
|
+
clearSearch: string;
|
|
79
|
+
/** Names the grid. */
|
|
80
|
+
list: string;
|
|
81
|
+
/** Names the category tabs. */
|
|
82
|
+
categories: string;
|
|
83
|
+
/** The recent section under `recentMode="frequent"`. */
|
|
84
|
+
frequent: string;
|
|
85
|
+
/** The recent section under `recentMode="recent"`. */
|
|
86
|
+
recent: string;
|
|
87
|
+
searchResults: string;
|
|
88
|
+
/** Custom emoji with no `customCategories` entry. */
|
|
89
|
+
custom: string;
|
|
90
|
+
smileys: string;
|
|
91
|
+
people: string;
|
|
92
|
+
nature: string;
|
|
93
|
+
food: string;
|
|
94
|
+
travel: string;
|
|
95
|
+
activities: string;
|
|
96
|
+
objects: string;
|
|
97
|
+
symbols: string;
|
|
98
|
+
flags: string;
|
|
99
|
+
skinTone: string;
|
|
100
|
+
/** Default, then light to dark. */
|
|
101
|
+
skinTones: [string, string, string, string, string, string];
|
|
102
|
+
empty: string;
|
|
103
|
+
emptyHint: string;
|
|
104
|
+
loading: string;
|
|
105
|
+
error: string;
|
|
106
|
+
retry: string;
|
|
107
|
+
/** The preview while nothing is highlighted. */
|
|
108
|
+
preview: string;
|
|
109
|
+
};
|
|
110
|
+
export type EmojiPickerFunctions = {
|
|
111
|
+
/** Announced after a search. */
|
|
112
|
+
formatResultCount: (count: number) => string;
|
|
113
|
+
/** Announced after a pick that keeps the picker open. */
|
|
114
|
+
formatSelected: (label: string) => string;
|
|
115
|
+
/** The display name, from the lowercase data label. */
|
|
116
|
+
formatLabel: (label: string) => string;
|
|
117
|
+
};
|
|
118
|
+
export type EmojiPickerI18nConfig = {
|
|
119
|
+
labels: EmojiPickerLabels;
|
|
120
|
+
functions: EmojiPickerFunctions;
|
|
121
|
+
};
|
|
122
|
+
/** One level deeper than `Partial`, so a single label can be overridden. */
|
|
123
|
+
export type EmojiPickerI18nOverrides = {
|
|
124
|
+
labels?: Partial<EmojiPickerLabels>;
|
|
125
|
+
functions?: Partial<EmojiPickerFunctions>;
|
|
126
|
+
};
|
|
127
|
+
export declare const DEFAULT_EMOJI_PICKER_I18N: EmojiPickerI18nConfig;
|
|
128
|
+
/** Merges per section, so an override can carry one key without restating the rest. */
|
|
129
|
+
export declare function mergeEmojiPickerI18n(overrides?: EmojiPickerI18nOverrides): EmojiPickerI18nConfig;
|
|
130
|
+
/** The pinned emojibase-data release fetched by default. An exact version caches for good. */
|
|
131
|
+
export declare const EMOJI_PICKER_DATA_URL = "https://cdn.jsdelivr.net/npm/emojibase-data@17.0.0";
|
|
132
|
+
export declare const EMOJI_PICKER_CATEGORIES: EmojiPickerCategory[];
|
|
133
|
+
export type EmojiPickerDataOptions = {
|
|
134
|
+
/** An emojibase locale: `en`, `de`, `ja`, `pt`, `zh-hant` and 23 more. */
|
|
135
|
+
locale?: string;
|
|
136
|
+
/** Base URL of an emojibase-data copy, for self-hosting or a stricter CSP. */
|
|
137
|
+
url?: string;
|
|
138
|
+
shortcodes?: EmojiPickerShortcodePreset | EmojiPickerShortcodePreset[] | false;
|
|
139
|
+
};
|
|
140
|
+
/**
|
|
141
|
+
* Turns emojibase's `data.json`, `messages.json` and shortcode files into
|
|
142
|
+
* picker data. Entries it cannot read are dropped rather than trusted.
|
|
143
|
+
*/
|
|
144
|
+
export declare function normalizeEmojibaseData(raw: unknown, options?: {
|
|
145
|
+
locale?: string;
|
|
146
|
+
messages?: unknown;
|
|
147
|
+
shortcodes?: unknown[];
|
|
148
|
+
}): EmojiPickerData;
|
|
149
|
+
/**
|
|
150
|
+
* Fetches and normalizes emojibase data once per URL, locale and shortcode
|
|
151
|
+
* set; every picker on the page shares the request. A failed load is
|
|
152
|
+
* forgotten, so the next call retries.
|
|
153
|
+
*/
|
|
154
|
+
export declare function loadEmojiPickerData(options?: EmojiPickerDataOptions): Promise<EmojiPickerData>;
|
|
155
|
+
export type UseEmojiPickerDataOptions = EmojiPickerDataOptions & {
|
|
156
|
+
/** Data already in hand, bundled or loaded on the server. Skips the fetch. */
|
|
157
|
+
data?: EmojiPickerData;
|
|
158
|
+
/** Holds the fetch until true. */
|
|
159
|
+
enabled?: boolean;
|
|
160
|
+
};
|
|
161
|
+
export type EmojiPickerDataState = {
|
|
162
|
+
data: EmojiPickerData | null;
|
|
163
|
+
status: EmojiPickerDataStatus;
|
|
164
|
+
error: unknown;
|
|
165
|
+
retry: () => void;
|
|
166
|
+
};
|
|
167
|
+
/** Loads emoji data for a custom surface: a shortcode autocomplete, a reaction bar. */
|
|
168
|
+
export declare function useEmojiPickerData(options?: UseEmojiPickerDataOptions): EmojiPickerDataState;
|
|
169
|
+
/**
|
|
170
|
+
* Ranks emoji against a query. Every word must match the name, a keyword or
|
|
171
|
+
* a shortcode; colons around a shortcode are ignored, so `:thumbsup:` works.
|
|
172
|
+
* Ties keep the input order.
|
|
173
|
+
*/
|
|
174
|
+
export declare function searchEmojis(emojis: EmojiPickerEmoji[], query: string, options?: {
|
|
175
|
+
limit?: number;
|
|
176
|
+
}): EmojiPickerEmoji[];
|
|
177
|
+
/** The value a pick stores: the toned native emoji, or `:shortcode:` for a custom one. */
|
|
178
|
+
export declare function getEmojiValue(emoji: EmojiPickerEmoji, skinTone?: EmojiPickerSkinTone): string;
|
|
179
|
+
/** Whether a stored value is this emoji: any tone, with or without VS16. */
|
|
180
|
+
export declare function isEmojiValue(emoji: EmojiPickerEmoji, value: string): boolean;
|
|
181
|
+
/** Finds the emoji a value came from, any tone, or a custom emoji's `:shortcode:`. */
|
|
182
|
+
export declare function findEmoji(emojis: EmojiPickerEmoji[], value: string | null | undefined): EmojiPickerEmoji | undefined;
|
|
183
|
+
export type EmojiPickerApi = {
|
|
184
|
+
data: EmojiPickerData | null;
|
|
185
|
+
status: EmojiPickerDataStatus;
|
|
186
|
+
retry: () => void;
|
|
187
|
+
/** The emoji the grid can show: custom ones, then the data after version, flag and `filter` checks. */
|
|
188
|
+
emojis: EmojiPickerEmoji[];
|
|
189
|
+
query: string;
|
|
190
|
+
setQuery: (query: string) => void;
|
|
191
|
+
skinTone: EmojiPickerSkinTone;
|
|
192
|
+
setSkinTone: (tone: EmojiPickerSkinTone) => void;
|
|
193
|
+
/** The highlighted emoji: hovered, or reached with the arrow keys. */
|
|
194
|
+
activeEmoji: EmojiPickerEmoji | null;
|
|
195
|
+
/** Single mode: the value, or `null`. Multiple mode: the first value. */
|
|
196
|
+
value: string | null;
|
|
197
|
+
values: string[];
|
|
198
|
+
/** The recent section's emoji, in display order. */
|
|
199
|
+
recent: EmojiPickerEmoji[];
|
|
200
|
+
/** Same as clicking the emoji's cell. */
|
|
201
|
+
select: (emoji: EmojiPickerEmoji) => void;
|
|
202
|
+
/** Empties the value. */
|
|
203
|
+
clear: () => void;
|
|
204
|
+
open: boolean;
|
|
205
|
+
setOpen: (open: boolean) => void;
|
|
206
|
+
};
|
|
207
|
+
type EmojiPickerSingleProps = {
|
|
208
|
+
multiple?: false;
|
|
209
|
+
/** Controlled value: a native emoji, or `:shortcode:` for a custom one. `null` is empty. */
|
|
210
|
+
value?: string | null;
|
|
211
|
+
defaultValue?: string | null;
|
|
212
|
+
onValueChange?: (value: string | null) => void;
|
|
213
|
+
max?: never;
|
|
214
|
+
};
|
|
215
|
+
type EmojiPickerMultipleProps = {
|
|
216
|
+
/** Picks toggle in and out of a list of values, and the picker stays open. */
|
|
217
|
+
multiple: true;
|
|
218
|
+
value?: string[];
|
|
219
|
+
defaultValue?: string[];
|
|
220
|
+
onValueChange?: (value: string[]) => void;
|
|
221
|
+
/** The most values a person can pick; cells refuse further picks at the cap. */
|
|
222
|
+
max?: number;
|
|
223
|
+
};
|
|
224
|
+
export type EmojiPickerProps = (EmojiPickerSingleProps | EmojiPickerMultipleProps) & {
|
|
225
|
+
/** Fires on every pick, with the toned value and the emoji. The insert-into-text hook. */
|
|
226
|
+
onEmojiSelect?: (selection: EmojiPickerSelection) => void;
|
|
227
|
+
open?: boolean;
|
|
228
|
+
defaultOpen?: boolean;
|
|
229
|
+
onOpenChange?: (open: boolean) => void;
|
|
230
|
+
/** Closes the popover after a pick. Defaults to true, false with `multiple`. Shift+click keeps it open either way. */
|
|
231
|
+
closeOnSelect?: boolean;
|
|
232
|
+
/** Data already in hand (bundled, or loaded on the server). Skips the fetch. */
|
|
233
|
+
data?: EmojiPickerData;
|
|
234
|
+
/** An emojibase locale: names, keywords and category labels in that language. */
|
|
235
|
+
locale?: string;
|
|
236
|
+
/** Base URL of a self-hosted emojibase-data copy. */
|
|
237
|
+
dataUrl?: string;
|
|
238
|
+
/** Shortcode sets searched and shown. `false` skips the request. */
|
|
239
|
+
shortcodes?: EmojiPickerShortcodePreset | EmojiPickerShortcodePreset[] | false;
|
|
240
|
+
/** Hides emoji newer than this Emoji version. `"auto"` probes what the device draws, flags included. */
|
|
241
|
+
emojiVersion?: number | "auto";
|
|
242
|
+
/** Which sections show, in order: `recent`, custom category ids and category keys. Search still covers every emoji `filter` and `emojiVersion` keep; use `filter` to remove emoji entirely. */
|
|
243
|
+
categories?: string[];
|
|
244
|
+
/** Drops emoji. Pass a stable function; it runs per emoji. */
|
|
245
|
+
filter?: (emoji: EmojiPickerEmoji) => boolean;
|
|
246
|
+
customEmojis?: EmojiPickerCustomEmoji[];
|
|
247
|
+
customCategories?: EmojiPickerCustomCategory[];
|
|
248
|
+
/** Orders the recent section by use count, or by last use. */
|
|
249
|
+
recentMode?: "frequent" | "recent";
|
|
250
|
+
/** How many recent emoji show. Defaults to 2 rows; 0 hides the section. */
|
|
251
|
+
recentLimit?: number;
|
|
252
|
+
/** Controlled recent list, for syncing it to an account. */
|
|
253
|
+
recent?: EmojiPickerRecentEntry[];
|
|
254
|
+
defaultRecent?: EmojiPickerRecentEntry[];
|
|
255
|
+
onRecentChange?: (recent: EmojiPickerRecentEntry[]) => void;
|
|
256
|
+
/** localStorage key for the recent list; `null` keeps it in memory. */
|
|
257
|
+
recentStorageKey?: string | null;
|
|
258
|
+
skinTone?: EmojiPickerSkinTone;
|
|
259
|
+
defaultSkinTone?: EmojiPickerSkinTone;
|
|
260
|
+
onSkinToneChange?: (tone: EmojiPickerSkinTone) => void;
|
|
261
|
+
/** localStorage key for the skin tone; `null` keeps it in memory. */
|
|
262
|
+
skinToneStorageKey?: string | null;
|
|
263
|
+
/** Controlled search text. */
|
|
264
|
+
query?: string;
|
|
265
|
+
onQueryChange?: (query: string) => void;
|
|
266
|
+
size?: EmojiPickerSize;
|
|
267
|
+
/** Cells per row. `"auto"` fills the panel's width. */
|
|
268
|
+
columns?: number | "auto";
|
|
269
|
+
/** Draws an emoji: an image set, a sprite, a brand font. */
|
|
270
|
+
renderEmoji?: (emoji: EmojiPickerEmoji, value: string) => ReactNode;
|
|
271
|
+
disabled?: boolean;
|
|
272
|
+
invalid?: boolean;
|
|
273
|
+
/** Submits the value with a native form; multiple values are comma-joined. */
|
|
274
|
+
name?: string;
|
|
275
|
+
form?: string;
|
|
276
|
+
required?: boolean;
|
|
277
|
+
/** The hidden form field, for form libraries that focus a field on error. */
|
|
278
|
+
inputRef?: Ref<HTMLInputElement>;
|
|
279
|
+
/** Lands on the trigger. */
|
|
280
|
+
id?: string;
|
|
281
|
+
"aria-label"?: string;
|
|
282
|
+
"aria-labelledby"?: string;
|
|
283
|
+
"aria-describedby"?: string;
|
|
284
|
+
i18n?: EmojiPickerI18nOverrides;
|
|
285
|
+
/** Without children the picker renders a trigger and a popover; this reaches the trigger. */
|
|
286
|
+
className?: string;
|
|
287
|
+
children?: ReactNode;
|
|
288
|
+
};
|
|
289
|
+
export declare function EmojiPicker(props: EmojiPickerProps): import("react").JSX.Element;
|
|
290
|
+
/** The picker's state and actions, inside an `EmojiPicker`. */
|
|
291
|
+
export declare function useEmojiPicker(): EmojiPickerApi;
|
|
292
|
+
export type EmojiPickerValueProps = Omit<ComponentProps<"span">, "children"> & {
|
|
293
|
+
/** Defaults to the picker's value. */
|
|
294
|
+
value?: string | null;
|
|
295
|
+
placeholder?: ReactNode;
|
|
296
|
+
};
|
|
297
|
+
/** An emoji value drawn like the grid draws it, custom images included. For triggers and readouts. */
|
|
298
|
+
export declare function EmojiPickerValue({ value: valueProp, placeholder, className, ...props }: EmojiPickerValueProps): import("react").JSX.Element;
|
|
299
|
+
export type EmojiPickerTriggerProps = ComponentProps<typeof Button>;
|
|
300
|
+
/**
|
|
301
|
+
* A shadcn Button that opens the picker: the value, or a smiley. Hovering or
|
|
302
|
+
* focusing it starts the data fetch, so the grid is ready on open.
|
|
303
|
+
*/
|
|
304
|
+
export declare function EmojiPickerTrigger({ className, variant, size, children, ref, onPointerEnter, onFocus, ...props }: EmojiPickerTriggerProps): import("react").JSX.Element;
|
|
305
|
+
export type EmojiPickerContentProps = ComponentProps<typeof PopoverContent> & {
|
|
306
|
+
/** Where focus goes on close, such as a composer's textarea. Defaults to the trigger. */
|
|
307
|
+
returnFocus?: RefObject<HTMLElement | null>;
|
|
308
|
+
};
|
|
309
|
+
/**
|
|
310
|
+
* The popover. It wraps its children in an `EmojiPickerPanel`, so it takes the
|
|
311
|
+
* same parts; with none it renders the default layout. Tab cycles inside it.
|
|
312
|
+
*/
|
|
313
|
+
export declare function EmojiPickerContent({ className, align, returnFocus, onKeyDown, onClick, children, ...props }: EmojiPickerContentProps): import("react").JSX.Element;
|
|
314
|
+
export type EmojiPickerPanelProps = ComponentProps<"div">;
|
|
315
|
+
/**
|
|
316
|
+
* The picker surface. Inline, put it straight inside an `EmojiPicker` with no
|
|
317
|
+
* trigger. Without children it renders the search, the tabs, the grid and a
|
|
318
|
+
* footer with the preview and the skin tone; with children, only those parts,
|
|
319
|
+
* in that order.
|
|
320
|
+
*/
|
|
321
|
+
export declare function EmojiPickerPanel({ className, style, children, ...props }: EmojiPickerPanelProps): import("react").JSX.Element;
|
|
322
|
+
export type EmojiPickerHeaderProps = ComponentProps<"div">;
|
|
323
|
+
/** The row above the grid, for the search and anything beside it. */
|
|
324
|
+
export declare function EmojiPickerHeader({ className, ...props }: EmojiPickerHeaderProps): import("react").JSX.Element;
|
|
325
|
+
export type EmojiPickerSearchProps = Omit<ComponentProps<typeof InputGroupInput>, "value" | "defaultValue">;
|
|
326
|
+
/**
|
|
327
|
+
* The search field, a default shadcn InputGroup. Focus stays here while the
|
|
328
|
+
* arrow keys move through the grid (a combobox over the listbox); Enter picks
|
|
329
|
+
* the highlighted emoji.
|
|
330
|
+
*/
|
|
331
|
+
export declare function EmojiPickerSearch({ className, placeholder, onChange, onKeyDown, onFocus, onBlur, ref, ...props }: EmojiPickerSearchProps): import("react").JSX.Element;
|
|
332
|
+
export type EmojiPickerSkinToneProps = ComponentProps<typeof Button>;
|
|
333
|
+
/**
|
|
334
|
+
* A shadcn Button with a hand in the current tone that opens the six tones in
|
|
335
|
+
* a shadcn DropdownMenu. The choice applies to every emoji that takes a tone
|
|
336
|
+
* and is remembered under `skinToneStorageKey`. Ghost at `icon-sm` for the
|
|
337
|
+
* footer by default; beside the search, `outline` at `icon` matches its
|
|
338
|
+
* height in every style.
|
|
339
|
+
*/
|
|
340
|
+
export declare function EmojiPickerSkinTone({ variant, size, ref, ...props }: EmojiPickerSkinToneProps): import("react").JSX.Element;
|
|
341
|
+
export type EmojiPickerCategoriesProps = ComponentProps<"div">;
|
|
342
|
+
/**
|
|
343
|
+
* Category tabs, the shadcn Tabs in its line variant, that jump the grid and
|
|
344
|
+
* follow its scroll. Arrow keys move between them; Enter or Space jumps. A
|
|
345
|
+
* jump during a search clears it.
|
|
346
|
+
*/
|
|
347
|
+
export declare function EmojiPickerCategories({ className, ...props }: EmojiPickerCategoriesProps): import("react").JSX.Element;
|
|
348
|
+
export type EmojiPickerListProps = ComponentProps<"div">;
|
|
349
|
+
/**
|
|
350
|
+
* The virtual grid: only the rows in view render, so a page of reaction
|
|
351
|
+
* pickers or a 20,000 custom emoji library stays cheap. Section headers stick
|
|
352
|
+
* while their rows scroll. Holds the loading, error and empty states.
|
|
353
|
+
*/
|
|
354
|
+
export declare function EmojiPickerList({ className, onKeyDown, onFocus, onBlur, onPointerDown, onScroll, ...props }: EmojiPickerListProps): import("react").JSX.Element;
|
|
355
|
+
export type EmojiPickerFooterProps = ComponentProps<"div">;
|
|
356
|
+
/** The row under the grid: the preview and the skin tone by default. */
|
|
357
|
+
export declare function EmojiPickerFooter({ className, ...props }: EmojiPickerFooterProps): import("react").JSX.Element;
|
|
358
|
+
export type EmojiPickerPreviewProps = ComponentProps<"div">;
|
|
359
|
+
/**
|
|
360
|
+
* The highlighted emoji, large, with its name and first shortcode; the value
|
|
361
|
+
* while nothing is highlighted. Visual only: the grid already announces it.
|
|
362
|
+
* It fills the space it is given, usually an `EmojiPickerFooter`.
|
|
363
|
+
*/
|
|
364
|
+
export declare function EmojiPickerPreview({ className, ...props }: EmojiPickerPreviewProps): import("react").JSX.Element;
|
|
365
|
+
//#endregion
|
|
366
|
+
export {};
|
|
367
|
+
//# sourceMappingURL=emoji-picker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"emoji-picker.d.ts","names":[],"sources":["../../../src/components/reui/emoji-picker.tsx"],"mappings":"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"}
|