@a-ui/react 7.13.0-beta.4 → 7.13.0-beta.6
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/cjs/index10.js +1 -1
- package/cjs/index100.js +1 -1
- package/cjs/index101.js +1 -1
- package/cjs/index102.js +1 -1
- package/cjs/index103.js +1 -1
- package/cjs/index104.js +1 -1
- package/cjs/index105.js +1 -1
- package/cjs/index106.js +1 -1
- package/cjs/index107.js +1 -1
- package/cjs/index108.js +1 -1
- package/cjs/index109.js +1 -1
- package/cjs/index11.js +1 -1
- package/cjs/index110.js +1 -1
- package/cjs/index111.js +1 -1
- package/cjs/index112.js +1 -1
- package/cjs/index113.js +1 -1
- package/cjs/index114.js +2 -1
- package/cjs/index115.js +1 -1
- package/cjs/index116.js +1 -1
- package/cjs/index117.js +1 -1
- package/cjs/index118.js +1 -1
- package/cjs/index119.js +10 -1
- package/cjs/index12.js +1 -1
- package/cjs/index120.js +1 -1
- package/cjs/index121.js +1 -1
- package/cjs/index122.js +1 -1
- package/cjs/index123.js +1 -2
- package/cjs/index124.js +1 -1
- package/cjs/index125.js +1 -1
- package/cjs/index126.js +5 -1
- package/cjs/index127.js +9 -1
- package/cjs/index128.js +1 -10
- package/cjs/index129.js +1 -1
- package/cjs/index13.js +1 -1
- package/cjs/index130.js +1 -1
- package/cjs/index131.js +1 -1
- package/cjs/index132.js +1 -1
- package/cjs/index133.js +1 -1
- package/cjs/index134.js +1 -1
- package/cjs/index135.js +1 -5
- package/cjs/index136.js +1 -9
- package/cjs/index14.js +1 -1
- package/cjs/index144.js +1 -11
- package/cjs/index145.js +11 -1
- package/cjs/index146.js +1 -1
- package/cjs/index147.js +1 -1
- package/cjs/index16.js +1 -1
- package/cjs/index167.js +1 -1
- package/cjs/index17.js +1 -1
- package/cjs/index170.js +1 -1
- package/cjs/index171.js +1 -1
- package/cjs/index172.js +1 -1
- package/cjs/index176.js +1 -1
- package/cjs/index177.js +1 -1
- package/cjs/index18.js +1 -1
- package/cjs/index187.js +1 -1
- package/cjs/index194.js +1 -1
- package/cjs/index2.js +1 -1
- package/cjs/index20.js +1 -1
- package/cjs/index21.js +1 -1
- package/cjs/index22.js +1 -1
- package/cjs/index224.js +1 -1
- package/cjs/index225.js +1 -1
- package/cjs/index226.js +1 -1
- package/cjs/index227.js +1 -1
- package/cjs/index228.js +1 -1
- package/cjs/index229.js +1 -1
- package/cjs/index230.js +1 -1
- package/cjs/index231.js +1 -1
- package/cjs/index24.js +1 -1
- package/cjs/index25.js +1 -1
- package/cjs/index26.js +1 -1
- package/cjs/index27.js +1 -1
- package/cjs/index28.js +1 -1
- package/cjs/index3.js +1 -1
- package/cjs/index30.js +1 -1
- package/cjs/index31.js +1 -1
- package/cjs/index32.js +1 -1
- package/cjs/index33.js +1 -1
- package/cjs/index34.js +1 -1
- package/cjs/index36.js +1 -1
- package/cjs/index37.js +1 -1
- package/cjs/index38.js +1 -1
- package/cjs/index39.js +1 -1
- package/cjs/index4.js +1 -1
- package/cjs/index40.js +1 -1
- package/cjs/index41.js +1 -1
- package/cjs/index42.js +1 -1
- package/cjs/index43.js +1 -1
- package/cjs/index44.js +1 -1
- package/cjs/index45.js +1 -1
- package/cjs/index46.js +1 -1
- package/cjs/index47.js +1 -1
- package/cjs/index48.js +1 -1
- package/cjs/index49.js +1 -1
- package/cjs/index5.js +1 -1
- package/cjs/index50.js +1 -1
- package/cjs/index51.js +1 -1
- package/cjs/index52.js +1 -1
- package/cjs/index53.js +1 -1
- package/cjs/index54.js +1 -1
- package/cjs/index55.js +1 -7
- package/cjs/index56.js +1 -1
- package/cjs/index57.js +1 -1
- package/cjs/index58.js +1 -1
- package/cjs/index59.js +1 -1
- package/cjs/index6.js +1 -1
- package/cjs/index60.js +1 -1
- package/cjs/index61.js +7 -1
- package/cjs/index62.js +1 -1
- package/cjs/index63.js +1 -1
- package/cjs/index64.js +1 -1
- package/cjs/index65.js +1 -1
- package/cjs/index67.js +1 -1
- package/cjs/index68.js +1 -1
- package/cjs/index69.js +1 -1
- package/cjs/index71.js +1 -1
- package/cjs/index8.js +1 -1
- package/cjs/index82.js +1 -1
- package/cjs/index83.js +1 -1
- package/cjs/index85.js +1 -1
- package/cjs/index86.js +1 -1
- package/cjs/index87.js +1 -0
- package/cjs/index88.js +1 -0
- package/cjs/index89.js +1 -1
- package/cjs/index9.js +1 -1
- package/cjs/index90.js +1 -1
- package/cjs/index91.js +1 -1
- package/cjs/index94.js +1 -1
- package/cjs/index95.js +1 -1
- package/cjs/index96.js +1 -1
- package/cjs/index97.js +1 -1
- package/cjs/index98.js +1 -1
- package/cjs/index99.js +1 -1
- package/es/index10.mjs +4 -4
- package/es/index100.mjs +4 -66
- package/es/index101.mjs +11 -3
- package/es/index102.mjs +247 -5
- package/es/index103.mjs +88 -10
- package/es/index104.mjs +14 -6
- package/es/index105.mjs +4 -11
- package/es/index106.mjs +2 -247
- package/es/index107.mjs +2 -89
- package/es/index108.mjs +4 -15
- package/es/index109.mjs +391 -4
- package/es/index11.mjs +1 -1
- package/es/index110.mjs +125 -2
- package/es/index111.mjs +134 -2
- package/es/index112.mjs +2 -63
- package/es/index113.mjs +7 -13
- package/es/index114.mjs +326 -6
- package/es/index115.mjs +49 -6
- package/es/index116.mjs +2 -6
- package/es/index117.mjs +64 -5
- package/es/index118.mjs +43 -5
- package/es/index119.mjs +59 -6
- package/es/index12.mjs +2 -2
- package/es/index120.mjs +45 -6
- package/es/index121.mjs +40 -2
- package/es/index122.mjs +2 -8
- package/es/index123.mjs +2 -327
- package/es/index124.mjs +2 -50
- package/es/index125.mjs +31 -2
- package/es/index126.mjs +19 -65
- package/es/index127.mjs +58 -40
- package/es/index128.mjs +62 -59
- package/es/index129.mjs +15 -45
- package/es/index13.mjs +2 -2
- package/es/index130.mjs +6 -39
- package/es/index131.mjs +7 -2
- package/es/index132.mjs +6 -2
- package/es/index133.mjs +6 -2
- package/es/index134.mjs +4 -30
- package/es/index135.mjs +7 -19
- package/es/index136.mjs +4 -60
- package/es/index14.mjs +3 -3
- package/es/index144.mjs +2 -58
- package/es/index145.mjs +58 -2
- package/es/index146.mjs +2 -2
- package/es/index147.mjs +2 -2
- package/es/index16.mjs +1 -1
- package/es/index167.mjs +1 -1
- package/es/index17.mjs +2 -2
- package/es/index170.mjs +1 -1
- package/es/index171.mjs +1 -1
- package/es/index172.mjs +1 -1
- package/es/index176.mjs +1 -1
- package/es/index177.mjs +1 -1
- package/es/index18.mjs +3 -3
- package/es/index187.mjs +1 -1
- package/es/index194.mjs +1 -1
- package/es/index2.mjs +1 -1
- package/es/index20.mjs +2 -2
- package/es/index21.mjs +1 -1
- package/es/index22.mjs +1 -1
- package/es/index224.mjs +67 -58
- package/es/index225.mjs +31 -9
- package/es/index226.mjs +9 -20
- package/es/index227.mjs +104 -64
- package/es/index228.mjs +102 -26
- package/es/index229.mjs +59 -9
- package/es/index230.mjs +9 -108
- package/es/index231.mjs +19 -106
- package/es/index24.mjs +4 -4
- package/es/index25.mjs +2 -2
- package/es/index26.mjs +1 -1
- package/es/index27.mjs +1 -1
- package/es/index28.mjs +1 -1
- package/es/index3.mjs +1 -1
- package/es/index30.mjs +2 -2
- package/es/index31.mjs +2 -2
- package/es/index32.mjs +2 -2
- package/es/index33.mjs +3 -3
- package/es/index34.mjs +1 -1
- package/es/index36.mjs +3 -3
- package/es/index37.mjs +3 -3
- package/es/index38.mjs +3 -3
- package/es/index39.mjs +3 -3
- package/es/index4.mjs +2 -2
- package/es/index40.mjs +2 -2
- package/es/index41.mjs +1 -1
- package/es/index42.mjs +4 -4
- package/es/index43.mjs +1 -1
- package/es/index44.mjs +2 -2
- package/es/index45.mjs +3 -3
- package/es/index46.mjs +3 -3
- package/es/index47.mjs +2 -2
- package/es/index48.mjs +1 -1
- package/es/index49.mjs +2 -2
- package/es/index50.mjs +1 -1
- package/es/index51.mjs +11 -8
- package/es/index52.mjs +8 -11
- package/es/index53.mjs +21 -28
- package/es/index54.mjs +8 -47
- package/es/index55.mjs +28 -409
- package/es/index56.mjs +47 -21
- package/es/index57.mjs +47 -45
- package/es/index58.mjs +30 -8
- package/es/index59.mjs +17 -49
- package/es/index6.mjs +3 -3
- package/es/index60.mjs +28 -61
- package/es/index61.mjs +407 -58
- package/es/index62.mjs +27 -27
- package/es/index63.mjs +35 -20
- package/es/index64.mjs +3 -3
- package/es/index65.mjs +35 -30
- package/es/index67.mjs +9 -9
- package/es/index68.mjs +2 -2
- package/es/index69.mjs +2 -2
- package/es/index71.mjs +6 -6
- package/es/index8.mjs +3 -3
- package/es/index82.mjs +83 -60
- package/es/index83.mjs +1 -1
- package/es/index85.mjs +60 -12
- package/es/index86.mjs +57 -56
- package/es/index87.mjs +16 -0
- package/es/index88.mjs +61 -0
- package/es/index89.mjs +5 -5
- package/es/index9.mjs +1 -1
- package/es/index90.mjs +3 -3
- package/es/index91.mjs +1 -1
- package/es/index93.mjs +2 -2
- package/es/index94.mjs +224 -380
- package/es/index95.mjs +2 -125
- package/es/index96.mjs +63 -130
- package/es/index97.mjs +3 -2
- package/es/index98.mjs +5 -235
- package/es/index99.mjs +11 -2
- package/package.json +1 -1
package/es/index95.mjs
CHANGED
|
@@ -1,127 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
x: t,
|
|
3
|
-
y: t
|
|
4
|
-
}), p = {
|
|
5
|
-
left: "right",
|
|
6
|
-
right: "left",
|
|
7
|
-
bottom: "top",
|
|
8
|
-
top: "bottom"
|
|
9
|
-
};
|
|
10
|
-
function j(t, n, e) {
|
|
11
|
-
return h(t, m(n, e));
|
|
12
|
-
}
|
|
13
|
-
function L(t, n) {
|
|
14
|
-
return typeof t == "function" ? t(n) : t;
|
|
15
|
-
}
|
|
16
|
-
function g(t) {
|
|
17
|
-
return t.split("-")[0];
|
|
18
|
-
}
|
|
19
|
-
function a(t) {
|
|
20
|
-
return t.split("-")[1];
|
|
21
|
-
}
|
|
22
|
-
function x(t) {
|
|
23
|
-
return t === "x" ? "y" : "x";
|
|
24
|
-
}
|
|
25
|
-
function b(t) {
|
|
26
|
-
return t === "y" ? "height" : "width";
|
|
27
|
-
}
|
|
28
|
-
function d(t) {
|
|
29
|
-
const n = t[0];
|
|
30
|
-
return n === "t" || n === "b" ? "y" : "x";
|
|
31
|
-
}
|
|
32
|
-
function A(t) {
|
|
33
|
-
return x(d(t));
|
|
34
|
-
}
|
|
35
|
-
function E(t, n, e) {
|
|
36
|
-
e === void 0 && (e = !1);
|
|
37
|
-
const r = a(t), i = A(t), o = b(i);
|
|
38
|
-
let c = i === "x" ? r === (e ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
39
|
-
return n.reference[o] > n.floating[o] && (c = u(c)), [c, u(c)];
|
|
40
|
-
}
|
|
41
|
-
function R(t) {
|
|
42
|
-
const n = u(t);
|
|
43
|
-
return [s(t), n, s(n)];
|
|
44
|
-
}
|
|
45
|
-
function s(t) {
|
|
46
|
-
return t.includes("start") ? t.replace("start", "end") : t.replace("end", "start");
|
|
47
|
-
}
|
|
48
|
-
const f = ["left", "right"], l = ["right", "left"], P = ["top", "bottom"], y = ["bottom", "top"];
|
|
49
|
-
function O(t, n, e) {
|
|
50
|
-
switch (t) {
|
|
51
|
-
case "top":
|
|
52
|
-
case "bottom":
|
|
53
|
-
return e ? n ? l : f : n ? f : l;
|
|
54
|
-
case "left":
|
|
55
|
-
case "right":
|
|
56
|
-
return n ? P : y;
|
|
57
|
-
default:
|
|
58
|
-
return [];
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
function T(t, n, e, r) {
|
|
62
|
-
const i = a(t);
|
|
63
|
-
let o = O(g(t), e === "start", r);
|
|
64
|
-
return i && (o = o.map((c) => c + "-" + i), n && (o = o.concat(o.map(s)))), o;
|
|
65
|
-
}
|
|
66
|
-
function u(t) {
|
|
67
|
-
const n = g(t);
|
|
68
|
-
return p[n] + t.slice(n.length);
|
|
69
|
-
}
|
|
70
|
-
function M(t) {
|
|
71
|
-
return {
|
|
72
|
-
top: 0,
|
|
73
|
-
right: 0,
|
|
74
|
-
bottom: 0,
|
|
75
|
-
left: 0,
|
|
76
|
-
...t
|
|
77
|
-
};
|
|
78
|
-
}
|
|
79
|
-
function k(t) {
|
|
80
|
-
return typeof t != "number" ? M(t) : {
|
|
81
|
-
top: t,
|
|
82
|
-
right: t,
|
|
83
|
-
bottom: t,
|
|
84
|
-
left: t
|
|
85
|
-
};
|
|
86
|
-
}
|
|
87
|
-
function q(t) {
|
|
88
|
-
const {
|
|
89
|
-
x: n,
|
|
90
|
-
y: e,
|
|
91
|
-
width: r,
|
|
92
|
-
height: i
|
|
93
|
-
} = t;
|
|
94
|
-
return {
|
|
95
|
-
width: r,
|
|
96
|
-
height: i,
|
|
97
|
-
top: e,
|
|
98
|
-
left: n,
|
|
99
|
-
right: n + r,
|
|
100
|
-
bottom: e + i,
|
|
101
|
-
x: n,
|
|
102
|
-
y: e
|
|
103
|
-
};
|
|
104
|
-
}
|
|
1
|
+
var a = {};
|
|
105
2
|
export {
|
|
106
|
-
|
|
107
|
-
C as createCoords,
|
|
108
|
-
L as evaluate,
|
|
109
|
-
M as expandPaddingObject,
|
|
110
|
-
w as floor,
|
|
111
|
-
a as getAlignment,
|
|
112
|
-
A as getAlignmentAxis,
|
|
113
|
-
E as getAlignmentSides,
|
|
114
|
-
b as getAxisLength,
|
|
115
|
-
R as getExpandedPlacements,
|
|
116
|
-
s as getOppositeAlignmentPlacement,
|
|
117
|
-
x as getOppositeAxis,
|
|
118
|
-
T as getOppositeAxisPlacements,
|
|
119
|
-
u as getOppositePlacement,
|
|
120
|
-
k as getPaddingObject,
|
|
121
|
-
g as getSide,
|
|
122
|
-
d as getSideAxis,
|
|
123
|
-
h as max,
|
|
124
|
-
m as min,
|
|
125
|
-
q as rectToClientRect,
|
|
126
|
-
S as round
|
|
3
|
+
a as __exports
|
|
127
4
|
};
|
package/es/index96.mjs
CHANGED
|
@@ -1,136 +1,69 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
function i(t) {
|
|
8
|
-
var n;
|
|
9
|
-
return (t == null || (n = t.ownerDocument) == null ? void 0 : n.defaultView) || window;
|
|
10
|
-
}
|
|
11
|
-
function L(t) {
|
|
12
|
-
var n;
|
|
13
|
-
return (n = (m(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : n.documentElement;
|
|
14
|
-
}
|
|
15
|
-
function m(t) {
|
|
16
|
-
return u() ? t instanceof Node || t instanceof i(t).Node : !1;
|
|
17
|
-
}
|
|
18
|
-
function h(t) {
|
|
19
|
-
return u() ? t instanceof Element || t instanceof i(t).Element : !1;
|
|
20
|
-
}
|
|
21
|
-
function g(t) {
|
|
22
|
-
return u() ? t instanceof HTMLElement || t instanceof i(t).HTMLElement : !1;
|
|
23
|
-
}
|
|
24
|
-
function p(t) {
|
|
25
|
-
return !u() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof i(t).ShadowRoot;
|
|
26
|
-
}
|
|
27
|
-
function y(t) {
|
|
28
|
-
const {
|
|
29
|
-
overflow: n,
|
|
30
|
-
overflowX: r,
|
|
31
|
-
overflowY: c,
|
|
32
|
-
display: e
|
|
33
|
-
} = b(t);
|
|
34
|
-
return /auto|scroll|overlay|hidden|clip/.test(n + c + r) && e !== "inline" && e !== "contents";
|
|
35
|
-
}
|
|
36
|
-
function _(t) {
|
|
37
|
-
return /^(table|td|th)$/.test(a(t));
|
|
38
|
-
}
|
|
39
|
-
function T(t) {
|
|
40
|
-
try {
|
|
41
|
-
if (t.matches(":popover-open"))
|
|
42
|
-
return !0;
|
|
43
|
-
} catch {
|
|
1
|
+
import { tzOffset as s } from "./index231.mjs";
|
|
2
|
+
class n extends Date {
|
|
3
|
+
//#region static
|
|
4
|
+
constructor(...e) {
|
|
5
|
+
super(), e.length > 1 && typeof e[e.length - 1] == "string" && (this.timeZone = e.pop()), this.internal = /* @__PURE__ */ new Date(), isNaN(s(this.timeZone, this)) ? this.setTime(NaN) : e.length ? typeof e[0] == "number" && (e.length === 1 || e.length === 2 && typeof e[1] != "number") ? this.setTime(e[0]) : typeof e[0] == "string" ? this.setTime(+new Date(e[0])) : e[0] instanceof Date ? this.setTime(+e[0]) : (this.setTime(+new Date(...e)), U(this), a(this)) : this.setTime(Date.now());
|
|
44
6
|
}
|
|
45
|
-
|
|
46
|
-
return
|
|
47
|
-
} catch {
|
|
48
|
-
return !1;
|
|
7
|
+
static tz(e, ...o) {
|
|
8
|
+
return o.length ? new n(...o, e) : new n(Date.now(), e);
|
|
49
9
|
}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
10
|
+
//#endregion
|
|
11
|
+
//#region time zone
|
|
12
|
+
withTimeZone(e) {
|
|
13
|
+
return new n(+this, e);
|
|
14
|
+
}
|
|
15
|
+
getTimezoneOffset() {
|
|
16
|
+
const e = -s(this.timeZone, this);
|
|
17
|
+
return e > 0 ? Math.floor(e) : Math.ceil(e);
|
|
18
|
+
}
|
|
19
|
+
//#endregion
|
|
20
|
+
//#region time
|
|
21
|
+
setTime(e) {
|
|
22
|
+
return Date.prototype.setTime.apply(this, arguments), a(this), +this;
|
|
23
|
+
}
|
|
24
|
+
//#endregion
|
|
25
|
+
//#region date-fns integration
|
|
26
|
+
[Symbol.for("constructDateFrom")](e) {
|
|
27
|
+
return new n(+new Date(e), this.timeZone);
|
|
28
|
+
}
|
|
29
|
+
//#endregion
|
|
30
|
+
}
|
|
31
|
+
const D = /^(get|set)(?!UTC)/;
|
|
32
|
+
Object.getOwnPropertyNames(Date.prototype).forEach((t) => {
|
|
33
|
+
if (!D.test(t)) return;
|
|
34
|
+
const e = t.replace(D, "$1UTC");
|
|
35
|
+
n.prototype[e] && (t.startsWith("get") ? n.prototype[t] = function() {
|
|
36
|
+
return this.internal[e]();
|
|
37
|
+
} : (n.prototype[t] = function() {
|
|
38
|
+
return Date.prototype[e].apply(this.internal, arguments), H(this), +this;
|
|
39
|
+
}, n.prototype[e] = function() {
|
|
40
|
+
return Date.prototype[e].apply(this, arguments), a(this), +this;
|
|
41
|
+
}));
|
|
42
|
+
});
|
|
43
|
+
function a(t) {
|
|
44
|
+
t.internal.setTime(+t), t.internal.setUTCSeconds(t.internal.getUTCSeconds() - Math.round(-s(t.timeZone, t) * 60));
|
|
45
|
+
}
|
|
46
|
+
function H(t) {
|
|
47
|
+
Date.prototype.setFullYear.call(t, t.internal.getUTCFullYear(), t.internal.getUTCMonth(), t.internal.getUTCDate()), Date.prototype.setHours.call(t, t.internal.getUTCHours(), t.internal.getUTCMinutes(), t.internal.getUTCSeconds(), t.internal.getUTCMilliseconds()), U(t);
|
|
48
|
+
}
|
|
49
|
+
function U(t) {
|
|
50
|
+
const e = s(t.timeZone, t), o = e > 0 ? Math.floor(e) : Math.ceil(e), i = /* @__PURE__ */ new Date(+t);
|
|
51
|
+
i.setUTCHours(i.getUTCHours() - 1);
|
|
52
|
+
const r = -(/* @__PURE__ */ new Date(+t)).getTimezoneOffset(), g = -(/* @__PURE__ */ new Date(+i)).getTimezoneOffset(), m = r - g, M = Date.prototype.getHours.apply(t) !== t.internal.getUTCHours();
|
|
53
|
+
m && M && t.internal.setUTCMinutes(t.internal.getUTCMinutes() + m);
|
|
54
|
+
const f = r - o;
|
|
55
|
+
f && Date.prototype.setUTCMinutes.call(t, Date.prototype.getUTCMinutes.call(t) + f);
|
|
56
|
+
const l = /* @__PURE__ */ new Date(+t);
|
|
57
|
+
l.setUTCSeconds(0);
|
|
58
|
+
const y = r > 0 ? l.getSeconds() : (l.getSeconds() - 60) % 60, c = Math.round(-(s(t.timeZone, t) * 60)) % 60;
|
|
59
|
+
(c || y) && (t.internal.setUTCSeconds(t.internal.getUTCSeconds() + c), Date.prototype.setUTCSeconds.call(t, Date.prototype.getUTCSeconds.call(t) + c + y));
|
|
60
|
+
const p = s(t.timeZone, t), u = p > 0 ? Math.floor(p) : Math.ceil(p), w = -(/* @__PURE__ */ new Date(+t)).getTimezoneOffset() - u, O = u !== o, C = w - f;
|
|
61
|
+
if (O && C) {
|
|
62
|
+
Date.prototype.setUTCMinutes.call(t, Date.prototype.getUTCMinutes.call(t) + C);
|
|
63
|
+
const h = s(t.timeZone, t), S = h > 0 ? Math.floor(h) : Math.ceil(h), T = u - S;
|
|
64
|
+
T && (t.internal.setUTCMinutes(t.internal.getUTCMinutes() + T), Date.prototype.setUTCMinutes.call(t, Date.prototype.getUTCMinutes.call(t) + T));
|
|
65
65
|
}
|
|
66
|
-
return null;
|
|
67
|
-
}
|
|
68
|
-
function R() {
|
|
69
|
-
return s == null && (s = typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none")), s;
|
|
70
|
-
}
|
|
71
|
-
function N(t) {
|
|
72
|
-
return /^(html|body|#document)$/.test(a(t));
|
|
73
|
-
}
|
|
74
|
-
function b(t) {
|
|
75
|
-
return i(t).getComputedStyle(t);
|
|
76
|
-
}
|
|
77
|
-
function $(t) {
|
|
78
|
-
return h(t) ? {
|
|
79
|
-
scrollLeft: t.scrollLeft,
|
|
80
|
-
scrollTop: t.scrollTop
|
|
81
|
-
} : {
|
|
82
|
-
scrollLeft: t.scrollX,
|
|
83
|
-
scrollTop: t.scrollY
|
|
84
|
-
};
|
|
85
|
-
}
|
|
86
|
-
function f(t) {
|
|
87
|
-
if (a(t) === "html")
|
|
88
|
-
return t;
|
|
89
|
-
const n = (
|
|
90
|
-
// Step into the shadow DOM of the parent of a slotted node.
|
|
91
|
-
t.assignedSlot || // DOM Element detected.
|
|
92
|
-
t.parentNode || // ShadowRoot detected.
|
|
93
|
-
p(t) && t.host || // Fallback.
|
|
94
|
-
L(t)
|
|
95
|
-
);
|
|
96
|
-
return p(n) ? n.host : n;
|
|
97
|
-
}
|
|
98
|
-
function S(t) {
|
|
99
|
-
const n = f(t);
|
|
100
|
-
return N(n) ? t.ownerDocument ? t.ownerDocument.body : t.body : g(n) && y(n) ? n : S(n);
|
|
101
|
-
}
|
|
102
|
-
function w(t, n, r) {
|
|
103
|
-
var c;
|
|
104
|
-
n === void 0 && (n = []), r === void 0 && (r = !0);
|
|
105
|
-
const e = S(t), E = e === ((c = t.ownerDocument) == null ? void 0 : c.body), l = i(e);
|
|
106
|
-
if (E) {
|
|
107
|
-
const d = k(l);
|
|
108
|
-
return n.concat(l, l.visualViewport || [], y(e) ? e : [], d && r ? w(d) : []);
|
|
109
|
-
} else
|
|
110
|
-
return n.concat(e, w(e, [], r));
|
|
111
|
-
}
|
|
112
|
-
function k(t) {
|
|
113
|
-
return t.parent && Object.getPrototypeOf(t.parent) ? t.frameElement : null;
|
|
114
66
|
}
|
|
115
67
|
export {
|
|
116
|
-
|
|
117
|
-
W as getContainingBlock,
|
|
118
|
-
L as getDocumentElement,
|
|
119
|
-
k as getFrameElement,
|
|
120
|
-
S as getNearestOverflowAncestor,
|
|
121
|
-
a as getNodeName,
|
|
122
|
-
$ as getNodeScroll,
|
|
123
|
-
w as getOverflowAncestors,
|
|
124
|
-
f as getParentNode,
|
|
125
|
-
i as getWindow,
|
|
126
|
-
D as isContainingBlock,
|
|
127
|
-
h as isElement,
|
|
128
|
-
g as isHTMLElement,
|
|
129
|
-
N as isLastTraversableNode,
|
|
130
|
-
m as isNode,
|
|
131
|
-
y as isOverflowElement,
|
|
132
|
-
p as isShadowRoot,
|
|
133
|
-
_ as isTableElement,
|
|
134
|
-
T as isTopLayer,
|
|
135
|
-
R as isWebKit
|
|
68
|
+
n as TZDateMini
|
|
136
69
|
};
|
package/es/index97.mjs
CHANGED
package/es/index98.mjs
CHANGED
|
@@ -1,237 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import { p as x } from "./index105.mjs";
|
|
5
|
-
import { M as A } from "./index106.mjs";
|
|
6
|
-
import "./index107.mjs";
|
|
7
|
-
import "./index108.mjs";
|
|
8
|
-
import D from "./index109.mjs";
|
|
9
|
-
import { __exports as w } from "./index110.mjs";
|
|
10
|
-
import { __exports as q } from "./index111.mjs";
|
|
11
|
-
Object.defineProperty(p, "__esModule", {
|
|
12
|
-
value: !0
|
|
13
|
-
});
|
|
14
|
-
p.bodyOpenClassName = p.portalClassName = void 0;
|
|
15
|
-
var g = Object.assign || function(r) {
|
|
16
|
-
for (var e = 1; e < arguments.length; e++) {
|
|
17
|
-
var o = arguments[e];
|
|
18
|
-
for (var a in o)
|
|
19
|
-
Object.prototype.hasOwnProperty.call(o, a) && (r[a] = o[a]);
|
|
20
|
-
}
|
|
21
|
-
return r;
|
|
22
|
-
}, H = /* @__PURE__ */ function() {
|
|
23
|
-
function r(e, o) {
|
|
24
|
-
for (var a = 0; a < o.length; a++) {
|
|
25
|
-
var n = o[a];
|
|
26
|
-
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, n.key, n);
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
return function(e, o, a) {
|
|
30
|
-
return o && r(e.prototype, o), a && r(e, a), e;
|
|
31
|
-
};
|
|
32
|
-
}(), R = N, O = m(R), U = T, _ = m(U), L = x, t = m(L), k = A, C = m(k), $ = q, W = B($), u = w, M = m(u), F = D;
|
|
33
|
-
function B(r) {
|
|
34
|
-
if (r && r.__esModule)
|
|
35
|
-
return r;
|
|
36
|
-
var e = {};
|
|
37
|
-
if (r != null)
|
|
38
|
-
for (var o in r)
|
|
39
|
-
Object.prototype.hasOwnProperty.call(r, o) && (e[o] = r[o]);
|
|
40
|
-
return e.default = r, e;
|
|
1
|
+
import { toDate as o } from "./index149.mjs";
|
|
2
|
+
function f(r, t) {
|
|
3
|
+
return +o(r) < +o(t);
|
|
41
4
|
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
}
|
|
45
|
-
function j(r, e) {
|
|
46
|
-
if (!(r instanceof e))
|
|
47
|
-
throw new TypeError("Cannot call a class as a function");
|
|
48
|
-
}
|
|
49
|
-
function E(r, e) {
|
|
50
|
-
if (!r)
|
|
51
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
52
|
-
return e && (typeof e == "object" || typeof e == "function") ? e : r;
|
|
53
|
-
}
|
|
54
|
-
function I(r, e) {
|
|
55
|
-
if (typeof e != "function" && e !== null)
|
|
56
|
-
throw new TypeError("Super expression must either be null or a function, not " + typeof e);
|
|
57
|
-
r.prototype = Object.create(e && e.prototype, { constructor: { value: r, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(r, e) : r.__proto__ = e);
|
|
58
|
-
}
|
|
59
|
-
var V = p.portalClassName = "ReactModalPortal", z = p.bodyOpenClassName = "ReactModal__Body--open", s = u.canUseDOM && _.default.createPortal !== void 0, b = function(e) {
|
|
60
|
-
return document.createElement(e);
|
|
61
|
-
}, P = function() {
|
|
62
|
-
return s ? _.default.createPortal : _.default.unstable_renderSubtreeIntoContainer;
|
|
63
|
-
};
|
|
64
|
-
function y(r) {
|
|
65
|
-
return r();
|
|
66
|
-
}
|
|
67
|
-
var d = function(r) {
|
|
68
|
-
I(e, r);
|
|
69
|
-
function e() {
|
|
70
|
-
var o, a, n, l;
|
|
71
|
-
j(this, e);
|
|
72
|
-
for (var c = arguments.length, v = Array(c), f = 0; f < c; f++)
|
|
73
|
-
v[f] = arguments[f];
|
|
74
|
-
return l = (a = (n = E(this, (o = e.__proto__ || Object.getPrototypeOf(e)).call.apply(o, [this].concat(v))), n), n.removePortal = function() {
|
|
75
|
-
!s && _.default.unmountComponentAtNode(n.node);
|
|
76
|
-
var i = y(n.props.parentSelector);
|
|
77
|
-
i && i.contains(n.node) ? i.removeChild(n.node) : console.warn('React-Modal: "parentSelector" prop did not returned any DOM element. Make sure that the parent element is unmounted to avoid any memory leaks.');
|
|
78
|
-
}, n.portalRef = function(i) {
|
|
79
|
-
n.portal = i;
|
|
80
|
-
}, n.renderPortal = function(i) {
|
|
81
|
-
var h = P(), S = h(n, O.default.createElement(C.default, g({ defaultStyles: e.defaultStyles }, i)), n.node);
|
|
82
|
-
n.portalRef(S);
|
|
83
|
-
}, a), E(n, l);
|
|
84
|
-
}
|
|
85
|
-
return H(e, [{
|
|
86
|
-
key: "componentDidMount",
|
|
87
|
-
value: function() {
|
|
88
|
-
if (u.canUseDOM) {
|
|
89
|
-
s || (this.node = b("div")), this.node.className = this.props.portalClassName;
|
|
90
|
-
var a = y(this.props.parentSelector);
|
|
91
|
-
a.appendChild(this.node), !s && this.renderPortal(this.props);
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
}, {
|
|
95
|
-
key: "getSnapshotBeforeUpdate",
|
|
96
|
-
value: function(a) {
|
|
97
|
-
var n = y(a.parentSelector), l = y(this.props.parentSelector);
|
|
98
|
-
return { prevParent: n, nextParent: l };
|
|
99
|
-
}
|
|
100
|
-
}, {
|
|
101
|
-
key: "componentDidUpdate",
|
|
102
|
-
value: function(a, n, l) {
|
|
103
|
-
if (u.canUseDOM) {
|
|
104
|
-
var c = this.props, v = c.isOpen, f = c.portalClassName;
|
|
105
|
-
a.portalClassName !== f && (this.node.className = f);
|
|
106
|
-
var i = l.prevParent, h = l.nextParent;
|
|
107
|
-
h !== i && (i.removeChild(this.node), h.appendChild(this.node)), !(!a.isOpen && !v) && !s && this.renderPortal(this.props);
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
}, {
|
|
111
|
-
key: "componentWillUnmount",
|
|
112
|
-
value: function() {
|
|
113
|
-
if (!(!u.canUseDOM || !this.node || !this.portal)) {
|
|
114
|
-
var a = this.portal.state, n = Date.now(), l = a.isOpen && this.props.closeTimeoutMS && (a.closesAt || n + this.props.closeTimeoutMS);
|
|
115
|
-
l ? (a.beforeClose || this.portal.closeWithTimeout(), setTimeout(this.removePortal, l - n)) : this.removePortal();
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
}, {
|
|
119
|
-
key: "render",
|
|
120
|
-
value: function() {
|
|
121
|
-
if (!u.canUseDOM || !s)
|
|
122
|
-
return null;
|
|
123
|
-
!this.node && s && (this.node = b("div"));
|
|
124
|
-
var a = P();
|
|
125
|
-
return a(O.default.createElement(C.default, g({
|
|
126
|
-
ref: this.portalRef,
|
|
127
|
-
defaultStyles: e.defaultStyles
|
|
128
|
-
}, this.props)), this.node);
|
|
129
|
-
}
|
|
130
|
-
}], [{
|
|
131
|
-
key: "setAppElement",
|
|
132
|
-
value: function(a) {
|
|
133
|
-
W.setElement(a);
|
|
134
|
-
}
|
|
135
|
-
/* eslint-disable react/no-unused-prop-types */
|
|
136
|
-
/* eslint-enable react/no-unused-prop-types */
|
|
137
|
-
}]), e;
|
|
138
|
-
}(R.Component);
|
|
139
|
-
d.propTypes = {
|
|
140
|
-
isOpen: t.default.bool.isRequired,
|
|
141
|
-
style: t.default.shape({
|
|
142
|
-
content: t.default.object,
|
|
143
|
-
overlay: t.default.object
|
|
144
|
-
}),
|
|
145
|
-
portalClassName: t.default.string,
|
|
146
|
-
bodyOpenClassName: t.default.string,
|
|
147
|
-
htmlOpenClassName: t.default.string,
|
|
148
|
-
className: t.default.oneOfType([t.default.string, t.default.shape({
|
|
149
|
-
base: t.default.string.isRequired,
|
|
150
|
-
afterOpen: t.default.string.isRequired,
|
|
151
|
-
beforeClose: t.default.string.isRequired
|
|
152
|
-
})]),
|
|
153
|
-
overlayClassName: t.default.oneOfType([t.default.string, t.default.shape({
|
|
154
|
-
base: t.default.string.isRequired,
|
|
155
|
-
afterOpen: t.default.string.isRequired,
|
|
156
|
-
beforeClose: t.default.string.isRequired
|
|
157
|
-
})]),
|
|
158
|
-
appElement: t.default.oneOfType([t.default.instanceOf(M.default), t.default.instanceOf(u.SafeHTMLCollection), t.default.instanceOf(u.SafeNodeList), t.default.arrayOf(t.default.instanceOf(M.default))]),
|
|
159
|
-
onAfterOpen: t.default.func,
|
|
160
|
-
onRequestClose: t.default.func,
|
|
161
|
-
closeTimeoutMS: t.default.number,
|
|
162
|
-
ariaHideApp: t.default.bool,
|
|
163
|
-
shouldFocusAfterRender: t.default.bool,
|
|
164
|
-
shouldCloseOnOverlayClick: t.default.bool,
|
|
165
|
-
shouldReturnFocusAfterClose: t.default.bool,
|
|
166
|
-
preventScroll: t.default.bool,
|
|
167
|
-
parentSelector: t.default.func,
|
|
168
|
-
aria: t.default.object,
|
|
169
|
-
data: t.default.object,
|
|
170
|
-
role: t.default.string,
|
|
171
|
-
contentLabel: t.default.string,
|
|
172
|
-
shouldCloseOnEsc: t.default.bool,
|
|
173
|
-
overlayRef: t.default.func,
|
|
174
|
-
contentRef: t.default.func,
|
|
175
|
-
id: t.default.string,
|
|
176
|
-
overlayElement: t.default.func,
|
|
177
|
-
contentElement: t.default.func
|
|
178
|
-
};
|
|
179
|
-
d.defaultProps = {
|
|
180
|
-
isOpen: !1,
|
|
181
|
-
portalClassName: V,
|
|
182
|
-
bodyOpenClassName: z,
|
|
183
|
-
role: "dialog",
|
|
184
|
-
ariaHideApp: !0,
|
|
185
|
-
closeTimeoutMS: 0,
|
|
186
|
-
shouldFocusAfterRender: !0,
|
|
187
|
-
shouldCloseOnEsc: !0,
|
|
188
|
-
shouldCloseOnOverlayClick: !0,
|
|
189
|
-
shouldReturnFocusAfterClose: !0,
|
|
190
|
-
preventScroll: !1,
|
|
191
|
-
parentSelector: function() {
|
|
192
|
-
return document.body;
|
|
193
|
-
},
|
|
194
|
-
overlayElement: function(e, o) {
|
|
195
|
-
return O.default.createElement(
|
|
196
|
-
"div",
|
|
197
|
-
e,
|
|
198
|
-
o
|
|
199
|
-
);
|
|
200
|
-
},
|
|
201
|
-
contentElement: function(e, o) {
|
|
202
|
-
return O.default.createElement(
|
|
203
|
-
"div",
|
|
204
|
-
e,
|
|
205
|
-
o
|
|
206
|
-
);
|
|
207
|
-
}
|
|
208
|
-
};
|
|
209
|
-
d.defaultStyles = {
|
|
210
|
-
overlay: {
|
|
211
|
-
position: "fixed",
|
|
212
|
-
top: 0,
|
|
213
|
-
left: 0,
|
|
214
|
-
right: 0,
|
|
215
|
-
bottom: 0,
|
|
216
|
-
backgroundColor: "rgba(255, 255, 255, 0.75)"
|
|
217
|
-
},
|
|
218
|
-
content: {
|
|
219
|
-
position: "absolute",
|
|
220
|
-
top: "40px",
|
|
221
|
-
left: "40px",
|
|
222
|
-
right: "40px",
|
|
223
|
-
bottom: "40px",
|
|
224
|
-
border: "1px solid #ccc",
|
|
225
|
-
background: "#fff",
|
|
226
|
-
overflow: "auto",
|
|
227
|
-
WebkitOverflowScrolling: "touch",
|
|
228
|
-
borderRadius: "4px",
|
|
229
|
-
outline: "none",
|
|
230
|
-
padding: "20px"
|
|
231
|
-
}
|
|
5
|
+
export {
|
|
6
|
+
f as isBefore
|
|
232
7
|
};
|
|
233
|
-
(0, F.polyfill)(d);
|
|
234
|
-
process.env.NODE_ENV !== "production" && (d.setCreateHTMLElement = function(r) {
|
|
235
|
-
return b = r;
|
|
236
|
-
});
|
|
237
|
-
p.default = d;
|
package/es/index99.mjs
CHANGED
|
@@ -1,4 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
import { normalizeDates as m } from "./index153.mjs";
|
|
2
|
+
import { startOfDay as t } from "./index154.mjs";
|
|
3
|
+
function s(r, a, e) {
|
|
4
|
+
const [o, i] = m(
|
|
5
|
+
e?.in,
|
|
6
|
+
r,
|
|
7
|
+
a
|
|
8
|
+
);
|
|
9
|
+
return +t(o) == +t(i);
|
|
10
|
+
}
|
|
2
11
|
export {
|
|
3
|
-
|
|
12
|
+
s as isSameDay
|
|
4
13
|
};
|