@okam/stack-ui 1.44.1 → 1.44.3
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 +56 -0
- package/index145.js +1 -1
- package/index145.mjs +1 -1
- package/index149.js +1 -1
- package/index149.mjs +3 -3
- package/index155.js +1 -1
- package/index155.mjs +1 -1
- 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 -1
- package/index161.mjs +2 -2
- package/index165.js +1 -1
- package/index165.mjs +2 -2
- package/index166.js +1 -1
- package/index166.mjs +4 -4
- package/index167.js +1 -1
- package/index167.mjs +3 -3
- package/index168.js +1 -1
- package/index168.mjs +9 -9
- package/index169.js +1 -1
- package/index169.mjs +2 -2
- package/index174.js +1 -1
- package/index174.mjs +2 -2
- package/index179.js +1 -1
- package/index179.mjs +4 -4
- package/index180.js +1 -1
- package/index180.mjs +1 -1
- package/index181.js +1 -1
- package/index181.mjs +2 -2
- package/index182.js +1 -1
- package/index182.mjs +3 -3
- 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 +5 -2024
- package/index189.js +2 -1
- package/index189.mjs +48 -58
- package/index190.js +1 -1
- package/index190.mjs +2010 -174
- package/index191.js +1 -1
- package/index191.mjs +56 -200
- package/index192.js +1 -1
- package/index192.mjs +186 -62
- package/index193.js +1 -1
- package/index193.mjs +189 -129
- package/index194.js +1 -1
- package/index194.mjs +55 -115
- package/index195.js +1 -1
- package/index195.mjs +127 -208
- package/index196.js +1 -1
- package/index196.mjs +107 -173
- package/index197.js +1 -1
- package/index197.mjs +215 -60
- package/index198.js +1 -1
- package/index198.mjs +178 -267
- package/index199.js +1 -1
- package/index199.mjs +63 -92
- package/index200.js +1 -1
- package/index200.mjs +254 -163
- package/index201.js +1 -1
- package/index201.mjs +91 -77
- package/index202.js +1 -1
- package/index202.mjs +183 -53
- package/index203.js +1 -1
- package/index203.mjs +72 -114
- package/index204.js +1 -1
- package/index204.mjs +51 -109
- package/index205.js +1 -1
- package/index205.mjs +112 -108
- package/index206.js +1 -1
- package/index206.mjs +109 -65
- package/index207.js +1 -1
- package/index207.mjs +117 -105
- package/index208.js +1 -1
- package/index208.mjs +68 -48
- package/index209.js +1 -1
- package/index209.mjs +108 -91
- package/index210.js +1 -1
- package/index210.mjs +36 -54
- package/index211.js +1 -1
- package/index211.mjs +78 -41
- package/index212.js +1 -1
- package/index212.mjs +52 -81
- package/index213.js +1 -5
- package/index213.mjs +42 -66
- package/index214.js +1 -1
- package/index214.mjs +100 -12
- package/index215.js +5 -1
- package/index215.mjs +80 -5
- package/index216.js +1 -2
- package/index216.mjs +11 -49
- package/index217.js +1 -1
- package/index217.mjs +124 -9
- package/index218.js +1 -1
- package/index218.mjs +132 -56
- package/index219.js +1 -1
- package/index219.mjs +73 -131
- package/index220.js +1 -1
- package/index220.mjs +14 -14
- package/index221.js +1 -1
- package/index221.mjs +85 -33
- package/index222.js +1 -1
- package/index222.mjs +104 -229
- package/index223.js +1 -1
- package/index223.mjs +4 -125
- package/index224.js +1 -1
- package/index224.mjs +3 -72
- package/index225.js +1 -7
- package/index225.mjs +117 -431
- package/index226.js +1 -1
- package/index226.mjs +29 -58
- package/index227.js +1 -1
- package/index227.mjs +51 -54
- package/index228.js +1 -1
- package/index228.mjs +45 -4
- package/index229.js +1 -1
- package/index229.mjs +36 -24
- package/index230.js +1 -1
- package/index230.mjs +106 -40
- package/index231.js +1 -1
- package/index231.mjs +77 -5
- package/index232.js +1 -1
- package/index232.mjs +100 -23
- package/index233.js +1 -1
- package/index233.mjs +98 -13
- package/index234.js +1 -1
- package/index234.mjs +130 -4
- package/index235.js +1 -1
- package/index235.mjs +190 -14
- package/index236.js +1 -1
- package/index236.mjs +4 -43
- package/index237.js +1 -1
- package/index237.mjs +25 -43
- package/index238.js +1 -1
- package/index238.mjs +44 -29
- package/index239.js +1 -1
- package/index239.mjs +4 -30
- package/index240.js +1 -1
- package/index240.mjs +24 -10
- package/index241.js +1 -1
- package/index241.mjs +11 -28
- package/index242.js +1 -1
- package/index242.mjs +4 -15
- package/index243.js +1 -1
- package/index243.mjs +14 -9
- package/index244.js +1 -1
- package/index244.mjs +42 -6
- package/index245.js +1 -1
- package/index245.mjs +58 -5
- package/index246.js +1 -1
- package/index246.mjs +43 -7
- package/index247.js +1 -1
- package/index247.mjs +30 -27
- package/index248.js +1 -1
- package/index248.mjs +29 -15
- package/index249.js +1 -1
- package/index249.mjs +14 -44
- package/index250.js +1 -1
- package/index250.mjs +10 -8
- package/index251.js +1 -1
- package/index251.mjs +27 -14
- package/index252.js +1 -1
- package/index252.mjs +16 -3
- package/index253.js +1 -1
- package/index253.mjs +9 -19
- package/index254.js +1 -1
- package/index254.mjs +6 -34
- package/index255.js +1 -1
- package/index255.mjs +5 -22
- package/index256.js +1 -1
- package/index256.mjs +7 -27
- package/index257.js +1 -1
- package/index257.mjs +27 -128
- package/index258.js +1 -1
- package/index258.mjs +17 -190
- package/index259.js +1 -1
- package/index259.mjs +43 -8
- package/index260.js +1 -1
- package/index260.mjs +8 -3
- package/index261.js +1 -1
- package/index261.mjs +15 -35
- package/index262.js +1 -1
- package/index262.mjs +3 -6
- package/index263.js +1 -1
- package/index263.mjs +19 -29
- package/index264.js +1 -1
- package/index264.mjs +34 -6
- package/index265.js +1 -1
- package/index265.mjs +20 -122
- package/index266.js +1 -1
- package/index266.mjs +8 -133
- package/index267.js +1 -1
- package/index267.mjs +3 -75
- package/index268.js +1 -1
- package/index268.mjs +36 -14
- package/index269.js +1 -1
- package/index269.mjs +5 -95
- package/index270.js +1 -1
- package/index270.mjs +28 -105
- package/index271.js +1 -1
- package/index271.mjs +6 -4
- package/index272.js +1 -1
- package/index272.mjs +9 -3
- package/index273.js +1 -1
- package/index273.mjs +130 -122
- package/index274.js +1 -1
- package/index274.mjs +37 -23
- package/index275.js +1 -1
- package/index275.mjs +231 -51
- package/index276.js +1 -1
- package/index276.mjs +122 -41
- package/index277.js +1 -1
- package/index277.mjs +70 -35
- package/index278.js +7 -1
- package/index278.mjs +429 -103
- package/index279.js +1 -1
- package/index279.mjs +58 -77
- package/index280.js +1 -1
- package/index280.mjs +52 -99
- package/index281.js +1 -1
- package/index281.mjs +27 -97
- package/index282.js +1 -1
- package/index282.mjs +28 -141
- package/index283.js +1 -1
- package/index283.mjs +140 -209
- package/index284.js +1 -1
- package/index284.mjs +213 -22
- package/index285.js +1 -1
- package/index285.mjs +20 -47
- package/index286.js +1 -1
- package/index286.mjs +45 -42
- package/index287.js +1 -6
- package/index287.mjs +41 -108
- package/index288.js +6 -1
- package/index288.mjs +114 -72
- package/index289.js +1 -1
- package/index289.mjs +72 -75
- package/index290.js +1 -1
- package/index290.mjs +74 -7
- package/index291.js +1 -1
- package/index291.mjs +7 -11
- package/index292.js +1 -1
- package/index292.mjs +10 -30
- package/index293.js +1 -1
- package/index293.mjs +4 -3
- package/index294.js +1 -1
- package/index294.mjs +3 -4
- package/index329.js +1 -1
- package/index329.mjs +1 -1
- package/index331.js +1 -1
- package/index331.mjs +4 -4
- package/index332.js +1 -1
- package/index332.mjs +4 -4
- package/index333.js +1 -1
- package/index333.mjs +5 -5
- package/index335.js +1 -1
- package/index335.mjs +2 -2
- package/index336.js +1 -1
- package/index336.mjs +4 -4
- package/index339.js +1 -1
- package/index339.mjs +3 -3
- package/index342.js +1 -1
- package/index342.mjs +1 -1
- package/index345.js +1 -1
- package/index345.mjs +1 -1
- package/logger.d.ts +2 -2
- package/package.json +2 -2
package/index238.mjs
CHANGED
|
@@ -1,35 +1,50 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
a.clear();
|
|
1
|
+
import a, { useContext as d, useState as f, useRef as l } from "react";
|
|
2
|
+
const c = {
|
|
3
|
+
prefix: String(Math.round(Math.random() * 1e10)),
|
|
4
|
+
current: 0
|
|
5
|
+
}, $ = /* @__PURE__ */ a.createContext(c), p = /* @__PURE__ */ a.createContext(!1);
|
|
6
|
+
let v = !!(typeof window < "u" && window.document && window.document.createElement), s = /* @__PURE__ */ new WeakMap();
|
|
7
|
+
function S(t = !1) {
|
|
8
|
+
let e = d($), r = l(null);
|
|
9
|
+
if (r.current === null && !t) {
|
|
10
|
+
var n, u;
|
|
11
|
+
let o = (u = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED) === null || u === void 0 || (n = u.ReactCurrentOwner) === null || n === void 0 ? void 0 : n.current;
|
|
12
|
+
if (o) {
|
|
13
|
+
let i = s.get(o);
|
|
14
|
+
i == null ? s.set(o, {
|
|
15
|
+
id: e.current,
|
|
16
|
+
state: o.memoizedState
|
|
17
|
+
}) : o.memoizedState !== i.state && (e.current = i.id, s.delete(o));
|
|
19
18
|
}
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
r.current = ++e.current;
|
|
20
|
+
}
|
|
21
|
+
return r.current;
|
|
22
|
+
}
|
|
23
|
+
function b(t) {
|
|
24
|
+
let e = d($);
|
|
25
|
+
e === c && !v && process.env.NODE_ENV !== "production" && console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");
|
|
26
|
+
let r = S(!!t), n = e === c && process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${e.prefix}`;
|
|
27
|
+
return t || `${n}-${r}`;
|
|
22
28
|
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
29
|
+
function x(t) {
|
|
30
|
+
let e = a.useId(), [r] = f(y()), n = r || process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${c.prefix}`;
|
|
31
|
+
return t || `${n}-${e}`;
|
|
32
|
+
}
|
|
33
|
+
const C = typeof a.useId == "function" ? x : b;
|
|
34
|
+
function m() {
|
|
35
|
+
return !1;
|
|
36
|
+
}
|
|
37
|
+
function w() {
|
|
38
|
+
return !0;
|
|
39
|
+
}
|
|
40
|
+
function g(t) {
|
|
41
|
+
return () => {
|
|
42
|
+
};
|
|
27
43
|
}
|
|
28
|
-
function
|
|
29
|
-
|
|
30
|
-
c(), r.size === 0 ? t() : a.add(t);
|
|
31
|
-
});
|
|
44
|
+
function y() {
|
|
45
|
+
return typeof a.useSyncExternalStore == "function" ? a.useSyncExternalStore(g, m, w) : d(p);
|
|
32
46
|
}
|
|
33
47
|
export {
|
|
34
|
-
|
|
48
|
+
y as useIsSSR,
|
|
49
|
+
C as useSSRSafeId
|
|
35
50
|
};
|
package/index239.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function o(...t){return(...f)=>{for(let e of t)typeof e=="function"&&e(...f)}}exports.chain=o;
|
package/index239.mjs
CHANGED
|
@@ -1,34 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
let n = t != null && t.once ? (...d) => {
|
|
5
|
-
o.current.delete(r), r(...d);
|
|
6
|
-
} : r;
|
|
7
|
-
o.current.set(r, {
|
|
8
|
-
type: l,
|
|
9
|
-
eventTarget: e,
|
|
10
|
-
fn: n,
|
|
11
|
-
options: t
|
|
12
|
-
}), e.addEventListener(l, n, t);
|
|
13
|
-
}, []), a = f((e, l, r, t) => {
|
|
14
|
-
var n;
|
|
15
|
-
let d = ((n = o.current.get(r)) === null || n === void 0 ? void 0 : n.fn) || r;
|
|
16
|
-
e.removeEventListener(l, d, t), o.current.delete(r);
|
|
17
|
-
}, []), s = f(() => {
|
|
18
|
-
o.current.forEach((e, l) => {
|
|
19
|
-
a(e.eventTarget, e.type, l, e.options);
|
|
20
|
-
});
|
|
21
|
-
}, [
|
|
22
|
-
a
|
|
23
|
-
]);
|
|
24
|
-
return b(() => s, [
|
|
25
|
-
s
|
|
26
|
-
]), {
|
|
27
|
-
addGlobalListener: u,
|
|
28
|
-
removeGlobalListener: a,
|
|
29
|
-
removeAllGlobalListeners: s
|
|
1
|
+
function o(...f) {
|
|
2
|
+
return (...c) => {
|
|
3
|
+
for (let e of f) typeof e == "function" && e(...c);
|
|
30
4
|
};
|
|
31
5
|
}
|
|
32
6
|
export {
|
|
33
|
-
|
|
7
|
+
o as chain
|
|
34
8
|
};
|
package/index240.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=require("./index241.js"),r=require("./index242.js");function i(t,o){if(!r.shadowDOM())return o&&t?t.contains(o):!1;if(!t||!o)return!1;let e=o;for(;e!==null;){if(e===t)return!0;e.tagName==="SLOT"&&e.assignedSlot?e=e.assignedSlot.parentNode:a.isShadowRoot(e)?e=e.host:e=e.parentNode}return!1}const n=(t=document)=>{var o;if(!r.shadowDOM())return t.activeElement;let e=t.activeElement;for(;e&&"shadowRoot"in e&&(!((o=e.shadowRoot)===null||o===void 0)&&o.activeElement);)e=e.shadowRoot.activeElement;return e};function s(t){return r.shadowDOM()&&t.target.shadowRoot&&t.composedPath?t.composedPath()[0]:t.target}exports.getActiveElement=n;exports.getEventTarget=s;exports.nodeContains=i;
|
package/index240.mjs
CHANGED
|
@@ -1,13 +1,27 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
function
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { isShadowRoot as f } from "./index241.mjs";
|
|
2
|
+
import { shadowDOM as o } from "./index242.mjs";
|
|
3
|
+
function n(t, a) {
|
|
4
|
+
if (!o()) return a && t ? t.contains(a) : !1;
|
|
5
|
+
if (!t || !a) return !1;
|
|
6
|
+
let e = a;
|
|
7
|
+
for (; e !== null; ) {
|
|
8
|
+
if (e === t) return !0;
|
|
9
|
+
e.tagName === "SLOT" && e.assignedSlot ? e = e.assignedSlot.parentNode : f(e) ? e = e.host : e = e.parentNode;
|
|
10
|
+
}
|
|
11
|
+
return !1;
|
|
12
|
+
}
|
|
13
|
+
const s = (t = document) => {
|
|
14
|
+
var a;
|
|
15
|
+
if (!o()) return t.activeElement;
|
|
16
|
+
let e = t.activeElement;
|
|
17
|
+
for (; e && "shadowRoot" in e && (!((a = e.shadowRoot) === null || a === void 0) && a.activeElement); ) e = e.shadowRoot.activeElement;
|
|
18
|
+
return e;
|
|
19
|
+
};
|
|
20
|
+
function d(t) {
|
|
21
|
+
return o() && t.target.shadowRoot && t.composedPath ? t.composedPath()[0] : t.target;
|
|
10
22
|
}
|
|
11
23
|
export {
|
|
12
|
-
|
|
24
|
+
s as getActiveElement,
|
|
25
|
+
d as getEventTarget,
|
|
26
|
+
n as nodeContains
|
|
13
27
|
};
|
package/index241.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 t=o=>{var n;return(n=o==null?void 0:o.ownerDocument)!==null&&n!==void 0?n:document},e=o=>o&&"window"in o&&o.window===o?o:t(o).defaultView||window;function d(o){return o!==null&&typeof o=="object"&&"nodeType"in o&&typeof o.nodeType=="number"}function c(o){return d(o)&&o.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in o}exports.getOwnerDocument=t;exports.getOwnerWindow=e;exports.isShadowRoot=c;
|
package/index241.mjs
CHANGED
|
@@ -1,32 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
const t = (o) => {
|
|
2
|
+
var n;
|
|
3
|
+
return (n = o == null ? void 0 : o.ownerDocument) !== null && n !== void 0 ? n : document;
|
|
4
|
+
}, e = (o) => o && "window" in o && o.window === o ? o : t(o).defaultView || window;
|
|
5
|
+
function d(o) {
|
|
6
|
+
return o !== null && typeof o == "object" && "nodeType" in o && typeof o.nodeType == "number";
|
|
5
7
|
}
|
|
6
|
-
function c(
|
|
7
|
-
|
|
8
|
-
let n = a(o);
|
|
9
|
-
d(() => {
|
|
10
|
-
let r = e == null ? void 0 : e.current;
|
|
11
|
-
if (r)
|
|
12
|
-
if (v()) {
|
|
13
|
-
const t = new window.ResizeObserver((f) => {
|
|
14
|
-
f.length && n();
|
|
15
|
-
});
|
|
16
|
-
return t.observe(r, {
|
|
17
|
-
box: s
|
|
18
|
-
}), () => {
|
|
19
|
-
r && t.unobserve(r);
|
|
20
|
-
};
|
|
21
|
-
} else
|
|
22
|
-
return window.addEventListener("resize", n, !1), () => {
|
|
23
|
-
window.removeEventListener("resize", n, !1);
|
|
24
|
-
};
|
|
25
|
-
}, [
|
|
26
|
-
e,
|
|
27
|
-
s
|
|
28
|
-
]);
|
|
8
|
+
function c(o) {
|
|
9
|
+
return d(o) && o.nodeType === Node.DOCUMENT_FRAGMENT_NODE && "host" in o;
|
|
29
10
|
}
|
|
30
11
|
export {
|
|
31
|
-
|
|
12
|
+
t as getOwnerDocument,
|
|
13
|
+
e as getOwnerWindow,
|
|
14
|
+
c as isShadowRoot
|
|
32
15
|
};
|
package/index242.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});let e=!1;function t(){return e}exports.shadowDOM=t;
|
package/index242.mjs
CHANGED
|
@@ -1,18 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const s = (a = o.useInsertionEffect) !== null && a !== void 0 ? a : f;
|
|
5
|
-
function d(c) {
|
|
6
|
-
const t = u(null);
|
|
7
|
-
return s(() => {
|
|
8
|
-
t.current = c;
|
|
9
|
-
}, [
|
|
10
|
-
c
|
|
11
|
-
]), n((...r) => {
|
|
12
|
-
const e = t.current;
|
|
13
|
-
return e == null ? void 0 : e(...r);
|
|
14
|
-
}, []);
|
|
1
|
+
let e = !1;
|
|
2
|
+
function f() {
|
|
3
|
+
return e;
|
|
15
4
|
}
|
|
16
5
|
export {
|
|
17
|
-
|
|
6
|
+
f as shadowDOM
|
|
18
7
|
};
|
package/index243.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});function n(r){var o,e,t="";if(typeof r=="string"||typeof r=="number")t+=r;else if(typeof r=="object")if(Array.isArray(r)){var u=r.length;for(o=0;o<u;o++)r[o]&&(e=n(r[o]))&&(t&&(t+=" "),t+=e)}else for(e in r)r[e]&&(t&&(t+=" "),t+=e);return t}function f(){for(var r,o,e=0,t="",u=arguments.length;e<u;e++)(r=arguments[e])&&(o=n(r))&&(t&&(t+=" "),t+=o);return t}exports.clsx=f;exports.default=f;
|
package/index243.mjs
CHANGED
|
@@ -1,12 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
function a(r) {
|
|
2
|
+
var n, f, t = "";
|
|
3
|
+
if (typeof r == "string" || typeof r == "number") t += r;
|
|
4
|
+
else if (typeof r == "object") if (Array.isArray(r)) {
|
|
5
|
+
var o = r.length;
|
|
6
|
+
for (n = 0; n < o; n++) r[n] && (f = a(r[n])) && (t && (t += " "), t += f);
|
|
7
|
+
} else for (f in r) r[f] && (t && (t += " "), t += f);
|
|
8
|
+
return t;
|
|
9
|
+
}
|
|
10
|
+
function i() {
|
|
11
|
+
for (var r, n, f = 0, t = "", o = arguments.length; f < o; f++) (r = arguments[f]) && (n = a(r)) && (t && (t += " "), t += n);
|
|
12
|
+
return t;
|
|
9
13
|
}
|
|
10
14
|
export {
|
|
11
|
-
|
|
15
|
+
i as clsx,
|
|
16
|
+
i as default
|
|
12
17
|
};
|
package/index244.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function c(l){if(n())l.focus({preventScroll:!0});else{let e=s(l);l.focus(),f(e)}}let r=null;function n(){if(r==null){r=!1;try{document.createElement("div").focus({get preventScroll(){return r=!0,!0}})}catch{}}return r}function s(l){let e=l.parentNode,o=[],t=document.scrollingElement||document.documentElement;for(;e instanceof HTMLElement&&e!==t;)(e.offsetHeight<e.scrollHeight||e.offsetWidth<e.scrollWidth)&&o.push({element:e,scrollTop:e.scrollTop,scrollLeft:e.scrollLeft}),e=e.parentNode;return t instanceof HTMLElement&&o.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),o}function f(l){for(let{element:e,scrollTop:o,scrollLeft:t}of l)e.scrollTop=o,e.scrollLeft=t}exports.focusWithoutScrolling=c;
|
package/index244.mjs
CHANGED
|
@@ -1,9 +1,45 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
function f(l) {
|
|
2
|
+
if (c()) l.focus({
|
|
3
|
+
preventScroll: !0
|
|
4
|
+
});
|
|
5
|
+
else {
|
|
6
|
+
let e = n(l);
|
|
7
|
+
l.focus(), s(e);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
let r = null;
|
|
11
|
+
function c() {
|
|
12
|
+
if (r == null) {
|
|
13
|
+
r = !1;
|
|
14
|
+
try {
|
|
15
|
+
document.createElement("div").focus({
|
|
16
|
+
get preventScroll() {
|
|
17
|
+
return r = !0, !0;
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
} catch {
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
return r;
|
|
24
|
+
}
|
|
25
|
+
function n(l) {
|
|
26
|
+
let e = l.parentNode, o = [], t = document.scrollingElement || document.documentElement;
|
|
27
|
+
for (; e instanceof HTMLElement && e !== t; )
|
|
28
|
+
(e.offsetHeight < e.scrollHeight || e.offsetWidth < e.scrollWidth) && o.push({
|
|
29
|
+
element: e,
|
|
30
|
+
scrollTop: e.scrollTop,
|
|
31
|
+
scrollLeft: e.scrollLeft
|
|
32
|
+
}), e = e.parentNode;
|
|
33
|
+
return t instanceof HTMLElement && o.push({
|
|
34
|
+
element: t,
|
|
35
|
+
scrollTop: t.scrollTop,
|
|
36
|
+
scrollLeft: t.scrollLeft
|
|
37
|
+
}), o;
|
|
38
|
+
}
|
|
39
|
+
function s(l) {
|
|
40
|
+
for (let { element: e, scrollTop: o, scrollLeft: t } of l)
|
|
41
|
+
e.scrollTop = o, e.scrollLeft = t;
|
|
6
42
|
}
|
|
7
43
|
export {
|
|
8
|
-
|
|
44
|
+
f as focusWithoutScrolling
|
|
9
45
|
};
|
package/index245.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("./index244.js"),a=require("./index246.js"),f=require("react"),s=f.createContext({isNative:!0,open:K,useHref:e=>e});function b(){return f.useContext(s)}function l(e,i,t=!0){var n,d;let{metaKey:r,ctrlKey:o,altKey:u,shiftKey:c}=i;a.isFirefox()&&(!((d=window.event)===null||d===void 0||(n=d.type)===null||n===void 0)&&n.startsWith("key"))&&e.target==="_blank"&&(a.isMac()?r=!0:o=!0);let v=a.isWebKit()&&a.isMac()&&!a.isIPad()&&process.env.NODE_ENV!=="test"?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:r,ctrlKey:o,altKey:u,shiftKey:c}):new MouseEvent("click",{metaKey:r,ctrlKey:o,altKey:u,shiftKey:c,detail:1,bubbles:!0,cancelable:!0});l.isOpening=t,y.focusWithoutScrolling(e),e.dispatchEvent(v),l.isOpening=!1}l.isOpening=!1;function h(e,i){if(e instanceof HTMLAnchorElement)i(e);else if(e.hasAttribute("data-href")){let t=document.createElement("a");t.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(t.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(t.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(t.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(t.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(t.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(t),i(t),e.removeChild(t)}}function K(e,i){h(e,t=>l(t,i))}function $(e){let i=b();var t;const n=i.useHref((t=e==null?void 0:e.href)!==null&&t!==void 0?t:"");return{href:e!=null&&e.href?n:void 0,target:e==null?void 0:e.target,rel:e==null?void 0:e.rel,download:e==null?void 0:e.download,ping:e==null?void 0:e.ping,referrerPolicy:e==null?void 0:e.referrerPolicy}}exports.openLink=l;exports.useLinkProps=$;exports.useRouter=b;
|
package/index245.mjs
CHANGED
|
@@ -1,8 +1,61 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { focusWithoutScrolling as b } from "./index244.mjs";
|
|
2
|
+
import { isFirefox as v, isWebKit as $, isMac as u, isIPad as s } from "./index246.mjs";
|
|
3
|
+
import { useContext as y, createContext as h } from "react";
|
|
4
|
+
const K = /* @__PURE__ */ h({
|
|
5
|
+
isNative: !0,
|
|
6
|
+
open: x,
|
|
7
|
+
useHref: (e) => e
|
|
8
|
+
});
|
|
9
|
+
function m() {
|
|
10
|
+
return y(K);
|
|
11
|
+
}
|
|
12
|
+
function n(e, i, t = !0) {
|
|
13
|
+
var a, d;
|
|
14
|
+
let { metaKey: r, ctrlKey: l, altKey: o, shiftKey: c } = i;
|
|
15
|
+
v() && (!((d = window.event) === null || d === void 0 || (a = d.type) === null || a === void 0) && a.startsWith("key")) && e.target === "_blank" && (u() ? r = !0 : l = !0);
|
|
16
|
+
let f = $() && u() && !s() && process.env.NODE_ENV !== "test" ? new KeyboardEvent("keydown", {
|
|
17
|
+
keyIdentifier: "Enter",
|
|
18
|
+
metaKey: r,
|
|
19
|
+
ctrlKey: l,
|
|
20
|
+
altKey: o,
|
|
21
|
+
shiftKey: c
|
|
22
|
+
}) : new MouseEvent("click", {
|
|
23
|
+
metaKey: r,
|
|
24
|
+
ctrlKey: l,
|
|
25
|
+
altKey: o,
|
|
26
|
+
shiftKey: c,
|
|
27
|
+
detail: 1,
|
|
28
|
+
bubbles: !0,
|
|
29
|
+
cancelable: !0
|
|
30
|
+
});
|
|
31
|
+
n.isOpening = t, b(e), e.dispatchEvent(f), n.isOpening = !1;
|
|
32
|
+
}
|
|
33
|
+
n.isOpening = !1;
|
|
34
|
+
function w(e, i) {
|
|
35
|
+
if (e instanceof HTMLAnchorElement) i(e);
|
|
36
|
+
else if (e.hasAttribute("data-href")) {
|
|
37
|
+
let t = document.createElement("a");
|
|
38
|
+
t.href = e.getAttribute("data-href"), e.hasAttribute("data-target") && (t.target = e.getAttribute("data-target")), e.hasAttribute("data-rel") && (t.rel = e.getAttribute("data-rel")), e.hasAttribute("data-download") && (t.download = e.getAttribute("data-download")), e.hasAttribute("data-ping") && (t.ping = e.getAttribute("data-ping")), e.hasAttribute("data-referrer-policy") && (t.referrerPolicy = e.getAttribute("data-referrer-policy")), e.appendChild(t), i(t), e.removeChild(t);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
function x(e, i) {
|
|
42
|
+
w(e, (t) => n(t, i));
|
|
43
|
+
}
|
|
44
|
+
function E(e) {
|
|
45
|
+
let i = m();
|
|
46
|
+
var t;
|
|
47
|
+
const a = i.useHref((t = e == null ? void 0 : e.href) !== null && t !== void 0 ? t : "");
|
|
48
|
+
return {
|
|
49
|
+
href: e != null && e.href ? a : void 0,
|
|
50
|
+
target: e == null ? void 0 : e.target,
|
|
51
|
+
rel: e == null ? void 0 : e.rel,
|
|
52
|
+
download: e == null ? void 0 : e.download,
|
|
53
|
+
ping: e == null ? void 0 : e.ping,
|
|
54
|
+
referrerPolicy: e == null ? void 0 : e.referrerPolicy
|
|
55
|
+
};
|
|
5
56
|
}
|
|
6
57
|
export {
|
|
7
|
-
|
|
58
|
+
n as openLink,
|
|
59
|
+
E as useLinkProps,
|
|
60
|
+
m as useRouter
|
|
8
61
|
};
|
package/index246.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function a(t){var e;if(typeof window>"u"||window.navigator==null)return!1;let i=(e=window.navigator.userAgentData)===null||e===void 0?void 0:e.brands;return Array.isArray(i)&&i.some($=>t.test($.brand))||t.test(window.navigator.userAgent)}function r(t){var e;return typeof window<"u"&&window.navigator!=null?t.test(((e=window.navigator.userAgentData)===null||e===void 0?void 0:e.platform)||window.navigator.platform):!1}function n(t){if(process.env.NODE_ENV==="test")return t;let e=null;return()=>(e==null&&(e=t()),e)}const o=n(function(){return r(/^Mac/i)}),c=n(function(){return r(/^iPhone/i)}),u=n(function(){return r(/^iPad/i)||o()&&navigator.maxTouchPoints>1}),s=n(function(){return c()||u()}),f=n(function(){return o()||s()}),l=n(function(){return a(/AppleWebKit/i)&&!d()}),d=n(function(){return a(/Chrome/i)}),v=n(function(){return a(/Android/i)}),w=n(function(){return a(/Firefox/i)});exports.isAndroid=v;exports.isAppleDevice=f;exports.isChrome=d;exports.isFirefox=w;exports.isIOS=s;exports.isIPad=u;exports.isIPhone=c;exports.isMac=o;exports.isWebKit=l;
|
package/index246.mjs
CHANGED
|
@@ -1,10 +1,46 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
return c;
|
|
1
|
+
function t(a) {
|
|
2
|
+
var e;
|
|
3
|
+
if (typeof window > "u" || window.navigator == null) return !1;
|
|
4
|
+
let o = (e = window.navigator.userAgentData) === null || e === void 0 ? void 0 : e.brands;
|
|
5
|
+
return Array.isArray(o) && o.some((c) => a.test(c.brand)) || a.test(window.navigator.userAgent);
|
|
7
6
|
}
|
|
7
|
+
function r(a) {
|
|
8
|
+
var e;
|
|
9
|
+
return typeof window < "u" && window.navigator != null ? a.test(((e = window.navigator.userAgentData) === null || e === void 0 ? void 0 : e.platform) || window.navigator.platform) : !1;
|
|
10
|
+
}
|
|
11
|
+
function n(a) {
|
|
12
|
+
if (process.env.NODE_ENV === "test") return a;
|
|
13
|
+
let e = null;
|
|
14
|
+
return () => (e == null && (e = a()), e);
|
|
15
|
+
}
|
|
16
|
+
const i = n(function() {
|
|
17
|
+
return r(/^Mac/i);
|
|
18
|
+
}), s = n(function() {
|
|
19
|
+
return r(/^iPhone/i);
|
|
20
|
+
}), u = n(function() {
|
|
21
|
+
return r(/^iPad/i) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
|
|
22
|
+
i() && navigator.maxTouchPoints > 1;
|
|
23
|
+
}), $ = n(function() {
|
|
24
|
+
return s() || u();
|
|
25
|
+
}), f = n(function() {
|
|
26
|
+
return i() || $();
|
|
27
|
+
}), l = n(function() {
|
|
28
|
+
return t(/AppleWebKit/i) && !d();
|
|
29
|
+
}), d = n(function() {
|
|
30
|
+
return t(/Chrome/i);
|
|
31
|
+
}), v = n(function() {
|
|
32
|
+
return t(/Android/i);
|
|
33
|
+
}), w = n(function() {
|
|
34
|
+
return t(/Firefox/i);
|
|
35
|
+
});
|
|
8
36
|
export {
|
|
9
|
-
|
|
37
|
+
v as isAndroid,
|
|
38
|
+
f as isAppleDevice,
|
|
39
|
+
d as isChrome,
|
|
40
|
+
w as isFirefox,
|
|
41
|
+
$ as isIOS,
|
|
42
|
+
u as isIPad,
|
|
43
|
+
s as isIPhone,
|
|
44
|
+
i as isMac,
|
|
45
|
+
l as isWebKit
|
|
10
46
|
};
|
package/index247.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});let r=new Map,a=new Set;function o(){if(typeof window>"u")return;function t(e){return"propertyName"in e}let d=e=>{if(!t(e)||!e.target)return;let n=r.get(e.target);n||(n=new Set,r.set(e.target,n),e.target.addEventListener("transitioncancel",i,{once:!0})),n.add(e.propertyName)},i=e=>{if(!t(e)||!e.target)return;let n=r.get(e.target);if(n&&(n.delete(e.propertyName),n.size===0&&(e.target.removeEventListener("transitioncancel",i),r.delete(e.target)),r.size===0)){for(let s of a)s();a.clear()}};document.body.addEventListener("transitionrun",d),document.body.addEventListener("transitionend",i)}typeof document<"u"&&(document.readyState!=="loading"?o():document.addEventListener("DOMContentLoaded",o));function c(){for(const[t]of r)"isConnected"in t&&!t.isConnected&&r.delete(t)}function f(t){requestAnimationFrame(()=>{c(),r.size===0?t():a.add(t)})}exports.runAfterTransition=f;
|
package/index247.mjs
CHANGED
|
@@ -1,32 +1,35 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
if (!t) return;
|
|
9
|
-
let
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}, d.set(t, e);
|
|
1
|
+
let r = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Set();
|
|
2
|
+
function o() {
|
|
3
|
+
if (typeof window > "u") return;
|
|
4
|
+
function t(e) {
|
|
5
|
+
return "propertyName" in e;
|
|
6
|
+
}
|
|
7
|
+
let d = (e) => {
|
|
8
|
+
if (!t(e) || !e.target) return;
|
|
9
|
+
let n = r.get(e.target);
|
|
10
|
+
n || (n = /* @__PURE__ */ new Set(), r.set(e.target, n), e.target.addEventListener("transitioncancel", i, {
|
|
11
|
+
once: !0
|
|
12
|
+
})), n.add(e.propertyName);
|
|
13
|
+
}, i = (e) => {
|
|
14
|
+
if (!t(e) || !e.target) return;
|
|
15
|
+
let n = r.get(e.target);
|
|
16
|
+
if (n && (n.delete(e.propertyName), n.size === 0 && (e.target.removeEventListener("transitioncancel", i), r.delete(e.target)), r.size === 0)) {
|
|
17
|
+
for (let s of a) s();
|
|
18
|
+
a.clear();
|
|
20
19
|
}
|
|
21
|
-
return e.refCount++, () => {
|
|
22
|
-
e && --e.refCount === 0 && (e.element.remove(), d.delete(t));
|
|
23
|
-
};
|
|
24
|
-
}, [
|
|
25
|
-
t
|
|
26
|
-
]), {
|
|
27
|
-
"aria-describedby": t ? f : void 0
|
|
28
20
|
};
|
|
21
|
+
document.body.addEventListener("transitionrun", d), document.body.addEventListener("transitionend", i);
|
|
22
|
+
}
|
|
23
|
+
typeof document < "u" && (document.readyState !== "loading" ? o() : document.addEventListener("DOMContentLoaded", o));
|
|
24
|
+
function c() {
|
|
25
|
+
for (const [t] of r)
|
|
26
|
+
"isConnected" in t && !t.isConnected && r.delete(t);
|
|
27
|
+
}
|
|
28
|
+
function f(t) {
|
|
29
|
+
requestAnimationFrame(() => {
|
|
30
|
+
c(), r.size === 0 ? t() : a.add(t);
|
|
31
|
+
});
|
|
29
32
|
}
|
|
30
33
|
export {
|
|
31
|
-
|
|
34
|
+
f as runAfterTransition
|
|
32
35
|
};
|
package/index248.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 o=require("react");function b(){let a=o.useRef(new Map),d=o.useCallback((e,l,t,r)=>{let n=r!=null&&r.once?(...c)=>{a.current.delete(t),t(...c)}:t;a.current.set(t,{type:l,eventTarget:e,fn:n,options:r}),e.addEventListener(l,n,r)},[]),s=o.useCallback((e,l,t,r)=>{var n;let c=((n=a.current.get(t))===null||n===void 0?void 0:n.fn)||t;e.removeEventListener(l,c,r),a.current.delete(t)},[]),u=o.useCallback(()=>{a.current.forEach((e,l)=>{s(e.eventTarget,e.type,l,e.options)})},[s]);return o.useEffect(()=>u,[u]),{addGlobalListener:d,removeGlobalListener:s,removeAllGlobalListeners:u}}exports.useGlobalListeners=b;
|
package/index248.mjs
CHANGED
|
@@ -1,20 +1,34 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { useRef as c, useCallback as f, useEffect as b } from "react";
|
|
2
|
+
function L() {
|
|
3
|
+
let o = c(/* @__PURE__ */ new Map()), u = f((e, l, r, t) => {
|
|
4
|
+
let n = t != null && t.once ? (...d) => {
|
|
5
|
+
o.current.delete(r), r(...d);
|
|
6
|
+
} : r;
|
|
7
|
+
o.current.set(r, {
|
|
8
|
+
type: l,
|
|
9
|
+
eventTarget: e,
|
|
10
|
+
fn: n,
|
|
11
|
+
options: t
|
|
12
|
+
}), e.addEventListener(l, n, t);
|
|
13
|
+
}, []), a = f((e, l, r, t) => {
|
|
14
|
+
var n;
|
|
15
|
+
let d = ((n = o.current.get(r)) === null || n === void 0 ? void 0 : n.fn) || r;
|
|
16
|
+
e.removeEventListener(l, d, t), o.current.delete(r);
|
|
17
|
+
}, []), s = f(() => {
|
|
18
|
+
o.current.forEach((e, l) => {
|
|
19
|
+
a(e.eventTarget, e.type, l, e.options);
|
|
20
|
+
});
|
|
11
21
|
}, [
|
|
12
|
-
|
|
13
|
-
t,
|
|
14
|
-
r,
|
|
15
|
-
n
|
|
22
|
+
a
|
|
16
23
|
]);
|
|
24
|
+
return b(() => s, [
|
|
25
|
+
s
|
|
26
|
+
]), {
|
|
27
|
+
addGlobalListener: u,
|
|
28
|
+
removeGlobalListener: a,
|
|
29
|
+
removeAllGlobalListeners: s
|
|
30
|
+
};
|
|
17
31
|
}
|
|
18
32
|
export {
|
|
19
|
-
|
|
33
|
+
L as useGlobalListeners
|
|
20
34
|
};
|
package/index249.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 r=require("./index185.js");function d(a,t){let{id:i,"aria-label":l,"aria-labelledby":e}=a;return i=r.useId(i),e&&l?e=[...new Set([i,...e.trim().split(/\s+/)])].join(" "):e&&(e=e.trim().split(/\s+/).join(" ")),!l&&!e&&t&&(l=t),{id:i,"aria-label":l,"aria-labelledby":e}}exports.useLabels=d;
|