@fanvue/ui 3.52.0 → 3.54.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 (189) hide show
  1. package/dist/cjs/components/AudioPlayer/AudioPlayer.cjs +4 -2
  2. package/dist/cjs/components/AudioPlayer/AudioPlayer.cjs.map +1 -1
  3. package/dist/cjs/components/Autocomplete/Autocomplete.cjs +34 -10
  4. package/dist/cjs/components/Autocomplete/Autocomplete.cjs.map +1 -1
  5. package/dist/cjs/components/Autocomplete/AutocompleteOptionItem.cjs +13 -1
  6. package/dist/cjs/components/Autocomplete/AutocompleteOptionItem.cjs.map +1 -1
  7. package/dist/cjs/components/Badge/Badge.cjs +7 -6
  8. package/dist/cjs/components/Badge/Badge.cjs.map +1 -1
  9. package/dist/cjs/components/BottomNavigation/BottomNavigation.cjs +2 -2
  10. package/dist/cjs/components/BottomNavigation/BottomNavigation.cjs.map +1 -1
  11. package/dist/cjs/components/Button/Button.cjs +2 -1
  12. package/dist/cjs/components/Button/Button.cjs.map +1 -1
  13. package/dist/cjs/components/Card/Card.cjs +6 -3
  14. package/dist/cjs/components/Card/Card.cjs.map +1 -1
  15. package/dist/cjs/components/Chart/ChartCard.cjs +2 -1
  16. package/dist/cjs/components/Chart/ChartCard.cjs.map +1 -1
  17. package/dist/cjs/components/Chart/ChartLoadingOverlay.cjs +1 -1
  18. package/dist/cjs/components/Chart/ChartLoadingOverlay.cjs.map +1 -1
  19. package/dist/cjs/components/ChatInput/ChatInput.cjs +2 -2
  20. package/dist/cjs/components/ChatInput/ChatInput.cjs.map +1 -1
  21. package/dist/cjs/components/ChatMessage/ChatMessage.cjs +4 -2
  22. package/dist/cjs/components/ChatMessage/ChatMessage.cjs.map +1 -1
  23. package/dist/cjs/components/Chip/Chip.cjs +10 -9
  24. package/dist/cjs/components/Chip/Chip.cjs.map +1 -1
  25. package/dist/cjs/components/CreatorCard/CreatorCard.cjs +3 -5
  26. package/dist/cjs/components/CreatorCard/CreatorCard.cjs.map +1 -1
  27. package/dist/cjs/components/CreatorCover/CreatorCover.cjs +11 -7
  28. package/dist/cjs/components/CreatorCover/CreatorCover.cjs.map +1 -1
  29. package/dist/cjs/components/DatePicker/DatePicker.cjs +37 -16
  30. package/dist/cjs/components/DatePicker/DatePicker.cjs.map +1 -1
  31. package/dist/cjs/components/DatePicker/DateRangePanel.cjs +143 -0
  32. package/dist/cjs/components/DatePicker/DateRangePanel.cjs.map +1 -0
  33. package/dist/cjs/components/DatePicker/DateRangePicker.cjs +33 -0
  34. package/dist/cjs/components/DatePicker/DateRangePicker.cjs.map +1 -0
  35. package/dist/cjs/components/DropdownMenu/DropdownMenuItem.cjs +33 -10
  36. package/dist/cjs/components/DropdownMenu/DropdownMenuItem.cjs.map +1 -1
  37. package/dist/cjs/components/DropdownMenu/DropdownMenuReorderItem.cjs +2 -1
  38. package/dist/cjs/components/DropdownMenu/DropdownMenuReorderItem.cjs.map +1 -1
  39. package/dist/cjs/components/DropdownMenu/DropdownMenuRoot.cjs +18 -13
  40. package/dist/cjs/components/DropdownMenu/DropdownMenuRoot.cjs.map +1 -1
  41. package/dist/cjs/components/DropdownMenu/DropdownMenuSelectionItems.cjs +56 -40
  42. package/dist/cjs/components/DropdownMenu/DropdownMenuSelectionItems.cjs.map +1 -1
  43. package/dist/cjs/components/FilterMenu/FilterMenu.cjs +45 -0
  44. package/dist/cjs/components/FilterMenu/FilterMenu.cjs.map +1 -0
  45. package/dist/cjs/components/IconButton/IconButton.cjs +7 -3
  46. package/dist/cjs/components/IconButton/IconButton.cjs.map +1 -1
  47. package/dist/cjs/components/Icons/MenuRowIcon.cjs +9 -2
  48. package/dist/cjs/components/Icons/MenuRowIcon.cjs.map +1 -1
  49. package/dist/cjs/components/Icons/ReorganiseIcon.cjs +65 -0
  50. package/dist/cjs/components/Icons/ReorganiseIcon.cjs.map +1 -0
  51. package/dist/cjs/components/Icons/VerifiedIcon.cjs +9 -15
  52. package/dist/cjs/components/Icons/VerifiedIcon.cjs.map +1 -1
  53. package/dist/cjs/components/Pagination/Pagination.cjs +3 -2
  54. package/dist/cjs/components/Pagination/Pagination.cjs.map +1 -1
  55. package/dist/cjs/components/PhoneField/PhoneField.cjs +21 -17
  56. package/dist/cjs/components/PhoneField/PhoneField.cjs.map +1 -1
  57. package/dist/cjs/components/Popover/Popover.cjs +69 -0
  58. package/dist/cjs/components/Popover/Popover.cjs.map +1 -0
  59. package/dist/cjs/components/Select/Select.cjs +49 -12
  60. package/dist/cjs/components/Select/Select.cjs.map +1 -1
  61. package/dist/cjs/components/Slider/SliderThumb.cjs +3 -2
  62. package/dist/cjs/components/Slider/SliderThumb.cjs.map +1 -1
  63. package/dist/cjs/components/Snackbar/Snackbar.cjs +1 -1
  64. package/dist/cjs/components/Snackbar/Snackbar.cjs.map +1 -1
  65. package/dist/cjs/components/Switch/Switch.cjs +1 -1
  66. package/dist/cjs/components/Switch/Switch.cjs.map +1 -1
  67. package/dist/cjs/components/Table/Table.cjs +104 -38
  68. package/dist/cjs/components/Table/Table.cjs.map +1 -1
  69. package/dist/cjs/components/Table/TableToolbarSearchFilters.cjs +152 -0
  70. package/dist/cjs/components/Table/TableToolbarSearchFilters.cjs.map +1 -0
  71. package/dist/cjs/components/Table/useFittingCount.cjs +51 -0
  72. package/dist/cjs/components/Table/useFittingCount.cjs.map +1 -0
  73. package/dist/cjs/components/Tag/Tag.cjs +99 -0
  74. package/dist/cjs/components/Tag/Tag.cjs.map +1 -0
  75. package/dist/cjs/components/TextArea/TextArea.cjs +5 -4
  76. package/dist/cjs/components/TextArea/TextArea.cjs.map +1 -1
  77. package/dist/cjs/components/TextField/TextField.cjs +30 -15
  78. package/dist/cjs/components/TextField/TextField.cjs.map +1 -1
  79. package/dist/cjs/date-picker.cjs +4 -0
  80. package/dist/cjs/date-picker.cjs.map +1 -1
  81. package/dist/cjs/index.cjs +12 -0
  82. package/dist/cjs/index.cjs.map +1 -1
  83. package/dist/cjs/utils/floatingContentSurface.cjs +8 -0
  84. package/dist/cjs/utils/floatingContentSurface.cjs.map +1 -0
  85. package/dist/cjs/utils/inputFieldClasses.cjs +8 -0
  86. package/dist/cjs/utils/inputFieldClasses.cjs.map +1 -0
  87. package/dist/cjs/utils/pointerCapture.cjs +20 -0
  88. package/dist/cjs/utils/pointerCapture.cjs.map +1 -0
  89. package/dist/cjs/utils/useDragToDismiss.cjs +3 -2
  90. package/dist/cjs/utils/useDragToDismiss.cjs.map +1 -1
  91. package/dist/cjs/utils/useSuppressClickAfterDrag.cjs +2 -1
  92. package/dist/cjs/utils/useSuppressClickAfterDrag.cjs.map +1 -1
  93. package/dist/components/AudioPlayer/AudioPlayer.mjs +4 -2
  94. package/dist/components/AudioPlayer/AudioPlayer.mjs.map +1 -1
  95. package/dist/components/Autocomplete/Autocomplete.mjs +34 -10
  96. package/dist/components/Autocomplete/Autocomplete.mjs.map +1 -1
  97. package/dist/components/Autocomplete/AutocompleteOptionItem.mjs +13 -1
  98. package/dist/components/Autocomplete/AutocompleteOptionItem.mjs.map +1 -1
  99. package/dist/components/Badge/Badge.mjs +7 -6
  100. package/dist/components/Badge/Badge.mjs.map +1 -1
  101. package/dist/components/BottomNavigation/BottomNavigation.mjs +2 -2
  102. package/dist/components/BottomNavigation/BottomNavigation.mjs.map +1 -1
  103. package/dist/components/Button/Button.mjs +2 -1
  104. package/dist/components/Button/Button.mjs.map +1 -1
  105. package/dist/components/Card/Card.mjs +6 -3
  106. package/dist/components/Card/Card.mjs.map +1 -1
  107. package/dist/components/Chart/ChartCard.mjs +2 -1
  108. package/dist/components/Chart/ChartCard.mjs.map +1 -1
  109. package/dist/components/Chart/ChartLoadingOverlay.mjs +1 -1
  110. package/dist/components/Chart/ChartLoadingOverlay.mjs.map +1 -1
  111. package/dist/components/ChatInput/ChatInput.mjs +2 -2
  112. package/dist/components/ChatInput/ChatInput.mjs.map +1 -1
  113. package/dist/components/ChatMessage/ChatMessage.mjs +4 -2
  114. package/dist/components/ChatMessage/ChatMessage.mjs.map +1 -1
  115. package/dist/components/Chip/Chip.mjs +10 -9
  116. package/dist/components/Chip/Chip.mjs.map +1 -1
  117. package/dist/components/CreatorCard/CreatorCard.mjs +3 -5
  118. package/dist/components/CreatorCard/CreatorCard.mjs.map +1 -1
  119. package/dist/components/CreatorCover/CreatorCover.mjs +11 -7
  120. package/dist/components/CreatorCover/CreatorCover.mjs.map +1 -1
  121. package/dist/components/DatePicker/DatePicker.mjs +39 -18
  122. package/dist/components/DatePicker/DatePicker.mjs.map +1 -1
  123. package/dist/components/DatePicker/DateRangePanel.mjs +126 -0
  124. package/dist/components/DatePicker/DateRangePanel.mjs.map +1 -0
  125. package/dist/components/DatePicker/DateRangePicker.mjs +33 -0
  126. package/dist/components/DatePicker/DateRangePicker.mjs.map +1 -0
  127. package/dist/components/DropdownMenu/DropdownMenuItem.mjs +33 -10
  128. package/dist/components/DropdownMenu/DropdownMenuItem.mjs.map +1 -1
  129. package/dist/components/DropdownMenu/DropdownMenuReorderItem.mjs +2 -1
  130. package/dist/components/DropdownMenu/DropdownMenuReorderItem.mjs.map +1 -1
  131. package/dist/components/DropdownMenu/DropdownMenuRoot.mjs +18 -13
  132. package/dist/components/DropdownMenu/DropdownMenuRoot.mjs.map +1 -1
  133. package/dist/components/DropdownMenu/DropdownMenuSelectionItems.mjs +56 -40
  134. package/dist/components/DropdownMenu/DropdownMenuSelectionItems.mjs.map +1 -1
  135. package/dist/components/FilterMenu/FilterMenu.mjs +28 -0
  136. package/dist/components/FilterMenu/FilterMenu.mjs.map +1 -0
  137. package/dist/components/IconButton/IconButton.mjs +7 -3
  138. package/dist/components/IconButton/IconButton.mjs.map +1 -1
  139. package/dist/components/Icons/MenuRowIcon.mjs +9 -2
  140. package/dist/components/Icons/MenuRowIcon.mjs.map +1 -1
  141. package/dist/components/Icons/ReorganiseIcon.mjs +48 -0
  142. package/dist/components/Icons/ReorganiseIcon.mjs.map +1 -0
  143. package/dist/components/Icons/VerifiedIcon.mjs +9 -15
  144. package/dist/components/Icons/VerifiedIcon.mjs.map +1 -1
  145. package/dist/components/Pagination/Pagination.mjs +3 -2
  146. package/dist/components/Pagination/Pagination.mjs.map +1 -1
  147. package/dist/components/PhoneField/PhoneField.mjs +21 -17
  148. package/dist/components/PhoneField/PhoneField.mjs.map +1 -1
  149. package/dist/components/Popover/Popover.mjs +51 -0
  150. package/dist/components/Popover/Popover.mjs.map +1 -0
  151. package/dist/components/Select/Select.mjs +49 -12
  152. package/dist/components/Select/Select.mjs.map +1 -1
  153. package/dist/components/Slider/SliderThumb.mjs +3 -2
  154. package/dist/components/Slider/SliderThumb.mjs.map +1 -1
  155. package/dist/components/Snackbar/Snackbar.mjs +1 -1
  156. package/dist/components/Snackbar/Snackbar.mjs.map +1 -1
  157. package/dist/components/Switch/Switch.mjs +1 -1
  158. package/dist/components/Switch/Switch.mjs.map +1 -1
  159. package/dist/components/Table/Table.mjs +104 -38
  160. package/dist/components/Table/Table.mjs.map +1 -1
  161. package/dist/components/Table/TableToolbarSearchFilters.mjs +135 -0
  162. package/dist/components/Table/TableToolbarSearchFilters.mjs.map +1 -0
  163. package/dist/components/Table/useFittingCount.mjs +34 -0
  164. package/dist/components/Table/useFittingCount.mjs.map +1 -0
  165. package/dist/components/Tag/Tag.mjs +82 -0
  166. package/dist/components/Tag/Tag.mjs.map +1 -0
  167. package/dist/components/TextArea/TextArea.mjs +5 -4
  168. package/dist/components/TextArea/TextArea.mjs.map +1 -1
  169. package/dist/components/TextField/TextField.mjs +30 -15
  170. package/dist/components/TextField/TextField.mjs.map +1 -1
  171. package/dist/date-picker.d.ts +109 -0
  172. package/dist/date-picker.mjs +5 -1
  173. package/dist/date-picker.mjs.map +1 -1
  174. package/dist/index.d.ts +317 -20
  175. package/dist/index.mjs +12 -0
  176. package/dist/index.mjs.map +1 -1
  177. package/dist/styles/base.css +51 -4
  178. package/dist/styles/theme.css +1217 -1
  179. package/dist/utils/floatingContentSurface.mjs +8 -0
  180. package/dist/utils/floatingContentSurface.mjs.map +1 -0
  181. package/dist/utils/inputFieldClasses.mjs +8 -0
  182. package/dist/utils/inputFieldClasses.mjs.map +1 -0
  183. package/dist/utils/pointerCapture.mjs +20 -0
  184. package/dist/utils/pointerCapture.mjs.map +1 -0
  185. package/dist/utils/useDragToDismiss.mjs +3 -2
  186. package/dist/utils/useDragToDismiss.mjs.map +1 -1
  187. package/dist/utils/useSuppressClickAfterDrag.mjs +2 -1
  188. package/dist/utils/useSuppressClickAfterDrag.mjs.map +1 -1
  189. package/package.json +1 -1
@@ -28,6 +28,12 @@ export declare const DatePicker: ForwardRefExoticComponent<DatePickerProps & Ref
28
28
  export declare interface DatePickerOwnProps {
29
29
  /** Display one month or two side-by-side. @default "single" */
30
30
  variant?: DatePickerVariant;
31
+ /**
32
+ * Day button size in pixels. It also scales the navigation, caption, padding and footer buttons.
33
+ * Use `"32"` for compact surfaces such as toolbar popovers.
34
+ * @default "40"
35
+ */
36
+ size?: DatePickerSize;
31
37
  /** Callback fired when the Apply button is clicked. */
32
38
  onApply?: () => void;
33
39
  /** Callback fired when the Cancel button is clicked. */
@@ -45,11 +51,114 @@ export declare interface DatePickerOwnProps {
45
51
  /** Combined props — own DatePicker options plus all react-day-picker props (except `numberOfMonths`). */
46
52
  export declare type DatePickerProps = DatePickerOwnProps & OmitDistributed<DayPickerProps, "numberOfMonths">;
47
53
 
54
+ /** Day button size in pixels. It also scales the navigation, caption, padding and footer buttons. */
55
+ export declare type DatePickerSize = "40" | "32";
56
+
48
57
  /** Layout variant — single or side-by-side month display. */
49
58
  export declare type DatePickerVariant = "single" | "double";
50
59
 
51
60
  export { DateRange }
52
61
 
62
+ /** Calendar options forwarded to the custom range calendar. */
63
+ declare type DateRangeCalendarProps = Pick<DayPickerProps, "disabled" | "startMonth" | "endMonth" | "weekStartsOn" | "locale">;
64
+
65
+ /**
66
+ * A list of date range presets, with a "Custom range" row that swaps to a one-month calendar when
67
+ * `customRangeLabel` is given. A pointer click, Space or Enter on a row picks it. A preset applies
68
+ * at once, and a custom range applies on Apply, with Cancel returning to the list. It always opens
69
+ * on the list, even when a custom range is applied, so a preset stays reachable. The arrow keys
70
+ * only move focus between rows and never pick one, so a keyboard user can reach a row without
71
+ * applying it. It renders no popover, so it can sit inside a popover or a phone sheet. The caller
72
+ * maps preset ids to dates.
73
+ *
74
+ * @example
75
+ * ```tsx
76
+ * <DateRangePanel
77
+ * aria-label="Date range"
78
+ * presets={[{ id: "7d", label: "Last 7 days" }]}
79
+ * customRangeLabel="Custom range"
80
+ * value={value}
81
+ * onValueChange={setValue}
82
+ * />
83
+ * ```
84
+ */
85
+ export declare const DateRangePanel: ForwardRefExoticComponent<DateRangePanelProps & RefAttributes<HTMLDivElement>>;
86
+
87
+ /** Props for {@link DateRangePanel}. */
88
+ export declare interface DateRangePanelProps {
89
+ /** Preset rows, in display order. */
90
+ presets: readonly DateRangePreset[];
91
+ /** Label of the last row, which opens the calendar. Omit to offer presets only. Translated by the caller. */
92
+ customRangeLabel?: string;
93
+ /** The applied selection. A custom value checks the Custom range row. Picking that row opens the calendar on the applied range. */
94
+ value: DateRangeValue;
95
+ /**
96
+ * Called with `{ type: "preset", presetId }` as soon as a preset row is picked by click, Space or
97
+ * Enter, including the current one, and with `{ type: "custom", range }` when Apply is clicked.
98
+ * Arrow keys move focus without calling it.
99
+ */
100
+ onValueChange: (value: DateRangeValue) => void;
101
+ /** Label of the Apply button. @default "Apply" */
102
+ applyLabel?: string;
103
+ /** Label of the Cancel button. @default "Cancel" */
104
+ cancelLabel?: string;
105
+ /** Called after Cancel drops the draft range and the panel returns to the preset list. */
106
+ onCancel?: () => void;
107
+ /** Bounds, locale and first weekday for the calendar. */
108
+ calendarProps?: DateRangeCalendarProps;
109
+ /** Accessible name of the preset list. Translated by the caller. */
110
+ "aria-label": string;
111
+ /** Additional CSS class name for the root element. */
112
+ className?: string;
113
+ }
114
+
115
+ /**
116
+ * A {@link DateRangePanel} in a popover under a caller-supplied trigger. The popover closes after
117
+ * a preset pick, Apply and Cancel. Closing it any other way drops an unapplied range.
118
+ *
119
+ * @example
120
+ * ```tsx
121
+ * <DateRangePicker
122
+ * aria-label="Date range"
123
+ * presets={presets}
124
+ * customRangeLabel="Custom range"
125
+ * value={value}
126
+ * onValueChange={setValue}
127
+ * >
128
+ * <TableToolbarAction icon={<ChevronDownIcon />}>Date</TableToolbarAction>
129
+ * </DateRangePicker>
130
+ * ```
131
+ */
132
+ export declare const DateRangePicker: ForwardRefExoticComponent<DateRangePickerProps & RefAttributes<HTMLDivElement>>;
133
+
134
+ /** Props for {@link DateRangePicker}. */
135
+ export declare interface DateRangePickerProps extends Omit<DateRangePanelProps, "className"> {
136
+ /** The trigger element, rendered as the popover trigger. It shows no value, so the caller owns its label. */
137
+ children: React.ReactElement;
138
+ /** Accessible name of the popover dialog and of the preset list inside it. Translated by the caller. */
139
+ "aria-label": string;
140
+ }
141
+
142
+ /** A named preset the caller maps to a date range. The kit does no date maths. */
143
+ export declare interface DateRangePreset {
144
+ /** Stable identifier emitted in `{ type: "preset", presetId }`. */
145
+ id: string;
146
+ /** Visible, already translated label. */
147
+ label: string;
148
+ }
149
+
150
+ /** The applied selection: one of the caller's presets, or an explicit custom range. */
151
+ export declare type DateRangeValue = {
152
+ type: "preset";
153
+ presetId: string;
154
+ } | {
155
+ type: "custom";
156
+ range: {
157
+ from: Date;
158
+ to: Date;
159
+ };
160
+ };
161
+
53
162
  /**
54
163
  * Like `Omit`, but preserves discriminated unions.
55
164
  *
@@ -1,6 +1,10 @@
1
1
  "use client";
2
2
  import { DatePicker } from "./components/DatePicker/DatePicker.mjs";
3
+ import { DateRangePanel } from "./components/DatePicker/DateRangePanel.mjs";
4
+ import { DateRangePicker } from "./components/DatePicker/DateRangePicker.mjs";
3
5
  export {
4
- DatePicker
6
+ DatePicker,
7
+ DateRangePanel,
8
+ DateRangePicker
5
9
  };
6
10
  //# sourceMappingURL=date-picker.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"date-picker.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
1
+ {"version":3,"file":"date-picker.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
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`. */
@@ -2039,8 +2050,8 @@ export declare interface ChipProps extends React_2.HTMLAttributes<HTMLElement> {
2039
2050
  */
2040
2051
  dotted?: boolean;
2041
2052
  /**
2042
- * Draws the unselected state as a 1px `buttons-chip-default` outline over a
2043
- * transparent background instead of filling with that same token. This is the
2053
+ * Draws the unselected state as a 1px `neutral-alphas-100` outline over a
2054
+ * transparent background instead of the solid chip fill. This is the
2044
2055
  * Figma `V2 Insights Chips` treatment, used where chips sit over a chart and a
2045
2056
  * row of solid fills would compete with the plotted series. The selected state
2046
2057
  * is unaffected — it stays filled — as are the `dark` and `dotted` variants.
@@ -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
 
@@ -3684,6 +3716,48 @@ export declare interface FanFollowerCountProps extends React_2.HTMLAttributes<HT
3684
3716
  subsLabel?: string;
3685
3717
  }
3686
3718
 
3719
+ /**
3720
+ * A menu of options under a trigger you supply, where several can be ticked. Each tick calls
3721
+ * `onValueChange` at once and the menu stays open, so several can be ticked in one go. It holds no
3722
+ * state: pass `value` back in. The ref goes to the menu content.
3723
+ *
3724
+ * Keyboard support comes from the menu: arrow keys move, Space or Enter ticks, typing jumps to a
3725
+ * label, Escape closes.
3726
+ *
3727
+ * @example
3728
+ * ```tsx
3729
+ * <FilterMenu options={platforms} value={selected} onValueChange={setSelected}>
3730
+ * <TableToolbarAction icon={<ChevronDownIcon size={16} />} active={selected.length > 0}>
3731
+ * Platform
3732
+ * </TableToolbarAction>
3733
+ * </FilterMenu>
3734
+ * ```
3735
+ */
3736
+ export declare const FilterMenu: (<V extends string>(props: FilterMenuProps<V> & React_2.RefAttributes<HTMLDivElement>) => React_2.ReactElement | null) & {
3737
+ displayName?: string;
3738
+ };
3739
+
3740
+ /** One choice in a {@link FilterMenu}. */
3741
+ export declare interface FilterMenuOption<V extends string = string> {
3742
+ /** Value reported through `onValueChange`. */
3743
+ value: V;
3744
+ /** Visible label. */
3745
+ label: string;
3746
+ }
3747
+
3748
+ export declare interface FilterMenuProps<V extends string = string> {
3749
+ /** The trigger element, e.g. a `TableToolbarAction`. It must forward its ref and spread props. */
3750
+ children: React_2.ReactElement;
3751
+ /** The choices, in display order. */
3752
+ options: readonly FilterMenuOption<V>[];
3753
+ /** The ticked values. */
3754
+ value: readonly V[];
3755
+ /** Called with the new ticked values each time an option is ticked or unticked. */
3756
+ onValueChange: (value: V[]) => void;
3757
+ /** Props for the menu content, such as `align` or `aria-label`. @default { align: "start" } */
3758
+ contentProps?: Omit<DropdownMenuContentProps, "children">;
3759
+ }
3760
+
3687
3761
  /**
3688
3762
  * Flag icon. Renders at sizes 16, 24, or 32 px with outlined and filled variants.
3689
3763
  *
@@ -5067,6 +5141,89 @@ export declare const PlusIcon: React_2.ForwardRefExoticComponent<React_2.SVGAttr
5067
5141
  className?: string;
5068
5142
  } & React_2.RefAttributes<SVGSVGElement>>;
5069
5143
 
5144
+ /**
5145
+ * Root of a popover. Holds the open state shared by its trigger and content.
5146
+ *
5147
+ * @example
5148
+ * ```tsx
5149
+ * <Popover>
5150
+ * <PopoverTrigger asChild><Button>Open</Button></PopoverTrigger>
5151
+ * <PopoverContent aria-label="Details">Content</PopoverContent>
5152
+ * </Popover>
5153
+ * ```
5154
+ */
5155
+ export declare const Popover: React_2.FC<PopoverPrimitive.PopoverProps>;
5156
+
5157
+ /** Optional element the content positions against instead of the trigger. */
5158
+ export declare const PopoverAnchor: React_2.ForwardRefExoticComponent<PopoverPrimitive.PopoverAnchorProps & React_2.RefAttributes<HTMLDivElement>>;
5159
+
5160
+ /** Props for {@link PopoverAnchor}. */
5161
+ export declare type PopoverAnchorProps = React_2.ComponentPropsWithoutRef<typeof PopoverPrimitive.Anchor>;
5162
+
5163
+ /** Element that closes the popover when activated. Use `asChild` to render your own button. */
5164
+ export declare const PopoverClose: React_2.ForwardRefExoticComponent<PopoverPrimitive.PopoverCloseProps & React_2.RefAttributes<HTMLButtonElement>>;
5165
+
5166
+ /** Props for {@link PopoverClose}. */
5167
+ export declare type PopoverCloseProps = React_2.ComponentPropsWithoutRef<typeof PopoverPrimitive.Close>;
5168
+
5169
+ /**
5170
+ * Floating panel rendered in a portal, styled like the {@link DropdownMenuContent} surface.
5171
+ * Focus moves into it on open and returns to the trigger on close. It renders a `role="dialog"`,
5172
+ * so pass `aria-label` or `aria-labelledby` to name it. The content unmounts when closed;
5173
+ * `forceMount` is not supported.
5174
+ *
5175
+ * @example
5176
+ * ```tsx
5177
+ * <PopoverContent align="end" aria-label="Filters">Filters</PopoverContent>
5178
+ * ```
5179
+ */
5180
+ export declare const PopoverContent: React_2.ForwardRefExoticComponent<PopoverContentProps & React_2.RefAttributes<HTMLDivElement>>;
5181
+
5182
+ /** Own props of {@link PopoverContent}, before the accessible name requirement is applied. */
5183
+ export declare interface PopoverContentBaseProps extends Omit<React_2.ComponentPropsWithoutRef<typeof PopoverPrimitive.Content>, "forceMount"> {
5184
+ /** Alignment of the content against the trigger. @default "start" */
5185
+ align?: PopoverPrimitive.PopoverContentProps["align"];
5186
+ /** Distance in pixels between the trigger and the content. @default 8 */
5187
+ sideOffset?: PopoverPrimitive.PopoverContentProps["sideOffset"];
5188
+ /**
5189
+ * Distance in pixels kept between the content and the viewport edge, as a number or a per-side
5190
+ * object. @default 16
5191
+ */
5192
+ collisionPadding?: PopoverPrimitive.PopoverContentProps["collisionPadding"];
5193
+ /** Additional CSS classes merged onto the content surface. */
5194
+ className?: string;
5195
+ }
5196
+
5197
+ /** Accessible name for the dialog: at least one of `aria-label` or `aria-labelledby` is required. */
5198
+ export declare type PopoverContentName = {
5199
+ /** Text label naming the dialog. */
5200
+ "aria-label": string;
5201
+ /** Id of an element that names the dialog. */
5202
+ "aria-labelledby"?: string;
5203
+ } | {
5204
+ /** Text label naming the dialog. */
5205
+ "aria-label"?: string;
5206
+ /** Id of an element that names the dialog. */
5207
+ "aria-labelledby": string;
5208
+ };
5209
+
5210
+ /** Props for {@link PopoverContent}. */
5211
+ export declare type PopoverContentProps = PopoverContentBaseProps & PopoverContentName;
5212
+
5213
+ /** Props for {@link Popover}. */
5214
+ export declare type PopoverProps = React_2.ComponentPropsWithoutRef<typeof PopoverPrimitive.Root>;
5215
+
5216
+ /**
5217
+ * Element that toggles the popover. Use `asChild` to render your own button.
5218
+ *
5219
+ * On touch and pen, a press-and-release that moves past a small threshold counts as a drag, and
5220
+ * the synthetic click that follows it is ignored, so scrolling past the trigger does not open it.
5221
+ */
5222
+ export declare const PopoverTrigger: React_2.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverTriggerProps & React_2.RefAttributes<HTMLButtonElement>, "ref"> & React_2.RefAttributes<HTMLButtonElement>>;
5223
+
5224
+ /** Props for {@link PopoverTrigger}. */
5225
+ export declare type PopoverTriggerProps = React_2.ComponentPropsWithoutRef<typeof PopoverPrimitive.Trigger>;
5226
+
5070
5227
  /**
5071
5228
  * Privacy icon. Renders at sizes 16, 24, or 32 px with outlined and filled variants.
5072
5229
  *
@@ -5405,6 +5562,19 @@ export declare const RefreshArrowIcon: React_2.ForwardRefExoticComponent<BaseIco
5405
5562
  /** Props for {@link RefreshArrowIcon}. See {@link BaseIconProps} for the shared shape. */
5406
5563
  export declare type RefreshArrowIconProps = BaseIconProps;
5407
5564
 
5565
+ /**
5566
+ * Reorganise icon. Renders at sizes 16, 24, or 32 px with outlined and filled variants.
5567
+ *
5568
+ * @example
5569
+ * ```tsx
5570
+ * <ReorganiseIcon size={24} filled />
5571
+ * ```
5572
+ */
5573
+ export declare const ReorganiseIcon: React_2.ForwardRefExoticComponent<BaseIconProps & React_2.RefAttributes<SVGSVGElement>>;
5574
+
5575
+ /** Props for {@link ReorganiseIcon}. See {@link BaseIconProps} for the shared shape. */
5576
+ export declare type ReorganiseIconProps = BaseIconProps;
5577
+
5408
5578
  /**
5409
5579
  * Repeat icon. Renders at sizes 16, 24, or 32 px.
5410
5580
  *
@@ -5760,7 +5930,7 @@ export declare interface SelectContentProps extends React_2.ComponentPropsWithou
5760
5930
  /**
5761
5931
  * Groups related {@link SelectItem} elements under a {@link SelectLabel}.
5762
5932
  */
5763
- export declare const SelectGroup: React_2.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React_2.RefAttributes<HTMLDivElement>>;
5933
+ export declare const SelectGroup: React_2.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectGroupProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
5764
5934
 
5765
5935
  /** Props for {@link SelectGroup}. */
5766
5936
  export declare type SelectGroupProps = React_2.ComponentPropsWithoutRef<typeof SelectPrimitive.Group>;
@@ -5769,8 +5939,13 @@ export declare type SelectGroupProps = React_2.ComponentPropsWithoutRef<typeof S
5769
5939
  * An individual option inside {@link SelectContent}, following the V2 Menu Item spec.
5770
5940
  *
5771
5941
  * 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.
5942
+ * and the standard hover / selected / disabled states. The selected row rests on
5943
+ * `Buttons/Navigation/Hover` with a semibold label and a trailing check; hovering
5944
+ * it shows `Interaction/Hover` like any other row. Under the v2 palette the fill is
5945
+ * inverted, with inverted content, and a highlighted selected row moves to `Menu Item
5946
+ * Selected Hover`. Under the v2 palette the list opens with the selected row on its own
5947
+ * fill: the hover fill waits until the person moves the pointer or presses a key. Rows do not shrink, so a
5948
+ * two-line row stays whole when the list scrolls.
5774
5949
  *
5775
5950
  * @example
5776
5951
  * ```tsx
@@ -6631,6 +6806,11 @@ export declare interface TableFooterProps extends React_2.HTMLAttributes<HTMLTab
6631
6806
  */
6632
6807
  export declare const TableHead: React_2.ForwardRefExoticComponent<TableHeadProps & React_2.RefAttributes<HTMLTableCellElement>>;
6633
6808
 
6809
+ /**
6810
+ * `<thead>` wrapper. Its header cells stay pinned to the top while rows
6811
+ * scroll beneath them. Row header cells in {@link TableBody} scroll with
6812
+ * their rows.
6813
+ */
6634
6814
  export declare const TableHeader: React_2.ForwardRefExoticComponent<TableHeaderProps & React_2.RefAttributes<HTMLTableSectionElement>>;
6635
6815
 
6636
6816
  export declare interface TableHeaderProps extends React_2.HTMLAttributes<HTMLTableSectionElement> {
@@ -6802,8 +6982,11 @@ export declare interface TableRowProps extends React_2.HTMLAttributes<HTMLTableR
6802
6982
  }
6803
6983
 
6804
6984
  /**
6805
- * Horizontal scroll container for wide tables. The inner scrollport keeps
6806
- * `border-collapse` styles intact when the table wraps.
6985
+ * Scroll container for the table. Wide tables scroll sideways. When its
6986
+ * {@link TableCard} has a bounded height (a flex child of a full-height page,
6987
+ * or a set height), the rows scroll inside the card under a pinned header
6988
+ * and the card's footer stays in view. The area fills the card's height, so
6989
+ * in a card taller than its rows the footer sits at the bottom of the card.
6807
6990
  */
6808
6991
  export declare const TableScrollArea: React_2.ForwardRefExoticComponent<TableScrollAreaProps & React_2.RefAttributes<HTMLDivElement>>;
6809
6992
 
@@ -6817,7 +7000,8 @@ export declare interface TableScrollAreaProps extends React_2.HTMLAttributes<HTM
6817
7000
  roundTop?: boolean;
6818
7001
  /**
6819
7002
  * Shows a slim horizontal scrollbar beneath the table when the content
6820
- * overflows (Figma `V2 Scroll Bar`). @default false
7003
+ * overflows (Figma `V2 Scroll Bar`), with room reserved for it only while
7004
+ * the table is wider than its card. @default false
6821
7005
  */
6822
7006
  showScrollbar?: boolean;
6823
7007
  }
@@ -6901,16 +7085,19 @@ export declare const TableToolbar: React_2.ForwardRefExoticComponent<TableToolba
6901
7085
 
6902
7086
  /**
6903
7087
  * Labelled control for {@link TableToolbar}: 12px label followed by a 16px
6904
- * icon. Below the `md` breakpoint only the icon shows, and the label stays as
6905
- * the accessible name, so a full bar still fits a phone. Works as a plain
6906
- * button or as a `DropdownMenuTrigger` child.
7088
+ * icon, with 8px of padding either side. It rests on secondary text, fills with
7089
+ * `Interaction/Hover` on hover and while `active`, and with `Neutral Alphas/100`
7090
+ * while the menu or popover it triggers is open (`data-state="open"`). Below
7091
+ * the `md` breakpoint only the icon shows, and the label stays as the
7092
+ * accessible name, so a full bar still fits a phone. Works as a plain button or
7093
+ * as a `DropdownMenuTrigger` or `PopoverTrigger` child.
6907
7094
  */
6908
7095
  export declare const TableToolbarAction: React_2.ForwardRefExoticComponent<TableToolbarActionProps & React_2.RefAttributes<HTMLButtonElement>>;
6909
7096
 
6910
7097
  export declare interface TableToolbarActionProps extends React_2.ButtonHTMLAttributes<HTMLButtonElement> {
6911
7098
  /** 16px icon after the label. @default up/down arrows, for a menu trigger showing its current value */
6912
7099
  icon?: React_2.ReactNode;
6913
- /** Tints the icon with the brand colour while a toggle or filter is on. @default false */
7100
+ /** Marks a toggle or filter as on: primary text on the `Interaction/Hover` fill. @default false */
6914
7101
  active?: boolean;
6915
7102
  }
6916
7103
 
@@ -6932,9 +7119,29 @@ export declare interface TableToolbarProps extends React_2.HTMLAttributes<HTMLDi
6932
7119
  /**
6933
7120
  * Borderless search field for the left slot of {@link TableToolbar}:
6934
7121
  * 16px search icon, 12px text and a clear button once there is a query.
7122
+ *
7123
+ * Pass `filters` to show the applied filters before the input from the `md`
7124
+ * breakpoint up, each with a × button, and `onClearFilters` for a "Clear all"
7125
+ * action after it. The ones that do not fit collapse into a "+N" tag, so the
7126
+ * toolbar never grows. Keep `filters` defined (an empty array when none apply)
7127
+ * so the input is not remounted as filters come and go.
6935
7128
  */
6936
7129
  export declare const TableToolbarSearch: React_2.ForwardRefExoticComponent<TableToolbarSearchProps & React_2.RefAttributes<HTMLInputElement>>;
6937
7130
 
7131
+ /** An applied filter shown inside a `TableToolbarSearch`, e.g. "Platform is Instagram". */
7132
+ export declare interface TableToolbarSearchFilter {
7133
+ /** Stable key for the filter. */
7134
+ id: string;
7135
+ /** Secondary text, e.g. "Platform is". */
7136
+ name: string;
7137
+ /** Primary text, e.g. "Instagram, YouTube". */
7138
+ value: string;
7139
+ /** Called when the filter's × button is pressed. */
7140
+ onRemove: () => void;
7141
+ /** Accessible name of the × button, as one translated string such as "Remove Platform filter". */
7142
+ removeLabel: string;
7143
+ }
7144
+
6938
7145
  export declare interface TableToolbarSearchProps extends Omit<React_2.InputHTMLAttributes<HTMLInputElement>, "value" | "onChange" | "type"> {
6939
7146
  /** Current query. */
6940
7147
  value: string;
@@ -6942,6 +7149,23 @@ export declare interface TableToolbarSearchProps extends Omit<React_2.InputHTMLA
6942
7149
  onValueChange: (value: string) => void;
6943
7150
  /** Accessible name of the clear button. */
6944
7151
  clearLabel: string;
7152
+ /**
7153
+ * Applied filters, shown between the search icon and the input from the `md` breakpoint up. Array
7154
+ * order is the priority: the leading filters that fit are shown and the rest collapse into a "+N"
7155
+ * tag. Keep it defined (an empty array when none apply) so the input is not remounted as filters
7156
+ * come and go.
7157
+ */
7158
+ filters?: readonly TableToolbarSearchFilter[];
7159
+ /**
7160
+ * Accessible text of the "+N" tag, e.g. `(count) => \`${count} more filters\``. Pass it whenever
7161
+ * `filters` is passed, so the hidden count is announced in words. Without it the tag is read as
7162
+ * its visible text.
7163
+ */
7164
+ formatHiddenFilters?: (count: number) => string;
7165
+ /** Label of the "Clear all" action. It shows only with `onClearFilters` and an applied filter. */
7166
+ clearFiltersLabel?: string;
7167
+ /** Called when "Clear all" is pressed. It shows only with `clearFiltersLabel` and an applied filter. */
7168
+ onClearFilters?: () => void;
6945
7169
  }
6946
7170
 
6947
7171
  /**
@@ -7166,6 +7390,42 @@ export declare const TabsTrigger: React_2.ForwardRefExoticComponent<Omit<TabsPri
7166
7390
  /** Props for the {@link TabsTrigger} button component. */
7167
7391
  export declare type TabsTriggerProps = React_2.ComponentPropsWithoutRef<typeof TabsPrimitive.Trigger>;
7168
7392
 
7393
+ /**
7394
+ * A small label for something the user applied, such as a fan tag, a list or an active filter.
7395
+ * Status labels belong in {@link Pill} or {@link Badge}.
7396
+ *
7397
+ * Pass `onRemove` to add a × button. The label is plain text, and the × is a real button named by
7398
+ * `removeLabel`, so nothing interactive is nested inside the tag except the ×.
7399
+ *
7400
+ * @example
7401
+ * ```tsx
7402
+ * <Tag
7403
+ * variant="blue"
7404
+ * leadingIcon="🐳"
7405
+ * onRemove={() => removeTag("whale")}
7406
+ * removeLabel={t("tags.remove", { name: "Whale" })}
7407
+ * >
7408
+ * Whale
7409
+ * </Tag>
7410
+ * ```
7411
+ */
7412
+ export declare const Tag: React_2.ForwardRefExoticComponent<TagProps & React_2.RefAttributes<HTMLSpanElement>>;
7413
+
7414
+ declare interface TagBaseProps extends Omit<React_2.HTMLAttributes<HTMLSpanElement>, "children"> {
7415
+ /** Colour from the V2 Tags palette. @default "gray" */
7416
+ variant?: TagVariant;
7417
+ /** Height in pixels: 16 for dense rows, 20 for panels, pickers and filter tags. @default "20" */
7418
+ size?: TagSize;
7419
+ /**
7420
+ * Emoji (a string) or icon (an element) displayed before the label. Decorative, so it is hidden
7421
+ * from assistive technology. Size an icon yourself: 14px on a 20px tag (`className="size-3.5"`)
7422
+ * and 12px on a 16px tag (`className="size-3"`).
7423
+ */
7424
+ leadingIcon?: React_2.ReactNode;
7425
+ /** The visible label. */
7426
+ children: React_2.ReactNode;
7427
+ }
7428
+
7169
7429
  /**
7170
7430
  * Tag icon. Renders at sizes 16, 24, or 32 px with outlined and filled variants.
7171
7431
  *
@@ -7179,6 +7439,43 @@ export declare const TagIcon: React_2.ForwardRefExoticComponent<BaseIconProps &
7179
7439
  /** Props for {@link TagIcon}. See {@link BaseIconProps} for the shared shape. */
7180
7440
  export declare type TagIconProps = BaseIconProps;
7181
7441
 
7442
+ export declare type TagProps = TagBaseProps & (TagRemovableProps | TagStaticProps);
7443
+
7444
+ declare interface TagRemovableProps {
7445
+ /**
7446
+ * Renders a remove (×) button when set. Receives the click, so a caller can stop it bubbling.
7447
+ * Pass `undefined` to hide the button conditionally while keeping `removeLabel`.
7448
+ */
7449
+ onRemove?: ((event: React_2.MouseEvent<HTMLButtonElement>) => void) | undefined;
7450
+ /** Accessible name of the remove button, as one translated string such as "Remove Whale". */
7451
+ removeLabel: string;
7452
+ /**
7453
+ * `"always"` keeps the × visible (lists, filter tags). `"hover"` reveals it on hover or
7454
+ * keyboard focus, and keeps it visible on devices that cannot hover.
7455
+ * In `"hover"` mode the tag is narrower at rest and widens when the × appears; its height never changes.
7456
+ * @default "always"
7457
+ */
7458
+ removeVisibility?: TagRemoveVisibility;
7459
+ }
7460
+
7461
+ /** When the remove button is shown. */
7462
+ export declare type TagRemoveVisibility = "always" | "hover";
7463
+
7464
+ /** Height of the tag in pixels. */
7465
+ export declare type TagSize = "16" | "20";
7466
+
7467
+ declare interface TagStaticProps {
7468
+ /** Leave unset for a tag with no remove button. */
7469
+ onRemove?: undefined;
7470
+ /** Only used with `onRemove`. */
7471
+ removeLabel?: undefined;
7472
+ /** Only used with `onRemove`. */
7473
+ removeVisibility?: undefined;
7474
+ }
7475
+
7476
+ /** Colour of the tag, from the V2 Tags palette. */
7477
+ export declare type TagVariant = "gray" | "blue" | "teal" | "green" | "amber" | "red" | "pink" | "purple";
7478
+
7182
7479
  /**
7183
7480
  * Task icon. Renders at sizes 16, 24, or 32 px.
7184
7481
  *
@@ -8029,7 +8326,7 @@ export declare const VaultIcon: React_2.ForwardRefExoticComponent<BaseIconProps
8029
8326
  export declare type VaultIconProps = BaseIconProps;
8030
8327
 
8031
8328
  /**
8032
- * Verified badge icon. Renders at sizes 16, 24, or 32 px with outlined and filled variants.
8329
+ * Verify icon. Renders at sizes 16, 24, or 32 px with outlined and filled variants.
8033
8330
  * Defaults to the filled variant.
8034
8331
  *
8035
8332
  * @example