flikkui 0.1.0-beta.9 → 0.2.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -130
- package/dist/cli/commands/init.d.ts +7 -0
- package/dist/cli/commands/init.js +82 -0
- package/dist/cli/index.d.ts +2 -0
- package/dist/cli/index.js +17 -0
- package/dist/cli/utils/detectProject.d.ts +9 -0
- package/dist/cli/utils/detectProject.js +126 -0
- package/dist/cli/utils/injectCSS.d.ts +8 -0
- package/dist/cli/utils/injectCSS.js +82 -0
- package/dist/cli/utils/installDeps.d.ts +2 -0
- package/dist/cli/utils/installDeps.js +44 -0
- package/dist/cli/utils/logger.d.ts +9 -0
- package/dist/cli/utils/logger.js +35 -0
- package/dist/cli/utils/setupTailwind.d.ts +7 -0
- package/dist/cli/utils/setupTailwind.js +98 -0
- package/dist/components/ai/ApprovalCard/ApprovalCard.d.ts +3 -0
- package/dist/components/ai/ApprovalCard/ApprovalCard.js +42 -0
- package/dist/components/ai/ApprovalCard/ApprovalCard.theme.d.ts +15 -0
- package/dist/components/ai/ApprovalCard/ApprovalCard.theme.js +17 -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/ArtifactContainer/ArtifactContainer.d.ts +6 -0
- package/dist/components/ai/ArtifactContainer/ArtifactContainer.js +127 -0
- package/dist/components/ai/ArtifactContainer/ArtifactContainer.theme.d.ts +6 -0
- package/dist/components/ai/ArtifactContainer/ArtifactContainer.theme.js +14 -0
- package/dist/components/ai/ArtifactContainer/ArtifactContainer.types.d.ts +57 -0
- package/dist/components/ai/ArtifactContainer/index.d.ts +3 -0
- package/dist/components/ai/ChatInterface/ChatInterface.d.ts +26 -0
- package/dist/components/ai/ChatInterface/ChatInterface.js +65 -0
- package/dist/components/ai/ChatInterface/ChatInterface.theme.d.ts +2 -0
- package/dist/components/ai/ChatInterface/ChatInterface.theme.js +8 -0
- package/dist/components/ai/ChatInterface/ChatInterface.types.d.ts +68 -0
- package/dist/components/ai/ChatInterface/ChatInterface.types.js +19 -0
- package/dist/components/ai/ChatInterface/index.d.ts +4 -0
- package/dist/components/ai/CodeBlock/CodeBlock.d.ts +34 -0
- package/dist/components/ai/CodeBlock/CodeBlock.js +192 -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 +98 -0
- package/dist/components/ai/CodeBlock/index.d.ts +3 -0
- package/dist/components/ai/EditingIndicator/EditingIndicator.animations.d.ts +31 -0
- package/dist/components/ai/EditingIndicator/EditingIndicator.animations.js +115 -0
- package/dist/components/ai/EditingIndicator/EditingIndicator.d.ts +35 -0
- package/dist/components/ai/EditingIndicator/EditingIndicator.js +94 -0
- package/dist/components/ai/EditingIndicator/EditingIndicator.theme.d.ts +2 -0
- package/dist/components/ai/EditingIndicator/EditingIndicator.theme.js +13 -0
- package/dist/components/ai/EditingIndicator/EditingIndicator.types.d.ts +54 -0
- package/dist/components/ai/EditingIndicator/index.d.ts +9 -0
- package/dist/components/ai/GenerativeRenderer/GenerativeRenderer.d.ts +3 -0
- package/dist/components/ai/GenerativeRenderer/GenerativeRenderer.js +126 -0
- package/dist/components/ai/GenerativeRenderer/GenerativeRenderer.theme.d.ts +2 -0
- package/dist/components/ai/GenerativeRenderer/GenerativeRenderer.theme.js +8 -0
- package/dist/components/ai/GenerativeRenderer/GenerativeRenderer.types.d.ts +45 -0
- package/dist/components/ai/GenerativeRenderer/index.d.ts +3 -0
- package/dist/components/ai/MessageHistory/MessageHistory.d.ts +18 -0
- package/dist/components/ai/MessageHistory/MessageHistory.js +100 -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/PresenceIndicator/PresenceIndicator.animations.d.ts +17 -0
- package/dist/components/ai/PresenceIndicator/PresenceIndicator.animations.js +56 -0
- package/dist/components/ai/PresenceIndicator/PresenceIndicator.d.ts +38 -0
- package/dist/components/ai/PresenceIndicator/PresenceIndicator.js +110 -0
- package/dist/components/ai/PresenceIndicator/PresenceIndicator.theme.d.ts +2 -0
- package/dist/components/ai/PresenceIndicator/PresenceIndicator.theme.js +13 -0
- package/dist/components/ai/PresenceIndicator/PresenceIndicator.types.d.ts +53 -0
- package/dist/components/ai/PresenceIndicator/index.d.ts +8 -0
- package/dist/components/ai/PresenceProvider/PresenceContext.d.ts +24 -0
- package/dist/components/ai/PresenceProvider/PresenceContext.js +34 -0
- package/dist/components/ai/PresenceProvider/PresenceProvider.d.ts +32 -0
- package/dist/components/ai/PresenceProvider/PresenceProvider.js +321 -0
- package/dist/components/ai/PresenceProvider/PresenceProvider.types.d.ts +140 -0
- package/dist/components/ai/PresenceProvider/adapters/MockAdapter.d.ts +102 -0
- package/dist/components/ai/PresenceProvider/adapters/MockAdapter.js +331 -0
- package/dist/components/ai/PresenceProvider/adapters/PresenceAdapter.d.ts +93 -0
- package/dist/components/ai/PresenceProvider/adapters/SupabaseAdapter.d.ts +134 -0
- package/dist/components/ai/PresenceProvider/adapters/WebSocketAdapter.d.ts +149 -0
- package/dist/components/ai/PresenceProvider/adapters/index.d.ts +11 -0
- package/dist/components/ai/PresenceProvider/index.d.ts +10 -0
- package/dist/components/ai/PromptInput/PromptInput.d.ts +24 -0
- package/dist/components/ai/PromptInput/PromptInput.js +563 -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/PromptSuggestions.d.ts +27 -0
- package/dist/components/ai/PromptSuggestions/PromptSuggestions.js +61 -0
- package/dist/components/ai/PromptSuggestions/PromptSuggestions.types.d.ts +65 -0
- package/dist/components/ai/PromptSuggestions/index.d.ts +2 -0
- package/dist/components/ai/StreamingResponse/ErrorDisplay.d.ts +23 -0
- package/dist/components/ai/StreamingResponse/ErrorDisplay.js +49 -0
- package/dist/components/ai/StreamingResponse/MarkdownRenderer.d.ts +17 -0
- package/dist/components/ai/StreamingResponse/MarkdownRenderer.js +114 -0
- package/dist/components/ai/StreamingResponse/StreamingResponse.d.ts +22 -0
- package/dist/components/ai/StreamingResponse/StreamingResponse.js +79 -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 +101 -0
- package/dist/components/ai/StreamingResponse/index.d.ts +9 -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 +56 -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 +72 -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/VersionSlider/VersionSlider.d.ts +3 -0
- package/dist/components/ai/VersionSlider/VersionSlider.js +97 -0
- package/dist/components/ai/VersionSlider/VersionSlider.theme.d.ts +2 -0
- package/dist/components/ai/VersionSlider/VersionSlider.theme.js +18 -0
- package/dist/components/ai/VersionSlider/VersionSlider.types.d.ts +77 -0
- package/dist/components/ai/VersionSlider/index.d.ts +3 -0
- package/dist/components/ai/index.d.ts +33 -0
- package/dist/components/charts/ActivityRings/ActivityRings.d.ts +9 -0
- package/dist/components/charts/ActivityRings/ActivityRings.js +163 -0
- package/dist/components/charts/ActivityRings/ActivityRings.theme.d.ts +7 -0
- package/dist/components/charts/ActivityRings/ActivityRings.theme.js +27 -0
- package/dist/components/charts/ActivityRings/ActivityRings.types.d.ts +62 -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.js +291 -285
- 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 +4 -1
- package/dist/components/charts/AreaChart/AreaChart.types.js +12 -2
- package/dist/components/charts/AreaChart/index.d.ts +2 -0
- package/dist/components/charts/BarChart/BarChart.js +349 -262
- package/dist/components/charts/BarChart/BarChart.types.d.ts +13 -5
- package/dist/components/charts/BarChart/BarChart.types.js +10 -2
- package/dist/components/charts/ChartContainer.js +23 -19
- package/dist/components/charts/ComboChart/ComboChart.d.ts +9 -0
- package/dist/components/charts/ComboChart/ComboChart.js +160 -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.js +171 -0
- package/dist/components/charts/DonutChart/DonutChart.theme.d.ts +0 -37
- package/dist/components/charts/DonutChart/DonutChart.theme.js +24 -0
- package/dist/components/charts/DonutChart/DonutChart.types.d.ts +16 -0
- package/dist/components/charts/DonutChart/MultiSegmentDonutChart.d.ts +7 -0
- package/dist/components/charts/DonutChart/MultiSegmentDonutChart.js +263 -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 +40 -0
- package/dist/components/charts/DonutChart/donut-utils.js +115 -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 +511 -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.js +76 -65
- 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 +7 -24
- package/dist/components/charts/Heatmap/HeatmapCell.js +25 -33
- package/dist/components/charts/Heatmap/HeatmapLegend.d.ts +0 -1
- package/dist/components/charts/Heatmap/HeatmapLegend.js +12 -11
- package/dist/components/charts/Heatmap/index.d.ts +2 -1
- package/dist/components/charts/Heatmap/utils/heatmapUtils.js +38 -42
- package/dist/components/charts/LineChart/LineChart.js +239 -204
- package/dist/components/charts/LineChart/LineChart.types.d.ts +9 -3
- package/dist/components/charts/LineChart/LineChart.types.js +10 -2
- package/dist/components/charts/ScatterPlot/ScatterPlot.d.ts +9 -0
- package/dist/components/charts/ScatterPlot/ScatterPlot.js +218 -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 +318 -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 +2 -0
- package/dist/components/charts/hooks/useChartAccessibility.d.ts +1 -1
- package/dist/components/charts/hooks/useChartAccessibility.js +34 -41
- package/dist/components/charts/hooks/useChartScales.d.ts +87 -0
- package/dist/components/charts/hooks/useChartScales.js +178 -0
- package/dist/components/charts/hooks/useChartTheme.js +51 -32
- package/dist/components/charts/hooks/useChartValidation.js +15 -16
- package/dist/components/charts/hooks/useTooltipPosition.js +91 -89
- package/dist/components/charts/index.d.ts +52 -37
- package/dist/components/charts/index.js +38 -0
- package/dist/components/charts/shared/BarRenderer/BarRenderer.d.ts +9 -0
- package/dist/components/charts/shared/BarRenderer/BarRenderer.js +299 -0
- package/dist/components/charts/shared/BarRenderer/BarRenderer.types.d.ts +85 -0
- package/dist/components/charts/shared/BarRenderer/index.d.ts +3 -0
- package/dist/components/charts/shared/ChartAxis/ChartAxis.types.d.ts +2 -0
- package/dist/components/charts/shared/ChartAxis/XAxis.js +15 -6
- package/dist/components/charts/shared/ChartAxis/YAxis.js +24 -25
- package/dist/components/charts/shared/ChartContainer/ChartContainer.d.ts +85 -0
- package/dist/components/charts/shared/ChartContainer/ChartContainer.js +178 -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.js +4 -6
- package/dist/components/charts/shared/ChartCrosshair/ChartCrosshair.theme.js +1 -1
- package/dist/components/charts/shared/ChartErrorBoundary/ChartErrorBoundary.js +15 -20
- package/dist/components/charts/shared/ChartGrid/HorizontalGrid.js +4 -5
- package/dist/components/charts/shared/ChartLegend/ChartLegend.js +5 -7
- package/dist/components/charts/shared/ChartLegend/ChartLegendContent.js +4 -6
- package/dist/components/charts/shared/ChartMarker/ChartMarker.js +6 -9
- package/dist/components/charts/shared/ChartMarker/ChartMarker.theme.js +1 -1
- package/dist/components/charts/shared/ChartMarker/ChartMarker.types.d.ts +1 -1
- package/dist/components/charts/shared/ChartText/ChartText.js +7 -9
- package/dist/components/charts/shared/ChartText/ChartText.theme.js +2 -2
- package/dist/components/charts/shared/ChartTooltip/ChartTooltip.d.ts +2 -2
- package/dist/components/charts/shared/ChartTooltip/ChartTooltip.js +56 -50
- 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 +28 -2
- package/dist/components/charts/shared/ChartTooltip/index.d.ts +2 -1
- package/dist/components/charts/shared/LineRenderer/LineRenderer.d.ts +9 -0
- package/dist/components/charts/shared/LineRenderer/LineRenderer.js +310 -0
- package/dist/components/charts/shared/LineRenderer/LineRenderer.types.d.ts +83 -0
- package/dist/components/charts/shared/LineRenderer/index.d.ts +2 -0
- package/dist/components/charts/shared/index.d.ts +7 -0
- package/dist/components/charts/theme/chart.theme.js +2 -2
- package/dist/components/charts/types/chart.types.d.ts +8 -3
- package/dist/components/charts/types/chart.types.js +5 -3
- 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.js +79 -96
- package/dist/components/charts/utils/color-utils.js +32 -72
- package/dist/components/charts/utils/index.d.ts +1 -0
- package/dist/components/core/Accordion/Accordion.animations.js +2 -2
- package/dist/components/core/Accordion/Accordion.d.ts +2 -3
- package/dist/components/core/Accordion/Accordion.js +23 -19
- package/dist/components/core/Accordion/Accordion.theme.d.ts +3 -0
- package/dist/components/core/Accordion/Accordion.theme.js +14 -4
- package/dist/components/core/Accordion/Accordion.types.d.ts +7 -0
- package/dist/components/core/Accordion/AccordionContent.js +7 -14
- package/dist/components/core/Accordion/AccordionItem.js +17 -21
- package/dist/components/core/Accordion/AccordionTrigger.js +7 -18
- package/dist/components/core/Accordion/index.d.ts +1 -2
- package/dist/components/core/Alert/Alert.d.ts +3 -0
- package/dist/components/core/Alert/Alert.js +33 -0
- package/dist/components/core/Alert/Alert.theme.d.ts +2 -0
- package/dist/components/core/Alert/Alert.theme.js +16 -0
- package/dist/components/core/Alert/Alert.types.d.ts +35 -0
- package/dist/components/core/AlertDialog/AlertDialog.d.ts +6 -0
- package/dist/components/core/AlertDialog/AlertDialog.js +24 -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/Avatar/Avatar.d.ts +0 -1
- package/dist/components/core/Avatar/Avatar.js +38 -35
- package/dist/components/core/Avatar/Avatar.theme.d.ts +1 -1
- package/dist/components/core/Avatar/Avatar.theme.js +12 -12
- package/dist/components/core/Avatar/Avatar.types.d.ts +5 -0
- package/dist/components/core/AvatarGroup/AvatarGroup.animations.d.ts +6 -5
- package/dist/components/core/AvatarGroup/AvatarGroup.animations.js +61 -35
- package/dist/components/core/AvatarGroup/AvatarGroup.d.ts +0 -1
- package/dist/components/core/AvatarGroup/AvatarGroup.js +51 -45
- package/dist/components/core/AvatarGroup/AvatarGroup.theme.d.ts +1 -1
- package/dist/components/core/AvatarGroup/AvatarGroup.theme.js +9 -9
- package/dist/components/core/Badge/Badge.animations.js +5 -5
- package/dist/components/core/Badge/Badge.d.ts +2 -2
- package/dist/components/core/Badge/Badge.js +174 -57
- package/dist/components/core/Badge/Badge.theme.d.ts +2 -1
- package/dist/components/core/Badge/Badge.theme.js +109 -28
- package/dist/components/core/Badge/Badge.types.d.ts +100 -32
- package/dist/components/core/Breadcrumbs/Breadcrumbs.d.ts +3 -3
- package/dist/components/core/Breadcrumbs/Breadcrumbs.js +52 -48
- package/dist/components/core/Breadcrumbs/Breadcrumbs.theme.d.ts +2 -0
- package/dist/components/core/Breadcrumbs/Breadcrumbs.theme.js +11 -13
- package/dist/components/core/Breadcrumbs/Breadcrumbs.types.d.ts +4 -15
- package/dist/components/core/Breadcrumbs/index.d.ts +1 -2
- package/dist/components/core/Button/Button.d.ts +1 -1
- package/dist/components/core/Button/Button.js +111 -54
- package/dist/components/core/Button/Button.ripple.d.ts +67 -0
- package/dist/components/core/Button/Button.ripple.js +227 -0
- package/dist/components/core/Button/Button.theme.d.ts +11 -4
- package/dist/components/core/Button/Button.theme.js +120 -17
- package/dist/components/core/Button/Button.types.d.ts +21 -2
- package/dist/components/core/Button/index.d.ts +1 -1
- package/dist/components/core/ButtonGroup/ButtonGroup.d.ts +4 -0
- package/dist/components/core/ButtonGroup/ButtonGroup.js +10 -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 +12 -0
- package/dist/components/core/ButtonGroup/ButtonGroupText.d.ts +4 -0
- package/dist/components/core/ButtonGroup/ButtonGroupText.js +20 -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 +401 -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 +1 -1
- package/dist/components/core/Calendar/CalendarEvent/index.d.ts +2 -2
- 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 +266 -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 +7 -7
- package/dist/components/core/Card/Card.js +12 -31
- package/dist/components/core/Card/Card.theme.d.ts +1 -1
- package/dist/components/core/Card/Card.theme.js +7 -2
- package/dist/components/core/Card/Card.types.d.ts +12 -2
- package/dist/components/core/Card/CardContent.d.ts +3 -0
- package/dist/components/core/Card/CardContent.js +10 -0
- package/dist/components/core/Card/CardDescription.d.ts +3 -0
- package/dist/components/core/Card/CardDescription.js +10 -0
- package/dist/components/core/Card/CardFooter.d.ts +3 -0
- package/dist/components/core/Card/CardFooter.js +10 -0
- package/dist/components/core/Card/CardHeader.d.ts +3 -0
- package/dist/components/core/Card/CardHeader.js +10 -0
- package/dist/components/core/Card/CardTitle.d.ts +3 -0
- package/dist/components/core/Card/CardTitle.js +10 -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 +181 -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 +1 -1
- package/dist/components/core/Carousel/Carousel.js +71 -80
- package/dist/components/core/Carousel/Carousel.theme.d.ts +9 -1
- package/dist/components/core/Carousel/Carousel.theme.js +17 -13
- package/dist/components/core/Carousel/Carousel.types.d.ts +58 -109
- package/dist/components/core/Carousel/CarouselContent.d.ts +4 -0
- package/dist/components/core/Carousel/CarouselContent.js +54 -0
- package/dist/components/core/Carousel/CarouselContext.js +3 -3
- package/dist/components/core/Carousel/CarouselItem.d.ts +4 -0
- package/dist/components/core/Carousel/CarouselItem.js +10 -0
- package/dist/components/core/Carousel/CarouselNext.d.ts +4 -0
- package/dist/components/core/Carousel/CarouselNext.js +14 -0
- package/dist/components/core/Carousel/CarouselPrevious.d.ts +4 -0
- package/dist/components/core/Carousel/CarouselPrevious.js +14 -0
- package/dist/components/core/Carousel/index.d.ts +2 -4
- package/dist/components/core/CommandPalette/CommandItem.d.ts +51 -0
- package/dist/components/core/CommandPalette/CommandItem.js +139 -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 +220 -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.theme.d.ts +11 -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/ContextMenuContext.d.ts +5 -0
- package/dist/components/core/ContextMenu/ContextMenuItem.d.ts +7 -0
- package/dist/components/core/ContextMenu/ContextMenuLabel.d.ts +6 -0
- package/dist/components/core/ContextMenu/ContextMenuSeparator.d.ts +6 -0
- package/dist/components/core/ContextMenu/ContextMenuSub.d.ts +6 -0
- package/dist/components/core/ContextMenu/ContextMenuSubContent.d.ts +6 -0
- package/dist/components/core/ContextMenu/ContextMenuSubTrigger.d.ts +6 -0
- package/dist/components/core/ContextMenu/ContextMenuTrigger.d.ts +6 -0
- package/dist/components/core/ContextMenu/index.d.ts +4 -0
- package/dist/components/core/Divider/Divider.js +19 -11
- package/dist/components/core/Divider/Divider.theme.js +1 -1
- package/dist/components/core/DragDrop/DragDrop.d.ts +9 -0
- package/dist/components/core/DragDrop/DragDrop.js +207 -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.js +3 -3
- package/dist/components/core/Drawer/Drawer.d.ts +3 -4
- package/dist/components/core/Drawer/Drawer.js +42 -33
- package/dist/components/core/Drawer/Drawer.theme.d.ts +6 -4
- package/dist/components/core/Drawer/Drawer.theme.js +30 -19
- package/dist/components/core/Drawer/Drawer.types.d.ts +2 -2
- package/dist/components/core/Drawer/DrawerContent.d.ts +6 -0
- package/dist/components/core/Drawer/DrawerContent.js +11 -0
- package/dist/components/core/Drawer/DrawerFooter.js +3 -5
- package/dist/components/core/Drawer/DrawerHeader.js +6 -8
- package/dist/components/core/Drawer/index.d.ts +2 -2
- 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 +33 -0
- package/dist/components/core/Dropdown/Dropdown.types.d.ts +83 -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 +6 -0
- package/dist/components/core/Dropdown/DropdownItem.js +78 -0
- package/dist/components/core/Dropdown/DropdownMenu.d.ts +6 -0
- package/dist/components/core/Dropdown/DropdownMenu.js +222 -0
- package/dist/components/core/Dropdown/DropdownSection.d.ts +6 -0
- package/dist/components/core/Dropdown/DropdownSection.js +18 -0
- package/dist/components/core/Dropdown/DropdownSeparator.d.ts +6 -0
- package/dist/components/core/Dropdown/DropdownSeparator.js +14 -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 +24 -0
- package/dist/components/core/Empty/Empty.theme.js +13 -0
- package/dist/components/core/Empty/index.d.ts +3 -0
- package/dist/components/core/Kbd/Kbd.d.ts +14 -0
- package/dist/components/core/Kbd/Kbd.js +69 -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 +39 -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 +59 -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 +212 -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/Message/Message.d.ts +8 -0
- package/dist/components/core/Message/Message.js +130 -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 +16 -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 +21 -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 +29 -0
- package/dist/components/core/Metric/Metric.theme.d.ts +6 -0
- package/dist/components/core/Metric/Metric.theme.js +68 -0
- package/dist/components/core/Metric/Metric.types.d.ts +73 -0
- package/dist/components/core/Metric/index.d.ts +3 -0
- package/dist/components/core/Modal/Modal.animations.js +2 -2
- package/dist/components/core/Modal/Modal.d.ts +10 -3
- package/dist/components/core/Modal/Modal.js +45 -29
- package/dist/components/core/Modal/Modal.theme.js +11 -10
- package/dist/components/core/Modal/Modal.types.d.ts +18 -5
- package/dist/components/core/Modal/ModalBody.js +33 -6
- package/dist/components/core/Modal/ModalDescription.d.ts +6 -0
- package/dist/components/core/Modal/ModalDescription.js +11 -0
- package/dist/components/core/Modal/ModalFooter.js +3 -5
- package/dist/components/core/Modal/ModalHeader.d.ts +1 -1
- package/dist/components/core/Modal/ModalHeader.js +12 -10
- package/dist/components/core/Modal/ModalTitle.d.ts +6 -0
- package/dist/components/core/Modal/ModalTitle.js +11 -0
- package/dist/components/core/Modal/index.d.ts +2 -2
- package/dist/components/core/NavItem/NavItem.js +132 -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/Notification/Notification.js +106 -0
- package/dist/components/core/Notification/Notification.theme.d.ts +16 -0
- package/dist/components/core/Notification/Notification.theme.js +57 -0
- package/dist/components/core/Notification/Notification.types.d.ts +46 -0
- package/dist/components/core/OfflineIndicator/OfflineIndicator.d.ts +20 -0
- package/dist/components/core/OfflineIndicator/OfflineIndicator.js +112 -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 +1 -1
- package/dist/components/core/Pagination/Pagination.js +53 -59
- package/dist/components/core/Pagination/Pagination.theme.d.ts +6 -15
- package/dist/components/core/Pagination/Pagination.theme.js +28 -19
- package/dist/components/core/Pagination/Pagination.types.d.ts +2 -23
- package/dist/components/core/Pagination/index.d.ts +1 -1
- 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 +43 -0
- package/dist/components/core/Pill/Pill.js +145 -0
- package/dist/components/core/Pill/Pill.theme.d.ts +8 -0
- package/dist/components/core/Pill/Pill.theme.js +65 -0
- package/dist/components/core/Pill/Pill.types.d.ts +95 -0
- package/dist/components/core/Pill/index.d.ts +3 -0
- package/dist/components/core/Popover/Popover.animations.js +3 -3
- package/dist/components/core/Popover/Popover.d.ts +1 -20
- package/dist/components/core/Popover/Popover.js +27 -26
- package/dist/components/core/Popover/Popover.theme.js +2 -2
- package/dist/components/core/Popover/PopoverContent.d.ts +1 -1
- package/dist/components/core/Popover/PopoverContent.js +37 -127
- package/dist/components/core/Popover/PopoverContext.js +3 -3
- package/dist/components/core/Popover/PopoverTrigger.js +21 -12
- package/dist/components/core/Popover/index.d.ts +1 -2
- package/dist/components/core/ProgressiveBlur/ProgressiveBlur.d.ts +30 -3
- package/dist/components/core/ProgressiveBlur/ProgressiveBlur.js +216 -32
- package/dist/components/core/ProgressiveBlur/ProgressiveBlur.theme.d.ts +0 -6
- package/dist/components/core/ProgressiveBlur/ProgressiveBlur.types.d.ts +8 -2
- package/dist/components/core/ProgressiveBlur/index.d.ts +2 -2
- package/dist/components/core/RetryBoundary/RetryBoundary.d.ts +35 -0
- package/dist/components/core/RetryBoundary/RetryBoundary.js +154 -0
- package/dist/components/core/RetryBoundary/RetryBoundary.theme.d.ts +2 -0
- package/dist/components/core/RetryBoundary/RetryBoundary.theme.js +7 -0
- package/dist/components/core/RetryBoundary/RetryBoundary.types.d.ts +51 -0
- package/dist/components/core/RetryBoundary/index.d.ts +3 -0
- package/dist/components/core/Segmented/Segmented.d.ts +0 -1
- package/dist/components/core/Segmented/Segmented.js +24 -24
- package/dist/components/core/Segmented/Segmented.theme.d.ts +1 -1
- package/dist/components/core/Segmented/Segmented.theme.js +7 -7
- package/dist/components/core/Segmented/SegmentedContext.js +1 -1
- package/dist/components/core/Segmented/SegmentedItem.d.ts +0 -1
- package/dist/components/core/Segmented/SegmentedItem.js +9 -11
- package/dist/components/core/Segmented/index.d.ts +0 -2
- package/dist/components/core/Sidebar/Sidebar.d.ts +3 -0
- package/dist/components/core/Sidebar/Sidebar.js +41 -0
- package/dist/components/core/Sidebar/Sidebar.theme.js +16 -0
- package/dist/components/core/Sidebar/SidebarContent.d.ts +3 -0
- package/dist/components/core/Sidebar/SidebarContent.js +12 -0
- package/dist/components/core/Sidebar/SidebarContext.js +37 -0
- package/dist/components/core/Sidebar/SidebarFooter.d.ts +3 -0
- package/dist/components/core/Sidebar/SidebarFooter.js +12 -0
- package/dist/components/core/Sidebar/SidebarHeader.d.ts +3 -0
- package/dist/components/core/Sidebar/SidebarHeader.js +19 -0
- package/dist/components/core/Sidebar/SidebarNav.js +9 -0
- package/dist/components/core/Sidebar/SidebarNavGroup.d.ts +3 -0
- package/dist/components/core/Sidebar/SidebarNavGroup.js +17 -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 +60 -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 +67 -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 +210 -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/Spinner/Spinner.d.ts +4 -0
- package/dist/components/core/Spinner/Spinner.js +12 -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/Stepper/Stepper.d.ts +1 -1
- package/dist/components/core/Stepper/Stepper.js +17 -16
- package/dist/components/core/Stepper/Stepper.theme.d.ts +35 -30
- package/dist/components/core/Stepper/Stepper.theme.js +51 -3
- package/dist/components/core/Stepper/Stepper.types.d.ts +2 -0
- package/dist/components/core/Stepper/StepperItem.d.ts +26 -0
- package/dist/components/core/Stepper/StepperItem.js +112 -0
- package/dist/components/core/Stepper/index.d.ts +1 -1
- package/dist/components/core/Table/Table.d.ts +54 -0
- package/dist/components/core/Table/Table.js +223 -0
- package/dist/components/core/Table/Table.theme.js +63 -0
- package/dist/components/core/Table/Table.types.d.ts +268 -0
- package/dist/components/core/Table/Table.utils.js +30 -0
- package/dist/components/core/Table/components/DeclarativeComponents.js +117 -0
- package/dist/components/core/Table/components/TableActions/TableActions.d.ts +8 -0
- package/dist/components/core/Table/components/TableActions/TableActions.js +73 -0
- package/dist/components/core/Table/components/TableActions/TableActionsMenu.js +27 -0
- package/dist/components/core/Table/components/TablePagination/TablePagination.js +49 -0
- package/dist/components/core/Table/components/TableSelectionHeader/TableSelectionHeader.d.ts +15 -0
- package/dist/components/core/Table/components/TableSelectionHeader/TableSelectionHeader.js +27 -0
- package/dist/components/core/Table/components/TableSelectionHeader/index.d.ts +3 -0
- package/dist/components/core/Table/components/core/TableBody.js +32 -0
- package/dist/components/core/Table/components/core/TableCell.js +45 -0
- package/dist/components/core/Table/components/core/TableHeader.js +75 -0
- package/dist/components/core/Table/components/core/TableRow.js +44 -0
- package/dist/components/core/Table/index.d.ts +20 -0
- package/dist/components/core/Table/index.js +21 -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 +0 -1
- package/dist/components/core/Tabs/Tabs.js +64 -20
- package/dist/components/core/Tabs/Tabs.theme.d.ts +2 -1
- package/dist/components/core/Tabs/Tabs.theme.js +12 -10
- package/dist/components/core/Tabs/Tabs.types.d.ts +86 -20
- package/dist/components/core/Tabs/TabsContent.d.ts +1 -1
- package/dist/components/core/Tabs/TabsContent.js +36 -11
- package/dist/components/core/Tabs/TabsContext.js +3 -3
- package/dist/components/core/Tabs/TabsList.d.ts +1 -1
- package/dist/components/core/Tabs/TabsList.js +78 -7
- package/dist/components/core/Tabs/TabsTrigger.d.ts +1 -1
- package/dist/components/core/Tabs/TabsTrigger.js +121 -53
- package/dist/components/core/Tabs/index.d.ts +1 -4
- package/dist/components/core/Toast/Toast.animations.js +58 -0
- package/dist/components/core/Toast/Toast.js +62 -0
- package/dist/components/core/Toast/Toast.theme.js +22 -0
- package/dist/components/core/Toast/Toast.types.d.ts +108 -0
- package/dist/components/core/Toast/ToastProvider.js +75 -0
- package/dist/components/core/Toast/useToast.js +97 -0
- package/dist/components/core/Tooltip/Tooltip.animations.js +45 -11
- package/dist/components/core/Tooltip/Tooltip.d.ts +1 -1
- package/dist/components/core/Tooltip/Tooltip.js +96 -50
- package/dist/components/core/Tooltip/Tooltip.theme.d.ts +0 -4
- package/dist/components/core/Tooltip/Tooltip.theme.js +4 -8
- package/dist/components/core/Tooltip/index.d.ts +1 -1
- package/dist/components/core/Tree/Tree.animations.d.ts +4 -3
- package/dist/components/core/Tree/Tree.animations.js +75 -17
- package/dist/components/core/Tree/Tree.js +99 -69
- package/dist/components/core/Tree/Tree.theme.js +7 -8
- package/dist/components/core/Tree/Tree.types.d.ts +0 -2
- package/dist/components/core/index.d.ts +45 -0
- package/dist/components/core/index.js +94 -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 +48 -0
- package/dist/components/effects/CustomCursor/CustomCursor.js +300 -0
- package/dist/components/effects/CustomCursor/CustomCursor.theme.d.ts +6 -0
- package/dist/components/effects/CustomCursor/CustomCursor.theme.js +32 -0
- package/dist/components/effects/CustomCursor/CustomCursor.types.d.ts +88 -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 +262 -0
- package/dist/components/effects/GlassSurface/GlassSurface.types.d.ts +57 -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 +141 -0
- package/dist/components/effects/Overlay/Overlay.types.d.ts +49 -0
- package/dist/components/effects/Overlay/index.d.ts +2 -0
- package/dist/components/effects/SpotlightBorder/SpotlightBorder.d.ts +18 -0
- package/dist/components/effects/SpotlightBorder/SpotlightBorder.js +196 -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 +10 -0
- package/dist/components/effects/index.js +5 -0
- package/dist/components/forms/Checkbox/Checkbox.d.ts +0 -1
- package/dist/components/forms/Checkbox/Checkbox.js +16 -19
- package/dist/components/forms/Checkbox/Checkbox.theme.d.ts +1 -0
- package/dist/components/forms/Checkbox/Checkbox.theme.js +32 -5
- package/dist/components/forms/Checkbox/index.d.ts +3 -3
- package/dist/components/forms/ColorPicker/ColorPicker.animations.d.ts +17 -0
- package/dist/components/forms/ColorPicker/ColorPicker.d.ts +27 -0
- package/dist/components/forms/ColorPicker/ColorPicker.theme.d.ts +6 -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/ColorPickerContent.d.ts +7 -0
- package/dist/components/forms/ColorPicker/ColorPickerEyeDropper.d.ts +7 -0
- package/dist/components/forms/ColorPicker/ColorPickerFormatSelector.d.ts +7 -0
- package/dist/components/forms/ColorPicker/ColorPickerInput.d.ts +7 -0
- package/dist/components/forms/ColorPicker/ColorPickerPresets.d.ts +7 -0
- package/dist/components/forms/ColorPicker/ColorPickerSliders.d.ts +7 -0
- package/dist/components/forms/ColorPicker/ColorPickerSwatch.d.ts +7 -0
- package/dist/components/forms/ColorPicker/ColorPickerTrigger.d.ts +7 -0
- package/dist/components/forms/ColorPicker/colorUtils.d.ts +121 -0
- package/dist/components/forms/ColorPicker/index.d.ts +17 -0
- package/dist/components/forms/DatePicker/DatePicker.animations.d.ts +11 -32
- package/dist/components/forms/DatePicker/DatePicker.animations.js +33 -0
- package/dist/components/forms/DatePicker/DatePicker.d.ts +37 -3
- package/dist/components/forms/DatePicker/DatePicker.js +143 -0
- package/dist/components/forms/DatePicker/DatePicker.theme.d.ts +7 -4
- package/dist/components/forms/DatePicker/DatePicker.theme.js +54 -0
- package/dist/components/forms/DatePicker/DatePicker.types.d.ts +122 -84
- package/dist/components/forms/DatePicker/DatePickerContent.d.ts +7 -0
- package/dist/components/forms/DatePicker/DatePickerContent.js +232 -0
- package/dist/components/forms/DatePicker/DatePickerPresets.d.ts +12 -0
- package/dist/components/forms/DatePicker/DatePickerPresets.js +40 -0
- package/dist/components/forms/DatePicker/DatePickerTrigger.d.ts +7 -0
- package/dist/components/forms/DatePicker/DatePickerTrigger.js +37 -0
- package/dist/components/forms/DatePicker/index.d.ts +2 -4
- package/dist/components/forms/FileUpload/FileUpload.d.ts +23 -0
- package/dist/components/forms/FileUpload/FileUpload.js +294 -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.js +2 -4
- package/dist/components/forms/FormLabel/FormLabel.theme.js +3 -3
- package/dist/components/forms/Input/Input.js +125 -118
- package/dist/components/forms/Input/Input.theme.d.ts +0 -1
- package/dist/components/forms/Input/Input.theme.js +37 -26
- package/dist/components/forms/Input/Input.types.d.ts +21 -13
- package/dist/components/forms/Input/inputMasks.d.ts +15 -0
- package/dist/components/forms/Input/inputMasks.js +197 -35
- package/dist/components/forms/InputAddress/InputAddress.js +36 -27
- package/dist/components/forms/InputAddress/InputAddress.theme.js +11 -6
- package/dist/components/forms/InputCounter/InputCounter.d.ts +29 -0
- package/dist/components/forms/InputCounter/InputCounter.js +173 -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.js +83 -0
- package/dist/components/forms/InputCreditCard/InputCreditCard.theme.js +42 -0
- package/dist/components/forms/InputDate/InputDate.d.ts +28 -0
- package/dist/components/forms/InputDate/InputDate.js +155 -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.js +50 -47
- package/dist/components/forms/InputOTP/InputOTP.theme.d.ts +4 -0
- package/dist/components/forms/InputOTP/InputOTP.theme.js +19 -8
- package/dist/components/forms/InputOTP/InputOTP.types.d.ts +5 -6
- package/dist/components/forms/OptimisticForm/OptimisticForm.d.ts +33 -0
- package/dist/components/forms/OptimisticForm/OptimisticForm.js +87 -0
- package/dist/components/forms/OptimisticForm/OptimisticForm.theme.d.ts +2 -0
- package/dist/components/forms/OptimisticForm/OptimisticForm.theme.js +8 -0
- package/dist/components/forms/OptimisticForm/OptimisticForm.types.d.ts +74 -0
- package/dist/components/forms/OptimisticForm/index.d.ts +3 -0
- package/dist/components/forms/Radio/Radio.d.ts +0 -1
- package/dist/components/forms/Radio/Radio.js +10 -12
- package/dist/components/forms/Radio/Radio.theme.js +4 -4
- package/dist/components/forms/Radio/index.d.ts +3 -3
- 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 +0 -1
- package/dist/components/forms/RichTextEditor/RichTextEditor.js +618 -851
- package/dist/components/forms/RichTextEditor/RichTextEditor.theme.d.ts +1 -2
- package/dist/components/forms/RichTextEditor/RichTextEditor.theme.js +33 -16
- package/dist/components/forms/RichTextEditor/RichTextEditor.types.d.ts +19 -4
- package/dist/components/forms/RichTextEditor/index.d.ts +1 -1
- package/dist/components/forms/Select/Select.animations.d.ts +8 -1
- package/dist/components/forms/Select/Select.animations.js +8 -6
- package/dist/components/forms/Select/Select.d.ts +2 -6
- package/dist/components/forms/Select/Select.js +329 -147
- package/dist/components/forms/Select/Select.theme.d.ts +1 -1
- package/dist/components/forms/Select/Select.theme.js +29 -18
- package/dist/components/forms/Select/Select.types.d.ts +38 -22
- package/dist/components/forms/Select/index.d.ts +2 -2
- package/dist/components/forms/Signature/Signature.js +81 -45
- package/dist/components/forms/Signature/Signature.theme.d.ts +5 -1
- package/dist/components/forms/Signature/Signature.theme.js +29 -3
- package/dist/components/forms/Signature/Signature.types.d.ts +60 -0
- package/dist/components/forms/Signature/index.d.ts +1 -0
- package/dist/components/forms/Slider/Slider.d.ts +0 -1
- package/dist/components/forms/Slider/Slider.js +246 -0
- package/dist/components/forms/Slider/Slider.theme.d.ts +14 -4
- package/dist/components/forms/Slider/Slider.theme.js +26 -0
- package/dist/components/forms/Slider/Slider.types.d.ts +16 -38
- package/dist/components/forms/Slider/index.d.ts +1 -1
- package/dist/components/forms/StepperForm/StepperForm.d.ts +7 -0
- package/dist/components/forms/StepperForm/StepperForm.js +96 -0
- package/dist/components/forms/StepperForm/StepperForm.theme.d.ts +2 -0
- package/dist/components/forms/StepperForm/StepperForm.theme.js +19 -0
- package/dist/components/forms/StepperForm/StepperForm.types.d.ts +65 -0
- package/dist/components/forms/StepperForm/StepperForm.types.js +12 -0
- package/dist/components/forms/StepperForm/index.d.ts +3 -0
- package/dist/components/forms/Switch/Switch.d.ts +0 -1
- package/dist/components/forms/Switch/Switch.js +34 -38
- package/dist/components/forms/Switch/Switch.theme.d.ts +10 -26
- package/dist/components/forms/Switch/Switch.theme.js +10 -35
- package/dist/components/forms/Switch/Switch.types.d.ts +18 -37
- package/dist/components/forms/Switch/index.d.ts +3 -3
- package/dist/components/forms/Textarea/Textarea.d.ts +0 -1
- package/dist/components/forms/Textarea/Textarea.js +36 -22
- package/dist/components/forms/Textarea/Textarea.theme.d.ts +0 -1
- package/dist/components/forms/Textarea/Textarea.theme.js +7 -7
- package/dist/components/forms/Textarea/Textarea.types.d.ts +2 -0
- package/dist/components/forms/Textarea/index.d.ts +2 -2
- package/dist/components/forms/TimePicker/TimePicker.animations.d.ts +0 -1
- package/dist/components/forms/TimePicker/TimePicker.d.ts +11 -1
- package/dist/components/forms/TimePicker/TimePicker.js +115 -237
- package/dist/components/forms/TimePicker/TimePicker.theme.d.ts +3 -3
- package/dist/components/forms/TimePicker/TimePicker.theme.js +60 -103
- package/dist/components/forms/TimePicker/TimePicker.types.d.ts +78 -33
- package/dist/components/forms/TimePicker/TimePickerContent.d.ts +15 -0
- package/dist/components/forms/TimePicker/TimePickerContent.js +49 -0
- package/dist/components/forms/TimePicker/TimePickerTrigger.d.ts +8 -0
- package/dist/components/forms/TimePicker/TimePickerTrigger.js +46 -0
- package/dist/components/forms/TimePicker/index.d.ts +5 -3
- package/dist/components/forms/forms.theme.d.ts +12 -7
- package/dist/components/forms/forms.theme.js +48 -19
- package/dist/components/forms/index.d.ts +59 -13
- package/dist/components/forms/index.js +51 -0
- package/dist/hooks/index.d.ts +14 -0
- package/dist/hooks/useFormStateMachine.d.ts +31 -0
- package/dist/hooks/useFormStateMachine.js +70 -0
- package/dist/hooks/useNetworkStatus.d.ts +40 -0
- package/dist/hooks/useNetworkStatus.js +89 -0
- package/dist/hooks/useOptimisticMutation.d.ts +109 -0
- package/dist/hooks/useOptimisticMutation.js +171 -0
- package/dist/hooks/useOverlay.d.ts +47 -0
- package/dist/hooks/useOverlay.js +71 -0
- package/dist/hooks/usePresence.d.ts +88 -0
- package/dist/hooks/useSelectPortal.d.ts +28 -0
- package/dist/hooks/useSelectPortal.js +325 -0
- package/dist/hooks/useSlidingNumber.d.ts +60 -0
- package/dist/hooks/useSlidingNumber.js +66 -0
- package/dist/hooks/useStreamingSSE.d.ts +80 -0
- package/dist/hooks/useStreamingSSE.js +225 -0
- package/dist/hooks/useTypewriter.d.ts +51 -0
- package/dist/hooks/useTypewriter.js +116 -0
- package/dist/icons/Icon.js +4 -6
- package/dist/icons/core/ChevronUpDown.js +3 -4
- package/dist/icons/core/DollarIcon.js +2 -3
- package/dist/icons/core/LockIcon.js +2 -3
- package/dist/icons/core/MinusIcon.js +3 -4
- package/dist/icons/core/PlusIcon.js +3 -4
- package/dist/icons/core/SearchIcon.js +3 -4
- package/dist/icons/core/TickIcon.js +3 -4
- package/dist/index.d.ts +11 -47
- package/dist/index.js +188 -71
- package/dist/styles.css +1 -1
- package/dist/utils/actionQueue.d.ts +113 -0
- package/dist/utils/actionQueue.js +203 -0
- package/dist/utils/cn.js +3 -7
- package/dist/utils/dateUtils.d.ts +60 -0
- package/dist/utils/dateUtils.js +66 -11
- package/dist/utils/debounce.js +3 -7
- package/dist/utils/formValidation.d.ts +20 -0
- package/dist/utils/formValidation.js +21 -0
- package/dist/utils/index.d.ts +14 -5
- package/dist/utils/optimisticErrors.d.ts +79 -0
- package/dist/utils/optimisticErrors.js +96 -0
- package/dist/utils/presenceUtils.d.ts +66 -0
- package/dist/utils/presenceUtils.js +107 -0
- package/dist/utils/retryUtils.d.ts +49 -0
- package/dist/utils/retryUtils.js +53 -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/stateMachine.js +45 -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 +59 -0
- package/dist/utils/useClickOutside.js +5 -5
- package/package.json +76 -20
- package/dist/_virtual/jsx-runtime.js +0 -5
- package/dist/_virtual/jsx-runtime2.js +0 -3
- package/dist/_virtual/react-jsx-runtime.development.js +0 -3
- package/dist/_virtual/react-jsx-runtime.production.js +0 -3
- package/dist/components/core/Accordion/index.js +0 -5
- package/dist/components/core/Button/Button.animations.js +0 -20
- package/dist/components/core/Calendar/DayView/DayViewCell.d.ts +0 -20
- package/dist/components/core/Calendar/MonthView/MonthView.d.ts +0 -2
- package/dist/components/core/Calendar/MonthView/components/CalendarCell/CalendarCell.d.ts +0 -4
- package/dist/components/core/Calendar/MonthView/components/CalendarCell/CalendarCell.theme.d.ts +0 -29
- package/dist/components/core/Calendar/MonthView/components/CalendarCell/CalendarCell.types.d.ts +0 -41
- package/dist/components/core/Calendar/MonthView/components/CalendarCell/index.d.ts +0 -3
- package/dist/components/core/Calendar/MonthView/components/MontViewHeader/MonthViewHeader.d.ts +0 -2
- package/dist/components/core/Carousel/Carousel.animations.d.ts +0 -33
- package/dist/components/core/Carousel/Carousel.animations.js +0 -353
- package/dist/components/core/Carousel/components/CarouselControlButton.d.ts +0 -4
- package/dist/components/core/Carousel/components/CarouselControlButton.js +0 -26
- package/dist/components/core/Carousel/components/CarouselControls.d.ts +0 -4
- package/dist/components/core/Carousel/components/CarouselControls.js +0 -17
- package/dist/components/core/Carousel/components/CarouselSlide.d.ts +0 -4
- package/dist/components/core/Carousel/components/CarouselSlide.js +0 -74
- package/dist/components/core/Carousel/components/index.d.ts +0 -3
- package/dist/components/core/Carousel/index.js +0 -5
- package/dist/components/core/Drawer/DrawerBody.d.ts +0 -6
- package/dist/components/core/Drawer/DrawerBody.js +0 -13
- package/dist/components/core/Popover/index.js +0 -6
- package/dist/components/core/ProgressiveBlur/ProgressiveBlur.theme.js +0 -17
- package/dist/components/core/Stepper/components/ConnectorLine.d.ts +0 -21
- package/dist/components/core/Stepper/components/ConnectorLine.js +0 -42
- package/dist/components/core/Stepper/components/IconCircle.d.ts +0 -19
- package/dist/components/core/Stepper/components/IconCircle.js +0 -44
- package/dist/components/core/Stepper/components/ProgressIndicator.d.ts +0 -7
- package/dist/components/core/Stepper/components/ProgressIndicator.js +0 -12
- package/dist/components/core/Stepper/components/StepContent.d.ts +0 -20
- package/dist/components/core/Stepper/components/StepContent.js +0 -36
- package/dist/components/core/Stepper/components/StepperItem.d.ts +0 -24
- package/dist/components/core/Stepper/components/StepperItem.js +0 -22
- package/dist/components/core/Tabs/index.js +0 -9
- package/dist/components/core/Tooltip/useTooltipPositioning.js +0 -59
- package/dist/components/data-display/Masonry/Masonry.d.ts +0 -4
- package/dist/components/data-display/Masonry/Masonry.js +0 -184
- package/dist/components/data-display/Masonry/Masonry.theme.js +0 -40
- package/dist/components/data-display/Masonry/Masonry.types.d.ts +0 -53
- package/dist/components/data-display/Masonry/index.d.ts +0 -3
- package/dist/components/data-display/Table/Table.d.ts +0 -54
- package/dist/components/data-display/Table/Table.js +0 -177
- package/dist/components/data-display/Table/Table.theme.js +0 -28
- package/dist/components/data-display/Table/Table.types.d.ts +0 -297
- package/dist/components/data-display/Table/Table.utils.js +0 -28
- package/dist/components/data-display/Table/components/DeclarativeComponents.js +0 -123
- package/dist/components/data-display/Table/components/TableActions/TableActions.d.ts +0 -8
- package/dist/components/data-display/Table/components/TableActions/TableActions.js +0 -56
- package/dist/components/data-display/Table/components/TableActions/TableActionsMenu.js +0 -29
- package/dist/components/data-display/Table/components/TableColumnManager/TableColumnManager.d.ts +0 -3
- package/dist/components/data-display/Table/components/TableColumnManager/TableColumnManager.js +0 -85
- package/dist/components/data-display/Table/components/TableColumnManager/TableColumnManager.theme.d.ts +0 -20
- package/dist/components/data-display/Table/components/TableColumnManager/TableColumnManager.theme.js +0 -21
- package/dist/components/data-display/Table/components/TableColumnManager/index.d.ts +0 -1
- package/dist/components/data-display/Table/components/TablePagination/TablePagination.js +0 -51
- package/dist/components/data-display/Table/components/TableSelectionHeader/TableSelectionHeader.d.ts +0 -16
- package/dist/components/data-display/Table/components/TableSelectionHeader/TableSelectionHeader.js +0 -29
- package/dist/components/data-display/Table/components/TableSelectionHeader/index.d.ts +0 -3
- package/dist/components/data-display/Table/components/core/TableBody.js +0 -32
- package/dist/components/data-display/Table/components/core/TableCell.js +0 -47
- package/dist/components/data-display/Table/components/core/TableHeader.js +0 -77
- package/dist/components/data-display/Table/components/core/TableRow.js +0 -46
- package/dist/components/data-display/Table/index.d.ts +0 -21
- package/dist/components/data-display/Table/index.js +0 -20
- package/dist/components/feedback/Alert/Alert.d.ts +0 -3
- package/dist/components/feedback/Alert/Alert.js +0 -36
- package/dist/components/feedback/Alert/Alert.theme.d.ts +0 -2
- package/dist/components/feedback/Alert/Alert.theme.js +0 -17
- package/dist/components/feedback/Alert/Alert.types.d.ts +0 -44
- package/dist/components/feedback/ChatMessage/ChatMessage.d.ts +0 -3
- package/dist/components/feedback/ChatMessage/ChatMessage.js +0 -26
- package/dist/components/feedback/ChatMessage/ChatMessage.theme.d.ts +0 -2
- package/dist/components/feedback/ChatMessage/ChatMessage.theme.js +0 -16
- package/dist/components/feedback/ChatMessage/ChatMessage.types.d.ts +0 -72
- package/dist/components/feedback/ChatMessage/index.d.ts +0 -2
- package/dist/components/feedback/Empty/Empty.d.ts +0 -4
- package/dist/components/feedback/Empty/Empty.js +0 -26
- package/dist/components/feedback/Empty/Empty.theme.js +0 -13
- package/dist/components/feedback/Empty/index.d.ts +0 -3
- package/dist/components/feedback/Notification/Notification.js +0 -41
- package/dist/components/feedback/Notification/Notification.theme.d.ts +0 -17
- package/dist/components/feedback/Notification/Notification.theme.js +0 -49
- package/dist/components/feedback/Notification/Notification.types.d.ts +0 -33
- package/dist/components/feedback/Spinner/Spinner.d.ts +0 -4
- package/dist/components/feedback/Spinner/Spinner.js +0 -14
- package/dist/components/feedback/Spinner/Spinner.theme.js +0 -26
- package/dist/components/feedback/Spinner/Spinner.types.d.ts +0 -31
- package/dist/components/feedback/Spinner/index.d.ts +0 -2
- package/dist/components/feedback/Toast/Toast.animations.js +0 -58
- package/dist/components/feedback/Toast/Toast.js +0 -67
- package/dist/components/feedback/Toast/Toast.theme.js +0 -18
- package/dist/components/feedback/Toast/Toast.types.d.ts +0 -99
- package/dist/components/feedback/Toast/ToastProvider.js +0 -73
- package/dist/components/feedback/Toast/useToast.js +0 -91
- package/dist/components/feedback/index.d.ts +0 -11
- package/dist/components/forms/DatePicker/components/CalendarHeader/CalendarHeader.d.ts +0 -7
- package/dist/components/forms/DatePicker/components/CalendarHeader/CalendarHeader.theme.d.ts +0 -6
- package/dist/components/forms/DatePicker/components/CalendarHeader/CalendarHeader.types.d.ts +0 -42
- package/dist/components/forms/DatePicker/components/CalendarHeader/index.d.ts +0 -3
- package/dist/components/forms/DatePicker/components/DateInput/DateInput.d.ts +0 -7
- package/dist/components/forms/DatePicker/components/DateInput/DateInput.types.d.ts +0 -25
- package/dist/components/forms/DatePicker/components/DateInput/index.d.ts +0 -2
- package/dist/components/forms/DatePicker/components/MonthPicker/MonthPicker.d.ts +0 -7
- package/dist/components/forms/DatePicker/components/MonthPicker/MonthPicker.theme.d.ts +0 -6
- package/dist/components/forms/DatePicker/components/MonthPicker/MonthPicker.types.d.ts +0 -64
- package/dist/components/forms/DatePicker/components/MonthPicker/index.d.ts +0 -3
- package/dist/components/forms/DatePicker/components/YearPicker/YearPicker.d.ts +0 -7
- package/dist/components/forms/DatePicker/components/YearPicker/YearPicker.theme.d.ts +0 -6
- package/dist/components/forms/DatePicker/components/YearPicker/YearPicker.types.d.ts +0 -62
- package/dist/components/forms/DatePicker/components/YearPicker/index.d.ts +0 -3
- package/dist/components/forms/DatePicker/components/index.d.ts +0 -8
- package/dist/components/forms/DateRangePicker/DateRangePicker.d.ts +0 -7
- package/dist/components/forms/DateRangePicker/DateRangePicker.theme.d.ts +0 -6
- package/dist/components/forms/DateRangePicker/DateRangePicker.types.d.ts +0 -129
- package/dist/components/forms/DateRangePicker/index.d.ts +0 -3
- package/dist/components/forms/TimePicker/TimePicker.animations.js +0 -188
- package/dist/components/layout/DragDrop/DragDrop.d.ts +0 -4
- package/dist/components/layout/DragDrop/DragDrop.js +0 -62
- package/dist/components/layout/DragDrop/DragDrop.theme.js +0 -8
- package/dist/components/layout/DragDrop/DragDrop.types.d.ts +0 -50
- package/dist/components/layout/DragDrop/index.d.ts +0 -2
- package/dist/components/layout/Sortable/Sortable.animations.js +0 -81
- package/dist/components/layout/Sortable/Sortable.d.ts +0 -4
- package/dist/components/layout/Sortable/Sortable.js +0 -165
- package/dist/components/layout/Sortable/Sortable.theme.js +0 -7
- package/dist/components/layout/Sortable/Sortable.types.d.ts +0 -67
- package/dist/components/layout/index.d.ts +0 -2
- package/dist/components/navigation/NavItem/NavItem.js +0 -93
- package/dist/components/navigation/NavItem/NavItem.theme.js +0 -27
- package/dist/components/navigation/NavItem/NavItem.types.d.ts +0 -113
- package/dist/components/navigation/Sidebar/Sidebar.d.ts +0 -3
- package/dist/components/navigation/Sidebar/Sidebar.js +0 -28
- package/dist/components/navigation/Sidebar/Sidebar.theme.js +0 -16
- package/dist/components/navigation/Sidebar/SidebarContent.d.ts +0 -3
- package/dist/components/navigation/Sidebar/SidebarContent.js +0 -12
- package/dist/components/navigation/Sidebar/SidebarContext.js +0 -38
- package/dist/components/navigation/Sidebar/SidebarFooter.d.ts +0 -3
- package/dist/components/navigation/Sidebar/SidebarFooter.js +0 -11
- package/dist/components/navigation/Sidebar/SidebarHeader.d.ts +0 -3
- package/dist/components/navigation/Sidebar/SidebarHeader.js +0 -22
- package/dist/components/navigation/Sidebar/SidebarNav.js +0 -11
- package/dist/components/navigation/Sidebar/SidebarNavGroup.d.ts +0 -3
- package/dist/components/navigation/Sidebar/SidebarNavGroup.js +0 -19
- package/dist/components/navigation/Sidebar/SidebarToggle.d.ts +0 -3
- package/dist/components/navigation/Sidebar/SidebarToggle.js +0 -26
- package/dist/components/navigation/Sidebar/index.d.ts +0 -9
- package/dist/components/navigation/index.d.ts +0 -4
- package/dist/node_modules/@heroicons/react/20/solid/esm/ChevronDownIcon.js +0 -26
- package/dist/node_modules/@heroicons/react/20/solid/esm/ChevronRightIcon.js +0 -26
- package/dist/node_modules/@heroicons/react/24/outline/esm/ArrowUturnLeftIcon.js +0 -28
- package/dist/node_modules/@heroicons/react/24/outline/esm/ArrowUturnRightIcon.js +0 -28
- package/dist/node_modules/@heroicons/react/24/outline/esm/Bars3BottomLeftIcon.js +0 -28
- package/dist/node_modules/@heroicons/react/24/outline/esm/Bars3BottomRightIcon.js +0 -28
- package/dist/node_modules/@heroicons/react/24/outline/esm/Bars3Icon.js +0 -28
- package/dist/node_modules/@heroicons/react/24/outline/esm/BoldIcon.js +0 -27
- package/dist/node_modules/@heroicons/react/24/outline/esm/CheckIcon.js +0 -28
- package/dist/node_modules/@heroicons/react/24/outline/esm/ChevronDoubleLeftIcon.js +0 -28
- package/dist/node_modules/@heroicons/react/24/outline/esm/ChevronDoubleRightIcon.js +0 -28
- package/dist/node_modules/@heroicons/react/24/outline/esm/ChevronLeftIcon.js +0 -28
- package/dist/node_modules/@heroicons/react/24/outline/esm/ChevronRightIcon.js +0 -28
- package/dist/node_modules/@heroicons/react/24/outline/esm/ChevronUpDownIcon.js +0 -28
- package/dist/node_modules/@heroicons/react/24/outline/esm/ClockIcon.js +0 -28
- package/dist/node_modules/@heroicons/react/24/outline/esm/Cog6ToothIcon.js +0 -32
- package/dist/node_modules/@heroicons/react/24/outline/esm/DocumentIcon.js +0 -28
- package/dist/node_modules/@heroicons/react/24/outline/esm/EllipsisVerticalIcon.js +0 -28
- package/dist/node_modules/@heroicons/react/24/outline/esm/ItalicIcon.js +0 -28
- package/dist/node_modules/@heroicons/react/24/outline/esm/LockClosedIcon.js +0 -28
- package/dist/node_modules/@heroicons/react/24/outline/esm/MinusIcon.js +0 -28
- package/dist/node_modules/@heroicons/react/24/outline/esm/PlusIcon.js +0 -28
- package/dist/node_modules/@heroicons/react/24/outline/esm/UnderlineIcon.js +0 -28
- package/dist/node_modules/@heroicons/react/24/outline/esm/XMarkIcon.js +0 -28
- package/dist/node_modules/@heroicons/react/24/solid/esm/ArrowPathIcon.js +0 -26
- package/dist/node_modules/@heroicons/react/24/solid/esm/BellIcon.js +0 -26
- package/dist/node_modules/@heroicons/react/24/solid/esm/CheckCircleIcon.js +0 -26
- package/dist/node_modules/@heroicons/react/24/solid/esm/ExclamationTriangleIcon.js +0 -26
- package/dist/node_modules/@heroicons/react/24/solid/esm/EyeIcon.js +0 -28
- package/dist/node_modules/@heroicons/react/24/solid/esm/EyeSlashIcon.js +0 -28
- package/dist/node_modules/@heroicons/react/24/solid/esm/InformationCircleIcon.js +0 -26
- package/dist/node_modules/@heroicons/react/24/solid/esm/LockClosedIcon.js +0 -26
- package/dist/node_modules/@heroicons/react/24/solid/esm/PaintBrushIcon.js +0 -26
- package/dist/node_modules/@heroicons/react/24/solid/esm/XCircleIcon.js +0 -26
- package/dist/node_modules/@heroicons/react/24/solid/esm/XMarkIcon.js +0 -26
- package/dist/node_modules/clsx/dist/clsx.js +0 -3
- package/dist/node_modules/framer-motion/dist/es/animation/animate/single-value.js +0 -11
- package/dist/node_modules/framer-motion/dist/es/animation/animators/waapi/utils/get-final-keyframe.js +0 -11
- package/dist/node_modules/framer-motion/dist/es/animation/interfaces/motion-value.js +0 -103
- package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-target.js +0 -85
- package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-variant.js +0 -59
- package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element.js +0 -26
- package/dist/node_modules/framer-motion/dist/es/animation/optimized-appear/data-id.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/animation/optimized-appear/get-appear-id.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/animation/utils/calc-child-stagger.js +0 -15
- package/dist/node_modules/framer-motion/dist/es/animation/utils/default-transitions.js +0 -40
- package/dist/node_modules/framer-motion/dist/es/animation/utils/is-animation-controls.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/animation/utils/is-keyframes-target.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/animation/utils/is-transition-defined.js +0 -10
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.js +0 -87
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.js +0 -63
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/index.js +0 -165
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.js +0 -44
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/utils.js +0 -14
- package/dist/node_modules/framer-motion/dist/es/context/LayoutGroupContext.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/context/LazyContext.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/context/MotionConfigContext.js +0 -12
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/create.js +0 -13
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/index.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/utils.js +0 -17
- package/dist/node_modules/framer-motion/dist/es/context/PresenceContext.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.js +0 -8
- package/dist/node_modules/framer-motion/dist/es/events/add-dom-event.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/events/add-pointer-event.js +0 -8
- package/dist/node_modules/framer-motion/dist/es/events/event-info.js +0 -15
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.js +0 -501
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/index.js +0 -27
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.js +0 -129
- package/dist/node_modules/framer-motion/dist/es/gestures/focus.js +0 -41
- package/dist/node_modules/framer-motion/dist/es/gestures/hover.js +0 -30
- package/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.js +0 -157
- package/dist/node_modules/framer-motion/dist/es/gestures/pan/index.js +0 -50
- package/dist/node_modules/framer-motion/dist/es/gestures/press.js +0 -33
- package/dist/node_modules/framer-motion/dist/es/motion/features/Feature.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/motion/features/animation/exit.js +0 -36
- package/dist/node_modules/framer-motion/dist/es/motion/features/animation/index.js +0 -40
- package/dist/node_modules/framer-motion/dist/es/motion/features/animations.js +0 -13
- package/dist/node_modules/framer-motion/dist/es/motion/features/definitions.js +0 -28
- package/dist/node_modules/framer-motion/dist/es/motion/features/drag.js +0 -17
- package/dist/node_modules/framer-motion/dist/es/motion/features/gestures.js +0 -21
- package/dist/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.js +0 -147
- package/dist/node_modules/framer-motion/dist/es/motion/features/layout.js +0 -11
- package/dist/node_modules/framer-motion/dist/es/motion/features/load-features.js +0 -12
- package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/index.js +0 -72
- package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/observers.js +0 -49
- package/dist/node_modules/framer-motion/dist/es/motion/index.js +0 -107
- package/dist/node_modules/framer-motion/dist/es/motion/utils/is-forced-motion-value.js +0 -11
- package/dist/node_modules/framer-motion/dist/es/motion/utils/symbol.js +0 -3
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.js +0 -38
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.js +0 -139
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.js +0 -79
- package/dist/node_modules/framer-motion/dist/es/motion/utils/valid-prop.js +0 -57
- package/dist/node_modules/framer-motion/dist/es/projection/animation/mix-values.js +0 -91
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/conversion.js +0 -33
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/copy.js +0 -31
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-apply.js +0 -119
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-calc.js +0 -52
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-remove.js +0 -54
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/models.js +0 -17
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/utils.js +0 -31
- package/dist/node_modules/framer-motion/dist/es/projection/node/DocumentProjectionNode.js +0 -13
- package/dist/node_modules/framer-motion/dist/es/projection/node/HTMLProjectionNode.js +0 -27
- package/dist/node_modules/framer-motion/dist/es/projection/node/create-projection-node.js +0 -1582
- package/dist/node_modules/framer-motion/dist/es/projection/node/state.js +0 -19
- package/dist/node_modules/framer-motion/dist/es/projection/shared/stack.js +0 -112
- package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-border-radius.js +0 -41
- package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-box-shadow.js +0 -35
- package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-correction.js +0 -13
- package/dist/node_modules/framer-motion/dist/es/projection/styles/transform.js +0 -49
- package/dist/node_modules/framer-motion/dist/es/projection/utils/each-axis.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/projection/utils/has-transform.js +0 -26
- package/dist/node_modules/framer-motion/dist/es/projection/utils/measure.js +0 -17
- package/dist/node_modules/framer-motion/dist/es/render/VisualElement.js +0 -489
- package/dist/node_modules/framer-motion/dist/es/render/components/create-proxy.js +0 -45
- package/dist/node_modules/framer-motion/dist/es/render/components/motion/feature-bundle.js +0 -13
- package/dist/node_modules/framer-motion/dist/es/render/components/motion/proxy.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/render/dom/DOMVisualElement.js +0 -43
- package/dist/node_modules/framer-motion/dist/es/render/dom/create-visual-element.js +0 -14
- package/dist/node_modules/framer-motion/dist/es/render/dom/use-render.js +0 -28
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/camel-to-dash.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.js +0 -59
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.js +0 -30
- package/dist/node_modules/framer-motion/dist/es/render/html/HTMLVisualElement.js +0 -44
- package/dist/node_modules/framer-motion/dist/es/render/html/use-html-visual-state.js +0 -10
- package/dist/node_modules/framer-motion/dist/es/render/html/use-props.js +0 -57
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/build-styles.js +0 -65
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/build-transform.js +0 -62
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/create-render-state.js +0 -8
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/render.js +0 -17
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/scrape-motion-values.js +0 -19
- package/dist/node_modules/framer-motion/dist/es/render/store.js +0 -3
- package/dist/node_modules/framer-motion/dist/es/render/svg/SVGVisualElement.js +0 -45
- package/dist/node_modules/framer-motion/dist/es/render/svg/lowercase-elements.js +0 -33
- package/dist/node_modules/framer-motion/dist/es/render/svg/use-props.js +0 -24
- package/dist/node_modules/framer-motion/dist/es/render/svg/use-svg-visual-state.js +0 -10
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/build-attrs.js +0 -57
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/camel-case-attrs.js +0 -30
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.js +0 -8
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/is-svg-tag.js +0 -3
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/path.js +0 -32
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/render.js +0 -12
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/scrape-motion-values.js +0 -19
- package/dist/node_modules/framer-motion/dist/es/render/utils/animation-state.js +0 -357
- package/dist/node_modules/framer-motion/dist/es/render/utils/compare-by-depth.js +0 -3
- package/dist/node_modules/framer-motion/dist/es/render/utils/flat-tree.js +0 -24
- package/dist/node_modules/framer-motion/dist/es/render/utils/get-variant-context.js +0 -28
- package/dist/node_modules/framer-motion/dist/es/render/utils/is-controlling-variants.js +0 -13
- package/dist/node_modules/framer-motion/dist/es/render/utils/is-variant-label.js +0 -8
- package/dist/node_modules/framer-motion/dist/es/render/utils/motion-values.js +0 -51
- package/dist/node_modules/framer-motion/dist/es/render/utils/resolve-dynamic-variants.js +0 -8
- package/dist/node_modules/framer-motion/dist/es/render/utils/resolve-variants.js +0 -36
- package/dist/node_modules/framer-motion/dist/es/render/utils/setters.js +0 -31
- package/dist/node_modules/framer-motion/dist/es/render/utils/variant-props.js +0 -12
- package/dist/node_modules/framer-motion/dist/es/utils/delay.js +0 -20
- package/dist/node_modules/framer-motion/dist/es/utils/distance.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/utils/get-context-window.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/utils/is-browser.js +0 -3
- package/dist/node_modules/framer-motion/dist/es/utils/is-ref-object.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/index.js +0 -19
- package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/state.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/use-reduced-motion.js +0 -47
- package/dist/node_modules/framer-motion/dist/es/utils/shallow-compare.js +0 -14
- package/dist/node_modules/framer-motion/dist/es/utils/use-constant.js +0 -18
- package/dist/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/value/use-combine-values.js +0 -37
- package/dist/node_modules/framer-motion/dist/es/value/use-computed.js +0 -19
- package/dist/node_modules/framer-motion/dist/es/value/use-motion-value.js +0 -38
- package/dist/node_modules/framer-motion/dist/es/value/use-spring.js +0 -22
- package/dist/node_modules/framer-motion/dist/es/value/use-transform.js +0 -27
- package/dist/node_modules/framer-motion/dist/es/value/use-will-change/add-will-change.js +0 -20
- package/dist/node_modules/framer-motion/dist/es/value/use-will-change/is.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/value/utils/resolve-motion-value.js +0 -12
- package/dist/node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.js +0 -176
- package/dist/node_modules/motion-dom/dist/es/animation/JSAnimation.js +0 -341
- package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimation.js +0 -158
- package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimationExtended.js +0 -65
- package/dist/node_modules/motion-dom/dist/es/animation/drivers/frame.js +0 -17
- package/dist/node_modules/motion-dom/dist/es/animation/generators/inertia.js +0 -87
- package/dist/node_modules/motion-dom/dist/es/animation/generators/keyframes.js +0 -51
- package/dist/node_modules/motion-dom/dist/es/animation/generators/spring/defaults.js +0 -27
- package/dist/node_modules/motion-dom/dist/es/animation/generators/spring/find.js +0 -86
- package/dist/node_modules/motion-dom/dist/es/animation/generators/spring/index.js +0 -176
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/calc-duration.js +0 -17
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.js +0 -19
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.js +0 -5
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/velocity.js +0 -9
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.js +0 -131
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver.js +0 -147
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/get-final.js +0 -11
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/default.js +0 -9
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/fill.js +0 -12
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/time.js +0 -5
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/is-none.js +0 -15
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.js +0 -30
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/unit-conversion.js +0 -36
- package/dist/node_modules/motion-dom/dist/es/animation/utils/WithPromise.js +0 -26
- package/dist/node_modules/motion-dom/dist/es/animation/utils/can-animate.js +0 -42
- package/dist/node_modules/motion-dom/dist/es/animation/utils/css-variables-conversion.js +0 -42
- package/dist/node_modules/motion-dom/dist/es/animation/utils/get-value-transition.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/animation/utils/is-animatable.js +0 -30
- package/dist/node_modules/motion-dom/dist/es/animation/utils/is-css-variable.js +0 -15
- package/dist/node_modules/motion-dom/dist/es/animation/utils/make-animation-instant.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/animation/utils/replace-transition-type.js +0 -18
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/cubic-bezier.js +0 -3
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/map-easing.js +0 -28
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/supported.js +0 -15
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.js +0 -29
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/supports/waapi.js +0 -43
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.js +0 -15
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/linear.js +0 -12
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/unsupported-easing.js +0 -20
- package/dist/node_modules/motion-dom/dist/es/frameloop/batcher.js +0 -71
- package/dist/node_modules/motion-dom/dist/es/frameloop/frame.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/frameloop/microtask.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/frameloop/order.js +0 -12
- package/dist/node_modules/motion-dom/dist/es/frameloop/render-step.js +0 -81
- package/dist/node_modules/motion-dom/dist/es/frameloop/sync-time.js +0 -31
- package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/is-active.js +0 -9
- package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/set-active.js +0 -28
- package/dist/node_modules/motion-dom/dist/es/gestures/hover.js +0 -37
- package/dist/node_modules/motion-dom/dist/es/gestures/press/index.js +0 -83
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.js +0 -13
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.js +0 -38
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/state.js +0 -3
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.js +0 -20
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-primary-pointer.js +0 -18
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/setup.js +0 -15
- package/dist/node_modules/motion-dom/dist/es/render/dom/is-css-var.js +0 -3
- package/dist/node_modules/motion-dom/dist/es/render/dom/parse-transform.js +0 -83
- package/dist/node_modules/motion-dom/dist/es/render/dom/style-set.js +0 -9
- package/dist/node_modules/motion-dom/dist/es/render/utils/keys-position.js +0 -13
- package/dist/node_modules/motion-dom/dist/es/render/utils/keys-transform.js +0 -28
- package/dist/node_modules/motion-dom/dist/es/utils/interpolate.js +0 -79
- package/dist/node_modules/motion-dom/dist/es/utils/is-html-element.js +0 -11
- package/dist/node_modules/motion-dom/dist/es/utils/is-svg-element.js +0 -11
- package/dist/node_modules/motion-dom/dist/es/utils/is-svg-svg-element.js +0 -11
- package/dist/node_modules/motion-dom/dist/es/utils/mix/color.js +0 -47
- package/dist/node_modules/motion-dom/dist/es/utils/mix/complex.js +0 -93
- package/dist/node_modules/motion-dom/dist/es/utils/mix/immediate.js +0 -5
- package/dist/node_modules/motion-dom/dist/es/utils/mix/index.js +0 -14
- package/dist/node_modules/motion-dom/dist/es/utils/mix/number.js +0 -26
- package/dist/node_modules/motion-dom/dist/es/utils/mix/visibility.js +0 -16
- package/dist/node_modules/motion-dom/dist/es/utils/resolve-elements.js +0 -14
- package/dist/node_modules/motion-dom/dist/es/utils/supports/flags.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/utils/supports/linear-easing.js +0 -15
- package/dist/node_modules/motion-dom/dist/es/utils/supports/memo.js +0 -9
- package/dist/node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.js +0 -5
- package/dist/node_modules/motion-dom/dist/es/utils/transform.js +0 -14
- package/dist/node_modules/motion-dom/dist/es/value/index.js +0 -325
- package/dist/node_modules/motion-dom/dist/es/value/spring-value.js +0 -54
- package/dist/node_modules/motion-dom/dist/es/value/types/auto.js +0 -9
- package/dist/node_modules/motion-dom/dist/es/value/types/color/hex.js +0 -40
- package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla-to-rgba.js +0 -42
- package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla.js +0 -22
- package/dist/node_modules/motion-dom/dist/es/value/types/color/index.js +0 -32
- package/dist/node_modules/motion-dom/dist/es/value/types/color/rgba.js +0 -25
- package/dist/node_modules/motion-dom/dist/es/value/types/color/utils.js +0 -29
- package/dist/node_modules/motion-dom/dist/es/value/types/complex/filter.js +0 -30
- package/dist/node_modules/motion-dom/dist/es/value/types/complex/index.js +0 -91
- package/dist/node_modules/motion-dom/dist/es/value/types/dimensions.js +0 -15
- package/dist/node_modules/motion-dom/dist/es/value/types/int.js +0 -8
- package/dist/node_modules/motion-dom/dist/es/value/types/maps/defaults.js +0 -30
- package/dist/node_modules/motion-dom/dist/es/value/types/maps/number.js +0 -50
- package/dist/node_modules/motion-dom/dist/es/value/types/maps/transform.js +0 -31
- package/dist/node_modules/motion-dom/dist/es/value/types/numbers/index.js +0 -17
- package/dist/node_modules/motion-dom/dist/es/value/types/numbers/units.js +0 -18
- package/dist/node_modules/motion-dom/dist/es/value/types/test.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/animatable-none.js +0 -15
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/color-regex.js +0 -3
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/find.js +0 -15
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/float-regex.js +0 -3
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/get-as-type.js +0 -10
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/is-nullish.js +0 -5
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/sanitize.js +0 -5
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/single-color-regex.js +0 -3
- package/dist/node_modules/motion-dom/dist/es/value/utils/is-motion-value.js +0 -3
- package/dist/node_modules/motion-utils/dist/es/array.js +0 -11
- package/dist/node_modules/motion-utils/dist/es/clamp.js +0 -9
- package/dist/node_modules/motion-utils/dist/es/easing/anticipate.js +0 -5
- package/dist/node_modules/motion-utils/dist/es/easing/back.js +0 -9
- package/dist/node_modules/motion-utils/dist/es/easing/circ.js +0 -8
- package/dist/node_modules/motion-utils/dist/es/easing/cubic-bezier.js +0 -51
- package/dist/node_modules/motion-utils/dist/es/easing/ease.js +0 -7
- package/dist/node_modules/motion-utils/dist/es/easing/modifiers/mirror.js +0 -5
- package/dist/node_modules/motion-utils/dist/es/easing/modifiers/reverse.js +0 -5
- package/dist/node_modules/motion-utils/dist/es/easing/utils/is-bezier-definition.js +0 -3
- package/dist/node_modules/motion-utils/dist/es/easing/utils/is-easing-array.js +0 -5
- package/dist/node_modules/motion-utils/dist/es/easing/utils/map.js +0 -41
- package/dist/node_modules/motion-utils/dist/es/errors.js +0 -18
- package/dist/node_modules/motion-utils/dist/es/format-error-message.js +0 -7
- package/dist/node_modules/motion-utils/dist/es/global-config.js +0 -3
- package/dist/node_modules/motion-utils/dist/es/is-numerical-string.js +0 -6
- package/dist/node_modules/motion-utils/dist/es/is-object.js +0 -5
- package/dist/node_modules/motion-utils/dist/es/is-zero-value-string.js +0 -6
- package/dist/node_modules/motion-utils/dist/es/memo.js +0 -11
- package/dist/node_modules/motion-utils/dist/es/noop.js +0 -4
- package/dist/node_modules/motion-utils/dist/es/pipe.js +0 -11
- package/dist/node_modules/motion-utils/dist/es/progress.js +0 -19
- package/dist/node_modules/motion-utils/dist/es/subscription-manager.js +0 -40
- package/dist/node_modules/motion-utils/dist/es/time-conversion.js +0 -12
- package/dist/node_modules/motion-utils/dist/es/velocity-per-second.js +0 -11
- package/dist/node_modules/motion-utils/dist/es/warn-once.js +0 -11
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.js +0 -368
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.js +0 -44
- package/dist/node_modules/react/jsx-runtime.js +0 -19
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +0 -2956
- package/dist/node_modules/tslib/tslib.es6.js +0 -70
- /package/dist/components/{feedback → core}/Alert/index.d.ts +0 -0
- /package/dist/components/{layout → core}/DragDrop/DragDrop.theme.d.ts +0 -0
- /package/dist/components/{feedback → core}/Empty/Empty.theme.d.ts +0 -0
- /package/dist/components/{feedback → core}/Empty/Empty.types.d.ts +0 -0
- /package/dist/components/{data-display → core}/Masonry/Masonry.theme.d.ts +0 -0
- /package/dist/components/{navigation → core}/NavItem/NavItem.d.ts +0 -0
- /package/dist/components/{navigation → core}/NavItem/NavItem.theme.d.ts +0 -0
- /package/dist/components/{navigation → core}/NavItem/index.d.ts +0 -0
- /package/dist/components/{feedback → core}/Notification/Notification.d.ts +0 -0
- /package/dist/components/{feedback → core}/Notification/index.d.ts +0 -0
- /package/dist/components/{navigation → core}/Sidebar/Sidebar.theme.d.ts +0 -0
- /package/dist/components/{navigation → core}/Sidebar/Sidebar.types.d.ts +0 -0
- /package/dist/components/{navigation → core}/Sidebar/SidebarContext.d.ts +0 -0
- /package/dist/components/{navigation → core}/Sidebar/SidebarNav.d.ts +0 -0
- /package/dist/components/{layout → core}/Sortable/Sortable.theme.d.ts +0 -0
- /package/dist/components/{layout → core}/Sortable/index.d.ts +0 -0
- /package/dist/components/{feedback → core}/Spinner/Spinner.theme.d.ts +0 -0
- /package/dist/components/{data-display → core}/Table/Table.animations.d.ts +0 -0
- /package/dist/components/{data-display → core}/Table/Table.theme.d.ts +0 -0
- /package/dist/components/{data-display → core}/Table/Table.utils.d.ts +0 -0
- /package/dist/components/{data-display → core}/Table/components/DeclarativeComponents.d.ts +0 -0
- /package/dist/components/{data-display → core}/Table/components/TableActions/TableActions.types.d.ts +0 -0
- /package/dist/components/{data-display → core}/Table/components/TableActions/TableActionsMenu.d.ts +0 -0
- /package/dist/components/{data-display → core}/Table/components/TableActions/index.d.ts +0 -0
- /package/dist/components/{data-display → core}/Table/components/TableActionsMenu.d.ts +0 -0
- /package/dist/components/{data-display → core}/Table/components/TablePagination/TablePagination.d.ts +0 -0
- /package/dist/components/{data-display → core}/Table/components/TablePagination/TablePagination.types.d.ts +0 -0
- /package/dist/components/{data-display → core}/Table/components/TablePagination/index.d.ts +0 -0
- /package/dist/components/{data-display → core}/Table/components/core/TableBody.d.ts +0 -0
- /package/dist/components/{data-display → core}/Table/components/core/TableCell.d.ts +0 -0
- /package/dist/components/{data-display → core}/Table/components/core/TableHeader.d.ts +0 -0
- /package/dist/components/{data-display → core}/Table/components/core/TableRow.d.ts +0 -0
- /package/dist/components/{data-display → core}/Table/components/core/index.d.ts +0 -0
- /package/dist/components/{feedback → core}/Toast/Toast.animations.d.ts +0 -0
- /package/dist/components/{feedback → core}/Toast/Toast.d.ts +0 -0
- /package/dist/components/{feedback → core}/Toast/Toast.theme.d.ts +0 -0
- /package/dist/components/{feedback → core}/Toast/ToastProvider.d.ts +0 -0
- /package/dist/components/{feedback → core}/Toast/index.d.ts +0 -0
- /package/dist/components/{feedback → core}/Toast/useToast.d.ts +0 -0
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { cn } from '../../../../../utils/cn.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Internal TableCell component used by the data-driven API
|
|
6
|
+
* Handles both header and data cells with proper theming and accessibility
|
|
7
|
+
*
|
|
8
|
+
* Features:
|
|
9
|
+
* - Dynamic cell type (th/td) based on isHeader prop
|
|
10
|
+
* - Frozen column support with visual indicators
|
|
11
|
+
* - Custom cell rendering via column.cell function
|
|
12
|
+
* - Tooltip support for truncated content
|
|
13
|
+
* - Alignment and width customization
|
|
14
|
+
* - Full accessibility with proper ARIA attributes
|
|
15
|
+
*
|
|
16
|
+
* @internal This component is used internally by the Table component
|
|
17
|
+
*/
|
|
18
|
+
function TableCellComponent({ column, row, rowId, isHeader = false, isFrozen = false, isLastFrozen = false, theme, children, }) {
|
|
19
|
+
const Cell = isHeader ? 'th' : 'td';
|
|
20
|
+
// For header cells, render the column header content
|
|
21
|
+
if (isHeader) {
|
|
22
|
+
const cellClasses = cn(theme === null || theme === void 0 ? void 0 : theme.headerStyle, isFrozen && (theme === null || theme === void 0 ? void 0 : theme.frozenColumnStyle), isLastFrozen && (theme === null || theme === void 0 ? void 0 : theme.lastFrozenColumnStyle), column.align && `text-${column.align}`);
|
|
23
|
+
return (React__default.createElement(Cell, { className: cellClasses, "data-frozen": isFrozen ? 'true' : isLastFrozen ? 'last' : undefined, style: { width: column.width }, role: "columnheader", "aria-label": typeof column.header === 'string' ? column.header : column.id }, children || column.header));
|
|
24
|
+
}
|
|
25
|
+
// For data cells, extract value using accessor (string key or function)
|
|
26
|
+
const value = typeof column.accessor === 'function'
|
|
27
|
+
? column.accessor(row)
|
|
28
|
+
: row[column.accessor];
|
|
29
|
+
// Use custom cell renderer if provided, otherwise display raw value
|
|
30
|
+
const content = column.cell ? column.cell(row) : value;
|
|
31
|
+
// Generate tooltip content if tooltip is enabled
|
|
32
|
+
const tooltipContent = typeof column.tooltip === 'function'
|
|
33
|
+
? column.tooltip(row)
|
|
34
|
+
: column.tooltip
|
|
35
|
+
? String(value)
|
|
36
|
+
: undefined;
|
|
37
|
+
const cellClasses = cn(theme === null || theme === void 0 ? void 0 : theme.cellStyle, isFrozen && (theme === null || theme === void 0 ? void 0 : theme.frozenColumnStyle), isLastFrozen && (theme === null || theme === void 0 ? void 0 : theme.lastFrozenColumnStyle), column.align && `text-${column.align}`, column.ellipsis && 'truncate');
|
|
38
|
+
return (React__default.createElement(Cell, { className: cellClasses, "data-frozen": isFrozen ? 'true' : isLastFrozen ? 'last' : undefined, style: { width: column.width }, title: tooltipContent, role: "cell" }, children || content));
|
|
39
|
+
}
|
|
40
|
+
// Set display name for dev tools
|
|
41
|
+
TableCellComponent.displayName = 'TableCell';
|
|
42
|
+
// Memoize component to prevent unnecessary re-renders when props haven't changed
|
|
43
|
+
const TableCell = React__default.memo(TableCellComponent);
|
|
44
|
+
|
|
45
|
+
export { TableCell };
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { TableCell } from './TableCell.js';
|
|
3
|
+
import { Checkbox } from '../../../../forms/Checkbox/Checkbox.js';
|
|
4
|
+
import { getRowId } from '../../Table.utils.js';
|
|
5
|
+
|
|
6
|
+
function TableHeaderComponent({ columns, sortConfig = [], onSortChange, filterConfig = [], onFilterChange, freezeHeader, freezeFirstColumn, freezeLastColumn, expandable, expandedRowRender, selectable, selectionType, selectedRows = [], onSelectionChange, totalRowCount = 0, theme, data = [], rowKey, }) {
|
|
7
|
+
const handleSort = (columnId) => {
|
|
8
|
+
if (!onSortChange)
|
|
9
|
+
return;
|
|
10
|
+
const currentSort = sortConfig.find(sort => sort.columnId === columnId);
|
|
11
|
+
const newSortConfig = [...sortConfig.filter(sort => sort.columnId !== columnId)];
|
|
12
|
+
if (!currentSort) {
|
|
13
|
+
// Add new sort
|
|
14
|
+
newSortConfig.push({
|
|
15
|
+
columnId,
|
|
16
|
+
direction: 'asc',
|
|
17
|
+
priority: sortConfig.length + 1,
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
else if (currentSort.direction === 'asc') {
|
|
21
|
+
// Change to desc
|
|
22
|
+
newSortConfig.push({
|
|
23
|
+
columnId,
|
|
24
|
+
direction: 'desc',
|
|
25
|
+
priority: currentSort.priority,
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
// If desc, remove sort
|
|
29
|
+
onSortChange(newSortConfig);
|
|
30
|
+
};
|
|
31
|
+
const handleSelectAll = (checked) => {
|
|
32
|
+
if (!onSelectionChange || selectionType !== 'checkbox')
|
|
33
|
+
return;
|
|
34
|
+
if (checked) {
|
|
35
|
+
// Select all rows - generate row IDs using the same logic as TableBody
|
|
36
|
+
const allRowIds = data.map((row, index) => getRowId(row, index, rowKey));
|
|
37
|
+
onSelectionChange(allRowIds);
|
|
38
|
+
}
|
|
39
|
+
else {
|
|
40
|
+
// Deselect all
|
|
41
|
+
onSelectionChange([]);
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
// Calculate select all checkbox state
|
|
45
|
+
const dataLength = data.length;
|
|
46
|
+
const isAllSelected = selectedRows.length === dataLength && dataLength > 0;
|
|
47
|
+
const isIndeterminate = selectedRows.length > 0 && selectedRows.length < dataLength;
|
|
48
|
+
return (React__default.createElement("thead", { className: freezeHeader ? theme === null || theme === void 0 ? void 0 : theme.frozenHeaderStyle : '' },
|
|
49
|
+
React__default.createElement("tr", null,
|
|
50
|
+
selectable && (React__default.createElement(TableCell, { column: {
|
|
51
|
+
id: 'selection',
|
|
52
|
+
header: '',
|
|
53
|
+
accessor: () => '',
|
|
54
|
+
width: '48px',
|
|
55
|
+
align: 'center'
|
|
56
|
+
}, row: {}, rowId: "", isHeader: true, theme: theme }, selectionType === 'checkbox' && (React__default.createElement(Checkbox, { id: "table-select-all", name: "table-select-all", value: "select-all", checked: isAllSelected, indeterminate: isIndeterminate, onChange: handleSelectAll, "aria-label": "Select all rows" })))),
|
|
57
|
+
expandable && expandedRowRender && (React__default.createElement(TableCell, { column: {
|
|
58
|
+
id: 'expand',
|
|
59
|
+
header: '',
|
|
60
|
+
accessor: () => '',
|
|
61
|
+
width: '48px',
|
|
62
|
+
align: 'center'
|
|
63
|
+
}, row: {}, rowId: "", isHeader: true, theme: theme })),
|
|
64
|
+
columns.map((column, index) => {
|
|
65
|
+
const currentSort = sortConfig.find(sort => sort.columnId === column.id);
|
|
66
|
+
const isSortable = column.sortable && onSortChange;
|
|
67
|
+
return (React__default.createElement(TableCell, { key: column.id, column: column, row: {}, rowId: "header", isHeader: true, isFrozen: freezeFirstColumn && index === 0, isLastFrozen: freezeLastColumn && index === columns.length - 1, theme: theme }, isSortable ? (React__default.createElement("button", { onClick: () => handleSort(column.id), className: "flex items-center gap-1 w-full text-left hover:text-primary-600 transition-colors", "aria-label": `Sort by ${typeof column.header === 'string' ? column.header : column.id}` },
|
|
68
|
+
column.header,
|
|
69
|
+
currentSort && (React__default.createElement("span", { className: "text-xs" }, currentSort.direction === 'asc' ? '↑' : '↓')))) : (column.header)));
|
|
70
|
+
}))));
|
|
71
|
+
}
|
|
72
|
+
// Export with proper type annotation
|
|
73
|
+
const TableHeader = TableHeaderComponent;
|
|
74
|
+
|
|
75
|
+
export { TableHeader };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { TableCell } from './TableCell.js';
|
|
3
|
+
import { Button } from '../../../Button/Button.js';
|
|
4
|
+
import { Checkbox } from '../../../../forms/Checkbox/Checkbox.js';
|
|
5
|
+
import { Radio } from '../../../../forms/Radio/Radio.js';
|
|
6
|
+
import { MinusIcon, PlusIcon } from '@heroicons/react/24/outline';
|
|
7
|
+
|
|
8
|
+
function TableRowComponent({ row, rowId, columns, expandedRowRender, isExpanded = false, onExpandChange, selectable, selectionType, isSelected = false, onSelectionChange, freezeFirstColumn, freezeLastColumn, theme, }) {
|
|
9
|
+
const rowClasses = [
|
|
10
|
+
(theme === null || theme === void 0 ? void 0 : theme.rowStyle) || "",
|
|
11
|
+
isSelected ? (theme === null || theme === void 0 ? void 0 : theme.selectedRowStyle) || "" : ""
|
|
12
|
+
].filter(Boolean).join(" ");
|
|
13
|
+
const handleExpandClick = (e) => {
|
|
14
|
+
e.stopPropagation();
|
|
15
|
+
onExpandChange === null || onExpandChange === void 0 ? void 0 : onExpandChange(!isExpanded);
|
|
16
|
+
};
|
|
17
|
+
return (React__default.createElement(React__default.Fragment, null,
|
|
18
|
+
React__default.createElement("tr", { className: rowClasses, "data-selected": isSelected, role: "row", "aria-selected": selectable ? isSelected : undefined, "aria-expanded": Boolean(expandedRowRender) ? isExpanded : undefined },
|
|
19
|
+
selectable && (React__default.createElement(TableCell, { column: {
|
|
20
|
+
id: 'selection',
|
|
21
|
+
header: '',
|
|
22
|
+
accessor: () => '',
|
|
23
|
+
width: '48px',
|
|
24
|
+
align: 'center'
|
|
25
|
+
}, row: row, rowId: rowId, theme: theme }, selectionType === "checkbox" ? (React__default.createElement(Checkbox, { id: `table-checkbox-${rowId}`, name: `table-selection-${rowId}`, value: String(rowId), checked: isSelected, onChange: (checked) => onSelectionChange === null || onSelectionChange === void 0 ? void 0 : onSelectionChange(checked), onClick: (e) => e.stopPropagation(), "aria-label": "Select row" })) : (React__default.createElement("div", { onClick: (e) => e.stopPropagation() },
|
|
26
|
+
React__default.createElement(Radio, { id: `table-radio-${rowId}`, name: "table-selection", value: String(rowId), checked: isSelected, onChange: (checked) => onSelectionChange === null || onSelectionChange === void 0 ? void 0 : onSelectionChange(checked), "aria-label": "Select row" }))))),
|
|
27
|
+
expandedRowRender && (React__default.createElement(TableCell, { column: {
|
|
28
|
+
id: 'expand',
|
|
29
|
+
header: '',
|
|
30
|
+
accessor: () => '',
|
|
31
|
+
width: '48px',
|
|
32
|
+
align: 'center'
|
|
33
|
+
}, row: row, rowId: rowId, theme: theme },
|
|
34
|
+
React__default.createElement(Button, { color: "primary", variant: "ghost", size: "sm", onClick: handleExpandClick, "aria-label": isExpanded ? "Collapse row" : "Expand row" }, isExpanded ? React__default.createElement(MinusIcon, { className: "w-4 h-4", strokeWidth: 2 }) : React__default.createElement(PlusIcon, { className: "w-4 h-4", strokeWidth: 2 })))),
|
|
35
|
+
columns.map((column, index) => (React__default.createElement(TableCell, { key: column.id, column: column, row: row, rowId: rowId, isFrozen: freezeFirstColumn && index === 0, isLastFrozen: freezeLastColumn && index === columns.length - 1, theme: theme })))),
|
|
36
|
+
isExpanded && expandedRowRender && (React__default.createElement("tr", null,
|
|
37
|
+
React__default.createElement("td", { colSpan: columns.length +
|
|
38
|
+
(selectable ? 1 : 0) +
|
|
39
|
+
1 }, expandedRowRender(row))))));
|
|
40
|
+
}
|
|
41
|
+
// Export with proper type annotation
|
|
42
|
+
const TableRow = TableRowComponent;
|
|
43
|
+
|
|
44
|
+
export { TableRow };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { TableProps, Column, SortConfig, FilterConfig, TableThemeOverrides, TableVariant, TableAlignment, SelectionType, TableHeaderProps, TableBodyProps, TableRowProps, TableCellProps, TableHeaderCellProps, BulkAction } from './Table.types';
|
|
2
|
+
import { TableActions } from './components/TableActions/TableActions';
|
|
3
|
+
import { TableActionsMenu } from './components/TableActions/TableActionsMenu';
|
|
4
|
+
import { TablePagination } from './components/TablePagination';
|
|
5
|
+
import { ActionItem, ActionVariant, ActionPriority, TableActionsProps, TableActionsMenuProps } from './components/TableActions/TableActions.types';
|
|
6
|
+
import { TablePaginationProps } from './components/TablePagination/TablePagination.types';
|
|
7
|
+
interface TableCompound {
|
|
8
|
+
<T extends Record<string, any>>(props: TableProps<T>): React.ReactElement;
|
|
9
|
+
Header: React.FC<TableHeaderProps>;
|
|
10
|
+
Body: React.FC<TableBodyProps>;
|
|
11
|
+
Row: React.FC<TableRowProps>;
|
|
12
|
+
Cell: React.FC<TableCellProps>;
|
|
13
|
+
HeaderCell: React.FC<TableHeaderCellProps>;
|
|
14
|
+
Actions: typeof TableActions;
|
|
15
|
+
Pagination: React.FC<TablePaginationProps>;
|
|
16
|
+
}
|
|
17
|
+
declare const Table: TableCompound;
|
|
18
|
+
export { Table };
|
|
19
|
+
export type { TableProps, Column, SortConfig, FilterConfig, TableThemeOverrides, TableVariant, TableAlignment, SelectionType, TableHeaderProps, TableBodyProps, TableRowProps, TableCellProps, TableHeaderCellProps, BulkAction, ActionItem, ActionVariant, ActionPriority, TableActionsProps, TableActionsMenuProps, TablePaginationProps, };
|
|
20
|
+
export { TableActions, TableActionsMenu, TablePagination };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Table as Table$1 } from './Table.js';
|
|
2
|
+
import { HeaderCell, Cell, Row, Body, Header } from './components/DeclarativeComponents.js';
|
|
3
|
+
import { TableActions } from './components/TableActions/TableActions.js';
|
|
4
|
+
import 'react';
|
|
5
|
+
import 'clsx';
|
|
6
|
+
import 'tailwind-merge';
|
|
7
|
+
import { TablePagination } from './components/TablePagination/TablePagination.js';
|
|
8
|
+
|
|
9
|
+
// First import the Table component itself
|
|
10
|
+
// Create a compound component by attaching the subcomponents
|
|
11
|
+
const Table = Object.assign(Table$1, {
|
|
12
|
+
Header,
|
|
13
|
+
Body,
|
|
14
|
+
Row,
|
|
15
|
+
Cell: Cell,
|
|
16
|
+
HeaderCell: HeaderCell,
|
|
17
|
+
Actions: TableActions,
|
|
18
|
+
Pagination: TablePagination
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
export { Table, TableActions, TablePagination };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Variants, Transition } from "motion/react";
|
|
2
|
+
/**
|
|
3
|
+
* Get Tabs trigger animation variants based on reduced motion preference
|
|
4
|
+
* Provides subtle micro-interactions for enhanced UX while respecting accessibility
|
|
5
|
+
*/
|
|
6
|
+
export declare const getTabsTriggerVariants: (shouldReduceMotion: boolean | null) => Variants | undefined;
|
|
7
|
+
/**
|
|
8
|
+
* Underline position interface for type safety
|
|
9
|
+
*/
|
|
10
|
+
export interface UnderlinePosition {
|
|
11
|
+
left: number;
|
|
12
|
+
width: number;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Get underline transition configuration based on reduced motion preference
|
|
16
|
+
* Uses spring animation for natural, fluid movement between tabs
|
|
17
|
+
*/
|
|
18
|
+
export declare const getUnderlineTransition: (shouldReduceMotion: boolean | null) => Transition;
|
|
19
|
+
/**
|
|
20
|
+
* Get TabsContent animation variants for directional fade animations
|
|
21
|
+
* Provides smooth fade-in from bottom and fade-out to top transitions
|
|
22
|
+
*/
|
|
23
|
+
export declare const getTabsContentVariants: (shouldReduceMotion: boolean | null) => Variants | undefined;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Get Tabs trigger animation variants based on reduced motion preference
|
|
3
|
+
* Provides subtle micro-interactions for enhanced UX while respecting accessibility
|
|
4
|
+
*/
|
|
5
|
+
const getTabsTriggerVariants = (shouldReduceMotion) => (shouldReduceMotion !== null && shouldReduceMotion !== void 0 ? shouldReduceMotion : false)
|
|
6
|
+
? undefined
|
|
7
|
+
: {
|
|
8
|
+
tap: {
|
|
9
|
+
scale: 0.98,
|
|
10
|
+
transition: {
|
|
11
|
+
duration: 0.1,
|
|
12
|
+
type: "spring",
|
|
13
|
+
stiffness: 400,
|
|
14
|
+
damping: 12,
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
hover: {
|
|
18
|
+
scale: 1.02,
|
|
19
|
+
transition: {
|
|
20
|
+
duration: 0.2,
|
|
21
|
+
type: "spring",
|
|
22
|
+
stiffness: 300,
|
|
23
|
+
damping: 15,
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* Get underline transition configuration based on reduced motion preference
|
|
29
|
+
* Uses spring animation for natural, fluid movement between tabs
|
|
30
|
+
*/
|
|
31
|
+
const getUnderlineTransition = (shouldReduceMotion) => {
|
|
32
|
+
if (shouldReduceMotion !== null && shouldReduceMotion !== void 0 ? shouldReduceMotion : false) {
|
|
33
|
+
// Reduced motion: instant transition
|
|
34
|
+
return {
|
|
35
|
+
duration: 0,
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
// Full motion: smooth spring transition
|
|
39
|
+
return {
|
|
40
|
+
type: "spring",
|
|
41
|
+
stiffness: 300,
|
|
42
|
+
damping: 30,
|
|
43
|
+
mass: 0.8,
|
|
44
|
+
restDelta: 0.1,
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* Get TabsContent animation variants for directional fade animations
|
|
49
|
+
* Provides smooth fade-in from bottom and fade-out to top transitions
|
|
50
|
+
*/
|
|
51
|
+
const getTabsContentVariants = (shouldReduceMotion) => {
|
|
52
|
+
if (shouldReduceMotion !== null && shouldReduceMotion !== void 0 ? shouldReduceMotion : false) {
|
|
53
|
+
// Reduced motion: no animation variants
|
|
54
|
+
return undefined;
|
|
55
|
+
}
|
|
56
|
+
// Full motion: directional fade animations
|
|
57
|
+
return {
|
|
58
|
+
initial: {
|
|
59
|
+
opacity: 0,
|
|
60
|
+
y: 10, // Start below natural position
|
|
61
|
+
},
|
|
62
|
+
animate: {
|
|
63
|
+
opacity: 1,
|
|
64
|
+
y: 0, // Move to natural position
|
|
65
|
+
transition: {
|
|
66
|
+
duration: 0.3,
|
|
67
|
+
type: "spring",
|
|
68
|
+
stiffness: 200,
|
|
69
|
+
damping: 25,
|
|
70
|
+
mass: 0.8,
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
exit: {
|
|
74
|
+
opacity: 0,
|
|
75
|
+
y: -10, // Exit slightly upward
|
|
76
|
+
transition: {
|
|
77
|
+
duration: 0.2,
|
|
78
|
+
ease: "easeIn",
|
|
79
|
+
},
|
|
80
|
+
},
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
export { getTabsContentVariants, getTabsTriggerVariants, getUnderlineTransition };
|
|
@@ -5,4 +5,3 @@ export declare const Tabs: React.ForwardRefExoticComponent<TabsProps & React.Ref
|
|
|
5
5
|
Trigger: React.ForwardRefExoticComponent<import("./Tabs.types").TabsTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
6
6
|
Content: React.ForwardRefExoticComponent<import("./Tabs.types").TabsContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
7
7
|
};
|
|
8
|
-
export default Tabs;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import React__default, { useState } from 'react';
|
|
1
|
+
import React__default, { useState, useRef, useCallback, useMemo } from 'react';
|
|
3
2
|
import { cn } from '../../../utils/cn.js';
|
|
4
3
|
import { tabsTheme } from './Tabs.theme.js';
|
|
5
4
|
import { TabsContext } from './TabsContext.js';
|
|
@@ -10,37 +9,82 @@ import { TabsContent } from './TabsContent.js';
|
|
|
10
9
|
/**
|
|
11
10
|
* Tabs component for organizing content into separate views
|
|
12
11
|
* Uses compound component pattern with Tabs.List, Tabs.Trigger, and Tabs.Content
|
|
12
|
+
* Supports optional Framer Motion animations and comprehensive accessibility
|
|
13
13
|
*/
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
const TabsComponent = React__default.forwardRef(({ value, defaultValue, onValueChange, orientation = "horizontal", size = "md", disabled = false, children, className, ...props }, ref) => {
|
|
15
|
+
const [currentValue, setCurrentValue] = useState(value || defaultValue || "");
|
|
16
|
+
// Track trigger elements for underline positioning
|
|
17
|
+
const triggerRefs = useRef(new Map());
|
|
17
18
|
// Handle controlled vs uncontrolled
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
const isControlled = value !== undefined;
|
|
20
|
+
const activeValue = isControlled ? value : currentValue;
|
|
21
|
+
// Dev-time warnings for common issues
|
|
22
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
23
|
+
// Warn if no defaultValue or value provided and no active tab will be selected
|
|
24
|
+
if (!value && !defaultValue && currentValue === "") {
|
|
25
|
+
// eslint-disable-next-line no-console
|
|
26
|
+
console.warn("Tabs: No 'value' or 'defaultValue' provided. Consider providing at least 'defaultValue' for initial tab selection.");
|
|
23
27
|
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
28
|
+
// Warn if both controlled and uncontrolled props are provided
|
|
29
|
+
if (value !== undefined && defaultValue !== undefined) {
|
|
30
|
+
// eslint-disable-next-line no-console
|
|
31
|
+
console.warn("Tabs: Both 'value' and 'defaultValue' provided. Component will be controlled (value takes precedence).");
|
|
32
|
+
}
|
|
33
|
+
// Warn if controlled but no onValueChange handler
|
|
34
|
+
if (isControlled && !onValueChange) {
|
|
35
|
+
// eslint-disable-next-line no-console
|
|
36
|
+
console.warn("Tabs: 'value' prop provided but no 'onValueChange' handler. Tabs will not be interactive.");
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
// Safe value change handler with error handling
|
|
40
|
+
const handleValueChange = useCallback((newValue) => {
|
|
41
|
+
try {
|
|
42
|
+
if (!isControlled) {
|
|
43
|
+
setCurrentValue(newValue);
|
|
44
|
+
}
|
|
45
|
+
onValueChange === null || onValueChange === void 0 ? void 0 : onValueChange(newValue);
|
|
46
|
+
}
|
|
47
|
+
catch (error) {
|
|
48
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
49
|
+
// eslint-disable-next-line no-console
|
|
50
|
+
console.error("Error in tabs value change handler:", error);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}, [isControlled, onValueChange]);
|
|
54
|
+
// Register and unregister trigger elements for underline positioning
|
|
55
|
+
const registerTrigger = useCallback((triggerValue, element) => {
|
|
56
|
+
triggerRefs.current.set(triggerValue, element);
|
|
57
|
+
}, []);
|
|
58
|
+
const unregisterTrigger = useCallback((triggerValue) => {
|
|
59
|
+
triggerRefs.current.delete(triggerValue);
|
|
60
|
+
}, []);
|
|
61
|
+
// Memoize context value to prevent unnecessary re-renders
|
|
62
|
+
const contextValue = useMemo(() => ({
|
|
27
63
|
value: activeValue,
|
|
28
64
|
onValueChange: handleValueChange,
|
|
29
65
|
orientation: orientation,
|
|
30
|
-
size
|
|
31
|
-
disabled
|
|
32
|
-
|
|
66
|
+
size,
|
|
67
|
+
disabled,
|
|
68
|
+
registerTrigger,
|
|
69
|
+
unregisterTrigger,
|
|
70
|
+
}), [activeValue, handleValueChange, orientation, size, disabled, registerTrigger, unregisterTrigger]);
|
|
71
|
+
// Memoize theme classes for performance
|
|
72
|
+
const themeClasses = useMemo(() => ({
|
|
73
|
+
baseStyle: tabsTheme.baseStyle,
|
|
74
|
+
disabledStyle: disabled ? "opacity-50 cursor-not-allowed pointer-events-none" : "",
|
|
75
|
+
}), [disabled]);
|
|
33
76
|
return (React__default.createElement(TabsContext.Provider, { value: contextValue },
|
|
34
|
-
React__default.createElement("div",
|
|
35
|
-
), "data-orientation": orientation, "data-size": size, "data-disabled": disabled
|
|
77
|
+
React__default.createElement("div", { ref: ref, className: cn(themeClasses.baseStyle, themeClasses.disabledStyle, className // User overrides take precedence
|
|
78
|
+
), "data-orientation": orientation, "data-size": size, "data-disabled": disabled, role: "tablist" // Add semantic role for screen readers
|
|
79
|
+
, "aria-orientation": orientation, ...props }, children)));
|
|
36
80
|
});
|
|
37
81
|
// Set display name for dev tools and Storybook
|
|
38
82
|
TabsComponent.displayName = "Tabs";
|
|
39
83
|
// Create compound component with proper typing
|
|
40
|
-
|
|
84
|
+
const Tabs = Object.assign(TabsComponent, {
|
|
41
85
|
List: TabsList,
|
|
42
86
|
Trigger: TabsTrigger,
|
|
43
87
|
Content: TabsContent,
|
|
44
88
|
});
|
|
45
89
|
|
|
46
|
-
export { Tabs
|
|
90
|
+
export { Tabs };
|
|
@@ -8,8 +8,9 @@ export interface TabsTheme {
|
|
|
8
8
|
triggerStyle: string;
|
|
9
9
|
triggerSizes: Record<TabsSize, string>;
|
|
10
10
|
contentStyle: string;
|
|
11
|
+
underlineStyle: string;
|
|
11
12
|
}
|
|
12
13
|
/**
|
|
13
|
-
* Default theme for Tabs components - simplified and organized
|
|
14
|
+
* Default theme for Tabs components - simplified and organized with proper design tokens
|
|
14
15
|
*/
|
|
15
16
|
export declare const tabsTheme: TabsTheme;
|
|
@@ -1,20 +1,22 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Default theme for Tabs components - simplified and organized
|
|
2
|
+
* Default theme for Tabs components - simplified and organized with proper design tokens
|
|
3
3
|
*/
|
|
4
|
-
|
|
4
|
+
const tabsTheme = {
|
|
5
5
|
// Container styles
|
|
6
6
|
baseStyle: "flex flex-col",
|
|
7
|
-
// TabsList styles
|
|
8
|
-
listStyle: "relative inline-flex items-center
|
|
9
|
-
// TabsTrigger base styles
|
|
10
|
-
triggerStyle: "relative inline-flex items-center justify-center whitespace-nowrap font-medium transition-all duration-300 cursor-pointer focus:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2
|
|
11
|
-
// TabsTrigger size variants
|
|
7
|
+
// TabsList styles with proper design tokens
|
|
8
|
+
listStyle: "relative inline-flex items-center flex-row border-b border-[var(--color-border)] gap-2",
|
|
9
|
+
// TabsTrigger base styles - no individual borders, underline will be handled separately
|
|
10
|
+
triggerStyle: "relative inline-flex items-center justify-center whitespace-nowrap font-medium transition-all duration-300 cursor-pointer focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-primary)] focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 text-[var(--color-text-muted)] hover:text-[var(--color-text-primary)] data-[state=active]:text-[var(--color-primary)]",
|
|
11
|
+
// TabsTrigger size variants using CSS variables where applicable
|
|
12
12
|
triggerSizes: {
|
|
13
13
|
sm: "px-2 py-1.5 text-sm gap-1",
|
|
14
|
-
md: "px-2 py-2 text-sm gap-
|
|
14
|
+
md: "px-2 py-2 text-sm gap-1",
|
|
15
15
|
},
|
|
16
|
-
// TabsContent styles
|
|
17
|
-
contentStyle: "focus:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2",
|
|
16
|
+
// TabsContent styles with proper CSS variables
|
|
17
|
+
contentStyle: "focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-primary)] focus-visible:ring-offset-2",
|
|
18
|
+
// Sliding underline styles
|
|
19
|
+
underlineStyle: "absolute bottom-0 h-0.5 bg-[var(--color-primary)] transition-none",
|
|
18
20
|
};
|
|
19
21
|
|
|
20
22
|
export { tabsTheme };
|
|
@@ -1,68 +1,134 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
/**
|
|
3
3
|
* Size options for the Tabs component
|
|
4
|
+
* @example
|
|
5
|
+
* <Tabs size="sm"> - Smaller tabs with reduced padding
|
|
6
|
+
* <Tabs size="md"> - Default medium-sized tabs
|
|
4
7
|
*/
|
|
5
8
|
export type TabsSize = "sm" | "md";
|
|
6
9
|
/**
|
|
7
10
|
* Orientation options for the Tabs component
|
|
8
|
-
*
|
|
11
|
+
* @note Currently only horizontal orientation is supported
|
|
12
|
+
* @example
|
|
13
|
+
* <Tabs orientation="horizontal"> - Horizontal tab layout (default)
|
|
9
14
|
*/
|
|
10
15
|
export type TabsOrientation = "horizontal";
|
|
11
16
|
/**
|
|
12
|
-
* Tabs component props
|
|
17
|
+
* Main Tabs component props following the compound component pattern
|
|
18
|
+
* @example
|
|
19
|
+
* ```tsx
|
|
20
|
+
* // Controlled mode
|
|
21
|
+
* <Tabs value={activeTab} onValueChange={setActiveTab} size="md">
|
|
22
|
+
* <Tabs.List>
|
|
23
|
+
* <Tabs.Trigger value="tab1">Tab 1</Tabs.Trigger>
|
|
24
|
+
* <Tabs.Trigger value="tab2">Tab 2</Tabs.Trigger>
|
|
25
|
+
* </Tabs.List>
|
|
26
|
+
* <Tabs.Content value="tab1">Content 1</Tabs.Content>
|
|
27
|
+
* <Tabs.Content value="tab2">Content 2</Tabs.Content>
|
|
28
|
+
* </Tabs>
|
|
29
|
+
*
|
|
30
|
+
* // Uncontrolled mode
|
|
31
|
+
* <Tabs defaultValue="tab1">
|
|
32
|
+
* // ... same structure
|
|
33
|
+
* </Tabs>
|
|
34
|
+
* ```
|
|
13
35
|
*/
|
|
14
36
|
export interface TabsProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'> {
|
|
15
|
-
/** The currently selected value (controlled mode) */
|
|
37
|
+
/** The currently selected value (controlled mode) - when provided, component is controlled */
|
|
16
38
|
value?: string;
|
|
17
|
-
/** The default selected value (uncontrolled mode) */
|
|
39
|
+
/** The default selected value (uncontrolled mode) - used when value is not provided */
|
|
18
40
|
defaultValue?: string;
|
|
19
|
-
/** Function called when selection changes */
|
|
41
|
+
/** Function called when selection changes - receives the new active tab value */
|
|
20
42
|
onValueChange?: (value: string) => void;
|
|
21
|
-
/** Orientation of the tabs (
|
|
43
|
+
/** Orientation of the tabs (currently only horizontal is supported) */
|
|
22
44
|
orientation?: TabsOrientation;
|
|
23
|
-
/** Size
|
|
45
|
+
/** Size variant for all tab triggers within this tabs instance */
|
|
24
46
|
size?: TabsSize;
|
|
25
|
-
/** Whether
|
|
47
|
+
/** Whether all tabs are disabled - individual triggers can also be disabled */
|
|
26
48
|
disabled?: boolean;
|
|
27
|
-
/** Children components
|
|
49
|
+
/** Children components - typically Tabs.List and Tabs.Content components */
|
|
28
50
|
children?: React.ReactNode;
|
|
29
51
|
}
|
|
30
52
|
/**
|
|
31
|
-
* TabsList component props
|
|
53
|
+
* TabsList component props - container for tab trigger buttons
|
|
54
|
+
* @example
|
|
55
|
+
* ```tsx
|
|
56
|
+
* <Tabs.List className="custom-list-styles">
|
|
57
|
+
* <Tabs.Trigger value="profile">Profile</Tabs.Trigger>
|
|
58
|
+
* <Tabs.Trigger value="settings">Settings</Tabs.Trigger>
|
|
59
|
+
* </Tabs.List>
|
|
60
|
+
* ```
|
|
32
61
|
*/
|
|
33
62
|
export interface TabsListProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
34
|
-
/** Children TabsTrigger components */
|
|
63
|
+
/** Children TabsTrigger components - should only contain Tabs.Trigger elements */
|
|
35
64
|
children?: React.ReactNode;
|
|
36
65
|
}
|
|
37
66
|
/**
|
|
38
|
-
* TabsTrigger component props
|
|
67
|
+
* TabsTrigger component props - individual tab button/header
|
|
68
|
+
* Supports optional Framer Motion animations and comprehensive accessibility
|
|
69
|
+
* @example
|
|
70
|
+
* ```tsx
|
|
71
|
+
* <Tabs.Trigger value="profile" disabled={false}>
|
|
72
|
+
* <UserIcon className="w-4 h-4" />
|
|
73
|
+
* Profile
|
|
74
|
+
* </Tabs.Trigger>
|
|
75
|
+
*
|
|
76
|
+
* // Icon-only trigger (should include aria-label)
|
|
77
|
+
* <Tabs.Trigger value="settings" aria-label="Settings tab">
|
|
78
|
+
* <CogIcon className="w-4 h-4" />
|
|
79
|
+
* </Tabs.Trigger>
|
|
80
|
+
* ```
|
|
39
81
|
*/
|
|
40
82
|
export interface TabsTriggerProps extends React.HTMLAttributes<HTMLButtonElement> {
|
|
41
|
-
/** The value for this tab */
|
|
83
|
+
/** The unique value identifier for this tab - used to associate with corresponding content */
|
|
42
84
|
value: string;
|
|
43
|
-
/** Whether this tab is disabled */
|
|
85
|
+
/** Whether this specific tab trigger is disabled (overrides parent tabs disabled state) */
|
|
44
86
|
disabled?: boolean;
|
|
45
|
-
/**
|
|
87
|
+
/** Content to display in the tab trigger - text, icons, or combination */
|
|
46
88
|
children?: React.ReactNode;
|
|
89
|
+
/** Accessibility label - strongly recommended for icon-only tabs */
|
|
90
|
+
'aria-label'?: string;
|
|
47
91
|
}
|
|
48
92
|
/**
|
|
49
|
-
* TabsContent component props
|
|
93
|
+
* TabsContent component props - content panel for each tab
|
|
94
|
+
* @example
|
|
95
|
+
* ```tsx
|
|
96
|
+
* <Tabs.Content value="profile">
|
|
97
|
+
* <UserProfile data={profileData} />
|
|
98
|
+
* </Tabs.Content>
|
|
99
|
+
*
|
|
100
|
+
* // Force mount content for performance or state preservation
|
|
101
|
+
* <Tabs.Content value="settings" forceMount>
|
|
102
|
+
* <SettingsForm /> // Form state preserved when tab is inactive
|
|
103
|
+
* </Tabs.Content>
|
|
104
|
+
* ```
|
|
50
105
|
*/
|
|
51
106
|
export interface TabsContentProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
52
|
-
/** The value that
|
|
107
|
+
/** The value that corresponds to a TabsTrigger value - determines when content is shown */
|
|
53
108
|
value: string;
|
|
54
|
-
/** Whether to
|
|
109
|
+
/** Whether to keep content mounted in DOM when inactive (useful for preserving form state) */
|
|
55
110
|
forceMount?: boolean;
|
|
56
|
-
/**
|
|
111
|
+
/** Content to display when this tab is active */
|
|
57
112
|
children?: React.ReactNode;
|
|
58
113
|
}
|
|
59
114
|
/**
|
|
60
|
-
*
|
|
115
|
+
* Internal context value for Tabs compound components
|
|
116
|
+
* Provides shared state and configuration to child components
|
|
117
|
+
* @internal - This interface is used internally and not intended for external use
|
|
61
118
|
*/
|
|
62
119
|
export interface TabsContextValue {
|
|
120
|
+
/** Currently active tab value */
|
|
63
121
|
value: string;
|
|
122
|
+
/** Handler to change the active tab */
|
|
64
123
|
onValueChange: (value: string) => void;
|
|
124
|
+
/** Layout orientation for all tabs */
|
|
65
125
|
orientation: TabsOrientation;
|
|
126
|
+
/** Size variant applied to all triggers */
|
|
66
127
|
size: TabsSize;
|
|
128
|
+
/** Whether all tabs are disabled */
|
|
67
129
|
disabled: boolean;
|
|
130
|
+
/** Register a tab trigger's position for underline animation */
|
|
131
|
+
registerTrigger: (value: string, element: HTMLButtonElement) => void;
|
|
132
|
+
/** Unregister a tab trigger when it unmounts */
|
|
133
|
+
unregisterTrigger: (value: string) => void;
|
|
68
134
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { TabsContentProps } from "./Tabs.types";
|
|
3
3
|
/**
|
|
4
|
-
* TabsContent component displays content panels for tabs
|
|
4
|
+
* TabsContent component displays content panels for tabs with directional fade animations
|
|
5
5
|
*/
|
|
6
6
|
export declare const TabsContent: React.ForwardRefExoticComponent<TabsContentProps & React.RefAttributes<HTMLDivElement>>;
|