@fanvue/ui 3.47.0 → 3.49.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 (92) hide show
  1. package/dist/charts.d.ts +39 -0
  2. package/dist/charts.mjs +2 -0
  3. package/dist/charts.mjs.map +1 -1
  4. package/dist/cjs/charts.cjs +2 -0
  5. package/dist/cjs/charts.cjs.map +1 -1
  6. package/dist/cjs/components/AnimatedNumber/AnimatedNumber.cjs +7 -3
  7. package/dist/cjs/components/AnimatedNumber/AnimatedNumber.cjs.map +1 -1
  8. package/dist/cjs/components/Chart/ChartGrid.cjs +31 -0
  9. package/dist/cjs/components/Chart/ChartGrid.cjs.map +1 -0
  10. package/dist/cjs/components/ChatInput/ChatInput.cjs +21 -11
  11. package/dist/cjs/components/ChatInput/ChatInput.cjs.map +1 -1
  12. package/dist/cjs/components/DropdownMenu/DropdownMenuItem.cjs +31 -34
  13. package/dist/cjs/components/DropdownMenu/DropdownMenuItem.cjs.map +1 -1
  14. package/dist/cjs/components/DropdownMenu/DropdownMenuReorderItem.cjs +5 -4
  15. package/dist/cjs/components/DropdownMenu/DropdownMenuReorderItem.cjs.map +1 -1
  16. package/dist/cjs/components/DropdownMenu/DropdownMenuRoot.cjs +10 -10
  17. package/dist/cjs/components/DropdownMenu/DropdownMenuRoot.cjs.map +1 -1
  18. package/dist/cjs/components/DropdownMenu/DropdownMenuSelectionItems.cjs +12 -7
  19. package/dist/cjs/components/DropdownMenu/DropdownMenuSelectionItems.cjs.map +1 -1
  20. package/dist/cjs/components/EmptyState/EmptyState.cjs +9 -1
  21. package/dist/cjs/components/EmptyState/EmptyState.cjs.map +1 -1
  22. package/dist/cjs/components/IconButton/IconButton.cjs +2 -1
  23. package/dist/cjs/components/IconButton/IconButton.cjs.map +1 -1
  24. package/dist/cjs/components/Icons/BaseIcon.cjs +5 -1
  25. package/dist/cjs/components/Icons/BaseIcon.cjs.map +1 -1
  26. package/dist/cjs/components/Icons/IconDefaults.cjs +26 -0
  27. package/dist/cjs/components/Icons/IconDefaults.cjs.map +1 -0
  28. package/dist/cjs/components/Icons/MenuRowIcon.cjs +26 -0
  29. package/dist/cjs/components/Icons/MenuRowIcon.cjs.map +1 -0
  30. package/dist/cjs/components/Link/Link.cjs +7 -3
  31. package/dist/cjs/components/Link/Link.cjs.map +1 -1
  32. package/dist/cjs/components/MediaPlayChip/MediaPlayChip.cjs +56 -0
  33. package/dist/cjs/components/MediaPlayChip/MediaPlayChip.cjs.map +1 -0
  34. package/dist/cjs/components/Select/Select.cjs +13 -10
  35. package/dist/cjs/components/Select/Select.cjs.map +1 -1
  36. package/dist/cjs/components/Tabs/TabsList.cjs +4 -2
  37. package/dist/cjs/components/Tabs/TabsList.cjs.map +1 -1
  38. package/dist/cjs/components/Tabs/TabsListSkeleton.cjs +30 -0
  39. package/dist/cjs/components/Tabs/TabsListSkeleton.cjs.map +1 -0
  40. package/dist/cjs/components/Tooltip/Tooltip.cjs +1 -1
  41. package/dist/cjs/components/Tooltip/Tooltip.cjs.map +1 -1
  42. package/dist/cjs/components/UndoAlertPrompt/UndoAlertPrompt.cjs +66 -0
  43. package/dist/cjs/components/UndoAlertPrompt/UndoAlertPrompt.cjs.map +1 -0
  44. package/dist/cjs/components/UserItem/UserItem.cjs +6 -1
  45. package/dist/cjs/components/UserItem/UserItem.cjs.map +1 -1
  46. package/dist/cjs/index.cjs +7 -0
  47. package/dist/cjs/index.cjs.map +1 -1
  48. package/dist/components/AnimatedNumber/AnimatedNumber.mjs +7 -3
  49. package/dist/components/AnimatedNumber/AnimatedNumber.mjs.map +1 -1
  50. package/dist/components/Chart/ChartGrid.mjs +31 -0
  51. package/dist/components/Chart/ChartGrid.mjs.map +1 -0
  52. package/dist/components/ChatInput/ChatInput.mjs +21 -11
  53. package/dist/components/ChatInput/ChatInput.mjs.map +1 -1
  54. package/dist/components/DropdownMenu/DropdownMenuItem.mjs +32 -35
  55. package/dist/components/DropdownMenu/DropdownMenuItem.mjs.map +1 -1
  56. package/dist/components/DropdownMenu/DropdownMenuReorderItem.mjs +5 -4
  57. package/dist/components/DropdownMenu/DropdownMenuReorderItem.mjs.map +1 -1
  58. package/dist/components/DropdownMenu/DropdownMenuRoot.mjs +10 -10
  59. package/dist/components/DropdownMenu/DropdownMenuRoot.mjs.map +1 -1
  60. package/dist/components/DropdownMenu/DropdownMenuSelectionItems.mjs +12 -7
  61. package/dist/components/DropdownMenu/DropdownMenuSelectionItems.mjs.map +1 -1
  62. package/dist/components/EmptyState/EmptyState.mjs +9 -1
  63. package/dist/components/EmptyState/EmptyState.mjs.map +1 -1
  64. package/dist/components/IconButton/IconButton.mjs +2 -1
  65. package/dist/components/IconButton/IconButton.mjs.map +1 -1
  66. package/dist/components/Icons/BaseIcon.mjs +5 -1
  67. package/dist/components/Icons/BaseIcon.mjs.map +1 -1
  68. package/dist/components/Icons/IconDefaults.mjs +9 -0
  69. package/dist/components/Icons/IconDefaults.mjs.map +1 -0
  70. package/dist/components/Icons/MenuRowIcon.mjs +26 -0
  71. package/dist/components/Icons/MenuRowIcon.mjs.map +1 -0
  72. package/dist/components/Link/Link.mjs +7 -3
  73. package/dist/components/Link/Link.mjs.map +1 -1
  74. package/dist/components/MediaPlayChip/MediaPlayChip.mjs +39 -0
  75. package/dist/components/MediaPlayChip/MediaPlayChip.mjs.map +1 -0
  76. package/dist/components/Select/Select.mjs +13 -10
  77. package/dist/components/Select/Select.mjs.map +1 -1
  78. package/dist/components/Tabs/TabsList.mjs +4 -2
  79. package/dist/components/Tabs/TabsList.mjs.map +1 -1
  80. package/dist/components/Tabs/TabsListSkeleton.mjs +13 -0
  81. package/dist/components/Tabs/TabsListSkeleton.mjs.map +1 -0
  82. package/dist/components/Tooltip/Tooltip.mjs +1 -1
  83. package/dist/components/Tooltip/Tooltip.mjs.map +1 -1
  84. package/dist/components/UndoAlertPrompt/UndoAlertPrompt.mjs +48 -0
  85. package/dist/components/UndoAlertPrompt/UndoAlertPrompt.mjs.map +1 -0
  86. package/dist/components/UserItem/UserItem.mjs +6 -1
  87. package/dist/components/UserItem/UserItem.mjs.map +1 -1
  88. package/dist/index.d.ts +159 -9
  89. package/dist/index.mjs +7 -0
  90. package/dist/index.mjs.map +1 -1
  91. package/dist/styles/base.css +23 -0
  92. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -3191,7 +3191,11 @@ export declare interface DropdownMenuItemProps extends React_2.ComponentPropsWit
3191
3191
  size?: DropdownMenuItemSize;
3192
3192
  /** Applies the destructive (error) treatment. Use for irreversible actions. @default false */
3193
3193
  destructive?: boolean;
3194
- /** Icon (or other node) rendered before the label. Ignored when {@link DropdownMenuItemProps.avatar} is set. */
3194
+ /**
3195
+ * Icon (or other node) rendered before the label. Ignored when {@link DropdownMenuItemProps.avatar} is set.
3196
+ * Icons sit in a 16px box in `Icons/Secondary`, and prop-based icons draw filled at 16px unless they set
3197
+ * `filled` or `size` themselves (`filled={false}` opts out). Legacy icons such as `TrashBinIcon` stay outlined.
3198
+ */
3195
3199
  leadingIcon?: React_2.ReactNode;
3196
3200
  /**
3197
3201
  * Leading avatar rendered in place of {@link DropdownMenuItemProps.leadingIcon},
@@ -3200,7 +3204,7 @@ export declare interface DropdownMenuItemProps extends React_2.ComponentPropsWit
3200
3204
  */
3201
3205
  avatar?: React_2.ReactNode;
3202
3206
  /**
3203
- * Icon (or other node) rendered after the label.
3207
+ * Icon (or other node) rendered after the label. Treated like {@link DropdownMenuItemProps.leadingIcon}.
3204
3208
  */
3205
3209
  trailingIcon?: React_2.ReactNode;
3206
3210
  /** Trailing count or number (e.g. an unread total) rendered before {@link DropdownMenuItemProps.trailingIcon}. */
@@ -3449,10 +3453,18 @@ export declare interface EmptyStateProps extends Omit<React_2.HTMLAttributes<HTM
3449
3453
  /** Main heading. Strings use library heading styles; pass a node for full control. */
3450
3454
  title?: EmptyStateSlot;
3451
3455
  /**
3452
- * Size of the title heading — mapped internally to bold heading typography tokens.
3456
+ * How large the title looks, mapped to bold heading typography tokens. Independent of
3457
+ * `titleAs`, which sets the heading level.
3453
3458
  * @default "lg"
3454
3459
  */
3455
3460
  titleSize?: EmptyStateTitleSize;
3461
+ /**
3462
+ * Heading level of a string title, for screen readers and the page's heading outline
3463
+ * (for example `"h1"` on a whole-page state). Does not change how the title looks; use
3464
+ * `titleSize` for that. Ignored when `title` is a node.
3465
+ * @default "h2"
3466
+ */
3467
+ titleAs?: EmptyStateTitleAs;
3456
3468
  /** Supporting body copy. Strings use library body styles; pass a node for rich text. */
3457
3469
  description?: EmptyStateSlot;
3458
3470
  /**
@@ -3480,6 +3492,9 @@ export declare interface EmptyStateProps extends Omit<React_2.HTMLAttributes<HTM
3480
3492
  /** Slot that can be plain copy (styled by `EmptyState`) or custom markup. */
3481
3493
  export declare type EmptyStateSlot = string | React_2.ReactNode;
3482
3494
 
3495
+ /** Heading element rendered for a string title. */
3496
+ export declare type EmptyStateTitleAs = "h1" | "h2" | "h3";
3497
+
3483
3498
  declare type EmptyStateTitleSize = "xs" | "sm" | "md" | "lg" | "xl";
3484
3499
 
3485
3500
  export declare type EmptyStateVariant = "default" | "centered";
@@ -3662,6 +3677,19 @@ export declare const FolderIcon: React_2.ForwardRefExoticComponent<BaseIconProps
3662
3677
  /** Props for {@link FolderIcon}. See {@link BaseIconProps} for the shared shape. */
3663
3678
  export declare type FolderIconProps = BaseIconProps;
3664
3679
 
3680
+ /**
3681
+ * A video's length as the chip shows it: `mm:ss`, or `hh:mm:ss` from an hour.
3682
+ * Returns `undefined` for a missing, non-finite or sub-second length. Use it to
3683
+ * put the same length in the label of the tile the chip sits on.
3684
+ *
3685
+ * @example
3686
+ * ```ts
3687
+ * formatPlayChipDuration(42); // "00:42"
3688
+ * formatPlayChipDuration(3725); // "01:02:05"
3689
+ * ```
3690
+ */
3691
+ export declare function formatPlayChipDuration(duration?: number): string | undefined;
3692
+
3665
3693
  /**
3666
3694
  * Formats a duration in seconds as `m:ss`, or `--:--` when unknown. Matches the
3667
3695
  * timestamp {@link VoiceNote} renders, so waveforms built elsewhere read the
@@ -4096,7 +4124,9 @@ export declare type LanguageIconProps = BaseIconProps;
4096
4124
  /**
4097
4125
  * An inline text link for navigating to a related page or section without
4098
4126
  * using a button. Use `primary` for standard navigation and `brand` for the
4099
- * Fanvue green accent on calls to action within content.
4127
+ * Fanvue green accent on calls to action within content. Use `inherit` with
4128
+ * `size="inherit"` for a link inside copy that sets its own colour and type,
4129
+ * such as a tooltip.
4100
4130
  *
4101
4131
  * Renders an underlined `<a>` by default. Pass `asChild` to compose with a
4102
4132
  * router link (e.g. Next.js `Link`). When rendering without a visible label,
@@ -4137,11 +4167,19 @@ export declare interface LinkProps extends React_2.AnchorHTMLAttributes<HTMLAnch
4137
4167
  asChild?: boolean;
4138
4168
  }
4139
4169
 
4140
- /** Text size of the link in pixels. */
4141
- export declare type LinkSize = "16" | "14";
4170
+ /**
4171
+ * Text size of the link in pixels. `inherit` keeps the font size and weight of
4172
+ * the surrounding text, for a link that sits inside a sentence. Without icons it
4173
+ * renders inline, so a long link wraps with the sentence.
4174
+ */
4175
+ export declare type LinkSize = "16" | "14" | "inherit";
4142
4176
 
4143
- /** Visual style variant of the link. */
4144
- export declare type LinkVariant = "primary" | "brand";
4177
+ /**
4178
+ * Visual style variant of the link. `inherit` takes the colour of the
4179
+ * surrounding text, for links inside tooltips, alerts and other copy that sets
4180
+ * its own colour.
4181
+ */
4182
+ export declare type LinkVariant = "primary" | "brand" | "inherit";
4145
4183
 
4146
4184
  /**
4147
4185
  * List view icon. Renders at sizes 16, 24, or 32 px.
@@ -4334,6 +4372,40 @@ export declare const MassMessageIcon: React_2.ForwardRefExoticComponent<BaseIcon
4334
4372
  /** Props for {@link MassMessageIcon}. See {@link BaseIconProps} for the shared shape. */
4335
4373
  export declare type MassMessageIconProps = BaseIconProps;
4336
4374
 
4375
+ /**
4376
+ * Marks a video tile with a play icon and its length, or a 32px circle with the
4377
+ * icon alone when the length is unknown. The chip is decorative, so the tile it
4378
+ * sits on carries the label and the action. It is white on a translucent white
4379
+ * fill on every theme, as it sits over media rather than the page.
4380
+ *
4381
+ * The chip has no position of its own; the host places it, e.g. centred with
4382
+ * `absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2`.
4383
+ *
4384
+ * @example
4385
+ * ```tsx
4386
+ * <button
4387
+ * type="button"
4388
+ * aria-label={[alt, formatPlayChipDuration(duration)].filter(Boolean).join(", ")}
4389
+ * className="relative"
4390
+ * >
4391
+ * <img src={poster} alt="" />
4392
+ * <MediaPlayChip
4393
+ * duration={duration}
4394
+ * className="absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2"
4395
+ * />
4396
+ * </button>
4397
+ * ```
4398
+ */
4399
+ export declare const MediaPlayChip: React_2.ForwardRefExoticComponent<MediaPlayChipProps & React_2.RefAttributes<HTMLSpanElement>>;
4400
+
4401
+ export declare interface MediaPlayChipProps extends Omit<React_2.HTMLAttributes<HTMLSpanElement>, "children"> {
4402
+ /**
4403
+ * Length of the video in seconds, shown next to the icon as mm:ss, or
4404
+ * hh:mm:ss from an hour. Lengths under a second are not shown.
4405
+ */
4406
+ duration?: number;
4407
+ }
4408
+
4337
4409
  /**
4338
4410
  * A compact circular indicator that surfaces the moderation state of a piece of
4339
4411
  * media — flagged, removed, or sensitive. Typically overlaid on a thumbnail or
@@ -5571,7 +5643,11 @@ export declare const SelectItem: React_2.ForwardRefExoticComponent<SelectItemPro
5571
5643
  export declare interface SelectItemProps extends React_2.ComponentPropsWithoutRef<typeof SelectPrimitive.Item> {
5572
5644
  /** Row height. Defaults to the parent {@link Select} size (`48`/`40` → `40`, `32` → `32`). */
5573
5645
  size?: SelectItemSize;
5574
- /** Icon (or other node) rendered before the label. Ignored when {@link SelectItemProps.avatar} is set. */
5646
+ /**
5647
+ * Icon (or other node) rendered before the label. Ignored when {@link SelectItemProps.avatar} is set.
5648
+ * Treated like `DropdownMenuItem`'s icons: a 16px box in `Icons/Secondary`, prop-based icons filled at 16px
5649
+ * unless they set `filled` or `size` themselves.
5650
+ */
5575
5651
  leadingIcon?: React_2.ReactNode;
5576
5652
  /**
5577
5653
  * Leading avatar rendered in place of {@link SelectItemProps.leadingIcon}, for rows
@@ -6774,6 +6850,27 @@ export declare type TabsListProps = React_2.ComponentPropsWithoutRef<typeof Tabs
6774
6850
  followHover?: boolean;
6775
6851
  };
6776
6852
 
6853
+ /**
6854
+ * Loading placeholder for a pill {@link TabsList}. Renders the same track, so
6855
+ * the row does not jump when the real tabs replace it. Pass placeholder items
6856
+ * (for example {@link Skeleton} pills) as children.
6857
+ *
6858
+ * The track is hidden from assistive technology; announce the loading state on
6859
+ * the surrounding region with `aria-busy`.
6860
+ *
6861
+ * @example
6862
+ * ```tsx
6863
+ * <TabsListSkeleton>
6864
+ * <Skeleton variant="rounded" width={64} height={32} className="rounded-full" />
6865
+ * <Skeleton variant="rounded" width={80} height={32} className="rounded-full" />
6866
+ * </TabsListSkeleton>
6867
+ * ```
6868
+ */
6869
+ export declare const TabsListSkeleton: React_2.ForwardRefExoticComponent<TabsListSkeletonProps & React_2.RefAttributes<HTMLDivElement>>;
6870
+
6871
+ /** Props for the {@link TabsListSkeleton} component. */
6872
+ export declare type TabsListSkeletonProps = React_2.HTMLAttributes<HTMLDivElement>;
6873
+
6777
6874
  /**
6778
6875
  * The last tab in a {@link TabsList}, opening a menu of the tabs that don't fit
6779
6876
  * the row. It sits in the row's arrow-key order, opens with click, Enter, Space
@@ -7126,6 +7223,11 @@ export declare type ToolsIconProps = BaseIconProps;
7126
7223
  /** Root component that manages open/close state for a single tooltip. */
7127
7224
  export declare const Tooltip: React_2.FC<TooltipPrimitive.TooltipProps>;
7128
7225
 
7226
+ /**
7227
+ * The floating tooltip panel. It sits on a same-mode surface rather than an
7228
+ * inverted one, so it is dark in dark mode and light in light mode, set off by
7229
+ * a hairline border.
7230
+ */
7129
7231
  export declare const TooltipContent: React_2.ForwardRefExoticComponent<TooltipContentProps & React_2.RefAttributes<HTMLDivElement>>;
7130
7232
 
7131
7233
  export declare interface TooltipContentProps extends Omit<React_2.ComponentPropsWithoutRef<typeof TooltipPrimitive.Content>, "title"> {
@@ -7286,6 +7388,46 @@ export declare const TwitterIcon: React_2.ForwardRefExoticComponent<React_2.SVGA
7286
7388
  className?: string;
7287
7389
  } & React_2.RefAttributes<SVGSVGElement>>;
7288
7390
 
7391
+ /**
7392
+ * A compact, auto-dismissing confirmation with a single undo action. Use it
7393
+ * straight after a reversible change, such as moving or deleting an item, so
7394
+ * the user can reverse it without leaving their flow. The copy is not fixed:
7395
+ * pass a `title` describing the action that just happened, and pick `type`
7396
+ * by outcome (`removed` for deletions, `positive` for everything else).
7397
+ *
7398
+ * Use inside a {@link ToastProvider} with a {@link ToastViewport}.
7399
+ *
7400
+ * @example
7401
+ * ```tsx
7402
+ * <UndoAlertPrompt type="removed" title="Folder deleted" onUndo={restoreFolder} />
7403
+ * ```
7404
+ */
7405
+ export declare const UndoAlertPrompt: React_2.ForwardRefExoticComponent<UndoAlertPromptProps & React_2.RefAttributes<HTMLLIElement>>;
7406
+
7407
+ export declare interface UndoAlertPromptProps extends Omit<React_2.ComponentPropsWithoutRef<typeof ToastPrimitive.Root>, "type" | "title"> {
7408
+ /** Outcome being confirmed. Drives the leading icon. @default "positive" */
7409
+ type?: UndoAlertPromptType;
7410
+ /**
7411
+ * Confirmation of the action that just completed. Write it for the action
7412
+ * being undone, e.g. "Folder deleted", "Template moved" or
7413
+ * "3 messages archived". Accepts rich content for emphasising an item name.
7414
+ */
7415
+ title: React_2.ReactNode;
7416
+ /** Called when the user activates the undo button. The prompt closes afterwards. */
7417
+ onUndo: () => void;
7418
+ /** Label for the undo button. @default "Undo" */
7419
+ undoLabel?: string;
7420
+ /**
7421
+ * Describes an alternative way to undo, announced to screen reader users
7422
+ * who cannot reach the button before the prompt dismisses. Word it for the
7423
+ * action, e.g. "Restore the folder from Recently deleted". @default undoLabel
7424
+ */
7425
+ undoAltText?: string;
7426
+ }
7427
+
7428
+ /** Outcome the prompt confirms: a completed change, or a removal. */
7429
+ export declare type UndoAlertPromptType = "positive" | "removed";
7430
+
7289
7431
  /** An upload-to-cloud icon with an upward arrow (20 × 20). */
7290
7432
  export declare const UploadCloudIcon: React_2.ForwardRefExoticComponent<React_2.SVGAttributes<SVGSVGElement> & {
7291
7433
  className?: string;
@@ -7507,9 +7649,17 @@ export declare type UserIconProps = BaseIconProps;
7507
7649
  */
7508
7650
  export declare const UserItem: React_2.ForwardRefExoticComponent<UserItemProps & React_2.RefAttributes<HTMLDivElement>>;
7509
7651
 
7652
+ /**
7653
+ * Padding of the row. `"md"` insets it by 8px left and right and 4px top and bottom;
7654
+ * `"none"` removes the inset so the row aligns with its container's content edge.
7655
+ */
7656
+ export declare type UserItemPadding = "none" | "md";
7657
+
7510
7658
  export declare interface UserItemProps extends React_2.HTMLAttributes<HTMLDivElement> {
7511
7659
  /** The user to display. */
7512
7660
  user: UserItemUser;
7661
+ /** Padding of the row. @default "md" */
7662
+ padding?: UserItemPadding;
7513
7663
  /** Desired avatar size in px; snapped to the nearest supported token. @default 48 */
7514
7664
  avatarSize?: number;
7515
7665
  /** Show the muted indicator in the bottom-left corner. @default false */
package/dist/index.mjs CHANGED
@@ -225,6 +225,7 @@ import { Link } from "./components/Link/Link.mjs";
225
225
  import { LiveStatus } from "./components/LiveStatus/LiveStatus.mjs";
226
226
  import { Loader } from "./components/Loader/Loader.mjs";
227
227
  import { Logo } from "./components/Logo/Logo.mjs";
228
+ import { MediaPlayChip, formatPlayChipDuration } from "./components/MediaPlayChip/MediaPlayChip.mjs";
228
229
  import { MediaStatusIndicator } from "./components/MediaStatusIndicator/MediaStatusIndicator.mjs";
229
230
  import { MobileStepper } from "./components/MobileStepper/MobileStepper.mjs";
230
231
  import { OnlineBlinkingIcon } from "./components/OnlineBlinkingIcon/OnlineBlinkingIcon.mjs";
@@ -261,6 +262,7 @@ import { TableCardPagination } from "./components/Table/TablePagination.mjs";
261
262
  import { Tabs } from "./components/Tabs/Tabs.mjs";
262
263
  import { TabsContent } from "./components/Tabs/TabsContent.mjs";
263
264
  import { TabsList } from "./components/Tabs/TabsList.mjs";
265
+ import { TabsListSkeleton } from "./components/Tabs/TabsListSkeleton.mjs";
264
266
  import { TabsOverflow, TabsOverflowItem } from "./components/Tabs/TabsOverflow.mjs";
265
267
  import { TabsTrigger } from "./components/Tabs/TabsTrigger.mjs";
266
268
  import { TextArea } from "./components/TextArea/TextArea.mjs";
@@ -269,6 +271,7 @@ import { Toast, ToastProvider, ToastViewport } from "./components/Toast/Toast.mj
269
271
  import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "./components/Tooltip/Tooltip.mjs";
270
272
  import { TooltipLabel } from "./components/Tooltip/TooltipLabel.mjs";
271
273
  import { TrendPill } from "./components/TrendPill/TrendPill.mjs";
274
+ import { UndoAlertPrompt } from "./components/UndoAlertPrompt/UndoAlertPrompt.mjs";
272
275
  import { UserDisplayName } from "./components/UserDisplayName/UserDisplayName.mjs";
273
276
  import { UserHandle } from "./components/UserHandle/UserHandle.mjs";
274
277
  import { UserItem } from "./components/UserItem/UserItem.mjs";
@@ -480,6 +483,7 @@ export {
480
483
  LogoutIcon,
481
484
  LoveIcon,
482
485
  MassMessageIcon,
486
+ MediaPlayChip,
483
487
  MediaStatusIndicator,
484
488
  MegaphoneIcon,
485
489
  MenuCloseIcon,
@@ -590,6 +594,7 @@ export {
590
594
  Tabs,
591
595
  TabsContent,
592
596
  TabsList,
597
+ TabsListSkeleton,
593
598
  TabsOverflow,
594
599
  TabsOverflowItem,
595
600
  TabsTrigger,
@@ -619,6 +624,7 @@ export {
619
624
  TrendPill,
620
625
  TrophyIcon,
621
626
  TwitterIcon,
627
+ UndoAlertPrompt,
622
628
  UploadCloudIcon,
623
629
  UploadIcon,
624
630
  UploadToCloudIcon,
@@ -645,6 +651,7 @@ export {
645
651
  WifiOnIcon,
646
652
  WrenchIcon,
647
653
  cn,
654
+ formatPlayChipDuration,
648
655
  formatTime,
649
656
  getInitials,
650
657
  resamplePeaks,
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -384,12 +384,35 @@
384
384
  line-height: 0.75rem;
385
385
  }
386
386
 
387
+ /*
388
+ * Raised control surface: the track of a pill TabsList and its sliding pill.
389
+ * Themed here because the generated --shadow-* tokens are black at 5–10% in
390
+ * both modes, which vanishes on a dark page. Dark lifts the control with a lit
391
+ * fill and a heavier drop instead of an edge highlight, which reads as a hard
392
+ * line. Consumers recolouring the track need `bg-none` to drop the fill.
393
+ */
387
394
  :root {
388
395
  --color-special-bottom-nav-highlight: var(--primitives-color-green-500);
389
396
  --color-content-disabled: var(--primitives-color-gray-450);
397
+ --fv-raised-control-fill: linear-gradient(
398
+ to bottom,
399
+ var(--primitives-color-gray-white),
400
+ var(--primitives-color-gray-50)
401
+ );
402
+ --fv-raised-control-shadow:
403
+ inset 0 0 0 1px rgb(0 0 0 / 0.04), 0 1px 2px 0 rgb(0 0 0 / 0.045), 0 4px 12px -6px rgb(0 0 0 / 0.08);
404
+ --fv-raised-control-thumb-shadow: 0 1px 2px rgb(0 0 0 / 0.06), 0 1px 4px -1px rgb(0 0 0 / 0.07);
390
405
  }
391
406
 
392
407
  .dark {
393
408
  --color-special-bottom-nav-highlight: var(--primitives-color-gray-white);
394
409
  --color-content-disabled: var(--primitives-color-gray-450);
410
+ --fv-raised-control-fill: linear-gradient(
411
+ to bottom,
412
+ var(--primitives-color-gray-900),
413
+ var(--primitives-color-gray-950)
414
+ );
415
+ --fv-raised-control-shadow:
416
+ 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
+ --fv-raised-control-thumb-shadow: 0 1px 2px rgb(0 0 0 / 0.35), 0 2px 6px -2px rgb(0 0 0 / 0.4);
395
418
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fanvue/ui",
3
- "version": "3.47.0",
3
+ "version": "3.49.0",
4
4
  "description": "React component library built with Tailwind CSS for Fanvue ecosystem",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org",