@versini/ui-table 4.0.16 → 4.0.18

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.
@@ -1,960 +1,268 @@
1
- import { jsx as o, jsxs as N, Fragment as ce } from "react/jsx-runtime";
2
- import S, { useRef as w, useLayoutEffect as q, useEffect as U, useState as ne, useMemo as K, useCallback as de, useContext as B } from "react";
3
- import l from "clsx";
4
- const Y = "av-button", W = "icon", Q = "button", P = "link", he = ({
5
- type: e,
6
- size: r,
7
- labelRight: t,
8
- labelLeft: a,
9
- align: s,
10
- animated: i
11
- }) => {
12
- const c = "max-h-8 py-0 px-2", d = "max-h-9 h-8 px-3", n = "max-h-12 py-2 px-4";
13
- switch (e) {
14
- case Q:
15
- case P:
16
- return l({
17
- [c]: r === "small",
18
- [d]: r === "medium",
19
- [n]: r === "large"
20
- });
21
- case W:
22
- return l("flex items-center", {
23
- "justify-center": s === "center",
24
- "justify-start": s === "left",
25
- "justify-end": s === "right",
26
- "h-6 w-6 p-0": r === "small" && !i && !(t || a),
27
- "h-6 px-1 sm:px-2": r === "small" && !i && (t || a),
28
- "h-8 w-8 p-1": r === "medium" && !i && !(t || a),
29
- "h-8 px-3": r === "medium" && !i && (t || a),
30
- "h-12 w-12 p-2": r === "large" && !i && !(t || a),
31
- "h-12 px-4": r === "large" && !i && (t || a),
32
- "h-6 py-0": r === "small" && i && !(t || a),
33
- "h-6": r === "small" && i && (t || a),
34
- "h-8 py-1": r === "medium" && i && !(t || a),
35
- "h-8": r === "medium" && i && (t || a),
36
- "h-12 py-2": r === "large" && i && !(t || a),
37
- "h-12": r === "large" && i && (t || a)
38
- });
39
- }
40
- }, ge = ({
41
- type: e,
42
- size: r,
43
- labelRight: t,
44
- labelLeft: a
45
- }) => {
46
- const s = "text-sm font-medium", i = "text-base font-medium", c = "text-lg font-medium";
47
- switch (e) {
48
- case Q:
49
- case P:
50
- return l({
51
- "text-center": e === P,
52
- [s]: r === "small",
53
- [i]: r === "medium",
54
- [c]: r === "large"
55
- });
56
- case W:
57
- return l({
58
- [s]: r === "small" && (t || a),
59
- [i]: r === "medium" && (t || a),
60
- [c]: r === "large" && (t || a)
61
- });
62
- }
63
- }, me = ({
64
- mode: e,
65
- noBackground: r,
66
- truncate: t,
67
- variant: a
68
- }) => {
69
- if (r)
70
- return "not-prose";
71
- if (a === "primary")
72
- return l("not-prose", {
73
- truncate: t,
74
- "text-copy-dark": e === "dark" || e === "system",
75
- "text-copy-light": e === "light" || e === "alt-system",
76
- "dark:text-copy-light": e === "system",
77
- "dark:text-copy-dark": e === "alt-system"
78
- });
79
- if (a === "secondary")
80
- return l("not-prose", {
81
- truncate: t,
82
- "text-copy-light": e === "dark" || e === "system",
83
- "text-copy-dark": e === "light" || e === "alt-system",
84
- "dark:text-copy-dark": e === "system",
85
- "dark:text-copy-light": e === "alt-system"
86
- });
87
- if (a === "danger")
88
- return l("not-prose", {
89
- truncate: t,
90
- "text-copy-light": e === "dark" || e === "system",
91
- "text-copy-lighter": e === "light" || e === "alt-system",
92
- "dark:text-copy-lighter": e === "system",
93
- "dark:text-copy-light": e === "alt-system"
94
- });
95
- if (a === "selected")
96
- return l("not-prose text-copy-lighter", {
97
- truncate: t
98
- });
99
- }, be = ({
100
- mode: e,
101
- noBackground: r,
102
- variant: t
103
- }) => {
104
- if (!r) {
105
- if (t === "primary")
106
- return l({
107
- "bg-action-light": e === "dark",
108
- "bg-action-dark": e === "light",
109
- "bg-action-light dark:bg-action-dark": e === "system",
110
- "bg-action-dark dark:bg-action-light": e === "alt-system"
111
- });
112
- if (t === "secondary")
113
- return l({
114
- "bg-action-light": e === "light",
115
- "bg-action-dark": e === "dark",
116
- "bg-action-light dark:bg-action-dark": e === "alt-system",
117
- "bg-action-dark dark:bg-action-light": e === "system"
118
- });
119
- if (t === "danger")
120
- return l({
121
- "bg-action-danger-dark": e === "dark",
122
- "bg-action-danger-light": e === "light",
123
- "bg-action-danger-dark dark:bg-action-danger-light": e === "system",
124
- "bg-action-danger-light dark:bg-action-danger-dark": e === "alt-system"
125
- });
126
- if (t === "selected")
127
- return "bg-action-selected-dark";
128
- }
129
- }, ue = ({
130
- radius: e
131
- }) => l({
132
- "rounded-full": e === "large",
133
- "rounded-md": e === "medium",
134
- "rounded-xs": e === "small"
135
- }), ye = ({
136
- mode: e,
137
- disabled: r,
138
- variant: t
139
- }) => {
140
- if (r)
141
- return "";
142
- if (t === "primary")
143
- return l({
144
- "hover:text-copy-dark-hover": e === "dark" || e === "system",
145
- "hover:text-copy-light-hover": e === "light" || e === "alt-system",
146
- "dark:hover:text-copy-light-hover": e === "system",
147
- "dark:hover:text-copy-dark-hover": e === "alt-system",
148
- "hover:bg-action-light-hover": e === "dark",
149
- "hover:bg-action-dark-hover": e === "light",
150
- "hover:bg-action-light-hover dark:hover:bg-action-dark-hover": e === "system",
151
- "hover:bg-action-dark-hover dark:hover:bg-action-light-hover": e === "alt-system"
152
- });
153
- if (t === "secondary")
154
- return l({
155
- "hover:text-copy-light-hover": e === "dark" || e === "system",
156
- "hover:text-copy-dark-hover": e === "light" || e === "alt-system",
157
- "dark:hover:text-copy-dark-hover": e === "system",
158
- "dark:hover:text-copy-light-hover": e === "alt-system",
159
- "hover:bg-action-light-hover": e === "light",
160
- "hover:bg-action-dark-hover": e === "dark",
161
- "hover:bg-action-light-hover dark:hover:bg-action-dark-hover": e === "alt-system",
162
- "hover:bg-action-dark-hover dark:hover:bg-action-light-hover": e === "system"
163
- });
164
- if (t === "danger")
165
- return l("hover:text-copy-light-hover", {
166
- "hover:bg-action-danger-dark-hover": e === "dark",
167
- "hover:bg-action-danger-light-hover": e === "light",
168
- "hover:bg-action-danger-dark-hover dark:hover:bg-action-danger-light-hover": e === "system",
169
- "hover:bg-action-danger-light-hover dark:hover:bg-action-danger-dark-hover": e === "alt-system"
170
- });
171
- if (t === "selected")
172
- return "hover:text-copy-light-hover hover:bg-action-selected-dark-hover";
173
- }, ke = ({
174
- mode: e,
175
- disabled: r,
176
- variant: t
177
- }) => {
178
- if (r)
179
- return "";
180
- if (t === "primary")
181
- return l({
182
- "active:text-copy-dark-active": e === "dark" || e === "system",
183
- "active:text-copy-light-active": e === "light" || e === "alt-system",
184
- "dark:active:text-copy-light-active": e === "system",
185
- "dark:active:text-copy-dark-active": e === "alt-system",
186
- "active:bg-action-light-active": e === "dark",
187
- "active:bg-action-dark-active": e === "light",
188
- "active:bg-action-light-active dark:active:bg-action-dark-active": e === "system",
189
- "active:bg-action-dark-active dark:active:bg-action-light-active": e === "alt-system"
190
- });
191
- if (t === "secondary")
192
- return l({
193
- "active:text-copy-light-active": e === "dark" || e === "system",
194
- "active:text-copy-dark-active": e === "light" || e === "alt-system",
195
- "dark:active:text-copy-dark-active": e === "system",
196
- "dark:active:text-copy-light-active": e === "alt-system",
197
- "active:bg-action-light-active": e === "light",
198
- "active:bg-action-dark-active": e === "dark",
199
- "active:bg-action-light-active dark:active:bg-action-dark-active": e === "alt-system",
200
- "active:bg-action-dark-active dark:active:bg-action-light-active": e === "system"
201
- });
202
- if (t === "danger")
203
- return l("active:text-copy-lighter-active", {
204
- "active:bg-action-danger-dark-active": e === "dark",
205
- "active:bg-action-danger-light-active": e === "light",
206
- "active:bg-action-danger-dark-active dark:active:bg-action-danger-light-active": e === "system",
207
- "active:bg-action-danger-light-active dark:active:bg-action-danger-dark-active": e === "alt-system"
208
- });
209
- if (t === "selected")
210
- return "active:text-copy-lighter-active active:bg-action-selected-dark-active";
211
- }, ve = ({
212
- mode: e,
213
- noBorder: r,
214
- variant: t
215
- }) => {
216
- if (r)
217
- return "border border-transparent";
218
- if (t === "primary")
219
- return l("border", {
220
- "border-border-medium": e === "dark",
221
- "border-border-accent": e === "light",
222
- "border-border-medium dark:border-border-accent": e === "system",
223
- "border-border-accent dark:border-border-medium": e === "alt-system"
224
- });
225
- if (t === "secondary")
226
- return l("border", {
227
- "border-border-medium": e === "light",
228
- "border-border-accent": e === "dark",
229
- "border-border-medium dark:border-border-accent": e === "alt-system",
230
- "border-border-accent dark:border-border-medium": e === "system"
231
- });
232
- if (t === "danger")
233
- return l("border", {
234
- "border-border-danger-dark": e === "dark",
235
- "border-border-danger-medium": e === "light",
236
- "border-border-danger-dark dark:border-border-danger-medium": e === "system",
237
- "border-border-danger-medium dark:border-border-danger-dark": e === "alt-system"
238
- });
239
- if (t === "selected")
240
- return "border border-border-selected-dark";
241
- }, pe = ({
242
- focusMode: e
243
- }) => l("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
244
- "focus:outline-focus-dark": e === "dark",
245
- "focus:outline-focus-light": e === "light",
246
- "focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
247
- "focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
248
- }), fe = ({
249
- mode: e,
250
- raw: r,
251
- iconClassName: t,
252
- variant: a = "primary"
253
- }) => {
254
- if (r)
255
- return "";
256
- let s = {};
257
- return a === "primary" ? s = {
258
- "text-copy-dark": e === "dark" || e === "system",
259
- "text-copy-light": e === "light" || e === "alt-system",
260
- "dark:text-copy-light": e === "system",
261
- "dark:text-copy-dark": e === "alt-system"
262
- } : a === "secondary" ? s = {
263
- "text-copy-light": e === "dark" || e === "system",
264
- "text-copy-dark": e === "light" || e === "alt-system",
265
- "dark:text-copy-dark": e === "system",
266
- "dark:text-copy-light": e === "alt-system"
267
- } : a === "danger" ? s = {
268
- "text-copy-light": e === "dark" || e === "system",
269
- "text-copy-lighter": e === "light" || e === "alt-system",
270
- "dark:text-copy-lighter": e === "system",
271
- "dark:text-copy-light": e === "alt-system"
272
- } : a === "selected" && (s = {
273
- "text-copy-lighter": !0
274
- }), l(s, t);
275
- }, xe = ({
276
- animated: e
277
- }) => l({
278
- "transition-opacity duration-300 ease-in-out": e
279
- }), _e = ({
280
- type: e,
281
- className: r,
282
- raw: t,
283
- mode: a,
284
- focusMode: s,
285
- disabled: i,
286
- fullWidth: c,
287
- size: d,
288
- noBorder: n,
289
- labelRight: g,
290
- labelLeft: b,
291
- noBackground: h,
292
- variant: m,
293
- truncate: p,
294
- align: L,
295
- radius: M,
296
- animated: T
297
- }) => (m || (m = "primary"), t ? l(Y, r) : l(
298
- Y,
299
- me({
300
- mode: a,
301
- variant: m,
302
- noBackground: h,
303
- truncate: p
304
- }),
305
- be({ mode: a, noBackground: h, variant: m }),
306
- ue({ radius: M }),
307
- he({
308
- type: e,
309
- size: d,
310
- labelRight: g,
311
- labelLeft: b,
312
- align: L,
313
- animated: T
314
- }),
315
- ge({ type: e, size: d, labelRight: g, labelLeft: b }),
316
- ve({ mode: a, variant: m, noBorder: n }),
317
- pe({ focusMode: s }),
318
- ye({ mode: a, variant: m, disabled: i }),
319
- ke({ mode: a, variant: m, disabled: i }),
320
- {
321
- "w-full": c,
322
- "disabled:cursor-not-allowed disabled:opacity-50": i
323
- },
324
- l({
325
- "transition-[width] duration-300 ease-in": T
326
- }),
327
- r
328
- )), we = (e, r, t) => {
329
- !r && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof e?.currentTarget?.focus == "function" && e.currentTarget.focus(), typeof t == "function" && t(e);
330
- }, X = S.forwardRef((e, r) => {
331
- const { onClick: t, noInternalClick: a = !1, ...s } = e;
332
- return /* @__PURE__ */ o(
333
- "button",
334
- {
335
- ref: r,
336
- onClick: (i) => {
337
- we(i, a, t);
338
- },
339
- ...s
340
- }
341
- );
342
- });
343
- X.displayName = "BaseButton";
344
- function Ne() {
345
- const e = w(!1);
346
- return U(() => (e.current = !0, () => {
347
- e.current = !1;
348
- }), []), de(() => e.current, []);
349
- }
350
- function Ce(e) {
351
- return K(() => e.every((r) => r == null) ? () => {
352
- } : (r) => {
353
- e.forEach((t) => {
354
- typeof t == "function" ? t(r) : t != null && (t.current = r);
355
- });
356
- }, [...e]);
357
- }
358
- const Be = {
359
- x: 0,
360
- y: 0,
361
- width: 0,
362
- height: 0,
363
- top: 0,
364
- left: 0,
365
- bottom: 0,
366
- right: 0
367
- };
368
- function j(e) {
369
- const r = Ne(), t = w(0), a = w(null), [s, i] = ne(Be), c = K(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((d) => {
370
- const n = d[0];
371
- n && (cancelAnimationFrame(t.current), t.current = requestAnimationFrame(() => {
372
- a.current && r() && i(n.contentRect);
373
- }));
374
- }), [r]);
375
- return U(() => (a.current && c?.observe(a.current, e), () => {
376
- c?.disconnect(), t.current && cancelAnimationFrame(t.current);
377
- }), [c, e]), [a, s];
378
- }
379
- const R = {
380
- small: 24,
381
- // w-6
382
- medium: 32,
383
- // w-8
384
- large: 48
385
- // w-12
386
- }, Te = {
387
- small: 16,
388
- // px-2 x 2
389
- medium: 24,
390
- // px-3 x 2
391
- large: 32
392
- // px-4 x 2
393
- }, Ie = 2, Re = 300, Z = S.forwardRef(
394
- ({
395
- children: e,
396
- disabled: r = !1,
397
- mode: t = "system",
398
- focusMode: a = "system",
399
- fullWidth: s = !1,
400
- className: i,
401
- type: c = "button",
402
- raw: d = !1,
403
- noBorder: n = !1,
404
- "aria-label": g,
405
- label: b,
406
- size: h = "medium",
407
- labelRight: m,
408
- labelLeft: p,
409
- noBackground: L = !1,
410
- align: M = "center",
411
- radius: T = "large",
412
- variant: H = "secondary",
413
- iconClassName: te,
414
- animated: k = !1,
415
- ...re
416
- }, ae) => {
417
- const se = _e({
418
- type: W,
419
- mode: t,
420
- focusMode: a,
421
- fullWidth: s,
422
- disabled: r,
423
- raw: d,
424
- className: i,
425
- noBorder: n,
426
- size: h,
427
- labelRight: m,
428
- labelLeft: p,
429
- noBackground: L,
430
- align: M,
431
- radius: T,
432
- variant: H,
433
- animated: k
434
- }), le = fe({ mode: t, raw: d, iconClassName: te, variant: H }), F = xe({ animated: k }), ie = "flex items-center justify-center relative w-full h-full overflow-hidden", [u, V] = j(), [y, O] = j(), [I, G] = j(), A = w(0), v = w(null), f = w(null), oe = Ce([ae, v]);
435
- return q(() => {
436
- I && I.current && k && (A.current = G.width + Te[h] + (n ? 0 : Ie), v.current && !v.current.style.width && (v.current.style.width = `${R[h]}px`));
437
- }, [G, I, h, n, k]), q(() => {
438
- if (v && v.current && k) {
439
- let x = R[h];
440
- m && u && V.width > 0 ? x = V.width + A.current : p && y && O.width > 0 && (x = O.width + A.current), f.current && clearTimeout(f.current), x !== parseInt(v.current.style.width || "0", 10) && (u.current && (u.current.style.opacity = "0"), y.current && (y.current.style.opacity = "0"), v.current.style.width = `${x}px`, x > R[h] && (f.current = setTimeout(() => {
441
- u.current && m && (u.current.style.opacity = "1"), y.current && p && (y.current.style.opacity = "1"), f.current = null;
442
- }, Re * 0.8))), x === R[h] && (u.current && (u.current.style.opacity = "0"), y.current && (y.current.style.opacity = "0"));
443
- }
444
- }, [
445
- V,
446
- m,
447
- u,
448
- O,
449
- p,
450
- y,
451
- h,
452
- k
453
- ]), U(() => () => {
454
- f.current && clearTimeout(f.current);
455
- }, []), /* @__PURE__ */ o(
456
- X,
457
- {
458
- ref: oe,
459
- className: se,
460
- disabled: r,
461
- type: c,
462
- "aria-label": g || b,
463
- ...re,
464
- children: /* @__PURE__ */ N("div", { className: ie, children: [
465
- /* @__PURE__ */ o(
466
- J,
467
- {
468
- label: p,
469
- labelRef: y,
470
- labelClass: F,
471
- labelInnerClass: "pr-2",
472
- initiallyHidden: k
473
- }
474
- ),
475
- /* @__PURE__ */ o("span", { ref: I, className: le, children: e }),
476
- /* @__PURE__ */ o(
477
- J,
478
- {
479
- label: m,
480
- labelRef: u,
481
- labelClass: F,
482
- labelInnerClass: "pl-2",
483
- initiallyHidden: k
484
- }
485
- )
486
- ] })
487
- }
488
- );
489
- }
490
- ), J = ({
491
- labelRef: e,
492
- labelClass: r,
493
- label: t,
494
- labelInnerClass: a,
495
- initiallyHidden: s = !1
496
- }) => /* @__PURE__ */ o(
497
- "span",
498
- {
499
- ref: e,
500
- className: r,
501
- style: s ? { opacity: 0 } : void 0,
502
- children: t && /* @__PURE__ */ o("span", { className: a, children: t })
503
- }
504
- );
505
- Z.displayName = "ButtonIcon";
506
- /*!
507
- @versini/ui-button v7.1.5
508
- © 2025 gizmette.com
509
- */
510
- try {
511
- window.__VERSINI_UI_BUTTON__ || (window.__VERSINI_UI_BUTTON__ = {
512
- version: "7.1.5",
513
- buildTime: "08/23/2025 12:21 PM EDT",
514
- homepage: "https://github.com/aversini/ui-components",
515
- license: "MIT"
516
- });
517
- } catch {
518
- }
519
- const ee = S.forwardRef(
520
- ({
521
- children: e,
522
- mode: r = "system",
523
- className: t,
524
- active: a = !1,
525
- ...s
526
- }, i) => {
527
- const c = a ? l(
528
- "relative",
529
- "focus-within:static",
530
- "focus-within:after:border-transparent",
531
- "after:absolute",
532
- "after:content-['']",
533
- "after:border-b-2",
534
- "after:bottom-[-4px]",
535
- "after:left-0",
536
- "after:right-0",
537
- {
538
- "after:border-table-dark": r === "dark",
539
- "after:border-table-light": r === "light",
540
- "after:border-table-dark dark:after:border-table-light": r === "system",
541
- "after:border-table-light dark:after:border-table-dark": r === "alt-system"
542
- }
543
- ) : "";
544
- return /* @__PURE__ */ o("div", { className: c, children: /* @__PURE__ */ o(
545
- Z,
546
- {
547
- className: t,
548
- ref: i,
549
- mode: r,
550
- radius: "small",
551
- size: "small",
552
- align: "center",
553
- ...s,
554
- children: e
555
- }
556
- ) });
557
- }
558
- );
559
- ee.displayName = "ButtonSort";
560
- const $ = ({
561
- children: e,
562
- fill: r,
563
- viewBox: t,
564
- className: a,
565
- defaultViewBox: s,
566
- size: i,
567
- title: c,
568
- semantic: d = !1,
569
- ...n
570
- }) => {
571
- const g = l(i, a);
572
- return /* @__PURE__ */ o(ce, { children: /* @__PURE__ */ N(
573
- "svg",
574
- {
575
- xmlns: "http://www.w3.org/2000/svg",
576
- className: g,
577
- viewBox: t || s,
578
- fill: r || "currentColor",
579
- role: "img",
580
- "aria-hidden": !d,
581
- focusable: !1,
582
- ...n,
583
- children: [
584
- c && d && /* @__PURE__ */ o("title", { children: c }),
585
- e
586
- ]
587
- }
588
- ) });
589
- };
590
- /*!
591
- @versini/ui-svgicon v4.2.0
592
- © 2025 gizmette.com
593
- */
594
- try {
595
- window.__VERSINI_UI_SVGICON__ || (window.__VERSINI_UI_SVGICON__ = {
596
- version: "4.2.0",
597
- buildTime: "05/17/2025 06:18 PM EDT",
598
- homepage: "https://github.com/aversini/ui-components",
599
- license: "MIT"
600
- });
601
- } catch {
602
- }
603
- const Ee = ({
604
- className: e,
605
- viewBox: r,
606
- title: t,
607
- monotone: a,
608
- ...s
609
- }) => /* @__PURE__ */ N(
610
- $,
611
- {
612
- defaultViewBox: "0 0 576 512",
613
- size: "size-5",
614
- viewBox: r,
615
- className: e,
616
- title: t || "Sort",
617
- ...s,
618
- children: [
619
- /* @__PURE__ */ o(
620
- "path",
621
- {
622
- d: "M297.4 137.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l41.3-41.4V448c0 17.7 14.3 32 32 32s32-14.3 32-32V141.3l41.4 41.4c12.5 12.5 32.8 12.5 45.3 0 6.2-6.2 9.4-14.4 9.4-22.6s-3.1-16.4-9.4-22.6l-96-96c-6.3-6.4-14.5-9.5-22.7-9.5s-16.4 3.1-22.6 9.4z",
623
- opacity: a ? "1" : "0.4"
624
- }
625
- ),
626
- /* @__PURE__ */ o("path", { d: "M137.4 470.6c12.5 12.5 32.8 12.5 45.3 0l96-96c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 370.7V64c0-17.7-14.3-32-32-32s-32 14.3-32 32v306.7l-41.4-41.3c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l96 96z" })
627
- ]
628
- }
629
- ), Se = ({
630
- className: e,
631
- viewBox: r,
632
- title: t,
633
- monotone: a,
634
- ...s
635
- }) => /* @__PURE__ */ N(
636
- $,
637
- {
638
- defaultViewBox: "0 0 576 512",
639
- size: "size-5",
640
- viewBox: r,
641
- className: e,
642
- title: t || "Sort Down",
643
- ...s,
644
- children: [
645
- /* @__PURE__ */ o(
646
- "path",
647
- {
648
- d: "M288 64c0-17.7 14.3-32 32-32h224c17.7 0 32 14.3 32 32s-14.3 32-32 32H320c-17.7 0-32-14.3-32-32m0 128c0-17.7 14.3-32 32-32h160c17.7 0 32 14.3 32 32s-14.3 32-32 32H320c-17.7 0-32-14.3-32-32m0 128c0-17.7 14.3-32 32-32h96c17.7 0 32 14.3 32 32s-14.3 32-32 32h-96c-17.7 0-32-14.3-32-32m0 128c0-17.7 14.3-32 32-32h32c17.7 0 32 14.3 32 32s-14.3 32-32 32h-32c-17.7 0-32-14.3-32-32",
649
- opacity: a ? "1" : "0.4"
650
- }
651
- ),
652
- /* @__PURE__ */ o("path", { d: "M128 480c9 0 17.5-3.8 23.6-10.4l88-96c11.9-13 11.1-33.3-2-45.2s-33.3-11.1-45.2 2L160 365.7V64c0-17.7-14.3-32-32-32S96 46.3 96 64v301.7l-32.4-35.3c-11.9-13-32.2-13.9-45.2-2s-13.9 32.2-2 45.2l88 96c6.1 6.6 14.6 10.4 23.6 10.4" })
653
- ]
654
- }
655
- ), ze = ({
656
- className: e,
657
- viewBox: r,
658
- title: t,
659
- monotone: a,
660
- ...s
661
- }) => /* @__PURE__ */ N(
662
- $,
663
- {
664
- defaultViewBox: "0 0 576 512",
665
- size: "size-5",
666
- viewBox: r,
667
- className: e,
668
- title: t || "Sort Up",
669
- ...s,
670
- children: [
671
- /* @__PURE__ */ o(
672
- "path",
673
- {
674
- d: "M288 64c0-17.7 14.3-32 32-32h32c17.7 0 32 14.3 32 32s-14.3 32-32 32h-32c-17.7 0-32-14.3-32-32m0 128c0-17.7 14.3-32 32-32h96c17.7 0 32 14.3 32 32s-14.3 32-32 32h-96c-17.7 0-32-14.3-32-32m0 128c0-17.7 14.3-32 32-32h160c17.7 0 32 14.3 32 32s-14.3 32-32 32H320c-17.7 0-32-14.3-32-32m0 128c0-17.7 14.3-32 32-32h224c17.7 0 32 14.3 32 32s-14.3 32-32 32H320c-17.7 0-32-14.3-32-32",
675
- opacity: a ? "1" : "0.4"
676
- }
677
- ),
678
- /* @__PURE__ */ o("path", { d: "M128 32c9 0 17.5 3.8 23.6 10.4l88 96c11.9 13 11.1 33.3-2 45.2s-33.3 11.1-45.2-2L160 146.3V448c0 17.7-14.3 32-32 32s-32-14.3-32-32V146.3l-32.4 35.3c-11.9 13-32.2 13.9-45.2 2s-13.9-32.2-2-45.2l88-96C110.5 35.8 119 32 128 32" })
679
- ]
680
- }
681
- );
682
- /*!
683
- @versini/ui-icons v4.10.0
684
- © 2025 gizmette.com
685
- */
686
- try {
687
- window.__VERSINI_UI_ICONS__ || (window.__VERSINI_UI_ICONS__ = {
688
- version: "4.10.0",
689
- buildTime: "05/17/2025 06:18 PM EDT",
690
- homepage: "https://github.com/aversini/ui-components",
691
- license: "MIT"
692
- });
693
- } catch {
694
- }
695
- const C = S.createContext({
1
+ import { jsx as l, jsxs as f } from "react/jsx-runtime";
2
+ import { ButtonSort_private as C } from "@versini/ui-button";
3
+ import { IconSortUp as w, IconSortDown as v, IconSort as T } from "@versini/ui-icons";
4
+ import N, { useContext as m } from "react";
5
+ import o from "clsx";
6
+ import { TableCellSortDirections as k } from "../TableConstants/TableConstants.js";
7
+ const y = N.createContext({
696
8
  mode: "light",
697
9
  cellWrapper: "thead",
698
10
  stickyHeader: !1,
699
11
  stickyFooter: !1,
700
12
  compact: !1
701
- }), z = "thead", D = "tfoot", _ = "tbody", E = {
702
- ASC: "asc",
703
- DESC: "desc"
704
- }, Le = ({
705
- mode: e,
706
- className: r,
707
- wrapperClassName: t,
708
- stickyHeader: a,
13
+ }), p = "thead", x = "tfoot", h = "tbody", R = ({
14
+ mode: t,
15
+ className: a,
16
+ wrapperClassName: e,
17
+ stickyHeader: r,
709
18
  stickyFooter: s
710
19
  }) => ({
711
- wrapper: l(
20
+ wrapper: o(
712
21
  "not-prose relative w-full rounded-lg shadow-md",
713
22
  {
714
- "overflow-x-auto": !a && !s,
715
- "overflow-y-scroll": a || s,
716
- "bg-surface-darker": e === "dark" || e === "system",
717
- "bg-surface-light": e === "light" || e === "alt-system",
718
- "dark:bg-surface-light": e === "system",
719
- "dark:bg-surface-darker": e === "alt-system",
720
- "text-copy-light": e === "dark",
721
- "text-copy-dark": e === "light",
722
- "text-copy-light dark:text-copy-dark": e === "system",
723
- "text-copy-dark dark:text-copy-light": e === "alt-system"
23
+ "overflow-x-auto": !r && !s,
24
+ "overflow-y-scroll": r || s,
25
+ "bg-surface-darker": t === "dark" || t === "system",
26
+ "bg-surface-light": t === "light" || t === "alt-system",
27
+ "dark:bg-surface-light": t === "system",
28
+ "dark:bg-surface-darker": t === "alt-system",
29
+ "text-copy-light": t === "dark",
30
+ "text-copy-dark": t === "light",
31
+ "text-copy-light dark:text-copy-dark": t === "system",
32
+ "text-copy-dark dark:text-copy-light": t === "alt-system"
724
33
  },
725
- t
34
+ e
726
35
  ),
727
- table: l("my-0 w-full text-left text-sm", r, {
728
- "text-copy-light": e === "dark",
729
- "text-copy-dark": e === "light",
730
- "text-copy-light dark:text-copy-dark": e === "system",
731
- "text-copy-dark dark:text-copy-light": e === "alt-system"
36
+ table: o("my-0 w-full text-left text-sm", a, {
37
+ "text-copy-light": t === "dark",
38
+ "text-copy-dark": t === "light",
39
+ "text-copy-light dark:text-copy-dark": t === "system",
40
+ "text-copy-dark dark:text-copy-light": t === "alt-system"
732
41
  }),
733
- caption: l("py-2 text-sm font-bold", {
734
- "text-copy-light": e === "dark",
735
- "text-copy-dark": e === "light",
736
- "text-copy-light dark:text-copy-dark": e === "system",
737
- "text-copy-dark dark:text-copy-light": e === "alt-system"
42
+ caption: o("py-2 text-sm font-bold", {
43
+ "text-copy-light": t === "dark",
44
+ "text-copy-dark": t === "light",
45
+ "text-copy-light dark:text-copy-dark": t === "system",
46
+ "text-copy-dark dark:text-copy-light": t === "alt-system"
738
47
  })
739
- }), Me = ({
740
- className: e,
741
- stickyHeader: r,
742
- mode: t
743
- }) => l(
48
+ }), S = ({
49
+ className: t,
50
+ stickyHeader: a,
51
+ mode: e
52
+ }) => o(
744
53
  {
745
- "sticky top-0 z-10": r,
746
- "shadow-[rgb(190_190_190_/20%)_0_0.5rem_1rem]": r && t === "dark",
747
- "shadow-[rgb(190_190_190_/20%)_0_0.5rem_1rem] dark:shadow-[rgb(65_65_65_/30%)_0_0.5rem_1rem]": r && t === "system",
748
- "shadow-[rgb(65_65_65_/30%)_0_0.5rem_1rem]": r && t === "light",
749
- "shadow-[rgb(65_65_65_/30%)_0_0.5rem_1rem] dark:shadow-[rgb(190_190_190_/20%)_0_0.5rem_1rem]": r && t === "alt-system"
54
+ "sticky top-0 z-10": a,
55
+ "shadow-[rgb(190_190_190_/20%)_0_0.5rem_1rem]": a && e === "dark",
56
+ "shadow-[rgb(190_190_190_/20%)_0_0.5rem_1rem] dark:shadow-[rgb(65_65_65_/30%)_0_0.5rem_1rem]": a && e === "system",
57
+ "shadow-[rgb(65_65_65_/30%)_0_0.5rem_1rem]": a && e === "light",
58
+ "shadow-[rgb(65_65_65_/30%)_0_0.5rem_1rem] dark:shadow-[rgb(190_190_190_/20%)_0_0.5rem_1rem]": a && e === "alt-system"
750
59
  },
751
- e
752
- ), Ve = ({
753
- className: e,
754
- stickyFooter: r,
755
- mode: t
756
- }) => l(
60
+ t
61
+ ), E = ({
62
+ className: t,
63
+ stickyFooter: a,
64
+ mode: e
65
+ }) => o(
757
66
  {
758
- "sticky bottom-0 z-10": r,
759
- "shadow-[rgb(190_190_190_/20%)_0_-0.5rem_1rem]": r && t === "dark",
760
- "shadow-[rgb(190_190_190_/20%)_0_-0.5rem_1rem] dark:shadow-[rgb(65_65_65_/30%)_0_-0.5rem_1rem]": r && t === "system",
761
- "shadow-[rgb(65_65_65_/30%)_0_-0.5rem_1rem]": r && t === "light",
762
- "shadow-[rgb(65_65_65_/30%)_-0_0.5rem_1rem] dark:shadow-[rgb(190_190_190_/20%)_0_-0.5rem_1rem]": r && t === "alt-system"
67
+ "sticky bottom-0 z-10": a,
68
+ "shadow-[rgb(190_190_190_/20%)_0_-0.5rem_1rem]": a && e === "dark",
69
+ "shadow-[rgb(190_190_190_/20%)_0_-0.5rem_1rem] dark:shadow-[rgb(65_65_65_/30%)_0_-0.5rem_1rem]": a && e === "system",
70
+ "shadow-[rgb(65_65_65_/30%)_0_-0.5rem_1rem]": a && e === "light",
71
+ "shadow-[rgb(65_65_65_/30%)_-0_0.5rem_1rem] dark:shadow-[rgb(190_190_190_/20%)_0_-0.5rem_1rem]": a && e === "alt-system"
763
72
  },
764
- e
765
- ), Oe = ({
766
- mode: e,
767
- className: r,
768
- cellWrapper: t
769
- }) => t === z || t === D ? l(
73
+ t
74
+ ), A = ({
75
+ mode: t,
76
+ className: a,
77
+ cellWrapper: e
78
+ }) => e === p || e === x ? o(
770
79
  {
771
- "bg-table-head-dark": e === "dark" || e === "system",
772
- "bg-table-head-light": e === "light" || e === "alt-system",
773
- "dark:bg-table-head-light": e === "system",
774
- "dark:bg-table-head-dark": e === "alt-system"
80
+ "bg-table-head-dark": t === "dark" || t === "system",
81
+ "bg-table-head-light": t === "light" || t === "alt-system",
82
+ "dark:bg-table-head-light": t === "system",
83
+ "dark:bg-table-head-dark": t === "alt-system"
775
84
  },
776
- r
777
- ) : l(
85
+ a
86
+ ) : o(
778
87
  "border-b last:border-0",
779
88
  {
780
- "border-table-dark": e === "dark" || e === "system",
781
- "odd:bg-table-dark-odd even:bg-table-dark-even": t === _ && e === "dark",
782
- "border-table-light": e === "light" || e === "alt-system",
783
- "odd:bg-table-light-odd even:bg-table-light-even": t === _ && e === "light",
784
- "dark:border-table-light": e === "system",
785
- "odd:bg-table-dark-odd even:bg-table-dark-even dark:odd:bg-table-light-odd dark:even:bg-table-light-even": t === _ && e === "system",
786
- "dark:border-table-dark": e === "alt-system",
787
- "odd:bg-table-light-odd even:bg-table-light-even dark:odd:bg-table-dark-odd dark:even:bg-table-dark-even": t === _ && e === "alt-system"
89
+ "border-table-dark": t === "dark" || t === "system",
90
+ "odd:bg-table-dark-odd even:bg-table-dark-even": e === h && t === "dark",
91
+ "border-table-light": t === "light" || t === "alt-system",
92
+ "odd:bg-table-light-odd even:bg-table-light-even": e === h && t === "light",
93
+ "dark:border-table-light": t === "system",
94
+ "odd:bg-table-dark-odd even:bg-table-dark-even dark:odd:bg-table-light-odd dark:even:bg-table-light-even": e === h && t === "system",
95
+ "dark:border-table-dark": t === "alt-system",
96
+ "odd:bg-table-light-odd even:bg-table-light-even dark:odd:bg-table-dark-odd dark:even:bg-table-dark-even": e === h && t === "alt-system"
788
97
  },
789
- r
790
- ), Ae = ({
791
- cellWrapper: e,
792
- className: r,
793
- compact: t,
794
- mode: a,
98
+ a
99
+ ), L = ({
100
+ cellWrapper: t,
101
+ className: a,
102
+ compact: e,
103
+ mode: r,
795
104
  align: s
796
105
  }) => ({
797
- alignClasses: l({
106
+ alignClasses: o({
798
107
  "flex justify-start text-left": s === "left",
799
108
  "flex justify-center text-center": s === "center",
800
109
  "flex justify-end text-right": s === "right"
801
110
  }),
802
- mainClasses: l(
111
+ mainClasses: o(
803
112
  {
804
- "text-copy-light": a === "dark" || a === "system",
805
- "text-copy-dark": a === "light" || a === "alt-system",
806
- "dark:text-copy-dark": a === "system",
807
- "dark:text-copy-light": a === "alt-system",
808
- "px-4 py-3": !t && (e === z || e === D),
809
- "p-4": !t && e === _,
810
- "px-2 py-1.5": t
113
+ "text-copy-light": r === "dark" || r === "system",
114
+ "text-copy-dark": r === "light" || r === "alt-system",
115
+ "dark:text-copy-dark": r === "system",
116
+ "dark:text-copy-light": r === "alt-system",
117
+ "px-4 py-3": !e && (t === p || t === x),
118
+ "p-4": !e && t === h,
119
+ "px-2 py-1.5": e
811
120
  },
812
- r
121
+ a
813
122
  )
814
- }), je = ({
815
- buttonClassName: e
816
- }) => l("rounded-none text-sm", e), De = ({
817
- children: e,
818
- mode: r = "system",
819
- caption: t,
820
- compact: a,
123
+ }), P = ({
124
+ buttonClassName: t
125
+ }) => o("rounded-none text-sm", t), U = ({
126
+ children: t,
127
+ mode: a = "system",
128
+ caption: e,
129
+ compact: r,
821
130
  summary: s,
822
- className: i,
823
- wrapperClassName: c,
824
- maxHeight: d,
131
+ className: c,
132
+ wrapperClassName: g,
133
+ maxHeight: b,
825
134
  stickyHeader: n,
826
- stickyFooter: g,
827
- ...b
135
+ stickyFooter: d,
136
+ ..._
828
137
  }) => {
829
- const h = Le({
830
- mode: r,
831
- className: i,
832
- wrapperClassName: c,
138
+ const i = R({
139
+ mode: a,
140
+ className: c,
141
+ wrapperClassName: g,
833
142
  stickyHeader: n,
834
- stickyFooter: g
143
+ stickyFooter: d
835
144
  });
836
- return /* @__PURE__ */ o(
837
- C.Provider,
145
+ return /* @__PURE__ */ l(
146
+ y.Provider,
838
147
  {
839
- value: { mode: r, stickyHeader: n, stickyFooter: g, compact: a },
840
- children: /* @__PURE__ */ o(
148
+ value: { mode: a, stickyHeader: n, stickyFooter: d, compact: r },
149
+ children: /* @__PURE__ */ l(
841
150
  "div",
842
151
  {
843
- className: h.wrapper,
844
- ...d && {
845
- style: { maxHeight: d }
152
+ className: i.wrapper,
153
+ ...b && {
154
+ style: { maxHeight: b }
846
155
  },
847
- children: /* @__PURE__ */ N("table", { className: h.table, summary: s, ...b, children: [
848
- t && /* @__PURE__ */ o("caption", { className: h.caption, children: t }),
849
- e
156
+ children: /* @__PURE__ */ f("table", { className: i.table, summary: s, ..._, children: [
157
+ e && /* @__PURE__ */ l("caption", { className: i.caption, children: e }),
158
+ t
850
159
  ] })
851
160
  }
852
161
  )
853
162
  }
854
163
  );
855
- }, He = ({
856
- children: e,
857
- className: r,
858
- ...t
164
+ }, Y = ({
165
+ children: t,
166
+ className: a,
167
+ ...e
859
168
  }) => {
860
- const a = B(C);
861
- a.cellWrapper = z;
862
- const s = Me({
863
- className: r,
864
- mode: a.mode,
865
- stickyHeader: a.stickyHeader
169
+ const r = m(y);
170
+ r.cellWrapper = p;
171
+ const s = S({
172
+ className: a,
173
+ mode: r.mode,
174
+ stickyHeader: r.stickyHeader
866
175
  });
867
- return /* @__PURE__ */ o("thead", { className: s, ...t, children: e });
868
- }, Fe = ({
869
- children: e,
870
- className: r,
871
- ...t
176
+ return /* @__PURE__ */ l("thead", { className: s, ...e, children: t });
177
+ }, q = ({
178
+ children: t,
179
+ className: a,
180
+ ...e
872
181
  }) => {
873
- const a = B(C);
874
- a.cellWrapper = D;
875
- const s = Ve({
876
- className: r,
877
- mode: a.mode,
878
- stickyFooter: a.stickyFooter
182
+ const r = m(y);
183
+ r.cellWrapper = x;
184
+ const s = E({
185
+ className: a,
186
+ mode: r.mode,
187
+ stickyFooter: r.stickyFooter
879
188
  });
880
- return /* @__PURE__ */ o("tfoot", { className: s, ...t, children: e });
881
- }, Ge = ({ children: e, ...r }) => {
882
- const t = B(C);
883
- return t.cellWrapper = _, /* @__PURE__ */ o("tbody", { ...r, children: e });
884
- }, qe = ({
885
- children: e,
886
- className: r,
887
- ...t
189
+ return /* @__PURE__ */ l("tfoot", { className: s, ...e, children: t });
190
+ }, G = ({ children: t, ...a }) => {
191
+ const e = m(y);
192
+ return e.cellWrapper = h, /* @__PURE__ */ l("tbody", { ...a, children: t });
193
+ }, H = ({
194
+ children: t,
195
+ className: a,
196
+ ...e
888
197
  }) => {
889
- const a = B(C), s = Oe({
890
- mode: a.mode,
891
- cellWrapper: a.cellWrapper,
892
- className: r
198
+ const r = m(y), s = A({
199
+ mode: r.mode,
200
+ cellWrapper: r.cellWrapper,
201
+ className: a
893
202
  });
894
- return /* @__PURE__ */ o("tr", { className: s, ...t, children: e });
895
- }, Pe = ({
896
- children: e,
897
- component: r,
898
- className: t,
899
- align: a,
203
+ return /* @__PURE__ */ l("tr", { className: s, ...e, children: t });
204
+ }, W = ({
205
+ children: t,
206
+ component: a,
207
+ className: e,
208
+ align: r,
900
209
  ...s
901
210
  }) => {
902
- const i = B(C), c = r || (i.cellWrapper === z ? "th" : "td"), { mainClasses: d, alignClasses: n } = Ae({
903
- cellWrapper: i.cellWrapper,
904
- className: t,
905
- mode: i.mode,
906
- compact: i.compact,
907
- align: a
211
+ const c = m(y), g = a || (c.cellWrapper === p ? "th" : "td"), { mainClasses: b, alignClasses: n } = L({
212
+ cellWrapper: c.cellWrapper,
213
+ className: e,
214
+ mode: c.mode,
215
+ compact: c.compact,
216
+ align: r
908
217
  });
909
- return a ? /* @__PURE__ */ o(c, { className: d, ...s, children: /* @__PURE__ */ o("div", { className: n, children: e }) }) : /* @__PURE__ */ o(c, { className: d, ...s, children: e });
910
- }, Ye = ({
911
- align: e,
912
- children: r,
913
- buttonClassName: t,
914
- className: a,
218
+ return r ? /* @__PURE__ */ l(g, { className: b, ...s, children: /* @__PURE__ */ l("div", { className: n, children: t }) }) : /* @__PURE__ */ l(g, { className: b, ...s, children: t });
219
+ }, J = ({
220
+ align: t,
221
+ children: a,
222
+ buttonClassName: e,
223
+ className: r,
915
224
  component: s,
916
- focusMode: i = "alt-system",
917
- mode: c = "alt-system",
918
- onClick: d,
225
+ focusMode: c = "alt-system",
226
+ mode: g = "alt-system",
227
+ onClick: b,
919
228
  sortDirection: n,
920
- sortedCell: g,
921
- cellId: b,
922
- ...h
229
+ sortedCell: d,
230
+ cellId: _,
231
+ ...i
923
232
  }) => {
924
- const m = je({ buttonClassName: t });
925
- return /* @__PURE__ */ o(
926
- Pe,
233
+ const u = P({ buttonClassName: e });
234
+ return /* @__PURE__ */ l(
235
+ W,
927
236
  {
928
237
  component: s,
929
- className: a,
238
+ className: r,
930
239
  role: "columnheader",
931
- "aria-sort": n === E.ASC && g === b ? "ascending" : n === E.DESC && g === b ? "descending" : "other",
932
- ...h,
933
- children: /* @__PURE__ */ o(
934
- ee,
240
+ "aria-sort": n === k.ASC && d === _ ? "ascending" : n === k.DESC && d === _ ? "descending" : "other",
241
+ ...i,
242
+ children: /* @__PURE__ */ l(
243
+ C,
935
244
  {
936
- active: g === b,
937
- className: m,
938
- onClick: d,
939
- align: e,
245
+ active: d === _,
246
+ className: u,
247
+ onClick: b,
248
+ align: t,
940
249
  noBorder: !0,
941
- focusMode: i,
942
- mode: c,
250
+ focusMode: c,
251
+ mode: g,
943
252
  fullWidth: !0,
944
- labelRight: r,
945
- children: n === E.ASC && g === b ? /* @__PURE__ */ o(ze, { className: "size-4", monotone: !0 }) : n === E.DESC && g === b ? /* @__PURE__ */ o(Se, { className: "size-4", monotone: !0 }) : /* @__PURE__ */ o(Ee, { className: "size-4", monotone: !0 })
253
+ labelRight: a,
254
+ children: n === k.ASC && d === _ ? /* @__PURE__ */ l(w, { className: "size-4", monotone: !0 }) : n === k.DESC && d === _ ? /* @__PURE__ */ l(v, { className: "size-4", monotone: !0 }) : /* @__PURE__ */ l(T, { className: "size-4", monotone: !0 })
946
255
  }
947
256
  )
948
257
  }
949
258
  );
950
259
  };
951
260
  export {
952
- De as Table,
953
- Ge as TableBody,
954
- Pe as TableCell,
955
- Ye as TableCellSort,
956
- E as TableCellSortDirections,
957
- Fe as TableFooter,
958
- He as TableHead,
959
- qe as TableRow
261
+ U as Table,
262
+ G as TableBody,
263
+ W as TableCell,
264
+ J as TableCellSort,
265
+ q as TableFooter,
266
+ Y as TableHead,
267
+ H as TableRow
960
268
  };
@@ -0,0 +1,7 @@
1
+ const e = {
2
+ ASC: "asc",
3
+ DESC: "desc"
4
+ };
5
+ export {
6
+ e as TableCellSortDirections
7
+ };
package/dist/index.d.ts CHANGED
@@ -2,8 +2,8 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import React from 'react';
3
3
 
4
4
  declare const TableCellSortDirections: {
5
- ASC: string;
6
- DESC: string;
5
+ readonly ASC: "asc";
6
+ readonly DESC: "desc";
7
7
  };
8
8
 
9
9
  type TableProps = {
package/dist/index.js CHANGED
@@ -1,24 +1,25 @@
1
- import { Table as i, TableBody as T, TableCell as a, TableCellSort as r, TableCellSortDirections as _, TableFooter as t, TableHead as b, TableRow as n } from "./components/Table/Table.js";
1
+ import { Table as r, TableBody as i, TableCell as T, TableCellSort as a, TableFooter as t, TableHead as _, TableRow as b } from "./components/Table/Table.js";
2
+ import { TableCellSortDirections as I } from "./components/TableConstants/TableConstants.js";
2
3
  /*!
3
- @versini/ui-table v4.0.16
4
+ @versini/ui-table v4.0.18
4
5
  © 2025 gizmette.com
5
6
  */
6
7
  try {
7
8
  window.__VERSINI_UI_TABLE__ || (window.__VERSINI_UI_TABLE__ = {
8
- version: "4.0.16",
9
- buildTime: "08/23/2025 12:23 PM EDT",
9
+ version: "4.0.18",
10
+ buildTime: "09/01/2025 02:20 PM EDT",
10
11
  homepage: "https://github.com/aversini/ui-components",
11
12
  license: "MIT"
12
13
  });
13
14
  } catch {
14
15
  }
15
16
  export {
16
- i as Table,
17
- T as TableBody,
18
- a as TableCell,
19
- r as TableCellSort,
20
- _ as TableCellSortDirections,
17
+ r as Table,
18
+ i as TableBody,
19
+ T as TableCell,
20
+ a as TableCellSort,
21
+ I as TableCellSortDirections,
21
22
  t as TableFooter,
22
- b as TableHead,
23
- n as TableRow
23
+ _ as TableHead,
24
+ b as TableRow
24
25
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@versini/ui-table",
3
- "version": "4.0.16",
3
+ "version": "4.0.18",
4
4
  "license": "MIT",
5
5
  "author": "Arno Versini",
6
6
  "publishConfig": {
@@ -14,6 +14,20 @@
14
14
  "type": "module",
15
15
  "main": "dist/index.js",
16
16
  "types": "dist/index.d.ts",
17
+ "exports": {
18
+ ".": {
19
+ "types": "./dist/index.d.ts",
20
+ "import": "./dist/index.js"
21
+ },
22
+ "./constants": {
23
+ "types": "./dist/index.d.ts",
24
+ "import": "./dist/components/TableConstants/TableConstants.js"
25
+ },
26
+ "./table": {
27
+ "types": "./dist/index.d.ts",
28
+ "import": "./dist/components/Table/Table.js"
29
+ }
30
+ },
17
31
  "files": [
18
32
  "dist",
19
33
  "README.md"
@@ -42,11 +56,11 @@
42
56
  },
43
57
  "devDependencies": {
44
58
  "@testing-library/jest-dom": "6.8.0",
45
- "@versini/ui-types": "../ui-types"
59
+ "@versini/ui-types": "5.0.7"
46
60
  },
47
61
  "dependencies": {
48
62
  "@tailwindcss/typography": "0.5.16",
49
- "@versini/ui-button": "../ui-button",
63
+ "@versini/ui-button": "7.1.6",
50
64
  "@versini/ui-icons": "4.10.0",
51
65
  "clsx": "2.1.1",
52
66
  "tailwindcss": "4.1.12"
@@ -54,5 +68,5 @@
54
68
  "sideEffects": [
55
69
  "**/*.css"
56
70
  ],
57
- "gitHead": "d568e20474c6c87f836c4cb6548f2cc0143a353c"
71
+ "gitHead": "c577149643ec36cad454587166e62410a77aed38"
58
72
  }