@anoki/fse-ui 1.0.690 → 1.0.691
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.cjs240.js +1 -1
- package/dist/index.cjs244.js +1 -1
- package/dist/index.cjs251.js +1 -1
- package/dist/index.cjs261.js +1 -1
- package/dist/index.cjs267.js +1 -1
- package/dist/index.cjs274.js +1 -1
- package/dist/index.cjs279.js +1 -1
- package/dist/index.cjs286.js +1 -1
- package/dist/index.cjs294.js +1 -1
- package/dist/index.cjs333.js +1 -1
- package/dist/index.cjs346.js +1 -1
- package/dist/index.cjs361.js +1 -1
- package/dist/index.cjs362.js +1 -1
- package/dist/index.cjs382.js +1 -1
- package/dist/index.cjs382.js.map +1 -1
- package/dist/index.cjs385.js +1 -1
- package/dist/index.cjs385.js.map +1 -1
- package/dist/index.cjs386.js +1 -1
- package/dist/index.cjs386.js.map +1 -1
- package/dist/index.cjs387.js +1 -1
- package/dist/index.cjs387.js.map +1 -1
- package/dist/index.cjs388.js +1 -1
- package/dist/index.cjs388.js.map +1 -1
- package/dist/index.cjs389.js +1 -1
- package/dist/index.cjs389.js.map +1 -1
- package/dist/index.cjs390.js +1 -1
- package/dist/index.cjs390.js.map +1 -1
- package/dist/index.cjs391.js +1 -1
- package/dist/index.cjs391.js.map +1 -1
- package/dist/index.cjs392.js +1 -1
- package/dist/index.cjs392.js.map +1 -1
- package/dist/index.cjs393.js +1 -1
- package/dist/index.cjs393.js.map +1 -1
- package/dist/index.cjs394.js +1 -1
- package/dist/index.cjs394.js.map +1 -1
- package/dist/index.cjs395.js +1 -1
- package/dist/index.cjs395.js.map +1 -1
- package/dist/index.cjs396.js +1 -1
- package/dist/index.cjs396.js.map +1 -1
- package/dist/index.cjs397.js +1 -1
- package/dist/index.cjs397.js.map +1 -1
- package/dist/index.cjs398.js +1 -1
- package/dist/index.cjs398.js.map +1 -1
- package/dist/index.cjs399.js +1 -1
- package/dist/index.cjs399.js.map +1 -1
- package/dist/index.cjs400.js +1 -1
- package/dist/index.cjs400.js.map +1 -1
- package/dist/index.cjs401.js +1 -1
- package/dist/index.cjs401.js.map +1 -1
- package/dist/index.cjs402.js +1 -1
- package/dist/index.cjs402.js.map +1 -1
- package/dist/index.cjs403.js +1 -1
- package/dist/index.cjs403.js.map +1 -1
- package/dist/index.cjs404.js +1 -1
- package/dist/index.cjs404.js.map +1 -1
- package/dist/index.cjs405.js +1 -1
- package/dist/index.cjs405.js.map +1 -1
- package/dist/index.cjs406.js +1 -1
- package/dist/index.cjs406.js.map +1 -1
- package/dist/index.cjs407.js +1 -1
- package/dist/index.cjs407.js.map +1 -1
- package/dist/index.cjs410.js +1 -1
- package/dist/index.cjs410.js.map +1 -1
- package/dist/index.cjs411.js +2 -0
- package/dist/index.cjs411.js.map +1 -0
- package/dist/index.cjs412.js +2 -0
- package/dist/index.cjs412.js.map +1 -0
- package/dist/index.cjs413.js +1 -1
- package/dist/index.cjs413.js.map +1 -1
- package/dist/index.cjs414.js +1 -1
- package/dist/index.cjs414.js.map +1 -1
- package/dist/index.cjs425.js +2 -0
- package/dist/index.cjs425.js.map +1 -0
- package/dist/index.cjs426.js +2 -0
- package/dist/index.cjs426.js.map +1 -0
- package/dist/index.cjs427.js +1 -1
- package/dist/index.cjs427.js.map +1 -1
- package/dist/index.cjs431.js +1 -1
- package/dist/index.cjs431.js.map +1 -1
- package/dist/index.cjs432.js +2 -0
- package/dist/{index.cjs420.js.map → index.cjs432.js.map} +1 -1
- package/dist/{index.cjs421.js → index.cjs433.js} +2 -2
- package/dist/{index.cjs421.js.map → index.cjs433.js.map} +1 -1
- package/dist/{index.cjs422.js → index.cjs434.js} +2 -2
- package/dist/{index.cjs422.js.map → index.cjs434.js.map} +1 -1
- package/dist/{index.cjs423.js → index.cjs435.js} +2 -2
- package/dist/{index.cjs423.js.map → index.cjs435.js.map} +1 -1
- package/dist/{index.cjs416.js → index.cjs436.js} +2 -2
- package/dist/{index.cjs416.js.map → index.cjs436.js.map} +1 -1
- package/dist/index.cjs437.js +1 -1
- package/dist/index.cjs437.js.map +1 -1
- package/dist/index.cjs438.js +1 -1
- package/dist/index.cjs438.js.map +1 -1
- package/dist/index.cjs439.js +2 -0
- package/dist/index.cjs439.js.map +1 -0
- package/dist/{index.cjs428.js → index.cjs440.js} +2 -2
- package/dist/{index.cjs428.js.map → index.cjs440.js.map} +1 -1
- package/dist/{index.cjs429.js → index.cjs441.js} +1 -1
- package/dist/{index.cjs429.js.map → index.cjs441.js.map} +1 -1
- package/dist/{index.cjs430.js → index.cjs442.js} +1 -1
- package/dist/{index.cjs430.js.map → index.cjs442.js.map} +1 -1
- package/dist/index.cjs443.js +2 -0
- package/dist/index.cjs443.js.map +1 -0
- package/dist/index.cjs444.js +2 -0
- package/dist/index.cjs444.js.map +1 -0
- package/dist/index.cjs445.js +2 -0
- package/dist/index.cjs445.js.map +1 -0
- package/dist/index.cjs452.js +1 -1
- package/dist/index.cjs455.js +1 -1
- package/dist/index.cjs456.js +1 -1
- package/dist/index.cjs456.js.map +1 -1
- package/dist/index.cjs457.js +1 -1
- package/dist/index.cjs457.js.map +1 -1
- package/dist/index.cjs458.js +1 -1
- package/dist/index.cjs458.js.map +1 -1
- package/dist/index.cjs459.js +1 -1
- package/dist/index.cjs459.js.map +1 -1
- package/dist/index.cjs460.js +1 -1
- package/dist/index.cjs460.js.map +1 -1
- package/dist/index.cjs461.js +1 -1
- package/dist/index.cjs461.js.map +1 -1
- package/dist/index.cjs462.js +1 -1
- package/dist/index.cjs462.js.map +1 -1
- package/dist/index.cjs463.js +1 -1
- package/dist/index.cjs463.js.map +1 -1
- package/dist/index.cjs464.js +1 -1
- package/dist/index.cjs464.js.map +1 -1
- package/dist/index.cjs465.js +1 -1
- package/dist/index.cjs465.js.map +1 -1
- package/dist/index.cjs466.js +1 -1
- package/dist/index.cjs466.js.map +1 -1
- package/dist/index.cjs467.js +5 -1
- package/dist/index.cjs467.js.map +1 -1
- package/dist/index.cjs468.js +1 -5
- package/dist/index.cjs468.js.map +1 -1
- package/dist/index.cjs469.js +1 -1
- package/dist/index.cjs469.js.map +1 -1
- package/dist/index.cjs470.js +1 -1
- package/dist/index.cjs470.js.map +1 -1
- package/dist/index.cjs471.js +1 -1
- package/dist/index.cjs471.js.map +1 -1
- package/dist/index.cjs472.js +1 -1
- package/dist/index.cjs472.js.map +1 -1
- package/dist/index.cjs473.js +1 -1
- package/dist/index.cjs473.js.map +1 -1
- package/dist/index.cjs474.js +1 -1
- package/dist/index.cjs474.js.map +1 -1
- package/dist/index.cjs475.js +1 -1
- package/dist/index.cjs475.js.map +1 -1
- package/dist/index.cjs476.js +1 -1
- package/dist/index.cjs476.js.map +1 -1
- package/dist/index.cjs477.js +1 -1
- package/dist/index.cjs477.js.map +1 -1
- package/dist/index.es240.js +7 -7
- package/dist/index.es244.js +1 -1
- package/dist/index.es251.js +8 -8
- package/dist/index.es261.js +1 -1
- package/dist/index.es267.js +14 -14
- package/dist/index.es274.js +1 -1
- package/dist/index.es279.js +1 -1
- package/dist/index.es286.js +1 -1
- package/dist/index.es294.js +7 -7
- package/dist/index.es333.js +4 -4
- package/dist/index.es346.js +8 -8
- package/dist/index.es361.js +2 -2
- package/dist/index.es362.js +3 -3
- package/dist/index.es382.js +15 -15
- package/dist/index.es382.js.map +1 -1
- package/dist/index.es385.js +23 -64
- package/dist/index.es385.js.map +1 -1
- package/dist/index.es386.js +65 -27
- package/dist/index.es386.js.map +1 -1
- package/dist/index.es387.js +6 -32
- package/dist/index.es387.js.map +1 -1
- package/dist/index.es388.js +27 -619
- package/dist/index.es388.js.map +1 -1
- package/dist/index.es389.js +5 -10
- package/dist/index.es389.js.map +1 -1
- package/dist/index.es390.js +24 -10
- package/dist/index.es390.js.map +1 -1
- package/dist/index.es391.js +63 -47
- package/dist/index.es391.js.map +1 -1
- package/dist/index.es392.js +32 -45
- package/dist/index.es392.js.map +1 -1
- package/dist/index.es393.js +621 -7
- package/dist/index.es393.js.map +1 -1
- package/dist/index.es394.js +10 -124
- package/dist/index.es394.js.map +1 -1
- package/dist/index.es395.js +8 -12
- package/dist/index.es395.js.map +1 -1
- package/dist/index.es396.js +4 -135
- package/dist/index.es396.js.map +1 -1
- package/dist/index.es397.js +49 -214
- package/dist/index.es397.js.map +1 -1
- package/dist/index.es398.js +46 -14
- package/dist/index.es398.js.map +1 -1
- package/dist/index.es399.js +7 -68
- package/dist/index.es399.js.map +1 -1
- package/dist/index.es400.js +114 -167
- package/dist/index.es400.js.map +1 -1
- package/dist/index.es401.js +15 -50
- package/dist/index.es401.js.map +1 -1
- package/dist/index.es402.js +134 -8
- package/dist/index.es402.js.map +1 -1
- package/dist/index.es403.js +217 -3
- package/dist/index.es403.js.map +1 -1
- package/dist/index.es404.js +14 -6
- package/dist/index.es404.js.map +1 -1
- package/dist/index.es405.js +177 -24
- package/dist/index.es405.js.map +1 -1
- package/dist/index.es406.js +50 -12
- package/dist/index.es406.js.map +1 -1
- package/dist/index.es407.js +8 -204
- package/dist/index.es407.js.map +1 -1
- package/dist/index.es410.js +15 -15
- package/dist/index.es410.js.map +1 -1
- package/dist/index.es411.js +15 -0
- package/dist/index.es411.js.map +1 -0
- package/dist/index.es412.js +208 -0
- package/dist/index.es412.js.map +1 -0
- package/dist/index.es413.js +21 -24
- package/dist/index.es413.js.map +1 -1
- package/dist/index.es414.js +391 -27
- package/dist/index.es414.js.map +1 -1
- package/dist/index.es425.js +28 -0
- package/dist/index.es425.js.map +1 -0
- package/dist/index.es426.js +32 -0
- package/dist/index.es426.js.map +1 -0
- package/dist/index.es427.js +5 -65
- package/dist/index.es427.js.map +1 -1
- package/dist/index.es431.js +5 -62
- package/dist/index.es431.js.map +1 -1
- package/dist/index.es432.js +6 -0
- package/dist/{index.es420.js.map → index.es432.js.map} +1 -1
- package/dist/{index.es421.js → index.es433.js} +3 -3
- package/dist/{index.es421.js.map → index.es433.js.map} +1 -1
- package/dist/{index.es422.js → index.es434.js} +6 -6
- package/dist/{index.es422.js.map → index.es434.js.map} +1 -1
- package/dist/{index.es423.js → index.es435.js} +2 -2
- package/dist/{index.es423.js.map → index.es435.js.map} +1 -1
- package/dist/{index.es416.js → index.es436.js} +2 -2
- package/dist/{index.es416.js.map → index.es436.js.map} +1 -1
- package/dist/index.es437.js +126 -3
- package/dist/index.es437.js.map +1 -1
- package/dist/index.es438.js +128 -22
- package/dist/index.es438.js.map +1 -1
- package/dist/index.es439.js +68 -0
- package/dist/index.es439.js.map +1 -0
- package/dist/{index.es428.js → index.es440.js} +3 -3
- package/dist/{index.es428.js.map → index.es440.js.map} +1 -1
- package/dist/{index.es429.js → index.es441.js} +1 -1
- package/dist/{index.es429.js.map → index.es441.js.map} +1 -1
- package/dist/{index.es430.js → index.es442.js} +1 -1
- package/dist/{index.es430.js.map → index.es442.js.map} +1 -1
- package/dist/index.es443.js +65 -0
- package/dist/index.es443.js.map +1 -0
- package/dist/index.es444.js +7 -0
- package/dist/index.es444.js.map +1 -0
- package/dist/index.es445.js +26 -0
- package/dist/index.es445.js.map +1 -0
- package/dist/index.es452.js +2 -2
- package/dist/index.es455.js +7 -2
- package/dist/index.es455.js.map +1 -1
- package/dist/index.es456.js +4 -5
- package/dist/index.es456.js.map +1 -1
- package/dist/index.es457.js +5 -4
- package/dist/index.es457.js.map +1 -1
- package/dist/index.es458.js +9 -4
- package/dist/index.es458.js.map +1 -1
- package/dist/index.es459.js +55 -9
- package/dist/index.es459.js.map +1 -1
- package/dist/index.es460.js +7 -55
- package/dist/index.es460.js.map +1 -1
- package/dist/index.es461.js +5 -7
- package/dist/index.es461.js.map +1 -1
- package/dist/index.es462.js +532 -5
- package/dist/index.es462.js.map +1 -1
- package/dist/index.es463.js +8 -531
- package/dist/index.es463.js.map +1 -1
- package/dist/index.es464.js +176 -8
- package/dist/index.es464.js.map +1 -1
- package/dist/index.es465.js +3 -177
- package/dist/index.es465.js.map +1 -1
- package/dist/index.es466.js +131 -2
- package/dist/index.es466.js.map +1 -1
- package/dist/index.es467.js +36 -129
- package/dist/index.es467.js.map +1 -1
- package/dist/index.es468.js +2 -40
- package/dist/index.es468.js.map +1 -1
- package/dist/index.es469.js +2 -2
- package/dist/index.es469.js.map +1 -1
- package/dist/index.es470.js +2 -85
- package/dist/index.es470.js.map +1 -1
- package/dist/index.es471.js +2 -2
- package/dist/index.es471.js.map +1 -1
- package/dist/index.es472.js +3 -2
- package/dist/index.es472.js.map +1 -1
- package/dist/index.es473.js +2 -3
- package/dist/index.es473.js.map +1 -1
- package/dist/index.es474.js +4 -2
- package/dist/index.es474.js.map +1 -1
- package/dist/index.es475.js +4 -3
- package/dist/index.es475.js.map +1 -1
- package/dist/index.es476.js +3 -4
- package/dist/index.es476.js.map +1 -1
- package/dist/index.es477.js +82 -3
- package/dist/index.es477.js.map +1 -1
- package/package.json +1 -1
- package/dist/index.cjs383.js +0 -2
- package/dist/index.cjs383.js.map +0 -1
- package/dist/index.cjs384.js +0 -2
- package/dist/index.cjs384.js.map +0 -1
- package/dist/index.cjs408.js +0 -2
- package/dist/index.cjs408.js.map +0 -1
- package/dist/index.cjs409.js +0 -2
- package/dist/index.cjs409.js.map +0 -1
- package/dist/index.cjs415.js +0 -2
- package/dist/index.cjs415.js.map +0 -1
- package/dist/index.cjs417.js +0 -2
- package/dist/index.cjs417.js.map +0 -1
- package/dist/index.cjs418.js +0 -2
- package/dist/index.cjs418.js.map +0 -1
- package/dist/index.cjs419.js +0 -2
- package/dist/index.cjs419.js.map +0 -1
- package/dist/index.cjs420.js +0 -2
- package/dist/index.es383.js +0 -10
- package/dist/index.es383.js.map +0 -1
- package/dist/index.es384.js +0 -30
- package/dist/index.es384.js.map +0 -1
- package/dist/index.es408.js +0 -25
- package/dist/index.es408.js.map +0 -1
- package/dist/index.es409.js +0 -396
- package/dist/index.es409.js.map +0 -1
- package/dist/index.es415.js +0 -8
- package/dist/index.es415.js.map +0 -1
- package/dist/index.es417.js +0 -130
- package/dist/index.es417.js.map +0 -1
- package/dist/index.es418.js +0 -132
- package/dist/index.es418.js.map +0 -1
- package/dist/index.es419.js +0 -8
- package/dist/index.es419.js.map +0 -1
- package/dist/index.es420.js +0 -6
- /package/dist/components/ui/{ConsentModal/ConsentModalFooter/ConsentModalFooter.css → DoctorModal/DoctorModalFooter/DoctorModalFooter.css} +0 -0
@@ -0,0 +1,68 @@
|
|
1
|
+
import { __assign as d } from "./index.es425.js";
|
2
|
+
function l(r) {
|
3
|
+
return r;
|
4
|
+
}
|
5
|
+
function h(r, t) {
|
6
|
+
t === void 0 && (t = l);
|
7
|
+
var e = [], o = !1, c = {
|
8
|
+
read: function() {
|
9
|
+
if (o)
|
10
|
+
throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");
|
11
|
+
return e.length ? e[e.length - 1] : r;
|
12
|
+
},
|
13
|
+
useMedium: function(u) {
|
14
|
+
var n = t(u, o);
|
15
|
+
return e.push(n), function() {
|
16
|
+
e = e.filter(function(i) {
|
17
|
+
return i !== n;
|
18
|
+
});
|
19
|
+
};
|
20
|
+
},
|
21
|
+
assignSyncMedium: function(u) {
|
22
|
+
for (o = !0; e.length; ) {
|
23
|
+
var n = e;
|
24
|
+
e = [], n.forEach(u);
|
25
|
+
}
|
26
|
+
e = {
|
27
|
+
push: function(i) {
|
28
|
+
return u(i);
|
29
|
+
},
|
30
|
+
filter: function() {
|
31
|
+
return e;
|
32
|
+
}
|
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
|
+
}
|
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
|
+
}
|
57
|
+
};
|
58
|
+
return c;
|
59
|
+
}
|
60
|
+
function v(r) {
|
61
|
+
r === void 0 && (r = {});
|
62
|
+
var t = h(null);
|
63
|
+
return t.options = d({ async: !0, ssr: !1 }, r), t;
|
64
|
+
}
|
65
|
+
export {
|
66
|
+
v as createSidecarMedium
|
67
|
+
};
|
68
|
+
//# sourceMappingURL=index.es439.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.es439.js","sources":["../node_modules/use-sidecar/dist/es2015/medium.js"],"sourcesContent":["import { __assign } from \"tslib\";\nfunction ItoI(a) {\n return a;\n}\nfunction innerCreateMedium(defaults, middleware) {\n if (middleware === void 0) { middleware = ItoI; }\n var buffer = [];\n var assigned = false;\n var medium = {\n read: function () {\n if (assigned) {\n throw new Error('Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.');\n }\n if (buffer.length) {\n return buffer[buffer.length - 1];\n }\n return defaults;\n },\n useMedium: function (data) {\n var item = middleware(data, assigned);\n buffer.push(item);\n return function () {\n buffer = buffer.filter(function (x) { return x !== item; });\n };\n },\n assignSyncMedium: function (cb) {\n assigned = true;\n while (buffer.length) {\n var cbs = buffer;\n buffer = [];\n cbs.forEach(cb);\n }\n buffer = {\n push: function (x) { return cb(x); },\n filter: function () { return buffer; },\n };\n },\n assignMedium: function (cb) {\n assigned = true;\n var pendingQueue = [];\n if (buffer.length) {\n var cbs = buffer;\n buffer = [];\n cbs.forEach(cb);\n pendingQueue = buffer;\n }\n var executeQueue = function () {\n var cbs = pendingQueue;\n pendingQueue = [];\n cbs.forEach(cb);\n };\n var cycle = function () { return Promise.resolve().then(executeQueue); };\n cycle();\n buffer = {\n push: function (x) {\n pendingQueue.push(x);\n cycle();\n },\n filter: function (filter) {\n pendingQueue = pendingQueue.filter(filter);\n return buffer;\n },\n };\n },\n };\n return medium;\n}\nexport function createMedium(defaults, middleware) {\n if (middleware === void 0) { middleware = ItoI; }\n return innerCreateMedium(defaults, middleware);\n}\n// eslint-disable-next-line @typescript-eslint/ban-types\nexport function createSidecarMedium(options) {\n if (options === void 0) { options = {}; }\n var medium = innerCreateMedium(null);\n medium.options = __assign({ async: true, ssr: false }, options);\n return medium;\n}\n"],"names":["ItoI","a","innerCreateMedium","defaults","middleware","buffer","assigned","medium","data","item","x","cb","cbs","pendingQueue","executeQueue","cycle","filter","createSidecarMedium","options","__assign"],"mappings":";AACA,SAASA,EAAKC,GAAG;AACb,SAAOA;AACX;AACA,SAASC,EAAkBC,GAAUC,GAAY;AAC7C,EAAIA,MAAe,WAAUA,IAAaJ;AAC1C,MAAIK,IAAS,CAAE,GACXC,IAAW,IACXC,IAAS;AAAA,IACT,MAAM,WAAY;AACd,UAAID;AACA,cAAM,IAAI,MAAM,kGAAkG;AAEtH,aAAID,EAAO,SACAA,EAAOA,EAAO,SAAS,CAAC,IAE5BF;AAAA,IACV;AAAA,IACD,WAAW,SAAUK,GAAM;AACvB,UAAIC,IAAOL,EAAWI,GAAMF,CAAQ;AACpC,aAAAD,EAAO,KAAKI,CAAI,GACT,WAAY;AACf,QAAAJ,IAASA,EAAO,OAAO,SAAUK,GAAG;AAAE,iBAAOA,MAAMD;AAAA,SAAO;AAAA,MAC7D;AAAA,IACJ;AAAA,IACD,kBAAkB,SAAUE,GAAI;AAE5B,WADAL,IAAW,IACJD,EAAO,UAAQ;AAClB,YAAIO,IAAMP;AACV,QAAAA,IAAS,CAAE,GACXO,EAAI,QAAQD,CAAE;AAAA,MAC9B;AACY,MAAAN,IAAS;AAAA,QACL,MAAM,SAAUK,GAAG;AAAE,iBAAOC,EAAGD,CAAC;AAAA,QAAI;AAAA,QACpC,QAAQ,WAAY;AAAE,iBAAOL;AAAA,QAAS;AAAA,MACzC;AAAA,IACJ;AAAA,IACD,cAAc,SAAUM,GAAI;AACxB,MAAAL,IAAW;AACX,UAAIO,IAAe,CAAE;AACrB,UAAIR,EAAO,QAAQ;AACf,YAAIO,IAAMP;AACV,QAAAA,IAAS,CAAE,GACXO,EAAI,QAAQD,CAAE,GACdE,IAAeR;AAAA,MAC/B;AACY,UAAIS,IAAe,WAAY;AAC3B,YAAIF,IAAMC;AACV,QAAAA,IAAe,CAAE,GACjBD,EAAI,QAAQD,CAAE;AAAA,MACjB,GACGI,IAAQ,WAAY;AAAE,eAAO,QAAQ,QAAO,EAAG,KAAKD,CAAY;AAAA,MAAI;AACxE,MAAAC,EAAO,GACPV,IAAS;AAAA,QACL,MAAM,SAAUK,GAAG;AACf,UAAAG,EAAa,KAAKH,CAAC,GACnBK,EAAO;AAAA,QACV;AAAA,QACD,QAAQ,SAAUC,GAAQ;AACtB,iBAAAH,IAAeA,EAAa,OAAOG,CAAM,GAClCX;AAAA,QACV;AAAA,MACJ;AAAA,IACJ;AAAA,EACJ;AACD,SAAOE;AACX;AAMO,SAASU,EAAoBC,GAAS;AACzC,EAAIA,MAAY,WAAUA,IAAU,CAAA;AACpC,MAAIX,IAASL,EAAkB,IAAI;AACnC,SAAAK,EAAO,UAAUY,EAAS,EAAE,OAAO,IAAM,KAAK,GAAO,GAAED,CAAO,GACvDX;AACX;","x_google_ignoreList":[0]}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import * as d from "react";
|
2
|
-
import { styleSingleton as f } from "./index.
|
3
|
-
import { noScrollbarsClassName as p, zeroRightClassName as g, fullWidthClassName as l, removedBarSizeVariable as v } from "./index.
|
2
|
+
import { styleSingleton as f } from "./index.es441.js";
|
3
|
+
import { noScrollbarsClassName as p, zeroRightClassName as g, fullWidthClassName as l, removedBarSizeVariable as v } from "./index.es431.js";
|
4
4
|
import { getGapWidth as m } from "./index.es449.js";
|
5
5
|
var b = f(), e = "data-scroll-locked", h = function(n, a, o, t) {
|
6
6
|
var r = n.left, i = n.top, s = n.right, c = n.gap;
|
@@ -69,4 +69,4 @@ export {
|
|
69
69
|
e as lockAttribute,
|
70
70
|
x as useLockAttribute
|
71
71
|
};
|
72
|
-
//# sourceMappingURL=index.
|
72
|
+
//# sourceMappingURL=index.es440.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.
|
1
|
+
{"version":3,"file":"index.es440.js","sources":["../node_modules/react-remove-scroll-bar/dist/es2015/component.js"],"sourcesContent":["import * as React from 'react';\nimport { styleSingleton } from 'react-style-singleton';\nimport { fullWidthClassName, zeroRightClassName, noScrollbarsClassName, removedBarSizeVariable } from './constants';\nimport { getGapWidth } from './utils';\nvar Style = styleSingleton();\nexport var lockAttribute = 'data-scroll-locked';\n// important tip - once we measure scrollBar width and remove them\n// we could not repeat this operation\n// thus we are using style-singleton - only the first \"yet correct\" style will be applied.\nvar getStyles = function (_a, allowRelative, gapMode, important) {\n var left = _a.left, top = _a.top, right = _a.right, gap = _a.gap;\n if (gapMode === void 0) { gapMode = 'margin'; }\n return \"\\n .\".concat(noScrollbarsClassName, \" {\\n overflow: hidden \").concat(important, \";\\n padding-right: \").concat(gap, \"px \").concat(important, \";\\n }\\n body[\").concat(lockAttribute, \"] {\\n overflow: hidden \").concat(important, \";\\n overscroll-behavior: contain;\\n \").concat([\n allowRelative && \"position: relative \".concat(important, \";\"),\n gapMode === 'margin' &&\n \"\\n padding-left: \".concat(left, \"px;\\n padding-top: \").concat(top, \"px;\\n padding-right: \").concat(right, \"px;\\n margin-left:0;\\n margin-top:0;\\n margin-right: \").concat(gap, \"px \").concat(important, \";\\n \"),\n gapMode === 'padding' && \"padding-right: \".concat(gap, \"px \").concat(important, \";\"),\n ]\n .filter(Boolean)\n .join(''), \"\\n }\\n \\n .\").concat(zeroRightClassName, \" {\\n right: \").concat(gap, \"px \").concat(important, \";\\n }\\n \\n .\").concat(fullWidthClassName, \" {\\n margin-right: \").concat(gap, \"px \").concat(important, \";\\n }\\n \\n .\").concat(zeroRightClassName, \" .\").concat(zeroRightClassName, \" {\\n right: 0 \").concat(important, \";\\n }\\n \\n .\").concat(fullWidthClassName, \" .\").concat(fullWidthClassName, \" {\\n margin-right: 0 \").concat(important, \";\\n }\\n \\n body[\").concat(lockAttribute, \"] {\\n \").concat(removedBarSizeVariable, \": \").concat(gap, \"px;\\n }\\n\");\n};\nvar getCurrentUseCounter = function () {\n var counter = parseInt(document.body.getAttribute(lockAttribute) || '0', 10);\n return isFinite(counter) ? counter : 0;\n};\nexport var useLockAttribute = function () {\n React.useEffect(function () {\n document.body.setAttribute(lockAttribute, (getCurrentUseCounter() + 1).toString());\n return function () {\n var newCounter = getCurrentUseCounter() - 1;\n if (newCounter <= 0) {\n document.body.removeAttribute(lockAttribute);\n }\n else {\n document.body.setAttribute(lockAttribute, newCounter.toString());\n }\n };\n }, []);\n};\n/**\n * Removes page scrollbar and blocks page scroll when mounted\n */\nexport var RemoveScrollBar = function (_a) {\n var noRelative = _a.noRelative, noImportant = _a.noImportant, _b = _a.gapMode, gapMode = _b === void 0 ? 'margin' : _b;\n useLockAttribute();\n /*\n gap will be measured on every component mount\n however it will be used only by the \"first\" invocation\n due to singleton nature of <Style\n */\n var gap = React.useMemo(function () { return getGapWidth(gapMode); }, [gapMode]);\n return React.createElement(Style, { styles: getStyles(gap, !noRelative, gapMode, !noImportant ? '!important' : '') });\n};\n"],"names":["Style","styleSingleton","lockAttribute","getStyles","_a","allowRelative","gapMode","important","left","top","right","gap","noScrollbarsClassName","zeroRightClassName","fullWidthClassName","removedBarSizeVariable","getCurrentUseCounter","counter","useLockAttribute","React","newCounter","RemoveScrollBar","noRelative","noImportant","_b","getGapWidth"],"mappings":";;;;AAIA,IAAIA,IAAQC,EAAgB,GACjBC,IAAgB,sBAIvBC,IAAY,SAAUC,GAAIC,GAAeC,GAASC,GAAW;AAC7D,MAAIC,IAAOJ,EAAG,MAAMK,IAAML,EAAG,KAAKM,IAAQN,EAAG,OAAOO,IAAMP,EAAG;AAC7D,SAAIE,MAAY,WAAUA,IAAU,WAC7B;AAAA,KAAQ,OAAOM,GAAuB;AAAA,qBAA0B,EAAE,OAAOL,GAAW;AAAA,mBAAuB,EAAE,OAAOI,GAAK,KAAK,EAAE,OAAOJ,GAAW;AAAA;AAAA,QAAiB,EAAE,OAAOL,GAAe;AAAA,sBAA4B,EAAE,OAAOK,GAAW;AAAA;AAAA,KAA4C,EAAE,OAAO;AAAA,IACnSF,KAAiB,sBAAsB,OAAOE,GAAW,GAAG;AAAA,IAC5DD,MAAY,YACR;AAAA,oBAAuB,OAAOE,GAAM;AAAA,kBAAwB,EAAE,OAAOC,GAAK;AAAA,oBAA0B,EAAE,OAAOC,GAAO;AAAA;AAAA;AAAA,mBAAgE,EAAE,OAAOC,GAAK,KAAK,EAAE,OAAOJ,GAAW;AAAA,KAAS;AAAA,IACxOD,MAAY,aAAa,kBAAkB,OAAOK,GAAK,KAAK,EAAE,OAAOJ,GAAW,GAAG;AAAA,EAC3F,EACS,OAAO,OAAO,EACd,KAAK,EAAE,GAAG;AAAA;AAAA;AAAA,IAAgB,EAAE,OAAOM,GAAoB;AAAA,YAAiB,EAAE,OAAOF,GAAK,KAAK,EAAE,OAAOJ,GAAW;AAAA;AAAA;AAAA,IAAiB,EAAE,OAAOO,GAAoB;AAAA,mBAAwB,EAAE,OAAOH,GAAK,KAAK,EAAE,OAAOJ,GAAW;AAAA;AAAA;AAAA,IAAiB,EAAE,OAAOM,GAAoB,IAAI,EAAE,OAAOA,GAAoB;AAAA,cAAmB,EAAE,OAAON,GAAW;AAAA;AAAA;AAAA,IAAiB,EAAE,OAAOO,GAAoB,IAAI,EAAE,OAAOA,GAAoB;AAAA,qBAA0B,EAAE,OAAOP,GAAW;AAAA;AAAA;AAAA,QAAqB,EAAE,OAAOL,GAAe;AAAA,KAAW,EAAE,OAAOa,GAAwB,IAAI,EAAE,OAAOJ,GAAK;AAAA;AAAA,CAAY;AAC/kB,GACIK,IAAuB,WAAY;AACnC,MAAIC,IAAU,SAAS,SAAS,KAAK,aAAaf,CAAa,KAAK,KAAK,EAAE;AAC3E,SAAO,SAASe,CAAO,IAAIA,IAAU;AACzC,GACWC,IAAmB,WAAY;AACtC,EAAAC,EAAM,UAAU,WAAY;AACxB,oBAAS,KAAK,aAAajB,IAAgBc,MAAyB,GAAG,UAAU,GAC1E,WAAY;AACf,UAAII,IAAaJ,EAAoB,IAAK;AAC1C,MAAII,KAAc,IACd,SAAS,KAAK,gBAAgBlB,CAAa,IAG3C,SAAS,KAAK,aAAaA,GAAekB,EAAW,SAAQ,CAAE;AAAA,IAEtE;AAAA,EACJ,GAAE,EAAE;AACT,GAIWC,IAAkB,SAAUjB,GAAI;AACvC,MAAIkB,IAAalB,EAAG,YAAYmB,IAAcnB,EAAG,aAAaoB,IAAKpB,EAAG,SAASE,IAAUkB,MAAO,SAAS,WAAWA;AACpH,EAAAN,EAAkB;AAMlB,MAAIP,IAAMQ,EAAM,QAAQ,WAAY;AAAE,WAAOM,EAAYnB,CAAO;AAAA,EAAE,GAAI,CAACA,CAAO,CAAC;AAC/E,SAAOa,EAAM,cAAcnB,GAAO,EAAE,QAAQG,EAAUQ,GAAK,CAACW,GAAYhB,GAAUiB,IAA6B,KAAf,YAAiB,EAAC,CAAE;AACxH;","x_google_ignoreList":[0]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.
|
1
|
+
{"version":3,"file":"index.es441.js","sources":["../node_modules/react-style-singleton/dist/es2015/component.js"],"sourcesContent":["import { styleHookSingleton } from './hook';\n/**\n * create a Component to add styles on demand\n * - styles are added when first instance is mounted\n * - styles are removed when the last instance is unmounted\n * - changing styles in runtime does nothing unless dynamic is set. But with multiple components that can lead to the undefined behavior\n */\nexport var styleSingleton = function () {\n var useStyle = styleHookSingleton();\n var Sheet = function (_a) {\n var styles = _a.styles, dynamic = _a.dynamic;\n useStyle(styles, dynamic);\n return null;\n };\n return Sheet;\n};\n"],"names":["styleSingleton","useStyle","styleHookSingleton","Sheet","_a","styles","dynamic"],"mappings":";AAOU,IAACA,IAAiB,WAAY;AACpC,MAAIC,IAAWC,EAAoB,GAC/BC,IAAQ,SAAUC,GAAI;AACtB,QAAIC,IAASD,EAAG,QAAQE,IAAUF,EAAG;AACrC,WAAAH,EAASI,GAAQC,CAAO,GACjB;AAAA,EACV;AACD,SAAOH;AACX;","x_google_ignoreList":[0]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.
|
1
|
+
{"version":3,"file":"index.es442.js","sources":["../node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js"],"sourcesContent":["var passiveSupported = false;\nif (typeof window !== 'undefined') {\n try {\n var options = Object.defineProperty({}, 'passive', {\n get: function () {\n passiveSupported = true;\n return true;\n },\n });\n // @ts-ignore\n window.addEventListener('test', options, options);\n // @ts-ignore\n window.removeEventListener('test', options, options);\n }\n catch (err) {\n passiveSupported = false;\n }\n}\nexport var nonPassive = passiveSupported ? { passive: false } : false;\n"],"names":["passiveSupported","options","nonPassive"],"mappings":"AAAA,IAAIA,IAAmB;AACvB,IAAI,OAAO,SAAW;AAClB,MAAI;AACA,QAAIC,IAAU,OAAO,eAAe,CAAA,GAAI,WAAW;AAAA,MAC/C,KAAK,WAAY;AACb,eAAAD,IAAmB,IACZ;AAAA,MACV;AAAA,IACb,CAAS;AAED,WAAO,iBAAiB,QAAQC,GAASA,CAAO,GAEhD,OAAO,oBAAoB,QAAQA,GAASA,CAAO;AAAA,EAC3D,QACgB;AACR,IAAAD,IAAmB;AAAA,EAC3B;AAEU,IAACE,IAAaF,IAAmB,EAAE,SAAS,GAAK,IAAK;","x_google_ignoreList":[0]}
|
@@ -0,0 +1,65 @@
|
|
1
|
+
var p = function(e) {
|
2
|
+
return e.tagName === "TEXTAREA";
|
3
|
+
}, w = function(e, r) {
|
4
|
+
if (!(e instanceof Element))
|
5
|
+
return !1;
|
6
|
+
var o = window.getComputedStyle(e);
|
7
|
+
return (
|
8
|
+
// not-not-scrollable
|
9
|
+
o[r] !== "hidden" && // contains scroll inside self
|
10
|
+
!(o.overflowY === o.overflowX && !p(e) && o[r] === "visible")
|
11
|
+
);
|
12
|
+
}, y = function(e) {
|
13
|
+
return w(e, "overflowY");
|
14
|
+
}, H = function(e) {
|
15
|
+
return w(e, "overflowX");
|
16
|
+
}, R = function(e, r) {
|
17
|
+
var o = r.ownerDocument, t = r;
|
18
|
+
do {
|
19
|
+
typeof ShadowRoot < "u" && t instanceof ShadowRoot && (t = t.host);
|
20
|
+
var v = g(e, t);
|
21
|
+
if (v) {
|
22
|
+
var n = b(e, t), a = n[1], l = n[2];
|
23
|
+
if (a > l)
|
24
|
+
return !0;
|
25
|
+
}
|
26
|
+
t = t.parentNode;
|
27
|
+
} while (t && t !== o.body);
|
28
|
+
return !1;
|
29
|
+
}, B = function(e) {
|
30
|
+
var r = e.scrollTop, o = e.scrollHeight, t = e.clientHeight;
|
31
|
+
return [
|
32
|
+
r,
|
33
|
+
o,
|
34
|
+
t
|
35
|
+
];
|
36
|
+
}, V = function(e) {
|
37
|
+
var r = e.scrollLeft, o = e.scrollWidth, t = e.clientWidth;
|
38
|
+
return [
|
39
|
+
r,
|
40
|
+
o,
|
41
|
+
t
|
42
|
+
];
|
43
|
+
}, g = function(e, r) {
|
44
|
+
return e === "v" ? y(r) : H(r);
|
45
|
+
}, b = function(e, r) {
|
46
|
+
return e === "v" ? B(r) : V(r);
|
47
|
+
}, D = function(e, r) {
|
48
|
+
return e === "h" && r === "rtl" ? -1 : 1;
|
49
|
+
}, W = function(e, r, o, t, v) {
|
50
|
+
var n = D(e, window.getComputedStyle(r).direction), a = n * t, l = o.target, f = r.contains(l), i = !1, s = a > 0, d = 0, h = 0;
|
51
|
+
do {
|
52
|
+
var c = b(e, l), u = c[0], m = c[1], C = c[2], S = m - C - n * u;
|
53
|
+
(u || S) && g(e, l) && (d += S, h += u), l instanceof ShadowRoot ? l = l.host : l = l.parentNode;
|
54
|
+
} while (
|
55
|
+
// portaled content
|
56
|
+
!f && l !== document.body || // self content
|
57
|
+
f && (r.contains(l) || r === l)
|
58
|
+
);
|
59
|
+
return (s && Math.abs(d) < 1 || !s && Math.abs(h) < 1) && (i = !0), i;
|
60
|
+
};
|
61
|
+
export {
|
62
|
+
W as handleScroll,
|
63
|
+
R as locationCouldBeScrolled
|
64
|
+
};
|
65
|
+
//# sourceMappingURL=index.es443.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.es443.js","sources":["../node_modules/react-remove-scroll/dist/es2015/handleScroll.js"],"sourcesContent":["var alwaysContainsScroll = function (node) {\n // textarea will always _contain_ scroll inside self. It only can be hidden\n return node.tagName === 'TEXTAREA';\n};\nvar elementCanBeScrolled = function (node, overflow) {\n if (!(node instanceof Element)) {\n return false;\n }\n var styles = window.getComputedStyle(node);\n return (\n // not-not-scrollable\n styles[overflow] !== 'hidden' &&\n // contains scroll inside self\n !(styles.overflowY === styles.overflowX && !alwaysContainsScroll(node) && styles[overflow] === 'visible'));\n};\nvar elementCouldBeVScrolled = function (node) { return elementCanBeScrolled(node, 'overflowY'); };\nvar elementCouldBeHScrolled = function (node) { return elementCanBeScrolled(node, 'overflowX'); };\nexport var locationCouldBeScrolled = function (axis, node) {\n var ownerDocument = node.ownerDocument;\n var current = node;\n do {\n // Skip over shadow root\n if (typeof ShadowRoot !== 'undefined' && current instanceof ShadowRoot) {\n current = current.host;\n }\n var isScrollable = elementCouldBeScrolled(axis, current);\n if (isScrollable) {\n var _a = getScrollVariables(axis, current), scrollHeight = _a[1], clientHeight = _a[2];\n if (scrollHeight > clientHeight) {\n return true;\n }\n }\n current = current.parentNode;\n } while (current && current !== ownerDocument.body);\n return false;\n};\nvar getVScrollVariables = function (_a) {\n var scrollTop = _a.scrollTop, scrollHeight = _a.scrollHeight, clientHeight = _a.clientHeight;\n return [\n scrollTop,\n scrollHeight,\n clientHeight,\n ];\n};\nvar getHScrollVariables = function (_a) {\n var scrollLeft = _a.scrollLeft, scrollWidth = _a.scrollWidth, clientWidth = _a.clientWidth;\n return [\n scrollLeft,\n scrollWidth,\n clientWidth,\n ];\n};\nvar elementCouldBeScrolled = function (axis, node) {\n return axis === 'v' ? elementCouldBeVScrolled(node) : elementCouldBeHScrolled(node);\n};\nvar getScrollVariables = function (axis, node) {\n return axis === 'v' ? getVScrollVariables(node) : getHScrollVariables(node);\n};\nvar getDirectionFactor = function (axis, direction) {\n /**\n * If the element's direction is rtl (right-to-left), then scrollLeft is 0 when the scrollbar is at its rightmost position,\n * and then increasingly negative as you scroll towards the end of the content.\n * @see https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollLeft\n */\n return axis === 'h' && direction === 'rtl' ? -1 : 1;\n};\nexport var handleScroll = function (axis, endTarget, event, sourceDelta, noOverscroll) {\n var directionFactor = getDirectionFactor(axis, window.getComputedStyle(endTarget).direction);\n var delta = directionFactor * sourceDelta;\n // find scrollable target\n var target = event.target;\n var targetInLock = endTarget.contains(target);\n var shouldCancelScroll = false;\n var isDeltaPositive = delta > 0;\n var availableScroll = 0;\n var availableScrollTop = 0;\n do {\n var _a = getScrollVariables(axis, target), position = _a[0], scroll_1 = _a[1], capacity = _a[2];\n var elementScroll = scroll_1 - capacity - directionFactor * position;\n if (position || elementScroll) {\n if (elementCouldBeScrolled(axis, target)) {\n availableScroll += elementScroll;\n availableScrollTop += position;\n }\n }\n if (target instanceof ShadowRoot) {\n target = target.host;\n }\n else {\n target = target.parentNode;\n }\n } while (\n // portaled content\n (!targetInLock && target !== document.body) ||\n // self content\n (targetInLock && (endTarget.contains(target) || endTarget === target)));\n // handle epsilon around 0 (non standard zoom levels)\n if (isDeltaPositive &&\n ((noOverscroll && Math.abs(availableScroll) < 1) || (!noOverscroll && delta > availableScroll))) {\n shouldCancelScroll = true;\n }\n else if (!isDeltaPositive &&\n ((noOverscroll && Math.abs(availableScrollTop) < 1) || (!noOverscroll && -delta > availableScrollTop))) {\n shouldCancelScroll = true;\n }\n return shouldCancelScroll;\n};\n"],"names":["alwaysContainsScroll","node","elementCanBeScrolled","overflow","styles","elementCouldBeVScrolled","elementCouldBeHScrolled","locationCouldBeScrolled","axis","ownerDocument","current","isScrollable","elementCouldBeScrolled","_a","getScrollVariables","scrollHeight","clientHeight","getVScrollVariables","scrollTop","getHScrollVariables","scrollLeft","scrollWidth","clientWidth","getDirectionFactor","direction","handleScroll","endTarget","event","sourceDelta","noOverscroll","directionFactor","delta","target","targetInLock","shouldCancelScroll","isDeltaPositive","availableScroll","availableScrollTop","position","scroll_1","capacity","elementScroll"],"mappings":"AAAA,IAAIA,IAAuB,SAAUC,GAAM;AAEvC,SAAOA,EAAK,YAAY;AAC5B,GACIC,IAAuB,SAAUD,GAAME,GAAU;AACjD,MAAI,EAAEF,aAAgB;AAClB,WAAO;AAEX,MAAIG,IAAS,OAAO,iBAAiBH,CAAI;AACzC;AAAA;AAAA,IAEAG,EAAOD,CAAQ,MAAM;AAAA,IAEjB,EAAEC,EAAO,cAAcA,EAAO,aAAa,CAACJ,EAAqBC,CAAI,KAAKG,EAAOD,CAAQ,MAAM;AAAA;AACvG,GACIE,IAA0B,SAAUJ,GAAM;AAAE,SAAOC,EAAqBD,GAAM,WAAW;AAAI,GAC7FK,IAA0B,SAAUL,GAAM;AAAE,SAAOC,EAAqBD,GAAM,WAAW;AAAI,GACtFM,IAA0B,SAAUC,GAAMP,GAAM;AACvD,MAAIQ,IAAgBR,EAAK,eACrBS,IAAUT;AACd,KAAG;AAEC,IAAI,OAAO,aAAe,OAAeS,aAAmB,eACxDA,IAAUA,EAAQ;AAEtB,QAAIC,IAAeC,EAAuBJ,GAAME,CAAO;AACvD,QAAIC,GAAc;AACd,UAAIE,IAAKC,EAAmBN,GAAME,CAAO,GAAGK,IAAeF,EAAG,CAAC,GAAGG,IAAeH,EAAG,CAAC;AACrF,UAAIE,IAAeC;AACf,eAAO;AAAA,IAEvB;AACQ,IAAAN,IAAUA,EAAQ;AAAA,EAC1B,SAAaA,KAAWA,MAAYD,EAAc;AAC9C,SAAO;AACX,GACIQ,IAAsB,SAAUJ,GAAI;AACpC,MAAIK,IAAYL,EAAG,WAAWE,IAAeF,EAAG,cAAcG,IAAeH,EAAG;AAChF,SAAO;AAAA,IACHK;AAAA,IACAH;AAAA,IACAC;AAAA,EACH;AACL,GACIG,IAAsB,SAAUN,GAAI;AACpC,MAAIO,IAAaP,EAAG,YAAYQ,IAAcR,EAAG,aAAaS,IAAcT,EAAG;AAC/E,SAAO;AAAA,IACHO;AAAA,IACAC;AAAA,IACAC;AAAA,EACH;AACL,GACIV,IAAyB,SAAUJ,GAAMP,GAAM;AAC/C,SAAOO,MAAS,MAAMH,EAAwBJ,CAAI,IAAIK,EAAwBL,CAAI;AACtF,GACIa,IAAqB,SAAUN,GAAMP,GAAM;AAC3C,SAAOO,MAAS,MAAMS,EAAoBhB,CAAI,IAAIkB,EAAoBlB,CAAI;AAC9E,GACIsB,IAAqB,SAAUf,GAAMgB,GAAW;AAMhD,SAAOhB,MAAS,OAAOgB,MAAc,QAAQ,KAAK;AACtD,GACWC,IAAe,SAAUjB,GAAMkB,GAAWC,GAAOC,GAAaC,GAAc;AACnF,MAAIC,IAAkBP,EAAmBf,GAAM,OAAO,iBAAiBkB,CAAS,EAAE,SAAS,GACvFK,IAAQD,IAAkBF,GAE1BI,IAASL,EAAM,QACfM,IAAeP,EAAU,SAASM,CAAM,GACxCE,IAAqB,IACrBC,IAAkBJ,IAAQ,GAC1BK,IAAkB,GAClBC,IAAqB;AACzB,KAAG;AACC,QAAIxB,IAAKC,EAAmBN,GAAMwB,CAAM,GAAGM,IAAWzB,EAAG,CAAC,GAAG0B,IAAW1B,EAAG,CAAC,GAAG2B,IAAW3B,EAAG,CAAC,GAC1F4B,IAAgBF,IAAWC,IAAWV,IAAkBQ;AAC5D,KAAIA,KAAYG,MACR7B,EAAuBJ,GAAMwB,CAAM,MACnCI,KAAmBK,GACnBJ,KAAsBC,IAG1BN,aAAkB,aAClBA,IAASA,EAAO,OAGhBA,IAASA,EAAO;AAAA,EAEvB;AAAA;AAAA,IAEA,CAACC,KAAgBD,MAAW,SAAS;AAAA,IAEjCC,MAAiBP,EAAU,SAASM,CAAM,KAAKN,MAAcM;AAAA;AAElE,UAAIG,KACkB,KAAK,IAAIC,CAAe,IAAI,KAGzC,CAACD,KACY,KAAK,IAAIE,CAAkB,IAAI,OACjDH,IAAqB,KAElBA;AACX;","x_google_ignoreList":[0]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.es444.js","sources":["../node_modules/use-callback-ref/dist/es2015/assignRef.js"],"sourcesContent":["/**\n * Assigns a value for a given ref, no matter of the ref format\n * @param {RefObject} ref - a callback function or ref object\n * @param value - a new value\n *\n * @see https://github.com/theKashey/use-callback-ref#assignref\n * @example\n * const refObject = useRef();\n * const refFn = (ref) => {....}\n *\n * assignRef(refObject, \"refValue\");\n * assignRef(refFn, \"refValue\");\n */\nexport function assignRef(ref, value) {\n if (typeof ref === 'function') {\n ref(value);\n }\n else if (ref) {\n ref.current = value;\n }\n return ref;\n}\n"],"names":["assignRef","ref","value"],"mappings":"AAaO,SAASA,EAAUC,GAAKC,GAAO;AAClC,SAAI,OAAOD,KAAQ,aACfA,EAAIC,CAAK,IAEJD,MACLA,EAAI,UAAUC,IAEXD;AACX;","x_google_ignoreList":[0]}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
import { useState as u } from "react";
|
2
|
+
function n(c, r) {
|
3
|
+
var e = u(function() {
|
4
|
+
return {
|
5
|
+
// value
|
6
|
+
value: c,
|
7
|
+
// last callback
|
8
|
+
callback: r,
|
9
|
+
// "memoized" public interface
|
10
|
+
facade: {
|
11
|
+
get current() {
|
12
|
+
return e.value;
|
13
|
+
},
|
14
|
+
set current(a) {
|
15
|
+
var t = e.value;
|
16
|
+
t !== a && (e.value = a, e.callback(a, t));
|
17
|
+
}
|
18
|
+
}
|
19
|
+
};
|
20
|
+
})[0];
|
21
|
+
return e.callback = r, e.facade;
|
22
|
+
}
|
23
|
+
export {
|
24
|
+
n as useCallbackRef
|
25
|
+
};
|
26
|
+
//# sourceMappingURL=index.es445.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.es445.js","sources":["../node_modules/use-callback-ref/dist/es2015/useRef.js"],"sourcesContent":["import { useState } from 'react';\n/**\n * creates a MutableRef with ref change callback\n * @param initialValue - initial ref value\n * @param {Function} callback - a callback to run when value changes\n *\n * @example\n * const ref = useCallbackRef(0, (newValue, oldValue) => console.log(oldValue, '->', newValue);\n * ref.current = 1;\n * // prints 0 -> 1\n *\n * @see https://reactjs.org/docs/hooks-reference.html#useref\n * @see https://github.com/theKashey/use-callback-ref#usecallbackref---to-replace-reactuseref\n * @returns {MutableRefObject}\n */\nexport function useCallbackRef(initialValue, callback) {\n var ref = useState(function () { return ({\n // value\n value: initialValue,\n // last callback\n callback: callback,\n // \"memoized\" public interface\n facade: {\n get current() {\n return ref.value;\n },\n set current(value) {\n var last = ref.value;\n if (last !== value) {\n ref.value = value;\n ref.callback(value, last);\n }\n },\n },\n }); })[0];\n // update callback\n ref.callback = callback;\n return ref.facade;\n}\n"],"names":["useCallbackRef","initialValue","callback","ref","useState","value","last"],"mappings":";AAeO,SAASA,EAAeC,GAAcC,GAAU;AACnD,MAAIC,IAAMC,EAAS,WAAY;AAAE,WAAQ;AAAA;AAAA,MAErC,OAAOH;AAAA;AAAA,MAEP,UAAUC;AAAA;AAAA,MAEV,QAAQ;AAAA,QACJ,IAAI,UAAU;AACV,iBAAOC,EAAI;AAAA,QACd;AAAA,QACD,IAAI,QAAQE,GAAO;AACf,cAAIC,IAAOH,EAAI;AACf,UAAIG,MAASD,MACTF,EAAI,QAAQE,GACZF,EAAI,SAASE,GAAOC,CAAI;AAAA,QAE/B;AAAA,MACJ;AAAA,IACT;AAAA,EAAO,CAAE,EAAE,CAAC;AAER,SAAAH,EAAI,WAAWD,GACRC,EAAI;AACf;","x_google_ignoreList":[0]}
|
package/dist/index.es452.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import { g as R, a as _ } from "./index.
|
2
|
-
import { w as k, e as D, h as se, c as Z, p as N, x as we, u as W, n as ee, t as ce, j as Se, q as Te, r as xe, s as $, f as re, v as be, d as Y, a as ye } from "./index.
|
1
|
+
import { g as R, a as _ } from "./index.es466.js";
|
2
|
+
import { w as k, e as D, h as se, c as Z, p as N, x as we, u as W, n as ee, t as ce, j as Se, q as Te, r as xe, s as $, f as re, v as be, d as Y, a as ye } from "./index.es464.js";
|
3
3
|
let X;
|
4
4
|
function Ee() {
|
5
5
|
const i = _(), t = R();
|
package/dist/index.es455.js
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
-
import {
|
2
|
-
|
1
|
+
import { getDefaultExportFromCjs as r } from "./index.es375.js";
|
2
|
+
import { __require as s } from "./index.es467.js";
|
3
|
+
var e = s();
|
4
|
+
const t = /* @__PURE__ */ r(e);
|
5
|
+
export {
|
6
|
+
t as default
|
7
|
+
};
|
3
8
|
//# sourceMappingURL=index.es455.js.map
|
package/dist/index.es455.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.es455.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.es455.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
package/dist/index.es456.js
CHANGED
@@ -1,8 +1,7 @@
|
|
1
|
-
import {
|
2
|
-
import {
|
3
|
-
|
4
|
-
const t = /* @__PURE__ */ r(e);
|
1
|
+
import { asChildPropDef as r } from "./index.es471.js";
|
2
|
+
import { radiusPropDef as o } from "./index.es472.js";
|
3
|
+
const s = ["1", "2", "3"], l = { ...r, size: { values: s, default: "1" }, ...o, scrollbars: { default: "both" } };
|
5
4
|
export {
|
6
|
-
|
5
|
+
l as scrollAreaPropDefs
|
7
6
|
};
|
8
7
|
//# sourceMappingURL=index.es456.js.map
|
package/dist/index.es456.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.es456.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.es456.js","sources":["../node_modules/@radix-ui/themes/dist/esm/components/scroll-area.props.js"],"sourcesContent":["import{asChildPropDef as s}from\"../props/as-child.prop.js\";import{radiusPropDef as e}from\"../props/radius.prop.js\";const r=[\"1\",\"2\",\"3\"],o=[\"vertical\",\"horizontal\",\"both\"],t={...s,size:{type:\"enum\",className:\"rt-r-size\",values:r,default:\"1\",responsive:!0},...e,scrollbars:{type:\"enum\",values:o,default:\"both\"}};export{t as scrollAreaPropDefs};\n//# sourceMappingURL=scroll-area.props.js.map\n"],"names":["r","t","s","e"],"mappings":";;AAAwH,MAACA,IAAE,CAAC,KAAI,KAAI,GAAG,GAAqCC,IAAE,EAAC,GAAGC,GAAE,MAAK,EAAmC,QAAOF,GAAE,SAAQ,IAAiB,GAAE,GAAGG,GAAE,YAAW,EAAsB,SAAQ,OAAM,EAAC;","x_google_ignoreList":[0]}
|
package/dist/index.es457.js
CHANGED
@@ -1,7 +1,8 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
function c(m) {
|
2
|
+
const { m: t, mx: r, my: n, mt: e, mr: o, mb: s, ml: a, ...x } = m;
|
3
|
+
return { m: t, mx: r, my: n, mt: e, mr: o, mb: s, ml: a, rest: x };
|
4
|
+
}
|
4
5
|
export {
|
5
|
-
|
6
|
+
c as extractMarginProps
|
6
7
|
};
|
7
8
|
//# sourceMappingURL=index.es457.js.map
|
package/dist/index.es457.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.es457.js","sources":["../node_modules/@radix-ui/themes/dist/esm/
|
1
|
+
{"version":3,"file":"index.es457.js","sources":["../node_modules/@radix-ui/themes/dist/esm/helpers/extract-margin-props.js"],"sourcesContent":["function a(r){const{m:t,mx:m,my:o,mt:p,mr:n,mb:s,ml:e,...i}=r;return{m:t,mx:m,my:o,mt:p,mr:n,mb:s,ml:e,rest:i}}export{a as extractMarginProps};\n//# sourceMappingURL=extract-margin-props.js.map\n"],"names":["a","r","m","o","p","n","e","i"],"mappings":"AAAA,SAASA,EAAEC,GAAE;AAAC,QAAK,EAAC,GAAE,GAAE,IAAGC,GAAE,IAAGC,GAAE,IAAGC,GAAE,IAAGC,GAAE,IAAG,GAAE,IAAGC,GAAE,GAAGC,EAAC,IAAEN;AAAE,SAAM,EAAC,GAAE,GAAE,IAAGC,GAAE,IAAGC,GAAE,IAAGC,GAAE,IAAGC,GAAE,IAAG,GAAE,IAAGC,GAAE,MAAKC,EAAC;AAAC;","x_google_ignoreList":[0]}
|
package/dist/index.es458.js
CHANGED
@@ -1,8 +1,13 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
import N from "./index.es455.js";
|
2
|
+
import { getResponsiveStyles as e } from "./index.es459.js";
|
3
|
+
import { mergeStyles as V } from "./index.es461.js";
|
4
|
+
import { marginPropDefs as y } from "./index.es469.js";
|
5
|
+
const m = y.m.values;
|
6
|
+
function R(r) {
|
7
|
+
const [t, a] = e({ className: "rt-r-m", customProperties: ["--margin"], propValues: m, value: r.m }), [o, s] = e({ className: "rt-r-mx", customProperties: ["--margin-left", "--margin-right"], propValues: m, value: r.mx }), [l, p] = e({ className: "rt-r-my", customProperties: ["--margin-top", "--margin-bottom"], propValues: m, value: r.my }), [i, u] = e({ className: "rt-r-mt", customProperties: ["--margin-top"], propValues: m, value: r.mt }), [c, n] = e({ className: "rt-r-mr", customProperties: ["--margin-right"], propValues: m, value: r.mr }), [g, v] = e({ className: "rt-r-mb", customProperties: ["--margin-bottom"], propValues: m, value: r.mb }), [P, f] = e({ className: "rt-r-ml", customProperties: ["--margin-left"], propValues: m, value: r.ml });
|
8
|
+
return [N(t, o, l, i, c, g, P), V(a, s, p, u, n, v, f)];
|
4
9
|
}
|
5
10
|
export {
|
6
|
-
|
11
|
+
R as getMarginStyles
|
7
12
|
};
|
8
13
|
//# sourceMappingURL=index.es458.js.map
|
package/dist/index.es458.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.es458.js","sources":["../node_modules/@radix-ui/themes/dist/esm/helpers/
|
1
|
+
{"version":3,"file":"index.es458.js","sources":["../node_modules/@radix-ui/themes/dist/esm/helpers/get-margin-styles.js"],"sourcesContent":["import f from\"classnames\";import{getResponsiveStyles as m}from\"./get-responsive-styles.js\";import{mergeStyles as v}from\"./merge-styles.js\";import{marginPropDefs as y}from\"../props/margin.props.js\";const r=y.m.values;function S(s){const[e,t]=m({className:\"rt-r-m\",customProperties:[\"--margin\"],propValues:r,value:s.m}),[a,o]=m({className:\"rt-r-mx\",customProperties:[\"--margin-left\",\"--margin-right\"],propValues:r,value:s.mx}),[l,i]=m({className:\"rt-r-my\",customProperties:[\"--margin-top\",\"--margin-bottom\"],propValues:r,value:s.my}),[p,u]=m({className:\"rt-r-mt\",customProperties:[\"--margin-top\"],propValues:r,value:s.mt}),[n,c]=m({className:\"rt-r-mr\",customProperties:[\"--margin-right\"],propValues:r,value:s.mr}),[g,P]=m({className:\"rt-r-mb\",customProperties:[\"--margin-bottom\"],propValues:r,value:s.mb}),[N,C]=m({className:\"rt-r-ml\",customProperties:[\"--margin-left\"],propValues:r,value:s.ml});return[f(e,a,l,p,n,g,N),v(t,o,i,u,c,P,C)]}export{S as getMarginStyles};\n//# sourceMappingURL=get-margin-styles.js.map\n"],"names":["r","y","S","s","e","t","m","a","o","l","i","p","n","c","P","N","C","f","v"],"mappings":";;;;AAAqM,MAAMA,IAAEC,EAAE,EAAE;AAAO,SAASC,EAAEC,GAAE;AAAC,QAAK,CAACC,GAAEC,CAAC,IAAEC,EAAE,EAAC,WAAU,UAAS,kBAAiB,CAAC,UAAU,GAAE,YAAWN,GAAE,OAAMG,EAAE,EAAC,CAAC,GAAE,CAACI,GAAEC,CAAC,IAAEF,EAAE,EAAC,WAAU,WAAU,kBAAiB,CAAC,iBAAgB,gBAAgB,GAAE,YAAWN,GAAE,OAAMG,EAAE,GAAE,CAAC,GAAE,CAACM,GAAEC,CAAC,IAAEJ,EAAE,EAAC,WAAU,WAAU,kBAAiB,CAAC,gBAAe,iBAAiB,GAAE,YAAWN,GAAE,OAAMG,EAAE,GAAE,CAAC,GAAE,CAACQ,GAAE,CAAC,IAAEL,EAAE,EAAC,WAAU,WAAU,kBAAiB,CAAC,cAAc,GAAE,YAAWN,GAAE,OAAMG,EAAE,GAAE,CAAC,GAAE,CAACS,GAAEC,CAAC,IAAEP,EAAE,EAAC,WAAU,WAAU,kBAAiB,CAAC,gBAAgB,GAAE,YAAWN,GAAE,OAAMG,EAAE,GAAE,CAAC,GAAE,CAAC,GAAEW,CAAC,IAAER,EAAE,EAAC,WAAU,WAAU,kBAAiB,CAAC,iBAAiB,GAAE,YAAWN,GAAE,OAAMG,EAAE,GAAE,CAAC,GAAE,CAACY,GAAEC,CAAC,IAAEV,EAAE,EAAC,WAAU,WAAU,kBAAiB,CAAC,eAAe,GAAE,YAAWN,GAAE,OAAMG,EAAE,GAAE,CAAC;AAAE,SAAM,CAACc,EAAEb,GAAEG,GAAEE,GAAEE,GAAEC,GAAE,GAAEG,CAAC,GAAEG,EAAEb,GAAEG,GAAEE,GAAE,GAAEG,GAAEC,GAAEE,CAAC,CAAC;AAAC;","x_google_ignoreList":[0]}
|
package/dist/index.es459.js
CHANGED
@@ -1,13 +1,59 @@
|
|
1
|
-
import
|
2
|
-
import {
|
3
|
-
import {
|
4
|
-
|
5
|
-
const
|
6
|
-
|
7
|
-
|
8
|
-
|
1
|
+
import { breakpoints as l } from "./index.es473.js";
|
2
|
+
import { hasOwnProperty as p } from "./index.es474.js";
|
3
|
+
import { isResponsiveObject as m } from "./index.es475.js";
|
4
|
+
function V({ className: n, customProperties: i, ...t }) {
|
5
|
+
const u = v({ allowArbitraryValues: !0, className: n, ...t }), s = d({ customProperties: i, ...t });
|
6
|
+
return [u, s];
|
7
|
+
}
|
8
|
+
function v({ allowArbitraryValues: n, value: i, className: t, propValues: u, parseValue: s = (e) => e }) {
|
9
|
+
const e = [];
|
10
|
+
if (i) {
|
11
|
+
if (typeof i == "string" && u.includes(i)) return f(t, i, s);
|
12
|
+
if (m(i)) {
|
13
|
+
const o = i;
|
14
|
+
for (const r in o) {
|
15
|
+
if (!p(o, r) || !l.includes(r)) continue;
|
16
|
+
const a = o[r];
|
17
|
+
if (a !== void 0) {
|
18
|
+
if (u.includes(a)) {
|
19
|
+
const c = f(t, a, s), $ = r === "initial" ? c : `${r}:${c}`;
|
20
|
+
e.push($);
|
21
|
+
} else if (n) {
|
22
|
+
const c = r === "initial" ? t : `${r}:${t}`;
|
23
|
+
e.push(c);
|
24
|
+
}
|
25
|
+
}
|
26
|
+
}
|
27
|
+
return e.join(" ");
|
28
|
+
}
|
29
|
+
if (n) return t;
|
30
|
+
}
|
31
|
+
}
|
32
|
+
function f(n, i, t) {
|
33
|
+
const u = n ? "-" : "", s = t(i), e = s == null ? void 0 : s.startsWith("-"), o = e ? "-" : "", r = e ? s == null ? void 0 : s.substring(1) : s;
|
34
|
+
return `${o}${n}${u}${r}`;
|
35
|
+
}
|
36
|
+
function d({ customProperties: n, value: i, propValues: t, parseValue: u = (s) => s }) {
|
37
|
+
let s = {};
|
38
|
+
if (!(!i || typeof i == "string" && t.includes(i))) {
|
39
|
+
if (typeof i == "string" && (s = Object.fromEntries(n.map((e) => [e, i]))), m(i)) {
|
40
|
+
const e = i;
|
41
|
+
for (const o in e) {
|
42
|
+
if (!p(e, o) || !l.includes(o)) continue;
|
43
|
+
const r = e[o];
|
44
|
+
if (!t.includes(r)) for (const a of n) s = { [o === "initial" ? a : `${a}-${o}`]: r, ...s };
|
45
|
+
}
|
46
|
+
}
|
47
|
+
for (const e in s) {
|
48
|
+
const o = s[e];
|
49
|
+
o !== void 0 && (s[e] = u(o));
|
50
|
+
}
|
51
|
+
return s;
|
52
|
+
}
|
9
53
|
}
|
10
54
|
export {
|
11
|
-
|
55
|
+
v as getResponsiveClassNames,
|
56
|
+
d as getResponsiveCustomProperties,
|
57
|
+
V as getResponsiveStyles
|
12
58
|
};
|
13
59
|
//# sourceMappingURL=index.es459.js.map
|
package/dist/index.es459.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.es459.js","sources":["../node_modules/@radix-ui/themes/dist/esm/helpers/get-
|
1
|
+
{"version":3,"file":"index.es459.js","sources":["../node_modules/@radix-ui/themes/dist/esm/helpers/get-responsive-styles.js"],"sourcesContent":["import{breakpoints as c}from\"../props/prop-def.js\";import{hasOwnProperty as a}from\"./has-own-property.js\";import{isResponsiveObject as d}from\"./is-responsive-object.js\";function R({className:r,customProperties:n,...t}){const p=g({allowArbitraryValues:!0,className:r,...t}),e=m({customProperties:n,...t});return[p,e]}function g({allowArbitraryValues:r,value:n,className:t,propValues:p,parseValue:e=s=>s}){const s=[];if(n){if(typeof n==\"string\"&&p.includes(n))return l(t,n,e);if(d(n)){const i=n;for(const o in i){if(!a(i,o)||!c.includes(o))continue;const u=i[o];if(u!==void 0){if(p.includes(u)){const f=l(t,u,e),v=o===\"initial\"?f:`${o}:${f}`;s.push(v)}else if(r){const f=o===\"initial\"?t:`${o}:${t}`;s.push(f)}}}return s.join(\" \")}if(r)return t}}function l(r,n,t){const p=r?\"-\":\"\",e=t(n),s=e?.startsWith(\"-\"),i=s?\"-\":\"\",o=s?e?.substring(1):e;return`${i}${r}${p}${o}`}function m({customProperties:r,value:n,propValues:t,parseValue:p=e=>e}){let e={};if(!(!n||typeof n==\"string\"&&t.includes(n))){if(typeof n==\"string\"&&(e=Object.fromEntries(r.map(s=>[s,n]))),d(n)){const s=n;for(const i in s){if(!a(s,i)||!c.includes(i))continue;const o=s[i];if(!t.includes(o))for(const u of r)e={[i===\"initial\"?u:`${u}-${i}`]:o,...e}}}for(const s in e){const i=e[s];i!==void 0&&(e[s]=p(i))}return e}}export{g as getResponsiveClassNames,m as getResponsiveCustomProperties,R as getResponsiveStyles};\n//# sourceMappingURL=get-responsive-styles.js.map\n"],"names":["R","r","n","p","g","e","m","s","l","d","i","o","a","c","u","f","v"],"mappings":";;;AAAyK,SAASA,EAAE,EAAC,WAAUC,GAAE,kBAAiBC,GAAE,GAAG,EAAC,GAAE;AAAC,QAAMC,IAAEC,EAAE,EAAC,sBAAqB,IAAG,WAAUH,GAAE,GAAG,EAAC,CAAC,GAAEI,IAAEC,EAAE,EAAC,kBAAiBJ,GAAE,GAAG,EAAC,CAAC;AAAE,SAAM,CAACC,GAAEE,CAAC;AAAC;AAAC,SAASD,EAAE,EAAC,sBAAqBH,GAAE,OAAMC,GAAE,WAAU,GAAE,YAAWC,GAAE,YAAWE,IAAE,CAAAE,MAAGA,EAAC,GAAE;AAAC,QAAMA,IAAE,CAAA;AAAG,MAAGL,GAAE;AAAC,QAAG,OAAOA,KAAG,YAAUC,EAAE,SAASD,CAAC,EAAE,QAAOM,EAAE,GAAEN,GAAEG,CAAC;AAAE,QAAGI,EAAEP,CAAC,GAAE;AAAC,YAAMQ,IAAER;AAAE,iBAAUS,KAAKD,GAAE;AAAC,YAAG,CAACE,EAAEF,GAAEC,CAAC,KAAG,CAACE,EAAE,SAASF,CAAC,EAAE;AAAS,cAAMG,IAAEJ,EAAEC,CAAC;AAAE,YAAGG,MAAI;AAAQ,cAAGX,EAAE,SAASW,CAAC,GAAE;AAAC,kBAAMC,IAAEP,EAAE,GAAEM,GAAET,CAAC,GAAEW,IAAEL,MAAI,YAAUI,IAAE,GAAGJ,CAAC,IAAII,CAAC;AAAG,YAAAR,EAAE,KAAKS,CAAC;AAAA,UAAC,WAASf,GAAE;AAAC,kBAAMc,IAAEJ,MAAI,YAAU,IAAE,GAAGA,CAAC,IAAI,CAAC;AAAG,YAAAJ,EAAE,KAAKQ,CAAC;AAAA,UAAC;AAAA;AAAA,MAAE;AAAC,aAAOR,EAAE,KAAK,GAAG;AAAA,IAAC;AAAC,QAAGN,EAAE,QAAO;AAAA,EAAC;AAAC;AAAC,SAASO,EAAEP,GAAEC,GAAE,GAAE;AAAC,QAAMC,IAAEF,IAAE,MAAI,IAAGI,IAAE,EAAEH,CAAC,GAAEK,IAAEF,KAAA,gBAAAA,EAAG,WAAW,MAAKK,IAAEH,IAAE,MAAI,IAAGI,IAAEJ,IAAEF,KAAA,gBAAAA,EAAG,UAAU,KAAGA;AAAE,SAAM,GAAGK,CAAC,GAAGT,CAAC,GAAGE,CAAC,GAAGQ,CAAC;AAAE;AAAC,SAASL,EAAE,EAAC,kBAAiBL,GAAE,OAAMC,GAAE,YAAW,GAAE,YAAWC,IAAE,CAAAE,MAAGA,EAAC,GAAE;AAAC,MAAIA,IAAE,CAAE;AAAC,MAAG,EAAE,CAACH,KAAG,OAAOA,KAAG,YAAU,EAAE,SAASA,CAAC,IAAG;AAAC,QAAG,OAAOA,KAAG,aAAWG,IAAE,OAAO,YAAYJ,EAAE,IAAI,CAAAM,MAAG,CAACA,GAAEL,CAAC,CAAC,CAAC,IAAGO,EAAEP,CAAC,GAAE;AAAC,YAAMK,IAAEL;AAAE,iBAAUQ,KAAKH,GAAE;AAAC,YAAG,CAACK,EAAEL,GAAEG,CAAC,KAAG,CAACG,EAAE,SAASH,CAAC,EAAE;AAAS,cAAMC,IAAEJ,EAAEG,CAAC;AAAE,YAAG,CAAC,EAAE,SAASC,CAAC,EAAE,YAAUG,KAAKb,EAAEI,CAAAA,IAAE,EAAC,CAACK,MAAI,YAAUI,IAAE,GAAGA,CAAC,IAAIJ,CAAC,EAAE,GAAEC,GAAE,GAAGN,EAAC;AAAA,MAAC;AAAA,IAAC;AAAC,eAAUE,KAAKF,GAAE;AAAC,YAAMK,IAAEL,EAAEE,CAAC;AAAE,MAAAG,MAAI,WAASL,EAAEE,CAAC,IAAEJ,EAAEO,CAAC;AAAA,IAAE;AAAC,WAAOL;AAAAA,EAAC;AAAC;","x_google_ignoreList":[0]}
|
package/dist/index.es460.js
CHANGED
@@ -1,59 +1,11 @@
|
|
1
|
-
import
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
const
|
6
|
-
return
|
7
|
-
}
|
8
|
-
function v({ allowArbitraryValues: n, value: i, className: t, propValues: u, parseValue: s = (e) => e }) {
|
9
|
-
const e = [];
|
10
|
-
if (i) {
|
11
|
-
if (typeof i == "string" && u.includes(i)) return f(t, i, s);
|
12
|
-
if (m(i)) {
|
13
|
-
const o = i;
|
14
|
-
for (const r in o) {
|
15
|
-
if (!p(o, r) || !l.includes(r)) continue;
|
16
|
-
const a = o[r];
|
17
|
-
if (a !== void 0) {
|
18
|
-
if (u.includes(a)) {
|
19
|
-
const c = f(t, a, s), $ = r === "initial" ? c : `${r}:${c}`;
|
20
|
-
e.push($);
|
21
|
-
} else if (n) {
|
22
|
-
const c = r === "initial" ? t : `${r}:${t}`;
|
23
|
-
e.push(c);
|
24
|
-
}
|
25
|
-
}
|
26
|
-
}
|
27
|
-
return e.join(" ");
|
28
|
-
}
|
29
|
-
if (n) return t;
|
30
|
-
}
|
31
|
-
}
|
32
|
-
function f(n, i, t) {
|
33
|
-
const u = n ? "-" : "", s = t(i), e = s == null ? void 0 : s.startsWith("-"), o = e ? "-" : "", r = e ? s == null ? void 0 : s.substring(1) : s;
|
34
|
-
return `${o}${n}${u}${r}`;
|
35
|
-
}
|
36
|
-
function d({ customProperties: n, value: i, propValues: t, parseValue: u = (s) => s }) {
|
37
|
-
let s = {};
|
38
|
-
if (!(!i || typeof i == "string" && t.includes(i))) {
|
39
|
-
if (typeof i == "string" && (s = Object.fromEntries(n.map((e) => [e, i]))), m(i)) {
|
40
|
-
const e = i;
|
41
|
-
for (const o in e) {
|
42
|
-
if (!p(e, o) || !l.includes(o)) continue;
|
43
|
-
const r = e[o];
|
44
|
-
if (!t.includes(r)) for (const a of n) s = { [o === "initial" ? a : `${a}-${o}`]: r, ...s };
|
45
|
-
}
|
46
|
-
}
|
47
|
-
for (const e in s) {
|
48
|
-
const o = s[e];
|
49
|
-
o !== void 0 && (s[e] = u(o));
|
50
|
-
}
|
51
|
-
return s;
|
52
|
-
}
|
1
|
+
import * as o from "react";
|
2
|
+
function i(c, n) {
|
3
|
+
const { asChild: e, children: t } = c;
|
4
|
+
if (!e) return typeof n == "function" ? n(t) : n;
|
5
|
+
const r = o.Children.only(t);
|
6
|
+
return o.cloneElement(r, { children: typeof n == "function" ? n(r.props.children) : n });
|
53
7
|
}
|
54
8
|
export {
|
55
|
-
|
56
|
-
d as getResponsiveCustomProperties,
|
57
|
-
V as getResponsiveStyles
|
9
|
+
i as getSubtree
|
58
10
|
};
|
59
11
|
//# sourceMappingURL=index.es460.js.map
|
package/dist/index.es460.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.es460.js","sources":["../node_modules/@radix-ui/themes/dist/esm/helpers/get-
|
1
|
+
{"version":3,"file":"index.es460.js","sources":["../node_modules/@radix-ui/themes/dist/esm/helpers/get-subtree.js"],"sourcesContent":["import*as a from\"react\";function d(i,e){const{asChild:r,children:c}=i;if(!r)return typeof e==\"function\"?e(c):e;const t=a.Children.only(c);return a.cloneElement(t,{children:typeof e==\"function\"?e(t.props.children):e})}export{d as getSubtree};\n//# sourceMappingURL=get-subtree.js.map\n"],"names":["d","i","e","r","c","t","a"],"mappings":";AAAwB,SAASA,EAAEC,GAAEC,GAAE;AAAC,QAAK,EAAC,SAAQC,GAAE,UAASC,EAAC,IAAEH;AAAE,MAAG,CAACE,EAAE,QAAO,OAAOD,KAAG,aAAWA,EAAEE,CAAC,IAAEF;AAAE,QAAMG,IAAEC,EAAE,SAAS,KAAKF,CAAC;AAAE,SAAOE,EAAE,aAAaD,GAAE,EAAC,UAAS,OAAOH,KAAG,aAAWA,EAAEG,EAAE,MAAM,QAAQ,IAAEH,EAAC,CAAC;AAAC;","x_google_ignoreList":[0]}
|
package/dist/index.es461.js
CHANGED
@@ -1,11 +1,9 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
const
|
4
|
-
|
5
|
-
const r = o.Children.only(t);
|
6
|
-
return o.cloneElement(r, { children: typeof n == "function" ? n(r.props.children) : n });
|
1
|
+
function o(...n) {
|
2
|
+
let e = {};
|
3
|
+
for (const t of n) t && (e = { ...e, ...t });
|
4
|
+
return Object.keys(e).length ? e : void 0;
|
7
5
|
}
|
8
6
|
export {
|
9
|
-
|
7
|
+
o as mergeStyles
|
10
8
|
};
|
11
9
|
//# sourceMappingURL=index.es461.js.map
|
package/dist/index.es461.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.es461.js","sources":["../node_modules/@radix-ui/themes/dist/esm/helpers/
|
1
|
+
{"version":3,"file":"index.es461.js","sources":["../node_modules/@radix-ui/themes/dist/esm/helpers/merge-styles.js"],"sourcesContent":["function l(...t){let e={};for(const n of t)n&&(e={...e,...n});return Object.keys(e).length?e:void 0}export{l as mergeStyles};\n//# sourceMappingURL=merge-styles.js.map\n"],"names":["l","t","n"],"mappings":"AAAA,SAASA,KAAKC,GAAE;AAAC,MAAI,IAAE;AAAG,aAAUC,KAAKD,EAAE,CAAAC,MAAI,IAAE,EAAC,GAAG,GAAE,GAAGA,EAAC;AAAG,SAAO,OAAO,KAAK,CAAC,EAAE,SAAO,IAAE;AAAM;","x_google_ignoreList":[0]}
|