@schandlergarcia/sf-web-components 1.9.28 → 1.9.30
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/.a4drules/features/command-center-dashboard-rule.md +6 -10
- package/.a4drules/skills/command-center-builder/SKILL.md +29 -629
- package/.a4drules/skills/command-center-builder/charts-visualization.md +136 -0
- package/.a4drules/skills/command-center-builder/completion-checklist.md +87 -0
- package/.a4drules/skills/command-center-builder/components-styling.md +97 -0
- package/.a4drules/skills/command-center-builder/data-forms-ai.md +43 -0
- package/.a4drules/skills/command-center-builder/getting-started.md +127 -0
- package/.a4drules/skills/command-center-builder/page-layout.md +143 -0
- package/.a4drules/skills/command-center-guide/SKILL.md +217 -0
- package/.a4drules/skills/command-center-project/SKILL.md +4 -4
- package/.a4drules/skills/component-library/SKILL.md +27 -1000
- package/.a4drules/skills/component-library/card-components.md +253 -0
- package/.a4drules/skills/component-library/charts.md +64 -0
- package/.a4drules/skills/component-library/chat-data.md +184 -0
- package/.a4drules/skills/component-library/common-mistakes.md +25 -0
- package/.a4drules/skills/component-library/forms-filters.md +130 -0
- package/.a4drules/skills/component-library/hero-ui.md +211 -0
- package/.a4drules/skills/component-library/ui-primitives.md +92 -0
- package/.a4drules/skills/component-library/when-to-use.md +39 -0
- package/README.md +80 -507
- package/dist/components/library/cards/ActionList.d.ts +10 -10
- package/dist/components/library/cards/ActionList.js +4 -3
- package/dist/components/library/cards/ActionList.js.map +1 -1
- package/dist/components/library/cards/ActivityCard.d.ts +5 -18
- package/dist/components/library/cards/ActivityCard.js +4 -3
- package/dist/components/library/cards/ActivityCard.js.map +1 -1
- package/dist/components/library/cards/BaseCard.d.ts +24 -30
- package/dist/components/library/cards/BaseCard.js +3 -2
- package/dist/components/library/cards/BaseCard.js.map +1 -1
- package/dist/components/library/cards/CalloutCard.d.ts +9 -11
- package/dist/components/library/cards/CalloutCard.js +3 -2
- package/dist/components/library/cards/CalloutCard.js.map +1 -1
- package/dist/components/library/cards/ChartCard.d.ts +17 -29
- package/dist/components/library/cards/ChartCard.js +14 -13
- package/dist/components/library/cards/ChartCard.js.map +1 -1
- package/dist/components/library/cards/FeedPanel.d.ts +11 -12
- package/dist/components/library/cards/FeedPanel.js +4 -3
- package/dist/components/library/cards/FeedPanel.js.map +1 -1
- package/dist/components/library/cards/ListCard.d.ts +20 -33
- package/dist/components/library/cards/ListCard.js +38 -38
- package/dist/components/library/cards/ListCard.js.map +1 -1
- package/dist/components/library/cards/MetricCard.d.ts +17 -23
- package/dist/components/library/cards/MetricCard.js +11 -10
- package/dist/components/library/cards/MetricCard.js.map +1 -1
- package/dist/components/library/cards/MetricsStrip.d.ts +11 -11
- package/dist/components/library/cards/MetricsStrip.js +1 -1
- package/dist/components/library/cards/MetricsStrip.js.map +1 -1
- package/dist/components/library/cards/SectionCard.d.ts +12 -17
- package/dist/components/library/cards/SectionCard.js +19 -18
- package/dist/components/library/cards/SectionCard.js.map +1 -1
- package/dist/components/library/cards/SemanticMetricCard.d.ts +20 -15
- package/dist/components/library/cards/SemanticMetricCardWithLoading.d.ts +7 -8
- package/dist/components/library/cards/SemanticTableCard.d.ts +18 -13
- package/dist/components/library/cards/SemanticTableCardWithLoading.d.ts +7 -8
- package/dist/components/library/cards/StatusCard.d.ts +15 -29
- package/dist/components/library/cards/StatusCard.js +17 -16
- package/dist/components/library/cards/StatusCard.js.map +1 -1
- package/dist/components/library/cards/TableCard.d.ts +23 -40
- package/dist/components/library/cards/TableCard.js +56 -56
- package/dist/components/library/cards/TableCard.js.map +1 -1
- package/dist/components/library/cards/WidgetCard.d.ts +11 -19
- package/dist/components/library/cards/WidgetCard.js +4 -4
- package/dist/components/library/cards/WidgetCard.js.map +1 -1
- package/dist/components/library/charts/D3Chart.d.ts +16 -23
- package/dist/components/library/charts/D3Chart.js.map +1 -1
- package/dist/components/library/charts/D3ChartTemplates.d.ts +3 -33
- package/dist/components/library/charts/D3ChartTemplates.js +7 -7
- package/dist/components/library/charts/D3ChartTemplates.js.map +1 -1
- package/dist/components/library/charts/GeoMap.d.ts +18 -81
- package/dist/components/library/charts/GeoMap.js +26 -28
- package/dist/components/library/charts/GeoMap.js.map +1 -1
- package/dist/components/library/chat/ChatBar.d.ts +11 -14
- package/dist/components/library/chat/ChatBar.js +3 -2
- package/dist/components/library/chat/ChatBar.js.map +1 -1
- package/dist/components/library/chat/ChatInput.d.ts +8 -9
- package/dist/components/library/chat/ChatInput.js.map +1 -1
- package/dist/components/library/chat/ChatMessage.d.ts +4 -18
- package/dist/components/library/chat/ChatMessage.js.map +1 -1
- package/dist/components/library/chat/ChatMessageList.d.ts +8 -11
- package/dist/components/library/chat/ChatMessageList.js.map +1 -1
- package/dist/components/library/chat/ChatPanel.d.ts +12 -16
- package/dist/components/library/chat/ChatPanel.js +9 -8
- package/dist/components/library/chat/ChatPanel.js.map +1 -1
- package/dist/components/library/chat/ChatSuggestions.d.ts +4 -5
- package/dist/components/library/chat/ChatSuggestions.js +3 -2
- package/dist/components/library/chat/ChatSuggestions.js.map +1 -1
- package/dist/components/library/chat/ChatToolCall.d.ts +3 -11
- package/dist/components/library/chat/ChatToolCall.js.map +1 -1
- package/dist/components/library/chat/ChatTypingIndicator.d.ts +3 -4
- package/dist/components/library/chat/ChatTypingIndicator.js +3 -2
- package/dist/components/library/chat/ChatTypingIndicator.js.map +1 -1
- package/dist/components/library/chat/ChatWelcome.d.ts +7 -9
- package/dist/components/library/chat/ChatWelcome.js +7 -6
- package/dist/components/library/chat/ChatWelcome.js.map +1 -1
- package/dist/components/library/chat/index.d.ts +0 -10
- package/dist/components/library/chat/useChatState.d.ts +11 -37
- package/dist/components/library/chat/useChatState.js +46 -63
- package/dist/components/library/chat/useChatState.js.map +1 -1
- package/dist/components/library/data/DataModeProvider.d.ts +11 -15
- package/dist/components/library/data/DataModeProvider.js +9 -9
- package/dist/components/library/data/DataModeProvider.js.map +1 -1
- package/dist/components/library/data/DataModeToggle.d.ts +3 -4
- package/dist/components/library/data/DataModeToggle.js +5 -4
- package/dist/components/library/data/DataModeToggle.js.map +1 -1
- package/dist/components/library/data/chartDataProvider.d.ts +3 -41
- package/dist/components/library/data/filterUtils.d.ts +9 -38
- package/dist/components/library/data/filterUtils.js.map +1 -1
- package/dist/components/library/data/useDataSource.d.ts +4 -6
- package/dist/components/library/data/useDataSource.js.map +1 -1
- package/dist/components/library/data/usePageFilters.d.ts +5 -31
- package/dist/components/library/data/usePageFilters.js +2 -6
- package/dist/components/library/data/usePageFilters.js.map +1 -1
- package/dist/components/library/filters/FilterBar.d.ts +8 -18
- package/dist/components/library/filters/FilterBar.js +3 -2
- package/dist/components/library/filters/FilterBar.js.map +1 -1
- package/dist/components/library/filters/SearchFilter.d.ts +6 -7
- package/dist/components/library/filters/SearchFilter.js +3 -2
- package/dist/components/library/filters/SearchFilter.js.map +1 -1
- package/dist/components/library/filters/SelectFilter.d.ts +7 -13
- package/dist/components/library/filters/SelectFilter.js +3 -2
- package/dist/components/library/filters/SelectFilter.js.map +1 -1
- package/dist/components/library/filters/ToggleFilter.d.ts +5 -7
- package/dist/components/library/filters/ToggleFilter.js +3 -2
- package/dist/components/library/filters/ToggleFilter.js.map +1 -1
- package/dist/components/library/forms/FormField.d.ts +8 -10
- package/dist/components/library/forms/FormField.js +4 -3
- package/dist/components/library/forms/FormField.js.map +1 -1
- package/dist/components/library/forms/FormModal.d.ts +14 -23
- package/dist/components/library/forms/FormModal.js.map +1 -1
- package/dist/components/library/forms/FormRenderer.d.ts +9 -29
- package/dist/components/library/forms/FormRenderer.js +7 -6
- package/dist/components/library/forms/FormRenderer.js.map +1 -1
- package/dist/components/library/forms/FormSection.d.ts +8 -10
- package/dist/components/library/forms/FormSection.js +3 -2
- package/dist/components/library/forms/FormSection.js.map +1 -1
- package/dist/components/library/forms/index.d.ts +0 -5
- package/dist/components/library/forms/useFormState.d.ts +15 -23
- package/dist/components/library/forms/useFormState.js +47 -53
- package/dist/components/library/forms/useFormState.js.map +1 -1
- package/dist/components/library/heroui/Accordion.d.ts +5 -6
- package/dist/components/library/heroui/Accordion.js +8 -7
- package/dist/components/library/heroui/Accordion.js.map +1 -1
- package/dist/components/library/heroui/Alert.d.ts +5 -6
- package/dist/components/library/heroui/Alert.js +8 -7
- package/dist/components/library/heroui/Alert.js.map +1 -1
- package/dist/components/library/heroui/Badge.d.ts +5 -8
- package/dist/components/library/heroui/Badge.js +3 -2
- package/dist/components/library/heroui/Badge.js.map +1 -1
- package/dist/components/library/heroui/Breadcrumbs.d.ts +2 -5
- package/dist/components/library/heroui/Breadcrumbs.js +5 -4
- package/dist/components/library/heroui/Breadcrumbs.js.map +1 -1
- package/dist/components/library/heroui/Button.d.ts +26 -16
- package/dist/components/library/heroui/Button.js +22 -21
- package/dist/components/library/heroui/Button.js.map +1 -1
- package/dist/components/library/heroui/Card.d.ts +5 -8
- package/dist/components/library/heroui/Card.js +7 -6
- package/dist/components/library/heroui/Card.js.map +1 -1
- package/dist/components/library/heroui/Collapsible.d.ts +30 -19
- package/dist/components/library/heroui/Collapsible.js +17 -13
- package/dist/components/library/heroui/Collapsible.js.map +1 -1
- package/dist/components/library/heroui/DatePicker.d.ts +52 -24
- package/dist/components/library/heroui/DatePicker.js +6 -5
- package/dist/components/library/heroui/DatePicker.js.map +1 -1
- package/dist/components/library/heroui/Dialog.d.ts +32 -18
- package/dist/components/library/heroui/Dialog.js +7 -6
- package/dist/components/library/heroui/Dialog.js.map +1 -1
- package/dist/components/library/heroui/Drawer.d.ts +2 -6
- package/dist/components/library/heroui/Drawer.js +3 -2
- package/dist/components/library/heroui/Drawer.js.map +1 -1
- package/dist/components/library/heroui/Dropdown.d.ts +2 -6
- package/dist/components/library/heroui/Dropdown.js +3 -2
- package/dist/components/library/heroui/Dropdown.js.map +1 -1
- package/dist/components/library/heroui/Field.d.ts +38 -19
- package/dist/components/library/heroui/Field.js +10 -9
- package/dist/components/library/heroui/Field.js.map +1 -1
- package/dist/components/library/heroui/Input.d.ts +1 -5
- package/dist/components/library/heroui/Input.js +1 -0
- package/dist/components/library/heroui/Input.js.map +1 -1
- package/dist/components/library/heroui/Kbd.d.ts +5 -6
- package/dist/components/library/heroui/Kbd.js +5 -4
- package/dist/components/library/heroui/Kbd.js.map +1 -1
- package/dist/components/library/heroui/Meter.d.ts +5 -7
- package/dist/components/library/heroui/Meter.js +5 -4
- package/dist/components/library/heroui/Meter.js.map +1 -1
- package/dist/components/library/heroui/Modal.d.ts +2 -6
- package/dist/components/library/heroui/Modal.js +3 -2
- package/dist/components/library/heroui/Modal.js.map +1 -1
- package/dist/components/library/heroui/Pagination.d.ts +2 -6
- package/dist/components/library/heroui/Pagination.js +5 -4
- package/dist/components/library/heroui/Pagination.js.map +1 -1
- package/dist/components/library/heroui/Popover.d.ts +40 -23
- package/dist/components/library/heroui/Popover.js +20 -20
- package/dist/components/library/heroui/Popover.js.map +1 -1
- package/dist/components/library/heroui/ProgressBar.d.ts +5 -8
- package/dist/components/library/heroui/ProgressBar.js +1 -0
- package/dist/components/library/heroui/ProgressBar.js.map +1 -1
- package/dist/components/library/heroui/ProgressCircle.d.ts +5 -8
- package/dist/components/library/heroui/ProgressCircle.js +1 -0
- package/dist/components/library/heroui/ProgressCircle.js.map +1 -1
- package/dist/components/library/heroui/ScrollShadow.d.ts +5 -8
- package/dist/components/library/heroui/ScrollShadow.js +4 -3
- package/dist/components/library/heroui/ScrollShadow.js.map +1 -1
- package/dist/components/library/heroui/Select.d.ts +37 -31
- package/dist/components/library/heroui/Select.js +11 -8
- package/dist/components/library/heroui/Select.js.map +1 -1
- package/dist/components/library/heroui/Separator.d.ts +2 -6
- package/dist/components/library/heroui/Separator.js +5 -4
- package/dist/components/library/heroui/Separator.js.map +1 -1
- package/dist/components/library/heroui/Skeleton.d.ts +5 -8
- package/dist/components/library/heroui/Skeleton.js +5 -4
- package/dist/components/library/heroui/Skeleton.js.map +1 -1
- package/dist/components/library/heroui/Tabs.d.ts +5 -6
- package/dist/components/library/heroui/Tabs.js +8 -7
- package/dist/components/library/heroui/Tabs.js.map +1 -1
- package/dist/components/library/heroui/Toast.d.ts +3 -6
- package/dist/components/library/heroui/Toast.js +4 -3
- package/dist/components/library/heroui/Toast.js.map +1 -1
- package/dist/components/library/heroui/Toggle.d.ts +4 -5
- package/dist/components/library/heroui/Toggle.js +6 -5
- package/dist/components/library/heroui/Toggle.js.map +1 -1
- package/dist/components/library/heroui/Tooltip.d.ts +2 -6
- package/dist/components/library/heroui/Tooltip.js +3 -2
- package/dist/components/library/heroui/Tooltip.js.map +1 -1
- package/dist/components/library/index.d.ts +98 -129
- package/dist/components/library/index.js +57 -41
- package/dist/components/library/index.js.map +1 -1
- package/dist/components/library/layout/PageContainer.d.ts +4 -6
- package/dist/components/library/layout/PageContainer.js +5 -4
- package/dist/components/library/layout/PageContainer.js.map +1 -1
- package/dist/components/library/skeletons/CardSkeleton.d.ts +4 -5
- package/dist/components/library/skeletons/CardSkeleton.js +3 -2
- package/dist/components/library/skeletons/CardSkeleton.js.map +1 -1
- package/dist/components/library/theme/AppThemeProvider.d.ts +50 -13
- package/dist/components/library/theme/AppThemeProvider.js +4 -4
- package/dist/components/library/theme/AppThemeProvider.js.map +1 -1
- package/dist/components/library/theme/tokens.d.ts +44 -45
- package/dist/components/library/theme/tokens.js.map +1 -1
- package/dist/components/library/ui/Alert.d.ts +21 -0
- package/dist/components/library/ui/{alert.js → Alert.js} +14 -13
- package/dist/components/library/ui/Alert.js.map +1 -0
- package/dist/components/library/ui/Avatar.d.ts +10 -22
- package/dist/components/library/ui/Avatar.js +16 -39
- package/dist/components/library/ui/Avatar.js.map +1 -1
- package/dist/components/library/ui/BreadcrumbExtras.d.ts +2 -1
- package/dist/components/library/ui/Button.d.ts +10 -9
- package/dist/components/library/ui/{UIButton.js → Button.js} +31 -26
- package/dist/components/library/ui/Button.js.map +1 -0
- package/dist/components/library/ui/Card.d.ts +37 -23
- package/dist/components/library/ui/{card.js → Card.js} +26 -24
- package/dist/components/library/ui/Card.js.map +1 -0
- package/dist/components/library/ui/Checkbox.d.ts +4 -0
- package/dist/components/library/ui/{checkbox.js → Checkbox.js} +5 -4
- package/dist/components/library/ui/Checkbox.js.map +1 -0
- package/dist/components/library/ui/Chip.d.ts +7 -18
- package/dist/components/library/ui/Chip.js +12 -11
- package/dist/components/library/ui/Chip.js.map +1 -1
- package/dist/components/library/ui/{collapsible.d.ts → Collapsible.d.ts} +1 -1
- package/dist/components/library/ui/Container.d.ts +13 -12
- package/dist/components/library/ui/Container.js +17 -16
- package/dist/components/library/ui/Container.js.map +1 -1
- package/dist/components/library/ui/{dialog.d.ts → Dialog.d.ts} +1 -1
- package/dist/components/library/ui/EmptyState.d.ts +7 -34
- package/dist/components/library/ui/EmptyState.js +6 -5
- package/dist/components/library/ui/EmptyState.js.map +1 -1
- package/dist/components/library/ui/FieldGroup.d.ts +5 -4
- package/dist/components/library/ui/FieldGroup.js +5 -4
- package/dist/components/library/ui/FieldGroup.js.map +1 -1
- package/dist/components/library/ui/Input.d.ts +5 -3
- package/dist/components/library/ui/{UIInput.js → Input.js} +7 -6
- package/dist/components/library/ui/Input.js.map +1 -0
- package/dist/components/library/ui/Label.d.ts +7 -0
- package/dist/components/library/ui/Label.js +23 -0
- package/dist/components/library/ui/Label.js.map +1 -0
- package/dist/components/library/ui/PaginationExtras.d.ts +2 -1
- package/dist/components/library/ui/{popover.d.ts → Popover.d.ts} +1 -1
- package/dist/components/library/ui/{select.d.ts → Select.d.ts} +1 -1
- package/dist/components/library/ui/Spinner.d.ts +5 -21
- package/dist/components/library/ui/{spinner.js → Spinner.js} +17 -16
- package/dist/components/library/ui/Spinner.js.map +1 -0
- package/dist/components/library/ui/Text.d.ts +10 -24
- package/dist/components/library/ui/Text.js +23 -20
- package/dist/components/library/ui/Text.js.map +1 -1
- package/dist/components/library/ui/Toggle.d.ts +5 -0
- package/dist/components/library/ui/Toggle.js +47 -0
- package/dist/components/library/ui/Toggle.js.map +1 -0
- package/dist/components/workspace/ComponentRegistry.d.ts +140 -116
- package/dist/components/workspace/ComponentRegistry.js +46 -46
- package/dist/components/workspace/ComponentRegistry.js.map +1 -1
- package/dist/index.js +241 -229
- package/dist/index.js.map +1 -1
- package/dist/styles/base.css +0 -8
- package/package.json +14 -21
- package/scripts/reset-command-center.sh +181 -202
- package/scripts/validate-dashboard.sh +21 -30
- package/INSTALL.md +0 -200
- package/dist/components/library/ui/BreadcrumbExtras.js +0 -109
- package/dist/components/library/ui/BreadcrumbExtras.js.map +0 -1
- package/dist/components/library/ui/PaginationExtras.js +0 -138
- package/dist/components/library/ui/PaginationExtras.js.map +0 -1
- package/dist/components/library/ui/UIButton.d.ts +0 -22
- package/dist/components/library/ui/UIButton.js.map +0 -1
- package/dist/components/library/ui/UIInput.d.ts +0 -4
- package/dist/components/library/ui/UIInput.js.map +0 -1
- package/dist/components/library/ui/alert.d.ts +0 -23
- package/dist/components/library/ui/alert.js.map +0 -1
- package/dist/components/library/ui/badge.d.ts +0 -9
- package/dist/components/library/ui/badge.js +0 -43
- package/dist/components/library/ui/badge.js.map +0 -1
- package/dist/components/library/ui/breadcrumb.d.ts +0 -11
- package/dist/components/library/ui/breadcrumb.js +0 -103
- package/dist/components/library/ui/breadcrumb.js.map +0 -1
- package/dist/components/library/ui/button.js +0 -56
- package/dist/components/library/ui/button.js.map +0 -1
- package/dist/components/library/ui/calendar.d.ts +0 -10
- package/dist/components/library/ui/calendar.js +0 -187
- package/dist/components/library/ui/calendar.js.map +0 -1
- package/dist/components/library/ui/card.js.map +0 -1
- package/dist/components/library/ui/checkbox.d.ts +0 -4
- package/dist/components/library/ui/checkbox.js.map +0 -1
- package/dist/components/library/ui/collapsible.js +0 -29
- package/dist/components/library/ui/collapsible.js.map +0 -1
- package/dist/components/library/ui/datePicker.js +0 -25
- package/dist/components/library/ui/datePicker.js.map +0 -1
- package/dist/components/library/ui/dialog.js +0 -137
- package/dist/components/library/ui/dialog.js.map +0 -1
- package/dist/components/library/ui/field.js +0 -78
- package/dist/components/library/ui/field.js.map +0 -1
- package/dist/components/library/ui/input.js +0 -20
- package/dist/components/library/ui/input.js.map +0 -1
- package/dist/components/library/ui/label.d.ts +0 -5
- package/dist/components/library/ui/label.js +0 -22
- package/dist/components/library/ui/label.js.map +0 -1
- package/dist/components/library/ui/pagination.d.ts +0 -17
- package/dist/components/library/ui/pagination.js +0 -126
- package/dist/components/library/ui/pagination.js.map +0 -1
- package/dist/components/library/ui/popover.js +0 -35
- package/dist/components/library/ui/popover.js.map +0 -1
- package/dist/components/library/ui/select.js +0 -106
- package/dist/components/library/ui/select.js.map +0 -1
- package/dist/components/library/ui/separator.d.ts +0 -4
- package/dist/components/library/ui/separator.js +0 -27
- package/dist/components/library/ui/separator.js.map +0 -1
- package/dist/components/library/ui/shadcn-exports.d.ts +0 -22
- package/dist/components/library/ui/skeleton.d.ts +0 -3
- package/dist/components/library/ui/skeleton.js +0 -16
- package/dist/components/library/ui/skeleton.js.map +0 -1
- package/dist/components/library/ui/sonner.d.ts +0 -15
- package/dist/components/library/ui/sonner.js +0 -11
- package/dist/components/library/ui/sonner.js.map +0 -1
- package/dist/components/library/ui/spinner.js.map +0 -1
- package/dist/components/library/ui/table.d.ts +0 -10
- package/dist/components/library/ui/table.js +0 -115
- package/dist/components/library/ui/table.js.map +0 -1
- package/dist/components/library/ui/tabs.d.ts +0 -11
- package/dist/components/library/ui/tabs.js +0 -91
- package/dist/components/library/ui/tabs.js.map +0 -1
- package/dist/node_modules/@date-fns/tz/date/index.js +0 -62
- package/dist/node_modules/@date-fns/tz/date/index.js.map +0 -1
- package/dist/node_modules/@date-fns/tz/date/mini.js +0 -70
- package/dist/node_modules/@date-fns/tz/date/mini.js.map +0 -1
- package/dist/node_modules/@date-fns/tz/tzName/index.js +0 -12
- package/dist/node_modules/@date-fns/tz/tzName/index.js.map +0 -1
- package/dist/node_modules/@date-fns/tz/tzOffset/index.js +0 -23
- package/dist/node_modules/@date-fns/tz/tzOffset/index.js.map +0 -1
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +0 -533
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js.map +0 -1
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +0 -404
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js.map +0 -1
- package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +0 -233
- package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js.map +0 -1
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +0 -137
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js.map +0 -1
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +0 -129
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js.map +0 -1
- package/dist/node_modules/@radix-ui/number/dist/index.js +0 -7
- package/dist/node_modules/@radix-ui/number/dist/index.js.map +0 -1
- package/dist/node_modules/@radix-ui/primitive/dist/index.js +0 -10
- package/dist/node_modules/@radix-ui/primitive/dist/index.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-arrow/dist/index.js +0 -25
- package/dist/node_modules/@radix-ui/react-arrow/dist/index.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-arrow/node_modules/@radix-ui/react-primitive/dist/index.js +0 -33
- package/dist/node_modules/@radix-ui/react-arrow/node_modules/@radix-ui/react-primitive/dist/index.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-arrow/node_modules/@radix-ui/react-slot/dist/index.js +0 -50
- package/dist/node_modules/@radix-ui/react-arrow/node_modules/@radix-ui/react-slot/dist/index.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-checkbox/dist/index.js +0 -252
- package/dist/node_modules/@radix-ui/react-checkbox/dist/index.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-checkbox/node_modules/@radix-ui/react-context/dist/index.js +0 -54
- package/dist/node_modules/@radix-ui/react-checkbox/node_modules/@radix-ui/react-context/dist/index.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-checkbox/node_modules/@radix-ui/react-primitive/dist/index.js +0 -33
- package/dist/node_modules/@radix-ui/react-checkbox/node_modules/@radix-ui/react-primitive/dist/index.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-checkbox/node_modules/@radix-ui/react-slot/dist/index.js +0 -50
- package/dist/node_modules/@radix-ui/react-checkbox/node_modules/@radix-ui/react-slot/dist/index.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-collapsible/dist/index.js +0 -120
- package/dist/node_modules/@radix-ui/react-collapsible/dist/index.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-collapsible/node_modules/@radix-ui/react-context/dist/index.js +0 -54
- package/dist/node_modules/@radix-ui/react-collapsible/node_modules/@radix-ui/react-context/dist/index.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-collapsible/node_modules/@radix-ui/react-primitive/dist/index.js +0 -33
- package/dist/node_modules/@radix-ui/react-collapsible/node_modules/@radix-ui/react-primitive/dist/index.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-collapsible/node_modules/@radix-ui/react-slot/dist/index.js +0 -50
- package/dist/node_modules/@radix-ui/react-collapsible/node_modules/@radix-ui/react-slot/dist/index.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-collection/dist/index.js +0 -51
- package/dist/node_modules/@radix-ui/react-collection/dist/index.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-collection/node_modules/@radix-ui/react-context/dist/index.js +0 -54
- package/dist/node_modules/@radix-ui/react-collection/node_modules/@radix-ui/react-context/dist/index.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-collection/node_modules/@radix-ui/react-slot/dist/index.js +0 -50
- package/dist/node_modules/@radix-ui/react-collection/node_modules/@radix-ui/react-slot/dist/index.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js +0 -30
- package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-dialog/dist/index.js +0 -258
- package/dist/node_modules/@radix-ui/react-dialog/dist/index.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-context/dist/index.js +0 -69
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-context/dist/index.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-primitive/dist/index.js +0 -33
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-primitive/dist/index.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-slot/dist/index.js +0 -50
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-slot/dist/index.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-direction/dist/index.js +0 -11
- package/dist/node_modules/@radix-ui/react-direction/dist/index.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +0 -128
- package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-dismissable-layer/node_modules/@radix-ui/react-primitive/dist/index.js +0 -37
- package/dist/node_modules/@radix-ui/react-dismissable-layer/node_modules/@radix-ui/react-primitive/dist/index.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-dismissable-layer/node_modules/@radix-ui/react-slot/dist/index.js +0 -50
- package/dist/node_modules/@radix-ui/react-dismissable-layer/node_modules/@radix-ui/react-slot/dist/index.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.js +0 -18
- package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js +0 -137
- package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-primitive/dist/index.js +0 -33
- package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-primitive/dist/index.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-slot/dist/index.js +0 -50
- package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-slot/dist/index.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-id/dist/index.js +0 -14
- package/dist/node_modules/@radix-ui/react-id/dist/index.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-label/dist/index.js +0 -20
- package/dist/node_modules/@radix-ui/react-label/dist/index.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-label/node_modules/@radix-ui/react-primitive/dist/index.js +0 -33
- package/dist/node_modules/@radix-ui/react-label/node_modules/@radix-ui/react-primitive/dist/index.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-label/node_modules/@radix-ui/react-slot/dist/index.js +0 -50
- package/dist/node_modules/@radix-ui/react-label/node_modules/@radix-ui/react-slot/dist/index.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-popover/dist/index.js +0 -240
- package/dist/node_modules/@radix-ui/react-popover/dist/index.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-context/dist/index.js +0 -54
- package/dist/node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-context/dist/index.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-primitive/dist/index.js +0 -33
- package/dist/node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-primitive/dist/index.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-slot/dist/index.js +0 -50
- package/dist/node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-slot/dist/index.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-popper/dist/index.js +0 -220
- package/dist/node_modules/@radix-ui/react-popper/dist/index.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-popper/node_modules/@radix-ui/react-context/dist/index.js +0 -54
- package/dist/node_modules/@radix-ui/react-popper/node_modules/@radix-ui/react-context/dist/index.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-popper/node_modules/@radix-ui/react-primitive/dist/index.js +0 -33
- package/dist/node_modules/@radix-ui/react-popper/node_modules/@radix-ui/react-primitive/dist/index.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-popper/node_modules/@radix-ui/react-slot/dist/index.js +0 -50
- package/dist/node_modules/@radix-ui/react-popper/node_modules/@radix-ui/react-slot/dist/index.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-portal/dist/index.js +0 -16
- package/dist/node_modules/@radix-ui/react-portal/dist/index.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-portal/node_modules/@radix-ui/react-primitive/dist/index.js +0 -33
- package/dist/node_modules/@radix-ui/react-portal/node_modules/@radix-ui/react-primitive/dist/index.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-portal/node_modules/@radix-ui/react-slot/dist/index.js +0 -50
- package/dist/node_modules/@radix-ui/react-portal/node_modules/@radix-ui/react-slot/dist/index.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-presence/dist/index.js +0 -71
- package/dist/node_modules/@radix-ui/react-presence/dist/index.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.js +0 -184
- package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-roving-focus/node_modules/@radix-ui/react-context/dist/index.js +0 -54
- package/dist/node_modules/@radix-ui/react-roving-focus/node_modules/@radix-ui/react-context/dist/index.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-roving-focus/node_modules/@radix-ui/react-primitive/dist/index.js +0 -33
- package/dist/node_modules/@radix-ui/react-roving-focus/node_modules/@radix-ui/react-primitive/dist/index.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-roving-focus/node_modules/@radix-ui/react-slot/dist/index.js +0 -50
- package/dist/node_modules/@radix-ui/react-roving-focus/node_modules/@radix-ui/react-slot/dist/index.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-select/dist/index.js +0 -844
- package/dist/node_modules/@radix-ui/react-select/dist/index.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-select/node_modules/@radix-ui/react-context/dist/index.js +0 -54
- package/dist/node_modules/@radix-ui/react-select/node_modules/@radix-ui/react-context/dist/index.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-select/node_modules/@radix-ui/react-primitive/dist/index.js +0 -33
- package/dist/node_modules/@radix-ui/react-select/node_modules/@radix-ui/react-primitive/dist/index.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-select/node_modules/@radix-ui/react-slot/dist/index.js +0 -50
- package/dist/node_modules/@radix-ui/react-select/node_modules/@radix-ui/react-slot/dist/index.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-separator/dist/index.js +0 -25
- package/dist/node_modules/@radix-ui/react-separator/dist/index.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-separator/node_modules/@radix-ui/react-primitive/dist/index.js +0 -33
- package/dist/node_modules/@radix-ui/react-separator/node_modules/@radix-ui/react-primitive/dist/index.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-separator/node_modules/@radix-ui/react-slot/dist/index.js +0 -50
- package/dist/node_modules/@radix-ui/react-separator/node_modules/@radix-ui/react-slot/dist/index.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-tabs/dist/index.js +0 -164
- package/dist/node_modules/@radix-ui/react-tabs/dist/index.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-tabs/node_modules/@radix-ui/react-context/dist/index.js +0 -54
- package/dist/node_modules/@radix-ui/react-tabs/node_modules/@radix-ui/react-context/dist/index.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-tabs/node_modules/@radix-ui/react-primitive/dist/index.js +0 -33
- package/dist/node_modules/@radix-ui/react-tabs/node_modules/@radix-ui/react-primitive/dist/index.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-tabs/node_modules/@radix-ui/react-slot/dist/index.js +0 -50
- package/dist/node_modules/@radix-ui/react-tabs/node_modules/@radix-ui/react-slot/dist/index.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +0 -11
- package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +0 -53
- package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +0 -15
- package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +0 -7
- package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-use-previous/dist/index.js +0 -9
- package/dist/node_modules/@radix-ui/react-use-previous/dist/index.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-use-size/dist/index.js +0 -28
- package/dist/node_modules/@radix-ui/react-use-size/dist/index.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.js +0 -31
- package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-visually-hidden/node_modules/@radix-ui/react-primitive/dist/index.js +0 -33
- package/dist/node_modules/@radix-ui/react-visually-hidden/node_modules/@radix-ui/react-primitive/dist/index.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-visually-hidden/node_modules/@radix-ui/react-slot/dist/index.js +0 -50
- package/dist/node_modules/@radix-ui/react-visually-hidden/node_modules/@radix-ui/react-slot/dist/index.js.map +0 -1
- package/dist/node_modules/aria-hidden/dist/es2015/index.js +0 -53
- package/dist/node_modules/aria-hidden/dist/es2015/index.js.map +0 -1
- package/dist/node_modules/class-variance-authority/dist/index.js +0 -36
- package/dist/node_modules/class-variance-authority/dist/index.js.map +0 -1
- package/dist/node_modules/date-fns/_lib/addLeadingZeros.js +0 -8
- package/dist/node_modules/date-fns/_lib/addLeadingZeros.js.map +0 -1
- package/dist/node_modules/date-fns/_lib/defaultOptions.js +0 -8
- package/dist/node_modules/date-fns/_lib/defaultOptions.js.map +0 -1
- package/dist/node_modules/date-fns/_lib/format/formatters.js +0 -549
- package/dist/node_modules/date-fns/_lib/format/formatters.js.map +0 -1
- package/dist/node_modules/date-fns/_lib/format/lightFormatters.js +0 -59
- package/dist/node_modules/date-fns/_lib/format/lightFormatters.js.map +0 -1
- package/dist/node_modules/date-fns/_lib/format/longFormatters.js +0 -50
- package/dist/node_modules/date-fns/_lib/format/longFormatters.js.map +0 -1
- package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +0 -19
- package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js.map +0 -1
- package/dist/node_modules/date-fns/_lib/normalizeDates.js +0 -12
- package/dist/node_modules/date-fns/_lib/normalizeDates.js.map +0 -1
- package/dist/node_modules/date-fns/_lib/normalizeInterval.js +0 -9
- package/dist/node_modules/date-fns/_lib/normalizeInterval.js.map +0 -1
- package/dist/node_modules/date-fns/_lib/protectedTokens.js +0 -21
- package/dist/node_modules/date-fns/_lib/protectedTokens.js.map +0 -1
- package/dist/node_modules/date-fns/addDays.js +0 -10
- package/dist/node_modules/date-fns/addDays.js.map +0 -1
- package/dist/node_modules/date-fns/addMonths.js +0 -20
- package/dist/node_modules/date-fns/addMonths.js.map +0 -1
- package/dist/node_modules/date-fns/addWeeks.js +0 -8
- package/dist/node_modules/date-fns/addWeeks.js.map +0 -1
- package/dist/node_modules/date-fns/addYears.js +0 -8
- package/dist/node_modules/date-fns/addYears.js.map +0 -1
- package/dist/node_modules/date-fns/constants.js +0 -7
- package/dist/node_modules/date-fns/constants.js.map +0 -1
- package/dist/node_modules/date-fns/constructFrom.js +0 -8
- package/dist/node_modules/date-fns/constructFrom.js.map +0 -1
- package/dist/node_modules/date-fns/differenceInCalendarDays.js +0 -16
- package/dist/node_modules/date-fns/differenceInCalendarDays.js.map +0 -1
- package/dist/node_modules/date-fns/differenceInCalendarMonths.js +0 -13
- package/dist/node_modules/date-fns/differenceInCalendarMonths.js.map +0 -1
- package/dist/node_modules/date-fns/eachMonthOfInterval.js +0 -17
- package/dist/node_modules/date-fns/eachMonthOfInterval.js.map +0 -1
- package/dist/node_modules/date-fns/eachYearOfInterval.js +0 -17
- package/dist/node_modules/date-fns/eachYearOfInterval.js.map +0 -1
- package/dist/node_modules/date-fns/endOfISOWeek.js +0 -8
- package/dist/node_modules/date-fns/endOfISOWeek.js.map +0 -1
- package/dist/node_modules/date-fns/endOfMonth.js +0 -9
- package/dist/node_modules/date-fns/endOfMonth.js.map +0 -1
- package/dist/node_modules/date-fns/endOfWeek.js +0 -10
- package/dist/node_modules/date-fns/endOfWeek.js.map +0 -1
- package/dist/node_modules/date-fns/endOfYear.js +0 -9
- package/dist/node_modules/date-fns/endOfYear.js.map +0 -1
- package/dist/node_modules/date-fns/format.js +0 -58
- package/dist/node_modules/date-fns/format.js.map +0 -1
- package/dist/node_modules/date-fns/getDayOfYear.js +0 -11
- package/dist/node_modules/date-fns/getDayOfYear.js.map +0 -1
- package/dist/node_modules/date-fns/getDaysInMonth.js +0 -10
- package/dist/node_modules/date-fns/getDaysInMonth.js.map +0 -1
- package/dist/node_modules/date-fns/getISOWeek.js +0 -12
- package/dist/node_modules/date-fns/getISOWeek.js.map +0 -1
- package/dist/node_modules/date-fns/getISOWeekYear.js +0 -15
- package/dist/node_modules/date-fns/getISOWeekYear.js.map +0 -1
- package/dist/node_modules/date-fns/getMonth.js +0 -8
- package/dist/node_modules/date-fns/getMonth.js.map +0 -1
- package/dist/node_modules/date-fns/getWeek.js +0 -12
- package/dist/node_modules/date-fns/getWeek.js.map +0 -1
- package/dist/node_modules/date-fns/getWeekYear.js +0 -16
- package/dist/node_modules/date-fns/getWeekYear.js.map +0 -1
- package/dist/node_modules/date-fns/getYear.js +0 -8
- package/dist/node_modules/date-fns/getYear.js.map +0 -1
- package/dist/node_modules/date-fns/isAfter.js +0 -8
- package/dist/node_modules/date-fns/isAfter.js.map +0 -1
- package/dist/node_modules/date-fns/isBefore.js +0 -8
- package/dist/node_modules/date-fns/isBefore.js.map +0 -1
- package/dist/node_modules/date-fns/isDate.js +0 -7
- package/dist/node_modules/date-fns/isDate.js.map +0 -1
- package/dist/node_modules/date-fns/isSameDay.js +0 -14
- package/dist/node_modules/date-fns/isSameDay.js.map +0 -1
- package/dist/node_modules/date-fns/isSameMonth.js +0 -13
- package/dist/node_modules/date-fns/isSameMonth.js.map +0 -1
- package/dist/node_modules/date-fns/isSameYear.js +0 -13
- package/dist/node_modules/date-fns/isSameYear.js.map +0 -1
- package/dist/node_modules/date-fns/isValid.js +0 -9
- package/dist/node_modules/date-fns/isValid.js.map +0 -1
- package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +0 -10
- package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.js.map +0 -1
- package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +0 -19
- package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.js.map +0 -1
- package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.js +0 -32
- package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.js.map +0 -1
- package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +0 -16
- package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js.map +0 -1
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +0 -71
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js.map +0 -1
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.js +0 -34
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.js.map +0 -1
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +0 -12
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.js.map +0 -1
- package/dist/node_modules/date-fns/locale/en-US/_lib/localize.js +0 -156
- package/dist/node_modules/date-fns/locale/en-US/_lib/localize.js.map +0 -1
- package/dist/node_modules/date-fns/locale/en-US/_lib/match.js +0 -111
- package/dist/node_modules/date-fns/locale/en-US/_lib/match.js.map +0 -1
- package/dist/node_modules/date-fns/locale/en-US.js +0 -21
- package/dist/node_modules/date-fns/locale/en-US.js.map +0 -1
- package/dist/node_modules/date-fns/max.js +0 -14
- package/dist/node_modules/date-fns/max.js.map +0 -1
- package/dist/node_modules/date-fns/min.js +0 -14
- package/dist/node_modules/date-fns/min.js.map +0 -1
- package/dist/node_modules/date-fns/setMonth.js +0 -13
- package/dist/node_modules/date-fns/setMonth.js.map +0 -1
- package/dist/node_modules/date-fns/setYear.js +0 -10
- package/dist/node_modules/date-fns/setYear.js.map +0 -1
- package/dist/node_modules/date-fns/startOfDay.js +0 -9
- package/dist/node_modules/date-fns/startOfDay.js.map +0 -1
- package/dist/node_modules/date-fns/startOfISOWeek.js +0 -8
- package/dist/node_modules/date-fns/startOfISOWeek.js.map +0 -1
- package/dist/node_modules/date-fns/startOfISOWeekYear.js +0 -11
- package/dist/node_modules/date-fns/startOfISOWeekYear.js.map +0 -1
- package/dist/node_modules/date-fns/startOfMonth.js +0 -9
- package/dist/node_modules/date-fns/startOfMonth.js.map +0 -1
- package/dist/node_modules/date-fns/startOfWeek.js +0 -10
- package/dist/node_modules/date-fns/startOfWeek.js.map +0 -1
- package/dist/node_modules/date-fns/startOfWeekYear.js +0 -12
- package/dist/node_modules/date-fns/startOfWeekYear.js.map +0 -1
- package/dist/node_modules/date-fns/startOfYear.js +0 -9
- package/dist/node_modules/date-fns/startOfYear.js.map +0 -1
- package/dist/node_modules/date-fns/toDate.js +0 -8
- package/dist/node_modules/date-fns/toDate.js.map +0 -1
- package/dist/node_modules/get-nonce/dist/es2015/index.js +0 -8
- package/dist/node_modules/get-nonce/dist/es2015/index.js.map +0 -1
- package/dist/node_modules/radix-ui/node_modules/@radix-ui/react-slot/dist/index.js +0 -53
- package/dist/node_modules/radix-ui/node_modules/@radix-ui/react-slot/dist/index.js.map +0 -1
- package/dist/node_modules/react-day-picker/dist/esm/DayPicker.js +0 -235
- package/dist/node_modules/react-day-picker/dist/esm/DayPicker.js.map +0 -1
- package/dist/node_modules/react-day-picker/dist/esm/UI.js +0 -23
- package/dist/node_modules/react-day-picker/dist/esm/UI.js.map +0 -1
- package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarDay.js +0 -20
- package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarDay.js.map +0 -1
- package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarMonth.js +0 -9
- package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarMonth.js.map +0 -1
- package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarWeek.js +0 -9
- package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarWeek.js.map +0 -1
- package/dist/node_modules/react-day-picker/dist/esm/classes/DateLib.js +0 -149
- package/dist/node_modules/react-day-picker/dist/esm/classes/DateLib.js.map +0 -1
- package/dist/node_modules/react-day-picker/dist/esm/components/Button.js +0 -8
- package/dist/node_modules/react-day-picker/dist/esm/components/Button.js.map +0 -1
- package/dist/node_modules/react-day-picker/dist/esm/components/CaptionLabel.js +0 -8
- package/dist/node_modules/react-day-picker/dist/esm/components/CaptionLabel.js.map +0 -1
- package/dist/node_modules/react-day-picker/dist/esm/components/Chevron.js +0 -19
- package/dist/node_modules/react-day-picker/dist/esm/components/Chevron.js.map +0 -1
- package/dist/node_modules/react-day-picker/dist/esm/components/Day.js +0 -9
- package/dist/node_modules/react-day-picker/dist/esm/components/Day.js.map +0 -1
- package/dist/node_modules/react-day-picker/dist/esm/components/DayButton.js +0 -11
- package/dist/node_modules/react-day-picker/dist/esm/components/DayButton.js.map +0 -1
- package/dist/node_modules/react-day-picker/dist/esm/components/Dropdown.js +0 -20
- package/dist/node_modules/react-day-picker/dist/esm/components/Dropdown.js.map +0 -1
- package/dist/node_modules/react-day-picker/dist/esm/components/DropdownNav.js +0 -8
- package/dist/node_modules/react-day-picker/dist/esm/components/DropdownNav.js.map +0 -1
- package/dist/node_modules/react-day-picker/dist/esm/components/Footer.js +0 -8
- package/dist/node_modules/react-day-picker/dist/esm/components/Footer.js.map +0 -1
- package/dist/node_modules/react-day-picker/dist/esm/components/Month.js +0 -9
- package/dist/node_modules/react-day-picker/dist/esm/components/Month.js.map +0 -1
- package/dist/node_modules/react-day-picker/dist/esm/components/MonthCaption.js +0 -9
- package/dist/node_modules/react-day-picker/dist/esm/components/MonthCaption.js.map +0 -1
- package/dist/node_modules/react-day-picker/dist/esm/components/MonthGrid.js +0 -8
- package/dist/node_modules/react-day-picker/dist/esm/components/MonthGrid.js.map +0 -1
- package/dist/node_modules/react-day-picker/dist/esm/components/Months.js +0 -8
- package/dist/node_modules/react-day-picker/dist/esm/components/Months.js.map +0 -1
- package/dist/node_modules/react-day-picker/dist/esm/components/MonthsDropdown.js +0 -10
- package/dist/node_modules/react-day-picker/dist/esm/components/MonthsDropdown.js.map +0 -1
- package/dist/node_modules/react-day-picker/dist/esm/components/Nav.js +0 -28
- package/dist/node_modules/react-day-picker/dist/esm/components/Nav.js.map +0 -1
- package/dist/node_modules/react-day-picker/dist/esm/components/NextMonthButton.js +0 -10
- package/dist/node_modules/react-day-picker/dist/esm/components/NextMonthButton.js.map +0 -1
- package/dist/node_modules/react-day-picker/dist/esm/components/Option.js +0 -8
- package/dist/node_modules/react-day-picker/dist/esm/components/Option.js.map +0 -1
- package/dist/node_modules/react-day-picker/dist/esm/components/PreviousMonthButton.js +0 -10
- package/dist/node_modules/react-day-picker/dist/esm/components/PreviousMonthButton.js.map +0 -1
- package/dist/node_modules/react-day-picker/dist/esm/components/Root.js +0 -9
- package/dist/node_modules/react-day-picker/dist/esm/components/Root.js.map +0 -1
- package/dist/node_modules/react-day-picker/dist/esm/components/Select.js +0 -8
- package/dist/node_modules/react-day-picker/dist/esm/components/Select.js.map +0 -1
- package/dist/node_modules/react-day-picker/dist/esm/components/Week.js +0 -9
- package/dist/node_modules/react-day-picker/dist/esm/components/Week.js.map +0 -1
- package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumber.js +0 -9
- package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumber.js.map +0 -1
- package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumberHeader.js +0 -8
- package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumberHeader.js.map +0 -1
- package/dist/node_modules/react-day-picker/dist/esm/components/Weekday.js +0 -8
- package/dist/node_modules/react-day-picker/dist/esm/components/Weekday.js.map +0 -1
- package/dist/node_modules/react-day-picker/dist/esm/components/Weekdays.js +0 -12
- package/dist/node_modules/react-day-picker/dist/esm/components/Weekdays.js.map +0 -1
- package/dist/node_modules/react-day-picker/dist/esm/components/Weeks.js +0 -8
- package/dist/node_modules/react-day-picker/dist/esm/components/Weeks.js.map +0 -1
- package/dist/node_modules/react-day-picker/dist/esm/components/YearsDropdown.js +0 -10
- package/dist/node_modules/react-day-picker/dist/esm/components/YearsDropdown.js.map +0 -1
- package/dist/node_modules/react-day-picker/dist/esm/components/custom-components.js +0 -55
- package/dist/node_modules/react-day-picker/dist/esm/components/custom-components.js.map +0 -1
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatCaption.js +0 -10
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatCaption.js.map +0 -1
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatDay.js +0 -8
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatDay.js.map +0 -1
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatMonthDropdown.js +0 -8
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatMonthDropdown.js.map +0 -1
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumber.js +0 -8
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumber.js.map +0 -1
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumberHeader.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumberHeader.js.map +0 -1
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekdayName.js +0 -8
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekdayName.js.map +0 -1
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatYearDropdown.js +0 -10
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatYearDropdown.js.map +0 -1
- package/dist/node_modules/react-day-picker/dist/esm/formatters/index.js +0 -19
- package/dist/node_modules/react-day-picker/dist/esm/formatters/index.js.map +0 -1
- package/dist/node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.js +0 -20
- package/dist/node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.js.map +0 -1
- package/dist/node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.js +0 -43
- package/dist/node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.js.map +0 -1
- package/dist/node_modules/react-day-picker/dist/esm/helpers/endOfBroadcastWeek.js +0 -10
- package/dist/node_modules/react-day-picker/dist/esm/helpers/endOfBroadcastWeek.js.map +0 -1
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.js +0 -8
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.js.map +0 -1
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getClassNamesForModifiers.js +0 -8
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getClassNamesForModifiers.js.map +0 -1
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getComponents.js +0 -11
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getComponents.js.map +0 -1
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDataAttributes.js +0 -17
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDataAttributes.js.map +0 -1
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDates.js +0 -20
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDates.js.map +0 -1
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDays.js +0 -11
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDays.js.map +0 -1
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.js +0 -17
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.js.map +0 -1
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.js +0 -14
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.js.map +0 -1
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getFocusableDate.js +0 -16
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getFocusableDate.js.map +0 -1
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getFormatters.js +0 -11
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getFormatters.js.map +0 -1
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.js +0 -14
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.js.map +0 -1
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getLabels.js +0 -35
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getLabels.js.map +0 -1
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonthOptions.js +0 -14
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonthOptions.js.map +0 -1
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonths.js +0 -25
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonths.js.map +0 -1
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getNavMonth.js +0 -14
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getNavMonth.js.map +0 -1
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextFocus.js +0 -13
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextFocus.js.map +0 -1
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextMonth.js +0 -13
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextMonth.js.map +0 -1
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.js +0 -13
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.js.map +0 -1
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.js +0 -14
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.js.map +0 -1
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeekdays.js +0 -12
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeekdays.js.map +0 -1
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeeks.js +0 -8
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeeks.js.map +0 -1
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js +0 -17
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js.map +0 -1
- package/dist/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.js +0 -8
- package/dist/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.js.map +0 -1
- package/dist/node_modules/react-day-picker/dist/esm/helpers/useControlledValue.js +0 -9
- package/dist/node_modules/react-day-picker/dist/esm/helpers/useControlledValue.js.map +0 -1
- package/dist/node_modules/react-day-picker/dist/esm/labels/index.js +0 -27
- package/dist/node_modules/react-day-picker/dist/esm/labels/index.js.map +0 -1
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelDayButton.js +0 -11
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelDayButton.js.map +0 -1
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelGrid.js +0 -10
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelGrid.js.map +0 -1
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelGridcell.js +0 -9
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelGridcell.js.map +0 -1
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.js.map +0 -1
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelNav.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelNav.js.map +0 -1
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelNext.js +0 -8
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelNext.js.map +0 -1
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelPrevious.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelPrevious.js.map +0 -1
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.js.map +0 -1
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.js.map +0 -1
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekday.js +0 -8
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekday.js.map +0 -1
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.js.map +0 -1
- package/dist/node_modules/react-day-picker/dist/esm/locale/en-US.js +0 -38
- package/dist/node_modules/react-day-picker/dist/esm/locale/en-US.js.map +0 -1
- package/dist/node_modules/react-day-picker/dist/esm/noonDateLib.js +0 -105
- package/dist/node_modules/react-day-picker/dist/esm/noonDateLib.js.map +0 -1
- package/dist/node_modules/react-day-picker/dist/esm/selection/useMulti.js +0 -22
- package/dist/node_modules/react-day-picker/dist/esm/selection/useMulti.js.map +0 -1
- package/dist/node_modules/react-day-picker/dist/esm/selection/useRange.js +0 -24
- package/dist/node_modules/react-day-picker/dist/esm/selection/useRange.js.map +0 -1
- package/dist/node_modules/react-day-picker/dist/esm/selection/useSingle.js +0 -16
- package/dist/node_modules/react-day-picker/dist/esm/selection/useSingle.js.map +0 -1
- package/dist/node_modules/react-day-picker/dist/esm/useAnimation.js +0 -57
- package/dist/node_modules/react-day-picker/dist/esm/useAnimation.js.map +0 -1
- package/dist/node_modules/react-day-picker/dist/esm/useCalendar.js +0 -76
- package/dist/node_modules/react-day-picker/dist/esm/useCalendar.js.map +0 -1
- package/dist/node_modules/react-day-picker/dist/esm/useDayPicker.js +0 -13
- package/dist/node_modules/react-day-picker/dist/esm/useDayPicker.js.map +0 -1
- package/dist/node_modules/react-day-picker/dist/esm/useFocus.js +0 -24
- package/dist/node_modules/react-day-picker/dist/esm/useFocus.js.map +0 -1
- package/dist/node_modules/react-day-picker/dist/esm/useSelection.js +0 -20
- package/dist/node_modules/react-day-picker/dist/esm/useSelection.js.map +0 -1
- package/dist/node_modules/react-day-picker/dist/esm/utils/addToRange.js +0 -33
- package/dist/node_modules/react-day-picker/dist/esm/utils/addToRange.js.map +0 -1
- package/dist/node_modules/react-day-picker/dist/esm/utils/convertMatchersToTimeZone.js +0 -27
- package/dist/node_modules/react-day-picker/dist/esm/utils/convertMatchersToTimeZone.js.map +0 -1
- package/dist/node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.js +0 -27
- package/dist/node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.js.map +0 -1
- package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.js +0 -16
- package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.js.map +0 -1
- package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.js +0 -29
- package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.js.map +0 -1
- package/dist/node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.js +0 -10
- package/dist/node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.js.map +0 -1
- package/dist/node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.js +0 -9
- package/dist/node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.js.map +0 -1
- package/dist/node_modules/react-day-picker/dist/esm/utils/toTimeZone.js +0 -9
- package/dist/node_modules/react-day-picker/dist/esm/utils/toTimeZone.js.map +0 -1
- package/dist/node_modules/react-day-picker/dist/esm/utils/typeguards.js +0 -27
- package/dist/node_modules/react-day-picker/dist/esm/utils/typeguards.js.map +0 -1
- package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.js +0 -12
- package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.js.map +0 -1
- package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +0 -116
- package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js.map +0 -1
- package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js +0 -32
- package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js.map +0 -1
- package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +0 -17
- package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js.map +0 -1
- package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +0 -69
- package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js.map +0 -1
- package/dist/node_modules/react-remove-scroll/dist/es2015/medium.js +0 -6
- package/dist/node_modules/react-remove-scroll/dist/es2015/medium.js.map +0 -1
- package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.js +0 -8
- package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.js.map +0 -1
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.js +0 -72
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.js.map +0 -1
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +0 -8
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.js.map +0 -1
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +0 -26
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.js.map +0 -1
- package/dist/node_modules/react-style-singleton/dist/es2015/component.js +0 -12
- package/dist/node_modules/react-style-singleton/dist/es2015/component.js.map +0 -1
- package/dist/node_modules/react-style-singleton/dist/es2015/hook.js +0 -16
- package/dist/node_modules/react-style-singleton/dist/es2015/hook.js.map +0 -1
- package/dist/node_modules/react-style-singleton/dist/es2015/singleton.js +0 -31
- package/dist/node_modules/react-style-singleton/dist/es2015/singleton.js.map +0 -1
- package/dist/node_modules/sonner/dist/index.js +0 -265
- package/dist/node_modules/sonner/dist/index.js.map +0 -1
- package/dist/node_modules/tslib/tslib.es6.js +0 -28
- package/dist/node_modules/tslib/tslib.es6.js.map +0 -1
- package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.js +0 -7
- package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.js.map +0 -1
- package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +0 -27
- package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js.map +0 -1
- package/dist/node_modules/use-callback-ref/dist/es2015/useRef.js +0 -26
- package/dist/node_modules/use-callback-ref/dist/es2015/useRef.js.map +0 -1
- package/dist/node_modules/use-sidecar/dist/es2015/exports.js +0 -19
- package/dist/node_modules/use-sidecar/dist/es2015/exports.js.map +0 -1
- package/dist/node_modules/use-sidecar/dist/es2015/medium.js +0 -68
- package/dist/node_modules/use-sidecar/dist/es2015/medium.js.map +0 -1
- package/dist/types/conversation.d.ts +0 -44
- package/scripts/convert-to-typescript.sh +0 -52
- package/scripts/postinstall.mjs +0 -368
- package/scripts/remove-local-components.mjs +0 -78
- package/src/components/library/cards/ActionList.tsx +0 -42
- package/src/components/library/cards/ActivityCard.tsx +0 -85
- package/src/components/library/cards/BaseCard.tsx +0 -136
- package/src/components/library/cards/CalloutCard.tsx +0 -39
- package/src/components/library/cards/ChartCard.tsx +0 -131
- package/src/components/library/cards/FeedPanel.tsx +0 -50
- package/src/components/library/cards/ListCard.tsx +0 -229
- package/src/components/library/cards/MetricCard.tsx +0 -128
- package/src/components/library/cards/MetricsStrip.tsx +0 -88
- package/src/components/library/cards/SectionCard.tsx +0 -102
- package/src/components/library/cards/SemanticMetricCard.tsx +0 -64
- package/src/components/library/cards/SemanticMetricCardWithLoading.tsx +0 -29
- package/src/components/library/cards/SemanticTableCard.tsx +0 -59
- package/src/components/library/cards/SemanticTableCardWithLoading.tsx +0 -26
- package/src/components/library/cards/StatusCard.tsx +0 -269
- package/src/components/library/cards/TableCard.tsx +0 -376
- package/src/components/library/cards/WidgetCard.tsx +0 -113
- package/src/components/library/charts/D3Chart.tsx +0 -129
- package/src/components/library/charts/D3ChartTemplates.tsx +0 -158
- package/src/components/library/charts/GeoMap.tsx +0 -382
- package/src/components/library/chat/ChatBar.tsx +0 -267
- package/src/components/library/chat/ChatInput.tsx +0 -91
- package/src/components/library/chat/ChatMessage.tsx +0 -191
- package/src/components/library/chat/ChatMessageList.tsx +0 -75
- package/src/components/library/chat/ChatPanel.tsx +0 -100
- package/src/components/library/chat/ChatSuggestions.tsx +0 -29
- package/src/components/library/chat/ChatToolCall.tsx +0 -110
- package/src/components/library/chat/ChatTypingIndicator.tsx +0 -26
- package/src/components/library/chat/ChatWelcome.tsx +0 -45
- package/src/components/library/chat/index.tsx +0 -26
- package/src/components/library/chat/useChatState.tsx +0 -182
- package/src/components/library/data/DataModeProvider.tsx +0 -84
- package/src/components/library/data/DataModeToggle.tsx +0 -39
- package/src/components/library/data/chartDataProvider.tsx +0 -105
- package/src/components/library/data/filterUtils.tsx +0 -187
- package/src/components/library/data/useDataSource.tsx +0 -40
- package/src/components/library/data/usePageFilters.tsx +0 -139
- package/src/components/library/filters/FilterBar.tsx +0 -105
- package/src/components/library/filters/SearchFilter.tsx +0 -42
- package/src/components/library/filters/SelectFilter.tsx +0 -62
- package/src/components/library/filters/ToggleFilter.tsx +0 -53
- package/src/components/library/filters/index.ts +0 -4
- package/src/components/library/forms/FormField.tsx +0 -337
- package/src/components/library/forms/FormModal.tsx +0 -202
- package/src/components/library/forms/FormRenderer.tsx +0 -68
- package/src/components/library/forms/FormSection.tsx +0 -75
- package/src/components/library/forms/index.tsx +0 -11
- package/src/components/library/forms/useFormState.tsx +0 -185
- package/src/components/library/heroui/Accordion.tsx +0 -31
- package/src/components/library/heroui/Alert.tsx +0 -13
- package/src/components/library/heroui/Badge.tsx +0 -14
- package/src/components/library/heroui/Breadcrumbs.tsx +0 -25
- package/src/components/library/heroui/Button.tsx +0 -76
- package/src/components/library/heroui/Card.tsx +0 -14
- package/src/components/library/heroui/Collapsible.tsx +0 -62
- package/src/components/library/heroui/DatePicker.tsx +0 -58
- package/src/components/library/heroui/Dialog.tsx +0 -43
- package/src/components/library/heroui/Drawer.tsx +0 -36
- package/src/components/library/heroui/Dropdown.tsx +0 -32
- package/src/components/library/heroui/Field.tsx +0 -68
- package/src/components/library/heroui/Input.tsx +0 -10
- package/src/components/library/heroui/Kbd.tsx +0 -11
- package/src/components/library/heroui/Meter.tsx +0 -13
- package/src/components/library/heroui/Modal.tsx +0 -35
- package/src/components/library/heroui/Pagination.tsx +0 -11
- package/src/components/library/heroui/Popover.tsx +0 -95
- package/src/components/library/heroui/ProgressBar.tsx +0 -14
- package/src/components/library/heroui/ProgressCircle.tsx +0 -14
- package/src/components/library/heroui/ScrollShadow.tsx +0 -14
- package/src/components/library/heroui/Select.tsx +0 -73
- package/src/components/library/heroui/Separator.tsx +0 -11
- package/src/components/library/heroui/Skeleton.tsx +0 -14
- package/src/components/library/heroui/Tabs.tsx +0 -31
- package/src/components/library/heroui/Toast.tsx +0 -28
- package/src/components/library/heroui/Toggle.tsx +0 -18
- package/src/components/library/heroui/Tooltip.tsx +0 -24
- package/src/components/library/index.ts +0 -147
- package/src/components/library/layout/PageContainer.tsx +0 -14
- package/src/components/library/skeletons/CardSkeleton.tsx +0 -31
- package/src/components/library/theme/AppThemeProvider.tsx +0 -80
- package/src/components/library/theme/tokens.tsx +0 -106
- package/src/components/library/ui/Alert.tsx +0 -90
- package/src/components/library/ui/Avatar.tsx +0 -68
- package/src/components/library/ui/BreadcrumbExtras.tsx +0 -119
- package/src/components/library/ui/Card.tsx +0 -131
- package/src/components/library/ui/Checkbox.tsx +0 -19
- package/src/components/library/ui/Chip.tsx +0 -42
- package/src/components/library/ui/Collapsible.tsx +0 -31
- package/src/components/library/ui/Container.tsx +0 -65
- package/src/components/library/ui/DatePicker.tsx +0 -34
- package/src/components/library/ui/Dialog.tsx +0 -141
- package/src/components/library/ui/EmptyState.tsx +0 -49
- package/src/components/library/ui/Field.tsx +0 -82
- package/src/components/library/ui/FieldGroup.tsx +0 -19
- package/src/components/library/ui/Label.tsx +0 -23
- package/src/components/library/ui/PaginationExtras.tsx +0 -143
- package/src/components/library/ui/Popover.tsx +0 -39
- package/src/components/library/ui/Select.tsx +0 -113
- package/src/components/library/ui/Spinner.tsx +0 -66
- package/src/components/library/ui/Text.tsx +0 -53
- package/src/components/library/ui/UIButton.tsx +0 -62
- package/src/components/library/ui/UIInput.tsx +0 -21
- package/src/components/workspace/ComponentRegistry.tsx +0 -402
- package/src/lib/index.ts +0 -1
- package/src/lib/utils.ts +0 -6
- package/src/templates/config/routes.tsx.template +0 -33
- package/src/templates/pages/BlankDashboard.tsx.template +0 -15
- package/src/templates/pages/Home.tsx.template +0 -58
- package/src/templates/pages/NotFound.tsx.template +0 -19
- package/src/templates/pages/Search.tsx.template +0 -13
- package/src/templates/workspace/CommandCenter.tsx.template +0 -15
- package/src/types/conversation.ts +0 -48
- /package/dist/components/library/ui/{datePicker.d.ts → DatePicker.d.ts} +0 -0
- /package/dist/components/library/ui/{field.d.ts → Field.d.ts} +0 -0
|
@@ -1,13 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
semanticId:
|
|
4
|
-
dataOverride
|
|
5
|
-
columnsOverride
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
export default function SemanticTableCard({ semanticId, dataOverride, columnsOverride, title, subtitle, searchable, sortable, paginated, pageSize, compact, striped, isDark, simulateInitialLoad, minInitialDelayMs, maxInitialDelayMs, ...rest }: {
|
|
2
|
+
[x: string]: any;
|
|
3
|
+
semanticId: any;
|
|
4
|
+
dataOverride: any;
|
|
5
|
+
columnsOverride: any;
|
|
6
|
+
title: any;
|
|
7
|
+
subtitle: any;
|
|
8
|
+
searchable?: boolean | undefined;
|
|
9
|
+
sortable?: boolean | undefined;
|
|
10
|
+
paginated?: boolean | undefined;
|
|
11
|
+
pageSize?: number | undefined;
|
|
12
|
+
compact: any;
|
|
13
|
+
striped: any;
|
|
14
|
+
isDark: any;
|
|
15
|
+
simulateInitialLoad: any;
|
|
16
|
+
minInitialDelayMs: any;
|
|
17
|
+
maxInitialDelayMs: any;
|
|
18
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
simulateInitialLoad?: boolean;
|
|
4
|
-
minInitialDelayMs?: number;
|
|
5
|
-
maxInitialDelayMs?: number;
|
|
6
|
-
loading
|
|
7
|
-
}
|
|
8
|
-
export default function SemanticTableCardWithLoading({ simulateInitialLoad, minInitialDelayMs, maxInitialDelayMs, loading: loadingProp, ...props }: SemanticTableCardWithLoadingProps): import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
export default function SemanticTableCardWithLoading({ simulateInitialLoad, minInitialDelayMs, maxInitialDelayMs, loading: loadingProp, ...props }: {
|
|
2
|
+
[x: string]: any;
|
|
3
|
+
simulateInitialLoad?: boolean | undefined;
|
|
4
|
+
minInitialDelayMs?: number | undefined;
|
|
5
|
+
maxInitialDelayMs?: number | undefined;
|
|
6
|
+
loading: any;
|
|
7
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,29 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
subtitle?: string;
|
|
17
|
-
status?: string;
|
|
18
|
-
items?: StatusItem[];
|
|
19
|
-
layout?: Layout;
|
|
20
|
-
showProgress?: boolean;
|
|
21
|
-
showTimestamp?: boolean;
|
|
22
|
-
actions?: React.ReactNode;
|
|
23
|
-
loading?: boolean;
|
|
24
|
-
error?: string | Error;
|
|
25
|
-
emptyMessage?: string;
|
|
26
|
-
maxBodyHeight?: string | number;
|
|
27
|
-
}
|
|
28
|
-
export default function StatusCard({ title, subtitle, status, items, layout, showProgress, showTimestamp, actions, loading, error, emptyMessage, maxBodyHeight, ...cardProps }: StatusCardProps): import("react/jsx-runtime").JSX.Element;
|
|
29
|
-
export {};
|
|
1
|
+
export default function StatusCard({ title, subtitle, status, items, layout, showProgress, showTimestamp, actions, loading, error, emptyMessage, maxBodyHeight, ...cardProps }: {
|
|
2
|
+
[x: string]: any;
|
|
3
|
+
title: any;
|
|
4
|
+
subtitle: any;
|
|
5
|
+
status?: string | undefined;
|
|
6
|
+
items?: never[] | undefined;
|
|
7
|
+
layout?: string | undefined;
|
|
8
|
+
showProgress?: boolean | undefined;
|
|
9
|
+
showTimestamp?: boolean | undefined;
|
|
10
|
+
actions: any;
|
|
11
|
+
loading?: boolean | undefined;
|
|
12
|
+
error: any;
|
|
13
|
+
emptyMessage?: string | undefined;
|
|
14
|
+
maxBodyHeight: any;
|
|
15
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { jsx as e, jsxs as l } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
2
3
|
import w from "./BaseCard.js";
|
|
3
4
|
import y from "../ui/Text.js";
|
|
4
|
-
const
|
|
5
|
+
const g = {
|
|
5
6
|
operational: {
|
|
6
7
|
label: "Operational",
|
|
7
8
|
dot: "bg-emerald-500",
|
|
@@ -25,7 +26,7 @@ const x = {
|
|
|
25
26
|
};
|
|
26
27
|
function h(t) {
|
|
27
28
|
const a = String(t ?? "operational").toLowerCase();
|
|
28
|
-
return a === "ok" || a === "healthy" || a === "up" ? "operational" : a === "warn" || a === "warning" || a === "partial" ? "degraded" : a === "down" || a === "critical" ? "outage" :
|
|
29
|
+
return a === "ok" || a === "healthy" || a === "up" ? "operational" : a === "warn" || a === "warning" || a === "partial" ? "degraded" : a === "down" || a === "critical" ? "outage" : g[a] ? a : "operational";
|
|
29
30
|
}
|
|
30
31
|
function I(t) {
|
|
31
32
|
if (!t) return "";
|
|
@@ -37,13 +38,13 @@ function I(t) {
|
|
|
37
38
|
}
|
|
38
39
|
}
|
|
39
40
|
function S({ status: t }) {
|
|
40
|
-
const a = h(t), r =
|
|
41
|
+
const a = h(t), r = g[a];
|
|
41
42
|
return /* @__PURE__ */ l("span", { className: ["inline-flex items-center gap-2 rounded-full px-2.5 py-1 text-xs font-semibold", r.chip].join(" "), children: [
|
|
42
43
|
/* @__PURE__ */ e("span", { className: ["h-2 w-2 rounded-full", r.dot].join(" "), "aria-hidden": "true" }),
|
|
43
44
|
r.label
|
|
44
45
|
] });
|
|
45
46
|
}
|
|
46
|
-
function
|
|
47
|
+
function b({ item: t, showTimestamp: a }) {
|
|
47
48
|
const r = t?.title ?? t?.name ?? "Item", s = t?.description, i = t?.value, o = t?.unit, d = t?.timestamp, c = t?.status;
|
|
48
49
|
return /* @__PURE__ */ l("div", { className: "flex items-start justify-between gap-3 rounded-xl border border-slate-200 bg-white p-3 dark:border-slate-800 dark:bg-slate-900", children: [
|
|
49
50
|
/* @__PURE__ */ l("div", { className: "min-w-0", children: [
|
|
@@ -64,15 +65,15 @@ function M({ items: t, showTimestamp: a }) {
|
|
|
64
65
|
return /* @__PURE__ */ l("div", { className: "relative mt-4", children: [
|
|
65
66
|
/* @__PURE__ */ e("div", { className: "absolute left-3 top-0 h-full w-px bg-slate-200 dark:bg-slate-800", "aria-hidden": "true" }),
|
|
66
67
|
/* @__PURE__ */ e("div", { className: "space-y-3", children: t.map((r, s) => {
|
|
67
|
-
const i = r?.id ?? s, o = r?.status, d =
|
|
68
|
+
const i = r?.id ?? s, o = r?.status, d = g[h(o)];
|
|
68
69
|
return /* @__PURE__ */ l("div", { className: "relative pl-8", children: [
|
|
69
70
|
/* @__PURE__ */ e("div", { className: ["absolute left-[9px] top-3 h-2.5 w-2.5 rounded-full", d.dot].join(" "), "aria-hidden": "true" }),
|
|
70
|
-
/* @__PURE__ */ e(
|
|
71
|
+
/* @__PURE__ */ e(b, { item: r, showTimestamp: a })
|
|
71
72
|
] }, i);
|
|
72
73
|
}) })
|
|
73
74
|
] });
|
|
74
75
|
}
|
|
75
|
-
function
|
|
76
|
+
function E({
|
|
76
77
|
title: t,
|
|
77
78
|
subtitle: a,
|
|
78
79
|
status: r = "operational",
|
|
@@ -82,9 +83,9 @@ function _({
|
|
|
82
83
|
showTimestamp: d = !0,
|
|
83
84
|
actions: c,
|
|
84
85
|
loading: j = !1,
|
|
85
|
-
error:
|
|
86
|
+
error: x,
|
|
86
87
|
emptyMessage: C = "No status items.",
|
|
87
|
-
maxBodyHeight:
|
|
88
|
+
maxBodyHeight: p,
|
|
88
89
|
...f
|
|
89
90
|
}) {
|
|
90
91
|
const T = h(r), v = /* @__PURE__ */ l("div", { className: "flex items-start justify-between gap-3", children: [
|
|
@@ -97,26 +98,26 @@ function _({
|
|
|
97
98
|
c ? /* @__PURE__ */ e("div", { className: "ml-1", children: c }) : null
|
|
98
99
|
] })
|
|
99
100
|
] });
|
|
100
|
-
if (
|
|
101
|
+
if (x)
|
|
101
102
|
return /* @__PURE__ */ e(
|
|
102
103
|
w,
|
|
103
104
|
{
|
|
104
105
|
variant: "status",
|
|
105
106
|
header: v,
|
|
106
|
-
body: /* @__PURE__ */ e("div", { className: "mt-4 rounded-xl border border-rose-200 bg-rose-50 p-4 text-sm text-rose-900 dark:border-rose-900/40 dark:bg-rose-950/30 dark:text-rose-100", children: String(
|
|
107
|
+
body: /* @__PURE__ */ e("div", { className: "mt-4 rounded-xl border border-rose-200 bg-rose-50 p-4 text-sm text-rose-900 dark:border-rose-900/40 dark:bg-rose-950/30 dark:text-rose-100", children: String(x) }),
|
|
107
108
|
...f
|
|
108
109
|
}
|
|
109
110
|
);
|
|
110
|
-
const
|
|
111
|
+
const u = s.length, N = s.filter((n) => h(n?.status) === "operational").length, k = u > 0 ? Math.round(N / u * 100) : 100, z = p ? { maxHeight: p, overflowY: "auto" } : {}, A = j ? /* @__PURE__ */ e("div", { className: "space-y-3", children: Array.from({ length: 3 }).map((n, m) => /* @__PURE__ */ l("div", { className: "flex items-center gap-3 rounded-xl border border-slate-200 bg-white p-3 dark:border-slate-800 dark:bg-slate-900", children: [
|
|
111
112
|
/* @__PURE__ */ e("div", { className: "h-4 w-1/4 animate-pulse rounded bg-slate-200 dark:bg-slate-800" }),
|
|
112
113
|
/* @__PURE__ */ e("div", { className: "h-4 w-1/3 animate-pulse rounded bg-slate-200 dark:bg-slate-800" })
|
|
113
|
-
] }, m)) }) : s.length === 0 ? /* @__PURE__ */ e("div", { className: "rounded-xl border border-dashed border-slate-300 bg-slate-50 p-6 text-center text-sm text-slate-600 dark:border-slate-700 dark:bg-slate-950/30 dark:text-slate-300", children: C }) : i === "grid" ? /* @__PURE__ */ e("div", { className: "grid grid-cols-1 gap-3 sm:grid-cols-2", children: s.map((n, m) => /* @__PURE__ */ e(
|
|
114
|
-
o &&
|
|
114
|
+
] }, m)) }) : s.length === 0 ? /* @__PURE__ */ e("div", { className: "rounded-xl border border-dashed border-slate-300 bg-slate-50 p-6 text-center text-sm text-slate-600 dark:border-slate-700 dark:bg-slate-950/30 dark:text-slate-300", children: C }) : i === "grid" ? /* @__PURE__ */ e("div", { className: "grid grid-cols-1 gap-3 sm:grid-cols-2", children: s.map((n, m) => /* @__PURE__ */ e(b, { item: n, showTimestamp: d }, n?.id ?? m)) }) : i === "timeline" ? /* @__PURE__ */ e(M, { items: s, showTimestamp: d }) : /* @__PURE__ */ e("div", { className: "space-y-3", children: s.map((n, m) => /* @__PURE__ */ e(b, { item: n, showTimestamp: d }, n?.id ?? m)) }), D = /* @__PURE__ */ l("div", { className: "mt-4", children: [
|
|
115
|
+
o && u > 0 ? /* @__PURE__ */ l("div", { className: "mb-4", children: [
|
|
115
116
|
/* @__PURE__ */ l("div", { className: "flex items-center justify-between text-xs text-slate-600 dark:text-slate-300", children: [
|
|
116
117
|
/* @__PURE__ */ l("span", { children: [
|
|
117
118
|
N,
|
|
118
119
|
" / ",
|
|
119
|
-
|
|
120
|
+
u,
|
|
120
121
|
" operational"
|
|
121
122
|
] }),
|
|
122
123
|
/* @__PURE__ */ l("span", { children: [
|
|
@@ -131,6 +132,6 @@ function _({
|
|
|
131
132
|
return /* @__PURE__ */ e(w, { variant: "status", header: v, body: D, ...f });
|
|
132
133
|
}
|
|
133
134
|
export {
|
|
134
|
-
|
|
135
|
+
E as default
|
|
135
136
|
};
|
|
136
137
|
//# sourceMappingURL=StatusCard.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StatusCard.js","sources":["../../../../src/components/library/cards/StatusCard.tsx"],"sourcesContent":["import React from \"react\";\nimport BaseCard, { BaseCardProps } from \"./BaseCard\";\nimport UIText from \"../ui/Text\";\n\ntype Status = \"operational\" | \"degraded\" | \"outage\" | \"maintenance\";\ntype Layout = \"list\" | \"grid\" | \"timeline\";\n\ninterface StatusMeta {\n label: string;\n dot: string;\n chip: string;\n}\n\nconst STATUS_META: Record<Status, StatusMeta> = {\n operational: {\n label: \"Operational\",\n dot: \"bg-emerald-500\",\n chip: \"bg-emerald-100 text-emerald-900 dark:bg-emerald-950/30 dark:text-emerald-200\"\n },\n degraded: {\n label: \"Degraded\",\n dot: \"bg-amber-500\",\n chip: \"bg-amber-100 text-amber-900 dark:bg-amber-950/30 dark:text-amber-200\"\n },\n outage: {\n label: \"Outage\",\n dot: \"bg-rose-500\",\n chip: \"bg-rose-100 text-rose-900 dark:bg-rose-950/30 dark:text-rose-200\"\n },\n maintenance: {\n label: \"Maintenance\",\n dot: \"bg-slate-500\",\n chip: \"bg-slate-100 text-slate-900 dark:bg-slate-800 dark:text-slate-100\"\n }\n};\n\nfunction normalizeStatus(status: string | undefined): Status {\n const s = String(status ?? \"operational\").toLowerCase();\n if (s === \"ok\" || s === \"healthy\" || s === \"up\") return \"operational\";\n if (s === \"warn\" || s === \"warning\" || s === \"partial\") return \"degraded\";\n if (s === \"down\" || s === \"critical\") return \"outage\";\n return STATUS_META[s as Status] ? (s as Status) : \"operational\";\n}\n\nfunction formatTimestamp(ts: string | Date | undefined): string {\n if (!ts) return \"\";\n try {\n const d = ts instanceof Date ? ts : new Date(ts);\n if (Number.isNaN(d.getTime())) return String(ts);\n return d.toLocaleString(undefined, { dateStyle: \"medium\", timeStyle: \"short\" });\n } catch {\n return String(ts);\n }\n}\n\ninterface StatusChipProps {\n status: string | undefined;\n}\n\nfunction StatusChip({ status }: StatusChipProps) {\n const key = normalizeStatus(status);\n const meta = STATUS_META[key];\n return (\n <span className={[\"inline-flex items-center gap-2 rounded-full px-2.5 py-1 text-xs font-semibold\", meta.chip].join(\" \")}>\n <span className={[\"h-2 w-2 rounded-full\", meta.dot].join(\" \")} aria-hidden=\"true\" />\n {meta.label}\n </span>\n );\n}\n\nexport interface StatusItem {\n id?: string | number;\n title?: string;\n name?: string;\n description?: string;\n status?: string;\n timestamp?: string | Date;\n value?: string | number;\n unit?: string;\n}\n\ninterface ItemRowProps {\n item: StatusItem;\n showTimestamp: boolean;\n}\n\nfunction ItemRow({ item, showTimestamp }: ItemRowProps) {\n const name = item?.title ?? item?.name ?? \"Item\";\n const desc = item?.description;\n const value = item?.value;\n const unit = item?.unit;\n const ts = item?.timestamp;\n const status = item?.status;\n\n return (\n <div className=\"flex items-start justify-between gap-3 rounded-xl border border-slate-200 bg-white p-3 dark:border-slate-800 dark:bg-slate-900\">\n <div className=\"min-w-0\">\n <div className=\"flex items-center gap-2\">\n <div className=\"truncate text-sm font-semibold text-slate-900 dark:text-slate-50\">{name}</div>\n {status ? <StatusChip status={status} /> : null}\n </div>\n {desc ? (\n <div className=\"mt-1 text-sm text-slate-600 dark:text-slate-300\">{desc}</div>\n ) : null}\n {showTimestamp && ts ? (\n <div className=\"mt-1 text-xs text-slate-500 dark:text-slate-400\">{formatTimestamp(ts)}</div>\n ) : null}\n </div>\n {value != null ? (\n <div className=\"shrink-0 text-right\">\n <div className=\"text-sm font-semibold text-slate-900 dark:text-slate-50\">\n {String(value)}\n {unit ? <span className=\"ml-1 text-xs font-medium text-slate-500 dark:text-slate-400\">{unit}</span> : null}\n </div>\n </div>\n ) : null}\n </div>\n );\n}\n\ninterface TimelineProps {\n items: StatusItem[];\n showTimestamp: boolean;\n}\n\nfunction Timeline({ items, showTimestamp }: TimelineProps) {\n return (\n <div className=\"relative mt-4\">\n <div className=\"absolute left-3 top-0 h-full w-px bg-slate-200 dark:bg-slate-800\" aria-hidden=\"true\" />\n <div className=\"space-y-3\">\n {items.map((item, idx) => {\n const key = item?.id ?? idx;\n const status = item?.status;\n const meta = STATUS_META[normalizeStatus(status)];\n return (\n <div key={key} className=\"relative pl-8\">\n <div className={[\"absolute left-[9px] top-3 h-2.5 w-2.5 rounded-full\", meta.dot].join(\" \")} aria-hidden=\"true\" />\n <ItemRow item={item} showTimestamp={showTimestamp} />\n </div>\n );\n })}\n </div>\n </div>\n );\n}\n\nexport interface StatusCardProps extends Omit<BaseCardProps, \"variant\" | \"header\" | \"body\"> {\n title?: string;\n subtitle?: string;\n status?: string;\n items?: StatusItem[];\n layout?: Layout;\n showProgress?: boolean;\n showTimestamp?: boolean;\n actions?: React.ReactNode;\n loading?: boolean;\n error?: string | Error;\n emptyMessage?: string;\n maxBodyHeight?: string | number;\n}\n\nexport default function StatusCard({\n title,\n subtitle,\n status = \"operational\",\n items = [],\n layout = \"list\",\n showProgress = false,\n showTimestamp = true,\n actions,\n loading = false,\n error,\n emptyMessage = \"No status items.\",\n maxBodyHeight,\n ...cardProps\n}: StatusCardProps) {\n const overall = normalizeStatus(status);\n const header = (\n <div className=\"flex items-start justify-between gap-3\">\n <div className=\"min-w-0\">\n {title ? (\n <UIText as=\"div\" size=\"sm\" weight=\"medium\">\n {title}\n </UIText>\n ) : null}\n {subtitle ? (\n <UIText as=\"div\" size=\"xs\" muted className=\"mt-1\">\n {subtitle}\n </UIText>\n ) : null}\n </div>\n <div className=\"flex items-center gap-2\">\n <StatusChip status={overall} />\n {actions ? <div className=\"ml-1\">{actions}</div> : null}\n </div>\n </div>\n );\n\n if (error) {\n return (\n <BaseCard\n variant=\"status\"\n header={header}\n body={\n <div className=\"mt-4 rounded-xl border border-rose-200 bg-rose-50 p-4 text-sm text-rose-900 dark:border-rose-900/40 dark:bg-rose-950/30 dark:text-rose-100\">\n {String(error)}\n </div>\n }\n {...cardProps}\n />\n );\n }\n\n const total = items.length;\n const okCount = items.filter((it) => normalizeStatus(it?.status) === \"operational\").length;\n const percentOk = total > 0 ? Math.round((okCount / total) * 100) : 100;\n\n const scrollStyle: React.CSSProperties = maxBodyHeight\n ? { maxHeight: typeof maxBodyHeight === \"number\" ? `${maxBodyHeight}px` : maxBodyHeight, overflowY: \"auto\" }\n : {};\n\n const itemsContent = loading ? (\n <div className=\"space-y-3\">\n {Array.from({ length: 3 }).map((_, i) => (\n <div key={i} className=\"flex items-center gap-3 rounded-xl border border-slate-200 bg-white p-3 dark:border-slate-800 dark:bg-slate-900\">\n <div className=\"h-4 w-1/4 animate-pulse rounded bg-slate-200 dark:bg-slate-800\" />\n <div className=\"h-4 w-1/3 animate-pulse rounded bg-slate-200 dark:bg-slate-800\" />\n </div>\n ))}\n </div>\n ) : items.length === 0 ? (\n <div className=\"rounded-xl border border-dashed border-slate-300 bg-slate-50 p-6 text-center text-sm text-slate-600 dark:border-slate-700 dark:bg-slate-950/30 dark:text-slate-300\">\n {emptyMessage}\n </div>\n ) : layout === \"grid\" ? (\n <div className=\"grid grid-cols-1 gap-3 sm:grid-cols-2\">\n {items.map((it, idx) => (\n <ItemRow key={it?.id ?? idx} item={it} showTimestamp={showTimestamp} />\n ))}\n </div>\n ) : layout === \"timeline\" ? (\n <Timeline items={items} showTimestamp={showTimestamp} />\n ) : (\n <div className=\"space-y-3\">\n {items.map((it, idx) => (\n <ItemRow key={it?.id ?? idx} item={it} showTimestamp={showTimestamp} />\n ))}\n </div>\n );\n\n const body = (\n <div className=\"mt-4\">\n {showProgress && total > 0 ? (\n <div className=\"mb-4\">\n <div className=\"flex items-center justify-between text-xs text-slate-600 dark:text-slate-300\">\n <span>{okCount} / {total} operational</span>\n <span>{percentOk}%</span>\n </div>\n <div className=\"mt-2 h-2 w-full overflow-hidden rounded-full bg-slate-200 dark:bg-slate-800\">\n <div className=\"h-full bg-emerald-500\" style={{ width: `${percentOk}%` }} />\n </div>\n </div>\n ) : null}\n <div style={scrollStyle}>{itemsContent}</div>\n </div>\n );\n\n return <BaseCard variant=\"status\" header={header} body={body} {...cardProps} />;\n}\n"],"names":["STATUS_META","normalizeStatus","status","s","formatTimestamp","ts","d","StatusChip","key","meta","jsxs","jsx","ItemRow","item","showTimestamp","name","desc","value","unit","Timeline","items","idx","StatusCard","title","subtitle","layout","showProgress","actions","loading","error","emptyMessage","maxBodyHeight","cardProps","overall","header","UIText","BaseCard","total","okCount","it","percentOk","scrollStyle","itemsContent","_","i","body"],"mappings":";;;AAaA,MAAMA,IAA0C;AAAA,EAC9C,aAAa;AAAA,IACX,OAAO;AAAA,IACP,KAAK;AAAA,IACL,MAAM;AAAA,EAAA;AAAA,EAER,UAAU;AAAA,IACR,OAAO;AAAA,IACP,KAAK;AAAA,IACL,MAAM;AAAA,EAAA;AAAA,EAER,QAAQ;AAAA,IACN,OAAO;AAAA,IACP,KAAK;AAAA,IACL,MAAM;AAAA,EAAA;AAAA,EAER,aAAa;AAAA,IACX,OAAO;AAAA,IACP,KAAK;AAAA,IACL,MAAM;AAAA,EAAA;AAEV;AAEA,SAASC,EAAgBC,GAAoC;AAC3D,QAAMC,IAAI,OAAOD,KAAU,aAAa,EAAE,YAAA;AAC1C,SAAIC,MAAM,QAAQA,MAAM,aAAaA,MAAM,OAAa,gBACpDA,MAAM,UAAUA,MAAM,aAAaA,MAAM,YAAkB,aAC3DA,MAAM,UAAUA,MAAM,aAAmB,WACtCH,EAAYG,CAAW,IAAKA,IAAe;AACpD;AAEA,SAASC,EAAgBC,GAAuC;AAC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A,UAAM;AAAA,QAAA,GAAY;AAAA,0BACpC,QAAA,EAAM,UAAA;AAAA,UAAAG;AAAA,UAAU;AAAA,QAAA,EAAA,CAAC;AAAA,MAAA,GACpB;AAAA,MACA,gBAAA7B,EAAC,OAAA,EAAI,WAAU,+EACb,4BAAC,OAAA,EAAI,WAAU,yBAAwB,OAAO,EAAE,OAAO,GAAG6B,CAAS,IAAA,GAAO,EAAA,CAC5E;AAAA,IAAA,EAAA,CACF,IACE;AAAA,IACJ,gBAAA7B,EAAC,OAAA,EAAI,OAAO8B,GAAc,UAAAC,EAAA,CAAa;AAAA,EAAA,GACzC;AAGF,2BAAQN,GAAA,EAAS,SAAQ,UAAS,QAAAF,GAAgB,MAAAW,GAAa,GAAGb,GAAW;AAC/E;"}
|
|
1
|
+
{"version":3,"file":"StatusCard.js","sources":["../../../../src/components/library/cards/StatusCard.jsx"],"sourcesContent":["import React from \"react\";\nimport BaseCard from \"./BaseCard\";\nimport UIText from \"../ui/Text\";\n\nconst STATUS_META = {\n operational: {\n label: \"Operational\",\n dot: \"bg-emerald-500\",\n chip: \"bg-emerald-100 text-emerald-900 dark:bg-emerald-950/30 dark:text-emerald-200\"\n },\n degraded: {\n label: \"Degraded\",\n dot: \"bg-amber-500\",\n chip: \"bg-amber-100 text-amber-900 dark:bg-amber-950/30 dark:text-amber-200\"\n },\n outage: {\n label: \"Outage\",\n dot: \"bg-rose-500\",\n chip: \"bg-rose-100 text-rose-900 dark:bg-rose-950/30 dark:text-rose-200\"\n },\n maintenance: {\n label: \"Maintenance\",\n dot: \"bg-slate-500\",\n chip: \"bg-slate-100 text-slate-900 dark:bg-slate-800 dark:text-slate-100\"\n }\n};\n\nfunction normalizeStatus(status) {\n const s = String(status ?? \"operational\").toLowerCase();\n if (s === \"ok\" || s === \"healthy\" || s === \"up\") return \"operational\";\n if (s === \"warn\" || s === \"warning\" || s === \"partial\") return \"degraded\";\n if (s === \"down\" || s === \"critical\") return \"outage\";\n return STATUS_META[s] ? s : \"operational\";\n}\n\nfunction formatTimestamp(ts) {\n if (!ts) return \"\";\n try {\n const d = ts instanceof Date ? ts : new Date(ts);\n if (Number.isNaN(d.getTime())) return String(ts);\n return d.toLocaleString(undefined, { dateStyle: \"medium\", timeStyle: \"short\" });\n } catch {\n return String(ts);\n }\n}\n\nfunction StatusChip({ status }) {\n const key = normalizeStatus(status);\n const meta = STATUS_META[key];\n return (\n <span className={[\"inline-flex items-center gap-2 rounded-full px-2.5 py-1 text-xs font-semibold\", meta.chip].join(\" \")}>\n <span className={[\"h-2 w-2 rounded-full\", meta.dot].join(\" \")} aria-hidden=\"true\" />\n {meta.label}\n </span>\n );\n}\n\nfunction ItemRow({ item, showTimestamp }) {\n const name = item?.title ?? item?.name ?? \"Item\";\n const desc = item?.description;\n const value = item?.value;\n const unit = item?.unit;\n const ts = item?.timestamp;\n const status = item?.status;\n\n return (\n <div className=\"flex items-start justify-between gap-3 rounded-xl border border-slate-200 bg-white p-3 dark:border-slate-800 dark:bg-slate-900\">\n <div className=\"min-w-0\">\n <div className=\"flex items-center gap-2\">\n <div className=\"truncate text-sm font-semibold text-slate-900 dark:text-slate-50\">{name}</div>\n {status ? <StatusChip status={status} /> : null}\n </div>\n {desc ? (\n <div className=\"mt-1 text-sm text-slate-600 dark:text-slate-300\">{desc}</div>\n ) : null}\n {showTimestamp && ts ? (\n <div className=\"mt-1 text-xs text-slate-500 dark:text-slate-400\">{formatTimestamp(ts)}</div>\n ) : null}\n </div>\n {value != null ? (\n <div className=\"shrink-0 text-right\">\n <div className=\"text-sm font-semibold text-slate-900 dark:text-slate-50\">\n {String(value)}\n {unit ? <span className=\"ml-1 text-xs font-medium text-slate-500 dark:text-slate-400\">{unit}</span> : null}\n </div>\n </div>\n ) : null}\n </div>\n );\n}\n\nfunction Timeline({ items, showTimestamp }) {\n return (\n <div className=\"relative mt-4\">\n <div className=\"absolute left-3 top-0 h-full w-px bg-slate-200 dark:bg-slate-800\" aria-hidden=\"true\" />\n <div className=\"space-y-3\">\n {items.map((item, idx) => {\n const key = item?.id ?? idx;\n const status = item?.status;\n const meta = STATUS_META[normalizeStatus(status)];\n return (\n <div key={key} className=\"relative pl-8\">\n <div className={[\"absolute left-[9px] top-3 h-2.5 w-2.5 rounded-full\", meta.dot].join(\" \")} aria-hidden=\"true\" />\n <ItemRow item={item} showTimestamp={showTimestamp} />\n </div>\n );\n })}\n </div>\n </div>\n );\n}\n\nexport default function StatusCard({\n title,\n subtitle,\n status = \"operational\",\n items = [],\n layout = \"list\",\n showProgress = false,\n showTimestamp = true,\n actions,\n loading = false,\n error,\n emptyMessage = \"No status items.\",\n maxBodyHeight,\n ...cardProps\n}) {\n const overall = normalizeStatus(status);\n const header = (\n <div className=\"flex items-start justify-between gap-3\">\n <div className=\"min-w-0\">\n {title ? (\n <UIText as=\"div\" size=\"sm\" weight=\"medium\">\n {title}\n </UIText>\n ) : null}\n {subtitle ? (\n <UIText as=\"div\" size=\"xs\" muted className=\"mt-1\">\n {subtitle}\n </UIText>\n ) : null}\n </div>\n <div className=\"flex items-center gap-2\">\n <StatusChip status={overall} />\n {actions ? <div className=\"ml-1\">{actions}</div> : null}\n </div>\n </div>\n );\n\n if (error) {\n return (\n <BaseCard\n variant=\"status\"\n header={header}\n body={\n <div className=\"mt-4 rounded-xl border border-rose-200 bg-rose-50 p-4 text-sm text-rose-900 dark:border-rose-900/40 dark:bg-rose-950/30 dark:text-rose-100\">\n {String(error)}\n </div>\n }\n {...cardProps}\n />\n );\n }\n\n const total = items.length;\n const okCount = items.filter((it) => normalizeStatus(it?.status) === \"operational\").length;\n const percentOk = total > 0 ? Math.round((okCount / total) * 100) : 100;\n\n const scrollStyle = maxBodyHeight ? { maxHeight: maxBodyHeight, overflowY: \"auto\" } : {};\n\n const itemsContent = loading ? (\n <div className=\"space-y-3\">\n {Array.from({ length: 3 }).map((_, i) => (\n <div key={i} className=\"flex items-center gap-3 rounded-xl border border-slate-200 bg-white p-3 dark:border-slate-800 dark:bg-slate-900\">\n <div className=\"h-4 w-1/4 animate-pulse rounded bg-slate-200 dark:bg-slate-800\" />\n <div className=\"h-4 w-1/3 animate-pulse rounded bg-slate-200 dark:bg-slate-800\" />\n </div>\n ))}\n </div>\n ) : items.length === 0 ? (\n <div className=\"rounded-xl border border-dashed border-slate-300 bg-slate-50 p-6 text-center text-sm text-slate-600 dark:border-slate-700 dark:bg-slate-950/30 dark:text-slate-300\">\n {emptyMessage}\n </div>\n ) : layout === \"grid\" ? (\n <div className=\"grid grid-cols-1 gap-3 sm:grid-cols-2\">\n {items.map((it, idx) => (\n <ItemRow key={it?.id ?? idx} item={it} showTimestamp={showTimestamp} />\n ))}\n </div>\n ) : layout === \"timeline\" ? (\n <Timeline items={items} showTimestamp={showTimestamp} />\n ) : (\n <div className=\"space-y-3\">\n {items.map((it, idx) => (\n <ItemRow key={it?.id ?? idx} item={it} showTimestamp={showTimestamp} />\n ))}\n </div>\n );\n\n const body = (\n <div className=\"mt-4\">\n {showProgress && total > 0 ? (\n <div className=\"mb-4\">\n <div className=\"flex items-center justify-between text-xs text-slate-600 dark:text-slate-300\">\n <span>{okCount} / {total} operational</span>\n <span>{percentOk}%</span>\n </div>\n <div className=\"mt-2 h-2 w-full overflow-hidden rounded-full bg-slate-200 dark:bg-slate-800\">\n <div className=\"h-full bg-emerald-500\" style={{ width: `${percentOk}%` }} />\n </div>\n </div>\n ) : null}\n <div style={scrollStyle}>{itemsContent}</div>\n </div>\n );\n\n return <BaseCard variant=\"status\" header={header} body={body} {...cardProps} />;\n}\n\n\n"],"names":["STATUS_META","normalizeStatus","status","s","formatTimestamp","ts","d","StatusChip","key","meta","jsxs","jsx","ItemRow","item","showTimestamp","name","desc","value","unit","Timeline","items","idx","StatusCard","title","subtitle","layout","showProgress","actions","loading","error","emptyMessage","maxBodyHeight","cardProps","overall","header","UIText","BaseCard","total","okCount","it","percentOk","scrollStyle","itemsContent","_","i","body"],"mappings":";;;;AAIA,MAAMA,IAAc;AAAA,EAClB,aAAa;AAAA,IACX,OAA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
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
paginated?: boolean;
|
|
25
|
-
selectable?: boolean;
|
|
26
|
-
pageSize?: number;
|
|
27
|
-
actions?: React.ReactNode;
|
|
28
|
-
rowActions?: (row: Record<string, unknown>) => React.ReactNode;
|
|
29
|
-
onRowSelect?: (row: Record<string, unknown>) => void;
|
|
30
|
-
onSort?: (sort: SortState) => void;
|
|
31
|
-
onSearch?: (query: string) => void;
|
|
32
|
-
loading?: boolean;
|
|
33
|
-
error?: string | Error;
|
|
34
|
-
emptyMessage?: string;
|
|
35
|
-
simulateInitialLoad?: boolean;
|
|
36
|
-
minInitialDelayMs?: number;
|
|
37
|
-
maxInitialDelayMs?: number;
|
|
38
|
-
}
|
|
39
|
-
export default function TableCard({ data, columns, title, subtitle, searchable, sortable, paginated, selectable, pageSize, actions, rowActions, onRowSelect, onSort, onSearch, loading, error, emptyMessage, simulateInitialLoad, minInitialDelayMs, maxInitialDelayMs, ...cardProps }: TableCardProps): import("react/jsx-runtime").JSX.Element;
|
|
40
|
-
export {};
|
|
1
|
+
export default function TableCard({ data, columns, title, subtitle, searchable, sortable, paginated, selectable, pageSize, actions, rowActions, onRowSelect, onSort, onSearch, loading, error, emptyMessage, simulateInitialLoad, minInitialDelayMs, maxInitialDelayMs, ...cardProps }: {
|
|
2
|
+
[x: string]: any;
|
|
3
|
+
data?: never[] | undefined;
|
|
4
|
+
columns?: never[] | undefined;
|
|
5
|
+
title: any;
|
|
6
|
+
subtitle: any;
|
|
7
|
+
searchable?: boolean | undefined;
|
|
8
|
+
sortable?: boolean | undefined;
|
|
9
|
+
paginated?: boolean | undefined;
|
|
10
|
+
selectable?: boolean | undefined;
|
|
11
|
+
pageSize?: number | undefined;
|
|
12
|
+
actions: any;
|
|
13
|
+
rowActions: any;
|
|
14
|
+
onRowSelect: any;
|
|
15
|
+
onSort: any;
|
|
16
|
+
onSearch: any;
|
|
17
|
+
loading?: boolean | undefined;
|
|
18
|
+
error: any;
|
|
19
|
+
emptyMessage?: string | undefined;
|
|
20
|
+
simulateInitialLoad?: boolean | undefined;
|
|
21
|
+
minInitialDelayMs?: number | undefined;
|
|
22
|
+
maxInitialDelayMs?: number | undefined;
|
|
23
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as t, jsxs as d } from "react/jsx-runtime";
|
|
2
2
|
import i from "react";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import K from "../ui/
|
|
3
|
+
import I from "./BaseCard.js";
|
|
4
|
+
import te from "../ui/Input.js";
|
|
5
|
+
import K from "../ui/Button.js";
|
|
6
6
|
import Q from "../ui/Text.js";
|
|
7
|
-
function
|
|
7
|
+
function re(o, s) {
|
|
8
8
|
if (s == null) return "";
|
|
9
9
|
if (!o) return String(s);
|
|
10
10
|
if (o === "currency") {
|
|
@@ -21,13 +21,13 @@ function se(o, s) {
|
|
|
21
21
|
}
|
|
22
22
|
return String(s);
|
|
23
23
|
}
|
|
24
|
-
function
|
|
24
|
+
function se(o, s) {
|
|
25
25
|
return o.map((r, u) => ({ item: r, idx: u })).sort((r, u) => {
|
|
26
26
|
const b = s(r.item, u.item);
|
|
27
27
|
return b !== 0 ? b : r.idx - u.idx;
|
|
28
28
|
}).map((r) => r.item);
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function ce({
|
|
31
31
|
data: o = [],
|
|
32
32
|
columns: s = [],
|
|
33
33
|
title: r,
|
|
@@ -38,60 +38,60 @@ function me({
|
|
|
38
38
|
selectable: M = !1,
|
|
39
39
|
pageSize: f = 10,
|
|
40
40
|
actions: F,
|
|
41
|
-
rowActions:
|
|
41
|
+
rowActions: h,
|
|
42
42
|
onRowSelect: R,
|
|
43
|
-
onSort:
|
|
44
|
-
onSearch:
|
|
45
|
-
loading:
|
|
43
|
+
onSort: _,
|
|
44
|
+
onSearch: G,
|
|
45
|
+
loading: H = !1,
|
|
46
46
|
error: P,
|
|
47
|
-
emptyMessage:
|
|
47
|
+
emptyMessage: J = "No results.",
|
|
48
48
|
simulateInitialLoad: B = !1,
|
|
49
49
|
minInitialDelayMs: L = 350,
|
|
50
50
|
maxInitialDelayMs: U = 900,
|
|
51
51
|
...$
|
|
52
52
|
}) {
|
|
53
|
-
const [
|
|
53
|
+
const [N, O] = i.useState(""), [x, V] = i.useState(null), [k, W] = i.useState("asc"), [T, y] = i.useState(1), [X, Y] = i.useState(null), [Z, z] = i.useState(B);
|
|
54
54
|
i.useEffect(() => {
|
|
55
55
|
if (!B) return;
|
|
56
|
-
const e = Math.floor(Math.random() * (U - L + 1)) + L, a = setTimeout(() =>
|
|
56
|
+
const e = Math.floor(Math.random() * (U - L + 1)) + L, a = setTimeout(() => z(!1), e);
|
|
57
57
|
return () => clearTimeout(a);
|
|
58
58
|
}, [B, L, U]);
|
|
59
|
-
const
|
|
60
|
-
if (!b || !
|
|
61
|
-
const e =
|
|
59
|
+
const q = H || Z, v = i.useMemo(() => {
|
|
60
|
+
if (!b || !N.trim()) return o;
|
|
61
|
+
const e = N.trim().toLowerCase();
|
|
62
62
|
return o.filter(
|
|
63
63
|
(a) => s.some((n) => {
|
|
64
|
-
const
|
|
65
|
-
return
|
|
64
|
+
const p = a?.[n.key];
|
|
65
|
+
return p == null ? !1 : String(p).toLowerCase().includes(e);
|
|
66
66
|
})
|
|
67
67
|
);
|
|
68
|
-
}, [o, s,
|
|
68
|
+
}, [o, s, N, b]), S = i.useMemo(() => {
|
|
69
69
|
if (!j || !x || !s.find((n) => n.key === x)) return v;
|
|
70
|
-
const a =
|
|
71
|
-
return
|
|
72
|
-
const
|
|
73
|
-
return
|
|
70
|
+
const a = k === "desc" ? -1 : 1;
|
|
71
|
+
return se(v, (n, p) => {
|
|
72
|
+
const l = n?.[x], m = p?.[x];
|
|
73
|
+
return l == null && m == null ? 0 : l == null ? -1 * a : m == null ? 1 * a : typeof l == "number" && typeof m == "number" ? (l - m) * a : String(l).localeCompare(String(m)) * a;
|
|
74
74
|
});
|
|
75
|
-
}, [v, j, x,
|
|
75
|
+
}, [v, j, x, k, s]), w = S.length, C = g ? Math.max(1, Math.ceil(w / f)) : 1, c = Math.min(T, C), D = i.useMemo(() => {
|
|
76
76
|
if (!g) return S;
|
|
77
77
|
const e = (c - 1) * f;
|
|
78
78
|
return S.slice(e, e + f);
|
|
79
79
|
}, [S, g, c, f]);
|
|
80
80
|
i.useEffect(() => {
|
|
81
|
-
T !== c &&
|
|
81
|
+
T !== c && y(c);
|
|
82
82
|
}, [T, c]);
|
|
83
|
-
const
|
|
83
|
+
const E = /* @__PURE__ */ d("div", { className: "flex flex-col gap-3 sm:flex-row sm:items-end sm:justify-between", children: [
|
|
84
84
|
/* @__PURE__ */ d("div", { className: "min-w-0", children: [
|
|
85
85
|
r ? /* @__PURE__ */ t(Q, { as: "div", size: "sm", weight: "medium", children: r }) : null,
|
|
86
86
|
u ? /* @__PURE__ */ t(Q, { as: "div", size: "xs", muted: !0, className: "mt-1", children: u }) : null
|
|
87
87
|
] }),
|
|
88
88
|
/* @__PURE__ */ d("div", { className: "flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-end", children: [
|
|
89
89
|
b ? /* @__PURE__ */ t("div", { className: "w-full sm:w-64", children: /* @__PURE__ */ t(
|
|
90
|
-
|
|
90
|
+
te,
|
|
91
91
|
{
|
|
92
|
-
value:
|
|
92
|
+
value: N,
|
|
93
93
|
onChange: (e) => {
|
|
94
|
-
|
|
94
|
+
O(e.target.value), y(1), G?.(e.target.value);
|
|
95
95
|
},
|
|
96
96
|
placeholder: "Search…",
|
|
97
97
|
"aria-label": "Search table"
|
|
@@ -102,19 +102,19 @@ function me({
|
|
|
102
102
|
] });
|
|
103
103
|
if (P)
|
|
104
104
|
return /* @__PURE__ */ t(
|
|
105
|
-
|
|
105
|
+
I,
|
|
106
106
|
{
|
|
107
|
-
header:
|
|
107
|
+
header: E,
|
|
108
108
|
body: /* @__PURE__ */ t("div", { className: "mt-4 rounded-xl border border-rose-200 bg-rose-50 p-4 text-sm text-rose-900 dark:border-rose-900/40 dark:bg-rose-950/30 dark:text-rose-100", children: String(P) }),
|
|
109
109
|
...$
|
|
110
110
|
}
|
|
111
111
|
);
|
|
112
|
-
const
|
|
112
|
+
const A = (e) => j && (e.sortable ?? !0);
|
|
113
113
|
return /* @__PURE__ */ t(
|
|
114
|
-
|
|
114
|
+
I,
|
|
115
115
|
{
|
|
116
116
|
variant: "table",
|
|
117
|
-
header:
|
|
117
|
+
header: E,
|
|
118
118
|
body: /* @__PURE__ */ d("div", { className: "mt-4 overflow-hidden rounded-xl border border-slate-200 dark:border-slate-800", children: [
|
|
119
119
|
/* @__PURE__ */ t("div", { className: "w-full overflow-x-auto", children: /* @__PURE__ */ d("table", { className: "min-w-full border-separate border-spacing-0", children: [
|
|
120
120
|
/* @__PURE__ */ t("thead", { className: "bg-slate-50 dark:bg-slate-950/30", children: /* @__PURE__ */ d("tr", { children: [
|
|
@@ -128,18 +128,18 @@ function me({
|
|
|
128
128
|
"whitespace-nowrap border-b border-slate-200 px-4 py-3 text-left text-xs font-semibold text-slate-600 dark:border-slate-800 dark:text-slate-300",
|
|
129
129
|
e.className ?? ""
|
|
130
130
|
].filter(Boolean).join(" "),
|
|
131
|
-
children:
|
|
131
|
+
children: A(e) ? /* @__PURE__ */ d(
|
|
132
132
|
"button",
|
|
133
133
|
{
|
|
134
134
|
type: "button",
|
|
135
135
|
className: "inline-flex items-center gap-2 hover:text-slate-900 dark:hover:text-slate-50",
|
|
136
136
|
onClick: () => {
|
|
137
|
-
const n = a &&
|
|
138
|
-
|
|
137
|
+
const n = a && k === "asc" ? "desc" : "asc";
|
|
138
|
+
V(e.key), W(n), _?.({ key: e.key, direction: n });
|
|
139
139
|
},
|
|
140
140
|
children: [
|
|
141
141
|
/* @__PURE__ */ t("span", { children: e.label }),
|
|
142
|
-
/* @__PURE__ */ t("span", { className: "text-[10px] opacity-70", children: a ?
|
|
142
|
+
/* @__PURE__ */ t("span", { className: "text-[10px] opacity-70", children: a ? k === "asc" ? "▲" : "▼" : "↕" })
|
|
143
143
|
]
|
|
144
144
|
}
|
|
145
145
|
) : e.label
|
|
@@ -147,9 +147,9 @@ function me({
|
|
|
147
147
|
e.key
|
|
148
148
|
);
|
|
149
149
|
}),
|
|
150
|
-
|
|
150
|
+
h ? /* @__PURE__ */ t("th", { className: "border-b border-slate-200 px-4 py-3 text-right text-xs font-semibold text-slate-600 dark:border-slate-800 dark:text-slate-300", children: "Actions" }) : null
|
|
151
151
|
] }) }),
|
|
152
|
-
/* @__PURE__ */ t("tbody", { className: "bg-white dark:bg-slate-900", children:
|
|
152
|
+
/* @__PURE__ */ t("tbody", { className: "bg-white dark:bg-slate-900", children: q ? Array.from({ length: Math.min(f, 6) }).map((e, a) => /* @__PURE__ */ d("tr", { children: [
|
|
153
153
|
s.map((n) => /* @__PURE__ */ t(
|
|
154
154
|
"td",
|
|
155
155
|
{
|
|
@@ -158,30 +158,30 @@ function me({
|
|
|
158
158
|
},
|
|
159
159
|
n.key
|
|
160
160
|
)),
|
|
161
|
-
|
|
162
|
-
] }, a)) :
|
|
161
|
+
h ? /* @__PURE__ */ t("td", { className: "border-b border-slate-200 px-4 py-3 dark:border-slate-800", children: /* @__PURE__ */ t("div", { className: "h-4 w-10 animate-pulse rounded bg-slate-200 dark:bg-slate-800" }) }) : null
|
|
162
|
+
] }, a)) : D.length === 0 ? /* @__PURE__ */ t("tr", { children: /* @__PURE__ */ t(
|
|
163
163
|
"td",
|
|
164
164
|
{
|
|
165
|
-
colSpan: s.length + (
|
|
165
|
+
colSpan: s.length + (h ? 1 : 0),
|
|
166
166
|
className: "px-4 py-10 text-center text-sm text-slate-600 dark:text-slate-300",
|
|
167
|
-
children:
|
|
167
|
+
children: J
|
|
168
168
|
}
|
|
169
|
-
) }) :
|
|
170
|
-
const n = e?.id
|
|
169
|
+
) }) : D.map((e, a) => {
|
|
170
|
+
const n = e?.id ?? a;
|
|
171
171
|
return /* @__PURE__ */ d(
|
|
172
172
|
"tr",
|
|
173
173
|
{
|
|
174
174
|
className: [
|
|
175
175
|
"group",
|
|
176
176
|
M ? "cursor-pointer" : "",
|
|
177
|
-
M &&
|
|
177
|
+
M && X === n ? "bg-brand-50 dark:bg-brand-950/30" : ""
|
|
178
178
|
].filter(Boolean).join(" "),
|
|
179
179
|
onClick: () => {
|
|
180
|
-
M && (
|
|
180
|
+
M && (Y(n), R?.(e));
|
|
181
181
|
},
|
|
182
182
|
children: [
|
|
183
183
|
s.map((l) => {
|
|
184
|
-
const
|
|
184
|
+
const m = e?.[l.key], ee = l.render ? l.render(m, e) : re(l.type, m);
|
|
185
185
|
return /* @__PURE__ */ t(
|
|
186
186
|
"td",
|
|
187
187
|
{
|
|
@@ -190,19 +190,19 @@ function me({
|
|
|
190
190
|
l.mono ? "font-mono text-[13px]" : "",
|
|
191
191
|
l.className ?? ""
|
|
192
192
|
].filter(Boolean).join(" "),
|
|
193
|
-
children:
|
|
193
|
+
children: ee
|
|
194
194
|
},
|
|
195
195
|
l.key
|
|
196
196
|
);
|
|
197
197
|
}),
|
|
198
|
-
|
|
198
|
+
h ? /* @__PURE__ */ t("td", { className: "border-b border-slate-200 px-4 py-3 text-right text-sm dark:border-slate-800", children: /* @__PURE__ */ t("div", { className: "inline-flex items-center justify-end gap-2 opacity-100 sm:opacity-0 sm:group-hover:opacity-100", children: h(e) }) }) : null
|
|
199
199
|
]
|
|
200
200
|
},
|
|
201
|
-
|
|
201
|
+
n
|
|
202
202
|
);
|
|
203
203
|
}) })
|
|
204
204
|
] }) }),
|
|
205
|
-
g && !
|
|
205
|
+
g && !q ? /* @__PURE__ */ d("div", { className: "flex flex-col gap-2 border-t border-slate-200 bg-slate-50 px-4 py-3 dark:border-slate-800 dark:bg-slate-950/30 sm:flex-row sm:items-center sm:justify-between", children: [
|
|
206
206
|
/* @__PURE__ */ t("div", { className: "text-xs text-slate-600 dark:text-slate-300", children: w === 0 ? "0 results" : `Showing ${(c - 1) * f + 1}-${Math.min(c * f, w)} of ${w}` }),
|
|
207
207
|
/* @__PURE__ */ d("div", { className: "flex items-center gap-2", children: [
|
|
208
208
|
/* @__PURE__ */ t(
|
|
@@ -211,7 +211,7 @@ function me({
|
|
|
211
211
|
variant: "outline",
|
|
212
212
|
size: "sm",
|
|
213
213
|
disabled: c <= 1,
|
|
214
|
-
onClick: () =>
|
|
214
|
+
onClick: () => y((e) => Math.max(1, e - 1)),
|
|
215
215
|
children: "Prev"
|
|
216
216
|
}
|
|
217
217
|
),
|
|
@@ -227,7 +227,7 @@ function me({
|
|
|
227
227
|
variant: "outline",
|
|
228
228
|
size: "sm",
|
|
229
229
|
disabled: c >= C,
|
|
230
|
-
onClick: () =>
|
|
230
|
+
onClick: () => y((e) => Math.min(C, e + 1)),
|
|
231
231
|
children: "Next"
|
|
232
232
|
}
|
|
233
233
|
)
|
|
@@ -239,6 +239,6 @@ function me({
|
|
|
239
239
|
);
|
|
240
240
|
}
|
|
241
241
|
export {
|
|
242
|
-
|
|
242
|
+
ce as default
|
|
243
243
|
};
|
|
244
244
|
//# sourceMappingURL=TableCard.js.map
|