@getufy/flint-ui-react 0.2.2 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +134 -39
- package/dist/components/FlintAccordion.d.ts +19 -5
- package/dist/components/FlintAccordionActions.d.ts +6 -2
- package/dist/components/FlintAccordionDetails.d.ts +8 -2
- package/dist/components/FlintAccordionSummary.d.ts +11 -5
- package/dist/components/FlintAlert.d.ts +21 -5
- package/dist/components/FlintAppBar.d.ts +16 -2
- package/dist/components/FlintAutocomplete.d.ts +22 -5
- package/dist/components/FlintAvatar.d.ts +13 -2
- package/dist/components/FlintBackdrop.d.ts +19 -5
- package/dist/components/FlintBadge.d.ts +18 -2
- package/dist/components/FlintBottomNavigation.d.ts +16 -5
- package/dist/components/FlintBottomNavigationAction.d.ts +17 -2
- package/dist/components/FlintBox.d.ts +67 -5
- package/dist/components/FlintBreadcrumbs.d.ts +18 -2
- package/dist/components/FlintButton.d.ts +11 -2
- package/dist/components/FlintButtonGroup.d.ts +3 -2
- package/dist/components/FlintCard.d.ts +5 -2
- package/dist/components/FlintCardActionArea.d.ts +3 -2
- package/dist/components/FlintCardActions.d.ts +3 -2
- package/dist/components/FlintCardContent.d.ts +3 -2
- package/dist/components/FlintCardHeader.d.ts +12 -2
- package/dist/components/FlintCardMedia.d.ts +6 -2
- package/dist/components/FlintCarousel.d.ts +24 -5
- package/dist/components/FlintCarouselContent.d.ts +9 -2
- package/dist/components/FlintCarouselItem.d.ts +3 -2
- package/dist/components/FlintCarouselNext.d.ts +12 -2
- package/dist/components/FlintCarouselPrevious.d.ts +12 -2
- package/dist/components/FlintCheckbox.d.ts +33 -5
- package/dist/components/FlintChip.d.ts +29 -6
- package/dist/components/FlintCircularProgress.d.ts +18 -2
- package/dist/components/FlintCollapsible.d.ts +22 -5
- package/dist/components/FlintCollapsibleContent.d.ts +11 -2
- package/dist/components/FlintCollapsibleTrigger.d.ts +13 -2
- package/dist/components/FlintCommand.d.ts +11 -5
- package/dist/components/FlintCommandDialog.d.ts +17 -5
- package/dist/components/FlintCommandEmpty.d.ts +9 -2
- package/dist/components/FlintCommandGroup.d.ts +11 -2
- package/dist/components/FlintCommandInput.d.ts +11 -2
- package/dist/components/FlintCommandItem.d.ts +22 -5
- package/dist/components/FlintCommandList.d.ts +8 -2
- package/dist/components/FlintCommandSeparator.d.ts +6 -2
- package/dist/components/FlintCommandShortcut.d.ts +9 -2
- package/dist/components/FlintContainer.d.ts +9 -2
- package/dist/components/FlintCopyButton.d.ts +32 -6
- package/dist/components/FlintDateField.d.ts +34 -6
- package/dist/components/FlintDatePicker.d.ts +35 -5
- package/dist/components/FlintDatePickerCalendar.d.ts +20 -5
- package/dist/components/FlintDateRangeCalendar.d.ts +17 -5
- package/dist/components/FlintDateRangePicker.d.ts +36 -5
- package/dist/components/FlintDesktopTimePicker.d.ts +29 -5
- package/dist/components/FlintDialog.d.ts +23 -5
- package/dist/components/FlintDialogActions.d.ts +9 -2
- package/dist/components/FlintDialogContent.d.ts +6 -2
- package/dist/components/FlintDialogContentText.d.ts +6 -2
- package/dist/components/FlintDialogTitle.d.ts +7 -2
- package/dist/components/FlintDigitalClock.d.ts +17 -5
- package/dist/components/FlintDivider.d.ts +16 -2
- package/dist/components/FlintDrawer.d.ts +27 -5
- package/dist/components/FlintEmpty.d.ts +10 -2
- package/dist/components/FlintEmptyContent.d.ts +8 -2
- package/dist/components/FlintEmptyDescription.d.ts +8 -2
- package/dist/components/FlintEmptyHeader.d.ts +8 -2
- package/dist/components/FlintEmptyMedia.d.ts +10 -2
- package/dist/components/FlintEmptyTitle.d.ts +8 -2
- package/dist/components/FlintFab.d.ts +15 -2
- package/dist/components/FlintFormatDate.d.ts +39 -2
- package/dist/components/FlintFormatNumber.d.ts +39 -2
- package/dist/components/FlintGrid.d.ts +35 -2
- package/dist/components/FlintHoverCard.d.ts +13 -2
- package/dist/components/FlintHoverCardContent.d.ts +15 -2
- package/dist/components/FlintHoverCardTrigger.d.ts +9 -2
- package/dist/components/FlintImageComparer.d.ts +19 -5
- package/dist/components/FlintImageList.d.ts +19 -2
- package/dist/components/FlintImageListItem.d.ts +21 -2
- package/dist/components/FlintImageListItemBar.d.ts +12 -2
- package/dist/components/FlintInput.d.ts +44 -6
- package/dist/components/FlintInputOtp.d.ts +36 -6
- package/dist/components/FlintInputOtpGroup.d.ts +9 -2
- package/dist/components/FlintInputOtpSeparator.d.ts +7 -2
- package/dist/components/FlintInputOtpSlot.d.ts +15 -2
- package/dist/components/FlintItem.d.ts +15 -2
- package/dist/components/FlintItemActions.d.ts +9 -2
- package/dist/components/FlintItemContent.d.ts +8 -2
- package/dist/components/FlintItemDescription.d.ts +8 -2
- package/dist/components/FlintItemFooter.d.ts +10 -2
- package/dist/components/FlintItemGroup.d.ts +8 -2
- package/dist/components/FlintItemHeader.d.ts +10 -2
- package/dist/components/FlintItemMedia.d.ts +10 -2
- package/dist/components/FlintItemSeparator.d.ts +6 -2
- package/dist/components/FlintItemTitle.d.ts +8 -2
- package/dist/components/FlintKbd.d.ts +15 -2
- package/dist/components/FlintKbdGroup.d.ts +9 -2
- package/dist/components/FlintLinearProgress.d.ts +16 -2
- package/dist/components/FlintLink.d.ts +27 -2
- package/dist/components/FlintList.d.ts +10 -2
- package/dist/components/FlintListItem.d.ts +6 -2
- package/dist/components/FlintListItemAvatar.d.ts +6 -2
- package/dist/components/FlintListItemButton.d.ts +10 -2
- package/dist/components/FlintListItemIcon.d.ts +6 -2
- package/dist/components/FlintListItemText.d.ts +10 -2
- package/dist/components/FlintListSubheader.d.ts +6 -2
- package/dist/components/FlintMenu.d.ts +24 -5
- package/dist/components/FlintMenuDivider.d.ts +6 -2
- package/dist/components/FlintMenuGroup.d.ts +11 -2
- package/dist/components/FlintMenuItem.d.ts +23 -5
- package/dist/components/FlintMenubar.d.ts +11 -2
- package/dist/components/FlintMenubarCheckboxItem.d.ts +20 -5
- package/dist/components/FlintMenubarContent.d.ts +13 -5
- package/dist/components/FlintMenubarGroup.d.ts +8 -2
- package/dist/components/FlintMenubarItem.d.ts +21 -5
- package/dist/components/FlintMenubarMenu.d.ts +8 -2
- package/dist/components/FlintMenubarRadioGroup.d.ts +13 -5
- package/dist/components/FlintMenubarRadioItem.d.ts +18 -5
- package/dist/components/FlintMenubarSeparator.d.ts +6 -2
- package/dist/components/FlintMenubarShortcut.d.ts +8 -2
- package/dist/components/FlintMenubarSub.d.ts +7 -2
- package/dist/components/FlintMenubarSubContent.d.ts +9 -2
- package/dist/components/FlintMenubarSubTrigger.d.ts +14 -2
- package/dist/components/FlintMenubarTrigger.d.ts +12 -2
- package/dist/components/FlintMobileStepper.d.ts +21 -2
- package/dist/components/FlintMobileTimePicker.d.ts +24 -5
- package/dist/components/FlintMultiSectionDigitalClock.d.ts +17 -5
- package/dist/components/FlintNavigationMenu.d.ts +8 -2
- package/dist/components/FlintNavigationMenuContent.d.ts +20 -5
- package/dist/components/FlintNavigationMenuItem.d.ts +18 -6
- package/dist/components/FlintNavigationMenuLink.d.ts +16 -2
- package/dist/components/FlintNavigationMenuList.d.ts +12 -2
- package/dist/components/FlintNavigationMenuTrigger.d.ts +12 -5
- package/dist/components/FlintPagination.d.ts +48 -5
- package/dist/components/FlintPaper.d.ts +13 -2
- package/dist/components/FlintRadio.d.ts +25 -5
- package/dist/components/FlintRadioGroup.d.ts +27 -5
- package/dist/components/FlintRangeSlider.d.ts +23 -5
- package/dist/components/FlintRating.d.ts +31 -5
- package/dist/components/FlintRelativeTime.d.ts +17 -2
- package/dist/components/FlintResizableGroup.d.ts +16 -7
- package/dist/components/FlintResizableHandle.d.ts +8 -2
- package/dist/components/FlintResizablePanel.d.ts +15 -2
- package/dist/components/FlintRichTreeView.d.ts +50 -8
- package/dist/components/FlintScrollArea.d.ts +15 -2
- package/dist/components/FlintScrollBar.d.ts +11 -2
- package/dist/components/FlintSelect.d.ts +40 -5
- package/dist/components/FlintSimpleTreeView.d.ts +28 -6
- package/dist/components/FlintSingleInputDateRangeField.d.ts +31 -6
- package/dist/components/FlintSkeleton.d.ts +18 -2
- package/dist/components/FlintSlider.d.ts +35 -5
- package/dist/components/FlintSnackbar.d.ts +36 -6
- package/dist/components/FlintSpeedDial.d.ts +28 -2
- package/dist/components/FlintSpeedDialAction.d.ts +24 -5
- package/dist/components/FlintSplitPanel.d.ts +31 -5
- package/dist/components/FlintStack.d.ts +13 -2
- package/dist/components/FlintStaticTimePicker.d.ts +14 -5
- package/dist/components/FlintStep.d.ts +39 -5
- package/dist/components/FlintStepConnector.d.ts +7 -2
- package/dist/components/FlintStepContent.d.ts +10 -2
- package/dist/components/FlintStepLabel.d.ts +15 -2
- package/dist/components/FlintStepper.d.ts +20 -5
- package/dist/components/FlintSwitch.d.ts +33 -5
- package/dist/components/FlintTab.d.ts +23 -5
- package/dist/components/FlintTabList.d.ts +14 -5
- package/dist/components/FlintTabPanel.d.ts +5 -2
- package/dist/components/FlintTable.d.ts +8 -2
- package/dist/components/FlintTableBody.d.ts +8 -2
- package/dist/components/FlintTableCell.d.ts +12 -2
- package/dist/components/FlintTableContainer.d.ts +10 -2
- package/dist/components/FlintTableFooter.d.ts +6 -2
- package/dist/components/FlintTableHead.d.ts +6 -2
- package/dist/components/FlintTablePagination.d.ts +32 -6
- package/dist/components/FlintTableRow.d.ts +10 -2
- package/dist/components/FlintTableSortLabel.d.ts +7 -2
- package/dist/components/FlintTabs.d.ts +27 -5
- package/dist/components/FlintTextField.d.ts +36 -6
- package/dist/components/FlintTextarea.d.ts +52 -6
- package/dist/components/FlintTimeClock.d.ts +21 -6
- package/dist/components/FlintTimeField.d.ts +31 -6
- package/dist/components/FlintTimePicker.d.ts +26 -5
- package/dist/components/FlintToaster.d.ts +13 -2
- package/dist/components/FlintToggle.d.ts +27 -5
- package/dist/components/FlintToggleButton.d.ts +20 -5
- package/dist/components/FlintToggleButtonGroup.d.ts +17 -5
- package/dist/components/FlintTooltip.d.ts +19 -2
- package/dist/components/FlintTransferList.d.ts +25 -5
- package/dist/components/FlintTreeItem.d.ts +34 -6
- package/dist/components/FlintTypography.d.ts +22 -2
- package/dist/components/FlintVisuallyHidden.d.ts +11 -2
- package/package.json +2 -2
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FlintMenuDivider as FlintMenuDividerElement } from '@getufy/flint-ui/menu/flint-menu';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
/**
|
|
4
|
+
* A hairline separator for grouping items in a menu.
|
|
5
|
+
*/
|
|
6
|
+
export interface FlintMenuDividerProps extends React.HTMLAttributes<FlintMenuDividerElement> {
|
|
7
|
+
}
|
|
8
|
+
export declare const FlintMenuDivider: React.ForwardRefExoticComponent<FlintMenuDividerProps & React.RefAttributes<FlintMenuDividerElement>>;
|
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FlintMenuGroup as FlintMenuGroupElement } from '@getufy/flint-ui/menu/flint-menu';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
/**
|
|
4
|
+
* A labelled group of menu items. Wraps items in a `role="group"` for
|
|
5
|
+
screen-reader announcements.
|
|
6
|
+
*
|
|
7
|
+
* @slot - Group items (flint-menu-item elements).
|
|
8
|
+
*/
|
|
9
|
+
export interface FlintMenuGroupProps extends React.HTMLAttributes<FlintMenuGroupElement> {
|
|
10
|
+
/** Visible heading rendered above the group items. */
|
|
11
|
+
label?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare const FlintMenuGroup: React.ForwardRefExoticComponent<FlintMenuGroupProps & React.RefAttributes<FlintMenuGroupElement>>;
|
|
@@ -1,7 +1,25 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type EventName } from '@lit/react';
|
|
3
2
|
import { FlintMenuItem as FlintMenuItemElement } from '@getufy/flint-ui/menu/flint-menu';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
/**
|
|
4
|
+
* A single option inside a `flint-menu`.
|
|
5
|
+
*
|
|
6
|
+
* @slot - Item label text.
|
|
7
|
+
* @slot icon - Leading icon.
|
|
8
|
+
* @slot end-icon - Trailing icon or shortcut hint.
|
|
9
|
+
*/
|
|
10
|
+
export interface FlintMenuItemProps extends React.HTMLAttributes<FlintMenuItemElement> {
|
|
11
|
+
/** Marks this item as the currently selected option. */
|
|
12
|
+
selected?: boolean;
|
|
13
|
+
/** Disables the item — it becomes non-interactive. */
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
/** Dense padding mode (for desktop-density menus). */
|
|
16
|
+
dense?: boolean;
|
|
17
|
+
/** Renders a hairline separator below this item. */
|
|
18
|
+
divider?: boolean;
|
|
19
|
+
/** The machine-readable value carried in the `flint-menu-item-select` event detail. */
|
|
20
|
+
value?: string;
|
|
21
|
+
/** Fired when the item is activated.
|
|
22
|
+
detail: { value: string | null, label: string } */
|
|
23
|
+
onFlintMenuItemSelect?: (event: CustomEvent) => void;
|
|
24
|
+
}
|
|
25
|
+
export declare const FlintMenuItem: React.ForwardRefExoticComponent<FlintMenuItemProps & React.RefAttributes<FlintMenuItemElement>>;
|
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FlintMenubar as FlintMenubarElement } from '@getufy/flint-ui/menubar/flint-menubar';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
/**
|
|
4
|
+
* A visually persistent horizontal menu bar, common in desktop applications.
|
|
5
|
+
Hosts one or more `<flint-menubar-menu>` children.
|
|
6
|
+
*
|
|
7
|
+
* @slot - One or more `<flint-menubar-menu>` elements.
|
|
8
|
+
*/
|
|
9
|
+
export interface FlintMenubarProps extends React.HTMLAttributes<FlintMenubarElement> {
|
|
10
|
+
/** Accessible label for the menubar region. Defaults to "Menu bar". */
|
|
11
|
+
label?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare const FlintMenubar: React.ForwardRefExoticComponent<FlintMenubarProps & React.RefAttributes<FlintMenubarElement>>;
|
|
@@ -1,7 +1,22 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type EventName } from '@lit/react';
|
|
3
2
|
import { FlintMenubarCheckboxItem as FlintMenubarCheckboxItemElement } from '@getufy/flint-ui/menubar/flint-menubar';
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
export interface FlintMenubarCheckboxChangeDetail {
|
|
4
|
+
checked: boolean;
|
|
5
|
+
value: string;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* A toggleable checkbox menu item.
|
|
9
|
+
*/
|
|
10
|
+
export interface FlintMenubarCheckboxItemProps extends React.HTMLAttributes<FlintMenubarCheckboxItemElement> {
|
|
11
|
+
/** Whether the checkbox item is currently checked. */
|
|
12
|
+
checked?: boolean;
|
|
13
|
+
/** Whether the item is non-interactive. */
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
/** Whether the item is visually highlighted (e.g. via keyboard or hover). */
|
|
16
|
+
highlighted?: boolean;
|
|
17
|
+
/** Explicit value for the change event. Falls back to label text (excludes shortcut). */
|
|
18
|
+
value?: string;
|
|
19
|
+
/** detail: `{ checked: boolean, value: string }` */
|
|
20
|
+
onFlintMenubarCheckboxChange?: (event: CustomEvent<FlintMenubarCheckboxChangeDetail>) => void;
|
|
21
|
+
}
|
|
22
|
+
export declare const FlintMenubarCheckboxItem: React.ForwardRefExoticComponent<FlintMenubarCheckboxItemProps & React.RefAttributes<FlintMenubarCheckboxItemElement>>;
|
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type EventName } from '@lit/react';
|
|
3
2
|
import { FlintMenubarContent as FlintMenubarContentElement } from '@getufy/flint-ui/menubar/flint-menubar';
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
|
|
3
|
+
export interface FlintMenubarRequestCloseDetail {
|
|
4
|
+
open: boolean;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* The dropdown content panel for a menubar menu.
|
|
8
|
+
Positioned absolutely below the trigger.
|
|
9
|
+
*/
|
|
10
|
+
export interface FlintMenubarContentProps extends React.HTMLAttributes<FlintMenubarContentElement> {
|
|
11
|
+
/** Whether the content dropdown panel is visible. */
|
|
12
|
+
open?: boolean;
|
|
13
|
+
onFlintMenubarRequestClose?: (event: CustomEvent<FlintMenubarRequestCloseDetail>) => void;
|
|
14
|
+
}
|
|
15
|
+
export declare const FlintMenubarContent: React.ForwardRefExoticComponent<FlintMenubarContentProps & React.RefAttributes<FlintMenubarContentElement>>;
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FlintMenubarGroup as FlintMenubarGroupElement } from '@getufy/flint-ui/menubar/flint-menubar';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Groups related menu items. Optional `heading` shows a label.
|
|
5
|
+
*/
|
|
6
|
+
export interface FlintMenubarGroupProps extends React.HTMLAttributes<FlintMenubarGroupElement> {
|
|
7
|
+
/** Label text displayed above the group. */
|
|
8
|
+
heading?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const FlintMenubarGroup: React.ForwardRefExoticComponent<FlintMenubarGroupProps & React.RefAttributes<FlintMenubarGroupElement>>;
|
|
@@ -1,7 +1,23 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type EventName } from '@lit/react';
|
|
3
2
|
import { FlintMenubarItem as FlintMenubarItemElement } from '@getufy/flint-ui/menubar/flint-menubar';
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
|
|
3
|
+
export interface FlintMenubarItemSelectDetail {
|
|
4
|
+
value: string;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* A single interactive option inside a menubar dropdown.
|
|
8
|
+
*
|
|
9
|
+
* @slot - Item label text plus optional `<flint-menubar-shortcut>`.
|
|
10
|
+
*/
|
|
11
|
+
export interface FlintMenubarItemProps extends React.HTMLAttributes<FlintMenubarItemElement> {
|
|
12
|
+
/** Whether the item is non-interactive. */
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
/** Whether the item is visually highlighted (e.g. via keyboard or hover). */
|
|
15
|
+
highlighted?: boolean;
|
|
16
|
+
/** Whether the item label is inset to align with checkbox/radio items. */
|
|
17
|
+
inset?: boolean;
|
|
18
|
+
/** Explicit value for the select event. Falls back to label text (excludes shortcut). */
|
|
19
|
+
value?: string;
|
|
20
|
+
/** Fired on activation. detail: `{ value: string }` */
|
|
21
|
+
onFlintMenubarItemSelect?: (event: CustomEvent<FlintMenubarItemSelectDetail>) => void;
|
|
22
|
+
}
|
|
23
|
+
export declare const FlintMenubarItem: React.ForwardRefExoticComponent<FlintMenubarItemProps & React.RefAttributes<FlintMenubarItemElement>>;
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FlintMenubarMenu as FlintMenubarMenuElement } from '@getufy/flint-ui/menubar/flint-menubar';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Wraps a trigger and content pair for a single menu in the menubar.
|
|
5
|
+
*/
|
|
6
|
+
export interface FlintMenubarMenuProps extends React.HTMLAttributes<FlintMenubarMenuElement> {
|
|
7
|
+
/** Disables this menu: the trigger is non-interactive and keyboard nav skips it. */
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare const FlintMenubarMenu: React.ForwardRefExoticComponent<FlintMenubarMenuProps & React.RefAttributes<FlintMenubarMenuElement>>;
|
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type EventName } from '@lit/react';
|
|
3
2
|
import { FlintMenubarRadioGroup as FlintMenubarRadioGroupElement } from '@getufy/flint-ui/menubar/flint-menubar';
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
|
|
3
|
+
export interface FlintMenubarRadioChangeDetail {
|
|
4
|
+
value: string;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Manages single-select radio items.
|
|
8
|
+
*/
|
|
9
|
+
export interface FlintMenubarRadioGroupProps extends React.HTMLAttributes<FlintMenubarRadioGroupElement> {
|
|
10
|
+
/** The value of the currently selected radio item. */
|
|
11
|
+
value?: string;
|
|
12
|
+
/** detail: `{ value: string }` */
|
|
13
|
+
onFlintMenubarRadioChange?: (event: CustomEvent<FlintMenubarRadioChangeDetail>) => void;
|
|
14
|
+
}
|
|
15
|
+
export declare const FlintMenubarRadioGroup: React.ForwardRefExoticComponent<FlintMenubarRadioGroupProps & React.RefAttributes<FlintMenubarRadioGroupElement>>;
|
|
@@ -1,7 +1,20 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type EventName } from '@lit/react';
|
|
3
2
|
import { FlintMenubarRadioItem as FlintMenubarRadioItemElement } from '@getufy/flint-ui/menubar/flint-menubar';
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
|
|
3
|
+
export interface FlintMenubarRadioSelectDetail {
|
|
4
|
+
value: string;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* A radio option inside a `<flint-menubar-radio-group>`.
|
|
8
|
+
*/
|
|
9
|
+
export interface FlintMenubarRadioItemProps extends React.HTMLAttributes<FlintMenubarRadioItemElement> {
|
|
10
|
+
/** Value identifying this radio option within its group. */
|
|
11
|
+
value?: string;
|
|
12
|
+
/** Whether this radio item is currently selected. */
|
|
13
|
+
checked?: boolean;
|
|
14
|
+
/** Whether the item is non-interactive. */
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
/** Whether the item is visually highlighted (e.g. via keyboard or hover). */
|
|
17
|
+
highlighted?: boolean;
|
|
18
|
+
onFlintMenubarRadioSelect?: (event: CustomEvent<FlintMenubarRadioSelectDetail>) => void;
|
|
19
|
+
}
|
|
20
|
+
export declare const FlintMenubarRadioItem: React.ForwardRefExoticComponent<FlintMenubarRadioItemProps & React.RefAttributes<FlintMenubarRadioItemElement>>;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FlintMenubarSeparator as FlintMenubarSeparatorElement } from '@getufy/flint-ui/menubar/flint-menubar';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
/**
|
|
4
|
+
* A hairline separator between menu groups.
|
|
5
|
+
*/
|
|
6
|
+
export interface FlintMenubarSeparatorProps extends React.HTMLAttributes<FlintMenubarSeparatorElement> {
|
|
7
|
+
}
|
|
8
|
+
export declare const FlintMenubarSeparator: React.ForwardRefExoticComponent<FlintMenubarSeparatorProps & React.RefAttributes<FlintMenubarSeparatorElement>>;
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FlintMenubarShortcut as FlintMenubarShortcutElement } from '@getufy/flint-ui/menubar/flint-menubar';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Displays a keyboard shortcut hint inside a menu item.
|
|
5
|
+
*
|
|
6
|
+
* @slot - Shortcut text, e.g. `⌘T` or `Ctrl+N`.
|
|
7
|
+
*/
|
|
8
|
+
export interface FlintMenubarShortcutProps extends React.HTMLAttributes<FlintMenubarShortcutElement> {
|
|
9
|
+
}
|
|
10
|
+
export declare const FlintMenubarShortcut: React.ForwardRefExoticComponent<FlintMenubarShortcutProps & React.RefAttributes<FlintMenubarShortcutElement>>;
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FlintMenubarSub as FlintMenubarSubElement } from '@getufy/flint-ui/menubar/flint-menubar';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Wraps a sub-trigger and sub-content pair.
|
|
5
|
+
Opens on hover/focus and ArrowRight; closes on ArrowLeft or blur.
|
|
6
|
+
*/
|
|
7
|
+
export interface FlintMenubarSubProps extends React.HTMLAttributes<FlintMenubarSubElement> {
|
|
8
|
+
}
|
|
9
|
+
export declare const FlintMenubarSub: React.ForwardRefExoticComponent<FlintMenubarSubProps & React.RefAttributes<FlintMenubarSubElement>>;
|
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FlintMenubarSubContent as FlintMenubarSubContentElement } from '@getufy/flint-ui/menubar/flint-menubar';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
/**
|
|
4
|
+
* The dropdown panel of a sub-menu. Positioned to the right of the trigger.
|
|
5
|
+
Auto-flips left when the panel would overflow the viewport edge.
|
|
6
|
+
*/
|
|
7
|
+
export interface FlintMenubarSubContentProps extends React.HTMLAttributes<FlintMenubarSubContentElement> {
|
|
8
|
+
/** Whether the sub-menu dropdown panel is visible. */
|
|
9
|
+
open?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare const FlintMenubarSubContent: React.ForwardRefExoticComponent<FlintMenubarSubContentProps & React.RefAttributes<FlintMenubarSubContentElement>>;
|
|
@@ -1,4 +1,16 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FlintMenubarSubTrigger as FlintMenubarSubTriggerElement } from '@getufy/flint-ui/menubar/flint-menubar';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Trigger for a sub-menu. Shows an arrow indicator.
|
|
5
|
+
*/
|
|
6
|
+
export interface FlintMenubarSubTriggerProps extends React.HTMLAttributes<FlintMenubarSubTriggerElement> {
|
|
7
|
+
/** Whether the trigger is visually highlighted (e.g. via keyboard or hover). */
|
|
8
|
+
highlighted?: boolean;
|
|
9
|
+
/** Whether the trigger is non-interactive. */
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
/** Whether the trigger label is inset to align with checkbox/radio items. */
|
|
12
|
+
inset?: boolean;
|
|
13
|
+
/** Set by the parent `flint-menubar-sub` to reflect open state for aria-expanded. */
|
|
14
|
+
expanded?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export declare const FlintMenubarSubTrigger: React.ForwardRefExoticComponent<FlintMenubarSubTriggerProps & React.RefAttributes<FlintMenubarSubTriggerElement>>;
|
|
@@ -1,4 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FlintMenubarTrigger as FlintMenubarTriggerElement } from '@getufy/flint-ui/menubar/flint-menubar';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
/**
|
|
4
|
+
* The trigger button for a menubar menu.
|
|
5
|
+
*
|
|
6
|
+
* @slot - Trigger label text.
|
|
7
|
+
*/
|
|
8
|
+
export interface FlintMenubarTriggerProps extends React.HTMLAttributes<FlintMenubarTriggerElement> {
|
|
9
|
+
/** Whether the trigger's associated menu is currently open. */
|
|
10
|
+
active?: boolean;
|
|
11
|
+
/** Whether the trigger is non-interactive. */
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare const FlintMenubarTrigger: React.ForwardRefExoticComponent<FlintMenubarTriggerProps & React.RefAttributes<FlintMenubarTriggerElement>>;
|
|
@@ -1,4 +1,23 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FlintMobileStepper as FlintMobileStepperElement } from '@getufy/flint-ui/stepper/flint-stepper';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Mobile Stepper: a compact stepper for mobile layouts.
|
|
5
|
+
*
|
|
6
|
+
* @slot back-button - Back navigation button.
|
|
7
|
+
* @slot next-button - Next navigation button.
|
|
8
|
+
*/
|
|
9
|
+
export interface FlintMobileStepperProps extends React.HTMLAttributes<FlintMobileStepperElement> {
|
|
10
|
+
/** Total number of steps. */
|
|
11
|
+
steps?: number;
|
|
12
|
+
/** Zero-based index of the currently active step. */
|
|
13
|
+
activeStep?: number;
|
|
14
|
+
/** Progress indicator style: text counter, dot indicators, or a progress bar. */
|
|
15
|
+
variant?: 'text' | 'dots' | 'progress';
|
|
16
|
+
/** Positioning of the mobile stepper within its container. */
|
|
17
|
+
position?: 'top' | 'bottom' | 'static';
|
|
18
|
+
/** Label text for the Back navigation button (supports i18n). */
|
|
19
|
+
backLabel?: string;
|
|
20
|
+
/** Label text for the Next navigation button (supports i18n). */
|
|
21
|
+
nextLabel?: string;
|
|
22
|
+
}
|
|
23
|
+
export declare const FlintMobileStepper: React.ForwardRefExoticComponent<FlintMobileStepperProps & React.RefAttributes<FlintMobileStepperElement>>;
|
|
@@ -1,7 +1,26 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type EventName } from '@lit/react';
|
|
3
2
|
import { FlintMobileTimePicker as FlintMobileTimePickerElement } from '@getufy/flint-ui/time-picker/flint-time-picker';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export
|
|
3
|
+
/**
|
|
4
|
+
* Mobile Time Picker: a time field with a modal clock dialog.
|
|
5
|
+
*/
|
|
6
|
+
export interface FlintMobileTimePickerProps extends Omit<React.HTMLAttributes<FlintMobileTimePickerElement>, 'onChange'> {
|
|
7
|
+
/** Time value in HH:MM:SS format. */
|
|
8
|
+
value?: string;
|
|
9
|
+
/** Field label text. */
|
|
10
|
+
label?: string;
|
|
11
|
+
/** Whether to use 12-hour (AM/PM) format instead of 24-hour. */
|
|
12
|
+
ampm?: boolean;
|
|
13
|
+
/** Whether to show a seconds segment. */
|
|
14
|
+
seconds?: boolean;
|
|
15
|
+
/** Disables the picker and prevents interaction. */
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
/** Displays the picker in an error state. */
|
|
18
|
+
error?: boolean;
|
|
19
|
+
/** Helper text shown below the field. */
|
|
20
|
+
helperText?: string;
|
|
21
|
+
/** Error message displayed below the field when in error state. */
|
|
22
|
+
errorMessage?: string;
|
|
23
|
+
/** Fired when the time value changes. */
|
|
24
|
+
onChange?: (event: CustomEvent) => void;
|
|
25
|
+
}
|
|
26
|
+
export declare const FlintMobileTimePicker: React.ForwardRefExoticComponent<FlintMobileTimePickerProps & React.RefAttributes<FlintMobileTimePickerElement>>;
|
|
@@ -1,7 +1,19 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type EventName } from '@lit/react';
|
|
3
2
|
import { FlintMultiSectionDigitalClock as FlintMultiSectionDigitalClockElement } from '@getufy/flint-ui/time-picker/flint-time-picker';
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
|
|
3
|
+
export interface ChangeDetail {
|
|
4
|
+
value: string;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Multi Section Digital Clock: hours, minutes, and optional seconds columns.
|
|
8
|
+
*/
|
|
9
|
+
export interface FlintMultiSectionDigitalClockProps extends Omit<React.HTMLAttributes<FlintMultiSectionDigitalClockElement>, 'onChange'> {
|
|
10
|
+
/** Time value in HH:MM:SS format. */
|
|
11
|
+
value?: string;
|
|
12
|
+
/** Whether to use 12-hour (AM/PM) format instead of 24-hour. */
|
|
13
|
+
ampm?: boolean;
|
|
14
|
+
/** Whether to show a seconds column. */
|
|
15
|
+
seconds?: boolean;
|
|
16
|
+
/** Fired when the time value changes. */
|
|
17
|
+
onChange?: (event: CustomEvent<ChangeDetail>) => void;
|
|
18
|
+
}
|
|
19
|
+
export declare const FlintMultiSectionDigitalClock: React.ForwardRefExoticComponent<FlintMultiSectionDigitalClockProps & React.RefAttributes<FlintMultiSectionDigitalClockElement>>;
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FlintNavigationMenu as FlintNavigationMenuElement } from '@getufy/flint-ui/navigation-menu/flint-navigation-menu';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
/**
|
|
4
|
+
* @slot default - The menu content (NavigationMenuList)
|
|
5
|
+
*/
|
|
6
|
+
export interface FlintNavigationMenuProps extends Omit<React.HTMLAttributes<FlintNavigationMenuElement>, 'dir'> {
|
|
7
|
+
/** The direction of the menu (ltr or rtl) */
|
|
8
|
+
dir?: 'ltr' | 'rtl';
|
|
9
|
+
}
|
|
10
|
+
export declare const FlintNavigationMenu: React.ForwardRefExoticComponent<FlintNavigationMenuProps & React.RefAttributes<FlintNavigationMenuElement>>;
|
|
@@ -1,7 +1,22 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type EventName } from '@lit/react';
|
|
3
2
|
import { FlintNavigationMenuContent as FlintNavigationMenuContentElement } from '@getufy/flint-ui/navigation-menu/flint-navigation-menu-content';
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
export interface FlintNavigationMenuContentToggleDetail {
|
|
4
|
+
contentId: string;
|
|
5
|
+
open: boolean;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* @slot default - Menu content items
|
|
9
|
+
*/
|
|
10
|
+
export interface FlintNavigationMenuContentProps extends Omit<React.HTMLAttributes<FlintNavigationMenuContentElement>, 'id' | 'dir'> {
|
|
11
|
+
/** Unique identifier for this content panel */
|
|
12
|
+
id?: string;
|
|
13
|
+
/** Whether the content is open/visible */
|
|
14
|
+
open?: boolean;
|
|
15
|
+
/** The direction (ltr or rtl) */
|
|
16
|
+
dir?: 'ltr' | 'rtl';
|
|
17
|
+
/** Gap between items in the content */
|
|
18
|
+
gap?: number;
|
|
19
|
+
/** Fired when the content panel opens or closes. */
|
|
20
|
+
onFlintNavigationMenuContentToggle?: (event: CustomEvent<FlintNavigationMenuContentToggleDetail>) => void;
|
|
21
|
+
}
|
|
22
|
+
export declare const FlintNavigationMenuContent: React.ForwardRefExoticComponent<FlintNavigationMenuContentProps & React.RefAttributes<FlintNavigationMenuContentElement>>;
|
|
@@ -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>>;
|