@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/dist/carousel.js
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
// src/components/FlintCarouselContent.tsx
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { createComponent } from "@lit/react";
|
|
4
|
+
import { FlintCarouselContent as FlintCarouselContentElement } from "@getufy/flint-ui/carousel/flint-carousel";
|
|
5
|
+
var FlintCarouselContent = createComponent({
|
|
6
|
+
tagName: "flint-carousel-content",
|
|
7
|
+
elementClass: FlintCarouselContentElement,
|
|
8
|
+
react: React
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
// src/components/FlintCarouselItem.tsx
|
|
12
|
+
import React2 from "react";
|
|
13
|
+
import { createComponent as createComponent2 } from "@lit/react";
|
|
14
|
+
import { FlintCarouselItem as FlintCarouselItemElement } from "@getufy/flint-ui/carousel/flint-carousel";
|
|
15
|
+
var FlintCarouselItem = createComponent2({
|
|
16
|
+
tagName: "flint-carousel-item",
|
|
17
|
+
elementClass: FlintCarouselItemElement,
|
|
18
|
+
react: React2
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
// src/components/FlintCarouselPrevious.tsx
|
|
22
|
+
import React3 from "react";
|
|
23
|
+
import { createComponent as createComponent3 } from "@lit/react";
|
|
24
|
+
import { FlintCarouselPrevious as FlintCarouselPreviousElement } from "@getufy/flint-ui/carousel/flint-carousel";
|
|
25
|
+
var FlintCarouselPrevious = createComponent3({
|
|
26
|
+
tagName: "flint-carousel-previous",
|
|
27
|
+
elementClass: FlintCarouselPreviousElement,
|
|
28
|
+
react: React3
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
// src/components/FlintCarouselNext.tsx
|
|
32
|
+
import React4 from "react";
|
|
33
|
+
import { createComponent as createComponent4 } from "@lit/react";
|
|
34
|
+
import { FlintCarouselNext as FlintCarouselNextElement } from "@getufy/flint-ui/carousel/flint-carousel";
|
|
35
|
+
var FlintCarouselNext = createComponent4({
|
|
36
|
+
tagName: "flint-carousel-next",
|
|
37
|
+
elementClass: FlintCarouselNextElement,
|
|
38
|
+
react: React4
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
// src/components/FlintCarousel.tsx
|
|
42
|
+
import React5 from "react";
|
|
43
|
+
import { createComponent as createComponent5 } from "@lit/react";
|
|
44
|
+
import { FlintCarousel as FlintCarouselElement } from "@getufy/flint-ui/carousel/flint-carousel";
|
|
45
|
+
var FlintCarousel = createComponent5({
|
|
46
|
+
tagName: "flint-carousel",
|
|
47
|
+
elementClass: FlintCarouselElement,
|
|
48
|
+
react: React5,
|
|
49
|
+
events: {
|
|
50
|
+
onFlintCarouselChange: "flint-carousel-change"
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
// src/events/flint-carousel.ts
|
|
55
|
+
var FlintCarouselEvents = {
|
|
56
|
+
CHANGE: "flint-carousel-change"
|
|
57
|
+
};
|
|
58
|
+
export {
|
|
59
|
+
FlintCarousel,
|
|
60
|
+
FlintCarouselContent,
|
|
61
|
+
FlintCarouselEvents,
|
|
62
|
+
FlintCarouselItem,
|
|
63
|
+
FlintCarouselNext,
|
|
64
|
+
FlintCarouselPrevious
|
|
65
|
+
};
|
package/dist/checkbox.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// src/components/FlintCheckbox.tsx
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { createComponent } from "@lit/react";
|
|
4
|
+
import { FlintCheckbox as FlintCheckboxElement } from "@getufy/flint-ui/checkbox/flint-checkbox";
|
|
5
|
+
var FlintCheckbox = createComponent({
|
|
6
|
+
tagName: "flint-checkbox",
|
|
7
|
+
elementClass: FlintCheckboxElement,
|
|
8
|
+
react: React,
|
|
9
|
+
events: {
|
|
10
|
+
onFlintCheckboxChange: "flint-checkbox-change"
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
// src/events/flint-checkbox.ts
|
|
15
|
+
var FlintCheckboxEvents = {
|
|
16
|
+
CHANGE: "flint-checkbox-change"
|
|
17
|
+
};
|
|
18
|
+
export {
|
|
19
|
+
FlintCheckbox,
|
|
20
|
+
FlintCheckboxEvents
|
|
21
|
+
};
|
package/dist/chip.d.ts
ADDED
package/dist/chip.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// src/components/FlintChip.tsx
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { createComponent } from "@lit/react";
|
|
4
|
+
import { FlintChip as FlintChipElement } from "@getufy/flint-ui/chip/flint-chip";
|
|
5
|
+
var FlintChip = createComponent({
|
|
6
|
+
tagName: "flint-chip",
|
|
7
|
+
elementClass: FlintChipElement,
|
|
8
|
+
react: React,
|
|
9
|
+
events: {
|
|
10
|
+
onClick: "click",
|
|
11
|
+
onFlintChipDelete: "flint-chip-delete"
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
// src/events/flint-chip.ts
|
|
16
|
+
var FlintChipEvents = {
|
|
17
|
+
CLICK: "click",
|
|
18
|
+
DELETE: "flint-chip-delete"
|
|
19
|
+
};
|
|
20
|
+
export {
|
|
21
|
+
FlintChip,
|
|
22
|
+
FlintChipEvents
|
|
23
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { FlintCollapsibleTrigger, type FlintCollapsibleTriggerProps } from './components/FlintCollapsibleTrigger.js';
|
|
2
|
+
export { FlintCollapsibleContent, type FlintCollapsibleContentProps } from './components/FlintCollapsibleContent.js';
|
|
3
|
+
export { FlintCollapsible, type FlintCollapsibleProps } from './components/FlintCollapsible.js';
|
|
4
|
+
export { FlintCollapsibleEvents } from './events/flint-collapsible.js';
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
// src/components/FlintCollapsibleTrigger.tsx
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { createComponent } from "@lit/react";
|
|
4
|
+
import { FlintCollapsibleTrigger as FlintCollapsibleTriggerElement } from "@getufy/flint-ui/collapsible/flint-collapsible";
|
|
5
|
+
var FlintCollapsibleTrigger = createComponent({
|
|
6
|
+
tagName: "flint-collapsible-trigger",
|
|
7
|
+
elementClass: FlintCollapsibleTriggerElement,
|
|
8
|
+
react: React
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
// src/components/FlintCollapsibleContent.tsx
|
|
12
|
+
import React2 from "react";
|
|
13
|
+
import { createComponent as createComponent2 } from "@lit/react";
|
|
14
|
+
import { FlintCollapsibleContent as FlintCollapsibleContentElement } from "@getufy/flint-ui/collapsible/flint-collapsible";
|
|
15
|
+
var FlintCollapsibleContent = createComponent2({
|
|
16
|
+
tagName: "flint-collapsible-content",
|
|
17
|
+
elementClass: FlintCollapsibleContentElement,
|
|
18
|
+
react: React2
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
// src/components/FlintCollapsible.tsx
|
|
22
|
+
import React3 from "react";
|
|
23
|
+
import { createComponent as createComponent3 } from "@lit/react";
|
|
24
|
+
import { FlintCollapsible as FlintCollapsibleElement } from "@getufy/flint-ui/collapsible/flint-collapsible";
|
|
25
|
+
var FlintCollapsible = createComponent3({
|
|
26
|
+
tagName: "flint-collapsible",
|
|
27
|
+
elementClass: FlintCollapsibleElement,
|
|
28
|
+
react: React3,
|
|
29
|
+
events: {
|
|
30
|
+
onFlintCollapsibleChange: "flint-collapsible-change"
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
// src/events/flint-collapsible.ts
|
|
35
|
+
var FlintCollapsibleEvents = {
|
|
36
|
+
CHANGE: "flint-collapsible-change"
|
|
37
|
+
};
|
|
38
|
+
export {
|
|
39
|
+
FlintCollapsible,
|
|
40
|
+
FlintCollapsibleContent,
|
|
41
|
+
FlintCollapsibleEvents,
|
|
42
|
+
FlintCollapsibleTrigger
|
|
43
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export { FlintCommandShortcut, type FlintCommandShortcutProps } from './components/FlintCommandShortcut.js';
|
|
2
|
+
export { FlintCommandSeparator, type FlintCommandSeparatorProps } from './components/FlintCommandSeparator.js';
|
|
3
|
+
export { FlintCommandItem, type FlintCommandItemProps } from './components/FlintCommandItem.js';
|
|
4
|
+
export { FlintCommandEmpty, type FlintCommandEmptyProps } from './components/FlintCommandEmpty.js';
|
|
5
|
+
export { FlintCommandGroup, type FlintCommandGroupProps } from './components/FlintCommandGroup.js';
|
|
6
|
+
export { FlintCommandList, type FlintCommandListProps } from './components/FlintCommandList.js';
|
|
7
|
+
export { FlintCommandInput, type FlintCommandInputProps } from './components/FlintCommandInput.js';
|
|
8
|
+
export { FlintCommand, type FlintCommandProps } from './components/FlintCommand.js';
|
|
9
|
+
export { FlintCommandDialog, type FlintCommandDialogProps } from './components/FlintCommandDialog.js';
|
|
10
|
+
export { FlintCommandItemEvents } from './events/flint-command-item.js';
|
|
11
|
+
export { FlintCommandEvents } from './events/flint-command.js';
|
|
12
|
+
export { FlintCommandDialogEvents } from './events/flint-command-dialog.js';
|
package/dist/command.js
ADDED
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
// src/components/FlintCommandShortcut.tsx
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { createComponent } from "@lit/react";
|
|
4
|
+
import { FlintCommandShortcut as FlintCommandShortcutElement } from "@getufy/flint-ui/command/flint-command";
|
|
5
|
+
var FlintCommandShortcut = createComponent({
|
|
6
|
+
tagName: "flint-command-shortcut",
|
|
7
|
+
elementClass: FlintCommandShortcutElement,
|
|
8
|
+
react: React
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
// src/components/FlintCommandSeparator.tsx
|
|
12
|
+
import React2 from "react";
|
|
13
|
+
import { createComponent as createComponent2 } from "@lit/react";
|
|
14
|
+
import { FlintCommandSeparator as FlintCommandSeparatorElement } from "@getufy/flint-ui/command/flint-command";
|
|
15
|
+
var FlintCommandSeparator = createComponent2({
|
|
16
|
+
tagName: "flint-command-separator",
|
|
17
|
+
elementClass: FlintCommandSeparatorElement,
|
|
18
|
+
react: React2
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
// src/components/FlintCommandItem.tsx
|
|
22
|
+
import React3 from "react";
|
|
23
|
+
import { createComponent as createComponent3 } from "@lit/react";
|
|
24
|
+
import { FlintCommandItem as FlintCommandItemElement } from "@getufy/flint-ui/command/flint-command";
|
|
25
|
+
var FlintCommandItem = createComponent3({
|
|
26
|
+
tagName: "flint-command-item",
|
|
27
|
+
elementClass: FlintCommandItemElement,
|
|
28
|
+
react: React3,
|
|
29
|
+
events: {
|
|
30
|
+
onFlintCommandItemSelect: "flint-command-item-select"
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
// src/components/FlintCommandEmpty.tsx
|
|
35
|
+
import React4 from "react";
|
|
36
|
+
import { createComponent as createComponent4 } from "@lit/react";
|
|
37
|
+
import { FlintCommandEmpty as FlintCommandEmptyElement } from "@getufy/flint-ui/command/flint-command";
|
|
38
|
+
var FlintCommandEmpty = createComponent4({
|
|
39
|
+
tagName: "flint-command-empty",
|
|
40
|
+
elementClass: FlintCommandEmptyElement,
|
|
41
|
+
react: React4
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
// src/components/FlintCommandGroup.tsx
|
|
45
|
+
import React5 from "react";
|
|
46
|
+
import { createComponent as createComponent5 } from "@lit/react";
|
|
47
|
+
import { FlintCommandGroup as FlintCommandGroupElement } from "@getufy/flint-ui/command/flint-command";
|
|
48
|
+
var FlintCommandGroup = createComponent5({
|
|
49
|
+
tagName: "flint-command-group",
|
|
50
|
+
elementClass: FlintCommandGroupElement,
|
|
51
|
+
react: React5
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
// src/components/FlintCommandList.tsx
|
|
55
|
+
import React6 from "react";
|
|
56
|
+
import { createComponent as createComponent6 } from "@lit/react";
|
|
57
|
+
import { FlintCommandList as FlintCommandListElement } from "@getufy/flint-ui/command/flint-command";
|
|
58
|
+
var FlintCommandList = createComponent6({
|
|
59
|
+
tagName: "flint-command-list",
|
|
60
|
+
elementClass: FlintCommandListElement,
|
|
61
|
+
react: React6
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
// src/components/FlintCommandInput.tsx
|
|
65
|
+
import React7 from "react";
|
|
66
|
+
import { createComponent as createComponent7 } from "@lit/react";
|
|
67
|
+
import { FlintCommandInput as FlintCommandInputElement } from "@getufy/flint-ui/command/flint-command";
|
|
68
|
+
var FlintCommandInput = createComponent7({
|
|
69
|
+
tagName: "flint-command-input",
|
|
70
|
+
elementClass: FlintCommandInputElement,
|
|
71
|
+
react: React7
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
// src/components/FlintCommand.tsx
|
|
75
|
+
import React8 from "react";
|
|
76
|
+
import { createComponent as createComponent8 } from "@lit/react";
|
|
77
|
+
import { FlintCommand as FlintCommandElement } from "@getufy/flint-ui/command/flint-command";
|
|
78
|
+
var FlintCommand = createComponent8({
|
|
79
|
+
tagName: "flint-command",
|
|
80
|
+
elementClass: FlintCommandElement,
|
|
81
|
+
react: React8,
|
|
82
|
+
events: {
|
|
83
|
+
onFlintCommandItemSelect: "flint-command-item-select"
|
|
84
|
+
}
|
|
85
|
+
});
|
|
86
|
+
|
|
87
|
+
// src/components/FlintCommandDialog.tsx
|
|
88
|
+
import React9 from "react";
|
|
89
|
+
import { createComponent as createComponent9 } from "@lit/react";
|
|
90
|
+
import { FlintCommandDialog as FlintCommandDialogElement } from "@getufy/flint-ui/command/flint-command";
|
|
91
|
+
var FlintCommandDialog = createComponent9({
|
|
92
|
+
tagName: "flint-command-dialog",
|
|
93
|
+
elementClass: FlintCommandDialogElement,
|
|
94
|
+
react: React9,
|
|
95
|
+
events: {
|
|
96
|
+
onFlintCommandDialogClose: "flint-command-dialog-close"
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
|
|
100
|
+
// src/events/flint-command-item.ts
|
|
101
|
+
var FlintCommandItemEvents = {
|
|
102
|
+
SELECT: "flint-command-item-select"
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
// src/events/flint-command.ts
|
|
106
|
+
var FlintCommandEvents = {
|
|
107
|
+
ITEM_SELECT: "flint-command-item-select"
|
|
108
|
+
};
|
|
109
|
+
|
|
110
|
+
// src/events/flint-command-dialog.ts
|
|
111
|
+
var FlintCommandDialogEvents = {
|
|
112
|
+
CLOSE: "flint-command-dialog-close"
|
|
113
|
+
};
|
|
114
|
+
export {
|
|
115
|
+
FlintCommand,
|
|
116
|
+
FlintCommandDialog,
|
|
117
|
+
FlintCommandDialogEvents,
|
|
118
|
+
FlintCommandEmpty,
|
|
119
|
+
FlintCommandEvents,
|
|
120
|
+
FlintCommandGroup,
|
|
121
|
+
FlintCommandInput,
|
|
122
|
+
FlintCommandItem,
|
|
123
|
+
FlintCommandItemEvents,
|
|
124
|
+
FlintCommandList,
|
|
125
|
+
FlintCommandSeparator,
|
|
126
|
+
FlintCommandShortcut
|
|
127
|
+
};
|
|
@@ -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>>;
|