@takecasper/acuity-design-system 1.15.0 → 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 +12 -0
- package/dist/index.es.js +501 -422
- 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, { useState as me, useEffect as
|
|
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 R = !1, U = !1,
|
|
71
|
+
var R = !1, U = !1, ke = !1, q = !1, G = !1, K;
|
|
72
72
|
K = Symbol.for("react.module.reference");
|
|
73
|
-
function
|
|
74
|
-
return !!(typeof l == "string" || typeof l == "function" || l === t || l === s || G || l === o || l === f || l === u || q || l === v || R || U ||
|
|
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 || 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
|
-
function
|
|
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
|
}
|
|
@@ -226,7 +226,7 @@ function qn() {
|
|
|
226
226
|
var M = Error.prepareStackTrace;
|
|
227
227
|
Error.prepareStackTrace = void 0;
|
|
228
228
|
var S;
|
|
229
|
-
S = X.current, X.current = null,
|
|
229
|
+
S = X.current, X.current = null, te();
|
|
230
230
|
try {
|
|
231
231
|
if (h) {
|
|
232
232
|
var T = function() {
|
|
@@ -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];
|
|
@@ -589,7 +589,7 @@ Check the top-level render call using <` + m + ">.");
|
|
|
589
589
|
}
|
|
590
590
|
function ht(l, h, m, k, M, S) {
|
|
591
591
|
{
|
|
592
|
-
var T =
|
|
592
|
+
var T = re(l);
|
|
593
593
|
if (!T) {
|
|
594
594
|
var L = "";
|
|
595
595
|
(l === void 0 || typeof l == "object" && l !== null && Object.keys(l).length === 0) && (L += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
@@ -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
|
|
@@ -2564,21 +2564,21 @@ function vs() {
|
|
|
2564
2564
|
* @see https://tailwindcss.com/docs/overflow
|
|
2565
2565
|
*/
|
|
2566
2566
|
overflow: [{
|
|
2567
|
-
overflow:
|
|
2567
|
+
overflow: re()
|
|
2568
2568
|
}],
|
|
2569
2569
|
/**
|
|
2570
2570
|
* Overflow X
|
|
2571
2571
|
* @see https://tailwindcss.com/docs/overflow
|
|
2572
2572
|
*/
|
|
2573
2573
|
"overflow-x": [{
|
|
2574
|
-
"overflow-x":
|
|
2574
|
+
"overflow-x": re()
|
|
2575
2575
|
}],
|
|
2576
2576
|
/**
|
|
2577
2577
|
* Overflow Y
|
|
2578
2578
|
* @see https://tailwindcss.com/docs/overflow
|
|
2579
2579
|
*/
|
|
2580
2580
|
"overflow-y": [{
|
|
2581
|
-
"overflow-y":
|
|
2581
|
+
"overflow-y": re()
|
|
2582
2582
|
}],
|
|
2583
2583
|
/**
|
|
2584
2584
|
* Overscroll Behavior
|
|
@@ -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
|
|
@@ -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,7 +4872,7 @@ const yt = (...e) => Me(Es(...e)), Nr = [
|
|
|
4872
4872
|
)
|
|
4873
4873
|
] })
|
|
4874
4874
|
}
|
|
4875
|
-
) }),
|
|
4875
|
+
) }), Yt = $s, Ts = ({
|
|
4876
4876
|
content: e = void 0,
|
|
4877
4877
|
iconName: r = void 0,
|
|
4878
4878
|
title: n = "",
|
|
@@ -4881,7 +4881,7 @@ const yt = (...e) => Me(Es(...e)), Nr = [
|
|
|
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,7 +4941,7 @@ const yt = (...e) => Me(Es(...e)), Nr = [
|
|
|
4941
4941
|
}
|
|
4942
4942
|
}
|
|
4943
4943
|
}
|
|
4944
|
-
),
|
|
4944
|
+
), qt = (e) => xe(Ss(e)), Rs = ({
|
|
4945
4945
|
id: e,
|
|
4946
4946
|
label: r = "",
|
|
4947
4947
|
name: n = "",
|
|
@@ -4957,23 +4957,23 @@ const yt = (...e) => Me(Es(...e)), Nr = [
|
|
|
4957
4957
|
name: n,
|
|
4958
4958
|
disabled: o,
|
|
4959
4959
|
type: "checkbox",
|
|
4960
|
-
className: `ds-form-checkbox ${
|
|
4960
|
+
className: `ds-form-checkbox ${Zt({ disabled: o })} ds-rounded`,
|
|
4961
4961
|
checked: t,
|
|
4962
4962
|
ref: (d) => d && (d.indeterminate = s),
|
|
4963
4963
|
...a
|
|
4964
4964
|
}
|
|
4965
4965
|
),
|
|
4966
|
-
/* @__PURE__ */ i.jsx("label", { htmlFor: e, className:
|
|
4967
|
-
] }),
|
|
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";
|
|
4968
4968
|
function Fs(e) {
|
|
4969
4969
|
return {
|
|
4970
4970
|
[De]: Lt,
|
|
4971
|
-
[Ye]:
|
|
4972
|
-
[Ze]:
|
|
4971
|
+
[Ye]: Ns,
|
|
4972
|
+
[Ze]: Ps,
|
|
4973
4973
|
[qe]: As
|
|
4974
4974
|
}[e] || Lt;
|
|
4975
4975
|
}
|
|
4976
|
-
const Os =
|
|
4976
|
+
const Os = ee("preflight !ds-font-sans", {
|
|
4977
4977
|
variants: {
|
|
4978
4978
|
size: {
|
|
4979
4979
|
[Ze]: "ds-mb-3",
|
|
@@ -4982,7 +4982,7 @@ const Os = de("preflight !ds-font-sans", {
|
|
|
4982
4982
|
[qe]: "ds-mb-6"
|
|
4983
4983
|
}
|
|
4984
4984
|
}
|
|
4985
|
-
}), vr =
|
|
4985
|
+
}), vr = ee("ds-text-neutrals-darker !ds-font-sans", {
|
|
4986
4986
|
variants: {
|
|
4987
4987
|
size: {
|
|
4988
4988
|
[Ze]: "ds-text-xl ds-font-semibold",
|
|
@@ -4991,7 +4991,7 @@ const Os = de("preflight !ds-font-sans", {
|
|
|
4991
4991
|
[qe]: "ds-text-4xl ds-font-semibold"
|
|
4992
4992
|
}
|
|
4993
4993
|
}
|
|
4994
|
-
}), _s =
|
|
4994
|
+
}), _s = ee("ds-mt-0 ds-font-bold ds-text-neutrals-dark", {
|
|
4995
4995
|
variants: {
|
|
4996
4996
|
size: {
|
|
4997
4997
|
[Ze]: "ds-mb-1 ds-text-sm",
|
|
@@ -5000,7 +5000,7 @@ const Os = de("preflight !ds-font-sans", {
|
|
|
5000
5000
|
[qe]: "ds-mb-3 ds-text-base"
|
|
5001
5001
|
}
|
|
5002
5002
|
}
|
|
5003
|
-
}), Ws =
|
|
5003
|
+
}), Ws = ee("ds-mb-0 ds-text-neutrals-dark", {
|
|
5004
5004
|
variants: {
|
|
5005
5005
|
size: {
|
|
5006
5006
|
[Ze]: "ds-mt-1 ds-text-base",
|
|
@@ -5009,7 +5009,7 @@ const Os = de("preflight !ds-font-sans", {
|
|
|
5009
5009
|
[qe]: "ds-mt-3 ds-text-base"
|
|
5010
5010
|
}
|
|
5011
5011
|
}
|
|
5012
|
-
}), Is =
|
|
5012
|
+
}), Is = ee("ds-text-neutrals-light", {
|
|
5013
5013
|
variants: {
|
|
5014
5014
|
size: {
|
|
5015
5015
|
[Ze]: "ds-mt-2",
|
|
@@ -5035,26 +5035,26 @@ const Os = de("preflight !ds-font-sans", {
|
|
|
5035
5035
|
h2: /* @__PURE__ */ i.jsx("h2", { className: vr({ size: e }), children: n }),
|
|
5036
5036
|
h1: /* @__PURE__ */ i.jsx("h1", { className: vr({ size: e }), children: n })
|
|
5037
5037
|
};
|
|
5038
|
-
return /* @__PURE__ */ i.jsxs("div", { className:
|
|
5038
|
+
return /* @__PURE__ */ i.jsxs("div", { className: xe(g, r), ...c, children: [
|
|
5039
5039
|
f,
|
|
5040
5040
|
v[d || Fs(e)],
|
|
5041
5041
|
u,
|
|
5042
5042
|
p
|
|
5043
5043
|
] });
|
|
5044
|
-
},
|
|
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: [
|
|
5045
5045
|
/* @__PURE__ */ i.jsx(
|
|
5046
5046
|
"input",
|
|
5047
5047
|
{
|
|
5048
5048
|
id: n,
|
|
5049
5049
|
name: r,
|
|
5050
5050
|
type: "radio",
|
|
5051
|
-
className: `ds-form-radio ${
|
|
5051
|
+
className: `ds-form-radio ${Zt({ disabled: t })}`,
|
|
5052
5052
|
disabled: t,
|
|
5053
5053
|
...o
|
|
5054
5054
|
}
|
|
5055
5055
|
),
|
|
5056
|
-
/* @__PURE__ */ i.jsx("label", { htmlFor: n, className:
|
|
5057
|
-
] }),
|
|
5056
|
+
/* @__PURE__ */ i.jsx("label", { htmlFor: n, className: qt({ disabled: t }), children: e })
|
|
5057
|
+
] }), Oa = Ds, Hs = ee(
|
|
5058
5058
|
[
|
|
5059
5059
|
"preflight",
|
|
5060
5060
|
"!ds-font-sans",
|
|
@@ -5093,10 +5093,10 @@ const Os = de("preflight !ds-font-sans", {
|
|
|
5093
5093
|
type: n = "default",
|
|
5094
5094
|
iconName: t,
|
|
5095
5095
|
...o
|
|
5096
|
-
}) => /* @__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: [
|
|
5097
5097
|
e,
|
|
5098
5098
|
t && /* @__PURE__ */ i.jsx(We, { altText: e, name: t, size: "small" })
|
|
5099
|
-
] }),
|
|
5099
|
+
] }), _a = Bs;
|
|
5100
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);
|
|
5101
5101
|
let Gs = class {
|
|
5102
5102
|
constructor() {
|
|
@@ -5176,13 +5176,13 @@ function Oe() {
|
|
|
5176
5176
|
}
|
|
5177
5177
|
function Kr() {
|
|
5178
5178
|
let [e] = me(Oe);
|
|
5179
|
-
return
|
|
5179
|
+
return oe(() => () => e.dispose(), [e]), e;
|
|
5180
5180
|
}
|
|
5181
5181
|
let Z = (e, r) => {
|
|
5182
|
-
Ve.isServer ?
|
|
5182
|
+
Ve.isServer ? oe(e, r) : Dn(e, r);
|
|
5183
5183
|
};
|
|
5184
5184
|
function Ce(e) {
|
|
5185
|
-
let r =
|
|
5185
|
+
let r = N(e);
|
|
5186
5186
|
return Z(() => {
|
|
5187
5187
|
r.current = e;
|
|
5188
5188
|
}, [e]), r;
|
|
@@ -5190,7 +5190,7 @@ function Ce(e) {
|
|
|
5190
5190
|
let A = function(e) {
|
|
5191
5191
|
let r = Ce(e);
|
|
5192
5192
|
return j.useCallback((...n) => r.current(...n), [r]);
|
|
5193
|
-
}, Ys =
|
|
5193
|
+
}, Ys = de(void 0);
|
|
5194
5194
|
function Zs() {
|
|
5195
5195
|
return Q(Ys);
|
|
5196
5196
|
}
|
|
@@ -5208,7 +5208,7 @@ function B(e, r, ...n) {
|
|
|
5208
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 || {});
|
|
5209
5209
|
function ge({ ourProps: e, theirProps: r, slot: n, defaultTag: t, features: o, visible: s = !0, name: a, mergeRefs: d }) {
|
|
5210
5210
|
d = d != null ? d : qs;
|
|
5211
|
-
let c =
|
|
5211
|
+
let c = Jt(r, e);
|
|
5212
5212
|
if (s)
|
|
5213
5213
|
return br(c, n, t, a, d);
|
|
5214
5214
|
let f = o != null ? o : 0;
|
|
@@ -5241,20 +5241,20 @@ function br(e, r = {}, n, t, o) {
|
|
|
5241
5241
|
p[`data-${C}`] = "";
|
|
5242
5242
|
}
|
|
5243
5243
|
}
|
|
5244
|
-
if (s ===
|
|
5245
|
-
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) {
|
|
5246
5246
|
if (Object.keys(Ue(c)).length > 0)
|
|
5247
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(`
|
|
5248
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(`
|
|
5249
5249
|
`)].join(`
|
|
5250
5250
|
`));
|
|
5251
5251
|
} else {
|
|
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 =
|
|
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"])));
|
|
5253
5253
|
for (let w in p)
|
|
5254
5254
|
w in b && delete p[w];
|
|
5255
|
-
return
|
|
5255
|
+
return zn(u, Object.assign({}, b, p, f, { ref: o(u.ref, f.ref) }, x));
|
|
5256
5256
|
}
|
|
5257
|
-
return
|
|
5257
|
+
return Un(s, Object.assign({}, Fr(c, ["ref"]), s !== le && f, s !== le && p), u);
|
|
5258
5258
|
}
|
|
5259
5259
|
function qs(...e) {
|
|
5260
5260
|
return e.every((r) => r == null) ? void 0 : (r) => {
|
|
@@ -5262,7 +5262,7 @@ function qs(...e) {
|
|
|
5262
5262
|
n != null && (typeof n == "function" ? n(r) : n.current = r);
|
|
5263
5263
|
};
|
|
5264
5264
|
}
|
|
5265
|
-
function
|
|
5265
|
+
function Jt(...e) {
|
|
5266
5266
|
if (e.length === 0)
|
|
5267
5267
|
return {};
|
|
5268
5268
|
if (e.length === 1)
|
|
@@ -5290,7 +5290,7 @@ function Kt(...e) {
|
|
|
5290
5290
|
}
|
|
5291
5291
|
function ce(e) {
|
|
5292
5292
|
var r;
|
|
5293
|
-
return Object.assign(
|
|
5293
|
+
return Object.assign(Hn(e), { displayName: (r = e.displayName) != null ? r : e.name });
|
|
5294
5294
|
}
|
|
5295
5295
|
function Ue(e) {
|
|
5296
5296
|
let r = Object.assign({}, e);
|
|
@@ -5311,7 +5311,7 @@ function Js(e, r) {
|
|
|
5311
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" } } };
|
|
5312
5312
|
return ge({ ourProps: s, theirProps: o, slot: {}, defaultTag: Ks, name: "Hidden" });
|
|
5313
5313
|
}
|
|
5314
|
-
let Vr = ce(Js), Xs =
|
|
5314
|
+
let Vr = ce(Js), Xs = de(null);
|
|
5315
5315
|
function Qs({ children: e }) {
|
|
5316
5316
|
let r = Q(Xs);
|
|
5317
5317
|
if (!r)
|
|
@@ -5319,51 +5319,51 @@ function Qs({ children: e }) {
|
|
|
5319
5319
|
let { target: n } = r;
|
|
5320
5320
|
return n ? Rt(j.createElement(j.Fragment, null, e), n) : null;
|
|
5321
5321
|
}
|
|
5322
|
-
let
|
|
5322
|
+
let Xt = Symbol();
|
|
5323
5323
|
function ei(e, r = !0) {
|
|
5324
|
-
return Object.assign(e, { [
|
|
5324
|
+
return Object.assign(e, { [Xt]: r });
|
|
5325
5325
|
}
|
|
5326
|
-
function
|
|
5327
|
-
let r =
|
|
5328
|
-
|
|
5326
|
+
function we(...e) {
|
|
5327
|
+
let r = N(e);
|
|
5328
|
+
oe(() => {
|
|
5329
5329
|
r.current = e;
|
|
5330
5330
|
}, [e]);
|
|
5331
5331
|
let n = A((t) => {
|
|
5332
5332
|
for (let o of r.current)
|
|
5333
5333
|
o != null && (typeof o == "function" ? o(t) : o.current = t);
|
|
5334
5334
|
});
|
|
5335
|
-
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;
|
|
5336
5336
|
}
|
|
5337
|
-
let Jr =
|
|
5337
|
+
let Jr = de(null);
|
|
5338
5338
|
Jr.displayName = "DescriptionContext";
|
|
5339
|
-
function
|
|
5339
|
+
function Qt() {
|
|
5340
5340
|
let e = Q(Jr);
|
|
5341
5341
|
if (e === null) {
|
|
5342
5342
|
let r = new Error("You used a <Description /> component, but it is not inside a relevant parent.");
|
|
5343
|
-
throw Error.captureStackTrace && Error.captureStackTrace(r,
|
|
5343
|
+
throw Error.captureStackTrace && Error.captureStackTrace(r, Qt), r;
|
|
5344
5344
|
}
|
|
5345
5345
|
return e;
|
|
5346
5346
|
}
|
|
5347
5347
|
function ri() {
|
|
5348
5348
|
let [e, r] = me([]);
|
|
5349
|
-
return [e.length > 0 ? e.join(" ") : void 0,
|
|
5349
|
+
return [e.length > 0 ? e.join(" ") : void 0, se(() => function(n) {
|
|
5350
5350
|
let t = A((s) => (r((a) => [...a, s]), () => r((a) => {
|
|
5351
5351
|
let d = a.slice(), c = d.indexOf(s);
|
|
5352
5352
|
return c !== -1 && d.splice(c, 1), d;
|
|
5353
|
-
}))), 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]);
|
|
5354
5354
|
return j.createElement(Jr.Provider, { value: o }, n.children);
|
|
5355
5355
|
}, [r])];
|
|
5356
5356
|
}
|
|
5357
5357
|
let ti = "p";
|
|
5358
5358
|
function ni(e, r) {
|
|
5359
|
-
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);
|
|
5360
5360
|
Z(() => a.register(o), [o, a.register]);
|
|
5361
|
-
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 };
|
|
5362
5362
|
return ge({ ourProps: u, theirProps: s, slot: f, defaultTag: ti, name: a.name || "Description" });
|
|
5363
5363
|
}
|
|
5364
5364
|
let oi = ce(ni), si = Object.assign(oi, {});
|
|
5365
|
-
var
|
|
5366
|
-
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(() => {
|
|
5367
5367
|
});
|
|
5368
5368
|
function ai({ value: e, children: r }) {
|
|
5369
5369
|
return j.createElement(ii.Provider, { value: e }, r);
|
|
@@ -5407,12 +5407,12 @@ function li({ allowed: e, disallowed: r } = {}, n = !0) {
|
|
|
5407
5407
|
return s.dispose;
|
|
5408
5408
|
}, [n, e, r]);
|
|
5409
5409
|
}
|
|
5410
|
-
function
|
|
5410
|
+
function rn(e, r, n = !0) {
|
|
5411
5411
|
let t = Ce((o) => {
|
|
5412
5412
|
let s = o.getBoundingClientRect();
|
|
5413
5413
|
s.x === 0 && s.y === 0 && s.width === 0 && s.height === 0 && r();
|
|
5414
5414
|
});
|
|
5415
|
-
|
|
5415
|
+
oe(() => {
|
|
5416
5416
|
if (!n)
|
|
5417
5417
|
return;
|
|
5418
5418
|
let o = e === null ? null : e instanceof HTMLElement ? e : e.current;
|
|
@@ -5431,14 +5431,14 @@ function en(e, r, n = !0) {
|
|
|
5431
5431
|
}, [e, t, n]);
|
|
5432
5432
|
}
|
|
5433
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(",");
|
|
5434
|
-
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 || {});
|
|
5435
5435
|
function ui(e = document.body) {
|
|
5436
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)));
|
|
5437
5437
|
}
|
|
5438
5438
|
function fi(e = document.body) {
|
|
5439
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)));
|
|
5440
5440
|
}
|
|
5441
|
-
var
|
|
5441
|
+
var tn = ((e) => (e[e.Strict = 0] = "Strict", e[e.Loose = 1] = "Loose", e))(tn || {});
|
|
5442
5442
|
function pi(e, r = 0) {
|
|
5443
5443
|
var n;
|
|
5444
5444
|
return e === ((n = qr(e)) == null ? void 0 : n.body) ? !1 : B(r, { 0() {
|
|
@@ -5459,7 +5459,7 @@ typeof window != "undefined" && typeof document != "undefined" && (document.addE
|
|
|
5459
5459
|
}, !0), document.addEventListener("click", (e) => {
|
|
5460
5460
|
e.detail === 1 ? delete document.documentElement.dataset.headlessuiFocusVisible : e.detail === 0 && (document.documentElement.dataset.headlessuiFocusVisible = "");
|
|
5461
5461
|
}, !0));
|
|
5462
|
-
function
|
|
5462
|
+
function Me(e) {
|
|
5463
5463
|
e == null || e.focus({ preventScroll: !0 });
|
|
5464
5464
|
}
|
|
5465
5465
|
let mi = ["textarea", "input"].join(",");
|
|
@@ -5512,27 +5512,27 @@ function lr(e, r, { sorted: n = !0, relativeTo: t = null, skipElements: o = [] }
|
|
|
5512
5512
|
} while (g !== s.activeElement);
|
|
5513
5513
|
return r & 6 && gi(g) && g.select(), 2;
|
|
5514
5514
|
}
|
|
5515
|
-
function
|
|
5515
|
+
function nn() {
|
|
5516
5516
|
return /iPhone/gi.test(window.navigator.platform) || /Mac/gi.test(window.navigator.platform) && window.navigator.maxTouchPoints > 0;
|
|
5517
5517
|
}
|
|
5518
5518
|
function bi() {
|
|
5519
5519
|
return /Android/gi.test(window.navigator.userAgent);
|
|
5520
5520
|
}
|
|
5521
5521
|
function Ci() {
|
|
5522
|
-
return
|
|
5522
|
+
return nn() || bi();
|
|
5523
5523
|
}
|
|
5524
5524
|
function Cr(e, r, n) {
|
|
5525
5525
|
let t = Ce(r);
|
|
5526
|
-
|
|
5526
|
+
oe(() => {
|
|
5527
5527
|
function o(s) {
|
|
5528
5528
|
t.current(s);
|
|
5529
5529
|
}
|
|
5530
5530
|
return document.addEventListener(e, o, n), () => document.removeEventListener(e, o, n);
|
|
5531
5531
|
}, [e, n]);
|
|
5532
5532
|
}
|
|
5533
|
-
function
|
|
5533
|
+
function on(e, r, n) {
|
|
5534
5534
|
let t = Ce(r);
|
|
5535
|
-
|
|
5535
|
+
oe(() => {
|
|
5536
5536
|
function o(s) {
|
|
5537
5537
|
t.current(s);
|
|
5538
5538
|
}
|
|
@@ -5540,8 +5540,8 @@ function nn(e, r, n) {
|
|
|
5540
5540
|
}, [e, n]);
|
|
5541
5541
|
}
|
|
5542
5542
|
function xi(e, r, n = !0) {
|
|
5543
|
-
let t =
|
|
5544
|
-
|
|
5543
|
+
let t = N(!1);
|
|
5544
|
+
oe(() => {
|
|
5545
5545
|
requestAnimationFrame(() => {
|
|
5546
5546
|
t.current = n;
|
|
5547
5547
|
});
|
|
@@ -5562,9 +5562,9 @@ function xi(e, r, n = !0) {
|
|
|
5562
5562
|
if (p != null && p.contains(c) || a.composed && a.composedPath().includes(p))
|
|
5563
5563
|
return;
|
|
5564
5564
|
}
|
|
5565
|
-
return !pi(c,
|
|
5565
|
+
return !pi(c, tn.Loose) && c.tabIndex !== -1 && a.preventDefault(), r(a, c);
|
|
5566
5566
|
}
|
|
5567
|
-
let s =
|
|
5567
|
+
let s = N(null);
|
|
5568
5568
|
Cr("pointerdown", (a) => {
|
|
5569
5569
|
var d, c;
|
|
5570
5570
|
t.current && (s.current = ((c = (d = a.composedPath) == null ? void 0 : d.call(a)) == null ? void 0 : c[0]) || a.target);
|
|
@@ -5573,14 +5573,14 @@ function xi(e, r, n = !0) {
|
|
|
5573
5573
|
t.current && (s.current = ((c = (d = a.composedPath) == null ? void 0 : d.call(a)) == null ? void 0 : c[0]) || a.target);
|
|
5574
5574
|
}, !0), Cr("click", (a) => {
|
|
5575
5575
|
Ci() || s.current && (o(a, () => s.current), s.current = null);
|
|
5576
|
-
}, !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);
|
|
5577
5577
|
}
|
|
5578
5578
|
function dr(...e) {
|
|
5579
|
-
return
|
|
5579
|
+
return se(() => qr(...e), [...e]);
|
|
5580
5580
|
}
|
|
5581
|
-
function
|
|
5581
|
+
function sn(e, r, n, t) {
|
|
5582
5582
|
let o = Ce(n);
|
|
5583
|
-
|
|
5583
|
+
oe(() => {
|
|
5584
5584
|
e = e != null ? e : window;
|
|
5585
5585
|
function s(a) {
|
|
5586
5586
|
o.current(a);
|
|
@@ -5589,7 +5589,7 @@ function on(e, r, n, t) {
|
|
|
5589
5589
|
}, [e, r, t]);
|
|
5590
5590
|
}
|
|
5591
5591
|
function wi(e) {
|
|
5592
|
-
return
|
|
5592
|
+
return Gn(e.subscribe, e.getSnapshot, e.getSnapshot);
|
|
5593
5593
|
}
|
|
5594
5594
|
function ki(e, r) {
|
|
5595
5595
|
let n = e(), t = /* @__PURE__ */ new Set();
|
|
@@ -5614,7 +5614,7 @@ function yi() {
|
|
|
5614
5614
|
} };
|
|
5615
5615
|
}
|
|
5616
5616
|
function ji() {
|
|
5617
|
-
return
|
|
5617
|
+
return nn() ? { before({ doc: e, d: r, meta: n }) {
|
|
5618
5618
|
function t(o) {
|
|
5619
5619
|
return n.containers.flatMap((s) => s()).some((s) => s.contains(o));
|
|
5620
5620
|
}
|
|
@@ -5713,8 +5713,8 @@ function Ti(e, r, n = () => [document.body]) {
|
|
|
5713
5713
|
});
|
|
5714
5714
|
}
|
|
5715
5715
|
function Xr(e, r) {
|
|
5716
|
-
let n =
|
|
5717
|
-
|
|
5716
|
+
let n = N([]), t = A(e);
|
|
5717
|
+
oe(() => {
|
|
5718
5718
|
let o = [...n.current];
|
|
5719
5719
|
for (let [s, a] of r.entries())
|
|
5720
5720
|
if (n.current[s] !== a) {
|
|
@@ -5723,9 +5723,9 @@ function Xr(e, r) {
|
|
|
5723
5723
|
}
|
|
5724
5724
|
}, [t, ...r]);
|
|
5725
5725
|
}
|
|
5726
|
-
let Qr =
|
|
5726
|
+
let Qr = de(null);
|
|
5727
5727
|
Qr.displayName = "OpenClosedContext";
|
|
5728
|
-
var
|
|
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 || {});
|
|
5729
5729
|
function et() {
|
|
5730
5730
|
return Q(Qr);
|
|
5731
5731
|
}
|
|
@@ -5745,9 +5745,9 @@ Si(() => {
|
|
|
5745
5745
|
}
|
|
5746
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 });
|
|
5747
5747
|
});
|
|
5748
|
-
function
|
|
5749
|
-
let r = A(e), n =
|
|
5750
|
-
|
|
5748
|
+
function an(e) {
|
|
5749
|
+
let r = A(e), n = N(!1);
|
|
5750
|
+
oe(() => (n.current = !1, () => {
|
|
5751
5751
|
n.current = !0, jr(() => {
|
|
5752
5752
|
n.current && r();
|
|
5753
5753
|
});
|
|
@@ -5764,15 +5764,15 @@ function cr() {
|
|
|
5764
5764
|
r !== !0 && n(!0);
|
|
5765
5765
|
}, [r]), sr.useEffect(() => Ve.handoff(), []), e ? !1 : r;
|
|
5766
5766
|
}
|
|
5767
|
-
let
|
|
5768
|
-
function
|
|
5769
|
-
return Q(
|
|
5767
|
+
let ln = de(!1);
|
|
5768
|
+
function Ni() {
|
|
5769
|
+
return Q(ln);
|
|
5770
5770
|
}
|
|
5771
5771
|
function Mt(e) {
|
|
5772
|
-
return j.createElement(
|
|
5772
|
+
return j.createElement(ln.Provider, { value: e.force }, e.children);
|
|
5773
5773
|
}
|
|
5774
|
-
function
|
|
5775
|
-
let r =
|
|
5774
|
+
function Pi(e) {
|
|
5775
|
+
let r = Ni(), n = Q(cn), t = dr(e), [o, s] = me(() => {
|
|
5776
5776
|
var a;
|
|
5777
5777
|
if (!r && n !== null)
|
|
5778
5778
|
return (a = n.current) != null ? a : null;
|
|
@@ -5786,16 +5786,16 @@ function Ni(e) {
|
|
|
5786
5786
|
let c = t.createElement("div");
|
|
5787
5787
|
return c.setAttribute("id", "headlessui-portal-root"), t.body.appendChild(c);
|
|
5788
5788
|
});
|
|
5789
|
-
return
|
|
5789
|
+
return oe(() => {
|
|
5790
5790
|
o !== null && (t != null && t.body.contains(o) || t == null || t.body.appendChild(o));
|
|
5791
|
-
}, [o, t]),
|
|
5791
|
+
}, [o, t]), oe(() => {
|
|
5792
5792
|
r || n !== null && s(n.current);
|
|
5793
5793
|
}, [n, s, r]), o;
|
|
5794
5794
|
}
|
|
5795
|
-
let
|
|
5796
|
-
let n = e, t =
|
|
5795
|
+
let dn = le, Ai = ce(function(e, r) {
|
|
5796
|
+
let n = e, t = N(null), o = we(ei((u) => {
|
|
5797
5797
|
t.current = u;
|
|
5798
|
-
}), r), s = dr(t), a =
|
|
5798
|
+
}), r), s = dr(t), a = Pi(t), [d] = me(() => {
|
|
5799
5799
|
var u;
|
|
5800
5800
|
return Ve.isServer ? null : (u = s == null ? void 0 : s.createElement("div")) != null ? u : null;
|
|
5801
5801
|
}), c = Q(zr), f = cr();
|
|
@@ -5804,27 +5804,27 @@ let ln = ae, Ai = ce(function(e, r) {
|
|
|
5804
5804
|
}, [a, d]), Z(() => {
|
|
5805
5805
|
if (d && c)
|
|
5806
5806
|
return c.register(d);
|
|
5807
|
-
}, [c, d]),
|
|
5807
|
+
}, [c, d]), an(() => {
|
|
5808
5808
|
var u;
|
|
5809
5809
|
!a || !d || (d instanceof Node && a.contains(d) && a.removeChild(d), a.childNodes.length <= 0 && ((u = a.parentElement) == null || u.removeChild(a)));
|
|
5810
|
-
}), 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;
|
|
5811
5811
|
});
|
|
5812
5812
|
function Fi(e, r) {
|
|
5813
|
-
let n =
|
|
5814
|
-
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" });
|
|
5815
5815
|
}
|
|
5816
|
-
let Oi =
|
|
5816
|
+
let Oi = le, cn = de(null);
|
|
5817
5817
|
function _i(e, r) {
|
|
5818
|
-
let { target: n, ...t } = e, o = { ref:
|
|
5819
|
-
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" }));
|
|
5820
5820
|
}
|
|
5821
|
-
let zr =
|
|
5821
|
+
let zr = de(null);
|
|
5822
5822
|
function Wi() {
|
|
5823
|
-
let e = Q(zr), r =
|
|
5823
|
+
let e = Q(zr), r = N([]), n = A((s) => (r.current.push(s), e && e.register(s), () => t(s))), t = A((s) => {
|
|
5824
5824
|
let a = r.current.indexOf(s);
|
|
5825
5825
|
a !== -1 && r.current.splice(a, 1), e && e.unregister(s);
|
|
5826
|
-
}), o =
|
|
5827
|
-
return [r,
|
|
5826
|
+
}), o = se(() => ({ register: n, unregister: t, portals: r }), [n, t, r]);
|
|
5827
|
+
return [r, se(() => function({ children: s }) {
|
|
5828
5828
|
return j.createElement(zr.Provider, { value: o }, s);
|
|
5829
5829
|
}, [o])];
|
|
5830
5830
|
}
|
|
@@ -5843,7 +5843,7 @@ function Di() {
|
|
|
5843
5843
|
}
|
|
5844
5844
|
function Hi({ defaultContainers: e = [], portals: r, mainTreeNodeRef: n } = {}) {
|
|
5845
5845
|
var t;
|
|
5846
|
-
let o =
|
|
5846
|
+
let o = N((t = n == null ? void 0 : n.current) != null ? t : null), s = dr(o), a = A(() => {
|
|
5847
5847
|
var d, c, f;
|
|
5848
5848
|
let u = [];
|
|
5849
5849
|
for (let p of e)
|
|
@@ -5855,11 +5855,11 @@ function Hi({ defaultContainers: e = [], portals: r, mainTreeNodeRef: n } = {})
|
|
|
5855
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));
|
|
5856
5856
|
return u;
|
|
5857
5857
|
});
|
|
5858
|
-
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() {
|
|
5859
5859
|
return n != null ? null : j.createElement(Vr, { features: wr.Hidden, ref: o });
|
|
5860
5860
|
}, [o, n]) };
|
|
5861
5861
|
}
|
|
5862
|
-
let rt =
|
|
5862
|
+
let rt = de(() => {
|
|
5863
5863
|
});
|
|
5864
5864
|
rt.displayName = "StackContext";
|
|
5865
5865
|
var Ur = ((e) => (e[e.Add = 0] = "Add", e[e.Remove = 1] = "Remove", e))(Ur || {});
|
|
@@ -5878,19 +5878,19 @@ function zi({ children: e, onUpdate: r, type: n, element: t, enabled: o }) {
|
|
|
5878
5878
|
}, [a, n, t, o]), j.createElement(rt.Provider, { value: a }, e);
|
|
5879
5879
|
}
|
|
5880
5880
|
function ur() {
|
|
5881
|
-
let e =
|
|
5881
|
+
let e = N(!1);
|
|
5882
5882
|
return Z(() => (e.current = !0, () => {
|
|
5883
5883
|
e.current = !1;
|
|
5884
5884
|
}), []), e;
|
|
5885
5885
|
}
|
|
5886
5886
|
var or = ((e) => (e[e.Forwards = 0] = "Forwards", e[e.Backwards = 1] = "Backwards", e))(or || {});
|
|
5887
5887
|
function Ui() {
|
|
5888
|
-
let e =
|
|
5889
|
-
return
|
|
5888
|
+
let e = N(0);
|
|
5889
|
+
return on("keydown", (r) => {
|
|
5890
5890
|
r.key === "Tab" && (e.current = r.shiftKey ? 1 : 0);
|
|
5891
5891
|
}, !0), e;
|
|
5892
5892
|
}
|
|
5893
|
-
function
|
|
5893
|
+
function un(e) {
|
|
5894
5894
|
if (!e)
|
|
5895
5895
|
return /* @__PURE__ */ new Set();
|
|
5896
5896
|
if (typeof e == "function")
|
|
@@ -5901,9 +5901,9 @@ function cn(e) {
|
|
|
5901
5901
|
return r;
|
|
5902
5902
|
}
|
|
5903
5903
|
let Gi = "div";
|
|
5904
|
-
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 || {});
|
|
5905
5905
|
function Yi(e, r) {
|
|
5906
|
-
let n =
|
|
5906
|
+
let n = N(null), t = we(n, r), { initialFocus: o, initialFocusFallback: s, containers: a, features: d = 30, ...c } = e;
|
|
5907
5907
|
cr() || (d = 1);
|
|
5908
5908
|
let f = dr(n);
|
|
5909
5909
|
Ji({ ownerDocument: f }, !!(d & 16));
|
|
@@ -5913,28 +5913,28 @@ function Yi(e, r) {
|
|
|
5913
5913
|
let w = n.current;
|
|
5914
5914
|
w && ((y) => y())(() => {
|
|
5915
5915
|
B(p.current, { [or.Forwards]: () => {
|
|
5916
|
-
lr(w,
|
|
5916
|
+
lr(w, Te.First, { skipElements: [b.relatedTarget, s] });
|
|
5917
5917
|
}, [or.Backwards]: () => {
|
|
5918
|
-
lr(w,
|
|
5918
|
+
lr(w, Te.Last, { skipElements: [b.relatedTarget, s] });
|
|
5919
5919
|
} });
|
|
5920
5920
|
});
|
|
5921
|
-
}), v = Kr(), C =
|
|
5921
|
+
}), v = Kr(), C = N(!1), x = { ref: t, onKeyDown(b) {
|
|
5922
5922
|
b.key == "Tab" && (C.current = !0, v.requestAnimationFrame(() => {
|
|
5923
5923
|
C.current = !1;
|
|
5924
5924
|
}));
|
|
5925
5925
|
}, onBlur(b) {
|
|
5926
5926
|
if (!(d & 8))
|
|
5927
5927
|
return;
|
|
5928
|
-
let w =
|
|
5928
|
+
let w = un(a);
|
|
5929
5929
|
n.current instanceof HTMLElement && w.add(n.current);
|
|
5930
5930
|
let y = b.relatedTarget;
|
|
5931
|
-
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)));
|
|
5932
5932
|
} };
|
|
5933
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 }));
|
|
5934
5934
|
}
|
|
5935
|
-
let Zi = ce(Yi), qi = Object.assign(Zi, { features:
|
|
5935
|
+
let Zi = ce(Yi), qi = Object.assign(Zi, { features: $e });
|
|
5936
5936
|
function Ki(e = !0) {
|
|
5937
|
-
let r =
|
|
5937
|
+
let r = N(Ae.slice());
|
|
5938
5938
|
return Xr(([n], [t]) => {
|
|
5939
5939
|
t === !0 && n === !1 && jr(() => {
|
|
5940
5940
|
r.current.splice(0);
|
|
@@ -5947,16 +5947,16 @@ function Ki(e = !0) {
|
|
|
5947
5947
|
function Ji({ ownerDocument: e }, r) {
|
|
5948
5948
|
let n = Ki(r);
|
|
5949
5949
|
Xr(() => {
|
|
5950
|
-
r || (e == null ? void 0 : e.activeElement) === (e == null ? void 0 : e.body) &&
|
|
5951
|
-
}, [r]),
|
|
5952
|
-
r &&
|
|
5950
|
+
r || (e == null ? void 0 : e.activeElement) === (e == null ? void 0 : e.body) && Me(n());
|
|
5951
|
+
}, [r]), an(() => {
|
|
5952
|
+
r && Me(n());
|
|
5953
5953
|
});
|
|
5954
5954
|
}
|
|
5955
5955
|
function Xi({ ownerDocument: e, container: r, initialFocus: n, initialFocusFallback: t }, o) {
|
|
5956
|
-
let s = !!(o & 2), a =
|
|
5956
|
+
let s = !!(o & 2), a = N(null), d = ur();
|
|
5957
5957
|
return Xr(() => {
|
|
5958
5958
|
if (!s) {
|
|
5959
|
-
t != null && t.current &&
|
|
5959
|
+
t != null && t.current && Me(t.current);
|
|
5960
5960
|
return;
|
|
5961
5961
|
}
|
|
5962
5962
|
let c = r.current;
|
|
@@ -5974,14 +5974,14 @@ function Xi({ ownerDocument: e, container: r, initialFocus: n, initialFocusFallb
|
|
|
5974
5974
|
return;
|
|
5975
5975
|
}
|
|
5976
5976
|
if (n != null && n.current)
|
|
5977
|
-
|
|
5977
|
+
Me(n.current);
|
|
5978
5978
|
else {
|
|
5979
5979
|
if (o & 32) {
|
|
5980
|
-
if (lr(c,
|
|
5980
|
+
if (lr(c, Te.First | Te.AutoFocus) !== Br.Error)
|
|
5981
5981
|
return;
|
|
5982
|
-
} else if (lr(c,
|
|
5982
|
+
} else if (lr(c, Te.First) !== Br.Error)
|
|
5983
5983
|
return;
|
|
5984
|
-
if (t != null && t.current && (
|
|
5984
|
+
if (t != null && t.current && (Me(t.current), (e == null ? void 0 : e.activeElement) === t.current))
|
|
5985
5985
|
return;
|
|
5986
5986
|
console.warn("There are no focusable elements inside the <FocusTrap />");
|
|
5987
5987
|
}
|
|
@@ -5991,19 +5991,19 @@ function Xi({ ownerDocument: e, container: r, initialFocus: n, initialFocusFallb
|
|
|
5991
5991
|
}
|
|
5992
5992
|
function Qi({ ownerDocument: e, container: r, containers: n, previousActiveElement: t }, o) {
|
|
5993
5993
|
let s = ur();
|
|
5994
|
-
|
|
5994
|
+
sn(e == null ? void 0 : e.defaultView, "focus", (a) => {
|
|
5995
5995
|
if (!o || !s.current)
|
|
5996
5996
|
return;
|
|
5997
|
-
let d =
|
|
5997
|
+
let d = un(n);
|
|
5998
5998
|
r.current instanceof HTMLElement && d.add(r.current);
|
|
5999
5999
|
let c = t.current;
|
|
6000
6000
|
if (!c)
|
|
6001
6001
|
return;
|
|
6002
6002
|
let f = a.target;
|
|
6003
|
-
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);
|
|
6004
6004
|
}, !0);
|
|
6005
6005
|
}
|
|
6006
|
-
function
|
|
6006
|
+
function fn(e, r) {
|
|
6007
6007
|
for (let n of e)
|
|
6008
6008
|
if (n.contains(r))
|
|
6009
6009
|
return !0;
|
|
@@ -6012,7 +6012,7 @@ function un(e, r) {
|
|
|
6012
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 || {});
|
|
6013
6013
|
let ta = { 0(e, r) {
|
|
6014
6014
|
return e.titleId === r.id ? e : { ...e, titleId: r.id };
|
|
6015
|
-
} }, kr =
|
|
6015
|
+
} }, kr = de(null);
|
|
6016
6016
|
kr.displayName = "DialogContext";
|
|
6017
6017
|
function tt(e) {
|
|
6018
6018
|
let r = Q(kr);
|
|
@@ -6027,13 +6027,13 @@ function na(e, r) {
|
|
|
6027
6027
|
}
|
|
6028
6028
|
let oa = "div", sa = xr.RenderStrategy | xr.Static;
|
|
6029
6029
|
function ia(e, r) {
|
|
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 =
|
|
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);
|
|
6031
6031
|
d = function() {
|
|
6032
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");
|
|
6033
6033
|
}();
|
|
6034
6034
|
let C = et();
|
|
6035
|
-
o === void 0 && C !== null && (o = (C &
|
|
6036
|
-
let x =
|
|
6035
|
+
o === void 0 && C !== null && (o = (C & ne.Open) === ne.Open);
|
|
6036
|
+
let x = N(null), b = we(x, r), w = dr(x), y = e.hasOwnProperty("open") || C !== null, ue = e.hasOwnProperty("onClose");
|
|
6037
6037
|
if (!y && !ue)
|
|
6038
6038
|
throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");
|
|
6039
6039
|
if (!y)
|
|
@@ -6044,43 +6044,43 @@ function ia(e, r) {
|
|
|
6044
6044
|
throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${o}`);
|
|
6045
6045
|
if (typeof s != "function")
|
|
6046
6046
|
throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${s}`);
|
|
6047
|
-
let R = o ? 0 : 1, [U,
|
|
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() {
|
|
6048
6048
|
var O;
|
|
6049
6049
|
return (O = U.panelRef.current) != null ? O : x.current;
|
|
6050
|
-
} }, { resolveContainers: z, mainTreeNodeRef: fe, MainTreeNode: ve } = Hi({ portals: $, defaultContainers: [I] }), pe =
|
|
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;
|
|
6051
6051
|
li({ allowed: A(() => {
|
|
6052
6052
|
var O, be;
|
|
6053
6053
|
return [(be = (O = x.current) == null ? void 0 : O.closest("[data-headlessui-portal]")) != null ? be : null];
|
|
6054
6054
|
}), disallowed: A(() => {
|
|
6055
6055
|
var O, be;
|
|
6056
6056
|
return [(be = (O = fe.current) == null ? void 0 : O.closest("body > *:not(#headlessui-portal-root)")) != null ? be : null];
|
|
6057
|
-
}) }, f ? !1 :
|
|
6057
|
+
}) }, f ? !1 : ye), xi(z, (O) => {
|
|
6058
6058
|
O.preventDefault(), q();
|
|
6059
|
-
}, !(!K ||
|
|
6060
|
-
let J = !(
|
|
6061
|
-
|
|
6062
|
-
J && (O.defaultPrevented || O.key ===
|
|
6063
|
-
}), Ti(w, f ? !1 : !(H || R !== 0 ||
|
|
6064
|
-
let [
|
|
6065
|
-
return c && (
|
|
6059
|
+
}, !(!K || re));
|
|
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) => {
|
|
6066
6066
|
be === "Dialog" && B(O, { [Ur.Add]: () => g((Xe) => Xe + 1), [Ur.Remove]: () => g((Xe) => Xe - 1) });
|
|
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:
|
|
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)));
|
|
6068
6068
|
}
|
|
6069
6069
|
let aa = "div";
|
|
6070
6070
|
function la(e, r) {
|
|
6071
|
-
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) => {
|
|
6072
6072
|
u.stopPropagation();
|
|
6073
6073
|
});
|
|
6074
6074
|
return ge({ ourProps: { ref: d, id: t, onClick: f }, theirProps: o, slot: c, defaultTag: aa, name: "Dialog.Panel" });
|
|
6075
6075
|
}
|
|
6076
6076
|
let da = "h2";
|
|
6077
6077
|
function ca(e, r) {
|
|
6078
|
-
let n = yr(), { id: t = `headlessui-dialog-title-${n}`, ...o } = e, [{ dialogState: s, setTitleId: a }] = tt("Dialog.Title"), d =
|
|
6079
|
-
|
|
6080
|
-
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]);
|
|
6081
6081
|
return ge({ ourProps: { ref: d, id: t }, theirProps: o, slot: c, defaultTag: da, name: "Dialog.Title" });
|
|
6082
6082
|
}
|
|
6083
|
-
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 });
|
|
6084
6084
|
function ha(e = 0) {
|
|
6085
6085
|
let [r, n] = me(e), t = ur(), o = mr((c) => {
|
|
6086
6086
|
t.current && n((f) => f | c);
|
|
@@ -6091,7 +6091,7 @@ function ha(e = 0) {
|
|
|
6091
6091
|
}, [n]);
|
|
6092
6092
|
return { flags: r, addFlag: o, hasFlag: s, removeFlag: a, toggleFlag: d };
|
|
6093
6093
|
}
|
|
6094
|
-
function
|
|
6094
|
+
function hn(e) {
|
|
6095
6095
|
let r = { called: !1 };
|
|
6096
6096
|
return (...n) => {
|
|
6097
6097
|
if (!r.called)
|
|
@@ -6105,7 +6105,7 @@ function _r(e, ...r) {
|
|
|
6105
6105
|
e && r.length > 0 && e.classList.remove(...r);
|
|
6106
6106
|
}
|
|
6107
6107
|
function ma(e, r) {
|
|
6108
|
-
let n =
|
|
6108
|
+
let n = hn(r), t = Oe();
|
|
6109
6109
|
if (!e)
|
|
6110
6110
|
return t.dispose;
|
|
6111
6111
|
let { transitionDuration: o, transitionDelay: s } = getComputedStyle(e), [a, d] = [o, s].map((f) => {
|
|
@@ -6131,7 +6131,7 @@ function ma(e, r) {
|
|
|
6131
6131
|
return t.dispose;
|
|
6132
6132
|
}
|
|
6133
6133
|
function ga(e, { direction: r, done: n, classes: t, inFlight: o }) {
|
|
6134
|
-
let s = Oe(), a = n !== void 0 ?
|
|
6134
|
+
let s = Oe(), a = n !== void 0 ? hn(n) : () => {
|
|
6135
6135
|
};
|
|
6136
6136
|
r === "enter" && (e.removeAttribute("hidden"), e.style.display = "");
|
|
6137
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 });
|
|
@@ -6150,7 +6150,7 @@ function va(e, { inFlight: r, prepare: n }) {
|
|
|
6150
6150
|
e.style.transition = "none", n(), e.offsetHeight, e.style.transition = t;
|
|
6151
6151
|
}
|
|
6152
6152
|
function ba({ container: e, direction: r, classes: n, onStart: t, onStop: o }) {
|
|
6153
|
-
let s = ur(), a = Kr(), d =
|
|
6153
|
+
let s = ur(), a = Kr(), d = N(!1);
|
|
6154
6154
|
Z(() => {
|
|
6155
6155
|
if (r === "idle" || !s.current)
|
|
6156
6156
|
return;
|
|
@@ -6161,14 +6161,14 @@ function ba({ container: e, direction: r, classes: n, onStart: t, onStop: o }) {
|
|
|
6161
6161
|
} })) : o.current(r), a.dispose;
|
|
6162
6162
|
}, [r]);
|
|
6163
6163
|
}
|
|
6164
|
-
function
|
|
6164
|
+
function Pe(e = "") {
|
|
6165
6165
|
return e.split(/\s+/).filter((r) => r.length > 1);
|
|
6166
6166
|
}
|
|
6167
|
-
function
|
|
6167
|
+
function mn(e) {
|
|
6168
6168
|
var r;
|
|
6169
|
-
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;
|
|
6170
6170
|
}
|
|
6171
|
-
let Er =
|
|
6171
|
+
let Er = de(null);
|
|
6172
6172
|
Er.displayName = "TransitionContext";
|
|
6173
6173
|
var Ca = ((e) => (e.Visible = "visible", e.Hidden = "hidden", e))(Ca || {});
|
|
6174
6174
|
function xa() {
|
|
@@ -6183,13 +6183,13 @@ function wa() {
|
|
|
6183
6183
|
throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");
|
|
6184
6184
|
return e;
|
|
6185
6185
|
}
|
|
6186
|
-
let Lr =
|
|
6186
|
+
let Lr = de(null);
|
|
6187
6187
|
Lr.displayName = "NestingContext";
|
|
6188
6188
|
function $r(e) {
|
|
6189
6189
|
return "children" in e ? $r(e.children) : e.current.filter(({ el: r }) => r.current !== null).filter(({ state: r }) => r === "visible").length > 0;
|
|
6190
6190
|
}
|
|
6191
|
-
function
|
|
6192
|
-
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) => {
|
|
6193
6193
|
let x = t.current.findIndex(({ el: b }) => b === v);
|
|
6194
6194
|
x !== -1 && (B(C, { [Fe.Unmount]() {
|
|
6195
6195
|
t.current.splice(x, 1);
|
|
@@ -6202,7 +6202,7 @@ function mn(e, r) {
|
|
|
6202
6202
|
}), d = A((v) => {
|
|
6203
6203
|
let C = t.current.find(({ el: x }) => x === v);
|
|
6204
6204
|
return C ? C.state !== "visible" && (C.state = "visible") : t.current.push({ el: v, state: "visible" }), () => a(v, Fe.Unmount);
|
|
6205
|
-
}), c =
|
|
6205
|
+
}), c = N([]), f = N(Promise.resolve()), u = N({ enter: [], leave: [], idle: [] }), p = A((v, C, x) => {
|
|
6206
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) => {
|
|
6207
6207
|
c.current.push(b);
|
|
6208
6208
|
})]), r == null || r.chains.current[C].push([v, new Promise((b) => {
|
|
@@ -6214,65 +6214,65 @@ function mn(e, r) {
|
|
|
6214
6214
|
(b = c.current.shift()) == null || b();
|
|
6215
6215
|
}).then(() => x(C));
|
|
6216
6216
|
});
|
|
6217
|
-
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]);
|
|
6218
6218
|
}
|
|
6219
|
-
let
|
|
6219
|
+
let vn = le, bn = xr.RenderStrategy;
|
|
6220
6220
|
function ka(e, r) {
|
|
6221
6221
|
var n, t, o;
|
|
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 =
|
|
6223
|
-
Z(() =>
|
|
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
6224
|
if (R === Fe.Hidden && w.current) {
|
|
6225
6225
|
if (U && G !== "visible") {
|
|
6226
6226
|
K("visible");
|
|
6227
6227
|
return;
|
|
6228
6228
|
}
|
|
6229
|
-
return B(G, { hidden: () => $(w), visible: () =>
|
|
6229
|
+
return B(G, { hidden: () => $(w), visible: () => ie(w) });
|
|
6230
6230
|
}
|
|
6231
|
-
}, [G, w,
|
|
6232
|
-
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();
|
|
6233
6233
|
Z(() => {
|
|
6234
6234
|
if (y && z && G === "visible" && w.current === null)
|
|
6235
6235
|
throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?");
|
|
6236
6236
|
}, [w, G, z, y]);
|
|
6237
|
-
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: () => {
|
|
6238
6238
|
var V, D;
|
|
6239
|
-
H.addFlag(
|
|
6239
|
+
H.addFlag(ne.Opening), (D = (V = I.current).beforeEnter) == null || D.call(V);
|
|
6240
6240
|
}, leave: () => {
|
|
6241
6241
|
var V, D;
|
|
6242
|
-
H.addFlag(
|
|
6242
|
+
H.addFlag(ne.Closing), (D = (V = I.current).beforeLeave) == null || D.call(V);
|
|
6243
6243
|
}, idle: () => {
|
|
6244
6244
|
} })), he = A((X) => B(X, { enter: () => {
|
|
6245
6245
|
var V, D;
|
|
6246
|
-
H.removeFlag(
|
|
6246
|
+
H.removeFlag(ne.Opening), (D = (V = I.current).afterEnter) == null || D.call(V);
|
|
6247
6247
|
}, leave: () => {
|
|
6248
6248
|
var V, D;
|
|
6249
|
-
H.removeFlag(
|
|
6249
|
+
H.removeFlag(ne.Closing), (D = (V = I.current).afterLeave) == null || D.call(V);
|
|
6250
6250
|
}, idle: () => {
|
|
6251
|
-
} })), J =
|
|
6251
|
+
} })), J = N(!1), Se = gn(() => {
|
|
6252
6252
|
J.current || (K("hidden"), $(w));
|
|
6253
|
-
},
|
|
6253
|
+
}, re);
|
|
6254
6254
|
ba({ container: w, classes: F, direction: pe, onStart: Ce((X) => {
|
|
6255
|
-
J.current = !0, Se.onStart(w, X,
|
|
6255
|
+
J.current = !0, Se.onStart(w, X, ye);
|
|
6256
6256
|
}), onStop: Ce((X) => {
|
|
6257
6257
|
J.current = !1, Se.onStop(w, X, he), X === "leave" && !$r(Se) && (K("hidden"), $(w));
|
|
6258
6258
|
}) });
|
|
6259
|
-
let
|
|
6260
|
-
return ve ?
|
|
6259
|
+
let te = b, Ke = { ref: ue };
|
|
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" })));
|
|
6261
6261
|
}
|
|
6262
6262
|
function ya(e, r) {
|
|
6263
|
-
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]);
|
|
6264
6264
|
cr();
|
|
6265
6265
|
let f = et();
|
|
6266
|
-
if (n === void 0 && f !== null && (n = (f &
|
|
6266
|
+
if (n === void 0 && f !== null && (n = (f & ne.Open) === ne.Open), n === void 0)
|
|
6267
6267
|
throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");
|
|
6268
|
-
let [u, p] = me(n ? "visible" : "hidden"), g =
|
|
6268
|
+
let [u, p] = me(n ? "visible" : "hidden"), g = gn(() => {
|
|
6269
6269
|
n || p("hidden");
|
|
6270
|
-
}), [v, C] = me(!0), x =
|
|
6270
|
+
}), [v, C] = me(!0), x = N([n]);
|
|
6271
6271
|
Z(() => {
|
|
6272
6272
|
v !== !1 && x.current[x.current.length - 1] !== n && (x.current.push(n), C(!1));
|
|
6273
6273
|
}, [x, n]);
|
|
6274
|
-
let b =
|
|
6275
|
-
|
|
6274
|
+
let b = se(() => ({ show: n, appear: t, initial: v }), [n, t, v]);
|
|
6275
|
+
rn(a, () => p("hidden")), Z(() => {
|
|
6276
6276
|
n ? p("visible") : !$r(g) && a.current !== null && p("hidden");
|
|
6277
6277
|
}, [n, g]);
|
|
6278
6278
|
let w = { unmount: o }, y = A(() => {
|
|
@@ -6282,13 +6282,13 @@ function ya(e, r) {
|
|
|
6282
6282
|
var R;
|
|
6283
6283
|
v && C(!1), (R = e.beforeLeave) == null || R.call(e);
|
|
6284
6284
|
});
|
|
6285
|
-
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" })));
|
|
6286
6286
|
}
|
|
6287
6287
|
function ja(e, r) {
|
|
6288
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(
|
|
6289
|
+
return j.createElement(j.Fragment, null, !n && t ? j.createElement(Gr, { ref: r, ...e }) : j.createElement(Cn, { ref: r, ...e }));
|
|
6290
6290
|
}
|
|
6291
|
-
let Gr = ce(ya),
|
|
6291
|
+
let Gr = ce(ya), Cn = ce(ka), Yr = ce(ja), Ea = Object.assign(Gr, { Child: Yr, Root: Gr });
|
|
6292
6292
|
const La = ({
|
|
6293
6293
|
open: e = !1,
|
|
6294
6294
|
onClose: r,
|
|
@@ -6303,7 +6303,7 @@ const La = ({
|
|
|
6303
6303
|
horizontalRule: u = !0
|
|
6304
6304
|
}) => {
|
|
6305
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;
|
|
6306
|
-
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(
|
|
6307
6307
|
pa,
|
|
6308
6308
|
{
|
|
6309
6309
|
as: "div",
|
|
@@ -6315,7 +6315,7 @@ const La = ({
|
|
|
6315
6315
|
t !== "none" && /* @__PURE__ */ i.jsx(
|
|
6316
6316
|
Yr,
|
|
6317
6317
|
{
|
|
6318
|
-
as:
|
|
6318
|
+
as: le,
|
|
6319
6319
|
enter: "ease-out duration-300",
|
|
6320
6320
|
enterFrom: "opacity-0",
|
|
6321
6321
|
enterTo: "opacity-100",
|
|
@@ -6334,14 +6334,14 @@ const La = ({
|
|
|
6334
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(
|
|
6335
6335
|
Yr,
|
|
6336
6336
|
{
|
|
6337
|
-
as:
|
|
6337
|
+
as: le,
|
|
6338
6338
|
enter: "ease-out duration-300",
|
|
6339
6339
|
enterFrom: "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",
|
|
6340
6340
|
enterTo: "opacity-100 translate-y-0 sm:scale-100",
|
|
6341
6341
|
leave: "ease-in duration-200",
|
|
6342
6342
|
leaveFrom: "opacity-100 translate-y-0 sm:scale-100",
|
|
6343
6343
|
leaveTo: "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",
|
|
6344
|
-
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: [
|
|
6345
6345
|
/* @__PURE__ */ i.jsxs(
|
|
6346
6346
|
"div",
|
|
6347
6347
|
{
|
|
@@ -6349,7 +6349,7 @@ const La = ({
|
|
|
6349
6349
|
children: [
|
|
6350
6350
|
a && /* @__PURE__ */ i.jsx("div", { className: "ds-mr-3", children: p() }),
|
|
6351
6351
|
/* @__PURE__ */ i.jsx("div", { className: "ds-flex-grow", children: /* @__PURE__ */ i.jsx(
|
|
6352
|
-
|
|
6352
|
+
Kt,
|
|
6353
6353
|
{
|
|
6354
6354
|
text: n,
|
|
6355
6355
|
headingTag: "h2",
|
|
@@ -6359,7 +6359,7 @@ const La = ({
|
|
|
6359
6359
|
}
|
|
6360
6360
|
) }),
|
|
6361
6361
|
f && /* @__PURE__ */ i.jsx(
|
|
6362
|
-
|
|
6362
|
+
Yt,
|
|
6363
6363
|
{
|
|
6364
6364
|
variant: "icon-no-label",
|
|
6365
6365
|
iconName: "close",
|
|
@@ -6384,16 +6384,95 @@ const La = ({
|
|
|
6384
6384
|
]
|
|
6385
6385
|
}
|
|
6386
6386
|
) });
|
|
6387
|
-
},
|
|
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;
|
|
6388
6466
|
export {
|
|
6389
|
-
|
|
6390
|
-
|
|
6391
|
-
|
|
6392
|
-
|
|
6393
|
-
|
|
6467
|
+
Pa as Alert,
|
|
6468
|
+
Va as Badge,
|
|
6469
|
+
Yt as Button,
|
|
6470
|
+
Aa as Card,
|
|
6471
|
+
Fa as Checkbox,
|
|
6472
|
+
Kt as Heading,
|
|
6394
6473
|
We as Icon,
|
|
6395
|
-
|
|
6396
|
-
|
|
6397
|
-
|
|
6474
|
+
_a as Link,
|
|
6475
|
+
Ia as Modal,
|
|
6476
|
+
Oa as Radio
|
|
6398
6477
|
};
|
|
6399
6478
|
//# sourceMappingURL=index.es.js.map
|