@takecasper/acuity-design-system 1.20.0 → 1.21.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 +11 -11
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +19 -1
- package/dist/index.es.js +508 -440
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./assets/index.css";
|
|
2
2
|
import * as or from "react";
|
|
3
|
-
import
|
|
4
|
-
import { createPortal as
|
|
3
|
+
import k, { useState as ge, useEffect as oe, useLayoutEffect as Dn, useRef as R, createContext as ce, useContext as re, forwardRef as Hn, Fragment as de, isValidElement as Bn, cloneElement as zn, createElement as Un, useId as yr, useMemo as ae, useSyncExternalStore as Gn, useReducer as Yn, createRef as Zn, useCallback as mr } from "react";
|
|
4
|
+
import { createPortal as Rt } from "react-dom";
|
|
5
5
|
var Wr = { exports: {} }, er = {};
|
|
6
6
|
/**
|
|
7
7
|
* @license React
|
|
@@ -12,12 +12,12 @@ var Wr = { exports: {} }, er = {};
|
|
|
12
12
|
* This source code is licensed under the MIT license found in the
|
|
13
13
|
* LICENSE file in the root directory of this source tree.
|
|
14
14
|
*/
|
|
15
|
-
var
|
|
15
|
+
var Ct;
|
|
16
16
|
function qn() {
|
|
17
|
-
if (
|
|
17
|
+
if (Ct)
|
|
18
18
|
return er;
|
|
19
|
-
|
|
20
|
-
var e =
|
|
19
|
+
Ct = 1;
|
|
20
|
+
var e = k, r = Symbol.for("react.element"), n = Symbol.for("react.fragment"), t = Object.prototype.hasOwnProperty, s = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
21
21
|
function a(d, c, u) {
|
|
22
22
|
var f, p = {}, m = null, v = null;
|
|
23
23
|
u !== void 0 && (m = "" + u), c.key !== void 0 && (m = "" + c.key), c.ref !== void 0 && (v = c.ref);
|
|
@@ -40,10 +40,10 @@ var rr = {};
|
|
|
40
40
|
* This source code is licensed under the MIT license found in the
|
|
41
41
|
* LICENSE file in the root directory of this source tree.
|
|
42
42
|
*/
|
|
43
|
-
var
|
|
43
|
+
var wt;
|
|
44
44
|
function Kn() {
|
|
45
|
-
return
|
|
46
|
-
var e =
|
|
45
|
+
return wt || (wt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
46
|
+
var e = k, r = Symbol.for("react.element"), n = Symbol.for("react.portal"), t = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), d = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), v = Symbol.for("react.offscreen"), x = Symbol.iterator, C = "@@iterator";
|
|
47
47
|
function b(l) {
|
|
48
48
|
if (l === null || typeof l != "object")
|
|
49
49
|
return null;
|
|
@@ -51,38 +51,38 @@ function Kn() {
|
|
|
51
51
|
return typeof h == "function" ? h : null;
|
|
52
52
|
}
|
|
53
53
|
var w = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
54
|
-
function
|
|
54
|
+
function j(l) {
|
|
55
55
|
{
|
|
56
|
-
for (var h = arguments.length, g = new Array(h > 1 ? h - 1 : 0),
|
|
57
|
-
g[
|
|
56
|
+
for (var h = arguments.length, g = new Array(h > 1 ? h - 1 : 0), y = 1; y < h; y++)
|
|
57
|
+
g[y - 1] = arguments[y];
|
|
58
58
|
fe("error", l, g);
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
function fe(l, h, g) {
|
|
62
62
|
{
|
|
63
|
-
var
|
|
64
|
-
|
|
65
|
-
var S = g.map(function(
|
|
66
|
-
return String(
|
|
63
|
+
var y = w.ReactDebugCurrentFrame, T = y.getStackAddendum();
|
|
64
|
+
T !== "" && (h += "%s", g = g.concat([T]));
|
|
65
|
+
var S = g.map(function(M) {
|
|
66
|
+
return String(M);
|
|
67
67
|
});
|
|
68
68
|
S.unshift("Warning: " + h), Function.prototype.apply.call(console[l], console, S);
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
|
-
var N = !1,
|
|
71
|
+
var N = !1, Y = !1, ke = !1, J = !1, Z = !1, X;
|
|
72
72
|
X = Symbol.for("react.module.reference");
|
|
73
73
|
function te(l) {
|
|
74
|
-
return !!(typeof l == "string" || typeof l == "function" || l === t || l === o ||
|
|
74
|
+
return !!(typeof l == "string" || typeof l == "function" || l === t || l === o || Z || l === s || l === u || l === f || J || l === v || N || Y || ke || typeof l == "object" && l !== null && (l.$$typeof === m || 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 === X || l.getModuleId !== void 0));
|
|
79
79
|
}
|
|
80
80
|
function ie(l, h, g) {
|
|
81
|
-
var
|
|
82
|
-
if (
|
|
83
|
-
return
|
|
84
|
-
var
|
|
85
|
-
return
|
|
81
|
+
var y = l.displayName;
|
|
82
|
+
if (y)
|
|
83
|
+
return y;
|
|
84
|
+
var T = h.displayName || h.name || "";
|
|
85
|
+
return T !== "" ? g + "(" + T + ")" : g;
|
|
86
86
|
}
|
|
87
87
|
function $(l) {
|
|
88
88
|
return l.displayName || "Context";
|
|
@@ -90,7 +90,7 @@ function Kn() {
|
|
|
90
90
|
function F(l) {
|
|
91
91
|
if (l == null)
|
|
92
92
|
return null;
|
|
93
|
-
if (typeof l.tag == "number" &&
|
|
93
|
+
if (typeof l.tag == "number" && j("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof l == "function")
|
|
94
94
|
return l.displayName || l.name || null;
|
|
95
95
|
if (typeof l == "string")
|
|
96
96
|
return l;
|
|
@@ -119,12 +119,12 @@ function Kn() {
|
|
|
119
119
|
case c:
|
|
120
120
|
return ie(l, l.render, "ForwardRef");
|
|
121
121
|
case p:
|
|
122
|
-
var
|
|
123
|
-
return
|
|
122
|
+
var y = l.displayName || null;
|
|
123
|
+
return y !== null ? y : F(l.type) || "Memo";
|
|
124
124
|
case m: {
|
|
125
|
-
var
|
|
125
|
+
var T = l, S = T._payload, M = T._init;
|
|
126
126
|
try {
|
|
127
|
-
return F(
|
|
127
|
+
return F(M(S));
|
|
128
128
|
} catch (L) {
|
|
129
129
|
return null;
|
|
130
130
|
}
|
|
@@ -132,7 +132,7 @@ function Kn() {
|
|
|
132
132
|
}
|
|
133
133
|
return null;
|
|
134
134
|
}
|
|
135
|
-
var
|
|
135
|
+
var V = Object.assign, U = 0, pe, be, he, B, ye, me, Q;
|
|
136
136
|
function Se() {
|
|
137
137
|
}
|
|
138
138
|
Se.__reactDisabledLog = !0;
|
|
@@ -168,30 +168,30 @@ function Kn() {
|
|
|
168
168
|
writable: !0
|
|
169
169
|
};
|
|
170
170
|
Object.defineProperties(console, {
|
|
171
|
-
log:
|
|
171
|
+
log: V({}, l, {
|
|
172
172
|
value: pe
|
|
173
173
|
}),
|
|
174
|
-
info:
|
|
174
|
+
info: V({}, l, {
|
|
175
175
|
value: be
|
|
176
176
|
}),
|
|
177
|
-
warn:
|
|
177
|
+
warn: V({}, l, {
|
|
178
178
|
value: he
|
|
179
179
|
}),
|
|
180
|
-
error:
|
|
180
|
+
error: V({}, l, {
|
|
181
181
|
value: B
|
|
182
182
|
}),
|
|
183
|
-
group:
|
|
183
|
+
group: V({}, l, {
|
|
184
184
|
value: ye
|
|
185
185
|
}),
|
|
186
|
-
groupCollapsed:
|
|
186
|
+
groupCollapsed: V({}, l, {
|
|
187
187
|
value: me
|
|
188
188
|
}),
|
|
189
|
-
groupEnd:
|
|
189
|
+
groupEnd: V({}, l, {
|
|
190
190
|
value: Q
|
|
191
191
|
})
|
|
192
192
|
});
|
|
193
193
|
}
|
|
194
|
-
U < 0 &&
|
|
194
|
+
U < 0 && j("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
195
195
|
}
|
|
196
196
|
}
|
|
197
197
|
var ee = w.ReactCurrentDispatcher, D;
|
|
@@ -200,9 +200,9 @@ function Kn() {
|
|
|
200
200
|
if (D === void 0)
|
|
201
201
|
try {
|
|
202
202
|
throw Error();
|
|
203
|
-
} catch (
|
|
204
|
-
var
|
|
205
|
-
D =
|
|
203
|
+
} catch (T) {
|
|
204
|
+
var y = T.stack.trim().match(/\n( *(at )?)/);
|
|
205
|
+
D = y && y[1] || "";
|
|
206
206
|
}
|
|
207
207
|
return `
|
|
208
208
|
` + D + l;
|
|
@@ -221,55 +221,55 @@ function Kn() {
|
|
|
221
221
|
if (g !== void 0)
|
|
222
222
|
return g;
|
|
223
223
|
}
|
|
224
|
-
var
|
|
224
|
+
var y;
|
|
225
225
|
Je = !0;
|
|
226
|
-
var
|
|
226
|
+
var T = Error.prepareStackTrace;
|
|
227
227
|
Error.prepareStackTrace = void 0;
|
|
228
228
|
var S;
|
|
229
229
|
S = ee.current, ee.current = null, ne();
|
|
230
230
|
try {
|
|
231
231
|
if (h) {
|
|
232
|
-
var
|
|
232
|
+
var M = function() {
|
|
233
233
|
throw Error();
|
|
234
234
|
};
|
|
235
|
-
if (Object.defineProperty(
|
|
235
|
+
if (Object.defineProperty(M.prototype, "props", {
|
|
236
236
|
set: function() {
|
|
237
237
|
throw Error();
|
|
238
238
|
}
|
|
239
239
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
240
240
|
try {
|
|
241
|
-
Reflect.construct(
|
|
241
|
+
Reflect.construct(M, []);
|
|
242
242
|
} catch (Ee) {
|
|
243
|
-
|
|
243
|
+
y = Ee;
|
|
244
244
|
}
|
|
245
|
-
Reflect.construct(l, [],
|
|
245
|
+
Reflect.construct(l, [], M);
|
|
246
246
|
} else {
|
|
247
247
|
try {
|
|
248
|
-
|
|
248
|
+
M.call();
|
|
249
249
|
} catch (Ee) {
|
|
250
|
-
|
|
250
|
+
y = Ee;
|
|
251
251
|
}
|
|
252
|
-
l.call(
|
|
252
|
+
l.call(M.prototype);
|
|
253
253
|
}
|
|
254
254
|
} else {
|
|
255
255
|
try {
|
|
256
256
|
throw Error();
|
|
257
257
|
} catch (Ee) {
|
|
258
|
-
|
|
258
|
+
y = Ee;
|
|
259
259
|
}
|
|
260
260
|
l();
|
|
261
261
|
}
|
|
262
262
|
} catch (Ee) {
|
|
263
|
-
if (Ee &&
|
|
263
|
+
if (Ee && y && typeof Ee.stack == "string") {
|
|
264
264
|
for (var L = Ee.stack.split(`
|
|
265
|
-
`),
|
|
266
|
-
`), _ = L.length - 1, W =
|
|
265
|
+
`), q = y.stack.split(`
|
|
266
|
+
`), _ = L.length - 1, W = q.length - 1; _ >= 1 && W >= 0 && L[_] !== q[W]; )
|
|
267
267
|
W--;
|
|
268
268
|
for (; _ >= 1 && W >= 0; _--, W--)
|
|
269
|
-
if (L[_] !==
|
|
269
|
+
if (L[_] !== q[W]) {
|
|
270
270
|
if (_ !== 1 || W !== 1)
|
|
271
271
|
do
|
|
272
|
-
if (_--, W--, W < 0 || L[_] !==
|
|
272
|
+
if (_--, W--, W < 0 || L[_] !== q[W]) {
|
|
273
273
|
var le = `
|
|
274
274
|
` + L[_].replace(" at new ", " at ");
|
|
275
275
|
return l.displayName && le.includes("<anonymous>") && (le = le.replace("<anonymous>", l.displayName)), typeof l == "function" && je.set(l, le), le;
|
|
@@ -279,10 +279,10 @@ function Kn() {
|
|
|
279
279
|
}
|
|
280
280
|
}
|
|
281
281
|
} finally {
|
|
282
|
-
Je = !1, ee.current = S, Ke(), Error.prepareStackTrace =
|
|
282
|
+
Je = !1, ee.current = S, Ke(), Error.prepareStackTrace = T;
|
|
283
283
|
}
|
|
284
|
-
var Be = l ? l.displayName || l.name : "",
|
|
285
|
-
return typeof l == "function" && je.set(l,
|
|
284
|
+
var Be = l ? l.displayName || l.name : "", xt = Be ? H(Be) : "";
|
|
285
|
+
return typeof l == "function" && je.set(l, xt), xt;
|
|
286
286
|
}
|
|
287
287
|
function Xe(l, h, g) {
|
|
288
288
|
return xe(l, !1);
|
|
@@ -311,44 +311,44 @@ function Kn() {
|
|
|
311
311
|
case p:
|
|
312
312
|
return fr(l.type, h, g);
|
|
313
313
|
case m: {
|
|
314
|
-
var
|
|
314
|
+
var y = l, T = y._payload, S = y._init;
|
|
315
315
|
try {
|
|
316
|
-
return fr(S(
|
|
317
|
-
} catch (
|
|
316
|
+
return fr(S(T), h, g);
|
|
317
|
+
} catch (M) {
|
|
318
318
|
}
|
|
319
319
|
}
|
|
320
320
|
}
|
|
321
321
|
return "";
|
|
322
322
|
}
|
|
323
|
-
var pr = Object.prototype.hasOwnProperty,
|
|
323
|
+
var pr = Object.prototype.hasOwnProperty, it = {}, lt = w.ReactDebugCurrentFrame;
|
|
324
324
|
function hr(l) {
|
|
325
325
|
if (l) {
|
|
326
326
|
var h = l._owner, g = fr(l.type, l._source, h ? h.type : null);
|
|
327
|
-
|
|
327
|
+
lt.setExtraStackFrame(g);
|
|
328
328
|
} else
|
|
329
|
-
|
|
329
|
+
lt.setExtraStackFrame(null);
|
|
330
330
|
}
|
|
331
|
-
function wn(l, h, g,
|
|
331
|
+
function wn(l, h, g, y, T) {
|
|
332
332
|
{
|
|
333
333
|
var S = Function.call.bind(pr);
|
|
334
|
-
for (var
|
|
335
|
-
if (S(l,
|
|
334
|
+
for (var M in l)
|
|
335
|
+
if (S(l, M)) {
|
|
336
336
|
var L = void 0;
|
|
337
337
|
try {
|
|
338
|
-
if (typeof l[
|
|
339
|
-
var
|
|
340
|
-
throw
|
|
338
|
+
if (typeof l[M] != "function") {
|
|
339
|
+
var q = Error((y || "React class") + ": " + g + " type `" + M + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof l[M] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
340
|
+
throw q.name = "Invariant Violation", q;
|
|
341
341
|
}
|
|
342
|
-
L = l[
|
|
342
|
+
L = l[M](h, M, y, g, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
343
343
|
} catch (_) {
|
|
344
344
|
L = _;
|
|
345
345
|
}
|
|
346
|
-
L && !(L instanceof Error) && (hr(
|
|
346
|
+
L && !(L instanceof Error) && (hr(T), j("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", y || "React class", g, M, typeof L), hr(null)), L instanceof Error && !(L.message in it) && (it[L.message] = !0, hr(T), j("Failed %s type: %s", g, L.message), hr(null));
|
|
347
347
|
}
|
|
348
348
|
}
|
|
349
349
|
}
|
|
350
350
|
var kn = Array.isArray;
|
|
351
|
-
function
|
|
351
|
+
function Tr(l) {
|
|
352
352
|
return kn(l);
|
|
353
353
|
}
|
|
354
354
|
function yn(l) {
|
|
@@ -359,24 +359,24 @@ function Kn() {
|
|
|
359
359
|
}
|
|
360
360
|
function jn(l) {
|
|
361
361
|
try {
|
|
362
|
-
return
|
|
362
|
+
return dt(l), !1;
|
|
363
363
|
} catch (h) {
|
|
364
364
|
return !0;
|
|
365
365
|
}
|
|
366
366
|
}
|
|
367
|
-
function
|
|
367
|
+
function dt(l) {
|
|
368
368
|
return "" + l;
|
|
369
369
|
}
|
|
370
|
-
function
|
|
370
|
+
function ct(l) {
|
|
371
371
|
if (jn(l))
|
|
372
|
-
return
|
|
372
|
+
return j("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", yn(l)), dt(l);
|
|
373
373
|
}
|
|
374
374
|
var Qe = w.ReactCurrentOwner, En = {
|
|
375
375
|
key: !0,
|
|
376
376
|
ref: !0,
|
|
377
377
|
__self: !0,
|
|
378
378
|
__source: !0
|
|
379
|
-
},
|
|
379
|
+
}, ut, ft, Sr;
|
|
380
380
|
Sr = {};
|
|
381
381
|
function Ln(l) {
|
|
382
382
|
if (pr.call(l, "ref")) {
|
|
@@ -394,16 +394,16 @@ function Kn() {
|
|
|
394
394
|
}
|
|
395
395
|
return l.key !== void 0;
|
|
396
396
|
}
|
|
397
|
-
function
|
|
397
|
+
function Mn(l, h) {
|
|
398
398
|
if (typeof l.ref == "string" && Qe.current && h && Qe.current.stateNode !== h) {
|
|
399
399
|
var g = F(Qe.current.type);
|
|
400
|
-
Sr[g] || (
|
|
400
|
+
Sr[g] || (j('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', F(Qe.current.type), l.ref), Sr[g] = !0);
|
|
401
401
|
}
|
|
402
402
|
}
|
|
403
|
-
function
|
|
403
|
+
function Tn(l, h) {
|
|
404
404
|
{
|
|
405
405
|
var g = function() {
|
|
406
|
-
|
|
406
|
+
ut || (ut = !0, j("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", h));
|
|
407
407
|
};
|
|
408
408
|
g.isReactWarning = !0, Object.defineProperty(l, "key", {
|
|
409
409
|
get: g,
|
|
@@ -414,7 +414,7 @@ function Kn() {
|
|
|
414
414
|
function Sn(l, h) {
|
|
415
415
|
{
|
|
416
416
|
var g = function() {
|
|
417
|
-
|
|
417
|
+
ft || (ft = !0, j("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", h));
|
|
418
418
|
};
|
|
419
419
|
g.isReactWarning = !0, Object.defineProperty(l, "ref", {
|
|
420
420
|
get: g,
|
|
@@ -422,7 +422,7 @@ function Kn() {
|
|
|
422
422
|
});
|
|
423
423
|
}
|
|
424
424
|
}
|
|
425
|
-
var Nn = function(l, h, g,
|
|
425
|
+
var Nn = function(l, h, g, y, T, S, M) {
|
|
426
426
|
var L = {
|
|
427
427
|
// This tag allows us to uniquely identify this as a React Element
|
|
428
428
|
$$typeof: r,
|
|
@@ -430,7 +430,7 @@ function Kn() {
|
|
|
430
430
|
type: l,
|
|
431
431
|
key: h,
|
|
432
432
|
ref: g,
|
|
433
|
-
props:
|
|
433
|
+
props: M,
|
|
434
434
|
// Record the component responsible for creating this element.
|
|
435
435
|
_owner: S
|
|
436
436
|
};
|
|
@@ -443,46 +443,46 @@ function Kn() {
|
|
|
443
443
|
configurable: !1,
|
|
444
444
|
enumerable: !1,
|
|
445
445
|
writable: !1,
|
|
446
|
-
value:
|
|
446
|
+
value: y
|
|
447
447
|
}), Object.defineProperty(L, "_source", {
|
|
448
448
|
configurable: !1,
|
|
449
449
|
enumerable: !1,
|
|
450
450
|
writable: !1,
|
|
451
|
-
value:
|
|
451
|
+
value: T
|
|
452
452
|
}), Object.freeze && (Object.freeze(L.props), Object.freeze(L)), L;
|
|
453
453
|
};
|
|
454
|
-
function Rn(l, h, g,
|
|
454
|
+
function Rn(l, h, g, y, T) {
|
|
455
455
|
{
|
|
456
|
-
var S,
|
|
457
|
-
g !== void 0 && (
|
|
456
|
+
var S, M = {}, L = null, q = null;
|
|
457
|
+
g !== void 0 && (ct(g), L = "" + g), $n(h) && (ct(h.key), L = "" + h.key), Ln(h) && (q = h.ref, Mn(h, T));
|
|
458
458
|
for (S in h)
|
|
459
|
-
pr.call(h, S) && !En.hasOwnProperty(S) && (
|
|
459
|
+
pr.call(h, S) && !En.hasOwnProperty(S) && (M[S] = h[S]);
|
|
460
460
|
if (l && l.defaultProps) {
|
|
461
461
|
var _ = l.defaultProps;
|
|
462
462
|
for (S in _)
|
|
463
|
-
|
|
463
|
+
M[S] === void 0 && (M[S] = _[S]);
|
|
464
464
|
}
|
|
465
|
-
if (L ||
|
|
465
|
+
if (L || q) {
|
|
466
466
|
var W = typeof l == "function" ? l.displayName || l.name || "Unknown" : l;
|
|
467
|
-
L &&
|
|
467
|
+
L && Tn(M, W), q && Sn(M, W);
|
|
468
468
|
}
|
|
469
|
-
return Nn(l, L,
|
|
469
|
+
return Nn(l, L, q, T, y, Qe.current, M);
|
|
470
470
|
}
|
|
471
471
|
}
|
|
472
|
-
var Nr = w.ReactCurrentOwner,
|
|
472
|
+
var Nr = w.ReactCurrentOwner, pt = w.ReactDebugCurrentFrame;
|
|
473
473
|
function He(l) {
|
|
474
474
|
if (l) {
|
|
475
475
|
var h = l._owner, g = fr(l.type, l._source, h ? h.type : null);
|
|
476
|
-
|
|
476
|
+
pt.setExtraStackFrame(g);
|
|
477
477
|
} else
|
|
478
|
-
|
|
478
|
+
pt.setExtraStackFrame(null);
|
|
479
479
|
}
|
|
480
480
|
var Rr;
|
|
481
481
|
Rr = !1;
|
|
482
482
|
function Ar(l) {
|
|
483
483
|
return typeof l == "object" && l !== null && l.$$typeof === r;
|
|
484
484
|
}
|
|
485
|
-
function
|
|
485
|
+
function ht() {
|
|
486
486
|
{
|
|
487
487
|
if (Nr.current) {
|
|
488
488
|
var l = F(Nr.current.type);
|
|
@@ -505,10 +505,10 @@ Check your code at ` + h + ":" + g + ".";
|
|
|
505
505
|
return "";
|
|
506
506
|
}
|
|
507
507
|
}
|
|
508
|
-
var
|
|
508
|
+
var mt = {};
|
|
509
509
|
function Pn(l) {
|
|
510
510
|
{
|
|
511
|
-
var h =
|
|
511
|
+
var h = ht();
|
|
512
512
|
if (!h) {
|
|
513
513
|
var g = typeof l == "string" ? l : l.displayName || l.name;
|
|
514
514
|
g && (h = `
|
|
@@ -518,35 +518,35 @@ Check the top-level render call using <` + g + ">.");
|
|
|
518
518
|
return h;
|
|
519
519
|
}
|
|
520
520
|
}
|
|
521
|
-
function
|
|
521
|
+
function gt(l, h) {
|
|
522
522
|
{
|
|
523
523
|
if (!l._store || l._store.validated || l.key != null)
|
|
524
524
|
return;
|
|
525
525
|
l._store.validated = !0;
|
|
526
526
|
var g = Pn(h);
|
|
527
|
-
if (
|
|
527
|
+
if (mt[g])
|
|
528
528
|
return;
|
|
529
|
-
|
|
530
|
-
var
|
|
531
|
-
l && l._owner && l._owner !== Nr.current && (
|
|
529
|
+
mt[g] = !0;
|
|
530
|
+
var y = "";
|
|
531
|
+
l && l._owner && l._owner !== Nr.current && (y = " It was passed a child from " + F(l._owner.type) + "."), He(l), j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', g, y), He(null);
|
|
532
532
|
}
|
|
533
533
|
}
|
|
534
|
-
function
|
|
534
|
+
function vt(l, h) {
|
|
535
535
|
{
|
|
536
536
|
if (typeof l != "object")
|
|
537
537
|
return;
|
|
538
|
-
if (
|
|
538
|
+
if (Tr(l))
|
|
539
539
|
for (var g = 0; g < l.length; g++) {
|
|
540
|
-
var
|
|
541
|
-
Ar(
|
|
540
|
+
var y = l[g];
|
|
541
|
+
Ar(y) && gt(y, h);
|
|
542
542
|
}
|
|
543
543
|
else if (Ar(l))
|
|
544
544
|
l._store && (l._store.validated = !0);
|
|
545
545
|
else if (l) {
|
|
546
|
-
var
|
|
547
|
-
if (typeof
|
|
548
|
-
for (var S =
|
|
549
|
-
Ar(
|
|
546
|
+
var T = b(l);
|
|
547
|
+
if (typeof T == "function" && T !== l.entries)
|
|
548
|
+
for (var S = T.call(l), M; !(M = S.next()).done; )
|
|
549
|
+
Ar(M.value) && gt(M.value, h);
|
|
550
550
|
}
|
|
551
551
|
}
|
|
552
552
|
}
|
|
@@ -565,63 +565,63 @@ Check the top-level render call using <` + g + ">.");
|
|
|
565
565
|
else
|
|
566
566
|
return;
|
|
567
567
|
if (g) {
|
|
568
|
-
var
|
|
569
|
-
wn(g, l.props, "prop",
|
|
568
|
+
var y = F(h);
|
|
569
|
+
wn(g, l.props, "prop", y, l);
|
|
570
570
|
} else if (h.PropTypes !== void 0 && !Rr) {
|
|
571
571
|
Rr = !0;
|
|
572
|
-
var
|
|
573
|
-
|
|
572
|
+
var T = F(h);
|
|
573
|
+
j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", T || "Unknown");
|
|
574
574
|
}
|
|
575
|
-
typeof h.getDefaultProps == "function" && !h.getDefaultProps.isReactClassApproved &&
|
|
575
|
+
typeof h.getDefaultProps == "function" && !h.getDefaultProps.isReactClassApproved && j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
576
576
|
}
|
|
577
577
|
}
|
|
578
578
|
function On(l) {
|
|
579
579
|
{
|
|
580
580
|
for (var h = Object.keys(l.props), g = 0; g < h.length; g++) {
|
|
581
|
-
var
|
|
582
|
-
if (
|
|
583
|
-
He(l),
|
|
581
|
+
var y = h[g];
|
|
582
|
+
if (y !== "children" && y !== "key") {
|
|
583
|
+
He(l), j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", y), He(null);
|
|
584
584
|
break;
|
|
585
585
|
}
|
|
586
586
|
}
|
|
587
|
-
l.ref !== null && (He(l),
|
|
587
|
+
l.ref !== null && (He(l), j("Invalid attribute `ref` supplied to `React.Fragment`."), He(null));
|
|
588
588
|
}
|
|
589
589
|
}
|
|
590
|
-
function
|
|
590
|
+
function bt(l, h, g, y, T, S) {
|
|
591
591
|
{
|
|
592
|
-
var
|
|
593
|
-
if (!
|
|
592
|
+
var M = te(l);
|
|
593
|
+
if (!M) {
|
|
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.");
|
|
596
|
-
var
|
|
597
|
-
|
|
596
|
+
var q = An(T);
|
|
597
|
+
q ? L += q : L += ht();
|
|
598
598
|
var _;
|
|
599
|
-
l === null ? _ = "null" :
|
|
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, j("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 = Rn(l, h, g,
|
|
601
|
+
var W = Rn(l, h, g, T, S);
|
|
602
602
|
if (W == null)
|
|
603
603
|
return W;
|
|
604
|
-
if (
|
|
604
|
+
if (M) {
|
|
605
605
|
var le = h.children;
|
|
606
606
|
if (le !== void 0)
|
|
607
|
-
if (
|
|
608
|
-
if (
|
|
607
|
+
if (y)
|
|
608
|
+
if (Tr(le)) {
|
|
609
609
|
for (var Be = 0; Be < le.length; Be++)
|
|
610
|
-
|
|
610
|
+
vt(le[Be], l);
|
|
611
611
|
Object.freeze && Object.freeze(le);
|
|
612
612
|
} else
|
|
613
|
-
|
|
613
|
+
j("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
614
614
|
else
|
|
615
|
-
|
|
615
|
+
vt(le, l);
|
|
616
616
|
}
|
|
617
617
|
return l === t ? On(W) : Fn(W), W;
|
|
618
618
|
}
|
|
619
619
|
}
|
|
620
620
|
function _n(l, h, g) {
|
|
621
|
-
return
|
|
621
|
+
return bt(l, h, g, !0);
|
|
622
622
|
}
|
|
623
623
|
function Wn(l, h, g) {
|
|
624
|
-
return
|
|
624
|
+
return bt(l, h, g, !1);
|
|
625
625
|
}
|
|
626
626
|
var In = Wn, Vn = _n;
|
|
627
627
|
rr.Fragment = t, rr.jsx = In, rr.jsxs = Vn;
|
|
@@ -695,7 +695,7 @@ const Jn = ({
|
|
|
695
695
|
]
|
|
696
696
|
}
|
|
697
697
|
);
|
|
698
|
-
},
|
|
698
|
+
}, At = Jn, Xn = ({
|
|
699
699
|
width: e = "24",
|
|
700
700
|
height: r = "24",
|
|
701
701
|
className: n = "",
|
|
@@ -741,7 +741,7 @@ const Jn = ({
|
|
|
741
741
|
]
|
|
742
742
|
}
|
|
743
743
|
);
|
|
744
|
-
},
|
|
744
|
+
}, Pt = Xn, Qn = ({
|
|
745
745
|
width: e = "24",
|
|
746
746
|
height: r = "24",
|
|
747
747
|
className: n = "",
|
|
@@ -803,7 +803,7 @@ const Jn = ({
|
|
|
803
803
|
]
|
|
804
804
|
}
|
|
805
805
|
);
|
|
806
|
-
},
|
|
806
|
+
}, Ft = Qn, es = ({
|
|
807
807
|
width: e = "24",
|
|
808
808
|
height: r = "24",
|
|
809
809
|
className: n = "",
|
|
@@ -849,7 +849,7 @@ const Jn = ({
|
|
|
849
849
|
]
|
|
850
850
|
}
|
|
851
851
|
);
|
|
852
|
-
},
|
|
852
|
+
}, Ot = es, rs = ({
|
|
853
853
|
width: e = "24",
|
|
854
854
|
height: r = "24",
|
|
855
855
|
className: n = "",
|
|
@@ -1783,7 +1783,7 @@ const Jn = ({
|
|
|
1783
1783
|
]
|
|
1784
1784
|
}
|
|
1785
1785
|
);
|
|
1786
|
-
},
|
|
1786
|
+
}, Ms = $s, Ts = ({
|
|
1787
1787
|
width: e = "24",
|
|
1788
1788
|
height: r = "24",
|
|
1789
1789
|
className: n = "",
|
|
@@ -1829,7 +1829,7 @@ const Jn = ({
|
|
|
1829
1829
|
]
|
|
1830
1830
|
}
|
|
1831
1831
|
);
|
|
1832
|
-
}, Ss =
|
|
1832
|
+
}, Ss = Ts, Ns = ({
|
|
1833
1833
|
width: e = "24",
|
|
1834
1834
|
height: r = "24",
|
|
1835
1835
|
className: n = "",
|
|
@@ -2104,14 +2104,14 @@ const Jn = ({
|
|
|
2104
2104
|
}
|
|
2105
2105
|
);
|
|
2106
2106
|
}, Vs = Is;
|
|
2107
|
-
function
|
|
2107
|
+
function _t(e) {
|
|
2108
2108
|
var r, n, t = "";
|
|
2109
2109
|
if (typeof e == "string" || typeof e == "number")
|
|
2110
2110
|
t += e;
|
|
2111
2111
|
else if (typeof e == "object")
|
|
2112
2112
|
if (Array.isArray(e))
|
|
2113
2113
|
for (r = 0; r < e.length; r++)
|
|
2114
|
-
e[r] && (n =
|
|
2114
|
+
e[r] && (n = _t(e[r])) && (t && (t += " "), t += n);
|
|
2115
2115
|
else
|
|
2116
2116
|
for (r in e)
|
|
2117
2117
|
e[r] && (t && (t += " "), t += r);
|
|
@@ -2119,18 +2119,18 @@ function Ft(e) {
|
|
|
2119
2119
|
}
|
|
2120
2120
|
function Ds() {
|
|
2121
2121
|
for (var e, r, n = 0, t = ""; n < arguments.length; )
|
|
2122
|
-
(e = arguments[n++]) && (r =
|
|
2122
|
+
(e = arguments[n++]) && (r = _t(e)) && (t && (t += " "), t += r);
|
|
2123
2123
|
return t;
|
|
2124
2124
|
}
|
|
2125
|
-
const
|
|
2125
|
+
const kt = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, yt = Ds, I = (e, r) => (n) => {
|
|
2126
2126
|
var t;
|
|
2127
2127
|
if ((r == null ? void 0 : r.variants) == null)
|
|
2128
|
-
return
|
|
2128
|
+
return yt(e, n == null ? void 0 : n.class, n == null ? void 0 : n.className);
|
|
2129
2129
|
const { variants: s, defaultVariants: o } = r, a = Object.keys(s).map((u) => {
|
|
2130
2130
|
const f = n == null ? void 0 : n[u], p = o == null ? void 0 : o[u];
|
|
2131
2131
|
if (f === null)
|
|
2132
2132
|
return null;
|
|
2133
|
-
const m =
|
|
2133
|
+
const m = kt(f) || kt(p);
|
|
2134
2134
|
return s[u][m];
|
|
2135
2135
|
}), d = n && Object.entries(n).reduce((u, f) => {
|
|
2136
2136
|
let [p, m] = f;
|
|
@@ -2152,7 +2152,7 @@ const Ct = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, wt =
|
|
|
2152
2152
|
m
|
|
2153
2153
|
] : u;
|
|
2154
2154
|
}, []);
|
|
2155
|
-
return
|
|
2155
|
+
return yt(e, a, c, n == null ? void 0 : n.class, n == null ? void 0 : n.className);
|
|
2156
2156
|
}, qr = "-";
|
|
2157
2157
|
function Hs(e) {
|
|
2158
2158
|
const r = zs(e), {
|
|
@@ -2161,7 +2161,7 @@ function Hs(e) {
|
|
|
2161
2161
|
} = e;
|
|
2162
2162
|
function s(a) {
|
|
2163
2163
|
const d = a.split(qr);
|
|
2164
|
-
return d[0] === "" && d.length !== 1 && d.shift(),
|
|
2164
|
+
return d[0] === "" && d.length !== 1 && d.shift(), Wt(d, r) || Bs(a);
|
|
2165
2165
|
}
|
|
2166
2166
|
function o(a, d) {
|
|
2167
2167
|
const c = n[a] || [];
|
|
@@ -2172,11 +2172,11 @@ function Hs(e) {
|
|
|
2172
2172
|
getConflictingClassGroupIds: o
|
|
2173
2173
|
};
|
|
2174
2174
|
}
|
|
2175
|
-
function
|
|
2175
|
+
function Wt(e, r) {
|
|
2176
2176
|
var a;
|
|
2177
2177
|
if (e.length === 0)
|
|
2178
2178
|
return r.classGroupId;
|
|
2179
|
-
const n = e[0], t = r.nextPart.get(n), s = t ?
|
|
2179
|
+
const n = e[0], t = r.nextPart.get(n), s = t ? Wt(e.slice(1), t) : void 0;
|
|
2180
2180
|
if (s)
|
|
2181
2181
|
return s;
|
|
2182
2182
|
if (r.validators.length === 0)
|
|
@@ -2186,10 +2186,10 @@ function Ot(e, r) {
|
|
|
2186
2186
|
validator: d
|
|
2187
2187
|
}) => d(o))) == null ? void 0 : a.classGroupId;
|
|
2188
2188
|
}
|
|
2189
|
-
const
|
|
2189
|
+
const jt = /^\[(.+)\]$/;
|
|
2190
2190
|
function Bs(e) {
|
|
2191
|
-
if (
|
|
2192
|
-
const r =
|
|
2191
|
+
if (jt.test(e)) {
|
|
2192
|
+
const r = jt.exec(e)[1], n = r == null ? void 0 : r.substring(0, r.indexOf(":"));
|
|
2193
2193
|
if (n)
|
|
2194
2194
|
return "arbitrary.." + n;
|
|
2195
2195
|
}
|
|
@@ -2209,7 +2209,7 @@ function zs(e) {
|
|
|
2209
2209
|
function Ir(e, r, n, t) {
|
|
2210
2210
|
e.forEach((s) => {
|
|
2211
2211
|
if (typeof s == "string") {
|
|
2212
|
-
const o = s === "" ? r :
|
|
2212
|
+
const o = s === "" ? r : Et(r, s);
|
|
2213
2213
|
o.classGroupId = n;
|
|
2214
2214
|
return;
|
|
2215
2215
|
}
|
|
@@ -2225,11 +2225,11 @@ function Ir(e, r, n, t) {
|
|
|
2225
2225
|
return;
|
|
2226
2226
|
}
|
|
2227
2227
|
Object.entries(s).forEach(([o, a]) => {
|
|
2228
|
-
Ir(a,
|
|
2228
|
+
Ir(a, Et(r, o), n, t);
|
|
2229
2229
|
});
|
|
2230
2230
|
});
|
|
2231
2231
|
}
|
|
2232
|
-
function
|
|
2232
|
+
function Et(e, r) {
|
|
2233
2233
|
let n = e;
|
|
2234
2234
|
return r.split(qr).forEach((t) => {
|
|
2235
2235
|
n.nextPart.has(t) || n.nextPart.set(t, {
|
|
@@ -2272,7 +2272,7 @@ function Ys(e) {
|
|
|
2272
2272
|
}
|
|
2273
2273
|
};
|
|
2274
2274
|
}
|
|
2275
|
-
const
|
|
2275
|
+
const It = "!";
|
|
2276
2276
|
function Zs(e) {
|
|
2277
2277
|
const r = e.separator, n = r.length === 1, t = r[0], s = r.length;
|
|
2278
2278
|
return function(a) {
|
|
@@ -2292,7 +2292,7 @@ function Zs(e) {
|
|
|
2292
2292
|
}
|
|
2293
2293
|
b === "[" ? c++ : b === "]" && c--;
|
|
2294
2294
|
}
|
|
2295
|
-
const p = d.length === 0 ? a : a.substring(u), m = p.startsWith(
|
|
2295
|
+
const p = d.length === 0 ? a : a.substring(u), m = p.startsWith(It), v = m ? p.substring(1) : p, x = f && f > u ? f - u : void 0;
|
|
2296
2296
|
return {
|
|
2297
2297
|
modifiers: d,
|
|
2298
2298
|
hasImportantModifier: m,
|
|
@@ -2348,7 +2348,7 @@ function Xs(e, r) {
|
|
|
2348
2348
|
const v = qs(d).join(":");
|
|
2349
2349
|
return {
|
|
2350
2350
|
isTailwindClass: !0,
|
|
2351
|
-
modifierId: c ? v +
|
|
2351
|
+
modifierId: c ? v + It : v,
|
|
2352
2352
|
classGroupId: p,
|
|
2353
2353
|
originalClassName: a,
|
|
2354
2354
|
hasPostfixModifier: m
|
|
@@ -2367,15 +2367,15 @@ function Xs(e, r) {
|
|
|
2367
2367
|
function Qs() {
|
|
2368
2368
|
let e = 0, r, n, t = "";
|
|
2369
2369
|
for (; e < arguments.length; )
|
|
2370
|
-
(r = arguments[e++]) && (n =
|
|
2370
|
+
(r = arguments[e++]) && (n = Vt(r)) && (t && (t += " "), t += n);
|
|
2371
2371
|
return t;
|
|
2372
2372
|
}
|
|
2373
|
-
function
|
|
2373
|
+
function Vt(e) {
|
|
2374
2374
|
if (typeof e == "string")
|
|
2375
2375
|
return e;
|
|
2376
2376
|
let r, n = "";
|
|
2377
2377
|
for (let t = 0; t < e.length; t++)
|
|
2378
|
-
e[t] && (r =
|
|
2378
|
+
e[t] && (r = Vt(e[t])) && (n && (n += " "), n += r);
|
|
2379
2379
|
return n;
|
|
2380
2380
|
}
|
|
2381
2381
|
function eo(e, ...r) {
|
|
@@ -2399,7 +2399,7 @@ function A(e) {
|
|
|
2399
2399
|
const r = (n) => n[e] || [];
|
|
2400
2400
|
return r.isThemeGetter = !0, r;
|
|
2401
2401
|
}
|
|
2402
|
-
const
|
|
2402
|
+
const Dt = /^\[(?:([a-z-]+):)?(.+)\]$/i, ro = /^\d+\/\d+$/, to = /* @__PURE__ */ new Set(["px", "full", "screen"]), no = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, so = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, oo = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, ao = /^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, io = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;
|
|
2403
2403
|
function Le(e) {
|
|
2404
2404
|
return _e(e) || to.has(e) || ro.test(e);
|
|
2405
2405
|
}
|
|
@@ -2419,17 +2419,17 @@ function lo(e) {
|
|
|
2419
2419
|
return e.endsWith("%") && _e(e.slice(0, -1));
|
|
2420
2420
|
}
|
|
2421
2421
|
function E(e) {
|
|
2422
|
-
return
|
|
2422
|
+
return Dt.test(e);
|
|
2423
2423
|
}
|
|
2424
2424
|
function Re(e) {
|
|
2425
2425
|
return no.test(e);
|
|
2426
2426
|
}
|
|
2427
2427
|
const co = /* @__PURE__ */ new Set(["length", "size", "percentage"]);
|
|
2428
2428
|
function uo(e) {
|
|
2429
|
-
return Ge(e, co,
|
|
2429
|
+
return Ge(e, co, Ht);
|
|
2430
2430
|
}
|
|
2431
2431
|
function fo(e) {
|
|
2432
|
-
return Ge(e, "position",
|
|
2432
|
+
return Ge(e, "position", Ht);
|
|
2433
2433
|
}
|
|
2434
2434
|
const po = /* @__PURE__ */ new Set(["image", "url"]);
|
|
2435
2435
|
function ho(e) {
|
|
@@ -2442,13 +2442,13 @@ function nr() {
|
|
|
2442
2442
|
return !0;
|
|
2443
2443
|
}
|
|
2444
2444
|
function Ge(e, r, n) {
|
|
2445
|
-
const t =
|
|
2445
|
+
const t = Dt.exec(e);
|
|
2446
2446
|
return t ? t[1] ? typeof r == "string" ? t[1] === r : r.has(t[1]) : n(t[2]) : !1;
|
|
2447
2447
|
}
|
|
2448
2448
|
function go(e) {
|
|
2449
2449
|
return so.test(e) && !oo.test(e);
|
|
2450
2450
|
}
|
|
2451
|
-
function
|
|
2451
|
+
function Ht() {
|
|
2452
2452
|
return !1;
|
|
2453
2453
|
}
|
|
2454
2454
|
function vo(e) {
|
|
@@ -2458,7 +2458,7 @@ function bo(e) {
|
|
|
2458
2458
|
return io.test(e);
|
|
2459
2459
|
}
|
|
2460
2460
|
function xo() {
|
|
2461
|
-
const e = A("colors"), r = A("spacing"), n = A("blur"), t = A("brightness"), s = A("borderColor"), o = A("borderRadius"), a = A("borderSpacing"), d = A("borderWidth"), c = A("contrast"), u = A("grayscale"), f = A("hueRotate"), p = A("invert"), m = A("gap"), v = A("gradientColorStops"), x = A("gradientColorStopPositions"), C = A("inset"), b = A("margin"), w = A("opacity"),
|
|
2461
|
+
const e = A("colors"), r = A("spacing"), n = A("blur"), t = A("brightness"), s = A("borderColor"), o = A("borderRadius"), a = A("borderSpacing"), d = A("borderWidth"), c = A("contrast"), u = A("grayscale"), f = A("hueRotate"), p = A("invert"), m = A("gap"), v = A("gradientColorStops"), x = A("gradientColorStopPositions"), C = A("inset"), b = A("margin"), w = A("opacity"), j = A("padding"), fe = A("saturate"), N = A("scale"), Y = A("sepia"), ke = A("skew"), J = A("space"), Z = A("translate"), X = () => ["auto", "contain", "none"], te = () => ["auto", "hidden", "clip", "visible", "scroll"], ie = () => ["auto", E, r], $ = () => [E, r], F = () => ["", Le, Ne], V = () => ["auto", _e, E], U = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], pe = () => ["solid", "dashed", "dotted", "double", "none"], be = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity", "plus-lighter"], he = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], B = () => ["", "0", E], ye = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], me = () => [_e, gr], Q = () => [_e, E];
|
|
2462
2462
|
return {
|
|
2463
2463
|
cacheSize: 500,
|
|
2464
2464
|
separator: ":",
|
|
@@ -2776,14 +2776,14 @@ function xo() {
|
|
|
2776
2776
|
* @see https://tailwindcss.com/docs/grid-column
|
|
2777
2777
|
*/
|
|
2778
2778
|
"col-start": [{
|
|
2779
|
-
"col-start":
|
|
2779
|
+
"col-start": V()
|
|
2780
2780
|
}],
|
|
2781
2781
|
/**
|
|
2782
2782
|
* Grid Column End
|
|
2783
2783
|
* @see https://tailwindcss.com/docs/grid-column
|
|
2784
2784
|
*/
|
|
2785
2785
|
"col-end": [{
|
|
2786
|
-
"col-end":
|
|
2786
|
+
"col-end": V()
|
|
2787
2787
|
}],
|
|
2788
2788
|
/**
|
|
2789
2789
|
* Grid Template Rows
|
|
@@ -2806,14 +2806,14 @@ function xo() {
|
|
|
2806
2806
|
* @see https://tailwindcss.com/docs/grid-row
|
|
2807
2807
|
*/
|
|
2808
2808
|
"row-start": [{
|
|
2809
|
-
"row-start":
|
|
2809
|
+
"row-start": V()
|
|
2810
2810
|
}],
|
|
2811
2811
|
/**
|
|
2812
2812
|
* Grid Row End
|
|
2813
2813
|
* @see https://tailwindcss.com/docs/grid-row
|
|
2814
2814
|
*/
|
|
2815
2815
|
"row-end": [{
|
|
2816
|
-
"row-end":
|
|
2816
|
+
"row-end": V()
|
|
2817
2817
|
}],
|
|
2818
2818
|
/**
|
|
2819
2819
|
* Grid Auto Flow
|
|
@@ -2926,63 +2926,63 @@ function xo() {
|
|
|
2926
2926
|
* @see https://tailwindcss.com/docs/padding
|
|
2927
2927
|
*/
|
|
2928
2928
|
p: [{
|
|
2929
|
-
p: [
|
|
2929
|
+
p: [j]
|
|
2930
2930
|
}],
|
|
2931
2931
|
/**
|
|
2932
2932
|
* Padding X
|
|
2933
2933
|
* @see https://tailwindcss.com/docs/padding
|
|
2934
2934
|
*/
|
|
2935
2935
|
px: [{
|
|
2936
|
-
px: [
|
|
2936
|
+
px: [j]
|
|
2937
2937
|
}],
|
|
2938
2938
|
/**
|
|
2939
2939
|
* Padding Y
|
|
2940
2940
|
* @see https://tailwindcss.com/docs/padding
|
|
2941
2941
|
*/
|
|
2942
2942
|
py: [{
|
|
2943
|
-
py: [
|
|
2943
|
+
py: [j]
|
|
2944
2944
|
}],
|
|
2945
2945
|
/**
|
|
2946
2946
|
* Padding Start
|
|
2947
2947
|
* @see https://tailwindcss.com/docs/padding
|
|
2948
2948
|
*/
|
|
2949
2949
|
ps: [{
|
|
2950
|
-
ps: [
|
|
2950
|
+
ps: [j]
|
|
2951
2951
|
}],
|
|
2952
2952
|
/**
|
|
2953
2953
|
* Padding End
|
|
2954
2954
|
* @see https://tailwindcss.com/docs/padding
|
|
2955
2955
|
*/
|
|
2956
2956
|
pe: [{
|
|
2957
|
-
pe: [
|
|
2957
|
+
pe: [j]
|
|
2958
2958
|
}],
|
|
2959
2959
|
/**
|
|
2960
2960
|
* Padding Top
|
|
2961
2961
|
* @see https://tailwindcss.com/docs/padding
|
|
2962
2962
|
*/
|
|
2963
2963
|
pt: [{
|
|
2964
|
-
pt: [
|
|
2964
|
+
pt: [j]
|
|
2965
2965
|
}],
|
|
2966
2966
|
/**
|
|
2967
2967
|
* Padding Right
|
|
2968
2968
|
* @see https://tailwindcss.com/docs/padding
|
|
2969
2969
|
*/
|
|
2970
2970
|
pr: [{
|
|
2971
|
-
pr: [
|
|
2971
|
+
pr: [j]
|
|
2972
2972
|
}],
|
|
2973
2973
|
/**
|
|
2974
2974
|
* Padding Bottom
|
|
2975
2975
|
* @see https://tailwindcss.com/docs/padding
|
|
2976
2976
|
*/
|
|
2977
2977
|
pb: [{
|
|
2978
|
-
pb: [
|
|
2978
|
+
pb: [j]
|
|
2979
2979
|
}],
|
|
2980
2980
|
/**
|
|
2981
2981
|
* Padding Left
|
|
2982
2982
|
* @see https://tailwindcss.com/docs/padding
|
|
2983
2983
|
*/
|
|
2984
2984
|
pl: [{
|
|
2985
|
-
pl: [
|
|
2985
|
+
pl: [j]
|
|
2986
2986
|
}],
|
|
2987
2987
|
/**
|
|
2988
2988
|
* Margin
|
|
@@ -3917,7 +3917,7 @@ function xo() {
|
|
|
3917
3917
|
* @see https://tailwindcss.com/docs/sepia
|
|
3918
3918
|
*/
|
|
3919
3919
|
sepia: [{
|
|
3920
|
-
sepia: [
|
|
3920
|
+
sepia: [Y]
|
|
3921
3921
|
}],
|
|
3922
3922
|
/**
|
|
3923
3923
|
* Backdrop Filter
|
|
@@ -3988,7 +3988,7 @@ function xo() {
|
|
|
3988
3988
|
* @see https://tailwindcss.com/docs/backdrop-sepia
|
|
3989
3989
|
*/
|
|
3990
3990
|
"backdrop-sepia": [{
|
|
3991
|
-
"backdrop-sepia": [
|
|
3991
|
+
"backdrop-sepia": [Y]
|
|
3992
3992
|
}],
|
|
3993
3993
|
// Tables
|
|
3994
3994
|
/**
|
|
@@ -4110,14 +4110,14 @@ function xo() {
|
|
|
4110
4110
|
* @see https://tailwindcss.com/docs/translate
|
|
4111
4111
|
*/
|
|
4112
4112
|
"translate-x": [{
|
|
4113
|
-
"translate-x": [
|
|
4113
|
+
"translate-x": [Z]
|
|
4114
4114
|
}],
|
|
4115
4115
|
/**
|
|
4116
4116
|
* Translate Y
|
|
4117
4117
|
* @see https://tailwindcss.com/docs/translate
|
|
4118
4118
|
*/
|
|
4119
4119
|
"translate-y": [{
|
|
4120
|
-
"translate-y": [
|
|
4120
|
+
"translate-y": [Z]
|
|
4121
4121
|
}],
|
|
4122
4122
|
/**
|
|
4123
4123
|
* Skew X
|
|
@@ -4473,11 +4473,11 @@ function xo() {
|
|
|
4473
4473
|
}
|
|
4474
4474
|
};
|
|
4475
4475
|
}
|
|
4476
|
-
const
|
|
4476
|
+
const G = /* @__PURE__ */ eo(xo);
|
|
4477
4477
|
function Co() {
|
|
4478
4478
|
return Math.floor(Math.random() * 1e7);
|
|
4479
4479
|
}
|
|
4480
|
-
const
|
|
4480
|
+
const Bt = (e, r, n, t, s) => {
|
|
4481
4481
|
const o = `preflight ${n}`;
|
|
4482
4482
|
return {
|
|
4483
4483
|
settings: /* @__PURE__ */ i.jsx(
|
|
@@ -4531,7 +4531,7 @@ const Dt = (e, r, n, t, s) => {
|
|
|
4531
4531
|
}
|
|
4532
4532
|
),
|
|
4533
4533
|
infoCircle: /* @__PURE__ */ i.jsx(
|
|
4534
|
-
|
|
4534
|
+
At,
|
|
4535
4535
|
{
|
|
4536
4536
|
width: e,
|
|
4537
4537
|
height: r,
|
|
@@ -4571,7 +4571,7 @@ const Dt = (e, r, n, t, s) => {
|
|
|
4571
4571
|
}
|
|
4572
4572
|
),
|
|
4573
4573
|
error: /* @__PURE__ */ i.jsx(
|
|
4574
|
-
|
|
4574
|
+
Ot,
|
|
4575
4575
|
{
|
|
4576
4576
|
width: e,
|
|
4577
4577
|
height: r,
|
|
@@ -4581,7 +4581,7 @@ const Dt = (e, r, n, t, s) => {
|
|
|
4581
4581
|
}
|
|
4582
4582
|
),
|
|
4583
4583
|
warning: /* @__PURE__ */ i.jsx(
|
|
4584
|
-
|
|
4584
|
+
Ft,
|
|
4585
4585
|
{
|
|
4586
4586
|
width: e,
|
|
4587
4587
|
height: r,
|
|
@@ -4671,7 +4671,7 @@ const Dt = (e, r, n, t, s) => {
|
|
|
4671
4671
|
}
|
|
4672
4672
|
),
|
|
4673
4673
|
checkCircle: /* @__PURE__ */ i.jsx(
|
|
4674
|
-
|
|
4674
|
+
Pt,
|
|
4675
4675
|
{
|
|
4676
4676
|
width: e,
|
|
4677
4677
|
height: r,
|
|
@@ -4691,7 +4691,7 @@ const Dt = (e, r, n, t, s) => {
|
|
|
4691
4691
|
}
|
|
4692
4692
|
)
|
|
4693
4693
|
};
|
|
4694
|
-
},
|
|
4694
|
+
}, zt = (e, r, n, t, s) => {
|
|
4695
4695
|
const o = `preflight ${n}`;
|
|
4696
4696
|
return {
|
|
4697
4697
|
notifications: /* @__PURE__ */ i.jsx(
|
|
@@ -4715,7 +4715,7 @@ const Dt = (e, r, n, t, s) => {
|
|
|
4715
4715
|
}
|
|
4716
4716
|
),
|
|
4717
4717
|
bookmark: /* @__PURE__ */ i.jsx(
|
|
4718
|
-
|
|
4718
|
+
Ms,
|
|
4719
4719
|
{
|
|
4720
4720
|
width: e,
|
|
4721
4721
|
height: r,
|
|
@@ -4742,13 +4742,13 @@ const Dt = (e, r, n, t, s) => {
|
|
|
4742
4742
|
width: "24",
|
|
4743
4743
|
height: "24"
|
|
4744
4744
|
}
|
|
4745
|
-
}, d =
|
|
4745
|
+
}, d = Bt(
|
|
4746
4746
|
a[e].width,
|
|
4747
4747
|
a[e].height,
|
|
4748
4748
|
t,
|
|
4749
4749
|
s,
|
|
4750
4750
|
o
|
|
4751
|
-
), c =
|
|
4751
|
+
), c = zt(
|
|
4752
4752
|
a[e].width,
|
|
4753
4753
|
a[e].height,
|
|
4754
4754
|
t,
|
|
@@ -4757,13 +4757,13 @@ const Dt = (e, r, n, t, s) => {
|
|
|
4757
4757
|
), u = n && c[r] || d[r];
|
|
4758
4758
|
return /* @__PURE__ */ i.jsx(i.Fragment, { children: u });
|
|
4759
4759
|
}, Ve = wo;
|
|
4760
|
-
Object.keys(
|
|
4760
|
+
Object.keys(Bt()).sort(
|
|
4761
4761
|
(e, r) => e.localeCompare(r)
|
|
4762
4762
|
);
|
|
4763
|
-
Object.keys(
|
|
4763
|
+
Object.keys(zt()).sort(
|
|
4764
4764
|
(e, r) => e.localeCompare(r)
|
|
4765
4765
|
);
|
|
4766
|
-
function
|
|
4766
|
+
function Ut(e) {
|
|
4767
4767
|
var r, n, t = "";
|
|
4768
4768
|
if (typeof e == "string" || typeof e == "number")
|
|
4769
4769
|
t += e;
|
|
@@ -4771,7 +4771,7 @@ function Bt(e) {
|
|
|
4771
4771
|
if (Array.isArray(e)) {
|
|
4772
4772
|
var s = e.length;
|
|
4773
4773
|
for (r = 0; r < s; r++)
|
|
4774
|
-
e[r] && (n =
|
|
4774
|
+
e[r] && (n = Ut(e[r])) && (t && (t += " "), t += n);
|
|
4775
4775
|
} else
|
|
4776
4776
|
for (n in e)
|
|
4777
4777
|
e[n] && (t && (t += " "), t += n);
|
|
@@ -4779,10 +4779,10 @@ function Bt(e) {
|
|
|
4779
4779
|
}
|
|
4780
4780
|
function ko() {
|
|
4781
4781
|
for (var e, r, n = 0, t = "", s = arguments.length; n < s; n++)
|
|
4782
|
-
(e = arguments[n]) && (r =
|
|
4782
|
+
(e = arguments[n]) && (r = Ut(e)) && (t && (t += " "), t += r);
|
|
4783
4783
|
return t;
|
|
4784
4784
|
}
|
|
4785
|
-
const Vr = (...e) =>
|
|
4785
|
+
const Vr = (...e) => G(ko(...e)), Gt = (e, r, n) => {
|
|
4786
4786
|
if (r) {
|
|
4787
4787
|
e.preventDefault();
|
|
4788
4788
|
return;
|
|
@@ -4794,7 +4794,7 @@ const Vr = (...e) => K(ko(...e)), zt = (e, r, n) => {
|
|
|
4794
4794
|
return;
|
|
4795
4795
|
}
|
|
4796
4796
|
n(e);
|
|
4797
|
-
}, yo =
|
|
4797
|
+
}, yo = I(
|
|
4798
4798
|
[
|
|
4799
4799
|
"preflight",
|
|
4800
4800
|
"!ds-font-sans",
|
|
@@ -4897,7 +4897,7 @@ const Vr = (...e) => K(ko(...e)), zt = (e, r, n) => {
|
|
|
4897
4897
|
)
|
|
4898
4898
|
]
|
|
4899
4899
|
}
|
|
4900
|
-
), Kr = jo, Eo =
|
|
4900
|
+
), Kr = jo, Eo = I(
|
|
4901
4901
|
[
|
|
4902
4902
|
"preflight",
|
|
4903
4903
|
"ds-flex",
|
|
@@ -4921,7 +4921,7 @@ const Vr = (...e) => K(ko(...e)), zt = (e, r, n) => {
|
|
|
4921
4921
|
}
|
|
4922
4922
|
}
|
|
4923
4923
|
}
|
|
4924
|
-
), Lo = (e) =>
|
|
4924
|
+
), Lo = (e) => G(Eo(e)), $o = I("", {
|
|
4925
4925
|
variants: {
|
|
4926
4926
|
variant: {
|
|
4927
4927
|
success: "ds-text-success-green-dark",
|
|
@@ -4930,7 +4930,7 @@ const Vr = (...e) => K(ko(...e)), zt = (e, r, n) => {
|
|
|
4930
4930
|
error: "ds-text-danger-red-dark"
|
|
4931
4931
|
}
|
|
4932
4932
|
}
|
|
4933
|
-
}),
|
|
4933
|
+
}), Lt = (e) => G($o(e)), Mo = I("", {
|
|
4934
4934
|
variants: {
|
|
4935
4935
|
variant: {
|
|
4936
4936
|
success: ["ds-text-success-green-darkest", "ds-stroke-success-green-darkest"],
|
|
@@ -4939,7 +4939,7 @@ const Vr = (...e) => K(ko(...e)), zt = (e, r, n) => {
|
|
|
4939
4939
|
error: ["ds-text-danger-red-darkest", "ds-stroke-danger-red-darkest"]
|
|
4940
4940
|
}
|
|
4941
4941
|
}
|
|
4942
|
-
}), ze = (e) =>
|
|
4942
|
+
}), ze = (e) => G(Mo(e)), To = ({
|
|
4943
4943
|
variant: e = "info",
|
|
4944
4944
|
isDismissible: r = !0,
|
|
4945
4945
|
showIcon: n = !0,
|
|
@@ -4953,10 +4953,10 @@ const Vr = (...e) => K(ko(...e)), zt = (e, r, n) => {
|
|
|
4953
4953
|
...f
|
|
4954
4954
|
}) => {
|
|
4955
4955
|
const p = {
|
|
4956
|
-
success: /* @__PURE__ */ i.jsx(
|
|
4957
|
-
info: /* @__PURE__ */ i.jsx(
|
|
4958
|
-
warning: /* @__PURE__ */ i.jsx(
|
|
4959
|
-
error: /* @__PURE__ */ i.jsx(
|
|
4956
|
+
success: /* @__PURE__ */ i.jsx(Pt, { className: ze({ variant: e }) }),
|
|
4957
|
+
info: /* @__PURE__ */ i.jsx(At, { className: ze({ variant: e }) }),
|
|
4958
|
+
warning: /* @__PURE__ */ i.jsx(Ft, { className: ze({ variant: e }) }),
|
|
4959
|
+
error: /* @__PURE__ */ i.jsx(Ot, { className: ze({ variant: e }) })
|
|
4960
4960
|
}, m = () => a !== void 0 && o !== "" && !(t !== "none" || s !== ""), v = () => t === "large" ? "ds-flex-col ds-flex ds-gap-3" : t === "small" ? "ds-flex-row ds-flex ds-gap-3" : "ds-flex";
|
|
4961
4961
|
return /* @__PURE__ */ i.jsxs("div", { id: c, className: Lo({ variant: e }), ...f, children: [
|
|
4962
4962
|
/* @__PURE__ */ i.jsxs("div", { className: "ds-flex ds-flex-row", children: [
|
|
@@ -4980,7 +4980,7 @@ const Vr = (...e) => K(ko(...e)), zt = (e, r, n) => {
|
|
|
4980
4980
|
children: s
|
|
4981
4981
|
}
|
|
4982
4982
|
),
|
|
4983
|
-
/* @__PURE__ */ i.jsxs("div", { className:
|
|
4983
|
+
/* @__PURE__ */ i.jsxs("div", { className: Lt({ variant: e }), children: [
|
|
4984
4984
|
t !== "none" && s !== "" && /* @__PURE__ */ i.jsx(
|
|
4985
4985
|
"span",
|
|
4986
4986
|
{
|
|
@@ -5000,7 +5000,7 @@ const Vr = (...e) => K(ko(...e)), zt = (e, r, n) => {
|
|
|
5000
5000
|
a && /* @__PURE__ */ i.jsx(
|
|
5001
5001
|
"div",
|
|
5002
5002
|
{
|
|
5003
|
-
className: `${
|
|
5003
|
+
className: `${Lt({ variant: e })} ${m() ? "ds-mt-3" : ""}`,
|
|
5004
5004
|
children: a
|
|
5005
5005
|
}
|
|
5006
5006
|
)
|
|
@@ -5022,7 +5022,7 @@ const Vr = (...e) => K(ko(...e)), zt = (e, r, n) => {
|
|
|
5022
5022
|
}
|
|
5023
5023
|
) })
|
|
5024
5024
|
] });
|
|
5025
|
-
},
|
|
5025
|
+
}, cl = To, Yt = [
|
|
5026
5026
|
"preflight",
|
|
5027
5027
|
// Need to specify the font because disabling preflight makes the button not inherit the font
|
|
5028
5028
|
// Lato is defined as font-sans in our tailwind theme configuration
|
|
@@ -5050,7 +5050,7 @@ const Vr = (...e) => K(ko(...e)), zt = (e, r, n) => {
|
|
|
5050
5050
|
"!focus-visible:ds-ring-neutrals-black",
|
|
5051
5051
|
"!focus-visible:ds-border-neutrals-light"
|
|
5052
5052
|
], No = [
|
|
5053
|
-
...
|
|
5053
|
+
...Yt,
|
|
5054
5054
|
"ds-p-1",
|
|
5055
5055
|
"!ds-bg-neutrals-lighter",
|
|
5056
5056
|
"!ds-text-neutrals-dark",
|
|
@@ -5060,7 +5060,7 @@ const Vr = (...e) => K(ko(...e)), zt = (e, r, n) => {
|
|
|
5060
5060
|
"focus-visible:ds-ring-neutrals-black",
|
|
5061
5061
|
"!focus-visible:ds-border-neutrals-light",
|
|
5062
5062
|
"active:ds-border-neutrals-lighter"
|
|
5063
|
-
], Ro =
|
|
5063
|
+
], Ro = I(Yt, {
|
|
5064
5064
|
variants: {
|
|
5065
5065
|
variant: {
|
|
5066
5066
|
primary: [
|
|
@@ -5191,7 +5191,7 @@ const Vr = (...e) => K(ko(...e)), zt = (e, r, n) => {
|
|
|
5191
5191
|
)
|
|
5192
5192
|
] })
|
|
5193
5193
|
}
|
|
5194
|
-
) }),
|
|
5194
|
+
) }), ul = Po, Fo = ({
|
|
5195
5195
|
content: e = void 0,
|
|
5196
5196
|
iconName: r = void 0,
|
|
5197
5197
|
title: n = "",
|
|
@@ -5202,7 +5202,7 @@ const Vr = (...e) => K(ko(...e)), zt = (e, r, n) => {
|
|
|
5202
5202
|
"div",
|
|
5203
5203
|
{
|
|
5204
5204
|
...o,
|
|
5205
|
-
className:
|
|
5205
|
+
className: G(
|
|
5206
5206
|
"preflight ds-flex ds-flex-col ds-items-start ds-gap-6 ds-rounded-lg ds-border ds-border-neutrals-light ds-p-5",
|
|
5207
5207
|
s
|
|
5208
5208
|
),
|
|
@@ -5218,13 +5218,13 @@ const Vr = (...e) => K(ko(...e)), zt = (e, r, n) => {
|
|
|
5218
5218
|
altText: r
|
|
5219
5219
|
}
|
|
5220
5220
|
),
|
|
5221
|
-
/* @__PURE__ */ i.jsx(
|
|
5221
|
+
/* @__PURE__ */ i.jsx(Kt, { size: "small", text: n, hasMarginBottom: !1 })
|
|
5222
5222
|
] }),
|
|
5223
5223
|
e && /* @__PURE__ */ i.jsx("div", { className: "ds-text-base", children: e }),
|
|
5224
5224
|
t && /* @__PURE__ */ i.jsx("div", { children: t })
|
|
5225
5225
|
]
|
|
5226
5226
|
}
|
|
5227
|
-
),
|
|
5227
|
+
), fl = Fo, Oo = I(
|
|
5228
5228
|
[
|
|
5229
5229
|
"preflight",
|
|
5230
5230
|
"ds-h-4",
|
|
@@ -5252,7 +5252,7 @@ const Vr = (...e) => K(ko(...e)), zt = (e, r, n) => {
|
|
|
5252
5252
|
}
|
|
5253
5253
|
}
|
|
5254
5254
|
}
|
|
5255
|
-
),
|
|
5255
|
+
), Zt = (e) => G(Oo(e)), _o = I(
|
|
5256
5256
|
["preflight", "ds-font-base", "!ds-font-sans", "ds-ml-2", "ds-text-base"],
|
|
5257
5257
|
{
|
|
5258
5258
|
variants: {
|
|
@@ -5262,7 +5262,7 @@ const Vr = (...e) => K(ko(...e)), zt = (e, r, n) => {
|
|
|
5262
5262
|
}
|
|
5263
5263
|
}
|
|
5264
5264
|
}
|
|
5265
|
-
),
|
|
5265
|
+
), qt = (e) => G(_o(e)), Jr = {
|
|
5266
5266
|
variants: {
|
|
5267
5267
|
state: {
|
|
5268
5268
|
default: [
|
|
@@ -5321,25 +5321,25 @@ const Vr = (...e) => K(ko(...e)), zt = (e, r, n) => {
|
|
|
5321
5321
|
name: n,
|
|
5322
5322
|
"aria-disabled": s,
|
|
5323
5323
|
type: "checkbox",
|
|
5324
|
-
className: `ds-form-checkbox ${
|
|
5324
|
+
className: `ds-form-checkbox ${Zt({ disabled: s })} ds-rounded`,
|
|
5325
5325
|
checked: t,
|
|
5326
5326
|
ref: (u) => u && (u.indeterminate = o),
|
|
5327
5327
|
onClick: (u) => jr(u, s, d),
|
|
5328
|
-
onChange: (u) =>
|
|
5328
|
+
onChange: (u) => Gt(u, s, a),
|
|
5329
5329
|
...c
|
|
5330
5330
|
}
|
|
5331
5331
|
),
|
|
5332
|
-
/* @__PURE__ */ i.jsx("label", { htmlFor: e, className:
|
|
5333
|
-
] }),
|
|
5332
|
+
/* @__PURE__ */ i.jsx("label", { htmlFor: e, className: qt({ disabled: s }), children: r })
|
|
5333
|
+
] }), pl = Wo, De = "large", Ye = "medium", Ze = "small", qe = "extra-large", $t = "h1", Io = "h2", Vo = "h3", Do = "div";
|
|
5334
5334
|
function Ho(e) {
|
|
5335
5335
|
return {
|
|
5336
|
-
[De]:
|
|
5336
|
+
[De]: $t,
|
|
5337
5337
|
[Ye]: Io,
|
|
5338
5338
|
[Ze]: Vo,
|
|
5339
5339
|
[qe]: Do
|
|
5340
|
-
}[e] ||
|
|
5340
|
+
}[e] || $t;
|
|
5341
5341
|
}
|
|
5342
|
-
const Bo =
|
|
5342
|
+
const Bo = I("preflight !ds-font-sans", {
|
|
5343
5343
|
variants: {
|
|
5344
5344
|
size: {
|
|
5345
5345
|
[Ze]: "ds-mb-3",
|
|
@@ -5348,7 +5348,7 @@ const Bo = V("preflight !ds-font-sans", {
|
|
|
5348
5348
|
[qe]: "ds-mb-6"
|
|
5349
5349
|
}
|
|
5350
5350
|
}
|
|
5351
|
-
}), vr =
|
|
5351
|
+
}), vr = I("ds-text-neutrals-darker !ds-font-sans", {
|
|
5352
5352
|
variants: {
|
|
5353
5353
|
size: {
|
|
5354
5354
|
[Ze]: "ds-text-xl ds-font-semibold",
|
|
@@ -5357,7 +5357,7 @@ const Bo = V("preflight !ds-font-sans", {
|
|
|
5357
5357
|
[qe]: "ds-text-4xl ds-font-semibold"
|
|
5358
5358
|
}
|
|
5359
5359
|
}
|
|
5360
|
-
}), zo =
|
|
5360
|
+
}), zo = I("ds-mt-0 ds-font-bold ds-text-neutrals-dark", {
|
|
5361
5361
|
variants: {
|
|
5362
5362
|
size: {
|
|
5363
5363
|
[Ze]: "ds-mb-1 ds-text-sm",
|
|
@@ -5366,7 +5366,7 @@ const Bo = V("preflight !ds-font-sans", {
|
|
|
5366
5366
|
[qe]: "ds-mb-3 ds-text-base"
|
|
5367
5367
|
}
|
|
5368
5368
|
}
|
|
5369
|
-
}), Uo =
|
|
5369
|
+
}), Uo = I("ds-mb-0 ds-text-neutrals-dark", {
|
|
5370
5370
|
variants: {
|
|
5371
5371
|
size: {
|
|
5372
5372
|
[Ze]: "ds-mt-1 ds-text-base",
|
|
@@ -5375,7 +5375,7 @@ const Bo = V("preflight !ds-font-sans", {
|
|
|
5375
5375
|
[qe]: "ds-mt-3 ds-text-base"
|
|
5376
5376
|
}
|
|
5377
5377
|
}
|
|
5378
|
-
}), Go =
|
|
5378
|
+
}), Go = I("ds-text-neutrals-light", {
|
|
5379
5379
|
variants: {
|
|
5380
5380
|
size: {
|
|
5381
5381
|
[Ze]: "ds-mt-2",
|
|
@@ -5401,13 +5401,13 @@ const Bo = V("preflight !ds-font-sans", {
|
|
|
5401
5401
|
h2: /* @__PURE__ */ i.jsx("h2", { className: vr({ size: e }), children: n }),
|
|
5402
5402
|
h1: /* @__PURE__ */ i.jsx("h1", { className: vr({ size: e }), children: n })
|
|
5403
5403
|
};
|
|
5404
|
-
return /* @__PURE__ */ i.jsxs("div", { className:
|
|
5404
|
+
return /* @__PURE__ */ i.jsxs("div", { className: G(m, r), ...c, children: [
|
|
5405
5405
|
u,
|
|
5406
5406
|
v[d || Ho(e)],
|
|
5407
5407
|
f,
|
|
5408
5408
|
p
|
|
5409
5409
|
] });
|
|
5410
|
-
},
|
|
5410
|
+
}, Kt = Yo, Zo = ({
|
|
5411
5411
|
label: e = "",
|
|
5412
5412
|
name: r,
|
|
5413
5413
|
id: n,
|
|
@@ -5424,15 +5424,15 @@ const Bo = V("preflight !ds-font-sans", {
|
|
|
5424
5424
|
id: n,
|
|
5425
5425
|
name: r,
|
|
5426
5426
|
type: "radio",
|
|
5427
|
-
className: `ds-form-radio ${
|
|
5427
|
+
className: `ds-form-radio ${Zt({ disabled: t })}`,
|
|
5428
5428
|
"aria-disabled": t,
|
|
5429
|
-
onChange: (d) =>
|
|
5429
|
+
onChange: (d) => Gt(d, t, s),
|
|
5430
5430
|
onClick: (d) => jr(d, t, o),
|
|
5431
5431
|
...a
|
|
5432
5432
|
}
|
|
5433
5433
|
),
|
|
5434
|
-
/* @__PURE__ */ i.jsx("label", { htmlFor: n, className:
|
|
5435
|
-
] }),
|
|
5434
|
+
/* @__PURE__ */ i.jsx("label", { htmlFor: n, className: qt({ disabled: t }), children: e })
|
|
5435
|
+
] }), hl = Zo, qo = I(
|
|
5436
5436
|
[
|
|
5437
5437
|
"preflight",
|
|
5438
5438
|
"!ds-font-sans",
|
|
@@ -5471,10 +5471,10 @@ const Bo = V("preflight !ds-font-sans", {
|
|
|
5471
5471
|
type: n = "default",
|
|
5472
5472
|
iconName: t,
|
|
5473
5473
|
...s
|
|
5474
|
-
}) => /* @__PURE__ */ i.jsxs("a", { href: r, type: n, className:
|
|
5474
|
+
}) => /* @__PURE__ */ i.jsxs("a", { href: r, type: n, className: G(qo({ type: n })), ...s, children: [
|
|
5475
5475
|
e,
|
|
5476
5476
|
t && /* @__PURE__ */ i.jsx(Ve, { altText: e, name: t, size: "small" })
|
|
5477
|
-
] }),
|
|
5477
|
+
] }), ml = Ko;
|
|
5478
5478
|
var Jo = Object.defineProperty, Xo = (e, r, n) => r in e ? Jo(e, r, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[r] = n, Pr = (e, r, n) => (Xo(e, typeof r != "symbol" ? r + "" : r, n), n);
|
|
5479
5479
|
let Qo = class {
|
|
5480
5480
|
constructor() {
|
|
@@ -5505,7 +5505,7 @@ let Qo = class {
|
|
|
5505
5505
|
return this.handoffState === "complete";
|
|
5506
5506
|
}
|
|
5507
5507
|
}, Ie = new Qo();
|
|
5508
|
-
function
|
|
5508
|
+
function Xr(e) {
|
|
5509
5509
|
return Ie.isServer ? null : e instanceof Node ? e.ownerDocument : e != null && e.hasOwnProperty("current") && e.current instanceof Node ? e.current.ownerDocument : document;
|
|
5510
5510
|
}
|
|
5511
5511
|
function Er(e) {
|
|
@@ -5552,22 +5552,22 @@ function Oe() {
|
|
|
5552
5552
|
} };
|
|
5553
5553
|
return r;
|
|
5554
5554
|
}
|
|
5555
|
-
function
|
|
5555
|
+
function Qr() {
|
|
5556
5556
|
let [e] = ge(Oe);
|
|
5557
5557
|
return oe(() => () => e.dispose(), [e]), e;
|
|
5558
5558
|
}
|
|
5559
|
-
let
|
|
5559
|
+
let K = (e, r) => {
|
|
5560
5560
|
Ie.isServer ? oe(e, r) : Dn(e, r);
|
|
5561
5561
|
};
|
|
5562
5562
|
function Ce(e) {
|
|
5563
5563
|
let r = R(e);
|
|
5564
|
-
return
|
|
5564
|
+
return K(() => {
|
|
5565
5565
|
r.current = e;
|
|
5566
5566
|
}, [e]), r;
|
|
5567
5567
|
}
|
|
5568
5568
|
let P = function(e) {
|
|
5569
5569
|
let r = Ce(e);
|
|
5570
|
-
return
|
|
5570
|
+
return k.useCallback((...n) => r.current(...n), [r]);
|
|
5571
5571
|
}, ea = ce(void 0);
|
|
5572
5572
|
function ra() {
|
|
5573
5573
|
return re(ea);
|
|
@@ -5586,7 +5586,7 @@ function z(e, r, ...n) {
|
|
|
5586
5586
|
var Cr = ((e) => (e[e.None = 0] = "None", e[e.RenderStrategy = 1] = "RenderStrategy", e[e.Static = 2] = "Static", e))(Cr || {}), Fe = ((e) => (e[e.Unmount = 0] = "Unmount", e[e.Hidden = 1] = "Hidden", e))(Fe || {});
|
|
5587
5587
|
function ve({ ourProps: e, theirProps: r, slot: n, defaultTag: t, features: s, visible: o = !0, name: a, mergeRefs: d }) {
|
|
5588
5588
|
d = d != null ? d : ta;
|
|
5589
|
-
let c =
|
|
5589
|
+
let c = Jt(r, e);
|
|
5590
5590
|
if (o)
|
|
5591
5591
|
return br(c, n, t, a, d);
|
|
5592
5592
|
let u = s != null ? s : 0;
|
|
@@ -5627,7 +5627,7 @@ function br(e, r = {}, n, t, s) {
|
|
|
5627
5627
|
`)].join(`
|
|
5628
5628
|
`));
|
|
5629
5629
|
} else {
|
|
5630
|
-
let m = f.props, v = m == null ? void 0 : m.className, x = typeof v == "function" ? (...w) => ar(v(...w), c.className) : ar(v, c.className), C = x ? { className: x } : {}, b =
|
|
5630
|
+
let m = f.props, v = m == null ? void 0 : m.className, x = typeof v == "function" ? (...w) => ar(v(...w), c.className) : ar(v, c.className), C = x ? { className: x } : {}, b = Jt(f.props, Ue(Fr(c, ["ref"])));
|
|
5631
5631
|
for (let w in p)
|
|
5632
5632
|
w in b && delete p[w];
|
|
5633
5633
|
return zn(f, Object.assign({}, b, p, u, { ref: s(f.ref, u.ref) }, C));
|
|
@@ -5640,7 +5640,7 @@ function ta(...e) {
|
|
|
5640
5640
|
n != null && (typeof n == "function" ? n(r) : n.current = r);
|
|
5641
5641
|
};
|
|
5642
5642
|
}
|
|
5643
|
-
function
|
|
5643
|
+
function Jt(...e) {
|
|
5644
5644
|
if (e.length === 0)
|
|
5645
5645
|
return {};
|
|
5646
5646
|
if (e.length === 1)
|
|
@@ -5693,13 +5693,13 @@ let Dr = ue(sa), oa = ce(null);
|
|
|
5693
5693
|
function aa({ children: e }) {
|
|
5694
5694
|
let r = re(oa);
|
|
5695
5695
|
if (!r)
|
|
5696
|
-
return
|
|
5696
|
+
return k.createElement(k.Fragment, null, e);
|
|
5697
5697
|
let { target: n } = r;
|
|
5698
|
-
return n ?
|
|
5698
|
+
return n ? Rt(k.createElement(k.Fragment, null, e), n) : null;
|
|
5699
5699
|
}
|
|
5700
|
-
let
|
|
5700
|
+
let Xt = Symbol();
|
|
5701
5701
|
function ia(e, r = !0) {
|
|
5702
|
-
return Object.assign(e, { [
|
|
5702
|
+
return Object.assign(e, { [Xt]: r });
|
|
5703
5703
|
}
|
|
5704
5704
|
function we(...e) {
|
|
5705
5705
|
let r = R(e);
|
|
@@ -5710,15 +5710,15 @@ function we(...e) {
|
|
|
5710
5710
|
for (let s of r.current)
|
|
5711
5711
|
s != null && (typeof s == "function" ? s(t) : s.current = t);
|
|
5712
5712
|
});
|
|
5713
|
-
return e.every((t) => t == null || (t == null ? void 0 : t[
|
|
5713
|
+
return e.every((t) => t == null || (t == null ? void 0 : t[Xt])) ? void 0 : n;
|
|
5714
5714
|
}
|
|
5715
|
-
let
|
|
5716
|
-
|
|
5717
|
-
function
|
|
5718
|
-
let e = re(
|
|
5715
|
+
let et = ce(null);
|
|
5716
|
+
et.displayName = "DescriptionContext";
|
|
5717
|
+
function Qt() {
|
|
5718
|
+
let e = re(et);
|
|
5719
5719
|
if (e === null) {
|
|
5720
5720
|
let r = new Error("You used a <Description /> component, but it is not inside a relevant parent.");
|
|
5721
|
-
throw Error.captureStackTrace && Error.captureStackTrace(r,
|
|
5721
|
+
throw Error.captureStackTrace && Error.captureStackTrace(r, Qt), r;
|
|
5722
5722
|
}
|
|
5723
5723
|
return e;
|
|
5724
5724
|
}
|
|
@@ -5729,30 +5729,30 @@ function la() {
|
|
|
5729
5729
|
let d = a.slice(), c = d.indexOf(o);
|
|
5730
5730
|
return c !== -1 && d.splice(c, 1), d;
|
|
5731
5731
|
}))), s = ae(() => ({ register: t, slot: n.slot, name: n.name, props: n.props, value: n.value }), [t, n.slot, n.name, n.props, n.value]);
|
|
5732
|
-
return
|
|
5732
|
+
return k.createElement(et.Provider, { value: s }, n.children);
|
|
5733
5733
|
}, [r])];
|
|
5734
5734
|
}
|
|
5735
5735
|
let da = "p";
|
|
5736
5736
|
function ca(e, r) {
|
|
5737
|
-
let n = yr(), t = ra(), { id: s = `headlessui-description-${n}`, ...o } = e, a =
|
|
5738
|
-
|
|
5737
|
+
let n = yr(), t = ra(), { id: s = `headlessui-description-${n}`, ...o } = e, a = Qt(), d = we(r);
|
|
5738
|
+
K(() => a.register(s), [s, a.register]);
|
|
5739
5739
|
let c = t || !1, u = ae(() => ({ ...a.slot, disabled: c }), [a.slot, c]), f = { ref: d, ...a.props, id: s };
|
|
5740
5740
|
return ve({ ourProps: f, theirProps: o, slot: u, defaultTag: da, name: a.name || "Description" });
|
|
5741
5741
|
}
|
|
5742
5742
|
let ua = ue(ca), fa = Object.assign(ua, {});
|
|
5743
|
-
var
|
|
5743
|
+
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 || {});
|
|
5744
5744
|
let pa = ce(() => {
|
|
5745
5745
|
});
|
|
5746
5746
|
function ha({ value: e, children: r }) {
|
|
5747
|
-
return
|
|
5747
|
+
return k.createElement(pa.Provider, { value: e }, r);
|
|
5748
5748
|
}
|
|
5749
5749
|
let Hr = /* @__PURE__ */ new Map(), ir = /* @__PURE__ */ new Map();
|
|
5750
|
-
function
|
|
5750
|
+
function Mt(e) {
|
|
5751
5751
|
var r;
|
|
5752
5752
|
let n = (r = ir.get(e)) != null ? r : 0;
|
|
5753
|
-
return ir.set(e, n + 1), n !== 0 ? () =>
|
|
5753
|
+
return ir.set(e, n + 1), n !== 0 ? () => Tt(e) : (Hr.set(e, { "aria-hidden": e.getAttribute("aria-hidden"), inert: e.inert }), e.setAttribute("aria-hidden", "true"), e.inert = !0, () => Tt(e));
|
|
5754
5754
|
}
|
|
5755
|
-
function
|
|
5755
|
+
function Tt(e) {
|
|
5756
5756
|
var r;
|
|
5757
5757
|
let n = (r = ir.get(e)) != null ? r : 1;
|
|
5758
5758
|
if (n === 1 ? ir.delete(e) : ir.set(e, n - 1), n !== 1)
|
|
@@ -5761,31 +5761,31 @@ function $t(e) {
|
|
|
5761
5761
|
t && (t["aria-hidden"] === null ? e.removeAttribute("aria-hidden") : e.setAttribute("aria-hidden", t["aria-hidden"]), e.inert = t.inert, Hr.delete(e));
|
|
5762
5762
|
}
|
|
5763
5763
|
function ma({ allowed: e, disallowed: r } = {}, n = !0) {
|
|
5764
|
-
|
|
5764
|
+
K(() => {
|
|
5765
5765
|
var t, s;
|
|
5766
5766
|
if (!n)
|
|
5767
5767
|
return;
|
|
5768
5768
|
let o = Oe();
|
|
5769
5769
|
for (let d of (t = r == null ? void 0 : r()) != null ? t : [])
|
|
5770
|
-
d && o.add(
|
|
5770
|
+
d && o.add(Mt(d));
|
|
5771
5771
|
let a = (s = e == null ? void 0 : e()) != null ? s : [];
|
|
5772
5772
|
for (let d of a) {
|
|
5773
5773
|
if (!d)
|
|
5774
5774
|
continue;
|
|
5775
|
-
let c =
|
|
5775
|
+
let c = Xr(d);
|
|
5776
5776
|
if (!c)
|
|
5777
5777
|
continue;
|
|
5778
5778
|
let u = d.parentElement;
|
|
5779
5779
|
for (; u && u !== c.body; ) {
|
|
5780
5780
|
for (let f of u.children)
|
|
5781
|
-
a.some((p) => f.contains(p)) || o.add(
|
|
5781
|
+
a.some((p) => f.contains(p)) || o.add(Mt(f));
|
|
5782
5782
|
u = u.parentElement;
|
|
5783
5783
|
}
|
|
5784
5784
|
}
|
|
5785
5785
|
return o.dispose;
|
|
5786
5786
|
}, [n, e, r]);
|
|
5787
5787
|
}
|
|
5788
|
-
function
|
|
5788
|
+
function rn(e, r, n = !0) {
|
|
5789
5789
|
let t = Ce((s) => {
|
|
5790
5790
|
let o = s.getBoundingClientRect();
|
|
5791
5791
|
o.x === 0 && o.y === 0 && o.width === 0 && o.height === 0 && r();
|
|
@@ -5809,17 +5809,17 @@ function en(e, r, n = !0) {
|
|
|
5809
5809
|
}, [e, t, n]);
|
|
5810
5810
|
}
|
|
5811
5811
|
let Br = ["[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(","), ga = ["[data-autofocus]"].map((e) => `${e}:not([tabindex='-1'])`).join(",");
|
|
5812
|
-
var
|
|
5812
|
+
var Me = ((e) => (e[e.First = 1] = "First", e[e.Previous = 2] = "Previous", e[e.Next = 4] = "Next", e[e.Last = 8] = "Last", e[e.WrapAround = 16] = "WrapAround", e[e.NoScroll = 32] = "NoScroll", e[e.AutoFocus = 64] = "AutoFocus", e))(Me || {}), zr = ((e) => (e[e.Error = 0] = "Error", e[e.Overflow = 1] = "Overflow", e[e.Success = 2] = "Success", e[e.Underflow = 3] = "Underflow", e))(zr || {}), va = ((e) => (e[e.Previous = -1] = "Previous", e[e.Next = 1] = "Next", e))(va || {});
|
|
5813
5813
|
function ba(e = document.body) {
|
|
5814
5814
|
return e == null ? [] : Array.from(e.querySelectorAll(Br)).sort((r, n) => Math.sign((r.tabIndex || Number.MAX_SAFE_INTEGER) - (n.tabIndex || Number.MAX_SAFE_INTEGER)));
|
|
5815
5815
|
}
|
|
5816
5816
|
function xa(e = document.body) {
|
|
5817
5817
|
return e == null ? [] : Array.from(e.querySelectorAll(ga)).sort((r, n) => Math.sign((r.tabIndex || Number.MAX_SAFE_INTEGER) - (n.tabIndex || Number.MAX_SAFE_INTEGER)));
|
|
5818
5818
|
}
|
|
5819
|
-
var
|
|
5819
|
+
var tn = ((e) => (e[e.Strict = 0] = "Strict", e[e.Loose = 1] = "Loose", e))(tn || {});
|
|
5820
5820
|
function Ca(e, r = 0) {
|
|
5821
5821
|
var n;
|
|
5822
|
-
return e === ((n =
|
|
5822
|
+
return e === ((n = Xr(e)) == null ? void 0 : n.body) ? !1 : z(r, { 0() {
|
|
5823
5823
|
return e.matches(Br);
|
|
5824
5824
|
}, 1() {
|
|
5825
5825
|
let t = e;
|
|
@@ -5837,7 +5837,7 @@ typeof window != "undefined" && typeof document != "undefined" && (document.addE
|
|
|
5837
5837
|
}, !0), document.addEventListener("click", (e) => {
|
|
5838
5838
|
e.detail === 1 ? delete document.documentElement.dataset.headlessuiFocusVisible : e.detail === 0 && (document.documentElement.dataset.headlessuiFocusVisible = "");
|
|
5839
5839
|
}, !0));
|
|
5840
|
-
function
|
|
5840
|
+
function Te(e) {
|
|
5841
5841
|
e == null || e.focus({ preventScroll: !0 });
|
|
5842
5842
|
}
|
|
5843
5843
|
let ka = ["textarea", "input"].join(",");
|
|
@@ -5890,14 +5890,14 @@ function lr(e, r, { sorted: n = !0, relativeTo: t = null, skipElements: s = [] }
|
|
|
5890
5890
|
} while (m !== o.activeElement);
|
|
5891
5891
|
return r & 6 && ya(m) && m.select(), 2;
|
|
5892
5892
|
}
|
|
5893
|
-
function
|
|
5893
|
+
function nn() {
|
|
5894
5894
|
return /iPhone/gi.test(window.navigator.platform) || /Mac/gi.test(window.navigator.platform) && window.navigator.maxTouchPoints > 0;
|
|
5895
5895
|
}
|
|
5896
5896
|
function Ea() {
|
|
5897
5897
|
return /Android/gi.test(window.navigator.userAgent);
|
|
5898
5898
|
}
|
|
5899
5899
|
function La() {
|
|
5900
|
-
return
|
|
5900
|
+
return nn() || Ea();
|
|
5901
5901
|
}
|
|
5902
5902
|
function xr(e, r, n) {
|
|
5903
5903
|
let t = Ce(r);
|
|
@@ -5908,7 +5908,7 @@ function xr(e, r, n) {
|
|
|
5908
5908
|
return document.addEventListener(e, s, n), () => document.removeEventListener(e, s, n);
|
|
5909
5909
|
}, [e, n]);
|
|
5910
5910
|
}
|
|
5911
|
-
function
|
|
5911
|
+
function sn(e, r, n) {
|
|
5912
5912
|
let t = Ce(r);
|
|
5913
5913
|
oe(() => {
|
|
5914
5914
|
function s(o) {
|
|
@@ -5940,7 +5940,7 @@ function $a(e, r, n = !0) {
|
|
|
5940
5940
|
if (p != null && p.contains(c) || a.composed && a.composedPath().includes(p))
|
|
5941
5941
|
return;
|
|
5942
5942
|
}
|
|
5943
|
-
return !Ca(c,
|
|
5943
|
+
return !Ca(c, tn.Loose) && c.tabIndex !== -1 && a.preventDefault(), r(a, c);
|
|
5944
5944
|
}
|
|
5945
5945
|
let o = R(null);
|
|
5946
5946
|
xr("pointerdown", (a) => {
|
|
@@ -5951,12 +5951,12 @@ function $a(e, r, n = !0) {
|
|
|
5951
5951
|
t.current && (o.current = ((c = (d = a.composedPath) == null ? void 0 : d.call(a)) == null ? void 0 : c[0]) || a.target);
|
|
5952
5952
|
}, !0), xr("click", (a) => {
|
|
5953
5953
|
La() || o.current && (s(a, () => o.current), o.current = null);
|
|
5954
|
-
}, !0), xr("touchend", (a) => s(a, () => a.target instanceof HTMLElement ? a.target : null), !0),
|
|
5954
|
+
}, !0), xr("touchend", (a) => s(a, () => a.target instanceof HTMLElement ? a.target : null), !0), sn("blur", (a) => s(a, () => window.document.activeElement instanceof HTMLIFrameElement ? window.document.activeElement : null), !0);
|
|
5955
5955
|
}
|
|
5956
5956
|
function dr(...e) {
|
|
5957
|
-
return ae(() =>
|
|
5957
|
+
return ae(() => Xr(...e), [...e]);
|
|
5958
5958
|
}
|
|
5959
|
-
function
|
|
5959
|
+
function on(e, r, n, t) {
|
|
5960
5960
|
let s = Ce(n);
|
|
5961
5961
|
oe(() => {
|
|
5962
5962
|
e = e != null ? e : window;
|
|
@@ -5966,10 +5966,10 @@ function sn(e, r, n, t) {
|
|
|
5966
5966
|
return e.addEventListener(r, o, t), () => e.removeEventListener(r, o, t);
|
|
5967
5967
|
}, [e, r, t]);
|
|
5968
5968
|
}
|
|
5969
|
-
function
|
|
5969
|
+
function Ma(e) {
|
|
5970
5970
|
return Gn(e.subscribe, e.getSnapshot, e.getSnapshot);
|
|
5971
5971
|
}
|
|
5972
|
-
function
|
|
5972
|
+
function Ta(e, r) {
|
|
5973
5973
|
let n = e(), t = /* @__PURE__ */ new Set();
|
|
5974
5974
|
return { getSnapshot() {
|
|
5975
5975
|
return n;
|
|
@@ -5992,7 +5992,7 @@ function Sa() {
|
|
|
5992
5992
|
} };
|
|
5993
5993
|
}
|
|
5994
5994
|
function Na() {
|
|
5995
|
-
return
|
|
5995
|
+
return nn() ? { before({ doc: e, d: r, meta: n }) {
|
|
5996
5996
|
function t(s) {
|
|
5997
5997
|
return n.containers.flatMap((o) => o()).some((o) => o.contains(s));
|
|
5998
5998
|
}
|
|
@@ -6053,7 +6053,7 @@ function Aa(e) {
|
|
|
6053
6053
|
Object.assign(r, n(r));
|
|
6054
6054
|
return r;
|
|
6055
6055
|
}
|
|
6056
|
-
let We =
|
|
6056
|
+
let We = Ta(() => /* @__PURE__ */ new Map(), { PUSH(e, r) {
|
|
6057
6057
|
var n;
|
|
6058
6058
|
let t = (n = this.get(e)) != null ? n : { doc: e, count: 0, d: Oe(), meta: /* @__PURE__ */ new Set() };
|
|
6059
6059
|
return t.count++, t.meta.add(r), this.set(e, t), this;
|
|
@@ -6078,8 +6078,8 @@ We.subscribe(() => {
|
|
|
6078
6078
|
}
|
|
6079
6079
|
});
|
|
6080
6080
|
function Pa(e, r, n = () => ({ containers: [] })) {
|
|
6081
|
-
let t =
|
|
6082
|
-
return
|
|
6081
|
+
let t = Ma(We), s = e ? t.get(e) : void 0, o = s ? s.count > 0 : !1;
|
|
6082
|
+
return K(() => {
|
|
6083
6083
|
if (!(!e || !r))
|
|
6084
6084
|
return We.dispatch("PUSH", e, n), () => We.dispatch("POP", e, n);
|
|
6085
6085
|
}, [r, e]), o;
|
|
@@ -6090,7 +6090,7 @@ function Fa(e, r, n = () => [document.body]) {
|
|
|
6090
6090
|
return { containers: [...(s = t.containers) != null ? s : [], n] };
|
|
6091
6091
|
});
|
|
6092
6092
|
}
|
|
6093
|
-
function
|
|
6093
|
+
function rt(e, r) {
|
|
6094
6094
|
let n = R([]), t = P(e);
|
|
6095
6095
|
oe(() => {
|
|
6096
6096
|
let s = [...n.current];
|
|
@@ -6101,14 +6101,14 @@ function et(e, r) {
|
|
|
6101
6101
|
}
|
|
6102
6102
|
}, [t, ...r]);
|
|
6103
6103
|
}
|
|
6104
|
-
let
|
|
6105
|
-
|
|
6104
|
+
let tt = ce(null);
|
|
6105
|
+
tt.displayName = "OpenClosedContext";
|
|
6106
6106
|
var se = ((e) => (e[e.Open = 1] = "Open", e[e.Closed = 2] = "Closed", e[e.Closing = 4] = "Closing", e[e.Opening = 8] = "Opening", e))(se || {});
|
|
6107
|
-
function
|
|
6108
|
-
return re(
|
|
6107
|
+
function nt() {
|
|
6108
|
+
return re(tt);
|
|
6109
6109
|
}
|
|
6110
6110
|
function Oa({ value: e, children: r }) {
|
|
6111
|
-
return
|
|
6111
|
+
return k.createElement(tt.Provider, { value: e }, r);
|
|
6112
6112
|
}
|
|
6113
6113
|
function _a(e) {
|
|
6114
6114
|
function r() {
|
|
@@ -6123,7 +6123,7 @@ _a(() => {
|
|
|
6123
6123
|
}
|
|
6124
6124
|
window.addEventListener("click", e, { capture: !0 }), window.addEventListener("mousedown", e, { capture: !0 }), window.addEventListener("focus", e, { capture: !0 }), document.body.addEventListener("click", e, { capture: !0 }), document.body.addEventListener("mousedown", e, { capture: !0 }), document.body.addEventListener("focus", e, { capture: !0 });
|
|
6125
6125
|
});
|
|
6126
|
-
function
|
|
6126
|
+
function an(e) {
|
|
6127
6127
|
let r = P(e), n = R(!1);
|
|
6128
6128
|
oe(() => (n.current = !1, () => {
|
|
6129
6129
|
n.current = !0, Er(() => {
|
|
@@ -6142,15 +6142,15 @@ function cr() {
|
|
|
6142
6142
|
r !== !0 && n(!0);
|
|
6143
6143
|
}, [r]), or.useEffect(() => Ie.handoff(), []), e ? !1 : r;
|
|
6144
6144
|
}
|
|
6145
|
-
let
|
|
6145
|
+
let ln = ce(!1);
|
|
6146
6146
|
function Ia() {
|
|
6147
|
-
return re(
|
|
6147
|
+
return re(ln);
|
|
6148
6148
|
}
|
|
6149
|
-
function
|
|
6150
|
-
return
|
|
6149
|
+
function St(e) {
|
|
6150
|
+
return k.createElement(ln.Provider, { value: e.force }, e.children);
|
|
6151
6151
|
}
|
|
6152
6152
|
function Va(e) {
|
|
6153
|
-
let r = Ia(), n = re(
|
|
6153
|
+
let r = Ia(), n = re(cn), t = dr(e), [s, o] = ge(() => {
|
|
6154
6154
|
var a;
|
|
6155
6155
|
if (!r && n !== null)
|
|
6156
6156
|
return (a = n.current) != null ? a : null;
|
|
@@ -6170,31 +6170,31 @@ function Va(e) {
|
|
|
6170
6170
|
r || n !== null && o(n.current);
|
|
6171
6171
|
}, [n, o, r]), s;
|
|
6172
6172
|
}
|
|
6173
|
-
let
|
|
6173
|
+
let dn = de, Da = ue(function(e, r) {
|
|
6174
6174
|
let n = e, t = R(null), s = we(ia((f) => {
|
|
6175
6175
|
t.current = f;
|
|
6176
6176
|
}), r), o = dr(t), a = Va(t), [d] = ge(() => {
|
|
6177
6177
|
var f;
|
|
6178
6178
|
return Ie.isServer ? null : (f = o == null ? void 0 : o.createElement("div")) != null ? f : null;
|
|
6179
6179
|
}), c = re(Ur), u = cr();
|
|
6180
|
-
return
|
|
6180
|
+
return K(() => {
|
|
6181
6181
|
!a || !d || a.contains(d) || (d.setAttribute("data-headlessui-portal", ""), a.appendChild(d));
|
|
6182
|
-
}, [a, d]),
|
|
6182
|
+
}, [a, d]), K(() => {
|
|
6183
6183
|
if (d && c)
|
|
6184
6184
|
return c.register(d);
|
|
6185
|
-
}, [c, d]),
|
|
6185
|
+
}, [c, d]), an(() => {
|
|
6186
6186
|
var f;
|
|
6187
6187
|
!a || !d || (d instanceof Node && a.contains(d) && a.removeChild(d), a.childNodes.length <= 0 && ((f = a.parentElement) == null || f.removeChild(a)));
|
|
6188
|
-
}), u ? !a || !d ? null :
|
|
6188
|
+
}), u ? !a || !d ? null : Rt(ve({ ourProps: { ref: s }, theirProps: n, slot: {}, defaultTag: dn, name: "Portal" }), d) : null;
|
|
6189
6189
|
});
|
|
6190
6190
|
function Ha(e, r) {
|
|
6191
6191
|
let n = we(r), { enabled: t = !0, ...s } = e;
|
|
6192
|
-
return t ?
|
|
6192
|
+
return t ? k.createElement(Da, { ...s, ref: n }) : ve({ ourProps: { ref: n }, theirProps: s, slot: {}, defaultTag: dn, name: "Portal" });
|
|
6193
6193
|
}
|
|
6194
|
-
let Ba = de,
|
|
6194
|
+
let Ba = de, cn = ce(null);
|
|
6195
6195
|
function za(e, r) {
|
|
6196
6196
|
let { target: n, ...t } = e, s = { ref: we(r) };
|
|
6197
|
-
return
|
|
6197
|
+
return k.createElement(cn.Provider, { value: n }, ve({ ourProps: s, theirProps: t, defaultTag: Ba, name: "Popover.Group" }));
|
|
6198
6198
|
}
|
|
6199
6199
|
let Ur = ce(null);
|
|
6200
6200
|
function Ua() {
|
|
@@ -6203,14 +6203,14 @@ function Ua() {
|
|
|
6203
6203
|
a !== -1 && r.current.splice(a, 1), e && e.unregister(o);
|
|
6204
6204
|
}), s = ae(() => ({ register: n, unregister: t, portals: r }), [n, t, r]);
|
|
6205
6205
|
return [r, ae(() => function({ children: o }) {
|
|
6206
|
-
return
|
|
6206
|
+
return k.createElement(Ur.Provider, { value: s }, o);
|
|
6207
6207
|
}, [s])];
|
|
6208
6208
|
}
|
|
6209
|
-
let Ga = ue(Ha), Ya = ue(za),
|
|
6209
|
+
let Ga = ue(Ha), Ya = ue(za), Nt = Object.assign(Ga, { Group: Ya });
|
|
6210
6210
|
function Za() {
|
|
6211
6211
|
var e;
|
|
6212
6212
|
let [r] = ge(() => typeof window != "undefined" && typeof window.matchMedia == "function" ? window.matchMedia("(pointer: coarse)") : null), [n, t] = ge((e = r == null ? void 0 : r.matches) != null ? e : !1);
|
|
6213
|
-
return
|
|
6213
|
+
return K(() => {
|
|
6214
6214
|
if (!r)
|
|
6215
6215
|
return;
|
|
6216
6216
|
function s(o) {
|
|
@@ -6234,41 +6234,41 @@ function qa({ defaultContainers: e = [], portals: r, mainTreeNodeRef: n } = {})
|
|
|
6234
6234
|
return f;
|
|
6235
6235
|
});
|
|
6236
6236
|
return { resolveContainers: a, contains: P((d) => a().some((c) => c.contains(d))), mainTreeNodeRef: s, MainTreeNode: ae(() => function() {
|
|
6237
|
-
return n != null ? null :
|
|
6237
|
+
return n != null ? null : k.createElement(Dr, { features: wr.Hidden, ref: s });
|
|
6238
6238
|
}, [s, n]) };
|
|
6239
6239
|
}
|
|
6240
|
-
let
|
|
6240
|
+
let st = ce(() => {
|
|
6241
6241
|
});
|
|
6242
|
-
|
|
6242
|
+
st.displayName = "StackContext";
|
|
6243
6243
|
var Gr = ((e) => (e[e.Add = 0] = "Add", e[e.Remove = 1] = "Remove", e))(Gr || {});
|
|
6244
6244
|
function Ka() {
|
|
6245
|
-
return re(
|
|
6245
|
+
return re(st);
|
|
6246
6246
|
}
|
|
6247
6247
|
function Ja({ children: e, onUpdate: r, type: n, element: t, enabled: s }) {
|
|
6248
6248
|
let o = Ka(), a = P((...d) => {
|
|
6249
6249
|
r == null || r(...d), o(...d);
|
|
6250
6250
|
});
|
|
6251
|
-
return
|
|
6251
|
+
return K(() => {
|
|
6252
6252
|
let d = s === void 0 || s === !0;
|
|
6253
6253
|
return d && a(0, n, t), () => {
|
|
6254
6254
|
d && a(1, n, t);
|
|
6255
6255
|
};
|
|
6256
|
-
}, [a, n, t, s]),
|
|
6256
|
+
}, [a, n, t, s]), k.createElement(st.Provider, { value: a }, e);
|
|
6257
6257
|
}
|
|
6258
6258
|
function ur() {
|
|
6259
6259
|
let e = R(!1);
|
|
6260
|
-
return
|
|
6260
|
+
return K(() => (e.current = !0, () => {
|
|
6261
6261
|
e.current = !1;
|
|
6262
6262
|
}), []), e;
|
|
6263
6263
|
}
|
|
6264
6264
|
var sr = ((e) => (e[e.Forwards = 0] = "Forwards", e[e.Backwards = 1] = "Backwards", e))(sr || {});
|
|
6265
6265
|
function Xa() {
|
|
6266
6266
|
let e = R(0);
|
|
6267
|
-
return
|
|
6267
|
+
return sn("keydown", (r) => {
|
|
6268
6268
|
r.key === "Tab" && (e.current = r.shiftKey ? 1 : 0);
|
|
6269
6269
|
}, !0), e;
|
|
6270
6270
|
}
|
|
6271
|
-
function
|
|
6271
|
+
function un(e) {
|
|
6272
6272
|
if (!e)
|
|
6273
6273
|
return /* @__PURE__ */ new Set();
|
|
6274
6274
|
if (typeof e == "function")
|
|
@@ -6289,31 +6289,31 @@ function ei(e, r) {
|
|
|
6289
6289
|
ai({ ownerDocument: u, container: n, containers: a, previousActiveElement: f }, !!(d & 8));
|
|
6290
6290
|
let p = Xa(), m = P((b) => {
|
|
6291
6291
|
let w = n.current;
|
|
6292
|
-
w && ((
|
|
6292
|
+
w && ((j) => j())(() => {
|
|
6293
6293
|
z(p.current, { [sr.Forwards]: () => {
|
|
6294
|
-
lr(w,
|
|
6294
|
+
lr(w, Me.First, { skipElements: [b.relatedTarget, o] });
|
|
6295
6295
|
}, [sr.Backwards]: () => {
|
|
6296
|
-
lr(w,
|
|
6296
|
+
lr(w, Me.Last, { skipElements: [b.relatedTarget, o] });
|
|
6297
6297
|
} });
|
|
6298
6298
|
});
|
|
6299
|
-
}), v =
|
|
6299
|
+
}), v = Qr(), x = R(!1), C = { ref: t, onKeyDown(b) {
|
|
6300
6300
|
b.key == "Tab" && (x.current = !0, v.requestAnimationFrame(() => {
|
|
6301
6301
|
x.current = !1;
|
|
6302
6302
|
}));
|
|
6303
6303
|
}, onBlur(b) {
|
|
6304
6304
|
if (!(d & 8))
|
|
6305
6305
|
return;
|
|
6306
|
-
let w =
|
|
6306
|
+
let w = un(a);
|
|
6307
6307
|
n.current instanceof HTMLElement && w.add(n.current);
|
|
6308
|
-
let
|
|
6309
|
-
|
|
6308
|
+
let j = b.relatedTarget;
|
|
6309
|
+
j instanceof HTMLElement && j.dataset.headlessuiFocusGuard !== "true" && (fn(w, j) || (x.current ? lr(n.current, z(p.current, { [sr.Forwards]: () => Me.Next, [sr.Backwards]: () => Me.Previous }) | Me.WrapAround, { relativeTo: b.target }) : b.target instanceof HTMLElement && Te(b.target)));
|
|
6310
6310
|
} };
|
|
6311
|
-
return
|
|
6311
|
+
return k.createElement(k.Fragment, null, !!(d & 4) && k.createElement(Dr, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: m, features: wr.Focusable }), ve({ ourProps: C, theirProps: c, defaultTag: Qa, name: "FocusTrap" }), !!(d & 4) && k.createElement(Dr, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: m, features: wr.Focusable }));
|
|
6312
6312
|
}
|
|
6313
6313
|
let ri = ue(ei), ti = Object.assign(ri, { features: $e });
|
|
6314
6314
|
function ni(e = !0) {
|
|
6315
6315
|
let r = R(Pe.slice());
|
|
6316
|
-
return
|
|
6316
|
+
return rt(([n], [t]) => {
|
|
6317
6317
|
t === !0 && n === !1 && Er(() => {
|
|
6318
6318
|
r.current.splice(0);
|
|
6319
6319
|
}), t === !1 && n === !0 && (r.current = Pe.slice());
|
|
@@ -6324,17 +6324,17 @@ function ni(e = !0) {
|
|
|
6324
6324
|
}
|
|
6325
6325
|
function si({ ownerDocument: e }, r) {
|
|
6326
6326
|
let n = ni(r);
|
|
6327
|
-
|
|
6328
|
-
r || (e == null ? void 0 : e.activeElement) === (e == null ? void 0 : e.body) &&
|
|
6329
|
-
}, [r]),
|
|
6330
|
-
r &&
|
|
6327
|
+
rt(() => {
|
|
6328
|
+
r || (e == null ? void 0 : e.activeElement) === (e == null ? void 0 : e.body) && Te(n());
|
|
6329
|
+
}, [r]), an(() => {
|
|
6330
|
+
r && Te(n());
|
|
6331
6331
|
});
|
|
6332
6332
|
}
|
|
6333
6333
|
function oi({ ownerDocument: e, container: r, initialFocus: n, initialFocusFallback: t }, s) {
|
|
6334
6334
|
let o = !!(s & 2), a = R(null), d = ur();
|
|
6335
|
-
return
|
|
6335
|
+
return rt(() => {
|
|
6336
6336
|
if (!o) {
|
|
6337
|
-
t != null && t.current &&
|
|
6337
|
+
t != null && t.current && Te(t.current);
|
|
6338
6338
|
return;
|
|
6339
6339
|
}
|
|
6340
6340
|
let c = r.current;
|
|
@@ -6352,14 +6352,14 @@ function oi({ ownerDocument: e, container: r, initialFocus: n, initialFocusFallb
|
|
|
6352
6352
|
return;
|
|
6353
6353
|
}
|
|
6354
6354
|
if (n != null && n.current)
|
|
6355
|
-
|
|
6355
|
+
Te(n.current);
|
|
6356
6356
|
else {
|
|
6357
6357
|
if (s & 32) {
|
|
6358
|
-
if (lr(c,
|
|
6358
|
+
if (lr(c, Me.First | Me.AutoFocus) !== zr.Error)
|
|
6359
6359
|
return;
|
|
6360
|
-
} else if (lr(c,
|
|
6360
|
+
} else if (lr(c, Me.First) !== zr.Error)
|
|
6361
6361
|
return;
|
|
6362
|
-
if (t != null && t.current && (
|
|
6362
|
+
if (t != null && t.current && (Te(t.current), (e == null ? void 0 : e.activeElement) === t.current))
|
|
6363
6363
|
return;
|
|
6364
6364
|
console.warn("There are no focusable elements inside the <FocusTrap />");
|
|
6365
6365
|
}
|
|
@@ -6369,19 +6369,19 @@ function oi({ ownerDocument: e, container: r, initialFocus: n, initialFocusFallb
|
|
|
6369
6369
|
}
|
|
6370
6370
|
function ai({ ownerDocument: e, container: r, containers: n, previousActiveElement: t }, s) {
|
|
6371
6371
|
let o = ur();
|
|
6372
|
-
|
|
6372
|
+
on(e == null ? void 0 : e.defaultView, "focus", (a) => {
|
|
6373
6373
|
if (!s || !o.current)
|
|
6374
6374
|
return;
|
|
6375
|
-
let d =
|
|
6375
|
+
let d = un(n);
|
|
6376
6376
|
r.current instanceof HTMLElement && d.add(r.current);
|
|
6377
6377
|
let c = t.current;
|
|
6378
6378
|
if (!c)
|
|
6379
6379
|
return;
|
|
6380
6380
|
let u = a.target;
|
|
6381
|
-
u && u instanceof HTMLElement ?
|
|
6381
|
+
u && u instanceof HTMLElement ? fn(d, u) ? (t.current = u, Te(u)) : (a.preventDefault(), a.stopPropagation(), Te(c)) : Te(t.current);
|
|
6382
6382
|
}, !0);
|
|
6383
6383
|
}
|
|
6384
|
-
function
|
|
6384
|
+
function fn(e, r) {
|
|
6385
6385
|
for (let n of e)
|
|
6386
6386
|
if (n.contains(r))
|
|
6387
6387
|
return !0;
|
|
@@ -6392,11 +6392,11 @@ let di = { 0(e, r) {
|
|
|
6392
6392
|
return e.titleId === r.id ? e : { ...e, titleId: r.id };
|
|
6393
6393
|
} }, kr = ce(null);
|
|
6394
6394
|
kr.displayName = "DialogContext";
|
|
6395
|
-
function
|
|
6395
|
+
function ot(e) {
|
|
6396
6396
|
let r = re(kr);
|
|
6397
6397
|
if (r === null) {
|
|
6398
6398
|
let n = new Error(`<${e} /> is missing a parent <Dialog /> component.`);
|
|
6399
|
-
throw Error.captureStackTrace && Error.captureStackTrace(n,
|
|
6399
|
+
throw Error.captureStackTrace && Error.captureStackTrace(n, ot), n;
|
|
6400
6400
|
}
|
|
6401
6401
|
return r;
|
|
6402
6402
|
}
|
|
@@ -6409,12 +6409,12 @@ function pi(e, r) {
|
|
|
6409
6409
|
d = function() {
|
|
6410
6410
|
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");
|
|
6411
6411
|
}();
|
|
6412
|
-
let x =
|
|
6412
|
+
let x = nt();
|
|
6413
6413
|
s === void 0 && x !== null && (s = (x & se.Open) === se.Open);
|
|
6414
|
-
let C = R(null), b = we(C, r), w = dr(C),
|
|
6415
|
-
if (!
|
|
6414
|
+
let C = R(null), b = we(C, r), w = dr(C), j = e.hasOwnProperty("open") || x !== null, fe = e.hasOwnProperty("onClose");
|
|
6415
|
+
if (!j && !fe)
|
|
6416
6416
|
throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");
|
|
6417
|
-
if (!
|
|
6417
|
+
if (!j)
|
|
6418
6418
|
throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");
|
|
6419
6419
|
if (!fe)
|
|
6420
6420
|
throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");
|
|
@@ -6422,10 +6422,10 @@ function pi(e, r) {
|
|
|
6422
6422
|
throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${s}`);
|
|
6423
6423
|
if (typeof o != "function")
|
|
6424
6424
|
throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${o}`);
|
|
6425
|
-
let N = s ? 0 : 1, [
|
|
6425
|
+
let N = s ? 0 : 1, [Y, ke] = Yn(ci, { titleId: null, descriptionId: null, panelRef: Zn() }), J = P(() => o(!1)), Z = P((O) => ke({ type: 0, id: O })), X = cr() ? N === 0 : !1, te = p > 1, ie = re(kr) !== null, [$, F] = Ua(), V = { get current() {
|
|
6426
6426
|
var O;
|
|
6427
|
-
return (O =
|
|
6428
|
-
} }, { resolveContainers: U, mainTreeNodeRef: pe, MainTreeNode: be } = qa({ portals: $, defaultContainers: [
|
|
6427
|
+
return (O = Y.panelRef.current) != null ? O : C.current;
|
|
6428
|
+
} }, { resolveContainers: U, mainTreeNodeRef: pe, MainTreeNode: be } = qa({ portals: $, defaultContainers: [V] }), he = te ? "parent" : "leaf", B = x !== null ? (x & se.Closing) === se.Closing : !1, ye = te || B ? !1 : X;
|
|
6429
6429
|
ma({ allowed: P(() => {
|
|
6430
6430
|
var O, xe;
|
|
6431
6431
|
return [(xe = (O = C.current) == null ? void 0 : O.closest("[data-headlessui-portal]")) != null ? xe : null];
|
|
@@ -6436,29 +6436,29 @@ function pi(e, r) {
|
|
|
6436
6436
|
O.preventDefault(), J();
|
|
6437
6437
|
}, !(!X || te));
|
|
6438
6438
|
let Q = !(te || N !== 0);
|
|
6439
|
-
|
|
6440
|
-
Q && (O.defaultPrevented || O.key ===
|
|
6441
|
-
}), Fa(w, u ? !1 : !(B || N !== 0 || ie), U),
|
|
6442
|
-
let [ne, Ke] = la(), ee = ae(() => [{ dialogState: N, close: J, setTitleId:
|
|
6443
|
-
return c && (je |= $e.AutoFocus), Je || (je &= ~$e.InitialFocus), u && (je = $e.None),
|
|
6439
|
+
on(w == null ? void 0 : w.defaultView, "keydown", (O) => {
|
|
6440
|
+
Q && (O.defaultPrevented || O.key === en.Escape && (O.preventDefault(), O.stopPropagation(), J()));
|
|
6441
|
+
}), Fa(w, u ? !1 : !(B || N !== 0 || ie), U), rn(C, J, N === 0);
|
|
6442
|
+
let [ne, Ke] = la(), ee = ae(() => [{ dialogState: N, close: J, setTitleId: Z }, Y], [N, Y, J, Z]), D = ae(() => ({ open: N === 0 }), [N]), H = { ref: b, id: t, role: d, tabIndex: -1, "aria-modal": N === 0 ? !0 : void 0, "aria-labelledby": Y.titleId, "aria-describedby": ne }, Je = !Za(), je = X ? z(he, { parent: $e.RestoreFocus, leaf: $e.All & ~$e.FocusLock }) : $e.None;
|
|
6443
|
+
return c && (je |= $e.AutoFocus), Je || (je &= ~$e.InitialFocus), u && (je = $e.None), k.createElement(Ja, { type: "Dialog", enabled: N === 0, element: C, onUpdate: P((O, xe) => {
|
|
6444
6444
|
xe === "Dialog" && z(O, { [Gr.Add]: () => m((Xe) => Xe + 1), [Gr.Remove]: () => m((Xe) => Xe - 1) });
|
|
6445
|
-
}) },
|
|
6445
|
+
}) }, k.createElement(St, { force: !0 }, k.createElement(Nt, null, k.createElement(kr.Provider, { value: ee }, k.createElement(Nt.Group, { target: C }, k.createElement(St, { force: !1 }, k.createElement(Ke, { slot: D, name: "Dialog.Description" }, k.createElement(F, null, k.createElement(ti, { initialFocus: a, initialFocusFallback: C, containers: U, features: je }, k.createElement(ha, { value: J }, ve({ ourProps: H, theirProps: f, slot: D, defaultTag: ui, features: fi, visible: N === 0, name: "Dialog" })))))))))), k.createElement(aa, null, k.createElement(be, null)));
|
|
6446
6446
|
}
|
|
6447
6447
|
let hi = "div";
|
|
6448
6448
|
function mi(e, r) {
|
|
6449
|
-
let n = yr(), { id: t = `headlessui-dialog-panel-${n}`, ...s } = e, [{ dialogState: o }, a] =
|
|
6449
|
+
let n = yr(), { id: t = `headlessui-dialog-panel-${n}`, ...s } = e, [{ dialogState: o }, a] = ot("Dialog.Panel"), d = we(r, a.panelRef), c = ae(() => ({ open: o === 0 }), [o]), u = P((f) => {
|
|
6450
6450
|
f.stopPropagation();
|
|
6451
6451
|
});
|
|
6452
6452
|
return ve({ ourProps: { ref: d, id: t, onClick: u }, theirProps: s, slot: c, defaultTag: hi, name: "Dialog.Panel" });
|
|
6453
6453
|
}
|
|
6454
6454
|
let gi = "h2";
|
|
6455
6455
|
function vi(e, r) {
|
|
6456
|
-
let n = yr(), { id: t = `headlessui-dialog-title-${n}`, ...s } = e, [{ dialogState: o, setTitleId: a }] =
|
|
6456
|
+
let n = yr(), { id: t = `headlessui-dialog-title-${n}`, ...s } = e, [{ dialogState: o, setTitleId: a }] = ot("Dialog.Title"), d = we(r);
|
|
6457
6457
|
oe(() => (a(t), () => a(null)), [t, a]);
|
|
6458
6458
|
let c = ae(() => ({ open: o === 0 }), [o]);
|
|
6459
6459
|
return ve({ ourProps: { ref: d, id: t }, theirProps: s, slot: c, defaultTag: gi, name: "Dialog.Title" });
|
|
6460
6460
|
}
|
|
6461
|
-
let bi = ue(pi),
|
|
6461
|
+
let bi = ue(pi), pn = ue(mi), xi = ue(vi), Ci = Object.assign(bi, { Panel: pn, Title: xi, Description: fa });
|
|
6462
6462
|
function wi(e = 0) {
|
|
6463
6463
|
let [r, n] = ge(e), t = ur(), s = mr((c) => {
|
|
6464
6464
|
t.current && n((u) => u | c);
|
|
@@ -6469,7 +6469,7 @@ function wi(e = 0) {
|
|
|
6469
6469
|
}, [n]);
|
|
6470
6470
|
return { flags: r, addFlag: s, hasFlag: o, removeFlag: a, toggleFlag: d };
|
|
6471
6471
|
}
|
|
6472
|
-
function
|
|
6472
|
+
function hn(e) {
|
|
6473
6473
|
let r = { called: !1 };
|
|
6474
6474
|
return (...n) => {
|
|
6475
6475
|
if (!r.called)
|
|
@@ -6483,7 +6483,7 @@ function _r(e, ...r) {
|
|
|
6483
6483
|
e && r.length > 0 && e.classList.remove(...r);
|
|
6484
6484
|
}
|
|
6485
6485
|
function ki(e, r) {
|
|
6486
|
-
let n =
|
|
6486
|
+
let n = hn(r), t = Oe();
|
|
6487
6487
|
if (!e)
|
|
6488
6488
|
return t.dispose;
|
|
6489
6489
|
let { transitionDuration: s, transitionDelay: o } = getComputedStyle(e), [a, d] = [s, o].map((u) => {
|
|
@@ -6509,7 +6509,7 @@ function ki(e, r) {
|
|
|
6509
6509
|
return t.dispose;
|
|
6510
6510
|
}
|
|
6511
6511
|
function yi(e, { direction: r, done: n, classes: t, inFlight: s }) {
|
|
6512
|
-
let o = Oe(), a = n !== void 0 ?
|
|
6512
|
+
let o = Oe(), a = n !== void 0 ? hn(n) : () => {
|
|
6513
6513
|
};
|
|
6514
6514
|
r === "enter" && (e.removeAttribute("hidden"), e.style.display = "");
|
|
6515
6515
|
let d = z(r, { enter: () => t.enter, leave: () => t.leave }), c = z(r, { enter: () => t.enterTo, leave: () => t.leaveTo }), u = z(r, { enter: () => t.enterFrom, leave: () => t.leaveFrom });
|
|
@@ -6528,8 +6528,8 @@ function ji(e, { inFlight: r, prepare: n }) {
|
|
|
6528
6528
|
e.style.transition = "none", n(), e.offsetHeight, e.style.transition = t;
|
|
6529
6529
|
}
|
|
6530
6530
|
function Ei({ container: e, direction: r, classes: n, onStart: t, onStop: s }) {
|
|
6531
|
-
let o = ur(), a =
|
|
6532
|
-
|
|
6531
|
+
let o = ur(), a = Qr(), d = R(!1);
|
|
6532
|
+
K(() => {
|
|
6533
6533
|
if (r === "idle" || !o.current)
|
|
6534
6534
|
return;
|
|
6535
6535
|
t.current(r);
|
|
@@ -6542,9 +6542,9 @@ function Ei({ container: e, direction: r, classes: n, onStart: t, onStop: s }) {
|
|
|
6542
6542
|
function Ae(e = "") {
|
|
6543
6543
|
return e.split(/\s+/).filter((r) => r.length > 1);
|
|
6544
6544
|
}
|
|
6545
|
-
function
|
|
6545
|
+
function mn(e) {
|
|
6546
6546
|
var r;
|
|
6547
|
-
return !!(e.enter || e.enterFrom || e.enterTo || e.leave || e.leaveFrom || e.leaveTo) || ((r = e.as) != null ? r :
|
|
6547
|
+
return !!(e.enter || e.enterFrom || e.enterTo || e.leave || e.leaveFrom || e.leaveTo) || ((r = e.as) != null ? r : vn) !== de || k.Children.count(e.children) === 1;
|
|
6548
6548
|
}
|
|
6549
6549
|
let Lr = ce(null);
|
|
6550
6550
|
Lr.displayName = "TransitionContext";
|
|
@@ -6555,7 +6555,7 @@ function $i() {
|
|
|
6555
6555
|
throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");
|
|
6556
6556
|
return e;
|
|
6557
6557
|
}
|
|
6558
|
-
function
|
|
6558
|
+
function Mi() {
|
|
6559
6559
|
let e = re($r);
|
|
6560
6560
|
if (e === null)
|
|
6561
6561
|
throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");
|
|
@@ -6563,11 +6563,11 @@ function Ti() {
|
|
|
6563
6563
|
}
|
|
6564
6564
|
let $r = ce(null);
|
|
6565
6565
|
$r.displayName = "NestingContext";
|
|
6566
|
-
function
|
|
6567
|
-
return "children" in e ?
|
|
6566
|
+
function Mr(e) {
|
|
6567
|
+
return "children" in e ? Mr(e.children) : e.current.filter(({ el: r }) => r.current !== null).filter(({ state: r }) => r === "visible").length > 0;
|
|
6568
6568
|
}
|
|
6569
|
-
function
|
|
6570
|
-
let n = Ce(e), t = R([]), s = ur(), o =
|
|
6569
|
+
function gn(e, r) {
|
|
6570
|
+
let n = Ce(e), t = R([]), s = ur(), o = Qr(), a = P((v, x = Fe.Hidden) => {
|
|
6571
6571
|
let C = t.current.findIndex(({ el: b }) => b === v);
|
|
6572
6572
|
C !== -1 && (z(x, { [Fe.Unmount]() {
|
|
6573
6573
|
t.current.splice(C, 1);
|
|
@@ -6575,7 +6575,7 @@ function mn(e, r) {
|
|
|
6575
6575
|
t.current[C].state = "hidden";
|
|
6576
6576
|
} }), o.microTask(() => {
|
|
6577
6577
|
var b;
|
|
6578
|
-
!
|
|
6578
|
+
!Mr(t) && s.current && ((b = n.current) == null || b.call(n));
|
|
6579
6579
|
}));
|
|
6580
6580
|
}), d = P((v) => {
|
|
6581
6581
|
let x = t.current.find(({ el: C }) => C === v);
|
|
@@ -6584,7 +6584,7 @@ function mn(e, r) {
|
|
|
6584
6584
|
c.current.splice(0), r && (r.chains.current[x] = r.chains.current[x].filter(([b]) => b !== v)), r == null || r.chains.current[x].push([v, new Promise((b) => {
|
|
6585
6585
|
c.current.push(b);
|
|
6586
6586
|
})]), r == null || r.chains.current[x].push([v, new Promise((b) => {
|
|
6587
|
-
Promise.all(f.current[x].map(([w,
|
|
6587
|
+
Promise.all(f.current[x].map(([w, j]) => j)).then(() => b());
|
|
6588
6588
|
})]), x === "enter" ? u.current = u.current.then(() => r == null ? void 0 : r.wait.current).then(() => C(x)) : C(x);
|
|
6589
6589
|
}), m = P((v, x, C) => {
|
|
6590
6590
|
Promise.all(f.current[x].splice(0).map(([b, w]) => w)).then(() => {
|
|
@@ -6594,79 +6594,79 @@ function mn(e, r) {
|
|
|
6594
6594
|
});
|
|
6595
6595
|
return ae(() => ({ children: t, register: d, unregister: a, onStart: p, onStop: m, wait: u, chains: f }), [d, a, t, p, m, f, u]);
|
|
6596
6596
|
}
|
|
6597
|
-
let
|
|
6598
|
-
function
|
|
6597
|
+
let vn = de, bn = Cr.RenderStrategy;
|
|
6598
|
+
function Ti(e, r) {
|
|
6599
6599
|
var n, t, s;
|
|
6600
|
-
let { beforeEnter: o, afterEnter: a, beforeLeave: d, afterLeave: c, enter: u, enterFrom: f, enterTo: p, entered: m, leave: v, leaveFrom: x, leaveTo: C, ...b } = e, w = R(null),
|
|
6601
|
-
|
|
6600
|
+
let { beforeEnter: o, afterEnter: a, beforeLeave: d, afterLeave: c, enter: u, enterFrom: f, enterTo: p, entered: m, leave: v, leaveFrom: x, leaveTo: C, ...b } = e, w = R(null), j = mn(e), fe = we(...j ? [w, r] : r === null ? [] : [r]), N = (n = b.unmount) == null || n ? Fe.Unmount : Fe.Hidden, { show: Y, appear: ke, initial: J } = $i(), [Z, X] = ge(Y ? "visible" : "hidden"), te = Mi(), { register: ie, unregister: $ } = te;
|
|
6601
|
+
K(() => ie(w), [ie, w]), K(() => {
|
|
6602
6602
|
if (N === Fe.Hidden && w.current) {
|
|
6603
|
-
if (
|
|
6603
|
+
if (Y && Z !== "visible") {
|
|
6604
6604
|
X("visible");
|
|
6605
6605
|
return;
|
|
6606
6606
|
}
|
|
6607
|
-
return z(
|
|
6607
|
+
return z(Z, { hidden: () => $(w), visible: () => ie(w) });
|
|
6608
6608
|
}
|
|
6609
|
-
}, [
|
|
6610
|
-
let F = Ce({ base: Ae(b.className), enter: Ae(u), enterFrom: Ae(f), enterTo: Ae(p), entered: Ae(m), leave: Ae(v), leaveFrom: Ae(x), leaveTo: Ae(C) }),
|
|
6611
|
-
|
|
6612
|
-
if (
|
|
6609
|
+
}, [Z, w, ie, $, Y, N]);
|
|
6610
|
+
let F = Ce({ base: Ae(b.className), enter: Ae(u), enterFrom: Ae(f), enterTo: Ae(p), entered: Ae(m), leave: Ae(v), leaveFrom: Ae(x), leaveTo: Ae(C) }), V = Ce({ beforeEnter: o, afterEnter: a, beforeLeave: d, afterLeave: c }), U = cr();
|
|
6611
|
+
K(() => {
|
|
6612
|
+
if (j && U && Z === "visible" && w.current === null)
|
|
6613
6613
|
throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?");
|
|
6614
|
-
}, [w,
|
|
6615
|
-
let pe = J && !ke, be = ke &&
|
|
6614
|
+
}, [w, Z, U, j]);
|
|
6615
|
+
let pe = J && !ke, be = ke && Y && J, he = be ? "enter" : !U || pe ? "idle" : Y ? "enter" : "leave", B = wi(0), ye = P((ee) => z(ee, { enter: () => {
|
|
6616
6616
|
var D, H;
|
|
6617
|
-
B.addFlag(se.Opening), (H = (D =
|
|
6617
|
+
B.addFlag(se.Opening), (H = (D = V.current).beforeEnter) == null || H.call(D);
|
|
6618
6618
|
}, leave: () => {
|
|
6619
6619
|
var D, H;
|
|
6620
|
-
B.addFlag(se.Closing), (H = (D =
|
|
6620
|
+
B.addFlag(se.Closing), (H = (D = V.current).beforeLeave) == null || H.call(D);
|
|
6621
6621
|
}, idle: () => {
|
|
6622
6622
|
} })), me = P((ee) => z(ee, { enter: () => {
|
|
6623
6623
|
var D, H;
|
|
6624
|
-
B.removeFlag(se.Opening), (H = (D =
|
|
6624
|
+
B.removeFlag(se.Opening), (H = (D = V.current).afterEnter) == null || H.call(D);
|
|
6625
6625
|
}, leave: () => {
|
|
6626
6626
|
var D, H;
|
|
6627
|
-
B.removeFlag(se.Closing), (H = (D =
|
|
6627
|
+
B.removeFlag(se.Closing), (H = (D = V.current).afterLeave) == null || H.call(D);
|
|
6628
6628
|
}, idle: () => {
|
|
6629
|
-
} })), Q = R(!1), Se =
|
|
6629
|
+
} })), Q = R(!1), Se = gn(() => {
|
|
6630
6630
|
Q.current || (X("hidden"), $(w));
|
|
6631
6631
|
}, te);
|
|
6632
6632
|
Ei({ container: w, classes: F, direction: he, onStart: Ce((ee) => {
|
|
6633
6633
|
Q.current = !0, Se.onStart(w, ee, ye);
|
|
6634
6634
|
}), onStop: Ce((ee) => {
|
|
6635
|
-
Q.current = !1, Se.onStop(w, ee, me), ee === "leave" && !
|
|
6635
|
+
Q.current = !1, Se.onStop(w, ee, me), ee === "leave" && !Mr(Se) && (X("hidden"), $(w));
|
|
6636
6636
|
}) });
|
|
6637
6637
|
let ne = b, Ke = { ref: fe };
|
|
6638
|
-
return be ? ne = { ...ne, className: ar(b.className, ...F.current.enter, ...F.current.enterFrom) } : Q.current ? (ne.className = ar(b.className, (t = w.current) == null ? void 0 : t.className), ne.className === "" && delete ne.className) : (ne.className = ar(b.className, (s = w.current) == null ? void 0 : s.className, ...z(he, { enter: [...F.current.enterTo, ...F.current.entered], leave: F.current.leaveTo, idle: [] })), ne.className === "" && delete ne.className),
|
|
6638
|
+
return be ? ne = { ...ne, className: ar(b.className, ...F.current.enter, ...F.current.enterFrom) } : Q.current ? (ne.className = ar(b.className, (t = w.current) == null ? void 0 : t.className), ne.className === "" && delete ne.className) : (ne.className = ar(b.className, (s = w.current) == null ? void 0 : s.className, ...z(he, { enter: [...F.current.enterTo, ...F.current.entered], leave: F.current.leaveTo, idle: [] })), ne.className === "" && delete ne.className), k.createElement($r.Provider, { value: Se }, k.createElement(Oa, { value: z(Z, { visible: se.Open, hidden: se.Closed }) | B.flags }, ve({ ourProps: Ke, theirProps: ne, defaultTag: vn, features: bn, visible: Z === "visible", name: "Transition.Child" })));
|
|
6639
6639
|
}
|
|
6640
6640
|
function Si(e, r) {
|
|
6641
|
-
let { show: n, appear: t = !1, unmount: s = !0, ...o } = e, a = R(null), d =
|
|
6641
|
+
let { show: n, appear: t = !1, unmount: s = !0, ...o } = e, a = R(null), d = mn(e), c = we(...d ? [a, r] : r === null ? [] : [r]);
|
|
6642
6642
|
cr();
|
|
6643
|
-
let u =
|
|
6643
|
+
let u = nt();
|
|
6644
6644
|
if (n === void 0 && u !== null && (n = (u & se.Open) === se.Open), n === void 0)
|
|
6645
6645
|
throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");
|
|
6646
|
-
let [f, p] = ge(n ? "visible" : "hidden"), m =
|
|
6646
|
+
let [f, p] = ge(n ? "visible" : "hidden"), m = gn(() => {
|
|
6647
6647
|
n || p("hidden");
|
|
6648
6648
|
}), [v, x] = ge(!0), C = R([n]);
|
|
6649
|
-
|
|
6649
|
+
K(() => {
|
|
6650
6650
|
v !== !1 && C.current[C.current.length - 1] !== n && (C.current.push(n), x(!1));
|
|
6651
6651
|
}, [C, n]);
|
|
6652
6652
|
let b = ae(() => ({ show: n, appear: t, initial: v }), [n, t, v]);
|
|
6653
|
-
|
|
6654
|
-
n ? p("visible") : !
|
|
6653
|
+
rn(a, () => p("hidden")), K(() => {
|
|
6654
|
+
n ? p("visible") : !Mr(m) && a.current !== null && p("hidden");
|
|
6655
6655
|
}, [n, m]);
|
|
6656
|
-
let w = { unmount: s },
|
|
6656
|
+
let w = { unmount: s }, j = P(() => {
|
|
6657
6657
|
var N;
|
|
6658
6658
|
v && x(!1), (N = e.beforeEnter) == null || N.call(e);
|
|
6659
6659
|
}), fe = P(() => {
|
|
6660
6660
|
var N;
|
|
6661
6661
|
v && x(!1), (N = e.beforeLeave) == null || N.call(e);
|
|
6662
6662
|
});
|
|
6663
|
-
return
|
|
6663
|
+
return k.createElement($r.Provider, { value: m }, k.createElement(Lr.Provider, { value: b }, ve({ ourProps: { ...w, as: de, children: k.createElement(xn, { ref: c, ...w, ...o, beforeEnter: j, beforeLeave: fe }) }, theirProps: {}, defaultTag: de, features: bn, visible: f === "visible", name: "Transition" })));
|
|
6664
6664
|
}
|
|
6665
6665
|
function Ni(e, r) {
|
|
6666
|
-
let n = re(Lr) !== null, t =
|
|
6667
|
-
return
|
|
6666
|
+
let n = re(Lr) !== null, t = nt() !== null;
|
|
6667
|
+
return k.createElement(k.Fragment, null, !n && t ? k.createElement(Yr, { ref: r, ...e }) : k.createElement(xn, { ref: r, ...e }));
|
|
6668
6668
|
}
|
|
6669
|
-
let Yr = ue(Si),
|
|
6669
|
+
let Yr = ue(Si), xn = ue(Ti), Zr = ue(Ni), Ri = Object.assign(Yr, { Child: Zr, Root: Yr });
|
|
6670
6670
|
const Ai = ({
|
|
6671
6671
|
open: e = !1,
|
|
6672
6672
|
onClose: r,
|
|
@@ -6719,7 +6719,7 @@ const Ai = ({
|
|
|
6719
6719
|
leave: "ease-in duration-200",
|
|
6720
6720
|
leaveFrom: "opacity-100 translate-y-0 sm:scale-100",
|
|
6721
6721
|
leaveTo: "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",
|
|
6722
|
-
children: /* @__PURE__ */ i.jsxs(
|
|
6722
|
+
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: [
|
|
6723
6723
|
/* @__PURE__ */ i.jsxs(
|
|
6724
6724
|
"div",
|
|
6725
6725
|
{
|
|
@@ -6727,7 +6727,7 @@ const Ai = ({
|
|
|
6727
6727
|
children: [
|
|
6728
6728
|
a && /* @__PURE__ */ i.jsx("div", { className: "ds-mr-3", children: p() }),
|
|
6729
6729
|
/* @__PURE__ */ i.jsx("div", { className: "ds-flex-grow", children: /* @__PURE__ */ i.jsx(
|
|
6730
|
-
|
|
6730
|
+
Kt,
|
|
6731
6731
|
{
|
|
6732
6732
|
text: n,
|
|
6733
6733
|
headingTag: "h2",
|
|
@@ -6766,7 +6766,7 @@ const Ai = ({
|
|
|
6766
6766
|
]
|
|
6767
6767
|
}
|
|
6768
6768
|
) });
|
|
6769
|
-
},
|
|
6769
|
+
}, vl = Ai, Pi = I(
|
|
6770
6770
|
[
|
|
6771
6771
|
"preflight",
|
|
6772
6772
|
"ds-rounded-xl",
|
|
@@ -6822,7 +6822,7 @@ const Ai = ({
|
|
|
6822
6822
|
return /* @__PURE__ */ i.jsxs(
|
|
6823
6823
|
"div",
|
|
6824
6824
|
{
|
|
6825
|
-
className:
|
|
6825
|
+
className: G(Pi({ color: n, type: r }), o),
|
|
6826
6826
|
"aria-label": c,
|
|
6827
6827
|
...d,
|
|
6828
6828
|
children: [
|
|
@@ -6843,7 +6843,7 @@ const Ai = ({
|
|
|
6843
6843
|
]
|
|
6844
6844
|
}
|
|
6845
6845
|
);
|
|
6846
|
-
},
|
|
6846
|
+
}, bl = Fi, Oi = I(
|
|
6847
6847
|
[
|
|
6848
6848
|
"preflight",
|
|
6849
6849
|
"ds-form-label",
|
|
@@ -6864,7 +6864,7 @@ const Ai = ({
|
|
|
6864
6864
|
}
|
|
6865
6865
|
}
|
|
6866
6866
|
}
|
|
6867
|
-
), _i = (e) =>
|
|
6867
|
+
), _i = (e) => G(Oi(e)), Wi = ({
|
|
6868
6868
|
id: e,
|
|
6869
6869
|
state: r = "default",
|
|
6870
6870
|
disabled: n = !1,
|
|
@@ -6874,7 +6874,7 @@ const Ai = ({
|
|
|
6874
6874
|
}) => /* @__PURE__ */ i.jsxs("label", { id: e, htmlFor: t, className: _i({ state: r, disabled: n }), children: [
|
|
6875
6875
|
s,
|
|
6876
6876
|
o && /* @__PURE__ */ i.jsx("span", { className: "ds-text-sm ds-text-neutrals-darker", children: ` (${o})` })
|
|
6877
|
-
] }), Ii = Wi, Vi =
|
|
6877
|
+
] }), Ii = Wi, Vi = I(
|
|
6878
6878
|
["preflight", "group", "ds-flex", "ds-flex-col", "ds-container"],
|
|
6879
6879
|
{
|
|
6880
6880
|
variants: {
|
|
@@ -6885,7 +6885,7 @@ const Ai = ({
|
|
|
6885
6885
|
}
|
|
6886
6886
|
}
|
|
6887
6887
|
}
|
|
6888
|
-
), Di = (e) =>
|
|
6888
|
+
), Di = (e) => G(Vi(e)), Hi = I(["ds-form-label", "!ds-font-sans", "ds-text-base"], {
|
|
6889
6889
|
variants: {
|
|
6890
6890
|
state: {
|
|
6891
6891
|
default: ["ds-text-neutrals-black", "ds-mt-2"],
|
|
@@ -6903,7 +6903,7 @@ const Ai = ({
|
|
|
6903
6903
|
true: "!ds-text-neutrals-dark"
|
|
6904
6904
|
}
|
|
6905
6905
|
}
|
|
6906
|
-
}), Bi = (e) =>
|
|
6906
|
+
}), Bi = (e) => G(Hi(e)), zi = ({
|
|
6907
6907
|
id: e,
|
|
6908
6908
|
state: r = "default",
|
|
6909
6909
|
disabled: n = !1,
|
|
@@ -6957,7 +6957,7 @@ const Ai = ({
|
|
|
6957
6957
|
] }),
|
|
6958
6958
|
u && /* @__PURE__ */ i.jsx("p", { className: Bi({ state: r }), children: a })
|
|
6959
6959
|
] });
|
|
6960
|
-
},
|
|
6960
|
+
}, at = zi, Ui = I(
|
|
6961
6961
|
[
|
|
6962
6962
|
"preflight",
|
|
6963
6963
|
"ds-form-input",
|
|
@@ -6966,8 +6966,8 @@ const Ai = ({
|
|
|
6966
6966
|
"ds-border-[1px]",
|
|
6967
6967
|
"!ds-font-sans"
|
|
6968
6968
|
],
|
|
6969
|
-
|
|
6970
|
-
), Gi = (e) =>
|
|
6969
|
+
Jr
|
|
6970
|
+
), Gi = (e) => G(Ui(e)), Yi = ({
|
|
6971
6971
|
state: e = "default",
|
|
6972
6972
|
rows: r = 2,
|
|
6973
6973
|
cols: n = 50,
|
|
@@ -7000,7 +7000,7 @@ const Ai = ({
|
|
|
7000
7000
|
disabled: u = !1,
|
|
7001
7001
|
...f
|
|
7002
7002
|
}) => /* @__PURE__ */ i.jsx(
|
|
7003
|
-
|
|
7003
|
+
at,
|
|
7004
7004
|
{
|
|
7005
7005
|
id: e,
|
|
7006
7006
|
state: r,
|
|
@@ -7025,7 +7025,7 @@ const Ai = ({
|
|
|
7025
7025
|
}
|
|
7026
7026
|
)
|
|
7027
7027
|
}
|
|
7028
|
-
),
|
|
7028
|
+
), xl = qi, Ki = I(
|
|
7029
7029
|
[
|
|
7030
7030
|
"preflight",
|
|
7031
7031
|
"ds-form-input",
|
|
@@ -7036,8 +7036,8 @@ const Ai = ({
|
|
|
7036
7036
|
"!ds-font-sans",
|
|
7037
7037
|
"ds-container"
|
|
7038
7038
|
],
|
|
7039
|
-
|
|
7040
|
-
), Ji = (e) =>
|
|
7039
|
+
Jr
|
|
7040
|
+
), Ji = (e) => G(Ki(e)), Xi = ({
|
|
7041
7041
|
state: e = "default",
|
|
7042
7042
|
disabled: r = !1,
|
|
7043
7043
|
type: n = "text",
|
|
@@ -7062,7 +7062,7 @@ const Ai = ({
|
|
|
7062
7062
|
message: d = "",
|
|
7063
7063
|
...c
|
|
7064
7064
|
}) => /* @__PURE__ */ i.jsx(
|
|
7065
|
-
|
|
7065
|
+
at,
|
|
7066
7066
|
{
|
|
7067
7067
|
id: e,
|
|
7068
7068
|
state: r,
|
|
@@ -7084,23 +7084,91 @@ const Ai = ({
|
|
|
7084
7084
|
}
|
|
7085
7085
|
)
|
|
7086
7086
|
}
|
|
7087
|
-
),
|
|
7087
|
+
), Cl = el, rl = I(
|
|
7088
|
+
[
|
|
7089
|
+
"preflight",
|
|
7090
|
+
"ds-form-select",
|
|
7091
|
+
"ds-h-[40px]",
|
|
7092
|
+
"ds-rounded",
|
|
7093
|
+
"ds-p-2",
|
|
7094
|
+
"ds-border-[1px]",
|
|
7095
|
+
"!ds-font-sans",
|
|
7096
|
+
"ds-container",
|
|
7097
|
+
"ds-bg-[center_right_0.25rem]"
|
|
7098
|
+
],
|
|
7099
|
+
Jr
|
|
7100
|
+
), tl = (e) => rl(e), nl = `url('data:image/svg+xml,<svg width="16" height="16" viewBox="5 -5 15 35" fill="none" xmlns="http://www.w3.org/2000/svg" stroke="%238C8C8C" ><path d="M21.375 8.09253L12.4417 17.025C12.3837 17.0831 12.3148 17.1291 12.2391 17.1605C12.1632 17.192 12.082 17.2082 12 17.2082C11.918 17.2082 11.8368 17.192 11.7609 17.1605C11.6852 17.1291 11.6163 17.0831 11.5583 17.025L2.625 8.09253" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" stroke="%23000000" /></svg>')`, sl = ({
|
|
7101
|
+
state: e = "default",
|
|
7102
|
+
disabled: r = !1,
|
|
7103
|
+
className: n = "",
|
|
7104
|
+
...t
|
|
7105
|
+
}) => {
|
|
7106
|
+
let s = t.children;
|
|
7107
|
+
return r && (s = (k.isValidElement(t.children) ? k.Children.toArray(
|
|
7108
|
+
t.children.props.children
|
|
7109
|
+
) : k.Children.toArray(t.children)).map((a) => k.isValidElement(a) ? k.cloneElement(a, {
|
|
7110
|
+
disabled: !0
|
|
7111
|
+
}) : a)), /* @__PURE__ */ i.jsx(
|
|
7112
|
+
"select",
|
|
7113
|
+
{
|
|
7114
|
+
"aria-readonly": r,
|
|
7115
|
+
tabIndex: r ? -1 : 0,
|
|
7116
|
+
style: { backgroundImage: nl },
|
|
7117
|
+
className: G(tl({ disabled: r, state: e }), n),
|
|
7118
|
+
...t,
|
|
7119
|
+
children: s
|
|
7120
|
+
}
|
|
7121
|
+
);
|
|
7122
|
+
}, ol = sl, al = ({
|
|
7123
|
+
id: e,
|
|
7124
|
+
state: r = "default",
|
|
7125
|
+
disabled: n = !1,
|
|
7126
|
+
label: t,
|
|
7127
|
+
optionalityLabel: s = "",
|
|
7128
|
+
helpText: o = [],
|
|
7129
|
+
message: a = "",
|
|
7130
|
+
...d
|
|
7131
|
+
}) => /* @__PURE__ */ i.jsx(
|
|
7132
|
+
at,
|
|
7133
|
+
{
|
|
7134
|
+
id: e,
|
|
7135
|
+
state: r,
|
|
7136
|
+
disabled: n,
|
|
7137
|
+
label: t,
|
|
7138
|
+
optionalityLabel: s,
|
|
7139
|
+
helpText: o,
|
|
7140
|
+
message: a,
|
|
7141
|
+
child: /* @__PURE__ */ i.jsx(
|
|
7142
|
+
ol,
|
|
7143
|
+
{
|
|
7144
|
+
id: e,
|
|
7145
|
+
"aria-labelledby": t ? "label_" + e : void 0,
|
|
7146
|
+
"aria-describedby": o && o.length > 0 ? "helptext_" + e : void 0,
|
|
7147
|
+
state: r,
|
|
7148
|
+
disabled: n,
|
|
7149
|
+
...d
|
|
7150
|
+
}
|
|
7151
|
+
)
|
|
7152
|
+
}
|
|
7153
|
+
), wl = al;
|
|
7088
7154
|
export {
|
|
7089
|
-
|
|
7090
|
-
|
|
7091
|
-
|
|
7092
|
-
|
|
7093
|
-
|
|
7094
|
-
|
|
7155
|
+
cl as Alert,
|
|
7156
|
+
bl as Badge,
|
|
7157
|
+
ul as Button,
|
|
7158
|
+
fl as Card,
|
|
7159
|
+
pl as Checkbox,
|
|
7160
|
+
wl as Dropdown,
|
|
7161
|
+
ol as DropdownAtom,
|
|
7162
|
+
Kt as Heading,
|
|
7095
7163
|
Ve as Icon,
|
|
7096
7164
|
Kr as IconButton,
|
|
7097
7165
|
Ii as LabelAtom,
|
|
7098
|
-
|
|
7099
|
-
|
|
7100
|
-
|
|
7101
|
-
|
|
7166
|
+
ml as Link,
|
|
7167
|
+
vl as Modal,
|
|
7168
|
+
hl as Radio,
|
|
7169
|
+
Cl as TextInput,
|
|
7102
7170
|
Qi as TextInputAtom,
|
|
7103
|
-
|
|
7171
|
+
xl as Textarea,
|
|
7104
7172
|
Zi as TextareaAtom
|
|
7105
7173
|
};
|
|
7106
7174
|
//# sourceMappingURL=index.es.js.map
|