@takecasper/acuity-design-system 1.19.0 → 1.20.0
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/README.md +15 -0
- package/dist/assets/index.css +1 -1
- package/dist/index.cjs.js +10 -10
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +43 -18
- package/dist/index.es.js +756 -671
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "./assets/index.css";
|
|
2
2
|
import * as or from "react";
|
|
3
|
-
import j, { useState as ge, useEffect as oe, useLayoutEffect as
|
|
3
|
+
import j, { useState as ge, useEffect as oe, useLayoutEffect as Dn, useRef as R, createContext as ce, useContext as re, forwardRef as Hn, Fragment as de, isValidElement as Bn, cloneElement as zn, createElement as Un, useId as yr, useMemo as ae, useSyncExternalStore as Gn, useReducer as Yn, createRef as Zn, useCallback as mr } from "react";
|
|
4
4
|
import { createPortal as St } from "react-dom";
|
|
5
|
-
var
|
|
5
|
+
var Wr = { exports: {} }, er = {};
|
|
6
6
|
/**
|
|
7
7
|
* @license React
|
|
8
8
|
* react-jsx-runtime.production.min.js
|
|
@@ -13,20 +13,20 @@ var _r = { exports: {} }, er = {};
|
|
|
13
13
|
* LICENSE file in the root directory of this source tree.
|
|
14
14
|
*/
|
|
15
15
|
var bt;
|
|
16
|
-
function
|
|
16
|
+
function qn() {
|
|
17
17
|
if (bt)
|
|
18
18
|
return er;
|
|
19
19
|
bt = 1;
|
|
20
20
|
var e = j, r = Symbol.for("react.element"), n = Symbol.for("react.fragment"), t = Object.prototype.hasOwnProperty, s = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
21
21
|
function a(d, c, u) {
|
|
22
|
-
var f, p = {},
|
|
23
|
-
u !== void 0 && (
|
|
22
|
+
var f, p = {}, m = null, v = null;
|
|
23
|
+
u !== void 0 && (m = "" + u), c.key !== void 0 && (m = "" + c.key), c.ref !== void 0 && (v = c.ref);
|
|
24
24
|
for (f in c)
|
|
25
25
|
t.call(c, f) && !o.hasOwnProperty(f) && (p[f] = c[f]);
|
|
26
26
|
if (d && d.defaultProps)
|
|
27
27
|
for (f in c = d.defaultProps, c)
|
|
28
28
|
p[f] === void 0 && (p[f] = c[f]);
|
|
29
|
-
return { $$typeof: r, type: d, key:
|
|
29
|
+
return { $$typeof: r, type: d, key: m, ref: v, props: p, _owner: s.current };
|
|
30
30
|
}
|
|
31
31
|
return er.Fragment = n, er.jsx = a, er.jsxs = a, er;
|
|
32
32
|
}
|
|
@@ -41,9 +41,9 @@ var rr = {};
|
|
|
41
41
|
* LICENSE file in the root directory of this source tree.
|
|
42
42
|
*/
|
|
43
43
|
var xt;
|
|
44
|
-
function
|
|
44
|
+
function Kn() {
|
|
45
45
|
return xt || (xt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
46
|
-
var e = j, r = Symbol.for("react.element"), n = Symbol.for("react.portal"), t = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), d = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"),
|
|
46
|
+
var e = j, r = Symbol.for("react.element"), n = Symbol.for("react.portal"), t = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), d = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), v = Symbol.for("react.offscreen"), x = Symbol.iterator, C = "@@iterator";
|
|
47
47
|
function b(l) {
|
|
48
48
|
if (l === null || typeof l != "object")
|
|
49
49
|
return null;
|
|
@@ -53,36 +53,36 @@ function Zn() {
|
|
|
53
53
|
var w = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
54
54
|
function y(l) {
|
|
55
55
|
{
|
|
56
|
-
for (var h = arguments.length,
|
|
57
|
-
|
|
58
|
-
fe("error", l,
|
|
56
|
+
for (var h = arguments.length, g = new Array(h > 1 ? h - 1 : 0), k = 1; k < h; k++)
|
|
57
|
+
g[k - 1] = arguments[k];
|
|
58
|
+
fe("error", l, g);
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
|
-
function fe(l, h,
|
|
61
|
+
function fe(l, h, g) {
|
|
62
62
|
{
|
|
63
63
|
var k = w.ReactDebugCurrentFrame, M = k.getStackAddendum();
|
|
64
|
-
M !== "" && (h += "%s",
|
|
65
|
-
var S =
|
|
64
|
+
M !== "" && (h += "%s", g = g.concat([M]));
|
|
65
|
+
var S = g.map(function(T) {
|
|
66
66
|
return String(T);
|
|
67
67
|
});
|
|
68
68
|
S.unshift("Warning: " + h), Function.prototype.apply.call(console[l], console, S);
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
|
-
var N = !1, G = !1, ke = !1,
|
|
72
|
-
|
|
71
|
+
var N = !1, G = !1, ke = !1, J = !1, Y = !1, X;
|
|
72
|
+
X = Symbol.for("react.module.reference");
|
|
73
73
|
function te(l) {
|
|
74
|
-
return !!(typeof l == "string" || typeof l == "function" || l === t || l === o || Y || l === s || l === u || l === f ||
|
|
74
|
+
return !!(typeof l == "string" || typeof l == "function" || l === t || l === o || Y || l === s || l === u || l === f || J || l === v || N || G || ke || typeof l == "object" && l !== null && (l.$$typeof === m || l.$$typeof === p || l.$$typeof === a || l.$$typeof === d || l.$$typeof === c || // This needs to include all possible module reference object
|
|
75
75
|
// types supported by any Flight configuration anywhere since
|
|
76
76
|
// we don't know which Flight build this will end up being used
|
|
77
77
|
// with.
|
|
78
|
-
l.$$typeof ===
|
|
78
|
+
l.$$typeof === X || l.getModuleId !== void 0));
|
|
79
79
|
}
|
|
80
|
-
function ie(l, h,
|
|
80
|
+
function ie(l, h, g) {
|
|
81
81
|
var k = l.displayName;
|
|
82
82
|
if (k)
|
|
83
83
|
return k;
|
|
84
84
|
var M = h.displayName || h.name || "";
|
|
85
|
-
return M !== "" ?
|
|
85
|
+
return M !== "" ? g + "(" + M + ")" : g;
|
|
86
86
|
}
|
|
87
87
|
function $(l) {
|
|
88
88
|
return l.displayName || "Context";
|
|
@@ -114,14 +114,14 @@ function Zn() {
|
|
|
114
114
|
var h = l;
|
|
115
115
|
return $(h) + ".Consumer";
|
|
116
116
|
case a:
|
|
117
|
-
var
|
|
118
|
-
return $(
|
|
117
|
+
var g = l;
|
|
118
|
+
return $(g._context) + ".Provider";
|
|
119
119
|
case c:
|
|
120
120
|
return ie(l, l.render, "ForwardRef");
|
|
121
121
|
case p:
|
|
122
122
|
var k = l.displayName || null;
|
|
123
123
|
return k !== null ? k : F(l.type) || "Memo";
|
|
124
|
-
case
|
|
124
|
+
case m: {
|
|
125
125
|
var M = l, S = M._payload, T = M._init;
|
|
126
126
|
try {
|
|
127
127
|
return F(T(S));
|
|
@@ -132,14 +132,14 @@ function Zn() {
|
|
|
132
132
|
}
|
|
133
133
|
return null;
|
|
134
134
|
}
|
|
135
|
-
var I = Object.assign, U = 0, pe, be, he, B, ye, me,
|
|
135
|
+
var I = Object.assign, U = 0, pe, be, he, B, ye, me, Q;
|
|
136
136
|
function Se() {
|
|
137
137
|
}
|
|
138
138
|
Se.__reactDisabledLog = !0;
|
|
139
139
|
function ne() {
|
|
140
140
|
{
|
|
141
141
|
if (U === 0) {
|
|
142
|
-
pe = console.log, be = console.info, he = console.warn, B = console.error, ye = console.group, me = console.groupCollapsed,
|
|
142
|
+
pe = console.log, be = console.info, he = console.warn, B = console.error, ye = console.group, me = console.groupCollapsed, Q = console.groupEnd;
|
|
143
143
|
var l = {
|
|
144
144
|
configurable: !0,
|
|
145
145
|
enumerable: !0,
|
|
@@ -187,25 +187,25 @@ function Zn() {
|
|
|
187
187
|
value: me
|
|
188
188
|
}),
|
|
189
189
|
groupEnd: I({}, l, {
|
|
190
|
-
value:
|
|
190
|
+
value: Q
|
|
191
191
|
})
|
|
192
192
|
});
|
|
193
193
|
}
|
|
194
194
|
U < 0 && y("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
195
195
|
}
|
|
196
196
|
}
|
|
197
|
-
var
|
|
198
|
-
function
|
|
197
|
+
var ee = w.ReactCurrentDispatcher, D;
|
|
198
|
+
function H(l, h, g) {
|
|
199
199
|
{
|
|
200
|
-
if (
|
|
200
|
+
if (D === void 0)
|
|
201
201
|
try {
|
|
202
202
|
throw Error();
|
|
203
203
|
} catch (M) {
|
|
204
204
|
var k = M.stack.trim().match(/\n( *(at )?)/);
|
|
205
|
-
|
|
205
|
+
D = k && k[1] || "";
|
|
206
206
|
}
|
|
207
207
|
return `
|
|
208
|
-
` +
|
|
208
|
+
` + D + l;
|
|
209
209
|
}
|
|
210
210
|
}
|
|
211
211
|
var Je = !1, je;
|
|
@@ -217,16 +217,16 @@ function Zn() {
|
|
|
217
217
|
if (!l || Je)
|
|
218
218
|
return "";
|
|
219
219
|
{
|
|
220
|
-
var
|
|
221
|
-
if (
|
|
222
|
-
return
|
|
220
|
+
var g = je.get(l);
|
|
221
|
+
if (g !== void 0)
|
|
222
|
+
return g;
|
|
223
223
|
}
|
|
224
224
|
var k;
|
|
225
225
|
Je = !0;
|
|
226
226
|
var M = Error.prepareStackTrace;
|
|
227
227
|
Error.prepareStackTrace = void 0;
|
|
228
228
|
var S;
|
|
229
|
-
S =
|
|
229
|
+
S = ee.current, ee.current = null, ne();
|
|
230
230
|
try {
|
|
231
231
|
if (h) {
|
|
232
232
|
var T = function() {
|
|
@@ -263,57 +263,57 @@ function Zn() {
|
|
|
263
263
|
if (Ee && k && typeof Ee.stack == "string") {
|
|
264
264
|
for (var L = Ee.stack.split(`
|
|
265
265
|
`), Z = k.stack.split(`
|
|
266
|
-
`),
|
|
267
|
-
|
|
268
|
-
for (;
|
|
269
|
-
if (L[
|
|
270
|
-
if (
|
|
266
|
+
`), _ = L.length - 1, W = Z.length - 1; _ >= 1 && W >= 0 && L[_] !== Z[W]; )
|
|
267
|
+
W--;
|
|
268
|
+
for (; _ >= 1 && W >= 0; _--, W--)
|
|
269
|
+
if (L[_] !== Z[W]) {
|
|
270
|
+
if (_ !== 1 || W !== 1)
|
|
271
271
|
do
|
|
272
|
-
if (
|
|
272
|
+
if (_--, W--, W < 0 || L[_] !== Z[W]) {
|
|
273
273
|
var le = `
|
|
274
|
-
` + L[
|
|
274
|
+
` + L[_].replace(" at new ", " at ");
|
|
275
275
|
return l.displayName && le.includes("<anonymous>") && (le = le.replace("<anonymous>", l.displayName)), typeof l == "function" && je.set(l, le), le;
|
|
276
276
|
}
|
|
277
|
-
while (
|
|
277
|
+
while (_ >= 1 && W >= 0);
|
|
278
278
|
break;
|
|
279
279
|
}
|
|
280
280
|
}
|
|
281
281
|
} finally {
|
|
282
|
-
Je = !1,
|
|
282
|
+
Je = !1, ee.current = S, Ke(), Error.prepareStackTrace = M;
|
|
283
283
|
}
|
|
284
|
-
var Be = l ? l.displayName || l.name : "", vt = Be ?
|
|
284
|
+
var Be = l ? l.displayName || l.name : "", vt = Be ? H(Be) : "";
|
|
285
285
|
return typeof l == "function" && je.set(l, vt), vt;
|
|
286
286
|
}
|
|
287
|
-
function Xe(l, h,
|
|
287
|
+
function Xe(l, h, g) {
|
|
288
288
|
return xe(l, !1);
|
|
289
289
|
}
|
|
290
|
-
function
|
|
290
|
+
function Cn(l) {
|
|
291
291
|
var h = l.prototype;
|
|
292
292
|
return !!(h && h.isReactComponent);
|
|
293
293
|
}
|
|
294
|
-
function fr(l, h,
|
|
294
|
+
function fr(l, h, g) {
|
|
295
295
|
if (l == null)
|
|
296
296
|
return "";
|
|
297
297
|
if (typeof l == "function")
|
|
298
|
-
return xe(l,
|
|
298
|
+
return xe(l, Cn(l));
|
|
299
299
|
if (typeof l == "string")
|
|
300
|
-
return
|
|
300
|
+
return H(l);
|
|
301
301
|
switch (l) {
|
|
302
302
|
case u:
|
|
303
|
-
return
|
|
303
|
+
return H("Suspense");
|
|
304
304
|
case f:
|
|
305
|
-
return
|
|
305
|
+
return H("SuspenseList");
|
|
306
306
|
}
|
|
307
307
|
if (typeof l == "object")
|
|
308
308
|
switch (l.$$typeof) {
|
|
309
309
|
case c:
|
|
310
310
|
return Xe(l.render);
|
|
311
311
|
case p:
|
|
312
|
-
return fr(l.type, h,
|
|
313
|
-
case
|
|
312
|
+
return fr(l.type, h, g);
|
|
313
|
+
case m: {
|
|
314
314
|
var k = l, M = k._payload, S = k._init;
|
|
315
315
|
try {
|
|
316
|
-
return fr(S(M), h,
|
|
316
|
+
return fr(S(M), h, g);
|
|
317
317
|
} catch (T) {
|
|
318
318
|
}
|
|
319
319
|
}
|
|
@@ -323,12 +323,12 @@ function Zn() {
|
|
|
323
323
|
var pr = Object.prototype.hasOwnProperty, ot = {}, at = w.ReactDebugCurrentFrame;
|
|
324
324
|
function hr(l) {
|
|
325
325
|
if (l) {
|
|
326
|
-
var h = l._owner,
|
|
327
|
-
at.setExtraStackFrame(
|
|
326
|
+
var h = l._owner, g = fr(l.type, l._source, h ? h.type : null);
|
|
327
|
+
at.setExtraStackFrame(g);
|
|
328
328
|
} else
|
|
329
329
|
at.setExtraStackFrame(null);
|
|
330
330
|
}
|
|
331
|
-
function
|
|
331
|
+
function wn(l, h, g, k, M) {
|
|
332
332
|
{
|
|
333
333
|
var S = Function.call.bind(pr);
|
|
334
334
|
for (var T in l)
|
|
@@ -336,28 +336,28 @@ function Zn() {
|
|
|
336
336
|
var L = void 0;
|
|
337
337
|
try {
|
|
338
338
|
if (typeof l[T] != "function") {
|
|
339
|
-
var Z = Error((k || "React class") + ": " +
|
|
339
|
+
var Z = Error((k || "React class") + ": " + g + " type `" + T + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof l[T] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
340
340
|
throw Z.name = "Invariant Violation", Z;
|
|
341
341
|
}
|
|
342
|
-
L = l[T](h, T, k,
|
|
343
|
-
} catch (
|
|
344
|
-
L =
|
|
342
|
+
L = l[T](h, T, k, g, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
343
|
+
} catch (_) {
|
|
344
|
+
L = _;
|
|
345
345
|
}
|
|
346
|
-
L && !(L instanceof Error) && (hr(M), y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", k || "React class",
|
|
346
|
+
L && !(L instanceof Error) && (hr(M), y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", k || "React class", g, T, typeof L), hr(null)), L instanceof Error && !(L.message in ot) && (ot[L.message] = !0, hr(M), y("Failed %s type: %s", g, L.message), hr(null));
|
|
347
347
|
}
|
|
348
348
|
}
|
|
349
349
|
}
|
|
350
|
-
var
|
|
350
|
+
var kn = Array.isArray;
|
|
351
351
|
function Mr(l) {
|
|
352
|
-
return
|
|
352
|
+
return kn(l);
|
|
353
353
|
}
|
|
354
|
-
function
|
|
354
|
+
function yn(l) {
|
|
355
355
|
{
|
|
356
|
-
var h = typeof Symbol == "function" && Symbol.toStringTag,
|
|
357
|
-
return
|
|
356
|
+
var h = typeof Symbol == "function" && Symbol.toStringTag, g = h && l[Symbol.toStringTag] || l.constructor.name || "Object";
|
|
357
|
+
return g;
|
|
358
358
|
}
|
|
359
359
|
}
|
|
360
|
-
function
|
|
360
|
+
function jn(l) {
|
|
361
361
|
try {
|
|
362
362
|
return it(l), !1;
|
|
363
363
|
} catch (h) {
|
|
@@ -368,17 +368,17 @@ function Zn() {
|
|
|
368
368
|
return "" + l;
|
|
369
369
|
}
|
|
370
370
|
function lt(l) {
|
|
371
|
-
if (
|
|
372
|
-
return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",
|
|
371
|
+
if (jn(l))
|
|
372
|
+
return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", yn(l)), it(l);
|
|
373
373
|
}
|
|
374
|
-
var Qe = w.ReactCurrentOwner,
|
|
374
|
+
var Qe = w.ReactCurrentOwner, En = {
|
|
375
375
|
key: !0,
|
|
376
376
|
ref: !0,
|
|
377
377
|
__self: !0,
|
|
378
378
|
__source: !0
|
|
379
379
|
}, dt, ct, Sr;
|
|
380
380
|
Sr = {};
|
|
381
|
-
function
|
|
381
|
+
function Ln(l) {
|
|
382
382
|
if (pr.call(l, "ref")) {
|
|
383
383
|
var h = Object.getOwnPropertyDescriptor(l, "ref").get;
|
|
384
384
|
if (h && h.isReactWarning)
|
|
@@ -386,7 +386,7 @@ function Zn() {
|
|
|
386
386
|
}
|
|
387
387
|
return l.ref !== void 0;
|
|
388
388
|
}
|
|
389
|
-
function
|
|
389
|
+
function $n(l) {
|
|
390
390
|
if (pr.call(l, "key")) {
|
|
391
391
|
var h = Object.getOwnPropertyDescriptor(l, "key").get;
|
|
392
392
|
if (h && h.isReactWarning)
|
|
@@ -394,42 +394,42 @@ function Zn() {
|
|
|
394
394
|
}
|
|
395
395
|
return l.key !== void 0;
|
|
396
396
|
}
|
|
397
|
-
function
|
|
397
|
+
function Tn(l, h) {
|
|
398
398
|
if (typeof l.ref == "string" && Qe.current && h && Qe.current.stateNode !== h) {
|
|
399
|
-
var
|
|
400
|
-
Sr[
|
|
399
|
+
var g = F(Qe.current.type);
|
|
400
|
+
Sr[g] || (y('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', F(Qe.current.type), l.ref), Sr[g] = !0);
|
|
401
401
|
}
|
|
402
402
|
}
|
|
403
|
-
function
|
|
403
|
+
function Mn(l, h) {
|
|
404
404
|
{
|
|
405
|
-
var
|
|
405
|
+
var g = function() {
|
|
406
406
|
dt || (dt = !0, y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", h));
|
|
407
407
|
};
|
|
408
|
-
|
|
409
|
-
get:
|
|
408
|
+
g.isReactWarning = !0, Object.defineProperty(l, "key", {
|
|
409
|
+
get: g,
|
|
410
410
|
configurable: !0
|
|
411
411
|
});
|
|
412
412
|
}
|
|
413
413
|
}
|
|
414
|
-
function
|
|
414
|
+
function Sn(l, h) {
|
|
415
415
|
{
|
|
416
|
-
var
|
|
416
|
+
var g = function() {
|
|
417
417
|
ct || (ct = !0, y("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", h));
|
|
418
418
|
};
|
|
419
|
-
|
|
420
|
-
get:
|
|
419
|
+
g.isReactWarning = !0, Object.defineProperty(l, "ref", {
|
|
420
|
+
get: g,
|
|
421
421
|
configurable: !0
|
|
422
422
|
});
|
|
423
423
|
}
|
|
424
424
|
}
|
|
425
|
-
var
|
|
425
|
+
var Nn = function(l, h, g, k, M, S, T) {
|
|
426
426
|
var L = {
|
|
427
427
|
// This tag allows us to uniquely identify this as a React Element
|
|
428
428
|
$$typeof: r,
|
|
429
429
|
// Built-in properties that belong on the element
|
|
430
430
|
type: l,
|
|
431
431
|
key: h,
|
|
432
|
-
ref:
|
|
432
|
+
ref: g,
|
|
433
433
|
props: T,
|
|
434
434
|
// Record the component responsible for creating this element.
|
|
435
435
|
_owner: S
|
|
@@ -451,29 +451,29 @@ function Zn() {
|
|
|
451
451
|
value: M
|
|
452
452
|
}), Object.freeze && (Object.freeze(L.props), Object.freeze(L)), L;
|
|
453
453
|
};
|
|
454
|
-
function
|
|
454
|
+
function Rn(l, h, g, k, M) {
|
|
455
455
|
{
|
|
456
456
|
var S, T = {}, L = null, Z = null;
|
|
457
|
-
|
|
457
|
+
g !== void 0 && (lt(g), L = "" + g), $n(h) && (lt(h.key), L = "" + h.key), Ln(h) && (Z = h.ref, Tn(h, M));
|
|
458
458
|
for (S in h)
|
|
459
|
-
pr.call(h, S) && !
|
|
459
|
+
pr.call(h, S) && !En.hasOwnProperty(S) && (T[S] = h[S]);
|
|
460
460
|
if (l && l.defaultProps) {
|
|
461
|
-
var
|
|
462
|
-
for (S in
|
|
463
|
-
T[S] === void 0 && (T[S] =
|
|
461
|
+
var _ = l.defaultProps;
|
|
462
|
+
for (S in _)
|
|
463
|
+
T[S] === void 0 && (T[S] = _[S]);
|
|
464
464
|
}
|
|
465
465
|
if (L || Z) {
|
|
466
|
-
var
|
|
467
|
-
L &&
|
|
466
|
+
var W = typeof l == "function" ? l.displayName || l.name || "Unknown" : l;
|
|
467
|
+
L && Mn(T, W), Z && Sn(T, W);
|
|
468
468
|
}
|
|
469
|
-
return
|
|
469
|
+
return Nn(l, L, Z, M, k, Qe.current, T);
|
|
470
470
|
}
|
|
471
471
|
}
|
|
472
472
|
var Nr = w.ReactCurrentOwner, ut = w.ReactDebugCurrentFrame;
|
|
473
473
|
function He(l) {
|
|
474
474
|
if (l) {
|
|
475
|
-
var h = l._owner,
|
|
476
|
-
ut.setExtraStackFrame(
|
|
475
|
+
var h = l._owner, g = fr(l.type, l._source, h ? h.type : null);
|
|
476
|
+
ut.setExtraStackFrame(g);
|
|
477
477
|
} else
|
|
478
478
|
ut.setExtraStackFrame(null);
|
|
479
479
|
}
|
|
@@ -494,26 +494,26 @@ Check the render method of \`` + l + "`.";
|
|
|
494
494
|
return "";
|
|
495
495
|
}
|
|
496
496
|
}
|
|
497
|
-
function
|
|
497
|
+
function An(l) {
|
|
498
498
|
{
|
|
499
499
|
if (l !== void 0) {
|
|
500
|
-
var h = l.fileName.replace(/^.*[\\\/]/, ""),
|
|
500
|
+
var h = l.fileName.replace(/^.*[\\\/]/, ""), g = l.lineNumber;
|
|
501
501
|
return `
|
|
502
502
|
|
|
503
|
-
Check your code at ` + h + ":" +
|
|
503
|
+
Check your code at ` + h + ":" + g + ".";
|
|
504
504
|
}
|
|
505
505
|
return "";
|
|
506
506
|
}
|
|
507
507
|
}
|
|
508
508
|
var pt = {};
|
|
509
|
-
function
|
|
509
|
+
function Pn(l) {
|
|
510
510
|
{
|
|
511
511
|
var h = ft();
|
|
512
512
|
if (!h) {
|
|
513
|
-
var
|
|
514
|
-
|
|
513
|
+
var g = typeof l == "string" ? l : l.displayName || l.name;
|
|
514
|
+
g && (h = `
|
|
515
515
|
|
|
516
|
-
Check the top-level render call using <` +
|
|
516
|
+
Check the top-level render call using <` + g + ">.");
|
|
517
517
|
}
|
|
518
518
|
return h;
|
|
519
519
|
}
|
|
@@ -523,12 +523,12 @@ Check the top-level render call using <` + m + ">.");
|
|
|
523
523
|
if (!l._store || l._store.validated || l.key != null)
|
|
524
524
|
return;
|
|
525
525
|
l._store.validated = !0;
|
|
526
|
-
var
|
|
527
|
-
if (pt[
|
|
526
|
+
var g = Pn(h);
|
|
527
|
+
if (pt[g])
|
|
528
528
|
return;
|
|
529
|
-
pt[
|
|
529
|
+
pt[g] = !0;
|
|
530
530
|
var k = "";
|
|
531
|
-
l && l._owner && l._owner !== Nr.current && (k = " It was passed a child from " + F(l._owner.type) + "."), He(l), y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',
|
|
531
|
+
l && l._owner && l._owner !== Nr.current && (k = " It was passed a child from " + F(l._owner.type) + "."), He(l), y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', g, k), He(null);
|
|
532
532
|
}
|
|
533
533
|
}
|
|
534
534
|
function mt(l, h) {
|
|
@@ -536,8 +536,8 @@ Check the top-level render call using <` + m + ">.");
|
|
|
536
536
|
if (typeof l != "object")
|
|
537
537
|
return;
|
|
538
538
|
if (Mr(l))
|
|
539
|
-
for (var
|
|
540
|
-
var k = l[
|
|
539
|
+
for (var g = 0; g < l.length; g++) {
|
|
540
|
+
var k = l[g];
|
|
541
541
|
Ar(k) && ht(k, h);
|
|
542
542
|
}
|
|
543
543
|
else if (Ar(l))
|
|
@@ -550,23 +550,23 @@ Check the top-level render call using <` + m + ">.");
|
|
|
550
550
|
}
|
|
551
551
|
}
|
|
552
552
|
}
|
|
553
|
-
function
|
|
553
|
+
function Fn(l) {
|
|
554
554
|
{
|
|
555
555
|
var h = l.type;
|
|
556
556
|
if (h == null || typeof h == "string")
|
|
557
557
|
return;
|
|
558
|
-
var
|
|
558
|
+
var g;
|
|
559
559
|
if (typeof h == "function")
|
|
560
|
-
|
|
560
|
+
g = h.propTypes;
|
|
561
561
|
else if (typeof h == "object" && (h.$$typeof === c || // Note: Memo only checks outer props here.
|
|
562
562
|
// Inner props are checked in the reconciler.
|
|
563
563
|
h.$$typeof === p))
|
|
564
|
-
|
|
564
|
+
g = h.propTypes;
|
|
565
565
|
else
|
|
566
566
|
return;
|
|
567
|
-
if (
|
|
567
|
+
if (g) {
|
|
568
568
|
var k = F(h);
|
|
569
|
-
|
|
569
|
+
wn(g, l.props, "prop", k, l);
|
|
570
570
|
} else if (h.PropTypes !== void 0 && !Rr) {
|
|
571
571
|
Rr = !0;
|
|
572
572
|
var M = F(h);
|
|
@@ -575,10 +575,10 @@ Check the top-level render call using <` + m + ">.");
|
|
|
575
575
|
typeof h.getDefaultProps == "function" && !h.getDefaultProps.isReactClassApproved && y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
576
576
|
}
|
|
577
577
|
}
|
|
578
|
-
function
|
|
578
|
+
function On(l) {
|
|
579
579
|
{
|
|
580
|
-
for (var h = Object.keys(l.props),
|
|
581
|
-
var k = h[
|
|
580
|
+
for (var h = Object.keys(l.props), g = 0; g < h.length; g++) {
|
|
581
|
+
var k = h[g];
|
|
582
582
|
if (k !== "children" && k !== "key") {
|
|
583
583
|
He(l), y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", k), He(null);
|
|
584
584
|
break;
|
|
@@ -587,20 +587,20 @@ Check the top-level render call using <` + m + ">.");
|
|
|
587
587
|
l.ref !== null && (He(l), y("Invalid attribute `ref` supplied to `React.Fragment`."), He(null));
|
|
588
588
|
}
|
|
589
589
|
}
|
|
590
|
-
function gt(l, h,
|
|
590
|
+
function gt(l, h, g, k, M, S) {
|
|
591
591
|
{
|
|
592
592
|
var T = te(l);
|
|
593
593
|
if (!T) {
|
|
594
594
|
var L = "";
|
|
595
595
|
(l === void 0 || typeof l == "object" && l !== null && Object.keys(l).length === 0) && (L += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
596
|
-
var Z =
|
|
596
|
+
var Z = An(M);
|
|
597
597
|
Z ? L += Z : L += ft();
|
|
598
|
-
var
|
|
599
|
-
l === null ?
|
|
598
|
+
var _;
|
|
599
|
+
l === null ? _ = "null" : Mr(l) ? _ = "array" : l !== void 0 && l.$$typeof === r ? (_ = "<" + (F(l.type) || "Unknown") + " />", L = " Did you accidentally export a JSX literal instead of a component?") : _ = typeof l, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", _, L);
|
|
600
600
|
}
|
|
601
|
-
var
|
|
602
|
-
if (
|
|
603
|
-
return
|
|
601
|
+
var W = Rn(l, h, g, M, S);
|
|
602
|
+
if (W == null)
|
|
603
|
+
return W;
|
|
604
604
|
if (T) {
|
|
605
605
|
var le = h.children;
|
|
606
606
|
if (le !== void 0)
|
|
@@ -614,22 +614,22 @@ Check the top-level render call using <` + m + ">.");
|
|
|
614
614
|
else
|
|
615
615
|
mt(le, l);
|
|
616
616
|
}
|
|
617
|
-
return l === t ?
|
|
617
|
+
return l === t ? On(W) : Fn(W), W;
|
|
618
618
|
}
|
|
619
619
|
}
|
|
620
|
-
function
|
|
621
|
-
return gt(l, h,
|
|
620
|
+
function _n(l, h, g) {
|
|
621
|
+
return gt(l, h, g, !0);
|
|
622
622
|
}
|
|
623
|
-
function
|
|
624
|
-
return gt(l, h,
|
|
623
|
+
function Wn(l, h, g) {
|
|
624
|
+
return gt(l, h, g, !1);
|
|
625
625
|
}
|
|
626
|
-
var
|
|
627
|
-
rr.Fragment = t, rr.jsx =
|
|
626
|
+
var In = Wn, Vn = _n;
|
|
627
|
+
rr.Fragment = t, rr.jsx = In, rr.jsxs = Vn;
|
|
628
628
|
}()), rr;
|
|
629
629
|
}
|
|
630
|
-
process.env.NODE_ENV === "production" ?
|
|
631
|
-
var i =
|
|
632
|
-
const
|
|
630
|
+
process.env.NODE_ENV === "production" ? Wr.exports = qn() : Wr.exports = Kn();
|
|
631
|
+
var i = Wr.exports;
|
|
632
|
+
const Jn = ({
|
|
633
633
|
width: e = "24",
|
|
634
634
|
height: r = "24",
|
|
635
635
|
className: n = "",
|
|
@@ -695,7 +695,7 @@ const qn = ({
|
|
|
695
695
|
]
|
|
696
696
|
}
|
|
697
697
|
);
|
|
698
|
-
}, Nt =
|
|
698
|
+
}, Nt = Jn, Xn = ({
|
|
699
699
|
width: e = "24",
|
|
700
700
|
height: r = "24",
|
|
701
701
|
className: n = "",
|
|
@@ -741,7 +741,7 @@ const qn = ({
|
|
|
741
741
|
]
|
|
742
742
|
}
|
|
743
743
|
);
|
|
744
|
-
}, Rt =
|
|
744
|
+
}, Rt = Xn, Qn = ({
|
|
745
745
|
width: e = "24",
|
|
746
746
|
height: r = "24",
|
|
747
747
|
className: n = "",
|
|
@@ -803,7 +803,7 @@ const qn = ({
|
|
|
803
803
|
]
|
|
804
804
|
}
|
|
805
805
|
);
|
|
806
|
-
}, At =
|
|
806
|
+
}, At = Qn, es = ({
|
|
807
807
|
width: e = "24",
|
|
808
808
|
height: r = "24",
|
|
809
809
|
className: n = "",
|
|
@@ -849,7 +849,7 @@ const qn = ({
|
|
|
849
849
|
]
|
|
850
850
|
}
|
|
851
851
|
);
|
|
852
|
-
}, Pt =
|
|
852
|
+
}, Pt = es, rs = ({
|
|
853
853
|
width: e = "24",
|
|
854
854
|
height: r = "24",
|
|
855
855
|
className: n = "",
|
|
@@ -895,7 +895,7 @@ const qn = ({
|
|
|
895
895
|
]
|
|
896
896
|
}
|
|
897
897
|
);
|
|
898
|
-
},
|
|
898
|
+
}, ts = rs, ns = ({
|
|
899
899
|
width: e = "24",
|
|
900
900
|
height: r = "24",
|
|
901
901
|
className: n = "",
|
|
@@ -961,7 +961,7 @@ const qn = ({
|
|
|
961
961
|
]
|
|
962
962
|
}
|
|
963
963
|
);
|
|
964
|
-
},
|
|
964
|
+
}, ss = ns, os = ({
|
|
965
965
|
width: e = "24",
|
|
966
966
|
height: r = "24",
|
|
967
967
|
className: n = "",
|
|
@@ -1007,7 +1007,7 @@ const qn = ({
|
|
|
1007
1007
|
]
|
|
1008
1008
|
}
|
|
1009
1009
|
);
|
|
1010
|
-
},
|
|
1010
|
+
}, as = os, is = ({
|
|
1011
1011
|
width: e = "24",
|
|
1012
1012
|
height: r = "24",
|
|
1013
1013
|
className: n = "",
|
|
@@ -1063,7 +1063,7 @@ const qn = ({
|
|
|
1063
1063
|
]
|
|
1064
1064
|
}
|
|
1065
1065
|
);
|
|
1066
|
-
},
|
|
1066
|
+
}, ls = is, ds = ({
|
|
1067
1067
|
width: e = "24",
|
|
1068
1068
|
height: r = "24",
|
|
1069
1069
|
className: n = "",
|
|
@@ -1163,7 +1163,7 @@ const qn = ({
|
|
|
1163
1163
|
]
|
|
1164
1164
|
}
|
|
1165
1165
|
);
|
|
1166
|
-
},
|
|
1166
|
+
}, cs = ds, us = ({
|
|
1167
1167
|
width: e = "24",
|
|
1168
1168
|
height: r = "24",
|
|
1169
1169
|
className: n = "",
|
|
@@ -1224,7 +1224,7 @@ const qn = ({
|
|
|
1224
1224
|
]
|
|
1225
1225
|
}
|
|
1226
1226
|
);
|
|
1227
|
-
},
|
|
1227
|
+
}, fs = us, ps = ({
|
|
1228
1228
|
width: e = "24",
|
|
1229
1229
|
height: r = "24",
|
|
1230
1230
|
className: n = "",
|
|
@@ -1260,7 +1260,7 @@ const qn = ({
|
|
|
1260
1260
|
]
|
|
1261
1261
|
}
|
|
1262
1262
|
);
|
|
1263
|
-
},
|
|
1263
|
+
}, hs = ps, ms = ({
|
|
1264
1264
|
width: e = "24",
|
|
1265
1265
|
height: r = "24",
|
|
1266
1266
|
className: n = "",
|
|
@@ -1306,7 +1306,7 @@ const qn = ({
|
|
|
1306
1306
|
]
|
|
1307
1307
|
}
|
|
1308
1308
|
);
|
|
1309
|
-
},
|
|
1309
|
+
}, gs = ms, vs = ({
|
|
1310
1310
|
width: e = "24",
|
|
1311
1311
|
height: r = "24",
|
|
1312
1312
|
className: n = "",
|
|
@@ -1354,7 +1354,7 @@ const qn = ({
|
|
|
1354
1354
|
]
|
|
1355
1355
|
}
|
|
1356
1356
|
);
|
|
1357
|
-
},
|
|
1357
|
+
}, bs = vs, xs = ({
|
|
1358
1358
|
width: e = "24",
|
|
1359
1359
|
height: r = "24",
|
|
1360
1360
|
className: n = "",
|
|
@@ -1429,7 +1429,7 @@ const qn = ({
|
|
|
1429
1429
|
]
|
|
1430
1430
|
}
|
|
1431
1431
|
);
|
|
1432
|
-
},
|
|
1432
|
+
}, Cs = xs, ws = ({
|
|
1433
1433
|
width: e = "24",
|
|
1434
1434
|
height: r = "24",
|
|
1435
1435
|
className: n = "",
|
|
@@ -1465,7 +1465,7 @@ const qn = ({
|
|
|
1465
1465
|
]
|
|
1466
1466
|
}
|
|
1467
1467
|
);
|
|
1468
|
-
},
|
|
1468
|
+
}, ks = ws, ys = ({
|
|
1469
1469
|
width: e = "24",
|
|
1470
1470
|
height: r = "24",
|
|
1471
1471
|
className: n = "",
|
|
@@ -1627,7 +1627,7 @@ const qn = ({
|
|
|
1627
1627
|
]
|
|
1628
1628
|
}
|
|
1629
1629
|
);
|
|
1630
|
-
},
|
|
1630
|
+
}, js = ys, Es = ({
|
|
1631
1631
|
width: e = "24",
|
|
1632
1632
|
height: r = "24",
|
|
1633
1633
|
className: n = "",
|
|
@@ -1683,7 +1683,7 @@ const qn = ({
|
|
|
1683
1683
|
]
|
|
1684
1684
|
}
|
|
1685
1685
|
);
|
|
1686
|
-
},
|
|
1686
|
+
}, Ls = Es, $s = ({
|
|
1687
1687
|
width: e = "24",
|
|
1688
1688
|
height: r = "24",
|
|
1689
1689
|
className: n = "",
|
|
@@ -1783,7 +1783,7 @@ const qn = ({
|
|
|
1783
1783
|
]
|
|
1784
1784
|
}
|
|
1785
1785
|
);
|
|
1786
|
-
},
|
|
1786
|
+
}, Ts = $s, Ms = ({
|
|
1787
1787
|
width: e = "24",
|
|
1788
1788
|
height: r = "24",
|
|
1789
1789
|
className: n = "",
|
|
@@ -1829,7 +1829,7 @@ const qn = ({
|
|
|
1829
1829
|
]
|
|
1830
1830
|
}
|
|
1831
1831
|
);
|
|
1832
|
-
},
|
|
1832
|
+
}, Ss = Ms, Ns = ({
|
|
1833
1833
|
width: e = "24",
|
|
1834
1834
|
height: r = "24",
|
|
1835
1835
|
className: n = "",
|
|
@@ -1875,7 +1875,7 @@ const qn = ({
|
|
|
1875
1875
|
]
|
|
1876
1876
|
}
|
|
1877
1877
|
);
|
|
1878
|
-
},
|
|
1878
|
+
}, Rs = Ns, As = ({
|
|
1879
1879
|
width: e = "24",
|
|
1880
1880
|
height: r = "24",
|
|
1881
1881
|
className: n = "",
|
|
@@ -1910,7 +1910,7 @@ const qn = ({
|
|
|
1910
1910
|
]
|
|
1911
1911
|
}
|
|
1912
1912
|
);
|
|
1913
|
-
},
|
|
1913
|
+
}, Ps = As, Fs = ({
|
|
1914
1914
|
width: e = "24",
|
|
1915
1915
|
height: r = "24",
|
|
1916
1916
|
className: n = "",
|
|
@@ -1966,7 +1966,7 @@ const qn = ({
|
|
|
1966
1966
|
]
|
|
1967
1967
|
}
|
|
1968
1968
|
);
|
|
1969
|
-
},
|
|
1969
|
+
}, Os = Fs, _s = ({
|
|
1970
1970
|
width: e = "24",
|
|
1971
1971
|
height: r = "24",
|
|
1972
1972
|
className: n = "",
|
|
@@ -2022,7 +2022,7 @@ const qn = ({
|
|
|
2022
2022
|
]
|
|
2023
2023
|
}
|
|
2024
2024
|
);
|
|
2025
|
-
},
|
|
2025
|
+
}, Ws = _s, Is = ({
|
|
2026
2026
|
width: e = "24",
|
|
2027
2027
|
height: r = "24",
|
|
2028
2028
|
className: n = "",
|
|
@@ -2103,7 +2103,7 @@ const qn = ({
|
|
|
2103
2103
|
]
|
|
2104
2104
|
}
|
|
2105
2105
|
);
|
|
2106
|
-
},
|
|
2106
|
+
}, Vs = Is;
|
|
2107
2107
|
function Ft(e) {
|
|
2108
2108
|
var r, n, t = "";
|
|
2109
2109
|
if (typeof e == "string" || typeof e == "number")
|
|
@@ -2117,12 +2117,12 @@ function Ft(e) {
|
|
|
2117
2117
|
e[r] && (t && (t += " "), t += r);
|
|
2118
2118
|
return t;
|
|
2119
2119
|
}
|
|
2120
|
-
function
|
|
2120
|
+
function Ds() {
|
|
2121
2121
|
for (var e, r, n = 0, t = ""; n < arguments.length; )
|
|
2122
2122
|
(e = arguments[n++]) && (r = Ft(e)) && (t && (t += " "), t += r);
|
|
2123
2123
|
return t;
|
|
2124
2124
|
}
|
|
2125
|
-
const Ct = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, wt =
|
|
2125
|
+
const Ct = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, wt = Ds, V = (e, r) => (n) => {
|
|
2126
2126
|
var t;
|
|
2127
2127
|
if ((r == null ? void 0 : r.variants) == null)
|
|
2128
2128
|
return wt(e, n == null ? void 0 : n.class, n == null ? void 0 : n.className);
|
|
@@ -2130,13 +2130,13 @@ const Ct = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, wt =
|
|
|
2130
2130
|
const f = n == null ? void 0 : n[u], p = o == null ? void 0 : o[u];
|
|
2131
2131
|
if (f === null)
|
|
2132
2132
|
return null;
|
|
2133
|
-
const
|
|
2134
|
-
return s[u][
|
|
2133
|
+
const m = Ct(f) || Ct(p);
|
|
2134
|
+
return s[u][m];
|
|
2135
2135
|
}), d = n && Object.entries(n).reduce((u, f) => {
|
|
2136
|
-
let [p,
|
|
2137
|
-
return
|
|
2136
|
+
let [p, m] = f;
|
|
2137
|
+
return m === void 0 || (u[p] = m), u;
|
|
2138
2138
|
}, {}), c = r == null || (t = r.compoundVariants) === null || t === void 0 ? void 0 : t.reduce((u, f) => {
|
|
2139
|
-
let { class: p, className:
|
|
2139
|
+
let { class: p, className: m, ...v } = f;
|
|
2140
2140
|
return Object.entries(v).every((x) => {
|
|
2141
2141
|
let [C, b] = x;
|
|
2142
2142
|
return Array.isArray(b) ? b.includes({
|
|
@@ -2149,19 +2149,19 @@ const Ct = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, wt =
|
|
|
2149
2149
|
}) ? [
|
|
2150
2150
|
...u,
|
|
2151
2151
|
p,
|
|
2152
|
-
|
|
2152
|
+
m
|
|
2153
2153
|
] : u;
|
|
2154
2154
|
}, []);
|
|
2155
2155
|
return wt(e, a, c, n == null ? void 0 : n.class, n == null ? void 0 : n.className);
|
|
2156
2156
|
}, qr = "-";
|
|
2157
|
-
function
|
|
2158
|
-
const r =
|
|
2157
|
+
function Hs(e) {
|
|
2158
|
+
const r = zs(e), {
|
|
2159
2159
|
conflictingClassGroups: n,
|
|
2160
2160
|
conflictingClassGroupModifiers: t
|
|
2161
2161
|
} = e;
|
|
2162
2162
|
function s(a) {
|
|
2163
2163
|
const d = a.split(qr);
|
|
2164
|
-
return d[0] === "" && d.length !== 1 && d.shift(), Ot(d, r) ||
|
|
2164
|
+
return d[0] === "" && d.length !== 1 && d.shift(), Ot(d, r) || Bs(a);
|
|
2165
2165
|
}
|
|
2166
2166
|
function o(a, d) {
|
|
2167
2167
|
const c = n[a] || [];
|
|
@@ -2187,14 +2187,14 @@ function Ot(e, r) {
|
|
|
2187
2187
|
}) => d(o))) == null ? void 0 : a.classGroupId;
|
|
2188
2188
|
}
|
|
2189
2189
|
const kt = /^\[(.+)\]$/;
|
|
2190
|
-
function
|
|
2190
|
+
function Bs(e) {
|
|
2191
2191
|
if (kt.test(e)) {
|
|
2192
2192
|
const r = kt.exec(e)[1], n = r == null ? void 0 : r.substring(0, r.indexOf(":"));
|
|
2193
2193
|
if (n)
|
|
2194
2194
|
return "arbitrary.." + n;
|
|
2195
2195
|
}
|
|
2196
2196
|
}
|
|
2197
|
-
function
|
|
2197
|
+
function zs(e) {
|
|
2198
2198
|
const {
|
|
2199
2199
|
theme: r,
|
|
2200
2200
|
prefix: n
|
|
@@ -2202,7 +2202,7 @@ function Hs(e) {
|
|
|
2202
2202
|
nextPart: /* @__PURE__ */ new Map(),
|
|
2203
2203
|
validators: []
|
|
2204
2204
|
};
|
|
2205
|
-
return
|
|
2205
|
+
return Gs(Object.entries(e.classGroups), n).forEach(([o, a]) => {
|
|
2206
2206
|
Ir(a, t, o, r);
|
|
2207
2207
|
}), t;
|
|
2208
2208
|
}
|
|
@@ -2214,7 +2214,7 @@ function Ir(e, r, n, t) {
|
|
|
2214
2214
|
return;
|
|
2215
2215
|
}
|
|
2216
2216
|
if (typeof s == "function") {
|
|
2217
|
-
if (
|
|
2217
|
+
if (Us(s)) {
|
|
2218
2218
|
Ir(s(t), r, n, t);
|
|
2219
2219
|
return;
|
|
2220
2220
|
}
|
|
@@ -2238,16 +2238,16 @@ function yt(e, r) {
|
|
|
2238
2238
|
}), n = n.nextPart.get(t);
|
|
2239
2239
|
}), n;
|
|
2240
2240
|
}
|
|
2241
|
-
function
|
|
2241
|
+
function Us(e) {
|
|
2242
2242
|
return e.isThemeGetter;
|
|
2243
2243
|
}
|
|
2244
|
-
function
|
|
2244
|
+
function Gs(e, r) {
|
|
2245
2245
|
return r ? e.map(([n, t]) => {
|
|
2246
2246
|
const s = t.map((o) => typeof o == "string" ? r + o : typeof o == "object" ? Object.fromEntries(Object.entries(o).map(([a, d]) => [r + a, d])) : o);
|
|
2247
2247
|
return [n, s];
|
|
2248
2248
|
}) : e;
|
|
2249
2249
|
}
|
|
2250
|
-
function
|
|
2250
|
+
function Ys(e) {
|
|
2251
2251
|
if (e < 1)
|
|
2252
2252
|
return {
|
|
2253
2253
|
get: () => {
|
|
@@ -2272,8 +2272,8 @@ function Us(e) {
|
|
|
2272
2272
|
}
|
|
2273
2273
|
};
|
|
2274
2274
|
}
|
|
2275
|
-
const
|
|
2276
|
-
function
|
|
2275
|
+
const _t = "!";
|
|
2276
|
+
function Zs(e) {
|
|
2277
2277
|
const r = e.separator, n = r.length === 1, t = r[0], s = r.length;
|
|
2278
2278
|
return function(a) {
|
|
2279
2279
|
const d = [];
|
|
@@ -2292,16 +2292,16 @@ function Gs(e) {
|
|
|
2292
2292
|
}
|
|
2293
2293
|
b === "[" ? c++ : b === "]" && c--;
|
|
2294
2294
|
}
|
|
2295
|
-
const p = d.length === 0 ? a : a.substring(u),
|
|
2295
|
+
const p = d.length === 0 ? a : a.substring(u), m = p.startsWith(_t), v = m ? p.substring(1) : p, x = f && f > u ? f - u : void 0;
|
|
2296
2296
|
return {
|
|
2297
2297
|
modifiers: d,
|
|
2298
|
-
hasImportantModifier:
|
|
2298
|
+
hasImportantModifier: m,
|
|
2299
2299
|
baseClassName: v,
|
|
2300
2300
|
maybePostfixModifierPosition: x
|
|
2301
2301
|
};
|
|
2302
2302
|
};
|
|
2303
2303
|
}
|
|
2304
|
-
function
|
|
2304
|
+
function qs(e) {
|
|
2305
2305
|
if (e.length <= 1)
|
|
2306
2306
|
return e;
|
|
2307
2307
|
const r = [];
|
|
@@ -2310,28 +2310,28 @@ function Ys(e) {
|
|
|
2310
2310
|
t[0] === "[" ? (r.push(...n.sort(), t), n = []) : n.push(t);
|
|
2311
2311
|
}), r.push(...n.sort()), r;
|
|
2312
2312
|
}
|
|
2313
|
-
function
|
|
2313
|
+
function Ks(e) {
|
|
2314
2314
|
return {
|
|
2315
|
-
cache:
|
|
2316
|
-
splitModifiers:
|
|
2317
|
-
...
|
|
2315
|
+
cache: Ys(e.cacheSize),
|
|
2316
|
+
splitModifiers: Zs(e),
|
|
2317
|
+
...Hs(e)
|
|
2318
2318
|
};
|
|
2319
2319
|
}
|
|
2320
|
-
const
|
|
2321
|
-
function
|
|
2320
|
+
const Js = /\s+/;
|
|
2321
|
+
function Xs(e, r) {
|
|
2322
2322
|
const {
|
|
2323
2323
|
splitModifiers: n,
|
|
2324
2324
|
getClassGroupId: t,
|
|
2325
2325
|
getConflictingClassGroupIds: s
|
|
2326
2326
|
} = r, o = /* @__PURE__ */ new Set();
|
|
2327
|
-
return e.trim().split(
|
|
2327
|
+
return e.trim().split(Js).map((a) => {
|
|
2328
2328
|
const {
|
|
2329
2329
|
modifiers: d,
|
|
2330
2330
|
hasImportantModifier: c,
|
|
2331
2331
|
baseClassName: u,
|
|
2332
2332
|
maybePostfixModifierPosition: f
|
|
2333
2333
|
} = n(a);
|
|
2334
|
-
let p = t(f ? u.substring(0, f) : u),
|
|
2334
|
+
let p = t(f ? u.substring(0, f) : u), m = !!f;
|
|
2335
2335
|
if (!p) {
|
|
2336
2336
|
if (!f)
|
|
2337
2337
|
return {
|
|
@@ -2343,15 +2343,15 @@ function Ks(e, r) {
|
|
|
2343
2343
|
isTailwindClass: !1,
|
|
2344
2344
|
originalClassName: a
|
|
2345
2345
|
};
|
|
2346
|
-
|
|
2346
|
+
m = !1;
|
|
2347
2347
|
}
|
|
2348
|
-
const v =
|
|
2348
|
+
const v = qs(d).join(":");
|
|
2349
2349
|
return {
|
|
2350
2350
|
isTailwindClass: !0,
|
|
2351
|
-
modifierId: c ? v +
|
|
2351
|
+
modifierId: c ? v + _t : v,
|
|
2352
2352
|
classGroupId: p,
|
|
2353
2353
|
originalClassName: a,
|
|
2354
|
-
hasPostfixModifier:
|
|
2354
|
+
hasPostfixModifier: m
|
|
2355
2355
|
};
|
|
2356
2356
|
}).reverse().filter((a) => {
|
|
2357
2357
|
if (!a.isTailwindClass)
|
|
@@ -2364,79 +2364,79 @@ function Ks(e, r) {
|
|
|
2364
2364
|
return o.has(f) ? !1 : (o.add(f), s(c, u).forEach((p) => o.add(d + p)), !0);
|
|
2365
2365
|
}).reverse().map((a) => a.originalClassName).join(" ");
|
|
2366
2366
|
}
|
|
2367
|
-
function
|
|
2367
|
+
function Qs() {
|
|
2368
2368
|
let e = 0, r, n, t = "";
|
|
2369
2369
|
for (; e < arguments.length; )
|
|
2370
|
-
(r = arguments[e++]) && (n =
|
|
2370
|
+
(r = arguments[e++]) && (n = Wt(r)) && (t && (t += " "), t += n);
|
|
2371
2371
|
return t;
|
|
2372
2372
|
}
|
|
2373
|
-
function
|
|
2373
|
+
function Wt(e) {
|
|
2374
2374
|
if (typeof e == "string")
|
|
2375
2375
|
return e;
|
|
2376
2376
|
let r, n = "";
|
|
2377
2377
|
for (let t = 0; t < e.length; t++)
|
|
2378
|
-
e[t] && (r =
|
|
2378
|
+
e[t] && (r = Wt(e[t])) && (n && (n += " "), n += r);
|
|
2379
2379
|
return n;
|
|
2380
2380
|
}
|
|
2381
|
-
function
|
|
2381
|
+
function eo(e, ...r) {
|
|
2382
2382
|
let n, t, s, o = a;
|
|
2383
2383
|
function a(c) {
|
|
2384
2384
|
const u = r.reduce((f, p) => p(f), e());
|
|
2385
|
-
return n =
|
|
2385
|
+
return n = Ks(u), t = n.cache.get, s = n.cache.set, o = d, d(c);
|
|
2386
2386
|
}
|
|
2387
2387
|
function d(c) {
|
|
2388
2388
|
const u = t(c);
|
|
2389
2389
|
if (u)
|
|
2390
2390
|
return u;
|
|
2391
|
-
const f =
|
|
2391
|
+
const f = Xs(c, n);
|
|
2392
2392
|
return s(c, f), f;
|
|
2393
2393
|
}
|
|
2394
2394
|
return function() {
|
|
2395
|
-
return o(
|
|
2395
|
+
return o(Qs.apply(null, arguments));
|
|
2396
2396
|
};
|
|
2397
2397
|
}
|
|
2398
2398
|
function A(e) {
|
|
2399
2399
|
const r = (n) => n[e] || [];
|
|
2400
2400
|
return r.isThemeGetter = !0, r;
|
|
2401
2401
|
}
|
|
2402
|
-
const It = /^\[(?:([a-z-]+):)?(.+)\]$/i,
|
|
2402
|
+
const It = /^\[(?:([a-z-]+):)?(.+)\]$/i, ro = /^\d+\/\d+$/, to = /* @__PURE__ */ new Set(["px", "full", "screen"]), no = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, so = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, oo = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, ao = /^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, io = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;
|
|
2403
2403
|
function Le(e) {
|
|
2404
|
-
return
|
|
2404
|
+
return _e(e) || to.has(e) || ro.test(e);
|
|
2405
2405
|
}
|
|
2406
2406
|
function Ne(e) {
|
|
2407
|
-
return Ge(e, "length",
|
|
2407
|
+
return Ge(e, "length", go);
|
|
2408
2408
|
}
|
|
2409
|
-
function
|
|
2409
|
+
function _e(e) {
|
|
2410
2410
|
return !!e && !Number.isNaN(Number(e));
|
|
2411
2411
|
}
|
|
2412
2412
|
function gr(e) {
|
|
2413
|
-
return Ge(e, "number",
|
|
2413
|
+
return Ge(e, "number", _e);
|
|
2414
2414
|
}
|
|
2415
2415
|
function tr(e) {
|
|
2416
2416
|
return !!e && Number.isInteger(Number(e));
|
|
2417
2417
|
}
|
|
2418
|
-
function
|
|
2419
|
-
return e.endsWith("%") &&
|
|
2418
|
+
function lo(e) {
|
|
2419
|
+
return e.endsWith("%") && _e(e.slice(0, -1));
|
|
2420
2420
|
}
|
|
2421
2421
|
function E(e) {
|
|
2422
2422
|
return It.test(e);
|
|
2423
2423
|
}
|
|
2424
2424
|
function Re(e) {
|
|
2425
|
-
return
|
|
2425
|
+
return no.test(e);
|
|
2426
2426
|
}
|
|
2427
|
-
const
|
|
2428
|
-
function
|
|
2429
|
-
return Ge(e,
|
|
2427
|
+
const co = /* @__PURE__ */ new Set(["length", "size", "percentage"]);
|
|
2428
|
+
function uo(e) {
|
|
2429
|
+
return Ge(e, co, Vt);
|
|
2430
2430
|
}
|
|
2431
|
-
function
|
|
2431
|
+
function fo(e) {
|
|
2432
2432
|
return Ge(e, "position", Vt);
|
|
2433
2433
|
}
|
|
2434
|
-
const
|
|
2435
|
-
function
|
|
2436
|
-
return Ge(e,
|
|
2434
|
+
const po = /* @__PURE__ */ new Set(["image", "url"]);
|
|
2435
|
+
function ho(e) {
|
|
2436
|
+
return Ge(e, po, bo);
|
|
2437
2437
|
}
|
|
2438
|
-
function
|
|
2439
|
-
return Ge(e, "",
|
|
2438
|
+
function mo(e) {
|
|
2439
|
+
return Ge(e, "", vo);
|
|
2440
2440
|
}
|
|
2441
2441
|
function nr() {
|
|
2442
2442
|
return !0;
|
|
@@ -2445,20 +2445,20 @@ function Ge(e, r, n) {
|
|
|
2445
2445
|
const t = It.exec(e);
|
|
2446
2446
|
return t ? t[1] ? typeof r == "string" ? t[1] === r : r.has(t[1]) : n(t[2]) : !1;
|
|
2447
2447
|
}
|
|
2448
|
-
function
|
|
2449
|
-
return
|
|
2448
|
+
function go(e) {
|
|
2449
|
+
return so.test(e) && !oo.test(e);
|
|
2450
2450
|
}
|
|
2451
2451
|
function Vt() {
|
|
2452
2452
|
return !1;
|
|
2453
2453
|
}
|
|
2454
|
-
function
|
|
2455
|
-
return
|
|
2454
|
+
function vo(e) {
|
|
2455
|
+
return ao.test(e);
|
|
2456
2456
|
}
|
|
2457
|
-
function
|
|
2458
|
-
return
|
|
2457
|
+
function bo(e) {
|
|
2458
|
+
return io.test(e);
|
|
2459
2459
|
}
|
|
2460
|
-
function
|
|
2461
|
-
const e = A("colors"), r = A("spacing"), n = A("blur"), t = A("brightness"), s = A("borderColor"), o = A("borderRadius"), a = A("borderSpacing"), d = A("borderWidth"), c = A("contrast"), u = A("grayscale"), f = A("hueRotate"), p = A("invert"),
|
|
2460
|
+
function xo() {
|
|
2461
|
+
const e = A("colors"), r = A("spacing"), n = A("blur"), t = A("brightness"), s = A("borderColor"), o = A("borderRadius"), a = A("borderSpacing"), d = A("borderWidth"), c = A("contrast"), u = A("grayscale"), f = A("hueRotate"), p = A("invert"), m = A("gap"), v = A("gradientColorStops"), x = A("gradientColorStopPositions"), C = A("inset"), b = A("margin"), w = A("opacity"), y = A("padding"), fe = A("saturate"), N = A("scale"), G = A("sepia"), ke = A("skew"), J = A("space"), Y = A("translate"), X = () => ["auto", "contain", "none"], te = () => ["auto", "hidden", "clip", "visible", "scroll"], ie = () => ["auto", E, r], $ = () => [E, r], F = () => ["", Le, Ne], I = () => ["auto", _e, E], U = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], pe = () => ["solid", "dashed", "dotted", "double", "none"], be = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity", "plus-lighter"], he = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], B = () => ["", "0", E], ye = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], me = () => [_e, gr], Q = () => [_e, E];
|
|
2462
2462
|
return {
|
|
2463
2463
|
cacheSize: 500,
|
|
2464
2464
|
separator: ":",
|
|
@@ -2473,11 +2473,11 @@ function vo() {
|
|
|
2473
2473
|
borderWidth: F(),
|
|
2474
2474
|
contrast: me(),
|
|
2475
2475
|
grayscale: B(),
|
|
2476
|
-
hueRotate:
|
|
2476
|
+
hueRotate: Q(),
|
|
2477
2477
|
invert: B(),
|
|
2478
2478
|
gap: $(),
|
|
2479
2479
|
gradientColorStops: [e],
|
|
2480
|
-
gradientColorStopPositions: [
|
|
2480
|
+
gradientColorStopPositions: [lo, Ne],
|
|
2481
2481
|
inset: ie(),
|
|
2482
2482
|
margin: ie(),
|
|
2483
2483
|
opacity: me(),
|
|
@@ -2485,7 +2485,7 @@ function vo() {
|
|
|
2485
2485
|
saturate: me(),
|
|
2486
2486
|
scale: me(),
|
|
2487
2487
|
sepia: B(),
|
|
2488
|
-
skew:
|
|
2488
|
+
skew: Q(),
|
|
2489
2489
|
space: $(),
|
|
2490
2490
|
translate: $()
|
|
2491
2491
|
},
|
|
@@ -2609,21 +2609,21 @@ function vo() {
|
|
|
2609
2609
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
2610
2610
|
*/
|
|
2611
2611
|
overscroll: [{
|
|
2612
|
-
overscroll:
|
|
2612
|
+
overscroll: X()
|
|
2613
2613
|
}],
|
|
2614
2614
|
/**
|
|
2615
2615
|
* Overscroll Behavior X
|
|
2616
2616
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
2617
2617
|
*/
|
|
2618
2618
|
"overscroll-x": [{
|
|
2619
|
-
"overscroll-x":
|
|
2619
|
+
"overscroll-x": X()
|
|
2620
2620
|
}],
|
|
2621
2621
|
/**
|
|
2622
2622
|
* Overscroll Behavior Y
|
|
2623
2623
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
2624
2624
|
*/
|
|
2625
2625
|
"overscroll-y": [{
|
|
2626
|
-
"overscroll-y":
|
|
2626
|
+
"overscroll-y": X()
|
|
2627
2627
|
}],
|
|
2628
2628
|
/**
|
|
2629
2629
|
* Position
|
|
@@ -2841,21 +2841,21 @@ function vo() {
|
|
|
2841
2841
|
* @see https://tailwindcss.com/docs/gap
|
|
2842
2842
|
*/
|
|
2843
2843
|
gap: [{
|
|
2844
|
-
gap: [
|
|
2844
|
+
gap: [m]
|
|
2845
2845
|
}],
|
|
2846
2846
|
/**
|
|
2847
2847
|
* Gap X
|
|
2848
2848
|
* @see https://tailwindcss.com/docs/gap
|
|
2849
2849
|
*/
|
|
2850
2850
|
"gap-x": [{
|
|
2851
|
-
"gap-x": [
|
|
2851
|
+
"gap-x": [m]
|
|
2852
2852
|
}],
|
|
2853
2853
|
/**
|
|
2854
2854
|
* Gap Y
|
|
2855
2855
|
* @see https://tailwindcss.com/docs/gap
|
|
2856
2856
|
*/
|
|
2857
2857
|
"gap-y": [{
|
|
2858
|
-
"gap-y": [
|
|
2858
|
+
"gap-y": [m]
|
|
2859
2859
|
}],
|
|
2860
2860
|
/**
|
|
2861
2861
|
* Justify Content
|
|
@@ -3052,7 +3052,7 @@ function vo() {
|
|
|
3052
3052
|
* @see https://tailwindcss.com/docs/space
|
|
3053
3053
|
*/
|
|
3054
3054
|
"space-x": [{
|
|
3055
|
-
"space-x": [
|
|
3055
|
+
"space-x": [J]
|
|
3056
3056
|
}],
|
|
3057
3057
|
/**
|
|
3058
3058
|
* Space Between X Reverse
|
|
@@ -3064,7 +3064,7 @@ function vo() {
|
|
|
3064
3064
|
* @see https://tailwindcss.com/docs/space
|
|
3065
3065
|
*/
|
|
3066
3066
|
"space-y": [{
|
|
3067
|
-
"space-y": [
|
|
3067
|
+
"space-y": [J]
|
|
3068
3068
|
}],
|
|
3069
3069
|
/**
|
|
3070
3070
|
* Space Between Y Reverse
|
|
@@ -3197,7 +3197,7 @@ function vo() {
|
|
|
3197
3197
|
* @see https://tailwindcss.com/docs/line-clamp
|
|
3198
3198
|
*/
|
|
3199
3199
|
"line-clamp": [{
|
|
3200
|
-
"line-clamp": ["none",
|
|
3200
|
+
"line-clamp": ["none", _e, gr]
|
|
3201
3201
|
}],
|
|
3202
3202
|
/**
|
|
3203
3203
|
* Line Height
|
|
@@ -3390,7 +3390,7 @@ function vo() {
|
|
|
3390
3390
|
* @see https://tailwindcss.com/docs/background-position
|
|
3391
3391
|
*/
|
|
3392
3392
|
"bg-position": [{
|
|
3393
|
-
bg: [...U(),
|
|
3393
|
+
bg: [...U(), fo]
|
|
3394
3394
|
}],
|
|
3395
3395
|
/**
|
|
3396
3396
|
* Background Repeat
|
|
@@ -3406,7 +3406,7 @@ function vo() {
|
|
|
3406
3406
|
* @see https://tailwindcss.com/docs/background-size
|
|
3407
3407
|
*/
|
|
3408
3408
|
"bg-size": [{
|
|
3409
|
-
bg: ["auto", "cover", "contain",
|
|
3409
|
+
bg: ["auto", "cover", "contain", uo]
|
|
3410
3410
|
}],
|
|
3411
3411
|
/**
|
|
3412
3412
|
* Background Image
|
|
@@ -3415,7 +3415,7 @@ function vo() {
|
|
|
3415
3415
|
"bg-image": [{
|
|
3416
3416
|
bg: ["none", {
|
|
3417
3417
|
"gradient-to": ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
|
|
3418
|
-
},
|
|
3418
|
+
}, ho]
|
|
3419
3419
|
}],
|
|
3420
3420
|
/**
|
|
3421
3421
|
* Background Color
|
|
@@ -3817,7 +3817,7 @@ function vo() {
|
|
|
3817
3817
|
* @see https://tailwindcss.com/docs/box-shadow
|
|
3818
3818
|
*/
|
|
3819
3819
|
shadow: [{
|
|
3820
|
-
shadow: ["", "inner", "none", Re,
|
|
3820
|
+
shadow: ["", "inner", "none", Re, mo]
|
|
3821
3821
|
}],
|
|
3822
3822
|
/**
|
|
3823
3823
|
* Box Shadow Color
|
|
@@ -4046,7 +4046,7 @@ function vo() {
|
|
|
4046
4046
|
* @see https://tailwindcss.com/docs/transition-duration
|
|
4047
4047
|
*/
|
|
4048
4048
|
duration: [{
|
|
4049
|
-
duration:
|
|
4049
|
+
duration: Q()
|
|
4050
4050
|
}],
|
|
4051
4051
|
/**
|
|
4052
4052
|
* Transition Timing Function
|
|
@@ -4060,7 +4060,7 @@ function vo() {
|
|
|
4060
4060
|
* @see https://tailwindcss.com/docs/transition-delay
|
|
4061
4061
|
*/
|
|
4062
4062
|
delay: [{
|
|
4063
|
-
delay:
|
|
4063
|
+
delay: Q()
|
|
4064
4064
|
}],
|
|
4065
4065
|
/**
|
|
4066
4066
|
* Animation
|
|
@@ -4473,15 +4473,15 @@ function vo() {
|
|
|
4473
4473
|
}
|
|
4474
4474
|
};
|
|
4475
4475
|
}
|
|
4476
|
-
const
|
|
4477
|
-
function
|
|
4476
|
+
const K = /* @__PURE__ */ eo(xo);
|
|
4477
|
+
function Co() {
|
|
4478
4478
|
return Math.floor(Math.random() * 1e7);
|
|
4479
4479
|
}
|
|
4480
4480
|
const Dt = (e, r, n, t, s) => {
|
|
4481
4481
|
const o = `preflight ${n}`;
|
|
4482
4482
|
return {
|
|
4483
4483
|
settings: /* @__PURE__ */ i.jsx(
|
|
4484
|
-
|
|
4484
|
+
hs,
|
|
4485
4485
|
{
|
|
4486
4486
|
width: e,
|
|
4487
4487
|
height: r,
|
|
@@ -4491,7 +4491,7 @@ const Dt = (e, r, n, t, s) => {
|
|
|
4491
4491
|
}
|
|
4492
4492
|
),
|
|
4493
4493
|
questionCircle: /* @__PURE__ */ i.jsx(
|
|
4494
|
-
|
|
4494
|
+
fs,
|
|
4495
4495
|
{
|
|
4496
4496
|
width: e,
|
|
4497
4497
|
height: r,
|
|
@@ -4501,7 +4501,7 @@ const Dt = (e, r, n, t, s) => {
|
|
|
4501
4501
|
}
|
|
4502
4502
|
),
|
|
4503
4503
|
notifications: /* @__PURE__ */ i.jsx(
|
|
4504
|
-
|
|
4504
|
+
ls,
|
|
4505
4505
|
{
|
|
4506
4506
|
width: e,
|
|
4507
4507
|
height: r,
|
|
@@ -4511,7 +4511,7 @@ const Dt = (e, r, n, t, s) => {
|
|
|
4511
4511
|
}
|
|
4512
4512
|
),
|
|
4513
4513
|
flag: /* @__PURE__ */ i.jsx(
|
|
4514
|
-
|
|
4514
|
+
as,
|
|
4515
4515
|
{
|
|
4516
4516
|
width: e,
|
|
4517
4517
|
height: r,
|
|
@@ -4521,7 +4521,7 @@ const Dt = (e, r, n, t, s) => {
|
|
|
4521
4521
|
}
|
|
4522
4522
|
),
|
|
4523
4523
|
edit: /* @__PURE__ */ i.jsx(
|
|
4524
|
-
|
|
4524
|
+
ss,
|
|
4525
4525
|
{
|
|
4526
4526
|
width: e,
|
|
4527
4527
|
height: r,
|
|
@@ -4541,7 +4541,7 @@ const Dt = (e, r, n, t, s) => {
|
|
|
4541
4541
|
}
|
|
4542
4542
|
),
|
|
4543
4543
|
delete: /* @__PURE__ */ i.jsx(
|
|
4544
|
-
|
|
4544
|
+
Cs,
|
|
4545
4545
|
{
|
|
4546
4546
|
width: e,
|
|
4547
4547
|
height: r,
|
|
@@ -4551,7 +4551,7 @@ const Dt = (e, r, n, t, s) => {
|
|
|
4551
4551
|
}
|
|
4552
4552
|
),
|
|
4553
4553
|
resourceCenter: /* @__PURE__ */ i.jsx(
|
|
4554
|
-
|
|
4554
|
+
Rs,
|
|
4555
4555
|
{
|
|
4556
4556
|
width: e,
|
|
4557
4557
|
height: r,
|
|
@@ -4561,7 +4561,7 @@ const Dt = (e, r, n, t, s) => {
|
|
|
4561
4561
|
}
|
|
4562
4562
|
),
|
|
4563
4563
|
search: /* @__PURE__ */ i.jsx(
|
|
4564
|
-
|
|
4564
|
+
Ss,
|
|
4565
4565
|
{
|
|
4566
4566
|
width: e,
|
|
4567
4567
|
height: r,
|
|
@@ -4591,7 +4591,7 @@ const Dt = (e, r, n, t, s) => {
|
|
|
4591
4591
|
}
|
|
4592
4592
|
),
|
|
4593
4593
|
dropdown: /* @__PURE__ */ i.jsx(
|
|
4594
|
-
|
|
4594
|
+
ks,
|
|
4595
4595
|
{
|
|
4596
4596
|
width: e,
|
|
4597
4597
|
height: r,
|
|
@@ -4601,7 +4601,7 @@ const Dt = (e, r, n, t, s) => {
|
|
|
4601
4601
|
}
|
|
4602
4602
|
),
|
|
4603
4603
|
calendar: /* @__PURE__ */ i.jsx(
|
|
4604
|
-
|
|
4604
|
+
js,
|
|
4605
4605
|
{
|
|
4606
4606
|
width: e,
|
|
4607
4607
|
height: r,
|
|
@@ -4611,7 +4611,7 @@ const Dt = (e, r, n, t, s) => {
|
|
|
4611
4611
|
}
|
|
4612
4612
|
),
|
|
4613
4613
|
bookmark: /* @__PURE__ */ i.jsx(
|
|
4614
|
-
|
|
4614
|
+
Ls,
|
|
4615
4615
|
{
|
|
4616
4616
|
width: e,
|
|
4617
4617
|
height: r,
|
|
@@ -4621,7 +4621,7 @@ const Dt = (e, r, n, t, s) => {
|
|
|
4621
4621
|
}
|
|
4622
4622
|
),
|
|
4623
4623
|
menu: /* @__PURE__ */ i.jsx(
|
|
4624
|
-
|
|
4624
|
+
Ps,
|
|
4625
4625
|
{
|
|
4626
4626
|
width: e,
|
|
4627
4627
|
height: r,
|
|
@@ -4631,7 +4631,7 @@ const Dt = (e, r, n, t, s) => {
|
|
|
4631
4631
|
}
|
|
4632
4632
|
),
|
|
4633
4633
|
add: /* @__PURE__ */ i.jsx(
|
|
4634
|
-
|
|
4634
|
+
Os,
|
|
4635
4635
|
{
|
|
4636
4636
|
width: e,
|
|
4637
4637
|
height: r,
|
|
@@ -4641,7 +4641,7 @@ const Dt = (e, r, n, t, s) => {
|
|
|
4641
4641
|
}
|
|
4642
4642
|
),
|
|
4643
4643
|
exclude: /* @__PURE__ */ i.jsx(
|
|
4644
|
-
|
|
4644
|
+
bs,
|
|
4645
4645
|
{
|
|
4646
4646
|
width: e,
|
|
4647
4647
|
height: r,
|
|
@@ -4651,7 +4651,7 @@ const Dt = (e, r, n, t, s) => {
|
|
|
4651
4651
|
}
|
|
4652
4652
|
),
|
|
4653
4653
|
email: /* @__PURE__ */ i.jsx(
|
|
4654
|
-
|
|
4654
|
+
gs,
|
|
4655
4655
|
{
|
|
4656
4656
|
width: e,
|
|
4657
4657
|
height: r,
|
|
@@ -4661,7 +4661,7 @@ const Dt = (e, r, n, t, s) => {
|
|
|
4661
4661
|
}
|
|
4662
4662
|
),
|
|
4663
4663
|
close: /* @__PURE__ */ i.jsx(
|
|
4664
|
-
|
|
4664
|
+
ts,
|
|
4665
4665
|
{
|
|
4666
4666
|
width: e,
|
|
4667
4667
|
height: r,
|
|
@@ -4681,7 +4681,7 @@ const Dt = (e, r, n, t, s) => {
|
|
|
4681
4681
|
}
|
|
4682
4682
|
),
|
|
4683
4683
|
linkNewTab: /* @__PURE__ */ i.jsx(
|
|
4684
|
-
|
|
4684
|
+
Ws,
|
|
4685
4685
|
{
|
|
4686
4686
|
width: e,
|
|
4687
4687
|
height: r,
|
|
@@ -4695,7 +4695,7 @@ const Dt = (e, r, n, t, s) => {
|
|
|
4695
4695
|
const o = `preflight ${n}`;
|
|
4696
4696
|
return {
|
|
4697
4697
|
notifications: /* @__PURE__ */ i.jsx(
|
|
4698
|
-
|
|
4698
|
+
cs,
|
|
4699
4699
|
{
|
|
4700
4700
|
width: e,
|
|
4701
4701
|
height: r,
|
|
@@ -4705,7 +4705,7 @@ const Dt = (e, r, n, t, s) => {
|
|
|
4705
4705
|
}
|
|
4706
4706
|
),
|
|
4707
4707
|
resourceCenter: /* @__PURE__ */ i.jsx(
|
|
4708
|
-
|
|
4708
|
+
Vs,
|
|
4709
4709
|
{
|
|
4710
4710
|
width: e,
|
|
4711
4711
|
height: r,
|
|
@@ -4715,7 +4715,7 @@ const Dt = (e, r, n, t, s) => {
|
|
|
4715
4715
|
}
|
|
4716
4716
|
),
|
|
4717
4717
|
bookmark: /* @__PURE__ */ i.jsx(
|
|
4718
|
-
|
|
4718
|
+
Ts,
|
|
4719
4719
|
{
|
|
4720
4720
|
width: e,
|
|
4721
4721
|
height: r,
|
|
@@ -4725,7 +4725,7 @@ const Dt = (e, r, n, t, s) => {
|
|
|
4725
4725
|
}
|
|
4726
4726
|
)
|
|
4727
4727
|
};
|
|
4728
|
-
},
|
|
4728
|
+
}, wo = ({
|
|
4729
4729
|
size: e = "small",
|
|
4730
4730
|
name: r,
|
|
4731
4731
|
hasIndicator: n = !1,
|
|
@@ -4756,7 +4756,7 @@ const Dt = (e, r, n, t, s) => {
|
|
|
4756
4756
|
o
|
|
4757
4757
|
), u = n && c[r] || d[r];
|
|
4758
4758
|
return /* @__PURE__ */ i.jsx(i.Fragment, { children: u });
|
|
4759
|
-
}, Ve =
|
|
4759
|
+
}, Ve = wo;
|
|
4760
4760
|
Object.keys(Dt()).sort(
|
|
4761
4761
|
(e, r) => e.localeCompare(r)
|
|
4762
4762
|
);
|
|
@@ -4777,12 +4777,12 @@ function Bt(e) {
|
|
|
4777
4777
|
e[n] && (t && (t += " "), t += n);
|
|
4778
4778
|
return t;
|
|
4779
4779
|
}
|
|
4780
|
-
function
|
|
4780
|
+
function ko() {
|
|
4781
4781
|
for (var e, r, n = 0, t = "", s = arguments.length; n < s; n++)
|
|
4782
4782
|
(e = arguments[n]) && (r = Bt(e)) && (t && (t += " "), t += r);
|
|
4783
4783
|
return t;
|
|
4784
4784
|
}
|
|
4785
|
-
const Vr = (...e) =>
|
|
4785
|
+
const Vr = (...e) => K(ko(...e)), zt = (e, r, n) => {
|
|
4786
4786
|
if (r) {
|
|
4787
4787
|
e.preventDefault();
|
|
4788
4788
|
return;
|
|
@@ -4794,7 +4794,7 @@ const Vr = (...e) => re(Co(...e)), zt = (e, r, n) => {
|
|
|
4794
4794
|
return;
|
|
4795
4795
|
}
|
|
4796
4796
|
n(e);
|
|
4797
|
-
},
|
|
4797
|
+
}, yo = V(
|
|
4798
4798
|
[
|
|
4799
4799
|
"preflight",
|
|
4800
4800
|
"!ds-font-sans",
|
|
@@ -4855,7 +4855,7 @@ const Vr = (...e) => re(Co(...e)), zt = (e, r, n) => {
|
|
|
4855
4855
|
}
|
|
4856
4856
|
]
|
|
4857
4857
|
}
|
|
4858
|
-
),
|
|
4858
|
+
), jo = ({
|
|
4859
4859
|
variant: e = "default",
|
|
4860
4860
|
label: r = "",
|
|
4861
4861
|
disabled: n = !1,
|
|
@@ -4871,10 +4871,10 @@ const Vr = (...e) => re(Co(...e)), zt = (e, r, n) => {
|
|
|
4871
4871
|
}) => /* @__PURE__ */ i.jsxs(
|
|
4872
4872
|
"button",
|
|
4873
4873
|
{
|
|
4874
|
-
onClick: (
|
|
4874
|
+
onClick: (m) => jr(m, n, s),
|
|
4875
4875
|
"aria-disabled": n,
|
|
4876
4876
|
"aria-label": r,
|
|
4877
|
-
className: Vr(
|
|
4877
|
+
className: Vr(yo({ variant: e, isTransparent: u, disabled: n }), t),
|
|
4878
4878
|
...p,
|
|
4879
4879
|
children: [
|
|
4880
4880
|
/* @__PURE__ */ i.jsx(
|
|
@@ -4897,7 +4897,7 @@ const Vr = (...e) => re(Co(...e)), zt = (e, r, n) => {
|
|
|
4897
4897
|
)
|
|
4898
4898
|
]
|
|
4899
4899
|
}
|
|
4900
|
-
), Kr =
|
|
4900
|
+
), Kr = jo, Eo = V(
|
|
4901
4901
|
[
|
|
4902
4902
|
"preflight",
|
|
4903
4903
|
"ds-flex",
|
|
@@ -4921,7 +4921,7 @@ const Vr = (...e) => re(Co(...e)), zt = (e, r, n) => {
|
|
|
4921
4921
|
}
|
|
4922
4922
|
}
|
|
4923
4923
|
}
|
|
4924
|
-
),
|
|
4924
|
+
), Lo = (e) => K(Eo(e)), $o = V("", {
|
|
4925
4925
|
variants: {
|
|
4926
4926
|
variant: {
|
|
4927
4927
|
success: "ds-text-success-green-dark",
|
|
@@ -4930,7 +4930,7 @@ const Vr = (...e) => re(Co(...e)), zt = (e, r, n) => {
|
|
|
4930
4930
|
error: "ds-text-danger-red-dark"
|
|
4931
4931
|
}
|
|
4932
4932
|
}
|
|
4933
|
-
}), jt = (e) =>
|
|
4933
|
+
}), jt = (e) => K($o(e)), To = V("", {
|
|
4934
4934
|
variants: {
|
|
4935
4935
|
variant: {
|
|
4936
4936
|
success: ["ds-text-success-green-darkest", "ds-stroke-success-green-darkest"],
|
|
@@ -4939,7 +4939,7 @@ const Vr = (...e) => re(Co(...e)), zt = (e, r, n) => {
|
|
|
4939
4939
|
error: ["ds-text-danger-red-darkest", "ds-stroke-danger-red-darkest"]
|
|
4940
4940
|
}
|
|
4941
4941
|
}
|
|
4942
|
-
}), ze = (e) =>
|
|
4942
|
+
}), ze = (e) => K(To(e)), Mo = ({
|
|
4943
4943
|
variant: e = "info",
|
|
4944
4944
|
isDismissible: r = !0,
|
|
4945
4945
|
showIcon: n = !0,
|
|
@@ -4948,7 +4948,7 @@ const Vr = (...e) => re(Co(...e)), zt = (e, r, n) => {
|
|
|
4948
4948
|
description: o = "",
|
|
4949
4949
|
content: a = void 0,
|
|
4950
4950
|
closeAriaLabel: d = "Close button",
|
|
4951
|
-
id: c = "alert_" +
|
|
4951
|
+
id: c = "alert_" + Co().toString(),
|
|
4952
4952
|
handleClose: u,
|
|
4953
4953
|
...f
|
|
4954
4954
|
}) => {
|
|
@@ -4957,8 +4957,8 @@ const Vr = (...e) => re(Co(...e)), zt = (e, r, n) => {
|
|
|
4957
4957
|
info: /* @__PURE__ */ i.jsx(Nt, { className: ze({ variant: e }) }),
|
|
4958
4958
|
warning: /* @__PURE__ */ i.jsx(At, { className: ze({ variant: e }) }),
|
|
4959
4959
|
error: /* @__PURE__ */ i.jsx(Pt, { className: ze({ variant: e }) })
|
|
4960
|
-
},
|
|
4961
|
-
return /* @__PURE__ */ i.jsxs("div", { id: c, className:
|
|
4960
|
+
}, m = () => a !== void 0 && o !== "" && !(t !== "none" || s !== ""), v = () => t === "large" ? "ds-flex-col ds-flex ds-gap-3" : t === "small" ? "ds-flex-row ds-flex ds-gap-3" : "ds-flex";
|
|
4961
|
+
return /* @__PURE__ */ i.jsxs("div", { id: c, className: Lo({ variant: e }), ...f, children: [
|
|
4962
4962
|
/* @__PURE__ */ i.jsxs("div", { className: "ds-flex ds-flex-row", children: [
|
|
4963
4963
|
n && /* @__PURE__ */ i.jsx(
|
|
4964
4964
|
"div",
|
|
@@ -5000,7 +5000,7 @@ const Vr = (...e) => re(Co(...e)), zt = (e, r, n) => {
|
|
|
5000
5000
|
a && /* @__PURE__ */ i.jsx(
|
|
5001
5001
|
"div",
|
|
5002
5002
|
{
|
|
5003
|
-
className: `${jt({ variant: e })} ${
|
|
5003
|
+
className: `${jt({ variant: e })} ${m() ? "ds-mt-3" : ""}`,
|
|
5004
5004
|
children: a
|
|
5005
5005
|
}
|
|
5006
5006
|
)
|
|
@@ -5022,7 +5022,7 @@ const Vr = (...e) => re(Co(...e)), zt = (e, r, n) => {
|
|
|
5022
5022
|
}
|
|
5023
5023
|
) })
|
|
5024
5024
|
] });
|
|
5025
|
-
},
|
|
5025
|
+
}, sl = Mo, Ut = [
|
|
5026
5026
|
"preflight",
|
|
5027
5027
|
// Need to specify the font because disabling preflight makes the button not inherit the font
|
|
5028
5028
|
// Lato is defined as font-sans in our tailwind theme configuration
|
|
@@ -5039,7 +5039,7 @@ const Vr = (...e) => re(Co(...e)), zt = (e, r, n) => {
|
|
|
5039
5039
|
"focus-visible:ds-ring-2",
|
|
5040
5040
|
"focus-visible:ds-outline-none",
|
|
5041
5041
|
"focus-visible:ds-ring-offset-2"
|
|
5042
|
-
],
|
|
5042
|
+
], So = [
|
|
5043
5043
|
"!ds-bg-neutrals-lighter",
|
|
5044
5044
|
"!ds-text-neutrals-dark",
|
|
5045
5045
|
"!ds-border-neutrals-light",
|
|
@@ -5049,7 +5049,7 @@ const Vr = (...e) => re(Co(...e)), zt = (e, r, n) => {
|
|
|
5049
5049
|
"!hover:ds-text-neutrals-dark",
|
|
5050
5050
|
"!focus-visible:ds-ring-neutrals-black",
|
|
5051
5051
|
"!focus-visible:ds-border-neutrals-light"
|
|
5052
|
-
],
|
|
5052
|
+
], No = [
|
|
5053
5053
|
...Ut,
|
|
5054
5054
|
"ds-p-1",
|
|
5055
5055
|
"!ds-bg-neutrals-lighter",
|
|
@@ -5060,7 +5060,7 @@ const Vr = (...e) => re(Co(...e)), zt = (e, r, n) => {
|
|
|
5060
5060
|
"focus-visible:ds-ring-neutrals-black",
|
|
5061
5061
|
"!focus-visible:ds-border-neutrals-light",
|
|
5062
5062
|
"active:ds-border-neutrals-lighter"
|
|
5063
|
-
],
|
|
5063
|
+
], Ro = V(Ut, {
|
|
5064
5064
|
variants: {
|
|
5065
5065
|
variant: {
|
|
5066
5066
|
primary: [
|
|
@@ -5126,7 +5126,7 @@ const Vr = (...e) => re(Co(...e)), zt = (e, r, n) => {
|
|
|
5126
5126
|
]
|
|
5127
5127
|
},
|
|
5128
5128
|
disabled: {
|
|
5129
|
-
true:
|
|
5129
|
+
true: So,
|
|
5130
5130
|
false: []
|
|
5131
5131
|
}
|
|
5132
5132
|
},
|
|
@@ -5147,7 +5147,7 @@ const Vr = (...e) => re(Co(...e)), zt = (e, r, n) => {
|
|
|
5147
5147
|
class: "focus-visible:ds-ring-neutrals-black"
|
|
5148
5148
|
}
|
|
5149
5149
|
]
|
|
5150
|
-
}),
|
|
5150
|
+
}), Ao = (e, r, n) => e === "inline" && r === !0 ? Vr(No) : Vr(Ro({ variant: e, disabled: r }), n), Po = ({
|
|
5151
5151
|
variant: e = "primary",
|
|
5152
5152
|
text: r,
|
|
5153
5153
|
label: n = "",
|
|
@@ -5164,7 +5164,7 @@ const Vr = (...e) => re(Co(...e)), zt = (e, r, n) => {
|
|
|
5164
5164
|
{
|
|
5165
5165
|
"aria-disabled": t,
|
|
5166
5166
|
onClick: (p) => jr(p, t, o),
|
|
5167
|
-
className:
|
|
5167
|
+
className: Ao(e, t, s),
|
|
5168
5168
|
"aria-label": n,
|
|
5169
5169
|
...f,
|
|
5170
5170
|
children: /* @__PURE__ */ i.jsxs("div", { className: "ds-flex ds-flex-wrap ds-content-center ds-justify-center", children: [
|
|
@@ -5191,7 +5191,7 @@ const Vr = (...e) => re(Co(...e)), zt = (e, r, n) => {
|
|
|
5191
5191
|
)
|
|
5192
5192
|
] })
|
|
5193
5193
|
}
|
|
5194
|
-
) }),
|
|
5194
|
+
) }), ol = Po, Fo = ({
|
|
5195
5195
|
content: e = void 0,
|
|
5196
5196
|
iconName: r = void 0,
|
|
5197
5197
|
title: n = "",
|
|
@@ -5202,7 +5202,7 @@ const Vr = (...e) => re(Co(...e)), zt = (e, r, n) => {
|
|
|
5202
5202
|
"div",
|
|
5203
5203
|
{
|
|
5204
5204
|
...o,
|
|
5205
|
-
className:
|
|
5205
|
+
className: K(
|
|
5206
5206
|
"preflight ds-flex ds-flex-col ds-items-start ds-gap-6 ds-rounded-lg ds-border ds-border-neutrals-light ds-p-5",
|
|
5207
5207
|
s
|
|
5208
5208
|
),
|
|
@@ -5218,13 +5218,13 @@ const Vr = (...e) => re(Co(...e)), zt = (e, r, n) => {
|
|
|
5218
5218
|
altText: r
|
|
5219
5219
|
}
|
|
5220
5220
|
),
|
|
5221
|
-
/* @__PURE__ */ i.jsx(
|
|
5221
|
+
/* @__PURE__ */ i.jsx(qt, { size: "small", text: n, hasMarginBottom: !1 })
|
|
5222
5222
|
] }),
|
|
5223
5223
|
e && /* @__PURE__ */ i.jsx("div", { className: "ds-text-base", children: e }),
|
|
5224
5224
|
t && /* @__PURE__ */ i.jsx("div", { children: t })
|
|
5225
5225
|
]
|
|
5226
5226
|
}
|
|
5227
|
-
),
|
|
5227
|
+
), al = Fo, Oo = V(
|
|
5228
5228
|
[
|
|
5229
5229
|
"preflight",
|
|
5230
5230
|
"ds-h-4",
|
|
@@ -5252,7 +5252,7 @@ const Vr = (...e) => re(Co(...e)), zt = (e, r, n) => {
|
|
|
5252
5252
|
}
|
|
5253
5253
|
}
|
|
5254
5254
|
}
|
|
5255
|
-
), Gt = (e) =>
|
|
5255
|
+
), Gt = (e) => K(Oo(e)), _o = V(
|
|
5256
5256
|
["preflight", "ds-font-base", "!ds-font-sans", "ds-ml-2", "ds-text-base"],
|
|
5257
5257
|
{
|
|
5258
5258
|
variants: {
|
|
@@ -5262,7 +5262,46 @@ const Vr = (...e) => re(Co(...e)), zt = (e, r, n) => {
|
|
|
5262
5262
|
}
|
|
5263
5263
|
}
|
|
5264
5264
|
}
|
|
5265
|
-
), Yt = (e) =>
|
|
5265
|
+
), Yt = (e) => K(_o(e)), Zt = {
|
|
5266
|
+
variants: {
|
|
5267
|
+
state: {
|
|
5268
|
+
default: [
|
|
5269
|
+
"ds-border-neutrals",
|
|
5270
|
+
"ds-text-neutrals-darker",
|
|
5271
|
+
"focus:ds-border-acuity-blue",
|
|
5272
|
+
"focus:ds-ring-acuity-blue",
|
|
5273
|
+
"focus:ds-ring-offset-2",
|
|
5274
|
+
"focus:ds-ring-2"
|
|
5275
|
+
],
|
|
5276
|
+
error: [
|
|
5277
|
+
"ds-border-danger-red",
|
|
5278
|
+
"ds-text-danger-red-darkest",
|
|
5279
|
+
"focus:ds-border-danger-red",
|
|
5280
|
+
"focus:ds-ring-danger-red-dark",
|
|
5281
|
+
"focus:ds-ring-offset-2",
|
|
5282
|
+
"focus:ds-ring-2"
|
|
5283
|
+
],
|
|
5284
|
+
success: [
|
|
5285
|
+
"ds-border-success-green",
|
|
5286
|
+
"ds-text-neutrals-darker",
|
|
5287
|
+
"focus:ds-border-success-green",
|
|
5288
|
+
"focus:ds-ring-success-green-dark",
|
|
5289
|
+
"focus:ds-ring-offset-2",
|
|
5290
|
+
"focus:ds-ring-2"
|
|
5291
|
+
]
|
|
5292
|
+
},
|
|
5293
|
+
disabled: {
|
|
5294
|
+
true: [
|
|
5295
|
+
"!ds-border-neutrals",
|
|
5296
|
+
"!ds-text-neutrals-darker",
|
|
5297
|
+
"!ds-bg-neutrals-lighter",
|
|
5298
|
+
"focus:!ds-border-neutrals",
|
|
5299
|
+
"focus:!ds-ring-neutrals-dark",
|
|
5300
|
+
"ds-cursor-not-allowed"
|
|
5301
|
+
]
|
|
5302
|
+
}
|
|
5303
|
+
}
|
|
5304
|
+
}, Wo = ({
|
|
5266
5305
|
id: e,
|
|
5267
5306
|
label: r = "",
|
|
5268
5307
|
name: n = "",
|
|
@@ -5291,16 +5330,16 @@ const Vr = (...e) => re(Co(...e)), zt = (e, r, n) => {
|
|
|
5291
5330
|
}
|
|
5292
5331
|
),
|
|
5293
5332
|
/* @__PURE__ */ i.jsx("label", { htmlFor: e, className: Yt({ disabled: s }), children: r })
|
|
5294
|
-
] }),
|
|
5295
|
-
function
|
|
5333
|
+
] }), il = Wo, De = "large", Ye = "medium", Ze = "small", qe = "extra-large", Et = "h1", Io = "h2", Vo = "h3", Do = "div";
|
|
5334
|
+
function Ho(e) {
|
|
5296
5335
|
return {
|
|
5297
5336
|
[De]: Et,
|
|
5298
|
-
[Ye]:
|
|
5299
|
-
[Ze]:
|
|
5300
|
-
[qe]:
|
|
5337
|
+
[Ye]: Io,
|
|
5338
|
+
[Ze]: Vo,
|
|
5339
|
+
[qe]: Do
|
|
5301
5340
|
}[e] || Et;
|
|
5302
5341
|
}
|
|
5303
|
-
const
|
|
5342
|
+
const Bo = V("preflight !ds-font-sans", {
|
|
5304
5343
|
variants: {
|
|
5305
5344
|
size: {
|
|
5306
5345
|
[Ze]: "ds-mb-3",
|
|
@@ -5309,7 +5348,7 @@ const Do = H("preflight !ds-font-sans", {
|
|
|
5309
5348
|
[qe]: "ds-mb-6"
|
|
5310
5349
|
}
|
|
5311
5350
|
}
|
|
5312
|
-
}), vr =
|
|
5351
|
+
}), vr = V("ds-text-neutrals-darker !ds-font-sans", {
|
|
5313
5352
|
variants: {
|
|
5314
5353
|
size: {
|
|
5315
5354
|
[Ze]: "ds-text-xl ds-font-semibold",
|
|
@@ -5318,7 +5357,7 @@ const Do = H("preflight !ds-font-sans", {
|
|
|
5318
5357
|
[qe]: "ds-text-4xl ds-font-semibold"
|
|
5319
5358
|
}
|
|
5320
5359
|
}
|
|
5321
|
-
}),
|
|
5360
|
+
}), zo = V("ds-mt-0 ds-font-bold ds-text-neutrals-dark", {
|
|
5322
5361
|
variants: {
|
|
5323
5362
|
size: {
|
|
5324
5363
|
[Ze]: "ds-mb-1 ds-text-sm",
|
|
@@ -5327,7 +5366,7 @@ const Do = H("preflight !ds-font-sans", {
|
|
|
5327
5366
|
[qe]: "ds-mb-3 ds-text-base"
|
|
5328
5367
|
}
|
|
5329
5368
|
}
|
|
5330
|
-
}),
|
|
5369
|
+
}), Uo = V("ds-mb-0 ds-text-neutrals-dark", {
|
|
5331
5370
|
variants: {
|
|
5332
5371
|
size: {
|
|
5333
5372
|
[Ze]: "ds-mt-1 ds-text-base",
|
|
@@ -5336,7 +5375,7 @@ const Do = H("preflight !ds-font-sans", {
|
|
|
5336
5375
|
[qe]: "ds-mt-3 ds-text-base"
|
|
5337
5376
|
}
|
|
5338
5377
|
}
|
|
5339
|
-
}),
|
|
5378
|
+
}), Go = V("ds-text-neutrals-light", {
|
|
5340
5379
|
variants: {
|
|
5341
5380
|
size: {
|
|
5342
5381
|
[Ze]: "ds-mt-2",
|
|
@@ -5345,7 +5384,7 @@ const Do = H("preflight !ds-font-sans", {
|
|
|
5345
5384
|
[qe]: "ds-mt-3"
|
|
5346
5385
|
}
|
|
5347
5386
|
}
|
|
5348
|
-
}),
|
|
5387
|
+
}), Yo = ({
|
|
5349
5388
|
size: e = De,
|
|
5350
5389
|
className: r = "",
|
|
5351
5390
|
text: n = "",
|
|
@@ -5356,19 +5395,19 @@ const Do = H("preflight !ds-font-sans", {
|
|
|
5356
5395
|
headingTag: d,
|
|
5357
5396
|
...c
|
|
5358
5397
|
}) => {
|
|
5359
|
-
const u = t ? /* @__PURE__ */ i.jsx("p", { className:
|
|
5398
|
+
const u = t ? /* @__PURE__ */ i.jsx("p", { className: zo({ size: e }), children: t }) : null, f = s ? /* @__PURE__ */ i.jsx("p", { className: Uo({ size: e }), children: s }) : null, p = o ? /* @__PURE__ */ i.jsx("hr", { className: Go({ size: e }) }) : null, m = a ? Bo({ size: e }) : "preflight", v = {
|
|
5360
5399
|
div: /* @__PURE__ */ i.jsx("div", { className: vr({ size: e }), children: n }),
|
|
5361
5400
|
h3: /* @__PURE__ */ i.jsx("h3", { className: vr({ size: e }), children: n }),
|
|
5362
5401
|
h2: /* @__PURE__ */ i.jsx("h2", { className: vr({ size: e }), children: n }),
|
|
5363
5402
|
h1: /* @__PURE__ */ i.jsx("h1", { className: vr({ size: e }), children: n })
|
|
5364
5403
|
};
|
|
5365
|
-
return /* @__PURE__ */ i.jsxs("div", { className:
|
|
5404
|
+
return /* @__PURE__ */ i.jsxs("div", { className: K(m, r), ...c, children: [
|
|
5366
5405
|
u,
|
|
5367
|
-
v[d ||
|
|
5406
|
+
v[d || Ho(e)],
|
|
5368
5407
|
f,
|
|
5369
5408
|
p
|
|
5370
5409
|
] });
|
|
5371
|
-
},
|
|
5410
|
+
}, qt = Yo, Zo = ({
|
|
5372
5411
|
label: e = "",
|
|
5373
5412
|
name: r,
|
|
5374
5413
|
id: n,
|
|
@@ -5393,7 +5432,7 @@ const Do = H("preflight !ds-font-sans", {
|
|
|
5393
5432
|
}
|
|
5394
5433
|
),
|
|
5395
5434
|
/* @__PURE__ */ i.jsx("label", { htmlFor: n, className: Yt({ disabled: t }), children: e })
|
|
5396
|
-
] }),
|
|
5435
|
+
] }), ll = Zo, qo = V(
|
|
5397
5436
|
[
|
|
5398
5437
|
"preflight",
|
|
5399
5438
|
"!ds-font-sans",
|
|
@@ -5426,18 +5465,18 @@ const Do = H("preflight !ds-font-sans", {
|
|
|
5426
5465
|
}
|
|
5427
5466
|
}
|
|
5428
5467
|
}
|
|
5429
|
-
),
|
|
5468
|
+
), Ko = ({
|
|
5430
5469
|
text: e,
|
|
5431
5470
|
href: r,
|
|
5432
5471
|
type: n = "default",
|
|
5433
5472
|
iconName: t,
|
|
5434
5473
|
...s
|
|
5435
|
-
}) => /* @__PURE__ */ i.jsxs("a", { href: r, type: n, className:
|
|
5474
|
+
}) => /* @__PURE__ */ i.jsxs("a", { href: r, type: n, className: K(qo({ type: n })), ...s, children: [
|
|
5436
5475
|
e,
|
|
5437
5476
|
t && /* @__PURE__ */ i.jsx(Ve, { altText: e, name: t, size: "small" })
|
|
5438
|
-
] }),
|
|
5439
|
-
var
|
|
5440
|
-
let
|
|
5477
|
+
] }), dl = Ko;
|
|
5478
|
+
var Jo = Object.defineProperty, Xo = (e, r, n) => r in e ? Jo(e, r, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[r] = n, Pr = (e, r, n) => (Xo(e, typeof r != "symbol" ? r + "" : r, n), n);
|
|
5479
|
+
let Qo = class {
|
|
5441
5480
|
constructor() {
|
|
5442
5481
|
Pr(this, "current", this.detect()), Pr(this, "handoffState", "pending"), Pr(this, "currentId", 0);
|
|
5443
5482
|
}
|
|
@@ -5465,7 +5504,7 @@ let Jo = class {
|
|
|
5465
5504
|
get isHandoffComplete() {
|
|
5466
5505
|
return this.handoffState === "complete";
|
|
5467
5506
|
}
|
|
5468
|
-
}, Ie = new
|
|
5507
|
+
}, Ie = new Qo();
|
|
5469
5508
|
function Jr(e) {
|
|
5470
5509
|
return Ie.isServer ? null : e instanceof Node ? e.ownerDocument : e != null && e.hasOwnProperty("current") && e.current instanceof Node ? e.current.ownerDocument : document;
|
|
5471
5510
|
}
|
|
@@ -5518,7 +5557,7 @@ function Xr() {
|
|
|
5518
5557
|
return oe(() => () => e.dispose(), [e]), e;
|
|
5519
5558
|
}
|
|
5520
5559
|
let q = (e, r) => {
|
|
5521
|
-
Ie.isServer ? oe(e, r) :
|
|
5560
|
+
Ie.isServer ? oe(e, r) : Dn(e, r);
|
|
5522
5561
|
};
|
|
5523
5562
|
function Ce(e) {
|
|
5524
5563
|
let r = R(e);
|
|
@@ -5529,9 +5568,9 @@ function Ce(e) {
|
|
|
5529
5568
|
let P = function(e) {
|
|
5530
5569
|
let r = Ce(e);
|
|
5531
5570
|
return j.useCallback((...n) => r.current(...n), [r]);
|
|
5532
|
-
},
|
|
5533
|
-
function
|
|
5534
|
-
return
|
|
5571
|
+
}, ea = ce(void 0);
|
|
5572
|
+
function ra() {
|
|
5573
|
+
return re(ea);
|
|
5535
5574
|
}
|
|
5536
5575
|
function ar(...e) {
|
|
5537
5576
|
return Array.from(new Set(e.flatMap((r) => typeof r == "string" ? r.split(" ") : []))).filter(Boolean).join(" ");
|
|
@@ -5546,8 +5585,8 @@ function z(e, r, ...n) {
|
|
|
5546
5585
|
}
|
|
5547
5586
|
var Cr = ((e) => (e[e.None = 0] = "None", e[e.RenderStrategy = 1] = "RenderStrategy", e[e.Static = 2] = "Static", e))(Cr || {}), Fe = ((e) => (e[e.Unmount = 0] = "Unmount", e[e.Hidden = 1] = "Hidden", e))(Fe || {});
|
|
5548
5587
|
function ve({ ourProps: e, theirProps: r, slot: n, defaultTag: t, features: s, visible: o = !0, name: a, mergeRefs: d }) {
|
|
5549
|
-
d = d != null ? d :
|
|
5550
|
-
let c =
|
|
5588
|
+
d = d != null ? d : ta;
|
|
5589
|
+
let c = Kt(r, e);
|
|
5551
5590
|
if (o)
|
|
5552
5591
|
return br(c, n, t, a, d);
|
|
5553
5592
|
let u = s != null ? s : 0;
|
|
@@ -5571,37 +5610,37 @@ function br(e, r = {}, n, t, s) {
|
|
|
5571
5610
|
"className" in c && c.className && typeof c.className == "function" && (c.className = c.className(r)), c["aria-labelledby"] && c["aria-labelledby"] === c.id && (c["aria-labelledby"] = void 0);
|
|
5572
5611
|
let p = {};
|
|
5573
5612
|
if (r) {
|
|
5574
|
-
let
|
|
5613
|
+
let m = !1, v = [];
|
|
5575
5614
|
for (let [x, C] of Object.entries(r))
|
|
5576
|
-
typeof C == "boolean" && (
|
|
5577
|
-
if (
|
|
5615
|
+
typeof C == "boolean" && (m = !0), C === !0 && v.push(x.replace(/([A-Z])/g, (b) => `-${b.toLowerCase()}`));
|
|
5616
|
+
if (m) {
|
|
5578
5617
|
p["data-headlessui-state"] = v.join(" ");
|
|
5579
5618
|
for (let x of v)
|
|
5580
5619
|
p[`data-${x}`] = "";
|
|
5581
5620
|
}
|
|
5582
5621
|
}
|
|
5583
5622
|
if (o === de && (Object.keys(Ue(c)).length > 0 || Object.keys(Ue(p)).length > 0))
|
|
5584
|
-
if (!
|
|
5623
|
+
if (!Bn(f) || Array.isArray(f) && f.length > 1) {
|
|
5585
5624
|
if (Object.keys(Ue(c)).length > 0)
|
|
5586
|
-
throw new Error(['Passing props on "Fragment"!', "", `The current component <${t} /> is rendering a "Fragment".`, "However we need to passthrough the following props:", Object.keys(Ue(c)).concat(Object.keys(Ue(p))).map((
|
|
5587
|
-
`), "", "You can apply a few solutions:", ['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".', "Render a single element as the child so that we can forward the props onto that element."].map((
|
|
5625
|
+
throw new Error(['Passing props on "Fragment"!', "", `The current component <${t} /> is rendering a "Fragment".`, "However we need to passthrough the following props:", Object.keys(Ue(c)).concat(Object.keys(Ue(p))).map((m) => ` - ${m}`).join(`
|
|
5626
|
+
`), "", "You can apply a few solutions:", ['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".', "Render a single element as the child so that we can forward the props onto that element."].map((m) => ` - ${m}`).join(`
|
|
5588
5627
|
`)].join(`
|
|
5589
5628
|
`));
|
|
5590
5629
|
} else {
|
|
5591
|
-
let
|
|
5630
|
+
let m = f.props, v = m == null ? void 0 : m.className, x = typeof v == "function" ? (...w) => ar(v(...w), c.className) : ar(v, c.className), C = x ? { className: x } : {}, b = Kt(f.props, Ue(Fr(c, ["ref"])));
|
|
5592
5631
|
for (let w in p)
|
|
5593
5632
|
w in b && delete p[w];
|
|
5594
|
-
return
|
|
5633
|
+
return zn(f, Object.assign({}, b, p, u, { ref: s(f.ref, u.ref) }, C));
|
|
5595
5634
|
}
|
|
5596
|
-
return
|
|
5635
|
+
return Un(o, Object.assign({}, Fr(c, ["ref"]), o !== de && u, o !== de && p), f);
|
|
5597
5636
|
}
|
|
5598
|
-
function
|
|
5637
|
+
function ta(...e) {
|
|
5599
5638
|
return e.every((r) => r == null) ? void 0 : (r) => {
|
|
5600
5639
|
for (let n of e)
|
|
5601
5640
|
n != null && (typeof n == "function" ? n(r) : n.current = r);
|
|
5602
5641
|
};
|
|
5603
5642
|
}
|
|
5604
|
-
function
|
|
5643
|
+
function Kt(...e) {
|
|
5605
5644
|
if (e.length === 0)
|
|
5606
5645
|
return {};
|
|
5607
5646
|
if (e.length === 1)
|
|
@@ -5629,7 +5668,7 @@ function qt(...e) {
|
|
|
5629
5668
|
}
|
|
5630
5669
|
function ue(e) {
|
|
5631
5670
|
var r;
|
|
5632
|
-
return Object.assign(
|
|
5671
|
+
return Object.assign(Hn(e), { displayName: (r = e.displayName) != null ? r : e.name });
|
|
5633
5672
|
}
|
|
5634
5673
|
function Ue(e) {
|
|
5635
5674
|
let r = Object.assign({}, e);
|
|
@@ -5643,24 +5682,24 @@ function Fr(e, r = []) {
|
|
|
5643
5682
|
t in n && delete n[t];
|
|
5644
5683
|
return n;
|
|
5645
5684
|
}
|
|
5646
|
-
let
|
|
5685
|
+
let na = "div";
|
|
5647
5686
|
var wr = ((e) => (e[e.None = 1] = "None", e[e.Focusable = 2] = "Focusable", e[e.Hidden = 4] = "Hidden", e))(wr || {});
|
|
5648
|
-
function
|
|
5687
|
+
function sa(e, r) {
|
|
5649
5688
|
var n;
|
|
5650
5689
|
let { features: t = 1, ...s } = e, o = { ref: r, "aria-hidden": (t & 2) === 2 ? !0 : (n = s["aria-hidden"]) != null ? n : void 0, hidden: (t & 4) === 4 ? !0 : void 0, style: { position: "fixed", top: 1, left: 1, width: 1, height: 0, padding: 0, margin: -1, overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0", ...(t & 4) === 4 && (t & 2) !== 2 && { display: "none" } } };
|
|
5651
|
-
return ve({ ourProps: o, theirProps: s, slot: {}, defaultTag:
|
|
5690
|
+
return ve({ ourProps: o, theirProps: s, slot: {}, defaultTag: na, name: "Hidden" });
|
|
5652
5691
|
}
|
|
5653
|
-
let Dr = ue(
|
|
5654
|
-
function
|
|
5655
|
-
let r =
|
|
5692
|
+
let Dr = ue(sa), oa = ce(null);
|
|
5693
|
+
function aa({ children: e }) {
|
|
5694
|
+
let r = re(oa);
|
|
5656
5695
|
if (!r)
|
|
5657
5696
|
return j.createElement(j.Fragment, null, e);
|
|
5658
5697
|
let { target: n } = r;
|
|
5659
5698
|
return n ? St(j.createElement(j.Fragment, null, e), n) : null;
|
|
5660
5699
|
}
|
|
5661
|
-
let
|
|
5662
|
-
function
|
|
5663
|
-
return Object.assign(e, { [
|
|
5700
|
+
let Jt = Symbol();
|
|
5701
|
+
function ia(e, r = !0) {
|
|
5702
|
+
return Object.assign(e, { [Jt]: r });
|
|
5664
5703
|
}
|
|
5665
5704
|
function we(...e) {
|
|
5666
5705
|
let r = R(e);
|
|
@@ -5671,19 +5710,19 @@ function we(...e) {
|
|
|
5671
5710
|
for (let s of r.current)
|
|
5672
5711
|
s != null && (typeof s == "function" ? s(t) : s.current = t);
|
|
5673
5712
|
});
|
|
5674
|
-
return e.every((t) => t == null || (t == null ? void 0 : t[
|
|
5713
|
+
return e.every((t) => t == null || (t == null ? void 0 : t[Jt])) ? void 0 : n;
|
|
5675
5714
|
}
|
|
5676
5715
|
let Qr = ce(null);
|
|
5677
5716
|
Qr.displayName = "DescriptionContext";
|
|
5678
|
-
function
|
|
5679
|
-
let e =
|
|
5717
|
+
function Xt() {
|
|
5718
|
+
let e = re(Qr);
|
|
5680
5719
|
if (e === null) {
|
|
5681
5720
|
let r = new Error("You used a <Description /> component, but it is not inside a relevant parent.");
|
|
5682
|
-
throw Error.captureStackTrace && Error.captureStackTrace(r,
|
|
5721
|
+
throw Error.captureStackTrace && Error.captureStackTrace(r, Xt), r;
|
|
5683
5722
|
}
|
|
5684
5723
|
return e;
|
|
5685
5724
|
}
|
|
5686
|
-
function
|
|
5725
|
+
function la() {
|
|
5687
5726
|
let [e, r] = ge([]);
|
|
5688
5727
|
return [e.length > 0 ? e.join(" ") : void 0, ae(() => function(n) {
|
|
5689
5728
|
let t = P((o) => (r((a) => [...a, o]), () => r((a) => {
|
|
@@ -5693,19 +5732,19 @@ function aa() {
|
|
|
5693
5732
|
return j.createElement(Qr.Provider, { value: s }, n.children);
|
|
5694
5733
|
}, [r])];
|
|
5695
5734
|
}
|
|
5696
|
-
let
|
|
5697
|
-
function
|
|
5698
|
-
let n = yr(), t =
|
|
5735
|
+
let da = "p";
|
|
5736
|
+
function ca(e, r) {
|
|
5737
|
+
let n = yr(), t = ra(), { id: s = `headlessui-description-${n}`, ...o } = e, a = Xt(), d = we(r);
|
|
5699
5738
|
q(() => a.register(s), [s, a.register]);
|
|
5700
5739
|
let c = t || !1, u = ae(() => ({ ...a.slot, disabled: c }), [a.slot, c]), f = { ref: d, ...a.props, id: s };
|
|
5701
|
-
return ve({ ourProps: f, theirProps: o, slot: u, defaultTag:
|
|
5740
|
+
return ve({ ourProps: f, theirProps: o, slot: u, defaultTag: da, name: a.name || "Description" });
|
|
5702
5741
|
}
|
|
5703
|
-
let
|
|
5704
|
-
var
|
|
5705
|
-
let
|
|
5742
|
+
let ua = ue(ca), fa = Object.assign(ua, {});
|
|
5743
|
+
var Qt = ((e) => (e.Space = " ", e.Enter = "Enter", e.Escape = "Escape", e.Backspace = "Backspace", e.Delete = "Delete", e.ArrowLeft = "ArrowLeft", e.ArrowUp = "ArrowUp", e.ArrowRight = "ArrowRight", e.ArrowDown = "ArrowDown", e.Home = "Home", e.End = "End", e.PageUp = "PageUp", e.PageDown = "PageDown", e.Tab = "Tab", e))(Qt || {});
|
|
5744
|
+
let pa = ce(() => {
|
|
5706
5745
|
});
|
|
5707
|
-
function
|
|
5708
|
-
return j.createElement(
|
|
5746
|
+
function ha({ value: e, children: r }) {
|
|
5747
|
+
return j.createElement(pa.Provider, { value: e }, r);
|
|
5709
5748
|
}
|
|
5710
5749
|
let Hr = /* @__PURE__ */ new Map(), ir = /* @__PURE__ */ new Map();
|
|
5711
5750
|
function Lt(e) {
|
|
@@ -5721,7 +5760,7 @@ function $t(e) {
|
|
|
5721
5760
|
let t = Hr.get(e);
|
|
5722
5761
|
t && (t["aria-hidden"] === null ? e.removeAttribute("aria-hidden") : e.setAttribute("aria-hidden", t["aria-hidden"]), e.inert = t.inert, Hr.delete(e));
|
|
5723
5762
|
}
|
|
5724
|
-
function
|
|
5763
|
+
function ma({ allowed: e, disallowed: r } = {}, n = !0) {
|
|
5725
5764
|
q(() => {
|
|
5726
5765
|
var t, s;
|
|
5727
5766
|
if (!n)
|
|
@@ -5746,7 +5785,7 @@ function pa({ allowed: e, disallowed: r } = {}, n = !0) {
|
|
|
5746
5785
|
return o.dispose;
|
|
5747
5786
|
}, [n, e, r]);
|
|
5748
5787
|
}
|
|
5749
|
-
function
|
|
5788
|
+
function en(e, r, n = !0) {
|
|
5750
5789
|
let t = Ce((s) => {
|
|
5751
5790
|
let o = s.getBoundingClientRect();
|
|
5752
5791
|
o.x === 0 && o.y === 0 && o.width === 0 && o.height === 0 && r();
|
|
@@ -5769,16 +5808,16 @@ function Qt(e, r, n = !0) {
|
|
|
5769
5808
|
return () => o.dispose();
|
|
5770
5809
|
}, [e, t, n]);
|
|
5771
5810
|
}
|
|
5772
|
-
let Br = ["[contentEditable=true]", "[tabindex]", "a[href]", "area[href]", "button:not([disabled])", "iframe", "input:not([disabled])", "select:not([disabled])", "textarea:not([disabled])"].map((e) => `${e}:not([tabindex='-1'])`).join(","),
|
|
5773
|
-
var Te = ((e) => (e[e.First = 1] = "First", e[e.Previous = 2] = "Previous", e[e.Next = 4] = "Next", e[e.Last = 8] = "Last", e[e.WrapAround = 16] = "WrapAround", e[e.NoScroll = 32] = "NoScroll", e[e.AutoFocus = 64] = "AutoFocus", e))(Te || {}), zr = ((e) => (e[e.Error = 0] = "Error", e[e.Overflow = 1] = "Overflow", e[e.Success = 2] = "Success", e[e.Underflow = 3] = "Underflow", e))(zr || {}),
|
|
5774
|
-
function
|
|
5811
|
+
let Br = ["[contentEditable=true]", "[tabindex]", "a[href]", "area[href]", "button:not([disabled])", "iframe", "input:not([disabled])", "select:not([disabled])", "textarea:not([disabled])"].map((e) => `${e}:not([tabindex='-1'])`).join(","), ga = ["[data-autofocus]"].map((e) => `${e}:not([tabindex='-1'])`).join(",");
|
|
5812
|
+
var Te = ((e) => (e[e.First = 1] = "First", e[e.Previous = 2] = "Previous", e[e.Next = 4] = "Next", e[e.Last = 8] = "Last", e[e.WrapAround = 16] = "WrapAround", e[e.NoScroll = 32] = "NoScroll", e[e.AutoFocus = 64] = "AutoFocus", e))(Te || {}), zr = ((e) => (e[e.Error = 0] = "Error", e[e.Overflow = 1] = "Overflow", e[e.Success = 2] = "Success", e[e.Underflow = 3] = "Underflow", e))(zr || {}), va = ((e) => (e[e.Previous = -1] = "Previous", e[e.Next = 1] = "Next", e))(va || {});
|
|
5813
|
+
function ba(e = document.body) {
|
|
5775
5814
|
return e == null ? [] : Array.from(e.querySelectorAll(Br)).sort((r, n) => Math.sign((r.tabIndex || Number.MAX_SAFE_INTEGER) - (n.tabIndex || Number.MAX_SAFE_INTEGER)));
|
|
5776
5815
|
}
|
|
5777
|
-
function
|
|
5778
|
-
return e == null ? [] : Array.from(e.querySelectorAll(
|
|
5816
|
+
function xa(e = document.body) {
|
|
5817
|
+
return e == null ? [] : Array.from(e.querySelectorAll(ga)).sort((r, n) => Math.sign((r.tabIndex || Number.MAX_SAFE_INTEGER) - (n.tabIndex || Number.MAX_SAFE_INTEGER)));
|
|
5779
5818
|
}
|
|
5780
|
-
var
|
|
5781
|
-
function
|
|
5819
|
+
var rn = ((e) => (e[e.Strict = 0] = "Strict", e[e.Loose = 1] = "Loose", e))(rn || {});
|
|
5820
|
+
function Ca(e, r = 0) {
|
|
5782
5821
|
var n;
|
|
5783
5822
|
return e === ((n = Jr(e)) == null ? void 0 : n.body) ? !1 : z(r, { 0() {
|
|
5784
5823
|
return e.matches(Br);
|
|
@@ -5792,7 +5831,7 @@ function ba(e, r = 0) {
|
|
|
5792
5831
|
return !1;
|
|
5793
5832
|
} });
|
|
5794
5833
|
}
|
|
5795
|
-
var
|
|
5834
|
+
var wa = ((e) => (e[e.Keyboard = 0] = "Keyboard", e[e.Mouse = 1] = "Mouse", e))(wa || {});
|
|
5796
5835
|
typeof window != "undefined" && typeof document != "undefined" && (document.addEventListener("keydown", (e) => {
|
|
5797
5836
|
e.metaKey || e.altKey || e.ctrlKey || (document.documentElement.dataset.headlessuiFocusVisible = "");
|
|
5798
5837
|
}, !0), document.addEventListener("click", (e) => {
|
|
@@ -5801,12 +5840,12 @@ typeof window != "undefined" && typeof document != "undefined" && (document.addE
|
|
|
5801
5840
|
function Me(e) {
|
|
5802
5841
|
e == null || e.focus({ preventScroll: !0 });
|
|
5803
5842
|
}
|
|
5804
|
-
let
|
|
5805
|
-
function
|
|
5843
|
+
let ka = ["textarea", "input"].join(",");
|
|
5844
|
+
function ya(e) {
|
|
5806
5845
|
var r, n;
|
|
5807
|
-
return (n = (r = e == null ? void 0 : e.matches) == null ? void 0 : r.call(e,
|
|
5846
|
+
return (n = (r = e == null ? void 0 : e.matches) == null ? void 0 : r.call(e, ka)) != null ? n : !1;
|
|
5808
5847
|
}
|
|
5809
|
-
function
|
|
5848
|
+
function ja(e, r = (n) => n) {
|
|
5810
5849
|
return e.slice().sort((n, t) => {
|
|
5811
5850
|
let s = r(n), o = r(t);
|
|
5812
5851
|
if (s === null || o === null)
|
|
@@ -5816,7 +5855,7 @@ function ka(e, r = (n) => n) {
|
|
|
5816
5855
|
});
|
|
5817
5856
|
}
|
|
5818
5857
|
function lr(e, r, { sorted: n = !0, relativeTo: t = null, skipElements: s = [] } = {}) {
|
|
5819
|
-
let o = Array.isArray(e) ? e.length > 0 ? e[0].ownerDocument : document : e.ownerDocument, a = Array.isArray(e) ? n ?
|
|
5858
|
+
let o = Array.isArray(e) ? e.length > 0 ? e[0].ownerDocument : document : e.ownerDocument, a = Array.isArray(e) ? n ? ja(e) : e : r & 64 ? xa(e) : ba(e);
|
|
5820
5859
|
s.length > 0 && a.length > 1 && (a = a.filter((v) => !s.some((x) => x != null && "current" in x ? (x == null ? void 0 : x.current) === v : x === v))), t = t != null ? t : o.activeElement;
|
|
5821
5860
|
let d = (() => {
|
|
5822
5861
|
if (r & 5)
|
|
@@ -5834,7 +5873,7 @@ function lr(e, r, { sorted: n = !0, relativeTo: t = null, skipElements: s = [] }
|
|
|
5834
5873
|
if (r & 8)
|
|
5835
5874
|
return a.length - 1;
|
|
5836
5875
|
throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last");
|
|
5837
|
-
})(), u = r & 32 ? { preventScroll: !0 } : {}, f = 0, p = a.length,
|
|
5876
|
+
})(), u = r & 32 ? { preventScroll: !0 } : {}, f = 0, p = a.length, m;
|
|
5838
5877
|
do {
|
|
5839
5878
|
if (f >= p || f + p <= 0)
|
|
5840
5879
|
return 0;
|
|
@@ -5847,18 +5886,18 @@ function lr(e, r, { sorted: n = !0, relativeTo: t = null, skipElements: s = [] }
|
|
|
5847
5886
|
if (v >= p)
|
|
5848
5887
|
return 1;
|
|
5849
5888
|
}
|
|
5850
|
-
|
|
5851
|
-
} while (
|
|
5852
|
-
return r & 6 &&
|
|
5889
|
+
m = a[v], m == null || m.focus(u), f += d;
|
|
5890
|
+
} while (m !== o.activeElement);
|
|
5891
|
+
return r & 6 && ya(m) && m.select(), 2;
|
|
5853
5892
|
}
|
|
5854
|
-
function
|
|
5893
|
+
function tn() {
|
|
5855
5894
|
return /iPhone/gi.test(window.navigator.platform) || /Mac/gi.test(window.navigator.platform) && window.navigator.maxTouchPoints > 0;
|
|
5856
5895
|
}
|
|
5857
|
-
function
|
|
5896
|
+
function Ea() {
|
|
5858
5897
|
return /Android/gi.test(window.navigator.userAgent);
|
|
5859
5898
|
}
|
|
5860
|
-
function
|
|
5861
|
-
return
|
|
5899
|
+
function La() {
|
|
5900
|
+
return tn() || Ea();
|
|
5862
5901
|
}
|
|
5863
5902
|
function xr(e, r, n) {
|
|
5864
5903
|
let t = Ce(r);
|
|
@@ -5869,7 +5908,7 @@ function xr(e, r, n) {
|
|
|
5869
5908
|
return document.addEventListener(e, s, n), () => document.removeEventListener(e, s, n);
|
|
5870
5909
|
}, [e, n]);
|
|
5871
5910
|
}
|
|
5872
|
-
function
|
|
5911
|
+
function nn(e, r, n) {
|
|
5873
5912
|
let t = Ce(r);
|
|
5874
5913
|
oe(() => {
|
|
5875
5914
|
function s(o) {
|
|
@@ -5878,7 +5917,7 @@ function tn(e, r, n) {
|
|
|
5878
5917
|
return window.addEventListener(e, s, n), () => window.removeEventListener(e, s, n);
|
|
5879
5918
|
}, [e, n]);
|
|
5880
5919
|
}
|
|
5881
|
-
function
|
|
5920
|
+
function $a(e, r, n = !0) {
|
|
5882
5921
|
let t = R(!1);
|
|
5883
5922
|
oe(() => {
|
|
5884
5923
|
requestAnimationFrame(() => {
|
|
@@ -5901,7 +5940,7 @@ function Ea(e, r, n = !0) {
|
|
|
5901
5940
|
if (p != null && p.contains(c) || a.composed && a.composedPath().includes(p))
|
|
5902
5941
|
return;
|
|
5903
5942
|
}
|
|
5904
|
-
return !
|
|
5943
|
+
return !Ca(c, rn.Loose) && c.tabIndex !== -1 && a.preventDefault(), r(a, c);
|
|
5905
5944
|
}
|
|
5906
5945
|
let o = R(null);
|
|
5907
5946
|
xr("pointerdown", (a) => {
|
|
@@ -5911,13 +5950,13 @@ function Ea(e, r, n = !0) {
|
|
|
5911
5950
|
var d, c;
|
|
5912
5951
|
t.current && (o.current = ((c = (d = a.composedPath) == null ? void 0 : d.call(a)) == null ? void 0 : c[0]) || a.target);
|
|
5913
5952
|
}, !0), xr("click", (a) => {
|
|
5914
|
-
|
|
5915
|
-
}, !0), xr("touchend", (a) => s(a, () => a.target instanceof HTMLElement ? a.target : null), !0),
|
|
5953
|
+
La() || o.current && (s(a, () => o.current), o.current = null);
|
|
5954
|
+
}, !0), xr("touchend", (a) => s(a, () => a.target instanceof HTMLElement ? a.target : null), !0), nn("blur", (a) => s(a, () => window.document.activeElement instanceof HTMLIFrameElement ? window.document.activeElement : null), !0);
|
|
5916
5955
|
}
|
|
5917
5956
|
function dr(...e) {
|
|
5918
5957
|
return ae(() => Jr(...e), [...e]);
|
|
5919
5958
|
}
|
|
5920
|
-
function
|
|
5959
|
+
function sn(e, r, n, t) {
|
|
5921
5960
|
let s = Ce(n);
|
|
5922
5961
|
oe(() => {
|
|
5923
5962
|
e = e != null ? e : window;
|
|
@@ -5927,10 +5966,10 @@ function nn(e, r, n, t) {
|
|
|
5927
5966
|
return e.addEventListener(r, o, t), () => e.removeEventListener(r, o, t);
|
|
5928
5967
|
}, [e, r, t]);
|
|
5929
5968
|
}
|
|
5930
|
-
function
|
|
5931
|
-
return
|
|
5969
|
+
function Ta(e) {
|
|
5970
|
+
return Gn(e.subscribe, e.getSnapshot, e.getSnapshot);
|
|
5932
5971
|
}
|
|
5933
|
-
function
|
|
5972
|
+
function Ma(e, r) {
|
|
5934
5973
|
let n = e(), t = /* @__PURE__ */ new Set();
|
|
5935
5974
|
return { getSnapshot() {
|
|
5936
5975
|
return n;
|
|
@@ -5941,7 +5980,7 @@ function $a(e, r) {
|
|
|
5941
5980
|
a && (n = a, t.forEach((d) => d()));
|
|
5942
5981
|
} };
|
|
5943
5982
|
}
|
|
5944
|
-
function
|
|
5983
|
+
function Sa() {
|
|
5945
5984
|
let e;
|
|
5946
5985
|
return { before({ doc: r }) {
|
|
5947
5986
|
var n;
|
|
@@ -5952,8 +5991,8 @@ function Ta() {
|
|
|
5952
5991
|
n.style(t, "paddingRight", `${o}px`);
|
|
5953
5992
|
} };
|
|
5954
5993
|
}
|
|
5955
|
-
function
|
|
5956
|
-
return
|
|
5994
|
+
function Na() {
|
|
5995
|
+
return tn() ? { before({ doc: e, d: r, meta: n }) {
|
|
5957
5996
|
function t(s) {
|
|
5958
5997
|
return n.containers.flatMap((o) => o()).some((o) => o.contains(s));
|
|
5959
5998
|
}
|
|
@@ -6003,18 +6042,18 @@ function Ma() {
|
|
|
6003
6042
|
});
|
|
6004
6043
|
} } : {};
|
|
6005
6044
|
}
|
|
6006
|
-
function
|
|
6045
|
+
function Ra() {
|
|
6007
6046
|
return { before({ doc: e, d: r }) {
|
|
6008
6047
|
r.style(e.documentElement, "overflow", "hidden");
|
|
6009
6048
|
} };
|
|
6010
6049
|
}
|
|
6011
|
-
function
|
|
6050
|
+
function Aa(e) {
|
|
6012
6051
|
let r = {};
|
|
6013
6052
|
for (let n of e)
|
|
6014
6053
|
Object.assign(r, n(r));
|
|
6015
6054
|
return r;
|
|
6016
6055
|
}
|
|
6017
|
-
let
|
|
6056
|
+
let We = Ma(() => /* @__PURE__ */ new Map(), { PUSH(e, r) {
|
|
6018
6057
|
var n;
|
|
6019
6058
|
let t = (n = this.get(e)) != null ? n : { doc: e, count: 0, d: Oe(), meta: /* @__PURE__ */ new Set() };
|
|
6020
6059
|
return t.count++, t.meta.add(r), this.set(e, t), this;
|
|
@@ -6022,31 +6061,31 @@ let _e = $a(() => /* @__PURE__ */ new Map(), { PUSH(e, r) {
|
|
|
6022
6061
|
let n = this.get(e);
|
|
6023
6062
|
return n && (n.count--, n.meta.delete(r)), this;
|
|
6024
6063
|
}, SCROLL_PREVENT({ doc: e, d: r, meta: n }) {
|
|
6025
|
-
let t = { doc: e, d: r, meta:
|
|
6064
|
+
let t = { doc: e, d: r, meta: Aa(n) }, s = [Na(), Sa(), Ra()];
|
|
6026
6065
|
s.forEach(({ before: o }) => o == null ? void 0 : o(t)), s.forEach(({ after: o }) => o == null ? void 0 : o(t));
|
|
6027
6066
|
}, SCROLL_ALLOW({ d: e }) {
|
|
6028
6067
|
e.dispose();
|
|
6029
6068
|
}, TEARDOWN({ doc: e }) {
|
|
6030
6069
|
this.delete(e);
|
|
6031
6070
|
} });
|
|
6032
|
-
|
|
6033
|
-
let e =
|
|
6071
|
+
We.subscribe(() => {
|
|
6072
|
+
let e = We.getSnapshot(), r = /* @__PURE__ */ new Map();
|
|
6034
6073
|
for (let [n] of e)
|
|
6035
6074
|
r.set(n, n.documentElement.style.overflow);
|
|
6036
6075
|
for (let n of e.values()) {
|
|
6037
6076
|
let t = r.get(n.doc) === "hidden", s = n.count !== 0;
|
|
6038
|
-
(s && !t || !s && t) &&
|
|
6077
|
+
(s && !t || !s && t) && We.dispatch(n.count > 0 ? "SCROLL_PREVENT" : "SCROLL_ALLOW", n), n.count === 0 && We.dispatch("TEARDOWN", n);
|
|
6039
6078
|
}
|
|
6040
6079
|
});
|
|
6041
|
-
function
|
|
6042
|
-
let t =
|
|
6080
|
+
function Pa(e, r, n = () => ({ containers: [] })) {
|
|
6081
|
+
let t = Ta(We), s = e ? t.get(e) : void 0, o = s ? s.count > 0 : !1;
|
|
6043
6082
|
return q(() => {
|
|
6044
6083
|
if (!(!e || !r))
|
|
6045
|
-
return
|
|
6084
|
+
return We.dispatch("PUSH", e, n), () => We.dispatch("POP", e, n);
|
|
6046
6085
|
}, [r, e]), o;
|
|
6047
6086
|
}
|
|
6048
|
-
function
|
|
6049
|
-
|
|
6087
|
+
function Fa(e, r, n = () => [document.body]) {
|
|
6088
|
+
Pa(e, r, (t) => {
|
|
6050
6089
|
var s;
|
|
6051
6090
|
return { containers: [...(s = t.containers) != null ? s : [], n] };
|
|
6052
6091
|
});
|
|
@@ -6066,25 +6105,25 @@ let rt = ce(null);
|
|
|
6066
6105
|
rt.displayName = "OpenClosedContext";
|
|
6067
6106
|
var se = ((e) => (e[e.Open = 1] = "Open", e[e.Closed = 2] = "Closed", e[e.Closing = 4] = "Closing", e[e.Opening = 8] = "Opening", e))(se || {});
|
|
6068
6107
|
function tt() {
|
|
6069
|
-
return
|
|
6108
|
+
return re(rt);
|
|
6070
6109
|
}
|
|
6071
|
-
function
|
|
6110
|
+
function Oa({ value: e, children: r }) {
|
|
6072
6111
|
return j.createElement(rt.Provider, { value: e }, r);
|
|
6073
6112
|
}
|
|
6074
|
-
function
|
|
6113
|
+
function _a(e) {
|
|
6075
6114
|
function r() {
|
|
6076
6115
|
document.readyState !== "loading" && (e(), document.removeEventListener("DOMContentLoaded", r));
|
|
6077
6116
|
}
|
|
6078
6117
|
typeof window != "undefined" && typeof document != "undefined" && (document.addEventListener("DOMContentLoaded", r), r());
|
|
6079
6118
|
}
|
|
6080
6119
|
let Pe = [];
|
|
6081
|
-
|
|
6120
|
+
_a(() => {
|
|
6082
6121
|
function e(r) {
|
|
6083
6122
|
r.target instanceof HTMLElement && r.target !== document.body && Pe[0] !== r.target && (Pe.unshift(r.target), Pe = Pe.filter((n) => n != null && n.isConnected), Pe.splice(10));
|
|
6084
6123
|
}
|
|
6085
6124
|
window.addEventListener("click", e, { capture: !0 }), window.addEventListener("mousedown", e, { capture: !0 }), window.addEventListener("focus", e, { capture: !0 }), document.body.addEventListener("click", e, { capture: !0 }), document.body.addEventListener("mousedown", e, { capture: !0 }), document.body.addEventListener("focus", e, { capture: !0 });
|
|
6086
6125
|
});
|
|
6087
|
-
function
|
|
6126
|
+
function on(e) {
|
|
6088
6127
|
let r = P(e), n = R(!1);
|
|
6089
6128
|
oe(() => (n.current = !1, () => {
|
|
6090
6129
|
n.current = !0, Er(() => {
|
|
@@ -6092,26 +6131,26 @@ function sn(e) {
|
|
|
6092
6131
|
});
|
|
6093
6132
|
}), [r]);
|
|
6094
6133
|
}
|
|
6095
|
-
function
|
|
6134
|
+
function Wa() {
|
|
6096
6135
|
let e = typeof document == "undefined";
|
|
6097
6136
|
return "useSyncExternalStore" in or ? ((r) => r.useSyncExternalStore)(or)(() => () => {
|
|
6098
6137
|
}, () => !1, () => !e) : !1;
|
|
6099
6138
|
}
|
|
6100
6139
|
function cr() {
|
|
6101
|
-
let e =
|
|
6140
|
+
let e = Wa(), [r, n] = or.useState(Ie.isHandoffComplete);
|
|
6102
6141
|
return r && Ie.isHandoffComplete === !1 && n(!1), or.useEffect(() => {
|
|
6103
6142
|
r !== !0 && n(!0);
|
|
6104
6143
|
}, [r]), or.useEffect(() => Ie.handoff(), []), e ? !1 : r;
|
|
6105
6144
|
}
|
|
6106
|
-
let
|
|
6107
|
-
function
|
|
6108
|
-
return
|
|
6145
|
+
let an = ce(!1);
|
|
6146
|
+
function Ia() {
|
|
6147
|
+
return re(an);
|
|
6109
6148
|
}
|
|
6110
6149
|
function Tt(e) {
|
|
6111
|
-
return j.createElement(
|
|
6150
|
+
return j.createElement(an.Provider, { value: e.force }, e.children);
|
|
6112
6151
|
}
|
|
6113
|
-
function
|
|
6114
|
-
let r =
|
|
6152
|
+
function Va(e) {
|
|
6153
|
+
let r = Ia(), n = re(dn), t = dr(e), [s, o] = ge(() => {
|
|
6115
6154
|
var a;
|
|
6116
6155
|
if (!r && n !== null)
|
|
6117
6156
|
return (a = n.current) != null ? a : null;
|
|
@@ -6131,35 +6170,35 @@ function _a(e) {
|
|
|
6131
6170
|
r || n !== null && o(n.current);
|
|
6132
6171
|
}, [n, o, r]), s;
|
|
6133
6172
|
}
|
|
6134
|
-
let
|
|
6135
|
-
let n = e, t = R(null), s = we(
|
|
6173
|
+
let ln = de, Da = ue(function(e, r) {
|
|
6174
|
+
let n = e, t = R(null), s = we(ia((f) => {
|
|
6136
6175
|
t.current = f;
|
|
6137
|
-
}), r), o = dr(t), a =
|
|
6176
|
+
}), r), o = dr(t), a = Va(t), [d] = ge(() => {
|
|
6138
6177
|
var f;
|
|
6139
6178
|
return Ie.isServer ? null : (f = o == null ? void 0 : o.createElement("div")) != null ? f : null;
|
|
6140
|
-
}), c =
|
|
6179
|
+
}), c = re(Ur), u = cr();
|
|
6141
6180
|
return q(() => {
|
|
6142
6181
|
!a || !d || a.contains(d) || (d.setAttribute("data-headlessui-portal", ""), a.appendChild(d));
|
|
6143
6182
|
}, [a, d]), q(() => {
|
|
6144
6183
|
if (d && c)
|
|
6145
6184
|
return c.register(d);
|
|
6146
|
-
}, [c, d]),
|
|
6185
|
+
}, [c, d]), on(() => {
|
|
6147
6186
|
var f;
|
|
6148
6187
|
!a || !d || (d instanceof Node && a.contains(d) && a.removeChild(d), a.childNodes.length <= 0 && ((f = a.parentElement) == null || f.removeChild(a)));
|
|
6149
|
-
}), u ? !a || !d ? null : St(ve({ ourProps: { ref: s }, theirProps: n, slot: {}, defaultTag:
|
|
6188
|
+
}), u ? !a || !d ? null : St(ve({ ourProps: { ref: s }, theirProps: n, slot: {}, defaultTag: ln, name: "Portal" }), d) : null;
|
|
6150
6189
|
});
|
|
6151
|
-
function
|
|
6190
|
+
function Ha(e, r) {
|
|
6152
6191
|
let n = we(r), { enabled: t = !0, ...s } = e;
|
|
6153
|
-
return t ? j.createElement(
|
|
6192
|
+
return t ? j.createElement(Da, { ...s, ref: n }) : ve({ ourProps: { ref: n }, theirProps: s, slot: {}, defaultTag: ln, name: "Portal" });
|
|
6154
6193
|
}
|
|
6155
|
-
let
|
|
6156
|
-
function
|
|
6194
|
+
let Ba = de, dn = ce(null);
|
|
6195
|
+
function za(e, r) {
|
|
6157
6196
|
let { target: n, ...t } = e, s = { ref: we(r) };
|
|
6158
|
-
return j.createElement(
|
|
6197
|
+
return j.createElement(dn.Provider, { value: n }, ve({ ourProps: s, theirProps: t, defaultTag: Ba, name: "Popover.Group" }));
|
|
6159
6198
|
}
|
|
6160
6199
|
let Ur = ce(null);
|
|
6161
|
-
function
|
|
6162
|
-
let e =
|
|
6200
|
+
function Ua() {
|
|
6201
|
+
let e = re(Ur), r = R([]), n = P((o) => (r.current.push(o), e && e.register(o), () => t(o))), t = P((o) => {
|
|
6163
6202
|
let a = r.current.indexOf(o);
|
|
6164
6203
|
a !== -1 && r.current.splice(a, 1), e && e.unregister(o);
|
|
6165
6204
|
}), s = ae(() => ({ register: n, unregister: t, portals: r }), [n, t, r]);
|
|
@@ -6167,8 +6206,8 @@ function Ba() {
|
|
|
6167
6206
|
return j.createElement(Ur.Provider, { value: s }, o);
|
|
6168
6207
|
}, [s])];
|
|
6169
6208
|
}
|
|
6170
|
-
let
|
|
6171
|
-
function
|
|
6209
|
+
let Ga = ue(Ha), Ya = ue(za), Mt = Object.assign(Ga, { Group: Ya });
|
|
6210
|
+
function Za() {
|
|
6172
6211
|
var e;
|
|
6173
6212
|
let [r] = ge(() => typeof window != "undefined" && typeof window.matchMedia == "function" ? window.matchMedia("(pointer: coarse)") : null), [n, t] = ge((e = r == null ? void 0 : r.matches) != null ? e : !1);
|
|
6174
6213
|
return q(() => {
|
|
@@ -6180,7 +6219,7 @@ function Ga() {
|
|
|
6180
6219
|
return r.addEventListener("change", s), () => r.removeEventListener("change", s);
|
|
6181
6220
|
}, [r]), n;
|
|
6182
6221
|
}
|
|
6183
|
-
function
|
|
6222
|
+
function qa({ defaultContainers: e = [], portals: r, mainTreeNodeRef: n } = {}) {
|
|
6184
6223
|
var t;
|
|
6185
6224
|
let s = R((t = n == null ? void 0 : n.current) != null ? t : null), o = dr(s), a = P(() => {
|
|
6186
6225
|
var d, c, u;
|
|
@@ -6191,7 +6230,7 @@ function Ya({ defaultContainers: e = [], portals: r, mainTreeNodeRef: n } = {})
|
|
|
6191
6230
|
for (let p of r.current)
|
|
6192
6231
|
f.push(p);
|
|
6193
6232
|
for (let p of (d = o == null ? void 0 : o.querySelectorAll("html > *, body > *")) != null ? d : [])
|
|
6194
|
-
p !== document.body && p !== document.head && p instanceof HTMLElement && p.id !== "headlessui-portal-root" && (p.contains(s.current) || p.contains((u = (c = s.current) == null ? void 0 : c.getRootNode()) == null ? void 0 : u.host) || f.some((
|
|
6233
|
+
p !== document.body && p !== document.head && p instanceof HTMLElement && p.id !== "headlessui-portal-root" && (p.contains(s.current) || p.contains((u = (c = s.current) == null ? void 0 : c.getRootNode()) == null ? void 0 : u.host) || f.some((m) => p.contains(m)) || f.push(p));
|
|
6195
6234
|
return f;
|
|
6196
6235
|
});
|
|
6197
6236
|
return { resolveContainers: a, contains: P((d) => a().some((c) => c.contains(d))), mainTreeNodeRef: s, MainTreeNode: ae(() => function() {
|
|
@@ -6202,11 +6241,11 @@ let nt = ce(() => {
|
|
|
6202
6241
|
});
|
|
6203
6242
|
nt.displayName = "StackContext";
|
|
6204
6243
|
var Gr = ((e) => (e[e.Add = 0] = "Add", e[e.Remove = 1] = "Remove", e))(Gr || {});
|
|
6205
|
-
function
|
|
6206
|
-
return
|
|
6244
|
+
function Ka() {
|
|
6245
|
+
return re(nt);
|
|
6207
6246
|
}
|
|
6208
|
-
function
|
|
6209
|
-
let o =
|
|
6247
|
+
function Ja({ children: e, onUpdate: r, type: n, element: t, enabled: s }) {
|
|
6248
|
+
let o = Ka(), a = P((...d) => {
|
|
6210
6249
|
r == null || r(...d), o(...d);
|
|
6211
6250
|
});
|
|
6212
6251
|
return q(() => {
|
|
@@ -6223,13 +6262,13 @@ function ur() {
|
|
|
6223
6262
|
}), []), e;
|
|
6224
6263
|
}
|
|
6225
6264
|
var sr = ((e) => (e[e.Forwards = 0] = "Forwards", e[e.Backwards = 1] = "Backwards", e))(sr || {});
|
|
6226
|
-
function
|
|
6265
|
+
function Xa() {
|
|
6227
6266
|
let e = R(0);
|
|
6228
|
-
return
|
|
6267
|
+
return nn("keydown", (r) => {
|
|
6229
6268
|
r.key === "Tab" && (e.current = r.shiftKey ? 1 : 0);
|
|
6230
6269
|
}, !0), e;
|
|
6231
6270
|
}
|
|
6232
|
-
function
|
|
6271
|
+
function cn(e) {
|
|
6233
6272
|
if (!e)
|
|
6234
6273
|
return /* @__PURE__ */ new Set();
|
|
6235
6274
|
if (typeof e == "function")
|
|
@@ -6239,16 +6278,16 @@ function dn(e) {
|
|
|
6239
6278
|
n.current instanceof HTMLElement && r.add(n.current);
|
|
6240
6279
|
return r;
|
|
6241
6280
|
}
|
|
6242
|
-
let
|
|
6281
|
+
let Qa = "div";
|
|
6243
6282
|
var $e = ((e) => (e[e.None = 1] = "None", e[e.InitialFocus = 2] = "InitialFocus", e[e.TabLock = 4] = "TabLock", e[e.FocusLock = 8] = "FocusLock", e[e.RestoreFocus = 16] = "RestoreFocus", e[e.AutoFocus = 32] = "AutoFocus", e[e.All = 30] = "All", e))($e || {});
|
|
6244
|
-
function
|
|
6283
|
+
function ei(e, r) {
|
|
6245
6284
|
let n = R(null), t = we(n, r), { initialFocus: s, initialFocusFallback: o, containers: a, features: d = 30, ...c } = e;
|
|
6246
6285
|
cr() || (d = 1);
|
|
6247
6286
|
let u = dr(n);
|
|
6248
|
-
|
|
6249
|
-
let f =
|
|
6250
|
-
|
|
6251
|
-
let p =
|
|
6287
|
+
si({ ownerDocument: u }, !!(d & 16));
|
|
6288
|
+
let f = oi({ ownerDocument: u, container: n, initialFocus: s, initialFocusFallback: o }, d);
|
|
6289
|
+
ai({ ownerDocument: u, container: n, containers: a, previousActiveElement: f }, !!(d & 8));
|
|
6290
|
+
let p = Xa(), m = P((b) => {
|
|
6252
6291
|
let w = n.current;
|
|
6253
6292
|
w && ((y) => y())(() => {
|
|
6254
6293
|
z(p.current, { [sr.Forwards]: () => {
|
|
@@ -6264,15 +6303,15 @@ function Xa(e, r) {
|
|
|
6264
6303
|
}, onBlur(b) {
|
|
6265
6304
|
if (!(d & 8))
|
|
6266
6305
|
return;
|
|
6267
|
-
let w =
|
|
6306
|
+
let w = cn(a);
|
|
6268
6307
|
n.current instanceof HTMLElement && w.add(n.current);
|
|
6269
6308
|
let y = b.relatedTarget;
|
|
6270
|
-
y instanceof HTMLElement && y.dataset.headlessuiFocusGuard !== "true" && (
|
|
6309
|
+
y instanceof HTMLElement && y.dataset.headlessuiFocusGuard !== "true" && (un(w, y) || (x.current ? lr(n.current, z(p.current, { [sr.Forwards]: () => Te.Next, [sr.Backwards]: () => Te.Previous }) | Te.WrapAround, { relativeTo: b.target }) : b.target instanceof HTMLElement && Me(b.target)));
|
|
6271
6310
|
} };
|
|
6272
|
-
return j.createElement(j.Fragment, null, !!(d & 4) && j.createElement(Dr, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus:
|
|
6311
|
+
return j.createElement(j.Fragment, null, !!(d & 4) && j.createElement(Dr, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: m, features: wr.Focusable }), ve({ ourProps: C, theirProps: c, defaultTag: Qa, name: "FocusTrap" }), !!(d & 4) && j.createElement(Dr, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: m, features: wr.Focusable }));
|
|
6273
6312
|
}
|
|
6274
|
-
let
|
|
6275
|
-
function
|
|
6313
|
+
let ri = ue(ei), ti = Object.assign(ri, { features: $e });
|
|
6314
|
+
function ni(e = !0) {
|
|
6276
6315
|
let r = R(Pe.slice());
|
|
6277
6316
|
return et(([n], [t]) => {
|
|
6278
6317
|
t === !0 && n === !1 && Er(() => {
|
|
@@ -6283,15 +6322,15 @@ function ri(e = !0) {
|
|
|
6283
6322
|
return (n = r.current.find((t) => t != null && t.isConnected)) != null ? n : null;
|
|
6284
6323
|
});
|
|
6285
6324
|
}
|
|
6286
|
-
function
|
|
6287
|
-
let n =
|
|
6325
|
+
function si({ ownerDocument: e }, r) {
|
|
6326
|
+
let n = ni(r);
|
|
6288
6327
|
et(() => {
|
|
6289
6328
|
r || (e == null ? void 0 : e.activeElement) === (e == null ? void 0 : e.body) && Me(n());
|
|
6290
|
-
}, [r]),
|
|
6329
|
+
}, [r]), on(() => {
|
|
6291
6330
|
r && Me(n());
|
|
6292
6331
|
});
|
|
6293
6332
|
}
|
|
6294
|
-
function
|
|
6333
|
+
function oi({ ownerDocument: e, container: r, initialFocus: n, initialFocusFallback: t }, s) {
|
|
6295
6334
|
let o = !!(s & 2), a = R(null), d = ur();
|
|
6296
6335
|
return et(() => {
|
|
6297
6336
|
if (!o) {
|
|
@@ -6328,45 +6367,45 @@ function ni({ ownerDocument: e, container: r, initialFocus: n, initialFocusFallb
|
|
|
6328
6367
|
});
|
|
6329
6368
|
}, [t, o, s]), a;
|
|
6330
6369
|
}
|
|
6331
|
-
function
|
|
6370
|
+
function ai({ ownerDocument: e, container: r, containers: n, previousActiveElement: t }, s) {
|
|
6332
6371
|
let o = ur();
|
|
6333
|
-
|
|
6372
|
+
sn(e == null ? void 0 : e.defaultView, "focus", (a) => {
|
|
6334
6373
|
if (!s || !o.current)
|
|
6335
6374
|
return;
|
|
6336
|
-
let d =
|
|
6375
|
+
let d = cn(n);
|
|
6337
6376
|
r.current instanceof HTMLElement && d.add(r.current);
|
|
6338
6377
|
let c = t.current;
|
|
6339
6378
|
if (!c)
|
|
6340
6379
|
return;
|
|
6341
6380
|
let u = a.target;
|
|
6342
|
-
u && u instanceof HTMLElement ?
|
|
6381
|
+
u && u instanceof HTMLElement ? un(d, u) ? (t.current = u, Me(u)) : (a.preventDefault(), a.stopPropagation(), Me(c)) : Me(t.current);
|
|
6343
6382
|
}, !0);
|
|
6344
6383
|
}
|
|
6345
|
-
function
|
|
6384
|
+
function un(e, r) {
|
|
6346
6385
|
for (let n of e)
|
|
6347
6386
|
if (n.contains(r))
|
|
6348
6387
|
return !0;
|
|
6349
6388
|
return !1;
|
|
6350
6389
|
}
|
|
6351
|
-
var
|
|
6352
|
-
let
|
|
6390
|
+
var ii = ((e) => (e[e.Open = 0] = "Open", e[e.Closed = 1] = "Closed", e))(ii || {}), li = ((e) => (e[e.SetTitleId = 0] = "SetTitleId", e))(li || {});
|
|
6391
|
+
let di = { 0(e, r) {
|
|
6353
6392
|
return e.titleId === r.id ? e : { ...e, titleId: r.id };
|
|
6354
6393
|
} }, kr = ce(null);
|
|
6355
6394
|
kr.displayName = "DialogContext";
|
|
6356
6395
|
function st(e) {
|
|
6357
|
-
let r =
|
|
6396
|
+
let r = re(kr);
|
|
6358
6397
|
if (r === null) {
|
|
6359
6398
|
let n = new Error(`<${e} /> is missing a parent <Dialog /> component.`);
|
|
6360
6399
|
throw Error.captureStackTrace && Error.captureStackTrace(n, st), n;
|
|
6361
6400
|
}
|
|
6362
6401
|
return r;
|
|
6363
6402
|
}
|
|
6364
|
-
function
|
|
6365
|
-
return z(r.type,
|
|
6403
|
+
function ci(e, r) {
|
|
6404
|
+
return z(r.type, di, e, r);
|
|
6366
6405
|
}
|
|
6367
|
-
let
|
|
6368
|
-
function
|
|
6369
|
-
let n = yr(), { id: t = `headlessui-dialog-${n}`, open: s, onClose: o, initialFocus: a, role: d = "dialog", autoFocus: c = !0, __demoMode: u = !1, ...f } = e, [p,
|
|
6406
|
+
let ui = "div", fi = Cr.RenderStrategy | Cr.Static;
|
|
6407
|
+
function pi(e, r) {
|
|
6408
|
+
let n = yr(), { id: t = `headlessui-dialog-${n}`, open: s, onClose: o, initialFocus: a, role: d = "dialog", autoFocus: c = !0, __demoMode: u = !1, ...f } = e, [p, m] = ge(0), v = R(!1);
|
|
6370
6409
|
d = function() {
|
|
6371
6410
|
return d === "dialog" || d === "alertdialog" ? d : (v.current || (v.current = !0, console.warn(`Invalid role [${d}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)), "dialog");
|
|
6372
6411
|
}();
|
|
@@ -6383,44 +6422,44 @@ function ui(e, r) {
|
|
|
6383
6422
|
throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${s}`);
|
|
6384
6423
|
if (typeof o != "function")
|
|
6385
6424
|
throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${o}`);
|
|
6386
|
-
let N = s ? 0 : 1, [G, ke] =
|
|
6425
|
+
let N = s ? 0 : 1, [G, ke] = Yn(ci, { titleId: null, descriptionId: null, panelRef: Zn() }), J = P(() => o(!1)), Y = P((O) => ke({ type: 0, id: O })), X = cr() ? N === 0 : !1, te = p > 1, ie = re(kr) !== null, [$, F] = Ua(), I = { get current() {
|
|
6387
6426
|
var O;
|
|
6388
6427
|
return (O = G.panelRef.current) != null ? O : C.current;
|
|
6389
|
-
} }, { resolveContainers: U, mainTreeNodeRef: pe, MainTreeNode: be } =
|
|
6390
|
-
|
|
6428
|
+
} }, { resolveContainers: U, mainTreeNodeRef: pe, MainTreeNode: be } = qa({ portals: $, defaultContainers: [I] }), he = te ? "parent" : "leaf", B = x !== null ? (x & se.Closing) === se.Closing : !1, ye = te || B ? !1 : X;
|
|
6429
|
+
ma({ allowed: P(() => {
|
|
6391
6430
|
var O, xe;
|
|
6392
6431
|
return [(xe = (O = C.current) == null ? void 0 : O.closest("[data-headlessui-portal]")) != null ? xe : null];
|
|
6393
6432
|
}), disallowed: P(() => {
|
|
6394
6433
|
var O, xe;
|
|
6395
6434
|
return [(xe = (O = pe.current) == null ? void 0 : O.closest("body > *:not(#headlessui-portal-root)")) != null ? xe : null];
|
|
6396
|
-
}) }, u ? !1 : ye),
|
|
6397
|
-
O.preventDefault(),
|
|
6398
|
-
}, !(!
|
|
6399
|
-
let
|
|
6400
|
-
|
|
6401
|
-
|
|
6402
|
-
}),
|
|
6403
|
-
let [ne, Ke] =
|
|
6404
|
-
return c && (je |= $e.AutoFocus), Je || (je &= ~$e.InitialFocus), u && (je = $e.None), j.createElement(
|
|
6405
|
-
xe === "Dialog" && z(O, { [Gr.Add]: () =>
|
|
6406
|
-
}) }, j.createElement(Tt, { force: !0 }, j.createElement(Mt, null, j.createElement(kr.Provider, { value:
|
|
6407
|
-
}
|
|
6408
|
-
let
|
|
6409
|
-
function
|
|
6435
|
+
}) }, u ? !1 : ye), $a(U, (O) => {
|
|
6436
|
+
O.preventDefault(), J();
|
|
6437
|
+
}, !(!X || te));
|
|
6438
|
+
let Q = !(te || N !== 0);
|
|
6439
|
+
sn(w == null ? void 0 : w.defaultView, "keydown", (O) => {
|
|
6440
|
+
Q && (O.defaultPrevented || O.key === Qt.Escape && (O.preventDefault(), O.stopPropagation(), J()));
|
|
6441
|
+
}), Fa(w, u ? !1 : !(B || N !== 0 || ie), U), en(C, J, N === 0);
|
|
6442
|
+
let [ne, Ke] = la(), ee = ae(() => [{ dialogState: N, close: J, setTitleId: Y }, G], [N, G, J, Y]), D = ae(() => ({ open: N === 0 }), [N]), H = { ref: b, id: t, role: d, tabIndex: -1, "aria-modal": N === 0 ? !0 : void 0, "aria-labelledby": G.titleId, "aria-describedby": ne }, Je = !Za(), je = X ? z(he, { parent: $e.RestoreFocus, leaf: $e.All & ~$e.FocusLock }) : $e.None;
|
|
6443
|
+
return c && (je |= $e.AutoFocus), Je || (je &= ~$e.InitialFocus), u && (je = $e.None), j.createElement(Ja, { type: "Dialog", enabled: N === 0, element: C, onUpdate: P((O, xe) => {
|
|
6444
|
+
xe === "Dialog" && z(O, { [Gr.Add]: () => m((Xe) => Xe + 1), [Gr.Remove]: () => m((Xe) => Xe - 1) });
|
|
6445
|
+
}) }, j.createElement(Tt, { force: !0 }, j.createElement(Mt, null, j.createElement(kr.Provider, { value: ee }, j.createElement(Mt.Group, { target: C }, j.createElement(Tt, { force: !1 }, j.createElement(Ke, { slot: D, name: "Dialog.Description" }, j.createElement(F, null, j.createElement(ti, { initialFocus: a, initialFocusFallback: C, containers: U, features: je }, j.createElement(ha, { value: J }, ve({ ourProps: H, theirProps: f, slot: D, defaultTag: ui, features: fi, visible: N === 0, name: "Dialog" })))))))))), j.createElement(aa, null, j.createElement(be, null)));
|
|
6446
|
+
}
|
|
6447
|
+
let hi = "div";
|
|
6448
|
+
function mi(e, r) {
|
|
6410
6449
|
let n = yr(), { id: t = `headlessui-dialog-panel-${n}`, ...s } = e, [{ dialogState: o }, a] = st("Dialog.Panel"), d = we(r, a.panelRef), c = ae(() => ({ open: o === 0 }), [o]), u = P((f) => {
|
|
6411
6450
|
f.stopPropagation();
|
|
6412
6451
|
});
|
|
6413
|
-
return ve({ ourProps: { ref: d, id: t, onClick: u }, theirProps: s, slot: c, defaultTag:
|
|
6452
|
+
return ve({ ourProps: { ref: d, id: t, onClick: u }, theirProps: s, slot: c, defaultTag: hi, name: "Dialog.Panel" });
|
|
6414
6453
|
}
|
|
6415
|
-
let
|
|
6416
|
-
function
|
|
6454
|
+
let gi = "h2";
|
|
6455
|
+
function vi(e, r) {
|
|
6417
6456
|
let n = yr(), { id: t = `headlessui-dialog-title-${n}`, ...s } = e, [{ dialogState: o, setTitleId: a }] = st("Dialog.Title"), d = we(r);
|
|
6418
6457
|
oe(() => (a(t), () => a(null)), [t, a]);
|
|
6419
6458
|
let c = ae(() => ({ open: o === 0 }), [o]);
|
|
6420
|
-
return ve({ ourProps: { ref: d, id: t }, theirProps: s, slot: c, defaultTag:
|
|
6459
|
+
return ve({ ourProps: { ref: d, id: t }, theirProps: s, slot: c, defaultTag: gi, name: "Dialog.Title" });
|
|
6421
6460
|
}
|
|
6422
|
-
let
|
|
6423
|
-
function
|
|
6461
|
+
let bi = ue(pi), fn = ue(mi), xi = ue(vi), Ci = Object.assign(bi, { Panel: fn, Title: xi, Description: fa });
|
|
6462
|
+
function wi(e = 0) {
|
|
6424
6463
|
let [r, n] = ge(e), t = ur(), s = mr((c) => {
|
|
6425
6464
|
t.current && n((u) => u | c);
|
|
6426
6465
|
}, [r, t]), o = mr((c) => !!(r & c), [r]), a = mr((c) => {
|
|
@@ -6430,7 +6469,7 @@ function xi(e = 0) {
|
|
|
6430
6469
|
}, [n]);
|
|
6431
6470
|
return { flags: r, addFlag: s, hasFlag: o, removeFlag: a, toggleFlag: d };
|
|
6432
6471
|
}
|
|
6433
|
-
function
|
|
6472
|
+
function pn(e) {
|
|
6434
6473
|
let r = { called: !1 };
|
|
6435
6474
|
return (...n) => {
|
|
6436
6475
|
if (!r.called)
|
|
@@ -6440,15 +6479,15 @@ function fn(e) {
|
|
|
6440
6479
|
function Or(e, ...r) {
|
|
6441
6480
|
e && r.length > 0 && e.classList.add(...r);
|
|
6442
6481
|
}
|
|
6443
|
-
function
|
|
6482
|
+
function _r(e, ...r) {
|
|
6444
6483
|
e && r.length > 0 && e.classList.remove(...r);
|
|
6445
6484
|
}
|
|
6446
|
-
function
|
|
6447
|
-
let n =
|
|
6485
|
+
function ki(e, r) {
|
|
6486
|
+
let n = pn(r), t = Oe();
|
|
6448
6487
|
if (!e)
|
|
6449
6488
|
return t.dispose;
|
|
6450
6489
|
let { transitionDuration: s, transitionDelay: o } = getComputedStyle(e), [a, d] = [s, o].map((u) => {
|
|
6451
|
-
let [f = 0] = u.split(",").filter(Boolean).map((p) => p.includes("ms") ? parseFloat(p) : parseFloat(p) * 1e3).sort((p,
|
|
6490
|
+
let [f = 0] = u.split(",").filter(Boolean).map((p) => p.includes("ms") ? parseFloat(p) : parseFloat(p) * 1e3).sort((p, m) => m - p);
|
|
6452
6491
|
return f;
|
|
6453
6492
|
}), c = a + d;
|
|
6454
6493
|
if (c !== 0) {
|
|
@@ -6456,8 +6495,8 @@ function Ci(e, r) {
|
|
|
6456
6495
|
let p = f.setTimeout(() => {
|
|
6457
6496
|
n(), f.dispose();
|
|
6458
6497
|
}, c);
|
|
6459
|
-
f.addEventListener(e, "transitionrun", (
|
|
6460
|
-
|
|
6498
|
+
f.addEventListener(e, "transitionrun", (m) => {
|
|
6499
|
+
m.target === m.currentTarget && (p(), f.addEventListener(e, "transitioncancel", (v) => {
|
|
6461
6500
|
v.target === v.currentTarget && (n(), u());
|
|
6462
6501
|
}));
|
|
6463
6502
|
});
|
|
@@ -6469,18 +6508,18 @@ function Ci(e, r) {
|
|
|
6469
6508
|
n();
|
|
6470
6509
|
return t.dispose;
|
|
6471
6510
|
}
|
|
6472
|
-
function
|
|
6473
|
-
let o = Oe(), a = n !== void 0 ?
|
|
6511
|
+
function yi(e, { direction: r, done: n, classes: t, inFlight: s }) {
|
|
6512
|
+
let o = Oe(), a = n !== void 0 ? pn(n) : () => {
|
|
6474
6513
|
};
|
|
6475
6514
|
r === "enter" && (e.removeAttribute("hidden"), e.style.display = "");
|
|
6476
6515
|
let d = z(r, { enter: () => t.enter, leave: () => t.leave }), c = z(r, { enter: () => t.enterTo, leave: () => t.leaveTo }), u = z(r, { enter: () => t.enterFrom, leave: () => t.leaveFrom });
|
|
6477
|
-
return
|
|
6478
|
-
|
|
6516
|
+
return ji(e, { prepare() {
|
|
6517
|
+
_r(e, ...t.base, ...t.enter, ...t.enterTo, ...t.enterFrom, ...t.leave, ...t.leaveFrom, ...t.leaveTo, ...t.entered), Or(e, ...t.base, ...d, ...u);
|
|
6479
6518
|
}, inFlight: s }), s && (s.current = !0), o.nextFrame(() => {
|
|
6480
|
-
o.add(
|
|
6519
|
+
o.add(ki(e, () => (_r(e, ...t.base, ...d), Or(e, ...t.base, ...t.entered, ...c), s && (s.current = !1), a()))), _r(e, ...t.base, ...d, ...u), Or(e, ...t.base, ...d, ...c);
|
|
6481
6520
|
}), o.dispose;
|
|
6482
6521
|
}
|
|
6483
|
-
function
|
|
6522
|
+
function ji(e, { inFlight: r, prepare: n }) {
|
|
6484
6523
|
if (r != null && r.current) {
|
|
6485
6524
|
n();
|
|
6486
6525
|
return;
|
|
@@ -6488,14 +6527,14 @@ function ki(e, { inFlight: r, prepare: n }) {
|
|
|
6488
6527
|
let t = e.style.transition;
|
|
6489
6528
|
e.style.transition = "none", n(), e.offsetHeight, e.style.transition = t;
|
|
6490
6529
|
}
|
|
6491
|
-
function
|
|
6530
|
+
function Ei({ container: e, direction: r, classes: n, onStart: t, onStop: s }) {
|
|
6492
6531
|
let o = ur(), a = Xr(), d = R(!1);
|
|
6493
6532
|
q(() => {
|
|
6494
6533
|
if (r === "idle" || !o.current)
|
|
6495
6534
|
return;
|
|
6496
6535
|
t.current(r);
|
|
6497
6536
|
let c = e.current;
|
|
6498
|
-
return c ? a.add(
|
|
6537
|
+
return c ? a.add(yi(c, { direction: r, classes: n.current, inFlight: d, done() {
|
|
6499
6538
|
s.current(r);
|
|
6500
6539
|
} })) : s.current(r), a.dispose;
|
|
6501
6540
|
}, [r]);
|
|
@@ -6503,21 +6542,21 @@ function yi({ container: e, direction: r, classes: n, onStart: t, onStop: s }) {
|
|
|
6503
6542
|
function Ae(e = "") {
|
|
6504
6543
|
return e.split(/\s+/).filter((r) => r.length > 1);
|
|
6505
6544
|
}
|
|
6506
|
-
function
|
|
6545
|
+
function hn(e) {
|
|
6507
6546
|
var r;
|
|
6508
|
-
return !!(e.enter || e.enterFrom || e.enterTo || e.leave || e.leaveFrom || e.leaveTo) || ((r = e.as) != null ? r :
|
|
6547
|
+
return !!(e.enter || e.enterFrom || e.enterTo || e.leave || e.leaveFrom || e.leaveTo) || ((r = e.as) != null ? r : gn) !== de || j.Children.count(e.children) === 1;
|
|
6509
6548
|
}
|
|
6510
6549
|
let Lr = ce(null);
|
|
6511
6550
|
Lr.displayName = "TransitionContext";
|
|
6512
|
-
var
|
|
6513
|
-
function
|
|
6514
|
-
let e =
|
|
6551
|
+
var Li = ((e) => (e.Visible = "visible", e.Hidden = "hidden", e))(Li || {});
|
|
6552
|
+
function $i() {
|
|
6553
|
+
let e = re(Lr);
|
|
6515
6554
|
if (e === null)
|
|
6516
6555
|
throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");
|
|
6517
6556
|
return e;
|
|
6518
6557
|
}
|
|
6519
|
-
function
|
|
6520
|
-
let e =
|
|
6558
|
+
function Ti() {
|
|
6559
|
+
let e = re($r);
|
|
6521
6560
|
if (e === null)
|
|
6522
6561
|
throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");
|
|
6523
6562
|
return e;
|
|
@@ -6527,7 +6566,7 @@ $r.displayName = "NestingContext";
|
|
|
6527
6566
|
function Tr(e) {
|
|
6528
6567
|
return "children" in e ? Tr(e.children) : e.current.filter(({ el: r }) => r.current !== null).filter(({ state: r }) => r === "visible").length > 0;
|
|
6529
6568
|
}
|
|
6530
|
-
function
|
|
6569
|
+
function mn(e, r) {
|
|
6531
6570
|
let n = Ce(e), t = R([]), s = ur(), o = Xr(), a = P((v, x = Fe.Hidden) => {
|
|
6532
6571
|
let C = t.current.findIndex(({ el: b }) => b === v);
|
|
6533
6572
|
C !== -1 && (z(x, { [Fe.Unmount]() {
|
|
@@ -6547,73 +6586,73 @@ function hn(e, r) {
|
|
|
6547
6586
|
})]), r == null || r.chains.current[x].push([v, new Promise((b) => {
|
|
6548
6587
|
Promise.all(f.current[x].map(([w, y]) => y)).then(() => b());
|
|
6549
6588
|
})]), x === "enter" ? u.current = u.current.then(() => r == null ? void 0 : r.wait.current).then(() => C(x)) : C(x);
|
|
6550
|
-
}),
|
|
6589
|
+
}), m = P((v, x, C) => {
|
|
6551
6590
|
Promise.all(f.current[x].splice(0).map(([b, w]) => w)).then(() => {
|
|
6552
6591
|
var b;
|
|
6553
6592
|
(b = c.current.shift()) == null || b();
|
|
6554
6593
|
}).then(() => C(x));
|
|
6555
6594
|
});
|
|
6556
|
-
return ae(() => ({ children: t, register: d, unregister: a, onStart: p, onStop:
|
|
6595
|
+
return ae(() => ({ children: t, register: d, unregister: a, onStart: p, onStop: m, wait: u, chains: f }), [d, a, t, p, m, f, u]);
|
|
6557
6596
|
}
|
|
6558
|
-
let
|
|
6559
|
-
function
|
|
6597
|
+
let gn = de, vn = Cr.RenderStrategy;
|
|
6598
|
+
function Mi(e, r) {
|
|
6560
6599
|
var n, t, s;
|
|
6561
|
-
let { beforeEnter: o, afterEnter: a, beforeLeave: d, afterLeave: c, enter: u, enterFrom: f, enterTo: p, entered:
|
|
6600
|
+
let { beforeEnter: o, afterEnter: a, beforeLeave: d, afterLeave: c, enter: u, enterFrom: f, enterTo: p, entered: m, leave: v, leaveFrom: x, leaveTo: C, ...b } = e, w = R(null), y = hn(e), fe = we(...y ? [w, r] : r === null ? [] : [r]), N = (n = b.unmount) == null || n ? Fe.Unmount : Fe.Hidden, { show: G, appear: ke, initial: J } = $i(), [Y, X] = ge(G ? "visible" : "hidden"), te = Ti(), { register: ie, unregister: $ } = te;
|
|
6562
6601
|
q(() => ie(w), [ie, w]), q(() => {
|
|
6563
6602
|
if (N === Fe.Hidden && w.current) {
|
|
6564
6603
|
if (G && Y !== "visible") {
|
|
6565
|
-
|
|
6604
|
+
X("visible");
|
|
6566
6605
|
return;
|
|
6567
6606
|
}
|
|
6568
6607
|
return z(Y, { hidden: () => $(w), visible: () => ie(w) });
|
|
6569
6608
|
}
|
|
6570
6609
|
}, [Y, w, ie, $, G, N]);
|
|
6571
|
-
let F = Ce({ base: Ae(b.className), enter: Ae(u), enterFrom: Ae(f), enterTo: Ae(p), entered: Ae(
|
|
6610
|
+
let F = Ce({ base: Ae(b.className), enter: Ae(u), enterFrom: Ae(f), enterTo: Ae(p), entered: Ae(m), leave: Ae(v), leaveFrom: Ae(x), leaveTo: Ae(C) }), I = Ce({ beforeEnter: o, afterEnter: a, beforeLeave: d, afterLeave: c }), U = cr();
|
|
6572
6611
|
q(() => {
|
|
6573
6612
|
if (y && U && Y === "visible" && w.current === null)
|
|
6574
6613
|
throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?");
|
|
6575
6614
|
}, [w, Y, U, y]);
|
|
6576
|
-
let pe =
|
|
6577
|
-
var
|
|
6578
|
-
B.addFlag(se.Opening), (
|
|
6615
|
+
let pe = J && !ke, be = ke && G && J, he = be ? "enter" : !U || pe ? "idle" : G ? "enter" : "leave", B = wi(0), ye = P((ee) => z(ee, { enter: () => {
|
|
6616
|
+
var D, H;
|
|
6617
|
+
B.addFlag(se.Opening), (H = (D = I.current).beforeEnter) == null || H.call(D);
|
|
6579
6618
|
}, leave: () => {
|
|
6580
|
-
var
|
|
6581
|
-
B.addFlag(se.Closing), (
|
|
6619
|
+
var D, H;
|
|
6620
|
+
B.addFlag(se.Closing), (H = (D = I.current).beforeLeave) == null || H.call(D);
|
|
6582
6621
|
}, idle: () => {
|
|
6583
|
-
} })), me = P((
|
|
6584
|
-
var
|
|
6585
|
-
B.removeFlag(se.Opening), (
|
|
6622
|
+
} })), me = P((ee) => z(ee, { enter: () => {
|
|
6623
|
+
var D, H;
|
|
6624
|
+
B.removeFlag(se.Opening), (H = (D = I.current).afterEnter) == null || H.call(D);
|
|
6586
6625
|
}, leave: () => {
|
|
6587
|
-
var
|
|
6588
|
-
B.removeFlag(se.Closing), (
|
|
6626
|
+
var D, H;
|
|
6627
|
+
B.removeFlag(se.Closing), (H = (D = I.current).afterLeave) == null || H.call(D);
|
|
6589
6628
|
}, idle: () => {
|
|
6590
|
-
} })),
|
|
6591
|
-
|
|
6629
|
+
} })), Q = R(!1), Se = mn(() => {
|
|
6630
|
+
Q.current || (X("hidden"), $(w));
|
|
6592
6631
|
}, te);
|
|
6593
|
-
|
|
6594
|
-
|
|
6595
|
-
}), onStop: Ce((
|
|
6596
|
-
|
|
6632
|
+
Ei({ container: w, classes: F, direction: he, onStart: Ce((ee) => {
|
|
6633
|
+
Q.current = !0, Se.onStart(w, ee, ye);
|
|
6634
|
+
}), onStop: Ce((ee) => {
|
|
6635
|
+
Q.current = !1, Se.onStop(w, ee, me), ee === "leave" && !Tr(Se) && (X("hidden"), $(w));
|
|
6597
6636
|
}) });
|
|
6598
6637
|
let ne = b, Ke = { ref: fe };
|
|
6599
|
-
return be ? ne = { ...ne, className: ar(b.className, ...F.current.enter, ...F.current.enterFrom) } :
|
|
6638
|
+
return be ? ne = { ...ne, className: ar(b.className, ...F.current.enter, ...F.current.enterFrom) } : Q.current ? (ne.className = ar(b.className, (t = w.current) == null ? void 0 : t.className), ne.className === "" && delete ne.className) : (ne.className = ar(b.className, (s = w.current) == null ? void 0 : s.className, ...z(he, { enter: [...F.current.enterTo, ...F.current.entered], leave: F.current.leaveTo, idle: [] })), ne.className === "" && delete ne.className), j.createElement($r.Provider, { value: Se }, j.createElement(Oa, { value: z(Y, { visible: se.Open, hidden: se.Closed }) | B.flags }, ve({ ourProps: Ke, theirProps: ne, defaultTag: gn, features: vn, visible: Y === "visible", name: "Transition.Child" })));
|
|
6600
6639
|
}
|
|
6601
|
-
function
|
|
6602
|
-
let { show: n, appear: t = !1, unmount: s = !0, ...o } = e, a = R(null), d =
|
|
6640
|
+
function Si(e, r) {
|
|
6641
|
+
let { show: n, appear: t = !1, unmount: s = !0, ...o } = e, a = R(null), d = hn(e), c = we(...d ? [a, r] : r === null ? [] : [r]);
|
|
6603
6642
|
cr();
|
|
6604
6643
|
let u = tt();
|
|
6605
6644
|
if (n === void 0 && u !== null && (n = (u & se.Open) === se.Open), n === void 0)
|
|
6606
6645
|
throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");
|
|
6607
|
-
let [f, p] = ge(n ? "visible" : "hidden"),
|
|
6646
|
+
let [f, p] = ge(n ? "visible" : "hidden"), m = mn(() => {
|
|
6608
6647
|
n || p("hidden");
|
|
6609
6648
|
}), [v, x] = ge(!0), C = R([n]);
|
|
6610
6649
|
q(() => {
|
|
6611
6650
|
v !== !1 && C.current[C.current.length - 1] !== n && (C.current.push(n), x(!1));
|
|
6612
6651
|
}, [C, n]);
|
|
6613
6652
|
let b = ae(() => ({ show: n, appear: t, initial: v }), [n, t, v]);
|
|
6614
|
-
|
|
6615
|
-
n ? p("visible") : !Tr(
|
|
6616
|
-
}, [n,
|
|
6653
|
+
en(a, () => p("hidden")), q(() => {
|
|
6654
|
+
n ? p("visible") : !Tr(m) && a.current !== null && p("hidden");
|
|
6655
|
+
}, [n, m]);
|
|
6617
6656
|
let w = { unmount: s }, y = P(() => {
|
|
6618
6657
|
var N;
|
|
6619
6658
|
v && x(!1), (N = e.beforeEnter) == null || N.call(e);
|
|
@@ -6621,14 +6660,14 @@ function Ti(e, r) {
|
|
|
6621
6660
|
var N;
|
|
6622
6661
|
v && x(!1), (N = e.beforeLeave) == null || N.call(e);
|
|
6623
6662
|
});
|
|
6624
|
-
return j.createElement($r.Provider, { value:
|
|
6663
|
+
return j.createElement($r.Provider, { value: m }, j.createElement(Lr.Provider, { value: b }, ve({ ourProps: { ...w, as: de, children: j.createElement(bn, { ref: c, ...w, ...o, beforeEnter: y, beforeLeave: fe }) }, theirProps: {}, defaultTag: de, features: vn, visible: f === "visible", name: "Transition" })));
|
|
6625
6664
|
}
|
|
6626
|
-
function
|
|
6627
|
-
let n =
|
|
6628
|
-
return j.createElement(j.Fragment, null, !n && t ? j.createElement(Yr, { ref: r, ...e }) : j.createElement(
|
|
6665
|
+
function Ni(e, r) {
|
|
6666
|
+
let n = re(Lr) !== null, t = tt() !== null;
|
|
6667
|
+
return j.createElement(j.Fragment, null, !n && t ? j.createElement(Yr, { ref: r, ...e }) : j.createElement(bn, { ref: r, ...e }));
|
|
6629
6668
|
}
|
|
6630
|
-
let Yr = ue(
|
|
6631
|
-
const
|
|
6669
|
+
let Yr = ue(Si), bn = ue(Mi), Zr = ue(Ni), Ri = Object.assign(Yr, { Child: Zr, Root: Yr });
|
|
6670
|
+
const Ai = ({
|
|
6632
6671
|
open: e = !1,
|
|
6633
6672
|
onClose: r,
|
|
6634
6673
|
title: n = "",
|
|
@@ -6641,12 +6680,12 @@ const Ni = ({
|
|
|
6641
6680
|
dismissible: u = !0,
|
|
6642
6681
|
horizontalRule: f = !0
|
|
6643
6682
|
}) => {
|
|
6644
|
-
const p = () => d ? /* @__PURE__ */ i.jsx(i.Fragment, { children: d }) : a && c ? /* @__PURE__ */ i.jsx(Ve, { name: c, size: "medium" }) : null,
|
|
6645
|
-
return /* @__PURE__ */ i.jsx(
|
|
6646
|
-
|
|
6683
|
+
const p = () => d ? /* @__PURE__ */ i.jsx(i.Fragment, { children: d }) : a && c ? /* @__PURE__ */ i.jsx(Ve, { name: c, size: "medium" }) : null, m = () => t === "dismissible" ? r() : !0;
|
|
6684
|
+
return /* @__PURE__ */ i.jsx(Ri, { appear: !0, show: e, as: de, children: /* @__PURE__ */ i.jsxs(
|
|
6685
|
+
Ci,
|
|
6647
6686
|
{
|
|
6648
6687
|
as: "div",
|
|
6649
|
-
onClose:
|
|
6688
|
+
onClose: m,
|
|
6650
6689
|
static: !0,
|
|
6651
6690
|
className: "preflight ds-relative ds-z-20 focus:ds-outline-none",
|
|
6652
6691
|
"aria-labelledby": "modal-title",
|
|
@@ -6680,7 +6719,7 @@ const Ni = ({
|
|
|
6680
6719
|
leave: "ease-in duration-200",
|
|
6681
6720
|
leaveFrom: "opacity-100 translate-y-0 sm:scale-100",
|
|
6682
6721
|
leaveTo: "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",
|
|
6683
|
-
children: /* @__PURE__ */ i.jsxs(
|
|
6722
|
+
children: /* @__PURE__ */ i.jsxs(fn, { className: "ds-flex ds-max-h-[90vh] ds-min-w-full ds-max-w-full ds-transform ds-flex-col ds-overflow-y-scroll ds-rounded-lg ds-bg-neutrals-white ds-text-left ds-shadow-modal sm:ds-min-w-[15rem] sm:ds-max-w-[55%]", children: [
|
|
6684
6723
|
/* @__PURE__ */ i.jsxs(
|
|
6685
6724
|
"div",
|
|
6686
6725
|
{
|
|
@@ -6688,7 +6727,7 @@ const Ni = ({
|
|
|
6688
6727
|
children: [
|
|
6689
6728
|
a && /* @__PURE__ */ i.jsx("div", { className: "ds-mr-3", children: p() }),
|
|
6690
6729
|
/* @__PURE__ */ i.jsx("div", { className: "ds-flex-grow", children: /* @__PURE__ */ i.jsx(
|
|
6691
|
-
|
|
6730
|
+
qt,
|
|
6692
6731
|
{
|
|
6693
6732
|
text: n,
|
|
6694
6733
|
headingTag: "h2",
|
|
@@ -6727,7 +6766,7 @@ const Ni = ({
|
|
|
6727
6766
|
]
|
|
6728
6767
|
}
|
|
6729
6768
|
) });
|
|
6730
|
-
},
|
|
6769
|
+
}, ul = Ai, Pi = V(
|
|
6731
6770
|
[
|
|
6732
6771
|
"preflight",
|
|
6733
6772
|
"ds-rounded-xl",
|
|
@@ -6769,7 +6808,7 @@ const Ni = ({
|
|
|
6769
6808
|
}
|
|
6770
6809
|
}
|
|
6771
6810
|
}
|
|
6772
|
-
),
|
|
6811
|
+
), Fi = ({
|
|
6773
6812
|
label: e,
|
|
6774
6813
|
type: r = "regular",
|
|
6775
6814
|
color: n = "default",
|
|
@@ -6783,7 +6822,7 @@ const Ni = ({
|
|
|
6783
6822
|
return /* @__PURE__ */ i.jsxs(
|
|
6784
6823
|
"div",
|
|
6785
6824
|
{
|
|
6786
|
-
className:
|
|
6825
|
+
className: K(Pi({ color: n, type: r }), o),
|
|
6787
6826
|
"aria-label": c,
|
|
6788
6827
|
...d,
|
|
6789
6828
|
children: [
|
|
@@ -6804,72 +6843,7 @@ const Ni = ({
|
|
|
6804
6843
|
]
|
|
6805
6844
|
}
|
|
6806
6845
|
);
|
|
6807
|
-
},
|
|
6808
|
-
[
|
|
6809
|
-
"preflight",
|
|
6810
|
-
"ds-form-input",
|
|
6811
|
-
"ds-h-[42px]",
|
|
6812
|
-
"ds-rounded",
|
|
6813
|
-
"ds-p-2",
|
|
6814
|
-
"ds-border-[1px]",
|
|
6815
|
-
"!ds-font-sans",
|
|
6816
|
-
"ds-container"
|
|
6817
|
-
],
|
|
6818
|
-
{
|
|
6819
|
-
variants: {
|
|
6820
|
-
state: {
|
|
6821
|
-
default: [
|
|
6822
|
-
"ds-border-neutrals",
|
|
6823
|
-
"ds-text-neutrals-darker",
|
|
6824
|
-
"focus:ds-border-acuity-blue",
|
|
6825
|
-
"focus:ds-ring-acuity-blue",
|
|
6826
|
-
"focus:ds-ring-offset-2",
|
|
6827
|
-
"focus:ds-ring-2"
|
|
6828
|
-
],
|
|
6829
|
-
error: [
|
|
6830
|
-
"ds-border-danger-red",
|
|
6831
|
-
"ds-text-danger-red-darkest",
|
|
6832
|
-
"focus:ds-border-danger-red",
|
|
6833
|
-
"focus:ds-ring-danger-red-dark",
|
|
6834
|
-
"focus:ds-ring-offset-2",
|
|
6835
|
-
"focus:ds-ring-2"
|
|
6836
|
-
],
|
|
6837
|
-
success: [
|
|
6838
|
-
"ds-border-success-green",
|
|
6839
|
-
"ds-text-neutrals-darker",
|
|
6840
|
-
"focus:ds-border-success-green",
|
|
6841
|
-
"focus:ds-ring-success-green-dark",
|
|
6842
|
-
"focus:ds-ring-offset-2",
|
|
6843
|
-
"focus:ds-ring-2"
|
|
6844
|
-
]
|
|
6845
|
-
},
|
|
6846
|
-
disabled: {
|
|
6847
|
-
true: [
|
|
6848
|
-
"!ds-border-neutrals",
|
|
6849
|
-
"!ds-text-neutrals-darker",
|
|
6850
|
-
"!ds-bg-neutrals-lighter",
|
|
6851
|
-
"focus:!ds-border-neutrals",
|
|
6852
|
-
"focus:!ds-ring-neutrals-dark",
|
|
6853
|
-
"ds-cursor-not-allowed"
|
|
6854
|
-
]
|
|
6855
|
-
}
|
|
6856
|
-
}
|
|
6857
|
-
}
|
|
6858
|
-
), Fi = (e) => re(Pi(e)), Oi = ({
|
|
6859
|
-
state: e = "default",
|
|
6860
|
-
disabled: r = !1,
|
|
6861
|
-
type: n = "text",
|
|
6862
|
-
...t
|
|
6863
|
-
}) => /* @__PURE__ */ i.jsx(
|
|
6864
|
-
"input",
|
|
6865
|
-
{
|
|
6866
|
-
"aria-disabled": r,
|
|
6867
|
-
readOnly: r,
|
|
6868
|
-
type: n,
|
|
6869
|
-
className: Fi({ disabled: r, state: e }),
|
|
6870
|
-
...t
|
|
6871
|
-
}
|
|
6872
|
-
), Wi = Oi, _i = H(
|
|
6846
|
+
}, fl = Fi, Oi = V(
|
|
6873
6847
|
[
|
|
6874
6848
|
"preflight",
|
|
6875
6849
|
"ds-form-label",
|
|
@@ -6890,16 +6864,17 @@ const Ni = ({
|
|
|
6890
6864
|
}
|
|
6891
6865
|
}
|
|
6892
6866
|
}
|
|
6893
|
-
),
|
|
6894
|
-
|
|
6895
|
-
|
|
6896
|
-
|
|
6897
|
-
|
|
6898
|
-
|
|
6899
|
-
|
|
6900
|
-
|
|
6901
|
-
s
|
|
6902
|
-
|
|
6867
|
+
), _i = (e) => K(Oi(e)), Wi = ({
|
|
6868
|
+
id: e,
|
|
6869
|
+
state: r = "default",
|
|
6870
|
+
disabled: n = !1,
|
|
6871
|
+
htmlFor: t,
|
|
6872
|
+
value: s = "",
|
|
6873
|
+
optionalityLabel: o = ""
|
|
6874
|
+
}) => /* @__PURE__ */ i.jsxs("label", { id: e, htmlFor: t, className: _i({ state: r, disabled: n }), children: [
|
|
6875
|
+
s,
|
|
6876
|
+
o && /* @__PURE__ */ i.jsx("span", { className: "ds-text-sm ds-text-neutrals-darker", children: ` (${o})` })
|
|
6877
|
+
] }), Ii = Wi, Vi = V(
|
|
6903
6878
|
["preflight", "group", "ds-flex", "ds-flex-col", "ds-container"],
|
|
6904
6879
|
{
|
|
6905
6880
|
variants: {
|
|
@@ -6910,7 +6885,7 @@ const Ni = ({
|
|
|
6910
6885
|
}
|
|
6911
6886
|
}
|
|
6912
6887
|
}
|
|
6913
|
-
),
|
|
6888
|
+
), Di = (e) => K(Vi(e)), Hi = V(["ds-form-label", "!ds-font-sans", "ds-text-base"], {
|
|
6914
6889
|
variants: {
|
|
6915
6890
|
state: {
|
|
6916
6891
|
default: ["ds-text-neutrals-black", "ds-mt-2"],
|
|
@@ -6928,7 +6903,7 @@ const Ni = ({
|
|
|
6928
6903
|
true: "!ds-text-neutrals-dark"
|
|
6929
6904
|
}
|
|
6930
6905
|
}
|
|
6931
|
-
}),
|
|
6906
|
+
}), Bi = (e) => K(Hi(e)), zi = ({
|
|
6932
6907
|
id: e,
|
|
6933
6908
|
state: r = "default",
|
|
6934
6909
|
disabled: n = !1,
|
|
@@ -6936,50 +6911,147 @@ const Ni = ({
|
|
|
6936
6911
|
optionalityLabel: s = "",
|
|
6937
6912
|
helpText: o = [],
|
|
6938
6913
|
message: a = "",
|
|
6939
|
-
child: d
|
|
6914
|
+
child: d,
|
|
6915
|
+
isTextarea: c = !1
|
|
6940
6916
|
}) => {
|
|
6941
|
-
let
|
|
6917
|
+
let u = null;
|
|
6942
6918
|
switch (r) {
|
|
6943
6919
|
case "error":
|
|
6944
|
-
|
|
6920
|
+
u = {
|
|
6945
6921
|
name: "error",
|
|
6946
6922
|
color: "ds-text-danger-red"
|
|
6947
6923
|
};
|
|
6948
6924
|
break;
|
|
6949
6925
|
case "success":
|
|
6950
|
-
|
|
6926
|
+
u = {
|
|
6951
6927
|
name: "checkCircle",
|
|
6952
6928
|
color: "ds-text-success-green"
|
|
6953
6929
|
};
|
|
6954
6930
|
break;
|
|
6955
6931
|
}
|
|
6956
|
-
|
|
6932
|
+
const f = t ? "label_" + e : void 0, p = o && o.length > 0 ? "helptext_" + e : void 0;
|
|
6933
|
+
return /* @__PURE__ */ i.jsxs("div", { className: Di({ state: r }), children: [
|
|
6957
6934
|
t && /* @__PURE__ */ i.jsx(
|
|
6958
|
-
|
|
6935
|
+
Ii,
|
|
6959
6936
|
{
|
|
6937
|
+
id: f,
|
|
6960
6938
|
htmlFor: e,
|
|
6961
6939
|
value: t,
|
|
6962
6940
|
optionalityLabel: s,
|
|
6963
6941
|
disabled: n
|
|
6964
6942
|
}
|
|
6965
6943
|
),
|
|
6966
|
-
o && o.length > 1 && /* @__PURE__ */ i.jsx("ul", { className: "ds-mt-2 ds-pb-1 ds-pl-6", children: o == null ? void 0 : o.map((
|
|
6967
|
-
o && o.length === 1 && /* @__PURE__ */ i.jsx("p", { className: "ds-mt-2 ds-pb-1 ds-text-neutrals-dark", children: o }),
|
|
6944
|
+
o && o.length > 1 && /* @__PURE__ */ i.jsx("ul", { id: p, className: "ds-mt-2 ds-pb-1 ds-pl-6", children: o == null ? void 0 : o.map((m, v) => /* @__PURE__ */ i.jsx("li", { className: "ds-list-disc ds-text-neutrals-dark", children: m }, v)) }),
|
|
6945
|
+
o && o.length === 1 && /* @__PURE__ */ i.jsx("p", { id: p, className: "ds-mt-2 ds-pb-1 ds-text-neutrals-dark", children: o }),
|
|
6968
6946
|
/* @__PURE__ */ i.jsxs("div", { className: "ds-mt-2 ds-flex ds-gap-2", children: [
|
|
6969
|
-
/* @__PURE__ */ i.jsx("div", { className: "ds-w-[calc(100%-2rem)]", children: d }),
|
|
6970
|
-
/* @__PURE__ */ i.jsx("div", { className: "ds-pt-2", children:
|
|
6947
|
+
/* @__PURE__ */ i.jsx("div", { className: c ? "" : "ds-w-[calc(100%-2rem)]", children: d }),
|
|
6948
|
+
/* @__PURE__ */ i.jsx("div", { className: "ds-pt-2", children: u && /* @__PURE__ */ i.jsx(
|
|
6971
6949
|
Ve,
|
|
6972
6950
|
{
|
|
6973
|
-
name:
|
|
6951
|
+
name: u.name,
|
|
6974
6952
|
size: "medium",
|
|
6975
|
-
className:
|
|
6953
|
+
className: u.color,
|
|
6976
6954
|
role: "graphics-symbol"
|
|
6977
6955
|
}
|
|
6978
6956
|
) })
|
|
6979
6957
|
] }),
|
|
6980
|
-
|
|
6958
|
+
u && /* @__PURE__ */ i.jsx("p", { className: Bi({ state: r }), children: a })
|
|
6981
6959
|
] });
|
|
6982
|
-
},
|
|
6960
|
+
}, xn = zi, Ui = V(
|
|
6961
|
+
[
|
|
6962
|
+
"preflight",
|
|
6963
|
+
"ds-form-input",
|
|
6964
|
+
"ds-rounded",
|
|
6965
|
+
"ds-p-2",
|
|
6966
|
+
"ds-border-[1px]",
|
|
6967
|
+
"!ds-font-sans"
|
|
6968
|
+
],
|
|
6969
|
+
Zt
|
|
6970
|
+
), Gi = (e) => K(Ui(e)), Yi = ({
|
|
6971
|
+
state: e = "default",
|
|
6972
|
+
rows: r = 2,
|
|
6973
|
+
cols: n = 50,
|
|
6974
|
+
isResizable: t = !0,
|
|
6975
|
+
disabled: s = !1,
|
|
6976
|
+
...o
|
|
6977
|
+
}) => /* @__PURE__ */ i.jsx(
|
|
6978
|
+
"textarea",
|
|
6979
|
+
{
|
|
6980
|
+
"aria-invalid": e == "error",
|
|
6981
|
+
rows: r,
|
|
6982
|
+
cols: n,
|
|
6983
|
+
readOnly: s,
|
|
6984
|
+
className: Gi({ disabled: s, state: e }),
|
|
6985
|
+
style: {
|
|
6986
|
+
resize: t ? "both" : "none"
|
|
6987
|
+
},
|
|
6988
|
+
...o
|
|
6989
|
+
}
|
|
6990
|
+
), Zi = Yi, qi = ({
|
|
6991
|
+
id: e,
|
|
6992
|
+
state: r = "default",
|
|
6993
|
+
label: n,
|
|
6994
|
+
rows: t = 2,
|
|
6995
|
+
cols: s = 50,
|
|
6996
|
+
isResizable: o = !0,
|
|
6997
|
+
optionalityLabel: a = "",
|
|
6998
|
+
helpText: d = [],
|
|
6999
|
+
message: c = "",
|
|
7000
|
+
disabled: u = !1,
|
|
7001
|
+
...f
|
|
7002
|
+
}) => /* @__PURE__ */ i.jsx(
|
|
7003
|
+
xn,
|
|
7004
|
+
{
|
|
7005
|
+
id: e,
|
|
7006
|
+
state: r,
|
|
7007
|
+
disabled: u,
|
|
7008
|
+
label: n,
|
|
7009
|
+
optionalityLabel: a,
|
|
7010
|
+
helpText: d,
|
|
7011
|
+
message: c,
|
|
7012
|
+
isTextarea: !0,
|
|
7013
|
+
child: /* @__PURE__ */ i.jsx(
|
|
7014
|
+
Zi,
|
|
7015
|
+
{
|
|
7016
|
+
id: e,
|
|
7017
|
+
"aria-labelledby": n ? "label_" + e : void 0,
|
|
7018
|
+
"aria-describedby": d && d.length > 0 ? "helptext_" + e : void 0,
|
|
7019
|
+
state: r,
|
|
7020
|
+
rows: t,
|
|
7021
|
+
cols: s,
|
|
7022
|
+
isResizable: o,
|
|
7023
|
+
disabled: u,
|
|
7024
|
+
...f
|
|
7025
|
+
}
|
|
7026
|
+
)
|
|
7027
|
+
}
|
|
7028
|
+
), pl = qi, Ki = V(
|
|
7029
|
+
[
|
|
7030
|
+
"preflight",
|
|
7031
|
+
"ds-form-input",
|
|
7032
|
+
"ds-h-[40px]",
|
|
7033
|
+
"ds-rounded",
|
|
7034
|
+
"ds-p-2",
|
|
7035
|
+
"ds-border-[1px]",
|
|
7036
|
+
"!ds-font-sans",
|
|
7037
|
+
"ds-container"
|
|
7038
|
+
],
|
|
7039
|
+
Zt
|
|
7040
|
+
), Ji = (e) => K(Ki(e)), Xi = ({
|
|
7041
|
+
state: e = "default",
|
|
7042
|
+
disabled: r = !1,
|
|
7043
|
+
type: n = "text",
|
|
7044
|
+
...t
|
|
7045
|
+
}) => /* @__PURE__ */ i.jsx(
|
|
7046
|
+
"input",
|
|
7047
|
+
{
|
|
7048
|
+
"aria-disabled": r,
|
|
7049
|
+
readOnly: r,
|
|
7050
|
+
type: n,
|
|
7051
|
+
className: Ji({ disabled: r, state: e }),
|
|
7052
|
+
...t
|
|
7053
|
+
}
|
|
7054
|
+
), Qi = Xi, el = ({
|
|
6983
7055
|
id: e,
|
|
6984
7056
|
state: r = "default",
|
|
6985
7057
|
disabled: n = !1,
|
|
@@ -6990,7 +7062,7 @@ const Ni = ({
|
|
|
6990
7062
|
message: d = "",
|
|
6991
7063
|
...c
|
|
6992
7064
|
}) => /* @__PURE__ */ i.jsx(
|
|
6993
|
-
|
|
7065
|
+
xn,
|
|
6994
7066
|
{
|
|
6995
7067
|
id: e,
|
|
6996
7068
|
state: r,
|
|
@@ -6999,23 +7071,36 @@ const Ni = ({
|
|
|
6999
7071
|
optionalityLabel: o,
|
|
7000
7072
|
helpText: a,
|
|
7001
7073
|
message: d,
|
|
7002
|
-
child: /* @__PURE__ */ i.jsx(
|
|
7074
|
+
child: /* @__PURE__ */ i.jsx(
|
|
7075
|
+
Qi,
|
|
7076
|
+
{
|
|
7077
|
+
id: e,
|
|
7078
|
+
"aria-labelledby": s ? "label_" + e : void 0,
|
|
7079
|
+
"aria-describedby": a && a.length > 0 ? "helptext_" + e : void 0,
|
|
7080
|
+
type: t,
|
|
7081
|
+
state: r,
|
|
7082
|
+
disabled: n,
|
|
7083
|
+
...c
|
|
7084
|
+
}
|
|
7085
|
+
)
|
|
7003
7086
|
}
|
|
7004
|
-
),
|
|
7087
|
+
), hl = el;
|
|
7005
7088
|
export {
|
|
7006
|
-
|
|
7007
|
-
|
|
7008
|
-
|
|
7009
|
-
|
|
7010
|
-
|
|
7011
|
-
|
|
7089
|
+
sl as Alert,
|
|
7090
|
+
fl as Badge,
|
|
7091
|
+
ol as Button,
|
|
7092
|
+
al as Card,
|
|
7093
|
+
il as Checkbox,
|
|
7094
|
+
qt as Heading,
|
|
7012
7095
|
Ve as Icon,
|
|
7013
7096
|
Kr as IconButton,
|
|
7014
|
-
|
|
7015
|
-
|
|
7016
|
-
|
|
7017
|
-
|
|
7018
|
-
|
|
7019
|
-
|
|
7097
|
+
Ii as LabelAtom,
|
|
7098
|
+
dl as Link,
|
|
7099
|
+
ul as Modal,
|
|
7100
|
+
ll as Radio,
|
|
7101
|
+
hl as TextInput,
|
|
7102
|
+
Qi as TextInputAtom,
|
|
7103
|
+
pl as Textarea,
|
|
7104
|
+
Zi as TextareaAtom
|
|
7020
7105
|
};
|
|
7021
7106
|
//# sourceMappingURL=index.es.js.map
|