@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.
@@ -2,52 +2,95 @@
2
2
  import { jsxs, jsx } from "react/jsx-runtime";
3
3
  import * as React from "react";
4
4
  import { cn } from "../../utils/cn.mjs";
5
- const TablePagination = React.forwardRef(
6
- ({ className, layout = "desktop", leadingSlot, paginationSlot, summary, ...props }, ref) => {
7
- if (layout === "mobile") {
8
- return /* @__PURE__ */ jsxs(
9
- "div",
10
- {
11
- ref,
12
- className: cn("flex w-full max-w-full flex-col gap-4 px-3 py-3", className),
13
- ...props,
14
- children: [
15
- /* @__PURE__ */ jsxs("div", { className: "flex w-full items-center gap-2", children: [
16
- leadingSlot != null ? /* @__PURE__ */ jsx("div", { className: "flex min-w-0 shrink-0 items-center", children: leadingSlot }) : null,
17
- /* @__PURE__ */ jsx(
18
- "div",
19
- {
20
- className: cn(
21
- "typography-description-12px-regular min-w-0 flex-1 text-content-secondary",
22
- leadingSlot == null && "text-left",
23
- leadingSlot != null && "text-right"
24
- ),
25
- children: summary
26
- }
27
- )
28
- ] }),
29
- paginationSlot != null ? /* @__PURE__ */ jsx("div", { className: "flex justify-center", children: paginationSlot }) : null
30
- ]
31
- }
32
- );
33
- }
5
+ import { ChevronDownIcon } from "../Icons/ChevronDownIcon.mjs";
6
+ import { ChevronLeftIcon } from "../Icons/ChevronLeftIcon.mjs";
7
+ import { ChevronRightIcon } from "../Icons/ChevronRightIcon.mjs";
8
+ import { DropdownMenu, DropdownMenuTrigger, DropdownMenuContent } from "../DropdownMenu/DropdownMenuRoot.mjs";
9
+ import { DropdownMenuItem } from "../DropdownMenu/DropdownMenuItem.mjs";
10
+ const TableCardPagination = React.forwardRef(
11
+ ({
12
+ className,
13
+ page,
14
+ pageCount,
15
+ onPageChange,
16
+ pageSize,
17
+ pageSizeOptions,
18
+ onPageSizeChange,
19
+ formatPage = (current, total) => `${current} of ${total}`,
20
+ formatPageSize = (size) => `${size} rows`,
21
+ navigationLabel = "Pagination",
22
+ previousLabel = "Previous page",
23
+ nextLabel = "Next page",
24
+ pageSizeLabel = "Rows per page",
25
+ ...props
26
+ }, ref) => {
27
+ const total = Math.max(pageCount, 1);
28
+ const stepButton = "inline-flex size-4 shrink-0 cursor-pointer items-center justify-center border-none bg-transparent p-0 text-icons-primary disabled:cursor-default disabled:opacity-40";
34
29
  return /* @__PURE__ */ jsxs(
35
30
  "div",
36
31
  {
37
32
  ref,
38
- className: cn("flex w-full flex-wrap items-center gap-3 px-3 py-3", className),
33
+ className: cn(
34
+ "typography-description-12px-regular flex h-8 shrink-0 items-center gap-6 border-border-primary border-t-[0.5px] bg-surface-table-row px-4 text-content-primary",
35
+ className
36
+ ),
39
37
  ...props,
40
38
  children: [
41
- /* @__PURE__ */ jsx("div", { className: "flex min-h-0 min-w-0 flex-1 items-center", children: leadingSlot }),
42
- paginationSlot != null ? /* @__PURE__ */ jsx("div", { className: "flex shrink-0 items-center justify-center", children: paginationSlot }) : null,
43
- /* @__PURE__ */ jsx("div", { className: "typography-description-12px-regular min-w-0 flex-1 text-right text-content-secondary", children: summary })
39
+ /* @__PURE__ */ jsxs("nav", { "aria-label": navigationLabel, className: "flex items-center gap-2", children: [
40
+ /* @__PURE__ */ jsx(
41
+ "button",
42
+ {
43
+ type: "button",
44
+ "aria-label": previousLabel,
45
+ className: stepButton,
46
+ disabled: page <= 1,
47
+ onClick: () => onPageChange(page - 1),
48
+ children: /* @__PURE__ */ jsx(ChevronLeftIcon, { size: 16 })
49
+ }
50
+ ),
51
+ /* @__PURE__ */ jsx("span", { className: "whitespace-nowrap", children: formatPage(page, total) }),
52
+ /* @__PURE__ */ jsx(
53
+ "button",
54
+ {
55
+ type: "button",
56
+ "aria-label": nextLabel,
57
+ className: stepButton,
58
+ disabled: page >= pageCount,
59
+ onClick: () => onPageChange(page + 1),
60
+ children: /* @__PURE__ */ jsx(ChevronRightIcon, { size: 16 })
61
+ }
62
+ )
63
+ ] }),
64
+ /* @__PURE__ */ jsxs(DropdownMenu, { children: [
65
+ /* @__PURE__ */ jsx(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxs(
66
+ "button",
67
+ {
68
+ type: "button",
69
+ "aria-label": `${pageSizeLabel}, ${formatPageSize(pageSize)}`,
70
+ className: "typography-description-12px-regular inline-flex cursor-pointer items-center gap-2 whitespace-nowrap border-none bg-transparent p-0 text-content-primary",
71
+ children: [
72
+ formatPageSize(pageSize),
73
+ /* @__PURE__ */ jsx(ChevronDownIcon, { size: 16, className: "text-icons-primary", "aria-hidden": true })
74
+ ]
75
+ }
76
+ ) }),
77
+ /* @__PURE__ */ jsx(DropdownMenuContent, { align: "start", children: pageSizeOptions.map((option) => /* @__PURE__ */ jsx(
78
+ DropdownMenuItem,
79
+ {
80
+ selected: option === pageSize,
81
+ onSelect: () => onPageSizeChange(option),
82
+ children: formatPageSize(option)
83
+ },
84
+ option
85
+ )) })
86
+ ] })
44
87
  ]
45
88
  }
46
89
  );
47
90
  }
48
91
  );
49
- TablePagination.displayName = "TablePagination";
92
+ TableCardPagination.displayName = "TableCardPagination";
50
93
  export {
51
- TablePagination
94
+ TableCardPagination
52
95
  };
53
96
  //# sourceMappingURL=TablePagination.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"TablePagination.mjs","sources":["../../../src/components/Table/TablePagination.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { cn } from \"@/utils/cn\";\n\n/** Layout preset for the pagination bar — desktop (range on the right) or stacked mobile. */\nexport type TablePaginationLayout = \"desktop\" | \"mobile\";\n\nexport interface TablePaginationProps extends React.HTMLAttributes<HTMLDivElement> {\n /** Layout preset. @default \"desktop\" */\n layout?: TablePaginationLayout;\n /** Left (desktop) or top row (mobile) content, e.g. rows-per-page {@link Select}. */\n leadingSlot?: React.ReactNode;\n /** Center (desktop) or bottom row (mobile) content, e.g. {@link Pagination}. */\n paginationSlot?: React.ReactNode;\n /** Summary text or node (e.g. current range and total). */\n summary: React.ReactNode;\n}\n\n/**\n * Footer bar for data tables: rows-per-page control, page navigation, and\n * range summary. Pair `paginationSlot` with {@link Pagination} for numbered\n * controls.\n *\n * v2 sits flush inside {@link TableCard} (`px-3` matches the card's inner\n * gutter); the chip styling now lives on the {@link TableRowsPerPageSelect}\n * trigger itself.\n *\n * @example\n * ```tsx\n * <TablePagination\n * leadingSlot={<TableRowsPerPageSelect />}\n * paginationSlot={<Pagination totalPages={5} currentPage={2} onPageChange={setPage} />}\n * summary=\"20–30 of 100 rows\"\n * />\n * ```\n */\nexport const TablePagination = React.forwardRef<HTMLDivElement, TablePaginationProps>(\n ({ className, layout = \"desktop\", leadingSlot, paginationSlot, summary, ...props }, ref) => {\n if (layout === \"mobile\") {\n return (\n <div\n ref={ref}\n className={cn(\"flex w-full max-w-full flex-col gap-4 px-3 py-3\", className)}\n {...props}\n >\n <div className=\"flex w-full items-center gap-2\">\n {leadingSlot != null ? (\n <div className=\"flex min-w-0 shrink-0 items-center\">{leadingSlot}</div>\n ) : null}\n <div\n className={cn(\n \"typography-description-12px-regular min-w-0 flex-1 text-content-secondary\",\n leadingSlot == null && \"text-left\",\n leadingSlot != null && \"text-right\",\n )}\n >\n {summary}\n </div>\n </div>\n {paginationSlot != null ? (\n <div className=\"flex justify-center\">{paginationSlot}</div>\n ) : null}\n </div>\n );\n }\n\n return (\n <div\n ref={ref}\n className={cn(\"flex w-full flex-wrap items-center gap-3 px-3 py-3\", className)}\n {...props}\n >\n <div className=\"flex min-h-0 min-w-0 flex-1 items-center\">{leadingSlot}</div>\n {paginationSlot != null ? (\n <div className=\"flex shrink-0 items-center justify-center\">{paginationSlot}</div>\n ) : null}\n <div className=\"typography-description-12px-regular min-w-0 flex-1 text-right text-content-secondary\">\n {summary}\n </div>\n </div>\n );\n },\n);\nTablePagination.displayName = \"TablePagination\";\n"],"names":[],"mappings":";;;;AAmCO,MAAM,kBAAkB,MAAM;AAAA,EACnC,CAAC,EAAE,WAAW,SAAS,WAAW,aAAa,gBAAgB,SAAS,GAAG,MAAA,GAAS,QAAQ;AAC1F,QAAI,WAAW,UAAU;AACvB,aACE;AAAA,QAAC;AAAA,QAAA;AAAA,UACC;AAAA,UACA,WAAW,GAAG,mDAAmD,SAAS;AAAA,UACzE,GAAG;AAAA,UAEJ,UAAA;AAAA,YAAA,qBAAC,OAAA,EAAI,WAAU,kCACZ,UAAA;AAAA,cAAA,eAAe,OACd,oBAAC,OAAA,EAAI,WAAU,sCAAsC,uBAAY,IAC/D;AAAA,cACJ;AAAA,gBAAC;AAAA,gBAAA;AAAA,kBACC,WAAW;AAAA,oBACT;AAAA,oBACA,eAAe,QAAQ;AAAA,oBACvB,eAAe,QAAQ;AAAA,kBAAA;AAAA,kBAGxB,UAAA;AAAA,gBAAA;AAAA,cAAA;AAAA,YACH,GACF;AAAA,YACC,kBAAkB,OACjB,oBAAC,SAAI,WAAU,uBAAuB,0BAAe,IACnD;AAAA,UAAA;AAAA,QAAA;AAAA,MAAA;AAAA,IAGV;AAEA,WACE;AAAA,MAAC;AAAA,MAAA;AAAA,QACC;AAAA,QACA,WAAW,GAAG,sDAAsD,SAAS;AAAA,QAC5E,GAAG;AAAA,QAEJ,UAAA;AAAA,UAAA,oBAAC,OAAA,EAAI,WAAU,4CAA4C,UAAA,aAAY;AAAA,UACtE,kBAAkB,OACjB,oBAAC,SAAI,WAAU,6CAA6C,0BAAe,IACzE;AAAA,UACJ,oBAAC,OAAA,EAAI,WAAU,wFACZ,UAAA,QAAA,CACH;AAAA,QAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EAGN;AACF;AACA,gBAAgB,cAAc;"}
1
+ {"version":3,"file":"TablePagination.mjs","sources":["../../../src/components/Table/TablePagination.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { cn } from \"@/utils/cn\";\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuTrigger,\n} from \"../DropdownMenu/DropdownMenu\";\nimport { ChevronDownIcon } from \"../Icons/ChevronDownIcon\";\nimport { ChevronLeftIcon } from \"../Icons/ChevronLeftIcon\";\nimport { ChevronRightIcon } from \"../Icons/ChevronRightIcon\";\n\nexport interface TableCardPaginationProps\n extends Omit<React.HTMLAttributes<HTMLDivElement>, \"onChange\"> {\n /** Current page, 1-based. */\n page: number;\n /** Total number of pages. */\n pageCount: number;\n /** Called with the 1-based page to show. */\n onPageChange: (page: number) => void;\n /** Rows per page currently shown. */\n pageSize: number;\n /** Choices offered in the rows-per-page menu. */\n pageSizeOptions: readonly number[];\n /** Called with the new rows-per-page choice. */\n onPageSizeChange: (pageSize: number) => void;\n /** Formats the page indicator. @default (page, pageCount) => `${page} of ${pageCount}` */\n formatPage?: (page: number, pageCount: number) => string;\n /** Formats a rows-per-page choice. @default (pageSize) => `${pageSize} rows` */\n formatPageSize?: (pageSize: number) => string;\n /** Accessible name of the page navigation. @default \"Pagination\" */\n navigationLabel?: string;\n /** Accessible name of the previous-page button. @default \"Previous page\" */\n previousLabel?: string;\n /** Accessible name of the next-page button. @default \"Next page\" */\n nextLabel?: string;\n /** Accessible name of the rows-per-page menu trigger, followed by the current choice (e.g. \"Rows per page, 10 rows\"). @default \"Rows per page\" */\n pageSizeLabel?: string;\n}\n\n/**\n * 32px footer that closes a {@link TableCard}: previous, \"1 of N\", next, then\n * a rows-per-page menu, on `surface-table-row`. Place it after\n * {@link TableScrollArea} inside the card.\n *\n * @example\n * ```tsx\n * <TableCard>\n * <TableScrollArea>…</TableScrollArea>\n * <TableCardPagination\n * page={page}\n * pageCount={12}\n * onPageChange={setPage}\n * pageSize={10}\n * pageSizeOptions={[10, 25, 50]}\n * onPageSizeChange={setPageSize}\n * />\n * </TableCard>\n * ```\n */\nexport const TableCardPagination = React.forwardRef<HTMLDivElement, TableCardPaginationProps>(\n (\n {\n className,\n page,\n pageCount,\n onPageChange,\n pageSize,\n pageSizeOptions,\n onPageSizeChange,\n formatPage = (current, total) => `${current} of ${total}`,\n formatPageSize = (size) => `${size} rows`,\n navigationLabel = \"Pagination\",\n previousLabel = \"Previous page\",\n nextLabel = \"Next page\",\n pageSizeLabel = \"Rows per page\",\n ...props\n },\n ref,\n ) => {\n const total = Math.max(pageCount, 1);\n const stepButton =\n \"inline-flex size-4 shrink-0 cursor-pointer items-center justify-center border-none bg-transparent p-0 text-icons-primary disabled:cursor-default disabled:opacity-40\";\n return (\n <div\n ref={ref}\n className={cn(\n \"typography-description-12px-regular flex h-8 shrink-0 items-center gap-6 border-border-primary border-t-[0.5px] bg-surface-table-row px-4 text-content-primary\",\n className,\n )}\n {...props}\n >\n <nav aria-label={navigationLabel} className=\"flex items-center gap-2\">\n <button\n type=\"button\"\n aria-label={previousLabel}\n className={stepButton}\n disabled={page <= 1}\n onClick={() => onPageChange(page - 1)}\n >\n <ChevronLeftIcon size={16} />\n </button>\n <span className=\"whitespace-nowrap\">{formatPage(page, total)}</span>\n <button\n type=\"button\"\n aria-label={nextLabel}\n className={stepButton}\n disabled={page >= pageCount}\n onClick={() => onPageChange(page + 1)}\n >\n <ChevronRightIcon size={16} />\n </button>\n </nav>\n <DropdownMenu>\n <DropdownMenuTrigger asChild>\n <button\n type=\"button\"\n aria-label={`${pageSizeLabel}, ${formatPageSize(pageSize)}`}\n className=\"typography-description-12px-regular inline-flex cursor-pointer items-center gap-2 whitespace-nowrap border-none bg-transparent p-0 text-content-primary\"\n >\n {formatPageSize(pageSize)}\n <ChevronDownIcon size={16} className=\"text-icons-primary\" aria-hidden />\n </button>\n </DropdownMenuTrigger>\n <DropdownMenuContent align=\"start\">\n {pageSizeOptions.map((option) => (\n <DropdownMenuItem\n key={option}\n selected={option === pageSize}\n onSelect={() => onPageSizeChange(option)}\n >\n {formatPageSize(option)}\n </DropdownMenuItem>\n ))}\n </DropdownMenuContent>\n </DropdownMenu>\n </div>\n );\n },\n);\nTableCardPagination.displayName = \"TableCardPagination\";\n"],"names":[],"mappings":";;;;;;;;;AA4DO,MAAM,sBAAsB,MAAM;AAAA,EACvC,CACE;AAAA,IACE;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,aAAa,CAAC,SAAS,UAAU,GAAG,OAAO,OAAO,KAAK;AAAA,IACvD,iBAAiB,CAAC,SAAS,GAAG,IAAI;AAAA,IAClC,kBAAkB;AAAA,IAClB,gBAAgB;AAAA,IAChB,YAAY;AAAA,IACZ,gBAAgB;AAAA,IAChB,GAAG;AAAA,EAAA,GAEL,QACG;AACH,UAAM,QAAQ,KAAK,IAAI,WAAW,CAAC;AACnC,UAAM,aACJ;AACF,WACE;AAAA,MAAC;AAAA,MAAA;AAAA,QACC;AAAA,QACA,WAAW;AAAA,UACT;AAAA,UACA;AAAA,QAAA;AAAA,QAED,GAAG;AAAA,QAEJ,UAAA;AAAA,UAAA,qBAAC,OAAA,EAAI,cAAY,iBAAiB,WAAU,2BAC1C,UAAA;AAAA,YAAA;AAAA,cAAC;AAAA,cAAA;AAAA,gBACC,MAAK;AAAA,gBACL,cAAY;AAAA,gBACZ,WAAW;AAAA,gBACX,UAAU,QAAQ;AAAA,gBAClB,SAAS,MAAM,aAAa,OAAO,CAAC;AAAA,gBAEpC,UAAA,oBAAC,iBAAA,EAAgB,MAAM,GAAA,CAAI;AAAA,cAAA;AAAA,YAAA;AAAA,gCAE5B,QAAA,EAAK,WAAU,qBAAqB,UAAA,WAAW,MAAM,KAAK,GAAE;AAAA,YAC7D;AAAA,cAAC;AAAA,cAAA;AAAA,gBACC,MAAK;AAAA,gBACL,cAAY;AAAA,gBACZ,WAAW;AAAA,gBACX,UAAU,QAAQ;AAAA,gBAClB,SAAS,MAAM,aAAa,OAAO,CAAC;AAAA,gBAEpC,UAAA,oBAAC,kBAAA,EAAiB,MAAM,GAAA,CAAI;AAAA,cAAA;AAAA,YAAA;AAAA,UAC9B,GACF;AAAA,+BACC,cAAA,EACC,UAAA;AAAA,YAAA,oBAAC,qBAAA,EAAoB,SAAO,MAC1B,UAAA;AAAA,cAAC;AAAA,cAAA;AAAA,gBACC,MAAK;AAAA,gBACL,cAAY,GAAG,aAAa,KAAK,eAAe,QAAQ,CAAC;AAAA,gBACzD,WAAU;AAAA,gBAET,UAAA;AAAA,kBAAA,eAAe,QAAQ;AAAA,sCACvB,iBAAA,EAAgB,MAAM,IAAI,WAAU,sBAAqB,eAAW,KAAA,CAAC;AAAA,gBAAA;AAAA,cAAA;AAAA,YAAA,GAE1E;AAAA,gCACC,qBAAA,EAAoB,OAAM,SACxB,UAAA,gBAAgB,IAAI,CAAC,WACpB;AAAA,cAAC;AAAA,cAAA;AAAA,gBAEC,UAAU,WAAW;AAAA,gBACrB,UAAU,MAAM,iBAAiB,MAAM;AAAA,gBAEtC,yBAAe,MAAM;AAAA,cAAA;AAAA,cAJjB;AAAA,YAAA,CAMR,EAAA,CACH;AAAA,UAAA,EAAA,CACF;AAAA,QAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EAGN;AACF;AACA,oBAAoB,cAAc;"}
package/dist/index.d.ts CHANGED
@@ -1062,6 +1062,19 @@ export declare const BoltIcon: React_2.ForwardRefExoticComponent<BaseIconProps &
1062
1062
  /** Props for {@link BoltIcon}. See {@link BaseIconProps} for the shared shape. */
1063
1063
  export declare type BoltIconProps = BaseIconProps;
1064
1064
 
1065
+ /**
1066
+ * Bookmark icon. Renders at sizes 16, 24, or 32 px with outlined and filled variants.
1067
+ *
1068
+ * @example
1069
+ * ```tsx
1070
+ * <BookmarkIcon size={24} filled />
1071
+ * ```
1072
+ */
1073
+ export declare const BookmarkIcon: React_2.ForwardRefExoticComponent<BaseIconProps & React_2.RefAttributes<SVGSVGElement>>;
1074
+
1075
+ /** Props for {@link BookmarkIcon}. See {@link BaseIconProps} for the shared shape. */
1076
+ export declare type BookmarkIconProps = BaseIconProps;
1077
+
1065
1078
  export declare const BottomNavigation: React_2.ForwardRefExoticComponent<BottomNavigationProps & React_2.RefAttributes<HTMLElement>>;
1066
1079
 
1067
1080
  export declare const BottomNavigationAction: React_2.ForwardRefExoticComponent<BottomNavigationActionProps & React_2.RefAttributes<HTMLButtonElement>>;
@@ -2203,44 +2216,59 @@ export declare type CountSize = "16" | "24" | "32";
2203
2216
  export declare type CountVariant = "default" | "contrast" | "brand" | "alert" | "pink" | "info" | "success" | "warning";
2204
2217
 
2205
2218
  /**
2206
- * A portrait media card highlighting a creator with avatar, name, optional
2207
- * tagline, and up to two stacked action buttons over a background image.
2219
+ * A card suggesting a creator, with a banner image, an optional {@link Pill},
2220
+ * the creator's avatar, name and tagline, free-form content such as a price,
2221
+ * and an optional action.
2208
2222
  *
2209
- * Pass zero, one, or two {@link Button} elements via `actions` to render the
2210
- * no-button, single-button, or two-button variants.
2223
+ * The card has no fixed width or corner radius: set both through `className`
2224
+ * (e.g. `className="w-40 rounded-md"`). The banner keeps a 10:11 ratio at any
2225
+ * width.
2211
2226
  *
2212
2227
  * @example
2213
2228
  * ```tsx
2214
2229
  * <CreatorCard
2215
- * background={<img src="/creator.jpg" alt="" />}
2230
+ * className="w-40 rounded-md"
2231
+ * background={<img src="/banner.jpg" alt="" />}
2232
+ * pill={{ variant: "contrast", children: "Popular this week" }}
2233
+ * avatar={{ src: "/avatar.jpg", fallback: "JD" }}
2216
2234
  * name="Jane Doe"
2217
- * description="MODEL & PODCASTER"
2218
- * avatar={{ src: "/avatar.jpg", alt: "Jane Doe", fallback: "JD" }}
2219
- * actions={
2220
- * <>
2221
- * <Button variant="brand" fullWidth>Join for free for 3 days</Button>
2222
- * <Button variant="primary" fullWidth>Follow for Free</Button>
2223
- * </>
2224
- * }
2235
+ * verified
2236
+ * tagline="412 posts"
2237
+ * content={<span className="block truncate">$9.99 / month</span>}
2238
+ * action={<Button variant="primary" size="32" fullWidth>Subscribe</Button>}
2225
2239
  * />
2226
2240
  * ```
2227
2241
  */
2228
2242
  export declare const CreatorCard: React_2.ForwardRefExoticComponent<CreatorCardProps & React_2.RefAttributes<HTMLDivElement>>;
2229
2243
 
2230
- export declare interface CreatorCardProps extends React_2.HTMLAttributes<HTMLDivElement> {
2231
- /** Decorative background media rendered behind the creator content. */
2244
+ export declare interface CreatorCardProps extends Omit<React_2.HTMLAttributes<HTMLDivElement>, "content"> {
2245
+ /** Decorative banner media rendered at the top of the card. */
2232
2246
  background: React_2.ReactNode;
2233
- /** Creator display name shown as the heading. */
2234
- name: string;
2235
- /** Optional secondary line shown below the name (e.g. role or tagline). */
2236
- description?: string;
2247
+ /**
2248
+ * Props forwarded to a {@link Pill} overlaid on the top-left of the banner.
2249
+ * Pass the label as `children`. Omit to hide the pill.
2250
+ */
2251
+ pill?: PillProps;
2237
2252
  /** Avatar props forwarded to the inner {@link Avatar}. */
2238
2253
  avatar?: React_2.ComponentPropsWithoutRef<typeof Avatar>;
2254
+ /** Creator display name shown next to the avatar. */
2255
+ name: React_2.ReactNode;
2256
+ /** When `true`, renders a verified badge after the name. @default false */
2257
+ verified?: boolean;
2258
+ /** Accessible label for the verified badge. @default "Verified" */
2259
+ verifiedLabel?: string;
2260
+ /** Optional secondary line shown under the name (e.g. post count). */
2261
+ tagline?: React_2.ReactNode;
2239
2262
  /**
2240
- * Action buttons rendered at the bottom of the card. Pass zero, one, or two
2241
- * `Button` elements to render variants with no, one, or two CTAs.
2263
+ * Optional content shown under the creator details (e.g. the subscription
2264
+ * price). It wraps by default; pass a `truncate` element to keep it on one line.
2242
2265
  */
2243
- actions?: React_2.ReactNode;
2266
+ content?: React_2.ReactNode;
2267
+ /**
2268
+ * Action element rendered full-width at the bottom of the card (e.g. a
2269
+ * `Button` with `fullWidth` for subscribing to the creator).
2270
+ */
2271
+ action?: React_2.ReactNode;
2244
2272
  }
2245
2273
 
2246
2274
  /**
@@ -6189,9 +6217,10 @@ export declare interface TableBodyProps extends React_2.HTMLAttributes<HTMLTable
6189
6217
  }
6190
6218
 
6191
6219
  /**
6192
- * Surface wrapper for data tables: rounded 24px container with a strong
6193
- * outer border, inner spacing, and size context for {@link TableCell}
6194
- * descendants. Compose with {@link TableScrollArea}, {@link Table},
6220
+ * Surface wrapper for data tables: 12px-radius container with a 0.5px
6221
+ * hairline border and no inner padding, so the header, rows and
6222
+ * {@link TableCardPagination} footer run edge to edge. Provides the size
6223
+ * context for {@link TableCell} descendants. Compose with {@link TableScrollArea}, {@link Table},
6195
6224
  * {@link TableHeader}, {@link TableBody}, {@link TableRow},
6196
6225
  * {@link TableHead}, and {@link TableCell}.
6197
6226
  *
@@ -6217,23 +6246,72 @@ export declare interface TableBodyProps extends React_2.HTMLAttributes<HTMLTable
6217
6246
  */
6218
6247
  export declare const TableCard: React_2.ForwardRefExoticComponent<TableCardProps & React_2.RefAttributes<HTMLDivElement>>;
6219
6248
 
6249
+ /**
6250
+ * 32px footer that closes a {@link TableCard}: previous, "1 of N", next, then
6251
+ * a rows-per-page menu, on `surface-table-row`. Place it after
6252
+ * {@link TableScrollArea} inside the card.
6253
+ *
6254
+ * @example
6255
+ * ```tsx
6256
+ * <TableCard>
6257
+ * <TableScrollArea>…</TableScrollArea>
6258
+ * <TableCardPagination
6259
+ * page={page}
6260
+ * pageCount={12}
6261
+ * onPageChange={setPage}
6262
+ * pageSize={10}
6263
+ * pageSizeOptions={[10, 25, 50]}
6264
+ * onPageSizeChange={setPageSize}
6265
+ * />
6266
+ * </TableCard>
6267
+ * ```
6268
+ */
6269
+ export declare const TableCardPagination: React_2.ForwardRefExoticComponent<TableCardPaginationProps & React_2.RefAttributes<HTMLDivElement>>;
6270
+
6271
+ export declare interface TableCardPaginationProps extends Omit<React_2.HTMLAttributes<HTMLDivElement>, "onChange"> {
6272
+ /** Current page, 1-based. */
6273
+ page: number;
6274
+ /** Total number of pages. */
6275
+ pageCount: number;
6276
+ /** Called with the 1-based page to show. */
6277
+ onPageChange: (page: number) => void;
6278
+ /** Rows per page currently shown. */
6279
+ pageSize: number;
6280
+ /** Choices offered in the rows-per-page menu. */
6281
+ pageSizeOptions: readonly number[];
6282
+ /** Called with the new rows-per-page choice. */
6283
+ onPageSizeChange: (pageSize: number) => void;
6284
+ /** Formats the page indicator. @default (page, pageCount) => `${page} of ${pageCount}` */
6285
+ formatPage?: (page: number, pageCount: number) => string;
6286
+ /** Formats a rows-per-page choice. @default (pageSize) => `${pageSize} rows` */
6287
+ formatPageSize?: (pageSize: number) => string;
6288
+ /** Accessible name of the page navigation. @default "Pagination" */
6289
+ navigationLabel?: string;
6290
+ /** Accessible name of the previous-page button. @default "Previous page" */
6291
+ previousLabel?: string;
6292
+ /** Accessible name of the next-page button. @default "Next page" */
6293
+ nextLabel?: string;
6294
+ /** Accessible name of the rows-per-page menu trigger, followed by the current choice (e.g. "Rows per page, 10 rows"). @default "Rows per page" */
6295
+ pageSizeLabel?: string;
6296
+ }
6297
+
6220
6298
  export declare interface TableCardProps extends React_2.HTMLAttributes<HTMLDivElement> {
6221
6299
  /** Row density applied to {@link TableCell} descendants. @default "md" */
6222
6300
  size?: TableSize;
6223
6301
  }
6224
6302
 
6225
6303
  /**
6226
- * Body cell. v2: `h-16` (or `h-20` when the parent {@link TableCard} uses
6227
- * `size="lg"`), `px-4 py-3` padding, body-sm typography, and a single
6228
- * `border-border-primary` rule that is zeroed by {@link TableBody} for the
6229
- * final row.
6304
+ * Body cell: 40px rows (56px when the parent {@link TableCard} uses
6305
+ * `size="lg"` or the row holds media), 12px type, transparent background and
6306
+ * a 0.5px rule that {@link TableBody} drops on the final row. Long text wraps
6307
+ * and the row grows; set `nowrap` on short columns to keep them on one line.
6230
6308
  */
6231
6309
  export declare const TableCell: React_2.ForwardRefExoticComponent<TableCellProps & React_2.RefAttributes<HTMLTableCellElement>>;
6232
6310
 
6233
6311
  /**
6234
- * Two-line content slot matching Figma `V2 Table Content` — primary line
6235
- * (semibold) over an optional secondary line (regular, muted) with a 2px
6236
- * gap. Use inside {@link TableCell} for the common stacked-text pattern.
6312
+ * Two-line content slot matching Figma `V2 Table Content` — 12px primary line
6313
+ * (semibold) over an optional 12px secondary line (regular, muted), so both
6314
+ * fit a 40px row. Use inside {@link TableCell} for the common stacked-text pattern.
6237
6315
  */
6238
6316
  export declare function TableCellContent({ primary, secondary, primaryAdornment, secondaryAdornment, className, }: TableCellContentProps): JSX.Element;
6239
6317
 
@@ -6271,6 +6349,8 @@ export declare interface TableCellProps extends React_2.TdHTMLAttributes<HTMLTab
6271
6349
  cellVariant?: TableCellVariant;
6272
6350
  /** Alignment and typography preset for common cell types. @default "default" */
6273
6351
  intent?: TableCellIntent;
6352
+ /** Keeps the content on one line, for short values (dates, amounts, statuses). @default false */
6353
+ nowrap?: boolean;
6274
6354
  }
6275
6355
 
6276
6356
  /** Bottom border and padding preset for body cells (Figma table cell component). */
@@ -6282,9 +6362,9 @@ export declare interface TableFooterProps extends React_2.HTMLAttributes<HTMLTab
6282
6362
  }
6283
6363
 
6284
6364
  /**
6285
- * Header cell. v2: transparent background, 48px min height, tertiary text,
6286
- * `border-border-primary` bottom rule. Uses 16px semibold type, or 14px when
6287
- * the parent {@link TableCard} is `size="condensed"`.
6365
+ * Header cell: 32px tall on `surface-table-row`, 12px secondary text and a
6366
+ * 0.5px bottom rule. Columns sit at least 40px apart, with 16px against the
6367
+ * card edges.
6288
6368
  */
6289
6369
  export declare const TableHead: React_2.ForwardRefExoticComponent<TableHeadProps & React_2.RefAttributes<HTMLTableCellElement>>;
6290
6370
 
@@ -6312,8 +6392,9 @@ export declare interface TableLineClampProps extends React_2.HTMLAttributes<HTML
6312
6392
  }
6313
6393
 
6314
6394
  /**
6315
- * Square thumbnail used inside {@link TableCell} for media columns
6316
- * (Figma `V2 Media Thumbnail Item`).
6395
+ * Square photo that fills its frame, used inside {@link TableCell} for media
6396
+ * columns. At the 40px and 48px sizes its row grows to 56px; the 32px size
6397
+ * fits a regular 40px row.
6317
6398
  */
6318
6399
  export declare const TableMediaThumbnail: React_2.ForwardRefExoticComponent<TableMediaThumbnailProps & React_2.RefAttributes<HTMLDivElement>>;
6319
6400
 
@@ -6326,12 +6407,27 @@ export declare interface TableMediaThumbnailProps extends Omit<React_2.HTMLAttri
6326
6407
  blurred?: boolean;
6327
6408
  /** `center` uses the fixed media column width from the lg spec. @default "start" */
6328
6409
  align?: "start" | "center";
6329
- /** Pixel size of the square thumbnail; `"32"` matches the current Figma `V2 Media Thumbnail Item`. @default "48" */
6410
+ /** Pixel size of the square thumbnail. At 40 or 48 its row grows to 56px; 32 fits a 40px row. @default "40" */
6330
6411
  size?: TableMediaThumbnailSize;
6331
6412
  }
6332
6413
 
6333
6414
  /** Pixel size of the square {@link TableMediaThumbnail}. */
6334
- export declare type TableMediaThumbnailSize = "48" | "32";
6415
+ export declare type TableMediaThumbnailSize = "48" | "40" | "32";
6416
+
6417
+ /**
6418
+ * 40px tile for a {@link TableCell}: a logo or icon (e.g. a social platform)
6419
+ * centred on `surface-table-row` with a 0.5px border, or, with `fill`, custom
6420
+ * media that fills it. Its row grows to 56px. For a plain image URL use
6421
+ * {@link TableMediaThumbnail}.
6422
+ */
6423
+ export declare const TableMediaTile: React_2.ForwardRefExoticComponent<TableMediaTileProps & React_2.RefAttributes<HTMLSpanElement>>;
6424
+
6425
+ export declare interface TableMediaTileProps extends React_2.HTMLAttributes<HTMLSpanElement> {
6426
+ /** Logo or icon centred on the tile, or edge-to-edge media when `fill` is set. */
6427
+ children: React_2.ReactNode;
6428
+ /** Lets the child fill the tile edge to edge (e.g. a video preview) with no border or fill. @default false */
6429
+ fill?: boolean;
6430
+ }
6335
6431
 
6336
6432
  /**
6337
6433
  * Stacked row that stands in for a table row on narrow screens (Figma `V2 Table Mobile`):
@@ -6362,40 +6458,6 @@ export declare interface TableMobileRowProps extends Omit<React_2.HTMLAttributes
6362
6458
  wrap?: boolean;
6363
6459
  }
6364
6460
 
6365
- /**
6366
- * Footer bar for data tables: rows-per-page control, page navigation, and
6367
- * range summary. Pair `paginationSlot` with {@link Pagination} for numbered
6368
- * controls.
6369
- *
6370
- * v2 sits flush inside {@link TableCard} (`px-3` matches the card's inner
6371
- * gutter); the chip styling now lives on the {@link TableRowsPerPageSelect}
6372
- * trigger itself.
6373
- *
6374
- * @example
6375
- * ```tsx
6376
- * <TablePagination
6377
- * leadingSlot={<TableRowsPerPageSelect />}
6378
- * paginationSlot={<Pagination totalPages={5} currentPage={2} onPageChange={setPage} />}
6379
- * summary="20–30 of 100 rows"
6380
- * />
6381
- * ```
6382
- */
6383
- export declare const TablePagination: React_2.ForwardRefExoticComponent<TablePaginationProps & React_2.RefAttributes<HTMLDivElement>>;
6384
-
6385
- /** Layout preset for the pagination bar — desktop (range on the right) or stacked mobile. */
6386
- export declare type TablePaginationLayout = "desktop" | "mobile";
6387
-
6388
- export declare interface TablePaginationProps extends React_2.HTMLAttributes<HTMLDivElement> {
6389
- /** Layout preset. @default "desktop" */
6390
- layout?: TablePaginationLayout;
6391
- /** Left (desktop) or top row (mobile) content, e.g. rows-per-page {@link Select}. */
6392
- leadingSlot?: React_2.ReactNode;
6393
- /** Center (desktop) or bottom row (mobile) content, e.g. {@link Pagination}. */
6394
- paginationSlot?: React_2.ReactNode;
6395
- /** Summary text or node (e.g. current range and total). */
6396
- summary: React_2.ReactNode;
6397
- }
6398
-
6399
6461
  /**
6400
6462
  * Vertical layout for pill label + {@link TableProgressTrack} in a cell.
6401
6463
  */
@@ -6418,22 +6480,13 @@ export declare interface TableProgressTrackProps extends React_2.HTMLAttributes<
6418
6480
  export declare interface TableProps extends React_2.TableHTMLAttributes<HTMLTableElement> {
6419
6481
  }
6420
6482
 
6421
- export declare const TableRow: React_2.ForwardRefExoticComponent<TableRowProps & React_2.RefAttributes<HTMLTableRowElement>>;
6422
-
6423
- export declare interface TableRowProps extends React_2.HTMLAttributes<HTMLTableRowElement> {
6424
- }
6425
-
6426
6483
  /**
6427
- * Rows-per-page {@link Select} styled for {@link TablePagination}. v2 uses a
6428
- * subtle pill trigger with the table's secondary-surface background.
6484
+ * Table row. A body row holding a {@link TableMediaThumbnail} or
6485
+ * {@link TableMediaTile} grows from 40px to 56px to keep 8px around it.
6429
6486
  */
6430
- export declare function TableRowsPerPageSelect(props: TableRowsPerPageSelectProps): JSX.Element;
6487
+ export declare const TableRow: React_2.ForwardRefExoticComponent<TableRowProps & React_2.RefAttributes<HTMLTableRowElement>>;
6431
6488
 
6432
- export declare interface TableRowsPerPageSelectProps {
6433
- /** Passed to the trigger for forms and labels. */
6434
- id?: string;
6435
- /** Accessible name for the trigger when no visible label. @default "Rows per page" */
6436
- "aria-label"?: string;
6489
+ export declare interface TableRowProps extends React_2.HTMLAttributes<HTMLTableRowElement> {
6437
6490
  }
6438
6491
 
6439
6492
  /**
@@ -6473,8 +6526,8 @@ export declare type TableSize = "md" | "lg" | "condensed" | "default";
6473
6526
  export declare type TableSortDirection = "asc" | "desc" | null;
6474
6527
 
6475
6528
  /**
6476
- * Sortable column label. v2 expresses the sort state with a 1px underline
6477
- * beneath the label plus a directional arrow when sorted.
6529
+ * Sortable column label. A sorted column reads primary with the Arrow Sort
6530
+ * Up / Down chevrons; an unsorted one keeps the header colour.
6478
6531
  */
6479
6532
  export declare const TableSortLabel: React_2.ForwardRefExoticComponent<TableSortLabelProps & React_2.RefAttributes<HTMLSpanElement>>;
6480
6533
 
@@ -6482,8 +6535,8 @@ export declare interface TableSortLabelProps extends React_2.HTMLAttributes<HTML
6482
6535
  children: React_2.ReactNode;
6483
6536
  /**
6484
6537
  * Visual indicator of the column's sort state. When set to `"asc"` or
6485
- * `"desc"`, a 1px underline accent appears beneath the label and a small
6486
- * directional arrow is shown next to it. @default null
6538
+ * `"desc"`, the label turns primary and the Arrow Sort Up / Down chevrons
6539
+ * appear next to it, the active direction highlighted. @default null
6487
6540
  */
6488
6541
  direction?: TableSortDirection;
6489
6542
  }
@@ -6516,11 +6569,63 @@ export declare interface TableStatusDotProps extends React_2.HTMLAttributes<HTML
6516
6569
  }
6517
6570
 
6518
6571
  /**
6519
- * Optional toolbar row above the table (e.g. bulk selection actions).
6572
+ * 40px action bar above a {@link TableCard}: search on the left, every other
6573
+ * control (menus, toggles, buttons) on the right, 24px apart. On phones
6574
+ * {@link TableToolbarAction} controls go icon-only so the bar fits.
6575
+ *
6576
+ * @example
6577
+ * ```tsx
6578
+ * <TableToolbar search={<TableToolbarSearch value={q} onValueChange={setQ} placeholder="Search" clearLabel="Clear search" />}>
6579
+ * <TableToolbarAction icon={<SettingsIcon />}>Filters</TableToolbarAction>
6580
+ * <TableToolbarButton>Create</TableToolbarButton>
6581
+ * </TableToolbar>
6582
+ * ```
6520
6583
  */
6521
6584
  export declare const TableToolbar: React_2.ForwardRefExoticComponent<TableToolbarProps & React_2.RefAttributes<HTMLDivElement>>;
6522
6585
 
6586
+ /**
6587
+ * Labelled control for {@link TableToolbar}: 12px label followed by a 16px
6588
+ * icon. Below the `md` breakpoint only the icon shows, and the label stays as
6589
+ * the accessible name, so a full bar still fits a phone. Works as a plain
6590
+ * button or as a `DropdownMenuTrigger` child.
6591
+ */
6592
+ export declare const TableToolbarAction: React_2.ForwardRefExoticComponent<TableToolbarActionProps & React_2.RefAttributes<HTMLButtonElement>>;
6593
+
6594
+ export declare interface TableToolbarActionProps extends React_2.ButtonHTMLAttributes<HTMLButtonElement> {
6595
+ /** 16px icon after the label. @default up/down arrows, for a menu trigger showing its current value */
6596
+ icon?: React_2.ReactNode;
6597
+ /** Tints the icon with the brand colour while a toggle or filter is on. @default false */
6598
+ active?: boolean;
6599
+ }
6600
+
6601
+ /**
6602
+ * Call to action for {@link TableToolbar} (e.g. "Create New"): a 24px
6603
+ * {@link Button} squared to the toolbar's 8px radius with 12px semibold type,
6604
+ * so it sits 8px from the bar's edges. Elsewhere use {@link Button}.
6605
+ */
6606
+ export declare const TableToolbarButton: React_2.ForwardRefExoticComponent<TableToolbarButtonProps & React_2.RefAttributes<HTMLButtonElement>>;
6607
+
6608
+ export declare interface TableToolbarButtonProps extends Omit<ButtonProps, "size"> {
6609
+ }
6610
+
6523
6611
  export declare interface TableToolbarProps extends React_2.HTMLAttributes<HTMLDivElement> {
6612
+ /** Left slot, usually a {@link TableToolbarSearch}. */
6613
+ search?: React_2.ReactNode;
6614
+ }
6615
+
6616
+ /**
6617
+ * Borderless search field for the left slot of {@link TableToolbar}:
6618
+ * 16px search icon, 12px text and a clear button once there is a query.
6619
+ */
6620
+ export declare const TableToolbarSearch: React_2.ForwardRefExoticComponent<TableToolbarSearchProps & React_2.RefAttributes<HTMLInputElement>>;
6621
+
6622
+ export declare interface TableToolbarSearchProps extends Omit<React_2.InputHTMLAttributes<HTMLInputElement>, "value" | "onChange" | "type"> {
6623
+ /** Current query. */
6624
+ value: string;
6625
+ /** Called with the new query, and with `""` when cleared. */
6626
+ onValueChange: (value: string) => void;
6627
+ /** Accessible name of the clear button. */
6628
+ clearLabel: string;
6524
6629
  }
6525
6630
 
6526
6631
  export declare const Tabs: React_2.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;