@fanvue/ui 3.43.0 → 3.45.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 (32) hide show
  1. package/dist/animated-icons.d.ts +2 -2
  2. package/dist/cjs/components/AnimatedIcons/MenuCloseIcon.cjs +6 -1
  3. package/dist/cjs/components/AnimatedIcons/MenuCloseIcon.cjs.map +1 -1
  4. package/dist/cjs/components/AnimatedIcons/MenuOpenIcon.cjs +6 -1
  5. package/dist/cjs/components/AnimatedIcons/MenuOpenIcon.cjs.map +1 -1
  6. package/dist/cjs/components/Chip/Chip.cjs +9 -4
  7. package/dist/cjs/components/Chip/Chip.cjs.map +1 -1
  8. package/dist/cjs/components/CreatorCard/CreatorCard.cjs +47 -20
  9. package/dist/cjs/components/CreatorCard/CreatorCard.cjs.map +1 -1
  10. package/dist/cjs/components/Icons/MenuCloseIcon.cjs +15 -15
  11. package/dist/cjs/components/Icons/MenuCloseIcon.cjs.map +1 -1
  12. package/dist/cjs/components/Icons/MenuOpenIcon.cjs +15 -15
  13. package/dist/cjs/components/Icons/MenuOpenIcon.cjs.map +1 -1
  14. package/dist/cjs/components/Table/TableMobileRow.cjs +21 -3
  15. package/dist/cjs/components/Table/TableMobileRow.cjs.map +1 -1
  16. package/dist/components/AnimatedIcons/MenuCloseIcon.mjs +6 -1
  17. package/dist/components/AnimatedIcons/MenuCloseIcon.mjs.map +1 -1
  18. package/dist/components/AnimatedIcons/MenuOpenIcon.mjs +6 -1
  19. package/dist/components/AnimatedIcons/MenuOpenIcon.mjs.map +1 -1
  20. package/dist/components/Chip/Chip.mjs +9 -4
  21. package/dist/components/Chip/Chip.mjs.map +1 -1
  22. package/dist/components/CreatorCard/CreatorCard.mjs +47 -20
  23. package/dist/components/CreatorCard/CreatorCard.mjs.map +1 -1
  24. package/dist/components/Icons/MenuCloseIcon.mjs +15 -15
  25. package/dist/components/Icons/MenuCloseIcon.mjs.map +1 -1
  26. package/dist/components/Icons/MenuOpenIcon.mjs +15 -15
  27. package/dist/components/Icons/MenuOpenIcon.mjs.map +1 -1
  28. package/dist/components/Table/TableMobileRow.mjs +21 -3
  29. package/dist/components/Table/TableMobileRow.mjs.map +1 -1
  30. package/dist/index.d.ts +49 -23
  31. package/dist/styles/theme.css +4 -4
  32. package/package.json +9 -9
@@ -1 +1 @@
1
- {"version":3,"file":"MenuOpenIcon.mjs","sources":["../../../src/components/Icons/MenuOpenIcon.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { BaseIcon } from \"./BaseIcon\";\nimport type { BaseIconProps, IconVariants } from \"./types\";\n\nconst VARIANTS: IconVariants = {\n 16: {\n outlined: [\n {\n d: \"M9.98 15.167h-4C2.36 15.167.813 13.62.813 10V6C.813 2.38 2.36.833 5.98.833h4C13.6.833 15.147 2.38 15.147 6v4c0 3.62-1.54 5.167-5.167 5.167m-4-13.334C2.907 1.833 1.813 2.927 1.813 6v4c0 3.073 1.094 4.167 4.167 4.167h4c3.073 0 4.167-1.094 4.167-4.167V6c0-3.073-1.094-4.167-4.167-4.167z\",\n },\n {\n d: \"M9.98 15.167a.504.504 0 0 1-.5-.5V1.333c0-.273.227-.5.5-.5s.5.227.5.5v13.334a.5.5 0 0 1-.5.5m-4.667-4.96a.5.5 0 0 1-.353-.146.503.503 0 0 1 0-.707l1.353-1.353L4.96 6.647a.503.503 0 0 1 0-.706.503.503 0 0 1 .707 0l1.706 1.706a.503.503 0 0 1 0 .707l-1.706 1.707a.47.47 0 0 1-.354.146\",\n },\n ],\n filled: [\n {\n d: \"M5.207 1.333c-.994 0-1.82.24-2.454.7-.28.194-.526.44-.72.72-.46.634-.7 1.46-.7 2.454v5.586c0 2.427 1.447 3.874 3.874 3.874h4.98V1.333zm2.873 7.02L6.373 10.06a.495.495 0 0 1-.707 0 .503.503 0 0 1 0-.707L7.014 8 5.667 6.647a.49.49 0 0 1 0-.707.503.503 0 0 1 .706 0L8.08 7.647a.503.503 0 0 1 0 .706m3.107-7v13.3c.82-.053 1.513-.287 2.06-.687.28-.193.526-.44.72-.72.46-.633.7-1.46.7-2.453V5.206c0-2.293-1.294-3.713-3.48-3.853\",\n },\n ],\n },\n 24: {\n outlined: [\n {\n d: \"M14.97 22.75h-6c-5.43 0-7.75-2.32-7.75-7.75V9c0-5.43 2.32-7.75 7.75-7.75h6c5.43 0 7.75 2.32 7.75 7.75v6c0 5.43-2.31 7.75-7.75 7.75m-6-20C4.36 2.75 2.72 4.39 2.72 9v6c0 4.61 1.64 6.25 6.25 6.25h6c4.61 0 6.25-1.64 6.25-6.25V9c0-4.61-1.64-6.25-6.25-6.25z\",\n },\n {\n d: \"M14.97 22.75c-.41 0-.75-.34-.75-.75V2c0-.41.34-.75.75-.75s.75.34.75.75v20c0 .41-.33.75-.75.75m-7-7.44c-.19 0-.38-.07-.53-.22a.754.754 0 0 1 0-1.06L9.47 12 7.44 9.97a.754.754 0 0 1 0-1.06c.29-.29.77-.29 1.06 0l2.56 2.56c.29.29.29.77 0 1.06L8.5 15.09a.7.7 0 0 1-.53.22\",\n },\n ],\n filled: [\n {\n d: \"M7.81 2c-1.49 0-2.73.36-3.68 1.05-.42.29-.79.66-1.08 1.08C2.36 5.08 2 6.32 2 7.81v8.38C2 19.83 4.17 22 7.81 22h7.47V2zm4.31 10.53-2.56 2.56c-.15.15-.34.22-.53.22s-.38-.07-.53-.22a.754.754 0 0 1 0-1.06L10.52 12 8.5 9.97c-.3-.29-.3-.77 0-1.06s.77-.29 1.06 0l2.56 2.56c.29.29.29.77 0 1.06m4.66-10.5v19.95c1.23-.08 2.27-.43 3.09-1.03.42-.29.79-.66 1.08-1.08.69-.95 1.05-2.19 1.05-3.68V7.81c0-3.44-1.94-5.57-5.22-5.78\",\n },\n ],\n },\n 32: {\n outlined: [\n {\n d: \"M19.96 30.333h-8C4.72 30.333 1.627 27.24 1.627 20v-8c0-7.24 3.093-10.333 10.333-10.333h8C27.2 1.667 30.293 4.76 30.293 12v8c0 7.24-3.08 10.333-10.333 10.333m-8-26.666c-6.147 0-8.333 2.186-8.333 8.333v8c0 6.147 2.186 8.333 8.333 8.333h8c6.147 0 8.333-2.186 8.333-8.333v-8c0-6.147-2.186-8.333-8.333-8.333z\",\n },\n {\n d: \"M19.96 30.333c-.547 0-1-.453-1-1V2.667c0-.547.453-1 1-1s1 .453 1 1v26.666c0 .547-.44 1-1 1m-9.334-9.918a1 1 0 0 1-.706-.294 1.006 1.006 0 0 1 0-1.413L12.626 16 9.92 13.294a1.006 1.006 0 0 1 0-1.413 1.006 1.006 0 0 1 1.413 0l3.413 3.414a1.006 1.006 0 0 1 0 1.413l-3.413 3.413a.95.95 0 0 1-.707.294\",\n },\n ],\n filled: [\n {\n d: \"M10.413 2.667c-1.986 0-3.64.48-4.906 1.4-.56.386-1.054.88-1.44 1.44-.92 1.266-1.4 2.92-1.4 4.906v11.174c0 4.853 2.893 7.746 7.746 7.746h9.96V2.667zm5.747 14.04-3.413 3.413a1 1 0 0 1-.707.293 1 1 0 0 1-.707-.293 1.006 1.006 0 0 1 0-1.413L14.027 16l-2.694-2.707a.98.98 0 0 1 0-1.413 1.006 1.006 0 0 1 1.414 0l3.413 3.413a1.006 1.006 0 0 1 0 1.414m6.213-14.001v26.6c1.64-.107 3.027-.574 4.12-1.374a5.7 5.7 0 0 0 1.44-1.44c.92-1.266 1.4-2.92 1.4-4.906V10.412c0-4.586-2.586-7.426-6.96-7.706\",\n },\n ],\n },\n};\n\n/** Props for {@link MenuOpenIcon}. See {@link BaseIconProps} for the shared shape. */\nexport type MenuOpenIconProps = BaseIconProps;\n\n/**\n * Menu Open icon. Renders at sizes 16, 24, or 32 px with outlined and filled variants.\n *\n * @example\n * ```tsx\n * <MenuOpenIcon size={24} filled />\n * ```\n */\nexport const MenuOpenIcon = React.forwardRef<SVGSVGElement, MenuOpenIconProps>((props, ref) => (\n <BaseIcon ref={ref} variants={VARIANTS} {...props} />\n));\n\nMenuOpenIcon.displayName = \"MenuOpenIcon\";\n"],"names":[],"mappings":";;;;AAIA,MAAM,WAAyB;AAAA,EAC7B,IAAI;AAAA,IACF,UAAU;AAAA,MACR;AAAA,QACE,GAAG;AAAA,MAAA;AAAA,MAEL;AAAA,QACE,GAAG;AAAA,MAAA;AAAA,IACL;AAAA,IAEF,QAAQ;AAAA,MACN;AAAA,QACE,GAAG;AAAA,MAAA;AAAA,IACL;AAAA,EACF;AAAA,EAEF,IAAI;AAAA,IACF,UAAU;AAAA,MACR;AAAA,QACE,GAAG;AAAA,MAAA;AAAA,MAEL;AAAA,QACE,GAAG;AAAA,MAAA;AAAA,IACL;AAAA,IAEF,QAAQ;AAAA,MACN;AAAA,QACE,GAAG;AAAA,MAAA;AAAA,IACL;AAAA,EACF;AAAA,EAEF,IAAI;AAAA,IACF,UAAU;AAAA,MACR;AAAA,QACE,GAAG;AAAA,MAAA;AAAA,MAEL;AAAA,QACE,GAAG;AAAA,MAAA;AAAA,IACL;AAAA,IAEF,QAAQ;AAAA,MACN;AAAA,QACE,GAAG;AAAA,MAAA;AAAA,IACL;AAAA,EACF;AAEJ;AAaO,MAAM,eAAe,MAAM,WAA6C,CAAC,OAAO,QACrF,oBAAC,UAAA,EAAS,KAAU,UAAU,UAAW,GAAG,OAAO,CACpD;AAED,aAAa,cAAc;"}
1
+ {"version":3,"file":"MenuOpenIcon.mjs","sources":["../../../src/components/Icons/MenuOpenIcon.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { BaseIcon } from \"./BaseIcon\";\nimport type { BaseIconProps, IconVariants } from \"./types\";\n\nconst VARIANTS: IconVariants = {\n 16: {\n outlined: [\n {\n d: \"M4.5 2h7A2.5 2.5 0 0 1 14 4.5v7a2.5 2.5 0 0 1-2.5 2.5h-7A2.5 2.5 0 0 1 2 11.5v-7A2.5 2.5 0 0 1 4.5 2Z\",\n sw: 1,\n },\n { d: \"M11 11.5v-7\", sw: 1 },\n ],\n filled: [\n {\n d: \"M4.5 1.5h7a3 3 0 0 1 3 3v7a3 3 0 0 1-3 3h-7a3 3 0 0 1-3-3v-7a3 3 0 0 1 3-3Z M10.5 4.5a0.5 0.5 0 0 1 1 0v7a0.5 0.5 0 0 1-1 0Z\",\n eo: true,\n },\n ],\n },\n 24: {\n outlined: [\n {\n d: \"M6.25 2.85h11.5a3.4 3.4 0 0 1 3.4 3.4v11.5a3.4 3.4 0 0 1-3.4 3.4H6.25a3.4 3.4 0 0 1-3.4-3.4V6.25a3.4 3.4 0 0 1 3.4-3.4Z\",\n sw: 1.2,\n },\n { d: \"M17.5 18.75V5.25\", sw: 1.2 },\n ],\n filled: [\n {\n d: \"M6.25 2.25h11.5a4 4 0 0 1 4 4v11.5a4 4 0 0 1-4 4H6.25a4 4 0 0 1-4-4V6.25a4 4 0 0 1 4-4Z M17.9 5.25a0.6 0.6 0 0 1 1.2 0v13.5a0.6 0.6 0 0 1-1.2 0Z\",\n eo: true,\n },\n ],\n },\n 32: {\n outlined: [\n {\n d: \"M8 3.75h16a4.25 4.25 0 0 1 4.25 4.25v16A4.25 4.25 0 0 1 24 28.25H8A4.25 4.25 0 0 1 3.75 24V8A4.25 4.25 0 0 1 8 3.75Z\",\n sw: 1.5,\n },\n { d: \"M24 25V7\", sw: 1.5 },\n ],\n filled: [\n {\n d: \"M8 3h16a5 5 0 0 1 5 5v16a5 5 0 0 1-5 5H8a5 5 0 0 1-5-5V8a5 5 0 0 1 5-5Z M23.25 7a0.75 0.75 0 0 1 1.5 0v18a0.75 0.75 0 0 1-1.5 0Z\",\n eo: true,\n },\n ],\n },\n};\n\n/** Props for {@link MenuOpenIcon}. See {@link BaseIconProps} for the shared shape. */\nexport type MenuOpenIconProps = BaseIconProps;\n\n/**\n * Menu Open icon. Renders at sizes 16, 24, or 32 px with outlined and filled variants.\n *\n * @example\n * ```tsx\n * <MenuOpenIcon size={24} filled />\n * ```\n */\nexport const MenuOpenIcon = React.forwardRef<SVGSVGElement, MenuOpenIconProps>((props, ref) => (\n <BaseIcon ref={ref} variants={VARIANTS} {...props} />\n));\n\nMenuOpenIcon.displayName = \"MenuOpenIcon\";\n"],"names":[],"mappings":";;;;AAIA,MAAM,WAAyB;AAAA,EAC7B,IAAI;AAAA,IACF,UAAU;AAAA,MACR;AAAA,QACE,GAAG;AAAA,QACH,IAAI;AAAA,MAAA;AAAA,MAEN,EAAE,GAAG,eAAe,IAAI,EAAA;AAAA,IAAE;AAAA,IAE5B,QAAQ;AAAA,MACN;AAAA,QACE,GAAG;AAAA,QACH,IAAI;AAAA,MAAA;AAAA,IACN;AAAA,EACF;AAAA,EAEF,IAAI;AAAA,IACF,UAAU;AAAA,MACR;AAAA,QACE,GAAG;AAAA,QACH,IAAI;AAAA,MAAA;AAAA,MAEN,EAAE,GAAG,oBAAoB,IAAI,IAAA;AAAA,IAAI;AAAA,IAEnC,QAAQ;AAAA,MACN;AAAA,QACE,GAAG;AAAA,QACH,IAAI;AAAA,MAAA;AAAA,IACN;AAAA,EACF;AAAA,EAEF,IAAI;AAAA,IACF,UAAU;AAAA,MACR;AAAA,QACE,GAAG;AAAA,QACH,IAAI;AAAA,MAAA;AAAA,MAEN,EAAE,GAAG,YAAY,IAAI,IAAA;AAAA,IAAI;AAAA,IAE3B,QAAQ;AAAA,MACN;AAAA,QACE,GAAG;AAAA,QACH,IAAI;AAAA,MAAA;AAAA,IACN;AAAA,EACF;AAEJ;AAaO,MAAM,eAAe,MAAM,WAA6C,CAAC,OAAO,QACrF,oBAAC,UAAA,EAAS,KAAU,UAAU,UAAW,GAAG,OAAO,CACpD;AAED,aAAa,cAAc;"}
@@ -3,7 +3,7 @@ import { jsxs, jsx } from "react/jsx-runtime";
3
3
  import * as React from "react";
4
4
  import { cn } from "../../utils/cn.mjs";
5
5
  const TableMobileRow = React.forwardRef(
6
- ({ className, badge, title, description, actions, ...props }, ref) => {
6
+ ({ className, badge, title, description, actions, wrap = false, ...props }, ref) => {
7
7
  return /* @__PURE__ */ jsxs(
8
8
  "div",
9
9
  {
@@ -16,8 +16,26 @@ const TableMobileRow = React.forwardRef(
16
16
  actions && /* @__PURE__ */ jsx("div", { className: "flex shrink-0 items-center gap-2", children: actions })
17
17
  ] }),
18
18
  /* @__PURE__ */ jsxs("div", { className: "flex min-w-0 flex-col", children: [
19
- /* @__PURE__ */ jsx("p", { className: "typography-body-default-16px-semibold truncate text-content-primary", children: title }),
20
- description && /* @__PURE__ */ jsx("p", { className: "typography-body-small-14px-regular truncate text-content-tertiary", children: description })
19
+ /* @__PURE__ */ jsx(
20
+ "p",
21
+ {
22
+ className: cn(
23
+ "typography-body-default-16px-semibold text-content-primary",
24
+ wrap ? "break-words" : "truncate"
25
+ ),
26
+ children: title
27
+ }
28
+ ),
29
+ description && /* @__PURE__ */ jsx(
30
+ "p",
31
+ {
32
+ className: cn(
33
+ "typography-body-small-14px-regular text-content-tertiary",
34
+ wrap ? "break-words" : "truncate"
35
+ ),
36
+ children: description
37
+ }
38
+ )
21
39
  ] })
22
40
  ]
23
41
  }
@@ -1 +1 @@
1
- {"version":3,"file":"TableMobileRow.mjs","sources":["../../../src/components/Table/TableMobileRow.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { cn } from \"../../utils/cn\";\n\nexport interface TableMobileRowProps extends Omit<React.HTMLAttributes<HTMLDivElement>, \"title\"> {\n /** Status or type label above the title, typically a {@link Pill}. */\n badge?: React.ReactNode;\n /** Primary line (semibold body). */\n title: React.ReactNode;\n /** Secondary line beneath the title (muted). */\n description?: React.ReactNode;\n /** Trailing controls on the badge line, such as a favourite toggle and a navigation {@link IconButton}. */\n actions?: React.ReactNode;\n}\n\n/**\n * Stacked row that stands in for a table row on narrow screens (Figma `V2 Table Mobile`):\n * a badge and actions line, then a title with a description, closed by a divider.\n *\n * @example\n * ```tsx\n * <TableMobileRow\n * badge={<Pill variant=\"green\">Dynamic</Pill>}\n * title=\"Top Spenders\"\n * description=\"320 members\"\n * actions={<IconButton aria-label=\"Open list\" icon={<ChevronRightIcon />} />}\n * />\n * ```\n */\nexport const TableMobileRow = React.forwardRef<HTMLDivElement, TableMobileRowProps>(\n ({ className, badge, title, description, actions, ...props }, ref) => {\n return (\n <div\n ref={ref}\n className={cn(\"flex w-full flex-col gap-4 border-border-primary border-b py-4\", className)}\n {...props}\n >\n {(badge || actions) && (\n <div className=\"flex min-h-6 items-center justify-between gap-2\">\n <div className=\"flex min-w-0 items-center\">{badge}</div>\n {actions && <div className=\"flex shrink-0 items-center gap-2\">{actions}</div>}\n </div>\n )}\n <div className=\"flex min-w-0 flex-col\">\n <p className=\"typography-body-default-16px-semibold truncate text-content-primary\">\n {title}\n </p>\n {description && (\n <p className=\"typography-body-small-14px-regular truncate text-content-tertiary\">\n {description}\n </p>\n )}\n </div>\n </div>\n );\n },\n);\nTableMobileRow.displayName = \"TableMobileRow\";\n"],"names":[],"mappings":";;;;AA4BO,MAAM,iBAAiB,MAAM;AAAA,EAClC,CAAC,EAAE,WAAW,OAAO,OAAO,aAAa,SAAS,GAAG,MAAA,GAAS,QAAQ;AACpE,WACE;AAAA,MAAC;AAAA,MAAA;AAAA,QACC;AAAA,QACA,WAAW,GAAG,kEAAkE,SAAS;AAAA,QACxF,GAAG;AAAA,QAEF,UAAA;AAAA,WAAA,SAAS,YACT,qBAAC,OAAA,EAAI,WAAU,mDACb,UAAA;AAAA,YAAA,oBAAC,OAAA,EAAI,WAAU,6BAA6B,UAAA,OAAM;AAAA,YACjD,WAAW,oBAAC,OAAA,EAAI,WAAU,oCAAoC,UAAA,QAAA,CAAQ;AAAA,UAAA,GACzE;AAAA,UAEF,qBAAC,OAAA,EAAI,WAAU,yBACb,UAAA;AAAA,YAAA,oBAAC,KAAA,EAAE,WAAU,uEACV,UAAA,OACH;AAAA,YACC,eACC,oBAAC,KAAA,EAAE,WAAU,qEACV,UAAA,YAAA,CACH;AAAA,UAAA,EAAA,CAEJ;AAAA,QAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EAGN;AACF;AACA,eAAe,cAAc;"}
1
+ {"version":3,"file":"TableMobileRow.mjs","sources":["../../../src/components/Table/TableMobileRow.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { cn } from \"../../utils/cn\";\n\nexport interface TableMobileRowProps extends Omit<React.HTMLAttributes<HTMLDivElement>, \"title\"> {\n /** Status or type label above the title, typically a {@link Pill}. */\n badge?: React.ReactNode;\n /** Primary line (semibold body). */\n title: React.ReactNode;\n /** Secondary line beneath the title (muted). */\n description?: React.ReactNode;\n /** Trailing controls on the badge line, such as a favourite toggle and a navigation {@link IconButton}. */\n actions?: React.ReactNode;\n /** When `true`, the title and description wrap onto more lines instead of truncating. @default false */\n wrap?: boolean;\n}\n\n/**\n * Stacked row that stands in for a table row on narrow screens (Figma `V2 Table Mobile`):\n * a badge and actions line, then a title with a description, closed by a divider.\n *\n * @example\n * ```tsx\n * <TableMobileRow\n * badge={<Pill variant=\"green\">Dynamic</Pill>}\n * title=\"Top Spenders\"\n * description=\"320 members\"\n * actions={<IconButton aria-label=\"Open list\" icon={<ChevronRightIcon />} />}\n * />\n * ```\n */\nexport const TableMobileRow = React.forwardRef<HTMLDivElement, TableMobileRowProps>(\n ({ className, badge, title, description, actions, wrap = false, ...props }, ref) => {\n return (\n <div\n ref={ref}\n className={cn(\"flex w-full flex-col gap-4 border-border-primary border-b py-4\", className)}\n {...props}\n >\n {(badge || actions) && (\n <div className=\"flex min-h-6 items-center justify-between gap-2\">\n <div className=\"flex min-w-0 items-center\">{badge}</div>\n {actions && <div className=\"flex shrink-0 items-center gap-2\">{actions}</div>}\n </div>\n )}\n <div className=\"flex min-w-0 flex-col\">\n <p\n className={cn(\n \"typography-body-default-16px-semibold text-content-primary\",\n wrap ? \"break-words\" : \"truncate\",\n )}\n >\n {title}\n </p>\n {description && (\n <p\n className={cn(\n \"typography-body-small-14px-regular text-content-tertiary\",\n wrap ? \"break-words\" : \"truncate\",\n )}\n >\n {description}\n </p>\n )}\n </div>\n </div>\n );\n },\n);\nTableMobileRow.displayName = \"TableMobileRow\";\n"],"names":[],"mappings":";;;;AA8BO,MAAM,iBAAiB,MAAM;AAAA,EAClC,CAAC,EAAE,WAAW,OAAO,OAAO,aAAa,SAAS,OAAO,OAAO,GAAG,MAAA,GAAS,QAAQ;AAClF,WACE;AAAA,MAAC;AAAA,MAAA;AAAA,QACC;AAAA,QACA,WAAW,GAAG,kEAAkE,SAAS;AAAA,QACxF,GAAG;AAAA,QAEF,UAAA;AAAA,WAAA,SAAS,YACT,qBAAC,OAAA,EAAI,WAAU,mDACb,UAAA;AAAA,YAAA,oBAAC,OAAA,EAAI,WAAU,6BAA6B,UAAA,OAAM;AAAA,YACjD,WAAW,oBAAC,OAAA,EAAI,WAAU,oCAAoC,UAAA,QAAA,CAAQ;AAAA,UAAA,GACzE;AAAA,UAEF,qBAAC,OAAA,EAAI,WAAU,yBACb,UAAA;AAAA,YAAA;AAAA,cAAC;AAAA,cAAA;AAAA,gBACC,WAAW;AAAA,kBACT;AAAA,kBACA,OAAO,gBAAgB;AAAA,gBAAA;AAAA,gBAGxB,UAAA;AAAA,cAAA;AAAA,YAAA;AAAA,YAEF,eACC;AAAA,cAAC;AAAA,cAAA;AAAA,gBACC,WAAW;AAAA,kBACT;AAAA,kBACA,OAAO,gBAAgB;AAAA,gBAAA;AAAA,gBAGxB,UAAA;AAAA,cAAA;AAAA,YAAA;AAAA,UACH,EAAA,CAEJ;AAAA,QAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EAGN;AACF;AACA,eAAe,cAAc;"}
package/dist/index.d.ts CHANGED
@@ -1991,6 +1991,9 @@ export declare type ChevronUpIconProps = BaseIconProps;
1991
1991
  */
1992
1992
  export declare const Chip: React_2.ForwardRefExoticComponent<ChipProps & React_2.RefAttributes<HTMLButtonElement>>;
1993
1993
 
1994
+ /** Height of the notification badge in pixels. */
1995
+ export declare type ChipNotificationSize = "16" | "20";
1996
+
1994
1997
  export declare interface ChipProps extends React_2.HTMLAttributes<HTMLElement> {
1995
1998
  /** Visual variant of the chip. @default "rounded" */
1996
1999
  variant?: ChipVariant;
@@ -2030,6 +2033,12 @@ export declare interface ChipProps extends React_2.HTMLAttributes<HTMLElement> {
2030
2033
  notificationMax?: number;
2031
2034
  /** Colour variant of the notification badge. @default "brand" */
2032
2035
  notificationVariant?: CountVariant;
2036
+ /**
2037
+ * Height of the notification badge. `"20"` is the V2 Notification Count, a
2038
+ * rounded square; `"16"` is a circle for dense rows such as page tab chips.
2039
+ * @default "20"
2040
+ */
2041
+ notificationSize?: ChipNotificationSize;
2033
2042
  /** Click handler — when provided, the chip renders as a `<button>` for accessibility. */
2034
2043
  onClick?: React_2.MouseEventHandler<HTMLElement>;
2035
2044
  /** Merge props onto a child element instead of rendering a wrapper. @default false */
@@ -2037,7 +2046,7 @@ export declare interface ChipProps extends React_2.HTMLAttributes<HTMLElement> {
2037
2046
  }
2038
2047
 
2039
2048
  /** Height of the chip in pixels. */
2040
- export declare type ChipSize = "32" | "40";
2049
+ export declare type ChipSize = "32" | "36" | "40";
2041
2050
 
2042
2051
  /** Visual variant of the chip. */
2043
2052
  export declare type ChipVariant = "rounded" | "square" | "dark";
@@ -2194,44 +2203,59 @@ export declare type CountSize = "16" | "24" | "32";
2194
2203
  export declare type CountVariant = "default" | "contrast" | "brand" | "alert" | "pink" | "info" | "success" | "warning";
2195
2204
 
2196
2205
  /**
2197
- * A portrait media card highlighting a creator with avatar, name, optional
2198
- * tagline, and up to two stacked action buttons over a background image.
2206
+ * A card suggesting a creator, with a banner image, an optional {@link Pill},
2207
+ * the creator's avatar, name and tagline, free-form content such as a price,
2208
+ * and an optional action.
2199
2209
  *
2200
- * Pass zero, one, or two {@link Button} elements via `actions` to render the
2201
- * no-button, single-button, or two-button variants.
2210
+ * The card has no fixed width or corner radius: set both through `className`
2211
+ * (e.g. `className="w-40 rounded-md"`). The banner keeps a 10:11 ratio at any
2212
+ * width.
2202
2213
  *
2203
2214
  * @example
2204
2215
  * ```tsx
2205
2216
  * <CreatorCard
2206
- * background={<img src="/creator.jpg" alt="" />}
2217
+ * className="w-40 rounded-md"
2218
+ * background={<img src="/banner.jpg" alt="" />}
2219
+ * pill={{ variant: "contrast", children: "Popular this week" }}
2220
+ * avatar={{ src: "/avatar.jpg", fallback: "JD" }}
2207
2221
  * name="Jane Doe"
2208
- * description="MODEL & PODCASTER"
2209
- * avatar={{ src: "/avatar.jpg", alt: "Jane Doe", fallback: "JD" }}
2210
- * actions={
2211
- * <>
2212
- * <Button variant="brand" fullWidth>Join for free for 3 days</Button>
2213
- * <Button variant="primary" fullWidth>Follow for Free</Button>
2214
- * </>
2215
- * }
2222
+ * verified
2223
+ * tagline="412 posts"
2224
+ * content={<span className="block truncate">$9.99 / month</span>}
2225
+ * action={<Button variant="primary" size="32" fullWidth>Subscribe</Button>}
2216
2226
  * />
2217
2227
  * ```
2218
2228
  */
2219
2229
  export declare const CreatorCard: React_2.ForwardRefExoticComponent<CreatorCardProps & React_2.RefAttributes<HTMLDivElement>>;
2220
2230
 
2221
- export declare interface CreatorCardProps extends React_2.HTMLAttributes<HTMLDivElement> {
2222
- /** Decorative background media rendered behind the creator content. */
2231
+ export declare interface CreatorCardProps extends Omit<React_2.HTMLAttributes<HTMLDivElement>, "content"> {
2232
+ /** Decorative banner media rendered at the top of the card. */
2223
2233
  background: React_2.ReactNode;
2224
- /** Creator display name shown as the heading. */
2225
- name: string;
2226
- /** Optional secondary line shown below the name (e.g. role or tagline). */
2227
- description?: string;
2234
+ /**
2235
+ * Props forwarded to a {@link Pill} overlaid on the top-left of the banner.
2236
+ * Pass the label as `children`. Omit to hide the pill.
2237
+ */
2238
+ pill?: PillProps;
2228
2239
  /** Avatar props forwarded to the inner {@link Avatar}. */
2229
2240
  avatar?: React_2.ComponentPropsWithoutRef<typeof Avatar>;
2241
+ /** Creator display name shown next to the avatar. */
2242
+ name: React_2.ReactNode;
2243
+ /** When `true`, renders a verified badge after the name. @default false */
2244
+ verified?: boolean;
2245
+ /** Accessible label for the verified badge. @default "Verified" */
2246
+ verifiedLabel?: string;
2247
+ /** Optional secondary line shown under the name (e.g. post count). */
2248
+ tagline?: React_2.ReactNode;
2230
2249
  /**
2231
- * Action buttons rendered at the bottom of the card. Pass zero, one, or two
2232
- * `Button` elements to render variants with no, one, or two CTAs.
2250
+ * Optional content shown under the creator details (e.g. the subscription
2251
+ * price). It wraps by default; pass a `truncate` element to keep it on one line.
2233
2252
  */
2234
- actions?: React_2.ReactNode;
2253
+ content?: React_2.ReactNode;
2254
+ /**
2255
+ * Action element rendered full-width at the bottom of the card (e.g. a
2256
+ * `Button` with `fullWidth` for subscribing to the creator).
2257
+ */
2258
+ action?: React_2.ReactNode;
2235
2259
  }
2236
2260
 
2237
2261
  /**
@@ -6349,6 +6373,8 @@ export declare interface TableMobileRowProps extends Omit<React_2.HTMLAttributes
6349
6373
  description?: React_2.ReactNode;
6350
6374
  /** Trailing controls on the badge line, such as a favourite toggle and a navigation {@link IconButton}. */
6351
6375
  actions?: React_2.ReactNode;
6376
+ /** When `true`, the title and description wrap onto more lines instead of truncating. @default false */
6377
+ wrap?: boolean;
6352
6378
  }
6353
6379
 
6354
6380
  /**
@@ -867,8 +867,8 @@
867
867
  --color-buttons-brand-muted: var(--color-brand-primary-muted);
868
868
  --color-buttons-disabled-default: var(--primitives-color-gray-800);
869
869
  --color-buttons-disabled-negative: var(--primitives-color-gray-200);
870
- --color-buttons-secondary-default: var(--color-neutral-alphas-200);
871
- --color-buttons-secondary-hover: var(--color-neutral-alphas-300);
870
+ --color-buttons-secondary-default: var(--color-neutral-alphas-50);
871
+ --color-buttons-secondary-hover: var(--color-neutral-alphas-200);
872
872
  --color-buttons-secondary-negative-default: var(--primitives-color-blackalpha-100);
873
873
  --color-buttons-secondary-negative-hover: var(--primitives-color-blackalpha-200);
874
874
  --color-buttons-tertiary-default: #ffffff00;
@@ -887,8 +887,8 @@
887
887
  --color-buttons-always-black-hover: var(--primitives-color-gray-600);
888
888
  --color-buttons-switch-hover: var(--color-neutral-alphas-100);
889
889
  --color-buttons-switch-active: var(--color-buttons-primary-default);
890
- --color-buttons-chip-default: var(--color-neutral-alphas-200);
891
- --color-buttons-chip-hover: var(--color-neutral-alphas-300);
890
+ --color-buttons-chip-default: var(--color-neutral-alphas-100);
891
+ --color-buttons-chip-hover: var(--color-neutral-alphas-200);
892
892
  --color-buttons-chip-active: var(--primitives-color-gray-white);
893
893
  --color-buttons-chip-disabled: var(--color-buttons-disabled-default);
894
894
  --color-buttons-chip-dotted-default: var(--color-neutral-alphas-400);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fanvue/ui",
3
- "version": "3.43.0",
3
+ "version": "3.45.0",
4
4
  "description": "React component library built with Tailwind CSS for Fanvue ecosystem",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org",
@@ -148,12 +148,12 @@
148
148
  "@playwright/test": "1.58.1",
149
149
  "@radix-ui/react-slot": "1.2.4",
150
150
  "@size-limit/preset-small-lib": "12.0.0",
151
- "@storybook/addon-a11y": "10.2.1",
151
+ "@storybook/addon-a11y": "10.6.3",
152
152
  "@storybook/addon-designs": "11.1.1",
153
- "@storybook/addon-docs": "10.2.0",
154
- "@storybook/addon-vitest": "10.2.3",
155
- "@storybook/react": "10.2.1",
156
- "@storybook/react-vite": "10.2.1",
153
+ "@storybook/addon-docs": "10.6.3",
154
+ "@storybook/addon-vitest": "10.6.3",
155
+ "@storybook/react": "10.6.3",
156
+ "@storybook/react-vite": "10.6.3",
157
157
  "@tailwindcss/postcss": "4.1.18",
158
158
  "@testing-library/jest-dom": "6.9.1",
159
159
  "@testing-library/react": "16.3.2",
@@ -180,12 +180,12 @@
180
180
  "recharts": "^3.0.0",
181
181
  "remark-gfm": "4.0.1",
182
182
  "size-limit": "12.0.0",
183
- "storybook": "10.2.13",
183
+ "storybook": "10.6.3",
184
184
  "style-dictionary": "5.6.0",
185
185
  "svgo": "4.1.0",
186
186
  "tailwindcss": "4.1.18",
187
187
  "typescript": "5.9.3",
188
- "vite": "7.3.5",
188
+ "vite": "7.3.7",
189
189
  "vite-plugin-dts": "4.5.4",
190
190
  "vitest": "4.1.11",
191
191
  "vitest-axe": "1.0.0-pre.3"
@@ -208,7 +208,7 @@
208
208
  "ws": ">=8.20.1",
209
209
  "qs": ">=6.16.0",
210
210
  "esbuild": ">=0.28.1",
211
- "vite": "^7.3.5",
211
+ "vite": "^7.3.7",
212
212
  "js-yaml": "^4.3.2",
213
213
  "@babel/core": ">=7.29.6"
214
214
  }