@versini/ui-table 2.0.2 → 2.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +88 -88
  2. package/package.json +5 -5
package/dist/index.js CHANGED
@@ -1,20 +1,20 @@
1
1
  import d from "clsx";
2
- import { jsx as l, jsxs as k, Fragment as P } from "react/jsx-runtime";
2
+ import { jsx as i, jsxs as k, Fragment as P } from "react/jsx-runtime";
3
3
  import N, { useContext as p } from "react";
4
4
  /*!
5
- @versini/ui-table v2.0.2
5
+ @versini/ui-table v2.0.4
6
6
  © 2024 gizmette.com
7
7
  */
8
8
  try {
9
9
  window.__VERSINI_UI_TABLE__ || (window.__VERSINI_UI_TABLE__ = {
10
- version: "2.0.2",
11
- buildTime: "12/30/2024 12:27 PM EST",
10
+ version: "2.0.4",
11
+ buildTime: "12/30/2024 03:39 PM EST",
12
12
  homepage: "https://github.com/aversini/ui-components",
13
13
  license: "MIT"
14
14
  });
15
15
  } catch {
16
16
  }
17
- const _ = "thead", C = "tfoot", u = "tbody", f = {
17
+ const _ = "thead", T = "tfoot", u = "tbody", f = {
18
18
  ASC: "asc",
19
19
  DESC: "desc"
20
20
  }, A = ({
@@ -78,7 +78,7 @@ const _ = "thead", C = "tfoot", u = "tbody", f = {
78
78
  mode: e,
79
79
  className: r,
80
80
  cellWrapper: t
81
- }) => t === _ || t === C ? d(
81
+ }) => t === _ || t === T ? d(
82
82
  {
83
83
  "bg-table-head-dark": e === "dark",
84
84
  "bg-table-head-light": e === "light",
@@ -110,35 +110,35 @@ const _ = "thead", C = "tfoot", u = "tbody", f = {
110
110
  "text-copy-dark": a === "light",
111
111
  "text-copy-light dark:text-copy-dark": a === "system",
112
112
  "text-copy-dark dark:text-copy-light": a === "alt-system",
113
- "px-4 py-3": !t && (e === _ || e === C),
113
+ "px-4 py-3": !t && (e === _ || e === T),
114
114
  "p-4": !t && e === u,
115
115
  "px-2 py-1.5": t
116
116
  },
117
117
  r
118
118
  ), F = ({
119
119
  buttonClassName: e
120
- }) => d("rounded-none text-sm", e), B = "av-button", I = "icon", G = "button", Y = "link", $ = ({
120
+ }) => d("rounded-none text-sm", e), B = "av-button", z = "icon", G = "button", Y = "link", q = ({
121
121
  type: e,
122
122
  size: r,
123
123
  labelRight: t,
124
124
  labelLeft: a,
125
125
  align: o
126
126
  }) => {
127
- const i = "text-sm font-medium max-h-8 py-0", s = "text-base font-medium max-h-9 py-1", c = "text-lg font-medium max-h-12 py-2";
127
+ const l = "text-sm font-medium max-h-8 py-0", s = "text-base font-medium max-h-9 py-1", c = "text-lg font-medium max-h-12 py-2";
128
128
  switch (e) {
129
129
  case G:
130
130
  return d("px-4", {
131
- [i]: r === "small",
131
+ [l]: r === "small",
132
132
  [s]: r === "medium",
133
133
  [c]: r === "large"
134
134
  });
135
135
  case Y:
136
136
  return d("px-4 text-center", {
137
- [i]: r === "small",
137
+ [l]: r === "small",
138
138
  [s]: r === "medium",
139
139
  [c]: r === "large"
140
140
  });
141
- case I:
141
+ case z:
142
142
  return d("inline-flex items-center", {
143
143
  "justify-center": o === "center",
144
144
  "justify-start": o === "left",
@@ -151,7 +151,7 @@ const _ = "thead", C = "tfoot", u = "tbody", f = {
151
151
  "h-12 px-4 text-lg font-medium": r === "large" && (t || a)
152
152
  });
153
153
  }
154
- }, q = ({
154
+ }, J = ({
155
155
  mode: e,
156
156
  noBackground: r,
157
157
  noTruncate: t,
@@ -208,7 +208,7 @@ const _ = "thead", C = "tfoot", u = "tbody", f = {
208
208
  "bg-action-selected-dark text-copy-light dark:bg-action-selected-light dark:text-copy-lighter": e === "system",
209
209
  "bg-action-selected-light text-copy-lighter dark:bg-action-selected-dark dark:text-copy-light": e === "alt-system"
210
210
  });
211
- }, J = ({
211
+ }, K = ({
212
212
  mode: e,
213
213
  disabled: r,
214
214
  variant: t
@@ -243,7 +243,7 @@ const _ = "thead", C = "tfoot", u = "tbody", f = {
243
243
  "hover:bg-action-selected-dark-hover dark:hover:bg-action-selected-light-hover": e === "system",
244
244
  "hover:bg-action-selected-light-hover dark:hover:bg-action-selected-dark-hover": e === "alt-system"
245
245
  });
246
- }, K = ({
246
+ }, Q = ({
247
247
  mode: e,
248
248
  disabled: r,
249
249
  variant: t
@@ -278,7 +278,7 @@ const _ = "thead", C = "tfoot", u = "tbody", f = {
278
278
  "active:bg-action-selected-dark-active dark:active:bg-action-selected-light-active": e === "system",
279
279
  "active:bg-action-selected-light-active dark:active:bg-action-selected-dark-active": e === "alt-system"
280
280
  });
281
- }, Q = ({
281
+ }, X = ({
282
282
  mode: e,
283
283
  noBorder: r,
284
284
  variant: t
@@ -313,20 +313,20 @@ const _ = "thead", C = "tfoot", u = "tbody", f = {
313
313
  "border-border-selected-dark dark:border-border-selected-medium": e === "system",
314
314
  "border-border-selected-medium dark:border-border-selected-dark": e === "alt-system"
315
315
  });
316
- }, X = ({
316
+ }, Z = ({
317
317
  focusMode: e
318
318
  }) => d("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
319
319
  "focus:outline-focus-dark": e === "dark",
320
320
  "focus:outline-focus-light": e === "light",
321
321
  "focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
322
322
  "focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
323
- }), Z = ({
323
+ }), $ = ({
324
324
  type: e,
325
325
  className: r,
326
326
  raw: t,
327
327
  mode: a,
328
328
  focusMode: o,
329
- disabled: i,
329
+ disabled: l,
330
330
  fullWidth: s,
331
331
  size: c,
332
332
  noBorder: g,
@@ -339,61 +339,61 @@ const _ = "thead", C = "tfoot", u = "tbody", f = {
339
339
  radius: w
340
340
  }) => (h || (h = "primary"), t ? d(B, r) : d(
341
341
  B,
342
- q({
342
+ J({
343
343
  mode: a,
344
344
  variant: h,
345
345
  noBackground: m,
346
346
  noTruncate: y,
347
347
  radius: w
348
348
  }),
349
- $({ type: e, size: c, labelRight: n, labelLeft: b, align: x }),
350
- Q({ mode: a, variant: h, noBorder: g }),
351
- X({ focusMode: o }),
352
- J({ mode: a, variant: h, disabled: i }),
353
- K({ mode: a, variant: h, disabled: i }),
349
+ q({ type: e, size: c, labelRight: n, labelLeft: b, align: x }),
350
+ X({ mode: a, variant: h, noBorder: g }),
351
+ Z({ focusMode: o }),
352
+ K({ mode: a, variant: h, disabled: l }),
353
+ Q({ mode: a, variant: h, disabled: l }),
354
354
  {
355
355
  "w-full": s,
356
- "disabled:cursor-not-allowed disabled:opacity-50": i
356
+ "disabled:cursor-not-allowed disabled:opacity-50": l
357
357
  },
358
358
  r
359
359
  )), ee = (e, r, t) => {
360
360
  var a;
361
361
  !r && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof ((a = e == null ? void 0 : e.currentTarget) == null ? void 0 : a.focus) == "function" && e.currentTarget.focus(), typeof t == "function" && t(e);
362
- }, S = N.forwardRef((e, r) => {
362
+ }, I = N.forwardRef((e, r) => {
363
363
  const { onClick: t, noInternalClick: a = !1, ...o } = e;
364
- return /* @__PURE__ */ l(
364
+ return /* @__PURE__ */ i(
365
365
  "button",
366
366
  {
367
367
  ref: r,
368
- onClick: (i) => {
369
- ee(i, a, t);
368
+ onClick: (l) => {
369
+ ee(l, a, t);
370
370
  },
371
371
  ...o
372
372
  }
373
373
  );
374
374
  });
375
- S.displayName = "BaseButton";
375
+ I.displayName = "BaseButton";
376
376
  /*!
377
- @versini/ui-button v2.2.0
377
+ @versini/ui-button v3.0.0
378
378
  © 2024 gizmette.com
379
379
  */
380
380
  try {
381
381
  window.__VERSINI_UI_BUTTON__ || (window.__VERSINI_UI_BUTTON__ = {
382
- version: "2.2.0",
383
- buildTime: "12/30/2024 12:27 PM EST",
382
+ version: "3.0.0",
383
+ buildTime: "12/30/2024 03:38 PM EST",
384
384
  homepage: "https://github.com/aversini/ui-components",
385
385
  license: "MIT"
386
386
  });
387
387
  } catch {
388
388
  }
389
- const E = N.forwardRef(
389
+ const S = N.forwardRef(
390
390
  ({
391
391
  children: e,
392
392
  disabled: r = !1,
393
393
  mode: t = "system",
394
394
  focusMode: a = "system",
395
395
  fullWidth: o = !1,
396
- className: i,
396
+ className: l,
397
397
  type: s = "button",
398
398
  raw: c = !1,
399
399
  noBorder: g = !1,
@@ -404,18 +404,18 @@ const E = N.forwardRef(
404
404
  labelLeft: y,
405
405
  noBackground: x = !1,
406
406
  align: w = "center",
407
- active: z = !1,
407
+ active: E = !1,
408
408
  radius: R = "large",
409
409
  ...V
410
410
  }, L) => {
411
- const M = Z({
412
- type: I,
411
+ const M = $({
412
+ type: z,
413
413
  mode: t,
414
414
  focusMode: a,
415
415
  fullWidth: o,
416
416
  disabled: r,
417
417
  raw: c,
418
- className: i,
418
+ className: l,
419
419
  noBorder: g,
420
420
  size: m,
421
421
  labelRight: h,
@@ -428,7 +428,7 @@ const E = N.forwardRef(
428
428
  "text-copy-light": t === "dark" && !c,
429
429
  "text-copy-accent-dark dark:text-copy-light": t === "alt-system" && !c,
430
430
  "text-copy-light dark:text-copy-accent-dark": t === "system" && !c
431
- }), U = z ? d(
431
+ }), U = E ? d(
432
432
  "relative",
433
433
  "focus-within:static",
434
434
  "focus-within:after:border-transparent",
@@ -445,8 +445,8 @@ const E = N.forwardRef(
445
445
  "after:border-table-light dark:after:border-table-dark": t === "alt-system"
446
446
  }
447
447
  ) : "";
448
- return /* @__PURE__ */ l("div", { className: U, children: /* @__PURE__ */ k(
449
- S,
448
+ return /* @__PURE__ */ i("div", { className: U, children: /* @__PURE__ */ k(
449
+ I,
450
450
  {
451
451
  ref: L,
452
452
  className: M,
@@ -455,29 +455,29 @@ const E = N.forwardRef(
455
455
  "aria-label": n || b,
456
456
  ...V,
457
457
  children: [
458
- y && /* @__PURE__ */ l("span", { className: "pr-2", children: y }),
459
- /* @__PURE__ */ l("div", { className: H, children: e }),
460
- h && /* @__PURE__ */ l("span", { className: "pl-2", children: h })
458
+ y && /* @__PURE__ */ i("span", { className: "pr-2", children: y }),
459
+ /* @__PURE__ */ i("div", { className: H, children: e }),
460
+ h && /* @__PURE__ */ i("span", { className: "pl-2", children: h })
461
461
  ]
462
462
  }
463
463
  ) });
464
464
  }
465
465
  );
466
- E.displayName = "ButtonSort";
467
- const T = ({
466
+ S.displayName = "ButtonSort";
467
+ const C = ({
468
468
  children: e,
469
469
  fill: r,
470
470
  viewBox: t,
471
471
  className: a,
472
472
  defaultViewBox: o,
473
- defaultClassName: i,
473
+ size: l,
474
474
  title: s,
475
475
  semantic: c = !1,
476
476
  ...g
477
477
  }) => {
478
- const n = d(a || i);
478
+ const n = d(l, a);
479
479
  return /* @__PURE__ */ k(P, { children: [
480
- /* @__PURE__ */ l(
480
+ /* @__PURE__ */ i(
481
481
  "svg",
482
482
  {
483
483
  xmlns: "http://www.w3.org/2000/svg",
@@ -491,17 +491,17 @@ const T = ({
491
491
  children: e
492
492
  }
493
493
  ),
494
- s && c && /* @__PURE__ */ l("span", { className: "sr-only", children: s })
494
+ s && c && /* @__PURE__ */ i("span", { className: "sr-only", children: s })
495
495
  ] });
496
496
  };
497
497
  /*!
498
- @versini/ui-svgicon v2.0.2
498
+ @versini/ui-svgicon v3.0.0
499
499
  © 2024 gizmette.com
500
500
  */
501
501
  try {
502
502
  window.__VERSINI_UI_SVGICON__ || (window.__VERSINI_UI_SVGICON__ = {
503
- version: "2.0.2",
504
- buildTime: "12/30/2024 12:27 PM EST",
503
+ version: "3.0.0",
504
+ buildTime: "12/30/2024 03:38 PM EST",
505
505
  homepage: "https://github.com/aversini/ui-components",
506
506
  license: "MIT"
507
507
  });
@@ -514,23 +514,23 @@ const te = ({
514
514
  monotone: a,
515
515
  ...o
516
516
  }) => /* @__PURE__ */ k(
517
- T,
517
+ C,
518
518
  {
519
519
  defaultViewBox: "0 0 576 512",
520
- defaultClassName: "size-5",
520
+ size: "size-5",
521
521
  viewBox: r,
522
522
  className: e,
523
523
  title: t || "Sort",
524
524
  ...o,
525
525
  children: [
526
- /* @__PURE__ */ l(
526
+ /* @__PURE__ */ i(
527
527
  "path",
528
528
  {
529
529
  opacity: a ? "1" : "0.4",
530
530
  d: "M393.4 41.4c12.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 0L448 141.3V448c0 17.7-14.3 32-32 32s-32-14.3-32-32V141.3l-41.4 41.4c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l96-96z"
531
531
  }
532
532
  ),
533
- /* @__PURE__ */ l("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 32V370.7L86.6 329.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l96 96z" })
533
+ /* @__PURE__ */ i("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 32V370.7L86.6 329.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l96 96z" })
534
534
  ]
535
535
  }
536
536
  ), re = ({
@@ -540,23 +540,23 @@ const te = ({
540
540
  monotone: a,
541
541
  ...o
542
542
  }) => /* @__PURE__ */ k(
543
- T,
543
+ C,
544
544
  {
545
545
  defaultViewBox: "0 0 576 512",
546
- defaultClassName: "size-5",
546
+ size: "size-5",
547
547
  viewBox: r,
548
548
  className: e,
549
549
  title: t || "Sort Down",
550
550
  ...o,
551
551
  children: [
552
- /* @__PURE__ */ l(
552
+ /* @__PURE__ */ i(
553
553
  "path",
554
554
  {
555
555
  opacity: a ? "1" : "0.4",
556
556
  d: "M288 448c0 17.7 14.3 32 32 32h32c17.7 0 32-14.3 32-32s-14.3-32-32-32H320c-17.7 0-32 14.3-32 32zm0-128c0 17.7 14.3 32 32 32h96c17.7 0 32-14.3 32-32s-14.3-32-32-32H320c-17.7 0-32 14.3-32 32zm0-128c0 17.7 14.3 32 32 32H480c17.7 0 32-14.3 32-32s-14.3-32-32-32H320c-17.7 0-32 14.3-32 32zm0-128c0 17.7 14.3 32 32 32H544c17.7 0 32-14.3 32-32s-14.3-32-32-32H320c-17.7 0-32 14.3-32 32z"
557
557
  }
558
558
  ),
559
- /* @__PURE__ */ l("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-32s-32 14.3-32 32V365.7L63.6 330.4c-11.9-13-32.2-13.9-45.2-2s-13.9 32.2-2 45.2l88 96C110.5 476.2 119 480 128 480z" })
559
+ /* @__PURE__ */ i("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-32s-32 14.3-32 32V365.7L63.6 330.4c-11.9-13-32.2-13.9-45.2-2s-13.9 32.2-2 45.2l88 96C110.5 476.2 119 480 128 480z" })
560
560
  ]
561
561
  }
562
562
  ), ae = ({
@@ -566,34 +566,34 @@ const te = ({
566
566
  monotone: a,
567
567
  ...o
568
568
  }) => /* @__PURE__ */ k(
569
- T,
569
+ C,
570
570
  {
571
571
  defaultViewBox: "0 0 576 512",
572
- defaultClassName: "size-5",
572
+ size: "size-5",
573
573
  viewBox: r,
574
574
  className: e,
575
575
  title: t || "Sort Up",
576
576
  ...o,
577
577
  children: [
578
- /* @__PURE__ */ l(
578
+ /* @__PURE__ */ i(
579
579
  "path",
580
580
  {
581
581
  opacity: a ? "1" : "0.4",
582
582
  d: "M288 64c0-17.7 14.3-32 32-32h32c17.7 0 32 14.3 32 32s-14.3 32-32 32H320c-17.7 0-32-14.3-32-32zm0 128c0-17.7 14.3-32 32-32h96c17.7 0 32 14.3 32 32s-14.3 32-32 32H320c-17.7 0-32-14.3-32-32zm0 128c0-17.7 14.3-32 32-32H480c17.7 0 32 14.3 32 32s-14.3 32-32 32H320c-17.7 0-32-14.3-32-32zm0 128c0-17.7 14.3-32 32-32H544c17.7 0 32 14.3 32 32s-14.3 32-32 32H320c-17.7 0-32-14.3-32-32z"
583
583
  }
584
584
  ),
585
- /* @__PURE__ */ l("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.3L63.6 181.6c-11.9 13-32.2 13.9-45.2 2s-13.9-32.2-2-45.2l88-96C110.5 35.8 119 32 128 32z" })
585
+ /* @__PURE__ */ i("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.3L63.6 181.6c-11.9 13-32.2 13.9-45.2 2s-13.9-32.2-2-45.2l88-96C110.5 35.8 119 32 128 32z" })
586
586
  ]
587
587
  }
588
588
  );
589
589
  /*!
590
- @versini/ui-icons v2.0.2
590
+ @versini/ui-icons v3.0.0
591
591
  © 2024 gizmette.com
592
592
  */
593
593
  try {
594
594
  window.__VERSINI_UI_ICONS__ || (window.__VERSINI_UI_ICONS__ = {
595
- version: "2.0.2",
596
- buildTime: "12/30/2024 12:27 PM EST",
595
+ version: "3.0.0",
596
+ buildTime: "12/30/2024 03:38 PM EST",
597
597
  homepage: "https://github.com/aversini/ui-components",
598
598
  license: "MIT"
599
599
  });
@@ -611,7 +611,7 @@ const v = N.createContext({
611
611
  caption: t,
612
612
  compact: a,
613
613
  summary: o,
614
- className: i,
614
+ className: l,
615
615
  wrapperClassName: s,
616
616
  maxHeight: c,
617
617
  stickyHeader: g,
@@ -620,16 +620,16 @@ const v = N.createContext({
620
620
  }) => {
621
621
  const m = A({
622
622
  mode: r,
623
- className: i,
623
+ className: l,
624
624
  wrapperClassName: s,
625
625
  stickyHeader: g,
626
626
  stickyFooter: n
627
627
  });
628
- return /* @__PURE__ */ l(
628
+ return /* @__PURE__ */ i(
629
629
  v.Provider,
630
630
  {
631
631
  value: { mode: r, stickyHeader: g, stickyFooter: n, compact: a },
632
- children: /* @__PURE__ */ l(
632
+ children: /* @__PURE__ */ i(
633
633
  "div",
634
634
  {
635
635
  className: m.wrapper,
@@ -637,7 +637,7 @@ const v = N.createContext({
637
637
  style: { maxHeight: c }
638
638
  },
639
639
  children: /* @__PURE__ */ k("table", { className: m.table, summary: o, ...b, children: [
640
- t && /* @__PURE__ */ l("caption", { className: m.caption, children: t }),
640
+ t && /* @__PURE__ */ i("caption", { className: m.caption, children: t }),
641
641
  e
642
642
  ] })
643
643
  }
@@ -656,23 +656,23 @@ const v = N.createContext({
656
656
  mode: a.mode,
657
657
  stickyHeader: a.stickyHeader
658
658
  });
659
- return /* @__PURE__ */ l("thead", { className: o, ...t, children: e });
659
+ return /* @__PURE__ */ i("thead", { className: o, ...t, children: e });
660
660
  }, ne = ({
661
661
  children: e,
662
662
  className: r,
663
663
  ...t
664
664
  }) => {
665
665
  const a = p(v);
666
- a.cellWrapper = C;
666
+ a.cellWrapper = T;
667
667
  const o = W({
668
668
  className: r,
669
669
  mode: a.mode,
670
670
  stickyFooter: a.stickyFooter
671
671
  });
672
- return /* @__PURE__ */ l("tfoot", { className: o, ...t, children: e });
672
+ return /* @__PURE__ */ i("tfoot", { className: o, ...t, children: e });
673
673
  }, ge = ({ children: e, ...r }) => {
674
674
  const t = p(v);
675
- return t.cellWrapper = u, /* @__PURE__ */ l("tbody", { ...r, children: e });
675
+ return t.cellWrapper = u, /* @__PURE__ */ i("tbody", { ...r, children: e });
676
676
  }, he = ({
677
677
  children: e,
678
678
  className: r,
@@ -683,27 +683,27 @@ const v = N.createContext({
683
683
  cellWrapper: a.cellWrapper,
684
684
  className: r
685
685
  });
686
- return /* @__PURE__ */ l("tr", { className: o, ...t, children: e });
686
+ return /* @__PURE__ */ i("tr", { className: o, ...t, children: e });
687
687
  }, oe = ({
688
688
  children: e,
689
689
  component: r,
690
690
  className: t,
691
691
  ...a
692
692
  }) => {
693
- const o = p(v), i = r || (o.cellWrapper === _ ? "th" : "td"), s = D({
693
+ const o = p(v), l = r || (o.cellWrapper === _ ? "th" : "td"), s = D({
694
694
  cellWrapper: o.cellWrapper,
695
695
  className: t,
696
696
  mode: o.mode,
697
697
  compact: o.compact
698
698
  });
699
- return /* @__PURE__ */ l(i, { className: s, ...a, children: e });
699
+ return /* @__PURE__ */ i(l, { className: s, ...a, children: e });
700
700
  }, be = ({
701
701
  align: e,
702
702
  children: r,
703
703
  buttonClassName: t,
704
704
  className: a,
705
705
  component: o,
706
- focusMode: i = "alt-system",
706
+ focusMode: l = "alt-system",
707
707
  mode: s = "alt-system",
708
708
  onClick: c,
709
709
  sortDirection: g,
@@ -712,7 +712,7 @@ const v = N.createContext({
712
712
  ...m
713
713
  }) => {
714
714
  const h = F({ buttonClassName: t });
715
- return /* @__PURE__ */ l(
715
+ return /* @__PURE__ */ i(
716
716
  oe,
717
717
  {
718
718
  component: o,
@@ -720,19 +720,19 @@ const v = N.createContext({
720
720
  role: "columnheader",
721
721
  "aria-sort": g === f.ASC && n === b ? "ascending" : g === f.DESC && n === b ? "descending" : "other",
722
722
  ...m,
723
- children: /* @__PURE__ */ l(
724
- E,
723
+ children: /* @__PURE__ */ i(
724
+ S,
725
725
  {
726
726
  active: n === b,
727
727
  className: h,
728
728
  onClick: c,
729
729
  align: e,
730
730
  noBorder: !0,
731
- focusMode: i,
731
+ focusMode: l,
732
732
  mode: s,
733
733
  fullWidth: !0,
734
734
  labelRight: r,
735
- children: g === f.ASC && n === b ? /* @__PURE__ */ l(ae, { className: "size-4", monotone: !0 }) : g === f.DESC && n === b ? /* @__PURE__ */ l(re, { className: "size-4", monotone: !0 }) : /* @__PURE__ */ l(te, { className: "size-4", monotone: !0 })
735
+ children: g === f.ASC && n === b ? /* @__PURE__ */ i(ae, { className: "size-4", monotone: !0 }) : g === f.DESC && n === b ? /* @__PURE__ */ i(re, { className: "size-4", monotone: !0 }) : /* @__PURE__ */ i(te, { className: "size-4", monotone: !0 })
736
736
  }
737
737
  )
738
738
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@versini/ui-table",
3
- "version": "2.0.2",
3
+ "version": "2.0.4",
4
4
  "license": "MIT",
5
5
  "author": "Arno Versini",
6
6
  "publishConfig": {
@@ -39,14 +39,14 @@
39
39
  },
40
40
  "dependencies": {
41
41
  "@tailwindcss/typography": "0.5.15",
42
- "@versini/ui-button": "2.2.0",
43
- "@versini/ui-icons": "2.0.2",
44
- "@versini/ui-types": "2.2.0",
42
+ "@versini/ui-button": "3.0.0",
43
+ "@versini/ui-icons": "3.0.0",
44
+ "@versini/ui-types": "3.0.0",
45
45
  "clsx": "2.1.1",
46
46
  "tailwindcss": "3.4.17"
47
47
  },
48
48
  "sideEffects": [
49
49
  "**/*.css"
50
50
  ],
51
- "gitHead": "914bac4e3074de68e54cd84fe91e6fe50c38b554"
51
+ "gitHead": "c489b5e7d0cfacc90e2a9880811dccf575243961"
52
52
  }