@sps-woodland/modal 8.2.0 → 8.2.2
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/lib/index.cjs.js +4 -4
- package/lib/index.es.js +296 -295
- package/lib/modal/Modal.d.ts +2 -1
- package/lib/modal/useModal.d.ts +1 -1
- package/package.json +7 -7
package/lib/index.es.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Metadata as
|
|
2
|
-
import { Button as
|
|
1
|
+
import { Metadata as Ce, cl as le, combineEventHandlers as $e, I18nContext as ot, useChildTestIdAttrBuilder as rt, selectChildren as nt, modChildren as at, Icon as lt, contentOf as oe } from "@sps-woodland/core";
|
|
2
|
+
import { Button as he } from "@sps-woodland/buttons";
|
|
3
3
|
import * as u from "react";
|
|
4
4
|
import h, { useState as z, useRef as M, useEffect as S, useCallback as k, useContext as q, useMemo as W } from "react";
|
|
5
|
-
import
|
|
5
|
+
import it from "react-dom";
|
|
6
6
|
import { code as b } from "@spscommerce/utils";
|
|
7
|
-
function
|
|
7
|
+
function st(e, t, o) {
|
|
8
8
|
let [r, n] = z(e || t), a = M(e !== void 0), l = e !== void 0;
|
|
9
9
|
S(() => {
|
|
10
10
|
let d = a.current;
|
|
@@ -13,12 +13,12 @@ function lt(e, t, o) {
|
|
|
13
13
|
l
|
|
14
14
|
]);
|
|
15
15
|
let s = l ? e : r, i = k((d, ...c) => {
|
|
16
|
-
let p = (m, ...
|
|
17
|
-
o && (Object.is(s, m) || o(m, ...
|
|
16
|
+
let p = (m, ...g) => {
|
|
17
|
+
o && (Object.is(s, m) || o(m, ...g)), l || (s = m);
|
|
18
18
|
};
|
|
19
|
-
typeof d == "function" ? (console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"), n((
|
|
20
|
-
let P = d(l ? s :
|
|
21
|
-
return p(P, ...c), l ?
|
|
19
|
+
typeof d == "function" ? (console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"), n((g, ...f) => {
|
|
20
|
+
let P = d(l ? s : g, ...f);
|
|
21
|
+
return p(P, ...c), l ? g : P;
|
|
22
22
|
})) : (l || n(d), p(d, ...c));
|
|
23
23
|
}, [
|
|
24
24
|
l,
|
|
@@ -33,64 +33,64 @@ function lt(e, t, o) {
|
|
|
33
33
|
const j = {
|
|
34
34
|
prefix: String(Math.round(Math.random() * 1e10)),
|
|
35
35
|
current: 0
|
|
36
|
-
},
|
|
37
|
-
let
|
|
38
|
-
function
|
|
39
|
-
let t = q(
|
|
36
|
+
}, Ne = /* @__PURE__ */ h.createContext(j), dt = /* @__PURE__ */ h.createContext(!1);
|
|
37
|
+
let ut = Boolean(typeof window < "u" && window.document && window.document.createElement), re = /* @__PURE__ */ new WeakMap();
|
|
38
|
+
function ct(e = !1) {
|
|
39
|
+
let t = q(Ne), o = M(null);
|
|
40
40
|
if (o.current === null && !e) {
|
|
41
41
|
var r, n;
|
|
42
42
|
let a = (n = h.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED) === null || n === void 0 || (r = n.ReactCurrentOwner) === null || r === void 0 ? void 0 : r.current;
|
|
43
43
|
if (a) {
|
|
44
|
-
let l =
|
|
45
|
-
l == null ?
|
|
44
|
+
let l = re.get(a);
|
|
45
|
+
l == null ? re.set(a, {
|
|
46
46
|
id: t.current,
|
|
47
47
|
state: a.memoizedState
|
|
48
|
-
}) : a.memoizedState !== l.state && (t.current = l.id,
|
|
48
|
+
}) : a.memoizedState !== l.state && (t.current = l.id, re.delete(a));
|
|
49
49
|
}
|
|
50
50
|
o.current = ++t.current;
|
|
51
51
|
}
|
|
52
52
|
return o.current;
|
|
53
53
|
}
|
|
54
|
-
function
|
|
55
|
-
let t = q(
|
|
56
|
-
t === j && !
|
|
57
|
-
let o =
|
|
54
|
+
function mt(e) {
|
|
55
|
+
let t = q(Ne);
|
|
56
|
+
t === j && !ut && console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");
|
|
57
|
+
let o = ct(!!e), r = t === j && process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${t.prefix}`;
|
|
58
58
|
return e || `${r}-${o}`;
|
|
59
59
|
}
|
|
60
|
-
function
|
|
61
|
-
let t = h.useId(), [o] = z(
|
|
60
|
+
function pt(e) {
|
|
61
|
+
let t = h.useId(), [o] = z(Oe()), r = o || process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${j.prefix}`;
|
|
62
62
|
return e || `${r}-${t}`;
|
|
63
63
|
}
|
|
64
|
-
const
|
|
65
|
-
function
|
|
64
|
+
const ft = typeof h.useId == "function" ? pt : mt;
|
|
65
|
+
function gt() {
|
|
66
66
|
return !1;
|
|
67
67
|
}
|
|
68
|
-
function
|
|
68
|
+
function bt() {
|
|
69
69
|
return !0;
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function vt(e) {
|
|
72
72
|
return () => {
|
|
73
73
|
};
|
|
74
74
|
}
|
|
75
|
-
function
|
|
76
|
-
return typeof h.useSyncExternalStore == "function" ? h.useSyncExternalStore(
|
|
75
|
+
function Oe() {
|
|
76
|
+
return typeof h.useSyncExternalStore == "function" ? h.useSyncExternalStore(vt, gt, bt) : q(dt);
|
|
77
77
|
}
|
|
78
|
-
function
|
|
78
|
+
function De(e) {
|
|
79
79
|
var t, o, r = "";
|
|
80
80
|
if (typeof e == "string" || typeof e == "number")
|
|
81
81
|
r += e;
|
|
82
82
|
else if (typeof e == "object")
|
|
83
83
|
if (Array.isArray(e))
|
|
84
84
|
for (t = 0; t < e.length; t++)
|
|
85
|
-
e[t] && (o =
|
|
85
|
+
e[t] && (o = De(e[t])) && (r && (r += " "), r += o);
|
|
86
86
|
else
|
|
87
87
|
for (t in e)
|
|
88
88
|
e[t] && (r && (r += " "), r += t);
|
|
89
89
|
return r;
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function $t() {
|
|
92
92
|
for (var e, t, o = 0, r = ""; o < arguments.length; )
|
|
93
|
-
(e = arguments[o++]) && (t =
|
|
93
|
+
(e = arguments[o++]) && (t = De(e)) && (r && (r += " "), r += t);
|
|
94
94
|
return r;
|
|
95
95
|
}
|
|
96
96
|
const w = typeof document < "u" ? h.useLayoutEffect : () => {
|
|
@@ -106,7 +106,7 @@ function R(e) {
|
|
|
106
106
|
return r(...o);
|
|
107
107
|
}, []);
|
|
108
108
|
}
|
|
109
|
-
function
|
|
109
|
+
function ht(e) {
|
|
110
110
|
let [t, o] = z(e), r = M(null), n = R(() => {
|
|
111
111
|
let l = r.current.next();
|
|
112
112
|
if (l.done) {
|
|
@@ -126,12 +126,12 @@ function vt(e) {
|
|
|
126
126
|
a
|
|
127
127
|
];
|
|
128
128
|
}
|
|
129
|
-
let
|
|
130
|
-
function
|
|
131
|
-
let [t, o] = z(e), r = M(null), n =
|
|
129
|
+
let wt = Boolean(typeof window < "u" && window.document && window.document.createElement), U = /* @__PURE__ */ new Map();
|
|
130
|
+
function Ae(e) {
|
|
131
|
+
let [t, o] = z(e), r = M(null), n = ft(t), a = k((l) => {
|
|
132
132
|
r.current = l;
|
|
133
133
|
}, []);
|
|
134
|
-
return
|
|
134
|
+
return wt && U.set(n, a), w(() => {
|
|
135
135
|
let l = n;
|
|
136
136
|
return () => {
|
|
137
137
|
U.delete(l);
|
|
@@ -143,7 +143,7 @@ function Oe(e) {
|
|
|
143
143
|
l && (r.current = null, o(l));
|
|
144
144
|
}), n;
|
|
145
145
|
}
|
|
146
|
-
function
|
|
146
|
+
function Et(e, t) {
|
|
147
147
|
if (e === t)
|
|
148
148
|
return e;
|
|
149
149
|
let o = U.get(e);
|
|
@@ -152,8 +152,8 @@ function ht(e, t) {
|
|
|
152
152
|
let r = U.get(t);
|
|
153
153
|
return r ? (r(e), e) : t;
|
|
154
154
|
}
|
|
155
|
-
function
|
|
156
|
-
let t =
|
|
155
|
+
function Mt(e = []) {
|
|
156
|
+
let t = Ae(), [o, r] = ht(t), n = k(() => {
|
|
157
157
|
r(function* () {
|
|
158
158
|
yield t, yield document.getElementById(t) ? t : void 0;
|
|
159
159
|
});
|
|
@@ -173,11 +173,11 @@ function G(...e) {
|
|
|
173
173
|
typeof o == "function" && o(...t);
|
|
174
174
|
};
|
|
175
175
|
}
|
|
176
|
-
const
|
|
176
|
+
const yt = (e) => {
|
|
177
177
|
var t;
|
|
178
178
|
return (t = e == null ? void 0 : e.ownerDocument) !== null && t !== void 0 ? t : document;
|
|
179
179
|
};
|
|
180
|
-
function
|
|
180
|
+
function Pt(...e) {
|
|
181
181
|
let t = {
|
|
182
182
|
...e[0]
|
|
183
183
|
};
|
|
@@ -185,44 +185,44 @@ function Mt(...e) {
|
|
|
185
185
|
let r = e[o];
|
|
186
186
|
for (let n in r) {
|
|
187
187
|
let a = t[n], l = r[n];
|
|
188
|
-
typeof a == "function" && typeof l == "function" && n[0] === "o" && n[1] === "n" && n.charCodeAt(2) >= 65 && n.charCodeAt(2) <= 90 ? t[n] = G(a, l) : (n === "className" || n === "UNSAFE_className") && typeof a == "string" && typeof l == "string" ? t[n] =
|
|
188
|
+
typeof a == "function" && typeof l == "function" && n[0] === "o" && n[1] === "n" && n.charCodeAt(2) >= 65 && n.charCodeAt(2) <= 90 ? t[n] = G(a, l) : (n === "className" || n === "UNSAFE_className") && typeof a == "string" && typeof l == "string" ? t[n] = $t(a, l) : n === "id" && a && l ? t.id = Et(a, l) : t[n] = l !== void 0 ? l : a;
|
|
189
189
|
}
|
|
190
190
|
}
|
|
191
191
|
return t;
|
|
192
192
|
}
|
|
193
|
-
const
|
|
193
|
+
const kt = /* @__PURE__ */ new Set([
|
|
194
194
|
"id"
|
|
195
|
-
]),
|
|
195
|
+
]), Tt = /* @__PURE__ */ new Set([
|
|
196
196
|
"aria-label",
|
|
197
197
|
"aria-labelledby",
|
|
198
198
|
"aria-describedby",
|
|
199
199
|
"aria-details"
|
|
200
|
-
]),
|
|
200
|
+
]), xt = /* @__PURE__ */ new Set([
|
|
201
201
|
"href",
|
|
202
202
|
"target",
|
|
203
203
|
"rel",
|
|
204
204
|
"download",
|
|
205
205
|
"ping",
|
|
206
206
|
"referrerPolicy"
|
|
207
|
-
]),
|
|
208
|
-
function
|
|
207
|
+
]), St = /^(data-.*)$/;
|
|
208
|
+
function Ft(e, t = {}) {
|
|
209
209
|
let { labelable: o, isLink: r, propNames: n } = t, a = {};
|
|
210
210
|
for (const l in e)
|
|
211
|
-
Object.prototype.hasOwnProperty.call(e, l) && (
|
|
211
|
+
Object.prototype.hasOwnProperty.call(e, l) && (kt.has(l) || o && Tt.has(l) || r && xt.has(l) || (n == null ? void 0 : n.has(l)) || St.test(l)) && (a[l] = e[l]);
|
|
212
212
|
return a;
|
|
213
213
|
}
|
|
214
|
-
function
|
|
215
|
-
if (
|
|
214
|
+
function we(e) {
|
|
215
|
+
if (Lt())
|
|
216
216
|
e.focus({
|
|
217
217
|
preventScroll: !0
|
|
218
218
|
});
|
|
219
219
|
else {
|
|
220
|
-
let t =
|
|
221
|
-
e.focus(),
|
|
220
|
+
let t = Bt(e);
|
|
221
|
+
e.focus(), Ct(t);
|
|
222
222
|
}
|
|
223
223
|
}
|
|
224
224
|
let H = null;
|
|
225
|
-
function
|
|
225
|
+
function Lt() {
|
|
226
226
|
if (H == null) {
|
|
227
227
|
H = !1;
|
|
228
228
|
try {
|
|
@@ -237,7 +237,7 @@ function St() {
|
|
|
237
237
|
}
|
|
238
238
|
return H;
|
|
239
239
|
}
|
|
240
|
-
function
|
|
240
|
+
function Bt(e) {
|
|
241
241
|
for (var t = e.parentNode, o = [], r = document.scrollingElement || document.documentElement; t instanceof HTMLElement && t !== r; )
|
|
242
242
|
(t.offsetHeight < t.scrollHeight || t.offsetWidth < t.scrollWidth) && o.push({
|
|
243
243
|
element: t,
|
|
@@ -250,35 +250,35 @@ function Ft(e) {
|
|
|
250
250
|
scrollLeft: r.scrollLeft
|
|
251
251
|
}), o;
|
|
252
252
|
}
|
|
253
|
-
function
|
|
253
|
+
function Ct(e) {
|
|
254
254
|
for (let { element: t, scrollTop: o, scrollLeft: r } of e)
|
|
255
255
|
t.scrollTop = o, t.scrollLeft = r;
|
|
256
256
|
}
|
|
257
|
-
function
|
|
257
|
+
function Nt(e) {
|
|
258
258
|
var t;
|
|
259
259
|
return typeof window > "u" || window.navigator == null ? !1 : ((t = window.navigator.userAgentData) === null || t === void 0 ? void 0 : t.brands.some((o) => e.test(o.brand))) || e.test(window.navigator.userAgent);
|
|
260
260
|
}
|
|
261
|
-
function
|
|
261
|
+
function ce(e) {
|
|
262
262
|
var t;
|
|
263
263
|
return typeof window < "u" && window.navigator != null ? e.test(((t = window.navigator.userAgentData) === null || t === void 0 ? void 0 : t.platform) || window.navigator.platform) : !1;
|
|
264
264
|
}
|
|
265
|
-
function
|
|
266
|
-
return
|
|
267
|
-
}
|
|
268
|
-
function Ct() {
|
|
269
|
-
return de(/^iPhone/i);
|
|
270
|
-
}
|
|
271
|
-
function Nt() {
|
|
272
|
-
return de(/^iPad/i) || De() && navigator.maxTouchPoints > 1;
|
|
265
|
+
function We() {
|
|
266
|
+
return ce(/^Mac/i);
|
|
273
267
|
}
|
|
274
268
|
function Ot() {
|
|
275
|
-
return
|
|
269
|
+
return ce(/^iPhone/i);
|
|
276
270
|
}
|
|
277
271
|
function Dt() {
|
|
278
|
-
return
|
|
272
|
+
return ce(/^iPad/i) || We() && navigator.maxTouchPoints > 1;
|
|
273
|
+
}
|
|
274
|
+
function At() {
|
|
275
|
+
return Ot() || Dt();
|
|
276
|
+
}
|
|
277
|
+
function Wt() {
|
|
278
|
+
return Nt(/Android/i);
|
|
279
279
|
}
|
|
280
|
-
let N = /* @__PURE__ */ new Map(),
|
|
281
|
-
function
|
|
280
|
+
let N = /* @__PURE__ */ new Map(), ie = /* @__PURE__ */ new Set();
|
|
281
|
+
function Ee() {
|
|
282
282
|
if (typeof window > "u")
|
|
283
283
|
return;
|
|
284
284
|
let e = (o) => {
|
|
@@ -287,46 +287,46 @@ function he() {
|
|
|
287
287
|
}, t = (o) => {
|
|
288
288
|
let r = N.get(o.target);
|
|
289
289
|
if (!!r && (r.delete(o.propertyName), r.size === 0 && (o.target.removeEventListener("transitioncancel", t), N.delete(o.target)), N.size === 0)) {
|
|
290
|
-
for (let n of
|
|
290
|
+
for (let n of ie)
|
|
291
291
|
n();
|
|
292
|
-
|
|
292
|
+
ie.clear();
|
|
293
293
|
}
|
|
294
294
|
};
|
|
295
295
|
document.body.addEventListener("transitionrun", e), document.body.addEventListener("transitionend", t);
|
|
296
296
|
}
|
|
297
|
-
typeof document < "u" && (document.readyState !== "loading" ?
|
|
298
|
-
function
|
|
297
|
+
typeof document < "u" && (document.readyState !== "loading" ? Ee() : document.addEventListener("DOMContentLoaded", Ee));
|
|
298
|
+
function It(e) {
|
|
299
299
|
requestAnimationFrame(() => {
|
|
300
|
-
N.size === 0 ? e() :
|
|
300
|
+
N.size === 0 ? e() : ie.add(e);
|
|
301
301
|
});
|
|
302
302
|
}
|
|
303
|
-
function
|
|
304
|
-
for (
|
|
303
|
+
function Ie(e) {
|
|
304
|
+
for (Me(e) && (e = e.parentElement); e && !Me(e); )
|
|
305
305
|
e = e.parentElement;
|
|
306
306
|
return e || document.scrollingElement || document.documentElement;
|
|
307
307
|
}
|
|
308
|
-
function
|
|
308
|
+
function Me(e) {
|
|
309
309
|
let t = window.getComputedStyle(e);
|
|
310
310
|
return /(auto|scroll)/.test(t.overflow + t.overflowX + t.overflowY);
|
|
311
311
|
}
|
|
312
|
-
function
|
|
313
|
-
return e.mozInputSource === 0 && e.isTrusted ? !0 :
|
|
312
|
+
function Rt(e) {
|
|
313
|
+
return e.mozInputSource === 0 && e.isTrusted ? !0 : Wt() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
|
|
314
314
|
}
|
|
315
|
-
const
|
|
315
|
+
const Re = h.createContext({
|
|
316
316
|
register: () => {
|
|
317
317
|
}
|
|
318
318
|
});
|
|
319
|
-
|
|
320
|
-
function
|
|
319
|
+
Re.displayName = "PressResponderContext";
|
|
320
|
+
function zt({ children: e }) {
|
|
321
321
|
let t = W(() => ({
|
|
322
322
|
register: () => {
|
|
323
323
|
}
|
|
324
324
|
}), []);
|
|
325
|
-
return /* @__PURE__ */ h.createElement(
|
|
325
|
+
return /* @__PURE__ */ h.createElement(Re.Provider, {
|
|
326
326
|
value: t
|
|
327
327
|
}, e);
|
|
328
328
|
}
|
|
329
|
-
class
|
|
329
|
+
class qt {
|
|
330
330
|
isDefaultPrevented() {
|
|
331
331
|
return this.nativeEvent.defaultPrevented;
|
|
332
332
|
}
|
|
@@ -345,7 +345,7 @@ class Rt {
|
|
|
345
345
|
this.nativeEvent = o, this.target = o.target, this.currentTarget = o.currentTarget, this.relatedTarget = o.relatedTarget, this.bubbles = o.bubbles, this.cancelable = o.cancelable, this.defaultPrevented = o.defaultPrevented, this.eventPhase = o.eventPhase, this.isTrusted = o.isTrusted, this.timeStamp = o.timeStamp, this.type = t;
|
|
346
346
|
}
|
|
347
347
|
}
|
|
348
|
-
function
|
|
348
|
+
function Vt(e) {
|
|
349
349
|
let t = M({
|
|
350
350
|
isFocused: !1,
|
|
351
351
|
observer: null
|
|
@@ -363,7 +363,7 @@ function zt(e) {
|
|
|
363
363
|
if (r.target instanceof HTMLButtonElement || r.target instanceof HTMLInputElement || r.target instanceof HTMLTextAreaElement || r.target instanceof HTMLSelectElement) {
|
|
364
364
|
t.current.isFocused = !0;
|
|
365
365
|
let n = r.target, a = (l) => {
|
|
366
|
-
t.current.isFocused = !1, n.disabled && o(new
|
|
366
|
+
t.current.isFocused = !1, n.disabled && o(new qt("blur", l)), t.current.observer && (t.current.observer.disconnect(), t.current.observer = null);
|
|
367
367
|
};
|
|
368
368
|
n.addEventListener("focusout", a, {
|
|
369
369
|
once: !0
|
|
@@ -390,42 +390,42 @@ function zt(e) {
|
|
|
390
390
|
o
|
|
391
391
|
]);
|
|
392
392
|
}
|
|
393
|
-
let V = null,
|
|
394
|
-
function
|
|
395
|
-
for (let o of
|
|
393
|
+
let V = null, Ht = /* @__PURE__ */ new Set(), ye = !1, B = !1, se = !1;
|
|
394
|
+
function me(e, t) {
|
|
395
|
+
for (let o of Ht)
|
|
396
396
|
o(e, t);
|
|
397
397
|
}
|
|
398
|
-
function
|
|
399
|
-
return !(e.metaKey || !
|
|
398
|
+
function Kt(e) {
|
|
399
|
+
return !(e.metaKey || !We() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
|
|
400
400
|
}
|
|
401
|
-
function
|
|
402
|
-
B = !0,
|
|
401
|
+
function Pe(e) {
|
|
402
|
+
B = !0, Kt(e) && (V = "keyboard", me("keyboard", e));
|
|
403
403
|
}
|
|
404
404
|
function C(e) {
|
|
405
|
-
V = "pointer", (e.type === "mousedown" || e.type === "pointerdown") && (B = !0,
|
|
405
|
+
V = "pointer", (e.type === "mousedown" || e.type === "pointerdown") && (B = !0, me("pointer", e));
|
|
406
406
|
}
|
|
407
|
-
function
|
|
408
|
-
|
|
407
|
+
function _t(e) {
|
|
408
|
+
Rt(e) && (B = !0, V = "virtual");
|
|
409
409
|
}
|
|
410
|
-
function
|
|
411
|
-
e.target === window || e.target === document || (!B && !
|
|
410
|
+
function jt(e) {
|
|
411
|
+
e.target === window || e.target === document || (!B && !se && (V = "virtual", me("virtual", e)), B = !1, se = !1);
|
|
412
412
|
}
|
|
413
|
-
function
|
|
414
|
-
B = !1,
|
|
413
|
+
function Ut() {
|
|
414
|
+
B = !1, se = !0;
|
|
415
415
|
}
|
|
416
|
-
function
|
|
417
|
-
if (typeof window > "u" ||
|
|
416
|
+
function ke() {
|
|
417
|
+
if (typeof window > "u" || ye)
|
|
418
418
|
return;
|
|
419
419
|
let e = HTMLElement.prototype.focus;
|
|
420
420
|
HTMLElement.prototype.focus = function() {
|
|
421
421
|
B = !0, e.apply(this, arguments);
|
|
422
|
-
}, document.addEventListener("keydown",
|
|
422
|
+
}, document.addEventListener("keydown", Pe, !0), document.addEventListener("keyup", Pe, !0), document.addEventListener("click", _t, !0), window.addEventListener("focus", jt, !0), window.addEventListener("blur", Ut, !1), typeof PointerEvent < "u" ? (document.addEventListener("pointerdown", C, !0), document.addEventListener("pointermove", C, !0), document.addEventListener("pointerup", C, !0)) : (document.addEventListener("mousedown", C, !0), document.addEventListener("mousemove", C, !0), document.addEventListener("mouseup", C, !0)), ye = !0;
|
|
423
423
|
}
|
|
424
|
-
typeof document < "u" && (document.readyState !== "loading" ?
|
|
425
|
-
function
|
|
424
|
+
typeof document < "u" && (document.readyState !== "loading" ? ke() : document.addEventListener("DOMContentLoaded", ke));
|
|
425
|
+
function Gt() {
|
|
426
426
|
return V;
|
|
427
427
|
}
|
|
428
|
-
function
|
|
428
|
+
function Yt(e) {
|
|
429
429
|
let { isDisabled: t, onBlurWithin: o, onFocusWithin: r, onFocusWithinChange: n } = e, a = M({
|
|
430
430
|
isFocusWithin: !1
|
|
431
431
|
}), l = k((d) => {
|
|
@@ -434,7 +434,7 @@ function Ut(e) {
|
|
|
434
434
|
o,
|
|
435
435
|
n,
|
|
436
436
|
a
|
|
437
|
-
]), s =
|
|
437
|
+
]), s = Vt(l), i = k((d) => {
|
|
438
438
|
!a.current.isFocusWithin && document.activeElement === d.target && (r && r(d), n && n(!0), a.current.isFocusWithin = !0, s(d));
|
|
439
439
|
}, [
|
|
440
440
|
r,
|
|
@@ -453,7 +453,7 @@ function Ut(e) {
|
|
|
453
453
|
}
|
|
454
454
|
};
|
|
455
455
|
}
|
|
456
|
-
function
|
|
456
|
+
function Xt(e) {
|
|
457
457
|
let { ref: t, onInteractOutside: o, isDisabled: r, onInteractOutsideStart: n } = e, a = M({
|
|
458
458
|
isPointerDown: !1,
|
|
459
459
|
ignoreEmulatedMouseEvents: !1
|
|
@@ -466,7 +466,7 @@ function Gt(e) {
|
|
|
466
466
|
let i = a.current;
|
|
467
467
|
if (r)
|
|
468
468
|
return;
|
|
469
|
-
const d = t.current, c =
|
|
469
|
+
const d = t.current, c = yt(d);
|
|
470
470
|
if (typeof PointerEvent < "u") {
|
|
471
471
|
let p = (m) => {
|
|
472
472
|
i.isPointerDown && K(m, t) && s(m), i.isPointerDown = !1;
|
|
@@ -475,10 +475,10 @@ function Gt(e) {
|
|
|
475
475
|
c.removeEventListener("pointerdown", l, !0), c.removeEventListener("pointerup", p, !0);
|
|
476
476
|
};
|
|
477
477
|
} else {
|
|
478
|
-
let p = (
|
|
479
|
-
i.ignoreEmulatedMouseEvents ? i.ignoreEmulatedMouseEvents = !1 : i.isPointerDown && K(
|
|
480
|
-
}, m = (
|
|
481
|
-
i.ignoreEmulatedMouseEvents = !0, i.isPointerDown && K(
|
|
478
|
+
let p = (g) => {
|
|
479
|
+
i.ignoreEmulatedMouseEvents ? i.ignoreEmulatedMouseEvents = !1 : i.isPointerDown && K(g, t) && s(g), i.isPointerDown = !1;
|
|
480
|
+
}, m = (g) => {
|
|
481
|
+
i.ignoreEmulatedMouseEvents = !0, i.isPointerDown && K(g, t) && s(g), i.isPointerDown = !1;
|
|
482
482
|
};
|
|
483
483
|
return c.addEventListener("mousedown", l, !0), c.addEventListener("mouseup", p, !0), c.addEventListener("touchstart", l, !0), c.addEventListener("touchend", m, !0), () => {
|
|
484
484
|
c.removeEventListener("mousedown", l, !0), c.removeEventListener("mouseup", p, !0), c.removeEventListener("touchstart", l, !0), c.removeEventListener("touchend", m, !0);
|
|
@@ -501,16 +501,16 @@ function K(e, t) {
|
|
|
501
501
|
}
|
|
502
502
|
return t.current && !t.current.contains(e.target);
|
|
503
503
|
}
|
|
504
|
-
function
|
|
505
|
-
if (
|
|
504
|
+
function de(e) {
|
|
505
|
+
if (Gt() === "virtual") {
|
|
506
506
|
let t = document.activeElement;
|
|
507
|
-
|
|
508
|
-
document.activeElement === t && document.contains(e) &&
|
|
507
|
+
It(() => {
|
|
508
|
+
document.activeElement === t && document.contains(e) && we(e);
|
|
509
509
|
});
|
|
510
510
|
} else
|
|
511
|
-
|
|
511
|
+
we(e);
|
|
512
512
|
}
|
|
513
|
-
function
|
|
513
|
+
function Jt(e) {
|
|
514
514
|
if (!(e instanceof HTMLElement) && !(e instanceof SVGElement))
|
|
515
515
|
return !1;
|
|
516
516
|
let { display: t, visibility: o } = e.style, r = t !== "none" && o !== "hidden" && o !== "collapse";
|
|
@@ -521,16 +521,16 @@ function Yt(e) {
|
|
|
521
521
|
}
|
|
522
522
|
return r;
|
|
523
523
|
}
|
|
524
|
-
function
|
|
524
|
+
function Qt(e, t) {
|
|
525
525
|
return !e.hasAttribute("hidden") && (e.nodeName === "DETAILS" && t && t.nodeName !== "SUMMARY" ? e.hasAttribute("open") : !0);
|
|
526
526
|
}
|
|
527
|
-
function
|
|
528
|
-
return e.nodeName !== "#comment" &&
|
|
527
|
+
function ze(e, t) {
|
|
528
|
+
return e.nodeName !== "#comment" && Jt(e) && Qt(e, t) && (!e.parentElement || ze(e.parentElement, e));
|
|
529
529
|
}
|
|
530
|
-
const
|
|
530
|
+
const Te = /* @__PURE__ */ h.createContext(null);
|
|
531
531
|
let v = null;
|
|
532
|
-
function
|
|
533
|
-
let { children: t, contain: o, restoreFocus: r, autoFocus: n } = e, a = M(null), l = M(null), s = M([]), { parentNode: i } = q(
|
|
532
|
+
function Zt(e) {
|
|
533
|
+
let { children: t, contain: o, restoreFocus: r, autoFocus: n } = e, a = M(null), l = M(null), s = M([]), { parentNode: i } = q(Te) || {}, d = W(() => new ue({
|
|
534
534
|
scopeRef: s
|
|
535
535
|
}), [
|
|
536
536
|
s
|
|
@@ -538,8 +538,8 @@ function Jt(e) {
|
|
|
538
538
|
w(() => {
|
|
539
539
|
let m = i || $.root;
|
|
540
540
|
if ($.getTreeNode(m.scopeRef) && v && !X(v, m.scopeRef)) {
|
|
541
|
-
let
|
|
542
|
-
|
|
541
|
+
let g = $.getTreeNode(v);
|
|
542
|
+
g && (m = g);
|
|
543
543
|
}
|
|
544
544
|
m.addChild(d), $.addNode(d);
|
|
545
545
|
}, [
|
|
@@ -552,36 +552,36 @@ function Jt(e) {
|
|
|
552
552
|
o
|
|
553
553
|
]), w(() => {
|
|
554
554
|
var m;
|
|
555
|
-
let
|
|
556
|
-
for (;
|
|
557
|
-
|
|
558
|
-
s.current =
|
|
555
|
+
let g = (m = a.current) === null || m === void 0 ? void 0 : m.nextSibling, f = [];
|
|
556
|
+
for (; g && g !== l.current; )
|
|
557
|
+
f.push(g), g = g.nextSibling;
|
|
558
|
+
s.current = f;
|
|
559
559
|
}, [
|
|
560
560
|
t
|
|
561
|
-
]),
|
|
562
|
-
let m = document.activeElement,
|
|
561
|
+
]), lo(s, r, o), ro(s, o), so(s, r, o), ao(s, n), S(() => {
|
|
562
|
+
let m = document.activeElement, g = null;
|
|
563
563
|
if (E(m, s.current)) {
|
|
564
|
-
for (let
|
|
565
|
-
|
|
566
|
-
|
|
564
|
+
for (let f of $.traverse())
|
|
565
|
+
f.scopeRef && E(m, f.scopeRef.current) && (g = f);
|
|
566
|
+
g === $.getTreeNode(s) && (v = g.scopeRef);
|
|
567
567
|
}
|
|
568
568
|
}, [
|
|
569
569
|
s
|
|
570
570
|
]), w(() => () => {
|
|
571
|
-
var m,
|
|
572
|
-
let P = (
|
|
571
|
+
var m, g, f;
|
|
572
|
+
let P = (f = (g = $.getTreeNode(s)) === null || g === void 0 || (m = g.parent) === null || m === void 0 ? void 0 : m.scopeRef) !== null && f !== void 0 ? f : null;
|
|
573
573
|
(s === v || X(s, v)) && (!P || $.getTreeNode(P)) && (v = P), $.removeTreeNode(s);
|
|
574
574
|
}, [
|
|
575
575
|
s
|
|
576
576
|
]);
|
|
577
|
-
let c = W(() =>
|
|
577
|
+
let c = W(() => eo(s), []), p = W(() => ({
|
|
578
578
|
focusManager: c,
|
|
579
579
|
parentNode: d
|
|
580
580
|
}), [
|
|
581
581
|
d,
|
|
582
582
|
c
|
|
583
583
|
]);
|
|
584
|
-
return /* @__PURE__ */ h.createElement(
|
|
584
|
+
return /* @__PURE__ */ h.createElement(Te.Provider, {
|
|
585
585
|
value: p
|
|
586
586
|
}, /* @__PURE__ */ h.createElement("span", {
|
|
587
587
|
"data-focus-scope-start": !0,
|
|
@@ -593,7 +593,7 @@ function Jt(e) {
|
|
|
593
593
|
ref: l
|
|
594
594
|
}));
|
|
595
595
|
}
|
|
596
|
-
function
|
|
596
|
+
function eo(e) {
|
|
597
597
|
return {
|
|
598
598
|
focusNext(t = {}) {
|
|
599
599
|
let o = e.current, { from: r, tabbable: n, wrap: a, accept: l } = t, s = r || document.activeElement, i = o[0].previousElementSibling, d = L(o), c = F(d, {
|
|
@@ -633,7 +633,7 @@ function Qt(e) {
|
|
|
633
633
|
}
|
|
634
634
|
};
|
|
635
635
|
}
|
|
636
|
-
const
|
|
636
|
+
const pe = [
|
|
637
637
|
"input:not([disabled]):not([type=hidden])",
|
|
638
638
|
"select:not([disabled])",
|
|
639
639
|
"textarea:not([disabled])",
|
|
@@ -647,9 +647,9 @@ const ce = [
|
|
|
647
647
|
"audio[controls]",
|
|
648
648
|
"video[controls]",
|
|
649
649
|
"[contenteditable]"
|
|
650
|
-
],
|
|
651
|
-
|
|
652
|
-
const
|
|
650
|
+
], to = pe.join(":not([hidden]),") + ",[tabindex]:not([disabled]):not([hidden])";
|
|
651
|
+
pe.push('[tabindex]:not([tabindex="-1"]):not([disabled])');
|
|
652
|
+
const oo = pe.join(':not([hidden]):not([tabindex="-1"]),');
|
|
653
653
|
function L(e) {
|
|
654
654
|
return e[0].parentElement;
|
|
655
655
|
}
|
|
@@ -662,7 +662,7 @@ function A(e) {
|
|
|
662
662
|
}
|
|
663
663
|
return !0;
|
|
664
664
|
}
|
|
665
|
-
function
|
|
665
|
+
function ro(e, t) {
|
|
666
666
|
let o = M(), r = M();
|
|
667
667
|
w(() => {
|
|
668
668
|
let n = e.current;
|
|
@@ -682,8 +682,8 @@ function to(e, t) {
|
|
|
682
682
|
if (!d)
|
|
683
683
|
return;
|
|
684
684
|
m.currentNode = d;
|
|
685
|
-
let
|
|
686
|
-
|
|
685
|
+
let g = i.shiftKey ? m.previousNode() : m.nextNode();
|
|
686
|
+
g || (m.currentNode = i.shiftKey ? c[c.length - 1].nextElementSibling : c[0].previousElementSibling, g = i.shiftKey ? m.previousNode() : m.nextNode()), i.preventDefault(), g && x(g, !0);
|
|
687
687
|
}, l = (i) => {
|
|
688
688
|
(!v || X(v, e)) && E(i.target, e.current) ? (v = e, o.current = i.target) : A(e) && !Y(i.target, e) ? o.current ? o.current.focus() : v && v.current && J(v.current) : A(e) && (o.current = i.target);
|
|
689
689
|
}, s = (i) => {
|
|
@@ -708,7 +708,7 @@ function to(e, t) {
|
|
|
708
708
|
r
|
|
709
709
|
]);
|
|
710
710
|
}
|
|
711
|
-
function
|
|
711
|
+
function qe(e) {
|
|
712
712
|
return Y(e);
|
|
713
713
|
}
|
|
714
714
|
function E(e, t) {
|
|
@@ -722,7 +722,7 @@ function Y(e, t = null) {
|
|
|
722
722
|
return !0;
|
|
723
723
|
return !1;
|
|
724
724
|
}
|
|
725
|
-
function
|
|
725
|
+
function no(e) {
|
|
726
726
|
return Y(e, v);
|
|
727
727
|
}
|
|
728
728
|
function X(e, t) {
|
|
@@ -738,7 +738,7 @@ function X(e, t) {
|
|
|
738
738
|
function x(e, t = !1) {
|
|
739
739
|
if (e != null && !t)
|
|
740
740
|
try {
|
|
741
|
-
|
|
741
|
+
de(e);
|
|
742
742
|
} catch {
|
|
743
743
|
}
|
|
744
744
|
else if (e != null)
|
|
@@ -757,7 +757,7 @@ function J(e, t = !0) {
|
|
|
757
757
|
tabbable: !1
|
|
758
758
|
}, e), n.currentNode = o, a = n.nextNode()), x(a);
|
|
759
759
|
}
|
|
760
|
-
function
|
|
760
|
+
function ao(e, t) {
|
|
761
761
|
const o = h.useRef(t);
|
|
762
762
|
S(() => {
|
|
763
763
|
o.current && (v = e, !E(document.activeElement, v.current) && e.current && J(e.current)), o.current = !1;
|
|
@@ -765,13 +765,13 @@ function ro(e, t) {
|
|
|
765
765
|
e
|
|
766
766
|
]);
|
|
767
767
|
}
|
|
768
|
-
function
|
|
768
|
+
function lo(e, t, o) {
|
|
769
769
|
w(() => {
|
|
770
770
|
if (t || o)
|
|
771
771
|
return;
|
|
772
772
|
let r = e.current, n = (a) => {
|
|
773
773
|
let l = a.target;
|
|
774
|
-
E(l, e.current) ? v = e :
|
|
774
|
+
E(l, e.current) ? v = e : qe(l) || (v = null);
|
|
775
775
|
};
|
|
776
776
|
return document.addEventListener("focusin", n, !1), r == null || r.forEach((a) => a.addEventListener("focusin", n, !1)), () => {
|
|
777
777
|
document.removeEventListener("focusin", n, !1), r == null || r.forEach((a) => a.removeEventListener("focusin", n, !1));
|
|
@@ -782,7 +782,7 @@ function no(e, t, o) {
|
|
|
782
782
|
o
|
|
783
783
|
]);
|
|
784
784
|
}
|
|
785
|
-
function
|
|
785
|
+
function io(e) {
|
|
786
786
|
let t = $.getTreeNode(v);
|
|
787
787
|
for (; t && t.scopeRef !== e; ) {
|
|
788
788
|
if (t.nodeToRestore)
|
|
@@ -791,7 +791,7 @@ function ao(e) {
|
|
|
791
791
|
}
|
|
792
792
|
return (t == null ? void 0 : t.scopeRef) === e;
|
|
793
793
|
}
|
|
794
|
-
function
|
|
794
|
+
function so(e, t, o) {
|
|
795
795
|
const r = M(typeof document < "u" ? document.activeElement : null);
|
|
796
796
|
w(() => {
|
|
797
797
|
let n = e.current;
|
|
@@ -828,7 +828,7 @@ function lo(e, t, o) {
|
|
|
828
828
|
do
|
|
829
829
|
c = a.shiftKey ? d.previousNode() : d.nextNode();
|
|
830
830
|
while (E(c, e.current));
|
|
831
|
-
a.preventDefault(), a.stopPropagation(), c ? x(c, !0) :
|
|
831
|
+
a.preventDefault(), a.stopPropagation(), c ? x(c, !0) : qe(i) ? x(i, !0) : l.blur();
|
|
832
832
|
}
|
|
833
833
|
};
|
|
834
834
|
return o || document.addEventListener("keydown", n, !0), () => {
|
|
@@ -849,7 +849,7 @@ function lo(e, t, o) {
|
|
|
849
849
|
if (!l)
|
|
850
850
|
return;
|
|
851
851
|
let s = l.nodeToRestore;
|
|
852
|
-
if (t && s && (E(document.activeElement, e.current) || document.activeElement === document.body &&
|
|
852
|
+
if (t && s && (E(document.activeElement, e.current) || document.activeElement === document.body && io(e))) {
|
|
853
853
|
let i = $.clone();
|
|
854
854
|
requestAnimationFrame(() => {
|
|
855
855
|
if (document.activeElement === document.body) {
|
|
@@ -879,15 +879,15 @@ function lo(e, t, o) {
|
|
|
879
879
|
]);
|
|
880
880
|
}
|
|
881
881
|
function F(e, t, o) {
|
|
882
|
-
let r = t != null && t.tabbable ?
|
|
882
|
+
let r = t != null && t.tabbable ? oo : to, n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
|
|
883
883
|
acceptNode(a) {
|
|
884
884
|
var l;
|
|
885
|
-
return !(t == null || (l = t.from) === null || l === void 0) && l.contains(a) ? NodeFilter.FILTER_REJECT : a.matches(r) &&
|
|
885
|
+
return !(t == null || (l = t.from) === null || l === void 0) && l.contains(a) ? NodeFilter.FILTER_REJECT : a.matches(r) && ze(a) && (!o || E(a, o)) && (!(t != null && t.accept) || t.accept(a)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
|
|
886
886
|
}
|
|
887
887
|
});
|
|
888
888
|
return t != null && t.from && (n.currentNode = t.from), n;
|
|
889
889
|
}
|
|
890
|
-
class
|
|
890
|
+
class fe {
|
|
891
891
|
get size() {
|
|
892
892
|
return this.fastMap.size;
|
|
893
893
|
}
|
|
@@ -898,7 +898,7 @@ class me {
|
|
|
898
898
|
let n = this.fastMap.get(o != null ? o : null);
|
|
899
899
|
if (!n)
|
|
900
900
|
return;
|
|
901
|
-
let a = new
|
|
901
|
+
let a = new ue({
|
|
902
902
|
scopeRef: t
|
|
903
903
|
});
|
|
904
904
|
n.addChild(a), a.parent = n, this.fastMap.set(t, a), r && (a.nodeToRestore = r);
|
|
@@ -925,19 +925,19 @@ class me {
|
|
|
925
925
|
}
|
|
926
926
|
clone() {
|
|
927
927
|
var t;
|
|
928
|
-
let o = new
|
|
928
|
+
let o = new fe();
|
|
929
929
|
var r;
|
|
930
930
|
for (let n of this.traverse())
|
|
931
931
|
o.addTreeNode(n.scopeRef, (r = (t = n.parent) === null || t === void 0 ? void 0 : t.scopeRef) !== null && r !== void 0 ? r : null, n.nodeToRestore);
|
|
932
932
|
return o;
|
|
933
933
|
}
|
|
934
934
|
constructor() {
|
|
935
|
-
this.fastMap = /* @__PURE__ */ new Map(), this.root = new
|
|
935
|
+
this.fastMap = /* @__PURE__ */ new Map(), this.root = new ue({
|
|
936
936
|
scopeRef: null
|
|
937
937
|
}), this.fastMap.set(null, this.root);
|
|
938
938
|
}
|
|
939
939
|
}
|
|
940
|
-
class
|
|
940
|
+
class ue {
|
|
941
941
|
addChild(t) {
|
|
942
942
|
this.children.add(t), t.parent = this;
|
|
943
943
|
}
|
|
@@ -948,38 +948,38 @@ class se {
|
|
|
948
948
|
this.children = /* @__PURE__ */ new Set(), this.contain = !1, this.scopeRef = t.scopeRef;
|
|
949
949
|
}
|
|
950
950
|
}
|
|
951
|
-
let $ = new
|
|
952
|
-
const
|
|
953
|
-
function
|
|
951
|
+
let $ = new fe();
|
|
952
|
+
const uo = /* @__PURE__ */ new WeakMap(), T = [];
|
|
953
|
+
function co(e, t) {
|
|
954
954
|
let { onClose: o, shouldCloseOnBlur: r, isOpen: n, isDismissable: a = !1, isKeyboardDismissDisabled: l = !1, shouldCloseOnInteractOutside: s } = e;
|
|
955
955
|
S(() => (n && T.push(t), () => {
|
|
956
|
-
let
|
|
957
|
-
|
|
956
|
+
let f = T.indexOf(t);
|
|
957
|
+
f >= 0 && T.splice(f, 1);
|
|
958
958
|
}), [
|
|
959
959
|
n,
|
|
960
960
|
t
|
|
961
961
|
]);
|
|
962
962
|
let i = () => {
|
|
963
963
|
T[T.length - 1] === t && o && o();
|
|
964
|
-
}, d = (
|
|
965
|
-
(!s || s(
|
|
966
|
-
}, c = (
|
|
967
|
-
(!s || s(
|
|
968
|
-
}, p = (
|
|
969
|
-
|
|
964
|
+
}, d = (f) => {
|
|
965
|
+
(!s || s(f.target)) && T[T.length - 1] === t && (f.stopPropagation(), f.preventDefault());
|
|
966
|
+
}, c = (f) => {
|
|
967
|
+
(!s || s(f.target)) && (T[T.length - 1] === t && (f.stopPropagation(), f.preventDefault()), i());
|
|
968
|
+
}, p = (f) => {
|
|
969
|
+
f.key === "Escape" && !l && (f.stopPropagation(), f.preventDefault(), i());
|
|
970
970
|
};
|
|
971
|
-
|
|
971
|
+
Xt({
|
|
972
972
|
ref: t,
|
|
973
973
|
onInteractOutside: a && n ? c : null,
|
|
974
974
|
onInteractOutsideStart: d
|
|
975
975
|
});
|
|
976
|
-
let { focusWithinProps: m } =
|
|
976
|
+
let { focusWithinProps: m } = Yt({
|
|
977
977
|
isDisabled: !r,
|
|
978
|
-
onBlurWithin: (
|
|
979
|
-
!
|
|
978
|
+
onBlurWithin: (f) => {
|
|
979
|
+
!f.relatedTarget || no(f.relatedTarget) || (!s || s(f.relatedTarget)) && o();
|
|
980
980
|
}
|
|
981
|
-
}),
|
|
982
|
-
|
|
981
|
+
}), g = (f) => {
|
|
982
|
+
f.target === f.currentTarget && f.preventDefault();
|
|
983
983
|
};
|
|
984
984
|
return {
|
|
985
985
|
overlayProps: {
|
|
@@ -987,18 +987,18 @@ function so(e, t) {
|
|
|
987
987
|
...m
|
|
988
988
|
},
|
|
989
989
|
underlayProps: {
|
|
990
|
-
onPointerDown:
|
|
990
|
+
onPointerDown: g
|
|
991
991
|
}
|
|
992
992
|
};
|
|
993
993
|
}
|
|
994
|
-
function
|
|
994
|
+
function mo(e, t, o) {
|
|
995
995
|
let { type: r } = e, { isOpen: n } = t;
|
|
996
996
|
S(() => {
|
|
997
|
-
o && o.current &&
|
|
997
|
+
o && o.current && uo.set(o.current, t.close);
|
|
998
998
|
});
|
|
999
999
|
let a;
|
|
1000
1000
|
r === "menu" ? a = !0 : r === "listbox" && (a = "listbox");
|
|
1001
|
-
let l =
|
|
1001
|
+
let l = Ae();
|
|
1002
1002
|
return {
|
|
1003
1003
|
triggerProps: {
|
|
1004
1004
|
"aria-haspopup": a,
|
|
@@ -1011,7 +1011,7 @@ function uo(e, t, o) {
|
|
|
1011
1011
|
}
|
|
1012
1012
|
};
|
|
1013
1013
|
}
|
|
1014
|
-
const
|
|
1014
|
+
const ne = typeof document < "u" && window.visualViewport, po = /* @__PURE__ */ new Set([
|
|
1015
1015
|
"checkbox",
|
|
1016
1016
|
"radio",
|
|
1017
1017
|
"range",
|
|
@@ -1022,42 +1022,42 @@ const oe = typeof document < "u" && window.visualViewport, co = /* @__PURE__ */
|
|
|
1022
1022
|
"submit",
|
|
1023
1023
|
"reset"
|
|
1024
1024
|
]);
|
|
1025
|
-
let _ = 0,
|
|
1026
|
-
function
|
|
1025
|
+
let _ = 0, ae;
|
|
1026
|
+
function fo(e = {}) {
|
|
1027
1027
|
let { isDisabled: t } = e;
|
|
1028
1028
|
w(() => {
|
|
1029
1029
|
if (!t)
|
|
1030
|
-
return _++, _ === 1 && (
|
|
1031
|
-
_--, _ === 0 &&
|
|
1030
|
+
return _++, _ === 1 && (At() ? ae = bo() : ae = go()), () => {
|
|
1031
|
+
_--, _ === 0 && ae();
|
|
1032
1032
|
};
|
|
1033
1033
|
}, [
|
|
1034
1034
|
t
|
|
1035
1035
|
]);
|
|
1036
1036
|
}
|
|
1037
|
-
function
|
|
1037
|
+
function go() {
|
|
1038
1038
|
return G(I(document.documentElement, "paddingRight", `${window.innerWidth - document.documentElement.clientWidth}px`), I(document.documentElement, "overflow", "hidden"));
|
|
1039
1039
|
}
|
|
1040
|
-
function
|
|
1040
|
+
function bo() {
|
|
1041
1041
|
let e, t = 0, o = (p) => {
|
|
1042
|
-
e =
|
|
1042
|
+
e = Ie(p.target), !(e === document.documentElement && e === document.body) && (t = p.changedTouches[0].pageY);
|
|
1043
1043
|
}, r = (p) => {
|
|
1044
1044
|
if (!e || e === document.documentElement || e === document.body) {
|
|
1045
1045
|
p.preventDefault();
|
|
1046
1046
|
return;
|
|
1047
1047
|
}
|
|
1048
|
-
let m = p.changedTouches[0].pageY,
|
|
1049
|
-
|
|
1048
|
+
let m = p.changedTouches[0].pageY, g = e.scrollTop, f = e.scrollHeight - e.clientHeight;
|
|
1049
|
+
f !== 0 && ((g <= 0 && m > t || g >= f && m < t) && p.preventDefault(), t = m);
|
|
1050
1050
|
}, n = (p) => {
|
|
1051
1051
|
let m = p.target;
|
|
1052
|
-
|
|
1052
|
+
Se(m) && m !== document.activeElement && (p.preventDefault(), m.style.transform = "translateY(-2000px)", m.focus(), requestAnimationFrame(() => {
|
|
1053
1053
|
m.style.transform = "";
|
|
1054
1054
|
}));
|
|
1055
1055
|
}, a = (p) => {
|
|
1056
1056
|
let m = p.target;
|
|
1057
|
-
|
|
1058
|
-
m.style.transform = "",
|
|
1059
|
-
|
|
1060
|
-
}) :
|
|
1057
|
+
Se(m) && (m.style.transform = "translateY(-2000px)", requestAnimationFrame(() => {
|
|
1058
|
+
m.style.transform = "", ne && (ne.height < window.innerHeight ? requestAnimationFrame(() => {
|
|
1059
|
+
xe(m);
|
|
1060
|
+
}) : ne.addEventListener("resize", () => xe(m), {
|
|
1061
1061
|
once: !0
|
|
1062
1062
|
}));
|
|
1063
1063
|
}));
|
|
@@ -1090,10 +1090,10 @@ function O(e, t, o, r) {
|
|
|
1090
1090
|
e.removeEventListener(t, o, r);
|
|
1091
1091
|
};
|
|
1092
1092
|
}
|
|
1093
|
-
function
|
|
1093
|
+
function xe(e) {
|
|
1094
1094
|
let t = document.scrollingElement || document.documentElement;
|
|
1095
1095
|
for (; e && e !== t; ) {
|
|
1096
|
-
let o =
|
|
1096
|
+
let o = Ie(e);
|
|
1097
1097
|
if (o !== document.documentElement && o !== document.body && o !== e) {
|
|
1098
1098
|
let r = o.getBoundingClientRect().top, n = e.getBoundingClientRect().top;
|
|
1099
1099
|
n > r + e.clientHeight && (o.scrollTop += n - r);
|
|
@@ -1101,19 +1101,19 @@ function ke(e) {
|
|
|
1101
1101
|
e = o.parentElement;
|
|
1102
1102
|
}
|
|
1103
1103
|
}
|
|
1104
|
-
function
|
|
1105
|
-
return e instanceof HTMLInputElement && !
|
|
1104
|
+
function Se(e) {
|
|
1105
|
+
return e instanceof HTMLInputElement && !po.has(e.type) || e instanceof HTMLTextAreaElement || e instanceof HTMLElement && e.isContentEditable;
|
|
1106
1106
|
}
|
|
1107
1107
|
let D = /* @__PURE__ */ new WeakMap(), y = [];
|
|
1108
|
-
function
|
|
1108
|
+
function vo(e, t = document.body) {
|
|
1109
1109
|
let o = new Set(e), r = /* @__PURE__ */ new Set(), n = (i) => {
|
|
1110
1110
|
for (let m of i.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))
|
|
1111
1111
|
o.add(m);
|
|
1112
1112
|
let d = (m) => {
|
|
1113
1113
|
if (o.has(m) || r.has(m.parentElement) && m.parentElement.getAttribute("role") !== "row")
|
|
1114
1114
|
return NodeFilter.FILTER_REJECT;
|
|
1115
|
-
for (let
|
|
1116
|
-
if (m.contains(
|
|
1115
|
+
for (let g of o)
|
|
1116
|
+
if (m.contains(g))
|
|
1117
1117
|
return NodeFilter.FILTER_SKIP;
|
|
1118
1118
|
return NodeFilter.FILTER_ACCEPT;
|
|
1119
1119
|
}, c = document.createTreeWalker(i, NodeFilter.SHOW_ELEMENT, {
|
|
@@ -1166,9 +1166,9 @@ function go(e, t = document.body) {
|
|
|
1166
1166
|
s === y[y.length - 1] ? (y.pop(), y.length && y[y.length - 1].observe()) : y.splice(y.indexOf(s), 1);
|
|
1167
1167
|
};
|
|
1168
1168
|
}
|
|
1169
|
-
const
|
|
1170
|
-
function
|
|
1171
|
-
let t =
|
|
1169
|
+
const Ve = /* @__PURE__ */ h.createContext(null);
|
|
1170
|
+
function $o(e) {
|
|
1171
|
+
let t = Oe(), { portalContainer: o = t ? null : document.body, isExiting: r } = e, [n, a] = z(!1), l = W(() => ({
|
|
1172
1172
|
contain: n,
|
|
1173
1173
|
setContain: a
|
|
1174
1174
|
}), [
|
|
@@ -1178,51 +1178,51 @@ function bo(e) {
|
|
|
1178
1178
|
if (!o)
|
|
1179
1179
|
return null;
|
|
1180
1180
|
let s = e.children;
|
|
1181
|
-
return e.disableFocusManagement || (s = /* @__PURE__ */ h.createElement(
|
|
1181
|
+
return e.disableFocusManagement || (s = /* @__PURE__ */ h.createElement(Zt, {
|
|
1182
1182
|
restoreFocus: !0,
|
|
1183
1183
|
contain: n && !r
|
|
1184
|
-
}, s)), s = /* @__PURE__ */ h.createElement(
|
|
1184
|
+
}, s)), s = /* @__PURE__ */ h.createElement(Ve.Provider, {
|
|
1185
1185
|
value: l
|
|
1186
|
-
}, /* @__PURE__ */ h.createElement(
|
|
1186
|
+
}, /* @__PURE__ */ h.createElement(zt, null, s)), /* @__PURE__ */ it.createPortal(s, o);
|
|
1187
1187
|
}
|
|
1188
|
-
function
|
|
1189
|
-
let e = q(
|
|
1188
|
+
function He() {
|
|
1189
|
+
let e = q(Ve), t = e == null ? void 0 : e.setContain;
|
|
1190
1190
|
w(() => {
|
|
1191
1191
|
t == null || t(!0);
|
|
1192
1192
|
}, [
|
|
1193
1193
|
t
|
|
1194
1194
|
]);
|
|
1195
1195
|
}
|
|
1196
|
-
function
|
|
1197
|
-
let { overlayProps: r, underlayProps: n } =
|
|
1196
|
+
function ho(e, t, o) {
|
|
1197
|
+
let { overlayProps: r, underlayProps: n } = co({
|
|
1198
1198
|
...e,
|
|
1199
1199
|
isOpen: t.isOpen,
|
|
1200
1200
|
onClose: t.close
|
|
1201
1201
|
}, o);
|
|
1202
|
-
return
|
|
1202
|
+
return fo({
|
|
1203
1203
|
isDisabled: !t.isOpen
|
|
1204
|
-
}),
|
|
1204
|
+
}), He(), S(() => {
|
|
1205
1205
|
if (t.isOpen)
|
|
1206
|
-
return
|
|
1206
|
+
return vo([
|
|
1207
1207
|
o.current
|
|
1208
1208
|
]);
|
|
1209
1209
|
}, [
|
|
1210
1210
|
t.isOpen,
|
|
1211
1211
|
o
|
|
1212
1212
|
]), {
|
|
1213
|
-
modalProps:
|
|
1213
|
+
modalProps: Pt(r),
|
|
1214
1214
|
underlayProps: n
|
|
1215
1215
|
};
|
|
1216
1216
|
}
|
|
1217
|
-
function
|
|
1218
|
-
let { role: o = "dialog" } = e, r =
|
|
1217
|
+
function wo(e, t) {
|
|
1218
|
+
let { role: o = "dialog" } = e, r = Mt();
|
|
1219
1219
|
r = e["aria-label"] ? void 0 : r;
|
|
1220
1220
|
let n = M(!1);
|
|
1221
1221
|
return S(() => {
|
|
1222
1222
|
if (t.current && !t.current.contains(document.activeElement)) {
|
|
1223
|
-
|
|
1223
|
+
de(t.current);
|
|
1224
1224
|
let a = setTimeout(() => {
|
|
1225
|
-
document.activeElement === t.current && (n.current = !0, t.current.blur(),
|
|
1225
|
+
document.activeElement === t.current && (n.current = !0, t.current.blur(), de(t.current), n.current = !1);
|
|
1226
1226
|
}, 500);
|
|
1227
1227
|
return () => {
|
|
1228
1228
|
clearTimeout(a);
|
|
@@ -1230,9 +1230,9 @@ function $o(e, t) {
|
|
|
1230
1230
|
}
|
|
1231
1231
|
}, [
|
|
1232
1232
|
t
|
|
1233
|
-
]),
|
|
1233
|
+
]), He(), {
|
|
1234
1234
|
dialogProps: {
|
|
1235
|
-
...
|
|
1235
|
+
...Ft(e, {
|
|
1236
1236
|
labelable: !0
|
|
1237
1237
|
}),
|
|
1238
1238
|
role: o,
|
|
@@ -1247,7 +1247,7 @@ function $o(e, t) {
|
|
|
1247
1247
|
}
|
|
1248
1248
|
};
|
|
1249
1249
|
}
|
|
1250
|
-
function
|
|
1250
|
+
function Eo(e, t, o) {
|
|
1251
1251
|
return t in e ? Object.defineProperty(e, t, {
|
|
1252
1252
|
value: o,
|
|
1253
1253
|
enumerable: !0,
|
|
@@ -1255,7 +1255,7 @@ function ho(e, t, o) {
|
|
|
1255
1255
|
writable: !0
|
|
1256
1256
|
}) : e[t] = o, e;
|
|
1257
1257
|
}
|
|
1258
|
-
function
|
|
1258
|
+
function Fe(e, t) {
|
|
1259
1259
|
var o = Object.keys(e);
|
|
1260
1260
|
if (Object.getOwnPropertySymbols) {
|
|
1261
1261
|
var r = Object.getOwnPropertySymbols(e);
|
|
@@ -1265,26 +1265,26 @@ function xe(e, t) {
|
|
|
1265
1265
|
}
|
|
1266
1266
|
return o;
|
|
1267
1267
|
}
|
|
1268
|
-
function
|
|
1268
|
+
function Le(e) {
|
|
1269
1269
|
for (var t = 1; t < arguments.length; t++) {
|
|
1270
1270
|
var o = arguments[t] != null ? arguments[t] : {};
|
|
1271
|
-
t % 2 ?
|
|
1272
|
-
|
|
1273
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(o)) :
|
|
1271
|
+
t % 2 ? Fe(Object(o), !0).forEach(function(r) {
|
|
1272
|
+
Eo(e, r, o[r]);
|
|
1273
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(o)) : Fe(Object(o)).forEach(function(r) {
|
|
1274
1274
|
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(o, r));
|
|
1275
1275
|
});
|
|
1276
1276
|
}
|
|
1277
1277
|
return e;
|
|
1278
1278
|
}
|
|
1279
|
-
var
|
|
1279
|
+
var Mo = (e, t, o) => {
|
|
1280
1280
|
for (var r of Object.keys(e)) {
|
|
1281
1281
|
var n;
|
|
1282
1282
|
if (e[r] !== ((n = t[r]) !== null && n !== void 0 ? n : o[r]))
|
|
1283
1283
|
return !1;
|
|
1284
1284
|
}
|
|
1285
1285
|
return !0;
|
|
1286
|
-
},
|
|
1287
|
-
var o = e.defaultClassName, r =
|
|
1286
|
+
}, Ke = (e) => (t) => {
|
|
1287
|
+
var o = e.defaultClassName, r = Le(Le({}, e.defaultVariants), t);
|
|
1288
1288
|
for (var n in r) {
|
|
1289
1289
|
var a, l = (a = r[n]) !== null && a !== void 0 ? a : e.defaultVariants[n];
|
|
1290
1290
|
if (l != null) {
|
|
@@ -1295,18 +1295,18 @@ var wo = (e, t, o) => {
|
|
|
1295
1295
|
}
|
|
1296
1296
|
}
|
|
1297
1297
|
for (var [d, c] of e.compoundVariants)
|
|
1298
|
-
|
|
1298
|
+
Mo(d, r, e.defaultVariants) && (o += " " + c);
|
|
1299
1299
|
return o;
|
|
1300
|
-
},
|
|
1301
|
-
function
|
|
1300
|
+
}, yo = "_3moto2o", Po = "_3moto2q", ko = "_3moto2r", _e = "_3moto2p", To = Ke({ defaultClassName: "_3moto20", variantClassNames: { kind: { informational: "_3moto21", delete: "_3moto22", failure: "_3moto23", success: "_3moto24", warning: "_3moto25", successWithFailures: "_3moto26", form: "_3moto27" }, size: { sm: "_3moto28", md: "_3moto29", lg: "_3moto2a", xl: "_3moto2b" }, fullHeight: { true: "_3moto2c", false: "_3moto2d" } }, defaultVariants: {}, compoundVariants: [] }), xo = "_3moto2n", So = Ke({ defaultClassName: "_3moto2e", variantClassNames: { kind: { form: "_3moto2f", delete: "_3moto2g", failure: "_3moto2h", informational: "_3moto2i", success: "_3moto2j", warning: "_3moto2k", successWithFailures: "_3moto2l" } }, defaultVariants: {}, compoundVariants: [] }), Fo = "_3moto2m", Lo = "_3moto2s";
|
|
1301
|
+
function je({
|
|
1302
1302
|
children: e,
|
|
1303
1303
|
className: t = "",
|
|
1304
1304
|
...o
|
|
1305
1305
|
}) {
|
|
1306
|
-
return /* @__PURE__ */ u.createElement("div", { className:
|
|
1306
|
+
return /* @__PURE__ */ u.createElement("div", { className: le(_e, t), ...o }, e);
|
|
1307
1307
|
}
|
|
1308
|
-
|
|
1309
|
-
const
|
|
1308
|
+
Ce.set(je, { name: "ModalFooter" });
|
|
1309
|
+
const Be = Object.freeze({
|
|
1310
1310
|
form: "pencil",
|
|
1311
1311
|
delete: "trash",
|
|
1312
1312
|
failure: "status-error",
|
|
@@ -1315,7 +1315,7 @@ const Fe = Object.freeze({
|
|
|
1315
1315
|
successWithFailures: "status-warning",
|
|
1316
1316
|
warning: "status-warning"
|
|
1317
1317
|
});
|
|
1318
|
-
function
|
|
1318
|
+
function Bo({
|
|
1319
1319
|
children: e,
|
|
1320
1320
|
className: t,
|
|
1321
1321
|
"data-testid": o,
|
|
@@ -1326,65 +1326,66 @@ function Fo({
|
|
|
1326
1326
|
size: s = "sm",
|
|
1327
1327
|
state: i,
|
|
1328
1328
|
title: d,
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1329
|
+
dismissible: c,
|
|
1330
|
+
dismissable: p = !0,
|
|
1331
|
+
onClose: m,
|
|
1332
|
+
fullHeight: g = !1,
|
|
1332
1333
|
...f
|
|
1333
1334
|
}) {
|
|
1334
|
-
const
|
|
1335
|
+
const P = c != null ? c : p, Q = u.useRef(null), { modalProps: Z, underlayProps: Ge } = ho(
|
|
1335
1336
|
{
|
|
1336
|
-
isDismissable:
|
|
1337
|
-
isKeyboardDismissDisabled: !
|
|
1337
|
+
isDismissable: P,
|
|
1338
|
+
isKeyboardDismissDisabled: !P,
|
|
1338
1339
|
...f
|
|
1339
1340
|
},
|
|
1340
1341
|
i,
|
|
1341
|
-
|
|
1342
|
-
), { dialogProps:
|
|
1342
|
+
Q
|
|
1343
|
+
), { dialogProps: ee, titleProps: Ye } = wo(f, Q), Xe = $e(Z.onFocus, ee.onFocus, a), Je = $e(Z.onBlur, ee.onBlur, n), { t: Qe } = u.useContext(ot), Ze = rt({ "data-testid": o }), [te, et] = nt(
|
|
1343
1344
|
e,
|
|
1344
|
-
[{ type:
|
|
1345
|
+
[{ type: je }]
|
|
1345
1346
|
);
|
|
1346
|
-
function
|
|
1347
|
-
|
|
1347
|
+
function ge() {
|
|
1348
|
+
m && typeof m == "function" && m(), i.close();
|
|
1348
1349
|
}
|
|
1349
|
-
const
|
|
1350
|
-
return
|
|
1351
|
-
|
|
1350
|
+
const be = function() {
|
|
1351
|
+
return P ? /* @__PURE__ */ u.createElement(
|
|
1352
|
+
he,
|
|
1352
1353
|
{
|
|
1353
1354
|
"aria-label": "Close",
|
|
1354
|
-
onClick:
|
|
1355
|
+
onClick: ge,
|
|
1355
1356
|
kind: "icon",
|
|
1356
1357
|
icon: "x",
|
|
1357
|
-
className:
|
|
1358
|
+
className: Po
|
|
1358
1359
|
}
|
|
1359
1360
|
) : null;
|
|
1360
|
-
},
|
|
1361
|
-
return /* @__PURE__ */ u.createElement(
|
|
1361
|
+
}, tt = at(et, (ve) => ve.type === be ? [{ className: le(ve.props.classname, ko) }] : []);
|
|
1362
|
+
return /* @__PURE__ */ u.createElement($o, null, /* @__PURE__ */ u.createElement("div", { className: Lo, ...Ge, ...f }, /* @__PURE__ */ u.createElement(
|
|
1362
1363
|
"div",
|
|
1363
1364
|
{
|
|
1364
|
-
...
|
|
1365
|
-
...
|
|
1365
|
+
...Z,
|
|
1366
|
+
...ee,
|
|
1366
1367
|
...l,
|
|
1367
|
-
onFocus:
|
|
1368
|
-
onBlur:
|
|
1369
|
-
...
|
|
1370
|
-
ref:
|
|
1371
|
-
className:
|
|
1368
|
+
onFocus: Xe,
|
|
1369
|
+
onBlur: Je,
|
|
1370
|
+
...Ze("dialog"),
|
|
1371
|
+
ref: Q,
|
|
1372
|
+
className: le(To({ kind: r, size: s, fullHeight: g }), t)
|
|
1372
1373
|
},
|
|
1373
|
-
/* @__PURE__ */ u.createElement("div", { ...
|
|
1374
|
-
|
|
1374
|
+
/* @__PURE__ */ u.createElement("div", { ...Ye, className: So({ kind: r }) }, r && /* @__PURE__ */ u.createElement(
|
|
1375
|
+
lt,
|
|
1375
1376
|
{
|
|
1376
|
-
icon:
|
|
1377
|
-
className:
|
|
1377
|
+
icon: Be[r] || Be.informational,
|
|
1378
|
+
className: xo
|
|
1378
1379
|
}
|
|
1379
|
-
), /* @__PURE__ */ u.createElement("div", { className:
|
|
1380
|
-
/* @__PURE__ */ u.createElement("div", { className:
|
|
1381
|
-
|
|
1380
|
+
), /* @__PURE__ */ u.createElement("div", { className: Fo }, oe(d, i.close)), /* @__PURE__ */ u.createElement(be, null)),
|
|
1381
|
+
/* @__PURE__ */ u.createElement("div", { className: yo }, oe(tt, i.close)),
|
|
1382
|
+
te && te.length > 0 ? /* @__PURE__ */ u.createElement(u.Fragment, null, oe(te, i.close)) : /* @__PURE__ */ u.createElement("div", { className: _e }, /* @__PURE__ */ u.createElement(he, { kind: "key", onClick: ge }, Qe("design-system:modal.defaultButtonLabel")))
|
|
1382
1383
|
)));
|
|
1383
1384
|
}
|
|
1384
|
-
function
|
|
1385
|
-
return e.state.isOpen ? /* @__PURE__ */ u.createElement(
|
|
1385
|
+
function Ue(e) {
|
|
1386
|
+
return e.state.isOpen ? /* @__PURE__ */ u.createElement(Bo, { ...e }, e.children) : /* @__PURE__ */ u.createElement(u.Fragment, null);
|
|
1386
1387
|
}
|
|
1387
|
-
|
|
1388
|
+
Ce.set(Ue, {
|
|
1388
1389
|
name: "Modal",
|
|
1389
1390
|
props: {
|
|
1390
1391
|
dismissable: { type: "boolean", default: "true" },
|
|
@@ -1397,8 +1398,8 @@ Le.set(_e, {
|
|
|
1397
1398
|
title: { type: "string" }
|
|
1398
1399
|
}
|
|
1399
1400
|
});
|
|
1400
|
-
function
|
|
1401
|
-
let [t, o] =
|
|
1401
|
+
function Co(e) {
|
|
1402
|
+
let [t, o] = st(e.isOpen, e.defaultOpen || !1, e.onOpenChange);
|
|
1402
1403
|
const r = k(() => {
|
|
1403
1404
|
o(!0);
|
|
1404
1405
|
}, [
|
|
@@ -1421,8 +1422,8 @@ function Lo(e) {
|
|
|
1421
1422
|
toggle: a
|
|
1422
1423
|
};
|
|
1423
1424
|
}
|
|
1424
|
-
function
|
|
1425
|
-
const t =
|
|
1425
|
+
function Ro(e = {}) {
|
|
1426
|
+
const t = Co(e), o = M(null), { triggerProps: r, overlayProps: n } = mo(
|
|
1426
1427
|
{ type: "dialog" },
|
|
1427
1428
|
t,
|
|
1428
1429
|
o
|
|
@@ -1440,9 +1441,9 @@ function Wo(e = {}) {
|
|
|
1440
1441
|
modalProps: { overlayProps: n, state: t }
|
|
1441
1442
|
};
|
|
1442
1443
|
}
|
|
1443
|
-
const
|
|
1444
|
+
const No = {
|
|
1444
1445
|
description: () => /* @__PURE__ */ u.createElement("p", null, "Modals are overlays on a page that focus a user\u2019s attention on an important message or a simple action. Examples of a Modal include confirming the deletion of a record, or making a single selection."),
|
|
1445
|
-
components: [
|
|
1446
|
+
components: [Ue],
|
|
1446
1447
|
examples: {
|
|
1447
1448
|
general: {
|
|
1448
1449
|
label: "Usage",
|
|
@@ -1607,7 +1608,7 @@ const Bo = {
|
|
|
1607
1608
|
{...modalProps}
|
|
1608
1609
|
title="Foo"
|
|
1609
1610
|
kind="informational"
|
|
1610
|
-
|
|
1611
|
+
dismissable={true}
|
|
1611
1612
|
size="xl">
|
|
1612
1613
|
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
|
|
1613
1614
|
</Modal>
|
|
@@ -2009,7 +2010,7 @@ const Bo = {
|
|
|
2009
2010
|
{...modalProps}
|
|
2010
2011
|
title="Foo"
|
|
2011
2012
|
kind="warning"
|
|
2012
|
-
|
|
2013
|
+
dismissable={true}
|
|
2013
2014
|
size="sm">
|
|
2014
2015
|
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
|
|
2015
2016
|
</Modal>
|
|
@@ -2181,13 +2182,13 @@ const Bo = {
|
|
|
2181
2182
|
}
|
|
2182
2183
|
}
|
|
2183
2184
|
}
|
|
2184
|
-
},
|
|
2185
|
-
Modals:
|
|
2185
|
+
}, zo = {
|
|
2186
|
+
Modals: No
|
|
2186
2187
|
};
|
|
2187
2188
|
export {
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2189
|
+
zo as MANIFEST,
|
|
2190
|
+
Ue as Modal,
|
|
2191
|
+
je as ModalFooter,
|
|
2192
|
+
Be as ModalIcons,
|
|
2193
|
+
Ro as useModal
|
|
2193
2194
|
};
|