@versini/ui-table 3.1.11 → 3.1.13
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 +92 -92
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import
|
|
1
|
+
import l from "clsx";
|
|
2
2
|
import { jsx as i, jsxs as _, Fragment as se } from "react/jsx-runtime";
|
|
3
|
-
import I, { useRef as w, useLayoutEffect as D, useMemo as q, useState as
|
|
3
|
+
import I, { useRef as w, useLayoutEffect as D, useMemo as q, useState as le, useEffect as G, useCallback as oe, useContext as N } from "react";
|
|
4
4
|
/*!
|
|
5
|
-
@versini/ui-table v3.1.
|
|
5
|
+
@versini/ui-table v3.1.13
|
|
6
6
|
© 2025 gizmette.com
|
|
7
7
|
*/
|
|
8
8
|
try {
|
|
9
9
|
window.__VERSINI_UI_TABLE__ || (window.__VERSINI_UI_TABLE__ = {
|
|
10
|
-
version: "3.1.
|
|
11
|
-
buildTime: "03/
|
|
10
|
+
version: "3.1.13",
|
|
11
|
+
buildTime: "03/14/2025 05:17 PM EDT",
|
|
12
12
|
homepage: "https://github.com/aversini/ui-components",
|
|
13
13
|
license: "MIT"
|
|
14
14
|
});
|
|
@@ -24,7 +24,7 @@ const R = "thead", P = "tfoot", p = "tbody", B = {
|
|
|
24
24
|
stickyHeader: r,
|
|
25
25
|
stickyFooter: s
|
|
26
26
|
}) => ({
|
|
27
|
-
wrapper:
|
|
27
|
+
wrapper: l(
|
|
28
28
|
"not-prose relative w-full rounded-lg shadow-md",
|
|
29
29
|
{
|
|
30
30
|
"overflow-x-auto": !r && !s,
|
|
@@ -40,13 +40,13 @@ const R = "thead", P = "tfoot", p = "tbody", B = {
|
|
|
40
40
|
},
|
|
41
41
|
t
|
|
42
42
|
),
|
|
43
|
-
table:
|
|
43
|
+
table: l("my-0 w-full text-left text-sm", a, {
|
|
44
44
|
"text-copy-light": e === "dark",
|
|
45
45
|
"text-copy-dark": e === "light",
|
|
46
46
|
"text-copy-light dark:text-copy-dark": e === "system",
|
|
47
47
|
"text-copy-dark dark:text-copy-light": e === "alt-system"
|
|
48
48
|
}),
|
|
49
|
-
caption:
|
|
49
|
+
caption: l("py-2 text-sm font-bold", {
|
|
50
50
|
"text-copy-light": e === "dark",
|
|
51
51
|
"text-copy-dark": e === "light",
|
|
52
52
|
"text-copy-light dark:text-copy-dark": e === "system",
|
|
@@ -56,7 +56,7 @@ const R = "thead", P = "tfoot", p = "tbody", B = {
|
|
|
56
56
|
className: e,
|
|
57
57
|
stickyHeader: a,
|
|
58
58
|
mode: t
|
|
59
|
-
}) =>
|
|
59
|
+
}) => l(
|
|
60
60
|
{
|
|
61
61
|
"sticky top-0 z-10": a,
|
|
62
62
|
"shadow-[rgb(190_190_190_/20%)_0_0.5rem_1rem]": a && t === "dark",
|
|
@@ -69,7 +69,7 @@ const R = "thead", P = "tfoot", p = "tbody", B = {
|
|
|
69
69
|
className: e,
|
|
70
70
|
stickyFooter: a,
|
|
71
71
|
mode: t
|
|
72
|
-
}) =>
|
|
72
|
+
}) => l(
|
|
73
73
|
{
|
|
74
74
|
"sticky bottom-0 z-10": a,
|
|
75
75
|
"shadow-[rgb(190_190_190_/20%)_0_-0.5rem_1rem]": a && t === "dark",
|
|
@@ -82,7 +82,7 @@ const R = "thead", P = "tfoot", p = "tbody", B = {
|
|
|
82
82
|
mode: e,
|
|
83
83
|
className: a,
|
|
84
84
|
cellWrapper: t
|
|
85
|
-
}) => t === R || t === P ?
|
|
85
|
+
}) => t === R || t === P ? l(
|
|
86
86
|
{
|
|
87
87
|
"bg-table-head-dark": e === "dark" || e === "system",
|
|
88
88
|
"bg-table-head-light": e === "light" || e === "alt-system",
|
|
@@ -90,7 +90,7 @@ const R = "thead", P = "tfoot", p = "tbody", B = {
|
|
|
90
90
|
"dark:bg-table-head-dark": e === "alt-system"
|
|
91
91
|
},
|
|
92
92
|
a
|
|
93
|
-
) :
|
|
93
|
+
) : l(
|
|
94
94
|
"border-b last:border-0",
|
|
95
95
|
{
|
|
96
96
|
"border-table-dark": e === "dark" || e === "system",
|
|
@@ -110,12 +110,12 @@ const R = "thead", P = "tfoot", p = "tbody", B = {
|
|
|
110
110
|
mode: r,
|
|
111
111
|
align: s
|
|
112
112
|
}) => ({
|
|
113
|
-
alignClasses:
|
|
113
|
+
alignClasses: l({
|
|
114
114
|
"flex justify-start text-left": s === "left",
|
|
115
115
|
"flex justify-center text-center": s === "center",
|
|
116
116
|
"flex justify-end text-right": s === "right"
|
|
117
117
|
}),
|
|
118
|
-
mainClasses:
|
|
118
|
+
mainClasses: l(
|
|
119
119
|
{
|
|
120
120
|
"text-copy-light": r === "dark" || r === "system",
|
|
121
121
|
"text-copy-dark": r === "light" || r === "alt-system",
|
|
@@ -129,40 +129,40 @@ const R = "thead", P = "tfoot", p = "tbody", B = {
|
|
|
129
129
|
)
|
|
130
130
|
}), he = ({
|
|
131
131
|
buttonClassName: e
|
|
132
|
-
}) =>
|
|
132
|
+
}) => l("rounded-none text-sm", e), F = "av-button", E = "icon", $ = "button", O = "link", be = ({
|
|
133
133
|
type: e,
|
|
134
134
|
size: a,
|
|
135
135
|
labelRight: t,
|
|
136
136
|
labelLeft: r,
|
|
137
137
|
align: s,
|
|
138
|
-
animated:
|
|
138
|
+
animated: o
|
|
139
139
|
}) => {
|
|
140
140
|
const n = "max-h-8 py-0 px-2", d = "max-h-9 h-8 px-3", c = "max-h-12 py-2 px-4";
|
|
141
141
|
switch (e) {
|
|
142
142
|
case $:
|
|
143
143
|
case O:
|
|
144
|
-
return
|
|
144
|
+
return l({
|
|
145
145
|
[n]: a === "small",
|
|
146
146
|
[d]: a === "medium",
|
|
147
147
|
[c]: a === "large"
|
|
148
148
|
});
|
|
149
149
|
case E:
|
|
150
|
-
return
|
|
150
|
+
return l("flex items-center", {
|
|
151
151
|
"justify-center": s === "center",
|
|
152
152
|
"justify-start": s === "left",
|
|
153
153
|
"justify-end": s === "right",
|
|
154
|
-
"h-6 w-6 p-0": a === "small" && !
|
|
155
|
-
"h-6 px-2": a === "small" && !
|
|
156
|
-
"h-8 w-8 p-1": a === "medium" && !
|
|
157
|
-
"h-8 px-3": a === "medium" && !
|
|
158
|
-
"h-12 w-12 p-2": a === "large" && !
|
|
159
|
-
"h-12 px-4": a === "large" && !
|
|
160
|
-
"h-6 py-0": a === "small" &&
|
|
161
|
-
"h-6": a === "small" &&
|
|
162
|
-
"h-8 py-1": a === "medium" &&
|
|
163
|
-
"h-8": a === "medium" &&
|
|
164
|
-
"h-12 py-2": a === "large" &&
|
|
165
|
-
"h-12": a === "large" &&
|
|
154
|
+
"h-6 w-6 p-0": a === "small" && !o && !(t || r),
|
|
155
|
+
"h-6 px-2": a === "small" && !o && (t || r),
|
|
156
|
+
"h-8 w-8 p-1": a === "medium" && !o && !(t || r),
|
|
157
|
+
"h-8 px-3": a === "medium" && !o && (t || r),
|
|
158
|
+
"h-12 w-12 p-2": a === "large" && !o && !(t || r),
|
|
159
|
+
"h-12 px-4": a === "large" && !o && (t || r),
|
|
160
|
+
"h-6 py-0": a === "small" && o && !(t || r),
|
|
161
|
+
"h-6": a === "small" && o && (t || r),
|
|
162
|
+
"h-8 py-1": a === "medium" && o && !(t || r),
|
|
163
|
+
"h-8": a === "medium" && o && (t || r),
|
|
164
|
+
"h-12 py-2": a === "large" && o && !(t || r),
|
|
165
|
+
"h-12": a === "large" && o && (t || r)
|
|
166
166
|
});
|
|
167
167
|
}
|
|
168
168
|
}, me = ({
|
|
@@ -171,58 +171,58 @@ const R = "thead", P = "tfoot", p = "tbody", B = {
|
|
|
171
171
|
labelRight: t,
|
|
172
172
|
labelLeft: r
|
|
173
173
|
}) => {
|
|
174
|
-
const s = "text-sm font-medium",
|
|
174
|
+
const s = "text-sm font-medium", o = "text-base font-medium", n = "text-lg font-medium";
|
|
175
175
|
switch (e) {
|
|
176
176
|
case $:
|
|
177
177
|
case O:
|
|
178
|
-
return
|
|
178
|
+
return l({
|
|
179
179
|
"text-center": e === O,
|
|
180
180
|
[s]: a === "small",
|
|
181
|
-
[
|
|
181
|
+
[o]: a === "medium",
|
|
182
182
|
[n]: a === "large"
|
|
183
183
|
});
|
|
184
184
|
case E:
|
|
185
|
-
return
|
|
185
|
+
return l({
|
|
186
186
|
[s]: a === "small" && (t || r),
|
|
187
|
-
[
|
|
187
|
+
[o]: a === "medium" && (t || r),
|
|
188
188
|
[n]: a === "large" && (t || r)
|
|
189
189
|
});
|
|
190
190
|
}
|
|
191
191
|
}, ue = ({
|
|
192
192
|
mode: e,
|
|
193
193
|
noBackground: a,
|
|
194
|
-
|
|
194
|
+
truncate: t,
|
|
195
195
|
variant: r
|
|
196
196
|
}) => {
|
|
197
197
|
if (a)
|
|
198
198
|
return "not-prose";
|
|
199
199
|
if (r === "primary")
|
|
200
|
-
return
|
|
201
|
-
truncate:
|
|
200
|
+
return l("not-prose", {
|
|
201
|
+
truncate: t,
|
|
202
202
|
"text-copy-light": e === "dark" || e === "system",
|
|
203
203
|
"text-copy-lighter": e === "light" || e === "alt-system",
|
|
204
204
|
"dark:text-copy-lighter": e === "system",
|
|
205
205
|
"dark:text-copy-light": e === "alt-system"
|
|
206
206
|
});
|
|
207
207
|
if (r === "secondary")
|
|
208
|
-
return
|
|
209
|
-
truncate:
|
|
208
|
+
return l("not-prose", {
|
|
209
|
+
truncate: t,
|
|
210
210
|
"text-copy-light": e === "light" || e === "system",
|
|
211
211
|
"text-copy-lighter": e === "dark" || e === "alt-system",
|
|
212
212
|
"dark:text-copy-lighter": e === "alt-system",
|
|
213
213
|
"dark:text-copy-light": e === "system"
|
|
214
214
|
});
|
|
215
215
|
if (r === "danger")
|
|
216
|
-
return
|
|
217
|
-
truncate:
|
|
216
|
+
return l("not-prose", {
|
|
217
|
+
truncate: t,
|
|
218
218
|
"text-copy-light": e === "dark" || e === "system",
|
|
219
219
|
"text-copy-lighter": e === "light" || e === "alt-system",
|
|
220
220
|
"dark:text-copy-lighter": e === "system",
|
|
221
221
|
"dark:text-copy-light": e === "alt-system"
|
|
222
222
|
});
|
|
223
223
|
if (r === "selected")
|
|
224
|
-
return
|
|
225
|
-
truncate:
|
|
224
|
+
return l("not-prose text-copy-lighter", {
|
|
225
|
+
truncate: t
|
|
226
226
|
});
|
|
227
227
|
}, ye = ({
|
|
228
228
|
mode: e,
|
|
@@ -231,21 +231,21 @@ const R = "thead", P = "tfoot", p = "tbody", B = {
|
|
|
231
231
|
}) => {
|
|
232
232
|
if (!a) {
|
|
233
233
|
if (t === "primary")
|
|
234
|
-
return
|
|
234
|
+
return l({
|
|
235
235
|
"bg-action-dark": e === "dark",
|
|
236
236
|
"bg-action-light": e === "light",
|
|
237
237
|
"bg-action-dark dark:bg-action-light": e === "system",
|
|
238
238
|
"bg-action-light dark:bg-action-dark": e === "alt-system"
|
|
239
239
|
});
|
|
240
240
|
if (t === "secondary")
|
|
241
|
-
return
|
|
241
|
+
return l({
|
|
242
242
|
"bg-action-dark": e === "light",
|
|
243
243
|
"bg-action-light": e === "dark",
|
|
244
244
|
"bg-action-dark dark:bg-action-light": e === "alt-system",
|
|
245
245
|
"bg-action-light dark:bg-action-dark": e === "system"
|
|
246
246
|
});
|
|
247
247
|
if (t === "danger")
|
|
248
|
-
return
|
|
248
|
+
return l({
|
|
249
249
|
"bg-action-danger-dark": e === "dark",
|
|
250
250
|
"bg-action-danger-light": e === "light",
|
|
251
251
|
"bg-action-danger-dark dark:bg-action-danger-light": e === "system",
|
|
@@ -256,7 +256,7 @@ const R = "thead", P = "tfoot", p = "tbody", B = {
|
|
|
256
256
|
}
|
|
257
257
|
}, ke = ({
|
|
258
258
|
radius: e
|
|
259
|
-
}) =>
|
|
259
|
+
}) => l({
|
|
260
260
|
"rounded-full": e === "large",
|
|
261
261
|
"rounded-md": e === "medium",
|
|
262
262
|
"rounded-sm": e === "small"
|
|
@@ -268,21 +268,21 @@ const R = "thead", P = "tfoot", p = "tbody", B = {
|
|
|
268
268
|
if (a)
|
|
269
269
|
return "";
|
|
270
270
|
if (t === "primary")
|
|
271
|
-
return
|
|
271
|
+
return l("hover:text-copy-light-hover", {
|
|
272
272
|
"hover:bg-action-dark-hover": e === "dark",
|
|
273
273
|
"hover:bg-action-light-hover": e === "light",
|
|
274
274
|
"hover:bg-action-dark-hover dark:hover:bg-action-light-hover": e === "system",
|
|
275
275
|
"hover:bg-action-light-hover dark:hover:bg-action-dark-hover": e === "alt-system"
|
|
276
276
|
});
|
|
277
277
|
if (t === "secondary")
|
|
278
|
-
return
|
|
278
|
+
return l("hover:text-copy-light-hover", {
|
|
279
279
|
"hover:bg-action-dark-hover": e === "light",
|
|
280
280
|
"hover:bg-action-light-hover": e === "dark",
|
|
281
281
|
"hover:bg-action-dark-hover dark:hover:bg-action-light-hover": e === "alt-system",
|
|
282
282
|
"hover:bg-action-light-hover dark:hover:bg-action-dark-hover": e === "system"
|
|
283
283
|
});
|
|
284
284
|
if (t === "danger")
|
|
285
|
-
return
|
|
285
|
+
return l("hover:text-copy-light-hover", {
|
|
286
286
|
"hover:bg-action-danger-dark-hover": e === "dark",
|
|
287
287
|
"hover:bg-action-danger-light-hover": e === "light",
|
|
288
288
|
"hover:bg-action-danger-dark-hover dark:hover:bg-action-danger-light-hover": e === "system",
|
|
@@ -298,21 +298,21 @@ const R = "thead", P = "tfoot", p = "tbody", B = {
|
|
|
298
298
|
if (a)
|
|
299
299
|
return "";
|
|
300
300
|
if (t === "primary")
|
|
301
|
-
return
|
|
301
|
+
return l("active:text-copy-light-active", {
|
|
302
302
|
"active:bg-action-dark-active": e === "dark",
|
|
303
303
|
"active:bg-action-light-active": e === "light",
|
|
304
304
|
"active:bg-action-dark-active dark:active:bg-action-light-active": e === "system",
|
|
305
305
|
"active:bg-action-light-active dark:active:bg-action-dark-active": e === "alt-system"
|
|
306
306
|
});
|
|
307
307
|
if (t === "secondary")
|
|
308
|
-
return
|
|
308
|
+
return l("active:text-copy-light-active", {
|
|
309
309
|
"active:bg-action-dark-active": e === "light",
|
|
310
310
|
"active:bg-action-light-active": e === "dark",
|
|
311
311
|
"active:bg-action-dark-active dark:active:bg-action-light-active": e === "alt-system",
|
|
312
312
|
"active:bg-action-light-active dark:active:bg-action-dark-active": e === "system"
|
|
313
313
|
});
|
|
314
314
|
if (t === "danger")
|
|
315
|
-
return
|
|
315
|
+
return l("active:text-copy-lighter-active", {
|
|
316
316
|
"active:bg-action-danger-dark-active": e === "dark",
|
|
317
317
|
"active:bg-action-danger-light-active": e === "light",
|
|
318
318
|
"active:bg-action-danger-dark-active dark:active:bg-action-danger-light-active": e === "system",
|
|
@@ -328,21 +328,21 @@ const R = "thead", P = "tfoot", p = "tbody", B = {
|
|
|
328
328
|
if (a)
|
|
329
329
|
return "border border-transparent";
|
|
330
330
|
if (t === "primary")
|
|
331
|
-
return
|
|
331
|
+
return l("border", {
|
|
332
332
|
"border-border-dark": e === "dark",
|
|
333
333
|
"border-border-accent": e === "light",
|
|
334
334
|
"border-border-dark dark:border-border-accent": e === "system",
|
|
335
335
|
"border-border-accent dark:border-border-dark": e === "alt-system"
|
|
336
336
|
});
|
|
337
337
|
if (t === "secondary")
|
|
338
|
-
return
|
|
338
|
+
return l("border", {
|
|
339
339
|
"border-border-dark": e === "light",
|
|
340
340
|
"border-border-accent": e === "dark",
|
|
341
341
|
"border-border-dark dark:border-border-accent": e === "alt-system",
|
|
342
342
|
"border-border-accent dark:border-border-dark": e === "system"
|
|
343
343
|
});
|
|
344
344
|
if (t === "danger")
|
|
345
|
-
return
|
|
345
|
+
return l("border", {
|
|
346
346
|
"border-border-danger-dark": e === "dark",
|
|
347
347
|
"border-border-danger-medium": e === "light",
|
|
348
348
|
"border-border-danger-dark dark:border-border-danger-medium": e === "system",
|
|
@@ -352,7 +352,7 @@ const R = "thead", P = "tfoot", p = "tbody", B = {
|
|
|
352
352
|
return "border border-border-selected-dark";
|
|
353
353
|
}, _e = ({
|
|
354
354
|
focusMode: e
|
|
355
|
-
}) =>
|
|
355
|
+
}) => l("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
|
|
356
356
|
"focus:outline-focus-dark": e === "dark",
|
|
357
357
|
"focus:outline-focus-light": e === "light",
|
|
358
358
|
"focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
|
|
@@ -361,7 +361,7 @@ const R = "thead", P = "tfoot", p = "tbody", B = {
|
|
|
361
361
|
mode: e,
|
|
362
362
|
raw: a,
|
|
363
363
|
iconClassName: t
|
|
364
|
-
}) => a ? "" :
|
|
364
|
+
}) => a ? "" : l(
|
|
365
365
|
{
|
|
366
366
|
"text-copy-accent-dark": e === "light" || e === "alt-system",
|
|
367
367
|
"text-copy-light": e === "dark" || e === "system",
|
|
@@ -371,7 +371,7 @@ const R = "thead", P = "tfoot", p = "tbody", B = {
|
|
|
371
371
|
t
|
|
372
372
|
), we = ({
|
|
373
373
|
animated: e
|
|
374
|
-
}) =>
|
|
374
|
+
}) => l({
|
|
375
375
|
"transition-opacity duration-300 ease-in": e
|
|
376
376
|
}), Ne = ({
|
|
377
377
|
type: e,
|
|
@@ -379,7 +379,7 @@ const R = "thead", P = "tfoot", p = "tbody", B = {
|
|
|
379
379
|
raw: t,
|
|
380
380
|
mode: r,
|
|
381
381
|
focusMode: s,
|
|
382
|
-
disabled:
|
|
382
|
+
disabled: o,
|
|
383
383
|
fullWidth: n,
|
|
384
384
|
size: d,
|
|
385
385
|
noBorder: c,
|
|
@@ -387,17 +387,17 @@ const R = "thead", P = "tfoot", p = "tbody", B = {
|
|
|
387
387
|
labelLeft: m,
|
|
388
388
|
noBackground: h,
|
|
389
389
|
variant: b,
|
|
390
|
-
|
|
390
|
+
truncate: y,
|
|
391
391
|
align: S,
|
|
392
392
|
radius: z,
|
|
393
393
|
animated: C
|
|
394
|
-
}) => (b || (b = "primary"), t ?
|
|
394
|
+
}) => (b || (b = "primary"), t ? l(F, a) : l(
|
|
395
395
|
F,
|
|
396
396
|
ue({
|
|
397
397
|
mode: r,
|
|
398
398
|
variant: b,
|
|
399
399
|
noBackground: h,
|
|
400
|
-
|
|
400
|
+
truncate: y
|
|
401
401
|
}),
|
|
402
402
|
ye({ mode: r, noBackground: h, variant: b }),
|
|
403
403
|
ke({ radius: z }),
|
|
@@ -412,13 +412,13 @@ const R = "thead", P = "tfoot", p = "tbody", B = {
|
|
|
412
412
|
me({ type: e, size: d, labelRight: g, labelLeft: m }),
|
|
413
413
|
pe({ mode: r, variant: b, noBorder: c }),
|
|
414
414
|
_e({ focusMode: s }),
|
|
415
|
-
fe({ mode: r, variant: b, disabled:
|
|
416
|
-
ve({ mode: r, variant: b, disabled:
|
|
415
|
+
fe({ mode: r, variant: b, disabled: o }),
|
|
416
|
+
ve({ mode: r, variant: b, disabled: o }),
|
|
417
417
|
{
|
|
418
418
|
"w-full": n,
|
|
419
|
-
"disabled:cursor-not-allowed disabled:opacity-50":
|
|
419
|
+
"disabled:cursor-not-allowed disabled:opacity-50": o
|
|
420
420
|
},
|
|
421
|
-
|
|
421
|
+
l({
|
|
422
422
|
"transition-[width] duration-300 ease-in-out": e === E && C
|
|
423
423
|
}),
|
|
424
424
|
a
|
|
@@ -431,8 +431,8 @@ const R = "thead", P = "tfoot", p = "tbody", B = {
|
|
|
431
431
|
"button",
|
|
432
432
|
{
|
|
433
433
|
ref: a,
|
|
434
|
-
onClick: (
|
|
435
|
-
Ce(
|
|
434
|
+
onClick: (o) => {
|
|
435
|
+
Ce(o, r, t);
|
|
436
436
|
},
|
|
437
437
|
...s
|
|
438
438
|
}
|
|
@@ -443,7 +443,7 @@ function Te() {
|
|
|
443
443
|
const e = w(!1);
|
|
444
444
|
return G(() => (e.current = !0, () => {
|
|
445
445
|
e.current = !1;
|
|
446
|
-
}), []),
|
|
446
|
+
}), []), oe(() => e.current, []);
|
|
447
447
|
}
|
|
448
448
|
function Be(e) {
|
|
449
449
|
return q(() => e.every((a) => a == null) ? () => {
|
|
@@ -464,10 +464,10 @@ const Ie = {
|
|
|
464
464
|
right: 0
|
|
465
465
|
};
|
|
466
466
|
function A(e) {
|
|
467
|
-
const a = Te(), t = w(0), r = w(null), [s,
|
|
467
|
+
const a = Te(), t = w(0), r = w(null), [s, o] = le(Ie), n = q(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((d) => {
|
|
468
468
|
const c = d[0];
|
|
469
469
|
c && (cancelAnimationFrame(t.current), t.current = requestAnimationFrame(() => {
|
|
470
|
-
r.current && a() &&
|
|
470
|
+
r.current && a() && o(c.contentRect);
|
|
471
471
|
}));
|
|
472
472
|
}), [a]);
|
|
473
473
|
return G(() => (r.current && (n == null || n.observe(r.current, e)), () => {
|
|
@@ -495,7 +495,7 @@ const Re = {
|
|
|
495
495
|
mode: t = "system",
|
|
496
496
|
focusMode: r = "system",
|
|
497
497
|
fullWidth: s = !1,
|
|
498
|
-
className:
|
|
498
|
+
className: o,
|
|
499
499
|
type: n = "button",
|
|
500
500
|
raw: d = !1,
|
|
501
501
|
noBorder: c = !1,
|
|
@@ -519,7 +519,7 @@ const Re = {
|
|
|
519
519
|
fullWidth: s,
|
|
520
520
|
disabled: a,
|
|
521
521
|
raw: d,
|
|
522
|
-
className:
|
|
522
|
+
className: o,
|
|
523
523
|
noBorder: c,
|
|
524
524
|
size: h,
|
|
525
525
|
labelRight: b,
|
|
@@ -584,13 +584,13 @@ const Re = {
|
|
|
584
584
|
}) => /* @__PURE__ */ i("span", { ref: e, className: a, children: t && /* @__PURE__ */ i("span", { className: r, children: t }) });
|
|
585
585
|
Y.displayName = "ButtonIcon";
|
|
586
586
|
/*!
|
|
587
|
-
@versini/ui-button
|
|
587
|
+
@versini/ui-button v5.0.1
|
|
588
588
|
© 2025 gizmette.com
|
|
589
589
|
*/
|
|
590
590
|
try {
|
|
591
591
|
window.__VERSINI_UI_BUTTON__ || (window.__VERSINI_UI_BUTTON__ = {
|
|
592
|
-
version: "
|
|
593
|
-
buildTime: "03/
|
|
592
|
+
version: "5.0.1",
|
|
593
|
+
buildTime: "03/14/2025 05:17 PM EDT",
|
|
594
594
|
homepage: "https://github.com/aversini/ui-components",
|
|
595
595
|
license: "MIT"
|
|
596
596
|
});
|
|
@@ -603,8 +603,8 @@ const Z = I.forwardRef(
|
|
|
603
603
|
className: t,
|
|
604
604
|
active: r = !1,
|
|
605
605
|
...s
|
|
606
|
-
},
|
|
607
|
-
const n = r ?
|
|
606
|
+
}, o) => {
|
|
607
|
+
const n = r ? l(
|
|
608
608
|
"relative",
|
|
609
609
|
"focus-within:static",
|
|
610
610
|
"focus-within:after:border-transparent",
|
|
@@ -624,8 +624,8 @@ const Z = I.forwardRef(
|
|
|
624
624
|
return /* @__PURE__ */ i("div", { className: n, children: /* @__PURE__ */ i(
|
|
625
625
|
Y,
|
|
626
626
|
{
|
|
627
|
-
className:
|
|
628
|
-
ref:
|
|
627
|
+
className: l("justify-center", t),
|
|
628
|
+
ref: o,
|
|
629
629
|
mode: a,
|
|
630
630
|
radius: "small",
|
|
631
631
|
...s,
|
|
@@ -641,12 +641,12 @@ const U = ({
|
|
|
641
641
|
viewBox: t,
|
|
642
642
|
className: r,
|
|
643
643
|
defaultViewBox: s,
|
|
644
|
-
size:
|
|
644
|
+
size: o,
|
|
645
645
|
title: n,
|
|
646
646
|
semantic: d = !1,
|
|
647
647
|
...c
|
|
648
648
|
}) => {
|
|
649
|
-
const g = o
|
|
649
|
+
const g = l(o, r);
|
|
650
650
|
return /* @__PURE__ */ i(se, { children: /* @__PURE__ */ _(
|
|
651
651
|
"svg",
|
|
652
652
|
{
|
|
@@ -782,7 +782,7 @@ const x = I.createContext({
|
|
|
782
782
|
caption: t,
|
|
783
783
|
compact: r,
|
|
784
784
|
summary: s,
|
|
785
|
-
className:
|
|
785
|
+
className: o,
|
|
786
786
|
wrapperClassName: n,
|
|
787
787
|
maxHeight: d,
|
|
788
788
|
stickyHeader: c,
|
|
@@ -791,7 +791,7 @@ const x = I.createContext({
|
|
|
791
791
|
}) => {
|
|
792
792
|
const h = ie({
|
|
793
793
|
mode: a,
|
|
794
|
-
className:
|
|
794
|
+
className: o,
|
|
795
795
|
wrapperClassName: n,
|
|
796
796
|
stickyHeader: c,
|
|
797
797
|
stickyFooter: g
|
|
@@ -862,11 +862,11 @@ const x = I.createContext({
|
|
|
862
862
|
align: r,
|
|
863
863
|
...s
|
|
864
864
|
}) => {
|
|
865
|
-
const
|
|
866
|
-
cellWrapper:
|
|
865
|
+
const o = N(x), n = a || (o.cellWrapper === R ? "th" : "td"), { mainClasses: d, alignClasses: c } = ge({
|
|
866
|
+
cellWrapper: o.cellWrapper,
|
|
867
867
|
className: t,
|
|
868
|
-
mode:
|
|
869
|
-
compact:
|
|
868
|
+
mode: o.mode,
|
|
869
|
+
compact: o.compact,
|
|
870
870
|
align: r
|
|
871
871
|
});
|
|
872
872
|
return r ? /* @__PURE__ */ i(n, { className: d, ...s, children: /* @__PURE__ */ i("div", { className: c, children: e }) }) : /* @__PURE__ */ i(n, { className: d, ...s, children: e });
|
|
@@ -876,7 +876,7 @@ const x = I.createContext({
|
|
|
876
876
|
buttonClassName: t,
|
|
877
877
|
className: r,
|
|
878
878
|
component: s,
|
|
879
|
-
focusMode:
|
|
879
|
+
focusMode: o = "alt-system",
|
|
880
880
|
mode: n = "alt-system",
|
|
881
881
|
onClick: d,
|
|
882
882
|
sortDirection: c,
|
|
@@ -901,7 +901,7 @@ const x = I.createContext({
|
|
|
901
901
|
onClick: d,
|
|
902
902
|
align: e,
|
|
903
903
|
noBorder: !0,
|
|
904
|
-
focusMode:
|
|
904
|
+
focusMode: o,
|
|
905
905
|
mode: n,
|
|
906
906
|
fullWidth: !0,
|
|
907
907
|
labelRight: a,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@versini/ui-table",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.13",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Arno Versini",
|
|
6
6
|
"publishConfig": {
|
|
@@ -39,11 +39,11 @@
|
|
|
39
39
|
"react-dom": "^18.3.1 || ^19.0.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@versini/ui-types": "
|
|
42
|
+
"@versini/ui-types": "5.0.0"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@tailwindcss/typography": "0.5.16",
|
|
46
|
-
"@versini/ui-button": "
|
|
46
|
+
"@versini/ui-button": "5.0.1",
|
|
47
47
|
"@versini/ui-icons": "4.8.1",
|
|
48
48
|
"clsx": "2.1.1",
|
|
49
49
|
"tailwindcss": "3.4.17"
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
"sideEffects": [
|
|
52
52
|
"**/*.css"
|
|
53
53
|
],
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "37955472858096264438083d812d3b12585b0253"
|
|
55
55
|
}
|