@leonardaustin/ui 0.23.0 → 0.25.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 +172 -2
- package/dist/components/app-shell/AppShell.d.ts +0 -1
- package/dist/components/app-shell/AuthLayout.d.ts +0 -1
- package/dist/components/app-shell/BackLink.d.ts +0 -1
- package/dist/components/app-shell/BottomNav.d.ts +0 -1
- package/dist/components/app-shell/Breadcrumbs.d.ts +0 -1
- package/dist/components/app-shell/CommandPalette.d.ts +0 -1
- package/dist/components/app-shell/MobileDrawer.d.ts +0 -1
- package/dist/components/app-shell/Sidebar.d.ts +0 -1
- package/dist/components/app-shell/ThemeMenu.d.ts +0 -1
- package/dist/components/app-shell/TopBar.d.ts +0 -1
- package/dist/components/app-shell/commandPaletteEvents.d.ts +0 -1
- package/dist/components/app-shell/navigation.d.ts +0 -1
- package/dist/components/app-shell/themeMenuEvents.d.ts +0 -1
- package/dist/components/app-shell/types.d.ts +0 -1
- package/dist/components/charts/AreaChart.d.ts +0 -1
- package/dist/components/charts/BarChart.d.ts +0 -1
- package/dist/components/charts/DonutChart.d.ts +0 -1
- package/dist/components/charts/RadarChart.d.ts +0 -1
- package/dist/components/charts/RadialBarChart.d.ts +0 -1
- package/dist/components/charts/SparkLine.d.ts +0 -1
- package/dist/components/charts/StackedBarChart.d.ts +0 -1
- package/dist/components/charts/VerticalBarChart.d.ts +0 -1
- package/dist/components/charts/chartUtils.d.ts +0 -1
- package/dist/components/tables/ColumnPicker.d.ts +1 -2
- package/dist/components/tables/Pagination.d.ts +1 -3
- package/dist/components/tables/ResourceTable.d.ts +0 -1
- package/dist/components/tables/Table.d.ts +0 -1
- package/dist/components/tables/sortRows.d.ts +0 -1
- package/dist/components/ui/Accordion.d.ts +7 -1
- package/dist/components/ui/Alert.d.ts +6 -5
- package/dist/components/ui/AttachmentList.d.ts +0 -1
- package/dist/components/ui/AudioPlayer.d.ts +2 -2
- package/dist/components/ui/AuthCard.d.ts +0 -1
- package/dist/components/ui/AuthorByline.d.ts +3 -4
- package/dist/components/ui/Avatar.d.ts +2 -2
- package/dist/components/ui/Badge.d.ts +0 -1
- package/dist/components/ui/Button.d.ts +15 -12
- package/dist/components/ui/Calendar.d.ts +0 -1
- package/dist/components/ui/CalendarGrid.d.ts +1 -3
- package/dist/components/ui/Card.d.ts +37 -6
- package/dist/components/ui/CharacterCount.d.ts +0 -1
- package/dist/components/ui/Checkbox.d.ts +0 -1
- package/dist/components/ui/CodeInput.d.ts +0 -1
- package/dist/components/ui/Combobox.d.ts +0 -1
- package/dist/components/ui/CopyButton.d.ts +5 -1
- package/dist/components/ui/DangerZone.d.ts +1 -3
- package/dist/components/ui/DatePartsInput.d.ts +0 -1
- package/dist/components/ui/DatePicker.d.ts +0 -1
- package/dist/components/ui/DateRangePicker.d.ts +1 -3
- package/dist/components/ui/DateTimePicker.d.ts +0 -1
- package/dist/components/ui/DetailPanel.d.ts +0 -1
- package/dist/components/ui/Dialog.d.ts +0 -1
- package/dist/components/ui/DialogActions.d.ts +0 -1
- package/dist/components/ui/Disclosure.d.ts +4 -1
- package/dist/components/ui/DividerLabel.d.ts +0 -1
- package/dist/components/ui/DropdownMenu.d.ts +21 -11
- package/dist/components/ui/EmptyState.d.ts +1 -3
- package/dist/components/ui/ErrorBoundary.d.ts +3 -3
- package/dist/components/ui/FieldContext.d.ts +0 -1
- package/dist/components/ui/Fieldset.d.ts +0 -1
- package/dist/components/ui/FilterButton.d.ts +1 -3
- package/dist/components/ui/FilterDropdown.d.ts +1 -3
- package/dist/components/ui/FormField.d.ts +0 -1
- package/dist/components/ui/Grid.d.ts +0 -1
- package/dist/components/ui/GridItem.d.ts +0 -1
- package/dist/components/ui/Inline.d.ts +0 -1
- package/dist/components/ui/Kbd.d.ts +1 -3
- package/dist/components/ui/ListItemLink.d.ts +27 -0
- package/dist/components/ui/LoadingSpinner.d.ts +3 -4
- package/dist/components/ui/MessageBubble.d.ts +3 -1
- package/dist/components/ui/MetadataGrid.d.ts +1 -2
- package/dist/components/ui/MetricCard.d.ts +0 -1
- package/dist/components/ui/NavTabs.d.ts +0 -1
- package/dist/components/ui/OAuthButton.d.ts +0 -1
- package/dist/components/ui/OverlineLabel.d.ts +9 -0
- package/dist/components/ui/PageHeader.d.ts +0 -1
- package/dist/components/ui/PageSection.d.ts +0 -1
- package/dist/components/ui/PaginationBar.d.ts +0 -1
- package/dist/components/ui/PasswordInput.d.ts +1 -3
- package/dist/components/ui/PasswordRequirements.d.ts +0 -1
- package/dist/components/ui/Popover.d.ts +2 -1
- package/dist/components/ui/ProfileHeader.d.ts +1 -2
- package/dist/components/ui/ProgressBar.d.ts +0 -1
- package/dist/components/ui/ProseContent.d.ts +0 -1
- package/dist/components/ui/QrCode.d.ts +0 -1
- package/dist/components/ui/Radio.d.ts +0 -1
- package/dist/components/ui/RadioPill.d.ts +4 -5
- package/dist/components/ui/ReorderList.d.ts +0 -1
- package/dist/components/ui/SearchInput.d.ts +12 -3
- package/dist/components/ui/SectionHeader.d.ts +1 -3
- package/dist/components/ui/Select.d.ts +1 -3
- package/dist/components/ui/SelectDropdown.d.ts +3 -4
- package/dist/components/ui/SettingRow.d.ts +1 -3
- package/dist/components/ui/SideSheet.d.ts +0 -1
- package/dist/components/ui/Skeleton.d.ts +0 -1
- package/dist/components/ui/Slider.d.ts +0 -1
- package/dist/components/ui/SplitPaneLayout.d.ts +4 -4
- package/dist/components/ui/Stack.d.ts +0 -1
- package/dist/components/ui/StatusDot.d.ts +4 -3
- package/dist/components/ui/StepProgress.d.ts +0 -1
- package/dist/components/ui/Tabs.d.ts +10 -4
- package/dist/components/ui/TextInput.d.ts +1 -3
- package/dist/components/ui/Textarea.d.ts +1 -3
- package/dist/components/ui/ThemePreview.d.ts +0 -1
- package/dist/components/ui/TimeInput.d.ts +0 -1
- package/dist/components/ui/Timeline.d.ts +1 -2
- package/dist/components/ui/Toast.d.ts +0 -1
- package/dist/components/ui/Toggle.d.ts +6 -3
- package/dist/components/ui/Toolbar.d.ts +0 -1
- package/dist/components/ui/Tooltip.d.ts +0 -1
- package/dist/components/ui/TranscriptLine.d.ts +2 -1
- package/dist/components/ui/UploadDropzone.d.ts +0 -1
- package/dist/components/ui/badgeColors.d.ts +0 -1
- package/dist/components/ui/calendar/AgendaView.d.ts +0 -1
- package/dist/components/ui/calendar/MonthView.d.ts +0 -1
- package/dist/components/ui/calendar/TimeGrid.d.ts +0 -1
- package/dist/components/ui/calendar/TimelineView.d.ts +0 -1
- package/dist/components/ui/calendar/context.d.ts +0 -1
- package/dist/components/ui/calendar/items.d.ts +0 -1
- package/dist/components/ui/calendar/types.d.ts +0 -1
- package/dist/components/ui/calendar/useGridInteraction.d.ts +0 -1
- package/dist/components/ui/useFieldControl.d.ts +0 -1
- package/dist/config/theme.d.ts +0 -1
- package/dist/hooks/useAnchoredPopup.d.ts +0 -1
- package/dist/hooks/useApplyTheme.d.ts +0 -1
- package/dist/hooks/useDismiss.d.ts +0 -1
- package/dist/hooks/useFocusTrap.d.ts +0 -1
- package/dist/hooks/useOverlayStack.d.ts +0 -1
- package/dist/hooks/usePopover.d.ts +1 -2
- package/dist/hooks/usePortalContainer.d.ts +0 -1
- package/dist/hooks/useSettings.d.ts +0 -1
- package/dist/hooks/useTheme.d.ts +0 -1
- package/dist/hooks/useTypeahead.d.ts +0 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2020 -1831
- package/dist/lib/anchorPlacement.d.ts +0 -1
- package/dist/lib/calendar.d.ts +0 -1
- package/dist/lib/cn.d.ts +0 -1
- package/dist/lib/codeInput.d.ts +0 -1
- package/dist/lib/dateParts.d.ts +0 -1
- package/dist/lib/dialogDrag.d.ts +0 -1
- package/dist/lib/dialogResize.d.ts +0 -1
- package/dist/lib/formatDate.d.ts +0 -1
- package/dist/lib/formatMediaTime.d.ts +0 -1
- package/dist/lib/keyboardStep.d.ts +0 -1
- package/dist/lib/layout.d.ts +0 -1
- package/dist/lib/math.d.ts +0 -1
- package/dist/lib/months.d.ts +0 -1
- package/dist/lib/overlayStack.d.ts +0 -1
- package/dist/lib/panelResize.d.ts +0 -1
- package/dist/lib/passwordRequirements.d.ts +0 -1
- package/dist/lib/qrCode.d.ts +0 -1
- package/dist/lib/rect.d.ts +0 -1
- package/dist/lib/tones.d.ts +0 -1
- package/dist/lib/typeahead.d.ts +0 -1
- package/dist/providers/ControlSizeContext.d.ts +0 -1
- package/dist/providers/ControlSizeProvider.d.ts +0 -1
- package/dist/providers/SettingsContext.d.ts +0 -1
- package/dist/providers/SettingsProvider.d.ts +0 -1
- package/dist/providers/ThemeContext.d.ts +2 -3
- package/dist/providers/ThemeProvider.d.ts +0 -1
- package/dist/providers/accentColors.d.ts +3 -0
- package/dist/providers/themeClasses.d.ts +2 -0
- package/dist/styles.css +578 -11
- package/package.json +1 -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/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/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/README.md
CHANGED
|
@@ -39,5 +39,175 @@ export function Root() {
|
|
|
39
39
|
router when you want single-page navigation; otherwise links render as normal
|
|
40
40
|
anchors.
|
|
41
41
|
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
## Components
|
|
43
|
+
|
|
44
|
+
### App shell & navigation
|
|
45
|
+
|
|
46
|
+
| Component | Purpose |
|
|
47
|
+
| ----------------------------------- | ------------------------------------------------------------------ |
|
|
48
|
+
| `SettingsProvider`, `ThemeProvider` | Provide application appearance preferences and the resolved theme. |
|
|
49
|
+
| `AppShell` | Wrap an application in responsive navigation and content chrome. |
|
|
50
|
+
| `AuthLayout` | Centre and frame sign-in or registration screens. |
|
|
51
|
+
| `BackLink` | Link to the parent view. |
|
|
52
|
+
| `BottomNav` | Show primary navigation at the bottom of mobile screens. |
|
|
53
|
+
| `Breadcrumbs` | Show the current page’s location in a hierarchy. |
|
|
54
|
+
| `CommandPalette` | Search and invoke application commands from the keyboard. |
|
|
55
|
+
| `ListItemLink` | Render a link as a structured list row. |
|
|
56
|
+
| `MobileDrawer` | Show navigation in a mobile overlay. |
|
|
57
|
+
| `Sidebar` | Show desktop navigation, account and settings controls. |
|
|
58
|
+
| `ThemeMenu` | Change appearance, theme and accent settings. |
|
|
59
|
+
| `TopBar` | Show navigation and actions across the top of the app. |
|
|
60
|
+
|
|
61
|
+
### Buttons & display
|
|
62
|
+
|
|
63
|
+
| Component | Purpose |
|
|
64
|
+
| ------------------ | ------------------------------------------------------------------ |
|
|
65
|
+
| `Accordion` | Group related expandable sections. |
|
|
66
|
+
| `AudioPlayer` | Play and seek through audio recordings. |
|
|
67
|
+
| `AuthorByline` | Show an author’s name, avatar and metadata. |
|
|
68
|
+
| `Avatar` | Represent a person with an image or initials. |
|
|
69
|
+
| `Badge` | Show compact labels and status. |
|
|
70
|
+
| `Button` | Trigger an action with a themed button. |
|
|
71
|
+
| `Card` | Group content in a surface with optional button or link behaviour. |
|
|
72
|
+
| `CopyButton` | Copy text and announce the result. |
|
|
73
|
+
| `Disclosure` | Toggle a section of supporting content. |
|
|
74
|
+
| `DividerLabel` | Separate sections with a centred label. |
|
|
75
|
+
| `Grid`, `GridItem` | Arrange responsive columns and spans. |
|
|
76
|
+
| `Inline` | Arrange items horizontally with optional wrapping. |
|
|
77
|
+
| `Kbd` | Display a keyboard key or shortcut. |
|
|
78
|
+
| `LoadingSpinner` | Indicate an ongoing operation. |
|
|
79
|
+
| `MessageBubble` | Show incoming and outgoing conversation messages. |
|
|
80
|
+
| `MetadataGrid` | Show labelled values in a grid. |
|
|
81
|
+
| `MetricCard` | Highlight a metric and its context. |
|
|
82
|
+
| `PageHeader` | Display a page title, description and actions. |
|
|
83
|
+
| `PageSection` | Group page content under a heading. |
|
|
84
|
+
| `ProfileHeader` | Display identity, metadata and actions for a profile. |
|
|
85
|
+
| `ProseContent` | Theme long-form content and rich text. |
|
|
86
|
+
| `OverlineLabel` | Add a compact heading above a group. |
|
|
87
|
+
| `QrCode` | Render a QR code from text. |
|
|
88
|
+
| `SectionHeader` | Label a section with an optional icon and actions. |
|
|
89
|
+
| `Stack` | Arrange items vertically with consistent spacing. |
|
|
90
|
+
| `StatusDot` | Display a compact visual status indicator. |
|
|
91
|
+
| `StepProgress` | Show progress through ordered steps. |
|
|
92
|
+
| `Tabs`, `NavTabs` | Switch panels or navigate between related routes. |
|
|
93
|
+
| `ThemePreview` | Preview the palette of a theme. |
|
|
94
|
+
| `Timeline` | Display a chronological sequence of events. |
|
|
95
|
+
| `TranscriptLine` | Display a speaker’s line with an optional seek control. |
|
|
96
|
+
|
|
97
|
+
### Forms & inputs
|
|
98
|
+
|
|
99
|
+
| Component | Purpose |
|
|
100
|
+
| --------------------------------------- | -------------------------------------------------------------- |
|
|
101
|
+
| `ControlSizeProvider`, `useControlSize` | Provide and read the inherited control density. |
|
|
102
|
+
| `CharacterCount` | Display text length against a limit. |
|
|
103
|
+
| `AttachmentList`, `AttachmentItem` | List attachments with metadata, status and actions. |
|
|
104
|
+
| `CalendarGrid` | Display dates in a selectable month grid. |
|
|
105
|
+
| `Checkbox` | Toggle a boolean form value. |
|
|
106
|
+
| `CodeInput` | Enter a one-time verification code. |
|
|
107
|
+
| `Combobox` | Search and choose from options in an anchored popup. |
|
|
108
|
+
| `DatePartsInput` | Enter the day, month and year in separate fields. |
|
|
109
|
+
| `DatePicker` | Choose a single date. |
|
|
110
|
+
| `DateRangePicker` | Choose a start and end date. |
|
|
111
|
+
| `DateTimePicker` | Choose a date and time together. |
|
|
112
|
+
| `Fieldset` | Group related inputs under a legend. |
|
|
113
|
+
| `FilterButton` | Show and toggle the active state of a filter. |
|
|
114
|
+
| `FilterDropdown` | Open a menu for choosing filter values. |
|
|
115
|
+
| `FormField`, `FieldHint`, `FieldError` | Associate controls with labels, hints and validation messages. |
|
|
116
|
+
| `OAuthButton` | Start sign-in with an identity provider. |
|
|
117
|
+
| `PasswordInput` | Enter a password with a visibility toggle. |
|
|
118
|
+
| `PasswordRequirements` | Show password rules and completion status. |
|
|
119
|
+
| `Radio`, `Radio.Group` | Select one option from a labelled group. |
|
|
120
|
+
| `RadioPill` | Select one option with a segmented control. |
|
|
121
|
+
| `ReorderList` | Move items up or down in a controlled list. |
|
|
122
|
+
| `SearchInput` | Enter and clear a search query. |
|
|
123
|
+
| `Select` | Choose an option with a native select. |
|
|
124
|
+
| `SelectDropdown` | Choose an option with a themed popup. |
|
|
125
|
+
| `SettingRow` | Pair a setting’s label and description with its control. |
|
|
126
|
+
| `Slider` | Adjust a numeric value within a range. |
|
|
127
|
+
| `Textarea` | Enter multi-line text. |
|
|
128
|
+
| `TextInput` | Enter single-line text with a label, hint or error. |
|
|
129
|
+
| `TimeInput` | Enter a native time value. |
|
|
130
|
+
| `Toggle` | Switch a setting on or off. |
|
|
131
|
+
| `UploadDropzone` | Choose files with a picker or drag and drop. |
|
|
132
|
+
|
|
133
|
+
### Feedback & overlays
|
|
134
|
+
|
|
135
|
+
| Component | Purpose |
|
|
136
|
+
| --------------------------- | -------------------------------------------------------- |
|
|
137
|
+
| `Skeleton` | Reserve space with a loading placeholder. |
|
|
138
|
+
| `ProgressBar` | Show progress toward a known total. |
|
|
139
|
+
| `Alert` | Display a contextual notice. |
|
|
140
|
+
| `AuthCard` | Frame an authentication form and supporting links. |
|
|
141
|
+
| `DangerZone` | Group destructive actions in a clearly labelled section. |
|
|
142
|
+
| `DetailPanel` | Show details in a panel beside the current view. |
|
|
143
|
+
| `Dialog`, `DialogActions` | Open a modal and present its actions. |
|
|
144
|
+
| `DropdownMenu` | Open an anchored menu of actions or links. |
|
|
145
|
+
| `EmptyState` | Explain an empty view and offer an action. |
|
|
146
|
+
| `ErrorBoundary` | Show a fallback after a render error. |
|
|
147
|
+
| `Popover` | Open a non-modal dialog beside its trigger. |
|
|
148
|
+
| `SideSheet` | Show a panel that slides in from the side. |
|
|
149
|
+
| `SplitPaneLayout` | Lay out independent full-height scroll areas. |
|
|
150
|
+
| `ToastProvider`, `useToast` | Provide and trigger transient notifications. |
|
|
151
|
+
| `Toolbar` | Arrange actions and filters above content. |
|
|
152
|
+
| `Tooltip` | Show contextual information about a control. |
|
|
153
|
+
|
|
154
|
+
### Tables & data
|
|
155
|
+
|
|
156
|
+
| Component | Purpose |
|
|
157
|
+
| ---------------------------------------------------------------------------------------------- | ----------------------------------------------------------- |
|
|
158
|
+
| `Calendar` | Display and edit events and availability in calendar views. |
|
|
159
|
+
| `ColumnPicker` | Control which table columns are visible. |
|
|
160
|
+
| `Pagination` | Navigate between pages of results. |
|
|
161
|
+
| `PaginationBar` | Combine paging, result count and page-size selection. |
|
|
162
|
+
| `ResourceTable` | Display typed rows with sorting and selection controls. |
|
|
163
|
+
| `Table`, `TableHead`, `TableBody`, `TableRow`, `TableHeaderCell`, `TableCell`, `TableEmptyRow` | Compose a styled semantic table. |
|
|
164
|
+
|
|
165
|
+
### Charts
|
|
166
|
+
|
|
167
|
+
| Component | Purpose |
|
|
168
|
+
| ------------------ | ----------------------------------------------------- |
|
|
169
|
+
| `AreaChart` | Show how values change across a continuous series. |
|
|
170
|
+
| `BarChart` | Compare values across categories. |
|
|
171
|
+
| `DonutChart` | Show parts of a whole in a ring. |
|
|
172
|
+
| `RadarChart` | Compare values across several axes. |
|
|
173
|
+
| `RadialBarChart` | Show values as concentric arcs. |
|
|
174
|
+
| `SparkLine` | Show a compact trend without axes. |
|
|
175
|
+
| `StackedBarChart` | Compare totals and their breakdown across categories. |
|
|
176
|
+
| `VerticalBarChart` | Compare values using vertical bars. |
|
|
177
|
+
|
|
178
|
+
### Hooks & providers
|
|
179
|
+
|
|
180
|
+
| Component | Purpose |
|
|
181
|
+
| -------------------------------------------------- | ---------------------------------------------------------------- |
|
|
182
|
+
| `useTheme`, `useApplyTheme`, `useSettings` | Read and change the active theme and its settings. |
|
|
183
|
+
| `useAnchoredPopup`, `usePopover` | Position an anchored popup or manage its trigger and open state. |
|
|
184
|
+
| `useDismiss`, `useFocusTrap`, `usePortalContainer` | Coordinate overlay dismissal, focus and portal placement. |
|
|
185
|
+
|
|
186
|
+
### Sizes
|
|
187
|
+
|
|
188
|
+
Visual sizes follow the scale `xs`, `sm`, `md`, `lg`, `xl` from smallest to
|
|
189
|
+
largest. Each component supports a subset. `controlSize` is the separate
|
|
190
|
+
`compact` or `comfortable` density setting for interactive controls.
|
|
191
|
+
|
|
192
|
+
### TypeScript
|
|
193
|
+
|
|
194
|
+
Import `ButtonVariant`, `ButtonSize`, and `SplitPaneLayoutMainProps` from
|
|
195
|
+
`@leonardaustin/ui` to type button options and props for `SplitPaneLayout.Main`.
|
|
196
|
+
|
|
197
|
+
## Themes
|
|
198
|
+
|
|
199
|
+
Use a React value with `SettingsProvider` or apply the CSS classes to a theme
|
|
200
|
+
root when using the stylesheet directly.
|
|
201
|
+
|
|
202
|
+
| Theme | React value | CSS classes |
|
|
203
|
+
| ------------------ | ------------------ | ---------------------------------- |
|
|
204
|
+
| Dark | `dark` | None (uses `:root`) |
|
|
205
|
+
| Light | `light` | `theme-light` |
|
|
206
|
+
| Light Inverted | `lightInverted` | `theme-light-inverted` |
|
|
207
|
+
| Monokai | `monokai` | `theme-monokai` |
|
|
208
|
+
| Solarized | `solarized` | `theme-solarized` |
|
|
209
|
+
| Cyber Brutal Dark | `cyberBrutalDark` | `theme-cyber-brutal-dark` |
|
|
210
|
+
| Cyber Brutal Light | `cyberBrutalLight` | `theme-cyber-brutal-light` |
|
|
211
|
+
| HashiTheme | `hashiTheme` | `theme-hashi` |
|
|
212
|
+
| Glass Dark | `glassDark` | `theme-glass`, `theme-glass-dark` |
|
|
213
|
+
| Glass Light | `glassLight` | `theme-glass`, `theme-glass-light` |
|
|
@@ -66,4 +66,3 @@ export interface AppShellProps {
|
|
|
66
66
|
* flattened `navSections` (override via `commandItems`).
|
|
67
67
|
*/
|
|
68
68
|
export declare function AppShell({ children, navSections, brand, accounts, bottomNavItems, commandItems, breadcrumbs, initialAccountIndex, onAccountChange, onSignOut, signOutPath, signOutLabel, settingsPath, settingsLabel, onOpenSettings, showCommandPalette, showCommandTrigger, commandTriggerLabel, commandShortcut, sidebarHeaderActions, topBarActions, topBarNavItems, topBarNavLabel, currentPath, onNavigate, mainClassName, className, }: AppShellProps): import("react/jsx-runtime").JSX.Element;
|
|
69
|
-
//# sourceMappingURL=AppShell.d.ts.map
|
|
@@ -9,4 +9,3 @@ export interface BreadcrumbsProps extends AppShellBreadcrumbOptions {
|
|
|
9
9
|
className?: string;
|
|
10
10
|
}
|
|
11
11
|
export declare function Breadcrumbs({ homeLabel, labels, parents, currentPath, onNavigate, className, }: BreadcrumbsProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
//# sourceMappingURL=Breadcrumbs.d.ts.map
|
|
@@ -23,4 +23,3 @@ export interface CommandPaletteProps {
|
|
|
23
23
|
* `document` (see openCommandPalette()); the shortcut also toggles it closed.
|
|
24
24
|
*/
|
|
25
25
|
export declare function CommandPalette({ items, eventName, shortcut, placeholder, emptyLabel, onNavigate, onSelect, }: CommandPaletteProps): import("react/jsx-runtime").JSX.Element | null;
|
|
26
|
-
//# sourceMappingURL=CommandPalette.d.ts.map
|
|
@@ -44,4 +44,3 @@ export interface MobileDrawerProps {
|
|
|
44
44
|
className?: string;
|
|
45
45
|
}
|
|
46
46
|
export declare function MobileDrawer({ open, onClose, items, topBarNavItems, topBarNavLabel, brand, currentPath, onNavigate, headerActions, className, }: MobileDrawerProps): import("react/jsx-runtime").JSX.Element | null;
|
|
47
|
-
//# sourceMappingURL=MobileDrawer.d.ts.map
|
|
@@ -19,4 +19,3 @@ export interface SidebarProps {
|
|
|
19
19
|
className?: string;
|
|
20
20
|
}
|
|
21
21
|
export declare function Sidebar({ navSections, brand, accounts, initialAccountIndex, onAccountChange, onSignOut, signOutPath, signOutLabel, settingsPath, settingsLabel, onOpenSettings, currentPath, onNavigate, headerActions, className, }: SidebarProps): import("react/jsx-runtime").JSX.Element;
|
|
22
|
-
//# sourceMappingURL=Sidebar.d.ts.map
|
|
@@ -27,4 +27,3 @@ export interface TopBarProps {
|
|
|
27
27
|
actions?: ReactNode;
|
|
28
28
|
}
|
|
29
29
|
export declare function TopBar({ onMobileMenuToggle, breadcrumbs, navItems, navLabel, showCommandTrigger, commandTriggerLabel, commandShortcut, currentPath, onNavigate, onCommandTrigger, actions, }: TopBarProps): import("react/jsx-runtime").JSX.Element;
|
|
30
|
-
//# sourceMappingURL=TopBar.d.ts.map
|
|
@@ -9,4 +9,3 @@ export interface CommandPaletteShortcut {
|
|
|
9
9
|
export declare const DEFAULT_COMMAND_PALETTE_SHORTCUT: CommandPaletteShortcut;
|
|
10
10
|
export declare function openCommandPalette(eventName?: string): void;
|
|
11
11
|
export declare function matchesCommandPaletteShortcut(event: KeyboardEvent, shortcut: CommandPaletteShortcut): boolean;
|
|
12
|
-
//# sourceMappingURL=commandPaletteEvents.d.ts.map
|
|
@@ -9,4 +9,3 @@ export declare function isAppShellPathActive(item: AppShellPathMatchItem, curren
|
|
|
9
9
|
export declare function handleAppShellNavigate(event: MouseEvent<HTMLAnchorElement>, path: string, onNavigate?: AppShellNavigate, onAfterNavigate?: () => void): void;
|
|
10
10
|
export declare function navigateToPath(path: string, onNavigate?: AppShellNavigate): void;
|
|
11
11
|
export {};
|
|
12
|
-
//# sourceMappingURL=navigation.d.ts.map
|
|
@@ -34,4 +34,3 @@ export interface AreaChartProps {
|
|
|
34
34
|
className?: string;
|
|
35
35
|
}
|
|
36
36
|
export declare function AreaChart({ data, height, minValue, maxValue, startAtZero, valueFormatter, tooltipValueFormatter, xLabelCount, ariaLabel, className, }: AreaChartProps): import("react/jsx-runtime").JSX.Element;
|
|
37
|
-
//# sourceMappingURL=AreaChart.d.ts.map
|
|
@@ -29,4 +29,3 @@ export interface BarChartProps {
|
|
|
29
29
|
className?: string;
|
|
30
30
|
}
|
|
31
31
|
export declare function BarChart({ data, height, maxValue, valueFormatter, labelFormatter, maxLabelLength, labelWidth, valueWidth, barHeight, gap, ariaLabel, className, }: BarChartProps): import("react/jsx-runtime").JSX.Element;
|
|
32
|
-
//# sourceMappingURL=BarChart.d.ts.map
|
|
@@ -22,4 +22,3 @@ export interface DonutChartProps {
|
|
|
22
22
|
className?: string;
|
|
23
23
|
}
|
|
24
24
|
export declare function DonutChart({ segments, size, strokeWidth, valueFormatter, percentageFormatter, showLegend, ariaLabel, className, }: DonutChartProps): import("react/jsx-runtime").JSX.Element;
|
|
25
|
-
//# sourceMappingURL=DonutChart.d.ts.map
|
|
@@ -25,4 +25,3 @@ export interface RadarChartProps {
|
|
|
25
25
|
className?: string;
|
|
26
26
|
}
|
|
27
27
|
export declare function RadarChart({ data, maxValue, size, rings, labelOffset, labelFormatter, maxLabelLength, valueFormatter, ariaLabel, className, }: RadarChartProps): import("react/jsx-runtime").JSX.Element;
|
|
28
|
-
//# sourceMappingURL=RadarChart.d.ts.map
|
|
@@ -25,4 +25,3 @@ export interface RadialBarChartProps {
|
|
|
25
25
|
className?: string;
|
|
26
26
|
}
|
|
27
27
|
export declare function RadialBarChart({ segments, size, strokeWidth, gap, valueFormatter, percentageFormatter, showLegend, ariaLabel, className, }: RadialBarChartProps): import("react/jsx-runtime").JSX.Element;
|
|
28
|
-
//# sourceMappingURL=RadialBarChart.d.ts.map
|
|
@@ -32,4 +32,3 @@ export interface SparkLineProps {
|
|
|
32
32
|
className?: string;
|
|
33
33
|
}
|
|
34
34
|
export declare function SparkLine({ data, width, height, minValue, maxValue, strokeWidth, padding, color, area, areaOpacity, ariaLabel, className, }: SparkLineProps): import("react/jsx-runtime").JSX.Element | null;
|
|
35
|
-
//# sourceMappingURL=SparkLine.d.ts.map
|
|
@@ -38,4 +38,3 @@ export interface StackedBarChartProps {
|
|
|
38
38
|
className?: string;
|
|
39
39
|
}
|
|
40
40
|
export declare function StackedBarChart({ data, segments, height, ariaLabel, tooltipRows, valueFormatter, tooltipValueFormatter, xLabelCount, barGap, minBarWidth, className, }: StackedBarChartProps): import("react/jsx-runtime").JSX.Element;
|
|
41
|
-
//# sourceMappingURL=StackedBarChart.d.ts.map
|
|
@@ -30,4 +30,3 @@ export interface VerticalBarChartProps {
|
|
|
30
30
|
className?: string;
|
|
31
31
|
}
|
|
32
32
|
export declare function VerticalBarChart({ data, height, maxValue, valueFormatter, tooltipValueFormatter, labelFormatter, maxLabelLength, xLabelCount, barGap, minBarWidth, ariaLabel, className, }: VerticalBarChartProps): import("react/jsx-runtime").JSX.Element;
|
|
33
|
-
//# sourceMappingURL=VerticalBarChart.d.ts.map
|
|
@@ -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
|
|
@@ -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 {
|
|
31
31
|
/** List of toggleable columns (exclude utility columns like select/actions). */
|
|
32
32
|
columns: ColumnDef[];
|
|
33
33
|
/** Set of currently hidden column keys. */
|
|
@@ -49,4 +49,3 @@ interface ColumnPickerProps {
|
|
|
49
49
|
}
|
|
50
50
|
export declare function ColumnPicker({ columns, hidden, onToggle, label, heading, icon, onOnly, onlyLabel, footer, }: ColumnPickerProps): import("react/jsx-runtime").JSX.Element;
|
|
51
51
|
export {};
|
|
52
|
-
//# sourceMappingURL=ColumnPicker.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ReactNode } from "react";
|
|
2
|
-
interface PaginationProps {
|
|
2
|
+
export interface PaginationProps {
|
|
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. */
|
|
@@ -17,5 +17,3 @@ interface PaginationProps {
|
|
|
17
17
|
summary?: ReactNode | ((total: number | undefined) => ReactNode);
|
|
18
18
|
}
|
|
19
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
|
|
@@ -113,4 +113,3 @@ export interface ResourceTableProps<T> {
|
|
|
113
113
|
* Markup and base styling come from the shared {@link Table} parts.
|
|
114
114
|
*/
|
|
115
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
|
|
@@ -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
|
|
@@ -4,21 +4,27 @@ export interface AccordionItem extends Omit<DisclosureProps, "open" | "defaultOp
|
|
|
4
4
|
value: string;
|
|
5
5
|
}
|
|
6
6
|
interface AccordionBaseProps {
|
|
7
|
+
/** Sections in display order. */
|
|
7
8
|
items: AccordionItem[];
|
|
9
|
+
/** Additional classes on the group. */
|
|
8
10
|
className?: string;
|
|
9
11
|
}
|
|
10
12
|
export type AccordionProps = AccordionBaseProps & ({
|
|
11
13
|
type?: "single";
|
|
12
14
|
/** Empty string means all sections are closed. */
|
|
13
15
|
value?: string;
|
|
16
|
+
/** Initially expanded item in uncontrolled single mode. */
|
|
14
17
|
defaultValue?: string;
|
|
18
|
+
/** Called with the next selection in single mode. */
|
|
15
19
|
onValueChange?: (value: string) => void;
|
|
16
20
|
} | {
|
|
17
21
|
type: "multiple";
|
|
22
|
+
/** Expanded items in controlled multiple mode. */
|
|
18
23
|
value?: string[];
|
|
24
|
+
/** Initially expanded items in uncontrolled multiple mode. */
|
|
19
25
|
defaultValue?: string[];
|
|
26
|
+
/** Called with the next selection in multiple mode. */
|
|
20
27
|
onValueChange?: (value: string[]) => void;
|
|
21
28
|
});
|
|
22
29
|
export declare function Accordion(props: AccordionProps): import("react/jsx-runtime").JSX.Element;
|
|
23
30
|
export {};
|
|
24
|
-
//# sourceMappingURL=Accordion.d.ts.map
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
type AlertType = "success" | "warning" | "error" | "info" | "neutral";
|
|
1
|
+
type AlertType = "success" | "warning" | "error" | "danger" | "info" | "neutral";
|
|
2
2
|
export interface AlertProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "title" | "children"> {
|
|
3
|
-
/**
|
|
3
|
+
/** Sets the icon and colours. "danger" and "error" are equivalent. */
|
|
4
4
|
type: AlertType;
|
|
5
5
|
/** Bold heading shown above the content. */
|
|
6
6
|
title?: string;
|
|
7
7
|
children: React.ReactNode;
|
|
8
|
-
/** Show a close button
|
|
8
|
+
/** Show a close button. The alert hides itself when no onDismiss is provided. */
|
|
9
9
|
dismissible?: boolean;
|
|
10
|
+
/** Called when the close button is pressed. The caller owns visibility when supplied. */
|
|
11
|
+
onDismiss?: () => void;
|
|
10
12
|
/** Buttons or links displayed beside the content. */
|
|
11
13
|
actions?: React.ReactNode;
|
|
12
14
|
/** Apply the alert tone to the title and body. */
|
|
@@ -14,6 +16,5 @@ export interface AlertProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "
|
|
|
14
16
|
/** Additional utility classes for the root element. */
|
|
15
17
|
className?: string;
|
|
16
18
|
}
|
|
17
|
-
export declare function Alert({ type, title, children, dismissible, className, actions, toneBody, ...rest }: AlertProps): import("react/jsx-runtime").JSX.Element | null;
|
|
19
|
+
export declare function Alert({ type, title, children, dismissible, onDismiss, className, actions, toneBody, ...rest }: AlertProps): import("react/jsx-runtime").JSX.Element | null;
|
|
18
20
|
export {};
|
|
19
|
-
//# sourceMappingURL=Alert.d.ts.map
|
|
@@ -28,4 +28,3 @@ export interface AttachmentListProps extends HTMLAttributes<HTMLUListElement> {
|
|
|
28
28
|
}
|
|
29
29
|
/** Controlled presentation only. Keep transport, scanning, authorization and send policy in the application. */
|
|
30
30
|
export declare function AttachmentList({ children, className, "aria-label": label, ...props }: AttachmentListProps): import("react/jsx-runtime").JSX.Element;
|
|
31
|
-
//# sourceMappingURL=AttachmentList.d.ts.map
|
|
@@ -3,6 +3,7 @@ export interface AudioPlayerHandle {
|
|
|
3
3
|
seekTo: (seconds: number) => void;
|
|
4
4
|
}
|
|
5
5
|
export type AudioPart = "skipBack" | "play" | "skipForward" | "time" | "currentTime" | "progress" | "duration" | "speed" | "mute" | "volume" | "download";
|
|
6
|
+
export type AudioPlayerVariant = "plain" | "card";
|
|
6
7
|
export interface AudioPlayerProps {
|
|
7
8
|
src: string;
|
|
8
9
|
/** Accessible group name; visible only with variant="card". */
|
|
@@ -14,7 +15,7 @@ export interface AudioPlayerProps {
|
|
|
14
15
|
/** Download filename, used when downloadHref is set. */
|
|
15
16
|
downloadName?: string;
|
|
16
17
|
/** Plain controls by default; card adds a bordered surface and visible title. */
|
|
17
|
-
variant?:
|
|
18
|
+
variant?: AudioPlayerVariant;
|
|
18
19
|
/** Positive finite skip interval in seconds; false hides skip controls. */
|
|
19
20
|
skipSeconds?: number | false;
|
|
20
21
|
/** Show an optional mute toggle. Defaults to false. */
|
|
@@ -32,4 +33,3 @@ export interface AudioPlayerProps {
|
|
|
32
33
|
controls?: readonly AudioPart[];
|
|
33
34
|
}
|
|
34
35
|
export declare const AudioPlayer: import("react").ForwardRefExoticComponent<AudioPlayerProps & import("react").RefAttributes<AudioPlayerHandle>>;
|
|
35
|
-
//# sourceMappingURL=AudioPlayer.d.ts.map
|
|
@@ -30,7 +30,8 @@
|
|
|
30
30
|
* ```
|
|
31
31
|
*/
|
|
32
32
|
import type { ReactNode } from "react";
|
|
33
|
-
|
|
33
|
+
export type AuthorBylineSize = "sm" | "md";
|
|
34
|
+
export interface AuthorBylineProps {
|
|
34
35
|
/** Author display name. */
|
|
35
36
|
name: string;
|
|
36
37
|
/**
|
|
@@ -48,10 +49,8 @@ interface AuthorBylineProps {
|
|
|
48
49
|
* - "sm" (default): text-2xs for both name and meta — used in cards
|
|
49
50
|
* - "md": text-xs name / text-2xs meta — used in article and content pages
|
|
50
51
|
*/
|
|
51
|
-
size?:
|
|
52
|
+
size?: AuthorBylineSize;
|
|
52
53
|
/** Additional utility classes for the root container. */
|
|
53
54
|
className?: string;
|
|
54
55
|
}
|
|
55
56
|
export declare function AuthorByline({ name, meta, nameAppend, size, className, }: AuthorBylineProps): import("react/jsx-runtime").JSX.Element;
|
|
56
|
-
export {};
|
|
57
|
-
//# sourceMappingURL=AuthorByline.d.ts.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
+
export type AvatarSize = "xs" | "sm" | "md" | "lg";
|
|
1
2
|
export interface AvatarProps {
|
|
2
3
|
/** Person's name; yields the initials, a stable background colour and the accessible label. */
|
|
3
4
|
name: string;
|
|
4
5
|
/** Image URL; when set, the photo replaces the initials. */
|
|
5
6
|
src?: string;
|
|
6
7
|
/** Avatar size. Defaults to "md". */
|
|
7
|
-
size?:
|
|
8
|
+
size?: AvatarSize;
|
|
8
9
|
/** Additional utility classes for the root element. */
|
|
9
10
|
className?: string;
|
|
10
11
|
}
|
|
11
12
|
export declare function Avatar({ name, src, size, className }: AvatarProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
//# sourceMappingURL=Avatar.d.ts.map
|
|
@@ -58,4 +58,3 @@ export interface BadgeProps extends Omit<HTMLAttributes<HTMLElement>, "color" |
|
|
|
58
58
|
children?: ReactNode;
|
|
59
59
|
}
|
|
60
60
|
export declare const Badge: import("react").ForwardRefExoticComponent<BadgeProps & import("react").RefAttributes<HTMLElement>>;
|
|
61
|
-
//# sourceMappingURL=Badge.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Button — the primary interactive element across the template.
|
|
3
3
|
*
|
|
4
|
-
* Supports
|
|
4
|
+
* Supports six visual variants, four sizes, loading states, and
|
|
5
5
|
* responsive icon+label patterns via the `icon` prop.
|
|
6
6
|
*
|
|
7
7
|
* ## Responsive icon+label pattern
|
|
@@ -35,23 +35,26 @@
|
|
|
35
35
|
*
|
|
36
36
|
* ## Toggle buttons
|
|
37
37
|
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
* Italic in a formatting toolbar.
|
|
38
|
+
* `secondary` and `ghost` toggles use an accent tint and ring. An `icon`
|
|
39
|
+
* toggle uses a neutral hover surface and keeps caller-supplied icon colors.
|
|
41
40
|
*/
|
|
42
41
|
import { type ButtonHTMLAttributes, type ElementType, type ReactNode } from "react";
|
|
43
42
|
import { type ControlSize } from "../../providers/ControlSizeContext";
|
|
44
|
-
|
|
45
|
-
type
|
|
43
|
+
/** Visual treatment for Button. */
|
|
44
|
+
export type ButtonVariant = "primary" | "secondary" | "danger" | "ghost" | "icon" | "link";
|
|
45
|
+
/** Visual size for Button. */
|
|
46
|
+
export type ButtonSize = "xs" | "sm" | "md" | "lg";
|
|
46
47
|
export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
47
48
|
/**
|
|
48
49
|
* Visual style. `primary` for the main action, `secondary` (default) for
|
|
49
50
|
* neutral actions, `danger` for destructive ones, `ghost` for low-emphasis
|
|
50
|
-
* inline actions,
|
|
51
|
+
* inline actions, `icon` for square icon-only buttons, and `link` for
|
|
52
|
+
* unpadded text actions in compact mode. Comfortable mode gives link
|
|
53
|
+
* actions the same minimum 44px hit area as other controls.
|
|
51
54
|
*/
|
|
52
|
-
variant?:
|
|
53
|
-
/** Control height and padding. Defaults to `md`. */
|
|
54
|
-
size?:
|
|
55
|
+
variant?: ButtonVariant;
|
|
56
|
+
/** Control height and padding. For `link`, controls text and icon size. Defaults to `md`. */
|
|
57
|
+
size?: ButtonSize;
|
|
55
58
|
/** Inherit ControlSizeProvider or opt into a minimum 44px hit area. */
|
|
56
59
|
controlSize?: ControlSize;
|
|
57
60
|
/**
|
|
@@ -59,6 +62,8 @@ export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
|
59
62
|
* Implies `disabled`.
|
|
60
63
|
*/
|
|
61
64
|
loading?: boolean;
|
|
65
|
+
/** Toggle state, announced via aria-pressed and styled when true. */
|
|
66
|
+
pressed?: boolean;
|
|
62
67
|
/**
|
|
63
68
|
* Optional Lucide icon component rendered before children.
|
|
64
69
|
* Pass the component itself (e.g. `Trash2`), not JSX.
|
|
@@ -78,5 +83,3 @@ export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
|
78
83
|
children?: ReactNode;
|
|
79
84
|
}
|
|
80
85
|
export declare const Button: import("react").ForwardRefExoticComponent<ButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
81
|
-
export {};
|
|
82
|
-
//# sourceMappingURL=Button.d.ts.map
|
|
@@ -189,4 +189,3 @@ export interface CalendarProps<T = unknown, A = unknown> {
|
|
|
189
189
|
"aria-label"?: string;
|
|
190
190
|
}
|
|
191
191
|
export declare function Calendar<T = unknown, A = unknown>({ events, availability, resources, view: viewProp, defaultView, onViewChange, views, date: dateProp, defaultDate, onDateChange, onRangeChange, weekStartsOn, workWeekDays, agendaDays, slotMinTime, slotMaxTime, slotDuration, slotLabelInterval, sharedTimeAxis, hourHeight, timelineHourWidth, resourceMinWidth, scrollToTime, scrollAlign, now: nowProp, nowIndicator, editLayer, readOnly, selectable, clickCreateDuration, shadeOutsideAvailability, onCreate, onEventClick, onEventChange, onAvailabilityClick, onAvailabilityChange, validate, onInvalidChange, onDateClick, renderEvent, monthMaxEvents, agendaShowAvailability, display, narrowView, narrowWidth, locale, timeZone, hour12, labels: labelOverrides, toolbar, toolbarActions, loading, className, "aria-label": ariaLabel, }: CalendarProps<T, A>): import("react/jsx-runtime").JSX.Element;
|
|
192
|
-
//# sourceMappingURL=Calendar.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
interface CalendarGridProps {
|
|
1
|
+
export interface CalendarGridProps {
|
|
2
2
|
/** Explicit zone; day buttons return real instants at midnight in this zone. */
|
|
3
3
|
timeZone?: string;
|
|
4
4
|
/** Currently displayed month (year, month). */
|
|
@@ -25,5 +25,3 @@ interface CalendarGridProps {
|
|
|
25
25
|
maxDate?: Date;
|
|
26
26
|
}
|
|
27
27
|
export declare function CalendarGrid({ year, month, timeZone, selected, rangeStart, rangeEnd, hoverDate, onSelect, onMonthChange, onHover, minDate, maxDate, }: CalendarGridProps): import("react/jsx-runtime").JSX.Element;
|
|
28
|
-
export {};
|
|
29
|
-
//# sourceMappingURL=CalendarGrid.d.ts.map
|