@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
|
@@ -1,8 +1,20 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type EventName } from '@lit/react';
|
|
3
2
|
import { FlintNavigationMenuItem as FlintNavigationMenuItemElement } from '@getufy/flint-ui/navigation-menu/flint-navigation-menu-item';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
/**
|
|
4
|
+
* @slot default - Item content (NavigationMenuTrigger and NavigationMenuContent)
|
|
5
|
+
*/
|
|
6
|
+
export interface FlintNavigationMenuItemProps extends React.HTMLAttributes<FlintNavigationMenuItemElement> {
|
|
7
|
+
/** Unique identifier for this menu item */
|
|
8
|
+
itemId?: string;
|
|
9
|
+
/** Whether this item is disabled */
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
/** Delay in ms before opening on hover */
|
|
12
|
+
openDelay?: number;
|
|
13
|
+
/** Delay in ms before closing after mouse leaves */
|
|
14
|
+
closeDelay?: number;
|
|
15
|
+
/** Fired when the item's trigger is clicked. */
|
|
16
|
+
onFlintNavigationMenuTriggerClick?: (event: CustomEvent) => void;
|
|
17
|
+
/** Fired when content visibility changes. */
|
|
18
|
+
onFlintNavigationMenuContentToggle?: (event: CustomEvent) => void;
|
|
19
|
+
}
|
|
20
|
+
export declare const FlintNavigationMenuItem: React.ForwardRefExoticComponent<FlintNavigationMenuItemProps & React.RefAttributes<FlintNavigationMenuItemElement>>;
|
|
@@ -1,4 +1,18 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FlintNavigationMenuLink as FlintNavigationMenuLinkElement } from '@getufy/flint-ui/navigation-menu/flint-navigation-menu-link';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
/**
|
|
4
|
+
* @slot default - Link text/content
|
|
5
|
+
*/
|
|
6
|
+
export interface FlintNavigationMenuLinkProps extends Omit<React.HTMLAttributes<FlintNavigationMenuLinkElement>, 'title'> {
|
|
7
|
+
/** The link URL */
|
|
8
|
+
href?: string;
|
|
9
|
+
/** The link target (e.g., '_blank') */
|
|
10
|
+
target?: string;
|
|
11
|
+
/** Link title/tooltip */
|
|
12
|
+
title?: string;
|
|
13
|
+
/** Whether the link is disabled */
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
/** Whether this link represents the current page. */
|
|
16
|
+
active?: boolean;
|
|
17
|
+
}
|
|
18
|
+
export declare const FlintNavigationMenuLink: React.ForwardRefExoticComponent<FlintNavigationMenuLinkProps & React.RefAttributes<FlintNavigationMenuLinkElement>>;
|
|
@@ -1,4 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FlintNavigationMenuList as FlintNavigationMenuListElement } from '@getufy/flint-ui/navigation-menu/flint-navigation-menu-list';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
/**
|
|
4
|
+
* @slot default - Menu items (NavigationMenuItem elements)
|
|
5
|
+
*/
|
|
6
|
+
export interface FlintNavigationMenuListProps extends React.HTMLAttributes<FlintNavigationMenuListElement> {
|
|
7
|
+
/** Gap between menu items */
|
|
8
|
+
gap?: number;
|
|
9
|
+
/** Flex direction for the list */
|
|
10
|
+
direction?: 'row' | 'column';
|
|
11
|
+
/** Accessible label for the navigation landmark. */
|
|
12
|
+
ariaLabel?: string;
|
|
13
|
+
}
|
|
14
|
+
export declare const FlintNavigationMenuList: React.ForwardRefExoticComponent<FlintNavigationMenuListProps & React.RefAttributes<FlintNavigationMenuListElement>>;
|
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type EventName } from '@lit/react';
|
|
3
2
|
import { FlintNavigationMenuTrigger as FlintNavigationMenuTriggerElement } from '@getufy/flint-ui/navigation-menu/flint-navigation-menu-trigger';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export
|
|
3
|
+
/**
|
|
4
|
+
* @slot default - Trigger label/content
|
|
5
|
+
*/
|
|
6
|
+
export interface FlintNavigationMenuTriggerProps extends React.HTMLAttributes<FlintNavigationMenuTriggerElement> {
|
|
7
|
+
/** The ID of the associated content element */
|
|
8
|
+
contentId?: string;
|
|
9
|
+
/** Whether the trigger is disabled */
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
/** Fired when trigger is clicked */
|
|
12
|
+
onFlintNavigationMenuTriggerClick?: (event: CustomEvent) => void;
|
|
13
|
+
}
|
|
14
|
+
export declare const FlintNavigationMenuTrigger: React.ForwardRefExoticComponent<FlintNavigationMenuTriggerProps & React.RefAttributes<FlintNavigationMenuTriggerElement>>;
|
|
@@ -1,7 +1,50 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type EventName } from '@lit/react';
|
|
3
2
|
import { FlintPagination as FlintPaginationElement } from '@getufy/flint-ui/pagination/flint-pagination';
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
|
|
3
|
+
export interface FlintPaginationChangeDetail {
|
|
4
|
+
page: number;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Pagination component enabling the user to select a specific page from
|
|
8
|
+
a range of pages.
|
|
9
|
+
*
|
|
10
|
+
* @slot prev-icon - Icon for the previous button (default: chevron left SVG).
|
|
11
|
+
* @slot next-icon - Icon for the next button (default: chevron right SVG).
|
|
12
|
+
* @slot first-icon - Icon for the first button (default: skip-to-start SVG).
|
|
13
|
+
* @slot last-icon - Icon for the last button (default: skip-to-end SVG).
|
|
14
|
+
* @slot ellipsis-icon - Icon for ellipsis items (default: three-dot SVG).
|
|
15
|
+
*/
|
|
16
|
+
export interface FlintPaginationProps extends Omit<React.HTMLAttributes<FlintPaginationElement>, 'color'> {
|
|
17
|
+
/** Total number of pages. */
|
|
18
|
+
count?: number;
|
|
19
|
+
/** The current page (1-based). In controlled mode, update this from the flint-pagination-change event. */
|
|
20
|
+
page?: number;
|
|
21
|
+
/** Initial page for uncontrolled mode. Ignored after first render. */
|
|
22
|
+
defaultPage?: number;
|
|
23
|
+
/** Accessible label for the nav landmark (aria-label). */
|
|
24
|
+
label?: string;
|
|
25
|
+
/** Variant. */
|
|
26
|
+
variant?: 'text' | 'outlined';
|
|
27
|
+
/** Shape. */
|
|
28
|
+
shape?: 'circular' | 'rounded' | 'square';
|
|
29
|
+
/** Size. */
|
|
30
|
+
size?: 'small' | 'medium' | 'large';
|
|
31
|
+
/** Color. */
|
|
32
|
+
color?: 'primary' | 'secondary' | 'standard';
|
|
33
|
+
/** Show first-page button. */
|
|
34
|
+
showFirstButton?: boolean;
|
|
35
|
+
/** Show last-page button. */
|
|
36
|
+
showLastButton?: boolean;
|
|
37
|
+
/** Hide previous button. */
|
|
38
|
+
hidePrevButton?: boolean;
|
|
39
|
+
/** Hide next button. */
|
|
40
|
+
hideNextButton?: boolean;
|
|
41
|
+
/** Number of sibling pages around the current page. */
|
|
42
|
+
siblingCount?: number;
|
|
43
|
+
/** Number of pages always shown at start and end. */
|
|
44
|
+
boundaryCount?: number;
|
|
45
|
+
/** Disable the whole component. */
|
|
46
|
+
disabled?: boolean;
|
|
47
|
+
/** { page: number } when the active page changes. */
|
|
48
|
+
onFlintPaginationChange?: (event: CustomEvent<FlintPaginationChangeDetail>) => void;
|
|
49
|
+
}
|
|
50
|
+
export declare const FlintPagination: React.ForwardRefExoticComponent<FlintPaginationProps & React.RefAttributes<FlintPaginationElement>>;
|
|
@@ -1,4 +1,15 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FlintPaper as FlintPaperElement } from '@getufy/flint-ui/paper/flint-paper';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
/**
|
|
4
|
+
* The Paper component is a container for displaying content on an elevated surface.
|
|
5
|
+
Shadow styles are influenced by real-world physical counterparts.
|
|
6
|
+
*/
|
|
7
|
+
export interface FlintPaperProps extends React.HTMLAttributes<FlintPaperElement> {
|
|
8
|
+
/** Shadow depth. Supported values: 0, 1, 2, 3, 4, 6, 8, 12, 16, 24. */
|
|
9
|
+
elevation?: number;
|
|
10
|
+
/** If true, the paper will have square corners (border-radius: 0). */
|
|
11
|
+
square?: boolean;
|
|
12
|
+
/** Visual variant. */
|
|
13
|
+
variant?: 'elevated' | 'outlined' | 'flat';
|
|
14
|
+
}
|
|
15
|
+
export declare const FlintPaper: React.ForwardRefExoticComponent<FlintPaperProps & React.RefAttributes<FlintPaperElement>>;
|
|
@@ -1,7 +1,27 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type EventName } from '@lit/react';
|
|
3
2
|
import { FlintRadio as FlintRadioElement } from '@getufy/flint-ui/radio/flint-radio';
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
|
|
3
|
+
export interface FlintRadioSelectDetail {
|
|
4
|
+
value: string;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Radio: a single radio button within a radio group.
|
|
8
|
+
*/
|
|
9
|
+
export interface FlintRadioProps extends React.HTMLAttributes<FlintRadioElement> {
|
|
10
|
+
/** Whether this radio is selected. */
|
|
11
|
+
checked?: boolean;
|
|
12
|
+
/** Disables this radio and prevents interaction. */
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
/** Whether this radio is required. */
|
|
15
|
+
required?: boolean;
|
|
16
|
+
/** Form field name (usually set by the parent group). */
|
|
17
|
+
name?: string;
|
|
18
|
+
/** Value associated with this radio option. */
|
|
19
|
+
value?: string;
|
|
20
|
+
/** Visible label text for this radio option. */
|
|
21
|
+
label?: string;
|
|
22
|
+
/** Size of the radio button. */
|
|
23
|
+
size?: FlintRadioElement['size'];
|
|
24
|
+
/** Fired when this radio is selected. */
|
|
25
|
+
onFlintRadioSelect?: (event: CustomEvent<FlintRadioSelectDetail>) => void;
|
|
26
|
+
}
|
|
27
|
+
export declare const FlintRadio: React.ForwardRefExoticComponent<FlintRadioProps & React.RefAttributes<FlintRadioElement>>;
|
|
@@ -1,7 +1,29 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type EventName } from '@lit/react';
|
|
3
2
|
import { FlintRadioGroup as FlintRadioGroupElement } from '@getufy/flint-ui/radio/flint-radio';
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
|
|
3
|
+
export interface FlintRadioGroupChangeDetail {
|
|
4
|
+
value: string;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Radio Group: manages a set of radio buttons with single selection.
|
|
8
|
+
*/
|
|
9
|
+
export interface FlintRadioGroupProps extends Omit<React.HTMLAttributes<FlintRadioGroupElement>, 'defaultValue'> {
|
|
10
|
+
/** Accessible label for the radio group. */
|
|
11
|
+
label?: string;
|
|
12
|
+
/** Form field name for all radios in the group. */
|
|
13
|
+
name?: string;
|
|
14
|
+
/** Currently selected radio value. */
|
|
15
|
+
value?: string;
|
|
16
|
+
/** Initial value for uncontrolled usage. */
|
|
17
|
+
defaultValue?: string;
|
|
18
|
+
/** Disables all radios in the group. */
|
|
19
|
+
disabled?: boolean;
|
|
20
|
+
/** Marks the group as required for form validation. */
|
|
21
|
+
required?: boolean;
|
|
22
|
+
/** Layout direction of the radio buttons. */
|
|
23
|
+
orientation?: FlintRadioGroupElement['orientation'];
|
|
24
|
+
/** Size of the radio buttons. */
|
|
25
|
+
size?: FlintRadioGroupElement['size'];
|
|
26
|
+
/** Fired when the selected radio value changes. */
|
|
27
|
+
onFlintRadioGroupChange?: (event: CustomEvent<FlintRadioGroupChangeDetail>) => void;
|
|
28
|
+
}
|
|
29
|
+
export declare const FlintRadioGroup: React.ForwardRefExoticComponent<FlintRadioGroupProps & React.RefAttributes<FlintRadioGroupElement>>;
|
|
@@ -1,7 +1,25 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type EventName } from '@lit/react';
|
|
3
2
|
import { FlintRangeSlider as FlintRangeSliderElement } from '@getufy/flint-ui/flint-range-slider/flint-range-slider';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export
|
|
3
|
+
/**
|
|
4
|
+
* A range slider that lets users select a start and end value within a range.
|
|
5
|
+
*/
|
|
6
|
+
export interface FlintRangeSliderProps extends React.HTMLAttributes<FlintRangeSliderElement> {
|
|
7
|
+
value?: FlintRangeSliderElement['value'];
|
|
8
|
+
/** Minimum allowed value. */
|
|
9
|
+
min?: number;
|
|
10
|
+
/** Maximum allowed value. */
|
|
11
|
+
max?: number;
|
|
12
|
+
/** Step increment between values. */
|
|
13
|
+
step?: number;
|
|
14
|
+
/** Visual size of the track and thumbs. */
|
|
15
|
+
size?: 'sm' | 'md' | 'lg';
|
|
16
|
+
/** Whether the slider is disabled. */
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
/** Label text displayed above the slider. */
|
|
19
|
+
label?: string;
|
|
20
|
+
/** Whether to display the current start and end values. */
|
|
21
|
+
showValue?: boolean;
|
|
22
|
+
/** When either thumb moves. detail: { value: [number, number] } */
|
|
23
|
+
onFlintRangeSliderChange?: (event: CustomEvent) => void;
|
|
24
|
+
}
|
|
25
|
+
export declare const FlintRangeSlider: React.ForwardRefExoticComponent<FlintRangeSliderProps & React.RefAttributes<FlintRangeSliderElement>>;
|
|
@@ -1,7 +1,33 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type EventName } from '@lit/react';
|
|
3
2
|
import { FlintRating as FlintRatingElement } from '@getufy/flint-ui/rating/flint-rating';
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
|
|
3
|
+
export interface FlintRatingChangeDetail {
|
|
4
|
+
value: number;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Rating: a star-based rating input.
|
|
8
|
+
*/
|
|
9
|
+
export interface FlintRatingProps extends Omit<React.HTMLAttributes<FlintRatingElement>, 'defaultValue'> {
|
|
10
|
+
/** Current rating value. */
|
|
11
|
+
value?: number;
|
|
12
|
+
/** Maximum number of stars. */
|
|
13
|
+
max?: number;
|
|
14
|
+
/** Whether the rating is read-only. */
|
|
15
|
+
readonly?: boolean;
|
|
16
|
+
/** Whether the rating is disabled. */
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
/** Whether clicking the current value clears the rating. */
|
|
19
|
+
clearable?: boolean;
|
|
20
|
+
/** Initial rating value for uncontrolled mode. */
|
|
21
|
+
defaultValue?: number;
|
|
22
|
+
/** Size of the rating stars. */
|
|
23
|
+
size?: 'sm' | 'md' | 'lg';
|
|
24
|
+
/** Form field name for the hidden input. */
|
|
25
|
+
name?: string;
|
|
26
|
+
/** Accessible label for the rating group. */
|
|
27
|
+
label?: string;
|
|
28
|
+
/** Rating step precision (1 for full stars, 0.5 for half stars). */
|
|
29
|
+
precision?: FlintRatingElement['precision'];
|
|
30
|
+
/** Fired when the rating value changes. */
|
|
31
|
+
onFlintRatingChange?: (event: CustomEvent<FlintRatingChangeDetail>) => void;
|
|
32
|
+
}
|
|
33
|
+
export declare const FlintRating: React.ForwardRefExoticComponent<FlintRatingProps & React.RefAttributes<FlintRatingElement>>;
|
|
@@ -1,4 +1,19 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FlintRelativeTime as FlintRelativeTimeElement } from '@getufy/flint-ui/relative-time/flint-relative-time';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Displays a localized time phrase relative to the current date and time.
|
|
5
|
+
Uses the browser's `Intl.RelativeTimeFormat` API — no language packs needed.
|
|
6
|
+
*/
|
|
7
|
+
export interface FlintRelativeTimeProps extends Omit<React.HTMLAttributes<FlintRelativeTimeElement>, 'lang'> {
|
|
8
|
+
/** The date to calculate time from. Accepts a Date, ISO string, or Unix ms timestamp. Defaults to the current date/time. */
|
|
9
|
+
date?: FlintRelativeTimeElement['date'];
|
|
10
|
+
/** The formatting style to use. */
|
|
11
|
+
format?: 'long' | 'short' | 'narrow';
|
|
12
|
+
/** When `auto`, values such as "yesterday" and "tomorrow" will be shown when */
|
|
13
|
+
numeric?: 'always' | 'auto';
|
|
14
|
+
/** Keep the displayed value up to date as time passes. */
|
|
15
|
+
sync?: boolean;
|
|
16
|
+
/** BCP 47 language tag for formatting (e.g. "en", "de", "ja"). Inherits from the document when unset. */
|
|
17
|
+
lang?: string;
|
|
18
|
+
}
|
|
19
|
+
export declare const FlintRelativeTime: React.ForwardRefExoticComponent<FlintRelativeTimeProps & React.RefAttributes<FlintRelativeTimeElement>>;
|
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type EventName } from '@lit/react';
|
|
3
2
|
import { FlintResizableGroup as FlintResizableGroupElement } from '@getufy/flint-ui/resizable/flint-resizable';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Resizable Group: a container that enables resizable panels with draggable handles.
|
|
5
|
+
*/
|
|
6
|
+
export interface FlintResizableGroupProps extends Omit<React.HTMLAttributes<FlintResizableGroupElement>, 'dir'> {
|
|
7
|
+
/** Layout direction — 'horizontal' (row) or 'vertical' (column). */
|
|
8
|
+
orientation?: 'horizontal' | 'vertical';
|
|
9
|
+
/** Text direction for RTL support. */
|
|
10
|
+
dir?: 'ltr' | 'rtl';
|
|
11
|
+
/** Fired when a panel is collapsed. */
|
|
12
|
+
onFlintResizableCollapse?: (event: CustomEvent) => void;
|
|
13
|
+
/** Fired when a collapsed panel is expanded. */
|
|
14
|
+
onFlintResizableExpand?: (event: CustomEvent) => void;
|
|
15
|
+
/** Fired when panel sizes change via drag or keyboard. */
|
|
16
|
+
onFlintResizableChange?: (event: CustomEvent) => void;
|
|
17
|
+
}
|
|
18
|
+
export declare const FlintResizableGroup: React.ForwardRefExoticComponent<FlintResizableGroupProps & React.RefAttributes<FlintResizableGroupElement>>;
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FlintResizableHandle as FlintResizableHandleElement } from '@getufy/flint-ui/resizable/flint-resizable';
|
|
3
|
-
export
|
|
4
|
-
|
|
3
|
+
export interface FlintResizableHandleProps extends React.HTMLAttributes<FlintResizableHandleElement> {
|
|
4
|
+
/** Show a visible drag grip. */
|
|
5
|
+
withHandle?: boolean;
|
|
6
|
+
/** Disable interaction. */
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
orientation?: 'horizontal' | 'vertical';
|
|
9
|
+
}
|
|
10
|
+
export declare const FlintResizableHandle: React.ForwardRefExoticComponent<FlintResizableHandleProps & React.RefAttributes<FlintResizableHandleElement>>;
|
|
@@ -1,4 +1,17 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FlintResizablePanel as FlintResizablePanelElement } from '@getufy/flint-ui/resizable/flint-resizable';
|
|
3
|
-
export
|
|
4
|
-
|
|
3
|
+
export interface FlintResizablePanelProps extends React.HTMLAttributes<FlintResizablePanelElement> {
|
|
4
|
+
/** Current size as percentage (0–100). */
|
|
5
|
+
size?: number;
|
|
6
|
+
/** Default size — applied once on first update. */
|
|
7
|
+
defaultSize?: number;
|
|
8
|
+
/** Minimum size percentage (0–100). */
|
|
9
|
+
minSize?: number;
|
|
10
|
+
/** Maximum size percentage (0–100). */
|
|
11
|
+
maxSize?: number;
|
|
12
|
+
/** Whether the panel can collapse to zero size via drag. */
|
|
13
|
+
collapsible?: boolean;
|
|
14
|
+
/** Whether the panel is currently collapsed via the programmatic API. */
|
|
15
|
+
collapsed?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export declare const FlintResizablePanel: React.ForwardRefExoticComponent<FlintResizablePanelProps & React.RefAttributes<FlintResizablePanelElement>>;
|
|
@@ -1,10 +1,52 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type EventName } from '@lit/react';
|
|
3
2
|
import { FlintRichTreeView as FlintRichTreeViewElement } from '@getufy/flint-ui/tree-view/flint-rich-tree-view';
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export
|
|
3
|
+
export interface FlintTreeViewExpandedItemsChangeDetail {
|
|
4
|
+
expandedItems: string[];
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* A data-driven tree view that renders its structure from an `items` array.
|
|
8
|
+
*/
|
|
9
|
+
export interface FlintRichTreeViewProps extends React.HTMLAttributes<FlintRichTreeViewElement> {
|
|
10
|
+
/** Array of item data objects to render in the tree. */
|
|
11
|
+
items?: FlintRichTreeViewElement['items'];
|
|
12
|
+
/** Optional lazy-load data source. When provided, children are fetched */
|
|
13
|
+
dataSource?: FlintRichTreeViewElement['dataSource'];
|
|
14
|
+
/** Returns the unique string ID for an item. Defaults to `item.id`. */
|
|
15
|
+
getItemId?: FlintRichTreeViewElement['getItemId'];
|
|
16
|
+
/** Returns the display label for an item. Defaults to `item.label`. */
|
|
17
|
+
getItemLabel?: FlintRichTreeViewElement['getItemLabel'];
|
|
18
|
+
/** Returns the children array for an item. Defaults to `item.children`. */
|
|
19
|
+
getItemChildren?: FlintRichTreeViewElement['getItemChildren'];
|
|
20
|
+
/** Returns `true` if the given item should be disabled. */
|
|
21
|
+
isItemDisabled?: FlintRichTreeViewElement['isItemDisabled'];
|
|
22
|
+
/** When `true`, disabled items can receive keyboard focus. */
|
|
23
|
+
disabledItemsFocusable?: boolean;
|
|
24
|
+
/** Callback invoked when a tree item is clicked or activated via keyboard. */
|
|
25
|
+
onItemClick?: FlintRichTreeViewElement['onItemClick'];
|
|
26
|
+
/** What interaction triggers expand/collapse. */
|
|
27
|
+
expansionTrigger?: 'content' | 'iconContainer';
|
|
28
|
+
/** **Controlled mode.** The set of item IDs that should be expanded. */
|
|
29
|
+
expandedItems?: string[];
|
|
30
|
+
/** **Uncontrolled mode.** Item IDs to expand on initial mount. */
|
|
31
|
+
defaultExpandedItems?: string[];
|
|
32
|
+
/** Callback fired when the user toggles an item's expansion. */
|
|
33
|
+
onExpandedItemsChange?: FlintRichTreeViewElement['onExpandedItemsChange'];
|
|
34
|
+
/** When `true`, enables drag-and-drop reordering of items. */
|
|
35
|
+
itemsReordering?: boolean;
|
|
36
|
+
/** Function that determines if a specific item can be reordered. */
|
|
37
|
+
isItemReorderable?: FlintRichTreeViewElement['isItemReorderable'];
|
|
38
|
+
/** Function that determines if an item can be moved to a specific target position. */
|
|
39
|
+
canMoveItemToNewPosition?: FlintRichTreeViewElement['canMoveItemToNewPosition'];
|
|
40
|
+
/** Whether to use a drag handle icon for reordering. */
|
|
41
|
+
itemsReorderingHandle?: boolean;
|
|
42
|
+
/** Fired when an item's position changes via reordering. */
|
|
43
|
+
onItemPositionChange?: FlintRichTreeViewElement['onItemPositionChange'];
|
|
44
|
+
/** When a lazy-loading dataSource call fails (detail: { message, id, error }) */
|
|
45
|
+
onFlintTreeViewError?: (event: CustomEvent) => void;
|
|
46
|
+
/** When the expanded set changes (detail: { expandedItems }) */
|
|
47
|
+
onFlintTreeViewExpandedItemsChange?: (event: CustomEvent<FlintTreeViewExpandedItemsChangeDetail>) => void;
|
|
48
|
+
/** When a tree item is activated (detail: { itemId }) */
|
|
49
|
+
onFlintTreeViewItemClick?: (event: CustomEvent) => void;
|
|
50
|
+
onFlintTreeViewItemPositionChange?: (event: CustomEvent) => void;
|
|
51
|
+
}
|
|
52
|
+
export declare const FlintRichTreeView: React.ForwardRefExoticComponent<FlintRichTreeViewProps & React.RefAttributes<FlintRichTreeViewElement>>;
|
|
@@ -1,4 +1,17 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FlintScrollArea as FlintScrollAreaElement } from '@getufy/flint-ui/scroll-area/flint-scroll-area';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Augments native scroll with custom, cross-browser overlay scrollbars.
|
|
5
|
+
Native scrollbars are hidden; lightweight custom thumbs are rendered in
|
|
6
|
+
shadow DOM and synced to the viewport via scroll + ResizeObserver events.
|
|
7
|
+
*
|
|
8
|
+
* @slot - Scrollable content.
|
|
9
|
+
* @slot scrollbar - Optional explicit `flint-scroll-bar` elements (e.g. horizontal).
|
|
10
|
+
*/
|
|
11
|
+
export interface FlintScrollAreaProps extends Omit<React.HTMLAttributes<FlintScrollAreaElement>, 'dir'> {
|
|
12
|
+
/** Controls when the scrollbars appear. */
|
|
13
|
+
type?: 'auto' | 'always' | 'scroll' | 'hover';
|
|
14
|
+
/** Text direction. `'rtl'` flips the vertical bar to the left side. */
|
|
15
|
+
dir?: 'ltr' | 'rtl';
|
|
16
|
+
}
|
|
17
|
+
export declare const FlintScrollArea: React.ForwardRefExoticComponent<FlintScrollAreaProps & React.RefAttributes<FlintScrollAreaElement>>;
|
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FlintScrollBar as FlintScrollBarElement } from '@getufy/flint-ui/scroll-area/flint-scroll-area';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Custom overlay scrollbar. Place inside `flint-scroll-area` with
|
|
5
|
+
`slot="scrollbar"` for an explicit horizontal or second-axis bar.
|
|
6
|
+
*
|
|
7
|
+
* @slot — none (fully shadow DOM)
|
|
8
|
+
*/
|
|
9
|
+
export interface FlintScrollBarProps extends React.HTMLAttributes<FlintScrollBarElement> {
|
|
10
|
+
/** Which axis this scrollbar controls. Reflects to attribute. */
|
|
11
|
+
orientation?: 'vertical' | 'horizontal';
|
|
12
|
+
}
|
|
13
|
+
export declare const FlintScrollBar: React.ForwardRefExoticComponent<FlintScrollBarProps & React.RefAttributes<FlintScrollBarElement>>;
|
|
@@ -1,7 +1,42 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type EventName } from '@lit/react';
|
|
3
2
|
import { FlintSelect as FlintSelectElement } from '@getufy/flint-ui/select/flint-select';
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
|
|
3
|
+
export interface FlintSelectChangeDetail {
|
|
4
|
+
value: string[];
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* A select component for choosing one or multiple options from a list.
|
|
8
|
+
*
|
|
9
|
+
* @slot icon - Optional icon shown at the start of the trigger.
|
|
10
|
+
* @slot error-message - Optional slot for error message content (use error-message prop for simple text).
|
|
11
|
+
*/
|
|
12
|
+
export interface FlintSelectProps extends Omit<React.HTMLAttributes<FlintSelectElement>, 'defaultValue'> {
|
|
13
|
+
/** Label text displayed above the select. */
|
|
14
|
+
label?: string;
|
|
15
|
+
/** Array of selectable options. */
|
|
16
|
+
options?: FlintSelectElement['options'];
|
|
17
|
+
/** Currently selected value(s). */
|
|
18
|
+
value?: string[];
|
|
19
|
+
/** Allow multiple selections. */
|
|
20
|
+
multiple?: boolean;
|
|
21
|
+
/** Placeholder text when no value is selected. */
|
|
22
|
+
placeholder?: string;
|
|
23
|
+
/** Disables the select and prevents interaction. */
|
|
24
|
+
disabled?: boolean;
|
|
25
|
+
/** Makes the select read-only. */
|
|
26
|
+
readonly?: boolean;
|
|
27
|
+
/** Marks the select as required for form validation. */
|
|
28
|
+
required?: boolean;
|
|
29
|
+
/** Whether the select is in an error state. */
|
|
30
|
+
error?: boolean;
|
|
31
|
+
/** Error message displayed below the select. */
|
|
32
|
+
errorMessage?: string;
|
|
33
|
+
/** Form field name used when submitting form data. */
|
|
34
|
+
name?: string;
|
|
35
|
+
/** Size variant of the select. */
|
|
36
|
+
size?: FlintSelectElement['size'];
|
|
37
|
+
/** Sets the initial value in uncontrolled mode (single-select only). */
|
|
38
|
+
defaultValue?: string;
|
|
39
|
+
/** Dispatched when the selection changes. detail: { value: string | null } (single) or { value: string[] } (multiple) */
|
|
40
|
+
onFlintSelectChange?: (event: CustomEvent<FlintSelectChangeDetail>) => void;
|
|
41
|
+
}
|
|
42
|
+
export declare const FlintSelect: React.ForwardRefExoticComponent<FlintSelectProps & React.RefAttributes<FlintSelectElement>>;
|
|
@@ -1,8 +1,30 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type EventName } from '@lit/react';
|
|
3
2
|
import { FlintSimpleTreeView as FlintSimpleTreeViewElement } from '@getufy/flint-ui/tree-view/flint-simple-tree-view';
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
export interface FlintTreeViewExpandedItemsChangeDetail {
|
|
4
|
+
expandedItems: string[];
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* A simple tree-view container that manages keyboard navigation, focus,
|
|
8
|
+
and item selection/expansion for nested `flint-tree-item` elements.
|
|
9
|
+
*
|
|
10
|
+
* @slot - Place `flint-tree-item` elements here.
|
|
11
|
+
*/
|
|
12
|
+
export interface FlintSimpleTreeViewProps extends React.HTMLAttributes<FlintSimpleTreeViewElement> {
|
|
13
|
+
/** When `true`, disabled items can receive keyboard focus. */
|
|
14
|
+
disabledItemsFocusable?: boolean;
|
|
15
|
+
/** Callback invoked when a tree item is clicked or activated via keyboard. */
|
|
16
|
+
onItemClick?: FlintSimpleTreeViewElement['onItemClick'];
|
|
17
|
+
/** **Controlled mode.** The set of item IDs that should be expanded. */
|
|
18
|
+
expandedItems?: string[];
|
|
19
|
+
/** **Uncontrolled mode.** Item IDs to expand on initial mount. */
|
|
20
|
+
defaultExpandedItems?: string[];
|
|
21
|
+
/** Callback fired when the user toggles an item's expansion. */
|
|
22
|
+
onExpandedItemsChange?: FlintSimpleTreeViewElement['onExpandedItemsChange'];
|
|
23
|
+
/** What interaction triggers expand/collapse. */
|
|
24
|
+
expansionTrigger?: 'content' | 'iconContainer';
|
|
25
|
+
/** When the expanded set changes (detail: { expandedItems }) */
|
|
26
|
+
onFlintTreeViewExpandedItemsChange?: (event: CustomEvent<FlintTreeViewExpandedItemsChangeDetail>) => void;
|
|
27
|
+
/** When a tree item is activated (detail: { itemId }) */
|
|
28
|
+
onFlintTreeViewItemClick?: (event: CustomEvent) => void;
|
|
29
|
+
}
|
|
30
|
+
export declare const FlintSimpleTreeView: React.ForwardRefExoticComponent<FlintSimpleTreeViewProps & React.RefAttributes<FlintSimpleTreeViewElement>>;
|
|
@@ -1,8 +1,33 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type EventName } from '@lit/react';
|
|
3
2
|
import { FlintSingleInputDateRangeField as FlintSingleInputDateRangeFieldElement } from '@getufy/flint-ui/date-range-picker/flint-single-input-date-range-field';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export
|
|
3
|
+
/**
|
|
4
|
+
* A single-input field for entering a date range (start → end).
|
|
5
|
+
Renders as "MM/DD/YYYY – MM/DD/YYYY" with six independently editable segments.
|
|
6
|
+
*/
|
|
7
|
+
export interface FlintSingleInputDateRangeFieldProps extends React.HTMLAttributes<FlintSingleInputDateRangeFieldElement> {
|
|
8
|
+
/** Controlled range value [startISO, endISO]. */
|
|
9
|
+
value?: FlintSingleInputDateRangeFieldElement['value'];
|
|
10
|
+
/** Field label text. */
|
|
11
|
+
label?: string;
|
|
12
|
+
/** Form field name used for hidden inputs. */
|
|
13
|
+
name?: string;
|
|
14
|
+
/** Minimum allowed date (ISO YYYY-MM-DD). */
|
|
15
|
+
min?: string;
|
|
16
|
+
/** Maximum allowed date (ISO YYYY-MM-DD). */
|
|
17
|
+
max?: string;
|
|
18
|
+
/** Disables the field and prevents interaction. */
|
|
19
|
+
disabled?: boolean;
|
|
20
|
+
/** Makes the field read-only (visible but not editable). */
|
|
21
|
+
readonly?: boolean;
|
|
22
|
+
/** Displays the field in an error state. */
|
|
23
|
+
error?: boolean;
|
|
24
|
+
/** Helper text shown below the field. */
|
|
25
|
+
helperText?: string;
|
|
26
|
+
/** Error message displayed below the field when in error state. */
|
|
27
|
+
errorMessage?: string;
|
|
28
|
+
/** fired when all segments are cleared */
|
|
29
|
+
onFlintDateRangePickerClear?: (event: CustomEvent) => void;
|
|
30
|
+
/** { detail: { value: DateRange } } when both dates are complete */
|
|
31
|
+
onFlintDateRangePickerChange?: (event: CustomEvent) => void;
|
|
32
|
+
}
|
|
33
|
+
export declare const FlintSingleInputDateRangeField: React.ForwardRefExoticComponent<FlintSingleInputDateRangeFieldProps & React.RefAttributes<FlintSingleInputDateRangeFieldElement>>;
|