@fanvue/ui 3.45.0 → 3.47.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.
@@ -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,11 @@ 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");
11
+ const Tooltip = require("../Tooltip/Tooltip.cjs");
10
12
  function _interopNamespaceDefault(e) {
11
13
  const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
12
14
  if (e) {
@@ -35,7 +37,7 @@ const TableCard = React__namespace.forwardRef(
35
37
  {
36
38
  ref,
37
39
  className: cn.cn(
38
- "isolate flex flex-col gap-2 overflow-hidden rounded-3xl border border-border-strong px-3 py-1",
40
+ "isolate flex flex-col overflow-hidden rounded-sm border-[0.5px] border-border-primary",
39
41
  className
40
42
  ),
41
43
  ...props
@@ -45,18 +47,162 @@ const TableCard = React__namespace.forwardRef(
45
47
  );
46
48
  TableCard.displayName = "TableCard";
47
49
  const TableToolbar = React__namespace.forwardRef(
50
+ ({ className, search, children, ...props }, ref) => {
51
+ return /* @__PURE__ */ jsxRuntime.jsxs(
52
+ "div",
53
+ {
54
+ ref,
55
+ className: cn.cn(
56
+ "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",
57
+ className
58
+ ),
59
+ ...props,
60
+ children: [
61
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex min-w-24 flex-1 items-center", children: search }),
62
+ 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 })
63
+ ]
64
+ }
65
+ );
66
+ }
67
+ );
68
+ TableToolbar.displayName = "TableToolbar";
69
+ const TableToolbarSearch = React__namespace.forwardRef(
70
+ ({ className, value, onValueChange, clearLabel, placeholder, ...props }, ref) => {
71
+ return /* @__PURE__ */ jsxRuntime.jsxs("label", { className: cn.cn("flex h-6 w-full min-w-0 cursor-text items-center gap-2", className), children: [
72
+ /* @__PURE__ */ jsxRuntime.jsx(SearchIcon.SearchIcon, { size: 16, className: "shrink-0 text-icons-secondary", "aria-hidden": true }),
73
+ /* @__PURE__ */ jsxRuntime.jsx(
74
+ "input",
75
+ {
76
+ ref,
77
+ type: "search",
78
+ value,
79
+ onChange: (event) => onValueChange(event.target.value),
80
+ placeholder,
81
+ "aria-label": props["aria-label"] ?? placeholder,
82
+ 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",
83
+ ...props
84
+ }
85
+ ),
86
+ value !== "" && /* @__PURE__ */ jsxRuntime.jsx(
87
+ "button",
88
+ {
89
+ type: "button",
90
+ "aria-label": clearLabel,
91
+ onClick: () => onValueChange(""),
92
+ 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",
93
+ children: /* @__PURE__ */ jsxRuntime.jsx(CloseIcon.CloseIcon, { size: 16 })
94
+ }
95
+ )
96
+ ] });
97
+ }
98
+ );
99
+ TableToolbarSearch.displayName = "TableToolbarSearch";
100
+ const TableToolbarAction = React__namespace.forwardRef(
101
+ ({ className, children, icon, active = false, type = "button", ...props }, ref) => {
102
+ return /* @__PURE__ */ jsxRuntime.jsxs(
103
+ "button",
104
+ {
105
+ ref,
106
+ type,
107
+ className: cn.cn(
108
+ "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",
109
+ "hover:text-content-primary focus-visible:shadow-focus-ring disabled:cursor-default disabled:opacity-40",
110
+ className
111
+ ),
112
+ ...props,
113
+ children: [
114
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "max-md:sr-only", children }),
115
+ /* @__PURE__ */ jsxRuntime.jsx(
116
+ "span",
117
+ {
118
+ "aria-hidden": true,
119
+ className: cn.cn(
120
+ "inline-flex size-4 shrink-0 items-center justify-center [&>svg]:size-4",
121
+ active ? "text-brand-primary-default" : "text-icons-secondary"
122
+ ),
123
+ children: icon ?? /* @__PURE__ */ jsxRuntime.jsx(TranscationArrowIcon.TranscationArrowIcon, { size: 16 })
124
+ }
125
+ )
126
+ ]
127
+ }
128
+ );
129
+ }
130
+ );
131
+ TableToolbarAction.displayName = "TableToolbarAction";
132
+ const TableToolbarButton = React__namespace.forwardRef(
48
133
  ({ className, ...props }, ref) => {
49
134
  return /* @__PURE__ */ jsxRuntime.jsx(
50
- "div",
135
+ Button.Button,
51
136
  {
52
137
  ref,
53
- className: cn.cn("flex flex-wrap items-center gap-4 px-4 py-3", className),
138
+ size: "24",
139
+ className: cn.cn("typography-description-12px-semibold rounded-xs", className),
54
140
  ...props
55
141
  }
56
142
  );
57
143
  }
58
144
  );
59
- TableToolbar.displayName = "TableToolbar";
145
+ TableToolbarButton.displayName = "TableToolbarButton";
146
+ const TableRowButton = React__namespace.forwardRef(
147
+ ({ className, variant = "secondary", ...props }, ref) => {
148
+ return /* @__PURE__ */ jsxRuntime.jsx(
149
+ Button.Button,
150
+ {
151
+ ref,
152
+ size: "24",
153
+ variant,
154
+ className: cn.cn(
155
+ "typography-description-12px-semibold rounded-xs [&_svg]:size-4! [&_svg]:text-icons-secondary",
156
+ className
157
+ ),
158
+ ...props
159
+ }
160
+ );
161
+ }
162
+ );
163
+ TableRowButton.displayName = "TableRowButton";
164
+ const TableTruncatedText = React__namespace.forwardRef(
165
+ ({ className, children, maxChars = 25, style, ...props }, ref) => {
166
+ const innerRef = React__namespace.useRef(null);
167
+ const [isTruncated, setIsTruncated] = React__namespace.useState(false);
168
+ React__namespace.useImperativeHandle(ref, () => innerRef.current);
169
+ const measure = React__namespace.useCallback(() => {
170
+ const element = innerRef.current;
171
+ if (element) {
172
+ setIsTruncated(element.scrollWidth > element.clientWidth);
173
+ }
174
+ }, []);
175
+ React__namespace.useLayoutEffect(measure);
176
+ React__namespace.useLayoutEffect(() => {
177
+ const element = innerRef.current;
178
+ if (!element || typeof ResizeObserver === "undefined") {
179
+ return;
180
+ }
181
+ const observer = new ResizeObserver(measure);
182
+ observer.observe(element);
183
+ return () => observer.disconnect();
184
+ }, [measure]);
185
+ const text = /* @__PURE__ */ jsxRuntime.jsx(
186
+ "span",
187
+ {
188
+ ref: innerRef,
189
+ className: cn.cn("block truncate", className),
190
+ style: { maxWidth: `${maxChars}ch`, ...style },
191
+ tabIndex: isTruncated ? 0 : void 0,
192
+ ...props,
193
+ children
194
+ }
195
+ );
196
+ if (!isTruncated) {
197
+ return text;
198
+ }
199
+ return /* @__PURE__ */ jsxRuntime.jsx(Tooltip.TooltipProvider, { children: /* @__PURE__ */ jsxRuntime.jsxs(Tooltip.Tooltip, { children: [
200
+ /* @__PURE__ */ jsxRuntime.jsx(Tooltip.TooltipTrigger, { asChild: true, children: text }),
201
+ /* @__PURE__ */ jsxRuntime.jsx(Tooltip.TooltipContent, { className: "max-w-xs whitespace-pre-line", children })
202
+ ] }) });
203
+ }
204
+ );
205
+ TableTruncatedText.displayName = "TableTruncatedText";
60
206
  const TableScrollArea = React__namespace.forwardRef(
61
207
  ({ className, children, roundTop: _roundTop, showScrollbar = false, ...props }, ref) => {
62
208
  return /* @__PURE__ */ jsxRuntime.jsx(
@@ -116,27 +262,27 @@ const TableFooter = React__namespace.forwardRef(
116
262
  TableFooter.displayName = "TableFooter";
117
263
  const TableRow = React__namespace.forwardRef(
118
264
  ({ className, ...props }, ref) => {
119
- return /* @__PURE__ */ jsxRuntime.jsx("tr", { ref, className: cn.cn(className), ...props });
265
+ return /* @__PURE__ */ jsxRuntime.jsx("tr", { ref, className: cn.cn("[&:has([data-table-media])>td]:h-14", className), ...props });
120
266
  }
121
267
  );
122
268
  TableRow.displayName = "TableRow";
123
269
  const HEAD_INTENT_CLASSES = {
124
270
  default: "text-left",
125
- checkbox: "w-12 min-w-12 max-w-12 text-center",
271
+ checkbox: "w-px pr-0 text-left",
126
272
  sort: "text-right",
127
273
  leading: "min-w-0 w-2/5 text-left"
128
274
  };
275
+ const CELL_GUTTERS = "px-5 first:pl-4 last:pr-4";
129
276
  const TableHead = React__namespace.forwardRef(
130
277
  ({ className, intent = "default", scope = "col", ...props }, ref) => {
131
- const size = useTableSize();
132
278
  return /* @__PURE__ */ jsxRuntime.jsx(
133
279
  "th",
134
280
  {
135
281
  ref,
136
282
  scope,
137
283
  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",
284
+ "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",
285
+ CELL_GUTTERS,
140
286
  HEAD_INTENT_CLASSES[intent],
141
287
  className
142
288
  ),
@@ -147,27 +293,27 @@ const TableHead = React__namespace.forwardRef(
147
293
  );
148
294
  TableHead.displayName = "TableHead";
149
295
  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"
296
+ md: "h-10",
297
+ default: "h-10",
298
+ condensed: "h-10",
299
+ lg: "h-14"
154
300
  };
155
301
  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"
302
+ default: "border-b-[0.5px] border-border-primary py-0",
303
+ chip: "border-b-[0.5px] border-border-primary py-0",
304
+ pillProgress: "border-b-[0.5px] border-border-primary py-1"
159
305
  };
160
306
  const CELL_INTENT_CLASSES = {
161
307
  default: "",
162
- checkbox: "w-12 min-w-12 max-w-12 text-center",
163
- stacked: "align-top",
308
+ checkbox: "w-px pr-0 text-left",
309
+ stacked: "align-top py-2",
164
310
  multiline: "max-w-[240px]",
165
311
  sideLabel: ""
166
312
  };
167
313
  const TableCell = React__namespace.forwardRef(
168
- ({ className, cellVariant = "default", intent = "default", ...props }, ref) => {
314
+ ({ className, cellVariant = "default", intent = "default", nowrap = false, ...props }, ref) => {
169
315
  const size = useTableSize();
170
- const typo = intent === "sideLabel" ? "typography-body-small-14px-semibold" : "typography-body-small-14px-regular";
316
+ const typo = intent === "sideLabel" ? "typography-description-12px-semibold" : "typography-description-12px-regular";
171
317
  return /* @__PURE__ */ jsxRuntime.jsx(
172
318
  "td",
173
319
  {
@@ -175,6 +321,8 @@ const TableCell = React__namespace.forwardRef(
175
321
  className: cn.cn(
176
322
  typo,
177
323
  "align-middle text-content-primary",
324
+ nowrap && "whitespace-nowrap",
325
+ CELL_GUTTERS,
178
326
  CELL_VARIANT_CLASSES[cellVariant],
179
327
  CELL_MIN_HEIGHT[size],
180
328
  CELL_INTENT_CLASSES[intent],
@@ -199,29 +347,31 @@ function TableCellContent({
199
347
  secondaryAdornment,
200
348
  className
201
349
  }) {
202
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn.cn("flex flex-col gap-0.5", className), children: [
350
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn.cn("flex flex-col", className), children: [
203
351
  /* @__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 }),
352
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "typography-description-12px-semibold text-content-primary", children: primary }),
205
353
  primaryAdornment
206
354
  ] }),
207
355
  (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 }),
356
+ secondary != null && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "typography-description-12px-regular text-content-secondary", children: secondary }),
209
357
  secondaryAdornment
210
358
  ] })
211
359
  ] });
212
360
  }
213
361
  TableCellContent.displayName = "TableCellContent";
214
362
  const TableMediaThumbnail = React__namespace.forwardRef(
215
- ({ className, src, alt = "", blurred, align = "start", size = "48", ...props }, ref) => {
363
+ ({ className, src, alt = "", blurred, align = "start", size = "40", ...props }, ref) => {
216
364
  const frame = cn.cn(
217
365
  "overflow-hidden bg-neutral-alphas-200",
218
366
  size === "48" && "size-12 rounded-sm",
367
+ size === "40" && "size-10 rounded-xs",
219
368
  size === "32" && "size-8 rounded-xs"
220
369
  );
221
370
  return /* @__PURE__ */ jsxRuntime.jsx(
222
371
  "div",
223
372
  {
224
373
  ref,
374
+ "data-table-media": size === "32" ? void 0 : "",
225
375
  className: cn.cn(
226
376
  align === "center" && "flex w-16 shrink-0 justify-center",
227
377
  align === "start" && "inline-flex shrink-0"
@@ -232,6 +382,24 @@ const TableMediaThumbnail = React__namespace.forwardRef(
232
382
  }
233
383
  );
234
384
  TableMediaThumbnail.displayName = "TableMediaThumbnail";
385
+ const TableMediaTile = React__namespace.forwardRef(
386
+ ({ className, fill = false, ...props }, ref) => {
387
+ return /* @__PURE__ */ jsxRuntime.jsx(
388
+ "span",
389
+ {
390
+ ref,
391
+ "data-table-media": "",
392
+ className: cn.cn(
393
+ "inline-flex size-10 shrink-0 items-center justify-center overflow-hidden rounded-xs",
394
+ fill ? "[&>*]:size-full" : "border-[0.5px] border-border-primary bg-surface-table-row text-icons-secondary",
395
+ className
396
+ ),
397
+ ...props
398
+ }
399
+ );
400
+ }
401
+ );
402
+ TableMediaTile.displayName = "TableMediaTile";
235
403
  const TableStatusDot = React__namespace.forwardRef(
236
404
  ({ className, ...props }, ref) => {
237
405
  return /* @__PURE__ */ jsxRuntime.jsx(
@@ -287,18 +455,56 @@ const TablePillProgressLayout = React__namespace.forwardRef(({ className, ...pro
287
455
  );
288
456
  });
289
457
  TablePillProgressLayout.displayName = "TablePillProgressLayout";
458
+ function SortArrows({ direction }) {
459
+ return /* @__PURE__ */ jsxRuntime.jsxs(
460
+ "svg",
461
+ {
462
+ width: 16,
463
+ height: 16,
464
+ viewBox: "0 0 16 16",
465
+ fill: "none",
466
+ "aria-hidden": "true",
467
+ className: "shrink-0",
468
+ children: [
469
+ /* @__PURE__ */ jsxRuntime.jsx(
470
+ "path",
471
+ {
472
+ d: "M5 6L8 3L11 6",
473
+ strokeWidth: 1.2,
474
+ strokeLinecap: "round",
475
+ strokeLinejoin: "round",
476
+ className: direction === "asc" ? "stroke-current" : "stroke-icons-tertiary"
477
+ }
478
+ ),
479
+ /* @__PURE__ */ jsxRuntime.jsx(
480
+ "path",
481
+ {
482
+ d: "M11 10L8 13L5 10",
483
+ strokeWidth: 1.2,
484
+ strokeLinecap: "round",
485
+ strokeLinejoin: "round",
486
+ className: direction === "desc" ? "stroke-current" : "stroke-icons-tertiary"
487
+ }
488
+ )
489
+ ]
490
+ }
491
+ );
492
+ }
290
493
  const TableSortLabel = React__namespace.forwardRef(
291
494
  ({ className, children, direction = null, ...props }, ref) => {
292
- const Icon = direction === "desc" ? ArrowDownIcon.ArrowDownIcon : ArrowUpIcon.ArrowUpIcon;
293
495
  return /* @__PURE__ */ jsxRuntime.jsxs(
294
496
  "span",
295
497
  {
296
498
  ref,
297
- className: cn.cn("inline-flex items-center gap-1 text-content-primary", className),
499
+ className: cn.cn(
500
+ "inline-flex items-center gap-1",
501
+ direction != null && "text-content-primary",
502
+ className
503
+ ),
298
504
  ...props,
299
505
  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 })
506
+ children,
507
+ direction != null && /* @__PURE__ */ jsxRuntime.jsx(SortArrows, { direction })
302
508
  ]
303
509
  }
304
510
  );
@@ -327,24 +533,6 @@ const TableLineClamp = React__namespace.forwardRef(
327
533
  }
328
534
  );
329
535
  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
536
  exports.Table = Table;
349
537
  exports.TableBody = TableBody;
350
538
  exports.TableCard = TableCard;
@@ -356,13 +544,18 @@ exports.TableHead = TableHead;
356
544
  exports.TableHeader = TableHeader;
357
545
  exports.TableLineClamp = TableLineClamp;
358
546
  exports.TableMediaThumbnail = TableMediaThumbnail;
547
+ exports.TableMediaTile = TableMediaTile;
359
548
  exports.TablePillProgressLayout = TablePillProgressLayout;
360
549
  exports.TableProgressTrack = TableProgressTrack;
361
550
  exports.TableRow = TableRow;
362
- exports.TableRowsPerPageSelect = TableRowsPerPageSelect;
551
+ exports.TableRowButton = TableRowButton;
363
552
  exports.TableScrollArea = TableScrollArea;
364
553
  exports.TableSortLabel = TableSortLabel;
365
554
  exports.TableStackedText = TableStackedText;
366
555
  exports.TableStatusDot = TableStatusDot;
367
556
  exports.TableToolbar = TableToolbar;
557
+ exports.TableToolbarAction = TableToolbarAction;
558
+ exports.TableToolbarButton = TableToolbarButton;
559
+ exports.TableToolbarSearch = TableToolbarSearch;
560
+ exports.TableTruncatedText = TableTruncatedText;
368
561
  //# sourceMappingURL=Table.cjs.map