@leonardaustin/ui 0.24.0 → 0.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +183 -2
- package/dist/components/app-shell/AppShell.d.ts +3 -4
- package/dist/components/app-shell/AppShell.js +82 -0
- package/dist/components/app-shell/AuthLayout.d.ts +3 -4
- package/dist/components/app-shell/AuthLayout.js +16 -0
- package/dist/components/app-shell/BackLink.d.ts +3 -4
- package/dist/components/app-shell/BackLink.js +19 -0
- package/dist/components/app-shell/BottomNav.d.ts +3 -3
- package/dist/components/app-shell/BottomNav.js +37 -0
- package/dist/components/app-shell/Breadcrumbs.d.ts +3 -3
- package/dist/components/app-shell/Breadcrumbs.js +46 -0
- package/dist/components/app-shell/CommandPalette.d.ts +3 -3
- package/dist/components/app-shell/CommandPalette.js +119 -0
- package/dist/components/app-shell/MobileDrawer.d.ts +3 -4
- package/dist/components/app-shell/MobileDrawer.js +128 -0
- package/dist/components/app-shell/Sidebar.d.ts +3 -4
- package/dist/components/app-shell/Sidebar.js +355 -0
- package/dist/components/app-shell/ThemeMenu.d.ts +3 -3
- package/dist/components/app-shell/ThemeMenu.js +273 -0
- package/dist/components/app-shell/TopBar.d.ts +3 -4
- package/dist/components/app-shell/TopBar.js +129 -0
- package/dist/components/app-shell/commandPaletteEvents.d.ts +0 -1
- package/dist/components/app-shell/commandPaletteEvents.js +16 -0
- package/dist/components/app-shell/navigation.d.ts +0 -1
- package/dist/components/app-shell/navigation.js +21 -0
- package/dist/components/app-shell/themeMenuEvents.d.ts +0 -1
- package/dist/components/app-shell/themeMenuEvents.js +7 -0
- package/dist/components/app-shell/types.d.ts +0 -1
- package/dist/components/charts/AreaChart.d.ts +4 -4
- package/dist/components/charts/AreaChart.js +217 -0
- package/dist/components/charts/BarChart.d.ts +4 -4
- package/dist/components/charts/BarChart.js +91 -0
- package/dist/components/charts/DonutChart.d.ts +4 -4
- package/dist/components/charts/DonutChart.js +172 -0
- package/dist/components/charts/RadarChart.d.ts +4 -4
- package/dist/components/charts/RadarChart.js +142 -0
- package/dist/components/charts/RadialBarChart.d.ts +4 -4
- package/dist/components/charts/RadialBarChart.js +219 -0
- package/dist/components/charts/SparkLine.d.ts +4 -4
- package/dist/components/charts/SparkLine.js +39 -0
- package/dist/components/charts/StackedBarChart.d.ts +4 -4
- package/dist/components/charts/StackedBarChart.js +249 -0
- package/dist/components/charts/VerticalBarChart.d.ts +4 -4
- package/dist/components/charts/VerticalBarChart.js +143 -0
- package/dist/components/charts/chartUtils.d.ts +0 -1
- package/dist/components/charts/chartUtils.js +68 -0
- package/dist/components/tables/ColumnPicker.d.ts +3 -4
- package/dist/components/tables/ColumnPicker.js +59 -0
- package/dist/components/tables/Pagination.d.ts +3 -5
- package/dist/components/tables/Pagination.js +56 -0
- package/dist/components/tables/ResourceTable.d.ts +3 -4
- package/dist/components/tables/ResourceTable.js +88 -0
- package/dist/components/tables/Table.d.ts +0 -1
- package/dist/components/tables/Table.js +95 -0
- package/dist/components/tables/sortRows.d.ts +0 -1
- package/dist/components/tables/sortRows.js +11 -0
- package/dist/components/ui/Accordion.d.ts +9 -2
- package/dist/components/ui/Accordion.js +35 -0
- package/dist/components/ui/Alert.d.ts +8 -6
- package/dist/components/ui/Alert.js +51 -0
- package/dist/components/ui/AttachmentList.d.ts +5 -6
- package/dist/components/ui/AttachmentList.js +90 -0
- package/dist/components/ui/AudioPlayer.d.ts +7 -4
- package/dist/components/ui/AudioPlayer.js +447 -0
- package/dist/components/ui/AuthCard.d.ts +3 -4
- package/dist/components/ui/AuthCard.js +39 -0
- package/dist/components/ui/AuthorByline.d.ts +5 -6
- package/dist/components/ui/AuthorByline.js +23 -0
- package/dist/components/ui/Avatar.d.ts +5 -4
- package/dist/components/ui/Avatar.js +36 -0
- package/dist/components/ui/Badge.d.ts +3 -3
- package/dist/components/ui/Badge.js +47 -0
- package/dist/components/ui/Button.d.ts +9 -9
- package/dist/components/ui/Button.js +83 -0
- package/dist/components/ui/Calendar.d.ts +3 -4
- package/dist/components/ui/Calendar.js +344 -0
- package/dist/components/ui/CalendarGrid.d.ts +3 -4
- package/dist/components/ui/CalendarGrid.js +136 -0
- package/dist/components/ui/Card.d.ts +6 -6
- package/dist/components/ui/Card.js +53 -0
- package/dist/components/ui/CharacterCount.d.ts +3 -4
- package/dist/components/ui/CharacterCount.js +27 -0
- package/dist/components/ui/Checkbox.d.ts +10 -9
- package/dist/components/ui/Checkbox.js +52 -0
- package/dist/components/ui/CodeInput.d.ts +7 -5
- package/dist/components/ui/CodeInput.js +96 -0
- package/dist/components/ui/Combobox.d.ts +8 -7
- package/dist/components/ui/Combobox.js +213 -0
- package/dist/components/ui/CopyButton.d.ts +6 -2
- package/dist/components/ui/CopyButton.js +57 -0
- package/dist/components/ui/DangerZone.d.ts +3 -5
- package/dist/components/ui/DangerZone.js +23 -0
- package/dist/components/ui/DatePartsInput.d.ts +6 -5
- package/dist/components/ui/DatePartsInput.js +138 -0
- package/dist/components/ui/DatePicker.d.ts +9 -5
- package/dist/components/ui/DatePicker.js +84 -0
- package/dist/components/ui/DateRangePicker.d.ts +7 -6
- package/dist/components/ui/DateRangePicker.js +143 -0
- package/dist/components/ui/DateTimePicker.d.ts +7 -5
- package/dist/components/ui/DateTimePicker.js +267 -0
- package/dist/components/ui/DetailPanel.d.ts +3 -4
- package/dist/components/ui/DetailPanel.js +183 -0
- package/dist/components/ui/Dialog.d.ts +3 -4
- package/dist/components/ui/Dialog.js +411 -0
- package/dist/components/ui/DialogActions.d.ts +3 -4
- package/dist/components/ui/DialogActions.js +35 -0
- package/dist/components/ui/Disclosure.d.ts +7 -4
- package/dist/components/ui/Disclosure.js +45 -0
- package/dist/components/ui/DividerLabel.d.ts +3 -4
- package/dist/components/ui/DividerLabel.js +20 -0
- package/dist/components/ui/DropdownMenu.d.ts +4 -5
- package/dist/components/ui/DropdownMenu.js +229 -0
- package/dist/components/ui/EmptyState.d.ts +3 -5
- package/dist/components/ui/EmptyState.js +31 -0
- package/dist/components/ui/ErrorBoundary.d.ts +3 -3
- package/dist/components/ui/ErrorBoundary.js +46 -0
- package/dist/components/ui/FieldContext.d.ts +0 -1
- package/dist/components/ui/FieldContext.js +8 -0
- package/dist/components/ui/Fieldset.d.ts +2 -3
- package/dist/components/ui/Fieldset.js +39 -0
- package/dist/components/ui/FilterButton.d.ts +4 -9
- package/dist/components/ui/FilterButton.js +17 -0
- package/dist/components/ui/FilterDropdown.d.ts +4 -6
- package/dist/components/ui/FilterDropdown.js +18 -0
- package/dist/components/ui/FormField.d.ts +4 -5
- package/dist/components/ui/FormField.js +68 -0
- package/dist/components/ui/Grid.d.ts +1 -2
- package/dist/components/ui/Grid.js +19 -0
- package/dist/components/ui/GridItem.d.ts +1 -2
- package/dist/components/ui/GridItem.js +16 -0
- package/dist/components/ui/Inline.d.ts +1 -2
- package/dist/components/ui/Inline.js +24 -0
- package/dist/components/ui/Kbd.d.ts +3 -4
- package/dist/components/ui/Kbd.js +13 -0
- package/dist/components/ui/ListItemLink.d.ts +3 -4
- package/dist/components/ui/ListItemLink.js +44 -0
- package/dist/components/ui/LoadingSpinner.d.ts +5 -5
- package/dist/components/ui/LoadingSpinner.js +19 -0
- package/dist/components/ui/MessageBubble.d.ts +5 -3
- package/dist/components/ui/MessageBubble.js +41 -0
- package/dist/components/ui/MetadataGrid.d.ts +5 -4
- package/dist/components/ui/MetadataGrid.js +76 -0
- package/dist/components/ui/MetricCard.d.ts +3 -4
- package/dist/components/ui/MetricCard.js +51 -0
- package/dist/components/ui/NavTabs.d.ts +2 -3
- package/dist/components/ui/NavTabs.js +29 -0
- package/dist/components/ui/OAuthButton.d.ts +2 -3
- package/dist/components/ui/OAuthButton.js +55 -0
- package/dist/components/ui/OverlineLabel.d.ts +3 -4
- package/dist/components/ui/OverlineLabel.js +13 -0
- package/dist/components/ui/PageHeader.d.ts +3 -4
- package/dist/components/ui/PageHeader.js +33 -0
- package/dist/components/ui/PageSection.d.ts +3 -4
- package/dist/components/ui/PageSection.js +31 -0
- package/dist/components/ui/PaginationBar.d.ts +3 -4
- package/dist/components/ui/PaginationBar.js +62 -0
- package/dist/components/ui/PasswordInput.d.ts +3 -5
- package/dist/components/ui/PasswordInput.js +62 -0
- package/dist/components/ui/PasswordRequirements.d.ts +3 -3
- package/dist/components/ui/PasswordRequirements.js +34 -0
- package/dist/components/ui/Popover.d.ts +5 -4
- package/dist/components/ui/Popover.js +53 -0
- package/dist/components/ui/ProfileHeader.d.ts +3 -4
- package/dist/components/ui/ProfileHeader.js +54 -0
- package/dist/components/ui/ProgressBar.d.ts +3 -4
- package/dist/components/ui/ProgressBar.js +42 -0
- package/dist/components/ui/ProseContent.d.ts +3 -4
- package/dist/components/ui/ProseContent.js +13 -0
- package/dist/components/ui/QrCode.d.ts +3 -4
- package/dist/components/ui/QrCode.js +47 -0
- package/dist/components/ui/Radio.d.ts +9 -7
- package/dist/components/ui/Radio.js +58 -0
- package/dist/components/ui/RadioPill.d.ts +10 -8
- package/dist/components/ui/RadioPill.js +53 -0
- package/dist/components/ui/ReorderList.d.ts +3 -4
- package/dist/components/ui/ReorderList.js +123 -0
- package/dist/components/ui/SearchInput.d.ts +7 -6
- package/dist/components/ui/SearchInput.js +49 -0
- package/dist/components/ui/SectionHeader.d.ts +3 -5
- package/dist/components/ui/SectionHeader.js +13 -0
- package/dist/components/ui/Select.d.ts +4 -6
- package/dist/components/ui/Select.js +117 -0
- package/dist/components/ui/SelectDropdown.d.ts +10 -6
- package/dist/components/ui/SelectDropdown.js +206 -0
- package/dist/components/ui/SettingRow.d.ts +5 -7
- package/dist/components/ui/SettingRow.js +25 -0
- package/dist/components/ui/SideSheet.d.ts +3 -4
- package/dist/components/ui/SideSheet.js +164 -0
- package/dist/components/ui/Skeleton.d.ts +3 -4
- package/dist/components/ui/Skeleton.js +18 -0
- package/dist/components/ui/Slider.d.ts +11 -7
- package/dist/components/ui/Slider.js +58 -0
- package/dist/components/ui/SplitPaneLayout.d.ts +6 -6
- package/dist/components/ui/SplitPaneLayout.js +22 -0
- package/dist/components/ui/Stack.d.ts +1 -2
- package/dist/components/ui/Stack.js +18 -0
- package/dist/components/ui/StatusDot.d.ts +3 -3
- package/dist/components/ui/StatusDot.js +24 -0
- package/dist/components/ui/StepProgress.d.ts +3 -3
- package/dist/components/ui/StepProgress.js +33 -0
- package/dist/components/ui/Tabs.d.ts +5 -6
- package/dist/components/ui/Tabs.js +63 -0
- package/dist/components/ui/TextInput.d.ts +3 -5
- package/dist/components/ui/TextInput.js +57 -0
- package/dist/components/ui/Textarea.d.ts +3 -5
- package/dist/components/ui/Textarea.js +59 -0
- package/dist/components/ui/ThemePreview.d.ts +3 -4
- package/dist/components/ui/ThemePreview.js +28 -0
- package/dist/components/ui/TimeInput.d.ts +7 -7
- package/dist/components/ui/TimeInput.js +22 -0
- package/dist/components/ui/Timeline.d.ts +3 -3
- package/dist/components/ui/Timeline.js +29 -0
- package/dist/components/ui/Toast.d.ts +0 -1
- package/dist/components/ui/Toast.js +121 -0
- package/dist/components/ui/Toggle.d.ts +10 -5
- package/dist/components/ui/Toggle.js +34 -0
- package/dist/components/ui/Toolbar.d.ts +3 -4
- package/dist/components/ui/Toolbar.js +70 -0
- package/dist/components/ui/Tooltip.d.ts +0 -1
- package/dist/components/ui/Tooltip.js +91 -0
- package/dist/components/ui/TranscriptLine.d.ts +5 -4
- package/dist/components/ui/TranscriptLine.js +40 -0
- package/dist/components/ui/UploadDropzone.d.ts +3 -6
- package/dist/components/ui/UploadDropzone.js +55 -0
- package/dist/components/ui/badgeColors.d.ts +0 -1
- package/dist/components/ui/badgeColors.js +5 -0
- package/dist/components/ui/calendar/AgendaView.d.ts +0 -1
- package/dist/components/ui/calendar/AgendaView.js +140 -0
- package/dist/components/ui/calendar/MonthView.d.ts +0 -1
- package/dist/components/ui/calendar/MonthView.js +321 -0
- package/dist/components/ui/calendar/TimeGrid.d.ts +0 -1
- package/dist/components/ui/calendar/TimeGrid.js +501 -0
- package/dist/components/ui/calendar/TimelineView.d.ts +0 -1
- package/dist/components/ui/calendar/TimelineView.js +311 -0
- package/dist/components/ui/calendar/context.d.ts +0 -1
- package/dist/components/ui/calendar/context.js +10 -0
- package/dist/components/ui/calendar/items.d.ts +0 -1
- package/dist/components/ui/calendar/items.js +152 -0
- package/dist/components/ui/calendar/types.d.ts +0 -1
- package/dist/components/ui/calendar/types.js +38 -0
- package/dist/components/ui/calendar/useGridInteraction.d.ts +0 -1
- package/dist/components/ui/calendar/useGridInteraction.js +393 -0
- package/dist/components/ui/useFieldControl.d.ts +1 -2
- package/dist/components/ui/useFieldControl.js +17 -0
- package/dist/config/theme.d.ts +0 -1
- package/dist/config/theme.js +219 -0
- package/dist/core.css +2933 -0
- package/dist/hooks/useAnchoredPopup.d.ts +0 -1
- package/dist/hooks/useAnchoredPopup.js +162 -0
- package/dist/hooks/useApplyTheme.d.ts +0 -1
- package/dist/hooks/useApplyTheme.js +16 -0
- package/dist/hooks/useControllableState.d.ts +14 -0
- package/dist/hooks/useControllableState.js +10 -0
- package/dist/hooks/useDismiss.d.ts +0 -1
- package/dist/hooks/useDismiss.js +24 -0
- package/dist/hooks/useFocusTrap.d.ts +0 -1
- package/dist/hooks/useFocusTrap.js +42 -0
- package/dist/hooks/useOverlayStack.d.ts +0 -1
- package/dist/hooks/useOverlayStack.js +23 -0
- package/dist/hooks/usePopover.d.ts +0 -1
- package/dist/hooks/usePopover.js +47 -0
- package/dist/hooks/usePortalContainer.d.ts +0 -1
- package/dist/hooks/usePortalContainer.js +14 -0
- package/dist/hooks/useSettings.d.ts +0 -1
- package/dist/hooks/useSettings.js +8 -0
- package/dist/hooks/useTheme.d.ts +0 -1
- package/dist/hooks/useTheme.js +8 -0
- package/dist/hooks/useTypeahead.d.ts +0 -1
- package/dist/hooks/useTypeahead.js +19 -0
- package/dist/index.d.ts +0 -1
- package/dist/index.js +133 -12866
- package/dist/lib/anchorPlacement.d.ts +0 -1
- package/dist/lib/anchorPlacement.js +75 -0
- package/dist/lib/calendar.d.ts +0 -1
- package/dist/lib/calendar.js +666 -0
- package/dist/lib/cn.d.ts +0 -1
- package/dist/lib/cn.js +228 -0
- package/dist/lib/codeInput.d.ts +0 -1
- package/dist/lib/codeInput.js +51 -0
- package/dist/lib/dateParts.d.ts +0 -1
- package/dist/lib/dateParts.js +31 -0
- package/dist/lib/dialogDrag.d.ts +0 -1
- package/dist/lib/dialogDrag.js +45 -0
- package/dist/lib/dialogResize.d.ts +0 -1
- package/dist/lib/dialogResize.js +47 -0
- package/dist/lib/formatDate.d.ts +0 -1
- package/dist/lib/formatDate.js +29 -0
- package/dist/lib/formatMediaTime.d.ts +0 -1
- package/dist/lib/formatMediaTime.js +7 -0
- package/dist/lib/keyboardStep.d.ts +0 -1
- package/dist/lib/layout.d.ts +0 -1
- package/dist/lib/layout.js +29 -0
- package/dist/lib/math.d.ts +0 -1
- package/dist/lib/math.js +6 -0
- package/dist/lib/mergeRefs.d.ts +6 -0
- package/dist/lib/mergeRefs.js +17 -0
- package/dist/lib/months.d.ts +0 -1
- package/dist/lib/months.js +30 -0
- package/dist/lib/overlayStack.d.ts +0 -1
- package/dist/lib/overlayStack.js +47 -0
- package/dist/lib/panelResize.d.ts +0 -1
- package/dist/lib/panelResize.js +8 -0
- package/dist/lib/passwordRequirements.d.ts +0 -1
- package/dist/lib/passwordRequirements.js +23 -0
- package/dist/lib/qrCode.d.ts +0 -1
- package/dist/lib/qrCode.js +570 -0
- package/dist/lib/rect.d.ts +0 -1
- package/dist/lib/tones.d.ts +0 -1
- package/dist/lib/tones.js +104 -0
- package/dist/lib/typeahead.d.ts +0 -1
- package/dist/lib/typeahead.js +31 -0
- package/dist/providers/ControlSizeContext.d.ts +0 -1
- package/dist/providers/ControlSizeContext.js +9 -0
- package/dist/providers/ControlSizeProvider.d.ts +0 -1
- package/dist/providers/ControlSizeProvider.js +11 -0
- package/dist/providers/SettingsContext.d.ts +0 -1
- package/dist/providers/SettingsContext.js +53 -0
- package/dist/providers/SettingsProvider.d.ts +0 -1
- package/dist/providers/SettingsProvider.js +249 -0
- package/dist/providers/ThemeContext.d.ts +0 -1
- package/dist/providers/ThemeContext.js +5 -0
- package/dist/providers/ThemeProvider.d.ts +0 -1
- package/dist/providers/ThemeProvider.js +17 -0
- package/dist/providers/accentColors.d.ts +0 -1
- package/dist/providers/accentColors.js +75 -0
- package/dist/providers/themeClasses.d.ts +1 -1
- package/dist/providers/themeClasses.js +20 -0
- package/dist/styles.css +263 -176
- package/dist/themes/cyber-brutal-dark.css +53 -0
- package/dist/themes/cyber-brutal-light.css +75 -0
- package/dist/themes/glass-dark.css +217 -0
- package/dist/themes/glass-light.css +215 -0
- package/dist/themes/hashi.css +66 -0
- package/dist/themes/light-inverted.css +32 -0
- package/dist/themes/light.css +1 -0
- package/dist/themes/monokai.css +51 -0
- package/dist/themes/solarized.css +55 -0
- package/package.json +3 -1
- package/dist/components/app-shell/AppShell.d.ts.map +0 -1
- package/dist/components/app-shell/AuthLayout.d.ts.map +0 -1
- package/dist/components/app-shell/BackLink.d.ts.map +0 -1
- package/dist/components/app-shell/BottomNav.d.ts.map +0 -1
- package/dist/components/app-shell/Breadcrumbs.d.ts.map +0 -1
- package/dist/components/app-shell/CommandPalette.d.ts.map +0 -1
- package/dist/components/app-shell/MobileDrawer.d.ts.map +0 -1
- package/dist/components/app-shell/Sidebar.d.ts.map +0 -1
- package/dist/components/app-shell/ThemeMenu.d.ts.map +0 -1
- package/dist/components/app-shell/TopBar.d.ts.map +0 -1
- package/dist/components/app-shell/commandPaletteEvents.d.ts.map +0 -1
- package/dist/components/app-shell/navigation.d.ts.map +0 -1
- package/dist/components/app-shell/themeMenuEvents.d.ts.map +0 -1
- package/dist/components/app-shell/types.d.ts.map +0 -1
- package/dist/components/charts/AreaChart.d.ts.map +0 -1
- package/dist/components/charts/BarChart.d.ts.map +0 -1
- package/dist/components/charts/DonutChart.d.ts.map +0 -1
- package/dist/components/charts/RadarChart.d.ts.map +0 -1
- package/dist/components/charts/RadialBarChart.d.ts.map +0 -1
- package/dist/components/charts/SparkLine.d.ts.map +0 -1
- package/dist/components/charts/StackedBarChart.d.ts.map +0 -1
- package/dist/components/charts/VerticalBarChart.d.ts.map +0 -1
- package/dist/components/charts/chartUtils.d.ts.map +0 -1
- package/dist/components/tables/ColumnPicker.d.ts.map +0 -1
- package/dist/components/tables/Pagination.d.ts.map +0 -1
- package/dist/components/tables/ResourceTable.d.ts.map +0 -1
- package/dist/components/tables/Table.d.ts.map +0 -1
- package/dist/components/tables/sortRows.d.ts.map +0 -1
- package/dist/components/ui/Accordion.d.ts.map +0 -1
- package/dist/components/ui/Alert.d.ts.map +0 -1
- package/dist/components/ui/AttachmentList.d.ts.map +0 -1
- package/dist/components/ui/AudioPlayer.d.ts.map +0 -1
- package/dist/components/ui/AuthCard.d.ts.map +0 -1
- package/dist/components/ui/AuthorByline.d.ts.map +0 -1
- package/dist/components/ui/Avatar.d.ts.map +0 -1
- package/dist/components/ui/Badge.d.ts.map +0 -1
- package/dist/components/ui/Button.d.ts.map +0 -1
- package/dist/components/ui/Calendar.d.ts.map +0 -1
- package/dist/components/ui/CalendarGrid.d.ts.map +0 -1
- package/dist/components/ui/Card.d.ts.map +0 -1
- package/dist/components/ui/CharacterCount.d.ts.map +0 -1
- package/dist/components/ui/Checkbox.d.ts.map +0 -1
- package/dist/components/ui/CodeInput.d.ts.map +0 -1
- package/dist/components/ui/Combobox.d.ts.map +0 -1
- package/dist/components/ui/CopyButton.d.ts.map +0 -1
- package/dist/components/ui/DangerZone.d.ts.map +0 -1
- package/dist/components/ui/DatePartsInput.d.ts.map +0 -1
- package/dist/components/ui/DatePicker.d.ts.map +0 -1
- package/dist/components/ui/DateRangePicker.d.ts.map +0 -1
- package/dist/components/ui/DateTimePicker.d.ts.map +0 -1
- package/dist/components/ui/DetailPanel.d.ts.map +0 -1
- package/dist/components/ui/Dialog.d.ts.map +0 -1
- package/dist/components/ui/DialogActions.d.ts.map +0 -1
- package/dist/components/ui/Disclosure.d.ts.map +0 -1
- package/dist/components/ui/DividerLabel.d.ts.map +0 -1
- package/dist/components/ui/DropdownMenu.d.ts.map +0 -1
- package/dist/components/ui/EmptyState.d.ts.map +0 -1
- package/dist/components/ui/ErrorBoundary.d.ts.map +0 -1
- package/dist/components/ui/FieldContext.d.ts.map +0 -1
- package/dist/components/ui/Fieldset.d.ts.map +0 -1
- package/dist/components/ui/FilterButton.d.ts.map +0 -1
- package/dist/components/ui/FilterDropdown.d.ts.map +0 -1
- package/dist/components/ui/FormField.d.ts.map +0 -1
- package/dist/components/ui/Grid.d.ts.map +0 -1
- package/dist/components/ui/GridItem.d.ts.map +0 -1
- package/dist/components/ui/Inline.d.ts.map +0 -1
- package/dist/components/ui/Kbd.d.ts.map +0 -1
- package/dist/components/ui/ListItemLink.d.ts.map +0 -1
- package/dist/components/ui/LoadingSpinner.d.ts.map +0 -1
- package/dist/components/ui/MessageBubble.d.ts.map +0 -1
- package/dist/components/ui/MetadataGrid.d.ts.map +0 -1
- package/dist/components/ui/MetricCard.d.ts.map +0 -1
- package/dist/components/ui/NavTabs.d.ts.map +0 -1
- package/dist/components/ui/OAuthButton.d.ts.map +0 -1
- package/dist/components/ui/OverlineLabel.d.ts.map +0 -1
- package/dist/components/ui/PageHeader.d.ts.map +0 -1
- package/dist/components/ui/PageSection.d.ts.map +0 -1
- package/dist/components/ui/PaginationBar.d.ts.map +0 -1
- package/dist/components/ui/PasswordInput.d.ts.map +0 -1
- package/dist/components/ui/PasswordRequirements.d.ts.map +0 -1
- package/dist/components/ui/Popover.d.ts.map +0 -1
- package/dist/components/ui/ProfileHeader.d.ts.map +0 -1
- package/dist/components/ui/ProgressBar.d.ts.map +0 -1
- package/dist/components/ui/ProseContent.d.ts.map +0 -1
- package/dist/components/ui/QrCode.d.ts.map +0 -1
- package/dist/components/ui/Radio.d.ts.map +0 -1
- package/dist/components/ui/RadioPill.d.ts.map +0 -1
- package/dist/components/ui/ReorderList.d.ts.map +0 -1
- package/dist/components/ui/SearchInput.d.ts.map +0 -1
- package/dist/components/ui/SectionHeader.d.ts.map +0 -1
- package/dist/components/ui/Select.d.ts.map +0 -1
- package/dist/components/ui/SelectDropdown.d.ts.map +0 -1
- package/dist/components/ui/SettingRow.d.ts.map +0 -1
- package/dist/components/ui/SideSheet.d.ts.map +0 -1
- package/dist/components/ui/Skeleton.d.ts.map +0 -1
- package/dist/components/ui/Slider.d.ts.map +0 -1
- package/dist/components/ui/SplitPaneLayout.d.ts.map +0 -1
- package/dist/components/ui/Stack.d.ts.map +0 -1
- package/dist/components/ui/StatusDot.d.ts.map +0 -1
- package/dist/components/ui/StepProgress.d.ts.map +0 -1
- package/dist/components/ui/Tabs.d.ts.map +0 -1
- package/dist/components/ui/TextInput.d.ts.map +0 -1
- package/dist/components/ui/Textarea.d.ts.map +0 -1
- package/dist/components/ui/ThemePreview.d.ts.map +0 -1
- package/dist/components/ui/TimeInput.d.ts.map +0 -1
- package/dist/components/ui/Timeline.d.ts.map +0 -1
- package/dist/components/ui/Toast.d.ts.map +0 -1
- package/dist/components/ui/Toggle.d.ts.map +0 -1
- package/dist/components/ui/Toolbar.d.ts.map +0 -1
- package/dist/components/ui/Tooltip.d.ts.map +0 -1
- package/dist/components/ui/TranscriptLine.d.ts.map +0 -1
- package/dist/components/ui/UploadDropzone.d.ts.map +0 -1
- package/dist/components/ui/badgeColors.d.ts.map +0 -1
- package/dist/components/ui/calendar/AgendaView.d.ts.map +0 -1
- package/dist/components/ui/calendar/MonthView.d.ts.map +0 -1
- package/dist/components/ui/calendar/TimeGrid.d.ts.map +0 -1
- package/dist/components/ui/calendar/TimelineView.d.ts.map +0 -1
- package/dist/components/ui/calendar/context.d.ts.map +0 -1
- package/dist/components/ui/calendar/items.d.ts.map +0 -1
- package/dist/components/ui/calendar/types.d.ts.map +0 -1
- package/dist/components/ui/calendar/useGridInteraction.d.ts.map +0 -1
- package/dist/components/ui/useFieldControl.d.ts.map +0 -1
- package/dist/config/theme.d.ts.map +0 -1
- package/dist/hooks/useAnchoredPopup.d.ts.map +0 -1
- package/dist/hooks/useApplyTheme.d.ts.map +0 -1
- package/dist/hooks/useDismiss.d.ts.map +0 -1
- package/dist/hooks/useFocusTrap.d.ts.map +0 -1
- package/dist/hooks/useOverlayStack.d.ts.map +0 -1
- package/dist/hooks/usePopover.d.ts.map +0 -1
- package/dist/hooks/usePortalContainer.d.ts.map +0 -1
- package/dist/hooks/useSettings.d.ts.map +0 -1
- package/dist/hooks/useTheme.d.ts.map +0 -1
- package/dist/hooks/useTypeahead.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/lib/anchorPlacement.d.ts.map +0 -1
- package/dist/lib/calendar.d.ts.map +0 -1
- package/dist/lib/cn.d.ts.map +0 -1
- package/dist/lib/codeInput.d.ts.map +0 -1
- package/dist/lib/dateParts.d.ts.map +0 -1
- package/dist/lib/dialogDrag.d.ts.map +0 -1
- package/dist/lib/dialogResize.d.ts.map +0 -1
- package/dist/lib/formatDate.d.ts.map +0 -1
- package/dist/lib/formatMediaTime.d.ts.map +0 -1
- package/dist/lib/keyboardStep.d.ts.map +0 -1
- package/dist/lib/layout.d.ts.map +0 -1
- package/dist/lib/math.d.ts.map +0 -1
- package/dist/lib/months.d.ts.map +0 -1
- package/dist/lib/overlayStack.d.ts.map +0 -1
- package/dist/lib/panelResize.d.ts.map +0 -1
- package/dist/lib/passwordRequirements.d.ts.map +0 -1
- package/dist/lib/qrCode.d.ts.map +0 -1
- package/dist/lib/rect.d.ts.map +0 -1
- package/dist/lib/tones.d.ts.map +0 -1
- package/dist/lib/typeahead.d.ts.map +0 -1
- package/dist/providers/ControlSizeContext.d.ts.map +0 -1
- package/dist/providers/ControlSizeProvider.d.ts.map +0 -1
- package/dist/providers/SettingsContext.d.ts.map +0 -1
- package/dist/providers/SettingsProvider.d.ts.map +0 -1
- package/dist/providers/ThemeContext.d.ts.map +0 -1
- package/dist/providers/ThemeProvider.d.ts.map +0 -1
- package/dist/providers/accentColors.d.ts.map +0 -1
- package/dist/providers/themeClasses.d.ts.map +0 -1
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import { cn as e } from "../../lib/cn.js";
|
|
2
|
+
import { clamp as t } from "../../lib/math.js";
|
|
3
|
+
import { estimateTooltipWidth as n, formatCompactValue as r, getLabelIndices as i, getPositiveValue as a, getSvgTooltipPosition as o, resolveChartColor as s, truncateChartLabel as c } from "./chartUtils.js";
|
|
4
|
+
import { useState as l } from "react";
|
|
5
|
+
import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
6
|
+
//#region src/components/charts/VerticalBarChart.tsx
|
|
7
|
+
var p = [
|
|
8
|
+
1,
|
|
9
|
+
.85,
|
|
10
|
+
.7,
|
|
11
|
+
.55,
|
|
12
|
+
.45,
|
|
13
|
+
.35,
|
|
14
|
+
.25
|
|
15
|
+
], m = {
|
|
16
|
+
top: 20,
|
|
17
|
+
right: 8,
|
|
18
|
+
bottom: 24,
|
|
19
|
+
left: 40
|
|
20
|
+
}, h = 600;
|
|
21
|
+
function g({ data: g, height: _ = 180, maxValue: v, valueFormatter: y, tooltipValueFormatter: b, labelFormatter: x, maxLabelLength: S, xLabelCount: C = 7, barGap: w = 6, minBarWidth: T = 4, "aria-label": E = "Vertical bar chart", className: D, ref: O, ...k }) {
|
|
22
|
+
let [A, j] = l(null), M = Math.max(m.top + m.bottom + 1, _), N = h - m.left - m.right, P = Math.max(1, M - m.top - m.bottom), F = v === void 0 ? Math.max(...g.map((e) => a(e.value)), 1) : Math.max(a(v), 1), I = Math.max(0, w), L = Math.max(1, T), R = g.length > 1 ? Math.max(0, (N - g.length * L) / Math.max(g.length - 1, 1)) : 0, z = g.length > 1 ? Math.min(I, R) : 0, B = g.length > 0 ? Math.max(0, (N - z * Math.max(g.length - 1, 0)) / g.length) : 0, V = y ?? r, H = b ?? ((e) => e.toLocaleString()), U = new Set(i(g.length, C));
|
|
23
|
+
return /* @__PURE__ */ f("svg", {
|
|
24
|
+
ref: O,
|
|
25
|
+
...k,
|
|
26
|
+
width: "100%",
|
|
27
|
+
viewBox: `0 0 ${h} ${M}`,
|
|
28
|
+
className: e("select-none", D),
|
|
29
|
+
role: "img",
|
|
30
|
+
"aria-label": E,
|
|
31
|
+
children: [
|
|
32
|
+
/* @__PURE__ */ d("text", {
|
|
33
|
+
x: m.left - 6,
|
|
34
|
+
y: m.top + 4,
|
|
35
|
+
textAnchor: "end",
|
|
36
|
+
fill: "var(--text-tertiary)",
|
|
37
|
+
fontSize: 10,
|
|
38
|
+
children: V(F)
|
|
39
|
+
}),
|
|
40
|
+
/* @__PURE__ */ d("text", {
|
|
41
|
+
x: m.left - 6,
|
|
42
|
+
y: m.top + P,
|
|
43
|
+
textAnchor: "end",
|
|
44
|
+
dominantBaseline: "central",
|
|
45
|
+
fill: "var(--text-tertiary)",
|
|
46
|
+
fontSize: 10,
|
|
47
|
+
children: "0"
|
|
48
|
+
}),
|
|
49
|
+
/* @__PURE__ */ d("line", {
|
|
50
|
+
x1: m.left,
|
|
51
|
+
y1: m.top + P,
|
|
52
|
+
x2: m.left + N,
|
|
53
|
+
y2: m.top + P,
|
|
54
|
+
stroke: "var(--border)",
|
|
55
|
+
strokeWidth: 1
|
|
56
|
+
}),
|
|
57
|
+
/* @__PURE__ */ d("line", {
|
|
58
|
+
x1: m.left,
|
|
59
|
+
y1: m.top + P / 2,
|
|
60
|
+
x2: m.left + N,
|
|
61
|
+
y2: m.top + P / 2,
|
|
62
|
+
stroke: "var(--border)",
|
|
63
|
+
strokeWidth: 1,
|
|
64
|
+
strokeDasharray: "3 3",
|
|
65
|
+
opacity: .5
|
|
66
|
+
}),
|
|
67
|
+
g.map((e, r) => {
|
|
68
|
+
let i = m.left + r * (B + z), l = t(a(e.value), 0, F) / F * P, g = m.top + P - l, _ = A === r, v = x?.(e.label, e, r) ?? e.label, y = c(v, S), b = y !== v, C = H(e.value);
|
|
69
|
+
return /* @__PURE__ */ f("g", {
|
|
70
|
+
onMouseEnter: () => j(r),
|
|
71
|
+
onMouseLeave: () => j(null),
|
|
72
|
+
onPointerEnter: () => j(r),
|
|
73
|
+
onPointerDown: () => j(r),
|
|
74
|
+
onPointerLeave: () => j(null),
|
|
75
|
+
onFocus: () => j(r),
|
|
76
|
+
onBlur: () => j(null),
|
|
77
|
+
tabIndex: 0,
|
|
78
|
+
role: "button",
|
|
79
|
+
"aria-label": `${v}: ${C}`,
|
|
80
|
+
children: [
|
|
81
|
+
/* @__PURE__ */ d("rect", {
|
|
82
|
+
x: i,
|
|
83
|
+
y: m.top,
|
|
84
|
+
width: B,
|
|
85
|
+
height: P,
|
|
86
|
+
fill: "transparent"
|
|
87
|
+
}),
|
|
88
|
+
/* @__PURE__ */ d("rect", {
|
|
89
|
+
x: i,
|
|
90
|
+
y: g,
|
|
91
|
+
width: B,
|
|
92
|
+
height: l,
|
|
93
|
+
fill: s(e.color),
|
|
94
|
+
rx: 6,
|
|
95
|
+
opacity: _ ? 1 : p[r % p.length],
|
|
96
|
+
style: { transition: "all 150ms" }
|
|
97
|
+
}),
|
|
98
|
+
U.has(r) && /* @__PURE__ */ f("text", {
|
|
99
|
+
x: i + B / 2,
|
|
100
|
+
y: M - 4,
|
|
101
|
+
textAnchor: "middle",
|
|
102
|
+
fill: "var(--text-tertiary)",
|
|
103
|
+
fontSize: 10,
|
|
104
|
+
children: [b && /* @__PURE__ */ d("title", { children: v }), y]
|
|
105
|
+
}),
|
|
106
|
+
_ && (() => {
|
|
107
|
+
let e = o(i + B / 2, g, {
|
|
108
|
+
boundsHeight: M,
|
|
109
|
+
boundsWidth: h,
|
|
110
|
+
height: 24,
|
|
111
|
+
offset: 8,
|
|
112
|
+
width: n([v, C], {
|
|
113
|
+
maxWidth: 180,
|
|
114
|
+
minWidth: 72
|
|
115
|
+
})
|
|
116
|
+
}), t = e.x + e.width / 2;
|
|
117
|
+
return /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d("rect", {
|
|
118
|
+
x: e.x,
|
|
119
|
+
y: e.y,
|
|
120
|
+
width: e.width,
|
|
121
|
+
height: e.height,
|
|
122
|
+
rx: 4,
|
|
123
|
+
fill: "var(--bg-tooltip, var(--bg-tertiary))",
|
|
124
|
+
stroke: "var(--border)",
|
|
125
|
+
strokeWidth: 1
|
|
126
|
+
}), /* @__PURE__ */ d("text", {
|
|
127
|
+
x: t,
|
|
128
|
+
y: e.y + 15,
|
|
129
|
+
textAnchor: "middle",
|
|
130
|
+
fill: "var(--text-primary)",
|
|
131
|
+
fontSize: 10,
|
|
132
|
+
fontWeight: 600,
|
|
133
|
+
children: C
|
|
134
|
+
})] });
|
|
135
|
+
})()
|
|
136
|
+
]
|
|
137
|
+
}, e.label);
|
|
138
|
+
})
|
|
139
|
+
]
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
//#endregion
|
|
143
|
+
export { g as VerticalBarChart };
|
|
@@ -39,4 +39,3 @@ export declare function estimateTooltipWidth(rows: string[], { maxWidth, minWidt
|
|
|
39
39
|
export declare function getSvgTooltipPosition(anchorX: number, anchorY: number, { boundsHeight, boundsWidth, height, margin, offset, width, }: TooltipPositionOptions): ChartTooltipPosition;
|
|
40
40
|
export declare function getFloatingTooltipStyle({ anchorX, anchorY, boundsHeight, boundsWidth, height, margin, offset, width, }: FloatingTooltipStyleOptions): FloatingTooltipStyle;
|
|
41
41
|
export {};
|
|
42
|
-
//# sourceMappingURL=chartUtils.d.ts.map
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { clamp as e } from "../../lib/math.js";
|
|
2
|
+
//#region src/components/charts/chartUtils.ts
|
|
3
|
+
var t = {
|
|
4
|
+
"text-accent": "var(--accent)",
|
|
5
|
+
"text-blue": "var(--blue)",
|
|
6
|
+
"text-green": "var(--green)",
|
|
7
|
+
"text-purple": "var(--purple)",
|
|
8
|
+
"text-red": "var(--red)",
|
|
9
|
+
"text-yellow": "var(--yellow)"
|
|
10
|
+
};
|
|
11
|
+
function n(e) {
|
|
12
|
+
let t = Math.abs(e);
|
|
13
|
+
return t >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : t >= 1e3 ? `${(e / 1e3).toFixed(1)}k` : String(e);
|
|
14
|
+
}
|
|
15
|
+
function r(e) {
|
|
16
|
+
return e ? t[e] ?? e : "var(--accent)";
|
|
17
|
+
}
|
|
18
|
+
function i(e, t) {
|
|
19
|
+
if (e <= 0 || t <= 0) return [];
|
|
20
|
+
if (e === 1 || t === 1) return [0];
|
|
21
|
+
let n = Math.min(e, Math.max(2, Math.floor(t))), r = (e - 1) / (n - 1), i = /* @__PURE__ */ new Set();
|
|
22
|
+
for (let e = 0; e < n; e += 1) i.add(Math.round(e * r));
|
|
23
|
+
return i.add(e - 1), Array.from(i).sort((e, t) => e - t);
|
|
24
|
+
}
|
|
25
|
+
function a(e) {
|
|
26
|
+
return Number.isFinite(e) ? Math.max(0, e) : 0;
|
|
27
|
+
}
|
|
28
|
+
function o(e, t) {
|
|
29
|
+
let n = String(e ?? "");
|
|
30
|
+
return t === void 0 || t <= 0 || n.length <= t ? n : t <= 3 ? n.slice(0, t) : `${n.slice(0, t - 3)}...`;
|
|
31
|
+
}
|
|
32
|
+
function s(e, t = 10) {
|
|
33
|
+
let n = 0;
|
|
34
|
+
for (let r of e) r === " " ? n += t * .32 : /[A-Z0-9]/.test(r) ? n += t * .62 : /[il.,:;|'`]/.test(r) ? n += t * .28 : /[MW@#%&]/.test(r) ? n += t * .82 : n += t * .54;
|
|
35
|
+
return Math.ceil(n);
|
|
36
|
+
}
|
|
37
|
+
function c(t, { maxWidth: n = 220, minWidth: r = 72, paddingX: i = 20 } = {}) {
|
|
38
|
+
return e(t.reduce((e, t) => Math.max(e, s(t, 11)), 0) + i, r, n);
|
|
39
|
+
}
|
|
40
|
+
function l(t, n, { boundsHeight: r, boundsWidth: i, height: a, margin: o = 0, offset: s = 8, width: c }) {
|
|
41
|
+
let l = Math.max(1, Math.min(c, i - o * 2)), u = Math.max(1, Math.min(a, r - o * 2)), d = Math.max(o, i - l - o), f = Math.max(o, r - u - o), p = e(t - l / 2, o, d), m = n - u - s, h = m >= o ? "above" : "below";
|
|
42
|
+
return {
|
|
43
|
+
height: u,
|
|
44
|
+
placement: h,
|
|
45
|
+
width: l,
|
|
46
|
+
x: p,
|
|
47
|
+
y: h === "above" ? m : e(n + s, o, f)
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
function u({ anchorX: e, anchorY: t, boundsHeight: n, boundsWidth: r, height: i, margin: a = 0, offset: o = 8, width: s }) {
|
|
51
|
+
let c = l(e, t, {
|
|
52
|
+
boundsHeight: n,
|
|
53
|
+
boundsWidth: r,
|
|
54
|
+
height: i,
|
|
55
|
+
margin: a,
|
|
56
|
+
offset: o,
|
|
57
|
+
width: s
|
|
58
|
+
});
|
|
59
|
+
return {
|
|
60
|
+
left: c.x + c.width / 2,
|
|
61
|
+
minWidth: c.width,
|
|
62
|
+
top: c.y + c.height / 2,
|
|
63
|
+
transform: "translate(-50%, -50%)",
|
|
64
|
+
width: c.width
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
//#endregion
|
|
68
|
+
export { c as estimateTooltipWidth, n as formatCompactValue, u as getFloatingTooltipStyle, i as getLabelIndices, a as getPositiveValue, l as getSvgTooltipPosition, r as resolveChartColor, o as truncateChartLabel };
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
* />
|
|
17
17
|
* ```
|
|
18
18
|
*/
|
|
19
|
-
import { type ElementType, type ReactNode } from "react";
|
|
19
|
+
import { type ComponentPropsWithRef, type ElementType, type ReactNode } from "react";
|
|
20
20
|
interface ColumnDef {
|
|
21
21
|
/** Unique column key. */
|
|
22
22
|
key: string;
|
|
@@ -27,7 +27,7 @@ interface ColumnDef {
|
|
|
27
27
|
/** Heading to list this column under; consecutive columns share one. */
|
|
28
28
|
group?: string;
|
|
29
29
|
}
|
|
30
|
-
interface ColumnPickerProps {
|
|
30
|
+
export interface ColumnPickerProps extends Omit<ComponentPropsWithRef<"div">, "children" | "hidden" | "onToggle"> {
|
|
31
31
|
/** List of toggleable columns (exclude utility columns like select/actions). */
|
|
32
32
|
columns: ColumnDef[];
|
|
33
33
|
/** Set of currently hidden column keys. */
|
|
@@ -47,6 +47,5 @@ interface ColumnPickerProps {
|
|
|
47
47
|
/** Content below the list, e.g. "Select all" actions. */
|
|
48
48
|
footer?: ReactNode;
|
|
49
49
|
}
|
|
50
|
-
export declare function ColumnPicker({ columns, hidden, onToggle, label, heading, icon, onOnly, onlyLabel, footer, }: ColumnPickerProps): import("react/jsx-runtime").JSX.Element;
|
|
50
|
+
export declare function ColumnPicker({ columns, hidden, onToggle, label, heading, icon, onOnly, onlyLabel, footer, className, ref, ...rest }: ColumnPickerProps): import("react/jsx-runtime").JSX.Element;
|
|
51
51
|
export {};
|
|
52
|
-
//# sourceMappingURL=ColumnPicker.d.ts.map
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { cn as e } from "../../lib/cn.js";
|
|
2
|
+
import { mergeRefs as t } from "../../lib/mergeRefs.js";
|
|
3
|
+
import { useDismiss as n } from "../../hooks/useDismiss.js";
|
|
4
|
+
import { Checkbox as r } from "../ui/Checkbox.js";
|
|
5
|
+
import { FilterButton as i } from "../ui/FilterButton.js";
|
|
6
|
+
import { Fragment as a, useCallback as o, useMemo as s, useRef as c, useState as l } from "react";
|
|
7
|
+
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
8
|
+
import { Columns3 as f } from "lucide-react";
|
|
9
|
+
//#region src/components/tables/ColumnPicker.tsx
|
|
10
|
+
function p(e) {
|
|
11
|
+
return typeof e.header == "string" ? e.header : e.sortLabel ?? e.key;
|
|
12
|
+
}
|
|
13
|
+
function m({ columns: m, hidden: h, onToggle: g, label: _ = "Columns", heading: v = "Toggle columns", icon: y = f, onOnly: b, onlyLabel: x = "Only", footer: S, className: C, ref: w, ...T }) {
|
|
14
|
+
let [E, D] = l(!1), O = c(null), k = s(() => t(O, w), [w]);
|
|
15
|
+
return n(E, o(() => D(!1), []), [O]), /* @__PURE__ */ d("div", {
|
|
16
|
+
...T,
|
|
17
|
+
ref: k,
|
|
18
|
+
className: e("relative", C),
|
|
19
|
+
children: [/* @__PURE__ */ u(i, {
|
|
20
|
+
icon: y,
|
|
21
|
+
onClick: () => D(!E),
|
|
22
|
+
children: _
|
|
23
|
+
}), E && /* @__PURE__ */ d("div", {
|
|
24
|
+
className: e("ui-glass ui-glass-popover bg-bg-tertiary border-border-strong animate-scale-in absolute top-full right-0 z-[100] mt-1 rounded-md border py-1 shadow-lg", b ? "w-56" : "w-48"),
|
|
25
|
+
children: [m.map((e, t) => /* @__PURE__ */ d(a, { children: [(t === 0 || e.group !== m[t - 1].group) && /* @__PURE__ */ u("p", {
|
|
26
|
+
className: "text-2xs-f text-text-tertiary px-3 py-1.5 font-semibold tracking-wider uppercase",
|
|
27
|
+
children: e.group ?? v
|
|
28
|
+
}), /* @__PURE__ */ d("div", {
|
|
29
|
+
onClick: () => g(e.key),
|
|
30
|
+
className: "group text-text-secondary hover:text-text-primary hover:bg-bg-hover flex h-7 w-full cursor-pointer items-center gap-2.5 px-3 text-xs transition-colors duration-[100ms]",
|
|
31
|
+
children: [
|
|
32
|
+
/* @__PURE__ */ u(r, {
|
|
33
|
+
checked: !h.has(e.key),
|
|
34
|
+
onChange: () => {},
|
|
35
|
+
"aria-label": p(e)
|
|
36
|
+
}),
|
|
37
|
+
/* @__PURE__ */ u("span", {
|
|
38
|
+
className: "min-w-0 flex-1 truncate",
|
|
39
|
+
children: e.header
|
|
40
|
+
}),
|
|
41
|
+
b && /* @__PURE__ */ u("button", {
|
|
42
|
+
type: "button",
|
|
43
|
+
"aria-label": `${x}: ${p(e)}`,
|
|
44
|
+
onClick: (t) => {
|
|
45
|
+
t.stopPropagation(), b(e.key);
|
|
46
|
+
},
|
|
47
|
+
className: "text-text-tertiary hover:text-text-primary text-2xs opacity-0 transition-opacity duration-[100ms] group-hover:opacity-100 focus-visible:opacity-100",
|
|
48
|
+
children: x
|
|
49
|
+
})
|
|
50
|
+
]
|
|
51
|
+
})] }, e.key)), S && /* @__PURE__ */ u("div", {
|
|
52
|
+
className: "border-border mt-1 border-t px-3 pt-1",
|
|
53
|
+
children: S
|
|
54
|
+
})]
|
|
55
|
+
})]
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
//#endregion
|
|
59
|
+
export { m as ColumnPicker };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ReactNode } from "react";
|
|
2
|
-
interface PaginationProps {
|
|
1
|
+
import type { ComponentPropsWithRef, ReactNode } from "react";
|
|
2
|
+
export interface PaginationProps extends Omit<ComponentPropsWithRef<"div">, "children"> {
|
|
3
3
|
/** Current page, 1-based. */
|
|
4
4
|
page: number;
|
|
5
5
|
/** Total pages. With no caption or loading state, hides when this is 1 or less. */
|
|
@@ -16,6 +16,4 @@ interface PaginationProps {
|
|
|
16
16
|
*/
|
|
17
17
|
summary?: ReactNode | ((total: number | undefined) => ReactNode);
|
|
18
18
|
}
|
|
19
|
-
export declare function Pagination({ page, totalPages, onPageChange, loading, total, summary, }: PaginationProps): import("react/jsx-runtime").JSX.Element | null;
|
|
20
|
-
export {};
|
|
21
|
-
//# sourceMappingURL=Pagination.d.ts.map
|
|
19
|
+
export declare function Pagination({ page, totalPages, onPageChange, loading, total, summary, className, ref, ...rest }: PaginationProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { cn as e } from "../../lib/cn.js";
|
|
2
|
+
import { Fragment as t, jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
3
|
+
import { ChevronLeft as i, ChevronRight as a } from "lucide-react";
|
|
4
|
+
//#region src/components/tables/Pagination.tsx
|
|
5
|
+
function o({ page: o, totalPages: s, onPageChange: c, loading: l = !1, total: u, summary: d, className: f, ref: p, ...m }) {
|
|
6
|
+
if (s <= 1 && !l && u === void 0 && d == null) return null;
|
|
7
|
+
let h = [];
|
|
8
|
+
for (let e = 1; e <= s; e++) e === 1 || e === s || e >= o - 1 && e <= o + 1 ? h.push(e) : h[h.length - 1] !== "ellipsis" && h.push("ellipsis");
|
|
9
|
+
return /* @__PURE__ */ r("div", {
|
|
10
|
+
ref: p,
|
|
11
|
+
...m,
|
|
12
|
+
className: e("flex items-center gap-1", f),
|
|
13
|
+
children: [d !== null && (l || u !== void 0 || d !== void 0) && /* @__PURE__ */ n("span", {
|
|
14
|
+
role: "status",
|
|
15
|
+
className: "text-text-tertiary text-xs",
|
|
16
|
+
children: l ? "Loading results..." : d === void 0 ? `${u} in total` : typeof d == "function" ? d(u) : d
|
|
17
|
+
}), s > 1 && /* @__PURE__ */ r(t, { children: [
|
|
18
|
+
/* @__PURE__ */ n("button", {
|
|
19
|
+
type: "button",
|
|
20
|
+
disabled: o === 1,
|
|
21
|
+
"aria-disabled": l || void 0,
|
|
22
|
+
onClick: () => {
|
|
23
|
+
l || c(o - 1);
|
|
24
|
+
},
|
|
25
|
+
className: e("text-text-tertiary hover:text-text-primary hover:bg-bg-hover flex h-7 w-7 cursor-pointer items-center justify-center rounded disabled:cursor-not-allowed disabled:opacity-30", l && "cursor-not-allowed opacity-30"),
|
|
26
|
+
"aria-label": "Previous page",
|
|
27
|
+
children: /* @__PURE__ */ n(i, { className: "h-3.5 w-3.5" })
|
|
28
|
+
}),
|
|
29
|
+
h.map((t, r) => t === "ellipsis" ? /* @__PURE__ */ n("span", {
|
|
30
|
+
className: "text-text-tertiary flex h-7 w-7 items-center justify-center text-xs",
|
|
31
|
+
children: "..."
|
|
32
|
+
}, `e${r}`) : /* @__PURE__ */ n("button", {
|
|
33
|
+
type: "button",
|
|
34
|
+
"aria-disabled": l || void 0,
|
|
35
|
+
onClick: () => {
|
|
36
|
+
l || c(t);
|
|
37
|
+
},
|
|
38
|
+
className: e("flex h-7 w-7 cursor-pointer items-center justify-center rounded text-xs font-medium", l && "cursor-not-allowed", "transition-colors duration-[100ms]", t === o ? "bg-accent text-text-on-accent" : "text-text-secondary hover:text-text-primary hover:bg-bg-hover"),
|
|
39
|
+
children: t
|
|
40
|
+
}, t)),
|
|
41
|
+
/* @__PURE__ */ n("button", {
|
|
42
|
+
type: "button",
|
|
43
|
+
disabled: o >= s,
|
|
44
|
+
"aria-disabled": l || void 0,
|
|
45
|
+
onClick: () => {
|
|
46
|
+
l || c(o + 1);
|
|
47
|
+
},
|
|
48
|
+
className: e("text-text-tertiary hover:text-text-primary hover:bg-bg-hover flex h-7 w-7 cursor-pointer items-center justify-center rounded disabled:cursor-not-allowed disabled:opacity-30", l && "cursor-not-allowed opacity-30"),
|
|
49
|
+
"aria-label": "Next page",
|
|
50
|
+
children: /* @__PURE__ */ n(a, { className: "h-3.5 w-3.5" })
|
|
51
|
+
})
|
|
52
|
+
] })]
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
//#endregion
|
|
56
|
+
export { o as Pagination };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type HTMLAttributes, type ReactNode, type TableHTMLAttributes } from "react";
|
|
1
|
+
import { type ComponentPropsWithRef, type HTMLAttributes, type ReactNode, type TableHTMLAttributes } from "react";
|
|
2
2
|
import { type SortDir } from "./sortRows";
|
|
3
3
|
export interface Column<T> {
|
|
4
4
|
/** Unique id for the column. Used as the React key and as the sort key. */
|
|
@@ -41,7 +41,7 @@ export interface Column<T> {
|
|
|
41
41
|
/** Renders the cell content for a row. */
|
|
42
42
|
render: (row: T) => ReactNode;
|
|
43
43
|
}
|
|
44
|
-
export interface ResourceTableProps<T> {
|
|
44
|
+
export interface ResourceTableProps<T> extends Omit<ComponentPropsWithRef<"div">, "children"> {
|
|
45
45
|
/** The rows to display. */
|
|
46
46
|
data: T[];
|
|
47
47
|
/** Column definitions, in display order. */
|
|
@@ -112,5 +112,4 @@ export interface ResourceTableProps<T> {
|
|
|
112
112
|
*
|
|
113
113
|
* Markup and base styling come from the shared {@link Table} parts.
|
|
114
114
|
*/
|
|
115
|
-
export declare function ResourceTable<T>({ data, columns, getRowId, onRowClick, emptyMessage, sortKey: controlledSortKey, sortDir: controlledSortDir, onSortChange, caption, loading, loadingMessage, className, tableProps, getRowProps, isRowSelected, }: ResourceTableProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
116
|
-
//# sourceMappingURL=ResourceTable.d.ts.map
|
|
115
|
+
export declare function ResourceTable<T>({ data, columns, getRowId, onRowClick, emptyMessage, sortKey: controlledSortKey, sortDir: controlledSortDir, onSortChange, caption, loading, loadingMessage, className, tableProps, getRowProps, isRowSelected, ref, ...rest }: ResourceTableProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { cn as e } from "../../lib/cn.js";
|
|
2
|
+
import { sortRows as t } from "./sortRows.js";
|
|
3
|
+
import { Table as n, TableBody as r, TableCell as i, TableEmptyRow as a, TableHead as o, TableHeaderCell as s, TableRow as c } from "./Table.js";
|
|
4
|
+
import { createElement as l, useMemo as u, useState as d } from "react";
|
|
5
|
+
import { jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
6
|
+
import { ArrowDown as m, ArrowUp as h } from "lucide-react";
|
|
7
|
+
//#region src/components/tables/ResourceTable.tsx
|
|
8
|
+
var g = { "--ui-table-cell-padding-y": "0px" };
|
|
9
|
+
function _({ data: _, columns: v, getRowId: y, onRowClick: b, emptyMessage: x = "No data", sortKey: S, sortDir: C, onSortChange: w, caption: T, loading: E = !1, loadingMessage: D = "Loading…", className: O, tableProps: k, getRowProps: A, isRowSelected: j, ref: M, ...N }) {
|
|
10
|
+
let P = w !== void 0, [F, I] = d(null), [L, R] = d("asc"), z = P ? S ?? null : F, B = P ? C ?? "asc" : L, V = u(() => P ? _ : t(_, v, z, B), [
|
|
11
|
+
P,
|
|
12
|
+
_,
|
|
13
|
+
v,
|
|
14
|
+
z,
|
|
15
|
+
B
|
|
16
|
+
]);
|
|
17
|
+
function H(e) {
|
|
18
|
+
let t = z === e && B === "asc" ? "desc" : "asc";
|
|
19
|
+
if (P) {
|
|
20
|
+
w(e, t);
|
|
21
|
+
return;
|
|
22
|
+
}
|
|
23
|
+
I(e), R(t);
|
|
24
|
+
}
|
|
25
|
+
return /* @__PURE__ */ p(n, {
|
|
26
|
+
...k,
|
|
27
|
+
wrapperProps: {
|
|
28
|
+
...N,
|
|
29
|
+
ref: M
|
|
30
|
+
},
|
|
31
|
+
wrapperClassName: O,
|
|
32
|
+
beforeTable: E && /* @__PURE__ */ f("span", {
|
|
33
|
+
role: "status",
|
|
34
|
+
className: "sr-only",
|
|
35
|
+
children: D
|
|
36
|
+
}),
|
|
37
|
+
caption: T || void 0,
|
|
38
|
+
captionClassName: "text-text-secondary px-3 py-2 text-left text-xs",
|
|
39
|
+
"aria-busy": E || k?.["aria-busy"],
|
|
40
|
+
className: e("font-data text-xs", k?.className),
|
|
41
|
+
style: {
|
|
42
|
+
...g,
|
|
43
|
+
...k?.style
|
|
44
|
+
},
|
|
45
|
+
children: [/* @__PURE__ */ f(o, { children: /* @__PURE__ */ f(c, { children: v.map((t) => /* @__PURE__ */ f(s, {
|
|
46
|
+
className: e("text-2xs h-7", t.sortable && "hover:text-text-table-header-hover cursor-pointer select-none"),
|
|
47
|
+
style: { width: t.width },
|
|
48
|
+
sort: t.sortable ? z === t.key ? B === "asc" ? "ascending" : "descending" : "none" : void 0,
|
|
49
|
+
children: t.sortable ? /* @__PURE__ */ p("button", {
|
|
50
|
+
type: "button",
|
|
51
|
+
onClick: () => H(t.key),
|
|
52
|
+
"aria-label": t.sortLabel,
|
|
53
|
+
className: "inline-flex cursor-pointer items-center gap-1 text-left focus-visible:outline-accent focus-visible:outline-2 focus-visible:outline-offset-2",
|
|
54
|
+
children: [t.header, z === t.key && f(B === "asc" ? h : m, {
|
|
55
|
+
"aria-hidden": "true",
|
|
56
|
+
className: "h-3 w-3"
|
|
57
|
+
})]
|
|
58
|
+
}) : t.header
|
|
59
|
+
}, t.key)) }) }), /* @__PURE__ */ f(r, { children: V.length === 0 ? /* @__PURE__ */ f(a, {
|
|
60
|
+
colSpan: v.length,
|
|
61
|
+
cellClassName: "h-32 px-0 text-center",
|
|
62
|
+
children: E ? D : x
|
|
63
|
+
}) : V.map((t) => {
|
|
64
|
+
let n = A?.(t) ?? {}, r = j?.(t) ?? n["aria-selected"], a = r === !0 || r === "true";
|
|
65
|
+
return /* @__PURE__ */ l(c, {
|
|
66
|
+
tabIndex: b ? 0 : void 0,
|
|
67
|
+
...n,
|
|
68
|
+
key: y(t),
|
|
69
|
+
selected: a,
|
|
70
|
+
interactive: !!b,
|
|
71
|
+
className: e("h-8", !a && "hover:bg-bg-hover", b && "focus-visible:outline-accent focus-visible:outline-2 focus-visible:outline-offset-[-2px]", n.className),
|
|
72
|
+
onClick: (e) => {
|
|
73
|
+
n.onClick?.(e), e.defaultPrevented || b?.(t);
|
|
74
|
+
},
|
|
75
|
+
onKeyDown: (e) => {
|
|
76
|
+
n.onKeyDown?.(e), !(!b || e.defaultPrevented || e.repeat || e.target !== e.currentTarget || e.key !== "Enter" && e.key !== " ") && (e.preventDefault(), b(t));
|
|
77
|
+
}
|
|
78
|
+
}, v.map((e) => /* @__PURE__ */ f(i, {
|
|
79
|
+
nowrap: !0,
|
|
80
|
+
className: e.cellClassName,
|
|
81
|
+
onClick: e.interactive ? (e) => e.stopPropagation() : void 0,
|
|
82
|
+
children: e.render(t)
|
|
83
|
+
}, e.key)));
|
|
84
|
+
}) })]
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
//#endregion
|
|
88
|
+
export { _ as ResourceTable };
|
|
@@ -54,4 +54,3 @@ export interface TableEmptyRowProps extends ComponentPropsWithRef<"tr"> {
|
|
|
54
54
|
cellClassName?: string;
|
|
55
55
|
}
|
|
56
56
|
export declare function TableEmptyRow({ colSpan, cellClassName, children, className, ...props }: TableEmptyRowProps): import("react/jsx-runtime").JSX.Element;
|
|
57
|
-
//# sourceMappingURL=Table.d.ts.map
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { cn as e } from "../../lib/cn.js";
|
|
2
|
+
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
3
|
+
import { ArrowDown as r, ArrowUp as i, ArrowUpDown as a } from "lucide-react";
|
|
4
|
+
//#region src/components/tables/Table.tsx
|
|
5
|
+
function o({ caption: r, captionHidden: i = !1, captionClassName: a, stickyHeader: o = !1, maxHeight: s, wrapperClassName: c, wrapperProps: l, beforeTable: u, className: d, children: f, ...p }) {
|
|
6
|
+
return /* @__PURE__ */ n("div", {
|
|
7
|
+
...l,
|
|
8
|
+
className: e("ui-table-wrap", l?.className, c),
|
|
9
|
+
style: {
|
|
10
|
+
maxHeight: s,
|
|
11
|
+
...s ? { overflow: "auto" } : {},
|
|
12
|
+
...l?.style
|
|
13
|
+
},
|
|
14
|
+
children: [u, /* @__PURE__ */ n("table", {
|
|
15
|
+
...p,
|
|
16
|
+
className: e("ui-table", o && "ui-table-sticky", d),
|
|
17
|
+
children: [r != null && /* @__PURE__ */ t("caption", {
|
|
18
|
+
className: e(i && "sr-only", a),
|
|
19
|
+
children: r
|
|
20
|
+
}), f]
|
|
21
|
+
})]
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
function s({ className: n, ...r }) {
|
|
25
|
+
return /* @__PURE__ */ t("thead", {
|
|
26
|
+
...r,
|
|
27
|
+
className: e("ui-table-head", n)
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
function c({ className: n, ...r }) {
|
|
31
|
+
return /* @__PURE__ */ t("tbody", {
|
|
32
|
+
...r,
|
|
33
|
+
className: e("ui-table-body", n)
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
function l({ selected: n, interactive: r = !1, className: i, ...a }) {
|
|
37
|
+
return /* @__PURE__ */ t("tr", {
|
|
38
|
+
...a,
|
|
39
|
+
"data-selected": n ? "" : void 0,
|
|
40
|
+
className: e("ui-table-row", r && "ui-table-interactive", i)
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
function u({ numeric: o = !1, align: s, sort: c, onSort: l, scope: u = "col", className: d, style: f, children: p, ...m }) {
|
|
44
|
+
let h = c ?? m["aria-sort"], g = h === "ascending" ? "descending" : "ascending";
|
|
45
|
+
return /* @__PURE__ */ t("th", {
|
|
46
|
+
...m,
|
|
47
|
+
scope: u,
|
|
48
|
+
"aria-sort": h ?? (l ? "none" : void 0),
|
|
49
|
+
className: e("ui-table-header-cell", o && "ui-table-numeric", d),
|
|
50
|
+
style: {
|
|
51
|
+
...s ? { textAlign: s } : {},
|
|
52
|
+
...f
|
|
53
|
+
},
|
|
54
|
+
children: l ? /* @__PURE__ */ n("button", {
|
|
55
|
+
type: "button",
|
|
56
|
+
className: "ui-table-sort-button",
|
|
57
|
+
onClick: () => l(g),
|
|
58
|
+
children: [
|
|
59
|
+
p,
|
|
60
|
+
/* @__PURE__ */ n("span", {
|
|
61
|
+
className: "sr-only",
|
|
62
|
+
children: [" Sort ", g]
|
|
63
|
+
}),
|
|
64
|
+
/* @__PURE__ */ t("span", {
|
|
65
|
+
className: "ui-table-sort-indicator",
|
|
66
|
+
"aria-hidden": "true",
|
|
67
|
+
children: t(h === "ascending" ? i : h === "descending" ? r : a, {})
|
|
68
|
+
})
|
|
69
|
+
]
|
|
70
|
+
}) : p
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
function d({ numeric: n = !1, align: r, nowrap: i = !1, className: a, style: o, ...s }) {
|
|
74
|
+
return /* @__PURE__ */ t("td", {
|
|
75
|
+
...s,
|
|
76
|
+
className: e("ui-table-cell", n && "ui-table-numeric", i && "ui-table-nowrap", a),
|
|
77
|
+
style: {
|
|
78
|
+
...r ? { textAlign: r } : {},
|
|
79
|
+
...o
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
function f({ colSpan: n, cellClassName: r, children: i, className: a, ...o }) {
|
|
84
|
+
return /* @__PURE__ */ t("tr", {
|
|
85
|
+
...o,
|
|
86
|
+
className: e("ui-table-empty-row", a),
|
|
87
|
+
children: /* @__PURE__ */ t("td", {
|
|
88
|
+
colSpan: n,
|
|
89
|
+
className: e("ui-table-empty-cell", r),
|
|
90
|
+
children: i
|
|
91
|
+
})
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
//#endregion
|
|
95
|
+
export { o as Table, c as TableBody, d as TableCell, f as TableEmptyRow, s as TableHead, u as TableHeaderCell, l as TableRow };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
//#region src/components/tables/sortRows.ts
|
|
2
|
+
function e(e, t, n, r) {
|
|
3
|
+
if (!n) return e;
|
|
4
|
+
let i = t.find((e) => e.key === n)?.getValue;
|
|
5
|
+
return i ? [...e].sort((e, t) => {
|
|
6
|
+
let n = String(i(e)), a = String(i(t)), o = n.localeCompare(a, void 0, { numeric: !0 });
|
|
7
|
+
return r === "asc" ? o : -o;
|
|
8
|
+
}) : e;
|
|
9
|
+
}
|
|
10
|
+
//#endregion
|
|
11
|
+
export { e as sortRows };
|
|
@@ -1,24 +1,31 @@
|
|
|
1
|
+
import { type ComponentPropsWithRef } from "react";
|
|
1
2
|
import { type DisclosureProps } from "./Disclosure";
|
|
2
3
|
export interface AccordionItem extends Omit<DisclosureProps, "open" | "defaultOpen" | "onOpenChange"> {
|
|
3
4
|
/** Unique, stable identifier within the accordion. */
|
|
4
5
|
value: string;
|
|
5
6
|
}
|
|
6
|
-
interface AccordionBaseProps {
|
|
7
|
+
interface AccordionBaseProps extends Omit<ComponentPropsWithRef<"div">, "children" | "defaultValue" | "onChange"> {
|
|
8
|
+
/** Sections in display order. */
|
|
7
9
|
items: AccordionItem[];
|
|
10
|
+
/** Additional classes on the group. */
|
|
8
11
|
className?: string;
|
|
9
12
|
}
|
|
10
13
|
export type AccordionProps = AccordionBaseProps & ({
|
|
11
14
|
type?: "single";
|
|
12
15
|
/** Empty string means all sections are closed. */
|
|
13
16
|
value?: string;
|
|
17
|
+
/** Initially expanded item in uncontrolled single mode. */
|
|
14
18
|
defaultValue?: string;
|
|
19
|
+
/** Called with the next selection in single mode. */
|
|
15
20
|
onValueChange?: (value: string) => void;
|
|
16
21
|
} | {
|
|
17
22
|
type: "multiple";
|
|
23
|
+
/** Expanded items in controlled multiple mode. */
|
|
18
24
|
value?: string[];
|
|
25
|
+
/** Initially expanded items in uncontrolled multiple mode. */
|
|
19
26
|
defaultValue?: string[];
|
|
27
|
+
/** Called with the next selection in multiple mode. */
|
|
20
28
|
onValueChange?: (value: string[]) => void;
|
|
21
29
|
});
|
|
22
30
|
export declare function Accordion(props: AccordionProps): import("react/jsx-runtime").JSX.Element;
|
|
23
31
|
export {};
|
|
24
|
-
//# sourceMappingURL=Accordion.d.ts.map
|