@fanvue/ui 3.52.0 → 3.53.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (141) hide show
  1. package/dist/cjs/components/Autocomplete/Autocomplete.cjs +34 -10
  2. package/dist/cjs/components/Autocomplete/Autocomplete.cjs.map +1 -1
  3. package/dist/cjs/components/Autocomplete/AutocompleteOptionItem.cjs +13 -1
  4. package/dist/cjs/components/Autocomplete/AutocompleteOptionItem.cjs.map +1 -1
  5. package/dist/cjs/components/BottomNavigation/BottomNavigation.cjs +2 -2
  6. package/dist/cjs/components/BottomNavigation/BottomNavigation.cjs.map +1 -1
  7. package/dist/cjs/components/Card/Card.cjs +5 -2
  8. package/dist/cjs/components/Card/Card.cjs.map +1 -1
  9. package/dist/cjs/components/Chart/ChartCard.cjs +2 -1
  10. package/dist/cjs/components/Chart/ChartCard.cjs.map +1 -1
  11. package/dist/cjs/components/Chart/ChartLoadingOverlay.cjs +1 -1
  12. package/dist/cjs/components/Chart/ChartLoadingOverlay.cjs.map +1 -1
  13. package/dist/cjs/components/ChatInput/ChatInput.cjs +2 -2
  14. package/dist/cjs/components/ChatInput/ChatInput.cjs.map +1 -1
  15. package/dist/cjs/components/ChatMessage/ChatMessage.cjs +1 -1
  16. package/dist/cjs/components/ChatMessage/ChatMessage.cjs.map +1 -1
  17. package/dist/cjs/components/CreatorCard/CreatorCard.cjs +3 -5
  18. package/dist/cjs/components/CreatorCard/CreatorCard.cjs.map +1 -1
  19. package/dist/cjs/components/CreatorCover/CreatorCover.cjs +11 -7
  20. package/dist/cjs/components/CreatorCover/CreatorCover.cjs.map +1 -1
  21. package/dist/cjs/components/DatePicker/DatePicker.cjs +37 -16
  22. package/dist/cjs/components/DatePicker/DatePicker.cjs.map +1 -1
  23. package/dist/cjs/components/DropdownMenu/DropdownMenuItem.cjs +33 -10
  24. package/dist/cjs/components/DropdownMenu/DropdownMenuItem.cjs.map +1 -1
  25. package/dist/cjs/components/DropdownMenu/DropdownMenuReorderItem.cjs +2 -1
  26. package/dist/cjs/components/DropdownMenu/DropdownMenuReorderItem.cjs.map +1 -1
  27. package/dist/cjs/components/DropdownMenu/DropdownMenuRoot.cjs +18 -13
  28. package/dist/cjs/components/DropdownMenu/DropdownMenuRoot.cjs.map +1 -1
  29. package/dist/cjs/components/DropdownMenu/DropdownMenuSelectionItems.cjs +56 -40
  30. package/dist/cjs/components/DropdownMenu/DropdownMenuSelectionItems.cjs.map +1 -1
  31. package/dist/cjs/components/IconButton/IconButton.cjs +5 -2
  32. package/dist/cjs/components/IconButton/IconButton.cjs.map +1 -1
  33. package/dist/cjs/components/Icons/MenuRowIcon.cjs +9 -2
  34. package/dist/cjs/components/Icons/MenuRowIcon.cjs.map +1 -1
  35. package/dist/cjs/components/Icons/VerifiedIcon.cjs +9 -15
  36. package/dist/cjs/components/Icons/VerifiedIcon.cjs.map +1 -1
  37. package/dist/cjs/components/PhoneField/PhoneField.cjs +21 -17
  38. package/dist/cjs/components/PhoneField/PhoneField.cjs.map +1 -1
  39. package/dist/cjs/components/Popover/Popover.cjs +69 -0
  40. package/dist/cjs/components/Popover/Popover.cjs.map +1 -0
  41. package/dist/cjs/components/Select/Select.cjs +40 -12
  42. package/dist/cjs/components/Select/Select.cjs.map +1 -1
  43. package/dist/cjs/components/Slider/SliderThumb.cjs +3 -2
  44. package/dist/cjs/components/Slider/SliderThumb.cjs.map +1 -1
  45. package/dist/cjs/components/Snackbar/Snackbar.cjs +1 -1
  46. package/dist/cjs/components/Snackbar/Snackbar.cjs.map +1 -1
  47. package/dist/cjs/components/Switch/Switch.cjs +1 -1
  48. package/dist/cjs/components/Switch/Switch.cjs.map +1 -1
  49. package/dist/cjs/components/Table/Table.cjs +46 -5
  50. package/dist/cjs/components/Table/Table.cjs.map +1 -1
  51. package/dist/cjs/components/Tag/Tag.cjs +99 -0
  52. package/dist/cjs/components/Tag/Tag.cjs.map +1 -0
  53. package/dist/cjs/components/TextArea/TextArea.cjs +5 -4
  54. package/dist/cjs/components/TextArea/TextArea.cjs.map +1 -1
  55. package/dist/cjs/components/TextField/TextField.cjs +30 -15
  56. package/dist/cjs/components/TextField/TextField.cjs.map +1 -1
  57. package/dist/cjs/index.cjs +8 -0
  58. package/dist/cjs/index.cjs.map +1 -1
  59. package/dist/cjs/utils/floatingContentSurface.cjs +8 -0
  60. package/dist/cjs/utils/floatingContentSurface.cjs.map +1 -0
  61. package/dist/cjs/utils/inputFieldClasses.cjs +8 -0
  62. package/dist/cjs/utils/inputFieldClasses.cjs.map +1 -0
  63. package/dist/cjs/utils/pointerCapture.cjs +20 -0
  64. package/dist/cjs/utils/pointerCapture.cjs.map +1 -0
  65. package/dist/cjs/utils/useDragToDismiss.cjs +3 -2
  66. package/dist/cjs/utils/useDragToDismiss.cjs.map +1 -1
  67. package/dist/cjs/utils/useSuppressClickAfterDrag.cjs +2 -1
  68. package/dist/cjs/utils/useSuppressClickAfterDrag.cjs.map +1 -1
  69. package/dist/components/Autocomplete/Autocomplete.mjs +34 -10
  70. package/dist/components/Autocomplete/Autocomplete.mjs.map +1 -1
  71. package/dist/components/Autocomplete/AutocompleteOptionItem.mjs +13 -1
  72. package/dist/components/Autocomplete/AutocompleteOptionItem.mjs.map +1 -1
  73. package/dist/components/BottomNavigation/BottomNavigation.mjs +2 -2
  74. package/dist/components/BottomNavigation/BottomNavigation.mjs.map +1 -1
  75. package/dist/components/Card/Card.mjs +5 -2
  76. package/dist/components/Card/Card.mjs.map +1 -1
  77. package/dist/components/Chart/ChartCard.mjs +2 -1
  78. package/dist/components/Chart/ChartCard.mjs.map +1 -1
  79. package/dist/components/Chart/ChartLoadingOverlay.mjs +1 -1
  80. package/dist/components/Chart/ChartLoadingOverlay.mjs.map +1 -1
  81. package/dist/components/ChatInput/ChatInput.mjs +2 -2
  82. package/dist/components/ChatInput/ChatInput.mjs.map +1 -1
  83. package/dist/components/ChatMessage/ChatMessage.mjs +1 -1
  84. package/dist/components/ChatMessage/ChatMessage.mjs.map +1 -1
  85. package/dist/components/CreatorCard/CreatorCard.mjs +3 -5
  86. package/dist/components/CreatorCard/CreatorCard.mjs.map +1 -1
  87. package/dist/components/CreatorCover/CreatorCover.mjs +11 -7
  88. package/dist/components/CreatorCover/CreatorCover.mjs.map +1 -1
  89. package/dist/components/DatePicker/DatePicker.mjs +39 -18
  90. package/dist/components/DatePicker/DatePicker.mjs.map +1 -1
  91. package/dist/components/DropdownMenu/DropdownMenuItem.mjs +33 -10
  92. package/dist/components/DropdownMenu/DropdownMenuItem.mjs.map +1 -1
  93. package/dist/components/DropdownMenu/DropdownMenuReorderItem.mjs +2 -1
  94. package/dist/components/DropdownMenu/DropdownMenuReorderItem.mjs.map +1 -1
  95. package/dist/components/DropdownMenu/DropdownMenuRoot.mjs +18 -13
  96. package/dist/components/DropdownMenu/DropdownMenuRoot.mjs.map +1 -1
  97. package/dist/components/DropdownMenu/DropdownMenuSelectionItems.mjs +56 -40
  98. package/dist/components/DropdownMenu/DropdownMenuSelectionItems.mjs.map +1 -1
  99. package/dist/components/IconButton/IconButton.mjs +5 -2
  100. package/dist/components/IconButton/IconButton.mjs.map +1 -1
  101. package/dist/components/Icons/MenuRowIcon.mjs +9 -2
  102. package/dist/components/Icons/MenuRowIcon.mjs.map +1 -1
  103. package/dist/components/Icons/VerifiedIcon.mjs +9 -15
  104. package/dist/components/Icons/VerifiedIcon.mjs.map +1 -1
  105. package/dist/components/PhoneField/PhoneField.mjs +21 -17
  106. package/dist/components/PhoneField/PhoneField.mjs.map +1 -1
  107. package/dist/components/Popover/Popover.mjs +51 -0
  108. package/dist/components/Popover/Popover.mjs.map +1 -0
  109. package/dist/components/Select/Select.mjs +40 -12
  110. package/dist/components/Select/Select.mjs.map +1 -1
  111. package/dist/components/Slider/SliderThumb.mjs +3 -2
  112. package/dist/components/Slider/SliderThumb.mjs.map +1 -1
  113. package/dist/components/Snackbar/Snackbar.mjs +1 -1
  114. package/dist/components/Snackbar/Snackbar.mjs.map +1 -1
  115. package/dist/components/Switch/Switch.mjs +1 -1
  116. package/dist/components/Switch/Switch.mjs.map +1 -1
  117. package/dist/components/Table/Table.mjs +46 -5
  118. package/dist/components/Table/Table.mjs.map +1 -1
  119. package/dist/components/Tag/Tag.mjs +82 -0
  120. package/dist/components/Tag/Tag.mjs.map +1 -0
  121. package/dist/components/TextArea/TextArea.mjs +5 -4
  122. package/dist/components/TextArea/TextArea.mjs.map +1 -1
  123. package/dist/components/TextField/TextField.mjs +30 -15
  124. package/dist/components/TextField/TextField.mjs.map +1 -1
  125. package/dist/date-picker.d.ts +9 -0
  126. package/dist/index.d.ts +217 -15
  127. package/dist/index.mjs +8 -0
  128. package/dist/index.mjs.map +1 -1
  129. package/dist/styles/base.css +8 -4
  130. package/dist/styles/theme.css +1217 -1
  131. package/dist/utils/floatingContentSurface.mjs +8 -0
  132. package/dist/utils/floatingContentSurface.mjs.map +1 -0
  133. package/dist/utils/inputFieldClasses.mjs +8 -0
  134. package/dist/utils/inputFieldClasses.mjs.map +1 -0
  135. package/dist/utils/pointerCapture.mjs +20 -0
  136. package/dist/utils/pointerCapture.mjs.map +1 -0
  137. package/dist/utils/useDragToDismiss.mjs +3 -2
  138. package/dist/utils/useDragToDismiss.mjs.map +1 -1
  139. package/dist/utils/useSuppressClickAfterDrag.mjs +2 -1
  140. package/dist/utils/useSuppressClickAfterDrag.mjs.map +1 -1
  141. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -765,6 +765,12 @@ declare interface AutocompleteBaseProps {
765
765
  loading?: boolean;
766
766
  loadingText?: string;
767
767
  emptyText?: string;
768
+ /**
769
+ * Custom content for each option row. Under the v2 palette a selected row is
770
+ * inverted: the content and icon tokens inside it switch to their inverted values,
771
+ * so text and icons follow. Anything that brings its own surface, such as a `Chip`
772
+ * or `Badge`, keeps its fill and should not rely on the row's text colour.
773
+ */
768
774
  renderOption?: (option: AutocompleteOption, state: {
769
775
  selected: boolean;
770
776
  active: boolean;
@@ -1455,6 +1461,11 @@ export declare interface CardProps extends React_2.HTMLAttributes<HTMLDivElement
1455
1461
  fullWidth?: boolean;
1456
1462
  /** When `true`, removes all internal padding. @default false */
1457
1463
  noPadding?: boolean;
1464
+ /**
1465
+ * When `true`, renders the single child element with the card's surface instead of a `div`,
1466
+ * so a button or a link can be the card, for example a menu trigger. @default false
1467
+ */
1468
+ asChild?: boolean;
1458
1469
  }
1459
1470
 
1460
1471
  /** Title element rendered inside a {@link CardHeader}. Adapts its type scale to the card `hierarchy`. */
@@ -2262,9 +2273,12 @@ export declare interface CreatorCardProps extends Omit<React_2.HTMLAttributes<HT
2262
2273
  * Pass the label as `children`. Omit to hide the pill.
2263
2274
  */
2264
2275
  pill?: PillProps;
2265
- /** Avatar props forwarded to the inner {@link Avatar}. */
2276
+ /**
2277
+ * Props forwarded to the inner {@link Avatar}. Omit to hide the avatar, so the
2278
+ * name and tagline align with the card's left edge.
2279
+ */
2266
2280
  avatar?: React_2.ComponentPropsWithoutRef<typeof Avatar>;
2267
- /** Creator display name shown next to the avatar. */
2281
+ /** Creator display name, shown next to the avatar when there is one. */
2268
2282
  name: React_2.ReactNode;
2269
2283
  /** When `true`, renders a verified badge after the name. @default false */
2270
2284
  verified?: boolean;
@@ -3085,7 +3099,8 @@ export declare function DropdownMenu({ open: openProp, defaultOpen, onOpenChange
3085
3099
  /**
3086
3100
  * A single multi-select choice within a dropdown menu. Shows a square indicator
3087
3101
  * that fills when checked, an optional leading avatar, and an optional helper
3088
- * line underneath the title.
3102
+ * line underneath the title. Rows do not shrink, so a two-line row stays whole
3103
+ * when the panel scrolls.
3089
3104
  *
3090
3105
  * Pair with {@link DropdownMenuHeader} at `type="search"` for filterable menus.
3091
3106
  * Use {@link DropdownMenuRadioItem} instead when only one option may be active.
@@ -3140,7 +3155,7 @@ export declare interface DropdownMenuContentProps extends React_2.ComponentProps
3140
3155
  *
3141
3156
  * Requires Radix menu context — not supported inside a `variant="sheet"` menu.
3142
3157
  */
3143
- export declare const DropdownMenuGroup: React_2.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & React_2.RefAttributes<HTMLDivElement>>;
3158
+ export declare const DropdownMenuGroup: React_2.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuGroupProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
3144
3159
 
3145
3160
  /** Props for the {@link DropdownMenuGroup} component. */
3146
3161
  export declare type DropdownMenuGroupProps = React_2.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Group>;
@@ -3228,6 +3243,10 @@ export declare type DropdownMenuHeaderType = "default" | "search";
3228
3243
  /**
3229
3244
  * An individual item within a {@link DropdownMenuContent}.
3230
3245
  *
3246
+ * Rows do not shrink (`shrink-0`): the panel is a scrolling flex column capped at the
3247
+ * space available, and a row allowed to shrink would drop to its minimum height and
3248
+ * spill a second line.
3249
+ *
3231
3250
  * @example
3232
3251
  * ```tsx
3233
3252
  * <DropdownMenuItem>Edit profile</DropdownMenuItem>
@@ -3285,7 +3304,16 @@ export declare interface DropdownMenuItemProps extends React_2.ComponentPropsWit
3285
3304
  * icons align to the title line (top) rather than the row's vertical centre.
3286
3305
  */
3287
3306
  description?: React_2.ReactNode;
3288
- /** Marks the item as the current selection in a single-select menu. @default false */
3307
+ /**
3308
+ * Marks the item as the current selection in a single-select menu. The row
3309
+ * rests on `Buttons/Navigation/Hover` with a semibold label; hover still shows
3310
+ * `Interaction/Hover`, because `data-[highlighted]` outranks the selected class.
3311
+ * Under the v2 palette that fill is inverted, with inverted content, and a
3312
+ * highlighted row moves to `Menu Item Selected Hover` so keyboard focus stays visible.
3313
+ * The row also gets `data-selected`, and `aria-current` unless the consumer
3314
+ * already sets `aria-checked`.
3315
+ * @default false
3316
+ */
3289
3317
  selected?: boolean;
3290
3318
  }
3291
3319
 
@@ -3338,7 +3366,7 @@ export declare interface DropdownMenuProps extends React_2.ComponentPropsWithout
3338
3366
  *
3339
3367
  * Requires Radix menu context — not supported inside a `variant="sheet"` menu.
3340
3368
  */
3341
- export declare const DropdownMenuRadioGroup: React_2.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & React_2.RefAttributes<HTMLDivElement>>;
3369
+ export declare const DropdownMenuRadioGroup: React_2.ForwardRefExoticComponent<DropdownMenuRadioGroupProps & React_2.RefAttributes<HTMLDivElement>>;
3342
3370
 
3343
3371
  /** Props for the {@link DropdownMenuRadioGroup} component. */
3344
3372
  export declare interface DropdownMenuRadioGroupProps extends React_2.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.RadioGroup> {
@@ -3347,7 +3375,11 @@ export declare interface DropdownMenuRadioGroupProps extends React_2.ComponentPr
3347
3375
  /**
3348
3376
  * A single radio-style choice within a {@link DropdownMenuRadioGroup}. Shows
3349
3377
  * a circular indicator that fills when selected, plus an optional helper line
3350
- * underneath the title.
3378
+ * underneath the title. The checked row rests on `Buttons/Navigation/Hover`, and
3379
+ * hovering it shows `Interaction/Hover` like any other row. Under the v2 palette
3380
+ * the fill is inverted, with inverted content, and a highlighted checked row moves to
3381
+ * `Menu Item Selected Hover`. Rows do not shrink, so a two-line row stays whole when
3382
+ * the panel scrolls.
3351
3383
  */
3352
3384
  export declare const DropdownMenuRadioItem: React_2.ForwardRefExoticComponent<DropdownMenuRadioItemProps & React_2.RefAttributes<HTMLDivElement>>;
3353
3385
 
@@ -5067,6 +5099,89 @@ export declare const PlusIcon: React_2.ForwardRefExoticComponent<React_2.SVGAttr
5067
5099
  className?: string;
5068
5100
  } & React_2.RefAttributes<SVGSVGElement>>;
5069
5101
 
5102
+ /**
5103
+ * Root of a popover. Holds the open state shared by its trigger and content.
5104
+ *
5105
+ * @example
5106
+ * ```tsx
5107
+ * <Popover>
5108
+ * <PopoverTrigger asChild><Button>Open</Button></PopoverTrigger>
5109
+ * <PopoverContent aria-label="Details">Content</PopoverContent>
5110
+ * </Popover>
5111
+ * ```
5112
+ */
5113
+ export declare const Popover: React_2.FC<PopoverPrimitive.PopoverProps>;
5114
+
5115
+ /** Optional element the content positions against instead of the trigger. */
5116
+ export declare const PopoverAnchor: React_2.ForwardRefExoticComponent<PopoverPrimitive.PopoverAnchorProps & React_2.RefAttributes<HTMLDivElement>>;
5117
+
5118
+ /** Props for {@link PopoverAnchor}. */
5119
+ export declare type PopoverAnchorProps = React_2.ComponentPropsWithoutRef<typeof PopoverPrimitive.Anchor>;
5120
+
5121
+ /** Element that closes the popover when activated. Use `asChild` to render your own button. */
5122
+ export declare const PopoverClose: React_2.ForwardRefExoticComponent<PopoverPrimitive.PopoverCloseProps & React_2.RefAttributes<HTMLButtonElement>>;
5123
+
5124
+ /** Props for {@link PopoverClose}. */
5125
+ export declare type PopoverCloseProps = React_2.ComponentPropsWithoutRef<typeof PopoverPrimitive.Close>;
5126
+
5127
+ /**
5128
+ * Floating panel rendered in a portal, styled like the {@link DropdownMenuContent} surface.
5129
+ * Focus moves into it on open and returns to the trigger on close. It renders a `role="dialog"`,
5130
+ * so pass `aria-label` or `aria-labelledby` to name it. The content unmounts when closed;
5131
+ * `forceMount` is not supported.
5132
+ *
5133
+ * @example
5134
+ * ```tsx
5135
+ * <PopoverContent align="end" aria-label="Filters">Filters</PopoverContent>
5136
+ * ```
5137
+ */
5138
+ export declare const PopoverContent: React_2.ForwardRefExoticComponent<PopoverContentProps & React_2.RefAttributes<HTMLDivElement>>;
5139
+
5140
+ /** Own props of {@link PopoverContent}, before the accessible name requirement is applied. */
5141
+ export declare interface PopoverContentBaseProps extends Omit<React_2.ComponentPropsWithoutRef<typeof PopoverPrimitive.Content>, "forceMount"> {
5142
+ /** Alignment of the content against the trigger. @default "start" */
5143
+ align?: PopoverPrimitive.PopoverContentProps["align"];
5144
+ /** Distance in pixels between the trigger and the content. @default 8 */
5145
+ sideOffset?: PopoverPrimitive.PopoverContentProps["sideOffset"];
5146
+ /**
5147
+ * Distance in pixels kept between the content and the viewport edge, as a number or a per-side
5148
+ * object. @default 16
5149
+ */
5150
+ collisionPadding?: PopoverPrimitive.PopoverContentProps["collisionPadding"];
5151
+ /** Additional CSS classes merged onto the content surface. */
5152
+ className?: string;
5153
+ }
5154
+
5155
+ /** Accessible name for the dialog: at least one of `aria-label` or `aria-labelledby` is required. */
5156
+ export declare type PopoverContentName = {
5157
+ /** Text label naming the dialog. */
5158
+ "aria-label": string;
5159
+ /** Id of an element that names the dialog. */
5160
+ "aria-labelledby"?: string;
5161
+ } | {
5162
+ /** Text label naming the dialog. */
5163
+ "aria-label"?: string;
5164
+ /** Id of an element that names the dialog. */
5165
+ "aria-labelledby": string;
5166
+ };
5167
+
5168
+ /** Props for {@link PopoverContent}. */
5169
+ export declare type PopoverContentProps = PopoverContentBaseProps & PopoverContentName;
5170
+
5171
+ /** Props for {@link Popover}. */
5172
+ export declare type PopoverProps = React_2.ComponentPropsWithoutRef<typeof PopoverPrimitive.Root>;
5173
+
5174
+ /**
5175
+ * Element that toggles the popover. Use `asChild` to render your own button.
5176
+ *
5177
+ * On touch and pen, a press-and-release that moves past a small threshold counts as a drag, and
5178
+ * the synthetic click that follows it is ignored, so scrolling past the trigger does not open it.
5179
+ */
5180
+ export declare const PopoverTrigger: React_2.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverTriggerProps & React_2.RefAttributes<HTMLButtonElement>, "ref"> & React_2.RefAttributes<HTMLButtonElement>>;
5181
+
5182
+ /** Props for {@link PopoverTrigger}. */
5183
+ export declare type PopoverTriggerProps = React_2.ComponentPropsWithoutRef<typeof PopoverPrimitive.Trigger>;
5184
+
5070
5185
  /**
5071
5186
  * Privacy icon. Renders at sizes 16, 24, or 32 px with outlined and filled variants.
5072
5187
  *
@@ -5760,7 +5875,7 @@ export declare interface SelectContentProps extends React_2.ComponentPropsWithou
5760
5875
  /**
5761
5876
  * Groups related {@link SelectItem} elements under a {@link SelectLabel}.
5762
5877
  */
5763
- export declare const SelectGroup: React_2.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React_2.RefAttributes<HTMLDivElement>>;
5878
+ export declare const SelectGroup: React_2.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectGroupProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
5764
5879
 
5765
5880
  /** Props for {@link SelectGroup}. */
5766
5881
  export declare type SelectGroupProps = React_2.ComponentPropsWithoutRef<typeof SelectPrimitive.Group>;
@@ -5769,8 +5884,12 @@ export declare type SelectGroupProps = React_2.ComponentPropsWithoutRef<typeof S
5769
5884
  * An individual option inside {@link SelectContent}, following the V2 Menu Item spec.
5770
5885
  *
5771
5886
  * Supports a leading icon or avatar, an optional two-line layout via `description`,
5772
- * and the standard hover / selected / disabled states. The selected row is marked
5773
- * with a trailing check indicator.
5887
+ * and the standard hover / selected / disabled states. The selected row rests on
5888
+ * `Buttons/Navigation/Hover` with a semibold label and a trailing check; hovering
5889
+ * it shows `Interaction/Hover` like any other row. Under the v2 palette the fill is
5890
+ * inverted, with inverted content, and a highlighted or focused selected row moves to
5891
+ * `Menu Item Selected Hover` so keyboard focus stays visible. Rows do not shrink, so a
5892
+ * two-line row stays whole when the list scrolls.
5774
5893
  *
5775
5894
  * @example
5776
5895
  * ```tsx
@@ -6631,6 +6750,11 @@ export declare interface TableFooterProps extends React_2.HTMLAttributes<HTMLTab
6631
6750
  */
6632
6751
  export declare const TableHead: React_2.ForwardRefExoticComponent<TableHeadProps & React_2.RefAttributes<HTMLTableCellElement>>;
6633
6752
 
6753
+ /**
6754
+ * `<thead>` wrapper. Its header cells stay pinned to the top while rows
6755
+ * scroll beneath them. Row header cells in {@link TableBody} scroll with
6756
+ * their rows.
6757
+ */
6634
6758
  export declare const TableHeader: React_2.ForwardRefExoticComponent<TableHeaderProps & React_2.RefAttributes<HTMLTableSectionElement>>;
6635
6759
 
6636
6760
  export declare interface TableHeaderProps extends React_2.HTMLAttributes<HTMLTableSectionElement> {
@@ -6802,8 +6926,11 @@ export declare interface TableRowProps extends React_2.HTMLAttributes<HTMLTableR
6802
6926
  }
6803
6927
 
6804
6928
  /**
6805
- * Horizontal scroll container for wide tables. The inner scrollport keeps
6806
- * `border-collapse` styles intact when the table wraps.
6929
+ * Scroll container for the table. Wide tables scroll sideways. When its
6930
+ * {@link TableCard} has a bounded height (a flex child of a full-height page,
6931
+ * or a set height), the rows scroll inside the card under a pinned header
6932
+ * and the card's footer stays in view. The area fills the card's height, so
6933
+ * in a card taller than its rows the footer sits at the bottom of the card.
6807
6934
  */
6808
6935
  export declare const TableScrollArea: React_2.ForwardRefExoticComponent<TableScrollAreaProps & React_2.RefAttributes<HTMLDivElement>>;
6809
6936
 
@@ -6817,7 +6944,8 @@ export declare interface TableScrollAreaProps extends React_2.HTMLAttributes<HTM
6817
6944
  roundTop?: boolean;
6818
6945
  /**
6819
6946
  * Shows a slim horizontal scrollbar beneath the table when the content
6820
- * overflows (Figma `V2 Scroll Bar`). @default false
6947
+ * overflows (Figma `V2 Scroll Bar`), with room reserved for it only while
6948
+ * the table is wider than its card. @default false
6821
6949
  */
6822
6950
  showScrollbar?: boolean;
6823
6951
  }
@@ -6903,7 +7031,8 @@ export declare const TableToolbar: React_2.ForwardRefExoticComponent<TableToolba
6903
7031
  * Labelled control for {@link TableToolbar}: 12px label followed by a 16px
6904
7032
  * icon. Below the `md` breakpoint only the icon shows, and the label stays as
6905
7033
  * the accessible name, so a full bar still fits a phone. Works as a plain
6906
- * button or as a `DropdownMenuTrigger` child.
7034
+ * button or as a `DropdownMenuTrigger` or `PopoverTrigger` child, and keeps its
7035
+ * hover colour while that menu or popover is open.
6907
7036
  */
6908
7037
  export declare const TableToolbarAction: React_2.ForwardRefExoticComponent<TableToolbarActionProps & React_2.RefAttributes<HTMLButtonElement>>;
6909
7038
 
@@ -7166,6 +7295,42 @@ export declare const TabsTrigger: React_2.ForwardRefExoticComponent<Omit<TabsPri
7166
7295
  /** Props for the {@link TabsTrigger} button component. */
7167
7296
  export declare type TabsTriggerProps = React_2.ComponentPropsWithoutRef<typeof TabsPrimitive.Trigger>;
7168
7297
 
7298
+ /**
7299
+ * A small label for something the user applied, such as a fan tag, a list or an active filter.
7300
+ * Status labels belong in {@link Pill} or {@link Badge}.
7301
+ *
7302
+ * Pass `onRemove` to add a × button. The label is plain text, and the × is a real button named by
7303
+ * `removeLabel`, so nothing interactive is nested inside the tag except the ×.
7304
+ *
7305
+ * @example
7306
+ * ```tsx
7307
+ * <Tag
7308
+ * variant="blue"
7309
+ * leadingIcon="🐳"
7310
+ * onRemove={() => removeTag("whale")}
7311
+ * removeLabel={t("tags.remove", { name: "Whale" })}
7312
+ * >
7313
+ * Whale
7314
+ * </Tag>
7315
+ * ```
7316
+ */
7317
+ export declare const Tag: React_2.ForwardRefExoticComponent<TagProps & React_2.RefAttributes<HTMLSpanElement>>;
7318
+
7319
+ declare interface TagBaseProps extends Omit<React_2.HTMLAttributes<HTMLSpanElement>, "children"> {
7320
+ /** Colour from the V2 Tags palette. @default "gray" */
7321
+ variant?: TagVariant;
7322
+ /** Height in pixels: 16 for dense rows, 20 for panels, pickers and filter tags. @default "20" */
7323
+ size?: TagSize;
7324
+ /**
7325
+ * Emoji (a string) or icon (an element) displayed before the label. Decorative, so it is hidden
7326
+ * from assistive technology. Size an icon yourself: 14px on a 20px tag (`className="size-3.5"`)
7327
+ * and 12px on a 16px tag (`className="size-3"`).
7328
+ */
7329
+ leadingIcon?: React_2.ReactNode;
7330
+ /** The visible label. */
7331
+ children: React_2.ReactNode;
7332
+ }
7333
+
7169
7334
  /**
7170
7335
  * Tag icon. Renders at sizes 16, 24, or 32 px with outlined and filled variants.
7171
7336
  *
@@ -7179,6 +7344,43 @@ export declare const TagIcon: React_2.ForwardRefExoticComponent<BaseIconProps &
7179
7344
  /** Props for {@link TagIcon}. See {@link BaseIconProps} for the shared shape. */
7180
7345
  export declare type TagIconProps = BaseIconProps;
7181
7346
 
7347
+ export declare type TagProps = TagBaseProps & (TagRemovableProps | TagStaticProps);
7348
+
7349
+ declare interface TagRemovableProps {
7350
+ /**
7351
+ * Renders a remove (×) button when set. Receives the click, so a caller can stop it bubbling.
7352
+ * Pass `undefined` to hide the button conditionally while keeping `removeLabel`.
7353
+ */
7354
+ onRemove?: ((event: React_2.MouseEvent<HTMLButtonElement>) => void) | undefined;
7355
+ /** Accessible name of the remove button, as one translated string such as "Remove Whale". */
7356
+ removeLabel: string;
7357
+ /**
7358
+ * `"always"` keeps the × visible (lists, filter tags). `"hover"` reveals it on hover or
7359
+ * keyboard focus, and keeps it visible on devices that cannot hover.
7360
+ * In `"hover"` mode the tag is narrower at rest and widens when the × appears; its height never changes.
7361
+ * @default "always"
7362
+ */
7363
+ removeVisibility?: TagRemoveVisibility;
7364
+ }
7365
+
7366
+ /** When the remove button is shown. */
7367
+ export declare type TagRemoveVisibility = "always" | "hover";
7368
+
7369
+ /** Height of the tag in pixels. */
7370
+ export declare type TagSize = "16" | "20";
7371
+
7372
+ declare interface TagStaticProps {
7373
+ /** Leave unset for a tag with no remove button. */
7374
+ onRemove?: undefined;
7375
+ /** Only used with `onRemove`. */
7376
+ removeLabel?: undefined;
7377
+ /** Only used with `onRemove`. */
7378
+ removeVisibility?: undefined;
7379
+ }
7380
+
7381
+ /** Colour of the tag, from the V2 Tags palette. */
7382
+ export declare type TagVariant = "gray" | "blue" | "teal" | "green" | "amber" | "red" | "pink" | "purple";
7383
+
7182
7384
  /**
7183
7385
  * Task icon. Renders at sizes 16, 24, or 32 px.
7184
7386
  *
@@ -8029,7 +8231,7 @@ export declare const VaultIcon: React_2.ForwardRefExoticComponent<BaseIconProps
8029
8231
  export declare type VaultIconProps = BaseIconProps;
8030
8232
 
8031
8233
  /**
8032
- * Verified badge icon. Renders at sizes 16, 24, or 32 px with outlined and filled variants.
8234
+ * Verify icon. Renders at sizes 16, 24, or 32 px with outlined and filled variants.
8033
8235
  * Defaults to the filled variant.
8034
8236
  *
8035
8237
  * @example
package/dist/index.mjs CHANGED
@@ -238,6 +238,7 @@ import { Pagination } from "./components/Pagination/Pagination.mjs";
238
238
  import { PasswordField } from "./components/PasswordField/PasswordField.mjs";
239
239
  import { PhoneField } from "./components/PhoneField/PhoneField.mjs";
240
240
  import { Pill } from "./components/Pill/Pill.mjs";
241
+ import { Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverTrigger } from "./components/Popover/Popover.mjs";
241
242
  import { ProfileOnlineStatus } from "./components/ProfileOnlineStatus/ProfileOnlineStatus.mjs";
242
243
  import { ProfileStatus } from "./components/ProfileStatus/ProfileStatus.mjs";
243
244
  import { ProgressBar } from "./components/ProgressBar/ProgressBar.mjs";
@@ -270,6 +271,7 @@ import { TabsList } from "./components/Tabs/TabsList.mjs";
270
271
  import { TabsListSkeleton } from "./components/Tabs/TabsListSkeleton.mjs";
271
272
  import { TabsOverflow, TabsOverflowItem } from "./components/Tabs/TabsOverflow.mjs";
272
273
  import { TabsTrigger } from "./components/Tabs/TabsTrigger.mjs";
274
+ import { Tag } from "./components/Tag/Tag.mjs";
273
275
  import { TextArea } from "./components/TextArea/TextArea.mjs";
274
276
  import { TextField } from "./components/TextField/TextField.mjs";
275
277
  import { Toast, ToastProvider, ToastViewport } from "./components/Toast/Toast.mjs";
@@ -522,6 +524,11 @@ export {
522
524
  Play2Icon,
523
525
  PlayIcon,
524
526
  PlusIcon,
527
+ Popover,
528
+ PopoverAnchor,
529
+ PopoverClose,
530
+ PopoverContent,
531
+ PopoverTrigger,
525
532
  PrivacyIcon,
526
533
  ProfileOnlineStatus,
527
534
  ProfileStatus,
@@ -608,6 +615,7 @@ export {
608
615
  TabsOverflow,
609
616
  TabsOverflowItem,
610
617
  TabsTrigger,
618
+ Tag,
611
619
  TagIcon,
612
620
  TaskIcon,
613
621
  TextArea,
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -515,7 +515,8 @@
515
515
  * fill and a heavier drop instead of an edge highlight, which reads as a hard
516
516
  * line. Consumers recolouring the track need `bg-none` to drop the fill.
517
517
  */
518
- :root {
518
+ :root,
519
+ .theme-v2 .theme-v2-light {
519
520
  --color-special-bottom-nav-highlight: var(--primitives-color-green-500);
520
521
  --color-content-disabled: var(--primitives-color-gray-450);
521
522
  --fv-raised-control-fill: linear-gradient(
@@ -528,7 +529,8 @@
528
529
  --fv-raised-control-thumb-shadow: 0 1px 2px rgb(0 0 0 / 0.06), 0 1px 4px -1px rgb(0 0 0 / 0.07);
529
530
  }
530
531
 
531
- .dark {
532
+ .dark,
533
+ .theme-v2 .theme-v2-dark {
532
534
  --color-special-bottom-nav-highlight: var(--primitives-color-gray-white);
533
535
  --color-content-disabled: var(--primitives-color-gray-450);
534
536
  --fv-raised-control-fill: linear-gradient(
@@ -552,7 +554,8 @@
552
554
  * `--fv-upsell-glow-negative` is the other theme's glow, for a button on an
553
555
  * inverted surface (`fv-upsell-negative`).
554
556
  */
555
- :root {
557
+ :root,
558
+ .theme-v2 .theme-v2-light {
556
559
  --fv-upsell-pool: var(--primitives-color-green-300);
557
560
  --fv-upsell-glow-on-light:
558
561
  0 0 4px color-mix(in srgb, var(--primitives-color-green-600) 60%, transparent),
@@ -565,7 +568,8 @@
565
568
  --fv-upsell-shine-easing: linear;
566
569
  }
567
570
 
568
- .dark {
571
+ .dark,
572
+ .theme-v2 .theme-v2-dark {
569
573
  --fv-upsell-glow: var(--fv-upsell-glow-on-dark);
570
574
  --fv-upsell-glow-negative: var(--fv-upsell-glow-on-light);
571
575
  }