@takecasper/acuity-design-system 1.24.1 → 1.25.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/dist/assets/index.css +1 -1
- package/dist/index.cjs.js +6 -6
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +19 -3
- package/dist/index.es.js +424 -359
- 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 w, { useState as ge, useEffect as oe, useLayoutEffect as
|
|
3
|
+
import w, { useState as ge, useEffect as oe, useLayoutEffect as Bn, useRef as A, createContext as ce, useContext as re, forwardRef as Hn, Fragment as de, isValidElement as zn, cloneElement as Un, createElement as Gn, useId as jr, useMemo as ae, useSyncExternalStore as Zn, useReducer as Yn, createRef as qn, useCallback as gr } from "react";
|
|
4
4
|
import { createPortal as Ot } from "react-dom";
|
|
5
|
-
var
|
|
5
|
+
var Ir = { exports: {} }, er = {};
|
|
6
6
|
/**
|
|
7
7
|
* @license React
|
|
8
8
|
* react-jsx-runtime.production.min.js
|
|
@@ -43,11 +43,11 @@ var rr = {};
|
|
|
43
43
|
var Lt;
|
|
44
44
|
function Jn() {
|
|
45
45
|
return Lt || (Lt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
46
|
-
var e = w, 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"), b = Symbol.for("react.offscreen"),
|
|
47
|
-
function
|
|
46
|
+
var e = w, 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"), b = Symbol.for("react.offscreen"), v = Symbol.iterator, C = "@@iterator";
|
|
47
|
+
function x(d) {
|
|
48
48
|
if (d === null || typeof d != "object")
|
|
49
49
|
return null;
|
|
50
|
-
var h =
|
|
50
|
+
var h = v && d[v] || d[C];
|
|
51
51
|
return typeof h == "function" ? h : null;
|
|
52
52
|
}
|
|
53
53
|
var k = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
@@ -68,10 +68,10 @@ function Jn() {
|
|
|
68
68
|
T.unshift("Warning: " + h), Function.prototype.apply.call(console[d], console, T);
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
|
-
var
|
|
71
|
+
var R = !1, Z = !1, we = !1, J = !1, Y = !1, X;
|
|
72
72
|
X = Symbol.for("react.module.reference");
|
|
73
73
|
function te(d) {
|
|
74
|
-
return !!(typeof d == "string" || typeof d == "function" || d === t || d === o || Y || d === s || d === f || d === u || J || d === b ||
|
|
74
|
+
return !!(typeof d == "string" || typeof d == "function" || d === t || d === o || Y || d === s || d === f || d === u || J || d === b || R || Z || we || typeof d == "object" && d !== null && (d.$$typeof === m || d.$$typeof === p || d.$$typeof === a || d.$$typeof === l || d.$$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.
|
|
@@ -194,18 +194,18 @@ function Jn() {
|
|
|
194
194
|
G < 0 && j("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
195
195
|
}
|
|
196
196
|
}
|
|
197
|
-
var ee = k.ReactCurrentDispatcher,
|
|
197
|
+
var ee = k.ReactCurrentDispatcher, B;
|
|
198
198
|
function H(d, h, g) {
|
|
199
199
|
{
|
|
200
|
-
if (
|
|
200
|
+
if (B === void 0)
|
|
201
201
|
try {
|
|
202
202
|
throw Error();
|
|
203
203
|
} catch (N) {
|
|
204
204
|
var y = N.stack.trim().match(/\n( *(at )?)/);
|
|
205
|
-
|
|
205
|
+
B = y && y[1] || "";
|
|
206
206
|
}
|
|
207
207
|
return `
|
|
208
|
-
` +
|
|
208
|
+
` + B + d;
|
|
209
209
|
}
|
|
210
210
|
}
|
|
211
211
|
var Je = !1, je;
|
|
@@ -281,7 +281,7 @@ function Jn() {
|
|
|
281
281
|
} finally {
|
|
282
282
|
Je = !1, ee.current = T, Ke(), Error.prepareStackTrace = N;
|
|
283
283
|
}
|
|
284
|
-
var
|
|
284
|
+
var He = d ? d.displayName || d.name : "", yt = He ? H(He) : "";
|
|
285
285
|
return typeof d == "function" && je.set(d, yt), yt;
|
|
286
286
|
}
|
|
287
287
|
function Xe(d, h, g) {
|
|
@@ -291,7 +291,7 @@ function Jn() {
|
|
|
291
291
|
var h = d.prototype;
|
|
292
292
|
return !!(h && h.isReactComponent);
|
|
293
293
|
}
|
|
294
|
-
function
|
|
294
|
+
function pr(d, h, g) {
|
|
295
295
|
if (d == null)
|
|
296
296
|
return "";
|
|
297
297
|
if (typeof d == "function")
|
|
@@ -309,28 +309,28 @@ function Jn() {
|
|
|
309
309
|
case c:
|
|
310
310
|
return Xe(d.render);
|
|
311
311
|
case p:
|
|
312
|
-
return
|
|
312
|
+
return pr(d.type, h, g);
|
|
313
313
|
case m: {
|
|
314
314
|
var y = d, N = y._payload, T = y._init;
|
|
315
315
|
try {
|
|
316
|
-
return
|
|
316
|
+
return pr(T(N), h, g);
|
|
317
317
|
} catch (M) {
|
|
318
318
|
}
|
|
319
319
|
}
|
|
320
320
|
}
|
|
321
321
|
return "";
|
|
322
322
|
}
|
|
323
|
-
var
|
|
324
|
-
function
|
|
323
|
+
var hr = Object.prototype.hasOwnProperty, ut = {}, ft = k.ReactDebugCurrentFrame;
|
|
324
|
+
function mr(d) {
|
|
325
325
|
if (d) {
|
|
326
|
-
var h = d._owner, g =
|
|
326
|
+
var h = d._owner, g = pr(d.type, d._source, h ? h.type : null);
|
|
327
327
|
ft.setExtraStackFrame(g);
|
|
328
328
|
} else
|
|
329
329
|
ft.setExtraStackFrame(null);
|
|
330
330
|
}
|
|
331
331
|
function wn(d, h, g, y, N) {
|
|
332
332
|
{
|
|
333
|
-
var T = Function.call.bind(
|
|
333
|
+
var T = Function.call.bind(hr);
|
|
334
334
|
for (var M in d)
|
|
335
335
|
if (T(d, M)) {
|
|
336
336
|
var E = void 0;
|
|
@@ -343,12 +343,12 @@ function Jn() {
|
|
|
343
343
|
} catch (_) {
|
|
344
344
|
E = _;
|
|
345
345
|
}
|
|
346
|
-
E && !(E instanceof Error) && (
|
|
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", g, M, typeof E), mr(null)), E instanceof Error && !(E.message in ut) && (ut[E.message] = !0, mr(N), j("Failed %s type: %s", g, E.message), mr(null));
|
|
347
347
|
}
|
|
348
348
|
}
|
|
349
349
|
}
|
|
350
350
|
var yn = Array.isArray;
|
|
351
|
-
function
|
|
351
|
+
function Tr(d) {
|
|
352
352
|
return yn(d);
|
|
353
353
|
}
|
|
354
354
|
function jn(d) {
|
|
@@ -376,10 +376,10 @@ function Jn() {
|
|
|
376
376
|
ref: !0,
|
|
377
377
|
__self: !0,
|
|
378
378
|
__source: !0
|
|
379
|
-
}, mt, gt,
|
|
380
|
-
|
|
379
|
+
}, mt, gt, Sr;
|
|
380
|
+
Sr = {};
|
|
381
381
|
function $n(d) {
|
|
382
|
-
if (
|
|
382
|
+
if (hr.call(d, "ref")) {
|
|
383
383
|
var h = Object.getOwnPropertyDescriptor(d, "ref").get;
|
|
384
384
|
if (h && h.isReactWarning)
|
|
385
385
|
return !1;
|
|
@@ -387,7 +387,7 @@ function Jn() {
|
|
|
387
387
|
return d.ref !== void 0;
|
|
388
388
|
}
|
|
389
389
|
function Mn(d) {
|
|
390
|
-
if (
|
|
390
|
+
if (hr.call(d, "key")) {
|
|
391
391
|
var h = Object.getOwnPropertyDescriptor(d, "key").get;
|
|
392
392
|
if (h && h.isReactWarning)
|
|
393
393
|
return !1;
|
|
@@ -397,7 +397,7 @@ function Jn() {
|
|
|
397
397
|
function Nn(d, h) {
|
|
398
398
|
if (typeof d.ref == "string" && Qe.current && h && Qe.current.stateNode !== h) {
|
|
399
399
|
var g = O(Qe.current.type);
|
|
400
|
-
|
|
400
|
+
Sr[g] || (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', O(Qe.current.type), d.ref), Sr[g] = !0);
|
|
401
401
|
}
|
|
402
402
|
}
|
|
403
403
|
function Tn(d, h) {
|
|
@@ -456,7 +456,7 @@ function Jn() {
|
|
|
456
456
|
var T, M = {}, E = null, q = null;
|
|
457
457
|
g !== void 0 && (ht(g), E = "" + g), Mn(h) && (ht(h.key), E = "" + h.key), $n(h) && (q = h.ref, Nn(h, N));
|
|
458
458
|
for (T in h)
|
|
459
|
-
|
|
459
|
+
hr.call(h, T) && !En.hasOwnProperty(T) && (M[T] = h[T]);
|
|
460
460
|
if (d && d.defaultProps) {
|
|
461
461
|
var _ = d.defaultProps;
|
|
462
462
|
for (T in _)
|
|
@@ -469,23 +469,23 @@ function Jn() {
|
|
|
469
469
|
return Rn(d, E, q, N, y, Qe.current, M);
|
|
470
470
|
}
|
|
471
471
|
}
|
|
472
|
-
var
|
|
473
|
-
function
|
|
472
|
+
var Rr = k.ReactCurrentOwner, bt = k.ReactDebugCurrentFrame;
|
|
473
|
+
function Be(d) {
|
|
474
474
|
if (d) {
|
|
475
|
-
var h = d._owner, g =
|
|
475
|
+
var h = d._owner, g = pr(d.type, d._source, h ? h.type : null);
|
|
476
476
|
bt.setExtraStackFrame(g);
|
|
477
477
|
} else
|
|
478
478
|
bt.setExtraStackFrame(null);
|
|
479
479
|
}
|
|
480
|
-
var
|
|
481
|
-
|
|
482
|
-
function
|
|
480
|
+
var Ar;
|
|
481
|
+
Ar = !1;
|
|
482
|
+
function Pr(d) {
|
|
483
483
|
return typeof d == "object" && d !== null && d.$$typeof === r;
|
|
484
484
|
}
|
|
485
485
|
function vt() {
|
|
486
486
|
{
|
|
487
|
-
if (
|
|
488
|
-
var d = O(
|
|
487
|
+
if (Rr.current) {
|
|
488
|
+
var d = O(Rr.current.type);
|
|
489
489
|
if (d)
|
|
490
490
|
return `
|
|
491
491
|
|
|
@@ -528,25 +528,25 @@ Check the top-level render call using <` + g + ">.");
|
|
|
528
528
|
return;
|
|
529
529
|
xt[g] = !0;
|
|
530
530
|
var y = "";
|
|
531
|
-
d && d._owner && d._owner !==
|
|
531
|
+
d && d._owner && d._owner !== Rr.current && (y = " It was passed a child from " + O(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.', g, y), Be(null);
|
|
532
532
|
}
|
|
533
533
|
}
|
|
534
534
|
function kt(d, h) {
|
|
535
535
|
{
|
|
536
536
|
if (typeof d != "object")
|
|
537
537
|
return;
|
|
538
|
-
if (
|
|
538
|
+
if (Tr(d))
|
|
539
539
|
for (var g = 0; g < d.length; g++) {
|
|
540
540
|
var y = d[g];
|
|
541
|
-
|
|
541
|
+
Pr(y) && Ct(y, h);
|
|
542
542
|
}
|
|
543
|
-
else if (
|
|
543
|
+
else if (Pr(d))
|
|
544
544
|
d._store && (d._store.validated = !0);
|
|
545
545
|
else if (d) {
|
|
546
|
-
var N =
|
|
546
|
+
var N = x(d);
|
|
547
547
|
if (typeof N == "function" && N !== d.entries)
|
|
548
548
|
for (var T = N.call(d), M; !(M = T.next()).done; )
|
|
549
|
-
|
|
549
|
+
Pr(M.value) && Ct(M.value, h);
|
|
550
550
|
}
|
|
551
551
|
}
|
|
552
552
|
}
|
|
@@ -567,8 +567,8 @@ Check the top-level render call using <` + g + ">.");
|
|
|
567
567
|
if (g) {
|
|
568
568
|
var y = O(h);
|
|
569
569
|
wn(g, d.props, "prop", y, d);
|
|
570
|
-
} else if (h.PropTypes !== void 0 && !
|
|
571
|
-
|
|
570
|
+
} else if (h.PropTypes !== void 0 && !Ar) {
|
|
571
|
+
Ar = !0;
|
|
572
572
|
var N = O(h);
|
|
573
573
|
j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", N || "Unknown");
|
|
574
574
|
}
|
|
@@ -580,11 +580,11 @@ Check the top-level render call using <` + g + ">.");
|
|
|
580
580
|
for (var h = Object.keys(d.props), g = 0; g < h.length; g++) {
|
|
581
581
|
var y = h[g];
|
|
582
582
|
if (y !== "children" && y !== "key") {
|
|
583
|
-
|
|
583
|
+
Be(d), j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", y), Be(null);
|
|
584
584
|
break;
|
|
585
585
|
}
|
|
586
586
|
}
|
|
587
|
-
d.ref !== null && (
|
|
587
|
+
d.ref !== null && (Be(d), j("Invalid attribute `ref` supplied to `React.Fragment`."), Be(null));
|
|
588
588
|
}
|
|
589
589
|
}
|
|
590
590
|
function wt(d, h, g, y, N, T) {
|
|
@@ -596,7 +596,7 @@ Check the top-level render call using <` + g + ">.");
|
|
|
596
596
|
var q = Pn(N);
|
|
597
597
|
q ? E += q : E += vt();
|
|
598
598
|
var _;
|
|
599
|
-
d === null ? _ = "null" :
|
|
599
|
+
d === null ? _ = "null" : Tr(d) ? _ = "array" : d !== void 0 && d.$$typeof === r ? (_ = "<" + (O(d.type) || "Unknown") + " />", E = " Did you accidentally export a JSX literal instead of a component?") : _ = 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", _, E);
|
|
600
600
|
}
|
|
601
601
|
var I = An(d, h, g, N, T);
|
|
602
602
|
if (I == null)
|
|
@@ -605,9 +605,9 @@ Check the top-level render call using <` + g + ">.");
|
|
|
605
605
|
var le = h.children;
|
|
606
606
|
if (le !== void 0)
|
|
607
607
|
if (y)
|
|
608
|
-
if (
|
|
609
|
-
for (var
|
|
610
|
-
kt(le[
|
|
608
|
+
if (Tr(le)) {
|
|
609
|
+
for (var He = 0; He < le.length; He++)
|
|
610
|
+
kt(le[He], d);
|
|
611
611
|
Object.freeze && Object.freeze(le);
|
|
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.");
|
|
@@ -627,8 +627,8 @@ Check the top-level render call using <` + g + ">.");
|
|
|
627
627
|
rr.Fragment = t, rr.jsx = Vn, rr.jsxs = Dn;
|
|
628
628
|
}()), rr;
|
|
629
629
|
}
|
|
630
|
-
process.env.NODE_ENV === "production" ?
|
|
631
|
-
var i =
|
|
630
|
+
process.env.NODE_ENV === "production" ? Ir.exports = Kn() : Ir.exports = Jn();
|
|
631
|
+
var i = Ir.exports;
|
|
632
632
|
const Xn = ({
|
|
633
633
|
width: e = "24",
|
|
634
634
|
height: r = "24",
|
|
@@ -2121,7 +2121,7 @@ const Xn = ({
|
|
|
2121
2121
|
]
|
|
2122
2122
|
}
|
|
2123
2123
|
);
|
|
2124
|
-
}, Ds = Vs,
|
|
2124
|
+
}, Ds = Vs, Bs = ({
|
|
2125
2125
|
width: e = "24",
|
|
2126
2126
|
height: r = "24",
|
|
2127
2127
|
className: n = "",
|
|
@@ -2166,7 +2166,7 @@ const Xn = ({
|
|
|
2166
2166
|
]
|
|
2167
2167
|
}
|
|
2168
2168
|
);
|
|
2169
|
-
},
|
|
2169
|
+
}, Hs = Bs, zs = ({
|
|
2170
2170
|
width: e = "24",
|
|
2171
2171
|
height: r = "24",
|
|
2172
2172
|
className: n = "",
|
|
@@ -2317,7 +2317,7 @@ function Ys() {
|
|
|
2317
2317
|
(e = arguments[n++]) && (r = Wt(e)) && (t && (t += " "), t += r);
|
|
2318
2318
|
return t;
|
|
2319
2319
|
}
|
|
2320
|
-
const Et = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, $t = Ys,
|
|
2320
|
+
const Et = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, $t = Ys, S = (e, r) => (n) => {
|
|
2321
2321
|
var t;
|
|
2322
2322
|
if ((r == null ? void 0 : r.variants) == null)
|
|
2323
2323
|
return $t(e, n == null ? void 0 : n.class, n == null ? void 0 : n.className);
|
|
@@ -2332,15 +2332,15 @@ const Et = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, $t =
|
|
|
2332
2332
|
return m === void 0 || (f[p] = m), f;
|
|
2333
2333
|
}, {}), c = r == null || (t = r.compoundVariants) === null || t === void 0 ? void 0 : t.reduce((f, u) => {
|
|
2334
2334
|
let { class: p, className: m, ...b } = u;
|
|
2335
|
-
return Object.entries(b).every((
|
|
2336
|
-
let [C,
|
|
2337
|
-
return Array.isArray(
|
|
2335
|
+
return Object.entries(b).every((v) => {
|
|
2336
|
+
let [C, x] = v;
|
|
2337
|
+
return Array.isArray(x) ? x.includes({
|
|
2338
2338
|
...o,
|
|
2339
2339
|
...l
|
|
2340
2340
|
}[C]) : {
|
|
2341
2341
|
...o,
|
|
2342
2342
|
...l
|
|
2343
|
-
}[C] ===
|
|
2343
|
+
}[C] === x;
|
|
2344
2344
|
}) ? [
|
|
2345
2345
|
...f,
|
|
2346
2346
|
p,
|
|
@@ -2398,10 +2398,10 @@ function Js(e) {
|
|
|
2398
2398
|
validators: []
|
|
2399
2399
|
};
|
|
2400
2400
|
return Qs(Object.entries(e.classGroups), n).forEach(([o, a]) => {
|
|
2401
|
-
|
|
2401
|
+
Vr(a, t, o, r);
|
|
2402
2402
|
}), t;
|
|
2403
2403
|
}
|
|
2404
|
-
function
|
|
2404
|
+
function Vr(e, r, n, t) {
|
|
2405
2405
|
e.forEach((s) => {
|
|
2406
2406
|
if (typeof s == "string") {
|
|
2407
2407
|
const o = s === "" ? r : Nt(r, s);
|
|
@@ -2410,7 +2410,7 @@ function Ir(e, r, n, t) {
|
|
|
2410
2410
|
}
|
|
2411
2411
|
if (typeof s == "function") {
|
|
2412
2412
|
if (Xs(s)) {
|
|
2413
|
-
|
|
2413
|
+
Vr(s(t), r, n, t);
|
|
2414
2414
|
return;
|
|
2415
2415
|
}
|
|
2416
2416
|
r.validators.push({
|
|
@@ -2420,7 +2420,7 @@ function Ir(e, r, n, t) {
|
|
|
2420
2420
|
return;
|
|
2421
2421
|
}
|
|
2422
2422
|
Object.entries(s).forEach(([o, a]) => {
|
|
2423
|
-
|
|
2423
|
+
Vr(a, Nt(r, o), n, t);
|
|
2424
2424
|
});
|
|
2425
2425
|
});
|
|
2426
2426
|
}
|
|
@@ -2474,25 +2474,25 @@ function ro(e) {
|
|
|
2474
2474
|
const l = [];
|
|
2475
2475
|
let c = 0, f = 0, u;
|
|
2476
2476
|
for (let C = 0; C < a.length; C++) {
|
|
2477
|
-
let
|
|
2477
|
+
let x = a[C];
|
|
2478
2478
|
if (c === 0) {
|
|
2479
|
-
if (
|
|
2479
|
+
if (x === t && (n || a.slice(C, C + s) === r)) {
|
|
2480
2480
|
l.push(a.slice(f, C)), f = C + s;
|
|
2481
2481
|
continue;
|
|
2482
2482
|
}
|
|
2483
|
-
if (
|
|
2483
|
+
if (x === "/") {
|
|
2484
2484
|
u = C;
|
|
2485
2485
|
continue;
|
|
2486
2486
|
}
|
|
2487
2487
|
}
|
|
2488
|
-
|
|
2488
|
+
x === "[" ? c++ : x === "]" && c--;
|
|
2489
2489
|
}
|
|
2490
|
-
const p = l.length === 0 ? a : a.substring(f), m = p.startsWith(It), b = m ? p.substring(1) : p,
|
|
2490
|
+
const p = l.length === 0 ? a : a.substring(f), m = p.startsWith(It), b = m ? p.substring(1) : p, v = u && u > f ? u - f : void 0;
|
|
2491
2491
|
return {
|
|
2492
2492
|
modifiers: l,
|
|
2493
2493
|
hasImportantModifier: m,
|
|
2494
2494
|
baseClassName: b,
|
|
2495
|
-
maybePostfixModifierPosition:
|
|
2495
|
+
maybePostfixModifierPosition: v
|
|
2496
2496
|
};
|
|
2497
2497
|
};
|
|
2498
2498
|
}
|
|
@@ -2590,7 +2590,7 @@ function io(e, ...r) {
|
|
|
2590
2590
|
return o(ao.apply(null, arguments));
|
|
2591
2591
|
};
|
|
2592
2592
|
}
|
|
2593
|
-
function
|
|
2593
|
+
function P(e) {
|
|
2594
2594
|
const r = (n) => n[e] || [];
|
|
2595
2595
|
return r.isThemeGetter = !0, r;
|
|
2596
2596
|
}
|
|
@@ -2604,7 +2604,7 @@ function Re(e) {
|
|
|
2604
2604
|
function _e(e) {
|
|
2605
2605
|
return !!e && !Number.isNaN(Number(e));
|
|
2606
2606
|
}
|
|
2607
|
-
function
|
|
2607
|
+
function br(e) {
|
|
2608
2608
|
return Ge(e, "number", _e);
|
|
2609
2609
|
}
|
|
2610
2610
|
function tr(e) {
|
|
@@ -2621,10 +2621,10 @@ function Ae(e) {
|
|
|
2621
2621
|
}
|
|
2622
2622
|
const bo = /* @__PURE__ */ new Set(["length", "size", "percentage"]);
|
|
2623
2623
|
function vo(e) {
|
|
2624
|
-
return Ge(e, bo,
|
|
2624
|
+
return Ge(e, bo, Bt);
|
|
2625
2625
|
}
|
|
2626
2626
|
function xo(e) {
|
|
2627
|
-
return Ge(e, "position",
|
|
2627
|
+
return Ge(e, "position", Bt);
|
|
2628
2628
|
}
|
|
2629
2629
|
const Co = /* @__PURE__ */ new Set(["image", "url"]);
|
|
2630
2630
|
function ko(e) {
|
|
@@ -2643,7 +2643,7 @@ function Ge(e, r, n) {
|
|
|
2643
2643
|
function yo(e) {
|
|
2644
2644
|
return fo.test(e) && !po.test(e);
|
|
2645
2645
|
}
|
|
2646
|
-
function
|
|
2646
|
+
function Bt() {
|
|
2647
2647
|
return !1;
|
|
2648
2648
|
}
|
|
2649
2649
|
function jo(e) {
|
|
@@ -2653,7 +2653,7 @@ function Lo(e) {
|
|
|
2653
2653
|
return mo.test(e);
|
|
2654
2654
|
}
|
|
2655
2655
|
function Eo() {
|
|
2656
|
-
const e =
|
|
2656
|
+
const e = P("colors"), r = P("spacing"), n = P("blur"), t = P("brightness"), s = P("borderColor"), o = P("borderRadius"), a = P("borderSpacing"), l = P("borderWidth"), c = P("contrast"), f = P("grayscale"), u = P("hueRotate"), p = P("invert"), m = P("gap"), b = P("gradientColorStops"), v = P("gradientColorStopPositions"), C = P("inset"), x = P("margin"), k = P("opacity"), j = P("padding"), fe = P("saturate"), R = P("scale"), Z = P("sepia"), we = P("skew"), J = P("space"), Y = P("translate"), X = () => ["auto", "contain", "none"], te = () => ["auto", "hidden", "clip", "visible", "scroll"], ie = () => ["auto", L, r], $ = () => [L, r], O = () => ["", Ee, Re], V = () => ["auto", _e, L], G = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], pe = () => ["solid", "dashed", "dotted", "double", "none"], ve = () => ["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"], z = () => ["", "0", L], ye = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], me = () => [_e, br], Q = () => [_e, L];
|
|
2657
2657
|
return {
|
|
2658
2658
|
cacheSize: 500,
|
|
2659
2659
|
separator: ":",
|
|
@@ -3184,63 +3184,63 @@ function Eo() {
|
|
|
3184
3184
|
* @see https://tailwindcss.com/docs/margin
|
|
3185
3185
|
*/
|
|
3186
3186
|
m: [{
|
|
3187
|
-
m: [
|
|
3187
|
+
m: [x]
|
|
3188
3188
|
}],
|
|
3189
3189
|
/**
|
|
3190
3190
|
* Margin X
|
|
3191
3191
|
* @see https://tailwindcss.com/docs/margin
|
|
3192
3192
|
*/
|
|
3193
3193
|
mx: [{
|
|
3194
|
-
mx: [
|
|
3194
|
+
mx: [x]
|
|
3195
3195
|
}],
|
|
3196
3196
|
/**
|
|
3197
3197
|
* Margin Y
|
|
3198
3198
|
* @see https://tailwindcss.com/docs/margin
|
|
3199
3199
|
*/
|
|
3200
3200
|
my: [{
|
|
3201
|
-
my: [
|
|
3201
|
+
my: [x]
|
|
3202
3202
|
}],
|
|
3203
3203
|
/**
|
|
3204
3204
|
* Margin Start
|
|
3205
3205
|
* @see https://tailwindcss.com/docs/margin
|
|
3206
3206
|
*/
|
|
3207
3207
|
ms: [{
|
|
3208
|
-
ms: [
|
|
3208
|
+
ms: [x]
|
|
3209
3209
|
}],
|
|
3210
3210
|
/**
|
|
3211
3211
|
* Margin End
|
|
3212
3212
|
* @see https://tailwindcss.com/docs/margin
|
|
3213
3213
|
*/
|
|
3214
3214
|
me: [{
|
|
3215
|
-
me: [
|
|
3215
|
+
me: [x]
|
|
3216
3216
|
}],
|
|
3217
3217
|
/**
|
|
3218
3218
|
* Margin Top
|
|
3219
3219
|
* @see https://tailwindcss.com/docs/margin
|
|
3220
3220
|
*/
|
|
3221
3221
|
mt: [{
|
|
3222
|
-
mt: [
|
|
3222
|
+
mt: [x]
|
|
3223
3223
|
}],
|
|
3224
3224
|
/**
|
|
3225
3225
|
* Margin Right
|
|
3226
3226
|
* @see https://tailwindcss.com/docs/margin
|
|
3227
3227
|
*/
|
|
3228
3228
|
mr: [{
|
|
3229
|
-
mr: [
|
|
3229
|
+
mr: [x]
|
|
3230
3230
|
}],
|
|
3231
3231
|
/**
|
|
3232
3232
|
* Margin Bottom
|
|
3233
3233
|
* @see https://tailwindcss.com/docs/margin
|
|
3234
3234
|
*/
|
|
3235
3235
|
mb: [{
|
|
3236
|
-
mb: [
|
|
3236
|
+
mb: [x]
|
|
3237
3237
|
}],
|
|
3238
3238
|
/**
|
|
3239
3239
|
* Margin Left
|
|
3240
3240
|
* @see https://tailwindcss.com/docs/margin
|
|
3241
3241
|
*/
|
|
3242
3242
|
ml: [{
|
|
3243
|
-
ml: [
|
|
3243
|
+
ml: [x]
|
|
3244
3244
|
}],
|
|
3245
3245
|
/**
|
|
3246
3246
|
* Space Between X
|
|
@@ -3341,7 +3341,7 @@ function Eo() {
|
|
|
3341
3341
|
* @see https://tailwindcss.com/docs/font-weight
|
|
3342
3342
|
*/
|
|
3343
3343
|
"font-weight": [{
|
|
3344
|
-
font: ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black",
|
|
3344
|
+
font: ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black", br]
|
|
3345
3345
|
}],
|
|
3346
3346
|
/**
|
|
3347
3347
|
* Font Family
|
|
@@ -3392,7 +3392,7 @@ function Eo() {
|
|
|
3392
3392
|
* @see https://tailwindcss.com/docs/line-clamp
|
|
3393
3393
|
*/
|
|
3394
3394
|
"line-clamp": [{
|
|
3395
|
-
"line-clamp": ["none", _e,
|
|
3395
|
+
"line-clamp": ["none", _e, br]
|
|
3396
3396
|
}],
|
|
3397
3397
|
/**
|
|
3398
3398
|
* Line Height
|
|
@@ -3624,21 +3624,21 @@ function Eo() {
|
|
|
3624
3624
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
3625
3625
|
*/
|
|
3626
3626
|
"gradient-from-pos": [{
|
|
3627
|
-
from: [
|
|
3627
|
+
from: [v]
|
|
3628
3628
|
}],
|
|
3629
3629
|
/**
|
|
3630
3630
|
* Gradient Color Stops Via Position
|
|
3631
3631
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
3632
3632
|
*/
|
|
3633
3633
|
"gradient-via-pos": [{
|
|
3634
|
-
via: [
|
|
3634
|
+
via: [v]
|
|
3635
3635
|
}],
|
|
3636
3636
|
/**
|
|
3637
3637
|
* Gradient Color Stops To Position
|
|
3638
3638
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
3639
3639
|
*/
|
|
3640
3640
|
"gradient-to-pos": [{
|
|
3641
|
-
to: [
|
|
3641
|
+
to: [v]
|
|
3642
3642
|
}],
|
|
3643
3643
|
/**
|
|
3644
3644
|
* Gradient Color Stops From
|
|
@@ -4277,21 +4277,21 @@ function Eo() {
|
|
|
4277
4277
|
* @see https://tailwindcss.com/docs/scale
|
|
4278
4278
|
*/
|
|
4279
4279
|
scale: [{
|
|
4280
|
-
scale: [
|
|
4280
|
+
scale: [R]
|
|
4281
4281
|
}],
|
|
4282
4282
|
/**
|
|
4283
4283
|
* Scale X
|
|
4284
4284
|
* @see https://tailwindcss.com/docs/scale
|
|
4285
4285
|
*/
|
|
4286
4286
|
"scale-x": [{
|
|
4287
|
-
"scale-x": [
|
|
4287
|
+
"scale-x": [R]
|
|
4288
4288
|
}],
|
|
4289
4289
|
/**
|
|
4290
4290
|
* Scale Y
|
|
4291
4291
|
* @see https://tailwindcss.com/docs/scale
|
|
4292
4292
|
*/
|
|
4293
4293
|
"scale-y": [{
|
|
4294
|
-
"scale-y": [
|
|
4294
|
+
"scale-y": [R]
|
|
4295
4295
|
}],
|
|
4296
4296
|
/**
|
|
4297
4297
|
* Rotate
|
|
@@ -4592,7 +4592,7 @@ function Eo() {
|
|
|
4592
4592
|
* @see https://tailwindcss.com/docs/stroke-width
|
|
4593
4593
|
*/
|
|
4594
4594
|
"stroke-w": [{
|
|
4595
|
-
stroke: [Ee, Re,
|
|
4595
|
+
stroke: [Ee, Re, br]
|
|
4596
4596
|
}],
|
|
4597
4597
|
/**
|
|
4598
4598
|
* Stroke
|
|
@@ -4668,11 +4668,11 @@ function Eo() {
|
|
|
4668
4668
|
}
|
|
4669
4669
|
};
|
|
4670
4670
|
}
|
|
4671
|
-
const
|
|
4671
|
+
const D = /* @__PURE__ */ io(Eo);
|
|
4672
4672
|
function $o() {
|
|
4673
4673
|
return Math.floor(Math.random() * 1e7);
|
|
4674
4674
|
}
|
|
4675
|
-
const
|
|
4675
|
+
const Ht = (e, r, n, t, s) => {
|
|
4676
4676
|
const o = `preflight ${n}`;
|
|
4677
4677
|
return {
|
|
4678
4678
|
settings: /* @__PURE__ */ i.jsx(
|
|
@@ -4906,7 +4906,7 @@ const Bt = (e, r, n, t, s) => {
|
|
|
4906
4906
|
}
|
|
4907
4907
|
),
|
|
4908
4908
|
check: /* @__PURE__ */ i.jsx(
|
|
4909
|
-
|
|
4909
|
+
Hs,
|
|
4910
4910
|
{
|
|
4911
4911
|
width: e,
|
|
4912
4912
|
height: r,
|
|
@@ -5016,7 +5016,7 @@ const Bt = (e, r, n, t, s) => {
|
|
|
5016
5016
|
width: "24",
|
|
5017
5017
|
height: "24"
|
|
5018
5018
|
}
|
|
5019
|
-
}, c =
|
|
5019
|
+
}, c = Ht(
|
|
5020
5020
|
l[e].width,
|
|
5021
5021
|
l[e].height,
|
|
5022
5022
|
t,
|
|
@@ -5038,7 +5038,7 @@ const Bt = (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 = Mo;
|
|
5041
|
-
Object.keys(
|
|
5041
|
+
Object.keys(Ht()).sort(
|
|
5042
5042
|
(e, r) => e.localeCompare(r)
|
|
5043
5043
|
);
|
|
5044
5044
|
Object.keys(zt()).sort(
|
|
@@ -5066,19 +5066,19 @@ function No() {
|
|
|
5066
5066
|
(e = arguments[n]) && (r = Gt(e)) && (t && (t += " "), t += r);
|
|
5067
5067
|
return t;
|
|
5068
5068
|
}
|
|
5069
|
-
const
|
|
5069
|
+
const dr = (...e) => D(No(...e)), Zt = (e, r, n) => {
|
|
5070
5070
|
if (r) {
|
|
5071
5071
|
e.preventDefault();
|
|
5072
5072
|
return;
|
|
5073
5073
|
}
|
|
5074
5074
|
n(e);
|
|
5075
|
-
},
|
|
5075
|
+
}, Lr = (e, r, n) => {
|
|
5076
5076
|
if (r) {
|
|
5077
5077
|
e.preventDefault();
|
|
5078
5078
|
return;
|
|
5079
5079
|
}
|
|
5080
5080
|
n(e);
|
|
5081
|
-
}, To =
|
|
5081
|
+
}, To = S(
|
|
5082
5082
|
[
|
|
5083
5083
|
"preflight",
|
|
5084
5084
|
"!ds-font-sans",
|
|
@@ -5155,10 +5155,10 @@ const Vr = (...e) => B(No(...e)), Zt = (e, r, n) => {
|
|
|
5155
5155
|
}) => /* @__PURE__ */ i.jsxs(
|
|
5156
5156
|
"button",
|
|
5157
5157
|
{
|
|
5158
|
-
onClick: (m) =>
|
|
5158
|
+
onClick: (m) => Lr(m, n, s),
|
|
5159
5159
|
"aria-disabled": n,
|
|
5160
5160
|
"aria-label": r,
|
|
5161
|
-
className:
|
|
5161
|
+
className: dr(To({ variant: e, isTransparent: f, disabled: n }), t),
|
|
5162
5162
|
...p,
|
|
5163
5163
|
children: [
|
|
5164
5164
|
/* @__PURE__ */ i.jsx(
|
|
@@ -5181,7 +5181,7 @@ const Vr = (...e) => B(No(...e)), Zt = (e, r, n) => {
|
|
|
5181
5181
|
)
|
|
5182
5182
|
]
|
|
5183
5183
|
}
|
|
5184
|
-
), et = So, Ro =
|
|
5184
|
+
), et = So, Ro = S(
|
|
5185
5185
|
[
|
|
5186
5186
|
"preflight",
|
|
5187
5187
|
"ds-flex",
|
|
@@ -5205,7 +5205,7 @@ const Vr = (...e) => B(No(...e)), Zt = (e, r, n) => {
|
|
|
5205
5205
|
}
|
|
5206
5206
|
}
|
|
5207
5207
|
}
|
|
5208
|
-
), Ao = (e) =>
|
|
5208
|
+
), Ao = (e) => D(Ro(e)), Po = S("", {
|
|
5209
5209
|
variants: {
|
|
5210
5210
|
variant: {
|
|
5211
5211
|
success: "ds-text-success-green-dark",
|
|
@@ -5214,7 +5214,7 @@ const Vr = (...e) => B(No(...e)), Zt = (e, r, n) => {
|
|
|
5214
5214
|
error: "ds-text-danger-red-dark"
|
|
5215
5215
|
}
|
|
5216
5216
|
}
|
|
5217
|
-
}), Tt = (e) =>
|
|
5217
|
+
}), Tt = (e) => D(Po(e)), Fo = S("", {
|
|
5218
5218
|
variants: {
|
|
5219
5219
|
variant: {
|
|
5220
5220
|
success: ["ds-text-success-green-darkest", "ds-stroke-success-green-darkest"],
|
|
@@ -5223,7 +5223,7 @@ const Vr = (...e) => B(No(...e)), Zt = (e, r, n) => {
|
|
|
5223
5223
|
error: ["ds-text-danger-red-darkest", "ds-stroke-danger-red-darkest"]
|
|
5224
5224
|
}
|
|
5225
5225
|
}
|
|
5226
|
-
}), ze = (e) =>
|
|
5226
|
+
}), ze = (e) => D(Fo(e)), Oo = ({
|
|
5227
5227
|
variant: e = "info",
|
|
5228
5228
|
isDismissible: r = !0,
|
|
5229
5229
|
showIcon: n = !0,
|
|
@@ -5306,7 +5306,7 @@ const Vr = (...e) => B(No(...e)), Zt = (e, r, n) => {
|
|
|
5306
5306
|
}
|
|
5307
5307
|
) })
|
|
5308
5308
|
] });
|
|
5309
|
-
},
|
|
5309
|
+
}, Sl = Oo, Yt = [
|
|
5310
5310
|
"preflight",
|
|
5311
5311
|
// Need to specify the font because disabling preflight makes the button not inherit the font
|
|
5312
5312
|
// Lato is defined as font-sans in our tailwind theme configuration
|
|
@@ -5344,7 +5344,7 @@ const Vr = (...e) => B(No(...e)), Zt = (e, r, n) => {
|
|
|
5344
5344
|
"focus-visible:ds-ring-neutrals-black",
|
|
5345
5345
|
"!focus-visible:ds-border-neutrals-light",
|
|
5346
5346
|
"active:ds-border-neutrals-lighter"
|
|
5347
|
-
], Io =
|
|
5347
|
+
], Io = S(Yt, {
|
|
5348
5348
|
variants: {
|
|
5349
5349
|
variant: {
|
|
5350
5350
|
primary: [
|
|
@@ -5431,7 +5431,7 @@ const Vr = (...e) => B(No(...e)), Zt = (e, r, n) => {
|
|
|
5431
5431
|
class: "focus-visible:ds-ring-neutrals-black"
|
|
5432
5432
|
}
|
|
5433
5433
|
]
|
|
5434
|
-
}), Vo = (e, r, n) => e === "inline" && r === !0 ?
|
|
5434
|
+
}), Vo = (e, r, n) => e === "inline" && r === !0 ? dr(_o) : dr(Io({ variant: e, disabled: r }), n), Do = ({
|
|
5435
5435
|
variant: e = "primary",
|
|
5436
5436
|
text: r,
|
|
5437
5437
|
label: n = "",
|
|
@@ -5447,7 +5447,7 @@ const Vr = (...e) => B(No(...e)), Zt = (e, r, n) => {
|
|
|
5447
5447
|
"button",
|
|
5448
5448
|
{
|
|
5449
5449
|
"aria-disabled": t,
|
|
5450
|
-
onClick: (p) =>
|
|
5450
|
+
onClick: (p) => Lr(p, t, o),
|
|
5451
5451
|
className: Vo(e, t, s),
|
|
5452
5452
|
"aria-label": n,
|
|
5453
5453
|
...u,
|
|
@@ -5475,7 +5475,7 @@ const Vr = (...e) => B(No(...e)), Zt = (e, r, n) => {
|
|
|
5475
5475
|
)
|
|
5476
5476
|
] })
|
|
5477
5477
|
}
|
|
5478
|
-
) }),
|
|
5478
|
+
) }), Rl = Do, Bo = ({
|
|
5479
5479
|
content: e = void 0,
|
|
5480
5480
|
iconName: r = void 0,
|
|
5481
5481
|
title: n = "",
|
|
@@ -5486,7 +5486,7 @@ const Vr = (...e) => B(No(...e)), Zt = (e, r, n) => {
|
|
|
5486
5486
|
"div",
|
|
5487
5487
|
{
|
|
5488
5488
|
...o,
|
|
5489
|
-
className:
|
|
5489
|
+
className: D(
|
|
5490
5490
|
"preflight ds-flex ds-flex-col ds-items-start ds-gap-6 ds-rounded-lg ds-border ds-border-neutrals-light ds-p-5",
|
|
5491
5491
|
s
|
|
5492
5492
|
),
|
|
@@ -5508,7 +5508,7 @@ const Vr = (...e) => B(No(...e)), Zt = (e, r, n) => {
|
|
|
5508
5508
|
t && /* @__PURE__ */ i.jsx("div", { children: t })
|
|
5509
5509
|
]
|
|
5510
5510
|
}
|
|
5511
|
-
),
|
|
5511
|
+
), Al = Bo, Ho = S(
|
|
5512
5512
|
[
|
|
5513
5513
|
"preflight",
|
|
5514
5514
|
"ds-h-4",
|
|
@@ -5536,7 +5536,7 @@ const Vr = (...e) => B(No(...e)), Zt = (e, r, n) => {
|
|
|
5536
5536
|
}
|
|
5537
5537
|
}
|
|
5538
5538
|
}
|
|
5539
|
-
), qt = (e) =>
|
|
5539
|
+
), qt = (e) => D(Ho(e)), zo = S(
|
|
5540
5540
|
["preflight", "ds-font-base", "!ds-font-sans", "ds-ml-2", "ds-text-base"],
|
|
5541
5541
|
{
|
|
5542
5542
|
variants: {
|
|
@@ -5546,7 +5546,7 @@ const Vr = (...e) => B(No(...e)), Zt = (e, r, n) => {
|
|
|
5546
5546
|
}
|
|
5547
5547
|
}
|
|
5548
5548
|
}
|
|
5549
|
-
), Kt = (e) =>
|
|
5549
|
+
), Kt = (e) => D(zo(e)), rt = {
|
|
5550
5550
|
variants: {
|
|
5551
5551
|
state: {
|
|
5552
5552
|
default: [
|
|
@@ -5611,14 +5611,14 @@ const Vr = (...e) => B(No(...e)), Zt = (e, r, n) => {
|
|
|
5611
5611
|
className: `ds-form-checkbox ds-mt-1 ${qt({ disabled: s })} ds-rounded`,
|
|
5612
5612
|
checked: t,
|
|
5613
5613
|
ref: (u) => u && (u.indeterminate = o),
|
|
5614
|
-
onClick: (u) =>
|
|
5614
|
+
onClick: (u) => Lr(u, s, l),
|
|
5615
5615
|
onChange: (u) => Zt(u, s, a),
|
|
5616
5616
|
...c
|
|
5617
5617
|
}
|
|
5618
5618
|
),
|
|
5619
5619
|
r && /* @__PURE__ */ i.jsx("label", { htmlFor: e, className: Kt({ disabled: s }), children: r })
|
|
5620
5620
|
] });
|
|
5621
|
-
},
|
|
5621
|
+
}, Pl = Uo, De = "large", Ze = "medium", Ye = "small", qe = "extra-large", St = "h1", Go = "h2", Zo = "h3", Yo = "div";
|
|
5622
5622
|
function qo(e) {
|
|
5623
5623
|
return {
|
|
5624
5624
|
[De]: St,
|
|
@@ -5627,7 +5627,7 @@ function qo(e) {
|
|
|
5627
5627
|
[qe]: Yo
|
|
5628
5628
|
}[e] || St;
|
|
5629
5629
|
}
|
|
5630
|
-
const Ko =
|
|
5630
|
+
const Ko = S("preflight !ds-font-sans", {
|
|
5631
5631
|
variants: {
|
|
5632
5632
|
size: {
|
|
5633
5633
|
[Ye]: "ds-mb-3",
|
|
@@ -5636,7 +5636,7 @@ const Ko = F("preflight !ds-font-sans", {
|
|
|
5636
5636
|
[qe]: "ds-mb-6"
|
|
5637
5637
|
}
|
|
5638
5638
|
}
|
|
5639
|
-
}),
|
|
5639
|
+
}), vr = S("ds-text-neutrals-darker !ds-font-sans", {
|
|
5640
5640
|
variants: {
|
|
5641
5641
|
size: {
|
|
5642
5642
|
[Ye]: "ds-text-xl ds-font-semibold",
|
|
@@ -5645,7 +5645,7 @@ const Ko = F("preflight !ds-font-sans", {
|
|
|
5645
5645
|
[qe]: "ds-text-4xl ds-font-semibold"
|
|
5646
5646
|
}
|
|
5647
5647
|
}
|
|
5648
|
-
}), Jo =
|
|
5648
|
+
}), Jo = S("ds-mt-0 ds-font-bold ds-text-neutrals-dark", {
|
|
5649
5649
|
variants: {
|
|
5650
5650
|
size: {
|
|
5651
5651
|
[Ye]: "ds-mb-1 ds-text-sm",
|
|
@@ -5654,7 +5654,7 @@ const Ko = F("preflight !ds-font-sans", {
|
|
|
5654
5654
|
[qe]: "ds-mb-3 ds-text-base"
|
|
5655
5655
|
}
|
|
5656
5656
|
}
|
|
5657
|
-
}), Xo =
|
|
5657
|
+
}), Xo = S("ds-mb-0 ds-text-neutrals-dark", {
|
|
5658
5658
|
variants: {
|
|
5659
5659
|
size: {
|
|
5660
5660
|
[Ye]: "ds-mt-1 ds-text-base",
|
|
@@ -5663,7 +5663,7 @@ const Ko = F("preflight !ds-font-sans", {
|
|
|
5663
5663
|
[qe]: "ds-mt-3 ds-text-base"
|
|
5664
5664
|
}
|
|
5665
5665
|
}
|
|
5666
|
-
}), Qo =
|
|
5666
|
+
}), Qo = S("ds-text-neutrals-light", {
|
|
5667
5667
|
variants: {
|
|
5668
5668
|
size: {
|
|
5669
5669
|
[Ye]: "ds-mt-2",
|
|
@@ -5684,12 +5684,12 @@ const Ko = F("preflight !ds-font-sans", {
|
|
|
5684
5684
|
...c
|
|
5685
5685
|
}) => {
|
|
5686
5686
|
const f = t ? /* @__PURE__ */ i.jsx("p", { className: Jo({ size: e }), children: t }) : null, u = s ? /* @__PURE__ */ i.jsx("p", { className: Xo({ size: e }), children: s }) : null, p = o ? /* @__PURE__ */ i.jsx("hr", { className: Qo({ size: e }) }) : null, m = a ? Ko({ size: e }) : "preflight", b = {
|
|
5687
|
-
div: /* @__PURE__ */ i.jsx("div", { className:
|
|
5688
|
-
h3: /* @__PURE__ */ i.jsx("h3", { className:
|
|
5689
|
-
h2: /* @__PURE__ */ i.jsx("h2", { className:
|
|
5690
|
-
h1: /* @__PURE__ */ i.jsx("h1", { className:
|
|
5687
|
+
div: /* @__PURE__ */ i.jsx("div", { className: vr({ size: e }), children: n }),
|
|
5688
|
+
h3: /* @__PURE__ */ i.jsx("h3", { className: vr({ size: e }), children: n }),
|
|
5689
|
+
h2: /* @__PURE__ */ i.jsx("h2", { className: vr({ size: e }), children: n }),
|
|
5690
|
+
h1: /* @__PURE__ */ i.jsx("h1", { className: vr({ size: e }), children: n })
|
|
5691
5691
|
};
|
|
5692
|
-
return /* @__PURE__ */ i.jsxs("div", { className:
|
|
5692
|
+
return /* @__PURE__ */ i.jsxs("div", { className: D(m, r), ...c, children: [
|
|
5693
5693
|
f,
|
|
5694
5694
|
b[l || qo(e)],
|
|
5695
5695
|
u,
|
|
@@ -5715,12 +5715,12 @@ const Ko = F("preflight !ds-font-sans", {
|
|
|
5715
5715
|
className: `ds-form-radio ${qt({ disabled: t })}`,
|
|
5716
5716
|
"aria-disabled": t,
|
|
5717
5717
|
onChange: (l) => Zt(l, t, s),
|
|
5718
|
-
onClick: (l) =>
|
|
5718
|
+
onClick: (l) => Lr(l, t, o),
|
|
5719
5719
|
...a
|
|
5720
5720
|
}
|
|
5721
5721
|
),
|
|
5722
5722
|
/* @__PURE__ */ i.jsx("label", { htmlFor: n, className: Kt({ disabled: t }), children: e })
|
|
5723
|
-
] }),
|
|
5723
|
+
] }), Fl = ra, ta = S(
|
|
5724
5724
|
[
|
|
5725
5725
|
"preflight",
|
|
5726
5726
|
"!ds-font-sans",
|
|
@@ -5759,14 +5759,14 @@ const Ko = F("preflight !ds-font-sans", {
|
|
|
5759
5759
|
type: n = "default",
|
|
5760
5760
|
iconName: t,
|
|
5761
5761
|
...s
|
|
5762
|
-
}) => /* @__PURE__ */ i.jsxs("a", { href: r, type: n, className:
|
|
5762
|
+
}) => /* @__PURE__ */ i.jsxs("a", { href: r, type: n, className: D(ta({ type: n })), ...s, children: [
|
|
5763
5763
|
e,
|
|
5764
5764
|
t && /* @__PURE__ */ i.jsx(Te, { altText: e, name: t, size: "small" })
|
|
5765
|
-
] }),
|
|
5766
|
-
var sa = Object.defineProperty, oa = (e, r, n) => r in e ? sa(e, r, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[r] = n,
|
|
5765
|
+
] }), Ol = na;
|
|
5766
|
+
var sa = Object.defineProperty, oa = (e, r, n) => r in e ? sa(e, r, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[r] = n, Fr = (e, r, n) => (oa(e, typeof r != "symbol" ? r + "" : r, n), n);
|
|
5767
5767
|
let aa = class {
|
|
5768
5768
|
constructor() {
|
|
5769
|
-
|
|
5769
|
+
Fr(this, "current", this.detect()), Fr(this, "handoffState", "pending"), Fr(this, "currentId", 0);
|
|
5770
5770
|
}
|
|
5771
5771
|
set(r) {
|
|
5772
5772
|
this.current !== r && (this.handoffState = "pending", this.currentId = 0, this.current = r);
|
|
@@ -5796,7 +5796,7 @@ let aa = class {
|
|
|
5796
5796
|
function tt(e) {
|
|
5797
5797
|
return Ve.isServer ? null : e instanceof Node ? e.ownerDocument : e != null && e.hasOwnProperty("current") && e.current instanceof Node ? e.current.ownerDocument : document;
|
|
5798
5798
|
}
|
|
5799
|
-
function
|
|
5799
|
+
function Er(e) {
|
|
5800
5800
|
typeof queueMicrotask == "function" ? queueMicrotask(e) : Promise.resolve().then(e).catch((r) => setTimeout(() => {
|
|
5801
5801
|
throw r;
|
|
5802
5802
|
}));
|
|
@@ -5814,7 +5814,7 @@ function We() {
|
|
|
5814
5814
|
return r.add(() => clearTimeout(t));
|
|
5815
5815
|
}, microTask(...n) {
|
|
5816
5816
|
let t = { current: !0 };
|
|
5817
|
-
return
|
|
5817
|
+
return Er(() => {
|
|
5818
5818
|
t.current && n[0]();
|
|
5819
5819
|
}), r.add(() => {
|
|
5820
5820
|
t.current = !1;
|
|
@@ -5845,15 +5845,15 @@ function nt() {
|
|
|
5845
5845
|
return oe(() => () => e.dispose(), [e]), e;
|
|
5846
5846
|
}
|
|
5847
5847
|
let K = (e, r) => {
|
|
5848
|
-
Ve.isServer ? oe(e, r) :
|
|
5848
|
+
Ve.isServer ? oe(e, r) : Bn(e, r);
|
|
5849
5849
|
};
|
|
5850
5850
|
function Ce(e) {
|
|
5851
|
-
let r =
|
|
5851
|
+
let r = A(e);
|
|
5852
5852
|
return K(() => {
|
|
5853
5853
|
r.current = e;
|
|
5854
5854
|
}, [e]), r;
|
|
5855
5855
|
}
|
|
5856
|
-
let
|
|
5856
|
+
let F = function(e) {
|
|
5857
5857
|
let r = Ce(e);
|
|
5858
5858
|
return w.useCallback((...n) => r.current(...n), [r]);
|
|
5859
5859
|
}, ia = ce(void 0);
|
|
@@ -5871,40 +5871,40 @@ function U(e, r, ...n) {
|
|
|
5871
5871
|
let t = new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(r).map((s) => `"${s}"`).join(", ")}.`);
|
|
5872
5872
|
throw Error.captureStackTrace && Error.captureStackTrace(t, U), t;
|
|
5873
5873
|
}
|
|
5874
|
-
var
|
|
5874
|
+
var kr = ((e) => (e[e.None = 0] = "None", e[e.RenderStrategy = 1] = "RenderStrategy", e[e.Static = 2] = "Static", e))(kr || {}), Oe = ((e) => (e[e.Unmount = 0] = "Unmount", e[e.Hidden = 1] = "Hidden", e))(Oe || {});
|
|
5875
5875
|
function be({ ourProps: e, theirProps: r, slot: n, defaultTag: t, features: s, visible: o = !0, name: a, mergeRefs: l }) {
|
|
5876
5876
|
l = l != null ? l : da;
|
|
5877
5877
|
let c = Xt(r, e);
|
|
5878
5878
|
if (o)
|
|
5879
|
-
return
|
|
5879
|
+
return xr(c, n, t, a, l);
|
|
5880
5880
|
let f = s != null ? s : 0;
|
|
5881
5881
|
if (f & 2) {
|
|
5882
5882
|
let { static: u = !1, ...p } = c;
|
|
5883
5883
|
if (u)
|
|
5884
|
-
return
|
|
5884
|
+
return xr(p, n, t, a, l);
|
|
5885
5885
|
}
|
|
5886
5886
|
if (f & 1) {
|
|
5887
5887
|
let { unmount: u = !0, ...p } = c;
|
|
5888
5888
|
return U(u ? 0 : 1, { 0() {
|
|
5889
5889
|
return null;
|
|
5890
5890
|
}, 1() {
|
|
5891
|
-
return
|
|
5891
|
+
return xr({ ...p, hidden: !0, style: { display: "none" } }, n, t, a, l);
|
|
5892
5892
|
} });
|
|
5893
5893
|
}
|
|
5894
|
-
return
|
|
5894
|
+
return xr(c, n, t, a, l);
|
|
5895
5895
|
}
|
|
5896
|
-
function
|
|
5897
|
-
let { as: o = n, children: a, refName: l = "ref", ...c } =
|
|
5896
|
+
function xr(e, r = {}, n, t, s) {
|
|
5897
|
+
let { as: o = n, children: a, refName: l = "ref", ...c } = Or(e, ["unmount", "static"]), f = e.ref !== void 0 ? { [l]: e.ref } : {}, u = typeof a == "function" ? a(r) : a;
|
|
5898
5898
|
"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);
|
|
5899
5899
|
let p = {};
|
|
5900
5900
|
if (r) {
|
|
5901
5901
|
let m = !1, b = [];
|
|
5902
|
-
for (let [
|
|
5903
|
-
typeof C == "boolean" && (m = !0), C === !0 && b.push(
|
|
5902
|
+
for (let [v, C] of Object.entries(r))
|
|
5903
|
+
typeof C == "boolean" && (m = !0), C === !0 && b.push(v.replace(/([A-Z])/g, (x) => `-${x.toLowerCase()}`));
|
|
5904
5904
|
if (m) {
|
|
5905
5905
|
p["data-headlessui-state"] = b.join(" ");
|
|
5906
|
-
for (let
|
|
5907
|
-
p[`data-${
|
|
5906
|
+
for (let v of b)
|
|
5907
|
+
p[`data-${v}`] = "";
|
|
5908
5908
|
}
|
|
5909
5909
|
}
|
|
5910
5910
|
if (o === de && (Object.keys(Ue(c)).length > 0 || Object.keys(Ue(p)).length > 0))
|
|
@@ -5915,12 +5915,12 @@ function vr(e, r = {}, n, t, s) {
|
|
|
5915
5915
|
`)].join(`
|
|
5916
5916
|
`));
|
|
5917
5917
|
} else {
|
|
5918
|
-
let m = u.props, b = m == null ? void 0 : m.className,
|
|
5918
|
+
let m = u.props, b = m == null ? void 0 : m.className, v = typeof b == "function" ? (...k) => ar(b(...k), c.className) : ar(b, c.className), C = v ? { className: v } : {}, x = Xt(u.props, Ue(Or(c, ["ref"])));
|
|
5919
5919
|
for (let k in p)
|
|
5920
|
-
k in
|
|
5921
|
-
return Un(u, Object.assign({},
|
|
5920
|
+
k in x && delete p[k];
|
|
5921
|
+
return Un(u, Object.assign({}, x, p, f, { ref: s(u.ref, f.ref) }, C));
|
|
5922
5922
|
}
|
|
5923
|
-
return Gn(o, Object.assign({},
|
|
5923
|
+
return Gn(o, Object.assign({}, Or(c, ["ref"]), o !== de && f, o !== de && p), u);
|
|
5924
5924
|
}
|
|
5925
5925
|
function da(...e) {
|
|
5926
5926
|
return e.every((r) => r == null) ? void 0 : (r) => {
|
|
@@ -5956,7 +5956,7 @@ function Xt(...e) {
|
|
|
5956
5956
|
}
|
|
5957
5957
|
function ue(e) {
|
|
5958
5958
|
var r;
|
|
5959
|
-
return Object.assign(
|
|
5959
|
+
return Object.assign(Hn(e), { displayName: (r = e.displayName) != null ? r : e.name });
|
|
5960
5960
|
}
|
|
5961
5961
|
function Ue(e) {
|
|
5962
5962
|
let r = Object.assign({}, e);
|
|
@@ -5964,14 +5964,14 @@ function Ue(e) {
|
|
|
5964
5964
|
r[n] === void 0 && delete r[n];
|
|
5965
5965
|
return r;
|
|
5966
5966
|
}
|
|
5967
|
-
function
|
|
5967
|
+
function Or(e, r = []) {
|
|
5968
5968
|
let n = Object.assign({}, e);
|
|
5969
5969
|
for (let t of r)
|
|
5970
5970
|
t in n && delete n[t];
|
|
5971
5971
|
return n;
|
|
5972
5972
|
}
|
|
5973
5973
|
let ca = "div";
|
|
5974
|
-
var
|
|
5974
|
+
var wr = ((e) => (e[e.None = 1] = "None", e[e.Focusable = 2] = "Focusable", e[e.Hidden = 4] = "Hidden", e))(wr || {});
|
|
5975
5975
|
function ua(e, r) {
|
|
5976
5976
|
var n;
|
|
5977
5977
|
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" } } };
|
|
@@ -5990,11 +5990,11 @@ function ha(e, r = !0) {
|
|
|
5990
5990
|
return Object.assign(e, { [Qt]: r });
|
|
5991
5991
|
}
|
|
5992
5992
|
function ke(...e) {
|
|
5993
|
-
let r =
|
|
5993
|
+
let r = A(e);
|
|
5994
5994
|
oe(() => {
|
|
5995
5995
|
r.current = e;
|
|
5996
5996
|
}, [e]);
|
|
5997
|
-
let n =
|
|
5997
|
+
let n = F((t) => {
|
|
5998
5998
|
for (let s of r.current)
|
|
5999
5999
|
s != null && (typeof s == "function" ? s(t) : s.current = t);
|
|
6000
6000
|
});
|
|
@@ -6013,7 +6013,7 @@ function en() {
|
|
|
6013
6013
|
function ma() {
|
|
6014
6014
|
let [e, r] = ge([]);
|
|
6015
6015
|
return [e.length > 0 ? e.join(" ") : void 0, ae(() => function(n) {
|
|
6016
|
-
let t =
|
|
6016
|
+
let t = F((o) => (r((a) => [...a, o]), () => r((a) => {
|
|
6017
6017
|
let l = a.slice(), c = l.indexOf(o);
|
|
6018
6018
|
return c !== -1 && l.splice(c, 1), l;
|
|
6019
6019
|
}))), s = ae(() => ({ register: t, slot: n.slot, name: n.name, props: n.props, value: n.value }), [t, n.slot, n.name, n.props, n.value]);
|
|
@@ -6022,7 +6022,7 @@ function ma() {
|
|
|
6022
6022
|
}
|
|
6023
6023
|
let ga = "p";
|
|
6024
6024
|
function ba(e, r) {
|
|
6025
|
-
let n =
|
|
6025
|
+
let n = jr(), t = la(), { id: s = `headlessui-description-${n}`, ...o } = e, a = en(), l = ke(r);
|
|
6026
6026
|
K(() => a.register(s), [s, a.register]);
|
|
6027
6027
|
let c = t || !1, f = ae(() => ({ ...a.slot, disabled: c }), [a.slot, c]), u = { ref: l, ...a.props, id: s };
|
|
6028
6028
|
return be({ ourProps: u, theirProps: o, slot: f, defaultTag: ga, name: a.name || "Description" });
|
|
@@ -6034,19 +6034,19 @@ let Ca = ce(() => {
|
|
|
6034
6034
|
function ka({ value: e, children: r }) {
|
|
6035
6035
|
return w.createElement(Ca.Provider, { value: e }, r);
|
|
6036
6036
|
}
|
|
6037
|
-
let
|
|
6037
|
+
let Br = /* @__PURE__ */ new Map(), ir = /* @__PURE__ */ new Map();
|
|
6038
6038
|
function Rt(e) {
|
|
6039
6039
|
var r;
|
|
6040
6040
|
let n = (r = ir.get(e)) != null ? r : 0;
|
|
6041
|
-
return ir.set(e, n + 1), n !== 0 ? () => At(e) : (
|
|
6041
|
+
return ir.set(e, n + 1), n !== 0 ? () => At(e) : (Br.set(e, { "aria-hidden": e.getAttribute("aria-hidden"), inert: e.inert }), e.setAttribute("aria-hidden", "true"), e.inert = !0, () => At(e));
|
|
6042
6042
|
}
|
|
6043
6043
|
function At(e) {
|
|
6044
6044
|
var r;
|
|
6045
6045
|
let n = (r = ir.get(e)) != null ? r : 1;
|
|
6046
6046
|
if (n === 1 ? ir.delete(e) : ir.set(e, n - 1), n !== 1)
|
|
6047
6047
|
return;
|
|
6048
|
-
let t =
|
|
6049
|
-
t && (t["aria-hidden"] === null ? e.removeAttribute("aria-hidden") : e.setAttribute("aria-hidden", t["aria-hidden"]), e.inert = t.inert,
|
|
6048
|
+
let t = Br.get(e);
|
|
6049
|
+
t && (t["aria-hidden"] === null ? e.removeAttribute("aria-hidden") : e.setAttribute("aria-hidden", t["aria-hidden"]), e.inert = t.inert, Br.delete(e));
|
|
6050
6050
|
}
|
|
6051
6051
|
function wa({ allowed: e, disallowed: r } = {}, n = !0) {
|
|
6052
6052
|
K(() => {
|
|
@@ -6096,10 +6096,10 @@ function tn(e, r, n = !0) {
|
|
|
6096
6096
|
return () => o.dispose();
|
|
6097
6097
|
}, [e, t, n]);
|
|
6098
6098
|
}
|
|
6099
|
-
let
|
|
6099
|
+
let Hr = ["[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(","), ya = ["[data-autofocus]"].map((e) => `${e}:not([tabindex='-1'])`).join(",");
|
|
6100
6100
|
var Me = ((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))(Me || {}), zr = ((e) => (e[e.Error = 0] = "Error", e[e.Overflow = 1] = "Overflow", e[e.Success = 2] = "Success", e[e.Underflow = 3] = "Underflow", e))(zr || {}), ja = ((e) => (e[e.Previous = -1] = "Previous", e[e.Next = 1] = "Next", e))(ja || {});
|
|
6101
6101
|
function La(e = document.body) {
|
|
6102
|
-
return e == null ? [] : Array.from(e.querySelectorAll(
|
|
6102
|
+
return e == null ? [] : Array.from(e.querySelectorAll(Hr)).sort((r, n) => Math.sign((r.tabIndex || Number.MAX_SAFE_INTEGER) - (n.tabIndex || Number.MAX_SAFE_INTEGER)));
|
|
6103
6103
|
}
|
|
6104
6104
|
function Ea(e = document.body) {
|
|
6105
6105
|
return e == null ? [] : Array.from(e.querySelectorAll(ya)).sort((r, n) => Math.sign((r.tabIndex || Number.MAX_SAFE_INTEGER) - (n.tabIndex || Number.MAX_SAFE_INTEGER)));
|
|
@@ -6108,11 +6108,11 @@ var nn = ((e) => (e[e.Strict = 0] = "Strict", e[e.Loose = 1] = "Loose", e))(nn |
|
|
|
6108
6108
|
function $a(e, r = 0) {
|
|
6109
6109
|
var n;
|
|
6110
6110
|
return e === ((n = tt(e)) == null ? void 0 : n.body) ? !1 : U(r, { 0() {
|
|
6111
|
-
return e.matches(
|
|
6111
|
+
return e.matches(Hr);
|
|
6112
6112
|
}, 1() {
|
|
6113
6113
|
let t = e;
|
|
6114
6114
|
for (; t !== null; ) {
|
|
6115
|
-
if (t.matches(
|
|
6115
|
+
if (t.matches(Hr))
|
|
6116
6116
|
return !0;
|
|
6117
6117
|
t = t.parentElement;
|
|
6118
6118
|
}
|
|
@@ -6144,7 +6144,7 @@ function Sa(e, r = (n) => n) {
|
|
|
6144
6144
|
}
|
|
6145
6145
|
function lr(e, r, { sorted: n = !0, relativeTo: t = null, skipElements: s = [] } = {}) {
|
|
6146
6146
|
let o = Array.isArray(e) ? e.length > 0 ? e[0].ownerDocument : document : e.ownerDocument, a = Array.isArray(e) ? n ? Sa(e) : e : r & 64 ? Ea(e) : La(e);
|
|
6147
|
-
s.length > 0 && a.length > 1 && (a = a.filter((b) => !s.some((
|
|
6147
|
+
s.length > 0 && a.length > 1 && (a = a.filter((b) => !s.some((v) => v != null && "current" in v ? (v == null ? void 0 : v.current) === b : v === b))), t = t != null ? t : o.activeElement;
|
|
6148
6148
|
let l = (() => {
|
|
6149
6149
|
if (r & 5)
|
|
6150
6150
|
return 1;
|
|
@@ -6187,7 +6187,7 @@ function Ra() {
|
|
|
6187
6187
|
function Aa() {
|
|
6188
6188
|
return sn() || Ra();
|
|
6189
6189
|
}
|
|
6190
|
-
function
|
|
6190
|
+
function Cr(e, r, n) {
|
|
6191
6191
|
let t = Ce(r);
|
|
6192
6192
|
oe(() => {
|
|
6193
6193
|
function s(o) {
|
|
@@ -6206,7 +6206,7 @@ function on(e, r, n) {
|
|
|
6206
6206
|
}, [e, n]);
|
|
6207
6207
|
}
|
|
6208
6208
|
function Pa(e, r, n = !0) {
|
|
6209
|
-
let t =
|
|
6209
|
+
let t = A(!1);
|
|
6210
6210
|
oe(() => {
|
|
6211
6211
|
requestAnimationFrame(() => {
|
|
6212
6212
|
t.current = n;
|
|
@@ -6230,18 +6230,18 @@ function Pa(e, r, n = !0) {
|
|
|
6230
6230
|
}
|
|
6231
6231
|
return !$a(c, nn.Loose) && c.tabIndex !== -1 && a.preventDefault(), r(a, c);
|
|
6232
6232
|
}
|
|
6233
|
-
let o =
|
|
6234
|
-
|
|
6233
|
+
let o = A(null);
|
|
6234
|
+
Cr("pointerdown", (a) => {
|
|
6235
6235
|
var l, c;
|
|
6236
6236
|
t.current && (o.current = ((c = (l = a.composedPath) == null ? void 0 : l.call(a)) == null ? void 0 : c[0]) || a.target);
|
|
6237
|
-
}, !0),
|
|
6237
|
+
}, !0), Cr("mousedown", (a) => {
|
|
6238
6238
|
var l, c;
|
|
6239
6239
|
t.current && (o.current = ((c = (l = a.composedPath) == null ? void 0 : l.call(a)) == null ? void 0 : c[0]) || a.target);
|
|
6240
|
-
}, !0),
|
|
6240
|
+
}, !0), Cr("click", (a) => {
|
|
6241
6241
|
Aa() || o.current && (s(a, () => o.current), o.current = null);
|
|
6242
|
-
}, !0),
|
|
6242
|
+
}, !0), Cr("touchend", (a) => s(a, () => a.target instanceof HTMLElement ? a.target : null), !0), on("blur", (a) => s(a, () => window.document.activeElement instanceof HTMLIFrameElement ? window.document.activeElement : null), !0);
|
|
6243
6243
|
}
|
|
6244
|
-
function
|
|
6244
|
+
function cr(...e) {
|
|
6245
6245
|
return ae(() => tt(...e), [...e]);
|
|
6246
6246
|
}
|
|
6247
6247
|
function an(e, r, n, t) {
|
|
@@ -6372,14 +6372,14 @@ function Da(e, r, n = () => ({ containers: [] })) {
|
|
|
6372
6372
|
return Ie.dispatch("PUSH", e, n), () => Ie.dispatch("POP", e, n);
|
|
6373
6373
|
}, [r, e]), o;
|
|
6374
6374
|
}
|
|
6375
|
-
function
|
|
6375
|
+
function Ba(e, r, n = () => [document.body]) {
|
|
6376
6376
|
Da(e, r, (t) => {
|
|
6377
6377
|
var s;
|
|
6378
6378
|
return { containers: [...(s = t.containers) != null ? s : [], n] };
|
|
6379
6379
|
});
|
|
6380
6380
|
}
|
|
6381
6381
|
function ot(e, r) {
|
|
6382
|
-
let n =
|
|
6382
|
+
let n = A([]), t = F(e);
|
|
6383
6383
|
oe(() => {
|
|
6384
6384
|
let s = [...n.current];
|
|
6385
6385
|
for (let [o, a] of r.entries())
|
|
@@ -6395,7 +6395,7 @@ var se = ((e) => (e[e.Open = 1] = "Open", e[e.Closed = 2] = "Closed", e[e.Closin
|
|
|
6395
6395
|
function it() {
|
|
6396
6396
|
return re(at);
|
|
6397
6397
|
}
|
|
6398
|
-
function
|
|
6398
|
+
function Ha({ value: e, children: r }) {
|
|
6399
6399
|
return w.createElement(at.Provider, { value: e }, r);
|
|
6400
6400
|
}
|
|
6401
6401
|
function za(e) {
|
|
@@ -6412,9 +6412,9 @@ za(() => {
|
|
|
6412
6412
|
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 });
|
|
6413
6413
|
});
|
|
6414
6414
|
function ln(e) {
|
|
6415
|
-
let r =
|
|
6415
|
+
let r = F(e), n = A(!1);
|
|
6416
6416
|
oe(() => (n.current = !1, () => {
|
|
6417
|
-
n.current = !0,
|
|
6417
|
+
n.current = !0, Er(() => {
|
|
6418
6418
|
n.current && r();
|
|
6419
6419
|
});
|
|
6420
6420
|
}), [r]);
|
|
@@ -6424,7 +6424,7 @@ function Ua() {
|
|
|
6424
6424
|
return "useSyncExternalStore" in or ? ((r) => r.useSyncExternalStore)(or)(() => () => {
|
|
6425
6425
|
}, () => !1, () => !e) : !1;
|
|
6426
6426
|
}
|
|
6427
|
-
function
|
|
6427
|
+
function ur() {
|
|
6428
6428
|
let e = Ua(), [r, n] = or.useState(Ve.isHandoffComplete);
|
|
6429
6429
|
return r && Ve.isHandoffComplete === !1 && n(!1), or.useEffect(() => {
|
|
6430
6430
|
r !== !0 && n(!0);
|
|
@@ -6438,7 +6438,7 @@ function Pt(e) {
|
|
|
6438
6438
|
return w.createElement(dn.Provider, { value: e.force }, e.children);
|
|
6439
6439
|
}
|
|
6440
6440
|
function Za(e) {
|
|
6441
|
-
let r = Ga(), n = re(un), t =
|
|
6441
|
+
let r = Ga(), n = re(un), t = cr(e), [s, o] = ge(() => {
|
|
6442
6442
|
var a;
|
|
6443
6443
|
if (!r && n !== null)
|
|
6444
6444
|
return (a = n.current) != null ? a : null;
|
|
@@ -6459,12 +6459,12 @@ function Za(e) {
|
|
|
6459
6459
|
}, [n, o, r]), s;
|
|
6460
6460
|
}
|
|
6461
6461
|
let cn = de, Ya = ue(function(e, r) {
|
|
6462
|
-
let n = e, t =
|
|
6462
|
+
let n = e, t = A(null), s = ke(ha((u) => {
|
|
6463
6463
|
t.current = u;
|
|
6464
|
-
}), r), o =
|
|
6464
|
+
}), r), o = cr(t), a = Za(t), [l] = ge(() => {
|
|
6465
6465
|
var u;
|
|
6466
6466
|
return Ve.isServer ? null : (u = o == null ? void 0 : o.createElement("div")) != null ? u : null;
|
|
6467
|
-
}), c = re(Ur), f =
|
|
6467
|
+
}), c = re(Ur), f = ur();
|
|
6468
6468
|
return K(() => {
|
|
6469
6469
|
!a || !l || a.contains(l) || (l.setAttribute("data-headlessui-portal", ""), a.appendChild(l));
|
|
6470
6470
|
}, [a, l]), K(() => {
|
|
@@ -6486,7 +6486,7 @@ function Ja(e, r) {
|
|
|
6486
6486
|
}
|
|
6487
6487
|
let Ur = ce(null);
|
|
6488
6488
|
function Xa() {
|
|
6489
|
-
let e = re(Ur), r =
|
|
6489
|
+
let e = re(Ur), r = A([]), n = F((o) => (r.current.push(o), e && e.register(o), () => t(o))), t = F((o) => {
|
|
6490
6490
|
let a = r.current.indexOf(o);
|
|
6491
6491
|
a !== -1 && r.current.splice(a, 1), e && e.unregister(o);
|
|
6492
6492
|
}), s = ae(() => ({ register: n, unregister: t, portals: r }), [n, t, r]);
|
|
@@ -6509,7 +6509,7 @@ function ri() {
|
|
|
6509
6509
|
}
|
|
6510
6510
|
function ti({ defaultContainers: e = [], portals: r, mainTreeNodeRef: n } = {}) {
|
|
6511
6511
|
var t;
|
|
6512
|
-
let s =
|
|
6512
|
+
let s = A((t = n == null ? void 0 : n.current) != null ? t : null), o = cr(s), a = F(() => {
|
|
6513
6513
|
var l, c, f;
|
|
6514
6514
|
let u = [];
|
|
6515
6515
|
for (let p of e)
|
|
@@ -6521,8 +6521,8 @@ function ti({ defaultContainers: e = [], portals: r, mainTreeNodeRef: n } = {})
|
|
|
6521
6521
|
p !== document.body && p !== document.head && p instanceof HTMLElement && p.id !== "headlessui-portal-root" && (p.contains(s.current) || p.contains((f = (c = s.current) == null ? void 0 : c.getRootNode()) == null ? void 0 : f.host) || u.some((m) => p.contains(m)) || u.push(p));
|
|
6522
6522
|
return u;
|
|
6523
6523
|
});
|
|
6524
|
-
return { resolveContainers: a, contains:
|
|
6525
|
-
return n != null ? null : w.createElement(Dr, { features:
|
|
6524
|
+
return { resolveContainers: a, contains: F((l) => a().some((c) => c.contains(l))), mainTreeNodeRef: s, MainTreeNode: ae(() => function() {
|
|
6525
|
+
return n != null ? null : w.createElement(Dr, { features: wr.Hidden, ref: s });
|
|
6526
6526
|
}, [s, n]) };
|
|
6527
6527
|
}
|
|
6528
6528
|
let lt = ce(() => {
|
|
@@ -6533,7 +6533,7 @@ function ni() {
|
|
|
6533
6533
|
return re(lt);
|
|
6534
6534
|
}
|
|
6535
6535
|
function si({ children: e, onUpdate: r, type: n, element: t, enabled: s }) {
|
|
6536
|
-
let o = ni(), a =
|
|
6536
|
+
let o = ni(), a = F((...l) => {
|
|
6537
6537
|
r == null || r(...l), o(...l);
|
|
6538
6538
|
});
|
|
6539
6539
|
return K(() => {
|
|
@@ -6543,15 +6543,15 @@ function si({ children: e, onUpdate: r, type: n, element: t, enabled: s }) {
|
|
|
6543
6543
|
};
|
|
6544
6544
|
}, [a, n, t, s]), w.createElement(lt.Provider, { value: a }, e);
|
|
6545
6545
|
}
|
|
6546
|
-
function
|
|
6547
|
-
let e =
|
|
6546
|
+
function fr() {
|
|
6547
|
+
let e = A(!1);
|
|
6548
6548
|
return K(() => (e.current = !0, () => {
|
|
6549
6549
|
e.current = !1;
|
|
6550
6550
|
}), []), e;
|
|
6551
6551
|
}
|
|
6552
6552
|
var sr = ((e) => (e[e.Forwards = 0] = "Forwards", e[e.Backwards = 1] = "Backwards", e))(sr || {});
|
|
6553
6553
|
function oi() {
|
|
6554
|
-
let e =
|
|
6554
|
+
let e = A(0);
|
|
6555
6555
|
return on("keydown", (r) => {
|
|
6556
6556
|
r.key === "Tab" && (e.current = r.shiftKey ? 1 : 0);
|
|
6557
6557
|
}, !0), e;
|
|
@@ -6569,43 +6569,43 @@ function fn(e) {
|
|
|
6569
6569
|
let ai = "div";
|
|
6570
6570
|
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 || {});
|
|
6571
6571
|
function ii(e, r) {
|
|
6572
|
-
let n =
|
|
6573
|
-
|
|
6574
|
-
let f =
|
|
6572
|
+
let n = A(null), t = ke(n, r), { initialFocus: s, initialFocusFallback: o, containers: a, features: l = 30, ...c } = e;
|
|
6573
|
+
ur() || (l = 1);
|
|
6574
|
+
let f = cr(n);
|
|
6575
6575
|
ui({ ownerDocument: f }, !!(l & 16));
|
|
6576
6576
|
let u = fi({ ownerDocument: f, container: n, initialFocus: s, initialFocusFallback: o }, l);
|
|
6577
6577
|
pi({ ownerDocument: f, container: n, containers: a, previousActiveElement: u }, !!(l & 8));
|
|
6578
|
-
let p = oi(), m =
|
|
6578
|
+
let p = oi(), m = F((x) => {
|
|
6579
6579
|
let k = n.current;
|
|
6580
6580
|
k && ((j) => j())(() => {
|
|
6581
6581
|
U(p.current, { [sr.Forwards]: () => {
|
|
6582
|
-
lr(k, Me.First, { skipElements: [
|
|
6582
|
+
lr(k, Me.First, { skipElements: [x.relatedTarget, o] });
|
|
6583
6583
|
}, [sr.Backwards]: () => {
|
|
6584
|
-
lr(k, Me.Last, { skipElements: [
|
|
6584
|
+
lr(k, Me.Last, { skipElements: [x.relatedTarget, o] });
|
|
6585
6585
|
} });
|
|
6586
6586
|
});
|
|
6587
|
-
}), b = nt(),
|
|
6588
|
-
|
|
6589
|
-
|
|
6587
|
+
}), b = nt(), v = A(!1), C = { ref: t, onKeyDown(x) {
|
|
6588
|
+
x.key == "Tab" && (v.current = !0, b.requestAnimationFrame(() => {
|
|
6589
|
+
v.current = !1;
|
|
6590
6590
|
}));
|
|
6591
|
-
}, onBlur(
|
|
6591
|
+
}, onBlur(x) {
|
|
6592
6592
|
if (!(l & 8))
|
|
6593
6593
|
return;
|
|
6594
6594
|
let k = fn(a);
|
|
6595
6595
|
n.current instanceof HTMLElement && k.add(n.current);
|
|
6596
|
-
let j =
|
|
6597
|
-
j instanceof HTMLElement && j.dataset.headlessuiFocusGuard !== "true" && (pn(k, j) || (
|
|
6596
|
+
let j = x.relatedTarget;
|
|
6597
|
+
j instanceof HTMLElement && j.dataset.headlessuiFocusGuard !== "true" && (pn(k, j) || (v.current ? lr(n.current, U(p.current, { [sr.Forwards]: () => Me.Next, [sr.Backwards]: () => Me.Previous }) | Me.WrapAround, { relativeTo: x.target }) : x.target instanceof HTMLElement && Ne(x.target)));
|
|
6598
6598
|
} };
|
|
6599
|
-
return w.createElement(w.Fragment, null, !!(l & 4) && w.createElement(Dr, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: m, features:
|
|
6599
|
+
return w.createElement(w.Fragment, null, !!(l & 4) && w.createElement(Dr, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: m, features: wr.Focusable }), be({ ourProps: C, theirProps: c, defaultTag: ai, name: "FocusTrap" }), !!(l & 4) && w.createElement(Dr, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: m, features: wr.Focusable }));
|
|
6600
6600
|
}
|
|
6601
6601
|
let li = ue(ii), di = Object.assign(li, { features: $e });
|
|
6602
6602
|
function ci(e = !0) {
|
|
6603
|
-
let r =
|
|
6603
|
+
let r = A(Fe.slice());
|
|
6604
6604
|
return ot(([n], [t]) => {
|
|
6605
|
-
t === !0 && n === !1 &&
|
|
6605
|
+
t === !0 && n === !1 && Er(() => {
|
|
6606
6606
|
r.current.splice(0);
|
|
6607
6607
|
}), t === !1 && n === !0 && (r.current = Fe.slice());
|
|
6608
|
-
}, [e, Fe, r]),
|
|
6608
|
+
}, [e, Fe, r]), F(() => {
|
|
6609
6609
|
var n;
|
|
6610
6610
|
return (n = r.current.find((t) => t != null && t.isConnected)) != null ? n : null;
|
|
6611
6611
|
});
|
|
@@ -6619,14 +6619,14 @@ function ui({ ownerDocument: e }, r) {
|
|
|
6619
6619
|
});
|
|
6620
6620
|
}
|
|
6621
6621
|
function fi({ ownerDocument: e, container: r, initialFocus: n, initialFocusFallback: t }, s) {
|
|
6622
|
-
let o = !!(s & 2), a =
|
|
6622
|
+
let o = !!(s & 2), a = A(null), l = fr();
|
|
6623
6623
|
return ot(() => {
|
|
6624
6624
|
if (!o) {
|
|
6625
6625
|
t != null && t.current && Ne(t.current);
|
|
6626
6626
|
return;
|
|
6627
6627
|
}
|
|
6628
6628
|
let c = r.current;
|
|
6629
|
-
c &&
|
|
6629
|
+
c && Er(() => {
|
|
6630
6630
|
if (!l.current)
|
|
6631
6631
|
return;
|
|
6632
6632
|
let f = e == null ? void 0 : e.activeElement;
|
|
@@ -6656,7 +6656,7 @@ function fi({ ownerDocument: e, container: r, initialFocus: n, initialFocusFallb
|
|
|
6656
6656
|
}, [t, o, s]), a;
|
|
6657
6657
|
}
|
|
6658
6658
|
function pi({ ownerDocument: e, container: r, containers: n, previousActiveElement: t }, s) {
|
|
6659
|
-
let o =
|
|
6659
|
+
let o = fr();
|
|
6660
6660
|
an(e == null ? void 0 : e.defaultView, "focus", (a) => {
|
|
6661
6661
|
if (!s || !o.current)
|
|
6662
6662
|
return;
|
|
@@ -6678,10 +6678,10 @@ function pn(e, r) {
|
|
|
6678
6678
|
var hi = ((e) => (e[e.Open = 0] = "Open", e[e.Closed = 1] = "Closed", e))(hi || {}), mi = ((e) => (e[e.SetTitleId = 0] = "SetTitleId", e))(mi || {});
|
|
6679
6679
|
let gi = { 0(e, r) {
|
|
6680
6680
|
return e.titleId === r.id ? e : { ...e, titleId: r.id };
|
|
6681
|
-
} },
|
|
6682
|
-
|
|
6681
|
+
} }, yr = ce(null);
|
|
6682
|
+
yr.displayName = "DialogContext";
|
|
6683
6683
|
function dt(e) {
|
|
6684
|
-
let r = re(
|
|
6684
|
+
let r = re(yr);
|
|
6685
6685
|
if (r === null) {
|
|
6686
6686
|
let n = new Error(`<${e} /> is missing a parent <Dialog /> component.`);
|
|
6687
6687
|
throw Error.captureStackTrace && Error.captureStackTrace(n, dt), n;
|
|
@@ -6691,15 +6691,15 @@ function dt(e) {
|
|
|
6691
6691
|
function bi(e, r) {
|
|
6692
6692
|
return U(r.type, gi, e, r);
|
|
6693
6693
|
}
|
|
6694
|
-
let vi = "div", xi =
|
|
6694
|
+
let vi = "div", xi = kr.RenderStrategy | kr.Static;
|
|
6695
6695
|
function Ci(e, r) {
|
|
6696
|
-
let n =
|
|
6696
|
+
let n = jr(), { id: t = `headlessui-dialog-${n}`, open: s, onClose: o, initialFocus: a, role: l = "dialog", autoFocus: c = !0, __demoMode: f = !1, ...u } = e, [p, m] = ge(0), b = A(!1);
|
|
6697
6697
|
l = function() {
|
|
6698
6698
|
return l === "dialog" || l === "alertdialog" ? l : (b.current || (b.current = !0, console.warn(`Invalid role [${l}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)), "dialog");
|
|
6699
6699
|
}();
|
|
6700
|
-
let
|
|
6701
|
-
s === void 0 &&
|
|
6702
|
-
let C =
|
|
6700
|
+
let v = it();
|
|
6701
|
+
s === void 0 && v !== null && (s = (v & se.Open) === se.Open);
|
|
6702
|
+
let C = A(null), x = ke(C, r), k = cr(C), j = e.hasOwnProperty("open") || v !== null, fe = e.hasOwnProperty("onClose");
|
|
6703
6703
|
if (!j && !fe)
|
|
6704
6704
|
throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");
|
|
6705
6705
|
if (!j)
|
|
@@ -6710,49 +6710,49 @@ function Ci(e, r) {
|
|
|
6710
6710
|
throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${s}`);
|
|
6711
6711
|
if (typeof o != "function")
|
|
6712
6712
|
throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${o}`);
|
|
6713
|
-
let
|
|
6713
|
+
let R = s ? 0 : 1, [Z, we] = Yn(bi, { titleId: null, descriptionId: null, panelRef: qn() }), J = F(() => o(!1)), Y = F((W) => we({ type: 0, id: W })), X = ur() ? R === 0 : !1, te = p > 1, ie = re(yr) !== null, [$, O] = Xa(), V = { get current() {
|
|
6714
6714
|
var W;
|
|
6715
6715
|
return (W = Z.panelRef.current) != null ? W : C.current;
|
|
6716
|
-
} }, { resolveContainers: G, mainTreeNodeRef: pe, MainTreeNode: ve } = ti({ portals: $, defaultContainers: [V] }), he = te ? "parent" : "leaf", z =
|
|
6717
|
-
wa({ allowed:
|
|
6716
|
+
} }, { resolveContainers: G, mainTreeNodeRef: pe, MainTreeNode: ve } = ti({ portals: $, defaultContainers: [V] }), he = te ? "parent" : "leaf", z = v !== null ? (v & se.Closing) === se.Closing : !1, ye = te || z ? !1 : X;
|
|
6717
|
+
wa({ allowed: F(() => {
|
|
6718
6718
|
var W, xe;
|
|
6719
6719
|
return [(xe = (W = C.current) == null ? void 0 : W.closest("[data-headlessui-portal]")) != null ? xe : null];
|
|
6720
|
-
}), disallowed:
|
|
6720
|
+
}), disallowed: F(() => {
|
|
6721
6721
|
var W, xe;
|
|
6722
6722
|
return [(xe = (W = pe.current) == null ? void 0 : W.closest("body > *:not(#headlessui-portal-root)")) != null ? xe : null];
|
|
6723
6723
|
}) }, f ? !1 : ye), Pa(G, (W) => {
|
|
6724
6724
|
W.preventDefault(), J();
|
|
6725
6725
|
}, !(!X || te));
|
|
6726
|
-
let Q = !(te ||
|
|
6726
|
+
let Q = !(te || R !== 0);
|
|
6727
6727
|
an(k == null ? void 0 : k.defaultView, "keydown", (W) => {
|
|
6728
6728
|
Q && (W.defaultPrevented || W.key === rn.Escape && (W.preventDefault(), W.stopPropagation(), J()));
|
|
6729
|
-
}),
|
|
6730
|
-
let [ne, Ke] = ma(), ee = ae(() => [{ dialogState:
|
|
6731
|
-
return c && (je |= $e.AutoFocus), Je || (je &= ~$e.InitialFocus), f && (je = $e.None), w.createElement(si, { type: "Dialog", enabled:
|
|
6729
|
+
}), Ba(k, f ? !1 : !(z || R !== 0 || ie), G), tn(C, J, R === 0);
|
|
6730
|
+
let [ne, Ke] = ma(), ee = ae(() => [{ dialogState: R, close: J, setTitleId: Y }, Z], [R, Z, J, Y]), B = ae(() => ({ open: R === 0 }), [R]), H = { ref: x, id: t, role: l, tabIndex: -1, "aria-modal": R === 0 ? !0 : void 0, "aria-labelledby": Z.titleId, "aria-describedby": ne }, Je = !ri(), je = X ? U(he, { parent: $e.RestoreFocus, leaf: $e.All & ~$e.FocusLock }) : $e.None;
|
|
6731
|
+
return c && (je |= $e.AutoFocus), Je || (je &= ~$e.InitialFocus), f && (je = $e.None), w.createElement(si, { type: "Dialog", enabled: R === 0, element: C, onUpdate: F((W, xe) => {
|
|
6732
6732
|
xe === "Dialog" && U(W, { [Gr.Add]: () => m((Xe) => Xe + 1), [Gr.Remove]: () => m((Xe) => Xe - 1) });
|
|
6733
|
-
}) }, w.createElement(Pt, { force: !0 }, w.createElement(Ft, null, w.createElement(
|
|
6733
|
+
}) }, w.createElement(Pt, { force: !0 }, w.createElement(Ft, null, w.createElement(yr.Provider, { value: ee }, w.createElement(Ft.Group, { target: C }, w.createElement(Pt, { force: !1 }, w.createElement(Ke, { slot: B, name: "Dialog.Description" }, w.createElement(O, null, w.createElement(di, { initialFocus: a, initialFocusFallback: C, containers: G, features: je }, w.createElement(ka, { value: J }, be({ ourProps: H, theirProps: u, slot: B, defaultTag: vi, features: xi, visible: R === 0, name: "Dialog" })))))))))), w.createElement(pa, null, w.createElement(ve, null)));
|
|
6734
6734
|
}
|
|
6735
6735
|
let ki = "div";
|
|
6736
6736
|
function wi(e, r) {
|
|
6737
|
-
let n =
|
|
6737
|
+
let n = jr(), { id: t = `headlessui-dialog-panel-${n}`, ...s } = e, [{ dialogState: o }, a] = dt("Dialog.Panel"), l = ke(r, a.panelRef), c = ae(() => ({ open: o === 0 }), [o]), f = F((u) => {
|
|
6738
6738
|
u.stopPropagation();
|
|
6739
6739
|
});
|
|
6740
6740
|
return be({ ourProps: { ref: l, id: t, onClick: f }, theirProps: s, slot: c, defaultTag: ki, name: "Dialog.Panel" });
|
|
6741
6741
|
}
|
|
6742
6742
|
let yi = "h2";
|
|
6743
6743
|
function ji(e, r) {
|
|
6744
|
-
let n =
|
|
6744
|
+
let n = jr(), { id: t = `headlessui-dialog-title-${n}`, ...s } = e, [{ dialogState: o, setTitleId: a }] = dt("Dialog.Title"), l = ke(r);
|
|
6745
6745
|
oe(() => (a(t), () => a(null)), [t, a]);
|
|
6746
6746
|
let c = ae(() => ({ open: o === 0 }), [o]);
|
|
6747
6747
|
return be({ ourProps: { ref: l, id: t }, theirProps: s, slot: c, defaultTag: yi, name: "Dialog.Title" });
|
|
6748
6748
|
}
|
|
6749
6749
|
let Li = ue(Ci), hn = ue(wi), Ei = ue(ji), $i = Object.assign(Li, { Panel: hn, Title: Ei, Description: xa });
|
|
6750
6750
|
function Mi(e = 0) {
|
|
6751
|
-
let [r, n] = ge(e), t =
|
|
6751
|
+
let [r, n] = ge(e), t = fr(), s = gr((c) => {
|
|
6752
6752
|
t.current && n((f) => f | c);
|
|
6753
|
-
}, [r, t]), o =
|
|
6753
|
+
}, [r, t]), o = gr((c) => !!(r & c), [r]), a = gr((c) => {
|
|
6754
6754
|
t.current && n((f) => f & ~c);
|
|
6755
|
-
}, [n, t]), l =
|
|
6755
|
+
}, [n, t]), l = gr((c) => {
|
|
6756
6756
|
t.current && n((f) => f ^ c);
|
|
6757
6757
|
}, [n]);
|
|
6758
6758
|
return { flags: r, addFlag: s, hasFlag: o, removeFlag: a, toggleFlag: l };
|
|
@@ -6764,10 +6764,10 @@ function mn(e) {
|
|
|
6764
6764
|
return r.called = !0, e(...n);
|
|
6765
6765
|
};
|
|
6766
6766
|
}
|
|
6767
|
-
function
|
|
6767
|
+
function Wr(e, ...r) {
|
|
6768
6768
|
e && r.length > 0 && e.classList.add(...r);
|
|
6769
6769
|
}
|
|
6770
|
-
function
|
|
6770
|
+
function _r(e, ...r) {
|
|
6771
6771
|
e && r.length > 0 && e.classList.remove(...r);
|
|
6772
6772
|
}
|
|
6773
6773
|
function Ni(e, r) {
|
|
@@ -6802,9 +6802,9 @@ function Ti(e, { direction: r, done: n, classes: t, inFlight: s }) {
|
|
|
6802
6802
|
r === "enter" && (e.removeAttribute("hidden"), e.style.display = "");
|
|
6803
6803
|
let l = U(r, { enter: () => t.enter, leave: () => t.leave }), c = U(r, { enter: () => t.enterTo, leave: () => t.leaveTo }), f = U(r, { enter: () => t.enterFrom, leave: () => t.leaveFrom });
|
|
6804
6804
|
return Si(e, { prepare() {
|
|
6805
|
-
|
|
6805
|
+
_r(e, ...t.base, ...t.enter, ...t.enterTo, ...t.enterFrom, ...t.leave, ...t.leaveFrom, ...t.leaveTo, ...t.entered), Wr(e, ...t.base, ...l, ...f);
|
|
6806
6806
|
}, inFlight: s }), s && (s.current = !0), o.nextFrame(() => {
|
|
6807
|
-
o.add(Ni(e, () => (
|
|
6807
|
+
o.add(Ni(e, () => (_r(e, ...t.base, ...l), Wr(e, ...t.base, ...t.entered, ...c), s && (s.current = !1), a()))), _r(e, ...t.base, ...l, ...f), Wr(e, ...t.base, ...l, ...c);
|
|
6808
6808
|
}), o.dispose;
|
|
6809
6809
|
}
|
|
6810
6810
|
function Si(e, { inFlight: r, prepare: n }) {
|
|
@@ -6816,7 +6816,7 @@ function Si(e, { inFlight: r, prepare: n }) {
|
|
|
6816
6816
|
e.style.transition = "none", n(), e.offsetHeight, e.style.transition = t;
|
|
6817
6817
|
}
|
|
6818
6818
|
function Ri({ container: e, direction: r, classes: n, onStart: t, onStop: s }) {
|
|
6819
|
-
let o =
|
|
6819
|
+
let o = fr(), a = nt(), l = A(!1);
|
|
6820
6820
|
K(() => {
|
|
6821
6821
|
if (r === "idle" || !o.current)
|
|
6822
6822
|
return;
|
|
@@ -6834,124 +6834,124 @@ function gn(e) {
|
|
|
6834
6834
|
var r;
|
|
6835
6835
|
return !!(e.enter || e.enterFrom || e.enterTo || e.leave || e.leaveFrom || e.leaveTo) || ((r = e.as) != null ? r : vn) !== de || w.Children.count(e.children) === 1;
|
|
6836
6836
|
}
|
|
6837
|
-
let
|
|
6838
|
-
|
|
6837
|
+
let $r = ce(null);
|
|
6838
|
+
$r.displayName = "TransitionContext";
|
|
6839
6839
|
var Ai = ((e) => (e.Visible = "visible", e.Hidden = "hidden", e))(Ai || {});
|
|
6840
6840
|
function Pi() {
|
|
6841
|
-
let e = re(
|
|
6841
|
+
let e = re($r);
|
|
6842
6842
|
if (e === null)
|
|
6843
6843
|
throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");
|
|
6844
6844
|
return e;
|
|
6845
6845
|
}
|
|
6846
6846
|
function Fi() {
|
|
6847
|
-
let e = re(
|
|
6847
|
+
let e = re(Mr);
|
|
6848
6848
|
if (e === null)
|
|
6849
6849
|
throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");
|
|
6850
6850
|
return e;
|
|
6851
6851
|
}
|
|
6852
|
-
let
|
|
6853
|
-
|
|
6854
|
-
function
|
|
6855
|
-
return "children" in e ?
|
|
6852
|
+
let Mr = ce(null);
|
|
6853
|
+
Mr.displayName = "NestingContext";
|
|
6854
|
+
function Nr(e) {
|
|
6855
|
+
return "children" in e ? Nr(e.children) : e.current.filter(({ el: r }) => r.current !== null).filter(({ state: r }) => r === "visible").length > 0;
|
|
6856
6856
|
}
|
|
6857
6857
|
function bn(e, r) {
|
|
6858
|
-
let n = Ce(e), t =
|
|
6859
|
-
let C = t.current.findIndex(({ el:
|
|
6860
|
-
C !== -1 && (U(
|
|
6858
|
+
let n = Ce(e), t = A([]), s = fr(), o = nt(), a = F((b, v = Oe.Hidden) => {
|
|
6859
|
+
let C = t.current.findIndex(({ el: x }) => x === b);
|
|
6860
|
+
C !== -1 && (U(v, { [Oe.Unmount]() {
|
|
6861
6861
|
t.current.splice(C, 1);
|
|
6862
6862
|
}, [Oe.Hidden]() {
|
|
6863
6863
|
t.current[C].state = "hidden";
|
|
6864
6864
|
} }), o.microTask(() => {
|
|
6865
|
-
var
|
|
6866
|
-
!
|
|
6865
|
+
var x;
|
|
6866
|
+
!Nr(t) && s.current && ((x = n.current) == null || x.call(n));
|
|
6867
6867
|
}));
|
|
6868
|
-
}), l =
|
|
6869
|
-
let
|
|
6870
|
-
return
|
|
6871
|
-
}), c =
|
|
6872
|
-
c.current.splice(0), r && (r.chains.current[
|
|
6873
|
-
c.current.push(
|
|
6874
|
-
})]), r == null || r.chains.current[
|
|
6875
|
-
Promise.all(u.current[
|
|
6876
|
-
})]),
|
|
6877
|
-
}), m =
|
|
6878
|
-
Promise.all(u.current[
|
|
6879
|
-
var
|
|
6880
|
-
(
|
|
6881
|
-
}).then(() => C(
|
|
6868
|
+
}), l = F((b) => {
|
|
6869
|
+
let v = t.current.find(({ el: C }) => C === b);
|
|
6870
|
+
return v ? v.state !== "visible" && (v.state = "visible") : t.current.push({ el: b, state: "visible" }), () => a(b, Oe.Unmount);
|
|
6871
|
+
}), c = A([]), f = A(Promise.resolve()), u = A({ enter: [], leave: [], idle: [] }), p = F((b, v, C) => {
|
|
6872
|
+
c.current.splice(0), r && (r.chains.current[v] = r.chains.current[v].filter(([x]) => x !== b)), r == null || r.chains.current[v].push([b, new Promise((x) => {
|
|
6873
|
+
c.current.push(x);
|
|
6874
|
+
})]), r == null || r.chains.current[v].push([b, new Promise((x) => {
|
|
6875
|
+
Promise.all(u.current[v].map(([k, j]) => j)).then(() => x());
|
|
6876
|
+
})]), v === "enter" ? f.current = f.current.then(() => r == null ? void 0 : r.wait.current).then(() => C(v)) : C(v);
|
|
6877
|
+
}), m = F((b, v, C) => {
|
|
6878
|
+
Promise.all(u.current[v].splice(0).map(([x, k]) => k)).then(() => {
|
|
6879
|
+
var x;
|
|
6880
|
+
(x = c.current.shift()) == null || x();
|
|
6881
|
+
}).then(() => C(v));
|
|
6882
6882
|
});
|
|
6883
6883
|
return ae(() => ({ children: t, register: l, unregister: a, onStart: p, onStop: m, wait: f, chains: u }), [l, a, t, p, m, u, f]);
|
|
6884
6884
|
}
|
|
6885
|
-
let vn = de, xn =
|
|
6885
|
+
let vn = de, xn = kr.RenderStrategy;
|
|
6886
6886
|
function Oi(e, r) {
|
|
6887
6887
|
var n, t, s;
|
|
6888
|
-
let { beforeEnter: o, afterEnter: a, beforeLeave: l, afterLeave: c, enter: f, enterFrom: u, enterTo: p, entered: m, leave: b, leaveFrom:
|
|
6888
|
+
let { beforeEnter: o, afterEnter: a, beforeLeave: l, afterLeave: c, enter: f, enterFrom: u, enterTo: p, entered: m, leave: b, leaveFrom: v, leaveTo: C, ...x } = e, k = A(null), j = gn(e), fe = ke(...j ? [k, r] : r === null ? [] : [r]), R = (n = x.unmount) == null || n ? Oe.Unmount : Oe.Hidden, { show: Z, appear: we, initial: J } = Pi(), [Y, X] = ge(Z ? "visible" : "hidden"), te = Fi(), { register: ie, unregister: $ } = te;
|
|
6889
6889
|
K(() => ie(k), [ie, k]), K(() => {
|
|
6890
|
-
if (
|
|
6890
|
+
if (R === Oe.Hidden && k.current) {
|
|
6891
6891
|
if (Z && Y !== "visible") {
|
|
6892
6892
|
X("visible");
|
|
6893
6893
|
return;
|
|
6894
6894
|
}
|
|
6895
6895
|
return U(Y, { hidden: () => $(k), visible: () => ie(k) });
|
|
6896
6896
|
}
|
|
6897
|
-
}, [Y, k, ie, $, Z,
|
|
6898
|
-
let O = Ce({ base: Pe(
|
|
6897
|
+
}, [Y, k, ie, $, Z, R]);
|
|
6898
|
+
let O = Ce({ base: Pe(x.className), enter: Pe(f), enterFrom: Pe(u), enterTo: Pe(p), entered: Pe(m), leave: Pe(b), leaveFrom: Pe(v), leaveTo: Pe(C) }), V = Ce({ beforeEnter: o, afterEnter: a, beforeLeave: l, afterLeave: c }), G = ur();
|
|
6899
6899
|
K(() => {
|
|
6900
6900
|
if (j && G && Y === "visible" && k.current === null)
|
|
6901
6901
|
throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?");
|
|
6902
6902
|
}, [k, Y, G, j]);
|
|
6903
|
-
let pe = J && !we, ve = we && Z && J, he = ve ? "enter" : !G || pe ? "idle" : Z ? "enter" : "leave", z = Mi(0), ye =
|
|
6904
|
-
var
|
|
6905
|
-
z.addFlag(se.Opening), (H = (
|
|
6903
|
+
let pe = J && !we, ve = we && Z && J, he = ve ? "enter" : !G || pe ? "idle" : Z ? "enter" : "leave", z = Mi(0), ye = F((ee) => U(ee, { enter: () => {
|
|
6904
|
+
var B, H;
|
|
6905
|
+
z.addFlag(se.Opening), (H = (B = V.current).beforeEnter) == null || H.call(B);
|
|
6906
6906
|
}, leave: () => {
|
|
6907
|
-
var
|
|
6908
|
-
z.addFlag(se.Closing), (H = (
|
|
6907
|
+
var B, H;
|
|
6908
|
+
z.addFlag(se.Closing), (H = (B = V.current).beforeLeave) == null || H.call(B);
|
|
6909
6909
|
}, idle: () => {
|
|
6910
|
-
} })), me =
|
|
6911
|
-
var
|
|
6912
|
-
z.removeFlag(se.Opening), (H = (
|
|
6910
|
+
} })), me = F((ee) => U(ee, { enter: () => {
|
|
6911
|
+
var B, H;
|
|
6912
|
+
z.removeFlag(se.Opening), (H = (B = V.current).afterEnter) == null || H.call(B);
|
|
6913
6913
|
}, leave: () => {
|
|
6914
|
-
var
|
|
6915
|
-
z.removeFlag(se.Closing), (H = (
|
|
6914
|
+
var B, H;
|
|
6915
|
+
z.removeFlag(se.Closing), (H = (B = V.current).afterLeave) == null || H.call(B);
|
|
6916
6916
|
}, idle: () => {
|
|
6917
|
-
} })), Q =
|
|
6917
|
+
} })), Q = A(!1), Se = bn(() => {
|
|
6918
6918
|
Q.current || (X("hidden"), $(k));
|
|
6919
6919
|
}, te);
|
|
6920
6920
|
Ri({ container: k, classes: O, direction: he, onStart: Ce((ee) => {
|
|
6921
6921
|
Q.current = !0, Se.onStart(k, ee, ye);
|
|
6922
6922
|
}), onStop: Ce((ee) => {
|
|
6923
|
-
Q.current = !1, Se.onStop(k, ee, me), ee === "leave" && !
|
|
6923
|
+
Q.current = !1, Se.onStop(k, ee, me), ee === "leave" && !Nr(Se) && (X("hidden"), $(k));
|
|
6924
6924
|
}) });
|
|
6925
|
-
let ne =
|
|
6926
|
-
return ve ? ne = { ...ne, className: ar(
|
|
6925
|
+
let ne = x, Ke = { ref: fe };
|
|
6926
|
+
return ve ? ne = { ...ne, className: ar(x.className, ...O.current.enter, ...O.current.enterFrom) } : Q.current ? (ne.className = ar(x.className, (t = k.current) == null ? void 0 : t.className), ne.className === "" && delete ne.className) : (ne.className = ar(x.className, (s = k.current) == null ? void 0 : s.className, ...U(he, { enter: [...O.current.enterTo, ...O.current.entered], leave: O.current.leaveTo, idle: [] })), ne.className === "" && delete ne.className), w.createElement(Mr.Provider, { value: Se }, w.createElement(Ha, { value: U(Y, { visible: se.Open, hidden: se.Closed }) | z.flags }, be({ ourProps: Ke, theirProps: ne, defaultTag: vn, features: xn, visible: Y === "visible", name: "Transition.Child" })));
|
|
6927
6927
|
}
|
|
6928
6928
|
function Wi(e, r) {
|
|
6929
|
-
let { show: n, appear: t = !1, unmount: s = !0, ...o } = e, a =
|
|
6930
|
-
|
|
6929
|
+
let { show: n, appear: t = !1, unmount: s = !0, ...o } = e, a = A(null), l = gn(e), c = ke(...l ? [a, r] : r === null ? [] : [r]);
|
|
6930
|
+
ur();
|
|
6931
6931
|
let f = it();
|
|
6932
6932
|
if (n === void 0 && f !== null && (n = (f & se.Open) === se.Open), n === void 0)
|
|
6933
6933
|
throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");
|
|
6934
6934
|
let [u, p] = ge(n ? "visible" : "hidden"), m = bn(() => {
|
|
6935
6935
|
n || p("hidden");
|
|
6936
|
-
}), [b,
|
|
6936
|
+
}), [b, v] = ge(!0), C = A([n]);
|
|
6937
6937
|
K(() => {
|
|
6938
|
-
b !== !1 && C.current[C.current.length - 1] !== n && (C.current.push(n),
|
|
6938
|
+
b !== !1 && C.current[C.current.length - 1] !== n && (C.current.push(n), v(!1));
|
|
6939
6939
|
}, [C, n]);
|
|
6940
|
-
let
|
|
6940
|
+
let x = ae(() => ({ show: n, appear: t, initial: b }), [n, t, b]);
|
|
6941
6941
|
tn(a, () => p("hidden")), K(() => {
|
|
6942
|
-
n ? p("visible") : !
|
|
6942
|
+
n ? p("visible") : !Nr(m) && a.current !== null && p("hidden");
|
|
6943
6943
|
}, [n, m]);
|
|
6944
|
-
let k = { unmount: s }, j =
|
|
6945
|
-
var
|
|
6946
|
-
b &&
|
|
6947
|
-
}), fe =
|
|
6948
|
-
var
|
|
6949
|
-
b &&
|
|
6944
|
+
let k = { unmount: s }, j = F(() => {
|
|
6945
|
+
var R;
|
|
6946
|
+
b && v(!1), (R = e.beforeEnter) == null || R.call(e);
|
|
6947
|
+
}), fe = F(() => {
|
|
6948
|
+
var R;
|
|
6949
|
+
b && v(!1), (R = e.beforeLeave) == null || R.call(e);
|
|
6950
6950
|
});
|
|
6951
|
-
return w.createElement(
|
|
6951
|
+
return w.createElement(Mr.Provider, { value: m }, w.createElement($r.Provider, { value: x }, be({ ourProps: { ...k, as: de, children: w.createElement(Cn, { ref: c, ...k, ...o, beforeEnter: j, beforeLeave: fe }) }, theirProps: {}, defaultTag: de, features: xn, visible: u === "visible", name: "Transition" })));
|
|
6952
6952
|
}
|
|
6953
6953
|
function _i(e, r) {
|
|
6954
|
-
let n = re(
|
|
6954
|
+
let n = re($r) !== null, t = it() !== null;
|
|
6955
6955
|
return w.createElement(w.Fragment, null, !n && t ? w.createElement(Zr, { ref: r, ...e }) : w.createElement(Cn, { ref: r, ...e }));
|
|
6956
6956
|
}
|
|
6957
6957
|
let Zr = ue(Wi), Cn = ue(Oi), Yr = ue(_i), Ii = Object.assign(Zr, { Child: Yr, Root: Zr });
|
|
@@ -7054,7 +7054,7 @@ const Vi = ({
|
|
|
7054
7054
|
]
|
|
7055
7055
|
}
|
|
7056
7056
|
) });
|
|
7057
|
-
},
|
|
7057
|
+
}, _l = Vi, Di = S(
|
|
7058
7058
|
[
|
|
7059
7059
|
"preflight",
|
|
7060
7060
|
"ds-rounded-xl",
|
|
@@ -7096,7 +7096,7 @@ const Vi = ({
|
|
|
7096
7096
|
}
|
|
7097
7097
|
}
|
|
7098
7098
|
}
|
|
7099
|
-
),
|
|
7099
|
+
), Bi = ({
|
|
7100
7100
|
label: e,
|
|
7101
7101
|
type: r = "regular",
|
|
7102
7102
|
color: n = "default",
|
|
@@ -7110,7 +7110,7 @@ const Vi = ({
|
|
|
7110
7110
|
return /* @__PURE__ */ i.jsxs(
|
|
7111
7111
|
"div",
|
|
7112
7112
|
{
|
|
7113
|
-
className:
|
|
7113
|
+
className: D(Di({ color: n, type: r }), o),
|
|
7114
7114
|
"aria-label": c,
|
|
7115
7115
|
...l,
|
|
7116
7116
|
children: [
|
|
@@ -7131,7 +7131,7 @@ const Vi = ({
|
|
|
7131
7131
|
]
|
|
7132
7132
|
}
|
|
7133
7133
|
);
|
|
7134
|
-
},
|
|
7134
|
+
}, Hi = Bi, zi = S(
|
|
7135
7135
|
[
|
|
7136
7136
|
"preflight",
|
|
7137
7137
|
"ds-transition",
|
|
@@ -7190,7 +7190,7 @@ const Vi = ({
|
|
|
7190
7190
|
className: a = "",
|
|
7191
7191
|
...l
|
|
7192
7192
|
}) => {
|
|
7193
|
-
const c = (f, u, p) =>
|
|
7193
|
+
const c = (f, u, p) => D(
|
|
7194
7194
|
zi({ isNested: f }),
|
|
7195
7195
|
u && !f && "!ds-border-b-acuity-green",
|
|
7196
7196
|
u && f && "ds-bg-neutrals-white !ds-border-neutrals",
|
|
@@ -7209,7 +7209,7 @@ const Vi = ({
|
|
|
7209
7209
|
children: [
|
|
7210
7210
|
e,
|
|
7211
7211
|
o && /* @__PURE__ */ i.jsx(
|
|
7212
|
-
|
|
7212
|
+
Hi,
|
|
7213
7213
|
{
|
|
7214
7214
|
label: o,
|
|
7215
7215
|
className: "ds-ml-2 ds-h-5 ds-bg-neutrals-white ds-text-neutrals-black"
|
|
@@ -7273,7 +7273,7 @@ const Vi = ({
|
|
|
7273
7273
|
`panel-${c}`
|
|
7274
7274
|
))
|
|
7275
7275
|
] });
|
|
7276
|
-
},
|
|
7276
|
+
}, Il = Zi, Yi = ({ children: e }) => e, Vl = Yi, qi = S(
|
|
7277
7277
|
[
|
|
7278
7278
|
"preflight",
|
|
7279
7279
|
"ds-form-label",
|
|
@@ -7294,7 +7294,7 @@ const Vi = ({
|
|
|
7294
7294
|
}
|
|
7295
7295
|
}
|
|
7296
7296
|
}
|
|
7297
|
-
), Ki = (e) =>
|
|
7297
|
+
), Ki = (e) => D(qi(e)), Ji = ({
|
|
7298
7298
|
id: e,
|
|
7299
7299
|
state: r = "default",
|
|
7300
7300
|
disabled: n = !1,
|
|
@@ -7304,18 +7304,28 @@ const Vi = ({
|
|
|
7304
7304
|
}) => /* @__PURE__ */ i.jsxs("label", { id: e, htmlFor: t, className: Ki({ state: r, disabled: n }), children: [
|
|
7305
7305
|
s,
|
|
7306
7306
|
o && /* @__PURE__ */ i.jsx("span", { className: "ds-text-sm ds-text-neutrals-darker", children: ` (${o})` })
|
|
7307
|
-
] }), Xi = Ji, Qi =
|
|
7307
|
+
] }), Xi = Ji, Qi = S(
|
|
7308
7308
|
["preflight", "group", "ds-flex", "ds-flex-col", "ds-container"],
|
|
7309
7309
|
{
|
|
7310
7310
|
variants: {
|
|
7311
7311
|
state: {
|
|
7312
|
-
default: ["[&>label]:focus-within:ds-text-acuity-blue"
|
|
7312
|
+
default: ["[&>label]:focus-within:ds-text-acuity-blue"],
|
|
7313
7313
|
error: ["[&>label]:focus-within:ds-text-danger-red-darkest"],
|
|
7314
7314
|
success: ["[&>label]:focus-within:ds-text-success-green-darkest"]
|
|
7315
|
+
},
|
|
7316
|
+
hasMarginBottom: {
|
|
7317
|
+
true: ""
|
|
7315
7318
|
}
|
|
7316
|
-
}
|
|
7319
|
+
},
|
|
7320
|
+
compoundVariants: [
|
|
7321
|
+
{
|
|
7322
|
+
state: "default",
|
|
7323
|
+
hasMarginBottom: !0,
|
|
7324
|
+
className: ["ds-mb-6", "ds-pb-2"]
|
|
7325
|
+
}
|
|
7326
|
+
]
|
|
7317
7327
|
}
|
|
7318
|
-
), el = (e) =>
|
|
7328
|
+
), el = (e) => D(Qi(e)), rl = S(["ds-form-label", "!ds-font-sans", "ds-text-base"], {
|
|
7319
7329
|
variants: {
|
|
7320
7330
|
state: {
|
|
7321
7331
|
default: ["ds-text-neutrals-black", "ds-mt-2"],
|
|
@@ -7333,7 +7343,7 @@ const Vi = ({
|
|
|
7333
7343
|
true: "!ds-text-neutrals-dark"
|
|
7334
7344
|
}
|
|
7335
7345
|
}
|
|
7336
|
-
}), tl = (e) =>
|
|
7346
|
+
}), tl = (e) => D(rl(e)), nl = ({
|
|
7337
7347
|
id: e,
|
|
7338
7348
|
state: r = "default",
|
|
7339
7349
|
disabled: n = !1,
|
|
@@ -7342,55 +7352,57 @@ const Vi = ({
|
|
|
7342
7352
|
helpText: o = [],
|
|
7343
7353
|
message: a = "",
|
|
7344
7354
|
child: l,
|
|
7345
|
-
isTextarea: c = !1
|
|
7355
|
+
isTextarea: c = !1,
|
|
7356
|
+
className: f = "",
|
|
7357
|
+
hasMarginBottom: u = !0
|
|
7346
7358
|
}) => {
|
|
7347
|
-
let
|
|
7359
|
+
let p = null;
|
|
7348
7360
|
switch (r) {
|
|
7349
7361
|
case "error":
|
|
7350
|
-
|
|
7362
|
+
p = {
|
|
7351
7363
|
name: "error",
|
|
7352
7364
|
color: "ds-text-danger-red"
|
|
7353
7365
|
};
|
|
7354
7366
|
break;
|
|
7355
7367
|
case "success":
|
|
7356
|
-
|
|
7368
|
+
p = {
|
|
7357
7369
|
name: "checkCircle",
|
|
7358
7370
|
color: "ds-text-success-green"
|
|
7359
7371
|
};
|
|
7360
7372
|
break;
|
|
7361
7373
|
}
|
|
7362
|
-
const
|
|
7363
|
-
return /* @__PURE__ */ i.jsxs("div", { className: el({ state: r }), children: [
|
|
7374
|
+
const m = t ? "label_" + e : void 0, b = o && o.length > 0 ? "helptext_" + e : void 0;
|
|
7375
|
+
return /* @__PURE__ */ i.jsxs("div", { className: D(el({ state: r, hasMarginBottom: u }), f), children: [
|
|
7364
7376
|
t && /* @__PURE__ */ i.jsx(
|
|
7365
7377
|
Xi,
|
|
7366
7378
|
{
|
|
7367
|
-
id:
|
|
7379
|
+
id: m,
|
|
7368
7380
|
htmlFor: e,
|
|
7369
7381
|
value: t,
|
|
7370
7382
|
optionalityLabel: s,
|
|
7371
7383
|
disabled: n
|
|
7372
7384
|
}
|
|
7373
7385
|
),
|
|
7374
|
-
o && o.length > 1 && /* @__PURE__ */ i.jsx("ul", { id:
|
|
7375
|
-
o && o.length === 1 && /* @__PURE__ */ i.jsx("p", { id:
|
|
7386
|
+
o && o.length > 1 && /* @__PURE__ */ i.jsx("ul", { id: b, className: "ds-mt-2 ds-pb-1 ds-pl-6", children: o == null ? void 0 : o.map((v, C) => /* @__PURE__ */ i.jsx("li", { className: "ds-list-disc ds-text-neutrals-dark", children: v }, C)) }),
|
|
7387
|
+
o && o.length === 1 && /* @__PURE__ */ i.jsx("p", { id: b, className: "ds-mt-2 ds-pb-1 ds-text-neutrals-dark", children: o }),
|
|
7376
7388
|
/* @__PURE__ */ i.jsxs("div", { className: "ds-mt-2 ds-flex ds-gap-2", children: [
|
|
7377
7389
|
/* @__PURE__ */ i.jsx("div", { className: c ? "" : "ds-w-[calc(100%-2rem)]", children: l }),
|
|
7378
|
-
/* @__PURE__ */ i.jsx("div", { className: "ds-pt-2", children:
|
|
7390
|
+
/* @__PURE__ */ i.jsx("div", { className: "ds-pt-2", children: p && /* @__PURE__ */ i.jsx(
|
|
7379
7391
|
Te,
|
|
7380
7392
|
{
|
|
7381
|
-
name:
|
|
7393
|
+
name: p.name,
|
|
7382
7394
|
size: "medium",
|
|
7383
|
-
className:
|
|
7395
|
+
className: p.color,
|
|
7384
7396
|
role: "graphics-symbol"
|
|
7385
7397
|
}
|
|
7386
7398
|
) })
|
|
7387
7399
|
] }),
|
|
7388
|
-
|
|
7400
|
+
p && /* @__PURE__ */ i.jsx("p", { className: tl({ state: r }), children: a })
|
|
7389
7401
|
] });
|
|
7390
|
-
}, ct = nl, sl =
|
|
7402
|
+
}, ct = nl, sl = S(
|
|
7391
7403
|
["preflight", "ds-form-input", "ds-rounded", "ds-p-2", "!ds-border", "!ds-font-sans"],
|
|
7392
7404
|
rt
|
|
7393
|
-
), ol = (e) =>
|
|
7405
|
+
), ol = (e) => D(sl(e)), al = ({
|
|
7394
7406
|
state: e = "default",
|
|
7395
7407
|
rows: r = 2,
|
|
7396
7408
|
cols: n = 50,
|
|
@@ -7421,7 +7433,9 @@ const Vi = ({
|
|
|
7421
7433
|
helpText: l = [],
|
|
7422
7434
|
message: c = "",
|
|
7423
7435
|
disabled: f = !1,
|
|
7424
|
-
|
|
7436
|
+
className: u = "",
|
|
7437
|
+
hasMarginBottom: p = !0,
|
|
7438
|
+
...m
|
|
7425
7439
|
}) => /* @__PURE__ */ i.jsx(
|
|
7426
7440
|
ct,
|
|
7427
7441
|
{
|
|
@@ -7433,6 +7447,8 @@ const Vi = ({
|
|
|
7433
7447
|
helpText: l,
|
|
7434
7448
|
message: c,
|
|
7435
7449
|
isTextarea: !0,
|
|
7450
|
+
className: u,
|
|
7451
|
+
hasMarginBottom: p,
|
|
7436
7452
|
child: /* @__PURE__ */ i.jsx(
|
|
7437
7453
|
il,
|
|
7438
7454
|
{
|
|
@@ -7444,11 +7460,11 @@ const Vi = ({
|
|
|
7444
7460
|
cols: s,
|
|
7445
7461
|
isResizable: o,
|
|
7446
7462
|
disabled: f,
|
|
7447
|
-
...
|
|
7463
|
+
...m
|
|
7448
7464
|
}
|
|
7449
7465
|
)
|
|
7450
7466
|
}
|
|
7451
|
-
),
|
|
7467
|
+
), Dl = ll, dl = S(
|
|
7452
7468
|
[
|
|
7453
7469
|
"preflight",
|
|
7454
7470
|
"ds-form-input",
|
|
@@ -7460,7 +7476,7 @@ const Vi = ({
|
|
|
7460
7476
|
"ds-container"
|
|
7461
7477
|
],
|
|
7462
7478
|
rt
|
|
7463
|
-
), cl = (e) =>
|
|
7479
|
+
), cl = (e) => D(dl(e)), ul = ({
|
|
7464
7480
|
state: e = "default",
|
|
7465
7481
|
disabled: r = !1,
|
|
7466
7482
|
type: n = "text",
|
|
@@ -7483,7 +7499,9 @@ const Vi = ({
|
|
|
7483
7499
|
optionalityLabel: o = "",
|
|
7484
7500
|
helpText: a = [],
|
|
7485
7501
|
message: l = "",
|
|
7486
|
-
|
|
7502
|
+
className: c = "",
|
|
7503
|
+
hasMarginBottom: f = !0,
|
|
7504
|
+
...u
|
|
7487
7505
|
}) => /* @__PURE__ */ i.jsx(
|
|
7488
7506
|
ct,
|
|
7489
7507
|
{
|
|
@@ -7494,6 +7512,8 @@ const Vi = ({
|
|
|
7494
7512
|
optionalityLabel: o,
|
|
7495
7513
|
helpText: a,
|
|
7496
7514
|
message: l,
|
|
7515
|
+
className: c,
|
|
7516
|
+
hasMarginBottom: f,
|
|
7497
7517
|
child: /* @__PURE__ */ i.jsx(
|
|
7498
7518
|
fl,
|
|
7499
7519
|
{
|
|
@@ -7503,11 +7523,11 @@ const Vi = ({
|
|
|
7503
7523
|
type: t,
|
|
7504
7524
|
state: r,
|
|
7505
7525
|
disabled: n,
|
|
7506
|
-
...
|
|
7526
|
+
...u
|
|
7507
7527
|
}
|
|
7508
7528
|
)
|
|
7509
7529
|
}
|
|
7510
|
-
),
|
|
7530
|
+
), Bl = pl, hl = S(
|
|
7511
7531
|
[
|
|
7512
7532
|
"preflight",
|
|
7513
7533
|
"ds-form-select",
|
|
@@ -7537,7 +7557,7 @@ const Vi = ({
|
|
|
7537
7557
|
"aria-readonly": r,
|
|
7538
7558
|
tabIndex: r ? -1 : 0,
|
|
7539
7559
|
style: { backgroundImage: gl },
|
|
7540
|
-
className:
|
|
7560
|
+
className: D(ml({ disabled: r, state: e }), n),
|
|
7541
7561
|
...t,
|
|
7542
7562
|
children: s
|
|
7543
7563
|
}
|
|
@@ -7550,7 +7570,9 @@ const Vi = ({
|
|
|
7550
7570
|
optionalityLabel: s = "",
|
|
7551
7571
|
helpText: o = [],
|
|
7552
7572
|
message: a = "",
|
|
7553
|
-
|
|
7573
|
+
className: l = "",
|
|
7574
|
+
hasMarginBottom: c = !0,
|
|
7575
|
+
...f
|
|
7554
7576
|
}) => /* @__PURE__ */ i.jsx(
|
|
7555
7577
|
ct,
|
|
7556
7578
|
{
|
|
@@ -7561,6 +7583,8 @@ const Vi = ({
|
|
|
7561
7583
|
optionalityLabel: s,
|
|
7562
7584
|
helpText: o,
|
|
7563
7585
|
message: a,
|
|
7586
|
+
className: l,
|
|
7587
|
+
hasMarginBottom: c,
|
|
7564
7588
|
child: /* @__PURE__ */ i.jsx(
|
|
7565
7589
|
vl,
|
|
7566
7590
|
{
|
|
@@ -7569,18 +7593,18 @@ const Vi = ({
|
|
|
7569
7593
|
"aria-describedby": o && o.length > 0 ? "helptext_" + e : void 0,
|
|
7570
7594
|
state: r,
|
|
7571
7595
|
disabled: n,
|
|
7572
|
-
...
|
|
7596
|
+
...f
|
|
7573
7597
|
}
|
|
7574
7598
|
)
|
|
7575
7599
|
}
|
|
7576
|
-
),
|
|
7600
|
+
), Hl = xl, Cl = S("ds-overflow-hidden ds-bg-neutrals-light", {
|
|
7577
7601
|
variants: {
|
|
7578
7602
|
size: {
|
|
7579
7603
|
small: ["ds-h-2", "ds-rounded-sm"],
|
|
7580
7604
|
large: ["ds-h-4", "ds-rounded"]
|
|
7581
7605
|
}
|
|
7582
7606
|
}
|
|
7583
|
-
}), kl =
|
|
7607
|
+
}), kl = S("", {
|
|
7584
7608
|
variants: {
|
|
7585
7609
|
size: {
|
|
7586
7610
|
small: ["ds-h-2", "ds-rounded-sm"],
|
|
@@ -7593,7 +7617,7 @@ const Vi = ({
|
|
|
7593
7617
|
indeterminate: ["ds-bg-acuity-blue", "ds-animate-progress"]
|
|
7594
7618
|
}
|
|
7595
7619
|
}
|
|
7596
|
-
}), wl =
|
|
7620
|
+
}), wl = S(
|
|
7597
7621
|
"ds-w-[3rem] ds-justify-end ds-flex ds-items-center ds-text-neutrals-dark",
|
|
7598
7622
|
{
|
|
7599
7623
|
variants: {
|
|
@@ -7603,7 +7627,7 @@ const Vi = ({
|
|
|
7603
7627
|
}
|
|
7604
7628
|
}
|
|
7605
7629
|
}
|
|
7606
|
-
), yl =
|
|
7630
|
+
), yl = S("ds-text-sm", {
|
|
7607
7631
|
variants: {
|
|
7608
7632
|
state: {
|
|
7609
7633
|
error: "ds-text-danger-red",
|
|
@@ -7663,7 +7687,7 @@ const Vi = ({
|
|
|
7663
7687
|
/* @__PURE__ */ i.jsx("div", { className: "ds-h-[3px] ds-w-[3px] ds-animate-blink ds-rounded-full ds-bg-neutrals-black [animation-delay:-0.15s]" }),
|
|
7664
7688
|
/* @__PURE__ */ i.jsx("div", { className: "ds-h-[3px] ds-w-[3px] ds-animate-blink ds-rounded-full ds-bg-neutrals-black" })
|
|
7665
7689
|
] }) : null;
|
|
7666
|
-
return /* @__PURE__ */ i.jsxs("div", { className:
|
|
7690
|
+
return /* @__PURE__ */ i.jsxs("div", { className: D("preflight ds-min-w-[4.875rem]", t), ...c, children: [
|
|
7667
7691
|
/* @__PURE__ */ i.jsxs("div", { className: "ds-flex ds-h-5 ds-items-center ds-justify-between", children: [
|
|
7668
7692
|
/* @__PURE__ */ i.jsxs("div", { className: "progress-bar-label ds-flex ds-max-w-[calc(100%-3rem)] ds-overflow-hidden", children: [
|
|
7669
7693
|
/* @__PURE__ */ i.jsx("p", { className: "ds-overflow-hidden ds-text-nowrap", children: r }),
|
|
@@ -7692,28 +7716,69 @@ const Vi = ({
|
|
|
7692
7716
|
),
|
|
7693
7717
|
/* @__PURE__ */ i.jsx("p", { className: yl({ state: s }), children: n })
|
|
7694
7718
|
] });
|
|
7695
|
-
},
|
|
7719
|
+
}, zl = jl, Ll = S(
|
|
7720
|
+
"ds-rounded-full ds-border-t-acuity-blue ds-border-x-acuity-blue ds-border-b-neutrals-transparent ds-border-solid ds-animate-spin",
|
|
7721
|
+
{
|
|
7722
|
+
variants: {
|
|
7723
|
+
size: {
|
|
7724
|
+
small: ["ds-w-4", "ds-h-4", "ds-border"],
|
|
7725
|
+
medium: ["ds-w-5", "ds-h-5", "ds-border-2"],
|
|
7726
|
+
large: ["ds-w-7", "ds-h-7", "ds-border-[3px]"],
|
|
7727
|
+
"extra-large": ["ds-w-[6.5rem]", "ds-h-[6.5rem]", "ds-border-[6px]"]
|
|
7728
|
+
}
|
|
7729
|
+
}
|
|
7730
|
+
}
|
|
7731
|
+
), El = S(
|
|
7732
|
+
"preflight ds-inline-block ds-rounded focus-visible:ds-outline-none focus-visible:ds-ring-2 focus-visible:ds-ring-acuity-blue",
|
|
7733
|
+
{
|
|
7734
|
+
variants: {
|
|
7735
|
+
size: {
|
|
7736
|
+
small: "ds-p-1",
|
|
7737
|
+
medium: "ds-p-2",
|
|
7738
|
+
large: "ds-p-3",
|
|
7739
|
+
"extra-large": "ds-p-4"
|
|
7740
|
+
}
|
|
7741
|
+
}
|
|
7742
|
+
}
|
|
7743
|
+
), $l = ({
|
|
7744
|
+
size: e = "medium",
|
|
7745
|
+
focusable: r = !0,
|
|
7746
|
+
label: n = "",
|
|
7747
|
+
ariaLive: t = "assertive",
|
|
7748
|
+
className: s = ""
|
|
7749
|
+
}) => /* @__PURE__ */ i.jsx(
|
|
7750
|
+
"div",
|
|
7751
|
+
{
|
|
7752
|
+
tabIndex: r ? 0 : void 0,
|
|
7753
|
+
"aria-label": n,
|
|
7754
|
+
"aria-live": t,
|
|
7755
|
+
className: r ? dr(El({ size: e }), s) : `preflight ds-rounded ${s}`,
|
|
7756
|
+
role: "status",
|
|
7757
|
+
children: /* @__PURE__ */ i.jsx("div", { className: dr(Ll({ size: e })) })
|
|
7758
|
+
}
|
|
7759
|
+
), Ul = $l;
|
|
7696
7760
|
export {
|
|
7697
|
-
|
|
7698
|
-
|
|
7699
|
-
|
|
7700
|
-
|
|
7701
|
-
|
|
7702
|
-
|
|
7761
|
+
Sl as Alert,
|
|
7762
|
+
Hi as Badge,
|
|
7763
|
+
Rl as Button,
|
|
7764
|
+
Al as Card,
|
|
7765
|
+
Pl as Checkbox,
|
|
7766
|
+
Hl as Dropdown,
|
|
7703
7767
|
vl as DropdownAtom,
|
|
7704
7768
|
Jt as Heading,
|
|
7705
7769
|
Te as Icon,
|
|
7706
7770
|
et as IconButton,
|
|
7707
7771
|
Xi as LabelAtom,
|
|
7708
|
-
|
|
7709
|
-
|
|
7710
|
-
|
|
7711
|
-
|
|
7712
|
-
|
|
7713
|
-
|
|
7714
|
-
Il as
|
|
7772
|
+
Ol as Link,
|
|
7773
|
+
_l as Modal,
|
|
7774
|
+
zl as ProgressBar,
|
|
7775
|
+
Fl as Radio,
|
|
7776
|
+
Ul as Spinner,
|
|
7777
|
+
Vl as Tab,
|
|
7778
|
+
Il as Tabs,
|
|
7779
|
+
Bl as TextInput,
|
|
7715
7780
|
fl as TextInputAtom,
|
|
7716
|
-
|
|
7781
|
+
Dl as Textarea,
|
|
7717
7782
|
il as TextareaAtom
|
|
7718
7783
|
};
|
|
7719
7784
|
//# sourceMappingURL=index.es.js.map
|