@anoki/fse-ui 1.0.0-beta1.49 → 1.0.0-beta1.50
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.cjs234.js +1 -1
- package/dist/index.cjs241.js +1 -1
- package/dist/index.cjs242.js +1 -1
- package/dist/index.cjs243.js +1 -1
- package/dist/index.cjs271.js +1 -1
- package/dist/index.cjs284.js +1 -1
- package/dist/index.cjs295.js +1 -1
- package/dist/index.cjs302.js +1 -1
- package/dist/index.cjs309.js +1 -1
- package/dist/index.cjs314.js +1 -1
- package/dist/index.cjs325.js +1 -1
- package/dist/index.cjs333.js +1 -1
- package/dist/index.cjs374.js +1 -1
- package/dist/index.cjs380.js +1 -1
- package/dist/index.cjs414.js +1 -1
- package/dist/index.cjs432.js +1 -1
- package/dist/index.cjs433.js +1 -1
- package/dist/index.cjs437.js +1 -1
- package/dist/index.cjs437.js.map +1 -1
- package/dist/index.cjs438.js +1 -2
- package/dist/index.cjs438.js.map +1 -1
- package/dist/index.cjs439.js +1 -1
- package/dist/index.cjs439.js.map +1 -1
- package/dist/index.cjs440.js +2 -1
- package/dist/index.cjs440.js.map +1 -1
- package/dist/index.cjs441.js +1 -1
- package/dist/index.cjs444.js +1 -1
- package/dist/index.cjs444.js.map +1 -1
- package/dist/index.cjs445.js +1 -1
- package/dist/index.cjs446.js +1 -1
- package/dist/index.cjs446.js.map +1 -1
- package/dist/index.cjs447.js +1 -1
- package/dist/index.cjs447.js.map +1 -1
- package/dist/index.cjs448.js +2 -0
- package/dist/index.cjs448.js.map +1 -0
- package/dist/index.cjs449.js +2 -0
- package/dist/index.cjs449.js.map +1 -0
- package/dist/index.cjs450.js +1 -1
- package/dist/index.cjs450.js.map +1 -1
- package/dist/index.cjs451.js +1 -1
- package/dist/index.cjs451.js.map +1 -1
- package/dist/index.cjs452.js +1 -1
- package/dist/index.cjs452.js.map +1 -1
- package/dist/index.cjs453.js +1 -1
- package/dist/index.cjs453.js.map +1 -1
- package/dist/index.cjs454.js +1 -1
- package/dist/index.cjs454.js.map +1 -1
- package/dist/index.cjs455.js +1 -1
- package/dist/index.cjs455.js.map +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 +2 -0
- package/dist/index.cjs460.js.map +1 -0
- package/dist/index.cjs461.js +2 -0
- package/dist/index.cjs461.js.map +1 -0
- package/dist/index.cjs462.js +2 -0
- package/dist/index.cjs462.js.map +1 -0
- package/dist/index.cjs463.js +2 -0
- package/dist/index.cjs463.js.map +1 -0
- package/dist/{index.cjs471.js → index.cjs464.js} +2 -2
- package/dist/{index.cjs471.js.map → 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 +1 -1
- package/dist/index.cjs467.js.map +1 -1
- package/dist/index.cjs468.js +1 -1
- 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.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.cjs482.js +1 -1
- package/dist/index.cjs482.js.map +1 -1
- package/dist/index.cjs486.js +2 -0
- package/dist/index.cjs486.js.map +1 -0
- package/dist/index.cjs487.js +2 -0
- package/dist/index.cjs487.js.map +1 -0
- package/dist/index.cjs488.js +2 -0
- package/dist/index.cjs488.js.map +1 -0
- package/dist/index.cjs489.js +1 -1
- package/dist/index.cjs489.js.map +1 -1
- package/dist/index.cjs490.js +1 -1
- package/dist/index.cjs490.js.map +1 -1
- package/dist/index.cjs491.js +1 -1
- package/dist/index.cjs491.js.map +1 -1
- package/dist/index.cjs492.js +5 -0
- package/dist/index.cjs492.js.map +1 -0
- package/dist/index.cjs493.js +1 -1
- package/dist/index.cjs493.js.map +1 -1
- package/dist/index.cjs494.js +1 -1
- package/dist/index.cjs494.js.map +1 -1
- package/dist/index.cjs495.js +1 -1
- package/dist/index.cjs495.js.map +1 -1
- package/dist/index.cjs496.js +1 -4
- package/dist/index.cjs496.js.map +1 -1
- package/dist/index.cjs503.js +1 -1
- package/dist/index.cjs503.js.map +1 -1
- package/dist/index.cjs504.js +38 -1
- package/dist/index.cjs504.js.map +1 -1
- package/dist/index.cjs505.js +1 -1
- package/dist/index.cjs505.js.map +1 -1
- package/dist/index.cjs506.js +2 -0
- package/dist/index.cjs506.js.map +1 -0
- package/dist/index.cjs507.js +1 -1
- package/dist/index.cjs507.js.map +1 -1
- package/dist/index.cjs510.js +2 -0
- package/dist/index.cjs510.js.map +1 -0
- package/dist/{index.cjs508.js → index.cjs511.js} +1 -1
- package/dist/{index.cjs508.js.map → index.cjs511.js.map} +1 -1
- package/dist/index.cjs512.js +1 -1
- package/dist/index.cjs512.js.map +1 -1
- package/dist/index.cjs513.js +1 -1
- package/dist/index.cjs513.js.map +1 -1
- package/dist/index.cjs514.js +1 -1
- package/dist/index.cjs514.js.map +1 -1
- package/dist/index.cjs515.js +1 -1
- package/dist/index.cjs515.js.map +1 -1
- package/dist/index.cjs517.js +1 -1
- package/dist/index.cjs520.js +1 -1
- package/dist/index.cjs522.js +1 -1
- package/dist/index.cjs525.js +1 -1
- package/dist/index.cjs526.js +1 -1
- package/dist/index.cjs527.js +1 -1
- package/dist/index.cjs534.js +1 -1
- package/dist/index.cjs539.js +1 -1
- package/dist/index.cjs541.js +1 -1
- package/dist/index.cjs545.js +1 -1
- package/dist/index.cjs545.js.map +1 -1
- package/dist/index.cjs546.js +1 -1
- package/dist/index.cjs546.js.map +1 -1
- package/dist/index.cjs547.js +1 -1
- package/dist/index.cjs547.js.map +1 -1
- package/dist/index.cjs548.js +1 -1
- package/dist/index.cjs548.js.map +1 -1
- package/dist/index.cjs549.js +1 -1
- package/dist/index.cjs549.js.map +1 -1
- package/dist/index.cjs555.js +1 -1
- package/dist/index.cjs555.js.map +1 -1
- package/dist/index.cjs556.js +1 -1
- package/dist/index.cjs556.js.map +1 -1
- package/dist/{index.cjs557.js → index.cjs562.js} +1 -1
- package/dist/{index.cjs557.js.map → index.cjs562.js.map} +1 -1
- package/dist/index.cjs563.js +2 -0
- package/dist/index.cjs563.js.map +1 -0
- package/dist/index.cjs564.js +2 -0
- package/dist/index.cjs564.js.map +1 -0
- package/dist/index.es234.js +1 -1
- package/dist/index.es241.js +1 -1
- package/dist/index.es242.js +2 -2
- package/dist/index.es243.js +2 -2
- package/dist/index.es271.js +7 -7
- package/dist/index.es284.js +8 -8
- package/dist/index.es295.js +1 -1
- package/dist/index.es302.js +14 -14
- package/dist/index.es309.js +1 -1
- package/dist/index.es314.js +1 -1
- package/dist/index.es325.js +1 -1
- package/dist/index.es333.js +7 -7
- package/dist/index.es374.js +4 -4
- package/dist/index.es380.js +1 -1
- package/dist/index.es414.js +1 -1
- package/dist/index.es432.js +1 -1
- package/dist/index.es433.js +1 -1
- package/dist/index.es437.js +2 -6
- package/dist/index.es437.js.map +1 -1
- package/dist/index.es438.js +2 -529
- package/dist/index.es438.js.map +1 -1
- package/dist/index.es439.js +6 -2
- package/dist/index.es439.js.map +1 -1
- package/dist/index.es440.js +529 -2
- package/dist/index.es440.js.map +1 -1
- package/dist/index.es441.js +1 -1
- package/dist/index.es444.js +131 -8
- package/dist/index.es444.js.map +1 -1
- package/dist/index.es445.js +1 -1
- package/dist/index.es446.js +9 -3
- package/dist/index.es446.js.map +1 -1
- package/dist/index.es447.js +2 -131
- package/dist/index.es447.js.map +1 -1
- package/dist/index.es448.js +10 -0
- package/dist/index.es448.js.map +1 -0
- package/dist/index.es449.js +30 -0
- package/dist/index.es449.js.map +1 -0
- package/dist/index.es450.js +66 -5
- package/dist/index.es450.js.map +1 -1
- package/dist/index.es451.js +49 -24
- package/dist/index.es451.js.map +1 -1
- package/dist/index.es452.js +33 -67
- package/dist/index.es452.js.map +1 -1
- package/dist/index.es453.js +620 -50
- package/dist/index.es453.js.map +1 -1
- package/dist/index.es454.js +10 -33
- package/dist/index.es454.js.map +1 -1
- package/dist/index.es455.js +5 -621
- package/dist/index.es455.js.map +1 -1
- package/dist/index.es456.js +24 -10
- package/dist/index.es456.js.map +1 -1
- package/dist/index.es457.js +68 -5
- package/dist/index.es457.js.map +1 -1
- package/dist/index.es458.js +4 -25
- package/dist/index.es458.js.map +1 -1
- package/dist/index.es459.js +51 -63
- package/dist/index.es459.js.map +1 -1
- package/dist/index.es460.js +49 -0
- package/dist/index.es460.js.map +1 -0
- package/dist/index.es461.js +17 -0
- package/dist/index.es461.js.map +1 -0
- package/dist/index.es462.js +128 -0
- package/dist/index.es462.js.map +1 -0
- package/dist/index.es463.js +18 -0
- package/dist/index.es463.js.map +1 -0
- package/dist/{index.es471.js → index.es464.js} +4 -4
- package/dist/{index.es471.js.map → index.es464.js.map} +1 -1
- package/dist/index.es465.js +218 -3
- package/dist/index.es465.js.map +1 -1
- package/dist/index.es466.js +14 -57
- package/dist/index.es466.js.map +1 -1
- package/dist/index.es467.js +176 -41
- package/dist/index.es467.js.map +1 -1
- package/dist/index.es468.js +10 -13
- package/dist/index.es468.js.map +1 -1
- package/dist/index.es469.js +47 -122
- package/dist/index.es469.js.map +1 -1
- package/dist/index.es470.js +8 -14
- package/dist/index.es470.js.map +1 -1
- package/dist/index.es474.js +11 -180
- package/dist/index.es474.js.map +1 -1
- package/dist/index.es475.js +205 -10
- package/dist/index.es475.js.map +1 -1
- package/dist/index.es476.js +22 -50
- package/dist/index.es476.js.map +1 -1
- package/dist/index.es477.js +400 -9
- package/dist/index.es477.js.map +1 -1
- package/dist/index.es482.js +13 -204
- package/dist/index.es482.js.map +1 -1
- package/dist/index.es486.js +28 -0
- package/dist/index.es486.js.map +1 -0
- package/dist/index.es487.js +32 -0
- package/dist/index.es487.js.map +1 -0
- package/dist/index.es488.js +8 -0
- package/dist/index.es488.js.map +1 -0
- package/dist/index.es489.js +5 -25
- package/dist/index.es489.js.map +1 -1
- package/dist/index.es490.js +3 -29
- package/dist/index.es490.js.map +1 -1
- package/dist/index.es491.js +24 -5
- package/dist/index.es491.js.map +1 -1
- package/dist/index.es492.js +113 -0
- package/dist/index.es492.js.map +1 -0
- package/dist/index.es493.js +16 -5
- package/dist/index.es493.js.map +1 -1
- package/dist/index.es494.js +525 -3
- package/dist/index.es494.js.map +1 -1
- package/dist/index.es495.js +127 -23
- package/dist/index.es495.js.map +1 -1
- package/dist/index.es496.js +129 -105
- package/dist/index.es496.js.map +1 -1
- package/dist/index.es503.js +64 -8
- package/dist/index.es503.js.map +1 -1
- package/dist/index.es504.js +68 -13
- package/dist/index.es504.js.map +1 -1
- package/dist/index.es505.js +8 -65
- package/dist/index.es505.js.map +1 -1
- package/dist/index.es506.js +17 -0
- package/dist/index.es506.js.map +1 -0
- package/dist/index.es507.js +66 -4
- package/dist/index.es507.js.map +1 -1
- package/dist/index.es510.js +7 -0
- package/dist/index.es510.js.map +1 -0
- package/dist/{index.es508.js → index.es511.js} +1 -1
- package/dist/{index.es508.js.map → index.es511.js.map} +1 -1
- package/dist/index.es512.js +21 -11
- package/dist/index.es512.js.map +1 -1
- package/dist/index.es513.js +11 -26
- package/dist/index.es513.js.map +1 -1
- package/dist/index.es514.js +27 -4
- package/dist/index.es514.js.map +1 -1
- package/dist/index.es515.js +4 -22
- package/dist/index.es515.js.map +1 -1
- package/dist/index.es517.js +3 -3
- package/dist/index.es520.js +3 -3
- package/dist/index.es522.js +1 -1
- package/dist/index.es525.js +2 -2
- package/dist/index.es526.js +2 -2
- package/dist/index.es527.js +15 -15
- package/dist/index.es534.js +9 -9
- package/dist/index.es539.js +8 -8
- package/dist/index.es541.js +1 -1
- package/dist/index.es545.js +6 -2
- package/dist/index.es545.js.map +1 -1
- package/dist/index.es546.js +16 -2
- package/dist/index.es546.js.map +1 -1
- package/dist/index.es547.js +2 -2
- package/dist/index.es547.js.map +1 -1
- package/dist/index.es548.js +2 -16
- package/dist/index.es548.js.map +1 -1
- package/dist/index.es549.js +2 -6
- package/dist/index.es549.js.map +1 -1
- package/dist/index.es555.js +74 -3
- package/dist/index.es555.js.map +1 -1
- package/dist/index.es556.js +2 -2
- package/dist/index.es556.js.map +1 -1
- package/dist/{index.es557.js → index.es562.js} +1 -1
- package/dist/{index.es557.js.map → index.es562.js.map} +1 -1
- package/dist/index.es563.js +6 -0
- package/dist/index.es563.js.map +1 -0
- package/dist/index.es564.js +5 -0
- package/dist/index.es564.js.map +1 -0
- package/package.json +2 -2
- package/dist/index.cjs472.js +0 -2
- package/dist/index.cjs472.js.map +0 -1
- package/dist/index.cjs473.js +0 -2
- package/dist/index.cjs473.js.map +0 -1
- package/dist/index.cjs481.js +0 -2
- package/dist/index.cjs481.js.map +0 -1
- package/dist/index.cjs483.js +0 -2
- package/dist/index.cjs483.js.map +0 -1
- package/dist/index.cjs484.js +0 -2
- package/dist/index.cjs484.js.map +0 -1
- package/dist/index.cjs485.js +0 -2
- package/dist/index.cjs485.js.map +0 -1
- package/dist/index.cjs497.js +0 -2
- package/dist/index.cjs497.js.map +0 -1
- package/dist/index.cjs498.js +0 -2
- package/dist/index.cjs498.js.map +0 -1
- package/dist/index.cjs499.js +0 -2
- package/dist/index.cjs499.js.map +0 -1
- package/dist/index.cjs500.js +0 -2
- package/dist/index.cjs500.js.map +0 -1
- package/dist/index.cjs501.js +0 -2
- package/dist/index.cjs501.js.map +0 -1
- package/dist/index.cjs502.js +0 -39
- package/dist/index.cjs502.js.map +0 -1
- package/dist/index.cjs559.js +0 -2
- package/dist/index.cjs559.js.map +0 -1
- package/dist/index.cjs560.js +0 -2
- package/dist/index.cjs560.js.map +0 -1
- package/dist/index.es472.js +0 -222
- package/dist/index.es472.js.map +0 -1
- package/dist/index.es473.js +0 -17
- package/dist/index.es473.js.map +0 -1
- package/dist/index.es481.js +0 -15
- package/dist/index.es481.js.map +0 -1
- package/dist/index.es483.js +0 -25
- package/dist/index.es483.js.map +0 -1
- package/dist/index.es484.js +0 -403
- package/dist/index.es484.js.map +0 -1
- package/dist/index.es485.js +0 -18
- package/dist/index.es485.js.map +0 -1
- package/dist/index.es497.js +0 -19
- package/dist/index.es497.js.map +0 -1
- package/dist/index.es498.js +0 -528
- package/dist/index.es498.js.map +0 -1
- package/dist/index.es499.js +0 -131
- package/dist/index.es499.js.map +0 -1
- package/dist/index.es500.js +0 -137
- package/dist/index.es500.js.map +0 -1
- package/dist/index.es501.js +0 -68
- package/dist/index.es501.js.map +0 -1
- package/dist/index.es502.js +0 -72
- package/dist/index.es502.js.map +0 -1
- package/dist/index.es559.js +0 -77
- package/dist/index.es559.js.map +0 -1
- package/dist/index.es560.js +0 -5
- package/dist/index.es560.js.map +0 -1
- /package/dist/components/ui/{DoctorModal/DoctorModalFooter/DoctorModalFooter.css → ConsentModal/ConsentModalFooter/ConsentModalFooter.css} +0 -0
package/dist/index.es504.js
CHANGED
@@ -1,17 +1,72 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
r = !1;
|
1
|
+
import * as d from "react";
|
2
|
+
import { styleSingleton as f } from "./index.es505.js";
|
3
|
+
import { noScrollbarsClassName as p, zeroRightClassName as g, fullWidthClassName as l, removedBarSizeVariable as v } from "./index.es489.js";
|
4
|
+
import { getGapWidth as m } from "./index.es512.js";
|
5
|
+
var b = f(), e = "data-scroll-locked", h = function(n, a, o, t) {
|
6
|
+
var r = n.left, i = n.top, s = n.right, c = n.gap;
|
7
|
+
return o === void 0 && (o = "margin"), `
|
8
|
+
.`.concat(p, ` {
|
9
|
+
overflow: hidden `).concat(t, `;
|
10
|
+
padding-right: `).concat(c, "px ").concat(t, `;
|
12
11
|
}
|
13
|
-
|
12
|
+
body[`).concat(e, `] {
|
13
|
+
overflow: hidden `).concat(t, `;
|
14
|
+
overscroll-behavior: contain;
|
15
|
+
`).concat([
|
16
|
+
a && "position: relative ".concat(t, ";"),
|
17
|
+
o === "margin" && `
|
18
|
+
padding-left: `.concat(r, `px;
|
19
|
+
padding-top: `).concat(i, `px;
|
20
|
+
padding-right: `).concat(s, `px;
|
21
|
+
margin-left:0;
|
22
|
+
margin-top:0;
|
23
|
+
margin-right: `).concat(c, "px ").concat(t, `;
|
24
|
+
`),
|
25
|
+
o === "padding" && "padding-right: ".concat(c, "px ").concat(t, ";")
|
26
|
+
].filter(Boolean).join(""), `
|
27
|
+
}
|
28
|
+
|
29
|
+
.`).concat(g, ` {
|
30
|
+
right: `).concat(c, "px ").concat(t, `;
|
31
|
+
}
|
32
|
+
|
33
|
+
.`).concat(l, ` {
|
34
|
+
margin-right: `).concat(c, "px ").concat(t, `;
|
35
|
+
}
|
36
|
+
|
37
|
+
.`).concat(g, " .").concat(g, ` {
|
38
|
+
right: 0 `).concat(t, `;
|
39
|
+
}
|
40
|
+
|
41
|
+
.`).concat(l, " .").concat(l, ` {
|
42
|
+
margin-right: 0 `).concat(t, `;
|
43
|
+
}
|
44
|
+
|
45
|
+
body[`).concat(e, `] {
|
46
|
+
`).concat(v, ": ").concat(c, `px;
|
47
|
+
}
|
48
|
+
`);
|
49
|
+
}, u = function() {
|
50
|
+
var n = parseInt(document.body.getAttribute(e) || "0", 10);
|
51
|
+
return isFinite(n) ? n : 0;
|
52
|
+
}, x = function() {
|
53
|
+
d.useEffect(function() {
|
54
|
+
return document.body.setAttribute(e, (u() + 1).toString()), function() {
|
55
|
+
var n = u() - 1;
|
56
|
+
n <= 0 ? document.body.removeAttribute(e) : document.body.setAttribute(e, n.toString());
|
57
|
+
};
|
58
|
+
}, []);
|
59
|
+
}, C = function(n) {
|
60
|
+
var a = n.noRelative, o = n.noImportant, t = n.gapMode, r = t === void 0 ? "margin" : t;
|
61
|
+
x();
|
62
|
+
var i = d.useMemo(function() {
|
63
|
+
return m(r);
|
64
|
+
}, [r]);
|
65
|
+
return d.createElement(b, { styles: h(i, !a, r, o ? "" : "!important") });
|
66
|
+
};
|
14
67
|
export {
|
15
|
-
|
68
|
+
C as RemoveScrollBar,
|
69
|
+
e as lockAttribute,
|
70
|
+
x as useLockAttribute
|
16
71
|
};
|
17
72
|
//# sourceMappingURL=index.es504.js.map
|
package/dist/index.es504.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.es504.js","sources":["../node_modules/react-remove-scroll/dist/es2015/
|
1
|
+
{"version":3,"file":"index.es504.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,EAAc,GACfC,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,IAEvE;AAAA,EACJ,GAAG,CAAA,CAAE;AACT,GAIWC,IAAkB,SAAUjB,GAAI;AACvC,MAAIkB,IAAalB,EAAG,YAAYmB,IAAcnB,EAAG,aAAaoB,IAAKpB,EAAG,SAASE,IAAUkB,MAAO,SAAS,WAAWA;AACpH,EAAAN,EAAgB;AAMhB,MAAIP,IAAMQ,EAAM,QAAQ,WAAY;AAAE,WAAOM,EAAYnB,CAAO;AAAA,EAAG,GAAG,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]}
|
package/dist/index.es505.js
CHANGED
@@ -1,69 +1,12 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
return
|
6
|
-
|
7
|
-
return
|
8
|
-
// not-not-scrollable
|
9
|
-
t[e] !== "hidden" && // contains scroll inside self
|
10
|
-
!(t.overflowY === t.overflowX && !N(r) && t[e] === "visible")
|
11
|
-
);
|
12
|
-
}, D = function(r) {
|
13
|
-
return b(r, "overflowY");
|
14
|
-
}, E = function(r) {
|
15
|
-
return b(r, "overflowX");
|
16
|
-
}, T = function(r, e) {
|
17
|
-
var t = e.ownerDocument, l = e;
|
18
|
-
do {
|
19
|
-
typeof ShadowRoot < "u" && l instanceof ShadowRoot && (l = l.host);
|
20
|
-
var f = g(r, l);
|
21
|
-
if (f) {
|
22
|
-
var n = m(r, l), i = n[1], o = n[2];
|
23
|
-
if (i > o)
|
24
|
-
return !0;
|
25
|
-
}
|
26
|
-
l = l.parentNode;
|
27
|
-
} while (l && l !== t.body);
|
28
|
-
return !1;
|
29
|
-
}, H = function(r) {
|
30
|
-
var e = r.scrollTop, t = r.scrollHeight, l = r.clientHeight;
|
31
|
-
return [
|
32
|
-
e,
|
33
|
-
t,
|
34
|
-
l
|
35
|
-
];
|
36
|
-
}, p = function(r) {
|
37
|
-
var e = r.scrollLeft, t = r.scrollWidth, l = r.clientWidth;
|
38
|
-
return [
|
39
|
-
e,
|
40
|
-
t,
|
41
|
-
l
|
42
|
-
];
|
43
|
-
}, g = function(r, e) {
|
44
|
-
return r === "v" ? D(e) : E(e);
|
45
|
-
}, m = function(r, e) {
|
46
|
-
return r === "v" ? H(e) : p(e);
|
47
|
-
}, B = function(r, e) {
|
48
|
-
return r === "h" && e === "rtl" ? -1 : 1;
|
49
|
-
}, V = function(r, e, t, l, f) {
|
50
|
-
var n = B(r, window.getComputedStyle(e).direction), i = n * l, o = t.target, d = e.contains(o), c = !1, s = i > 0, h = 0, S = 0;
|
51
|
-
do {
|
52
|
-
if (!o)
|
53
|
-
break;
|
54
|
-
var u = m(r, o), v = u[0], C = u[1], y = u[2], w = C - y - n * v;
|
55
|
-
(v || w) && g(r, o) && (h += w, S += v);
|
56
|
-
var a = o.parentNode;
|
57
|
-
o = a && a.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? a.host : a;
|
58
|
-
} while (
|
59
|
-
// portaled content
|
60
|
-
!d && o !== document.body || // self content
|
61
|
-
d && (e.contains(o) || e === o)
|
62
|
-
);
|
63
|
-
return (s && Math.abs(h) < 1 || !s && Math.abs(S) < 1) && (c = !0), c;
|
1
|
+
import { styleHookSingleton as o } from "./index.es513.js";
|
2
|
+
var s = function() {
|
3
|
+
var e = o(), n = function(t) {
|
4
|
+
var r = t.styles, l = t.dynamic;
|
5
|
+
return e(r, l), null;
|
6
|
+
};
|
7
|
+
return n;
|
64
8
|
};
|
65
9
|
export {
|
66
|
-
|
67
|
-
T as locationCouldBeScrolled
|
10
|
+
s as styleSingleton
|
68
11
|
};
|
69
12
|
//# sourceMappingURL=index.es505.js.map
|
package/dist/index.es505.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.es505.js","sources":["../node_modules/react-
|
1
|
+
{"version":3,"file":"index.es505.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,EAAkB,GAC7BC,IAAQ,SAAUC,GAAI;AACtB,QAAIC,IAASD,EAAG,QAAQE,IAAUF,EAAG;AACrC,WAAAH,EAASI,GAAQC,CAAO,GACjB;AAAA,EACX;AACA,SAAOH;AACX;","x_google_ignoreList":[0]}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
var r = !1;
|
2
|
+
if (typeof window < "u")
|
3
|
+
try {
|
4
|
+
var e = Object.defineProperty({}, "passive", {
|
5
|
+
get: function() {
|
6
|
+
return r = !0, !0;
|
7
|
+
}
|
8
|
+
});
|
9
|
+
window.addEventListener("test", e, e), window.removeEventListener("test", e, e);
|
10
|
+
} catch {
|
11
|
+
r = !1;
|
12
|
+
}
|
13
|
+
var a = r ? { passive: !1 } : !1;
|
14
|
+
export {
|
15
|
+
a as nonPassive
|
16
|
+
};
|
17
|
+
//# sourceMappingURL=index.es506.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.es506.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,MACX;AAAA,IACZ,CAAS;AAED,WAAO,iBAAiB,QAAQC,GAASA,CAAO,GAEhD,OAAO,oBAAoB,QAAQA,GAASA,CAAO;AAAA,EACvD,QACY;AACR,IAAAD,IAAmB;AAAA,EACvB;AAEM,IAACE,IAAaF,IAAmB,EAAE,SAAS,GAAK,IAAK;","x_google_ignoreList":[0]}
|
package/dist/index.es507.js
CHANGED
@@ -1,7 +1,69 @@
|
|
1
|
-
function
|
2
|
-
return
|
3
|
-
}
|
1
|
+
var N = function(r) {
|
2
|
+
return r.tagName === "TEXTAREA";
|
3
|
+
}, b = function(r, e) {
|
4
|
+
if (!(r instanceof Element))
|
5
|
+
return !1;
|
6
|
+
var t = window.getComputedStyle(r);
|
7
|
+
return (
|
8
|
+
// not-not-scrollable
|
9
|
+
t[e] !== "hidden" && // contains scroll inside self
|
10
|
+
!(t.overflowY === t.overflowX && !N(r) && t[e] === "visible")
|
11
|
+
);
|
12
|
+
}, D = function(r) {
|
13
|
+
return b(r, "overflowY");
|
14
|
+
}, E = function(r) {
|
15
|
+
return b(r, "overflowX");
|
16
|
+
}, T = function(r, e) {
|
17
|
+
var t = e.ownerDocument, l = e;
|
18
|
+
do {
|
19
|
+
typeof ShadowRoot < "u" && l instanceof ShadowRoot && (l = l.host);
|
20
|
+
var f = g(r, l);
|
21
|
+
if (f) {
|
22
|
+
var n = m(r, l), i = n[1], o = n[2];
|
23
|
+
if (i > o)
|
24
|
+
return !0;
|
25
|
+
}
|
26
|
+
l = l.parentNode;
|
27
|
+
} while (l && l !== t.body);
|
28
|
+
return !1;
|
29
|
+
}, H = function(r) {
|
30
|
+
var e = r.scrollTop, t = r.scrollHeight, l = r.clientHeight;
|
31
|
+
return [
|
32
|
+
e,
|
33
|
+
t,
|
34
|
+
l
|
35
|
+
];
|
36
|
+
}, p = function(r) {
|
37
|
+
var e = r.scrollLeft, t = r.scrollWidth, l = r.clientWidth;
|
38
|
+
return [
|
39
|
+
e,
|
40
|
+
t,
|
41
|
+
l
|
42
|
+
];
|
43
|
+
}, g = function(r, e) {
|
44
|
+
return r === "v" ? D(e) : E(e);
|
45
|
+
}, m = function(r, e) {
|
46
|
+
return r === "v" ? H(e) : p(e);
|
47
|
+
}, B = function(r, e) {
|
48
|
+
return r === "h" && e === "rtl" ? -1 : 1;
|
49
|
+
}, V = function(r, e, t, l, f) {
|
50
|
+
var n = B(r, window.getComputedStyle(e).direction), i = n * l, o = t.target, d = e.contains(o), c = !1, s = i > 0, h = 0, S = 0;
|
51
|
+
do {
|
52
|
+
if (!o)
|
53
|
+
break;
|
54
|
+
var u = m(r, o), v = u[0], C = u[1], y = u[2], w = C - y - n * v;
|
55
|
+
(v || w) && g(r, o) && (h += w, S += v);
|
56
|
+
var a = o.parentNode;
|
57
|
+
o = a && a.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? a.host : a;
|
58
|
+
} while (
|
59
|
+
// portaled content
|
60
|
+
!d && o !== document.body || // self content
|
61
|
+
d && (e.contains(o) || e === o)
|
62
|
+
);
|
63
|
+
return (s && Math.abs(h) < 1 || !s && Math.abs(S) < 1) && (c = !0), c;
|
64
|
+
};
|
4
65
|
export {
|
5
|
-
|
66
|
+
V as handleScroll,
|
67
|
+
T as locationCouldBeScrolled
|
6
68
|
};
|
7
69
|
//# sourceMappingURL=index.es507.js.map
|
package/dist/index.es507.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.es507.js","sources":["../node_modules/
|
1
|
+
{"version":3,"file":"index.es507.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 if (!target) {\n break;\n }\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 var parent_1 = target.parentNode;\n // we will \"bubble\" from ShadowDom in case we are, or just to the parent in normal case\n // this is the same logic used in focus-lock\n target = (parent_1 && parent_1.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? parent_1.host : parent_1);\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","parent_1"],"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;AAAG,GAC5FK,IAA0B,SAAUL,GAAM;AAAE,SAAOC,EAAqBD,GAAM,WAAW;AAAG,GACrFM,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,IAEf;AACA,IAAAN,IAAUA,EAAQ;AAAA,EACtB,SAASA,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,EACR;AACA,GACIG,IAAsB,SAAUN,GAAI;AACpC,MAAIO,IAAaP,EAAG,YAAYQ,IAAcR,EAAG,aAAaS,IAAcT,EAAG;AAC/E,SAAO;AAAA,IACHO;AAAA,IACAC;AAAA,IACAC;AAAA,EACR;AACA,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,QAAI,CAACL;AACD;AAEJ,QAAInB,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;AAG9B,QAAII,IAAWV,EAAO;AAGtB,IAAAA,IAAUU,KAAYA,EAAS,aAAa,KAAK,yBAAyBA,EAAS,OAAOA;AAAA,EAC9F;AAAA;AAAA,IAEC,CAACT,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.es510.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]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.
|
1
|
+
{"version":3,"file":"index.es511.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,QACf;AAAA,QACA,IAAI,QAAQE,GAAO;AACf,cAAIC,IAAOH,EAAI;AACf,UAAIG,MAASD,MACTF,EAAI,QAAQE,GACZF,EAAI,SAASE,GAAOC,CAAI;AAAA,QAEhC;AAAA,MACZ;AAAA,IACA;AAAA,EAAQ,CAAC,EAAE,CAAC;AAER,SAAAH,EAAI,WAAWD,GACRC,EAAI;AACf;","x_google_ignoreList":[0]}
|
package/dist/index.es512.js
CHANGED
@@ -1,16 +1,26 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
1
|
+
var a = {
|
2
|
+
left: 0,
|
3
|
+
top: 0,
|
4
|
+
right: 0,
|
5
|
+
gap: 0
|
6
|
+
}, e = function(t) {
|
7
|
+
return parseInt(t || "", 10) || 0;
|
8
|
+
}, o = function(t) {
|
9
|
+
var n = window.getComputedStyle(document.body), i = n[t === "padding" ? "paddingLeft" : "marginLeft"], r = n[t === "padding" ? "paddingTop" : "marginTop"], d = n[t === "padding" ? "paddingRight" : "marginRight"];
|
10
|
+
return [e(i), e(r), e(d)];
|
11
|
+
}, f = function(t) {
|
12
|
+
if (t === void 0 && (t = "margin"), typeof window > "u")
|
13
|
+
return a;
|
14
|
+
var n = o(t), i = document.documentElement.clientWidth, r = window.innerWidth;
|
15
|
+
return {
|
16
|
+
left: n[0],
|
17
|
+
top: n[1],
|
18
|
+
right: n[2],
|
19
|
+
gap: Math.max(0, r - i + n[2] - n[0])
|
11
20
|
};
|
12
21
|
};
|
13
22
|
export {
|
14
|
-
|
23
|
+
f as getGapWidth,
|
24
|
+
a as zeroGap
|
15
25
|
};
|
16
26
|
//# sourceMappingURL=index.es512.js.map
|
package/dist/index.es512.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.es512.js","sources":["../node_modules/react-
|
1
|
+
{"version":3,"file":"index.es512.js","sources":["../node_modules/react-remove-scroll-bar/dist/es2015/utils.js"],"sourcesContent":["export var zeroGap = {\n left: 0,\n top: 0,\n right: 0,\n gap: 0,\n};\nvar parse = function (x) { return parseInt(x || '', 10) || 0; };\nvar getOffset = function (gapMode) {\n var cs = window.getComputedStyle(document.body);\n var left = cs[gapMode === 'padding' ? 'paddingLeft' : 'marginLeft'];\n var top = cs[gapMode === 'padding' ? 'paddingTop' : 'marginTop'];\n var right = cs[gapMode === 'padding' ? 'paddingRight' : 'marginRight'];\n return [parse(left), parse(top), parse(right)];\n};\nexport var getGapWidth = function (gapMode) {\n if (gapMode === void 0) { gapMode = 'margin'; }\n if (typeof window === 'undefined') {\n return zeroGap;\n }\n var offsets = getOffset(gapMode);\n var documentWidth = document.documentElement.clientWidth;\n var windowWidth = window.innerWidth;\n return {\n left: offsets[0],\n top: offsets[1],\n right: offsets[2],\n gap: Math.max(0, windowWidth - documentWidth + offsets[2] - offsets[0]),\n };\n};\n"],"names":["zeroGap","parse","x","getOffset","gapMode","cs","left","top","right","getGapWidth","offsets","documentWidth","windowWidth"],"mappings":"AAAU,IAACA,IAAU;AAAA,EACjB,MAAM;AAAA,EACN,KAAK;AAAA,EACL,OAAO;AAAA,EACP,KAAK;AACT,GACIC,IAAQ,SAAUC,GAAG;AAAE,SAAO,SAASA,KAAK,IAAI,EAAE,KAAK;AAAG,GAC1DC,IAAY,SAAUC,GAAS;AAC/B,MAAIC,IAAK,OAAO,iBAAiB,SAAS,IAAI,GAC1CC,IAAOD,EAAGD,MAAY,YAAY,gBAAgB,YAAY,GAC9DG,IAAMF,EAAGD,MAAY,YAAY,eAAe,WAAW,GAC3DI,IAAQH,EAAGD,MAAY,YAAY,iBAAiB,aAAa;AACrE,SAAO,CAACH,EAAMK,CAAI,GAAGL,EAAMM,CAAG,GAAGN,EAAMO,CAAK,CAAC;AACjD,GACWC,IAAc,SAAUL,GAAS;AAExC,MADIA,MAAY,WAAUA,IAAU,WAChC,OAAO,SAAW;AAClB,WAAOJ;AAEX,MAAIU,IAAUP,EAAUC,CAAO,GAC3BO,IAAgB,SAAS,gBAAgB,aACzCC,IAAc,OAAO;AACzB,SAAO;AAAA,IACH,MAAMF,EAAQ,CAAC;AAAA,IACf,KAAKA,EAAQ,CAAC;AAAA,IACd,OAAOA,EAAQ,CAAC;AAAA,IAChB,KAAK,KAAK,IAAI,GAAGE,IAAcD,IAAgBD,EAAQ,CAAC,IAAIA,EAAQ,CAAC,CAAC;AAAA,EAC9E;AACA;","x_google_ignoreList":[0]}
|
package/dist/index.es513.js
CHANGED
@@ -1,31 +1,16 @@
|
|
1
|
-
import
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
}
|
10
|
-
|
11
|
-
t.styleSheet ? t.styleSheet.cssText = e : t.appendChild(document.createTextNode(e));
|
12
|
-
}
|
13
|
-
function a(t) {
|
14
|
-
var e = document.head || document.getElementsByTagName("head")[0];
|
15
|
-
e.appendChild(t);
|
16
|
-
}
|
17
|
-
var c = function() {
|
18
|
-
var t = 0, e = null;
|
19
|
-
return {
|
20
|
-
add: function(n) {
|
21
|
-
t == 0 && (e = r()) && (l(e, n), a(e)), t++;
|
22
|
-
},
|
23
|
-
remove: function() {
|
24
|
-
t--, !t && e && (e.parentNode && e.parentNode.removeChild(e), e = null);
|
25
|
-
}
|
1
|
+
import * as o from "react";
|
2
|
+
import { stylesheetSingleton as r } from "./index.es514.js";
|
3
|
+
var i = function() {
|
4
|
+
var t = r();
|
5
|
+
return function(e, n) {
|
6
|
+
o.useEffect(function() {
|
7
|
+
return t.add(e), function() {
|
8
|
+
t.remove();
|
9
|
+
};
|
10
|
+
}, [e && n]);
|
26
11
|
};
|
27
12
|
};
|
28
13
|
export {
|
29
|
-
|
14
|
+
i as styleHookSingleton
|
30
15
|
};
|
31
16
|
//# sourceMappingURL=index.es513.js.map
|
package/dist/index.es513.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.es513.js","sources":["../node_modules/react-style-singleton/dist/es2015/
|
1
|
+
{"version":3,"file":"index.es513.js","sources":["../node_modules/react-style-singleton/dist/es2015/hook.js"],"sourcesContent":["import * as React from 'react';\nimport { stylesheetSingleton } from './singleton';\n/**\n * creates a hook to control style singleton\n * @see {@link styleSingleton} for a safer component version\n * @example\n * ```tsx\n * const useStyle = styleHookSingleton();\n * ///\n * useStyle('body { overflow: hidden}');\n */\nexport var styleHookSingleton = function () {\n var sheet = stylesheetSingleton();\n return function (styles, isDynamic) {\n React.useEffect(function () {\n sheet.add(styles);\n return function () {\n sheet.remove();\n };\n }, [styles && isDynamic]);\n };\n};\n"],"names":["styleHookSingleton","sheet","stylesheetSingleton","styles","isDynamic","React"],"mappings":";;AAWU,IAACA,IAAqB,WAAY;AACxC,MAAIC,IAAQC,EAAmB;AAC/B,SAAO,SAAUC,GAAQC,GAAW;AAChC,IAAAC,EAAM,UAAU,WAAY;AACxB,aAAAJ,EAAM,IAAIE,CAAM,GACT,WAAY;AACf,QAAAF,EAAM,OAAM;AAAA,MAChB;AAAA,IACJ,GAAG,CAACE,KAAUC,CAAS,CAAC;AAAA,EAC5B;AACJ;","x_google_ignoreList":[0]}
|
package/dist/index.es514.js
CHANGED
@@ -1,8 +1,31 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
import { getNonce as o } from "./index.es515.js";
|
2
|
+
function r() {
|
3
|
+
if (!document)
|
4
|
+
return null;
|
5
|
+
var t = document.createElement("style");
|
6
|
+
t.type = "text/css";
|
7
|
+
var e = o();
|
8
|
+
return e && t.setAttribute("nonce", e), t;
|
9
|
+
}
|
10
|
+
function l(t, e) {
|
11
|
+
t.styleSheet ? t.styleSheet.cssText = e : t.appendChild(document.createTextNode(e));
|
12
|
+
}
|
13
|
+
function a(t) {
|
14
|
+
var e = document.head || document.getElementsByTagName("head")[0];
|
15
|
+
e.appendChild(t);
|
16
|
+
}
|
17
|
+
var c = function() {
|
18
|
+
var t = 0, e = null;
|
19
|
+
return {
|
20
|
+
add: function(n) {
|
21
|
+
t == 0 && (e = r()) && (l(e, n), a(e)), t++;
|
22
|
+
},
|
23
|
+
remove: function() {
|
24
|
+
t--, !t && e && (e.parentNode && e.parentNode.removeChild(e), e = null);
|
25
|
+
}
|
26
|
+
};
|
4
27
|
};
|
5
28
|
export {
|
6
|
-
|
29
|
+
c as stylesheetSingleton
|
7
30
|
};
|
8
31
|
//# sourceMappingURL=index.es514.js.map
|
package/dist/index.es514.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.es514.js","sources":["../node_modules/
|
1
|
+
{"version":3,"file":"index.es514.js","sources":["../node_modules/react-style-singleton/dist/es2015/singleton.js"],"sourcesContent":["import { getNonce } from 'get-nonce';\nfunction makeStyleTag() {\n if (!document)\n return null;\n var tag = document.createElement('style');\n tag.type = 'text/css';\n var nonce = getNonce();\n if (nonce) {\n tag.setAttribute('nonce', nonce);\n }\n return tag;\n}\nfunction injectStyles(tag, css) {\n // @ts-ignore\n if (tag.styleSheet) {\n // @ts-ignore\n tag.styleSheet.cssText = css;\n }\n else {\n tag.appendChild(document.createTextNode(css));\n }\n}\nfunction insertStyleTag(tag) {\n var head = document.head || document.getElementsByTagName('head')[0];\n head.appendChild(tag);\n}\nexport var stylesheetSingleton = function () {\n var counter = 0;\n var stylesheet = null;\n return {\n add: function (style) {\n if (counter == 0) {\n if ((stylesheet = makeStyleTag())) {\n injectStyles(stylesheet, style);\n insertStyleTag(stylesheet);\n }\n }\n counter++;\n },\n remove: function () {\n counter--;\n if (!counter && stylesheet) {\n stylesheet.parentNode && stylesheet.parentNode.removeChild(stylesheet);\n stylesheet = null;\n }\n },\n };\n};\n"],"names":["makeStyleTag","tag","nonce","getNonce","injectStyles","css","insertStyleTag","head","stylesheetSingleton","counter","stylesheet","style"],"mappings":";AACA,SAASA,IAAe;AACpB,MAAI,CAAC;AACD,WAAO;AACX,MAAIC,IAAM,SAAS,cAAc,OAAO;AACxC,EAAAA,EAAI,OAAO;AACX,MAAIC,IAAQC,EAAQ;AACpB,SAAID,KACAD,EAAI,aAAa,SAASC,CAAK,GAE5BD;AACX;AACA,SAASG,EAAaH,GAAKI,GAAK;AAE5B,EAAIJ,EAAI,aAEJA,EAAI,WAAW,UAAUI,IAGzBJ,EAAI,YAAY,SAAS,eAAeI,CAAG,CAAC;AAEpD;AACA,SAASC,EAAeL,GAAK;AACzB,MAAIM,IAAO,SAAS,QAAQ,SAAS,qBAAqB,MAAM,EAAE,CAAC;AACnE,EAAAA,EAAK,YAAYN,CAAG;AACxB;AACU,IAACO,IAAsB,WAAY;AACzC,MAAIC,IAAU,GACVC,IAAa;AACjB,SAAO;AAAA,IACH,KAAK,SAAUC,GAAO;AAClB,MAAIF,KAAW,MACNC,IAAaV,SACdI,EAAaM,GAAYC,CAAK,GAC9BL,EAAeI,CAAU,IAGjCD;AAAA,IACJ;AAAA,IACA,QAAQ,WAAY;AAChB,MAAAA,KACI,CAACA,KAAWC,MACZA,EAAW,cAAcA,EAAW,WAAW,YAAYA,CAAU,GACrEA,IAAa;AAAA,IAErB;AAAA,EACR;AACA;","x_google_ignoreList":[0]}
|
package/dist/index.es515.js
CHANGED
@@ -1,26 +1,8 @@
|
|
1
|
-
var
|
2
|
-
|
3
|
-
|
4
|
-
right: 0,
|
5
|
-
gap: 0
|
6
|
-
}, e = function(t) {
|
7
|
-
return parseInt(t || "", 10) || 0;
|
8
|
-
}, o = function(t) {
|
9
|
-
var n = window.getComputedStyle(document.body), i = n[t === "padding" ? "paddingLeft" : "marginLeft"], r = n[t === "padding" ? "paddingTop" : "marginTop"], d = n[t === "padding" ? "paddingRight" : "marginRight"];
|
10
|
-
return [e(i), e(r), e(d)];
|
11
|
-
}, f = function(t) {
|
12
|
-
if (t === void 0 && (t = "margin"), typeof window > "u")
|
13
|
-
return a;
|
14
|
-
var n = o(t), i = document.documentElement.clientWidth, r = window.innerWidth;
|
15
|
-
return {
|
16
|
-
left: n[0],
|
17
|
-
top: n[1],
|
18
|
-
right: n[2],
|
19
|
-
gap: Math.max(0, r - i + n[2] - n[0])
|
20
|
-
};
|
1
|
+
var e = function() {
|
2
|
+
if (typeof __webpack_nonce__ < "u")
|
3
|
+
return __webpack_nonce__;
|
21
4
|
};
|
22
5
|
export {
|
23
|
-
|
24
|
-
a as zeroGap
|
6
|
+
e as getNonce
|
25
7
|
};
|
26
8
|
//# sourceMappingURL=index.es515.js.map
|
package/dist/index.es515.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.es515.js","sources":["../node_modules/
|
1
|
+
{"version":3,"file":"index.es515.js","sources":["../node_modules/get-nonce/dist/es2015/index.js"],"sourcesContent":["var currentNonce;\nexport var setNonce = function (nonce) {\n currentNonce = nonce;\n};\nexport var getNonce = function () {\n if (currentNonce) {\n return currentNonce;\n }\n if (typeof __webpack_nonce__ !== 'undefined') {\n return __webpack_nonce__;\n }\n return undefined;\n};\n"],"names":["getNonce"],"mappings":"AAIU,IAACA,IAAW,WAAY;AAI9B,MAAI,OAAO,oBAAsB;AAC7B,WAAO;AAGf;","x_google_ignoreList":[0]}
|
package/dist/index.es517.js
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
import * as e from "react";
|
2
2
|
import u from "./index.es516.js";
|
3
|
-
import { baseButtonPropDefs as s } from "./index.
|
3
|
+
import { baseButtonPropDefs as s } from "./index.es545.js";
|
4
4
|
import { Flex as f } from "./index.es518.js";
|
5
5
|
import { Spinner as B } from "./index.es535.js";
|
6
6
|
import { VisuallyHidden as b } from "./index.es540.js";
|
7
7
|
import { extractProps as y } from "./index.es519.js";
|
8
|
-
import { mapResponsiveProp as E, mapButtonSizeToSpinnerSize as g } from "./index.
|
8
|
+
import { mapResponsiveProp as E, mapButtonSizeToSpinnerSize as g } from "./index.es546.js";
|
9
9
|
import { marginPropDefs as h } from "./index.es521.js";
|
10
|
-
import { Root as z } from "./index.
|
10
|
+
import { Root as z } from "./index.es459.js";
|
11
11
|
const S = e.forwardRef((t, o) => {
|
12
12
|
const { size: i = s.size.default } = t, { className: n, children: a, asChild: l, color: m, radius: d, disabled: r = t.loading, ...p } = y(t, s, h), c = l ? z : "button";
|
13
13
|
return e.createElement(c, { "data-disabled": r || void 0, "data-accent-color": m, "data-radius": d, ...p, ref: o, className: u("rt-reset", "rt-BaseButton", n), disabled: r }, t.loading ? e.createElement(e.Fragment, null, e.createElement("span", { style: { display: "contents", visibility: "hidden" }, "aria-hidden": !0 }, a), e.createElement(b, null, a), e.createElement(f, { asChild: !0, align: "center", justify: "center", position: "absolute", inset: "0" }, e.createElement("span", null, e.createElement(B, { size: E(i, g) })))) : a);
|
package/dist/index.es520.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
import { paddingPropDefs as s } from "./index.
|
2
|
-
import { heightPropDefs as t } from "./index.
|
3
|
-
import { widthPropDefs as o } from "./index.
|
1
|
+
import { paddingPropDefs as s } from "./index.es547.js";
|
2
|
+
import { heightPropDefs as t } from "./index.es548.js";
|
3
|
+
import { widthPropDefs as o } from "./index.es549.js";
|
4
4
|
const r = ["visible", "hidden", "clip", "scroll", "auto"], i = ["static", "relative", "absolute", "fixed", "sticky"], e = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "-1", "-2", "-3", "-4", "-5", "-6", "-7", "-8", "-9"], p = ["0", "1"], a = ["0", "1"], l = { ...s, ...o, ...t, position: { type: "enum", className: "rt-r-position", values: i, responsive: !0 }, inset: { type: "enum | string", className: "rt-r-inset", customProperties: ["--inset"], values: e, responsive: !0 }, top: { type: "enum | string", className: "rt-r-top", customProperties: ["--top"], values: e, responsive: !0 }, right: { type: "enum | string", className: "rt-r-right", customProperties: ["--right"], values: e, responsive: !0 }, bottom: { type: "enum | string", className: "rt-r-bottom", customProperties: ["--bottom"], values: e, responsive: !0 }, left: { type: "enum | string", className: "rt-r-left", customProperties: ["--left"], values: e, responsive: !0 }, overflow: { type: "enum", className: "rt-r-overflow", values: r, responsive: !0 }, overflowX: { type: "enum", className: "rt-r-ox", values: r, responsive: !0 }, overflowY: { type: "enum", className: "rt-r-oy", values: r, responsive: !0 }, flexBasis: { type: "string", className: "rt-r-fb", customProperties: ["--flex-basis"], responsive: !0 }, flexShrink: { type: "enum | string", className: "rt-r-fs", customProperties: ["--flex-shrink"], values: p, responsive: !0 }, flexGrow: { type: "enum | string", className: "rt-r-fg", customProperties: ["--flex-grow"], values: a, responsive: !0 }, gridArea: { type: "string", className: "rt-r-ga", customProperties: ["--grid-area"], responsive: !0 }, gridColumn: { type: "string", className: "rt-r-gc", customProperties: ["--grid-column"], responsive: !0 }, gridColumnStart: { type: "string", className: "rt-r-gcs", customProperties: ["--grid-column-start"], responsive: !0 }, gridColumnEnd: { type: "string", className: "rt-r-gce", customProperties: ["--grid-column-end"], responsive: !0 }, gridRow: { type: "string", className: "rt-r-gr", customProperties: ["--grid-row"], responsive: !0 }, gridRowStart: { type: "string", className: "rt-r-grs", customProperties: ["--grid-row-start"], responsive: !0 }, gridRowEnd: { type: "string", className: "rt-r-gre", customProperties: ["--grid-row-end"], responsive: !0 } };
|
5
5
|
export {
|
6
6
|
l as layoutPropDefs
|