@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
@@ -22,7 +22,7 @@ function _interopNamespaceDefault(e) {
22
22
  }
23
23
  const React__namespace = /* @__PURE__ */ _interopNamespaceDefault(React);
24
24
  const TableMobileRow = React__namespace.forwardRef(
25
- ({ className, badge, title, description, actions, ...props }, ref) => {
25
+ ({ className, badge, title, description, actions, wrap = false, ...props }, ref) => {
26
26
  return /* @__PURE__ */ jsxRuntime.jsxs(
27
27
  "div",
28
28
  {
@@ -35,8 +35,26 @@ const TableMobileRow = React__namespace.forwardRef(
35
35
  actions && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex shrink-0 items-center gap-2", children: actions })
36
36
  ] }),
37
37
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex min-w-0 flex-col", children: [
38
- /* @__PURE__ */ jsxRuntime.jsx("p", { className: "typography-body-default-16px-semibold truncate text-content-primary", children: title }),
39
- description && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "typography-body-small-14px-regular truncate text-content-tertiary", children: description })
38
+ /* @__PURE__ */ jsxRuntime.jsx(
39
+ "p",
40
+ {
41
+ className: cn.cn(
42
+ "typography-body-default-16px-semibold text-content-primary",
43
+ wrap ? "break-words" : "truncate"
44
+ ),
45
+ children: title
46
+ }
47
+ ),
48
+ description && /* @__PURE__ */ jsxRuntime.jsx(
49
+ "p",
50
+ {
51
+ className: cn.cn(
52
+ "typography-body-small-14px-regular text-content-tertiary",
53
+ wrap ? "break-words" : "truncate"
54
+ ),
55
+ children: description
56
+ }
57
+ )
40
58
  ] })
41
59
  ]
42
60
  }
@@ -1 +1 @@
1
- {"version":3,"file":"TableMobileRow.cjs","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":["React","jsxs","cn","jsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AA4BO,MAAM,iBAAiBA,iBAAM;AAAA,EAClC,CAAC,EAAE,WAAW,OAAO,OAAO,aAAa,SAAS,GAAG,MAAA,GAAS,QAAQ;AACpE,WACEC,2BAAAA;AAAAA,MAAC;AAAA,MAAA;AAAA,QACC;AAAA,QACA,WAAWC,GAAAA,GAAG,kEAAkE,SAAS;AAAA,QACxF,GAAG;AAAA,QAEF,UAAA;AAAA,WAAA,SAAS,YACTD,2BAAAA,KAAC,OAAA,EAAI,WAAU,mDACb,UAAA;AAAA,YAAAE,2BAAAA,IAAC,OAAA,EAAI,WAAU,6BAA6B,UAAA,OAAM;AAAA,YACjD,WAAWA,2BAAAA,IAAC,OAAA,EAAI,WAAU,oCAAoC,UAAA,QAAA,CAAQ;AAAA,UAAA,GACzE;AAAA,UAEFF,2BAAAA,KAAC,OAAA,EAAI,WAAU,yBACb,UAAA;AAAA,YAAAE,2BAAAA,IAAC,KAAA,EAAE,WAAU,uEACV,UAAA,OACH;AAAA,YACC,eACCA,2BAAAA,IAAC,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.cjs","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":["React","jsxs","cn","jsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AA8BO,MAAM,iBAAiBA,iBAAM;AAAA,EAClC,CAAC,EAAE,WAAW,OAAO,OAAO,aAAa,SAAS,OAAO,OAAO,GAAG,MAAA,GAAS,QAAQ;AAClF,WACEC,2BAAAA;AAAAA,MAAC;AAAA,MAAA;AAAA,QACC;AAAA,QACA,WAAWC,GAAAA,GAAG,kEAAkE,SAAS;AAAA,QACxF,GAAG;AAAA,QAEF,UAAA;AAAA,WAAA,SAAS,YACTD,2BAAAA,KAAC,OAAA,EAAI,WAAU,mDACb,UAAA;AAAA,YAAAE,2BAAAA,IAAC,OAAA,EAAI,WAAU,6BAA6B,UAAA,OAAM;AAAA,YACjD,WAAWA,2BAAAA,IAAC,OAAA,EAAI,WAAU,oCAAoC,UAAA,QAAA,CAAQ;AAAA,UAAA,GACzE;AAAA,UAEFF,2BAAAA,KAAC,OAAA,EAAI,WAAU,yBACb,UAAA;AAAA,YAAAE,2BAAAA;AAAAA,cAAC;AAAA,cAAA;AAAA,gBACC,WAAWD,GAAAA;AAAAA,kBACT;AAAA,kBACA,OAAO,gBAAgB;AAAA,gBAAA;AAAA,gBAGxB,UAAA;AAAA,cAAA;AAAA,YAAA;AAAA,YAEF,eACCC,2BAAAA;AAAAA,cAAC;AAAA,cAAA;AAAA,gBACC,WAAWD,GAAAA;AAAAA,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;;"}
@@ -13,6 +13,11 @@ const PATH_VARIANTS = {
13
13
  normal: { x: 0 },
14
14
  animate: { x: [0, -1.5, 0] }
15
15
  };
16
+ const STROKE_WIDTH = {
17
+ 16: 1.5,
18
+ 24: 1.2,
19
+ 32: 1.125
20
+ };
16
21
  const MenuCloseIcon = React.forwardRef(
17
22
  ({ size = 24, filled: _filled, className, controlRef, onMouseEnter, onMouseLeave, ...props }, ref) => {
18
23
  const { controls, handleMouseEnter, handleMouseLeave } = useIconAnimation({
@@ -31,7 +36,7 @@ const MenuCloseIcon = React.forwardRef(
31
36
  strokeLinecap: "round",
32
37
  strokeLinejoin: "round",
33
38
  viewBox: "0 0 24 24",
34
- strokeWidth: "2",
39
+ strokeWidth: STROKE_WIDTH[size],
35
40
  className: cn(ICON_SIZE_CLASS[size], className),
36
41
  onMouseEnter: handleMouseEnter,
37
42
  onMouseLeave: handleMouseLeave,
@@ -1 +1 @@
1
- {"version":3,"file":"MenuCloseIcon.mjs","sources":["../../../src/components/AnimatedIcons/MenuCloseIcon.tsx"],"sourcesContent":["\"use client\";\n\n/*! Animated icon artwork from lucide-animated (MIT, (c) 2024-2026 pqoqubbw) — https://lucide-animated.com (registry item \"panel-left-close\"). @license MIT */\n// Generated by scripts/import-animated-icons.mjs — do not edit by hand.\nimport type { Transition, Variants } from \"motion/react\";\nimport { motion } from \"motion/react\";\nimport * as React from \"react\";\nimport { cn } from \"@/utils/cn\";\nimport { ICON_SIZE_CLASS } from \"../Icons/iconSizeClass\";\nimport type { AnimatedIconHandle, AnimatedIconProps } from \"./types\";\nimport { useIconAnimation } from \"./useIconAnimation\";\n\nconst DEFAULT_TRANSITION: Transition = {\n times: [0, 0.4, 1],\n duration: 0.5,\n};\n\nconst PATH_VARIANTS: Variants = {\n normal: { x: 0 },\n animate: { x: [0, -1.5, 0] },\n};\n\n/** Props for {@link MenuCloseIcon}. See {@link AnimatedIconProps} for the shared shape. */\nexport type MenuCloseIconProps = AnimatedIconProps;\n\n/** Imperative handle for {@link MenuCloseIcon}, via its `controlRef` prop. */\nexport type MenuCloseIconHandle = AnimatedIconHandle;\n\n/**\n * Animated MenuClose icon — the animated twin of `MenuCloseIcon` from\n * `@fanvue/ui`. Plays on hover, or on demand through `controlRef`, and stays\n * still when the user has asked for reduced motion.\n * Renders at sizes 16, 24, or 32 px — the same box as the static icon.\n *\n * @example\n * ```tsx\n * import { MenuCloseIcon } from \"@fanvue/ui/animated-icons\";\n *\n * <MenuCloseIcon size={24} />\n * ```\n */\nexport const MenuCloseIcon = React.forwardRef<SVGSVGElement, MenuCloseIconProps>(\n (\n { size = 24, filled: _filled, className, controlRef, onMouseEnter, onMouseLeave, ...props },\n ref,\n ) => {\n const { controls, handleMouseEnter, handleMouseLeave } = useIconAnimation({\n controlRef,\n onMouseEnter,\n onMouseLeave,\n });\n\n return (\n <svg\n ref={ref}\n aria-hidden=\"true\"\n {...props}\n fill=\"none\"\n stroke=\"currentColor\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n viewBox=\"0 0 24 24\"\n strokeWidth=\"2\"\n className={cn(ICON_SIZE_CLASS[size], className)}\n onMouseEnter={handleMouseEnter}\n onMouseLeave={handleMouseLeave}\n >\n <rect height=\"18\" rx=\"2\" width=\"18\" x=\"3\" y=\"3\" />\n <path d=\"M9 3v18\" />\n <motion.path\n animate={controls}\n d=\"m16 15-3-3 3-3\"\n transition={DEFAULT_TRANSITION}\n variants={PATH_VARIANTS}\n />\n </svg>\n );\n },\n);\n\nMenuCloseIcon.displayName = \"MenuCloseIcon\";\n"],"names":[],"mappings":";;;;;;;AAYA,MAAM,qBAAiC;AAAA,EACrC,OAAO,CAAC,GAAG,KAAK,CAAC;AAAA,EACjB,UAAU;AACZ;AAEA,MAAM,gBAA0B;AAAA,EAC9B,QAAQ,EAAE,GAAG,EAAA;AAAA,EACb,SAAS,EAAE,GAAG,CAAC,GAAG,MAAM,CAAC,EAAA;AAC3B;AAqBO,MAAM,gBAAgB,MAAM;AAAA,EACjC,CACE,EAAE,OAAO,IAAI,QAAQ,SAAS,WAAW,YAAY,cAAc,cAAc,GAAG,MAAA,GACpF,QACG;AACH,UAAM,EAAE,UAAU,kBAAkB,iBAAA,IAAqB,iBAAiB;AAAA,MACxE;AAAA,MACA;AAAA,MACA;AAAA,IAAA,CACD;AAED,WACE;AAAA,MAAC;AAAA,MAAA;AAAA,QACC;AAAA,QACA,eAAY;AAAA,QACX,GAAG;AAAA,QACJ,MAAK;AAAA,QACL,QAAO;AAAA,QACP,eAAc;AAAA,QACd,gBAAe;AAAA,QACf,SAAQ;AAAA,QACR,aAAY;AAAA,QACZ,WAAW,GAAG,gBAAgB,IAAI,GAAG,SAAS;AAAA,QAC9C,cAAc;AAAA,QACd,cAAc;AAAA,QAEd,UAAA;AAAA,UAAA,oBAAC,QAAA,EAAK,QAAO,MAAK,IAAG,KAAI,OAAM,MAAK,GAAE,KAAI,GAAE,IAAA,CAAI;AAAA,UAChD,oBAAC,QAAA,EAAK,GAAE,UAAA,CAAU;AAAA,UAClB;AAAA,YAAC,OAAO;AAAA,YAAP;AAAA,cACC,SAAS;AAAA,cACT,GAAE;AAAA,cACF,YAAY;AAAA,cACZ,UAAU;AAAA,YAAA;AAAA,UAAA;AAAA,QACZ;AAAA,MAAA;AAAA,IAAA;AAAA,EAGN;AACF;AAEA,cAAc,cAAc;"}
1
+ {"version":3,"file":"MenuCloseIcon.mjs","sources":["../../../src/components/AnimatedIcons/MenuCloseIcon.tsx"],"sourcesContent":["\"use client\";\n\n/*! Animated icon artwork from lucide-animated (MIT, (c) 2024-2026 pqoqubbw) — https://lucide-animated.com (registry item \"panel-left-close\"). @license MIT */\n// Generated by scripts/import-animated-icons.mjs — do not edit by hand.\nimport type { Transition, Variants } from \"motion/react\";\nimport { motion } from \"motion/react\";\nimport * as React from \"react\";\nimport { cn } from \"@/utils/cn\";\nimport { ICON_SIZE_CLASS } from \"../Icons/iconSizeClass\";\nimport type { IconSize } from \"../Icons/types\";\nimport type { AnimatedIconHandle, AnimatedIconProps } from \"./types\";\nimport { useIconAnimation } from \"./useIconAnimation\";\n\nconst DEFAULT_TRANSITION: Transition = {\n times: [0, 0.4, 1],\n duration: 0.5,\n};\n\nconst PATH_VARIANTS: Variants = {\n normal: { x: 0 },\n animate: { x: [0, -1.5, 0] },\n};\n\nconst STROKE_WIDTH: Record<IconSize, number> = {\n 16: 1.5,\n 24: 1.2,\n 32: 1.125,\n};\n\n/** Props for {@link MenuCloseIcon}. See {@link AnimatedIconProps} for the shared shape. */\nexport type MenuCloseIconProps = AnimatedIconProps;\n\n/** Imperative handle for {@link MenuCloseIcon}, via its `controlRef` prop. */\nexport type MenuCloseIconHandle = AnimatedIconHandle;\n\n/**\n * Animated MenuClose icon — the animated twin of `MenuCloseIcon` from\n * `@fanvue/ui`. Plays on hover, or on demand through `controlRef`, and stays\n * still when the user has asked for reduced motion.\n * Renders at sizes 16, 24, or 32 px — the same box and stroke weight as the static icon.\n *\n * @example\n * ```tsx\n * import { MenuCloseIcon } from \"@fanvue/ui/animated-icons\";\n *\n * <MenuCloseIcon size={24} />\n * ```\n */\nexport const MenuCloseIcon = React.forwardRef<SVGSVGElement, MenuCloseIconProps>(\n (\n { size = 24, filled: _filled, className, controlRef, onMouseEnter, onMouseLeave, ...props },\n ref,\n ) => {\n const { controls, handleMouseEnter, handleMouseLeave } = useIconAnimation({\n controlRef,\n onMouseEnter,\n onMouseLeave,\n });\n\n return (\n <svg\n ref={ref}\n aria-hidden=\"true\"\n {...props}\n fill=\"none\"\n stroke=\"currentColor\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n viewBox=\"0 0 24 24\"\n strokeWidth={STROKE_WIDTH[size]}\n className={cn(ICON_SIZE_CLASS[size], className)}\n onMouseEnter={handleMouseEnter}\n onMouseLeave={handleMouseLeave}\n >\n <rect height=\"18\" rx=\"2\" width=\"18\" x=\"3\" y=\"3\" />\n <path d=\"M9 3v18\" />\n <motion.path\n animate={controls}\n d=\"m16 15-3-3 3-3\"\n transition={DEFAULT_TRANSITION}\n variants={PATH_VARIANTS}\n />\n </svg>\n );\n },\n);\n\nMenuCloseIcon.displayName = \"MenuCloseIcon\";\n"],"names":[],"mappings":";;;;;;;AAaA,MAAM,qBAAiC;AAAA,EACrC,OAAO,CAAC,GAAG,KAAK,CAAC;AAAA,EACjB,UAAU;AACZ;AAEA,MAAM,gBAA0B;AAAA,EAC9B,QAAQ,EAAE,GAAG,EAAA;AAAA,EACb,SAAS,EAAE,GAAG,CAAC,GAAG,MAAM,CAAC,EAAA;AAC3B;AAEA,MAAM,eAAyC;AAAA,EAC7C,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AACN;AAqBO,MAAM,gBAAgB,MAAM;AAAA,EACjC,CACE,EAAE,OAAO,IAAI,QAAQ,SAAS,WAAW,YAAY,cAAc,cAAc,GAAG,MAAA,GACpF,QACG;AACH,UAAM,EAAE,UAAU,kBAAkB,iBAAA,IAAqB,iBAAiB;AAAA,MACxE;AAAA,MACA;AAAA,MACA;AAAA,IAAA,CACD;AAED,WACE;AAAA,MAAC;AAAA,MAAA;AAAA,QACC;AAAA,QACA,eAAY;AAAA,QACX,GAAG;AAAA,QACJ,MAAK;AAAA,QACL,QAAO;AAAA,QACP,eAAc;AAAA,QACd,gBAAe;AAAA,QACf,SAAQ;AAAA,QACR,aAAa,aAAa,IAAI;AAAA,QAC9B,WAAW,GAAG,gBAAgB,IAAI,GAAG,SAAS;AAAA,QAC9C,cAAc;AAAA,QACd,cAAc;AAAA,QAEd,UAAA;AAAA,UAAA,oBAAC,QAAA,EAAK,QAAO,MAAK,IAAG,KAAI,OAAM,MAAK,GAAE,KAAI,GAAE,IAAA,CAAI;AAAA,UAChD,oBAAC,QAAA,EAAK,GAAE,UAAA,CAAU;AAAA,UAClB;AAAA,YAAC,OAAO;AAAA,YAAP;AAAA,cACC,SAAS;AAAA,cACT,GAAE;AAAA,cACF,YAAY;AAAA,cACZ,UAAU;AAAA,YAAA;AAAA,UAAA;AAAA,QACZ;AAAA,MAAA;AAAA,IAAA;AAAA,EAGN;AACF;AAEA,cAAc,cAAc;"}
@@ -13,6 +13,11 @@ const PATH_VARIANTS = {
13
13
  normal: { x: 0 },
14
14
  animate: { x: [0, 1.5, 0] }
15
15
  };
16
+ const STROKE_WIDTH = {
17
+ 16: 1.5,
18
+ 24: 1.2,
19
+ 32: 1.125
20
+ };
16
21
  const MenuOpenIcon = React.forwardRef(
17
22
  ({ size = 24, filled: _filled, className, controlRef, onMouseEnter, onMouseLeave, ...props }, ref) => {
18
23
  const { controls, handleMouseEnter, handleMouseLeave } = useIconAnimation({
@@ -31,7 +36,7 @@ const MenuOpenIcon = React.forwardRef(
31
36
  strokeLinecap: "round",
32
37
  strokeLinejoin: "round",
33
38
  viewBox: "0 0 24 24",
34
- strokeWidth: "2",
39
+ strokeWidth: STROKE_WIDTH[size],
35
40
  className: cn(ICON_SIZE_CLASS[size], className),
36
41
  onMouseEnter: handleMouseEnter,
37
42
  onMouseLeave: handleMouseLeave,
@@ -1 +1 @@
1
- {"version":3,"file":"MenuOpenIcon.mjs","sources":["../../../src/components/AnimatedIcons/MenuOpenIcon.tsx"],"sourcesContent":["\"use client\";\n\n/*! Animated icon artwork from lucide-animated (MIT, (c) 2024-2026 pqoqubbw) — https://lucide-animated.com (registry item \"panel-left-open\"). @license MIT */\n// Generated by scripts/import-animated-icons.mjs — do not edit by hand.\nimport type { Transition, Variants } from \"motion/react\";\nimport { motion } from \"motion/react\";\nimport * as React from \"react\";\nimport { cn } from \"@/utils/cn\";\nimport { ICON_SIZE_CLASS } from \"../Icons/iconSizeClass\";\nimport type { AnimatedIconHandle, AnimatedIconProps } from \"./types\";\nimport { useIconAnimation } from \"./useIconAnimation\";\n\nconst DEFAULT_TRANSITION: Transition = {\n times: [0, 0.4, 1],\n duration: 0.5,\n};\n\nconst PATH_VARIANTS: Variants = {\n normal: { x: 0 },\n animate: { x: [0, 1.5, 0] },\n};\n\n/** Props for {@link MenuOpenIcon}. See {@link AnimatedIconProps} for the shared shape. */\nexport type MenuOpenIconProps = AnimatedIconProps;\n\n/** Imperative handle for {@link MenuOpenIcon}, via its `controlRef` prop. */\nexport type MenuOpenIconHandle = AnimatedIconHandle;\n\n/**\n * Animated MenuOpen icon — the animated twin of `MenuOpenIcon` from\n * `@fanvue/ui`. Plays on hover, or on demand through `controlRef`, and stays\n * still when the user has asked for reduced motion.\n * Renders at sizes 16, 24, or 32 px — the same box as the static icon.\n *\n * @example\n * ```tsx\n * import { MenuOpenIcon } from \"@fanvue/ui/animated-icons\";\n *\n * <MenuOpenIcon size={24} />\n * ```\n */\nexport const MenuOpenIcon = React.forwardRef<SVGSVGElement, MenuOpenIconProps>(\n (\n { size = 24, filled: _filled, className, controlRef, onMouseEnter, onMouseLeave, ...props },\n ref,\n ) => {\n const { controls, handleMouseEnter, handleMouseLeave } = useIconAnimation({\n controlRef,\n onMouseEnter,\n onMouseLeave,\n });\n\n return (\n <svg\n ref={ref}\n aria-hidden=\"true\"\n {...props}\n fill=\"none\"\n stroke=\"currentColor\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n viewBox=\"0 0 24 24\"\n strokeWidth=\"2\"\n className={cn(ICON_SIZE_CLASS[size], className)}\n onMouseEnter={handleMouseEnter}\n onMouseLeave={handleMouseLeave}\n >\n <rect height=\"18\" rx=\"2\" width=\"18\" x=\"3\" y=\"3\" />\n <path d=\"M9 3v18\" />\n <motion.path\n animate={controls}\n d=\"m14 9 3 3-3 3\"\n transition={DEFAULT_TRANSITION}\n variants={PATH_VARIANTS}\n />\n </svg>\n );\n },\n);\n\nMenuOpenIcon.displayName = \"MenuOpenIcon\";\n"],"names":[],"mappings":";;;;;;;AAYA,MAAM,qBAAiC;AAAA,EACrC,OAAO,CAAC,GAAG,KAAK,CAAC;AAAA,EACjB,UAAU;AACZ;AAEA,MAAM,gBAA0B;AAAA,EAC9B,QAAQ,EAAE,GAAG,EAAA;AAAA,EACb,SAAS,EAAE,GAAG,CAAC,GAAG,KAAK,CAAC,EAAA;AAC1B;AAqBO,MAAM,eAAe,MAAM;AAAA,EAChC,CACE,EAAE,OAAO,IAAI,QAAQ,SAAS,WAAW,YAAY,cAAc,cAAc,GAAG,MAAA,GACpF,QACG;AACH,UAAM,EAAE,UAAU,kBAAkB,iBAAA,IAAqB,iBAAiB;AAAA,MACxE;AAAA,MACA;AAAA,MACA;AAAA,IAAA,CACD;AAED,WACE;AAAA,MAAC;AAAA,MAAA;AAAA,QACC;AAAA,QACA,eAAY;AAAA,QACX,GAAG;AAAA,QACJ,MAAK;AAAA,QACL,QAAO;AAAA,QACP,eAAc;AAAA,QACd,gBAAe;AAAA,QACf,SAAQ;AAAA,QACR,aAAY;AAAA,QACZ,WAAW,GAAG,gBAAgB,IAAI,GAAG,SAAS;AAAA,QAC9C,cAAc;AAAA,QACd,cAAc;AAAA,QAEd,UAAA;AAAA,UAAA,oBAAC,QAAA,EAAK,QAAO,MAAK,IAAG,KAAI,OAAM,MAAK,GAAE,KAAI,GAAE,IAAA,CAAI;AAAA,UAChD,oBAAC,QAAA,EAAK,GAAE,UAAA,CAAU;AAAA,UAClB;AAAA,YAAC,OAAO;AAAA,YAAP;AAAA,cACC,SAAS;AAAA,cACT,GAAE;AAAA,cACF,YAAY;AAAA,cACZ,UAAU;AAAA,YAAA;AAAA,UAAA;AAAA,QACZ;AAAA,MAAA;AAAA,IAAA;AAAA,EAGN;AACF;AAEA,aAAa,cAAc;"}
1
+ {"version":3,"file":"MenuOpenIcon.mjs","sources":["../../../src/components/AnimatedIcons/MenuOpenIcon.tsx"],"sourcesContent":["\"use client\";\n\n/*! Animated icon artwork from lucide-animated (MIT, (c) 2024-2026 pqoqubbw) — https://lucide-animated.com (registry item \"panel-left-open\"). @license MIT */\n// Generated by scripts/import-animated-icons.mjs — do not edit by hand.\nimport type { Transition, Variants } from \"motion/react\";\nimport { motion } from \"motion/react\";\nimport * as React from \"react\";\nimport { cn } from \"@/utils/cn\";\nimport { ICON_SIZE_CLASS } from \"../Icons/iconSizeClass\";\nimport type { IconSize } from \"../Icons/types\";\nimport type { AnimatedIconHandle, AnimatedIconProps } from \"./types\";\nimport { useIconAnimation } from \"./useIconAnimation\";\n\nconst DEFAULT_TRANSITION: Transition = {\n times: [0, 0.4, 1],\n duration: 0.5,\n};\n\nconst PATH_VARIANTS: Variants = {\n normal: { x: 0 },\n animate: { x: [0, 1.5, 0] },\n};\n\nconst STROKE_WIDTH: Record<IconSize, number> = {\n 16: 1.5,\n 24: 1.2,\n 32: 1.125,\n};\n\n/** Props for {@link MenuOpenIcon}. See {@link AnimatedIconProps} for the shared shape. */\nexport type MenuOpenIconProps = AnimatedIconProps;\n\n/** Imperative handle for {@link MenuOpenIcon}, via its `controlRef` prop. */\nexport type MenuOpenIconHandle = AnimatedIconHandle;\n\n/**\n * Animated MenuOpen icon — the animated twin of `MenuOpenIcon` from\n * `@fanvue/ui`. Plays on hover, or on demand through `controlRef`, and stays\n * still when the user has asked for reduced motion.\n * Renders at sizes 16, 24, or 32 px — the same box and stroke weight as the static icon.\n *\n * @example\n * ```tsx\n * import { MenuOpenIcon } from \"@fanvue/ui/animated-icons\";\n *\n * <MenuOpenIcon size={24} />\n * ```\n */\nexport const MenuOpenIcon = React.forwardRef<SVGSVGElement, MenuOpenIconProps>(\n (\n { size = 24, filled: _filled, className, controlRef, onMouseEnter, onMouseLeave, ...props },\n ref,\n ) => {\n const { controls, handleMouseEnter, handleMouseLeave } = useIconAnimation({\n controlRef,\n onMouseEnter,\n onMouseLeave,\n });\n\n return (\n <svg\n ref={ref}\n aria-hidden=\"true\"\n {...props}\n fill=\"none\"\n stroke=\"currentColor\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n viewBox=\"0 0 24 24\"\n strokeWidth={STROKE_WIDTH[size]}\n className={cn(ICON_SIZE_CLASS[size], className)}\n onMouseEnter={handleMouseEnter}\n onMouseLeave={handleMouseLeave}\n >\n <rect height=\"18\" rx=\"2\" width=\"18\" x=\"3\" y=\"3\" />\n <path d=\"M9 3v18\" />\n <motion.path\n animate={controls}\n d=\"m14 9 3 3-3 3\"\n transition={DEFAULT_TRANSITION}\n variants={PATH_VARIANTS}\n />\n </svg>\n );\n },\n);\n\nMenuOpenIcon.displayName = \"MenuOpenIcon\";\n"],"names":[],"mappings":";;;;;;;AAaA,MAAM,qBAAiC;AAAA,EACrC,OAAO,CAAC,GAAG,KAAK,CAAC;AAAA,EACjB,UAAU;AACZ;AAEA,MAAM,gBAA0B;AAAA,EAC9B,QAAQ,EAAE,GAAG,EAAA;AAAA,EACb,SAAS,EAAE,GAAG,CAAC,GAAG,KAAK,CAAC,EAAA;AAC1B;AAEA,MAAM,eAAyC;AAAA,EAC7C,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AACN;AAqBO,MAAM,eAAe,MAAM;AAAA,EAChC,CACE,EAAE,OAAO,IAAI,QAAQ,SAAS,WAAW,YAAY,cAAc,cAAc,GAAG,MAAA,GACpF,QACG;AACH,UAAM,EAAE,UAAU,kBAAkB,iBAAA,IAAqB,iBAAiB;AAAA,MACxE;AAAA,MACA;AAAA,MACA;AAAA,IAAA,CACD;AAED,WACE;AAAA,MAAC;AAAA,MAAA;AAAA,QACC;AAAA,QACA,eAAY;AAAA,QACX,GAAG;AAAA,QACJ,MAAK;AAAA,QACL,QAAO;AAAA,QACP,eAAc;AAAA,QACd,gBAAe;AAAA,QACf,SAAQ;AAAA,QACR,aAAa,aAAa,IAAI;AAAA,QAC9B,WAAW,GAAG,gBAAgB,IAAI,GAAG,SAAS;AAAA,QAC9C,cAAc;AAAA,QACd,cAAc;AAAA,QAEd,UAAA;AAAA,UAAA,oBAAC,QAAA,EAAK,QAAO,MAAK,IAAG,KAAI,OAAM,MAAK,GAAE,KAAI,GAAE,IAAA,CAAI;AAAA,UAChD,oBAAC,QAAA,EAAK,GAAE,UAAA,CAAU;AAAA,UAClB;AAAA,YAAC,OAAO;AAAA,YAAP;AAAA,cACC,SAAS;AAAA,cACT,GAAE;AAAA,cACF,YAAY;AAAA,cACZ,UAAU;AAAA,YAAA;AAAA,UAAA;AAAA,QACZ;AAAA,MAAA;AAAA,IAAA;AAAA,EAGN;AACF;AAEA,aAAa,cAAc;"}
@@ -20,6 +20,7 @@ const Chip = React.forwardRef(
20
20
  notificationCount,
21
21
  notificationMax,
22
22
  notificationVariant = "brand",
23
+ notificationSize = "20",
23
24
  onClick,
24
25
  asChild = false,
25
26
  children,
@@ -49,7 +50,7 @@ const Chip = React.forwardRef(
49
50
  {
50
51
  x: "0.5",
51
52
  y: "0.5",
52
- rx: variant === "square" ? 7.5 : size === "40" ? 19.5 : 15.5,
53
+ rx: variant === "square" ? 7.5 : size === "40" ? 19.5 : size === "36" ? 17.5 : 15.5,
53
54
  fill: "none",
54
55
  stroke: "currentColor",
55
56
  strokeWidth: "1",
@@ -70,6 +71,7 @@ const Chip = React.forwardRef(
70
71
  variant === "square" ? "rounded-xs" : "rounded-full",
71
72
  // Size (32px uses 12px text, 40px uses 14px text per the design spec)
72
73
  size === "32" && "typography-description-12px-semibold h-8 min-w-12 py-1",
74
+ size === "36" && "typography-body-small-14px-semibold h-9 min-w-14 py-2",
73
75
  size === "40" && "typography-body-small-14px-semibold h-10 min-w-14 py-2.5",
74
76
  // Variant colors
75
77
  isDark && "bg-neutral-alphas-600 text-content-always-white",
@@ -147,13 +149,16 @@ const Chip = React.forwardRef(
147
149
  Count,
148
150
  {
149
151
  variant: notificationVariant,
150
- size: "32",
152
+ size: notificationSize === "16" ? "24" : "32",
151
153
  className: cn(
152
154
  // V2 Notification Count: 20px high/min-width, caption 12,
153
155
  // 4px horizontal and 2px vertical padding, rounded-md.
154
- "absolute top-[-4px] rounded-md px-1 py-0.5",
156
+ notificationSize === "20" && "absolute top-[-4px] rounded-md px-1 py-0.5",
157
+ notificationSize === "16" && "absolute top-[-6px] rounded-full",
155
158
  // Anchor the leading edge so wider values grow away from the label.
156
- size === "40" ? "left-[calc(100%_-_16px)]" : "left-[calc(100%_-_11px)]"
159
+ size === "40" && "left-[calc(100%_-_16px)]",
160
+ size === "36" && "left-[calc(100%_-_14px)]",
161
+ size === "32" && "left-[calc(100%_-_11px)]"
157
162
  ),
158
163
  value: notificationCount ?? 0,
159
164
  max: notificationMax,
@@ -1 +1 @@
1
- {"version":3,"file":"Chip.mjs","sources":["../../../src/components/Chip/Chip.tsx"],"sourcesContent":["import { Slot, Slottable } from \"@radix-ui/react-slot\";\nimport * as React from \"react\";\nimport { cn } from \"../../utils/cn\";\nimport { Count, type CountVariant } from \"../Count/Count\";\n\n/** Visual variant of the chip. */\nexport type ChipVariant = \"rounded\" | \"square\" | \"dark\";\n/** Height of the chip in pixels. */\nexport type ChipSize = \"32\" | \"40\";\n\nexport interface ChipProps extends React.HTMLAttributes<HTMLElement> {\n /** Visual variant of the chip. @default \"rounded\" */\n variant?: ChipVariant;\n /** Height of the chip in pixels. @default \"32\" */\n size?: ChipSize;\n /** Whether the chip is in a selected (pressed) state. @default false */\n selected?: boolean;\n /** Whether the chip is disabled. @default false */\n disabled?: boolean;\n /** Whether to show a coloured status dot at the leading edge. @default false */\n leftDot?: boolean;\n /**\n * Whether the chip uses a dashed border for add/create affordances.\n * When `selected`, it becomes a subtle filled state with a solid border.\n * Has no effect when `variant=\"dark\"`.\n * @default false\n */\n dotted?: boolean;\n /**\n * Draws the unselected state as a 1px `buttons-chip-default` outline over a\n * transparent background instead of filling with that same token. This is the\n * Figma `V2 Insights Chips` treatment, used where chips sit over a chart and a\n * row of solid fills would compete with the plotted series. The selected state\n * is unaffected — it stays filled — as are the `dark` and `dotted` variants.\n * @default false\n */\n outlined?: boolean;\n /** Icon element displayed before the label. */\n leftIcon?: React.ReactNode;\n /** Icon element displayed after the label. */\n rightIcon?: React.ReactNode;\n /** Notification badge content (e.g. `\"99+\"`). Passed as a string for i18n support. */\n notificationLabel?: string;\n /** Numeric value for the notification badge. Uses the `Count` component for overflow formatting. Takes precedence over `notificationLabel` when both are provided. */\n notificationCount?: number;\n /** Maximum value before the badge shows overflow (e.g. `\"9+\"`). Only applies when `notificationCount` is set. @default 99 */\n notificationMax?: number;\n /** Colour variant of the notification badge. @default \"brand\" */\n notificationVariant?: CountVariant;\n /** Click handler — when provided, the chip renders as a `<button>` for accessibility. */\n onClick?: React.MouseEventHandler<HTMLElement>;\n /** Merge props onto a child element instead of rendering a wrapper. @default false */\n asChild?: boolean;\n}\n\n/**\n * A compact element for filters, tags, or toggleable actions. When an `onClick`\n * handler is provided, the chip renders as an interactive `<button>` with\n * `aria-pressed` support.\n *\n * @example\n * ```tsx\n * <Chip selected onClick={toggle}>Music</Chip>\n * ```\n */\nexport const Chip = React.forwardRef<HTMLButtonElement, ChipProps>(\n (\n {\n className,\n variant = \"rounded\",\n size = \"32\",\n selected = false,\n disabled = false,\n leftDot = false,\n dotted = false,\n outlined = false,\n leftIcon,\n rightIcon,\n notificationLabel,\n notificationCount,\n notificationMax,\n notificationVariant = \"brand\",\n onClick,\n asChild = false,\n children,\n ...props\n },\n ref,\n // biome-ignore lint/complexity/noExcessiveCognitiveComplexity: Variant-heavy UI component\n ) => {\n const isInteractive = !!onClick && !asChild;\n const Comp = asChild ? Slot : isInteractive ? \"button\" : \"span\";\n const isDark = variant === \"dark\";\n // Precedence between the three treatments, named once rather than re-derived per\n // rule: `dark` owns its own palette, `dotted` wins over `outlined`, and what is\n // left is the normal chip, either filled or outlined.\n const isDotted = !isDark && dotted;\n const isSolid = !isDark && !dotted && !outlined;\n const isOutlined = !isDark && !dotted && outlined;\n\n // The dashed border is drawn as an SVG so the dash length matches the design\n // spec (8/8 for the 40px square, 6/6 otherwise). CSS `border-dashed` only\n // renders browser-default dash lengths, which are too short. The stroke colour\n // is driven by `currentColor`, and `group-hover`/`group-active` react to the\n // chip's interactive states. Rendered only in the default (non-`asChild`) path.\n const showDottedBorder = isDotted && !selected && !asChild;\n const dottedBorder = showDottedBorder ? (\n <svg\n aria-hidden=\"true\"\n className={cn(\n // `-1px` spans the reserved transparent border rather than the padding box\n // inside it, so the dash lands on the same ring as the solid border it\n // becomes when selected.\n \"pointer-events-none absolute -top-px -left-px h-[calc(100%+2px)] w-[calc(100%+2px)] overflow-visible\",\n disabled ? \"text-buttons-chip-disabled\" : \"text-buttons-chip-dotted-default\",\n isInteractive &&\n !disabled &&\n \"group-hover:text-buttons-chip-dotted-hover-stroke group-active:text-buttons-chip-dotted-hover-stroke\",\n )}\n >\n <rect\n x=\"0.5\"\n y=\"0.5\"\n rx={variant === \"square\" ? 7.5 : size === \"40\" ? 19.5 : 15.5}\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"1\"\n strokeDasharray={variant === \"square\" && size === \"40\" ? \"8 8\" : \"6 6\"}\n style={{ width: \"calc(100% - 1px)\", height: \"calc(100% - 1px)\" }}\n />\n </svg>\n ) : null;\n\n return (\n <Comp\n ref={ref}\n data-testid=\"chip\"\n className={cn(\n \"relative inline-flex min-w-0 items-center justify-center whitespace-nowrap motion-safe:transition-colors motion-safe:duration-150\",\n // Shape\n variant === \"square\" ? \"rounded-xs\" : \"rounded-full\",\n // Size (32px uses 12px text, 40px uses 14px text per the design spec)\n size === \"32\" && \"typography-description-12px-semibold h-8 min-w-12 py-1\",\n size === \"40\" && \"typography-body-small-14px-semibold h-10 min-w-14 py-2.5\",\n // Variant colors\n isDark && \"bg-neutral-alphas-600 text-content-always-white\",\n (isSolid || isOutlined) &&\n selected &&\n \"bg-buttons-chip-active text-content-primary-inverted\",\n // Active + dotted is a subtle filled state with a solid (non-dashed) border.\n isDotted &&\n selected &&\n \"border border-border-primary border-solid bg-inputs-inputs-primary text-content-primary\",\n isSolid && !selected && \"bg-buttons-chip-default text-content-primary\",\n // Outlined: the same token as a 1px stroke rather than a fill. The border\n // is declared in BOTH states and only changes colour, going transparent\n // once selected. It cannot be dropped on selection: `border-box` constrains\n // only explicitly sized axes, and a chip's width is intrinsic, so losing the\n // border would narrow the chip by 2px and reflow the whole row on every\n // click. Height is safe either way because `h-8` is explicit.\n isOutlined && \"border border-solid\",\n isOutlined &&\n !selected &&\n \"border-buttons-chip-default bg-transparent text-content-primary\",\n isOutlined && selected && \"border-transparent\",\n // Dotted (non-selected): the dashed border is drawn via SVG (`dottedBorder`).\n // `group` lets that SVG react to hover/active. `asChild` keeps a CSS dashed\n // border fallback since the SVG is only rendered in the default path.\n isDotted && !selected && \"bg-transparent text-content-primary\",\n isDotted && !selected && !asChild && \"group\",\n // The SVG path draws no CSS border, so selecting one used to add 1px and\n // widen the chip by 2px, shifting the row on every toggle. Reserving a\n // transparent border also puts the dash on the same ring as the solid\n // border it becomes. The `asChild` path already has a real border below.\n isDotted && !selected && !asChild && \"border border-transparent border-solid\",\n isDotted &&\n !selected &&\n asChild &&\n (disabled\n ? \"border border-buttons-chip-disabled border-dashed\"\n : \"border border-buttons-chip-dotted-default border-dashed\"),\n // Interactive\n isInteractive && !disabled && \"cursor-pointer\",\n isInteractive && !disabled && isSolid && !selected && \"hover:bg-buttons-chip-hover\",\n // Outlined darkens its stroke rather than filling. `buttons-chip-hover` is\n // the one-step darkening for chips, but as a fill it is 20% over a 10%\n // stroke, so it swallows the outline the variant exists to show. Moved onto\n // the border, over `interaction-hover`, the atomic hover surface.\n isInteractive &&\n !disabled &&\n isOutlined &&\n !selected &&\n \"hover:border-buttons-chip-hover hover:bg-interaction-hover\",\n isInteractive &&\n !disabled &&\n isDotted &&\n !selected &&\n \"hover:bg-neutral-alphas-50 active:bg-neutral-alphas-50\",\n // Focus\n \"focus-visible:shadow-focus-ring focus-visible:outline-none\",\n // Disabled\n disabled && isDark && \"pointer-events-none opacity-50\",\n disabled && !isDark && \"pointer-events-none text-content-disabled\",\n // Solid (non-dotted) disabled chips get a muted fill; dotted ones stay\n // transparent with their dashed border (drawn via SVG).\n disabled && (isSolid || (isOutlined && selected)) && \"bg-buttons-chip-disabled\",\n // Unselected outlined greys only its stroke. Selected is already filled, so\n // it takes the muted fill above and keeps `border-transparent` for its width.\n disabled && isOutlined && !selected && \"border-buttons-chip-disabled\",\n className,\n )}\n {...(isInteractive && {\n type: \"button\" as const,\n disabled,\n \"aria-pressed\": selected,\n onClick,\n })}\n {...(!isInteractive && disabled && { \"aria-disabled\": true })}\n {...(selected && { \"data-selected\": \"\" })}\n {...props}\n >\n {asChild ? (\n <Slottable>{children}</Slottable>\n ) : (\n <>\n {dottedBorder}\n <span className=\"flex min-w-0 items-center gap-0.5 overflow-hidden px-3\">\n {leftDot && (\n <span className=\"size-2 shrink-0 rounded-full bg-current\" aria-hidden=\"true\" />\n )}\n {leftIcon && (\n <span className=\"flex shrink-0 items-center justify-center\" aria-hidden=\"true\">\n {leftIcon}\n </span>\n )}\n <span className=\"min-w-0 truncate\">{children}</span>\n {rightIcon && (\n <span\n className=\"flex size-5 shrink-0 items-center justify-center\"\n aria-hidden=\"true\"\n >\n {rightIcon}\n </span>\n )}\n </span>\n {(notificationCount != null || notificationLabel) && (\n <Count\n variant={notificationVariant}\n size=\"32\"\n className={cn(\n // V2 Notification Count: 20px high/min-width, caption 12,\n // 4px horizontal and 2px vertical padding, rounded-md.\n \"absolute top-[-4px] rounded-md px-1 py-0.5\",\n // Anchor the leading edge so wider values grow away from the label.\n size === \"40\" ? \"left-[calc(100%_-_16px)]\" : \"left-[calc(100%_-_11px)]\",\n )}\n value={notificationCount ?? 0}\n max={notificationMax}\n >\n {notificationCount == null ? notificationLabel : undefined}\n </Count>\n )}\n </>\n )}\n </Comp>\n );\n },\n);\n\nChip.displayName = \"Chip\";\n"],"names":[],"mappings":"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"}
1
+ {"version":3,"file":"Chip.mjs","sources":["../../../src/components/Chip/Chip.tsx"],"sourcesContent":["import { Slot, Slottable } from \"@radix-ui/react-slot\";\nimport * as React from \"react\";\nimport { cn } from \"../../utils/cn\";\nimport { Count, type CountVariant } from \"../Count/Count\";\n\n/** Visual variant of the chip. */\nexport type ChipVariant = \"rounded\" | \"square\" | \"dark\";\n/** Height of the chip in pixels. */\nexport type ChipSize = \"32\" | \"36\" | \"40\";\n/** Height of the notification badge in pixels. */\nexport type ChipNotificationSize = \"16\" | \"20\";\n\nexport interface ChipProps extends React.HTMLAttributes<HTMLElement> {\n /** Visual variant of the chip. @default \"rounded\" */\n variant?: ChipVariant;\n /** Height of the chip in pixels. @default \"32\" */\n size?: ChipSize;\n /** Whether the chip is in a selected (pressed) state. @default false */\n selected?: boolean;\n /** Whether the chip is disabled. @default false */\n disabled?: boolean;\n /** Whether to show a coloured status dot at the leading edge. @default false */\n leftDot?: boolean;\n /**\n * Whether the chip uses a dashed border for add/create affordances.\n * When `selected`, it becomes a subtle filled state with a solid border.\n * Has no effect when `variant=\"dark\"`.\n * @default false\n */\n dotted?: boolean;\n /**\n * Draws the unselected state as a 1px `buttons-chip-default` outline over a\n * transparent background instead of filling with that same token. This is the\n * Figma `V2 Insights Chips` treatment, used where chips sit over a chart and a\n * row of solid fills would compete with the plotted series. The selected state\n * is unaffected — it stays filled — as are the `dark` and `dotted` variants.\n * @default false\n */\n outlined?: boolean;\n /** Icon element displayed before the label. */\n leftIcon?: React.ReactNode;\n /** Icon element displayed after the label. */\n rightIcon?: React.ReactNode;\n /** Notification badge content (e.g. `\"99+\"`). Passed as a string for i18n support. */\n notificationLabel?: string;\n /** Numeric value for the notification badge. Uses the `Count` component for overflow formatting. Takes precedence over `notificationLabel` when both are provided. */\n notificationCount?: number;\n /** Maximum value before the badge shows overflow (e.g. `\"9+\"`). Only applies when `notificationCount` is set. @default 99 */\n notificationMax?: number;\n /** Colour variant of the notification badge. @default \"brand\" */\n notificationVariant?: CountVariant;\n /**\n * Height of the notification badge. `\"20\"` is the V2 Notification Count, a\n * rounded square; `\"16\"` is a circle for dense rows such as page tab chips.\n * @default \"20\"\n */\n notificationSize?: ChipNotificationSize;\n /** Click handler — when provided, the chip renders as a `<button>` for accessibility. */\n onClick?: React.MouseEventHandler<HTMLElement>;\n /** Merge props onto a child element instead of rendering a wrapper. @default false */\n asChild?: boolean;\n}\n\n/**\n * A compact element for filters, tags, or toggleable actions. When an `onClick`\n * handler is provided, the chip renders as an interactive `<button>` with\n * `aria-pressed` support.\n *\n * @example\n * ```tsx\n * <Chip selected onClick={toggle}>Music</Chip>\n * ```\n */\nexport const Chip = React.forwardRef<HTMLButtonElement, ChipProps>(\n (\n {\n className,\n variant = \"rounded\",\n size = \"32\",\n selected = false,\n disabled = false,\n leftDot = false,\n dotted = false,\n outlined = false,\n leftIcon,\n rightIcon,\n notificationLabel,\n notificationCount,\n notificationMax,\n notificationVariant = \"brand\",\n notificationSize = \"20\",\n onClick,\n asChild = false,\n children,\n ...props\n },\n ref,\n // biome-ignore lint/complexity/noExcessiveCognitiveComplexity: Variant-heavy UI component\n ) => {\n const isInteractive = !!onClick && !asChild;\n const Comp = asChild ? Slot : isInteractive ? \"button\" : \"span\";\n const isDark = variant === \"dark\";\n // Precedence between the three treatments, named once rather than re-derived per\n // rule: `dark` owns its own palette, `dotted` wins over `outlined`, and what is\n // left is the normal chip, either filled or outlined.\n const isDotted = !isDark && dotted;\n const isSolid = !isDark && !dotted && !outlined;\n const isOutlined = !isDark && !dotted && outlined;\n\n // The dashed border is drawn as an SVG so the dash length matches the design\n // spec (8/8 for the 40px square, 6/6 otherwise). CSS `border-dashed` only\n // renders browser-default dash lengths, which are too short. The stroke colour\n // is driven by `currentColor`, and `group-hover`/`group-active` react to the\n // chip's interactive states. Rendered only in the default (non-`asChild`) path.\n const showDottedBorder = isDotted && !selected && !asChild;\n const dottedBorder = showDottedBorder ? (\n <svg\n aria-hidden=\"true\"\n className={cn(\n // `-1px` spans the reserved transparent border rather than the padding box\n // inside it, so the dash lands on the same ring as the solid border it\n // becomes when selected.\n \"pointer-events-none absolute -top-px -left-px h-[calc(100%+2px)] w-[calc(100%+2px)] overflow-visible\",\n disabled ? \"text-buttons-chip-disabled\" : \"text-buttons-chip-dotted-default\",\n isInteractive &&\n !disabled &&\n \"group-hover:text-buttons-chip-dotted-hover-stroke group-active:text-buttons-chip-dotted-hover-stroke\",\n )}\n >\n <rect\n x=\"0.5\"\n y=\"0.5\"\n rx={variant === \"square\" ? 7.5 : size === \"40\" ? 19.5 : size === \"36\" ? 17.5 : 15.5}\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"1\"\n strokeDasharray={variant === \"square\" && size === \"40\" ? \"8 8\" : \"6 6\"}\n style={{ width: \"calc(100% - 1px)\", height: \"calc(100% - 1px)\" }}\n />\n </svg>\n ) : null;\n\n return (\n <Comp\n ref={ref}\n data-testid=\"chip\"\n className={cn(\n \"relative inline-flex min-w-0 items-center justify-center whitespace-nowrap motion-safe:transition-colors motion-safe:duration-150\",\n // Shape\n variant === \"square\" ? \"rounded-xs\" : \"rounded-full\",\n // Size (32px uses 12px text, 40px uses 14px text per the design spec)\n size === \"32\" && \"typography-description-12px-semibold h-8 min-w-12 py-1\",\n size === \"36\" && \"typography-body-small-14px-semibold h-9 min-w-14 py-2\",\n size === \"40\" && \"typography-body-small-14px-semibold h-10 min-w-14 py-2.5\",\n // Variant colors\n isDark && \"bg-neutral-alphas-600 text-content-always-white\",\n (isSolid || isOutlined) &&\n selected &&\n \"bg-buttons-chip-active text-content-primary-inverted\",\n // Active + dotted is a subtle filled state with a solid (non-dashed) border.\n isDotted &&\n selected &&\n \"border border-border-primary border-solid bg-inputs-inputs-primary text-content-primary\",\n isSolid && !selected && \"bg-buttons-chip-default text-content-primary\",\n // Outlined: the same token as a 1px stroke rather than a fill. The border\n // is declared in BOTH states and only changes colour, going transparent\n // once selected. It cannot be dropped on selection: `border-box` constrains\n // only explicitly sized axes, and a chip's width is intrinsic, so losing the\n // border would narrow the chip by 2px and reflow the whole row on every\n // click. Height is safe either way because `h-8` is explicit.\n isOutlined && \"border border-solid\",\n isOutlined &&\n !selected &&\n \"border-buttons-chip-default bg-transparent text-content-primary\",\n isOutlined && selected && \"border-transparent\",\n // Dotted (non-selected): the dashed border is drawn via SVG (`dottedBorder`).\n // `group` lets that SVG react to hover/active. `asChild` keeps a CSS dashed\n // border fallback since the SVG is only rendered in the default path.\n isDotted && !selected && \"bg-transparent text-content-primary\",\n isDotted && !selected && !asChild && \"group\",\n // The SVG path draws no CSS border, so selecting one used to add 1px and\n // widen the chip by 2px, shifting the row on every toggle. Reserving a\n // transparent border also puts the dash on the same ring as the solid\n // border it becomes. The `asChild` path already has a real border below.\n isDotted && !selected && !asChild && \"border border-transparent border-solid\",\n isDotted &&\n !selected &&\n asChild &&\n (disabled\n ? \"border border-buttons-chip-disabled border-dashed\"\n : \"border border-buttons-chip-dotted-default border-dashed\"),\n // Interactive\n isInteractive && !disabled && \"cursor-pointer\",\n isInteractive && !disabled && isSolid && !selected && \"hover:bg-buttons-chip-hover\",\n // Outlined darkens its stroke rather than filling. `buttons-chip-hover` is\n // the one-step darkening for chips, but as a fill it is 20% over a 10%\n // stroke, so it swallows the outline the variant exists to show. Moved onto\n // the border, over `interaction-hover`, the atomic hover surface.\n isInteractive &&\n !disabled &&\n isOutlined &&\n !selected &&\n \"hover:border-buttons-chip-hover hover:bg-interaction-hover\",\n isInteractive &&\n !disabled &&\n isDotted &&\n !selected &&\n \"hover:bg-neutral-alphas-50 active:bg-neutral-alphas-50\",\n // Focus\n \"focus-visible:shadow-focus-ring focus-visible:outline-none\",\n // Disabled\n disabled && isDark && \"pointer-events-none opacity-50\",\n disabled && !isDark && \"pointer-events-none text-content-disabled\",\n // Solid (non-dotted) disabled chips get a muted fill; dotted ones stay\n // transparent with their dashed border (drawn via SVG).\n disabled && (isSolid || (isOutlined && selected)) && \"bg-buttons-chip-disabled\",\n // Unselected outlined greys only its stroke. Selected is already filled, so\n // it takes the muted fill above and keeps `border-transparent` for its width.\n disabled && isOutlined && !selected && \"border-buttons-chip-disabled\",\n className,\n )}\n {...(isInteractive && {\n type: \"button\" as const,\n disabled,\n \"aria-pressed\": selected,\n onClick,\n })}\n {...(!isInteractive && disabled && { \"aria-disabled\": true })}\n {...(selected && { \"data-selected\": \"\" })}\n {...props}\n >\n {asChild ? (\n <Slottable>{children}</Slottable>\n ) : (\n <>\n {dottedBorder}\n <span className=\"flex min-w-0 items-center gap-0.5 overflow-hidden px-3\">\n {leftDot && (\n <span className=\"size-2 shrink-0 rounded-full bg-current\" aria-hidden=\"true\" />\n )}\n {leftIcon && (\n <span className=\"flex shrink-0 items-center justify-center\" aria-hidden=\"true\">\n {leftIcon}\n </span>\n )}\n <span className=\"min-w-0 truncate\">{children}</span>\n {rightIcon && (\n <span\n className=\"flex size-5 shrink-0 items-center justify-center\"\n aria-hidden=\"true\"\n >\n {rightIcon}\n </span>\n )}\n </span>\n {(notificationCount != null || notificationLabel) && (\n <Count\n variant={notificationVariant}\n size={notificationSize === \"16\" ? \"24\" : \"32\"}\n className={cn(\n // V2 Notification Count: 20px high/min-width, caption 12,\n // 4px horizontal and 2px vertical padding, rounded-md.\n notificationSize === \"20\" && \"absolute top-[-4px] rounded-md px-1 py-0.5\",\n notificationSize === \"16\" && \"absolute top-[-6px] rounded-full\",\n // Anchor the leading edge so wider values grow away from the label.\n size === \"40\" && \"left-[calc(100%_-_16px)]\",\n size === \"36\" && \"left-[calc(100%_-_14px)]\",\n size === \"32\" && \"left-[calc(100%_-_11px)]\",\n )}\n value={notificationCount ?? 0}\n max={notificationMax}\n >\n {notificationCount == null ? notificationLabel : undefined}\n </Count>\n )}\n </>\n )}\n </Comp>\n );\n },\n);\n\nChip.displayName = \"Chip\";\n"],"names":[],"mappings":"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"}
@@ -3,46 +3,73 @@ import { jsxs, jsx } from "react/jsx-runtime";
3
3
  import * as React from "react";
4
4
  import { cn } from "../../utils/cn.mjs";
5
5
  import { Avatar } from "../Avatar/Avatar.mjs";
6
+ import { VerifiedIcon } from "../Icons/VerifiedIcon.mjs";
7
+ import { Pill } from "../Pill/Pill.mjs";
6
8
  const CreatorCard = React.forwardRef(
7
- ({ className, background, name, description, avatar, actions, ...props }, ref) => {
9
+ ({
10
+ className,
11
+ background,
12
+ pill,
13
+ avatar,
14
+ name,
15
+ verified = false,
16
+ verifiedLabel = "Verified",
17
+ tagline,
18
+ content,
19
+ action,
20
+ ...props
21
+ }, ref) => {
8
22
  return /* @__PURE__ */ jsxs(
9
23
  "div",
10
24
  {
11
25
  ref,
12
26
  className: cn(
13
- "relative isolate flex aspect-290/450 max-w-full flex-col justify-end overflow-hidden bg-background-primary",
27
+ "relative isolate flex flex-col overflow-hidden bg-surface-primary",
14
28
  className
15
29
  ),
16
30
  ...props,
17
31
  children: [
18
- /* @__PURE__ */ jsx("div", { className: "pointer-events-none absolute inset-0 h-full w-full select-none *:h-full *:w-full [&>img]:object-cover [&>video]:object-cover", children: background }),
19
- /* @__PURE__ */ jsx(
20
- "div",
21
- {
22
- className: cn(
23
- "pointer-events-none absolute inset-x-0 bottom-0 bg-linear-to-t from-background-primary via-background-primary/90 to-transparent",
24
- actions ? "h-3/5" : "h-1/3"
25
- )
26
- }
27
- ),
28
- /* @__PURE__ */ jsxs("div", { className: "relative flex flex-col gap-4 p-4", children: [
29
- /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-4", children: [
32
+ /* @__PURE__ */ jsxs("div", { className: "relative aspect-10/11 w-full shrink-0 overflow-hidden", children: [
33
+ /* @__PURE__ */ jsx("div", { className: "pointer-events-none absolute inset-0 select-none *:h-full *:w-full [&>img]:object-cover [&>video]:object-cover", children: background }),
34
+ pill ? /* @__PURE__ */ jsx(
35
+ Pill,
36
+ {
37
+ variant: "contrast",
38
+ ...pill,
39
+ className: cn("absolute top-2 left-2 max-w-[calc(100%-1rem)]", pill.className)
40
+ }
41
+ ) : null
42
+ ] }),
43
+ /* @__PURE__ */ jsxs("div", { className: "flex min-w-0 flex-col gap-2.5 p-3", children: [
44
+ /* @__PURE__ */ jsxs("div", { className: "flex min-w-0 items-center gap-2", children: [
30
45
  /* @__PURE__ */ jsx(
31
46
  Avatar,
32
47
  {
33
- size: 48,
48
+ size: 32,
34
49
  src: avatar?.src,
35
- alt: avatar?.alt ?? name,
50
+ alt: avatar?.alt ?? (typeof name === "string" ? name : void 0),
36
51
  fallback: avatar?.fallback,
37
52
  ...avatar
38
53
  }
39
54
  ),
40
- /* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1", children: [
41
- /* @__PURE__ */ jsx("p", { className: "typography-header-heading-sm truncate text-content-primary", children: name }),
42
- description && /* @__PURE__ */ jsx("p", { className: "typography-description-12px-semibold truncate text-content-secondary dark:text-brand-primary-default", children: description })
55
+ /* @__PURE__ */ jsxs("div", { className: "flex min-w-0 flex-1 flex-col", children: [
56
+ /* @__PURE__ */ jsxs("div", { className: "flex min-w-0 items-center gap-1", children: [
57
+ /* @__PURE__ */ jsx("p", { className: "typography-body-small-14px-semibold m-0 truncate text-content-primary", children: name }),
58
+ verified ? /* @__PURE__ */ jsx(
59
+ "span",
60
+ {
61
+ role: "img",
62
+ "aria-label": verifiedLabel,
63
+ className: "inline-flex shrink-0 text-content-primary",
64
+ children: /* @__PURE__ */ jsx(VerifiedIcon, { size: 16, filled: true })
65
+ }
66
+ ) : null
67
+ ] }),
68
+ tagline ? /* @__PURE__ */ jsx("p", { className: "typography-body-small-14px-regular m-0 truncate text-content-secondary", children: tagline }) : null
43
69
  ] })
44
70
  ] }),
45
- actions && /* @__PURE__ */ jsx("div", { className: "flex flex-col gap-2", children: actions })
71
+ content ? /* @__PURE__ */ jsx("div", { className: "typography-body-small-14px-semibold min-w-0 text-content-primary", children: content }) : null,
72
+ action ? /* @__PURE__ */ jsx("div", { className: "flex w-full", children: action }) : null
46
73
  ] })
47
74
  ]
48
75
  }
@@ -1 +1 @@
1
- {"version":3,"file":"CreatorCard.mjs","sources":["../../../src/components/CreatorCard/CreatorCard.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { cn } from \"../../utils/cn\";\nimport { Avatar } from \"../Avatar/Avatar\";\n\nexport interface CreatorCardProps extends React.HTMLAttributes<HTMLDivElement> {\n /** Decorative background media rendered behind the creator content. */\n background: React.ReactNode;\n /** Creator display name shown as the heading. */\n name: string;\n /** Optional secondary line shown below the name (e.g. role or tagline). */\n description?: string;\n /** Avatar props forwarded to the inner {@link Avatar}. */\n avatar?: React.ComponentPropsWithoutRef<typeof Avatar>;\n /**\n * Action buttons rendered at the bottom of the card. Pass zero, one, or two\n * `Button` elements to render variants with no, one, or two CTAs.\n */\n actions?: React.ReactNode;\n}\n\n/**\n * A portrait media card highlighting a creator with avatar, name, optional\n * tagline, and up to two stacked action buttons over a background image.\n *\n * Pass zero, one, or two {@link Button} elements via `actions` to render the\n * no-button, single-button, or two-button variants.\n *\n * @example\n * ```tsx\n * <CreatorCard\n * background={<img src=\"/creator.jpg\" alt=\"\" />}\n * name=\"Jane Doe\"\n * description=\"MODEL & PODCASTER\"\n * avatar={{ src: \"/avatar.jpg\", alt: \"Jane Doe\", fallback: \"JD\" }}\n * actions={\n * <>\n * <Button variant=\"brand\" fullWidth>Join for free for 3 days</Button>\n * <Button variant=\"primary\" fullWidth>Follow for Free</Button>\n * </>\n * }\n * />\n * ```\n */\nexport const CreatorCard = React.forwardRef<HTMLDivElement, CreatorCardProps>(\n ({ className, background, name, description, avatar, actions, ...props }, ref) => {\n return (\n <div\n ref={ref}\n className={cn(\n \"relative isolate flex aspect-290/450 max-w-full flex-col justify-end overflow-hidden bg-background-primary\",\n className,\n )}\n {...props}\n >\n <div className=\"pointer-events-none absolute inset-0 h-full w-full select-none *:h-full *:w-full [&>img]:object-cover [&>video]:object-cover\">\n {background}\n </div>\n <div\n className={cn(\n \"pointer-events-none absolute inset-x-0 bottom-0 bg-linear-to-t from-background-primary via-background-primary/90 to-transparent\",\n actions ? \"h-3/5\" : \"h-1/3\",\n )}\n />\n <div className=\"relative flex flex-col gap-4 p-4\">\n <div className=\"flex items-center gap-4\">\n <Avatar\n size={48}\n src={avatar?.src}\n alt={avatar?.alt ?? name}\n fallback={avatar?.fallback}\n {...avatar}\n />\n <div className=\"min-w-0 flex-1\">\n <p className=\"typography-header-heading-sm truncate text-content-primary\">{name}</p>\n {description && (\n <p className=\"typography-description-12px-semibold truncate text-content-secondary dark:text-brand-primary-default\">\n {description}\n </p>\n )}\n </div>\n </div>\n {actions && <div className=\"flex flex-col gap-2\">{actions}</div>}\n </div>\n </div>\n );\n },\n);\n\nCreatorCard.displayName = \"CreatorCard\";\n"],"names":[],"mappings":";;;;;AA2CO,MAAM,cAAc,MAAM;AAAA,EAC/B,CAAC,EAAE,WAAW,YAAY,MAAM,aAAa,QAAQ,SAAS,GAAG,MAAA,GAAS,QAAQ;AAChF,WACE;AAAA,MAAC;AAAA,MAAA;AAAA,QACC;AAAA,QACA,WAAW;AAAA,UACT;AAAA,UACA;AAAA,QAAA;AAAA,QAED,GAAG;AAAA,QAEJ,UAAA;AAAA,UAAA,oBAAC,OAAA,EAAI,WAAU,gIACZ,UAAA,YACH;AAAA,UACA;AAAA,YAAC;AAAA,YAAA;AAAA,cACC,WAAW;AAAA,gBACT;AAAA,gBACA,UAAU,UAAU;AAAA,cAAA;AAAA,YACtB;AAAA,UAAA;AAAA,UAEF,qBAAC,OAAA,EAAI,WAAU,oCACb,UAAA;AAAA,YAAA,qBAAC,OAAA,EAAI,WAAU,2BACb,UAAA;AAAA,cAAA;AAAA,gBAAC;AAAA,gBAAA;AAAA,kBACC,MAAM;AAAA,kBACN,KAAK,QAAQ;AAAA,kBACb,KAAK,QAAQ,OAAO;AAAA,kBACpB,UAAU,QAAQ;AAAA,kBACjB,GAAG;AAAA,gBAAA;AAAA,cAAA;AAAA,cAEN,qBAAC,OAAA,EAAI,WAAU,kBACb,UAAA;AAAA,gBAAA,oBAAC,KAAA,EAAE,WAAU,8DAA8D,UAAA,MAAK;AAAA,gBAC/E,eACC,oBAAC,KAAA,EAAE,WAAU,wGACV,UAAA,YAAA,CACH;AAAA,cAAA,EAAA,CAEJ;AAAA,YAAA,GACF;AAAA,YACC,WAAW,oBAAC,OAAA,EAAI,WAAU,uBAAuB,UAAA,QAAA,CAAQ;AAAA,UAAA,EAAA,CAC5D;AAAA,QAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EAGN;AACF;AAEA,YAAY,cAAc;"}
1
+ {"version":3,"file":"CreatorCard.mjs","sources":["../../../src/components/CreatorCard/CreatorCard.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { cn } from \"../../utils/cn\";\nimport { Avatar } from \"../Avatar/Avatar\";\nimport { VerifiedIcon } from \"../Icons/VerifiedIcon\";\nimport { Pill, type PillProps } from \"../Pill/Pill\";\n\nexport interface CreatorCardProps extends Omit<React.HTMLAttributes<HTMLDivElement>, \"content\"> {\n /** Decorative banner media rendered at the top of the card. */\n background: React.ReactNode;\n /**\n * Props forwarded to a {@link Pill} overlaid on the top-left of the banner.\n * Pass the label as `children`. Omit to hide the pill.\n */\n pill?: PillProps;\n /** Avatar props forwarded to the inner {@link Avatar}. */\n avatar?: React.ComponentPropsWithoutRef<typeof Avatar>;\n /** Creator display name shown next to the avatar. */\n name: React.ReactNode;\n /** When `true`, renders a verified badge after the name. @default false */\n verified?: boolean;\n /** Accessible label for the verified badge. @default \"Verified\" */\n verifiedLabel?: string;\n /** Optional secondary line shown under the name (e.g. post count). */\n tagline?: React.ReactNode;\n /**\n * Optional content shown under the creator details (e.g. the subscription\n * price). It wraps by default; pass a `truncate` element to keep it on one line.\n */\n content?: React.ReactNode;\n /**\n * Action element rendered full-width at the bottom of the card (e.g. a\n * `Button` with `fullWidth` for subscribing to the creator).\n */\n action?: React.ReactNode;\n}\n\n/**\n * A card suggesting a creator, with a banner image, an optional {@link Pill},\n * the creator's avatar, name and tagline, free-form content such as a price,\n * and an optional action.\n *\n * The card has no fixed width or corner radius: set both through `className`\n * (e.g. `className=\"w-40 rounded-md\"`). The banner keeps a 10:11 ratio at any\n * width.\n *\n * @example\n * ```tsx\n * <CreatorCard\n * className=\"w-40 rounded-md\"\n * background={<img src=\"/banner.jpg\" alt=\"\" />}\n * pill={{ variant: \"contrast\", children: \"Popular this week\" }}\n * avatar={{ src: \"/avatar.jpg\", fallback: \"JD\" }}\n * name=\"Jane Doe\"\n * verified\n * tagline=\"412 posts\"\n * content={<span className=\"block truncate\">$9.99 / month</span>}\n * action={<Button variant=\"primary\" size=\"32\" fullWidth>Subscribe</Button>}\n * />\n * ```\n */\nexport const CreatorCard = React.forwardRef<HTMLDivElement, CreatorCardProps>(\n (\n {\n className,\n background,\n pill,\n avatar,\n name,\n verified = false,\n verifiedLabel = \"Verified\",\n tagline,\n content,\n action,\n ...props\n },\n ref,\n ) => {\n return (\n <div\n ref={ref}\n className={cn(\n \"relative isolate flex flex-col overflow-hidden bg-surface-primary\",\n className,\n )}\n {...props}\n >\n <div className=\"relative aspect-10/11 w-full shrink-0 overflow-hidden\">\n <div className=\"pointer-events-none absolute inset-0 select-none *:h-full *:w-full [&>img]:object-cover [&>video]:object-cover\">\n {background}\n </div>\n {pill ? (\n <Pill\n variant=\"contrast\"\n {...pill}\n className={cn(\"absolute top-2 left-2 max-w-[calc(100%-1rem)]\", pill.className)}\n />\n ) : null}\n </div>\n <div className=\"flex min-w-0 flex-col gap-2.5 p-3\">\n <div className=\"flex min-w-0 items-center gap-2\">\n <Avatar\n size={32}\n src={avatar?.src}\n alt={avatar?.alt ?? (typeof name === \"string\" ? name : undefined)}\n fallback={avatar?.fallback}\n {...avatar}\n />\n <div className=\"flex min-w-0 flex-1 flex-col\">\n <div className=\"flex min-w-0 items-center gap-1\">\n <p className=\"typography-body-small-14px-semibold m-0 truncate text-content-primary\">\n {name}\n </p>\n {verified ? (\n <span\n role=\"img\"\n aria-label={verifiedLabel}\n className=\"inline-flex shrink-0 text-content-primary\"\n >\n <VerifiedIcon size={16} filled />\n </span>\n ) : null}\n </div>\n {tagline ? (\n <p className=\"typography-body-small-14px-regular m-0 truncate text-content-secondary\">\n {tagline}\n </p>\n ) : null}\n </div>\n </div>\n {content ? (\n <div className=\"typography-body-small-14px-semibold min-w-0 text-content-primary\">\n {content}\n </div>\n ) : null}\n {action ? <div className=\"flex w-full\">{action}</div> : null}\n </div>\n </div>\n );\n },\n);\n\nCreatorCard.displayName = \"CreatorCard\";\n"],"names":[],"mappings":";;;;;;;AA4DO,MAAM,cAAc,MAAM;AAAA,EAC/B,CACE;AAAA,IACE;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,WAAW;AAAA,IACX,gBAAgB;AAAA,IAChB;AAAA,IACA;AAAA,IACA;AAAA,IACA,GAAG;AAAA,EAAA,GAEL,QACG;AACH,WACE;AAAA,MAAC;AAAA,MAAA;AAAA,QACC;AAAA,QACA,WAAW;AAAA,UACT;AAAA,UACA;AAAA,QAAA;AAAA,QAED,GAAG;AAAA,QAEJ,UAAA;AAAA,UAAA,qBAAC,OAAA,EAAI,WAAU,yDACb,UAAA;AAAA,YAAA,oBAAC,OAAA,EAAI,WAAU,kHACZ,UAAA,YACH;AAAA,YACC,OACC;AAAA,cAAC;AAAA,cAAA;AAAA,gBACC,SAAQ;AAAA,gBACP,GAAG;AAAA,gBACJ,WAAW,GAAG,iDAAiD,KAAK,SAAS;AAAA,cAAA;AAAA,YAAA,IAE7E;AAAA,UAAA,GACN;AAAA,UACA,qBAAC,OAAA,EAAI,WAAU,qCACb,UAAA;AAAA,YAAA,qBAAC,OAAA,EAAI,WAAU,mCACb,UAAA;AAAA,cAAA;AAAA,gBAAC;AAAA,gBAAA;AAAA,kBACC,MAAM;AAAA,kBACN,KAAK,QAAQ;AAAA,kBACb,KAAK,QAAQ,QAAQ,OAAO,SAAS,WAAW,OAAO;AAAA,kBACvD,UAAU,QAAQ;AAAA,kBACjB,GAAG;AAAA,gBAAA;AAAA,cAAA;AAAA,cAEN,qBAAC,OAAA,EAAI,WAAU,gCACb,UAAA;AAAA,gBAAA,qBAAC,OAAA,EAAI,WAAU,mCACb,UAAA;AAAA,kBAAA,oBAAC,KAAA,EAAE,WAAU,yEACV,UAAA,MACH;AAAA,kBACC,WACC;AAAA,oBAAC;AAAA,oBAAA;AAAA,sBACC,MAAK;AAAA,sBACL,cAAY;AAAA,sBACZ,WAAU;AAAA,sBAEV,UAAA,oBAAC,cAAA,EAAa,MAAM,IAAI,QAAM,KAAA,CAAC;AAAA,oBAAA;AAAA,kBAAA,IAE/B;AAAA,gBAAA,GACN;AAAA,gBACC,UACC,oBAAC,KAAA,EAAE,WAAU,0EACV,mBACH,IACE;AAAA,cAAA,EAAA,CACN;AAAA,YAAA,GACF;AAAA,YACC,UACC,oBAAC,OAAA,EAAI,WAAU,oEACZ,mBACH,IACE;AAAA,YACH,SAAS,oBAAC,OAAA,EAAI,WAAU,eAAe,kBAAO,IAAS;AAAA,UAAA,EAAA,CAC1D;AAAA,QAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EAGN;AACF;AAEA,YAAY,cAAc;"}
@@ -6,45 +6,45 @@ const VARIANTS = {
6
6
  16: {
7
7
  outlined: [
8
8
  {
9
- 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"
9
+ 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",
10
+ sw: 1
10
11
  },
11
- {
12
- d: "M5.313 15.167a.504.504 0 0 1-.5-.5V1.333c0-.273.227-.5.5-.5.274 0 .5.227.5.5v13.334a.5.5 0 0 1-.5.5m4.667-4.96a.5.5 0 0 1-.353-.146L7.92 8.354a.503.503 0 0 1 0-.707l1.707-1.706a.503.503 0 0 1 .706 0 .503.503 0 0 1 0 .706L8.987 8.001l1.353 1.353a.498.498 0 0 1-.36.853"
13
- }
12
+ { d: "M5 11.5v-7", sw: 1 }
14
13
  ],
15
14
  filled: [
16
15
  {
17
- d: "M1.333 5.206v5.587c0 .993.24 1.82.7 2.453.194.28.44.527.72.72.547.4 1.24.634 2.06.687v-13.3c-2.186.14-3.48 1.56-3.48 3.853m12.634-2.453a2.8 2.8 0 0 0-.72-.72c-.634-.46-1.46-.7-2.454-.7h-4.98v13.334h4.98c2.427 0 3.874-1.447 3.874-3.874V5.207c0-.994-.24-1.82-.7-2.454m-3.634 6.6a.503.503 0 0 1 0 .707.495.495 0 0 1-.707 0L7.92 8.353a.503.503 0 0 1 0-.706L9.627 5.94a.503.503 0 0 1 .706 0 .503.503 0 0 1 0 .707L8.987 8z"
16
+ 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 M4.5 4.5a0.5 0.5 0 0 1 1 0v7a0.5 0.5 0 0 1-1 0Z",
17
+ eo: true
18
18
  }
19
19
  ]
20
20
  },
21
21
  24: {
22
22
  outlined: [
23
23
  {
24
- 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"
24
+ 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",
25
+ sw: 1.2
25
26
  },
26
- {
27
- d: "M7.97 22.75c-.41 0-.75-.34-.75-.75V2c0-.41.34-.75.75-.75s.75.34.75.75v20c0 .41-.33.75-.75.75m7-7.44c-.19 0-.38-.07-.53-.22l-2.56-2.56a.754.754 0 0 1 0-1.06l2.56-2.56c.29-.29.77-.29 1.06 0s.29.77 0 1.06L13.48 12l2.03 2.03c.29.29.29.77 0 1.06-.15.15-.34.22-.54.22"
28
- }
27
+ { d: "M6.5 18.75V5.25", sw: 1.2 }
29
28
  ],
30
29
  filled: [
31
30
  {
32
- d: "M2 7.81v8.38c0 1.49.36 2.73 1.05 3.68.29.42.66.79 1.08 1.08.82.6 1.86.95 3.09 1.03V2.03C3.94 2.24 2 4.37 2 7.81m18.95-3.68c-.29-.42-.66-.79-1.08-1.08C18.92 2.36 17.68 2 16.19 2H8.72v20h7.47c3.64 0 5.81-2.17 5.81-5.81V7.81c0-1.49-.36-2.73-1.05-3.68m-5.45 9.9c.29.29.29.77 0 1.06-.15.15-.34.22-.53.22s-.38-.07-.53-.22l-2.56-2.56a.754.754 0 0 1 0-1.06l2.56-2.56c.29-.29.77-.29 1.06 0s.29.77 0 1.06L13.48 12z"
31
+ 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 M4.9 5.25a0.6 0.6 0 0 1 1.2 0v13.5a0.6 0.6 0 0 1-1.2 0Z",
32
+ eo: true
33
33
  }
34
34
  ]
35
35
  },
36
36
  32: {
37
37
  outlined: [
38
38
  {
39
- 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"
39
+ 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",
40
+ sw: 1.5
40
41
  },
41
- {
42
- d: "M10.627 30.333c-.547 0-1-.453-1-1V2.667c0-.547.453-1 1-1s1 .453 1 1v26.666c0 .547-.44 1-1 1m9.333-9.918a1 1 0 0 1-.707-.294l-3.413-3.413a1.006 1.006 0 0 1 0-1.413l3.413-3.414a1.006 1.006 0 0 1 1.414 0 1.006 1.006 0 0 1 0 1.413l-2.694 2.707 2.707 2.707a1.006 1.006 0 0 1 0 1.413c-.2.2-.453.294-.72.294"
43
- }
42
+ { d: "M8 25V7", sw: 1.5 }
44
43
  ],
45
44
  filled: [
46
45
  {
47
- d: "M2.667 10.412v11.174c0 1.986.48 3.64 1.4 4.906.386.56.88 1.054 1.44 1.44 1.093.8 2.48 1.267 4.12 1.374v-26.6c-4.374.28-6.96 3.12-6.96 7.706m25.266-4.905a5.7 5.7 0 0 0-1.44-1.44c-1.266-.92-2.92-1.4-4.906-1.4h-9.96v26.666h9.96c4.853 0 7.746-2.893 7.746-7.746V10.413c0-1.986-.48-3.64-1.4-4.906m-7.267 13.2a1.006 1.006 0 0 1 0 1.413c-.2.2-.453.293-.706.293a1 1 0 0 1-.707-.293l-3.413-3.413a1.006 1.006 0 0 1 0-1.414l3.413-3.413a1.006 1.006 0 0 1 1.413 0 1.006 1.006 0 0 1 0 1.413L17.973 16z"
46
+ 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 M7.25 7a0.75 0.75 0 0 1 1.5 0v18a0.75 0.75 0 0 1-1.5 0Z",
47
+ eo: true
48
48
  }
49
49
  ]
50
50
  }
@@ -1 +1 @@
1
- {"version":3,"file":"MenuCloseIcon.mjs","sources":["../../../src/components/Icons/MenuCloseIcon.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: \"M5.313 15.167a.504.504 0 0 1-.5-.5V1.333c0-.273.227-.5.5-.5.274 0 .5.227.5.5v13.334a.5.5 0 0 1-.5.5m4.667-4.96a.5.5 0 0 1-.353-.146L7.92 8.354a.503.503 0 0 1 0-.707l1.707-1.706a.503.503 0 0 1 .706 0 .503.503 0 0 1 0 .706L8.987 8.001l1.353 1.353a.498.498 0 0 1-.36.853\",\n },\n ],\n filled: [\n {\n d: \"M1.333 5.206v5.587c0 .993.24 1.82.7 2.453.194.28.44.527.72.72.547.4 1.24.634 2.06.687v-13.3c-2.186.14-3.48 1.56-3.48 3.853m12.634-2.453a2.8 2.8 0 0 0-.72-.72c-.634-.46-1.46-.7-2.454-.7h-4.98v13.334h4.98c2.427 0 3.874-1.447 3.874-3.874V5.207c0-.994-.24-1.82-.7-2.454m-3.634 6.6a.503.503 0 0 1 0 .707.495.495 0 0 1-.707 0L7.92 8.353a.503.503 0 0 1 0-.706L9.627 5.94a.503.503 0 0 1 .706 0 .503.503 0 0 1 0 .707L8.987 8z\",\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: \"M7.97 22.75c-.41 0-.75-.34-.75-.75V2c0-.41.34-.75.75-.75s.75.34.75.75v20c0 .41-.33.75-.75.75m7-7.44c-.19 0-.38-.07-.53-.22l-2.56-2.56a.754.754 0 0 1 0-1.06l2.56-2.56c.29-.29.77-.29 1.06 0s.29.77 0 1.06L13.48 12l2.03 2.03c.29.29.29.77 0 1.06-.15.15-.34.22-.54.22\",\n },\n ],\n filled: [\n {\n d: \"M2 7.81v8.38c0 1.49.36 2.73 1.05 3.68.29.42.66.79 1.08 1.08.82.6 1.86.95 3.09 1.03V2.03C3.94 2.24 2 4.37 2 7.81m18.95-3.68c-.29-.42-.66-.79-1.08-1.08C18.92 2.36 17.68 2 16.19 2H8.72v20h7.47c3.64 0 5.81-2.17 5.81-5.81V7.81c0-1.49-.36-2.73-1.05-3.68m-5.45 9.9c.29.29.29.77 0 1.06-.15.15-.34.22-.53.22s-.38-.07-.53-.22l-2.56-2.56a.754.754 0 0 1 0-1.06l2.56-2.56c.29-.29.77-.29 1.06 0s.29.77 0 1.06L13.48 12z\",\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: \"M10.627 30.333c-.547 0-1-.453-1-1V2.667c0-.547.453-1 1-1s1 .453 1 1v26.666c0 .547-.44 1-1 1m9.333-9.918a1 1 0 0 1-.707-.294l-3.413-3.413a1.006 1.006 0 0 1 0-1.413l3.413-3.414a1.006 1.006 0 0 1 1.414 0 1.006 1.006 0 0 1 0 1.413l-2.694 2.707 2.707 2.707a1.006 1.006 0 0 1 0 1.413c-.2.2-.453.294-.72.294\",\n },\n ],\n filled: [\n {\n d: \"M2.667 10.412v11.174c0 1.986.48 3.64 1.4 4.906.386.56.88 1.054 1.44 1.44 1.093.8 2.48 1.267 4.12 1.374v-26.6c-4.374.28-6.96 3.12-6.96 7.706m25.266-4.905a5.7 5.7 0 0 0-1.44-1.44c-1.266-.92-2.92-1.4-4.906-1.4h-9.96v26.666h9.96c4.853 0 7.746-2.893 7.746-7.746V10.413c0-1.986-.48-3.64-1.4-4.906m-7.267 13.2a1.006 1.006 0 0 1 0 1.413c-.2.2-.453.293-.706.293a1 1 0 0 1-.707-.293l-3.413-3.413a1.006 1.006 0 0 1 0-1.414l3.413-3.413a1.006 1.006 0 0 1 1.413 0 1.006 1.006 0 0 1 0 1.413L17.973 16z\",\n },\n ],\n },\n};\n\n/** Props for {@link MenuCloseIcon}. See {@link BaseIconProps} for the shared shape. */\nexport type MenuCloseIconProps = BaseIconProps;\n\n/**\n * Menu Close icon. Renders at sizes 16, 24, or 32 px with outlined and filled variants.\n *\n * @example\n * ```tsx\n * <MenuCloseIcon size={24} filled />\n * ```\n */\nexport const MenuCloseIcon = React.forwardRef<SVGSVGElement, MenuCloseIconProps>((props, ref) => (\n <BaseIcon ref={ref} variants={VARIANTS} {...props} />\n));\n\nMenuCloseIcon.displayName = \"MenuCloseIcon\";\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,gBAAgB,MAAM,WAA8C,CAAC,OAAO,QACvF,oBAAC,UAAA,EAAS,KAAU,UAAU,UAAW,GAAG,OAAO,CACpD;AAED,cAAc,cAAc;"}
1
+ {"version":3,"file":"MenuCloseIcon.mjs","sources":["../../../src/components/Icons/MenuCloseIcon.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: \"M5 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 M4.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: \"M6.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 M4.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: \"M8 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 M7.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 MenuCloseIcon}. See {@link BaseIconProps} for the shared shape. */\nexport type MenuCloseIconProps = BaseIconProps;\n\n/**\n * Menu Close icon. Renders at sizes 16, 24, or 32 px with outlined and filled variants.\n *\n * @example\n * ```tsx\n * <MenuCloseIcon size={24} filled />\n * ```\n */\nexport const MenuCloseIcon = React.forwardRef<SVGSVGElement, MenuCloseIconProps>((props, ref) => (\n <BaseIcon ref={ref} variants={VARIANTS} {...props} />\n));\n\nMenuCloseIcon.displayName = \"MenuCloseIcon\";\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,cAAc,IAAI,EAAA;AAAA,IAAE;AAAA,IAE3B,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,mBAAmB,IAAI,IAAA;AAAA,IAAI;AAAA,IAElC,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,WAAW,IAAI,IAAA;AAAA,IAAI;AAAA,IAE1B,QAAQ;AAAA,MACN;AAAA,QACE,GAAG;AAAA,QACH,IAAI;AAAA,MAAA;AAAA,IACN;AAAA,EACF;AAEJ;AAaO,MAAM,gBAAgB,MAAM,WAA8C,CAAC,OAAO,QACvF,oBAAC,UAAA,EAAS,KAAU,UAAU,UAAW,GAAG,OAAO,CACpD;AAED,cAAc,cAAc;"}
@@ -6,45 +6,45 @@ const VARIANTS = {
6
6
  16: {
7
7
  outlined: [
8
8
  {
9
- 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"
9
+ 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",
10
+ sw: 1
10
11
  },
11
- {
12
- 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"
13
- }
12
+ { d: "M11 11.5v-7", sw: 1 }
14
13
  ],
15
14
  filled: [
16
15
  {
17
- 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"
16
+ 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",
17
+ eo: true
18
18
  }
19
19
  ]
20
20
  },
21
21
  24: {
22
22
  outlined: [
23
23
  {
24
- 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"
24
+ 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",
25
+ sw: 1.2
25
26
  },
26
- {
27
- 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"
28
- }
27
+ { d: "M17.5 18.75V5.25", sw: 1.2 }
29
28
  ],
30
29
  filled: [
31
30
  {
32
- 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"
31
+ 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",
32
+ eo: true
33
33
  }
34
34
  ]
35
35
  },
36
36
  32: {
37
37
  outlined: [
38
38
  {
39
- 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"
39
+ 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",
40
+ sw: 1.5
40
41
  },
41
- {
42
- 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"
43
- }
42
+ { d: "M24 25V7", sw: 1.5 }
44
43
  ],
45
44
  filled: [
46
45
  {
47
- 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"
46
+ 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",
47
+ eo: true
48
48
  }
49
49
  ]
50
50
  }