@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.es43.js
CHANGED
|
@@ -1,57 +1,79 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
1
|
+
import { j as e } from "./index.es95.js";
|
|
2
|
+
import { useMemo as g } from "react";
|
|
3
|
+
import { UploadRoot as v, UploadTrigger as b, UploadContent as N, UploadAcceptedFiles as U, UploadRejectedFiles as y } from "./index.es42.js";
|
|
4
|
+
import C from "./index.es119.js";
|
|
5
|
+
import { cn as s } from "./index.es83.js";
|
|
6
|
+
const q = ({
|
|
7
|
+
onFileAdd: u,
|
|
8
|
+
onFileRemove: a,
|
|
9
|
+
maxFiles: d = 1,
|
|
10
|
+
allowedExtensions: r = [],
|
|
11
|
+
maxFileSize: i = 5 * 1024 * 1024,
|
|
12
|
+
multiple: l,
|
|
13
|
+
renderAcceptedFile: n,
|
|
14
|
+
renderRejectedFile: m,
|
|
15
|
+
showRejected: c = !1,
|
|
16
|
+
className: p,
|
|
17
|
+
icon: h = C,
|
|
18
|
+
iconSize: t = 40,
|
|
19
|
+
...x
|
|
20
|
+
}) => {
|
|
21
|
+
const j = g(() => r.map((f) => {
|
|
22
|
+
var o;
|
|
23
|
+
return (o = f.split("/")) == null ? void 0 : o[1];
|
|
24
|
+
}).join(", "), [r]);
|
|
25
|
+
return /* @__PURE__ */ e.jsxs(
|
|
26
|
+
v,
|
|
27
|
+
{
|
|
28
|
+
onFileAdd: u,
|
|
29
|
+
onFileRemove: a,
|
|
30
|
+
maxFiles: d,
|
|
31
|
+
allowedExtensions: r,
|
|
32
|
+
maxFileSize: i,
|
|
33
|
+
multiple: l ? !0 : void 0,
|
|
34
|
+
className: s("ui-w-full", p),
|
|
35
|
+
...x,
|
|
36
|
+
children: [
|
|
37
|
+
/* @__PURE__ */ e.jsx(b, { asChild: !0, children: /* @__PURE__ */ e.jsxs(
|
|
38
|
+
"div",
|
|
39
|
+
{
|
|
40
|
+
className: s(
|
|
41
|
+
"ui-w-full ui-min-h-[150px] ui-border-2 ui-border-dashed ui-rounded-lg ui-border-muted ui-p-4",
|
|
42
|
+
"hover:ui-bg-muted/50 data-[drag-active=true]:ui-border-primary data-[drag-active=true]:ui-bg-primary/10",
|
|
43
|
+
"ui-transition-colors ui-flex ui-flex-col ui-items-center ui-justify-center ui-gap-4",
|
|
44
|
+
"ui-pointer-events-auto"
|
|
45
|
+
),
|
|
46
|
+
children: [
|
|
47
|
+
/* @__PURE__ */ e.jsx(
|
|
48
|
+
h,
|
|
49
|
+
{
|
|
50
|
+
className: "ui-text-muted-foreground ui-pointer-events-none",
|
|
51
|
+
style: { width: t, height: t }
|
|
52
|
+
}
|
|
53
|
+
),
|
|
54
|
+
/* @__PURE__ */ e.jsxs("div", { className: "ui-text-center ui-text-muted-foreground ui-pointer-events-none", children: [
|
|
55
|
+
/* @__PURE__ */ e.jsx("p", { children: "Arrastra y suelta archivos aquí o haz clic para seleccionar" }),
|
|
56
|
+
r.length > 0 && /* @__PURE__ */ e.jsxs("p", { className: "ui-text-sm", children: [
|
|
57
|
+
"Tipos permitidos: ",
|
|
58
|
+
j
|
|
59
|
+
] }),
|
|
60
|
+
/* @__PURE__ */ e.jsxs("p", { className: "ui-text-sm", children: [
|
|
61
|
+
"Tamaño máximo: ",
|
|
62
|
+
Math.floor(i / 1024 / 1024),
|
|
63
|
+
"MB"
|
|
64
|
+
] })
|
|
65
|
+
] })
|
|
66
|
+
]
|
|
67
|
+
}
|
|
68
|
+
) }),
|
|
69
|
+
/* @__PURE__ */ e.jsxs(N, { children: [
|
|
70
|
+
/* @__PURE__ */ e.jsx(U, { renderFile: n }),
|
|
71
|
+
c && /* @__PURE__ */ e.jsx(y, { renderFile: m })
|
|
72
|
+
] })
|
|
73
|
+
]
|
|
74
|
+
}
|
|
75
|
+
);
|
|
53
76
|
};
|
|
54
77
|
export {
|
|
55
|
-
|
|
56
|
-
e as FileTypeGroups
|
|
78
|
+
q as Dropzone
|
|
57
79
|
};
|
package/dist/index.es430.js
CHANGED
|
@@ -1,18 +1,31 @@
|
|
|
1
|
-
function
|
|
2
|
-
return (
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
function P(t) {
|
|
2
|
+
return (n, e = {}) => {
|
|
3
|
+
const l = e.width, h = l && t.matchPatterns[l] || t.matchPatterns[t.defaultMatchWidth], i = n.match(h);
|
|
4
|
+
if (!i)
|
|
5
|
+
return null;
|
|
6
|
+
const r = i[0], c = l && t.parsePatterns[l] || t.parsePatterns[t.defaultParseWidth], d = Array.isArray(c) ? o(c, (u) => u.test(r)) : (
|
|
7
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- I challange you to fix the type
|
|
8
|
+
s(c, (u) => u.test(r))
|
|
9
|
+
);
|
|
10
|
+
let a;
|
|
11
|
+
a = t.valueCallback ? t.valueCallback(d) : d, a = e.valueCallback ? (
|
|
12
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- I challange you to fix the type
|
|
13
|
+
e.valueCallback(a)
|
|
14
|
+
) : a;
|
|
15
|
+
const f = n.slice(r.length);
|
|
16
|
+
return { value: a, rest: f };
|
|
14
17
|
};
|
|
15
18
|
}
|
|
19
|
+
function s(t, n) {
|
|
20
|
+
for (const e in t)
|
|
21
|
+
if (Object.prototype.hasOwnProperty.call(t, e) && n(t[e]))
|
|
22
|
+
return e;
|
|
23
|
+
}
|
|
24
|
+
function o(t, n) {
|
|
25
|
+
for (let e = 0; e < t.length; e++)
|
|
26
|
+
if (n(t[e]))
|
|
27
|
+
return e;
|
|
28
|
+
}
|
|
16
29
|
export {
|
|
17
|
-
|
|
30
|
+
P as buildMatchFn
|
|
18
31
|
};
|
package/dist/index.es431.js
CHANGED
|
@@ -1,31 +1,15 @@
|
|
|
1
|
-
function
|
|
2
|
-
return (
|
|
3
|
-
const
|
|
4
|
-
if (!
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
);
|
|
10
|
-
|
|
11
|
-
a = t.valueCallback ? t.valueCallback(d) : d, a = e.valueCallback ? (
|
|
12
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- I challange you to fix the type
|
|
13
|
-
e.valueCallback(a)
|
|
14
|
-
) : a;
|
|
15
|
-
const f = n.slice(r.length);
|
|
16
|
-
return { value: a, rest: f };
|
|
1
|
+
function h(t) {
|
|
2
|
+
return (e, c = {}) => {
|
|
3
|
+
const n = e.match(t.matchPattern);
|
|
4
|
+
if (!n) return null;
|
|
5
|
+
const u = n[0], a = e.match(t.parsePattern);
|
|
6
|
+
if (!a) return null;
|
|
7
|
+
let l = t.valueCallback ? t.valueCallback(a[0]) : a[0];
|
|
8
|
+
l = c.valueCallback ? c.valueCallback(l) : l;
|
|
9
|
+
const r = e.slice(u.length);
|
|
10
|
+
return { value: l, rest: r };
|
|
17
11
|
};
|
|
18
12
|
}
|
|
19
|
-
function s(t, n) {
|
|
20
|
-
for (const e in t)
|
|
21
|
-
if (Object.prototype.hasOwnProperty.call(t, e) && n(t[e]))
|
|
22
|
-
return e;
|
|
23
|
-
}
|
|
24
|
-
function o(t, n) {
|
|
25
|
-
for (let e = 0; e < t.length; e++)
|
|
26
|
-
if (n(t[e]))
|
|
27
|
-
return e;
|
|
28
|
-
}
|
|
29
13
|
export {
|
|
30
|
-
|
|
14
|
+
h as buildMatchPatternFn
|
|
31
15
|
};
|
package/dist/index.es432.js
CHANGED
|
@@ -1,15 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
return (e, c = {}) => {
|
|
3
|
-
const n = e.match(t.matchPattern);
|
|
4
|
-
if (!n) return null;
|
|
5
|
-
const u = n[0], a = e.match(t.parsePattern);
|
|
6
|
-
if (!a) return null;
|
|
7
|
-
let l = t.valueCallback ? t.valueCallback(a[0]) : a[0];
|
|
8
|
-
l = c.valueCallback ? c.valueCallback(l) : l;
|
|
9
|
-
const r = e.slice(u.length);
|
|
10
|
-
return { value: l, rest: r };
|
|
11
|
-
};
|
|
12
|
-
}
|
|
1
|
+
var e = { exports: {} };
|
|
13
2
|
export {
|
|
14
|
-
|
|
3
|
+
e as __module
|
|
15
4
|
};
|
package/dist/index.es433.js
CHANGED
|
@@ -1,9 +1,78 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { __exports as r } from "./index.es729.js";
|
|
2
|
+
/** @license React v16.13.1
|
|
3
|
+
* react-is.production.min.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/
|
|
10
|
+
var _;
|
|
11
|
+
function g() {
|
|
12
|
+
if (_) return r;
|
|
13
|
+
_ = 1;
|
|
14
|
+
var t = typeof Symbol == "function" && Symbol.for, a = t ? Symbol.for("react.element") : 60103, b = t ? Symbol.for("react.portal") : 60106, n = t ? Symbol.for("react.fragment") : 60107, c = t ? Symbol.for("react.strict_mode") : 60108, f = t ? Symbol.for("react.profiler") : 60114, i = t ? Symbol.for("react.provider") : 60109, s = t ? Symbol.for("react.context") : 60110, d = t ? Symbol.for("react.async_mode") : 60111, u = t ? Symbol.for("react.concurrent_mode") : 60111, y = t ? Symbol.for("react.forward_ref") : 60112, l = t ? Symbol.for("react.suspense") : 60113, x = t ? Symbol.for("react.suspense_list") : 60120, m = t ? Symbol.for("react.memo") : 60115, p = t ? Symbol.for("react.lazy") : 60116, C = t ? Symbol.for("react.block") : 60121, M = t ? Symbol.for("react.fundamental") : 60117, v = t ? Symbol.for("react.responder") : 60118, w = t ? Symbol.for("react.scope") : 60119;
|
|
15
|
+
function o(e) {
|
|
16
|
+
if (typeof e == "object" && e !== null) {
|
|
17
|
+
var S = e.$$typeof;
|
|
18
|
+
switch (S) {
|
|
19
|
+
case a:
|
|
20
|
+
switch (e = e.type, e) {
|
|
21
|
+
case d:
|
|
22
|
+
case u:
|
|
23
|
+
case n:
|
|
24
|
+
case f:
|
|
25
|
+
case c:
|
|
26
|
+
case l:
|
|
27
|
+
return e;
|
|
28
|
+
default:
|
|
29
|
+
switch (e = e && e.$$typeof, e) {
|
|
30
|
+
case s:
|
|
31
|
+
case y:
|
|
32
|
+
case p:
|
|
33
|
+
case m:
|
|
34
|
+
case i:
|
|
35
|
+
return e;
|
|
36
|
+
default:
|
|
37
|
+
return S;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
case b:
|
|
41
|
+
return S;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
function $(e) {
|
|
46
|
+
return o(e) === u;
|
|
47
|
+
}
|
|
48
|
+
return r.AsyncMode = d, r.ConcurrentMode = u, r.ContextConsumer = s, r.ContextProvider = i, r.Element = a, r.ForwardRef = y, r.Fragment = n, r.Lazy = p, r.Memo = m, r.Portal = b, r.Profiler = f, r.StrictMode = c, r.Suspense = l, r.isAsyncMode = function(e) {
|
|
49
|
+
return $(e) || o(e) === d;
|
|
50
|
+
}, r.isConcurrentMode = $, r.isContextConsumer = function(e) {
|
|
51
|
+
return o(e) === s;
|
|
52
|
+
}, r.isContextProvider = function(e) {
|
|
53
|
+
return o(e) === i;
|
|
54
|
+
}, r.isElement = function(e) {
|
|
55
|
+
return typeof e == "object" && e !== null && e.$$typeof === a;
|
|
56
|
+
}, r.isForwardRef = function(e) {
|
|
57
|
+
return o(e) === y;
|
|
58
|
+
}, r.isFragment = function(e) {
|
|
59
|
+
return o(e) === n;
|
|
60
|
+
}, r.isLazy = function(e) {
|
|
61
|
+
return o(e) === p;
|
|
62
|
+
}, r.isMemo = function(e) {
|
|
63
|
+
return o(e) === m;
|
|
64
|
+
}, r.isPortal = function(e) {
|
|
65
|
+
return o(e) === b;
|
|
66
|
+
}, r.isProfiler = function(e) {
|
|
67
|
+
return o(e) === f;
|
|
68
|
+
}, r.isStrictMode = function(e) {
|
|
69
|
+
return o(e) === c;
|
|
70
|
+
}, r.isSuspense = function(e) {
|
|
71
|
+
return o(e) === l;
|
|
72
|
+
}, r.isValidElementType = function(e) {
|
|
73
|
+
return typeof e == "string" || typeof e == "function" || e === n || e === u || e === f || e === c || e === l || e === x || typeof e == "object" && e !== null && (e.$$typeof === p || e.$$typeof === m || e.$$typeof === i || e.$$typeof === s || e.$$typeof === y || e.$$typeof === M || e.$$typeof === v || e.$$typeof === w || e.$$typeof === C);
|
|
74
|
+
}, r.typeOf = o, r;
|
|
6
75
|
}
|
|
7
76
|
export {
|
|
8
|
-
|
|
77
|
+
g as __require
|
|
9
78
|
};
|
package/dist/index.es434.js
CHANGED
|
@@ -1,67 +1,95 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
return e
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
1
|
+
import { __exports as r } from "./index.es730.js";
|
|
2
|
+
/** @license React v16.13.1
|
|
3
|
+
* react-is.development.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/
|
|
10
|
+
var A;
|
|
11
|
+
function re() {
|
|
12
|
+
return A ? r : (A = 1, process.env.NODE_ENV !== "production" && function() {
|
|
13
|
+
var o = typeof Symbol == "function" && Symbol.for, _ = o ? Symbol.for("react.element") : 60103, T = o ? Symbol.for("react.portal") : 60106, t = o ? Symbol.for("react.fragment") : 60107, n = o ? Symbol.for("react.strict_mode") : 60108, s = o ? Symbol.for("react.profiler") : 60114, c = o ? Symbol.for("react.provider") : 60109, i = o ? Symbol.for("react.context") : 60110, v = o ? Symbol.for("react.async_mode") : 60111, f = o ? Symbol.for("react.concurrent_mode") : 60111, u = o ? Symbol.for("react.forward_ref") : 60112, E = o ? Symbol.for("react.suspense") : 60113, y = o ? Symbol.for("react.suspense_list") : 60120, d = o ? Symbol.for("react.memo") : 60115, l = o ? Symbol.for("react.lazy") : 60116, x = o ? Symbol.for("react.block") : 60121, M = o ? Symbol.for("react.fundamental") : 60117, b = o ? Symbol.for("react.responder") : 60118, p = o ? Symbol.for("react.scope") : 60119;
|
|
14
|
+
function Y(e) {
|
|
15
|
+
return typeof e == "string" || typeof e == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
16
|
+
e === t || e === f || e === s || e === n || e === E || e === y || typeof e == "object" && e !== null && (e.$$typeof === l || e.$$typeof === d || e.$$typeof === c || e.$$typeof === i || e.$$typeof === u || e.$$typeof === M || e.$$typeof === b || e.$$typeof === p || e.$$typeof === x);
|
|
17
|
+
}
|
|
18
|
+
function a(e) {
|
|
19
|
+
if (typeof e == "object" && e !== null) {
|
|
20
|
+
var C = e.$$typeof;
|
|
21
|
+
switch (C) {
|
|
22
|
+
case _:
|
|
23
|
+
var m = e.type;
|
|
24
|
+
switch (m) {
|
|
25
|
+
case v:
|
|
26
|
+
case f:
|
|
27
|
+
case t:
|
|
28
|
+
case s:
|
|
29
|
+
case n:
|
|
30
|
+
case E:
|
|
31
|
+
return m;
|
|
32
|
+
default:
|
|
33
|
+
var P = m && m.$$typeof;
|
|
34
|
+
switch (P) {
|
|
35
|
+
case i:
|
|
36
|
+
case u:
|
|
37
|
+
case l:
|
|
38
|
+
case d:
|
|
39
|
+
case c:
|
|
40
|
+
return P;
|
|
41
|
+
default:
|
|
42
|
+
return C;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
case T:
|
|
46
|
+
return C;
|
|
32
47
|
}
|
|
33
|
-
};
|
|
34
|
-
},
|
|
35
|
-
assignMedium: function(u) {
|
|
36
|
-
o = !0;
|
|
37
|
-
var n = [];
|
|
38
|
-
if (e.length) {
|
|
39
|
-
var i = e;
|
|
40
|
-
e = [], i.forEach(u), n = e;
|
|
41
48
|
}
|
|
42
|
-
var s = function() {
|
|
43
|
-
var f = n;
|
|
44
|
-
n = [], f.forEach(u);
|
|
45
|
-
}, a = function() {
|
|
46
|
-
return Promise.resolve().then(s);
|
|
47
|
-
};
|
|
48
|
-
a(), e = {
|
|
49
|
-
push: function(f) {
|
|
50
|
-
n.push(f), a();
|
|
51
|
-
},
|
|
52
|
-
filter: function(f) {
|
|
53
|
-
return n = n.filter(f), e;
|
|
54
|
-
}
|
|
55
|
-
};
|
|
56
49
|
}
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
50
|
+
var $ = v, O = f, F = i, N = c, I = _, L = u, h = t, w = l, D = d, g = T, z = s, U = n, V = E, R = !1;
|
|
51
|
+
function q(e) {
|
|
52
|
+
return R || (R = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), S(e) || a(e) === v;
|
|
53
|
+
}
|
|
54
|
+
function S(e) {
|
|
55
|
+
return a(e) === f;
|
|
56
|
+
}
|
|
57
|
+
function W(e) {
|
|
58
|
+
return a(e) === i;
|
|
59
|
+
}
|
|
60
|
+
function k(e) {
|
|
61
|
+
return a(e) === c;
|
|
62
|
+
}
|
|
63
|
+
function B(e) {
|
|
64
|
+
return typeof e == "object" && e !== null && e.$$typeof === _;
|
|
65
|
+
}
|
|
66
|
+
function G(e) {
|
|
67
|
+
return a(e) === u;
|
|
68
|
+
}
|
|
69
|
+
function K(e) {
|
|
70
|
+
return a(e) === t;
|
|
71
|
+
}
|
|
72
|
+
function X(e) {
|
|
73
|
+
return a(e) === l;
|
|
74
|
+
}
|
|
75
|
+
function Z(e) {
|
|
76
|
+
return a(e) === d;
|
|
77
|
+
}
|
|
78
|
+
function H(e) {
|
|
79
|
+
return a(e) === T;
|
|
80
|
+
}
|
|
81
|
+
function J(e) {
|
|
82
|
+
return a(e) === s;
|
|
83
|
+
}
|
|
84
|
+
function Q(e) {
|
|
85
|
+
return a(e) === n;
|
|
86
|
+
}
|
|
87
|
+
function j(e) {
|
|
88
|
+
return a(e) === E;
|
|
89
|
+
}
|
|
90
|
+
r.AsyncMode = $, r.ConcurrentMode = O, r.ContextConsumer = F, r.ContextProvider = N, r.Element = I, r.ForwardRef = L, r.Fragment = h, r.Lazy = w, r.Memo = D, r.Portal = g, r.Profiler = z, r.StrictMode = U, r.Suspense = V, r.isAsyncMode = q, r.isConcurrentMode = S, r.isContextConsumer = W, r.isContextProvider = k, r.isElement = B, r.isForwardRef = G, r.isFragment = K, r.isLazy = X, r.isMemo = Z, r.isPortal = H, r.isProfiler = J, r.isStrictMode = Q, r.isSuspense = j, r.isValidElementType = Y, r.typeOf = a;
|
|
91
|
+
}(), r);
|
|
64
92
|
}
|
|
65
93
|
export {
|
|
66
|
-
|
|
94
|
+
re as __require
|
|
67
95
|
};
|
package/dist/index.es435.js
CHANGED
|
@@ -1,71 +1,54 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
/*
|
|
2
|
+
object-assign
|
|
3
|
+
(c) Sindre Sorhus
|
|
4
|
+
@license MIT
|
|
5
|
+
*/
|
|
6
|
+
var f, i;
|
|
7
|
+
function p() {
|
|
8
|
+
if (i) return f;
|
|
9
|
+
i = 1;
|
|
10
|
+
var u = Object.getOwnPropertySymbols, b = Object.prototype.hasOwnProperty, l = Object.prototype.propertyIsEnumerable;
|
|
11
|
+
function O(n) {
|
|
12
|
+
if (n == null)
|
|
13
|
+
throw new TypeError("Object.assign cannot be called with null or undefined");
|
|
14
|
+
return Object(n);
|
|
11
15
|
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
16
|
+
function j() {
|
|
17
|
+
try {
|
|
18
|
+
if (!Object.assign)
|
|
19
|
+
return !1;
|
|
20
|
+
var n = new String("abc");
|
|
21
|
+
if (n[5] = "de", Object.getOwnPropertyNames(n)[0] === "5")
|
|
22
|
+
return !1;
|
|
23
|
+
for (var s = {}, r = 0; r < 10; r++)
|
|
24
|
+
s["_" + String.fromCharCode(r)] = r;
|
|
25
|
+
var a = Object.getOwnPropertyNames(s).map(function(e) {
|
|
26
|
+
return s[e];
|
|
27
|
+
});
|
|
28
|
+
if (a.join("") !== "0123456789")
|
|
29
|
+
return !1;
|
|
30
|
+
var t = {};
|
|
31
|
+
return "abcdefghijklmnopqrst".split("").forEach(function(e) {
|
|
32
|
+
t[e] = e;
|
|
33
|
+
}), Object.keys(Object.assign({}, t)).join("") === "abcdefghijklmnopqrst";
|
|
34
|
+
} catch {
|
|
35
|
+
return !1;
|
|
36
|
+
}
|
|
27
37
|
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
margin-right: 0 `).concat(t, `;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
body[`).concat(e, `] {
|
|
46
|
-
`).concat(v, ": ").concat(c, `px;
|
|
47
|
-
}
|
|
48
|
-
`);
|
|
49
|
-
}, u = function() {
|
|
50
|
-
var n = parseInt(document.body.getAttribute(e) || "0", 10);
|
|
51
|
-
return isFinite(n) ? n : 0;
|
|
52
|
-
}, x = function() {
|
|
53
|
-
d.useEffect(function() {
|
|
54
|
-
return document.body.setAttribute(e, (u() + 1).toString()), function() {
|
|
55
|
-
var n = u() - 1;
|
|
56
|
-
n <= 0 ? document.body.removeAttribute(e) : document.body.setAttribute(e, n.toString());
|
|
57
|
-
};
|
|
58
|
-
}, []);
|
|
59
|
-
}, C = function(n) {
|
|
60
|
-
var a = n.noRelative, o = n.noImportant, t = n.gapMode, r = t === void 0 ? "margin" : t;
|
|
61
|
-
x();
|
|
62
|
-
var i = d.useMemo(function() {
|
|
63
|
-
return m(r);
|
|
64
|
-
}, [r]);
|
|
65
|
-
return d.createElement(b, { styles: h(i, !a, r, o ? "" : "!important") });
|
|
66
|
-
};
|
|
38
|
+
return f = j() ? Object.assign : function(n, s) {
|
|
39
|
+
for (var r, a = O(n), t, e = 1; e < arguments.length; e++) {
|
|
40
|
+
r = Object(arguments[e]);
|
|
41
|
+
for (var c in r)
|
|
42
|
+
b.call(r, c) && (a[c] = r[c]);
|
|
43
|
+
if (u) {
|
|
44
|
+
t = u(r);
|
|
45
|
+
for (var o = 0; o < t.length; o++)
|
|
46
|
+
l.call(r, t[o]) && (a[t[o]] = r[t[o]]);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
return a;
|
|
50
|
+
}, f;
|
|
51
|
+
}
|
|
67
52
|
export {
|
|
68
|
-
|
|
69
|
-
e as lockAttribute,
|
|
70
|
-
x as useLockAttribute
|
|
53
|
+
p as __require
|
|
71
54
|
};
|
package/dist/index.es436.js
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
};
|
|
1
|
+
var e, r;
|
|
2
|
+
function _() {
|
|
3
|
+
if (r) return e;
|
|
4
|
+
r = 1;
|
|
5
|
+
var t = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
6
|
+
return e = t, e;
|
|
7
|
+
}
|
|
9
8
|
export {
|
|
10
|
-
|
|
9
|
+
_ as __require
|
|
11
10
|
};
|
package/dist/index.es437.js
CHANGED
|
@@ -1,16 +1,7 @@
|
|
|
1
|
-
var r
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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;
|
|
1
|
+
var r, e;
|
|
2
|
+
function a() {
|
|
3
|
+
return e || (e = 1, r = Function.call.bind(Object.prototype.hasOwnProperty)), r;
|
|
4
|
+
}
|
|
14
5
|
export {
|
|
15
|
-
a as
|
|
6
|
+
a as __require
|
|
16
7
|
};
|