@getufy/flint-ui-react 0.2.2 → 0.3.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 +134 -39
- package/dist/components/FlintAccordion.d.ts +19 -5
- package/dist/components/FlintAccordionActions.d.ts +6 -2
- package/dist/components/FlintAccordionDetails.d.ts +8 -2
- package/dist/components/FlintAccordionSummary.d.ts +11 -5
- package/dist/components/FlintAlert.d.ts +21 -5
- package/dist/components/FlintAppBar.d.ts +16 -2
- package/dist/components/FlintAutocomplete.d.ts +22 -5
- package/dist/components/FlintAvatar.d.ts +13 -2
- package/dist/components/FlintBackdrop.d.ts +19 -5
- package/dist/components/FlintBadge.d.ts +18 -2
- package/dist/components/FlintBottomNavigation.d.ts +16 -5
- package/dist/components/FlintBottomNavigationAction.d.ts +17 -2
- package/dist/components/FlintBox.d.ts +67 -5
- package/dist/components/FlintBreadcrumbs.d.ts +18 -2
- package/dist/components/FlintButton.d.ts +11 -2
- package/dist/components/FlintButtonGroup.d.ts +3 -2
- package/dist/components/FlintCard.d.ts +5 -2
- package/dist/components/FlintCardActionArea.d.ts +3 -2
- package/dist/components/FlintCardActions.d.ts +3 -2
- package/dist/components/FlintCardContent.d.ts +3 -2
- package/dist/components/FlintCardHeader.d.ts +12 -2
- package/dist/components/FlintCardMedia.d.ts +6 -2
- package/dist/components/FlintCarousel.d.ts +24 -5
- package/dist/components/FlintCarouselContent.d.ts +9 -2
- package/dist/components/FlintCarouselItem.d.ts +3 -2
- package/dist/components/FlintCarouselNext.d.ts +12 -2
- package/dist/components/FlintCarouselPrevious.d.ts +12 -2
- package/dist/components/FlintCheckbox.d.ts +33 -5
- package/dist/components/FlintChip.d.ts +29 -6
- package/dist/components/FlintCircularProgress.d.ts +18 -2
- package/dist/components/FlintCollapsible.d.ts +22 -5
- package/dist/components/FlintCollapsibleContent.d.ts +11 -2
- package/dist/components/FlintCollapsibleTrigger.d.ts +13 -2
- package/dist/components/FlintCommand.d.ts +11 -5
- package/dist/components/FlintCommandDialog.d.ts +17 -5
- package/dist/components/FlintCommandEmpty.d.ts +9 -2
- package/dist/components/FlintCommandGroup.d.ts +11 -2
- package/dist/components/FlintCommandInput.d.ts +11 -2
- package/dist/components/FlintCommandItem.d.ts +22 -5
- package/dist/components/FlintCommandList.d.ts +8 -2
- package/dist/components/FlintCommandSeparator.d.ts +6 -2
- package/dist/components/FlintCommandShortcut.d.ts +9 -2
- package/dist/components/FlintContainer.d.ts +9 -2
- package/dist/components/FlintCopyButton.d.ts +32 -6
- package/dist/components/FlintDateField.d.ts +34 -6
- package/dist/components/FlintDatePicker.d.ts +35 -5
- package/dist/components/FlintDatePickerCalendar.d.ts +20 -5
- package/dist/components/FlintDateRangeCalendar.d.ts +17 -5
- package/dist/components/FlintDateRangePicker.d.ts +36 -5
- package/dist/components/FlintDesktopTimePicker.d.ts +29 -5
- package/dist/components/FlintDialog.d.ts +23 -5
- package/dist/components/FlintDialogActions.d.ts +9 -2
- package/dist/components/FlintDialogContent.d.ts +6 -2
- package/dist/components/FlintDialogContentText.d.ts +6 -2
- package/dist/components/FlintDialogTitle.d.ts +7 -2
- package/dist/components/FlintDigitalClock.d.ts +17 -5
- package/dist/components/FlintDivider.d.ts +16 -2
- package/dist/components/FlintDrawer.d.ts +27 -5
- package/dist/components/FlintEmpty.d.ts +10 -2
- package/dist/components/FlintEmptyContent.d.ts +8 -2
- package/dist/components/FlintEmptyDescription.d.ts +8 -2
- package/dist/components/FlintEmptyHeader.d.ts +8 -2
- package/dist/components/FlintEmptyMedia.d.ts +10 -2
- package/dist/components/FlintEmptyTitle.d.ts +8 -2
- package/dist/components/FlintFab.d.ts +15 -2
- package/dist/components/FlintFormatDate.d.ts +39 -2
- package/dist/components/FlintFormatNumber.d.ts +39 -2
- package/dist/components/FlintGrid.d.ts +35 -2
- package/dist/components/FlintHoverCard.d.ts +13 -2
- package/dist/components/FlintHoverCardContent.d.ts +15 -2
- package/dist/components/FlintHoverCardTrigger.d.ts +9 -2
- package/dist/components/FlintImageComparer.d.ts +19 -5
- package/dist/components/FlintImageList.d.ts +19 -2
- package/dist/components/FlintImageListItem.d.ts +21 -2
- package/dist/components/FlintImageListItemBar.d.ts +12 -2
- package/dist/components/FlintInput.d.ts +44 -6
- package/dist/components/FlintInputOtp.d.ts +36 -6
- package/dist/components/FlintInputOtpGroup.d.ts +9 -2
- package/dist/components/FlintInputOtpSeparator.d.ts +7 -2
- package/dist/components/FlintInputOtpSlot.d.ts +15 -2
- package/dist/components/FlintItem.d.ts +15 -2
- package/dist/components/FlintItemActions.d.ts +9 -2
- package/dist/components/FlintItemContent.d.ts +8 -2
- package/dist/components/FlintItemDescription.d.ts +8 -2
- package/dist/components/FlintItemFooter.d.ts +10 -2
- package/dist/components/FlintItemGroup.d.ts +8 -2
- package/dist/components/FlintItemHeader.d.ts +10 -2
- package/dist/components/FlintItemMedia.d.ts +10 -2
- package/dist/components/FlintItemSeparator.d.ts +6 -2
- package/dist/components/FlintItemTitle.d.ts +8 -2
- package/dist/components/FlintKbd.d.ts +15 -2
- package/dist/components/FlintKbdGroup.d.ts +9 -2
- package/dist/components/FlintLinearProgress.d.ts +16 -2
- package/dist/components/FlintLink.d.ts +27 -2
- package/dist/components/FlintList.d.ts +10 -2
- package/dist/components/FlintListItem.d.ts +6 -2
- package/dist/components/FlintListItemAvatar.d.ts +6 -2
- package/dist/components/FlintListItemButton.d.ts +10 -2
- package/dist/components/FlintListItemIcon.d.ts +6 -2
- package/dist/components/FlintListItemText.d.ts +10 -2
- package/dist/components/FlintListSubheader.d.ts +6 -2
- package/dist/components/FlintMenu.d.ts +24 -5
- package/dist/components/FlintMenuDivider.d.ts +6 -2
- package/dist/components/FlintMenuGroup.d.ts +11 -2
- package/dist/components/FlintMenuItem.d.ts +23 -5
- package/dist/components/FlintMenubar.d.ts +11 -2
- package/dist/components/FlintMenubarCheckboxItem.d.ts +20 -5
- package/dist/components/FlintMenubarContent.d.ts +13 -5
- package/dist/components/FlintMenubarGroup.d.ts +8 -2
- package/dist/components/FlintMenubarItem.d.ts +21 -5
- package/dist/components/FlintMenubarMenu.d.ts +8 -2
- package/dist/components/FlintMenubarRadioGroup.d.ts +13 -5
- package/dist/components/FlintMenubarRadioItem.d.ts +18 -5
- package/dist/components/FlintMenubarSeparator.d.ts +6 -2
- package/dist/components/FlintMenubarShortcut.d.ts +8 -2
- package/dist/components/FlintMenubarSub.d.ts +7 -2
- package/dist/components/FlintMenubarSubContent.d.ts +9 -2
- package/dist/components/FlintMenubarSubTrigger.d.ts +14 -2
- package/dist/components/FlintMenubarTrigger.d.ts +12 -2
- package/dist/components/FlintMobileStepper.d.ts +21 -2
- package/dist/components/FlintMobileTimePicker.d.ts +24 -5
- package/dist/components/FlintMultiSectionDigitalClock.d.ts +17 -5
- package/dist/components/FlintNavigationMenu.d.ts +8 -2
- package/dist/components/FlintNavigationMenuContent.d.ts +20 -5
- package/dist/components/FlintNavigationMenuItem.d.ts +18 -6
- package/dist/components/FlintNavigationMenuLink.d.ts +16 -2
- package/dist/components/FlintNavigationMenuList.d.ts +12 -2
- package/dist/components/FlintNavigationMenuTrigger.d.ts +12 -5
- package/dist/components/FlintPagination.d.ts +48 -5
- package/dist/components/FlintPaper.d.ts +13 -2
- package/dist/components/FlintRadio.d.ts +25 -5
- package/dist/components/FlintRadioGroup.d.ts +27 -5
- package/dist/components/FlintRangeSlider.d.ts +23 -5
- package/dist/components/FlintRating.d.ts +31 -5
- package/dist/components/FlintRelativeTime.d.ts +17 -2
- package/dist/components/FlintResizableGroup.d.ts +16 -7
- package/dist/components/FlintResizableHandle.d.ts +8 -2
- package/dist/components/FlintResizablePanel.d.ts +15 -2
- package/dist/components/FlintRichTreeView.d.ts +50 -8
- package/dist/components/FlintScrollArea.d.ts +15 -2
- package/dist/components/FlintScrollBar.d.ts +11 -2
- package/dist/components/FlintSelect.d.ts +40 -5
- package/dist/components/FlintSimpleTreeView.d.ts +28 -6
- package/dist/components/FlintSingleInputDateRangeField.d.ts +31 -6
- package/dist/components/FlintSkeleton.d.ts +18 -2
- package/dist/components/FlintSlider.d.ts +35 -5
- package/dist/components/FlintSnackbar.d.ts +36 -6
- package/dist/components/FlintSpeedDial.d.ts +28 -2
- package/dist/components/FlintSpeedDialAction.d.ts +24 -5
- package/dist/components/FlintSplitPanel.d.ts +31 -5
- package/dist/components/FlintStack.d.ts +13 -2
- package/dist/components/FlintStaticTimePicker.d.ts +14 -5
- package/dist/components/FlintStep.d.ts +39 -5
- package/dist/components/FlintStepConnector.d.ts +7 -2
- package/dist/components/FlintStepContent.d.ts +10 -2
- package/dist/components/FlintStepLabel.d.ts +15 -2
- package/dist/components/FlintStepper.d.ts +20 -5
- package/dist/components/FlintSwitch.d.ts +33 -5
- package/dist/components/FlintTab.d.ts +23 -5
- package/dist/components/FlintTabList.d.ts +14 -5
- package/dist/components/FlintTabPanel.d.ts +5 -2
- package/dist/components/FlintTable.d.ts +8 -2
- package/dist/components/FlintTableBody.d.ts +8 -2
- package/dist/components/FlintTableCell.d.ts +12 -2
- package/dist/components/FlintTableContainer.d.ts +10 -2
- package/dist/components/FlintTableFooter.d.ts +6 -2
- package/dist/components/FlintTableHead.d.ts +6 -2
- package/dist/components/FlintTablePagination.d.ts +32 -6
- package/dist/components/FlintTableRow.d.ts +10 -2
- package/dist/components/FlintTableSortLabel.d.ts +7 -2
- package/dist/components/FlintTabs.d.ts +27 -5
- package/dist/components/FlintTextField.d.ts +36 -6
- package/dist/components/FlintTextarea.d.ts +52 -6
- package/dist/components/FlintTimeClock.d.ts +21 -6
- package/dist/components/FlintTimeField.d.ts +31 -6
- package/dist/components/FlintTimePicker.d.ts +26 -5
- package/dist/components/FlintToaster.d.ts +13 -2
- package/dist/components/FlintToggle.d.ts +27 -5
- package/dist/components/FlintToggleButton.d.ts +20 -5
- package/dist/components/FlintToggleButtonGroup.d.ts +17 -5
- package/dist/components/FlintTooltip.d.ts +19 -2
- package/dist/components/FlintTransferList.d.ts +25 -5
- package/dist/components/FlintTreeItem.d.ts +34 -6
- package/dist/components/FlintTypography.d.ts +22 -2
- package/dist/components/FlintVisuallyHidden.d.ts +11 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -8,45 +8,153 @@ React wrappers for [`@getufy/flint-ui`](https://www.npmjs.com/package/@getufy/fl
|
|
|
8
8
|
## Installation
|
|
9
9
|
|
|
10
10
|
```bash
|
|
11
|
-
npm install @getufy/flint-ui
|
|
11
|
+
npm install @getufy/flint-ui @getufy/flint-ui-react
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
Peer dependencies: `react ^18 || ^19`, `@getufy/flint-ui ^0.2.2`
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
## Setup
|
|
17
|
+
|
|
18
|
+
Import the theme once in your app entry point:
|
|
19
|
+
|
|
20
|
+
```ts
|
|
17
21
|
import '@getufy/flint-ui/theme.css';
|
|
18
22
|
```
|
|
19
23
|
|
|
20
|
-
##
|
|
24
|
+
## Resources
|
|
21
25
|
|
|
22
|
-
|
|
23
|
-
|
|
26
|
+
- **[Full documentation](https://getufy.github.io/flint-ui/)** — component docs, guides, and examples
|
|
27
|
+
- **[React guide](https://getufy.github.io/flint-ui/react)** — React-specific usage and patterns
|
|
28
|
+
- **[Live Storybook](https://getufy.github.io/flint-ui/storybook/)** — interactive component playground
|
|
24
29
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}
|
|
30
|
+
## Subpath imports — use these for tree-shaking
|
|
31
|
+
|
|
32
|
+
**Always import from subpaths, not the barrel.** Each component is its own entry point; your bundler only includes the components you actually import.
|
|
33
|
+
|
|
34
|
+
```tsx
|
|
35
|
+
// Load only what you need
|
|
36
|
+
import { FlintButton } from '@getufy/flint-ui-react/button';
|
|
37
|
+
import { FlintSelect, FlintOption } from '@getufy/flint-ui-react/select';
|
|
38
|
+
import { FlintTabs, FlintTab, FlintTabPanel } from '@getufy/flint-ui-react/tabs';
|
|
32
39
|
```
|
|
33
40
|
|
|
34
|
-
###
|
|
41
|
+
### Why subpath imports matter
|
|
35
42
|
|
|
36
|
-
|
|
43
|
+
Lit's `@customElement()` decorator is a **side effect** — it registers the custom element globally as soon as the module is evaluated. The barrel import (`@getufy/flint-ui-react`) causes all 60+ components to register, even ones you never render.
|
|
37
44
|
|
|
38
45
|
```tsx
|
|
46
|
+
// Registers ALL 60+ components (~897 KB uncompressed)
|
|
47
|
+
import { FlintButton } from '@getufy/flint-ui-react';
|
|
48
|
+
|
|
49
|
+
// Registers only the button component
|
|
39
50
|
import { FlintButton } from '@getufy/flint-ui-react/button';
|
|
40
|
-
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
### Available subpaths
|
|
54
|
+
|
|
55
|
+
| Subpath | Exports include |
|
|
56
|
+
|---|---|
|
|
57
|
+
| `@getufy/flint-ui-react/accordion` | `FlintAccordion`, `FlintAccordionItem` |
|
|
58
|
+
| `@getufy/flint-ui-react/alert` | `FlintAlert` |
|
|
59
|
+
| `@getufy/flint-ui-react/app-bar` | `FlintAppBar` |
|
|
60
|
+
| `@getufy/flint-ui-react/autocomplete` | `FlintAutocomplete` |
|
|
61
|
+
| `@getufy/flint-ui-react/avatar` | `FlintAvatar` |
|
|
62
|
+
| `@getufy/flint-ui-react/backdrop` | `FlintBackdrop` |
|
|
63
|
+
| `@getufy/flint-ui-react/badge` | `FlintBadge` |
|
|
64
|
+
| `@getufy/flint-ui-react/bottom-navigation` | `FlintBottomNavigation`, `FlintBottomNavigationItem` |
|
|
65
|
+
| `@getufy/flint-ui-react/box` | `FlintBox` |
|
|
66
|
+
| `@getufy/flint-ui-react/breadcrumbs` | `FlintBreadcrumbs`, `FlintBreadcrumbItem` |
|
|
67
|
+
| `@getufy/flint-ui-react/button` | `FlintButton` |
|
|
68
|
+
| `@getufy/flint-ui-react/card` | `FlintCard` |
|
|
69
|
+
| `@getufy/flint-ui-react/carousel` | `FlintCarousel`, `FlintCarouselItem` |
|
|
70
|
+
| `@getufy/flint-ui-react/checkbox` | `FlintCheckbox` |
|
|
71
|
+
| `@getufy/flint-ui-react/chip` | `FlintChip` |
|
|
72
|
+
| `@getufy/flint-ui-react/collapsible` | `FlintCollapsible`, `FlintCollapsibleTrigger`, `FlintCollapsibleContent` |
|
|
73
|
+
| `@getufy/flint-ui-react/command` | `FlintCommand`, `FlintCommandInput`, `FlintCommandList`, `FlintCommandItem` |
|
|
74
|
+
| `@getufy/flint-ui-react/container` | `FlintContainer` |
|
|
75
|
+
| `@getufy/flint-ui-react/copy-button` | `FlintCopyButton` |
|
|
76
|
+
| `@getufy/flint-ui-react/date-field` | `FlintDateField` |
|
|
77
|
+
| `@getufy/flint-ui-react/date-picker` | `FlintDatePicker` |
|
|
78
|
+
| `@getufy/flint-ui-react/date-range-picker` | `FlintDateRangePicker` |
|
|
79
|
+
| `@getufy/flint-ui-react/dialog` | `FlintDialog` |
|
|
80
|
+
| `@getufy/flint-ui-react/divider` | `FlintDivider` |
|
|
81
|
+
| `@getufy/flint-ui-react/drawer` | `FlintDrawer` |
|
|
82
|
+
| `@getufy/flint-ui-react/empty` | `FlintEmpty` |
|
|
83
|
+
| `@getufy/flint-ui-react/fab` | `FlintFab` |
|
|
84
|
+
| `@getufy/flint-ui-react/format-date` | `FlintFormatDate` |
|
|
85
|
+
| `@getufy/flint-ui-react/format-number` | `FlintFormatNumber` |
|
|
86
|
+
| `@getufy/flint-ui-react/grid` | `FlintGrid`, `FlintGridItem` |
|
|
87
|
+
| `@getufy/flint-ui-react/hover-card` | `FlintHoverCard`, `FlintHoverCardTrigger`, `FlintHoverCardContent` |
|
|
88
|
+
| `@getufy/flint-ui-react/image-comparer` | `FlintImageComparer` |
|
|
89
|
+
| `@getufy/flint-ui-react/image-list` | `FlintImageList`, `FlintImageListItem` |
|
|
90
|
+
| `@getufy/flint-ui-react/input` | `FlintInput` |
|
|
91
|
+
| `@getufy/flint-ui-react/input-otp` | `FlintInputOtp`, `FlintInputOtpGroup`, `FlintInputOtpSlot` |
|
|
92
|
+
| `@getufy/flint-ui-react/item` | `FlintItem` |
|
|
93
|
+
| `@getufy/flint-ui-react/kbd` | `FlintKbd` |
|
|
94
|
+
| `@getufy/flint-ui-react/link` | `FlintLink` |
|
|
95
|
+
| `@getufy/flint-ui-react/list` | `FlintList`, `FlintListItem` |
|
|
96
|
+
| `@getufy/flint-ui-react/menu` | `FlintMenu`, `FlintMenuItem` |
|
|
97
|
+
| `@getufy/flint-ui-react/menubar` | `FlintMenubar`, `FlintMenubarItem` |
|
|
98
|
+
| `@getufy/flint-ui-react/navigation-menu` | `FlintNavigationMenu`, `FlintNavigationMenuItem` |
|
|
99
|
+
| `@getufy/flint-ui-react/pagination` | `FlintPagination` |
|
|
100
|
+
| `@getufy/flint-ui-react/paper` | `FlintPaper` |
|
|
101
|
+
| `@getufy/flint-ui-react/progress` | `FlintProgress` |
|
|
102
|
+
| `@getufy/flint-ui-react/radio` | `FlintRadio`, `FlintRadioGroup` |
|
|
103
|
+
| `@getufy/flint-ui-react/rating` | `FlintRating` |
|
|
104
|
+
| `@getufy/flint-ui-react/relative-time` | `FlintRelativeTime` |
|
|
105
|
+
| `@getufy/flint-ui-react/resizable` | `FlintResizable`, `FlintResizablePanel`, `FlintResizableHandle` |
|
|
106
|
+
| `@getufy/flint-ui-react/scroll-area` | `FlintScrollArea` |
|
|
107
|
+
| `@getufy/flint-ui-react/select` | `FlintSelect`, `FlintOption` |
|
|
108
|
+
| `@getufy/flint-ui-react/skeleton` | `FlintSkeleton` |
|
|
109
|
+
| `@getufy/flint-ui-react/slider` | `FlintSlider` |
|
|
110
|
+
| `@getufy/flint-ui-react/snackbar` | `FlintSnackbar` |
|
|
111
|
+
| `@getufy/flint-ui-react/sonner` | `FlintSonner` |
|
|
112
|
+
| `@getufy/flint-ui-react/speed-dial` | `FlintSpeedDial`, `FlintSpeedDialAction` |
|
|
113
|
+
| `@getufy/flint-ui-react/split-panel` | `FlintSplitPanel` |
|
|
114
|
+
| `@getufy/flint-ui-react/stack` | `FlintStack` |
|
|
115
|
+
| `@getufy/flint-ui-react/stepper` | `FlintStepper`, `FlintStepperItem` |
|
|
116
|
+
| `@getufy/flint-ui-react/switch` | `FlintSwitch` |
|
|
117
|
+
| `@getufy/flint-ui-react/table` | `FlintTable`, `FlintTableRow`, `FlintTableCell` |
|
|
118
|
+
| `@getufy/flint-ui-react/tabs` | `FlintTabs`, `FlintTab`, `FlintTabPanel` |
|
|
119
|
+
| `@getufy/flint-ui-react/text-field` | `FlintTextField` |
|
|
120
|
+
| `@getufy/flint-ui-react/textarea` | `FlintTextarea` |
|
|
121
|
+
| `@getufy/flint-ui-react/time-picker` | `FlintTimePicker` |
|
|
122
|
+
| `@getufy/flint-ui-react/toggle` | `FlintToggle`, `FlintToggleGroup` |
|
|
123
|
+
| `@getufy/flint-ui-react/tooltip` | `FlintTooltip` |
|
|
124
|
+
| `@getufy/flint-ui-react/transfer-list` | `FlintTransferList` |
|
|
125
|
+
| `@getufy/flint-ui-react/tree-view` | `FlintTreeView`, `FlintTreeItem` |
|
|
126
|
+
| `@getufy/flint-ui-react/typography` | `FlintTypography` |
|
|
127
|
+
| `@getufy/flint-ui-react/visually-hidden` | `FlintVisuallyHidden` |
|
|
128
|
+
|
|
129
|
+
For exact named exports in any subpath, check the TypeScript declarations in `node_modules/@getufy/flint-ui-react/dist/<name>.d.ts`.
|
|
130
|
+
|
|
131
|
+
## Basic usage
|
|
132
|
+
|
|
133
|
+
```tsx
|
|
134
|
+
// main.tsx
|
|
135
|
+
import '@getufy/flint-ui/theme.css';
|
|
136
|
+
import '@getufy/flint-ui/suppress-warnings'; // optional — see below
|
|
137
|
+
|
|
138
|
+
// MyComponent.tsx
|
|
139
|
+
import { FlintButton } from '@getufy/flint-ui-react/button';
|
|
140
|
+
|
|
141
|
+
export function MyComponent() {
|
|
142
|
+
return (
|
|
143
|
+
<FlintButton variant="filled" onFlintClick={() => console.log('clicked')}>
|
|
144
|
+
Click me
|
|
145
|
+
</FlintButton>
|
|
146
|
+
);
|
|
147
|
+
}
|
|
41
148
|
```
|
|
42
149
|
|
|
43
150
|
### Events
|
|
44
151
|
|
|
45
|
-
Custom events
|
|
152
|
+
Custom events map to camelCase `on*` props:
|
|
46
153
|
|
|
47
154
|
| Lit event | React prop |
|
|
48
|
-
|
|
155
|
+
|---|---|
|
|
49
156
|
| `flint-change` | `onFlintChange` |
|
|
157
|
+
| `flint-click` | `onFlintClick` |
|
|
50
158
|
| `flint-menu-close` | `onFlintMenuClose` |
|
|
51
159
|
| `close` | `onClose` |
|
|
52
160
|
|
|
@@ -57,30 +165,17 @@ Custom events use `onEventName` props:
|
|
|
57
165
|
/>
|
|
58
166
|
```
|
|
59
167
|
|
|
60
|
-
|
|
168
|
+
## Suppressing the Lit dev mode warning
|
|
61
169
|
|
|
62
|
-
|
|
170
|
+
In development, Lit prints a console warning about running in dev mode. To silence it, add this import **before any component imports** in your app entry point:
|
|
63
171
|
|
|
64
|
-
```
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
{ value: 'apple', label: 'Apple' },
|
|
69
|
-
{ value: 'banana', label: 'Banana' },
|
|
70
|
-
]}
|
|
71
|
-
/>
|
|
72
|
-
```
|
|
73
|
-
|
|
74
|
-
## Peer Dependencies
|
|
75
|
-
|
|
76
|
-
- `react` ^18.0.0 || ^19.0.0
|
|
77
|
-
- `@getufy/flint-ui` ^0.2.0
|
|
78
|
-
|
|
79
|
-
## Documentation
|
|
172
|
+
```ts
|
|
173
|
+
// main.tsx — must be first
|
|
174
|
+
import '@getufy/flint-ui/suppress-warnings';
|
|
175
|
+
import '@getufy/flint-ui/theme.css';
|
|
80
176
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
- [Live Storybook](https://getufy.github.io/flint-ui/storybook/)
|
|
177
|
+
// component imports after...
|
|
178
|
+
```
|
|
84
179
|
|
|
85
180
|
## License
|
|
86
181
|
|
|
@@ -1,7 +1,21 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type EventName } from '@lit/react';
|
|
3
2
|
import { FlintAccordion as FlintAccordionElement } from '@getufy/flint-ui/accordion/flint-accordion';
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
|
|
3
|
+
export interface FlintAccordionChangeDetail {
|
|
4
|
+
expanded: boolean;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Accordion: the wrapper for grouping related components.
|
|
8
|
+
*
|
|
9
|
+
* @slot - FlintAccordionSummary and FlintAccordionDetails.
|
|
10
|
+
*/
|
|
11
|
+
export interface FlintAccordionProps extends React.HTMLAttributes<FlintAccordionElement> {
|
|
12
|
+
/** If true, expands the accordion by default. */
|
|
13
|
+
expanded?: boolean;
|
|
14
|
+
/** Initial expanded state for uncontrolled usage. */
|
|
15
|
+
defaultExpanded?: boolean;
|
|
16
|
+
/** If true, the accordion is disabled. */
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
/** Fired when the accordion's expanded state changes. */
|
|
19
|
+
onFlintAccordionChange?: (event: CustomEvent<FlintAccordionChangeDetail>) => void;
|
|
20
|
+
}
|
|
21
|
+
export declare const FlintAccordion: React.ForwardRefExoticComponent<FlintAccordionProps & React.RefAttributes<FlintAccordionElement>>;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FlintAccordionActions as FlintAccordionActionsElement } from '@getufy/flint-ui/accordion/flint-accordion';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Accordion Actions: an optional wrapper that groups a set of buttons.
|
|
5
|
+
*/
|
|
6
|
+
export interface FlintAccordionActionsProps extends React.HTMLAttributes<FlintAccordionActionsElement> {
|
|
7
|
+
}
|
|
8
|
+
export declare const FlintAccordionActions: React.ForwardRefExoticComponent<FlintAccordionActionsProps & React.RefAttributes<FlintAccordionActionsElement>>;
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FlintAccordionDetails as FlintAccordionDetailsElement } from '@getufy/flint-ui/accordion/flint-accordion';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Accordion Details: the wrapper for the Accordion content.
|
|
5
|
+
*
|
|
6
|
+
* @slot - Detail content.
|
|
7
|
+
*/
|
|
8
|
+
export interface FlintAccordionDetailsProps extends React.HTMLAttributes<FlintAccordionDetailsElement> {
|
|
9
|
+
}
|
|
10
|
+
export declare const FlintAccordionDetails: React.ForwardRefExoticComponent<FlintAccordionDetailsProps & React.RefAttributes<FlintAccordionDetailsElement>>;
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type EventName } from '@lit/react';
|
|
3
2
|
import { FlintAccordionSummary as FlintAccordionSummaryElement } from '@getufy/flint-ui/accordion/flint-accordion';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Accordion Summary: the wrapper for the Accordion header.
|
|
5
|
+
*
|
|
6
|
+
* @slot expandIcon - Custom expand/collapse icon.
|
|
7
|
+
* @slot - Summary content.
|
|
8
|
+
*/
|
|
9
|
+
export interface FlintAccordionSummaryProps extends React.HTMLAttributes<FlintAccordionSummaryElement> {
|
|
10
|
+
/** Fired when the summary is clicked or activated via keyboard. */
|
|
11
|
+
onFlintAccordionToggle?: (event: CustomEvent) => void;
|
|
12
|
+
}
|
|
13
|
+
export declare const FlintAccordionSummary: React.ForwardRefExoticComponent<FlintAccordionSummaryProps & React.RefAttributes<FlintAccordionSummaryElement>>;
|
|
@@ -1,7 +1,23 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type EventName } from '@lit/react';
|
|
3
2
|
import { FlintAlert as FlintAlertElement } from '@getufy/flint-ui/alert/flint-alert';
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
export interface FlintAlertCloseDetail {
|
|
4
|
+
open: boolean;
|
|
5
|
+
severity: 'info' | 'success' | 'warning' | 'error';
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Alerts display brief messages for the user without interrupting their use of the app.
|
|
9
|
+
*
|
|
10
|
+
* @slot - The message content of the alert.
|
|
11
|
+
* @slot icon - Optional icon to display instead of the default severity icon.
|
|
12
|
+
*/
|
|
13
|
+
export interface FlintAlertProps extends Omit<React.HTMLAttributes<FlintAlertElement>, 'title'> {
|
|
14
|
+
/** The severity level of the alert. */
|
|
15
|
+
severity?: 'info' | 'success' | 'warning' | 'error';
|
|
16
|
+
/** An optional title for the alert. */
|
|
17
|
+
title?: string;
|
|
18
|
+
/** Whether the alert can be dismissed by the user. */
|
|
19
|
+
dismissible?: boolean;
|
|
20
|
+
/** Fired when the alert's close button is clicked. detail: `{ open: false, severity: string }` */
|
|
21
|
+
onFlintAlertClose?: (event: CustomEvent<FlintAlertCloseDetail>) => void;
|
|
22
|
+
}
|
|
23
|
+
export declare const FlintAlert: React.ForwardRefExoticComponent<FlintAlertProps & React.RefAttributes<FlintAlertElement>>;
|
|
@@ -1,4 +1,18 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FlintAppBar as FlintAppBarElement } from '@getufy/flint-ui/app-bar/flint-app-bar';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
/**
|
|
4
|
+
* flint-app-bar: The top App bar provides content and actions related to the current screen.
|
|
5
|
+
*
|
|
6
|
+
* @slot navigation - Left section, e.g. menu button.
|
|
7
|
+
* @slot title - Center section next to the title prop.
|
|
8
|
+
* @slot actions - Right section, e.g. action buttons.
|
|
9
|
+
*/
|
|
10
|
+
export interface FlintAppBarProps extends Omit<React.HTMLAttributes<FlintAppBarElement>, 'title'> {
|
|
11
|
+
/** Title text displayed in the center of the app bar. */
|
|
12
|
+
title?: string;
|
|
13
|
+
/** CSS positioning behavior of the app bar. */
|
|
14
|
+
position?: 'static' | 'fixed' | 'absolute' | 'sticky';
|
|
15
|
+
/** Visual style variant of the app bar. */
|
|
16
|
+
variant?: 'regular' | 'outlined';
|
|
17
|
+
}
|
|
18
|
+
export declare const FlintAppBar: React.ForwardRefExoticComponent<FlintAppBarProps & React.RefAttributes<FlintAppBarElement>>;
|
|
@@ -1,7 +1,24 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type EventName } from '@lit/react';
|
|
3
2
|
import { FlintAutocomplete as FlintAutocompleteElement } from '@getufy/flint-ui/autocomplete/flint-autocomplete';
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
export interface FlintAutocompleteChangeDetail {
|
|
4
|
+
value: string;
|
|
5
|
+
label: string;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Autocomplete: a text input with a dropdown of selectable suggestions.
|
|
9
|
+
*/
|
|
10
|
+
export interface FlintAutocompleteProps extends React.HTMLAttributes<FlintAutocompleteElement> {
|
|
11
|
+
/** The list of selectable options. */
|
|
12
|
+
options?: FlintAutocompleteElement['options'];
|
|
13
|
+
/** When true, allows arbitrary values that are not in the options list. */
|
|
14
|
+
freeSolo?: boolean;
|
|
15
|
+
/** Whether the autocomplete input is disabled. */
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
/** The current selected value. */
|
|
18
|
+
value?: string;
|
|
19
|
+
/** Placeholder text shown when the input is empty. */
|
|
20
|
+
placeholder?: string;
|
|
21
|
+
/** Fired when the selected value changes. */
|
|
22
|
+
onFlintAutocompleteChange?: (event: CustomEvent<FlintAutocompleteChangeDetail>) => void;
|
|
23
|
+
}
|
|
24
|
+
export declare const FlintAutocomplete: React.ForwardRefExoticComponent<FlintAutocompleteProps & React.RefAttributes<FlintAutocompleteElement>>;
|
|
@@ -1,4 +1,15 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FlintAvatar as FlintAvatarElement } from '@getufy/flint-ui/avatar/flint-avatar';
|
|
3
|
-
export
|
|
4
|
-
|
|
3
|
+
export interface FlintAvatarProps extends React.HTMLAttributes<FlintAvatarElement> {
|
|
4
|
+
/** Image source URL for the avatar. */
|
|
5
|
+
src?: string;
|
|
6
|
+
/** Alt text for the avatar image. */
|
|
7
|
+
alt?: string;
|
|
8
|
+
/** Initials to display when no image is provided. */
|
|
9
|
+
initials?: string;
|
|
10
|
+
/** Shape variant of the avatar. */
|
|
11
|
+
variant?: 'circle' | 'square' | 'rounded';
|
|
12
|
+
/** Size of the avatar. */
|
|
13
|
+
size?: 'small' | 'medium' | 'large' | 'xlarge';
|
|
14
|
+
}
|
|
15
|
+
export declare const FlintAvatar: React.ForwardRefExoticComponent<FlintAvatarProps & React.RefAttributes<FlintAvatarElement>>;
|
|
@@ -1,7 +1,21 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type EventName } from '@lit/react';
|
|
3
2
|
import { FlintBackdrop as FlintBackdropElement } from '@getufy/flint-ui/backdrop/flint-backdrop';
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
|
|
3
|
+
export interface FlintBackdropCloseDetail {
|
|
4
|
+
open: boolean;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* A backdrop component that narrows the user's focus to a particular element.
|
|
8
|
+
*
|
|
9
|
+
* @slot - Content to display in the foreground.
|
|
10
|
+
*/
|
|
11
|
+
export interface FlintBackdropProps extends React.HTMLAttributes<FlintBackdropElement> {
|
|
12
|
+
/** Whether the backdrop is visible and active. */
|
|
13
|
+
open?: boolean;
|
|
14
|
+
/** When true, the backdrop overlay is transparent. */
|
|
15
|
+
invisible?: boolean;
|
|
16
|
+
/** When true, the backdrop is scoped to its parent container instead of the viewport. */
|
|
17
|
+
container?: boolean;
|
|
18
|
+
/** Dispatched when the backdrop is clicked or Escape is pressed. detail: `{ open: false }` */
|
|
19
|
+
onFlintBackdropClose?: (event: CustomEvent<FlintBackdropCloseDetail>) => void;
|
|
20
|
+
}
|
|
21
|
+
export declare const FlintBackdrop: React.ForwardRefExoticComponent<FlintBackdropProps & React.RefAttributes<FlintBackdropElement>>;
|
|
@@ -1,4 +1,20 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FlintBadge as FlintBadgeElement } from '@getufy/flint-ui/badge/flint-badge';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
/**
|
|
4
|
+
* A badge component that generates a small badge at the top-right of its children.
|
|
5
|
+
*
|
|
6
|
+
* @slot - The content to which the badge is attached.
|
|
7
|
+
*/
|
|
8
|
+
export interface FlintBadgeProps extends React.HTMLAttributes<FlintBadgeElement> {
|
|
9
|
+
/** Text content displayed inside the badge. */
|
|
10
|
+
content?: string;
|
|
11
|
+
/** Whether to display a small dot instead of content. */
|
|
12
|
+
dot?: boolean;
|
|
13
|
+
/** Whether the badge is hidden. */
|
|
14
|
+
invisible?: boolean;
|
|
15
|
+
/** Color variant of the badge. */
|
|
16
|
+
variant?: 'primary' | 'secondary' | 'error' | 'success' | 'warning';
|
|
17
|
+
/** Maximum numeric value before displaying "max+". */
|
|
18
|
+
max?: number;
|
|
19
|
+
}
|
|
20
|
+
export declare const FlintBadge: React.ForwardRefExoticComponent<FlintBadgeProps & React.RefAttributes<FlintBadgeElement>>;
|
|
@@ -1,7 +1,18 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type EventName } from '@lit/react';
|
|
3
2
|
import { FlintBottomNavigation as FlintBottomNavigationElement } from '@getufy/flint-ui/bottom-navigation/flint-bottom-navigation';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Bottom Navigation bars allow movement between primary destinations in an app.
|
|
5
|
+
*
|
|
6
|
+
* @slot - destinations (flint-bottom-navigation-action).
|
|
7
|
+
*/
|
|
8
|
+
export interface FlintBottomNavigationProps extends Omit<React.HTMLAttributes<FlintBottomNavigationElement>, 'defaultValue'> {
|
|
9
|
+
/** The value of the currently selected action. */
|
|
10
|
+
value?: unknown;
|
|
11
|
+
/** Initial selected value for uncontrolled usage. */
|
|
12
|
+
defaultValue?: unknown;
|
|
13
|
+
/** If true, all labels are shown at all times. */
|
|
14
|
+
showLabels?: boolean;
|
|
15
|
+
/** Dispatched when the selected value changes. */
|
|
16
|
+
onFlintBottomNavigationChange?: (event: CustomEvent) => void;
|
|
17
|
+
}
|
|
18
|
+
export declare const FlintBottomNavigation: React.ForwardRefExoticComponent<FlintBottomNavigationProps & React.RefAttributes<FlintBottomNavigationElement>>;
|
|
@@ -1,4 +1,19 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FlintBottomNavigationAction as FlintBottomNavigationActionElement } from '@getufy/flint-ui/bottom-navigation/flint-bottom-navigation-action';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Bottom Navigation Action: Individual navigation item.
|
|
5
|
+
*
|
|
6
|
+
* @slot icon - Icon element.
|
|
7
|
+
* @slot - Label text.
|
|
8
|
+
*/
|
|
9
|
+
export interface FlintBottomNavigationActionProps extends React.HTMLAttributes<FlintBottomNavigationActionElement> {
|
|
10
|
+
/** Label text for the action. */
|
|
11
|
+
label?: string;
|
|
12
|
+
/** Unique value for this action. */
|
|
13
|
+
value?: unknown;
|
|
14
|
+
/** If true, this action is currently selected. (Internal property managed by parent) */
|
|
15
|
+
active?: boolean;
|
|
16
|
+
/** Controls label visibility. (Internal property managed by parent) */
|
|
17
|
+
showLabel?: boolean;
|
|
18
|
+
}
|
|
19
|
+
export declare const FlintBottomNavigationAction: React.ForwardRefExoticComponent<FlintBottomNavigationActionProps & React.RefAttributes<FlintBottomNavigationActionElement>>;
|
|
@@ -1,7 +1,69 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type EventName } from '@lit/react';
|
|
3
2
|
import { FlintBox as FlintBoxElement } from '@getufy/flint-ui/box/flint-box';
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
export interface FlintBoxProps extends Omit<React.HTMLAttributes<FlintBoxElement>, 'color'> {
|
|
4
|
+
/** The component tag to render */
|
|
5
|
+
component?: string;
|
|
6
|
+
/** Margin on all sides. */
|
|
7
|
+
m?: string;
|
|
8
|
+
/** Margin top. */
|
|
9
|
+
mt?: string;
|
|
10
|
+
/** Margin right. */
|
|
11
|
+
mr?: string;
|
|
12
|
+
/** Margin bottom. */
|
|
13
|
+
mb?: string;
|
|
14
|
+
/** Margin left. */
|
|
15
|
+
ml?: string;
|
|
16
|
+
/** Margin on the horizontal (left and right) axis. */
|
|
17
|
+
mx?: string;
|
|
18
|
+
/** Margin on the vertical (top and bottom) axis. */
|
|
19
|
+
my?: string;
|
|
20
|
+
/** Padding on all sides. */
|
|
21
|
+
p?: string;
|
|
22
|
+
/** Padding top. */
|
|
23
|
+
pt?: string;
|
|
24
|
+
/** Padding right. */
|
|
25
|
+
pr?: string;
|
|
26
|
+
/** Padding bottom. */
|
|
27
|
+
pb?: string;
|
|
28
|
+
/** Padding left. */
|
|
29
|
+
pl?: string;
|
|
30
|
+
/** Padding on the horizontal (left and right) axis. */
|
|
31
|
+
px?: string;
|
|
32
|
+
/** Padding on the vertical (top and bottom) axis. */
|
|
33
|
+
py?: string;
|
|
34
|
+
/** CSS display value. */
|
|
35
|
+
display?: string;
|
|
36
|
+
/** CSS flex-direction value. */
|
|
37
|
+
flexDirection?: string;
|
|
38
|
+
/** CSS align-items value. */
|
|
39
|
+
alignItems?: string;
|
|
40
|
+
/** CSS justify-content value. */
|
|
41
|
+
justifyContent?: string;
|
|
42
|
+
/** CSS flex-wrap value. */
|
|
43
|
+
flexWrap?: string;
|
|
44
|
+
/** CSS flex-basis value. */
|
|
45
|
+
flexBasis?: string;
|
|
46
|
+
/** CSS flex-grow value. */
|
|
47
|
+
flexGrow?: string;
|
|
48
|
+
/** CSS flex-shrink value. */
|
|
49
|
+
flexShrink?: string;
|
|
50
|
+
/** CSS gap between flex or grid items. */
|
|
51
|
+
gap?: string;
|
|
52
|
+
/** Background color. Supports theme tokens 'primary' and 'secondary'. */
|
|
53
|
+
bgcolor?: string;
|
|
54
|
+
/** Text color. Supports theme tokens 'primary' and 'secondary'. */
|
|
55
|
+
color?: string;
|
|
56
|
+
/** CSS border shorthand value. */
|
|
57
|
+
border?: string;
|
|
58
|
+
/** CSS border-radius value. */
|
|
59
|
+
borderRadius?: string;
|
|
60
|
+
/** CSS box-shadow value. */
|
|
61
|
+
boxShadow?: string;
|
|
62
|
+
/** CSS width value. */
|
|
63
|
+
width?: string;
|
|
64
|
+
/** CSS height value. */
|
|
65
|
+
height?: string;
|
|
66
|
+
/** Dispatched when an unknown component tag is used and falls back to div. */
|
|
67
|
+
onFlintBoxWarning?: (event: CustomEvent) => void;
|
|
68
|
+
}
|
|
69
|
+
export declare const FlintBox: React.ForwardRefExoticComponent<FlintBoxProps & React.RefAttributes<FlintBoxElement>>;
|
|
@@ -1,4 +1,20 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FlintBreadcrumbs as FlintBreadcrumbsElement } from '@getufy/flint-ui/breadcrumbs/flint-breadcrumbs';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Breadcrumbs provide a navigational aid showing the current page's location
|
|
5
|
+
within a site hierarchy, allowing users to navigate back up the trail.
|
|
6
|
+
*
|
|
7
|
+
* @slot - Breadcrumb items (links or text), distributed in order.
|
|
8
|
+
* @slot separator - Custom separator element rendered between each item.
|
|
9
|
+
*/
|
|
10
|
+
export interface FlintBreadcrumbsProps extends React.HTMLAttributes<FlintBreadcrumbsElement> {
|
|
11
|
+
/** Max number of items to display before collapsing. */
|
|
12
|
+
maxItems?: number;
|
|
13
|
+
/** Number of items to show before the ellipsis. */
|
|
14
|
+
itemsBefore?: number;
|
|
15
|
+
/** Number of items to show after the ellipsis. */
|
|
16
|
+
itemsAfter?: number;
|
|
17
|
+
/** The character or string used as a separator (fallback when no separator slot is provided). */
|
|
18
|
+
separator?: string;
|
|
19
|
+
}
|
|
20
|
+
export declare const FlintBreadcrumbs: React.ForwardRefExoticComponent<FlintBreadcrumbsProps & React.RefAttributes<FlintBreadcrumbsElement>>;
|
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FlintButton as FlintButtonElement } from '@getufy/flint-ui/button/flint-button';
|
|
3
|
-
export
|
|
4
|
-
|
|
3
|
+
export interface FlintButtonProps extends React.HTMLAttributes<FlintButtonElement> {
|
|
4
|
+
/** Visual style variant of the button. */
|
|
5
|
+
variant?: 'primary' | 'secondary' | 'destructive';
|
|
6
|
+
/** Size of the button. */
|
|
7
|
+
size?: 'small' | 'medium' | 'large';
|
|
8
|
+
/** Disables the button and prevents interaction. */
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
/** Whether the button stretches to fill its container width. */
|
|
11
|
+
fullWidth?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare const FlintButton: React.ForwardRefExoticComponent<FlintButtonProps & React.RefAttributes<FlintButtonElement>>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FlintButtonGroup as FlintButtonGroupElement } from '@getufy/flint-ui/button/flint-button-group';
|
|
3
|
-
export
|
|
4
|
-
|
|
3
|
+
export interface FlintButtonGroupProps extends React.HTMLAttributes<FlintButtonGroupElement> {
|
|
4
|
+
}
|
|
5
|
+
export declare const FlintButtonGroup: React.ForwardRefExoticComponent<FlintButtonGroupProps & React.RefAttributes<FlintButtonGroupElement>>;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FlintCard as FlintCardElement } from '@getufy/flint-ui/card/flint-card';
|
|
3
|
-
export
|
|
4
|
-
|
|
3
|
+
export interface FlintCardProps extends React.HTMLAttributes<FlintCardElement> {
|
|
4
|
+
variant?: 'elevated' | 'outlined' | 'flat';
|
|
5
|
+
interactive?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare const FlintCard: React.ForwardRefExoticComponent<FlintCardProps & React.RefAttributes<FlintCardElement>>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FlintCardActionArea as FlintCardActionAreaElement } from '@getufy/flint-ui/card/flint-card-action-area';
|
|
3
|
-
export
|
|
4
|
-
|
|
3
|
+
export interface FlintCardActionAreaProps extends React.HTMLAttributes<FlintCardActionAreaElement> {
|
|
4
|
+
}
|
|
5
|
+
export declare const FlintCardActionArea: React.ForwardRefExoticComponent<FlintCardActionAreaProps & React.RefAttributes<FlintCardActionAreaElement>>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FlintCardActions as FlintCardActionsElement } from '@getufy/flint-ui/card/flint-card-actions';
|
|
3
|
-
export
|
|
4
|
-
|
|
3
|
+
export interface FlintCardActionsProps extends React.HTMLAttributes<FlintCardActionsElement> {
|
|
4
|
+
}
|
|
5
|
+
export declare const FlintCardActions: React.ForwardRefExoticComponent<FlintCardActionsProps & React.RefAttributes<FlintCardActionsElement>>;
|