@fanvue/ui 3.50.0 → 3.52.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/charts.d.ts +7 -0
- package/dist/cjs/components/Button/Button.cjs +12 -8
- package/dist/cjs/components/Button/Button.cjs.map +1 -1
- package/dist/cjs/components/Chart/ChartCard.cjs +4 -3
- package/dist/cjs/components/Chart/ChartCard.cjs.map +1 -1
- package/dist/cjs/components/Dialog/Dialog.cjs +29 -2
- package/dist/cjs/components/Dialog/Dialog.cjs.map +1 -1
- package/dist/cjs/components/Drawer/Drawer.cjs +72 -17
- package/dist/cjs/components/Drawer/Drawer.cjs.map +1 -1
- package/dist/cjs/components/DropdownMenu/DropdownMenuItem.cjs +26 -7
- package/dist/cjs/components/DropdownMenu/DropdownMenuItem.cjs.map +1 -1
- package/dist/cjs/components/IconButton/IconButton.cjs +11 -2
- package/dist/cjs/components/IconButton/IconButton.cjs.map +1 -1
- package/dist/cjs/components/Icons/DocumentIcon.cjs +74 -0
- package/dist/cjs/components/Icons/DocumentIcon.cjs.map +1 -0
- package/dist/cjs/components/Icons/EpisodesIcon.cjs +65 -0
- package/dist/cjs/components/Icons/EpisodesIcon.cjs.map +1 -0
- package/dist/cjs/components/Icons/ShortsIcon.cjs +74 -0
- package/dist/cjs/components/Icons/ShortsIcon.cjs.map +1 -0
- package/dist/cjs/components/InfoBox/InfoBox.cjs +1 -1
- package/dist/cjs/components/InfoBox/InfoBox.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/Pill/Pill.cjs +1 -1
- package/dist/cjs/components/Pill/Pill.cjs.map +1 -1
- 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/Table/Table.cjs +31 -2
- 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/index.cjs +10 -0
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/components/Button/Button.mjs +12 -8
- package/dist/components/Button/Button.mjs.map +1 -1
- package/dist/components/Chart/ChartCard.mjs +4 -3
- package/dist/components/Chart/ChartCard.mjs.map +1 -1
- package/dist/components/Dialog/Dialog.mjs +29 -2
- package/dist/components/Dialog/Dialog.mjs.map +1 -1
- package/dist/components/Drawer/Drawer.mjs +72 -17
- package/dist/components/Drawer/Drawer.mjs.map +1 -1
- package/dist/components/DropdownMenu/DropdownMenuItem.mjs +26 -7
- package/dist/components/DropdownMenu/DropdownMenuItem.mjs.map +1 -1
- package/dist/components/IconButton/IconButton.mjs +11 -2
- package/dist/components/IconButton/IconButton.mjs.map +1 -1
- package/dist/components/Icons/DocumentIcon.mjs +57 -0
- package/dist/components/Icons/DocumentIcon.mjs.map +1 -0
- package/dist/components/Icons/EpisodesIcon.mjs +48 -0
- package/dist/components/Icons/EpisodesIcon.mjs.map +1 -0
- package/dist/components/Icons/ShortsIcon.mjs +57 -0
- package/dist/components/Icons/ShortsIcon.mjs.map +1 -0
- package/dist/components/InfoBox/InfoBox.mjs +1 -1
- package/dist/components/InfoBox/InfoBox.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/Pill/Pill.mjs +1 -1
- package/dist/components/Pill/Pill.mjs.map +1 -1
- 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/Table/Table.mjs +31 -2
- 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/index.d.ts +204 -22
- package/dist/index.mjs +10 -0
- package/dist/index.mjs.map +1 -1
- package/dist/styles/base.css +157 -4
- package/dist/styles/theme.css +20 -12
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1202,8 +1202,16 @@ export declare type BulbIconProps = BaseIconProps;
|
|
|
1202
1202
|
* A versatile button component with multiple visual variants, sizes, icon
|
|
1203
1203
|
* slots, loading state, and optional pricing display.
|
|
1204
1204
|
*
|
|
1205
|
-
* Pass `negative` when rendering on
|
|
1206
|
-
* treatment for `primary`, `secondary`, `tertiary`,
|
|
1205
|
+
* Pass `negative` when rendering on an inverted surface to opt into the
|
|
1206
|
+
* inverted treatment for `primary`, `secondary`, `tertiary`, `outline` and
|
|
1207
|
+
* `brand` variants.
|
|
1208
|
+
*
|
|
1209
|
+
* The `brand` variant is the Figma "Upsell" button: a green radial fill with a
|
|
1210
|
+
* green glow and a highlight that circles the rim once. With `negative` it takes
|
|
1211
|
+
* the other theme's glow, made for the inverted surface. The highlight holds
|
|
1212
|
+
* still when the user prefers reduced motion. Keep it for upgrade and purchase
|
|
1213
|
+
* prompts. The fill is a gradient, so a `bg-*` class sits under it: recolour it
|
|
1214
|
+
* through `--fv-upsell-end`, or pair the class with `bg-none`.
|
|
1207
1215
|
*
|
|
1208
1216
|
* The `ai` variant ships with the AI sparkle icon baked in (locked at 16px
|
|
1209
1217
|
* regardless of button size); pass `leftIcon` to override the default sparkle.
|
|
@@ -2580,6 +2588,7 @@ export declare const Dialog: React_2.FC<DialogPrimitive.DialogProps>;
|
|
|
2580
2588
|
/**
|
|
2581
2589
|
* Scrollable content area (slot) between the header and footer.
|
|
2582
2590
|
* Grows to fill available space and scrolls when content overflows.
|
|
2591
|
+
* Unless `className` sets horizontal padding, its clip edge sits 4px outside the content so rings on edge controls show.
|
|
2583
2592
|
*/
|
|
2584
2593
|
export declare const DialogBody: React_2.ForwardRefExoticComponent<DialogBodyProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
2585
2594
|
|
|
@@ -2603,6 +2612,7 @@ export declare type DialogCloseProps = React_2.ComponentPropsWithoutRef<typeof D
|
|
|
2603
2612
|
* render a centered floating card instead (used for small confirmation dialogs).
|
|
2604
2613
|
* On larger viewports it renders centered with full border radius.
|
|
2605
2614
|
* `size="full"` skips both and fills the viewport with no chrome.
|
|
2615
|
+
* The panel carries its size as `data-size`, for styling its children.
|
|
2606
2616
|
*
|
|
2607
2617
|
* It animates in and out. While the closing animation plays the panel stays
|
|
2608
2618
|
* mounted but ignores pointer input, so a second click can't act on it.
|
|
@@ -2812,6 +2822,19 @@ export declare interface DividerProps extends React_2.ComponentPropsWithoutRef<t
|
|
|
2812
2822
|
label?: string;
|
|
2813
2823
|
}
|
|
2814
2824
|
|
|
2825
|
+
/**
|
|
2826
|
+
* Document icon. Renders at sizes 16, 24, or 32 px with outlined and filled variants.
|
|
2827
|
+
*
|
|
2828
|
+
* @example
|
|
2829
|
+
* ```tsx
|
|
2830
|
+
* <DocumentIcon size={24} filled />
|
|
2831
|
+
* ```
|
|
2832
|
+
*/
|
|
2833
|
+
export declare const DocumentIcon: React_2.ForwardRefExoticComponent<BaseIconProps & React_2.RefAttributes<SVGSVGElement>>;
|
|
2834
|
+
|
|
2835
|
+
/** Props for {@link DocumentIcon}. See {@link BaseIconProps} for the shared shape. */
|
|
2836
|
+
export declare type DocumentIconProps = BaseIconProps;
|
|
2837
|
+
|
|
2815
2838
|
/**
|
|
2816
2839
|
* Donate icon. Renders at sizes 16, 24, or 32 px with outlined and filled variants.
|
|
2817
2840
|
*
|
|
@@ -2901,19 +2924,26 @@ export declare interface DrawerContentProps extends React_2.ComponentPropsWithou
|
|
|
2901
2924
|
* `side` concept used by Radix Popover/Tooltip and to better convey the
|
|
2902
2925
|
* spatial relationship of the drawer to the viewport.
|
|
2903
2926
|
*
|
|
2927
|
+
* Ignored by `variant="page"`, which always rises from the bottom.
|
|
2928
|
+
*
|
|
2904
2929
|
* @default "right"
|
|
2905
2930
|
*/
|
|
2906
2931
|
position?: DrawerPosition;
|
|
2907
2932
|
/**
|
|
2908
2933
|
* Controls the maximum extent of the drawer panel.
|
|
2909
2934
|
* For left/right drawers this sets `max-width`; for top/bottom it sets `max-height`.
|
|
2935
|
+
* Ignored by a left/right `variant="modal"`, which is always the 440px modal,
|
|
2936
|
+
* and by `variant="page"`, which always runs to the bottom edge.
|
|
2910
2937
|
* @default "sm"
|
|
2911
2938
|
*/
|
|
2912
2939
|
size?: DrawerSize;
|
|
2913
2940
|
/**
|
|
2914
2941
|
* Visual treatment of the panel. Use `"sheet"` (with `position="bottom"`) for
|
|
2915
|
-
* a bottom sheet with the modal surface treatment,
|
|
2916
|
-
* inset menu carrying the dropdown surface
|
|
2942
|
+
* a bottom sheet with the modal surface treatment, `"menu"` for a floating
|
|
2943
|
+
* inset menu carrying the dropdown surface, `"modal"` for the V2 Modal: beside
|
|
2944
|
+
* the page on desktop, from the bottom on mobile, or `"page"` for a detail page
|
|
2945
|
+
* that rises from the bottom over the one behind it.
|
|
2946
|
+
* @default "panel"
|
|
2917
2947
|
*/
|
|
2918
2948
|
variant?: DrawerVariant;
|
|
2919
2949
|
/**
|
|
@@ -2937,7 +2967,11 @@ export declare const DrawerDescription: React_2.ForwardRefExoticComponent<Drawer
|
|
|
2937
2967
|
export declare interface DrawerDescriptionProps extends React_2.ComponentPropsWithoutRef<typeof DialogPrimitive.Description> {
|
|
2938
2968
|
}
|
|
2939
2969
|
|
|
2940
|
-
/**
|
|
2970
|
+
/**
|
|
2971
|
+
* A semantic footer area for the drawer, typically containing action buttons.
|
|
2972
|
+
* Inside a `"modal"` drawer it carries no padding of its own, since the panel pads
|
|
2973
|
+
* its content.
|
|
2974
|
+
*/
|
|
2941
2975
|
export declare const DrawerFooter: React_2.ForwardRefExoticComponent<DrawerFooterProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
2942
2976
|
|
|
2943
2977
|
/** Props for the {@link DrawerFooter} component. */
|
|
@@ -2946,7 +2980,8 @@ export declare interface DrawerFooterProps extends React_2.HTMLAttributes<HTMLDi
|
|
|
2946
2980
|
|
|
2947
2981
|
/**
|
|
2948
2982
|
* A semantic header area for the drawer, typically containing a title and description.
|
|
2949
|
-
* Renders a built-in close button by default.
|
|
2983
|
+
* Renders a built-in close button by default. Inside a `"modal"` drawer it carries
|
|
2984
|
+
* no padding of its own, since the panel pads its content.
|
|
2950
2985
|
*/
|
|
2951
2986
|
export declare const DrawerHeader: React_2.ForwardRefExoticComponent<DrawerHeaderProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
2952
2987
|
|
|
@@ -3029,8 +3064,20 @@ export declare type DrawerTriggerProps = React_2.ComponentPropsWithoutRef<typeof
|
|
|
3029
3064
|
* it: inset from all three sides and rounded on every corner. Shares the modal
|
|
3030
3065
|
* surface with `"sheet"`; only the shape differs. Intended for
|
|
3031
3066
|
* `position="bottom"`.
|
|
3032
|
-
|
|
3033
|
-
|
|
3067
|
+
* - `"modal"` — the V2 Modal: a card floating 8px clear of the viewport edges,
|
|
3068
|
+
* with the modal surface and stroke and a 32px radius, over the heavy overlay.
|
|
3069
|
+
* Beside the page (`position="left"` or `"right"`) it is 440px wide with 24px
|
|
3070
|
+
* padding; from the top or bottom it is the mobile modal, with 16px padding.
|
|
3071
|
+
* - `"page"` — a detail page that rises over the one behind it: the opaque page
|
|
3072
|
+
* background, a 16px top radius, a stroke on the top and sides, and a 16px gap
|
|
3073
|
+
* left above it so the page behind stays in view. It always runs to the bottom
|
|
3074
|
+
* edge, so `size` is ignored. Its rise is slower than its fall, and both are
|
|
3075
|
+
* dropped under reduced motion. It always rises from the bottom, so `position`
|
|
3076
|
+
* is ignored too. It cannot be dragged down to dismiss, and it clips what
|
|
3077
|
+
* overflows it, so give its body a scroll container (`min-h-0 flex-1
|
|
3078
|
+
* overflow-y-auto`). Meant for wide viewports; on a phone, use `"sheet"`.
|
|
3079
|
+
*/
|
|
3080
|
+
export declare type DrawerVariant = "panel" | "sheet" | "menu" | "modal" | "page";
|
|
3034
3081
|
|
|
3035
3082
|
/** Root component that manages open/close state for a dropdown menu. */
|
|
3036
3083
|
export declare function DropdownMenu({ open: openProp, defaultOpen, onOpenChange, variant, children, ...props }: DropdownMenuProps): JSX.Element;
|
|
@@ -3223,6 +3270,15 @@ export declare interface DropdownMenuItemProps extends React_2.ComponentPropsWit
|
|
|
3223
3270
|
trailingIcon?: React_2.ReactNode;
|
|
3224
3271
|
/** Trailing count or number (e.g. an unread total) rendered before {@link DropdownMenuItemProps.trailingIcon}. */
|
|
3225
3272
|
count?: React_2.ReactNode;
|
|
3273
|
+
/**
|
|
3274
|
+
* A small action drawn at the row's end, after everything else — typically a 24px
|
|
3275
|
+
* `Button` rendered `asChild` as a span. The whole row performs the action through
|
|
3276
|
+
* `onSelect`, so pass a visual, never a second interactive control. Its text joins the
|
|
3277
|
+
* row's accessible name, so the label people see is also the one they can speak.
|
|
3278
|
+
* The row does not restyle it: when the row is `disabled`, disable the visual too
|
|
3279
|
+
* (or show its `loading` state) so it does not look live.
|
|
3280
|
+
*/
|
|
3281
|
+
trailingAction?: React_2.ReactNode;
|
|
3226
3282
|
/**
|
|
3227
3283
|
* Optional secondary text rendered on a second line below the label. When
|
|
3228
3284
|
* provided, the row switches to a two-line layout and the leading/trailing
|
|
@@ -3513,6 +3569,19 @@ declare type EmptyStateTitleSize = "xs" | "sm" | "md" | "lg" | "xl";
|
|
|
3513
3569
|
|
|
3514
3570
|
export declare type EmptyStateVariant = "default" | "centered";
|
|
3515
3571
|
|
|
3572
|
+
/**
|
|
3573
|
+
* Episodes icon. Renders at sizes 16, 24, or 32 px with outlined and filled variants.
|
|
3574
|
+
*
|
|
3575
|
+
* @example
|
|
3576
|
+
* ```tsx
|
|
3577
|
+
* <EpisodesIcon size={24} filled />
|
|
3578
|
+
* ```
|
|
3579
|
+
*/
|
|
3580
|
+
export declare const EpisodesIcon: React_2.ForwardRefExoticComponent<BaseIconProps & React_2.RefAttributes<SVGSVGElement>>;
|
|
3581
|
+
|
|
3582
|
+
/** Props for {@link EpisodesIcon}. See {@link BaseIconProps} for the shared shape. */
|
|
3583
|
+
export declare type EpisodesIconProps = BaseIconProps;
|
|
3584
|
+
|
|
3516
3585
|
/** An "×" inside a filled circle icon for error states (20 × 20). */
|
|
3517
3586
|
export declare const ErrorCircleIcon: React_2.ForwardRefExoticComponent<React_2.SVGAttributes<SVGSVGElement> & {
|
|
3518
3587
|
className?: string;
|
|
@@ -3883,7 +3952,7 @@ export declare type HourglassIconProps = BaseIconProps;
|
|
|
3883
3952
|
* icon alone (e.g. close, send). Always pair with an `aria-label` for
|
|
3884
3953
|
* accessibility.
|
|
3885
3954
|
*
|
|
3886
|
-
* Shape is size-driven for the standard variants and `overlay`: the `24` size is
|
|
3955
|
+
* Shape is size-driven for the standard variants, `upsell` and `overlay`: the `24` size is
|
|
3887
3956
|
* squared (`rounded-xs`), every larger size is circular. Bespoke variants (`brand`,
|
|
3888
3957
|
* `contrast`, `messaging`, `navTray`, `tertiaryDestructive`, `stop`,
|
|
3889
3958
|
* `microphone`) stay circular at all sizes. `field` is the exception that is
|
|
@@ -3923,7 +3992,13 @@ export declare type IconButtonSize = "24" | "32" | "40" | "48" | "52" | "72";
|
|
|
3923
3992
|
* `primary`, `secondary`, `tertiary`, `outline`, `error`, `white` and `black`
|
|
3924
3993
|
* use the shared button colour tokens and a size-driven shape (squared at the
|
|
3925
3994
|
* `24` size, circular otherwise). Of these, `primary`, `secondary`, `tertiary`
|
|
3926
|
-
* and `outline` also honour the {@link IconButtonProps.negative} prop
|
|
3995
|
+
* and `outline` also honour the {@link IconButtonProps.negative} prop, as does
|
|
3996
|
+
* `upsell`, which takes the other theme's glow.
|
|
3997
|
+
*
|
|
3998
|
+
* `upsell` is the Figma "Upsell" icon button and matches `Button`'s `brand`
|
|
3999
|
+
* variant: a green radial fill, a green glow and a highlight that circles the
|
|
4000
|
+
* rim once, held still when the user prefers reduced motion. It takes the same
|
|
4001
|
+
* size-driven shape as the standard variants.
|
|
3927
4002
|
*
|
|
3928
4003
|
* `overlay` is a translucent dark fill with a backdrop blur, for buttons that sit
|
|
3929
4004
|
* on photos or video. Its fill and icon look the same in light and dark themes, while
|
|
@@ -3933,7 +4008,7 @@ export declare type IconButtonSize = "24" | "32" | "40" | "48" | "52" | "72";
|
|
|
3933
4008
|
* `brand`, `contrast`, `messaging`, `navTray`, `tertiaryDestructive`, `stop` and
|
|
3934
4009
|
* `microphone` are bespoke variants that stay circular at every size.
|
|
3935
4010
|
*/
|
|
3936
|
-
export declare type IconButtonVariant = "primary" | "secondary" | "tertiary" | "outline" | "error" | "white" | "black" | "brand" | "contrast" | "messaging" | "navTray" | "tertiaryDestructive" | "stop" | "microphone" | "overlay" | "field";
|
|
4011
|
+
export declare type IconButtonVariant = "primary" | "secondary" | "tertiary" | "outline" | "error" | "white" | "black" | "brand" | "upsell" | "contrast" | "messaging" | "navTray" | "tertiaryDestructive" | "stop" | "microphone" | "overlay" | "field";
|
|
3937
4012
|
|
|
3938
4013
|
/** A single drawable path within an icon variant. */
|
|
3939
4014
|
export declare type IconPath = {
|
|
@@ -4127,6 +4202,23 @@ export declare interface InlineEditProps extends Omit<React_2.InputHTMLAttribute
|
|
|
4127
4202
|
/** Height of the inline edit field in pixels. */
|
|
4128
4203
|
export declare type InlineEditSize = "32" | "40";
|
|
4129
4204
|
|
|
4205
|
+
/**
|
|
4206
|
+
* An empty or coming-soon state as one quiet, centred line in an 80px block. Use it inside a
|
|
4207
|
+
* card, table or panel that has nothing to show yet. For a state with a title, artwork or
|
|
4208
|
+
* actions, use {@link EmptyState}.
|
|
4209
|
+
*
|
|
4210
|
+
* @example
|
|
4211
|
+
* ```tsx
|
|
4212
|
+
* <InlineEmptyState>No links in this campaign yet.</InlineEmptyState>
|
|
4213
|
+
* ```
|
|
4214
|
+
*/
|
|
4215
|
+
export declare const InlineEmptyState: React_2.ForwardRefExoticComponent<InlineEmptyStateProps & React_2.RefAttributes<HTMLParagraphElement>>;
|
|
4216
|
+
|
|
4217
|
+
export declare interface InlineEmptyStateProps extends Omit<React_2.HTMLAttributes<HTMLParagraphElement>, "dangerouslySetInnerHTML"> {
|
|
4218
|
+
/** The message. Keep it to one short sentence. */
|
|
4219
|
+
children?: React_2.ReactNode;
|
|
4220
|
+
}
|
|
4221
|
+
|
|
4130
4222
|
/**
|
|
4131
4223
|
* Language icon. Renders at sizes 16, 24, or 32 px with outlined and filled variants.
|
|
4132
4224
|
*
|
|
@@ -4145,7 +4237,8 @@ export declare type LanguageIconProps = BaseIconProps;
|
|
|
4145
4237
|
* using a button. Use `primary` for standard navigation and `brand` for the
|
|
4146
4238
|
* Fanvue green accent on calls to action within content. Use `inherit` with
|
|
4147
4239
|
* `size="inherit"` for a link inside copy that sets its own colour and type,
|
|
4148
|
-
* such as a tooltip.
|
|
4240
|
+
* such as a tooltip. Use `subtle` for a quiet link beside controls, such as
|
|
4241
|
+
* "Open full page" in a panel footer.
|
|
4149
4242
|
*
|
|
4150
4243
|
* Renders an underlined `<a>` by default. Pass `asChild` to compose with a
|
|
4151
4244
|
* router link (e.g. Next.js `Link`). When rendering without a visible label,
|
|
@@ -4155,6 +4248,13 @@ export declare type LanguageIconProps = BaseIconProps;
|
|
|
4155
4248
|
* ```tsx
|
|
4156
4249
|
* <Link href="/pricing" variant="brand">See our plans</Link>
|
|
4157
4250
|
* ```
|
|
4251
|
+
*
|
|
4252
|
+
* @example A quiet link with an arrow, level with a 32px control
|
|
4253
|
+
* ```tsx
|
|
4254
|
+
* <Link href="/campaigns/1" variant="subtle" size="14" rightIcon={<ArrowRightIcon />}>
|
|
4255
|
+
* Open full page
|
|
4256
|
+
* </Link>
|
|
4257
|
+
* ```
|
|
4158
4258
|
*/
|
|
4159
4259
|
export declare const Link: React_2.ForwardRefExoticComponent<LinkProps & React_2.RefAttributes<HTMLAnchorElement>>;
|
|
4160
4260
|
|
|
@@ -4196,9 +4296,13 @@ export declare type LinkSize = "16" | "14" | "inherit";
|
|
|
4196
4296
|
/**
|
|
4197
4297
|
* Visual style variant of the link. `inherit` takes the colour of the
|
|
4198
4298
|
* surrounding text, for links inside tooltips, alerts and other copy that sets
|
|
4199
|
-
* its own colour.
|
|
4299
|
+
* its own colour. `subtle` is a quiet "go there" link for card headers, footers
|
|
4300
|
+
* and toolbars: secondary text that turns primary and underlines on hover. With
|
|
4301
|
+
* an icon it is at least 32px tall, so it sits level with a 32px control, and a
|
|
4302
|
+
* `rightIcon` moves 2px towards the destination on hover unless the user asks
|
|
4303
|
+
* for reduced motion.
|
|
4200
4304
|
*/
|
|
4201
|
-
export declare type LinkVariant = "primary" | "brand" | "inherit";
|
|
4305
|
+
export declare type LinkVariant = "primary" | "brand" | "inherit" | "subtle";
|
|
4202
4306
|
|
|
4203
4307
|
/**
|
|
4204
4308
|
* List view icon. Renders at sizes 16, 24, or 32 px.
|
|
@@ -5496,6 +5600,21 @@ export declare type SearchIconProps = BaseIconProps;
|
|
|
5496
5600
|
* />
|
|
5497
5601
|
* ```
|
|
5498
5602
|
*
|
|
5603
|
+
* @example A quiet squared control beside buttons of the same height (e.g. a date-range picker)
|
|
5604
|
+
* ```tsx
|
|
5605
|
+
* <SegmentedControl
|
|
5606
|
+
* appearance="squared"
|
|
5607
|
+
* options={[
|
|
5608
|
+
* { label: "7 days", value: "7" },
|
|
5609
|
+
* { label: "30 days", value: "30" },
|
|
5610
|
+
* { label: "90 days", value: "90" },
|
|
5611
|
+
* ]}
|
|
5612
|
+
* value={range}
|
|
5613
|
+
* onChange={setRange}
|
|
5614
|
+
* aria-label="Date range"
|
|
5615
|
+
* />
|
|
5616
|
+
* ```
|
|
5617
|
+
*
|
|
5499
5618
|
* @example A collapsed toggle that shows one switch glyph instead of the selected icon
|
|
5500
5619
|
* ```tsx
|
|
5501
5620
|
* <SegmentedControl
|
|
@@ -5523,13 +5642,16 @@ export declare const SegmentedControl: React_2.ForwardRefExoticComponent<Segment
|
|
|
5523
5642
|
* A selected segment takes the neutral selected pill, except the one marked `ai`, which takes the
|
|
5524
5643
|
* AI fill and gradient stroke. Designed for prominent toggles such as the Home/Agent navigation
|
|
5525
5644
|
* switch.
|
|
5645
|
+
* - `"squared"`: a bordered track with squared corners, where the selected segment is a raised
|
|
5646
|
+
* surface rather than a filled pill and unselected labels are muted. Designed for quiet
|
|
5647
|
+
* in-page controls that sit beside buttons of the same height, such as a date-range picker.
|
|
5526
5648
|
*/
|
|
5527
|
-
export declare type SegmentedControlAppearance = "pill" | "plain" | "brand";
|
|
5649
|
+
export declare type SegmentedControlAppearance = "pill" | "plain" | "brand" | "squared";
|
|
5528
5650
|
|
|
5529
5651
|
/** Describes one selectable segment. */
|
|
5530
5652
|
export declare interface SegmentedControlOption {
|
|
5531
5653
|
/**
|
|
5532
|
-
* Display label for the segment. In `pill`/`plain` appearances, when `icon` is provided the
|
|
5654
|
+
* Display label for the segment. In `pill`/`plain`/`squared` appearances, when `icon` is provided the
|
|
5533
5655
|
* segment renders icon-only and this value becomes its accessible name (applied as `aria-label`)
|
|
5534
5656
|
* instead of visible text. In the `brand` appearance the label is always rendered as visible text
|
|
5535
5657
|
* (alongside the icon when present).
|
|
@@ -5538,7 +5660,7 @@ export declare interface SegmentedControlOption {
|
|
|
5538
5660
|
/** Value identifier returned via `onChange`. */
|
|
5539
5661
|
value: string;
|
|
5540
5662
|
/**
|
|
5541
|
-
* Icon to render for the segment. In `pill`/`plain` appearances the segment renders icon-only and
|
|
5663
|
+
* Icon to render for the segment. In `pill`/`plain`/`squared` appearances the segment renders icon-only and
|
|
5542
5664
|
* `label` becomes required as its accessible name (applied as `aria-label`, no visible text). In
|
|
5543
5665
|
* the `brand` appearance the icon renders alongside the visible `label`. Required for every option
|
|
5544
5666
|
* when `collapsible` is set unless a `collapsedIcon` is given, since the collapsed control
|
|
@@ -5772,6 +5894,19 @@ export declare const ShareIcon: React_2.ForwardRefExoticComponent<BaseIconProps
|
|
|
5772
5894
|
/** Props for {@link ShareIcon}. See {@link BaseIconProps} for the shared shape. */
|
|
5773
5895
|
export declare type ShareIconProps = BaseIconProps;
|
|
5774
5896
|
|
|
5897
|
+
/**
|
|
5898
|
+
* Shorts icon. Renders at sizes 16, 24, or 32 px with outlined and filled variants.
|
|
5899
|
+
*
|
|
5900
|
+
* @example
|
|
5901
|
+
* ```tsx
|
|
5902
|
+
* <ShortsIcon size={24} filled />
|
|
5903
|
+
* ```
|
|
5904
|
+
*/
|
|
5905
|
+
export declare const ShortsIcon: React_2.ForwardRefExoticComponent<BaseIconProps & React_2.RefAttributes<SVGSVGElement>>;
|
|
5906
|
+
|
|
5907
|
+
/** Props for {@link ShortsIcon}. See {@link BaseIconProps} for the shared shape. */
|
|
5908
|
+
export declare type ShortsIconProps = BaseIconProps;
|
|
5909
|
+
|
|
5775
5910
|
/**
|
|
5776
5911
|
* A placeholder preview of content before data is loaded, reducing perceived
|
|
5777
5912
|
* load time. Mirrors common MUI Skeleton props for easy migration.
|
|
@@ -6420,7 +6555,11 @@ export declare interface TableCardPaginationProps extends Omit<React_2.HTMLAttri
|
|
|
6420
6555
|
}
|
|
6421
6556
|
|
|
6422
6557
|
export declare interface TableCardProps extends React_2.HTMLAttributes<HTMLDivElement> {
|
|
6423
|
-
/**
|
|
6558
|
+
/**
|
|
6559
|
+
* Row density applied to {@link TableCell} descendants: 40px rows for `md`,
|
|
6560
|
+
* `default` and `condensed`, 48px for `comfortable`, 56px for `lg`.
|
|
6561
|
+
* @default "md"
|
|
6562
|
+
*/
|
|
6424
6563
|
size?: TableSize;
|
|
6425
6564
|
}
|
|
6426
6565
|
|
|
@@ -6607,6 +6746,7 @@ export declare interface TableProps extends React_2.TableHTMLAttributes<HTMLTabl
|
|
|
6607
6746
|
/**
|
|
6608
6747
|
* Table row. A body row holding a {@link TableMediaThumbnail} or
|
|
6609
6748
|
* {@link TableMediaTile} grows from 40px to 56px to keep 8px around it.
|
|
6749
|
+
* Set `interactive` on rows that open or expand so they respond to hover.
|
|
6610
6750
|
*/
|
|
6611
6751
|
export declare const TableRow: React_2.ForwardRefExoticComponent<TableRowProps & React_2.RefAttributes<HTMLTableRowElement>>;
|
|
6612
6752
|
|
|
@@ -6620,7 +6760,45 @@ export declare const TableRowButton: React_2.ForwardRefExoticComponent<TableRowB
|
|
|
6620
6760
|
export declare interface TableRowButtonProps extends Omit<ButtonProps, "size"> {
|
|
6621
6761
|
}
|
|
6622
6762
|
|
|
6763
|
+
/**
|
|
6764
|
+
* The link an interactive `TableRow` opens, usually the row's name. It is a real
|
|
6765
|
+
* link, so the keyboard and "open in a new tab" work as on any link, and it is
|
|
6766
|
+
* the row's one tab stop. A click anywhere else on the row, except on another
|
|
6767
|
+
* control, opens it too. A `TableRowLink` portalled out of the row, in a popover
|
|
6768
|
+
* or dialog, is an ordinary link and does not take over the row's click.
|
|
6769
|
+
*
|
|
6770
|
+
* @example
|
|
6771
|
+
* ```tsx
|
|
6772
|
+
* <TableRow interactive>
|
|
6773
|
+
* <TableCell>
|
|
6774
|
+
* <TableRowLink href="/campaigns/summer">Summer launch</TableRowLink>
|
|
6775
|
+
* </TableCell>
|
|
6776
|
+
* <TableCell>1,204 clicks</TableCell>
|
|
6777
|
+
* </TableRow>
|
|
6778
|
+
* ```
|
|
6779
|
+
*/
|
|
6780
|
+
export declare const TableRowLink: React_2.ForwardRefExoticComponent<TableRowLinkProps & React_2.RefAttributes<HTMLAnchorElement>>;
|
|
6781
|
+
|
|
6782
|
+
export declare interface TableRowLinkProps extends React_2.AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
6783
|
+
/**
|
|
6784
|
+
* Merge props onto the child element instead of rendering an `<a>`. Use it
|
|
6785
|
+
* for a router link. The child must render an anchor.
|
|
6786
|
+
* @default false
|
|
6787
|
+
*/
|
|
6788
|
+
asChild?: boolean;
|
|
6789
|
+
}
|
|
6790
|
+
|
|
6623
6791
|
export declare interface TableRowProps extends React_2.HTMLAttributes<HTMLTableRowElement> {
|
|
6792
|
+
/**
|
|
6793
|
+
* Marks a body row that opens or expands into more content. The row shows a
|
|
6794
|
+
* pointer cursor and eases to `background-secondary` while hovered, or while
|
|
6795
|
+
* a control inside it has keyboard focus. The row itself is not focusable, so
|
|
6796
|
+
* its action must also be on a button or link inside it. With a
|
|
6797
|
+
* {@link TableRowLink} inside, a click anywhere on the row that is not on
|
|
6798
|
+
* another control opens that link.
|
|
6799
|
+
* @default false
|
|
6800
|
+
*/
|
|
6801
|
+
interactive?: boolean;
|
|
6624
6802
|
}
|
|
6625
6803
|
|
|
6626
6804
|
/**
|
|
@@ -6647,14 +6825,18 @@ export declare interface TableScrollAreaProps extends React_2.HTMLAttributes<HTM
|
|
|
6647
6825
|
/**
|
|
6648
6826
|
* Row density for body cells.
|
|
6649
6827
|
*
|
|
6650
|
-
* - `"md"` (default) →
|
|
6651
|
-
* - `"condensed"` →
|
|
6652
|
-
* - `"
|
|
6828
|
+
* - `"md"` (default) → 40px rows, Figma `V2 Table Cell` Default.
|
|
6829
|
+
* - `"condensed"` → 40px rows, Figma `V2 Table Cell` Condensed.
|
|
6830
|
+
* - `"comfortable"` → 48px rows, for a 32px avatar with 8px above and below.
|
|
6831
|
+
* - `"lg"` → 56px rows; no longer in Figma, kept for back-compat.
|
|
6832
|
+
*
|
|
6833
|
+
* A row holding a {@link TableMediaThumbnail} (above 32px) or {@link TableMediaTile} is 56px at
|
|
6834
|
+
* any size.
|
|
6653
6835
|
*
|
|
6654
6836
|
* `"default"` is the v2 numeric-token equivalent of `"md"` and is preferred
|
|
6655
6837
|
* for new code.
|
|
6656
6838
|
*/
|
|
6657
|
-
export declare type TableSize = "md" | "lg" | "condensed" | "default";
|
|
6839
|
+
export declare type TableSize = "md" | "lg" | "condensed" | "comfortable" | "default";
|
|
6658
6840
|
|
|
6659
6841
|
/** Current sort direction of a {@link TableSortLabel}. `null` means unsorted. */
|
|
6660
6842
|
export declare type TableSortDirection = "asc" | "desc" | null;
|
package/dist/index.mjs
CHANGED
|
@@ -95,11 +95,13 @@ import { DenseGridViewIcon } from "./components/Icons/DenseGridViewIcon.mjs";
|
|
|
95
95
|
import { DiamondIcon } from "./components/Icons/DiamondIcon.mjs";
|
|
96
96
|
import { DiscordIcon } from "./components/Icons/DiscordIcon.mjs";
|
|
97
97
|
import { DiscountIcon } from "./components/Icons/DiscountIcon.mjs";
|
|
98
|
+
import { DocumentIcon } from "./components/Icons/DocumentIcon.mjs";
|
|
98
99
|
import { DonateIcon } from "./components/Icons/DonateIcon.mjs";
|
|
99
100
|
import { DoubleTickIcon } from "./components/Icons/DoubleTickIcon.mjs";
|
|
100
101
|
import { DownloadIcon } from "./components/Icons/DownloadIcon.mjs";
|
|
101
102
|
import { EditIcon } from "./components/Icons/EditIcon.mjs";
|
|
102
103
|
import { EmojiIcon } from "./components/Icons/EmojiIcon.mjs";
|
|
104
|
+
import { EpisodesIcon } from "./components/Icons/EpisodesIcon.mjs";
|
|
103
105
|
import { ErrorCircleIcon } from "./components/Icons/ErrorCircleIcon.mjs";
|
|
104
106
|
import { ErrorIcon } from "./components/Icons/ErrorIcon.mjs";
|
|
105
107
|
import { ExclamationMarkIcon } from "./components/Icons/ExclamationMarkIcon.mjs";
|
|
@@ -176,6 +178,7 @@ import { SearchIcon } from "./components/Icons/SearchIcon.mjs";
|
|
|
176
178
|
import { SendIcon } from "./components/Icons/SendIcon.mjs";
|
|
177
179
|
import { SettingsIcon } from "./components/Icons/SettingsIcon.mjs";
|
|
178
180
|
import { ShareIcon } from "./components/Icons/ShareIcon.mjs";
|
|
181
|
+
import { ShortsIcon } from "./components/Icons/ShortsIcon.mjs";
|
|
179
182
|
import { SoundIcon } from "./components/Icons/SoundIcon.mjs";
|
|
180
183
|
import { SpinnerIcon } from "./components/Icons/SpinnerIcon.mjs";
|
|
181
184
|
import { StarIcon } from "./components/Icons/StarIcon.mjs";
|
|
@@ -221,6 +224,7 @@ import { WifiOnIcon } from "./components/Icons/WifiOnIcon.mjs";
|
|
|
221
224
|
import { WrenchIcon } from "./components/Icons/WrenchIcon.mjs";
|
|
222
225
|
import { InfoBox, InfoBoxContent, InfoBoxTrigger } from "./components/InfoBox/InfoBox.mjs";
|
|
223
226
|
import { InlineEdit } from "./components/InlineEdit/InlineEdit.mjs";
|
|
227
|
+
import { InlineEmptyState } from "./components/InlineEmptyState/InlineEmptyState.mjs";
|
|
224
228
|
import { Link } from "./components/Link/Link.mjs";
|
|
225
229
|
import { LiveStatus } from "./components/LiveStatus/LiveStatus.mjs";
|
|
226
230
|
import { Loader } from "./components/Loader/Loader.mjs";
|
|
@@ -259,6 +263,7 @@ import { SwitchToggle } from "./components/SwitchToggle/SwitchToggle.mjs";
|
|
|
259
263
|
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";
|
|
260
264
|
import { TableMobileRow } from "./components/Table/TableMobileRow.mjs";
|
|
261
265
|
import { TableCardPagination } from "./components/Table/TablePagination.mjs";
|
|
266
|
+
import { TableRowLink } from "./components/Table/TableRowLink.mjs";
|
|
262
267
|
import { Tabs } from "./components/Tabs/Tabs.mjs";
|
|
263
268
|
import { TabsContent } from "./components/Tabs/TabsContent.mjs";
|
|
264
269
|
import { TabsList } from "./components/Tabs/TabsList.mjs";
|
|
@@ -403,6 +408,7 @@ export {
|
|
|
403
408
|
DiscordIcon,
|
|
404
409
|
DiscountIcon,
|
|
405
410
|
Divider,
|
|
411
|
+
DocumentIcon,
|
|
406
412
|
DonateIcon,
|
|
407
413
|
DoubleTickIcon,
|
|
408
414
|
DownloadIcon,
|
|
@@ -431,6 +437,7 @@ export {
|
|
|
431
437
|
EditIcon,
|
|
432
438
|
EmojiIcon,
|
|
433
439
|
EmptyState,
|
|
440
|
+
EpisodesIcon,
|
|
434
441
|
ErrorCircleIcon,
|
|
435
442
|
ErrorIcon,
|
|
436
443
|
ExclamationMarkIcon,
|
|
@@ -469,6 +476,7 @@ export {
|
|
|
469
476
|
InfoCircleIcon,
|
|
470
477
|
InfoIcon,
|
|
471
478
|
InlineEdit,
|
|
479
|
+
InlineEmptyState,
|
|
472
480
|
LanguageIcon,
|
|
473
481
|
Link,
|
|
474
482
|
LinkIcon,
|
|
@@ -544,6 +552,7 @@ export {
|
|
|
544
552
|
SendIcon,
|
|
545
553
|
SettingsIcon,
|
|
546
554
|
ShareIcon,
|
|
555
|
+
ShortsIcon,
|
|
547
556
|
Skeleton,
|
|
548
557
|
Slider,
|
|
549
558
|
Slot,
|
|
@@ -582,6 +591,7 @@ export {
|
|
|
582
591
|
TableProgressTrack,
|
|
583
592
|
TableRow,
|
|
584
593
|
TableRowButton,
|
|
594
|
+
TableRowLink,
|
|
585
595
|
TableScrollArea,
|
|
586
596
|
TableSortLabel,
|
|
587
597
|
TableStackedText,
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|