@fanvue/ui 3.42.2 → 3.44.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/Icons/MenuCloseIcon.cjs +15 -15
  9. package/dist/cjs/components/Icons/MenuCloseIcon.cjs.map +1 -1
  10. package/dist/cjs/components/Icons/MenuOpenIcon.cjs +15 -15
  11. package/dist/cjs/components/Icons/MenuOpenIcon.cjs.map +1 -1
  12. package/dist/cjs/components/Table/TableMobileRow.cjs +66 -0
  13. package/dist/cjs/components/Table/TableMobileRow.cjs.map +1 -0
  14. package/dist/cjs/index.cjs +2 -0
  15. package/dist/cjs/index.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/Icons/MenuCloseIcon.mjs +15 -15
  23. package/dist/components/Icons/MenuCloseIcon.mjs.map +1 -1
  24. package/dist/components/Icons/MenuOpenIcon.mjs +15 -15
  25. package/dist/components/Icons/MenuOpenIcon.mjs.map +1 -1
  26. package/dist/components/Table/TableMobileRow.mjs +49 -0
  27. package/dist/components/Table/TableMobileRow.mjs.map +1 -0
  28. package/dist/index.d.ts +39 -1
  29. package/dist/index.mjs +2 -0
  30. package/dist/index.mjs.map +1 -1
  31. package/dist/styles/theme.css +4 -4
  32. package/package.json +9 -9
@@ -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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"}
@@ -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
  }
@@ -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;"}
@@ -0,0 +1,49 @@
1
+ "use client";
2
+ import { jsxs, jsx } from "react/jsx-runtime";
3
+ import * as React from "react";
4
+ import { cn } from "../../utils/cn.mjs";
5
+ const TableMobileRow = React.forwardRef(
6
+ ({ className, badge, title, description, actions, wrap = false, ...props }, ref) => {
7
+ return /* @__PURE__ */ jsxs(
8
+ "div",
9
+ {
10
+ ref,
11
+ className: cn("flex w-full flex-col gap-4 border-border-primary border-b py-4", className),
12
+ ...props,
13
+ children: [
14
+ (badge || actions) && /* @__PURE__ */ jsxs("div", { className: "flex min-h-6 items-center justify-between gap-2", children: [
15
+ /* @__PURE__ */ jsx("div", { className: "flex min-w-0 items-center", children: badge }),
16
+ actions && /* @__PURE__ */ jsx("div", { className: "flex shrink-0 items-center gap-2", children: actions })
17
+ ] }),
18
+ /* @__PURE__ */ jsxs("div", { className: "flex min-w-0 flex-col", children: [
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
+ )
39
+ ] })
40
+ ]
41
+ }
42
+ );
43
+ }
44
+ );
45
+ TableMobileRow.displayName = "TableMobileRow";
46
+ export {
47
+ TableMobileRow
48
+ };
49
+ //# sourceMappingURL=TableMobileRow.mjs.map
@@ -0,0 +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 /** 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";
@@ -6324,6 +6333,35 @@ export declare interface TableMediaThumbnailProps extends Omit<React_2.HTMLAttri
6324
6333
  /** Pixel size of the square {@link TableMediaThumbnail}. */
6325
6334
  export declare type TableMediaThumbnailSize = "48" | "32";
6326
6335
 
6336
+ /**
6337
+ * Stacked row that stands in for a table row on narrow screens (Figma `V2 Table Mobile`):
6338
+ * a badge and actions line, then a title with a description, closed by a divider.
6339
+ *
6340
+ * @example
6341
+ * ```tsx
6342
+ * <TableMobileRow
6343
+ * badge={<Pill variant="green">Dynamic</Pill>}
6344
+ * title="Top Spenders"
6345
+ * description="320 members"
6346
+ * actions={<IconButton aria-label="Open list" icon={<ChevronRightIcon />} />}
6347
+ * />
6348
+ * ```
6349
+ */
6350
+ export declare const TableMobileRow: React_2.ForwardRefExoticComponent<TableMobileRowProps & React_2.RefAttributes<HTMLDivElement>>;
6351
+
6352
+ export declare interface TableMobileRowProps extends Omit<React_2.HTMLAttributes<HTMLDivElement>, "title"> {
6353
+ /** Status or type label above the title, typically a {@link Pill}. */
6354
+ badge?: React_2.ReactNode;
6355
+ /** Primary line (semibold body). */
6356
+ title: React_2.ReactNode;
6357
+ /** Secondary line beneath the title (muted). */
6358
+ description?: React_2.ReactNode;
6359
+ /** Trailing controls on the badge line, such as a favourite toggle and a navigation {@link IconButton}. */
6360
+ actions?: React_2.ReactNode;
6361
+ /** When `true`, the title and description wrap onto more lines instead of truncating. @default false */
6362
+ wrap?: boolean;
6363
+ }
6364
+
6327
6365
  /**
6328
6366
  * Footer bar for data tables: rows-per-page control, page navigation, and
6329
6367
  * range summary. Pair `paginationSlot` with {@link Pagination} for numbered
package/dist/index.mjs CHANGED
@@ -255,6 +255,7 @@ import { SwitchButton } from "./components/SwitchButton/SwitchButton.mjs";
255
255
  import { SwitchField } from "./components/SwitchField/SwitchField.mjs";
256
256
  import { SwitchToggle } from "./components/SwitchToggle/SwitchToggle.mjs";
257
257
  import { Table, TableBody, TableCard, TableCell, TableCellContent, TableCellGroup, TableFooter, TableHead, TableHeader, TableLineClamp, TableMediaThumbnail, TablePillProgressLayout, TableProgressTrack, TableRow, TableRowsPerPageSelect, TableScrollArea, TableSortLabel, TableStackedText, TableStatusDot, TableToolbar } from "./components/Table/Table.mjs";
258
+ import { TableMobileRow } from "./components/Table/TableMobileRow.mjs";
258
259
  import { TablePagination } from "./components/Table/TablePagination.mjs";
259
260
  import { Tabs } from "./components/Tabs/Tabs.mjs";
260
261
  import { TabsContent } from "./components/Tabs/TabsContent.mjs";
@@ -568,6 +569,7 @@ export {
568
569
  TableHeader,
569
570
  TableLineClamp,
570
571
  TableMediaThumbnail,
572
+ TableMobileRow,
571
573
  TablePagination,
572
574
  TablePillProgressLayout,
573
575
  TableProgressTrack,
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -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.42.2",
3
+ "version": "3.44.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
  }