@boxcustodia/library 0.3.0 → 0.3.3
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.d.ts +2 -0
- package/dist/index.es.js +206 -204
- package/dist/index.es10.js +1 -1
- package/dist/index.es100.js +40 -301
- package/dist/index.es101.js +30 -12
- package/dist/index.es102.js +29 -34
- package/dist/index.es103.js +53 -44
- package/dist/index.es104.js +54 -29
- package/dist/index.es105.js +92 -30
- package/dist/index.es106.js +35 -257
- package/dist/index.es107.js +24 -12
- package/dist/index.es108.js +30 -9
- package/dist/index.es109.js +7 -3672
- package/dist/index.es110.js +258 -3
- package/dist/index.es111.js +4 -6
- package/dist/index.es112.js +3 -4
- package/dist/index.es113.js +14 -57
- package/dist/index.es114.js +5 -19
- package/dist/index.es115.js +54 -1059
- package/dist/index.es116.js +12 -4
- package/dist/index.es117.js +19 -4
- package/dist/index.es118.js +37 -25
- package/dist/index.es119.js +13 -39
- package/dist/index.es120.js +1062 -13
- package/dist/index.es121.js +4 -12
- package/dist/index.es122.js +4 -22
- package/dist/index.es123.js +27 -11
- package/dist/index.es124.js +23 -237
- package/dist/index.es125.js +19 -23
- package/dist/index.es126.js +11 -21
- package/dist/index.es127.js +224 -12
- package/dist/index.es128.js +4 -4
- package/dist/index.es129.js +4 -4
- package/dist/index.es13.js +1 -1
- package/dist/index.es130.js +41 -12
- package/dist/index.es131.js +12 -817
- package/dist/index.es132.js +44 -9
- package/dist/index.es133.js +6 -4
- package/dist/index.es134.js +9 -64
- package/dist/index.es135.js +11 -224
- package/dist/index.es136.js +822 -11
- package/dist/index.es137.js +20 -40
- package/dist/index.es138.js +12 -4
- package/dist/index.es139.js +11 -17
- package/dist/index.es140.js +12 -44
- package/dist/index.es141.js +63 -17
- package/dist/index.es142.js +240 -13
- package/dist/index.es144.js +4 -33
- package/dist/index.es145.js +6 -13
- package/dist/index.es146.js +2 -61
- package/dist/index.es147.js +32 -43
- package/dist/index.es148.js +13 -216
- package/dist/index.es149.js +61 -2
- package/dist/index.es15.js +1 -1
- package/dist/index.es150.js +43 -25
- package/dist/index.es151.js +211 -601
- package/dist/index.es152.js +2 -21
- package/dist/index.es153.js +25 -36
- package/dist/index.es154.js +605 -10
- package/dist/index.es156.js +1 -1
- package/dist/index.es159.js +8 -8
- package/dist/index.es16.js +1 -1
- package/dist/index.es161.js +19 -5
- package/dist/index.es162.js +35 -63
- package/dist/index.es163.js +10 -10
- package/dist/index.es164.js +5 -123
- package/dist/index.es165.js +58 -128
- package/dist/index.es166.js +11 -14
- package/dist/index.es167.js +122 -30
- package/dist/index.es168.js +134 -14
- package/dist/index.es169.js +12 -7
- package/dist/index.es17.js +1 -1
- package/dist/index.es170.js +32 -49
- package/dist/index.es171.js +15 -8
- package/dist/index.es172.js +9 -6
- package/dist/index.es173.js +50 -2
- package/dist/index.es174.js +43 -217
- package/dist/index.es175.js +646 -40
- package/dist/index.es178.js +3 -3
- package/dist/index.es179.js +1 -1
- package/dist/index.es180.js +217 -5
- package/dist/index.es181.js +6 -28
- package/dist/index.es182.js +24 -646
- package/dist/index.es184.js +2 -118
- package/dist/index.es185.js +6 -2
- package/dist/index.es186.js +3 -8
- package/dist/index.es187.js +2056 -3
- package/dist/index.es188.js +114 -2050
- package/dist/index.es189.js +2 -2
- package/dist/index.es196.js +1 -1
- package/dist/index.es197.js +1 -1
- package/dist/index.es198.js +2 -2
- package/dist/index.es199.js +1 -1
- package/dist/index.es201.js +1 -1
- package/dist/index.es203.js +1 -1
- package/dist/index.es205.js +21 -14
- package/dist/index.es206.js +9 -7
- package/dist/index.es207.js +38 -7
- package/dist/index.es208.js +17 -18
- package/dist/index.es209.js +12 -52
- package/dist/index.es210.js +7 -6
- package/dist/index.es211.js +5 -6
- package/dist/index.es212.js +4 -6
- package/dist/index.es213.js +17 -7
- package/dist/index.es214.js +6 -16
- package/dist/index.es215.js +5 -8
- package/dist/index.es216.js +8 -6
- package/dist/index.es217.js +6 -7
- package/dist/index.es218.js +6 -13
- package/dist/index.es219.js +15 -10
- package/dist/index.es220.js +13 -84
- package/dist/index.es221.js +13 -5
- package/dist/index.es222.js +6 -17
- package/dist/index.es223.js +6 -5
- package/dist/index.es224.js +6 -6
- package/dist/index.es225.js +4 -6
- package/dist/index.es226.js +515 -9
- package/dist/index.es227.js +50 -7
- package/dist/index.es228.js +18 -21
- package/dist/index.es229.js +10 -9
- package/dist/index.es230.js +19 -38
- package/dist/index.es231.js +9 -18
- package/dist/index.es232.js +7 -11
- package/dist/index.es233.js +7 -7
- package/dist/index.es234.js +5 -5
- package/dist/index.es235.js +6 -4
- package/dist/index.es236.js +9 -5
- package/dist/index.es237.js +5 -8
- package/dist/index.es238.js +9 -6
- package/dist/index.es239.js +12 -15
- package/dist/index.es24.js +7 -55
- package/dist/index.es240.js +9 -4
- package/dist/index.es241.js +8 -515
- package/dist/index.es242.js +11 -50
- package/dist/index.es243.js +14 -17
- package/dist/index.es244.js +6 -9
- package/dist/index.es245.js +7 -19
- package/dist/index.es246.js +6 -8
- package/dist/index.es247.js +6 -7
- package/dist/index.es248.js +6 -7
- package/dist/index.es249.js +9 -5
- package/dist/index.es25.js +54 -114
- package/dist/index.es250.js +84 -6
- package/dist/index.es251.js +65 -10
- package/dist/index.es252.js +37 -5
- package/dist/index.es253.js +9 -8
- package/dist/index.es254.js +8 -12
- package/dist/index.es255.js +7 -9
- package/dist/index.es256.js +10 -10
- package/dist/index.es257.js +7 -14
- package/dist/index.es258.js +8 -65
- package/dist/index.es259.js +6 -37
- package/dist/index.es26.js +112 -40
- package/dist/index.es260.js +5 -9
- package/dist/index.es261.js +15 -8
- package/dist/index.es262.js +15 -8
- package/dist/index.es263.js +3 -8
- package/dist/index.es264.js +19 -16
- package/dist/index.es265.js +50 -199
- package/dist/index.es266.js +16 -22
- package/dist/index.es267.js +177 -24
- package/dist/index.es268.js +189 -359
- package/dist/index.es269.js +22 -25
- package/dist/index.es27.js +41 -40
- package/dist/index.es270.js +24 -177
- package/dist/index.es271.js +371 -2
- package/dist/index.es272.js +2 -398
- package/dist/index.es273.js +366 -691
- package/dist/index.es274.js +720 -280
- package/dist/index.es275.js +277 -55
- package/dist/index.es276.js +59 -8
- package/dist/index.es277.js +9 -28
- package/dist/index.es278.js +29 -199
- package/dist/index.es279.js +198 -15
- package/dist/index.es28.js +39 -19
- package/dist/index.es280.js +25 -8
- package/dist/index.es281.js +16 -4
- package/dist/index.es282.js +8 -14
- package/dist/index.es283.js +4 -15
- package/dist/index.es284.js +13 -9
- package/dist/index.es285.js +14 -4
- package/dist/index.es286.js +25 -13
- package/dist/index.es287.js +29 -5
- package/dist/index.es288.js +5 -7
- package/dist/index.es289.js +4 -333
- package/dist/index.es29.js +18 -13
- package/dist/index.es290.js +57 -19
- package/dist/index.es291.js +28 -4
- package/dist/index.es292.js +46 -4
- package/dist/index.es293.js +67 -3
- package/dist/index.es294.js +35 -69
- package/dist/index.es295.js +19 -4
- package/dist/index.es296.js +66 -23
- package/dist/index.es297.js +68 -29
- package/dist/index.es298.js +69 -5
- package/dist/index.es299.js +68 -4
- package/dist/index.es30.js +16 -21
- package/dist/index.es300.js +43 -54
- package/dist/index.es301.js +39 -20
- package/dist/index.es302.js +50 -38
- package/dist/index.es303.js +30 -48
- package/dist/index.es304.js +37 -32
- package/dist/index.es305.js +66 -13
- package/dist/index.es306.js +47 -43
- package/dist/index.es307.js +76 -47
- package/dist/index.es308.js +32 -54
- package/dist/index.es309.js +35 -57
- package/dist/index.es31.js +22 -70
- package/dist/index.es310.js +39 -38
- package/dist/index.es311.js +21 -37
- package/dist/index.es312.js +21 -50
- package/dist/index.es313.js +21 -40
- package/dist/index.es314.js +22 -34
- package/dist/index.es315.js +21 -63
- package/dist/index.es316.js +20 -62
- package/dist/index.es317.js +14 -91
- package/dist/index.es318.js +37 -38
- package/dist/index.es319.js +38 -39
- package/dist/index.es32.js +70 -24
- package/dist/index.es320.js +14 -41
- package/dist/index.es321.js +14 -25
- package/dist/index.es322.js +9 -29
- package/dist/index.es323.js +4 -29
- package/dist/index.es324.js +13 -31
- package/dist/index.es325.js +4 -29
- package/dist/index.es326.js +6 -29
- package/dist/index.es327.js +332 -18
- package/dist/index.es328.js +19 -46
- package/dist/index.es329.js +4 -46
- package/dist/index.es33.js +24 -62
- package/dist/index.es330.js +4 -19
- package/dist/index.es331.js +3 -20
- package/dist/index.es332.js +72 -15
- package/dist/index.es333.js +4 -3
- package/dist/index.es34.js +59 -10
- package/dist/index.es35.js +12 -71
- package/dist/index.es36.js +82 -102
- package/dist/index.es366.js +3 -3
- package/dist/index.es367.js +1 -1
- package/dist/index.es37.js +94 -66
- package/dist/index.es371.js +5 -6
- package/dist/index.es372.js +3 -2
- package/dist/index.es373.js +23 -7
- package/dist/index.es374.js +108 -325
- package/dist/index.es375.js +15 -49
- package/dist/index.es376.js +68 -4
- package/dist/index.es377.js +30 -67
- package/dist/index.es378.js +9 -31
- package/dist/index.es379.js +153 -9
- package/dist/index.es38.js +74 -99
- package/dist/index.es380.js +97 -142
- package/dist/index.es381.js +19 -107
- package/dist/index.es382.js +100 -67
- package/dist/index.es383.js +46 -30
- package/dist/index.es384.js +6 -16
- package/dist/index.es385.js +2 -141
- package/dist/index.es386.js +8 -114
- package/dist/index.es387.js +327 -5
- package/dist/index.es388.js +50 -3
- package/dist/index.es389.js +3 -23
- package/dist/index.es39.js +99 -46
- package/dist/index.es390.js +68 -110
- package/dist/index.es391.js +30 -15
- package/dist/index.es392.js +16 -20
- package/dist/index.es393.js +139 -99
- package/dist/index.es394.js +113 -46
- package/dist/index.es40.js +47 -18
- package/dist/index.es41.js +15 -171
- package/dist/index.es418.js +2 -2
- package/dist/index.es42.js +170 -73
- package/dist/index.es421.js +1 -1
- package/dist/index.es422.js +5 -5
- package/dist/index.es423.js +65 -2
- package/dist/index.es424.js +67 -74
- package/dist/index.es425.js +9 -93
- package/dist/index.es426.js +13 -51
- package/dist/index.es427.js +60 -8
- package/dist/index.es428.js +6 -4
- package/dist/index.es429.js +14 -50
- package/dist/index.es43.js +76 -54
- package/dist/index.es430.js +27 -14
- package/dist/index.es431.js +11 -27
- package/dist/index.es432.js +2 -13
- package/dist/index.es433.js +75 -6
- package/dist/index.es434.js +89 -61
- package/dist/index.es435.js +50 -67
- package/dist/index.es436.js +8 -9
- package/dist/index.es437.js +5 -14
- package/dist/index.es438.js +51 -59
- package/dist/index.es44.js +55 -29
- package/dist/index.es45.js +28 -47
- package/dist/index.es46.js +46 -108
- package/dist/index.es47.js +110 -9
- package/dist/index.es48.js +9 -18
- package/dist/index.es49.js +17 -20
- package/dist/index.es50.js +21 -37
- package/dist/index.es51.js +37 -6
- package/dist/index.es52.js +6 -18
- package/dist/index.es53.js +17 -27
- package/dist/index.es54.js +28 -150
- package/dist/index.es55.js +150 -29
- package/dist/index.es56.js +29 -219
- package/dist/index.es57.js +218 -85
- package/dist/index.es58.js +79 -89
- package/dist/index.es59.js +93 -33
- package/dist/index.es60.js +34 -36
- package/dist/index.es61.js +38 -46
- package/dist/index.es62.js +46 -125
- package/dist/index.es63.js +125 -6
- package/dist/index.es64.js +6 -30
- package/dist/index.es65.js +30 -24
- package/dist/index.es66.js +24 -68
- package/dist/index.es67.js +65 -77
- package/dist/index.es68.js +76 -96
- package/dist/index.es69.js +96 -79
- package/dist/index.es7.js +1 -1
- package/dist/index.es70.js +83 -2
- package/dist/index.es71.js +2 -81
- package/dist/index.es72.js +77 -26
- package/dist/index.es723.js +22 -2
- package/dist/index.es724.js +83 -2
- package/dist/index.es725.js +14 -22
- package/dist/index.es726.js +59 -82
- package/dist/index.es727.js +4 -14
- package/dist/index.es728.js +23 -60
- package/dist/index.es729.js +2 -4
- package/dist/index.es73.js +28 -16
- package/dist/index.es730.js +2 -23
- package/dist/index.es74.js +16 -18
- package/dist/index.es75.js +19 -48
- package/dist/index.es76.js +49 -26
- package/dist/index.es77.js +25 -26
- package/dist/index.es78.js +26 -34
- package/dist/index.es79.js +34 -8
- package/dist/index.es80.js +8 -47
- package/dist/index.es81.js +45 -56
- package/dist/index.es82.js +59 -10
- package/dist/index.es83.js +10 -2
- package/dist/index.es84.js +2 -8
- package/dist/index.es85.js +8 -11
- package/dist/index.es86.js +10 -10
- package/dist/index.es87.js +10 -8
- package/dist/index.es88.js +9 -3
- package/dist/index.es89.js +3 -5
- package/dist/index.es90.js +5 -15
- package/dist/index.es91.js +12 -2279
- package/dist/index.es92.js +2282 -6
- package/dist/index.es93.js +3674 -22
- package/dist/index.es94.js +8 -55
- package/dist/index.es95.js +6 -55
- package/dist/index.es96.js +21 -91
- package/dist/index.es97.js +306 -36
- package/dist/index.es98.js +12 -24
- package/dist/index.es99.js +34 -29
- package/dist/style.css +15 -0
- package/package.json +1 -1
package/dist/index.es69.js
CHANGED
|
@@ -1,85 +1,102 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
import C from "./index.es129.js";
|
|
7
|
-
import { cn as s } from "./index.es82.js";
|
|
8
|
-
import { Button as o } from "./index.es29.js";
|
|
9
|
-
const N = ({
|
|
10
|
-
containerClassName: u,
|
|
11
|
-
containerProps: c,
|
|
12
|
-
selectClassName: l,
|
|
13
|
-
selectProps: g,
|
|
14
|
-
...e
|
|
15
|
-
}) => {
|
|
16
|
-
const [a = 10, m] = j({
|
|
17
|
-
onChange: e == null ? void 0 : e.setPageSize,
|
|
18
|
-
prop: e == null ? void 0 : e.pageSize
|
|
19
|
-
}), { range: r, next: d, prev: f, isFirstPage: b, isLastPage: x } = S({
|
|
20
|
-
...e,
|
|
21
|
-
pageSize: a
|
|
22
|
-
}), h = (n) => {
|
|
23
|
-
const { value: t } = n.target, v = Number(t);
|
|
24
|
-
m(v);
|
|
25
|
-
};
|
|
26
|
-
return /* @__PURE__ */ i.jsxs(
|
|
1
|
+
import { j as t } from "./index.es95.js";
|
|
2
|
+
import * as i from "react";
|
|
3
|
+
import { cn as r } from "./index.es83.js";
|
|
4
|
+
const d = i.forwardRef(
|
|
5
|
+
({ className: e, containerClassName: a, containerProps: o, ...s }, l) => /* @__PURE__ */ t.jsx(
|
|
27
6
|
"div",
|
|
28
7
|
{
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
u
|
|
8
|
+
className: r(
|
|
9
|
+
"ui-relative ui-w-full ui-overflow-auto ui-rounded-md ui-border",
|
|
10
|
+
a
|
|
33
11
|
),
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
"focus-visible:ui-outline-none focus-visible:ui-ring-2 focus-visible:ui-ring-ring focus-visible:ui-ring-offset-2",
|
|
44
|
-
l
|
|
45
|
-
),
|
|
46
|
-
children: P.map((n, t) => /* @__PURE__ */ i.jsx("option", { value: n, children: n }, t))
|
|
47
|
-
}
|
|
48
|
-
),
|
|
49
|
-
/* @__PURE__ */ i.jsxs("span", { children: [
|
|
50
|
-
r.start,
|
|
51
|
-
" - ",
|
|
52
|
-
r.end,
|
|
53
|
-
" de ",
|
|
54
|
-
e.totalItems
|
|
55
|
-
] }),
|
|
56
|
-
/* @__PURE__ */ i.jsxs("div", { className: "ui-space-x-2", children: [
|
|
57
|
-
/* @__PURE__ */ i.jsx(
|
|
58
|
-
o,
|
|
59
|
-
{
|
|
60
|
-
size: "icon",
|
|
61
|
-
variant: "ghost",
|
|
62
|
-
disabled: b,
|
|
63
|
-
onClick: f,
|
|
64
|
-
children: /* @__PURE__ */ i.jsx(z, {})
|
|
65
|
-
}
|
|
66
|
-
),
|
|
67
|
-
/* @__PURE__ */ i.jsx(
|
|
68
|
-
o,
|
|
69
|
-
{
|
|
70
|
-
size: "icon",
|
|
71
|
-
variant: "ghost",
|
|
72
|
-
disabled: x,
|
|
73
|
-
onClick: d,
|
|
74
|
-
children: /* @__PURE__ */ i.jsx(C, {})
|
|
75
|
-
}
|
|
76
|
-
)
|
|
77
|
-
] })
|
|
78
|
-
]
|
|
12
|
+
...o,
|
|
13
|
+
children: /* @__PURE__ */ t.jsx(
|
|
14
|
+
"table",
|
|
15
|
+
{
|
|
16
|
+
ref: l,
|
|
17
|
+
className: r("ui-w-full caption-bottom ui-text-sm", e),
|
|
18
|
+
...s
|
|
19
|
+
}
|
|
20
|
+
)
|
|
79
21
|
}
|
|
80
|
-
)
|
|
81
|
-
|
|
82
|
-
|
|
22
|
+
)
|
|
23
|
+
);
|
|
24
|
+
d.displayName = "Table";
|
|
25
|
+
const u = i.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t.jsx("thead", { ref: o, className: r("[&_tr]:ui-border-b", e), ...a }));
|
|
26
|
+
u.displayName = "TableHeader";
|
|
27
|
+
const m = i.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t.jsx(
|
|
28
|
+
"tbody",
|
|
29
|
+
{
|
|
30
|
+
ref: o,
|
|
31
|
+
className: r("[&_tr:last-child]:ui-border-0", e),
|
|
32
|
+
...a
|
|
33
|
+
}
|
|
34
|
+
));
|
|
35
|
+
m.displayName = "TableBody";
|
|
36
|
+
const b = i.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t.jsx(
|
|
37
|
+
"tfoot",
|
|
38
|
+
{
|
|
39
|
+
ref: o,
|
|
40
|
+
className: r(
|
|
41
|
+
"ui-border-t bg-muted/50 ui-font-medium [&>tr]:last:ui-border-b-0",
|
|
42
|
+
e
|
|
43
|
+
),
|
|
44
|
+
...a
|
|
45
|
+
}
|
|
46
|
+
));
|
|
47
|
+
b.displayName = "TableFooter";
|
|
48
|
+
const c = i.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t.jsx(
|
|
49
|
+
"tr",
|
|
50
|
+
{
|
|
51
|
+
ref: o,
|
|
52
|
+
className: r(
|
|
53
|
+
"ui-border-b ui-transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",
|
|
54
|
+
e
|
|
55
|
+
),
|
|
56
|
+
...a
|
|
57
|
+
}
|
|
58
|
+
));
|
|
59
|
+
c.displayName = "TableRow";
|
|
60
|
+
const f = i.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t.jsx(
|
|
61
|
+
"th",
|
|
62
|
+
{
|
|
63
|
+
ref: o,
|
|
64
|
+
className: r(
|
|
65
|
+
"ui-h-12 ui-px-4 ui-text-left ui-align-middle ui-font-medium ui-text-muted-foreground ui-sticky ui-top-0 ui-bg-background [&:has([role=checkbox])]:ui-pr-0",
|
|
66
|
+
e
|
|
67
|
+
),
|
|
68
|
+
...a
|
|
69
|
+
}
|
|
70
|
+
));
|
|
71
|
+
f.displayName = "TableHead";
|
|
72
|
+
const n = i.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t.jsx(
|
|
73
|
+
"td",
|
|
74
|
+
{
|
|
75
|
+
ref: o,
|
|
76
|
+
className: r(
|
|
77
|
+
"ui-p-4 ui-align-middle [&:has([role=checkbox])]:ui-pr-0",
|
|
78
|
+
e
|
|
79
|
+
),
|
|
80
|
+
...a
|
|
81
|
+
}
|
|
82
|
+
));
|
|
83
|
+
n.displayName = "TableCell";
|
|
84
|
+
const p = i.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t.jsx(
|
|
85
|
+
"caption",
|
|
86
|
+
{
|
|
87
|
+
ref: o,
|
|
88
|
+
className: r("ui-mt-4 ui-text-sm text-muted-foreground", e),
|
|
89
|
+
...a
|
|
90
|
+
}
|
|
91
|
+
));
|
|
92
|
+
p.displayName = "TableCaption";
|
|
83
93
|
export {
|
|
84
|
-
|
|
94
|
+
m as TableBody,
|
|
95
|
+
p as TableCaption,
|
|
96
|
+
n as TableCell,
|
|
97
|
+
b as TableFooter,
|
|
98
|
+
f as TableHead,
|
|
99
|
+
u as TableHeader,
|
|
100
|
+
d as TableRoot,
|
|
101
|
+
c as TableRow
|
|
85
102
|
};
|
package/dist/index.es7.js
CHANGED
package/dist/index.es70.js
CHANGED
|
@@ -1,4 +1,85 @@
|
|
|
1
|
-
|
|
1
|
+
import { j as i } from "./index.es95.js";
|
|
2
|
+
import { useControllableState as j } from "./index.es102.js";
|
|
3
|
+
import { TABLE_PAGE_SIZES as P } from "./index.es71.js";
|
|
4
|
+
import S from "./index.es12.js";
|
|
5
|
+
import z from "./index.es139.js";
|
|
6
|
+
import C from "./index.es128.js";
|
|
7
|
+
import { cn as s } from "./index.es83.js";
|
|
8
|
+
import { Button as o } from "./index.es30.js";
|
|
9
|
+
const N = ({
|
|
10
|
+
containerClassName: u,
|
|
11
|
+
containerProps: c,
|
|
12
|
+
selectClassName: l,
|
|
13
|
+
selectProps: g,
|
|
14
|
+
...e
|
|
15
|
+
}) => {
|
|
16
|
+
const [a = 10, m] = j({
|
|
17
|
+
onChange: e == null ? void 0 : e.setPageSize,
|
|
18
|
+
prop: e == null ? void 0 : e.pageSize
|
|
19
|
+
}), { range: r, next: d, prev: f, isFirstPage: b, isLastPage: x } = S({
|
|
20
|
+
...e,
|
|
21
|
+
pageSize: a
|
|
22
|
+
}), h = (n) => {
|
|
23
|
+
const { value: t } = n.target, v = Number(t);
|
|
24
|
+
m(v);
|
|
25
|
+
};
|
|
26
|
+
return /* @__PURE__ */ i.jsxs(
|
|
27
|
+
"div",
|
|
28
|
+
{
|
|
29
|
+
...c,
|
|
30
|
+
className: s(
|
|
31
|
+
"ui-flex ui-justify-center ui-items-center ui-gap-x-4 ui-bg-white ui-border ui-border-[#D9D9D9] ui-rounded-2xl ui-py-2",
|
|
32
|
+
u
|
|
33
|
+
),
|
|
34
|
+
children: [
|
|
35
|
+
/* @__PURE__ */ i.jsx(
|
|
36
|
+
"select",
|
|
37
|
+
{
|
|
38
|
+
...g,
|
|
39
|
+
value: a,
|
|
40
|
+
onChange: h,
|
|
41
|
+
className: s(
|
|
42
|
+
"ui-border ui-border-input ui-rounded-md ui-w-fit ui-min-w-[3rem] ui-bg-background ui-p-2 ui-ring-offset-background",
|
|
43
|
+
"focus-visible:ui-outline-none focus-visible:ui-ring-2 focus-visible:ui-ring-ring focus-visible:ui-ring-offset-2",
|
|
44
|
+
l
|
|
45
|
+
),
|
|
46
|
+
children: P.map((n, t) => /* @__PURE__ */ i.jsx("option", { value: n, children: n }, t))
|
|
47
|
+
}
|
|
48
|
+
),
|
|
49
|
+
/* @__PURE__ */ i.jsxs("span", { children: [
|
|
50
|
+
r.start,
|
|
51
|
+
" - ",
|
|
52
|
+
r.end,
|
|
53
|
+
" de ",
|
|
54
|
+
e.totalItems
|
|
55
|
+
] }),
|
|
56
|
+
/* @__PURE__ */ i.jsxs("div", { className: "ui-space-x-2", children: [
|
|
57
|
+
/* @__PURE__ */ i.jsx(
|
|
58
|
+
o,
|
|
59
|
+
{
|
|
60
|
+
size: "icon",
|
|
61
|
+
variant: "ghost",
|
|
62
|
+
disabled: b,
|
|
63
|
+
onClick: f,
|
|
64
|
+
children: /* @__PURE__ */ i.jsx(z, {})
|
|
65
|
+
}
|
|
66
|
+
),
|
|
67
|
+
/* @__PURE__ */ i.jsx(
|
|
68
|
+
o,
|
|
69
|
+
{
|
|
70
|
+
size: "icon",
|
|
71
|
+
variant: "ghost",
|
|
72
|
+
disabled: x,
|
|
73
|
+
onClick: d,
|
|
74
|
+
children: /* @__PURE__ */ i.jsx(C, {})
|
|
75
|
+
}
|
|
76
|
+
)
|
|
77
|
+
] })
|
|
78
|
+
]
|
|
79
|
+
}
|
|
80
|
+
);
|
|
81
|
+
};
|
|
82
|
+
N.displayName = "TablePagination";
|
|
2
83
|
export {
|
|
3
|
-
|
|
84
|
+
N as TablePagination
|
|
4
85
|
};
|
package/dist/index.es71.js
CHANGED
|
@@ -1,83 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import { useControllableState as f } from "./index.es105.js";
|
|
3
|
-
import { useState as m, useRef as l, useEffect as p } from "react";
|
|
4
|
-
import { TabsContextProvider as T, useTabsContext as c } from "./index.es138.js";
|
|
5
|
-
import { cn as b } from "./index.es82.js";
|
|
6
|
-
const x = ({
|
|
7
|
-
children: t,
|
|
8
|
-
value: e,
|
|
9
|
-
onChange: s,
|
|
10
|
-
defaultValue: i,
|
|
11
|
-
...o
|
|
12
|
-
}) => {
|
|
13
|
-
const [r = "", a] = f({
|
|
14
|
-
prop: e,
|
|
15
|
-
onChange: s,
|
|
16
|
-
defaultProp: i
|
|
17
|
-
}), [u, d] = m(null);
|
|
18
|
-
return /* @__PURE__ */ n.jsx(
|
|
19
|
-
T,
|
|
20
|
-
{
|
|
21
|
-
value: { activeTab: r, setActiveTab: a, setTargetRef: d, targetRef: u },
|
|
22
|
-
children: /* @__PURE__ */ n.jsx("div", { ...o, children: t })
|
|
23
|
-
}
|
|
24
|
-
);
|
|
25
|
-
};
|
|
26
|
-
x.displayName = "Tabs";
|
|
27
|
-
const v = ({ children: t, className: e }) => {
|
|
28
|
-
const { targetRef: s } = c();
|
|
29
|
-
return /* @__PURE__ */ n.jsxs("div", { className: b("ui-relative ui-mb-4", e), children: [
|
|
30
|
-
/* @__PURE__ */ n.jsx("div", { className: "ui-flex", children: t }),
|
|
31
|
-
/* @__PURE__ */ n.jsx(h, { targetRef: s })
|
|
32
|
-
] });
|
|
33
|
-
};
|
|
34
|
-
v.displayName = "TabList";
|
|
35
|
-
const j = ({ value: t, className: e, ...s }) => {
|
|
36
|
-
const { activeTab: i, setActiveTab: o, setTargetRef: r } = c(), a = i === t;
|
|
37
|
-
return /* @__PURE__ */ n.jsx(
|
|
38
|
-
"button",
|
|
39
|
-
{
|
|
40
|
-
...s,
|
|
41
|
-
type: "button",
|
|
42
|
-
ref: (u) => a && r(u),
|
|
43
|
-
onClick: () => o(t),
|
|
44
|
-
"data-tab": t,
|
|
45
|
-
className: b(
|
|
46
|
-
"ui-px-2 ui-py-2 ui-cursor-pointer ui-w-full ui-min-w-[100px] ui-text-center ui-rounded-t ui-font-semibold ui-select-none",
|
|
47
|
-
"hover:ui-bg-accent hover:ui-text-accent-foreground",
|
|
48
|
-
e
|
|
49
|
-
)
|
|
50
|
-
}
|
|
51
|
-
);
|
|
52
|
-
};
|
|
53
|
-
j.displayName = "TabTrigger";
|
|
54
|
-
const y = ({ value: t, ...e }) => {
|
|
55
|
-
const { activeTab: s } = c();
|
|
56
|
-
return s === t ? /* @__PURE__ */ n.jsx("div", { ...e }) : null;
|
|
57
|
-
}, h = ({ targetRef: t }) => {
|
|
58
|
-
const e = l(null), s = e == null ? void 0 : e.current, i = l(), o = () => {
|
|
59
|
-
if (!t || !s) return;
|
|
60
|
-
const r = t.offsetLeft, a = t.offsetWidth;
|
|
61
|
-
s.style.width = a + "px", s.style.left = r + "px";
|
|
62
|
-
};
|
|
63
|
-
return p(() => {
|
|
64
|
-
if (t)
|
|
65
|
-
return o(), i.current = new ResizeObserver(o), i.current.observe(t), () => {
|
|
66
|
-
var r;
|
|
67
|
-
(r = i.current) == null || r.disconnect();
|
|
68
|
-
};
|
|
69
|
-
}, [t]), /* @__PURE__ */ n.jsx(
|
|
70
|
-
"div",
|
|
71
|
-
{
|
|
72
|
-
ref: e,
|
|
73
|
-
className: "ui-transition-all ui-duration-300 ui-bg-primary ui-rounded ui-absolute ui-top-full ui-h-[3px]"
|
|
74
|
-
}
|
|
75
|
-
);
|
|
76
|
-
};
|
|
77
|
-
y.displayName = "TabContent";
|
|
1
|
+
const E = [10, 25, 50];
|
|
78
2
|
export {
|
|
79
|
-
|
|
80
|
-
v as TabList,
|
|
81
|
-
j as TabTrigger,
|
|
82
|
-
x as Tabs
|
|
3
|
+
E as TABLE_PAGE_SIZES
|
|
83
4
|
};
|
package/dist/index.es72.js
CHANGED
|
@@ -1,32 +1,83 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import { cn as
|
|
6
|
-
const x =
|
|
7
|
-
|
|
1
|
+
import { j as n } from "./index.es95.js";
|
|
2
|
+
import { useControllableState as f } from "./index.es102.js";
|
|
3
|
+
import { useState as m, useRef as l, useEffect as p } from "react";
|
|
4
|
+
import { TabsContextProvider as T, useTabsContext as c } from "./index.es144.js";
|
|
5
|
+
import { cn as b } from "./index.es83.js";
|
|
6
|
+
const x = ({
|
|
7
|
+
children: t,
|
|
8
|
+
value: e,
|
|
9
|
+
onChange: s,
|
|
10
|
+
defaultValue: i,
|
|
11
|
+
...o
|
|
12
|
+
}) => {
|
|
13
|
+
const [r = "", a] = f({
|
|
14
|
+
prop: e,
|
|
15
|
+
onChange: s,
|
|
16
|
+
defaultProp: i
|
|
17
|
+
}), [u, d] = m(null);
|
|
18
|
+
return /* @__PURE__ */ n.jsx(
|
|
19
|
+
T,
|
|
20
|
+
{
|
|
21
|
+
value: { activeTab: r, setActiveTab: a, setTargetRef: d, targetRef: u },
|
|
22
|
+
children: /* @__PURE__ */ n.jsx("div", { ...o, children: t })
|
|
23
|
+
}
|
|
24
|
+
);
|
|
25
|
+
};
|
|
26
|
+
x.displayName = "Tabs";
|
|
27
|
+
const v = ({ children: t, className: e }) => {
|
|
28
|
+
const { targetRef: s } = c();
|
|
29
|
+
return /* @__PURE__ */ n.jsxs("div", { className: b("ui-relative ui-mb-4", e), children: [
|
|
30
|
+
/* @__PURE__ */ n.jsx("div", { className: "ui-flex", children: t }),
|
|
31
|
+
/* @__PURE__ */ n.jsx(h, { targetRef: s })
|
|
32
|
+
] });
|
|
33
|
+
};
|
|
34
|
+
v.displayName = "TabList";
|
|
35
|
+
const j = ({ value: t, className: e, ...s }) => {
|
|
36
|
+
const { activeTab: i, setActiveTab: o, setTargetRef: r } = c(), a = i === t;
|
|
37
|
+
return /* @__PURE__ */ n.jsx(
|
|
38
|
+
"button",
|
|
39
|
+
{
|
|
40
|
+
...s,
|
|
41
|
+
type: "button",
|
|
42
|
+
ref: (u) => a && r(u),
|
|
43
|
+
onClick: () => o(t),
|
|
44
|
+
"data-tab": t,
|
|
45
|
+
className: b(
|
|
46
|
+
"ui-px-2 ui-py-2 ui-cursor-pointer ui-w-full ui-min-w-[100px] ui-text-center ui-rounded-t ui-font-semibold ui-select-none",
|
|
47
|
+
"hover:ui-bg-accent hover:ui-text-accent-foreground",
|
|
48
|
+
e
|
|
49
|
+
)
|
|
50
|
+
}
|
|
51
|
+
);
|
|
52
|
+
};
|
|
53
|
+
j.displayName = "TabTrigger";
|
|
54
|
+
const y = ({ value: t, ...e }) => {
|
|
55
|
+
const { activeTab: s } = c();
|
|
56
|
+
return s === t ? /* @__PURE__ */ n.jsx("div", { ...e }) : null;
|
|
57
|
+
}, h = ({ targetRef: t }) => {
|
|
58
|
+
const e = l(null), s = e == null ? void 0 : e.current, i = l(), o = () => {
|
|
59
|
+
if (!t || !s) return;
|
|
60
|
+
const r = t.offsetLeft, a = t.offsetWidth;
|
|
61
|
+
s.style.width = a + "px", s.style.left = r + "px";
|
|
62
|
+
};
|
|
63
|
+
return p(() => {
|
|
64
|
+
if (t)
|
|
65
|
+
return o(), i.current = new ResizeObserver(o), i.current.observe(t), () => {
|
|
66
|
+
var r;
|
|
67
|
+
(r = i.current) == null || r.disconnect();
|
|
68
|
+
};
|
|
69
|
+
}, [t]), /* @__PURE__ */ n.jsx(
|
|
8
70
|
"div",
|
|
9
71
|
{
|
|
10
72
|
ref: e,
|
|
11
|
-
className:
|
|
12
|
-
...p,
|
|
13
|
-
children: [
|
|
14
|
-
o && /* @__PURE__ */ r.jsx("span", { children: o }),
|
|
15
|
-
m,
|
|
16
|
-
i && /* @__PURE__ */ r.jsx(
|
|
17
|
-
l,
|
|
18
|
-
{
|
|
19
|
-
className: "ui-h-4 ui-w-4 ui-cursor-pointer",
|
|
20
|
-
onClick: (n) => {
|
|
21
|
-
n.stopPropagation(), t();
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
)
|
|
25
|
-
]
|
|
73
|
+
className: "ui-transition-all ui-duration-300 ui-bg-primary ui-rounded ui-absolute ui-top-full ui-h-[3px]"
|
|
26
74
|
}
|
|
27
|
-
)
|
|
28
|
-
|
|
29
|
-
|
|
75
|
+
);
|
|
76
|
+
};
|
|
77
|
+
y.displayName = "TabContent";
|
|
30
78
|
export {
|
|
31
|
-
|
|
79
|
+
y as TabContent,
|
|
80
|
+
v as TabList,
|
|
81
|
+
j as TabTrigger,
|
|
82
|
+
x as Tabs
|
|
32
83
|
};
|
package/dist/index.es723.js
CHANGED
|
@@ -1,4 +1,24 @@
|
|
|
1
|
-
var
|
|
1
|
+
var l = Object.prototype.toString;
|
|
2
|
+
function f(r) {
|
|
3
|
+
return typeof r == "function" || l.call(r) === "[object Function]";
|
|
4
|
+
}
|
|
5
|
+
function c(r) {
|
|
6
|
+
var t = Number(r);
|
|
7
|
+
return isNaN(t) ? 0 : t === 0 || !isFinite(t) ? t : (t > 0 ? 1 : -1) * Math.floor(Math.abs(t));
|
|
8
|
+
}
|
|
9
|
+
var h = Math.pow(2, 53) - 1;
|
|
10
|
+
function v(r) {
|
|
11
|
+
var t = c(r);
|
|
12
|
+
return Math.min(Math.max(t, 0), h);
|
|
13
|
+
}
|
|
14
|
+
function b(r, t) {
|
|
15
|
+
var o = Array, i = Object(r);
|
|
16
|
+
if (r == null)
|
|
17
|
+
throw new TypeError("Array.from requires an array-like object - not null or undefined");
|
|
18
|
+
for (var e = v(i.length), a = f(o) ? Object(new o(e)) : new Array(e), n = 0, u; n < e; )
|
|
19
|
+
u = i[n], a[n] = u, n += 1;
|
|
20
|
+
return a.length = e, a;
|
|
21
|
+
}
|
|
2
22
|
export {
|
|
3
|
-
|
|
23
|
+
b as default
|
|
4
24
|
};
|
package/dist/index.es724.js
CHANGED
|
@@ -1,4 +1,85 @@
|
|
|
1
|
-
|
|
1
|
+
function r(t) {
|
|
2
|
+
"@babel/helpers - typeof";
|
|
3
|
+
return r = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
4
|
+
return typeof e;
|
|
5
|
+
} : function(e) {
|
|
6
|
+
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
7
|
+
}, r(t);
|
|
8
|
+
}
|
|
9
|
+
function a(t, e) {
|
|
10
|
+
if (!(t instanceof e))
|
|
11
|
+
throw new TypeError("Cannot call a class as a function");
|
|
12
|
+
}
|
|
13
|
+
function o(t, e) {
|
|
14
|
+
for (var n = 0; n < e.length; n++) {
|
|
15
|
+
var i = e[n];
|
|
16
|
+
i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(t, f(i.key), i);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
function l(t, e, n) {
|
|
20
|
+
return e && o(t.prototype, e), Object.defineProperty(t, "prototype", { writable: !1 }), t;
|
|
21
|
+
}
|
|
22
|
+
function s(t, e, n) {
|
|
23
|
+
return e = f(e), e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
|
|
24
|
+
}
|
|
25
|
+
function f(t) {
|
|
26
|
+
var e = c(t, "string");
|
|
27
|
+
return r(e) === "symbol" ? e : String(e);
|
|
28
|
+
}
|
|
29
|
+
function c(t, e) {
|
|
30
|
+
if (r(t) !== "object" || t === null) return t;
|
|
31
|
+
var n = t[Symbol.toPrimitive];
|
|
32
|
+
if (n !== void 0) {
|
|
33
|
+
var i = n.call(t, e || "default");
|
|
34
|
+
if (r(i) !== "object") return i;
|
|
35
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
36
|
+
}
|
|
37
|
+
return (e === "string" ? String : Number)(t);
|
|
38
|
+
}
|
|
39
|
+
var m = /* @__PURE__ */ function() {
|
|
40
|
+
function t() {
|
|
41
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
|
|
42
|
+
a(this, t), s(this, "items", void 0), this.items = e;
|
|
43
|
+
}
|
|
44
|
+
return l(t, [{
|
|
45
|
+
key: "add",
|
|
46
|
+
value: function(n) {
|
|
47
|
+
return this.has(n) === !1 && this.items.push(n), this;
|
|
48
|
+
}
|
|
49
|
+
}, {
|
|
50
|
+
key: "clear",
|
|
51
|
+
value: function() {
|
|
52
|
+
this.items = [];
|
|
53
|
+
}
|
|
54
|
+
}, {
|
|
55
|
+
key: "delete",
|
|
56
|
+
value: function(n) {
|
|
57
|
+
var i = this.items.length;
|
|
58
|
+
return this.items = this.items.filter(function(u) {
|
|
59
|
+
return u !== n;
|
|
60
|
+
}), i !== this.items.length;
|
|
61
|
+
}
|
|
62
|
+
}, {
|
|
63
|
+
key: "forEach",
|
|
64
|
+
value: function(n) {
|
|
65
|
+
var i = this;
|
|
66
|
+
this.items.forEach(function(u) {
|
|
67
|
+
n(u, u, i);
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
}, {
|
|
71
|
+
key: "has",
|
|
72
|
+
value: function(n) {
|
|
73
|
+
return this.items.indexOf(n) !== -1;
|
|
74
|
+
}
|
|
75
|
+
}, {
|
|
76
|
+
key: "size",
|
|
77
|
+
get: function() {
|
|
78
|
+
return this.items.length;
|
|
79
|
+
}
|
|
80
|
+
}]), t;
|
|
81
|
+
}();
|
|
82
|
+
const h = typeof Set > "u" ? Set : m;
|
|
2
83
|
export {
|
|
3
|
-
|
|
84
|
+
h as default
|
|
4
85
|
};
|
package/dist/index.es725.js
CHANGED
|
@@ -1,24 +1,16 @@
|
|
|
1
|
-
var
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
}
|
|
5
|
-
function
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
function b(r, t) {
|
|
15
|
-
var o = Array, i = Object(r);
|
|
16
|
-
if (r == null)
|
|
17
|
-
throw new TypeError("Array.from requires an array-like object - not null or undefined");
|
|
18
|
-
for (var e = v(i.length), a = f(o) ? Object(new o(e)) : new Array(e), n = 0, u; n < e; )
|
|
19
|
-
u = i[n], a[n] = u, n += 1;
|
|
20
|
-
return a.length = e, a;
|
|
21
|
-
}
|
|
1
|
+
var r = !1;
|
|
2
|
+
if (typeof window < "u")
|
|
3
|
+
try {
|
|
4
|
+
var e = Object.defineProperty({}, "passive", {
|
|
5
|
+
get: function() {
|
|
6
|
+
return r = !0, !0;
|
|
7
|
+
}
|
|
8
|
+
});
|
|
9
|
+
window.addEventListener("test", e, e), window.removeEventListener("test", e, e);
|
|
10
|
+
} catch {
|
|
11
|
+
r = !1;
|
|
12
|
+
}
|
|
13
|
+
var a = r ? { passive: !1 } : !1;
|
|
22
14
|
export {
|
|
23
|
-
|
|
15
|
+
a as nonPassive
|
|
24
16
|
};
|