@ledgerhq/lumen-ui-react 0.0.83 → 0.0.85

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/ai-rules/RULES.md +1 -0
  2. package/dist/index.js +134 -128
  3. package/dist/lib/Components/Button/BaseButton.js +9 -9
  4. package/dist/lib/Components/CardButton/CardButton.js +12 -12
  5. package/dist/lib/Components/DataTable/DataTable.d.ts +39 -0
  6. package/dist/lib/Components/DataTable/DataTable.d.ts.map +1 -0
  7. package/dist/lib/Components/DataTable/DataTable.js +195 -0
  8. package/dist/lib/Components/DataTable/index.d.ts +4 -0
  9. package/dist/lib/Components/DataTable/index.d.ts.map +1 -0
  10. package/dist/lib/Components/DataTable/types.d.ts +111 -0
  11. package/dist/lib/Components/DataTable/types.d.ts.map +1 -0
  12. package/dist/lib/Components/DataTable/useLumenDataTable/index.d.ts +2 -0
  13. package/dist/lib/Components/DataTable/useLumenDataTable/index.d.ts.map +1 -0
  14. package/dist/lib/Components/DataTable/useLumenDataTable/useLumenDataTable.d.ts +38 -0
  15. package/dist/lib/Components/DataTable/useLumenDataTable/useLumenDataTable.d.ts.map +1 -0
  16. package/dist/lib/Components/DataTable/useLumenDataTable/useLumenDataTable.js +10 -0
  17. package/dist/lib/Components/Skeleton/Skeleton.d.ts +4 -1
  18. package/dist/lib/Components/Skeleton/Skeleton.d.ts.map +1 -1
  19. package/dist/lib/Components/Skeleton/Skeleton.js +84 -98
  20. package/dist/lib/Components/Skeleton/types.d.ts +3 -3
  21. package/dist/lib/Components/Skeleton/types.d.ts.map +1 -1
  22. package/dist/lib/Components/Spot/Spot.d.ts +4 -1
  23. package/dist/lib/Components/Spot/Spot.d.ts.map +1 -1
  24. package/dist/lib/Components/Spot/Spot.js +23 -23
  25. package/dist/lib/Components/Spot/types.d.ts +2 -2
  26. package/dist/lib/Components/Spot/types.d.ts.map +1 -1
  27. package/dist/lib/Components/Table/Table.d.ts +65 -81
  28. package/dist/lib/Components/Table/Table.d.ts.map +1 -1
  29. package/dist/lib/Components/Table/Table.js +306 -267
  30. package/dist/lib/Components/Table/types.d.ts +17 -17
  31. package/dist/lib/Components/Table/types.d.ts.map +1 -1
  32. package/dist/lib/Components/index.d.ts +1 -0
  33. package/dist/lib/Components/index.d.ts.map +1 -1
  34. package/dist/libs/utils-shared/dist/index.js +59 -59
  35. package/dist/package.json +2 -2
  36. package/package.json +2 -2
@@ -1,16 +1,15 @@
1
- import { jsx as l, jsxs as u } from "react/jsx-runtime";
2
- import { createSafeContext as T, cn as c } from "../../../libs/utils-shared/dist/index.js";
3
- import { cva as i } from "class-variance-authority";
4
- import { forwardRef as s } from "react";
5
- import { useThrottledScrollBottom as g } from "./utils/useThrottledScrollBottom.js";
6
- import { Spot as w } from "../Spot/Spot.js";
7
- import { Information as R } from "../../Symbols/Icons/Information.js";
8
- import { useCommonTranslation as B } from "../../../i18n/useCommonTranslation.js";
9
- import { ChevronUpDown as C } from "../../Symbols/Icons/ChevronUpDown.js";
10
- import { ChevronDescending as j } from "../../Symbols/Icons/ChevronDescending.js";
11
- import { ChevronAscending as H } from "../../Symbols/Icons/ChevronAscending.js";
12
- import { InteractiveIcon as A } from "../InteractiveIcon/InteractiveIcon.js";
13
- const [I, b] = T("Table"), L = i(
1
+ import { jsx as n, jsxs as m } from "react/jsx-runtime";
2
+ import { createSafeContext as N, cn as c } from "../../../libs/utils-shared/dist/index.js";
3
+ import { cva as o } from "class-variance-authority";
4
+ import { useThrottledScrollBottom as T } from "./utils/useThrottledScrollBottom.js";
5
+ import { Spot as g } from "../Spot/Spot.js";
6
+ import { Information as w } from "../../Symbols/Icons/Information.js";
7
+ import { useCommonTranslation as R } from "../../../i18n/useCommonTranslation.js";
8
+ import { ChevronUpDown as B } from "../../Symbols/Icons/ChevronUpDown.js";
9
+ import { ChevronDescending as C } from "../../Symbols/Icons/ChevronDescending.js";
10
+ import { ChevronAscending as j } from "../../Symbols/Icons/ChevronAscending.js";
11
+ import { InteractiveIcon as H } from "../InteractiveIcon/InteractiveIcon.js";
12
+ const [A, u] = N("Table"), I = o(
14
13
  "relative scrollbar-none w-full max-w-full border-collapse overflow-x-auto rounded-lg",
15
14
  {
16
15
  variants: {
@@ -20,109 +19,130 @@ const [I, b] = T("Table"), L = i(
20
19
  }
21
20
  }
22
21
  }
23
- ), V = s(
24
- ({
25
- children: t,
26
- appearance: e = "no-background",
27
- className: a,
28
- onScrollBottom: r,
29
- loading: n,
30
- ...o
31
- }, d) => {
32
- const m = g({
33
- onScrollBottom: r,
34
- loading: n
35
- });
36
- return /* @__PURE__ */ l(I, { value: { appearance: e, loading: n }, children: /* @__PURE__ */ l(
37
- "div",
38
- {
39
- ...o,
40
- ref: d,
41
- className: L({ appearance: e, className: a }),
42
- onScroll: m,
43
- children: t
44
- }
45
- ) });
46
- }
47
- );
48
- V.displayName = "TableRoot";
49
- const S = s(
50
- ({ children: t, className: e, ...a }, r) => /* @__PURE__ */ l(
51
- "table",
22
+ ), L = ({
23
+ children: t,
24
+ appearance: e = "no-background",
25
+ className: a,
26
+ onScrollBottom: l,
27
+ loading: r,
28
+ ref: s,
29
+ ...i
30
+ }) => {
31
+ const d = T({
32
+ onScrollBottom: l,
33
+ loading: r
34
+ });
35
+ return /* @__PURE__ */ n(A, { value: { appearance: e, loading: r }, children: /* @__PURE__ */ n(
36
+ "div",
52
37
  {
53
- ...a,
54
- className: c("w-full max-w-full table-fixed", e),
55
- ref: r,
38
+ ...i,
39
+ ref: s,
40
+ className: I({ appearance: e, className: a }),
41
+ onScroll: d,
56
42
  children: t
57
43
  }
58
- )
59
- );
60
- S.displayName = "Table";
61
- const q = s(({ children: t, className: e, ...a }, r) => /* @__PURE__ */ l("thead", { ref: r, className: e, ...a, children: t }));
62
- q.displayName = "TableHeader";
63
- const z = s(
64
- ({ children: t, className: e, ...a }, r) => /* @__PURE__ */ l("tbody", { ref: r, className: e, ...a, children: t })
44
+ ) });
45
+ };
46
+ L.displayName = "TableRoot";
47
+ const V = ({ children: t, className: e, ref: a, ...l }) => /* @__PURE__ */ n(
48
+ "table",
49
+ {
50
+ ...l,
51
+ className: c("w-full max-w-full table-fixed", e),
52
+ ref: a,
53
+ children: t
54
+ }
65
55
  );
66
- z.displayName = "TableBody";
67
- const G = s(
68
- ({ children: t, className: e, clickable: a = !1, onClick: r, ...n }, o) => /* @__PURE__ */ l(
69
- "tr",
70
- {
71
- ref: o,
72
- onClick: r,
73
- role: a ? "button" : void 0,
74
- className: c(
75
- a && "cursor-pointer outline-none select-none hover:bg-base-transparent-hover active:bg-base-transparent-pressed",
76
- e
77
- ),
78
- ...n,
79
- children: t
80
- }
81
- )
56
+ V.displayName = "Table";
57
+ const S = ({
58
+ children: t,
59
+ className: e,
60
+ ref: a,
61
+ ...l
62
+ }) => /* @__PURE__ */ n("thead", { ref: a, className: e, ...l, children: t });
63
+ S.displayName = "TableHeader";
64
+ const q = ({
65
+ children: t,
66
+ className: e,
67
+ ref: a,
68
+ ...l
69
+ }) => /* @__PURE__ */ n("tbody", { ref: a, className: e, ...l, children: t });
70
+ q.displayName = "TableBody";
71
+ const z = ({
72
+ children: t,
73
+ className: e,
74
+ clickable: a = !1,
75
+ onClick: l,
76
+ ref: r,
77
+ ...s
78
+ }) => /* @__PURE__ */ n(
79
+ "tr",
80
+ {
81
+ ref: r,
82
+ onClick: l,
83
+ role: a ? "button" : void 0,
84
+ className: c(
85
+ a && "cursor-pointer outline-none select-none hover:bg-base-transparent-hover active:bg-base-transparent-pressed",
86
+ e
87
+ ),
88
+ ...s,
89
+ children: t
90
+ }
82
91
  );
83
- G.displayName = "TableRow";
84
- const M = i("sticky top-0", {
92
+ z.displayName = "TableRow";
93
+ const G = o("sticky top-0", {
85
94
  variants: {
86
95
  appearance: {
87
96
  "no-background": "bg-canvas",
88
97
  plain: "bg-surface"
89
98
  }
90
99
  }
91
- }), k = s(({ children: t, className: e, ...a }, r) => {
92
- const { appearance: n } = b({
100
+ }), M = ({
101
+ children: t,
102
+ className: e,
103
+ ref: a,
104
+ ...l
105
+ }) => {
106
+ const { appearance: r } = u({
93
107
  consumerName: "TableHeaderRow",
94
108
  contextRequired: !0
95
109
  });
96
- return /* @__PURE__ */ l(
110
+ return /* @__PURE__ */ n(
97
111
  "tr",
98
112
  {
99
- ref: r,
100
- className: M({ appearance: n, className: e }),
101
- ...a,
113
+ ref: a,
114
+ className: G({ appearance: r, className: e }),
115
+ ...l,
102
116
  children: t
103
117
  }
104
118
  );
105
- });
106
- k.displayName = "TableHeaderRow";
107
- const J = s(({ children: t, className: e, colSpan: a = 1, ...r }, n) => {
108
- const { appearance: o } = b({
119
+ };
120
+ M.displayName = "TableHeaderRow";
121
+ const k = ({
122
+ children: t,
123
+ className: e,
124
+ colSpan: a = 1,
125
+ ref: l,
126
+ ...r
127
+ }) => {
128
+ const { appearance: s } = u({
109
129
  consumerName: "TableGroupHeaderRow",
110
130
  contextRequired: !0
111
131
  });
112
- return /* @__PURE__ */ l("tr", { ref: n, className: c("h-40", e), ...r, children: /* @__PURE__ */ l("td", { colSpan: a, children: /* @__PURE__ */ l(
132
+ return /* @__PURE__ */ n("tr", { ref: l, className: c("h-40", e), ...r, children: /* @__PURE__ */ n("td", { colSpan: a, children: /* @__PURE__ */ n(
113
133
  "div",
114
134
  {
115
135
  className: c(
116
136
  "flex h-32 w-full items-center bg-muted px-12 body-3 text-base",
117
- o === "no-background" && "rounded-sm"
137
+ s === "no-background" && "rounded-sm"
118
138
  ),
119
139
  children: t
120
140
  }
121
141
  ) }) });
122
- });
123
- J.displayName = "TableGroupHeaderRow";
124
- const f = {
125
- root: i(
142
+ };
143
+ k.displayName = "TableGroupHeaderRow";
144
+ const p = {
145
+ root: o(
126
146
  "h-64 truncate p-12 body-3 text-base first:rounded-l-md last:rounded-r-md",
127
147
  {
128
148
  variants: {
@@ -136,7 +156,7 @@ const f = {
136
156
  }
137
157
  }
138
158
  ),
139
- inner: i("flex flex-1 justify-end", {
159
+ inner: o("flex flex-1 justify-end", {
140
160
  variants: {
141
161
  align: {
142
162
  start: "text-start justify-start",
@@ -144,52 +164,56 @@ const f = {
144
164
  }
145
165
  }
146
166
  })
147
- }, K = s(
148
- ({ children: t, className: e, hideBelow: a, align: r = "start", ...n }, o) => /* @__PURE__ */ l(
149
- "td",
150
- {
151
- ref: o,
152
- className: f.root({ hideBelow: a, className: e }),
153
- ...n,
154
- children: /* @__PURE__ */ l("div", { className: f.inner({ align: r }), children: t })
155
- }
156
- )
167
+ }, J = ({
168
+ children: t,
169
+ className: e,
170
+ hideBelow: a,
171
+ align: l = "start",
172
+ ref: r,
173
+ ...s
174
+ }) => /* @__PURE__ */ n(
175
+ "td",
176
+ {
177
+ ref: r,
178
+ className: p.root({ hideBelow: a, className: e }),
179
+ ...s,
180
+ children: /* @__PURE__ */ n("div", { className: p.inner({ align: l }), children: t })
181
+ }
157
182
  );
158
- K.displayName = "TableCell";
159
- const P = i("flex items-center gap-12 truncate", {
183
+ J.displayName = "TableCell";
184
+ const K = o("flex items-center gap-12 truncate", {
160
185
  variants: {
161
186
  align: {
162
187
  start: "text-start",
163
188
  end: "text-end"
164
189
  }
165
190
  }
166
- }), U = s(
167
- ({
168
- className: t,
169
- align: e = "start",
170
- leadingContent: a,
171
- title: r,
172
- description: n,
173
- ...o
174
- }, d) => /* @__PURE__ */ u(
175
- "div",
176
- {
177
- ref: d,
178
- className: P({ align: e, className: t }),
179
- ...o,
180
- children: [
181
- /* @__PURE__ */ l("div", { children: a }),
182
- /* @__PURE__ */ u("div", { className: "flex flex-col gap-4 truncate", children: [
183
- /* @__PURE__ */ l("div", { className: "truncate body-2 text-base", children: r }),
184
- /* @__PURE__ */ l("div", { className: "truncate body-3 text-muted", children: n })
185
- ] })
186
- ]
187
- }
188
- )
191
+ }), P = ({
192
+ className: t,
193
+ align: e = "start",
194
+ leadingContent: a,
195
+ title: l,
196
+ description: r,
197
+ ref: s,
198
+ ...i
199
+ }) => /* @__PURE__ */ m(
200
+ "div",
201
+ {
202
+ ref: s,
203
+ className: K({ align: e, className: t }),
204
+ ...i,
205
+ children: [
206
+ /* @__PURE__ */ n("div", { children: a }),
207
+ /* @__PURE__ */ m("div", { className: "flex flex-col gap-4 truncate", children: [
208
+ /* @__PURE__ */ n("div", { className: "truncate body-2 text-base", children: l }),
209
+ /* @__PURE__ */ n("div", { className: "truncate body-3 text-muted", children: r })
210
+ ] })
211
+ ]
212
+ }
189
213
  );
190
- U.displayName = "TableCellContent";
191
- const v = {
192
- root: i("group h-40 truncate p-12 body-3 text-base", {
214
+ P.displayName = "TableCellContent";
215
+ const f = {
216
+ root: o("group h-40 truncate p-12 body-3 text-base", {
193
217
  variants: {
194
218
  hideBelow: {
195
219
  xs: "hidden xs:table-cell",
@@ -200,7 +224,7 @@ const v = {
200
224
  }
201
225
  }
202
226
  }),
203
- content: i("flex min-w-0 items-center gap-4 truncate", {
227
+ content: o("flex min-w-0 items-center gap-4 truncate", {
204
228
  variants: {
205
229
  align: {
206
230
  start: "text-start justify-start",
@@ -208,107 +232,123 @@ const v = {
208
232
  }
209
233
  }
210
234
  }),
211
- trailingContent: i(
235
+ trailingContent: o(
212
236
  "flex items-center justify-center opacity-0 group-hover:opacity-100"
213
237
  )
214
- }, E = s(
215
- ({
216
- children: t,
217
- className: e,
218
- scope: a = "col",
219
- hideBelow: r,
220
- align: n = "start",
221
- trailingContent: o,
222
- ...d
223
- }, m) => /* @__PURE__ */ l(
224
- "th",
225
- {
226
- ref: m,
227
- scope: a,
228
- className: v.root({ hideBelow: r, className: e }),
229
- ...d,
230
- children: /* @__PURE__ */ l("div", { className: "min-w-0", children: /* @__PURE__ */ u("div", { className: v.content({ align: n }), children: [
231
- /* @__PURE__ */ l("span", { className: c("truncate", n === "end" && "order-1"), children: t }),
232
- /* @__PURE__ */ l("div", { className: "flex items-center justify-center opacity-0 group-hover:opacity-100", children: o })
233
- ] }) })
234
- }
235
- )
238
+ }, U = ({
239
+ children: t,
240
+ className: e,
241
+ scope: a = "col",
242
+ hideBelow: l,
243
+ align: r = "start",
244
+ trailingContent: s,
245
+ ref: i,
246
+ ...d
247
+ }) => /* @__PURE__ */ n(
248
+ "th",
249
+ {
250
+ ref: i,
251
+ scope: a,
252
+ className: f.root({ hideBelow: l, className: e }),
253
+ ...d,
254
+ children: /* @__PURE__ */ n("div", { className: "min-w-0", children: /* @__PURE__ */ m("div", { className: f.content({ align: r }), children: [
255
+ /* @__PURE__ */ n("span", { className: c("truncate", r === "end" && "order-1"), children: t }),
256
+ /* @__PURE__ */ n("div", { className: "flex items-center justify-center opacity-0 group-hover:opacity-100", children: s })
257
+ ] }) })
258
+ }
236
259
  );
237
- E.displayName = "TableHeaderCell";
238
- const F = s(
239
- ({ children: t, className: e, ...a }, r) => /* @__PURE__ */ l(
240
- "div",
241
- {
242
- ref: r,
243
- className: c("flex items-center gap-8 py-12", e),
244
- ...a,
245
- children: t
246
- }
247
- )
260
+ U.displayName = "TableHeaderCell";
261
+ const E = ({
262
+ children: t,
263
+ className: e,
264
+ ref: a,
265
+ ...l
266
+ }) => /* @__PURE__ */ n(
267
+ "div",
268
+ {
269
+ ref: a,
270
+ className: c("flex items-center gap-8 py-12", e),
271
+ ...l,
272
+ children: t
273
+ }
248
274
  );
249
- F.displayName = "TableActionBar";
250
- const O = s(({ children: t, className: e, ...a }, r) => /* @__PURE__ */ l(
275
+ E.displayName = "TableActionBar";
276
+ const F = ({
277
+ children: t,
278
+ className: e,
279
+ ref: a,
280
+ ...l
281
+ }) => /* @__PURE__ */ n(
251
282
  "div",
252
283
  {
253
- ref: r,
284
+ ref: a,
254
285
  className: c("flex items-center gap-8", e),
255
- ...a,
286
+ ...l,
256
287
  children: t
257
288
  }
258
- ));
259
- O.displayName = "TableActionBarLeading";
260
- const Q = s(({ children: t, className: e, ...a }, r) => /* @__PURE__ */ l(
289
+ );
290
+ F.displayName = "TableActionBarLeading";
291
+ const O = ({
292
+ children: t,
293
+ className: e,
294
+ ref: a,
295
+ ...l
296
+ }) => /* @__PURE__ */ n(
261
297
  "div",
262
298
  {
263
- ref: r,
299
+ ref: a,
264
300
  className: c("ml-auto flex items-center gap-8", e),
265
- ...a,
301
+ ...l,
266
302
  children: t
267
303
  }
268
- ));
269
- Q.displayName = "TableActionBarTrailing";
270
- const W = s(
271
- ({ className: t, ...e }, a) => {
272
- const { loading: r } = b({
273
- consumerName: "TableLoadingRow",
274
- contextRequired: !0
275
- });
276
- return r ? /* @__PURE__ */ l(
277
- "div",
278
- {
279
- ...e,
280
- ref: a,
281
- className: c(
282
- "flex h-80 w-full items-center justify-center p-12",
283
- t
284
- ),
285
- children: /* @__PURE__ */ l(w, { appearance: "loader", size: 48 })
286
- }
287
- ) : null;
288
- }
289
304
  );
290
- W.displayName = "TableLoadingRow";
291
- const X = s(
292
- ({ className: t, ...e }, a) => /* @__PURE__ */ l(
293
- A,
305
+ O.displayName = "TableActionBarTrailing";
306
+ const Q = ({
307
+ className: t,
308
+ ref: e,
309
+ ...a
310
+ }) => {
311
+ const { loading: l } = u({
312
+ consumerName: "TableLoadingRow",
313
+ contextRequired: !0
314
+ });
315
+ return l ? /* @__PURE__ */ n(
316
+ "div",
294
317
  {
295
- ...e,
296
- iconType: "filled",
297
- className: t,
298
- ref: a,
299
- children: /* @__PURE__ */ l(R, { size: 20 })
318
+ ...a,
319
+ ref: e,
320
+ className: c(
321
+ "flex h-80 w-full items-center justify-center p-12",
322
+ t
323
+ ),
324
+ children: /* @__PURE__ */ n(g, { appearance: "loader", size: 48 })
300
325
  }
301
- )
326
+ ) : null;
327
+ };
328
+ Q.displayName = "TableLoadingRow";
329
+ const W = ({
330
+ className: t,
331
+ ref: e,
332
+ ...a
333
+ }) => /* @__PURE__ */ n(
334
+ H,
335
+ {
336
+ ...a,
337
+ iconType: "filled",
338
+ className: t,
339
+ ref: e,
340
+ children: /* @__PURE__ */ n(w, { size: 20 })
341
+ }
302
342
  );
303
- X.displayName = "TableInfoIcon";
304
- const Y = {
305
- asc: H,
306
- desc: j,
307
- idle: C
308
- }, x = {
309
- root: i(
343
+ W.displayName = "TableInfoIcon";
344
+ const X = {
345
+ asc: j,
346
+ desc: C,
347
+ idle: B
348
+ }, v = {
349
+ root: o(
310
350
  [
311
- "group flex min-w-0 cursor-pointer items-center gap-4",
351
+ "flex min-w-0 cursor-pointer items-center gap-4",
312
352
  "rounded-xs focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-focus"
313
353
  ],
314
354
  {
@@ -320,7 +360,7 @@ const Y = {
320
360
  }
321
361
  }
322
362
  ),
323
- icon: i("", {
363
+ icon: o("", {
324
364
  variants: {
325
365
  active: {
326
366
  true: "opacity-100",
@@ -328,63 +368,62 @@ const Y = {
328
368
  }
329
369
  }
330
370
  })
331
- }, Z = s(
332
- ({
333
- children: t,
334
- sortDirection: e,
335
- align: a = "start",
336
- onToggleSort: r,
337
- className: n,
338
- onClick: o,
339
- ...d
340
- }, m) => {
341
- const { t: p } = B(), h = Y[e || "idle"], y = {
342
- asc: p("table.ascAriaLabel"),
343
- desc: p("table.descAriaLabel")
344
- };
345
- return /* @__PURE__ */ u(
346
- "button",
347
- {
348
- ...d,
349
- ref: m,
350
- type: "button",
351
- className: x.root({ align: a, className: n }),
352
- "aria-label": e ? y[e] : void 0,
353
- onClick: (N) => {
354
- o == null || o(N), r == null || r(e === "asc" ? "desc" : "asc");
355
- },
356
- children: [
357
- /* @__PURE__ */ l("span", { className: "min-w-0 truncate", children: t }),
358
- /* @__PURE__ */ l(
359
- h,
360
- {
361
- size: 20,
362
- className: x.icon({
363
- active: !!e
364
- })
365
- }
366
- )
367
- ]
368
- }
369
- );
370
- }
371
- );
372
- Z.displayName = "TableSortButton";
371
+ }, Y = ({
372
+ children: t,
373
+ sortDirection: e,
374
+ align: a = "start",
375
+ onToggleSort: l,
376
+ className: r,
377
+ onClick: s,
378
+ ref: i,
379
+ ...d
380
+ }) => {
381
+ const { t: b } = R(), x = X[e || "idle"], h = {
382
+ asc: b("table.ascAriaLabel"),
383
+ desc: b("table.descAriaLabel")
384
+ };
385
+ return /* @__PURE__ */ m(
386
+ "button",
387
+ {
388
+ ...d,
389
+ ref: i,
390
+ type: "button",
391
+ className: v.root({ align: a, className: r }),
392
+ "aria-label": e ? h[e] : void 0,
393
+ onClick: (y) => {
394
+ s == null || s(y), l == null || l(e === "asc" ? "desc" : "asc");
395
+ },
396
+ children: [
397
+ /* @__PURE__ */ n("span", { className: "min-w-0 truncate", children: t }),
398
+ /* @__PURE__ */ n(
399
+ x,
400
+ {
401
+ size: 20,
402
+ className: v.icon({
403
+ active: !!e
404
+ })
405
+ }
406
+ )
407
+ ]
408
+ }
409
+ );
410
+ };
411
+ Y.displayName = "TableSortButton";
373
412
  export {
374
- S as Table,
375
- F as TableActionBar,
376
- O as TableActionBarLeading,
377
- Q as TableActionBarTrailing,
378
- z as TableBody,
379
- K as TableCell,
380
- U as TableCellContent,
381
- J as TableGroupHeaderRow,
382
- q as TableHeader,
383
- E as TableHeaderCell,
384
- k as TableHeaderRow,
385
- X as TableInfoIcon,
386
- W as TableLoadingRow,
387
- V as TableRoot,
388
- G as TableRow,
389
- Z as TableSortButton
413
+ V as Table,
414
+ E as TableActionBar,
415
+ F as TableActionBarLeading,
416
+ O as TableActionBarTrailing,
417
+ q as TableBody,
418
+ J as TableCell,
419
+ P as TableCellContent,
420
+ k as TableGroupHeaderRow,
421
+ S as TableHeader,
422
+ U as TableHeaderCell,
423
+ M as TableHeaderRow,
424
+ W as TableInfoIcon,
425
+ Q as TableLoadingRow,
426
+ L as TableRoot,
427
+ z as TableRow,
428
+ Y as TableSortButton
390
429
  };