@getufy/flint-ui-react 0.2.1 → 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 +156 -12
- package/dist/accordion.d.ts +6 -0
- package/dist/accordion.js +63 -0
- package/dist/alert.d.ts +2 -0
- package/dist/alert.js +21 -0
- package/dist/app-bar.d.ts +1 -0
- package/dist/app-bar.js +12 -0
- package/dist/autocomplete.d.ts +2 -0
- package/dist/autocomplete.js +21 -0
- package/dist/avatar.d.ts +1 -0
- package/dist/avatar.js +12 -0
- package/dist/backdrop.d.ts +2 -0
- package/dist/backdrop.js +21 -0
- package/dist/badge.d.ts +1 -0
- package/dist/badge.js +12 -0
- package/dist/bottom-navigation.d.ts +3 -0
- package/dist/bottom-navigation.js +32 -0
- package/dist/box.d.ts +2 -0
- package/dist/box.js +21 -0
- package/dist/breadcrumbs.d.ts +1 -0
- package/dist/breadcrumbs.js +12 -0
- package/dist/button.d.ts +6 -0
- package/dist/button.js +63 -0
- package/dist/card.d.ts +6 -0
- package/dist/card.js +67 -0
- package/dist/carousel.d.ts +6 -0
- package/dist/carousel.js +65 -0
- package/dist/checkbox.d.ts +2 -0
- package/dist/checkbox.js +21 -0
- package/dist/chip.d.ts +2 -0
- package/dist/chip.js +23 -0
- package/dist/collapsible.d.ts +4 -0
- package/dist/collapsible.js +43 -0
- package/dist/command.d.ts +12 -0
- package/dist/command.js +127 -0
- 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/dist/container.d.ts +1 -0
- package/dist/container.js +12 -0
- package/dist/copy-button.d.ts +2 -0
- package/dist/copy-button.js +23 -0
- package/dist/date-field.d.ts +2 -0
- package/dist/date-field.js +23 -0
- package/dist/date-picker.d.ts +4 -0
- package/dist/date-picker.js +41 -0
- package/dist/date-range-picker.d.ts +6 -0
- package/dist/date-range-picker.js +63 -0
- package/dist/dialog.d.ts +6 -0
- package/dist/dialog.js +65 -0
- package/dist/divider.d.ts +1 -0
- package/dist/divider.js +12 -0
- package/dist/drawer.d.ts +2 -0
- package/dist/drawer.js +21 -0
- package/dist/empty.d.ts +6 -0
- package/dist/empty.js +67 -0
- package/dist/fab.d.ts +1 -0
- package/dist/fab.js +12 -0
- package/dist/flint-range-slider.d.ts +2 -0
- package/dist/flint-range-slider.js +21 -0
- package/dist/format-date.d.ts +1 -0
- package/dist/format-date.js +12 -0
- package/dist/format-number.d.ts +1 -0
- package/dist/format-number.js +12 -0
- package/dist/grid.d.ts +1 -0
- package/dist/grid.js +12 -0
- package/dist/hover-card.d.ts +3 -0
- package/dist/hover-card.js +34 -0
- package/dist/image-comparer.d.ts +2 -0
- package/dist/image-comparer.js +21 -0
- package/dist/image-list.d.ts +3 -0
- package/dist/image-list.js +34 -0
- package/dist/input-otp.d.ts +5 -0
- package/dist/input-otp.js +56 -0
- package/dist/input.d.ts +2 -0
- package/dist/input.js +23 -0
- package/dist/item.d.ts +10 -0
- package/dist/item.js +111 -0
- package/dist/kbd.d.ts +2 -0
- package/dist/kbd.js +23 -0
- package/dist/link.d.ts +1 -0
- package/dist/link.js +12 -0
- package/dist/list.d.ts +7 -0
- package/dist/list.js +78 -0
- package/dist/menu.d.ts +6 -0
- package/dist/menu.js +63 -0
- package/dist/menubar.d.ts +19 -0
- package/dist/menubar.js +200 -0
- package/dist/navigation-menu.d.ts +9 -0
- package/dist/navigation-menu.js +96 -0
- package/dist/pagination.d.ts +2 -0
- package/dist/pagination.js +21 -0
- package/dist/paper.d.ts +1 -0
- package/dist/paper.js +12 -0
- package/dist/progress.d.ts +2 -0
- package/dist/progress.js +23 -0
- package/dist/radio.d.ts +4 -0
- package/dist/radio.js +41 -0
- package/dist/rating.d.ts +2 -0
- package/dist/rating.js +21 -0
- package/dist/relative-time.d.ts +1 -0
- package/dist/relative-time.js +12 -0
- package/dist/resizable.d.ts +4 -0
- package/dist/resizable.js +47 -0
- package/dist/scroll-area.d.ts +2 -0
- package/dist/scroll-area.js +23 -0
- package/dist/select.d.ts +2 -0
- package/dist/select.js +21 -0
- package/dist/skeleton.d.ts +1 -0
- package/dist/skeleton.js +12 -0
- package/dist/slider.d.ts +2 -0
- package/dist/slider.js +21 -0
- package/dist/snackbar.d.ts +2 -0
- package/dist/snackbar.js +23 -0
- package/dist/sonner.d.ts +1 -0
- package/dist/sonner.js +12 -0
- package/dist/speed-dial.d.ts +3 -0
- package/dist/speed-dial.js +32 -0
- package/dist/split-panel.d.ts +2 -0
- package/dist/split-panel.js +21 -0
- package/dist/stack.d.ts +1 -0
- package/dist/stack.js +12 -0
- package/dist/stepper.d.ts +8 -0
- package/dist/stepper.js +85 -0
- package/dist/switch.d.ts +2 -0
- package/dist/switch.js +21 -0
- package/dist/table.d.ts +10 -0
- package/dist/table.js +111 -0
- package/dist/tabs.d.ts +7 -0
- package/dist/tabs.js +72 -0
- package/dist/text-field.d.ts +2 -0
- package/dist/text-field.js +23 -0
- package/dist/textarea.d.ts +2 -0
- package/dist/textarea.js +23 -0
- package/dist/time-picker.d.ts +16 -0
- package/dist/time-picker.js +165 -0
- package/dist/toggle.d.ts +2 -0
- package/dist/toggle.js +21 -0
- package/dist/tooltip.d.ts +1 -0
- package/dist/tooltip.js +12 -0
- package/dist/transfer-list.d.ts +2 -0
- package/dist/transfer-list.js +21 -0
- package/dist/tree-view.d.ts +6 -0
- package/dist/tree-view.js +71 -0
- package/dist/typography.d.ts +1 -0
- package/dist/typography.js +12 -0
- package/dist/visually-hidden.d.ts +1 -0
- package/dist/visually-hidden.js +12 -0
- package/package.json +156 -148
package/README.md
CHANGED
|
@@ -3,35 +3,179 @@
|
|
|
3
3
|
[](https://www.npmjs.com/package/@getufy/flint-ui-react)
|
|
4
4
|
[](https://github.com/getufy/flint-ui/blob/main/LICENSE)
|
|
5
5
|
|
|
6
|
-
React wrappers for [`@getufy/flint-ui`](https://www.npmjs.com/package/@getufy/flint-ui) web components,
|
|
6
|
+
React wrappers for [`@getufy/flint-ui`](https://www.npmjs.com/package/@getufy/flint-ui) web components, auto-generated with [`@lit/react`](https://lit.dev/docs/frameworks/react/).
|
|
7
7
|
|
|
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
|
-
|
|
17
|
-
import { FlintButton, FlintTabs, FlintDialog } from '@getufy/flint-ui-react';
|
|
16
|
+
## Setup
|
|
18
17
|
|
|
19
|
-
|
|
18
|
+
Import the theme once in your app entry point:
|
|
19
|
+
|
|
20
|
+
```ts
|
|
21
|
+
import '@getufy/flint-ui/theme.css';
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## Resources
|
|
25
|
+
|
|
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
|
|
29
|
+
|
|
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';
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
### Why subpath imports matter
|
|
42
|
+
|
|
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.
|
|
44
|
+
|
|
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
|
|
50
|
+
import { FlintButton } from '@getufy/flint-ui-react/button';
|
|
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() {
|
|
20
142
|
return (
|
|
21
|
-
<FlintButton variant="
|
|
143
|
+
<FlintButton variant="filled" onFlintClick={() => console.log('clicked')}>
|
|
22
144
|
Click me
|
|
23
145
|
</FlintButton>
|
|
24
146
|
);
|
|
25
147
|
}
|
|
26
148
|
```
|
|
27
149
|
|
|
28
|
-
|
|
150
|
+
### Events
|
|
151
|
+
|
|
152
|
+
Custom events map to camelCase `on*` props:
|
|
29
153
|
|
|
30
|
-
|
|
154
|
+
| Lit event | React prop |
|
|
155
|
+
|---|---|
|
|
156
|
+
| `flint-change` | `onFlintChange` |
|
|
157
|
+
| `flint-click` | `onFlintClick` |
|
|
158
|
+
| `flint-menu-close` | `onFlintMenuClose` |
|
|
159
|
+
| `close` | `onClose` |
|
|
31
160
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
161
|
+
```tsx
|
|
162
|
+
<FlintSelect
|
|
163
|
+
label="Fruit"
|
|
164
|
+
onFlintChange={(e) => console.log(e.detail.value)}
|
|
165
|
+
/>
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
## Suppressing the Lit dev mode warning
|
|
169
|
+
|
|
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:
|
|
171
|
+
|
|
172
|
+
```ts
|
|
173
|
+
// main.tsx — must be first
|
|
174
|
+
import '@getufy/flint-ui/suppress-warnings';
|
|
175
|
+
import '@getufy/flint-ui/theme.css';
|
|
176
|
+
|
|
177
|
+
// component imports after...
|
|
178
|
+
```
|
|
35
179
|
|
|
36
180
|
## License
|
|
37
181
|
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { FlintAccordion, type FlintAccordionProps } from './components/FlintAccordion.js';
|
|
2
|
+
export { FlintAccordionSummary, type FlintAccordionSummaryProps } from './components/FlintAccordionSummary.js';
|
|
3
|
+
export { FlintAccordionDetails, type FlintAccordionDetailsProps } from './components/FlintAccordionDetails.js';
|
|
4
|
+
export { FlintAccordionActions, type FlintAccordionActionsProps } from './components/FlintAccordionActions.js';
|
|
5
|
+
export { FlintAccordionEvents } from './events/flint-accordion.js';
|
|
6
|
+
export { FlintAccordionSummaryEvents } from './events/flint-accordion-summary.js';
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
// src/components/FlintAccordion.tsx
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { createComponent } from "@lit/react";
|
|
4
|
+
import { FlintAccordion as FlintAccordionElement } from "@getufy/flint-ui/accordion/flint-accordion";
|
|
5
|
+
var FlintAccordion = createComponent({
|
|
6
|
+
tagName: "flint-accordion",
|
|
7
|
+
elementClass: FlintAccordionElement,
|
|
8
|
+
react: React,
|
|
9
|
+
events: {
|
|
10
|
+
onFlintAccordionChange: "flint-accordion-change"
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
// src/components/FlintAccordionSummary.tsx
|
|
15
|
+
import React2 from "react";
|
|
16
|
+
import { createComponent as createComponent2 } from "@lit/react";
|
|
17
|
+
import { FlintAccordionSummary as FlintAccordionSummaryElement } from "@getufy/flint-ui/accordion/flint-accordion";
|
|
18
|
+
var FlintAccordionSummary = createComponent2({
|
|
19
|
+
tagName: "flint-accordion-summary",
|
|
20
|
+
elementClass: FlintAccordionSummaryElement,
|
|
21
|
+
react: React2,
|
|
22
|
+
events: {
|
|
23
|
+
onFlintAccordionToggle: "flint-accordion-toggle"
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
// src/components/FlintAccordionDetails.tsx
|
|
28
|
+
import React3 from "react";
|
|
29
|
+
import { createComponent as createComponent3 } from "@lit/react";
|
|
30
|
+
import { FlintAccordionDetails as FlintAccordionDetailsElement } from "@getufy/flint-ui/accordion/flint-accordion";
|
|
31
|
+
var FlintAccordionDetails = createComponent3({
|
|
32
|
+
tagName: "flint-accordion-details",
|
|
33
|
+
elementClass: FlintAccordionDetailsElement,
|
|
34
|
+
react: React3
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
// src/components/FlintAccordionActions.tsx
|
|
38
|
+
import React4 from "react";
|
|
39
|
+
import { createComponent as createComponent4 } from "@lit/react";
|
|
40
|
+
import { FlintAccordionActions as FlintAccordionActionsElement } from "@getufy/flint-ui/accordion/flint-accordion";
|
|
41
|
+
var FlintAccordionActions = createComponent4({
|
|
42
|
+
tagName: "flint-accordion-actions",
|
|
43
|
+
elementClass: FlintAccordionActionsElement,
|
|
44
|
+
react: React4
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
// src/events/flint-accordion.ts
|
|
48
|
+
var FlintAccordionEvents = {
|
|
49
|
+
CHANGE: "flint-accordion-change"
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
// src/events/flint-accordion-summary.ts
|
|
53
|
+
var FlintAccordionSummaryEvents = {
|
|
54
|
+
ACCORDION_TOGGLE: "flint-accordion-toggle"
|
|
55
|
+
};
|
|
56
|
+
export {
|
|
57
|
+
FlintAccordion,
|
|
58
|
+
FlintAccordionActions,
|
|
59
|
+
FlintAccordionDetails,
|
|
60
|
+
FlintAccordionEvents,
|
|
61
|
+
FlintAccordionSummary,
|
|
62
|
+
FlintAccordionSummaryEvents
|
|
63
|
+
};
|
package/dist/alert.d.ts
ADDED
package/dist/alert.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// src/components/FlintAlert.tsx
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { createComponent } from "@lit/react";
|
|
4
|
+
import { FlintAlert as FlintAlertElement } from "@getufy/flint-ui/alert/flint-alert";
|
|
5
|
+
var FlintAlert = createComponent({
|
|
6
|
+
tagName: "flint-alert",
|
|
7
|
+
elementClass: FlintAlertElement,
|
|
8
|
+
react: React,
|
|
9
|
+
events: {
|
|
10
|
+
onFlintAlertClose: "flint-alert-close"
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
// src/events/flint-alert.ts
|
|
15
|
+
var FlintAlertEvents = {
|
|
16
|
+
CLOSE: "flint-alert-close"
|
|
17
|
+
};
|
|
18
|
+
export {
|
|
19
|
+
FlintAlert,
|
|
20
|
+
FlintAlertEvents
|
|
21
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { FlintAppBar, type FlintAppBarProps } from './components/FlintAppBar.js';
|
package/dist/app-bar.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// src/components/FlintAppBar.tsx
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { createComponent } from "@lit/react";
|
|
4
|
+
import { FlintAppBar as FlintAppBarElement } from "@getufy/flint-ui/app-bar/flint-app-bar";
|
|
5
|
+
var FlintAppBar = createComponent({
|
|
6
|
+
tagName: "flint-app-bar",
|
|
7
|
+
elementClass: FlintAppBarElement,
|
|
8
|
+
react: React
|
|
9
|
+
});
|
|
10
|
+
export {
|
|
11
|
+
FlintAppBar
|
|
12
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// src/components/FlintAutocomplete.tsx
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { createComponent } from "@lit/react";
|
|
4
|
+
import { FlintAutocomplete as FlintAutocompleteElement } from "@getufy/flint-ui/autocomplete/flint-autocomplete";
|
|
5
|
+
var FlintAutocomplete = createComponent({
|
|
6
|
+
tagName: "flint-autocomplete",
|
|
7
|
+
elementClass: FlintAutocompleteElement,
|
|
8
|
+
react: React,
|
|
9
|
+
events: {
|
|
10
|
+
onFlintAutocompleteChange: "flint-autocomplete-change"
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
// src/events/flint-autocomplete.ts
|
|
15
|
+
var FlintAutocompleteEvents = {
|
|
16
|
+
CHANGE: "flint-autocomplete-change"
|
|
17
|
+
};
|
|
18
|
+
export {
|
|
19
|
+
FlintAutocomplete,
|
|
20
|
+
FlintAutocompleteEvents
|
|
21
|
+
};
|
package/dist/avatar.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { FlintAvatar, type FlintAvatarProps } from './components/FlintAvatar.js';
|
package/dist/avatar.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// src/components/FlintAvatar.tsx
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { createComponent } from "@lit/react";
|
|
4
|
+
import { FlintAvatar as FlintAvatarElement } from "@getufy/flint-ui/avatar/flint-avatar";
|
|
5
|
+
var FlintAvatar = createComponent({
|
|
6
|
+
tagName: "flint-avatar",
|
|
7
|
+
elementClass: FlintAvatarElement,
|
|
8
|
+
react: React
|
|
9
|
+
});
|
|
10
|
+
export {
|
|
11
|
+
FlintAvatar
|
|
12
|
+
};
|
package/dist/backdrop.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// src/components/FlintBackdrop.tsx
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { createComponent } from "@lit/react";
|
|
4
|
+
import { FlintBackdrop as FlintBackdropElement } from "@getufy/flint-ui/backdrop/flint-backdrop";
|
|
5
|
+
var FlintBackdrop = createComponent({
|
|
6
|
+
tagName: "flint-backdrop",
|
|
7
|
+
elementClass: FlintBackdropElement,
|
|
8
|
+
react: React,
|
|
9
|
+
events: {
|
|
10
|
+
onFlintBackdropClose: "flint-backdrop-close"
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
// src/events/flint-backdrop.ts
|
|
15
|
+
var FlintBackdropEvents = {
|
|
16
|
+
CLOSE: "flint-backdrop-close"
|
|
17
|
+
};
|
|
18
|
+
export {
|
|
19
|
+
FlintBackdrop,
|
|
20
|
+
FlintBackdropEvents
|
|
21
|
+
};
|
package/dist/badge.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { FlintBadge, type FlintBadgeProps } from './components/FlintBadge.js';
|
package/dist/badge.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// src/components/FlintBadge.tsx
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { createComponent } from "@lit/react";
|
|
4
|
+
import { FlintBadge as FlintBadgeElement } from "@getufy/flint-ui/badge/flint-badge";
|
|
5
|
+
var FlintBadge = createComponent({
|
|
6
|
+
tagName: "flint-badge",
|
|
7
|
+
elementClass: FlintBadgeElement,
|
|
8
|
+
react: React
|
|
9
|
+
});
|
|
10
|
+
export {
|
|
11
|
+
FlintBadge
|
|
12
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { FlintBottomNavigationAction, type FlintBottomNavigationActionProps } from './components/FlintBottomNavigationAction.js';
|
|
2
|
+
export { FlintBottomNavigation, type FlintBottomNavigationProps } from './components/FlintBottomNavigation.js';
|
|
3
|
+
export { FlintBottomNavigationEvents } from './events/flint-bottom-navigation.js';
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
// src/components/FlintBottomNavigationAction.tsx
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { createComponent } from "@lit/react";
|
|
4
|
+
import { FlintBottomNavigationAction as FlintBottomNavigationActionElement } from "@getufy/flint-ui/bottom-navigation/flint-bottom-navigation-action";
|
|
5
|
+
var FlintBottomNavigationAction = createComponent({
|
|
6
|
+
tagName: "flint-bottom-navigation-action",
|
|
7
|
+
elementClass: FlintBottomNavigationActionElement,
|
|
8
|
+
react: React
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
// src/components/FlintBottomNavigation.tsx
|
|
12
|
+
import React2 from "react";
|
|
13
|
+
import { createComponent as createComponent2 } from "@lit/react";
|
|
14
|
+
import { FlintBottomNavigation as FlintBottomNavigationElement } from "@getufy/flint-ui/bottom-navigation/flint-bottom-navigation";
|
|
15
|
+
var FlintBottomNavigation = createComponent2({
|
|
16
|
+
tagName: "flint-bottom-navigation",
|
|
17
|
+
elementClass: FlintBottomNavigationElement,
|
|
18
|
+
react: React2,
|
|
19
|
+
events: {
|
|
20
|
+
onFlintBottomNavigationChange: "flint-bottom-navigation-change"
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
// src/events/flint-bottom-navigation.ts
|
|
25
|
+
var FlintBottomNavigationEvents = {
|
|
26
|
+
CHANGE: "flint-bottom-navigation-change"
|
|
27
|
+
};
|
|
28
|
+
export {
|
|
29
|
+
FlintBottomNavigation,
|
|
30
|
+
FlintBottomNavigationAction,
|
|
31
|
+
FlintBottomNavigationEvents
|
|
32
|
+
};
|
package/dist/box.d.ts
ADDED
package/dist/box.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// src/components/FlintBox.tsx
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { createComponent } from "@lit/react";
|
|
4
|
+
import { FlintBox as FlintBoxElement } from "@getufy/flint-ui/box/flint-box";
|
|
5
|
+
var FlintBox = createComponent({
|
|
6
|
+
tagName: "flint-box",
|
|
7
|
+
elementClass: FlintBoxElement,
|
|
8
|
+
react: React,
|
|
9
|
+
events: {
|
|
10
|
+
onFlintBoxWarning: "flint-box-warning"
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
// src/events/flint-box.ts
|
|
15
|
+
var FlintBoxEvents = {
|
|
16
|
+
WARNING: "flint-box-warning"
|
|
17
|
+
};
|
|
18
|
+
export {
|
|
19
|
+
FlintBox,
|
|
20
|
+
FlintBoxEvents
|
|
21
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { FlintBreadcrumbs, type FlintBreadcrumbsProps } from './components/FlintBreadcrumbs.js';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// src/components/FlintBreadcrumbs.tsx
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { createComponent } from "@lit/react";
|
|
4
|
+
import { FlintBreadcrumbs as FlintBreadcrumbsElement } from "@getufy/flint-ui/breadcrumbs/flint-breadcrumbs";
|
|
5
|
+
var FlintBreadcrumbs = createComponent({
|
|
6
|
+
tagName: "flint-breadcrumbs",
|
|
7
|
+
elementClass: FlintBreadcrumbsElement,
|
|
8
|
+
react: React
|
|
9
|
+
});
|
|
10
|
+
export {
|
|
11
|
+
FlintBreadcrumbs
|
|
12
|
+
};
|
package/dist/button.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { FlintButtonGroup, type FlintButtonGroupProps } from './components/FlintButtonGroup.js';
|
|
2
|
+
export { FlintButton, type FlintButtonProps } from './components/FlintButton.js';
|
|
3
|
+
export { FlintToggleButtonGroup, type FlintToggleButtonGroupProps } from './components/FlintToggleButtonGroup.js';
|
|
4
|
+
export { FlintToggleButton, type FlintToggleButtonProps } from './components/FlintToggleButton.js';
|
|
5
|
+
export { FlintToggleButtonGroupEvents } from './events/flint-toggle-button-group.js';
|
|
6
|
+
export { FlintToggleButtonEvents } from './events/flint-toggle-button.js';
|
package/dist/button.js
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
// src/components/FlintButtonGroup.tsx
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { createComponent } from "@lit/react";
|
|
4
|
+
import { FlintButtonGroup as FlintButtonGroupElement } from "@getufy/flint-ui/button/flint-button-group";
|
|
5
|
+
var FlintButtonGroup = createComponent({
|
|
6
|
+
tagName: "flint-button-group",
|
|
7
|
+
elementClass: FlintButtonGroupElement,
|
|
8
|
+
react: React
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
// src/components/FlintButton.tsx
|
|
12
|
+
import React2 from "react";
|
|
13
|
+
import { createComponent as createComponent2 } from "@lit/react";
|
|
14
|
+
import { FlintButton as FlintButtonElement } from "@getufy/flint-ui/button/flint-button";
|
|
15
|
+
var FlintButton = createComponent2({
|
|
16
|
+
tagName: "flint-button",
|
|
17
|
+
elementClass: FlintButtonElement,
|
|
18
|
+
react: React2
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
// src/components/FlintToggleButtonGroup.tsx
|
|
22
|
+
import React3 from "react";
|
|
23
|
+
import { createComponent as createComponent3 } from "@lit/react";
|
|
24
|
+
import { FlintToggleButtonGroup as FlintToggleButtonGroupElement } from "@getufy/flint-ui/button/flint-toggle-button-group";
|
|
25
|
+
var FlintToggleButtonGroup = createComponent3({
|
|
26
|
+
tagName: "flint-toggle-button-group",
|
|
27
|
+
elementClass: FlintToggleButtonGroupElement,
|
|
28
|
+
react: React3,
|
|
29
|
+
events: {
|
|
30
|
+
onFlintToggleButtonGroupChange: "flint-toggle-button-group-change"
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
// src/components/FlintToggleButton.tsx
|
|
35
|
+
import React4 from "react";
|
|
36
|
+
import { createComponent as createComponent4 } from "@lit/react";
|
|
37
|
+
import { FlintToggleButton as FlintToggleButtonElement } from "@getufy/flint-ui/button/flint-toggle-button";
|
|
38
|
+
var FlintToggleButton = createComponent4({
|
|
39
|
+
tagName: "flint-toggle-button",
|
|
40
|
+
elementClass: FlintToggleButtonElement,
|
|
41
|
+
react: React4,
|
|
42
|
+
events: {
|
|
43
|
+
onFlintToggleButtonChange: "flint-toggle-button-change"
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
// src/events/flint-toggle-button-group.ts
|
|
48
|
+
var FlintToggleButtonGroupEvents = {
|
|
49
|
+
CHANGE: "flint-toggle-button-group-change"
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
// src/events/flint-toggle-button.ts
|
|
53
|
+
var FlintToggleButtonEvents = {
|
|
54
|
+
CHANGE: "flint-toggle-button-change"
|
|
55
|
+
};
|
|
56
|
+
export {
|
|
57
|
+
FlintButton,
|
|
58
|
+
FlintButtonGroup,
|
|
59
|
+
FlintToggleButton,
|
|
60
|
+
FlintToggleButtonEvents,
|
|
61
|
+
FlintToggleButtonGroup,
|
|
62
|
+
FlintToggleButtonGroupEvents
|
|
63
|
+
};
|
package/dist/card.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { FlintCardActionArea, type FlintCardActionAreaProps } from './components/FlintCardActionArea.js';
|
|
2
|
+
export { FlintCardActions, type FlintCardActionsProps } from './components/FlintCardActions.js';
|
|
3
|
+
export { FlintCardContent, type FlintCardContentProps } from './components/FlintCardContent.js';
|
|
4
|
+
export { FlintCardHeader, type FlintCardHeaderProps } from './components/FlintCardHeader.js';
|
|
5
|
+
export { FlintCardMedia, type FlintCardMediaProps } from './components/FlintCardMedia.js';
|
|
6
|
+
export { FlintCard, type FlintCardProps } from './components/FlintCard.js';
|
package/dist/card.js
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
// src/components/FlintCardActionArea.tsx
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { createComponent } from "@lit/react";
|
|
4
|
+
import { FlintCardActionArea as FlintCardActionAreaElement } from "@getufy/flint-ui/card/flint-card-action-area";
|
|
5
|
+
var FlintCardActionArea = createComponent({
|
|
6
|
+
tagName: "flint-card-action-area",
|
|
7
|
+
elementClass: FlintCardActionAreaElement,
|
|
8
|
+
react: React
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
// src/components/FlintCardActions.tsx
|
|
12
|
+
import React2 from "react";
|
|
13
|
+
import { createComponent as createComponent2 } from "@lit/react";
|
|
14
|
+
import { FlintCardActions as FlintCardActionsElement } from "@getufy/flint-ui/card/flint-card-actions";
|
|
15
|
+
var FlintCardActions = createComponent2({
|
|
16
|
+
tagName: "flint-card-actions",
|
|
17
|
+
elementClass: FlintCardActionsElement,
|
|
18
|
+
react: React2
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
// src/components/FlintCardContent.tsx
|
|
22
|
+
import React3 from "react";
|
|
23
|
+
import { createComponent as createComponent3 } from "@lit/react";
|
|
24
|
+
import { FlintCardContent as FlintCardContentElement } from "@getufy/flint-ui/card/flint-card-content";
|
|
25
|
+
var FlintCardContent = createComponent3({
|
|
26
|
+
tagName: "flint-card-content",
|
|
27
|
+
elementClass: FlintCardContentElement,
|
|
28
|
+
react: React3
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
// src/components/FlintCardHeader.tsx
|
|
32
|
+
import React4 from "react";
|
|
33
|
+
import { createComponent as createComponent4 } from "@lit/react";
|
|
34
|
+
import { FlintCardHeader as FlintCardHeaderElement } from "@getufy/flint-ui/card/flint-card-header";
|
|
35
|
+
var FlintCardHeader = createComponent4({
|
|
36
|
+
tagName: "flint-card-header",
|
|
37
|
+
elementClass: FlintCardHeaderElement,
|
|
38
|
+
react: React4
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
// src/components/FlintCardMedia.tsx
|
|
42
|
+
import React5 from "react";
|
|
43
|
+
import { createComponent as createComponent5 } from "@lit/react";
|
|
44
|
+
import { FlintCardMedia as FlintCardMediaElement } from "@getufy/flint-ui/card/flint-card-media";
|
|
45
|
+
var FlintCardMedia = createComponent5({
|
|
46
|
+
tagName: "flint-card-media",
|
|
47
|
+
elementClass: FlintCardMediaElement,
|
|
48
|
+
react: React5
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
// src/components/FlintCard.tsx
|
|
52
|
+
import React6 from "react";
|
|
53
|
+
import { createComponent as createComponent6 } from "@lit/react";
|
|
54
|
+
import { FlintCard as FlintCardElement } from "@getufy/flint-ui/card/flint-card";
|
|
55
|
+
var FlintCard = createComponent6({
|
|
56
|
+
tagName: "flint-card",
|
|
57
|
+
elementClass: FlintCardElement,
|
|
58
|
+
react: React6
|
|
59
|
+
});
|
|
60
|
+
export {
|
|
61
|
+
FlintCard,
|
|
62
|
+
FlintCardActionArea,
|
|
63
|
+
FlintCardActions,
|
|
64
|
+
FlintCardContent,
|
|
65
|
+
FlintCardHeader,
|
|
66
|
+
FlintCardMedia
|
|
67
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { FlintCarouselContent, type FlintCarouselContentProps } from './components/FlintCarouselContent.js';
|
|
2
|
+
export { FlintCarouselItem, type FlintCarouselItemProps } from './components/FlintCarouselItem.js';
|
|
3
|
+
export { FlintCarouselPrevious, type FlintCarouselPreviousProps } from './components/FlintCarouselPrevious.js';
|
|
4
|
+
export { FlintCarouselNext, type FlintCarouselNextProps } from './components/FlintCarouselNext.js';
|
|
5
|
+
export { FlintCarousel, type FlintCarouselProps } from './components/FlintCarousel.js';
|
|
6
|
+
export { FlintCarouselEvents } from './events/flint-carousel.js';
|