@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.
- package/ai-rules/RULES.md +1 -0
- package/dist/index.js +134 -128
- package/dist/lib/Components/Button/BaseButton.js +9 -9
- package/dist/lib/Components/CardButton/CardButton.js +12 -12
- package/dist/lib/Components/DataTable/DataTable.d.ts +39 -0
- package/dist/lib/Components/DataTable/DataTable.d.ts.map +1 -0
- package/dist/lib/Components/DataTable/DataTable.js +195 -0
- package/dist/lib/Components/DataTable/index.d.ts +4 -0
- package/dist/lib/Components/DataTable/index.d.ts.map +1 -0
- package/dist/lib/Components/DataTable/types.d.ts +111 -0
- package/dist/lib/Components/DataTable/types.d.ts.map +1 -0
- package/dist/lib/Components/DataTable/useLumenDataTable/index.d.ts +2 -0
- package/dist/lib/Components/DataTable/useLumenDataTable/index.d.ts.map +1 -0
- package/dist/lib/Components/DataTable/useLumenDataTable/useLumenDataTable.d.ts +38 -0
- package/dist/lib/Components/DataTable/useLumenDataTable/useLumenDataTable.d.ts.map +1 -0
- package/dist/lib/Components/DataTable/useLumenDataTable/useLumenDataTable.js +10 -0
- package/dist/lib/Components/Skeleton/Skeleton.d.ts +4 -1
- package/dist/lib/Components/Skeleton/Skeleton.d.ts.map +1 -1
- package/dist/lib/Components/Skeleton/Skeleton.js +84 -98
- package/dist/lib/Components/Skeleton/types.d.ts +3 -3
- package/dist/lib/Components/Skeleton/types.d.ts.map +1 -1
- package/dist/lib/Components/Spot/Spot.d.ts +4 -1
- package/dist/lib/Components/Spot/Spot.d.ts.map +1 -1
- package/dist/lib/Components/Spot/Spot.js +23 -23
- package/dist/lib/Components/Spot/types.d.ts +2 -2
- package/dist/lib/Components/Spot/types.d.ts.map +1 -1
- package/dist/lib/Components/Table/Table.d.ts +65 -81
- package/dist/lib/Components/Table/Table.d.ts.map +1 -1
- package/dist/lib/Components/Table/Table.js +306 -267
- package/dist/lib/Components/Table/types.d.ts +17 -17
- package/dist/lib/Components/Table/types.d.ts.map +1 -1
- package/dist/lib/Components/index.d.ts +1 -0
- package/dist/lib/Components/index.d.ts.map +1 -1
- package/dist/libs/utils-shared/dist/index.js +59 -59
- package/dist/package.json +2 -2
- package/package.json +2 -2
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { createSafeContext as
|
|
3
|
-
import { cva as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
|
|
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
|
-
),
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
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
|
-
...
|
|
54
|
-
|
|
55
|
-
|
|
38
|
+
...i,
|
|
39
|
+
ref: s,
|
|
40
|
+
className: I({ appearance: e, className: a }),
|
|
41
|
+
onScroll: d,
|
|
56
42
|
children: t
|
|
57
43
|
}
|
|
58
|
-
)
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
const
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
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
|
-
|
|
67
|
-
const
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
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
|
-
|
|
84
|
-
const
|
|
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
|
-
}),
|
|
92
|
-
|
|
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__ */
|
|
110
|
+
return /* @__PURE__ */ n(
|
|
97
111
|
"tr",
|
|
98
112
|
{
|
|
99
|
-
ref:
|
|
100
|
-
className:
|
|
101
|
-
...
|
|
113
|
+
ref: a,
|
|
114
|
+
className: G({ appearance: r, className: e }),
|
|
115
|
+
...l,
|
|
102
116
|
children: t
|
|
103
117
|
}
|
|
104
118
|
);
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
const
|
|
108
|
-
|
|
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__ */
|
|
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
|
-
|
|
137
|
+
s === "no-background" && "rounded-sm"
|
|
118
138
|
),
|
|
119
139
|
children: t
|
|
120
140
|
}
|
|
121
141
|
) }) });
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
const
|
|
125
|
-
root:
|
|
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:
|
|
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
|
-
},
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
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
|
-
|
|
159
|
-
const
|
|
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
|
-
}),
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
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
|
-
|
|
191
|
-
const
|
|
192
|
-
root:
|
|
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:
|
|
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:
|
|
235
|
+
trailingContent: o(
|
|
212
236
|
"flex items-center justify-center opacity-0 group-hover:opacity-100"
|
|
213
237
|
)
|
|
214
|
-
},
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
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
|
-
|
|
238
|
-
const
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
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
|
-
|
|
250
|
-
const
|
|
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:
|
|
284
|
+
ref: a,
|
|
254
285
|
className: c("flex items-center gap-8", e),
|
|
255
|
-
...
|
|
286
|
+
...l,
|
|
256
287
|
children: t
|
|
257
288
|
}
|
|
258
|
-
)
|
|
259
|
-
|
|
260
|
-
const
|
|
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:
|
|
299
|
+
ref: a,
|
|
264
300
|
className: c("ml-auto flex items-center gap-8", e),
|
|
265
|
-
...
|
|
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
|
-
|
|
291
|
-
const
|
|
292
|
-
|
|
293
|
-
|
|
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
|
-
...
|
|
296
|
-
|
|
297
|
-
className:
|
|
298
|
-
|
|
299
|
-
|
|
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
|
-
|
|
304
|
-
const
|
|
305
|
-
asc:
|
|
306
|
-
desc:
|
|
307
|
-
idle:
|
|
308
|
-
},
|
|
309
|
-
root:
|
|
343
|
+
W.displayName = "TableInfoIcon";
|
|
344
|
+
const X = {
|
|
345
|
+
asc: j,
|
|
346
|
+
desc: C,
|
|
347
|
+
idle: B
|
|
348
|
+
}, v = {
|
|
349
|
+
root: o(
|
|
310
350
|
[
|
|
311
|
-
"
|
|
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:
|
|
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
|
-
},
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
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
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
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
|
};
|