@anoki/fse-ui 1.0.746 → 1.0.748
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/components/ui/BaseModal/BaseModal.css +1 -1
- package/dist/index.cjs194.js +1 -1
- package/dist/index.cjs194.js.map +1 -1
- package/dist/index.cjs195.js +1 -1
- package/dist/index.cjs195.js.map +1 -1
- package/dist/index.cjs199.js +1 -1
- package/dist/index.cjs199.js.map +1 -1
- package/dist/index.cjs208.js +1 -1
- package/dist/index.cjs208.js.map +1 -1
- package/dist/index.cjs212.js +1 -1
- package/dist/index.cjs212.js.map +1 -1
- package/dist/index.cjs259.js +1 -1
- package/dist/index.cjs266.js +1 -1
- package/dist/index.cjs271.js +1 -1
- package/dist/index.cjs278.js +1 -1
- package/dist/index.cjs326.js +1 -1
- package/dist/index.cjs365.js +1 -1
- package/dist/index.cjs38.js +1 -1
- package/dist/index.cjs38.js.map +1 -1
- package/dist/index.cjs382.js +1 -1
- package/dist/index.cjs383.js +3 -12
- package/dist/index.cjs383.js.map +1 -1
- package/dist/index.cjs387.js +1 -1
- package/dist/index.cjs388.js +1 -1
- package/dist/index.cjs389.js +1 -1
- package/dist/index.cjs390.js +1 -1
- package/dist/index.cjs396.js +1 -1
- package/dist/index.cjs397.js +1 -1
- package/dist/index.cjs399.js +2 -0
- package/dist/index.cjs399.js.map +1 -0
- package/dist/index.cjs400.js +2 -0
- package/dist/index.cjs400.js.map +1 -0
- package/dist/{index.cjs406.js → index.cjs401.js} +2 -2
- package/dist/{index.cjs406.js.map → index.cjs401.js.map} +1 -1
- package/dist/{index.cjs407.js → index.cjs402.js} +1 -1
- package/dist/{index.cjs407.js.map → index.cjs402.js.map} +1 -1
- package/dist/{index.cjs408.js → index.cjs403.js} +1 -1
- package/dist/{index.cjs408.js.map → index.cjs403.js.map} +1 -1
- package/dist/index.cjs404.js +1 -1
- package/dist/index.cjs404.js.map +1 -1
- package/dist/index.cjs405.js +1 -1
- package/dist/index.cjs405.js.map +1 -1
- package/dist/index.cjs409.js +1 -1
- package/dist/index.cjs409.js.map +1 -1
- package/dist/index.cjs410.js +1 -1
- package/dist/index.cjs410.js.map +1 -1
- package/dist/index.cjs423.js +1 -1
- package/dist/index.cjs423.js.map +1 -1
- package/dist/index.cjs424.js +1 -1
- package/dist/index.cjs424.js.map +1 -1
- package/dist/index.cjs425.js +1 -1
- package/dist/index.cjs425.js.map +1 -1
- package/dist/index.cjs426.js +1 -1
- package/dist/index.cjs426.js.map +1 -1
- package/dist/index.cjs427.js +1 -1
- package/dist/index.cjs427.js.map +1 -1
- package/dist/index.cjs428.js +2 -0
- package/dist/index.cjs428.js.map +1 -0
- package/dist/index.cjs429.js +1 -1
- package/dist/index.cjs438.js +1 -1
- package/dist/index.cjs440.js +1 -1
- package/dist/index.cjs445.js +1 -38
- package/dist/index.cjs445.js.map +1 -1
- package/dist/index.cjs446.js +38 -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 +1 -1
- package/dist/index.cjs448.js.map +1 -1
- package/dist/index.cjs449.js +1 -1
- package/dist/index.cjs449.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.cjs468.js +1 -1
- package/dist/index.cjs91.js +1 -1
- package/dist/index.cjs91.js.map +1 -1
- package/dist/index.es194.js +76 -71
- package/dist/index.es194.js.map +1 -1
- package/dist/index.es195.js +11 -1
- package/dist/index.es195.js.map +1 -1
- package/dist/index.es199.js +63 -58
- package/dist/index.es199.js.map +1 -1
- package/dist/index.es208.js +29 -26
- package/dist/index.es208.js.map +1 -1
- package/dist/index.es212.js +18 -15
- package/dist/index.es212.js.map +1 -1
- package/dist/index.es259.js +7 -7
- package/dist/index.es266.js +1 -1
- package/dist/index.es271.js +1 -1
- package/dist/index.es278.js +1 -1
- package/dist/index.es326.js +1 -1
- package/dist/index.es365.js +1 -1
- package/dist/index.es38.js +5 -5
- package/dist/index.es38.js.map +1 -1
- package/dist/index.es382.js +1 -1
- package/dist/index.es383.js +146 -307
- package/dist/index.es383.js.map +1 -1
- package/dist/index.es387.js +1 -1
- package/dist/index.es388.js +1 -1
- package/dist/index.es389.js +12 -12
- package/dist/index.es390.js +1 -1
- package/dist/index.es396.js +1 -1
- package/dist/index.es397.js +1 -1
- package/dist/index.es399.js +128 -0
- package/dist/index.es399.js.map +1 -0
- package/dist/index.es400.js +138 -0
- package/dist/index.es400.js.map +1 -0
- package/dist/{index.es406.js → index.es401.js} +2 -2
- package/dist/{index.es406.js.map → index.es401.js.map} +1 -1
- package/dist/{index.es407.js → index.es402.js} +1 -1
- package/dist/{index.es407.js.map → index.es402.js.map} +1 -1
- package/dist/{index.es408.js → index.es403.js} +1 -1
- package/dist/{index.es408.js.map → index.es403.js.map} +1 -1
- package/dist/index.es404.js +47 -122
- package/dist/index.es404.js.map +1 -1
- package/dist/index.es405.js +47 -129
- package/dist/index.es405.js.map +1 -1
- package/dist/index.es409.js +2 -50
- package/dist/index.es409.js.map +1 -1
- package/dist/index.es410.js +2 -53
- package/dist/index.es410.js.map +1 -1
- package/dist/index.es423.js +10 -45
- package/dist/index.es423.js.map +1 -1
- package/dist/index.es424.js +45 -7
- package/dist/index.es424.js.map +1 -1
- package/dist/index.es425.js +7 -217
- package/dist/index.es425.js.map +1 -1
- package/dist/index.es426.js +203 -163
- package/dist/index.es426.js.map +1 -1
- package/dist/index.es427.js +177 -3
- package/dist/index.es427.js.map +1 -1
- package/dist/index.es428.js +7 -0
- package/dist/index.es428.js.map +1 -0
- package/dist/index.es429.js +1 -1
- package/dist/index.es438.js +1 -1
- package/dist/index.es440.js +4 -4
- package/dist/index.es445.js +65 -69
- package/dist/index.es445.js.map +1 -1
- package/dist/index.es446.js +68 -8
- package/dist/index.es446.js.map +1 -1
- package/dist/index.es447.js +9 -14
- package/dist/index.es447.js.map +1 -1
- package/dist/index.es448.js +14 -62
- package/dist/index.es448.js.map +1 -1
- package/dist/index.es449.js +61 -64
- package/dist/index.es449.js.map +1 -1
- package/dist/index.es452.js +21 -11
- package/dist/index.es452.js.map +1 -1
- package/dist/index.es453.js +11 -26
- package/dist/index.es453.js.map +1 -1
- package/dist/index.es454.js +27 -4
- package/dist/index.es454.js.map +1 -1
- package/dist/index.es455.js +4 -22
- package/dist/index.es455.js.map +1 -1
- package/dist/index.es468.js +3 -3
- package/dist/index.es91.js +2 -2
- package/dist/index.es91.js.map +1 -1
- package/package.json +1 -1
- package/dist/index.cjs414.js +0 -2
- package/dist/index.cjs414.js.map +0 -1
- package/dist/index.cjs415.js +0 -2
- package/dist/index.cjs415.js.map +0 -1
- package/dist/index.cjs422.js +0 -2
- package/dist/index.cjs422.js.map +0 -1
- package/dist/index.es414.js +0 -5
- package/dist/index.es414.js.map +0 -1
- package/dist/index.es415.js +0 -5
- package/dist/index.es415.js.map +0 -1
- package/dist/index.es422.js +0 -14
- package/dist/index.es422.js.map +0 -1
- /package/dist/components/ui/{ConsentModal/ConsentModalFooter/ConsentModalFooter.css → DoctorModal/DoctorModalFooter/DoctorModalFooter.css} +0 -0
package/dist/index.es449.js
CHANGED
@@ -1,68 +1,65 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
}
|
26
|
-
e = {
|
27
|
-
push: function(i) {
|
28
|
-
return u(i);
|
29
|
-
},
|
30
|
-
filter: function() {
|
31
|
-
return e;
|
32
|
-
}
|
33
|
-
};
|
34
|
-
},
|
35
|
-
assignMedium: function(u) {
|
36
|
-
o = !0;
|
37
|
-
var n = [];
|
38
|
-
if (e.length) {
|
39
|
-
var i = e;
|
40
|
-
e = [], i.forEach(u), n = e;
|
41
|
-
}
|
42
|
-
var s = function() {
|
43
|
-
var f = n;
|
44
|
-
n = [], f.forEach(u);
|
45
|
-
}, a = function() {
|
46
|
-
return Promise.resolve().then(s);
|
47
|
-
};
|
48
|
-
a(), e = {
|
49
|
-
push: function(f) {
|
50
|
-
n.push(f), a();
|
51
|
-
},
|
52
|
-
filter: function(f) {
|
53
|
-
return n = n.filter(f), e;
|
54
|
-
}
|
55
|
-
};
|
1
|
+
var p = function(e) {
|
2
|
+
return e.tagName === "TEXTAREA";
|
3
|
+
}, w = function(e, r) {
|
4
|
+
if (!(e instanceof Element))
|
5
|
+
return !1;
|
6
|
+
var o = window.getComputedStyle(e);
|
7
|
+
return (
|
8
|
+
// not-not-scrollable
|
9
|
+
o[r] !== "hidden" && // contains scroll inside self
|
10
|
+
!(o.overflowY === o.overflowX && !p(e) && o[r] === "visible")
|
11
|
+
);
|
12
|
+
}, y = function(e) {
|
13
|
+
return w(e, "overflowY");
|
14
|
+
}, H = function(e) {
|
15
|
+
return w(e, "overflowX");
|
16
|
+
}, R = function(e, r) {
|
17
|
+
var o = r.ownerDocument, t = r;
|
18
|
+
do {
|
19
|
+
typeof ShadowRoot < "u" && t instanceof ShadowRoot && (t = t.host);
|
20
|
+
var v = g(e, t);
|
21
|
+
if (v) {
|
22
|
+
var n = b(e, t), a = n[1], l = n[2];
|
23
|
+
if (a > l)
|
24
|
+
return !0;
|
56
25
|
}
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
function
|
61
|
-
r
|
62
|
-
|
63
|
-
|
64
|
-
|
26
|
+
t = t.parentNode;
|
27
|
+
} while (t && t !== o.body);
|
28
|
+
return !1;
|
29
|
+
}, B = function(e) {
|
30
|
+
var r = e.scrollTop, o = e.scrollHeight, t = e.clientHeight;
|
31
|
+
return [
|
32
|
+
r,
|
33
|
+
o,
|
34
|
+
t
|
35
|
+
];
|
36
|
+
}, V = function(e) {
|
37
|
+
var r = e.scrollLeft, o = e.scrollWidth, t = e.clientWidth;
|
38
|
+
return [
|
39
|
+
r,
|
40
|
+
o,
|
41
|
+
t
|
42
|
+
];
|
43
|
+
}, g = function(e, r) {
|
44
|
+
return e === "v" ? y(r) : H(r);
|
45
|
+
}, b = function(e, r) {
|
46
|
+
return e === "v" ? B(r) : V(r);
|
47
|
+
}, D = function(e, r) {
|
48
|
+
return e === "h" && r === "rtl" ? -1 : 1;
|
49
|
+
}, W = function(e, r, o, t, v) {
|
50
|
+
var n = D(e, window.getComputedStyle(r).direction), a = n * t, l = o.target, f = r.contains(l), i = !1, s = a > 0, d = 0, h = 0;
|
51
|
+
do {
|
52
|
+
var c = b(e, l), u = c[0], m = c[1], C = c[2], S = m - C - n * u;
|
53
|
+
(u || S) && g(e, l) && (d += S, h += u), l instanceof ShadowRoot ? l = l.host : l = l.parentNode;
|
54
|
+
} while (
|
55
|
+
// portaled content
|
56
|
+
!f && l !== document.body || // self content
|
57
|
+
f && (r.contains(l) || r === l)
|
58
|
+
);
|
59
|
+
return (s && Math.abs(d) < 1 || !s && Math.abs(h) < 1) && (i = !0), i;
|
60
|
+
};
|
65
61
|
export {
|
66
|
-
|
62
|
+
W as handleScroll,
|
63
|
+
R as locationCouldBeScrolled
|
67
64
|
};
|
68
65
|
//# sourceMappingURL=index.es449.js.map
|
package/dist/index.es449.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.es449.js","sources":["../node_modules/
|
1
|
+
{"version":3,"file":"index.es449.js","sources":["../node_modules/react-remove-scroll/dist/es2015/handleScroll.js"],"sourcesContent":["var alwaysContainsScroll = function (node) {\n // textarea will always _contain_ scroll inside self. It only can be hidden\n return node.tagName === 'TEXTAREA';\n};\nvar elementCanBeScrolled = function (node, overflow) {\n if (!(node instanceof Element)) {\n return false;\n }\n var styles = window.getComputedStyle(node);\n return (\n // not-not-scrollable\n styles[overflow] !== 'hidden' &&\n // contains scroll inside self\n !(styles.overflowY === styles.overflowX && !alwaysContainsScroll(node) && styles[overflow] === 'visible'));\n};\nvar elementCouldBeVScrolled = function (node) { return elementCanBeScrolled(node, 'overflowY'); };\nvar elementCouldBeHScrolled = function (node) { return elementCanBeScrolled(node, 'overflowX'); };\nexport var locationCouldBeScrolled = function (axis, node) {\n var ownerDocument = node.ownerDocument;\n var current = node;\n do {\n // Skip over shadow root\n if (typeof ShadowRoot !== 'undefined' && current instanceof ShadowRoot) {\n current = current.host;\n }\n var isScrollable = elementCouldBeScrolled(axis, current);\n if (isScrollable) {\n var _a = getScrollVariables(axis, current), scrollHeight = _a[1], clientHeight = _a[2];\n if (scrollHeight > clientHeight) {\n return true;\n }\n }\n current = current.parentNode;\n } while (current && current !== ownerDocument.body);\n return false;\n};\nvar getVScrollVariables = function (_a) {\n var scrollTop = _a.scrollTop, scrollHeight = _a.scrollHeight, clientHeight = _a.clientHeight;\n return [\n scrollTop,\n scrollHeight,\n clientHeight,\n ];\n};\nvar getHScrollVariables = function (_a) {\n var scrollLeft = _a.scrollLeft, scrollWidth = _a.scrollWidth, clientWidth = _a.clientWidth;\n return [\n scrollLeft,\n scrollWidth,\n clientWidth,\n ];\n};\nvar elementCouldBeScrolled = function (axis, node) {\n return axis === 'v' ? elementCouldBeVScrolled(node) : elementCouldBeHScrolled(node);\n};\nvar getScrollVariables = function (axis, node) {\n return axis === 'v' ? getVScrollVariables(node) : getHScrollVariables(node);\n};\nvar getDirectionFactor = function (axis, direction) {\n /**\n * If the element's direction is rtl (right-to-left), then scrollLeft is 0 when the scrollbar is at its rightmost position,\n * and then increasingly negative as you scroll towards the end of the content.\n * @see https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollLeft\n */\n return axis === 'h' && direction === 'rtl' ? -1 : 1;\n};\nexport var handleScroll = function (axis, endTarget, event, sourceDelta, noOverscroll) {\n var directionFactor = getDirectionFactor(axis, window.getComputedStyle(endTarget).direction);\n var delta = directionFactor * sourceDelta;\n // find scrollable target\n var target = event.target;\n var targetInLock = endTarget.contains(target);\n var shouldCancelScroll = false;\n var isDeltaPositive = delta > 0;\n var availableScroll = 0;\n var availableScrollTop = 0;\n do {\n var _a = getScrollVariables(axis, target), position = _a[0], scroll_1 = _a[1], capacity = _a[2];\n var elementScroll = scroll_1 - capacity - directionFactor * position;\n if (position || elementScroll) {\n if (elementCouldBeScrolled(axis, target)) {\n availableScroll += elementScroll;\n availableScrollTop += position;\n }\n }\n if (target instanceof ShadowRoot) {\n target = target.host;\n }\n else {\n target = target.parentNode;\n }\n } while (\n // portaled content\n (!targetInLock && target !== document.body) ||\n // self content\n (targetInLock && (endTarget.contains(target) || endTarget === target)));\n // handle epsilon around 0 (non standard zoom levels)\n if (isDeltaPositive &&\n ((noOverscroll && Math.abs(availableScroll) < 1) || (!noOverscroll && delta > availableScroll))) {\n shouldCancelScroll = true;\n }\n else if (!isDeltaPositive &&\n ((noOverscroll && Math.abs(availableScrollTop) < 1) || (!noOverscroll && -delta > availableScrollTop))) {\n shouldCancelScroll = true;\n }\n return shouldCancelScroll;\n};\n"],"names":["alwaysContainsScroll","node","elementCanBeScrolled","overflow","styles","elementCouldBeVScrolled","elementCouldBeHScrolled","locationCouldBeScrolled","axis","ownerDocument","current","isScrollable","elementCouldBeScrolled","_a","getScrollVariables","scrollHeight","clientHeight","getVScrollVariables","scrollTop","getHScrollVariables","scrollLeft","scrollWidth","clientWidth","getDirectionFactor","direction","handleScroll","endTarget","event","sourceDelta","noOverscroll","directionFactor","delta","target","targetInLock","shouldCancelScroll","isDeltaPositive","availableScroll","availableScrollTop","position","scroll_1","capacity","elementScroll"],"mappings":"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","x_google_ignoreList":[0]}
|
package/dist/index.es452.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.es452.js.map
|
package/dist/index.es452.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.es452.js","sources":["../node_modules/react-
|
1
|
+
{"version":3,"file":"index.es452.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;AAAI,GAC3DC,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,EACzE;AACL;","x_google_ignoreList":[0]}
|
package/dist/index.es453.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.es454.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.es453.js.map
|
package/dist/index.es453.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.es453.js","sources":["../node_modules/react-style-singleton/dist/es2015/
|
1
|
+
{"version":3,"file":"index.es453.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,EAAqB;AACjC,SAAO,SAAUC,GAAQC,GAAW;AAChC,IAAAC,EAAM,UAAU,WAAY;AACxB,aAAAJ,EAAM,IAAIE,CAAM,GACT,WAAY;AACf,QAAAF,EAAM,OAAQ;AAAA,MACjB;AAAA,IACb,GAAW,CAACE,KAAUC,CAAS,CAAC;AAAA,EAC3B;AACL;","x_google_ignoreList":[0]}
|
package/dist/index.es454.js
CHANGED
@@ -1,8 +1,31 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
import { getNonce as o } from "./index.es455.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.es454.js.map
|
package/dist/index.es454.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.es454.js","sources":["../node_modules/
|
1
|
+
{"version":3,"file":"index.es454.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,EAAU;AACtB,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,IACH;AAAA,IACD,QAAQ,WAAY;AAChB,MAAAA,KACI,CAACA,KAAWC,MACZA,EAAW,cAAcA,EAAW,WAAW,YAAYA,CAAU,GACrEA,IAAa;AAAA,IAEpB;AAAA,EACJ;AACL;","x_google_ignoreList":[0]}
|
package/dist/index.es455.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.es455.js.map
|
package/dist/index.es455.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.es455.js","sources":["../node_modules/
|
1
|
+
{"version":3,"file":"index.es455.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.es468.js
CHANGED
@@ -3,9 +3,9 @@ import { Primitive as L } from "./index.es388.js";
|
|
3
3
|
import { Presence as O } from "./index.es397.js";
|
4
4
|
import { createContextScope as le } from "./index.es386.js";
|
5
5
|
import { useComposedRefs as T } from "./index.es385.js";
|
6
|
-
import { useCallbackRef as x } from "./index.
|
7
|
-
import { useDirection as ce } from "./index.
|
8
|
-
import { useLayoutEffect as se } from "./index.
|
6
|
+
import { useCallbackRef as x } from "./index.es423.js";
|
7
|
+
import { useDirection as ce } from "./index.es425.js";
|
8
|
+
import { useLayoutEffect as se } from "./index.es428.js";
|
9
9
|
import { clamp as ie } from "./index.es483.js";
|
10
10
|
import { composeEventHandlers as C } from "./index.es384.js";
|
11
11
|
import { j as b } from "./index.es213.js";
|
package/dist/index.es91.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { j as e } from "./index.es213.js";
|
2
|
-
import { Root as
|
2
|
+
import { Root as r, Portal as l, Overlay as n, Content as c, Title as m, Description as x, Cancel as p } from "./index.es326.js";
|
3
3
|
import './components/ui/AlertDialogUI/AlertDialogUI.css';/* empty css */
|
4
4
|
import { Row as d } from "./index.es9.js";
|
5
5
|
import { Button as j } from "./index.es25.js";
|
@@ -9,7 +9,7 @@ const g = ({
|
|
9
9
|
confirmBtnLabel: i = "OK",
|
10
10
|
isOpen: s,
|
11
11
|
onClose: a
|
12
|
-
}) => /* @__PURE__ */ e.jsx(
|
12
|
+
}) => /* @__PURE__ */ e.jsx(r, { open: s, onOpenChange: a, children: /* @__PURE__ */ e.jsxs(l, { forceMount: !0, children: [
|
13
13
|
/* @__PURE__ */ e.jsx(n, { className: "ui-alertDialogOverlay" }),
|
14
14
|
/* @__PURE__ */ e.jsxs(c, { className: "ui-alertDialogContent fs-6 text-slate-28", children: [
|
15
15
|
/* @__PURE__ */ e.jsx(m, { className: "ui-alertDialogTitle fw-bold fs-custom text-slate-20", children: t }),
|
package/dist/index.es91.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.es91.js","sources":["../src/components/ui/AlertDialogUI/index.tsx"],"sourcesContent":["import * as AlertDialog from \"@radix-ui/react-alert-dialog\";\nimport \"./AlertDialogUI.scss\";\nimport { Button, Row } from \"@/components\";\n\ntype AlertDialogProps = {\n isOpen: boolean;\n onClose: () => void;\n title?: string;\n description?: string;\n confirmBtnLabel?: string;\n};\n\nexport const AlertDialogUI = ({\n title = \"Alert\",\n description = \"Funzione al momento non ancora disponibile\",\n confirmBtnLabel = \"OK\",\n isOpen,\n onClose,\n}: AlertDialogProps) => (\n <AlertDialog.Root open={isOpen} onOpenChange={onClose}>\n <AlertDialog.Portal>\n <AlertDialog.Overlay className=\"ui-alertDialogOverlay\" />\n <AlertDialog.Content className=\"ui-alertDialogContent fs-6 text-slate-28\">\n <AlertDialog.Title className=\"ui-alertDialogTitle fw-bold fs-custom text-slate-20\">\n {title}\n </AlertDialog.Title>\n <AlertDialog.Description className=\"ui-alertDialogDescription\">\n {description}\n </AlertDialog.Description>\n <Row justifyContent={\"flex-end\"}>\n <AlertDialog.Cancel asChild>\n <Button variant={\"primary\"} size={\"3\"}>\n {confirmBtnLabel}\n </Button>\n </AlertDialog.Cancel>\n </Row>\n </AlertDialog.Content>\n </AlertDialog.Portal>\n </AlertDialog.Root>\n);\n"],"names":["AlertDialogUI","title","description","confirmBtnLabel","isOpen","onClose","jsx","AlertDialog.Root","jsxs","AlertDialog.Portal","AlertDialog.Overlay","AlertDialog.Content","AlertDialog.Title","AlertDialog.Description","Row","AlertDialog.Cancel","Button"],"mappings":";;;;;AAYO,MAAMA,IAAgB,CAAC;AAAA,EAC5B,OAAAC,IAAQ;AAAA,EACR,aAAAC,IAAc;AAAA,EACd,iBAAAC,IAAkB;AAAA,EAClB,QAAAC;AAAA,EACA,SAAAC;AACF,
|
1
|
+
{"version":3,"file":"index.es91.js","sources":["../src/components/ui/AlertDialogUI/index.tsx"],"sourcesContent":["import * as AlertDialog from \"@radix-ui/react-alert-dialog\";\nimport \"./AlertDialogUI.scss\";\nimport { Button, Row } from \"@/components\";\n\ntype AlertDialogProps = {\n isOpen: boolean;\n onClose: () => void;\n title?: string;\n description?: string;\n confirmBtnLabel?: string;\n};\n\nexport const AlertDialogUI = ({\n title = \"Alert\",\n description = \"Funzione al momento non ancora disponibile\",\n confirmBtnLabel = \"OK\",\n isOpen,\n onClose,\n}: AlertDialogProps) => (\n <AlertDialog.Root open={isOpen} onOpenChange={onClose}>\n <AlertDialog.Portal forceMount>\n <AlertDialog.Overlay className=\"ui-alertDialogOverlay\" />\n <AlertDialog.Content className=\"ui-alertDialogContent fs-6 text-slate-28\">\n <AlertDialog.Title className=\"ui-alertDialogTitle fw-bold fs-custom text-slate-20\">\n {title}\n </AlertDialog.Title>\n <AlertDialog.Description className=\"ui-alertDialogDescription\">\n {description}\n </AlertDialog.Description>\n <Row justifyContent={\"flex-end\"}>\n <AlertDialog.Cancel asChild>\n <Button variant={\"primary\"} size={\"3\"}>\n {confirmBtnLabel}\n </Button>\n </AlertDialog.Cancel>\n </Row>\n </AlertDialog.Content>\n </AlertDialog.Portal>\n </AlertDialog.Root>\n);\n"],"names":["AlertDialogUI","title","description","confirmBtnLabel","isOpen","onClose","jsx","AlertDialog.Root","jsxs","AlertDialog.Portal","AlertDialog.Overlay","AlertDialog.Content","AlertDialog.Title","AlertDialog.Description","Row","AlertDialog.Cancel","Button"],"mappings":";;;;;AAYO,MAAMA,IAAgB,CAAC;AAAA,EAC5B,OAAAC,IAAQ;AAAA,EACR,aAAAC,IAAc;AAAA,EACd,iBAAAC,IAAkB;AAAA,EAClB,QAAAC;AAAA,EACA,SAAAC;AACF,MACGC,gBAAAA,EAAA,IAAAC,GAAA,EAAiB,MAAMH,GAAQ,cAAcC,GAC5C,UAACG,gBAAAA,EAAA,KAAAC,GAAA,EAAmB,YAAU,IAC5B,UAAA;AAAA,EAAAH,gBAAAA,EAAAA,IAACI,GAAA,EAAoB,WAAU,wBAAwB,CAAA;AAAA,EACtDF,gBAAAA,EAAAA,KAAAG,GAAA,EAAoB,WAAU,4CAC7B,UAAA;AAAA,IAAAL,gBAAAA,EAAA,IAACM,GAAA,EAAkB,WAAU,uDAC1B,UACHX,GAAA;AAAA,0BACCY,GAAA,EAAwB,WAAU,6BAChC,UACHX,GAAA;AAAA,0BACCY,GAAI,EAAA,gBAAgB,YACnB,UAACR,gBAAAA,EAAAA,IAAAS,GAAA,EAAmB,SAAO,IACzB,UAAAT,gBAAAA,EAAAA,IAACU,KAAO,SAAS,WAAW,MAAM,KAC/B,UAAAb,GACH,GACF,EACF,CAAA;AAAA,EAAA,EACF,CAAA;AAAA,EAAA,CACF,EACF,CAAA;"}
|
package/package.json
CHANGED
package/dist/index.cjs414.js
DELETED
package/dist/index.cjs414.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.cjs414.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/index.cjs415.js
DELETED
package/dist/index.cjs415.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.cjs415.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/index.cjs422.js
DELETED
@@ -1,2 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react");function o(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const u=o(c);function s(e){const t=u.useRef(e);return u.useEffect(()=>{t.current=e}),u.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}exports.useCallbackRef=s;
|
2
|
-
//# sourceMappingURL=index.cjs422.js.map
|
package/dist/index.cjs422.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.cjs422.js","sources":["../node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs"],"sourcesContent":["// packages/react/use-callback-ref/src/use-callback-ref.tsx\nimport * as React from \"react\";\nfunction useCallbackRef(callback) {\n const callbackRef = React.useRef(callback);\n React.useEffect(() => {\n callbackRef.current = callback;\n });\n return React.useMemo(() => (...args) => callbackRef.current?.(...args), []);\n}\nexport {\n useCallbackRef\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["useCallbackRef","callback","callbackRef","React","args","_a"],"mappings":"mYAEA,SAASA,EAAeC,EAAU,CAChC,MAAMC,EAAcC,EAAM,OAAOF,CAAQ,EACzCE,OAAAA,EAAM,UAAU,IAAM,CACpBD,EAAY,QAAUD,CAC1B,CAAG,EACME,EAAM,QAAQ,IAAM,IAAIC,WAAS,OAAAC,EAAAH,EAAY,UAAZ,YAAAG,EAAA,KAAAH,EAAsB,GAAGE,IAAO,EAAE,CAC5E","x_google_ignoreList":[0]}
|
package/dist/index.es414.js
DELETED
package/dist/index.es414.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.es414.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
package/dist/index.es415.js
DELETED
package/dist/index.es415.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.es415.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
package/dist/index.es422.js
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
import * as r from "react";
|
2
|
-
function o(t) {
|
3
|
-
const e = r.useRef(t);
|
4
|
-
return r.useEffect(() => {
|
5
|
-
e.current = t;
|
6
|
-
}), r.useMemo(() => (...n) => {
|
7
|
-
var u;
|
8
|
-
return (u = e.current) == null ? void 0 : u.call(e, ...n);
|
9
|
-
}, []);
|
10
|
-
}
|
11
|
-
export {
|
12
|
-
o as useCallbackRef
|
13
|
-
};
|
14
|
-
//# sourceMappingURL=index.es422.js.map
|
package/dist/index.es422.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.es422.js","sources":["../node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs"],"sourcesContent":["// packages/react/use-callback-ref/src/use-callback-ref.tsx\nimport * as React from \"react\";\nfunction useCallbackRef(callback) {\n const callbackRef = React.useRef(callback);\n React.useEffect(() => {\n callbackRef.current = callback;\n });\n return React.useMemo(() => (...args) => callbackRef.current?.(...args), []);\n}\nexport {\n useCallbackRef\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["useCallbackRef","callback","callbackRef","React","args","_a"],"mappings":";AAEA,SAASA,EAAeC,GAAU;AAChC,QAAMC,IAAcC,EAAM,OAAOF,CAAQ;AACzC,SAAAE,EAAM,UAAU,MAAM;AACpB,IAAAD,EAAY,UAAUD;AAAA,EAC1B,CAAG,GACME,EAAM,QAAQ,MAAM,IAAIC;;AAAS,YAAAC,IAAAH,EAAY,YAAZ,gBAAAG,EAAA,KAAAH,GAAsB,GAAGE;AAAA,KAAO,EAAE;AAC5E;","x_google_ignoreList":[0]}
|