@cronus-ui/ui 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/LICENSE +21 -0
- package/README.md +262 -0
- package/dist/charts/animation.d.ts +11 -0
- package/dist/charts/animation.js +29 -0
- package/dist/charts/area-chart-loading.d.ts +34 -0
- package/dist/charts/area-chart-loading.js +22 -0
- package/dist/charts/area-chart.d.ts +48 -0
- package/dist/charts/area-chart.js +57 -0
- package/dist/charts/area-gradient-defs.d.ts +20 -0
- package/dist/charts/area-gradient-defs.js +15 -0
- package/dist/charts/area.d.ts +76 -0
- package/dist/charts/area.js +104 -0
- package/dist/charts/background.d.ts +27 -0
- package/dist/charts/background.js +68 -0
- package/dist/charts/bar-chart-loading.d.ts +17 -0
- package/dist/charts/bar-chart-loading.js +14 -0
- package/dist/charts/bar-chart.d.ts +55 -0
- package/dist/charts/bar-chart.js +432 -0
- package/dist/charts/bar-depth-geometry.d.ts +33 -0
- package/dist/charts/bar-depth-geometry.js +38 -0
- package/dist/charts/bar-depth.d.ts +157 -0
- package/dist/charts/bar-depth.js +586 -0
- package/dist/charts/bar-squares-layout.d.ts +28 -0
- package/dist/charts/bar-squares-layout.js +47 -0
- package/dist/charts/bar-squares.d.ts +49 -0
- package/dist/charts/bar-squares.js +207 -0
- package/dist/charts/bar-x-axis.d.ts +14 -0
- package/dist/charts/bar-x-axis.js +73 -0
- package/dist/charts/bar-y-axis.d.ts +12 -0
- package/dist/charts/bar-y-axis.js +64 -0
- package/dist/charts/bar.d.ts +41 -0
- package/dist/charts/bar.js +208 -0
- package/dist/charts/candlestick-chart.d.ts +46 -0
- package/dist/charts/candlestick-chart.js +203 -0
- package/dist/charts/candlestick.d.ts +24 -0
- package/dist/charts/candlestick.js +139 -0
- package/dist/charts/chart-brush-handle.d.ts +15 -0
- package/dist/charts/chart-brush-handle.js +47 -0
- package/dist/charts/chart-brush-layout.d.ts +27 -0
- package/dist/charts/chart-brush-layout.js +42 -0
- package/dist/charts/chart-brush-selection-overlay.d.ts +19 -0
- package/dist/charts/chart-brush-selection-overlay.js +44 -0
- package/dist/charts/chart-brush-track-overlay.d.ts +23 -0
- package/dist/charts/chart-brush-track-overlay.js +65 -0
- package/dist/charts/chart-brush.d.ts +32 -0
- package/dist/charts/chart-brush.js +116 -0
- package/dist/charts/chart-center-typography.d.ts +12 -0
- package/dist/charts/chart-center-typography.js +12 -0
- package/dist/charts/chart-child-passthrough.d.ts +17 -0
- package/dist/charts/chart-child-passthrough.js +74 -0
- package/dist/charts/chart-config-context.d.ts +26 -0
- package/dist/charts/chart-config-context.js +47 -0
- package/dist/charts/chart-context.d.ts +199 -0
- package/dist/charts/chart-context.js +201 -0
- package/dist/charts/chart-defs.d.ts +13 -0
- package/dist/charts/chart-defs.js +49 -0
- package/dist/charts/chart-formatters.d.ts +10 -0
- package/dist/charts/chart-formatters.js +28 -0
- package/dist/charts/chart-legend-hover.d.ts +13 -0
- package/dist/charts/chart-legend-hover.js +18 -0
- package/dist/charts/chart-legend.d.ts +55 -0
- package/dist/charts/chart-legend.js +30 -0
- package/dist/charts/chart-loading-label.d.ts +10 -0
- package/dist/charts/chart-loading-label.js +21 -0
- package/dist/charts/chart-phase.d.ts +31 -0
- package/dist/charts/chart-phase.js +21 -0
- package/dist/charts/chart-reveal-clip.d.ts +24 -0
- package/dist/charts/chart-reveal-clip.js +24 -0
- package/dist/charts/chart-scale.d.ts +12 -0
- package/dist/charts/chart-scale.js +17 -0
- package/dist/charts/chart-stat-flow.d.ts +36 -0
- package/dist/charts/chart-stat-flow.js +23 -0
- package/dist/charts/choropleth/choropleth-chart.d.ts +43 -0
- package/dist/charts/choropleth/choropleth-chart.js +218 -0
- package/dist/charts/choropleth/choropleth-context.d.ts +86 -0
- package/dist/charts/choropleth/choropleth-context.js +106 -0
- package/dist/charts/choropleth/choropleth-feature.d.ts +13 -0
- package/dist/charts/choropleth/choropleth-feature.js +125 -0
- package/dist/charts/choropleth/choropleth-graticule.d.ts +11 -0
- package/dist/charts/choropleth/choropleth-graticule.js +12 -0
- package/dist/charts/choropleth/choropleth-tooltip.d.ts +31 -0
- package/dist/charts/choropleth/choropleth-tooltip.js +50 -0
- package/dist/charts/choropleth/index.d.ts +7 -0
- package/dist/charts/choropleth/index.js +6 -0
- package/dist/charts/composed-chart.d.ts +36 -0
- package/dist/charts/composed-chart.js +152 -0
- package/dist/charts/dash-tail-stroke.d.ts +18 -0
- package/dist/charts/dash-tail-stroke.js +13 -0
- package/dist/charts/decimate-time-series.d.ts +10 -0
- package/dist/charts/decimate-time-series.js +112 -0
- package/dist/charts/fade-edges.d.ts +34 -0
- package/dist/charts/fade-edges.js +35 -0
- package/dist/charts/filter-data-by-x-domain.d.ts +5 -0
- package/dist/charts/filter-data-by-x-domain.js +42 -0
- package/dist/charts/funnel-chart.d.ts +91 -0
- package/dist/charts/funnel-chart.js +302 -0
- package/dist/charts/gauge-label-layout.d.ts +22 -0
- package/dist/charts/gauge-label-layout.js +44 -0
- package/dist/charts/gauge.d.ts +56 -0
- package/dist/charts/gauge.js +307 -0
- package/dist/charts/generate-chart-skeleton-data.d.ts +16 -0
- package/dist/charts/generate-chart-skeleton-data.js +25 -0
- package/dist/charts/grid.d.ts +58 -0
- package/dist/charts/grid.js +80 -0
- package/dist/charts/heatmap/generate-heatmap-skeleton-data.d.ts +4 -0
- package/dist/charts/heatmap/generate-heatmap-skeleton-data.js +12 -0
- package/dist/charts/heatmap/heatmap-animation.d.ts +41 -0
- package/dist/charts/heatmap/heatmap-animation.js +85 -0
- package/dist/charts/heatmap/heatmap-cells.d.ts +21 -0
- package/dist/charts/heatmap/heatmap-cells.js +265 -0
- package/dist/charts/heatmap/heatmap-chart-loading.d.ts +21 -0
- package/dist/charts/heatmap/heatmap-chart-loading.js +14 -0
- package/dist/charts/heatmap/heatmap-chart.d.ts +80 -0
- package/dist/charts/heatmap/heatmap-chart.js +275 -0
- package/dist/charts/heatmap/heatmap-colors.d.ts +70 -0
- package/dist/charts/heatmap/heatmap-colors.js +113 -0
- package/dist/charts/heatmap/heatmap-context.d.ts +109 -0
- package/dist/charts/heatmap/heatmap-context.js +69 -0
- package/dist/charts/heatmap/heatmap-legend-gradient.d.ts +20 -0
- package/dist/charts/heatmap/heatmap-legend-gradient.js +44 -0
- package/dist/charts/heatmap/heatmap-legend-swatch.d.ts +8 -0
- package/dist/charts/heatmap/heatmap-legend-swatch.js +26 -0
- package/dist/charts/heatmap/heatmap-legend.d.ts +41 -0
- package/dist/charts/heatmap/heatmap-legend.js +68 -0
- package/dist/charts/heatmap/heatmap-pattern-defs.d.ts +5 -0
- package/dist/charts/heatmap/heatmap-pattern-defs.js +25 -0
- package/dist/charts/heatmap/heatmap-resolve-separator.d.ts +8 -0
- package/dist/charts/heatmap/heatmap-resolve-separator.js +82 -0
- package/dist/charts/heatmap/heatmap-separator.d.ts +63 -0
- package/dist/charts/heatmap/heatmap-separator.js +71 -0
- package/dist/charts/heatmap/heatmap-tooltip.d.ts +30 -0
- package/dist/charts/heatmap/heatmap-tooltip.js +20 -0
- package/dist/charts/heatmap/heatmap-utils.d.ts +175 -0
- package/dist/charts/heatmap/heatmap-utils.js +595 -0
- package/dist/charts/heatmap/heatmap-x-axis.d.ts +7 -0
- package/dist/charts/heatmap/heatmap-x-axis.js +54 -0
- package/dist/charts/heatmap/heatmap-y-axis.d.ts +14 -0
- package/dist/charts/heatmap/heatmap-y-axis.js +37 -0
- package/dist/charts/heatmap/index.d.ts +15 -0
- package/dist/charts/heatmap/index.js +15 -0
- package/dist/charts/heatmap/use-delayed-tooltip-data.d.ts +3 -0
- package/dist/charts/heatmap/use-delayed-tooltip-data.js +53 -0
- package/dist/charts/highlight-segment-bounds.d.ts +18 -0
- package/dist/charts/highlight-segment-bounds.js +36 -0
- package/dist/charts/highlight-segment.d.ts +22 -0
- package/dist/charts/highlight-segment.js +14 -0
- package/dist/charts/index.d.ts +106 -0
- package/dist/charts/index.js +133 -0
- package/dist/charts/indicator-fade.d.ts +15 -0
- package/dist/charts/indicator-fade.js +42 -0
- package/dist/charts/legend/index.d.ts +8 -0
- package/dist/charts/legend/index.js +10 -0
- package/dist/charts/legend/legend-context.d.ts +48 -0
- package/dist/charts/legend/legend-context.js +34 -0
- package/dist/charts/legend/legend-item.d.ts +12 -0
- package/dist/charts/legend/legend-item.js +11 -0
- package/dist/charts/legend/legend-label.d.ts +9 -0
- package/dist/charts/legend/legend-label.js +10 -0
- package/dist/charts/legend/legend-marker.d.ts +9 -0
- package/dist/charts/legend/legend-marker.js +11 -0
- package/dist/charts/legend/legend-progress.d.ts +13 -0
- package/dist/charts/legend/legend-progress.js +15 -0
- package/dist/charts/legend/legend-value.d.ts +17 -0
- package/dist/charts/legend/legend-value.js +11 -0
- package/dist/charts/legend/legend.d.ts +23 -0
- package/dist/charts/legend/legend.js +43 -0
- package/dist/charts/line-chart-loading.d.ts +34 -0
- package/dist/charts/line-chart-loading.js +22 -0
- package/dist/charts/line-chart.d.ts +46 -0
- package/dist/charts/line-chart.js +91 -0
- package/dist/charts/line-loading-pulse.d.ts +20 -0
- package/dist/charts/line-loading-pulse.js +124 -0
- package/dist/charts/line-loading-timing.d.ts +10 -0
- package/dist/charts/line-loading-timing.js +10 -0
- package/dist/charts/line-series-terminal-marker.d.ts +16 -0
- package/dist/charts/line-series-terminal-marker.js +46 -0
- package/dist/charts/line.d.ts +64 -0
- package/dist/charts/line.js +96 -0
- package/dist/charts/live-line-chart.d.ts +35 -0
- package/dist/charts/live-line-chart.js +374 -0
- package/dist/charts/live-line.d.ts +39 -0
- package/dist/charts/live-line.js +78 -0
- package/dist/charts/live-x-axis.d.ts +12 -0
- package/dist/charts/live-x-axis.js +85 -0
- package/dist/charts/live-y-axis.d.ts +16 -0
- package/dist/charts/live-y-axis.js +137 -0
- package/dist/charts/loading-sweep.d.ts +66 -0
- package/dist/charts/loading-sweep.js +174 -0
- package/dist/charts/markers/chart-markers.d.ts +25 -0
- package/dist/charts/markers/chart-markers.js +87 -0
- package/dist/charts/markers/index.d.ts +3 -0
- package/dist/charts/markers/index.js +3 -0
- package/dist/charts/markers/marker-group.d.ts +88 -0
- package/dist/charts/markers/marker-group.js +171 -0
- package/dist/charts/motion-utils.d.ts +9 -0
- package/dist/charts/motion-utils.js +28 -0
- package/dist/charts/notch-gauge-shared.d.ts +49 -0
- package/dist/charts/notch-gauge-shared.js +103 -0
- package/dist/charts/path-stroke-utils.d.ts +20 -0
- package/dist/charts/path-stroke-utils.js +55 -0
- package/dist/charts/pattern-area.d.ts +21 -0
- package/dist/charts/pattern-area.js +19 -0
- package/dist/charts/pattern-preset.d.ts +26 -0
- package/dist/charts/pattern-preset.js +83 -0
- package/dist/charts/pie-center-shell.d.ts +24 -0
- package/dist/charts/pie-center-shell.js +109 -0
- package/dist/charts/pie-center.d.ts +46 -0
- package/dist/charts/pie-center.js +46 -0
- package/dist/charts/pie-chart.d.ts +50 -0
- package/dist/charts/pie-chart.js +248 -0
- package/dist/charts/pie-context.d.ts +74 -0
- package/dist/charts/pie-context.js +95 -0
- package/dist/charts/pie-slice.d.ts +28 -0
- package/dist/charts/pie-slice.js +180 -0
- package/dist/charts/profit-loss-legend-hover.d.ts +11 -0
- package/dist/charts/profit-loss-legend-hover.js +12 -0
- package/dist/charts/profit-loss-legend.d.ts +17 -0
- package/dist/charts/profit-loss-legend.js +18 -0
- package/dist/charts/profit-loss-line.d.ts +27 -0
- package/dist/charts/profit-loss-line.js +77 -0
- package/dist/charts/profit-loss-segments.d.ts +12 -0
- package/dist/charts/profit-loss-segments.js +86 -0
- package/dist/charts/projection-config.d.ts +11 -0
- package/dist/charts/projection-config.js +80 -0
- package/dist/charts/projection-line-end-marker.d.ts +15 -0
- package/dist/charts/projection-line-end-marker.js +27 -0
- package/dist/charts/projection-line.d.ts +40 -0
- package/dist/charts/projection-line.js +79 -0
- package/dist/charts/projection-utils.d.ts +46 -0
- package/dist/charts/projection-utils.js +253 -0
- package/dist/charts/radar-area.d.ts +17 -0
- package/dist/charts/radar-area.js +84 -0
- package/dist/charts/radar-axis.d.ts +14 -0
- package/dist/charts/radar-axis.js +24 -0
- package/dist/charts/radar-chart.d.ts +36 -0
- package/dist/charts/radar-chart.js +89 -0
- package/dist/charts/radar-context.d.ts +68 -0
- package/dist/charts/radar-context.js +87 -0
- package/dist/charts/radar-grid.d.ts +16 -0
- package/dist/charts/radar-grid.js +40 -0
- package/dist/charts/radar-labels.d.ts +16 -0
- package/dist/charts/radar-labels.js +29 -0
- package/dist/charts/reference-area-config.d.ts +10 -0
- package/dist/charts/reference-area-config.js +39 -0
- package/dist/charts/reference-area-geometry.d.ts +23 -0
- package/dist/charts/reference-area-geometry.js +68 -0
- package/dist/charts/reference-area-registration-context.d.ts +8 -0
- package/dist/charts/reference-area-registration-context.js +7 -0
- package/dist/charts/reference-area.d.ts +52 -0
- package/dist/charts/reference-area.js +101 -0
- package/dist/charts/ring-center.d.ts +46 -0
- package/dist/charts/ring-center.js +41 -0
- package/dist/charts/ring-chart.d.ts +41 -0
- package/dist/charts/ring-chart.js +212 -0
- package/dist/charts/ring-context.d.ts +66 -0
- package/dist/charts/ring-context.js +92 -0
- package/dist/charts/ring.d.ts +11 -0
- package/dist/charts/ring.js +104 -0
- package/dist/charts/sankey/index.d.ts +6 -0
- package/dist/charts/sankey/index.js +6 -0
- package/dist/charts/sankey/sankey-chart.d.ts +39 -0
- package/dist/charts/sankey/sankey-chart.js +117 -0
- package/dist/charts/sankey/sankey-context.d.ts +69 -0
- package/dist/charts/sankey/sankey-context.js +23 -0
- package/dist/charts/sankey/sankey-link.d.ts +26 -0
- package/dist/charts/sankey/sankey-link.js +155 -0
- package/dist/charts/sankey/sankey-node.d.ts +29 -0
- package/dist/charts/sankey/sankey-node.js +200 -0
- package/dist/charts/sankey/sankey-tooltip.d.ts +24 -0
- package/dist/charts/sankey/sankey-tooltip.js +70 -0
- package/dist/charts/scatter-chart-shell.d.ts +21 -0
- package/dist/charts/scatter-chart-shell.js +152 -0
- package/dist/charts/scatter-chart.d.ts +32 -0
- package/dist/charts/scatter-chart.js +56 -0
- package/dist/charts/scatter-svg.d.ts +6 -0
- package/dist/charts/scatter-svg.js +16 -0
- package/dist/charts/scatter.d.ts +21 -0
- package/dist/charts/scatter.js +30 -0
- package/dist/charts/segment.d.ts +26 -0
- package/dist/charts/segment.js +42 -0
- package/dist/charts/series-bar-layout.d.ts +18 -0
- package/dist/charts/series-bar-layout.js +31 -0
- package/dist/charts/series-bar.d.ts +20 -0
- package/dist/charts/series-bar.js +120 -0
- package/dist/charts/series-dash-tail-overlay.d.ts +17 -0
- package/dist/charts/series-dash-tail-overlay.js +39 -0
- package/dist/charts/series-highlight-layer.d.ts +23 -0
- package/dist/charts/series-highlight-layer.js +21 -0
- package/dist/charts/series-hover-dim.d.ts +29 -0
- package/dist/charts/series-hover-dim.js +26 -0
- package/dist/charts/series-markers.d.ts +14 -0
- package/dist/charts/series-markers.js +98 -0
- package/dist/charts/series-path-utils.d.ts +19 -0
- package/dist/charts/series-path-utils.js +60 -0
- package/dist/charts/series-point-marker.d.ts +48 -0
- package/dist/charts/series-point-marker.js +48 -0
- package/dist/charts/shimmering-text.d.ts +23 -0
- package/dist/charts/shimmering-text.js +31 -0
- package/dist/charts/static-chart-preview-context.d.ts +7 -0
- package/dist/charts/static-chart-preview-context.js +12 -0
- package/dist/charts/sunburst-breadcrumb.d.ts +16 -0
- package/dist/charts/sunburst-breadcrumb.js +26 -0
- package/dist/charts/sunburst-center.d.ts +5 -0
- package/dist/charts/sunburst-center.js +17 -0
- package/dist/charts/sunburst-chart.d.ts +30 -0
- package/dist/charts/sunburst-chart.js +263 -0
- package/dist/charts/sunburst-context.d.ts +61 -0
- package/dist/charts/sunburst-context.js +112 -0
- package/dist/charts/sunburst-data.d.ts +9 -0
- package/dist/charts/sunburst-data.js +2 -0
- package/dist/charts/sunburst-hint.d.ts +13 -0
- package/dist/charts/sunburst-hint.js +31 -0
- package/dist/charts/sunburst-labels.d.ts +9 -0
- package/dist/charts/sunburst-labels.js +63 -0
- package/dist/charts/sunburst-segment.d.ts +11 -0
- package/dist/charts/sunburst-segment.js +78 -0
- package/dist/charts/sunburst.d.ts +101 -0
- package/dist/charts/sunburst.js +396 -0
- package/dist/charts/time-series-chart-shell.d.ts +47 -0
- package/dist/charts/time-series-chart-shell.js +390 -0
- package/dist/charts/tooltip/chart-tooltip.d.ts +76 -0
- package/dist/charts/tooltip/chart-tooltip.js +150 -0
- package/dist/charts/tooltip/date-ticker.d.ts +11 -0
- package/dist/charts/tooltip/date-ticker.js +77 -0
- package/dist/charts/tooltip/index.d.ts +7 -0
- package/dist/charts/tooltip/index.js +7 -0
- package/dist/charts/tooltip/tooltip-box.d.ts +48 -0
- package/dist/charts/tooltip/tooltip-box.js +114 -0
- package/dist/charts/tooltip/tooltip-content.d.ts +18 -0
- package/dist/charts/tooltip/tooltip-content.js +9 -0
- package/dist/charts/tooltip/tooltip-dot.d.ts +28 -0
- package/dist/charts/tooltip/tooltip-dot.js +54 -0
- package/dist/charts/tooltip/tooltip-indicator.d.ts +45 -0
- package/dist/charts/tooltip/tooltip-indicator.js +65 -0
- package/dist/charts/use-animated-series-path.d.ts +19 -0
- package/dist/charts/use-animated-series-path.js +93 -0
- package/dist/charts/use-animated-y-domains.d.ts +14 -0
- package/dist/charts/use-animated-y-domains.js +150 -0
- package/dist/charts/use-chart-interaction.d.ts +41 -0
- package/dist/charts/use-chart-interaction.js +244 -0
- package/dist/charts/use-chart-phase-orchestrator.d.ts +23 -0
- package/dist/charts/use-chart-phase-orchestrator.js +139 -0
- package/dist/charts/use-enter-complete.d.ts +8 -0
- package/dist/charts/use-enter-complete.js +23 -0
- package/dist/charts/use-grid-shimmer.d.ts +16 -0
- package/dist/charts/use-grid-shimmer.js +63 -0
- package/dist/charts/use-highlight-segment.d.ts +14 -0
- package/dist/charts/use-highlight-segment.js +34 -0
- package/dist/charts/use-mount-progress.d.ts +4 -0
- package/dist/charts/use-mount-progress.js +22 -0
- package/dist/charts/use-scatter-chart-interaction.d.ts +35 -0
- package/dist/charts/use-scatter-chart-interaction.js +228 -0
- package/dist/charts/use-scheduled-tooltip.d.ts +9 -0
- package/dist/charts/use-scheduled-tooltip.js +76 -0
- package/dist/charts/visx-pattern.d.ts +19 -0
- package/dist/charts/visx-pattern.js +20 -0
- package/dist/charts/x-axis.d.ts +27 -0
- package/dist/charts/x-axis.js +415 -0
- package/dist/charts/y-axis-scales.d.ts +26 -0
- package/dist/charts/y-axis-scales.js +72 -0
- package/dist/charts/y-axis-ticks.d.ts +12 -0
- package/dist/charts/y-axis-ticks.js +24 -0
- package/dist/charts/y-axis.d.ts +22 -0
- package/dist/charts/y-axis.js +80 -0
- package/dist/charts/y-domain-utils.d.ts +27 -0
- package/dist/charts/y-domain-utils.js +88 -0
- package/dist/components/accordion.d.ts +6 -0
- package/dist/components/accordion.js +20 -0
- package/dist/components/alert-dialog.d.ts +18 -0
- package/dist/components/alert-dialog.js +41 -0
- package/dist/components/alert.d.ts +24 -0
- package/dist/components/alert.js +46 -0
- package/dist/components/animated-button.d.ts +5 -0
- package/dist/components/animated-button.js +16 -0
- package/dist/components/animated-list.d.ts +26 -0
- package/dist/components/animated-list.js +25 -0
- package/dist/components/animated-number.d.ts +67 -0
- package/dist/components/animated-number.js +131 -0
- package/dist/components/app-shell.d.ts +27 -0
- package/dist/components/app-shell.js +18 -0
- package/dist/components/area-chart.d.ts +11 -0
- package/dist/components/area-chart.js +12 -0
- package/dist/components/aspect-ratio.d.ts +16 -0
- package/dist/components/aspect-ratio.js +14 -0
- package/dist/components/aurora-background.d.ts +3 -0
- package/dist/components/aurora-background.js +8 -0
- package/dist/components/autocomplete.d.ts +55 -0
- package/dist/components/autocomplete.js +279 -0
- package/dist/components/avatar-group.d.ts +39 -0
- package/dist/components/avatar-group.js +50 -0
- package/dist/components/avatar.d.ts +5 -0
- package/dist/components/avatar.js +17 -0
- package/dist/components/badge.d.ts +10 -0
- package/dist/components/badge.js +35 -0
- package/dist/components/banner.d.ts +45 -0
- package/dist/components/banner.js +80 -0
- package/dist/components/bar-chart.d.ts +11 -0
- package/dist/components/bar-chart.js +9 -0
- package/dist/components/border-beam.d.ts +45 -0
- package/dist/components/border-beam.js +48 -0
- package/dist/components/breadcrumb.d.ts +12 -0
- package/dist/components/breadcrumb.js +35 -0
- package/dist/components/button-group.d.ts +7 -0
- package/dist/components/button-group.js +10 -0
- package/dist/components/button.d.ts +12 -0
- package/dist/components/button.js +39 -0
- package/dist/components/calendar.d.ts +7 -0
- package/dist/components/calendar.js +71 -0
- package/dist/components/candlestick-chart.d.ts +13 -0
- package/dist/components/candlestick-chart.js +66 -0
- package/dist/components/card-stack.d.ts +28 -0
- package/dist/components/card-stack.js +47 -0
- package/dist/components/card.d.ts +9 -0
- package/dist/components/card.js +32 -0
- package/dist/components/carousel.d.ts +82 -0
- package/dist/components/carousel.js +310 -0
- package/dist/components/chart.d.ts +100 -0
- package/dist/components/chart.js +210 -0
- package/dist/components/checkbox.d.ts +3 -0
- package/dist/components/checkbox.js +11 -0
- package/dist/components/chip.d.ts +80 -0
- package/dist/components/chip.js +186 -0
- package/dist/components/choropleth-chart.d.ts +12 -0
- package/dist/components/choropleth-chart.js +31 -0
- package/dist/components/click-spark.d.ts +19 -0
- package/dist/components/click-spark.js +51 -0
- package/dist/components/code-block.d.ts +13 -0
- package/dist/components/code-block.js +20 -0
- package/dist/components/code-tabs.d.ts +51 -0
- package/dist/components/code-tabs.js +150 -0
- package/dist/components/collapsible.d.ts +5 -0
- package/dist/components/collapsible.js +12 -0
- package/dist/components/color-picker.d.ts +30 -0
- package/dist/components/color-picker.js +300 -0
- package/dist/components/combobox.d.ts +33 -0
- package/dist/components/combobox.js +32 -0
- package/dist/components/command.d.ts +87 -0
- package/dist/components/command.js +44 -0
- package/dist/components/comparison-slider.d.ts +17 -0
- package/dist/components/comparison-slider.js +81 -0
- package/dist/components/composed-chart.d.ts +13 -0
- package/dist/components/composed-chart.js +22 -0
- package/dist/components/confetti.d.ts +21 -0
- package/dist/components/confetti.js +111 -0
- package/dist/components/confirmation-dialog.d.ts +46 -0
- package/dist/components/confirmation-dialog.js +102 -0
- package/dist/components/context-menu.d.ts +28 -0
- package/dist/components/context-menu.js +52 -0
- package/dist/components/copy-button.d.ts +13 -0
- package/dist/components/copy-button.js +72 -0
- package/dist/components/countdown.d.ts +58 -0
- package/dist/components/countdown.js +106 -0
- package/dist/components/credit-card-input.d.ts +62 -0
- package/dist/components/credit-card-input.js +211 -0
- package/dist/components/currency-input.d.ts +86 -0
- package/dist/components/currency-input.js +215 -0
- package/dist/components/data-table.d.ts +232 -0
- package/dist/components/data-table.js +359 -0
- package/dist/components/date-picker.d.ts +66 -0
- package/dist/components/date-picker.js +55 -0
- package/dist/components/date-range-picker.d.ts +59 -0
- package/dist/components/date-range-picker.js +59 -0
- package/dist/components/description-list.d.ts +84 -0
- package/dist/components/description-list.js +138 -0
- package/dist/components/dialog.d.ts +26 -0
- package/dist/components/dialog.js +35 -0
- package/dist/components/dock.d.ts +34 -0
- package/dist/components/dock.js +61 -0
- package/dist/components/dot-pattern.d.ts +24 -0
- package/dist/components/dot-pattern.js +19 -0
- package/dist/components/drawer.d.ts +22 -0
- package/dist/components/drawer.js +37 -0
- package/dist/components/dropdown-menu.d.ts +32 -0
- package/dist/components/dropdown-menu.js +56 -0
- package/dist/components/dynamic-island.d.ts +26 -0
- package/dist/components/dynamic-island.js +31 -0
- package/dist/components/empty.d.ts +7 -0
- package/dist/components/empty.js +24 -0
- package/dist/components/expandable-tabs.d.ts +24 -0
- package/dist/components/expandable-tabs.js +30 -0
- package/dist/components/fab.d.ts +35 -0
- package/dist/components/fab.js +36 -0
- package/dist/components/field.d.ts +6 -0
- package/dist/components/field.js +22 -0
- package/dist/components/file-dropzone.d.ts +28 -0
- package/dist/components/file-dropzone.js +59 -0
- package/dist/components/flickering-grid.d.ts +25 -0
- package/dist/components/flickering-grid.js +30 -0
- package/dist/components/flip-card.d.ts +70 -0
- package/dist/components/flip-card.js +117 -0
- package/dist/components/floating-label-input.d.ts +34 -0
- package/dist/components/floating-label-input.js +25 -0
- package/dist/components/form.d.ts +25 -0
- package/dist/components/form.js +68 -0
- package/dist/components/frame.d.ts +12 -0
- package/dist/components/frame.js +10 -0
- package/dist/components/funnel-chart.d.ts +11 -0
- package/dist/components/funnel-chart.js +16 -0
- package/dist/components/gauge-chart.d.ts +8 -0
- package/dist/components/gauge-chart.js +10 -0
- package/dist/components/glare-hover.d.ts +15 -0
- package/dist/components/glare-hover.js +64 -0
- package/dist/components/glass-card.d.ts +3 -0
- package/dist/components/glass-card.js +8 -0
- package/dist/components/gradient-border.d.ts +7 -0
- package/dist/components/gradient-border.js +8 -0
- package/dist/components/gradient-text.d.ts +6 -0
- package/dist/components/gradient-text.js +10 -0
- package/dist/components/grid-pattern.d.ts +23 -0
- package/dist/components/grid-pattern.js +18 -0
- package/dist/components/heatmap-chart.d.ts +6 -0
- package/dist/components/heatmap-chart.js +8 -0
- package/dist/components/heatmap.d.ts +28 -0
- package/dist/components/heatmap.js +41 -0
- package/dist/components/highlighter.d.ts +20 -0
- package/dist/components/highlighter.js +19 -0
- package/dist/components/hover-card.d.ts +5 -0
- package/dist/components/hover-card.js +12 -0
- package/dist/components/image-zoom.d.ts +47 -0
- package/dist/components/image-zoom.js +125 -0
- package/dist/components/input-group.d.ts +10 -0
- package/dist/components/input-group.js +12 -0
- package/dist/components/input-otp.d.ts +18 -0
- package/dist/components/input-otp.js +38 -0
- package/dist/components/input.d.ts +6 -0
- package/dist/components/input.js +8 -0
- package/dist/components/json-viewer.d.ts +43 -0
- package/dist/components/json-viewer.js +313 -0
- package/dist/components/kanban.d.ts +31 -0
- package/dist/components/kanban.js +143 -0
- package/dist/components/kbd.d.ts +3 -0
- package/dist/components/kbd.js +8 -0
- package/dist/components/label.d.ts +3 -0
- package/dist/components/label.js +9 -0
- package/dist/components/light-rays.d.ts +19 -0
- package/dist/components/light-rays.js +20 -0
- package/dist/components/lightbox.d.ts +24 -0
- package/dist/components/lightbox.js +68 -0
- package/dist/components/line-chart.d.ts +10 -0
- package/dist/components/line-chart.js +9 -0
- package/dist/components/live-line-chart.d.ts +12 -0
- package/dist/components/live-line-chart.js +42 -0
- package/dist/components/logo-carousel.d.ts +27 -0
- package/dist/components/logo-carousel.js +101 -0
- package/dist/components/magnetic.d.ts +44 -0
- package/dist/components/magnetic.js +172 -0
- package/dist/components/marquee.d.ts +71 -0
- package/dist/components/marquee.js +141 -0
- package/dist/components/masonry.d.ts +16 -0
- package/dist/components/masonry.js +84 -0
- package/dist/components/menubar.d.ts +33 -0
- package/dist/components/menubar.js +56 -0
- package/dist/components/meteors.d.ts +20 -0
- package/dist/components/meteors.js +39 -0
- package/dist/components/metric.d.ts +9 -0
- package/dist/components/metric.js +35 -0
- package/dist/components/mode-toggle.d.ts +32 -0
- package/dist/components/mode-toggle.js +40 -0
- package/dist/components/morphing-popover.d.ts +91 -0
- package/dist/components/morphing-popover.js +194 -0
- package/dist/components/motion-presets.d.ts +9 -0
- package/dist/components/motion-presets.js +20 -0
- package/dist/components/multi-select.d.ts +54 -0
- package/dist/components/multi-select.js +0 -0
- package/dist/components/navigation-menu.d.ts +12 -0
- package/dist/components/navigation-menu.js +42 -0
- package/dist/components/noise.d.ts +19 -0
- package/dist/components/noise.js +18 -0
- package/dist/components/notification-center.d.ts +68 -0
- package/dist/components/notification-center.js +57 -0
- package/dist/components/number-input.d.ts +45 -0
- package/dist/components/number-input.js +148 -0
- package/dist/components/orbit.d.ts +77 -0
- package/dist/components/orbit.js +100 -0
- package/dist/components/pagination.d.ts +16 -0
- package/dist/components/pagination.js +34 -0
- package/dist/components/particles.d.ts +18 -0
- package/dist/components/particles.js +92 -0
- package/dist/components/password-input.d.ts +16 -0
- package/dist/components/password-input.js +49 -0
- package/dist/components/phone-input.d.ts +67 -0
- package/dist/components/phone-input.js +225 -0
- package/dist/components/pie-chart.d.ts +12 -0
- package/dist/components/pie-chart.js +13 -0
- package/dist/components/pill-nav.d.ts +25 -0
- package/dist/components/pill-nav.js +66 -0
- package/dist/components/popover.d.ts +7 -0
- package/dist/components/popover.js +15 -0
- package/dist/components/profit-loss-chart.d.ts +10 -0
- package/dist/components/profit-loss-chart.js +8 -0
- package/dist/components/progress.d.ts +10 -0
- package/dist/components/progress.js +17 -0
- package/dist/components/progressive-blur.d.ts +24 -0
- package/dist/components/progressive-blur.js +43 -0
- package/dist/components/radar-chart.d.ts +9 -0
- package/dist/components/radar-chart.js +9 -0
- package/dist/components/radio-group.d.ts +4 -0
- package/dist/components/radio-group.js +15 -0
- package/dist/components/rating.d.ts +29 -0
- package/dist/components/rating.js +94 -0
- package/dist/components/resizable.d.ts +57 -0
- package/dist/components/resizable.js +73 -0
- package/dist/components/retro-grid.d.ts +25 -0
- package/dist/components/retro-grid.js +26 -0
- package/dist/components/reveal.d.ts +9 -0
- package/dist/components/reveal.js +14 -0
- package/dist/components/rich-text-editor.d.ts +28 -0
- package/dist/components/rich-text-editor.js +83 -0
- package/dist/components/ring-chart.d.ts +13 -0
- package/dist/components/ring-chart.js +16 -0
- package/dist/components/ripple.d.ts +25 -0
- package/dist/components/ripple.js +26 -0
- package/dist/components/sankey-chart.d.ts +16 -0
- package/dist/components/sankey-chart.js +8 -0
- package/dist/components/scatter-chart.d.ts +12 -0
- package/dist/components/scatter-chart.js +9 -0
- package/dist/components/scheduler.d.ts +50 -0
- package/dist/components/scheduler.js +93 -0
- package/dist/components/scramble-text.d.ts +39 -0
- package/dist/components/scramble-text.js +78 -0
- package/dist/components/scroll-area.d.ts +13 -0
- package/dist/components/scroll-area.js +14 -0
- package/dist/components/scroll-progress.d.ts +19 -0
- package/dist/components/scroll-progress.js +67 -0
- package/dist/components/segmented-control.d.ts +48 -0
- package/dist/components/segmented-control.js +222 -0
- package/dist/components/select.d.ts +12 -0
- package/dist/components/select.js +43 -0
- package/dist/components/separator.d.ts +3 -0
- package/dist/components/separator.js +9 -0
- package/dist/components/sheet.d.ts +25 -0
- package/dist/components/sheet.js +47 -0
- package/dist/components/shimmer.d.ts +3 -0
- package/dist/components/shimmer.js +8 -0
- package/dist/components/shiny-text.d.ts +20 -0
- package/dist/components/shiny-text.js +24 -0
- package/dist/components/sidebar.d.ts +92 -0
- package/dist/components/sidebar.js +290 -0
- package/dist/components/signature-pad.d.ts +44 -0
- package/dist/components/signature-pad.js +317 -0
- package/dist/components/skeleton.d.ts +3 -0
- package/dist/components/skeleton.js +8 -0
- package/dist/components/slider.d.ts +10 -0
- package/dist/components/slider.js +27 -0
- package/dist/components/sonner.d.ts +9 -0
- package/dist/components/sonner.js +17 -0
- package/dist/components/sparkles-text.d.ts +19 -0
- package/dist/components/sparkles-text.js +36 -0
- package/dist/components/sparkline.d.ts +22 -0
- package/dist/components/sparkline.js +100 -0
- package/dist/components/spinner.d.ts +10 -0
- package/dist/components/spinner.js +20 -0
- package/dist/components/spinning-text.d.ts +29 -0
- package/dist/components/spinning-text.js +40 -0
- package/dist/components/split-button.d.ts +71 -0
- package/dist/components/split-button.js +30 -0
- package/dist/components/spotlight-card.d.ts +11 -0
- package/dist/components/spotlight-card.js +63 -0
- package/dist/components/star-border.d.ts +19 -0
- package/dist/components/star-border.js +18 -0
- package/dist/components/status-dot.d.ts +60 -0
- package/dist/components/status-dot.js +76 -0
- package/dist/components/stepper.d.ts +98 -0
- package/dist/components/stepper.js +164 -0
- package/dist/components/sunburst-chart.d.ts +11 -0
- package/dist/components/sunburst-chart.js +45 -0
- package/dist/components/switch.d.ts +3 -0
- package/dist/components/switch.js +10 -0
- package/dist/components/table-of-contents.d.ts +64 -0
- package/dist/components/table-of-contents.js +0 -0
- package/dist/components/table.d.ts +10 -0
- package/dist/components/table.js +38 -0
- package/dist/components/tabs.d.ts +6 -0
- package/dist/components/tabs.js +22 -0
- package/dist/components/tags-input.d.ts +39 -0
- package/dist/components/tags-input.js +86 -0
- package/dist/components/terminal.d.ts +86 -0
- package/dist/components/terminal.js +182 -0
- package/dist/components/text-effect.d.ts +71 -0
- package/dist/components/text-effect.js +166 -0
- package/dist/components/textarea.d.ts +6 -0
- package/dist/components/textarea.js +8 -0
- package/dist/components/tilt-card.d.ts +30 -0
- package/dist/components/tilt-card.js +84 -0
- package/dist/components/time-picker.d.ts +58 -0
- package/dist/components/time-picker.js +245 -0
- package/dist/components/timeline.d.ts +81 -0
- package/dist/components/timeline.js +165 -0
- package/dist/components/toggle-group.d.ts +12 -0
- package/dist/components/toggle-group.js +23 -0
- package/dist/components/toggle.d.ts +12 -0
- package/dist/components/toggle.js +25 -0
- package/dist/components/toolbar.d.ts +14 -0
- package/dist/components/toolbar.js +89 -0
- package/dist/components/tooltip.d.ts +29 -0
- package/dist/components/tooltip.js +48 -0
- package/dist/components/tree-view.d.ts +45 -0
- package/dist/components/tree-view.js +197 -0
- package/dist/components/typing-text.d.ts +49 -0
- package/dist/components/typing-text.js +90 -0
- package/dist/components/usage-meter.d.ts +30 -0
- package/dist/components/usage-meter.js +90 -0
- package/dist/components/video-player.d.ts +48 -0
- package/dist/components/video-player.js +216 -0
- package/dist/components/word-rotate.d.ts +40 -0
- package/dist/components/word-rotate.js +34 -0
- package/dist/index.d.ts +306 -0
- package/dist/index.js +179 -0
- package/dist/lib/cn.d.ts +7 -0
- package/dist/lib/cn.js +10 -0
- package/dist/lib/demo-saas.d.ts +171 -0
- package/dist/lib/demo-saas.js +210 -0
- package/dist/lib/demo-store.d.ts +157 -0
- package/dist/lib/demo-store.js +353 -0
- package/dist/testing/index.d.ts +76 -0
- package/dist/testing/index.js +116 -0
- package/package.json +941 -0
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { cva } from "class-variance-authority";
|
|
4
|
+
import { Maximize, Minimize, Pause, Play, Volume2, VolumeX } from "lucide-react";
|
|
5
|
+
import { forwardRef, useCallback, useEffect, useLayoutEffect, useRef, useState, } from "react";
|
|
6
|
+
import { cn } from "../lib/cn.js";
|
|
7
|
+
const videoPlayerVariants = cva("group/video-player relative isolate w-full overflow-hidden rounded-xl border border-border bg-surface-inset", {
|
|
8
|
+
variants: {
|
|
9
|
+
aspect: {
|
|
10
|
+
video: "aspect-video",
|
|
11
|
+
square: "aspect-square",
|
|
12
|
+
wide: "aspect-[21/9]",
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
defaultVariants: { aspect: "video" },
|
|
16
|
+
});
|
|
17
|
+
/** Playback speeds the settings button cycles through, in order. */
|
|
18
|
+
const PLAYBACK_RATES = [1, 1.25, 1.5, 2];
|
|
19
|
+
const DEFAULT_LABELS = {
|
|
20
|
+
play: "Play",
|
|
21
|
+
pause: "Pause",
|
|
22
|
+
mute: "Mute",
|
|
23
|
+
unmute: "Unmute",
|
|
24
|
+
seek: "Seek",
|
|
25
|
+
volume: "Volume",
|
|
26
|
+
settings: "Playback speed",
|
|
27
|
+
fullscreen: "Fullscreen",
|
|
28
|
+
exitFullscreen: "Exit fullscreen",
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Formats seconds as `m:ss`, or `h:mm:ss` from one hour up; NaN, Infinity, and
|
|
32
|
+
* negatives collapse to `0:00`.
|
|
33
|
+
*/
|
|
34
|
+
function formatTime(totalSeconds) {
|
|
35
|
+
if (!Number.isFinite(totalSeconds) || totalSeconds <= 0)
|
|
36
|
+
return "0:00";
|
|
37
|
+
const whole = Math.floor(totalSeconds);
|
|
38
|
+
const hours = Math.floor(whole / 3600);
|
|
39
|
+
const minutes = Math.floor((whole % 3600) / 60);
|
|
40
|
+
const seconds = String(whole % 60).padStart(2, "0");
|
|
41
|
+
if (hours > 0)
|
|
42
|
+
return `${hours}:${String(minutes).padStart(2, "0")}:${seconds}`;
|
|
43
|
+
return `${minutes}:${seconds}`;
|
|
44
|
+
}
|
|
45
|
+
const controlButtonClasses = "inline-flex size-8 shrink-0 items-center justify-center rounded-md text-fg transition-colors duration-150 hover:bg-surface-overlay outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-surface-base disabled:pointer-events-none disabled:opacity-50 [&_svg]:size-4 [&_svg]:shrink-0";
|
|
46
|
+
const rangeClasses = "h-1 cursor-pointer appearance-none rounded-full bg-border accent-primary outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-surface-base disabled:pointer-events-none disabled:opacity-50 [&::-moz-range-thumb]:size-3 [&::-moz-range-thumb]:rounded-full [&::-moz-range-thumb]:border-0 [&::-moz-range-thumb]:bg-primary [&::-webkit-slider-thumb]:size-3 [&::-webkit-slider-thumb]:appearance-none [&::-webkit-slider-thumb]:rounded-full [&::-webkit-slider-thumb]:bg-primary";
|
|
47
|
+
export const VideoPlayer = forwardRef(({ src, poster, autoPlay = false, loop = false, muted = false, aspect = "video", labels, videoRef, children, className, ...props }, ref) => {
|
|
48
|
+
const containerRef = useRef(null);
|
|
49
|
+
const videoElementRef = useRef(null);
|
|
50
|
+
const overlayPlayRef = useRef(null);
|
|
51
|
+
const playToggleRef = useRef(null);
|
|
52
|
+
// Whether the overlay play button owned focus when playback started — set
|
|
53
|
+
// before the state flip that unmounts it, consumed by the focus hand-off
|
|
54
|
+
// effect below.
|
|
55
|
+
const overlayOwnedFocusRef = useRef(false);
|
|
56
|
+
// Last audible slider volume, so unmuting from a zeroed slider restores it.
|
|
57
|
+
const lastAudibleVolumeRef = useRef(1);
|
|
58
|
+
const [isPlaying, setIsPlaying] = useState(false);
|
|
59
|
+
const [currentTime, setCurrentTime] = useState(0);
|
|
60
|
+
const [duration, setDuration] = useState(0);
|
|
61
|
+
const [volume, setVolume] = useState(1);
|
|
62
|
+
const [isMuted, setIsMuted] = useState(muted);
|
|
63
|
+
const [rateIndex, setRateIndex] = useState(0);
|
|
64
|
+
const [isFullscreen, setIsFullscreen] = useState(false);
|
|
65
|
+
const mergedLabels = { ...DEFAULT_LABELS, ...labels };
|
|
66
|
+
const playbackRate = PLAYBACK_RATES[rateIndex] ?? 1;
|
|
67
|
+
// While muted the slider reads 0 so unmuting restores the remembered volume.
|
|
68
|
+
const displayedVolume = isMuted ? 0 : volume;
|
|
69
|
+
// Keep the internal ref and the consumer-facing `videoRef` pointing at the
|
|
70
|
+
// same node without nesting `useImperativeHandle` indirection.
|
|
71
|
+
const setVideoNode = useCallback((node) => {
|
|
72
|
+
videoElementRef.current = node;
|
|
73
|
+
if (typeof videoRef === "function") {
|
|
74
|
+
videoRef(node);
|
|
75
|
+
}
|
|
76
|
+
else if (videoRef) {
|
|
77
|
+
videoRef.current = node;
|
|
78
|
+
}
|
|
79
|
+
}, [videoRef]);
|
|
80
|
+
const togglePlay = useCallback(() => {
|
|
81
|
+
const video = videoElementRef.current;
|
|
82
|
+
if (!video)
|
|
83
|
+
return;
|
|
84
|
+
if (video.paused || video.ended) {
|
|
85
|
+
// Older engines return undefined instead of a promise; autoplay/gesture
|
|
86
|
+
// policies can reject — the media `pause` event keeps the UI truthful.
|
|
87
|
+
const result = video.play();
|
|
88
|
+
void result?.catch(() => { });
|
|
89
|
+
}
|
|
90
|
+
else {
|
|
91
|
+
video.pause();
|
|
92
|
+
}
|
|
93
|
+
}, []);
|
|
94
|
+
const toggleMute = useCallback(() => {
|
|
95
|
+
const video = videoElementRef.current;
|
|
96
|
+
if (!video)
|
|
97
|
+
return;
|
|
98
|
+
video.muted = !video.muted;
|
|
99
|
+
// Unmuting while the volume sits at 0 would be an audio no-op with the
|
|
100
|
+
// icon stuck on VolumeX — restore the last audible volume instead.
|
|
101
|
+
if (!video.muted && video.volume === 0) {
|
|
102
|
+
const restored = lastAudibleVolumeRef.current > 0 ? lastAudibleVolumeRef.current : 1;
|
|
103
|
+
video.volume = restored;
|
|
104
|
+
setVolume(restored);
|
|
105
|
+
}
|
|
106
|
+
// Browsers also fire `volumechange`; setting state here keeps the toggle
|
|
107
|
+
// responsive even when the element swallows the event.
|
|
108
|
+
setIsMuted(video.muted);
|
|
109
|
+
}, []);
|
|
110
|
+
const cyclePlaybackRate = () => {
|
|
111
|
+
const nextIndex = (rateIndex + 1) % PLAYBACK_RATES.length;
|
|
112
|
+
setRateIndex(nextIndex);
|
|
113
|
+
const video = videoElementRef.current;
|
|
114
|
+
if (video)
|
|
115
|
+
video.playbackRate = PLAYBACK_RATES[nextIndex] ?? 1;
|
|
116
|
+
};
|
|
117
|
+
const handleSeek = (event) => {
|
|
118
|
+
const next = Number(event.target.value);
|
|
119
|
+
if (Number.isNaN(next))
|
|
120
|
+
return;
|
|
121
|
+
setCurrentTime(next);
|
|
122
|
+
const video = videoElementRef.current;
|
|
123
|
+
if (video)
|
|
124
|
+
video.currentTime = next;
|
|
125
|
+
};
|
|
126
|
+
const handleVolumeInput = (event) => {
|
|
127
|
+
const next = Number(event.target.value);
|
|
128
|
+
if (Number.isNaN(next))
|
|
129
|
+
return;
|
|
130
|
+
const clamped = Math.min(1, Math.max(0, next));
|
|
131
|
+
if (clamped > 0)
|
|
132
|
+
lastAudibleVolumeRef.current = clamped;
|
|
133
|
+
setVolume(clamped);
|
|
134
|
+
setIsMuted(clamped === 0);
|
|
135
|
+
const video = videoElementRef.current;
|
|
136
|
+
if (video) {
|
|
137
|
+
video.volume = clamped;
|
|
138
|
+
video.muted = clamped === 0;
|
|
139
|
+
}
|
|
140
|
+
};
|
|
141
|
+
const handleTimeUpdate = (event) => {
|
|
142
|
+
setCurrentTime(event.currentTarget.currentTime);
|
|
143
|
+
};
|
|
144
|
+
const handleLoadedMetadata = (event) => {
|
|
145
|
+
const nextDuration = event.currentTarget.duration;
|
|
146
|
+
// Live streams and not-yet-loaded media report NaN/Infinity — keep 0:00.
|
|
147
|
+
setDuration(Number.isFinite(nextDuration) ? nextDuration : 0);
|
|
148
|
+
};
|
|
149
|
+
const handleVolumeChange = (event) => {
|
|
150
|
+
const { muted: nextMuted, volume: nextVolume } = event.currentTarget;
|
|
151
|
+
if (nextVolume > 0)
|
|
152
|
+
lastAudibleVolumeRef.current = nextVolume;
|
|
153
|
+
setIsMuted(nextMuted);
|
|
154
|
+
setVolume(nextVolume);
|
|
155
|
+
};
|
|
156
|
+
const handlePlay = () => {
|
|
157
|
+
// Playing unmounts the overlay play button; remember whether it owned
|
|
158
|
+
// focus so the hand-off effect can move focus instead of dropping it.
|
|
159
|
+
overlayOwnedFocusRef.current =
|
|
160
|
+
overlayPlayRef.current !== null && document.activeElement === overlayPlayRef.current;
|
|
161
|
+
setIsPlaying(true);
|
|
162
|
+
};
|
|
163
|
+
// Focus hand-off: when the focused overlay unmounts on paused→playing,
|
|
164
|
+
// land focus on the control-bar play/pause toggle (which also keeps the
|
|
165
|
+
// control bar revealed via group-focus-within) instead of <body>.
|
|
166
|
+
useLayoutEffect(() => {
|
|
167
|
+
if (isPlaying && overlayOwnedFocusRef.current) {
|
|
168
|
+
overlayOwnedFocusRef.current = false;
|
|
169
|
+
playToggleRef.current?.focus();
|
|
170
|
+
}
|
|
171
|
+
}, [isPlaying]);
|
|
172
|
+
// Track fullscreen membership so the button is a true toggle. `Esc` and
|
|
173
|
+
// browser chrome also exit fullscreen, so state must follow the document.
|
|
174
|
+
useEffect(() => {
|
|
175
|
+
if (typeof document === "undefined")
|
|
176
|
+
return;
|
|
177
|
+
const syncFullscreen = () => {
|
|
178
|
+
setIsFullscreen(containerRef.current !== null && document.fullscreenElement === containerRef.current);
|
|
179
|
+
};
|
|
180
|
+
document.addEventListener("fullscreenchange", syncFullscreen);
|
|
181
|
+
return () => document.removeEventListener("fullscreenchange", syncFullscreen);
|
|
182
|
+
}, []);
|
|
183
|
+
const handleFullscreen = () => {
|
|
184
|
+
const container = containerRef.current;
|
|
185
|
+
if (!container)
|
|
186
|
+
return;
|
|
187
|
+
if (document.fullscreenElement === container) {
|
|
188
|
+
if (typeof document.exitFullscreen !== "function")
|
|
189
|
+
return;
|
|
190
|
+
// Older engines return undefined instead of a promise.
|
|
191
|
+
const result = document.exitFullscreen();
|
|
192
|
+
void result?.catch(() => { });
|
|
193
|
+
return;
|
|
194
|
+
}
|
|
195
|
+
if (typeof container.requestFullscreen !== "function")
|
|
196
|
+
return;
|
|
197
|
+
const result = container.requestFullscreen();
|
|
198
|
+
void result?.catch(() => { });
|
|
199
|
+
};
|
|
200
|
+
return (_jsxs("div", { ref: (node) => {
|
|
201
|
+
containerRef.current = node;
|
|
202
|
+
if (typeof ref === "function") {
|
|
203
|
+
ref(node);
|
|
204
|
+
}
|
|
205
|
+
else if (ref) {
|
|
206
|
+
ref.current = node;
|
|
207
|
+
}
|
|
208
|
+
}, "data-slot": "video-player", className: cn(videoPlayerVariants({ aspect }), className), ...props, children: [_jsx("video", { ref: setVideoNode, "data-slot": "video-player-video", className: "absolute inset-0 size-full object-contain", src: src, poster: poster, autoPlay: autoPlay, loop: loop, muted: muted, playsInline: true, preload: "metadata", onPlay: handlePlay, onPause: () => setIsPlaying(false), onEnded: () => setIsPlaying(false), onTimeUpdate: handleTimeUpdate, onLoadedMetadata: handleLoadedMetadata, onVolumeChange: handleVolumeChange, children: children }), !isPlaying ? (_jsx("button", { ref: overlayPlayRef, type: "button", "data-slot": "video-player-overlay-play", "aria-label": mergedLabels.play, onClick: togglePlay, className: "absolute inset-0 z-10 m-auto flex size-14 items-center justify-center rounded-full border border-border bg-surface-base/85 text-fg shadow-md backdrop-blur-sm transition-transform duration-150 outline-none hover:scale-105 focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-surface-base [&_svg]:size-6", children: _jsx(Play, { "aria-hidden": "true" }) })) : null, _jsxs("div", { "data-slot": "video-player-controls", className: cn("absolute inset-x-0 bottom-0 z-20 flex items-center gap-1.5 border-t border-border bg-surface-base/90 px-2.5 py-2 backdrop-blur-sm",
|
|
209
|
+
// Hidden controls are also pointer-inert so a first tap on a touch
|
|
210
|
+
// device reveals the bar instead of activating an invisible button;
|
|
211
|
+
// hover/focus-within re-enable pointers alongside the reveal.
|
|
212
|
+
"pointer-events-none opacity-0 transition-opacity duration-200", "group-focus-within/video-player:pointer-events-auto group-focus-within/video-player:opacity-100", "group-hover/video-player:pointer-events-auto group-hover/video-player:opacity-100", !isPlaying && "pointer-events-auto opacity-100"), children: [_jsx("button", { ref: playToggleRef, type: "button", "data-slot": "video-player-play", "aria-label": isPlaying ? mergedLabels.pause : mergedLabels.play, onClick: togglePlay, className: controlButtonClasses, children: isPlaying ? _jsx(Pause, { "aria-hidden": "true" }) : _jsx(Play, { "aria-hidden": "true" }) }), _jsxs("span", { dir: "ltr", "data-slot": "video-player-time", className: "shrink-0 px-1 text-xs tabular-nums text-fg-secondary", children: [formatTime(currentTime), " / ", formatTime(duration)] }), _jsx("input", { type: "range", "data-slot": "video-player-seek", "aria-label": mergedLabels.seek, "aria-valuetext": `${formatTime(currentTime)} / ${formatTime(duration)}`, min: 0, max: duration > 0 ? duration : 0, step: 0.1, value: currentTime, onChange: handleSeek, className: cn(rangeClasses, "min-w-0 flex-1") }), _jsxs("button", { type: "button", "data-slot": "video-player-rate", "aria-label": `${mergedLabels.settings}, ${playbackRate}x`, onClick: cyclePlaybackRate, className: cn(controlButtonClasses, "w-auto min-w-8 px-1.5 text-xs font-semibold tabular-nums"), children: [playbackRate, "x"] }), _jsx("button", { type: "button", "data-slot": "video-player-mute", "aria-label": isMuted ? mergedLabels.unmute : mergedLabels.mute, onClick: toggleMute, className: controlButtonClasses, children: isMuted || volume === 0 ? (_jsx(VolumeX, { "aria-hidden": "true" })) : (_jsx(Volume2, { "aria-hidden": "true" })) }), _jsx("input", { type: "range", "data-slot": "video-player-volume", "aria-label": mergedLabels.volume, min: 0, max: 1, step: 0.05, value: displayedVolume, onChange: handleVolumeInput, className: cn(rangeClasses, "w-16 shrink-0 max-sm:hidden") }), _jsx("button", { type: "button", "data-slot": "video-player-fullscreen", "aria-label": isFullscreen ? mergedLabels.exitFullscreen : mergedLabels.fullscreen, onClick: handleFullscreen, className: controlButtonClasses, children: isFullscreen ? _jsx(Minimize, { "aria-hidden": "true" }) : _jsx(Maximize, { "aria-hidden": "true" }) })] })] }));
|
|
213
|
+
});
|
|
214
|
+
VideoPlayer.displayName = "VideoPlayer";
|
|
215
|
+
export { videoPlayerVariants };
|
|
216
|
+
//# sourceMappingURL=video-player.js.map
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { type HTMLAttributes, type Ref } from "react";
|
|
2
|
+
export interface WordRotateProps extends Omit<HTMLAttributes<HTMLSpanElement>, "children"> {
|
|
3
|
+
ref?: Ref<HTMLSpanElement>;
|
|
4
|
+
/** Phrases to cycle through. */
|
|
5
|
+
words: string[];
|
|
6
|
+
/**
|
|
7
|
+
* Milliseconds each word stays on screen.
|
|
8
|
+
* @default 2200
|
|
9
|
+
*/
|
|
10
|
+
interval?: number;
|
|
11
|
+
/**
|
|
12
|
+
* How `prefers-reduced-motion` is honoured. Defaults to `"user"` (cross-fade
|
|
13
|
+
* becomes a cut). `"never"` always animates; `"always"` always cuts.
|
|
14
|
+
* @default "user"
|
|
15
|
+
*/
|
|
16
|
+
reducedMotion?: "user" | "always" | "never";
|
|
17
|
+
/**
|
|
18
|
+
* When true (default), the box stays as wide as the longest word so the
|
|
19
|
+
* line does not reflow. Set false when an underline or similar chrome
|
|
20
|
+
* should track the visible word.
|
|
21
|
+
* @default true
|
|
22
|
+
*/
|
|
23
|
+
lockWidth?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* When false, skip the polite live region — use inside a heading so
|
|
26
|
+
* assistive tech is not re-announced every interval.
|
|
27
|
+
* @default true
|
|
28
|
+
*/
|
|
29
|
+
announce?: boolean;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Cycles through a list of words with a vertical swap. Assistive tech is
|
|
33
|
+
* pointed at a polite live region so the current word is announced when it
|
|
34
|
+
* changes. Reduced-motion visitors get an instant cut instead of the slide.
|
|
35
|
+
*/
|
|
36
|
+
export declare function WordRotate({ ref, className, words, interval, reducedMotion, lockWidth, announce, ...props }: WordRotateProps): import("react").JSX.Element;
|
|
37
|
+
export declare namespace WordRotate {
|
|
38
|
+
var displayName: string;
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=word-rotate.d.ts.map
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { AnimatePresence, motion, useReducedMotion } from "motion/react";
|
|
4
|
+
import { useEffect, useState } from "react";
|
|
5
|
+
import { cn } from "../lib/cn.js";
|
|
6
|
+
function finiteOr(value, fallback) {
|
|
7
|
+
return Number.isFinite(value) ? value : fallback;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Cycles through a list of words with a vertical swap. Assistive tech is
|
|
11
|
+
* pointed at a polite live region so the current word is announced when it
|
|
12
|
+
* changes. Reduced-motion visitors get an instant cut instead of the slide.
|
|
13
|
+
*/
|
|
14
|
+
export function WordRotate({ ref, className, words, interval = 2200, reducedMotion = "user", lockWidth = true, announce = true, ...props }) {
|
|
15
|
+
const systemReduced = useReducedMotion();
|
|
16
|
+
const reduce = reducedMotion === "never" ? false : reducedMotion === "always" ? true : !!systemReduced;
|
|
17
|
+
const list = words.filter((word) => word.length > 0);
|
|
18
|
+
const [index, setIndex] = useState(0);
|
|
19
|
+
const current = list[index] ?? list[0] ?? "";
|
|
20
|
+
useEffect(() => {
|
|
21
|
+
if (list.length < 2)
|
|
22
|
+
return;
|
|
23
|
+
const ms = Math.max(400, finiteOr(interval, 2200));
|
|
24
|
+
const timeout = window.setInterval(() => {
|
|
25
|
+
setIndex((prev) => (prev + 1) % list.length);
|
|
26
|
+
}, ms);
|
|
27
|
+
return () => window.clearInterval(timeout);
|
|
28
|
+
}, [interval, list.length]);
|
|
29
|
+
return (_jsxs("span", { ref: ref, "data-slot": "word-rotate", className: cn("relative h-[1.2em] overflow-hidden align-baseline", lockWidth ? "inline-grid" : "inline-flex", className), ...props, children: [announce ? (_jsx("span", { className: "sr-only", "aria-live": "polite", children: current })) : (_jsx("span", { className: "sr-only", children: current })), lockWidth
|
|
30
|
+
? list.map((word, i) => (_jsx("span", { "aria-hidden": "true", "data-word-rotate-sizer": "", className: "invisible col-start-1 row-start-1 whitespace-nowrap", children: word }, `${word}-${String(i)}`)))
|
|
31
|
+
: null, _jsx(AnimatePresence, { mode: "wait", initial: false, children: _jsx(motion.span, { "aria-hidden": "true", className: "col-start-1 row-start-1 inline-block whitespace-nowrap justify-self-start", initial: reduce ? false : { y: "40%", opacity: 0 }, animate: { y: "0%", opacity: 1 }, exit: reduce ? { opacity: 1 } : { y: "-40%", opacity: 0 }, transition: reduce ? { duration: 0 } : { duration: 0.35, ease: [0.22, 1, 0.36, 1] }, children: current }, current + String(index)) })] }));
|
|
32
|
+
}
|
|
33
|
+
WordRotate.displayName = "WordRotate";
|
|
34
|
+
//# sourceMappingURL=word-rotate.js.map
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,306 @@
|
|
|
1
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, } from "./components/accordion.js";
|
|
2
|
+
export type { AlertProps } from "./components/alert.js";
|
|
3
|
+
export { Alert, AlertDescription, AlertTitle, alertVariants } from "./components/alert.js";
|
|
4
|
+
export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger, } from "./components/alert-dialog.js";
|
|
5
|
+
export type { AnimatedButtonProps } from "./components/animated-button.js";
|
|
6
|
+
export { AnimatedButton } from "./components/animated-button.js";
|
|
7
|
+
export type { AnimatedListProps } from "./components/animated-list.js";
|
|
8
|
+
export { AnimatedList } from "./components/animated-list.js";
|
|
9
|
+
export type { AnimatedNumberProps, AnimatedNumberSpring } from "./components/animated-number.js";
|
|
10
|
+
export { AnimatedNumber } from "./components/animated-number.js";
|
|
11
|
+
export type { AppShellProps } from "./components/app-shell.js";
|
|
12
|
+
export { AppShell } from "./components/app-shell.js";
|
|
13
|
+
export type { AreaChartProps } from "./components/area-chart.js";
|
|
14
|
+
export { AreaChart } from "./components/area-chart.js";
|
|
15
|
+
export type { AspectRatioProps } from "./components/aspect-ratio.js";
|
|
16
|
+
export { AspectRatio } from "./components/aspect-ratio.js";
|
|
17
|
+
export { AuroraBackground } from "./components/aurora-background.js";
|
|
18
|
+
export type { AutocompleteOption, AutocompleteProps } from "./components/autocomplete.js";
|
|
19
|
+
export { Autocomplete } from "./components/autocomplete.js";
|
|
20
|
+
export { Avatar, AvatarFallback, AvatarImage } from "./components/avatar.js";
|
|
21
|
+
export type { AvatarGroupAvatar, AvatarGroupProps } from "./components/avatar-group.js";
|
|
22
|
+
export { AvatarGroup, avatarGroupItemVariants, avatarGroupOverflowVariants, } from "./components/avatar-group.js";
|
|
23
|
+
export type { BadgeProps } from "./components/badge.js";
|
|
24
|
+
export { Badge, badgeVariants } from "./components/badge.js";
|
|
25
|
+
export type { BannerProps } from "./components/banner.js";
|
|
26
|
+
export { Banner, bannerVariants } from "./components/banner.js";
|
|
27
|
+
export type { BarChartProps } from "./components/bar-chart.js";
|
|
28
|
+
export { BarChart } from "./components/bar-chart.js";
|
|
29
|
+
export type { BorderBeamProps } from "./components/border-beam.js";
|
|
30
|
+
export { BorderBeam } from "./components/border-beam.js";
|
|
31
|
+
export type { BreadcrumbLinkProps } from "./components/breadcrumb.js";
|
|
32
|
+
export { Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, } from "./components/breadcrumb.js";
|
|
33
|
+
export type { ButtonProps } from "./components/button.js";
|
|
34
|
+
export { Button, buttonVariants } from "./components/button.js";
|
|
35
|
+
export type { ButtonGroupProps } from "./components/button-group.js";
|
|
36
|
+
export { ButtonGroup } from "./components/button-group.js";
|
|
37
|
+
export type { CalendarProps } from "./components/calendar.js";
|
|
38
|
+
export { Calendar } from "./components/calendar.js";
|
|
39
|
+
export type { CandlestickChartProps, CandlestickPoint } from "./components/candlestick-chart.js";
|
|
40
|
+
export { CandlestickChart } from "./components/candlestick-chart.js";
|
|
41
|
+
export { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, } from "./components/card.js";
|
|
42
|
+
export type { CardStackItem, CardStackProps } from "./components/card-stack.js";
|
|
43
|
+
export { CardStack } from "./components/card-stack.js";
|
|
44
|
+
export type { CarouselAlign, CarouselContentProps, CarouselDotsProps, CarouselItemProps, CarouselNextProps, CarouselOptions, CarouselPreviousProps, CarouselProps, } from "./components/carousel.js";
|
|
45
|
+
export { Carousel, CarouselContent, CarouselDots, CarouselItem, CarouselNext, CarouselPrevious, } from "./components/carousel.js";
|
|
46
|
+
export type { ChartConfig, ChartCursorProps, ChartSeries } from "./components/chart.js";
|
|
47
|
+
export { ChartContainer, ChartCursor, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, chartSeriesConfig, } from "./components/chart.js";
|
|
48
|
+
export { Checkbox } from "./components/checkbox.js";
|
|
49
|
+
export type { ChipGroupProps, ChipLabels, ChipProps } from "./components/chip.js";
|
|
50
|
+
export { Chip, ChipGroup, chipVariants } from "./components/chip.js";
|
|
51
|
+
export type { ChoroplethChartProps, ChoroplethRegion } from "./components/choropleth-chart.js";
|
|
52
|
+
export { CHOROPLETH_DEMO, ChoroplethChart } from "./components/choropleth-chart.js";
|
|
53
|
+
export type { ClickSparkProps } from "./components/click-spark.js";
|
|
54
|
+
export { ClickSpark } from "./components/click-spark.js";
|
|
55
|
+
export type { CodeBlockProps } from "./components/code-block.js";
|
|
56
|
+
export { CodeBlock } from "./components/code-block.js";
|
|
57
|
+
export type { CodeTabsItem, CodeTabsProps } from "./components/code-tabs.js";
|
|
58
|
+
export { CodeTabs } from "./components/code-tabs.js";
|
|
59
|
+
export { Collapsible, CollapsibleContent, CollapsibleTrigger, } from "./components/collapsible.js";
|
|
60
|
+
export type { ColorPickerProps, OklchColor } from "./components/color-picker.js";
|
|
61
|
+
export { ColorPicker } from "./components/color-picker.js";
|
|
62
|
+
export type { ComboboxOption, ComboboxProps } from "./components/combobox.js";
|
|
63
|
+
export { Combobox } from "./components/combobox.js";
|
|
64
|
+
export type { CommandDialogProps } from "./components/command.js";
|
|
65
|
+
export { Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, } from "./components/command.js";
|
|
66
|
+
export type { ComparisonSliderProps } from "./components/comparison-slider.js";
|
|
67
|
+
export { ComparisonSlider } from "./components/comparison-slider.js";
|
|
68
|
+
export type { ComposedChartProps, ComposedChartSeries } from "./components/composed-chart.js";
|
|
69
|
+
export { ComposedChart } from "./components/composed-chart.js";
|
|
70
|
+
export type { ConfettiProps } from "./components/confetti.js";
|
|
71
|
+
export { Confetti } from "./components/confetti.js";
|
|
72
|
+
export type { ConfirmationDialogProps } from "./components/confirmation-dialog.js";
|
|
73
|
+
export { ConfirmationDialog } from "./components/confirmation-dialog.js";
|
|
74
|
+
export { ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, } from "./components/context-menu.js";
|
|
75
|
+
export type { CopyButtonProps } from "./components/copy-button.js";
|
|
76
|
+
export { CopyButton } from "./components/copy-button.js";
|
|
77
|
+
export type { CountdownLabels, CountdownProps } from "./components/countdown.js";
|
|
78
|
+
export { Countdown } from "./components/countdown.js";
|
|
79
|
+
export type { CardBrand, CreditCardInputProps, CreditCardValue, } from "./components/credit-card-input.js";
|
|
80
|
+
export { CreditCardInput } from "./components/credit-card-input.js";
|
|
81
|
+
export type { CurrencyInputMeta, CurrencyInputProps, CurrencyOption, } from "./components/currency-input.js";
|
|
82
|
+
export { CurrencyInput } from "./components/currency-input.js";
|
|
83
|
+
export type { DataTableColumnHeaderLabels, DataTableColumnHeaderProps, DataTableDensity, DataTableFacetedFilter, DataTableFacetOption, DataTableLabels, DataTableProps, DataTableSelectionColumnOptions, } from "./components/data-table.js";
|
|
84
|
+
export { createSelectionColumn, DataTable, DataTableColumnHeader, fuzzyTextFilter, SELECTION_COLUMN_ID, tableRowsToCsv, } from "./components/data-table.js";
|
|
85
|
+
export type { DatePickerProps } from "./components/date-picker.js";
|
|
86
|
+
export { DatePicker } from "./components/date-picker.js";
|
|
87
|
+
export type { DateRange, DateRangePickerProps, DateRangePreset, } from "./components/date-range-picker.js";
|
|
88
|
+
export { DateRangePicker } from "./components/date-range-picker.js";
|
|
89
|
+
export type { DescriptionItemProps, DescriptionListProps } from "./components/description-list.js";
|
|
90
|
+
export { DescriptionDetails, DescriptionItem, DescriptionList, DescriptionTerm, descriptionListVariants, } from "./components/description-list.js";
|
|
91
|
+
export type { DialogContentProps } from "./components/dialog.js";
|
|
92
|
+
export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, } from "./components/dialog.js";
|
|
93
|
+
export type { DockItem, DockProps } from "./components/dock.js";
|
|
94
|
+
export { Dock } from "./components/dock.js";
|
|
95
|
+
export type { DotPatternProps } from "./components/dot-pattern.js";
|
|
96
|
+
export { DotPattern } from "./components/dot-pattern.js";
|
|
97
|
+
export { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, } from "./components/drawer.js";
|
|
98
|
+
export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, } from "./components/dropdown-menu.js";
|
|
99
|
+
export type { DynamicIslandProps, DynamicIslandView } from "./components/dynamic-island.js";
|
|
100
|
+
export { DynamicIsland } from "./components/dynamic-island.js";
|
|
101
|
+
export { Empty, EmptyContent, EmptyDescription, EmptyIcon, EmptyTitle, } from "./components/empty.js";
|
|
102
|
+
export type { ExpandableTab, ExpandableTabsProps } from "./components/expandable-tabs.js";
|
|
103
|
+
export { ExpandableTabs } from "./components/expandable-tabs.js";
|
|
104
|
+
export type { FabAction, FabProps } from "./components/fab.js";
|
|
105
|
+
export { Fab } from "./components/fab.js";
|
|
106
|
+
export { Field, FieldDescription, FieldError, FieldLabel } from "./components/field.js";
|
|
107
|
+
export type { FileDropzoneProps } from "./components/file-dropzone.js";
|
|
108
|
+
export { FileDropzone } from "./components/file-dropzone.js";
|
|
109
|
+
export type { FlickeringGridProps } from "./components/flickering-grid.js";
|
|
110
|
+
export { FlickeringGrid } from "./components/flickering-grid.js";
|
|
111
|
+
export type { FlipCardAxis, FlipCardProps, FlipCardTrigger } from "./components/flip-card.js";
|
|
112
|
+
export { FlipCard, FlipCardBack, FlipCardFront } from "./components/flip-card.js";
|
|
113
|
+
export type { FloatingLabelInputProps } from "./components/floating-label-input.js";
|
|
114
|
+
export { FloatingLabelInput } from "./components/floating-label-input.js";
|
|
115
|
+
export { Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, useFormContext, useFormField, } from "./components/form.js";
|
|
116
|
+
export type { FrameProps } from "./components/frame.js";
|
|
117
|
+
export { Frame } from "./components/frame.js";
|
|
118
|
+
export type { FunnelChartItem, FunnelChartProps } from "./components/funnel-chart.js";
|
|
119
|
+
export { FunnelChart } from "./components/funnel-chart.js";
|
|
120
|
+
export type { GaugeChartProps } from "./components/gauge-chart.js";
|
|
121
|
+
export { GaugeChart } from "./components/gauge-chart.js";
|
|
122
|
+
export type { GlareHoverProps } from "./components/glare-hover.js";
|
|
123
|
+
export { GlareHover } from "./components/glare-hover.js";
|
|
124
|
+
export { GlassCard } from "./components/glass-card.js";
|
|
125
|
+
export type { GradientBorderProps } from "./components/gradient-border.js";
|
|
126
|
+
export { GradientBorder } from "./components/gradient-border.js";
|
|
127
|
+
export type { GradientTextProps } from "./components/gradient-text.js";
|
|
128
|
+
export { GradientText } from "./components/gradient-text.js";
|
|
129
|
+
export type { GridPatternProps } from "./components/grid-pattern.js";
|
|
130
|
+
export { GridPattern } from "./components/grid-pattern.js";
|
|
131
|
+
export type { HeatmapDay, HeatmapProps } from "./components/heatmap.js";
|
|
132
|
+
export { getHeatmapLevel, Heatmap } from "./components/heatmap.js";
|
|
133
|
+
export type { HeatmapChartProps } from "./components/heatmap-chart.js";
|
|
134
|
+
export { HeatmapChart } from "./components/heatmap-chart.js";
|
|
135
|
+
export type { HighlighterProps } from "./components/highlighter.js";
|
|
136
|
+
export { Highlighter } from "./components/highlighter.js";
|
|
137
|
+
export { HoverCard, HoverCardContent, HoverCardTrigger } from "./components/hover-card.js";
|
|
138
|
+
export type { ImageZoomLabels, ImageZoomProps } from "./components/image-zoom.js";
|
|
139
|
+
export { ImageZoom, imageZoomVariants } from "./components/image-zoom.js";
|
|
140
|
+
export type { InputProps } from "./components/input.js";
|
|
141
|
+
export { Input } from "./components/input.js";
|
|
142
|
+
export type { InputGroupAddonProps, InputGroupProps } from "./components/input-group.js";
|
|
143
|
+
export { InputGroup, InputGroupAddon } from "./components/input-group.js";
|
|
144
|
+
export { InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, } from "./components/input-otp.js";
|
|
145
|
+
export type { JsonViewerProps } from "./components/json-viewer.js";
|
|
146
|
+
export { JsonViewer } from "./components/json-viewer.js";
|
|
147
|
+
export type { KanbanColumn, KanbanItem, KanbanProps } from "./components/kanban.js";
|
|
148
|
+
export { Kanban } from "./components/kanban.js";
|
|
149
|
+
export { Kbd } from "./components/kbd.js";
|
|
150
|
+
export { Label } from "./components/label.js";
|
|
151
|
+
export type { LightRaysProps } from "./components/light-rays.js";
|
|
152
|
+
export { LightRays } from "./components/light-rays.js";
|
|
153
|
+
export type { LightboxImage, LightboxProps } from "./components/lightbox.js";
|
|
154
|
+
export { Lightbox } from "./components/lightbox.js";
|
|
155
|
+
export type { LineChartProps } from "./components/line-chart.js";
|
|
156
|
+
export { LineChart } from "./components/line-chart.js";
|
|
157
|
+
export type { LiveLineChartProps, LiveLinePoint } from "./components/live-line-chart.js";
|
|
158
|
+
export { LiveLineChart } from "./components/live-line-chart.js";
|
|
159
|
+
export type { LogoCarouselItem, LogoCarouselMotionPreference, LogoCarouselProps, LogoCarouselSize, LogoCarouselVariant, } from "./components/logo-carousel.js";
|
|
160
|
+
export { LogoCarousel } from "./components/logo-carousel.js";
|
|
161
|
+
export type { MagneticProps } from "./components/magnetic.js";
|
|
162
|
+
export { Magnetic } from "./components/magnetic.js";
|
|
163
|
+
export type { MarqueeMotionPreference, MarqueeProps } from "./components/marquee.js";
|
|
164
|
+
export { Marquee } from "./components/marquee.js";
|
|
165
|
+
export type { MasonryColumns, MasonryProps } from "./components/masonry.js";
|
|
166
|
+
export { Masonry } from "./components/masonry.js";
|
|
167
|
+
export { Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, } from "./components/menubar.js";
|
|
168
|
+
export type { MeteorsProps } from "./components/meteors.js";
|
|
169
|
+
export { Meteors } from "./components/meteors.js";
|
|
170
|
+
export type { MetricDeltaProps } from "./components/metric.js";
|
|
171
|
+
export { Metric, MetricDelta, MetricLabel, MetricValue } from "./components/metric.js";
|
|
172
|
+
export type { ModeToggleMode, ModeToggleProps, ModeToggleSize } from "./components/mode-toggle.js";
|
|
173
|
+
export { ModeToggle } from "./components/mode-toggle.js";
|
|
174
|
+
export type { MorphingPopoverBodyProps, MorphingPopoverButtonProps, MorphingPopoverCloseProps, MorphingPopoverContentProps, MorphingPopoverFooterProps, MorphingPopoverHeaderProps, MorphingPopoverProps, MorphingPopoverTriggerProps, } from "./components/morphing-popover.js";
|
|
175
|
+
export { MorphingPopover, MorphingPopoverBody, MorphingPopoverButton, MorphingPopoverClose, MorphingPopoverContent, MorphingPopoverFooter, MorphingPopoverHeader, MorphingPopoverTrigger, } from "./components/morphing-popover.js";
|
|
176
|
+
export { easeOutQuart, fadeIn, fadeInUp, scaleIn, springSnappy, springSoft, staggerContainer, } from "./components/motion-presets.js";
|
|
177
|
+
export type { MultiSelectOption, MultiSelectProps } from "./components/multi-select.js";
|
|
178
|
+
export { MultiSelect } from "./components/multi-select.js";
|
|
179
|
+
export { NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, navigationMenuTriggerStyle, } from "./components/navigation-menu.js";
|
|
180
|
+
export type { NoiseProps } from "./components/noise.js";
|
|
181
|
+
export { Noise } from "./components/noise.js";
|
|
182
|
+
export type { NotificationCenterProps, NotificationItem, NotificationListProps, NotificationRowProps, } from "./components/notification-center.js";
|
|
183
|
+
export { NotificationCenter, NotificationList, NotificationRow, } from "./components/notification-center.js";
|
|
184
|
+
export type { NumberInputProps } from "./components/number-input.js";
|
|
185
|
+
export { NumberInput } from "./components/number-input.js";
|
|
186
|
+
export type { OrbitItemProps, OrbitProps, OrbitRingProps } from "./components/orbit.js";
|
|
187
|
+
export { Orbit, OrbitItem, OrbitRing } from "./components/orbit.js";
|
|
188
|
+
export type { PaginationLinkProps } from "./components/pagination.js";
|
|
189
|
+
export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, } from "./components/pagination.js";
|
|
190
|
+
export type { ParticlesProps } from "./components/particles.js";
|
|
191
|
+
export { Particles } from "./components/particles.js";
|
|
192
|
+
export type { PasswordInputProps } from "./components/password-input.js";
|
|
193
|
+
export { getPasswordStrength, PasswordInput } from "./components/password-input.js";
|
|
194
|
+
export type { PhoneCountry, PhoneInputProps } from "./components/phone-input.js";
|
|
195
|
+
export { DEFAULT_PHONE_COUNTRIES, PhoneInput } from "./components/phone-input.js";
|
|
196
|
+
export type { PieChartItem, PieChartProps } from "./components/pie-chart.js";
|
|
197
|
+
export { PieChart } from "./components/pie-chart.js";
|
|
198
|
+
export type { PillNavItem, PillNavProps } from "./components/pill-nav.js";
|
|
199
|
+
export { PillNav } from "./components/pill-nav.js";
|
|
200
|
+
export { Popover, PopoverAnchor, PopoverContent, PopoverTrigger } from "./components/popover.js";
|
|
201
|
+
export type { ProfitLossChartProps, ProfitLossPoint } from "./components/profit-loss-chart.js";
|
|
202
|
+
export { ProfitLossChart } from "./components/profit-loss-chart.js";
|
|
203
|
+
export { Progress } from "./components/progress.js";
|
|
204
|
+
export type { ProgressiveBlurProps } from "./components/progressive-blur.js";
|
|
205
|
+
export { ProgressiveBlur, progressiveBlurVariants } from "./components/progressive-blur.js";
|
|
206
|
+
export type { RadarChartProps } from "./components/radar-chart.js";
|
|
207
|
+
export { RadarChart } from "./components/radar-chart.js";
|
|
208
|
+
export { RadioGroup, RadioGroupItem } from "./components/radio-group.js";
|
|
209
|
+
export type { RatingProps } from "./components/rating.js";
|
|
210
|
+
export { Rating } from "./components/rating.js";
|
|
211
|
+
export type { ResizableHandleProps } from "./components/resizable.js";
|
|
212
|
+
export { ResizableHandle, ResizablePanel, ResizablePanelGroup, } from "./components/resizable.js";
|
|
213
|
+
export type { RetroGridProps } from "./components/retro-grid.js";
|
|
214
|
+
export { RetroGrid } from "./components/retro-grid.js";
|
|
215
|
+
export type { RevealProps } from "./components/reveal.js";
|
|
216
|
+
export { Reveal } from "./components/reveal.js";
|
|
217
|
+
export type { RichTextEditorProps } from "./components/rich-text-editor.js";
|
|
218
|
+
export { RichTextEditor } from "./components/rich-text-editor.js";
|
|
219
|
+
export type { RingChartItem, RingChartProps } from "./components/ring-chart.js";
|
|
220
|
+
export { RingChart } from "./components/ring-chart.js";
|
|
221
|
+
export type { RippleProps } from "./components/ripple.js";
|
|
222
|
+
export { Ripple } from "./components/ripple.js";
|
|
223
|
+
export type { SankeyChartData, SankeyChartProps } from "./components/sankey-chart.js";
|
|
224
|
+
export { SankeyChart } from "./components/sankey-chart.js";
|
|
225
|
+
export type { ScatterChartProps, ScatterChartSeries } from "./components/scatter-chart.js";
|
|
226
|
+
export { ScatterChart } from "./components/scatter-chart.js";
|
|
227
|
+
export type { SchedulerEvent, SchedulerEventColor, SchedulerProps, } from "./components/scheduler.js";
|
|
228
|
+
export { Scheduler } from "./components/scheduler.js";
|
|
229
|
+
export type { ScrambleTextMotionPreference, ScrambleTextProps, } from "./components/scramble-text.js";
|
|
230
|
+
export { ScrambleText } from "./components/scramble-text.js";
|
|
231
|
+
export { ScrollArea, ScrollBar } from "./components/scroll-area.js";
|
|
232
|
+
export type { ScrollProgressProps } from "./components/scroll-progress.js";
|
|
233
|
+
export { ScrollProgress } from "./components/scroll-progress.js";
|
|
234
|
+
export type { SegmentedControlItemProps, SegmentedControlProps, } from "./components/segmented-control.js";
|
|
235
|
+
export { SegmentedControl, SegmentedControlItem } from "./components/segmented-control.js";
|
|
236
|
+
export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, } from "./components/select.js";
|
|
237
|
+
export { Separator } from "./components/separator.js";
|
|
238
|
+
export type { SheetContentProps } from "./components/sheet.js";
|
|
239
|
+
export { Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, sheetVariants, } from "./components/sheet.js";
|
|
240
|
+
export { Shimmer } from "./components/shimmer.js";
|
|
241
|
+
export type { ShinyTextProps } from "./components/shiny-text.js";
|
|
242
|
+
export { ShinyText } from "./components/shiny-text.js";
|
|
243
|
+
export type { SidebarContextValue, SidebarGroupLabelProps, SidebarMenuButtonProps, SidebarMenuSubButtonProps, SidebarProps, SidebarProviderProps, SidebarTriggerProps, } from "./components/sidebar.js";
|
|
244
|
+
export { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInset, SidebarMenu, SidebarMenuButton, SidebarMenuItem, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, sidebarMenuButtonVariants, useSidebar, } from "./components/sidebar.js";
|
|
245
|
+
export type { SignaturePadHandle, SignaturePadProps } from "./components/signature-pad.js";
|
|
246
|
+
export { SignaturePad } from "./components/signature-pad.js";
|
|
247
|
+
export { Skeleton } from "./components/skeleton.js";
|
|
248
|
+
export { Slider } from "./components/slider.js";
|
|
249
|
+
export type { ToasterProps } from "./components/sonner.js";
|
|
250
|
+
export { Toaster, toast } from "./components/sonner.js";
|
|
251
|
+
export type { SparklesTextProps } from "./components/sparkles-text.js";
|
|
252
|
+
export { SparklesText } from "./components/sparkles-text.js";
|
|
253
|
+
export type { SparklineProps } from "./components/sparkline.js";
|
|
254
|
+
export { Sparkline } from "./components/sparkline.js";
|
|
255
|
+
export type { SpinnerProps } from "./components/spinner.js";
|
|
256
|
+
export { Spinner } from "./components/spinner.js";
|
|
257
|
+
export type { SpinningTextProps } from "./components/spinning-text.js";
|
|
258
|
+
export { SpinningText } from "./components/spinning-text.js";
|
|
259
|
+
export type { SplitButtonItem, SplitButtonProps } from "./components/split-button.js";
|
|
260
|
+
export { SplitButton } from "./components/split-button.js";
|
|
261
|
+
export { SpotlightCard } from "./components/spotlight-card.js";
|
|
262
|
+
export type { StarBorderProps } from "./components/star-border.js";
|
|
263
|
+
export { StarBorder } from "./components/star-border.js";
|
|
264
|
+
export type { StatusDotProps } from "./components/status-dot.js";
|
|
265
|
+
export { StatusDot, statusDotVariants } from "./components/status-dot.js";
|
|
266
|
+
export type { StepperIndicatorProps, StepperItemProps, StepperLabels, StepperProps, StepperTriggerProps, } from "./components/stepper.js";
|
|
267
|
+
export { Stepper, StepperDescription, StepperIndicator, StepperItem, StepperList, StepperSeparator, StepperTitle, StepperTrigger, stepperIndicatorVariants, } from "./components/stepper.js";
|
|
268
|
+
export type { SunburstChartProps, SunburstNode } from "./components/sunburst-chart.js";
|
|
269
|
+
export { SunburstChart } from "./components/sunburst-chart.js";
|
|
270
|
+
export { Switch } from "./components/switch.js";
|
|
271
|
+
export { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, } from "./components/table.js";
|
|
272
|
+
export type { TableOfContentsItem, TableOfContentsProps, } from "./components/table-of-contents.js";
|
|
273
|
+
export { TableOfContents } from "./components/table-of-contents.js";
|
|
274
|
+
export { Tabs, TabsContent, TabsList, TabsTrigger } from "./components/tabs.js";
|
|
275
|
+
export type { TagsInputProps } from "./components/tags-input.js";
|
|
276
|
+
export { TagsInput } from "./components/tags-input.js";
|
|
277
|
+
export type { TerminalLine, TerminalMotionPreference, TerminalProps, } from "./components/terminal.js";
|
|
278
|
+
export { Terminal } from "./components/terminal.js";
|
|
279
|
+
export type { TextEffectPer, TextEffectPreset, TextEffectProps, TextEffectTrigger, } from "./components/text-effect.js";
|
|
280
|
+
export { TextEffect } from "./components/text-effect.js";
|
|
281
|
+
export type { TextareaProps } from "./components/textarea.js";
|
|
282
|
+
export { Textarea } from "./components/textarea.js";
|
|
283
|
+
export type { TiltCardProps } from "./components/tilt-card.js";
|
|
284
|
+
export { TiltCard } from "./components/tilt-card.js";
|
|
285
|
+
export type { TimePickerProps, TimeValue } from "./components/time-picker.js";
|
|
286
|
+
export { TimePicker } from "./components/time-picker.js";
|
|
287
|
+
export type { TimelineDotProps, TimelineItemProps } from "./components/timeline.js";
|
|
288
|
+
export { Timeline, TimelineConnector, TimelineContent, TimelineDescription, TimelineDot, TimelineItem, TimelineTime, TimelineTitle, timelineDotVariants, } from "./components/timeline.js";
|
|
289
|
+
export type { ToggleProps } from "./components/toggle.js";
|
|
290
|
+
export { Toggle, toggleVariants } from "./components/toggle.js";
|
|
291
|
+
export { ToggleGroup, ToggleGroupItem } from "./components/toggle-group.js";
|
|
292
|
+
export type { ToolbarButtonProps, ToolbarProps } from "./components/toolbar.js";
|
|
293
|
+
export { Toolbar, ToolbarButton, ToolbarGroup, ToolbarSeparator } from "./components/toolbar.js";
|
|
294
|
+
export { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, } from "./components/tooltip.js";
|
|
295
|
+
export type { TreeNode, TreeViewProps } from "./components/tree-view.js";
|
|
296
|
+
export { TreeView } from "./components/tree-view.js";
|
|
297
|
+
export type { TypingTextMotionPreference, TypingTextProps } from "./components/typing-text.js";
|
|
298
|
+
export { TypingText } from "./components/typing-text.js";
|
|
299
|
+
export type { UsageMeterProps } from "./components/usage-meter.js";
|
|
300
|
+
export { UsageMeter, UsageMeterCircular, UsageMeterLinear } from "./components/usage-meter.js";
|
|
301
|
+
export type { VideoPlayerLabels, VideoPlayerProps } from "./components/video-player.js";
|
|
302
|
+
export { VideoPlayer, videoPlayerVariants } from "./components/video-player.js";
|
|
303
|
+
export type { WordRotateProps } from "./components/word-rotate.js";
|
|
304
|
+
export { WordRotate } from "./components/word-rotate.js";
|
|
305
|
+
export { cn } from "./lib/cn.js";
|
|
306
|
+
//# sourceMappingURL=index.d.ts.map
|