@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,4 +1,41 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FlintFormatNumber as FlintFormatNumberElement } from '@getufy/flint-ui/format-number/flint-format-number';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Formats a number using the specified locale and options.
|
|
5
|
+
Localization is handled by the browser's `Intl.NumberFormat` API — no language packs required.
|
|
6
|
+
*/
|
|
7
|
+
export interface FlintFormatNumberProps extends Omit<React.HTMLAttributes<FlintFormatNumberElement>, 'lang'> {
|
|
8
|
+
/** The number to format. */
|
|
9
|
+
value?: number;
|
|
10
|
+
/** The formatting style to use. */
|
|
11
|
+
type?: 'currency' | 'decimal' | 'percent' | 'unit';
|
|
12
|
+
/** Turns off grouping separators (e.g. thousands separator). */
|
|
13
|
+
noGrouping?: boolean;
|
|
14
|
+
/** The ISO 4217 currency code to use when formatting (e.g. 'USD', 'EUR', 'GBP'). */
|
|
15
|
+
currency?: string;
|
|
16
|
+
/** How to display the currency. */
|
|
17
|
+
currencyDisplay?: 'symbol' | 'narrowSymbol' | 'code' | 'name';
|
|
18
|
+
/** Number notation style. 'compact' renders e.g. "1.2K" or "3.4M". */
|
|
19
|
+
notation?: 'standard' | 'scientific' | 'engineering' | 'compact';
|
|
20
|
+
/** How to display compact notation — 'short' (1K) or 'long' (1 thousand). */
|
|
21
|
+
compactDisplay?: 'short' | 'long';
|
|
22
|
+
/** When to show the sign. */
|
|
23
|
+
signDisplay?: 'auto' | 'never' | 'always' | 'exceptZero';
|
|
24
|
+
/** ECMA-402 unit identifier (e.g. 'kilometer', 'kilogram', 'celsius'). Required when type='unit'. */
|
|
25
|
+
unit?: string;
|
|
26
|
+
/** How to display the unit when type='unit'. */
|
|
27
|
+
unitDisplay?: 'short' | 'long' | 'narrow';
|
|
28
|
+
/** The minimum number of integer digits (1–21). */
|
|
29
|
+
minimumIntegerDigits?: number | undefined;
|
|
30
|
+
/** The minimum number of fraction digits (0–20). */
|
|
31
|
+
minimumFractionDigits?: number | undefined;
|
|
32
|
+
/** The maximum number of fraction digits (0–20). */
|
|
33
|
+
maximumFractionDigits?: number | undefined;
|
|
34
|
+
/** The minimum number of significant digits (1–21). */
|
|
35
|
+
minimumSignificantDigits?: number | undefined;
|
|
36
|
+
/** The maximum number of significant digits (1–21). */
|
|
37
|
+
maximumSignificantDigits?: number | undefined;
|
|
38
|
+
/** BCP 47 language tag for formatting locale. Inherits from the document when unset. */
|
|
39
|
+
lang?: string;
|
|
40
|
+
}
|
|
41
|
+
export declare const FlintFormatNumber: React.ForwardRefExoticComponent<FlintFormatNumberProps & React.RefAttributes<FlintFormatNumberElement>>;
|
|
@@ -1,4 +1,37 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FlintGrid as FlintGridElement } from '@getufy/flint-ui/grid/flint-grid';
|
|
3
|
-
export
|
|
4
|
-
|
|
3
|
+
export interface FlintGridProps extends React.HTMLAttributes<FlintGridElement> {
|
|
4
|
+
/** Whether this element acts as a grid container. */
|
|
5
|
+
container?: boolean;
|
|
6
|
+
/** Flex direction of the grid container. */
|
|
7
|
+
direction?: 'row' | 'row-reverse' | 'column' | 'column-reverse';
|
|
8
|
+
/** Flex wrap behavior of the grid container. */
|
|
9
|
+
wrap?: 'nowrap' | 'wrap' | 'wrap-reverse';
|
|
10
|
+
/** Cross-axis alignment of grid items. */
|
|
11
|
+
alignItems?: 'flex-start' | 'center' | 'flex-end' | 'stretch' | 'baseline';
|
|
12
|
+
/** Main-axis alignment of grid items. */
|
|
13
|
+
justifyContent?: 'flex-start' | 'center' | 'flex-end' | 'space-between' | 'space-around' | 'space-evenly';
|
|
14
|
+
/** Total number of columns. Default is 12. */
|
|
15
|
+
columns?: number;
|
|
16
|
+
/** Spacing between items. 1 unit = 8px. */
|
|
17
|
+
spacing?: FlintGridElement['spacing'];
|
|
18
|
+
/** Row spacing override; takes precedence over `spacing` for the row axis. */
|
|
19
|
+
rowSpacing?: FlintGridElement['rowSpacing'];
|
|
20
|
+
/** Column spacing override; takes precedence over `spacing` for the column axis. */
|
|
21
|
+
columnSpacing?: FlintGridElement['columnSpacing'];
|
|
22
|
+
/** Number of columns to span at the xs breakpoint. */
|
|
23
|
+
xs?: FlintGridElement['xs'];
|
|
24
|
+
/** Number of columns to span at the sm breakpoint. */
|
|
25
|
+
sm?: FlintGridElement['sm'];
|
|
26
|
+
/** Number of columns to span at the md breakpoint. */
|
|
27
|
+
md?: FlintGridElement['md'];
|
|
28
|
+
/** Number of columns to span at the lg breakpoint. */
|
|
29
|
+
lg?: FlintGridElement['lg'];
|
|
30
|
+
/** Number of columns to span at the xl breakpoint. */
|
|
31
|
+
xl?: FlintGridElement['xl'];
|
|
32
|
+
/** Offset per breakpoint, expressed in column units or 'auto'. */
|
|
33
|
+
offset?: FlintGridElement['offset'];
|
|
34
|
+
/** Flex order. Supports responsive values so items can be reordered at */
|
|
35
|
+
order?: FlintGridElement['order'];
|
|
36
|
+
}
|
|
37
|
+
export declare const FlintGrid: React.ForwardRefExoticComponent<FlintGridProps & React.RefAttributes<FlintGridElement>>;
|
|
@@ -1,4 +1,15 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FlintHoverCard as FlintHoverCardElement } from '@getufy/flint-ui/hover-card/flint-hover-card';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Root container for a hover card.
|
|
5
|
+
Manages open/closed state with configurable open and close delays.
|
|
6
|
+
*
|
|
7
|
+
* @slot - Accepts `flint-hover-card-trigger` and `flint-hover-card-content`.
|
|
8
|
+
*/
|
|
9
|
+
export interface FlintHoverCardProps extends React.HTMLAttributes<FlintHoverCardElement> {
|
|
10
|
+
/** Delay in milliseconds before the hover card opens. */
|
|
11
|
+
openDelay?: number;
|
|
12
|
+
/** Delay in milliseconds before the hover card closes. */
|
|
13
|
+
closeDelay?: number;
|
|
14
|
+
}
|
|
15
|
+
export declare const FlintHoverCard: React.ForwardRefExoticComponent<FlintHoverCardProps & React.RefAttributes<FlintHoverCardElement>>;
|
|
@@ -1,4 +1,17 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FlintHoverCardContent as FlintHoverCardContentElement } from '@getufy/flint-ui/hover-card/flint-hover-card';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
/**
|
|
4
|
+
* The floating card panel. Position is controlled via `side` and `align`.
|
|
5
|
+
Place inside `flint-hover-card`; its `open` state is managed by the parent.
|
|
6
|
+
*
|
|
7
|
+
* @slot - Rich content displayed inside the card.
|
|
8
|
+
*/
|
|
9
|
+
export interface FlintHoverCardContentProps extends React.HTMLAttributes<FlintHoverCardContentElement> {
|
|
10
|
+
/** Which side of the trigger to display the card on. */
|
|
11
|
+
side?: 'top' | 'right' | 'bottom' | 'left';
|
|
12
|
+
/** Alignment of the card along the cross axis relative to the trigger. */
|
|
13
|
+
align?: 'start' | 'center' | 'end';
|
|
14
|
+
/** Whether the card is visible. Managed by the parent `flint-hover-card`. */
|
|
15
|
+
open?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export declare const FlintHoverCardContent: React.ForwardRefExoticComponent<FlintHoverCardContentProps & React.RefAttributes<FlintHoverCardContentElement>>;
|
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FlintHoverCardTrigger as FlintHoverCardTriggerElement } from '@getufy/flint-ui/hover-card/flint-hover-card';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Trigger element for a hover card. Place inside `flint-hover-card`.
|
|
5
|
+
Automatically wires up to the nearest `flint-hover-card` ancestor.
|
|
6
|
+
*
|
|
7
|
+
* @slot - The element that activates the hover card (link, button, avatar…).
|
|
8
|
+
*/
|
|
9
|
+
export interface FlintHoverCardTriggerProps extends React.HTMLAttributes<FlintHoverCardTriggerElement> {
|
|
10
|
+
}
|
|
11
|
+
export declare const FlintHoverCardTrigger: React.ForwardRefExoticComponent<FlintHoverCardTriggerProps & React.RefAttributes<FlintHoverCardTriggerElement>>;
|
|
@@ -1,7 +1,21 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type EventName } from '@lit/react';
|
|
3
2
|
import { FlintImageComparer as FlintImageComparerElement } from '@getufy/flint-ui/image-comparer/flint-image-comparer';
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
|
|
3
|
+
export interface FlintImageComparerChangeDetail {
|
|
4
|
+
position: number;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* `flint-image-comparer` — Compare two images side-by-side with a draggable slider.
|
|
8
|
+
*
|
|
9
|
+
* @slot before - The before image (`<img>` or `<svg>`).
|
|
10
|
+
* @slot after - The after image (`<img>` or `<svg>`).
|
|
11
|
+
* @slot handle - Custom handle content (replaces the default arrows icon).
|
|
12
|
+
*/
|
|
13
|
+
export interface FlintImageComparerProps extends React.HTMLAttributes<FlintImageComparerElement> {
|
|
14
|
+
/** The position of the divider as a percentage (0–100). */
|
|
15
|
+
position?: number;
|
|
16
|
+
/** Whether the comparer is disabled. */
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
/** Fired when the position changes. Detail: `{ position: number }`. */
|
|
19
|
+
onFlintImageComparerChange?: (event: CustomEvent<FlintImageComparerChangeDetail>) => void;
|
|
20
|
+
}
|
|
21
|
+
export declare const FlintImageComparer: React.ForwardRefExoticComponent<FlintImageComparerProps & React.RefAttributes<FlintImageComparerElement>>;
|
|
@@ -1,4 +1,21 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FlintImageList as FlintImageListElement } from '@getufy/flint-ui/image-list/flint-image-list';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
/**
|
|
4
|
+
* A container that displays images in an organized grid layout.
|
|
5
|
+
Supports standard, quilted, woven, and masonry variants.
|
|
6
|
+
*
|
|
7
|
+
* @slot - Place `flint-image-list-item` elements here.
|
|
8
|
+
*/
|
|
9
|
+
export interface FlintImageListProps extends React.HTMLAttributes<FlintImageListElement> {
|
|
10
|
+
/** Layout variant */
|
|
11
|
+
variant?: FlintImageListElement['variant'];
|
|
12
|
+
/** Number of columns */
|
|
13
|
+
cols?: number;
|
|
14
|
+
/** Gap between items (in px) */
|
|
15
|
+
gap?: number;
|
|
16
|
+
/** Row height for non-masonry variants (in px). Ignored when autoRows=true. */
|
|
17
|
+
rowHeight?: number;
|
|
18
|
+
/** When true, row height is automatic (use with bar-position="below") */
|
|
19
|
+
autoRows?: boolean;
|
|
20
|
+
}
|
|
21
|
+
export declare const FlintImageList: React.ForwardRefExoticComponent<FlintImageListProps & React.RefAttributes<FlintImageListElement>>;
|
|
@@ -1,4 +1,23 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FlintImageListItem as FlintImageListItemElement } from '@getufy/flint-ui/image-list/flint-image-list-item';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
/**
|
|
4
|
+
* A single item inside a `flint-image-list`.
|
|
5
|
+
*
|
|
6
|
+
* @slot - Place an `<img>` or any content here.
|
|
7
|
+
* @slot bar - Place a `flint-image-list-item-bar` element here.
|
|
8
|
+
*/
|
|
9
|
+
export interface FlintImageListItemProps extends React.HTMLAttributes<FlintImageListItemElement> {
|
|
10
|
+
/** How many grid rows this item spans (quilted/woven only) */
|
|
11
|
+
rows?: number;
|
|
12
|
+
/** How many grid columns this item spans (quilted/woven only) */
|
|
13
|
+
cols?: number;
|
|
14
|
+
/** Position of the title bar: 'overlay' (default) or 'below' */
|
|
15
|
+
barPosition?: 'overlay' | 'below';
|
|
16
|
+
/** Woven variant: 'odd' or 'even' identity for alternating height */
|
|
17
|
+
weave?: 'odd' | 'even';
|
|
18
|
+
/** CSS aspect-ratio for the cell (e.g. "1/1", "4/3", "3/4", "16/9", "9/16"). */
|
|
19
|
+
aspectRatio?: string;
|
|
20
|
+
/** How the image fills the cell: 'cover' (default, crops to fill) */
|
|
21
|
+
fit?: FlintImageListItemElement['fit'];
|
|
22
|
+
}
|
|
23
|
+
export declare const FlintImageListItem: React.ForwardRefExoticComponent<FlintImageListItemProps & React.RefAttributes<FlintImageListItemElement>>;
|
|
@@ -1,4 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FlintImageListItemBar as FlintImageListItemBarElement } from '@getufy/flint-ui/image-list/flint-image-list-item-bar';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
/**
|
|
4
|
+
* A title/subtitle bar for `flint-image-list-item`.
|
|
5
|
+
*
|
|
6
|
+
* @slot title - Title text.
|
|
7
|
+
* @slot subtitle - Subtitle text.
|
|
8
|
+
* @slot - Action content.
|
|
9
|
+
*/
|
|
10
|
+
export interface FlintImageListItemBarProps extends React.HTMLAttributes<FlintImageListItemBarElement> {
|
|
11
|
+
/** Position hint for styling: 'bottom' (default overlay), 'top' (overlay), or 'below' (solid) */
|
|
12
|
+
position?: 'bottom' | 'top' | 'below';
|
|
13
|
+
}
|
|
14
|
+
export declare const FlintImageListItemBar: React.ForwardRefExoticComponent<FlintImageListItemBarProps & React.RefAttributes<FlintImageListItemBarElement>>;
|
|
@@ -1,8 +1,46 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type EventName } from '@lit/react';
|
|
3
2
|
import { FlintInput as FlintInputElement } from '@getufy/flint-ui/input/flint-input';
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
export interface FlintInputInputDetail {
|
|
4
|
+
value: string;
|
|
5
|
+
}
|
|
6
|
+
export interface FlintInputChangeDetail {
|
|
7
|
+
value: string;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Input: a styled text input with label, help text, and error states.
|
|
11
|
+
*/
|
|
12
|
+
export interface FlintInputProps extends Omit<React.HTMLAttributes<FlintInputElement>, 'defaultValue'> {
|
|
13
|
+
/** Label text displayed above the input. */
|
|
14
|
+
label?: string;
|
|
15
|
+
/** Current input value. */
|
|
16
|
+
value?: string;
|
|
17
|
+
/** HTML input type (text, email, password, etc.). */
|
|
18
|
+
type?: string;
|
|
19
|
+
/** Placeholder text shown when the input is empty. */
|
|
20
|
+
placeholder?: string;
|
|
21
|
+
/** Help text displayed below the input. */
|
|
22
|
+
helperText?: string;
|
|
23
|
+
/** Whether the input is in an error state. */
|
|
24
|
+
error?: boolean;
|
|
25
|
+
/** Error message displayed below the input. */
|
|
26
|
+
errorMessage?: string;
|
|
27
|
+
/** Disables the input and prevents interaction. */
|
|
28
|
+
disabled?: boolean;
|
|
29
|
+
/** Marks the input as required for form validation. */
|
|
30
|
+
required?: boolean;
|
|
31
|
+
/** Makes the input read-only. */
|
|
32
|
+
readonly?: boolean;
|
|
33
|
+
/** Form field name used when submitting form data. */
|
|
34
|
+
name?: string;
|
|
35
|
+
/** Browser autocomplete hint. */
|
|
36
|
+
autocomplete?: string;
|
|
37
|
+
/** 'sm' | 'default' | 'lg' */
|
|
38
|
+
size?: 'sm' | 'default' | 'lg';
|
|
39
|
+
/** Initial value for uncontrolled usage. */
|
|
40
|
+
defaultValue?: string;
|
|
41
|
+
/** Fired on each keystroke as the value changes. */
|
|
42
|
+
onFlintInputInput?: (event: CustomEvent<FlintInputInputDetail>) => void;
|
|
43
|
+
/** Fired when the input loses focus after the value has changed. */
|
|
44
|
+
onFlintInputChange?: (event: CustomEvent<FlintInputChangeDetail>) => void;
|
|
45
|
+
}
|
|
46
|
+
export declare const FlintInput: React.ForwardRefExoticComponent<FlintInputProps & React.RefAttributes<FlintInputElement>>;
|
|
@@ -1,8 +1,38 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type EventName } from '@lit/react';
|
|
3
2
|
import { FlintInputOtp as FlintInputOtpElement } from '@getufy/flint-ui/input-otp/flint-input-otp';
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
export interface FlintOtpChangeDetail {
|
|
4
|
+
value: string;
|
|
5
|
+
}
|
|
6
|
+
export interface FlintOtpCompleteDetail {
|
|
7
|
+
value: string;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Accessible one-time password input with copy/paste support.
|
|
11
|
+
Manages a hidden native `<input>` and syncs each `flint-input-otp-slot`
|
|
12
|
+
with the appropriate character and active-cursor state.
|
|
13
|
+
*
|
|
14
|
+
* @slot - Accepts `flint-input-otp-group`, `flint-input-otp-separator`, and
|
|
15
|
+
`flint-input-otp-slot` elements.
|
|
16
|
+
*/
|
|
17
|
+
export interface FlintInputOtpProps extends Omit<React.HTMLAttributes<FlintInputOtpElement>, 'defaultValue'> {
|
|
18
|
+
/** Current OTP value. Reflects to attribute for external observation. */
|
|
19
|
+
value?: string;
|
|
20
|
+
/** Initial uncontrolled value. Has no effect after the first render. */
|
|
21
|
+
defaultValue?: string;
|
|
22
|
+
/** Total number of character slots. */
|
|
23
|
+
maxLength?: number;
|
|
24
|
+
/** Per-character regex pattern string. Characters failing the test are */
|
|
25
|
+
pattern?: string;
|
|
26
|
+
/** Disables the OTP input. */
|
|
27
|
+
disabled?: boolean;
|
|
28
|
+
/** Accessible label for the hidden input (used as aria-label). */
|
|
29
|
+
label?: string;
|
|
30
|
+
/** Optional description text for the hidden input (used as aria-describedby). */
|
|
31
|
+
description?: string;
|
|
32
|
+
/** Fired on every value change. `detail: { value: string }`. */
|
|
33
|
+
onFlintOtpChange?: (event: CustomEvent<FlintOtpChangeDetail>) => void;
|
|
34
|
+
/** Fired when `maxLength` chars have been entered.
|
|
35
|
+
`detail: { value: string }`. */
|
|
36
|
+
onFlintOtpComplete?: (event: CustomEvent<FlintOtpCompleteDetail>) => void;
|
|
37
|
+
}
|
|
38
|
+
export declare const FlintInputOtp: React.ForwardRefExoticComponent<FlintInputOtpProps & React.RefAttributes<FlintInputOtpElement>>;
|
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FlintInputOtpGroup as FlintInputOtpGroupElement } from '@getufy/flint-ui/input-otp/flint-input-otp';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Visual grouping wrapper for `flint-input-otp-slot` elements.
|
|
5
|
+
Renders slots inline with shared borders.
|
|
6
|
+
*
|
|
7
|
+
* @slot - Accepts `flint-input-otp-slot` elements.
|
|
8
|
+
*/
|
|
9
|
+
export interface FlintInputOtpGroupProps extends React.HTMLAttributes<FlintInputOtpGroupElement> {
|
|
10
|
+
}
|
|
11
|
+
export declare const FlintInputOtpGroup: React.ForwardRefExoticComponent<FlintInputOtpGroupProps & React.RefAttributes<FlintInputOtpGroupElement>>;
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FlintInputOtpSeparator as FlintInputOtpSeparatorElement } from '@getufy/flint-ui/input-otp/flint-input-otp';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Visual separator between `flint-input-otp-group` elements.
|
|
5
|
+
Renders a short horizontal bar.
|
|
6
|
+
*/
|
|
7
|
+
export interface FlintInputOtpSeparatorProps extends React.HTMLAttributes<FlintInputOtpSeparatorElement> {
|
|
8
|
+
}
|
|
9
|
+
export declare const FlintInputOtpSeparator: React.ForwardRefExoticComponent<FlintInputOtpSeparatorProps & React.RefAttributes<FlintInputOtpSeparatorElement>>;
|
|
@@ -1,4 +1,17 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FlintInputOtpSlot as FlintInputOtpSlotElement } from '@getufy/flint-ui/input-otp/flint-input-otp';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
/**
|
|
4
|
+
* A single character cell in an OTP input.
|
|
5
|
+
Place inside `flint-input-otp-group`. State is managed by `flint-input-otp`.
|
|
6
|
+
*/
|
|
7
|
+
export interface FlintInputOtpSlotProps extends React.HTMLAttributes<FlintInputOtpSlotElement> {
|
|
8
|
+
/** Zero-based position index of this slot. */
|
|
9
|
+
index?: number;
|
|
10
|
+
/** Character displayed. Set by the parent `flint-input-otp`. */
|
|
11
|
+
char?: string;
|
|
12
|
+
/** Whether the cursor is at this position. Set by the parent `flint-input-otp`. */
|
|
13
|
+
active?: boolean;
|
|
14
|
+
/** Error / invalid state. */
|
|
15
|
+
invalid?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export declare const FlintInputOtpSlot: React.ForwardRefExoticComponent<FlintInputOtpSlotProps & React.RefAttributes<FlintInputOtpSlotElement>>;
|
|
@@ -1,4 +1,17 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FlintItem as FlintItemElement } from '@getufy/flint-ui/item/flint-item';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Root container for displaying content with media, title,
|
|
5
|
+
description, and actions. A versatile flex row that adapts to
|
|
6
|
+
icons, avatars, images, and action buttons.
|
|
7
|
+
*
|
|
8
|
+
* @slot - Accepts `flint-item-header`, `flint-item-media`, `flint-item-content`,
|
|
9
|
+
`flint-item-actions`, `flint-item-footer`, and any other elements.
|
|
10
|
+
*/
|
|
11
|
+
export interface FlintItemProps extends React.HTMLAttributes<FlintItemElement> {
|
|
12
|
+
/** Visual style of the item. */
|
|
13
|
+
variant?: 'default' | 'outline' | 'muted';
|
|
14
|
+
/** Size preset controlling padding and gap. */
|
|
15
|
+
size?: 'default' | 'sm' | 'xs';
|
|
16
|
+
}
|
|
17
|
+
export declare const FlintItem: React.ForwardRefExoticComponent<FlintItemProps & React.RefAttributes<FlintItemElement>>;
|
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FlintItemActions as FlintItemActionsElement } from '@getufy/flint-ui/item/flint-item';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Container for action buttons or other interactive elements.
|
|
5
|
+
Aligns itself to the trailing edge of the item row.
|
|
6
|
+
*
|
|
7
|
+
* @slot - Buttons, icons, or any interactive elements.
|
|
8
|
+
*/
|
|
9
|
+
export interface FlintItemActionsProps extends React.HTMLAttributes<FlintItemActionsElement> {
|
|
10
|
+
}
|
|
11
|
+
export declare const FlintItemActions: React.ForwardRefExoticComponent<FlintItemActionsProps & React.RefAttributes<FlintItemActionsElement>>;
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FlintItemContent as FlintItemContentElement } from '@getufy/flint-ui/item/flint-item';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Flex-column wrapper for an item's title and description.
|
|
5
|
+
*
|
|
6
|
+
* @slot - Accepts `flint-item-title`, `flint-item-description`, or any content.
|
|
7
|
+
*/
|
|
8
|
+
export interface FlintItemContentProps extends React.HTMLAttributes<FlintItemContentElement> {
|
|
9
|
+
}
|
|
10
|
+
export declare const FlintItemContent: React.ForwardRefExoticComponent<FlintItemContentProps & React.RefAttributes<FlintItemContentElement>>;
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FlintItemDescription as FlintItemDescriptionElement } from '@getufy/flint-ui/item/flint-item';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Displays the description of an item.
|
|
5
|
+
*
|
|
6
|
+
* @slot - Description text.
|
|
7
|
+
*/
|
|
8
|
+
export interface FlintItemDescriptionProps extends React.HTMLAttributes<FlintItemDescriptionElement> {
|
|
9
|
+
}
|
|
10
|
+
export declare const FlintItemDescription: React.ForwardRefExoticComponent<FlintItemDescriptionProps & React.RefAttributes<FlintItemDescriptionElement>>;
|
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FlintItemFooter as FlintItemFooterElement } from '@getufy/flint-ui/item/flint-item';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Full-bleed footer that spans the bottom of the item, cancelling the
|
|
5
|
+
item's padding so the footer appears flush with the border.
|
|
6
|
+
Always place as the last child of `flint-item`.
|
|
7
|
+
*
|
|
8
|
+
* @slot - Footer content: metadata, links, supplementary actions.
|
|
9
|
+
*/
|
|
10
|
+
export interface FlintItemFooterProps extends React.HTMLAttributes<FlintItemFooterElement> {
|
|
11
|
+
}
|
|
12
|
+
export declare const FlintItemFooter: React.ForwardRefExoticComponent<FlintItemFooterProps & React.RefAttributes<FlintItemFooterElement>>;
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FlintItemGroup as FlintItemGroupElement } from '@getufy/flint-ui/item/flint-item';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Container for grouping related items together.
|
|
5
|
+
*
|
|
6
|
+
* @slot - Accepts `flint-item`, `flint-item-separator`, and any other elements.
|
|
7
|
+
*/
|
|
8
|
+
export interface FlintItemGroupProps extends React.HTMLAttributes<FlintItemGroupElement> {
|
|
9
|
+
}
|
|
10
|
+
export declare const FlintItemGroup: React.ForwardRefExoticComponent<FlintItemGroupProps & React.RefAttributes<FlintItemGroupElement>>;
|
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FlintItemHeader as FlintItemHeaderElement } from '@getufy/flint-ui/item/flint-item';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Full-bleed header that spans the top of the item, cancelling the
|
|
5
|
+
item's padding so media (images) appear flush with the border.
|
|
6
|
+
Always place as the first child of `flint-item`.
|
|
7
|
+
*
|
|
8
|
+
* @slot - Header content, typically an image or decorative element.
|
|
9
|
+
*/
|
|
10
|
+
export interface FlintItemHeaderProps extends React.HTMLAttributes<FlintItemHeaderElement> {
|
|
11
|
+
}
|
|
12
|
+
export declare const FlintItemHeader: React.ForwardRefExoticComponent<FlintItemHeaderProps & React.RefAttributes<FlintItemHeaderElement>>;
|
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FlintItemMedia as FlintItemMediaElement } from '@getufy/flint-ui/item/flint-item';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Media container for an item (icon, avatar, or image).
|
|
5
|
+
*
|
|
6
|
+
* @slot - Media content: SVG icon, avatar element, or image.
|
|
7
|
+
*/
|
|
8
|
+
export interface FlintItemMediaProps extends React.HTMLAttributes<FlintItemMediaElement> {
|
|
9
|
+
/** Visual treatment for the media container. */
|
|
10
|
+
variant?: 'default' | 'icon' | 'image';
|
|
11
|
+
}
|
|
12
|
+
export declare const FlintItemMedia: React.ForwardRefExoticComponent<FlintItemMediaProps & React.RefAttributes<FlintItemMediaElement>>;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FlintItemSeparator as FlintItemSeparatorElement } from '@getufy/flint-ui/item/flint-item';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Visual separator between items in a group.
|
|
5
|
+
*/
|
|
6
|
+
export interface FlintItemSeparatorProps extends React.HTMLAttributes<FlintItemSeparatorElement> {
|
|
7
|
+
}
|
|
8
|
+
export declare const FlintItemSeparator: React.ForwardRefExoticComponent<FlintItemSeparatorProps & React.RefAttributes<FlintItemSeparatorElement>>;
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FlintItemTitle as FlintItemTitleElement } from '@getufy/flint-ui/item/flint-item';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Displays the title of an item.
|
|
5
|
+
*
|
|
6
|
+
* @slot - Title text.
|
|
7
|
+
*/
|
|
8
|
+
export interface FlintItemTitleProps extends React.HTMLAttributes<FlintItemTitleElement> {
|
|
9
|
+
}
|
|
10
|
+
export declare const FlintItemTitle: React.ForwardRefExoticComponent<FlintItemTitleProps & React.RefAttributes<FlintItemTitleElement>>;
|
|
@@ -1,4 +1,17 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FlintKbd as FlintKbdElement } from '@getufy/flint-ui/kbd/flint-kbd';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Displays a single keyboard key or modifier symbol.
|
|
5
|
+
Renders a semantic `<kbd>` element for accessibility.
|
|
6
|
+
*
|
|
7
|
+
* @slot - Key label: text, symbol (⌘ ⇧ ⌥ ⌃ ⏎), or any inline content.
|
|
8
|
+
*/
|
|
9
|
+
export interface FlintKbdProps extends React.HTMLAttributes<FlintKbdElement> {
|
|
10
|
+
/** Visual size of the key. */
|
|
11
|
+
size?: 'sm' | 'default' | 'lg';
|
|
12
|
+
/** Visual style: `raised` (default, bottom border + shadow) or `flat` (no raised effect). */
|
|
13
|
+
variant?: 'raised' | 'flat';
|
|
14
|
+
/** Accessible label forwarded as `aria-label` on the inner `<kbd>` element. Useful for symbol keys like ⌘. */
|
|
15
|
+
label?: string;
|
|
16
|
+
}
|
|
17
|
+
export declare const FlintKbd: React.ForwardRefExoticComponent<FlintKbdProps & React.RefAttributes<FlintKbdElement>>;
|
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FlintKbdGroup as FlintKbdGroupElement } from '@getufy/flint-ui/kbd/flint-kbd';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Groups multiple `flint-kbd` elements in a row.
|
|
5
|
+
Provides a flex container with tight spacing for key combos.
|
|
6
|
+
*
|
|
7
|
+
* @slot - `flint-kbd` elements, separators (e.g. `<span>+</span>`), or text.
|
|
8
|
+
*/
|
|
9
|
+
export interface FlintKbdGroupProps extends React.HTMLAttributes<FlintKbdGroupElement> {
|
|
10
|
+
}
|
|
11
|
+
export declare const FlintKbdGroup: React.ForwardRefExoticComponent<FlintKbdGroupProps & React.RefAttributes<FlintKbdGroupElement>>;
|
|
@@ -1,4 +1,18 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FlintLinearProgress as FlintLinearProgressElement } from '@getufy/flint-ui/progress/flint-linear-progress';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
/**
|
|
4
|
+
* flint-linear-progress: a horizontal progress bar.
|
|
5
|
+
*/
|
|
6
|
+
export interface FlintLinearProgressProps extends Omit<React.HTMLAttributes<FlintLinearProgressElement>, 'color'> {
|
|
7
|
+
/** Progress variant: determinate shows a specific value, indeterminate shows an animation. */
|
|
8
|
+
variant?: 'determinate' | 'indeterminate';
|
|
9
|
+
/** Current progress value (0-100). */
|
|
10
|
+
value?: number;
|
|
11
|
+
/** Height of the progress bar in pixels. */
|
|
12
|
+
height?: number;
|
|
13
|
+
/** Color theme of the progress bar. */
|
|
14
|
+
color?: 'primary' | 'success' | 'error' | 'warning';
|
|
15
|
+
/** Accessible label for the progress bar. */
|
|
16
|
+
label?: string;
|
|
17
|
+
}
|
|
18
|
+
export declare const FlintLinearProgress: React.ForwardRefExoticComponent<FlintLinearProgressProps & React.RefAttributes<FlintLinearProgressElement>>;
|