@okam/stack-ui 1.44.0 → 1.44.1
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/CHANGELOG.md +26 -4
- package/components/Popover/interface.d.ts +3 -3
- package/components/TagGroup/interface.d.ts +2 -2
- package/index.d.ts +2 -0
- package/index145.js +1 -1
- package/index145.mjs +1 -1
- package/index149.mjs +1 -1
- package/index155.js +1 -1
- package/index155.mjs +4 -4
- package/index157.js +1 -1
- package/index157.mjs +4 -4
- package/index158.js +1 -1
- package/index158.mjs +2 -2
- package/index159.js +1 -1
- package/index159.mjs +1 -1
- package/index160.js +1 -1
- package/index160.mjs +1 -1
- package/index161.js +1 -2
- package/index161.mjs +39 -12
- package/index162.js +1 -1
- package/index162.mjs +12 -38
- package/index163.js +2 -1
- package/index163.mjs +26 -11
- package/index164.js +2 -1
- package/index164.mjs +38 -13
- package/index165.js +1 -1
- package/index165.mjs +21 -38
- package/index166.js +1 -2
- package/index166.mjs +44 -24
- package/index167.js +1 -1
- package/index167.mjs +25 -22
- package/index168.js +1 -1
- package/index168.mjs +40 -45
- package/index169.js +2 -1
- package/index169.mjs +57 -25
- package/index170.js +1 -1
- package/index170.mjs +39 -41
- package/index171.js +1 -2
- package/index171.mjs +30 -57
- package/index172.js +2 -1
- package/index172.mjs +8 -38
- package/index173.js +2 -1
- package/index173.mjs +9 -30
- package/index174.js +1 -2
- package/index174.mjs +32 -9
- package/index175.js +1 -2
- package/index175.mjs +14 -9
- package/index176.js +1 -1
- package/index176.mjs +16 -31
- package/index177.js +1 -1
- package/index177.mjs +11 -15
- package/index178.js +2 -1
- package/index178.mjs +47 -16
- package/index179.js +1 -2
- package/index179.mjs +36 -46
- package/index180.js +1 -1
- package/index180.mjs +31 -36
- package/index181.js +1 -1
- package/index181.mjs +20 -31
- package/index182.js +1 -1
- package/index182.mjs +32 -18
- package/index183.js +1 -1
- package/index183.mjs +14 -36
- package/index185.js +1 -1
- package/index185.mjs +3 -3
- package/index186.js +1 -1
- package/index186.mjs +23 -23
- package/index187.js +1 -1
- package/index187.mjs +12 -12
- package/index188.js +1 -1
- package/index188.mjs +104 -105
- package/index191.js +1 -1
- package/index191.mjs +203 -5
- package/index192.js +1 -2
- package/index192.mjs +62 -47
- package/index193.js +1 -1
- package/index193.mjs +141 -9
- package/index194.js +1 -1
- package/index194.mjs +110 -189
- package/index195.js +1 -1
- package/index195.mjs +213 -53
- package/index196.js +1 -1
- package/index196.mjs +176 -129
- package/index197.js +1 -1
- package/index197.mjs +61 -116
- package/index198.js +1 -1
- package/index198.mjs +265 -210
- package/index199.js +1 -1
- package/index199.mjs +88 -180
- package/index2.mjs +35 -35
- package/index200.js +1 -1
- package/index200.mjs +179 -60
- package/index201.js +1 -1
- package/index201.mjs +71 -266
- package/index202.js +1 -1
- package/index202.mjs +52 -92
- package/index203.js +1 -1
- package/index203.mjs +120 -182
- package/index204.js +1 -1
- package/index204.mjs +108 -76
- package/index205.js +1 -1
- package/index205.mjs +114 -50
- package/index206.js +1 -1
- package/index206.mjs +64 -118
- package/index207.js +1 -1
- package/index207.mjs +105 -111
- package/index208.js +1 -1
- package/index208.mjs +47 -117
- package/index209.js +1 -1
- package/index209.mjs +88 -67
- package/index210.js +1 -1
- package/index210.mjs +68 -108
- package/index211.js +1 -1
- package/index211.mjs +45 -41
- package/index212.js +1 -1
- package/index212.mjs +83 -77
- package/index213.js +5 -1
- package/index213.mjs +59 -49
- package/index214.js +1 -1
- package/index214.mjs +12 -57
- package/index215.js +1 -1
- package/index215.mjs +5 -99
- package/index216.js +2 -5
- package/index216.mjs +48 -79
- package/index217.js +1 -1
- package/index217.mjs +9 -130
- package/index218.js +1 -1
- package/index218.mjs +52 -184
- package/index219.js +1 -1
- package/index219.mjs +130 -121
- package/index220.js +1 -1
- package/index220.mjs +14 -134
- package/index221.js +1 -1
- package/index221.mjs +41 -73
- package/index222.js +1 -1
- package/index222.mjs +231 -14
- package/index223.js +1 -1
- package/index223.mjs +120 -90
- package/index224.js +1 -1
- package/index224.mjs +66 -100
- package/index225.js +7 -1
- package/index225.mjs +439 -4
- package/index226.js +1 -1
- package/index226.mjs +58 -3
- package/index227.js +1 -1
- package/index227.mjs +52 -123
- package/index228.js +1 -1
- package/index228.mjs +4 -30
- package/index229.js +1 -1
- package/index229.mjs +24 -50
- package/index230.js +1 -1
- package/index230.mjs +46 -43
- package/index231.js +1 -1
- package/index231.mjs +5 -37
- package/index232.js +1 -1
- package/index232.mjs +24 -113
- package/index233.js +1 -1
- package/index233.mjs +11 -76
- package/index234.js +1 -1
- package/index234.mjs +4 -101
- package/index235.js +1 -1
- package/index235.mjs +15 -98
- package/index236.js +1 -1
- package/index236.mjs +36 -119
- package/index237.js +1 -1
- package/index237.mjs +41 -70
- package/index238.js +1 -7
- package/index238.mjs +27 -434
- package/index239.js +1 -1
- package/index239.mjs +30 -57
- package/index240.js +1 -1
- package/index240.mjs +11 -4
- package/index241.js +1 -1
- package/index241.mjs +27 -23
- package/index242.js +1 -1
- package/index242.mjs +15 -47
- package/index243.js +1 -1
- package/index243.mjs +9 -5
- package/index244.js +1 -1
- package/index244.mjs +6 -24
- package/index245.js +1 -1
- package/index245.mjs +5 -12
- package/index246.js +1 -1
- package/index246.mjs +7 -4
- package/index247.js +1 -1
- package/index247.mjs +29 -14
- package/index248.js +1 -1
- package/index248.mjs +17 -42
- package/index249.js +1 -1
- package/index249.mjs +41 -55
- package/index250.js +1 -1
- package/index250.mjs +7 -42
- package/index251.js +1 -1
- package/index251.mjs +15 -31
- package/index252.js +1 -1
- package/index252.mjs +3 -32
- package/index253.js +1 -1
- package/index253.mjs +19 -14
- package/index254.js +1 -1
- package/index254.mjs +34 -10
- package/index255.js +1 -1
- package/index255.mjs +21 -28
- package/index256.js +1 -1
- package/index256.mjs +26 -14
- package/index257.js +1 -1
- package/index257.mjs +129 -8
- package/index258.js +1 -1
- package/index258.mjs +190 -6
- package/index259.js +1 -1
- package/index259.mjs +9 -5
- package/index260.js +1 -1
- package/index260.mjs +3 -7
- package/index261.js +1 -1
- package/index261.mjs +35 -28
- package/index262.js +1 -1
- package/index262.mjs +5 -17
- package/index263.js +1 -1
- package/index263.mjs +27 -42
- package/index264.js +1 -1
- package/index264.mjs +6 -8
- package/index265.js +1 -1
- package/index265.mjs +124 -16
- package/index266.js +1 -1
- package/index266.mjs +135 -3
- package/index267.js +1 -1
- package/index267.mjs +75 -19
- package/index268.js +1 -1
- package/index268.mjs +12 -32
- package/index269.js +1 -1
- package/index269.mjs +93 -20
- package/index270.js +1 -1
- package/index270.mjs +105 -53
- package/index271.js +1 -1
- package/index271.mjs +4 -27
- package/index272.js +1 -1
- package/index272.mjs +3 -144
- package/index273.js +1 -1
- package/index273.mjs +119 -207
- package/index274.js +1 -1
- package/index274.mjs +29 -22
- package/index275.js +1 -1
- package/index275.mjs +51 -49
- package/index276.js +1 -1
- package/index276.mjs +43 -45
- package/index277.js +1 -6
- package/index277.mjs +35 -111
- package/index278.js +1 -1
- package/index278.mjs +114 -72
- package/index279.js +1 -1
- package/index279.mjs +76 -73
- package/index28.js +1 -1
- package/index28.mjs +38 -94
- package/index280.js +1 -1
- package/index280.mjs +101 -7
- package/index281.js +1 -1
- package/index281.mjs +98 -12
- package/index282.js +1 -1
- package/index282.mjs +144 -9
- package/index283.js +1 -1
- package/index283.mjs +207 -127
- package/index284.js +1 -1
- package/index284.mjs +22 -43
- package/index285.js +1 -1
- package/index285.mjs +44 -226
- package/index286.js +1 -1
- package/index286.mjs +45 -30
- package/index287.js +6 -1
- package/index287.mjs +112 -8
- package/index288.js +1 -1
- package/index288.mjs +72 -4
- package/index289.js +1 -1
- package/index289.mjs +71 -33
- package/index29.js +1 -1
- package/index29.mjs +2 -2
- package/index290.js +1 -1
- package/index290.mjs +7 -5
- package/index291.js +1 -1
- package/index291.mjs +11 -29
- package/index292.js +1 -1
- package/index292.mjs +31 -6
- package/index293.js +1 -1
- package/index293.mjs +3 -4
- package/index294.js +1 -1
- package/index294.mjs +4 -3
- package/index30.js +1 -1
- package/index30.mjs +1 -1
- package/index329.js +1 -1
- package/index329.mjs +17 -59
- package/index33.js +1 -1
- package/index33.mjs +2 -2
- package/index330.js +1 -1
- package/index330.mjs +30 -7
- package/index331.js +1 -1
- package/index331.mjs +63 -27
- package/index332.js +1 -1
- package/index332.mjs +15 -87
- package/index333.js +1 -1
- package/index333.mjs +48 -7
- package/index334.js +1 -1
- package/index334.mjs +7 -26
- package/index335.js +1 -1
- package/index335.mjs +26 -32
- package/index336.js +1 -1
- package/index336.mjs +87 -6
- package/index337.js +1 -1
- package/index337.mjs +9 -6
- package/index338.js +1 -1
- package/index338.mjs +23 -48
- package/index339.js +1 -1
- package/index339.mjs +32 -28
- package/index34.js +1 -1
- package/index34.mjs +3 -3
- package/index340.js +1 -1
- package/index340.mjs +6 -15
- package/index341.js +1 -1
- package/index341.mjs +6 -21
- package/index342.js +1 -1
- package/index342.mjs +28 -28
- package/index345.js +1 -1
- package/index345.mjs +1 -1
- package/index35.js +1 -1
- package/index35.mjs +1 -1
- package/index36.js +1 -1
- package/index36.mjs +2 -2
- package/index38.js +1 -1
- package/index38.mjs +3 -3
- package/index39.js +1 -1
- package/index39.mjs +3 -3
- package/index40.js +1 -1
- package/index40.mjs +3 -3
- package/index42.js +1 -1
- package/index42.mjs +1 -1
- package/index44.js +1 -1
- package/index44.mjs +2 -2
- package/index45.js +1 -1
- package/index45.mjs +1 -1
- package/index48.js +1 -1
- package/index48.mjs +2 -2
- package/index52.js +1 -1
- package/index52.mjs +1 -1
- package/index54.js +1 -1
- package/index54.mjs +3 -3
- package/index56.js +1 -1
- package/index56.mjs +2 -2
- package/index57.js +1 -1
- package/index57.mjs +1 -1
- package/index59.js +1 -1
- package/index59.mjs +2 -2
- package/package.json +1 -1
package/index279.mjs
CHANGED
|
@@ -1,77 +1,80 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
function
|
|
5
|
-
|
|
6
|
-
root: l
|
|
7
|
-
} : l;
|
|
8
|
-
var v;
|
|
9
|
-
let p = (v = a == null ? void 0 : a.root) !== null && v !== void 0 ? v : document.body, E = (a == null ? void 0 : a.shouldUseInert) && F, d = new Set(o), s = /* @__PURE__ */ new Set(), L = (e) => E && e instanceof f.HTMLElement ? e.inert : e.getAttribute("aria-hidden") === "true", h = (e, t) => {
|
|
10
|
-
E && e instanceof f.HTMLElement ? e.inert = t : t ? e.setAttribute("aria-hidden", "true") : (e.removeAttribute("aria-hidden"), e instanceof f.HTMLElement && (e.inert = !1));
|
|
11
|
-
}, N = (e) => {
|
|
12
|
-
for (let n of e.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]")) d.add(n);
|
|
13
|
-
let t = (n) => {
|
|
14
|
-
if (s.has(n) || d.has(n) || n.parentElement && s.has(n.parentElement) && n.parentElement.getAttribute("role") !== "row") return NodeFilter.FILTER_REJECT;
|
|
15
|
-
for (let g of d)
|
|
16
|
-
if (n.contains(g)) return NodeFilter.FILTER_SKIP;
|
|
17
|
-
return NodeFilter.FILTER_ACCEPT;
|
|
18
|
-
}, r = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
|
|
19
|
-
acceptNode: t
|
|
20
|
-
}), $ = t(e);
|
|
21
|
-
if ($ === NodeFilter.FILTER_ACCEPT && T(e), $ !== NodeFilter.FILTER_REJECT) {
|
|
22
|
-
let n = r.nextNode();
|
|
23
|
-
for (; n != null; )
|
|
24
|
-
T(n), n = r.nextNode();
|
|
25
|
-
}
|
|
26
|
-
}, T = (e) => {
|
|
27
|
-
var t;
|
|
28
|
-
let r = (t = c.get(e)) !== null && t !== void 0 ? t : 0;
|
|
29
|
-
L(e) && r === 0 || (r === 0 && h(e, !0), s.add(e), c.set(e, r + 1));
|
|
30
|
-
};
|
|
31
|
-
i.length && i[i.length - 1].disconnect(), N(p);
|
|
32
|
-
let u = new MutationObserver((e) => {
|
|
33
|
-
for (let t of e)
|
|
34
|
-
if (t.type === "childList" && ![
|
|
35
|
-
...d,
|
|
36
|
-
...s
|
|
37
|
-
].some((r) => r.contains(t.target)))
|
|
38
|
-
for (let r of t.addedNodes)
|
|
39
|
-
(r instanceof HTMLElement || r instanceof SVGElement) && (r.dataset.liveAnnouncer === "true" || r.dataset.reactAriaTopLayer === "true") ? d.add(r) : r instanceof Element && N(r);
|
|
40
|
-
});
|
|
41
|
-
u.observe(p, {
|
|
42
|
-
childList: !0,
|
|
43
|
-
subtree: !0
|
|
44
|
-
});
|
|
45
|
-
let b = {
|
|
46
|
-
visibleNodes: d,
|
|
47
|
-
hiddenNodes: s,
|
|
48
|
-
observe() {
|
|
49
|
-
u.observe(p, {
|
|
50
|
-
childList: !0,
|
|
51
|
-
subtree: !0
|
|
52
|
-
});
|
|
53
|
-
},
|
|
54
|
-
disconnect() {
|
|
55
|
-
u.disconnect();
|
|
56
|
-
}
|
|
57
|
-
};
|
|
58
|
-
return i.push(b), () => {
|
|
59
|
-
u.disconnect();
|
|
60
|
-
for (let e of s) {
|
|
61
|
-
let t = c.get(e);
|
|
62
|
-
t != null && (t === 1 ? (h(e, !1), c.delete(e)) : c.set(e, t - 1));
|
|
63
|
-
}
|
|
64
|
-
b === i[i.length - 1] ? (i.pop(), i.length && i[i.length - 1].observe()) : i.splice(i.indexOf(b), 1);
|
|
65
|
-
};
|
|
1
|
+
import { CalendarDate as v } from "./index265.mjs";
|
|
2
|
+
import { mod as y } from "./index272.mjs";
|
|
3
|
+
const b = 347997, h = 1080, M = 24 * h, T = 29, m = 12 * h + 793, w = T * M + m;
|
|
4
|
+
function a(e) {
|
|
5
|
+
return y(e * 7 + 1, 19) < 7;
|
|
66
6
|
}
|
|
67
|
-
function
|
|
68
|
-
let
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
7
|
+
function i(e) {
|
|
8
|
+
let r = Math.floor((235 * e - 234) / 19), t = 12084 + 13753 * r, f = r * 29 + Math.floor(t / 25920);
|
|
9
|
+
return y(3 * (f + 1), 7) < 3 && (f += 1), f;
|
|
10
|
+
}
|
|
11
|
+
function p(e) {
|
|
12
|
+
let r = i(e - 1), t = i(e);
|
|
13
|
+
return i(e + 1) - t === 356 ? 2 : t - r === 382 ? 1 : 0;
|
|
14
|
+
}
|
|
15
|
+
function c(e) {
|
|
16
|
+
return i(e) + p(e);
|
|
17
|
+
}
|
|
18
|
+
function Y(e) {
|
|
19
|
+
return c(e + 1) - c(e);
|
|
20
|
+
}
|
|
21
|
+
function A(e) {
|
|
22
|
+
let r = Y(e);
|
|
23
|
+
switch (r > 380 && (r -= 30), r) {
|
|
24
|
+
case 353:
|
|
25
|
+
return 0;
|
|
26
|
+
case 354:
|
|
27
|
+
return 1;
|
|
28
|
+
case 355:
|
|
29
|
+
return 2;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
function s(e, r) {
|
|
33
|
+
if (r >= 6 && !a(e) && r++, r === 4 || r === 7 || r === 9 || r === 11 || r === 13) return 29;
|
|
34
|
+
let t = A(e);
|
|
35
|
+
return r === 2 ? t === 2 ? 30 : 29 : r === 3 ? t === 0 ? 29 : 30 : r === 6 ? a(e) ? 30 : 0 : 30;
|
|
36
|
+
}
|
|
37
|
+
class O {
|
|
38
|
+
fromJulianDay(r) {
|
|
39
|
+
let t = r - b, f = t * M / w, n = Math.floor((19 * f + 234) / 235) + 1, u = c(n), o = Math.floor(t - u);
|
|
40
|
+
for (; o < 1; )
|
|
41
|
+
n--, u = c(n), o = Math.floor(t - u);
|
|
42
|
+
let $ = 1, l = 0;
|
|
43
|
+
for (; l < o; )
|
|
44
|
+
l += s(n, $), $++;
|
|
45
|
+
$--, l -= s(n, $);
|
|
46
|
+
let g = o - l;
|
|
47
|
+
return new v(this, n, $, g);
|
|
48
|
+
}
|
|
49
|
+
toJulianDay(r) {
|
|
50
|
+
let t = c(r.year);
|
|
51
|
+
for (let f = 1; f < r.month; f++) t += s(r.year, f);
|
|
52
|
+
return t + r.day + b;
|
|
53
|
+
}
|
|
54
|
+
getDaysInMonth(r) {
|
|
55
|
+
return s(r.year, r.month);
|
|
56
|
+
}
|
|
57
|
+
getMonthsInYear(r) {
|
|
58
|
+
return a(r.year) ? 13 : 12;
|
|
59
|
+
}
|
|
60
|
+
getDaysInYear(r) {
|
|
61
|
+
return Y(r.year);
|
|
62
|
+
}
|
|
63
|
+
getYearsInEra() {
|
|
64
|
+
return 9999;
|
|
65
|
+
}
|
|
66
|
+
getEras() {
|
|
67
|
+
return [
|
|
68
|
+
"AM"
|
|
69
|
+
];
|
|
70
|
+
}
|
|
71
|
+
balanceYearMonth(r, t) {
|
|
72
|
+
t.year !== r.year && (a(t.year) && !a(r.year) && t.month > 6 ? r.month-- : !a(t.year) && a(r.year) && t.month > 6 && r.month++);
|
|
73
|
+
}
|
|
74
|
+
constructor() {
|
|
75
|
+
this.identifier = "hebrew";
|
|
76
|
+
}
|
|
73
77
|
}
|
|
74
78
|
export {
|
|
75
|
-
|
|
76
|
-
H as keepVisible
|
|
79
|
+
O as HebrewCalendar
|
|
77
80
|
};
|
package/index28.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";const e=require("react/jsx-runtime")
|
|
2
|
+
"use strict";const e=require("react/jsx-runtime"),x=require("react"),f=require("react-aria"),R=require("react-stately"),v=require("./index89.js"),w=require("./index95.js"),c=require("./index37.js"),F=require("./index6.js"),B=require("./index69.js"),I=require("./index153.js"),M=require("./index3.js"),T=({value:a})=>a===""?e.jsx(I,{width:"16",height:"16"}):e.jsx(B,{width:"16",height:"16"}),Q=a=>{const{setUserSearchQuery:u}=w.useUserQueryValHook(),{label:h,themeName:s="search",tokens:g,customTheme:j,disabled:q,errorMessage:i,placeholder:k,icon:o,isDisabled:$}=a,r=$||q,d={...a,isDisabled:r},l=R.useSearchFieldState(d),m=x.useRef(null),{labelProps:S,inputProps:n,errorMessageProps:p,clearButtonProps:N}=f.useSearchField(d,l,m),C=x.useCallback(P=>{var b;u(l.value),(b=n.onChange)==null||b.call(n,P)},[u,l.value,n]),D=i!=null,t={...g,isError:D,isDisabled:r??!1},y=v(`${s}.input`,t,j);return e.jsxs(c.default,{themeName:`${s}.wrapper`,tokens:t,"aria-disabled":r??!1,children:[h&&e.jsx(c.default,{...S,as:"label",themeName:`${s}.label`,tokens:t,children:h}),e.jsxs(c.default,{themeName:`${s}.container`,tokens:t,children:[e.jsx("input",{ref:m,...n,onChange:C,placeholder:k,className:y,disabled:r}),e.jsx(f.FocusRing,{focusRingClass:"has-focus-ring",children:e.jsxs(F.default,{isDisabled:r,handlePress:N.onPress,tokens:{isIconOnly:!0,buttonStyle:"hollow",isDisabled:r??!1},themeName:`${s}.icon`,"aria-label":"clear",children:[o==null&&e.jsx(T,{value:l.value}),o!=null&&o]})})]}),i&&e.jsx(M.default,{themeName:`${s}.errorMessage`,tokens:t,...p,children:i})]})};module.exports=Q;
|
package/index28.mjs
CHANGED
|
@@ -1,122 +1,66 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
3
|
-
import "
|
|
4
|
-
import
|
|
5
|
-
import "
|
|
6
|
-
import v, { useCallback as w } from "react";
|
|
7
|
-
import "./index94.mjs";
|
|
8
|
-
import l from "./index37.mjs";
|
|
9
|
-
import { useSearchField as F, FocusRing as R } from "react-aria";
|
|
10
|
-
import "react-use";
|
|
11
|
-
import "@react-spring/web";
|
|
2
|
+
import { jsxs as c, jsx as e } from "react/jsx-runtime";
|
|
3
|
+
import T, { useCallback as v } from "react";
|
|
4
|
+
import { useSearchField as w, FocusRing as F } from "react-aria";
|
|
5
|
+
import { useSearchFieldState as R } from "react-stately";
|
|
12
6
|
import I from "./index89.mjs";
|
|
13
|
-
import M from "./
|
|
14
|
-
import "./
|
|
15
|
-
import
|
|
16
|
-
import "./
|
|
17
|
-
import "./
|
|
18
|
-
import "
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
import "radashi";
|
|
24
|
-
import "./index149.mjs";
|
|
25
|
-
import "sanitize-html";
|
|
26
|
-
import "@react-aria/i18n";
|
|
27
|
-
import "react-hook-form";
|
|
28
|
-
import "./index97.mjs";
|
|
29
|
-
import { useUserQueryValHook as Q } from "./index95.mjs";
|
|
30
|
-
import U from "./index69.mjs";
|
|
31
|
-
import _ from "./index153.mjs";
|
|
32
|
-
import "./index161.mjs";
|
|
33
|
-
import "./index162.mjs";
|
|
34
|
-
import "./index93.mjs";
|
|
35
|
-
import "./index92.mjs";
|
|
36
|
-
import "./index163.mjs";
|
|
37
|
-
import "./index53.mjs";
|
|
38
|
-
import "./index55.mjs";
|
|
39
|
-
import "./index58.mjs";
|
|
40
|
-
import "./index63.mjs";
|
|
41
|
-
import "./index164.mjs";
|
|
42
|
-
import "./index62.mjs";
|
|
43
|
-
import "./index64.mjs";
|
|
44
|
-
import "./index65.mjs";
|
|
45
|
-
import "./index66.mjs";
|
|
46
|
-
import "./index67.mjs";
|
|
47
|
-
import "./index68.mjs";
|
|
48
|
-
import "./index70.mjs";
|
|
49
|
-
import "./index71.mjs";
|
|
50
|
-
import "./index72.mjs";
|
|
51
|
-
import "./index73.mjs";
|
|
52
|
-
import "./index74.mjs";
|
|
53
|
-
import "./index75.mjs";
|
|
54
|
-
import "./index76.mjs";
|
|
55
|
-
import "./index77.mjs";
|
|
56
|
-
import "./index78.mjs";
|
|
57
|
-
import "./index79.mjs";
|
|
58
|
-
import "./index80.mjs";
|
|
59
|
-
import "./index81.mjs";
|
|
60
|
-
import "./index82.mjs";
|
|
61
|
-
import "./index83.mjs";
|
|
62
|
-
import "./index84.mjs";
|
|
63
|
-
import "./index85.mjs";
|
|
64
|
-
import "./index86.mjs";
|
|
65
|
-
import "./index87.mjs";
|
|
66
|
-
import "./index88.mjs";
|
|
67
|
-
import "./index90.mjs";
|
|
68
|
-
import "./index117.mjs";
|
|
69
|
-
const E = ({ value: m }) => m === "" ? /* @__PURE__ */ r(_, { width: "16", height: "16" }) : /* @__PURE__ */ r(U, { width: "16", height: "16" }), Zr = (m) => {
|
|
70
|
-
const { setUserSearchQuery: c } = Q(), {
|
|
71
|
-
label: h,
|
|
72
|
-
themeName: o = "search",
|
|
7
|
+
import { useUserQueryValHook as M } from "./index95.mjs";
|
|
8
|
+
import m from "./index37.mjs";
|
|
9
|
+
import j from "./index6.mjs";
|
|
10
|
+
import Q from "./index69.mjs";
|
|
11
|
+
import U from "./index153.mjs";
|
|
12
|
+
import _ from "./index3.mjs";
|
|
13
|
+
const E = ({ value: a }) => a === "" ? /* @__PURE__ */ e(U, { width: "16", height: "16" }) : /* @__PURE__ */ e(Q, { width: "16", height: "16" }), X = (a) => {
|
|
14
|
+
const { setUserSearchQuery: h } = M(), {
|
|
15
|
+
label: u,
|
|
16
|
+
themeName: s = "search",
|
|
73
17
|
tokens: b,
|
|
74
18
|
customTheme: g,
|
|
75
19
|
disabled: k,
|
|
76
|
-
errorMessage:
|
|
20
|
+
errorMessage: l,
|
|
77
21
|
placeholder: C,
|
|
78
|
-
icon:
|
|
22
|
+
icon: i,
|
|
79
23
|
isDisabled: N
|
|
80
|
-
} =
|
|
24
|
+
} = a, r = N || k, d = { ...a, isDisabled: r }, n = R(d), f = T.useRef(null), { labelProps: S, inputProps: o, errorMessageProps: y, clearButtonProps: D } = w(d, n, f), $ = v(
|
|
81
25
|
(P) => {
|
|
82
|
-
var
|
|
83
|
-
|
|
26
|
+
var p;
|
|
27
|
+
h(n.value), (p = o.onChange) == null || p.call(o, P);
|
|
84
28
|
},
|
|
85
|
-
[
|
|
86
|
-
), x =
|
|
87
|
-
return /* @__PURE__ */
|
|
88
|
-
|
|
89
|
-
/* @__PURE__ */
|
|
90
|
-
/* @__PURE__ */
|
|
91
|
-
/* @__PURE__ */
|
|
29
|
+
[h, n.value, o]
|
|
30
|
+
), x = l != null, t = { ...b, isError: x, isDisabled: r ?? !1 }, B = I(`${s}.input`, t, g);
|
|
31
|
+
return /* @__PURE__ */ c(m, { themeName: `${s}.wrapper`, tokens: t, "aria-disabled": r ?? !1, children: [
|
|
32
|
+
u && // eslint-disable-next-line jsx-a11y/label-has-associated-control
|
|
33
|
+
/* @__PURE__ */ e(m, { ...S, as: "label", themeName: `${s}.label`, tokens: t, children: u }),
|
|
34
|
+
/* @__PURE__ */ c(m, { themeName: `${s}.container`, tokens: t, children: [
|
|
35
|
+
/* @__PURE__ */ e(
|
|
92
36
|
"input",
|
|
93
37
|
{
|
|
94
|
-
ref:
|
|
95
|
-
...
|
|
38
|
+
ref: f,
|
|
39
|
+
...o,
|
|
96
40
|
onChange: $,
|
|
97
41
|
placeholder: C,
|
|
98
42
|
className: B,
|
|
99
|
-
disabled:
|
|
43
|
+
disabled: r
|
|
100
44
|
}
|
|
101
45
|
),
|
|
102
|
-
/* @__PURE__ */
|
|
103
|
-
|
|
46
|
+
/* @__PURE__ */ e(F, { focusRingClass: "has-focus-ring", children: /* @__PURE__ */ c(
|
|
47
|
+
j,
|
|
104
48
|
{
|
|
105
|
-
isDisabled:
|
|
49
|
+
isDisabled: r,
|
|
106
50
|
handlePress: D.onPress,
|
|
107
|
-
tokens: { isIconOnly: !0, buttonStyle: "hollow", isDisabled:
|
|
108
|
-
themeName: `${
|
|
51
|
+
tokens: { isIconOnly: !0, buttonStyle: "hollow", isDisabled: r ?? !1 },
|
|
52
|
+
themeName: `${s}.icon`,
|
|
109
53
|
"aria-label": "clear",
|
|
110
54
|
children: [
|
|
111
|
-
|
|
112
|
-
|
|
55
|
+
i == null && /* @__PURE__ */ e(E, { value: n.value }),
|
|
56
|
+
i != null && i
|
|
113
57
|
]
|
|
114
58
|
}
|
|
115
59
|
) })
|
|
116
60
|
] }),
|
|
117
|
-
|
|
61
|
+
l && /* @__PURE__ */ e(_, { themeName: `${s}.errorMessage`, tokens: t, ...y, children: l })
|
|
118
62
|
] });
|
|
119
63
|
};
|
|
120
64
|
export {
|
|
121
|
-
|
|
65
|
+
X as default
|
|
122
66
|
};
|
package/index280.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index265.js"),f=1723856,y=1824665,u=5500;function i(a,r,e,t){return a+365*r+Math.floor(r/4)+30*(e-1)+t-1}function s(a,r){let e=Math.floor(4*(r-a)/1461),t=1+Math.floor((r-i(a,e,1,1))/30),n=r+1-i(a,e,t,1);return[e,t,n]}function $(a){return Math.floor(a%4/3)}function E(a,r){return r%13!==0?30:$(a)+5}class l{fromJulianDay(r){let[e,t,n]=s(f,r),o="AM";return e<=0&&(o="AA",e+=u),new c.CalendarDate(this,o,e,t,n)}toJulianDay(r){let e=r.year;return r.era==="AA"&&(e-=u),i(f,e,r.month,r.day)}getDaysInMonth(r){return E(r.year,r.month)}getMonthsInYear(){return 13}getDaysInYear(r){return 365+$(r.year)}getYearsInEra(r){return r.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class b extends l{fromJulianDay(r){let[e,t,n]=s(f,r);return e+=u,new c.CalendarDate(this,"AA",e,t,n)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...r){super(...r),this.identifier="ethioaa"}}class C extends l{fromJulianDay(r){let[e,t,n]=s(y,r),o="CE";return e<=0&&(o="BCE",e=1-e),new c.CalendarDate(this,o,e,t,n)}toJulianDay(r){let e=r.year;return r.era==="BCE"&&(e=1-e),i(y,e,r.month,r.day)}getDaysInMonth(r){let e=r.year;return r.era==="BCE"&&(e=1-e),E(e,r.month)}isInverseEra(r){return r.era==="BCE"}balanceDate(r){r.year<=0&&(r.era=r.era==="BCE"?"CE":"BCE",r.year=1-r.year)}getEras(){return["BCE","CE"]}getYearsInEra(r){return r.era==="BCE"?9999:9715}constructor(...r){super(...r),this.identifier="coptic"}}exports.CopticCalendar=C;exports.EthiopicAmeteAlemCalendar=b;exports.EthiopicCalendar=l;
|
package/index280.mjs
CHANGED
|
@@ -1,10 +1,104 @@
|
|
|
1
|
-
import {
|
|
2
|
-
const
|
|
3
|
-
function a
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { CalendarDate as s } from "./index265.mjs";
|
|
2
|
+
const i = 1723856, $ = 1824665, c = 5500;
|
|
3
|
+
function f(a, r, e, t) {
|
|
4
|
+
return a + 365 * r + Math.floor(r / 4) + 30 * (e - 1) + t - 1;
|
|
5
|
+
}
|
|
6
|
+
function u(a, r) {
|
|
7
|
+
let e = Math.floor(4 * (r - a) / 1461), t = 1 + Math.floor((r - f(a, e, 1, 1)) / 30), n = r + 1 - f(a, e, t, 1);
|
|
8
|
+
return [
|
|
9
|
+
e,
|
|
10
|
+
t,
|
|
11
|
+
n
|
|
12
|
+
];
|
|
13
|
+
}
|
|
14
|
+
function l(a) {
|
|
15
|
+
return Math.floor(a % 4 / 3);
|
|
16
|
+
}
|
|
17
|
+
function y(a, r) {
|
|
18
|
+
return r % 13 !== 0 ? 30 : l(a) + 5;
|
|
19
|
+
}
|
|
20
|
+
class b {
|
|
21
|
+
fromJulianDay(r) {
|
|
22
|
+
let [e, t, n] = u(i, r), o = "AM";
|
|
23
|
+
return e <= 0 && (o = "AA", e += c), new s(this, o, e, t, n);
|
|
24
|
+
}
|
|
25
|
+
toJulianDay(r) {
|
|
26
|
+
let e = r.year;
|
|
27
|
+
return r.era === "AA" && (e -= c), f(i, e, r.month, r.day);
|
|
28
|
+
}
|
|
29
|
+
getDaysInMonth(r) {
|
|
30
|
+
return y(r.year, r.month);
|
|
31
|
+
}
|
|
32
|
+
getMonthsInYear() {
|
|
33
|
+
return 13;
|
|
34
|
+
}
|
|
35
|
+
getDaysInYear(r) {
|
|
36
|
+
return 365 + l(r.year);
|
|
37
|
+
}
|
|
38
|
+
getYearsInEra(r) {
|
|
39
|
+
return r.era === "AA" ? 9999 : 9991;
|
|
40
|
+
}
|
|
41
|
+
getEras() {
|
|
42
|
+
return [
|
|
43
|
+
"AA",
|
|
44
|
+
"AM"
|
|
45
|
+
];
|
|
46
|
+
}
|
|
47
|
+
constructor() {
|
|
48
|
+
this.identifier = "ethiopic";
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
class h extends b {
|
|
52
|
+
fromJulianDay(r) {
|
|
53
|
+
let [e, t, n] = u(i, r);
|
|
54
|
+
return e += c, new s(this, "AA", e, t, n);
|
|
55
|
+
}
|
|
56
|
+
getEras() {
|
|
57
|
+
return [
|
|
58
|
+
"AA"
|
|
59
|
+
];
|
|
60
|
+
}
|
|
61
|
+
getYearsInEra() {
|
|
62
|
+
return 9999;
|
|
63
|
+
}
|
|
64
|
+
constructor(...r) {
|
|
65
|
+
super(...r), this.identifier = "ethioaa";
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
class C extends b {
|
|
69
|
+
fromJulianDay(r) {
|
|
70
|
+
let [e, t, n] = u($, r), o = "CE";
|
|
71
|
+
return e <= 0 && (o = "BCE", e = 1 - e), new s(this, o, e, t, n);
|
|
72
|
+
}
|
|
73
|
+
toJulianDay(r) {
|
|
74
|
+
let e = r.year;
|
|
75
|
+
return r.era === "BCE" && (e = 1 - e), f($, e, r.month, r.day);
|
|
76
|
+
}
|
|
77
|
+
getDaysInMonth(r) {
|
|
78
|
+
let e = r.year;
|
|
79
|
+
return r.era === "BCE" && (e = 1 - e), y(e, r.month);
|
|
80
|
+
}
|
|
81
|
+
isInverseEra(r) {
|
|
82
|
+
return r.era === "BCE";
|
|
83
|
+
}
|
|
84
|
+
balanceDate(r) {
|
|
85
|
+
r.year <= 0 && (r.era = r.era === "BCE" ? "CE" : "BCE", r.year = 1 - r.year);
|
|
86
|
+
}
|
|
87
|
+
getEras() {
|
|
88
|
+
return [
|
|
89
|
+
"BCE",
|
|
90
|
+
"CE"
|
|
91
|
+
];
|
|
92
|
+
}
|
|
93
|
+
getYearsInEra(r) {
|
|
94
|
+
return r.era === "BCE" ? 9999 : 9715;
|
|
95
|
+
}
|
|
96
|
+
constructor(...r) {
|
|
97
|
+
super(...r), this.identifier = "coptic";
|
|
98
|
+
}
|
|
6
99
|
}
|
|
7
100
|
export {
|
|
8
|
-
|
|
9
|
-
|
|
101
|
+
C as CopticCalendar,
|
|
102
|
+
h as EthiopicAmeteAlemCalendar,
|
|
103
|
+
b as EthiopicCalendar
|
|
10
104
|
};
|
package/index281.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const A={"001":1,AD:1,AE:6,AF:6,AI:1,AL:1,AM:1,AN:1,AR:1,AT:1,AU:1,AX:1,AZ:1,BA:1,BE:1,BG:1,BH:6,BM:1,BN:1,BY:1,CH:1,CL:1,CM:1,CN:1,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DZ:6,EC:1,EE:1,EG:6,ES:1,FI:1,FJ:1,FO:1,FR:1,GB:1,GE:1,GF:1,GP:1,GR:1,HR:1,HU:1,IE:1,IQ:6,IR:6,IS:1,IT:1,JO:6,KG:1,KW:6,KZ:1,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MK:1,MN:1,MQ:1,MV:5,MY:1,NL:1,NO:1,NZ:1,OM:6,PL:1,QA:6,RE:1,RO:1,RS:1,RU:1,SD:6,SE:1,SI:1,SK:1,SM:1,SY:6,TJ:1,TM:1,TR:1,UA:1,UY:1,UZ:1,VA:1,VN:1,XK:1};exports.weekStartData=A;
|
package/index281.mjs
CHANGED
|
@@ -1,14 +1,100 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
const A = {
|
|
2
|
+
"001": 1,
|
|
3
|
+
AD: 1,
|
|
4
|
+
AE: 6,
|
|
5
|
+
AF: 6,
|
|
6
|
+
AI: 1,
|
|
7
|
+
AL: 1,
|
|
8
|
+
AM: 1,
|
|
9
|
+
AN: 1,
|
|
10
|
+
AR: 1,
|
|
11
|
+
AT: 1,
|
|
12
|
+
AU: 1,
|
|
13
|
+
AX: 1,
|
|
14
|
+
AZ: 1,
|
|
15
|
+
BA: 1,
|
|
16
|
+
BE: 1,
|
|
17
|
+
BG: 1,
|
|
18
|
+
BH: 6,
|
|
19
|
+
BM: 1,
|
|
20
|
+
BN: 1,
|
|
21
|
+
BY: 1,
|
|
22
|
+
CH: 1,
|
|
23
|
+
CL: 1,
|
|
24
|
+
CM: 1,
|
|
25
|
+
CN: 1,
|
|
26
|
+
CR: 1,
|
|
27
|
+
CY: 1,
|
|
28
|
+
CZ: 1,
|
|
29
|
+
DE: 1,
|
|
30
|
+
DJ: 6,
|
|
31
|
+
DK: 1,
|
|
32
|
+
DZ: 6,
|
|
33
|
+
EC: 1,
|
|
34
|
+
EE: 1,
|
|
35
|
+
EG: 6,
|
|
36
|
+
ES: 1,
|
|
37
|
+
FI: 1,
|
|
38
|
+
FJ: 1,
|
|
39
|
+
FO: 1,
|
|
40
|
+
FR: 1,
|
|
41
|
+
GB: 1,
|
|
42
|
+
GE: 1,
|
|
43
|
+
GF: 1,
|
|
44
|
+
GP: 1,
|
|
45
|
+
GR: 1,
|
|
46
|
+
HR: 1,
|
|
47
|
+
HU: 1,
|
|
48
|
+
IE: 1,
|
|
49
|
+
IQ: 6,
|
|
50
|
+
IR: 6,
|
|
51
|
+
IS: 1,
|
|
52
|
+
IT: 1,
|
|
53
|
+
JO: 6,
|
|
54
|
+
KG: 1,
|
|
55
|
+
KW: 6,
|
|
56
|
+
KZ: 1,
|
|
57
|
+
LB: 1,
|
|
58
|
+
LI: 1,
|
|
59
|
+
LK: 1,
|
|
60
|
+
LT: 1,
|
|
61
|
+
LU: 1,
|
|
62
|
+
LV: 1,
|
|
63
|
+
LY: 6,
|
|
64
|
+
MC: 1,
|
|
65
|
+
MD: 1,
|
|
66
|
+
ME: 1,
|
|
67
|
+
MK: 1,
|
|
68
|
+
MN: 1,
|
|
69
|
+
MQ: 1,
|
|
70
|
+
MV: 5,
|
|
71
|
+
MY: 1,
|
|
72
|
+
NL: 1,
|
|
73
|
+
NO: 1,
|
|
74
|
+
NZ: 1,
|
|
75
|
+
OM: 6,
|
|
76
|
+
PL: 1,
|
|
77
|
+
QA: 6,
|
|
78
|
+
RE: 1,
|
|
79
|
+
RO: 1,
|
|
80
|
+
RS: 1,
|
|
81
|
+
RU: 1,
|
|
82
|
+
SD: 6,
|
|
83
|
+
SE: 1,
|
|
84
|
+
SI: 1,
|
|
85
|
+
SK: 1,
|
|
86
|
+
SM: 1,
|
|
87
|
+
SY: 6,
|
|
88
|
+
TJ: 1,
|
|
89
|
+
TM: 1,
|
|
90
|
+
TR: 1,
|
|
91
|
+
UA: 1,
|
|
92
|
+
UY: 1,
|
|
93
|
+
UZ: 1,
|
|
94
|
+
VA: 1,
|
|
95
|
+
VN: 1,
|
|
96
|
+
XK: 1
|
|
97
|
+
};
|
|
12
98
|
export {
|
|
13
|
-
|
|
99
|
+
A as weekStartData
|
|
14
100
|
};
|
package/index282.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const k=require("./index283.js"),G=require("./index284.js"),v=require("react"),C=require("./index228.js"),U=require("./index241.js"),J=require("@react-aria/i18n");let t=typeof document<"u"?window.visualViewport:null;function K(l){let{direction:R}=J.useLocale(),{arrowSize:O,targetRef:p,overlayRef:i,arrowRef:s,scrollRef:u=i,placement:H="bottom",containerPadding:S=12,shouldFlip:B=!0,boundaryElement:b=typeof document<"u"?document.body:null,offset:q=0,crossOffset:T=0,shouldUpdatePosition:A=!0,isOpen:g=!0,onClose:m,maxHeight:x,arrowBoundaryOffset:F=0}=l,[e,I]=v.useState(null),N=[A,H,i.current,p.current,s==null?void 0:s.current,u.current,S,B,b,q,T,g,R,x,F,O],j=v.useRef(t==null?void 0:t.scale);v.useEffect(()=>{g&&(j.current=t==null?void 0:t.scale)},[g]);let d=v.useCallback(()=>{if(A===!1||!g||!i.current||!p.current||!b||(t==null?void 0:t.scale)!==j.current)return;let o=null;if(u.current&&u.current.contains(document.activeElement)){var a;let r=(a=document.activeElement)===null||a===void 0?void 0:a.getBoundingClientRect(),h=u.current.getBoundingClientRect();var c;if(o={type:"top",offset:((c=r==null?void 0:r.top)!==null&&c!==void 0?c:0)-h.top},o.offset>h.height/2){o.type="bottom";var z;o.offset=((z=r==null?void 0:r.bottom)!==null&&z!==void 0?z:0)-h.bottom}}let n=i.current;if(!x&&i.current){var L;n.style.top="0px",n.style.bottom="";var $;n.style.maxHeight=(($=(L=window.visualViewport)===null||L===void 0?void 0:L.height)!==null&&$!==void 0?$:window.innerHeight)+"px"}let f=k.calculatePosition({placement:W(H,R),overlayNode:i.current,targetNode:p.current,scrollNode:u.current||i.current,padding:S,shouldFlip:B,boundaryElement:b,offset:q,crossOffset:T,maxHeight:x,arrowSize:O??(s!=null&&s.current?k.getRect(s.current,!0).width:0),arrowBoundaryOffset:F});if(f.position){if(n.style.top="",n.style.bottom="",n.style.left="",n.style.right="",Object.keys(f.position).forEach(r=>n.style[r]=f.position[r]+"px"),n.style.maxHeight=f.maxHeight!=null?f.maxHeight+"px":"",o&&document.activeElement&&u.current){let r=document.activeElement.getBoundingClientRect(),h=u.current.getBoundingClientRect(),D=r[o.type]-h[o.type];u.current.scrollTop+=D-o.offset}I(f)}},N);C.useLayoutEffect(d,N),Q(d),U.useResizeObserver({ref:i,onResize:d}),U.useResizeObserver({ref:p,onResize:d});let y=v.useRef(!1);C.useLayoutEffect(()=>{let o,a=()=>{y.current=!0,clearTimeout(o),o=setTimeout(()=>{y.current=!1},500),d()},c=()=>{y.current&&a()};return t==null||t.addEventListener("resize",a),t==null||t.addEventListener("scroll",c),()=>{t==null||t.removeEventListener("resize",a),t==null||t.removeEventListener("scroll",c)}},[d]);let M=v.useCallback(()=>{y.current||m==null||m()},[m,y]);G.useCloseOnScroll({triggerRef:p,isOpen:g,onClose:m&&M});var E,P,w;return{overlayProps:{style:{position:e?"absolute":"fixed",top:e?void 0:0,left:e?void 0:0,zIndex:1e5,...e==null?void 0:e.position,maxHeight:(E=e==null?void 0:e.maxHeight)!==null&&E!==void 0?E:"100vh"}},placement:(P=e==null?void 0:e.placement)!==null&&P!==void 0?P:null,triggerAnchorPoint:(w=e==null?void 0:e.triggerAnchorPoint)!==null&&w!==void 0?w:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:e==null?void 0:e.arrowOffsetLeft,top:e==null?void 0:e.arrowOffsetTop}},updatePosition:d}}function Q(l){C.useLayoutEffect(()=>(window.addEventListener("resize",l,!1),()=>{window.removeEventListener("resize",l,!1)}),[l])}function W(l,R){return R==="rtl"?l.replace("start","right").replace("end","left"):l.replace("start","left").replace("end","right")}exports.useOverlayPosition=K;
|