@fanvue/ui 3.25.0 → 3.26.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 (70) hide show
  1. package/dist/cjs/components/Accordion/AccordionTrigger.cjs +1 -1
  2. package/dist/cjs/components/Accordion/AccordionTrigger.cjs.map +1 -1
  3. package/dist/cjs/components/AiButton/AiButton.cjs +2 -2
  4. package/dist/cjs/components/AiButton/AiButton.cjs.map +1 -1
  5. package/dist/cjs/components/AiDisclosureBadge/AiDisclosureBadge.cjs +65 -0
  6. package/dist/cjs/components/AiDisclosureBadge/AiDisclosureBadge.cjs.map +1 -0
  7. package/dist/cjs/components/AiDisclosureLabel/AiDisclosureLabel.cjs +72 -0
  8. package/dist/cjs/components/AiDisclosureLabel/AiDisclosureLabel.cjs.map +1 -0
  9. package/dist/cjs/components/Alert/Alert.cjs +1 -1
  10. package/dist/cjs/components/Alert/Alert.cjs.map +1 -1
  11. package/dist/cjs/components/BottomNavigation/BottomNavigation.cjs +1 -1
  12. package/dist/cjs/components/BottomNavigation/BottomNavigation.cjs.map +1 -1
  13. package/dist/cjs/components/DropdownMenu/DropdownMenu.cjs +4 -4
  14. package/dist/cjs/components/DropdownMenu/DropdownMenu.cjs.map +1 -1
  15. package/dist/cjs/components/EmptyState/EmptyState.cjs +2 -2
  16. package/dist/cjs/components/EmptyState/EmptyState.cjs.map +1 -1
  17. package/dist/cjs/components/Icons/AiSettingsIcon.cjs +92 -0
  18. package/dist/cjs/components/Icons/AiSettingsIcon.cjs.map +1 -0
  19. package/dist/cjs/components/Icons/ProgrammingArrowIcon.cjs +139 -0
  20. package/dist/cjs/components/Icons/ProgrammingArrowIcon.cjs.map +1 -0
  21. package/dist/cjs/components/Icons/RefreshArrowIcon.cjs +61 -0
  22. package/dist/cjs/components/Icons/RefreshArrowIcon.cjs.map +1 -0
  23. package/dist/cjs/components/Logo/Logo.cjs +1 -1
  24. package/dist/cjs/components/Logo/Logo.cjs.map +1 -1
  25. package/dist/cjs/components/SegmentedControl/SegmentedControl.cjs +169 -32
  26. package/dist/cjs/components/SegmentedControl/SegmentedControl.cjs.map +1 -1
  27. package/dist/cjs/components/Slider/SliderLayout.cjs +1 -1
  28. package/dist/cjs/components/Slider/SliderLayout.cjs.map +1 -1
  29. package/dist/cjs/components/Table/Table.cjs +2 -2
  30. package/dist/cjs/components/Table/Table.cjs.map +1 -1
  31. package/dist/cjs/components/UserDisplayName/UserDisplayName.cjs +1 -1
  32. package/dist/cjs/components/UserDisplayName/UserDisplayName.cjs.map +1 -1
  33. package/dist/cjs/index.cjs +10 -0
  34. package/dist/cjs/index.cjs.map +1 -1
  35. package/dist/components/Accordion/AccordionTrigger.mjs +1 -1
  36. package/dist/components/Accordion/AccordionTrigger.mjs.map +1 -1
  37. package/dist/components/AiButton/AiButton.mjs +2 -2
  38. package/dist/components/AiButton/AiButton.mjs.map +1 -1
  39. package/dist/components/AiDisclosureBadge/AiDisclosureBadge.mjs +48 -0
  40. package/dist/components/AiDisclosureBadge/AiDisclosureBadge.mjs.map +1 -0
  41. package/dist/components/AiDisclosureLabel/AiDisclosureLabel.mjs +55 -0
  42. package/dist/components/AiDisclosureLabel/AiDisclosureLabel.mjs.map +1 -0
  43. package/dist/components/Alert/Alert.mjs +1 -1
  44. package/dist/components/Alert/Alert.mjs.map +1 -1
  45. package/dist/components/BottomNavigation/BottomNavigation.mjs +1 -1
  46. package/dist/components/BottomNavigation/BottomNavigation.mjs.map +1 -1
  47. package/dist/components/DropdownMenu/DropdownMenu.mjs +4 -4
  48. package/dist/components/DropdownMenu/DropdownMenu.mjs.map +1 -1
  49. package/dist/components/EmptyState/EmptyState.mjs +2 -2
  50. package/dist/components/EmptyState/EmptyState.mjs.map +1 -1
  51. package/dist/components/Icons/AiSettingsIcon.mjs +75 -0
  52. package/dist/components/Icons/AiSettingsIcon.mjs.map +1 -0
  53. package/dist/components/Icons/ProgrammingArrowIcon.mjs +122 -0
  54. package/dist/components/Icons/ProgrammingArrowIcon.mjs.map +1 -0
  55. package/dist/components/Icons/RefreshArrowIcon.mjs +44 -0
  56. package/dist/components/Icons/RefreshArrowIcon.mjs.map +1 -0
  57. package/dist/components/Logo/Logo.mjs +1 -1
  58. package/dist/components/Logo/Logo.mjs.map +1 -1
  59. package/dist/components/SegmentedControl/SegmentedControl.mjs +170 -33
  60. package/dist/components/SegmentedControl/SegmentedControl.mjs.map +1 -1
  61. package/dist/components/Slider/SliderLayout.mjs +1 -1
  62. package/dist/components/Slider/SliderLayout.mjs.map +1 -1
  63. package/dist/components/Table/Table.mjs +2 -2
  64. package/dist/components/Table/Table.mjs.map +1 -1
  65. package/dist/components/UserDisplayName/UserDisplayName.mjs +1 -1
  66. package/dist/components/UserDisplayName/UserDisplayName.mjs.map +1 -1
  67. package/dist/index.d.ts +127 -2
  68. package/dist/index.mjs +10 -0
  69. package/dist/index.mjs.map +1 -1
  70. package/package.json +7 -5
package/dist/index.d.ts CHANGED
@@ -179,6 +179,30 @@ export declare const AICallIcon: React_2.ForwardRefExoticComponent<BaseIconProps
179
179
  /** Props for {@link AICallIcon}. See {@link BaseIconProps} for the shared shape. */
180
180
  export declare type AICallIconProps = BaseIconProps;
181
181
 
182
+ /**
183
+ * EU AI-disclosure badge: an "AI" wordmark on a filled disc, for overlaying on
184
+ * AI-generated or AI-modified media. Ships at 16px and scales via `className`.
185
+ *
186
+ * Decorative by default. For standalone use pass `aria-hidden={false}` with
187
+ * `role="img"` and an `aria-label`. For the form that carries wording, use
188
+ * `AiDisclosureLabel`.
189
+ *
190
+ * @example
191
+ * ```tsx
192
+ * <AiDisclosureBadge tone="light" className="size-6" />
193
+ * ```
194
+ */
195
+ export declare const AiDisclosureBadge: React_2.ForwardRefExoticComponent<AiDisclosureBadgeProps & React_2.RefAttributes<SVGSVGElement>>;
196
+
197
+ /** Props for {@link AiDisclosureBadge}. */
198
+ export declare interface AiDisclosureBadgeProps extends React_2.SVGAttributes<SVGSVGElement> {
199
+ /** Colour of the mark itself, chosen for the media behind it. @default "dark" */
200
+ tone?: AiDisclosureBadgeTone;
201
+ }
202
+
203
+ /** The three treatments the EU disclosure spec defines. */
204
+ export declare type AiDisclosureBadgeTone = "dark" | "light" | "transparent";
205
+
182
206
  /**
183
207
  * AI Disclosure icon. Renders at sizes 16, 24, or 32 px with outlined and filled variants.
184
208
  *
@@ -192,6 +216,39 @@ export declare const AIDisclosureIcon: React_2.ForwardRefExoticComponent<BaseIco
192
216
  /** Props for {@link AIDisclosureIcon}. See {@link BaseIconProps} for the shared shape. */
193
217
  export declare type AIDisclosureIconProps = BaseIconProps;
194
218
 
219
+ /**
220
+ * EU AI-disclosure label: an "AI" mark followed by wording, on a filled pill,
221
+ * for marking AI-generated or AI-modified media.
222
+ *
223
+ * The wording is live text rather than baked artwork, so it translates and
224
+ * scales with the reader's font settings. It is uppercased in CSS, which keeps
225
+ * the mark consistent without forcing callers to pass shouting strings.
226
+ *
227
+ * For the compact disc form with no wording, use `AiDisclosureBadge`.
228
+ *
229
+ * @example
230
+ * ```tsx
231
+ * <AiDisclosureLabel label={t("ai.modified")} tone="transparent" />
232
+ * ```
233
+ */
234
+ export declare const AiDisclosureLabel: React_2.ForwardRefExoticComponent<AiDisclosureLabelProps & React_2.RefAttributes<HTMLSpanElement>>;
235
+
236
+ /** Props for {@link AiDisclosureLabel}. */
237
+ export declare interface AiDisclosureLabelProps extends React_2.HTMLAttributes<HTMLSpanElement> {
238
+ /** Wording after the "AI" mark, e.g. a translated "Generated" or "Modified". */
239
+ label: string;
240
+ /** @default "20" */
241
+ size?: AiDisclosureLabelSize;
242
+ /** Colour of the mark itself, chosen for the media behind it. @default "dark" */
243
+ tone?: AiDisclosureLabelTone;
244
+ }
245
+
246
+ /** Overall pill height in px. */
247
+ export declare type AiDisclosureLabelSize = "12" | "16" | "20";
248
+
249
+ /** The three treatments the EU disclosure spec defines. */
250
+ export declare type AiDisclosureLabelTone = "dark" | "light" | "transparent";
251
+
195
252
  /**
196
253
  * Ai icon. Renders at sizes 16, 24, or 32 px with outlined and filled variants.
197
254
  *
@@ -205,6 +262,19 @@ export declare const AIIcon: React_2.ForwardRefExoticComponent<BaseIconProps & R
205
262
  /** Props for {@link AIIcon}. See {@link BaseIconProps} for the shared shape. */
206
263
  export declare type AIIconProps = BaseIconProps;
207
264
 
265
+ /**
266
+ * AI settings icon. Renders at sizes 16, 24, or 32 px with outlined and filled variants.
267
+ *
268
+ * @example
269
+ * ```tsx
270
+ * <AISettingsIcon size={24} filled />
271
+ * ```
272
+ */
273
+ export declare const AISettingsIcon: React_2.ForwardRefExoticComponent<BaseIconProps & React_2.RefAttributes<SVGSVGElement>>;
274
+
275
+ /** Props for {@link AISettingsIcon}. See {@link BaseIconProps} for the shared shape. */
276
+ export declare type AISettingsIconProps = BaseIconProps;
277
+
208
278
  /**
209
279
  * Displays a contextual feedback message to the user.
210
280
  *
@@ -4401,6 +4471,19 @@ export declare interface ProfileStatusProps extends React_2.HTMLAttributes<HTMLS
4401
4471
  /** Size preset of the {@link ProfileStatus} indicator. */
4402
4472
  export declare type ProfileStatusSize = "sm" | "md";
4403
4473
 
4474
+ /**
4475
+ * Programming arrow (branch) icon. Renders at sizes 16, 24, or 32 px with outlined and filled variants.
4476
+ *
4477
+ * @example
4478
+ * ```tsx
4479
+ * <ProgrammingArrowIcon size={24} filled />
4480
+ * ```
4481
+ */
4482
+ export declare const ProgrammingArrowIcon: React_2.ForwardRefExoticComponent<BaseIconProps & React_2.RefAttributes<SVGSVGElement>>;
4483
+
4484
+ /** Props for {@link ProgrammingArrowIcon}. See {@link BaseIconProps} for the shared shape. */
4485
+ export declare type ProgrammingArrowIconProps = BaseIconProps;
4486
+
4404
4487
  /**
4405
4488
  * A horizontal progress indicator with optional title, completion percentage,
4406
4489
  * step count, and helper text. The bar colour reflects progress when using the
@@ -4657,6 +4740,19 @@ export declare const ReceiveMoneyIcon: React_2.ForwardRefExoticComponent<BaseIco
4657
4740
  /** Props for {@link ReceiveMoneyIcon}. See {@link BaseIconProps} for the shared shape. */
4658
4741
  export declare type ReceiveMoneyIconProps = BaseIconProps;
4659
4742
 
4743
+ /**
4744
+ * Refresh arrow icon. Renders at sizes 16, 24, or 32 px with outlined and filled variants.
4745
+ *
4746
+ * @example
4747
+ * ```tsx
4748
+ * <RefreshArrowIcon size={24} filled />
4749
+ * ```
4750
+ */
4751
+ export declare const RefreshArrowIcon: React_2.ForwardRefExoticComponent<BaseIconProps & React_2.RefAttributes<SVGSVGElement>>;
4752
+
4753
+ /** Props for {@link RefreshArrowIcon}. See {@link BaseIconProps} for the shared shape. */
4754
+ export declare type RefreshArrowIconProps = BaseIconProps;
4755
+
4660
4756
  /**
4661
4757
  * Repeat icon. Renders at sizes 16, 24, or 32 px.
4662
4758
  *
@@ -4787,7 +4883,9 @@ export declare type SearchIconProps = BaseIconProps;
4787
4883
  * navigation, such as toggling a list/grid view or a monthly/annual price.
4788
4884
  *
4789
4885
  * Rendered as a `radiogroup` with roving-tabindex keyboard navigation. Supports
4790
- * both controlled and uncontrolled usage.
4886
+ * both controlled and uncontrolled usage. With `collapsible`, the icon-bearing
4887
+ * `plain`/`brand` appearances shrink to a single cycling icon toggle when space
4888
+ * is tight (rendered as a `group` containing one button).
4791
4889
  *
4792
4890
  * @example
4793
4891
  * ```tsx
@@ -4829,6 +4927,21 @@ export declare type SearchIconProps = BaseIconProps;
4829
4927
  * aria-label="Navigation mode"
4830
4928
  * />
4831
4929
  * ```
4930
+ *
4931
+ * @example Collapses to a cycling icon toggle when the container is too narrow
4932
+ * ```tsx
4933
+ * <SegmentedControl
4934
+ * appearance="plain"
4935
+ * collapsible
4936
+ * options={[
4937
+ * { label: "List view", value: "list", icon: <ListViewIcon size={16} /> },
4938
+ * { label: "Grid view", value: "grid", icon: <GridViewIcon size={16} /> },
4939
+ * ]}
4940
+ * value={view}
4941
+ * onChange={setView}
4942
+ * aria-label="View"
4943
+ * />
4944
+ * ```
4832
4945
  */
4833
4946
  export declare const SegmentedControl: React_2.ForwardRefExoticComponent<SegmentedControlProps & React_2.RefAttributes<HTMLDivElement>>;
4834
4947
 
@@ -4857,7 +4970,8 @@ export declare interface SegmentedControlOption {
4857
4970
  /**
4858
4971
  * Icon to render for the segment. In `pill`/`plain` appearances the segment renders icon-only and
4859
4972
  * `label` becomes required as its accessible name (applied as `aria-label`, no visible text). In
4860
- * the `brand` appearance the icon renders alongside the visible `label`.
4973
+ * the `brand` appearance the icon renders alongside the visible `label`. Required for every option
4974
+ * when `collapsible` is set, since the collapsed control shows the selected option's icon alone.
4861
4975
  */
4862
4976
  icon?: React_2.ReactNode;
4863
4977
  }
@@ -4879,6 +4993,17 @@ export declare interface SegmentedControlProps extends Omit<React_2.HTMLAttribut
4879
4993
  onChange?: (value: string) => void;
4880
4994
  /** Whether the control is disabled. @default false */
4881
4995
  disabled?: boolean;
4996
+ /**
4997
+ * When `true`, the control automatically collapses to a single icon-only toggle whenever its
4998
+ * container is too narrow to show every segment side by side, and expands again when the space
4999
+ * returns. Collapsed, it shows the currently-selected option's `icon`; clicking it (or pressing
5000
+ * Enter/Space) advances to the next option, wrapping around from the last back to the first.
5001
+ *
5002
+ * Only supported for the icon-bearing `"plain"` and `"brand"` appearances, and every option must
5003
+ * define an `icon` (there is nothing to show otherwise). Ignored, with a dev-time warning, when
5004
+ * those conditions are not met. @default false
5005
+ */
5006
+ collapsible?: boolean;
4882
5007
  }
4883
5008
 
4884
5009
  /** Height of the segmented control in pixels. */
package/dist/index.mjs CHANGED
@@ -5,6 +5,8 @@ import { AccordionContent } from "./components/Accordion/AccordionContent.mjs";
5
5
  import { AccordionItem } from "./components/Accordion/AccordionItem.mjs";
6
6
  import { AccordionTrigger } from "./components/Accordion/AccordionTrigger.mjs";
7
7
  import { AiButton } from "./components/AiButton/AiButton.mjs";
8
+ import { AiDisclosureBadge } from "./components/AiDisclosureBadge/AiDisclosureBadge.mjs";
9
+ import { AiDisclosureLabel } from "./components/AiDisclosureLabel/AiDisclosureLabel.mjs";
8
10
  import { Alert } from "./components/Alert/Alert.mjs";
9
11
  import { AnimatedNumber } from "./components/AnimatedNumber/AnimatedNumber.mjs";
10
12
  import { AudioPlayer } from "./components/AudioPlayer/AudioPlayer.mjs";
@@ -47,6 +49,7 @@ import { AI2Icon } from "./components/Icons/AI2Icon.mjs";
47
49
  import { AICallIcon } from "./components/Icons/AICallIcon.mjs";
48
50
  import { AIDisclosureIcon } from "./components/Icons/AIDisclosureIcon.mjs";
49
51
  import { AIIcon } from "./components/Icons/AIIcon.mjs";
52
+ import { AISettingsIcon } from "./components/Icons/AiSettingsIcon.mjs";
50
53
  import { AlertIcon } from "./components/Icons/AlertIcon.mjs";
51
54
  import { AppsIcon } from "./components/Icons/AppsIcon.mjs";
52
55
  import { ArrowDownIcon } from "./components/Icons/ArrowDownIcon.mjs";
@@ -156,8 +159,10 @@ import { PinIcon } from "./components/Icons/PinIcon.mjs";
156
159
  import { PlayIcon } from "./components/Icons/PlayIcon.mjs";
157
160
  import { PlusIcon } from "./components/Icons/PlusIcon.mjs";
158
161
  import { PrivacyIcon } from "./components/Icons/PrivacyIcon.mjs";
162
+ import { ProgrammingArrowIcon } from "./components/Icons/ProgrammingArrowIcon.mjs";
159
163
  import { QueueIcon } from "./components/Icons/QueueIcon.mjs";
160
164
  import { ReceiveMoneyIcon } from "./components/Icons/ReceiveMoneyIcon.mjs";
165
+ import { RefreshArrowIcon } from "./components/Icons/RefreshArrowIcon.mjs";
161
166
  import { RepeatIcon } from "./components/Icons/RepeatIcon.mjs";
162
167
  import { Reply2Icon } from "./components/Icons/Reply2Icon.mjs";
163
168
  import { ReplyIcon } from "./components/Icons/ReplyIcon.mjs";
@@ -268,6 +273,7 @@ export {
268
273
  AICallIcon,
269
274
  AIDisclosureIcon,
270
275
  AIIcon,
276
+ AISettingsIcon,
271
277
  Accordion,
272
278
  AccordionContent,
273
279
  AccordionItem,
@@ -275,6 +281,8 @@ export {
275
281
  AddIcon,
276
282
  AffiliatesIcon,
277
283
  AiButton,
284
+ AiDisclosureBadge,
285
+ AiDisclosureLabel,
278
286
  Alert,
279
287
  AlertIcon,
280
288
  AnimatedNumber,
@@ -476,6 +484,7 @@ export {
476
484
  PrivacyIcon,
477
485
  ProfileOnlineStatus,
478
486
  ProfileStatus,
487
+ ProgrammingArrowIcon,
479
488
  ProgressBar,
480
489
  ProgressBarItem,
481
490
  ProgressBarSteps,
@@ -484,6 +493,7 @@ export {
484
493
  RadioGroup,
485
494
  RatingSummary,
486
495
  ReceiveMoneyIcon,
496
+ RefreshArrowIcon,
487
497
  RepeatIcon,
488
498
  Reply2Icon,
489
499
  ReplyIcon,
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fanvue/ui",
3
- "version": "3.25.0",
3
+ "version": "3.26.0",
4
4
  "description": "React component library built with Tailwind CSS for Fanvue ecosystem",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org",
@@ -153,7 +153,7 @@
153
153
  "jsdom": "27.4.0",
154
154
  "lint-staged": "16.2.7",
155
155
  "playwright": "^1.58.1",
156
- "postcss": "8.5.20",
156
+ "postcss": "8.5.26",
157
157
  "react": "19.2.3",
158
158
  "react-day-picker": "9.13.1",
159
159
  "react-dom": "19.2.3",
@@ -176,16 +176,18 @@
176
176
  "lodash-es": ">=4.18.0",
177
177
  "minimatch": ">=10.2.3",
178
178
  "ajv": ">=8.18.0",
179
- "fast-uri": ">=3.1.4",
179
+ "fast-uri": ">=4.1.2",
180
180
  "brace-expansion": ">=5.0.9",
181
181
  "yaml": ">=2.8.3",
182
- "postcss": ">=8.5.18",
182
+ "postcss": ">=8.5.23",
183
+ "nanoid@^3": "^3.3.18",
184
+ "nanoid@^5": "^5.1.16",
183
185
  "tmp": ">=0.2.7",
184
186
  "ws": ">=8.20.1",
185
187
  "qs": ">=6.15.2",
186
188
  "esbuild": ">=0.28.1",
187
189
  "vite": "^7.3.5",
188
- "js-yaml": "^4.3.0",
190
+ "js-yaml": "^4.3.1",
189
191
  "@babel/core": ">=7.29.6"
190
192
  }
191
193
  },