@anoki/fse-ui 1.0.489 → 1.0.491
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.cjs.js +1 -1
- package/dist/index.cjs10.js +1 -1
- package/dist/index.cjs110.js +1 -1
- package/dist/index.cjs111.js +1 -1
- package/dist/index.cjs112.js +1 -1
- package/dist/index.cjs113.js +1 -1
- package/dist/index.cjs114.js +1 -1
- package/dist/index.cjs115.js +1 -1
- package/dist/index.cjs116.js +1 -1
- package/dist/index.cjs117.js +1 -1
- package/dist/index.cjs118.js +1 -1
- package/dist/index.cjs119.js +1 -1
- package/dist/index.cjs120.js +1 -1
- package/dist/index.cjs121.js +1 -1
- package/dist/index.cjs122.js +1 -1
- package/dist/index.cjs123.js +1 -1
- package/dist/index.cjs124.js +1 -1
- package/dist/index.cjs125.js +1 -1
- package/dist/index.cjs126.js +1 -1
- package/dist/index.cjs127.js +1 -1
- package/dist/index.cjs128.js +1 -1
- package/dist/index.cjs129.js +1 -1
- package/dist/index.cjs130.js +1 -1
- package/dist/index.cjs131.js +1 -1
- package/dist/index.cjs134.js +1 -1
- package/dist/index.cjs135.js +1 -1
- package/dist/index.cjs136.js +1 -1
- package/dist/index.cjs138.js +1 -1
- package/dist/index.cjs139.js +1 -1
- package/dist/index.cjs140.js +1 -1
- package/dist/index.cjs141.js +1 -1
- package/dist/index.cjs142.js +1 -1
- package/dist/index.cjs143.js +1 -1
- package/dist/index.cjs144.js +1 -1
- package/dist/index.cjs145.js +1 -1
- package/dist/index.cjs146.js +1 -1
- package/dist/index.cjs148.js +1 -1
- package/dist/index.cjs149.js +1 -1
- package/dist/index.cjs150.js +1 -1
- package/dist/index.cjs151.js +1 -1
- package/dist/index.cjs152.js +1 -1
- package/dist/index.cjs153.js +1 -1
- package/dist/index.cjs154.js +1 -1
- package/dist/index.cjs156.js +1 -1
- package/dist/index.cjs157.js +1 -1
- package/dist/index.cjs158.js +1 -1
- package/dist/index.cjs189.js +1 -1
- package/dist/index.cjs189.js.map +1 -1
- package/dist/index.cjs191.js +2 -0
- package/dist/index.cjs191.js.map +1 -0
- package/dist/index.cjs200.js +1 -1
- package/dist/index.cjs206.js +1 -1
- package/dist/index.cjs209.js +1 -1
- package/dist/index.cjs210.js +1 -1
- package/dist/index.cjs217.js +1 -1
- package/dist/index.cjs22.js +1 -1
- package/dist/index.cjs226.js +1 -1
- package/dist/index.cjs228.js +1 -1
- package/dist/index.cjs235.js +1 -1
- package/dist/index.cjs240.js +1 -1
- package/dist/index.cjs247.js +1 -1
- package/dist/index.cjs25.js +1 -1
- package/dist/index.cjs253.js +1 -1
- package/dist/index.cjs254.js +1 -1
- package/dist/index.cjs255.js +1 -1
- package/dist/index.cjs294.js +1 -1
- package/dist/index.cjs312.js +1 -1
- package/dist/index.cjs313.js +1 -1
- package/dist/index.cjs317.js +1 -1
- package/dist/index.cjs317.js.map +1 -1
- package/dist/index.cjs318.js +1 -1
- package/dist/index.cjs318.js.map +1 -1
- package/dist/index.cjs319.js +2 -0
- package/dist/index.cjs319.js.map +1 -0
- package/dist/index.cjs320.js +1 -1
- package/dist/index.cjs320.js.map +1 -1
- package/dist/{index.cjs327.js → index.cjs321.js} +2 -2
- package/dist/{index.cjs327.js.map → index.cjs321.js.map} +1 -1
- package/dist/index.cjs322.js +2 -0
- package/dist/index.cjs322.js.map +1 -0
- package/dist/index.cjs323.js +1 -1
- package/dist/index.cjs323.js.map +1 -1
- package/dist/index.cjs325.js +1 -1
- package/dist/index.cjs325.js.map +1 -1
- package/dist/index.cjs328.js +1 -1
- package/dist/index.cjs328.js.map +1 -1
- package/dist/index.cjs329.js +1 -1
- package/dist/index.cjs329.js.map +1 -1
- package/dist/index.cjs330.js +1 -1
- package/dist/index.cjs330.js.map +1 -1
- package/dist/index.cjs331.js +1 -1
- package/dist/index.cjs331.js.map +1 -1
- package/dist/index.cjs332.js +1 -1
- package/dist/index.cjs332.js.map +1 -1
- package/dist/index.cjs333.js +1 -1
- package/dist/index.cjs333.js.map +1 -1
- package/dist/index.cjs334.js +1 -1
- package/dist/index.cjs334.js.map +1 -1
- package/dist/index.cjs335.js +1 -1
- package/dist/index.cjs335.js.map +1 -1
- package/dist/index.cjs336.js +1 -1
- package/dist/index.cjs336.js.map +1 -1
- package/dist/index.cjs337.js +1 -1
- package/dist/index.cjs337.js.map +1 -1
- package/dist/index.cjs346.js +1 -1
- package/dist/index.cjs346.js.map +1 -1
- package/dist/index.cjs347.js +1 -1
- package/dist/index.cjs347.js.map +1 -1
- package/dist/index.cjs351.js +1 -1
- package/dist/index.cjs351.js.map +1 -1
- package/dist/index.cjs352.js +1 -1
- package/dist/index.cjs352.js.map +1 -1
- package/dist/index.cjs353.js +1 -1
- package/dist/index.cjs353.js.map +1 -1
- package/dist/index.cjs354.js +1 -1
- package/dist/index.cjs354.js.map +1 -1
- package/dist/index.cjs355.js +1 -1
- package/dist/index.cjs355.js.map +1 -1
- package/dist/index.cjs356.js +1 -4
- package/dist/index.cjs356.js.map +1 -1
- package/dist/{index.cjs344.js → index.cjs361.js} +2 -2
- package/dist/{index.cjs344.js.map → index.cjs361.js.map} +1 -1
- package/dist/{index.cjs345.js → index.cjs362.js} +2 -2
- package/dist/{index.cjs345.js.map → index.cjs362.js.map} +1 -1
- package/dist/index.cjs363.js +1 -1
- package/dist/index.cjs363.js.map +1 -1
- package/dist/index.cjs364.js +1 -1
- package/dist/index.cjs364.js.map +1 -1
- package/dist/index.cjs365.js +1 -1
- package/dist/index.cjs365.js.map +1 -1
- package/dist/index.cjs366.js +2 -0
- package/dist/index.cjs366.js.map +1 -0
- package/dist/index.cjs367.js +2 -0
- package/dist/index.cjs367.js.map +1 -0
- package/dist/index.cjs368.js +2 -0
- package/dist/index.cjs368.js.map +1 -0
- package/dist/index.cjs369.js +2 -0
- package/dist/index.cjs369.js.map +1 -0
- package/dist/index.cjs370.js +2 -0
- package/dist/index.cjs370.js.map +1 -0
- package/dist/index.cjs371.js +5 -0
- package/dist/index.cjs371.js.map +1 -0
- package/dist/{index.cjs357.js → index.cjs372.js} +2 -2
- package/dist/{index.cjs357.js.map → index.cjs372.js.map} +1 -1
- package/dist/index.cjs373.js +2 -0
- package/dist/index.cjs373.js.map +1 -0
- package/dist/index.cjs374.js +2 -0
- package/dist/index.cjs374.js.map +1 -0
- package/dist/index.cjs375.js +2 -0
- package/dist/index.cjs375.js.map +1 -0
- package/dist/index.cjs376.js +1 -1
- package/dist/index.cjs380.js +1 -1
- package/dist/index.cjs396.js +1 -1
- package/dist/index.cjs56.js +1 -1
- package/dist/index.cjs6.js +1 -1
- package/dist/index.cjs7.js +1 -1
- package/dist/index.cjs8.js +1 -1
- package/dist/index.cjs87.js +1 -1
- package/dist/index.cjs87.js.map +1 -1
- package/dist/index.cjs9.js +1 -1
- package/dist/index.cjs92.js +1 -1
- package/dist/index.cjs92.js.map +1 -1
- package/dist/index.d.ts +15 -6
- package/dist/index.es.js +160 -158
- package/dist/index.es10.js +2 -2
- package/dist/index.es110.js +1 -1
- package/dist/index.es111.js +1 -1
- package/dist/index.es112.js +1 -1
- package/dist/index.es113.js +1 -1
- package/dist/index.es114.js +1 -1
- package/dist/index.es115.js +1 -1
- package/dist/index.es116.js +1 -1
- package/dist/index.es117.js +1 -1
- package/dist/index.es118.js +1 -1
- package/dist/index.es119.js +1 -1
- package/dist/index.es120.js +1 -1
- package/dist/index.es121.js +1 -1
- package/dist/index.es122.js +1 -1
- package/dist/index.es123.js +1 -1
- package/dist/index.es124.js +1 -1
- package/dist/index.es125.js +1 -1
- package/dist/index.es126.js +1 -1
- package/dist/index.es127.js +1 -1
- package/dist/index.es128.js +1 -1
- package/dist/index.es129.js +1 -1
- package/dist/index.es130.js +1 -1
- package/dist/index.es131.js +1 -1
- package/dist/index.es134.js +1 -1
- package/dist/index.es135.js +1 -1
- package/dist/index.es136.js +1 -1
- package/dist/index.es138.js +1 -1
- package/dist/index.es139.js +1 -1
- package/dist/index.es140.js +1 -1
- package/dist/index.es141.js +1 -1
- package/dist/index.es142.js +1 -1
- package/dist/index.es143.js +1 -1
- package/dist/index.es144.js +1 -1
- package/dist/index.es145.js +1 -1
- package/dist/index.es146.js +1 -1
- package/dist/index.es148.js +1 -1
- package/dist/index.es149.js +1 -1
- package/dist/index.es150.js +1 -1
- package/dist/index.es151.js +1 -1
- package/dist/index.es152.js +1 -1
- package/dist/index.es153.js +1 -1
- package/dist/index.es154.js +1 -1
- package/dist/index.es156.js +1 -1
- package/dist/index.es157.js +1 -1
- package/dist/index.es158.js +1 -1
- package/dist/index.es189.js +27 -2
- package/dist/index.es189.js.map +1 -1
- package/dist/index.es191.js +5 -0
- package/dist/index.es191.js.map +1 -0
- package/dist/index.es200.js +1 -1
- package/dist/index.es206.js +7 -7
- package/dist/index.es209.js +1 -1
- package/dist/index.es210.js +1 -1
- package/dist/index.es217.js +8 -8
- package/dist/index.es22.js +1 -1
- package/dist/index.es226.js +1 -1
- package/dist/index.es228.js +14 -14
- package/dist/index.es235.js +1 -1
- package/dist/index.es240.js +1 -1
- package/dist/index.es247.js +1 -1
- package/dist/index.es25.js +1 -1
- package/dist/index.es253.js +1 -1
- package/dist/index.es254.js +1 -1
- package/dist/index.es255.js +7 -7
- package/dist/index.es294.js +4 -4
- package/dist/index.es312.js +1 -1
- package/dist/index.es313.js +1 -1
- package/dist/index.es317.js +7 -2
- package/dist/index.es317.js.map +1 -1
- package/dist/index.es318.js +27 -2
- package/dist/index.es318.js.map +1 -1
- package/dist/index.es319.js +71 -0
- package/dist/index.es319.js.map +1 -0
- package/dist/index.es320.js +30 -15
- package/dist/index.es320.js.map +1 -1
- package/dist/{index.es327.js → index.es321.js} +2 -2
- package/dist/{index.es327.js.map → index.es321.js.map} +1 -1
- package/dist/index.es322.js +625 -0
- package/dist/index.es322.js.map +1 -0
- package/dist/index.es323.js +10 -6
- package/dist/index.es323.js.map +1 -1
- package/dist/index.es325.js +14 -67
- package/dist/index.es325.js.map +1 -1
- package/dist/index.es328.js +5 -621
- package/dist/index.es328.js.map +1 -1
- package/dist/index.es329.js +24 -10
- package/dist/index.es329.js.map +1 -1
- package/dist/index.es330.js +68 -10
- package/dist/index.es330.js.map +1 -1
- package/dist/index.es331.js +120 -48
- package/dist/index.es331.js.map +1 -1
- package/dist/index.es332.js +130 -41
- package/dist/index.es332.js.map +1 -1
- package/dist/index.es333.js +14 -8
- package/dist/index.es333.js.map +1 -1
- package/dist/index.es334.js +12 -122
- package/dist/index.es334.js.map +1 -1
- package/dist/index.es335.js +8 -14
- package/dist/index.es335.js.map +1 -1
- package/dist/index.es336.js +48 -133
- package/dist/index.es336.js.map +1 -1
- package/dist/index.es337.js +49 -214
- package/dist/index.es337.js.map +1 -1
- package/dist/index.es346.js +2 -22
- package/dist/index.es346.js.map +1 -1
- package/dist/index.es347.js +2 -25
- package/dist/index.es347.js.map +1 -1
- package/dist/index.es351.js +11 -29
- package/dist/index.es351.js.map +1 -1
- package/dist/index.es352.js +46 -5
- package/dist/index.es352.js.map +1 -1
- package/dist/index.es353.js +8 -5
- package/dist/index.es353.js.map +1 -1
- package/dist/index.es354.js +218 -3
- package/dist/index.es354.js.map +1 -1
- package/dist/index.es355.js +176 -22
- package/dist/index.es355.js.map +1 -1
- package/dist/index.es356.js +4 -110
- package/dist/index.es356.js.map +1 -1
- package/dist/{index.es344.js → index.es361.js} +2 -2
- package/dist/{index.es344.js.map → index.es361.js.map} +1 -1
- package/dist/{index.es345.js → index.es362.js} +3 -3
- package/dist/{index.es345.js.map → index.es362.js.map} +1 -1
- package/dist/index.es363.js +21 -522
- package/dist/index.es363.js.map +1 -1
- package/dist/index.es364.js +379 -113
- package/dist/index.es364.js.map +1 -1
- package/dist/index.es365.js +23 -127
- package/dist/index.es365.js.map +1 -1
- package/dist/index.es366.js +32 -0
- package/dist/index.es366.js.map +1 -0
- package/dist/index.es367.js +8 -0
- package/dist/index.es367.js.map +1 -0
- package/dist/index.es368.js +8 -0
- package/dist/index.es368.js.map +1 -0
- package/dist/index.es369.js +6 -0
- package/dist/index.es369.js.map +1 -0
- package/dist/index.es370.js +27 -0
- package/dist/index.es370.js.map +1 -0
- package/dist/index.es371.js +113 -0
- package/dist/index.es371.js.map +1 -0
- package/dist/{index.es357.js → index.es372.js} +2 -2
- package/dist/{index.es357.js.map → index.es372.js.map} +1 -1
- package/dist/index.es373.js +526 -0
- package/dist/index.es373.js.map +1 -0
- package/dist/index.es374.js +130 -0
- package/dist/index.es374.js.map +1 -0
- package/dist/index.es375.js +132 -0
- package/dist/index.es375.js.map +1 -0
- package/dist/index.es376.js +1 -1
- package/dist/index.es380.js +1 -1
- package/dist/index.es396.js +8 -8
- package/dist/index.es56.js +1 -1
- package/dist/index.es6.js +1 -1
- package/dist/index.es7.js +1 -1
- package/dist/index.es8.js +1 -1
- package/dist/index.es87.js +20 -18
- package/dist/index.es87.js.map +1 -1
- package/dist/index.es9.js +2 -2
- package/dist/index.es92.js +28 -26
- package/dist/index.es92.js.map +1 -1
- package/package.json +1 -1
- package/dist/index.cjs190.js +0 -2
- package/dist/index.cjs190.js.map +0 -1
- package/dist/index.cjs324.js +0 -2
- package/dist/index.cjs324.js.map +0 -1
- package/dist/index.cjs326.js +0 -2
- package/dist/index.cjs326.js.map +0 -1
- package/dist/index.cjs338.js +0 -2
- package/dist/index.cjs338.js.map +0 -1
- package/dist/index.cjs339.js +0 -2
- package/dist/index.cjs339.js.map +0 -1
- package/dist/index.cjs340.js +0 -2
- package/dist/index.cjs340.js.map +0 -1
- package/dist/index.cjs341.js +0 -2
- package/dist/index.cjs341.js.map +0 -1
- package/dist/index.cjs342.js +0 -2
- package/dist/index.cjs342.js.map +0 -1
- package/dist/index.cjs343.js +0 -2
- package/dist/index.cjs343.js.map +0 -1
- package/dist/index.cjs348.js +0 -2
- package/dist/index.cjs348.js.map +0 -1
- package/dist/index.cjs349.js +0 -2
- package/dist/index.cjs349.js.map +0 -1
- package/dist/index.cjs350.js +0 -2
- package/dist/index.cjs350.js.map +0 -1
- package/dist/index.es190.js +0 -30
- package/dist/index.es190.js.map +0 -1
- package/dist/index.es324.js +0 -30
- package/dist/index.es324.js.map +0 -1
- package/dist/index.es326.js +0 -33
- package/dist/index.es326.js.map +0 -1
- package/dist/index.es338.js +0 -17
- package/dist/index.es338.js.map +0 -1
- package/dist/index.es339.js +0 -72
- package/dist/index.es339.js.map +0 -1
- package/dist/index.es340.js +0 -181
- package/dist/index.es340.js.map +0 -1
- package/dist/index.es341.js +0 -53
- package/dist/index.es341.js.map +0 -1
- package/dist/index.es342.js +0 -12
- package/dist/index.es342.js.map +0 -1
- package/dist/index.es343.js +0 -7
- package/dist/index.es343.js.map +0 -1
- package/dist/index.es348.js +0 -396
- package/dist/index.es348.js.map +0 -1
- package/dist/index.es349.js +0 -9
- package/dist/index.es349.js.map +0 -1
- package/dist/index.es350.js +0 -28
- package/dist/index.es350.js.map +0 -1
- /package/dist/components/ui/{DoctorModal/DoctorModalFooter/DoctorModalFooter.css → ConsentModal/ConsentModalFooter/ConsentModalFooter.css} +0 -0
@@ -0,0 +1,130 @@
|
|
1
|
+
const P = ["top", "right", "bottom", "left"], l = Math.min, m = Math.max, M = Math.round, O = Math.floor, S = (t) => ({
|
2
|
+
x: t,
|
3
|
+
y: t
|
4
|
+
}), p = {
|
5
|
+
left: "right",
|
6
|
+
right: "left",
|
7
|
+
bottom: "top",
|
8
|
+
top: "bottom"
|
9
|
+
}, a = {
|
10
|
+
start: "end",
|
11
|
+
end: "start"
|
12
|
+
};
|
13
|
+
function w(t, n, e) {
|
14
|
+
return m(t, l(n, e));
|
15
|
+
}
|
16
|
+
function j(t, n) {
|
17
|
+
return typeof t == "function" ? t(n) : t;
|
18
|
+
}
|
19
|
+
function u(t) {
|
20
|
+
return t.split("-")[0];
|
21
|
+
}
|
22
|
+
function g(t) {
|
23
|
+
return t.split("-")[1];
|
24
|
+
}
|
25
|
+
function h(t) {
|
26
|
+
return t === "x" ? "y" : "x";
|
27
|
+
}
|
28
|
+
function b(t) {
|
29
|
+
return t === "y" ? "height" : "width";
|
30
|
+
}
|
31
|
+
function x(t) {
|
32
|
+
return ["top", "bottom"].includes(u(t)) ? "y" : "x";
|
33
|
+
}
|
34
|
+
function d(t) {
|
35
|
+
return h(x(t));
|
36
|
+
}
|
37
|
+
function C(t, n, e) {
|
38
|
+
e === void 0 && (e = !1);
|
39
|
+
const r = g(t), o = d(t), i = b(o);
|
40
|
+
let c = o === "x" ? r === (e ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
41
|
+
return n.reference[i] > n.floating[i] && (c = f(c)), [c, f(c)];
|
42
|
+
}
|
43
|
+
function L(t) {
|
44
|
+
const n = f(t);
|
45
|
+
return [s(t), n, s(n)];
|
46
|
+
}
|
47
|
+
function s(t) {
|
48
|
+
return t.replace(/start|end/g, (n) => a[n]);
|
49
|
+
}
|
50
|
+
function A(t, n, e) {
|
51
|
+
const r = ["left", "right"], o = ["right", "left"], i = ["top", "bottom"], c = ["bottom", "top"];
|
52
|
+
switch (t) {
|
53
|
+
case "top":
|
54
|
+
case "bottom":
|
55
|
+
return e ? n ? o : r : n ? r : o;
|
56
|
+
case "left":
|
57
|
+
case "right":
|
58
|
+
return n ? i : c;
|
59
|
+
default:
|
60
|
+
return [];
|
61
|
+
}
|
62
|
+
}
|
63
|
+
function E(t, n, e, r) {
|
64
|
+
const o = g(t);
|
65
|
+
let i = A(u(t), e === "start", r);
|
66
|
+
return o && (i = i.map((c) => c + "-" + o), n && (i = i.concat(i.map(s)))), i;
|
67
|
+
}
|
68
|
+
function f(t) {
|
69
|
+
return t.replace(/left|right|bottom|top/g, (n) => p[n]);
|
70
|
+
}
|
71
|
+
function y(t) {
|
72
|
+
return {
|
73
|
+
top: 0,
|
74
|
+
right: 0,
|
75
|
+
bottom: 0,
|
76
|
+
left: 0,
|
77
|
+
...t
|
78
|
+
};
|
79
|
+
}
|
80
|
+
function R(t) {
|
81
|
+
return typeof t != "number" ? y(t) : {
|
82
|
+
top: t,
|
83
|
+
right: t,
|
84
|
+
bottom: t,
|
85
|
+
left: t
|
86
|
+
};
|
87
|
+
}
|
88
|
+
function T(t) {
|
89
|
+
const {
|
90
|
+
x: n,
|
91
|
+
y: e,
|
92
|
+
width: r,
|
93
|
+
height: o
|
94
|
+
} = t;
|
95
|
+
return {
|
96
|
+
width: r,
|
97
|
+
height: o,
|
98
|
+
top: e,
|
99
|
+
left: n,
|
100
|
+
right: n + r,
|
101
|
+
bottom: e + o,
|
102
|
+
x: n,
|
103
|
+
y: e
|
104
|
+
};
|
105
|
+
}
|
106
|
+
export {
|
107
|
+
w as clamp,
|
108
|
+
S as createCoords,
|
109
|
+
j as evaluate,
|
110
|
+
y as expandPaddingObject,
|
111
|
+
O as floor,
|
112
|
+
g as getAlignment,
|
113
|
+
d as getAlignmentAxis,
|
114
|
+
C as getAlignmentSides,
|
115
|
+
b as getAxisLength,
|
116
|
+
L as getExpandedPlacements,
|
117
|
+
s as getOppositeAlignmentPlacement,
|
118
|
+
h as getOppositeAxis,
|
119
|
+
E as getOppositeAxisPlacements,
|
120
|
+
f as getOppositePlacement,
|
121
|
+
R as getPaddingObject,
|
122
|
+
u as getSide,
|
123
|
+
x as getSideAxis,
|
124
|
+
m as max,
|
125
|
+
l as min,
|
126
|
+
T as rectToClientRect,
|
127
|
+
M as round,
|
128
|
+
P as sides
|
129
|
+
};
|
130
|
+
//# sourceMappingURL=index.es374.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.es374.js","sources":["../node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs"],"sourcesContent":["/**\n * Custom positioning reference element.\n * @see https://floating-ui.com/docs/virtual-elements\n */\n\nconst sides = ['top', 'right', 'bottom', 'left'];\nconst alignments = ['start', 'end'];\nconst placements = /*#__PURE__*/sides.reduce((acc, side) => acc.concat(side, side + \"-\" + alignments[0], side + \"-\" + alignments[1]), []);\nconst min = Math.min;\nconst max = Math.max;\nconst round = Math.round;\nconst floor = Math.floor;\nconst createCoords = v => ({\n x: v,\n y: v\n});\nconst oppositeSideMap = {\n left: 'right',\n right: 'left',\n bottom: 'top',\n top: 'bottom'\n};\nconst oppositeAlignmentMap = {\n start: 'end',\n end: 'start'\n};\nfunction clamp(start, value, end) {\n return max(start, min(value, end));\n}\nfunction evaluate(value, param) {\n return typeof value === 'function' ? value(param) : value;\n}\nfunction getSide(placement) {\n return placement.split('-')[0];\n}\nfunction getAlignment(placement) {\n return placement.split('-')[1];\n}\nfunction getOppositeAxis(axis) {\n return axis === 'x' ? 'y' : 'x';\n}\nfunction getAxisLength(axis) {\n return axis === 'y' ? 'height' : 'width';\n}\nfunction getSideAxis(placement) {\n return ['top', 'bottom'].includes(getSide(placement)) ? 'y' : 'x';\n}\nfunction getAlignmentAxis(placement) {\n return getOppositeAxis(getSideAxis(placement));\n}\nfunction getAlignmentSides(placement, rects, rtl) {\n if (rtl === void 0) {\n rtl = false;\n }\n const alignment = getAlignment(placement);\n const alignmentAxis = getAlignmentAxis(placement);\n const length = getAxisLength(alignmentAxis);\n let mainAlignmentSide = alignmentAxis === 'x' ? alignment === (rtl ? 'end' : 'start') ? 'right' : 'left' : alignment === 'start' ? 'bottom' : 'top';\n if (rects.reference[length] > rects.floating[length]) {\n mainAlignmentSide = getOppositePlacement(mainAlignmentSide);\n }\n return [mainAlignmentSide, getOppositePlacement(mainAlignmentSide)];\n}\nfunction getExpandedPlacements(placement) {\n const oppositePlacement = getOppositePlacement(placement);\n return [getOppositeAlignmentPlacement(placement), oppositePlacement, getOppositeAlignmentPlacement(oppositePlacement)];\n}\nfunction getOppositeAlignmentPlacement(placement) {\n return placement.replace(/start|end/g, alignment => oppositeAlignmentMap[alignment]);\n}\nfunction getSideList(side, isStart, rtl) {\n const lr = ['left', 'right'];\n const rl = ['right', 'left'];\n const tb = ['top', 'bottom'];\n const bt = ['bottom', 'top'];\n switch (side) {\n case 'top':\n case 'bottom':\n if (rtl) return isStart ? rl : lr;\n return isStart ? lr : rl;\n case 'left':\n case 'right':\n return isStart ? tb : bt;\n default:\n return [];\n }\n}\nfunction getOppositeAxisPlacements(placement, flipAlignment, direction, rtl) {\n const alignment = getAlignment(placement);\n let list = getSideList(getSide(placement), direction === 'start', rtl);\n if (alignment) {\n list = list.map(side => side + \"-\" + alignment);\n if (flipAlignment) {\n list = list.concat(list.map(getOppositeAlignmentPlacement));\n }\n }\n return list;\n}\nfunction getOppositePlacement(placement) {\n return placement.replace(/left|right|bottom|top/g, side => oppositeSideMap[side]);\n}\nfunction expandPaddingObject(padding) {\n return {\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n ...padding\n };\n}\nfunction getPaddingObject(padding) {\n return typeof padding !== 'number' ? expandPaddingObject(padding) : {\n top: padding,\n right: padding,\n bottom: padding,\n left: padding\n };\n}\nfunction rectToClientRect(rect) {\n const {\n x,\n y,\n width,\n height\n } = rect;\n return {\n width,\n height,\n top: y,\n left: x,\n right: x + width,\n bottom: y + height,\n x,\n y\n };\n}\n\nexport { alignments, clamp, createCoords, evaluate, expandPaddingObject, floor, getAlignment, getAlignmentAxis, getAlignmentSides, getAxisLength, getExpandedPlacements, getOppositeAlignmentPlacement, getOppositeAxis, getOppositeAxisPlacements, getOppositePlacement, getPaddingObject, getSide, getSideAxis, max, min, placements, rectToClientRect, round, sides };\n"],"names":["sides","min","max","round","floor","createCoords","v","oppositeSideMap","oppositeAlignmentMap","clamp","start","value","end","evaluate","param","getSide","placement","getAlignment","getOppositeAxis","axis","getAxisLength","getSideAxis","getAlignmentAxis","getAlignmentSides","rects","rtl","alignment","alignmentAxis","length","mainAlignmentSide","getOppositePlacement","getExpandedPlacements","oppositePlacement","getOppositeAlignmentPlacement","getSideList","side","isStart","lr","rl","tb","bt","getOppositeAxisPlacements","flipAlignment","direction","list","expandPaddingObject","padding","getPaddingObject","rectToClientRect","rect","x","y","width","height"],"mappings":"AAKK,MAACA,IAAQ,CAAC,OAAO,SAAS,UAAU,MAAM,GAGzCC,IAAM,KAAK,KACXC,IAAM,KAAK,KACXC,IAAQ,KAAK,OACbC,IAAQ,KAAK,OACbC,I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AO,OAAOA,KAAY,WAAWD,EAAoBC,CAAO,IAAI;AAAA,IAClE,KAAKA;AAAA,IACL,OAAOA;AAAA,IACP,QAAQA;AAAA,IACR,MAAMA;AAAA,EACP;AACH;AACA,SAASE,EAAiBC,GAAM;AAC9B,QAAM;AAAA,IACJ,GAAAC;AAAA,IACA,GAAAC;AAAA,IACA,OAAAC;AAAA,IACA,QAAAC;AAAA,EACJ,IAAMJ;AACJ,SAAO;AAAA,IACL,OAAAG;AAAA,IACA,QAAAC;AAAA,IACA,KAAKF;AAAA,IACL,MAAMD;AAAA,IACN,OAAOA,IAAIE;AAAA,IACX,QAAQD,IAAIE;AAAA,IACZ,GAAAH;AAAA,IACA,GAAAC;AAAA,EACD;AACH;","x_google_ignoreList":[0]}
|
@@ -0,0 +1,132 @@
|
|
1
|
+
function c() {
|
2
|
+
return typeof window < "u";
|
3
|
+
}
|
4
|
+
function s(n) {
|
5
|
+
return p(n) ? (n.nodeName || "").toLowerCase() : "#document";
|
6
|
+
}
|
7
|
+
function i(n) {
|
8
|
+
var t;
|
9
|
+
return (n == null || (t = n.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
10
|
+
}
|
11
|
+
function E(n) {
|
12
|
+
var t;
|
13
|
+
return (t = (p(n) ? n.ownerDocument : n.document) || window.document) == null ? void 0 : t.documentElement;
|
14
|
+
}
|
15
|
+
function p(n) {
|
16
|
+
return c() ? n instanceof Node || n instanceof i(n).Node : !1;
|
17
|
+
}
|
18
|
+
function m(n) {
|
19
|
+
return c() ? n instanceof Element || n instanceof i(n).Element : !1;
|
20
|
+
}
|
21
|
+
function w(n) {
|
22
|
+
return c() ? n instanceof HTMLElement || n instanceof i(n).HTMLElement : !1;
|
23
|
+
}
|
24
|
+
function a(n) {
|
25
|
+
return !c() || typeof ShadowRoot > "u" ? !1 : n instanceof ShadowRoot || n instanceof i(n).ShadowRoot;
|
26
|
+
}
|
27
|
+
function y(n) {
|
28
|
+
const {
|
29
|
+
overflow: t,
|
30
|
+
overflowX: e,
|
31
|
+
overflowY: o,
|
32
|
+
display: r
|
33
|
+
} = b(n);
|
34
|
+
return /auto|scroll|overlay|hidden|clip/.test(t + o + e) && !["inline", "contents"].includes(r);
|
35
|
+
}
|
36
|
+
function D(n) {
|
37
|
+
return ["table", "td", "th"].includes(s(n));
|
38
|
+
}
|
39
|
+
function N(n) {
|
40
|
+
return [":popover-open", ":modal"].some((t) => {
|
41
|
+
try {
|
42
|
+
return n.matches(t);
|
43
|
+
} catch {
|
44
|
+
return !1;
|
45
|
+
}
|
46
|
+
});
|
47
|
+
}
|
48
|
+
function T(n) {
|
49
|
+
const t = L(), e = m(n) ? b(n) : n;
|
50
|
+
return ["transform", "translate", "scale", "rotate", "perspective"].some((o) => e[o] ? e[o] !== "none" : !1) || (e.containerType ? e.containerType !== "normal" : !1) || !t && (e.backdropFilter ? e.backdropFilter !== "none" : !1) || !t && (e.filter ? e.filter !== "none" : !1) || ["transform", "translate", "scale", "rotate", "perspective", "filter"].some((o) => (e.willChange || "").includes(o)) || ["paint", "layout", "strict", "content"].some((o) => (e.contain || "").includes(o));
|
51
|
+
}
|
52
|
+
function k(n) {
|
53
|
+
let t = u(n);
|
54
|
+
for (; w(t) && !g(t); ) {
|
55
|
+
if (T(t))
|
56
|
+
return t;
|
57
|
+
if (N(t))
|
58
|
+
return null;
|
59
|
+
t = u(t);
|
60
|
+
}
|
61
|
+
return null;
|
62
|
+
}
|
63
|
+
function L() {
|
64
|
+
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
65
|
+
}
|
66
|
+
function g(n) {
|
67
|
+
return ["html", "body", "#document"].includes(s(n));
|
68
|
+
}
|
69
|
+
function b(n) {
|
70
|
+
return i(n).getComputedStyle(n);
|
71
|
+
}
|
72
|
+
function C(n) {
|
73
|
+
return m(n) ? {
|
74
|
+
scrollLeft: n.scrollLeft,
|
75
|
+
scrollTop: n.scrollTop
|
76
|
+
} : {
|
77
|
+
scrollLeft: n.scrollX,
|
78
|
+
scrollTop: n.scrollY
|
79
|
+
};
|
80
|
+
}
|
81
|
+
function u(n) {
|
82
|
+
if (s(n) === "html")
|
83
|
+
return n;
|
84
|
+
const t = (
|
85
|
+
// Step into the shadow DOM of the parent of a slotted node.
|
86
|
+
n.assignedSlot || // DOM Element detected.
|
87
|
+
n.parentNode || // ShadowRoot detected.
|
88
|
+
a(n) && n.host || // Fallback.
|
89
|
+
E(n)
|
90
|
+
);
|
91
|
+
return a(t) ? t.host : t;
|
92
|
+
}
|
93
|
+
function h(n) {
|
94
|
+
const t = u(n);
|
95
|
+
return g(t) ? n.ownerDocument ? n.ownerDocument.body : n.body : w(t) && y(t) ? t : h(t);
|
96
|
+
}
|
97
|
+
function d(n, t, e) {
|
98
|
+
var o;
|
99
|
+
t === void 0 && (t = []), e === void 0 && (e = !0);
|
100
|
+
const r = h(n), S = r === ((o = n.ownerDocument) == null ? void 0 : o.body), l = i(r);
|
101
|
+
if (S) {
|
102
|
+
const f = v(l);
|
103
|
+
return t.concat(l, l.visualViewport || [], y(r) ? r : [], f && e ? d(f) : []);
|
104
|
+
}
|
105
|
+
return t.concat(r, d(r, [], e));
|
106
|
+
}
|
107
|
+
function v(n) {
|
108
|
+
return n.parent && Object.getPrototypeOf(n.parent) ? n.frameElement : null;
|
109
|
+
}
|
110
|
+
export {
|
111
|
+
b as getComputedStyle,
|
112
|
+
k as getContainingBlock,
|
113
|
+
E as getDocumentElement,
|
114
|
+
v as getFrameElement,
|
115
|
+
h as getNearestOverflowAncestor,
|
116
|
+
s as getNodeName,
|
117
|
+
C as getNodeScroll,
|
118
|
+
d as getOverflowAncestors,
|
119
|
+
u as getParentNode,
|
120
|
+
i as getWindow,
|
121
|
+
T as isContainingBlock,
|
122
|
+
m as isElement,
|
123
|
+
w as isHTMLElement,
|
124
|
+
g as isLastTraversableNode,
|
125
|
+
p as isNode,
|
126
|
+
y as isOverflowElement,
|
127
|
+
a as isShadowRoot,
|
128
|
+
D as isTableElement,
|
129
|
+
N as isTopLayer,
|
130
|
+
L as isWebKit
|
131
|
+
};
|
132
|
+
//# sourceMappingURL=index.es375.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.es375.js","sources":["../node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs"],"sourcesContent":["function hasWindow() {\n return typeof window !== 'undefined';\n}\nfunction getNodeName(node) {\n if (isNode(node)) {\n return (node.nodeName || '').toLowerCase();\n }\n // Mocked nodes in testing environments may not be instances of Node. By\n // returning `#document` an infinite loop won't occur.\n // https://github.com/floating-ui/floating-ui/issues/2317\n return '#document';\n}\nfunction getWindow(node) {\n var _node$ownerDocument;\n return (node == null || (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;\n}\nfunction getDocumentElement(node) {\n var _ref;\n return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ? void 0 : _ref.documentElement;\n}\nfunction isNode(value) {\n if (!hasWindow()) {\n return false;\n }\n return value instanceof Node || value instanceof getWindow(value).Node;\n}\nfunction isElement(value) {\n if (!hasWindow()) {\n return false;\n }\n return value instanceof Element || value instanceof getWindow(value).Element;\n}\nfunction isHTMLElement(value) {\n if (!hasWindow()) {\n return false;\n }\n return value instanceof HTMLElement || value instanceof getWindow(value).HTMLElement;\n}\nfunction isShadowRoot(value) {\n if (!hasWindow() || typeof ShadowRoot === 'undefined') {\n return false;\n }\n return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;\n}\nfunction isOverflowElement(element) {\n const {\n overflow,\n overflowX,\n overflowY,\n display\n } = getComputedStyle(element);\n return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !['inline', 'contents'].includes(display);\n}\nfunction isTableElement(element) {\n return ['table', 'td', 'th'].includes(getNodeName(element));\n}\nfunction isTopLayer(element) {\n return [':popover-open', ':modal'].some(selector => {\n try {\n return element.matches(selector);\n } catch (e) {\n return false;\n }\n });\n}\nfunction isContainingBlock(elementOrCss) {\n const webkit = isWebKit();\n const css = isElement(elementOrCss) ? getComputedStyle(elementOrCss) : elementOrCss;\n\n // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block\n // https://drafts.csswg.org/css-transforms-2/#individual-transforms\n return ['transform', 'translate', 'scale', 'rotate', 'perspective'].some(value => css[value] ? css[value] !== 'none' : false) || (css.containerType ? css.containerType !== 'normal' : false) || !webkit && (css.backdropFilter ? css.backdropFilter !== 'none' : false) || !webkit && (css.filter ? css.filter !== 'none' : false) || ['transform', 'translate', 'scale', 'rotate', 'perspective', 'filter'].some(value => (css.willChange || '').includes(value)) || ['paint', 'layout', 'strict', 'content'].some(value => (css.contain || '').includes(value));\n}\nfunction getContainingBlock(element) {\n let currentNode = getParentNode(element);\n while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {\n if (isContainingBlock(currentNode)) {\n return currentNode;\n } else if (isTopLayer(currentNode)) {\n return null;\n }\n currentNode = getParentNode(currentNode);\n }\n return null;\n}\nfunction isWebKit() {\n if (typeof CSS === 'undefined' || !CSS.supports) return false;\n return CSS.supports('-webkit-backdrop-filter', 'none');\n}\nfunction isLastTraversableNode(node) {\n return ['html', 'body', '#document'].includes(getNodeName(node));\n}\nfunction getComputedStyle(element) {\n return getWindow(element).getComputedStyle(element);\n}\nfunction getNodeScroll(element) {\n if (isElement(element)) {\n return {\n scrollLeft: element.scrollLeft,\n scrollTop: element.scrollTop\n };\n }\n return {\n scrollLeft: element.scrollX,\n scrollTop: element.scrollY\n };\n}\nfunction getParentNode(node) {\n if (getNodeName(node) === 'html') {\n return node;\n }\n const result =\n // Step into the shadow DOM of the parent of a slotted node.\n node.assignedSlot ||\n // DOM Element detected.\n node.parentNode ||\n // ShadowRoot detected.\n isShadowRoot(node) && node.host ||\n // Fallback.\n getDocumentElement(node);\n return isShadowRoot(result) ? result.host : result;\n}\nfunction getNearestOverflowAncestor(node) {\n const parentNode = getParentNode(node);\n if (isLastTraversableNode(parentNode)) {\n return node.ownerDocument ? node.ownerDocument.body : node.body;\n }\n if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) {\n return parentNode;\n }\n return getNearestOverflowAncestor(parentNode);\n}\nfunction getOverflowAncestors(node, list, traverseIframes) {\n var _node$ownerDocument2;\n if (list === void 0) {\n list = [];\n }\n if (traverseIframes === void 0) {\n traverseIframes = true;\n }\n const scrollableAncestor = getNearestOverflowAncestor(node);\n const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);\n const win = getWindow(scrollableAncestor);\n if (isBody) {\n const frameElement = getFrameElement(win);\n return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], frameElement && traverseIframes ? getOverflowAncestors(frameElement) : []);\n }\n return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));\n}\nfunction getFrameElement(win) {\n return win.parent && Object.getPrototypeOf(win.parent) ? win.frameElement : null;\n}\n\nexport { getComputedStyle, getContainingBlock, getDocumentElement, getFrameElement, getNearestOverflowAncestor, getNodeName, getNodeScroll, getOverflowAncestors, getParentNode, getWindow, isContainingBlock, isElement, isHTMLElement, isLastTraversableNode, isNode, isOverflowElement, isShadowRoot, isTableElement, isTopLayer, isWebKit };\n"],"names":["hasWindow","getNodeName","node","isNode","getWindow","_node$ownerDocument","getDocumentElement","_ref","value","isElement","isHTMLElement","isShadowRoot","isOverflowElement","element","overflow","overflowX","overflowY","display","getComputedStyle","isTableElement","isTopLayer","selector","isContainingBlock","elementOrCss","webkit","isWebKit","css","getContainingBlock","currentNode","getParentNode","isLastTraversableNode","getNodeScroll","result","getNearestOverflowAncestor","parentNode","getOverflowAncestors","list","traverseIframes","_node$ownerDocument2","scrollableAncestor","isBody","win","frameElement","getFrameElement"],"mappings":"AAAA,SAASA,IAAY;AACnB,SAAO,OAAO,SAAW;AAC3B;AACA,SAASC,EAAYC,GAAM;AACzB,SAAIC,EAAOD,CAAI,KACLA,EAA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C;AACtG;AACA,SAASM,EAAgBF,GAAK;AAC5B,SAAOA,EAAI,UAAU,OAAO,eAAeA,EAAI,MAAM,IAAIA,EAAI,eAAe;AAC9E;","x_google_ignoreList":[0]}
|
package/dist/index.es376.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import * as d from "react";
|
2
2
|
import { styleSingleton as f } from "./index.es377.js";
|
3
|
-
import { noScrollbarsClassName as p, zeroRightClassName as g, fullWidthClassName as l, removedBarSizeVariable as v } from "./index.
|
3
|
+
import { noScrollbarsClassName as p, zeroRightClassName as g, fullWidthClassName as l, removedBarSizeVariable as v } from "./index.es368.js";
|
4
4
|
import { getGapWidth as m } from "./index.es383.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;
|
package/dist/index.es380.js
CHANGED
package/dist/index.es396.js
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
import * as c from "react";
|
2
|
-
import { Primitive as L } from "./index.
|
3
|
-
import { Presence as O } from "./index.
|
4
|
-
import { createContextScope as le } from "./index.
|
5
|
-
import { useComposedRefs as T } from "./index.
|
6
|
-
import { useCallbackRef as x } from "./index.
|
7
|
-
import { useDirection as ce } from "./index.
|
8
|
-
import { useLayoutEffect as se } from "./index.
|
2
|
+
import { Primitive as L } from "./index.es321.js";
|
3
|
+
import { Presence as O } from "./index.es330.js";
|
4
|
+
import { createContextScope as le } from "./index.es319.js";
|
5
|
+
import { useComposedRefs as T } from "./index.es318.js";
|
6
|
+
import { useCallbackRef as x } from "./index.es351.js";
|
7
|
+
import { useDirection as ce } from "./index.es353.js";
|
8
|
+
import { useLayoutEffect as se } from "./index.es356.js";
|
9
9
|
import { clamp as ie } from "./index.es405.js";
|
10
|
-
import { composeEventHandlers as C } from "./index.
|
10
|
+
import { composeEventHandlers as C } from "./index.es317.js";
|
11
11
|
import { j as b } from "./index.es178.js";
|
12
12
|
function ae(e, t) {
|
13
13
|
return c.useReducer((r, l) => t[r][l] ?? r, e);
|
package/dist/index.es56.js
CHANGED
package/dist/index.es6.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { j as p } from "./index.es178.js";
|
2
2
|
import { clsx as l } from "./index.es180.js";
|
3
3
|
import { useMemo as u } from "react";
|
4
|
-
import { createSpacingClasses as x } from "./index.
|
4
|
+
import { createSpacingClasses as x } from "./index.es189.js";
|
5
5
|
import './components/ui/Container/Container.css';/* empty css */
|
6
6
|
const v = ({
|
7
7
|
as: o,
|
package/dist/index.es7.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { j as a } from "./index.es178.js";
|
2
2
|
import { useMemo as i } from "react";
|
3
3
|
import { clsx as m } from "./index.es180.js";
|
4
|
-
import { createSpacingClasses as c } from "./index.
|
4
|
+
import { createSpacingClasses as c } from "./index.es189.js";
|
5
5
|
const g = ({
|
6
6
|
as: o,
|
7
7
|
className: r,
|
package/dist/index.es8.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { j as g } from "./index.es178.js";
|
2
2
|
import { useMemo as s } from "react";
|
3
3
|
import { clsx as x } from "./index.es180.js";
|
4
|
-
import { createSpacingClasses as f } from "./index.
|
4
|
+
import { createSpacingClasses as f } from "./index.es189.js";
|
5
5
|
const v = ({
|
6
6
|
as: e,
|
7
7
|
className: i,
|
package/dist/index.es87.js
CHANGED
@@ -1,28 +1,30 @@
|
|
1
|
-
import { j as
|
1
|
+
import { j as e } from "./index.es178.js";
|
2
2
|
import './components/ui/ActionBanner/ActionBanner.css';/* empty css */
|
3
3
|
import { ArrowLink as d } from "./index.es35.js";
|
4
|
-
import { Button as
|
5
|
-
import { Shape as
|
6
|
-
|
7
|
-
|
4
|
+
import { Button as n } from "./index.es25.js";
|
5
|
+
import { Shape as h } from "./index.es144.js";
|
6
|
+
var c = /* @__PURE__ */ ((r) => (r.DEFAULT = "default", r.OUTLINE = "outline", r.SIMPLE = "simple", r))(c || {});
|
7
|
+
const b = ({
|
8
|
+
title: r,
|
8
9
|
description: l,
|
9
10
|
variant: t = "default",
|
10
|
-
link:
|
11
|
-
firstAction:
|
12
|
-
secondAction:
|
13
|
-
}) => /* @__PURE__ */
|
14
|
-
/* @__PURE__ */
|
15
|
-
/* @__PURE__ */
|
16
|
-
/* @__PURE__ */
|
17
|
-
/* @__PURE__ */
|
11
|
+
link: a,
|
12
|
+
firstAction: s,
|
13
|
+
secondAction: i
|
14
|
+
}) => /* @__PURE__ */ e.jsxs("div", { className: `action-banner action-banner-${t}`, children: [
|
15
|
+
/* @__PURE__ */ e.jsx("div", { className: "banner-head", children: /* @__PURE__ */ e.jsx("div", { className: "banner-title", children: r }) }),
|
16
|
+
/* @__PURE__ */ e.jsxs("div", { className: "banner-body", children: [
|
17
|
+
/* @__PURE__ */ e.jsx("div", { className: "banner-icon", children: /* @__PURE__ */ e.jsx(h, { width: 48, height: 48 }) }),
|
18
|
+
/* @__PURE__ */ e.jsx("span", { className: "banner-description", children: l })
|
18
19
|
] }),
|
19
|
-
/* @__PURE__ */
|
20
|
-
|
21
|
-
|
22
|
-
|
20
|
+
/* @__PURE__ */ e.jsxs("div", { className: "banner-actions", children: [
|
21
|
+
a && /* @__PURE__ */ e.jsx(d, { asLink: "a", children: a.title, href: a.link }),
|
22
|
+
s && /* @__PURE__ */ e.jsx(n, { variant: "secondary", asLink: "a", href: s.link, children: s.title }),
|
23
|
+
i && /* @__PURE__ */ e.jsx(n, { asLink: "a", href: i.link, children: i.title })
|
23
24
|
] })
|
24
25
|
] });
|
25
26
|
export {
|
26
|
-
|
27
|
+
b as ActionBanner,
|
28
|
+
c as ActionBannerVariantEnum
|
27
29
|
};
|
28
30
|
//# sourceMappingURL=index.es87.js.map
|
package/dist/index.es87.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.es87.js","sources":["../src/components/ui/ActionBanner/index.tsx"],"sourcesContent":["import React from \"react\";\nimport \"./ActionBanner.scss\";\nimport { Shape } from \"@/icons\";\nimport { GetValues, Link } from \"@anoki/fse-common/dist\";\nimport { ArrowLink } from \"../ArrowLink\";\nimport { Button } from \"../Button\";\n\nexport
|
1
|
+
{"version":3,"file":"index.es87.js","sources":["../src/components/ui/ActionBanner/index.tsx"],"sourcesContent":["import React from \"react\";\nimport \"./ActionBanner.scss\";\nimport { Shape } from \"@/icons\";\nimport { GetValues, Link } from \"@anoki/fse-common/dist\";\nimport { ArrowLink } from \"../ArrowLink\";\nimport { Button } from \"../Button\";\n\nexport enum ActionBannerVariantEnum {\n DEFAULT = \"default\",\n OUTLINE = \"outline\",\n SIMPLE = \"simple\"\n}\n\nexport type ActionBannerVariantTypes = GetValues<typeof ActionBannerVariantEnum>;\n\ninterface ActionBannerProps {\n title: string;\n description: string;\n variant?: ActionBannerVariantTypes;\n link?: Link;\n firstAction?: Link;\n secondAction?: Link;\n}\n\nexport const ActionBanner: React.FC<ActionBannerProps> = ({\n title,\n description,\n variant = \"default\",\n link,\n firstAction,\n secondAction,\n}) => {\n return (\n <div className={`action-banner action-banner-${variant}`}>\n <div className=\"banner-head\">\n <div className=\"banner-title\">{title}</div>\n </div>\n <div className=\"banner-body\">\n <div className=\"banner-icon\">\n <Shape width={48} height={48} />\n </div>\n <span className=\"banner-description\">{description}</span>\n </div>\n <div className=\"banner-actions\">\n {link && (\n <ArrowLink asLink=\"a\" children={link.title} href={link.link} />\n )}\n {firstAction && (\n <Button variant=\"secondary\" asLink=\"a\" href={firstAction.link}>\n {firstAction.title}\n </Button>\n )}\n {secondAction && (\n <Button asLink=\"a\" href={secondAction.link}>\n {secondAction.title}\n </Button>\n )}\n </div>\n </div>\n );\n};\n"],"names":["ActionBannerVariantEnum","ActionBanner","title","description","variant","link","firstAction","secondAction","jsxs","jsx","Shape","ArrowLink","Button"],"mappings":";;;;;AAOY,IAAAA,sBAAAA,OACVA,EAAA,UAAU,WACVA,EAAA,UAAU,WACVA,EAAA,SAAS,UAHCA,IAAAA,KAAA,CAAA,CAAA;AAiBL,MAAMC,IAA4C,CAAC;AAAA,EACxD,OAAAC;AAAA,EACA,aAAAC;AAAA,EACA,SAAAC,IAAU;AAAA,EACV,MAAAC;AAAA,EACA,aAAAC;AAAA,EACA,cAAAC;AACF,MAEKC,gBAAAA,EAAA,KAAA,OAAA,EAAI,WAAW,+BAA+BJ,CAAO,IACpD,UAAA;AAAA,EAACK,gBAAAA,EAAAA,IAAA,OAAA,EAAI,WAAU,eACb,UAAAA,gBAAAA,EAAA,IAAC,SAAI,WAAU,gBAAgB,aAAM,EACvC,CAAA;AAAA,EACAD,gBAAAA,EAAAA,KAAC,OAAI,EAAA,WAAU,eACb,UAAA;AAAA,IAACC,gBAAAA,EAAAA,IAAA,OAAA,EAAI,WAAU,eACb,UAAAA,gBAAAA,EAAA,IAACC,KAAM,OAAO,IAAI,QAAQ,GAAA,CAAI,EAChC,CAAA;AAAA,IACCD,gBAAAA,EAAA,IAAA,QAAA,EAAK,WAAU,sBAAsB,UAAYN,EAAA,CAAA;AAAA,EAAA,GACpD;AAAA,EACAK,gBAAAA,EAAAA,KAAC,OAAI,EAAA,WAAU,kBACZ,UAAA;AAAA,IACCH,KAAAI,gBAAAA,EAAA,IAACE,KAAU,QAAO,KAAI,UAAUN,EAAK,OAAO,MAAMA,EAAK,KAAM,CAAA;AAAA,IAE9DC,KACEG,gBAAAA,EAAAA,IAAAG,GAAA,EAAO,SAAQ,aAAY,QAAO,KAAI,MAAMN,EAAY,MACtD,UAAAA,EAAY,MACf,CAAA;AAAA,IAEDC,2BACEK,GAAO,EAAA,QAAO,KAAI,MAAML,EAAa,MACnC,UAAAA,EAAa,MAChB,CAAA;AAAA,EAAA,EAEJ,CAAA;AAAA,GACF;"}
|
package/dist/index.es9.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
import { j as x } from "./index.es178.js";
|
2
2
|
import { useMemo as y } from "react";
|
3
3
|
import { clsx as g } from "./index.es180.js";
|
4
|
-
import { createSpacingClasses as j } from "./index.
|
5
|
-
import { createColorClasses as u } from "./index.
|
4
|
+
import { createSpacingClasses as j } from "./index.es189.js";
|
5
|
+
import { createColorClasses as u } from "./index.es191.js";
|
6
6
|
import { createTypographyClasses as h } from "./index.es192.js";
|
7
7
|
const E = ({
|
8
8
|
as: o,
|
package/dist/index.es92.js
CHANGED
@@ -1,49 +1,51 @@
|
|
1
|
-
import { j as
|
1
|
+
import { j as r } from "./index.es178.js";
|
2
2
|
import './components/ui/CardFile/CardFile.css';/* empty css */
|
3
|
-
import { Button as
|
4
|
-
import { ArrowLink as
|
3
|
+
import { Button as o } from "./index.es25.js";
|
4
|
+
import { ArrowLink as n } from "./index.es35.js";
|
5
5
|
import { clsx as a } from "./index.es180.js";
|
6
6
|
import { File as d } from "./index.es137.js";
|
7
|
-
import { Download as
|
8
|
-
import { ExternalLink as
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
7
|
+
import { Download as x } from "./index.es142.js";
|
8
|
+
import { ExternalLink as c } from "./index.es112.js";
|
9
|
+
var m = /* @__PURE__ */ ((s) => (s.DOWNLOAD = "download", s.GOTO = "goto", s.EXTERNAL = "external", s))(m || {});
|
10
|
+
function v({
|
11
|
+
title: s,
|
12
|
+
description: t,
|
13
|
+
issued_at: l,
|
13
14
|
file: i,
|
14
|
-
action:
|
15
|
+
action: e
|
15
16
|
}) {
|
16
|
-
return /* @__PURE__ */
|
17
|
-
/* @__PURE__ */
|
18
|
-
/* @__PURE__ */
|
19
|
-
/* @__PURE__ */
|
20
|
-
/* @__PURE__ */
|
21
|
-
/* @__PURE__ */
|
22
|
-
i && /* @__PURE__ */
|
17
|
+
return /* @__PURE__ */ r.jsxs("div", { className: "card-file shadow rounded h-100 w-100 bg-white", children: [
|
18
|
+
/* @__PURE__ */ r.jsxs("div", { className: "top-container p-x16", children: [
|
19
|
+
/* @__PURE__ */ r.jsx("div", { className: "icon-wrapper", children: /* @__PURE__ */ r.jsx(d, { height: 27, width: 27 }) }),
|
20
|
+
/* @__PURE__ */ r.jsxs("div", { className: "content-container", children: [
|
21
|
+
/* @__PURE__ */ r.jsxs("div", { children: [
|
22
|
+
/* @__PURE__ */ r.jsx("h4", { className: "card-file-title text-primary mt-x8", children: s }),
|
23
|
+
i && /* @__PURE__ */ r.jsxs("p", { className: "file-type", children: [
|
23
24
|
i.type,
|
24
25
|
" | ",
|
25
26
|
i.size
|
26
27
|
] })
|
27
28
|
] }),
|
28
|
-
!!
|
29
|
-
|
29
|
+
!!t && /* @__PURE__ */ r.jsx("p", { className: "description text-secondary", children: t }),
|
30
|
+
l && /* @__PURE__ */ r.jsx("p", { className: "description text-secondary", children: l })
|
30
31
|
] })
|
31
32
|
] }),
|
32
|
-
/* @__PURE__ */
|
33
|
-
|
33
|
+
/* @__PURE__ */ r.jsx("div", { className: a("card-file-footer py-x12 px-x16", e.type), children: e.type === "download" ? /* @__PURE__ */ r.jsxs(
|
34
|
+
o,
|
34
35
|
{
|
35
36
|
className: "bg-transparent download-button",
|
36
37
|
asLink: "a",
|
37
|
-
href:
|
38
|
+
href: e.link.link,
|
38
39
|
children: [
|
39
|
-
/* @__PURE__ */
|
40
|
-
|
40
|
+
/* @__PURE__ */ r.jsx(x, {}),
|
41
|
+
e.link.title
|
41
42
|
]
|
42
43
|
}
|
43
|
-
) :
|
44
|
+
) : e.type === "goto" ? /* @__PURE__ */ r.jsx(n, { href: e.link.link, children: e.link.title }) : /* @__PURE__ */ r.jsx(c, { color: "primary", height: 32, width: 32 }) })
|
44
45
|
] });
|
45
46
|
}
|
46
47
|
export {
|
47
|
-
|
48
|
+
v as CardFile,
|
49
|
+
m as CardFileActionTypeEnum
|
48
50
|
};
|
49
51
|
//# sourceMappingURL=index.es92.js.map
|
package/dist/index.es92.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.es92.js","sources":["../src/components/ui/CardFile/index.tsx"],"sourcesContent":["import \"./CardFile.scss\";\nimport { Link } from \"@anoki/fse-common/dist/index\";\nimport { Download, ExternalLink, File } from \"@/icons\";\nimport { Button } from \"../Button\";\nimport { ArrowLink } from \"../ArrowLink\";\nimport clsx from \"clsx\";\n\nexport type CardFileProps = {\n title: string;\n description?: string;\n issued_at: string;\n file?: {\n type: string;\n size: number;\n };\n action: {\n type:
|
1
|
+
{"version":3,"file":"index.es92.js","sources":["../src/components/ui/CardFile/index.tsx"],"sourcesContent":["import \"./CardFile.scss\";\nimport { GetValues, Link } from \"@anoki/fse-common/dist/index\";\nimport { Download, ExternalLink, File } from \"@/icons\";\nimport { Button } from \"../Button\";\nimport { ArrowLink } from \"../ArrowLink\";\nimport clsx from \"clsx\";\n\nexport enum CardFileActionTypeEnum {\n DOWNLOAD = \"download\",\n GOTO = \"goto\",\n EXTERNAL = \"external\",\n}\n\nexport type CardFileActionTypeTypes = GetValues<typeof CardFileActionTypeEnum>;\n\nexport type CardFileProps = {\n title: string;\n description?: string;\n issued_at: string;\n file?: {\n type: string;\n size: number;\n };\n action: {\n type: CardFileActionTypeTypes;\n link: Link;\n };\n};\n\nexport function CardFile({\n title,\n description,\n issued_at,\n file,\n action,\n}: CardFileProps) {\n return (\n <div className=\"card-file shadow rounded h-100 w-100 bg-white\">\n <div className=\"top-container p-x16\">\n <div className=\"icon-wrapper\">\n <File height={27} width={27} />\n </div>\n <div className=\"content-container\">\n <div>\n <h4 className=\"card-file-title text-primary mt-x8\">{title}</h4>\n {file && (\n <p className=\"file-type\">\n {file.type} | {file.size}\n </p>\n )}\n </div>\n {!!description && (\n <p className=\"description text-secondary\">{description}</p>\n )}\n {issued_at && (\n <p className=\"description text-secondary\">{issued_at}</p>\n )}\n </div>\n </div>\n <div className={clsx(\"card-file-footer py-x12 px-x16\", action.type)}>\n {action.type === \"download\" ? (\n <Button\n className=\"bg-transparent download-button\"\n asLink={\"a\"}\n href={action.link.link}\n >\n <Download />\n {action.link.title}\n </Button>\n ) : action.type === \"goto\" ? (\n <ArrowLink href={action.link.link}>{action.link.title}</ArrowLink>\n ) : (\n <ExternalLink color=\"primary\" height={32} width={32} />\n )}\n </div>\n </div>\n );\n}\n"],"names":["CardFileActionTypeEnum","CardFile","title","description","issued_at","file","action","jsxs","jsx","File","clsx","Button","Download","ArrowLink","ExternalLink"],"mappings":";;;;;;;;AAOY,IAAAA,sBAAAA,OACVA,EAAA,WAAW,YACXA,EAAA,OAAO,QACPA,EAAA,WAAW,YAHDA,IAAAA,KAAA,CAAA,CAAA;AAsBL,SAASC,EAAS;AAAA,EACvB,OAAAC;AAAA,EACA,aAAAC;AAAA,EACA,WAAAC;AAAA,EACA,MAAAC;AAAA,EACA,QAAAC;AACF,GAAkB;AAEd,SAAAC,gBAAAA,EAAA,KAAC,OAAI,EAAA,WAAU,iDACb,UAAA;AAAA,IAACA,gBAAAA,EAAAA,KAAA,OAAA,EAAI,WAAU,uBACb,UAAA;AAAA,MAACC,gBAAAA,EAAAA,IAAA,OAAA,EAAI,WAAU,gBACb,UAAAA,gBAAAA,EAAA,IAACC,KAAK,QAAQ,IAAI,OAAO,GAAA,CAAI,EAC/B,CAAA;AAAA,MACAF,gBAAAA,EAAAA,KAAC,OAAI,EAAA,WAAU,qBACb,UAAA;AAAA,QAAAA,gBAAAA,OAAC,OACC,EAAA,UAAA;AAAA,UAACC,gBAAAA,EAAA,IAAA,MAAA,EAAG,WAAU,sCAAsC,UAAMN,GAAA;AAAA,UACzDG,KACCE,gBAAAA,EAAA,KAAC,KAAE,EAAA,WAAU,aACV,UAAA;AAAA,YAAKF,EAAA;AAAA,YAAK;AAAA,YAAIA,EAAK;AAAA,UAAA,EACtB,CAAA;AAAA,QAAA,GAEJ;AAAA,QACC,CAAC,CAACF,2BACA,KAAE,EAAA,WAAU,8BAA8B,UAAYA,GAAA;AAAA,QAExDC,KACCI,gBAAAA,EAAA,IAAC,KAAE,EAAA,WAAU,8BAA8B,UAAUJ,EAAA,CAAA;AAAA,MAAA,EAEzD,CAAA;AAAA,IAAA,GACF;AAAA,IACAI,gBAAAA,EAAAA,IAAC,OAAI,EAAA,WAAWE,EAAK,kCAAkCJ,EAAO,IAAI,GAC/D,UAAOA,EAAA,SAAS,aACfC,gBAAAA,EAAA;AAAA,MAACI;AAAA,MAAA;AAAA,QACC,WAAU;AAAA,QACV,QAAQ;AAAA,QACR,MAAML,EAAO,KAAK;AAAA,QAElB,UAAA;AAAA,UAAAE,gBAAAA,EAAA,IAACI,GAAS,EAAA;AAAA,UACTN,EAAO,KAAK;AAAA,QAAA;AAAA,MAAA;AAAA,IACf,IACEA,EAAO,SAAS,+BACjBO,GAAU,EAAA,MAAMP,EAAO,KAAK,MAAO,UAAAA,EAAO,KAAK,OAAM,0BAErDQ,GAAa,EAAA,OAAM,WAAU,QAAQ,IAAI,OAAO,GAAI,CAAA,EAEzD,CAAA;AAAA,EAAA,GACF;AAEJ;"}
|
package/package.json
CHANGED
package/dist/index.cjs190.js
DELETED
@@ -1,2 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=["gap","m","mx","my","mt","mr","mb","ml","p","px","py","pt","pr","pb","pl","br","br-t","br-r","br-b","br-l","min-h","min-w","max-h","max-w"],a=e=>t.map(r=>e[r]?`${r}-${e[r]}`:"").filter(Boolean);exports.createSpacingClasses=a;
|
2
|
-
//# sourceMappingURL=index.cjs190.js.map
|
package/dist/index.cjs190.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.cjs190.js","sources":["../src/theme/spacing.ts"],"sourcesContent":["export type SpacingKey =\n | \"x4\"\n | \"x8\"\n | \"x12\"\n | \"x16\"\n | \"x20\"\n | \"x24\"\n | \"x28\"\n | \"x32\"\n | \"x36\"\n | \"x40\"\n | \"x44\"\n | \"x48\"\n | \"x52\"\n | \"x56\"\n | \"x60\"\n | \"x64\"\n | \"x68\"\n | \"x72\"\n | \"x76\"\n | \"x80\"\n | \"x84\"\n | \"x88\"\n | \"x92\"\n | \"x96\"\n | \"x100\"\n | \"x104\";\n\nexport type SpacingProps = {\n gap?: SpacingKey;\n m?: SpacingKey; // margin\n mx?: SpacingKey; // margin x\n my?: SpacingKey; // margin y\n mt?: SpacingKey; // margin top\n mr?: SpacingKey; // margin bottom\n mb?: SpacingKey; // margin right\n ml?: SpacingKey; // margin left\n p?: SpacingKey; // padding\n px?: SpacingKey; // padding x\n py?: SpacingKey; // padding y\n pt?: SpacingKey; // padding top\n pr?: SpacingKey; // padding bottom\n pb?: SpacingKey; // padding right\n pl?: SpacingKey; // padding left\n br?: SpacingKey; // border-radius\n \"br-t\"?: SpacingKey; // border-radius top\n \"br-r\"?: SpacingKey; // border-radius right\n \"br-b\"?: SpacingKey; // border-radius bottom\n \"br-l\"?: SpacingKey; // border-radius left\n \"min-h\"?: SpacingKey; // min-height\n \"min-w\"?: SpacingKey; // min-width\n \"max-h\"?: SpacingKey; // max-height\n \"max-w\"?: SpacingKey; // max-width\n};\n\nexport type SpacingPropsKeys = keyof SpacingProps;\nconst spacingPropsKeys: SpacingPropsKeys[] = [\n \"gap\",\n \"m\",\n \"mx\",\n \"my\",\n \"mt\",\n \"mr\",\n \"mb\",\n \"ml\",\n \"p\",\n \"px\",\n \"py\",\n \"pt\",\n \"pr\",\n \"pb\",\n \"pl\",\n \"br\",\n \"br-t\",\n \"br-r\",\n \"br-b\",\n \"br-l\",\n \"min-h\",\n \"min-w\",\n \"max-h\",\n \"max-w\",\n];\n\nexport const createSpacingClasses = <TProps extends SpacingProps>(\n props: TProps,\n) => {\n return spacingPropsKeys\n .map((key) => (props[key] ? `${key}-${props[key]}` : \"\"))\n .filter(Boolean);\n};\n"],"names":["spacingPropsKeys","createSpacingClasses","props","key"],"mappings":"gFAwDA,MAAMA,EAAuC,CAC3C,MACA,IACA,KACA,KACA,KACA,KACA,KACA,KACA,IACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,OACA,OACA,OACA,OACA,QACA,QACA,QACA,OACF,EAEaC,EACXC,GAEOF,EACJ,IAAKG,GAASD,EAAMC,CAAG,EAAI,GAAGA,CAAG,IAAID,EAAMC,CAAG,CAAC,GAAK,EAAG,EACvD,OAAO,OAAO"}
|
package/dist/index.cjs324.js
DELETED
@@ -1,2 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react");function f(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const u=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,u.get?u:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const i=f(l);function r(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function s(...e){return t=>{let n=!1;const u=e.map(o=>{const c=r(o,t);return!n&&typeof c=="function"&&(n=!0),c});if(n)return()=>{for(let o=0;o<u.length;o++){const c=u[o];typeof c=="function"?c():r(e[o],null)}}}}function a(...e){return i.useCallback(s(...e),e)}exports.composeRefs=s;exports.useComposedRefs=a;
|
2
|
-
//# sourceMappingURL=index.cjs324.js.map
|
package/dist/index.cjs324.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.cjs324.js","sources":["../node_modules/@radix-ui/react-compose-refs/dist/index.mjs"],"sourcesContent":["// packages/react/compose-refs/src/compose-refs.tsx\nimport * as React from \"react\";\nfunction setRef(ref, value) {\n if (typeof ref === \"function\") {\n return ref(value);\n } else if (ref !== null && ref !== void 0) {\n ref.current = value;\n }\n}\nfunction composeRefs(...refs) {\n return (node) => {\n let hasCleanup = false;\n const cleanups = refs.map((ref) => {\n const cleanup = setRef(ref, node);\n if (!hasCleanup && typeof cleanup == \"function\") {\n hasCleanup = true;\n }\n return cleanup;\n });\n if (hasCleanup) {\n return () => {\n for (let i = 0; i < cleanups.length; i++) {\n const cleanup = cleanups[i];\n if (typeof cleanup == \"function\") {\n cleanup();\n } else {\n setRef(refs[i], null);\n }\n }\n };\n }\n };\n}\nfunction useComposedRefs(...refs) {\n return React.useCallback(composeRefs(...refs), refs);\n}\nexport {\n composeRefs,\n useComposedRefs\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["setRef","ref","value","composeRefs","refs","node","hasCleanup","cleanups","cleanup","i","useComposedRefs","React"],"mappings":"mYAEA,SAASA,EAAOC,EAAKC,EAAO,CAC1B,GAAI,OAAOD,GAAQ,WACjB,OAAOA,EAAIC,CAAK,EACPD,GAAQ,OACjBA,EAAI,QAAUC,EAElB,CACA,SAASC,KAAeC,EAAM,CAC5B,OAAQC,GAAS,CACf,IAAIC,EAAa,GACjB,MAAMC,EAAWH,EAAK,IAAKH,GAAQ,CACjC,MAAMO,EAAUR,EAAOC,EAAKI,CAAI,EAChC,MAAI,CAACC,GAAc,OAAOE,GAAW,aACnCF,EAAa,IAERE,CACb,CAAK,EACD,GAAIF,EACF,MAAO,IAAM,CACX,QAASG,EAAI,EAAGA,EAAIF,EAAS,OAAQE,IAAK,CACxC,MAAMD,EAAUD,EAASE,CAAC,EACtB,OAAOD,GAAW,WACpBA,EAAS,EAETR,EAAOI,EAAKK,CAAC,EAAG,IAAI,CAEhC,CACO,CAEJ,CACH,CACA,SAASC,KAAmBN,EAAM,CAChC,OAAOO,EAAM,YAAYR,EAAY,GAAGC,CAAI,EAAGA,CAAI,CACrD","x_google_ignoreList":[0]}
|
package/dist/index.cjs326.js
DELETED
@@ -1,2 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("react"),f=require("./index.cjs330.js");function S(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return o.default=e,Object.freeze(o)}const s=S(b);function g({prop:e,defaultProp:o,onChange:t=()=>{}}){const[n,c]=v({defaultProp:o,onChange:t}),l=e!==void 0,i=l?e:n,u=f.useCallbackRef(t),d=s.useCallback(r=>{if(l){const a=typeof r=="function"?r(e):r;a!==e&&u(a)}else c(r)},[l,e,c,u]);return[i,d]}function v({defaultProp:e,onChange:o}){const t=s.useState(e),[n]=t,c=s.useRef(n),l=f.useCallbackRef(o);return s.useEffect(()=>{c.current!==n&&(l(n),c.current=n)},[n,c,l]),t}exports.useControllableState=g;
|
2
|
-
//# sourceMappingURL=index.cjs326.js.map
|
package/dist/index.cjs326.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.cjs326.js","sources":["../node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs"],"sourcesContent":["// packages/react/use-controllable-state/src/use-controllable-state.tsx\nimport * as React from \"react\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nfunction useControllableState({\n prop,\n defaultProp,\n onChange = () => {\n }\n}) {\n const [uncontrolledProp, setUncontrolledProp] = useUncontrolledState({ defaultProp, onChange });\n const isControlled = prop !== void 0;\n const value = isControlled ? prop : uncontrolledProp;\n const handleChange = useCallbackRef(onChange);\n const setValue = React.useCallback(\n (nextValue) => {\n if (isControlled) {\n const setter = nextValue;\n const value2 = typeof nextValue === \"function\" ? setter(prop) : nextValue;\n if (value2 !== prop) handleChange(value2);\n } else {\n setUncontrolledProp(nextValue);\n }\n },\n [isControlled, prop, setUncontrolledProp, handleChange]\n );\n return [value, setValue];\n}\nfunction useUncontrolledState({\n defaultProp,\n onChange\n}) {\n const uncontrolledState = React.useState(defaultProp);\n const [value] = uncontrolledState;\n const prevValueRef = React.useRef(value);\n const handleChange = useCallbackRef(onChange);\n React.useEffect(() => {\n if (prevValueRef.current !== value) {\n handleChange(value);\n prevValueRef.current = value;\n }\n }, [value, prevValueRef, handleChange]);\n return uncontrolledState;\n}\nexport {\n useControllableState\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["useControllableState","prop","defaultProp","onChange","uncontrolledProp","setUncontrolledProp","useUncontrolledState","isControlled","value","handleChange","useCallbackRef","setValue","React","nextValue","value2","uncontrolledState","prevValueRef"],"mappings":"kaAGA,SAASA,EAAqB,CAC5B,KAAAC,EACA,YAAAC,EACA,SAAAC,EAAW,IAAM,CACnB,CACA,EAAG,CACD,KAAM,CAACC,EAAkBC,CAAmB,EAAIC,EAAqB,CAAE,YAAAJ,EAAa,SAAAC,EAAU,EACxFI,EAAeN,IAAS,OACxBO,EAAQD,EAAeN,EAAOG,EAC9BK,EAAeC,EAAc,eAACP,CAAQ,EACtCQ,EAAWC,EAAM,YACpBC,GAAc,CACb,GAAIN,EAAc,CAEhB,MAAMO,EAAS,OAAOD,GAAc,WADrBA,EACyCZ,CAAI,EAAIY,EAC5DC,IAAWb,GAAMQ,EAAaK,CAAM,CAChD,MACQT,EAAoBQ,CAAS,CAEhC,EACD,CAACN,EAAcN,EAAMI,EAAqBI,CAAY,CACvD,EACD,MAAO,CAACD,EAAOG,CAAQ,CACzB,CACA,SAASL,EAAqB,CAC5B,YAAAJ,EACA,SAAAC,CACF,EAAG,CACD,MAAMY,EAAoBH,EAAM,SAASV,CAAW,EAC9C,CAACM,CAAK,EAAIO,EACVC,EAAeJ,EAAM,OAAOJ,CAAK,EACjCC,EAAeC,EAAc,eAACP,CAAQ,EAC5CS,OAAAA,EAAM,UAAU,IAAM,CAChBI,EAAa,UAAYR,IAC3BC,EAAaD,CAAK,EAClBQ,EAAa,QAAUR,EAE1B,EAAE,CAACA,EAAOQ,EAAcP,CAAY,CAAC,EAC/BM,CACT","x_google_ignoreList":[0]}
|
package/dist/index.cjs338.js
DELETED
@@ -1,2 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react"),d=require("react-dom"),f=require("./index.cjs327.js"),p=require("./index.cjs343.js"),m=require("./index.cjs178.js");function P(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const c=P(l);var b="Portal",i=c.forwardRef((e,r)=>{var a;const{container:t,...o}=e,[u,s]=c.useState(!1);p.useLayoutEffect(()=>s(!0),[]);const n=t||u&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return n?d.createPortal(m.jsxRuntimeExports.jsx(f.Primitive.div,{...o,ref:r}),n):null});i.displayName=b;exports.Portal=i;
|
2
|
-
//# sourceMappingURL=index.cjs338.js.map
|