@anoki/fse-ui 1.0.475 → 1.0.477
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/AuthorBlock/AuthorBlock.css +1 -1
- package/dist/components/ui/CardDocument/CardDocument.css +1 -1
- package/dist/components/ui/DelegateFilterDropDown/DelegateFilterDropDown.css +1 -1
- package/dist/components/ui/TableOfContents/TableOfContents.css +1 -1
- package/dist/index.cjs100.js +1 -1
- package/dist/index.cjs100.js.map +1 -1
- package/dist/index.cjs102.js +1 -1
- package/dist/index.cjs102.js.map +1 -1
- package/dist/index.cjs105.js +1 -1
- package/dist/index.cjs16.js +1 -1
- package/dist/index.cjs16.js.map +1 -1
- package/dist/index.cjs18.js +1 -1
- package/dist/index.cjs198.js +1 -1
- package/dist/index.cjs202.js +1 -1
- package/dist/index.cjs203.js +1 -1
- package/dist/index.cjs209.js +1 -1
- package/dist/index.cjs220.js +1 -1
- package/dist/index.cjs227.js +1 -1
- package/dist/index.cjs228.js +1 -1
- package/dist/index.cjs232.js +1 -1
- package/dist/index.cjs237.js +1 -1
- package/dist/index.cjs239.js +1 -1
- package/dist/index.cjs24.js +1 -1
- package/dist/index.cjs247.js +1 -1
- package/dist/index.cjs249.js +2 -2
- package/dist/index.cjs249.js.map +1 -1
- package/dist/index.cjs25.js +1 -1
- package/dist/index.cjs26.js +1 -1
- package/dist/index.cjs27.js +1 -1
- package/dist/index.cjs286.js +1 -1
- package/dist/index.cjs299.js +1 -1
- package/dist/index.cjs30.js +1 -1
- package/dist/index.cjs30.js.map +1 -1
- package/dist/index.cjs314.js +2 -2
- package/dist/index.cjs315.js +10 -10
- package/dist/index.cjs318.js +1 -1
- package/dist/index.cjs319.js +1 -1
- package/dist/index.cjs32.js +1 -1
- package/dist/index.cjs320.js +1 -1
- package/dist/index.cjs321.js +1 -1
- package/dist/index.cjs322.js +1 -1
- package/dist/index.cjs322.js.map +1 -1
- package/dist/{index.cjs323.js → index.cjs324.js} +1 -1
- package/dist/{index.cjs323.js.map → index.cjs324.js.map} +1 -1
- package/dist/index.cjs328.js +1 -1
- package/dist/index.cjs329.js +1 -1
- package/dist/index.cjs335.js +1 -1
- package/dist/index.cjs335.js.map +1 -1
- package/dist/index.cjs336.js +1 -1
- package/dist/index.cjs336.js.map +1 -1
- package/dist/index.cjs337.js +1 -1
- package/dist/index.cjs337.js.map +1 -1
- package/dist/index.cjs338.js +1 -1
- package/dist/index.cjs338.js.map +1 -1
- package/dist/index.cjs339.js +2 -0
- package/dist/index.cjs339.js.map +1 -0
- package/dist/index.cjs340.js +2 -0
- package/dist/index.cjs340.js.map +1 -0
- package/dist/index.cjs341.js +2 -0
- package/dist/index.cjs341.js.map +1 -0
- package/dist/{index.cjs330.js → index.cjs345.js} +1 -1
- package/dist/index.cjs345.js.map +1 -0
- package/dist/{index.cjs331.js → index.cjs346.js} +1 -1
- package/dist/index.cjs346.js.map +1 -0
- package/dist/index.cjs35.js +1 -1
- package/dist/index.cjs350.js +1 -1
- package/dist/index.cjs350.js.map +1 -1
- package/dist/index.cjs351.js +1 -1
- package/dist/index.cjs351.js.map +1 -1
- package/dist/index.cjs352.js +1 -1
- package/dist/index.cjs352.js.map +1 -1
- package/dist/index.cjs353.js +2 -0
- package/dist/index.cjs353.js.map +1 -0
- package/dist/index.cjs354.js +2 -0
- package/dist/index.cjs354.js.map +1 -0
- package/dist/index.cjs355.js +2 -0
- package/dist/index.cjs355.js.map +1 -0
- package/dist/index.cjs360.js +1 -1
- package/dist/index.cjs361.js +1 -1
- package/dist/index.cjs363.js +1 -1
- package/dist/index.cjs366.js +1 -1
- package/dist/index.cjs37.js +1 -1
- package/dist/index.cjs373.js +1 -1
- package/dist/index.cjs373.js.map +1 -1
- package/dist/index.cjs375.js +1 -1
- package/dist/index.cjs376.js +1 -1
- package/dist/index.cjs377.js +3 -3
- package/dist/index.cjs383.js +1 -1
- package/dist/index.cjs390.js +1 -1
- package/dist/index.cjs390.js.map +1 -1
- package/dist/index.cjs393.js +1 -1
- package/dist/index.cjs393.js.map +1 -1
- package/dist/index.cjs395.js +1 -1
- package/dist/index.cjs396.js +1 -1
- package/dist/index.cjs399.js +1 -1
- package/dist/index.cjs399.js.map +1 -1
- package/dist/index.cjs401.js +1 -1
- package/dist/index.cjs47.js +1 -1
- package/dist/index.cjs65.js +1 -1
- package/dist/index.cjs68.js +1 -1
- package/dist/index.cjs69.js +1 -1
- package/dist/index.cjs93.js +1 -1
- package/dist/index.cjs93.js.map +1 -1
- package/dist/index.es100.js +13 -13
- package/dist/index.es100.js.map +1 -1
- package/dist/index.es102.js +74 -59
- package/dist/index.es102.js.map +1 -1
- package/dist/index.es105.js +17 -17
- package/dist/index.es16.js +16 -16
- package/dist/index.es16.js.map +1 -1
- package/dist/index.es160.js +1 -1
- package/dist/index.es162.js +2 -2
- package/dist/index.es163.js +24 -24
- package/dist/index.es170.js +1 -1
- package/dist/index.es18.js +22 -22
- package/dist/index.es198.js +16 -16
- package/dist/index.es202.js +25 -25
- package/dist/index.es203.js +10 -10
- package/dist/index.es220.js +7 -7
- package/dist/index.es227.js +1 -1
- package/dist/index.es228.js +1 -1
- package/dist/index.es232.js +1 -1
- package/dist/index.es237.js +1 -1
- package/dist/index.es239.js +1 -1
- package/dist/index.es24.js +4 -4
- package/dist/index.es247.js +25 -25
- package/dist/index.es249.js +22 -22
- package/dist/index.es249.js.map +1 -1
- package/dist/index.es25.js +38 -38
- package/dist/index.es26.js +21 -21
- package/dist/index.es27.js +2 -2
- package/dist/index.es286.js +10 -10
- package/dist/index.es299.js +3 -3
- package/dist/index.es30.js +29 -27
- package/dist/index.es30.js.map +1 -1
- package/dist/index.es314.js +20 -20
- package/dist/index.es315.js +92 -92
- package/dist/index.es317.js +14 -14
- package/dist/index.es318.js +40 -40
- package/dist/index.es319.js +11 -11
- package/dist/index.es32.js +4 -4
- package/dist/index.es320.js +1 -1
- package/dist/index.es321.js +84 -84
- package/dist/index.es321.js.map +1 -1
- package/dist/index.es322.js +8 -8
- package/dist/index.es322.js.map +1 -1
- package/dist/{index.es323.js → index.es324.js} +1 -1
- package/dist/{index.es323.js.map → index.es324.js.map} +1 -1
- package/dist/index.es328.js +9 -9
- package/dist/index.es329.js +1 -1
- package/dist/index.es335.js +122 -12
- package/dist/index.es335.js.map +1 -1
- package/dist/index.es336.js +134 -8
- package/dist/index.es336.js.map +1 -1
- package/dist/index.es337.js +14 -50
- package/dist/index.es337.js.map +1 -1
- package/dist/index.es338.js +13 -51
- package/dist/index.es338.js.map +1 -1
- package/dist/index.es339.js +12 -0
- package/dist/index.es339.js.map +1 -0
- package/dist/index.es340.js +53 -0
- package/dist/index.es340.js.map +1 -0
- package/dist/index.es341.js +56 -0
- package/dist/index.es341.js.map +1 -0
- package/dist/{index.es330.js → index.es345.js} +1 -1
- package/dist/index.es345.js.map +1 -0
- package/dist/{index.es331.js → index.es346.js} +1 -1
- package/dist/index.es346.js.map +1 -0
- package/dist/index.es35.js +14 -14
- package/dist/index.es350.js +10 -217
- package/dist/index.es350.js.map +1 -1
- package/dist/index.es351.js +41 -173
- package/dist/index.es351.js.map +1 -1
- package/dist/index.es352.js +7 -3
- package/dist/index.es352.js.map +1 -1
- package/dist/index.es353.js +221 -0
- package/dist/index.es353.js.map +1 -0
- package/dist/index.es354.js +181 -0
- package/dist/index.es354.js.map +1 -0
- package/dist/index.es355.js +7 -0
- package/dist/index.es355.js.map +1 -0
- package/dist/index.es360.js +1 -1
- package/dist/index.es361.js +8 -8
- package/dist/index.es363.js +126 -126
- package/dist/index.es366.js +10 -10
- package/dist/index.es37.js +6 -6
- package/dist/index.es373.js +97 -97
- package/dist/index.es374.js +6 -6
- package/dist/index.es375.js +42 -42
- package/dist/index.es377.js +16 -16
- package/dist/index.es390.js +2 -2
- package/dist/index.es390.js.map +1 -1
- package/dist/index.es393.js +34 -34
- package/dist/index.es393.js.map +1 -1
- package/dist/index.es395.js +2 -2
- package/dist/index.es395.js.map +1 -1
- package/dist/index.es396.js +3 -3
- package/dist/index.es399.js +2 -2
- package/dist/index.es399.js.map +1 -1
- package/dist/index.es47.js +2 -2
- package/dist/index.es5.js +4 -4
- package/dist/index.es65.js +48 -48
- package/dist/index.es68.js +25 -25
- package/dist/index.es69.js +23 -23
- package/dist/index.es93.js +27 -23
- package/dist/index.es93.js.map +1 -1
- package/dist/index.es98.js +6 -6
- package/package.json +1 -1
- package/dist/index.cjs330.js.map +0 -1
- package/dist/index.cjs331.js.map +0 -1
- package/dist/index.cjs332.js +0 -2
- package/dist/index.cjs332.js.map +0 -1
- package/dist/index.cjs333.js +0 -2
- package/dist/index.cjs333.js.map +0 -1
- package/dist/index.cjs334.js +0 -2
- package/dist/index.cjs334.js.map +0 -1
- package/dist/index.cjs347.js +0 -2
- package/dist/index.cjs347.js.map +0 -1
- package/dist/index.cjs348.js +0 -2
- package/dist/index.cjs348.js.map +0 -1
- package/dist/index.cjs349.js +0 -2
- package/dist/index.cjs349.js.map +0 -1
- package/dist/index.es330.js.map +0 -1
- package/dist/index.es331.js.map +0 -1
- package/dist/index.es332.js +0 -128
- package/dist/index.es332.js.map +0 -1
- package/dist/index.es333.js +0 -138
- package/dist/index.es333.js.map +0 -1
- package/dist/index.es334.js +0 -17
- package/dist/index.es334.js.map +0 -1
- package/dist/index.es347.js +0 -14
- package/dist/index.es347.js.map +0 -1
- package/dist/index.es348.js +0 -49
- package/dist/index.es348.js.map +0 -1
- package/dist/index.es349.js +0 -11
- package/dist/index.es349.js.map +0 -1
- /package/dist/components/ui/{DoctorConfirmModal/DoctorConfirmModalContent/DoctorConfirmModalContent.css → ConsentModal/ConsentModalContent/ConsentModalContent.css} +0 -0
- /package/dist/components/ui/{DoctorModal/DoctorModalFooter/DoctorModalFooter.css → ConsentModal/ConsentModalFooter/ConsentModalFooter.css} +0 -0
package/dist/index.es363.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { offset as ot, shift as st, flip as rt, size as ct, hide as lt,
|
|
2
|
-
import { createCoords as m,
|
|
3
|
-
import { isElement as v,
|
|
1
|
+
import { offset as ot, shift as st, flip as rt, size as ct, hide as lt, computePosition as ft, arrow as ut, limitShift as ht } from "./index.es373.js";
|
|
2
|
+
import { createCoords as m, rectToClientRect as J, round as A, floor as D, max as E, min as V } from "./index.es374.js";
|
|
3
|
+
import { getOverflowAncestors as $, isElement as v, getWindow as L, getFrameElement as K, getComputedStyle as R, getDocumentElement as O, isHTMLElement as b, isWebKit as Q, isTopLayer as S, getNodeName as M, isOverflowElement as _, getNodeScroll as N, getParentNode as W, isLastTraversableNode as H, isTableElement as dt, isContainingBlock as Y, getContainingBlock as at } from "./index.es375.js";
|
|
4
4
|
function Z(t) {
|
|
5
5
|
const e = R(t);
|
|
6
|
-
let
|
|
7
|
-
const o = b(t), r = o ? t.offsetWidth :
|
|
8
|
-
return c && (
|
|
9
|
-
width:
|
|
10
|
-
height:
|
|
6
|
+
let n = parseFloat(e.width) || 0, i = parseFloat(e.height) || 0;
|
|
7
|
+
const o = b(t), r = o ? t.offsetWidth : n, s = o ? t.offsetHeight : i, c = A(n) !== r || A(i) !== s;
|
|
8
|
+
return c && (n = r, i = s), {
|
|
9
|
+
width: n,
|
|
10
|
+
height: i,
|
|
11
11
|
$: c
|
|
12
12
|
};
|
|
13
13
|
}
|
|
@@ -18,12 +18,12 @@ function F(t) {
|
|
|
18
18
|
const e = q(t);
|
|
19
19
|
if (!b(e))
|
|
20
20
|
return m(1);
|
|
21
|
-
const
|
|
22
|
-
width:
|
|
21
|
+
const n = e.getBoundingClientRect(), {
|
|
22
|
+
width: i,
|
|
23
23
|
height: o,
|
|
24
24
|
$: r
|
|
25
25
|
} = Z(e);
|
|
26
|
-
let s = (r ? A(
|
|
26
|
+
let s = (r ? A(n.width) : n.width) / i, c = (r ? A(n.height) : n.height) / o;
|
|
27
27
|
return (!s || !Number.isFinite(s)) && (s = 1), (!c || !Number.isFinite(c)) && (c = 1), {
|
|
28
28
|
x: s,
|
|
29
29
|
y: c
|
|
@@ -32,26 +32,26 @@ function F(t) {
|
|
|
32
32
|
const gt = /* @__PURE__ */ m(0);
|
|
33
33
|
function X(t) {
|
|
34
34
|
const e = L(t);
|
|
35
|
-
return !
|
|
35
|
+
return !Q() || !e.visualViewport ? gt : {
|
|
36
36
|
x: e.visualViewport.offsetLeft,
|
|
37
37
|
y: e.visualViewport.offsetTop
|
|
38
38
|
};
|
|
39
39
|
}
|
|
40
|
-
function pt(t, e,
|
|
41
|
-
return e === void 0 && (e = !1), !
|
|
40
|
+
function pt(t, e, n) {
|
|
41
|
+
return e === void 0 && (e = !1), !n || e && n !== L(t) ? !1 : e;
|
|
42
42
|
}
|
|
43
|
-
function T(t, e,
|
|
44
|
-
e === void 0 && (e = !1),
|
|
43
|
+
function T(t, e, n, i) {
|
|
44
|
+
e === void 0 && (e = !1), n === void 0 && (n = !1);
|
|
45
45
|
const o = t.getBoundingClientRect(), r = q(t);
|
|
46
46
|
let s = m(1);
|
|
47
|
-
e && (
|
|
48
|
-
const c = pt(r,
|
|
47
|
+
e && (i ? v(i) && (s = F(i)) : s = F(t));
|
|
48
|
+
const c = pt(r, n, i) ? X(r) : m(0);
|
|
49
49
|
let l = (o.left + c.x) / s.x, f = (o.top + c.y) / s.y, u = o.width / s.x, h = o.height / s.y;
|
|
50
50
|
if (r) {
|
|
51
|
-
const p = L(r),
|
|
51
|
+
const p = L(r), d = i && v(i) ? L(i) : i;
|
|
52
52
|
let y = p, g = K(y);
|
|
53
|
-
for (; g &&
|
|
54
|
-
const w = F(g),
|
|
53
|
+
for (; g && i && d !== y; ) {
|
|
54
|
+
const w = F(g), a = g.getBoundingClientRect(), x = R(g), C = a.left + (g.clientLeft + parseFloat(x.paddingLeft)) * w.x, B = a.top + (g.clientTop + parseFloat(x.paddingTop)) * w.y;
|
|
55
55
|
l *= w.x, f *= w.y, u *= w.x, h *= w.y, l += C, f += B, y = L(g), g = K(y);
|
|
56
56
|
}
|
|
57
57
|
}
|
|
@@ -63,15 +63,15 @@ function T(t, e, i, n) {
|
|
|
63
63
|
});
|
|
64
64
|
}
|
|
65
65
|
function k(t, e) {
|
|
66
|
-
const
|
|
67
|
-
return e ? e.left +
|
|
66
|
+
const n = N(t).scrollLeft;
|
|
67
|
+
return e ? e.left + n : T(O(t)).left + n;
|
|
68
68
|
}
|
|
69
|
-
function tt(t, e,
|
|
70
|
-
|
|
71
|
-
const
|
|
69
|
+
function tt(t, e, n) {
|
|
70
|
+
n === void 0 && (n = !1);
|
|
71
|
+
const i = t.getBoundingClientRect(), o = i.left + e.scrollLeft - (n ? 0 : (
|
|
72
72
|
// RTL <body> scrollbar.
|
|
73
|
-
k(t,
|
|
74
|
-
)), r =
|
|
73
|
+
k(t, i)
|
|
74
|
+
)), r = i.top + e.scrollTop;
|
|
75
75
|
return {
|
|
76
76
|
x: o,
|
|
77
77
|
y: r
|
|
@@ -80,38 +80,38 @@ function tt(t, e, i) {
|
|
|
80
80
|
function wt(t) {
|
|
81
81
|
let {
|
|
82
82
|
elements: e,
|
|
83
|
-
rect:
|
|
84
|
-
offsetParent:
|
|
83
|
+
rect: n,
|
|
84
|
+
offsetParent: i,
|
|
85
85
|
strategy: o
|
|
86
86
|
} = t;
|
|
87
|
-
const r = o === "fixed", s = O(
|
|
88
|
-
if (
|
|
89
|
-
return
|
|
87
|
+
const r = o === "fixed", s = O(i), c = e ? S(e.floating) : !1;
|
|
88
|
+
if (i === s || c && r)
|
|
89
|
+
return n;
|
|
90
90
|
let l = {
|
|
91
91
|
scrollLeft: 0,
|
|
92
92
|
scrollTop: 0
|
|
93
93
|
}, f = m(1);
|
|
94
|
-
const u = m(0), h = b(
|
|
95
|
-
if ((h || !h && !r) && ((M(
|
|
96
|
-
const
|
|
97
|
-
f = F(
|
|
94
|
+
const u = m(0), h = b(i);
|
|
95
|
+
if ((h || !h && !r) && ((M(i) !== "body" || _(s)) && (l = N(i)), b(i))) {
|
|
96
|
+
const d = T(i);
|
|
97
|
+
f = F(i), u.x = d.x + i.clientLeft, u.y = d.y + i.clientTop;
|
|
98
98
|
}
|
|
99
99
|
const p = s && !h && !r ? tt(s, l, !0) : m(0);
|
|
100
100
|
return {
|
|
101
|
-
width:
|
|
102
|
-
height:
|
|
103
|
-
x:
|
|
104
|
-
y:
|
|
101
|
+
width: n.width * f.x,
|
|
102
|
+
height: n.height * f.y,
|
|
103
|
+
x: n.x * f.x - l.scrollLeft * f.x + u.x + p.x,
|
|
104
|
+
y: n.y * f.y - l.scrollTop * f.y + u.y + p.y
|
|
105
105
|
};
|
|
106
106
|
}
|
|
107
107
|
function mt(t) {
|
|
108
108
|
return Array.from(t.getClientRects());
|
|
109
109
|
}
|
|
110
110
|
function yt(t) {
|
|
111
|
-
const e = O(t),
|
|
112
|
-
let s = -
|
|
113
|
-
const c = -
|
|
114
|
-
return R(
|
|
111
|
+
const e = O(t), n = N(t), i = t.ownerDocument.body, o = E(e.scrollWidth, e.clientWidth, i.scrollWidth, i.clientWidth), r = E(e.scrollHeight, e.clientHeight, i.scrollHeight, i.clientHeight);
|
|
112
|
+
let s = -n.scrollLeft + k(t);
|
|
113
|
+
const c = -n.scrollTop;
|
|
114
|
+
return R(i).direction === "rtl" && (s += E(e.clientWidth, i.clientWidth) - o), {
|
|
115
115
|
width: o,
|
|
116
116
|
height: r,
|
|
117
117
|
x: s,
|
|
@@ -119,11 +119,11 @@ function yt(t) {
|
|
|
119
119
|
};
|
|
120
120
|
}
|
|
121
121
|
function xt(t, e) {
|
|
122
|
-
const
|
|
123
|
-
let r =
|
|
122
|
+
const n = L(t), i = O(t), o = n.visualViewport;
|
|
123
|
+
let r = i.clientWidth, s = i.clientHeight, c = 0, l = 0;
|
|
124
124
|
if (o) {
|
|
125
125
|
r = o.width, s = o.height;
|
|
126
|
-
const f =
|
|
126
|
+
const f = Q();
|
|
127
127
|
(!f || f && e === "fixed") && (c = o.offsetLeft, l = o.offsetTop);
|
|
128
128
|
}
|
|
129
129
|
return {
|
|
@@ -134,7 +134,7 @@ function xt(t, e) {
|
|
|
134
134
|
};
|
|
135
135
|
}
|
|
136
136
|
function vt(t, e) {
|
|
137
|
-
const
|
|
137
|
+
const n = T(t, !0, e === "fixed"), i = n.top + t.clientTop, o = n.left + t.clientLeft, r = b(t) ? F(t) : m(1), s = t.clientWidth * r.x, c = t.clientHeight * r.y, l = o * r.x, f = i * r.y;
|
|
138
138
|
return {
|
|
139
139
|
width: s,
|
|
140
140
|
height: c,
|
|
@@ -142,50 +142,50 @@ function vt(t, e) {
|
|
|
142
142
|
y: f
|
|
143
143
|
};
|
|
144
144
|
}
|
|
145
|
-
function j(t, e,
|
|
146
|
-
let
|
|
145
|
+
function j(t, e, n) {
|
|
146
|
+
let i;
|
|
147
147
|
if (e === "viewport")
|
|
148
|
-
|
|
148
|
+
i = xt(t, n);
|
|
149
149
|
else if (e === "document")
|
|
150
|
-
|
|
150
|
+
i = yt(O(t));
|
|
151
151
|
else if (v(e))
|
|
152
|
-
|
|
152
|
+
i = vt(e, n);
|
|
153
153
|
else {
|
|
154
154
|
const o = X(t);
|
|
155
|
-
|
|
155
|
+
i = {
|
|
156
156
|
x: e.x - o.x,
|
|
157
157
|
y: e.y - o.y,
|
|
158
158
|
width: e.width,
|
|
159
159
|
height: e.height
|
|
160
160
|
};
|
|
161
161
|
}
|
|
162
|
-
return J(
|
|
162
|
+
return J(i);
|
|
163
163
|
}
|
|
164
164
|
function et(t, e) {
|
|
165
|
-
const
|
|
166
|
-
return
|
|
165
|
+
const n = W(t);
|
|
166
|
+
return n === e || !v(n) || H(n) ? !1 : R(n).position === "fixed" || et(n, e);
|
|
167
167
|
}
|
|
168
168
|
function Rt(t, e) {
|
|
169
|
-
const
|
|
170
|
-
if (
|
|
171
|
-
return
|
|
172
|
-
let
|
|
169
|
+
const n = e.get(t);
|
|
170
|
+
if (n)
|
|
171
|
+
return n;
|
|
172
|
+
let i = $(t, [], !1).filter((c) => v(c) && M(c) !== "body"), o = null;
|
|
173
173
|
const r = R(t).position === "fixed";
|
|
174
174
|
let s = r ? W(t) : t;
|
|
175
175
|
for (; v(s) && !H(s); ) {
|
|
176
|
-
const c = R(s), l =
|
|
177
|
-
!l && c.position === "fixed" && (o = null), (r ? !l && !o : !l && c.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || _(s) && !l && et(t, s)) ?
|
|
176
|
+
const c = R(s), l = Y(s);
|
|
177
|
+
!l && c.position === "fixed" && (o = null), (r ? !l && !o : !l && c.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || _(s) && !l && et(t, s)) ? i = i.filter((u) => u !== s) : o = c, s = W(s);
|
|
178
178
|
}
|
|
179
|
-
return e.set(t,
|
|
179
|
+
return e.set(t, i), i;
|
|
180
180
|
}
|
|
181
181
|
function Ot(t) {
|
|
182
182
|
let {
|
|
183
183
|
element: e,
|
|
184
|
-
boundary:
|
|
185
|
-
rootBoundary:
|
|
184
|
+
boundary: n,
|
|
185
|
+
rootBoundary: i,
|
|
186
186
|
strategy: o
|
|
187
187
|
} = t;
|
|
188
|
-
const s = [...
|
|
188
|
+
const s = [...n === "clippingAncestors" ? S(e) ? [] : Rt(e, this._c) : [].concat(n), i], c = s[0], l = s.reduce((f, u) => {
|
|
189
189
|
const h = j(e, u, o);
|
|
190
190
|
return f.top = E(h.top, f.top), f.right = V(h.right, f.right), f.bottom = V(h.bottom, f.bottom), f.left = E(h.left, f.left), f;
|
|
191
191
|
}, j(e, c, o));
|
|
@@ -199,26 +199,26 @@ function Ot(t) {
|
|
|
199
199
|
function bt(t) {
|
|
200
200
|
const {
|
|
201
201
|
width: e,
|
|
202
|
-
height:
|
|
202
|
+
height: n
|
|
203
203
|
} = Z(t);
|
|
204
204
|
return {
|
|
205
205
|
width: e,
|
|
206
|
-
height:
|
|
206
|
+
height: n
|
|
207
207
|
};
|
|
208
208
|
}
|
|
209
|
-
function Ct(t, e,
|
|
210
|
-
const
|
|
209
|
+
function Ct(t, e, n) {
|
|
210
|
+
const i = b(e), o = O(e), r = n === "fixed", s = T(t, !0, r, e);
|
|
211
211
|
let c = {
|
|
212
212
|
scrollLeft: 0,
|
|
213
213
|
scrollTop: 0
|
|
214
214
|
};
|
|
215
215
|
const l = m(0);
|
|
216
|
-
if (
|
|
217
|
-
if ((M(e) !== "body" || _(o)) && (c = N(e)),
|
|
216
|
+
if (i || !i && !r)
|
|
217
|
+
if ((M(e) !== "body" || _(o)) && (c = N(e)), i) {
|
|
218
218
|
const p = T(e, !0, r, e);
|
|
219
219
|
l.x = p.x + e.clientLeft, l.y = p.y + e.clientTop;
|
|
220
220
|
} else o && (l.x = k(o));
|
|
221
|
-
const f = o && !
|
|
221
|
+
const f = o && !i && !r ? tt(o, c) : m(0), u = s.left + c.scrollLeft - l.x - f.x, h = s.top + c.scrollTop - l.y - f.y;
|
|
222
222
|
return {
|
|
223
223
|
x: u,
|
|
224
224
|
y: h,
|
|
@@ -234,13 +234,13 @@ function G(t, e) {
|
|
|
234
234
|
return null;
|
|
235
235
|
if (e)
|
|
236
236
|
return e(t);
|
|
237
|
-
let
|
|
238
|
-
return O(t) ===
|
|
237
|
+
let n = t.offsetParent;
|
|
238
|
+
return O(t) === n && (n = n.ownerDocument.body), n;
|
|
239
239
|
}
|
|
240
|
-
function
|
|
241
|
-
const
|
|
240
|
+
function nt(t, e) {
|
|
241
|
+
const n = L(t);
|
|
242
242
|
if (S(t))
|
|
243
|
-
return
|
|
243
|
+
return n;
|
|
244
244
|
if (!b(t)) {
|
|
245
245
|
let o = W(t);
|
|
246
246
|
for (; o && !H(o); ) {
|
|
@@ -248,22 +248,22 @@ function it(t, e) {
|
|
|
248
248
|
return o;
|
|
249
249
|
o = W(o);
|
|
250
250
|
}
|
|
251
|
-
return
|
|
251
|
+
return n;
|
|
252
252
|
}
|
|
253
|
-
let
|
|
254
|
-
for (;
|
|
255
|
-
|
|
256
|
-
return
|
|
253
|
+
let i = G(t, e);
|
|
254
|
+
for (; i && dt(i) && I(i); )
|
|
255
|
+
i = G(i, e);
|
|
256
|
+
return i && H(i) && I(i) && !Y(i) ? n : i || at(t) || n;
|
|
257
257
|
}
|
|
258
258
|
const Lt = async function(t) {
|
|
259
|
-
const e = this.getOffsetParent ||
|
|
259
|
+
const e = this.getOffsetParent || nt, n = this.getDimensions, i = await n(t.floating);
|
|
260
260
|
return {
|
|
261
261
|
reference: Ct(t.reference, await e(t.floating), t.strategy),
|
|
262
262
|
floating: {
|
|
263
263
|
x: 0,
|
|
264
264
|
y: 0,
|
|
265
|
-
width:
|
|
266
|
-
height:
|
|
265
|
+
width: i.width,
|
|
266
|
+
height: i.height
|
|
267
267
|
}
|
|
268
268
|
};
|
|
269
269
|
};
|
|
@@ -274,7 +274,7 @@ const Et = {
|
|
|
274
274
|
convertOffsetParentRelativeRectToViewportRelativeRect: wt,
|
|
275
275
|
getDocumentElement: O,
|
|
276
276
|
getClippingRect: Ot,
|
|
277
|
-
getOffsetParent:
|
|
277
|
+
getOffsetParent: nt,
|
|
278
278
|
getElementRects: Lt,
|
|
279
279
|
getClientRects: mt,
|
|
280
280
|
getDimensions: bt,
|
|
@@ -282,15 +282,15 @@ const Et = {
|
|
|
282
282
|
isElement: v,
|
|
283
283
|
isRTL: Tt
|
|
284
284
|
};
|
|
285
|
-
function
|
|
285
|
+
function it(t, e) {
|
|
286
286
|
return t.x === e.x && t.y === e.y && t.width === e.width && t.height === e.height;
|
|
287
287
|
}
|
|
288
288
|
function Ft(t, e) {
|
|
289
|
-
let
|
|
289
|
+
let n = null, i;
|
|
290
290
|
const o = O(t);
|
|
291
291
|
function r() {
|
|
292
292
|
var c;
|
|
293
|
-
clearTimeout(
|
|
293
|
+
clearTimeout(i), (c = n) == null || c.disconnect(), n = null;
|
|
294
294
|
}
|
|
295
295
|
function s(c, l) {
|
|
296
296
|
c === void 0 && (c = !1), l === void 0 && (l = 1), r();
|
|
@@ -298,12 +298,12 @@ function Ft(t, e) {
|
|
|
298
298
|
left: u,
|
|
299
299
|
top: h,
|
|
300
300
|
width: p,
|
|
301
|
-
height:
|
|
301
|
+
height: d
|
|
302
302
|
} = f;
|
|
303
|
-
if (c || e(), !p || !
|
|
303
|
+
if (c || e(), !p || !d)
|
|
304
304
|
return;
|
|
305
|
-
const y = D(h), g = D(o.clientWidth - (u + p)), w = D(o.clientHeight - (h +
|
|
306
|
-
rootMargin: -y + "px " + -g + "px " + -w + "px " + -
|
|
305
|
+
const y = D(h), g = D(o.clientWidth - (u + p)), w = D(o.clientHeight - (h + d)), a = D(u), C = {
|
|
306
|
+
rootMargin: -y + "px " + -g + "px " + -w + "px " + -a + "px",
|
|
307
307
|
threshold: E(0, V(1, l)) || 1
|
|
308
308
|
};
|
|
309
309
|
let B = !0;
|
|
@@ -312,70 +312,70 @@ function Ft(t, e) {
|
|
|
312
312
|
if (z !== l) {
|
|
313
313
|
if (!B)
|
|
314
314
|
return s();
|
|
315
|
-
z ? s(!1, z) :
|
|
315
|
+
z ? s(!1, z) : i = setTimeout(() => {
|
|
316
316
|
s(!1, 1e-7);
|
|
317
317
|
}, 1e3);
|
|
318
318
|
}
|
|
319
|
-
z === 1 && !
|
|
319
|
+
z === 1 && !it(f, t.getBoundingClientRect()) && s(), B = !1;
|
|
320
320
|
}
|
|
321
321
|
try {
|
|
322
|
-
|
|
322
|
+
n = new IntersectionObserver(P, {
|
|
323
323
|
...C,
|
|
324
324
|
// Handle <iframe>s
|
|
325
325
|
root: o.ownerDocument
|
|
326
326
|
});
|
|
327
327
|
} catch {
|
|
328
|
-
|
|
328
|
+
n = new IntersectionObserver(P, C);
|
|
329
329
|
}
|
|
330
|
-
|
|
330
|
+
n.observe(t);
|
|
331
331
|
}
|
|
332
332
|
return s(!0), r;
|
|
333
333
|
}
|
|
334
|
-
function Dt(t, e,
|
|
335
|
-
|
|
334
|
+
function Dt(t, e, n, i) {
|
|
335
|
+
i === void 0 && (i = {});
|
|
336
336
|
const {
|
|
337
337
|
ancestorScroll: o = !0,
|
|
338
338
|
ancestorResize: r = !0,
|
|
339
339
|
elementResize: s = typeof ResizeObserver == "function",
|
|
340
340
|
layoutShift: c = typeof IntersectionObserver == "function",
|
|
341
341
|
animationFrame: l = !1
|
|
342
|
-
} =
|
|
343
|
-
u.forEach((
|
|
344
|
-
o &&
|
|
342
|
+
} = i, f = q(t), u = o || r ? [...f ? $(f) : [], ...$(e)] : [];
|
|
343
|
+
u.forEach((a) => {
|
|
344
|
+
o && a.addEventListener("scroll", n, {
|
|
345
345
|
passive: !0
|
|
346
|
-
}), r &&
|
|
346
|
+
}), r && a.addEventListener("resize", n);
|
|
347
347
|
});
|
|
348
|
-
const h = f && c ? Ft(f,
|
|
349
|
-
let p = -1,
|
|
350
|
-
s && (
|
|
351
|
-
let [x] =
|
|
352
|
-
x && x.target === f &&
|
|
348
|
+
const h = f && c ? Ft(f, n) : null;
|
|
349
|
+
let p = -1, d = null;
|
|
350
|
+
s && (d = new ResizeObserver((a) => {
|
|
351
|
+
let [x] = a;
|
|
352
|
+
x && x.target === f && d && (d.unobserve(e), cancelAnimationFrame(p), p = requestAnimationFrame(() => {
|
|
353
353
|
var C;
|
|
354
|
-
(C =
|
|
355
|
-
})),
|
|
356
|
-
}), f && !l &&
|
|
354
|
+
(C = d) == null || C.observe(e);
|
|
355
|
+
})), n();
|
|
356
|
+
}), f && !l && d.observe(f), d.observe(e));
|
|
357
357
|
let y, g = l ? T(t) : null;
|
|
358
358
|
l && w();
|
|
359
359
|
function w() {
|
|
360
|
-
const
|
|
361
|
-
g && !
|
|
360
|
+
const a = T(t);
|
|
361
|
+
g && !it(g, a) && n(), g = a, y = requestAnimationFrame(w);
|
|
362
362
|
}
|
|
363
|
-
return
|
|
364
|
-
var
|
|
363
|
+
return n(), () => {
|
|
364
|
+
var a;
|
|
365
365
|
u.forEach((x) => {
|
|
366
|
-
o && x.removeEventListener("scroll",
|
|
367
|
-
}), h == null || h(), (
|
|
366
|
+
o && x.removeEventListener("scroll", n), r && x.removeEventListener("resize", n);
|
|
367
|
+
}), h == null || h(), (a = d) == null || a.disconnect(), d = null, l && cancelAnimationFrame(y);
|
|
368
368
|
};
|
|
369
369
|
}
|
|
370
|
-
const At = ot, Ht = st, Nt = rt, It = ct, Vt = lt, $t =
|
|
371
|
-
const
|
|
370
|
+
const At = ot, Ht = st, Nt = rt, It = ct, Vt = lt, $t = ut, St = ht, Mt = (t, e, n) => {
|
|
371
|
+
const i = /* @__PURE__ */ new Map(), o = {
|
|
372
372
|
platform: Et,
|
|
373
|
-
...
|
|
373
|
+
...n
|
|
374
374
|
}, r = {
|
|
375
375
|
...o.platform,
|
|
376
|
-
_c:
|
|
376
|
+
_c: i
|
|
377
377
|
};
|
|
378
|
-
return
|
|
378
|
+
return ft(t, e, {
|
|
379
379
|
...o,
|
|
380
380
|
platform: r
|
|
381
381
|
});
|
package/dist/index.es366.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { __rest as k, __assign as r } from "./index.es365.js";
|
|
2
2
|
import * as a from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { fullWidthClassName as E, zeroRightClassName as I } from "./index.es368.js";
|
|
4
4
|
import { effectCar as Z } from "./index.es369.js";
|
|
5
5
|
import { useMergeRefs as W } from "./index.es370.js";
|
|
6
|
-
var
|
|
6
|
+
var l = function() {
|
|
7
7
|
}, m = a.forwardRef(function(e, d) {
|
|
8
|
-
var
|
|
9
|
-
onScrollCapture:
|
|
10
|
-
onWheelCapture:
|
|
11
|
-
onTouchMoveCapture:
|
|
12
|
-
}), f = n[0], h = n[1], u = e.forwardProps, t = e.children, v = e.className, C = e.removeScrollBar, g = e.enabled, P = e.shards, R = e.sideCar, S = e.noIsolation, b = e.inert, w = e.allowPinchZoom, s = e.as, N = s === void 0 ? "div" : s, M = e.gapMode, _ = k(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), B = R, i = W([
|
|
8
|
+
var o = a.useRef(null), n = a.useState({
|
|
9
|
+
onScrollCapture: l,
|
|
10
|
+
onWheelCapture: l,
|
|
11
|
+
onTouchMoveCapture: l
|
|
12
|
+
}), f = n[0], h = n[1], u = e.forwardProps, t = e.children, v = e.className, C = e.removeScrollBar, g = e.enabled, P = e.shards, R = e.sideCar, S = e.noIsolation, b = e.inert, w = e.allowPinchZoom, s = e.as, N = s === void 0 ? "div" : s, M = e.gapMode, _ = k(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), B = R, i = W([o, d]), c = r(r({}, _), f);
|
|
13
13
|
return a.createElement(
|
|
14
14
|
a.Fragment,
|
|
15
15
|
null,
|
|
16
|
-
g && a.createElement(B, { sideCar: Z, removeScrollBar: C, shards: P, noIsolation: S, inert: b, setCallbacks: h, allowPinchZoom: !!w, lockRef:
|
|
16
|
+
g && a.createElement(B, { sideCar: Z, removeScrollBar: C, shards: P, noIsolation: S, inert: b, setCallbacks: h, allowPinchZoom: !!w, lockRef: o, gapMode: M }),
|
|
17
17
|
u ? a.cloneElement(a.Children.only(t), r(r({}, c), { ref: i })) : a.createElement(N, r({}, c, { className: v, ref: i }), t)
|
|
18
18
|
);
|
|
19
19
|
});
|
|
@@ -23,8 +23,8 @@ m.defaultProps = {
|
|
|
23
23
|
inert: !1
|
|
24
24
|
};
|
|
25
25
|
m.classNames = {
|
|
26
|
-
fullWidth:
|
|
27
|
-
zeroRight:
|
|
26
|
+
fullWidth: E,
|
|
27
|
+
zeroRight: I
|
|
28
28
|
};
|
|
29
29
|
export {
|
|
30
30
|
m as RemoveScroll
|
package/dist/index.es37.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { j as o } from "./index.es179.js";
|
|
2
|
-
import { Root as d, Portal as
|
|
2
|
+
import { Root as d, Portal as n, Overlay as i, Content as l } from "./index.es220.js";
|
|
3
3
|
import { BaseModalHeader as p } from "./index.es221.js";
|
|
4
4
|
import { BaseModalFooter as x } from "./index.es222.js";
|
|
5
5
|
import { BaseModalContent as c } from "./index.es223.js";
|
|
6
|
-
import { BaseModalBackHeader as
|
|
6
|
+
import { BaseModalBackHeader as f } from "./index.es224.js";
|
|
7
7
|
import './components/ui/BaseModal/BaseModal.css';/* empty css */
|
|
8
8
|
const e = ({
|
|
9
9
|
open: a,
|
|
@@ -11,10 +11,10 @@ const e = ({
|
|
|
11
11
|
overrideClassNames: t,
|
|
12
12
|
id: s = void 0,
|
|
13
13
|
children: m
|
|
14
|
-
}) => /* @__PURE__ */ o.jsx(d, { open: a, onOpenChange: r, children: /* @__PURE__ */ o.jsxs(
|
|
15
|
-
/* @__PURE__ */ o.jsx(
|
|
14
|
+
}) => /* @__PURE__ */ o.jsx(d, { open: a, onOpenChange: r, children: /* @__PURE__ */ o.jsxs(n, { children: [
|
|
15
|
+
/* @__PURE__ */ o.jsx(i, { className: "ui-base-modal-overlay" }),
|
|
16
16
|
/* @__PURE__ */ o.jsx(
|
|
17
|
-
|
|
17
|
+
l,
|
|
18
18
|
{
|
|
19
19
|
className: `bg-white shadow br-x4 ui-base-modal-body ${t ?? ""}`,
|
|
20
20
|
id: s,
|
|
@@ -23,7 +23,7 @@ const e = ({
|
|
|
23
23
|
)
|
|
24
24
|
] }) });
|
|
25
25
|
e.Header = p;
|
|
26
|
-
e.HeaderBack =
|
|
26
|
+
e.HeaderBack = f;
|
|
27
27
|
e.Content = c;
|
|
28
28
|
e.Footer = x;
|
|
29
29
|
export {
|