@takecasper/acuity-design-system 1.27.4 → 1.27.5
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/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.es.js +325 -323
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./assets/index.css";
|
|
2
2
|
import * as or from "react";
|
|
3
|
-
import k, { useState as X, useEffect as ne, useLayoutEffect as
|
|
4
|
-
import { createPortal as
|
|
3
|
+
import k, { useState as X, useEffect as ne, useLayoutEffect as Un, useRef as P, createContext as fe, useContext as se, forwardRef as Kr, Fragment as ue, isValidElement as Gn, cloneElement as Zn, createElement as Yn, useId as jr, useMemo as de, useSyncExternalStore as qn, useReducer as Kn, createRef as Jn, useCallback as gr } from "react";
|
|
4
|
+
import { createPortal as _t } from "react-dom";
|
|
5
5
|
var Vr = { exports: {} }, er = {};
|
|
6
6
|
/**
|
|
7
7
|
* @license React
|
|
@@ -12,11 +12,11 @@ var Vr = { exports: {} }, er = {};
|
|
|
12
12
|
* This source code is licensed under the MIT license found in the
|
|
13
13
|
* LICENSE file in the root directory of this source tree.
|
|
14
14
|
*/
|
|
15
|
-
var
|
|
15
|
+
var Et;
|
|
16
16
|
function Xn() {
|
|
17
|
-
if (
|
|
17
|
+
if (Et)
|
|
18
18
|
return er;
|
|
19
|
-
|
|
19
|
+
Et = 1;
|
|
20
20
|
var e = k, 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(l, c, f) {
|
|
22
22
|
var u, p = {}, m = null, g = null;
|
|
@@ -40,9 +40,9 @@ var rr = {};
|
|
|
40
40
|
* This source code is licensed under the MIT license found in the
|
|
41
41
|
* LICENSE file in the root directory of this source tree.
|
|
42
42
|
*/
|
|
43
|
-
var
|
|
43
|
+
var $t;
|
|
44
44
|
function Qn() {
|
|
45
|
-
return
|
|
45
|
+
return $t || ($t = 1, process.env.NODE_ENV !== "production" && function() {
|
|
46
46
|
var e = k, 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"), l = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), g = Symbol.for("react.offscreen"), v = Symbol.iterator, C = "@@iterator";
|
|
47
47
|
function x(d) {
|
|
48
48
|
if (d === null || typeof d != "object")
|
|
@@ -281,13 +281,13 @@ function Qn() {
|
|
|
281
281
|
} finally {
|
|
282
282
|
Je = !1, te.current = R, Ke(), Error.prepareStackTrace = N;
|
|
283
283
|
}
|
|
284
|
-
var He = d ? d.displayName || d.name : "",
|
|
285
|
-
return typeof d == "function" && je.set(d,
|
|
284
|
+
var He = d ? d.displayName || d.name : "", Lt = He ? Z(He) : "";
|
|
285
|
+
return typeof d == "function" && je.set(d, Lt), Lt;
|
|
286
286
|
}
|
|
287
287
|
function Xe(d, h, b) {
|
|
288
288
|
return Ce(d, !1);
|
|
289
289
|
}
|
|
290
|
-
function
|
|
290
|
+
function jn(d) {
|
|
291
291
|
var h = d.prototype;
|
|
292
292
|
return !!(h && h.isReactComponent);
|
|
293
293
|
}
|
|
@@ -295,7 +295,7 @@ function Qn() {
|
|
|
295
295
|
if (d == null)
|
|
296
296
|
return "";
|
|
297
297
|
if (typeof d == "function")
|
|
298
|
-
return Ce(d,
|
|
298
|
+
return Ce(d, jn(d));
|
|
299
299
|
if (typeof d == "string")
|
|
300
300
|
return Z(d);
|
|
301
301
|
switch (d) {
|
|
@@ -320,15 +320,15 @@ function Qn() {
|
|
|
320
320
|
}
|
|
321
321
|
return "";
|
|
322
322
|
}
|
|
323
|
-
var hr = Object.prototype.hasOwnProperty,
|
|
323
|
+
var hr = Object.prototype.hasOwnProperty, pt = {}, ht = w.ReactDebugCurrentFrame;
|
|
324
324
|
function mr(d) {
|
|
325
325
|
if (d) {
|
|
326
326
|
var h = d._owner, b = pr(d.type, d._source, h ? h.type : null);
|
|
327
|
-
|
|
327
|
+
ht.setExtraStackFrame(b);
|
|
328
328
|
} else
|
|
329
|
-
|
|
329
|
+
ht.setExtraStackFrame(null);
|
|
330
330
|
}
|
|
331
|
-
function
|
|
331
|
+
function Ln(d, h, b, y, N) {
|
|
332
332
|
{
|
|
333
333
|
var R = Function.call.bind(hr);
|
|
334
334
|
for (var M in d)
|
|
@@ -343,42 +343,42 @@ function Qn() {
|
|
|
343
343
|
} catch (D) {
|
|
344
344
|
E = D;
|
|
345
345
|
}
|
|
346
|
-
E && !(E instanceof Error) && (mr(N), j("%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).", y || "React class", b, M, typeof E), mr(null)), E instanceof Error && !(E.message in
|
|
346
|
+
E && !(E instanceof Error) && (mr(N), j("%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).", y || "React class", b, M, typeof E), mr(null)), E instanceof Error && !(E.message in pt) && (pt[E.message] = !0, mr(N), j("Failed %s type: %s", b, E.message), mr(null));
|
|
347
347
|
}
|
|
348
348
|
}
|
|
349
349
|
}
|
|
350
|
-
var
|
|
350
|
+
var En = Array.isArray;
|
|
351
351
|
function Tr(d) {
|
|
352
|
-
return
|
|
352
|
+
return En(d);
|
|
353
353
|
}
|
|
354
|
-
function
|
|
354
|
+
function $n(d) {
|
|
355
355
|
{
|
|
356
356
|
var h = typeof Symbol == "function" && Symbol.toStringTag, b = h && d[Symbol.toStringTag] || d.constructor.name || "Object";
|
|
357
357
|
return b;
|
|
358
358
|
}
|
|
359
359
|
}
|
|
360
|
-
function
|
|
360
|
+
function Mn(d) {
|
|
361
361
|
try {
|
|
362
|
-
return
|
|
362
|
+
return mt(d), !1;
|
|
363
363
|
} catch (h) {
|
|
364
364
|
return !0;
|
|
365
365
|
}
|
|
366
366
|
}
|
|
367
|
-
function
|
|
367
|
+
function mt(d) {
|
|
368
368
|
return "" + d;
|
|
369
369
|
}
|
|
370
|
-
function
|
|
371
|
-
if (
|
|
372
|
-
return j("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",
|
|
370
|
+
function gt(d) {
|
|
371
|
+
if (Mn(d))
|
|
372
|
+
return j("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", $n(d)), mt(d);
|
|
373
373
|
}
|
|
374
|
-
var Qe = w.ReactCurrentOwner,
|
|
374
|
+
var Qe = w.ReactCurrentOwner, Nn = {
|
|
375
375
|
key: !0,
|
|
376
376
|
ref: !0,
|
|
377
377
|
__self: !0,
|
|
378
378
|
__source: !0
|
|
379
|
-
},
|
|
379
|
+
}, bt, vt, Sr;
|
|
380
380
|
Sr = {};
|
|
381
|
-
function
|
|
381
|
+
function Tn(d) {
|
|
382
382
|
if (hr.call(d, "ref")) {
|
|
383
383
|
var h = Object.getOwnPropertyDescriptor(d, "ref").get;
|
|
384
384
|
if (h && h.isReactWarning)
|
|
@@ -386,7 +386,7 @@ function Qn() {
|
|
|
386
386
|
}
|
|
387
387
|
return d.ref !== void 0;
|
|
388
388
|
}
|
|
389
|
-
function
|
|
389
|
+
function Sn(d) {
|
|
390
390
|
if (hr.call(d, "key")) {
|
|
391
391
|
var h = Object.getOwnPropertyDescriptor(d, "key").get;
|
|
392
392
|
if (h && h.isReactWarning)
|
|
@@ -394,16 +394,16 @@ function Qn() {
|
|
|
394
394
|
}
|
|
395
395
|
return d.key !== void 0;
|
|
396
396
|
}
|
|
397
|
-
function
|
|
397
|
+
function Rn(d, h) {
|
|
398
398
|
if (typeof d.ref == "string" && Qe.current && h && Qe.current.stateNode !== h) {
|
|
399
399
|
var b = V(Qe.current.type);
|
|
400
400
|
Sr[b] || (j('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', V(Qe.current.type), d.ref), Sr[b] = !0);
|
|
401
401
|
}
|
|
402
402
|
}
|
|
403
|
-
function
|
|
403
|
+
function An(d, h) {
|
|
404
404
|
{
|
|
405
405
|
var b = function() {
|
|
406
|
-
|
|
406
|
+
bt || (bt = !0, j("%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
408
|
b.isReactWarning = !0, Object.defineProperty(d, "key", {
|
|
409
409
|
get: b,
|
|
@@ -411,10 +411,10 @@ function Qn() {
|
|
|
411
411
|
});
|
|
412
412
|
}
|
|
413
413
|
}
|
|
414
|
-
function
|
|
414
|
+
function Pn(d, h) {
|
|
415
415
|
{
|
|
416
416
|
var b = function() {
|
|
417
|
-
|
|
417
|
+
vt || (vt = !0, j("%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
419
|
b.isReactWarning = !0, Object.defineProperty(d, "ref", {
|
|
420
420
|
get: b,
|
|
@@ -422,7 +422,7 @@ function Qn() {
|
|
|
422
422
|
});
|
|
423
423
|
}
|
|
424
424
|
}
|
|
425
|
-
var
|
|
425
|
+
var Fn = function(d, h, b, y, N, R, M) {
|
|
426
426
|
var E = {
|
|
427
427
|
// This tag allows us to uniquely identify this as a React Element
|
|
428
428
|
$$typeof: r,
|
|
@@ -451,12 +451,12 @@ function Qn() {
|
|
|
451
451
|
value: N
|
|
452
452
|
}), Object.freeze && (Object.freeze(E.props), Object.freeze(E)), E;
|
|
453
453
|
};
|
|
454
|
-
function
|
|
454
|
+
function On(d, h, b, y, N) {
|
|
455
455
|
{
|
|
456
456
|
var R, M = {}, E = null, Q = null;
|
|
457
|
-
b !== void 0 && (
|
|
457
|
+
b !== void 0 && (gt(b), E = "" + b), Sn(h) && (gt(h.key), E = "" + h.key), Tn(h) && (Q = h.ref, Rn(h, N));
|
|
458
458
|
for (R in h)
|
|
459
|
-
hr.call(h, R) && !
|
|
459
|
+
hr.call(h, R) && !Nn.hasOwnProperty(R) && (M[R] = h[R]);
|
|
460
460
|
if (d && d.defaultProps) {
|
|
461
461
|
var D = d.defaultProps;
|
|
462
462
|
for (R in D)
|
|
@@ -464,25 +464,25 @@ function Qn() {
|
|
|
464
464
|
}
|
|
465
465
|
if (E || Q) {
|
|
466
466
|
var B = typeof d == "function" ? d.displayName || d.name || "Unknown" : d;
|
|
467
|
-
E &&
|
|
467
|
+
E && An(M, B), Q && Pn(M, B);
|
|
468
468
|
}
|
|
469
|
-
return
|
|
469
|
+
return Fn(d, E, Q, N, y, Qe.current, M);
|
|
470
470
|
}
|
|
471
471
|
}
|
|
472
|
-
var Rr = w.ReactCurrentOwner,
|
|
472
|
+
var Rr = w.ReactCurrentOwner, xt = w.ReactDebugCurrentFrame;
|
|
473
473
|
function Be(d) {
|
|
474
474
|
if (d) {
|
|
475
475
|
var h = d._owner, b = pr(d.type, d._source, h ? h.type : null);
|
|
476
|
-
|
|
476
|
+
xt.setExtraStackFrame(b);
|
|
477
477
|
} else
|
|
478
|
-
|
|
478
|
+
xt.setExtraStackFrame(null);
|
|
479
479
|
}
|
|
480
480
|
var Ar;
|
|
481
481
|
Ar = !1;
|
|
482
482
|
function Pr(d) {
|
|
483
483
|
return typeof d == "object" && d !== null && d.$$typeof === r;
|
|
484
484
|
}
|
|
485
|
-
function
|
|
485
|
+
function Ct() {
|
|
486
486
|
{
|
|
487
487
|
if (Rr.current) {
|
|
488
488
|
var d = V(Rr.current.type);
|
|
@@ -494,7 +494,7 @@ Check the render method of \`` + d + "`.";
|
|
|
494
494
|
return "";
|
|
495
495
|
}
|
|
496
496
|
}
|
|
497
|
-
function
|
|
497
|
+
function Wn(d) {
|
|
498
498
|
{
|
|
499
499
|
if (d !== void 0) {
|
|
500
500
|
var h = d.fileName.replace(/^.*[\\\/]/, ""), b = d.lineNumber;
|
|
@@ -505,10 +505,10 @@ Check your code at ` + h + ":" + b + ".";
|
|
|
505
505
|
return "";
|
|
506
506
|
}
|
|
507
507
|
}
|
|
508
|
-
var
|
|
509
|
-
function
|
|
508
|
+
var wt = {};
|
|
509
|
+
function _n(d) {
|
|
510
510
|
{
|
|
511
|
-
var h =
|
|
511
|
+
var h = Ct();
|
|
512
512
|
if (!h) {
|
|
513
513
|
var b = typeof d == "string" ? d : d.displayName || d.name;
|
|
514
514
|
b && (h = `
|
|
@@ -518,27 +518,27 @@ Check the top-level render call using <` + b + ">.");
|
|
|
518
518
|
return h;
|
|
519
519
|
}
|
|
520
520
|
}
|
|
521
|
-
function
|
|
521
|
+
function kt(d, h) {
|
|
522
522
|
{
|
|
523
523
|
if (!d._store || d._store.validated || d.key != null)
|
|
524
524
|
return;
|
|
525
525
|
d._store.validated = !0;
|
|
526
|
-
var b =
|
|
527
|
-
if (
|
|
526
|
+
var b = _n(h);
|
|
527
|
+
if (wt[b])
|
|
528
528
|
return;
|
|
529
|
-
|
|
529
|
+
wt[b] = !0;
|
|
530
530
|
var y = "";
|
|
531
531
|
d && d._owner && d._owner !== Rr.current && (y = " It was passed a child from " + V(d._owner.type) + "."), Be(d), j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', b, y), Be(null);
|
|
532
532
|
}
|
|
533
533
|
}
|
|
534
|
-
function
|
|
534
|
+
function yt(d, h) {
|
|
535
535
|
{
|
|
536
536
|
if (typeof d != "object")
|
|
537
537
|
return;
|
|
538
538
|
if (Tr(d))
|
|
539
539
|
for (var b = 0; b < d.length; b++) {
|
|
540
540
|
var y = d[b];
|
|
541
|
-
Pr(y) &&
|
|
541
|
+
Pr(y) && kt(y, h);
|
|
542
542
|
}
|
|
543
543
|
else if (Pr(d))
|
|
544
544
|
d._store && (d._store.validated = !0);
|
|
@@ -546,11 +546,11 @@ Check the top-level render call using <` + b + ">.");
|
|
|
546
546
|
var N = x(d);
|
|
547
547
|
if (typeof N == "function" && N !== d.entries)
|
|
548
548
|
for (var R = N.call(d), M; !(M = R.next()).done; )
|
|
549
|
-
Pr(M.value) &&
|
|
549
|
+
Pr(M.value) && kt(M.value, h);
|
|
550
550
|
}
|
|
551
551
|
}
|
|
552
552
|
}
|
|
553
|
-
function
|
|
553
|
+
function Vn(d) {
|
|
554
554
|
{
|
|
555
555
|
var h = d.type;
|
|
556
556
|
if (h == null || typeof h == "string")
|
|
@@ -566,7 +566,7 @@ Check the top-level render call using <` + b + ">.");
|
|
|
566
566
|
return;
|
|
567
567
|
if (b) {
|
|
568
568
|
var y = V(h);
|
|
569
|
-
|
|
569
|
+
Ln(b, d.props, "prop", y, d);
|
|
570
570
|
} else if (h.PropTypes !== void 0 && !Ar) {
|
|
571
571
|
Ar = !0;
|
|
572
572
|
var N = V(h);
|
|
@@ -575,7 +575,7 @@ Check the top-level render call using <` + b + ">.");
|
|
|
575
575
|
typeof h.getDefaultProps == "function" && !h.getDefaultProps.isReactClassApproved && j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
576
576
|
}
|
|
577
577
|
}
|
|
578
|
-
function
|
|
578
|
+
function In(d) {
|
|
579
579
|
{
|
|
580
580
|
for (var h = Object.keys(d.props), b = 0; b < h.length; b++) {
|
|
581
581
|
var y = h[b];
|
|
@@ -587,18 +587,18 @@ Check the top-level render call using <` + b + ">.");
|
|
|
587
587
|
d.ref !== null && (Be(d), j("Invalid attribute `ref` supplied to `React.Fragment`."), Be(null));
|
|
588
588
|
}
|
|
589
589
|
}
|
|
590
|
-
function
|
|
590
|
+
function jt(d, h, b, y, N, R) {
|
|
591
591
|
{
|
|
592
592
|
var M = K(d);
|
|
593
593
|
if (!M) {
|
|
594
594
|
var E = "";
|
|
595
595
|
(d === void 0 || typeof d == "object" && d !== null && Object.keys(d).length === 0) && (E += " 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 Q =
|
|
597
|
-
Q ? E += Q : E +=
|
|
596
|
+
var Q = Wn(N);
|
|
597
|
+
Q ? E += Q : E += Ct();
|
|
598
598
|
var D;
|
|
599
599
|
d === null ? D = "null" : Tr(d) ? D = "array" : d !== void 0 && d.$$typeof === r ? (D = "<" + (V(d.type) || "Unknown") + " />", E = " Did you accidentally export a JSX literal instead of a component?") : D = typeof d, j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", D, E);
|
|
600
600
|
}
|
|
601
|
-
var B =
|
|
601
|
+
var B = On(d, h, b, N, R);
|
|
602
602
|
if (B == null)
|
|
603
603
|
return B;
|
|
604
604
|
if (M) {
|
|
@@ -607,24 +607,24 @@ Check the top-level render call using <` + b + ">.");
|
|
|
607
607
|
if (y)
|
|
608
608
|
if (Tr(ce)) {
|
|
609
609
|
for (var He = 0; He < ce.length; He++)
|
|
610
|
-
|
|
610
|
+
yt(ce[He], d);
|
|
611
611
|
Object.freeze && Object.freeze(ce);
|
|
612
612
|
} else
|
|
613
613
|
j("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
614
614
|
else
|
|
615
|
-
|
|
615
|
+
yt(ce, d);
|
|
616
616
|
}
|
|
617
|
-
return d === t ?
|
|
617
|
+
return d === t ? In(B) : Vn(B), B;
|
|
618
618
|
}
|
|
619
619
|
}
|
|
620
|
-
function In(d, h, b) {
|
|
621
|
-
return yt(d, h, b, !0);
|
|
622
|
-
}
|
|
623
620
|
function Dn(d, h, b) {
|
|
624
|
-
return
|
|
621
|
+
return jt(d, h, b, !0);
|
|
622
|
+
}
|
|
623
|
+
function Bn(d, h, b) {
|
|
624
|
+
return jt(d, h, b, !1);
|
|
625
625
|
}
|
|
626
|
-
var
|
|
627
|
-
rr.Fragment = t, rr.jsx =
|
|
626
|
+
var Hn = Bn, zn = Dn;
|
|
627
|
+
rr.Fragment = t, rr.jsx = Hn, rr.jsxs = zn;
|
|
628
628
|
}()), rr;
|
|
629
629
|
}
|
|
630
630
|
process.env.NODE_ENV === "production" ? Vr.exports = Xn() : Vr.exports = Qn();
|
|
@@ -697,7 +697,7 @@ const es = ({
|
|
|
697
697
|
]
|
|
698
698
|
}
|
|
699
699
|
);
|
|
700
|
-
},
|
|
700
|
+
}, Jr = es, rs = ({
|
|
701
701
|
width: e = "24",
|
|
702
702
|
height: r = "24",
|
|
703
703
|
className: n = "",
|
|
@@ -745,7 +745,7 @@ const es = ({
|
|
|
745
745
|
]
|
|
746
746
|
}
|
|
747
747
|
);
|
|
748
|
-
},
|
|
748
|
+
}, Xr = rs, ts = ({
|
|
749
749
|
width: e = "24",
|
|
750
750
|
height: r = "24",
|
|
751
751
|
className: n = "",
|
|
@@ -809,7 +809,7 @@ const es = ({
|
|
|
809
809
|
]
|
|
810
810
|
}
|
|
811
811
|
);
|
|
812
|
-
},
|
|
812
|
+
}, Qr = ts, ns = ({
|
|
813
813
|
width: e = "24",
|
|
814
814
|
height: r = "24",
|
|
815
815
|
className: n = "",
|
|
@@ -867,7 +867,7 @@ const es = ({
|
|
|
867
867
|
]
|
|
868
868
|
}
|
|
869
869
|
);
|
|
870
|
-
},
|
|
870
|
+
}, et = ns, ss = ({
|
|
871
871
|
width: e = "24",
|
|
872
872
|
height: r = "24",
|
|
873
873
|
className: n = "",
|
|
@@ -2299,14 +2299,14 @@ const es = ({
|
|
|
2299
2299
|
}
|
|
2300
2300
|
);
|
|
2301
2301
|
}, qs = Ys;
|
|
2302
|
-
function
|
|
2302
|
+
function Vt(e) {
|
|
2303
2303
|
var r, n, t = "";
|
|
2304
2304
|
if (typeof e == "string" || typeof e == "number")
|
|
2305
2305
|
t += e;
|
|
2306
2306
|
else if (typeof e == "object")
|
|
2307
2307
|
if (Array.isArray(e))
|
|
2308
2308
|
for (r = 0; r < e.length; r++)
|
|
2309
|
-
e[r] && (n =
|
|
2309
|
+
e[r] && (n = Vt(e[r])) && (t && (t += " "), t += n);
|
|
2310
2310
|
else
|
|
2311
2311
|
for (r in e)
|
|
2312
2312
|
e[r] && (t && (t += " "), t += r);
|
|
@@ -2314,18 +2314,18 @@ function _t(e) {
|
|
|
2314
2314
|
}
|
|
2315
2315
|
function Ks() {
|
|
2316
2316
|
for (var e, r, n = 0, t = ""; n < arguments.length; )
|
|
2317
|
-
(e = arguments[n++]) && (r =
|
|
2317
|
+
(e = arguments[n++]) && (r = Vt(e)) && (t && (t += " "), t += r);
|
|
2318
2318
|
return t;
|
|
2319
2319
|
}
|
|
2320
|
-
const
|
|
2320
|
+
const Mt = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, Nt = Ks, A = (e, r) => (n) => {
|
|
2321
2321
|
var t;
|
|
2322
2322
|
if ((r == null ? void 0 : r.variants) == null)
|
|
2323
|
-
return
|
|
2323
|
+
return Nt(e, n == null ? void 0 : n.class, n == null ? void 0 : n.className);
|
|
2324
2324
|
const { variants: s, defaultVariants: o } = r, a = Object.keys(s).map((f) => {
|
|
2325
2325
|
const u = n == null ? void 0 : n[f], p = o == null ? void 0 : o[f];
|
|
2326
2326
|
if (u === null)
|
|
2327
2327
|
return null;
|
|
2328
|
-
const m =
|
|
2328
|
+
const m = Mt(u) || Mt(p);
|
|
2329
2329
|
return s[f][m];
|
|
2330
2330
|
}), l = n && Object.entries(n).reduce((f, u) => {
|
|
2331
2331
|
let [p, m] = u;
|
|
@@ -2347,16 +2347,16 @@ const $t = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, Mt =
|
|
|
2347
2347
|
m
|
|
2348
2348
|
] : f;
|
|
2349
2349
|
}, []);
|
|
2350
|
-
return
|
|
2351
|
-
},
|
|
2350
|
+
return Nt(e, a, c, n == null ? void 0 : n.class, n == null ? void 0 : n.className);
|
|
2351
|
+
}, rt = "-";
|
|
2352
2352
|
function Js(e) {
|
|
2353
2353
|
const r = Qs(e), {
|
|
2354
2354
|
conflictingClassGroups: n,
|
|
2355
2355
|
conflictingClassGroupModifiers: t
|
|
2356
2356
|
} = e;
|
|
2357
2357
|
function s(a) {
|
|
2358
|
-
const l = a.split(
|
|
2359
|
-
return l[0] === "" && l.length !== 1 && l.shift(),
|
|
2358
|
+
const l = a.split(rt);
|
|
2359
|
+
return l[0] === "" && l.length !== 1 && l.shift(), It(l, r) || Xs(a);
|
|
2360
2360
|
}
|
|
2361
2361
|
function o(a, l) {
|
|
2362
2362
|
const c = n[a] || [];
|
|
@@ -2367,24 +2367,24 @@ function Js(e) {
|
|
|
2367
2367
|
getConflictingClassGroupIds: o
|
|
2368
2368
|
};
|
|
2369
2369
|
}
|
|
2370
|
-
function
|
|
2370
|
+
function It(e, r) {
|
|
2371
2371
|
var a;
|
|
2372
2372
|
if (e.length === 0)
|
|
2373
2373
|
return r.classGroupId;
|
|
2374
|
-
const n = e[0], t = r.nextPart.get(n), s = t ?
|
|
2374
|
+
const n = e[0], t = r.nextPart.get(n), s = t ? It(e.slice(1), t) : void 0;
|
|
2375
2375
|
if (s)
|
|
2376
2376
|
return s;
|
|
2377
2377
|
if (r.validators.length === 0)
|
|
2378
2378
|
return;
|
|
2379
|
-
const o = e.join(
|
|
2379
|
+
const o = e.join(rt);
|
|
2380
2380
|
return (a = r.validators.find(({
|
|
2381
2381
|
validator: l
|
|
2382
2382
|
}) => l(o))) == null ? void 0 : a.classGroupId;
|
|
2383
2383
|
}
|
|
2384
|
-
const
|
|
2384
|
+
const Tt = /^\[(.+)\]$/;
|
|
2385
2385
|
function Xs(e) {
|
|
2386
|
-
if (
|
|
2387
|
-
const r =
|
|
2386
|
+
if (Tt.test(e)) {
|
|
2387
|
+
const r = Tt.exec(e)[1], n = r == null ? void 0 : r.substring(0, r.indexOf(":"));
|
|
2388
2388
|
if (n)
|
|
2389
2389
|
return "arbitrary.." + n;
|
|
2390
2390
|
}
|
|
@@ -2404,7 +2404,7 @@ function Qs(e) {
|
|
|
2404
2404
|
function Ir(e, r, n, t) {
|
|
2405
2405
|
e.forEach((s) => {
|
|
2406
2406
|
if (typeof s == "string") {
|
|
2407
|
-
const o = s === "" ? r :
|
|
2407
|
+
const o = s === "" ? r : St(r, s);
|
|
2408
2408
|
o.classGroupId = n;
|
|
2409
2409
|
return;
|
|
2410
2410
|
}
|
|
@@ -2420,13 +2420,13 @@ function Ir(e, r, n, t) {
|
|
|
2420
2420
|
return;
|
|
2421
2421
|
}
|
|
2422
2422
|
Object.entries(s).forEach(([o, a]) => {
|
|
2423
|
-
Ir(a,
|
|
2423
|
+
Ir(a, St(r, o), n, t);
|
|
2424
2424
|
});
|
|
2425
2425
|
});
|
|
2426
2426
|
}
|
|
2427
|
-
function
|
|
2427
|
+
function St(e, r) {
|
|
2428
2428
|
let n = e;
|
|
2429
|
-
return r.split(
|
|
2429
|
+
return r.split(rt).forEach((t) => {
|
|
2430
2430
|
n.nextPart.has(t) || n.nextPart.set(t, {
|
|
2431
2431
|
nextPart: /* @__PURE__ */ new Map(),
|
|
2432
2432
|
validators: []
|
|
@@ -2467,7 +2467,7 @@ function to(e) {
|
|
|
2467
2467
|
}
|
|
2468
2468
|
};
|
|
2469
2469
|
}
|
|
2470
|
-
const
|
|
2470
|
+
const Dt = "!";
|
|
2471
2471
|
function no(e) {
|
|
2472
2472
|
const r = e.separator, n = r.length === 1, t = r[0], s = r.length;
|
|
2473
2473
|
return function(a) {
|
|
@@ -2487,7 +2487,7 @@ function no(e) {
|
|
|
2487
2487
|
}
|
|
2488
2488
|
x === "[" ? c++ : x === "]" && c--;
|
|
2489
2489
|
}
|
|
2490
|
-
const p = l.length === 0 ? a : a.substring(f), m = p.startsWith(
|
|
2490
|
+
const p = l.length === 0 ? a : a.substring(f), m = p.startsWith(Dt), g = m ? p.substring(1) : p, v = u && u > f ? u - f : void 0;
|
|
2491
2491
|
return {
|
|
2492
2492
|
modifiers: l,
|
|
2493
2493
|
hasImportantModifier: m,
|
|
@@ -2543,7 +2543,7 @@ function io(e, r) {
|
|
|
2543
2543
|
const g = so(l).join(":");
|
|
2544
2544
|
return {
|
|
2545
2545
|
isTailwindClass: !0,
|
|
2546
|
-
modifierId: c ? g +
|
|
2546
|
+
modifierId: c ? g + Dt : g,
|
|
2547
2547
|
classGroupId: p,
|
|
2548
2548
|
originalClassName: a,
|
|
2549
2549
|
hasPostfixModifier: m
|
|
@@ -2562,15 +2562,15 @@ function io(e, r) {
|
|
|
2562
2562
|
function lo() {
|
|
2563
2563
|
let e = 0, r, n, t = "";
|
|
2564
2564
|
for (; e < arguments.length; )
|
|
2565
|
-
(r = arguments[e++]) && (n =
|
|
2565
|
+
(r = arguments[e++]) && (n = Bt(r)) && (t && (t += " "), t += n);
|
|
2566
2566
|
return t;
|
|
2567
2567
|
}
|
|
2568
|
-
function
|
|
2568
|
+
function Bt(e) {
|
|
2569
2569
|
if (typeof e == "string")
|
|
2570
2570
|
return e;
|
|
2571
2571
|
let r, n = "";
|
|
2572
2572
|
for (let t = 0; t < e.length; t++)
|
|
2573
|
-
e[t] && (r =
|
|
2573
|
+
e[t] && (r = Bt(e[t])) && (n && (n += " "), n += r);
|
|
2574
2574
|
return n;
|
|
2575
2575
|
}
|
|
2576
2576
|
function co(e, ...r) {
|
|
@@ -2594,7 +2594,7 @@ function O(e) {
|
|
|
2594
2594
|
const r = (n) => n[e] || [];
|
|
2595
2595
|
return r.isThemeGetter = !0, r;
|
|
2596
2596
|
}
|
|
2597
|
-
const
|
|
2597
|
+
const Ht = /^\[(?:([a-z-]+):)?(.+)\]$/i, uo = /^\d+\/\d+$/, fo = /* @__PURE__ */ new Set(["px", "full", "screen"]), po = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, ho = /\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$/, mo = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, go = /^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, bo = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;
|
|
2598
2598
|
function Ee(e) {
|
|
2599
2599
|
return _e(e) || fo.has(e) || uo.test(e);
|
|
2600
2600
|
}
|
|
@@ -2614,17 +2614,17 @@ function vo(e) {
|
|
|
2614
2614
|
return e.endsWith("%") && _e(e.slice(0, -1));
|
|
2615
2615
|
}
|
|
2616
2616
|
function L(e) {
|
|
2617
|
-
return
|
|
2617
|
+
return Ht.test(e);
|
|
2618
2618
|
}
|
|
2619
2619
|
function Ae(e) {
|
|
2620
2620
|
return po.test(e);
|
|
2621
2621
|
}
|
|
2622
2622
|
const xo = /* @__PURE__ */ new Set(["length", "size", "percentage"]);
|
|
2623
2623
|
function Co(e) {
|
|
2624
|
-
return Ge(e, xo,
|
|
2624
|
+
return Ge(e, xo, zt);
|
|
2625
2625
|
}
|
|
2626
2626
|
function wo(e) {
|
|
2627
|
-
return Ge(e, "position",
|
|
2627
|
+
return Ge(e, "position", zt);
|
|
2628
2628
|
}
|
|
2629
2629
|
const ko = /* @__PURE__ */ new Set(["image", "url"]);
|
|
2630
2630
|
function yo(e) {
|
|
@@ -2637,13 +2637,13 @@ function nr() {
|
|
|
2637
2637
|
return !0;
|
|
2638
2638
|
}
|
|
2639
2639
|
function Ge(e, r, n) {
|
|
2640
|
-
const t =
|
|
2640
|
+
const t = Ht.exec(e);
|
|
2641
2641
|
return t ? t[1] ? typeof r == "string" ? t[1] === r : r.has(t[1]) : n(t[2]) : !1;
|
|
2642
2642
|
}
|
|
2643
2643
|
function Lo(e) {
|
|
2644
2644
|
return ho.test(e) && !mo.test(e);
|
|
2645
2645
|
}
|
|
2646
|
-
function
|
|
2646
|
+
function zt() {
|
|
2647
2647
|
return !1;
|
|
2648
2648
|
}
|
|
2649
2649
|
function Eo(e) {
|
|
@@ -4669,10 +4669,10 @@ function Mo() {
|
|
|
4669
4669
|
};
|
|
4670
4670
|
}
|
|
4671
4671
|
const H = /* @__PURE__ */ co(Mo);
|
|
4672
|
-
function
|
|
4672
|
+
function Ut() {
|
|
4673
4673
|
return Math.floor(Math.random() * 1e7);
|
|
4674
4674
|
}
|
|
4675
|
-
const
|
|
4675
|
+
const Gt = (e, r, n, t, s) => {
|
|
4676
4676
|
const o = `preflight ${n}`;
|
|
4677
4677
|
return {
|
|
4678
4678
|
settings: /* @__PURE__ */ i.jsx(
|
|
@@ -4726,7 +4726,7 @@ const Ut = (e, r, n, t, s) => {
|
|
|
4726
4726
|
}
|
|
4727
4727
|
),
|
|
4728
4728
|
infoCircle: /* @__PURE__ */ i.jsx(
|
|
4729
|
-
|
|
4729
|
+
Jr,
|
|
4730
4730
|
{
|
|
4731
4731
|
width: e,
|
|
4732
4732
|
height: r,
|
|
@@ -4766,7 +4766,7 @@ const Ut = (e, r, n, t, s) => {
|
|
|
4766
4766
|
}
|
|
4767
4767
|
),
|
|
4768
4768
|
error: /* @__PURE__ */ i.jsx(
|
|
4769
|
-
|
|
4769
|
+
et,
|
|
4770
4770
|
{
|
|
4771
4771
|
width: e,
|
|
4772
4772
|
height: r,
|
|
@@ -4776,7 +4776,7 @@ const Ut = (e, r, n, t, s) => {
|
|
|
4776
4776
|
}
|
|
4777
4777
|
),
|
|
4778
4778
|
warning: /* @__PURE__ */ i.jsx(
|
|
4779
|
-
|
|
4779
|
+
Qr,
|
|
4780
4780
|
{
|
|
4781
4781
|
width: e,
|
|
4782
4782
|
height: r,
|
|
@@ -4866,7 +4866,7 @@ const Ut = (e, r, n, t, s) => {
|
|
|
4866
4866
|
}
|
|
4867
4867
|
),
|
|
4868
4868
|
checkCircle: /* @__PURE__ */ i.jsx(
|
|
4869
|
-
|
|
4869
|
+
Xr,
|
|
4870
4870
|
{
|
|
4871
4871
|
width: e,
|
|
4872
4872
|
height: r,
|
|
@@ -4916,7 +4916,7 @@ const Ut = (e, r, n, t, s) => {
|
|
|
4916
4916
|
}
|
|
4917
4917
|
)
|
|
4918
4918
|
};
|
|
4919
|
-
},
|
|
4919
|
+
}, Zt = (e, r, n, t, s) => {
|
|
4920
4920
|
const o = `preflight ${n}`;
|
|
4921
4921
|
return {
|
|
4922
4922
|
notifications: /* @__PURE__ */ i.jsx(
|
|
@@ -4950,11 +4950,11 @@ const Ut = (e, r, n, t, s) => {
|
|
|
4950
4950
|
}
|
|
4951
4951
|
)
|
|
4952
4952
|
};
|
|
4953
|
-
},
|
|
4953
|
+
}, Yt = (e, r, n, t, s, o) => {
|
|
4954
4954
|
const a = `preflight ${n}`;
|
|
4955
4955
|
return {
|
|
4956
4956
|
infoCircle: /* @__PURE__ */ i.jsx(
|
|
4957
|
-
|
|
4957
|
+
Jr,
|
|
4958
4958
|
{
|
|
4959
4959
|
width: e,
|
|
4960
4960
|
height: r,
|
|
@@ -4965,7 +4965,7 @@ const Ut = (e, r, n, t, s) => {
|
|
|
4965
4965
|
}
|
|
4966
4966
|
),
|
|
4967
4967
|
error: /* @__PURE__ */ i.jsx(
|
|
4968
|
-
|
|
4968
|
+
et,
|
|
4969
4969
|
{
|
|
4970
4970
|
width: e,
|
|
4971
4971
|
height: r,
|
|
@@ -4976,7 +4976,7 @@ const Ut = (e, r, n, t, s) => {
|
|
|
4976
4976
|
}
|
|
4977
4977
|
),
|
|
4978
4978
|
warning: /* @__PURE__ */ i.jsx(
|
|
4979
|
-
|
|
4979
|
+
Qr,
|
|
4980
4980
|
{
|
|
4981
4981
|
width: e,
|
|
4982
4982
|
height: r,
|
|
@@ -4987,7 +4987,7 @@ const Ut = (e, r, n, t, s) => {
|
|
|
4987
4987
|
}
|
|
4988
4988
|
),
|
|
4989
4989
|
checkCircle: /* @__PURE__ */ i.jsx(
|
|
4990
|
-
|
|
4990
|
+
Xr,
|
|
4991
4991
|
{
|
|
4992
4992
|
width: e,
|
|
4993
4993
|
height: r,
|
|
@@ -5016,19 +5016,19 @@ const Ut = (e, r, n, t, s) => {
|
|
|
5016
5016
|
width: "24",
|
|
5017
5017
|
height: "24"
|
|
5018
5018
|
}
|
|
5019
|
-
}, c =
|
|
5019
|
+
}, c = Gt(
|
|
5020
5020
|
l[e].width,
|
|
5021
5021
|
l[e].height,
|
|
5022
5022
|
t,
|
|
5023
5023
|
s,
|
|
5024
5024
|
o
|
|
5025
|
-
), f =
|
|
5025
|
+
), f = Zt(
|
|
5026
5026
|
l[e].width,
|
|
5027
5027
|
l[e].height,
|
|
5028
5028
|
t,
|
|
5029
5029
|
s,
|
|
5030
5030
|
o
|
|
5031
|
-
), u =
|
|
5031
|
+
), u = Yt(
|
|
5032
5032
|
l[e].width,
|
|
5033
5033
|
l[e].height,
|
|
5034
5034
|
t,
|
|
@@ -5038,16 +5038,16 @@ const Ut = (e, r, n, t, s) => {
|
|
|
5038
5038
|
), p = n && !a ? f[r] || c[r] : a && u[r] || c[r];
|
|
5039
5039
|
return /* @__PURE__ */ i.jsx(i.Fragment, { children: p });
|
|
5040
5040
|
}, Te = No;
|
|
5041
|
-
Object.keys(Ut()).sort(
|
|
5042
|
-
(e, r) => e.localeCompare(r)
|
|
5043
|
-
);
|
|
5044
5041
|
Object.keys(Gt()).sort(
|
|
5045
5042
|
(e, r) => e.localeCompare(r)
|
|
5046
5043
|
);
|
|
5047
5044
|
Object.keys(Zt()).sort(
|
|
5048
5045
|
(e, r) => e.localeCompare(r)
|
|
5049
5046
|
);
|
|
5050
|
-
|
|
5047
|
+
Object.keys(Yt()).sort(
|
|
5048
|
+
(e, r) => e.localeCompare(r)
|
|
5049
|
+
);
|
|
5050
|
+
function qt(e) {
|
|
5051
5051
|
var r, n, t = "";
|
|
5052
5052
|
if (typeof e == "string" || typeof e == "number")
|
|
5053
5053
|
t += e;
|
|
@@ -5055,7 +5055,7 @@ function Yt(e) {
|
|
|
5055
5055
|
if (Array.isArray(e)) {
|
|
5056
5056
|
var s = e.length;
|
|
5057
5057
|
for (r = 0; r < s; r++)
|
|
5058
|
-
e[r] && (n =
|
|
5058
|
+
e[r] && (n = qt(e[r])) && (t && (t += " "), t += n);
|
|
5059
5059
|
} else
|
|
5060
5060
|
for (n in e)
|
|
5061
5061
|
e[n] && (t && (t += " "), t += n);
|
|
@@ -5063,7 +5063,7 @@ function Yt(e) {
|
|
|
5063
5063
|
}
|
|
5064
5064
|
function To() {
|
|
5065
5065
|
for (var e, r, n = 0, t = "", s = arguments.length; n < s; n++)
|
|
5066
|
-
(e = arguments[n]) && (r =
|
|
5066
|
+
(e = arguments[n]) && (r = qt(e)) && (t && (t += " "), t += r);
|
|
5067
5067
|
return t;
|
|
5068
5068
|
}
|
|
5069
5069
|
const dr = (...e) => H(To(...e)), So = A(
|
|
@@ -5106,7 +5106,7 @@ const dr = (...e) => H(To(...e)), So = A(
|
|
|
5106
5106
|
role: "status",
|
|
5107
5107
|
children: /* @__PURE__ */ i.jsx("div", { className: dr(So({ size: e })) })
|
|
5108
5108
|
}
|
|
5109
|
-
), Dr = Ao,
|
|
5109
|
+
), Dr = Ao, Kt = (e, r, n) => {
|
|
5110
5110
|
if (r) {
|
|
5111
5111
|
e.preventDefault();
|
|
5112
5112
|
return;
|
|
@@ -5230,7 +5230,7 @@ const dr = (...e) => H(To(...e)), So = A(
|
|
|
5230
5230
|
]
|
|
5231
5231
|
}
|
|
5232
5232
|
);
|
|
5233
|
-
},
|
|
5233
|
+
}, tt = Fo, Oo = A(
|
|
5234
5234
|
[
|
|
5235
5235
|
"preflight",
|
|
5236
5236
|
"ds-flex",
|
|
@@ -5263,7 +5263,7 @@ const dr = (...e) => H(To(...e)), So = A(
|
|
|
5263
5263
|
error: "ds-text-danger-red-dark"
|
|
5264
5264
|
}
|
|
5265
5265
|
}
|
|
5266
|
-
}),
|
|
5266
|
+
}), Rt = (e) => H(_o(e)), Vo = A("", {
|
|
5267
5267
|
variants: {
|
|
5268
5268
|
variant: {
|
|
5269
5269
|
success: ["ds-text-success-green-darkest", "ds-stroke-success-green-darkest"],
|
|
@@ -5281,16 +5281,16 @@ const dr = (...e) => H(To(...e)), So = A(
|
|
|
5281
5281
|
description: o = "",
|
|
5282
5282
|
content: a = void 0,
|
|
5283
5283
|
closeAriaLabel: l = "Close button",
|
|
5284
|
-
id: c = "alert_" +
|
|
5284
|
+
id: c = "alert_" + Ut().toString(),
|
|
5285
5285
|
handleClose: f,
|
|
5286
5286
|
className: u = "",
|
|
5287
5287
|
...p
|
|
5288
5288
|
}) => {
|
|
5289
5289
|
const m = {
|
|
5290
|
-
success: /* @__PURE__ */ i.jsx(
|
|
5291
|
-
info: /* @__PURE__ */ i.jsx(
|
|
5292
|
-
warning: /* @__PURE__ */ i.jsx(
|
|
5293
|
-
error: /* @__PURE__ */ i.jsx(
|
|
5290
|
+
success: /* @__PURE__ */ i.jsx(Xr, { className: ze({ variant: e }) }),
|
|
5291
|
+
info: /* @__PURE__ */ i.jsx(Jr, { className: ze({ variant: e }) }),
|
|
5292
|
+
warning: /* @__PURE__ */ i.jsx(Qr, { className: ze({ variant: e }) }),
|
|
5293
|
+
error: /* @__PURE__ */ i.jsx(et, { className: ze({ variant: e }) })
|
|
5294
5294
|
}, g = () => 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";
|
|
5295
5295
|
return /* @__PURE__ */ i.jsxs("div", { id: c, className: H(Wo({ variant: e }), u), ...p, children: [
|
|
5296
5296
|
/* @__PURE__ */ i.jsxs("div", { className: "ds-flex ds-flex-row", children: [
|
|
@@ -5314,7 +5314,7 @@ const dr = (...e) => H(To(...e)), So = A(
|
|
|
5314
5314
|
children: s
|
|
5315
5315
|
}
|
|
5316
5316
|
),
|
|
5317
|
-
/* @__PURE__ */ i.jsxs("div", { className:
|
|
5317
|
+
/* @__PURE__ */ i.jsxs("div", { className: Rt({ variant: e }), children: [
|
|
5318
5318
|
t !== "none" && s !== "" && /* @__PURE__ */ i.jsx(
|
|
5319
5319
|
"span",
|
|
5320
5320
|
{
|
|
@@ -5334,7 +5334,7 @@ const dr = (...e) => H(To(...e)), So = A(
|
|
|
5334
5334
|
a && /* @__PURE__ */ i.jsx(
|
|
5335
5335
|
"div",
|
|
5336
5336
|
{
|
|
5337
|
-
className: `${
|
|
5337
|
+
className: `${Rt({ variant: e })} ${g() ? "ds-mt-3" : ""}`,
|
|
5338
5338
|
children: a
|
|
5339
5339
|
}
|
|
5340
5340
|
)
|
|
@@ -5343,7 +5343,7 @@ const dr = (...e) => H(To(...e)), So = A(
|
|
|
5343
5343
|
)
|
|
5344
5344
|
] }),
|
|
5345
5345
|
r === !0 && /* @__PURE__ */ i.jsx("div", { className: "-ds-mt-2 ds-h-5", children: /* @__PURE__ */ i.jsx(
|
|
5346
|
-
|
|
5346
|
+
tt,
|
|
5347
5347
|
{
|
|
5348
5348
|
variant: "default",
|
|
5349
5349
|
iconSize: "small",
|
|
@@ -5356,7 +5356,7 @@ const dr = (...e) => H(To(...e)), So = A(
|
|
|
5356
5356
|
}
|
|
5357
5357
|
) })
|
|
5358
5358
|
] });
|
|
5359
|
-
}, Do = Io,
|
|
5359
|
+
}, Do = Io, Jt = [
|
|
5360
5360
|
"preflight",
|
|
5361
5361
|
// Need to specify the font because disabling preflight makes the button not inherit the font
|
|
5362
5362
|
// Lato is defined as font-sans in our tailwind theme configuration
|
|
@@ -5384,7 +5384,7 @@ const dr = (...e) => H(To(...e)), So = A(
|
|
|
5384
5384
|
"!focus-visible:ds-ring-neutrals-black",
|
|
5385
5385
|
"!focus-visible:ds-border-neutrals-light"
|
|
5386
5386
|
], Ho = [
|
|
5387
|
-
...
|
|
5387
|
+
...Jt,
|
|
5388
5388
|
"ds-p-1",
|
|
5389
5389
|
"!ds-bg-neutrals-lighter",
|
|
5390
5390
|
"!ds-text-neutrals-dark",
|
|
@@ -5394,7 +5394,7 @@ const dr = (...e) => H(To(...e)), So = A(
|
|
|
5394
5394
|
"focus-visible:ds-ring-neutrals-black",
|
|
5395
5395
|
"!focus-visible:ds-border-neutrals-light",
|
|
5396
5396
|
"active:ds-border-neutrals-lighter"
|
|
5397
|
-
], zo = A(
|
|
5397
|
+
], zo = A(Jt, {
|
|
5398
5398
|
variants: {
|
|
5399
5399
|
variant: {
|
|
5400
5400
|
primary: [
|
|
@@ -5576,7 +5576,7 @@ const dr = (...e) => H(To(...e)), So = A(
|
|
|
5576
5576
|
altText: r
|
|
5577
5577
|
}
|
|
5578
5578
|
),
|
|
5579
|
-
/* @__PURE__ */ i.jsx(
|
|
5579
|
+
/* @__PURE__ */ i.jsx(en, { size: "small", text: n, hasMarginBottom: !1 })
|
|
5580
5580
|
] }),
|
|
5581
5581
|
e && /* @__PURE__ */ i.jsx("div", { className: "ds-text-base", children: e }),
|
|
5582
5582
|
t && /* @__PURE__ */ i.jsx("div", { children: t })
|
|
@@ -5610,7 +5610,7 @@ const dr = (...e) => H(To(...e)), So = A(
|
|
|
5610
5610
|
}
|
|
5611
5611
|
}
|
|
5612
5612
|
}
|
|
5613
|
-
),
|
|
5613
|
+
), Xt = (e) => H(qo(e)), Ko = A(
|
|
5614
5614
|
["preflight", "ds-font-base", "!ds-font-sans", "ds-ml-2", "ds-text-base"],
|
|
5615
5615
|
{
|
|
5616
5616
|
variants: {
|
|
@@ -5620,7 +5620,7 @@ const dr = (...e) => H(To(...e)), So = A(
|
|
|
5620
5620
|
}
|
|
5621
5621
|
}
|
|
5622
5622
|
}
|
|
5623
|
-
),
|
|
5623
|
+
), Qt = (e) => H(Ko(e)), nt = {
|
|
5624
5624
|
variants: {
|
|
5625
5625
|
state: {
|
|
5626
5626
|
default: [
|
|
@@ -5682,15 +5682,15 @@ const dr = (...e) => H(To(...e)), So = A(
|
|
|
5682
5682
|
"aria-label": f,
|
|
5683
5683
|
"aria-disabled": s,
|
|
5684
5684
|
type: "checkbox",
|
|
5685
|
-
className: `ds-form-checkbox ds-mt-1 ${
|
|
5685
|
+
className: `ds-form-checkbox ds-mt-1 ${Xt({ disabled: s })} ds-rounded`,
|
|
5686
5686
|
checked: t,
|
|
5687
5687
|
ref: (u) => u && (u.indeterminate = o),
|
|
5688
5688
|
onClick: (u) => Lr(u, s, l),
|
|
5689
|
-
onChange: (u) =>
|
|
5689
|
+
onChange: (u) => Kt(u, s, a),
|
|
5690
5690
|
...c
|
|
5691
5691
|
}
|
|
5692
5692
|
),
|
|
5693
|
-
r && /* @__PURE__ */ i.jsx("label", { htmlFor: e, className:
|
|
5693
|
+
r && /* @__PURE__ */ i.jsx("label", { htmlFor: e, className: Qt({ disabled: s }), children: r })
|
|
5694
5694
|
] });
|
|
5695
5695
|
}, Wl = Jo, Xo = (e) => [
|
|
5696
5696
|
"Zero",
|
|
@@ -5713,7 +5713,7 @@ const dr = (...e) => H(To(...e)), So = A(
|
|
|
5713
5713
|
buttonText: a,
|
|
5714
5714
|
...l
|
|
5715
5715
|
}) => {
|
|
5716
|
-
const c = "formValidation_" +
|
|
5716
|
+
const c = "formValidation_" + Ut().toString(), [f, u] = X(!1), [p, m] = X(""), [g, v] = X(!0), [C, x] = X(""), [w, j] = X("success"), oe = 32, T = k.Children.toArray(e).filter(
|
|
5717
5717
|
(S) => {
|
|
5718
5718
|
var _, K;
|
|
5719
5719
|
return k.isValidElement(S) ? !!((_ = S.props) != null && _.id) && !!((K = S.props) != null && K.label) : !1;
|
|
@@ -5756,14 +5756,14 @@ const dr = (...e) => H(To(...e)), So = A(
|
|
|
5756
5756
|
e,
|
|
5757
5757
|
/* @__PURE__ */ i.jsx(Zo, { text: a, onClick: he })
|
|
5758
5758
|
] });
|
|
5759
|
-
}, _l = Qo, De = "large", Ze = "medium", Ye = "small", qe = "extra-large",
|
|
5759
|
+
}, _l = Qo, De = "large", Ze = "medium", Ye = "small", qe = "extra-large", At = "h1", ea = "h2", ra = "h3", ta = "div";
|
|
5760
5760
|
function na(e) {
|
|
5761
5761
|
return {
|
|
5762
|
-
[De]:
|
|
5762
|
+
[De]: At,
|
|
5763
5763
|
[Ze]: ea,
|
|
5764
5764
|
[Ye]: ra,
|
|
5765
5765
|
[qe]: ta
|
|
5766
|
-
}[e] ||
|
|
5766
|
+
}[e] || At;
|
|
5767
5767
|
}
|
|
5768
5768
|
const sa = A("preflight !ds-font-sans", {
|
|
5769
5769
|
variants: {
|
|
@@ -5833,7 +5833,7 @@ const sa = A("preflight !ds-font-sans", {
|
|
|
5833
5833
|
u,
|
|
5834
5834
|
p
|
|
5835
5835
|
] });
|
|
5836
|
-
},
|
|
5836
|
+
}, en = la, da = ({
|
|
5837
5837
|
label: e = "",
|
|
5838
5838
|
name: r,
|
|
5839
5839
|
id: n,
|
|
@@ -5850,14 +5850,14 @@ const sa = A("preflight !ds-font-sans", {
|
|
|
5850
5850
|
id: n,
|
|
5851
5851
|
name: r,
|
|
5852
5852
|
type: "radio",
|
|
5853
|
-
className: `ds-form-radio ${
|
|
5853
|
+
className: `ds-form-radio ${Xt({ disabled: t })}`,
|
|
5854
5854
|
"aria-disabled": t,
|
|
5855
|
-
onChange: (l) =>
|
|
5855
|
+
onChange: (l) => Kt(l, t, s),
|
|
5856
5856
|
onClick: (l) => Lr(l, t, o),
|
|
5857
5857
|
...a
|
|
5858
5858
|
}
|
|
5859
5859
|
),
|
|
5860
|
-
/* @__PURE__ */ i.jsx("label", { htmlFor: n, className:
|
|
5860
|
+
/* @__PURE__ */ i.jsx("label", { htmlFor: n, className: Qt({ disabled: t }), children: e })
|
|
5861
5861
|
] }), Vl = da, ca = A(
|
|
5862
5862
|
[
|
|
5863
5863
|
"preflight",
|
|
@@ -5931,7 +5931,7 @@ let ha = class {
|
|
|
5931
5931
|
return this.handoffState === "complete";
|
|
5932
5932
|
}
|
|
5933
5933
|
}, Ie = new ha();
|
|
5934
|
-
function
|
|
5934
|
+
function st(e) {
|
|
5935
5935
|
return Ie.isServer ? null : e instanceof Node ? e.ownerDocument : e != null && e.hasOwnProperty("current") && e.current instanceof Node ? e.current.ownerDocument : document;
|
|
5936
5936
|
}
|
|
5937
5937
|
function Er(e) {
|
|
@@ -5978,12 +5978,12 @@ function We() {
|
|
|
5978
5978
|
} };
|
|
5979
5979
|
return r;
|
|
5980
5980
|
}
|
|
5981
|
-
function
|
|
5981
|
+
function ot() {
|
|
5982
5982
|
let [e] = X(We);
|
|
5983
5983
|
return ne(() => () => e.dispose(), [e]), e;
|
|
5984
5984
|
}
|
|
5985
5985
|
let ee = (e, r) => {
|
|
5986
|
-
Ie.isServer ? ne(e, r) :
|
|
5986
|
+
Ie.isServer ? ne(e, r) : Un(e, r);
|
|
5987
5987
|
};
|
|
5988
5988
|
function we(e) {
|
|
5989
5989
|
let r = P(e);
|
|
@@ -6012,7 +6012,7 @@ function q(e, r, ...n) {
|
|
|
6012
6012
|
var wr = ((e) => (e[e.None = 0] = "None", e[e.RenderStrategy = 1] = "RenderStrategy", e[e.Static = 2] = "Static", e))(wr || {}), Oe = ((e) => (e[e.Unmount = 0] = "Unmount", e[e.Hidden = 1] = "Hidden", e))(Oe || {});
|
|
6013
6013
|
function ve({ ourProps: e, theirProps: r, slot: n, defaultTag: t, features: s, visible: o = !0, name: a, mergeRefs: l }) {
|
|
6014
6014
|
l = l != null ? l : ba;
|
|
6015
|
-
let c =
|
|
6015
|
+
let c = rn(r, e);
|
|
6016
6016
|
if (o)
|
|
6017
6017
|
return xr(c, n, t, a, l);
|
|
6018
6018
|
let f = s != null ? s : 0;
|
|
@@ -6053,7 +6053,7 @@ function xr(e, r = {}, n, t, s) {
|
|
|
6053
6053
|
`)].join(`
|
|
6054
6054
|
`));
|
|
6055
6055
|
} else {
|
|
6056
|
-
let m = u.props, g = m == null ? void 0 : m.className, v = typeof g == "function" ? (...w) => ar(g(...w), c.className) : ar(g, c.className), C = v ? { className: v } : {}, x =
|
|
6056
|
+
let m = u.props, g = m == null ? void 0 : m.className, v = typeof g == "function" ? (...w) => ar(g(...w), c.className) : ar(g, c.className), C = v ? { className: v } : {}, x = rn(u.props, Ue(Or(c, ["ref"])));
|
|
6057
6057
|
for (let w in p)
|
|
6058
6058
|
w in x && delete p[w];
|
|
6059
6059
|
return Zn(u, Object.assign({}, x, p, f, { ref: s(u.ref, f.ref) }, C));
|
|
@@ -6066,7 +6066,7 @@ function ba(...e) {
|
|
|
6066
6066
|
n != null && (typeof n == "function" ? n(r) : n.current = r);
|
|
6067
6067
|
};
|
|
6068
6068
|
}
|
|
6069
|
-
function
|
|
6069
|
+
function rn(...e) {
|
|
6070
6070
|
if (e.length === 0)
|
|
6071
6071
|
return {};
|
|
6072
6072
|
if (e.length === 1)
|
|
@@ -6094,7 +6094,7 @@ function en(...e) {
|
|
|
6094
6094
|
}
|
|
6095
6095
|
function pe(e) {
|
|
6096
6096
|
var r;
|
|
6097
|
-
return Object.assign(
|
|
6097
|
+
return Object.assign(Kr(e), { displayName: (r = e.displayName) != null ? r : e.name });
|
|
6098
6098
|
}
|
|
6099
6099
|
function Ue(e) {
|
|
6100
6100
|
let r = Object.assign({}, e);
|
|
@@ -6121,11 +6121,11 @@ function wa({ children: e }) {
|
|
|
6121
6121
|
if (!r)
|
|
6122
6122
|
return k.createElement(k.Fragment, null, e);
|
|
6123
6123
|
let { target: n } = r;
|
|
6124
|
-
return n ?
|
|
6124
|
+
return n ? _t(k.createElement(k.Fragment, null, e), n) : null;
|
|
6125
6125
|
}
|
|
6126
|
-
let
|
|
6126
|
+
let tn = Symbol();
|
|
6127
6127
|
function ka(e, r = !0) {
|
|
6128
|
-
return Object.assign(e, { [
|
|
6128
|
+
return Object.assign(e, { [tn]: r });
|
|
6129
6129
|
}
|
|
6130
6130
|
function ke(...e) {
|
|
6131
6131
|
let r = P(e);
|
|
@@ -6136,15 +6136,15 @@ function ke(...e) {
|
|
|
6136
6136
|
for (let s of r.current)
|
|
6137
6137
|
s != null && (typeof s == "function" ? s(t) : s.current = t);
|
|
6138
6138
|
});
|
|
6139
|
-
return e.every((t) => t == null || (t == null ? void 0 : t[
|
|
6139
|
+
return e.every((t) => t == null || (t == null ? void 0 : t[tn])) ? void 0 : n;
|
|
6140
6140
|
}
|
|
6141
|
-
let
|
|
6142
|
-
|
|
6143
|
-
function
|
|
6144
|
-
let e = se(
|
|
6141
|
+
let at = fe(null);
|
|
6142
|
+
at.displayName = "DescriptionContext";
|
|
6143
|
+
function nn() {
|
|
6144
|
+
let e = se(at);
|
|
6145
6145
|
if (e === null) {
|
|
6146
6146
|
let r = new Error("You used a <Description /> component, but it is not inside a relevant parent.");
|
|
6147
|
-
throw Error.captureStackTrace && Error.captureStackTrace(r,
|
|
6147
|
+
throw Error.captureStackTrace && Error.captureStackTrace(r, nn), r;
|
|
6148
6148
|
}
|
|
6149
6149
|
return e;
|
|
6150
6150
|
}
|
|
@@ -6155,30 +6155,30 @@ function ya() {
|
|
|
6155
6155
|
let l = a.slice(), c = l.indexOf(o);
|
|
6156
6156
|
return c !== -1 && l.splice(c, 1), l;
|
|
6157
6157
|
}))), s = de(() => ({ register: t, slot: n.slot, name: n.name, props: n.props, value: n.value }), [t, n.slot, n.name, n.props, n.value]);
|
|
6158
|
-
return k.createElement(
|
|
6158
|
+
return k.createElement(at.Provider, { value: s }, n.children);
|
|
6159
6159
|
}, [r])];
|
|
6160
6160
|
}
|
|
6161
6161
|
let ja = "p";
|
|
6162
6162
|
function La(e, r) {
|
|
6163
|
-
let n = jr(), t = ga(), { id: s = `headlessui-description-${n}`, ...o } = e, a =
|
|
6163
|
+
let n = jr(), t = ga(), { id: s = `headlessui-description-${n}`, ...o } = e, a = nn(), l = ke(r);
|
|
6164
6164
|
ee(() => a.register(s), [s, a.register]);
|
|
6165
6165
|
let c = t || !1, f = de(() => ({ ...a.slot, disabled: c }), [a.slot, c]), u = { ref: l, ...a.props, id: s };
|
|
6166
6166
|
return ve({ ourProps: u, theirProps: o, slot: f, defaultTag: ja, name: a.name || "Description" });
|
|
6167
6167
|
}
|
|
6168
6168
|
let Ea = pe(La), $a = Object.assign(Ea, {});
|
|
6169
|
-
var
|
|
6169
|
+
var sn = ((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))(sn || {});
|
|
6170
6170
|
let Ma = fe(() => {
|
|
6171
6171
|
});
|
|
6172
6172
|
function Na({ value: e, children: r }) {
|
|
6173
6173
|
return k.createElement(Ma.Provider, { value: e }, r);
|
|
6174
6174
|
}
|
|
6175
6175
|
let Hr = /* @__PURE__ */ new Map(), ir = /* @__PURE__ */ new Map();
|
|
6176
|
-
function
|
|
6176
|
+
function Pt(e) {
|
|
6177
6177
|
var r;
|
|
6178
6178
|
let n = (r = ir.get(e)) != null ? r : 0;
|
|
6179
|
-
return ir.set(e, n + 1), n !== 0 ? () =>
|
|
6179
|
+
return ir.set(e, n + 1), n !== 0 ? () => Ft(e) : (Hr.set(e, { "aria-hidden": e.getAttribute("aria-hidden"), inert: e.inert }), e.setAttribute("aria-hidden", "true"), e.inert = !0, () => Ft(e));
|
|
6180
6180
|
}
|
|
6181
|
-
function
|
|
6181
|
+
function Ft(e) {
|
|
6182
6182
|
var r;
|
|
6183
6183
|
let n = (r = ir.get(e)) != null ? r : 1;
|
|
6184
6184
|
if (n === 1 ? ir.delete(e) : ir.set(e, n - 1), n !== 1)
|
|
@@ -6193,25 +6193,25 @@ function Ta({ allowed: e, disallowed: r } = {}, n = !0) {
|
|
|
6193
6193
|
return;
|
|
6194
6194
|
let o = We();
|
|
6195
6195
|
for (let l of (t = r == null ? void 0 : r()) != null ? t : [])
|
|
6196
|
-
l && o.add(
|
|
6196
|
+
l && o.add(Pt(l));
|
|
6197
6197
|
let a = (s = e == null ? void 0 : e()) != null ? s : [];
|
|
6198
6198
|
for (let l of a) {
|
|
6199
6199
|
if (!l)
|
|
6200
6200
|
continue;
|
|
6201
|
-
let c =
|
|
6201
|
+
let c = st(l);
|
|
6202
6202
|
if (!c)
|
|
6203
6203
|
continue;
|
|
6204
6204
|
let f = l.parentElement;
|
|
6205
6205
|
for (; f && f !== c.body; ) {
|
|
6206
6206
|
for (let u of f.children)
|
|
6207
|
-
a.some((p) => u.contains(p)) || o.add(
|
|
6207
|
+
a.some((p) => u.contains(p)) || o.add(Pt(u));
|
|
6208
6208
|
f = f.parentElement;
|
|
6209
6209
|
}
|
|
6210
6210
|
}
|
|
6211
6211
|
return o.dispose;
|
|
6212
6212
|
}, [n, e, r]);
|
|
6213
6213
|
}
|
|
6214
|
-
function
|
|
6214
|
+
function on(e, r, n = !0) {
|
|
6215
6215
|
let t = we((s) => {
|
|
6216
6216
|
let o = s.getBoundingClientRect();
|
|
6217
6217
|
o.x === 0 && o.y === 0 && o.width === 0 && o.height === 0 && r();
|
|
@@ -6242,10 +6242,10 @@ function Aa(e = document.body) {
|
|
|
6242
6242
|
function Pa(e = document.body) {
|
|
6243
6243
|
return e == null ? [] : Array.from(e.querySelectorAll(Sa)).sort((r, n) => Math.sign((r.tabIndex || Number.MAX_SAFE_INTEGER) - (n.tabIndex || Number.MAX_SAFE_INTEGER)));
|
|
6244
6244
|
}
|
|
6245
|
-
var
|
|
6245
|
+
var an = ((e) => (e[e.Strict = 0] = "Strict", e[e.Loose = 1] = "Loose", e))(an || {});
|
|
6246
6246
|
function Fa(e, r = 0) {
|
|
6247
6247
|
var n;
|
|
6248
|
-
return e === ((n =
|
|
6248
|
+
return e === ((n = st(e)) == null ? void 0 : n.body) ? !1 : q(r, { 0() {
|
|
6249
6249
|
return e.matches(zr);
|
|
6250
6250
|
}, 1() {
|
|
6251
6251
|
let t = e;
|
|
@@ -6316,14 +6316,14 @@ function lr(e, r, { sorted: n = !0, relativeTo: t = null, skipElements: s = [] }
|
|
|
6316
6316
|
} while (m !== o.activeElement);
|
|
6317
6317
|
return r & 6 && _a(m) && m.select(), 2;
|
|
6318
6318
|
}
|
|
6319
|
-
function
|
|
6319
|
+
function ln() {
|
|
6320
6320
|
return /iPhone/gi.test(window.navigator.platform) || /Mac/gi.test(window.navigator.platform) && window.navigator.maxTouchPoints > 0;
|
|
6321
6321
|
}
|
|
6322
6322
|
function Ia() {
|
|
6323
6323
|
return /Android/gi.test(window.navigator.userAgent);
|
|
6324
6324
|
}
|
|
6325
6325
|
function Da() {
|
|
6326
|
-
return
|
|
6326
|
+
return ln() || Ia();
|
|
6327
6327
|
}
|
|
6328
6328
|
function Cr(e, r, n) {
|
|
6329
6329
|
let t = we(r);
|
|
@@ -6334,7 +6334,7 @@ function Cr(e, r, n) {
|
|
|
6334
6334
|
return document.addEventListener(e, s, n), () => document.removeEventListener(e, s, n);
|
|
6335
6335
|
}, [e, n]);
|
|
6336
6336
|
}
|
|
6337
|
-
function
|
|
6337
|
+
function dn(e, r, n) {
|
|
6338
6338
|
let t = we(r);
|
|
6339
6339
|
ne(() => {
|
|
6340
6340
|
function s(o) {
|
|
@@ -6366,7 +6366,7 @@ function Ba(e, r, n = !0) {
|
|
|
6366
6366
|
if (p != null && p.contains(c) || a.composed && a.composedPath().includes(p))
|
|
6367
6367
|
return;
|
|
6368
6368
|
}
|
|
6369
|
-
return !Fa(c,
|
|
6369
|
+
return !Fa(c, an.Loose) && c.tabIndex !== -1 && a.preventDefault(), r(a, c);
|
|
6370
6370
|
}
|
|
6371
6371
|
let o = P(null);
|
|
6372
6372
|
Cr("pointerdown", (a) => {
|
|
@@ -6377,12 +6377,12 @@ function Ba(e, r, n = !0) {
|
|
|
6377
6377
|
t.current && (o.current = ((c = (l = a.composedPath) == null ? void 0 : l.call(a)) == null ? void 0 : c[0]) || a.target);
|
|
6378
6378
|
}, !0), Cr("click", (a) => {
|
|
6379
6379
|
Da() || o.current && (s(a, () => o.current), o.current = null);
|
|
6380
|
-
}, !0), Cr("touchend", (a) => s(a, () => a.target instanceof HTMLElement ? a.target : null), !0),
|
|
6380
|
+
}, !0), Cr("touchend", (a) => s(a, () => a.target instanceof HTMLElement ? a.target : null), !0), dn("blur", (a) => s(a, () => window.document.activeElement instanceof HTMLIFrameElement ? window.document.activeElement : null), !0);
|
|
6381
6381
|
}
|
|
6382
6382
|
function cr(...e) {
|
|
6383
|
-
return de(() =>
|
|
6383
|
+
return de(() => st(...e), [...e]);
|
|
6384
6384
|
}
|
|
6385
|
-
function
|
|
6385
|
+
function cn(e, r, n, t) {
|
|
6386
6386
|
let s = we(n);
|
|
6387
6387
|
ne(() => {
|
|
6388
6388
|
e = e != null ? e : window;
|
|
@@ -6418,7 +6418,7 @@ function Ua() {
|
|
|
6418
6418
|
} };
|
|
6419
6419
|
}
|
|
6420
6420
|
function Ga() {
|
|
6421
|
-
return
|
|
6421
|
+
return ln() ? { before({ doc: e, d: r, meta: n }) {
|
|
6422
6422
|
function t(s) {
|
|
6423
6423
|
return n.containers.flatMap((o) => o()).some((o) => o.contains(s));
|
|
6424
6424
|
}
|
|
@@ -6516,7 +6516,7 @@ function Ka(e, r, n = () => [document.body]) {
|
|
|
6516
6516
|
return { containers: [...(s = t.containers) != null ? s : [], n] };
|
|
6517
6517
|
});
|
|
6518
6518
|
}
|
|
6519
|
-
function
|
|
6519
|
+
function it(e, r) {
|
|
6520
6520
|
let n = P([]), t = W(e);
|
|
6521
6521
|
ne(() => {
|
|
6522
6522
|
let s = [...n.current];
|
|
@@ -6527,14 +6527,14 @@ function at(e, r) {
|
|
|
6527
6527
|
}
|
|
6528
6528
|
}, [t, ...r]);
|
|
6529
6529
|
}
|
|
6530
|
-
let
|
|
6531
|
-
|
|
6530
|
+
let lt = fe(null);
|
|
6531
|
+
lt.displayName = "OpenClosedContext";
|
|
6532
6532
|
var le = ((e) => (e[e.Open = 1] = "Open", e[e.Closed = 2] = "Closed", e[e.Closing = 4] = "Closing", e[e.Opening = 8] = "Opening", e))(le || {});
|
|
6533
|
-
function
|
|
6534
|
-
return se(
|
|
6533
|
+
function dt() {
|
|
6534
|
+
return se(lt);
|
|
6535
6535
|
}
|
|
6536
6536
|
function Ja({ value: e, children: r }) {
|
|
6537
|
-
return k.createElement(
|
|
6537
|
+
return k.createElement(lt.Provider, { value: e }, r);
|
|
6538
6538
|
}
|
|
6539
6539
|
function Xa(e) {
|
|
6540
6540
|
function r() {
|
|
@@ -6549,7 +6549,7 @@ Xa(() => {
|
|
|
6549
6549
|
}
|
|
6550
6550
|
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 });
|
|
6551
6551
|
});
|
|
6552
|
-
function
|
|
6552
|
+
function un(e) {
|
|
6553
6553
|
let r = W(e), n = P(!1);
|
|
6554
6554
|
ne(() => (n.current = !1, () => {
|
|
6555
6555
|
n.current = !0, Er(() => {
|
|
@@ -6568,15 +6568,15 @@ function ur() {
|
|
|
6568
6568
|
r !== !0 && n(!0);
|
|
6569
6569
|
}, [r]), or.useEffect(() => Ie.handoff(), []), e ? !1 : r;
|
|
6570
6570
|
}
|
|
6571
|
-
let
|
|
6571
|
+
let fn = fe(!1);
|
|
6572
6572
|
function ei() {
|
|
6573
|
-
return se(
|
|
6573
|
+
return se(fn);
|
|
6574
6574
|
}
|
|
6575
|
-
function
|
|
6576
|
-
return k.createElement(
|
|
6575
|
+
function Ot(e) {
|
|
6576
|
+
return k.createElement(fn.Provider, { value: e.force }, e.children);
|
|
6577
6577
|
}
|
|
6578
6578
|
function ri(e) {
|
|
6579
|
-
let r = ei(), n = se(
|
|
6579
|
+
let r = ei(), n = se(hn), t = cr(e), [s, o] = X(() => {
|
|
6580
6580
|
var a;
|
|
6581
6581
|
if (!r && n !== null)
|
|
6582
6582
|
return (a = n.current) != null ? a : null;
|
|
@@ -6596,7 +6596,7 @@ function ri(e) {
|
|
|
6596
6596
|
r || n !== null && o(n.current);
|
|
6597
6597
|
}, [n, o, r]), s;
|
|
6598
6598
|
}
|
|
6599
|
-
let
|
|
6599
|
+
let pn = ue, ti = pe(function(e, r) {
|
|
6600
6600
|
let n = e, t = P(null), s = ke(ka((u) => {
|
|
6601
6601
|
t.current = u;
|
|
6602
6602
|
}), r), o = cr(t), a = ri(t), [l] = X(() => {
|
|
@@ -6608,19 +6608,19 @@ let fn = ue, ti = pe(function(e, r) {
|
|
|
6608
6608
|
}, [a, l]), ee(() => {
|
|
6609
6609
|
if (l && c)
|
|
6610
6610
|
return c.register(l);
|
|
6611
|
-
}, [c, l]),
|
|
6611
|
+
}, [c, l]), un(() => {
|
|
6612
6612
|
var u;
|
|
6613
6613
|
!a || !l || (l instanceof Node && a.contains(l) && a.removeChild(l), a.childNodes.length <= 0 && ((u = a.parentElement) == null || u.removeChild(a)));
|
|
6614
|
-
}), f ? !a || !l ? null :
|
|
6614
|
+
}), f ? !a || !l ? null : _t(ve({ ourProps: { ref: s }, theirProps: n, slot: {}, defaultTag: pn, name: "Portal" }), l) : null;
|
|
6615
6615
|
});
|
|
6616
6616
|
function ni(e, r) {
|
|
6617
6617
|
let n = ke(r), { enabled: t = !0, ...s } = e;
|
|
6618
|
-
return t ? k.createElement(ti, { ...s, ref: n }) : ve({ ourProps: { ref: n }, theirProps: s, slot: {}, defaultTag:
|
|
6618
|
+
return t ? k.createElement(ti, { ...s, ref: n }) : ve({ ourProps: { ref: n }, theirProps: s, slot: {}, defaultTag: pn, name: "Portal" });
|
|
6619
6619
|
}
|
|
6620
|
-
let si = ue,
|
|
6620
|
+
let si = ue, hn = fe(null);
|
|
6621
6621
|
function oi(e, r) {
|
|
6622
6622
|
let { target: n, ...t } = e, s = { ref: ke(r) };
|
|
6623
|
-
return k.createElement(
|
|
6623
|
+
return k.createElement(hn.Provider, { value: n }, ve({ ourProps: s, theirProps: t, defaultTag: si, name: "Popover.Group" }));
|
|
6624
6624
|
}
|
|
6625
6625
|
let Gr = fe(null);
|
|
6626
6626
|
function ai() {
|
|
@@ -6632,7 +6632,7 @@ function ai() {
|
|
|
6632
6632
|
return k.createElement(Gr.Provider, { value: s }, o);
|
|
6633
6633
|
}, [s])];
|
|
6634
6634
|
}
|
|
6635
|
-
let ii = pe(ni), li = pe(oi),
|
|
6635
|
+
let ii = pe(ni), li = pe(oi), Wt = Object.assign(ii, { Group: li });
|
|
6636
6636
|
function di() {
|
|
6637
6637
|
var e;
|
|
6638
6638
|
let [r] = X(() => typeof window != "undefined" && typeof window.matchMedia == "function" ? window.matchMedia("(pointer: coarse)") : null), [n, t] = X((e = r == null ? void 0 : r.matches) != null ? e : !1);
|
|
@@ -6663,12 +6663,12 @@ function ci({ defaultContainers: e = [], portals: r, mainTreeNodeRef: n } = {})
|
|
|
6663
6663
|
return n != null ? null : k.createElement(Br, { features: kr.Hidden, ref: s });
|
|
6664
6664
|
}, [s, n]) };
|
|
6665
6665
|
}
|
|
6666
|
-
let
|
|
6666
|
+
let ct = fe(() => {
|
|
6667
6667
|
});
|
|
6668
|
-
|
|
6668
|
+
ct.displayName = "StackContext";
|
|
6669
6669
|
var Zr = ((e) => (e[e.Add = 0] = "Add", e[e.Remove = 1] = "Remove", e))(Zr || {});
|
|
6670
6670
|
function ui() {
|
|
6671
|
-
return se(
|
|
6671
|
+
return se(ct);
|
|
6672
6672
|
}
|
|
6673
6673
|
function fi({ children: e, onUpdate: r, type: n, element: t, enabled: s }) {
|
|
6674
6674
|
let o = ui(), a = W((...l) => {
|
|
@@ -6679,7 +6679,7 @@ function fi({ children: e, onUpdate: r, type: n, element: t, enabled: s }) {
|
|
|
6679
6679
|
return l && a(0, n, t), () => {
|
|
6680
6680
|
l && a(1, n, t);
|
|
6681
6681
|
};
|
|
6682
|
-
}, [a, n, t, s]), k.createElement(
|
|
6682
|
+
}, [a, n, t, s]), k.createElement(ct.Provider, { value: a }, e);
|
|
6683
6683
|
}
|
|
6684
6684
|
function fr() {
|
|
6685
6685
|
let e = P(!1);
|
|
@@ -6690,11 +6690,11 @@ function fr() {
|
|
|
6690
6690
|
var sr = ((e) => (e[e.Forwards = 0] = "Forwards", e[e.Backwards = 1] = "Backwards", e))(sr || {});
|
|
6691
6691
|
function pi() {
|
|
6692
6692
|
let e = P(0);
|
|
6693
|
-
return
|
|
6693
|
+
return dn("keydown", (r) => {
|
|
6694
6694
|
r.key === "Tab" && (e.current = r.shiftKey ? 1 : 0);
|
|
6695
6695
|
}, !0), e;
|
|
6696
6696
|
}
|
|
6697
|
-
function
|
|
6697
|
+
function mn(e) {
|
|
6698
6698
|
if (!e)
|
|
6699
6699
|
return /* @__PURE__ */ new Set();
|
|
6700
6700
|
if (typeof e == "function")
|
|
@@ -6722,24 +6722,24 @@ function mi(e, r) {
|
|
|
6722
6722
|
lr(w, Me.Last, { skipElements: [x.relatedTarget, o] });
|
|
6723
6723
|
} });
|
|
6724
6724
|
});
|
|
6725
|
-
}), g =
|
|
6725
|
+
}), g = ot(), v = P(!1), C = { ref: t, onKeyDown(x) {
|
|
6726
6726
|
x.key == "Tab" && (v.current = !0, g.requestAnimationFrame(() => {
|
|
6727
6727
|
v.current = !1;
|
|
6728
6728
|
}));
|
|
6729
6729
|
}, onBlur(x) {
|
|
6730
6730
|
if (!(l & 8))
|
|
6731
6731
|
return;
|
|
6732
|
-
let w =
|
|
6732
|
+
let w = mn(a);
|
|
6733
6733
|
n.current instanceof HTMLElement && w.add(n.current);
|
|
6734
6734
|
let j = x.relatedTarget;
|
|
6735
|
-
j instanceof HTMLElement && j.dataset.headlessuiFocusGuard !== "true" && (
|
|
6735
|
+
j instanceof HTMLElement && j.dataset.headlessuiFocusGuard !== "true" && (gn(w, j) || (v.current ? lr(n.current, q(p.current, { [sr.Forwards]: () => Me.Next, [sr.Backwards]: () => Me.Previous }) | Me.WrapAround, { relativeTo: x.target }) : x.target instanceof HTMLElement && Ne(x.target)));
|
|
6736
6736
|
} };
|
|
6737
6737
|
return k.createElement(k.Fragment, null, !!(l & 4) && k.createElement(Br, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: m, features: kr.Focusable }), ve({ ourProps: C, theirProps: c, defaultTag: hi, name: "FocusTrap" }), !!(l & 4) && k.createElement(Br, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: m, features: kr.Focusable }));
|
|
6738
6738
|
}
|
|
6739
6739
|
let gi = pe(mi), bi = Object.assign(gi, { features: $e });
|
|
6740
6740
|
function vi(e = !0) {
|
|
6741
6741
|
let r = P(Fe.slice());
|
|
6742
|
-
return
|
|
6742
|
+
return it(([n], [t]) => {
|
|
6743
6743
|
t === !0 && n === !1 && Er(() => {
|
|
6744
6744
|
r.current.splice(0);
|
|
6745
6745
|
}), t === !1 && n === !0 && (r.current = Fe.slice());
|
|
@@ -6750,15 +6750,15 @@ function vi(e = !0) {
|
|
|
6750
6750
|
}
|
|
6751
6751
|
function xi({ ownerDocument: e }, r) {
|
|
6752
6752
|
let n = vi(r);
|
|
6753
|
-
|
|
6753
|
+
it(() => {
|
|
6754
6754
|
r || (e == null ? void 0 : e.activeElement) === (e == null ? void 0 : e.body) && Ne(n());
|
|
6755
|
-
}, [r]),
|
|
6755
|
+
}, [r]), un(() => {
|
|
6756
6756
|
r && Ne(n());
|
|
6757
6757
|
});
|
|
6758
6758
|
}
|
|
6759
6759
|
function Ci({ ownerDocument: e, container: r, initialFocus: n, initialFocusFallback: t }, s) {
|
|
6760
6760
|
let o = !!(s & 2), a = P(null), l = fr();
|
|
6761
|
-
return
|
|
6761
|
+
return it(() => {
|
|
6762
6762
|
if (!o) {
|
|
6763
6763
|
t != null && t.current && Ne(t.current);
|
|
6764
6764
|
return;
|
|
@@ -6795,19 +6795,19 @@ function Ci({ ownerDocument: e, container: r, initialFocus: n, initialFocusFallb
|
|
|
6795
6795
|
}
|
|
6796
6796
|
function wi({ ownerDocument: e, container: r, containers: n, previousActiveElement: t }, s) {
|
|
6797
6797
|
let o = fr();
|
|
6798
|
-
|
|
6798
|
+
cn(e == null ? void 0 : e.defaultView, "focus", (a) => {
|
|
6799
6799
|
if (!s || !o.current)
|
|
6800
6800
|
return;
|
|
6801
|
-
let l =
|
|
6801
|
+
let l = mn(n);
|
|
6802
6802
|
r.current instanceof HTMLElement && l.add(r.current);
|
|
6803
6803
|
let c = t.current;
|
|
6804
6804
|
if (!c)
|
|
6805
6805
|
return;
|
|
6806
6806
|
let f = a.target;
|
|
6807
|
-
f && f instanceof HTMLElement ?
|
|
6807
|
+
f && f instanceof HTMLElement ? gn(l, f) ? (t.current = f, Ne(f)) : (a.preventDefault(), a.stopPropagation(), Ne(c)) : Ne(t.current);
|
|
6808
6808
|
}, !0);
|
|
6809
6809
|
}
|
|
6810
|
-
function
|
|
6810
|
+
function gn(e, r) {
|
|
6811
6811
|
for (let n of e)
|
|
6812
6812
|
if (n.contains(r))
|
|
6813
6813
|
return !0;
|
|
@@ -6818,11 +6818,11 @@ let ji = { 0(e, r) {
|
|
|
6818
6818
|
return e.titleId === r.id ? e : { ...e, titleId: r.id };
|
|
6819
6819
|
} }, yr = fe(null);
|
|
6820
6820
|
yr.displayName = "DialogContext";
|
|
6821
|
-
function
|
|
6821
|
+
function ut(e) {
|
|
6822
6822
|
let r = se(yr);
|
|
6823
6823
|
if (r === null) {
|
|
6824
6824
|
let n = new Error(`<${e} /> is missing a parent <Dialog /> component.`);
|
|
6825
|
-
throw Error.captureStackTrace && Error.captureStackTrace(n,
|
|
6825
|
+
throw Error.captureStackTrace && Error.captureStackTrace(n, ut), n;
|
|
6826
6826
|
}
|
|
6827
6827
|
return r;
|
|
6828
6828
|
}
|
|
@@ -6835,7 +6835,7 @@ function Mi(e, r) {
|
|
|
6835
6835
|
l = function() {
|
|
6836
6836
|
return l === "dialog" || l === "alertdialog" ? l : (g.current || (g.current = !0, console.warn(`Invalid role [${l}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)), "dialog");
|
|
6837
6837
|
}();
|
|
6838
|
-
let v =
|
|
6838
|
+
let v = dt();
|
|
6839
6839
|
s === void 0 && v !== null && (s = (v & le.Open) === le.Open);
|
|
6840
6840
|
let C = P(null), x = ke(C, r), w = cr(C), j = e.hasOwnProperty("open") || v !== null, oe = e.hasOwnProperty("onClose");
|
|
6841
6841
|
if (!j && !oe)
|
|
@@ -6862,29 +6862,29 @@ function Mi(e, r) {
|
|
|
6862
6862
|
I.preventDefault(), S();
|
|
6863
6863
|
}, !(!_ || K));
|
|
6864
6864
|
let re = !(K || T !== 0);
|
|
6865
|
-
|
|
6866
|
-
re && (I.defaultPrevented || I.key ===
|
|
6867
|
-
}), Ka(w, f ? !1 : !(Y || T !== 0 || ae), J),
|
|
6865
|
+
cn(w == null ? void 0 : w.defaultView, "keydown", (I) => {
|
|
6866
|
+
re && (I.defaultPrevented || I.key === sn.Escape && (I.preventDefault(), I.stopPropagation(), S()));
|
|
6867
|
+
}), Ka(w, f ? !1 : !(Y || T !== 0 || ae), J), on(C, S, T === 0);
|
|
6868
6868
|
let [ie, Ke] = ya(), te = de(() => [{ dialogState: T, close: S, setTitleId: F }, U], [T, U, S, F]), G = de(() => ({ open: T === 0 }), [T]), Z = { ref: x, id: t, role: l, tabIndex: -1, "aria-modal": T === 0 ? !0 : void 0, "aria-labelledby": U.titleId, "aria-describedby": ie }, Je = !di(), je = _ ? q(ge, { parent: $e.RestoreFocus, leaf: $e.All & ~$e.FocusLock }) : $e.None;
|
|
6869
6869
|
return c && (je |= $e.AutoFocus), Je || (je &= ~$e.InitialFocus), f && (je = $e.None), k.createElement(fi, { type: "Dialog", enabled: T === 0, element: C, onUpdate: W((I, Ce) => {
|
|
6870
6870
|
Ce === "Dialog" && q(I, { [Zr.Add]: () => m((Xe) => Xe + 1), [Zr.Remove]: () => m((Xe) => Xe - 1) });
|
|
6871
|
-
}) }, k.createElement(
|
|
6871
|
+
}) }, k.createElement(Ot, { force: !0 }, k.createElement(Wt, null, k.createElement(yr.Provider, { value: te }, k.createElement(Wt.Group, { target: C }, k.createElement(Ot, { force: !1 }, k.createElement(Ke, { slot: G, name: "Dialog.Description" }, k.createElement(V, null, k.createElement(bi, { initialFocus: a, initialFocusFallback: C, containers: J, features: je }, k.createElement(Na, { value: S }, ve({ ourProps: Z, theirProps: u, slot: G, defaultTag: Ei, features: $i, visible: T === 0, name: "Dialog" })))))))))), k.createElement(wa, null, k.createElement(xe, null)));
|
|
6872
6872
|
}
|
|
6873
6873
|
let Ni = "div";
|
|
6874
6874
|
function Ti(e, r) {
|
|
6875
|
-
let n = jr(), { id: t = `headlessui-dialog-panel-${n}`, ...s } = e, [{ dialogState: o }, a] =
|
|
6875
|
+
let n = jr(), { id: t = `headlessui-dialog-panel-${n}`, ...s } = e, [{ dialogState: o }, a] = ut("Dialog.Panel"), l = ke(r, a.panelRef), c = de(() => ({ open: o === 0 }), [o]), f = W((u) => {
|
|
6876
6876
|
u.stopPropagation();
|
|
6877
6877
|
});
|
|
6878
6878
|
return ve({ ourProps: { ref: l, id: t, onClick: f }, theirProps: s, slot: c, defaultTag: Ni, name: "Dialog.Panel" });
|
|
6879
6879
|
}
|
|
6880
6880
|
let Si = "h2";
|
|
6881
6881
|
function Ri(e, r) {
|
|
6882
|
-
let n = jr(), { id: t = `headlessui-dialog-title-${n}`, ...s } = e, [{ dialogState: o, setTitleId: a }] =
|
|
6882
|
+
let n = jr(), { id: t = `headlessui-dialog-title-${n}`, ...s } = e, [{ dialogState: o, setTitleId: a }] = ut("Dialog.Title"), l = ke(r);
|
|
6883
6883
|
ne(() => (a(t), () => a(null)), [t, a]);
|
|
6884
6884
|
let c = de(() => ({ open: o === 0 }), [o]);
|
|
6885
6885
|
return ve({ ourProps: { ref: l, id: t }, theirProps: s, slot: c, defaultTag: Si, name: "Dialog.Title" });
|
|
6886
6886
|
}
|
|
6887
|
-
let Ai = pe(Mi),
|
|
6887
|
+
let Ai = pe(Mi), bn = pe(Ti), Pi = pe(Ri), Fi = Object.assign(Ai, { Panel: bn, Title: Pi, Description: $a });
|
|
6888
6888
|
function Oi(e = 0) {
|
|
6889
6889
|
let [r, n] = X(e), t = fr(), s = gr((c) => {
|
|
6890
6890
|
t.current && n((f) => f | c);
|
|
@@ -6895,7 +6895,7 @@ function Oi(e = 0) {
|
|
|
6895
6895
|
}, [n]);
|
|
6896
6896
|
return { flags: r, addFlag: s, hasFlag: o, removeFlag: a, toggleFlag: l };
|
|
6897
6897
|
}
|
|
6898
|
-
function
|
|
6898
|
+
function vn(e) {
|
|
6899
6899
|
let r = { called: !1 };
|
|
6900
6900
|
return (...n) => {
|
|
6901
6901
|
if (!r.called)
|
|
@@ -6909,7 +6909,7 @@ function _r(e, ...r) {
|
|
|
6909
6909
|
e && r.length > 0 && e.classList.remove(...r);
|
|
6910
6910
|
}
|
|
6911
6911
|
function Wi(e, r) {
|
|
6912
|
-
let n =
|
|
6912
|
+
let n = vn(r), t = We();
|
|
6913
6913
|
if (!e)
|
|
6914
6914
|
return t.dispose;
|
|
6915
6915
|
let { transitionDuration: s, transitionDelay: o } = getComputedStyle(e), [a, l] = [s, o].map((f) => {
|
|
@@ -6935,7 +6935,7 @@ function Wi(e, r) {
|
|
|
6935
6935
|
return t.dispose;
|
|
6936
6936
|
}
|
|
6937
6937
|
function _i(e, { direction: r, done: n, classes: t, inFlight: s }) {
|
|
6938
|
-
let o = We(), a = n !== void 0 ?
|
|
6938
|
+
let o = We(), a = n !== void 0 ? vn(n) : () => {
|
|
6939
6939
|
};
|
|
6940
6940
|
r === "enter" && (e.removeAttribute("hidden"), e.style.display = "");
|
|
6941
6941
|
let l = q(r, { enter: () => t.enter, leave: () => t.leave }), c = q(r, { enter: () => t.enterTo, leave: () => t.leaveTo }), f = q(r, { enter: () => t.enterFrom, leave: () => t.leaveFrom });
|
|
@@ -6954,7 +6954,7 @@ function Vi(e, { inFlight: r, prepare: n }) {
|
|
|
6954
6954
|
e.style.transition = "none", n(), e.offsetHeight, e.style.transition = t;
|
|
6955
6955
|
}
|
|
6956
6956
|
function Ii({ container: e, direction: r, classes: n, onStart: t, onStop: s }) {
|
|
6957
|
-
let o = fr(), a =
|
|
6957
|
+
let o = fr(), a = ot(), l = P(!1);
|
|
6958
6958
|
ee(() => {
|
|
6959
6959
|
if (r === "idle" || !o.current)
|
|
6960
6960
|
return;
|
|
@@ -6968,9 +6968,9 @@ function Ii({ container: e, direction: r, classes: n, onStart: t, onStop: s }) {
|
|
|
6968
6968
|
function Pe(e = "") {
|
|
6969
6969
|
return e.split(/\s+/).filter((r) => r.length > 1);
|
|
6970
6970
|
}
|
|
6971
|
-
function
|
|
6971
|
+
function xn(e) {
|
|
6972
6972
|
var r;
|
|
6973
|
-
return !!(e.enter || e.enterFrom || e.enterTo || e.leave || e.leaveFrom || e.leaveTo) || ((r = e.as) != null ? r :
|
|
6973
|
+
return !!(e.enter || e.enterFrom || e.enterTo || e.leave || e.leaveFrom || e.leaveTo) || ((r = e.as) != null ? r : wn) !== ue || k.Children.count(e.children) === 1;
|
|
6974
6974
|
}
|
|
6975
6975
|
let $r = fe(null);
|
|
6976
6976
|
$r.displayName = "TransitionContext";
|
|
@@ -6992,8 +6992,8 @@ Mr.displayName = "NestingContext";
|
|
|
6992
6992
|
function Nr(e) {
|
|
6993
6993
|
return "children" in e ? Nr(e.children) : e.current.filter(({ el: r }) => r.current !== null).filter(({ state: r }) => r === "visible").length > 0;
|
|
6994
6994
|
}
|
|
6995
|
-
function
|
|
6996
|
-
let n = we(e), t = P([]), s = fr(), o =
|
|
6995
|
+
function Cn(e, r) {
|
|
6996
|
+
let n = we(e), t = P([]), s = fr(), o = ot(), a = W((g, v = Oe.Hidden) => {
|
|
6997
6997
|
let C = t.current.findIndex(({ el: x }) => x === g);
|
|
6998
6998
|
C !== -1 && (q(v, { [Oe.Unmount]() {
|
|
6999
6999
|
t.current.splice(C, 1);
|
|
@@ -7020,10 +7020,10 @@ function xn(e, r) {
|
|
|
7020
7020
|
});
|
|
7021
7021
|
return de(() => ({ children: t, register: l, unregister: a, onStart: p, onStop: m, wait: f, chains: u }), [l, a, t, p, m, u, f]);
|
|
7022
7022
|
}
|
|
7023
|
-
let
|
|
7023
|
+
let wn = ue, kn = wr.RenderStrategy;
|
|
7024
7024
|
function zi(e, r) {
|
|
7025
7025
|
var n, t, s;
|
|
7026
|
-
let { beforeEnter: o, afterEnter: a, beforeLeave: l, afterLeave: c, enter: f, enterFrom: u, enterTo: p, entered: m, leave: g, leaveFrom: v, leaveTo: C, ...x } = e, w = P(null), j =
|
|
7026
|
+
let { beforeEnter: o, afterEnter: a, beforeLeave: l, afterLeave: c, enter: f, enterFrom: u, enterTo: p, entered: m, leave: g, leaveFrom: v, leaveTo: C, ...x } = e, w = P(null), j = xn(e), oe = ke(...j ? [w, r] : r === null ? [] : [r]), T = (n = x.unmount) == null || n ? Oe.Unmount : Oe.Hidden, { show: U, appear: he, initial: S } = Bi(), [F, _] = X(U ? "visible" : "hidden"), K = Hi(), { register: ae, unregister: $ } = K;
|
|
7027
7027
|
ee(() => ae(w), [ae, w]), ee(() => {
|
|
7028
7028
|
if (T === Oe.Hidden && w.current) {
|
|
7029
7029
|
if (U && F !== "visible") {
|
|
@@ -7052,7 +7052,7 @@ function zi(e, r) {
|
|
|
7052
7052
|
var G, Z;
|
|
7053
7053
|
Y.removeFlag(le.Closing), (Z = (G = z.current).afterLeave) == null || Z.call(G);
|
|
7054
7054
|
}, idle: () => {
|
|
7055
|
-
} })), re = P(!1), Se =
|
|
7055
|
+
} })), re = P(!1), Se = Cn(() => {
|
|
7056
7056
|
re.current || (_("hidden"), $(w));
|
|
7057
7057
|
}, K);
|
|
7058
7058
|
Ii({ container: w, classes: V, direction: ge, onStart: we((te) => {
|
|
@@ -7061,22 +7061,22 @@ function zi(e, r) {
|
|
|
7061
7061
|
re.current = !1, Se.onStop(w, te, be), te === "leave" && !Nr(Se) && (_("hidden"), $(w));
|
|
7062
7062
|
}) });
|
|
7063
7063
|
let ie = x, Ke = { ref: oe };
|
|
7064
|
-
return xe ? ie = { ...ie, className: ar(x.className, ...V.current.enter, ...V.current.enterFrom) } : re.current ? (ie.className = ar(x.className, (t = w.current) == null ? void 0 : t.className), ie.className === "" && delete ie.className) : (ie.className = ar(x.className, (s = w.current) == null ? void 0 : s.className, ...q(ge, { enter: [...V.current.enterTo, ...V.current.entered], leave: V.current.leaveTo, idle: [] })), ie.className === "" && delete ie.className), k.createElement(Mr.Provider, { value: Se }, k.createElement(Ja, { value: q(F, { visible: le.Open, hidden: le.Closed }) | Y.flags }, ve({ ourProps: Ke, theirProps: ie, defaultTag:
|
|
7064
|
+
return xe ? ie = { ...ie, className: ar(x.className, ...V.current.enter, ...V.current.enterFrom) } : re.current ? (ie.className = ar(x.className, (t = w.current) == null ? void 0 : t.className), ie.className === "" && delete ie.className) : (ie.className = ar(x.className, (s = w.current) == null ? void 0 : s.className, ...q(ge, { enter: [...V.current.enterTo, ...V.current.entered], leave: V.current.leaveTo, idle: [] })), ie.className === "" && delete ie.className), k.createElement(Mr.Provider, { value: Se }, k.createElement(Ja, { value: q(F, { visible: le.Open, hidden: le.Closed }) | Y.flags }, ve({ ourProps: Ke, theirProps: ie, defaultTag: wn, features: kn, visible: F === "visible", name: "Transition.Child" })));
|
|
7065
7065
|
}
|
|
7066
7066
|
function Ui(e, r) {
|
|
7067
|
-
let { show: n, appear: t = !1, unmount: s = !0, ...o } = e, a = P(null), l =
|
|
7067
|
+
let { show: n, appear: t = !1, unmount: s = !0, ...o } = e, a = P(null), l = xn(e), c = ke(...l ? [a, r] : r === null ? [] : [r]);
|
|
7068
7068
|
ur();
|
|
7069
|
-
let f =
|
|
7069
|
+
let f = dt();
|
|
7070
7070
|
if (n === void 0 && f !== null && (n = (f & le.Open) === le.Open), n === void 0)
|
|
7071
7071
|
throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");
|
|
7072
|
-
let [u, p] = X(n ? "visible" : "hidden"), m =
|
|
7072
|
+
let [u, p] = X(n ? "visible" : "hidden"), m = Cn(() => {
|
|
7073
7073
|
n || p("hidden");
|
|
7074
7074
|
}), [g, v] = X(!0), C = P([n]);
|
|
7075
7075
|
ee(() => {
|
|
7076
7076
|
g !== !1 && C.current[C.current.length - 1] !== n && (C.current.push(n), v(!1));
|
|
7077
7077
|
}, [C, n]);
|
|
7078
7078
|
let x = de(() => ({ show: n, appear: t, initial: g }), [n, t, g]);
|
|
7079
|
-
|
|
7079
|
+
on(a, () => p("hidden")), ee(() => {
|
|
7080
7080
|
n ? p("visible") : !Nr(m) && a.current !== null && p("hidden");
|
|
7081
7081
|
}, [n, m]);
|
|
7082
7082
|
let w = { unmount: s }, j = W(() => {
|
|
@@ -7086,13 +7086,13 @@ function Ui(e, r) {
|
|
|
7086
7086
|
var T;
|
|
7087
7087
|
g && v(!1), (T = e.beforeLeave) == null || T.call(e);
|
|
7088
7088
|
});
|
|
7089
|
-
return k.createElement(Mr.Provider, { value: m }, k.createElement($r.Provider, { value: x }, ve({ ourProps: { ...w, as: ue, children: k.createElement(
|
|
7089
|
+
return k.createElement(Mr.Provider, { value: m }, k.createElement($r.Provider, { value: x }, ve({ ourProps: { ...w, as: ue, children: k.createElement(yn, { ref: c, ...w, ...o, beforeEnter: j, beforeLeave: oe }) }, theirProps: {}, defaultTag: ue, features: kn, visible: u === "visible", name: "Transition" })));
|
|
7090
7090
|
}
|
|
7091
7091
|
function Gi(e, r) {
|
|
7092
|
-
let n = se($r) !== null, t =
|
|
7093
|
-
return k.createElement(k.Fragment, null, !n && t ? k.createElement(Yr, { ref: r, ...e }) : k.createElement(
|
|
7092
|
+
let n = se($r) !== null, t = dt() !== null;
|
|
7093
|
+
return k.createElement(k.Fragment, null, !n && t ? k.createElement(Yr, { ref: r, ...e }) : k.createElement(yn, { ref: r, ...e }));
|
|
7094
7094
|
}
|
|
7095
|
-
let Yr = pe(Ui),
|
|
7095
|
+
let Yr = pe(Ui), yn = pe(zi), qr = pe(Gi), Zi = Object.assign(Yr, { Child: qr, Root: Yr });
|
|
7096
7096
|
const Yi = ({
|
|
7097
7097
|
open: e = !1,
|
|
7098
7098
|
onClose: r,
|
|
@@ -7145,7 +7145,7 @@ const Yi = ({
|
|
|
7145
7145
|
leave: "ease-in duration-200",
|
|
7146
7146
|
leaveFrom: "opacity-100 translate-y-0 sm:scale-100",
|
|
7147
7147
|
leaveTo: "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",
|
|
7148
|
-
children: /* @__PURE__ */ i.jsxs(
|
|
7148
|
+
children: /* @__PURE__ */ i.jsxs(bn, { 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: [
|
|
7149
7149
|
/* @__PURE__ */ i.jsxs(
|
|
7150
7150
|
"div",
|
|
7151
7151
|
{
|
|
@@ -7153,7 +7153,7 @@ const Yi = ({
|
|
|
7153
7153
|
children: [
|
|
7154
7154
|
a && /* @__PURE__ */ i.jsx("div", { className: "ds-mr-3", children: p() }),
|
|
7155
7155
|
/* @__PURE__ */ i.jsx("div", { className: "ds-flex-grow", children: /* @__PURE__ */ i.jsx(
|
|
7156
|
-
|
|
7156
|
+
en,
|
|
7157
7157
|
{
|
|
7158
7158
|
text: n,
|
|
7159
7159
|
headingTag: "h2",
|
|
@@ -7163,7 +7163,7 @@ const Yi = ({
|
|
|
7163
7163
|
}
|
|
7164
7164
|
) }),
|
|
7165
7165
|
f && /* @__PURE__ */ i.jsx(
|
|
7166
|
-
|
|
7166
|
+
tt,
|
|
7167
7167
|
{
|
|
7168
7168
|
variant: "default",
|
|
7169
7169
|
iconSize: "small",
|
|
@@ -7255,7 +7255,7 @@ const Yi = ({
|
|
|
7255
7255
|
/* @__PURE__ */ i.jsx("div", { className: "ds-max-w-[200px] ds-truncate ds-leading-6", children: e }),
|
|
7256
7256
|
t && // Still confirming if the background should be transparent or white
|
|
7257
7257
|
/* @__PURE__ */ i.jsx(
|
|
7258
|
-
|
|
7258
|
+
tt,
|
|
7259
7259
|
{
|
|
7260
7260
|
variant: "small",
|
|
7261
7261
|
iconName: "close",
|
|
@@ -7537,9 +7537,9 @@ const Yi = ({
|
|
|
7537
7537
|
] }),
|
|
7538
7538
|
p && /* @__PURE__ */ i.jsx("p", { className: cl({ state: r }), children: a })
|
|
7539
7539
|
] });
|
|
7540
|
-
},
|
|
7540
|
+
}, ft = ul, fl = A(
|
|
7541
7541
|
["preflight", "ds-form-input", "ds-rounded", "ds-p-2", "!ds-border", "!ds-font-sans"],
|
|
7542
|
-
|
|
7542
|
+
nt
|
|
7543
7543
|
), pl = (e) => H(fl(e)), hl = ({
|
|
7544
7544
|
state: e = "default",
|
|
7545
7545
|
rows: r = 2,
|
|
@@ -7575,7 +7575,7 @@ const Yi = ({
|
|
|
7575
7575
|
hasMarginBottom: p = !0,
|
|
7576
7576
|
...m
|
|
7577
7577
|
}) => /* @__PURE__ */ i.jsx(
|
|
7578
|
-
|
|
7578
|
+
ft,
|
|
7579
7579
|
{
|
|
7580
7580
|
id: e,
|
|
7581
7581
|
state: r,
|
|
@@ -7613,62 +7613,64 @@ const Yi = ({
|
|
|
7613
7613
|
"!ds-font-sans",
|
|
7614
7614
|
"ds-container"
|
|
7615
7615
|
],
|
|
7616
|
-
|
|
7617
|
-
), vl = (e) => H(bl(e)), xl = (
|
|
7618
|
-
|
|
7619
|
-
|
|
7620
|
-
|
|
7621
|
-
|
|
7622
|
-
|
|
7623
|
-
}) => /* @__PURE__ */ i.jsx(
|
|
7624
|
-
|
|
7625
|
-
|
|
7626
|
-
|
|
7627
|
-
|
|
7628
|
-
|
|
7629
|
-
|
|
7630
|
-
|
|
7631
|
-
|
|
7632
|
-
|
|
7633
|
-
)
|
|
7634
|
-
|
|
7635
|
-
|
|
7636
|
-
disabled: n = !1,
|
|
7637
|
-
type: t = "text",
|
|
7638
|
-
label: s,
|
|
7639
|
-
optionalityLabel: o = "",
|
|
7640
|
-
helpText: a = [],
|
|
7641
|
-
message: l = "",
|
|
7642
|
-
className: c = "",
|
|
7643
|
-
hasMarginBottom: f = !0,
|
|
7644
|
-
ref: u,
|
|
7645
|
-
...p
|
|
7646
|
-
}) => /* @__PURE__ */ i.jsx(
|
|
7647
|
-
ut,
|
|
7648
|
-
{
|
|
7616
|
+
nt
|
|
7617
|
+
), vl = (e) => H(bl(e)), xl = Kr(
|
|
7618
|
+
({
|
|
7619
|
+
state: e = "default",
|
|
7620
|
+
disabled: r = !1,
|
|
7621
|
+
type: n = "text",
|
|
7622
|
+
...t
|
|
7623
|
+
}, s) => /* @__PURE__ */ i.jsx(
|
|
7624
|
+
"input",
|
|
7625
|
+
{
|
|
7626
|
+
"aria-disabled": r,
|
|
7627
|
+
readOnly: r,
|
|
7628
|
+
type: n,
|
|
7629
|
+
className: vl({ disabled: r, state: e }),
|
|
7630
|
+
ref: s,
|
|
7631
|
+
...t
|
|
7632
|
+
}
|
|
7633
|
+
)
|
|
7634
|
+
), Cl = xl, wl = Kr(
|
|
7635
|
+
({
|
|
7649
7636
|
id: e,
|
|
7650
|
-
state: r,
|
|
7651
|
-
disabled: n,
|
|
7637
|
+
state: r = "default",
|
|
7638
|
+
disabled: n = !1,
|
|
7639
|
+
type: t = "text",
|
|
7652
7640
|
label: s,
|
|
7653
|
-
optionalityLabel: o,
|
|
7654
|
-
helpText: a,
|
|
7655
|
-
message: l,
|
|
7656
|
-
className: c,
|
|
7657
|
-
hasMarginBottom: f,
|
|
7658
|
-
|
|
7659
|
-
|
|
7660
|
-
|
|
7661
|
-
|
|
7662
|
-
|
|
7663
|
-
|
|
7664
|
-
|
|
7665
|
-
|
|
7666
|
-
|
|
7667
|
-
|
|
7668
|
-
|
|
7669
|
-
|
|
7670
|
-
|
|
7671
|
-
|
|
7641
|
+
optionalityLabel: o = "",
|
|
7642
|
+
helpText: a = [],
|
|
7643
|
+
message: l = "",
|
|
7644
|
+
className: c = "",
|
|
7645
|
+
hasMarginBottom: f = !0,
|
|
7646
|
+
...u
|
|
7647
|
+
}, p) => /* @__PURE__ */ i.jsx(
|
|
7648
|
+
ft,
|
|
7649
|
+
{
|
|
7650
|
+
id: e,
|
|
7651
|
+
state: r,
|
|
7652
|
+
disabled: n,
|
|
7653
|
+
label: s,
|
|
7654
|
+
optionalityLabel: o,
|
|
7655
|
+
helpText: a,
|
|
7656
|
+
message: l,
|
|
7657
|
+
className: c,
|
|
7658
|
+
hasMarginBottom: f,
|
|
7659
|
+
child: /* @__PURE__ */ i.jsx(
|
|
7660
|
+
Cl,
|
|
7661
|
+
{
|
|
7662
|
+
id: e,
|
|
7663
|
+
"aria-labelledby": s ? "label_" + e : void 0,
|
|
7664
|
+
"aria-describedby": a && a.length > 0 ? "helptext_" + e : void 0,
|
|
7665
|
+
type: t,
|
|
7666
|
+
state: r,
|
|
7667
|
+
disabled: n,
|
|
7668
|
+
ref: p,
|
|
7669
|
+
...u
|
|
7670
|
+
}
|
|
7671
|
+
)
|
|
7672
|
+
}
|
|
7673
|
+
)
|
|
7672
7674
|
), Gl = wl, kl = A(
|
|
7673
7675
|
[
|
|
7674
7676
|
"preflight",
|
|
@@ -7681,7 +7683,7 @@ const Yi = ({
|
|
|
7681
7683
|
"ds-container",
|
|
7682
7684
|
"ds-bg-[center_right_0.25rem]"
|
|
7683
7685
|
],
|
|
7684
|
-
|
|
7686
|
+
nt
|
|
7685
7687
|
), yl = (e) => kl(e), jl = `url('data:image/svg+xml,<svg width="16" height="16" viewBox="5 -5 15 35" fill="none" xmlns="http://www.w3.org/2000/svg" stroke="%23949494" ><path d="M21.375 8.09253L12.4417 17.025C12.3837 17.0831 12.3148 17.1291 12.2391 17.1605C12.1632 17.192 12.082 17.2082 12 17.2082C11.918 17.2082 11.8368 17.192 11.7609 17.1605C11.6852 17.1291 11.6163 17.0831 11.5583 17.025L2.625 8.09253" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" stroke="%23000000" /></svg>')`, Ll = ({
|
|
7686
7688
|
state: e = "default",
|
|
7687
7689
|
disabled: r = !1,
|
|
@@ -7715,7 +7717,7 @@ const Yi = ({
|
|
|
7715
7717
|
hasMarginBottom: c = !0,
|
|
7716
7718
|
...f
|
|
7717
7719
|
}) => /* @__PURE__ */ i.jsx(
|
|
7718
|
-
|
|
7720
|
+
ft,
|
|
7719
7721
|
{
|
|
7720
7722
|
id: e,
|
|
7721
7723
|
state: r,
|
|
@@ -7867,9 +7869,9 @@ export {
|
|
|
7867
7869
|
Zl as Dropdown,
|
|
7868
7870
|
El as DropdownAtom,
|
|
7869
7871
|
_l as FormValidation,
|
|
7870
|
-
|
|
7872
|
+
en as Heading,
|
|
7871
7873
|
Te as Icon,
|
|
7872
|
-
|
|
7874
|
+
tt as IconButton,
|
|
7873
7875
|
al as LabelAtom,
|
|
7874
7876
|
Il as Link,
|
|
7875
7877
|
Bl as Modal,
|