@qodo/design-system 0.17.1 → 0.17.2
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/design-system.css +1 -1
- package/dist/index.cjs.js +11 -11
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +671 -671
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -94,25 +94,25 @@ function wm() {
|
|
|
94
94
|
function h(w) {
|
|
95
95
|
if (w === null || typeof w != "object")
|
|
96
96
|
return null;
|
|
97
|
-
var
|
|
98
|
-
return typeof
|
|
97
|
+
var D = b && w[b] || w[v];
|
|
98
|
+
return typeof D == "function" ? D : null;
|
|
99
99
|
}
|
|
100
100
|
var y = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
101
101
|
function x(w) {
|
|
102
102
|
{
|
|
103
|
-
for (var
|
|
103
|
+
for (var D = arguments.length, q = new Array(D > 1 ? D - 1 : 0), ne = 1; ne < D; ne++)
|
|
104
104
|
q[ne - 1] = arguments[ne];
|
|
105
105
|
C("error", w, q);
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
|
-
function C(w,
|
|
108
|
+
function C(w, D, q) {
|
|
109
109
|
{
|
|
110
110
|
var ne = y.ReactDebugCurrentFrame, ue = ne.getStackAddendum();
|
|
111
|
-
ue !== "" && (
|
|
111
|
+
ue !== "" && (D += "%s", q = q.concat([ue]));
|
|
112
112
|
var fe = q.map(function(de) {
|
|
113
113
|
return String(de);
|
|
114
114
|
});
|
|
115
|
-
fe.unshift("Warning: " +
|
|
115
|
+
fe.unshift("Warning: " + D), Function.prototype.apply.call(console[w], console, fe);
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
118
|
var S = !1, P = !1, k = !1, T = !1, R = !1, F;
|
|
@@ -124,17 +124,17 @@ function wm() {
|
|
|
124
124
|
// with.
|
|
125
125
|
w.$$typeof === F || w.getModuleId !== void 0));
|
|
126
126
|
}
|
|
127
|
-
function re(w,
|
|
127
|
+
function re(w, D, q) {
|
|
128
128
|
var ne = w.displayName;
|
|
129
129
|
if (ne)
|
|
130
130
|
return ne;
|
|
131
|
-
var ue =
|
|
131
|
+
var ue = D.displayName || D.name || "";
|
|
132
132
|
return ue !== "" ? q + "(" + ue + ")" : q;
|
|
133
133
|
}
|
|
134
|
-
function
|
|
134
|
+
function te(w) {
|
|
135
135
|
return w.displayName || "Context";
|
|
136
136
|
}
|
|
137
|
-
function
|
|
137
|
+
function Q(w) {
|
|
138
138
|
if (w == null)
|
|
139
139
|
return null;
|
|
140
140
|
if (typeof w.tag == "number" && x("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof w == "function")
|
|
@@ -158,20 +158,20 @@ function wm() {
|
|
|
158
158
|
if (typeof w == "object")
|
|
159
159
|
switch (w.$$typeof) {
|
|
160
160
|
case l:
|
|
161
|
-
var
|
|
162
|
-
return
|
|
161
|
+
var D = w;
|
|
162
|
+
return te(D) + ".Consumer";
|
|
163
163
|
case i:
|
|
164
164
|
var q = w;
|
|
165
|
-
return
|
|
165
|
+
return te(q._context) + ".Provider";
|
|
166
166
|
case d:
|
|
167
167
|
return re(w, w.render, "ForwardRef");
|
|
168
168
|
case p:
|
|
169
169
|
var ne = w.displayName || null;
|
|
170
|
-
return ne !== null ? ne :
|
|
170
|
+
return ne !== null ? ne : Q(w.type) || "Memo";
|
|
171
171
|
case g: {
|
|
172
172
|
var ue = w, fe = ue._payload, de = ue._init;
|
|
173
173
|
try {
|
|
174
|
-
return
|
|
174
|
+
return Q(de(fe));
|
|
175
175
|
} catch {
|
|
176
176
|
return null;
|
|
177
177
|
}
|
|
@@ -179,14 +179,14 @@ function wm() {
|
|
|
179
179
|
}
|
|
180
180
|
return null;
|
|
181
181
|
}
|
|
182
|
-
var
|
|
182
|
+
var W = Object.assign, O = 0, _, M, E, I, V, J, N;
|
|
183
183
|
function B() {
|
|
184
184
|
}
|
|
185
185
|
B.__reactDisabledLog = !0;
|
|
186
|
-
function
|
|
186
|
+
function Z() {
|
|
187
187
|
{
|
|
188
|
-
if (
|
|
189
|
-
|
|
188
|
+
if (O === 0) {
|
|
189
|
+
_ = console.log, M = console.info, E = console.warn, I = console.error, V = console.group, J = console.groupCollapsed, N = console.groupEnd;
|
|
190
190
|
var w = {
|
|
191
191
|
configurable: !0,
|
|
192
192
|
enumerable: !0,
|
|
@@ -203,65 +203,65 @@ function wm() {
|
|
|
203
203
|
groupEnd: w
|
|
204
204
|
});
|
|
205
205
|
}
|
|
206
|
-
|
|
206
|
+
O++;
|
|
207
207
|
}
|
|
208
208
|
}
|
|
209
|
-
function
|
|
209
|
+
function z() {
|
|
210
210
|
{
|
|
211
|
-
if (
|
|
211
|
+
if (O--, O === 0) {
|
|
212
212
|
var w = {
|
|
213
213
|
configurable: !0,
|
|
214
214
|
enumerable: !0,
|
|
215
215
|
writable: !0
|
|
216
216
|
};
|
|
217
217
|
Object.defineProperties(console, {
|
|
218
|
-
log:
|
|
219
|
-
value:
|
|
218
|
+
log: W({}, w, {
|
|
219
|
+
value: _
|
|
220
220
|
}),
|
|
221
|
-
info:
|
|
222
|
-
value:
|
|
221
|
+
info: W({}, w, {
|
|
222
|
+
value: M
|
|
223
223
|
}),
|
|
224
|
-
warn:
|
|
224
|
+
warn: W({}, w, {
|
|
225
225
|
value: E
|
|
226
226
|
}),
|
|
227
|
-
error:
|
|
227
|
+
error: W({}, w, {
|
|
228
228
|
value: I
|
|
229
229
|
}),
|
|
230
|
-
group:
|
|
230
|
+
group: W({}, w, {
|
|
231
231
|
value: V
|
|
232
232
|
}),
|
|
233
|
-
groupCollapsed:
|
|
234
|
-
value:
|
|
233
|
+
groupCollapsed: W({}, w, {
|
|
234
|
+
value: J
|
|
235
235
|
}),
|
|
236
|
-
groupEnd:
|
|
236
|
+
groupEnd: W({}, w, {
|
|
237
237
|
value: N
|
|
238
238
|
})
|
|
239
239
|
});
|
|
240
240
|
}
|
|
241
|
-
|
|
241
|
+
O < 0 && x("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
242
242
|
}
|
|
243
243
|
}
|
|
244
|
-
var
|
|
245
|
-
function
|
|
244
|
+
var $ = y.ReactCurrentDispatcher, A;
|
|
245
|
+
function K(w, D, q) {
|
|
246
246
|
{
|
|
247
|
-
if (
|
|
247
|
+
if (A === void 0)
|
|
248
248
|
try {
|
|
249
249
|
throw Error();
|
|
250
250
|
} catch (ue) {
|
|
251
251
|
var ne = ue.stack.trim().match(/\n( *(at )?)/);
|
|
252
|
-
|
|
252
|
+
A = ne && ne[1] || "";
|
|
253
253
|
}
|
|
254
254
|
return `
|
|
255
|
-
` +
|
|
255
|
+
` + A + w;
|
|
256
256
|
}
|
|
257
257
|
}
|
|
258
|
-
var
|
|
258
|
+
var ee = !1, oe;
|
|
259
259
|
{
|
|
260
260
|
var ce = typeof WeakMap == "function" ? WeakMap : Map;
|
|
261
261
|
oe = new ce();
|
|
262
262
|
}
|
|
263
|
-
function ie(w,
|
|
264
|
-
if (!w ||
|
|
263
|
+
function ie(w, D) {
|
|
264
|
+
if (!w || ee)
|
|
265
265
|
return "";
|
|
266
266
|
{
|
|
267
267
|
var q = oe.get(w);
|
|
@@ -269,13 +269,13 @@ function wm() {
|
|
|
269
269
|
return q;
|
|
270
270
|
}
|
|
271
271
|
var ne;
|
|
272
|
-
|
|
272
|
+
ee = !0;
|
|
273
273
|
var ue = Error.prepareStackTrace;
|
|
274
274
|
Error.prepareStackTrace = void 0;
|
|
275
275
|
var fe;
|
|
276
|
-
fe =
|
|
276
|
+
fe = $.current, $.current = null, Z();
|
|
277
277
|
try {
|
|
278
|
-
if (
|
|
278
|
+
if (D) {
|
|
279
279
|
var de = function() {
|
|
280
280
|
throw Error();
|
|
281
281
|
};
|
|
@@ -326,41 +326,41 @@ function wm() {
|
|
|
326
326
|
}
|
|
327
327
|
}
|
|
328
328
|
} finally {
|
|
329
|
-
|
|
329
|
+
ee = !1, $.current = fe, z(), Error.prepareStackTrace = ue;
|
|
330
330
|
}
|
|
331
|
-
var Vt = w ? w.displayName || w.name : "", Rt = Vt ?
|
|
331
|
+
var Vt = w ? w.displayName || w.name : "", Rt = Vt ? K(Vt) : "";
|
|
332
332
|
return typeof w == "function" && oe.set(w, Rt), Rt;
|
|
333
333
|
}
|
|
334
|
-
function Re(w,
|
|
334
|
+
function Re(w, D, q) {
|
|
335
335
|
return ie(w, !1);
|
|
336
336
|
}
|
|
337
337
|
function Me(w) {
|
|
338
|
-
var
|
|
339
|
-
return !!(
|
|
338
|
+
var D = w.prototype;
|
|
339
|
+
return !!(D && D.isReactComponent);
|
|
340
340
|
}
|
|
341
|
-
function Ue(w,
|
|
341
|
+
function Ue(w, D, q) {
|
|
342
342
|
if (w == null)
|
|
343
343
|
return "";
|
|
344
344
|
if (typeof w == "function")
|
|
345
345
|
return ie(w, Me(w));
|
|
346
346
|
if (typeof w == "string")
|
|
347
|
-
return
|
|
347
|
+
return K(w);
|
|
348
348
|
switch (w) {
|
|
349
349
|
case u:
|
|
350
|
-
return
|
|
350
|
+
return K("Suspense");
|
|
351
351
|
case f:
|
|
352
|
-
return
|
|
352
|
+
return K("SuspenseList");
|
|
353
353
|
}
|
|
354
354
|
if (typeof w == "object")
|
|
355
355
|
switch (w.$$typeof) {
|
|
356
356
|
case d:
|
|
357
357
|
return Re(w.render);
|
|
358
358
|
case p:
|
|
359
|
-
return Ue(w.type,
|
|
359
|
+
return Ue(w.type, D, q);
|
|
360
360
|
case g: {
|
|
361
361
|
var ne = w, ue = ne._payload, fe = ne._init;
|
|
362
362
|
try {
|
|
363
|
-
return Ue(fe(ue),
|
|
363
|
+
return Ue(fe(ue), D, q);
|
|
364
364
|
} catch {
|
|
365
365
|
}
|
|
366
366
|
}
|
|
@@ -370,12 +370,12 @@ function wm() {
|
|
|
370
370
|
var $e = Object.prototype.hasOwnProperty, it = {}, qr = y.ReactDebugCurrentFrame;
|
|
371
371
|
function tt(w) {
|
|
372
372
|
if (w) {
|
|
373
|
-
var
|
|
373
|
+
var D = w._owner, q = Ue(w.type, w._source, D ? D.type : null);
|
|
374
374
|
qr.setExtraStackFrame(q);
|
|
375
375
|
} else
|
|
376
376
|
qr.setExtraStackFrame(null);
|
|
377
377
|
}
|
|
378
|
-
function Up(w,
|
|
378
|
+
function Up(w, D, q, ne, ue) {
|
|
379
379
|
{
|
|
380
380
|
var fe = Function.call.bind($e);
|
|
381
381
|
for (var de in w)
|
|
@@ -386,7 +386,7 @@ function wm() {
|
|
|
386
386
|
var Pe = Error((ne || "React class") + ": " + q + " type `" + de + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof w[de] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
387
387
|
throw Pe.name = "Invariant Violation", Pe;
|
|
388
388
|
}
|
|
389
|
-
le = w[de](
|
|
389
|
+
le = w[de](D, de, ne, q, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
390
390
|
} catch (ge) {
|
|
391
391
|
le = ge;
|
|
392
392
|
}
|
|
@@ -400,7 +400,7 @@ function wm() {
|
|
|
400
400
|
}
|
|
401
401
|
function Kp(w) {
|
|
402
402
|
{
|
|
403
|
-
var
|
|
403
|
+
var D = typeof Symbol == "function" && Symbol.toStringTag, q = D && w[Symbol.toStringTag] || w.constructor.name || "Object";
|
|
404
404
|
return q;
|
|
405
405
|
}
|
|
406
406
|
}
|
|
@@ -426,27 +426,27 @@ function wm() {
|
|
|
426
426
|
}, ds, us;
|
|
427
427
|
function Zp(w) {
|
|
428
428
|
if ($e.call(w, "ref")) {
|
|
429
|
-
var
|
|
430
|
-
if (
|
|
429
|
+
var D = Object.getOwnPropertyDescriptor(w, "ref").get;
|
|
430
|
+
if (D && D.isReactWarning)
|
|
431
431
|
return !1;
|
|
432
432
|
}
|
|
433
433
|
return w.ref !== void 0;
|
|
434
434
|
}
|
|
435
435
|
function Jp(w) {
|
|
436
436
|
if ($e.call(w, "key")) {
|
|
437
|
-
var
|
|
438
|
-
if (
|
|
437
|
+
var D = Object.getOwnPropertyDescriptor(w, "key").get;
|
|
438
|
+
if (D && D.isReactWarning)
|
|
439
439
|
return !1;
|
|
440
440
|
}
|
|
441
441
|
return w.key !== void 0;
|
|
442
442
|
}
|
|
443
|
-
function Qp(w,
|
|
443
|
+
function Qp(w, D) {
|
|
444
444
|
typeof w.ref == "string" && cs.current;
|
|
445
445
|
}
|
|
446
|
-
function em(w,
|
|
446
|
+
function em(w, D) {
|
|
447
447
|
{
|
|
448
448
|
var q = function() {
|
|
449
|
-
ds || (ds = !0, x("%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)",
|
|
449
|
+
ds || (ds = !0, x("%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)", D));
|
|
450
450
|
};
|
|
451
451
|
q.isReactWarning = !0, Object.defineProperty(w, "key", {
|
|
452
452
|
get: q,
|
|
@@ -454,10 +454,10 @@ function wm() {
|
|
|
454
454
|
});
|
|
455
455
|
}
|
|
456
456
|
}
|
|
457
|
-
function tm(w,
|
|
457
|
+
function tm(w, D) {
|
|
458
458
|
{
|
|
459
459
|
var q = function() {
|
|
460
|
-
us || (us = !0, x("%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)",
|
|
460
|
+
us || (us = !0, x("%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)", D));
|
|
461
461
|
};
|
|
462
462
|
q.isReactWarning = !0, Object.defineProperty(w, "ref", {
|
|
463
463
|
get: q,
|
|
@@ -465,13 +465,13 @@ function wm() {
|
|
|
465
465
|
});
|
|
466
466
|
}
|
|
467
467
|
}
|
|
468
|
-
var rm = function(w,
|
|
468
|
+
var rm = function(w, D, q, ne, ue, fe, de) {
|
|
469
469
|
var le = {
|
|
470
470
|
// This tag allows us to uniquely identify this as a React Element
|
|
471
471
|
$$typeof: t,
|
|
472
472
|
// Built-in properties that belong on the element
|
|
473
473
|
type: w,
|
|
474
|
-
key:
|
|
474
|
+
key: D,
|
|
475
475
|
ref: q,
|
|
476
476
|
props: de,
|
|
477
477
|
// Record the component responsible for creating this element.
|
|
@@ -494,12 +494,12 @@ function wm() {
|
|
|
494
494
|
value: ue
|
|
495
495
|
}), Object.freeze && (Object.freeze(le.props), Object.freeze(le)), le;
|
|
496
496
|
};
|
|
497
|
-
function nm(w,
|
|
497
|
+
function nm(w, D, q, ne, ue) {
|
|
498
498
|
{
|
|
499
499
|
var fe, de = {}, le = null, Pe = null;
|
|
500
|
-
q !== void 0 && (ls(q), le = "" + q), Jp(
|
|
501
|
-
for (fe in
|
|
502
|
-
$e.call(
|
|
500
|
+
q !== void 0 && (ls(q), le = "" + q), Jp(D) && (ls(D.key), le = "" + D.key), Zp(D) && (Pe = D.ref, Qp(D, ue));
|
|
501
|
+
for (fe in D)
|
|
502
|
+
$e.call(D, fe) && !Xp.hasOwnProperty(fe) && (de[fe] = D[fe]);
|
|
503
503
|
if (w && w.defaultProps) {
|
|
504
504
|
var ge = w.defaultProps;
|
|
505
505
|
for (fe in ge)
|
|
@@ -515,7 +515,7 @@ function wm() {
|
|
|
515
515
|
var io = y.ReactCurrentOwner, fs = y.ReactDebugCurrentFrame;
|
|
516
516
|
function Ft(w) {
|
|
517
517
|
if (w) {
|
|
518
|
-
var
|
|
518
|
+
var D = w._owner, q = Ue(w.type, w._source, D ? D.type : null);
|
|
519
519
|
fs.setExtraStackFrame(q);
|
|
520
520
|
} else
|
|
521
521
|
fs.setExtraStackFrame(null);
|
|
@@ -528,7 +528,7 @@ function wm() {
|
|
|
528
528
|
function ps() {
|
|
529
529
|
{
|
|
530
530
|
if (io.current) {
|
|
531
|
-
var w =
|
|
531
|
+
var w = Q(io.current.type);
|
|
532
532
|
if (w)
|
|
533
533
|
return `
|
|
534
534
|
|
|
@@ -543,37 +543,37 @@ Check the render method of \`` + w + "`.";
|
|
|
543
543
|
var ms = {};
|
|
544
544
|
function am(w) {
|
|
545
545
|
{
|
|
546
|
-
var
|
|
547
|
-
if (
|
|
546
|
+
var D = ps();
|
|
547
|
+
if (!D) {
|
|
548
548
|
var q = typeof w == "string" ? w : w.displayName || w.name;
|
|
549
|
-
q && (
|
|
549
|
+
q && (D = `
|
|
550
550
|
|
|
551
551
|
Check the top-level render call using <` + q + ">.");
|
|
552
552
|
}
|
|
553
|
-
return
|
|
553
|
+
return D;
|
|
554
554
|
}
|
|
555
555
|
}
|
|
556
|
-
function gs(w,
|
|
556
|
+
function gs(w, D) {
|
|
557
557
|
{
|
|
558
558
|
if (!w._store || w._store.validated || w.key != null)
|
|
559
559
|
return;
|
|
560
560
|
w._store.validated = !0;
|
|
561
|
-
var q = am(
|
|
561
|
+
var q = am(D);
|
|
562
562
|
if (ms[q])
|
|
563
563
|
return;
|
|
564
564
|
ms[q] = !0;
|
|
565
565
|
var ne = "";
|
|
566
|
-
w && w._owner && w._owner !== io.current && (ne = " It was passed a child from " +
|
|
566
|
+
w && w._owner && w._owner !== io.current && (ne = " It was passed a child from " + Q(w._owner.type) + "."), Ft(w), x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', q, ne), Ft(null);
|
|
567
567
|
}
|
|
568
568
|
}
|
|
569
|
-
function vs(w,
|
|
569
|
+
function vs(w, D) {
|
|
570
570
|
{
|
|
571
571
|
if (typeof w != "object")
|
|
572
572
|
return;
|
|
573
573
|
if (so(w))
|
|
574
574
|
for (var q = 0; q < w.length; q++) {
|
|
575
575
|
var ne = w[q];
|
|
576
|
-
co(ne) && gs(ne,
|
|
576
|
+
co(ne) && gs(ne, D);
|
|
577
577
|
}
|
|
578
578
|
else if (co(w))
|
|
579
579
|
w._store && (w._store.validated = !0);
|
|
@@ -581,39 +581,39 @@ Check the top-level render call using <` + q + ">.");
|
|
|
581
581
|
var ue = h(w);
|
|
582
582
|
if (typeof ue == "function" && ue !== w.entries)
|
|
583
583
|
for (var fe = ue.call(w), de; !(de = fe.next()).done; )
|
|
584
|
-
co(de.value) && gs(de.value,
|
|
584
|
+
co(de.value) && gs(de.value, D);
|
|
585
585
|
}
|
|
586
586
|
}
|
|
587
587
|
}
|
|
588
588
|
function sm(w) {
|
|
589
589
|
{
|
|
590
|
-
var
|
|
591
|
-
if (
|
|
590
|
+
var D = w.type;
|
|
591
|
+
if (D == null || typeof D == "string")
|
|
592
592
|
return;
|
|
593
593
|
var q;
|
|
594
|
-
if (typeof
|
|
595
|
-
q =
|
|
596
|
-
else if (typeof
|
|
594
|
+
if (typeof D == "function")
|
|
595
|
+
q = D.propTypes;
|
|
596
|
+
else if (typeof D == "object" && (D.$$typeof === d || // Note: Memo only checks outer props here.
|
|
597
597
|
// Inner props are checked in the reconciler.
|
|
598
|
-
|
|
599
|
-
q =
|
|
598
|
+
D.$$typeof === p))
|
|
599
|
+
q = D.propTypes;
|
|
600
600
|
else
|
|
601
601
|
return;
|
|
602
602
|
if (q) {
|
|
603
|
-
var ne =
|
|
603
|
+
var ne = Q(D);
|
|
604
604
|
Up(q, w.props, "prop", ne, w);
|
|
605
|
-
} else if (
|
|
605
|
+
} else if (D.PropTypes !== void 0 && !lo) {
|
|
606
606
|
lo = !0;
|
|
607
|
-
var ue =
|
|
607
|
+
var ue = Q(D);
|
|
608
608
|
x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", ue || "Unknown");
|
|
609
609
|
}
|
|
610
|
-
typeof
|
|
610
|
+
typeof D.getDefaultProps == "function" && !D.getDefaultProps.isReactClassApproved && x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
611
611
|
}
|
|
612
612
|
}
|
|
613
613
|
function im(w) {
|
|
614
614
|
{
|
|
615
|
-
for (var
|
|
616
|
-
var ne =
|
|
615
|
+
for (var D = Object.keys(w.props), q = 0; q < D.length; q++) {
|
|
616
|
+
var ne = D[q];
|
|
617
617
|
if (ne !== "children" && ne !== "key") {
|
|
618
618
|
Ft(w), x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", ne), Ft(null);
|
|
619
619
|
break;
|
|
@@ -623,7 +623,7 @@ Check the top-level render call using <` + q + ">.");
|
|
|
623
623
|
}
|
|
624
624
|
}
|
|
625
625
|
var hs = {};
|
|
626
|
-
function xs(w,
|
|
626
|
+
function xs(w, D, q, ne, ue, fe) {
|
|
627
627
|
{
|
|
628
628
|
var de = U(w);
|
|
629
629
|
if (!de) {
|
|
@@ -632,13 +632,13 @@ Check the top-level render call using <` + q + ">.");
|
|
|
632
632
|
var Pe = om();
|
|
633
633
|
Pe ? le += Pe : le += ps();
|
|
634
634
|
var ge;
|
|
635
|
-
w === null ? ge = "null" : so(w) ? ge = "array" : w !== void 0 && w.$$typeof === t ? (ge = "<" + (
|
|
635
|
+
w === null ? ge = "null" : so(w) ? ge = "array" : w !== void 0 && w.$$typeof === t ? (ge = "<" + (Q(w.type) || "Unknown") + " />", le = " Did you accidentally export a JSX literal instead of a component?") : ge = typeof w, x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ge, le);
|
|
636
636
|
}
|
|
637
|
-
var he = nm(w,
|
|
637
|
+
var he = nm(w, D, q, ue, fe);
|
|
638
638
|
if (he == null)
|
|
639
639
|
return he;
|
|
640
640
|
if (de) {
|
|
641
|
-
var Oe =
|
|
641
|
+
var Oe = D.children;
|
|
642
642
|
if (Oe !== void 0)
|
|
643
643
|
if (ne)
|
|
644
644
|
if (so(Oe)) {
|
|
@@ -650,8 +650,8 @@ Check the top-level render call using <` + q + ">.");
|
|
|
650
650
|
else
|
|
651
651
|
vs(Oe, w);
|
|
652
652
|
}
|
|
653
|
-
if ($e.call(
|
|
654
|
-
var Rt =
|
|
653
|
+
if ($e.call(D, "key")) {
|
|
654
|
+
var Rt = Q(w), Ne = Object.keys(D).filter(function(pm) {
|
|
655
655
|
return pm !== "key";
|
|
656
656
|
}), uo = Ne.length > 0 ? "{key: someKey, " + Ne.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
657
657
|
if (!hs[Rt + uo]) {
|
|
@@ -667,11 +667,11 @@ React keys must be passed directly to JSX without using spread:
|
|
|
667
667
|
return w === n ? im(he) : sm(he), he;
|
|
668
668
|
}
|
|
669
669
|
}
|
|
670
|
-
function lm(w,
|
|
671
|
-
return xs(w,
|
|
670
|
+
function lm(w, D, q) {
|
|
671
|
+
return xs(w, D, q, !0);
|
|
672
672
|
}
|
|
673
|
-
function cm(w,
|
|
674
|
-
return xs(w,
|
|
673
|
+
function cm(w, D, q) {
|
|
674
|
+
return xs(w, D, q, !1);
|
|
675
675
|
}
|
|
676
676
|
var dm = cm, um = lm;
|
|
677
677
|
ur.Fragment = n, ur.jsx = dm, ur.jsxs = um;
|
|
@@ -971,7 +971,7 @@ const xe = (e) => {
|
|
|
971
971
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
972
972
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
973
973
|
Fm.test(e) && !Vm.test(e)
|
|
974
|
-
), zi = () => !1, qm = (e) => Bm.test(e), Um = (e) => Gm.test(e), Hm = (e) => !
|
|
974
|
+
), zi = () => !1, qm = (e) => Bm.test(e), Um = (e) => Gm.test(e), Hm = (e) => !Y(e) && !X(e), Km = (e) => tr(e, Hi, zi), Y = (e) => Gi.test(e), Pt = (e) => tr(e, Ki, zm), po = (e) => tr(e, Qm, ae), Ps = (e) => tr(e, qi, zi), Ym = (e) => tr(e, Ui, Um), Hr = (e) => tr(e, Yi, qm), X = (e) => Wi.test(e), fr = (e) => rr(e, Ki), Xm = (e) => rr(e, eg), js = (e) => rr(e, qi), Zm = (e) => rr(e, Hi), Jm = (e) => rr(e, Ui), Kr = (e) => rr(e, Yi, !0), tr = (e, t, r) => {
|
|
975
975
|
const n = Gi.exec(e);
|
|
976
976
|
return n ? n[1] ? t(n[1]) : r(n[2]) : !1;
|
|
977
977
|
}, rr = (e, t, r = !1) => {
|
|
@@ -996,30 +996,30 @@ const xe = (e) => {
|
|
|
996
996
|
"bottom-left",
|
|
997
997
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
998
998
|
"left-bottom"
|
|
999
|
-
], P = () => [...S(),
|
|
1000
|
-
span: ["full", lt,
|
|
1001
|
-
}, lt,
|
|
1002
|
-
position: [
|
|
999
|
+
], P = () => [...S(), X, Y], k = () => ["auto", "hidden", "clip", "visible", "scroll"], T = () => ["auto", "contain", "none"], R = () => [X, Y, d], F = () => [Bt, "full", "auto", ...R()], U = () => [lt, "none", "subgrid", X, Y], re = () => ["auto", {
|
|
1000
|
+
span: ["full", lt, X, Y]
|
|
1001
|
+
}, lt, X, Y], te = () => [lt, "auto", X, Y], Q = () => ["auto", "min", "max", "fr", X, Y], W = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], O = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], _ = () => ["auto", ...R()], M = () => [Bt, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...R()], E = () => [e, X, Y], I = () => [...S(), js, Ps, {
|
|
1002
|
+
position: [X, Y]
|
|
1003
1003
|
}], V = () => ["no-repeat", {
|
|
1004
1004
|
repeat: ["", "x", "y", "space", "round"]
|
|
1005
|
-
}],
|
|
1006
|
-
size: [
|
|
1005
|
+
}], J = () => ["auto", "cover", "contain", Zm, Km, {
|
|
1006
|
+
size: [X, Y]
|
|
1007
1007
|
}], N = () => [fo, fr, Pt], B = () => [
|
|
1008
1008
|
// Deprecated since Tailwind CSS v4.0.0
|
|
1009
1009
|
"",
|
|
1010
1010
|
"none",
|
|
1011
1011
|
"full",
|
|
1012
1012
|
u,
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
],
|
|
1013
|
+
X,
|
|
1014
|
+
Y
|
|
1015
|
+
], Z = () => ["", ae, fr, Pt], z = () => ["solid", "dashed", "dotted", "double"], $ = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], A = () => [ae, fo, js, Ps], K = () => [
|
|
1016
1016
|
// Deprecated since Tailwind CSS v4.0.0
|
|
1017
1017
|
"",
|
|
1018
1018
|
"none",
|
|
1019
1019
|
b,
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
],
|
|
1020
|
+
X,
|
|
1021
|
+
Y
|
|
1022
|
+
], ee = () => ["none", ae, X, Y], oe = () => ["none", ae, X, Y], ce = () => [ae, X, Y], ie = () => [Bt, "full", ...R()];
|
|
1023
1023
|
return {
|
|
1024
1024
|
cacheSize: 500,
|
|
1025
1025
|
theme: {
|
|
@@ -1052,7 +1052,7 @@ const xe = (e) => {
|
|
|
1052
1052
|
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
1053
1053
|
*/
|
|
1054
1054
|
aspect: [{
|
|
1055
|
-
aspect: ["auto", "square", Bt,
|
|
1055
|
+
aspect: ["auto", "square", Bt, Y, X, h]
|
|
1056
1056
|
}],
|
|
1057
1057
|
/**
|
|
1058
1058
|
* Container
|
|
@@ -1065,7 +1065,7 @@ const xe = (e) => {
|
|
|
1065
1065
|
* @see https://tailwindcss.com/docs/columns
|
|
1066
1066
|
*/
|
|
1067
1067
|
columns: [{
|
|
1068
|
-
columns: [ae,
|
|
1068
|
+
columns: [ae, Y, X, l]
|
|
1069
1069
|
}],
|
|
1070
1070
|
/**
|
|
1071
1071
|
* Break After
|
|
@@ -1265,7 +1265,7 @@ const xe = (e) => {
|
|
|
1265
1265
|
* @see https://tailwindcss.com/docs/z-index
|
|
1266
1266
|
*/
|
|
1267
1267
|
z: [{
|
|
1268
|
-
z: [lt, "auto",
|
|
1268
|
+
z: [lt, "auto", X, Y]
|
|
1269
1269
|
}],
|
|
1270
1270
|
// ------------------------
|
|
1271
1271
|
// --- Flexbox and Grid ---
|
|
@@ -1296,28 +1296,28 @@ const xe = (e) => {
|
|
|
1296
1296
|
* @see https://tailwindcss.com/docs/flex
|
|
1297
1297
|
*/
|
|
1298
1298
|
flex: [{
|
|
1299
|
-
flex: [ae, Bt, "auto", "initial", "none",
|
|
1299
|
+
flex: [ae, Bt, "auto", "initial", "none", Y]
|
|
1300
1300
|
}],
|
|
1301
1301
|
/**
|
|
1302
1302
|
* Flex Grow
|
|
1303
1303
|
* @see https://tailwindcss.com/docs/flex-grow
|
|
1304
1304
|
*/
|
|
1305
1305
|
grow: [{
|
|
1306
|
-
grow: ["", ae,
|
|
1306
|
+
grow: ["", ae, X, Y]
|
|
1307
1307
|
}],
|
|
1308
1308
|
/**
|
|
1309
1309
|
* Flex Shrink
|
|
1310
1310
|
* @see https://tailwindcss.com/docs/flex-shrink
|
|
1311
1311
|
*/
|
|
1312
1312
|
shrink: [{
|
|
1313
|
-
shrink: ["", ae,
|
|
1313
|
+
shrink: ["", ae, X, Y]
|
|
1314
1314
|
}],
|
|
1315
1315
|
/**
|
|
1316
1316
|
* Order
|
|
1317
1317
|
* @see https://tailwindcss.com/docs/order
|
|
1318
1318
|
*/
|
|
1319
1319
|
order: [{
|
|
1320
|
-
order: [lt, "first", "last", "none",
|
|
1320
|
+
order: [lt, "first", "last", "none", X, Y]
|
|
1321
1321
|
}],
|
|
1322
1322
|
/**
|
|
1323
1323
|
* Grid Template Columns
|
|
@@ -1338,14 +1338,14 @@ const xe = (e) => {
|
|
|
1338
1338
|
* @see https://tailwindcss.com/docs/grid-column
|
|
1339
1339
|
*/
|
|
1340
1340
|
"col-start": [{
|
|
1341
|
-
"col-start":
|
|
1341
|
+
"col-start": te()
|
|
1342
1342
|
}],
|
|
1343
1343
|
/**
|
|
1344
1344
|
* Grid Column End
|
|
1345
1345
|
* @see https://tailwindcss.com/docs/grid-column
|
|
1346
1346
|
*/
|
|
1347
1347
|
"col-end": [{
|
|
1348
|
-
"col-end":
|
|
1348
|
+
"col-end": te()
|
|
1349
1349
|
}],
|
|
1350
1350
|
/**
|
|
1351
1351
|
* Grid Template Rows
|
|
@@ -1366,14 +1366,14 @@ const xe = (e) => {
|
|
|
1366
1366
|
* @see https://tailwindcss.com/docs/grid-row
|
|
1367
1367
|
*/
|
|
1368
1368
|
"row-start": [{
|
|
1369
|
-
"row-start":
|
|
1369
|
+
"row-start": te()
|
|
1370
1370
|
}],
|
|
1371
1371
|
/**
|
|
1372
1372
|
* Grid Row End
|
|
1373
1373
|
* @see https://tailwindcss.com/docs/grid-row
|
|
1374
1374
|
*/
|
|
1375
1375
|
"row-end": [{
|
|
1376
|
-
"row-end":
|
|
1376
|
+
"row-end": te()
|
|
1377
1377
|
}],
|
|
1378
1378
|
/**
|
|
1379
1379
|
* Grid Auto Flow
|
|
@@ -1387,14 +1387,14 @@ const xe = (e) => {
|
|
|
1387
1387
|
* @see https://tailwindcss.com/docs/grid-auto-columns
|
|
1388
1388
|
*/
|
|
1389
1389
|
"auto-cols": [{
|
|
1390
|
-
"auto-cols":
|
|
1390
|
+
"auto-cols": Q()
|
|
1391
1391
|
}],
|
|
1392
1392
|
/**
|
|
1393
1393
|
* Grid Auto Rows
|
|
1394
1394
|
* @see https://tailwindcss.com/docs/grid-auto-rows
|
|
1395
1395
|
*/
|
|
1396
1396
|
"auto-rows": [{
|
|
1397
|
-
"auto-rows":
|
|
1397
|
+
"auto-rows": Q()
|
|
1398
1398
|
}],
|
|
1399
1399
|
/**
|
|
1400
1400
|
* Gap
|
|
@@ -1422,35 +1422,35 @@ const xe = (e) => {
|
|
|
1422
1422
|
* @see https://tailwindcss.com/docs/justify-content
|
|
1423
1423
|
*/
|
|
1424
1424
|
"justify-content": [{
|
|
1425
|
-
justify: [...
|
|
1425
|
+
justify: [...W(), "normal"]
|
|
1426
1426
|
}],
|
|
1427
1427
|
/**
|
|
1428
1428
|
* Justify Items
|
|
1429
1429
|
* @see https://tailwindcss.com/docs/justify-items
|
|
1430
1430
|
*/
|
|
1431
1431
|
"justify-items": [{
|
|
1432
|
-
"justify-items": [...
|
|
1432
|
+
"justify-items": [...O(), "normal"]
|
|
1433
1433
|
}],
|
|
1434
1434
|
/**
|
|
1435
1435
|
* Justify Self
|
|
1436
1436
|
* @see https://tailwindcss.com/docs/justify-self
|
|
1437
1437
|
*/
|
|
1438
1438
|
"justify-self": [{
|
|
1439
|
-
"justify-self": ["auto", ...
|
|
1439
|
+
"justify-self": ["auto", ...O()]
|
|
1440
1440
|
}],
|
|
1441
1441
|
/**
|
|
1442
1442
|
* Align Content
|
|
1443
1443
|
* @see https://tailwindcss.com/docs/align-content
|
|
1444
1444
|
*/
|
|
1445
1445
|
"align-content": [{
|
|
1446
|
-
content: ["normal", ...
|
|
1446
|
+
content: ["normal", ...W()]
|
|
1447
1447
|
}],
|
|
1448
1448
|
/**
|
|
1449
1449
|
* Align Items
|
|
1450
1450
|
* @see https://tailwindcss.com/docs/align-items
|
|
1451
1451
|
*/
|
|
1452
1452
|
"align-items": [{
|
|
1453
|
-
items: [...
|
|
1453
|
+
items: [...O(), {
|
|
1454
1454
|
baseline: ["", "last"]
|
|
1455
1455
|
}]
|
|
1456
1456
|
}],
|
|
@@ -1459,7 +1459,7 @@ const xe = (e) => {
|
|
|
1459
1459
|
* @see https://tailwindcss.com/docs/align-self
|
|
1460
1460
|
*/
|
|
1461
1461
|
"align-self": [{
|
|
1462
|
-
self: ["auto", ...
|
|
1462
|
+
self: ["auto", ...O(), {
|
|
1463
1463
|
baseline: ["", "last"]
|
|
1464
1464
|
}]
|
|
1465
1465
|
}],
|
|
@@ -1468,21 +1468,21 @@ const xe = (e) => {
|
|
|
1468
1468
|
* @see https://tailwindcss.com/docs/place-content
|
|
1469
1469
|
*/
|
|
1470
1470
|
"place-content": [{
|
|
1471
|
-
"place-content":
|
|
1471
|
+
"place-content": W()
|
|
1472
1472
|
}],
|
|
1473
1473
|
/**
|
|
1474
1474
|
* Place Items
|
|
1475
1475
|
* @see https://tailwindcss.com/docs/place-items
|
|
1476
1476
|
*/
|
|
1477
1477
|
"place-items": [{
|
|
1478
|
-
"place-items": [...
|
|
1478
|
+
"place-items": [...O(), "baseline"]
|
|
1479
1479
|
}],
|
|
1480
1480
|
/**
|
|
1481
1481
|
* Place Self
|
|
1482
1482
|
* @see https://tailwindcss.com/docs/place-self
|
|
1483
1483
|
*/
|
|
1484
1484
|
"place-self": [{
|
|
1485
|
-
"place-self": ["auto", ...
|
|
1485
|
+
"place-self": ["auto", ...O()]
|
|
1486
1486
|
}],
|
|
1487
1487
|
// Spacing
|
|
1488
1488
|
/**
|
|
@@ -1553,63 +1553,63 @@ const xe = (e) => {
|
|
|
1553
1553
|
* @see https://tailwindcss.com/docs/margin
|
|
1554
1554
|
*/
|
|
1555
1555
|
m: [{
|
|
1556
|
-
m:
|
|
1556
|
+
m: _()
|
|
1557
1557
|
}],
|
|
1558
1558
|
/**
|
|
1559
1559
|
* Margin X
|
|
1560
1560
|
* @see https://tailwindcss.com/docs/margin
|
|
1561
1561
|
*/
|
|
1562
1562
|
mx: [{
|
|
1563
|
-
mx:
|
|
1563
|
+
mx: _()
|
|
1564
1564
|
}],
|
|
1565
1565
|
/**
|
|
1566
1566
|
* Margin Y
|
|
1567
1567
|
* @see https://tailwindcss.com/docs/margin
|
|
1568
1568
|
*/
|
|
1569
1569
|
my: [{
|
|
1570
|
-
my:
|
|
1570
|
+
my: _()
|
|
1571
1571
|
}],
|
|
1572
1572
|
/**
|
|
1573
1573
|
* Margin Start
|
|
1574
1574
|
* @see https://tailwindcss.com/docs/margin
|
|
1575
1575
|
*/
|
|
1576
1576
|
ms: [{
|
|
1577
|
-
ms:
|
|
1577
|
+
ms: _()
|
|
1578
1578
|
}],
|
|
1579
1579
|
/**
|
|
1580
1580
|
* Margin End
|
|
1581
1581
|
* @see https://tailwindcss.com/docs/margin
|
|
1582
1582
|
*/
|
|
1583
1583
|
me: [{
|
|
1584
|
-
me:
|
|
1584
|
+
me: _()
|
|
1585
1585
|
}],
|
|
1586
1586
|
/**
|
|
1587
1587
|
* Margin Top
|
|
1588
1588
|
* @see https://tailwindcss.com/docs/margin
|
|
1589
1589
|
*/
|
|
1590
1590
|
mt: [{
|
|
1591
|
-
mt:
|
|
1591
|
+
mt: _()
|
|
1592
1592
|
}],
|
|
1593
1593
|
/**
|
|
1594
1594
|
* Margin Right
|
|
1595
1595
|
* @see https://tailwindcss.com/docs/margin
|
|
1596
1596
|
*/
|
|
1597
1597
|
mr: [{
|
|
1598
|
-
mr:
|
|
1598
|
+
mr: _()
|
|
1599
1599
|
}],
|
|
1600
1600
|
/**
|
|
1601
1601
|
* Margin Bottom
|
|
1602
1602
|
* @see https://tailwindcss.com/docs/margin
|
|
1603
1603
|
*/
|
|
1604
1604
|
mb: [{
|
|
1605
|
-
mb:
|
|
1605
|
+
mb: _()
|
|
1606
1606
|
}],
|
|
1607
1607
|
/**
|
|
1608
1608
|
* Margin Left
|
|
1609
1609
|
* @see https://tailwindcss.com/docs/margin
|
|
1610
1610
|
*/
|
|
1611
1611
|
ml: [{
|
|
1612
|
-
ml:
|
|
1612
|
+
ml: _()
|
|
1613
1613
|
}],
|
|
1614
1614
|
/**
|
|
1615
1615
|
* Space Between X
|
|
@@ -1643,14 +1643,14 @@ const xe = (e) => {
|
|
|
1643
1643
|
* @see https://tailwindcss.com/docs/width#setting-both-width-and-height
|
|
1644
1644
|
*/
|
|
1645
1645
|
size: [{
|
|
1646
|
-
size:
|
|
1646
|
+
size: M()
|
|
1647
1647
|
}],
|
|
1648
1648
|
/**
|
|
1649
1649
|
* Width
|
|
1650
1650
|
* @see https://tailwindcss.com/docs/width
|
|
1651
1651
|
*/
|
|
1652
1652
|
w: [{
|
|
1653
|
-
w: [l, "screen", ...
|
|
1653
|
+
w: [l, "screen", ...M()]
|
|
1654
1654
|
}],
|
|
1655
1655
|
/**
|
|
1656
1656
|
* Min-Width
|
|
@@ -1662,7 +1662,7 @@ const xe = (e) => {
|
|
|
1662
1662
|
"screen",
|
|
1663
1663
|
/** Deprecated. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
1664
1664
|
"none",
|
|
1665
|
-
...
|
|
1665
|
+
...M()
|
|
1666
1666
|
]
|
|
1667
1667
|
}],
|
|
1668
1668
|
/**
|
|
@@ -1680,7 +1680,7 @@ const xe = (e) => {
|
|
|
1680
1680
|
{
|
|
1681
1681
|
screen: [i]
|
|
1682
1682
|
},
|
|
1683
|
-
...
|
|
1683
|
+
...M()
|
|
1684
1684
|
]
|
|
1685
1685
|
}],
|
|
1686
1686
|
/**
|
|
@@ -1688,21 +1688,21 @@ const xe = (e) => {
|
|
|
1688
1688
|
* @see https://tailwindcss.com/docs/height
|
|
1689
1689
|
*/
|
|
1690
1690
|
h: [{
|
|
1691
|
-
h: ["screen", "lh", ...
|
|
1691
|
+
h: ["screen", "lh", ...M()]
|
|
1692
1692
|
}],
|
|
1693
1693
|
/**
|
|
1694
1694
|
* Min-Height
|
|
1695
1695
|
* @see https://tailwindcss.com/docs/min-height
|
|
1696
1696
|
*/
|
|
1697
1697
|
"min-h": [{
|
|
1698
|
-
"min-h": ["screen", "lh", "none", ...
|
|
1698
|
+
"min-h": ["screen", "lh", "none", ...M()]
|
|
1699
1699
|
}],
|
|
1700
1700
|
/**
|
|
1701
1701
|
* Max-Height
|
|
1702
1702
|
* @see https://tailwindcss.com/docs/max-height
|
|
1703
1703
|
*/
|
|
1704
1704
|
"max-h": [{
|
|
1705
|
-
"max-h": ["screen", "lh", ...
|
|
1705
|
+
"max-h": ["screen", "lh", ...M()]
|
|
1706
1706
|
}],
|
|
1707
1707
|
// ------------------
|
|
1708
1708
|
// --- Typography ---
|
|
@@ -1729,21 +1729,21 @@ const xe = (e) => {
|
|
|
1729
1729
|
* @see https://tailwindcss.com/docs/font-weight
|
|
1730
1730
|
*/
|
|
1731
1731
|
"font-weight": [{
|
|
1732
|
-
font: [n,
|
|
1732
|
+
font: [n, X, po]
|
|
1733
1733
|
}],
|
|
1734
1734
|
/**
|
|
1735
1735
|
* Font Stretch
|
|
1736
1736
|
* @see https://tailwindcss.com/docs/font-stretch
|
|
1737
1737
|
*/
|
|
1738
1738
|
"font-stretch": [{
|
|
1739
|
-
"font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", fo,
|
|
1739
|
+
"font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", fo, Y]
|
|
1740
1740
|
}],
|
|
1741
1741
|
/**
|
|
1742
1742
|
* Font Family
|
|
1743
1743
|
* @see https://tailwindcss.com/docs/font-family
|
|
1744
1744
|
*/
|
|
1745
1745
|
"font-family": [{
|
|
1746
|
-
font: [Xm,
|
|
1746
|
+
font: [Xm, Y, t]
|
|
1747
1747
|
}],
|
|
1748
1748
|
/**
|
|
1749
1749
|
* Font Variant Numeric
|
|
@@ -1780,14 +1780,14 @@ const xe = (e) => {
|
|
|
1780
1780
|
* @see https://tailwindcss.com/docs/letter-spacing
|
|
1781
1781
|
*/
|
|
1782
1782
|
tracking: [{
|
|
1783
|
-
tracking: [o,
|
|
1783
|
+
tracking: [o, X, Y]
|
|
1784
1784
|
}],
|
|
1785
1785
|
/**
|
|
1786
1786
|
* Line Clamp
|
|
1787
1787
|
* @see https://tailwindcss.com/docs/line-clamp
|
|
1788
1788
|
*/
|
|
1789
1789
|
"line-clamp": [{
|
|
1790
|
-
"line-clamp": [ae, "none",
|
|
1790
|
+
"line-clamp": [ae, "none", X, po]
|
|
1791
1791
|
}],
|
|
1792
1792
|
/**
|
|
1793
1793
|
* Line Height
|
|
@@ -1805,7 +1805,7 @@ const xe = (e) => {
|
|
|
1805
1805
|
* @see https://tailwindcss.com/docs/list-style-image
|
|
1806
1806
|
*/
|
|
1807
1807
|
"list-image": [{
|
|
1808
|
-
"list-image": ["none",
|
|
1808
|
+
"list-image": ["none", X, Y]
|
|
1809
1809
|
}],
|
|
1810
1810
|
/**
|
|
1811
1811
|
* List Style Position
|
|
@@ -1819,7 +1819,7 @@ const xe = (e) => {
|
|
|
1819
1819
|
* @see https://tailwindcss.com/docs/list-style-type
|
|
1820
1820
|
*/
|
|
1821
1821
|
"list-style-type": [{
|
|
1822
|
-
list: ["disc", "decimal", "none",
|
|
1822
|
+
list: ["disc", "decimal", "none", X, Y]
|
|
1823
1823
|
}],
|
|
1824
1824
|
/**
|
|
1825
1825
|
* Text Alignment
|
|
@@ -1853,14 +1853,14 @@ const xe = (e) => {
|
|
|
1853
1853
|
* @see https://tailwindcss.com/docs/text-decoration-style
|
|
1854
1854
|
*/
|
|
1855
1855
|
"text-decoration-style": [{
|
|
1856
|
-
decoration: [...
|
|
1856
|
+
decoration: [...z(), "wavy"]
|
|
1857
1857
|
}],
|
|
1858
1858
|
/**
|
|
1859
1859
|
* Text Decoration Thickness
|
|
1860
1860
|
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
|
1861
1861
|
*/
|
|
1862
1862
|
"text-decoration-thickness": [{
|
|
1863
|
-
decoration: [ae, "from-font", "auto",
|
|
1863
|
+
decoration: [ae, "from-font", "auto", X, Pt]
|
|
1864
1864
|
}],
|
|
1865
1865
|
/**
|
|
1866
1866
|
* Text Decoration Color
|
|
@@ -1874,7 +1874,7 @@ const xe = (e) => {
|
|
|
1874
1874
|
* @see https://tailwindcss.com/docs/text-underline-offset
|
|
1875
1875
|
*/
|
|
1876
1876
|
"underline-offset": [{
|
|
1877
|
-
"underline-offset": [ae, "auto",
|
|
1877
|
+
"underline-offset": [ae, "auto", X, Y]
|
|
1878
1878
|
}],
|
|
1879
1879
|
/**
|
|
1880
1880
|
* Text Transform
|
|
@@ -1905,7 +1905,7 @@ const xe = (e) => {
|
|
|
1905
1905
|
* @see https://tailwindcss.com/docs/vertical-align
|
|
1906
1906
|
*/
|
|
1907
1907
|
"vertical-align": [{
|
|
1908
|
-
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super",
|
|
1908
|
+
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", X, Y]
|
|
1909
1909
|
}],
|
|
1910
1910
|
/**
|
|
1911
1911
|
* Whitespace
|
|
@@ -1940,7 +1940,7 @@ const xe = (e) => {
|
|
|
1940
1940
|
* @see https://tailwindcss.com/docs/content
|
|
1941
1941
|
*/
|
|
1942
1942
|
content: [{
|
|
1943
|
-
content: ["none",
|
|
1943
|
+
content: ["none", X, Y]
|
|
1944
1944
|
}],
|
|
1945
1945
|
// -------------------
|
|
1946
1946
|
// --- Backgrounds ---
|
|
@@ -1985,7 +1985,7 @@ const xe = (e) => {
|
|
|
1985
1985
|
* @see https://tailwindcss.com/docs/background-size
|
|
1986
1986
|
*/
|
|
1987
1987
|
"bg-size": [{
|
|
1988
|
-
bg:
|
|
1988
|
+
bg: J()
|
|
1989
1989
|
}],
|
|
1990
1990
|
/**
|
|
1991
1991
|
* Background Image
|
|
@@ -1995,9 +1995,9 @@ const xe = (e) => {
|
|
|
1995
1995
|
bg: ["none", {
|
|
1996
1996
|
linear: [{
|
|
1997
1997
|
to: ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
|
|
1998
|
-
}, lt,
|
|
1999
|
-
radial: ["",
|
|
2000
|
-
conic: [lt,
|
|
1998
|
+
}, lt, X, Y],
|
|
1999
|
+
radial: ["", X, Y],
|
|
2000
|
+
conic: [lt, X, Y]
|
|
2001
2001
|
}, Jm, Ym]
|
|
2002
2002
|
}],
|
|
2003
2003
|
/**
|
|
@@ -2162,70 +2162,70 @@ const xe = (e) => {
|
|
|
2162
2162
|
* @see https://tailwindcss.com/docs/border-width
|
|
2163
2163
|
*/
|
|
2164
2164
|
"border-w": [{
|
|
2165
|
-
border:
|
|
2165
|
+
border: Z()
|
|
2166
2166
|
}],
|
|
2167
2167
|
/**
|
|
2168
2168
|
* Border Width X
|
|
2169
2169
|
* @see https://tailwindcss.com/docs/border-width
|
|
2170
2170
|
*/
|
|
2171
2171
|
"border-w-x": [{
|
|
2172
|
-
"border-x":
|
|
2172
|
+
"border-x": Z()
|
|
2173
2173
|
}],
|
|
2174
2174
|
/**
|
|
2175
2175
|
* Border Width Y
|
|
2176
2176
|
* @see https://tailwindcss.com/docs/border-width
|
|
2177
2177
|
*/
|
|
2178
2178
|
"border-w-y": [{
|
|
2179
|
-
"border-y":
|
|
2179
|
+
"border-y": Z()
|
|
2180
2180
|
}],
|
|
2181
2181
|
/**
|
|
2182
2182
|
* Border Width Start
|
|
2183
2183
|
* @see https://tailwindcss.com/docs/border-width
|
|
2184
2184
|
*/
|
|
2185
2185
|
"border-w-s": [{
|
|
2186
|
-
"border-s":
|
|
2186
|
+
"border-s": Z()
|
|
2187
2187
|
}],
|
|
2188
2188
|
/**
|
|
2189
2189
|
* Border Width End
|
|
2190
2190
|
* @see https://tailwindcss.com/docs/border-width
|
|
2191
2191
|
*/
|
|
2192
2192
|
"border-w-e": [{
|
|
2193
|
-
"border-e":
|
|
2193
|
+
"border-e": Z()
|
|
2194
2194
|
}],
|
|
2195
2195
|
/**
|
|
2196
2196
|
* Border Width Top
|
|
2197
2197
|
* @see https://tailwindcss.com/docs/border-width
|
|
2198
2198
|
*/
|
|
2199
2199
|
"border-w-t": [{
|
|
2200
|
-
"border-t":
|
|
2200
|
+
"border-t": Z()
|
|
2201
2201
|
}],
|
|
2202
2202
|
/**
|
|
2203
2203
|
* Border Width Right
|
|
2204
2204
|
* @see https://tailwindcss.com/docs/border-width
|
|
2205
2205
|
*/
|
|
2206
2206
|
"border-w-r": [{
|
|
2207
|
-
"border-r":
|
|
2207
|
+
"border-r": Z()
|
|
2208
2208
|
}],
|
|
2209
2209
|
/**
|
|
2210
2210
|
* Border Width Bottom
|
|
2211
2211
|
* @see https://tailwindcss.com/docs/border-width
|
|
2212
2212
|
*/
|
|
2213
2213
|
"border-w-b": [{
|
|
2214
|
-
"border-b":
|
|
2214
|
+
"border-b": Z()
|
|
2215
2215
|
}],
|
|
2216
2216
|
/**
|
|
2217
2217
|
* Border Width Left
|
|
2218
2218
|
* @see https://tailwindcss.com/docs/border-width
|
|
2219
2219
|
*/
|
|
2220
2220
|
"border-w-l": [{
|
|
2221
|
-
"border-l":
|
|
2221
|
+
"border-l": Z()
|
|
2222
2222
|
}],
|
|
2223
2223
|
/**
|
|
2224
2224
|
* Divide Width X
|
|
2225
2225
|
* @see https://tailwindcss.com/docs/border-width#between-children
|
|
2226
2226
|
*/
|
|
2227
2227
|
"divide-x": [{
|
|
2228
|
-
"divide-x":
|
|
2228
|
+
"divide-x": Z()
|
|
2229
2229
|
}],
|
|
2230
2230
|
/**
|
|
2231
2231
|
* Divide Width X Reverse
|
|
@@ -2237,7 +2237,7 @@ const xe = (e) => {
|
|
|
2237
2237
|
* @see https://tailwindcss.com/docs/border-width#between-children
|
|
2238
2238
|
*/
|
|
2239
2239
|
"divide-y": [{
|
|
2240
|
-
"divide-y":
|
|
2240
|
+
"divide-y": Z()
|
|
2241
2241
|
}],
|
|
2242
2242
|
/**
|
|
2243
2243
|
* Divide Width Y Reverse
|
|
@@ -2249,14 +2249,14 @@ const xe = (e) => {
|
|
|
2249
2249
|
* @see https://tailwindcss.com/docs/border-style
|
|
2250
2250
|
*/
|
|
2251
2251
|
"border-style": [{
|
|
2252
|
-
border: [...
|
|
2252
|
+
border: [...z(), "hidden", "none"]
|
|
2253
2253
|
}],
|
|
2254
2254
|
/**
|
|
2255
2255
|
* Divide Style
|
|
2256
2256
|
* @see https://tailwindcss.com/docs/border-style#setting-the-divider-style
|
|
2257
2257
|
*/
|
|
2258
2258
|
"divide-style": [{
|
|
2259
|
-
divide: [...
|
|
2259
|
+
divide: [...z(), "hidden", "none"]
|
|
2260
2260
|
}],
|
|
2261
2261
|
/**
|
|
2262
2262
|
* Border Color
|
|
@@ -2333,14 +2333,14 @@ const xe = (e) => {
|
|
|
2333
2333
|
* @see https://tailwindcss.com/docs/outline-style
|
|
2334
2334
|
*/
|
|
2335
2335
|
"outline-style": [{
|
|
2336
|
-
outline: [...
|
|
2336
|
+
outline: [...z(), "none", "hidden"]
|
|
2337
2337
|
}],
|
|
2338
2338
|
/**
|
|
2339
2339
|
* Outline Offset
|
|
2340
2340
|
* @see https://tailwindcss.com/docs/outline-offset
|
|
2341
2341
|
*/
|
|
2342
2342
|
"outline-offset": [{
|
|
2343
|
-
"outline-offset": [ae,
|
|
2343
|
+
"outline-offset": [ae, X, Y]
|
|
2344
2344
|
}],
|
|
2345
2345
|
/**
|
|
2346
2346
|
* Outline Width
|
|
@@ -2399,7 +2399,7 @@ const xe = (e) => {
|
|
|
2399
2399
|
* @see https://tailwindcss.com/docs/box-shadow#adding-a-ring
|
|
2400
2400
|
*/
|
|
2401
2401
|
"ring-w": [{
|
|
2402
|
-
ring:
|
|
2402
|
+
ring: Z()
|
|
2403
2403
|
}],
|
|
2404
2404
|
/**
|
|
2405
2405
|
* Ring Width Inset
|
|
@@ -2438,7 +2438,7 @@ const xe = (e) => {
|
|
|
2438
2438
|
* @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-ring
|
|
2439
2439
|
*/
|
|
2440
2440
|
"inset-ring-w": [{
|
|
2441
|
-
"inset-ring":
|
|
2441
|
+
"inset-ring": Z()
|
|
2442
2442
|
}],
|
|
2443
2443
|
/**
|
|
2444
2444
|
* Inset Ring Color
|
|
@@ -2466,21 +2466,21 @@ const xe = (e) => {
|
|
|
2466
2466
|
* @see https://tailwindcss.com/docs/opacity
|
|
2467
2467
|
*/
|
|
2468
2468
|
opacity: [{
|
|
2469
|
-
opacity: [ae,
|
|
2469
|
+
opacity: [ae, X, Y]
|
|
2470
2470
|
}],
|
|
2471
2471
|
/**
|
|
2472
2472
|
* Mix Blend Mode
|
|
2473
2473
|
* @see https://tailwindcss.com/docs/mix-blend-mode
|
|
2474
2474
|
*/
|
|
2475
2475
|
"mix-blend": [{
|
|
2476
|
-
"mix-blend": [
|
|
2476
|
+
"mix-blend": [...$(), "plus-darker", "plus-lighter"]
|
|
2477
2477
|
}],
|
|
2478
2478
|
/**
|
|
2479
2479
|
* Background Blend Mode
|
|
2480
2480
|
* @see https://tailwindcss.com/docs/background-blend-mode
|
|
2481
2481
|
*/
|
|
2482
2482
|
"bg-blend": [{
|
|
2483
|
-
"bg-blend":
|
|
2483
|
+
"bg-blend": $()
|
|
2484
2484
|
}],
|
|
2485
2485
|
/**
|
|
2486
2486
|
* Mask Clip
|
|
@@ -2504,10 +2504,10 @@ const xe = (e) => {
|
|
|
2504
2504
|
"mask-linear": [ae]
|
|
2505
2505
|
}],
|
|
2506
2506
|
"mask-image-linear-from-pos": [{
|
|
2507
|
-
"mask-linear-from":
|
|
2507
|
+
"mask-linear-from": A()
|
|
2508
2508
|
}],
|
|
2509
2509
|
"mask-image-linear-to-pos": [{
|
|
2510
|
-
"mask-linear-to":
|
|
2510
|
+
"mask-linear-to": A()
|
|
2511
2511
|
}],
|
|
2512
2512
|
"mask-image-linear-from-color": [{
|
|
2513
2513
|
"mask-linear-from": E()
|
|
@@ -2516,10 +2516,10 @@ const xe = (e) => {
|
|
|
2516
2516
|
"mask-linear-to": E()
|
|
2517
2517
|
}],
|
|
2518
2518
|
"mask-image-t-from-pos": [{
|
|
2519
|
-
"mask-t-from":
|
|
2519
|
+
"mask-t-from": A()
|
|
2520
2520
|
}],
|
|
2521
2521
|
"mask-image-t-to-pos": [{
|
|
2522
|
-
"mask-t-to":
|
|
2522
|
+
"mask-t-to": A()
|
|
2523
2523
|
}],
|
|
2524
2524
|
"mask-image-t-from-color": [{
|
|
2525
2525
|
"mask-t-from": E()
|
|
@@ -2528,10 +2528,10 @@ const xe = (e) => {
|
|
|
2528
2528
|
"mask-t-to": E()
|
|
2529
2529
|
}],
|
|
2530
2530
|
"mask-image-r-from-pos": [{
|
|
2531
|
-
"mask-r-from":
|
|
2531
|
+
"mask-r-from": A()
|
|
2532
2532
|
}],
|
|
2533
2533
|
"mask-image-r-to-pos": [{
|
|
2534
|
-
"mask-r-to":
|
|
2534
|
+
"mask-r-to": A()
|
|
2535
2535
|
}],
|
|
2536
2536
|
"mask-image-r-from-color": [{
|
|
2537
2537
|
"mask-r-from": E()
|
|
@@ -2540,10 +2540,10 @@ const xe = (e) => {
|
|
|
2540
2540
|
"mask-r-to": E()
|
|
2541
2541
|
}],
|
|
2542
2542
|
"mask-image-b-from-pos": [{
|
|
2543
|
-
"mask-b-from":
|
|
2543
|
+
"mask-b-from": A()
|
|
2544
2544
|
}],
|
|
2545
2545
|
"mask-image-b-to-pos": [{
|
|
2546
|
-
"mask-b-to":
|
|
2546
|
+
"mask-b-to": A()
|
|
2547
2547
|
}],
|
|
2548
2548
|
"mask-image-b-from-color": [{
|
|
2549
2549
|
"mask-b-from": E()
|
|
@@ -2552,10 +2552,10 @@ const xe = (e) => {
|
|
|
2552
2552
|
"mask-b-to": E()
|
|
2553
2553
|
}],
|
|
2554
2554
|
"mask-image-l-from-pos": [{
|
|
2555
|
-
"mask-l-from":
|
|
2555
|
+
"mask-l-from": A()
|
|
2556
2556
|
}],
|
|
2557
2557
|
"mask-image-l-to-pos": [{
|
|
2558
|
-
"mask-l-to":
|
|
2558
|
+
"mask-l-to": A()
|
|
2559
2559
|
}],
|
|
2560
2560
|
"mask-image-l-from-color": [{
|
|
2561
2561
|
"mask-l-from": E()
|
|
@@ -2564,10 +2564,10 @@ const xe = (e) => {
|
|
|
2564
2564
|
"mask-l-to": E()
|
|
2565
2565
|
}],
|
|
2566
2566
|
"mask-image-x-from-pos": [{
|
|
2567
|
-
"mask-x-from":
|
|
2567
|
+
"mask-x-from": A()
|
|
2568
2568
|
}],
|
|
2569
2569
|
"mask-image-x-to-pos": [{
|
|
2570
|
-
"mask-x-to":
|
|
2570
|
+
"mask-x-to": A()
|
|
2571
2571
|
}],
|
|
2572
2572
|
"mask-image-x-from-color": [{
|
|
2573
2573
|
"mask-x-from": E()
|
|
@@ -2576,10 +2576,10 @@ const xe = (e) => {
|
|
|
2576
2576
|
"mask-x-to": E()
|
|
2577
2577
|
}],
|
|
2578
2578
|
"mask-image-y-from-pos": [{
|
|
2579
|
-
"mask-y-from":
|
|
2579
|
+
"mask-y-from": A()
|
|
2580
2580
|
}],
|
|
2581
2581
|
"mask-image-y-to-pos": [{
|
|
2582
|
-
"mask-y-to":
|
|
2582
|
+
"mask-y-to": A()
|
|
2583
2583
|
}],
|
|
2584
2584
|
"mask-image-y-from-color": [{
|
|
2585
2585
|
"mask-y-from": E()
|
|
@@ -2588,13 +2588,13 @@ const xe = (e) => {
|
|
|
2588
2588
|
"mask-y-to": E()
|
|
2589
2589
|
}],
|
|
2590
2590
|
"mask-image-radial": [{
|
|
2591
|
-
"mask-radial": [
|
|
2591
|
+
"mask-radial": [X, Y]
|
|
2592
2592
|
}],
|
|
2593
2593
|
"mask-image-radial-from-pos": [{
|
|
2594
|
-
"mask-radial-from":
|
|
2594
|
+
"mask-radial-from": A()
|
|
2595
2595
|
}],
|
|
2596
2596
|
"mask-image-radial-to-pos": [{
|
|
2597
|
-
"mask-radial-to":
|
|
2597
|
+
"mask-radial-to": A()
|
|
2598
2598
|
}],
|
|
2599
2599
|
"mask-image-radial-from-color": [{
|
|
2600
2600
|
"mask-radial-from": E()
|
|
@@ -2618,10 +2618,10 @@ const xe = (e) => {
|
|
|
2618
2618
|
"mask-conic": [ae]
|
|
2619
2619
|
}],
|
|
2620
2620
|
"mask-image-conic-from-pos": [{
|
|
2621
|
-
"mask-conic-from":
|
|
2621
|
+
"mask-conic-from": A()
|
|
2622
2622
|
}],
|
|
2623
2623
|
"mask-image-conic-to-pos": [{
|
|
2624
|
-
"mask-conic-to":
|
|
2624
|
+
"mask-conic-to": A()
|
|
2625
2625
|
}],
|
|
2626
2626
|
"mask-image-conic-from-color": [{
|
|
2627
2627
|
"mask-conic-from": E()
|
|
@@ -2662,7 +2662,7 @@ const xe = (e) => {
|
|
|
2662
2662
|
* @see https://tailwindcss.com/docs/mask-size
|
|
2663
2663
|
*/
|
|
2664
2664
|
"mask-size": [{
|
|
2665
|
-
mask:
|
|
2665
|
+
mask: J()
|
|
2666
2666
|
}],
|
|
2667
2667
|
/**
|
|
2668
2668
|
* Mask Type
|
|
@@ -2676,7 +2676,7 @@ const xe = (e) => {
|
|
|
2676
2676
|
* @see https://tailwindcss.com/docs/mask-image
|
|
2677
2677
|
*/
|
|
2678
2678
|
"mask-image": [{
|
|
2679
|
-
mask: ["none",
|
|
2679
|
+
mask: ["none", X, Y]
|
|
2680
2680
|
}],
|
|
2681
2681
|
// ---------------
|
|
2682
2682
|
// --- Filters ---
|
|
@@ -2690,8 +2690,8 @@ const xe = (e) => {
|
|
|
2690
2690
|
// Deprecated since Tailwind CSS v3.0.0
|
|
2691
2691
|
"",
|
|
2692
2692
|
"none",
|
|
2693
|
-
|
|
2694
|
-
|
|
2693
|
+
X,
|
|
2694
|
+
Y
|
|
2695
2695
|
]
|
|
2696
2696
|
}],
|
|
2697
2697
|
/**
|
|
@@ -2699,21 +2699,21 @@ const xe = (e) => {
|
|
|
2699
2699
|
* @see https://tailwindcss.com/docs/blur
|
|
2700
2700
|
*/
|
|
2701
2701
|
blur: [{
|
|
2702
|
-
blur:
|
|
2702
|
+
blur: K()
|
|
2703
2703
|
}],
|
|
2704
2704
|
/**
|
|
2705
2705
|
* Brightness
|
|
2706
2706
|
* @see https://tailwindcss.com/docs/brightness
|
|
2707
2707
|
*/
|
|
2708
2708
|
brightness: [{
|
|
2709
|
-
brightness: [ae,
|
|
2709
|
+
brightness: [ae, X, Y]
|
|
2710
2710
|
}],
|
|
2711
2711
|
/**
|
|
2712
2712
|
* Contrast
|
|
2713
2713
|
* @see https://tailwindcss.com/docs/contrast
|
|
2714
2714
|
*/
|
|
2715
2715
|
contrast: [{
|
|
2716
|
-
contrast: [ae,
|
|
2716
|
+
contrast: [ae, X, Y]
|
|
2717
2717
|
}],
|
|
2718
2718
|
/**
|
|
2719
2719
|
* Drop Shadow
|
|
@@ -2741,35 +2741,35 @@ const xe = (e) => {
|
|
|
2741
2741
|
* @see https://tailwindcss.com/docs/grayscale
|
|
2742
2742
|
*/
|
|
2743
2743
|
grayscale: [{
|
|
2744
|
-
grayscale: ["", ae,
|
|
2744
|
+
grayscale: ["", ae, X, Y]
|
|
2745
2745
|
}],
|
|
2746
2746
|
/**
|
|
2747
2747
|
* Hue Rotate
|
|
2748
2748
|
* @see https://tailwindcss.com/docs/hue-rotate
|
|
2749
2749
|
*/
|
|
2750
2750
|
"hue-rotate": [{
|
|
2751
|
-
"hue-rotate": [ae,
|
|
2751
|
+
"hue-rotate": [ae, X, Y]
|
|
2752
2752
|
}],
|
|
2753
2753
|
/**
|
|
2754
2754
|
* Invert
|
|
2755
2755
|
* @see https://tailwindcss.com/docs/invert
|
|
2756
2756
|
*/
|
|
2757
2757
|
invert: [{
|
|
2758
|
-
invert: ["", ae,
|
|
2758
|
+
invert: ["", ae, X, Y]
|
|
2759
2759
|
}],
|
|
2760
2760
|
/**
|
|
2761
2761
|
* Saturate
|
|
2762
2762
|
* @see https://tailwindcss.com/docs/saturate
|
|
2763
2763
|
*/
|
|
2764
2764
|
saturate: [{
|
|
2765
|
-
saturate: [ae,
|
|
2765
|
+
saturate: [ae, X, Y]
|
|
2766
2766
|
}],
|
|
2767
2767
|
/**
|
|
2768
2768
|
* Sepia
|
|
2769
2769
|
* @see https://tailwindcss.com/docs/sepia
|
|
2770
2770
|
*/
|
|
2771
2771
|
sepia: [{
|
|
2772
|
-
sepia: ["", ae,
|
|
2772
|
+
sepia: ["", ae, X, Y]
|
|
2773
2773
|
}],
|
|
2774
2774
|
/**
|
|
2775
2775
|
* Backdrop Filter
|
|
@@ -2780,8 +2780,8 @@ const xe = (e) => {
|
|
|
2780
2780
|
// Deprecated since Tailwind CSS v3.0.0
|
|
2781
2781
|
"",
|
|
2782
2782
|
"none",
|
|
2783
|
-
|
|
2784
|
-
|
|
2783
|
+
X,
|
|
2784
|
+
Y
|
|
2785
2785
|
]
|
|
2786
2786
|
}],
|
|
2787
2787
|
/**
|
|
@@ -2789,63 +2789,63 @@ const xe = (e) => {
|
|
|
2789
2789
|
* @see https://tailwindcss.com/docs/backdrop-blur
|
|
2790
2790
|
*/
|
|
2791
2791
|
"backdrop-blur": [{
|
|
2792
|
-
"backdrop-blur":
|
|
2792
|
+
"backdrop-blur": K()
|
|
2793
2793
|
}],
|
|
2794
2794
|
/**
|
|
2795
2795
|
* Backdrop Brightness
|
|
2796
2796
|
* @see https://tailwindcss.com/docs/backdrop-brightness
|
|
2797
2797
|
*/
|
|
2798
2798
|
"backdrop-brightness": [{
|
|
2799
|
-
"backdrop-brightness": [ae,
|
|
2799
|
+
"backdrop-brightness": [ae, X, Y]
|
|
2800
2800
|
}],
|
|
2801
2801
|
/**
|
|
2802
2802
|
* Backdrop Contrast
|
|
2803
2803
|
* @see https://tailwindcss.com/docs/backdrop-contrast
|
|
2804
2804
|
*/
|
|
2805
2805
|
"backdrop-contrast": [{
|
|
2806
|
-
"backdrop-contrast": [ae,
|
|
2806
|
+
"backdrop-contrast": [ae, X, Y]
|
|
2807
2807
|
}],
|
|
2808
2808
|
/**
|
|
2809
2809
|
* Backdrop Grayscale
|
|
2810
2810
|
* @see https://tailwindcss.com/docs/backdrop-grayscale
|
|
2811
2811
|
*/
|
|
2812
2812
|
"backdrop-grayscale": [{
|
|
2813
|
-
"backdrop-grayscale": ["", ae,
|
|
2813
|
+
"backdrop-grayscale": ["", ae, X, Y]
|
|
2814
2814
|
}],
|
|
2815
2815
|
/**
|
|
2816
2816
|
* Backdrop Hue Rotate
|
|
2817
2817
|
* @see https://tailwindcss.com/docs/backdrop-hue-rotate
|
|
2818
2818
|
*/
|
|
2819
2819
|
"backdrop-hue-rotate": [{
|
|
2820
|
-
"backdrop-hue-rotate": [ae,
|
|
2820
|
+
"backdrop-hue-rotate": [ae, X, Y]
|
|
2821
2821
|
}],
|
|
2822
2822
|
/**
|
|
2823
2823
|
* Backdrop Invert
|
|
2824
2824
|
* @see https://tailwindcss.com/docs/backdrop-invert
|
|
2825
2825
|
*/
|
|
2826
2826
|
"backdrop-invert": [{
|
|
2827
|
-
"backdrop-invert": ["", ae,
|
|
2827
|
+
"backdrop-invert": ["", ae, X, Y]
|
|
2828
2828
|
}],
|
|
2829
2829
|
/**
|
|
2830
2830
|
* Backdrop Opacity
|
|
2831
2831
|
* @see https://tailwindcss.com/docs/backdrop-opacity
|
|
2832
2832
|
*/
|
|
2833
2833
|
"backdrop-opacity": [{
|
|
2834
|
-
"backdrop-opacity": [ae,
|
|
2834
|
+
"backdrop-opacity": [ae, X, Y]
|
|
2835
2835
|
}],
|
|
2836
2836
|
/**
|
|
2837
2837
|
* Backdrop Saturate
|
|
2838
2838
|
* @see https://tailwindcss.com/docs/backdrop-saturate
|
|
2839
2839
|
*/
|
|
2840
2840
|
"backdrop-saturate": [{
|
|
2841
|
-
"backdrop-saturate": [ae,
|
|
2841
|
+
"backdrop-saturate": [ae, X, Y]
|
|
2842
2842
|
}],
|
|
2843
2843
|
/**
|
|
2844
2844
|
* Backdrop Sepia
|
|
2845
2845
|
* @see https://tailwindcss.com/docs/backdrop-sepia
|
|
2846
2846
|
*/
|
|
2847
2847
|
"backdrop-sepia": [{
|
|
2848
|
-
"backdrop-sepia": ["", ae,
|
|
2848
|
+
"backdrop-sepia": ["", ae, X, Y]
|
|
2849
2849
|
}],
|
|
2850
2850
|
// --------------
|
|
2851
2851
|
// --- Tables ---
|
|
@@ -2900,7 +2900,7 @@ const xe = (e) => {
|
|
|
2900
2900
|
* @see https://tailwindcss.com/docs/transition-property
|
|
2901
2901
|
*/
|
|
2902
2902
|
transition: [{
|
|
2903
|
-
transition: ["", "all", "colors", "opacity", "shadow", "transform", "none",
|
|
2903
|
+
transition: ["", "all", "colors", "opacity", "shadow", "transform", "none", X, Y]
|
|
2904
2904
|
}],
|
|
2905
2905
|
/**
|
|
2906
2906
|
* Transition Behavior
|
|
@@ -2914,28 +2914,28 @@ const xe = (e) => {
|
|
|
2914
2914
|
* @see https://tailwindcss.com/docs/transition-duration
|
|
2915
2915
|
*/
|
|
2916
2916
|
duration: [{
|
|
2917
|
-
duration: [ae, "initial",
|
|
2917
|
+
duration: [ae, "initial", X, Y]
|
|
2918
2918
|
}],
|
|
2919
2919
|
/**
|
|
2920
2920
|
* Transition Timing Function
|
|
2921
2921
|
* @see https://tailwindcss.com/docs/transition-timing-function
|
|
2922
2922
|
*/
|
|
2923
2923
|
ease: [{
|
|
2924
|
-
ease: ["linear", "initial", y,
|
|
2924
|
+
ease: ["linear", "initial", y, X, Y]
|
|
2925
2925
|
}],
|
|
2926
2926
|
/**
|
|
2927
2927
|
* Transition Delay
|
|
2928
2928
|
* @see https://tailwindcss.com/docs/transition-delay
|
|
2929
2929
|
*/
|
|
2930
2930
|
delay: [{
|
|
2931
|
-
delay: [ae,
|
|
2931
|
+
delay: [ae, X, Y]
|
|
2932
2932
|
}],
|
|
2933
2933
|
/**
|
|
2934
2934
|
* Animation
|
|
2935
2935
|
* @see https://tailwindcss.com/docs/animation
|
|
2936
2936
|
*/
|
|
2937
2937
|
animate: [{
|
|
2938
|
-
animate: ["none", x,
|
|
2938
|
+
animate: ["none", x, X, Y]
|
|
2939
2939
|
}],
|
|
2940
2940
|
// ------------------
|
|
2941
2941
|
// --- Transforms ---
|
|
@@ -2952,7 +2952,7 @@ const xe = (e) => {
|
|
|
2952
2952
|
* @see https://tailwindcss.com/docs/perspective
|
|
2953
2953
|
*/
|
|
2954
2954
|
perspective: [{
|
|
2955
|
-
perspective: [v,
|
|
2955
|
+
perspective: [v, X, Y]
|
|
2956
2956
|
}],
|
|
2957
2957
|
/**
|
|
2958
2958
|
* Perspective Origin
|
|
@@ -2966,28 +2966,28 @@ const xe = (e) => {
|
|
|
2966
2966
|
* @see https://tailwindcss.com/docs/rotate
|
|
2967
2967
|
*/
|
|
2968
2968
|
rotate: [{
|
|
2969
|
-
rotate:
|
|
2969
|
+
rotate: ee()
|
|
2970
2970
|
}],
|
|
2971
2971
|
/**
|
|
2972
2972
|
* Rotate X
|
|
2973
2973
|
* @see https://tailwindcss.com/docs/rotate
|
|
2974
2974
|
*/
|
|
2975
2975
|
"rotate-x": [{
|
|
2976
|
-
"rotate-x":
|
|
2976
|
+
"rotate-x": ee()
|
|
2977
2977
|
}],
|
|
2978
2978
|
/**
|
|
2979
2979
|
* Rotate Y
|
|
2980
2980
|
* @see https://tailwindcss.com/docs/rotate
|
|
2981
2981
|
*/
|
|
2982
2982
|
"rotate-y": [{
|
|
2983
|
-
"rotate-y":
|
|
2983
|
+
"rotate-y": ee()
|
|
2984
2984
|
}],
|
|
2985
2985
|
/**
|
|
2986
2986
|
* Rotate Z
|
|
2987
2987
|
* @see https://tailwindcss.com/docs/rotate
|
|
2988
2988
|
*/
|
|
2989
2989
|
"rotate-z": [{
|
|
2990
|
-
"rotate-z":
|
|
2990
|
+
"rotate-z": ee()
|
|
2991
2991
|
}],
|
|
2992
2992
|
/**
|
|
2993
2993
|
* Scale
|
|
@@ -3048,7 +3048,7 @@ const xe = (e) => {
|
|
|
3048
3048
|
* @see https://tailwindcss.com/docs/transform
|
|
3049
3049
|
*/
|
|
3050
3050
|
transform: [{
|
|
3051
|
-
transform: [
|
|
3051
|
+
transform: [X, Y, "", "none", "gpu", "cpu"]
|
|
3052
3052
|
}],
|
|
3053
3053
|
/**
|
|
3054
3054
|
* Transform Origin
|
|
@@ -3133,7 +3133,7 @@ const xe = (e) => {
|
|
|
3133
3133
|
* @see https://tailwindcss.com/docs/cursor
|
|
3134
3134
|
*/
|
|
3135
3135
|
cursor: [{
|
|
3136
|
-
cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out",
|
|
3136
|
+
cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", X, Y]
|
|
3137
3137
|
}],
|
|
3138
3138
|
/**
|
|
3139
3139
|
* Field Sizing
|
|
@@ -3355,7 +3355,7 @@ const xe = (e) => {
|
|
|
3355
3355
|
* @see https://tailwindcss.com/docs/will-change
|
|
3356
3356
|
*/
|
|
3357
3357
|
"will-change": [{
|
|
3358
|
-
"will-change": ["auto", "scroll", "contents", "transform",
|
|
3358
|
+
"will-change": ["auto", "scroll", "contents", "transform", X, Y]
|
|
3359
3359
|
}],
|
|
3360
3360
|
// -----------
|
|
3361
3361
|
// --- SVG ---
|
|
@@ -4614,17 +4614,17 @@ const Tv = (e) => ({
|
|
|
4614
4614
|
}, m = ua(o), b = da(m), v = await i.getDimensions(u), h = m === "y", y = h ? "top" : "left", x = h ? "bottom" : "right", C = h ? "clientHeight" : "clientWidth", S = a.reference[b] + a.reference[m] - g[m] - a.floating[b], P = g[m] - a.reference[m], k = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(u));
|
|
4615
4615
|
let T = k ? k[C] : 0;
|
|
4616
4616
|
(!T || !await (i.isElement == null ? void 0 : i.isElement(k))) && (T = l.floating[C] || a.floating[b]);
|
|
4617
|
-
const R = S / 2 - P / 2, F = T / 2 - v[b] / 2 - 1, U = pt(p[y], F), re = pt(p[x], F),
|
|
4617
|
+
const R = S / 2 - P / 2, F = T / 2 - v[b] / 2 - 1, U = pt(p[y], F), re = pt(p[x], F), te = U, Q = T - v[b] - re, W = T / 2 - v[b] / 2 + R, O = $o(te, W, Q), _ = !d.arrow && or(o) != null && W !== O && a.reference[b] / 2 - (W < te ? U : re) - v[b] / 2 < 0, M = _ ? W < te ? W - te : W - Q : 0;
|
|
4618
4618
|
return {
|
|
4619
|
-
[m]: g[m] +
|
|
4619
|
+
[m]: g[m] + M,
|
|
4620
4620
|
data: {
|
|
4621
|
-
[m]:
|
|
4622
|
-
centerOffset:
|
|
4623
|
-
...
|
|
4624
|
-
alignmentOffset:
|
|
4621
|
+
[m]: O,
|
|
4622
|
+
centerOffset: W - O - M,
|
|
4623
|
+
..._ && {
|
|
4624
|
+
alignmentOffset: M
|
|
4625
4625
|
}
|
|
4626
4626
|
},
|
|
4627
|
-
reset:
|
|
4627
|
+
reset: _
|
|
4628
4628
|
};
|
|
4629
4629
|
}
|
|
4630
4630
|
}), Av = function(e) {
|
|
@@ -4656,33 +4656,33 @@ const Tv = (e) => ({
|
|
|
4656
4656
|
const T = [l, ...P], R = await Cr(t, h), F = [];
|
|
4657
4657
|
let U = ((n = a.flip) == null ? void 0 : n.overflows) || [];
|
|
4658
4658
|
if (f && F.push(R[y]), p) {
|
|
4659
|
-
const
|
|
4660
|
-
F.push(R[
|
|
4659
|
+
const W = Cv(o, i, S);
|
|
4660
|
+
F.push(R[W[0]], R[W[1]]);
|
|
4661
4661
|
}
|
|
4662
4662
|
if (U = [...U, {
|
|
4663
4663
|
placement: o,
|
|
4664
4664
|
overflows: F
|
|
4665
|
-
}], !F.every((
|
|
4666
|
-
var re,
|
|
4667
|
-
const
|
|
4668
|
-
if (
|
|
4665
|
+
}], !F.every((W) => W <= 0)) {
|
|
4666
|
+
var re, te;
|
|
4667
|
+
const W = (((re = a.flip) == null ? void 0 : re.index) || 0) + 1, O = T[W];
|
|
4668
|
+
if (O && (!(p === "alignment" ? x !== Xe(O) : !1) || // We leave the current main axis only if every placement on that axis
|
|
4669
4669
|
// overflows the main axis.
|
|
4670
4670
|
U.every((E) => Xe(E.placement) === x ? E.overflows[0] > 0 : !0)))
|
|
4671
4671
|
return {
|
|
4672
4672
|
data: {
|
|
4673
|
-
index:
|
|
4673
|
+
index: W,
|
|
4674
4674
|
overflows: U
|
|
4675
4675
|
},
|
|
4676
4676
|
reset: {
|
|
4677
|
-
placement:
|
|
4677
|
+
placement: O
|
|
4678
4678
|
}
|
|
4679
4679
|
};
|
|
4680
|
-
let
|
|
4681
|
-
if (!
|
|
4680
|
+
let _ = (te = U.filter((M) => M.overflows[0] <= 0).sort((M, E) => M.overflows[1] - E.overflows[1])[0]) == null ? void 0 : te.placement;
|
|
4681
|
+
if (!_)
|
|
4682
4682
|
switch (m) {
|
|
4683
4683
|
case "bestFit": {
|
|
4684
|
-
var
|
|
4685
|
-
const
|
|
4684
|
+
var Q;
|
|
4685
|
+
const M = (Q = U.filter((E) => {
|
|
4686
4686
|
if (k) {
|
|
4687
4687
|
const I = Xe(E.placement);
|
|
4688
4688
|
return I === x || // Create a bias to the `y` side axis due to horizontal
|
|
@@ -4690,18 +4690,18 @@ const Tv = (e) => ({
|
|
|
4690
4690
|
I === "y";
|
|
4691
4691
|
}
|
|
4692
4692
|
return !0;
|
|
4693
|
-
}).map((E) => [E.placement, E.overflows.filter((I) => I > 0).reduce((I, V) => I + V, 0)]).sort((E, I) => E[1] - I[1])[0]) == null ? void 0 :
|
|
4694
|
-
|
|
4693
|
+
}).map((E) => [E.placement, E.overflows.filter((I) => I > 0).reduce((I, V) => I + V, 0)]).sort((E, I) => E[1] - I[1])[0]) == null ? void 0 : Q[0];
|
|
4694
|
+
M && (_ = M);
|
|
4695
4695
|
break;
|
|
4696
4696
|
}
|
|
4697
4697
|
case "initialPlacement":
|
|
4698
|
-
|
|
4698
|
+
_ = l;
|
|
4699
4699
|
break;
|
|
4700
4700
|
}
|
|
4701
|
-
if (o !==
|
|
4701
|
+
if (o !== _)
|
|
4702
4702
|
return {
|
|
4703
4703
|
reset: {
|
|
4704
|
-
placement:
|
|
4704
|
+
placement: _
|
|
4705
4705
|
}
|
|
4706
4706
|
};
|
|
4707
4707
|
}
|
|
@@ -4933,8 +4933,8 @@ const Mv = function(e) {
|
|
|
4933
4933
|
const x = v - f.top - f.bottom, C = b - f.left - f.right, S = pt(v - f[h], x), P = pt(b - f[y], C), k = !t.middlewareData.shift;
|
|
4934
4934
|
let T = S, R = P;
|
|
4935
4935
|
if ((r = t.middlewareData.shift) != null && r.enabled.x && (R = C), (n = t.middlewareData.shift) != null && n.enabled.y && (T = x), k && !g) {
|
|
4936
|
-
const U = Ae(f.left, 0), re = Ae(f.right, 0),
|
|
4937
|
-
m ? R = b - 2 * (U !== 0 || re !== 0 ? U + re : Ae(f.left, f.right)) : T = v - 2 * (
|
|
4936
|
+
const U = Ae(f.left, 0), re = Ae(f.right, 0), te = Ae(f.top, 0), Q = Ae(f.bottom, 0);
|
|
4937
|
+
m ? R = b - 2 * (U !== 0 || re !== 0 ? U + re : Ae(f.left, f.right)) : T = v - 2 * (te !== 0 || Q !== 0 ? te + Q : Ae(f.top, f.bottom));
|
|
4938
4938
|
}
|
|
4939
4939
|
await d({
|
|
4940
4940
|
...t,
|
|
@@ -5522,7 +5522,7 @@ function bh(e) {
|
|
|
5522
5522
|
E !== k.current && (k.current = E, v(E));
|
|
5523
5523
|
}, []), C = c.useCallback((E) => {
|
|
5524
5524
|
E !== T.current && (T.current = E, y(E));
|
|
5525
|
-
}, []), S = a || b, P = i || h, k = c.useRef(null), T = c.useRef(null), R = c.useRef(f), F = d != null, U = xo(d), re = xo(o),
|
|
5525
|
+
}, []), S = a || b, P = i || h, k = c.useRef(null), T = c.useRef(null), R = c.useRef(f), F = d != null, U = xo(d), re = xo(o), te = xo(u), Q = c.useCallback(() => {
|
|
5526
5526
|
if (!k.current || !T.current)
|
|
5527
5527
|
return;
|
|
5528
5528
|
const E = {
|
|
@@ -5537,50 +5537,50 @@ function bh(e) {
|
|
|
5537
5537
|
// but still mounted (such as when transitioning out). To ensure
|
|
5538
5538
|
// `isPositioned` will be `false` initially on the next open, avoid
|
|
5539
5539
|
// setting it to `true` when `open === false` (must be specified).
|
|
5540
|
-
isPositioned:
|
|
5540
|
+
isPositioned: te.current !== !1
|
|
5541
5541
|
};
|
|
5542
|
-
|
|
5542
|
+
W.current && !fn(R.current, V) && (R.current = V, En.flushSync(() => {
|
|
5543
5543
|
p(V);
|
|
5544
5544
|
}));
|
|
5545
5545
|
});
|
|
5546
|
-
}, [g, t, r, re,
|
|
5546
|
+
}, [g, t, r, re, te]);
|
|
5547
5547
|
rn(() => {
|
|
5548
5548
|
u === !1 && R.current.isPositioned && (R.current.isPositioned = !1, p((E) => ({
|
|
5549
5549
|
...E,
|
|
5550
5550
|
isPositioned: !1
|
|
5551
5551
|
})));
|
|
5552
5552
|
}, [u]);
|
|
5553
|
-
const
|
|
5554
|
-
rn(() => (
|
|
5555
|
-
|
|
5553
|
+
const W = c.useRef(!1);
|
|
5554
|
+
rn(() => (W.current = !0, () => {
|
|
5555
|
+
W.current = !1;
|
|
5556
5556
|
}), []), rn(() => {
|
|
5557
5557
|
if (S && (k.current = S), P && (T.current = P), S && P) {
|
|
5558
5558
|
if (U.current)
|
|
5559
|
-
return U.current(S, P,
|
|
5560
|
-
|
|
5559
|
+
return U.current(S, P, Q);
|
|
5560
|
+
Q();
|
|
5561
5561
|
}
|
|
5562
|
-
}, [S, P,
|
|
5563
|
-
const
|
|
5562
|
+
}, [S, P, Q, U, F]);
|
|
5563
|
+
const O = c.useMemo(() => ({
|
|
5564
5564
|
reference: k,
|
|
5565
5565
|
floating: T,
|
|
5566
5566
|
setReference: x,
|
|
5567
5567
|
setFloating: C
|
|
5568
|
-
}), [x, C]),
|
|
5568
|
+
}), [x, C]), _ = c.useMemo(() => ({
|
|
5569
5569
|
reference: S,
|
|
5570
5570
|
floating: P
|
|
5571
|
-
}), [S, P]),
|
|
5571
|
+
}), [S, P]), M = c.useMemo(() => {
|
|
5572
5572
|
const E = {
|
|
5573
5573
|
position: r,
|
|
5574
5574
|
left: 0,
|
|
5575
5575
|
top: 0
|
|
5576
5576
|
};
|
|
5577
|
-
if (!
|
|
5577
|
+
if (!_.floating)
|
|
5578
5578
|
return E;
|
|
5579
|
-
const I = Ks(
|
|
5579
|
+
const I = Ks(_.floating, f.x), V = Ks(_.floating, f.y);
|
|
5580
5580
|
return l ? {
|
|
5581
5581
|
...E,
|
|
5582
5582
|
transform: "translate(" + I + "px, " + V + "px)",
|
|
5583
|
-
...hl(
|
|
5583
|
+
...hl(_.floating) >= 1.5 && {
|
|
5584
5584
|
willChange: "transform"
|
|
5585
5585
|
}
|
|
5586
5586
|
} : {
|
|
@@ -5588,14 +5588,14 @@ function bh(e) {
|
|
|
5588
5588
|
left: I,
|
|
5589
5589
|
top: V
|
|
5590
5590
|
};
|
|
5591
|
-
}, [r, l,
|
|
5591
|
+
}, [r, l, _.floating, f.x, f.y]);
|
|
5592
5592
|
return c.useMemo(() => ({
|
|
5593
5593
|
...f,
|
|
5594
|
-
update:
|
|
5595
|
-
refs:
|
|
5596
|
-
elements:
|
|
5597
|
-
floatingStyles:
|
|
5598
|
-
}), [f,
|
|
5594
|
+
update: Q,
|
|
5595
|
+
refs: O,
|
|
5596
|
+
elements: _,
|
|
5597
|
+
floatingStyles: M
|
|
5598
|
+
}), [f, Q, O, _, M]);
|
|
5599
5599
|
}
|
|
5600
5600
|
const yh = (e) => {
|
|
5601
5601
|
function t(r) {
|
|
@@ -5696,7 +5696,7 @@ var Cl = "PopperAnchor", Sl = c.forwardRef(
|
|
|
5696
5696
|
Sl.displayName = Cl;
|
|
5697
5697
|
var ha = "PopperContent", [Ah, _h] = bl(ha), El = c.forwardRef(
|
|
5698
5698
|
(e, t) => {
|
|
5699
|
-
var
|
|
5699
|
+
var A, K, ee, oe, ce, ie;
|
|
5700
5700
|
const {
|
|
5701
5701
|
__scopePopper: r,
|
|
5702
5702
|
side: n = "bottom",
|
|
@@ -5712,12 +5712,12 @@ var ha = "PopperContent", [Ah, _h] = bl(ha), El = c.forwardRef(
|
|
|
5712
5712
|
updatePositionStrategy: m = "optimized",
|
|
5713
5713
|
onPlaced: b,
|
|
5714
5714
|
...v
|
|
5715
|
-
} = e, h = yl(ha, r), [y, x] = c.useState(null), C = se(t, (Re) => x(Re)), [S, P] = c.useState(null), k = ga(S), T = (k == null ? void 0 : k.width) ?? 0, R = (k == null ? void 0 : k.height) ?? 0, F = n + (a !== "center" ? "-" + a : ""), U = typeof f == "number" ? f : { top: 0, right: 0, bottom: 0, left: 0, ...f }, re = Array.isArray(u) ? u : [u],
|
|
5715
|
+
} = e, h = yl(ha, r), [y, x] = c.useState(null), C = se(t, (Re) => x(Re)), [S, P] = c.useState(null), k = ga(S), T = (k == null ? void 0 : k.width) ?? 0, R = (k == null ? void 0 : k.height) ?? 0, F = n + (a !== "center" ? "-" + a : ""), U = typeof f == "number" ? f : { top: 0, right: 0, bottom: 0, left: 0, ...f }, re = Array.isArray(u) ? u : [u], te = re.length > 0, Q = {
|
|
5716
5716
|
padding: U,
|
|
5717
5717
|
boundary: re.filter(Mh),
|
|
5718
5718
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
5719
|
-
altBoundary:
|
|
5720
|
-
}, { refs:
|
|
5719
|
+
altBoundary: te
|
|
5720
|
+
}, { refs: W, floatingStyles: O, placement: _, isPositioned: M, middlewareData: E } = bh({
|
|
5721
5721
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
5722
5722
|
strategy: "fixed",
|
|
5723
5723
|
placement: F,
|
|
@@ -5733,11 +5733,11 @@ var ha = "PopperContent", [Ah, _h] = bl(ha), El = c.forwardRef(
|
|
|
5733
5733
|
mainAxis: !0,
|
|
5734
5734
|
crossAxis: !1,
|
|
5735
5735
|
limiter: p === "partial" ? Sh() : void 0,
|
|
5736
|
-
...
|
|
5736
|
+
...Q
|
|
5737
5737
|
}),
|
|
5738
|
-
d && Eh({ ...
|
|
5738
|
+
d && Eh({ ...Q }),
|
|
5739
5739
|
Rh({
|
|
5740
|
-
...
|
|
5740
|
+
...Q,
|
|
5741
5741
|
apply: ({ elements: Re, rects: Me, availableWidth: Ue, availableHeight: $e }) => {
|
|
5742
5742
|
const { width: it, height: qr } = Me.reference, tt = Re.floating.style;
|
|
5743
5743
|
tt.setProperty("--radix-popper-available-width", `${Ue}px`), tt.setProperty("--radix-popper-available-height", `${$e}px`), tt.setProperty("--radix-popper-anchor-width", `${it}px`), tt.setProperty("--radix-popper-anchor-height", `${qr}px`);
|
|
@@ -5745,26 +5745,26 @@ var ha = "PopperContent", [Ah, _h] = bl(ha), El = c.forwardRef(
|
|
|
5745
5745
|
}),
|
|
5746
5746
|
S && jh({ element: S, padding: l }),
|
|
5747
5747
|
Oh({ arrowWidth: T, arrowHeight: R }),
|
|
5748
|
-
g && Ph({ strategy: "referenceHidden", ...
|
|
5748
|
+
g && Ph({ strategy: "referenceHidden", ...Q })
|
|
5749
5749
|
]
|
|
5750
|
-
}), [I, V] = jl(
|
|
5750
|
+
}), [I, V] = jl(_), J = Fe(b);
|
|
5751
5751
|
ye(() => {
|
|
5752
|
-
|
|
5753
|
-
}, [
|
|
5754
|
-
const N = (
|
|
5752
|
+
M && (J == null || J());
|
|
5753
|
+
}, [M, J]);
|
|
5754
|
+
const N = (A = E.arrow) == null ? void 0 : A.x, B = (K = E.arrow) == null ? void 0 : K.y, Z = ((ee = E.arrow) == null ? void 0 : ee.centerOffset) !== 0, [z, $] = c.useState();
|
|
5755
5755
|
return ye(() => {
|
|
5756
|
-
y &&
|
|
5756
|
+
y && $(window.getComputedStyle(y).zIndex);
|
|
5757
5757
|
}, [y]), /* @__PURE__ */ s.jsx(
|
|
5758
5758
|
"div",
|
|
5759
5759
|
{
|
|
5760
|
-
ref:
|
|
5760
|
+
ref: W.setFloating,
|
|
5761
5761
|
"data-radix-popper-content-wrapper": "",
|
|
5762
5762
|
style: {
|
|
5763
|
-
...
|
|
5764
|
-
transform:
|
|
5763
|
+
...O,
|
|
5764
|
+
transform: M ? O.transform : "translate(0, -200%)",
|
|
5765
5765
|
// keep off the page when measuring
|
|
5766
5766
|
minWidth: "max-content",
|
|
5767
|
-
zIndex:
|
|
5767
|
+
zIndex: z,
|
|
5768
5768
|
"--radix-popper-transform-origin": [
|
|
5769
5769
|
(oe = E.transformOrigin) == null ? void 0 : oe.x,
|
|
5770
5770
|
(ce = E.transformOrigin) == null ? void 0 : ce.y
|
|
@@ -5786,7 +5786,7 @@ var ha = "PopperContent", [Ah, _h] = bl(ha), El = c.forwardRef(
|
|
|
5786
5786
|
onArrowChange: P,
|
|
5787
5787
|
arrowX: N,
|
|
5788
5788
|
arrowY: B,
|
|
5789
|
-
shouldHideArrow:
|
|
5789
|
+
shouldHideArrow: Z,
|
|
5790
5790
|
children: /* @__PURE__ */ s.jsx(
|
|
5791
5791
|
H.div,
|
|
5792
5792
|
{
|
|
@@ -5798,7 +5798,7 @@ var ha = "PopperContent", [Ah, _h] = bl(ha), El = c.forwardRef(
|
|
|
5798
5798
|
...v.style,
|
|
5799
5799
|
// if the PopperContent hasn't been placed yet (not all measurements done)
|
|
5800
5800
|
// we prevent animations so that users's animation don't kick in too early referring wrong sides
|
|
5801
|
-
animation:
|
|
5801
|
+
animation: M ? void 0 : "none"
|
|
5802
5802
|
}
|
|
5803
5803
|
}
|
|
5804
5804
|
)
|
|
@@ -6510,7 +6510,7 @@ var jx = [" ", "Enter", "ArrowUp", "ArrowDown"], Nx = [" ", "Enter"], Tt = "Sele
|
|
|
6510
6510
|
defaultProp: l,
|
|
6511
6511
|
onChange: d,
|
|
6512
6512
|
caller: Tt
|
|
6513
|
-
}), re = c.useRef(null),
|
|
6513
|
+
}), re = c.useRef(null), te = h ? b || !!h.closest("form") : !0, [Q, W] = c.useState(/* @__PURE__ */ new Set()), O = Array.from(Q).map((_) => _.props.value).join(";");
|
|
6514
6514
|
return /* @__PURE__ */ s.jsx(Ar, { ...v, children: /* @__PURE__ */ s.jsxs(
|
|
6515
6515
|
Tx,
|
|
6516
6516
|
{
|
|
@@ -6535,19 +6535,19 @@ var jx = [" ", "Enter", "ArrowUp", "ArrowDown"], Nx = [" ", "Enter"], Tt = "Sele
|
|
|
6535
6535
|
Ax,
|
|
6536
6536
|
{
|
|
6537
6537
|
scope: e.__scopeSelect,
|
|
6538
|
-
onNativeOptionAdd: c.useCallback((
|
|
6539
|
-
|
|
6538
|
+
onNativeOptionAdd: c.useCallback((_) => {
|
|
6539
|
+
W((M) => new Set(M).add(_));
|
|
6540
6540
|
}, []),
|
|
6541
|
-
onNativeOptionRemove: c.useCallback((
|
|
6542
|
-
|
|
6543
|
-
const E = new Set(
|
|
6544
|
-
return E.delete(
|
|
6541
|
+
onNativeOptionRemove: c.useCallback((_) => {
|
|
6542
|
+
W((M) => {
|
|
6543
|
+
const E = new Set(M);
|
|
6544
|
+
return E.delete(_), E;
|
|
6545
6545
|
});
|
|
6546
6546
|
}, []),
|
|
6547
6547
|
children: r
|
|
6548
6548
|
}
|
|
6549
6549
|
) }),
|
|
6550
|
-
|
|
6550
|
+
te ? /* @__PURE__ */ s.jsxs(
|
|
6551
6551
|
cc,
|
|
6552
6552
|
{
|
|
6553
6553
|
"aria-hidden": !0,
|
|
@@ -6556,15 +6556,15 @@ var jx = [" ", "Enter", "ArrowUp", "ArrowDown"], Nx = [" ", "Enter"], Tt = "Sele
|
|
|
6556
6556
|
name: f,
|
|
6557
6557
|
autoComplete: p,
|
|
6558
6558
|
value: F,
|
|
6559
|
-
onChange: (
|
|
6559
|
+
onChange: (_) => U(_.target.value),
|
|
6560
6560
|
disabled: g,
|
|
6561
6561
|
form: b,
|
|
6562
6562
|
children: [
|
|
6563
6563
|
F === void 0 ? /* @__PURE__ */ s.jsx("option", { value: "" }) : null,
|
|
6564
|
-
Array.from(
|
|
6564
|
+
Array.from(Q)
|
|
6565
6565
|
]
|
|
6566
6566
|
},
|
|
6567
|
-
|
|
6567
|
+
O
|
|
6568
6568
|
) : null
|
|
6569
6569
|
]
|
|
6570
6570
|
}
|
|
@@ -6679,65 +6679,65 @@ var Le = 10, [Ul, xt] = ir(At), Ox = "SelectContentImpl", Dx = /* @__PURE__ */ f
|
|
|
6679
6679
|
avoidCollisions: h,
|
|
6680
6680
|
//
|
|
6681
6681
|
...y
|
|
6682
|
-
} = e, x = ht(At, r), [C, S] = c.useState(null), [P, k] = c.useState(null), T = se(t, (
|
|
6682
|
+
} = e, x = ht(At, r), [C, S] = c.useState(null), [P, k] = c.useState(null), T = se(t, (A) => S(A)), [R, F] = c.useState(null), [U, re] = c.useState(
|
|
6683
6683
|
null
|
|
6684
|
-
),
|
|
6684
|
+
), te = Vn(r), [Q, W] = c.useState(!1), O = c.useRef(!1);
|
|
6685
6685
|
c.useEffect(() => {
|
|
6686
6686
|
if (C) return $n(C);
|
|
6687
6687
|
}, [C]), Tn();
|
|
6688
|
-
const
|
|
6689
|
-
(
|
|
6690
|
-
const [
|
|
6691
|
-
for (const ie of
|
|
6692
|
-
if (ie === ce || (ie == null || ie.scrollIntoView({ block: "nearest" }), ie ===
|
|
6688
|
+
const _ = c.useCallback(
|
|
6689
|
+
(A) => {
|
|
6690
|
+
const [K, ...ee] = te().map((ie) => ie.ref.current), [oe] = ee.slice(-1), ce = document.activeElement;
|
|
6691
|
+
for (const ie of A)
|
|
6692
|
+
if (ie === ce || (ie == null || ie.scrollIntoView({ block: "nearest" }), ie === K && P && (P.scrollTop = 0), ie === oe && P && (P.scrollTop = P.scrollHeight), ie == null || ie.focus(), document.activeElement !== ce)) return;
|
|
6693
6693
|
},
|
|
6694
|
-
[
|
|
6695
|
-
),
|
|
6696
|
-
() =>
|
|
6697
|
-
[
|
|
6694
|
+
[te, P]
|
|
6695
|
+
), M = c.useCallback(
|
|
6696
|
+
() => _([R, C]),
|
|
6697
|
+
[_, R, C]
|
|
6698
6698
|
);
|
|
6699
6699
|
c.useEffect(() => {
|
|
6700
|
-
|
|
6701
|
-
}, [
|
|
6700
|
+
Q && M();
|
|
6701
|
+
}, [Q, M]);
|
|
6702
6702
|
const { onOpenChange: E, triggerPointerDownPosRef: I } = x;
|
|
6703
6703
|
c.useEffect(() => {
|
|
6704
6704
|
if (C) {
|
|
6705
|
-
let
|
|
6706
|
-
const
|
|
6705
|
+
let A = { x: 0, y: 0 };
|
|
6706
|
+
const K = (oe) => {
|
|
6707
6707
|
var ce, ie;
|
|
6708
|
-
|
|
6708
|
+
A = {
|
|
6709
6709
|
x: Math.abs(Math.round(oe.pageX) - (((ce = I.current) == null ? void 0 : ce.x) ?? 0)),
|
|
6710
6710
|
y: Math.abs(Math.round(oe.pageY) - (((ie = I.current) == null ? void 0 : ie.y) ?? 0))
|
|
6711
6711
|
};
|
|
6712
|
-
},
|
|
6713
|
-
|
|
6712
|
+
}, ee = (oe) => {
|
|
6713
|
+
A.x <= 10 && A.y <= 10 ? oe.preventDefault() : C.contains(oe.target) || E(!1), document.removeEventListener("pointermove", K), I.current = null;
|
|
6714
6714
|
};
|
|
6715
|
-
return I.current !== null && (document.addEventListener("pointermove",
|
|
6716
|
-
document.removeEventListener("pointermove",
|
|
6715
|
+
return I.current !== null && (document.addEventListener("pointermove", K), document.addEventListener("pointerup", ee, { capture: !0, once: !0 })), () => {
|
|
6716
|
+
document.removeEventListener("pointermove", K), document.removeEventListener("pointerup", ee, { capture: !0 });
|
|
6717
6717
|
};
|
|
6718
6718
|
}
|
|
6719
6719
|
}, [C, E, I]), c.useEffect(() => {
|
|
6720
|
-
const
|
|
6721
|
-
return window.addEventListener("blur",
|
|
6722
|
-
window.removeEventListener("blur",
|
|
6720
|
+
const A = () => E(!1);
|
|
6721
|
+
return window.addEventListener("blur", A), window.addEventListener("resize", A), () => {
|
|
6722
|
+
window.removeEventListener("blur", A), window.removeEventListener("resize", A);
|
|
6723
6723
|
};
|
|
6724
6724
|
}, [E]);
|
|
6725
|
-
const [V,
|
|
6726
|
-
const
|
|
6725
|
+
const [V, J] = uc((A) => {
|
|
6726
|
+
const K = te().filter((ce) => !ce.disabled), ee = K.find((ce) => ce.ref.current === document.activeElement), oe = fc(K, A, ee);
|
|
6727
6727
|
oe && setTimeout(() => oe.ref.current.focus());
|
|
6728
6728
|
}), N = c.useCallback(
|
|
6729
|
-
(
|
|
6730
|
-
const oe = !
|
|
6731
|
-
(x.value !== void 0 && x.value ===
|
|
6729
|
+
(A, K, ee) => {
|
|
6730
|
+
const oe = !O.current && !ee;
|
|
6731
|
+
(x.value !== void 0 && x.value === K || oe) && (F(A), oe && (O.current = !0));
|
|
6732
6732
|
},
|
|
6733
6733
|
[x.value]
|
|
6734
|
-
), B = c.useCallback(() => C == null ? void 0 : C.focus(), [C]),
|
|
6735
|
-
(
|
|
6736
|
-
const oe = !
|
|
6737
|
-
(x.value !== void 0 && x.value ===
|
|
6734
|
+
), B = c.useCallback(() => C == null ? void 0 : C.focus(), [C]), Z = c.useCallback(
|
|
6735
|
+
(A, K, ee) => {
|
|
6736
|
+
const oe = !O.current && !ee;
|
|
6737
|
+
(x.value !== void 0 && x.value === K || oe) && re(A);
|
|
6738
6738
|
},
|
|
6739
6739
|
[x.value]
|
|
6740
|
-
),
|
|
6740
|
+
), z = n === "popper" ? Bo : Kl, $ = z === Bo ? {
|
|
6741
6741
|
side: l,
|
|
6742
6742
|
sideOffset: d,
|
|
6743
6743
|
align: u,
|
|
@@ -6759,23 +6759,23 @@ var Le = 10, [Ul, xt] = ir(At), Ox = "SelectContentImpl", Dx = /* @__PURE__ */ f
|
|
|
6759
6759
|
itemRefCallback: N,
|
|
6760
6760
|
selectedItem: R,
|
|
6761
6761
|
onItemLeave: B,
|
|
6762
|
-
itemTextRefCallback:
|
|
6763
|
-
focusSelectedItem:
|
|
6762
|
+
itemTextRefCallback: Z,
|
|
6763
|
+
focusSelectedItem: M,
|
|
6764
6764
|
selectedItemText: U,
|
|
6765
6765
|
position: n,
|
|
6766
|
-
isPositioned:
|
|
6766
|
+
isPositioned: Q,
|
|
6767
6767
|
searchRef: V,
|
|
6768
6768
|
children: /* @__PURE__ */ s.jsx(Ir, { as: Dx, allowPinchZoom: !0, children: /* @__PURE__ */ s.jsx(
|
|
6769
6769
|
kr,
|
|
6770
6770
|
{
|
|
6771
6771
|
asChild: !0,
|
|
6772
6772
|
trapped: x.open,
|
|
6773
|
-
onMountAutoFocus: (
|
|
6774
|
-
|
|
6773
|
+
onMountAutoFocus: (A) => {
|
|
6774
|
+
A.preventDefault();
|
|
6775
6775
|
},
|
|
6776
|
-
onUnmountAutoFocus: L(o, (
|
|
6777
|
-
var
|
|
6778
|
-
(
|
|
6776
|
+
onUnmountAutoFocus: L(o, (A) => {
|
|
6777
|
+
var K;
|
|
6778
|
+
(K = x.trigger) == null || K.focus({ preventScroll: !0 }), A.preventDefault();
|
|
6779
6779
|
}),
|
|
6780
6780
|
children: /* @__PURE__ */ s.jsx(
|
|
6781
6781
|
nr,
|
|
@@ -6784,19 +6784,19 @@ var Le = 10, [Ul, xt] = ir(At), Ox = "SelectContentImpl", Dx = /* @__PURE__ */ f
|
|
|
6784
6784
|
disableOutsidePointerEvents: !0,
|
|
6785
6785
|
onEscapeKeyDown: a,
|
|
6786
6786
|
onPointerDownOutside: i,
|
|
6787
|
-
onFocusOutside: (
|
|
6787
|
+
onFocusOutside: (A) => A.preventDefault(),
|
|
6788
6788
|
onDismiss: () => x.onOpenChange(!1),
|
|
6789
6789
|
children: /* @__PURE__ */ s.jsx(
|
|
6790
|
-
|
|
6790
|
+
z,
|
|
6791
6791
|
{
|
|
6792
6792
|
role: "listbox",
|
|
6793
6793
|
id: x.contentId,
|
|
6794
6794
|
"data-state": x.open ? "open" : "closed",
|
|
6795
6795
|
dir: x.dir,
|
|
6796
|
-
onContextMenu: (
|
|
6796
|
+
onContextMenu: (A) => A.preventDefault(),
|
|
6797
6797
|
...y,
|
|
6798
|
-
|
|
6799
|
-
onPlaced: () =>
|
|
6798
|
+
...$,
|
|
6799
|
+
onPlaced: () => W(!0),
|
|
6800
6800
|
ref: T,
|
|
6801
6801
|
style: {
|
|
6802
6802
|
// flex layout so we can place the scroll buttons properly
|
|
@@ -6806,15 +6806,15 @@ var Le = 10, [Ul, xt] = ir(At), Ox = "SelectContentImpl", Dx = /* @__PURE__ */ f
|
|
|
6806
6806
|
outline: "none",
|
|
6807
6807
|
...y.style
|
|
6808
6808
|
},
|
|
6809
|
-
onKeyDown: L(y.onKeyDown, (
|
|
6810
|
-
const
|
|
6811
|
-
if (
|
|
6812
|
-
let oe =
|
|
6813
|
-
if (["ArrowUp", "End"].includes(
|
|
6814
|
-
const ce =
|
|
6809
|
+
onKeyDown: L(y.onKeyDown, (A) => {
|
|
6810
|
+
const K = A.ctrlKey || A.altKey || A.metaKey;
|
|
6811
|
+
if (A.key === "Tab" && A.preventDefault(), !K && A.key.length === 1 && J(A.key), ["ArrowUp", "ArrowDown", "Home", "End"].includes(A.key)) {
|
|
6812
|
+
let oe = te().filter((ce) => !ce.disabled).map((ce) => ce.ref.current);
|
|
6813
|
+
if (["ArrowUp", "End"].includes(A.key) && (oe = oe.slice().reverse()), ["ArrowUp", "ArrowDown"].includes(A.key)) {
|
|
6814
|
+
const ce = A.target, ie = oe.indexOf(ce);
|
|
6815
6815
|
oe = oe.slice(ie + 1);
|
|
6816
6816
|
}
|
|
6817
|
-
setTimeout(() =>
|
|
6817
|
+
setTimeout(() => _(oe)), A.preventDefault();
|
|
6818
6818
|
}
|
|
6819
6819
|
})
|
|
6820
6820
|
}
|
|
@@ -6850,27 +6850,27 @@ var $x = "SelectItemAlignedPosition", Kl = c.forwardRef((e, t) => {
|
|
|
6850
6850
|
]);
|
|
6851
6851
|
l.style.minWidth = Me + "px", l.style.right = it + "px";
|
|
6852
6852
|
}
|
|
6853
|
-
const re = g(),
|
|
6854
|
-
if (
|
|
6853
|
+
const re = g(), te = window.innerHeight - Le * 2, Q = v.scrollHeight, W = window.getComputedStyle(u), O = parseInt(W.borderTopWidth, 10), _ = parseInt(W.paddingTop, 10), M = parseInt(W.borderBottomWidth, 10), E = parseInt(W.paddingBottom, 10), I = O + _ + Q + E + M, V = Math.min(h.offsetHeight * 5, I), J = window.getComputedStyle(v), N = parseInt(J.paddingTop, 10), B = parseInt(J.paddingBottom, 10), Z = T.top + T.height / 2 - Le, z = te - Z, $ = h.offsetHeight / 2, A = h.offsetTop + $, K = O + _ + A, ee = I - K;
|
|
6854
|
+
if (K <= Z) {
|
|
6855
6855
|
const ce = re.length > 0 && h === re[re.length - 1].ref.current;
|
|
6856
6856
|
l.style.bottom = "0px";
|
|
6857
6857
|
const ie = u.clientHeight - v.offsetTop - v.offsetHeight, Re = Math.max(
|
|
6858
|
-
|
|
6859
|
-
|
|
6860
|
-
(ce ? B : 0) + ie +
|
|
6861
|
-
), Me =
|
|
6858
|
+
z,
|
|
6859
|
+
$ + // viewport might have padding bottom, include it to avoid a scrollable viewport
|
|
6860
|
+
(ce ? B : 0) + ie + M
|
|
6861
|
+
), Me = K + Re;
|
|
6862
6862
|
l.style.height = Me + "px";
|
|
6863
6863
|
} else {
|
|
6864
6864
|
const ce = re.length > 0 && h === re[0].ref.current;
|
|
6865
6865
|
l.style.top = "0px";
|
|
6866
6866
|
const Re = Math.max(
|
|
6867
|
-
|
|
6868
|
-
|
|
6869
|
-
(ce ? N : 0) +
|
|
6870
|
-
) +
|
|
6871
|
-
l.style.height = Re + "px", v.scrollTop =
|
|
6867
|
+
Z,
|
|
6868
|
+
O + v.offsetTop + // viewport might have padding top, include it to avoid a scrollable viewport
|
|
6869
|
+
(ce ? N : 0) + $
|
|
6870
|
+
) + ee;
|
|
6871
|
+
l.style.height = Re + "px", v.scrollTop = K - Z + v.offsetTop;
|
|
6872
6872
|
}
|
|
6873
|
-
l.style.margin = `${Le}px 0`, l.style.minHeight = V + "px", l.style.maxHeight =
|
|
6873
|
+
l.style.margin = `${Le}px 0`, l.style.minHeight = V + "px", l.style.maxHeight = te + "px", n == null || n(), requestAnimationFrame(() => m.current = !0);
|
|
6874
6874
|
}
|
|
6875
6875
|
}, [
|
|
6876
6876
|
g,
|
|
@@ -7737,23 +7737,23 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
7737
7737
|
r.current.value = N, T.emit();
|
|
7738
7738
|
}
|
|
7739
7739
|
}, [f]), It(() => {
|
|
7740
|
-
k(6,
|
|
7740
|
+
k(6, Q);
|
|
7741
7741
|
}, []);
|
|
7742
|
-
let T = c.useMemo(() => ({ subscribe: (N) => (i.current.add(N), () => i.current.delete(N)), snapshot: () => r.current, setState: (N, B,
|
|
7743
|
-
var
|
|
7742
|
+
let T = c.useMemo(() => ({ subscribe: (N) => (i.current.add(N), () => i.current.delete(N)), snapshot: () => r.current, setState: (N, B, Z) => {
|
|
7743
|
+
var z, $, A, K;
|
|
7744
7744
|
if (!Object.is(r.current[N], B)) {
|
|
7745
|
-
if (r.current[N] = B, N === "search")
|
|
7745
|
+
if (r.current[N] = B, N === "search") te(), U(), k(1, re);
|
|
7746
7746
|
else if (N === "value") {
|
|
7747
7747
|
if (document.activeElement.hasAttribute("cmdk-input") || document.activeElement.hasAttribute("cmdk-root")) {
|
|
7748
|
-
let
|
|
7749
|
-
|
|
7748
|
+
let ee = document.getElementById(S);
|
|
7749
|
+
ee ? ee.focus() : (z = document.getElementById(x)) == null || z.focus();
|
|
7750
7750
|
}
|
|
7751
7751
|
if (k(7, () => {
|
|
7752
|
-
var
|
|
7753
|
-
r.current.selectedItemId = (
|
|
7754
|
-
}),
|
|
7755
|
-
let
|
|
7756
|
-
(
|
|
7752
|
+
var ee;
|
|
7753
|
+
r.current.selectedItemId = (ee = W()) == null ? void 0 : ee.id, T.emit();
|
|
7754
|
+
}), Z || k(5, Q), (($ = l.current) == null ? void 0 : $.value) !== void 0) {
|
|
7755
|
+
let ee = B ?? "";
|
|
7756
|
+
(K = (A = l.current).onValueChange) == null || K.call(A, ee);
|
|
7757
7757
|
return;
|
|
7758
7758
|
}
|
|
7759
7759
|
}
|
|
@@ -7761,110 +7761,110 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
7761
7761
|
}
|
|
7762
7762
|
}, emit: () => {
|
|
7763
7763
|
i.current.forEach((N) => N());
|
|
7764
|
-
} }), []), R = c.useMemo(() => ({ value: (N, B,
|
|
7765
|
-
var
|
|
7766
|
-
B !== ((
|
|
7764
|
+
} }), []), R = c.useMemo(() => ({ value: (N, B, Z) => {
|
|
7765
|
+
var z;
|
|
7766
|
+
B !== ((z = a.current.get(N)) == null ? void 0 : z.value) && (a.current.set(N, { value: B, keywords: Z }), r.current.filtered.items.set(N, F(B, Z)), k(2, () => {
|
|
7767
7767
|
U(), T.emit();
|
|
7768
7768
|
}));
|
|
7769
7769
|
}, item: (N, B) => (n.current.add(N), B && (o.current.has(B) ? o.current.get(B).add(N) : o.current.set(B, /* @__PURE__ */ new Set([N]))), k(3, () => {
|
|
7770
|
-
|
|
7770
|
+
te(), U(), r.current.value || re(), T.emit();
|
|
7771
7771
|
}), () => {
|
|
7772
7772
|
a.current.delete(N), n.current.delete(N), r.current.filtered.items.delete(N);
|
|
7773
|
-
let
|
|
7773
|
+
let Z = W();
|
|
7774
7774
|
k(4, () => {
|
|
7775
|
-
|
|
7775
|
+
te(), (Z == null ? void 0 : Z.getAttribute("id")) === N && re(), T.emit();
|
|
7776
7776
|
});
|
|
7777
7777
|
}), group: (N) => (o.current.has(N) || o.current.set(N, /* @__PURE__ */ new Set()), () => {
|
|
7778
7778
|
a.current.delete(N), o.current.delete(N);
|
|
7779
7779
|
}), filter: () => l.current.shouldFilter, label: d || e["aria-label"], getDisablePointerSelection: () => l.current.disablePointerSelection, listId: x, inputId: S, labelId: C, listInnerRef: P }), []);
|
|
7780
7780
|
function F(N, B) {
|
|
7781
|
-
var
|
|
7782
|
-
let
|
|
7783
|
-
return N ?
|
|
7781
|
+
var Z, z;
|
|
7782
|
+
let $ = (z = (Z = l.current) == null ? void 0 : Z.filter) != null ? z : Ab;
|
|
7783
|
+
return N ? $(N, r.current.search, B) : 0;
|
|
7784
7784
|
}
|
|
7785
7785
|
function U() {
|
|
7786
7786
|
if (!r.current.search || l.current.shouldFilter === !1) return;
|
|
7787
7787
|
let N = r.current.filtered.items, B = [];
|
|
7788
|
-
r.current.filtered.groups.forEach((
|
|
7789
|
-
let
|
|
7790
|
-
|
|
7791
|
-
let
|
|
7792
|
-
|
|
7793
|
-
}), B.push([
|
|
7788
|
+
r.current.filtered.groups.forEach((z) => {
|
|
7789
|
+
let $ = o.current.get(z), A = 0;
|
|
7790
|
+
$.forEach((K) => {
|
|
7791
|
+
let ee = N.get(K);
|
|
7792
|
+
A = Math.max(ee, A);
|
|
7793
|
+
}), B.push([z, A]);
|
|
7794
7794
|
});
|
|
7795
|
-
let
|
|
7796
|
-
|
|
7797
|
-
var
|
|
7798
|
-
let
|
|
7799
|
-
return ((
|
|
7800
|
-
}).forEach((
|
|
7801
|
-
let
|
|
7802
|
-
|
|
7803
|
-
}), B.sort((
|
|
7804
|
-
var
|
|
7805
|
-
let
|
|
7806
|
-
|
|
7795
|
+
let Z = P.current;
|
|
7796
|
+
O().sort((z, $) => {
|
|
7797
|
+
var A, K;
|
|
7798
|
+
let ee = z.getAttribute("id"), oe = $.getAttribute("id");
|
|
7799
|
+
return ((A = N.get(oe)) != null ? A : 0) - ((K = N.get(ee)) != null ? K : 0);
|
|
7800
|
+
}).forEach((z) => {
|
|
7801
|
+
let $ = z.closest(Ro);
|
|
7802
|
+
$ ? $.appendChild(z.parentElement === $ ? z : z.closest(`${Ro} > *`)) : Z.appendChild(z.parentElement === Z ? z : z.closest(`${Ro} > *`));
|
|
7803
|
+
}), B.sort((z, $) => $[1] - z[1]).forEach((z) => {
|
|
7804
|
+
var $;
|
|
7805
|
+
let A = ($ = P.current) == null ? void 0 : $.querySelector(`${pr}[${Ut}="${encodeURIComponent(z[0])}"]`);
|
|
7806
|
+
A == null || A.parentElement.appendChild(A);
|
|
7807
7807
|
});
|
|
7808
7808
|
}
|
|
7809
7809
|
function re() {
|
|
7810
|
-
let N =
|
|
7810
|
+
let N = O().find((Z) => Z.getAttribute("aria-disabled") !== "true"), B = N == null ? void 0 : N.getAttribute(Ut);
|
|
7811
7811
|
T.setState("value", B || void 0);
|
|
7812
7812
|
}
|
|
7813
|
-
function
|
|
7814
|
-
var N, B,
|
|
7813
|
+
function te() {
|
|
7814
|
+
var N, B, Z, z;
|
|
7815
7815
|
if (!r.current.search || l.current.shouldFilter === !1) {
|
|
7816
7816
|
r.current.filtered.count = n.current.size;
|
|
7817
7817
|
return;
|
|
7818
7818
|
}
|
|
7819
7819
|
r.current.filtered.groups = /* @__PURE__ */ new Set();
|
|
7820
|
-
let
|
|
7821
|
-
for (let
|
|
7822
|
-
let
|
|
7823
|
-
r.current.filtered.items.set(
|
|
7820
|
+
let $ = 0;
|
|
7821
|
+
for (let A of n.current) {
|
|
7822
|
+
let K = (B = (N = a.current.get(A)) == null ? void 0 : N.value) != null ? B : "", ee = (z = (Z = a.current.get(A)) == null ? void 0 : Z.keywords) != null ? z : [], oe = F(K, ee);
|
|
7823
|
+
r.current.filtered.items.set(A, oe), oe > 0 && $++;
|
|
7824
7824
|
}
|
|
7825
|
-
for (let [
|
|
7826
|
-
r.current.filtered.groups.add(
|
|
7825
|
+
for (let [A, K] of o.current) for (let ee of K) if (r.current.filtered.items.get(ee) > 0) {
|
|
7826
|
+
r.current.filtered.groups.add(A);
|
|
7827
7827
|
break;
|
|
7828
7828
|
}
|
|
7829
|
-
r.current.filtered.count =
|
|
7829
|
+
r.current.filtered.count = $;
|
|
7830
7830
|
}
|
|
7831
|
-
function
|
|
7832
|
-
var N, B,
|
|
7833
|
-
let
|
|
7834
|
-
|
|
7831
|
+
function Q() {
|
|
7832
|
+
var N, B, Z;
|
|
7833
|
+
let z = W();
|
|
7834
|
+
z && (((N = z.parentElement) == null ? void 0 : N.firstChild) === z && ((Z = (B = z.closest(pr)) == null ? void 0 : B.querySelector(Tb)) == null || Z.scrollIntoView({ block: "nearest" })), z.scrollIntoView({ block: "nearest" }));
|
|
7835
7835
|
}
|
|
7836
|
-
function
|
|
7836
|
+
function W() {
|
|
7837
7837
|
var N;
|
|
7838
7838
|
return (N = P.current) == null ? void 0 : N.querySelector(`${zc}[aria-selected="true"]`);
|
|
7839
7839
|
}
|
|
7840
|
-
function
|
|
7840
|
+
function O() {
|
|
7841
7841
|
var N;
|
|
7842
7842
|
return Array.from(((N = P.current) == null ? void 0 : N.querySelectorAll(ri)) || []);
|
|
7843
7843
|
}
|
|
7844
|
-
function
|
|
7845
|
-
let B =
|
|
7844
|
+
function _(N) {
|
|
7845
|
+
let B = O()[N];
|
|
7846
7846
|
B && T.setState("value", B.getAttribute(Ut));
|
|
7847
7847
|
}
|
|
7848
|
-
function
|
|
7848
|
+
function M(N) {
|
|
7849
7849
|
var B;
|
|
7850
|
-
let
|
|
7851
|
-
(B = l.current) != null && B.loop && (
|
|
7850
|
+
let Z = W(), z = O(), $ = z.findIndex((K) => K === Z), A = z[$ + N];
|
|
7851
|
+
(B = l.current) != null && B.loop && (A = $ + N < 0 ? z[z.length - 1] : $ + N === z.length ? z[0] : z[$ + N]), A && T.setState("value", A.getAttribute(Ut));
|
|
7852
7852
|
}
|
|
7853
7853
|
function E(N) {
|
|
7854
|
-
let B =
|
|
7855
|
-
for (;
|
|
7856
|
-
|
|
7857
|
-
}
|
|
7858
|
-
let I = () =>
|
|
7859
|
-
N.preventDefault(), N.metaKey ? I() : N.altKey ? E(1) :
|
|
7860
|
-
},
|
|
7861
|
-
N.preventDefault(), N.metaKey ?
|
|
7854
|
+
let B = W(), Z = B == null ? void 0 : B.closest(pr), z;
|
|
7855
|
+
for (; Z && !z; ) Z = N > 0 ? Vb(Z, pr) : Bb(Z, pr), z = Z == null ? void 0 : Z.querySelector(ri);
|
|
7856
|
+
z ? T.setState("value", z.getAttribute(Ut)) : M(N);
|
|
7857
|
+
}
|
|
7858
|
+
let I = () => _(O().length - 1), V = (N) => {
|
|
7859
|
+
N.preventDefault(), N.metaKey ? I() : N.altKey ? E(1) : M(1);
|
|
7860
|
+
}, J = (N) => {
|
|
7861
|
+
N.preventDefault(), N.metaKey ? _(0) : N.altKey ? E(-1) : M(-1);
|
|
7862
7862
|
};
|
|
7863
7863
|
return c.createElement(H.div, { ref: t, tabIndex: -1, ...y, "cmdk-root": "", onKeyDown: (N) => {
|
|
7864
7864
|
var B;
|
|
7865
7865
|
(B = y.onKeyDown) == null || B.call(y, N);
|
|
7866
|
-
let
|
|
7867
|
-
if (!(N.defaultPrevented ||
|
|
7866
|
+
let Z = N.nativeEvent.isComposing || N.keyCode === 229;
|
|
7867
|
+
if (!(N.defaultPrevented || Z)) switch (N.key) {
|
|
7868
7868
|
case "n":
|
|
7869
7869
|
case "j": {
|
|
7870
7870
|
h && N.ctrlKey && V(N);
|
|
@@ -7876,15 +7876,15 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
7876
7876
|
}
|
|
7877
7877
|
case "p":
|
|
7878
7878
|
case "k": {
|
|
7879
|
-
h && N.ctrlKey &&
|
|
7879
|
+
h && N.ctrlKey && J(N);
|
|
7880
7880
|
break;
|
|
7881
7881
|
}
|
|
7882
7882
|
case "ArrowUp": {
|
|
7883
|
-
|
|
7883
|
+
J(N);
|
|
7884
7884
|
break;
|
|
7885
7885
|
}
|
|
7886
7886
|
case "Home": {
|
|
7887
|
-
N.preventDefault(),
|
|
7887
|
+
N.preventDefault(), _(0);
|
|
7888
7888
|
break;
|
|
7889
7889
|
}
|
|
7890
7890
|
case "End": {
|
|
@@ -7893,10 +7893,10 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
7893
7893
|
}
|
|
7894
7894
|
case "Enter": {
|
|
7895
7895
|
N.preventDefault();
|
|
7896
|
-
let
|
|
7897
|
-
if (
|
|
7898
|
-
let
|
|
7899
|
-
|
|
7896
|
+
let z = W();
|
|
7897
|
+
if (z) {
|
|
7898
|
+
let $ = new Event(Ho);
|
|
7899
|
+
z.dispatchEvent($);
|
|
7900
7900
|
}
|
|
7901
7901
|
}
|
|
7902
7902
|
}
|
|
@@ -9161,10 +9161,10 @@ var Oy = c.forwardRef((e, t) => {
|
|
|
9161
9161
|
if (R.target === R.currentTarget && F && !y) {
|
|
9162
9162
|
const U = new CustomEvent(Po, Ty);
|
|
9163
9163
|
if (R.currentTarget.dispatchEvent(U), !U.defaultPrevented) {
|
|
9164
|
-
const re = S().filter((
|
|
9164
|
+
const re = S().filter((_) => _.focusable), te = re.find((_) => _.active), Q = re.find((_) => _.id === v), O = [te, Q, ...re].filter(
|
|
9165
9165
|
Boolean
|
|
9166
|
-
).map((
|
|
9167
|
-
kd(
|
|
9166
|
+
).map((_) => _.ref.current);
|
|
9167
|
+
kd(O, f);
|
|
9168
9168
|
}
|
|
9169
9169
|
}
|
|
9170
9170
|
P.current = !1;
|
|
@@ -11409,45 +11409,45 @@ const F0 = G.forwardRef(
|
|
|
11409
11409
|
onResetTags: C = () => {
|
|
11410
11410
|
}
|
|
11411
11411
|
}) => {
|
|
11412
|
-
const [S, P] = Te(""), [k, T] = Te(!1), R = be(null), F = be(null), U = be(null), [re,
|
|
11412
|
+
const [S, P] = Te(""), [k, T] = Te(!1), R = be(null), F = be(null), U = be(null), [re, te] = Te();
|
|
11413
11413
|
dt(() => {
|
|
11414
|
-
F.current &&
|
|
11414
|
+
F.current && te(F.current.offsetWidth);
|
|
11415
11415
|
}, []);
|
|
11416
|
-
const
|
|
11417
|
-
if (
|
|
11418
|
-
const
|
|
11419
|
-
h(
|
|
11420
|
-
},
|
|
11421
|
-
const
|
|
11422
|
-
h(
|
|
11423
|
-
},
|
|
11416
|
+
const Q = e.length >= i, W = ($) => {
|
|
11417
|
+
if (Q || e.some((K) => K.id === $.id)) return;
|
|
11418
|
+
const A = [...e, $];
|
|
11419
|
+
h(A), y($);
|
|
11420
|
+
}, O = ($) => {
|
|
11421
|
+
const A = e.filter((K) => K.id !== $);
|
|
11422
|
+
h(A), x($);
|
|
11423
|
+
}, _ = () => {
|
|
11424
11424
|
h == null || h([]), C();
|
|
11425
|
-
},
|
|
11426
|
-
const
|
|
11427
|
-
P(
|
|
11425
|
+
}, M = ($) => {
|
|
11426
|
+
const A = $.target.value;
|
|
11427
|
+
P(A), T(!0);
|
|
11428
11428
|
}, E = () => {
|
|
11429
|
-
const
|
|
11430
|
-
if (
|
|
11431
|
-
const
|
|
11429
|
+
const $ = S.trim().toLowerCase();
|
|
11430
|
+
if (!$) return [];
|
|
11431
|
+
const A = new Set(e.map((K) => K.id));
|
|
11432
11432
|
return o.filter(
|
|
11433
|
-
(
|
|
11433
|
+
(K) => K.label.toLowerCase().includes($) && !A.has(K.id)
|
|
11434
11434
|
);
|
|
11435
|
-
}, I = (
|
|
11436
|
-
const
|
|
11437
|
-
if (
|
|
11438
|
-
const
|
|
11439
|
-
if (!
|
|
11440
|
-
if (e.some((
|
|
11435
|
+
}, I = ($) => v ? v($) : $, V = () => {
|
|
11436
|
+
const $ = S.trim();
|
|
11437
|
+
if (!$) return;
|
|
11438
|
+
const A = I($);
|
|
11439
|
+
if (!A) return;
|
|
11440
|
+
if (e.some((ee) => ee.id === A)) {
|
|
11441
11441
|
P(""), T(!1);
|
|
11442
11442
|
return;
|
|
11443
11443
|
}
|
|
11444
|
-
const
|
|
11445
|
-
(
|
|
11444
|
+
const K = o.find(
|
|
11445
|
+
(ee) => ee.id === A || I(ee.label) === A
|
|
11446
11446
|
);
|
|
11447
|
-
|
|
11448
|
-
},
|
|
11449
|
-
const
|
|
11450
|
-
|
|
11447
|
+
K ? W(K) : a && W({ id: A, label: A }), P(""), T(!1);
|
|
11448
|
+
}, J = ($) => {
|
|
11449
|
+
const A = $.key === No.BACKSPACE && !S && e.length > 0, K = $.key === No.ENTER && S, ee = $.key === No.ESCAPE;
|
|
11450
|
+
K ? ($.preventDefault(), V(), U.current && (U.current.scrollLeft = U.current.scrollWidth)) : A ? O(e[e.length - 1].id) : ee && T(!1);
|
|
11451
11451
|
}, N = () => {
|
|
11452
11452
|
if (S && E().length > 0)
|
|
11453
11453
|
return /* @__PURE__ */ s.jsx(
|
|
@@ -11456,9 +11456,9 @@ const F0 = G.forwardRef(
|
|
|
11456
11456
|
className: "p-0 border-transparent bg-[var(--fill-interactive-neutral-idle)] gap-2",
|
|
11457
11457
|
align: "start",
|
|
11458
11458
|
style: { width: re ?? void 0 },
|
|
11459
|
-
onOpenAutoFocus: (
|
|
11460
|
-
onCloseAutoFocus: (
|
|
11461
|
-
onMouseDown: (
|
|
11459
|
+
onOpenAutoFocus: ($) => $.preventDefault(),
|
|
11460
|
+
onCloseAutoFocus: ($) => $.preventDefault(),
|
|
11461
|
+
onMouseDown: ($) => $.preventDefault(),
|
|
11462
11462
|
children: /* @__PURE__ */ s.jsx(
|
|
11463
11463
|
"div",
|
|
11464
11464
|
{
|
|
@@ -11466,39 +11466,45 @@ const F0 = G.forwardRef(
|
|
|
11466
11466
|
"max-h-[200px] overflow-y-auto flex flex-col gap-1 p-1",
|
|
11467
11467
|
u
|
|
11468
11468
|
),
|
|
11469
|
-
children: E().map((
|
|
11469
|
+
children: E().map(($) => /* @__PURE__ */ s.jsx(
|
|
11470
11470
|
V0,
|
|
11471
11471
|
{
|
|
11472
|
-
label:
|
|
11473
|
-
id:
|
|
11472
|
+
label: $.label,
|
|
11473
|
+
id: $.id,
|
|
11474
11474
|
onDeleteSuggestion: m,
|
|
11475
11475
|
deleteText: n,
|
|
11476
11476
|
className: f,
|
|
11477
11477
|
tagClassName: p,
|
|
11478
11478
|
tagVariant: t,
|
|
11479
11479
|
onClick: () => {
|
|
11480
|
-
var
|
|
11481
|
-
|
|
11480
|
+
var A;
|
|
11481
|
+
W($), P(""), T(!1), (A = R.current) == null || A.focus();
|
|
11482
11482
|
}
|
|
11483
11483
|
},
|
|
11484
|
-
|
|
11484
|
+
$.id
|
|
11485
11485
|
))
|
|
11486
11486
|
}
|
|
11487
11487
|
)
|
|
11488
11488
|
}
|
|
11489
11489
|
);
|
|
11490
|
-
}, B = () => g || /* @__PURE__ */ s.jsx(Dg, { className: "h-4 w-4 stroke-[var(--icon-bg-neutral-mild)]" }),
|
|
11490
|
+
}, B = () => g || /* @__PURE__ */ s.jsx(Dg, { className: "h-4 w-4 stroke-[var(--icon-bg-neutral-mild)]" }), Z = () => e.map(($) => /* @__PURE__ */ s.jsx(
|
|
11491
11491
|
Qu,
|
|
11492
11492
|
{
|
|
11493
|
-
label:
|
|
11494
|
-
id:
|
|
11495
|
-
onRemoveTag:
|
|
11493
|
+
label: $.label,
|
|
11494
|
+
id: $.id,
|
|
11495
|
+
onRemoveTag: O,
|
|
11496
11496
|
disabled: l,
|
|
11497
11497
|
className: p,
|
|
11498
11498
|
variant: t
|
|
11499
11499
|
},
|
|
11500
|
-
|
|
11501
|
-
))
|
|
11500
|
+
$.id
|
|
11501
|
+
)), z = () => e.length === 0 ? /* @__PURE__ */ s.jsx(s.Fragment, {}) : /* @__PURE__ */ s.jsx(
|
|
11502
|
+
jn,
|
|
11503
|
+
{
|
|
11504
|
+
className: "h-4 w-4 hover:cursor-pointer stroke-[var(--icon-input-neutral-idle)] hover:stroke-[var(--icon-input-neutral-hover)]",
|
|
11505
|
+
onClick: _
|
|
11506
|
+
}
|
|
11507
|
+
);
|
|
11502
11508
|
return /* @__PURE__ */ s.jsx("div", { className: j("w-full", d), children: /* @__PURE__ */ s.jsxs(Ra, { open: k && !l, onOpenChange: T, modal: !1, children: [
|
|
11503
11509
|
/* @__PURE__ */ s.jsx(Pa, { className: "w-full", children: /* @__PURE__ */ s.jsxs(
|
|
11504
11510
|
"div",
|
|
@@ -11509,9 +11515,9 @@ const F0 = G.forwardRef(
|
|
|
11509
11515
|
"flex items-center gap-2 border border-[var(--border-tag-neutral-idle)] bg-purple-muted-800 py-0.5 px-3 rounded-md scrollbar-thin",
|
|
11510
11516
|
{ "opacity-60": l }
|
|
11511
11517
|
),
|
|
11512
|
-
onClick: (
|
|
11513
|
-
var
|
|
11514
|
-
|
|
11518
|
+
onClick: ($) => {
|
|
11519
|
+
var A;
|
|
11520
|
+
$.stopPropagation(), T(!0), (A = R.current) == null || A.focus();
|
|
11515
11521
|
},
|
|
11516
11522
|
children: [
|
|
11517
11523
|
B(),
|
|
@@ -11521,19 +11527,19 @@ const F0 = G.forwardRef(
|
|
|
11521
11527
|
ref: U,
|
|
11522
11528
|
className: "flex items-center gap-2 w-full whitespace-normal overflow-x-auto",
|
|
11523
11529
|
children: [
|
|
11524
|
-
|
|
11530
|
+
Z(),
|
|
11525
11531
|
/* @__PURE__ */ s.jsx(
|
|
11526
11532
|
Nn,
|
|
11527
11533
|
{
|
|
11528
11534
|
ref: R,
|
|
11529
11535
|
value: S,
|
|
11530
|
-
onChange:
|
|
11531
|
-
onClick: (
|
|
11536
|
+
onChange: M,
|
|
11537
|
+
onClick: ($) => $.stopPropagation(),
|
|
11532
11538
|
onFocus: () => T(!0),
|
|
11533
11539
|
onBlur: b,
|
|
11534
|
-
onKeyDown:
|
|
11540
|
+
onKeyDown: J,
|
|
11535
11541
|
placeholder: r,
|
|
11536
|
-
disabled: l ||
|
|
11542
|
+
disabled: l || Q,
|
|
11537
11543
|
className: j(
|
|
11538
11544
|
"m-0 h-6.5 flex-1 min-w-[6rem] border-0 bg-transparent dark:bg-transparent p-0 shadow-none focus-visible:outline-none focus-visible:ring-0 font-normal text-xs",
|
|
11539
11545
|
"placeholder:text-[var(--text-input-neutral-placeholder)] dark:placeholder:text-[var(--text-input-neutral-placeholder)] placeholder:text-xs"
|
|
@@ -11543,13 +11549,7 @@ const F0 = G.forwardRef(
|
|
|
11543
11549
|
]
|
|
11544
11550
|
}
|
|
11545
11551
|
),
|
|
11546
|
-
|
|
11547
|
-
jn,
|
|
11548
|
-
{
|
|
11549
|
-
className: "h-4 w-4 hover:cursor-pointer text-[var(--icon-input-neutral-idle)] hover:text-[var(--icon-input-neutral-hover)]",
|
|
11550
|
-
onClick: A
|
|
11551
|
-
}
|
|
11552
|
-
)
|
|
11552
|
+
z()
|
|
11553
11553
|
]
|
|
11554
11554
|
}
|
|
11555
11555
|
) }),
|
|
@@ -11896,32 +11896,32 @@ function R1({
|
|
|
11896
11896
|
dt(() => {
|
|
11897
11897
|
e !== void 0 && T(P ? e || [] : e || "");
|
|
11898
11898
|
}, [e, P]);
|
|
11899
|
-
function
|
|
11899
|
+
function te(M, E) {
|
|
11900
11900
|
if (!P) {
|
|
11901
|
-
T(
|
|
11901
|
+
T(M), r == null || r(M), C(!1);
|
|
11902
11902
|
return;
|
|
11903
11903
|
}
|
|
11904
11904
|
T((I) => {
|
|
11905
|
-
const V = Array.isArray(I) ? I : [],
|
|
11905
|
+
const V = Array.isArray(I) ? I : [], J = new Set(V), N = df(t, M);
|
|
11906
11906
|
if (!N) return V;
|
|
11907
|
-
E ?
|
|
11908
|
-
const B = Array.from(
|
|
11907
|
+
E ? Q(N, J) : W(M, J);
|
|
11908
|
+
const B = Array.from(J);
|
|
11909
11909
|
return r == null || r(
|
|
11910
11910
|
B
|
|
11911
11911
|
), B;
|
|
11912
11912
|
});
|
|
11913
11913
|
}
|
|
11914
|
-
function
|
|
11915
|
-
ro(
|
|
11916
|
-
(
|
|
11917
|
-
) ? C1(
|
|
11914
|
+
function Q(M, E) {
|
|
11915
|
+
ro(M).every(
|
|
11916
|
+
(J) => E.has(J)
|
|
11917
|
+
) ? C1(M, E) : S1(M, E);
|
|
11918
11918
|
}
|
|
11919
|
-
function
|
|
11920
|
-
E.has(
|
|
11919
|
+
function W(M, E) {
|
|
11920
|
+
E.has(M) ? E.delete(M) : E.add(M), uf(t, E);
|
|
11921
11921
|
}
|
|
11922
|
-
const
|
|
11923
|
-
const
|
|
11924
|
-
return
|
|
11922
|
+
const O = () => {
|
|
11923
|
+
const M = ff(t, R);
|
|
11924
|
+
return M.length === 0 ? /* @__PURE__ */ s.jsx(
|
|
11925
11925
|
Er,
|
|
11926
11926
|
{
|
|
11927
11927
|
variant: p,
|
|
@@ -11929,8 +11929,8 @@ function R1({
|
|
|
11929
11929
|
className: j("text-purple-muted-300", f),
|
|
11930
11930
|
children: a
|
|
11931
11931
|
}
|
|
11932
|
-
) :
|
|
11933
|
-
const V = re.get(I),
|
|
11932
|
+
) : M.map((I) => {
|
|
11933
|
+
const V = re.get(I), J = U.get(I) || I;
|
|
11934
11934
|
return /* @__PURE__ */ s.jsx(
|
|
11935
11935
|
Er,
|
|
11936
11936
|
{
|
|
@@ -11939,13 +11939,13 @@ function R1({
|
|
|
11939
11939
|
className: j("text-[var(--text-bg-neutral-mid)]", f),
|
|
11940
11940
|
children: /* @__PURE__ */ s.jsxs("div", { className: "flex items-center gap-1", children: [
|
|
11941
11941
|
V && /* @__PURE__ */ s.jsx("div", { className: "flex-shrink-0", children: V }),
|
|
11942
|
-
/* @__PURE__ */ s.jsx("span", { children:
|
|
11942
|
+
/* @__PURE__ */ s.jsx("span", { children: J })
|
|
11943
11943
|
] })
|
|
11944
11944
|
},
|
|
11945
11945
|
I
|
|
11946
11946
|
);
|
|
11947
11947
|
});
|
|
11948
|
-
},
|
|
11948
|
+
}, _ = () => {
|
|
11949
11949
|
if (g)
|
|
11950
11950
|
return /* @__PURE__ */ s.jsx(
|
|
11951
11951
|
Jc,
|
|
@@ -11979,7 +11979,7 @@ function R1({
|
|
|
11979
11979
|
"flex justify-start text-start w-[100%] whitespace-nowrap overflow-x-auto gap-1.5",
|
|
11980
11980
|
d
|
|
11981
11981
|
),
|
|
11982
|
-
children:
|
|
11982
|
+
children: O()
|
|
11983
11983
|
}
|
|
11984
11984
|
),
|
|
11985
11985
|
/* @__PURE__ */ s.jsx("div", { className: "[&>svg]:text-[var(--icon-input-neutral-idle)] [&>svg]:hover:text-[var(--icon-input-neutral-hover)] [&>svg]:w-4 [&>svg]:h-4", children: m })
|
|
@@ -11992,19 +11992,19 @@ function R1({
|
|
|
11992
11992
|
className: "p-0 border bg-[var(--fill-interactive-neutral-idle)] border-[var(--border-interactive-neutral-idle)] [&>svg]:text-purple-muted-300",
|
|
11993
11993
|
style: { width: h ?? "auto" },
|
|
11994
11994
|
children: /* @__PURE__ */ s.jsxs(Zc, { className: "bg-[var(--fill-interactive-neutral-idle)]", children: [
|
|
11995
|
-
|
|
11995
|
+
_(),
|
|
11996
11996
|
/* @__PURE__ */ s.jsxs(Qc, { children: [
|
|
11997
11997
|
/* @__PURE__ */ s.jsx(ed, { children: l }),
|
|
11998
|
-
/* @__PURE__ */ s.jsx(td, { children: t.map((
|
|
11998
|
+
/* @__PURE__ */ s.jsx(td, { children: t.map((M) => /* @__PURE__ */ s.jsx(
|
|
11999
11999
|
pf,
|
|
12000
12000
|
{
|
|
12001
12001
|
disabled: n,
|
|
12002
|
-
option:
|
|
12002
|
+
option: M,
|
|
12003
12003
|
selected: F,
|
|
12004
|
-
onSelect:
|
|
12004
|
+
onSelect: te,
|
|
12005
12005
|
dir: b
|
|
12006
12006
|
},
|
|
12007
|
-
|
|
12007
|
+
M.value
|
|
12008
12008
|
)) })
|
|
12009
12009
|
] })
|
|
12010
12010
|
] })
|
|
@@ -12271,13 +12271,13 @@ var nS = (e, t) => {
|
|
|
12271
12271
|
}), []);
|
|
12272
12272
|
};
|
|
12273
12273
|
function oS(e, t = {}) {
|
|
12274
|
-
var re,
|
|
12274
|
+
var re, te, Q, W;
|
|
12275
12275
|
const r = ln(() => {
|
|
12276
|
-
const { id:
|
|
12277
|
-
return Q1({ id:
|
|
12278
|
-
}, [t]), n = (...
|
|
12279
|
-
e.debug && console.log(...
|
|
12280
|
-
}, o = ((re = e.props) == null ? void 0 : re.call(e, { props: vf(t), scope: r })) ?? t, a = aS(o), i = (
|
|
12276
|
+
const { id: O, ids: _, getRootNode: M } = t;
|
|
12277
|
+
return Q1({ id: O, ids: _, getRootNode: M });
|
|
12278
|
+
}, [t]), n = (...O) => {
|
|
12279
|
+
e.debug && console.log(...O);
|
|
12280
|
+
}, o = ((re = e.props) == null ? void 0 : re.call(e, { props: vf(t), scope: r })) ?? t, a = aS(o), i = (te = e.context) == null ? void 0 : te.call(e, {
|
|
12281
12281
|
prop: a,
|
|
12282
12282
|
bindable: wn,
|
|
12283
12283
|
scope: r,
|
|
@@ -12295,22 +12295,22 @@ function oS(e, t = {}) {
|
|
|
12295
12295
|
return m();
|
|
12296
12296
|
}
|
|
12297
12297
|
}), l = yf(i), d = {
|
|
12298
|
-
get(
|
|
12299
|
-
var
|
|
12300
|
-
return (
|
|
12298
|
+
get(O) {
|
|
12299
|
+
var _;
|
|
12300
|
+
return (_ = l.current) == null ? void 0 : _[O].ref.current;
|
|
12301
12301
|
},
|
|
12302
|
-
set(
|
|
12303
|
-
var
|
|
12304
|
-
(
|
|
12302
|
+
set(O, _) {
|
|
12303
|
+
var M;
|
|
12304
|
+
(M = l.current) == null || M[O].set(_);
|
|
12305
12305
|
},
|
|
12306
|
-
initial(
|
|
12307
|
-
var
|
|
12308
|
-
return (
|
|
12306
|
+
initial(O) {
|
|
12307
|
+
var _;
|
|
12308
|
+
return (_ = l.current) == null ? void 0 : _[O].initial;
|
|
12309
12309
|
},
|
|
12310
|
-
hash(
|
|
12311
|
-
var
|
|
12312
|
-
const
|
|
12313
|
-
return (E = l.current) == null ? void 0 : E[
|
|
12310
|
+
hash(O) {
|
|
12311
|
+
var M, E;
|
|
12312
|
+
const _ = (M = l.current) == null ? void 0 : M[O].get();
|
|
12313
|
+
return (E = l.current) == null ? void 0 : E[O].hash(_);
|
|
12314
12314
|
}
|
|
12315
12315
|
}, u = be(/* @__PURE__ */ new Map()), f = be(null), p = be(null), g = be({ type: "" }), m = () => ({
|
|
12316
12316
|
...g.current,
|
|
@@ -12322,14 +12322,14 @@ function oS(e, t = {}) {
|
|
|
12322
12322
|
}
|
|
12323
12323
|
}), b = () => ({
|
|
12324
12324
|
...k,
|
|
12325
|
-
matches(...
|
|
12326
|
-
return
|
|
12325
|
+
matches(...O) {
|
|
12326
|
+
return O.includes(k.ref.current);
|
|
12327
12327
|
},
|
|
12328
|
-
hasTag(
|
|
12329
|
-
var
|
|
12330
|
-
return !!((
|
|
12328
|
+
hasTag(O) {
|
|
12329
|
+
var _, M;
|
|
12330
|
+
return !!((M = (_ = e.states[k.ref.current]) == null ? void 0 : _.tags) != null && M.includes(O));
|
|
12331
12331
|
}
|
|
12332
|
-
}), v = rS(((
|
|
12332
|
+
}), v = rS(((Q = e.refs) == null ? void 0 : Q.call(e, { prop: a, context: d })) ?? {}), h = () => ({
|
|
12333
12333
|
state: b(),
|
|
12334
12334
|
context: d,
|
|
12335
12335
|
event: m(),
|
|
@@ -12343,39 +12343,39 @@ function oS(e, t = {}) {
|
|
|
12343
12343
|
flush: ki,
|
|
12344
12344
|
scope: r,
|
|
12345
12345
|
choose: S
|
|
12346
|
-
}), y = (
|
|
12347
|
-
const
|
|
12348
|
-
if (!
|
|
12349
|
-
const
|
|
12350
|
-
var V,
|
|
12351
|
-
const I = (
|
|
12346
|
+
}), y = (O) => {
|
|
12347
|
+
const _ = hr(O) ? O(h()) : O;
|
|
12348
|
+
if (!_) return;
|
|
12349
|
+
const M = _.map((E) => {
|
|
12350
|
+
var V, J;
|
|
12351
|
+
const I = (J = (V = e.implementations) == null ? void 0 : V.actions) == null ? void 0 : J[E];
|
|
12352
12352
|
return I || ji(`[zag-js] No implementation found for action "${JSON.stringify(E)}"`), I;
|
|
12353
12353
|
});
|
|
12354
|
-
for (const E of
|
|
12354
|
+
for (const E of M)
|
|
12355
12355
|
E == null || E(h());
|
|
12356
|
-
}, x = (
|
|
12357
|
-
var
|
|
12358
|
-
return hr(
|
|
12359
|
-
}, C = (
|
|
12360
|
-
const
|
|
12361
|
-
if (!
|
|
12362
|
-
const
|
|
12363
|
-
var
|
|
12364
|
-
const V = (N = (
|
|
12356
|
+
}, x = (O) => {
|
|
12357
|
+
var _, M;
|
|
12358
|
+
return hr(O) ? O(h()) : (M = (_ = e.implementations) == null ? void 0 : _.guards) == null ? void 0 : M[O](h());
|
|
12359
|
+
}, C = (O) => {
|
|
12360
|
+
const _ = hr(O) ? O(h()) : O;
|
|
12361
|
+
if (!_) return;
|
|
12362
|
+
const M = _.map((I) => {
|
|
12363
|
+
var J, N;
|
|
12364
|
+
const V = (N = (J = e.implementations) == null ? void 0 : J.effects) == null ? void 0 : N[I];
|
|
12365
12365
|
return V || ji(`[zag-js] No implementation found for effect "${JSON.stringify(I)}"`), V;
|
|
12366
12366
|
}), E = [];
|
|
12367
|
-
for (const I of
|
|
12367
|
+
for (const I of M) {
|
|
12368
12368
|
const V = I == null ? void 0 : I(h());
|
|
12369
12369
|
V && E.push(V);
|
|
12370
12370
|
}
|
|
12371
12371
|
return () => E.forEach((I) => I == null ? void 0 : I());
|
|
12372
|
-
}, S = (
|
|
12373
|
-
let
|
|
12374
|
-
return an(
|
|
12375
|
-
}), P = (
|
|
12372
|
+
}, S = (O) => j1(O).find((_) => {
|
|
12373
|
+
let M = !_.guard;
|
|
12374
|
+
return an(_.guard) ? M = !!x(_.guard) : hr(_.guard) && (M = _.guard(h())), M;
|
|
12375
|
+
}), P = (O) => {
|
|
12376
12376
|
W1(e.computed, () => "[zag-js] No computed object found on machine");
|
|
12377
|
-
const
|
|
12378
|
-
return
|
|
12377
|
+
const _ = e.computed[O];
|
|
12378
|
+
return _({
|
|
12379
12379
|
context: d,
|
|
12380
12380
|
event: m(),
|
|
12381
12381
|
prop: a,
|
|
@@ -12385,56 +12385,56 @@ function oS(e, t = {}) {
|
|
|
12385
12385
|
});
|
|
12386
12386
|
}, k = wn(() => ({
|
|
12387
12387
|
defaultValue: e.initialState({ prop: a }),
|
|
12388
|
-
onChange(
|
|
12389
|
-
var E, I, V,
|
|
12390
|
-
if (
|
|
12391
|
-
const N = u.current.get(
|
|
12392
|
-
N == null || N(), u.current.delete(
|
|
12393
|
-
}
|
|
12394
|
-
|
|
12395
|
-
const
|
|
12396
|
-
if (
|
|
12388
|
+
onChange(O, _) {
|
|
12389
|
+
var E, I, V, J;
|
|
12390
|
+
if (_) {
|
|
12391
|
+
const N = u.current.get(_);
|
|
12392
|
+
N == null || N(), u.current.delete(_);
|
|
12393
|
+
}
|
|
12394
|
+
_ && y((E = e.states[_]) == null ? void 0 : E.exit), y((I = f.current) == null ? void 0 : I.actions);
|
|
12395
|
+
const M = C((V = e.states[O]) == null ? void 0 : V.effects);
|
|
12396
|
+
if (M && u.current.set(O, M), _ === Ao) {
|
|
12397
12397
|
y(e.entry);
|
|
12398
12398
|
const N = C(e.effects);
|
|
12399
12399
|
N && u.current.set(Ao, N);
|
|
12400
12400
|
}
|
|
12401
|
-
y((
|
|
12401
|
+
y((J = e.states[O]) == null ? void 0 : J.entry);
|
|
12402
12402
|
}
|
|
12403
12403
|
})), T = be(void 0), R = be(Kt.NotStarted);
|
|
12404
12404
|
bf(() => {
|
|
12405
12405
|
queueMicrotask(() => {
|
|
12406
|
-
const
|
|
12407
|
-
R.current = Kt.Started, n(
|
|
12406
|
+
const M = R.current === Kt.Started;
|
|
12407
|
+
R.current = Kt.Started, n(M ? "rehydrating..." : "initializing...");
|
|
12408
12408
|
const E = T.current ?? k.initial;
|
|
12409
|
-
k.invoke(E,
|
|
12409
|
+
k.invoke(E, M ? k.get() : Ao);
|
|
12410
12410
|
});
|
|
12411
|
-
const
|
|
12411
|
+
const O = u.current, _ = k.ref.current;
|
|
12412
12412
|
return () => {
|
|
12413
|
-
n("unmounting..."), T.current =
|
|
12413
|
+
n("unmounting..."), T.current = _, R.current = Kt.Stopped, O.forEach((M) => M == null ? void 0 : M()), u.current = /* @__PURE__ */ new Map(), f.current = null, queueMicrotask(() => {
|
|
12414
12414
|
y(e.exit);
|
|
12415
12415
|
});
|
|
12416
12416
|
};
|
|
12417
12417
|
}, []);
|
|
12418
|
-
const F = () => "ref" in k ? k.ref.current : k.get(), U = (
|
|
12418
|
+
const F = () => "ref" in k ? k.ref.current : k.get(), U = (O) => {
|
|
12419
12419
|
queueMicrotask(() => {
|
|
12420
|
-
var
|
|
12420
|
+
var J, N;
|
|
12421
12421
|
if (R.current !== Kt.Started) return;
|
|
12422
|
-
p.current = g.current, g.current =
|
|
12423
|
-
let
|
|
12424
|
-
const
|
|
12422
|
+
p.current = g.current, g.current = O;
|
|
12423
|
+
let _ = F();
|
|
12424
|
+
const M = (
|
|
12425
12425
|
// @ts-ignore
|
|
12426
|
-
((
|
|
12427
|
-
((N = e.on) == null ? void 0 : N[
|
|
12428
|
-
), E = S(
|
|
12426
|
+
((J = e.states[_].on) == null ? void 0 : J[O.type]) ?? // @ts-ignore
|
|
12427
|
+
((N = e.on) == null ? void 0 : N[O.type])
|
|
12428
|
+
), E = S(M);
|
|
12429
12429
|
if (!E) return;
|
|
12430
12430
|
f.current = E;
|
|
12431
|
-
const I = E.target ??
|
|
12432
|
-
n("transition",
|
|
12433
|
-
const V = I !==
|
|
12434
|
-
V ? ia(() => k.set(I)) : E.reenter && !V ? k.invoke(
|
|
12431
|
+
const I = E.target ?? _;
|
|
12432
|
+
n("transition", O.type, E.target || _, `(${E.actions})`);
|
|
12433
|
+
const V = I !== _;
|
|
12434
|
+
V ? ia(() => k.set(I)) : E.reenter && !V ? k.invoke(_, _) : y(E.actions ?? []);
|
|
12435
12435
|
});
|
|
12436
12436
|
};
|
|
12437
|
-
return (
|
|
12437
|
+
return (W = e.watch) == null || W.call(e, h()), {
|
|
12438
12438
|
state: b(),
|
|
12439
12439
|
send: U,
|
|
12440
12440
|
context: d,
|
|
@@ -13864,17 +13864,17 @@ var De = "MenuContent", [rE, Qa] = Lt(De), Kf = c.forwardRef(
|
|
|
13864
13864
|
onDismiss: m,
|
|
13865
13865
|
disableOutsideScroll: b,
|
|
13866
13866
|
...v
|
|
13867
|
-
} = e, h = St(De, r), y = zr(De, r), x = Wr(r), C = Wf(r), S = ZS(r), [P, k] = c.useState(null), T = c.useRef(null), R = se(t, T, h.onContentChange), F = c.useRef(0), U = c.useRef(""), re = c.useRef(0),
|
|
13868
|
-
var
|
|
13869
|
-
const V = U.current + I,
|
|
13870
|
-
(function
|
|
13871
|
-
U.current = oe, window.clearTimeout(F.current), oe !== "" && (F.current = window.setTimeout(() =>
|
|
13872
|
-
})(V),
|
|
13867
|
+
} = e, h = St(De, r), y = zr(De, r), x = Wr(r), C = Wf(r), S = ZS(r), [P, k] = c.useState(null), T = c.useRef(null), R = se(t, T, h.onContentChange), F = c.useRef(0), U = c.useRef(""), re = c.useRef(0), te = c.useRef(null), Q = c.useRef("right"), W = c.useRef(0), O = b ? Ir : c.Fragment, _ = b ? { as: aE, allowPinchZoom: !0 } : void 0, M = (I) => {
|
|
13868
|
+
var A, K;
|
|
13869
|
+
const V = U.current + I, J = S().filter((ee) => !ee.disabled), N = document.activeElement, B = (A = J.find((ee) => ee.ref.current === N)) == null ? void 0 : A.textValue, Z = J.map((ee) => ee.textValue), z = hE(Z, V, B), $ = (K = J.find((ee) => ee.textValue === z)) == null ? void 0 : K.ref.current;
|
|
13870
|
+
(function ee(oe) {
|
|
13871
|
+
U.current = oe, window.clearTimeout(F.current), oe !== "" && (F.current = window.setTimeout(() => ee(""), 1e3));
|
|
13872
|
+
})(V), $ && setTimeout(() => $.focus());
|
|
13873
13873
|
};
|
|
13874
13874
|
c.useEffect(() => () => window.clearTimeout(F.current), []), Tn();
|
|
13875
13875
|
const E = c.useCallback((I) => {
|
|
13876
|
-
var
|
|
13877
|
-
return
|
|
13876
|
+
var J, N;
|
|
13877
|
+
return Q.current === ((J = te.current) == null ? void 0 : J.side) && bE(I, (N = te.current) == null ? void 0 : N.area);
|
|
13878
13878
|
}, []);
|
|
13879
13879
|
return /* @__PURE__ */ s.jsx(
|
|
13880
13880
|
rE,
|
|
@@ -13902,9 +13902,9 @@ var De = "MenuContent", [rE, Qa] = Lt(De), Kf = c.forwardRef(
|
|
|
13902
13902
|
),
|
|
13903
13903
|
pointerGraceTimerRef: re,
|
|
13904
13904
|
onPointerGraceIntentChange: c.useCallback((I) => {
|
|
13905
|
-
|
|
13905
|
+
te.current = I;
|
|
13906
13906
|
}, []),
|
|
13907
|
-
children: /* @__PURE__ */ s.jsx(
|
|
13907
|
+
children: /* @__PURE__ */ s.jsx(O, { ..._, children: /* @__PURE__ */ s.jsx(
|
|
13908
13908
|
kr,
|
|
13909
13909
|
{
|
|
13910
13910
|
asChild: !0,
|
|
@@ -13951,13 +13951,13 @@ var De = "MenuContent", [rE, Qa] = Lt(De), Kf = c.forwardRef(
|
|
|
13951
13951
|
ref: R,
|
|
13952
13952
|
style: { outline: "none", ...v.style },
|
|
13953
13953
|
onKeyDown: L(v.onKeyDown, (I) => {
|
|
13954
|
-
const
|
|
13955
|
-
|
|
13956
|
-
const
|
|
13957
|
-
if (I.target !==
|
|
13954
|
+
const J = I.target.closest("[data-radix-menu-content]") === I.currentTarget, N = I.ctrlKey || I.altKey || I.metaKey, B = I.key.length === 1;
|
|
13955
|
+
J && (I.key === "Tab" && I.preventDefault(), !N && B && M(I.key));
|
|
13956
|
+
const Z = T.current;
|
|
13957
|
+
if (I.target !== Z || !KS.includes(I.key)) return;
|
|
13958
13958
|
I.preventDefault();
|
|
13959
|
-
const
|
|
13960
|
-
Bf.includes(I.key) &&
|
|
13959
|
+
const $ = S().filter((A) => !A.disabled).map((A) => A.ref.current);
|
|
13960
|
+
Bf.includes(I.key) && $.reverse(), gE($);
|
|
13961
13961
|
}),
|
|
13962
13962
|
onBlur: L(e.onBlur, (I) => {
|
|
13963
13963
|
I.currentTarget.contains(I.target) || (window.clearTimeout(F.current), U.current = "");
|
|
@@ -13965,10 +13965,10 @@ var De = "MenuContent", [rE, Qa] = Lt(De), Kf = c.forwardRef(
|
|
|
13965
13965
|
onPointerMove: L(
|
|
13966
13966
|
e.onPointerMove,
|
|
13967
13967
|
jr((I) => {
|
|
13968
|
-
const V = I.target,
|
|
13969
|
-
if (I.currentTarget.contains(V) &&
|
|
13970
|
-
const N = I.clientX >
|
|
13971
|
-
|
|
13968
|
+
const V = I.target, J = W.current !== I.clientX;
|
|
13969
|
+
if (I.currentTarget.contains(V) && J) {
|
|
13970
|
+
const N = I.clientX > W.current ? "right" : "left";
|
|
13971
|
+
Q.current = N, W.current = I.clientX;
|
|
13972
13972
|
}
|
|
13973
13973
|
})
|
|
13974
13974
|
)
|
|
@@ -15140,7 +15140,7 @@ const cR = ({ radioItem: e }) => /* @__PURE__ */ s.jsxs(
|
|
|
15140
15140
|
invalidEmailError: d = "Invalid email",
|
|
15141
15141
|
invalidDomainError: u = "Email domain is not allowed"
|
|
15142
15142
|
}) => {
|
|
15143
|
-
const f = be(null), p = be(null), [g, m] = Te(""), [b, v] = Te(!1), { emails: h, setEmails: y, addTokens: x, removeToken: C, clearAll: S, notify: P } = kR({ onChange: e }), k = TR({
|
|
15143
|
+
const f = be(null), p = be(null), [g, m] = Te(""), [b, v] = Te(!1), { emails: h, setEmails: y, addTokens: x, removeToken: C, clearAll: S, notify: P } = kR({ onChange: e, organization: o }), k = TR({
|
|
15144
15144
|
draft: g,
|
|
15145
15145
|
setDraft: m,
|
|
15146
15146
|
addTokens: x,
|
|
@@ -15151,8 +15151,8 @@ const cR = ({ radioItem: e }) => /* @__PURE__ */ s.jsxs(
|
|
|
15151
15151
|
setEmails: y,
|
|
15152
15152
|
notify: P
|
|
15153
15153
|
}), T = () => {
|
|
15154
|
-
var
|
|
15155
|
-
const V = ((
|
|
15154
|
+
var J;
|
|
15155
|
+
const V = ((J = o == null ? void 0 : o.domains) == null ? void 0 : J[0]) || "example.com";
|
|
15156
15156
|
return r({ domain: V });
|
|
15157
15157
|
}, R = Se(
|
|
15158
15158
|
(V) => {
|
|
@@ -15163,30 +15163,30 @@ const cR = ({ radioItem: e }) => /* @__PURE__ */ s.jsxs(
|
|
|
15163
15163
|
g.trim() && (x(g), m("")), v(!1);
|
|
15164
15164
|
}, [g, x]), U = Se(
|
|
15165
15165
|
(V) => {
|
|
15166
|
-
const
|
|
15167
|
-
|
|
15166
|
+
const J = V.clipboardData.getData("text");
|
|
15167
|
+
J && (V.preventDefault(), x(J), m(""));
|
|
15168
15168
|
},
|
|
15169
15169
|
[x]
|
|
15170
15170
|
), re = Se(() => {
|
|
15171
15171
|
var V;
|
|
15172
15172
|
(V = p.current) == null || V.focus();
|
|
15173
|
-
}, [p]),
|
|
15173
|
+
}, [p]), te = Se(() => {
|
|
15174
15174
|
v(!1);
|
|
15175
|
-
}, []),
|
|
15175
|
+
}, []), Q = Se(
|
|
15176
15176
|
(V) => {
|
|
15177
15177
|
var N;
|
|
15178
|
-
const
|
|
15179
|
-
|
|
15178
|
+
const J = V.relatedTarget;
|
|
15179
|
+
J && ((N = f.current) != null && N.contains(J)) || g.trim() && (x(g), m(""));
|
|
15180
15180
|
},
|
|
15181
15181
|
[g, x]
|
|
15182
|
-
),
|
|
15182
|
+
), W = h.length > 0, O = !W && g.length === 0, _ = W || g.length > 0, M = j(
|
|
15183
15183
|
"bg-transparent text-sm outline-none border-0 p-0 h-6 shadow-none focus-visible:ring-0 whitespace-nowrap text-purple-muted-200 placeholder:text-purple-muted-400",
|
|
15184
|
-
|
|
15184
|
+
W ? "flex-none shrink-0 overflow-x-auto overflow-y-hidden no-scrollbar" : "flex-1 !min-w-full overflow-hidden",
|
|
15185
15185
|
{ "opacity-50 cursor-not-allowed": t },
|
|
15186
15186
|
a
|
|
15187
15187
|
), E = j(
|
|
15188
15188
|
"inline-flex items-center gap-1 no-scrollbar",
|
|
15189
|
-
|
|
15189
|
+
W ? "w-max" : "w-full",
|
|
15190
15190
|
i
|
|
15191
15191
|
), I = j(
|
|
15192
15192
|
"qodo qodo-email-chips-input",
|
|
@@ -15204,19 +15204,19 @@ const cR = ({ radioItem: e }) => /* @__PURE__ */ s.jsxs(
|
|
|
15204
15204
|
ref: f,
|
|
15205
15205
|
className: I,
|
|
15206
15206
|
onClick: re,
|
|
15207
|
-
onFocus:
|
|
15208
|
-
onBlur:
|
|
15207
|
+
onFocus: te,
|
|
15208
|
+
onBlur: Q,
|
|
15209
15209
|
children: [
|
|
15210
15210
|
/* @__PURE__ */ s.jsx("div", { className: "absolute left-3 top-1/2 -translate-y-1/2 text-purple-muted-400", children: /* @__PURE__ */ s.jsx(Ig, { className: "w-4 h-4" }) }),
|
|
15211
15211
|
/* @__PURE__ */ s.jsx("div", { className: "w-full text-start max-w-full min-w-0 overflow-x-auto overflow-y-hidden no-scrollbar", children: /* @__PURE__ */ s.jsxs("div", { className: E, children: [
|
|
15212
|
-
h.map((V,
|
|
15212
|
+
h.map((V, J) => /* @__PURE__ */ s.jsx(
|
|
15213
15213
|
AR,
|
|
15214
15214
|
{
|
|
15215
15215
|
email: V.email,
|
|
15216
15216
|
isValid: V.isValid,
|
|
15217
15217
|
onRemove: C
|
|
15218
15218
|
},
|
|
15219
|
-
`email-${
|
|
15219
|
+
`email-${J}-${V.email}`
|
|
15220
15220
|
)),
|
|
15221
15221
|
/* @__PURE__ */ s.jsx(
|
|
15222
15222
|
"input",
|
|
@@ -15227,8 +15227,8 @@ const cR = ({ radioItem: e }) => /* @__PURE__ */ s.jsxs(
|
|
|
15227
15227
|
onKeyDown: k,
|
|
15228
15228
|
onBlur: F,
|
|
15229
15229
|
onPaste: U,
|
|
15230
|
-
className:
|
|
15231
|
-
placeholder:
|
|
15230
|
+
className: M,
|
|
15231
|
+
placeholder: O ? T() : "",
|
|
15232
15232
|
disabled: t
|
|
15233
15233
|
}
|
|
15234
15234
|
)
|
|
@@ -15236,7 +15236,7 @@ const cR = ({ radioItem: e }) => /* @__PURE__ */ s.jsxs(
|
|
|
15236
15236
|
/* @__PURE__ */ s.jsx(
|
|
15237
15237
|
_R,
|
|
15238
15238
|
{
|
|
15239
|
-
hasContent:
|
|
15239
|
+
hasContent: _,
|
|
15240
15240
|
onClearAll: S,
|
|
15241
15241
|
emails: h,
|
|
15242
15242
|
invalidEmailError: d,
|