@fanvue/ui 3.51.0 → 3.53.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/dist/cjs/components/Autocomplete/Autocomplete.cjs +34 -10
- package/dist/cjs/components/Autocomplete/Autocomplete.cjs.map +1 -1
- package/dist/cjs/components/Autocomplete/AutocompleteOptionItem.cjs +13 -1
- package/dist/cjs/components/Autocomplete/AutocompleteOptionItem.cjs.map +1 -1
- package/dist/cjs/components/BottomNavigation/BottomNavigation.cjs +2 -2
- package/dist/cjs/components/BottomNavigation/BottomNavigation.cjs.map +1 -1
- package/dist/cjs/components/Card/Card.cjs +5 -2
- package/dist/cjs/components/Card/Card.cjs.map +1 -1
- package/dist/cjs/components/Chart/ChartCard.cjs +2 -1
- package/dist/cjs/components/Chart/ChartCard.cjs.map +1 -1
- package/dist/cjs/components/Chart/ChartLoadingOverlay.cjs +1 -1
- package/dist/cjs/components/Chart/ChartLoadingOverlay.cjs.map +1 -1
- package/dist/cjs/components/ChatInput/ChatInput.cjs +2 -2
- package/dist/cjs/components/ChatInput/ChatInput.cjs.map +1 -1
- package/dist/cjs/components/ChatMessage/ChatMessage.cjs +1 -1
- package/dist/cjs/components/ChatMessage/ChatMessage.cjs.map +1 -1
- package/dist/cjs/components/CreatorCard/CreatorCard.cjs +3 -5
- package/dist/cjs/components/CreatorCard/CreatorCard.cjs.map +1 -1
- package/dist/cjs/components/CreatorCover/CreatorCover.cjs +11 -7
- package/dist/cjs/components/CreatorCover/CreatorCover.cjs.map +1 -1
- package/dist/cjs/components/DatePicker/DatePicker.cjs +37 -16
- package/dist/cjs/components/DatePicker/DatePicker.cjs.map +1 -1
- package/dist/cjs/components/Drawer/Drawer.cjs +11 -3
- package/dist/cjs/components/Drawer/Drawer.cjs.map +1 -1
- package/dist/cjs/components/DropdownMenu/DropdownMenuItem.cjs +33 -10
- package/dist/cjs/components/DropdownMenu/DropdownMenuItem.cjs.map +1 -1
- package/dist/cjs/components/DropdownMenu/DropdownMenuReorderItem.cjs +2 -1
- package/dist/cjs/components/DropdownMenu/DropdownMenuReorderItem.cjs.map +1 -1
- package/dist/cjs/components/DropdownMenu/DropdownMenuRoot.cjs +18 -13
- package/dist/cjs/components/DropdownMenu/DropdownMenuRoot.cjs.map +1 -1
- package/dist/cjs/components/DropdownMenu/DropdownMenuSelectionItems.cjs +56 -40
- package/dist/cjs/components/DropdownMenu/DropdownMenuSelectionItems.cjs.map +1 -1
- package/dist/cjs/components/IconButton/IconButton.cjs +5 -2
- package/dist/cjs/components/IconButton/IconButton.cjs.map +1 -1
- package/dist/cjs/components/Icons/MenuRowIcon.cjs +9 -2
- package/dist/cjs/components/Icons/MenuRowIcon.cjs.map +1 -1
- package/dist/cjs/components/Icons/VerifiedIcon.cjs +9 -15
- package/dist/cjs/components/Icons/VerifiedIcon.cjs.map +1 -1
- package/dist/cjs/components/InlineEmptyState/InlineEmptyState.cjs +42 -0
- package/dist/cjs/components/InlineEmptyState/InlineEmptyState.cjs.map +1 -0
- package/dist/cjs/components/Link/Link.cjs +30 -7
- package/dist/cjs/components/Link/Link.cjs.map +1 -1
- package/dist/cjs/components/PhoneField/PhoneField.cjs +21 -17
- package/dist/cjs/components/PhoneField/PhoneField.cjs.map +1 -1
- package/dist/cjs/components/Popover/Popover.cjs +69 -0
- package/dist/cjs/components/Popover/Popover.cjs.map +1 -0
- package/dist/cjs/components/SegmentedControl/SegmentedControl.cjs +6 -10
- package/dist/cjs/components/SegmentedControl/SegmentedControl.cjs.map +1 -1
- package/dist/cjs/components/SegmentedControl/segmentedControlClassNames.cjs +54 -0
- package/dist/cjs/components/SegmentedControl/segmentedControlClassNames.cjs.map +1 -0
- package/dist/cjs/components/Select/Select.cjs +40 -12
- package/dist/cjs/components/Select/Select.cjs.map +1 -1
- package/dist/cjs/components/Slider/SliderThumb.cjs +3 -2
- package/dist/cjs/components/Slider/SliderThumb.cjs.map +1 -1
- package/dist/cjs/components/Snackbar/Snackbar.cjs +1 -1
- package/dist/cjs/components/Snackbar/Snackbar.cjs.map +1 -1
- package/dist/cjs/components/Switch/Switch.cjs +1 -1
- package/dist/cjs/components/Switch/Switch.cjs.map +1 -1
- package/dist/cjs/components/Table/Table.cjs +77 -7
- package/dist/cjs/components/Table/Table.cjs.map +1 -1
- package/dist/cjs/components/Table/TableRowLink.cjs +55 -0
- package/dist/cjs/components/Table/TableRowLink.cjs.map +1 -0
- package/dist/cjs/components/Tag/Tag.cjs +99 -0
- package/dist/cjs/components/Tag/Tag.cjs.map +1 -0
- package/dist/cjs/components/TextArea/TextArea.cjs +5 -4
- package/dist/cjs/components/TextArea/TextArea.cjs.map +1 -1
- package/dist/cjs/components/TextField/TextField.cjs +30 -15
- package/dist/cjs/components/TextField/TextField.cjs.map +1 -1
- package/dist/cjs/index.cjs +12 -0
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/utils/floatingContentSurface.cjs +8 -0
- package/dist/cjs/utils/floatingContentSurface.cjs.map +1 -0
- package/dist/cjs/utils/inputFieldClasses.cjs +8 -0
- package/dist/cjs/utils/inputFieldClasses.cjs.map +1 -0
- package/dist/cjs/utils/pointerCapture.cjs +20 -0
- package/dist/cjs/utils/pointerCapture.cjs.map +1 -0
- package/dist/cjs/utils/useDragToDismiss.cjs +3 -2
- package/dist/cjs/utils/useDragToDismiss.cjs.map +1 -1
- package/dist/cjs/utils/useSuppressClickAfterDrag.cjs +2 -1
- package/dist/cjs/utils/useSuppressClickAfterDrag.cjs.map +1 -1
- package/dist/components/Autocomplete/Autocomplete.mjs +34 -10
- package/dist/components/Autocomplete/Autocomplete.mjs.map +1 -1
- package/dist/components/Autocomplete/AutocompleteOptionItem.mjs +13 -1
- package/dist/components/Autocomplete/AutocompleteOptionItem.mjs.map +1 -1
- package/dist/components/BottomNavigation/BottomNavigation.mjs +2 -2
- package/dist/components/BottomNavigation/BottomNavigation.mjs.map +1 -1
- package/dist/components/Card/Card.mjs +5 -2
- package/dist/components/Card/Card.mjs.map +1 -1
- package/dist/components/Chart/ChartCard.mjs +2 -1
- package/dist/components/Chart/ChartCard.mjs.map +1 -1
- package/dist/components/Chart/ChartLoadingOverlay.mjs +1 -1
- package/dist/components/Chart/ChartLoadingOverlay.mjs.map +1 -1
- package/dist/components/ChatInput/ChatInput.mjs +2 -2
- package/dist/components/ChatInput/ChatInput.mjs.map +1 -1
- package/dist/components/ChatMessage/ChatMessage.mjs +1 -1
- package/dist/components/ChatMessage/ChatMessage.mjs.map +1 -1
- package/dist/components/CreatorCard/CreatorCard.mjs +3 -5
- package/dist/components/CreatorCard/CreatorCard.mjs.map +1 -1
- package/dist/components/CreatorCover/CreatorCover.mjs +11 -7
- package/dist/components/CreatorCover/CreatorCover.mjs.map +1 -1
- package/dist/components/DatePicker/DatePicker.mjs +39 -18
- package/dist/components/DatePicker/DatePicker.mjs.map +1 -1
- package/dist/components/Drawer/Drawer.mjs +11 -3
- package/dist/components/Drawer/Drawer.mjs.map +1 -1
- package/dist/components/DropdownMenu/DropdownMenuItem.mjs +33 -10
- package/dist/components/DropdownMenu/DropdownMenuItem.mjs.map +1 -1
- package/dist/components/DropdownMenu/DropdownMenuReorderItem.mjs +2 -1
- package/dist/components/DropdownMenu/DropdownMenuReorderItem.mjs.map +1 -1
- package/dist/components/DropdownMenu/DropdownMenuRoot.mjs +18 -13
- package/dist/components/DropdownMenu/DropdownMenuRoot.mjs.map +1 -1
- package/dist/components/DropdownMenu/DropdownMenuSelectionItems.mjs +56 -40
- package/dist/components/DropdownMenu/DropdownMenuSelectionItems.mjs.map +1 -1
- package/dist/components/IconButton/IconButton.mjs +5 -2
- package/dist/components/IconButton/IconButton.mjs.map +1 -1
- package/dist/components/Icons/MenuRowIcon.mjs +9 -2
- package/dist/components/Icons/MenuRowIcon.mjs.map +1 -1
- package/dist/components/Icons/VerifiedIcon.mjs +9 -15
- package/dist/components/Icons/VerifiedIcon.mjs.map +1 -1
- package/dist/components/InlineEmptyState/InlineEmptyState.mjs +25 -0
- package/dist/components/InlineEmptyState/InlineEmptyState.mjs.map +1 -0
- package/dist/components/Link/Link.mjs +31 -8
- package/dist/components/Link/Link.mjs.map +1 -1
- package/dist/components/PhoneField/PhoneField.mjs +21 -17
- package/dist/components/PhoneField/PhoneField.mjs.map +1 -1
- package/dist/components/Popover/Popover.mjs +51 -0
- package/dist/components/Popover/Popover.mjs.map +1 -0
- package/dist/components/SegmentedControl/SegmentedControl.mjs +6 -10
- package/dist/components/SegmentedControl/SegmentedControl.mjs.map +1 -1
- package/dist/components/SegmentedControl/segmentedControlClassNames.mjs +54 -0
- package/dist/components/SegmentedControl/segmentedControlClassNames.mjs.map +1 -0
- package/dist/components/Select/Select.mjs +40 -12
- package/dist/components/Select/Select.mjs.map +1 -1
- package/dist/components/Slider/SliderThumb.mjs +3 -2
- package/dist/components/Slider/SliderThumb.mjs.map +1 -1
- package/dist/components/Snackbar/Snackbar.mjs +1 -1
- package/dist/components/Snackbar/Snackbar.mjs.map +1 -1
- package/dist/components/Switch/Switch.mjs +1 -1
- package/dist/components/Switch/Switch.mjs.map +1 -1
- package/dist/components/Table/Table.mjs +77 -7
- package/dist/components/Table/Table.mjs.map +1 -1
- package/dist/components/Table/TableRowLink.mjs +38 -0
- package/dist/components/Table/TableRowLink.mjs.map +1 -0
- package/dist/components/Tag/Tag.mjs +82 -0
- package/dist/components/Tag/Tag.mjs.map +1 -0
- package/dist/components/TextArea/TextArea.mjs +5 -4
- package/dist/components/TextArea/TextArea.mjs.map +1 -1
- package/dist/components/TextField/TextField.mjs +30 -15
- package/dist/components/TextField/TextField.mjs.map +1 -1
- package/dist/date-picker.d.ts +9 -0
- package/dist/index.d.ts +339 -30
- package/dist/index.mjs +12 -0
- package/dist/index.mjs.map +1 -1
- package/dist/styles/base.css +8 -4
- package/dist/styles/theme.css +1217 -1
- package/dist/utils/floatingContentSurface.mjs +8 -0
- package/dist/utils/floatingContentSurface.mjs.map +1 -0
- package/dist/utils/inputFieldClasses.mjs +8 -0
- package/dist/utils/inputFieldClasses.mjs.map +1 -0
- package/dist/utils/pointerCapture.mjs +20 -0
- package/dist/utils/pointerCapture.mjs.map +1 -0
- package/dist/utils/useDragToDismiss.mjs +3 -2
- package/dist/utils/useDragToDismiss.mjs.map +1 -1
- package/dist/utils/useSuppressClickAfterDrag.mjs +2 -1
- package/dist/utils/useSuppressClickAfterDrag.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -765,6 +765,12 @@ declare interface AutocompleteBaseProps {
|
|
|
765
765
|
loading?: boolean;
|
|
766
766
|
loadingText?: string;
|
|
767
767
|
emptyText?: string;
|
|
768
|
+
/**
|
|
769
|
+
* Custom content for each option row. Under the v2 palette a selected row is
|
|
770
|
+
* inverted: the content and icon tokens inside it switch to their inverted values,
|
|
771
|
+
* so text and icons follow. Anything that brings its own surface, such as a `Chip`
|
|
772
|
+
* or `Badge`, keeps its fill and should not rely on the row's text colour.
|
|
773
|
+
*/
|
|
768
774
|
renderOption?: (option: AutocompleteOption, state: {
|
|
769
775
|
selected: boolean;
|
|
770
776
|
active: boolean;
|
|
@@ -1455,6 +1461,11 @@ export declare interface CardProps extends React_2.HTMLAttributes<HTMLDivElement
|
|
|
1455
1461
|
fullWidth?: boolean;
|
|
1456
1462
|
/** When `true`, removes all internal padding. @default false */
|
|
1457
1463
|
noPadding?: boolean;
|
|
1464
|
+
/**
|
|
1465
|
+
* When `true`, renders the single child element with the card's surface instead of a `div`,
|
|
1466
|
+
* so a button or a link can be the card, for example a menu trigger. @default false
|
|
1467
|
+
*/
|
|
1468
|
+
asChild?: boolean;
|
|
1458
1469
|
}
|
|
1459
1470
|
|
|
1460
1471
|
/** Title element rendered inside a {@link CardHeader}. Adapts its type scale to the card `hierarchy`. */
|
|
@@ -2262,9 +2273,12 @@ export declare interface CreatorCardProps extends Omit<React_2.HTMLAttributes<HT
|
|
|
2262
2273
|
* Pass the label as `children`. Omit to hide the pill.
|
|
2263
2274
|
*/
|
|
2264
2275
|
pill?: PillProps;
|
|
2265
|
-
/**
|
|
2276
|
+
/**
|
|
2277
|
+
* Props forwarded to the inner {@link Avatar}. Omit to hide the avatar, so the
|
|
2278
|
+
* name and tagline align with the card's left edge.
|
|
2279
|
+
*/
|
|
2266
2280
|
avatar?: React_2.ComponentPropsWithoutRef<typeof Avatar>;
|
|
2267
|
-
/** Creator display name shown next to the avatar. */
|
|
2281
|
+
/** Creator display name, shown next to the avatar when there is one. */
|
|
2268
2282
|
name: React_2.ReactNode;
|
|
2269
2283
|
/** When `true`, renders a verified badge after the name. @default false */
|
|
2270
2284
|
verified?: boolean;
|
|
@@ -2924,21 +2938,26 @@ export declare interface DrawerContentProps extends React_2.ComponentPropsWithou
|
|
|
2924
2938
|
* `side` concept used by Radix Popover/Tooltip and to better convey the
|
|
2925
2939
|
* spatial relationship of the drawer to the viewport.
|
|
2926
2940
|
*
|
|
2941
|
+
* Ignored by `variant="page"`, which always rises from the bottom.
|
|
2942
|
+
*
|
|
2927
2943
|
* @default "right"
|
|
2928
2944
|
*/
|
|
2929
2945
|
position?: DrawerPosition;
|
|
2930
2946
|
/**
|
|
2931
2947
|
* Controls the maximum extent of the drawer panel.
|
|
2932
2948
|
* For left/right drawers this sets `max-width`; for top/bottom it sets `max-height`.
|
|
2933
|
-
* Ignored by a left/right `variant="modal"`, which is always the 440px modal
|
|
2949
|
+
* Ignored by a left/right `variant="modal"`, which is always the 440px modal,
|
|
2950
|
+
* and by `variant="page"`, which always runs to the bottom edge.
|
|
2934
2951
|
* @default "sm"
|
|
2935
2952
|
*/
|
|
2936
2953
|
size?: DrawerSize;
|
|
2937
2954
|
/**
|
|
2938
2955
|
* Visual treatment of the panel. Use `"sheet"` (with `position="bottom"`) for
|
|
2939
2956
|
* a bottom sheet with the modal surface treatment, `"menu"` for a floating
|
|
2940
|
-
* inset menu carrying the dropdown surface,
|
|
2941
|
-
* the page on desktop, from the bottom on mobile
|
|
2957
|
+
* inset menu carrying the dropdown surface, `"modal"` for the V2 Modal: beside
|
|
2958
|
+
* the page on desktop, from the bottom on mobile, or `"page"` for a detail page
|
|
2959
|
+
* that rises from the bottom over the one behind it.
|
|
2960
|
+
* @default "panel"
|
|
2942
2961
|
*/
|
|
2943
2962
|
variant?: DrawerVariant;
|
|
2944
2963
|
/**
|
|
@@ -3063,8 +3082,16 @@ export declare type DrawerTriggerProps = React_2.ComponentPropsWithoutRef<typeof
|
|
|
3063
3082
|
* with the modal surface and stroke and a 32px radius, over the heavy overlay.
|
|
3064
3083
|
* Beside the page (`position="left"` or `"right"`) it is 440px wide with 24px
|
|
3065
3084
|
* padding; from the top or bottom it is the mobile modal, with 16px padding.
|
|
3085
|
+
* - `"page"` — a detail page that rises over the one behind it: the opaque page
|
|
3086
|
+
* background, a 16px top radius, a stroke on the top and sides, and a 16px gap
|
|
3087
|
+
* left above it so the page behind stays in view. It always runs to the bottom
|
|
3088
|
+
* edge, so `size` is ignored. Its rise is slower than its fall, and both are
|
|
3089
|
+
* dropped under reduced motion. It always rises from the bottom, so `position`
|
|
3090
|
+
* is ignored too. It cannot be dragged down to dismiss, and it clips what
|
|
3091
|
+
* overflows it, so give its body a scroll container (`min-h-0 flex-1
|
|
3092
|
+
* overflow-y-auto`). Meant for wide viewports; on a phone, use `"sheet"`.
|
|
3066
3093
|
*/
|
|
3067
|
-
export declare type DrawerVariant = "panel" | "sheet" | "menu" | "modal";
|
|
3094
|
+
export declare type DrawerVariant = "panel" | "sheet" | "menu" | "modal" | "page";
|
|
3068
3095
|
|
|
3069
3096
|
/** Root component that manages open/close state for a dropdown menu. */
|
|
3070
3097
|
export declare function DropdownMenu({ open: openProp, defaultOpen, onOpenChange, variant, children, ...props }: DropdownMenuProps): JSX.Element;
|
|
@@ -3072,7 +3099,8 @@ export declare function DropdownMenu({ open: openProp, defaultOpen, onOpenChange
|
|
|
3072
3099
|
/**
|
|
3073
3100
|
* A single multi-select choice within a dropdown menu. Shows a square indicator
|
|
3074
3101
|
* that fills when checked, an optional leading avatar, and an optional helper
|
|
3075
|
-
* line underneath the title.
|
|
3102
|
+
* line underneath the title. Rows do not shrink, so a two-line row stays whole
|
|
3103
|
+
* when the panel scrolls.
|
|
3076
3104
|
*
|
|
3077
3105
|
* Pair with {@link DropdownMenuHeader} at `type="search"` for filterable menus.
|
|
3078
3106
|
* Use {@link DropdownMenuRadioItem} instead when only one option may be active.
|
|
@@ -3127,7 +3155,7 @@ export declare interface DropdownMenuContentProps extends React_2.ComponentProps
|
|
|
3127
3155
|
*
|
|
3128
3156
|
* Requires Radix menu context — not supported inside a `variant="sheet"` menu.
|
|
3129
3157
|
*/
|
|
3130
|
-
export declare const DropdownMenuGroup: React_2.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
3158
|
+
export declare const DropdownMenuGroup: React_2.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuGroupProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
3131
3159
|
|
|
3132
3160
|
/** Props for the {@link DropdownMenuGroup} component. */
|
|
3133
3161
|
export declare type DropdownMenuGroupProps = React_2.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Group>;
|
|
@@ -3215,6 +3243,10 @@ export declare type DropdownMenuHeaderType = "default" | "search";
|
|
|
3215
3243
|
/**
|
|
3216
3244
|
* An individual item within a {@link DropdownMenuContent}.
|
|
3217
3245
|
*
|
|
3246
|
+
* Rows do not shrink (`shrink-0`): the panel is a scrolling flex column capped at the
|
|
3247
|
+
* space available, and a row allowed to shrink would drop to its minimum height and
|
|
3248
|
+
* spill a second line.
|
|
3249
|
+
*
|
|
3218
3250
|
* @example
|
|
3219
3251
|
* ```tsx
|
|
3220
3252
|
* <DropdownMenuItem>Edit profile</DropdownMenuItem>
|
|
@@ -3272,7 +3304,16 @@ export declare interface DropdownMenuItemProps extends React_2.ComponentPropsWit
|
|
|
3272
3304
|
* icons align to the title line (top) rather than the row's vertical centre.
|
|
3273
3305
|
*/
|
|
3274
3306
|
description?: React_2.ReactNode;
|
|
3275
|
-
/**
|
|
3307
|
+
/**
|
|
3308
|
+
* Marks the item as the current selection in a single-select menu. The row
|
|
3309
|
+
* rests on `Buttons/Navigation/Hover` with a semibold label; hover still shows
|
|
3310
|
+
* `Interaction/Hover`, because `data-[highlighted]` outranks the selected class.
|
|
3311
|
+
* Under the v2 palette that fill is inverted, with inverted content, and a
|
|
3312
|
+
* highlighted row moves to `Menu Item Selected Hover` so keyboard focus stays visible.
|
|
3313
|
+
* The row also gets `data-selected`, and `aria-current` unless the consumer
|
|
3314
|
+
* already sets `aria-checked`.
|
|
3315
|
+
* @default false
|
|
3316
|
+
*/
|
|
3276
3317
|
selected?: boolean;
|
|
3277
3318
|
}
|
|
3278
3319
|
|
|
@@ -3325,7 +3366,7 @@ export declare interface DropdownMenuProps extends React_2.ComponentPropsWithout
|
|
|
3325
3366
|
*
|
|
3326
3367
|
* Requires Radix menu context — not supported inside a `variant="sheet"` menu.
|
|
3327
3368
|
*/
|
|
3328
|
-
export declare const DropdownMenuRadioGroup: React_2.ForwardRefExoticComponent<
|
|
3369
|
+
export declare const DropdownMenuRadioGroup: React_2.ForwardRefExoticComponent<DropdownMenuRadioGroupProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
3329
3370
|
|
|
3330
3371
|
/** Props for the {@link DropdownMenuRadioGroup} component. */
|
|
3331
3372
|
export declare interface DropdownMenuRadioGroupProps extends React_2.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.RadioGroup> {
|
|
@@ -3334,7 +3375,11 @@ export declare interface DropdownMenuRadioGroupProps extends React_2.ComponentPr
|
|
|
3334
3375
|
/**
|
|
3335
3376
|
* A single radio-style choice within a {@link DropdownMenuRadioGroup}. Shows
|
|
3336
3377
|
* a circular indicator that fills when selected, plus an optional helper line
|
|
3337
|
-
* underneath the title.
|
|
3378
|
+
* underneath the title. The checked row rests on `Buttons/Navigation/Hover`, and
|
|
3379
|
+
* hovering it shows `Interaction/Hover` like any other row. Under the v2 palette
|
|
3380
|
+
* the fill is inverted, with inverted content, and a highlighted checked row moves to
|
|
3381
|
+
* `Menu Item Selected Hover`. Rows do not shrink, so a two-line row stays whole when
|
|
3382
|
+
* the panel scrolls.
|
|
3338
3383
|
*/
|
|
3339
3384
|
export declare const DropdownMenuRadioItem: React_2.ForwardRefExoticComponent<DropdownMenuRadioItemProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
3340
3385
|
|
|
@@ -4189,6 +4234,23 @@ export declare interface InlineEditProps extends Omit<React_2.InputHTMLAttribute
|
|
|
4189
4234
|
/** Height of the inline edit field in pixels. */
|
|
4190
4235
|
export declare type InlineEditSize = "32" | "40";
|
|
4191
4236
|
|
|
4237
|
+
/**
|
|
4238
|
+
* An empty or coming-soon state as one quiet, centred line in an 80px block. Use it inside a
|
|
4239
|
+
* card, table or panel that has nothing to show yet. For a state with a title, artwork or
|
|
4240
|
+
* actions, use {@link EmptyState}.
|
|
4241
|
+
*
|
|
4242
|
+
* @example
|
|
4243
|
+
* ```tsx
|
|
4244
|
+
* <InlineEmptyState>No links in this campaign yet.</InlineEmptyState>
|
|
4245
|
+
* ```
|
|
4246
|
+
*/
|
|
4247
|
+
export declare const InlineEmptyState: React_2.ForwardRefExoticComponent<InlineEmptyStateProps & React_2.RefAttributes<HTMLParagraphElement>>;
|
|
4248
|
+
|
|
4249
|
+
export declare interface InlineEmptyStateProps extends Omit<React_2.HTMLAttributes<HTMLParagraphElement>, "dangerouslySetInnerHTML"> {
|
|
4250
|
+
/** The message. Keep it to one short sentence. */
|
|
4251
|
+
children?: React_2.ReactNode;
|
|
4252
|
+
}
|
|
4253
|
+
|
|
4192
4254
|
/**
|
|
4193
4255
|
* Language icon. Renders at sizes 16, 24, or 32 px with outlined and filled variants.
|
|
4194
4256
|
*
|
|
@@ -4207,7 +4269,8 @@ export declare type LanguageIconProps = BaseIconProps;
|
|
|
4207
4269
|
* using a button. Use `primary` for standard navigation and `brand` for the
|
|
4208
4270
|
* Fanvue green accent on calls to action within content. Use `inherit` with
|
|
4209
4271
|
* `size="inherit"` for a link inside copy that sets its own colour and type,
|
|
4210
|
-
* such as a tooltip.
|
|
4272
|
+
* such as a tooltip. Use `subtle` for a quiet link beside controls, such as
|
|
4273
|
+
* "Open full page" in a panel footer.
|
|
4211
4274
|
*
|
|
4212
4275
|
* Renders an underlined `<a>` by default. Pass `asChild` to compose with a
|
|
4213
4276
|
* router link (e.g. Next.js `Link`). When rendering without a visible label,
|
|
@@ -4217,6 +4280,13 @@ export declare type LanguageIconProps = BaseIconProps;
|
|
|
4217
4280
|
* ```tsx
|
|
4218
4281
|
* <Link href="/pricing" variant="brand">See our plans</Link>
|
|
4219
4282
|
* ```
|
|
4283
|
+
*
|
|
4284
|
+
* @example A quiet link with an arrow, level with a 32px control
|
|
4285
|
+
* ```tsx
|
|
4286
|
+
* <Link href="/campaigns/1" variant="subtle" size="14" rightIcon={<ArrowRightIcon />}>
|
|
4287
|
+
* Open full page
|
|
4288
|
+
* </Link>
|
|
4289
|
+
* ```
|
|
4220
4290
|
*/
|
|
4221
4291
|
export declare const Link: React_2.ForwardRefExoticComponent<LinkProps & React_2.RefAttributes<HTMLAnchorElement>>;
|
|
4222
4292
|
|
|
@@ -4258,9 +4328,13 @@ export declare type LinkSize = "16" | "14" | "inherit";
|
|
|
4258
4328
|
/**
|
|
4259
4329
|
* Visual style variant of the link. `inherit` takes the colour of the
|
|
4260
4330
|
* surrounding text, for links inside tooltips, alerts and other copy that sets
|
|
4261
|
-
* its own colour.
|
|
4331
|
+
* its own colour. `subtle` is a quiet "go there" link for card headers, footers
|
|
4332
|
+
* and toolbars: secondary text that turns primary and underlines on hover. With
|
|
4333
|
+
* an icon it is at least 32px tall, so it sits level with a 32px control, and a
|
|
4334
|
+
* `rightIcon` moves 2px towards the destination on hover unless the user asks
|
|
4335
|
+
* for reduced motion.
|
|
4262
4336
|
*/
|
|
4263
|
-
export declare type LinkVariant = "primary" | "brand" | "inherit";
|
|
4337
|
+
export declare type LinkVariant = "primary" | "brand" | "inherit" | "subtle";
|
|
4264
4338
|
|
|
4265
4339
|
/**
|
|
4266
4340
|
* List view icon. Renders at sizes 16, 24, or 32 px.
|
|
@@ -5025,6 +5099,89 @@ export declare const PlusIcon: React_2.ForwardRefExoticComponent<React_2.SVGAttr
|
|
|
5025
5099
|
className?: string;
|
|
5026
5100
|
} & React_2.RefAttributes<SVGSVGElement>>;
|
|
5027
5101
|
|
|
5102
|
+
/**
|
|
5103
|
+
* Root of a popover. Holds the open state shared by its trigger and content.
|
|
5104
|
+
*
|
|
5105
|
+
* @example
|
|
5106
|
+
* ```tsx
|
|
5107
|
+
* <Popover>
|
|
5108
|
+
* <PopoverTrigger asChild><Button>Open</Button></PopoverTrigger>
|
|
5109
|
+
* <PopoverContent aria-label="Details">Content</PopoverContent>
|
|
5110
|
+
* </Popover>
|
|
5111
|
+
* ```
|
|
5112
|
+
*/
|
|
5113
|
+
export declare const Popover: React_2.FC<PopoverPrimitive.PopoverProps>;
|
|
5114
|
+
|
|
5115
|
+
/** Optional element the content positions against instead of the trigger. */
|
|
5116
|
+
export declare const PopoverAnchor: React_2.ForwardRefExoticComponent<PopoverPrimitive.PopoverAnchorProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
5117
|
+
|
|
5118
|
+
/** Props for {@link PopoverAnchor}. */
|
|
5119
|
+
export declare type PopoverAnchorProps = React_2.ComponentPropsWithoutRef<typeof PopoverPrimitive.Anchor>;
|
|
5120
|
+
|
|
5121
|
+
/** Element that closes the popover when activated. Use `asChild` to render your own button. */
|
|
5122
|
+
export declare const PopoverClose: React_2.ForwardRefExoticComponent<PopoverPrimitive.PopoverCloseProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
5123
|
+
|
|
5124
|
+
/** Props for {@link PopoverClose}. */
|
|
5125
|
+
export declare type PopoverCloseProps = React_2.ComponentPropsWithoutRef<typeof PopoverPrimitive.Close>;
|
|
5126
|
+
|
|
5127
|
+
/**
|
|
5128
|
+
* Floating panel rendered in a portal, styled like the {@link DropdownMenuContent} surface.
|
|
5129
|
+
* Focus moves into it on open and returns to the trigger on close. It renders a `role="dialog"`,
|
|
5130
|
+
* so pass `aria-label` or `aria-labelledby` to name it. The content unmounts when closed;
|
|
5131
|
+
* `forceMount` is not supported.
|
|
5132
|
+
*
|
|
5133
|
+
* @example
|
|
5134
|
+
* ```tsx
|
|
5135
|
+
* <PopoverContent align="end" aria-label="Filters">Filters</PopoverContent>
|
|
5136
|
+
* ```
|
|
5137
|
+
*/
|
|
5138
|
+
export declare const PopoverContent: React_2.ForwardRefExoticComponent<PopoverContentProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
5139
|
+
|
|
5140
|
+
/** Own props of {@link PopoverContent}, before the accessible name requirement is applied. */
|
|
5141
|
+
export declare interface PopoverContentBaseProps extends Omit<React_2.ComponentPropsWithoutRef<typeof PopoverPrimitive.Content>, "forceMount"> {
|
|
5142
|
+
/** Alignment of the content against the trigger. @default "start" */
|
|
5143
|
+
align?: PopoverPrimitive.PopoverContentProps["align"];
|
|
5144
|
+
/** Distance in pixels between the trigger and the content. @default 8 */
|
|
5145
|
+
sideOffset?: PopoverPrimitive.PopoverContentProps["sideOffset"];
|
|
5146
|
+
/**
|
|
5147
|
+
* Distance in pixels kept between the content and the viewport edge, as a number or a per-side
|
|
5148
|
+
* object. @default 16
|
|
5149
|
+
*/
|
|
5150
|
+
collisionPadding?: PopoverPrimitive.PopoverContentProps["collisionPadding"];
|
|
5151
|
+
/** Additional CSS classes merged onto the content surface. */
|
|
5152
|
+
className?: string;
|
|
5153
|
+
}
|
|
5154
|
+
|
|
5155
|
+
/** Accessible name for the dialog: at least one of `aria-label` or `aria-labelledby` is required. */
|
|
5156
|
+
export declare type PopoverContentName = {
|
|
5157
|
+
/** Text label naming the dialog. */
|
|
5158
|
+
"aria-label": string;
|
|
5159
|
+
/** Id of an element that names the dialog. */
|
|
5160
|
+
"aria-labelledby"?: string;
|
|
5161
|
+
} | {
|
|
5162
|
+
/** Text label naming the dialog. */
|
|
5163
|
+
"aria-label"?: string;
|
|
5164
|
+
/** Id of an element that names the dialog. */
|
|
5165
|
+
"aria-labelledby": string;
|
|
5166
|
+
};
|
|
5167
|
+
|
|
5168
|
+
/** Props for {@link PopoverContent}. */
|
|
5169
|
+
export declare type PopoverContentProps = PopoverContentBaseProps & PopoverContentName;
|
|
5170
|
+
|
|
5171
|
+
/** Props for {@link Popover}. */
|
|
5172
|
+
export declare type PopoverProps = React_2.ComponentPropsWithoutRef<typeof PopoverPrimitive.Root>;
|
|
5173
|
+
|
|
5174
|
+
/**
|
|
5175
|
+
* Element that toggles the popover. Use `asChild` to render your own button.
|
|
5176
|
+
*
|
|
5177
|
+
* On touch and pen, a press-and-release that moves past a small threshold counts as a drag, and
|
|
5178
|
+
* the synthetic click that follows it is ignored, so scrolling past the trigger does not open it.
|
|
5179
|
+
*/
|
|
5180
|
+
export declare const PopoverTrigger: React_2.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverTriggerProps & React_2.RefAttributes<HTMLButtonElement>, "ref"> & React_2.RefAttributes<HTMLButtonElement>>;
|
|
5181
|
+
|
|
5182
|
+
/** Props for {@link PopoverTrigger}. */
|
|
5183
|
+
export declare type PopoverTriggerProps = React_2.ComponentPropsWithoutRef<typeof PopoverPrimitive.Trigger>;
|
|
5184
|
+
|
|
5028
5185
|
/**
|
|
5029
5186
|
* Privacy icon. Renders at sizes 16, 24, or 32 px with outlined and filled variants.
|
|
5030
5187
|
*
|
|
@@ -5558,6 +5715,21 @@ export declare type SearchIconProps = BaseIconProps;
|
|
|
5558
5715
|
* />
|
|
5559
5716
|
* ```
|
|
5560
5717
|
*
|
|
5718
|
+
* @example A quiet squared control beside buttons of the same height (e.g. a date-range picker)
|
|
5719
|
+
* ```tsx
|
|
5720
|
+
* <SegmentedControl
|
|
5721
|
+
* appearance="squared"
|
|
5722
|
+
* options={[
|
|
5723
|
+
* { label: "7 days", value: "7" },
|
|
5724
|
+
* { label: "30 days", value: "30" },
|
|
5725
|
+
* { label: "90 days", value: "90" },
|
|
5726
|
+
* ]}
|
|
5727
|
+
* value={range}
|
|
5728
|
+
* onChange={setRange}
|
|
5729
|
+
* aria-label="Date range"
|
|
5730
|
+
* />
|
|
5731
|
+
* ```
|
|
5732
|
+
*
|
|
5561
5733
|
* @example A collapsed toggle that shows one switch glyph instead of the selected icon
|
|
5562
5734
|
* ```tsx
|
|
5563
5735
|
* <SegmentedControl
|
|
@@ -5585,13 +5757,16 @@ export declare const SegmentedControl: React_2.ForwardRefExoticComponent<Segment
|
|
|
5585
5757
|
* A selected segment takes the neutral selected pill, except the one marked `ai`, which takes the
|
|
5586
5758
|
* AI fill and gradient stroke. Designed for prominent toggles such as the Home/Agent navigation
|
|
5587
5759
|
* switch.
|
|
5760
|
+
* - `"squared"`: a bordered track with squared corners, where the selected segment is a raised
|
|
5761
|
+
* surface rather than a filled pill and unselected labels are muted. Designed for quiet
|
|
5762
|
+
* in-page controls that sit beside buttons of the same height, such as a date-range picker.
|
|
5588
5763
|
*/
|
|
5589
|
-
export declare type SegmentedControlAppearance = "pill" | "plain" | "brand";
|
|
5764
|
+
export declare type SegmentedControlAppearance = "pill" | "plain" | "brand" | "squared";
|
|
5590
5765
|
|
|
5591
5766
|
/** Describes one selectable segment. */
|
|
5592
5767
|
export declare interface SegmentedControlOption {
|
|
5593
5768
|
/**
|
|
5594
|
-
* Display label for the segment. In `pill`/`plain` appearances, when `icon` is provided the
|
|
5769
|
+
* Display label for the segment. In `pill`/`plain`/`squared` appearances, when `icon` is provided the
|
|
5595
5770
|
* segment renders icon-only and this value becomes its accessible name (applied as `aria-label`)
|
|
5596
5771
|
* instead of visible text. In the `brand` appearance the label is always rendered as visible text
|
|
5597
5772
|
* (alongside the icon when present).
|
|
@@ -5600,7 +5775,7 @@ export declare interface SegmentedControlOption {
|
|
|
5600
5775
|
/** Value identifier returned via `onChange`. */
|
|
5601
5776
|
value: string;
|
|
5602
5777
|
/**
|
|
5603
|
-
* Icon to render for the segment. In `pill`/`plain` appearances the segment renders icon-only and
|
|
5778
|
+
* Icon to render for the segment. In `pill`/`plain`/`squared` appearances the segment renders icon-only and
|
|
5604
5779
|
* `label` becomes required as its accessible name (applied as `aria-label`, no visible text). In
|
|
5605
5780
|
* the `brand` appearance the icon renders alongside the visible `label`. Required for every option
|
|
5606
5781
|
* when `collapsible` is set unless a `collapsedIcon` is given, since the collapsed control
|
|
@@ -5700,7 +5875,7 @@ export declare interface SelectContentProps extends React_2.ComponentPropsWithou
|
|
|
5700
5875
|
/**
|
|
5701
5876
|
* Groups related {@link SelectItem} elements under a {@link SelectLabel}.
|
|
5702
5877
|
*/
|
|
5703
|
-
export declare const SelectGroup: React_2.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
5878
|
+
export declare const SelectGroup: React_2.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectGroupProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
5704
5879
|
|
|
5705
5880
|
/** Props for {@link SelectGroup}. */
|
|
5706
5881
|
export declare type SelectGroupProps = React_2.ComponentPropsWithoutRef<typeof SelectPrimitive.Group>;
|
|
@@ -5709,8 +5884,12 @@ export declare type SelectGroupProps = React_2.ComponentPropsWithoutRef<typeof S
|
|
|
5709
5884
|
* An individual option inside {@link SelectContent}, following the V2 Menu Item spec.
|
|
5710
5885
|
*
|
|
5711
5886
|
* Supports a leading icon or avatar, an optional two-line layout via `description`,
|
|
5712
|
-
* and the standard hover / selected / disabled states. The selected row
|
|
5713
|
-
* with a trailing check
|
|
5887
|
+
* and the standard hover / selected / disabled states. The selected row rests on
|
|
5888
|
+
* `Buttons/Navigation/Hover` with a semibold label and a trailing check; hovering
|
|
5889
|
+
* it shows `Interaction/Hover` like any other row. Under the v2 palette the fill is
|
|
5890
|
+
* inverted, with inverted content, and a highlighted or focused selected row moves to
|
|
5891
|
+
* `Menu Item Selected Hover` so keyboard focus stays visible. Rows do not shrink, so a
|
|
5892
|
+
* two-line row stays whole when the list scrolls.
|
|
5714
5893
|
*
|
|
5715
5894
|
* @example
|
|
5716
5895
|
* ```tsx
|
|
@@ -6495,7 +6674,11 @@ export declare interface TableCardPaginationProps extends Omit<React_2.HTMLAttri
|
|
|
6495
6674
|
}
|
|
6496
6675
|
|
|
6497
6676
|
export declare interface TableCardProps extends React_2.HTMLAttributes<HTMLDivElement> {
|
|
6498
|
-
/**
|
|
6677
|
+
/**
|
|
6678
|
+
* Row density applied to {@link TableCell} descendants: 40px rows for `md`,
|
|
6679
|
+
* `default` and `condensed`, 48px for `comfortable`, 56px for `lg`.
|
|
6680
|
+
* @default "md"
|
|
6681
|
+
*/
|
|
6499
6682
|
size?: TableSize;
|
|
6500
6683
|
}
|
|
6501
6684
|
|
|
@@ -6567,6 +6750,11 @@ export declare interface TableFooterProps extends React_2.HTMLAttributes<HTMLTab
|
|
|
6567
6750
|
*/
|
|
6568
6751
|
export declare const TableHead: React_2.ForwardRefExoticComponent<TableHeadProps & React_2.RefAttributes<HTMLTableCellElement>>;
|
|
6569
6752
|
|
|
6753
|
+
/**
|
|
6754
|
+
* `<thead>` wrapper. Its header cells stay pinned to the top while rows
|
|
6755
|
+
* scroll beneath them. Row header cells in {@link TableBody} scroll with
|
|
6756
|
+
* their rows.
|
|
6757
|
+
*/
|
|
6570
6758
|
export declare const TableHeader: React_2.ForwardRefExoticComponent<TableHeaderProps & React_2.RefAttributes<HTMLTableSectionElement>>;
|
|
6571
6759
|
|
|
6572
6760
|
export declare interface TableHeaderProps extends React_2.HTMLAttributes<HTMLTableSectionElement> {
|
|
@@ -6682,6 +6870,7 @@ export declare interface TableProps extends React_2.TableHTMLAttributes<HTMLTabl
|
|
|
6682
6870
|
/**
|
|
6683
6871
|
* Table row. A body row holding a {@link TableMediaThumbnail} or
|
|
6684
6872
|
* {@link TableMediaTile} grows from 40px to 56px to keep 8px around it.
|
|
6873
|
+
* Set `interactive` on rows that open or expand so they respond to hover.
|
|
6685
6874
|
*/
|
|
6686
6875
|
export declare const TableRow: React_2.ForwardRefExoticComponent<TableRowProps & React_2.RefAttributes<HTMLTableRowElement>>;
|
|
6687
6876
|
|
|
@@ -6695,12 +6884,53 @@ export declare const TableRowButton: React_2.ForwardRefExoticComponent<TableRowB
|
|
|
6695
6884
|
export declare interface TableRowButtonProps extends Omit<ButtonProps, "size"> {
|
|
6696
6885
|
}
|
|
6697
6886
|
|
|
6887
|
+
/**
|
|
6888
|
+
* The link an interactive `TableRow` opens, usually the row's name. It is a real
|
|
6889
|
+
* link, so the keyboard and "open in a new tab" work as on any link, and it is
|
|
6890
|
+
* the row's one tab stop. A click anywhere else on the row, except on another
|
|
6891
|
+
* control, opens it too. A `TableRowLink` portalled out of the row, in a popover
|
|
6892
|
+
* or dialog, is an ordinary link and does not take over the row's click.
|
|
6893
|
+
*
|
|
6894
|
+
* @example
|
|
6895
|
+
* ```tsx
|
|
6896
|
+
* <TableRow interactive>
|
|
6897
|
+
* <TableCell>
|
|
6898
|
+
* <TableRowLink href="/campaigns/summer">Summer launch</TableRowLink>
|
|
6899
|
+
* </TableCell>
|
|
6900
|
+
* <TableCell>1,204 clicks</TableCell>
|
|
6901
|
+
* </TableRow>
|
|
6902
|
+
* ```
|
|
6903
|
+
*/
|
|
6904
|
+
export declare const TableRowLink: React_2.ForwardRefExoticComponent<TableRowLinkProps & React_2.RefAttributes<HTMLAnchorElement>>;
|
|
6905
|
+
|
|
6906
|
+
export declare interface TableRowLinkProps extends React_2.AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
6907
|
+
/**
|
|
6908
|
+
* Merge props onto the child element instead of rendering an `<a>`. Use it
|
|
6909
|
+
* for a router link. The child must render an anchor.
|
|
6910
|
+
* @default false
|
|
6911
|
+
*/
|
|
6912
|
+
asChild?: boolean;
|
|
6913
|
+
}
|
|
6914
|
+
|
|
6698
6915
|
export declare interface TableRowProps extends React_2.HTMLAttributes<HTMLTableRowElement> {
|
|
6916
|
+
/**
|
|
6917
|
+
* Marks a body row that opens or expands into more content. The row shows a
|
|
6918
|
+
* pointer cursor and eases to `background-secondary` while hovered, or while
|
|
6919
|
+
* a control inside it has keyboard focus. The row itself is not focusable, so
|
|
6920
|
+
* its action must also be on a button or link inside it. With a
|
|
6921
|
+
* {@link TableRowLink} inside, a click anywhere on the row that is not on
|
|
6922
|
+
* another control opens that link.
|
|
6923
|
+
* @default false
|
|
6924
|
+
*/
|
|
6925
|
+
interactive?: boolean;
|
|
6699
6926
|
}
|
|
6700
6927
|
|
|
6701
6928
|
/**
|
|
6702
|
-
*
|
|
6703
|
-
*
|
|
6929
|
+
* Scroll container for the table. Wide tables scroll sideways. When its
|
|
6930
|
+
* {@link TableCard} has a bounded height (a flex child of a full-height page,
|
|
6931
|
+
* or a set height), the rows scroll inside the card under a pinned header
|
|
6932
|
+
* and the card's footer stays in view. The area fills the card's height, so
|
|
6933
|
+
* in a card taller than its rows the footer sits at the bottom of the card.
|
|
6704
6934
|
*/
|
|
6705
6935
|
export declare const TableScrollArea: React_2.ForwardRefExoticComponent<TableScrollAreaProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
6706
6936
|
|
|
@@ -6714,7 +6944,8 @@ export declare interface TableScrollAreaProps extends React_2.HTMLAttributes<HTM
|
|
|
6714
6944
|
roundTop?: boolean;
|
|
6715
6945
|
/**
|
|
6716
6946
|
* Shows a slim horizontal scrollbar beneath the table when the content
|
|
6717
|
-
* overflows (Figma `V2 Scroll Bar`)
|
|
6947
|
+
* overflows (Figma `V2 Scroll Bar`), with room reserved for it only while
|
|
6948
|
+
* the table is wider than its card. @default false
|
|
6718
6949
|
*/
|
|
6719
6950
|
showScrollbar?: boolean;
|
|
6720
6951
|
}
|
|
@@ -6722,14 +6953,18 @@ export declare interface TableScrollAreaProps extends React_2.HTMLAttributes<HTM
|
|
|
6722
6953
|
/**
|
|
6723
6954
|
* Row density for body cells.
|
|
6724
6955
|
*
|
|
6725
|
-
* - `"md"` (default) →
|
|
6726
|
-
* - `"condensed"` →
|
|
6727
|
-
* - `"
|
|
6956
|
+
* - `"md"` (default) → 40px rows, Figma `V2 Table Cell` Default.
|
|
6957
|
+
* - `"condensed"` → 40px rows, Figma `V2 Table Cell` Condensed.
|
|
6958
|
+
* - `"comfortable"` → 48px rows, for a 32px avatar with 8px above and below.
|
|
6959
|
+
* - `"lg"` → 56px rows; no longer in Figma, kept for back-compat.
|
|
6960
|
+
*
|
|
6961
|
+
* A row holding a {@link TableMediaThumbnail} (above 32px) or {@link TableMediaTile} is 56px at
|
|
6962
|
+
* any size.
|
|
6728
6963
|
*
|
|
6729
6964
|
* `"default"` is the v2 numeric-token equivalent of `"md"` and is preferred
|
|
6730
6965
|
* for new code.
|
|
6731
6966
|
*/
|
|
6732
|
-
export declare type TableSize = "md" | "lg" | "condensed" | "default";
|
|
6967
|
+
export declare type TableSize = "md" | "lg" | "condensed" | "comfortable" | "default";
|
|
6733
6968
|
|
|
6734
6969
|
/** Current sort direction of a {@link TableSortLabel}. `null` means unsorted. */
|
|
6735
6970
|
export declare type TableSortDirection = "asc" | "desc" | null;
|
|
@@ -6796,7 +7031,8 @@ export declare const TableToolbar: React_2.ForwardRefExoticComponent<TableToolba
|
|
|
6796
7031
|
* Labelled control for {@link TableToolbar}: 12px label followed by a 16px
|
|
6797
7032
|
* icon. Below the `md` breakpoint only the icon shows, and the label stays as
|
|
6798
7033
|
* the accessible name, so a full bar still fits a phone. Works as a plain
|
|
6799
|
-
* button or as a `DropdownMenuTrigger` child
|
|
7034
|
+
* button or as a `DropdownMenuTrigger` or `PopoverTrigger` child, and keeps its
|
|
7035
|
+
* hover colour while that menu or popover is open.
|
|
6800
7036
|
*/
|
|
6801
7037
|
export declare const TableToolbarAction: React_2.ForwardRefExoticComponent<TableToolbarActionProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
6802
7038
|
|
|
@@ -7059,6 +7295,42 @@ export declare const TabsTrigger: React_2.ForwardRefExoticComponent<Omit<TabsPri
|
|
|
7059
7295
|
/** Props for the {@link TabsTrigger} button component. */
|
|
7060
7296
|
export declare type TabsTriggerProps = React_2.ComponentPropsWithoutRef<typeof TabsPrimitive.Trigger>;
|
|
7061
7297
|
|
|
7298
|
+
/**
|
|
7299
|
+
* A small label for something the user applied, such as a fan tag, a list or an active filter.
|
|
7300
|
+
* Status labels belong in {@link Pill} or {@link Badge}.
|
|
7301
|
+
*
|
|
7302
|
+
* Pass `onRemove` to add a × button. The label is plain text, and the × is a real button named by
|
|
7303
|
+
* `removeLabel`, so nothing interactive is nested inside the tag except the ×.
|
|
7304
|
+
*
|
|
7305
|
+
* @example
|
|
7306
|
+
* ```tsx
|
|
7307
|
+
* <Tag
|
|
7308
|
+
* variant="blue"
|
|
7309
|
+
* leadingIcon="🐳"
|
|
7310
|
+
* onRemove={() => removeTag("whale")}
|
|
7311
|
+
* removeLabel={t("tags.remove", { name: "Whale" })}
|
|
7312
|
+
* >
|
|
7313
|
+
* Whale
|
|
7314
|
+
* </Tag>
|
|
7315
|
+
* ```
|
|
7316
|
+
*/
|
|
7317
|
+
export declare const Tag: React_2.ForwardRefExoticComponent<TagProps & React_2.RefAttributes<HTMLSpanElement>>;
|
|
7318
|
+
|
|
7319
|
+
declare interface TagBaseProps extends Omit<React_2.HTMLAttributes<HTMLSpanElement>, "children"> {
|
|
7320
|
+
/** Colour from the V2 Tags palette. @default "gray" */
|
|
7321
|
+
variant?: TagVariant;
|
|
7322
|
+
/** Height in pixels: 16 for dense rows, 20 for panels, pickers and filter tags. @default "20" */
|
|
7323
|
+
size?: TagSize;
|
|
7324
|
+
/**
|
|
7325
|
+
* Emoji (a string) or icon (an element) displayed before the label. Decorative, so it is hidden
|
|
7326
|
+
* from assistive technology. Size an icon yourself: 14px on a 20px tag (`className="size-3.5"`)
|
|
7327
|
+
* and 12px on a 16px tag (`className="size-3"`).
|
|
7328
|
+
*/
|
|
7329
|
+
leadingIcon?: React_2.ReactNode;
|
|
7330
|
+
/** The visible label. */
|
|
7331
|
+
children: React_2.ReactNode;
|
|
7332
|
+
}
|
|
7333
|
+
|
|
7062
7334
|
/**
|
|
7063
7335
|
* Tag icon. Renders at sizes 16, 24, or 32 px with outlined and filled variants.
|
|
7064
7336
|
*
|
|
@@ -7072,6 +7344,43 @@ export declare const TagIcon: React_2.ForwardRefExoticComponent<BaseIconProps &
|
|
|
7072
7344
|
/** Props for {@link TagIcon}. See {@link BaseIconProps} for the shared shape. */
|
|
7073
7345
|
export declare type TagIconProps = BaseIconProps;
|
|
7074
7346
|
|
|
7347
|
+
export declare type TagProps = TagBaseProps & (TagRemovableProps | TagStaticProps);
|
|
7348
|
+
|
|
7349
|
+
declare interface TagRemovableProps {
|
|
7350
|
+
/**
|
|
7351
|
+
* Renders a remove (×) button when set. Receives the click, so a caller can stop it bubbling.
|
|
7352
|
+
* Pass `undefined` to hide the button conditionally while keeping `removeLabel`.
|
|
7353
|
+
*/
|
|
7354
|
+
onRemove?: ((event: React_2.MouseEvent<HTMLButtonElement>) => void) | undefined;
|
|
7355
|
+
/** Accessible name of the remove button, as one translated string such as "Remove Whale". */
|
|
7356
|
+
removeLabel: string;
|
|
7357
|
+
/**
|
|
7358
|
+
* `"always"` keeps the × visible (lists, filter tags). `"hover"` reveals it on hover or
|
|
7359
|
+
* keyboard focus, and keeps it visible on devices that cannot hover.
|
|
7360
|
+
* In `"hover"` mode the tag is narrower at rest and widens when the × appears; its height never changes.
|
|
7361
|
+
* @default "always"
|
|
7362
|
+
*/
|
|
7363
|
+
removeVisibility?: TagRemoveVisibility;
|
|
7364
|
+
}
|
|
7365
|
+
|
|
7366
|
+
/** When the remove button is shown. */
|
|
7367
|
+
export declare type TagRemoveVisibility = "always" | "hover";
|
|
7368
|
+
|
|
7369
|
+
/** Height of the tag in pixels. */
|
|
7370
|
+
export declare type TagSize = "16" | "20";
|
|
7371
|
+
|
|
7372
|
+
declare interface TagStaticProps {
|
|
7373
|
+
/** Leave unset for a tag with no remove button. */
|
|
7374
|
+
onRemove?: undefined;
|
|
7375
|
+
/** Only used with `onRemove`. */
|
|
7376
|
+
removeLabel?: undefined;
|
|
7377
|
+
/** Only used with `onRemove`. */
|
|
7378
|
+
removeVisibility?: undefined;
|
|
7379
|
+
}
|
|
7380
|
+
|
|
7381
|
+
/** Colour of the tag, from the V2 Tags palette. */
|
|
7382
|
+
export declare type TagVariant = "gray" | "blue" | "teal" | "green" | "amber" | "red" | "pink" | "purple";
|
|
7383
|
+
|
|
7075
7384
|
/**
|
|
7076
7385
|
* Task icon. Renders at sizes 16, 24, or 32 px.
|
|
7077
7386
|
*
|
|
@@ -7922,7 +8231,7 @@ export declare const VaultIcon: React_2.ForwardRefExoticComponent<BaseIconProps
|
|
|
7922
8231
|
export declare type VaultIconProps = BaseIconProps;
|
|
7923
8232
|
|
|
7924
8233
|
/**
|
|
7925
|
-
*
|
|
8234
|
+
* Verify icon. Renders at sizes 16, 24, or 32 px with outlined and filled variants.
|
|
7926
8235
|
* Defaults to the filled variant.
|
|
7927
8236
|
*
|
|
7928
8237
|
* @example
|
package/dist/index.mjs
CHANGED
|
@@ -224,6 +224,7 @@ import { WifiOnIcon } from "./components/Icons/WifiOnIcon.mjs";
|
|
|
224
224
|
import { WrenchIcon } from "./components/Icons/WrenchIcon.mjs";
|
|
225
225
|
import { InfoBox, InfoBoxContent, InfoBoxTrigger } from "./components/InfoBox/InfoBox.mjs";
|
|
226
226
|
import { InlineEdit } from "./components/InlineEdit/InlineEdit.mjs";
|
|
227
|
+
import { InlineEmptyState } from "./components/InlineEmptyState/InlineEmptyState.mjs";
|
|
227
228
|
import { Link } from "./components/Link/Link.mjs";
|
|
228
229
|
import { LiveStatus } from "./components/LiveStatus/LiveStatus.mjs";
|
|
229
230
|
import { Loader } from "./components/Loader/Loader.mjs";
|
|
@@ -237,6 +238,7 @@ import { Pagination } from "./components/Pagination/Pagination.mjs";
|
|
|
237
238
|
import { PasswordField } from "./components/PasswordField/PasswordField.mjs";
|
|
238
239
|
import { PhoneField } from "./components/PhoneField/PhoneField.mjs";
|
|
239
240
|
import { Pill } from "./components/Pill/Pill.mjs";
|
|
241
|
+
import { Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverTrigger } from "./components/Popover/Popover.mjs";
|
|
240
242
|
import { ProfileOnlineStatus } from "./components/ProfileOnlineStatus/ProfileOnlineStatus.mjs";
|
|
241
243
|
import { ProfileStatus } from "./components/ProfileStatus/ProfileStatus.mjs";
|
|
242
244
|
import { ProgressBar } from "./components/ProgressBar/ProgressBar.mjs";
|
|
@@ -262,12 +264,14 @@ import { SwitchToggle } from "./components/SwitchToggle/SwitchToggle.mjs";
|
|
|
262
264
|
import { Table, TableBody, TableCard, TableCell, TableCellContent, TableCellGroup, TableFooter, TableHead, TableHeader, TableLineClamp, TableMediaThumbnail, TableMediaTile, TablePillProgressLayout, TableProgressTrack, TableRow, TableRowButton, TableScrollArea, TableSortLabel, TableStackedText, TableStatusDot, TableToolbar, TableToolbarAction, TableToolbarButton, TableToolbarSearch, TableTruncatedText } from "./components/Table/Table.mjs";
|
|
263
265
|
import { TableMobileRow } from "./components/Table/TableMobileRow.mjs";
|
|
264
266
|
import { TableCardPagination } from "./components/Table/TablePagination.mjs";
|
|
267
|
+
import { TableRowLink } from "./components/Table/TableRowLink.mjs";
|
|
265
268
|
import { Tabs } from "./components/Tabs/Tabs.mjs";
|
|
266
269
|
import { TabsContent } from "./components/Tabs/TabsContent.mjs";
|
|
267
270
|
import { TabsList } from "./components/Tabs/TabsList.mjs";
|
|
268
271
|
import { TabsListSkeleton } from "./components/Tabs/TabsListSkeleton.mjs";
|
|
269
272
|
import { TabsOverflow, TabsOverflowItem } from "./components/Tabs/TabsOverflow.mjs";
|
|
270
273
|
import { TabsTrigger } from "./components/Tabs/TabsTrigger.mjs";
|
|
274
|
+
import { Tag } from "./components/Tag/Tag.mjs";
|
|
271
275
|
import { TextArea } from "./components/TextArea/TextArea.mjs";
|
|
272
276
|
import { TextField } from "./components/TextField/TextField.mjs";
|
|
273
277
|
import { Toast, ToastProvider, ToastViewport } from "./components/Toast/Toast.mjs";
|
|
@@ -474,6 +478,7 @@ export {
|
|
|
474
478
|
InfoCircleIcon,
|
|
475
479
|
InfoIcon,
|
|
476
480
|
InlineEdit,
|
|
481
|
+
InlineEmptyState,
|
|
477
482
|
LanguageIcon,
|
|
478
483
|
Link,
|
|
479
484
|
LinkIcon,
|
|
@@ -519,6 +524,11 @@ export {
|
|
|
519
524
|
Play2Icon,
|
|
520
525
|
PlayIcon,
|
|
521
526
|
PlusIcon,
|
|
527
|
+
Popover,
|
|
528
|
+
PopoverAnchor,
|
|
529
|
+
PopoverClose,
|
|
530
|
+
PopoverContent,
|
|
531
|
+
PopoverTrigger,
|
|
522
532
|
PrivacyIcon,
|
|
523
533
|
ProfileOnlineStatus,
|
|
524
534
|
ProfileStatus,
|
|
@@ -588,6 +598,7 @@ export {
|
|
|
588
598
|
TableProgressTrack,
|
|
589
599
|
TableRow,
|
|
590
600
|
TableRowButton,
|
|
601
|
+
TableRowLink,
|
|
591
602
|
TableScrollArea,
|
|
592
603
|
TableSortLabel,
|
|
593
604
|
TableStackedText,
|
|
@@ -604,6 +615,7 @@ export {
|
|
|
604
615
|
TabsOverflow,
|
|
605
616
|
TabsOverflowItem,
|
|
606
617
|
TabsTrigger,
|
|
618
|
+
Tag,
|
|
607
619
|
TagIcon,
|
|
608
620
|
TaskIcon,
|
|
609
621
|
TextArea,
|