@versini/ui-table 2.0.7 → 2.0.8
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 +23 -23
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import d from "clsx";
|
|
2
|
-
import { jsx as i, jsxs as k, Fragment as
|
|
2
|
+
import { jsx as i, jsxs as k, Fragment as U } from "react/jsx-runtime";
|
|
3
3
|
import N, { useContext as p } from "react";
|
|
4
4
|
/*!
|
|
5
|
-
@versini/ui-table v2.0.
|
|
5
|
+
@versini/ui-table v2.0.8
|
|
6
6
|
© 2024 gizmette.com
|
|
7
7
|
*/
|
|
8
8
|
try {
|
|
9
9
|
window.__VERSINI_UI_TABLE__ || (window.__VERSINI_UI_TABLE__ = {
|
|
10
|
-
version: "2.0.
|
|
11
|
-
buildTime: "12/
|
|
10
|
+
version: "2.0.8",
|
|
11
|
+
buildTime: "12/31/2024 09:02 AM EST",
|
|
12
12
|
homepage: "https://github.com/aversini/ui-components",
|
|
13
13
|
license: "MIT"
|
|
14
14
|
});
|
|
@@ -17,7 +17,7 @@ try {
|
|
|
17
17
|
const _ = "thead", T = "tfoot", u = "tbody", f = {
|
|
18
18
|
ASC: "asc",
|
|
19
19
|
DESC: "desc"
|
|
20
|
-
},
|
|
20
|
+
}, O = ({
|
|
21
21
|
mode: e,
|
|
22
22
|
className: r,
|
|
23
23
|
wrapperClassName: t,
|
|
@@ -48,7 +48,7 @@ const _ = "thead", T = "tfoot", u = "tbody", f = {
|
|
|
48
48
|
"text-copy-light dark:text-copy-dark": e === "system",
|
|
49
49
|
"text-copy-dark dark:text-copy-light": e === "alt-system"
|
|
50
50
|
})
|
|
51
|
-
}),
|
|
51
|
+
}), W = ({
|
|
52
52
|
className: e,
|
|
53
53
|
stickyHeader: r,
|
|
54
54
|
mode: t
|
|
@@ -61,7 +61,7 @@ const _ = "thead", T = "tfoot", u = "tbody", f = {
|
|
|
61
61
|
"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"
|
|
62
62
|
},
|
|
63
63
|
e
|
|
64
|
-
),
|
|
64
|
+
), P = ({
|
|
65
65
|
className: e,
|
|
66
66
|
stickyFooter: r,
|
|
67
67
|
mode: t
|
|
@@ -133,7 +133,7 @@ const _ = "thead", T = "tfoot", u = "tbody", f = {
|
|
|
133
133
|
[c]: r === "large"
|
|
134
134
|
});
|
|
135
135
|
case Y:
|
|
136
|
-
return d("
|
|
136
|
+
return d("text-center", {
|
|
137
137
|
[l]: r === "small",
|
|
138
138
|
[s]: r === "medium",
|
|
139
139
|
[c]: r === "large"
|
|
@@ -144,9 +144,9 @@ const _ = "thead", T = "tfoot", u = "tbody", f = {
|
|
|
144
144
|
"justify-start": o === "left",
|
|
145
145
|
"justify-end": o === "right",
|
|
146
146
|
"h-6 w-6 p-0": r === "small" && !(t || a),
|
|
147
|
-
"h-6 px-
|
|
147
|
+
"h-6 px-2 text-sm font-medium": r === "small" && (t || a),
|
|
148
148
|
"h-8 w-8 p-1": r === "medium" && !(t || a),
|
|
149
|
-
"h-8 px-
|
|
149
|
+
"h-8 px-3 text-base font-medium": r === "medium" && (t || a),
|
|
150
150
|
"h-12 w-12 p-2": r === "large" && !(t || a),
|
|
151
151
|
"h-12 px-4 text-lg font-medium": r === "large" && (t || a)
|
|
152
152
|
});
|
|
@@ -380,13 +380,13 @@ const _ = "thead", T = "tfoot", u = "tbody", f = {
|
|
|
380
380
|
});
|
|
381
381
|
I.displayName = "BaseButton";
|
|
382
382
|
/*!
|
|
383
|
-
@versini/ui-button v3.
|
|
383
|
+
@versini/ui-button v3.2.0
|
|
384
384
|
© 2024 gizmette.com
|
|
385
385
|
*/
|
|
386
386
|
try {
|
|
387
387
|
window.__VERSINI_UI_BUTTON__ || (window.__VERSINI_UI_BUTTON__ = {
|
|
388
|
-
version: "3.
|
|
389
|
-
buildTime: "12/
|
|
388
|
+
version: "3.2.0",
|
|
389
|
+
buildTime: "12/31/2024 09:01 AM EST",
|
|
390
390
|
homepage: "https://github.com/aversini/ui-components",
|
|
391
391
|
license: "MIT"
|
|
392
392
|
});
|
|
@@ -429,12 +429,12 @@ const S = N.forwardRef(
|
|
|
429
429
|
noBackground: x,
|
|
430
430
|
align: w,
|
|
431
431
|
radius: R
|
|
432
|
-
}),
|
|
432
|
+
}), A = d({
|
|
433
433
|
"text-copy-accent-dark": t === "light" && !c,
|
|
434
434
|
"text-copy-light": t === "dark" && !c,
|
|
435
435
|
"text-copy-accent-dark dark:text-copy-light": t === "alt-system" && !c,
|
|
436
436
|
"text-copy-light dark:text-copy-accent-dark": t === "system" && !c
|
|
437
|
-
}),
|
|
437
|
+
}), H = E ? d(
|
|
438
438
|
"relative",
|
|
439
439
|
"focus-within:static",
|
|
440
440
|
"focus-within:after:border-transparent",
|
|
@@ -451,7 +451,7 @@ const S = N.forwardRef(
|
|
|
451
451
|
"after:border-table-light dark:after:border-table-dark": t === "alt-system"
|
|
452
452
|
}
|
|
453
453
|
) : "";
|
|
454
|
-
return /* @__PURE__ */ i("div", { className:
|
|
454
|
+
return /* @__PURE__ */ i("div", { className: H, children: /* @__PURE__ */ k(
|
|
455
455
|
I,
|
|
456
456
|
{
|
|
457
457
|
ref: L,
|
|
@@ -462,7 +462,7 @@ const S = N.forwardRef(
|
|
|
462
462
|
...V,
|
|
463
463
|
children: [
|
|
464
464
|
y && /* @__PURE__ */ i("span", { className: "pr-2", children: y }),
|
|
465
|
-
/* @__PURE__ */ i("div", { className:
|
|
465
|
+
/* @__PURE__ */ i("div", { className: A, children: e }),
|
|
466
466
|
h && /* @__PURE__ */ i("span", { className: "pl-2", children: h })
|
|
467
467
|
]
|
|
468
468
|
}
|
|
@@ -482,7 +482,7 @@ const C = ({
|
|
|
482
482
|
...g
|
|
483
483
|
}) => {
|
|
484
484
|
const n = d(l, a);
|
|
485
|
-
return /* @__PURE__ */ k(
|
|
485
|
+
return /* @__PURE__ */ k(U, { children: [
|
|
486
486
|
/* @__PURE__ */ i(
|
|
487
487
|
"svg",
|
|
488
488
|
{
|
|
@@ -507,7 +507,7 @@ const C = ({
|
|
|
507
507
|
try {
|
|
508
508
|
window.__VERSINI_UI_SVGICON__ || (window.__VERSINI_UI_SVGICON__ = {
|
|
509
509
|
version: "3.0.2",
|
|
510
|
-
buildTime: "12/
|
|
510
|
+
buildTime: "12/31/2024 09:01 AM EST",
|
|
511
511
|
homepage: "https://github.com/aversini/ui-components",
|
|
512
512
|
license: "MIT"
|
|
513
513
|
});
|
|
@@ -599,7 +599,7 @@ const te = ({
|
|
|
599
599
|
try {
|
|
600
600
|
window.__VERSINI_UI_ICONS__ || (window.__VERSINI_UI_ICONS__ = {
|
|
601
601
|
version: "3.0.2",
|
|
602
|
-
buildTime: "12/
|
|
602
|
+
buildTime: "12/31/2024 09:01 AM EST",
|
|
603
603
|
homepage: "https://github.com/aversini/ui-components",
|
|
604
604
|
license: "MIT"
|
|
605
605
|
});
|
|
@@ -624,7 +624,7 @@ const v = N.createContext({
|
|
|
624
624
|
stickyFooter: n,
|
|
625
625
|
...b
|
|
626
626
|
}) => {
|
|
627
|
-
const m =
|
|
627
|
+
const m = O({
|
|
628
628
|
mode: r,
|
|
629
629
|
className: l,
|
|
630
630
|
wrapperClassName: s,
|
|
@@ -657,7 +657,7 @@ const v = N.createContext({
|
|
|
657
657
|
}) => {
|
|
658
658
|
const a = p(v);
|
|
659
659
|
a.cellWrapper = _;
|
|
660
|
-
const o =
|
|
660
|
+
const o = W({
|
|
661
661
|
className: r,
|
|
662
662
|
mode: a.mode,
|
|
663
663
|
stickyHeader: a.stickyHeader
|
|
@@ -670,7 +670,7 @@ const v = N.createContext({
|
|
|
670
670
|
}) => {
|
|
671
671
|
const a = p(v);
|
|
672
672
|
a.cellWrapper = T;
|
|
673
|
-
const o =
|
|
673
|
+
const o = P({
|
|
674
674
|
className: r,
|
|
675
675
|
mode: a.mode,
|
|
676
676
|
stickyFooter: a.stickyFooter
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@versini/ui-table",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.8",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Arno Versini",
|
|
6
6
|
"publishConfig": {
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@tailwindcss/typography": "0.5.15",
|
|
42
|
-
"@versini/ui-button": "3.
|
|
42
|
+
"@versini/ui-button": "3.2.0",
|
|
43
43
|
"@versini/ui-icons": "3.0.2",
|
|
44
44
|
"@versini/ui-types": "3.0.2",
|
|
45
45
|
"clsx": "2.1.1",
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"sideEffects": [
|
|
49
49
|
"**/*.css"
|
|
50
50
|
],
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "50cdcea89f3a2fe910fe22c526e51523d7f0f410"
|
|
52
52
|
}
|