@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/index127.mjs
CHANGED
|
@@ -1,45 +1,63 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
(
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
return e && e.__esModule ? e : { default: e };
|
|
1
|
+
function l() {
|
|
2
|
+
var t = this.constructor.getDerivedStateFromProps(this.props, this.state);
|
|
3
|
+
t != null && this.setState(t);
|
|
4
|
+
}
|
|
5
|
+
function p(t) {
|
|
6
|
+
function e(o) {
|
|
7
|
+
var n = this.constructor.getDerivedStateFromProps(t, o);
|
|
8
|
+
return n ?? null;
|
|
10
9
|
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
this.setState(e.bind(this));
|
|
11
|
+
}
|
|
12
|
+
function r(t, e) {
|
|
13
|
+
try {
|
|
14
|
+
var o = this.props, n = this.state;
|
|
15
|
+
this.props = t, this.state = e, this.__reactInternalSnapshotFlag = !0, this.__reactInternalSnapshot = this.getSnapshotBeforeUpdate(
|
|
16
|
+
o,
|
|
17
|
+
n
|
|
18
|
+
);
|
|
19
|
+
} finally {
|
|
20
|
+
this.props = o, this.state = n;
|
|
14
21
|
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
22
|
+
}
|
|
23
|
+
l.__suppressDeprecationWarning = !0;
|
|
24
|
+
p.__suppressDeprecationWarning = !0;
|
|
25
|
+
r.__suppressDeprecationWarning = !0;
|
|
26
|
+
function y(t) {
|
|
27
|
+
var e = t.prototype;
|
|
28
|
+
if (!e || !e.isReactComponent)
|
|
29
|
+
throw new Error("Can only polyfill class components");
|
|
30
|
+
if (typeof t.getDerivedStateFromProps != "function" && typeof e.getSnapshotBeforeUpdate != "function")
|
|
31
|
+
return t;
|
|
32
|
+
var o = null, n = null, i = null;
|
|
33
|
+
if (typeof e.componentWillMount == "function" ? o = "componentWillMount" : typeof e.UNSAFE_componentWillMount == "function" && (o = "UNSAFE_componentWillMount"), typeof e.componentWillReceiveProps == "function" ? n = "componentWillReceiveProps" : typeof e.UNSAFE_componentWillReceiveProps == "function" && (n = "UNSAFE_componentWillReceiveProps"), typeof e.componentWillUpdate == "function" ? i = "componentWillUpdate" : typeof e.UNSAFE_componentWillUpdate == "function" && (i = "UNSAFE_componentWillUpdate"), o !== null || n !== null || i !== null) {
|
|
34
|
+
var a = t.displayName || t.name, s = typeof t.getDerivedStateFromProps == "function" ? "getDerivedStateFromProps()" : "getSnapshotBeforeUpdate()";
|
|
35
|
+
throw Error(
|
|
36
|
+
`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
37
|
+
|
|
38
|
+
` + a + " uses " + s + " but also contains the following legacy lifecycles:" + (o !== null ? `
|
|
39
|
+
` + o : "") + (n !== null ? `
|
|
40
|
+
` + n : "") + (i !== null ? `
|
|
41
|
+
` + i : "") + `
|
|
42
|
+
|
|
43
|
+
The above lifecycles should be removed. Learn more about this warning here:
|
|
44
|
+
https://fb.me/react-async-component-lifecycle-hooks`
|
|
45
|
+
);
|
|
39
46
|
}
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
47
|
+
if (typeof t.getDerivedStateFromProps == "function" && (e.componentWillMount = l, e.componentWillReceiveProps = p), typeof e.getSnapshotBeforeUpdate == "function") {
|
|
48
|
+
if (typeof e.componentDidUpdate != "function")
|
|
49
|
+
throw new Error(
|
|
50
|
+
"Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype"
|
|
51
|
+
);
|
|
52
|
+
e.componentWillUpdate = r;
|
|
53
|
+
var c = e.componentDidUpdate;
|
|
54
|
+
e.componentDidUpdate = function(f, u, d) {
|
|
55
|
+
var h = this.__reactInternalSnapshotFlag ? this.__reactInternalSnapshot : d;
|
|
56
|
+
c.call(this, f, u, h);
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
return t;
|
|
60
|
+
}
|
|
43
61
|
export {
|
|
44
|
-
|
|
62
|
+
y as polyfill
|
|
45
63
|
};
|
package/es/index128.mjs
CHANGED
|
@@ -1,62 +1,65 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
function
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
e
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
}
|
|
41
|
-
var u = function(e, n) {
|
|
42
|
-
return e[n] || (e[n] = 0), e[n] += 1, n;
|
|
43
|
-
}, v = function(e, n) {
|
|
44
|
-
return e[n] && (e[n] -= 1), n;
|
|
45
|
-
}, f = function(e, n, r) {
|
|
46
|
-
r.forEach(function(c) {
|
|
47
|
-
u(n, c), e.add(c);
|
|
48
|
-
});
|
|
49
|
-
}, l = function(e, n, r) {
|
|
50
|
-
r.forEach(function(c) {
|
|
51
|
-
v(n, c), n[c] === 0 && e.remove(c);
|
|
1
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import { classNames as $ } from "./index52.mjs";
|
|
3
|
+
import { useMemo as f } from "react";
|
|
4
|
+
import { isInRange as a, isBetween as C } from "./index71.mjs";
|
|
5
|
+
import { isSameDay as s } from "./index99.mjs";
|
|
6
|
+
import { isBefore as I } from "./index98.mjs";
|
|
7
|
+
import { startOfMonth as N } from "./index132.mjs";
|
|
8
|
+
import { isAfter as O } from "./index100.mjs";
|
|
9
|
+
import { endOfMonth as S } from "./index133.mjs";
|
|
10
|
+
import { format as u } from "./index81.mjs";
|
|
11
|
+
function K({
|
|
12
|
+
date: r,
|
|
13
|
+
monthYear: c,
|
|
14
|
+
unavailable: p,
|
|
15
|
+
unavailableFrom: t,
|
|
16
|
+
unavailableTo: i,
|
|
17
|
+
value: n,
|
|
18
|
+
onChange: w,
|
|
19
|
+
highlight: o,
|
|
20
|
+
ariaLabelCurrentDay: E,
|
|
21
|
+
onMouseEnter: y,
|
|
22
|
+
onMouseLeave: M,
|
|
23
|
+
hoverStyle: d
|
|
24
|
+
}) {
|
|
25
|
+
const e = f(
|
|
26
|
+
() => a(r, t, i, p),
|
|
27
|
+
[p, t, i, r]
|
|
28
|
+
), D = f(
|
|
29
|
+
() => !!n && s(n, r) && !(o && (o[0] || o[1])),
|
|
30
|
+
[n, r, o]
|
|
31
|
+
), x = f(
|
|
32
|
+
() => !!o && (o[0] && s(new Date(o[0]), r) || o[1] && s(new Date(o[1]), r) || o[0] && o[1] && C(r, o[0], o[1])),
|
|
33
|
+
[o, r]
|
|
34
|
+
), b = s(r, /* @__PURE__ */ new Date()), B = $({
|
|
35
|
+
"is-current": b,
|
|
36
|
+
"is-faded": I(r, N(c)) || O(r, S(c)),
|
|
37
|
+
"is-unavailable": e,
|
|
38
|
+
"is-selected": D || !!x,
|
|
39
|
+
"is-hovered": !!d
|
|
52
40
|
});
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
41
|
+
return /* @__PURE__ */ m("td", { children: /* @__PURE__ */ m(
|
|
42
|
+
"button",
|
|
43
|
+
{
|
|
44
|
+
className: B,
|
|
45
|
+
tabIndex: e ? -1 : void 0,
|
|
46
|
+
disabled: e,
|
|
47
|
+
type: "button",
|
|
48
|
+
"aria-pressed": D,
|
|
49
|
+
"aria-label": `${u(r, "EEEE d MMMM yyyy")}${b ? `, ${E}` : ""}`,
|
|
50
|
+
onClick: () => {
|
|
51
|
+
w(r);
|
|
52
|
+
},
|
|
53
|
+
onMouseEnter: () => {
|
|
54
|
+
y && y(r);
|
|
55
|
+
},
|
|
56
|
+
onMouseLeave: () => {
|
|
57
|
+
M && M(r);
|
|
58
|
+
},
|
|
59
|
+
children: /* @__PURE__ */ m("span", { children: u(r, "d") })
|
|
60
|
+
}
|
|
61
|
+
) });
|
|
62
|
+
}
|
|
60
63
|
export {
|
|
61
|
-
|
|
64
|
+
K as DayButton
|
|
62
65
|
};
|
package/es/index129.mjs
CHANGED
|
@@ -1,46 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
});
|
|
5
|
-
|
|
6
|
-
r
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { normalizeInterval as m } from "./index155.mjs";
|
|
2
|
+
import { constructFrom as l } from "./index148.mjs";
|
|
3
|
+
function p(n, a) {
|
|
4
|
+
const { start: t, end: r } = m(a?.in, n);
|
|
5
|
+
let s = +t > +r;
|
|
6
|
+
const c = s ? +t : +r, e = s ? r : t;
|
|
7
|
+
e.setHours(0, 0, 0, 0);
|
|
8
|
+
let i = 1;
|
|
9
|
+
const o = [];
|
|
10
|
+
for (; +e <= c; )
|
|
11
|
+
o.push(l(t, e)), e.setDate(e.getDate() + i), e.setHours(0, 0, 0, 0);
|
|
12
|
+
return s ? o.reverse() : o;
|
|
10
13
|
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
if (e.openInstances.indexOf(n) !== -1) {
|
|
15
|
-
process.env.NODE_ENV !== "production" && console.warn("React-Modal: Cannot register modal instance that's already open");
|
|
16
|
-
return;
|
|
17
|
-
}
|
|
18
|
-
e.openInstances.push(n), e.emit("register");
|
|
19
|
-
}, this.deregister = function(n) {
|
|
20
|
-
var t = e.openInstances.indexOf(n);
|
|
21
|
-
if (t === -1) {
|
|
22
|
-
process.env.NODE_ENV !== "production" && console.warn("React-Modal: Unable to deregister " + n + " as it was never registered");
|
|
23
|
-
return;
|
|
24
|
-
}
|
|
25
|
-
e.openInstances.splice(t, 1), e.emit("deregister");
|
|
26
|
-
}, this.subscribe = function(n) {
|
|
27
|
-
e.subscribers.push(n);
|
|
28
|
-
}, this.emit = function(n) {
|
|
29
|
-
e.subscribers.forEach(function(t) {
|
|
30
|
-
return t(
|
|
31
|
-
n,
|
|
32
|
-
// shallow copy to avoid accidental mutation
|
|
33
|
-
e.openInstances.slice()
|
|
34
|
-
);
|
|
35
|
-
});
|
|
36
|
-
}, this.openInstances = [], this.subscribers = [];
|
|
37
|
-
}, o = new a();
|
|
38
|
-
function c() {
|
|
39
|
-
console.log("portalOpenInstances ----------"), console.log(o.openInstances.length), o.openInstances.forEach(function(s) {
|
|
40
|
-
return console.log(s);
|
|
41
|
-
}), console.log("end portalOpenInstances ----------");
|
|
42
|
-
}
|
|
43
|
-
function l() {
|
|
44
|
-
o = new a();
|
|
45
|
-
}
|
|
46
|
-
r.default = o;
|
|
14
|
+
export {
|
|
15
|
+
p as eachDayOfInterval
|
|
16
|
+
};
|
package/es/index13.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as h, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { classNames as f } from "./
|
|
3
|
-
import { renderHTMLLink as p } from "./
|
|
2
|
+
import { classNames as f } from "./index52.mjs";
|
|
3
|
+
import { renderHTMLLink as p } from "./index57.mjs";
|
|
4
4
|
import { Image as x } from "./index25.mjs";
|
|
5
5
|
function $({ title: a, subTitle: m, description: c, children: i, image: e, link: s, className: d, border: o = "normal", highlighted: t = !1, renderLinkFunction: l, qa: n }) {
|
|
6
6
|
const g = {
|
package/es/index130.mjs
CHANGED
|
@@ -1,42 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
});
|
|
7
|
-
d.resetState = f;
|
|
8
|
-
d.log = v;
|
|
9
|
-
var p = i, c = u(p);
|
|
10
|
-
function u(t) {
|
|
11
|
-
return t && t.__esModule ? t : { default: t };
|
|
1
|
+
import { getDefaultOptions as c } from "./index156.mjs";
|
|
2
|
+
import { toDate as f } from "./index149.mjs";
|
|
3
|
+
function k(s, e) {
|
|
4
|
+
const n = c(), o = e?.weekStartsOn ?? e?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, t = f(s, e?.in), a = t.getDay(), r = (a < o ? -7 : 0) + 6 - (a - o);
|
|
5
|
+
return t.setDate(t.getDate() + r), t.setHours(23, 59, 59, 999), t;
|
|
12
6
|
}
|
|
13
|
-
var e = void 0, o = void 0, r = [];
|
|
14
|
-
function f() {
|
|
15
|
-
for (var t = [e, o], n = 0; n < t.length; n++) {
|
|
16
|
-
var a = t[n];
|
|
17
|
-
a && a.parentNode && a.parentNode.removeChild(a);
|
|
18
|
-
}
|
|
19
|
-
e = o = null, r = [];
|
|
20
|
-
}
|
|
21
|
-
function v() {
|
|
22
|
-
console.log("bodyTrap ----------"), console.log(r.length);
|
|
23
|
-
for (var t = [e, o], n = 0; n < t.length; n++) {
|
|
24
|
-
var a = t[n], l = a || {};
|
|
25
|
-
console.log(l.nodeName, l.className, l.id);
|
|
26
|
-
}
|
|
27
|
-
console.log("edn bodyTrap ----------");
|
|
28
|
-
}
|
|
29
|
-
function s() {
|
|
30
|
-
if (r.length === 0) {
|
|
31
|
-
process.env.NODE_ENV !== "production" && console.warn("React-Modal: Open instances > 0 expected");
|
|
32
|
-
return;
|
|
33
|
-
}
|
|
34
|
-
r[r.length - 1].focusContent();
|
|
35
|
-
}
|
|
36
|
-
function m(t, n) {
|
|
37
|
-
!e && !o && (e = document.createElement("div"), e.setAttribute("data-react-modal-body-trap", ""), e.style.position = "absolute", e.style.opacity = "0", e.setAttribute("tabindex", "0"), e.addEventListener("focus", s), o = e.cloneNode(), o.addEventListener("focus", s)), r = n, r.length > 0 ? (document.body.firstChild !== e && document.body.insertBefore(e, document.body.firstChild), document.body.lastChild !== o && document.body.appendChild(o)) : (e.parentElement && e.parentElement.removeChild(e), o.parentElement && o.parentElement.removeChild(o));
|
|
38
|
-
}
|
|
39
|
-
c.default.subscribe(m);
|
|
40
7
|
export {
|
|
41
|
-
|
|
8
|
+
k as endOfWeek
|
|
42
9
|
};
|
package/es/index131.mjs
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import { getDefaultOptions as c } from "./index156.mjs";
|
|
2
|
+
import { toDate as f } from "./index149.mjs";
|
|
3
|
+
function k(s, e) {
|
|
4
|
+
const o = c(), a = e?.weekStartsOn ?? e?.locale?.options?.weekStartsOn ?? o.weekStartsOn ?? o.locale?.options?.weekStartsOn ?? 0, t = f(s, e?.in), n = t.getDay(), r = (n < a ? 7 : 0) + n - a;
|
|
5
|
+
return t.setDate(t.getDate() - r), t.setHours(0, 0, 0, 0), t;
|
|
6
|
+
}
|
|
2
7
|
export {
|
|
3
|
-
|
|
8
|
+
k as startOfWeek
|
|
4
9
|
};
|
package/es/index132.mjs
CHANGED
package/es/index133.mjs
CHANGED
package/es/index134.mjs
CHANGED
|
@@ -1,33 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var g = function(e, r) {
|
|
5
|
-
var a = arguments.length;
|
|
6
|
-
r = new Array(a > 1 ? a - 1 : 0);
|
|
7
|
-
for (var n = 1; n < a; n++)
|
|
8
|
-
r[n - 1] = arguments[n];
|
|
9
|
-
var u = 0, t = "Warning: " + e.replace(/%s/g, function() {
|
|
10
|
-
return r[u++];
|
|
11
|
-
});
|
|
12
|
-
typeof console < "u" && console.error(t);
|
|
13
|
-
try {
|
|
14
|
-
throw new Error(t);
|
|
15
|
-
} catch {
|
|
16
|
-
}
|
|
17
|
-
};
|
|
18
|
-
i = function(o, e, r) {
|
|
19
|
-
var a = arguments.length;
|
|
20
|
-
r = new Array(a > 2 ? a - 2 : 0);
|
|
21
|
-
for (var n = 2; n < a; n++)
|
|
22
|
-
r[n - 2] = arguments[n];
|
|
23
|
-
if (e === void 0)
|
|
24
|
-
throw new Error(
|
|
25
|
-
"`warning(condition, format, ...args)` requires a warning message argument"
|
|
26
|
-
);
|
|
27
|
-
o || g.apply(null, [e].concat(r));
|
|
28
|
-
};
|
|
1
|
+
import { addDays as o } from "./index135.mjs";
|
|
2
|
+
function a(r, d, e) {
|
|
3
|
+
return o(r, d * 7, e);
|
|
29
4
|
}
|
|
30
|
-
var s = i;
|
|
31
5
|
export {
|
|
32
|
-
|
|
6
|
+
a as addWeeks
|
|
33
7
|
};
|
package/es/index135.mjs
CHANGED
|
@@ -1,21 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
(function(n) {
|
|
8
|
-
(function() {
|
|
9
|
-
var e = !!(typeof window < "u" && window.document && window.document.createElement), o = {
|
|
10
|
-
canUseDOM: e,
|
|
11
|
-
canUseWorkers: typeof Worker < "u",
|
|
12
|
-
canUseEventListeners: e && !!(window.addEventListener || window.attachEvent),
|
|
13
|
-
canUseViewport: e && !!window.screen
|
|
14
|
-
};
|
|
15
|
-
n.exports ? n.exports = o : window.ExecutionEnvironment = o;
|
|
16
|
-
})();
|
|
17
|
-
})(t);
|
|
18
|
-
var i = t.exports;
|
|
1
|
+
import { constructFrom as n } from "./index148.mjs";
|
|
2
|
+
import { toDate as o } from "./index149.mjs";
|
|
3
|
+
function c(e, t, i) {
|
|
4
|
+
const r = o(e, i?.in);
|
|
5
|
+
return isNaN(t) ? n(i?.in || e, NaN) : (t && r.setDate(r.getDate() + t), r);
|
|
6
|
+
}
|
|
19
7
|
export {
|
|
20
|
-
|
|
8
|
+
c as addDays
|
|
21
9
|
};
|
package/es/index136.mjs
CHANGED
|
@@ -1,63 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
t
|
|
4
|
-
}
|
|
5
|
-
function p(t) {
|
|
6
|
-
function e(o) {
|
|
7
|
-
var n = this.constructor.getDerivedStateFromProps(t, o);
|
|
8
|
-
return n ?? null;
|
|
9
|
-
}
|
|
10
|
-
this.setState(e.bind(this));
|
|
11
|
-
}
|
|
12
|
-
function r(t, e) {
|
|
13
|
-
try {
|
|
14
|
-
var o = this.props, n = this.state;
|
|
15
|
-
this.props = t, this.state = e, this.__reactInternalSnapshotFlag = !0, this.__reactInternalSnapshot = this.getSnapshotBeforeUpdate(
|
|
16
|
-
o,
|
|
17
|
-
n
|
|
18
|
-
);
|
|
19
|
-
} finally {
|
|
20
|
-
this.props = o, this.state = n;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
l.__suppressDeprecationWarning = !0;
|
|
24
|
-
p.__suppressDeprecationWarning = !0;
|
|
25
|
-
r.__suppressDeprecationWarning = !0;
|
|
26
|
-
function y(t) {
|
|
27
|
-
var e = t.prototype;
|
|
28
|
-
if (!e || !e.isReactComponent)
|
|
29
|
-
throw new Error("Can only polyfill class components");
|
|
30
|
-
if (typeof t.getDerivedStateFromProps != "function" && typeof e.getSnapshotBeforeUpdate != "function")
|
|
31
|
-
return t;
|
|
32
|
-
var o = null, n = null, i = null;
|
|
33
|
-
if (typeof e.componentWillMount == "function" ? o = "componentWillMount" : typeof e.UNSAFE_componentWillMount == "function" && (o = "UNSAFE_componentWillMount"), typeof e.componentWillReceiveProps == "function" ? n = "componentWillReceiveProps" : typeof e.UNSAFE_componentWillReceiveProps == "function" && (n = "UNSAFE_componentWillReceiveProps"), typeof e.componentWillUpdate == "function" ? i = "componentWillUpdate" : typeof e.UNSAFE_componentWillUpdate == "function" && (i = "UNSAFE_componentWillUpdate"), o !== null || n !== null || i !== null) {
|
|
34
|
-
var a = t.displayName || t.name, s = typeof t.getDerivedStateFromProps == "function" ? "getDerivedStateFromProps()" : "getSnapshotBeforeUpdate()";
|
|
35
|
-
throw Error(
|
|
36
|
-
`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
37
|
-
|
|
38
|
-
` + a + " uses " + s + " but also contains the following legacy lifecycles:" + (o !== null ? `
|
|
39
|
-
` + o : "") + (n !== null ? `
|
|
40
|
-
` + n : "") + (i !== null ? `
|
|
41
|
-
` + i : "") + `
|
|
42
|
-
|
|
43
|
-
The above lifecycles should be removed. Learn more about this warning here:
|
|
44
|
-
https://fb.me/react-async-component-lifecycle-hooks`
|
|
45
|
-
);
|
|
46
|
-
}
|
|
47
|
-
if (typeof t.getDerivedStateFromProps == "function" && (e.componentWillMount = l, e.componentWillReceiveProps = p), typeof e.getSnapshotBeforeUpdate == "function") {
|
|
48
|
-
if (typeof e.componentDidUpdate != "function")
|
|
49
|
-
throw new Error(
|
|
50
|
-
"Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype"
|
|
51
|
-
);
|
|
52
|
-
e.componentWillUpdate = r;
|
|
53
|
-
var c = e.componentDidUpdate;
|
|
54
|
-
e.componentDidUpdate = function(f, u, d) {
|
|
55
|
-
var h = this.__reactInternalSnapshotFlag ? this.__reactInternalSnapshot : d;
|
|
56
|
-
c.call(this, f, u, h);
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
return t;
|
|
1
|
+
import { toDate as o } from "./index149.mjs";
|
|
2
|
+
function n(t, e) {
|
|
3
|
+
return o(t, e?.in).getDate();
|
|
60
4
|
}
|
|
61
5
|
export {
|
|
62
|
-
|
|
6
|
+
n as getDate
|
|
63
7
|
};
|
package/es/index14.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as o, jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import { SCREEN_READER_CLASS as u } from "./
|
|
3
|
-
import { classNames as b } from "./
|
|
4
|
-
import { renderRequiredAsterisk as k } from "./
|
|
2
|
+
import { SCREEN_READER_CLASS as u } from "./index51.mjs";
|
|
3
|
+
import { classNames as b } from "./index52.mjs";
|
|
4
|
+
import { renderRequiredAsterisk as k } from "./index57.mjs";
|
|
5
5
|
function A({
|
|
6
6
|
label: c,
|
|
7
7
|
showLabel: i = !0,
|
package/es/index144.mjs
CHANGED
|
@@ -1,60 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
(function(u, a) {
|
|
3
|
-
Object.defineProperty(a, "__esModule", {
|
|
4
|
-
value: !0
|
|
5
|
-
}), a.default = i;
|
|
6
|
-
/*!
|
|
7
|
-
* Adapted from jQuery UI core
|
|
8
|
-
*
|
|
9
|
-
* http://jqueryui.com
|
|
10
|
-
*
|
|
11
|
-
* Copyright 2014 jQuery Foundation and other contributors
|
|
12
|
-
* Released under the MIT license.
|
|
13
|
-
* http://jquery.org/license
|
|
14
|
-
*
|
|
15
|
-
* http://api.jqueryui.com/category/ui-core/
|
|
16
|
-
*/
|
|
17
|
-
var d = "none", s = "contents", f = /^(input|select|textarea|button|object|iframe)$/;
|
|
18
|
-
function c(t, e) {
|
|
19
|
-
return e.getPropertyValue("overflow") !== "visible" || // if 'overflow: visible' set, check if there is actually any overflow
|
|
20
|
-
t.scrollWidth <= 0 && t.scrollHeight <= 0;
|
|
21
|
-
}
|
|
22
|
-
function b(t) {
|
|
23
|
-
var e = t.offsetWidth <= 0 && t.offsetHeight <= 0;
|
|
24
|
-
if (e && !t.innerHTML) return !0;
|
|
25
|
-
try {
|
|
26
|
-
var r = window.getComputedStyle(t), o = r.getPropertyValue("display");
|
|
27
|
-
return e ? o !== s && c(t, r) : o === d;
|
|
28
|
-
} catch {
|
|
29
|
-
return console.warn("Failed to inspect element style"), !1;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
function l(t) {
|
|
33
|
-
for (var e = t, r = t.getRootNode && t.getRootNode(); e && e !== document.body; ) {
|
|
34
|
-
if (r && e === r && (e = r.host.parentNode), b(e)) return !1;
|
|
35
|
-
e = e.parentNode;
|
|
36
|
-
}
|
|
37
|
-
return !0;
|
|
38
|
-
}
|
|
39
|
-
function v(t, e) {
|
|
40
|
-
var r = t.nodeName.toLowerCase(), o = f.test(r) && !t.disabled || r === "a" && t.href || e;
|
|
41
|
-
return o && l(t);
|
|
42
|
-
}
|
|
43
|
-
function p(t) {
|
|
44
|
-
var e = t.getAttribute("tabindex");
|
|
45
|
-
e === null && (e = void 0);
|
|
46
|
-
var r = isNaN(e);
|
|
47
|
-
return (r || e >= 0) && v(t, !r);
|
|
48
|
-
}
|
|
49
|
-
function i(t) {
|
|
50
|
-
var e = [].slice.call(t.querySelectorAll("*"), 0).reduce(function(r, o) {
|
|
51
|
-
return r.concat(o.shadowRoot ? i(o.shadowRoot) : [o]);
|
|
52
|
-
}, []);
|
|
53
|
-
return e.filter(p);
|
|
54
|
-
}
|
|
55
|
-
u.exports = a.default;
|
|
56
|
-
})(n, n.exports);
|
|
57
|
-
var g = n.exports;
|
|
1
|
+
var e = { exports: {} };
|
|
58
2
|
export {
|
|
59
|
-
|
|
3
|
+
e as __module
|
|
60
4
|
};
|