@flikk/ui 1.0.0-beta.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/LICENSE +21 -0
- package/README.md +1 -0
- package/dist/components/ai/ApprovalCard/ApprovalCard.d.ts +3 -0
- package/dist/components/ai/ApprovalCard/ApprovalCard.js +15 -0
- package/dist/components/ai/ApprovalCard/ApprovalCard.theme.d.ts +13 -0
- package/dist/components/ai/ApprovalCard/ApprovalCard.theme.js +15 -0
- package/dist/components/ai/ApprovalCard/ApprovalCard.types.d.ts +43 -0
- package/dist/components/ai/ApprovalCard/index.d.ts +2 -0
- package/dist/components/ai/CodeBlock/CodeBlock.d.ts +34 -0
- package/dist/components/ai/CodeBlock/CodeBlock.js +182 -0
- package/dist/components/ai/CodeBlock/CodeBlock.theme.d.ts +2 -0
- package/dist/components/ai/CodeBlock/CodeBlock.theme.js +17 -0
- package/dist/components/ai/CodeBlock/CodeBlock.types.d.ts +108 -0
- package/dist/components/ai/CodeBlock/LanguageIcon.d.ts +10 -0
- package/dist/components/ai/CodeBlock/LanguageIcon.js +55 -0
- package/dist/components/ai/CodeBlock/index.d.ts +3 -0
- package/dist/components/ai/MessageHistory/MessageHistory.d.ts +18 -0
- package/dist/components/ai/MessageHistory/MessageHistory.js +97 -0
- package/dist/components/ai/MessageHistory/MessageHistory.theme.d.ts +2 -0
- package/dist/components/ai/MessageHistory/MessageHistory.theme.js +8 -0
- package/dist/components/ai/MessageHistory/MessageHistory.types.d.ts +94 -0
- package/dist/components/ai/MessageHistory/index.d.ts +3 -0
- package/dist/components/ai/PromptInput/PromptInput.d.ts +24 -0
- package/dist/components/ai/PromptInput/PromptInput.js +446 -0
- package/dist/components/ai/PromptInput/PromptInput.theme.d.ts +2 -0
- package/dist/components/ai/PromptInput/PromptInput.theme.js +15 -0
- package/dist/components/ai/PromptInput/PromptInput.types.d.ts +219 -0
- package/dist/components/ai/PromptInput/index.d.ts +3 -0
- package/dist/components/ai/PromptSuggestions/PromptSuggestion.d.ts +27 -0
- package/dist/components/ai/PromptSuggestions/PromptSuggestion.js +61 -0
- package/dist/components/ai/PromptSuggestions/PromptSuggestion.theme.d.ts +10 -0
- package/dist/components/ai/PromptSuggestions/PromptSuggestion.theme.js +12 -0
- package/dist/components/ai/PromptSuggestions/PromptSuggestion.types.d.ts +53 -0
- package/dist/components/ai/PromptSuggestions/index.d.ts +4 -0
- package/dist/components/ai/StreamingResponse/AnimatedText.d.ts +24 -0
- package/dist/components/ai/StreamingResponse/AnimatedText.js +46 -0
- package/dist/components/ai/StreamingResponse/ErrorDisplay.d.ts +23 -0
- package/dist/components/ai/StreamingResponse/ErrorDisplay.js +35 -0
- package/dist/components/ai/StreamingResponse/MarkdownRenderer.d.ts +25 -0
- package/dist/components/ai/StreamingResponse/MarkdownRenderer.js +135 -0
- package/dist/components/ai/StreamingResponse/StreamingCursor.d.ts +21 -0
- package/dist/components/ai/StreamingResponse/StreamingCursor.js +21 -0
- package/dist/components/ai/StreamingResponse/StreamingResponse.animations.d.ts +26 -0
- package/dist/components/ai/StreamingResponse/StreamingResponse.animations.js +68 -0
- package/dist/components/ai/StreamingResponse/StreamingResponse.d.ts +25 -0
- package/dist/components/ai/StreamingResponse/StreamingResponse.js +87 -0
- package/dist/components/ai/StreamingResponse/StreamingResponse.theme.d.ts +2 -0
- package/dist/components/ai/StreamingResponse/StreamingResponse.theme.js +10 -0
- package/dist/components/ai/StreamingResponse/StreamingResponse.types.d.ts +105 -0
- package/dist/components/ai/StreamingResponse/index.d.ts +15 -0
- package/dist/components/ai/ThinkingIndicator/ThinkingIndicator.animations.d.ts +10 -0
- package/dist/components/ai/ThinkingIndicator/ThinkingIndicator.animations.js +47 -0
- package/dist/components/ai/ThinkingIndicator/ThinkingIndicator.d.ts +20 -0
- package/dist/components/ai/ThinkingIndicator/ThinkingIndicator.js +55 -0
- package/dist/components/ai/ThinkingIndicator/ThinkingIndicator.theme.d.ts +2 -0
- package/dist/components/ai/ThinkingIndicator/ThinkingIndicator.theme.js +20 -0
- package/dist/components/ai/ThinkingIndicator/ThinkingIndicator.types.d.ts +67 -0
- package/dist/components/ai/ThinkingIndicator/index.d.ts +3 -0
- package/dist/components/ai/TokenCounter/TokenCounter.d.ts +21 -0
- package/dist/components/ai/TokenCounter/TokenCounter.js +61 -0
- package/dist/components/ai/TokenCounter/TokenCounter.theme.d.ts +2 -0
- package/dist/components/ai/TokenCounter/TokenCounter.theme.js +28 -0
- package/dist/components/ai/TokenCounter/TokenCounter.types.d.ts +104 -0
- package/dist/components/ai/TokenCounter/index.d.ts +4 -0
- package/dist/components/ai/TokenCounter/tokenUtils.d.ts +23 -0
- package/dist/components/ai/TokenCounter/tokenUtils.js +108 -0
- package/dist/components/ai/index.d.ts +19 -0
- package/dist/components/ai/index.js +25 -0
- package/dist/components/charts/ActivityRings/ActivityRings.d.ts +9 -0
- package/dist/components/charts/ActivityRings/ActivityRings.js +166 -0
- package/dist/components/charts/ActivityRings/ActivityRings.theme.d.ts +7 -0
- package/dist/components/charts/ActivityRings/ActivityRings.theme.js +26 -0
- package/dist/components/charts/ActivityRings/ActivityRings.types.d.ts +79 -0
- package/dist/components/charts/ActivityRings/ActivityRings.types.js +8 -0
- package/dist/components/charts/ActivityRings/index.d.ts +4 -0
- package/dist/components/charts/AreaChart/AreaChart.d.ts +3 -0
- package/dist/components/charts/AreaChart/AreaChart.js +357 -0
- package/dist/components/charts/AreaChart/AreaChart.theme.d.ts +24 -0
- package/dist/components/charts/AreaChart/AreaChart.theme.js +45 -0
- package/dist/components/charts/AreaChart/AreaChart.types.d.ts +39 -0
- package/dist/components/charts/AreaChart/AreaChart.types.js +17 -0
- package/dist/components/charts/AreaChart/index.d.ts +4 -0
- package/dist/components/charts/BarChart/BarChart.d.ts +3 -0
- package/dist/components/charts/BarChart/BarChart.js +462 -0
- package/dist/components/charts/BarChart/BarChart.types.d.ts +49 -0
- package/dist/components/charts/BarChart/BarChart.types.js +15 -0
- package/dist/components/charts/BarChart/index.d.ts +2 -0
- package/dist/components/charts/ChartContainer.d.ts +8 -0
- package/dist/components/charts/ChartContainer.js +42 -0
- package/dist/components/charts/ComboChart/ComboChart.d.ts +9 -0
- package/dist/components/charts/ComboChart/ComboChart.js +147 -0
- package/dist/components/charts/ComboChart/ComboChart.theme.d.ts +7 -0
- package/dist/components/charts/ComboChart/ComboChart.types.d.ts +51 -0
- package/dist/components/charts/ComboChart/ComboChart.types.js +15 -0
- package/dist/components/charts/ComboChart/index.d.ts +4 -0
- package/dist/components/charts/DonutChart/DonutChart.d.ts +7 -0
- package/dist/components/charts/DonutChart/DonutChart.js +162 -0
- package/dist/components/charts/DonutChart/DonutChart.theme.d.ts +130 -0
- package/dist/components/charts/DonutChart/DonutChart.theme.js +25 -0
- package/dist/components/charts/DonutChart/DonutChart.types.d.ts +129 -0
- package/dist/components/charts/DonutChart/MultiSegmentDonutChart.d.ts +7 -0
- package/dist/components/charts/DonutChart/MultiSegmentDonutChart.js +252 -0
- package/dist/components/charts/DonutChart/MultiSegmentDonutChart.theme.d.ts +50 -0
- package/dist/components/charts/DonutChart/MultiSegmentDonutChart.theme.js +36 -0
- package/dist/components/charts/DonutChart/MultiSegmentDonutChart.types.d.ts +124 -0
- package/dist/components/charts/DonutChart/donut-utils.d.ts +45 -0
- package/dist/components/charts/DonutChart/donut-utils.js +140 -0
- package/dist/components/charts/DonutChart/index.d.ts +9 -0
- package/dist/components/charts/FunnelChart/FunnelChart.animations.d.ts +35 -0
- package/dist/components/charts/FunnelChart/FunnelChart.animations.js +106 -0
- package/dist/components/charts/FunnelChart/FunnelChart.d.ts +9 -0
- package/dist/components/charts/FunnelChart/FunnelChart.js +462 -0
- package/dist/components/charts/FunnelChart/FunnelChart.theme.d.ts +2 -0
- package/dist/components/charts/FunnelChart/FunnelChart.theme.js +12 -0
- package/dist/components/charts/FunnelChart/FunnelChart.types.d.ts +105 -0
- package/dist/components/charts/FunnelChart/index.d.ts +4 -0
- package/dist/components/charts/Heatmap/Heatmap.d.ts +7 -0
- package/dist/components/charts/Heatmap/Heatmap.js +148 -0
- package/dist/components/charts/Heatmap/Heatmap.theme.d.ts +12 -0
- package/dist/components/charts/Heatmap/Heatmap.theme.js +18 -0
- package/dist/components/charts/Heatmap/Heatmap.types.d.ts +134 -0
- package/dist/components/charts/Heatmap/HeatmapCell.d.ts +3 -0
- package/dist/components/charts/Heatmap/HeatmapCell.js +95 -0
- package/dist/components/charts/Heatmap/HeatmapLegend.d.ts +19 -0
- package/dist/components/charts/Heatmap/HeatmapLegend.js +17 -0
- package/dist/components/charts/Heatmap/index.d.ts +7 -0
- package/dist/components/charts/Heatmap/utils/heatmapUtils.d.ts +30 -0
- package/dist/components/charts/Heatmap/utils/heatmapUtils.js +170 -0
- package/dist/components/charts/LineChart/LineChart.d.ts +3 -0
- package/dist/components/charts/LineChart/LineChart.js +361 -0
- package/dist/components/charts/LineChart/LineChart.types.d.ts +33 -0
- package/dist/components/charts/LineChart/LineChart.types.js +15 -0
- package/dist/components/charts/LineChart/index.d.ts +2 -0
- package/dist/components/charts/RadarChart/RadarChart.animations.d.ts +16 -0
- package/dist/components/charts/RadarChart/RadarChart.animations.js +17 -0
- package/dist/components/charts/RadarChart/RadarChart.d.ts +3 -0
- package/dist/components/charts/RadarChart/RadarChart.js +166 -0
- package/dist/components/charts/RadarChart/RadarChart.theme.d.ts +9 -0
- package/dist/components/charts/RadarChart/RadarChart.theme.js +27 -0
- package/dist/components/charts/RadarChart/RadarChart.types.d.ts +110 -0
- package/dist/components/charts/RadarChart/index.d.ts +4 -0
- package/dist/components/charts/ScatterPlot/ScatterPlot.d.ts +9 -0
- package/dist/components/charts/ScatterPlot/ScatterPlot.js +208 -0
- package/dist/components/charts/ScatterPlot/ScatterPlot.theme.d.ts +22 -0
- package/dist/components/charts/ScatterPlot/ScatterPlot.theme.js +38 -0
- package/dist/components/charts/ScatterPlot/ScatterPlot.types.d.ts +71 -0
- package/dist/components/charts/ScatterPlot/ScatterPlot.types.js +12 -0
- package/dist/components/charts/ScatterPlot/index.d.ts +3 -0
- package/dist/components/charts/StackedBarChart/StackedBarChart.d.ts +3 -0
- package/dist/components/charts/StackedBarChart/StackedBarChart.js +299 -0
- package/dist/components/charts/StackedBarChart/StackedBarChart.types.d.ts +34 -0
- package/dist/components/charts/StackedBarChart/StackedBarChart.types.js +14 -0
- package/dist/components/charts/StackedBarChart/index.d.ts +3 -0
- package/dist/components/charts/hooks/index.d.ts +6 -0
- package/dist/components/charts/hooks/useChartAccessibility.d.ts +39 -0
- package/dist/components/charts/hooks/useChartAccessibility.js +121 -0
- package/dist/components/charts/hooks/useChartScales.d.ts +83 -0
- package/dist/components/charts/hooks/useChartScales.js +151 -0
- package/dist/components/charts/hooks/useChartTheme.d.ts +16 -0
- package/dist/components/charts/hooks/useChartTheme.js +105 -0
- package/dist/components/charts/hooks/useChartValidation.d.ts +74 -0
- package/dist/components/charts/hooks/useChartValidation.js +58 -0
- package/dist/components/charts/hooks/useTooltipPosition.d.ts +98 -0
- package/dist/components/charts/hooks/useTooltipPosition.js +294 -0
- package/dist/components/charts/index.d.ts +54 -0
- package/dist/components/charts/index.js +39 -0
- package/dist/components/charts/shared/BarRenderer/BarRenderer.d.ts +9 -0
- package/dist/components/charts/shared/BarRenderer/BarRenderer.js +324 -0
- package/dist/components/charts/shared/BarRenderer/BarRenderer.types.d.ts +94 -0
- package/dist/components/charts/shared/BarRenderer/index.d.ts +3 -0
- package/dist/components/charts/shared/ChartAxis/ChartAxis.types.d.ts +93 -0
- package/dist/components/charts/shared/ChartAxis/XAxis.d.ts +7 -0
- package/dist/components/charts/shared/ChartAxis/XAxis.js +36 -0
- package/dist/components/charts/shared/ChartAxis/YAxis.d.ts +7 -0
- package/dist/components/charts/shared/ChartAxis/YAxis.js +55 -0
- package/dist/components/charts/shared/ChartAxis/index.d.ts +3 -0
- package/dist/components/charts/shared/ChartContainer/ChartContainer.d.ts +85 -0
- package/dist/components/charts/shared/ChartContainer/ChartContainer.js +185 -0
- package/dist/components/charts/shared/ChartContainer/ChartContainer.types.d.ts +91 -0
- package/dist/components/charts/shared/ChartContainer/index.d.ts +3 -0
- package/dist/components/charts/shared/ChartCrosshair/ChartCrosshair.d.ts +7 -0
- package/dist/components/charts/shared/ChartCrosshair/ChartCrosshair.js +31 -0
- package/dist/components/charts/shared/ChartCrosshair/ChartCrosshair.theme.d.ts +6 -0
- package/dist/components/charts/shared/ChartCrosshair/ChartCrosshair.theme.js +11 -0
- package/dist/components/charts/shared/ChartCrosshair/ChartCrosshair.types.d.ts +35 -0
- package/dist/components/charts/shared/ChartCrosshair/index.d.ts +3 -0
- package/dist/components/charts/shared/ChartErrorBoundary/ChartErrorBoundary.d.ts +34 -0
- package/dist/components/charts/shared/ChartErrorBoundary/ChartErrorBoundary.js +48 -0
- package/dist/components/charts/shared/ChartErrorBoundary/index.d.ts +1 -0
- package/dist/components/charts/shared/ChartGrid/HorizontalGrid.d.ts +26 -0
- package/dist/components/charts/shared/ChartGrid/HorizontalGrid.js +21 -0
- package/dist/components/charts/shared/ChartGrid/index.d.ts +2 -0
- package/dist/components/charts/shared/ChartLegend/ChartLegend.d.ts +7 -0
- package/dist/components/charts/shared/ChartLegend/ChartLegend.js +28 -0
- package/dist/components/charts/shared/ChartLegend/ChartLegend.types.d.ts +15 -0
- package/dist/components/charts/shared/ChartLegend/ChartLegendContent.d.ts +7 -0
- package/dist/components/charts/shared/ChartLegend/ChartLegendContent.js +18 -0
- package/dist/components/charts/shared/ChartLegend/index.d.ts +3 -0
- package/dist/components/charts/shared/ChartMarker/ChartMarker.d.ts +7 -0
- package/dist/components/charts/shared/ChartMarker/ChartMarker.js +22 -0
- package/dist/components/charts/shared/ChartMarker/ChartMarker.theme.d.ts +6 -0
- package/dist/components/charts/shared/ChartMarker/ChartMarker.theme.js +9 -0
- package/dist/components/charts/shared/ChartMarker/ChartMarker.types.d.ts +21 -0
- package/dist/components/charts/shared/ChartMarker/index.d.ts +3 -0
- package/dist/components/charts/shared/ChartText/ChartText.d.ts +7 -0
- package/dist/components/charts/shared/ChartText/ChartText.js +32 -0
- package/dist/components/charts/shared/ChartText/ChartText.theme.d.ts +6 -0
- package/dist/components/charts/shared/ChartText/ChartText.theme.js +9 -0
- package/dist/components/charts/shared/ChartText/ChartText.types.d.ts +21 -0
- package/dist/components/charts/shared/ChartText/index.d.ts +2 -0
- package/dist/components/charts/shared/ChartTooltip/ChartTooltip.d.ts +19 -0
- package/dist/components/charts/shared/ChartTooltip/ChartTooltip.js +50 -0
- package/dist/components/charts/shared/ChartTooltip/ChartTooltip.theme.d.ts +7 -0
- package/dist/components/charts/shared/ChartTooltip/ChartTooltip.theme.js +18 -0
- package/dist/components/charts/shared/ChartTooltip/ChartTooltip.types.d.ts +74 -0
- package/dist/components/charts/shared/ChartTooltip/ChartTooltipContent.d.ts +2 -0
- package/dist/components/charts/shared/ChartTooltip/index.d.ts +4 -0
- package/dist/components/charts/shared/LineRenderer/LineRenderer.d.ts +9 -0
- package/dist/components/charts/shared/LineRenderer/LineRenderer.js +239 -0
- package/dist/components/charts/shared/LineRenderer/LineRenderer.types.d.ts +92 -0
- package/dist/components/charts/shared/LineRenderer/index.d.ts +2 -0
- package/dist/components/charts/shared/index.d.ts +14 -0
- package/dist/components/charts/theme/chart.theme.d.ts +6 -0
- package/dist/components/charts/theme/chart.theme.js +73 -0
- package/dist/components/charts/types/chart.types.d.ts +176 -0
- package/dist/components/charts/types/chart.types.js +31 -0
- package/dist/components/charts/utils/animation-utils.d.ts +111 -0
- package/dist/components/charts/utils/animation-utils.js +116 -0
- package/dist/components/charts/utils/chart-validation.d.ts +98 -0
- package/dist/components/charts/utils/chart-validation.js +364 -0
- package/dist/components/charts/utils/color-utils.d.ts +78 -0
- package/dist/components/charts/utils/color-utils.js +135 -0
- package/dist/components/charts/utils/index.d.ts +4 -0
- package/dist/components/charts/utils/path-utils.d.ts +35 -0
- package/dist/components/charts/utils/path-utils.js +156 -0
- package/dist/components/core/Accordion/Accordion.animations.d.ts +9 -0
- package/dist/components/core/Accordion/Accordion.animations.js +45 -0
- package/dist/components/core/Accordion/Accordion.d.ts +11 -0
- package/dist/components/core/Accordion/Accordion.js +56 -0
- package/dist/components/core/Accordion/Accordion.theme.d.ts +10 -0
- package/dist/components/core/Accordion/Accordion.theme.js +18 -0
- package/dist/components/core/Accordion/Accordion.types.d.ts +110 -0
- package/dist/components/core/Accordion/AccordionContent.d.ts +3 -0
- package/dist/components/core/Accordion/AccordionContent.js +21 -0
- package/dist/components/core/Accordion/AccordionItem.d.ts +4 -0
- package/dist/components/core/Accordion/AccordionItem.js +57 -0
- package/dist/components/core/Accordion/AccordionTrigger.d.ts +3 -0
- package/dist/components/core/Accordion/AccordionTrigger.js +19 -0
- package/dist/components/core/Accordion/index.d.ts +4 -0
- package/dist/components/core/Alert/Alert.d.ts +3 -0
- package/dist/components/core/Alert/Alert.js +43 -0
- package/dist/components/core/Alert/Alert.theme.d.ts +6 -0
- package/dist/components/core/Alert/Alert.theme.js +27 -0
- package/dist/components/core/Alert/Alert.types.d.ts +66 -0
- package/dist/components/core/Alert/index.d.ts +3 -0
- package/dist/components/core/AlertDialog/AlertDialog.d.ts +5 -0
- package/dist/components/core/AlertDialog/AlertDialog.js +17 -0
- package/dist/components/core/AlertDialog/AlertDialog.types.d.ts +18 -0
- package/dist/components/core/AlertDialog/index.d.ts +2 -0
- package/dist/components/core/AspectRatio/AspectRatio.d.ts +14 -0
- package/dist/components/core/AspectRatio/AspectRatio.js +24 -0
- package/dist/components/core/AspectRatio/AspectRatio.types.d.ts +9 -0
- package/dist/components/core/AspectRatio/index.d.ts +2 -0
- package/dist/components/core/Avatar/Avatar.d.ts +3 -0
- package/dist/components/core/Avatar/Avatar.js +96 -0
- package/dist/components/core/Avatar/Avatar.theme.d.ts +14 -0
- package/dist/components/core/Avatar/Avatar.theme.js +25 -0
- package/dist/components/core/Avatar/Avatar.types.d.ts +69 -0
- package/dist/components/core/Avatar/index.d.ts +2 -0
- package/dist/components/core/AvatarGroup/AvatarGroup.animations.d.ts +13 -0
- package/dist/components/core/AvatarGroup/AvatarGroup.animations.js +79 -0
- package/dist/components/core/AvatarGroup/AvatarGroup.d.ts +3 -0
- package/dist/components/core/AvatarGroup/AvatarGroup.js +57 -0
- package/dist/components/core/AvatarGroup/AvatarGroup.theme.d.ts +14 -0
- package/dist/components/core/AvatarGroup/AvatarGroup.theme.js +17 -0
- package/dist/components/core/AvatarGroup/AvatarGroup.types.d.ts +44 -0
- package/dist/components/core/AvatarGroup/index.d.ts +2 -0
- package/dist/components/core/Badge/Badge.animations.d.ts +8 -0
- package/dist/components/core/Badge/Badge.animations.js +109 -0
- package/dist/components/core/Badge/Badge.d.ts +14 -0
- package/dist/components/core/Badge/Badge.js +207 -0
- package/dist/components/core/Badge/Badge.theme.d.ts +6 -0
- package/dist/components/core/Badge/Badge.theme.js +107 -0
- package/dist/components/core/Badge/Badge.types.d.ts +174 -0
- package/dist/components/core/Badge/index.d.ts +2 -0
- package/dist/components/core/Breadcrumbs/Breadcrumbs.d.ts +16 -0
- package/dist/components/core/Breadcrumbs/Breadcrumbs.js +100 -0
- package/dist/components/core/Breadcrumbs/Breadcrumbs.theme.d.ts +19 -0
- package/dist/components/core/Breadcrumbs/Breadcrumbs.theme.js +32 -0
- package/dist/components/core/Breadcrumbs/Breadcrumbs.types.d.ts +58 -0
- package/dist/components/core/Breadcrumbs/index.d.ts +3 -0
- package/dist/components/core/Button/Button.animations.d.ts +5 -0
- package/dist/components/core/Button/Button.d.ts +4 -0
- package/dist/components/core/Button/Button.js +125 -0
- package/dist/components/core/Button/Button.ripple.d.ts +67 -0
- package/dist/components/core/Button/Button.ripple.js +229 -0
- package/dist/components/core/Button/Button.theme.d.ts +27 -0
- package/dist/components/core/Button/Button.theme.js +148 -0
- package/dist/components/core/Button/Button.types.d.ts +56 -0
- package/dist/components/core/Button/index.d.ts +2 -0
- package/dist/components/core/ButtonGroup/ButtonGroup.d.ts +4 -0
- package/dist/components/core/ButtonGroup/ButtonGroup.js +11 -0
- package/dist/components/core/ButtonGroup/ButtonGroup.theme.d.ts +19 -0
- package/dist/components/core/ButtonGroup/ButtonGroup.theme.js +50 -0
- package/dist/components/core/ButtonGroup/ButtonGroup.types.d.ts +36 -0
- package/dist/components/core/ButtonGroup/ButtonGroupSeparator.d.ts +4 -0
- package/dist/components/core/ButtonGroup/ButtonGroupSeparator.js +13 -0
- package/dist/components/core/ButtonGroup/ButtonGroupText.d.ts +4 -0
- package/dist/components/core/ButtonGroup/ButtonGroupText.js +21 -0
- package/dist/components/core/ButtonGroup/index.d.ts +4 -0
- package/dist/components/core/Calendar/Calendar.animations.d.ts +12 -0
- package/dist/components/core/Calendar/Calendar.animations.js +37 -0
- package/dist/components/core/Calendar/Calendar.d.ts +3 -0
- package/dist/components/core/Calendar/Calendar.js +382 -0
- package/dist/components/core/Calendar/Calendar.theme.d.ts +6 -0
- package/dist/components/core/Calendar/Calendar.theme.js +54 -0
- package/dist/components/core/Calendar/Calendar.types.d.ts +124 -0
- package/dist/components/core/Calendar/CalendarEvent/CalendarEvent.d.ts +4 -0
- package/dist/components/core/Calendar/CalendarEvent/CalendarEvent.theme.d.ts +12 -0
- package/dist/components/core/Calendar/CalendarEvent/CalendarEvent.types.d.ts +24 -0
- package/dist/components/core/Calendar/CalendarEvent/index.d.ts +2 -0
- package/dist/components/core/Calendar/CalendarMini/CalendarMini.animations.d.ts +4 -0
- package/dist/components/core/Calendar/CalendarMini/CalendarMini.animations.js +27 -0
- package/dist/components/core/Calendar/CalendarMini/CalendarMini.d.ts +3 -0
- package/dist/components/core/Calendar/CalendarMini/CalendarMini.js +250 -0
- package/dist/components/core/Calendar/CalendarMini/CalendarMini.theme.d.ts +2 -0
- package/dist/components/core/Calendar/CalendarMini/CalendarMini.theme.js +9 -0
- package/dist/components/core/Calendar/CalendarMini/CalendarMini.types.d.ts +93 -0
- package/dist/components/core/Calendar/CalendarMini/index.d.ts +2 -0
- package/dist/components/core/Calendar/calendar.utils.d.ts +19 -0
- package/dist/components/core/Calendar/calendar.utils.js +53 -0
- package/dist/components/core/Calendar/index.d.ts +5 -0
- package/dist/components/core/Card/Card.d.ts +8 -0
- package/dist/components/core/Card/Card.js +29 -0
- package/dist/components/core/Card/Card.theme.d.ts +2 -0
- package/dist/components/core/Card/Card.theme.js +10 -0
- package/dist/components/core/Card/Card.types.d.ts +81 -0
- package/dist/components/core/Card/CardContent.d.ts +3 -0
- package/dist/components/core/Card/CardContent.js +11 -0
- package/dist/components/core/Card/CardDescription.d.ts +3 -0
- package/dist/components/core/Card/CardDescription.js +11 -0
- package/dist/components/core/Card/CardFooter.d.ts +3 -0
- package/dist/components/core/Card/CardFooter.js +11 -0
- package/dist/components/core/Card/CardHeader.d.ts +3 -0
- package/dist/components/core/Card/CardHeader.js +11 -0
- package/dist/components/core/Card/CardTitle.d.ts +3 -0
- package/dist/components/core/Card/CardTitle.js +11 -0
- package/dist/components/core/Card/index.d.ts +2 -0
- package/dist/components/core/CardStack/CardStack.animations.d.ts +47 -0
- package/dist/components/core/CardStack/CardStack.d.ts +3 -0
- package/dist/components/core/CardStack/CardStack.js +186 -0
- package/dist/components/core/CardStack/CardStack.theme.d.ts +6 -0
- package/dist/components/core/CardStack/CardStack.theme.js +33 -0
- package/dist/components/core/CardStack/CardStack.types.d.ts +139 -0
- package/dist/components/core/CardStack/index.d.ts +7 -0
- package/dist/components/core/Carousel/Carousel.d.ts +3 -0
- package/dist/components/core/Carousel/Carousel.js +82 -0
- package/dist/components/core/Carousel/Carousel.theme.d.ts +10 -0
- package/dist/components/core/Carousel/Carousel.theme.js +20 -0
- package/dist/components/core/Carousel/Carousel.types.d.ts +113 -0
- package/dist/components/core/Carousel/CarouselContent.d.ts +4 -0
- package/dist/components/core/Carousel/CarouselContent.js +52 -0
- package/dist/components/core/Carousel/CarouselContext.d.ts +3 -0
- package/dist/components/core/Carousel/CarouselContext.js +12 -0
- package/dist/components/core/Carousel/CarouselItem.d.ts +4 -0
- package/dist/components/core/Carousel/CarouselItem.js +11 -0
- package/dist/components/core/Carousel/CarouselNext.d.ts +4 -0
- package/dist/components/core/Carousel/CarouselNext.js +15 -0
- package/dist/components/core/Carousel/CarouselPrevious.d.ts +4 -0
- package/dist/components/core/Carousel/CarouselPrevious.js +15 -0
- package/dist/components/core/Carousel/index.d.ts +2 -0
- package/dist/components/core/CommandPalette/CommandItem.d.ts +51 -0
- package/dist/components/core/CommandPalette/CommandItem.js +132 -0
- package/dist/components/core/CommandPalette/CommandPalette.animations.d.ts +6 -0
- package/dist/components/core/CommandPalette/CommandPalette.animations.js +51 -0
- package/dist/components/core/CommandPalette/CommandPalette.d.ts +29 -0
- package/dist/components/core/CommandPalette/CommandPalette.js +221 -0
- package/dist/components/core/CommandPalette/CommandPalette.theme.d.ts +2 -0
- package/dist/components/core/CommandPalette/CommandPalette.theme.js +30 -0
- package/dist/components/core/CommandPalette/CommandPalette.types.d.ts +89 -0
- package/dist/components/core/CommandPalette/index.d.ts +3 -0
- package/dist/components/core/ContextMenu/ContextMenu.d.ts +15 -0
- package/dist/components/core/ContextMenu/ContextMenu.js +90 -0
- package/dist/components/core/ContextMenu/ContextMenu.theme.d.ts +11 -0
- package/dist/components/core/ContextMenu/ContextMenu.theme.js +27 -0
- package/dist/components/core/ContextMenu/ContextMenu.types.d.ts +86 -0
- package/dist/components/core/ContextMenu/ContextMenuContent.d.ts +6 -0
- package/dist/components/core/ContextMenu/ContextMenuContent.js +197 -0
- package/dist/components/core/ContextMenu/ContextMenuContext.d.ts +5 -0
- package/dist/components/core/ContextMenu/ContextMenuContext.js +22 -0
- package/dist/components/core/ContextMenu/ContextMenuItem.d.ts +7 -0
- package/dist/components/core/ContextMenu/ContextMenuItem.js +34 -0
- package/dist/components/core/ContextMenu/ContextMenuLabel.d.ts +6 -0
- package/dist/components/core/ContextMenu/ContextMenuLabel.js +15 -0
- package/dist/components/core/ContextMenu/ContextMenuSeparator.d.ts +6 -0
- package/dist/components/core/ContextMenu/ContextMenuSeparator.js +15 -0
- package/dist/components/core/ContextMenu/ContextMenuSub.d.ts +6 -0
- package/dist/components/core/ContextMenu/ContextMenuSub.js +40 -0
- package/dist/components/core/ContextMenu/ContextMenuSubContent.d.ts +6 -0
- package/dist/components/core/ContextMenu/ContextMenuSubContent.js +106 -0
- package/dist/components/core/ContextMenu/ContextMenuSubTrigger.d.ts +6 -0
- package/dist/components/core/ContextMenu/ContextMenuSubTrigger.js +60 -0
- package/dist/components/core/ContextMenu/ContextMenuTrigger.d.ts +6 -0
- package/dist/components/core/ContextMenu/ContextMenuTrigger.js +49 -0
- package/dist/components/core/ContextMenu/index.d.ts +4 -0
- package/dist/components/core/DescriptionList/DescriptionList.d.ts +5 -0
- package/dist/components/core/DescriptionList/DescriptionList.js +42 -0
- package/dist/components/core/DescriptionList/DescriptionList.theme.d.ts +2 -0
- package/dist/components/core/DescriptionList/DescriptionList.theme.js +8 -0
- package/dist/components/core/DescriptionList/DescriptionList.types.d.ts +34 -0
- package/dist/components/core/DescriptionList/index.d.ts +2 -0
- package/dist/components/core/DragDrop/DragDrop.d.ts +9 -0
- package/dist/components/core/DragDrop/DragDrop.js +218 -0
- package/dist/components/core/DragDrop/DragDrop.theme.d.ts +2 -0
- package/dist/components/core/DragDrop/DragDrop.theme.js +8 -0
- package/dist/components/core/DragDrop/DragDrop.types.d.ts +55 -0
- package/dist/components/core/DragDrop/index.d.ts +2 -0
- package/dist/components/core/Drawer/Drawer.animations.d.ts +10 -0
- package/dist/components/core/Drawer/Drawer.animations.js +108 -0
- package/dist/components/core/Drawer/Drawer.d.ts +15 -0
- package/dist/components/core/Drawer/Drawer.js +66 -0
- package/dist/components/core/Drawer/Drawer.theme.d.ts +32 -0
- package/dist/components/core/Drawer/Drawer.theme.js +47 -0
- package/dist/components/core/Drawer/Drawer.types.d.ts +68 -0
- package/dist/components/core/Drawer/DrawerContent.d.ts +5 -0
- package/dist/components/core/Drawer/DrawerContent.js +11 -0
- package/dist/components/core/Drawer/DrawerFooter.d.ts +5 -0
- package/dist/components/core/Drawer/DrawerFooter.js +11 -0
- package/dist/components/core/Drawer/index.d.ts +2 -0
- package/dist/components/core/Dropdown/Dropdown.d.ts +15 -0
- package/dist/components/core/Dropdown/Dropdown.js +93 -0
- package/dist/components/core/Dropdown/Dropdown.theme.d.ts +10 -0
- package/dist/components/core/Dropdown/Dropdown.theme.js +20 -0
- package/dist/components/core/Dropdown/Dropdown.types.d.ts +91 -0
- package/dist/components/core/Dropdown/DropdownContext.d.ts +3 -0
- package/dist/components/core/Dropdown/DropdownContext.js +12 -0
- package/dist/components/core/Dropdown/DropdownItem.d.ts +7 -0
- package/dist/components/core/Dropdown/DropdownItem.js +74 -0
- package/dist/components/core/Dropdown/DropdownMenu.d.ts +6 -0
- package/dist/components/core/Dropdown/DropdownMenu.js +225 -0
- package/dist/components/core/Dropdown/DropdownSection.d.ts +6 -0
- package/dist/components/core/Dropdown/DropdownSection.js +15 -0
- package/dist/components/core/Dropdown/DropdownSeparator.d.ts +6 -0
- package/dist/components/core/Dropdown/DropdownSeparator.js +15 -0
- package/dist/components/core/Dropdown/DropdownTrigger.d.ts +9 -0
- package/dist/components/core/Dropdown/DropdownTrigger.js +44 -0
- package/dist/components/core/Dropdown/index.d.ts +9 -0
- package/dist/components/core/Empty/Empty.d.ts +4 -0
- package/dist/components/core/Empty/Empty.js +19 -0
- package/dist/components/core/Empty/Empty.theme.d.ts +12 -0
- package/dist/components/core/Empty/Empty.theme.js +13 -0
- package/dist/components/core/Empty/Empty.types.d.ts +28 -0
- package/dist/components/core/Empty/index.d.ts +3 -0
- package/dist/components/core/Feed/Feed.d.ts +5 -0
- package/dist/components/core/Feed/Feed.js +88 -0
- package/dist/components/core/Feed/Feed.theme.d.ts +2 -0
- package/dist/components/core/Feed/Feed.theme.js +22 -0
- package/dist/components/core/Feed/Feed.types.d.ts +64 -0
- package/dist/components/core/Feed/index.d.ts +2 -0
- package/dist/components/core/KPI/KPI.d.ts +3 -0
- package/dist/components/core/KPI/KPI.js +48 -0
- package/dist/components/core/KPI/KPI.theme.d.ts +2 -0
- package/dist/components/core/KPI/KPI.theme.js +37 -0
- package/dist/components/core/KPI/KPI.types.d.ts +84 -0
- package/dist/components/core/KPI/index.d.ts +2 -0
- package/dist/components/core/Kbd/Kbd.d.ts +14 -0
- package/dist/components/core/Kbd/Kbd.js +66 -0
- package/dist/components/core/Kbd/Kbd.theme.d.ts +10 -0
- package/dist/components/core/Kbd/Kbd.theme.js +13 -0
- package/dist/components/core/Kbd/Kbd.types.d.ts +22 -0
- package/dist/components/core/Kbd/index.d.ts +2 -0
- package/dist/components/core/Link/Link.d.ts +4 -0
- package/dist/components/core/Link/Link.js +40 -0
- package/dist/components/core/Link/Link.types.d.ts +22 -0
- package/dist/components/core/Link/index.d.ts +2 -0
- package/dist/components/core/Loader/Loader.d.ts +24 -0
- package/dist/components/core/Loader/Loader.js +57 -0
- package/dist/components/core/Loader/Loader.theme.d.ts +27 -0
- package/dist/components/core/Loader/Loader.theme.js +60 -0
- package/dist/components/core/Loader/Loader.types.d.ts +71 -0
- package/dist/components/core/Loader/index.d.ts +2 -0
- package/dist/components/core/Masonry/Masonry.d.ts +4 -0
- package/dist/components/core/Masonry/Masonry.js +227 -0
- package/dist/components/core/Masonry/Masonry.theme.d.ts +9 -0
- package/dist/components/core/Masonry/Masonry.theme.js +34 -0
- package/dist/components/core/Masonry/Masonry.types.d.ts +49 -0
- package/dist/components/core/Masonry/index.d.ts +3 -0
- package/dist/components/core/MenuItem/MenuItem.d.ts +9 -0
- package/dist/components/core/MenuItem/MenuItem.js +33 -0
- package/dist/components/core/MenuItem/MenuItem.theme.d.ts +8 -0
- package/dist/components/core/MenuItem/MenuItem.theme.js +27 -0
- package/dist/components/core/MenuItem/MenuItem.types.d.ts +24 -0
- package/dist/components/core/MenuItem/index.d.ts +4 -0
- package/dist/components/core/Message/Message.d.ts +8 -0
- package/dist/components/core/Message/Message.js +109 -0
- package/dist/components/core/Message/Message.theme.d.ts +6 -0
- package/dist/components/core/Message/Message.theme.js +46 -0
- package/dist/components/core/Message/Message.types.d.ts +169 -0
- package/dist/components/core/Message/MessageActions.d.ts +8 -0
- package/dist/components/core/Message/MessageActions.js +17 -0
- package/dist/components/core/Message/MessageAvatar.d.ts +16 -0
- package/dist/components/core/Message/MessageAvatar.js +16 -0
- package/dist/components/core/Message/MessageContent.d.ts +8 -0
- package/dist/components/core/Message/MessageContent.js +22 -0
- package/dist/components/core/Message/MessageContext.d.ts +9 -0
- package/dist/components/core/Message/MessageContext.js +12 -0
- package/dist/components/core/Message/MessageTimestamp.d.ts +8 -0
- package/dist/components/core/Message/MessageTimestamp.js +18 -0
- package/dist/components/core/Message/TypeWriter.d.ts +38 -0
- package/dist/components/core/Message/TypeWriter.js +27 -0
- package/dist/components/core/Message/index.d.ts +5 -0
- package/dist/components/core/Metric/Metric.d.ts +3 -0
- package/dist/components/core/Metric/Metric.js +23 -0
- package/dist/components/core/Metric/Metric.theme.d.ts +6 -0
- package/dist/components/core/Metric/Metric.theme.js +78 -0
- package/dist/components/core/Metric/Metric.types.d.ts +92 -0
- package/dist/components/core/Metric/index.d.ts +3 -0
- package/dist/components/core/Modal/Modal.animations.d.ts +9 -0
- package/dist/components/core/Modal/Modal.animations.js +51 -0
- package/dist/components/core/Modal/Modal.d.ts +29 -0
- package/dist/components/core/Modal/Modal.js +73 -0
- package/dist/components/core/Modal/Modal.theme.d.ts +9 -0
- package/dist/components/core/Modal/Modal.theme.js +25 -0
- package/dist/components/core/Modal/Modal.types.d.ts +93 -0
- package/dist/components/core/Modal/ModalBody.d.ts +5 -0
- package/dist/components/core/Modal/ModalBody.js +41 -0
- package/dist/components/core/Modal/ModalDescription.d.ts +5 -0
- package/dist/components/core/Modal/ModalDescription.js +11 -0
- package/dist/components/core/Modal/ModalFooter.d.ts +5 -0
- package/dist/components/core/Modal/ModalFooter.js +11 -0
- package/dist/components/core/Modal/ModalHeader.d.ts +5 -0
- package/dist/components/core/Modal/ModalHeader.js +14 -0
- package/dist/components/core/Modal/ModalTitle.d.ts +5 -0
- package/dist/components/core/Modal/ModalTitle.js +11 -0
- package/dist/components/core/Modal/index.d.ts +2 -0
- package/dist/components/core/ModalStack/ModalStack.animations.d.ts +9 -0
- package/dist/components/core/ModalStack/ModalStack.animations.js +62 -0
- package/dist/components/core/ModalStack/ModalStack.d.ts +11 -0
- package/dist/components/core/ModalStack/ModalStack.js +61 -0
- package/dist/components/core/ModalStack/ModalStack.theme.d.ts +3 -0
- package/dist/components/core/ModalStack/ModalStack.theme.js +5 -0
- package/dist/components/core/ModalStack/ModalStack.types.d.ts +29 -0
- package/dist/components/core/ModalStack/ModalStackModal.d.ts +11 -0
- package/dist/components/core/ModalStack/ModalStackModal.js +50 -0
- package/dist/components/core/ModalStack/index.d.ts +2 -0
- package/dist/components/core/NavItem/NavItem.d.ts +3 -0
- package/dist/components/core/NavItem/NavItem.js +125 -0
- package/dist/components/core/NavItem/NavItem.theme.d.ts +2 -0
- package/dist/components/core/NavItem/NavItem.theme.js +27 -0
- package/dist/components/core/NavItem/NavItem.types.d.ts +168 -0
- package/dist/components/core/NavItem/index.d.ts +2 -0
- package/dist/components/core/OfflineIndicator/OfflineIndicator.d.ts +20 -0
- package/dist/components/core/OfflineIndicator/OfflineIndicator.js +101 -0
- package/dist/components/core/OfflineIndicator/OfflineIndicator.theme.d.ts +2 -0
- package/dist/components/core/OfflineIndicator/OfflineIndicator.theme.js +22 -0
- package/dist/components/core/OfflineIndicator/OfflineIndicator.types.d.ts +57 -0
- package/dist/components/core/OfflineIndicator/index.d.ts +3 -0
- package/dist/components/core/Pagination/Pagination.d.ts +7 -0
- package/dist/components/core/Pagination/Pagination.js +91 -0
- package/dist/components/core/Pagination/Pagination.theme.d.ts +14 -0
- package/dist/components/core/Pagination/Pagination.theme.js +36 -0
- package/dist/components/core/Pagination/Pagination.types.d.ts +48 -0
- package/dist/components/core/Pagination/index.d.ts +2 -0
- package/dist/components/core/Pill/Pill.animations.d.ts +32 -0
- package/dist/components/core/Pill/Pill.animations.js +25 -0
- package/dist/components/core/Pill/Pill.d.ts +38 -0
- package/dist/components/core/Pill/Pill.js +118 -0
- package/dist/components/core/Pill/Pill.theme.d.ts +8 -0
- package/dist/components/core/Pill/Pill.theme.js +44 -0
- package/dist/components/core/Pill/Pill.types.d.ts +82 -0
- package/dist/components/core/Pill/index.d.ts +3 -0
- package/dist/components/core/Popover/Popover.animations.d.ts +22 -0
- package/dist/components/core/Popover/Popover.animations.js +13 -0
- package/dist/components/core/Popover/Popover.d.ts +6 -0
- package/dist/components/core/Popover/Popover.js +72 -0
- package/dist/components/core/Popover/Popover.theme.d.ts +11 -0
- package/dist/components/core/Popover/Popover.theme.js +11 -0
- package/dist/components/core/Popover/Popover.types.d.ts +60 -0
- package/dist/components/core/Popover/PopoverContent.d.ts +7 -0
- package/dist/components/core/Popover/PopoverContent.js +136 -0
- package/dist/components/core/Popover/PopoverContext.d.ts +4 -0
- package/dist/components/core/Popover/PopoverContext.js +14 -0
- package/dist/components/core/Popover/PopoverTrigger.d.ts +3 -0
- package/dist/components/core/Popover/PopoverTrigger.js +74 -0
- package/dist/components/core/Popover/index.d.ts +5 -0
- package/dist/components/core/Progress/Progress.d.ts +28 -0
- package/dist/components/core/Progress/Progress.js +109 -0
- package/dist/components/core/Progress/Progress.theme.d.ts +5 -0
- package/dist/components/core/Progress/Progress.theme.js +33 -0
- package/dist/components/core/Progress/Progress.types.d.ts +92 -0
- package/dist/components/core/Progress/index.d.ts +2 -0
- package/dist/components/core/ProgressiveBlur/ProgressiveBlur.d.ts +34 -0
- package/dist/components/core/ProgressiveBlur/ProgressiveBlur.js +218 -0
- package/dist/components/core/ProgressiveBlur/ProgressiveBlur.theme.d.ts +9 -0
- package/dist/components/core/ProgressiveBlur/ProgressiveBlur.types.d.ts +48 -0
- package/dist/components/core/ProgressiveBlur/index.d.ts +2 -0
- package/dist/components/core/Rating/Rating.d.ts +18 -0
- package/dist/components/core/Rating/Rating.js +171 -0
- package/dist/components/core/Rating/Rating.theme.d.ts +6 -0
- package/dist/components/core/Rating/Rating.theme.js +38 -0
- package/dist/components/core/Rating/Rating.types.d.ts +115 -0
- package/dist/components/core/Rating/index.d.ts +2 -0
- package/dist/components/core/ScrollArea/ScrollArea.d.ts +24 -0
- package/dist/components/core/ScrollArea/ScrollArea.js +145 -0
- package/dist/components/core/ScrollArea/ScrollArea.theme.d.ts +6 -0
- package/dist/components/core/ScrollArea/ScrollArea.theme.js +11 -0
- package/dist/components/core/ScrollArea/ScrollArea.types.d.ts +106 -0
- package/dist/components/core/ScrollArea/index.d.ts +5 -0
- package/dist/components/core/ScrollArea/smooth/SmoothScrollEngine.d.ts +121 -0
- package/dist/components/core/ScrollArea/smooth/SmoothScrollEngine.js +513 -0
- package/dist/components/core/ScrollArea/smooth/SmoothScrollEngine.types.d.ts +145 -0
- package/dist/components/core/ScrollArea/smooth/SnapPointDetector.d.ts +48 -0
- package/dist/components/core/ScrollArea/smooth/SnapPointDetector.js +147 -0
- package/dist/components/core/ScrollArea/smooth/easings.d.ts +88 -0
- package/dist/components/core/ScrollArea/smooth/easings.js +19 -0
- package/dist/components/core/ScrollArea/smooth/effects.d.ts +53 -0
- package/dist/components/core/ScrollArea/smooth/effects.js +83 -0
- package/dist/components/core/ScrollArea/smooth/index.d.ts +12 -0
- package/dist/components/core/ScrollArea/smooth/useSmoothScroll.d.ts +26 -0
- package/dist/components/core/ScrollArea/smooth/useSmoothScroll.js +118 -0
- package/dist/components/core/ScrollArea/smooth/useSmoothScroll.types.d.ts +46 -0
- package/dist/components/core/Segmented/Segmented.d.ts +5 -0
- package/dist/components/core/Segmented/Segmented.js +66 -0
- package/dist/components/core/Segmented/Segmented.theme.d.ts +30 -0
- package/dist/components/core/Segmented/Segmented.theme.js +40 -0
- package/dist/components/core/Segmented/Segmented.types.d.ts +52 -0
- package/dist/components/core/Segmented/SegmentedContext.d.ts +16 -0
- package/dist/components/core/Segmented/SegmentedContext.js +8 -0
- package/dist/components/core/Segmented/SegmentedItem.d.ts +3 -0
- package/dist/components/core/Segmented/SegmentedItem.js +29 -0
- package/dist/components/core/Segmented/index.d.ts +2 -0
- package/dist/components/core/Separator/Separator.d.ts +3 -0
- package/dist/components/core/Separator/Separator.js +32 -0
- package/dist/components/core/Separator/Separator.theme.d.ts +2 -0
- package/dist/components/core/Separator/Separator.theme.js +19 -0
- package/dist/components/core/Separator/Separator.types.d.ts +40 -0
- package/dist/components/core/Separator/index.d.ts +3 -0
- package/dist/components/core/Sidebar/Sidebar.d.ts +3 -0
- package/dist/components/core/Sidebar/Sidebar.js +43 -0
- package/dist/components/core/Sidebar/Sidebar.theme.d.ts +2 -0
- package/dist/components/core/Sidebar/Sidebar.theme.js +16 -0
- package/dist/components/core/Sidebar/Sidebar.types.d.ts +129 -0
- package/dist/components/core/Sidebar/SidebarContent.d.ts +3 -0
- package/dist/components/core/Sidebar/SidebarContent.js +13 -0
- package/dist/components/core/Sidebar/SidebarContext.d.ts +17 -0
- package/dist/components/core/Sidebar/SidebarContext.js +38 -0
- package/dist/components/core/Sidebar/SidebarFooter.d.ts +3 -0
- package/dist/components/core/Sidebar/SidebarFooter.js +13 -0
- package/dist/components/core/Sidebar/SidebarHeader.d.ts +3 -0
- package/dist/components/core/Sidebar/SidebarHeader.js +18 -0
- package/dist/components/core/Sidebar/SidebarNav.d.ts +3 -0
- package/dist/components/core/Sidebar/SidebarNav.js +10 -0
- package/dist/components/core/Sidebar/SidebarNavGroup.d.ts +3 -0
- package/dist/components/core/Sidebar/SidebarNavGroup.js +14 -0
- package/dist/components/core/Sidebar/SidebarSubmenu.d.ts +7 -0
- package/dist/components/core/Sidebar/SidebarSubmenu.js +12 -0
- package/dist/components/core/Sidebar/SidebarToggle.d.ts +3 -0
- package/dist/components/core/Sidebar/SidebarToggle.js +28 -0
- package/dist/components/core/Sidebar/index.d.ts +10 -0
- package/dist/components/core/Skeleton/Skeleton.d.ts +24 -0
- package/dist/components/core/Skeleton/Skeleton.js +61 -0
- package/dist/components/core/Skeleton/Skeleton.theme.d.ts +15 -0
- package/dist/components/core/Skeleton/Skeleton.theme.js +18 -0
- package/dist/components/core/Skeleton/Skeleton.types.d.ts +45 -0
- package/dist/components/core/Skeleton/index.d.ts +2 -0
- package/dist/components/core/SlidingNumber/SlidingNumber.d.ts +16 -0
- package/dist/components/core/SlidingNumber/SlidingNumber.js +73 -0
- package/dist/components/core/SlidingNumber/SlidingNumber.types.d.ts +36 -0
- package/dist/components/core/SlidingNumber/index.d.ts +2 -0
- package/dist/components/core/Sortable/Sortable.animations.d.ts +48 -0
- package/dist/components/core/Sortable/Sortable.animations.js +78 -0
- package/dist/components/core/Sortable/Sortable.d.ts +4 -0
- package/dist/components/core/Sortable/Sortable.js +202 -0
- package/dist/components/core/Sortable/Sortable.theme.d.ts +2 -0
- package/dist/components/core/Sortable/Sortable.theme.js +7 -0
- package/dist/components/core/Sortable/Sortable.types.d.ts +71 -0
- package/dist/components/core/Sortable/index.d.ts +2 -0
- package/dist/components/core/Spinner/Spinner.d.ts +4 -0
- package/dist/components/core/Spinner/Spinner.js +13 -0
- package/dist/components/core/Spinner/Spinner.theme.d.ts +15 -0
- package/dist/components/core/Spinner/Spinner.theme.js +26 -0
- package/dist/components/core/Spinner/Spinner.types.d.ts +31 -0
- package/dist/components/core/Spinner/index.d.ts +2 -0
- package/dist/components/core/Table/Table.animations.d.ts +10 -0
- package/dist/components/core/Table/Table.animations.js +46 -0
- package/dist/components/core/Table/Table.d.ts +27 -0
- package/dist/components/core/Table/Table.filterUtils.d.ts +32 -0
- package/dist/components/core/Table/Table.filterUtils.js +260 -0
- package/dist/components/core/Table/Table.js +160 -0
- package/dist/components/core/Table/Table.theme.d.ts +2 -0
- package/dist/components/core/Table/Table.theme.js +57 -0
- package/dist/components/core/Table/Table.types.d.ts +373 -0
- package/dist/components/core/Table/Table.utils.d.ts +15 -0
- package/dist/components/core/Table/Table.utils.js +40 -0
- package/dist/components/core/Table/TableActions.d.ts +7 -0
- package/dist/components/core/Table/TableActions.js +62 -0
- package/dist/components/core/Table/TableActionsMenu.d.ts +5 -0
- package/dist/components/core/Table/TableActionsMenu.js +26 -0
- package/dist/components/core/Table/TableBody.d.ts +3 -0
- package/dist/components/core/Table/TableBody.js +26 -0
- package/dist/components/core/Table/TableCell.d.ts +14 -0
- package/dist/components/core/Table/TableCell.js +38 -0
- package/dist/components/core/Table/TableColumnManager.d.ts +3 -0
- package/dist/components/core/Table/TableColumnManager.js +23 -0
- package/dist/components/core/Table/TableDeclarative.d.ts +7 -0
- package/dist/components/core/Table/TableDeclarative.js +68 -0
- package/dist/components/core/Table/TableFilter.d.ts +2 -0
- package/dist/components/core/Table/TableFilter.js +221 -0
- package/dist/components/core/Table/TableHeader.d.ts +3 -0
- package/dist/components/core/Table/TableHeader.js +56 -0
- package/dist/components/core/Table/TablePagination.d.ts +7 -0
- package/dist/components/core/Table/TablePagination.js +25 -0
- package/dist/components/core/Table/TableRow.d.ts +7 -0
- package/dist/components/core/Table/TableRow.js +35 -0
- package/dist/components/core/Table/TableSelectionHeader.d.ts +7 -0
- package/dist/components/core/Table/TableSelectionHeader.js +21 -0
- package/dist/components/core/Table/hooks/index.d.ts +10 -0
- package/dist/components/core/Table/hooks/useTableColumns.d.ts +16 -0
- package/dist/components/core/Table/hooks/useTableColumns.js +67 -0
- package/dist/components/core/Table/hooks/useTableExpansion.d.ts +8 -0
- package/dist/components/core/Table/hooks/useTableExpansion.js +15 -0
- package/dist/components/core/Table/hooks/useTableFilter.d.ts +33 -0
- package/dist/components/core/Table/hooks/useTableFilter.js +72 -0
- package/dist/components/core/Table/hooks/useTablePagination.d.ts +12 -0
- package/dist/components/core/Table/hooks/useTablePagination.js +13 -0
- package/dist/components/core/Table/hooks/useTableSelection.d.ts +17 -0
- package/dist/components/core/Table/hooks/useTableSelection.js +40 -0
- package/dist/components/core/Table/index.d.ts +22 -0
- package/dist/components/core/Table/index.js +24 -0
- package/dist/components/core/Tabs/Tabs.animations.d.ts +23 -0
- package/dist/components/core/Tabs/Tabs.animations.js +84 -0
- package/dist/components/core/Tabs/Tabs.d.ts +7 -0
- package/dist/components/core/Tabs/Tabs.js +90 -0
- package/dist/components/core/Tabs/Tabs.theme.d.ts +16 -0
- package/dist/components/core/Tabs/Tabs.theme.js +22 -0
- package/dist/components/core/Tabs/Tabs.types.d.ts +142 -0
- package/dist/components/core/Tabs/TabsContent.d.ts +6 -0
- package/dist/components/core/Tabs/TabsContent.js +50 -0
- package/dist/components/core/Tabs/TabsContext.d.ts +10 -0
- package/dist/components/core/Tabs/TabsContext.js +18 -0
- package/dist/components/core/Tabs/TabsList.d.ts +6 -0
- package/dist/components/core/Tabs/TabsList.js +87 -0
- package/dist/components/core/Tabs/TabsTrigger.d.ts +6 -0
- package/dist/components/core/Tabs/TabsTrigger.js +141 -0
- package/dist/components/core/Tabs/index.d.ts +6 -0
- package/dist/components/core/Tag/Tag.animations.d.ts +3 -0
- package/dist/components/core/Tag/Tag.animations.js +31 -0
- package/dist/components/core/Tag/Tag.d.ts +14 -0
- package/dist/components/core/Tag/Tag.js +44 -0
- package/dist/components/core/Tag/Tag.theme.d.ts +2 -0
- package/dist/components/core/Tag/Tag.theme.js +21 -0
- package/dist/components/core/Tag/Tag.types.d.ts +40 -0
- package/dist/components/core/Tag/index.d.ts +3 -0
- package/dist/components/core/Timeline/Timeline.animations.d.ts +23 -0
- package/dist/components/core/Timeline/Timeline.animations.js +92 -0
- package/dist/components/core/Timeline/Timeline.d.ts +8 -0
- package/dist/components/core/Timeline/Timeline.js +47 -0
- package/dist/components/core/Timeline/Timeline.theme.d.ts +21 -0
- package/dist/components/core/Timeline/Timeline.theme.js +32 -0
- package/dist/components/core/Timeline/Timeline.types.d.ts +131 -0
- package/dist/components/core/Timeline/TimelineContent.d.ts +3 -0
- package/dist/components/core/Timeline/TimelineContent.js +21 -0
- package/dist/components/core/Timeline/TimelineItem.d.ts +4 -0
- package/dist/components/core/Timeline/TimelineItem.js +86 -0
- package/dist/components/core/Timeline/TimelineMarker.d.ts +3 -0
- package/dist/components/core/Timeline/TimelineMarker.js +39 -0
- package/dist/components/core/Timeline/index.d.ts +4 -0
- package/dist/components/core/Toast/Toast.animations.d.ts +31 -0
- package/dist/components/core/Toast/Toast.animations.js +55 -0
- package/dist/components/core/Toast/Toast.d.ts +3 -0
- package/dist/components/core/Toast/Toast.js +84 -0
- package/dist/components/core/Toast/Toast.theme.d.ts +2 -0
- package/dist/components/core/Toast/Toast.theme.js +21 -0
- package/dist/components/core/Toast/Toast.types.d.ts +129 -0
- package/dist/components/core/Toast/ToastProvider.d.ts +4 -0
- package/dist/components/core/Toast/ToastProvider.js +104 -0
- package/dist/components/core/Toast/index.d.ts +5 -0
- package/dist/components/core/Toast/useToast.d.ts +2 -0
- package/dist/components/core/Toast/useToast.js +103 -0
- package/dist/components/core/Tooltip/Tooltip.animations.d.ts +32 -0
- package/dist/components/core/Tooltip/Tooltip.animations.js +80 -0
- package/dist/components/core/Tooltip/Tooltip.d.ts +6 -0
- package/dist/components/core/Tooltip/Tooltip.js +132 -0
- package/dist/components/core/Tooltip/Tooltip.theme.d.ts +3 -0
- package/dist/components/core/Tooltip/Tooltip.theme.js +7 -0
- package/dist/components/core/Tooltip/Tooltip.types.d.ts +98 -0
- package/dist/components/core/Tooltip/index.d.ts +3 -0
- package/dist/components/core/Tooltip/useTooltipPositioning.d.ts +12 -0
- package/dist/components/core/Tree/Tree.animations.d.ts +6 -0
- package/dist/components/core/Tree/Tree.animations.js +96 -0
- package/dist/components/core/Tree/Tree.d.ts +2 -0
- package/dist/components/core/Tree/Tree.js +203 -0
- package/dist/components/core/Tree/Tree.theme.d.ts +2 -0
- package/dist/components/core/Tree/Tree.theme.js +10 -0
- package/dist/components/core/Tree/Tree.types.d.ts +62 -0
- package/dist/components/core/Tree/index.d.ts +3 -0
- package/dist/components/core/index.d.ts +55 -0
- package/dist/components/core/index.js +116 -0
- package/dist/components/effects/AIOrb/AIOrb.d.ts +6 -0
- package/dist/components/effects/AIOrb/AIOrb.js +16 -0
- package/dist/components/effects/AIOrb/AIOrb.types.d.ts +12 -0
- package/dist/components/effects/AIOrb/index.d.ts +3 -0
- package/dist/components/effects/AIOrb/variants/DotSphere/DotSphere.d.ts +3 -0
- package/dist/components/effects/AIOrb/variants/DotSphere/DotSphere.js +136 -0
- package/dist/components/effects/AIOrb/variants/DotSphere/DotSphere.shaders.d.ts +16 -0
- package/dist/components/effects/AIOrb/variants/DotSphere/DotSphere.shaders.js +311 -0
- package/dist/components/effects/AIOrb/variants/DotSphere/DotSphere.types.d.ts +37 -0
- package/dist/components/effects/AIOrb/variants/DotSphere/index.d.ts +2 -0
- package/dist/components/effects/AIOrb/variants/Liquid/Liquid.d.ts +3 -0
- package/dist/components/effects/AIOrb/variants/Liquid/Liquid.js +108 -0
- package/dist/components/effects/AIOrb/variants/Liquid/Liquid.noise.d.ts +4 -0
- package/dist/components/effects/AIOrb/variants/Liquid/Liquid.noise.js +138 -0
- package/dist/components/effects/AIOrb/variants/Liquid/Liquid.shaders.d.ts +8 -0
- package/dist/components/effects/AIOrb/variants/Liquid/Liquid.shaders.js +64 -0
- package/dist/components/effects/AIOrb/variants/Liquid/Liquid.types.d.ts +47 -0
- package/dist/components/effects/AIOrb/variants/Liquid/index.d.ts +2 -0
- package/dist/components/effects/AIOrb/variants/index.d.ts +4 -0
- package/dist/components/effects/Animated/Animated.animations.d.ts +7 -0
- package/dist/components/effects/Animated/Animated.animations.js +49 -0
- package/dist/components/effects/Animated/Animated.d.ts +6 -0
- package/dist/components/effects/Animated/Animated.js +35 -0
- package/dist/components/effects/Animated/Animated.types.d.ts +23 -0
- package/dist/components/effects/Animated/AnimatedItem.d.ts +2 -0
- package/dist/components/effects/Animated/AnimatedItem.js +41 -0
- package/dist/components/effects/Animated/index.d.ts +2 -0
- package/dist/components/effects/CustomCursor/CustomCursor.animations.d.ts +16 -0
- package/dist/components/effects/CustomCursor/CustomCursor.animations.js +46 -0
- package/dist/components/effects/CustomCursor/CustomCursor.d.ts +35 -0
- package/dist/components/effects/CustomCursor/CustomCursor.js +323 -0
- package/dist/components/effects/CustomCursor/CustomCursor.theme.d.ts +6 -0
- package/dist/components/effects/CustomCursor/CustomCursor.theme.js +43 -0
- package/dist/components/effects/CustomCursor/CustomCursor.types.d.ts +101 -0
- package/dist/components/effects/CustomCursor/index.d.ts +4 -0
- package/dist/components/effects/GlassEffect/GlassEffect.d.ts +15 -0
- package/dist/components/effects/GlassEffect/GlassEffect.js +38 -0
- package/dist/components/effects/GlassEffect/GlassEffect.types.d.ts +19 -0
- package/dist/components/effects/GlassEffect/index.d.ts +2 -0
- package/dist/components/effects/GlassSurface/GlassSurface.d.ts +8 -0
- package/dist/components/effects/GlassSurface/GlassSurface.js +244 -0
- package/dist/components/effects/GlassSurface/GlassSurface.types.d.ts +52 -0
- package/dist/components/effects/GlassSurface/index.d.ts +2 -0
- package/dist/components/effects/Overlay/Overlay.d.ts +31 -0
- package/dist/components/effects/Overlay/Overlay.js +145 -0
- package/dist/components/effects/Overlay/Overlay.theme.d.ts +13 -0
- package/dist/components/effects/Overlay/Overlay.theme.js +22 -0
- package/dist/components/effects/Overlay/Overlay.types.d.ts +61 -0
- package/dist/components/effects/Overlay/index.d.ts +3 -0
- package/dist/components/effects/SpotlightBorder/SpotlightBorder.d.ts +18 -0
- package/dist/components/effects/SpotlightBorder/SpotlightBorder.js +214 -0
- package/dist/components/effects/SpotlightBorder/SpotlightBorder.shaders.d.ts +7 -0
- package/dist/components/effects/SpotlightBorder/SpotlightBorder.shaders.js +152 -0
- package/dist/components/effects/SpotlightBorder/SpotlightBorder.types.d.ts +61 -0
- package/dist/components/effects/SpotlightBorder/SpotlightBorder.types.js +8 -0
- package/dist/components/effects/SpotlightBorder/index.d.ts +2 -0
- package/dist/components/effects/index.d.ts +14 -0
- package/dist/components/effects/index.js +7 -0
- package/dist/components/forms/Checkbox/Checkbox.d.ts +6 -0
- package/dist/components/forms/Checkbox/Checkbox.js +43 -0
- package/dist/components/forms/Checkbox/Checkbox.theme.d.ts +6 -0
- package/dist/components/forms/Checkbox/Checkbox.theme.js +42 -0
- package/dist/components/forms/Checkbox/Checkbox.types.d.ts +35 -0
- package/dist/components/forms/Checkbox/index.d.ts +3 -0
- package/dist/components/forms/ColorPicker/ColorPicker.animations.d.ts +17 -0
- package/dist/components/forms/ColorPicker/ColorPicker.animations.js +34 -0
- package/dist/components/forms/ColorPicker/ColorPicker.d.ts +27 -0
- package/dist/components/forms/ColorPicker/ColorPicker.js +174 -0
- package/dist/components/forms/ColorPicker/ColorPicker.theme.d.ts +6 -0
- package/dist/components/forms/ColorPicker/ColorPicker.theme.js +20 -0
- package/dist/components/forms/ColorPicker/ColorPicker.types.d.ts +219 -0
- package/dist/components/forms/ColorPicker/ColorPicker2DCanvas.d.ts +10 -0
- package/dist/components/forms/ColorPicker/ColorPicker2DCanvas.js +91 -0
- package/dist/components/forms/ColorPicker/ColorPickerContent.d.ts +7 -0
- package/dist/components/forms/ColorPicker/ColorPickerContent.js +75 -0
- package/dist/components/forms/ColorPicker/ColorPickerEyeDropper.d.ts +7 -0
- package/dist/components/forms/ColorPicker/ColorPickerEyeDropper.js +50 -0
- package/dist/components/forms/ColorPicker/ColorPickerFormatSelector.d.ts +7 -0
- package/dist/components/forms/ColorPicker/ColorPickerFormatSelector.js +27 -0
- package/dist/components/forms/ColorPicker/ColorPickerInput.d.ts +7 -0
- package/dist/components/forms/ColorPicker/ColorPickerInput.js +97 -0
- package/dist/components/forms/ColorPicker/ColorPickerPresets.d.ts +7 -0
- package/dist/components/forms/ColorPicker/ColorPickerPresets.js +56 -0
- package/dist/components/forms/ColorPicker/ColorPickerSliders.d.ts +7 -0
- package/dist/components/forms/ColorPicker/ColorPickerSliders.js +44 -0
- package/dist/components/forms/ColorPicker/ColorPickerSwatch.d.ts +7 -0
- package/dist/components/forms/ColorPicker/ColorPickerSwatch.js +37 -0
- package/dist/components/forms/ColorPicker/ColorPickerTrigger.d.ts +7 -0
- package/dist/components/forms/ColorPicker/ColorPickerTrigger.js +38 -0
- package/dist/components/forms/ColorPicker/colorUtils.d.ts +121 -0
- package/dist/components/forms/ColorPicker/colorUtils.js +324 -0
- package/dist/components/forms/ColorPicker/index.d.ts +17 -0
- package/dist/components/forms/Combobox/Combobox.d.ts +3 -0
- package/dist/components/forms/Combobox/Combobox.js +402 -0
- package/dist/components/forms/Combobox/Combobox.theme.d.ts +6 -0
- package/dist/components/forms/Combobox/Combobox.theme.js +60 -0
- package/dist/components/forms/Combobox/Combobox.types.d.ts +111 -0
- package/dist/components/forms/Combobox/index.d.ts +3 -0
- package/dist/components/forms/DatePicker/DatePicker.animations.d.ts +13 -0
- package/dist/components/forms/DatePicker/DatePicker.animations.js +33 -0
- package/dist/components/forms/DatePicker/DatePicker.d.ts +38 -0
- package/dist/components/forms/DatePicker/DatePicker.js +136 -0
- package/dist/components/forms/DatePicker/DatePicker.theme.d.ts +9 -0
- package/dist/components/forms/DatePicker/DatePicker.theme.js +54 -0
- package/dist/components/forms/DatePicker/DatePicker.types.d.ts +144 -0
- package/dist/components/forms/DatePicker/DatePickerContent.d.ts +7 -0
- package/dist/components/forms/DatePicker/DatePickerContent.js +229 -0
- package/dist/components/forms/DatePicker/DatePickerPresets.d.ts +12 -0
- package/dist/components/forms/DatePicker/DatePickerPresets.js +41 -0
- package/dist/components/forms/DatePicker/DatePickerTrigger.d.ts +7 -0
- package/dist/components/forms/DatePicker/DatePickerTrigger.js +34 -0
- package/dist/components/forms/DatePicker/index.d.ts +3 -0
- package/dist/components/forms/FileUpload/FileUpload.d.ts +23 -0
- package/dist/components/forms/FileUpload/FileUpload.js +212 -0
- package/dist/components/forms/FileUpload/FileUpload.theme.d.ts +25 -0
- package/dist/components/forms/FileUpload/FileUpload.theme.js +36 -0
- package/dist/components/forms/FileUpload/FileUpload.types.d.ts +94 -0
- package/dist/components/forms/FileUpload/index.d.ts +3 -0
- package/dist/components/forms/FormLabel/FormLabel.d.ts +6 -0
- package/dist/components/forms/FormLabel/FormLabel.js +14 -0
- package/dist/components/forms/FormLabel/FormLabel.theme.d.ts +5 -0
- package/dist/components/forms/FormLabel/FormLabel.theme.js +17 -0
- package/dist/components/forms/FormLabel/FormLabel.types.d.ts +28 -0
- package/dist/components/forms/FormLabel/index.d.ts +3 -0
- package/dist/components/forms/Input/Input.d.ts +3 -0
- package/dist/components/forms/Input/Input.js +289 -0
- package/dist/components/forms/Input/Input.theme.d.ts +6 -0
- package/dist/components/forms/Input/Input.theme.js +116 -0
- package/dist/components/forms/Input/Input.types.d.ts +139 -0
- package/dist/components/forms/Input/index.d.ts +3 -0
- package/dist/components/forms/Input/inputMasks.d.ts +97 -0
- package/dist/components/forms/Input/inputMasks.js +431 -0
- package/dist/components/forms/InputAddress/InputAddress.d.ts +19 -0
- package/dist/components/forms/InputAddress/InputAddress.js +69 -0
- package/dist/components/forms/InputAddress/InputAddress.theme.d.ts +26 -0
- package/dist/components/forms/InputAddress/InputAddress.theme.js +35 -0
- package/dist/components/forms/InputAddress/InputAddress.types.d.ts +97 -0
- package/dist/components/forms/InputAddress/index.d.ts +3 -0
- package/dist/components/forms/InputCounter/InputCounter.d.ts +29 -0
- package/dist/components/forms/InputCounter/InputCounter.js +167 -0
- package/dist/components/forms/InputCounter/InputCounter.theme.d.ts +6 -0
- package/dist/components/forms/InputCounter/InputCounter.theme.js +11 -0
- package/dist/components/forms/InputCounter/InputCounter.types.d.ts +54 -0
- package/dist/components/forms/InputCounter/index.d.ts +3 -0
- package/dist/components/forms/InputCreditCard/InputCreditCard.animations.d.ts +9 -0
- package/dist/components/forms/InputCreditCard/InputCreditCard.d.ts +19 -0
- package/dist/components/forms/InputCreditCard/InputCreditCard.js +76 -0
- package/dist/components/forms/InputCreditCard/InputCreditCard.theme.d.ts +31 -0
- package/dist/components/forms/InputCreditCard/InputCreditCard.theme.js +42 -0
- package/dist/components/forms/InputCreditCard/InputCreditCard.types.d.ts +88 -0
- package/dist/components/forms/InputCreditCard/index.d.ts +4 -0
- package/dist/components/forms/InputDate/InputDate.d.ts +28 -0
- package/dist/components/forms/InputDate/InputDate.js +156 -0
- package/dist/components/forms/InputDate/InputDate.theme.d.ts +11 -0
- package/dist/components/forms/InputDate/InputDate.theme.js +13 -0
- package/dist/components/forms/InputDate/InputDate.types.d.ts +25 -0
- package/dist/components/forms/InputDate/index.d.ts +3 -0
- package/dist/components/forms/InputOTP/InputOTP.d.ts +18 -0
- package/dist/components/forms/InputOTP/InputOTP.js +175 -0
- package/dist/components/forms/InputOTP/InputOTP.theme.d.ts +6 -0
- package/dist/components/forms/InputOTP/InputOTP.theme.js +22 -0
- package/dist/components/forms/InputOTP/InputOTP.types.d.ts +49 -0
- package/dist/components/forms/InputOTP/index.d.ts +3 -0
- package/dist/components/forms/InputTag/InputTag.d.ts +40 -0
- package/dist/components/forms/InputTag/InputTag.js +489 -0
- package/dist/components/forms/InputTag/InputTag.theme.d.ts +2 -0
- package/dist/components/forms/InputTag/InputTag.theme.js +16 -0
- package/dist/components/forms/InputTag/InputTag.types.d.ts +107 -0
- package/dist/components/forms/InputTag/index.d.ts +3 -0
- package/dist/components/forms/Radio/Radio.d.ts +6 -0
- package/dist/components/forms/Radio/Radio.js +29 -0
- package/dist/components/forms/Radio/Radio.theme.d.ts +5 -0
- package/dist/components/forms/Radio/Radio.theme.js +16 -0
- package/dist/components/forms/Radio/Radio.types.d.ts +35 -0
- package/dist/components/forms/Radio/index.d.ts +3 -0
- package/dist/components/forms/RichTextEditor/RichTextEditor.animations.d.ts +7 -0
- package/dist/components/forms/RichTextEditor/RichTextEditor.animations.js +31 -0
- package/dist/components/forms/RichTextEditor/RichTextEditor.d.ts +3 -0
- package/dist/components/forms/RichTextEditor/RichTextEditor.js +702 -0
- package/dist/components/forms/RichTextEditor/RichTextEditor.theme.d.ts +9 -0
- package/dist/components/forms/RichTextEditor/RichTextEditor.theme.js +54 -0
- package/dist/components/forms/RichTextEditor/RichTextEditor.types.d.ts +137 -0
- package/dist/components/forms/RichTextEditor/index.d.ts +3 -0
- package/dist/components/forms/Select/Select.animations.d.ts +12 -0
- package/dist/components/forms/Select/Select.animations.js +32 -0
- package/dist/components/forms/Select/Select.d.ts +93 -0
- package/dist/components/forms/Select/Select.js +458 -0
- package/dist/components/forms/Select/Select.theme.d.ts +6 -0
- package/dist/components/forms/Select/Select.theme.js +67 -0
- package/dist/components/forms/Select/Select.types.d.ts +212 -0
- package/dist/components/forms/Select/index.d.ts +7 -0
- package/dist/components/forms/Select/useSelectState.d.ts +72 -0
- package/dist/components/forms/Select/useSelectState.js +171 -0
- package/dist/components/forms/Signature/Signature.d.ts +3 -0
- package/dist/components/forms/Signature/Signature.js +152 -0
- package/dist/components/forms/Signature/Signature.theme.d.ts +6 -0
- package/dist/components/forms/Signature/Signature.theme.js +32 -0
- package/dist/components/forms/Signature/Signature.types.d.ts +93 -0
- package/dist/components/forms/Signature/index.d.ts +3 -0
- package/dist/components/forms/Slider/Slider.d.ts +3 -0
- package/dist/components/forms/Slider/Slider.js +237 -0
- package/dist/components/forms/Slider/Slider.theme.d.ts +17 -0
- package/dist/components/forms/Slider/Slider.theme.js +26 -0
- package/dist/components/forms/Slider/Slider.types.d.ts +109 -0
- package/dist/components/forms/Slider/index.d.ts +3 -0
- package/dist/components/forms/Switch/Switch.d.ts +6 -0
- package/dist/components/forms/Switch/Switch.js +52 -0
- package/dist/components/forms/Switch/Switch.theme.d.ts +18 -0
- package/dist/components/forms/Switch/Switch.theme.js +18 -0
- package/dist/components/forms/Switch/Switch.types.d.ts +47 -0
- package/dist/components/forms/Switch/index.d.ts +3 -0
- package/dist/components/forms/Textarea/Textarea.d.ts +3 -0
- package/dist/components/forms/Textarea/Textarea.js +52 -0
- package/dist/components/forms/Textarea/Textarea.theme.d.ts +6 -0
- package/dist/components/forms/Textarea/Textarea.theme.js +26 -0
- package/dist/components/forms/Textarea/Textarea.types.d.ts +57 -0
- package/dist/components/forms/Textarea/index.d.ts +3 -0
- package/dist/components/forms/TimePicker/TimePicker.animations.d.ts +131 -0
- package/dist/components/forms/TimePicker/TimePicker.d.ts +26 -0
- package/dist/components/forms/TimePicker/TimePicker.js +454 -0
- package/dist/components/forms/TimePicker/TimePicker.theme.d.ts +9 -0
- package/dist/components/forms/TimePicker/TimePicker.theme.js +87 -0
- package/dist/components/forms/TimePicker/TimePicker.types.d.ts +257 -0
- package/dist/components/forms/TimePicker/TimePickerContent.d.ts +12 -0
- package/dist/components/forms/TimePicker/TimePickerContent.js +113 -0
- package/dist/components/forms/TimePicker/TimePickerTrigger.d.ts +8 -0
- package/dist/components/forms/TimePicker/TimePickerTrigger.js +40 -0
- package/dist/components/forms/TimePicker/WheelColumn.d.ts +14 -0
- package/dist/components/forms/TimePicker/WheelColumn.js +87 -0
- package/dist/components/forms/TimePicker/index.d.ts +9 -0
- package/dist/components/forms/TimePicker/useWheelPicker.d.ts +37 -0
- package/dist/components/forms/TimePicker/useWheelPicker.js +138 -0
- package/dist/components/forms/forms.theme.d.ts +68 -0
- package/dist/components/forms/forms.theme.js +121 -0
- package/dist/components/forms/index.d.ts +62 -0
- package/dist/components/forms/index.js +63 -0
- package/dist/hooks/index.d.ts +15 -0
- package/dist/hooks/useClickOutside.d.ts +7 -0
- package/dist/hooks/useClickOutside.js +28 -0
- package/dist/hooks/useFocusTrap.d.ts +10 -0
- package/dist/hooks/useFocusTrap.js +79 -0
- package/dist/hooks/useFormStateMachine.d.ts +31 -0
- package/dist/hooks/useIsClient.d.ts +7 -0
- package/dist/hooks/useIsClient.js +17 -0
- package/dist/hooks/useNetworkStatus.d.ts +40 -0
- package/dist/hooks/useNetworkStatus.js +90 -0
- package/dist/hooks/useOverlay.d.ts +47 -0
- package/dist/hooks/useOverlay.js +71 -0
- package/dist/hooks/useScaleBackground.d.ts +34 -0
- package/dist/hooks/useScaleBackground.js +168 -0
- package/dist/hooks/useSelectPortal.d.ts +28 -0
- package/dist/hooks/useSelectPortal.js +325 -0
- package/dist/hooks/useSlidingNumber.d.ts +34 -0
- package/dist/hooks/useSlidingNumber.js +67 -0
- package/dist/hooks/useStreamingSSE.d.ts +80 -0
- package/dist/hooks/useStreamingSSE.js +236 -0
- package/dist/hooks/useTypewriter.d.ts +51 -0
- package/dist/hooks/useTypewriter.js +120 -0
- package/dist/icons/Icon.d.ts +24 -0
- package/dist/icons/Icon.js +30 -0
- package/dist/icons/Index.d.ts +16 -0
- package/dist/icons/core/ChevronUpDown.d.ts +1 -0
- package/dist/icons/core/ChevronUpDown.js +7 -0
- package/dist/icons/core/DollarIcon.d.ts +1 -0
- package/dist/icons/core/DollarIcon.js +5 -0
- package/dist/icons/core/LockIcon.d.ts +1 -0
- package/dist/icons/core/LockIcon.js +5 -0
- package/dist/icons/core/MinusIcon.d.ts +1 -0
- package/dist/icons/core/MinusIcon.js +7 -0
- package/dist/icons/core/PlusIcon.d.ts +1 -0
- package/dist/icons/core/PlusIcon.js +7 -0
- package/dist/icons/core/SearchIcon.d.ts +1 -0
- package/dist/icons/core/SearchIcon.js +7 -0
- package/dist/icons/core/TickIcon.d.ts +1 -0
- package/dist/icons/core/TickIcon.js +5 -0
- package/dist/icons/core/User.d.ts +1 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +219 -0
- package/dist/styles.css +2 -0
- package/dist/theme/ThemeContext.d.ts +15 -0
- package/dist/utils/actionQueue.d.ts +113 -0
- package/dist/utils/actionQueue.js +203 -0
- package/dist/utils/calendarUtils.d.ts +60 -0
- package/dist/utils/cn.d.ts +2 -0
- package/dist/utils/cn.js +8 -0
- package/dist/utils/dateUtils.d.ts +118 -0
- package/dist/utils/dateUtils.js +87 -0
- package/dist/utils/debounce.d.ts +9 -0
- package/dist/utils/debounce.js +17 -0
- package/dist/utils/formValidation.d.ts +20 -0
- package/dist/utils/index.d.ts +15 -0
- package/dist/utils/optimisticErrors.d.ts +79 -0
- package/dist/utils/optimisticErrors.js +27 -0
- package/dist/utils/performanceMonitor.d.ts +56 -0
- package/dist/utils/performanceMonitor.js +102 -0
- package/dist/utils/retryUtils.d.ts +49 -0
- package/dist/utils/retryUtils.js +53 -0
- package/dist/utils/smoothScrollUtils.d.ts +92 -0
- package/dist/utils/smoothScrollUtils.js +122 -0
- package/dist/utils/sseFormatParsers.d.ts +64 -0
- package/dist/utils/sseFormatParsers.js +124 -0
- package/dist/utils/stateMachine.d.ts +43 -0
- package/dist/utils/streamingErrors.d.ts +70 -0
- package/dist/utils/streamingErrors.js +93 -0
- package/dist/utils/typeaheadUtils.d.ts +35 -0
- package/dist/utils/typeaheadUtils.js +60 -0
- package/dist/utils/useClickOutside.d.ts +1 -0
- package/package.json +168 -0
- package/tailwind.preset.cjs +102 -0
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { ChartDataPoint, ChartConfig } from '../types/chart.types';
|
|
2
|
+
/**
|
|
3
|
+
* Validation errors that can occur in chart components
|
|
4
|
+
*/
|
|
5
|
+
export interface ChartValidationError {
|
|
6
|
+
type: 'data' | 'config' | 'props' | 'calculation';
|
|
7
|
+
message: string;
|
|
8
|
+
field?: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Result of chart validation
|
|
12
|
+
*/
|
|
13
|
+
export interface ChartValidationResult {
|
|
14
|
+
isValid: boolean;
|
|
15
|
+
errors: ChartValidationError[];
|
|
16
|
+
warnings: ChartValidationError[];
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Safe math operations to prevent division by zero and other edge cases
|
|
20
|
+
*/
|
|
21
|
+
export declare class SafeMath {
|
|
22
|
+
/**
|
|
23
|
+
* Safe division that returns 0 when dividing by zero
|
|
24
|
+
*/
|
|
25
|
+
static divide(numerator: number, denominator: number, fallback?: number): number;
|
|
26
|
+
/**
|
|
27
|
+
* Safe percentage calculation
|
|
28
|
+
*/
|
|
29
|
+
static percentage(value: number, total: number, fallback?: number): number;
|
|
30
|
+
/**
|
|
31
|
+
* Safe Math.max that handles empty arrays
|
|
32
|
+
*/
|
|
33
|
+
static max(values: number[], fallback?: number): number;
|
|
34
|
+
/**
|
|
35
|
+
* Safe Math.min that handles empty arrays
|
|
36
|
+
*/
|
|
37
|
+
static min(values: number[], fallback?: number): number;
|
|
38
|
+
/**
|
|
39
|
+
* Safe scale calculation for chart positioning
|
|
40
|
+
*/
|
|
41
|
+
static scale(value: number, min: number, max: number, targetMin?: number, targetMax?: number): number;
|
|
42
|
+
/**
|
|
43
|
+
* Clamp a value between min and max
|
|
44
|
+
*/
|
|
45
|
+
static clamp(value: number, min: number, max: number): number;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Validates chart data array
|
|
49
|
+
*/
|
|
50
|
+
export declare function validateChartData(data: unknown): ChartValidationResult;
|
|
51
|
+
/**
|
|
52
|
+
* Validates chart configuration
|
|
53
|
+
*/
|
|
54
|
+
export declare function validateChartConfig(config: unknown): ChartValidationResult;
|
|
55
|
+
/**
|
|
56
|
+
* Validates that data and config are compatible
|
|
57
|
+
*/
|
|
58
|
+
export declare function validateDataConfigCompatibility(data: ChartDataPoint[], config: ChartConfig): ChartValidationResult;
|
|
59
|
+
/**
|
|
60
|
+
* Sanitizes chart data by removing invalid entries and normalizing values
|
|
61
|
+
*/
|
|
62
|
+
export declare function sanitizeChartData(data: ChartDataPoint[]): ChartDataPoint[];
|
|
63
|
+
/**
|
|
64
|
+
* Calculates safe min/max values for chart scales using nice tick boundaries.
|
|
65
|
+
*/
|
|
66
|
+
export declare function calculateSafeScaleRange(data: ChartDataPoint[], config: ChartConfig, options?: {
|
|
67
|
+
minValue?: number;
|
|
68
|
+
maxValue?: number;
|
|
69
|
+
includeZero?: boolean;
|
|
70
|
+
padding?: number;
|
|
71
|
+
symmetric?: boolean;
|
|
72
|
+
}): {
|
|
73
|
+
min: number;
|
|
74
|
+
max: number;
|
|
75
|
+
hasValidData: boolean;
|
|
76
|
+
};
|
|
77
|
+
/**
|
|
78
|
+
* Heckbert's "nice numbers" algorithm.
|
|
79
|
+
* Returns a "nice" number approximately equal to x.
|
|
80
|
+
* When round=true, rounds to nearest nice number; when false, ceiling.
|
|
81
|
+
* Nice numbers are from the {1, 2, 5} × 10^n sequence.
|
|
82
|
+
*/
|
|
83
|
+
export declare function niceNum(x: number, round?: boolean): number;
|
|
84
|
+
/**
|
|
85
|
+
* Generate uniformly-spaced "nice" tick values for a given data range.
|
|
86
|
+
* Uses Heckbert's algorithm to produce ticks from the {1,2,5}×10^n sequence.
|
|
87
|
+
* Zero naturally falls on the grid when the range spans zero — no injection needed.
|
|
88
|
+
*/
|
|
89
|
+
export declare function generateNiceTicks(dataMin: number, dataMax: number, desiredTickCount?: number): {
|
|
90
|
+
ticks: number[];
|
|
91
|
+
niceMin: number;
|
|
92
|
+
niceMax: number;
|
|
93
|
+
step: number;
|
|
94
|
+
};
|
|
95
|
+
/**
|
|
96
|
+
* Comprehensive chart validation that combines all checks
|
|
97
|
+
*/
|
|
98
|
+
export declare function validateChart(data: unknown, config: unknown): ChartValidationResult;
|
|
@@ -0,0 +1,364 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Safe math operations to prevent division by zero and other edge cases
|
|
3
|
+
*/
|
|
4
|
+
class SafeMath {
|
|
5
|
+
/**
|
|
6
|
+
* Safe division that returns 0 when dividing by zero
|
|
7
|
+
*/
|
|
8
|
+
static divide(numerator, denominator, fallback = 0) {
|
|
9
|
+
if (denominator === 0 || !isFinite(denominator)) {
|
|
10
|
+
return fallback;
|
|
11
|
+
}
|
|
12
|
+
const result = numerator / denominator;
|
|
13
|
+
return isFinite(result) ? result : fallback;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Safe percentage calculation
|
|
17
|
+
*/
|
|
18
|
+
static percentage(value, total, fallback = 0) {
|
|
19
|
+
return this.divide(value * 100, total, fallback);
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Safe Math.max that handles empty arrays
|
|
23
|
+
*/
|
|
24
|
+
static max(values, fallback = 0) {
|
|
25
|
+
if (!Array.isArray(values) || values.length === 0) {
|
|
26
|
+
return fallback;
|
|
27
|
+
}
|
|
28
|
+
const filtered = values.filter(v => isFinite(v));
|
|
29
|
+
return filtered.length > 0 ? Math.max(...filtered) : fallback;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Safe Math.min that handles empty arrays
|
|
33
|
+
*/
|
|
34
|
+
static min(values, fallback = 0) {
|
|
35
|
+
if (!Array.isArray(values) || values.length === 0) {
|
|
36
|
+
return fallback;
|
|
37
|
+
}
|
|
38
|
+
const filtered = values.filter(v => isFinite(v));
|
|
39
|
+
return filtered.length > 0 ? Math.min(...filtered) : fallback;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Safe scale calculation for chart positioning
|
|
43
|
+
*/
|
|
44
|
+
static scale(value, min, max, targetMin = 0, targetMax = 1) {
|
|
45
|
+
const range = max - min;
|
|
46
|
+
if (range === 0) {
|
|
47
|
+
return targetMin + (targetMax - targetMin) / 2; // Return middle of target range
|
|
48
|
+
}
|
|
49
|
+
const ratio = this.divide(value - min, range);
|
|
50
|
+
return targetMin + ratio * (targetMax - targetMin);
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Clamp a value between min and max
|
|
54
|
+
*/
|
|
55
|
+
static clamp(value, min, max) {
|
|
56
|
+
return Math.min(Math.max(value, min), max);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Validates chart data array
|
|
61
|
+
*/
|
|
62
|
+
function validateChartData(data) {
|
|
63
|
+
const errors = [];
|
|
64
|
+
const warnings = [];
|
|
65
|
+
// Check if data exists
|
|
66
|
+
if (!data) {
|
|
67
|
+
errors.push({
|
|
68
|
+
type: 'data',
|
|
69
|
+
message: 'Chart data is required but was not provided',
|
|
70
|
+
field: 'data'
|
|
71
|
+
});
|
|
72
|
+
return { isValid: false, errors, warnings };
|
|
73
|
+
}
|
|
74
|
+
// Check if data is an array
|
|
75
|
+
if (!Array.isArray(data)) {
|
|
76
|
+
errors.push({
|
|
77
|
+
type: 'data',
|
|
78
|
+
message: 'Chart data must be an array',
|
|
79
|
+
field: 'data'
|
|
80
|
+
});
|
|
81
|
+
return { isValid: false, errors, warnings };
|
|
82
|
+
}
|
|
83
|
+
// Check if data is empty
|
|
84
|
+
if (data.length === 0) {
|
|
85
|
+
warnings.push({
|
|
86
|
+
type: 'data',
|
|
87
|
+
message: 'Chart data array is empty',
|
|
88
|
+
field: 'data'
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
// Validate each data item
|
|
92
|
+
data.forEach((item, index) => {
|
|
93
|
+
if (!item || typeof item !== 'object') {
|
|
94
|
+
errors.push({
|
|
95
|
+
type: 'data',
|
|
96
|
+
message: `Data item at index ${index} must be an object`,
|
|
97
|
+
field: `data[${index}]`
|
|
98
|
+
});
|
|
99
|
+
return;
|
|
100
|
+
}
|
|
101
|
+
// Check for at least one numeric value
|
|
102
|
+
const hasNumericValue = Object.values(item).some(value => typeof value === 'number' && isFinite(value));
|
|
103
|
+
// Only warn about missing numeric values if there are no valid numeric values
|
|
104
|
+
// in the entire dataset. Individual items with null/undefined values are
|
|
105
|
+
// handled gracefully by chart components (e.g., using averages for bar charts)
|
|
106
|
+
if (!hasNumericValue) {
|
|
107
|
+
const allDataHasNumericValues = data.some(dataItem => dataItem && typeof dataItem === 'object' &&
|
|
108
|
+
Object.values(dataItem).some(value => typeof value === 'number' && isFinite(value)));
|
|
109
|
+
if (!allDataHasNumericValues) {
|
|
110
|
+
warnings.push({
|
|
111
|
+
type: 'data',
|
|
112
|
+
message: `Data item at index ${index} has no valid numeric values`,
|
|
113
|
+
field: `data[${index}]`
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
});
|
|
118
|
+
return { isValid: errors.length === 0, errors, warnings };
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* Validates chart configuration
|
|
122
|
+
*/
|
|
123
|
+
function validateChartConfig(config) {
|
|
124
|
+
const errors = [];
|
|
125
|
+
const warnings = [];
|
|
126
|
+
// Check if config exists
|
|
127
|
+
if (!config) {
|
|
128
|
+
errors.push({
|
|
129
|
+
type: 'config',
|
|
130
|
+
message: 'Chart config is required but was not provided',
|
|
131
|
+
field: 'config'
|
|
132
|
+
});
|
|
133
|
+
return { isValid: false, errors, warnings };
|
|
134
|
+
}
|
|
135
|
+
// Check if config is an object
|
|
136
|
+
if (typeof config !== 'object') {
|
|
137
|
+
errors.push({
|
|
138
|
+
type: 'config',
|
|
139
|
+
message: 'Chart config must be an object',
|
|
140
|
+
field: 'config'
|
|
141
|
+
});
|
|
142
|
+
return { isValid: false, errors, warnings };
|
|
143
|
+
}
|
|
144
|
+
// Check if config has any keys
|
|
145
|
+
const configKeys = Object.keys(config);
|
|
146
|
+
if (configKeys.length === 0) {
|
|
147
|
+
warnings.push({
|
|
148
|
+
type: 'config',
|
|
149
|
+
message: 'Chart config is empty - no data series will be displayed',
|
|
150
|
+
field: 'config'
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
return { isValid: errors.length === 0, errors, warnings };
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* Validates that data and config are compatible
|
|
157
|
+
*/
|
|
158
|
+
function validateDataConfigCompatibility(data, config) {
|
|
159
|
+
const errors = [];
|
|
160
|
+
const warnings = [];
|
|
161
|
+
const configKeys = Object.keys(config);
|
|
162
|
+
const dataKeys = data.length > 0 ? Object.keys(data[0]) : [];
|
|
163
|
+
// Check if any config keys exist in data
|
|
164
|
+
const validKeys = configKeys.filter(key => dataKeys.includes(key) &&
|
|
165
|
+
data.some(item => typeof item[key] === 'number' && isFinite(item[key])));
|
|
166
|
+
if (validKeys.length === 0) {
|
|
167
|
+
errors.push({
|
|
168
|
+
type: 'config',
|
|
169
|
+
message: 'No config keys match valid numeric data fields',
|
|
170
|
+
field: 'config'
|
|
171
|
+
});
|
|
172
|
+
}
|
|
173
|
+
// Warn about config keys that don't exist in data
|
|
174
|
+
const missingKeys = configKeys.filter(key => !dataKeys.includes(key));
|
|
175
|
+
missingKeys.forEach(key => {
|
|
176
|
+
warnings.push({
|
|
177
|
+
type: 'config',
|
|
178
|
+
message: `Config key "${key}" not found in data`,
|
|
179
|
+
field: `config.${key}`
|
|
180
|
+
});
|
|
181
|
+
});
|
|
182
|
+
return { isValid: errors.length === 0, errors, warnings };
|
|
183
|
+
}
|
|
184
|
+
/**
|
|
185
|
+
* Sanitizes chart data by removing invalid entries and normalizing values
|
|
186
|
+
*/
|
|
187
|
+
function sanitizeChartData(data) {
|
|
188
|
+
if (!Array.isArray(data)) {
|
|
189
|
+
return [];
|
|
190
|
+
}
|
|
191
|
+
return data
|
|
192
|
+
.filter(item => item && typeof item === 'object')
|
|
193
|
+
.map(item => {
|
|
194
|
+
const sanitized = {};
|
|
195
|
+
Object.entries(item).forEach(([key, value]) => {
|
|
196
|
+
if (typeof value === 'number') {
|
|
197
|
+
// Replace NaN and Infinity with null
|
|
198
|
+
sanitized[key] = isFinite(value) ? value : null;
|
|
199
|
+
}
|
|
200
|
+
else if (typeof value === 'string') {
|
|
201
|
+
// Keep string values (like names, categories)
|
|
202
|
+
sanitized[key] = value;
|
|
203
|
+
}
|
|
204
|
+
else if (value === null || value === undefined) {
|
|
205
|
+
// Keep explicit null/undefined
|
|
206
|
+
sanitized[key] = null;
|
|
207
|
+
}
|
|
208
|
+
// Skip other types (objects, arrays, etc.)
|
|
209
|
+
});
|
|
210
|
+
return sanitized;
|
|
211
|
+
});
|
|
212
|
+
}
|
|
213
|
+
/**
|
|
214
|
+
* Calculates safe min/max values for chart scales using nice tick boundaries.
|
|
215
|
+
*/
|
|
216
|
+
function calculateSafeScaleRange(data, config, options = {}) {
|
|
217
|
+
const { minValue: propMin, maxValue: propMax, includeZero = true, padding = 0.1, symmetric = false } = options;
|
|
218
|
+
// If both min and max are provided, use them
|
|
219
|
+
if (propMin !== undefined && propMax !== undefined) {
|
|
220
|
+
return {
|
|
221
|
+
min: propMin,
|
|
222
|
+
max: propMax,
|
|
223
|
+
hasValidData: true
|
|
224
|
+
};
|
|
225
|
+
}
|
|
226
|
+
const configKeys = Object.keys(config);
|
|
227
|
+
const allValues = [];
|
|
228
|
+
// Extract all numeric values
|
|
229
|
+
data.forEach(item => {
|
|
230
|
+
configKeys.forEach(key => {
|
|
231
|
+
const value = item[key];
|
|
232
|
+
if (typeof value === 'number' && isFinite(value)) {
|
|
233
|
+
allValues.push(value);
|
|
234
|
+
}
|
|
235
|
+
});
|
|
236
|
+
});
|
|
237
|
+
// No valid data found
|
|
238
|
+
if (allValues.length === 0) {
|
|
239
|
+
return {
|
|
240
|
+
min: propMin !== null && propMin !== void 0 ? propMin : 0,
|
|
241
|
+
max: propMax !== null && propMax !== void 0 ? propMax : 100,
|
|
242
|
+
hasValidData: false
|
|
243
|
+
};
|
|
244
|
+
}
|
|
245
|
+
let dataMin = propMin !== null && propMin !== void 0 ? propMin : SafeMath.min(allValues);
|
|
246
|
+
let dataMax = propMax !== null && propMax !== void 0 ? propMax : SafeMath.max(allValues);
|
|
247
|
+
// Include zero if requested
|
|
248
|
+
if (includeZero) {
|
|
249
|
+
dataMin = Math.min(dataMin, 0);
|
|
250
|
+
dataMax = Math.max(dataMax, 0);
|
|
251
|
+
}
|
|
252
|
+
// Add padding if min and max are the same
|
|
253
|
+
if (dataMin === dataMax) {
|
|
254
|
+
const absValue = Math.abs(dataMin);
|
|
255
|
+
const paddingValue = absValue > 0 ? absValue * padding : 1;
|
|
256
|
+
dataMin -= paddingValue;
|
|
257
|
+
dataMax += paddingValue;
|
|
258
|
+
}
|
|
259
|
+
// Make symmetric when explicitly requested
|
|
260
|
+
if (symmetric && dataMin < 0 && dataMax > 0) {
|
|
261
|
+
const absMax = Math.max(Math.abs(dataMin), Math.abs(dataMax));
|
|
262
|
+
dataMin = -absMax;
|
|
263
|
+
dataMax = absMax;
|
|
264
|
+
}
|
|
265
|
+
// Use nice tick generation to compute boundaries
|
|
266
|
+
const { niceMin, niceMax } = generateNiceTicks(dataMin, dataMax, 5);
|
|
267
|
+
return {
|
|
268
|
+
min: propMin !== null && propMin !== void 0 ? propMin : niceMin,
|
|
269
|
+
max: propMax !== null && propMax !== void 0 ? propMax : niceMax,
|
|
270
|
+
hasValidData: true
|
|
271
|
+
};
|
|
272
|
+
}
|
|
273
|
+
/**
|
|
274
|
+
* Heckbert's "nice numbers" algorithm.
|
|
275
|
+
* Returns a "nice" number approximately equal to x.
|
|
276
|
+
* When round=true, rounds to nearest nice number; when false, ceiling.
|
|
277
|
+
* Nice numbers are from the {1, 2, 5} × 10^n sequence.
|
|
278
|
+
*/
|
|
279
|
+
function niceNum(x, round = true) {
|
|
280
|
+
if (x === 0)
|
|
281
|
+
return 0;
|
|
282
|
+
const negative = x < 0;
|
|
283
|
+
const abs = Math.abs(x);
|
|
284
|
+
const exponent = Math.floor(Math.log10(abs));
|
|
285
|
+
const fraction = abs / Math.pow(10, exponent);
|
|
286
|
+
let niceFraction;
|
|
287
|
+
if (round) {
|
|
288
|
+
if (fraction < 1.5)
|
|
289
|
+
niceFraction = 1;
|
|
290
|
+
else if (fraction < 3)
|
|
291
|
+
niceFraction = 2;
|
|
292
|
+
else if (fraction < 7)
|
|
293
|
+
niceFraction = 5;
|
|
294
|
+
else
|
|
295
|
+
niceFraction = 10;
|
|
296
|
+
}
|
|
297
|
+
else {
|
|
298
|
+
if (fraction <= 1)
|
|
299
|
+
niceFraction = 1;
|
|
300
|
+
else if (fraction <= 2)
|
|
301
|
+
niceFraction = 2;
|
|
302
|
+
else if (fraction <= 5)
|
|
303
|
+
niceFraction = 5;
|
|
304
|
+
else
|
|
305
|
+
niceFraction = 10;
|
|
306
|
+
}
|
|
307
|
+
const result = niceFraction * Math.pow(10, exponent);
|
|
308
|
+
return negative ? -result : result;
|
|
309
|
+
}
|
|
310
|
+
/**
|
|
311
|
+
* Generate uniformly-spaced "nice" tick values for a given data range.
|
|
312
|
+
* Uses Heckbert's algorithm to produce ticks from the {1,2,5}×10^n sequence.
|
|
313
|
+
* Zero naturally falls on the grid when the range spans zero — no injection needed.
|
|
314
|
+
*/
|
|
315
|
+
function generateNiceTicks(dataMin, dataMax, desiredTickCount = 5) {
|
|
316
|
+
// Handle edge cases
|
|
317
|
+
if (!isFinite(dataMin) || !isFinite(dataMax)) {
|
|
318
|
+
return { ticks: [0], niceMin: 0, niceMax: 0, step: 0 };
|
|
319
|
+
}
|
|
320
|
+
if (dataMin === dataMax) {
|
|
321
|
+
// Single value: create a small range around it
|
|
322
|
+
const padding = dataMin === 0 ? 1 : Math.abs(dataMin) * 0.1;
|
|
323
|
+
return generateNiceTicks(dataMin - padding, dataMax + padding, desiredTickCount);
|
|
324
|
+
}
|
|
325
|
+
const range = niceNum(dataMax - dataMin, false);
|
|
326
|
+
const step = niceNum(range / Math.max(1, desiredTickCount - 1), true);
|
|
327
|
+
if (step === 0) {
|
|
328
|
+
return { ticks: [dataMin], niceMin: dataMin, niceMax: dataMax, step: 0 };
|
|
329
|
+
}
|
|
330
|
+
const niceMin = Math.floor(dataMin / step) * step;
|
|
331
|
+
const niceMax = Math.ceil(dataMax / step) * step;
|
|
332
|
+
const ticks = [];
|
|
333
|
+
// Use a small epsilon to handle floating point comparison
|
|
334
|
+
for (let v = niceMin; v <= niceMax + step * 0.001; v += step) {
|
|
335
|
+
// Round to remove floating point noise
|
|
336
|
+
const rounded = Math.round(v * 1e10) / 1e10;
|
|
337
|
+
ticks.push(rounded);
|
|
338
|
+
}
|
|
339
|
+
return { ticks, niceMin, niceMax, step };
|
|
340
|
+
}
|
|
341
|
+
/**
|
|
342
|
+
* Comprehensive chart validation that combines all checks
|
|
343
|
+
*/
|
|
344
|
+
function validateChart(data, config) {
|
|
345
|
+
const errors = [];
|
|
346
|
+
const warnings = [];
|
|
347
|
+
// Validate data
|
|
348
|
+
const dataValidation = validateChartData(data);
|
|
349
|
+
errors.push(...dataValidation.errors);
|
|
350
|
+
warnings.push(...dataValidation.warnings);
|
|
351
|
+
// Validate config
|
|
352
|
+
const configValidation = validateChartConfig(config);
|
|
353
|
+
errors.push(...configValidation.errors);
|
|
354
|
+
warnings.push(...configValidation.warnings);
|
|
355
|
+
// If basic validation passes, check compatibility
|
|
356
|
+
if (dataValidation.isValid && configValidation.isValid) {
|
|
357
|
+
const compatibilityValidation = validateDataConfigCompatibility(data, config);
|
|
358
|
+
errors.push(...compatibilityValidation.errors);
|
|
359
|
+
warnings.push(...compatibilityValidation.warnings);
|
|
360
|
+
}
|
|
361
|
+
return { isValid: errors.length === 0, errors, warnings };
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
export { SafeMath, calculateSafeScaleRange, generateNiceTicks, niceNum, sanitizeChartData, validateChart, validateChartConfig, validateChartData, validateDataConfigCompatibility };
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Color utilities for chart components
|
|
3
|
+
* Handles color extraction, manipulation, and theme integration
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Extracts the fill color class from a combined class string
|
|
7
|
+
* @param classString - Combined class string like "fill-primary-base stroke-primary-base"
|
|
8
|
+
* @returns The fill class or empty string
|
|
9
|
+
*/
|
|
10
|
+
export declare function extractFillClass(classString: string): string;
|
|
11
|
+
/**
|
|
12
|
+
* Extracts the stroke color class from a combined class string
|
|
13
|
+
* @param classString - Combined class string like "fill-primary-base stroke-primary-base"
|
|
14
|
+
* @returns The stroke class or empty string
|
|
15
|
+
*/
|
|
16
|
+
export declare function extractStrokeClass(classString: string): string;
|
|
17
|
+
/**
|
|
18
|
+
* Converts a Tailwind color class to a CSS variable
|
|
19
|
+
* @param colorClass - Tailwind color class like "fill-primary-base"
|
|
20
|
+
* @returns CSS variable string like "var(--color-primary-500)"
|
|
21
|
+
*/
|
|
22
|
+
export declare function colorClassToVariable(colorClass: string): string;
|
|
23
|
+
/**
|
|
24
|
+
* Combines multiple Tailwind classes into a single class string
|
|
25
|
+
* @param classes - Array of class strings
|
|
26
|
+
* @returns Combined class string
|
|
27
|
+
*/
|
|
28
|
+
export declare function combineClasses(...classes: (string | undefined | null)[]): string;
|
|
29
|
+
/**
|
|
30
|
+
* Creates a color class string for chart elements
|
|
31
|
+
* @param baseColor - Base color (e.g., "primary", "warning")
|
|
32
|
+
* @param type - Type of element ("fill", "stroke", "both")
|
|
33
|
+
* @param shade - Color shade (e.g., "base", "400", "500")
|
|
34
|
+
* @returns Tailwind class string
|
|
35
|
+
*/
|
|
36
|
+
export declare function createColorClass(baseColor: string, type?: 'fill' | 'stroke' | 'both', shade?: string): string;
|
|
37
|
+
/**
|
|
38
|
+
* Generates a series of color classes for multiple data series
|
|
39
|
+
* @param baseColors - Array of base color names
|
|
40
|
+
* @param type - Type of element ("fill", "stroke", "both")
|
|
41
|
+
* @param shade - Color shade
|
|
42
|
+
* @returns Array of color class strings
|
|
43
|
+
*/
|
|
44
|
+
export declare function generateSeriesColors(baseColors: string[], type?: 'fill' | 'stroke' | 'both', shade?: string): string[];
|
|
45
|
+
/**
|
|
46
|
+
* Default color palette for charts
|
|
47
|
+
*/
|
|
48
|
+
export declare const DEFAULT_CHART_COLORS: readonly ["primary", "warning", "success", "danger"];
|
|
49
|
+
/**
|
|
50
|
+
* Extended color palette for charts with more options
|
|
51
|
+
*/
|
|
52
|
+
export declare const EXTENDED_CHART_COLORS: readonly ["primary", "warning", "success", "danger", "info", "purple", "pink", "indigo"];
|
|
53
|
+
/**
|
|
54
|
+
* Minimal color palette for subtle charts
|
|
55
|
+
*/
|
|
56
|
+
export declare const MINIMAL_CHART_COLORS: readonly ["neutral", "slate", "gray", "zinc"];
|
|
57
|
+
/**
|
|
58
|
+
* Generate a color palette for charts
|
|
59
|
+
*/
|
|
60
|
+
export declare function generateColorPalette(count: number, baseHue?: number): string[];
|
|
61
|
+
/**
|
|
62
|
+
* Get contrast color (black or white) based on background color
|
|
63
|
+
*/
|
|
64
|
+
export declare function getContrastColor(backgroundColor: string): string;
|
|
65
|
+
/**
|
|
66
|
+
* Convert HSL to hex color
|
|
67
|
+
*/
|
|
68
|
+
export declare function hslToHex(h: number, s: number, l: number): string;
|
|
69
|
+
/**
|
|
70
|
+
* Lighten or darken a color
|
|
71
|
+
*/
|
|
72
|
+
export declare function adjustColorBrightness(color: string, amount: number): string;
|
|
73
|
+
/**
|
|
74
|
+
* Comprehensive color mapping that handles all chart color class variations
|
|
75
|
+
* Returns CSS variable references to match actual chart element colors
|
|
76
|
+
* Only uses CSS variables that actually exist in the project
|
|
77
|
+
*/
|
|
78
|
+
export declare const getColorValue: (colorClass: string) => string;
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Color utilities for chart components
|
|
3
|
+
* Handles color extraction, manipulation, and theme integration
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Extracts the fill color class from a combined class string
|
|
7
|
+
* @param classString - Combined class string like "fill-primary-base stroke-primary-base"
|
|
8
|
+
* @returns The fill class or empty string
|
|
9
|
+
*/
|
|
10
|
+
function extractFillClass(classString) {
|
|
11
|
+
const classes = classString.split(' ');
|
|
12
|
+
const fillClass = classes.find(cls => cls.startsWith('fill-'));
|
|
13
|
+
return fillClass || '';
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Extracts the stroke color class from a combined class string
|
|
17
|
+
* @param classString - Combined class string like "fill-primary-base stroke-primary-base"
|
|
18
|
+
* @returns The stroke class or empty string
|
|
19
|
+
*/
|
|
20
|
+
function extractStrokeClass(classString) {
|
|
21
|
+
const classes = classString.split(' ');
|
|
22
|
+
const strokeClass = classes.find(cls => cls.startsWith('stroke-'));
|
|
23
|
+
return strokeClass || '';
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Converts a Tailwind color class to a CSS variable
|
|
27
|
+
* @param colorClass - Tailwind color class like "fill-primary-base"
|
|
28
|
+
* @returns CSS variable string like "var(--color-primary-500)"
|
|
29
|
+
*/
|
|
30
|
+
function colorClassToVariable(colorClass) {
|
|
31
|
+
// Remove the prefix (fill-, stroke-, bg-, text-, etc.)
|
|
32
|
+
const colorPart = colorClass.replace(/^(fill-|stroke-|bg-|text-|border-)/, '');
|
|
33
|
+
// Convert to CSS variable format
|
|
34
|
+
if (colorPart.includes('-base')) {
|
|
35
|
+
return `var(--color-${colorPart.replace('-base', '-500')})`;
|
|
36
|
+
}
|
|
37
|
+
return `var(--color-${colorPart})`;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Combines multiple Tailwind classes into a single class string
|
|
41
|
+
* @param classes - Array of class strings
|
|
42
|
+
* @returns Combined class string
|
|
43
|
+
*/
|
|
44
|
+
function combineClasses(...classes) {
|
|
45
|
+
return classes.filter(Boolean).join(' ');
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Creates a color class string for chart elements
|
|
49
|
+
* @param baseColor - Base color (e.g., "primary", "warning")
|
|
50
|
+
* @param type - Type of element ("fill", "stroke", "both")
|
|
51
|
+
* @param shade - Color shade (e.g., "base", "400", "500")
|
|
52
|
+
* @returns Tailwind class string
|
|
53
|
+
*/
|
|
54
|
+
function createColorClass(baseColor, type = 'both', shade = 'base') {
|
|
55
|
+
const colorName = `${baseColor}-${shade}`;
|
|
56
|
+
switch (type) {
|
|
57
|
+
case 'fill':
|
|
58
|
+
return `fill-${colorName}`;
|
|
59
|
+
case 'stroke':
|
|
60
|
+
return `stroke-${colorName}`;
|
|
61
|
+
case 'both':
|
|
62
|
+
return `fill-${colorName} stroke-${colorName}`;
|
|
63
|
+
default:
|
|
64
|
+
return `fill-${colorName} stroke-${colorName}`;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Generates a series of color classes for multiple data series
|
|
69
|
+
* @param baseColors - Array of base color names
|
|
70
|
+
* @param type - Type of element ("fill", "stroke", "both")
|
|
71
|
+
* @param shade - Color shade
|
|
72
|
+
* @returns Array of color class strings
|
|
73
|
+
*/
|
|
74
|
+
function generateSeriesColors(baseColors, type = 'both', shade = 'base') {
|
|
75
|
+
return baseColors.map(color => createColorClass(color, type, shade));
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Default color palette for charts
|
|
79
|
+
*/
|
|
80
|
+
const DEFAULT_CHART_COLORS = [
|
|
81
|
+
'primary',
|
|
82
|
+
'warning',
|
|
83
|
+
'success',
|
|
84
|
+
'danger',
|
|
85
|
+
];
|
|
86
|
+
/**
|
|
87
|
+
* Extended color palette for charts with more options
|
|
88
|
+
*/
|
|
89
|
+
const EXTENDED_CHART_COLORS = [
|
|
90
|
+
'primary',
|
|
91
|
+
'warning',
|
|
92
|
+
'success',
|
|
93
|
+
'danger',
|
|
94
|
+
'info',
|
|
95
|
+
'purple',
|
|
96
|
+
'pink',
|
|
97
|
+
'indigo',
|
|
98
|
+
];
|
|
99
|
+
/**
|
|
100
|
+
* Minimal color palette for subtle charts
|
|
101
|
+
*/
|
|
102
|
+
const MINIMAL_CHART_COLORS = [
|
|
103
|
+
'neutral',
|
|
104
|
+
'slate',
|
|
105
|
+
'gray',
|
|
106
|
+
'zinc',
|
|
107
|
+
];
|
|
108
|
+
/**
|
|
109
|
+
* Generate a color palette for charts
|
|
110
|
+
*/
|
|
111
|
+
function generateColorPalette(count, baseHue = 200) {
|
|
112
|
+
const colors = [];
|
|
113
|
+
const saturation = 70;
|
|
114
|
+
const lightness = 50;
|
|
115
|
+
for (let i = 0; i < count; i++) {
|
|
116
|
+
const hue = (baseHue + (i * 360) / count) % 360;
|
|
117
|
+
colors.push(`hsl(${hue}, ${saturation}%, ${lightness}%)`);
|
|
118
|
+
}
|
|
119
|
+
return colors;
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Get contrast color (black or white) based on background color
|
|
123
|
+
*/
|
|
124
|
+
function getContrastColor(backgroundColor) {
|
|
125
|
+
// Convert hex to RGB
|
|
126
|
+
const hex = backgroundColor.replace('#', '');
|
|
127
|
+
const r = parseInt(hex.substring(0, 2), 16);
|
|
128
|
+
const g = parseInt(hex.substring(2, 2), 16);
|
|
129
|
+
const b = parseInt(hex.substring(4, 2), 16);
|
|
130
|
+
// Calculate luminance
|
|
131
|
+
const luminance = (0.299 * r + 0.587 * g + 0.114 * b) / 255;
|
|
132
|
+
return luminance > 0.5 ? '#000000' : '#ffffff';
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export { DEFAULT_CHART_COLORS, EXTENDED_CHART_COLORS, MINIMAL_CHART_COLORS, colorClassToVariable, combineClasses, createColorClass, extractFillClass, extractStrokeClass, generateColorPalette, generateSeriesColors, getContrastColor };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { extractFillClass, extractStrokeClass, colorClassToVariable, combineClasses, createColorClass, generateSeriesColors, DEFAULT_CHART_COLORS, EXTENDED_CHART_COLORS, MINIMAL_CHART_COLORS, generateColorPalette, getContrastColor, } from './color-utils';
|
|
2
|
+
export { SafeMath, validateChart, validateChartData, validateChartConfig, validateDataConfigCompatibility, sanitizeChartData, calculateSafeScaleRange, niceNum, generateNiceTicks, type ChartValidationError, type ChartValidationResult, } from './chart-validation';
|
|
3
|
+
export { getSpringAnimation, getUseSpringConfig, getStaggerDelay, SPRING_PRESETS, CIRCULAR_CHART_ANIMATIONS, type SpringConfig, type NoAnimationConfig, type AnimationPreset, } from './animation-utils';
|
|
4
|
+
export { generateLinearPath, generateStepPath, generateStepBeforePath, generateStepAfterPath, generateMonotonePath, generateCurvePath, type Point, } from './path-utils';
|