@rpcbase/ui 0.206.0 → 0.208.0
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.js +7 -7
- package/dist/index19.js +1 -1
- package/dist/index19.js.map +1 -1
- package/dist/index200.js +56 -55
- package/dist/index200.js.map +1 -1
- package/dist/index201.js +60 -8
- package/dist/index201.js.map +1 -1
- package/dist/index202.js +7 -15
- package/dist/index202.js.map +1 -1
- package/dist/index203.js +15 -143
- package/dist/index203.js.map +1 -1
- package/dist/index204.js +145 -4
- package/dist/index204.js.map +1 -1
- package/dist/index205.js +4 -11
- package/dist/index205.js.map +1 -1
- package/dist/index206.js +10 -104
- package/dist/index206.js.map +1 -1
- package/dist/index207.js +94 -347
- package/dist/index207.js.map +1 -1
- package/dist/index208.js +349 -87
- package/dist/index208.js.map +1 -1
- package/dist/index209.js +73 -304
- package/dist/index209.js.map +1 -1
- package/dist/index210.js +309 -193
- package/dist/index210.js.map +1 -1
- package/dist/index211.js +211 -19
- package/dist/index211.js.map +1 -1
- package/dist/index212.js +18 -27
- package/dist/index212.js.map +1 -1
- package/dist/index213.js +27 -187
- package/dist/index213.js.map +1 -1
- package/dist/index214.js +186 -16
- package/dist/index214.js.map +1 -1
- package/dist/index215.js +18 -44
- package/dist/index215.js.map +1 -1
- package/dist/index216.js +60 -8
- package/dist/index216.js.map +1 -1
- package/dist/index217.js +42 -23
- package/dist/index217.js.map +1 -1
- package/dist/index218.js +9 -44
- package/dist/index218.js.map +1 -1
- package/dist/index219.js +25 -18
- package/dist/index219.js.map +1 -1
- package/dist/index220.js +45 -3
- package/dist/index220.js.map +1 -1
- package/dist/index221.js +17 -4
- package/dist/index221.js.map +1 -1
- package/dist/index222.js +3 -21
- package/dist/index222.js.map +1 -1
- package/dist/index223.js +4 -24
- package/dist/index223.js.map +1 -1
- package/dist/index224.js +17 -64
- package/dist/index224.js.map +1 -1
- package/dist/index225.js +23 -13
- package/dist/index225.js.map +1 -1
- package/dist/index226.js +68 -4
- package/dist/index226.js.map +1 -1
- package/dist/index227.js +14 -50
- package/dist/index227.js.map +1 -1
- package/dist/index228.js +4 -6
- package/dist/index228.js.map +1 -1
- package/dist/index229.js +50 -26
- package/dist/index229.js.map +1 -1
- package/dist/index230.js +5 -13
- package/dist/index230.js.map +1 -1
- package/dist/index231.js +25 -8
- package/dist/index231.js.map +1 -1
- package/dist/index232.js +17 -3
- package/dist/index232.js.map +1 -0
- package/dist/index233.js +8 -24
- package/dist/index233.js.map +1 -1
- package/dist/index234.js +2 -71
- package/dist/index235.js +29 -3
- package/dist/index235.js.map +1 -0
- package/dist/index236.js +69 -12
- package/dist/index236.js.map +1 -1
- package/dist/index237.js +3 -54
- package/dist/index238.js +11 -114
- package/dist/index238.js.map +1 -1
- package/dist/index239.js +51 -6
- package/dist/index239.js.map +1 -1
- package/dist/index240.js +115 -13
- package/dist/index240.js.map +1 -1
- package/dist/index241.js +6 -687
- package/dist/index241.js.map +1 -1
- package/dist/index242.js +13 -253
- package/dist/index242.js.map +1 -1
- package/dist/index243.js +662 -676
- package/dist/index243.js.map +1 -1
- package/dist/index244.js +252 -7430
- package/dist/index244.js.map +1 -1
- package/dist/index245.js +700 -6
- package/dist/index245.js.map +1 -1
- package/dist/index246.js +7429 -11
- package/dist/index246.js.map +1 -1
- package/dist/index247.js +5 -4
- package/dist/index247.js.map +1 -1
- package/dist/index248.js +11 -458
- package/dist/index248.js.map +1 -1
- package/dist/index249.js +5 -37
- package/dist/index249.js.map +1 -1
- package/dist/index250.js +458 -18
- package/dist/index250.js.map +1 -1
- package/dist/index251.js +34 -24
- package/dist/index251.js.map +1 -1
- package/dist/index252.js +19 -4
- package/dist/index252.js.map +1 -1
- package/dist/index253.js +23 -54
- package/dist/index253.js.map +1 -1
- package/dist/index254.js +4 -7
- package/dist/index254.js.map +1 -1
- package/dist/index255.js +57 -11
- package/dist/index255.js.map +1 -1
- package/dist/index256.js +8 -3
- package/dist/index256.js.map +1 -1
- package/dist/index257.js +12 -16
- package/dist/index257.js.map +1 -1
- package/dist/index258.js +3 -26
- package/dist/index258.js.map +1 -1
- package/dist/index259.js +15 -42
- package/dist/index259.js.map +1 -1
- package/dist/index260.js +25 -13
- package/dist/index260.js.map +1 -1
- package/dist/index261.js +40 -22
- package/dist/index261.js.map +1 -1
- package/dist/index262.js +13 -17
- package/dist/index262.js.map +1 -1
- package/dist/index263.js +24 -34
- package/dist/index263.js.map +1 -1
- package/dist/index264.js +17 -5
- package/dist/index264.js.map +1 -1
- package/dist/index265.js +35 -9
- package/dist/index265.js.map +1 -1
- package/dist/index266.js +5 -8
- package/dist/index266.js.map +1 -1
- package/dist/index267.js +9 -9
- package/dist/index267.js.map +1 -1
- package/dist/index268.js +8 -10
- package/dist/index268.js.map +1 -1
- package/dist/index269.js +9 -7
- package/dist/index269.js.map +1 -1
- package/dist/index270.js +9 -72
- package/dist/index270.js.map +1 -1
- package/dist/index271.js +7 -171
- package/dist/index271.js.map +1 -1
- package/dist/index272.js +63 -104
- package/dist/index272.js.map +1 -1
- package/dist/index273.js +169 -12
- package/dist/index273.js.map +1 -1
- package/dist/index274.js +109 -75
- package/dist/index274.js.map +1 -1
- package/dist/index275.js +12 -44
- package/dist/index275.js.map +1 -1
- package/dist/index276.js +79 -12
- package/dist/index276.js.map +1 -1
- package/dist/index277.js +45 -15
- package/dist/index277.js.map +1 -1
- package/dist/index278.js +12 -98
- package/dist/index278.js.map +1 -1
- package/dist/index279.js +15 -55
- package/dist/index279.js.map +1 -1
- package/dist/index280.js +89 -98
- package/dist/index280.js.map +1 -1
- package/dist/index281.js +27 -42
- package/dist/index281.js.map +1 -1
- package/dist/index282.js +92 -97
- package/dist/index282.js.map +1 -1
- package/dist/index283.js +62 -46
- package/dist/index283.js.map +1 -1
- package/dist/index284.js +108 -38
- package/dist/index284.js.map +1 -1
- package/dist/index285.js +48 -135
- package/dist/index285.js.map +1 -1
- package/dist/index286.js +43 -139
- package/dist/index286.js.map +1 -1
- package/dist/index287.js +105 -217
- package/dist/index287.js.map +1 -1
- package/dist/index288.js +109 -210
- package/dist/index288.js.map +1 -1
- package/dist/index289.js +168 -212
- package/dist/index289.js.map +1 -1
- package/dist/index290.js +240 -5
- package/dist/index290.js.map +1 -1
- package/dist/index291.js +298 -6
- package/dist/index291.js.map +1 -1
- package/dist/index292.js +5 -7
- package/dist/index292.js.map +1 -1
- package/dist/index293.js +4 -4
- package/dist/index293.js.map +1 -1
- package/dist/index294.js +7 -6
- package/dist/index294.js.map +1 -1
- package/dist/index295.js +6 -21
- package/dist/index295.js.map +1 -1
- package/dist/index296.js +6 -10
- package/dist/index296.js.map +1 -1
- package/dist/index297.js +18 -123
- package/dist/index297.js.map +1 -1
- package/dist/index298.js +10 -164
- package/dist/index298.js.map +1 -1
- package/dist/index299.js +116 -58
- package/dist/index299.js.map +1 -1
- package/dist/index300.js +161 -106
- package/dist/index300.js.map +1 -1
- package/dist/index301.js +66 -489
- package/dist/index301.js.map +1 -1
- package/dist/index302.js +106 -59
- package/dist/index302.js.map +1 -1
- package/dist/index303.js +492 -4
- package/dist/index303.js.map +1 -1
- package/dist/index304.js +62 -27
- package/dist/index304.js.map +1 -1
- package/dist/index305.js +4 -66
- package/dist/index305.js.map +1 -1
- package/dist/index306.js +27 -152
- package/dist/index306.js.map +1 -1
- package/dist/index307.js +59 -555
- package/dist/index307.js.map +1 -1
- package/dist/index308.js +143 -201
- package/dist/index308.js.map +1 -1
- package/dist/index309.js +56 -326
- package/dist/index309.js.map +1 -1
- package/dist/index310.js +553 -260
- package/dist/index310.js.map +1 -1
- package/dist/index311.js +214 -0
- package/dist/index311.js.map +1 -0
- package/dist/index312.js +335 -0
- package/dist/index312.js.map +1 -0
- package/dist/index313.js +272 -0
- package/dist/index313.js.map +1 -0
- package/package.json +2 -2
- package/dist/index234.js.map +0 -1
- package/dist/index237.js.map +0 -1
package/dist/index227.js
CHANGED
|
@@ -1,54 +1,18 @@
|
|
|
1
|
-
import { __assign as e, __rest as t } from "./
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
var
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
onWheelCapture: s,
|
|
11
|
-
onTouchMoveCapture: s
|
|
12
|
-
}), u = l[0], d = l[1], f = n.forwardProps, p = n.children, m = n.className, h = n.removeScrollBar, g = n.enabled, _ = n.shards, v = n.sideCar, y = n.noRelative, b = n.noIsolation, x = n.inert, S = n.allowPinchZoom, C = n.as, w = C === void 0 ? "div" : C, T = n.gapMode, E = t(n, [
|
|
13
|
-
"forwardProps",
|
|
14
|
-
"children",
|
|
15
|
-
"className",
|
|
16
|
-
"removeScrollBar",
|
|
17
|
-
"enabled",
|
|
18
|
-
"shards",
|
|
19
|
-
"sideCar",
|
|
20
|
-
"noRelative",
|
|
21
|
-
"noIsolation",
|
|
22
|
-
"inert",
|
|
23
|
-
"allowPinchZoom",
|
|
24
|
-
"as",
|
|
25
|
-
"gapMode"
|
|
26
|
-
]), D = v, O = i([c, r]), k = e(e({}, E), u);
|
|
27
|
-
return o.createElement(o.Fragment, null, g && o.createElement(D, {
|
|
28
|
-
sideCar: a,
|
|
29
|
-
removeScrollBar: h,
|
|
30
|
-
shards: _,
|
|
31
|
-
noRelative: y,
|
|
32
|
-
noIsolation: b,
|
|
33
|
-
inert: x,
|
|
34
|
-
setCallbacks: d,
|
|
35
|
-
allowPinchZoom: !!S,
|
|
36
|
-
lockRef: c,
|
|
37
|
-
gapMode: T
|
|
38
|
-
}), f ? o.cloneElement(o.Children.only(p), e(e({}, k), { ref: O })) : o.createElement(w, e({}, k, {
|
|
39
|
-
className: m,
|
|
40
|
-
ref: O
|
|
41
|
-
}), p));
|
|
42
|
-
});
|
|
43
|
-
c.defaultProps = {
|
|
44
|
-
enabled: !0,
|
|
45
|
-
removeScrollBar: !0,
|
|
46
|
-
inert: !1
|
|
47
|
-
}, c.classNames = {
|
|
48
|
-
fullWidth: n,
|
|
49
|
-
zeroRight: r
|
|
1
|
+
import { __assign as e, __rest as t } from "./index221.js";
|
|
2
|
+
import * as n from "react";
|
|
3
|
+
//#region ../../node_modules/use-sidecar/dist/es2015/exports.js
|
|
4
|
+
var r = function(r) {
|
|
5
|
+
var i = r.sideCar, a = t(r, ["sideCar"]);
|
|
6
|
+
if (!i) throw Error("Sidecar: please provide `sideCar` property to import the right car");
|
|
7
|
+
var o = i.read();
|
|
8
|
+
if (!o) throw Error("Sidecar medium not found");
|
|
9
|
+
return n.createElement(o, e({}, a));
|
|
50
10
|
};
|
|
11
|
+
r.isSideCarExport = !0;
|
|
12
|
+
function i(e, t) {
|
|
13
|
+
return e.useMedium(t), r;
|
|
14
|
+
}
|
|
51
15
|
//#endregion
|
|
52
|
-
export {
|
|
16
|
+
export { i as exportSidecar };
|
|
53
17
|
|
|
54
18
|
//# sourceMappingURL=index227.js.map
|
package/dist/index227.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index227.js","names":["React"],"sources":["../../../node_modules/
|
|
1
|
+
{"version":3,"file":"index227.js","names":["React"],"sources":["../../../node_modules/use-sidecar/dist/es2015/exports.js"],"sourcesContent":["import { __assign, __rest } from \"tslib\";\nimport * as React from 'react';\nvar SideCar = function (_a) {\n var sideCar = _a.sideCar, rest = __rest(_a, [\"sideCar\"]);\n if (!sideCar) {\n throw new Error('Sidecar: please provide `sideCar` property to import the right car');\n }\n var Target = sideCar.read();\n if (!Target) {\n throw new Error('Sidecar medium not found');\n }\n return React.createElement(Target, __assign({}, rest));\n};\nSideCar.isSideCarExport = true;\nexport function exportSidecar(medium, exported) {\n medium.useMedium(exported);\n return SideCar;\n}\n"],"x_google_ignoreList":[0],"mappings":";;;AAEA,IAAI,IAAU,SAAU,GAAI;CACxB,IAAI,IAAU,EAAG,SAAS,IAAO,EAAO,GAAI,CAAC,UAAU,CAAC;AACxD,KAAI,CAAC,EACD,OAAU,MAAM,qEAAqE;CAEzF,IAAI,IAAS,EAAQ,MAAM;AAC3B,KAAI,CAAC,EACD,OAAU,MAAM,2BAA2B;AAE/C,QAAOA,EAAM,cAAc,GAAQ,EAAS,EAAE,EAAE,EAAK,CAAC;;AAE1D,EAAQ,kBAAkB;AAC1B,SAAgB,EAAc,GAAQ,GAAU;AAE5C,QADA,EAAO,UAAU,EAAS,EACnB"}
|
package/dist/index228.js
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
if (typeof __webpack_nonce__ < "u") return __webpack_nonce__;
|
|
5
|
-
};
|
|
1
|
+
import { createSidecarMedium as e } from "./index226.js";
|
|
2
|
+
//#region ../../node_modules/react-remove-scroll/dist/es2015/medium.js
|
|
3
|
+
var t = e();
|
|
6
4
|
//#endregion
|
|
7
|
-
export { t as
|
|
5
|
+
export { t as effectCar };
|
|
8
6
|
|
|
9
7
|
//# sourceMappingURL=index228.js.map
|
package/dist/index228.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index228.js","names":[],"sources":["../../../node_modules/
|
|
1
|
+
{"version":3,"file":"index228.js","names":[],"sources":["../../../node_modules/react-remove-scroll/dist/es2015/medium.js"],"sourcesContent":["import { createSidecarMedium } from 'use-sidecar';\nexport var effectCar = createSidecarMedium();\n"],"x_google_ignoreList":[0],"mappings":";;AACA,IAAW,IAAY,GAAqB"}
|
package/dist/index229.js
CHANGED
|
@@ -1,30 +1,54 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
1
|
+
import { __assign as e, __rest as t } from "./index221.js";
|
|
2
|
+
import { fullWidthClassName as n, zeroRightClassName as r } from "./index222.js";
|
|
3
|
+
import { useMergeRefs as i } from "./index225.js";
|
|
4
|
+
import { effectCar as a } from "./index228.js";
|
|
5
|
+
import * as o from "react";
|
|
6
|
+
//#region ../../node_modules/react-remove-scroll/dist/es2015/UI.js
|
|
7
|
+
var s = function() {}, c = o.forwardRef(function(n, r) {
|
|
8
|
+
var c = o.useRef(null), l = o.useState({
|
|
9
|
+
onScrollCapture: s,
|
|
10
|
+
onWheelCapture: s,
|
|
11
|
+
onTouchMoveCapture: s
|
|
12
|
+
}), u = l[0], d = l[1], f = n.forwardProps, p = n.children, m = n.className, h = n.removeScrollBar, g = n.enabled, _ = n.shards, v = n.sideCar, y = n.noRelative, b = n.noIsolation, x = n.inert, S = n.allowPinchZoom, C = n.as, w = C === void 0 ? "div" : C, T = n.gapMode, E = t(n, [
|
|
13
|
+
"forwardProps",
|
|
14
|
+
"children",
|
|
15
|
+
"className",
|
|
16
|
+
"removeScrollBar",
|
|
17
|
+
"enabled",
|
|
18
|
+
"shards",
|
|
19
|
+
"sideCar",
|
|
20
|
+
"noRelative",
|
|
21
|
+
"noIsolation",
|
|
22
|
+
"inert",
|
|
23
|
+
"allowPinchZoom",
|
|
24
|
+
"as",
|
|
25
|
+
"gapMode"
|
|
26
|
+
]), D = v, O = i([c, r]), k = e(e({}, E), u);
|
|
27
|
+
return o.createElement(o.Fragment, null, g && o.createElement(D, {
|
|
28
|
+
sideCar: a,
|
|
29
|
+
removeScrollBar: h,
|
|
30
|
+
shards: _,
|
|
31
|
+
noRelative: y,
|
|
32
|
+
noIsolation: b,
|
|
33
|
+
inert: x,
|
|
34
|
+
setCallbacks: d,
|
|
35
|
+
allowPinchZoom: !!S,
|
|
36
|
+
lockRef: c,
|
|
37
|
+
gapMode: T
|
|
38
|
+
}), f ? o.cloneElement(o.Children.only(p), e(e({}, k), { ref: O })) : o.createElement(w, e({}, k, {
|
|
39
|
+
className: m,
|
|
40
|
+
ref: O
|
|
41
|
+
}), p));
|
|
42
|
+
});
|
|
43
|
+
c.defaultProps = {
|
|
44
|
+
enabled: !0,
|
|
45
|
+
removeScrollBar: !0,
|
|
46
|
+
inert: !1
|
|
47
|
+
}, c.classNames = {
|
|
48
|
+
fullWidth: n,
|
|
49
|
+
zeroRight: r
|
|
26
50
|
};
|
|
27
51
|
//#endregion
|
|
28
|
-
export {
|
|
52
|
+
export { c as RemoveScroll };
|
|
29
53
|
|
|
30
54
|
//# sourceMappingURL=index229.js.map
|
package/dist/index229.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index229.js","names":[],"sources":["../../../node_modules/react-
|
|
1
|
+
{"version":3,"file":"index229.js","names":["React"],"sources":["../../../node_modules/react-remove-scroll/dist/es2015/UI.js"],"sourcesContent":["import { __assign, __rest } from \"tslib\";\nimport * as React from 'react';\nimport { fullWidthClassName, zeroRightClassName } from 'react-remove-scroll-bar/constants';\nimport { useMergeRefs } from 'use-callback-ref';\nimport { effectCar } from './medium';\nvar nothing = function () {\n return;\n};\n/**\n * Removes scrollbar from the page and contain the scroll within the Lock\n */\nvar RemoveScroll = React.forwardRef(function (props, parentRef) {\n var ref = React.useRef(null);\n var _a = React.useState({\n onScrollCapture: nothing,\n onWheelCapture: nothing,\n onTouchMoveCapture: nothing,\n }), callbacks = _a[0], setCallbacks = _a[1];\n var forwardProps = props.forwardProps, children = props.children, className = props.className, removeScrollBar = props.removeScrollBar, enabled = props.enabled, shards = props.shards, sideCar = props.sideCar, noRelative = props.noRelative, noIsolation = props.noIsolation, inert = props.inert, allowPinchZoom = props.allowPinchZoom, _b = props.as, Container = _b === void 0 ? 'div' : _b, gapMode = props.gapMode, rest = __rest(props, [\"forwardProps\", \"children\", \"className\", \"removeScrollBar\", \"enabled\", \"shards\", \"sideCar\", \"noRelative\", \"noIsolation\", \"inert\", \"allowPinchZoom\", \"as\", \"gapMode\"]);\n var SideCar = sideCar;\n var containerRef = useMergeRefs([ref, parentRef]);\n var containerProps = __assign(__assign({}, rest), callbacks);\n return (React.createElement(React.Fragment, null,\n enabled && (React.createElement(SideCar, { sideCar: effectCar, removeScrollBar: removeScrollBar, shards: shards, noRelative: noRelative, noIsolation: noIsolation, inert: inert, setCallbacks: setCallbacks, allowPinchZoom: !!allowPinchZoom, lockRef: ref, gapMode: gapMode })),\n forwardProps ? (React.cloneElement(React.Children.only(children), __assign(__assign({}, containerProps), { ref: containerRef }))) : (React.createElement(Container, __assign({}, containerProps, { className: className, ref: containerRef }), children))));\n});\nRemoveScroll.defaultProps = {\n enabled: true,\n removeScrollBar: true,\n inert: false,\n};\nRemoveScroll.classNames = {\n fullWidth: fullWidthClassName,\n zeroRight: zeroRightClassName,\n};\nexport { RemoveScroll };\n"],"x_google_ignoreList":[0],"mappings":";;;;;;AAKA,IAAI,IAAU,WAAY,IAMtB,IAAeA,EAAM,WAAW,SAAU,GAAO,GAAW;CAC5D,IAAI,IAAMA,EAAM,OAAO,KAAK,EACxB,IAAKA,EAAM,SAAS;EACpB,iBAAiB;EACjB,gBAAgB;EAChB,oBAAoB;EACvB,CAAC,EAAE,IAAY,EAAG,IAAI,IAAe,EAAG,IACrC,IAAe,EAAM,cAAc,IAAW,EAAM,UAAU,IAAY,EAAM,WAAW,IAAkB,EAAM,iBAAiB,IAAU,EAAM,SAAS,IAAS,EAAM,QAAQ,IAAU,EAAM,SAAS,IAAa,EAAM,YAAY,IAAc,EAAM,aAAa,IAAQ,EAAM,OAAO,IAAiB,EAAM,gBAAgB,IAAK,EAAM,IAAI,IAAY,MAAO,KAAK,IAAI,QAAQ,GAAI,IAAU,EAAM,SAAS,IAAO,EAAO,GAAO;EAAC;EAAgB;EAAY;EAAa;EAAmB;EAAW;EAAU;EAAW;EAAc;EAAe;EAAS;EAAkB;EAAM;EAAU,CAAC,EACplB,IAAU,GACV,IAAe,EAAa,CAAC,GAAK,EAAU,CAAC,EAC7C,IAAiB,EAAS,EAAS,EAAE,EAAE,EAAK,EAAE,EAAU;AAC5D,QAAQA,EAAM,cAAcA,EAAM,UAAU,MACxC,KAAYA,EAAM,cAAc,GAAS;EAAE,SAAS;EAA4B;EAAyB;EAAoB;EAAyB;EAAoB;EAAqB;EAAc,gBAAgB,CAAC,CAAC;EAAgB,SAAS;EAAc;EAAS,CAAC,EAChR,IAAgBA,EAAM,aAAaA,EAAM,SAAS,KAAK,EAAS,EAAE,EAAS,EAAS,EAAE,EAAE,EAAe,EAAE,EAAE,KAAK,GAAc,CAAC,CAAC,GAAKA,EAAM,cAAc,GAAW,EAAS,EAAE,EAAE,GAAgB;EAAa;EAAW,KAAK;EAAc,CAAC,EAAE,EAAS,CAAE;EAChQ;AACF,EAAa,eAAe;CACxB,SAAS;CACT,iBAAiB;CACjB,OAAO;CACV,EACD,EAAa,aAAa;CACtB,WAAW;CACX,WAAW;CACd"}
|
package/dist/index230.js
CHANGED
|
@@ -1,17 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var n = e();
|
|
6
|
-
return function(e, r) {
|
|
7
|
-
t.useEffect(function() {
|
|
8
|
-
return n.add(e), function() {
|
|
9
|
-
n.remove();
|
|
10
|
-
};
|
|
11
|
-
}, [e && r]);
|
|
12
|
-
};
|
|
1
|
+
//#region ../../node_modules/get-nonce/dist/es2015/index.js
|
|
2
|
+
var e, t = function() {
|
|
3
|
+
if (e) return e;
|
|
4
|
+
if (typeof __webpack_nonce__ < "u") return __webpack_nonce__;
|
|
13
5
|
};
|
|
14
6
|
//#endregion
|
|
15
|
-
export {
|
|
7
|
+
export { t as getNonce };
|
|
16
8
|
|
|
17
9
|
//# sourceMappingURL=index230.js.map
|
package/dist/index230.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index230.js","names":[],"sources":["../../../node_modules/
|
|
1
|
+
{"version":3,"file":"index230.js","names":[],"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"],"x_google_ignoreList":[0],"mappings":";AAAA,IAAI,GAIO,IAAW,WAAY;AAC9B,KAAI,EACA,QAAO;AAEX,KAAI,OAAO,oBAAsB,IAC7B,QAAO"}
|
package/dist/index231.js
CHANGED
|
@@ -1,13 +1,30 @@
|
|
|
1
|
-
import {
|
|
2
|
-
//#region ../../node_modules/react-style-singleton/dist/es2015/
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { getNonce as e } from "./index230.js";
|
|
2
|
+
//#region ../../node_modules/react-style-singleton/dist/es2015/singleton.js
|
|
3
|
+
function t() {
|
|
4
|
+
if (!document) return null;
|
|
5
|
+
var t = document.createElement("style");
|
|
6
|
+
t.type = "text/css";
|
|
7
|
+
var n = e();
|
|
8
|
+
return n && t.setAttribute("nonce", n), t;
|
|
9
|
+
}
|
|
10
|
+
function n(e, t) {
|
|
11
|
+
e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
|
|
12
|
+
}
|
|
13
|
+
function r(e) {
|
|
14
|
+
(document.head || document.getElementsByTagName("head")[0]).appendChild(e);
|
|
15
|
+
}
|
|
16
|
+
var i = function() {
|
|
17
|
+
var e = 0, i = null;
|
|
18
|
+
return {
|
|
19
|
+
add: function(a) {
|
|
20
|
+
e == 0 && (i = t()) && (n(i, a), r(i)), e++;
|
|
21
|
+
},
|
|
22
|
+
remove: function() {
|
|
23
|
+
e--, !e && i && (i.parentNode && i.parentNode.removeChild(i), i = null);
|
|
24
|
+
}
|
|
8
25
|
};
|
|
9
26
|
};
|
|
10
27
|
//#endregion
|
|
11
|
-
export {
|
|
28
|
+
export { i as stylesheetSingleton };
|
|
12
29
|
|
|
13
30
|
//# sourceMappingURL=index231.js.map
|
package/dist/index231.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index231.js","names":[],"sources":["../../../node_modules/react-style-singleton/dist/es2015/
|
|
1
|
+
{"version":3,"file":"index231.js","names":[],"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"],"x_google_ignoreList":[0],"mappings":";;AACA,SAAS,IAAe;AACpB,KAAI,CAAC,SACD,QAAO;CACX,IAAI,IAAM,SAAS,cAAc,QAAQ;AACzC,GAAI,OAAO;CACX,IAAI,IAAQ,GAAU;AAItB,QAHI,KACA,EAAI,aAAa,SAAS,EAAM,EAE7B;;AAEX,SAAS,EAAa,GAAK,GAAK;AAE5B,CAAI,EAAI,aAEJ,EAAI,WAAW,UAAU,IAGzB,EAAI,YAAY,SAAS,eAAe,EAAI,CAAC;;AAGrD,SAAS,EAAe,GAAK;AAEzB,EADW,SAAS,QAAQ,SAAS,qBAAqB,OAAO,CAAC,IAC7D,YAAY,EAAI;;AAEzB,IAAW,IAAsB,WAAY;CACzC,IAAI,IAAU,GACV,IAAa;AACjB,QAAO;EACH,KAAK,SAAU,GAAO;AAOlB,GANI,KAAW,MACN,IAAa,GAAc,MAC5B,EAAa,GAAY,EAAM,EAC/B,EAAe,EAAW,GAGlC;;EAEJ,QAAQ,WAAY;AAEhB,GADA,KACI,CAAC,KAAW,MACZ,EAAW,cAAc,EAAW,WAAW,YAAY,EAAW,EACtE,IAAa;;EAGxB"}
|
package/dist/index232.js
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import "
|
|
3
|
-
|
|
1
|
+
import { stylesheetSingleton as e } from "./index231.js";
|
|
2
|
+
import * as t from "react";
|
|
3
|
+
//#region ../../node_modules/react-style-singleton/dist/es2015/hook.js
|
|
4
|
+
var n = function() {
|
|
5
|
+
var n = e();
|
|
6
|
+
return function(e, r) {
|
|
7
|
+
t.useEffect(function() {
|
|
8
|
+
return n.add(e), function() {
|
|
9
|
+
n.remove();
|
|
10
|
+
};
|
|
11
|
+
}, [e && r]);
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
//#endregion
|
|
15
|
+
export { n as styleHookSingleton };
|
|
16
|
+
|
|
17
|
+
//# sourceMappingURL=index232.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index232.js","names":[],"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"],"x_google_ignoreList":[0],"mappings":";;;AAWA,IAAW,IAAqB,WAAY;CACxC,IAAI,IAAQ,GAAqB;AACjC,QAAO,SAAU,GAAQ,GAAW;AAChC,IAAM,UAAU,WAAY;AAExB,UADA,EAAM,IAAI,EAAO,EACV,WAAY;AACf,MAAM,QAAQ;;KAEnB,CAAC,KAAU,EAAU,CAAC"}
|
package/dist/index233.js
CHANGED
|
@@ -1,29 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
return parseInt(e || "", 10) || 0;
|
|
9
|
-
}, n = function(e) {
|
|
10
|
-
var n = window.getComputedStyle(document.body), r = n[e === "padding" ? "paddingLeft" : "marginLeft"], i = n[e === "padding" ? "paddingTop" : "marginTop"], a = n[e === "padding" ? "paddingRight" : "marginRight"];
|
|
11
|
-
return [
|
|
12
|
-
t(r),
|
|
13
|
-
t(i),
|
|
14
|
-
t(a)
|
|
15
|
-
];
|
|
16
|
-
}, r = function(t) {
|
|
17
|
-
if (t === void 0 && (t = "margin"), typeof window > "u") return e;
|
|
18
|
-
var r = n(t), i = document.documentElement.clientWidth, a = window.innerWidth;
|
|
19
|
-
return {
|
|
20
|
-
left: r[0],
|
|
21
|
-
top: r[1],
|
|
22
|
-
right: r[2],
|
|
23
|
-
gap: Math.max(0, a - i + r[2] - r[0])
|
|
1
|
+
import { styleHookSingleton as e } from "./index232.js";
|
|
2
|
+
//#region ../../node_modules/react-style-singleton/dist/es2015/component.js
|
|
3
|
+
var t = function() {
|
|
4
|
+
var t = e();
|
|
5
|
+
return function(e) {
|
|
6
|
+
var n = e.styles, r = e.dynamic;
|
|
7
|
+
return t(n, r), null;
|
|
24
8
|
};
|
|
25
9
|
};
|
|
26
10
|
//#endregion
|
|
27
|
-
export {
|
|
11
|
+
export { t as styleSingleton };
|
|
28
12
|
|
|
29
13
|
//# sourceMappingURL=index233.js.map
|
package/dist/index233.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index233.js","names":[],"sources":["../../../node_modules/react-
|
|
1
|
+
{"version":3,"file":"index233.js","names":[],"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"],"x_google_ignoreList":[0],"mappings":";;AAOA,IAAW,IAAiB,WAAY;CACpC,IAAI,IAAW,GAAoB;AAMnC,QALY,SAAU,GAAI;EACtB,IAAI,IAAS,EAAG,QAAQ,IAAU,EAAG;AAErC,SADA,EAAS,GAAQ,EAAQ,EAClB"}
|
package/dist/index234.js
CHANGED
|
@@ -1,72 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { styleSingleton as i } from "./index231.js";
|
|
1
|
+
import "./index231.js";
|
|
3
2
|
import "./index232.js";
|
|
4
|
-
import
|
|
5
|
-
import * as o from "react";
|
|
6
|
-
//#region ../../node_modules/react-remove-scroll-bar/dist/es2015/component.js
|
|
7
|
-
var s = i(), c = "data-scroll-locked", l = function(i, a, o, s) {
|
|
8
|
-
var l = i.left, u = i.top, d = i.right, f = i.gap;
|
|
9
|
-
return o === void 0 && (o = "margin"), `
|
|
10
|
-
.${t} {
|
|
11
|
-
overflow: hidden ${s};
|
|
12
|
-
padding-right: ${f}px ${s};
|
|
13
|
-
}
|
|
14
|
-
body[${c}] {
|
|
15
|
-
overflow: hidden ${s};
|
|
16
|
-
overscroll-behavior: contain;
|
|
17
|
-
${[
|
|
18
|
-
a && `position: relative ${s};`,
|
|
19
|
-
o === "margin" && `
|
|
20
|
-
padding-left: ${l}px;
|
|
21
|
-
padding-top: ${u}px;
|
|
22
|
-
padding-right: ${d}px;
|
|
23
|
-
margin-left:0;
|
|
24
|
-
margin-top:0;
|
|
25
|
-
margin-right: ${f}px ${s};
|
|
26
|
-
`,
|
|
27
|
-
o === "padding" && `padding-right: ${f}px ${s};`
|
|
28
|
-
].filter(Boolean).join("")}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.${r} {
|
|
32
|
-
right: ${f}px ${s};
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.${e} {
|
|
36
|
-
margin-right: ${f}px ${s};
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.${r} .${r} {
|
|
40
|
-
right: 0 ${s};
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.${e} .${e} {
|
|
44
|
-
margin-right: 0 ${s};
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
body[${c}] {
|
|
48
|
-
${n}: ${f}px;
|
|
49
|
-
}
|
|
50
|
-
`;
|
|
51
|
-
}, u = function() {
|
|
52
|
-
var e = parseInt(document.body.getAttribute("data-scroll-locked") || "0", 10);
|
|
53
|
-
return isFinite(e) ? e : 0;
|
|
54
|
-
}, d = function() {
|
|
55
|
-
o.useEffect(function() {
|
|
56
|
-
return document.body.setAttribute(c, (u() + 1).toString()), function() {
|
|
57
|
-
var e = u() - 1;
|
|
58
|
-
e <= 0 ? document.body.removeAttribute(c) : document.body.setAttribute(c, e.toString());
|
|
59
|
-
};
|
|
60
|
-
}, []);
|
|
61
|
-
}, f = function(e) {
|
|
62
|
-
var t = e.noRelative, n = e.noImportant, r = e.gapMode, i = r === void 0 ? "margin" : r;
|
|
63
|
-
d();
|
|
64
|
-
var c = o.useMemo(function() {
|
|
65
|
-
return a(i);
|
|
66
|
-
}, [i]);
|
|
67
|
-
return o.createElement(s, { styles: l(c, !t, i, n ? "" : "!important") });
|
|
68
|
-
};
|
|
69
|
-
//#endregion
|
|
70
|
-
export { f as RemoveScrollBar };
|
|
71
|
-
|
|
72
|
-
//# sourceMappingURL=index234.js.map
|
|
3
|
+
import "./index233.js";
|
package/dist/index235.js
CHANGED
|
@@ -1,3 +1,29 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
//#region ../../node_modules/react-remove-scroll-bar/dist/es2015/utils.js
|
|
2
|
+
var e = {
|
|
3
|
+
left: 0,
|
|
4
|
+
top: 0,
|
|
5
|
+
right: 0,
|
|
6
|
+
gap: 0
|
|
7
|
+
}, t = function(e) {
|
|
8
|
+
return parseInt(e || "", 10) || 0;
|
|
9
|
+
}, n = function(e) {
|
|
10
|
+
var n = window.getComputedStyle(document.body), r = n[e === "padding" ? "paddingLeft" : "marginLeft"], i = n[e === "padding" ? "paddingTop" : "marginTop"], a = n[e === "padding" ? "paddingRight" : "marginRight"];
|
|
11
|
+
return [
|
|
12
|
+
t(r),
|
|
13
|
+
t(i),
|
|
14
|
+
t(a)
|
|
15
|
+
];
|
|
16
|
+
}, r = function(t) {
|
|
17
|
+
if (t === void 0 && (t = "margin"), typeof window > "u") return e;
|
|
18
|
+
var r = n(t), i = document.documentElement.clientWidth, a = window.innerWidth;
|
|
19
|
+
return {
|
|
20
|
+
left: r[0],
|
|
21
|
+
top: r[1],
|
|
22
|
+
right: r[2],
|
|
23
|
+
gap: Math.max(0, a - i + r[2] - r[0])
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
//#endregion
|
|
27
|
+
export { r as getGapWidth };
|
|
28
|
+
|
|
29
|
+
//# sourceMappingURL=index235.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index235.js","names":[],"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"],"x_google_ignoreList":[0],"mappings":";AAAA,IAAW,IAAU;CACjB,MAAM;CACN,KAAK;CACL,OAAO;CACP,KAAK;CACR,EACG,IAAQ,SAAU,GAAG;AAAE,QAAO,SAAS,KAAK,IAAI,GAAG,IAAI;GACvD,IAAY,SAAU,GAAS;CAC/B,IAAI,IAAK,OAAO,iBAAiB,SAAS,KAAK,EAC3C,IAAO,EAAG,MAAY,YAAY,gBAAgB,eAClD,IAAM,EAAG,MAAY,YAAY,eAAe,cAChD,IAAQ,EAAG,MAAY,YAAY,iBAAiB;AACxD,QAAO;EAAC,EAAM,EAAK;EAAE,EAAM,EAAI;EAAE,EAAM,EAAM;EAAC;GAEvC,IAAc,SAAU,GAAS;AAExC,KADI,MAAY,KAAK,MAAK,IAAU,WAChC,OAAO,SAAW,IAClB,QAAO;CAEX,IAAI,IAAU,EAAU,EAAQ,EAC5B,IAAgB,SAAS,gBAAgB,aACzC,IAAc,OAAO;AACzB,QAAO;EACH,MAAM,EAAQ;EACd,KAAK,EAAQ;EACb,OAAO,EAAQ;EACf,KAAK,KAAK,IAAI,GAAG,IAAc,IAAgB,EAAQ,KAAK,EAAQ,GAAG;EAC1E"}
|
package/dist/index236.js
CHANGED
|
@@ -1,15 +1,72 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
|
|
1
|
+
import { fullWidthClassName as e, noScrollbarsClassName as t, removedBarSizeVariable as n, zeroRightClassName as r } from "./index222.js";
|
|
2
|
+
import { styleSingleton as i } from "./index233.js";
|
|
3
|
+
import "./index234.js";
|
|
4
|
+
import { getGapWidth as a } from "./index235.js";
|
|
5
|
+
import * as o from "react";
|
|
6
|
+
//#region ../../node_modules/react-remove-scroll-bar/dist/es2015/component.js
|
|
7
|
+
var s = i(), c = "data-scroll-locked", l = function(i, a, o, s) {
|
|
8
|
+
var l = i.left, u = i.top, d = i.right, f = i.gap;
|
|
9
|
+
return o === void 0 && (o = "margin"), `
|
|
10
|
+
.${t} {
|
|
11
|
+
overflow: hidden ${s};
|
|
12
|
+
padding-right: ${f}px ${s};
|
|
13
|
+
}
|
|
14
|
+
body[${c}] {
|
|
15
|
+
overflow: hidden ${s};
|
|
16
|
+
overscroll-behavior: contain;
|
|
17
|
+
${[
|
|
18
|
+
a && `position: relative ${s};`,
|
|
19
|
+
o === "margin" && `
|
|
20
|
+
padding-left: ${l}px;
|
|
21
|
+
padding-top: ${u}px;
|
|
22
|
+
padding-right: ${d}px;
|
|
23
|
+
margin-left:0;
|
|
24
|
+
margin-top:0;
|
|
25
|
+
margin-right: ${f}px ${s};
|
|
26
|
+
`,
|
|
27
|
+
o === "padding" && `padding-right: ${f}px ${s};`
|
|
28
|
+
].filter(Boolean).join("")}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.${r} {
|
|
32
|
+
right: ${f}px ${s};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.${e} {
|
|
36
|
+
margin-right: ${f}px ${s};
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.${r} .${r} {
|
|
40
|
+
right: 0 ${s};
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.${e} .${e} {
|
|
44
|
+
margin-right: 0 ${s};
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
body[${c}] {
|
|
48
|
+
${n}: ${f}px;
|
|
49
|
+
}
|
|
50
|
+
`;
|
|
51
|
+
}, u = function() {
|
|
52
|
+
var e = parseInt(document.body.getAttribute("data-scroll-locked") || "0", 10);
|
|
53
|
+
return isFinite(e) ? e : 0;
|
|
54
|
+
}, d = function() {
|
|
55
|
+
o.useEffect(function() {
|
|
56
|
+
return document.body.setAttribute(c, (u() + 1).toString()), function() {
|
|
57
|
+
var e = u() - 1;
|
|
58
|
+
e <= 0 ? document.body.removeAttribute(c) : document.body.setAttribute(c, e.toString());
|
|
59
|
+
};
|
|
60
|
+
}, []);
|
|
61
|
+
}, f = function(e) {
|
|
62
|
+
var t = e.noRelative, n = e.noImportant, r = e.gapMode, i = r === void 0 ? "margin" : r;
|
|
63
|
+
d();
|
|
64
|
+
var c = o.useMemo(function() {
|
|
65
|
+
return a(i);
|
|
66
|
+
}, [i]);
|
|
67
|
+
return o.createElement(s, { styles: l(c, !t, i, n ? "" : "!important") });
|
|
68
|
+
};
|
|
12
69
|
//#endregion
|
|
13
|
-
export {
|
|
70
|
+
export { f as RemoveScrollBar };
|
|
14
71
|
|
|
15
72
|
//# sourceMappingURL=index236.js.map
|
package/dist/index236.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index236.js","names":[],"sources":["../../../node_modules/react-remove-scroll/dist/es2015/
|
|
1
|
+
{"version":3,"file":"index236.js","names":["React"],"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"],"x_google_ignoreList":[0],"mappings":";;;;;;AAIA,IAAI,IAAQ,GAAgB,EACjB,IAAgB,sBAIvB,IAAY,SAAU,GAAI,GAAe,GAAS,GAAW;CAC7D,IAAI,IAAO,EAAG,MAAM,IAAM,EAAG,KAAK,IAAQ,EAAG,OAAO,IAAM,EAAG;AAE7D,QADI,MAAY,KAAK,MAAK,IAAU,WAC7B;KAAe;sBAA0D;oBAA2C,OAAmB;;SAAqC;uBAAoD;;MAAgE;EACnS,KAAiB,sBAA6B;EAC9C,MAAY,YACR;oBAA8B;mBAAuC;qBAAwC;;;oBAAgF,OAAmB;;EACpN,MAAY,aAAa,kBAAyB,OAAmB;EACxE,CACI,OAAO,QAAQ,CACf,KAAK,GAAG;;;KAA2B;aAA8C,OAAmB;;;KAAqC;oBAAqD,OAAmB;;;KAAqC,MAAiC;eAAgD;;;KAAqC,MAAiC;sBAAuD;;;SAAyC;MAAmC,MAAqC;;;GAE1jB,IAAuB,WAAY;CACnC,IAAI,IAAU,SAAS,SAAS,KAAK,aAAA,qBAA2B,IAAI,KAAK,GAAG;AAC5E,QAAO,SAAS,EAAQ,GAAG,IAAU;GAE9B,IAAmB,WAAY;AACtC,GAAM,UAAU,WAAY;AAExB,SADA,SAAS,KAAK,aAAa,IAAgB,GAAsB,GAAG,GAAG,UAAU,CAAC,EAC3E,WAAY;GACf,IAAI,IAAa,GAAsB,GAAG;AAC1C,GAAI,KAAc,IACd,SAAS,KAAK,gBAAgB,EAAc,GAG5C,SAAS,KAAK,aAAa,GAAe,EAAW,UAAU,CAAC;;IAGzE,EAAE,CAAC;GAKC,IAAkB,SAAU,GAAI;CACvC,IAAI,IAAa,EAAG,YAAY,IAAc,EAAG,aAAa,IAAK,EAAG,SAAS,IAAU,MAAO,KAAK,IAAI,WAAW;AACpH,IAAkB;CAMlB,IAAI,IAAMA,EAAM,QAAQ,WAAY;AAAE,SAAO,EAAY,EAAQ;IAAK,CAAC,EAAQ,CAAC;AAChF,QAAOA,EAAM,cAAc,GAAO,EAAE,QAAQ,EAAU,GAAK,CAAC,GAAY,GAAU,IAA6B,KAAf,aAAkB,EAAE,CAAC"}
|