@fanvue/ui 3.44.0 → 3.46.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.
@@ -5,6 +5,8 @@ const jsxRuntime = require("react/jsx-runtime");
5
5
  const React = require("react");
6
6
  const cn = require("../../utils/cn.cjs");
7
7
  const Avatar = require("../Avatar/Avatar.cjs");
8
+ const VerifiedIcon = require("../Icons/VerifiedIcon.cjs");
9
+ const Pill = require("../Pill/Pill.cjs");
8
10
  function _interopNamespaceDefault(e) {
9
11
  const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
10
12
  if (e) {
@@ -23,45 +25,70 @@ function _interopNamespaceDefault(e) {
23
25
  }
24
26
  const React__namespace = /* @__PURE__ */ _interopNamespaceDefault(React);
25
27
  const CreatorCard = React__namespace.forwardRef(
26
- ({ className, background, name, description, avatar, actions, ...props }, ref) => {
28
+ ({
29
+ className,
30
+ background,
31
+ pill,
32
+ avatar,
33
+ name,
34
+ verified = false,
35
+ verifiedLabel = "Verified",
36
+ tagline,
37
+ content,
38
+ action,
39
+ ...props
40
+ }, ref) => {
27
41
  return /* @__PURE__ */ jsxRuntime.jsxs(
28
42
  "div",
29
43
  {
30
44
  ref,
31
45
  className: cn.cn(
32
- "relative isolate flex aspect-290/450 max-w-full flex-col justify-end overflow-hidden bg-background-primary",
46
+ "relative isolate flex flex-col overflow-hidden bg-surface-primary",
33
47
  className
34
48
  ),
35
49
  ...props,
36
50
  children: [
37
- /* @__PURE__ */ jsxRuntime.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 }),
38
- /* @__PURE__ */ jsxRuntime.jsx(
39
- "div",
40
- {
41
- className: cn.cn(
42
- "pointer-events-none absolute inset-x-0 bottom-0 bg-linear-to-t from-background-primary via-background-primary/90 to-transparent",
43
- actions ? "h-3/5" : "h-1/3"
44
- )
45
- }
46
- ),
47
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative flex flex-col gap-4 p-4", children: [
48
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-4", children: [
51
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative aspect-10/11 w-full shrink-0 overflow-hidden", children: [
52
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "pointer-events-none absolute inset-0 select-none *:h-full *:w-full [&>img]:object-cover [&>video]:object-cover", children: background }),
53
+ pill ? /* @__PURE__ */ jsxRuntime.jsx(
54
+ Pill.Pill,
55
+ {
56
+ variant: "contrast",
57
+ ...pill,
58
+ className: cn.cn("absolute top-2 left-2 max-w-[calc(100%-1rem)]", pill.className)
59
+ }
60
+ ) : null
61
+ ] }),
62
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex min-w-0 flex-col gap-2.5 p-3", children: [
63
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex min-w-0 items-center gap-2", children: [
49
64
  /* @__PURE__ */ jsxRuntime.jsx(
50
65
  Avatar.Avatar,
51
66
  {
52
- size: 48,
67
+ size: 32,
53
68
  src: avatar?.src,
54
- alt: avatar?.alt ?? name,
69
+ alt: avatar?.alt ?? (typeof name === "string" ? name : void 0),
55
70
  fallback: avatar?.fallback,
56
71
  ...avatar
57
72
  }
58
73
  ),
59
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-w-0 flex-1", children: [
60
- /* @__PURE__ */ jsxRuntime.jsx("p", { className: "typography-header-heading-sm truncate text-content-primary", children: name }),
61
- description && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "typography-description-12px-semibold truncate text-content-secondary dark:text-brand-primary-default", children: description })
74
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex min-w-0 flex-1 flex-col", children: [
75
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex min-w-0 items-center gap-1", children: [
76
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: "typography-body-small-14px-semibold m-0 truncate text-content-primary", children: name }),
77
+ verified ? /* @__PURE__ */ jsxRuntime.jsx(
78
+ "span",
79
+ {
80
+ role: "img",
81
+ "aria-label": verifiedLabel,
82
+ className: "inline-flex shrink-0 text-content-primary",
83
+ children: /* @__PURE__ */ jsxRuntime.jsx(VerifiedIcon.VerifiedIcon, { size: 16, filled: true })
84
+ }
85
+ ) : null
86
+ ] }),
87
+ tagline ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "typography-body-small-14px-regular m-0 truncate text-content-secondary", children: tagline }) : null
62
88
  ] })
63
89
  ] }),
64
- actions && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-col gap-2", children: actions })
90
+ content ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "typography-body-small-14px-semibold min-w-0 text-content-primary", children: content }) : null,
91
+ action ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex w-full", children: action }) : null
65
92
  ] })
66
93
  ]
67
94
  }
@@ -1 +1 @@
1
- {"version":3,"file":"CreatorCard.cjs","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":["React","jsxs","cn","jsx","Avatar"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AA2CO,MAAM,cAAcA,iBAAM;AAAA,EAC/B,CAAC,EAAE,WAAW,YAAY,MAAM,aAAa,QAAQ,SAAS,GAAG,MAAA,GAAS,QAAQ;AAChF,WACEC,2BAAAA;AAAAA,MAAC;AAAA,MAAA;AAAA,QACC;AAAA,QACA,WAAWC,GAAAA;AAAAA,UACT;AAAA,UACA;AAAA,QAAA;AAAA,QAED,GAAG;AAAA,QAEJ,UAAA;AAAA,UAAAC,2BAAAA,IAAC,OAAA,EAAI,WAAU,gIACZ,UAAA,YACH;AAAA,UACAA,2BAAAA;AAAAA,YAAC;AAAA,YAAA;AAAA,cACC,WAAWD,GAAAA;AAAAA,gBACT;AAAA,gBACA,UAAU,UAAU;AAAA,cAAA;AAAA,YACtB;AAAA,UAAA;AAAA,UAEFD,2BAAAA,KAAC,OAAA,EAAI,WAAU,oCACb,UAAA;AAAA,YAAAA,2BAAAA,KAAC,OAAA,EAAI,WAAU,2BACb,UAAA;AAAA,cAAAE,2BAAAA;AAAAA,gBAACC,OAAAA;AAAAA,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,cAENH,2BAAAA,KAAC,OAAA,EAAI,WAAU,kBACb,UAAA;AAAA,gBAAAE,2BAAAA,IAAC,KAAA,EAAE,WAAU,8DAA8D,UAAA,MAAK;AAAA,gBAC/E,eACCA,2BAAAA,IAAC,KAAA,EAAE,WAAU,wGACV,UAAA,YAAA,CACH;AAAA,cAAA,EAAA,CAEJ;AAAA,YAAA,GACF;AAAA,YACC,WAAWA,2BAAAA,IAAC,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.cjs","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":["React","jsxs","cn","jsx","Pill","Avatar","VerifiedIcon"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AA4DO,MAAM,cAAcA,iBAAM;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,WACEC,2BAAAA;AAAAA,MAAC;AAAA,MAAA;AAAA,QACC;AAAA,QACA,WAAWC,GAAAA;AAAAA,UACT;AAAA,UACA;AAAA,QAAA;AAAA,QAED,GAAG;AAAA,QAEJ,UAAA;AAAA,UAAAD,2BAAAA,KAAC,OAAA,EAAI,WAAU,yDACb,UAAA;AAAA,YAAAE,2BAAAA,IAAC,OAAA,EAAI,WAAU,kHACZ,UAAA,YACH;AAAA,YACC,OACCA,2BAAAA;AAAAA,cAACC,KAAAA;AAAAA,cAAA;AAAA,gBACC,SAAQ;AAAA,gBACP,GAAG;AAAA,gBACJ,WAAWF,GAAAA,GAAG,iDAAiD,KAAK,SAAS;AAAA,cAAA;AAAA,YAAA,IAE7E;AAAA,UAAA,GACN;AAAA,UACAD,2BAAAA,KAAC,OAAA,EAAI,WAAU,qCACb,UAAA;AAAA,YAAAA,2BAAAA,KAAC,OAAA,EAAI,WAAU,mCACb,UAAA;AAAA,cAAAE,2BAAAA;AAAAA,gBAACE,OAAAA;AAAAA,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,cAENJ,2BAAAA,KAAC,OAAA,EAAI,WAAU,gCACb,UAAA;AAAA,gBAAAA,2BAAAA,KAAC,OAAA,EAAI,WAAU,mCACb,UAAA;AAAA,kBAAAE,2BAAAA,IAAC,KAAA,EAAE,WAAU,yEACV,UAAA,MACH;AAAA,kBACC,WACCA,2BAAAA;AAAAA,oBAAC;AAAA,oBAAA;AAAA,sBACC,MAAK;AAAA,sBACL,cAAY;AAAA,sBACZ,WAAU;AAAA,sBAEV,UAAAA,2BAAAA,IAACG,2BAAA,EAAa,MAAM,IAAI,QAAM,KAAA,CAAC;AAAA,oBAAA;AAAA,kBAAA,IAE/B;AAAA,gBAAA,GACN;AAAA,gBACC,UACCH,2BAAAA,IAAC,KAAA,EAAE,WAAU,0EACV,mBACH,IACE;AAAA,cAAA,EAAA,CACN;AAAA,YAAA,GACF;AAAA,YACC,UACCA,2BAAAA,IAAC,OAAA,EAAI,WAAU,oEACZ,mBACH,IACE;AAAA,YACH,SAASA,2BAAAA,IAAC,OAAA,EAAI,WAAU,eAAe,kBAAO,IAAS;AAAA,UAAA,EAAA,CAC1D;AAAA,QAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EAGN;AACF;AAEA,YAAY,cAAc;;"}
@@ -0,0 +1,65 @@
1
+ "use client";
2
+ "use strict";
3
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
4
+ const jsxRuntime = require("react/jsx-runtime");
5
+ const React = require("react");
6
+ const BaseIcon = require("./BaseIcon.cjs");
7
+ function _interopNamespaceDefault(e) {
8
+ const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
9
+ if (e) {
10
+ for (const k in e) {
11
+ if (k !== "default") {
12
+ const d = Object.getOwnPropertyDescriptor(e, k);
13
+ Object.defineProperty(n, k, d.get ? d : {
14
+ enumerable: true,
15
+ get: () => e[k]
16
+ });
17
+ }
18
+ }
19
+ }
20
+ n.default = e;
21
+ return Object.freeze(n);
22
+ }
23
+ const React__namespace = /* @__PURE__ */ _interopNamespaceDefault(React);
24
+ const VARIANTS = {
25
+ 16: {
26
+ outlined: [
27
+ {
28
+ d: "M12.713 15.167c-.34 0-.713-.1-1.073-.307l-3.253-1.807c-.194-.106-.574-.106-.767 0L4.367 14.86c-.66.367-1.334.407-1.847.1-.513-.3-.807-.907-.807-1.66V3.907A3.08 3.08 0 0 1 4.787.833h6.433a3.08 3.08 0 0 1 3.073 3.074V13.3c0 .753-.293 1.36-.806 1.66-.234.14-.5.207-.774.207M8 11.973c.313 0 .62.067.867.207l3.253 1.807c.34.193.653.233.853.113s.314-.407.314-.8V3.907a2.08 2.08 0 0 0-2.074-2.074H4.787a2.08 2.08 0 0 0-2.074 2.074V13.3c0 .393.114.687.314.8s.506.08.853-.113l3.253-1.807c.247-.14.554-.207.867-.207"
29
+ }
30
+ ],
31
+ filled: [
32
+ {
33
+ d: "M11.213 1.333H4.787a2.58 2.58 0 0 0-2.574 2.574V13.3c0 1.2.86 1.707 1.914 1.127L7.38 12.62c.347-.193.907-.193 1.247 0l3.253 1.807c1.053.586 1.913.08 1.913-1.127V3.907a2.59 2.59 0 0 0-2.58-2.574"
34
+ }
35
+ ]
36
+ },
37
+ 24: {
38
+ outlined: [
39
+ {
40
+ d: "M19.07 22.75c-.51 0-1.07-.15-1.61-.46l-4.88-2.71c-.29-.16-.86-.16-1.15 0l-4.88 2.71c-.99.55-2 .61-2.77.15-.77-.45-1.21-1.36-1.21-2.49V5.86c0-2.54 2.07-4.61 4.61-4.61h9.65c2.54 0 4.61 2.07 4.61 4.61v14.09c0 1.13-.44 2.04-1.21 2.49-.35.21-.75.31-1.16.31M12 17.96c.47 0 .93.1 1.3.31l4.88 2.71c.51.29.98.35 1.28.17s.47-.61.47-1.2V5.86c0-1.71-1.4-3.11-3.11-3.11H7.18a3.12 3.12 0 0 0-3.11 3.11v14.09c0 .59.17 1.03.47 1.2s.76.12 1.28-.17l4.88-2.71c.37-.21.83-.31 1.3-.31"
41
+ }
42
+ ],
43
+ filled: [
44
+ {
45
+ d: "M16.82 2H7.18C5.05 2 3.32 3.74 3.32 5.86v14.09c0 1.8 1.29 2.56 2.87 1.69l4.88-2.71c.52-.29 1.36-.29 1.87 0l4.88 2.71c1.58.88 2.87.12 2.87-1.69V5.86C20.68 3.74 18.95 2 16.82 2"
46
+ }
47
+ ]
48
+ },
49
+ 32: {
50
+ outlined: [
51
+ {
52
+ d: "M25.427 30.333c-.68 0-1.427-.2-2.147-.613l-6.507-3.613c-.386-.214-1.146-.214-1.533 0L8.733 29.72c-1.32.733-2.666.813-3.693.2-1.027-.6-1.613-1.813-1.613-3.32V7.813a6.157 6.157 0 0 1 6.146-6.146H22.44a6.157 6.157 0 0 1 6.147 6.146V26.6c0 1.507-.587 2.72-1.613 3.32-.467.28-1 .413-1.547.413M16 23.947c.627 0 1.24.133 1.733.413l6.507 3.613c.68.387 1.307.467 1.707.227s.627-.813.627-1.6V7.813a4.16 4.16 0 0 0-4.147-4.146H9.573a4.16 4.16 0 0 0-4.146 4.146V26.6c0 .787.226 1.373.626 1.6s1.014.16 1.707-.227l6.507-3.613c.493-.28 1.107-.413 1.733-.413"
53
+ }
54
+ ],
55
+ filled: [
56
+ {
57
+ d: "M22.427 2.667H9.573c-2.84 0-5.146 2.32-5.146 5.146V26.6c0 2.4 1.72 3.413 3.826 2.253l6.507-3.613c.694-.387 1.813-.387 2.493 0l6.507 3.613c2.107 1.174 3.827.16 3.827-2.253V7.813c-.014-2.826-2.32-5.146-5.16-5.146"
58
+ }
59
+ ]
60
+ }
61
+ };
62
+ const BookmarkIcon = React__namespace.forwardRef((props, ref) => /* @__PURE__ */ jsxRuntime.jsx(BaseIcon.BaseIcon, { ref, variants: VARIANTS, ...props }));
63
+ BookmarkIcon.displayName = "BookmarkIcon";
64
+ exports.BookmarkIcon = BookmarkIcon;
65
+ //# sourceMappingURL=BookmarkIcon.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BookmarkIcon.cjs","sources":["../../../../src/components/Icons/BookmarkIcon.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: \"M12.713 15.167c-.34 0-.713-.1-1.073-.307l-3.253-1.807c-.194-.106-.574-.106-.767 0L4.367 14.86c-.66.367-1.334.407-1.847.1-.513-.3-.807-.907-.807-1.66V3.907A3.08 3.08 0 0 1 4.787.833h6.433a3.08 3.08 0 0 1 3.073 3.074V13.3c0 .753-.293 1.36-.806 1.66-.234.14-.5.207-.774.207M8 11.973c.313 0 .62.067.867.207l3.253 1.807c.34.193.653.233.853.113s.314-.407.314-.8V3.907a2.08 2.08 0 0 0-2.074-2.074H4.787a2.08 2.08 0 0 0-2.074 2.074V13.3c0 .393.114.687.314.8s.506.08.853-.113l3.253-1.807c.247-.14.554-.207.867-.207\",\n },\n ],\n filled: [\n {\n d: \"M11.213 1.333H4.787a2.58 2.58 0 0 0-2.574 2.574V13.3c0 1.2.86 1.707 1.914 1.127L7.38 12.62c.347-.193.907-.193 1.247 0l3.253 1.807c1.053.586 1.913.08 1.913-1.127V3.907a2.59 2.59 0 0 0-2.58-2.574\",\n },\n ],\n },\n 24: {\n outlined: [\n {\n d: \"M19.07 22.75c-.51 0-1.07-.15-1.61-.46l-4.88-2.71c-.29-.16-.86-.16-1.15 0l-4.88 2.71c-.99.55-2 .61-2.77.15-.77-.45-1.21-1.36-1.21-2.49V5.86c0-2.54 2.07-4.61 4.61-4.61h9.65c2.54 0 4.61 2.07 4.61 4.61v14.09c0 1.13-.44 2.04-1.21 2.49-.35.21-.75.31-1.16.31M12 17.96c.47 0 .93.1 1.3.31l4.88 2.71c.51.29.98.35 1.28.17s.47-.61.47-1.2V5.86c0-1.71-1.4-3.11-3.11-3.11H7.18a3.12 3.12 0 0 0-3.11 3.11v14.09c0 .59.17 1.03.47 1.2s.76.12 1.28-.17l4.88-2.71c.37-.21.83-.31 1.3-.31\",\n },\n ],\n filled: [\n {\n d: \"M16.82 2H7.18C5.05 2 3.32 3.74 3.32 5.86v14.09c0 1.8 1.29 2.56 2.87 1.69l4.88-2.71c.52-.29 1.36-.29 1.87 0l4.88 2.71c1.58.88 2.87.12 2.87-1.69V5.86C20.68 3.74 18.95 2 16.82 2\",\n },\n ],\n },\n 32: {\n outlined: [\n {\n d: \"M25.427 30.333c-.68 0-1.427-.2-2.147-.613l-6.507-3.613c-.386-.214-1.146-.214-1.533 0L8.733 29.72c-1.32.733-2.666.813-3.693.2-1.027-.6-1.613-1.813-1.613-3.32V7.813a6.157 6.157 0 0 1 6.146-6.146H22.44a6.157 6.157 0 0 1 6.147 6.146V26.6c0 1.507-.587 2.72-1.613 3.32-.467.28-1 .413-1.547.413M16 23.947c.627 0 1.24.133 1.733.413l6.507 3.613c.68.387 1.307.467 1.707.227s.627-.813.627-1.6V7.813a4.16 4.16 0 0 0-4.147-4.146H9.573a4.16 4.16 0 0 0-4.146 4.146V26.6c0 .787.226 1.373.626 1.6s1.014.16 1.707-.227l6.507-3.613c.493-.28 1.107-.413 1.733-.413\",\n },\n ],\n filled: [\n {\n d: \"M22.427 2.667H9.573c-2.84 0-5.146 2.32-5.146 5.146V26.6c0 2.4 1.72 3.413 3.826 2.253l6.507-3.613c.694-.387 1.813-.387 2.493 0l6.507 3.613c2.107 1.174 3.827.16 3.827-2.253V7.813c-.014-2.826-2.32-5.146-5.16-5.146\",\n },\n ],\n },\n};\n\n/** Props for {@link BookmarkIcon}. See {@link BaseIconProps} for the shared shape. */\nexport type BookmarkIconProps = BaseIconProps;\n\n/**\n * Bookmark icon. Renders at sizes 16, 24, or 32 px with outlined and filled variants.\n *\n * @example\n * ```tsx\n * <BookmarkIcon size={24} filled />\n * ```\n */\nexport const BookmarkIcon = React.forwardRef<SVGSVGElement, BookmarkIconProps>((props, ref) => (\n <BaseIcon ref={ref} variants={VARIANTS} {...props} />\n));\n\nBookmarkIcon.displayName = \"BookmarkIcon\";\n"],"names":["React","jsx","BaseIcon"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAIA,MAAM,WAAyB;AAAA,EAC7B,IAAI;AAAA,IACF,UAAU;AAAA,MACR;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,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,IACL;AAAA,IAEF,QAAQ;AAAA,MACN;AAAA,QACE,GAAG;AAAA,MAAA;AAAA,IACL;AAAA,EACF;AAEJ;AAaO,MAAM,eAAeA,iBAAM,WAA6C,CAAC,OAAO,QACrFC,2BAAAA,IAACC,SAAAA,UAAA,EAAS,KAAU,UAAU,UAAW,GAAG,OAAO,CACpD;AAED,aAAa,cAAc;;"}
@@ -4,9 +4,10 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
4
4
  const jsxRuntime = require("react/jsx-runtime");
5
5
  const React = require("react");
6
6
  const cn = require("../../utils/cn.cjs");
7
- const ArrowDownIcon = require("../Icons/ArrowDownIcon.cjs");
8
- const ArrowUpIcon = require("../Icons/ArrowUpIcon.cjs");
9
- const Select = require("../Select/Select.cjs");
7
+ const Button = require("../Button/Button.cjs");
8
+ const CloseIcon = require("../Icons/CloseIcon.cjs");
9
+ const SearchIcon = require("../Icons/SearchIcon.cjs");
10
+ const TranscationArrowIcon = require("../Icons/TranscationArrowIcon.cjs");
10
11
  function _interopNamespaceDefault(e) {
11
12
  const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
12
13
  if (e) {
@@ -35,7 +36,7 @@ const TableCard = React__namespace.forwardRef(
35
36
  {
36
37
  ref,
37
38
  className: cn.cn(
38
- "isolate flex flex-col gap-2 overflow-hidden rounded-3xl border border-border-strong px-3 py-1",
39
+ "isolate flex flex-col overflow-hidden rounded-sm border-[0.5px] border-border-primary",
39
40
  className
40
41
  ),
41
42
  ...props
@@ -45,18 +46,102 @@ const TableCard = React__namespace.forwardRef(
45
46
  );
46
47
  TableCard.displayName = "TableCard";
47
48
  const TableToolbar = React__namespace.forwardRef(
49
+ ({ className, search, children, ...props }, ref) => {
50
+ return /* @__PURE__ */ jsxRuntime.jsxs(
51
+ "div",
52
+ {
53
+ ref,
54
+ className: cn.cn(
55
+ "flex h-10 w-full min-w-0 items-center gap-4 rounded-sm border-[0.5px] border-border-strong bg-surface-table-row pr-2 pl-4",
56
+ className
57
+ ),
58
+ ...props,
59
+ children: [
60
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex min-w-24 flex-1 items-center", children: search }),
61
+ children != null && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex min-w-0 items-center gap-6 overflow-x-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden", children })
62
+ ]
63
+ }
64
+ );
65
+ }
66
+ );
67
+ TableToolbar.displayName = "TableToolbar";
68
+ const TableToolbarSearch = React__namespace.forwardRef(
69
+ ({ className, value, onValueChange, clearLabel, placeholder, ...props }, ref) => {
70
+ return /* @__PURE__ */ jsxRuntime.jsxs("label", { className: cn.cn("flex h-6 w-full min-w-0 cursor-text items-center gap-2", className), children: [
71
+ /* @__PURE__ */ jsxRuntime.jsx(SearchIcon.SearchIcon, { size: 16, className: "shrink-0 text-icons-secondary", "aria-hidden": true }),
72
+ /* @__PURE__ */ jsxRuntime.jsx(
73
+ "input",
74
+ {
75
+ ref,
76
+ type: "search",
77
+ value,
78
+ onChange: (event) => onValueChange(event.target.value),
79
+ placeholder,
80
+ "aria-label": props["aria-label"] ?? placeholder,
81
+ className: "typography-description-12px-regular min-w-0 flex-1 border-none bg-transparent p-0 text-content-primary outline-none placeholder:text-content-secondary [&::-webkit-search-cancel-button]:hidden",
82
+ ...props
83
+ }
84
+ ),
85
+ value !== "" && /* @__PURE__ */ jsxRuntime.jsx(
86
+ "button",
87
+ {
88
+ type: "button",
89
+ "aria-label": clearLabel,
90
+ onClick: () => onValueChange(""),
91
+ className: "inline-flex size-4 shrink-0 cursor-pointer items-center justify-center border-none bg-transparent p-0 text-icons-secondary hover:text-icons-primary",
92
+ children: /* @__PURE__ */ jsxRuntime.jsx(CloseIcon.CloseIcon, { size: 16 })
93
+ }
94
+ )
95
+ ] });
96
+ }
97
+ );
98
+ TableToolbarSearch.displayName = "TableToolbarSearch";
99
+ const TableToolbarAction = React__namespace.forwardRef(
100
+ ({ className, children, icon, active = false, type = "button", ...props }, ref) => {
101
+ return /* @__PURE__ */ jsxRuntime.jsxs(
102
+ "button",
103
+ {
104
+ ref,
105
+ type,
106
+ className: cn.cn(
107
+ "typography-description-12px-regular inline-flex h-6 shrink-0 cursor-pointer items-center gap-2 whitespace-nowrap rounded-xs border-none bg-transparent p-0 text-content-secondary outline-none",
108
+ "hover:text-content-primary focus-visible:shadow-focus-ring disabled:cursor-default disabled:opacity-40",
109
+ className
110
+ ),
111
+ ...props,
112
+ children: [
113
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "max-md:sr-only", children }),
114
+ /* @__PURE__ */ jsxRuntime.jsx(
115
+ "span",
116
+ {
117
+ "aria-hidden": true,
118
+ className: cn.cn(
119
+ "inline-flex size-4 shrink-0 items-center justify-center [&>svg]:size-4",
120
+ active ? "text-brand-primary-default" : "text-icons-secondary"
121
+ ),
122
+ children: icon ?? /* @__PURE__ */ jsxRuntime.jsx(TranscationArrowIcon.TranscationArrowIcon, { size: 16 })
123
+ }
124
+ )
125
+ ]
126
+ }
127
+ );
128
+ }
129
+ );
130
+ TableToolbarAction.displayName = "TableToolbarAction";
131
+ const TableToolbarButton = React__namespace.forwardRef(
48
132
  ({ className, ...props }, ref) => {
49
133
  return /* @__PURE__ */ jsxRuntime.jsx(
50
- "div",
134
+ Button.Button,
51
135
  {
52
136
  ref,
53
- className: cn.cn("flex flex-wrap items-center gap-4 px-4 py-3", className),
137
+ size: "24",
138
+ className: cn.cn("typography-description-12px-semibold rounded-xs", className),
54
139
  ...props
55
140
  }
56
141
  );
57
142
  }
58
143
  );
59
- TableToolbar.displayName = "TableToolbar";
144
+ TableToolbarButton.displayName = "TableToolbarButton";
60
145
  const TableScrollArea = React__namespace.forwardRef(
61
146
  ({ className, children, roundTop: _roundTop, showScrollbar = false, ...props }, ref) => {
62
147
  return /* @__PURE__ */ jsxRuntime.jsx(
@@ -116,27 +201,27 @@ const TableFooter = React__namespace.forwardRef(
116
201
  TableFooter.displayName = "TableFooter";
117
202
  const TableRow = React__namespace.forwardRef(
118
203
  ({ className, ...props }, ref) => {
119
- return /* @__PURE__ */ jsxRuntime.jsx("tr", { ref, className: cn.cn(className), ...props });
204
+ return /* @__PURE__ */ jsxRuntime.jsx("tr", { ref, className: cn.cn("[&:has([data-table-media])>td]:h-14", className), ...props });
120
205
  }
121
206
  );
122
207
  TableRow.displayName = "TableRow";
123
208
  const HEAD_INTENT_CLASSES = {
124
209
  default: "text-left",
125
- checkbox: "w-12 min-w-12 max-w-12 text-center",
210
+ checkbox: "w-px pr-0 text-left",
126
211
  sort: "text-right",
127
212
  leading: "min-w-0 w-2/5 text-left"
128
213
  };
214
+ const CELL_GUTTERS = "px-5 first:pl-4 last:pr-4";
129
215
  const TableHead = React__namespace.forwardRef(
130
216
  ({ className, intent = "default", scope = "col", ...props }, ref) => {
131
- const size = useTableSize();
132
217
  return /* @__PURE__ */ jsxRuntime.jsx(
133
218
  "th",
134
219
  {
135
220
  ref,
136
221
  scope,
137
222
  className: cn.cn(
138
- size === "condensed" ? "typography-body-small-14px-semibold" : "typography-body-default-16px-semibold",
139
- "box-border h-12 min-h-12 border-border-primary border-b px-4 py-3 align-middle text-content-tertiary",
223
+ "typography-description-12px-regular box-border h-8 whitespace-nowrap border-border-primary border-b-[0.5px] bg-surface-table-row py-0 align-middle font-normal text-content-secondary",
224
+ CELL_GUTTERS,
140
225
  HEAD_INTENT_CLASSES[intent],
141
226
  className
142
227
  ),
@@ -147,27 +232,27 @@ const TableHead = React__namespace.forwardRef(
147
232
  );
148
233
  TableHead.displayName = "TableHead";
149
234
  const CELL_MIN_HEIGHT = {
150
- md: "h-16 min-h-16",
151
- default: "h-16 min-h-16",
152
- condensed: "h-12 min-h-12 py-1",
153
- lg: "h-20 min-h-20"
235
+ md: "h-10",
236
+ default: "h-10",
237
+ condensed: "h-10",
238
+ lg: "h-14"
154
239
  };
155
240
  const CELL_VARIANT_CLASSES = {
156
- default: "border-b border-border-primary px-4 py-3",
157
- chip: "border-b border-border-primary px-4 py-3",
158
- pillProgress: "border-b border-border-primary px-4 py-3"
241
+ default: "border-b-[0.5px] border-border-primary py-0",
242
+ chip: "border-b-[0.5px] border-border-primary py-0",
243
+ pillProgress: "border-b-[0.5px] border-border-primary py-1"
159
244
  };
160
245
  const CELL_INTENT_CLASSES = {
161
246
  default: "",
162
- checkbox: "w-12 min-w-12 max-w-12 text-center",
163
- stacked: "align-top",
247
+ checkbox: "w-px pr-0 text-left",
248
+ stacked: "align-top py-2",
164
249
  multiline: "max-w-[240px]",
165
250
  sideLabel: ""
166
251
  };
167
252
  const TableCell = React__namespace.forwardRef(
168
- ({ className, cellVariant = "default", intent = "default", ...props }, ref) => {
253
+ ({ className, cellVariant = "default", intent = "default", nowrap = false, ...props }, ref) => {
169
254
  const size = useTableSize();
170
- const typo = intent === "sideLabel" ? "typography-body-small-14px-semibold" : "typography-body-small-14px-regular";
255
+ const typo = intent === "sideLabel" ? "typography-description-12px-semibold" : "typography-description-12px-regular";
171
256
  return /* @__PURE__ */ jsxRuntime.jsx(
172
257
  "td",
173
258
  {
@@ -175,6 +260,8 @@ const TableCell = React__namespace.forwardRef(
175
260
  className: cn.cn(
176
261
  typo,
177
262
  "align-middle text-content-primary",
263
+ nowrap && "whitespace-nowrap",
264
+ CELL_GUTTERS,
178
265
  CELL_VARIANT_CLASSES[cellVariant],
179
266
  CELL_MIN_HEIGHT[size],
180
267
  CELL_INTENT_CLASSES[intent],
@@ -199,29 +286,31 @@ function TableCellContent({
199
286
  secondaryAdornment,
200
287
  className
201
288
  }) {
202
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn.cn("flex flex-col gap-0.5", className), children: [
289
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn.cn("flex flex-col", className), children: [
203
290
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-1", children: [
204
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "typography-body-small-14px-semibold text-content-primary", children: primary }),
291
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "typography-description-12px-semibold text-content-primary", children: primary }),
205
292
  primaryAdornment
206
293
  ] }),
207
294
  (secondary != null || secondaryAdornment != null) && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-1", children: [
208
- secondary != null && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "typography-body-small-14px-regular text-content-secondary", children: secondary }),
295
+ secondary != null && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "typography-description-12px-regular text-content-secondary", children: secondary }),
209
296
  secondaryAdornment
210
297
  ] })
211
298
  ] });
212
299
  }
213
300
  TableCellContent.displayName = "TableCellContent";
214
301
  const TableMediaThumbnail = React__namespace.forwardRef(
215
- ({ className, src, alt = "", blurred, align = "start", size = "48", ...props }, ref) => {
302
+ ({ className, src, alt = "", blurred, align = "start", size = "40", ...props }, ref) => {
216
303
  const frame = cn.cn(
217
304
  "overflow-hidden bg-neutral-alphas-200",
218
305
  size === "48" && "size-12 rounded-sm",
306
+ size === "40" && "size-10 rounded-xs",
219
307
  size === "32" && "size-8 rounded-xs"
220
308
  );
221
309
  return /* @__PURE__ */ jsxRuntime.jsx(
222
310
  "div",
223
311
  {
224
312
  ref,
313
+ "data-table-media": size === "32" ? void 0 : "",
225
314
  className: cn.cn(
226
315
  align === "center" && "flex w-16 shrink-0 justify-center",
227
316
  align === "start" && "inline-flex shrink-0"
@@ -232,6 +321,24 @@ const TableMediaThumbnail = React__namespace.forwardRef(
232
321
  }
233
322
  );
234
323
  TableMediaThumbnail.displayName = "TableMediaThumbnail";
324
+ const TableMediaTile = React__namespace.forwardRef(
325
+ ({ className, fill = false, ...props }, ref) => {
326
+ return /* @__PURE__ */ jsxRuntime.jsx(
327
+ "span",
328
+ {
329
+ ref,
330
+ "data-table-media": "",
331
+ className: cn.cn(
332
+ "inline-flex size-10 shrink-0 items-center justify-center overflow-hidden rounded-xs",
333
+ fill ? "[&>*]:size-full" : "border-[0.5px] border-border-primary bg-surface-table-row text-icons-secondary",
334
+ className
335
+ ),
336
+ ...props
337
+ }
338
+ );
339
+ }
340
+ );
341
+ TableMediaTile.displayName = "TableMediaTile";
235
342
  const TableStatusDot = React__namespace.forwardRef(
236
343
  ({ className, ...props }, ref) => {
237
344
  return /* @__PURE__ */ jsxRuntime.jsx(
@@ -287,18 +394,56 @@ const TablePillProgressLayout = React__namespace.forwardRef(({ className, ...pro
287
394
  );
288
395
  });
289
396
  TablePillProgressLayout.displayName = "TablePillProgressLayout";
397
+ function SortArrows({ direction }) {
398
+ return /* @__PURE__ */ jsxRuntime.jsxs(
399
+ "svg",
400
+ {
401
+ width: 16,
402
+ height: 16,
403
+ viewBox: "0 0 16 16",
404
+ fill: "none",
405
+ "aria-hidden": "true",
406
+ className: "shrink-0",
407
+ children: [
408
+ /* @__PURE__ */ jsxRuntime.jsx(
409
+ "path",
410
+ {
411
+ d: "M5 6L8 3L11 6",
412
+ strokeWidth: 1.2,
413
+ strokeLinecap: "round",
414
+ strokeLinejoin: "round",
415
+ className: direction === "asc" ? "stroke-current" : "stroke-icons-tertiary"
416
+ }
417
+ ),
418
+ /* @__PURE__ */ jsxRuntime.jsx(
419
+ "path",
420
+ {
421
+ d: "M11 10L8 13L5 10",
422
+ strokeWidth: 1.2,
423
+ strokeLinecap: "round",
424
+ strokeLinejoin: "round",
425
+ className: direction === "desc" ? "stroke-current" : "stroke-icons-tertiary"
426
+ }
427
+ )
428
+ ]
429
+ }
430
+ );
431
+ }
290
432
  const TableSortLabel = React__namespace.forwardRef(
291
433
  ({ className, children, direction = null, ...props }, ref) => {
292
- const Icon = direction === "desc" ? ArrowDownIcon.ArrowDownIcon : ArrowUpIcon.ArrowUpIcon;
293
434
  return /* @__PURE__ */ jsxRuntime.jsxs(
294
435
  "span",
295
436
  {
296
437
  ref,
297
- className: cn.cn("inline-flex items-center gap-1 text-content-primary", className),
438
+ className: cn.cn(
439
+ "inline-flex items-center gap-1",
440
+ direction != null && "text-content-primary",
441
+ className
442
+ ),
298
443
  ...props,
299
444
  children: [
300
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: cn.cn(direction != null && "border-content-primary border-b pb-px"), children }),
301
- direction != null && /* @__PURE__ */ jsxRuntime.jsx(Icon, { className: "size-4 shrink-0", "aria-hidden": true })
445
+ children,
446
+ direction != null && /* @__PURE__ */ jsxRuntime.jsx(SortArrows, { direction })
302
447
  ]
303
448
  }
304
449
  );
@@ -327,24 +472,6 @@ const TableLineClamp = React__namespace.forwardRef(
327
472
  }
328
473
  );
329
474
  TableLineClamp.displayName = "TableLineClamp";
330
- function TableRowsPerPageSelect(props) {
331
- const { id, "aria-label": ariaLabel = "Rows per page" } = props;
332
- return /* @__PURE__ */ jsxRuntime.jsx(
333
- Select.Select,
334
- {
335
- defaultValue: "10",
336
- size: "32",
337
- "aria-label": ariaLabel,
338
- className: "w-[154px] [&_button]:rounded-sm [&_button]:border-transparent [&_button]:bg-inputs-inputs-primary",
339
- id,
340
- children: /* @__PURE__ */ jsxRuntime.jsxs(Select.SelectContent, { children: [
341
- /* @__PURE__ */ jsxRuntime.jsx(Select.SelectItem, { value: "10", children: "10 rows per page" }),
342
- /* @__PURE__ */ jsxRuntime.jsx(Select.SelectItem, { value: "25", children: "25 rows per page" }),
343
- /* @__PURE__ */ jsxRuntime.jsx(Select.SelectItem, { value: "50", children: "50 rows per page" })
344
- ] })
345
- }
346
- );
347
- }
348
475
  exports.Table = Table;
349
476
  exports.TableBody = TableBody;
350
477
  exports.TableCard = TableCard;
@@ -356,13 +483,16 @@ exports.TableHead = TableHead;
356
483
  exports.TableHeader = TableHeader;
357
484
  exports.TableLineClamp = TableLineClamp;
358
485
  exports.TableMediaThumbnail = TableMediaThumbnail;
486
+ exports.TableMediaTile = TableMediaTile;
359
487
  exports.TablePillProgressLayout = TablePillProgressLayout;
360
488
  exports.TableProgressTrack = TableProgressTrack;
361
489
  exports.TableRow = TableRow;
362
- exports.TableRowsPerPageSelect = TableRowsPerPageSelect;
363
490
  exports.TableScrollArea = TableScrollArea;
364
491
  exports.TableSortLabel = TableSortLabel;
365
492
  exports.TableStackedText = TableStackedText;
366
493
  exports.TableStatusDot = TableStatusDot;
367
494
  exports.TableToolbar = TableToolbar;
495
+ exports.TableToolbarAction = TableToolbarAction;
496
+ exports.TableToolbarButton = TableToolbarButton;
497
+ exports.TableToolbarSearch = TableToolbarSearch;
368
498
  //# sourceMappingURL=Table.cjs.map