@takecasper/acuity-design-system 1.22.1 → 1.23.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 +9 -9
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +13 -0
- package/dist/index.es.js +359 -241
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -62,16 +62,16 @@ function Kn() {
|
|
|
62
62
|
{
|
|
63
63
|
var y = w.ReactDebugCurrentFrame, M = y.getStackAddendum();
|
|
64
64
|
M !== "" && (h += "%s", g = g.concat([M]));
|
|
65
|
-
var
|
|
65
|
+
var N = g.map(function(T) {
|
|
66
66
|
return String(T);
|
|
67
67
|
});
|
|
68
|
-
|
|
68
|
+
N.unshift("Warning: " + h), Function.prototype.apply.call(console[d], console, N);
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
|
-
var
|
|
71
|
+
var S = !1, Y = !1, ke = !1, J = !1, Z = !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 || Z || d === s || d === u || d === f || J || d === b ||
|
|
74
|
+
return !!(typeof d == "string" || typeof d == "function" || d === t || d === o || Z || d === s || d === u || d === f || J || d === b || S || Y || ke || 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.
|
|
@@ -87,7 +87,7 @@ function Kn() {
|
|
|
87
87
|
function $(d) {
|
|
88
88
|
return d.displayName || "Context";
|
|
89
89
|
}
|
|
90
|
-
function
|
|
90
|
+
function O(d) {
|
|
91
91
|
if (d == null)
|
|
92
92
|
return null;
|
|
93
93
|
if (typeof d.tag == "number" && j("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof d == "function")
|
|
@@ -120,11 +120,11 @@ function Kn() {
|
|
|
120
120
|
return ie(d, d.render, "ForwardRef");
|
|
121
121
|
case p:
|
|
122
122
|
var y = d.displayName || null;
|
|
123
|
-
return y !== null ? y :
|
|
123
|
+
return y !== null ? y : O(d.type) || "Memo";
|
|
124
124
|
case m: {
|
|
125
|
-
var M = d,
|
|
125
|
+
var M = d, N = M._payload, T = M._init;
|
|
126
126
|
try {
|
|
127
|
-
return
|
|
127
|
+
return O(T(N));
|
|
128
128
|
} catch (L) {
|
|
129
129
|
return null;
|
|
130
130
|
}
|
|
@@ -132,14 +132,14 @@ function Kn() {
|
|
|
132
132
|
}
|
|
133
133
|
return null;
|
|
134
134
|
}
|
|
135
|
-
var V = Object.assign, G = 0, pe, ve, he,
|
|
135
|
+
var V = Object.assign, G = 0, pe, ve, he, z, ye, me, Q;
|
|
136
136
|
function Se() {
|
|
137
137
|
}
|
|
138
138
|
Se.__reactDisabledLog = !0;
|
|
139
139
|
function ne() {
|
|
140
140
|
{
|
|
141
141
|
if (G === 0) {
|
|
142
|
-
pe = console.log, ve = console.info, he = console.warn,
|
|
142
|
+
pe = console.log, ve = console.info, he = console.warn, z = console.error, ye = console.group, me = console.groupCollapsed, Q = console.groupEnd;
|
|
143
143
|
var d = {
|
|
144
144
|
configurable: !0,
|
|
145
145
|
enumerable: !0,
|
|
@@ -178,7 +178,7 @@ function Kn() {
|
|
|
178
178
|
value: he
|
|
179
179
|
}),
|
|
180
180
|
error: V({}, d, {
|
|
181
|
-
value:
|
|
181
|
+
value: z
|
|
182
182
|
}),
|
|
183
183
|
group: V({}, d, {
|
|
184
184
|
value: ye
|
|
@@ -210,8 +210,8 @@ function Kn() {
|
|
|
210
210
|
}
|
|
211
211
|
var Je = !1, je;
|
|
212
212
|
{
|
|
213
|
-
var
|
|
214
|
-
je = new
|
|
213
|
+
var _ = typeof WeakMap == "function" ? WeakMap : Map;
|
|
214
|
+
je = new _();
|
|
215
215
|
}
|
|
216
216
|
function xe(d, h) {
|
|
217
217
|
if (!d || Je)
|
|
@@ -225,8 +225,8 @@ function Kn() {
|
|
|
225
225
|
Je = !0;
|
|
226
226
|
var M = Error.prepareStackTrace;
|
|
227
227
|
Error.prepareStackTrace = void 0;
|
|
228
|
-
var
|
|
229
|
-
|
|
228
|
+
var N;
|
|
229
|
+
N = ee.current, ee.current = null, ne();
|
|
230
230
|
try {
|
|
231
231
|
if (h) {
|
|
232
232
|
var T = function() {
|
|
@@ -263,23 +263,23 @@ function Kn() {
|
|
|
263
263
|
if (Ee && y && typeof Ee.stack == "string") {
|
|
264
264
|
for (var L = Ee.stack.split(`
|
|
265
265
|
`), q = y.stack.split(`
|
|
266
|
-
`),
|
|
266
|
+
`), W = L.length - 1, I = q.length - 1; W >= 1 && I >= 0 && L[W] !== q[I]; )
|
|
267
267
|
I--;
|
|
268
|
-
for (;
|
|
269
|
-
if (L[
|
|
270
|
-
if (
|
|
268
|
+
for (; W >= 1 && I >= 0; W--, I--)
|
|
269
|
+
if (L[W] !== q[I]) {
|
|
270
|
+
if (W !== 1 || I !== 1)
|
|
271
271
|
do
|
|
272
|
-
if (
|
|
272
|
+
if (W--, I--, I < 0 || L[W] !== q[I]) {
|
|
273
273
|
var le = `
|
|
274
|
-
` + L[
|
|
274
|
+
` + L[W].replace(" at new ", " at ");
|
|
275
275
|
return d.displayName && le.includes("<anonymous>") && (le = le.replace("<anonymous>", d.displayName)), typeof d == "function" && je.set(d, le), le;
|
|
276
276
|
}
|
|
277
|
-
while (
|
|
277
|
+
while (W >= 1 && I >= 0);
|
|
278
278
|
break;
|
|
279
279
|
}
|
|
280
280
|
}
|
|
281
281
|
} finally {
|
|
282
|
-
Je = !1, ee.current =
|
|
282
|
+
Je = !1, ee.current = N, Ke(), Error.prepareStackTrace = M;
|
|
283
283
|
}
|
|
284
284
|
var Be = d ? d.displayName || d.name : "", xt = Be ? H(Be) : "";
|
|
285
285
|
return typeof d == "function" && je.set(d, xt), xt;
|
|
@@ -311,9 +311,9 @@ function Kn() {
|
|
|
311
311
|
case p:
|
|
312
312
|
return fr(d.type, h, g);
|
|
313
313
|
case m: {
|
|
314
|
-
var y = d, M = y._payload,
|
|
314
|
+
var y = d, M = y._payload, N = y._init;
|
|
315
315
|
try {
|
|
316
|
-
return fr(
|
|
316
|
+
return fr(N(M), h, g);
|
|
317
317
|
} catch (T) {
|
|
318
318
|
}
|
|
319
319
|
}
|
|
@@ -330,9 +330,9 @@ function Kn() {
|
|
|
330
330
|
}
|
|
331
331
|
function wn(d, h, g, y, M) {
|
|
332
332
|
{
|
|
333
|
-
var
|
|
333
|
+
var N = Function.call.bind(pr);
|
|
334
334
|
for (var T in d)
|
|
335
|
-
if (
|
|
335
|
+
if (N(d, T)) {
|
|
336
336
|
var L = void 0;
|
|
337
337
|
try {
|
|
338
338
|
if (typeof d[T] != "function") {
|
|
@@ -340,8 +340,8 @@ function Kn() {
|
|
|
340
340
|
throw q.name = "Invariant Violation", q;
|
|
341
341
|
}
|
|
342
342
|
L = d[T](h, T, y, g, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
343
|
-
} catch (
|
|
344
|
-
L =
|
|
343
|
+
} catch (W) {
|
|
344
|
+
L = W;
|
|
345
345
|
}
|
|
346
346
|
L && !(L instanceof Error) && (hr(M), 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, T, typeof L), hr(null)), L instanceof Error && !(L.message in it) && (it[L.message] = !0, hr(M), j("Failed %s type: %s", g, L.message), hr(null));
|
|
347
347
|
}
|
|
@@ -376,8 +376,8 @@ function Kn() {
|
|
|
376
376
|
ref: !0,
|
|
377
377
|
__self: !0,
|
|
378
378
|
__source: !0
|
|
379
|
-
}, ut, ft,
|
|
380
|
-
|
|
379
|
+
}, ut, ft, Nr;
|
|
380
|
+
Nr = {};
|
|
381
381
|
function Ln(d) {
|
|
382
382
|
if (pr.call(d, "ref")) {
|
|
383
383
|
var h = Object.getOwnPropertyDescriptor(d, "ref").get;
|
|
@@ -396,8 +396,8 @@ function Kn() {
|
|
|
396
396
|
}
|
|
397
397
|
function Tn(d, h) {
|
|
398
398
|
if (typeof d.ref == "string" && Qe.current && h && Qe.current.stateNode !== h) {
|
|
399
|
-
var g =
|
|
400
|
-
|
|
399
|
+
var g = O(Qe.current.type);
|
|
400
|
+
Nr[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), Nr[g] = !0);
|
|
401
401
|
}
|
|
402
402
|
}
|
|
403
403
|
function Mn(d, h) {
|
|
@@ -411,7 +411,7 @@ function Kn() {
|
|
|
411
411
|
});
|
|
412
412
|
}
|
|
413
413
|
}
|
|
414
|
-
function
|
|
414
|
+
function Nn(d, h) {
|
|
415
415
|
{
|
|
416
416
|
var g = function() {
|
|
417
417
|
ft || (ft = !0, j("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", h));
|
|
@@ -422,7 +422,7 @@ function Kn() {
|
|
|
422
422
|
});
|
|
423
423
|
}
|
|
424
424
|
}
|
|
425
|
-
var
|
|
425
|
+
var Sn = function(d, h, g, y, M, N, T) {
|
|
426
426
|
var L = {
|
|
427
427
|
// This tag allows us to uniquely identify this as a React Element
|
|
428
428
|
$$typeof: r,
|
|
@@ -432,7 +432,7 @@ function Kn() {
|
|
|
432
432
|
ref: g,
|
|
433
433
|
props: T,
|
|
434
434
|
// Record the component responsible for creating this element.
|
|
435
|
-
_owner:
|
|
435
|
+
_owner: N
|
|
436
436
|
};
|
|
437
437
|
return L._store = {}, Object.defineProperty(L._store, "validated", {
|
|
438
438
|
configurable: !1,
|
|
@@ -453,23 +453,23 @@ function Kn() {
|
|
|
453
453
|
};
|
|
454
454
|
function Rn(d, h, g, y, M) {
|
|
455
455
|
{
|
|
456
|
-
var
|
|
456
|
+
var N, T = {}, L = null, q = null;
|
|
457
457
|
g !== void 0 && (ct(g), L = "" + g), $n(h) && (ct(h.key), L = "" + h.key), Ln(h) && (q = h.ref, Tn(h, M));
|
|
458
|
-
for (
|
|
459
|
-
pr.call(h,
|
|
458
|
+
for (N in h)
|
|
459
|
+
pr.call(h, N) && !En.hasOwnProperty(N) && (T[N] = h[N]);
|
|
460
460
|
if (d && d.defaultProps) {
|
|
461
|
-
var
|
|
462
|
-
for (
|
|
463
|
-
T[
|
|
461
|
+
var W = d.defaultProps;
|
|
462
|
+
for (N in W)
|
|
463
|
+
T[N] === void 0 && (T[N] = W[N]);
|
|
464
464
|
}
|
|
465
465
|
if (L || q) {
|
|
466
466
|
var I = typeof d == "function" ? d.displayName || d.name || "Unknown" : d;
|
|
467
|
-
L && Mn(T, I), q &&
|
|
467
|
+
L && Mn(T, I), q && Nn(T, I);
|
|
468
468
|
}
|
|
469
|
-
return
|
|
469
|
+
return Sn(d, L, q, M, y, Qe.current, T);
|
|
470
470
|
}
|
|
471
471
|
}
|
|
472
|
-
var
|
|
472
|
+
var Sr = w.ReactCurrentOwner, pt = w.ReactDebugCurrentFrame;
|
|
473
473
|
function He(d) {
|
|
474
474
|
if (d) {
|
|
475
475
|
var h = d._owner, g = fr(d.type, d._source, h ? h.type : null);
|
|
@@ -484,8 +484,8 @@ function Kn() {
|
|
|
484
484
|
}
|
|
485
485
|
function ht() {
|
|
486
486
|
{
|
|
487
|
-
if (
|
|
488
|
-
var d =
|
|
487
|
+
if (Sr.current) {
|
|
488
|
+
var d = O(Sr.current.type);
|
|
489
489
|
if (d)
|
|
490
490
|
return `
|
|
491
491
|
|
|
@@ -528,7 +528,7 @@ Check the top-level render call using <` + g + ">.");
|
|
|
528
528
|
return;
|
|
529
529
|
mt[g] = !0;
|
|
530
530
|
var y = "";
|
|
531
|
-
d && d._owner && d._owner !==
|
|
531
|
+
d && d._owner && d._owner !== Sr.current && (y = " It was passed a child from " + O(d._owner.type) + "."), He(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), He(null);
|
|
532
532
|
}
|
|
533
533
|
}
|
|
534
534
|
function bt(d, h) {
|
|
@@ -545,7 +545,7 @@ Check the top-level render call using <` + g + ">.");
|
|
|
545
545
|
else if (d) {
|
|
546
546
|
var M = v(d);
|
|
547
547
|
if (typeof M == "function" && M !== d.entries)
|
|
548
|
-
for (var
|
|
548
|
+
for (var N = M.call(d), T; !(T = N.next()).done; )
|
|
549
549
|
Ar(T.value) && gt(T.value, h);
|
|
550
550
|
}
|
|
551
551
|
}
|
|
@@ -565,11 +565,11 @@ Check the top-level render call using <` + g + ">.");
|
|
|
565
565
|
else
|
|
566
566
|
return;
|
|
567
567
|
if (g) {
|
|
568
|
-
var y =
|
|
568
|
+
var y = O(h);
|
|
569
569
|
wn(g, d.props, "prop", y, d);
|
|
570
570
|
} else if (h.PropTypes !== void 0 && !Rr) {
|
|
571
571
|
Rr = !0;
|
|
572
|
-
var M =
|
|
572
|
+
var M = O(h);
|
|
573
573
|
j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", M || "Unknown");
|
|
574
574
|
}
|
|
575
575
|
typeof h.getDefaultProps == "function" && !h.getDefaultProps.isReactClassApproved && j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
@@ -587,7 +587,7 @@ Check the top-level render call using <` + g + ">.");
|
|
|
587
587
|
d.ref !== null && (He(d), j("Invalid attribute `ref` supplied to `React.Fragment`."), He(null));
|
|
588
588
|
}
|
|
589
589
|
}
|
|
590
|
-
function vt(d, h, g, y, M,
|
|
590
|
+
function vt(d, h, g, y, M, N) {
|
|
591
591
|
{
|
|
592
592
|
var T = te(d);
|
|
593
593
|
if (!T) {
|
|
@@ -595,10 +595,10 @@ Check the top-level render call using <` + g + ">.");
|
|
|
595
595
|
(d === void 0 || typeof d == "object" && d !== null && Object.keys(d).length === 0) && (L += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
596
596
|
var q = An(M);
|
|
597
597
|
q ? L += q : L += ht();
|
|
598
|
-
var
|
|
599
|
-
d === null ?
|
|
598
|
+
var W;
|
|
599
|
+
d === null ? W = "null" : Mr(d) ? W = "array" : d !== void 0 && d.$$typeof === r ? (W = "<" + (O(d.type) || "Unknown") + " />", L = " Did you accidentally export a JSX literal instead of a component?") : W = 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", W, L);
|
|
600
600
|
}
|
|
601
|
-
var I = Rn(d, h, g, M,
|
|
601
|
+
var I = Rn(d, h, g, M, N);
|
|
602
602
|
if (I == null)
|
|
603
603
|
return I;
|
|
604
604
|
if (T) {
|
|
@@ -1829,7 +1829,7 @@ const Jn = ({
|
|
|
1829
1829
|
]
|
|
1830
1830
|
}
|
|
1831
1831
|
);
|
|
1832
|
-
},
|
|
1832
|
+
}, Ns = Ms, Ss = ({
|
|
1833
1833
|
width: e = "24",
|
|
1834
1834
|
height: r = "24",
|
|
1835
1835
|
className: n = "",
|
|
@@ -1875,7 +1875,7 @@ const Jn = ({
|
|
|
1875
1875
|
]
|
|
1876
1876
|
}
|
|
1877
1877
|
);
|
|
1878
|
-
}, Rs =
|
|
1878
|
+
}, Rs = Ss, As = ({
|
|
1879
1879
|
width: e = "24",
|
|
1880
1880
|
height: r = "24",
|
|
1881
1881
|
className: n = "",
|
|
@@ -2122,7 +2122,7 @@ function Ds() {
|
|
|
2122
2122
|
(e = arguments[n++]) && (r = _t(e)) && (t && (t += " "), t += r);
|
|
2123
2123
|
return t;
|
|
2124
2124
|
}
|
|
2125
|
-
const kt = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, yt = Ds,
|
|
2125
|
+
const kt = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, yt = Ds, F = (e, r) => (n) => {
|
|
2126
2126
|
var t;
|
|
2127
2127
|
if ((r == null ? void 0 : r.variants) == null)
|
|
2128
2128
|
return yt(e, n == null ? void 0 : n.class, n == null ? void 0 : n.className);
|
|
@@ -2401,27 +2401,27 @@ function A(e) {
|
|
|
2401
2401
|
}
|
|
2402
2402
|
const Dt = /^\[(?:([a-z-]+):)?(.+)\]$/i, ro = /^\d+\/\d+$/, to = /* @__PURE__ */ new Set(["px", "full", "screen"]), no = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, so = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, oo = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, ao = /^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, io = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;
|
|
2403
2403
|
function Le(e) {
|
|
2404
|
-
return
|
|
2404
|
+
return We(e) || to.has(e) || ro.test(e);
|
|
2405
2405
|
}
|
|
2406
|
-
function
|
|
2406
|
+
function Re(e) {
|
|
2407
2407
|
return Ge(e, "length", go);
|
|
2408
2408
|
}
|
|
2409
|
-
function
|
|
2409
|
+
function We(e) {
|
|
2410
2410
|
return !!e && !Number.isNaN(Number(e));
|
|
2411
2411
|
}
|
|
2412
2412
|
function gr(e) {
|
|
2413
|
-
return Ge(e, "number",
|
|
2413
|
+
return Ge(e, "number", We);
|
|
2414
2414
|
}
|
|
2415
2415
|
function tr(e) {
|
|
2416
2416
|
return !!e && Number.isInteger(Number(e));
|
|
2417
2417
|
}
|
|
2418
2418
|
function lo(e) {
|
|
2419
|
-
return e.endsWith("%") &&
|
|
2419
|
+
return e.endsWith("%") && We(e.slice(0, -1));
|
|
2420
2420
|
}
|
|
2421
2421
|
function E(e) {
|
|
2422
2422
|
return Dt.test(e);
|
|
2423
2423
|
}
|
|
2424
|
-
function
|
|
2424
|
+
function Ae(e) {
|
|
2425
2425
|
return no.test(e);
|
|
2426
2426
|
}
|
|
2427
2427
|
const co = /* @__PURE__ */ new Set(["length", "size", "percentage"]);
|
|
@@ -2458,33 +2458,33 @@ function vo(e) {
|
|
|
2458
2458
|
return io.test(e);
|
|
2459
2459
|
}
|
|
2460
2460
|
function xo() {
|
|
2461
|
-
const e = A("colors"), r = A("spacing"), n = A("blur"), t = A("brightness"), s = A("borderColor"), o = A("borderRadius"), a = A("borderSpacing"), l = A("borderWidth"), c = A("contrast"), u = A("grayscale"), f = A("hueRotate"), p = A("invert"), m = A("gap"), b = A("gradientColorStops"), x = A("gradientColorStopPositions"), C = A("inset"), v = A("margin"), w = A("opacity"), j = A("padding"), fe = A("saturate"),
|
|
2461
|
+
const e = A("colors"), r = A("spacing"), n = A("blur"), t = A("brightness"), s = A("borderColor"), o = A("borderRadius"), a = A("borderSpacing"), l = A("borderWidth"), c = A("contrast"), u = A("grayscale"), f = A("hueRotate"), p = A("invert"), m = A("gap"), b = A("gradientColorStops"), x = A("gradientColorStopPositions"), C = A("inset"), v = A("margin"), w = A("opacity"), j = A("padding"), fe = A("saturate"), S = A("scale"), Y = A("sepia"), ke = A("skew"), J = A("space"), Z = A("translate"), X = () => ["auto", "contain", "none"], te = () => ["auto", "hidden", "clip", "visible", "scroll"], ie = () => ["auto", E, r], $ = () => [E, r], O = () => ["", Le, Re], V = () => ["auto", We, E], 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", E], ye = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], me = () => [We, gr], Q = () => [We, E];
|
|
2462
2462
|
return {
|
|
2463
2463
|
cacheSize: 500,
|
|
2464
2464
|
separator: ":",
|
|
2465
2465
|
theme: {
|
|
2466
2466
|
colors: [nr],
|
|
2467
|
-
spacing: [Le,
|
|
2468
|
-
blur: ["none", "",
|
|
2467
|
+
spacing: [Le, Re],
|
|
2468
|
+
blur: ["none", "", Ae, E],
|
|
2469
2469
|
brightness: me(),
|
|
2470
2470
|
borderColor: [e],
|
|
2471
|
-
borderRadius: ["none", "", "full",
|
|
2471
|
+
borderRadius: ["none", "", "full", Ae, E],
|
|
2472
2472
|
borderSpacing: $(),
|
|
2473
|
-
borderWidth:
|
|
2473
|
+
borderWidth: O(),
|
|
2474
2474
|
contrast: me(),
|
|
2475
|
-
grayscale:
|
|
2475
|
+
grayscale: z(),
|
|
2476
2476
|
hueRotate: Q(),
|
|
2477
|
-
invert:
|
|
2477
|
+
invert: z(),
|
|
2478
2478
|
gap: $(),
|
|
2479
2479
|
gradientColorStops: [e],
|
|
2480
|
-
gradientColorStopPositions: [lo,
|
|
2480
|
+
gradientColorStopPositions: [lo, Re],
|
|
2481
2481
|
inset: ie(),
|
|
2482
2482
|
margin: ie(),
|
|
2483
2483
|
opacity: me(),
|
|
2484
2484
|
padding: $(),
|
|
2485
2485
|
saturate: me(),
|
|
2486
2486
|
scale: me(),
|
|
2487
|
-
sepia:
|
|
2487
|
+
sepia: z(),
|
|
2488
2488
|
skew: Q(),
|
|
2489
2489
|
space: $(),
|
|
2490
2490
|
translate: $()
|
|
@@ -2508,7 +2508,7 @@ function xo() {
|
|
|
2508
2508
|
* @see https://tailwindcss.com/docs/columns
|
|
2509
2509
|
*/
|
|
2510
2510
|
columns: [{
|
|
2511
|
-
columns: [
|
|
2511
|
+
columns: [Ae]
|
|
2512
2512
|
}],
|
|
2513
2513
|
/**
|
|
2514
2514
|
* Break After
|
|
@@ -2739,14 +2739,14 @@ function xo() {
|
|
|
2739
2739
|
* @see https://tailwindcss.com/docs/flex-grow
|
|
2740
2740
|
*/
|
|
2741
2741
|
grow: [{
|
|
2742
|
-
grow:
|
|
2742
|
+
grow: z()
|
|
2743
2743
|
}],
|
|
2744
2744
|
/**
|
|
2745
2745
|
* Flex Shrink
|
|
2746
2746
|
* @see https://tailwindcss.com/docs/flex-shrink
|
|
2747
2747
|
*/
|
|
2748
2748
|
shrink: [{
|
|
2749
|
-
shrink:
|
|
2749
|
+
shrink: z()
|
|
2750
2750
|
}],
|
|
2751
2751
|
/**
|
|
2752
2752
|
* Order
|
|
@@ -3092,8 +3092,8 @@ function xo() {
|
|
|
3092
3092
|
*/
|
|
3093
3093
|
"max-w": [{
|
|
3094
3094
|
"max-w": [E, r, "none", "full", "min", "max", "fit", "prose", {
|
|
3095
|
-
screen: [
|
|
3096
|
-
},
|
|
3095
|
+
screen: [Ae]
|
|
3096
|
+
}, Ae]
|
|
3097
3097
|
}],
|
|
3098
3098
|
/**
|
|
3099
3099
|
* Height
|
|
@@ -3129,7 +3129,7 @@ function xo() {
|
|
|
3129
3129
|
* @see https://tailwindcss.com/docs/font-size
|
|
3130
3130
|
*/
|
|
3131
3131
|
"font-size": [{
|
|
3132
|
-
text: ["base",
|
|
3132
|
+
text: ["base", Ae, Re]
|
|
3133
3133
|
}],
|
|
3134
3134
|
/**
|
|
3135
3135
|
* Font Smoothing
|
|
@@ -3197,7 +3197,7 @@ function xo() {
|
|
|
3197
3197
|
* @see https://tailwindcss.com/docs/line-clamp
|
|
3198
3198
|
*/
|
|
3199
3199
|
"line-clamp": [{
|
|
3200
|
-
"line-clamp": ["none",
|
|
3200
|
+
"line-clamp": ["none", We, gr]
|
|
3201
3201
|
}],
|
|
3202
3202
|
/**
|
|
3203
3203
|
* Line Height
|
|
@@ -3280,7 +3280,7 @@ function xo() {
|
|
|
3280
3280
|
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
|
3281
3281
|
*/
|
|
3282
3282
|
"text-decoration-thickness": [{
|
|
3283
|
-
decoration: ["auto", "from-font", Le,
|
|
3283
|
+
decoration: ["auto", "from-font", Le, Re]
|
|
3284
3284
|
}],
|
|
3285
3285
|
/**
|
|
3286
3286
|
* Text Underline Offset
|
|
@@ -3762,7 +3762,7 @@ function xo() {
|
|
|
3762
3762
|
* @see https://tailwindcss.com/docs/outline-width
|
|
3763
3763
|
*/
|
|
3764
3764
|
"outline-w": [{
|
|
3765
|
-
outline: [Le,
|
|
3765
|
+
outline: [Le, Re]
|
|
3766
3766
|
}],
|
|
3767
3767
|
/**
|
|
3768
3768
|
* Outline Color
|
|
@@ -3776,7 +3776,7 @@ function xo() {
|
|
|
3776
3776
|
* @see https://tailwindcss.com/docs/ring-width
|
|
3777
3777
|
*/
|
|
3778
3778
|
"ring-w": [{
|
|
3779
|
-
ring:
|
|
3779
|
+
ring: O()
|
|
3780
3780
|
}],
|
|
3781
3781
|
/**
|
|
3782
3782
|
* Ring Width Inset
|
|
@@ -3802,7 +3802,7 @@ function xo() {
|
|
|
3802
3802
|
* @see https://tailwindcss.com/docs/ring-offset-width
|
|
3803
3803
|
*/
|
|
3804
3804
|
"ring-offset-w": [{
|
|
3805
|
-
"ring-offset": [Le,
|
|
3805
|
+
"ring-offset": [Le, Re]
|
|
3806
3806
|
}],
|
|
3807
3807
|
/**
|
|
3808
3808
|
* Ring Offset Color
|
|
@@ -3817,7 +3817,7 @@ function xo() {
|
|
|
3817
3817
|
* @see https://tailwindcss.com/docs/box-shadow
|
|
3818
3818
|
*/
|
|
3819
3819
|
shadow: [{
|
|
3820
|
-
shadow: ["", "inner", "none",
|
|
3820
|
+
shadow: ["", "inner", "none", Ae, mo]
|
|
3821
3821
|
}],
|
|
3822
3822
|
/**
|
|
3823
3823
|
* Box Shadow Color
|
|
@@ -3882,7 +3882,7 @@ function xo() {
|
|
|
3882
3882
|
* @see https://tailwindcss.com/docs/drop-shadow
|
|
3883
3883
|
*/
|
|
3884
3884
|
"drop-shadow": [{
|
|
3885
|
-
"drop-shadow": ["", "none",
|
|
3885
|
+
"drop-shadow": ["", "none", Ae, E]
|
|
3886
3886
|
}],
|
|
3887
3887
|
/**
|
|
3888
3888
|
* Grayscale
|
|
@@ -4082,21 +4082,21 @@ function xo() {
|
|
|
4082
4082
|
* @see https://tailwindcss.com/docs/scale
|
|
4083
4083
|
*/
|
|
4084
4084
|
scale: [{
|
|
4085
|
-
scale: [
|
|
4085
|
+
scale: [S]
|
|
4086
4086
|
}],
|
|
4087
4087
|
/**
|
|
4088
4088
|
* Scale X
|
|
4089
4089
|
* @see https://tailwindcss.com/docs/scale
|
|
4090
4090
|
*/
|
|
4091
4091
|
"scale-x": [{
|
|
4092
|
-
"scale-x": [
|
|
4092
|
+
"scale-x": [S]
|
|
4093
4093
|
}],
|
|
4094
4094
|
/**
|
|
4095
4095
|
* Scale Y
|
|
4096
4096
|
* @see https://tailwindcss.com/docs/scale
|
|
4097
4097
|
*/
|
|
4098
4098
|
"scale-y": [{
|
|
4099
|
-
"scale-y": [
|
|
4099
|
+
"scale-y": [S]
|
|
4100
4100
|
}],
|
|
4101
4101
|
/**
|
|
4102
4102
|
* Rotate
|
|
@@ -4397,7 +4397,7 @@ function xo() {
|
|
|
4397
4397
|
* @see https://tailwindcss.com/docs/stroke-width
|
|
4398
4398
|
*/
|
|
4399
4399
|
"stroke-w": [{
|
|
4400
|
-
stroke: [Le,
|
|
4400
|
+
stroke: [Le, Re, gr]
|
|
4401
4401
|
}],
|
|
4402
4402
|
/**
|
|
4403
4403
|
* Stroke
|
|
@@ -4473,7 +4473,7 @@ function xo() {
|
|
|
4473
4473
|
}
|
|
4474
4474
|
};
|
|
4475
4475
|
}
|
|
4476
|
-
const
|
|
4476
|
+
const B = /* @__PURE__ */ eo(xo);
|
|
4477
4477
|
function Co() {
|
|
4478
4478
|
return Math.floor(Math.random() * 1e7);
|
|
4479
4479
|
}
|
|
@@ -4561,7 +4561,7 @@ const Bt = (e, r, n, t, s) => {
|
|
|
4561
4561
|
}
|
|
4562
4562
|
),
|
|
4563
4563
|
search: /* @__PURE__ */ i.jsx(
|
|
4564
|
-
|
|
4564
|
+
Ns,
|
|
4565
4565
|
{
|
|
4566
4566
|
width: e,
|
|
4567
4567
|
height: r,
|
|
@@ -4756,7 +4756,7 @@ const Bt = (e, r, n, t, s) => {
|
|
|
4756
4756
|
o
|
|
4757
4757
|
), u = n && c[r] || l[r];
|
|
4758
4758
|
return /* @__PURE__ */ i.jsx(i.Fragment, { children: u });
|
|
4759
|
-
},
|
|
4759
|
+
}, Ne = wo;
|
|
4760
4760
|
Object.keys(Bt()).sort(
|
|
4761
4761
|
(e, r) => e.localeCompare(r)
|
|
4762
4762
|
);
|
|
@@ -4782,7 +4782,7 @@ function ko() {
|
|
|
4782
4782
|
(e = arguments[n]) && (r = Ut(e)) && (t && (t += " "), t += r);
|
|
4783
4783
|
return t;
|
|
4784
4784
|
}
|
|
4785
|
-
const Vr = (...e) =>
|
|
4785
|
+
const Vr = (...e) => B(ko(...e)), Gt = (e, r, n) => {
|
|
4786
4786
|
if (r) {
|
|
4787
4787
|
e.preventDefault();
|
|
4788
4788
|
return;
|
|
@@ -4794,7 +4794,7 @@ const Vr = (...e) => U(ko(...e)), Gt = (e, r, n) => {
|
|
|
4794
4794
|
return;
|
|
4795
4795
|
}
|
|
4796
4796
|
n(e);
|
|
4797
|
-
}, yo =
|
|
4797
|
+
}, yo = F(
|
|
4798
4798
|
[
|
|
4799
4799
|
"preflight",
|
|
4800
4800
|
"!ds-font-sans",
|
|
@@ -4878,7 +4878,7 @@ const Vr = (...e) => U(ko(...e)), Gt = (e, r, n) => {
|
|
|
4878
4878
|
...p,
|
|
4879
4879
|
children: [
|
|
4880
4880
|
/* @__PURE__ */ i.jsx(
|
|
4881
|
-
|
|
4881
|
+
Ne,
|
|
4882
4882
|
{
|
|
4883
4883
|
size: e === "small" ? "small" : a,
|
|
4884
4884
|
name: o != null ? o : "edit",
|
|
@@ -4897,7 +4897,7 @@ const Vr = (...e) => U(ko(...e)), Gt = (e, r, n) => {
|
|
|
4897
4897
|
)
|
|
4898
4898
|
]
|
|
4899
4899
|
}
|
|
4900
|
-
), Kr = jo, Eo =
|
|
4900
|
+
), Kr = jo, Eo = F(
|
|
4901
4901
|
[
|
|
4902
4902
|
"preflight",
|
|
4903
4903
|
"ds-flex",
|
|
@@ -4921,7 +4921,7 @@ const Vr = (...e) => U(ko(...e)), Gt = (e, r, n) => {
|
|
|
4921
4921
|
}
|
|
4922
4922
|
}
|
|
4923
4923
|
}
|
|
4924
|
-
), Lo = (e) =>
|
|
4924
|
+
), Lo = (e) => B(Eo(e)), $o = F("", {
|
|
4925
4925
|
variants: {
|
|
4926
4926
|
variant: {
|
|
4927
4927
|
success: "ds-text-success-green-dark",
|
|
@@ -4930,7 +4930,7 @@ const Vr = (...e) => U(ko(...e)), Gt = (e, r, n) => {
|
|
|
4930
4930
|
error: "ds-text-danger-red-dark"
|
|
4931
4931
|
}
|
|
4932
4932
|
}
|
|
4933
|
-
}), Lt = (e) =>
|
|
4933
|
+
}), Lt = (e) => B($o(e)), To = F("", {
|
|
4934
4934
|
variants: {
|
|
4935
4935
|
variant: {
|
|
4936
4936
|
success: ["ds-text-success-green-darkest", "ds-stroke-success-green-darkest"],
|
|
@@ -4939,7 +4939,7 @@ const Vr = (...e) => U(ko(...e)), Gt = (e, r, n) => {
|
|
|
4939
4939
|
error: ["ds-text-danger-red-darkest", "ds-stroke-danger-red-darkest"]
|
|
4940
4940
|
}
|
|
4941
4941
|
}
|
|
4942
|
-
}), ze = (e) =>
|
|
4942
|
+
}), ze = (e) => B(To(e)), Mo = ({
|
|
4943
4943
|
variant: e = "info",
|
|
4944
4944
|
isDismissible: r = !0,
|
|
4945
4945
|
showIcon: n = !0,
|
|
@@ -5022,7 +5022,7 @@ const Vr = (...e) => U(ko(...e)), Gt = (e, r, n) => {
|
|
|
5022
5022
|
}
|
|
5023
5023
|
) })
|
|
5024
5024
|
] });
|
|
5025
|
-
},
|
|
5025
|
+
}, wl = Mo, Yt = [
|
|
5026
5026
|
"preflight",
|
|
5027
5027
|
// Need to specify the font because disabling preflight makes the button not inherit the font
|
|
5028
5028
|
// Lato is defined as font-sans in our tailwind theme configuration
|
|
@@ -5039,7 +5039,7 @@ const Vr = (...e) => U(ko(...e)), Gt = (e, r, n) => {
|
|
|
5039
5039
|
"focus-visible:ds-ring-2",
|
|
5040
5040
|
"focus-visible:ds-outline-none",
|
|
5041
5041
|
"focus-visible:ds-ring-offset-2"
|
|
5042
|
-
],
|
|
5042
|
+
], No = [
|
|
5043
5043
|
"!ds-bg-neutrals-lighter",
|
|
5044
5044
|
"!ds-text-neutrals-dark",
|
|
5045
5045
|
"!ds-border-neutrals-light",
|
|
@@ -5049,7 +5049,7 @@ const Vr = (...e) => U(ko(...e)), Gt = (e, r, n) => {
|
|
|
5049
5049
|
"!hover:ds-text-neutrals-dark",
|
|
5050
5050
|
"!focus-visible:ds-ring-neutrals-black",
|
|
5051
5051
|
"!focus-visible:ds-border-neutrals-light"
|
|
5052
|
-
],
|
|
5052
|
+
], So = [
|
|
5053
5053
|
...Yt,
|
|
5054
5054
|
"ds-p-1",
|
|
5055
5055
|
"!ds-bg-neutrals-lighter",
|
|
@@ -5060,7 +5060,7 @@ const Vr = (...e) => U(ko(...e)), Gt = (e, r, n) => {
|
|
|
5060
5060
|
"focus-visible:ds-ring-neutrals-black",
|
|
5061
5061
|
"!focus-visible:ds-border-neutrals-light",
|
|
5062
5062
|
"active:ds-border-neutrals-lighter"
|
|
5063
|
-
], Ro =
|
|
5063
|
+
], Ro = F(Yt, {
|
|
5064
5064
|
variants: {
|
|
5065
5065
|
variant: {
|
|
5066
5066
|
primary: [
|
|
@@ -5126,7 +5126,7 @@ const Vr = (...e) => U(ko(...e)), Gt = (e, r, n) => {
|
|
|
5126
5126
|
]
|
|
5127
5127
|
},
|
|
5128
5128
|
disabled: {
|
|
5129
|
-
true:
|
|
5129
|
+
true: No,
|
|
5130
5130
|
false: []
|
|
5131
5131
|
}
|
|
5132
5132
|
},
|
|
@@ -5147,7 +5147,7 @@ const Vr = (...e) => U(ko(...e)), Gt = (e, r, n) => {
|
|
|
5147
5147
|
class: "focus-visible:ds-ring-neutrals-black"
|
|
5148
5148
|
}
|
|
5149
5149
|
]
|
|
5150
|
-
}), Ao = (e, r, n) => e === "inline" && r === !0 ? Vr(
|
|
5150
|
+
}), Ao = (e, r, n) => e === "inline" && r === !0 ? Vr(So) : Vr(Ro({ variant: e, disabled: r }), n), Po = ({
|
|
5151
5151
|
variant: e = "primary",
|
|
5152
5152
|
text: r,
|
|
5153
5153
|
label: n = "",
|
|
@@ -5169,7 +5169,7 @@ const Vr = (...e) => U(ko(...e)), Gt = (e, r, n) => {
|
|
|
5169
5169
|
...f,
|
|
5170
5170
|
children: /* @__PURE__ */ i.jsxs("div", { className: "ds-flex ds-flex-wrap ds-content-center ds-justify-center", children: [
|
|
5171
5171
|
c && /* @__PURE__ */ i.jsx(
|
|
5172
|
-
|
|
5172
|
+
Ne,
|
|
5173
5173
|
{
|
|
5174
5174
|
size: "small",
|
|
5175
5175
|
name: a != null ? a : "edit",
|
|
@@ -5180,7 +5180,7 @@ const Vr = (...e) => U(ko(...e)), Gt = (e, r, n) => {
|
|
|
5180
5180
|
),
|
|
5181
5181
|
/* @__PURE__ */ i.jsx("span", { children: r }),
|
|
5182
5182
|
u && /* @__PURE__ */ i.jsx(
|
|
5183
|
-
|
|
5183
|
+
Ne,
|
|
5184
5184
|
{
|
|
5185
5185
|
size: "small",
|
|
5186
5186
|
name: a != null ? a : "edit",
|
|
@@ -5191,7 +5191,7 @@ const Vr = (...e) => U(ko(...e)), Gt = (e, r, n) => {
|
|
|
5191
5191
|
)
|
|
5192
5192
|
] })
|
|
5193
5193
|
}
|
|
5194
|
-
) }),
|
|
5194
|
+
) }), kl = Po, Fo = ({
|
|
5195
5195
|
content: e = void 0,
|
|
5196
5196
|
iconName: r = void 0,
|
|
5197
5197
|
title: n = "",
|
|
@@ -5202,14 +5202,14 @@ const Vr = (...e) => U(ko(...e)), Gt = (e, r, n) => {
|
|
|
5202
5202
|
"div",
|
|
5203
5203
|
{
|
|
5204
5204
|
...o,
|
|
5205
|
-
className:
|
|
5205
|
+
className: B(
|
|
5206
5206
|
"preflight ds-flex ds-flex-col ds-items-start ds-gap-6 ds-rounded-lg ds-border ds-border-neutrals-light ds-p-5",
|
|
5207
5207
|
s
|
|
5208
5208
|
),
|
|
5209
5209
|
children: [
|
|
5210
5210
|
n && /* @__PURE__ */ i.jsxs("div", { className: "ds-flex ds-flex-row ds-items-center ds-gap-3", children: [
|
|
5211
5211
|
r && /* @__PURE__ */ i.jsx(
|
|
5212
|
-
|
|
5212
|
+
Ne,
|
|
5213
5213
|
{
|
|
5214
5214
|
size: "medium",
|
|
5215
5215
|
name: r,
|
|
@@ -5224,7 +5224,7 @@ const Vr = (...e) => U(ko(...e)), Gt = (e, r, n) => {
|
|
|
5224
5224
|
t && /* @__PURE__ */ i.jsx("div", { children: t })
|
|
5225
5225
|
]
|
|
5226
5226
|
}
|
|
5227
|
-
),
|
|
5227
|
+
), yl = Fo, Oo = F(
|
|
5228
5228
|
[
|
|
5229
5229
|
"preflight",
|
|
5230
5230
|
"ds-h-4",
|
|
@@ -5252,7 +5252,7 @@ const Vr = (...e) => U(ko(...e)), Gt = (e, r, n) => {
|
|
|
5252
5252
|
}
|
|
5253
5253
|
}
|
|
5254
5254
|
}
|
|
5255
|
-
), Zt = (e) =>
|
|
5255
|
+
), Zt = (e) => B(Oo(e)), _o = F(
|
|
5256
5256
|
["preflight", "ds-font-base", "!ds-font-sans", "ds-ml-2", "ds-text-base"],
|
|
5257
5257
|
{
|
|
5258
5258
|
variants: {
|
|
@@ -5262,7 +5262,7 @@ const Vr = (...e) => U(ko(...e)), Gt = (e, r, n) => {
|
|
|
5262
5262
|
}
|
|
5263
5263
|
}
|
|
5264
5264
|
}
|
|
5265
|
-
), qt = (e) =>
|
|
5265
|
+
), qt = (e) => B(_o(e)), Jr = {
|
|
5266
5266
|
variants: {
|
|
5267
5267
|
state: {
|
|
5268
5268
|
default: [
|
|
@@ -5330,7 +5330,7 @@ const Vr = (...e) => U(ko(...e)), Gt = (e, r, n) => {
|
|
|
5330
5330
|
}
|
|
5331
5331
|
),
|
|
5332
5332
|
/* @__PURE__ */ i.jsx("label", { htmlFor: e, className: qt({ disabled: s }), children: r })
|
|
5333
|
-
] }),
|
|
5333
|
+
] }), jl = Wo, De = "large", Ye = "medium", Ze = "small", qe = "extra-large", $t = "h1", Io = "h2", Vo = "h3", Do = "div";
|
|
5334
5334
|
function Ho(e) {
|
|
5335
5335
|
return {
|
|
5336
5336
|
[De]: $t,
|
|
@@ -5339,7 +5339,7 @@ function Ho(e) {
|
|
|
5339
5339
|
[qe]: Do
|
|
5340
5340
|
}[e] || $t;
|
|
5341
5341
|
}
|
|
5342
|
-
const Bo =
|
|
5342
|
+
const Bo = F("preflight !ds-font-sans", {
|
|
5343
5343
|
variants: {
|
|
5344
5344
|
size: {
|
|
5345
5345
|
[Ze]: "ds-mb-3",
|
|
@@ -5348,7 +5348,7 @@ const Bo = W("preflight !ds-font-sans", {
|
|
|
5348
5348
|
[qe]: "ds-mb-6"
|
|
5349
5349
|
}
|
|
5350
5350
|
}
|
|
5351
|
-
}), br =
|
|
5351
|
+
}), br = F("ds-text-neutrals-darker !ds-font-sans", {
|
|
5352
5352
|
variants: {
|
|
5353
5353
|
size: {
|
|
5354
5354
|
[Ze]: "ds-text-xl ds-font-semibold",
|
|
@@ -5357,7 +5357,7 @@ const Bo = W("preflight !ds-font-sans", {
|
|
|
5357
5357
|
[qe]: "ds-text-4xl ds-font-semibold"
|
|
5358
5358
|
}
|
|
5359
5359
|
}
|
|
5360
|
-
}), zo =
|
|
5360
|
+
}), zo = F("ds-mt-0 ds-font-bold ds-text-neutrals-dark", {
|
|
5361
5361
|
variants: {
|
|
5362
5362
|
size: {
|
|
5363
5363
|
[Ze]: "ds-mb-1 ds-text-sm",
|
|
@@ -5366,7 +5366,7 @@ const Bo = W("preflight !ds-font-sans", {
|
|
|
5366
5366
|
[qe]: "ds-mb-3 ds-text-base"
|
|
5367
5367
|
}
|
|
5368
5368
|
}
|
|
5369
|
-
}), Uo =
|
|
5369
|
+
}), Uo = F("ds-mb-0 ds-text-neutrals-dark", {
|
|
5370
5370
|
variants: {
|
|
5371
5371
|
size: {
|
|
5372
5372
|
[Ze]: "ds-mt-1 ds-text-base",
|
|
@@ -5375,7 +5375,7 @@ const Bo = W("preflight !ds-font-sans", {
|
|
|
5375
5375
|
[qe]: "ds-mt-3 ds-text-base"
|
|
5376
5376
|
}
|
|
5377
5377
|
}
|
|
5378
|
-
}), Go =
|
|
5378
|
+
}), Go = F("ds-text-neutrals-light", {
|
|
5379
5379
|
variants: {
|
|
5380
5380
|
size: {
|
|
5381
5381
|
[Ze]: "ds-mt-2",
|
|
@@ -5401,7 +5401,7 @@ const Bo = W("preflight !ds-font-sans", {
|
|
|
5401
5401
|
h2: /* @__PURE__ */ i.jsx("h2", { className: br({ size: e }), children: n }),
|
|
5402
5402
|
h1: /* @__PURE__ */ i.jsx("h1", { className: br({ size: e }), children: n })
|
|
5403
5403
|
};
|
|
5404
|
-
return /* @__PURE__ */ i.jsxs("div", { className:
|
|
5404
|
+
return /* @__PURE__ */ i.jsxs("div", { className: B(m, r), ...c, children: [
|
|
5405
5405
|
u,
|
|
5406
5406
|
b[l || Ho(e)],
|
|
5407
5407
|
f,
|
|
@@ -5432,7 +5432,7 @@ const Bo = W("preflight !ds-font-sans", {
|
|
|
5432
5432
|
}
|
|
5433
5433
|
),
|
|
5434
5434
|
/* @__PURE__ */ i.jsx("label", { htmlFor: n, className: qt({ disabled: t }), children: e })
|
|
5435
|
-
] }),
|
|
5435
|
+
] }), El = Zo, qo = F(
|
|
5436
5436
|
[
|
|
5437
5437
|
"preflight",
|
|
5438
5438
|
"!ds-font-sans",
|
|
@@ -5471,10 +5471,10 @@ const Bo = W("preflight !ds-font-sans", {
|
|
|
5471
5471
|
type: n = "default",
|
|
5472
5472
|
iconName: t,
|
|
5473
5473
|
...s
|
|
5474
|
-
}) => /* @__PURE__ */ i.jsxs("a", { href: r, type: n, className:
|
|
5474
|
+
}) => /* @__PURE__ */ i.jsxs("a", { href: r, type: n, className: B(qo({ type: n })), ...s, children: [
|
|
5475
5475
|
e,
|
|
5476
|
-
t && /* @__PURE__ */ i.jsx(
|
|
5477
|
-
] }),
|
|
5476
|
+
t && /* @__PURE__ */ i.jsx(Ne, { altText: e, name: t, size: "small" })
|
|
5477
|
+
] }), Ll = Ko;
|
|
5478
5478
|
var Jo = Object.defineProperty, Xo = (e, r, n) => r in e ? Jo(e, r, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[r] = n, Pr = (e, r, n) => (Xo(e, typeof r != "symbol" ? r + "" : r, n), n);
|
|
5479
5479
|
let Qo = class {
|
|
5480
5480
|
constructor() {
|
|
@@ -5504,16 +5504,16 @@ let Qo = class {
|
|
|
5504
5504
|
get isHandoffComplete() {
|
|
5505
5505
|
return this.handoffState === "complete";
|
|
5506
5506
|
}
|
|
5507
|
-
},
|
|
5507
|
+
}, Ve = new Qo();
|
|
5508
5508
|
function Xr(e) {
|
|
5509
|
-
return
|
|
5509
|
+
return Ve.isServer ? null : e instanceof Node ? e.ownerDocument : e != null && e.hasOwnProperty("current") && e.current instanceof Node ? e.current.ownerDocument : document;
|
|
5510
5510
|
}
|
|
5511
5511
|
function Er(e) {
|
|
5512
5512
|
typeof queueMicrotask == "function" ? queueMicrotask(e) : Promise.resolve().then(e).catch((r) => setTimeout(() => {
|
|
5513
5513
|
throw r;
|
|
5514
5514
|
}));
|
|
5515
5515
|
}
|
|
5516
|
-
function
|
|
5516
|
+
function _e() {
|
|
5517
5517
|
let e = [], r = { addEventListener(n, t, s, o) {
|
|
5518
5518
|
return n.addEventListener(t, s, o), r.add(() => n.removeEventListener(t, s, o));
|
|
5519
5519
|
}, requestAnimationFrame(...n) {
|
|
@@ -5537,7 +5537,7 @@ function Oe() {
|
|
|
5537
5537
|
Object.assign(n.style, { [t]: o });
|
|
5538
5538
|
});
|
|
5539
5539
|
}, group(n) {
|
|
5540
|
-
let t =
|
|
5540
|
+
let t = _e();
|
|
5541
5541
|
return n(t), this.add(() => t.dispose());
|
|
5542
5542
|
}, add(n) {
|
|
5543
5543
|
return e.includes(n) || e.push(n), () => {
|
|
@@ -5553,11 +5553,11 @@ function Oe() {
|
|
|
5553
5553
|
return r;
|
|
5554
5554
|
}
|
|
5555
5555
|
function Qr() {
|
|
5556
|
-
let [e] = ge(
|
|
5556
|
+
let [e] = ge(_e);
|
|
5557
5557
|
return oe(() => () => e.dispose(), [e]), e;
|
|
5558
5558
|
}
|
|
5559
5559
|
let K = (e, r) => {
|
|
5560
|
-
|
|
5560
|
+
Ve.isServer ? oe(e, r) : Dn(e, r);
|
|
5561
5561
|
};
|
|
5562
5562
|
function Ce(e) {
|
|
5563
5563
|
let r = R(e);
|
|
@@ -5575,15 +5575,15 @@ function ra() {
|
|
|
5575
5575
|
function ar(...e) {
|
|
5576
5576
|
return Array.from(new Set(e.flatMap((r) => typeof r == "string" ? r.split(" ") : []))).filter(Boolean).join(" ");
|
|
5577
5577
|
}
|
|
5578
|
-
function
|
|
5578
|
+
function U(e, r, ...n) {
|
|
5579
5579
|
if (e in r) {
|
|
5580
5580
|
let s = r[e];
|
|
5581
5581
|
return typeof s == "function" ? s(...n) : s;
|
|
5582
5582
|
}
|
|
5583
5583
|
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(", ")}.`);
|
|
5584
|
-
throw Error.captureStackTrace && Error.captureStackTrace(t,
|
|
5584
|
+
throw Error.captureStackTrace && Error.captureStackTrace(t, U), t;
|
|
5585
5585
|
}
|
|
5586
|
-
var Cr = ((e) => (e[e.None = 0] = "None", e[e.RenderStrategy = 1] = "RenderStrategy", e[e.Static = 2] = "Static", e))(Cr || {}),
|
|
5586
|
+
var Cr = ((e) => (e[e.None = 0] = "None", e[e.RenderStrategy = 1] = "RenderStrategy", e[e.Static = 2] = "Static", e))(Cr || {}), Oe = ((e) => (e[e.Unmount = 0] = "Unmount", e[e.Hidden = 1] = "Hidden", e))(Oe || {});
|
|
5587
5587
|
function be({ ourProps: e, theirProps: r, slot: n, defaultTag: t, features: s, visible: o = !0, name: a, mergeRefs: l }) {
|
|
5588
5588
|
l = l != null ? l : ta;
|
|
5589
5589
|
let c = Jt(r, e);
|
|
@@ -5597,7 +5597,7 @@ function be({ ourProps: e, theirProps: r, slot: n, defaultTag: t, features: s, v
|
|
|
5597
5597
|
}
|
|
5598
5598
|
if (u & 1) {
|
|
5599
5599
|
let { unmount: f = !0, ...p } = c;
|
|
5600
|
-
return
|
|
5600
|
+
return U(f ? 0 : 1, { 0() {
|
|
5601
5601
|
return null;
|
|
5602
5602
|
}, 1() {
|
|
5603
5603
|
return vr({ ...p, hidden: !0, style: { display: "none" } }, n, t, a, l);
|
|
@@ -5765,7 +5765,7 @@ function ma({ allowed: e, disallowed: r } = {}, n = !0) {
|
|
|
5765
5765
|
var t, s;
|
|
5766
5766
|
if (!n)
|
|
5767
5767
|
return;
|
|
5768
|
-
let o =
|
|
5768
|
+
let o = _e();
|
|
5769
5769
|
for (let l of (t = r == null ? void 0 : r()) != null ? t : [])
|
|
5770
5770
|
l && o.add(Tt(l));
|
|
5771
5771
|
let a = (s = e == null ? void 0 : e()) != null ? s : [];
|
|
@@ -5796,7 +5796,7 @@ function rn(e, r, n = !0) {
|
|
|
5796
5796
|
let s = e === null ? null : e instanceof HTMLElement ? e : e.current;
|
|
5797
5797
|
if (!s)
|
|
5798
5798
|
return;
|
|
5799
|
-
let o =
|
|
5799
|
+
let o = _e();
|
|
5800
5800
|
if (typeof ResizeObserver != "undefined") {
|
|
5801
5801
|
let a = new ResizeObserver(() => t.current(s));
|
|
5802
5802
|
a.observe(s), o.add(() => a.disconnect());
|
|
@@ -5819,7 +5819,7 @@ function xa(e = document.body) {
|
|
|
5819
5819
|
var tn = ((e) => (e[e.Strict = 0] = "Strict", e[e.Loose = 1] = "Loose", e))(tn || {});
|
|
5820
5820
|
function Ca(e, r = 0) {
|
|
5821
5821
|
var n;
|
|
5822
|
-
return e === ((n = Xr(e)) == null ? void 0 : n.body) ? !1 :
|
|
5822
|
+
return e === ((n = Xr(e)) == null ? void 0 : n.body) ? !1 : U(r, { 0() {
|
|
5823
5823
|
return e.matches(Br);
|
|
5824
5824
|
}, 1() {
|
|
5825
5825
|
let t = e;
|
|
@@ -5980,7 +5980,7 @@ function Ma(e, r) {
|
|
|
5980
5980
|
a && (n = a, t.forEach((l) => l()));
|
|
5981
5981
|
} };
|
|
5982
5982
|
}
|
|
5983
|
-
function
|
|
5983
|
+
function Na() {
|
|
5984
5984
|
let e;
|
|
5985
5985
|
return { before({ doc: r }) {
|
|
5986
5986
|
var n;
|
|
@@ -5991,7 +5991,7 @@ function Sa() {
|
|
|
5991
5991
|
n.style(t, "paddingRight", `${o}px`);
|
|
5992
5992
|
} };
|
|
5993
5993
|
}
|
|
5994
|
-
function
|
|
5994
|
+
function Sa() {
|
|
5995
5995
|
return nn() ? { before({ doc: e, d: r, meta: n }) {
|
|
5996
5996
|
function t(s) {
|
|
5997
5997
|
return n.containers.flatMap((o) => o()).some((o) => o.contains(s));
|
|
@@ -5999,7 +5999,7 @@ function Na() {
|
|
|
5999
5999
|
r.microTask(() => {
|
|
6000
6000
|
var s;
|
|
6001
6001
|
if (window.getComputedStyle(e.documentElement).scrollBehavior !== "auto") {
|
|
6002
|
-
let l =
|
|
6002
|
+
let l = _e();
|
|
6003
6003
|
l.style(e.documentElement, "scrollBehavior", "auto"), r.add(() => r.microTask(() => l.dispose()));
|
|
6004
6004
|
}
|
|
6005
6005
|
let o = (s = window.scrollY) != null ? s : window.pageYOffset, a = null;
|
|
@@ -6053,35 +6053,35 @@ function Aa(e) {
|
|
|
6053
6053
|
Object.assign(r, n(r));
|
|
6054
6054
|
return r;
|
|
6055
6055
|
}
|
|
6056
|
-
let
|
|
6056
|
+
let Ie = Ma(() => /* @__PURE__ */ new Map(), { PUSH(e, r) {
|
|
6057
6057
|
var n;
|
|
6058
|
-
let t = (n = this.get(e)) != null ? n : { doc: e, count: 0, d:
|
|
6058
|
+
let t = (n = this.get(e)) != null ? n : { doc: e, count: 0, d: _e(), meta: /* @__PURE__ */ new Set() };
|
|
6059
6059
|
return t.count++, t.meta.add(r), this.set(e, t), this;
|
|
6060
6060
|
}, POP(e, r) {
|
|
6061
6061
|
let n = this.get(e);
|
|
6062
6062
|
return n && (n.count--, n.meta.delete(r)), this;
|
|
6063
6063
|
}, SCROLL_PREVENT({ doc: e, d: r, meta: n }) {
|
|
6064
|
-
let t = { doc: e, d: r, meta: Aa(n) }, s = [
|
|
6064
|
+
let t = { doc: e, d: r, meta: Aa(n) }, s = [Sa(), Na(), Ra()];
|
|
6065
6065
|
s.forEach(({ before: o }) => o == null ? void 0 : o(t)), s.forEach(({ after: o }) => o == null ? void 0 : o(t));
|
|
6066
6066
|
}, SCROLL_ALLOW({ d: e }) {
|
|
6067
6067
|
e.dispose();
|
|
6068
6068
|
}, TEARDOWN({ doc: e }) {
|
|
6069
6069
|
this.delete(e);
|
|
6070
6070
|
} });
|
|
6071
|
-
|
|
6072
|
-
let e =
|
|
6071
|
+
Ie.subscribe(() => {
|
|
6072
|
+
let e = Ie.getSnapshot(), r = /* @__PURE__ */ new Map();
|
|
6073
6073
|
for (let [n] of e)
|
|
6074
6074
|
r.set(n, n.documentElement.style.overflow);
|
|
6075
6075
|
for (let n of e.values()) {
|
|
6076
6076
|
let t = r.get(n.doc) === "hidden", s = n.count !== 0;
|
|
6077
|
-
(s && !t || !s && t) &&
|
|
6077
|
+
(s && !t || !s && t) && Ie.dispatch(n.count > 0 ? "SCROLL_PREVENT" : "SCROLL_ALLOW", n), n.count === 0 && Ie.dispatch("TEARDOWN", n);
|
|
6078
6078
|
}
|
|
6079
6079
|
});
|
|
6080
6080
|
function Pa(e, r, n = () => ({ containers: [] })) {
|
|
6081
|
-
let t = Ta(
|
|
6081
|
+
let t = Ta(Ie), s = e ? t.get(e) : void 0, o = s ? s.count > 0 : !1;
|
|
6082
6082
|
return K(() => {
|
|
6083
6083
|
if (!(!e || !r))
|
|
6084
|
-
return
|
|
6084
|
+
return Ie.dispatch("PUSH", e, n), () => Ie.dispatch("POP", e, n);
|
|
6085
6085
|
}, [r, e]), o;
|
|
6086
6086
|
}
|
|
6087
6087
|
function Fa(e, r, n = () => [document.body]) {
|
|
@@ -6116,10 +6116,10 @@ function _a(e) {
|
|
|
6116
6116
|
}
|
|
6117
6117
|
typeof window != "undefined" && typeof document != "undefined" && (document.addEventListener("DOMContentLoaded", r), r());
|
|
6118
6118
|
}
|
|
6119
|
-
let
|
|
6119
|
+
let Fe = [];
|
|
6120
6120
|
_a(() => {
|
|
6121
6121
|
function e(r) {
|
|
6122
|
-
r.target instanceof HTMLElement && r.target !== document.body &&
|
|
6122
|
+
r.target instanceof HTMLElement && r.target !== document.body && Fe[0] !== r.target && (Fe.unshift(r.target), Fe = Fe.filter((n) => n != null && n.isConnected), Fe.splice(10));
|
|
6123
6123
|
}
|
|
6124
6124
|
window.addEventListener("click", e, { capture: !0 }), window.addEventListener("mousedown", e, { capture: !0 }), window.addEventListener("focus", e, { capture: !0 }), document.body.addEventListener("click", e, { capture: !0 }), document.body.addEventListener("mousedown", e, { capture: !0 }), document.body.addEventListener("focus", e, { capture: !0 });
|
|
6125
6125
|
});
|
|
@@ -6137,16 +6137,16 @@ function Wa() {
|
|
|
6137
6137
|
}, () => !1, () => !e) : !1;
|
|
6138
6138
|
}
|
|
6139
6139
|
function cr() {
|
|
6140
|
-
let e = Wa(), [r, n] = or.useState(
|
|
6141
|
-
return r &&
|
|
6140
|
+
let e = Wa(), [r, n] = or.useState(Ve.isHandoffComplete);
|
|
6141
|
+
return r && Ve.isHandoffComplete === !1 && n(!1), or.useEffect(() => {
|
|
6142
6142
|
r !== !0 && n(!0);
|
|
6143
|
-
}, [r]), or.useEffect(() =>
|
|
6143
|
+
}, [r]), or.useEffect(() => Ve.handoff(), []), e ? !1 : r;
|
|
6144
6144
|
}
|
|
6145
6145
|
let ln = ce(!1);
|
|
6146
6146
|
function Ia() {
|
|
6147
6147
|
return re(ln);
|
|
6148
6148
|
}
|
|
6149
|
-
function
|
|
6149
|
+
function Nt(e) {
|
|
6150
6150
|
return k.createElement(ln.Provider, { value: e.force }, e.children);
|
|
6151
6151
|
}
|
|
6152
6152
|
function Va(e) {
|
|
@@ -6154,7 +6154,7 @@ function Va(e) {
|
|
|
6154
6154
|
var a;
|
|
6155
6155
|
if (!r && n !== null)
|
|
6156
6156
|
return (a = n.current) != null ? a : null;
|
|
6157
|
-
if (
|
|
6157
|
+
if (Ve.isServer)
|
|
6158
6158
|
return null;
|
|
6159
6159
|
let l = t == null ? void 0 : t.getElementById("headlessui-portal-root");
|
|
6160
6160
|
if (l)
|
|
@@ -6175,7 +6175,7 @@ let dn = de, Da = ue(function(e, r) {
|
|
|
6175
6175
|
t.current = f;
|
|
6176
6176
|
}), r), o = dr(t), a = Va(t), [l] = ge(() => {
|
|
6177
6177
|
var f;
|
|
6178
|
-
return
|
|
6178
|
+
return Ve.isServer ? null : (f = o == null ? void 0 : o.createElement("div")) != null ? f : null;
|
|
6179
6179
|
}), c = re(Ur), u = cr();
|
|
6180
6180
|
return K(() => {
|
|
6181
6181
|
!a || !l || a.contains(l) || (l.setAttribute("data-headlessui-portal", ""), a.appendChild(l));
|
|
@@ -6206,7 +6206,7 @@ function Ua() {
|
|
|
6206
6206
|
return k.createElement(Ur.Provider, { value: s }, o);
|
|
6207
6207
|
}, [s])];
|
|
6208
6208
|
}
|
|
6209
|
-
let Ga = ue(Ha), Ya = ue(za),
|
|
6209
|
+
let Ga = ue(Ha), Ya = ue(za), St = Object.assign(Ga, { Group: Ya });
|
|
6210
6210
|
function Za() {
|
|
6211
6211
|
var e;
|
|
6212
6212
|
let [r] = ge(() => typeof window != "undefined" && typeof window.matchMedia == "function" ? window.matchMedia("(pointer: coarse)") : null), [n, t] = ge((e = r == null ? void 0 : r.matches) != null ? e : !1);
|
|
@@ -6290,7 +6290,7 @@ function ei(e, r) {
|
|
|
6290
6290
|
let p = Xa(), m = P((v) => {
|
|
6291
6291
|
let w = n.current;
|
|
6292
6292
|
w && ((j) => j())(() => {
|
|
6293
|
-
|
|
6293
|
+
U(p.current, { [sr.Forwards]: () => {
|
|
6294
6294
|
lr(w, Te.First, { skipElements: [v.relatedTarget, o] });
|
|
6295
6295
|
}, [sr.Backwards]: () => {
|
|
6296
6296
|
lr(w, Te.Last, { skipElements: [v.relatedTarget, o] });
|
|
@@ -6306,18 +6306,18 @@ function ei(e, r) {
|
|
|
6306
6306
|
let w = un(a);
|
|
6307
6307
|
n.current instanceof HTMLElement && w.add(n.current);
|
|
6308
6308
|
let j = v.relatedTarget;
|
|
6309
|
-
j instanceof HTMLElement && j.dataset.headlessuiFocusGuard !== "true" && (fn(w, j) || (x.current ? lr(n.current,
|
|
6309
|
+
j instanceof HTMLElement && j.dataset.headlessuiFocusGuard !== "true" && (fn(w, j) || (x.current ? lr(n.current, U(p.current, { [sr.Forwards]: () => Te.Next, [sr.Backwards]: () => Te.Previous }) | Te.WrapAround, { relativeTo: v.target }) : v.target instanceof HTMLElement && Me(v.target)));
|
|
6310
6310
|
} };
|
|
6311
6311
|
return k.createElement(k.Fragment, null, !!(l & 4) && k.createElement(Dr, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: m, features: wr.Focusable }), be({ ourProps: C, theirProps: c, defaultTag: Qa, name: "FocusTrap" }), !!(l & 4) && k.createElement(Dr, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: m, features: wr.Focusable }));
|
|
6312
6312
|
}
|
|
6313
6313
|
let ri = ue(ei), ti = Object.assign(ri, { features: $e });
|
|
6314
6314
|
function ni(e = !0) {
|
|
6315
|
-
let r = R(
|
|
6315
|
+
let r = R(Fe.slice());
|
|
6316
6316
|
return rt(([n], [t]) => {
|
|
6317
6317
|
t === !0 && n === !1 && Er(() => {
|
|
6318
6318
|
r.current.splice(0);
|
|
6319
|
-
}), t === !1 && n === !0 && (r.current =
|
|
6320
|
-
}, [e,
|
|
6319
|
+
}), t === !1 && n === !0 && (r.current = Fe.slice());
|
|
6320
|
+
}, [e, Fe, r]), P(() => {
|
|
6321
6321
|
var n;
|
|
6322
6322
|
return (n = r.current.find((t) => t != null && t.isConnected)) != null ? n : null;
|
|
6323
6323
|
});
|
|
@@ -6401,7 +6401,7 @@ function ot(e) {
|
|
|
6401
6401
|
return r;
|
|
6402
6402
|
}
|
|
6403
6403
|
function ci(e, r) {
|
|
6404
|
-
return
|
|
6404
|
+
return U(r.type, di, e, r);
|
|
6405
6405
|
}
|
|
6406
6406
|
let ui = "div", fi = Cr.RenderStrategy | Cr.Static;
|
|
6407
6407
|
function pi(e, r) {
|
|
@@ -6422,27 +6422,27 @@ function pi(e, r) {
|
|
|
6422
6422
|
throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${s}`);
|
|
6423
6423
|
if (typeof o != "function")
|
|
6424
6424
|
throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${o}`);
|
|
6425
|
-
let
|
|
6426
|
-
var
|
|
6427
|
-
return (
|
|
6428
|
-
} }, { resolveContainers: G, mainTreeNodeRef: pe, MainTreeNode: ve } = qa({ portals: $, defaultContainers: [V] }), he = te ? "parent" : "leaf",
|
|
6425
|
+
let S = s ? 0 : 1, [Y, ke] = Yn(ci, { titleId: null, descriptionId: null, panelRef: Zn() }), J = P(() => o(!1)), Z = P((_) => ke({ type: 0, id: _ })), X = cr() ? S === 0 : !1, te = p > 1, ie = re(kr) !== null, [$, O] = Ua(), V = { get current() {
|
|
6426
|
+
var _;
|
|
6427
|
+
return (_ = Y.panelRef.current) != null ? _ : C.current;
|
|
6428
|
+
} }, { resolveContainers: G, mainTreeNodeRef: pe, MainTreeNode: ve } = qa({ portals: $, defaultContainers: [V] }), he = te ? "parent" : "leaf", z = x !== null ? (x & se.Closing) === se.Closing : !1, ye = te || z ? !1 : X;
|
|
6429
6429
|
ma({ allowed: P(() => {
|
|
6430
|
-
var
|
|
6431
|
-
return [(xe = (
|
|
6430
|
+
var _, xe;
|
|
6431
|
+
return [(xe = (_ = C.current) == null ? void 0 : _.closest("[data-headlessui-portal]")) != null ? xe : null];
|
|
6432
6432
|
}), disallowed: P(() => {
|
|
6433
|
-
var
|
|
6434
|
-
return [(xe = (
|
|
6435
|
-
}) }, u ? !1 : ye), $a(G, (
|
|
6436
|
-
|
|
6433
|
+
var _, xe;
|
|
6434
|
+
return [(xe = (_ = pe.current) == null ? void 0 : _.closest("body > *:not(#headlessui-portal-root)")) != null ? xe : null];
|
|
6435
|
+
}) }, u ? !1 : ye), $a(G, (_) => {
|
|
6436
|
+
_.preventDefault(), J();
|
|
6437
6437
|
}, !(!X || te));
|
|
6438
|
-
let Q = !(te ||
|
|
6439
|
-
on(w == null ? void 0 : w.defaultView, "keydown", (
|
|
6440
|
-
Q && (
|
|
6441
|
-
}), Fa(w, u ? !1 : !(
|
|
6442
|
-
let [ne, Ke] = la(), ee = ae(() => [{ dialogState:
|
|
6443
|
-
return c && (je |= $e.AutoFocus), Je || (je &= ~$e.InitialFocus), u && (je = $e.None), k.createElement(Ja, { type: "Dialog", enabled:
|
|
6444
|
-
xe === "Dialog" &&
|
|
6445
|
-
}) }, k.createElement(
|
|
6438
|
+
let Q = !(te || S !== 0);
|
|
6439
|
+
on(w == null ? void 0 : w.defaultView, "keydown", (_) => {
|
|
6440
|
+
Q && (_.defaultPrevented || _.key === en.Escape && (_.preventDefault(), _.stopPropagation(), J()));
|
|
6441
|
+
}), Fa(w, u ? !1 : !(z || S !== 0 || ie), G), rn(C, J, S === 0);
|
|
6442
|
+
let [ne, Ke] = la(), ee = ae(() => [{ dialogState: S, close: J, setTitleId: Z }, Y], [S, Y, J, Z]), D = ae(() => ({ open: S === 0 }), [S]), H = { ref: v, id: t, role: l, tabIndex: -1, "aria-modal": S === 0 ? !0 : void 0, "aria-labelledby": Y.titleId, "aria-describedby": ne }, Je = !Za(), je = X ? U(he, { parent: $e.RestoreFocus, leaf: $e.All & ~$e.FocusLock }) : $e.None;
|
|
6443
|
+
return c && (je |= $e.AutoFocus), Je || (je &= ~$e.InitialFocus), u && (je = $e.None), k.createElement(Ja, { type: "Dialog", enabled: S === 0, element: C, onUpdate: P((_, xe) => {
|
|
6444
|
+
xe === "Dialog" && U(_, { [Gr.Add]: () => m((Xe) => Xe + 1), [Gr.Remove]: () => m((Xe) => Xe - 1) });
|
|
6445
|
+
}) }, k.createElement(Nt, { force: !0 }, k.createElement(St, null, k.createElement(kr.Provider, { value: ee }, k.createElement(St.Group, { target: C }, k.createElement(Nt, { force: !1 }, k.createElement(Ke, { slot: D, name: "Dialog.Description" }, k.createElement(O, null, k.createElement(ti, { initialFocus: a, initialFocusFallback: C, containers: G, features: je }, k.createElement(ha, { value: J }, be({ ourProps: H, theirProps: f, slot: D, defaultTag: ui, features: fi, visible: S === 0, name: "Dialog" })))))))))), k.createElement(aa, null, k.createElement(ve, null)));
|
|
6446
6446
|
}
|
|
6447
6447
|
let hi = "div";
|
|
6448
6448
|
function mi(e, r) {
|
|
@@ -6483,7 +6483,7 @@ function _r(e, ...r) {
|
|
|
6483
6483
|
e && r.length > 0 && e.classList.remove(...r);
|
|
6484
6484
|
}
|
|
6485
6485
|
function ki(e, r) {
|
|
6486
|
-
let n = hn(r), t =
|
|
6486
|
+
let n = hn(r), t = _e();
|
|
6487
6487
|
if (!e)
|
|
6488
6488
|
return t.dispose;
|
|
6489
6489
|
let { transitionDuration: s, transitionDelay: o } = getComputedStyle(e), [a, l] = [s, o].map((u) => {
|
|
@@ -6509,10 +6509,10 @@ function ki(e, r) {
|
|
|
6509
6509
|
return t.dispose;
|
|
6510
6510
|
}
|
|
6511
6511
|
function yi(e, { direction: r, done: n, classes: t, inFlight: s }) {
|
|
6512
|
-
let o =
|
|
6512
|
+
let o = _e(), a = n !== void 0 ? hn(n) : () => {
|
|
6513
6513
|
};
|
|
6514
6514
|
r === "enter" && (e.removeAttribute("hidden"), e.style.display = "");
|
|
6515
|
-
let l =
|
|
6515
|
+
let l = U(r, { enter: () => t.enter, leave: () => t.leave }), c = U(r, { enter: () => t.enterTo, leave: () => t.leaveTo }), u = U(r, { enter: () => t.enterFrom, leave: () => t.leaveFrom });
|
|
6516
6516
|
return ji(e, { prepare() {
|
|
6517
6517
|
_r(e, ...t.base, ...t.enter, ...t.enterTo, ...t.enterFrom, ...t.leave, ...t.leaveFrom, ...t.leaveTo, ...t.entered), Or(e, ...t.base, ...l, ...u);
|
|
6518
6518
|
}, inFlight: s }), s && (s.current = !0), o.nextFrame(() => {
|
|
@@ -6539,7 +6539,7 @@ function Ei({ container: e, direction: r, classes: n, onStart: t, onStop: s }) {
|
|
|
6539
6539
|
} })) : s.current(r), a.dispose;
|
|
6540
6540
|
}, [r]);
|
|
6541
6541
|
}
|
|
6542
|
-
function
|
|
6542
|
+
function Pe(e = "") {
|
|
6543
6543
|
return e.split(/\s+/).filter((r) => r.length > 1);
|
|
6544
6544
|
}
|
|
6545
6545
|
function mn(e) {
|
|
@@ -6567,11 +6567,11 @@ function Tr(e) {
|
|
|
6567
6567
|
return "children" in e ? Tr(e.children) : e.current.filter(({ el: r }) => r.current !== null).filter(({ state: r }) => r === "visible").length > 0;
|
|
6568
6568
|
}
|
|
6569
6569
|
function gn(e, r) {
|
|
6570
|
-
let n = Ce(e), t = R([]), s = ur(), o = Qr(), a = P((b, x =
|
|
6570
|
+
let n = Ce(e), t = R([]), s = ur(), o = Qr(), a = P((b, x = Oe.Hidden) => {
|
|
6571
6571
|
let C = t.current.findIndex(({ el: v }) => v === b);
|
|
6572
|
-
C !== -1 && (
|
|
6572
|
+
C !== -1 && (U(x, { [Oe.Unmount]() {
|
|
6573
6573
|
t.current.splice(C, 1);
|
|
6574
|
-
}, [
|
|
6574
|
+
}, [Oe.Hidden]() {
|
|
6575
6575
|
t.current[C].state = "hidden";
|
|
6576
6576
|
} }), o.microTask(() => {
|
|
6577
6577
|
var v;
|
|
@@ -6579,7 +6579,7 @@ function gn(e, r) {
|
|
|
6579
6579
|
}));
|
|
6580
6580
|
}), l = P((b) => {
|
|
6581
6581
|
let x = t.current.find(({ el: C }) => C === b);
|
|
6582
|
-
return x ? x.state !== "visible" && (x.state = "visible") : t.current.push({ el: b, state: "visible" }), () => a(b,
|
|
6582
|
+
return x ? x.state !== "visible" && (x.state = "visible") : t.current.push({ el: b, state: "visible" }), () => a(b, Oe.Unmount);
|
|
6583
6583
|
}), c = R([]), u = R(Promise.resolve()), f = R({ enter: [], leave: [], idle: [] }), p = P((b, x, C) => {
|
|
6584
6584
|
c.current.splice(0), r && (r.chains.current[x] = r.chains.current[x].filter(([v]) => v !== b)), r == null || r.chains.current[x].push([b, new Promise((v) => {
|
|
6585
6585
|
c.current.push(v);
|
|
@@ -6597,47 +6597,47 @@ function gn(e, r) {
|
|
|
6597
6597
|
let bn = de, vn = Cr.RenderStrategy;
|
|
6598
6598
|
function Mi(e, r) {
|
|
6599
6599
|
var n, t, s;
|
|
6600
|
-
let { beforeEnter: o, afterEnter: a, beforeLeave: l, afterLeave: c, enter: u, enterFrom: f, enterTo: p, entered: m, leave: b, leaveFrom: x, leaveTo: C, ...v } = e, w = R(null), j = mn(e), fe = we(...j ? [w, r] : r === null ? [] : [r]),
|
|
6600
|
+
let { beforeEnter: o, afterEnter: a, beforeLeave: l, afterLeave: c, enter: u, enterFrom: f, enterTo: p, entered: m, leave: b, leaveFrom: x, leaveTo: C, ...v } = e, w = R(null), j = mn(e), fe = we(...j ? [w, r] : r === null ? [] : [r]), S = (n = v.unmount) == null || n ? Oe.Unmount : Oe.Hidden, { show: Y, appear: ke, initial: J } = $i(), [Z, X] = ge(Y ? "visible" : "hidden"), te = Ti(), { register: ie, unregister: $ } = te;
|
|
6601
6601
|
K(() => ie(w), [ie, w]), K(() => {
|
|
6602
|
-
if (
|
|
6602
|
+
if (S === Oe.Hidden && w.current) {
|
|
6603
6603
|
if (Y && Z !== "visible") {
|
|
6604
6604
|
X("visible");
|
|
6605
6605
|
return;
|
|
6606
6606
|
}
|
|
6607
|
-
return
|
|
6607
|
+
return U(Z, { hidden: () => $(w), visible: () => ie(w) });
|
|
6608
6608
|
}
|
|
6609
|
-
}, [Z, w, ie, $, Y,
|
|
6610
|
-
let
|
|
6609
|
+
}, [Z, w, ie, $, Y, S]);
|
|
6610
|
+
let O = Ce({ base: Pe(v.className), enter: Pe(u), enterFrom: Pe(f), enterTo: Pe(p), entered: Pe(m), leave: Pe(b), leaveFrom: Pe(x), leaveTo: Pe(C) }), V = Ce({ beforeEnter: o, afterEnter: a, beforeLeave: l, afterLeave: c }), G = cr();
|
|
6611
6611
|
K(() => {
|
|
6612
6612
|
if (j && G && Z === "visible" && w.current === null)
|
|
6613
6613
|
throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?");
|
|
6614
6614
|
}, [w, Z, G, j]);
|
|
6615
|
-
let pe = J && !ke, ve = ke && Y && J, he = ve ? "enter" : !G || pe ? "idle" : Y ? "enter" : "leave",
|
|
6615
|
+
let pe = J && !ke, ve = ke && Y && J, he = ve ? "enter" : !G || pe ? "idle" : Y ? "enter" : "leave", z = wi(0), ye = P((ee) => U(ee, { enter: () => {
|
|
6616
6616
|
var D, H;
|
|
6617
|
-
|
|
6617
|
+
z.addFlag(se.Opening), (H = (D = V.current).beforeEnter) == null || H.call(D);
|
|
6618
6618
|
}, leave: () => {
|
|
6619
6619
|
var D, H;
|
|
6620
|
-
|
|
6620
|
+
z.addFlag(se.Closing), (H = (D = V.current).beforeLeave) == null || H.call(D);
|
|
6621
6621
|
}, idle: () => {
|
|
6622
|
-
} })), me = P((ee) =>
|
|
6622
|
+
} })), me = P((ee) => U(ee, { enter: () => {
|
|
6623
6623
|
var D, H;
|
|
6624
|
-
|
|
6624
|
+
z.removeFlag(se.Opening), (H = (D = V.current).afterEnter) == null || H.call(D);
|
|
6625
6625
|
}, leave: () => {
|
|
6626
6626
|
var D, H;
|
|
6627
|
-
|
|
6627
|
+
z.removeFlag(se.Closing), (H = (D = V.current).afterLeave) == null || H.call(D);
|
|
6628
6628
|
}, idle: () => {
|
|
6629
6629
|
} })), Q = R(!1), Se = gn(() => {
|
|
6630
6630
|
Q.current || (X("hidden"), $(w));
|
|
6631
6631
|
}, te);
|
|
6632
|
-
Ei({ container: w, classes:
|
|
6632
|
+
Ei({ container: w, classes: O, direction: he, onStart: Ce((ee) => {
|
|
6633
6633
|
Q.current = !0, Se.onStart(w, ee, ye);
|
|
6634
6634
|
}), onStop: Ce((ee) => {
|
|
6635
6635
|
Q.current = !1, Se.onStop(w, ee, me), ee === "leave" && !Tr(Se) && (X("hidden"), $(w));
|
|
6636
6636
|
}) });
|
|
6637
6637
|
let ne = v, Ke = { ref: fe };
|
|
6638
|
-
return ve ? ne = { ...ne, className: ar(v.className, ...
|
|
6638
|
+
return ve ? ne = { ...ne, className: ar(v.className, ...O.current.enter, ...O.current.enterFrom) } : Q.current ? (ne.className = ar(v.className, (t = w.current) == null ? void 0 : t.className), ne.className === "" && delete ne.className) : (ne.className = ar(v.className, (s = w.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), k.createElement($r.Provider, { value: Se }, k.createElement(Oa, { value: U(Z, { visible: se.Open, hidden: se.Closed }) | z.flags }, be({ ourProps: Ke, theirProps: ne, defaultTag: bn, features: vn, visible: Z === "visible", name: "Transition.Child" })));
|
|
6639
6639
|
}
|
|
6640
|
-
function
|
|
6640
|
+
function Ni(e, r) {
|
|
6641
6641
|
let { show: n, appear: t = !1, unmount: s = !0, ...o } = e, a = R(null), l = mn(e), c = we(...l ? [a, r] : r === null ? [] : [r]);
|
|
6642
6642
|
cr();
|
|
6643
6643
|
let u = nt();
|
|
@@ -6654,19 +6654,19 @@ function Si(e, r) {
|
|
|
6654
6654
|
n ? p("visible") : !Tr(m) && a.current !== null && p("hidden");
|
|
6655
6655
|
}, [n, m]);
|
|
6656
6656
|
let w = { unmount: s }, j = P(() => {
|
|
6657
|
-
var
|
|
6658
|
-
b && x(!1), (
|
|
6657
|
+
var S;
|
|
6658
|
+
b && x(!1), (S = e.beforeEnter) == null || S.call(e);
|
|
6659
6659
|
}), fe = P(() => {
|
|
6660
|
-
var
|
|
6661
|
-
b && x(!1), (
|
|
6660
|
+
var S;
|
|
6661
|
+
b && x(!1), (S = e.beforeLeave) == null || S.call(e);
|
|
6662
6662
|
});
|
|
6663
6663
|
return k.createElement($r.Provider, { value: m }, k.createElement(Lr.Provider, { value: v }, be({ ourProps: { ...w, as: de, children: k.createElement(xn, { ref: c, ...w, ...o, beforeEnter: j, beforeLeave: fe }) }, theirProps: {}, defaultTag: de, features: vn, visible: f === "visible", name: "Transition" })));
|
|
6664
6664
|
}
|
|
6665
|
-
function
|
|
6665
|
+
function Si(e, r) {
|
|
6666
6666
|
let n = re(Lr) !== null, t = nt() !== null;
|
|
6667
6667
|
return k.createElement(k.Fragment, null, !n && t ? k.createElement(Yr, { ref: r, ...e }) : k.createElement(xn, { ref: r, ...e }));
|
|
6668
6668
|
}
|
|
6669
|
-
let Yr = ue(
|
|
6669
|
+
let Yr = ue(Ni), xn = ue(Mi), Zr = ue(Si), Ri = Object.assign(Yr, { Child: Zr, Root: Yr });
|
|
6670
6670
|
const Ai = ({
|
|
6671
6671
|
open: e = !1,
|
|
6672
6672
|
onClose: r,
|
|
@@ -6680,7 +6680,7 @@ const Ai = ({
|
|
|
6680
6680
|
dismissible: u = !0,
|
|
6681
6681
|
horizontalRule: f = !0
|
|
6682
6682
|
}) => {
|
|
6683
|
-
const p = () => l ? /* @__PURE__ */ i.jsx(i.Fragment, { children: l }) : a && c ? /* @__PURE__ */ i.jsx(
|
|
6683
|
+
const p = () => l ? /* @__PURE__ */ i.jsx(i.Fragment, { children: l }) : a && c ? /* @__PURE__ */ i.jsx(Ne, { name: c, size: "medium" }) : null, m = () => t === "dismissible" ? r() : !0;
|
|
6684
6684
|
return /* @__PURE__ */ i.jsx(Ri, { appear: !0, show: e, as: de, children: /* @__PURE__ */ i.jsxs(
|
|
6685
6685
|
Ci,
|
|
6686
6686
|
{
|
|
@@ -6766,7 +6766,7 @@ const Ai = ({
|
|
|
6766
6766
|
]
|
|
6767
6767
|
}
|
|
6768
6768
|
) });
|
|
6769
|
-
},
|
|
6769
|
+
}, Tl = Ai, Pi = F(
|
|
6770
6770
|
[
|
|
6771
6771
|
"preflight",
|
|
6772
6772
|
"ds-rounded-xl",
|
|
@@ -6822,7 +6822,7 @@ const Ai = ({
|
|
|
6822
6822
|
return /* @__PURE__ */ i.jsxs(
|
|
6823
6823
|
"div",
|
|
6824
6824
|
{
|
|
6825
|
-
className:
|
|
6825
|
+
className: B(Pi({ color: n, type: r }), o),
|
|
6826
6826
|
"aria-label": c,
|
|
6827
6827
|
...l,
|
|
6828
6828
|
children: [
|
|
@@ -6843,7 +6843,7 @@ const Ai = ({
|
|
|
6843
6843
|
]
|
|
6844
6844
|
}
|
|
6845
6845
|
);
|
|
6846
|
-
}, Oi = Fi, _i =
|
|
6846
|
+
}, Oi = Fi, _i = F(
|
|
6847
6847
|
[
|
|
6848
6848
|
"preflight",
|
|
6849
6849
|
"ds-transition",
|
|
@@ -6902,7 +6902,7 @@ const Ai = ({
|
|
|
6902
6902
|
className: a = "",
|
|
6903
6903
|
...l
|
|
6904
6904
|
}) => {
|
|
6905
|
-
const c = (u, f, p) =>
|
|
6905
|
+
const c = (u, f, p) => B(
|
|
6906
6906
|
_i({ isNested: u }),
|
|
6907
6907
|
f && !u && "!ds-border-b-acuity-green",
|
|
6908
6908
|
f && u && "ds-bg-neutrals-white !ds-border-neutrals",
|
|
@@ -6985,7 +6985,7 @@ const Ai = ({
|
|
|
6985
6985
|
`panel-${c}`
|
|
6986
6986
|
))
|
|
6987
6987
|
] });
|
|
6988
|
-
},
|
|
6988
|
+
}, Ml = Vi, Di = ({ children: e }) => e, Nl = Di, Hi = F(
|
|
6989
6989
|
[
|
|
6990
6990
|
"preflight",
|
|
6991
6991
|
"ds-form-label",
|
|
@@ -7006,7 +7006,7 @@ const Ai = ({
|
|
|
7006
7006
|
}
|
|
7007
7007
|
}
|
|
7008
7008
|
}
|
|
7009
|
-
), Bi = (e) =>
|
|
7009
|
+
), Bi = (e) => B(Hi(e)), zi = ({
|
|
7010
7010
|
id: e,
|
|
7011
7011
|
state: r = "default",
|
|
7012
7012
|
disabled: n = !1,
|
|
@@ -7016,7 +7016,7 @@ const Ai = ({
|
|
|
7016
7016
|
}) => /* @__PURE__ */ i.jsxs("label", { id: e, htmlFor: t, className: Bi({ state: r, disabled: n }), children: [
|
|
7017
7017
|
s,
|
|
7018
7018
|
o && /* @__PURE__ */ i.jsx("span", { className: "ds-text-sm ds-text-neutrals-darker", children: ` (${o})` })
|
|
7019
|
-
] }), Ui = zi, Gi =
|
|
7019
|
+
] }), Ui = zi, Gi = F(
|
|
7020
7020
|
["preflight", "group", "ds-flex", "ds-flex-col", "ds-container"],
|
|
7021
7021
|
{
|
|
7022
7022
|
variants: {
|
|
@@ -7027,7 +7027,7 @@ const Ai = ({
|
|
|
7027
7027
|
}
|
|
7028
7028
|
}
|
|
7029
7029
|
}
|
|
7030
|
-
), Yi = (e) =>
|
|
7030
|
+
), Yi = (e) => B(Gi(e)), Zi = F(["ds-form-label", "!ds-font-sans", "ds-text-base"], {
|
|
7031
7031
|
variants: {
|
|
7032
7032
|
state: {
|
|
7033
7033
|
default: ["ds-text-neutrals-black", "ds-mt-2"],
|
|
@@ -7045,7 +7045,7 @@ const Ai = ({
|
|
|
7045
7045
|
true: "!ds-text-neutrals-dark"
|
|
7046
7046
|
}
|
|
7047
7047
|
}
|
|
7048
|
-
}), qi = (e) =>
|
|
7048
|
+
}), qi = (e) => B(Zi(e)), Ki = ({
|
|
7049
7049
|
id: e,
|
|
7050
7050
|
state: r = "default",
|
|
7051
7051
|
disabled: n = !1,
|
|
@@ -7088,7 +7088,7 @@ const Ai = ({
|
|
|
7088
7088
|
/* @__PURE__ */ i.jsxs("div", { className: "ds-mt-2 ds-flex ds-gap-2", children: [
|
|
7089
7089
|
/* @__PURE__ */ i.jsx("div", { className: c ? "" : "ds-w-[calc(100%-2rem)]", children: l }),
|
|
7090
7090
|
/* @__PURE__ */ i.jsx("div", { className: "ds-pt-2", children: u && /* @__PURE__ */ i.jsx(
|
|
7091
|
-
|
|
7091
|
+
Ne,
|
|
7092
7092
|
{
|
|
7093
7093
|
name: u.name,
|
|
7094
7094
|
size: "medium",
|
|
@@ -7099,7 +7099,7 @@ const Ai = ({
|
|
|
7099
7099
|
] }),
|
|
7100
7100
|
u && /* @__PURE__ */ i.jsx("p", { className: qi({ state: r }), children: a })
|
|
7101
7101
|
] });
|
|
7102
|
-
}, at = Ki, Ji =
|
|
7102
|
+
}, at = Ki, Ji = F(
|
|
7103
7103
|
[
|
|
7104
7104
|
"preflight",
|
|
7105
7105
|
"ds-form-input",
|
|
@@ -7109,7 +7109,7 @@ const Ai = ({
|
|
|
7109
7109
|
"!ds-font-sans"
|
|
7110
7110
|
],
|
|
7111
7111
|
Jr
|
|
7112
|
-
), Xi = (e) =>
|
|
7112
|
+
), Xi = (e) => B(Ji(e)), Qi = ({
|
|
7113
7113
|
state: e = "default",
|
|
7114
7114
|
rows: r = 2,
|
|
7115
7115
|
cols: n = 50,
|
|
@@ -7167,7 +7167,7 @@ const Ai = ({
|
|
|
7167
7167
|
}
|
|
7168
7168
|
)
|
|
7169
7169
|
}
|
|
7170
|
-
),
|
|
7170
|
+
), Sl = rl, tl = F(
|
|
7171
7171
|
[
|
|
7172
7172
|
"preflight",
|
|
7173
7173
|
"ds-form-input",
|
|
@@ -7179,7 +7179,7 @@ const Ai = ({
|
|
|
7179
7179
|
"ds-container"
|
|
7180
7180
|
],
|
|
7181
7181
|
Jr
|
|
7182
|
-
), nl = (e) =>
|
|
7182
|
+
), nl = (e) => B(tl(e)), sl = ({
|
|
7183
7183
|
state: e = "default",
|
|
7184
7184
|
disabled: r = !1,
|
|
7185
7185
|
type: n = "text",
|
|
@@ -7226,7 +7226,7 @@ const Ai = ({
|
|
|
7226
7226
|
}
|
|
7227
7227
|
)
|
|
7228
7228
|
}
|
|
7229
|
-
),
|
|
7229
|
+
), Rl = al, il = F(
|
|
7230
7230
|
[
|
|
7231
7231
|
"preflight",
|
|
7232
7232
|
"ds-form-select",
|
|
@@ -7256,7 +7256,7 @@ const Ai = ({
|
|
|
7256
7256
|
"aria-readonly": r,
|
|
7257
7257
|
tabIndex: r ? -1 : 0,
|
|
7258
7258
|
style: { backgroundImage: dl },
|
|
7259
|
-
className:
|
|
7259
|
+
className: B(ll({ disabled: r, state: e }), n),
|
|
7260
7260
|
...t,
|
|
7261
7261
|
children: s
|
|
7262
7262
|
}
|
|
@@ -7292,27 +7292,145 @@ const Ai = ({
|
|
|
7292
7292
|
}
|
|
7293
7293
|
)
|
|
7294
7294
|
}
|
|
7295
|
-
),
|
|
7295
|
+
), Al = fl, pl = F("ds-overflow-hidden ds-bg-neutrals-light", {
|
|
7296
|
+
variants: {
|
|
7297
|
+
size: {
|
|
7298
|
+
small: ["ds-h-2", "ds-rounded-sm"],
|
|
7299
|
+
large: ["ds-h-4", "ds-rounded"]
|
|
7300
|
+
}
|
|
7301
|
+
}
|
|
7302
|
+
}), hl = F("", {
|
|
7303
|
+
variants: {
|
|
7304
|
+
size: {
|
|
7305
|
+
small: ["ds-h-2", "ds-rounded-sm"],
|
|
7306
|
+
large: ["ds-h-4", "ds-rounded"]
|
|
7307
|
+
},
|
|
7308
|
+
state: {
|
|
7309
|
+
"in-progress": ["ds-bg-acuity-blue"],
|
|
7310
|
+
error: ["ds-bg-danger-red-dark"],
|
|
7311
|
+
success: ["ds-bg-success-green"],
|
|
7312
|
+
indeterminate: ["ds-bg-acuity-blue", "ds-animate-progress"]
|
|
7313
|
+
}
|
|
7314
|
+
}
|
|
7315
|
+
}), ml = F(
|
|
7316
|
+
"ds-w-[3rem] ds-justify-end ds-flex ds-items-center ds-text-neutrals-dark",
|
|
7317
|
+
{
|
|
7318
|
+
variants: {
|
|
7319
|
+
size: {
|
|
7320
|
+
small: "ds-text-sm",
|
|
7321
|
+
large: ""
|
|
7322
|
+
}
|
|
7323
|
+
}
|
|
7324
|
+
}
|
|
7325
|
+
), gl = F("ds-text-sm", {
|
|
7326
|
+
variants: {
|
|
7327
|
+
state: {
|
|
7328
|
+
error: "ds-text-danger-red",
|
|
7329
|
+
success: "ds-text-neutrals-dark",
|
|
7330
|
+
indeterminate: "ds-text-neutrals-dark",
|
|
7331
|
+
"in-progress": "ds-text-neutrals-dark"
|
|
7332
|
+
}
|
|
7333
|
+
}
|
|
7334
|
+
}), bl = ({
|
|
7335
|
+
size: e = "large",
|
|
7336
|
+
label: r = "",
|
|
7337
|
+
helperMessage: n = "",
|
|
7338
|
+
className: t = "",
|
|
7339
|
+
state: s = "indeterminate",
|
|
7340
|
+
maxValue: o = 100,
|
|
7341
|
+
value: a = 0,
|
|
7342
|
+
hideIcon: l = !1,
|
|
7343
|
+
...c
|
|
7344
|
+
}) => {
|
|
7345
|
+
const u = () => {
|
|
7346
|
+
let m = Math.round(a / o * 100);
|
|
7347
|
+
return m < 0 ? m = 0 : m > 100 && (m = 100), s !== "in-progress" ? "100%" : `${m}%`;
|
|
7348
|
+
}, f = () => {
|
|
7349
|
+
if (l)
|
|
7350
|
+
return null;
|
|
7351
|
+
switch (s) {
|
|
7352
|
+
case "in-progress":
|
|
7353
|
+
return u();
|
|
7354
|
+
case "error":
|
|
7355
|
+
return /* @__PURE__ */ i.jsx(
|
|
7356
|
+
Ne,
|
|
7357
|
+
{
|
|
7358
|
+
name: "error",
|
|
7359
|
+
size: e === "small" ? "small" : "medium",
|
|
7360
|
+
className: "ds-float-right ds-text-danger-red-dark",
|
|
7361
|
+
role: "graphics-symbol"
|
|
7362
|
+
}
|
|
7363
|
+
);
|
|
7364
|
+
case "success":
|
|
7365
|
+
return /* @__PURE__ */ i.jsx(
|
|
7366
|
+
Ne,
|
|
7367
|
+
{
|
|
7368
|
+
name: "checkCircle",
|
|
7369
|
+
size: e === "small" ? "small" : "medium",
|
|
7370
|
+
className: "ds-float-right ds-text-success-green-dark",
|
|
7371
|
+
role: "graphics-symbol"
|
|
7372
|
+
}
|
|
7373
|
+
);
|
|
7374
|
+
case "indeterminate":
|
|
7375
|
+
default:
|
|
7376
|
+
return null;
|
|
7377
|
+
}
|
|
7378
|
+
}, p = () => s === "in-progress" || s === "indeterminate" ? /* @__PURE__ */ i.jsxs("div", { className: "ds-ml-1 ds-mt-2 ds-flex ds-w-[15px] ds-items-center ds-space-x-[2px]", children: [
|
|
7379
|
+
/* @__PURE__ */ i.jsx("div", { className: "ds-h-[3px] ds-w-[3px] ds-animate-blink ds-rounded-full ds-bg-neutrals-black [animation-delay:-0.2s]" }),
|
|
7380
|
+
/* @__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]" }),
|
|
7381
|
+
/* @__PURE__ */ i.jsx("div", { className: "ds-h-[3px] ds-w-[3px] ds-animate-blink ds-rounded-full ds-bg-neutrals-black" })
|
|
7382
|
+
] }) : null;
|
|
7383
|
+
return /* @__PURE__ */ i.jsxs("div", { className: B("preflight ds-min-w-[4.875rem]", t), ...c, children: [
|
|
7384
|
+
/* @__PURE__ */ i.jsxs("div", { className: "ds-flex ds-h-5 ds-items-center ds-justify-between", children: [
|
|
7385
|
+
/* @__PURE__ */ i.jsxs("div", { className: "progress-bar-label ds-flex ds-max-w-[calc(100%-3rem)] ds-overflow-hidden", children: [
|
|
7386
|
+
/* @__PURE__ */ i.jsx("p", { className: "ds-overflow-hidden ds-text-nowrap", children: r }),
|
|
7387
|
+
p()
|
|
7388
|
+
] }),
|
|
7389
|
+
/* @__PURE__ */ i.jsx("div", { "aria-hidden": !0, className: ml({ size: e }), children: f() })
|
|
7390
|
+
] }),
|
|
7391
|
+
/* @__PURE__ */ i.jsx(
|
|
7392
|
+
"div",
|
|
7393
|
+
{
|
|
7394
|
+
role: "progressbar",
|
|
7395
|
+
className: "ds-mb-1 ds-mt-1",
|
|
7396
|
+
"aria-label": r,
|
|
7397
|
+
"aria-valuemin": 0,
|
|
7398
|
+
"aria-valuenow": a,
|
|
7399
|
+
"aria-valuemax": o,
|
|
7400
|
+
"aria-valuetext": u(),
|
|
7401
|
+
children: /* @__PURE__ */ i.jsx("div", { className: pl({ size: e }), children: /* @__PURE__ */ i.jsx(
|
|
7402
|
+
"div",
|
|
7403
|
+
{
|
|
7404
|
+
style: { width: u() },
|
|
7405
|
+
className: hl({ size: e, state: s })
|
|
7406
|
+
}
|
|
7407
|
+
) })
|
|
7408
|
+
}
|
|
7409
|
+
),
|
|
7410
|
+
/* @__PURE__ */ i.jsx("p", { className: gl({ state: s }), children: n })
|
|
7411
|
+
] });
|
|
7412
|
+
}, Pl = bl;
|
|
7296
7413
|
export {
|
|
7297
|
-
|
|
7414
|
+
wl as Alert,
|
|
7298
7415
|
Oi as Badge,
|
|
7299
|
-
|
|
7300
|
-
|
|
7301
|
-
|
|
7302
|
-
|
|
7416
|
+
kl as Button,
|
|
7417
|
+
yl as Card,
|
|
7418
|
+
jl as Checkbox,
|
|
7419
|
+
Al as Dropdown,
|
|
7303
7420
|
ul as DropdownAtom,
|
|
7304
7421
|
Kt as Heading,
|
|
7305
|
-
|
|
7422
|
+
Ne as Icon,
|
|
7306
7423
|
Kr as IconButton,
|
|
7307
7424
|
Ui as LabelAtom,
|
|
7308
|
-
|
|
7309
|
-
|
|
7310
|
-
|
|
7311
|
-
El as
|
|
7312
|
-
|
|
7313
|
-
|
|
7425
|
+
Ll as Link,
|
|
7426
|
+
Tl as Modal,
|
|
7427
|
+
Pl as ProgressBar,
|
|
7428
|
+
El as Radio,
|
|
7429
|
+
Nl as Tab,
|
|
7430
|
+
Ml as Tabs,
|
|
7431
|
+
Rl as TextInput,
|
|
7314
7432
|
ol as TextInputAtom,
|
|
7315
|
-
|
|
7433
|
+
Sl as Textarea,
|
|
7316
7434
|
el as TextareaAtom
|
|
7317
7435
|
};
|
|
7318
7436
|
//# sourceMappingURL=index.es.js.map
|