@fanvue/ui 3.49.0 → 3.51.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.
Files changed (91) hide show
  1. package/README.md +1 -1
  2. package/dist/animated-icons.d.ts +4 -1
  3. package/dist/charts.d.ts +18 -13
  4. package/dist/cjs/components/Alert/Alert.cjs +45 -36
  5. package/dist/cjs/components/Alert/Alert.cjs.map +1 -1
  6. package/dist/cjs/components/Autocomplete/Autocomplete.cjs +1 -1
  7. package/dist/cjs/components/Autocomplete/Autocomplete.cjs.map +1 -1
  8. package/dist/cjs/components/Autocomplete/AutocompleteDropdownContent.cjs +1 -1
  9. package/dist/cjs/components/Autocomplete/AutocompleteDropdownContent.cjs.map +1 -1
  10. package/dist/cjs/components/Button/Button.cjs +13 -9
  11. package/dist/cjs/components/Button/Button.cjs.map +1 -1
  12. package/dist/cjs/components/Chart/ChartCard.cjs +4 -3
  13. package/dist/cjs/components/Chart/ChartCard.cjs.map +1 -1
  14. package/dist/cjs/components/Chart/ChartGrid.cjs +19 -10
  15. package/dist/cjs/components/Chart/ChartGrid.cjs.map +1 -1
  16. package/dist/cjs/components/Dialog/Dialog.cjs +57 -24
  17. package/dist/cjs/components/Dialog/Dialog.cjs.map +1 -1
  18. package/dist/cjs/components/Drawer/Drawer.cjs +61 -14
  19. package/dist/cjs/components/Drawer/Drawer.cjs.map +1 -1
  20. package/dist/cjs/components/DropdownMenu/DropdownMenuItem.cjs +26 -7
  21. package/dist/cjs/components/DropdownMenu/DropdownMenuItem.cjs.map +1 -1
  22. package/dist/cjs/components/IconButton/IconButton.cjs +17 -3
  23. package/dist/cjs/components/IconButton/IconButton.cjs.map +1 -1
  24. package/dist/cjs/components/Icons/BaseIcon.cjs +3 -2
  25. package/dist/cjs/components/Icons/BaseIcon.cjs.map +1 -1
  26. package/dist/cjs/components/Icons/DocumentIcon.cjs +74 -0
  27. package/dist/cjs/components/Icons/DocumentIcon.cjs.map +1 -0
  28. package/dist/cjs/components/Icons/EpisodesIcon.cjs +65 -0
  29. package/dist/cjs/components/Icons/EpisodesIcon.cjs.map +1 -0
  30. package/dist/cjs/components/Icons/ShortsIcon.cjs +74 -0
  31. package/dist/cjs/components/Icons/ShortsIcon.cjs.map +1 -0
  32. package/dist/cjs/components/Icons/SpinnerIcon.cjs +4 -2
  33. package/dist/cjs/components/Icons/SpinnerIcon.cjs.map +1 -1
  34. package/dist/cjs/components/Icons/iconSpinClass.cjs +6 -0
  35. package/dist/cjs/components/Icons/iconSpinClass.cjs.map +1 -0
  36. package/dist/cjs/components/InfoBox/InfoBox.cjs +1 -1
  37. package/dist/cjs/components/InfoBox/InfoBox.cjs.map +1 -1
  38. package/dist/cjs/components/Loader/Loader.cjs +1 -1
  39. package/dist/cjs/components/Loader/Loader.cjs.map +1 -1
  40. package/dist/cjs/components/Pill/Pill.cjs +1 -1
  41. package/dist/cjs/components/Pill/Pill.cjs.map +1 -1
  42. package/dist/cjs/components/Skeleton/Skeleton.cjs +17 -1
  43. package/dist/cjs/components/Skeleton/Skeleton.cjs.map +1 -1
  44. package/dist/cjs/index.cjs +6 -0
  45. package/dist/cjs/index.cjs.map +1 -1
  46. package/dist/components/Alert/Alert.mjs +45 -36
  47. package/dist/components/Alert/Alert.mjs.map +1 -1
  48. package/dist/components/Autocomplete/Autocomplete.mjs +1 -1
  49. package/dist/components/Autocomplete/Autocomplete.mjs.map +1 -1
  50. package/dist/components/Autocomplete/AutocompleteDropdownContent.mjs +1 -1
  51. package/dist/components/Autocomplete/AutocompleteDropdownContent.mjs.map +1 -1
  52. package/dist/components/Button/Button.mjs +13 -9
  53. package/dist/components/Button/Button.mjs.map +1 -1
  54. package/dist/components/Chart/ChartCard.mjs +4 -3
  55. package/dist/components/Chart/ChartCard.mjs.map +1 -1
  56. package/dist/components/Chart/ChartGrid.mjs +20 -11
  57. package/dist/components/Chart/ChartGrid.mjs.map +1 -1
  58. package/dist/components/Dialog/Dialog.mjs +57 -24
  59. package/dist/components/Dialog/Dialog.mjs.map +1 -1
  60. package/dist/components/Drawer/Drawer.mjs +61 -14
  61. package/dist/components/Drawer/Drawer.mjs.map +1 -1
  62. package/dist/components/DropdownMenu/DropdownMenuItem.mjs +26 -7
  63. package/dist/components/DropdownMenu/DropdownMenuItem.mjs.map +1 -1
  64. package/dist/components/IconButton/IconButton.mjs +17 -3
  65. package/dist/components/IconButton/IconButton.mjs.map +1 -1
  66. package/dist/components/Icons/BaseIcon.mjs +3 -2
  67. package/dist/components/Icons/BaseIcon.mjs.map +1 -1
  68. package/dist/components/Icons/DocumentIcon.mjs +57 -0
  69. package/dist/components/Icons/DocumentIcon.mjs.map +1 -0
  70. package/dist/components/Icons/EpisodesIcon.mjs +48 -0
  71. package/dist/components/Icons/EpisodesIcon.mjs.map +1 -0
  72. package/dist/components/Icons/ShortsIcon.mjs +57 -0
  73. package/dist/components/Icons/ShortsIcon.mjs.map +1 -0
  74. package/dist/components/Icons/SpinnerIcon.mjs +4 -2
  75. package/dist/components/Icons/SpinnerIcon.mjs.map +1 -1
  76. package/dist/components/Icons/iconSpinClass.mjs +6 -0
  77. package/dist/components/Icons/iconSpinClass.mjs.map +1 -0
  78. package/dist/components/InfoBox/InfoBox.mjs +1 -1
  79. package/dist/components/InfoBox/InfoBox.mjs.map +1 -1
  80. package/dist/components/Loader/Loader.mjs +1 -1
  81. package/dist/components/Loader/Loader.mjs.map +1 -1
  82. package/dist/components/Pill/Pill.mjs +1 -1
  83. package/dist/components/Pill/Pill.mjs.map +1 -1
  84. package/dist/components/Skeleton/Skeleton.mjs +17 -1
  85. package/dist/components/Skeleton/Skeleton.mjs.map +1 -1
  86. package/dist/index.d.ts +140 -17
  87. package/dist/index.mjs +6 -0
  88. package/dist/index.mjs.map +1 -1
  89. package/dist/styles/base.css +157 -4
  90. package/dist/styles/theme.css +20 -12
  91. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -1021,6 +1021,11 @@ export declare interface BaseIconProps extends Omit<React_2.SVGAttributes<SVGSVG
1021
1021
  size?: IconSize;
1022
1022
  /** Render the filled variant when available; falls back to outlined. @default false */
1023
1023
  filled?: boolean;
1024
+ /**
1025
+ * Rotate the icon continuously, for loading and busy states. Under
1026
+ * `prefers-reduced-motion` it pulses in place instead. @default false
1027
+ */
1028
+ spin?: boolean;
1024
1029
  }
1025
1030
 
1026
1031
  /**
@@ -1197,8 +1202,16 @@ export declare type BulbIconProps = BaseIconProps;
1197
1202
  * A versatile button component with multiple visual variants, sizes, icon
1198
1203
  * slots, loading state, and optional pricing display.
1199
1204
  *
1200
- * Pass `negative` when rendering on a dark surface to opt into the inverted
1201
- * treatment for `primary`, `secondary`, `tertiary`, and `outline` variants.
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`.
1202
1215
  *
1203
1216
  * The `ai` variant ships with the AI sparkle icon baked in (locked at 16px
1204
1217
  * regardless of button size); pass `leftIcon` to override the default sparkle.
@@ -2575,6 +2588,7 @@ export declare const Dialog: React_2.FC<DialogPrimitive.DialogProps>;
2575
2588
  /**
2576
2589
  * Scrollable content area (slot) between the header and footer.
2577
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.
2578
2592
  */
2579
2593
  export declare const DialogBody: React_2.ForwardRefExoticComponent<DialogBodyProps & React_2.RefAttributes<HTMLDivElement>>;
2580
2594
 
@@ -2597,6 +2611,8 @@ export declare type DialogCloseProps = React_2.ComponentPropsWithoutRef<typeof D
2597
2611
  * with top-only border radius by default; pass `mobilePresentation="card"` to
2598
2612
  * render a centered floating card instead (used for small confirmation dialogs).
2599
2613
  * On larger viewports it renders centered with full border radius.
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.
2600
2616
  *
2601
2617
  * It animates in and out. While the closing animation plays the panel stays
2602
2618
  * mounted but ignores pointer input, so a second click can't act on it.
@@ -2626,14 +2642,19 @@ export declare const DialogContent: React_2.ForwardRefExoticComponent<DialogCont
2626
2642
 
2627
2643
  export declare interface DialogContentProps extends React_2.ComponentPropsWithoutRef<typeof DialogPrimitive.Content> {
2628
2644
  /**
2629
- * Width preset for the dialog.
2645
+ * Size preset for the dialog.
2630
2646
  * - `"sm"` — 400px max-width (confirmations, simple forms)
2631
2647
  * - `"md"` — 440px max-width (default, standard dialogs)
2632
2648
  * - `"lg"` — 600px max-width (complex content, tables)
2649
+ * - `"full"` — edge to edge with no border, radius, padding or pull handle, on the
2650
+ * theme's `bg-background-primary` surface, for media viewers. A viewer that wants a
2651
+ * black stage passes its own surface through `className`. Its height follows
2652
+ * `--visual-viewport-h` when the page sets it (to track the on-screen keyboard)
2653
+ * and falls back to `100dvh`.
2633
2654
  *
2634
2655
  * @default "md"
2635
2656
  */
2636
- size?: "sm" | "md" | "lg";
2657
+ size?: DialogContentSize;
2637
2658
  /** When true, renders overlay automatically. @default true */
2638
2659
  overlay?: boolean;
2639
2660
  /**
@@ -2657,6 +2678,9 @@ export declare interface DialogContentProps extends React_2.ComponentPropsWithou
2657
2678
  overlayProps?: DialogOverlayProps;
2658
2679
  }
2659
2680
 
2681
+ /** Size preset of {@link DialogContent}. */
2682
+ export declare type DialogContentSize = "sm" | "md" | "lg" | "full";
2683
+
2660
2684
  /** Accessible description for the dialog. Rendered as secondary text. */
2661
2685
  export declare const DialogDescription: React_2.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React_2.RefAttributes<HTMLParagraphElement>, "ref"> & React_2.RefAttributes<HTMLParagraphElement>>;
2662
2686
 
@@ -2798,6 +2822,19 @@ export declare interface DividerProps extends React_2.ComponentPropsWithoutRef<t
2798
2822
  label?: string;
2799
2823
  }
2800
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
+
2801
2838
  /**
2802
2839
  * Donate icon. Renders at sizes 16, 24, or 32 px with outlined and filled variants.
2803
2840
  *
@@ -2893,13 +2930,15 @@ export declare interface DrawerContentProps extends React_2.ComponentPropsWithou
2893
2930
  /**
2894
2931
  * Controls the maximum extent of the drawer panel.
2895
2932
  * 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.
2896
2934
  * @default "sm"
2897
2935
  */
2898
2936
  size?: DrawerSize;
2899
2937
  /**
2900
2938
  * Visual treatment of the panel. Use `"sheet"` (with `position="bottom"`) for
2901
- * a bottom sheet with the modal surface treatment, or `"menu"` for a floating
2902
- * inset menu carrying the dropdown surface. @default "panel"
2939
+ * a bottom sheet with the modal surface treatment, `"menu"` for a floating
2940
+ * inset menu carrying the dropdown surface, or `"modal"` for the V2 Modal: beside
2941
+ * the page on desktop, from the bottom on mobile. @default "panel"
2903
2942
  */
2904
2943
  variant?: DrawerVariant;
2905
2944
  /**
@@ -2923,7 +2962,11 @@ export declare const DrawerDescription: React_2.ForwardRefExoticComponent<Drawer
2923
2962
  export declare interface DrawerDescriptionProps extends React_2.ComponentPropsWithoutRef<typeof DialogPrimitive.Description> {
2924
2963
  }
2925
2964
 
2926
- /** A semantic footer area for the drawer, typically containing action buttons. */
2965
+ /**
2966
+ * A semantic footer area for the drawer, typically containing action buttons.
2967
+ * Inside a `"modal"` drawer it carries no padding of its own, since the panel pads
2968
+ * its content.
2969
+ */
2927
2970
  export declare const DrawerFooter: React_2.ForwardRefExoticComponent<DrawerFooterProps & React_2.RefAttributes<HTMLDivElement>>;
2928
2971
 
2929
2972
  /** Props for the {@link DrawerFooter} component. */
@@ -2932,7 +2975,8 @@ export declare interface DrawerFooterProps extends React_2.HTMLAttributes<HTMLDi
2932
2975
 
2933
2976
  /**
2934
2977
  * A semantic header area for the drawer, typically containing a title and description.
2935
- * Renders a built-in close button by default.
2978
+ * Renders a built-in close button by default. Inside a `"modal"` drawer it carries
2979
+ * no padding of its own, since the panel pads its content.
2936
2980
  */
2937
2981
  export declare const DrawerHeader: React_2.ForwardRefExoticComponent<DrawerHeaderProps & React_2.RefAttributes<HTMLDivElement>>;
2938
2982
 
@@ -3015,8 +3059,12 @@ export declare type DrawerTriggerProps = React_2.ComponentPropsWithoutRef<typeof
3015
3059
  * it: inset from all three sides and rounded on every corner. Shares the modal
3016
3060
  * surface with `"sheet"`; only the shape differs. Intended for
3017
3061
  * `position="bottom"`.
3062
+ * - `"modal"` — the V2 Modal: a card floating 8px clear of the viewport edges,
3063
+ * with the modal surface and stroke and a 32px radius, over the heavy overlay.
3064
+ * Beside the page (`position="left"` or `"right"`) it is 440px wide with 24px
3065
+ * padding; from the top or bottom it is the mobile modal, with 16px padding.
3018
3066
  */
3019
- export declare type DrawerVariant = "panel" | "sheet" | "menu";
3067
+ export declare type DrawerVariant = "panel" | "sheet" | "menu" | "modal";
3020
3068
 
3021
3069
  /** Root component that manages open/close state for a dropdown menu. */
3022
3070
  export declare function DropdownMenu({ open: openProp, defaultOpen, onOpenChange, variant, children, ...props }: DropdownMenuProps): JSX.Element;
@@ -3209,6 +3257,15 @@ export declare interface DropdownMenuItemProps extends React_2.ComponentPropsWit
3209
3257
  trailingIcon?: React_2.ReactNode;
3210
3258
  /** Trailing count or number (e.g. an unread total) rendered before {@link DropdownMenuItemProps.trailingIcon}. */
3211
3259
  count?: React_2.ReactNode;
3260
+ /**
3261
+ * A small action drawn at the row's end, after everything else — typically a 24px
3262
+ * `Button` rendered `asChild` as a span. The whole row performs the action through
3263
+ * `onSelect`, so pass a visual, never a second interactive control. Its text joins the
3264
+ * row's accessible name, so the label people see is also the one they can speak.
3265
+ * The row does not restyle it: when the row is `disabled`, disable the visual too
3266
+ * (or show its `loading` state) so it does not look live.
3267
+ */
3268
+ trailingAction?: React_2.ReactNode;
3212
3269
  /**
3213
3270
  * Optional secondary text rendered on a second line below the label. When
3214
3271
  * provided, the row switches to a two-line layout and the leading/trailing
@@ -3499,6 +3556,19 @@ declare type EmptyStateTitleSize = "xs" | "sm" | "md" | "lg" | "xl";
3499
3556
 
3500
3557
  export declare type EmptyStateVariant = "default" | "centered";
3501
3558
 
3559
+ /**
3560
+ * Episodes icon. Renders at sizes 16, 24, or 32 px with outlined and filled variants.
3561
+ *
3562
+ * @example
3563
+ * ```tsx
3564
+ * <EpisodesIcon size={24} filled />
3565
+ * ```
3566
+ */
3567
+ export declare const EpisodesIcon: React_2.ForwardRefExoticComponent<BaseIconProps & React_2.RefAttributes<SVGSVGElement>>;
3568
+
3569
+ /** Props for {@link EpisodesIcon}. See {@link BaseIconProps} for the shared shape. */
3570
+ export declare type EpisodesIconProps = BaseIconProps;
3571
+
3502
3572
  /** An "×" inside a filled circle icon for error states (20 × 20). */
3503
3573
  export declare const ErrorCircleIcon: React_2.ForwardRefExoticComponent<React_2.SVGAttributes<SVGSVGElement> & {
3504
3574
  className?: string;
@@ -3869,8 +3939,8 @@ export declare type HourglassIconProps = BaseIconProps;
3869
3939
  * icon alone (e.g. close, send). Always pair with an `aria-label` for
3870
3940
  * accessibility.
3871
3941
  *
3872
- * Shape is size-driven for the standard variants: the `24` size is squared
3873
- * (`rounded-xs`), every larger size is circular. Bespoke variants (`brand`,
3942
+ * Shape is size-driven for the standard variants, `upsell` and `overlay`: the `24` size is
3943
+ * squared (`rounded-xs`), every larger size is circular. Bespoke variants (`brand`,
3874
3944
  * `contrast`, `messaging`, `navTray`, `tertiaryDestructive`, `stop`,
3875
3945
  * `microphone`) stay circular at all sizes. `field` is the exception that is
3876
3946
  * never circular — it takes the inputs' `rounded-sm` so it matches the fields it
@@ -3909,12 +3979,23 @@ export declare type IconButtonSize = "24" | "32" | "40" | "48" | "52" | "72";
3909
3979
  * `primary`, `secondary`, `tertiary`, `outline`, `error`, `white` and `black`
3910
3980
  * use the shared button colour tokens and a size-driven shape (squared at the
3911
3981
  * `24` size, circular otherwise). Of these, `primary`, `secondary`, `tertiary`
3912
- * and `outline` also honour the {@link IconButtonProps.negative} prop.
3982
+ * and `outline` also honour the {@link IconButtonProps.negative} prop, as does
3983
+ * `upsell`, which takes the other theme's glow.
3984
+ *
3985
+ * `upsell` is the Figma "Upsell" icon button and matches `Button`'s `brand`
3986
+ * variant: a green radial fill, a green glow and a highlight that circles the
3987
+ * rim once, held still when the user prefers reduced motion. It takes the same
3988
+ * size-driven shape as the standard variants.
3989
+ *
3990
+ * `overlay` is a translucent dark fill with a backdrop blur, for buttons that sit
3991
+ * on photos or video. Its fill and icon look the same in light and dark themes, while
3992
+ * the keyboard focus ring still follows the theme. It takes the same size-driven
3993
+ * shape as the standard variants.
3913
3994
  *
3914
3995
  * `brand`, `contrast`, `messaging`, `navTray`, `tertiaryDestructive`, `stop` and
3915
3996
  * `microphone` are bespoke variants that stay circular at every size.
3916
3997
  */
3917
- export declare type IconButtonVariant = "primary" | "secondary" | "tertiary" | "outline" | "error" | "white" | "black" | "brand" | "contrast" | "messaging" | "navTray" | "tertiaryDestructive" | "stop" | "microphone" | "field";
3998
+ export declare type IconButtonVariant = "primary" | "secondary" | "tertiary" | "outline" | "error" | "white" | "black" | "brand" | "upsell" | "contrast" | "messaging" | "navTray" | "tertiaryDestructive" | "stop" | "microphone" | "overlay" | "field";
3918
3999
 
3919
4000
  /** A single drawable path within an icon variant. */
3920
4001
  export declare type IconPath = {
@@ -5753,6 +5834,19 @@ export declare const ShareIcon: React_2.ForwardRefExoticComponent<BaseIconProps
5753
5834
  /** Props for {@link ShareIcon}. See {@link BaseIconProps} for the shared shape. */
5754
5835
  export declare type ShareIconProps = BaseIconProps;
5755
5836
 
5837
+ /**
5838
+ * Shorts icon. Renders at sizes 16, 24, or 32 px with outlined and filled variants.
5839
+ *
5840
+ * @example
5841
+ * ```tsx
5842
+ * <ShortsIcon size={24} filled />
5843
+ * ```
5844
+ */
5845
+ export declare const ShortsIcon: React_2.ForwardRefExoticComponent<BaseIconProps & React_2.RefAttributes<SVGSVGElement>>;
5846
+
5847
+ /** Props for {@link ShortsIcon}. See {@link BaseIconProps} for the shared shape. */
5848
+ export declare type ShortsIconProps = BaseIconProps;
5849
+
5756
5850
  /**
5757
5851
  * A placeholder preview of content before data is loaded, reducing perceived
5758
5852
  * load time. Mirrors common MUI Skeleton props for easy migration.
@@ -5765,6 +5859,7 @@ export declare type ShareIconProps = BaseIconProps;
5765
5859
  * <Skeleton variant="text" width={200} />
5766
5860
  * <Skeleton variant="circular" width={40} height={40} />
5767
5861
  * <Skeleton variant="rectangular" width="100%" height={120} />
5862
+ * <Skeleton variant="rectangular" radius="lg" width="100%" height={240} />
5768
5863
  * ```
5769
5864
  */
5770
5865
  export declare const Skeleton: React_2.ForwardRefExoticComponent<SkeletonProps & React_2.RefAttributes<HTMLSpanElement>>;
@@ -5783,6 +5878,17 @@ export declare interface SkeletonProps extends React_2.HTMLAttributes<HTMLSpanEl
5783
5878
  * @default "text"
5784
5879
  */
5785
5880
  variant?: SkeletonVariant;
5881
+ /**
5882
+ * Corner radius on the kit scale, so a skeleton can match the corners of the
5883
+ * surface it stands in for. Overrides the radius the `variant` sets.
5884
+ *
5885
+ * - `sm` – `--radius-sm` (12px)
5886
+ * - `md` – `--radius-md` (16px)
5887
+ * - `lg` – `--radius-lg` (24px)
5888
+ *
5889
+ * Leave unset to keep the variant's own radius.
5890
+ */
5891
+ radius?: SkeletonRadius;
5786
5892
  /** Animation style. Set to `false` to disable animation. @default "pulse" */
5787
5893
  animation?: SkeletonAnimation;
5788
5894
  /** Width of the skeleton. Accepts a CSS value (number is treated as `px`). */
@@ -5791,6 +5897,9 @@ export declare interface SkeletonProps extends React_2.HTMLAttributes<HTMLSpanEl
5791
5897
  height?: number | string;
5792
5898
  }
5793
5899
 
5900
+ /** Corner radius of the skeleton, on the kit radius scale. */
5901
+ export declare type SkeletonRadius = "sm" | "md" | "lg";
5902
+
5794
5903
  /** Shape variant of the skeleton placeholder. */
5795
5904
  export declare type SkeletonVariant = "text" | "circular" | "rectangular" | "rounded";
5796
5905
 
@@ -5902,10 +6011,24 @@ export declare const SoundIcon: React_2.ForwardRefExoticComponent<BaseIconProps
5902
6011
  /** Props for {@link SoundIcon}. See {@link BaseIconProps} for the shared shape. */
5903
6012
  export declare type SoundIconProps = BaseIconProps;
5904
6013
 
5905
- /** A circular spinner icon for loading states (20 × 20). Pair with a CSS `animate-spin` class or use the `Loader` component. */
5906
- export declare const SpinnerIcon: React_2.ForwardRefExoticComponent<React_2.SVGAttributes<SVGSVGElement> & {
5907
- className?: string;
5908
- } & React_2.RefAttributes<SVGSVGElement>>;
6014
+ /**
6015
+ * A circular spinner glyph for loading states. It is a plain icon: pass `spin`
6016
+ * to turn it, as with any other prop-based icon. Prefer `spin`: a raw `animate-spin`
6017
+ * class keeps rotating under reduced motion. Combining the two never doubles the
6018
+ * speed. For a full-area loading state use the `Loader` component.
6019
+ *
6020
+ * @example
6021
+ * ```tsx
6022
+ * <SpinnerIcon size={16} spin />
6023
+ * ```
6024
+ */
6025
+ export declare const SpinnerIcon: React_2.ForwardRefExoticComponent<SpinnerIconProps & React_2.RefAttributes<SVGSVGElement>>;
6026
+
6027
+ /** Props for {@link SpinnerIcon}. */
6028
+ export declare interface SpinnerIconProps extends Omit<IconProps, "size">, Pick<BaseIconProps, "spin"> {
6029
+ /** Pixel size of the spinner. Defaults to 20px when omitted. */
6030
+ size?: IconSize;
6031
+ }
5909
6032
 
5910
6033
  /**
5911
6034
  * Star icon. Renders at sizes 16, 24, or 32 px with outlined and filled variants.
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";
@@ -403,6 +406,7 @@ export {
403
406
  DiscordIcon,
404
407
  DiscountIcon,
405
408
  Divider,
409
+ DocumentIcon,
406
410
  DonateIcon,
407
411
  DoubleTickIcon,
408
412
  DownloadIcon,
@@ -431,6 +435,7 @@ export {
431
435
  EditIcon,
432
436
  EmojiIcon,
433
437
  EmptyState,
438
+ EpisodesIcon,
434
439
  ErrorCircleIcon,
435
440
  ErrorIcon,
436
441
  ExclamationMarkIcon,
@@ -544,6 +549,7 @@ export {
544
549
  SendIcon,
545
550
  SettingsIcon,
546
551
  ShareIcon,
552
+ ShortsIcon,
547
553
  Skeleton,
548
554
  Slider,
549
555
  Slot,
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -65,9 +65,9 @@
65
65
  &:autofill {
66
66
  font-size: 16px !important;
67
67
  font-family: Inter !important;
68
- font-weight: 400 !important;
68
+ font-weight: var(--typography-body-default-16px-regular-font-weight) !important;
69
69
  line-height: 24px !important;
70
- letter-spacing: 0px !important;
70
+ letter-spacing: -0.16px !important;
71
71
  }
72
72
  }
73
73
 
@@ -77,9 +77,9 @@
77
77
  &:autofill {
78
78
  font-size: 14px !important;
79
79
  font-family: Inter !important;
80
- font-weight: 400 !important;
80
+ font-weight: var(--typography-body-small-14px-regular-font-weight) !important;
81
81
  line-height: 18px !important;
82
- letter-spacing: 0px !important;
82
+ letter-spacing: -0.035px !important;
83
83
  }
84
84
  }
85
85
 
@@ -318,6 +318,130 @@
318
318
  opacity: 0;
319
319
  }
320
320
  }
321
+ /*
322
+ * Upsell (brand) surface: the Figma `Upsell` button. A radial pool of
323
+ * `Green/300` rising from the bottom edge into the brand fill, lit by two
324
+ * green glows from its edge.
325
+ *
326
+ * The glows sit on `::before` rather than on the element's own box-shadow, so
327
+ * the inset `focus-visible:shadow-focus-ring` can still draw without wiping
328
+ * them out.
329
+ * `--fv-upsell-end` is the outer gradient stop, so a consumer moves the whole
330
+ * pool to the hover fill by swapping one property.
331
+ *
332
+ * A loading button is natively disabled but keeps the look, so the disabled
333
+ * resets skip `aria-busy`.
334
+ */
335
+ @utility fv-upsell {
336
+ --fv-upsell-end: var(--color-buttons-brand-default);
337
+ position: relative;
338
+ isolation: isolate;
339
+ background-image: radial-gradient(
340
+ 58.1% 100% at 50% 100%,
341
+ var(--fv-upsell-pool),
342
+ var(--fv-upsell-end)
343
+ );
344
+
345
+ &::before {
346
+ content: "";
347
+ position: absolute;
348
+ inset: 0;
349
+ z-index: -1;
350
+ border-radius: inherit;
351
+ pointer-events: none;
352
+ box-shadow: var(--fv-upsell-glow);
353
+ }
354
+
355
+ &:disabled:not([aria-busy="true"]) {
356
+ background-image: none;
357
+ }
358
+
359
+ &:disabled:not([aria-busy="true"])::before {
360
+ content: none;
361
+ }
362
+ }
363
+
364
+ /*
365
+ * An `fv-upsell` button on an inverted surface, such as a dark panel on a light
366
+ * page: it takes the other theme's glow, the glow made for that surface. Put it
367
+ * on the button (`negative`) or on any container; the glow is inherited.
368
+ *
369
+ * Elements painted with the inverted surface token do this for every upsell
370
+ * button inside them, so InfoBox, Toast, Banner and app surfaces using
371
+ * `bg-surface-primary-inverted` need no prop.
372
+ */
373
+ @utility fv-upsell-negative {
374
+ --fv-upsell-glow: var(--fv-upsell-glow-negative);
375
+ }
376
+
377
+ @layer utilities {
378
+ .bg-surface-primary-inverted {
379
+ --fv-upsell-glow: var(--fv-upsell-glow-negative);
380
+ }
381
+ }
382
+
383
+ @property --fv-upsell-angle {
384
+ syntax: "<angle>";
385
+ inherits: false;
386
+ initial-value: 0deg;
387
+ }
388
+
389
+ @keyframes fv-upsell-spin {
390
+ to {
391
+ --fv-upsell-angle: 360deg;
392
+ }
393
+ }
394
+
395
+ /*
396
+ * A white highlight that travels once round the rim of an `fv-upsell` button,
397
+ * then rests. It is a conic gradient masked to a 1.5px ring, turned by
398
+ * animating a registered angle. A single pass keeps the motion under the five
399
+ * seconds after which WCAG 2.2.2 asks for a pause control, and stops the
400
+ * per-frame repaint once it lands. It only moves for users who have not asked
401
+ * for reduced motion; for everyone else it rests at the top right.
402
+ *
403
+ * The rim hides while the button has keyboard focus, so the focus ring stays
404
+ * whole. It hides with `visibility` rather than `content: none`, which would
405
+ * remove the pseudo-element and replay the pass when it comes back, so the
406
+ * shine plays once per mount.
407
+ */
408
+ @utility fv-upsell-shine {
409
+ &::after {
410
+ content: "";
411
+ position: absolute;
412
+ inset: 0;
413
+ border-radius: inherit;
414
+ padding: 1.5px;
415
+ pointer-events: none;
416
+ background: conic-gradient(
417
+ from var(--fv-upsell-angle),
418
+ transparent 0deg,
419
+ var(--fv-upsell-shine-color) 40deg,
420
+ transparent 100deg,
421
+ transparent 360deg
422
+ );
423
+ -webkit-mask:
424
+ linear-gradient(#000 0 0) content-box,
425
+ linear-gradient(#000 0 0);
426
+ -webkit-mask-composite: xor;
427
+ mask:
428
+ linear-gradient(#000 0 0) content-box,
429
+ linear-gradient(#000 0 0);
430
+ mask-composite: exclude;
431
+ }
432
+
433
+ &:disabled:not([aria-busy="true"])::after,
434
+ &:focus-visible::after {
435
+ visibility: hidden;
436
+ }
437
+
438
+ @media (prefers-reduced-motion: no-preference) {
439
+ &::after {
440
+ animation: fv-upsell-spin var(--fv-upsell-shine-duration) var(--fv-upsell-shine-easing) 1;
441
+ }
442
+ }
443
+ }
444
+
321
445
  /*
322
446
  * Animate `height` between 0 and the panel's measured height
323
447
  * (`--radix-accordion-content-height`, which Radix sets from a getBoundingClientRect
@@ -416,3 +540,32 @@
416
540
  inset 0 0 0 1px rgb(255 255 255 / 0.025), 0 1px 2px 0 rgb(0 0 0 / 0.4), 0 6px 16px -6px rgb(0 0 0 / 0.45);
417
541
  --fv-raised-control-thumb-shadow: 0 1px 2px rgb(0 0 0 / 0.35), 0 2px 6px -2px rgb(0 0 0 / 0.4);
418
542
  }
543
+
544
+ /*
545
+ * Upsell surface tokens, read by the `fv-upsell` and `fv-upsell-shine`
546
+ * utilities. Figma's `Upsell` button (Fanvue Library, node 16650:1558) fills
547
+ * from `Color/Green/300` into `Color/Buttons/Brand/Default`. The button is
548
+ * brand green in both themes; only the glow changes with the page. On
549
+ * black, the `Green/800` / `Green/900` glows read as lit green. On a light page
550
+ * those same greens read as a grey shadow, so light mode draws the glow in the
551
+ * green they appear as on black (`Green/600`, translucent) to keep the look.
552
+ * `--fv-upsell-glow-negative` is the other theme's glow, for a button on an
553
+ * inverted surface (`fv-upsell-negative`).
554
+ */
555
+ :root {
556
+ --fv-upsell-pool: var(--primitives-color-green-300);
557
+ --fv-upsell-glow-on-light:
558
+ 0 0 4px color-mix(in srgb, var(--primitives-color-green-600) 60%, transparent),
559
+ 0 0 16px color-mix(in srgb, var(--primitives-color-green-600) 30%, transparent);
560
+ --fv-upsell-glow-on-dark: 0 0 4px var(--primitives-color-green-800), 0 0 16px var(--primitives-color-green-900);
561
+ --fv-upsell-glow: var(--fv-upsell-glow-on-light);
562
+ --fv-upsell-glow-negative: var(--fv-upsell-glow-on-dark);
563
+ --fv-upsell-shine-color: var(--primitives-color-whitealpha-900);
564
+ --fv-upsell-shine-duration: 3s;
565
+ --fv-upsell-shine-easing: linear;
566
+ }
567
+
568
+ .dark {
569
+ --fv-upsell-glow: var(--fv-upsell-glow-on-dark);
570
+ --fv-upsell-glow-negative: var(--fv-upsell-glow-on-light);
571
+ }
@@ -806,6 +806,10 @@
806
806
  /* Focus-ring colour, consumed by --shadow-focus-ring. Violet on light
807
807
  backgrounds; overridden to white in .dark so the ring stays visible. */
808
808
  --fv-focus-ring-color: var(--color-interaction-focus);
809
+
810
+ --typography-body-default-16px-regular-font-weight: 400;
811
+ --typography-body-small-14px-regular-font-weight: 400;
812
+ --typography-description-12px-regular-font-weight: 400;
809
813
  }
810
814
 
811
815
  .dark {
@@ -1102,6 +1106,10 @@
1102
1106
  --color-inputs-inputs-off: var(--color-inputs-inputs-disabled);
1103
1107
  --color-messages-background-receiver-2: var(--color-messages-background-receiver-stroke);
1104
1108
  --fv-focus-ring-color: var(--color-content-always-white);
1109
+
1110
+ --typography-body-default-16px-regular-font-weight: 450;
1111
+ --typography-body-small-14px-regular-font-weight: 450;
1112
+ --typography-description-12px-regular-font-weight: 500;
1105
1113
  }
1106
1114
 
1107
1115
  @utility typography-header-heading-xl {
@@ -1166,7 +1174,7 @@
1166
1174
  font-weight: 600;
1167
1175
  font-style: normal;
1168
1176
  font-stretch: normal;
1169
- letter-spacing: 0px;
1177
+ letter-spacing: -0.16px;
1170
1178
  line-height: 24px;
1171
1179
  }
1172
1180
 
@@ -1174,10 +1182,10 @@
1174
1182
  font-size: 16px;
1175
1183
  text-decoration: none;
1176
1184
  font-family: Inter;
1177
- font-weight: 400;
1185
+ font-weight: var(--typography-body-default-16px-regular-font-weight);
1178
1186
  font-style: normal;
1179
1187
  font-stretch: normal;
1180
- letter-spacing: 0px;
1188
+ letter-spacing: -0.16px;
1181
1189
  line-height: 24px;
1182
1190
  }
1183
1191
 
@@ -1188,7 +1196,7 @@
1188
1196
  font-weight: 600;
1189
1197
  font-style: normal;
1190
1198
  font-stretch: normal;
1191
- letter-spacing: 0px;
1199
+ letter-spacing: -0.035px;
1192
1200
  line-height: 18px;
1193
1201
  }
1194
1202
 
@@ -1196,10 +1204,10 @@
1196
1204
  font-size: 14px;
1197
1205
  text-decoration: none;
1198
1206
  font-family: Inter;
1199
- font-weight: 400;
1207
+ font-weight: var(--typography-body-small-14px-regular-font-weight);
1200
1208
  font-style: normal;
1201
1209
  font-stretch: normal;
1202
- letter-spacing: 0px;
1210
+ letter-spacing: -0.035px;
1203
1211
  line-height: 18px;
1204
1212
  }
1205
1213
 
@@ -1210,7 +1218,7 @@
1210
1218
  font-weight: 600;
1211
1219
  font-style: normal;
1212
1220
  font-stretch: normal;
1213
- letter-spacing: 0px;
1221
+ letter-spacing: 0.12px;
1214
1222
  line-height: 16px;
1215
1223
  }
1216
1224
 
@@ -1218,10 +1226,10 @@
1218
1226
  font-size: 12px;
1219
1227
  text-decoration: none;
1220
1228
  font-family: Inter;
1221
- font-weight: 400;
1229
+ font-weight: var(--typography-description-12px-regular-font-weight);
1222
1230
  font-style: normal;
1223
1231
  font-stretch: normal;
1224
- letter-spacing: 0px;
1232
+ letter-spacing: 0.12px;
1225
1233
  line-height: 16px;
1226
1234
  }
1227
1235
 
@@ -1255,7 +1263,7 @@
1255
1263
  font-weight: 600;
1256
1264
  font-style: normal;
1257
1265
  font-stretch: normal;
1258
- letter-spacing: 0px;
1266
+ letter-spacing: -0.16px;
1259
1267
  line-height: 22px;
1260
1268
  }
1261
1269
 
@@ -1266,7 +1274,7 @@
1266
1274
  font-weight: 600;
1267
1275
  font-style: normal;
1268
1276
  font-stretch: normal;
1269
- letter-spacing: 0px;
1277
+ letter-spacing: -0.035px;
1270
1278
  line-height: 18px;
1271
1279
  }
1272
1280
 
@@ -1277,6 +1285,6 @@
1277
1285
  font-weight: 600;
1278
1286
  font-style: normal;
1279
1287
  font-stretch: normal;
1280
- letter-spacing: 0px;
1288
+ letter-spacing: 0.12px;
1281
1289
  line-height: 16px;
1282
1290
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fanvue/ui",
3
- "version": "3.49.0",
3
+ "version": "3.51.0",
4
4
  "description": "React component library built with Tailwind CSS for Fanvue ecosystem",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org",