@ledgerhq/lumen-ui-react 0.1.46 → 0.1.48
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/dist/index.js +130 -122
- package/dist/lib/Components/AmountInput/AmountInput.js +2 -2
- package/dist/lib/Components/BaseInput/BaseInput.d.ts +1 -1
- package/dist/lib/Components/BaseInput/BaseInput.d.ts.map +1 -1
- package/dist/lib/Components/BaseInput/BaseInput.js +119 -93
- package/dist/lib/Components/BaseInput/types.d.ts +24 -0
- package/dist/lib/Components/BaseInput/types.d.ts.map +1 -1
- package/dist/lib/Components/Card/Card.js +1 -1
- package/dist/lib/Components/CardButton/CardButton.js +1 -1
- package/dist/lib/Components/DescriptionItem/DescriptionItem.d.ts +1 -1
- package/dist/lib/Components/DescriptionItem/DescriptionItem.d.ts.map +1 -1
- package/dist/lib/Components/DescriptionItem/DescriptionItem.js +74 -48
- package/dist/lib/Components/DescriptionItem/types.d.ts +6 -0
- package/dist/lib/Components/DescriptionItem/types.d.ts.map +1 -1
- package/dist/lib/Components/Dialog/DialogHeader/DialogHeader.js +1 -1
- package/dist/lib/Components/Icon/Icon.js +8 -8
- package/dist/lib/Components/ListItem/ListItem.d.ts.map +1 -1
- package/dist/lib/Components/ListItem/ListItem.js +118 -68
- package/dist/lib/Components/ListItem/types.d.ts +11 -1
- package/dist/lib/Components/ListItem/types.d.ts.map +1 -1
- package/dist/lib/Components/Menu/Menu.d.ts +1 -1
- package/dist/lib/Components/Menu/Menu.d.ts.map +1 -1
- package/dist/lib/Components/Menu/Menu.js +79 -65
- package/dist/lib/Components/Menu/types.d.ts +6 -0
- package/dist/lib/Components/Menu/types.d.ts.map +1 -1
- package/dist/lib/Components/SearchInput/SearchInput.js +10 -10
- package/dist/lib/Components/SectionHeader/SectionHeader.d.ts +33 -0
- package/dist/lib/Components/SectionHeader/SectionHeader.d.ts.map +1 -0
- package/dist/lib/Components/SectionHeader/SectionHeader.js +56 -0
- package/dist/lib/Components/SectionHeader/index.d.ts +3 -0
- package/dist/lib/Components/SectionHeader/index.d.ts.map +1 -0
- package/dist/lib/Components/SectionHeader/types.d.ts +26 -0
- package/dist/lib/Components/SectionHeader/types.d.ts.map +1 -0
- package/dist/lib/Components/SideBar/SideBar.js +2 -2
- package/dist/lib/Components/Spot/Spot.js +5 -5
- package/dist/lib/Components/Table/Table.d.ts +24 -3
- package/dist/lib/Components/Table/Table.d.ts.map +1 -1
- package/dist/lib/Components/Table/Table.js +274 -186
- package/dist/lib/Components/Table/types.d.ts +63 -28
- package/dist/lib/Components/Table/types.d.ts.map +1 -1
- package/dist/lib/Components/TileButton/TileButton.d.ts +1 -1
- package/dist/lib/Components/TileButton/TileButton.d.ts.map +1 -1
- package/dist/lib/Components/TileButton/TileButton.js +52 -39
- package/dist/lib/Components/TileButton/types.d.ts +5 -0
- package/dist/lib/Components/TileButton/types.d.ts.map +1 -1
- package/dist/lib/Components/Trend/Trend.js +2 -2
- package/dist/lib/Components/index.d.ts +1 -0
- package/dist/lib/Components/index.d.ts.map +1 -1
- package/dist/lib/Symbols/Icons/Atm.d.ts +29 -0
- package/dist/lib/Symbols/Icons/Atm.d.ts.map +1 -0
- package/dist/lib/Symbols/Icons/Atm.js +28 -0
- package/dist/lib/Symbols/Icons/Cutlery.d.ts +29 -0
- package/dist/lib/Symbols/Icons/Cutlery.d.ts.map +1 -0
- package/dist/lib/Symbols/Icons/Cutlery.js +28 -0
- package/dist/lib/Symbols/Icons/GameControler.d.ts +29 -0
- package/dist/lib/Symbols/Icons/GameControler.d.ts.map +1 -0
- package/dist/lib/Symbols/Icons/GameControler.js +28 -0
- package/dist/lib/Symbols/Icons/Upload.d.ts +29 -0
- package/dist/lib/Symbols/Icons/Upload.d.ts.map +1 -0
- package/dist/lib/Symbols/Icons/Upload.js +28 -0
- package/dist/lib/Symbols/index.d.ts +4 -0
- package/dist/lib/Symbols/index.d.ts.map +1 -1
- package/dist/lib/Symbols/index.js +514 -506
- package/dist/package.json +3 -3
- package/package.json +3 -3
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { createSafeContext as
|
|
3
|
-
import { cva as
|
|
4
|
-
import { useThrottledScrollBottom as
|
|
5
|
-
import { Spot as
|
|
6
|
-
import { Information as
|
|
7
|
-
import { useCommonTranslation as
|
|
8
|
-
import { ChevronUpDown as
|
|
9
|
-
import { ChevronDescending as
|
|
10
|
-
import { ChevronAscending as
|
|
11
|
-
import { InteractiveIcon as
|
|
12
|
-
const [
|
|
1
|
+
import { jsx as l, jsxs as v } from "react/jsx-runtime";
|
|
2
|
+
import { createSafeContext as h, cn as s } from "../../../libs/utils-shared/dist/index.js";
|
|
3
|
+
import { cva as c } from "class-variance-authority";
|
|
4
|
+
import { useThrottledScrollBottom as N } from "./utils/useThrottledScrollBottom.js";
|
|
5
|
+
import { Spot as w } from "../Spot/Spot.js";
|
|
6
|
+
import { Information as y } 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 j } from "../../Symbols/Icons/ChevronDescending.js";
|
|
10
|
+
import { ChevronAscending as I } from "../../Symbols/Icons/ChevronAscending.js";
|
|
11
|
+
import { InteractiveIcon as A } from "../InteractiveIcon/InteractiveIcon.js";
|
|
12
|
+
const [k, u] = h("Table"), q = c(
|
|
13
13
|
"relative scrollbar-none w-full max-w-full border-collapse overflow-x-auto rounded-lg",
|
|
14
14
|
{
|
|
15
15
|
variants: {
|
|
@@ -19,43 +19,43 @@ const [H, u] = N("Table"), I = s(
|
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
|
-
),
|
|
23
|
-
children:
|
|
22
|
+
), W = ({
|
|
23
|
+
children: n,
|
|
24
24
|
appearance: e = "no-background",
|
|
25
25
|
className: t,
|
|
26
|
-
onScrollBottom:
|
|
27
|
-
loading:
|
|
26
|
+
onScrollBottom: a,
|
|
27
|
+
loading: r,
|
|
28
28
|
ref: o,
|
|
29
29
|
...i
|
|
30
30
|
}) => {
|
|
31
|
-
const d =
|
|
32
|
-
onScrollBottom:
|
|
33
|
-
loading:
|
|
31
|
+
const d = N({
|
|
32
|
+
onScrollBottom: a,
|
|
33
|
+
loading: r
|
|
34
34
|
});
|
|
35
|
-
return /* @__PURE__ */
|
|
35
|
+
return /* @__PURE__ */ l(k, { value: { appearance: e, loading: r }, children: /* @__PURE__ */ l(
|
|
36
36
|
"div",
|
|
37
37
|
{
|
|
38
38
|
...i,
|
|
39
39
|
ref: o,
|
|
40
|
-
className:
|
|
40
|
+
className: q({ appearance: e, className: t }),
|
|
41
41
|
onScroll: d,
|
|
42
|
-
children:
|
|
42
|
+
children: n
|
|
43
43
|
}
|
|
44
44
|
) });
|
|
45
|
-
},
|
|
45
|
+
}, X = ({ children: n, className: e, ref: t, ...a }) => /* @__PURE__ */ l(
|
|
46
46
|
"table",
|
|
47
47
|
{
|
|
48
|
-
...
|
|
49
|
-
className:
|
|
48
|
+
...a,
|
|
49
|
+
className: s("w-full max-w-full table-fixed", e),
|
|
50
50
|
ref: t,
|
|
51
|
-
children:
|
|
51
|
+
children: n
|
|
52
52
|
}
|
|
53
|
-
),
|
|
54
|
-
children:
|
|
53
|
+
), Y = ({
|
|
54
|
+
children: n,
|
|
55
55
|
className: e,
|
|
56
56
|
ref: t,
|
|
57
|
-
...
|
|
58
|
-
}) => /* @__PURE__ */
|
|
57
|
+
...a
|
|
58
|
+
}) => /* @__PURE__ */ l("colgroup", { ref: t, className: e, ...a, children: n }), H = c("", {
|
|
59
59
|
variants: {
|
|
60
60
|
hideBelow: {
|
|
61
61
|
xs: "hidden xs:table-column",
|
|
@@ -65,49 +65,49 @@ const [H, u] = N("Table"), I = s(
|
|
|
65
65
|
xl: "hidden xl:table-column"
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
|
-
}),
|
|
69
|
-
className:
|
|
68
|
+
}), Z = ({
|
|
69
|
+
className: n,
|
|
70
70
|
hideBelow: e,
|
|
71
71
|
ref: t,
|
|
72
|
-
...
|
|
73
|
-
}) => /* @__PURE__ */
|
|
72
|
+
...a
|
|
73
|
+
}) => /* @__PURE__ */ l(
|
|
74
74
|
"col",
|
|
75
75
|
{
|
|
76
76
|
ref: t,
|
|
77
|
-
className:
|
|
78
|
-
...
|
|
77
|
+
className: H({ hideBelow: e, className: n }),
|
|
78
|
+
...a
|
|
79
79
|
}
|
|
80
|
-
),
|
|
81
|
-
children:
|
|
80
|
+
), _ = ({
|
|
81
|
+
children: n,
|
|
82
82
|
className: e,
|
|
83
83
|
ref: t,
|
|
84
|
-
...
|
|
85
|
-
}) => /* @__PURE__ */
|
|
86
|
-
children:
|
|
84
|
+
...a
|
|
85
|
+
}) => /* @__PURE__ */ l("thead", { ref: t, className: e, ...a, children: n }), $ = ({
|
|
86
|
+
children: n,
|
|
87
87
|
className: e,
|
|
88
88
|
ref: t,
|
|
89
|
-
...
|
|
90
|
-
}) => /* @__PURE__ */
|
|
91
|
-
children:
|
|
89
|
+
...a
|
|
90
|
+
}) => /* @__PURE__ */ l("tbody", { ref: t, className: e, ...a, children: n }), ee = ({
|
|
91
|
+
children: n,
|
|
92
92
|
className: e,
|
|
93
93
|
clickable: t = !1,
|
|
94
|
-
onClick:
|
|
95
|
-
ref:
|
|
94
|
+
onClick: a,
|
|
95
|
+
ref: r,
|
|
96
96
|
...o
|
|
97
|
-
}) => /* @__PURE__ */
|
|
97
|
+
}) => /* @__PURE__ */ l(
|
|
98
98
|
"tr",
|
|
99
99
|
{
|
|
100
|
-
ref:
|
|
101
|
-
onClick:
|
|
100
|
+
ref: r,
|
|
101
|
+
onClick: a,
|
|
102
102
|
role: t ? "button" : void 0,
|
|
103
|
-
className:
|
|
103
|
+
className: s(
|
|
104
104
|
t && "cursor-pointer outline-none select-none hover:bg-base-transparent-hover active:bg-base-transparent-pressed",
|
|
105
105
|
e
|
|
106
106
|
),
|
|
107
107
|
...o,
|
|
108
|
-
children:
|
|
108
|
+
children: n
|
|
109
109
|
}
|
|
110
|
-
),
|
|
110
|
+
), S = c("", {
|
|
111
111
|
variants: {
|
|
112
112
|
appearance: {
|
|
113
113
|
"no-background": "bg-canvas",
|
|
@@ -118,49 +118,49 @@ const [H, u] = N("Table"), I = s(
|
|
|
118
118
|
false: ""
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
|
-
}),
|
|
122
|
-
children:
|
|
121
|
+
}), te = ({
|
|
122
|
+
children: n,
|
|
123
123
|
className: e,
|
|
124
124
|
stickyHeader: t = !0,
|
|
125
|
-
ref:
|
|
126
|
-
...
|
|
125
|
+
ref: a,
|
|
126
|
+
...r
|
|
127
127
|
}) => {
|
|
128
128
|
const { appearance: o } = u({
|
|
129
129
|
consumerName: "TableHeaderRow",
|
|
130
130
|
contextRequired: !0
|
|
131
131
|
});
|
|
132
|
-
return /* @__PURE__ */
|
|
132
|
+
return /* @__PURE__ */ l(
|
|
133
133
|
"tr",
|
|
134
134
|
{
|
|
135
|
-
ref:
|
|
136
|
-
className:
|
|
137
|
-
...
|
|
138
|
-
children:
|
|
135
|
+
ref: a,
|
|
136
|
+
className: S({ appearance: o, stickyHeader: t, className: e }),
|
|
137
|
+
...r,
|
|
138
|
+
children: n
|
|
139
139
|
}
|
|
140
140
|
);
|
|
141
|
-
},
|
|
142
|
-
children:
|
|
141
|
+
}, ne = ({
|
|
142
|
+
children: n,
|
|
143
143
|
className: e,
|
|
144
144
|
colSpan: t = 1,
|
|
145
|
-
ref:
|
|
146
|
-
...
|
|
145
|
+
ref: a,
|
|
146
|
+
...r
|
|
147
147
|
}) => {
|
|
148
148
|
const { appearance: o } = u({
|
|
149
149
|
consumerName: "TableGroupHeaderRow",
|
|
150
150
|
contextRequired: !0
|
|
151
151
|
});
|
|
152
|
-
return /* @__PURE__ */
|
|
152
|
+
return /* @__PURE__ */ l("tr", { ref: a, className: s("h-40", e), ...r, children: /* @__PURE__ */ l("td", { colSpan: t, children: /* @__PURE__ */ l(
|
|
153
153
|
"div",
|
|
154
154
|
{
|
|
155
|
-
className:
|
|
155
|
+
className: s(
|
|
156
156
|
"flex h-32 w-full items-center bg-muted px-12 body-3 text-base",
|
|
157
157
|
o === "no-background" && "rounded-sm"
|
|
158
158
|
),
|
|
159
|
-
children:
|
|
159
|
+
children: n
|
|
160
160
|
}
|
|
161
161
|
) }) });
|
|
162
162
|
}, p = {
|
|
163
|
-
root:
|
|
163
|
+
root: c(
|
|
164
164
|
"h-64 truncate p-12 body-3 text-base first:rounded-l-md last:rounded-r-md",
|
|
165
165
|
{
|
|
166
166
|
variants: {
|
|
@@ -174,60 +174,144 @@ const [H, u] = N("Table"), I = s(
|
|
|
174
174
|
}
|
|
175
175
|
}
|
|
176
176
|
),
|
|
177
|
-
inner:
|
|
177
|
+
inner: c("flex flex-1", {
|
|
178
178
|
variants: {
|
|
179
179
|
align: {
|
|
180
|
-
start: "
|
|
181
|
-
end: "
|
|
180
|
+
start: "justify-start text-start",
|
|
181
|
+
end: "justify-end text-end"
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
184
|
})
|
|
185
|
-
},
|
|
186
|
-
children:
|
|
185
|
+
}, ae = ({
|
|
186
|
+
children: n,
|
|
187
187
|
className: e,
|
|
188
188
|
hideBelow: t,
|
|
189
|
-
align:
|
|
190
|
-
ref:
|
|
189
|
+
align: a = "start",
|
|
190
|
+
ref: r,
|
|
191
191
|
...o
|
|
192
|
-
}) => /* @__PURE__ */
|
|
192
|
+
}) => /* @__PURE__ */ l(
|
|
193
193
|
"td",
|
|
194
194
|
{
|
|
195
|
-
ref:
|
|
195
|
+
ref: r,
|
|
196
196
|
className: p.root({ hideBelow: t, className: e }),
|
|
197
197
|
...o,
|
|
198
|
-
children: /* @__PURE__ */
|
|
198
|
+
children: /* @__PURE__ */ l("div", { className: p.inner({ align: a }), children: n })
|
|
199
199
|
}
|
|
200
|
-
),
|
|
200
|
+
), [V, m] = h("TableCellItem", { align: "start" }), L = c("flex min-w-0 items-center gap-12", {
|
|
201
201
|
variants: {
|
|
202
202
|
align: {
|
|
203
203
|
start: "text-start",
|
|
204
204
|
end: "text-end"
|
|
205
205
|
}
|
|
206
206
|
}
|
|
207
|
-
}),
|
|
208
|
-
className:
|
|
207
|
+
}), le = ({
|
|
208
|
+
className: n,
|
|
209
209
|
align: e = "start",
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
...i
|
|
215
|
-
}) => /* @__PURE__ */ m(
|
|
210
|
+
children: t,
|
|
211
|
+
ref: a,
|
|
212
|
+
...r
|
|
213
|
+
}) => /* @__PURE__ */ l(V, { value: { align: e }, children: /* @__PURE__ */ l(
|
|
216
214
|
"div",
|
|
217
215
|
{
|
|
218
|
-
ref:
|
|
219
|
-
className:
|
|
220
|
-
...
|
|
221
|
-
children:
|
|
222
|
-
t && /* @__PURE__ */ r("div", { className: "shrink-0", children: t }),
|
|
223
|
-
/* @__PURE__ */ m("div", { className: "flex min-w-0 flex-col gap-4", children: [
|
|
224
|
-
/* @__PURE__ */ r("div", { className: "shrink-0 body-2 text-base", children: n }),
|
|
225
|
-
/* @__PURE__ */ r("div", { className: "truncate body-3 text-muted", children: l })
|
|
226
|
-
] })
|
|
227
|
-
]
|
|
216
|
+
ref: a,
|
|
217
|
+
className: L({ align: e, className: n }),
|
|
218
|
+
...r,
|
|
219
|
+
children: t
|
|
228
220
|
}
|
|
229
|
-
),
|
|
230
|
-
|
|
221
|
+
) }), re = ({
|
|
222
|
+
className: n,
|
|
223
|
+
children: e,
|
|
224
|
+
ref: t,
|
|
225
|
+
...a
|
|
226
|
+
}) => {
|
|
227
|
+
const { align: r } = m({
|
|
228
|
+
consumerName: "TableCellContent",
|
|
229
|
+
contextRequired: !1
|
|
230
|
+
});
|
|
231
|
+
return /* @__PURE__ */ l(
|
|
232
|
+
"div",
|
|
233
|
+
{
|
|
234
|
+
ref: t,
|
|
235
|
+
className: s(
|
|
236
|
+
"flex min-w-0 flex-col gap-4",
|
|
237
|
+
r === "end" && "items-end text-end",
|
|
238
|
+
n
|
|
239
|
+
),
|
|
240
|
+
...a,
|
|
241
|
+
children: e
|
|
242
|
+
}
|
|
243
|
+
);
|
|
244
|
+
}, oe = ({
|
|
245
|
+
className: n,
|
|
246
|
+
children: e,
|
|
247
|
+
ref: t,
|
|
248
|
+
...a
|
|
249
|
+
}) => {
|
|
250
|
+
const { align: r } = m({
|
|
251
|
+
consumerName: "TableCellContentTitle",
|
|
252
|
+
contextRequired: !1
|
|
253
|
+
});
|
|
254
|
+
return /* @__PURE__ */ l(
|
|
255
|
+
"div",
|
|
256
|
+
{
|
|
257
|
+
ref: t,
|
|
258
|
+
className: s(
|
|
259
|
+
"shrink-0 body-2 text-base",
|
|
260
|
+
r === "end" && "text-end",
|
|
261
|
+
n
|
|
262
|
+
),
|
|
263
|
+
...a,
|
|
264
|
+
children: e
|
|
265
|
+
}
|
|
266
|
+
);
|
|
267
|
+
}, se = ({
|
|
268
|
+
className: n,
|
|
269
|
+
children: e,
|
|
270
|
+
ref: t,
|
|
271
|
+
...a
|
|
272
|
+
}) => {
|
|
273
|
+
const { align: r } = m({
|
|
274
|
+
consumerName: "TableCellContentDescription",
|
|
275
|
+
contextRequired: !1
|
|
276
|
+
});
|
|
277
|
+
return /* @__PURE__ */ l(
|
|
278
|
+
"div",
|
|
279
|
+
{
|
|
280
|
+
ref: t,
|
|
281
|
+
className: s(
|
|
282
|
+
"truncate body-3 text-muted",
|
|
283
|
+
r === "end" && "text-end",
|
|
284
|
+
n
|
|
285
|
+
),
|
|
286
|
+
...a,
|
|
287
|
+
children: e
|
|
288
|
+
}
|
|
289
|
+
);
|
|
290
|
+
}, ce = ({
|
|
291
|
+
className: n,
|
|
292
|
+
children: e,
|
|
293
|
+
ref: t,
|
|
294
|
+
...a
|
|
295
|
+
}) => {
|
|
296
|
+
const { align: r } = m({
|
|
297
|
+
consumerName: "TableCellContentRow",
|
|
298
|
+
contextRequired: !1
|
|
299
|
+
});
|
|
300
|
+
return /* @__PURE__ */ l(
|
|
301
|
+
"div",
|
|
302
|
+
{
|
|
303
|
+
ref: t,
|
|
304
|
+
className: s(
|
|
305
|
+
"flex min-w-0 items-center gap-8",
|
|
306
|
+
r === "end" && "justify-end",
|
|
307
|
+
n
|
|
308
|
+
),
|
|
309
|
+
...a,
|
|
310
|
+
children: e
|
|
311
|
+
}
|
|
312
|
+
);
|
|
313
|
+
}, f = {
|
|
314
|
+
root: c("group h-40 truncate p-12 body-3 text-base", {
|
|
231
315
|
variants: {
|
|
232
316
|
hideBelow: {
|
|
233
317
|
xs: "hidden xs:table-cell",
|
|
@@ -238,118 +322,118 @@ const [H, u] = N("Table"), I = s(
|
|
|
238
322
|
}
|
|
239
323
|
}
|
|
240
324
|
}),
|
|
241
|
-
content:
|
|
325
|
+
content: c("flex min-w-0 items-center gap-4 truncate", {
|
|
242
326
|
variants: {
|
|
243
327
|
align: {
|
|
244
|
-
start: "
|
|
245
|
-
end: "
|
|
328
|
+
start: "justify-start text-start",
|
|
329
|
+
end: "justify-end text-end"
|
|
246
330
|
}
|
|
247
331
|
}
|
|
248
332
|
}),
|
|
249
|
-
trailingContent:
|
|
333
|
+
trailingContent: c(
|
|
250
334
|
"flex items-center justify-center opacity-0 group-hover:opacity-100"
|
|
251
335
|
)
|
|
252
|
-
},
|
|
253
|
-
children:
|
|
336
|
+
}, ie = ({
|
|
337
|
+
children: n,
|
|
254
338
|
className: e,
|
|
255
339
|
scope: t = "col",
|
|
256
|
-
hideBelow:
|
|
257
|
-
align:
|
|
340
|
+
hideBelow: a,
|
|
341
|
+
align: r = "start",
|
|
258
342
|
trailingContent: o,
|
|
259
343
|
ref: i,
|
|
260
344
|
...d
|
|
261
|
-
}) => /* @__PURE__ */
|
|
345
|
+
}) => /* @__PURE__ */ l(
|
|
262
346
|
"th",
|
|
263
347
|
{
|
|
264
348
|
ref: i,
|
|
265
349
|
scope: t,
|
|
266
|
-
className: f.root({ hideBelow:
|
|
350
|
+
className: f.root({ hideBelow: a, className: e }),
|
|
267
351
|
...d,
|
|
268
|
-
children: /* @__PURE__ */
|
|
269
|
-
/* @__PURE__ */
|
|
270
|
-
/* @__PURE__ */
|
|
352
|
+
children: /* @__PURE__ */ l("div", { className: "min-w-0", children: /* @__PURE__ */ v("div", { className: f.content({ align: r }), children: [
|
|
353
|
+
/* @__PURE__ */ l("span", { className: s("truncate", r === "end" && "order-1"), children: n }),
|
|
354
|
+
/* @__PURE__ */ l("div", { className: "flex items-center justify-center opacity-0 group-hover:opacity-100", children: o })
|
|
271
355
|
] }) })
|
|
272
356
|
}
|
|
273
|
-
),
|
|
274
|
-
children:
|
|
357
|
+
), de = ({
|
|
358
|
+
children: n,
|
|
275
359
|
className: e,
|
|
276
360
|
ref: t,
|
|
277
|
-
...
|
|
278
|
-
}) => /* @__PURE__ */
|
|
361
|
+
...a
|
|
362
|
+
}) => /* @__PURE__ */ l(
|
|
279
363
|
"div",
|
|
280
364
|
{
|
|
281
365
|
ref: t,
|
|
282
|
-
className:
|
|
283
|
-
...
|
|
284
|
-
children:
|
|
366
|
+
className: s("flex items-center gap-8 py-12", e),
|
|
367
|
+
...a,
|
|
368
|
+
children: n
|
|
285
369
|
}
|
|
286
|
-
),
|
|
287
|
-
children:
|
|
370
|
+
), me = ({
|
|
371
|
+
children: n,
|
|
288
372
|
className: e,
|
|
289
373
|
ref: t,
|
|
290
|
-
...
|
|
291
|
-
}) => /* @__PURE__ */
|
|
374
|
+
...a
|
|
375
|
+
}) => /* @__PURE__ */ l(
|
|
292
376
|
"div",
|
|
293
377
|
{
|
|
294
378
|
ref: t,
|
|
295
|
-
className:
|
|
296
|
-
...
|
|
297
|
-
children:
|
|
379
|
+
className: s("flex items-center gap-8", e),
|
|
380
|
+
...a,
|
|
381
|
+
children: n
|
|
298
382
|
}
|
|
299
|
-
),
|
|
300
|
-
children:
|
|
383
|
+
), ue = ({
|
|
384
|
+
children: n,
|
|
301
385
|
className: e,
|
|
302
386
|
ref: t,
|
|
303
|
-
...
|
|
304
|
-
}) => /* @__PURE__ */
|
|
387
|
+
...a
|
|
388
|
+
}) => /* @__PURE__ */ l(
|
|
305
389
|
"div",
|
|
306
390
|
{
|
|
307
391
|
ref: t,
|
|
308
|
-
className:
|
|
309
|
-
...
|
|
310
|
-
children:
|
|
392
|
+
className: s("ml-auto flex items-center gap-8", e),
|
|
393
|
+
...a,
|
|
394
|
+
children: n
|
|
311
395
|
}
|
|
312
|
-
),
|
|
313
|
-
className:
|
|
396
|
+
), be = ({
|
|
397
|
+
className: n,
|
|
314
398
|
ref: e,
|
|
315
399
|
...t
|
|
316
400
|
}) => {
|
|
317
|
-
const { loading:
|
|
401
|
+
const { loading: a } = u({
|
|
318
402
|
consumerName: "TableLoadingRow",
|
|
319
403
|
contextRequired: !0
|
|
320
404
|
});
|
|
321
|
-
return
|
|
405
|
+
return a ? /* @__PURE__ */ l(
|
|
322
406
|
"div",
|
|
323
407
|
{
|
|
324
408
|
...t,
|
|
325
409
|
ref: e,
|
|
326
|
-
className:
|
|
410
|
+
className: s(
|
|
327
411
|
"flex h-80 w-full items-center justify-center p-12",
|
|
328
|
-
|
|
412
|
+
n
|
|
329
413
|
),
|
|
330
|
-
children: /* @__PURE__ */
|
|
414
|
+
children: /* @__PURE__ */ l(w, { appearance: "loader", size: 48 })
|
|
331
415
|
}
|
|
332
416
|
) : null;
|
|
333
|
-
},
|
|
334
|
-
className:
|
|
417
|
+
}, pe = ({
|
|
418
|
+
className: n,
|
|
335
419
|
ref: e,
|
|
336
420
|
...t
|
|
337
|
-
}) => /* @__PURE__ */
|
|
338
|
-
|
|
421
|
+
}) => /* @__PURE__ */ l(
|
|
422
|
+
A,
|
|
339
423
|
{
|
|
340
424
|
...t,
|
|
341
425
|
iconType: "filled",
|
|
342
|
-
icon:
|
|
426
|
+
icon: y,
|
|
343
427
|
size: 20,
|
|
344
|
-
className:
|
|
428
|
+
className: n,
|
|
345
429
|
ref: e
|
|
346
430
|
}
|
|
347
|
-
),
|
|
348
|
-
asc:
|
|
349
|
-
desc:
|
|
350
|
-
idle:
|
|
351
|
-
},
|
|
352
|
-
root:
|
|
431
|
+
), z = {
|
|
432
|
+
asc: I,
|
|
433
|
+
desc: j,
|
|
434
|
+
idle: B
|
|
435
|
+
}, x = {
|
|
436
|
+
root: c(
|
|
353
437
|
[
|
|
354
438
|
"flex min-w-0 cursor-pointer items-center gap-4",
|
|
355
439
|
"rounded-xs focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-focus"
|
|
@@ -363,7 +447,7 @@ const [H, u] = N("Table"), I = s(
|
|
|
363
447
|
}
|
|
364
448
|
}
|
|
365
449
|
),
|
|
366
|
-
icon:
|
|
450
|
+
icon: c("", {
|
|
367
451
|
variants: {
|
|
368
452
|
active: {
|
|
369
453
|
true: "opacity-100",
|
|
@@ -371,38 +455,38 @@ const [H, u] = N("Table"), I = s(
|
|
|
371
455
|
}
|
|
372
456
|
}
|
|
373
457
|
})
|
|
374
|
-
},
|
|
375
|
-
children:
|
|
458
|
+
}, fe = ({
|
|
459
|
+
children: n,
|
|
376
460
|
sortDirection: e,
|
|
377
461
|
align: t = "start",
|
|
378
|
-
onToggleSort:
|
|
379
|
-
className:
|
|
462
|
+
onToggleSort: a,
|
|
463
|
+
className: r,
|
|
380
464
|
onClick: o,
|
|
381
465
|
ref: i,
|
|
382
466
|
...d
|
|
383
467
|
}) => {
|
|
384
|
-
const { t: b } =
|
|
468
|
+
const { t: b } = R(), g = z[e || "idle"], T = {
|
|
385
469
|
asc: b("components.table.ascAriaLabel"),
|
|
386
470
|
desc: b("components.table.descAriaLabel")
|
|
387
471
|
};
|
|
388
|
-
return /* @__PURE__ */
|
|
472
|
+
return /* @__PURE__ */ v(
|
|
389
473
|
"button",
|
|
390
474
|
{
|
|
391
475
|
...d,
|
|
392
476
|
ref: i,
|
|
393
477
|
type: "button",
|
|
394
|
-
className:
|
|
395
|
-
"aria-label": e ?
|
|
396
|
-
onClick: (
|
|
397
|
-
o?.(
|
|
478
|
+
className: x.root({ align: t, className: r }),
|
|
479
|
+
"aria-label": e ? T[e] : void 0,
|
|
480
|
+
onClick: (C) => {
|
|
481
|
+
o?.(C), a?.(e === "asc" ? "desc" : "asc");
|
|
398
482
|
},
|
|
399
483
|
children: [
|
|
400
|
-
/* @__PURE__ */
|
|
401
|
-
/* @__PURE__ */
|
|
402
|
-
|
|
484
|
+
/* @__PURE__ */ l("span", { className: "min-w-0 truncate", children: n }),
|
|
485
|
+
/* @__PURE__ */ l(
|
|
486
|
+
g,
|
|
403
487
|
{
|
|
404
488
|
size: 20,
|
|
405
|
-
className:
|
|
489
|
+
className: x.icon({
|
|
406
490
|
active: !!e
|
|
407
491
|
})
|
|
408
492
|
}
|
|
@@ -412,22 +496,26 @@ const [H, u] = N("Table"), I = s(
|
|
|
412
496
|
);
|
|
413
497
|
};
|
|
414
498
|
export {
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
499
|
+
X as Table,
|
|
500
|
+
de as TableActionBar,
|
|
501
|
+
me as TableActionBarLeading,
|
|
502
|
+
ue as TableActionBarTrailing,
|
|
503
|
+
$ as TableBody,
|
|
504
|
+
ae as TableCell,
|
|
505
|
+
re as TableCellContent,
|
|
506
|
+
se as TableCellContentDescription,
|
|
507
|
+
ce as TableCellContentRow,
|
|
508
|
+
oe as TableCellContentTitle,
|
|
509
|
+
le as TableCellItem,
|
|
510
|
+
Z as TableCol,
|
|
511
|
+
Y as TableColGroup,
|
|
512
|
+
ne as TableGroupHeaderRow,
|
|
513
|
+
_ as TableHeader,
|
|
514
|
+
ie as TableHeaderCell,
|
|
515
|
+
te as TableHeaderRow,
|
|
516
|
+
pe as TableInfoIcon,
|
|
517
|
+
be as TableLoadingRow,
|
|
518
|
+
W as TableRoot,
|
|
519
|
+
ee as TableRow,
|
|
520
|
+
fe as TableSortButton
|
|
433
521
|
};
|