@takecasper/acuity-design-system 1.14.3 → 1.16.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 +18 -4
- package/dist/index.es.js +518 -444
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./assets/index.css";
|
|
2
2
|
import * as sr from "react";
|
|
3
|
-
import j, {
|
|
3
|
+
import j, { useState as me, useEffect as oe, useLayoutEffect as Dn, useRef as N, createContext as de, useContext as Q, forwardRef as Hn, Fragment as le, isValidElement as Bn, cloneElement as zn, createElement as Un, useId as yr, useMemo as se, useSyncExternalStore as Gn, useReducer as Yn, createRef as Zn, useCallback as mr } from "react";
|
|
4
4
|
import { createPortal as Rt } from "react-dom";
|
|
5
5
|
var Wr = { exports: {} }, er = {};
|
|
6
6
|
/**
|
|
@@ -13,7 +13,7 @@ var Wr = { exports: {} }, er = {};
|
|
|
13
13
|
* LICENSE file in the root directory of this source tree.
|
|
14
14
|
*/
|
|
15
15
|
var gt;
|
|
16
|
-
function
|
|
16
|
+
function qn() {
|
|
17
17
|
if (gt)
|
|
18
18
|
return er;
|
|
19
19
|
gt = 1;
|
|
@@ -41,7 +41,7 @@ var rr = {};
|
|
|
41
41
|
* LICENSE file in the root directory of this source tree.
|
|
42
42
|
*/
|
|
43
43
|
var vt;
|
|
44
|
-
function
|
|
44
|
+
function Kn() {
|
|
45
45
|
return vt || (vt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
46
46
|
var e = j, r = Symbol.for("react.element"), n = Symbol.for("react.portal"), t = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), d = 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"), g = Symbol.for("react.lazy"), v = Symbol.for("react.offscreen"), C = Symbol.iterator, x = "@@iterator";
|
|
47
47
|
function b(l) {
|
|
@@ -68,16 +68,16 @@ function qn() {
|
|
|
68
68
|
S.unshift("Warning: " + h), Function.prototype.apply.call(console[l], console, S);
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
|
-
var
|
|
71
|
+
var R = !1, U = !1, ke = !1, q = !1, G = !1, K;
|
|
72
72
|
K = Symbol.for("react.module.reference");
|
|
73
73
|
function re(l) {
|
|
74
|
-
return !!(typeof l == "string" || typeof l == "function" || l === t || l === s || G || l === o || l === f || l === u || q || l === v ||
|
|
74
|
+
return !!(typeof l == "string" || typeof l == "function" || l === t || l === s || G || l === o || l === f || l === u || q || l === v || R || U || ke || typeof l == "object" && l !== null && (l.$$typeof === g || l.$$typeof === p || l.$$typeof === a || l.$$typeof === d || l.$$typeof === c || // This needs to include all possible module reference object
|
|
75
75
|
// types supported by any Flight configuration anywhere since
|
|
76
76
|
// we don't know which Flight build this will end up being used
|
|
77
77
|
// with.
|
|
78
78
|
l.$$typeof === K || l.getModuleId !== void 0));
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function ie(l, h, m) {
|
|
81
81
|
var k = l.displayName;
|
|
82
82
|
if (k)
|
|
83
83
|
return k;
|
|
@@ -117,7 +117,7 @@ function qn() {
|
|
|
117
117
|
var m = l;
|
|
118
118
|
return $(m._context) + ".Provider";
|
|
119
119
|
case c:
|
|
120
|
-
return
|
|
120
|
+
return ie(l, l.render, "ForwardRef");
|
|
121
121
|
case p:
|
|
122
122
|
var k = l.displayName || null;
|
|
123
123
|
return k !== null ? k : F(l.type) || "Memo";
|
|
@@ -132,14 +132,14 @@ function qn() {
|
|
|
132
132
|
}
|
|
133
133
|
return null;
|
|
134
134
|
}
|
|
135
|
-
var I = Object.assign, z = 0, fe, ve, pe, H,
|
|
135
|
+
var I = Object.assign, z = 0, fe, ve, pe, H, ye, he, J;
|
|
136
136
|
function Se() {
|
|
137
137
|
}
|
|
138
138
|
Se.__reactDisabledLog = !0;
|
|
139
139
|
function te() {
|
|
140
140
|
{
|
|
141
141
|
if (z === 0) {
|
|
142
|
-
fe = console.log, ve = console.info, pe = console.warn, H = console.error,
|
|
142
|
+
fe = console.log, ve = console.info, pe = console.warn, H = console.error, ye = console.group, he = console.groupCollapsed, J = console.groupEnd;
|
|
143
143
|
var l = {
|
|
144
144
|
configurable: !0,
|
|
145
145
|
enumerable: !0,
|
|
@@ -181,7 +181,7 @@ function qn() {
|
|
|
181
181
|
value: H
|
|
182
182
|
}),
|
|
183
183
|
group: I({}, l, {
|
|
184
|
-
value:
|
|
184
|
+
value: ye
|
|
185
185
|
}),
|
|
186
186
|
groupCollapsed: I({}, l, {
|
|
187
187
|
value: he
|
|
@@ -208,16 +208,16 @@ function qn() {
|
|
|
208
208
|
` + V + l;
|
|
209
209
|
}
|
|
210
210
|
}
|
|
211
|
-
var Je = !1,
|
|
211
|
+
var Je = !1, je;
|
|
212
212
|
{
|
|
213
213
|
var O = typeof WeakMap == "function" ? WeakMap : Map;
|
|
214
|
-
|
|
214
|
+
je = new O();
|
|
215
215
|
}
|
|
216
216
|
function be(l, h) {
|
|
217
217
|
if (!l || Je)
|
|
218
218
|
return "";
|
|
219
219
|
{
|
|
220
|
-
var m =
|
|
220
|
+
var m = je.get(l);
|
|
221
221
|
if (m !== void 0)
|
|
222
222
|
return m;
|
|
223
223
|
}
|
|
@@ -239,29 +239,29 @@ function qn() {
|
|
|
239
239
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
240
240
|
try {
|
|
241
241
|
Reflect.construct(T, []);
|
|
242
|
-
} catch (
|
|
243
|
-
k =
|
|
242
|
+
} catch (Ee) {
|
|
243
|
+
k = Ee;
|
|
244
244
|
}
|
|
245
245
|
Reflect.construct(l, [], T);
|
|
246
246
|
} else {
|
|
247
247
|
try {
|
|
248
248
|
T.call();
|
|
249
|
-
} catch (
|
|
250
|
-
k =
|
|
249
|
+
} catch (Ee) {
|
|
250
|
+
k = Ee;
|
|
251
251
|
}
|
|
252
252
|
l.call(T.prototype);
|
|
253
253
|
}
|
|
254
254
|
} else {
|
|
255
255
|
try {
|
|
256
256
|
throw Error();
|
|
257
|
-
} catch (
|
|
258
|
-
k =
|
|
257
|
+
} catch (Ee) {
|
|
258
|
+
k = Ee;
|
|
259
259
|
}
|
|
260
260
|
l();
|
|
261
261
|
}
|
|
262
|
-
} catch (
|
|
263
|
-
if (
|
|
264
|
-
for (var L =
|
|
262
|
+
} catch (Ee) {
|
|
263
|
+
if (Ee && k && typeof Ee.stack == "string") {
|
|
264
|
+
for (var L = Ee.stack.split(`
|
|
265
265
|
`), Y = k.stack.split(`
|
|
266
266
|
`), _ = L.length - 1, W = Y.length - 1; _ >= 1 && W >= 0 && L[_] !== Y[W]; )
|
|
267
267
|
W--;
|
|
@@ -270,9 +270,9 @@ function qn() {
|
|
|
270
270
|
if (_ !== 1 || W !== 1)
|
|
271
271
|
do
|
|
272
272
|
if (_--, W--, W < 0 || L[_] !== Y[W]) {
|
|
273
|
-
var
|
|
273
|
+
var ae = `
|
|
274
274
|
` + L[_].replace(" at new ", " at ");
|
|
275
|
-
return l.displayName &&
|
|
275
|
+
return l.displayName && ae.includes("<anonymous>") && (ae = ae.replace("<anonymous>", l.displayName)), typeof l == "function" && je.set(l, ae), ae;
|
|
276
276
|
}
|
|
277
277
|
while (_ >= 1 && W >= 0);
|
|
278
278
|
break;
|
|
@@ -282,12 +282,12 @@ function qn() {
|
|
|
282
282
|
Je = !1, X.current = S, Ke(), Error.prepareStackTrace = M;
|
|
283
283
|
}
|
|
284
284
|
var Be = l ? l.displayName || l.name : "", mt = Be ? D(Be) : "";
|
|
285
|
-
return typeof l == "function" &&
|
|
285
|
+
return typeof l == "function" && je.set(l, mt), mt;
|
|
286
286
|
}
|
|
287
287
|
function Xe(l, h, m) {
|
|
288
288
|
return be(l, !1);
|
|
289
289
|
}
|
|
290
|
-
function
|
|
290
|
+
function xn(l) {
|
|
291
291
|
var h = l.prototype;
|
|
292
292
|
return !!(h && h.isReactComponent);
|
|
293
293
|
}
|
|
@@ -295,7 +295,7 @@ function qn() {
|
|
|
295
295
|
if (l == null)
|
|
296
296
|
return "";
|
|
297
297
|
if (typeof l == "function")
|
|
298
|
-
return be(l,
|
|
298
|
+
return be(l, xn(l));
|
|
299
299
|
if (typeof l == "string")
|
|
300
300
|
return D(l);
|
|
301
301
|
switch (l) {
|
|
@@ -328,7 +328,7 @@ function qn() {
|
|
|
328
328
|
} else
|
|
329
329
|
ot.setExtraStackFrame(null);
|
|
330
330
|
}
|
|
331
|
-
function
|
|
331
|
+
function wn(l, h, m, k, M) {
|
|
332
332
|
{
|
|
333
333
|
var S = Function.call.bind(pr);
|
|
334
334
|
for (var T in l)
|
|
@@ -347,17 +347,17 @@ function qn() {
|
|
|
347
347
|
}
|
|
348
348
|
}
|
|
349
349
|
}
|
|
350
|
-
var
|
|
350
|
+
var kn = Array.isArray;
|
|
351
351
|
function Tr(l) {
|
|
352
|
-
return
|
|
352
|
+
return kn(l);
|
|
353
353
|
}
|
|
354
|
-
function
|
|
354
|
+
function yn(l) {
|
|
355
355
|
{
|
|
356
356
|
var h = typeof Symbol == "function" && Symbol.toStringTag, m = h && l[Symbol.toStringTag] || l.constructor.name || "Object";
|
|
357
357
|
return m;
|
|
358
358
|
}
|
|
359
359
|
}
|
|
360
|
-
function
|
|
360
|
+
function jn(l) {
|
|
361
361
|
try {
|
|
362
362
|
return st(l), !1;
|
|
363
363
|
} catch (h) {
|
|
@@ -368,17 +368,17 @@ function qn() {
|
|
|
368
368
|
return "" + l;
|
|
369
369
|
}
|
|
370
370
|
function it(l) {
|
|
371
|
-
if (
|
|
372
|
-
return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",
|
|
371
|
+
if (jn(l))
|
|
372
|
+
return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", yn(l)), st(l);
|
|
373
373
|
}
|
|
374
|
-
var Qe = w.ReactCurrentOwner,
|
|
374
|
+
var Qe = w.ReactCurrentOwner, En = {
|
|
375
375
|
key: !0,
|
|
376
376
|
ref: !0,
|
|
377
377
|
__self: !0,
|
|
378
378
|
__source: !0
|
|
379
379
|
}, at, lt, Mr;
|
|
380
380
|
Mr = {};
|
|
381
|
-
function
|
|
381
|
+
function Ln(l) {
|
|
382
382
|
if (pr.call(l, "ref")) {
|
|
383
383
|
var h = Object.getOwnPropertyDescriptor(l, "ref").get;
|
|
384
384
|
if (h && h.isReactWarning)
|
|
@@ -386,7 +386,7 @@ function qn() {
|
|
|
386
386
|
}
|
|
387
387
|
return l.ref !== void 0;
|
|
388
388
|
}
|
|
389
|
-
function
|
|
389
|
+
function $n(l) {
|
|
390
390
|
if (pr.call(l, "key")) {
|
|
391
391
|
var h = Object.getOwnPropertyDescriptor(l, "key").get;
|
|
392
392
|
if (h && h.isReactWarning)
|
|
@@ -394,13 +394,13 @@ function qn() {
|
|
|
394
394
|
}
|
|
395
395
|
return l.key !== void 0;
|
|
396
396
|
}
|
|
397
|
-
function
|
|
397
|
+
function Tn(l, h) {
|
|
398
398
|
if (typeof l.ref == "string" && Qe.current && h && Qe.current.stateNode !== h) {
|
|
399
399
|
var m = F(Qe.current.type);
|
|
400
400
|
Mr[m] || (y('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', F(Qe.current.type), l.ref), Mr[m] = !0);
|
|
401
401
|
}
|
|
402
402
|
}
|
|
403
|
-
function
|
|
403
|
+
function Mn(l, h) {
|
|
404
404
|
{
|
|
405
405
|
var m = function() {
|
|
406
406
|
at || (at = !0, y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", h));
|
|
@@ -411,7 +411,7 @@ function qn() {
|
|
|
411
411
|
});
|
|
412
412
|
}
|
|
413
413
|
}
|
|
414
|
-
function
|
|
414
|
+
function Sn(l, h) {
|
|
415
415
|
{
|
|
416
416
|
var m = function() {
|
|
417
417
|
lt || (lt = !0, y("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", h));
|
|
@@ -422,7 +422,7 @@ function qn() {
|
|
|
422
422
|
});
|
|
423
423
|
}
|
|
424
424
|
}
|
|
425
|
-
var
|
|
425
|
+
var Rn = function(l, h, m, k, M, S, T) {
|
|
426
426
|
var L = {
|
|
427
427
|
// This tag allows us to uniquely identify this as a React Element
|
|
428
428
|
$$typeof: r,
|
|
@@ -451,12 +451,12 @@ function qn() {
|
|
|
451
451
|
value: M
|
|
452
452
|
}), Object.freeze && (Object.freeze(L.props), Object.freeze(L)), L;
|
|
453
453
|
};
|
|
454
|
-
function
|
|
454
|
+
function Nn(l, h, m, k, M) {
|
|
455
455
|
{
|
|
456
456
|
var S, T = {}, L = null, Y = null;
|
|
457
|
-
m !== void 0 && (it(m), L = "" + m),
|
|
457
|
+
m !== void 0 && (it(m), L = "" + m), $n(h) && (it(h.key), L = "" + h.key), Ln(h) && (Y = h.ref, Tn(h, M));
|
|
458
458
|
for (S in h)
|
|
459
|
-
pr.call(h, S) && !
|
|
459
|
+
pr.call(h, S) && !En.hasOwnProperty(S) && (T[S] = h[S]);
|
|
460
460
|
if (l && l.defaultProps) {
|
|
461
461
|
var _ = l.defaultProps;
|
|
462
462
|
for (S in _)
|
|
@@ -464,9 +464,9 @@ function qn() {
|
|
|
464
464
|
}
|
|
465
465
|
if (L || Y) {
|
|
466
466
|
var W = typeof l == "function" ? l.displayName || l.name || "Unknown" : l;
|
|
467
|
-
L &&
|
|
467
|
+
L && Mn(T, W), Y && Sn(T, W);
|
|
468
468
|
}
|
|
469
|
-
return
|
|
469
|
+
return Rn(l, L, Y, M, k, Qe.current, T);
|
|
470
470
|
}
|
|
471
471
|
}
|
|
472
472
|
var Sr = w.ReactCurrentOwner, dt = w.ReactDebugCurrentFrame;
|
|
@@ -479,7 +479,7 @@ function qn() {
|
|
|
479
479
|
}
|
|
480
480
|
var Rr;
|
|
481
481
|
Rr = !1;
|
|
482
|
-
function
|
|
482
|
+
function Nr(l) {
|
|
483
483
|
return typeof l == "object" && l !== null && l.$$typeof === r;
|
|
484
484
|
}
|
|
485
485
|
function ct() {
|
|
@@ -506,7 +506,7 @@ Check your code at ` + h + ":" + m + ".";
|
|
|
506
506
|
}
|
|
507
507
|
}
|
|
508
508
|
var ut = {};
|
|
509
|
-
function
|
|
509
|
+
function An(l) {
|
|
510
510
|
{
|
|
511
511
|
var h = ct();
|
|
512
512
|
if (!h) {
|
|
@@ -523,7 +523,7 @@ Check the top-level render call using <` + m + ">.");
|
|
|
523
523
|
if (!l._store || l._store.validated || l.key != null)
|
|
524
524
|
return;
|
|
525
525
|
l._store.validated = !0;
|
|
526
|
-
var m =
|
|
526
|
+
var m = An(h);
|
|
527
527
|
if (ut[m])
|
|
528
528
|
return;
|
|
529
529
|
ut[m] = !0;
|
|
@@ -538,19 +538,19 @@ Check the top-level render call using <` + m + ">.");
|
|
|
538
538
|
if (Tr(l))
|
|
539
539
|
for (var m = 0; m < l.length; m++) {
|
|
540
540
|
var k = l[m];
|
|
541
|
-
|
|
541
|
+
Nr(k) && ft(k, h);
|
|
542
542
|
}
|
|
543
|
-
else if (
|
|
543
|
+
else if (Nr(l))
|
|
544
544
|
l._store && (l._store.validated = !0);
|
|
545
545
|
else if (l) {
|
|
546
546
|
var M = b(l);
|
|
547
547
|
if (typeof M == "function" && M !== l.entries)
|
|
548
548
|
for (var S = M.call(l), T; !(T = S.next()).done; )
|
|
549
|
-
|
|
549
|
+
Nr(T.value) && ft(T.value, h);
|
|
550
550
|
}
|
|
551
551
|
}
|
|
552
552
|
}
|
|
553
|
-
function
|
|
553
|
+
function Fn(l) {
|
|
554
554
|
{
|
|
555
555
|
var h = l.type;
|
|
556
556
|
if (h == null || typeof h == "string")
|
|
@@ -566,7 +566,7 @@ Check the top-level render call using <` + m + ">.");
|
|
|
566
566
|
return;
|
|
567
567
|
if (m) {
|
|
568
568
|
var k = F(h);
|
|
569
|
-
|
|
569
|
+
wn(m, l.props, "prop", k, l);
|
|
570
570
|
} else if (h.PropTypes !== void 0 && !Rr) {
|
|
571
571
|
Rr = !0;
|
|
572
572
|
var M = F(h);
|
|
@@ -575,7 +575,7 @@ Check the top-level render call using <` + m + ">.");
|
|
|
575
575
|
typeof h.getDefaultProps == "function" && !h.getDefaultProps.isReactClassApproved && y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
576
576
|
}
|
|
577
577
|
}
|
|
578
|
-
function
|
|
578
|
+
function On(l) {
|
|
579
579
|
{
|
|
580
580
|
for (var h = Object.keys(l.props), m = 0; m < h.length; m++) {
|
|
581
581
|
var k = h[m];
|
|
@@ -598,38 +598,38 @@ Check the top-level render call using <` + m + ">.");
|
|
|
598
598
|
var _;
|
|
599
599
|
l === null ? _ = "null" : Tr(l) ? _ = "array" : l !== void 0 && l.$$typeof === r ? (_ = "<" + (F(l.type) || "Unknown") + " />", L = " Did you accidentally export a JSX literal instead of a component?") : _ = typeof l, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", _, L);
|
|
600
600
|
}
|
|
601
|
-
var W =
|
|
601
|
+
var W = Nn(l, h, m, M, S);
|
|
602
602
|
if (W == null)
|
|
603
603
|
return W;
|
|
604
604
|
if (T) {
|
|
605
|
-
var
|
|
606
|
-
if (
|
|
605
|
+
var ae = h.children;
|
|
606
|
+
if (ae !== void 0)
|
|
607
607
|
if (k)
|
|
608
|
-
if (Tr(
|
|
609
|
-
for (var Be = 0; Be <
|
|
610
|
-
pt(
|
|
611
|
-
Object.freeze && Object.freeze(
|
|
608
|
+
if (Tr(ae)) {
|
|
609
|
+
for (var Be = 0; Be < ae.length; Be++)
|
|
610
|
+
pt(ae[Be], l);
|
|
611
|
+
Object.freeze && Object.freeze(ae);
|
|
612
612
|
} else
|
|
613
613
|
y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
614
614
|
else
|
|
615
|
-
pt(
|
|
615
|
+
pt(ae, l);
|
|
616
616
|
}
|
|
617
|
-
return l === t ?
|
|
617
|
+
return l === t ? On(W) : Fn(W), W;
|
|
618
618
|
}
|
|
619
619
|
}
|
|
620
|
-
function
|
|
620
|
+
function _n(l, h, m) {
|
|
621
621
|
return ht(l, h, m, !0);
|
|
622
622
|
}
|
|
623
|
-
function
|
|
623
|
+
function Wn(l, h, m) {
|
|
624
624
|
return ht(l, h, m, !1);
|
|
625
625
|
}
|
|
626
|
-
var
|
|
627
|
-
rr.Fragment = t, rr.jsx =
|
|
626
|
+
var In = Wn, Vn = _n;
|
|
627
|
+
rr.Fragment = t, rr.jsx = In, rr.jsxs = Vn;
|
|
628
628
|
}()), rr;
|
|
629
629
|
}
|
|
630
|
-
process.env.NODE_ENV === "production" ? Wr.exports =
|
|
630
|
+
process.env.NODE_ENV === "production" ? Wr.exports = qn() : Wr.exports = Kn();
|
|
631
631
|
var i = Wr.exports;
|
|
632
|
-
const
|
|
632
|
+
const Jn = ({
|
|
633
633
|
width: e = "24",
|
|
634
634
|
height: r = "24",
|
|
635
635
|
className: n = "",
|
|
@@ -694,7 +694,7 @@ const Kn = ({
|
|
|
694
694
|
]
|
|
695
695
|
}
|
|
696
696
|
);
|
|
697
|
-
},
|
|
697
|
+
}, Nt = Jn, Xn = ({
|
|
698
698
|
width: e = "24",
|
|
699
699
|
height: r = "24",
|
|
700
700
|
className: n = "",
|
|
@@ -739,7 +739,7 @@ const Kn = ({
|
|
|
739
739
|
]
|
|
740
740
|
}
|
|
741
741
|
);
|
|
742
|
-
},
|
|
742
|
+
}, Pt = Xn, Qn = ({
|
|
743
743
|
width: e = "24",
|
|
744
744
|
height: r = "24",
|
|
745
745
|
className: n = "",
|
|
@@ -800,7 +800,7 @@ const Kn = ({
|
|
|
800
800
|
]
|
|
801
801
|
}
|
|
802
802
|
);
|
|
803
|
-
}, At =
|
|
803
|
+
}, At = Qn, eo = ({
|
|
804
804
|
width: e = "24",
|
|
805
805
|
height: r = "24",
|
|
806
806
|
className: n = "",
|
|
@@ -845,7 +845,7 @@ const Kn = ({
|
|
|
845
845
|
]
|
|
846
846
|
}
|
|
847
847
|
);
|
|
848
|
-
}, Ft =
|
|
848
|
+
}, Ft = eo, ro = ({
|
|
849
849
|
width: e = "24",
|
|
850
850
|
height: r = "24",
|
|
851
851
|
className: n = "",
|
|
@@ -890,7 +890,7 @@ const Kn = ({
|
|
|
890
890
|
]
|
|
891
891
|
}
|
|
892
892
|
);
|
|
893
|
-
}, Ot =
|
|
893
|
+
}, Ot = ro, to = ({
|
|
894
894
|
width: e = "24",
|
|
895
895
|
height: r = "24",
|
|
896
896
|
className: n = "",
|
|
@@ -955,7 +955,7 @@ const Kn = ({
|
|
|
955
955
|
]
|
|
956
956
|
}
|
|
957
957
|
);
|
|
958
|
-
},
|
|
958
|
+
}, no = to, oo = ({
|
|
959
959
|
width: e = "24",
|
|
960
960
|
height: r = "24",
|
|
961
961
|
className: n = "",
|
|
@@ -1000,7 +1000,7 @@ const Kn = ({
|
|
|
1000
1000
|
]
|
|
1001
1001
|
}
|
|
1002
1002
|
);
|
|
1003
|
-
},
|
|
1003
|
+
}, so = oo, io = ({
|
|
1004
1004
|
width: e = "24",
|
|
1005
1005
|
height: r = "24",
|
|
1006
1006
|
className: n = "",
|
|
@@ -1055,7 +1055,7 @@ const Kn = ({
|
|
|
1055
1055
|
]
|
|
1056
1056
|
}
|
|
1057
1057
|
);
|
|
1058
|
-
},
|
|
1058
|
+
}, ao = io, lo = ({
|
|
1059
1059
|
width: e = "24",
|
|
1060
1060
|
height: r = "24",
|
|
1061
1061
|
className: n = "",
|
|
@@ -1154,7 +1154,7 @@ const Kn = ({
|
|
|
1154
1154
|
]
|
|
1155
1155
|
}
|
|
1156
1156
|
);
|
|
1157
|
-
},
|
|
1157
|
+
}, co = lo, uo = ({
|
|
1158
1158
|
width: e = "24",
|
|
1159
1159
|
height: r = "24",
|
|
1160
1160
|
className: n = "",
|
|
@@ -1214,7 +1214,7 @@ const Kn = ({
|
|
|
1214
1214
|
]
|
|
1215
1215
|
}
|
|
1216
1216
|
);
|
|
1217
|
-
},
|
|
1217
|
+
}, fo = uo, po = ({
|
|
1218
1218
|
width: e = "24",
|
|
1219
1219
|
height: r = "24",
|
|
1220
1220
|
className: n = "",
|
|
@@ -1249,7 +1249,7 @@ const Kn = ({
|
|
|
1249
1249
|
]
|
|
1250
1250
|
}
|
|
1251
1251
|
);
|
|
1252
|
-
},
|
|
1252
|
+
}, ho = po, mo = ({
|
|
1253
1253
|
width: e = "24",
|
|
1254
1254
|
height: r = "24",
|
|
1255
1255
|
className: n = "",
|
|
@@ -1294,7 +1294,7 @@ const Kn = ({
|
|
|
1294
1294
|
]
|
|
1295
1295
|
}
|
|
1296
1296
|
);
|
|
1297
|
-
},
|
|
1297
|
+
}, go = mo, vo = ({
|
|
1298
1298
|
width: e = "24",
|
|
1299
1299
|
height: r = "24",
|
|
1300
1300
|
className: n = "",
|
|
@@ -1341,7 +1341,7 @@ const Kn = ({
|
|
|
1341
1341
|
]
|
|
1342
1342
|
}
|
|
1343
1343
|
);
|
|
1344
|
-
},
|
|
1344
|
+
}, bo = vo, Co = ({
|
|
1345
1345
|
width: e = "24",
|
|
1346
1346
|
height: r = "24",
|
|
1347
1347
|
className: n = "",
|
|
@@ -1415,7 +1415,7 @@ const Kn = ({
|
|
|
1415
1415
|
]
|
|
1416
1416
|
}
|
|
1417
1417
|
);
|
|
1418
|
-
},
|
|
1418
|
+
}, xo = Co, wo = ({
|
|
1419
1419
|
width: e = "24",
|
|
1420
1420
|
height: r = "24",
|
|
1421
1421
|
className: n = "",
|
|
@@ -1450,7 +1450,7 @@ const Kn = ({
|
|
|
1450
1450
|
]
|
|
1451
1451
|
}
|
|
1452
1452
|
);
|
|
1453
|
-
},
|
|
1453
|
+
}, ko = wo, yo = ({
|
|
1454
1454
|
width: e = "24",
|
|
1455
1455
|
height: r = "24",
|
|
1456
1456
|
className: n = "",
|
|
@@ -1611,7 +1611,7 @@ const Kn = ({
|
|
|
1611
1611
|
]
|
|
1612
1612
|
}
|
|
1613
1613
|
);
|
|
1614
|
-
},
|
|
1614
|
+
}, jo = yo, Eo = ({
|
|
1615
1615
|
width: e = "24",
|
|
1616
1616
|
height: r = "24",
|
|
1617
1617
|
className: n = "",
|
|
@@ -1666,7 +1666,7 @@ const Kn = ({
|
|
|
1666
1666
|
]
|
|
1667
1667
|
}
|
|
1668
1668
|
);
|
|
1669
|
-
},
|
|
1669
|
+
}, Lo = Eo, $o = ({
|
|
1670
1670
|
width: e = "24",
|
|
1671
1671
|
height: r = "24",
|
|
1672
1672
|
className: n = "",
|
|
@@ -1765,7 +1765,7 @@ const Kn = ({
|
|
|
1765
1765
|
]
|
|
1766
1766
|
}
|
|
1767
1767
|
);
|
|
1768
|
-
},
|
|
1768
|
+
}, To = $o, Mo = ({
|
|
1769
1769
|
width: e = "24",
|
|
1770
1770
|
height: r = "24",
|
|
1771
1771
|
className: n = "",
|
|
@@ -1810,7 +1810,7 @@ const Kn = ({
|
|
|
1810
1810
|
]
|
|
1811
1811
|
}
|
|
1812
1812
|
);
|
|
1813
|
-
},
|
|
1813
|
+
}, So = Mo, Ro = ({
|
|
1814
1814
|
width: e = "24",
|
|
1815
1815
|
height: r = "24",
|
|
1816
1816
|
className: n = "",
|
|
@@ -1855,7 +1855,7 @@ const Kn = ({
|
|
|
1855
1855
|
]
|
|
1856
1856
|
}
|
|
1857
1857
|
);
|
|
1858
|
-
},
|
|
1858
|
+
}, No = Ro, Po = ({
|
|
1859
1859
|
width: e = "24",
|
|
1860
1860
|
height: r = "24",
|
|
1861
1861
|
className: n = "",
|
|
@@ -1889,7 +1889,7 @@ const Kn = ({
|
|
|
1889
1889
|
]
|
|
1890
1890
|
}
|
|
1891
1891
|
);
|
|
1892
|
-
},
|
|
1892
|
+
}, Ao = Po, Fo = ({
|
|
1893
1893
|
width: e = "24",
|
|
1894
1894
|
height: r = "24",
|
|
1895
1895
|
className: n = "",
|
|
@@ -1944,7 +1944,7 @@ const Kn = ({
|
|
|
1944
1944
|
]
|
|
1945
1945
|
}
|
|
1946
1946
|
);
|
|
1947
|
-
},
|
|
1947
|
+
}, Oo = Fo, _o = ({
|
|
1948
1948
|
width: e = "24",
|
|
1949
1949
|
height: r = "24",
|
|
1950
1950
|
className: n = "",
|
|
@@ -1999,7 +1999,7 @@ const Kn = ({
|
|
|
1999
1999
|
]
|
|
2000
2000
|
}
|
|
2001
2001
|
);
|
|
2002
|
-
},
|
|
2002
|
+
}, Wo = _o, Io = ({
|
|
2003
2003
|
width: e = "24",
|
|
2004
2004
|
height: r = "24",
|
|
2005
2005
|
className: n = "",
|
|
@@ -2079,7 +2079,7 @@ const Kn = ({
|
|
|
2079
2079
|
]
|
|
2080
2080
|
}
|
|
2081
2081
|
);
|
|
2082
|
-
},
|
|
2082
|
+
}, Vo = Io;
|
|
2083
2083
|
function _t(e) {
|
|
2084
2084
|
var r, n, t = "";
|
|
2085
2085
|
if (typeof e == "string" || typeof e == "number")
|
|
@@ -2093,12 +2093,12 @@ function _t(e) {
|
|
|
2093
2093
|
e[r] && (t && (t += " "), t += r);
|
|
2094
2094
|
return t;
|
|
2095
2095
|
}
|
|
2096
|
-
function
|
|
2096
|
+
function Do() {
|
|
2097
2097
|
for (var e, r, n = 0, t = ""; n < arguments.length; )
|
|
2098
2098
|
(e = arguments[n++]) && (r = _t(e)) && (t && (t += " "), t += r);
|
|
2099
2099
|
return t;
|
|
2100
2100
|
}
|
|
2101
|
-
const bt = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, Ct =
|
|
2101
|
+
const bt = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, Ct = Do, ee = (e, r) => (n) => {
|
|
2102
2102
|
var t;
|
|
2103
2103
|
if ((r == null ? void 0 : r.variants) == null)
|
|
2104
2104
|
return Ct(e, n == null ? void 0 : n.class, n == null ? void 0 : n.className);
|
|
@@ -2130,14 +2130,14 @@ const bt = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, Ct =
|
|
|
2130
2130
|
}, []);
|
|
2131
2131
|
return Ct(e, a, c, n == null ? void 0 : n.class, n == null ? void 0 : n.className);
|
|
2132
2132
|
}, Zr = "-";
|
|
2133
|
-
function
|
|
2134
|
-
const r =
|
|
2133
|
+
function Ho(e) {
|
|
2134
|
+
const r = zo(e), {
|
|
2135
2135
|
conflictingClassGroups: n,
|
|
2136
2136
|
conflictingClassGroupModifiers: t
|
|
2137
2137
|
} = e;
|
|
2138
2138
|
function o(a) {
|
|
2139
2139
|
const d = a.split(Zr);
|
|
2140
|
-
return d[0] === "" && d.length !== 1 && d.shift(), Wt(d, r) ||
|
|
2140
|
+
return d[0] === "" && d.length !== 1 && d.shift(), Wt(d, r) || Bo(a);
|
|
2141
2141
|
}
|
|
2142
2142
|
function s(a, d) {
|
|
2143
2143
|
const c = n[a] || [];
|
|
@@ -2163,14 +2163,14 @@ function Wt(e, r) {
|
|
|
2163
2163
|
}) => d(s))) == null ? void 0 : a.classGroupId;
|
|
2164
2164
|
}
|
|
2165
2165
|
const xt = /^\[(.+)\]$/;
|
|
2166
|
-
function
|
|
2166
|
+
function Bo(e) {
|
|
2167
2167
|
if (xt.test(e)) {
|
|
2168
2168
|
const r = xt.exec(e)[1], n = r == null ? void 0 : r.substring(0, r.indexOf(":"));
|
|
2169
2169
|
if (n)
|
|
2170
2170
|
return "arbitrary.." + n;
|
|
2171
2171
|
}
|
|
2172
2172
|
}
|
|
2173
|
-
function
|
|
2173
|
+
function zo(e) {
|
|
2174
2174
|
const {
|
|
2175
2175
|
theme: r,
|
|
2176
2176
|
prefix: n
|
|
@@ -2178,7 +2178,7 @@ function Bo(e) {
|
|
|
2178
2178
|
nextPart: /* @__PURE__ */ new Map(),
|
|
2179
2179
|
validators: []
|
|
2180
2180
|
};
|
|
2181
|
-
return
|
|
2181
|
+
return Go(Object.entries(e.classGroups), n).forEach(([s, a]) => {
|
|
2182
2182
|
Ir(a, t, s, r);
|
|
2183
2183
|
}), t;
|
|
2184
2184
|
}
|
|
@@ -2190,7 +2190,7 @@ function Ir(e, r, n, t) {
|
|
|
2190
2190
|
return;
|
|
2191
2191
|
}
|
|
2192
2192
|
if (typeof o == "function") {
|
|
2193
|
-
if (
|
|
2193
|
+
if (Uo(o)) {
|
|
2194
2194
|
Ir(o(t), r, n, t);
|
|
2195
2195
|
return;
|
|
2196
2196
|
}
|
|
@@ -2214,16 +2214,16 @@ function wt(e, r) {
|
|
|
2214
2214
|
}), n = n.nextPart.get(t);
|
|
2215
2215
|
}), n;
|
|
2216
2216
|
}
|
|
2217
|
-
function
|
|
2217
|
+
function Uo(e) {
|
|
2218
2218
|
return e.isThemeGetter;
|
|
2219
2219
|
}
|
|
2220
|
-
function
|
|
2220
|
+
function Go(e, r) {
|
|
2221
2221
|
return r ? e.map(([n, t]) => {
|
|
2222
2222
|
const o = t.map((s) => typeof s == "string" ? r + s : typeof s == "object" ? Object.fromEntries(Object.entries(s).map(([a, d]) => [r + a, d])) : s);
|
|
2223
2223
|
return [n, o];
|
|
2224
2224
|
}) : e;
|
|
2225
2225
|
}
|
|
2226
|
-
function
|
|
2226
|
+
function Yo(e) {
|
|
2227
2227
|
if (e < 1)
|
|
2228
2228
|
return {
|
|
2229
2229
|
get: () => {
|
|
@@ -2249,7 +2249,7 @@ function Go(e) {
|
|
|
2249
2249
|
};
|
|
2250
2250
|
}
|
|
2251
2251
|
const It = "!";
|
|
2252
|
-
function
|
|
2252
|
+
function Zo(e) {
|
|
2253
2253
|
const r = e.separator, n = r.length === 1, t = r[0], o = r.length;
|
|
2254
2254
|
return function(a) {
|
|
2255
2255
|
const d = [];
|
|
@@ -2277,7 +2277,7 @@ function Yo(e) {
|
|
|
2277
2277
|
};
|
|
2278
2278
|
};
|
|
2279
2279
|
}
|
|
2280
|
-
function
|
|
2280
|
+
function qo(e) {
|
|
2281
2281
|
if (e.length <= 1)
|
|
2282
2282
|
return e;
|
|
2283
2283
|
const r = [];
|
|
@@ -2286,21 +2286,21 @@ function Zo(e) {
|
|
|
2286
2286
|
t[0] === "[" ? (r.push(...n.sort(), t), n = []) : n.push(t);
|
|
2287
2287
|
}), r.push(...n.sort()), r;
|
|
2288
2288
|
}
|
|
2289
|
-
function
|
|
2289
|
+
function Ko(e) {
|
|
2290
2290
|
return {
|
|
2291
|
-
cache:
|
|
2292
|
-
splitModifiers:
|
|
2293
|
-
...
|
|
2291
|
+
cache: Yo(e.cacheSize),
|
|
2292
|
+
splitModifiers: Zo(e),
|
|
2293
|
+
...Ho(e)
|
|
2294
2294
|
};
|
|
2295
2295
|
}
|
|
2296
|
-
const
|
|
2297
|
-
function
|
|
2296
|
+
const Jo = /\s+/;
|
|
2297
|
+
function Xo(e, r) {
|
|
2298
2298
|
const {
|
|
2299
2299
|
splitModifiers: n,
|
|
2300
2300
|
getClassGroupId: t,
|
|
2301
2301
|
getConflictingClassGroupIds: o
|
|
2302
2302
|
} = r, s = /* @__PURE__ */ new Set();
|
|
2303
|
-
return e.trim().split(
|
|
2303
|
+
return e.trim().split(Jo).map((a) => {
|
|
2304
2304
|
const {
|
|
2305
2305
|
modifiers: d,
|
|
2306
2306
|
hasImportantModifier: c,
|
|
@@ -2321,7 +2321,7 @@ function Jo(e, r) {
|
|
|
2321
2321
|
};
|
|
2322
2322
|
g = !1;
|
|
2323
2323
|
}
|
|
2324
|
-
const v =
|
|
2324
|
+
const v = qo(d).join(":");
|
|
2325
2325
|
return {
|
|
2326
2326
|
isTailwindClass: !0,
|
|
2327
2327
|
modifierId: c ? v + It : v,
|
|
@@ -2340,7 +2340,7 @@ function Jo(e, r) {
|
|
|
2340
2340
|
return s.has(u) ? !1 : (s.add(u), o(c, f).forEach((p) => s.add(d + p)), !0);
|
|
2341
2341
|
}).reverse().map((a) => a.originalClassName).join(" ");
|
|
2342
2342
|
}
|
|
2343
|
-
function
|
|
2343
|
+
function Qo() {
|
|
2344
2344
|
let e = 0, r, n, t = "";
|
|
2345
2345
|
for (; e < arguments.length; )
|
|
2346
2346
|
(r = arguments[e++]) && (n = Vt(r)) && (t && (t += " "), t += n);
|
|
@@ -2354,33 +2354,33 @@ function Vt(e) {
|
|
|
2354
2354
|
e[t] && (r = Vt(e[t])) && (n && (n += " "), n += r);
|
|
2355
2355
|
return n;
|
|
2356
2356
|
}
|
|
2357
|
-
function
|
|
2357
|
+
function es(e, ...r) {
|
|
2358
2358
|
let n, t, o, s = a;
|
|
2359
2359
|
function a(c) {
|
|
2360
2360
|
const f = r.reduce((u, p) => p(u), e());
|
|
2361
|
-
return n =
|
|
2361
|
+
return n = Ko(f), t = n.cache.get, o = n.cache.set, s = d, d(c);
|
|
2362
2362
|
}
|
|
2363
2363
|
function d(c) {
|
|
2364
2364
|
const f = t(c);
|
|
2365
2365
|
if (f)
|
|
2366
2366
|
return f;
|
|
2367
|
-
const u =
|
|
2367
|
+
const u = Xo(c, n);
|
|
2368
2368
|
return o(c, u), u;
|
|
2369
2369
|
}
|
|
2370
2370
|
return function() {
|
|
2371
|
-
return s(
|
|
2371
|
+
return s(Qo.apply(null, arguments));
|
|
2372
2372
|
};
|
|
2373
2373
|
}
|
|
2374
|
-
function
|
|
2374
|
+
function P(e) {
|
|
2375
2375
|
const r = (n) => n[e] || [];
|
|
2376
2376
|
return r.isThemeGetter = !0, r;
|
|
2377
2377
|
}
|
|
2378
|
-
const Dt = /^\[(?:([a-z-]+):)?(.+)\]$/i,
|
|
2379
|
-
function
|
|
2380
|
-
return _e(e) ||
|
|
2378
|
+
const Dt = /^\[(?:([a-z-]+):)?(.+)\]$/i, rs = /^\d+\/\d+$/, ts = /* @__PURE__ */ new Set(["px", "full", "screen"]), ns = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, os = /\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$/, ss = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, is = /^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, as = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;
|
|
2379
|
+
function Le(e) {
|
|
2380
|
+
return _e(e) || ts.has(e) || rs.test(e);
|
|
2381
2381
|
}
|
|
2382
2382
|
function Re(e) {
|
|
2383
|
-
return Ge(e, "length",
|
|
2383
|
+
return Ge(e, "length", ms);
|
|
2384
2384
|
}
|
|
2385
2385
|
function _e(e) {
|
|
2386
2386
|
return !!e && !Number.isNaN(Number(e));
|
|
@@ -2391,28 +2391,28 @@ function gr(e) {
|
|
|
2391
2391
|
function tr(e) {
|
|
2392
2392
|
return !!e && Number.isInteger(Number(e));
|
|
2393
2393
|
}
|
|
2394
|
-
function
|
|
2394
|
+
function ls(e) {
|
|
2395
2395
|
return e.endsWith("%") && _e(e.slice(0, -1));
|
|
2396
2396
|
}
|
|
2397
2397
|
function E(e) {
|
|
2398
2398
|
return Dt.test(e);
|
|
2399
2399
|
}
|
|
2400
|
-
function
|
|
2401
|
-
return
|
|
2402
|
-
}
|
|
2403
|
-
const ls = /* @__PURE__ */ new Set(["length", "size", "percentage"]);
|
|
2404
|
-
function ds(e) {
|
|
2405
|
-
return Ge(e, ls, Ht);
|
|
2400
|
+
function Ne(e) {
|
|
2401
|
+
return ns.test(e);
|
|
2406
2402
|
}
|
|
2403
|
+
const ds = /* @__PURE__ */ new Set(["length", "size", "percentage"]);
|
|
2407
2404
|
function cs(e) {
|
|
2408
|
-
return Ge(e,
|
|
2405
|
+
return Ge(e, ds, Ht);
|
|
2409
2406
|
}
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
return Ge(e, us, gs);
|
|
2407
|
+
function us(e) {
|
|
2408
|
+
return Ge(e, "position", Ht);
|
|
2413
2409
|
}
|
|
2410
|
+
const fs = /* @__PURE__ */ new Set(["image", "url"]);
|
|
2414
2411
|
function ps(e) {
|
|
2415
|
-
return Ge(e,
|
|
2412
|
+
return Ge(e, fs, vs);
|
|
2413
|
+
}
|
|
2414
|
+
function hs(e) {
|
|
2415
|
+
return Ge(e, "", gs);
|
|
2416
2416
|
}
|
|
2417
2417
|
function nr() {
|
|
2418
2418
|
return !0;
|
|
@@ -2421,30 +2421,30 @@ function Ge(e, r, n) {
|
|
|
2421
2421
|
const t = Dt.exec(e);
|
|
2422
2422
|
return t ? t[1] ? typeof r == "string" ? t[1] === r : r.has(t[1]) : n(t[2]) : !1;
|
|
2423
2423
|
}
|
|
2424
|
-
function
|
|
2425
|
-
return
|
|
2424
|
+
function ms(e) {
|
|
2425
|
+
return os.test(e) && !ss.test(e);
|
|
2426
2426
|
}
|
|
2427
2427
|
function Ht() {
|
|
2428
2428
|
return !1;
|
|
2429
2429
|
}
|
|
2430
|
-
function ms(e) {
|
|
2431
|
-
return ss.test(e);
|
|
2432
|
-
}
|
|
2433
2430
|
function gs(e) {
|
|
2434
2431
|
return is.test(e);
|
|
2435
2432
|
}
|
|
2436
|
-
function vs() {
|
|
2437
|
-
|
|
2433
|
+
function vs(e) {
|
|
2434
|
+
return as.test(e);
|
|
2435
|
+
}
|
|
2436
|
+
function bs() {
|
|
2437
|
+
const e = P("colors"), r = P("spacing"), n = P("blur"), t = P("brightness"), o = P("borderColor"), s = P("borderRadius"), a = P("borderSpacing"), d = P("borderWidth"), c = P("contrast"), f = P("grayscale"), u = P("hueRotate"), p = P("invert"), g = P("gap"), v = P("gradientColorStops"), C = P("gradientColorStopPositions"), x = P("inset"), b = P("margin"), w = P("opacity"), y = P("padding"), ue = P("saturate"), R = P("scale"), U = P("sepia"), ke = P("skew"), q = P("space"), G = P("translate"), K = () => ["auto", "contain", "none"], re = () => ["auto", "hidden", "clip", "visible", "scroll"], ie = () => ["auto", E, r], $ = () => [E, r], F = () => ["", Le, Re], I = () => ["auto", _e, E], z = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], fe = () => ["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"], pe = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], H = () => ["", "0", E], ye = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], he = () => [_e, gr], J = () => [_e, E];
|
|
2438
2438
|
return {
|
|
2439
2439
|
cacheSize: 500,
|
|
2440
2440
|
separator: ":",
|
|
2441
2441
|
theme: {
|
|
2442
2442
|
colors: [nr],
|
|
2443
|
-
spacing: [
|
|
2444
|
-
blur: ["none", "",
|
|
2443
|
+
spacing: [Le, Re],
|
|
2444
|
+
blur: ["none", "", Ne, E],
|
|
2445
2445
|
brightness: he(),
|
|
2446
2446
|
borderColor: [e],
|
|
2447
|
-
borderRadius: ["none", "", "full",
|
|
2447
|
+
borderRadius: ["none", "", "full", Ne, E],
|
|
2448
2448
|
borderSpacing: $(),
|
|
2449
2449
|
borderWidth: F(),
|
|
2450
2450
|
contrast: he(),
|
|
@@ -2453,9 +2453,9 @@ function vs() {
|
|
|
2453
2453
|
invert: H(),
|
|
2454
2454
|
gap: $(),
|
|
2455
2455
|
gradientColorStops: [e],
|
|
2456
|
-
gradientColorStopPositions: [
|
|
2457
|
-
inset:
|
|
2458
|
-
margin:
|
|
2456
|
+
gradientColorStopPositions: [ls, Re],
|
|
2457
|
+
inset: ie(),
|
|
2458
|
+
margin: ie(),
|
|
2459
2459
|
opacity: he(),
|
|
2460
2460
|
padding: $(),
|
|
2461
2461
|
saturate: he(),
|
|
@@ -2484,21 +2484,21 @@ function vs() {
|
|
|
2484
2484
|
* @see https://tailwindcss.com/docs/columns
|
|
2485
2485
|
*/
|
|
2486
2486
|
columns: [{
|
|
2487
|
-
columns: [
|
|
2487
|
+
columns: [Ne]
|
|
2488
2488
|
}],
|
|
2489
2489
|
/**
|
|
2490
2490
|
* Break After
|
|
2491
2491
|
* @see https://tailwindcss.com/docs/break-after
|
|
2492
2492
|
*/
|
|
2493
2493
|
"break-after": [{
|
|
2494
|
-
"break-after":
|
|
2494
|
+
"break-after": ye()
|
|
2495
2495
|
}],
|
|
2496
2496
|
/**
|
|
2497
2497
|
* Break Before
|
|
2498
2498
|
* @see https://tailwindcss.com/docs/break-before
|
|
2499
2499
|
*/
|
|
2500
2500
|
"break-before": [{
|
|
2501
|
-
"break-before":
|
|
2501
|
+
"break-before": ye()
|
|
2502
2502
|
}],
|
|
2503
2503
|
/**
|
|
2504
2504
|
* Break Inside
|
|
@@ -2687,7 +2687,7 @@ function vs() {
|
|
|
2687
2687
|
* @see https://tailwindcss.com/docs/flex-basis
|
|
2688
2688
|
*/
|
|
2689
2689
|
basis: [{
|
|
2690
|
-
basis:
|
|
2690
|
+
basis: ie()
|
|
2691
2691
|
}],
|
|
2692
2692
|
/**
|
|
2693
2693
|
* Flex Direction
|
|
@@ -3068,8 +3068,8 @@ function vs() {
|
|
|
3068
3068
|
*/
|
|
3069
3069
|
"max-w": [{
|
|
3070
3070
|
"max-w": [E, r, "none", "full", "min", "max", "fit", "prose", {
|
|
3071
|
-
screen: [
|
|
3072
|
-
},
|
|
3071
|
+
screen: [Ne]
|
|
3072
|
+
}, Ne]
|
|
3073
3073
|
}],
|
|
3074
3074
|
/**
|
|
3075
3075
|
* Height
|
|
@@ -3105,7 +3105,7 @@ function vs() {
|
|
|
3105
3105
|
* @see https://tailwindcss.com/docs/font-size
|
|
3106
3106
|
*/
|
|
3107
3107
|
"font-size": [{
|
|
3108
|
-
text: ["base",
|
|
3108
|
+
text: ["base", Ne, Re]
|
|
3109
3109
|
}],
|
|
3110
3110
|
/**
|
|
3111
3111
|
* Font Smoothing
|
|
@@ -3180,7 +3180,7 @@ function vs() {
|
|
|
3180
3180
|
* @see https://tailwindcss.com/docs/line-height
|
|
3181
3181
|
*/
|
|
3182
3182
|
leading: [{
|
|
3183
|
-
leading: ["none", "tight", "snug", "normal", "relaxed", "loose",
|
|
3183
|
+
leading: ["none", "tight", "snug", "normal", "relaxed", "loose", Le, E]
|
|
3184
3184
|
}],
|
|
3185
3185
|
/**
|
|
3186
3186
|
* List Style Image
|
|
@@ -3256,14 +3256,14 @@ function vs() {
|
|
|
3256
3256
|
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
|
3257
3257
|
*/
|
|
3258
3258
|
"text-decoration-thickness": [{
|
|
3259
|
-
decoration: ["auto", "from-font",
|
|
3259
|
+
decoration: ["auto", "from-font", Le, Re]
|
|
3260
3260
|
}],
|
|
3261
3261
|
/**
|
|
3262
3262
|
* Text Underline Offset
|
|
3263
3263
|
* @see https://tailwindcss.com/docs/text-underline-offset
|
|
3264
3264
|
*/
|
|
3265
3265
|
"underline-offset": [{
|
|
3266
|
-
"underline-offset": ["auto",
|
|
3266
|
+
"underline-offset": ["auto", Le, E]
|
|
3267
3267
|
}],
|
|
3268
3268
|
/**
|
|
3269
3269
|
* Text Decoration Color
|
|
@@ -3366,7 +3366,7 @@ function vs() {
|
|
|
3366
3366
|
* @see https://tailwindcss.com/docs/background-position
|
|
3367
3367
|
*/
|
|
3368
3368
|
"bg-position": [{
|
|
3369
|
-
bg: [...z(),
|
|
3369
|
+
bg: [...z(), us]
|
|
3370
3370
|
}],
|
|
3371
3371
|
/**
|
|
3372
3372
|
* Background Repeat
|
|
@@ -3382,7 +3382,7 @@ function vs() {
|
|
|
3382
3382
|
* @see https://tailwindcss.com/docs/background-size
|
|
3383
3383
|
*/
|
|
3384
3384
|
"bg-size": [{
|
|
3385
|
-
bg: ["auto", "cover", "contain",
|
|
3385
|
+
bg: ["auto", "cover", "contain", cs]
|
|
3386
3386
|
}],
|
|
3387
3387
|
/**
|
|
3388
3388
|
* Background Image
|
|
@@ -3391,7 +3391,7 @@ function vs() {
|
|
|
3391
3391
|
"bg-image": [{
|
|
3392
3392
|
bg: ["none", {
|
|
3393
3393
|
"gradient-to": ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
|
|
3394
|
-
},
|
|
3394
|
+
}, ps]
|
|
3395
3395
|
}],
|
|
3396
3396
|
/**
|
|
3397
3397
|
* Background Color
|
|
@@ -3731,14 +3731,14 @@ function vs() {
|
|
|
3731
3731
|
* @see https://tailwindcss.com/docs/outline-offset
|
|
3732
3732
|
*/
|
|
3733
3733
|
"outline-offset": [{
|
|
3734
|
-
"outline-offset": [
|
|
3734
|
+
"outline-offset": [Le, E]
|
|
3735
3735
|
}],
|
|
3736
3736
|
/**
|
|
3737
3737
|
* Outline Width
|
|
3738
3738
|
* @see https://tailwindcss.com/docs/outline-width
|
|
3739
3739
|
*/
|
|
3740
3740
|
"outline-w": [{
|
|
3741
|
-
outline: [
|
|
3741
|
+
outline: [Le, Re]
|
|
3742
3742
|
}],
|
|
3743
3743
|
/**
|
|
3744
3744
|
* Outline Color
|
|
@@ -3778,7 +3778,7 @@ function vs() {
|
|
|
3778
3778
|
* @see https://tailwindcss.com/docs/ring-offset-width
|
|
3779
3779
|
*/
|
|
3780
3780
|
"ring-offset-w": [{
|
|
3781
|
-
"ring-offset": [
|
|
3781
|
+
"ring-offset": [Le, Re]
|
|
3782
3782
|
}],
|
|
3783
3783
|
/**
|
|
3784
3784
|
* Ring Offset Color
|
|
@@ -3793,7 +3793,7 @@ function vs() {
|
|
|
3793
3793
|
* @see https://tailwindcss.com/docs/box-shadow
|
|
3794
3794
|
*/
|
|
3795
3795
|
shadow: [{
|
|
3796
|
-
shadow: ["", "inner", "none",
|
|
3796
|
+
shadow: ["", "inner", "none", Ne, hs]
|
|
3797
3797
|
}],
|
|
3798
3798
|
/**
|
|
3799
3799
|
* Box Shadow Color
|
|
@@ -3858,7 +3858,7 @@ function vs() {
|
|
|
3858
3858
|
* @see https://tailwindcss.com/docs/drop-shadow
|
|
3859
3859
|
*/
|
|
3860
3860
|
"drop-shadow": [{
|
|
3861
|
-
"drop-shadow": ["", "none",
|
|
3861
|
+
"drop-shadow": ["", "none", Ne, E]
|
|
3862
3862
|
}],
|
|
3863
3863
|
/**
|
|
3864
3864
|
* Grayscale
|
|
@@ -4058,21 +4058,21 @@ function vs() {
|
|
|
4058
4058
|
* @see https://tailwindcss.com/docs/scale
|
|
4059
4059
|
*/
|
|
4060
4060
|
scale: [{
|
|
4061
|
-
scale: [
|
|
4061
|
+
scale: [R]
|
|
4062
4062
|
}],
|
|
4063
4063
|
/**
|
|
4064
4064
|
* Scale X
|
|
4065
4065
|
* @see https://tailwindcss.com/docs/scale
|
|
4066
4066
|
*/
|
|
4067
4067
|
"scale-x": [{
|
|
4068
|
-
"scale-x": [
|
|
4068
|
+
"scale-x": [R]
|
|
4069
4069
|
}],
|
|
4070
4070
|
/**
|
|
4071
4071
|
* Scale Y
|
|
4072
4072
|
* @see https://tailwindcss.com/docs/scale
|
|
4073
4073
|
*/
|
|
4074
4074
|
"scale-y": [{
|
|
4075
|
-
"scale-y": [
|
|
4075
|
+
"scale-y": [R]
|
|
4076
4076
|
}],
|
|
4077
4077
|
/**
|
|
4078
4078
|
* Rotate
|
|
@@ -4100,14 +4100,14 @@ function vs() {
|
|
|
4100
4100
|
* @see https://tailwindcss.com/docs/skew
|
|
4101
4101
|
*/
|
|
4102
4102
|
"skew-x": [{
|
|
4103
|
-
"skew-x": [
|
|
4103
|
+
"skew-x": [ke]
|
|
4104
4104
|
}],
|
|
4105
4105
|
/**
|
|
4106
4106
|
* Skew Y
|
|
4107
4107
|
* @see https://tailwindcss.com/docs/skew
|
|
4108
4108
|
*/
|
|
4109
4109
|
"skew-y": [{
|
|
4110
|
-
"skew-y": [
|
|
4110
|
+
"skew-y": [ke]
|
|
4111
4111
|
}],
|
|
4112
4112
|
/**
|
|
4113
4113
|
* Transform Origin
|
|
@@ -4373,7 +4373,7 @@ function vs() {
|
|
|
4373
4373
|
* @see https://tailwindcss.com/docs/stroke-width
|
|
4374
4374
|
*/
|
|
4375
4375
|
"stroke-w": [{
|
|
4376
|
-
stroke: [
|
|
4376
|
+
stroke: [Le, Re, gr]
|
|
4377
4377
|
}],
|
|
4378
4378
|
/**
|
|
4379
4379
|
* Stroke
|
|
@@ -4449,11 +4449,11 @@ function vs() {
|
|
|
4449
4449
|
}
|
|
4450
4450
|
};
|
|
4451
4451
|
}
|
|
4452
|
-
const
|
|
4453
|
-
function
|
|
4452
|
+
const xe = /* @__PURE__ */ es(bs);
|
|
4453
|
+
function Cs() {
|
|
4454
4454
|
return Math.floor(Math.random() * 1e7);
|
|
4455
4455
|
}
|
|
4456
|
-
const
|
|
4456
|
+
const xs = ee(
|
|
4457
4457
|
[
|
|
4458
4458
|
"preflight",
|
|
4459
4459
|
"ds-flex",
|
|
@@ -4475,7 +4475,7 @@ const Cs = de(
|
|
|
4475
4475
|
}
|
|
4476
4476
|
}
|
|
4477
4477
|
}
|
|
4478
|
-
),
|
|
4478
|
+
), ws = (e) => xe(xs(e)), ks = ee("", {
|
|
4479
4479
|
variants: {
|
|
4480
4480
|
variant: {
|
|
4481
4481
|
success: "ds-text-success-green-dark",
|
|
@@ -4484,7 +4484,7 @@ const Cs = de(
|
|
|
4484
4484
|
error: "ds-text-danger-red-dark"
|
|
4485
4485
|
}
|
|
4486
4486
|
}
|
|
4487
|
-
}), kt = (e) =>
|
|
4487
|
+
}), kt = (e) => xe(ks(e)), ys = ee("", {
|
|
4488
4488
|
variants: {
|
|
4489
4489
|
variant: {
|
|
4490
4490
|
success: ["ds-text-success-green-darkest", "ds-stroke-success-green-darkest"],
|
|
@@ -4493,7 +4493,7 @@ const Cs = de(
|
|
|
4493
4493
|
error: ["ds-text-danger-red-darkest", "ds-stroke-danger-red-darkest"]
|
|
4494
4494
|
}
|
|
4495
4495
|
}
|
|
4496
|
-
}), ze = (e) =>
|
|
4496
|
+
}), ze = (e) => xe(ys(e)), js = ({
|
|
4497
4497
|
variant: e = "info",
|
|
4498
4498
|
isDismissible: r = !0,
|
|
4499
4499
|
showIcon: n = !0,
|
|
@@ -4502,16 +4502,16 @@ const Cs = de(
|
|
|
4502
4502
|
description: s = "",
|
|
4503
4503
|
content: a = void 0,
|
|
4504
4504
|
closeAriaLabel: d = "Close button",
|
|
4505
|
-
id: c = "alert_" +
|
|
4505
|
+
id: c = "alert_" + Cs().toString(),
|
|
4506
4506
|
handleClose: f
|
|
4507
4507
|
}) => {
|
|
4508
4508
|
const u = {
|
|
4509
|
-
success: /* @__PURE__ */ i.jsx(
|
|
4510
|
-
info: /* @__PURE__ */ i.jsx(
|
|
4509
|
+
success: /* @__PURE__ */ i.jsx(Pt, { className: ze({ variant: e }) }),
|
|
4510
|
+
info: /* @__PURE__ */ i.jsx(Nt, { className: ze({ variant: e }) }),
|
|
4511
4511
|
warning: /* @__PURE__ */ i.jsx(At, { className: ze({ variant: e }) }),
|
|
4512
4512
|
error: /* @__PURE__ */ i.jsx(Ft, { className: ze({ variant: e }) })
|
|
4513
4513
|
}, p = () => a !== void 0 && s !== "" && !(t !== "none" || o !== ""), g = () => t === "large" ? "ds-flex-col ds-flex ds-gap-3" : t === "small" ? "ds-flex-row ds-flex ds-gap-3" : "ds-flex";
|
|
4514
|
-
return /* @__PURE__ */ i.jsxs("div", { id: c, className:
|
|
4514
|
+
return /* @__PURE__ */ i.jsxs("div", { id: c, className: ws({ variant: e }), children: [
|
|
4515
4515
|
/* @__PURE__ */ i.jsxs("div", { className: "ds-flex ds-flex-row", children: [
|
|
4516
4516
|
n && /* @__PURE__ */ i.jsx(
|
|
4517
4517
|
"div",
|
|
@@ -4563,36 +4563,36 @@ const Cs = de(
|
|
|
4563
4563
|
] }),
|
|
4564
4564
|
r === !0 && /* @__PURE__ */ i.jsx("button", { className: "ds-h-5", onClick: f, "aria-label": d, children: /* @__PURE__ */ i.jsx(Ot, { width: "1rem", height: "1rem", className: ze({ variant: e }) }) })
|
|
4565
4565
|
] });
|
|
4566
|
-
},
|
|
4566
|
+
}, Pa = js, Bt = (e, r, n, t) => {
|
|
4567
4567
|
const o = `preflight ${n}`;
|
|
4568
4568
|
return {
|
|
4569
|
-
settings: /* @__PURE__ */ i.jsx(
|
|
4570
|
-
questionCircle: /* @__PURE__ */ i.jsx(
|
|
4571
|
-
notifications: /* @__PURE__ */ i.jsx(
|
|
4572
|
-
flag: /* @__PURE__ */ i.jsx(
|
|
4573
|
-
edit: /* @__PURE__ */ i.jsx(
|
|
4574
|
-
infoCircle: /* @__PURE__ */ i.jsx(
|
|
4575
|
-
delete: /* @__PURE__ */ i.jsx(
|
|
4576
|
-
resourceCenter: /* @__PURE__ */ i.jsx(
|
|
4577
|
-
search: /* @__PURE__ */ i.jsx(
|
|
4569
|
+
settings: /* @__PURE__ */ i.jsx(ho, { width: e, height: r, className: o, title: t }),
|
|
4570
|
+
questionCircle: /* @__PURE__ */ i.jsx(fo, { width: e, height: r, className: o, title: t }),
|
|
4571
|
+
notifications: /* @__PURE__ */ i.jsx(ao, { width: e, height: r, className: o, title: t }),
|
|
4572
|
+
flag: /* @__PURE__ */ i.jsx(so, { width: e, height: r, className: o, title: t }),
|
|
4573
|
+
edit: /* @__PURE__ */ i.jsx(no, { width: e, height: r, className: o, title: t }),
|
|
4574
|
+
infoCircle: /* @__PURE__ */ i.jsx(Nt, { width: e, height: r, className: o, title: t }),
|
|
4575
|
+
delete: /* @__PURE__ */ i.jsx(xo, { width: e, height: r, className: o, title: t }),
|
|
4576
|
+
resourceCenter: /* @__PURE__ */ i.jsx(No, { width: e, height: r, className: o, title: t }),
|
|
4577
|
+
search: /* @__PURE__ */ i.jsx(So, { width: e, height: r, className: o, title: t }),
|
|
4578
4578
|
error: /* @__PURE__ */ i.jsx(Ft, { width: e, height: r, className: o, title: t }),
|
|
4579
4579
|
warning: /* @__PURE__ */ i.jsx(At, { width: e, height: r, className: o, title: t }),
|
|
4580
|
-
dropdown: /* @__PURE__ */ i.jsx(
|
|
4581
|
-
calendar: /* @__PURE__ */ i.jsx(
|
|
4582
|
-
bookmark: /* @__PURE__ */ i.jsx(
|
|
4583
|
-
menu: /* @__PURE__ */ i.jsx(
|
|
4584
|
-
add: /* @__PURE__ */ i.jsx(
|
|
4585
|
-
exclude: /* @__PURE__ */ i.jsx(
|
|
4586
|
-
email: /* @__PURE__ */ i.jsx(
|
|
4580
|
+
dropdown: /* @__PURE__ */ i.jsx(ko, { width: e, height: r, className: o, title: t }),
|
|
4581
|
+
calendar: /* @__PURE__ */ i.jsx(jo, { width: e, height: r, className: o, title: t }),
|
|
4582
|
+
bookmark: /* @__PURE__ */ i.jsx(Lo, { width: e, height: r, className: o, title: t }),
|
|
4583
|
+
menu: /* @__PURE__ */ i.jsx(Ao, { width: e, height: r, className: o, title: t }),
|
|
4584
|
+
add: /* @__PURE__ */ i.jsx(Oo, { width: e, height: r, className: o, title: t }),
|
|
4585
|
+
exclude: /* @__PURE__ */ i.jsx(bo, { width: e, height: r, className: o, title: t }),
|
|
4586
|
+
email: /* @__PURE__ */ i.jsx(go, { width: e, height: r, className: o, title: t }),
|
|
4587
4587
|
close: /* @__PURE__ */ i.jsx(Ot, { width: e, height: r, className: o, title: t }),
|
|
4588
|
-
checkCircle: /* @__PURE__ */ i.jsx(
|
|
4589
|
-
linkNewTab: /* @__PURE__ */ i.jsx(
|
|
4588
|
+
checkCircle: /* @__PURE__ */ i.jsx(Pt, { width: e, height: r, className: o, title: t }),
|
|
4589
|
+
linkNewTab: /* @__PURE__ */ i.jsx(Wo, { width: e, height: r, className: o, title: t })
|
|
4590
4590
|
};
|
|
4591
4591
|
}, zt = (e, r, n, t) => {
|
|
4592
4592
|
const o = `preflight ${n}`;
|
|
4593
4593
|
return {
|
|
4594
4594
|
notifications: /* @__PURE__ */ i.jsx(
|
|
4595
|
-
|
|
4595
|
+
co,
|
|
4596
4596
|
{
|
|
4597
4597
|
width: e,
|
|
4598
4598
|
height: r,
|
|
@@ -4601,7 +4601,7 @@ const Cs = de(
|
|
|
4601
4601
|
}
|
|
4602
4602
|
),
|
|
4603
4603
|
resourceCenter: /* @__PURE__ */ i.jsx(
|
|
4604
|
-
|
|
4604
|
+
Vo,
|
|
4605
4605
|
{
|
|
4606
4606
|
width: e,
|
|
4607
4607
|
height: r,
|
|
@@ -4610,7 +4610,7 @@ const Cs = de(
|
|
|
4610
4610
|
}
|
|
4611
4611
|
),
|
|
4612
4612
|
bookmark: /* @__PURE__ */ i.jsx(
|
|
4613
|
-
|
|
4613
|
+
To,
|
|
4614
4614
|
{
|
|
4615
4615
|
width: e,
|
|
4616
4616
|
height: r,
|
|
@@ -4619,7 +4619,7 @@ const Cs = de(
|
|
|
4619
4619
|
}
|
|
4620
4620
|
)
|
|
4621
4621
|
};
|
|
4622
|
-
},
|
|
4622
|
+
}, Es = ({
|
|
4623
4623
|
size: e = "small",
|
|
4624
4624
|
name: r,
|
|
4625
4625
|
hasIndicator: n = !1,
|
|
@@ -4647,7 +4647,7 @@ const Cs = de(
|
|
|
4647
4647
|
o
|
|
4648
4648
|
), c = n && d[r] || a[r];
|
|
4649
4649
|
return /* @__PURE__ */ i.jsx(i.Fragment, { children: c });
|
|
4650
|
-
}, We =
|
|
4650
|
+
}, We = Es;
|
|
4651
4651
|
Object.keys(Bt()).sort(
|
|
4652
4652
|
(e, r) => e.localeCompare(r)
|
|
4653
4653
|
);
|
|
@@ -4668,12 +4668,12 @@ function Ut(e) {
|
|
|
4668
4668
|
e[n] && (t && (t += " "), t += n);
|
|
4669
4669
|
return t;
|
|
4670
4670
|
}
|
|
4671
|
-
function
|
|
4671
|
+
function Ls() {
|
|
4672
4672
|
for (var e, r, n = 0, t = "", o = arguments.length; n < o; n++)
|
|
4673
4673
|
(e = arguments[n]) && (r = Ut(e)) && (t && (t += " "), t += r);
|
|
4674
4674
|
return t;
|
|
4675
4675
|
}
|
|
4676
|
-
const yt = (...e) =>
|
|
4676
|
+
const yt = (...e) => xe(Ls(...e)), Pr = [
|
|
4677
4677
|
"disabled:ds-bg-neutrals-lighter",
|
|
4678
4678
|
"disabled:ds-text-neutrals-dark",
|
|
4679
4679
|
"disabled:ds-border-neutrals-light",
|
|
@@ -4696,7 +4696,7 @@ const yt = (...e) => Me(Es(...e)), Nr = [
|
|
|
4696
4696
|
"focus-visible:ds-border-neutrals-dark",
|
|
4697
4697
|
"focus-visible:ds-ring-neutrals-black",
|
|
4698
4698
|
...Gt
|
|
4699
|
-
], Et =
|
|
4699
|
+
], Et = ee(
|
|
4700
4700
|
[
|
|
4701
4701
|
"preflight",
|
|
4702
4702
|
// Need to specify the font because disabling preflight makes the button not inherit the font
|
|
@@ -4733,7 +4733,7 @@ const yt = (...e) => Me(Es(...e)), Nr = [
|
|
|
4733
4733
|
"focus-visible:ds-bg-acuity-blue-light",
|
|
4734
4734
|
"focus-visible:ds-border-acuity-blue",
|
|
4735
4735
|
"focus-visible:ds-ring-acuity-blue",
|
|
4736
|
-
...
|
|
4736
|
+
...Pr
|
|
4737
4737
|
],
|
|
4738
4738
|
secondary: [
|
|
4739
4739
|
"ds-py-3",
|
|
@@ -4750,7 +4750,7 @@ const yt = (...e) => Me(Es(...e)), Nr = [
|
|
|
4750
4750
|
"focus-visible:ds-bg-neutrals-lighter",
|
|
4751
4751
|
"focus-visible:ds-border-neutrals-black",
|
|
4752
4752
|
"focus-visible:ds-ring-neutrals-black",
|
|
4753
|
-
...
|
|
4753
|
+
...Pr
|
|
4754
4754
|
],
|
|
4755
4755
|
danger: [
|
|
4756
4756
|
"ds-py-3",
|
|
@@ -4767,7 +4767,7 @@ const yt = (...e) => Me(Es(...e)), Nr = [
|
|
|
4767
4767
|
"focus-visible:ds-bg-danger-red-lighter",
|
|
4768
4768
|
"focus-visible:ds-border-danger-red-darkest",
|
|
4769
4769
|
"focus-visible:ds-ring-danger-red-darkest",
|
|
4770
|
-
...
|
|
4770
|
+
...Pr
|
|
4771
4771
|
],
|
|
4772
4772
|
inline: [
|
|
4773
4773
|
"ds-p-1",
|
|
@@ -4790,7 +4790,7 @@ const yt = (...e) => Me(Es(...e)), Nr = [
|
|
|
4790
4790
|
}
|
|
4791
4791
|
}
|
|
4792
4792
|
}
|
|
4793
|
-
),
|
|
4793
|
+
), $s = ({
|
|
4794
4794
|
variant: e = "primary",
|
|
4795
4795
|
text: r,
|
|
4796
4796
|
label: n = "",
|
|
@@ -4872,16 +4872,16 @@ const yt = (...e) => Me(Es(...e)), Nr = [
|
|
|
4872
4872
|
)
|
|
4873
4873
|
] })
|
|
4874
4874
|
}
|
|
4875
|
-
) }),
|
|
4876
|
-
|
|
4875
|
+
) }), Yt = $s, Ts = ({
|
|
4876
|
+
content: e = void 0,
|
|
4877
4877
|
iconName: r = void 0,
|
|
4878
4878
|
title: n = "",
|
|
4879
|
-
|
|
4879
|
+
footer: t = void 0,
|
|
4880
4880
|
className: o = ""
|
|
4881
4881
|
}) => /* @__PURE__ */ i.jsxs(
|
|
4882
4882
|
"div",
|
|
4883
4883
|
{
|
|
4884
|
-
className:
|
|
4884
|
+
className: xe(
|
|
4885
4885
|
"preflight ds-flex ds-flex-col ds-items-start ds-gap-6 ds-rounded-lg ds-border ds-border-neutrals-light ds-p-5",
|
|
4886
4886
|
o
|
|
4887
4887
|
),
|
|
@@ -4897,13 +4897,13 @@ const yt = (...e) => Me(Es(...e)), Nr = [
|
|
|
4897
4897
|
altText: r
|
|
4898
4898
|
}
|
|
4899
4899
|
),
|
|
4900
|
-
/* @__PURE__ */ i.jsx(
|
|
4900
|
+
/* @__PURE__ */ i.jsx(Kt, { size: "small", text: n, hasMarginBottom: !1 })
|
|
4901
4901
|
] }),
|
|
4902
4902
|
e && /* @__PURE__ */ i.jsx("div", { className: "ds-text-base", children: e }),
|
|
4903
4903
|
t && /* @__PURE__ */ i.jsx("div", { children: t })
|
|
4904
4904
|
]
|
|
4905
4905
|
}
|
|
4906
|
-
),
|
|
4906
|
+
), Aa = Ts, Ms = ee(
|
|
4907
4907
|
[
|
|
4908
4908
|
"preflight",
|
|
4909
4909
|
"ds-h-4",
|
|
@@ -4931,7 +4931,7 @@ const yt = (...e) => Me(Es(...e)), Nr = [
|
|
|
4931
4931
|
}
|
|
4932
4932
|
}
|
|
4933
4933
|
}
|
|
4934
|
-
),
|
|
4934
|
+
), Zt = (e) => xe(Ms(e)), Ss = ee(
|
|
4935
4935
|
["preflight", "ds-font-base", "!ds-font-sans", "ds-ml-2", "ds-text-base"],
|
|
4936
4936
|
{
|
|
4937
4937
|
variants: {
|
|
@@ -4941,44 +4941,39 @@ const yt = (...e) => Me(Es(...e)), Nr = [
|
|
|
4941
4941
|
}
|
|
4942
4942
|
}
|
|
4943
4943
|
}
|
|
4944
|
-
),
|
|
4945
|
-
id: e
|
|
4944
|
+
), qt = (e) => xe(Ss(e)), Rs = ({
|
|
4945
|
+
id: e,
|
|
4946
4946
|
label: r = "",
|
|
4947
4947
|
name: n = "",
|
|
4948
4948
|
checked: t = !1,
|
|
4949
4949
|
disabled: o = !1,
|
|
4950
4950
|
indeterminate: s = !1,
|
|
4951
4951
|
...a
|
|
4952
|
-
}) => {
|
|
4953
|
-
|
|
4954
|
-
|
|
4955
|
-
|
|
4956
|
-
|
|
4957
|
-
|
|
4958
|
-
|
|
4959
|
-
|
|
4960
|
-
|
|
4961
|
-
|
|
4962
|
-
|
|
4963
|
-
|
|
4964
|
-
|
|
4965
|
-
|
|
4966
|
-
|
|
4967
|
-
|
|
4968
|
-
}
|
|
4969
|
-
),
|
|
4970
|
-
/* @__PURE__ */ i.jsx("label", { htmlFor: e, className: Zt({ disabled: o }), children: r })
|
|
4971
|
-
] });
|
|
4972
|
-
}, Pa = Rs, De = "large", Ye = "medium", Ze = "small", qe = "extra-large", Lt = "h1", Ps = "h2", Ns = "h3", As = "div";
|
|
4952
|
+
}) => /* @__PURE__ */ i.jsxs("div", { className: "ds-flex ds-h-4 ds-items-center", children: [
|
|
4953
|
+
/* @__PURE__ */ i.jsx(
|
|
4954
|
+
"input",
|
|
4955
|
+
{
|
|
4956
|
+
id: e,
|
|
4957
|
+
name: n,
|
|
4958
|
+
disabled: o,
|
|
4959
|
+
type: "checkbox",
|
|
4960
|
+
className: `ds-form-checkbox ${Zt({ disabled: o })} ds-rounded`,
|
|
4961
|
+
checked: t,
|
|
4962
|
+
ref: (d) => d && (d.indeterminate = s),
|
|
4963
|
+
...a
|
|
4964
|
+
}
|
|
4965
|
+
),
|
|
4966
|
+
/* @__PURE__ */ i.jsx("label", { htmlFor: e, className: qt({ disabled: o }), children: r })
|
|
4967
|
+
] }), Fa = Rs, De = "large", Ye = "medium", Ze = "small", qe = "extra-large", Lt = "h1", Ns = "h2", Ps = "h3", As = "div";
|
|
4973
4968
|
function Fs(e) {
|
|
4974
4969
|
return {
|
|
4975
4970
|
[De]: Lt,
|
|
4976
|
-
[Ye]:
|
|
4977
|
-
[Ze]:
|
|
4971
|
+
[Ye]: Ns,
|
|
4972
|
+
[Ze]: Ps,
|
|
4978
4973
|
[qe]: As
|
|
4979
4974
|
}[e] || Lt;
|
|
4980
4975
|
}
|
|
4981
|
-
const Os =
|
|
4976
|
+
const Os = ee("preflight !ds-font-sans", {
|
|
4982
4977
|
variants: {
|
|
4983
4978
|
size: {
|
|
4984
4979
|
[Ze]: "ds-mb-3",
|
|
@@ -4987,7 +4982,7 @@ const Os = de("preflight !ds-font-sans", {
|
|
|
4987
4982
|
[qe]: "ds-mb-6"
|
|
4988
4983
|
}
|
|
4989
4984
|
}
|
|
4990
|
-
}), vr =
|
|
4985
|
+
}), vr = ee("ds-text-neutrals-darker !ds-font-sans", {
|
|
4991
4986
|
variants: {
|
|
4992
4987
|
size: {
|
|
4993
4988
|
[Ze]: "ds-text-xl ds-font-semibold",
|
|
@@ -4996,7 +4991,7 @@ const Os = de("preflight !ds-font-sans", {
|
|
|
4996
4991
|
[qe]: "ds-text-4xl ds-font-semibold"
|
|
4997
4992
|
}
|
|
4998
4993
|
}
|
|
4999
|
-
}), _s =
|
|
4994
|
+
}), _s = ee("ds-mt-0 ds-font-bold ds-text-neutrals-dark", {
|
|
5000
4995
|
variants: {
|
|
5001
4996
|
size: {
|
|
5002
4997
|
[Ze]: "ds-mb-1 ds-text-sm",
|
|
@@ -5005,7 +5000,7 @@ const Os = de("preflight !ds-font-sans", {
|
|
|
5005
5000
|
[qe]: "ds-mb-3 ds-text-base"
|
|
5006
5001
|
}
|
|
5007
5002
|
}
|
|
5008
|
-
}), Ws =
|
|
5003
|
+
}), Ws = ee("ds-mb-0 ds-text-neutrals-dark", {
|
|
5009
5004
|
variants: {
|
|
5010
5005
|
size: {
|
|
5011
5006
|
[Ze]: "ds-mt-1 ds-text-base",
|
|
@@ -5014,7 +5009,7 @@ const Os = de("preflight !ds-font-sans", {
|
|
|
5014
5009
|
[qe]: "ds-mt-3 ds-text-base"
|
|
5015
5010
|
}
|
|
5016
5011
|
}
|
|
5017
|
-
}), Is =
|
|
5012
|
+
}), Is = ee("ds-text-neutrals-light", {
|
|
5018
5013
|
variants: {
|
|
5019
5014
|
size: {
|
|
5020
5015
|
[Ze]: "ds-mt-2",
|
|
@@ -5040,26 +5035,26 @@ const Os = de("preflight !ds-font-sans", {
|
|
|
5040
5035
|
h2: /* @__PURE__ */ i.jsx("h2", { className: vr({ size: e }), children: n }),
|
|
5041
5036
|
h1: /* @__PURE__ */ i.jsx("h1", { className: vr({ size: e }), children: n })
|
|
5042
5037
|
};
|
|
5043
|
-
return /* @__PURE__ */ i.jsxs("div", { className:
|
|
5038
|
+
return /* @__PURE__ */ i.jsxs("div", { className: xe(g, r), ...c, children: [
|
|
5044
5039
|
f,
|
|
5045
5040
|
v[d || Fs(e)],
|
|
5046
5041
|
u,
|
|
5047
5042
|
p
|
|
5048
5043
|
] });
|
|
5049
|
-
},
|
|
5044
|
+
}, Kt = Vs, Ds = ({ label: e = "", name: r, id: n, disabled: t = !1, ...o }) => /* @__PURE__ */ i.jsxs("div", { className: "ds-flex ds-h-4 ds-items-center", children: [
|
|
5050
5045
|
/* @__PURE__ */ i.jsx(
|
|
5051
5046
|
"input",
|
|
5052
5047
|
{
|
|
5053
5048
|
id: n,
|
|
5054
5049
|
name: r,
|
|
5055
5050
|
type: "radio",
|
|
5056
|
-
className: `ds-form-radio ${
|
|
5051
|
+
className: `ds-form-radio ${Zt({ disabled: t })}`,
|
|
5057
5052
|
disabled: t,
|
|
5058
5053
|
...o
|
|
5059
5054
|
}
|
|
5060
5055
|
),
|
|
5061
|
-
/* @__PURE__ */ i.jsx("label", { htmlFor: n, className:
|
|
5062
|
-
] }),
|
|
5056
|
+
/* @__PURE__ */ i.jsx("label", { htmlFor: n, className: qt({ disabled: t }), children: e })
|
|
5057
|
+
] }), Oa = Ds, Hs = ee(
|
|
5063
5058
|
[
|
|
5064
5059
|
"preflight",
|
|
5065
5060
|
"!ds-font-sans",
|
|
@@ -5098,10 +5093,10 @@ const Os = de("preflight !ds-font-sans", {
|
|
|
5098
5093
|
type: n = "default",
|
|
5099
5094
|
iconName: t,
|
|
5100
5095
|
...o
|
|
5101
|
-
}) => /* @__PURE__ */ i.jsxs("a", { href: r, type: n, className:
|
|
5096
|
+
}) => /* @__PURE__ */ i.jsxs("a", { href: r, type: n, className: xe(Hs({ type: n })), ...o, children: [
|
|
5102
5097
|
e,
|
|
5103
5098
|
t && /* @__PURE__ */ i.jsx(We, { altText: e, name: t, size: "small" })
|
|
5104
|
-
] }),
|
|
5099
|
+
] }), _a = Bs;
|
|
5105
5100
|
var zs = Object.defineProperty, Us = (e, r, n) => r in e ? zs(e, r, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[r] = n, Ar = (e, r, n) => (Us(e, typeof r != "symbol" ? r + "" : r, n), n);
|
|
5106
5101
|
let Gs = class {
|
|
5107
5102
|
constructor() {
|
|
@@ -5181,13 +5176,13 @@ function Oe() {
|
|
|
5181
5176
|
}
|
|
5182
5177
|
function Kr() {
|
|
5183
5178
|
let [e] = me(Oe);
|
|
5184
|
-
return
|
|
5179
|
+
return oe(() => () => e.dispose(), [e]), e;
|
|
5185
5180
|
}
|
|
5186
5181
|
let Z = (e, r) => {
|
|
5187
|
-
Ve.isServer ?
|
|
5182
|
+
Ve.isServer ? oe(e, r) : Dn(e, r);
|
|
5188
5183
|
};
|
|
5189
5184
|
function Ce(e) {
|
|
5190
|
-
let r =
|
|
5185
|
+
let r = N(e);
|
|
5191
5186
|
return Z(() => {
|
|
5192
5187
|
r.current = e;
|
|
5193
5188
|
}, [e]), r;
|
|
@@ -5195,9 +5190,9 @@ function Ce(e) {
|
|
|
5195
5190
|
let A = function(e) {
|
|
5196
5191
|
let r = Ce(e);
|
|
5197
5192
|
return j.useCallback((...n) => r.current(...n), [r]);
|
|
5198
|
-
}, Ys =
|
|
5193
|
+
}, Ys = de(void 0);
|
|
5199
5194
|
function Zs() {
|
|
5200
|
-
return
|
|
5195
|
+
return Q(Ys);
|
|
5201
5196
|
}
|
|
5202
5197
|
function ir(...e) {
|
|
5203
5198
|
return Array.from(new Set(e.flatMap((r) => typeof r == "string" ? r.split(" ") : []))).filter(Boolean).join(" ");
|
|
@@ -5213,7 +5208,7 @@ function B(e, r, ...n) {
|
|
|
5213
5208
|
var xr = ((e) => (e[e.None = 0] = "None", e[e.RenderStrategy = 1] = "RenderStrategy", e[e.Static = 2] = "Static", e))(xr || {}), Fe = ((e) => (e[e.Unmount = 0] = "Unmount", e[e.Hidden = 1] = "Hidden", e))(Fe || {});
|
|
5214
5209
|
function ge({ ourProps: e, theirProps: r, slot: n, defaultTag: t, features: o, visible: s = !0, name: a, mergeRefs: d }) {
|
|
5215
5210
|
d = d != null ? d : qs;
|
|
5216
|
-
let c =
|
|
5211
|
+
let c = Jt(r, e);
|
|
5217
5212
|
if (s)
|
|
5218
5213
|
return br(c, n, t, a, d);
|
|
5219
5214
|
let f = o != null ? o : 0;
|
|
@@ -5246,20 +5241,20 @@ function br(e, r = {}, n, t, o) {
|
|
|
5246
5241
|
p[`data-${C}`] = "";
|
|
5247
5242
|
}
|
|
5248
5243
|
}
|
|
5249
|
-
if (s ===
|
|
5250
|
-
if (!
|
|
5244
|
+
if (s === le && (Object.keys(Ue(c)).length > 0 || Object.keys(Ue(p)).length > 0))
|
|
5245
|
+
if (!Bn(u) || Array.isArray(u) && u.length > 1) {
|
|
5251
5246
|
if (Object.keys(Ue(c)).length > 0)
|
|
5252
5247
|
throw new Error(['Passing props on "Fragment"!', "", `The current component <${t} /> is rendering a "Fragment".`, "However we need to passthrough the following props:", Object.keys(Ue(c)).concat(Object.keys(Ue(p))).map((g) => ` - ${g}`).join(`
|
|
5253
5248
|
`), "", "You can apply a few solutions:", ['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".', "Render a single element as the child so that we can forward the props onto that element."].map((g) => ` - ${g}`).join(`
|
|
5254
5249
|
`)].join(`
|
|
5255
5250
|
`));
|
|
5256
5251
|
} else {
|
|
5257
|
-
let g = u.props, v = g == null ? void 0 : g.className, C = typeof v == "function" ? (...w) => ir(v(...w), c.className) : ir(v, c.className), x = C ? { className: C } : {}, b =
|
|
5252
|
+
let g = u.props, v = g == null ? void 0 : g.className, C = typeof v == "function" ? (...w) => ir(v(...w), c.className) : ir(v, c.className), x = C ? { className: C } : {}, b = Jt(u.props, Ue(Fr(c, ["ref"])));
|
|
5258
5253
|
for (let w in p)
|
|
5259
5254
|
w in b && delete p[w];
|
|
5260
|
-
return
|
|
5255
|
+
return zn(u, Object.assign({}, b, p, f, { ref: o(u.ref, f.ref) }, x));
|
|
5261
5256
|
}
|
|
5262
|
-
return
|
|
5257
|
+
return Un(s, Object.assign({}, Fr(c, ["ref"]), s !== le && f, s !== le && p), u);
|
|
5263
5258
|
}
|
|
5264
5259
|
function qs(...e) {
|
|
5265
5260
|
return e.every((r) => r == null) ? void 0 : (r) => {
|
|
@@ -5267,7 +5262,7 @@ function qs(...e) {
|
|
|
5267
5262
|
n != null && (typeof n == "function" ? n(r) : n.current = r);
|
|
5268
5263
|
};
|
|
5269
5264
|
}
|
|
5270
|
-
function
|
|
5265
|
+
function Jt(...e) {
|
|
5271
5266
|
if (e.length === 0)
|
|
5272
5267
|
return {};
|
|
5273
5268
|
if (e.length === 1)
|
|
@@ -5295,7 +5290,7 @@ function Kt(...e) {
|
|
|
5295
5290
|
}
|
|
5296
5291
|
function ce(e) {
|
|
5297
5292
|
var r;
|
|
5298
|
-
return Object.assign(
|
|
5293
|
+
return Object.assign(Hn(e), { displayName: (r = e.displayName) != null ? r : e.name });
|
|
5299
5294
|
}
|
|
5300
5295
|
function Ue(e) {
|
|
5301
5296
|
let r = Object.assign({}, e);
|
|
@@ -5316,59 +5311,59 @@ function Js(e, r) {
|
|
|
5316
5311
|
let { features: t = 1, ...o } = e, s = { ref: r, "aria-hidden": (t & 2) === 2 ? !0 : (n = o["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" } } };
|
|
5317
5312
|
return ge({ ourProps: s, theirProps: o, slot: {}, defaultTag: Ks, name: "Hidden" });
|
|
5318
5313
|
}
|
|
5319
|
-
let Vr = ce(Js), Xs =
|
|
5314
|
+
let Vr = ce(Js), Xs = de(null);
|
|
5320
5315
|
function Qs({ children: e }) {
|
|
5321
|
-
let r =
|
|
5316
|
+
let r = Q(Xs);
|
|
5322
5317
|
if (!r)
|
|
5323
5318
|
return j.createElement(j.Fragment, null, e);
|
|
5324
5319
|
let { target: n } = r;
|
|
5325
5320
|
return n ? Rt(j.createElement(j.Fragment, null, e), n) : null;
|
|
5326
5321
|
}
|
|
5327
|
-
let
|
|
5322
|
+
let Xt = Symbol();
|
|
5328
5323
|
function ei(e, r = !0) {
|
|
5329
|
-
return Object.assign(e, { [
|
|
5324
|
+
return Object.assign(e, { [Xt]: r });
|
|
5330
5325
|
}
|
|
5331
|
-
function
|
|
5332
|
-
let r =
|
|
5333
|
-
|
|
5326
|
+
function we(...e) {
|
|
5327
|
+
let r = N(e);
|
|
5328
|
+
oe(() => {
|
|
5334
5329
|
r.current = e;
|
|
5335
5330
|
}, [e]);
|
|
5336
5331
|
let n = A((t) => {
|
|
5337
5332
|
for (let o of r.current)
|
|
5338
5333
|
o != null && (typeof o == "function" ? o(t) : o.current = t);
|
|
5339
5334
|
});
|
|
5340
|
-
return e.every((t) => t == null || (t == null ? void 0 : t[
|
|
5335
|
+
return e.every((t) => t == null || (t == null ? void 0 : t[Xt])) ? void 0 : n;
|
|
5341
5336
|
}
|
|
5342
|
-
let Jr =
|
|
5337
|
+
let Jr = de(null);
|
|
5343
5338
|
Jr.displayName = "DescriptionContext";
|
|
5344
|
-
function
|
|
5345
|
-
let e =
|
|
5339
|
+
function Qt() {
|
|
5340
|
+
let e = Q(Jr);
|
|
5346
5341
|
if (e === null) {
|
|
5347
5342
|
let r = new Error("You used a <Description /> component, but it is not inside a relevant parent.");
|
|
5348
|
-
throw Error.captureStackTrace && Error.captureStackTrace(r,
|
|
5343
|
+
throw Error.captureStackTrace && Error.captureStackTrace(r, Qt), r;
|
|
5349
5344
|
}
|
|
5350
5345
|
return e;
|
|
5351
5346
|
}
|
|
5352
5347
|
function ri() {
|
|
5353
5348
|
let [e, r] = me([]);
|
|
5354
|
-
return [e.length > 0 ? e.join(" ") : void 0,
|
|
5349
|
+
return [e.length > 0 ? e.join(" ") : void 0, se(() => function(n) {
|
|
5355
5350
|
let t = A((s) => (r((a) => [...a, s]), () => r((a) => {
|
|
5356
5351
|
let d = a.slice(), c = d.indexOf(s);
|
|
5357
5352
|
return c !== -1 && d.splice(c, 1), d;
|
|
5358
|
-
}))), o =
|
|
5353
|
+
}))), o = se(() => ({ register: t, slot: n.slot, name: n.name, props: n.props, value: n.value }), [t, n.slot, n.name, n.props, n.value]);
|
|
5359
5354
|
return j.createElement(Jr.Provider, { value: o }, n.children);
|
|
5360
5355
|
}, [r])];
|
|
5361
5356
|
}
|
|
5362
5357
|
let ti = "p";
|
|
5363
5358
|
function ni(e, r) {
|
|
5364
|
-
let n = yr(), t = Zs(), { id: o = `headlessui-description-${n}`, ...s } = e, a =
|
|
5359
|
+
let n = yr(), t = Zs(), { id: o = `headlessui-description-${n}`, ...s } = e, a = Qt(), d = we(r);
|
|
5365
5360
|
Z(() => a.register(o), [o, a.register]);
|
|
5366
|
-
let c = t || !1, f =
|
|
5361
|
+
let c = t || !1, f = se(() => ({ ...a.slot, disabled: c }), [a.slot, c]), u = { ref: d, ...a.props, id: o };
|
|
5367
5362
|
return ge({ ourProps: u, theirProps: s, slot: f, defaultTag: ti, name: a.name || "Description" });
|
|
5368
5363
|
}
|
|
5369
5364
|
let oi = ce(ni), si = Object.assign(oi, {});
|
|
5370
|
-
var
|
|
5371
|
-
let ii =
|
|
5365
|
+
var en = ((e) => (e.Space = " ", e.Enter = "Enter", e.Escape = "Escape", e.Backspace = "Backspace", e.Delete = "Delete", e.ArrowLeft = "ArrowLeft", e.ArrowUp = "ArrowUp", e.ArrowRight = "ArrowRight", e.ArrowDown = "ArrowDown", e.Home = "Home", e.End = "End", e.PageUp = "PageUp", e.PageDown = "PageDown", e.Tab = "Tab", e))(en || {});
|
|
5366
|
+
let ii = de(() => {
|
|
5372
5367
|
});
|
|
5373
5368
|
function ai({ value: e, children: r }) {
|
|
5374
5369
|
return j.createElement(ii.Provider, { value: e }, r);
|
|
@@ -5412,12 +5407,12 @@ function li({ allowed: e, disallowed: r } = {}, n = !0) {
|
|
|
5412
5407
|
return s.dispose;
|
|
5413
5408
|
}, [n, e, r]);
|
|
5414
5409
|
}
|
|
5415
|
-
function
|
|
5410
|
+
function rn(e, r, n = !0) {
|
|
5416
5411
|
let t = Ce((o) => {
|
|
5417
5412
|
let s = o.getBoundingClientRect();
|
|
5418
5413
|
s.x === 0 && s.y === 0 && s.width === 0 && s.height === 0 && r();
|
|
5419
5414
|
});
|
|
5420
|
-
|
|
5415
|
+
oe(() => {
|
|
5421
5416
|
if (!n)
|
|
5422
5417
|
return;
|
|
5423
5418
|
let o = e === null ? null : e instanceof HTMLElement ? e : e.current;
|
|
@@ -5436,14 +5431,14 @@ function en(e, r, n = !0) {
|
|
|
5436
5431
|
}, [e, t, n]);
|
|
5437
5432
|
}
|
|
5438
5433
|
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(","), di = ["[data-autofocus]"].map((e) => `${e}:not([tabindex='-1'])`).join(",");
|
|
5439
|
-
var
|
|
5434
|
+
var Te = ((e) => (e[e.First = 1] = "First", e[e.Previous = 2] = "Previous", e[e.Next = 4] = "Next", e[e.Last = 8] = "Last", e[e.WrapAround = 16] = "WrapAround", e[e.NoScroll = 32] = "NoScroll", e[e.AutoFocus = 64] = "AutoFocus", e))(Te || {}), Br = ((e) => (e[e.Error = 0] = "Error", e[e.Overflow = 1] = "Overflow", e[e.Success = 2] = "Success", e[e.Underflow = 3] = "Underflow", e))(Br || {}), ci = ((e) => (e[e.Previous = -1] = "Previous", e[e.Next = 1] = "Next", e))(ci || {});
|
|
5440
5435
|
function ui(e = document.body) {
|
|
5441
5436
|
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)));
|
|
5442
5437
|
}
|
|
5443
5438
|
function fi(e = document.body) {
|
|
5444
5439
|
return e == null ? [] : Array.from(e.querySelectorAll(di)).sort((r, n) => Math.sign((r.tabIndex || Number.MAX_SAFE_INTEGER) - (n.tabIndex || Number.MAX_SAFE_INTEGER)));
|
|
5445
5440
|
}
|
|
5446
|
-
var
|
|
5441
|
+
var tn = ((e) => (e[e.Strict = 0] = "Strict", e[e.Loose = 1] = "Loose", e))(tn || {});
|
|
5447
5442
|
function pi(e, r = 0) {
|
|
5448
5443
|
var n;
|
|
5449
5444
|
return e === ((n = qr(e)) == null ? void 0 : n.body) ? !1 : B(r, { 0() {
|
|
@@ -5464,7 +5459,7 @@ typeof window != "undefined" && typeof document != "undefined" && (document.addE
|
|
|
5464
5459
|
}, !0), document.addEventListener("click", (e) => {
|
|
5465
5460
|
e.detail === 1 ? delete document.documentElement.dataset.headlessuiFocusVisible : e.detail === 0 && (document.documentElement.dataset.headlessuiFocusVisible = "");
|
|
5466
5461
|
}, !0));
|
|
5467
|
-
function
|
|
5462
|
+
function Me(e) {
|
|
5468
5463
|
e == null || e.focus({ preventScroll: !0 });
|
|
5469
5464
|
}
|
|
5470
5465
|
let mi = ["textarea", "input"].join(",");
|
|
@@ -5517,27 +5512,27 @@ function lr(e, r, { sorted: n = !0, relativeTo: t = null, skipElements: o = [] }
|
|
|
5517
5512
|
} while (g !== s.activeElement);
|
|
5518
5513
|
return r & 6 && gi(g) && g.select(), 2;
|
|
5519
5514
|
}
|
|
5520
|
-
function
|
|
5515
|
+
function nn() {
|
|
5521
5516
|
return /iPhone/gi.test(window.navigator.platform) || /Mac/gi.test(window.navigator.platform) && window.navigator.maxTouchPoints > 0;
|
|
5522
5517
|
}
|
|
5523
5518
|
function bi() {
|
|
5524
5519
|
return /Android/gi.test(window.navigator.userAgent);
|
|
5525
5520
|
}
|
|
5526
5521
|
function Ci() {
|
|
5527
|
-
return
|
|
5522
|
+
return nn() || bi();
|
|
5528
5523
|
}
|
|
5529
5524
|
function Cr(e, r, n) {
|
|
5530
5525
|
let t = Ce(r);
|
|
5531
|
-
|
|
5526
|
+
oe(() => {
|
|
5532
5527
|
function o(s) {
|
|
5533
5528
|
t.current(s);
|
|
5534
5529
|
}
|
|
5535
5530
|
return document.addEventListener(e, o, n), () => document.removeEventListener(e, o, n);
|
|
5536
5531
|
}, [e, n]);
|
|
5537
5532
|
}
|
|
5538
|
-
function
|
|
5533
|
+
function on(e, r, n) {
|
|
5539
5534
|
let t = Ce(r);
|
|
5540
|
-
|
|
5535
|
+
oe(() => {
|
|
5541
5536
|
function o(s) {
|
|
5542
5537
|
t.current(s);
|
|
5543
5538
|
}
|
|
@@ -5545,8 +5540,8 @@ function nn(e, r, n) {
|
|
|
5545
5540
|
}, [e, n]);
|
|
5546
5541
|
}
|
|
5547
5542
|
function xi(e, r, n = !0) {
|
|
5548
|
-
let t =
|
|
5549
|
-
|
|
5543
|
+
let t = N(!1);
|
|
5544
|
+
oe(() => {
|
|
5550
5545
|
requestAnimationFrame(() => {
|
|
5551
5546
|
t.current = n;
|
|
5552
5547
|
});
|
|
@@ -5567,9 +5562,9 @@ function xi(e, r, n = !0) {
|
|
|
5567
5562
|
if (p != null && p.contains(c) || a.composed && a.composedPath().includes(p))
|
|
5568
5563
|
return;
|
|
5569
5564
|
}
|
|
5570
|
-
return !pi(c,
|
|
5565
|
+
return !pi(c, tn.Loose) && c.tabIndex !== -1 && a.preventDefault(), r(a, c);
|
|
5571
5566
|
}
|
|
5572
|
-
let s =
|
|
5567
|
+
let s = N(null);
|
|
5573
5568
|
Cr("pointerdown", (a) => {
|
|
5574
5569
|
var d, c;
|
|
5575
5570
|
t.current && (s.current = ((c = (d = a.composedPath) == null ? void 0 : d.call(a)) == null ? void 0 : c[0]) || a.target);
|
|
@@ -5578,14 +5573,14 @@ function xi(e, r, n = !0) {
|
|
|
5578
5573
|
t.current && (s.current = ((c = (d = a.composedPath) == null ? void 0 : d.call(a)) == null ? void 0 : c[0]) || a.target);
|
|
5579
5574
|
}, !0), Cr("click", (a) => {
|
|
5580
5575
|
Ci() || s.current && (o(a, () => s.current), s.current = null);
|
|
5581
|
-
}, !0), Cr("touchend", (a) => o(a, () => a.target instanceof HTMLElement ? a.target : null), !0),
|
|
5576
|
+
}, !0), Cr("touchend", (a) => o(a, () => a.target instanceof HTMLElement ? a.target : null), !0), on("blur", (a) => o(a, () => window.document.activeElement instanceof HTMLIFrameElement ? window.document.activeElement : null), !0);
|
|
5582
5577
|
}
|
|
5583
5578
|
function dr(...e) {
|
|
5584
|
-
return
|
|
5579
|
+
return se(() => qr(...e), [...e]);
|
|
5585
5580
|
}
|
|
5586
|
-
function
|
|
5581
|
+
function sn(e, r, n, t) {
|
|
5587
5582
|
let o = Ce(n);
|
|
5588
|
-
|
|
5583
|
+
oe(() => {
|
|
5589
5584
|
e = e != null ? e : window;
|
|
5590
5585
|
function s(a) {
|
|
5591
5586
|
o.current(a);
|
|
@@ -5594,7 +5589,7 @@ function on(e, r, n, t) {
|
|
|
5594
5589
|
}, [e, r, t]);
|
|
5595
5590
|
}
|
|
5596
5591
|
function wi(e) {
|
|
5597
|
-
return
|
|
5592
|
+
return Gn(e.subscribe, e.getSnapshot, e.getSnapshot);
|
|
5598
5593
|
}
|
|
5599
5594
|
function ki(e, r) {
|
|
5600
5595
|
let n = e(), t = /* @__PURE__ */ new Set();
|
|
@@ -5619,7 +5614,7 @@ function yi() {
|
|
|
5619
5614
|
} };
|
|
5620
5615
|
}
|
|
5621
5616
|
function ji() {
|
|
5622
|
-
return
|
|
5617
|
+
return nn() ? { before({ doc: e, d: r, meta: n }) {
|
|
5623
5618
|
function t(o) {
|
|
5624
5619
|
return n.containers.flatMap((s) => s()).some((s) => s.contains(o));
|
|
5625
5620
|
}
|
|
@@ -5718,8 +5713,8 @@ function Ti(e, r, n = () => [document.body]) {
|
|
|
5718
5713
|
});
|
|
5719
5714
|
}
|
|
5720
5715
|
function Xr(e, r) {
|
|
5721
|
-
let n =
|
|
5722
|
-
|
|
5716
|
+
let n = N([]), t = A(e);
|
|
5717
|
+
oe(() => {
|
|
5723
5718
|
let o = [...n.current];
|
|
5724
5719
|
for (let [s, a] of r.entries())
|
|
5725
5720
|
if (n.current[s] !== a) {
|
|
@@ -5728,11 +5723,11 @@ function Xr(e, r) {
|
|
|
5728
5723
|
}
|
|
5729
5724
|
}, [t, ...r]);
|
|
5730
5725
|
}
|
|
5731
|
-
let Qr =
|
|
5726
|
+
let Qr = de(null);
|
|
5732
5727
|
Qr.displayName = "OpenClosedContext";
|
|
5733
5728
|
var ne = ((e) => (e[e.Open = 1] = "Open", e[e.Closed = 2] = "Closed", e[e.Closing = 4] = "Closing", e[e.Opening = 8] = "Opening", e))(ne || {});
|
|
5734
5729
|
function et() {
|
|
5735
|
-
return
|
|
5730
|
+
return Q(Qr);
|
|
5736
5731
|
}
|
|
5737
5732
|
function Mi({ value: e, children: r }) {
|
|
5738
5733
|
return j.createElement(Qr.Provider, { value: e }, r);
|
|
@@ -5750,9 +5745,9 @@ Si(() => {
|
|
|
5750
5745
|
}
|
|
5751
5746
|
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 });
|
|
5752
5747
|
});
|
|
5753
|
-
function
|
|
5754
|
-
let r = A(e), n =
|
|
5755
|
-
|
|
5748
|
+
function an(e) {
|
|
5749
|
+
let r = A(e), n = N(!1);
|
|
5750
|
+
oe(() => (n.current = !1, () => {
|
|
5756
5751
|
n.current = !0, jr(() => {
|
|
5757
5752
|
n.current && r();
|
|
5758
5753
|
});
|
|
@@ -5769,15 +5764,15 @@ function cr() {
|
|
|
5769
5764
|
r !== !0 && n(!0);
|
|
5770
5765
|
}, [r]), sr.useEffect(() => Ve.handoff(), []), e ? !1 : r;
|
|
5771
5766
|
}
|
|
5772
|
-
let
|
|
5773
|
-
function
|
|
5774
|
-
return
|
|
5767
|
+
let ln = de(!1);
|
|
5768
|
+
function Ni() {
|
|
5769
|
+
return Q(ln);
|
|
5775
5770
|
}
|
|
5776
5771
|
function Mt(e) {
|
|
5777
|
-
return j.createElement(
|
|
5772
|
+
return j.createElement(ln.Provider, { value: e.force }, e.children);
|
|
5778
5773
|
}
|
|
5779
|
-
function
|
|
5780
|
-
let r =
|
|
5774
|
+
function Pi(e) {
|
|
5775
|
+
let r = Ni(), n = Q(cn), t = dr(e), [o, s] = me(() => {
|
|
5781
5776
|
var a;
|
|
5782
5777
|
if (!r && n !== null)
|
|
5783
5778
|
return (a = n.current) != null ? a : null;
|
|
@@ -5791,45 +5786,45 @@ function Ni(e) {
|
|
|
5791
5786
|
let c = t.createElement("div");
|
|
5792
5787
|
return c.setAttribute("id", "headlessui-portal-root"), t.body.appendChild(c);
|
|
5793
5788
|
});
|
|
5794
|
-
return
|
|
5789
|
+
return oe(() => {
|
|
5795
5790
|
o !== null && (t != null && t.body.contains(o) || t == null || t.body.appendChild(o));
|
|
5796
|
-
}, [o, t]),
|
|
5791
|
+
}, [o, t]), oe(() => {
|
|
5797
5792
|
r || n !== null && s(n.current);
|
|
5798
5793
|
}, [n, s, r]), o;
|
|
5799
5794
|
}
|
|
5800
|
-
let
|
|
5801
|
-
let n = e, t =
|
|
5795
|
+
let dn = le, Ai = ce(function(e, r) {
|
|
5796
|
+
let n = e, t = N(null), o = we(ei((u) => {
|
|
5802
5797
|
t.current = u;
|
|
5803
|
-
}), r), s = dr(t), a =
|
|
5798
|
+
}), r), s = dr(t), a = Pi(t), [d] = me(() => {
|
|
5804
5799
|
var u;
|
|
5805
5800
|
return Ve.isServer ? null : (u = s == null ? void 0 : s.createElement("div")) != null ? u : null;
|
|
5806
|
-
}), c =
|
|
5801
|
+
}), c = Q(zr), f = cr();
|
|
5807
5802
|
return Z(() => {
|
|
5808
5803
|
!a || !d || a.contains(d) || (d.setAttribute("data-headlessui-portal", ""), a.appendChild(d));
|
|
5809
5804
|
}, [a, d]), Z(() => {
|
|
5810
5805
|
if (d && c)
|
|
5811
5806
|
return c.register(d);
|
|
5812
|
-
}, [c, d]),
|
|
5807
|
+
}, [c, d]), an(() => {
|
|
5813
5808
|
var u;
|
|
5814
5809
|
!a || !d || (d instanceof Node && a.contains(d) && a.removeChild(d), a.childNodes.length <= 0 && ((u = a.parentElement) == null || u.removeChild(a)));
|
|
5815
|
-
}), f ? !a || !d ? null : Rt(ge({ ourProps: { ref: o }, theirProps: n, slot: {}, defaultTag:
|
|
5810
|
+
}), f ? !a || !d ? null : Rt(ge({ ourProps: { ref: o }, theirProps: n, slot: {}, defaultTag: dn, name: "Portal" }), d) : null;
|
|
5816
5811
|
});
|
|
5817
5812
|
function Fi(e, r) {
|
|
5818
|
-
let n =
|
|
5819
|
-
return t ? j.createElement(Ai, { ...o, ref: n }) : ge({ ourProps: { ref: n }, theirProps: o, slot: {}, defaultTag:
|
|
5813
|
+
let n = we(r), { enabled: t = !0, ...o } = e;
|
|
5814
|
+
return t ? j.createElement(Ai, { ...o, ref: n }) : ge({ ourProps: { ref: n }, theirProps: o, slot: {}, defaultTag: dn, name: "Portal" });
|
|
5820
5815
|
}
|
|
5821
|
-
let Oi =
|
|
5816
|
+
let Oi = le, cn = de(null);
|
|
5822
5817
|
function _i(e, r) {
|
|
5823
|
-
let { target: n, ...t } = e, o = { ref:
|
|
5824
|
-
return j.createElement(
|
|
5818
|
+
let { target: n, ...t } = e, o = { ref: we(r) };
|
|
5819
|
+
return j.createElement(cn.Provider, { value: n }, ge({ ourProps: o, theirProps: t, defaultTag: Oi, name: "Popover.Group" }));
|
|
5825
5820
|
}
|
|
5826
|
-
let zr =
|
|
5821
|
+
let zr = de(null);
|
|
5827
5822
|
function Wi() {
|
|
5828
|
-
let e =
|
|
5823
|
+
let e = Q(zr), r = N([]), n = A((s) => (r.current.push(s), e && e.register(s), () => t(s))), t = A((s) => {
|
|
5829
5824
|
let a = r.current.indexOf(s);
|
|
5830
5825
|
a !== -1 && r.current.splice(a, 1), e && e.unregister(s);
|
|
5831
|
-
}), o =
|
|
5832
|
-
return [r,
|
|
5826
|
+
}), o = se(() => ({ register: n, unregister: t, portals: r }), [n, t, r]);
|
|
5827
|
+
return [r, se(() => function({ children: s }) {
|
|
5833
5828
|
return j.createElement(zr.Provider, { value: o }, s);
|
|
5834
5829
|
}, [o])];
|
|
5835
5830
|
}
|
|
@@ -5848,7 +5843,7 @@ function Di() {
|
|
|
5848
5843
|
}
|
|
5849
5844
|
function Hi({ defaultContainers: e = [], portals: r, mainTreeNodeRef: n } = {}) {
|
|
5850
5845
|
var t;
|
|
5851
|
-
let o =
|
|
5846
|
+
let o = N((t = n == null ? void 0 : n.current) != null ? t : null), s = dr(o), a = A(() => {
|
|
5852
5847
|
var d, c, f;
|
|
5853
5848
|
let u = [];
|
|
5854
5849
|
for (let p of e)
|
|
@@ -5860,16 +5855,16 @@ function Hi({ defaultContainers: e = [], portals: r, mainTreeNodeRef: n } = {})
|
|
|
5860
5855
|
p !== document.body && p !== document.head && p instanceof HTMLElement && p.id !== "headlessui-portal-root" && (p.contains(o.current) || p.contains((f = (c = o.current) == null ? void 0 : c.getRootNode()) == null ? void 0 : f.host) || u.some((g) => p.contains(g)) || u.push(p));
|
|
5861
5856
|
return u;
|
|
5862
5857
|
});
|
|
5863
|
-
return { resolveContainers: a, contains: A((d) => a().some((c) => c.contains(d))), mainTreeNodeRef: o, MainTreeNode:
|
|
5858
|
+
return { resolveContainers: a, contains: A((d) => a().some((c) => c.contains(d))), mainTreeNodeRef: o, MainTreeNode: se(() => function() {
|
|
5864
5859
|
return n != null ? null : j.createElement(Vr, { features: wr.Hidden, ref: o });
|
|
5865
5860
|
}, [o, n]) };
|
|
5866
5861
|
}
|
|
5867
|
-
let rt =
|
|
5862
|
+
let rt = de(() => {
|
|
5868
5863
|
});
|
|
5869
5864
|
rt.displayName = "StackContext";
|
|
5870
5865
|
var Ur = ((e) => (e[e.Add = 0] = "Add", e[e.Remove = 1] = "Remove", e))(Ur || {});
|
|
5871
5866
|
function Bi() {
|
|
5872
|
-
return
|
|
5867
|
+
return Q(rt);
|
|
5873
5868
|
}
|
|
5874
5869
|
function zi({ children: e, onUpdate: r, type: n, element: t, enabled: o }) {
|
|
5875
5870
|
let s = Bi(), a = A((...d) => {
|
|
@@ -5883,19 +5878,19 @@ function zi({ children: e, onUpdate: r, type: n, element: t, enabled: o }) {
|
|
|
5883
5878
|
}, [a, n, t, o]), j.createElement(rt.Provider, { value: a }, e);
|
|
5884
5879
|
}
|
|
5885
5880
|
function ur() {
|
|
5886
|
-
let e =
|
|
5881
|
+
let e = N(!1);
|
|
5887
5882
|
return Z(() => (e.current = !0, () => {
|
|
5888
5883
|
e.current = !1;
|
|
5889
5884
|
}), []), e;
|
|
5890
5885
|
}
|
|
5891
5886
|
var or = ((e) => (e[e.Forwards = 0] = "Forwards", e[e.Backwards = 1] = "Backwards", e))(or || {});
|
|
5892
5887
|
function Ui() {
|
|
5893
|
-
let e =
|
|
5894
|
-
return
|
|
5888
|
+
let e = N(0);
|
|
5889
|
+
return on("keydown", (r) => {
|
|
5895
5890
|
r.key === "Tab" && (e.current = r.shiftKey ? 1 : 0);
|
|
5896
5891
|
}, !0), e;
|
|
5897
5892
|
}
|
|
5898
|
-
function
|
|
5893
|
+
function un(e) {
|
|
5899
5894
|
if (!e)
|
|
5900
5895
|
return /* @__PURE__ */ new Set();
|
|
5901
5896
|
if (typeof e == "function")
|
|
@@ -5906,9 +5901,9 @@ function cn(e) {
|
|
|
5906
5901
|
return r;
|
|
5907
5902
|
}
|
|
5908
5903
|
let Gi = "div";
|
|
5909
|
-
var
|
|
5904
|
+
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 || {});
|
|
5910
5905
|
function Yi(e, r) {
|
|
5911
|
-
let n =
|
|
5906
|
+
let n = N(null), t = we(n, r), { initialFocus: o, initialFocusFallback: s, containers: a, features: d = 30, ...c } = e;
|
|
5912
5907
|
cr() || (d = 1);
|
|
5913
5908
|
let f = dr(n);
|
|
5914
5909
|
Ji({ ownerDocument: f }, !!(d & 16));
|
|
@@ -5918,28 +5913,28 @@ function Yi(e, r) {
|
|
|
5918
5913
|
let w = n.current;
|
|
5919
5914
|
w && ((y) => y())(() => {
|
|
5920
5915
|
B(p.current, { [or.Forwards]: () => {
|
|
5921
|
-
lr(w,
|
|
5916
|
+
lr(w, Te.First, { skipElements: [b.relatedTarget, s] });
|
|
5922
5917
|
}, [or.Backwards]: () => {
|
|
5923
|
-
lr(w,
|
|
5918
|
+
lr(w, Te.Last, { skipElements: [b.relatedTarget, s] });
|
|
5924
5919
|
} });
|
|
5925
5920
|
});
|
|
5926
|
-
}), v = Kr(), C =
|
|
5921
|
+
}), v = Kr(), C = N(!1), x = { ref: t, onKeyDown(b) {
|
|
5927
5922
|
b.key == "Tab" && (C.current = !0, v.requestAnimationFrame(() => {
|
|
5928
5923
|
C.current = !1;
|
|
5929
5924
|
}));
|
|
5930
5925
|
}, onBlur(b) {
|
|
5931
5926
|
if (!(d & 8))
|
|
5932
5927
|
return;
|
|
5933
|
-
let w =
|
|
5928
|
+
let w = un(a);
|
|
5934
5929
|
n.current instanceof HTMLElement && w.add(n.current);
|
|
5935
5930
|
let y = b.relatedTarget;
|
|
5936
|
-
y instanceof HTMLElement && y.dataset.headlessuiFocusGuard !== "true" && (
|
|
5931
|
+
y instanceof HTMLElement && y.dataset.headlessuiFocusGuard !== "true" && (fn(w, y) || (C.current ? lr(n.current, B(p.current, { [or.Forwards]: () => Te.Next, [or.Backwards]: () => Te.Previous }) | Te.WrapAround, { relativeTo: b.target }) : b.target instanceof HTMLElement && Me(b.target)));
|
|
5937
5932
|
} };
|
|
5938
5933
|
return j.createElement(j.Fragment, null, !!(d & 4) && j.createElement(Vr, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: g, features: wr.Focusable }), ge({ ourProps: x, theirProps: c, defaultTag: Gi, name: "FocusTrap" }), !!(d & 4) && j.createElement(Vr, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: g, features: wr.Focusable }));
|
|
5939
5934
|
}
|
|
5940
|
-
let Zi = ce(Yi), qi = Object.assign(Zi, { features:
|
|
5935
|
+
let Zi = ce(Yi), qi = Object.assign(Zi, { features: $e });
|
|
5941
5936
|
function Ki(e = !0) {
|
|
5942
|
-
let r =
|
|
5937
|
+
let r = N(Ae.slice());
|
|
5943
5938
|
return Xr(([n], [t]) => {
|
|
5944
5939
|
t === !0 && n === !1 && jr(() => {
|
|
5945
5940
|
r.current.splice(0);
|
|
@@ -5952,16 +5947,16 @@ function Ki(e = !0) {
|
|
|
5952
5947
|
function Ji({ ownerDocument: e }, r) {
|
|
5953
5948
|
let n = Ki(r);
|
|
5954
5949
|
Xr(() => {
|
|
5955
|
-
r || (e == null ? void 0 : e.activeElement) === (e == null ? void 0 : e.body) &&
|
|
5956
|
-
}, [r]),
|
|
5957
|
-
r &&
|
|
5950
|
+
r || (e == null ? void 0 : e.activeElement) === (e == null ? void 0 : e.body) && Me(n());
|
|
5951
|
+
}, [r]), an(() => {
|
|
5952
|
+
r && Me(n());
|
|
5958
5953
|
});
|
|
5959
5954
|
}
|
|
5960
5955
|
function Xi({ ownerDocument: e, container: r, initialFocus: n, initialFocusFallback: t }, o) {
|
|
5961
|
-
let s = !!(o & 2), a =
|
|
5956
|
+
let s = !!(o & 2), a = N(null), d = ur();
|
|
5962
5957
|
return Xr(() => {
|
|
5963
5958
|
if (!s) {
|
|
5964
|
-
t != null && t.current &&
|
|
5959
|
+
t != null && t.current && Me(t.current);
|
|
5965
5960
|
return;
|
|
5966
5961
|
}
|
|
5967
5962
|
let c = r.current;
|
|
@@ -5979,14 +5974,14 @@ function Xi({ ownerDocument: e, container: r, initialFocus: n, initialFocusFallb
|
|
|
5979
5974
|
return;
|
|
5980
5975
|
}
|
|
5981
5976
|
if (n != null && n.current)
|
|
5982
|
-
|
|
5977
|
+
Me(n.current);
|
|
5983
5978
|
else {
|
|
5984
5979
|
if (o & 32) {
|
|
5985
|
-
if (lr(c,
|
|
5980
|
+
if (lr(c, Te.First | Te.AutoFocus) !== Br.Error)
|
|
5986
5981
|
return;
|
|
5987
|
-
} else if (lr(c,
|
|
5982
|
+
} else if (lr(c, Te.First) !== Br.Error)
|
|
5988
5983
|
return;
|
|
5989
|
-
if (t != null && t.current && (
|
|
5984
|
+
if (t != null && t.current && (Me(t.current), (e == null ? void 0 : e.activeElement) === t.current))
|
|
5990
5985
|
return;
|
|
5991
5986
|
console.warn("There are no focusable elements inside the <FocusTrap />");
|
|
5992
5987
|
}
|
|
@@ -5996,19 +5991,19 @@ function Xi({ ownerDocument: e, container: r, initialFocus: n, initialFocusFallb
|
|
|
5996
5991
|
}
|
|
5997
5992
|
function Qi({ ownerDocument: e, container: r, containers: n, previousActiveElement: t }, o) {
|
|
5998
5993
|
let s = ur();
|
|
5999
|
-
|
|
5994
|
+
sn(e == null ? void 0 : e.defaultView, "focus", (a) => {
|
|
6000
5995
|
if (!o || !s.current)
|
|
6001
5996
|
return;
|
|
6002
|
-
let d =
|
|
5997
|
+
let d = un(n);
|
|
6003
5998
|
r.current instanceof HTMLElement && d.add(r.current);
|
|
6004
5999
|
let c = t.current;
|
|
6005
6000
|
if (!c)
|
|
6006
6001
|
return;
|
|
6007
6002
|
let f = a.target;
|
|
6008
|
-
f && f instanceof HTMLElement ?
|
|
6003
|
+
f && f instanceof HTMLElement ? fn(d, f) ? (t.current = f, Me(f)) : (a.preventDefault(), a.stopPropagation(), Me(c)) : Me(t.current);
|
|
6009
6004
|
}, !0);
|
|
6010
6005
|
}
|
|
6011
|
-
function
|
|
6006
|
+
function fn(e, r) {
|
|
6012
6007
|
for (let n of e)
|
|
6013
6008
|
if (n.contains(r))
|
|
6014
6009
|
return !0;
|
|
@@ -6017,10 +6012,10 @@ function un(e, r) {
|
|
|
6017
6012
|
var ea = ((e) => (e[e.Open = 0] = "Open", e[e.Closed = 1] = "Closed", e))(ea || {}), ra = ((e) => (e[e.SetTitleId = 0] = "SetTitleId", e))(ra || {});
|
|
6018
6013
|
let ta = { 0(e, r) {
|
|
6019
6014
|
return e.titleId === r.id ? e : { ...e, titleId: r.id };
|
|
6020
|
-
} }, kr =
|
|
6015
|
+
} }, kr = de(null);
|
|
6021
6016
|
kr.displayName = "DialogContext";
|
|
6022
6017
|
function tt(e) {
|
|
6023
|
-
let r =
|
|
6018
|
+
let r = Q(kr);
|
|
6024
6019
|
if (r === null) {
|
|
6025
6020
|
let n = new Error(`<${e} /> is missing a parent <Dialog /> component.`);
|
|
6026
6021
|
throw Error.captureStackTrace && Error.captureStackTrace(n, tt), n;
|
|
@@ -6032,13 +6027,13 @@ function na(e, r) {
|
|
|
6032
6027
|
}
|
|
6033
6028
|
let oa = "div", sa = xr.RenderStrategy | xr.Static;
|
|
6034
6029
|
function ia(e, r) {
|
|
6035
|
-
let n = yr(), { id: t = `headlessui-dialog-${n}`, open: o, onClose: s, initialFocus: a, role: d = "dialog", autoFocus: c = !0, __demoMode: f = !1, ...u } = e, [p, g] = me(0), v =
|
|
6030
|
+
let n = yr(), { id: t = `headlessui-dialog-${n}`, open: o, onClose: s, initialFocus: a, role: d = "dialog", autoFocus: c = !0, __demoMode: f = !1, ...u } = e, [p, g] = me(0), v = N(!1);
|
|
6036
6031
|
d = function() {
|
|
6037
6032
|
return d === "dialog" || d === "alertdialog" ? d : (v.current || (v.current = !0, console.warn(`Invalid role [${d}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)), "dialog");
|
|
6038
6033
|
}();
|
|
6039
6034
|
let C = et();
|
|
6040
6035
|
o === void 0 && C !== null && (o = (C & ne.Open) === ne.Open);
|
|
6041
|
-
let x =
|
|
6036
|
+
let x = N(null), b = we(x, r), w = dr(x), y = e.hasOwnProperty("open") || C !== null, ue = e.hasOwnProperty("onClose");
|
|
6042
6037
|
if (!y && !ue)
|
|
6043
6038
|
throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");
|
|
6044
6039
|
if (!y)
|
|
@@ -6049,43 +6044,43 @@ function ia(e, r) {
|
|
|
6049
6044
|
throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${o}`);
|
|
6050
6045
|
if (typeof s != "function")
|
|
6051
6046
|
throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${s}`);
|
|
6052
|
-
let
|
|
6047
|
+
let R = o ? 0 : 1, [U, ke] = Yn(na, { titleId: null, descriptionId: null, panelRef: Zn() }), q = A(() => s(!1)), G = A((O) => ke({ type: 0, id: O })), K = cr() ? R === 0 : !1, re = p > 1, ie = Q(kr) !== null, [$, F] = Wi(), I = { get current() {
|
|
6053
6048
|
var O;
|
|
6054
6049
|
return (O = U.panelRef.current) != null ? O : x.current;
|
|
6055
|
-
} }, { resolveContainers: z, mainTreeNodeRef: fe, MainTreeNode: ve } = Hi({ portals: $, defaultContainers: [I] }), pe = re ? "parent" : "leaf", H = C !== null ? (C & ne.Closing) === ne.Closing : !1,
|
|
6050
|
+
} }, { resolveContainers: z, mainTreeNodeRef: fe, MainTreeNode: ve } = Hi({ portals: $, defaultContainers: [I] }), pe = re ? "parent" : "leaf", H = C !== null ? (C & ne.Closing) === ne.Closing : !1, ye = re || H ? !1 : K;
|
|
6056
6051
|
li({ allowed: A(() => {
|
|
6057
6052
|
var O, be;
|
|
6058
6053
|
return [(be = (O = x.current) == null ? void 0 : O.closest("[data-headlessui-portal]")) != null ? be : null];
|
|
6059
6054
|
}), disallowed: A(() => {
|
|
6060
6055
|
var O, be;
|
|
6061
6056
|
return [(be = (O = fe.current) == null ? void 0 : O.closest("body > *:not(#headlessui-portal-root)")) != null ? be : null];
|
|
6062
|
-
}) }, f ? !1 :
|
|
6057
|
+
}) }, f ? !1 : ye), xi(z, (O) => {
|
|
6063
6058
|
O.preventDefault(), q();
|
|
6064
6059
|
}, !(!K || re));
|
|
6065
|
-
let J = !(re ||
|
|
6066
|
-
|
|
6067
|
-
J && (O.defaultPrevented || O.key ===
|
|
6068
|
-
}), Ti(w, f ? !1 : !(H ||
|
|
6069
|
-
let [te, Ke] = ri(), X =
|
|
6070
|
-
return c && (
|
|
6060
|
+
let J = !(re || R !== 0);
|
|
6061
|
+
sn(w == null ? void 0 : w.defaultView, "keydown", (O) => {
|
|
6062
|
+
J && (O.defaultPrevented || O.key === en.Escape && (O.preventDefault(), O.stopPropagation(), q()));
|
|
6063
|
+
}), Ti(w, f ? !1 : !(H || R !== 0 || ie), z), rn(x, q, R === 0);
|
|
6064
|
+
let [te, Ke] = ri(), X = se(() => [{ dialogState: R, close: q, setTitleId: G }, U], [R, U, q, G]), V = se(() => ({ open: R === 0 }), [R]), D = { ref: b, id: t, role: d, tabIndex: -1, "aria-modal": R === 0 ? !0 : void 0, "aria-labelledby": U.titleId, "aria-describedby": te }, Je = !Di(), je = K ? B(pe, { parent: $e.RestoreFocus, leaf: $e.All & ~$e.FocusLock }) : $e.None;
|
|
6065
|
+
return c && (je |= $e.AutoFocus), Je || (je &= ~$e.InitialFocus), f && (je = $e.None), j.createElement(zi, { type: "Dialog", enabled: R === 0, element: x, onUpdate: A((O, be) => {
|
|
6071
6066
|
be === "Dialog" && B(O, { [Ur.Add]: () => g((Xe) => Xe + 1), [Ur.Remove]: () => g((Xe) => Xe - 1) });
|
|
6072
|
-
}) }, j.createElement(Mt, { force: !0 }, j.createElement(St, null, j.createElement(kr.Provider, { value: X }, j.createElement(St.Group, { target: x }, j.createElement(Mt, { force: !1 }, j.createElement(Ke, { slot: V, name: "Dialog.Description" }, j.createElement(F, null, j.createElement(qi, { initialFocus: a, initialFocusFallback: x, containers: z, features:
|
|
6067
|
+
}) }, j.createElement(Mt, { force: !0 }, j.createElement(St, null, j.createElement(kr.Provider, { value: X }, j.createElement(St.Group, { target: x }, j.createElement(Mt, { force: !1 }, j.createElement(Ke, { slot: V, name: "Dialog.Description" }, j.createElement(F, null, j.createElement(qi, { initialFocus: a, initialFocusFallback: x, containers: z, features: je }, j.createElement(ai, { value: q }, ge({ ourProps: D, theirProps: u, slot: V, defaultTag: oa, features: sa, visible: R === 0, name: "Dialog" })))))))))), j.createElement(Qs, null, j.createElement(ve, null)));
|
|
6073
6068
|
}
|
|
6074
6069
|
let aa = "div";
|
|
6075
6070
|
function la(e, r) {
|
|
6076
|
-
let n = yr(), { id: t = `headlessui-dialog-panel-${n}`, ...o } = e, [{ dialogState: s }, a] = tt("Dialog.Panel"), d =
|
|
6071
|
+
let n = yr(), { id: t = `headlessui-dialog-panel-${n}`, ...o } = e, [{ dialogState: s }, a] = tt("Dialog.Panel"), d = we(r, a.panelRef), c = se(() => ({ open: s === 0 }), [s]), f = A((u) => {
|
|
6077
6072
|
u.stopPropagation();
|
|
6078
6073
|
});
|
|
6079
6074
|
return ge({ ourProps: { ref: d, id: t, onClick: f }, theirProps: o, slot: c, defaultTag: aa, name: "Dialog.Panel" });
|
|
6080
6075
|
}
|
|
6081
6076
|
let da = "h2";
|
|
6082
6077
|
function ca(e, r) {
|
|
6083
|
-
let n = yr(), { id: t = `headlessui-dialog-title-${n}`, ...o } = e, [{ dialogState: s, setTitleId: a }] = tt("Dialog.Title"), d =
|
|
6084
|
-
|
|
6085
|
-
let c =
|
|
6078
|
+
let n = yr(), { id: t = `headlessui-dialog-title-${n}`, ...o } = e, [{ dialogState: s, setTitleId: a }] = tt("Dialog.Title"), d = we(r);
|
|
6079
|
+
oe(() => (a(t), () => a(null)), [t, a]);
|
|
6080
|
+
let c = se(() => ({ open: s === 0 }), [s]);
|
|
6086
6081
|
return ge({ ourProps: { ref: d, id: t }, theirProps: o, slot: c, defaultTag: da, name: "Dialog.Title" });
|
|
6087
6082
|
}
|
|
6088
|
-
let ua = ce(ia),
|
|
6083
|
+
let ua = ce(ia), pn = ce(la), fa = ce(ca), pa = Object.assign(ua, { Panel: pn, Title: fa, Description: si });
|
|
6089
6084
|
function ha(e = 0) {
|
|
6090
6085
|
let [r, n] = me(e), t = ur(), o = mr((c) => {
|
|
6091
6086
|
t.current && n((f) => f | c);
|
|
@@ -6096,7 +6091,7 @@ function ha(e = 0) {
|
|
|
6096
6091
|
}, [n]);
|
|
6097
6092
|
return { flags: r, addFlag: o, hasFlag: s, removeFlag: a, toggleFlag: d };
|
|
6098
6093
|
}
|
|
6099
|
-
function
|
|
6094
|
+
function hn(e) {
|
|
6100
6095
|
let r = { called: !1 };
|
|
6101
6096
|
return (...n) => {
|
|
6102
6097
|
if (!r.called)
|
|
@@ -6110,7 +6105,7 @@ function _r(e, ...r) {
|
|
|
6110
6105
|
e && r.length > 0 && e.classList.remove(...r);
|
|
6111
6106
|
}
|
|
6112
6107
|
function ma(e, r) {
|
|
6113
|
-
let n =
|
|
6108
|
+
let n = hn(r), t = Oe();
|
|
6114
6109
|
if (!e)
|
|
6115
6110
|
return t.dispose;
|
|
6116
6111
|
let { transitionDuration: o, transitionDelay: s } = getComputedStyle(e), [a, d] = [o, s].map((f) => {
|
|
@@ -6136,7 +6131,7 @@ function ma(e, r) {
|
|
|
6136
6131
|
return t.dispose;
|
|
6137
6132
|
}
|
|
6138
6133
|
function ga(e, { direction: r, done: n, classes: t, inFlight: o }) {
|
|
6139
|
-
let s = Oe(), a = n !== void 0 ?
|
|
6134
|
+
let s = Oe(), a = n !== void 0 ? hn(n) : () => {
|
|
6140
6135
|
};
|
|
6141
6136
|
r === "enter" && (e.removeAttribute("hidden"), e.style.display = "");
|
|
6142
6137
|
let d = B(r, { enter: () => t.enter, leave: () => t.leave }), c = B(r, { enter: () => t.enterTo, leave: () => t.leaveTo }), f = B(r, { enter: () => t.enterFrom, leave: () => t.leaveFrom });
|
|
@@ -6155,7 +6150,7 @@ function va(e, { inFlight: r, prepare: n }) {
|
|
|
6155
6150
|
e.style.transition = "none", n(), e.offsetHeight, e.style.transition = t;
|
|
6156
6151
|
}
|
|
6157
6152
|
function ba({ container: e, direction: r, classes: n, onStart: t, onStop: o }) {
|
|
6158
|
-
let s = ur(), a = Kr(), d =
|
|
6153
|
+
let s = ur(), a = Kr(), d = N(!1);
|
|
6159
6154
|
Z(() => {
|
|
6160
6155
|
if (r === "idle" || !s.current)
|
|
6161
6156
|
return;
|
|
@@ -6166,35 +6161,35 @@ function ba({ container: e, direction: r, classes: n, onStart: t, onStop: o }) {
|
|
|
6166
6161
|
} })) : o.current(r), a.dispose;
|
|
6167
6162
|
}, [r]);
|
|
6168
6163
|
}
|
|
6169
|
-
function
|
|
6164
|
+
function Pe(e = "") {
|
|
6170
6165
|
return e.split(/\s+/).filter((r) => r.length > 1);
|
|
6171
6166
|
}
|
|
6172
|
-
function
|
|
6167
|
+
function mn(e) {
|
|
6173
6168
|
var r;
|
|
6174
|
-
return !!(e.enter || e.enterFrom || e.enterTo || e.leave || e.leaveFrom || e.leaveTo) || ((r = e.as) != null ? r :
|
|
6169
|
+
return !!(e.enter || e.enterFrom || e.enterTo || e.leave || e.leaveFrom || e.leaveTo) || ((r = e.as) != null ? r : vn) !== le || j.Children.count(e.children) === 1;
|
|
6175
6170
|
}
|
|
6176
|
-
let Er =
|
|
6171
|
+
let Er = de(null);
|
|
6177
6172
|
Er.displayName = "TransitionContext";
|
|
6178
6173
|
var Ca = ((e) => (e.Visible = "visible", e.Hidden = "hidden", e))(Ca || {});
|
|
6179
6174
|
function xa() {
|
|
6180
|
-
let e =
|
|
6175
|
+
let e = Q(Er);
|
|
6181
6176
|
if (e === null)
|
|
6182
6177
|
throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");
|
|
6183
6178
|
return e;
|
|
6184
6179
|
}
|
|
6185
6180
|
function wa() {
|
|
6186
|
-
let e =
|
|
6181
|
+
let e = Q(Lr);
|
|
6187
6182
|
if (e === null)
|
|
6188
6183
|
throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");
|
|
6189
6184
|
return e;
|
|
6190
6185
|
}
|
|
6191
|
-
let Lr =
|
|
6186
|
+
let Lr = de(null);
|
|
6192
6187
|
Lr.displayName = "NestingContext";
|
|
6193
6188
|
function $r(e) {
|
|
6194
6189
|
return "children" in e ? $r(e.children) : e.current.filter(({ el: r }) => r.current !== null).filter(({ state: r }) => r === "visible").length > 0;
|
|
6195
6190
|
}
|
|
6196
|
-
function
|
|
6197
|
-
let n = Ce(e), t =
|
|
6191
|
+
function gn(e, r) {
|
|
6192
|
+
let n = Ce(e), t = N([]), o = ur(), s = Kr(), a = A((v, C = Fe.Hidden) => {
|
|
6198
6193
|
let x = t.current.findIndex(({ el: b }) => b === v);
|
|
6199
6194
|
x !== -1 && (B(C, { [Fe.Unmount]() {
|
|
6200
6195
|
t.current.splice(x, 1);
|
|
@@ -6207,7 +6202,7 @@ function mn(e, r) {
|
|
|
6207
6202
|
}), d = A((v) => {
|
|
6208
6203
|
let C = t.current.find(({ el: x }) => x === v);
|
|
6209
6204
|
return C ? C.state !== "visible" && (C.state = "visible") : t.current.push({ el: v, state: "visible" }), () => a(v, Fe.Unmount);
|
|
6210
|
-
}), c =
|
|
6205
|
+
}), c = N([]), f = N(Promise.resolve()), u = N({ enter: [], leave: [], idle: [] }), p = A((v, C, x) => {
|
|
6211
6206
|
c.current.splice(0), r && (r.chains.current[C] = r.chains.current[C].filter(([b]) => b !== v)), r == null || r.chains.current[C].push([v, new Promise((b) => {
|
|
6212
6207
|
c.current.push(b);
|
|
6213
6208
|
})]), r == null || r.chains.current[C].push([v, new Promise((b) => {
|
|
@@ -6219,27 +6214,27 @@ function mn(e, r) {
|
|
|
6219
6214
|
(b = c.current.shift()) == null || b();
|
|
6220
6215
|
}).then(() => x(C));
|
|
6221
6216
|
});
|
|
6222
|
-
return
|
|
6217
|
+
return se(() => ({ children: t, register: d, unregister: a, onStart: p, onStop: g, wait: f, chains: u }), [d, a, t, p, g, u, f]);
|
|
6223
6218
|
}
|
|
6224
|
-
let
|
|
6219
|
+
let vn = le, bn = xr.RenderStrategy;
|
|
6225
6220
|
function ka(e, r) {
|
|
6226
6221
|
var n, t, o;
|
|
6227
|
-
let { beforeEnter: s, afterEnter: a, beforeLeave: d, afterLeave: c, enter: f, enterFrom: u, enterTo: p, entered: g, leave: v, leaveFrom: C, leaveTo: x, ...b } = e, w =
|
|
6228
|
-
Z(() =>
|
|
6229
|
-
if (
|
|
6222
|
+
let { beforeEnter: s, afterEnter: a, beforeLeave: d, afterLeave: c, enter: f, enterFrom: u, enterTo: p, entered: g, leave: v, leaveFrom: C, leaveTo: x, ...b } = e, w = N(null), y = mn(e), ue = we(...y ? [w, r] : r === null ? [] : [r]), R = (n = b.unmount) == null || n ? Fe.Unmount : Fe.Hidden, { show: U, appear: ke, initial: q } = xa(), [G, K] = me(U ? "visible" : "hidden"), re = wa(), { register: ie, unregister: $ } = re;
|
|
6223
|
+
Z(() => ie(w), [ie, w]), Z(() => {
|
|
6224
|
+
if (R === Fe.Hidden && w.current) {
|
|
6230
6225
|
if (U && G !== "visible") {
|
|
6231
6226
|
K("visible");
|
|
6232
6227
|
return;
|
|
6233
6228
|
}
|
|
6234
|
-
return B(G, { hidden: () => $(w), visible: () =>
|
|
6229
|
+
return B(G, { hidden: () => $(w), visible: () => ie(w) });
|
|
6235
6230
|
}
|
|
6236
|
-
}, [G, w,
|
|
6237
|
-
let F = Ce({ base:
|
|
6231
|
+
}, [G, w, ie, $, U, R]);
|
|
6232
|
+
let F = Ce({ base: Pe(b.className), enter: Pe(f), enterFrom: Pe(u), enterTo: Pe(p), entered: Pe(g), leave: Pe(v), leaveFrom: Pe(C), leaveTo: Pe(x) }), I = Ce({ beforeEnter: s, afterEnter: a, beforeLeave: d, afterLeave: c }), z = cr();
|
|
6238
6233
|
Z(() => {
|
|
6239
6234
|
if (y && z && G === "visible" && w.current === null)
|
|
6240
6235
|
throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?");
|
|
6241
6236
|
}, [w, G, z, y]);
|
|
6242
|
-
let fe = q && !
|
|
6237
|
+
let fe = q && !ke, ve = ke && U && q, pe = ve ? "enter" : !z || fe ? "idle" : U ? "enter" : "leave", H = ha(0), ye = A((X) => B(X, { enter: () => {
|
|
6243
6238
|
var V, D;
|
|
6244
6239
|
H.addFlag(ne.Opening), (D = (V = I.current).beforeEnter) == null || D.call(V);
|
|
6245
6240
|
}, leave: () => {
|
|
@@ -6253,47 +6248,47 @@ function ka(e, r) {
|
|
|
6253
6248
|
var V, D;
|
|
6254
6249
|
H.removeFlag(ne.Closing), (D = (V = I.current).afterLeave) == null || D.call(V);
|
|
6255
6250
|
}, idle: () => {
|
|
6256
|
-
} })), J =
|
|
6251
|
+
} })), J = N(!1), Se = gn(() => {
|
|
6257
6252
|
J.current || (K("hidden"), $(w));
|
|
6258
6253
|
}, re);
|
|
6259
6254
|
ba({ container: w, classes: F, direction: pe, onStart: Ce((X) => {
|
|
6260
|
-
J.current = !0, Se.onStart(w, X,
|
|
6255
|
+
J.current = !0, Se.onStart(w, X, ye);
|
|
6261
6256
|
}), onStop: Ce((X) => {
|
|
6262
6257
|
J.current = !1, Se.onStop(w, X, he), X === "leave" && !$r(Se) && (K("hidden"), $(w));
|
|
6263
6258
|
}) });
|
|
6264
6259
|
let te = b, Ke = { ref: ue };
|
|
6265
|
-
return ve ? te = { ...te, className: ir(b.className, ...F.current.enter, ...F.current.enterFrom) } : J.current ? (te.className = ir(b.className, (t = w.current) == null ? void 0 : t.className), te.className === "" && delete te.className) : (te.className = ir(b.className, (o = w.current) == null ? void 0 : o.className, ...B(pe, { enter: [...F.current.enterTo, ...F.current.entered], leave: F.current.leaveTo, idle: [] })), te.className === "" && delete te.className), j.createElement(Lr.Provider, { value: Se }, j.createElement(Mi, { value: B(G, { visible: ne.Open, hidden: ne.Closed }) | H.flags }, ge({ ourProps: Ke, theirProps: te, defaultTag:
|
|
6260
|
+
return ve ? te = { ...te, className: ir(b.className, ...F.current.enter, ...F.current.enterFrom) } : J.current ? (te.className = ir(b.className, (t = w.current) == null ? void 0 : t.className), te.className === "" && delete te.className) : (te.className = ir(b.className, (o = w.current) == null ? void 0 : o.className, ...B(pe, { enter: [...F.current.enterTo, ...F.current.entered], leave: F.current.leaveTo, idle: [] })), te.className === "" && delete te.className), j.createElement(Lr.Provider, { value: Se }, j.createElement(Mi, { value: B(G, { visible: ne.Open, hidden: ne.Closed }) | H.flags }, ge({ ourProps: Ke, theirProps: te, defaultTag: vn, features: bn, visible: G === "visible", name: "Transition.Child" })));
|
|
6266
6261
|
}
|
|
6267
6262
|
function ya(e, r) {
|
|
6268
|
-
let { show: n, appear: t = !1, unmount: o = !0, ...s } = e, a =
|
|
6263
|
+
let { show: n, appear: t = !1, unmount: o = !0, ...s } = e, a = N(null), d = mn(e), c = we(...d ? [a, r] : r === null ? [] : [r]);
|
|
6269
6264
|
cr();
|
|
6270
6265
|
let f = et();
|
|
6271
6266
|
if (n === void 0 && f !== null && (n = (f & ne.Open) === ne.Open), n === void 0)
|
|
6272
6267
|
throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");
|
|
6273
|
-
let [u, p] = me(n ? "visible" : "hidden"), g =
|
|
6268
|
+
let [u, p] = me(n ? "visible" : "hidden"), g = gn(() => {
|
|
6274
6269
|
n || p("hidden");
|
|
6275
|
-
}), [v, C] = me(!0), x =
|
|
6270
|
+
}), [v, C] = me(!0), x = N([n]);
|
|
6276
6271
|
Z(() => {
|
|
6277
6272
|
v !== !1 && x.current[x.current.length - 1] !== n && (x.current.push(n), C(!1));
|
|
6278
6273
|
}, [x, n]);
|
|
6279
|
-
let b =
|
|
6280
|
-
|
|
6274
|
+
let b = se(() => ({ show: n, appear: t, initial: v }), [n, t, v]);
|
|
6275
|
+
rn(a, () => p("hidden")), Z(() => {
|
|
6281
6276
|
n ? p("visible") : !$r(g) && a.current !== null && p("hidden");
|
|
6282
6277
|
}, [n, g]);
|
|
6283
6278
|
let w = { unmount: o }, y = A(() => {
|
|
6284
|
-
var
|
|
6285
|
-
v && C(!1), (
|
|
6279
|
+
var R;
|
|
6280
|
+
v && C(!1), (R = e.beforeEnter) == null || R.call(e);
|
|
6286
6281
|
}), ue = A(() => {
|
|
6287
|
-
var
|
|
6288
|
-
v && C(!1), (
|
|
6282
|
+
var R;
|
|
6283
|
+
v && C(!1), (R = e.beforeLeave) == null || R.call(e);
|
|
6289
6284
|
});
|
|
6290
|
-
return j.createElement(Lr.Provider, { value: g }, j.createElement(Er.Provider, { value: b }, ge({ ourProps: { ...w, as:
|
|
6285
|
+
return j.createElement(Lr.Provider, { value: g }, j.createElement(Er.Provider, { value: b }, ge({ ourProps: { ...w, as: le, children: j.createElement(Cn, { ref: c, ...w, ...s, beforeEnter: y, beforeLeave: ue }) }, theirProps: {}, defaultTag: le, features: bn, visible: u === "visible", name: "Transition" })));
|
|
6291
6286
|
}
|
|
6292
6287
|
function ja(e, r) {
|
|
6293
|
-
let n =
|
|
6294
|
-
return j.createElement(j.Fragment, null, !n && t ? j.createElement(Gr, { ref: r, ...e }) : j.createElement(
|
|
6288
|
+
let n = Q(Er) !== null, t = et() !== null;
|
|
6289
|
+
return j.createElement(j.Fragment, null, !n && t ? j.createElement(Gr, { ref: r, ...e }) : j.createElement(Cn, { ref: r, ...e }));
|
|
6295
6290
|
}
|
|
6296
|
-
let Gr = ce(ya),
|
|
6291
|
+
let Gr = ce(ya), Cn = ce(ka), Yr = ce(ja), Ea = Object.assign(Gr, { Child: Yr, Root: Gr });
|
|
6297
6292
|
const La = ({
|
|
6298
6293
|
open: e = !1,
|
|
6299
6294
|
onClose: r,
|
|
@@ -6308,7 +6303,7 @@ const La = ({
|
|
|
6308
6303
|
horizontalRule: u = !0
|
|
6309
6304
|
}) => {
|
|
6310
6305
|
const p = () => d ? /* @__PURE__ */ i.jsx(i.Fragment, { children: d }) : a && c ? /* @__PURE__ */ i.jsx(We, { name: c, size: "medium" }) : null, g = () => t === "dismissible" ? r() : !0;
|
|
6311
|
-
return /* @__PURE__ */ i.jsx(Ea, { appear: !0, show: e, as:
|
|
6306
|
+
return /* @__PURE__ */ i.jsx(Ea, { appear: !0, show: e, as: le, children: /* @__PURE__ */ i.jsxs(
|
|
6312
6307
|
pa,
|
|
6313
6308
|
{
|
|
6314
6309
|
as: "div",
|
|
@@ -6320,7 +6315,7 @@ const La = ({
|
|
|
6320
6315
|
t !== "none" && /* @__PURE__ */ i.jsx(
|
|
6321
6316
|
Yr,
|
|
6322
6317
|
{
|
|
6323
|
-
as:
|
|
6318
|
+
as: le,
|
|
6324
6319
|
enter: "ease-out duration-300",
|
|
6325
6320
|
enterFrom: "opacity-0",
|
|
6326
6321
|
enterTo: "opacity-100",
|
|
@@ -6339,14 +6334,14 @@ const La = ({
|
|
|
6339
6334
|
/* @__PURE__ */ i.jsx("div", { className: "ds-fixed ds-inset-0 ds-z-20 ds-w-screen ds-overflow-y-auto", children: /* @__PURE__ */ i.jsx("div", { className: "ds-flex ds-min-h-full ds-items-center ds-justify-center ds-p-4", children: /* @__PURE__ */ i.jsx(
|
|
6340
6335
|
Yr,
|
|
6341
6336
|
{
|
|
6342
|
-
as:
|
|
6337
|
+
as: le,
|
|
6343
6338
|
enter: "ease-out duration-300",
|
|
6344
6339
|
enterFrom: "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",
|
|
6345
6340
|
enterTo: "opacity-100 translate-y-0 sm:scale-100",
|
|
6346
6341
|
leave: "ease-in duration-200",
|
|
6347
6342
|
leaveFrom: "opacity-100 translate-y-0 sm:scale-100",
|
|
6348
6343
|
leaveTo: "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",
|
|
6349
|
-
children: /* @__PURE__ */ i.jsxs(
|
|
6344
|
+
children: /* @__PURE__ */ i.jsxs(pn, { className: "ds-flex ds-max-h-[90vh] ds-min-w-full ds-max-w-full ds-transform ds-flex-col ds-overflow-y-scroll ds-rounded-lg ds-bg-neutrals-white ds-text-left ds-shadow-modal sm:ds-min-w-[15rem] sm:ds-max-w-[55%]", children: [
|
|
6350
6345
|
/* @__PURE__ */ i.jsxs(
|
|
6351
6346
|
"div",
|
|
6352
6347
|
{
|
|
@@ -6354,7 +6349,7 @@ const La = ({
|
|
|
6354
6349
|
children: [
|
|
6355
6350
|
a && /* @__PURE__ */ i.jsx("div", { className: "ds-mr-3", children: p() }),
|
|
6356
6351
|
/* @__PURE__ */ i.jsx("div", { className: "ds-flex-grow", children: /* @__PURE__ */ i.jsx(
|
|
6357
|
-
|
|
6352
|
+
Kt,
|
|
6358
6353
|
{
|
|
6359
6354
|
text: n,
|
|
6360
6355
|
headingTag: "h2",
|
|
@@ -6364,7 +6359,7 @@ const La = ({
|
|
|
6364
6359
|
}
|
|
6365
6360
|
) }),
|
|
6366
6361
|
f && /* @__PURE__ */ i.jsx(
|
|
6367
|
-
|
|
6362
|
+
Yt,
|
|
6368
6363
|
{
|
|
6369
6364
|
variant: "icon-no-label",
|
|
6370
6365
|
iconName: "close",
|
|
@@ -6389,16 +6384,95 @@ const La = ({
|
|
|
6389
6384
|
]
|
|
6390
6385
|
}
|
|
6391
6386
|
) });
|
|
6392
|
-
},
|
|
6387
|
+
}, Ia = La, $a = ee(
|
|
6388
|
+
["preflight", "ds-rounded-xl", "ds-border", "ds-px-2", "ds-py-1", "ds-inline-flex", "ds-items-center"],
|
|
6389
|
+
{
|
|
6390
|
+
variants: {
|
|
6391
|
+
color: {
|
|
6392
|
+
default: ["ds-border-neutrals-light"],
|
|
6393
|
+
gray: ["ds-bg-neutrals-lighter", "ds-border-neutrals-lighter"],
|
|
6394
|
+
blue: [
|
|
6395
|
+
"ds-bg-information-blue-lightest",
|
|
6396
|
+
"ds-text-information-blue-darkest",
|
|
6397
|
+
"ds-border-information-blue-lightest"
|
|
6398
|
+
],
|
|
6399
|
+
green: [
|
|
6400
|
+
"ds-bg-success-green-lightest",
|
|
6401
|
+
"ds-text-success-green-darkest",
|
|
6402
|
+
"ds-border-success-green-lightest"
|
|
6403
|
+
],
|
|
6404
|
+
yellow: [
|
|
6405
|
+
"ds-bg-warning-yellow-lightest",
|
|
6406
|
+
"ds-text-warning-yellow-darkest",
|
|
6407
|
+
"ds-border-warning-yellow-lightest"
|
|
6408
|
+
],
|
|
6409
|
+
red: [
|
|
6410
|
+
"ds-bg-danger-red-lightest",
|
|
6411
|
+
"ds-text-danger-red-darkest",
|
|
6412
|
+
"ds-border-danger-red-lightest"
|
|
6413
|
+
]
|
|
6414
|
+
},
|
|
6415
|
+
type: {
|
|
6416
|
+
regular: ["ds-text-base"],
|
|
6417
|
+
small: ["ds-text-sm"]
|
|
6418
|
+
}
|
|
6419
|
+
}
|
|
6420
|
+
}
|
|
6421
|
+
), Ta = ee([
|
|
6422
|
+
"ds-ms-1",
|
|
6423
|
+
"!ds-border-[transparent]",
|
|
6424
|
+
"!ds-bg-[transparent]",
|
|
6425
|
+
"!ds-p-1",
|
|
6426
|
+
"hover:!ds-bg-neutrals-lighter",
|
|
6427
|
+
"hover:!ds-border-neutrals-lighter",
|
|
6428
|
+
"active:!ds-bg-neutrals-transparent-medium",
|
|
6429
|
+
"active:!ds-border-neutrals-transparent-medium",
|
|
6430
|
+
"focus-visible:!ds-bg-neutrals-lighter",
|
|
6431
|
+
"focus-visible:!ds-border-neutrals-dark",
|
|
6432
|
+
"focus-visible:!ds-ring-neutrals-black"
|
|
6433
|
+
]), Ma = ({
|
|
6434
|
+
label: e,
|
|
6435
|
+
type: r = "regular",
|
|
6436
|
+
color: n = "default",
|
|
6437
|
+
dismissible: t = !1,
|
|
6438
|
+
dismissLabel: o = "",
|
|
6439
|
+
className: s = "",
|
|
6440
|
+
onDismiss: a,
|
|
6441
|
+
...d
|
|
6442
|
+
}) => {
|
|
6443
|
+
const c = d["aria-label"] || e;
|
|
6444
|
+
return /* @__PURE__ */ i.jsxs(
|
|
6445
|
+
"div",
|
|
6446
|
+
{
|
|
6447
|
+
className: xe($a({ color: n, type: r }), s),
|
|
6448
|
+
"aria-label": c,
|
|
6449
|
+
...d,
|
|
6450
|
+
children: [
|
|
6451
|
+
/* @__PURE__ */ i.jsx("div", { className: "ds-max-w-[200px] ds-truncate ds-leading-6", children: e }),
|
|
6452
|
+
t && /* @__PURE__ */ i.jsx(
|
|
6453
|
+
Yt,
|
|
6454
|
+
{
|
|
6455
|
+
variant: "icon-no-label",
|
|
6456
|
+
iconName: "close",
|
|
6457
|
+
onClick: () => a && a(),
|
|
6458
|
+
className: Ta(),
|
|
6459
|
+
"aria-label": o || "dismiss"
|
|
6460
|
+
}
|
|
6461
|
+
)
|
|
6462
|
+
]
|
|
6463
|
+
}
|
|
6464
|
+
);
|
|
6465
|
+
}, Va = Ma;
|
|
6393
6466
|
export {
|
|
6394
|
-
|
|
6395
|
-
|
|
6396
|
-
|
|
6397
|
-
|
|
6398
|
-
|
|
6467
|
+
Pa as Alert,
|
|
6468
|
+
Va as Badge,
|
|
6469
|
+
Yt as Button,
|
|
6470
|
+
Aa as Card,
|
|
6471
|
+
Fa as Checkbox,
|
|
6472
|
+
Kt as Heading,
|
|
6399
6473
|
We as Icon,
|
|
6400
|
-
|
|
6401
|
-
|
|
6402
|
-
|
|
6474
|
+
_a as Link,
|
|
6475
|
+
Ia as Modal,
|
|
6476
|
+
Oa as Radio
|
|
6403
6477
|
};
|
|
6404
6478
|
//# sourceMappingURL=index.es.js.map
|