@getufy/flint-ui-react 0.2.2 → 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 +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,7 +1,22 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type EventName } from '@lit/react';
|
|
3
2
|
import { FlintDatePickerCalendar as FlintDatePickerCalendarElement } from '@getufy/flint-ui/date-picker/flint-date-picker';
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
|
|
3
|
+
export interface FlintDatePickerSelectDetail {
|
|
4
|
+
value: string;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* A standalone calendar grid — the core date-selection view.
|
|
8
|
+
Used internally by flint-date-picker, but can also be used on its own.
|
|
9
|
+
*/
|
|
10
|
+
export interface FlintDatePickerCalendarProps extends React.HTMLAttributes<FlintDatePickerCalendarElement> {
|
|
11
|
+
/** Currently selected value as ISO string (YYYY-MM-DD). */
|
|
12
|
+
value?: string;
|
|
13
|
+
/** Minimum selectable date (ISO). */
|
|
14
|
+
min?: string;
|
|
15
|
+
/** Maximum selectable date (ISO). */
|
|
16
|
+
max?: string;
|
|
17
|
+
/** Disable all interaction. */
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
/** { detail: { value: string } } ISO date YYYY-MM-DD */
|
|
20
|
+
onFlintDatePickerSelect?: (event: CustomEvent<FlintDatePickerSelectDetail>) => void;
|
|
21
|
+
}
|
|
22
|
+
export declare const FlintDatePickerCalendar: React.ForwardRefExoticComponent<FlintDatePickerCalendarProps & React.RefAttributes<FlintDatePickerCalendarElement>>;
|
|
@@ -1,7 +1,19 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type EventName } from '@lit/react';
|
|
3
2
|
import { FlintDateRangeCalendar as FlintDateRangeCalendarElement } from '@getufy/flint-ui/date-range-picker/flint-date-range-calendar';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
/**
|
|
4
|
+
* A dual-month calendar for range selection.
|
|
5
|
+
Shows two months side-by-side (or stacked on narrow screens).
|
|
6
|
+
*/
|
|
7
|
+
export interface FlintDateRangeCalendarProps extends React.HTMLAttributes<FlintDateRangeCalendarElement> {
|
|
8
|
+
/** Current selected range [startISO, endISO]. */
|
|
9
|
+
value?: FlintDateRangeCalendarElement['value'];
|
|
10
|
+
/** Minimum selectable date (ISO YYYY-MM-DD). */
|
|
11
|
+
min?: string;
|
|
12
|
+
/** Maximum selectable date (ISO YYYY-MM-DD). */
|
|
13
|
+
max?: string;
|
|
14
|
+
/** Disables the calendar and prevents date selection. */
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
/** { detail: { value: DateRange } } on each click */
|
|
17
|
+
onFlintDateRangePickerSelect?: (event: CustomEvent) => void;
|
|
18
|
+
}
|
|
19
|
+
export declare const FlintDateRangeCalendar: React.ForwardRefExoticComponent<FlintDateRangeCalendarProps & React.RefAttributes<FlintDateRangeCalendarElement>>;
|
|
@@ -1,7 +1,38 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type EventName } from '@lit/react';
|
|
3
2
|
import { FlintDateRangePicker as FlintDateRangePickerElement } from '@getufy/flint-ui/date-range-picker/flint-date-range-picker';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export
|
|
3
|
+
/**
|
|
4
|
+
* A date range picker combining a segmented field and a dual-month calendar.
|
|
5
|
+
*/
|
|
6
|
+
export interface FlintDateRangePickerProps extends React.HTMLAttributes<FlintDateRangePickerElement> {
|
|
7
|
+
/** Selected range [startISO, endISO]. Empty strings mean unset. */
|
|
8
|
+
value?: FlintDateRangePickerElement['value'];
|
|
9
|
+
/** Label shown above the field. */
|
|
10
|
+
label?: string;
|
|
11
|
+
/** Variant: 'desktop' | 'mobile' | 'static' | 'auto'. */
|
|
12
|
+
variant?: 'desktop' | 'mobile' | 'static' | 'auto';
|
|
13
|
+
/** Use a multi-input field (two separate fields) instead of single-input. Currently shows two simple text displays. */
|
|
14
|
+
multiInput?: boolean;
|
|
15
|
+
/** Show shortcuts panel. */
|
|
16
|
+
shortcuts?: boolean;
|
|
17
|
+
/** Custom shortcuts list. Defaults to built-in shortcuts when shortcuts=true. */
|
|
18
|
+
shortcutItems?: FlintDateRangePickerElement['shortcutItems'];
|
|
19
|
+
/** Minimum selectable date (ISO YYYY-MM-DD). */
|
|
20
|
+
min?: string;
|
|
21
|
+
/** Maximum selectable date (ISO YYYY-MM-DD). */
|
|
22
|
+
max?: string;
|
|
23
|
+
/** Form field name for hidden inputs. */
|
|
24
|
+
name?: string;
|
|
25
|
+
/** Disables the picker and prevents interaction. */
|
|
26
|
+
disabled?: boolean;
|
|
27
|
+
/** Makes the picker read-only (visible but not editable). */
|
|
28
|
+
readonly?: boolean;
|
|
29
|
+
/** Displays the picker in an error state. */
|
|
30
|
+
error?: boolean;
|
|
31
|
+
/** Helper text shown below the field. */
|
|
32
|
+
helperText?: string;
|
|
33
|
+
/** Error message displayed below the field when in error state. */
|
|
34
|
+
errorMessage?: string;
|
|
35
|
+
/** { detail: { value: DateRange } } when range is committed */
|
|
36
|
+
onFlintDateRangePickerChange?: (event: CustomEvent) => void;
|
|
37
|
+
}
|
|
38
|
+
export declare const FlintDateRangePicker: React.ForwardRefExoticComponent<FlintDateRangePickerProps & React.RefAttributes<FlintDateRangePickerElement>>;
|
|
@@ -1,7 +1,31 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type EventName } from '@lit/react';
|
|
3
2
|
import { FlintDesktopTimePicker as FlintDesktopTimePickerElement } from '@getufy/flint-ui/time-picker/flint-time-picker';
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
|
|
3
|
+
export interface ChangeDetail {
|
|
4
|
+
value: string;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Desktop Time Picker: a time field with a dropdown clock.
|
|
8
|
+
*/
|
|
9
|
+
export interface FlintDesktopTimePickerProps extends Omit<React.HTMLAttributes<FlintDesktopTimePickerElement>, 'onChange'> {
|
|
10
|
+
/** Time value in HH:MM:SS format. */
|
|
11
|
+
value?: string;
|
|
12
|
+
/** Field label text. */
|
|
13
|
+
label?: string;
|
|
14
|
+
/** Whether to use 12-hour (AM/PM) format instead of 24-hour. */
|
|
15
|
+
ampm?: boolean;
|
|
16
|
+
/** Whether to show a seconds segment. */
|
|
17
|
+
seconds?: boolean;
|
|
18
|
+
/** Disables the picker 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 the time value changes. */
|
|
29
|
+
onChange?: (event: CustomEvent<ChangeDetail>) => void;
|
|
30
|
+
}
|
|
31
|
+
export declare const FlintDesktopTimePicker: React.ForwardRefExoticComponent<FlintDesktopTimePickerProps & React.RefAttributes<FlintDesktopTimePickerElement>>;
|
|
@@ -1,7 +1,25 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type EventName } from '@lit/react';
|
|
3
2
|
import { FlintDialog as FlintDialogElement } from '@getufy/flint-ui/dialog/flint-dialog';
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
|
|
3
|
+
export interface CloseDetail {
|
|
4
|
+
open: boolean;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* flint-dialog: a modal dialog component.
|
|
8
|
+
*
|
|
9
|
+
* @slot - Default slot for dialog content (title, content, actions sub-components).
|
|
10
|
+
*/
|
|
11
|
+
export interface FlintDialogProps extends React.HTMLAttributes<FlintDialogElement> {
|
|
12
|
+
/** Controls the open / closed state of the dialog. */
|
|
13
|
+
open?: boolean;
|
|
14
|
+
/** Initial open state for uncontrolled usage. */
|
|
15
|
+
defaultOpen?: boolean;
|
|
16
|
+
/** Animation style: 'scale' (default), 'slide-up', or 'slide-down'. */
|
|
17
|
+
transition?: 'scale' | 'slide-up' | 'slide-down';
|
|
18
|
+
/** When true, clicking the backdrop will NOT close the dialog. */
|
|
19
|
+
disableBackdropClose?: boolean;
|
|
20
|
+
/** Dispatched when the dialog requests to be closed (backdrop click or
|
|
21
|
+
an explicit call to `requestClose()`). The host is responsible for
|
|
22
|
+
setting `open = false` in response. detail: `{ open: false }` */
|
|
23
|
+
onClose?: (event: CustomEvent<CloseDetail>) => void;
|
|
24
|
+
}
|
|
25
|
+
export declare const FlintDialog: React.ForwardRefExoticComponent<FlintDialogProps & React.RefAttributes<FlintDialogElement>>;
|
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FlintDialogActions as FlintDialogActionsElement } from '@getufy/flint-ui/dialog/flint-dialog';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
/**
|
|
4
|
+
* flint-dialog-actions: footer button row for a dialog.
|
|
5
|
+
Use the `align` prop to control button alignment.
|
|
6
|
+
*/
|
|
7
|
+
export interface FlintDialogActionsProps extends React.HTMLAttributes<FlintDialogActionsElement> {
|
|
8
|
+
/** Alignment of action buttons: 'end' (default), 'start', 'center', 'space-between'. */
|
|
9
|
+
align?: 'start' | 'center' | 'end' | 'space-between';
|
|
10
|
+
}
|
|
11
|
+
export declare const FlintDialogActions: React.ForwardRefExoticComponent<FlintDialogActionsProps & React.RefAttributes<FlintDialogActionsElement>>;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FlintDialogContent as FlintDialogContentElement } from '@getufy/flint-ui/dialog/flint-dialog';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
/**
|
|
4
|
+
* flint-dialog-content: scrollable content area of a dialog.
|
|
5
|
+
*/
|
|
6
|
+
export interface FlintDialogContentProps extends React.HTMLAttributes<FlintDialogContentElement> {
|
|
7
|
+
}
|
|
8
|
+
export declare const FlintDialogContent: React.ForwardRefExoticComponent<FlintDialogContentProps & React.RefAttributes<FlintDialogContentElement>>;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FlintDialogContentText as FlintDialogContentTextElement } from '@getufy/flint-ui/dialog/flint-dialog';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
/**
|
|
4
|
+
* flint-dialog-content-text: body text inside a dialog content area.
|
|
5
|
+
*/
|
|
6
|
+
export interface FlintDialogContentTextProps extends React.HTMLAttributes<FlintDialogContentTextElement> {
|
|
7
|
+
}
|
|
8
|
+
export declare const FlintDialogContentText: React.ForwardRefExoticComponent<FlintDialogContentTextProps & React.RefAttributes<FlintDialogContentTextElement>>;
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FlintDialogTitle as FlintDialogTitleElement } from '@getufy/flint-ui/dialog/flint-dialog';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
/**
|
|
4
|
+
* flint-dialog-title: heading area of a dialog.
|
|
5
|
+
Automatically assigned id="dialog-title" for aria-labelledby.
|
|
6
|
+
*/
|
|
7
|
+
export interface FlintDialogTitleProps extends React.HTMLAttributes<FlintDialogTitleElement> {
|
|
8
|
+
}
|
|
9
|
+
export declare const FlintDialogTitle: React.ForwardRefExoticComponent<FlintDialogTitleProps & React.RefAttributes<FlintDialogTitleElement>>;
|
|
@@ -1,7 +1,19 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type EventName } from '@lit/react';
|
|
3
2
|
import { FlintDigitalClock as FlintDigitalClockElement } from '@getufy/flint-ui/time-picker/flint-time-picker';
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
|
|
3
|
+
export interface ChangeDetail {
|
|
4
|
+
value: string;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Digital Clock: a scrollable time-slot picker.
|
|
8
|
+
*/
|
|
9
|
+
export interface FlintDigitalClockProps extends Omit<React.HTMLAttributes<FlintDigitalClockElement>, 'onChange'> {
|
|
10
|
+
/** Time value in HH:MM:SS format. */
|
|
11
|
+
value?: string;
|
|
12
|
+
/** Step interval in minutes between selectable times. */
|
|
13
|
+
step?: number;
|
|
14
|
+
/** Whether to use 12-hour (AM/PM) format instead of 24-hour. */
|
|
15
|
+
ampm?: boolean;
|
|
16
|
+
/** Fired when a time slot is selected. */
|
|
17
|
+
onChange?: (event: CustomEvent<ChangeDetail>) => void;
|
|
18
|
+
}
|
|
19
|
+
export declare const FlintDigitalClock: React.ForwardRefExoticComponent<FlintDigitalClockProps & React.RefAttributes<FlintDigitalClockElement>>;
|
|
@@ -1,4 +1,18 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FlintDivider as FlintDividerElement } from '@getufy/flint-ui/divider/flint-divider';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
/**
|
|
4
|
+
* A divider component that provides a thin line for grouping elements.
|
|
5
|
+
*
|
|
6
|
+
* @slot - Optional text or content to display within the divider.
|
|
7
|
+
*/
|
|
8
|
+
export interface FlintDividerProps extends React.HTMLAttributes<FlintDividerElement> {
|
|
9
|
+
/** Orientation of the divider line. */
|
|
10
|
+
orientation?: 'horizontal' | 'vertical';
|
|
11
|
+
/** Inset variant controlling how far the divider extends. */
|
|
12
|
+
variant?: 'full' | 'middle' | 'inset';
|
|
13
|
+
/** Thickness of the divider line. */
|
|
14
|
+
weight?: 'light' | 'medium' | 'heavy';
|
|
15
|
+
/** Alignment of text content within the divider. */
|
|
16
|
+
textAlign?: 'left' | 'center' | 'right';
|
|
17
|
+
}
|
|
18
|
+
export declare const FlintDivider: React.ForwardRefExoticComponent<FlintDividerProps & React.RefAttributes<FlintDividerElement>>;
|
|
@@ -1,7 +1,29 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type EventName } from '@lit/react';
|
|
3
2
|
import { FlintDrawer as FlintDrawerElement } from '@getufy/flint-ui/drawer/flint-drawer';
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
|
|
3
|
+
export interface FlintDrawerCloseDetail {
|
|
4
|
+
open: boolean;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Navigation drawers provide ergonomic access to destinations in a site or app.
|
|
8
|
+
*
|
|
9
|
+
* @slot - Drawer content.
|
|
10
|
+
*/
|
|
11
|
+
export interface FlintDrawerProps extends React.HTMLAttributes<FlintDrawerElement> {
|
|
12
|
+
/** Whether the drawer is open. */
|
|
13
|
+
open?: boolean;
|
|
14
|
+
/** Initial open state for uncontrolled usage. */
|
|
15
|
+
defaultOpen?: boolean;
|
|
16
|
+
/** Side from which the drawer slides in. */
|
|
17
|
+
anchor?: 'left' | 'right' | 'top' | 'bottom';
|
|
18
|
+
/** Drawer behavior mode. */
|
|
19
|
+
variant?: 'temporary' | 'persistent' | 'mini';
|
|
20
|
+
/** Whether the drawer uses edge spacing. */
|
|
21
|
+
edge?: boolean;
|
|
22
|
+
/** Whether the drawer is contained within its parent. */
|
|
23
|
+
container?: boolean;
|
|
24
|
+
/** Accessible label for the drawer panel (used as aria-label on the panel). */
|
|
25
|
+
label?: string;
|
|
26
|
+
/** Dispatched when the drawer requests to be closed (backdrop click or Escape). detail: `{ open: false }` */
|
|
27
|
+
onFlintDrawerClose?: (event: CustomEvent<FlintDrawerCloseDetail>) => void;
|
|
28
|
+
}
|
|
29
|
+
export declare const FlintDrawer: React.ForwardRefExoticComponent<FlintDrawerProps & React.RefAttributes<FlintDrawerElement>>;
|
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FlintEmpty as FlintEmptyElement } from '@getufy/flint-ui/empty/flint-empty';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Root container for an empty state. Wraps `flint-empty-header` and
|
|
5
|
+
`flint-empty-content` in a vertically centred flex column.
|
|
6
|
+
*
|
|
7
|
+
* @slot - Accepts `flint-empty-header`, `flint-empty-content`, and any extra
|
|
8
|
+
elements (e.g. a "Learn More" link).
|
|
9
|
+
*/
|
|
10
|
+
export interface FlintEmptyProps extends React.HTMLAttributes<FlintEmptyElement> {
|
|
11
|
+
}
|
|
12
|
+
export declare const FlintEmpty: React.ForwardRefExoticComponent<FlintEmptyProps & React.RefAttributes<FlintEmptyElement>>;
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FlintEmptyContent as FlintEmptyContentElement } from '@getufy/flint-ui/empty/flint-empty';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Displays action content for an empty state (buttons, inputs, links).
|
|
5
|
+
*
|
|
6
|
+
* @slot - Action elements such as buttons or inputs.
|
|
7
|
+
*/
|
|
8
|
+
export interface FlintEmptyContentProps extends React.HTMLAttributes<FlintEmptyContentElement> {
|
|
9
|
+
}
|
|
10
|
+
export declare const FlintEmptyContent: React.ForwardRefExoticComponent<FlintEmptyContentProps & React.RefAttributes<FlintEmptyContentElement>>;
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FlintEmptyDescription as FlintEmptyDescriptionElement } from '@getufy/flint-ui/empty/flint-empty';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Displays the descriptive text of an empty state.
|
|
5
|
+
*
|
|
6
|
+
* @slot - Description text.
|
|
7
|
+
*/
|
|
8
|
+
export interface FlintEmptyDescriptionProps extends React.HTMLAttributes<FlintEmptyDescriptionElement> {
|
|
9
|
+
}
|
|
10
|
+
export declare const FlintEmptyDescription: React.ForwardRefExoticComponent<FlintEmptyDescriptionProps & React.RefAttributes<FlintEmptyDescriptionElement>>;
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FlintEmptyHeader as FlintEmptyHeaderElement } from '@getufy/flint-ui/empty/flint-empty';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Groups the media, title, and description of an empty state.
|
|
5
|
+
*
|
|
6
|
+
* @slot - Accepts `flint-empty-media`, `flint-empty-title`, `flint-empty-description`.
|
|
7
|
+
*/
|
|
8
|
+
export interface FlintEmptyHeaderProps extends React.HTMLAttributes<FlintEmptyHeaderElement> {
|
|
9
|
+
}
|
|
10
|
+
export declare const FlintEmptyHeader: React.ForwardRefExoticComponent<FlintEmptyHeaderProps & React.RefAttributes<FlintEmptyHeaderElement>>;
|
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FlintEmptyMedia as FlintEmptyMediaElement } from '@getufy/flint-ui/empty/flint-empty';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Displays the media area of an empty state (icon, image, or avatar).
|
|
5
|
+
*
|
|
6
|
+
* @slot - Media content: icon, image, or avatar elements.
|
|
7
|
+
*/
|
|
8
|
+
export interface FlintEmptyMediaProps extends React.HTMLAttributes<FlintEmptyMediaElement> {
|
|
9
|
+
/** Visual treatment for the media container. */
|
|
10
|
+
variant?: 'default' | 'icon';
|
|
11
|
+
}
|
|
12
|
+
export declare const FlintEmptyMedia: React.ForwardRefExoticComponent<FlintEmptyMediaProps & React.RefAttributes<FlintEmptyMediaElement>>;
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FlintEmptyTitle as FlintEmptyTitleElement } from '@getufy/flint-ui/empty/flint-empty';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Displays the heading of an empty state.
|
|
5
|
+
*
|
|
6
|
+
* @slot - Title text.
|
|
7
|
+
*/
|
|
8
|
+
export interface FlintEmptyTitleProps extends React.HTMLAttributes<FlintEmptyTitleElement> {
|
|
9
|
+
}
|
|
10
|
+
export declare const FlintEmptyTitle: React.ForwardRefExoticComponent<FlintEmptyTitleProps & React.RefAttributes<FlintEmptyTitleElement>>;
|
|
@@ -1,4 +1,17 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FlintFab as FlintFabElement } from '@getufy/flint-ui/fab/flint-fab';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
/**
|
|
4
|
+
* A floating action button (FAB) represents the primary action of a screen.
|
|
5
|
+
*
|
|
6
|
+
* @slot icon - The icon to display inside the FAB.
|
|
7
|
+
* @slot - Default slot for icon content (icon-only FAB).
|
|
8
|
+
* @slot label - The label to display in the extended FAB.
|
|
9
|
+
*/
|
|
10
|
+
export interface FlintFabProps extends React.HTMLAttributes<FlintFabElement> {
|
|
11
|
+
extended?: boolean;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
/** Accessible label for icon-only (non-extended) FABs. */
|
|
14
|
+
label?: string;
|
|
15
|
+
position?: 'bottom-right' | 'bottom-left' | 'top-right' | 'top-left' | 'static';
|
|
16
|
+
}
|
|
17
|
+
export declare const FlintFab: React.ForwardRefExoticComponent<FlintFabProps & React.RefAttributes<FlintFabElement>>;
|
|
@@ -1,4 +1,41 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FlintFormatDate as FlintFormatDateElement } from '@getufy/flint-ui/format-date/flint-format-date';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Formats a date/time using the specified locale and options.
|
|
5
|
+
Localization is handled by the browser's `Intl.DateTimeFormat` API — no language packs required.
|
|
6
|
+
*/
|
|
7
|
+
export interface FlintFormatDateProps extends Omit<React.HTMLAttributes<FlintFormatDateElement>, 'lang'> {
|
|
8
|
+
/** The date/time to format. Accepts a `Date` object or any string accepted by `new Date()`. */
|
|
9
|
+
date?: FlintFormatDateElement['date'];
|
|
10
|
+
/** The format for displaying the weekday. */
|
|
11
|
+
weekday?: 'narrow' | 'short' | 'long' | undefined;
|
|
12
|
+
/** The format for displaying the era. */
|
|
13
|
+
era?: 'narrow' | 'short' | 'long' | undefined;
|
|
14
|
+
/** The format for displaying the year. */
|
|
15
|
+
year?: 'numeric' | '2-digit' | undefined;
|
|
16
|
+
/** The format for displaying the month. */
|
|
17
|
+
month?: 'numeric' | '2-digit' | 'narrow' | 'short' | 'long' | undefined;
|
|
18
|
+
/** The format for displaying the day. */
|
|
19
|
+
day?: 'numeric' | '2-digit' | undefined;
|
|
20
|
+
/** The format for displaying the hour. */
|
|
21
|
+
hour?: 'numeric' | '2-digit' | undefined;
|
|
22
|
+
/** The format for displaying the minute. */
|
|
23
|
+
minute?: 'numeric' | '2-digit' | undefined;
|
|
24
|
+
/** The format for displaying the second. */
|
|
25
|
+
second?: 'numeric' | '2-digit' | undefined;
|
|
26
|
+
/** The format for displaying the time zone name. */
|
|
27
|
+
timeZoneName?: 'short' | 'long' | 'shortOffset' | 'longOffset' | 'shortGeneric' | 'longGeneric' | undefined;
|
|
28
|
+
/** The time zone to express the time in (e.g. "UTC", "America/New_York"). */
|
|
29
|
+
timeZone?: string | undefined;
|
|
30
|
+
/** Number of fractional second digits to display (1–3). */
|
|
31
|
+
fractionalSecondDigits?: 1 | 2 | 3 | undefined;
|
|
32
|
+
/** Shorthand date format style. Cannot be combined with individual date field props */
|
|
33
|
+
dateStyle?: 'full' | 'long' | 'medium' | 'short' | undefined;
|
|
34
|
+
/** Shorthand time format style. Cannot be combined with individual time field props */
|
|
35
|
+
timeStyle?: 'full' | 'long' | 'medium' | 'short' | undefined;
|
|
36
|
+
/** The hour format to use. `'auto'` uses the browser/locale default. */
|
|
37
|
+
hourFormat?: 'auto' | '12' | '24';
|
|
38
|
+
/** BCP 47 language tag for formatting locale (e.g. "en", "fr", "ru"). Inherits from the document when unset. */
|
|
39
|
+
lang?: string;
|
|
40
|
+
}
|
|
41
|
+
export declare const FlintFormatDate: React.ForwardRefExoticComponent<FlintFormatDateProps & React.RefAttributes<FlintFormatDateElement>>;
|
|
@@ -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>>;
|