componenteszw-package 1.0.62 → 1.0.63
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/index.css +1 -1
- package/dist/index.js +384 -382
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -121,27 +121,27 @@ const Lg = "-", Rg = (t) => {
|
|
|
121
121
|
experimentalParseClassName: o
|
|
122
122
|
} = t, c = a.length === 1, r = a[0], d = a.length, i = (h) => {
|
|
123
123
|
const l = [];
|
|
124
|
-
let
|
|
125
|
-
for (let
|
|
126
|
-
let w = h[
|
|
127
|
-
if (
|
|
128
|
-
if (w === r && (c || h.slice(
|
|
129
|
-
l.push(h.slice(
|
|
124
|
+
let M = 0, x = 0, _;
|
|
125
|
+
for (let u = 0; u < h.length; u++) {
|
|
126
|
+
let w = h[u];
|
|
127
|
+
if (M === 0) {
|
|
128
|
+
if (w === r && (c || h.slice(u, u + d) === a)) {
|
|
129
|
+
l.push(h.slice(x, u)), x = u + d;
|
|
130
130
|
continue;
|
|
131
131
|
}
|
|
132
132
|
if (w === "/") {
|
|
133
|
-
|
|
133
|
+
_ = u;
|
|
134
134
|
continue;
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
|
-
w === "[" ?
|
|
137
|
+
w === "[" ? M++ : w === "]" && M--;
|
|
138
138
|
}
|
|
139
|
-
const L = l.length === 0 ? h : h.substring(
|
|
139
|
+
const L = l.length === 0 ? h : h.substring(x), N = L.startsWith(Hg), C = N ? L.substring(1) : L, g = _ && _ > x ? _ - x : void 0;
|
|
140
140
|
return {
|
|
141
141
|
modifiers: l,
|
|
142
142
|
hasImportantModifier: N,
|
|
143
143
|
baseClassName: C,
|
|
144
|
-
maybePostfixModifierPosition:
|
|
144
|
+
maybePostfixModifierPosition: g
|
|
145
145
|
};
|
|
146
146
|
};
|
|
147
147
|
return o ? (h) => o({
|
|
@@ -168,34 +168,34 @@ const Lg = "-", Rg = (t) => {
|
|
|
168
168
|
} = a, d = [], i = t.trim().split(Kg);
|
|
169
169
|
let h = "";
|
|
170
170
|
for (let l = i.length - 1; l >= 0; l -= 1) {
|
|
171
|
-
const
|
|
172
|
-
modifiers:
|
|
173
|
-
hasImportantModifier:
|
|
171
|
+
const M = i[l], {
|
|
172
|
+
modifiers: x,
|
|
173
|
+
hasImportantModifier: _,
|
|
174
174
|
baseClassName: L,
|
|
175
175
|
maybePostfixModifierPosition: N
|
|
176
|
-
} = o(
|
|
177
|
-
let C = !!N,
|
|
178
|
-
if (!
|
|
176
|
+
} = o(M);
|
|
177
|
+
let C = !!N, g = c(C ? L.substring(0, N) : L);
|
|
178
|
+
if (!g) {
|
|
179
179
|
if (!C) {
|
|
180
|
-
h =
|
|
180
|
+
h = M + (h.length > 0 ? " " + h : h);
|
|
181
181
|
continue;
|
|
182
182
|
}
|
|
183
|
-
if (
|
|
184
|
-
h =
|
|
183
|
+
if (g = c(L), !g) {
|
|
184
|
+
h = M + (h.length > 0 ? " " + h : h);
|
|
185
185
|
continue;
|
|
186
186
|
}
|
|
187
187
|
C = !1;
|
|
188
188
|
}
|
|
189
|
-
const
|
|
189
|
+
const u = Wg(x).join(":"), w = _ ? u + Hg : u, b = w + g;
|
|
190
190
|
if (d.includes(b))
|
|
191
191
|
continue;
|
|
192
192
|
d.push(b);
|
|
193
|
-
const I = r(
|
|
193
|
+
const I = r(g, C);
|
|
194
194
|
for (let q = 0; q < I.length; ++q) {
|
|
195
|
-
const
|
|
196
|
-
d.push(w +
|
|
195
|
+
const B = I[q];
|
|
196
|
+
d.push(w + B);
|
|
197
197
|
}
|
|
198
|
-
h =
|
|
198
|
+
h = M + (h.length > 0 ? " " + h : h);
|
|
199
199
|
}
|
|
200
200
|
return h;
|
|
201
201
|
};
|
|
@@ -216,15 +216,15 @@ const Ag = (t) => {
|
|
|
216
216
|
function Yg(t, ...a) {
|
|
217
217
|
let o, c, r, d = i;
|
|
218
218
|
function i(l) {
|
|
219
|
-
const
|
|
220
|
-
return o = Xg(
|
|
219
|
+
const M = a.reduce((x, _) => _(x), t());
|
|
220
|
+
return o = Xg(M), c = o.cache.get, r = o.cache.set, d = h, h(l);
|
|
221
221
|
}
|
|
222
222
|
function h(l) {
|
|
223
|
-
const
|
|
224
|
-
if (
|
|
225
|
-
return
|
|
226
|
-
const
|
|
227
|
-
return r(l,
|
|
223
|
+
const M = c(l);
|
|
224
|
+
if (M)
|
|
225
|
+
return M;
|
|
226
|
+
const x = Jg(l, o);
|
|
227
|
+
return r(l, x), x;
|
|
228
228
|
}
|
|
229
229
|
return function() {
|
|
230
230
|
return d(Qg.apply(null, arguments));
|
|
@@ -233,7 +233,7 @@ function Yg(t, ...a) {
|
|
|
233
233
|
const $ = (t) => {
|
|
234
234
|
const a = (o) => o[t] || [];
|
|
235
235
|
return a.isThemeGetter = !0, a;
|
|
236
|
-
}, jg = /^\[(?:([a-z-]+):)?(.+)\]$/i, ex = /^\d+\/\d+$/, tx = /* @__PURE__ */ new Set(["px", "full", "screen"]), ax = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, ox = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, cx = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, nx = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, dx = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,
|
|
236
|
+
}, jg = /^\[(?:([a-z-]+):)?(.+)\]$/i, ex = /^\d+\/\d+$/, tx = /* @__PURE__ */ new Set(["px", "full", "screen"]), ax = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, ox = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, cx = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, nx = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, dx = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, G = (t) => qt(t) || tx.has(t) || ex.test(t), E = (t) => zt(t, "length", lx), qt = (t) => !!t && !Number.isNaN(Number(t)), vg = (t) => zt(t, "number", qt), St = (t) => !!t && Number.isInteger(Number(t)), ix = (t) => t.endsWith("%") && qt(t.slice(0, -1)), v = (t) => jg.test(t), W = (t) => ax.test(t), hx = /* @__PURE__ */ new Set(["length", "size", "percentage"]), rx = (t) => zt(t, hx, Vg), yx = (t) => zt(t, "position", Vg), sx = /* @__PURE__ */ new Set(["image", "url"]), px = (t) => zt(t, sx, Mx), kx = (t) => zt(t, "", ux), Ht = () => !0, zt = (t, a, o) => {
|
|
237
237
|
const c = jg.exec(t);
|
|
238
238
|
return c ? c[1] ? typeof a == "string" ? c[1] === a : a.has(c[1]) : o(c[2]) : !1;
|
|
239
239
|
}, lx = (t) => (
|
|
@@ -242,34 +242,34 @@ const $ = (t) => {
|
|
|
242
242
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
243
243
|
ox.test(t) && !cx.test(t)
|
|
244
244
|
), Vg = () => !1, ux = (t) => nx.test(t), Mx = (t) => dx.test(t), mx = () => {
|
|
245
|
-
const t = $("colors"), a = $("spacing"), o = $("blur"), c = $("brightness"), r = $("borderColor"), d = $("borderRadius"), i = $("borderSpacing"), h = $("borderWidth"), l = $("contrast"),
|
|
245
|
+
const t = $("colors"), a = $("spacing"), o = $("blur"), c = $("brightness"), r = $("borderColor"), d = $("borderRadius"), i = $("borderSpacing"), h = $("borderWidth"), l = $("contrast"), M = $("grayscale"), x = $("hueRotate"), _ = $("invert"), L = $("gap"), N = $("gradientColorStops"), C = $("gradientColorStopPositions"), g = $("inset"), u = $("margin"), w = $("opacity"), b = $("padding"), I = $("saturate"), q = $("scale"), B = $("sepia"), V = $("skew"), A = $("space"), m = $("translate"), z = () => ["auto", "contain", "none"], j = () => ["auto", "hidden", "clip", "visible", "scroll"], s = () => ["auto", v, a], p = () => [v, a], S = () => ["", G, E], F = () => ["auto", qt, v], H = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], f = () => ["solid", "dashed", "dotted", "double", "none"], P = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], Z = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], T = () => ["", "0", v], Vt = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], R = () => [qt, v];
|
|
246
246
|
return {
|
|
247
247
|
cacheSize: 500,
|
|
248
248
|
separator: ":",
|
|
249
249
|
theme: {
|
|
250
250
|
colors: [Ht],
|
|
251
|
-
spacing: [
|
|
252
|
-
blur: ["none", "",
|
|
253
|
-
brightness:
|
|
251
|
+
spacing: [G, E],
|
|
252
|
+
blur: ["none", "", W, v],
|
|
253
|
+
brightness: R(),
|
|
254
254
|
borderColor: [t],
|
|
255
|
-
borderRadius: ["none", "", "full",
|
|
255
|
+
borderRadius: ["none", "", "full", W, v],
|
|
256
256
|
borderSpacing: p(),
|
|
257
257
|
borderWidth: S(),
|
|
258
|
-
contrast:
|
|
259
|
-
grayscale:
|
|
260
|
-
hueRotate:
|
|
261
|
-
invert:
|
|
258
|
+
contrast: R(),
|
|
259
|
+
grayscale: T(),
|
|
260
|
+
hueRotate: R(),
|
|
261
|
+
invert: T(),
|
|
262
262
|
gap: p(),
|
|
263
263
|
gradientColorStops: [t],
|
|
264
|
-
gradientColorStopPositions: [ix,
|
|
264
|
+
gradientColorStopPositions: [ix, E],
|
|
265
265
|
inset: s(),
|
|
266
266
|
margin: s(),
|
|
267
|
-
opacity:
|
|
267
|
+
opacity: R(),
|
|
268
268
|
padding: p(),
|
|
269
|
-
saturate:
|
|
270
|
-
scale:
|
|
271
|
-
sepia:
|
|
272
|
-
skew:
|
|
269
|
+
saturate: R(),
|
|
270
|
+
scale: R(),
|
|
271
|
+
sepia: T(),
|
|
272
|
+
skew: R(),
|
|
273
273
|
space: p(),
|
|
274
274
|
translate: p()
|
|
275
275
|
},
|
|
@@ -280,7 +280,7 @@ const $ = (t) => {
|
|
|
280
280
|
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
281
281
|
*/
|
|
282
282
|
aspect: [{
|
|
283
|
-
aspect: ["auto", "square", "video",
|
|
283
|
+
aspect: ["auto", "square", "video", v]
|
|
284
284
|
}],
|
|
285
285
|
/**
|
|
286
286
|
* Container
|
|
@@ -292,7 +292,7 @@ const $ = (t) => {
|
|
|
292
292
|
* @see https://tailwindcss.com/docs/columns
|
|
293
293
|
*/
|
|
294
294
|
columns: [{
|
|
295
|
-
columns: [
|
|
295
|
+
columns: [W]
|
|
296
296
|
}],
|
|
297
297
|
/**
|
|
298
298
|
* Break After
|
|
@@ -365,28 +365,28 @@ const $ = (t) => {
|
|
|
365
365
|
* @see https://tailwindcss.com/docs/object-position
|
|
366
366
|
*/
|
|
367
367
|
"object-position": [{
|
|
368
|
-
object: [...
|
|
368
|
+
object: [...H(), v]
|
|
369
369
|
}],
|
|
370
370
|
/**
|
|
371
371
|
* Overflow
|
|
372
372
|
* @see https://tailwindcss.com/docs/overflow
|
|
373
373
|
*/
|
|
374
374
|
overflow: [{
|
|
375
|
-
overflow:
|
|
375
|
+
overflow: j()
|
|
376
376
|
}],
|
|
377
377
|
/**
|
|
378
378
|
* Overflow X
|
|
379
379
|
* @see https://tailwindcss.com/docs/overflow
|
|
380
380
|
*/
|
|
381
381
|
"overflow-x": [{
|
|
382
|
-
"overflow-x":
|
|
382
|
+
"overflow-x": j()
|
|
383
383
|
}],
|
|
384
384
|
/**
|
|
385
385
|
* Overflow Y
|
|
386
386
|
* @see https://tailwindcss.com/docs/overflow
|
|
387
387
|
*/
|
|
388
388
|
"overflow-y": [{
|
|
389
|
-
"overflow-y":
|
|
389
|
+
"overflow-y": j()
|
|
390
390
|
}],
|
|
391
391
|
/**
|
|
392
392
|
* Overscroll Behavior
|
|
@@ -419,63 +419,63 @@ const $ = (t) => {
|
|
|
419
419
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
420
420
|
*/
|
|
421
421
|
inset: [{
|
|
422
|
-
inset: [
|
|
422
|
+
inset: [g]
|
|
423
423
|
}],
|
|
424
424
|
/**
|
|
425
425
|
* Right / Left
|
|
426
426
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
427
427
|
*/
|
|
428
428
|
"inset-x": [{
|
|
429
|
-
"inset-x": [
|
|
429
|
+
"inset-x": [g]
|
|
430
430
|
}],
|
|
431
431
|
/**
|
|
432
432
|
* Top / Bottom
|
|
433
433
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
434
434
|
*/
|
|
435
435
|
"inset-y": [{
|
|
436
|
-
"inset-y": [
|
|
436
|
+
"inset-y": [g]
|
|
437
437
|
}],
|
|
438
438
|
/**
|
|
439
439
|
* Start
|
|
440
440
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
441
441
|
*/
|
|
442
442
|
start: [{
|
|
443
|
-
start: [
|
|
443
|
+
start: [g]
|
|
444
444
|
}],
|
|
445
445
|
/**
|
|
446
446
|
* End
|
|
447
447
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
448
448
|
*/
|
|
449
449
|
end: [{
|
|
450
|
-
end: [
|
|
450
|
+
end: [g]
|
|
451
451
|
}],
|
|
452
452
|
/**
|
|
453
453
|
* Top
|
|
454
454
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
455
455
|
*/
|
|
456
456
|
top: [{
|
|
457
|
-
top: [
|
|
457
|
+
top: [g]
|
|
458
458
|
}],
|
|
459
459
|
/**
|
|
460
460
|
* Right
|
|
461
461
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
462
462
|
*/
|
|
463
463
|
right: [{
|
|
464
|
-
right: [
|
|
464
|
+
right: [g]
|
|
465
465
|
}],
|
|
466
466
|
/**
|
|
467
467
|
* Bottom
|
|
468
468
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
469
469
|
*/
|
|
470
470
|
bottom: [{
|
|
471
|
-
bottom: [
|
|
471
|
+
bottom: [g]
|
|
472
472
|
}],
|
|
473
473
|
/**
|
|
474
474
|
* Left
|
|
475
475
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
476
476
|
*/
|
|
477
477
|
left: [{
|
|
478
|
-
left: [
|
|
478
|
+
left: [g]
|
|
479
479
|
}],
|
|
480
480
|
/**
|
|
481
481
|
* Visibility
|
|
@@ -487,7 +487,7 @@ const $ = (t) => {
|
|
|
487
487
|
* @see https://tailwindcss.com/docs/z-index
|
|
488
488
|
*/
|
|
489
489
|
z: [{
|
|
490
|
-
z: ["auto", St,
|
|
490
|
+
z: ["auto", St, v]
|
|
491
491
|
}],
|
|
492
492
|
// Flexbox and Grid
|
|
493
493
|
/**
|
|
@@ -516,28 +516,28 @@ const $ = (t) => {
|
|
|
516
516
|
* @see https://tailwindcss.com/docs/flex
|
|
517
517
|
*/
|
|
518
518
|
flex: [{
|
|
519
|
-
flex: ["1", "auto", "initial", "none",
|
|
519
|
+
flex: ["1", "auto", "initial", "none", v]
|
|
520
520
|
}],
|
|
521
521
|
/**
|
|
522
522
|
* Flex Grow
|
|
523
523
|
* @see https://tailwindcss.com/docs/flex-grow
|
|
524
524
|
*/
|
|
525
525
|
grow: [{
|
|
526
|
-
grow:
|
|
526
|
+
grow: T()
|
|
527
527
|
}],
|
|
528
528
|
/**
|
|
529
529
|
* Flex Shrink
|
|
530
530
|
* @see https://tailwindcss.com/docs/flex-shrink
|
|
531
531
|
*/
|
|
532
532
|
shrink: [{
|
|
533
|
-
shrink:
|
|
533
|
+
shrink: T()
|
|
534
534
|
}],
|
|
535
535
|
/**
|
|
536
536
|
* Order
|
|
537
537
|
* @see https://tailwindcss.com/docs/order
|
|
538
538
|
*/
|
|
539
539
|
order: [{
|
|
540
|
-
order: ["first", "last", "none", St,
|
|
540
|
+
order: ["first", "last", "none", St, v]
|
|
541
541
|
}],
|
|
542
542
|
/**
|
|
543
543
|
* Grid Template Columns
|
|
@@ -552,22 +552,22 @@ const $ = (t) => {
|
|
|
552
552
|
*/
|
|
553
553
|
"col-start-end": [{
|
|
554
554
|
col: ["auto", {
|
|
555
|
-
span: ["full", St,
|
|
556
|
-
},
|
|
555
|
+
span: ["full", St, v]
|
|
556
|
+
}, v]
|
|
557
557
|
}],
|
|
558
558
|
/**
|
|
559
559
|
* Grid Column Start
|
|
560
560
|
* @see https://tailwindcss.com/docs/grid-column
|
|
561
561
|
*/
|
|
562
562
|
"col-start": [{
|
|
563
|
-
"col-start":
|
|
563
|
+
"col-start": F()
|
|
564
564
|
}],
|
|
565
565
|
/**
|
|
566
566
|
* Grid Column End
|
|
567
567
|
* @see https://tailwindcss.com/docs/grid-column
|
|
568
568
|
*/
|
|
569
569
|
"col-end": [{
|
|
570
|
-
"col-end":
|
|
570
|
+
"col-end": F()
|
|
571
571
|
}],
|
|
572
572
|
/**
|
|
573
573
|
* Grid Template Rows
|
|
@@ -582,22 +582,22 @@ const $ = (t) => {
|
|
|
582
582
|
*/
|
|
583
583
|
"row-start-end": [{
|
|
584
584
|
row: ["auto", {
|
|
585
|
-
span: [St,
|
|
586
|
-
},
|
|
585
|
+
span: [St, v]
|
|
586
|
+
}, v]
|
|
587
587
|
}],
|
|
588
588
|
/**
|
|
589
589
|
* Grid Row Start
|
|
590
590
|
* @see https://tailwindcss.com/docs/grid-row
|
|
591
591
|
*/
|
|
592
592
|
"row-start": [{
|
|
593
|
-
"row-start":
|
|
593
|
+
"row-start": F()
|
|
594
594
|
}],
|
|
595
595
|
/**
|
|
596
596
|
* Grid Row End
|
|
597
597
|
* @see https://tailwindcss.com/docs/grid-row
|
|
598
598
|
*/
|
|
599
599
|
"row-end": [{
|
|
600
|
-
"row-end":
|
|
600
|
+
"row-end": F()
|
|
601
601
|
}],
|
|
602
602
|
/**
|
|
603
603
|
* Grid Auto Flow
|
|
@@ -611,14 +611,14 @@ const $ = (t) => {
|
|
|
611
611
|
* @see https://tailwindcss.com/docs/grid-auto-columns
|
|
612
612
|
*/
|
|
613
613
|
"auto-cols": [{
|
|
614
|
-
"auto-cols": ["auto", "min", "max", "fr",
|
|
614
|
+
"auto-cols": ["auto", "min", "max", "fr", v]
|
|
615
615
|
}],
|
|
616
616
|
/**
|
|
617
617
|
* Grid Auto Rows
|
|
618
618
|
* @see https://tailwindcss.com/docs/grid-auto-rows
|
|
619
619
|
*/
|
|
620
620
|
"auto-rows": [{
|
|
621
|
-
"auto-rows": ["auto", "min", "max", "fr",
|
|
621
|
+
"auto-rows": ["auto", "min", "max", "fr", v]
|
|
622
622
|
}],
|
|
623
623
|
/**
|
|
624
624
|
* Gap
|
|
@@ -773,70 +773,70 @@ const $ = (t) => {
|
|
|
773
773
|
* @see https://tailwindcss.com/docs/margin
|
|
774
774
|
*/
|
|
775
775
|
m: [{
|
|
776
|
-
m: [
|
|
776
|
+
m: [u]
|
|
777
777
|
}],
|
|
778
778
|
/**
|
|
779
779
|
* Margin X
|
|
780
780
|
* @see https://tailwindcss.com/docs/margin
|
|
781
781
|
*/
|
|
782
782
|
mx: [{
|
|
783
|
-
mx: [
|
|
783
|
+
mx: [u]
|
|
784
784
|
}],
|
|
785
785
|
/**
|
|
786
786
|
* Margin Y
|
|
787
787
|
* @see https://tailwindcss.com/docs/margin
|
|
788
788
|
*/
|
|
789
789
|
my: [{
|
|
790
|
-
my: [
|
|
790
|
+
my: [u]
|
|
791
791
|
}],
|
|
792
792
|
/**
|
|
793
793
|
* Margin Start
|
|
794
794
|
* @see https://tailwindcss.com/docs/margin
|
|
795
795
|
*/
|
|
796
796
|
ms: [{
|
|
797
|
-
ms: [
|
|
797
|
+
ms: [u]
|
|
798
798
|
}],
|
|
799
799
|
/**
|
|
800
800
|
* Margin End
|
|
801
801
|
* @see https://tailwindcss.com/docs/margin
|
|
802
802
|
*/
|
|
803
803
|
me: [{
|
|
804
|
-
me: [
|
|
804
|
+
me: [u]
|
|
805
805
|
}],
|
|
806
806
|
/**
|
|
807
807
|
* Margin Top
|
|
808
808
|
* @see https://tailwindcss.com/docs/margin
|
|
809
809
|
*/
|
|
810
810
|
mt: [{
|
|
811
|
-
mt: [
|
|
811
|
+
mt: [u]
|
|
812
812
|
}],
|
|
813
813
|
/**
|
|
814
814
|
* Margin Right
|
|
815
815
|
* @see https://tailwindcss.com/docs/margin
|
|
816
816
|
*/
|
|
817
817
|
mr: [{
|
|
818
|
-
mr: [
|
|
818
|
+
mr: [u]
|
|
819
819
|
}],
|
|
820
820
|
/**
|
|
821
821
|
* Margin Bottom
|
|
822
822
|
* @see https://tailwindcss.com/docs/margin
|
|
823
823
|
*/
|
|
824
824
|
mb: [{
|
|
825
|
-
mb: [
|
|
825
|
+
mb: [u]
|
|
826
826
|
}],
|
|
827
827
|
/**
|
|
828
828
|
* Margin Left
|
|
829
829
|
* @see https://tailwindcss.com/docs/margin
|
|
830
830
|
*/
|
|
831
831
|
ml: [{
|
|
832
|
-
ml: [
|
|
832
|
+
ml: [u]
|
|
833
833
|
}],
|
|
834
834
|
/**
|
|
835
835
|
* Space Between X
|
|
836
836
|
* @see https://tailwindcss.com/docs/space
|
|
837
837
|
*/
|
|
838
838
|
"space-x": [{
|
|
839
|
-
"space-x": [
|
|
839
|
+
"space-x": [A]
|
|
840
840
|
}],
|
|
841
841
|
/**
|
|
842
842
|
* Space Between X Reverse
|
|
@@ -848,7 +848,7 @@ const $ = (t) => {
|
|
|
848
848
|
* @see https://tailwindcss.com/docs/space
|
|
849
849
|
*/
|
|
850
850
|
"space-y": [{
|
|
851
|
-
"space-y": [
|
|
851
|
+
"space-y": [A]
|
|
852
852
|
}],
|
|
853
853
|
/**
|
|
854
854
|
* Space Between Y Reverse
|
|
@@ -861,51 +861,51 @@ const $ = (t) => {
|
|
|
861
861
|
* @see https://tailwindcss.com/docs/width
|
|
862
862
|
*/
|
|
863
863
|
w: [{
|
|
864
|
-
w: ["auto", "min", "max", "fit", "svw", "lvw", "dvw",
|
|
864
|
+
w: ["auto", "min", "max", "fit", "svw", "lvw", "dvw", v, a]
|
|
865
865
|
}],
|
|
866
866
|
/**
|
|
867
867
|
* Min-Width
|
|
868
868
|
* @see https://tailwindcss.com/docs/min-width
|
|
869
869
|
*/
|
|
870
870
|
"min-w": [{
|
|
871
|
-
"min-w": [
|
|
871
|
+
"min-w": [v, a, "min", "max", "fit"]
|
|
872
872
|
}],
|
|
873
873
|
/**
|
|
874
874
|
* Max-Width
|
|
875
875
|
* @see https://tailwindcss.com/docs/max-width
|
|
876
876
|
*/
|
|
877
877
|
"max-w": [{
|
|
878
|
-
"max-w": [
|
|
879
|
-
screen: [
|
|
880
|
-
},
|
|
878
|
+
"max-w": [v, a, "none", "full", "min", "max", "fit", "prose", {
|
|
879
|
+
screen: [W]
|
|
880
|
+
}, W]
|
|
881
881
|
}],
|
|
882
882
|
/**
|
|
883
883
|
* Height
|
|
884
884
|
* @see https://tailwindcss.com/docs/height
|
|
885
885
|
*/
|
|
886
886
|
h: [{
|
|
887
|
-
h: [
|
|
887
|
+
h: [v, a, "auto", "min", "max", "fit", "svh", "lvh", "dvh"]
|
|
888
888
|
}],
|
|
889
889
|
/**
|
|
890
890
|
* Min-Height
|
|
891
891
|
* @see https://tailwindcss.com/docs/min-height
|
|
892
892
|
*/
|
|
893
893
|
"min-h": [{
|
|
894
|
-
"min-h": [
|
|
894
|
+
"min-h": [v, a, "min", "max", "fit", "svh", "lvh", "dvh"]
|
|
895
895
|
}],
|
|
896
896
|
/**
|
|
897
897
|
* Max-Height
|
|
898
898
|
* @see https://tailwindcss.com/docs/max-height
|
|
899
899
|
*/
|
|
900
900
|
"max-h": [{
|
|
901
|
-
"max-h": [
|
|
901
|
+
"max-h": [v, a, "min", "max", "fit", "svh", "lvh", "dvh"]
|
|
902
902
|
}],
|
|
903
903
|
/**
|
|
904
904
|
* Size
|
|
905
905
|
* @see https://tailwindcss.com/docs/size
|
|
906
906
|
*/
|
|
907
907
|
size: [{
|
|
908
|
-
size: [
|
|
908
|
+
size: [v, a, "auto", "min", "max", "fit"]
|
|
909
909
|
}],
|
|
910
910
|
// Typography
|
|
911
911
|
/**
|
|
@@ -913,7 +913,7 @@ const $ = (t) => {
|
|
|
913
913
|
* @see https://tailwindcss.com/docs/font-size
|
|
914
914
|
*/
|
|
915
915
|
"font-size": [{
|
|
916
|
-
text: ["base",
|
|
916
|
+
text: ["base", W, E]
|
|
917
917
|
}],
|
|
918
918
|
/**
|
|
919
919
|
* Font Smoothing
|
|
@@ -974,7 +974,7 @@ const $ = (t) => {
|
|
|
974
974
|
* @see https://tailwindcss.com/docs/letter-spacing
|
|
975
975
|
*/
|
|
976
976
|
tracking: [{
|
|
977
|
-
tracking: ["tighter", "tight", "normal", "wide", "wider", "widest",
|
|
977
|
+
tracking: ["tighter", "tight", "normal", "wide", "wider", "widest", v]
|
|
978
978
|
}],
|
|
979
979
|
/**
|
|
980
980
|
* Line Clamp
|
|
@@ -988,21 +988,21 @@ const $ = (t) => {
|
|
|
988
988
|
* @see https://tailwindcss.com/docs/line-height
|
|
989
989
|
*/
|
|
990
990
|
leading: [{
|
|
991
|
-
leading: ["none", "tight", "snug", "normal", "relaxed", "loose",
|
|
991
|
+
leading: ["none", "tight", "snug", "normal", "relaxed", "loose", G, v]
|
|
992
992
|
}],
|
|
993
993
|
/**
|
|
994
994
|
* List Style Image
|
|
995
995
|
* @see https://tailwindcss.com/docs/list-style-image
|
|
996
996
|
*/
|
|
997
997
|
"list-image": [{
|
|
998
|
-
"list-image": ["none",
|
|
998
|
+
"list-image": ["none", v]
|
|
999
999
|
}],
|
|
1000
1000
|
/**
|
|
1001
1001
|
* List Style Type
|
|
1002
1002
|
* @see https://tailwindcss.com/docs/list-style-type
|
|
1003
1003
|
*/
|
|
1004
1004
|
"list-style-type": [{
|
|
1005
|
-
list: ["none", "disc", "decimal",
|
|
1005
|
+
list: ["none", "disc", "decimal", v]
|
|
1006
1006
|
}],
|
|
1007
1007
|
/**
|
|
1008
1008
|
* List Style Position
|
|
@@ -1057,21 +1057,21 @@ const $ = (t) => {
|
|
|
1057
1057
|
* @see https://tailwindcss.com/docs/text-decoration-style
|
|
1058
1058
|
*/
|
|
1059
1059
|
"text-decoration-style": [{
|
|
1060
|
-
decoration: [...
|
|
1060
|
+
decoration: [...f(), "wavy"]
|
|
1061
1061
|
}],
|
|
1062
1062
|
/**
|
|
1063
1063
|
* Text Decoration Thickness
|
|
1064
1064
|
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
|
1065
1065
|
*/
|
|
1066
1066
|
"text-decoration-thickness": [{
|
|
1067
|
-
decoration: ["auto", "from-font",
|
|
1067
|
+
decoration: ["auto", "from-font", G, E]
|
|
1068
1068
|
}],
|
|
1069
1069
|
/**
|
|
1070
1070
|
* Text Underline Offset
|
|
1071
1071
|
* @see https://tailwindcss.com/docs/text-underline-offset
|
|
1072
1072
|
*/
|
|
1073
1073
|
"underline-offset": [{
|
|
1074
|
-
"underline-offset": ["auto",
|
|
1074
|
+
"underline-offset": ["auto", G, v]
|
|
1075
1075
|
}],
|
|
1076
1076
|
/**
|
|
1077
1077
|
* Text Decoration Color
|
|
@@ -1109,7 +1109,7 @@ const $ = (t) => {
|
|
|
1109
1109
|
* @see https://tailwindcss.com/docs/vertical-align
|
|
1110
1110
|
*/
|
|
1111
1111
|
"vertical-align": [{
|
|
1112
|
-
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super",
|
|
1112
|
+
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", v]
|
|
1113
1113
|
}],
|
|
1114
1114
|
/**
|
|
1115
1115
|
* Whitespace
|
|
@@ -1137,7 +1137,7 @@ const $ = (t) => {
|
|
|
1137
1137
|
* @see https://tailwindcss.com/docs/content
|
|
1138
1138
|
*/
|
|
1139
1139
|
content: [{
|
|
1140
|
-
content: ["none",
|
|
1140
|
+
content: ["none", v]
|
|
1141
1141
|
}],
|
|
1142
1142
|
// Backgrounds
|
|
1143
1143
|
/**
|
|
@@ -1174,7 +1174,7 @@ const $ = (t) => {
|
|
|
1174
1174
|
* @see https://tailwindcss.com/docs/background-position
|
|
1175
1175
|
*/
|
|
1176
1176
|
"bg-position": [{
|
|
1177
|
-
bg: [...
|
|
1177
|
+
bg: [...H(), yx]
|
|
1178
1178
|
}],
|
|
1179
1179
|
/**
|
|
1180
1180
|
* Background Repeat
|
|
@@ -1431,7 +1431,7 @@ const $ = (t) => {
|
|
|
1431
1431
|
* @see https://tailwindcss.com/docs/border-style
|
|
1432
1432
|
*/
|
|
1433
1433
|
"border-style": [{
|
|
1434
|
-
border: [...
|
|
1434
|
+
border: [...f(), "hidden"]
|
|
1435
1435
|
}],
|
|
1436
1436
|
/**
|
|
1437
1437
|
* Divide Width X
|
|
@@ -1469,7 +1469,7 @@ const $ = (t) => {
|
|
|
1469
1469
|
* @see https://tailwindcss.com/docs/divide-style
|
|
1470
1470
|
*/
|
|
1471
1471
|
"divide-style": [{
|
|
1472
|
-
divide:
|
|
1472
|
+
divide: f()
|
|
1473
1473
|
}],
|
|
1474
1474
|
/**
|
|
1475
1475
|
* Border Color
|
|
@@ -1546,21 +1546,21 @@ const $ = (t) => {
|
|
|
1546
1546
|
* @see https://tailwindcss.com/docs/outline-style
|
|
1547
1547
|
*/
|
|
1548
1548
|
"outline-style": [{
|
|
1549
|
-
outline: ["", ...
|
|
1549
|
+
outline: ["", ...f()]
|
|
1550
1550
|
}],
|
|
1551
1551
|
/**
|
|
1552
1552
|
* Outline Offset
|
|
1553
1553
|
* @see https://tailwindcss.com/docs/outline-offset
|
|
1554
1554
|
*/
|
|
1555
1555
|
"outline-offset": [{
|
|
1556
|
-
"outline-offset": [
|
|
1556
|
+
"outline-offset": [G, v]
|
|
1557
1557
|
}],
|
|
1558
1558
|
/**
|
|
1559
1559
|
* Outline Width
|
|
1560
1560
|
* @see https://tailwindcss.com/docs/outline-width
|
|
1561
1561
|
*/
|
|
1562
1562
|
"outline-w": [{
|
|
1563
|
-
outline: [
|
|
1563
|
+
outline: [G, E]
|
|
1564
1564
|
}],
|
|
1565
1565
|
/**
|
|
1566
1566
|
* Outline Color
|
|
@@ -1600,7 +1600,7 @@ const $ = (t) => {
|
|
|
1600
1600
|
* @see https://tailwindcss.com/docs/ring-offset-width
|
|
1601
1601
|
*/
|
|
1602
1602
|
"ring-offset-w": [{
|
|
1603
|
-
"ring-offset": [
|
|
1603
|
+
"ring-offset": [G, E]
|
|
1604
1604
|
}],
|
|
1605
1605
|
/**
|
|
1606
1606
|
* Ring Offset Color
|
|
@@ -1615,7 +1615,7 @@ const $ = (t) => {
|
|
|
1615
1615
|
* @see https://tailwindcss.com/docs/box-shadow
|
|
1616
1616
|
*/
|
|
1617
1617
|
shadow: [{
|
|
1618
|
-
shadow: ["", "inner", "none",
|
|
1618
|
+
shadow: ["", "inner", "none", W, kx]
|
|
1619
1619
|
}],
|
|
1620
1620
|
/**
|
|
1621
1621
|
* Box Shadow Color
|
|
@@ -1636,14 +1636,14 @@ const $ = (t) => {
|
|
|
1636
1636
|
* @see https://tailwindcss.com/docs/mix-blend-mode
|
|
1637
1637
|
*/
|
|
1638
1638
|
"mix-blend": [{
|
|
1639
|
-
"mix-blend": [...
|
|
1639
|
+
"mix-blend": [...P(), "plus-lighter", "plus-darker"]
|
|
1640
1640
|
}],
|
|
1641
1641
|
/**
|
|
1642
1642
|
* Background Blend Mode
|
|
1643
1643
|
* @see https://tailwindcss.com/docs/background-blend-mode
|
|
1644
1644
|
*/
|
|
1645
1645
|
"bg-blend": [{
|
|
1646
|
-
"bg-blend":
|
|
1646
|
+
"bg-blend": P()
|
|
1647
1647
|
}],
|
|
1648
1648
|
// Filters
|
|
1649
1649
|
/**
|
|
@@ -1680,28 +1680,28 @@ const $ = (t) => {
|
|
|
1680
1680
|
* @see https://tailwindcss.com/docs/drop-shadow
|
|
1681
1681
|
*/
|
|
1682
1682
|
"drop-shadow": [{
|
|
1683
|
-
"drop-shadow": ["", "none",
|
|
1683
|
+
"drop-shadow": ["", "none", W, v]
|
|
1684
1684
|
}],
|
|
1685
1685
|
/**
|
|
1686
1686
|
* Grayscale
|
|
1687
1687
|
* @see https://tailwindcss.com/docs/grayscale
|
|
1688
1688
|
*/
|
|
1689
1689
|
grayscale: [{
|
|
1690
|
-
grayscale: [
|
|
1690
|
+
grayscale: [M]
|
|
1691
1691
|
}],
|
|
1692
1692
|
/**
|
|
1693
1693
|
* Hue Rotate
|
|
1694
1694
|
* @see https://tailwindcss.com/docs/hue-rotate
|
|
1695
1695
|
*/
|
|
1696
1696
|
"hue-rotate": [{
|
|
1697
|
-
"hue-rotate": [
|
|
1697
|
+
"hue-rotate": [x]
|
|
1698
1698
|
}],
|
|
1699
1699
|
/**
|
|
1700
1700
|
* Invert
|
|
1701
1701
|
* @see https://tailwindcss.com/docs/invert
|
|
1702
1702
|
*/
|
|
1703
1703
|
invert: [{
|
|
1704
|
-
invert: [
|
|
1704
|
+
invert: [_]
|
|
1705
1705
|
}],
|
|
1706
1706
|
/**
|
|
1707
1707
|
* Saturate
|
|
@@ -1715,7 +1715,7 @@ const $ = (t) => {
|
|
|
1715
1715
|
* @see https://tailwindcss.com/docs/sepia
|
|
1716
1716
|
*/
|
|
1717
1717
|
sepia: [{
|
|
1718
|
-
sepia: [
|
|
1718
|
+
sepia: [B]
|
|
1719
1719
|
}],
|
|
1720
1720
|
/**
|
|
1721
1721
|
* Backdrop Filter
|
|
@@ -1751,21 +1751,21 @@ const $ = (t) => {
|
|
|
1751
1751
|
* @see https://tailwindcss.com/docs/backdrop-grayscale
|
|
1752
1752
|
*/
|
|
1753
1753
|
"backdrop-grayscale": [{
|
|
1754
|
-
"backdrop-grayscale": [
|
|
1754
|
+
"backdrop-grayscale": [M]
|
|
1755
1755
|
}],
|
|
1756
1756
|
/**
|
|
1757
1757
|
* Backdrop Hue Rotate
|
|
1758
1758
|
* @see https://tailwindcss.com/docs/backdrop-hue-rotate
|
|
1759
1759
|
*/
|
|
1760
1760
|
"backdrop-hue-rotate": [{
|
|
1761
|
-
"backdrop-hue-rotate": [
|
|
1761
|
+
"backdrop-hue-rotate": [x]
|
|
1762
1762
|
}],
|
|
1763
1763
|
/**
|
|
1764
1764
|
* Backdrop Invert
|
|
1765
1765
|
* @see https://tailwindcss.com/docs/backdrop-invert
|
|
1766
1766
|
*/
|
|
1767
1767
|
"backdrop-invert": [{
|
|
1768
|
-
"backdrop-invert": [
|
|
1768
|
+
"backdrop-invert": [_]
|
|
1769
1769
|
}],
|
|
1770
1770
|
/**
|
|
1771
1771
|
* Backdrop Opacity
|
|
@@ -1786,7 +1786,7 @@ const $ = (t) => {
|
|
|
1786
1786
|
* @see https://tailwindcss.com/docs/backdrop-sepia
|
|
1787
1787
|
*/
|
|
1788
1788
|
"backdrop-sepia": [{
|
|
1789
|
-
"backdrop-sepia": [
|
|
1789
|
+
"backdrop-sepia": [B]
|
|
1790
1790
|
}],
|
|
1791
1791
|
// Tables
|
|
1792
1792
|
/**
|
|
@@ -1837,35 +1837,35 @@ const $ = (t) => {
|
|
|
1837
1837
|
* @see https://tailwindcss.com/docs/transition-property
|
|
1838
1838
|
*/
|
|
1839
1839
|
transition: [{
|
|
1840
|
-
transition: ["none", "all", "", "colors", "opacity", "shadow", "transform",
|
|
1840
|
+
transition: ["none", "all", "", "colors", "opacity", "shadow", "transform", v]
|
|
1841
1841
|
}],
|
|
1842
1842
|
/**
|
|
1843
1843
|
* Transition Duration
|
|
1844
1844
|
* @see https://tailwindcss.com/docs/transition-duration
|
|
1845
1845
|
*/
|
|
1846
1846
|
duration: [{
|
|
1847
|
-
duration:
|
|
1847
|
+
duration: R()
|
|
1848
1848
|
}],
|
|
1849
1849
|
/**
|
|
1850
1850
|
* Transition Timing Function
|
|
1851
1851
|
* @see https://tailwindcss.com/docs/transition-timing-function
|
|
1852
1852
|
*/
|
|
1853
1853
|
ease: [{
|
|
1854
|
-
ease: ["linear", "in", "out", "in-out",
|
|
1854
|
+
ease: ["linear", "in", "out", "in-out", v]
|
|
1855
1855
|
}],
|
|
1856
1856
|
/**
|
|
1857
1857
|
* Transition Delay
|
|
1858
1858
|
* @see https://tailwindcss.com/docs/transition-delay
|
|
1859
1859
|
*/
|
|
1860
1860
|
delay: [{
|
|
1861
|
-
delay:
|
|
1861
|
+
delay: R()
|
|
1862
1862
|
}],
|
|
1863
1863
|
/**
|
|
1864
1864
|
* Animation
|
|
1865
1865
|
* @see https://tailwindcss.com/docs/animation
|
|
1866
1866
|
*/
|
|
1867
1867
|
animate: [{
|
|
1868
|
-
animate: ["none", "spin", "ping", "pulse", "bounce",
|
|
1868
|
+
animate: ["none", "spin", "ping", "pulse", "bounce", v]
|
|
1869
1869
|
}],
|
|
1870
1870
|
// Transforms
|
|
1871
1871
|
/**
|
|
@@ -1901,42 +1901,42 @@ const $ = (t) => {
|
|
|
1901
1901
|
* @see https://tailwindcss.com/docs/rotate
|
|
1902
1902
|
*/
|
|
1903
1903
|
rotate: [{
|
|
1904
|
-
rotate: [St,
|
|
1904
|
+
rotate: [St, v]
|
|
1905
1905
|
}],
|
|
1906
1906
|
/**
|
|
1907
1907
|
* Translate X
|
|
1908
1908
|
* @see https://tailwindcss.com/docs/translate
|
|
1909
1909
|
*/
|
|
1910
1910
|
"translate-x": [{
|
|
1911
|
-
"translate-x": [
|
|
1911
|
+
"translate-x": [m]
|
|
1912
1912
|
}],
|
|
1913
1913
|
/**
|
|
1914
1914
|
* Translate Y
|
|
1915
1915
|
* @see https://tailwindcss.com/docs/translate
|
|
1916
1916
|
*/
|
|
1917
1917
|
"translate-y": [{
|
|
1918
|
-
"translate-y": [
|
|
1918
|
+
"translate-y": [m]
|
|
1919
1919
|
}],
|
|
1920
1920
|
/**
|
|
1921
1921
|
* Skew X
|
|
1922
1922
|
* @see https://tailwindcss.com/docs/skew
|
|
1923
1923
|
*/
|
|
1924
1924
|
"skew-x": [{
|
|
1925
|
-
"skew-x": [
|
|
1925
|
+
"skew-x": [V]
|
|
1926
1926
|
}],
|
|
1927
1927
|
/**
|
|
1928
1928
|
* Skew Y
|
|
1929
1929
|
* @see https://tailwindcss.com/docs/skew
|
|
1930
1930
|
*/
|
|
1931
1931
|
"skew-y": [{
|
|
1932
|
-
"skew-y": [
|
|
1932
|
+
"skew-y": [V]
|
|
1933
1933
|
}],
|
|
1934
1934
|
/**
|
|
1935
1935
|
* Transform Origin
|
|
1936
1936
|
* @see https://tailwindcss.com/docs/transform-origin
|
|
1937
1937
|
*/
|
|
1938
1938
|
"transform-origin": [{
|
|
1939
|
-
origin: ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left",
|
|
1939
|
+
origin: ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left", v]
|
|
1940
1940
|
}],
|
|
1941
1941
|
// Interactivity
|
|
1942
1942
|
/**
|
|
@@ -1958,7 +1958,7 @@ const $ = (t) => {
|
|
|
1958
1958
|
* @see https://tailwindcss.com/docs/cursor
|
|
1959
1959
|
*/
|
|
1960
1960
|
cursor: [{
|
|
1961
|
-
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",
|
|
1961
|
+
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", v]
|
|
1962
1962
|
}],
|
|
1963
1963
|
/**
|
|
1964
1964
|
* Caret Color
|
|
@@ -2180,7 +2180,7 @@ const $ = (t) => {
|
|
|
2180
2180
|
* @see https://tailwindcss.com/docs/will-change
|
|
2181
2181
|
*/
|
|
2182
2182
|
"will-change": [{
|
|
2183
|
-
"will-change": ["auto", "scroll", "contents", "transform",
|
|
2183
|
+
"will-change": ["auto", "scroll", "contents", "transform", v]
|
|
2184
2184
|
}],
|
|
2185
2185
|
// SVG
|
|
2186
2186
|
/**
|
|
@@ -2195,7 +2195,7 @@ const $ = (t) => {
|
|
|
2195
2195
|
* @see https://tailwindcss.com/docs/stroke-width
|
|
2196
2196
|
*/
|
|
2197
2197
|
"stroke-w": [{
|
|
2198
|
-
stroke: [
|
|
2198
|
+
stroke: [G, E, vg]
|
|
2199
2199
|
}],
|
|
2200
2200
|
/**
|
|
2201
2201
|
* Stroke
|
|
@@ -2284,9 +2284,9 @@ const Ig = ({
|
|
|
2284
2284
|
loading: i = !1,
|
|
2285
2285
|
onClick: h,
|
|
2286
2286
|
type: l = "button",
|
|
2287
|
-
className:
|
|
2288
|
-
textClassName:
|
|
2289
|
-
iconClassName:
|
|
2287
|
+
className: M,
|
|
2288
|
+
textClassName: x,
|
|
2289
|
+
iconClassName: _
|
|
2290
2290
|
}) => {
|
|
2291
2291
|
const L = "flex items-center justify-center gap-2 rounded-md font-medium transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 active:scale-95", N = {
|
|
2292
2292
|
small: "px-3 py-1.5 text-sm",
|
|
@@ -2298,24 +2298,24 @@ const Ig = ({
|
|
|
2298
2298
|
success: "bg-green-500 text-white hover:bg-green-600 focus:ring-green-400",
|
|
2299
2299
|
warning: "bg-yellow-400 text-black hover:bg-yellow-500 focus:ring-yellow-300",
|
|
2300
2300
|
destructive: "bg-red-500 text-white hover:bg-red-600 focus:ring-red-400"
|
|
2301
|
-
},
|
|
2301
|
+
}, g = d || i;
|
|
2302
2302
|
return /* @__PURE__ */ k(
|
|
2303
2303
|
"button",
|
|
2304
2304
|
{
|
|
2305
2305
|
type: l,
|
|
2306
2306
|
onClick: h,
|
|
2307
|
-
disabled:
|
|
2307
|
+
disabled: g,
|
|
2308
2308
|
className: y(
|
|
2309
2309
|
L,
|
|
2310
2310
|
N[r],
|
|
2311
2311
|
C[c],
|
|
2312
|
-
|
|
2313
|
-
|
|
2312
|
+
g && "opacity-50 cursor-not-allowed",
|
|
2313
|
+
M
|
|
2314
2314
|
),
|
|
2315
2315
|
children: [
|
|
2316
|
-
i ? /* @__PURE__ */ n("span", { className: "animate-spin", children: "⏳" }) : a && /* @__PURE__ */ n("span", { className: y("flex items-center",
|
|
2317
|
-
t && /* @__PURE__ */ n("span", { className: y(
|
|
2318
|
-
!i && o && /* @__PURE__ */ n("span", { className: y("flex items-center",
|
|
2316
|
+
i ? /* @__PURE__ */ n("span", { className: "animate-spin", children: "⏳" }) : a && /* @__PURE__ */ n("span", { className: y("flex items-center", _), children: a }),
|
|
2317
|
+
t && /* @__PURE__ */ n("span", { className: y(x), children: i ? "Cargando..." : t }),
|
|
2318
|
+
!i && o && /* @__PURE__ */ n("span", { className: y("flex items-center", _), children: o })
|
|
2319
2319
|
]
|
|
2320
2320
|
}
|
|
2321
2321
|
);
|
|
@@ -2329,15 +2329,15 @@ const Ig = ({
|
|
|
2329
2329
|
size: i = "medium",
|
|
2330
2330
|
type: h = "text",
|
|
2331
2331
|
iconRight: l,
|
|
2332
|
-
disabled:
|
|
2333
|
-
onChange:
|
|
2334
|
-
className:
|
|
2332
|
+
disabled: M,
|
|
2333
|
+
onChange: x,
|
|
2334
|
+
className: _,
|
|
2335
2335
|
inputClassName: L,
|
|
2336
2336
|
labelClassName: N,
|
|
2337
2337
|
hintClassName: C,
|
|
2338
|
-
iconClassName:
|
|
2338
|
+
iconClassName: g
|
|
2339
2339
|
}) => {
|
|
2340
|
-
const
|
|
2340
|
+
const u = {
|
|
2341
2341
|
small: "px-2 py-1 text-sm",
|
|
2342
2342
|
medium: "px-3 py-2 text-sm",
|
|
2343
2343
|
large: "px-4 py-3 text-base"
|
|
@@ -2346,7 +2346,7 @@ const Ig = ({
|
|
|
2346
2346
|
error: "border-red-500 focus:border-red-500",
|
|
2347
2347
|
disabled: "bg-gray-100 cursor-not-allowed"
|
|
2348
2348
|
};
|
|
2349
|
-
return /* @__PURE__ */ k("div", { className: y("flex flex-col gap-1 w-full",
|
|
2349
|
+
return /* @__PURE__ */ k("div", { className: y("flex flex-col gap-1 w-full", _), children: [
|
|
2350
2350
|
t && /* @__PURE__ */ k("label", { className: y("text-sm font-medium", N), children: [
|
|
2351
2351
|
t,
|
|
2352
2352
|
" ",
|
|
@@ -2359,11 +2359,11 @@ const Ig = ({
|
|
|
2359
2359
|
type: h,
|
|
2360
2360
|
value: o,
|
|
2361
2361
|
placeholder: a,
|
|
2362
|
-
disabled:
|
|
2363
|
-
onChange: (b) =>
|
|
2362
|
+
disabled: M || d === "disabled",
|
|
2363
|
+
onChange: (b) => x?.(b.target.value),
|
|
2364
2364
|
className: y(
|
|
2365
2365
|
"w-full rounded-md border outline-none",
|
|
2366
|
-
|
|
2366
|
+
u[i],
|
|
2367
2367
|
w[d],
|
|
2368
2368
|
l && "pr-10",
|
|
2369
2369
|
L
|
|
@@ -2375,7 +2375,7 @@ const Ig = ({
|
|
|
2375
2375
|
{
|
|
2376
2376
|
className: y(
|
|
2377
2377
|
"absolute right-3 top-1/2 -translate-y-1/2",
|
|
2378
|
-
|
|
2378
|
+
g
|
|
2379
2379
|
),
|
|
2380
2380
|
children: l
|
|
2381
2381
|
}
|
|
@@ -2404,17 +2404,17 @@ function GX({
|
|
|
2404
2404
|
maxLength: i,
|
|
2405
2405
|
showCounter: h,
|
|
2406
2406
|
disabled: l,
|
|
2407
|
-
onChange:
|
|
2408
|
-
className:
|
|
2409
|
-
textareaClassName:
|
|
2407
|
+
onChange: M,
|
|
2408
|
+
className: x,
|
|
2409
|
+
textareaClassName: _,
|
|
2410
2410
|
labelClassName: L,
|
|
2411
2411
|
hintClassName: N
|
|
2412
2412
|
}) {
|
|
2413
|
-
const [C,
|
|
2413
|
+
const [C, g] = mg.useState(o), u = o ?? C, w = (b) => {
|
|
2414
2414
|
const I = b.target.value;
|
|
2415
|
-
i && I.length > i || (
|
|
2415
|
+
i && I.length > i || (g(I), M?.(I));
|
|
2416
2416
|
};
|
|
2417
|
-
return /* @__PURE__ */ k("div", { className: y("flex flex-col gap-1",
|
|
2417
|
+
return /* @__PURE__ */ k("div", { className: y("flex flex-col gap-1", x), children: [
|
|
2418
2418
|
t && /* @__PURE__ */ k("label", { className: y("text-sm font-medium", L), children: [
|
|
2419
2419
|
t,
|
|
2420
2420
|
" ",
|
|
@@ -2423,7 +2423,7 @@ function GX({
|
|
|
2423
2423
|
/* @__PURE__ */ n(
|
|
2424
2424
|
"textarea",
|
|
2425
2425
|
{
|
|
2426
|
-
value:
|
|
2426
|
+
value: u,
|
|
2427
2427
|
placeholder: a,
|
|
2428
2428
|
onChange: w,
|
|
2429
2429
|
disabled: l || d === "disabled",
|
|
@@ -2433,7 +2433,7 @@ function GX({
|
|
|
2433
2433
|
d === "error" && "border-red-500 focus:ring-red-500",
|
|
2434
2434
|
d === "default" && "border-gray-300",
|
|
2435
2435
|
(l || d === "disabled") && "bg-gray-100 cursor-not-allowed opacity-70",
|
|
2436
|
-
|
|
2436
|
+
_
|
|
2437
2437
|
)
|
|
2438
2438
|
}
|
|
2439
2439
|
),
|
|
@@ -2449,7 +2449,7 @@ function GX({
|
|
|
2449
2449
|
}
|
|
2450
2450
|
),
|
|
2451
2451
|
h && i && /* @__PURE__ */ k("span", { className: y("text-gray-400", N), children: [
|
|
2452
|
-
|
|
2452
|
+
u.length,
|
|
2453
2453
|
"/",
|
|
2454
2454
|
i
|
|
2455
2455
|
] })
|
|
@@ -2502,7 +2502,7 @@ const Bg = qg(
|
|
|
2502
2502
|
...h
|
|
2503
2503
|
},
|
|
2504
2504
|
[
|
|
2505
|
-
...i.map(([
|
|
2505
|
+
...i.map(([M, x]) => gg(M, x)),
|
|
2506
2506
|
...Array.isArray(d) ? d : [d]
|
|
2507
2507
|
]
|
|
2508
2508
|
)
|
|
@@ -8405,7 +8405,7 @@ const ZH = [
|
|
|
8405
8405
|
["path", { d: "M3 15h18", key: "5xshup" }],
|
|
8406
8406
|
["path", { d: "M9 3v18", key: "fh3hqa" }],
|
|
8407
8407
|
["path", { d: "M15 3v18", key: "14nvp0" }]
|
|
8408
|
-
],
|
|
8408
|
+
], U = e("grid-3x3", ZH);
|
|
8409
8409
|
const GH = [
|
|
8410
8410
|
["circle", { cx: "12", cy: "9", r: "1", key: "124mty" }],
|
|
8411
8411
|
["circle", { cx: "19", cy: "9", r: "1", key: "1ruzo2" }],
|
|
@@ -13529,7 +13529,7 @@ const UO = [
|
|
|
13529
13529
|
["path", { d: "M9 8h7", key: "kbo1nt" }],
|
|
13530
13530
|
["path", { d: "M8 12h6", key: "ikassy" }],
|
|
13531
13531
|
["path", { d: "M11 16h5", key: "oq65wt" }]
|
|
13532
|
-
],
|
|
13532
|
+
], O = e("square-chart-gantt", UO);
|
|
13533
13533
|
const OO = [
|
|
13534
13534
|
["path", { d: "M21 10.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.5", key: "1uzm8b" }],
|
|
13535
13535
|
["path", { d: "m9 11 3 3L22 4", key: "1pflzl" }]
|
|
@@ -13708,7 +13708,7 @@ const uZ = [
|
|
|
13708
13708
|
key: "ohrbg2"
|
|
13709
13709
|
}
|
|
13710
13710
|
]
|
|
13711
|
-
],
|
|
13711
|
+
], D = e("square-pen", uZ);
|
|
13712
13712
|
const MZ = [
|
|
13713
13713
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
13714
13714
|
["path", { d: "M7 7h10", key: "udp07y" }],
|
|
@@ -16421,7 +16421,7 @@ const DX = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
16421
16421
|
Grid2x2Check: Ie,
|
|
16422
16422
|
Grid2x2Plus: Ne,
|
|
16423
16423
|
Grid2x2X: Ce,
|
|
16424
|
-
Grid3x3:
|
|
16424
|
+
Grid3x3: U,
|
|
16425
16425
|
Grip: N4,
|
|
16426
16426
|
GripHorizontal: b4,
|
|
16427
16427
|
GripVertical: I4,
|
|
@@ -17014,7 +17014,7 @@ const DX = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
17014
17014
|
SquareArrowUpRight: w2,
|
|
17015
17015
|
SquareAsterisk: I2,
|
|
17016
17016
|
SquareBottomDashedScissors: N2,
|
|
17017
|
-
SquareChartGantt:
|
|
17017
|
+
SquareChartGantt: O,
|
|
17018
17018
|
SquareCheck: $2,
|
|
17019
17019
|
SquareCheckBig: C2,
|
|
17020
17020
|
SquareChevronDown: q2,
|
|
@@ -17039,7 +17039,7 @@ const DX = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
17039
17039
|
SquareMousePointer: E2,
|
|
17040
17040
|
SquareParking: X2,
|
|
17041
17041
|
SquareParkingOff: W2,
|
|
17042
|
-
SquarePen:
|
|
17042
|
+
SquarePen: D,
|
|
17043
17043
|
SquarePercent: K2,
|
|
17044
17044
|
SquarePi: J2,
|
|
17045
17045
|
SquarePilcrow: Q2,
|
|
@@ -18483,12 +18483,12 @@ const RX = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
18483
18483
|
EarthLockIcon: sr,
|
|
18484
18484
|
Eclipse: pr,
|
|
18485
18485
|
EclipseIcon: pr,
|
|
18486
|
-
Edit:
|
|
18486
|
+
Edit: D,
|
|
18487
18487
|
Edit2: a2,
|
|
18488
18488
|
Edit2Icon: a2,
|
|
18489
18489
|
Edit3: t2,
|
|
18490
18490
|
Edit3Icon: t2,
|
|
18491
|
-
EditIcon:
|
|
18491
|
+
EditIcon: D,
|
|
18492
18492
|
Egg: ur,
|
|
18493
18493
|
EggFried: kr,
|
|
18494
18494
|
EggFriedIcon: kr,
|
|
@@ -18843,8 +18843,8 @@ const RX = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
18843
18843
|
GamepadIcon: Xs,
|
|
18844
18844
|
GanttChart: _1,
|
|
18845
18845
|
GanttChartIcon: _1,
|
|
18846
|
-
GanttChartSquare:
|
|
18847
|
-
GanttChartSquareIcon:
|
|
18846
|
+
GanttChartSquare: O,
|
|
18847
|
+
GanttChartSquareIcon: O,
|
|
18848
18848
|
Gauge: Ks,
|
|
18849
18849
|
GaugeCircle: D1,
|
|
18850
18850
|
GaugeCircleIcon: D1,
|
|
@@ -18911,7 +18911,7 @@ const RX = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
18911
18911
|
GraduationCapIcon: L4,
|
|
18912
18912
|
Grape: w4,
|
|
18913
18913
|
GrapeIcon: w4,
|
|
18914
|
-
Grid:
|
|
18914
|
+
Grid: U,
|
|
18915
18915
|
Grid2X2: $e,
|
|
18916
18916
|
Grid2X2Check: Ie,
|
|
18917
18917
|
Grid2X2CheckIcon: Ie,
|
|
@@ -18928,11 +18928,11 @@ const RX = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
18928
18928
|
Grid2x2PlusIcon: Ne,
|
|
18929
18929
|
Grid2x2X: Ce,
|
|
18930
18930
|
Grid2x2XIcon: Ce,
|
|
18931
|
-
Grid3X3:
|
|
18932
|
-
Grid3X3Icon:
|
|
18933
|
-
Grid3x3:
|
|
18934
|
-
Grid3x3Icon:
|
|
18935
|
-
GridIcon:
|
|
18931
|
+
Grid3X3: U,
|
|
18932
|
+
Grid3X3Icon: U,
|
|
18933
|
+
Grid3x3: U,
|
|
18934
|
+
Grid3x3Icon: U,
|
|
18935
|
+
GridIcon: U,
|
|
18936
18936
|
Grip: N4,
|
|
18937
18937
|
GripHorizontal: b4,
|
|
18938
18938
|
GripHorizontalIcon: b4,
|
|
@@ -19870,7 +19870,7 @@ const RX = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
19870
19870
|
LucideEarth: ye,
|
|
19871
19871
|
LucideEarthLock: sr,
|
|
19872
19872
|
LucideEclipse: pr,
|
|
19873
|
-
LucideEdit:
|
|
19873
|
+
LucideEdit: D,
|
|
19874
19874
|
LucideEdit2: a2,
|
|
19875
19875
|
LucideEdit3: t2,
|
|
19876
19876
|
LucideEgg: ur,
|
|
@@ -20050,7 +20050,7 @@ const RX = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
20050
20050
|
LucideGamepad: Xs,
|
|
20051
20051
|
LucideGamepad2: Ws,
|
|
20052
20052
|
LucideGanttChart: _1,
|
|
20053
|
-
LucideGanttChartSquare:
|
|
20053
|
+
LucideGanttChartSquare: O,
|
|
20054
20054
|
LucideGauge: Ks,
|
|
20055
20055
|
LucideGaugeCircle: D1,
|
|
20056
20056
|
LucideGavel: Js,
|
|
@@ -20084,7 +20084,7 @@ const RX = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
20084
20084
|
LucideGrab: f4,
|
|
20085
20085
|
LucideGraduationCap: L4,
|
|
20086
20086
|
LucideGrape: w4,
|
|
20087
|
-
LucideGrid:
|
|
20087
|
+
LucideGrid: U,
|
|
20088
20088
|
LucideGrid2X2: $e,
|
|
20089
20089
|
LucideGrid2X2Check: Ie,
|
|
20090
20090
|
LucideGrid2X2Plus: Ne,
|
|
@@ -20093,8 +20093,8 @@ const RX = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
20093
20093
|
LucideGrid2x2Check: Ie,
|
|
20094
20094
|
LucideGrid2x2Plus: Ne,
|
|
20095
20095
|
LucideGrid2x2X: Ce,
|
|
20096
|
-
LucideGrid3X3:
|
|
20097
|
-
LucideGrid3x3:
|
|
20096
|
+
LucideGrid3X3: U,
|
|
20097
|
+
LucideGrid3x3: U,
|
|
20098
20098
|
LucideGrip: N4,
|
|
20099
20099
|
LucideGripHorizontal: b4,
|
|
20100
20100
|
LucideGripVertical: I4,
|
|
@@ -20472,10 +20472,10 @@ const RX = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
20472
20472
|
LucidePawPrint: y6,
|
|
20473
20473
|
LucidePcCase: s6,
|
|
20474
20474
|
LucidePen: a2,
|
|
20475
|
-
LucidePenBox:
|
|
20475
|
+
LucidePenBox: D,
|
|
20476
20476
|
LucidePenLine: t2,
|
|
20477
20477
|
LucidePenOff: p6,
|
|
20478
|
-
LucidePenSquare:
|
|
20478
|
+
LucidePenSquare: D,
|
|
20479
20479
|
LucidePenTool: k6,
|
|
20480
20480
|
LucidePencil: m6,
|
|
20481
20481
|
LucidePencilLine: u6,
|
|
@@ -20760,7 +20760,7 @@ const RX = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
20760
20760
|
LucideSquareArrowUpRight: w2,
|
|
20761
20761
|
LucideSquareAsterisk: I2,
|
|
20762
20762
|
LucideSquareBottomDashedScissors: N2,
|
|
20763
|
-
LucideSquareChartGantt:
|
|
20763
|
+
LucideSquareChartGantt: O,
|
|
20764
20764
|
LucideSquareCheck: $2,
|
|
20765
20765
|
LucideSquareCheckBig: C2,
|
|
20766
20766
|
LucideSquareChevronDown: q2,
|
|
@@ -20777,7 +20777,7 @@ const RX = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
20777
20777
|
LucideSquareDot: F2,
|
|
20778
20778
|
LucideSquareEqual: D2,
|
|
20779
20779
|
LucideSquareFunction: R2,
|
|
20780
|
-
LucideSquareGanttChart:
|
|
20780
|
+
LucideSquareGanttChart: O,
|
|
20781
20781
|
LucideSquareKanban: T2,
|
|
20782
20782
|
LucideSquareLibrary: U2,
|
|
20783
20783
|
LucideSquareM: O2,
|
|
@@ -20786,7 +20786,7 @@ const RX = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
20786
20786
|
LucideSquareMousePointer: E2,
|
|
20787
20787
|
LucideSquareParking: X2,
|
|
20788
20788
|
LucideSquareParkingOff: W2,
|
|
20789
|
-
LucideSquarePen:
|
|
20789
|
+
LucideSquarePen: D,
|
|
20790
20790
|
LucideSquarePercent: K2,
|
|
20791
20791
|
LucideSquarePi: J2,
|
|
20792
20792
|
LucideSquarePilcrow: Q2,
|
|
@@ -21472,15 +21472,15 @@ const RX = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
21472
21472
|
PcCase: s6,
|
|
21473
21473
|
PcCaseIcon: s6,
|
|
21474
21474
|
Pen: a2,
|
|
21475
|
-
PenBox:
|
|
21476
|
-
PenBoxIcon:
|
|
21475
|
+
PenBox: D,
|
|
21476
|
+
PenBoxIcon: D,
|
|
21477
21477
|
PenIcon: a2,
|
|
21478
21478
|
PenLine: t2,
|
|
21479
21479
|
PenLineIcon: t2,
|
|
21480
21480
|
PenOff: p6,
|
|
21481
21481
|
PenOffIcon: p6,
|
|
21482
|
-
PenSquare:
|
|
21483
|
-
PenSquareIcon:
|
|
21482
|
+
PenSquare: D,
|
|
21483
|
+
PenSquareIcon: D,
|
|
21484
21484
|
PenTool: k6,
|
|
21485
21485
|
PenToolIcon: k6,
|
|
21486
21486
|
Pencil: m6,
|
|
@@ -22048,8 +22048,8 @@ const RX = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
22048
22048
|
SquareAsteriskIcon: I2,
|
|
22049
22049
|
SquareBottomDashedScissors: N2,
|
|
22050
22050
|
SquareBottomDashedScissorsIcon: N2,
|
|
22051
|
-
SquareChartGantt:
|
|
22052
|
-
SquareChartGanttIcon:
|
|
22051
|
+
SquareChartGantt: O,
|
|
22052
|
+
SquareChartGanttIcon: O,
|
|
22053
22053
|
SquareCheck: $2,
|
|
22054
22054
|
SquareCheckBig: C2,
|
|
22055
22055
|
SquareCheckBigIcon: C2,
|
|
@@ -22082,8 +22082,8 @@ const RX = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
22082
22082
|
SquareEqualIcon: D2,
|
|
22083
22083
|
SquareFunction: R2,
|
|
22084
22084
|
SquareFunctionIcon: R2,
|
|
22085
|
-
SquareGanttChart:
|
|
22086
|
-
SquareGanttChartIcon:
|
|
22085
|
+
SquareGanttChart: O,
|
|
22086
|
+
SquareGanttChartIcon: O,
|
|
22087
22087
|
SquareIcon: $9,
|
|
22088
22088
|
SquareKanban: T2,
|
|
22089
22089
|
SquareKanbanIcon: T2,
|
|
@@ -22101,8 +22101,8 @@ const RX = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
22101
22101
|
SquareParkingIcon: X2,
|
|
22102
22102
|
SquareParkingOff: W2,
|
|
22103
22103
|
SquareParkingOffIcon: W2,
|
|
22104
|
-
SquarePen:
|
|
22105
|
-
SquarePenIcon:
|
|
22104
|
+
SquarePen: D,
|
|
22105
|
+
SquarePenIcon: D,
|
|
22106
22106
|
SquarePercent: K2,
|
|
22107
22107
|
SquarePercentIcon: K2,
|
|
22108
22108
|
SquarePi: J2,
|
|
@@ -22652,15 +22652,15 @@ function EX({
|
|
|
22652
22652
|
className: i,
|
|
22653
22653
|
checkboxClassName: h,
|
|
22654
22654
|
labelClassName: l,
|
|
22655
|
-
hintClassName:
|
|
22656
|
-
iconClassName:
|
|
22655
|
+
hintClassName: M,
|
|
22656
|
+
iconClassName: x
|
|
22657
22657
|
}) {
|
|
22658
|
-
const
|
|
22658
|
+
const _ = mg.useId();
|
|
22659
22659
|
return /* @__PURE__ */ k("div", { className: y("flex flex-col gap-1", i), children: [
|
|
22660
22660
|
/* @__PURE__ */ k(
|
|
22661
22661
|
"label",
|
|
22662
22662
|
{
|
|
22663
|
-
htmlFor:
|
|
22663
|
+
htmlFor: _,
|
|
22664
22664
|
className: y(
|
|
22665
22665
|
"flex items-center gap-2 cursor-pointer",
|
|
22666
22666
|
c && "opacity-50 cursor-not-allowed",
|
|
@@ -22670,7 +22670,7 @@ function EX({
|
|
|
22670
22670
|
/* @__PURE__ */ n(
|
|
22671
22671
|
"input",
|
|
22672
22672
|
{
|
|
22673
|
-
id:
|
|
22673
|
+
id: _,
|
|
22674
22674
|
type: "checkbox",
|
|
22675
22675
|
checked: a,
|
|
22676
22676
|
disabled: c,
|
|
@@ -22686,14 +22686,14 @@ function EX({
|
|
|
22686
22686
|
a || o ? "bg-primary text-white border-primary" : "bg-white border-gray-300",
|
|
22687
22687
|
h
|
|
22688
22688
|
),
|
|
22689
|
-
children: o ? /* @__PURE__ */ n(jt, { size: 12, className:
|
|
22689
|
+
children: o ? /* @__PURE__ */ n(jt, { size: 12, className: x }) : a ? /* @__PURE__ */ n(At, { size: 12, className: x }) : null
|
|
22690
22690
|
}
|
|
22691
22691
|
),
|
|
22692
22692
|
t && /* @__PURE__ */ n("span", { className: "text-sm", children: t })
|
|
22693
22693
|
]
|
|
22694
22694
|
}
|
|
22695
22695
|
),
|
|
22696
|
-
r && /* @__PURE__ */ n("span", { className: y("text-xs text-gray-500",
|
|
22696
|
+
r && /* @__PURE__ */ n("span", { className: y("text-xs text-gray-500", M), children: r })
|
|
22697
22697
|
] });
|
|
22698
22698
|
}
|
|
22699
22699
|
const Cg = ({
|
|
@@ -22706,17 +22706,17 @@ const Cg = ({
|
|
|
22706
22706
|
onMenuClick: i,
|
|
22707
22707
|
className: h,
|
|
22708
22708
|
leftSectionClassName: l,
|
|
22709
|
-
titleClassName:
|
|
22710
|
-
subtitleClassName:
|
|
22711
|
-
iconClassName:
|
|
22709
|
+
titleClassName: M,
|
|
22710
|
+
subtitleClassName: x,
|
|
22711
|
+
iconClassName: _,
|
|
22712
22712
|
menuButtonClassName: L,
|
|
22713
22713
|
dropdownClassName: N,
|
|
22714
22714
|
optionClassName: C
|
|
22715
22715
|
}) => {
|
|
22716
|
-
const [
|
|
22716
|
+
const [g, u] = Pt.useState(!1), w = Pt.useRef(null), b = c || r === "loading";
|
|
22717
22717
|
return Pt.useEffect(() => {
|
|
22718
22718
|
function I(q) {
|
|
22719
|
-
w.current && !w.current.contains(q.target) &&
|
|
22719
|
+
w.current && !w.current.contains(q.target) && u(!1);
|
|
22720
22720
|
}
|
|
22721
22721
|
return document.addEventListener("mousedown", I), () => {
|
|
22722
22722
|
document.removeEventListener("mousedown", I);
|
|
@@ -22730,14 +22730,14 @@ const Cg = ({
|
|
|
22730
22730
|
),
|
|
22731
22731
|
children: [
|
|
22732
22732
|
/* @__PURE__ */ k("div", { className: y("flex items-start gap-3", l), children: [
|
|
22733
|
-
/* @__PURE__ */ n("div", { className: y("shrink-0",
|
|
22733
|
+
/* @__PURE__ */ n("div", { className: y("shrink-0", _), children: o }),
|
|
22734
22734
|
/* @__PURE__ */ k("div", { className: "flex flex-col", children: [
|
|
22735
22735
|
/* @__PURE__ */ n(
|
|
22736
22736
|
"span",
|
|
22737
22737
|
{
|
|
22738
22738
|
className: y(
|
|
22739
22739
|
"text-sm font-semibold text-gray-900",
|
|
22740
|
-
|
|
22740
|
+
M
|
|
22741
22741
|
),
|
|
22742
22742
|
children: t
|
|
22743
22743
|
}
|
|
@@ -22747,7 +22747,7 @@ const Cg = ({
|
|
|
22747
22747
|
{
|
|
22748
22748
|
className: y(
|
|
22749
22749
|
"flex items-center gap-2 text-sm text-gray-500 mt-1",
|
|
22750
|
-
|
|
22750
|
+
x
|
|
22751
22751
|
),
|
|
22752
22752
|
children: [
|
|
22753
22753
|
/* @__PURE__ */ n("span", { children: a }),
|
|
@@ -22765,7 +22765,7 @@ const Cg = ({
|
|
|
22765
22765
|
"button",
|
|
22766
22766
|
{
|
|
22767
22767
|
onClick: () => {
|
|
22768
|
-
|
|
22768
|
+
u(!g), i?.();
|
|
22769
22769
|
},
|
|
22770
22770
|
className: y(
|
|
22771
22771
|
"flex items-center justify-center w-9 h-9 rounded-lg hover:bg-orange-50 text-orange-500 transition-colors duration-200",
|
|
@@ -22774,7 +22774,7 @@ const Cg = ({
|
|
|
22774
22774
|
children: /* @__PURE__ */ n("span", { className: "text-xl leading-none", children: "⋯" })
|
|
22775
22775
|
}
|
|
22776
22776
|
),
|
|
22777
|
-
|
|
22777
|
+
g && d.length > 0 && /* @__PURE__ */ n(
|
|
22778
22778
|
"div",
|
|
22779
22779
|
{
|
|
22780
22780
|
className: y(
|
|
@@ -22785,7 +22785,7 @@ const Cg = ({
|
|
|
22785
22785
|
"button",
|
|
22786
22786
|
{
|
|
22787
22787
|
onClick: () => {
|
|
22788
|
-
I.onClick?.(),
|
|
22788
|
+
I.onClick?.(), u(!1);
|
|
22789
22789
|
},
|
|
22790
22790
|
className: y(
|
|
22791
22791
|
"w-full flex items-center gap-3 px-4 py-3 text-sm transition-colors duration-150",
|
|
@@ -22816,33 +22816,33 @@ function WX({
|
|
|
22816
22816
|
onDownloadExisting: i,
|
|
22817
22817
|
className: h,
|
|
22818
22818
|
dropzoneClassName: l,
|
|
22819
|
-
draggingClassName:
|
|
22820
|
-
labelClassName:
|
|
22821
|
-
buttonClassName:
|
|
22819
|
+
draggingClassName: M,
|
|
22820
|
+
labelClassName: x,
|
|
22821
|
+
buttonClassName: _,
|
|
22822
22822
|
fileItemClassName: L,
|
|
22823
22823
|
fileNameClassName: N,
|
|
22824
22824
|
removeIconClassName: C,
|
|
22825
|
-
iconClassName:
|
|
22826
|
-
iconColor:
|
|
22825
|
+
iconClassName: g,
|
|
22826
|
+
iconColor: u = "#EE512E",
|
|
22827
22827
|
titleClassName: w,
|
|
22828
22828
|
subtitleClassName: b,
|
|
22829
22829
|
menuButtonClassName: I,
|
|
22830
22830
|
existingFileDropdownIcons: q,
|
|
22831
|
-
newFileDropdownIcons:
|
|
22831
|
+
newFileDropdownIcons: B
|
|
22832
22832
|
}) {
|
|
22833
|
-
const [
|
|
22834
|
-
if (!
|
|
22835
|
-
const
|
|
22836
|
-
const
|
|
22837
|
-
return
|
|
22838
|
-
}),
|
|
22839
|
-
|
|
22840
|
-
}, s = (
|
|
22841
|
-
const
|
|
22842
|
-
|
|
22843
|
-
}, p = (
|
|
22844
|
-
const
|
|
22845
|
-
return /* @__PURE__ */ k("div", { className: y("flex flex-col items-center justify-center",
|
|
22833
|
+
const [V, A] = mg.useState([]), [m, z] = mg.useState(!1), j = (f) => {
|
|
22834
|
+
if (!f) return;
|
|
22835
|
+
const P = Array.from(f).filter((T) => {
|
|
22836
|
+
const Vt = T.size / 1024 / 1024 <= a, R = o ? o.includes(T.type) : !0;
|
|
22837
|
+
return Vt && R;
|
|
22838
|
+
}), Z = t ? [...V, ...P] : P;
|
|
22839
|
+
A(Z), c?.(Z);
|
|
22840
|
+
}, s = (f) => {
|
|
22841
|
+
const P = V.filter((Z, T) => T !== f);
|
|
22842
|
+
A(P), c?.(P);
|
|
22843
|
+
}, p = (f) => f >= 1024 ? `<${f / 1024}GB` : `<${f}MB`, S = o && o.length > 0 ? o.join(", ") : "Cualquier formato", F = (f) => {
|
|
22844
|
+
const P = f.split(".").pop()?.toUpperCase() ?? "FILE";
|
|
22845
|
+
return /* @__PURE__ */ k("div", { className: y("flex flex-col items-center justify-center", g), children: [
|
|
22846
22846
|
/* @__PURE__ */ k(
|
|
22847
22847
|
"svg",
|
|
22848
22848
|
{
|
|
@@ -22851,7 +22851,7 @@ function WX({
|
|
|
22851
22851
|
height: "32",
|
|
22852
22852
|
viewBox: "0 0 24 24",
|
|
22853
22853
|
fill: "none",
|
|
22854
|
-
stroke:
|
|
22854
|
+
stroke: u,
|
|
22855
22855
|
strokeWidth: "2",
|
|
22856
22856
|
strokeLinecap: "round",
|
|
22857
22857
|
strokeLinejoin: "round",
|
|
@@ -22865,27 +22865,27 @@ function WX({
|
|
|
22865
22865
|
"span",
|
|
22866
22866
|
{
|
|
22867
22867
|
className: "text-[8px] font-bold leading-none mt-0.5",
|
|
22868
|
-
style: { color:
|
|
22869
|
-
children:
|
|
22868
|
+
style: { color: u },
|
|
22869
|
+
children: P
|
|
22870
22870
|
}
|
|
22871
22871
|
)
|
|
22872
22872
|
] });
|
|
22873
|
-
};
|
|
22874
|
-
return /* @__PURE__ */ k("div", { className: y("flex
|
|
22873
|
+
}, H = r.length > 0 || V.length > 0;
|
|
22874
|
+
return /* @__PURE__ */ k("div", { className: y("flex gap-3 items-start", h), children: [
|
|
22875
22875
|
/* @__PURE__ */ k(
|
|
22876
22876
|
"div",
|
|
22877
22877
|
{
|
|
22878
|
-
onDragOver: (
|
|
22879
|
-
|
|
22878
|
+
onDragOver: (f) => {
|
|
22879
|
+
f.preventDefault(), z(!0);
|
|
22880
22880
|
},
|
|
22881
22881
|
onDragLeave: () => z(!1),
|
|
22882
|
-
onDrop: (
|
|
22883
|
-
|
|
22882
|
+
onDrop: (f) => {
|
|
22883
|
+
f.preventDefault(), z(!1), j(f.dataTransfer.files);
|
|
22884
22884
|
},
|
|
22885
22885
|
className: y(
|
|
22886
22886
|
"border-2 border-dashed rounded-lg p-6 text-center transition bg-[#FEF7F6]",
|
|
22887
|
-
|
|
22888
|
-
|
|
22887
|
+
m ? "border-[#EE512E] bg-[#FEF7F6]" : "border-[#EE512E]/40",
|
|
22888
|
+
m && M,
|
|
22889
22889
|
l
|
|
22890
22890
|
),
|
|
22891
22891
|
children: [
|
|
@@ -22909,7 +22909,7 @@ function WX({
|
|
|
22909
22909
|
]
|
|
22910
22910
|
}
|
|
22911
22911
|
),
|
|
22912
|
-
/* @__PURE__ */ n("p", { className: y("text-sm font-semibold text-gray-800",
|
|
22912
|
+
/* @__PURE__ */ n("p", { className: y("text-sm font-semibold text-gray-800", x), children: "Arrastra/Selecciona un archivo" }),
|
|
22913
22913
|
/* @__PURE__ */ k("p", { className: "text-xs text-gray-400 mt-0.5", children: [
|
|
22914
22914
|
S,
|
|
22915
22915
|
" | ",
|
|
@@ -22920,7 +22920,7 @@ function WX({
|
|
|
22920
22920
|
{
|
|
22921
22921
|
type: "file",
|
|
22922
22922
|
multiple: t,
|
|
22923
|
-
onChange: (
|
|
22923
|
+
onChange: (f) => j(f.target.files),
|
|
22924
22924
|
className: "hidden",
|
|
22925
22925
|
id: "file-upload"
|
|
22926
22926
|
}
|
|
@@ -22931,7 +22931,7 @@ function WX({
|
|
|
22931
22931
|
htmlFor: "file-upload",
|
|
22932
22932
|
className: y(
|
|
22933
22933
|
"inline-flex items-center gap-1.5 mt-3 px-4 py-1.5 border border-[#EE512E] rounded-full text-sm text-[#EE512E] cursor-pointer hover:bg-[#FEF7F6] transition",
|
|
22934
|
-
|
|
22934
|
+
_
|
|
22935
22935
|
),
|
|
22936
22936
|
children: [
|
|
22937
22937
|
"Seleccionar",
|
|
@@ -22956,56 +22956,58 @@ function WX({
|
|
|
22956
22956
|
]
|
|
22957
22957
|
}
|
|
22958
22958
|
),
|
|
22959
|
-
|
|
22960
|
-
|
|
22961
|
-
{
|
|
22962
|
-
title: u.nombre,
|
|
22963
|
-
subtitle: u.size !== void 0 ? `${u.size}MB` : "",
|
|
22964
|
-
iconFile: B(u.nombre),
|
|
22965
|
-
className: L,
|
|
22966
|
-
titleClassName: w,
|
|
22967
|
-
subtitleClassName: b,
|
|
22968
|
-
menuButtonClassName: I,
|
|
22969
|
-
dropdownOptions: [
|
|
22970
|
-
{
|
|
22971
|
-
label: "Descargar",
|
|
22972
|
-
icon: q?.download,
|
|
22973
|
-
onClick: () => i?.(u)
|
|
22974
|
-
},
|
|
22975
|
-
{
|
|
22976
|
-
label: "Borrar",
|
|
22977
|
-
icon: q?.remove,
|
|
22978
|
-
danger: !0,
|
|
22979
|
-
onClick: () => d?.(u.id)
|
|
22980
|
-
}
|
|
22981
|
-
]
|
|
22982
|
-
},
|
|
22983
|
-
`existing-${u.id}`
|
|
22984
|
-
)),
|
|
22985
|
-
P.map((u, j) => {
|
|
22986
|
-
const D = (u.size / 1024 / 1024).toFixed(0);
|
|
22987
|
-
return /* @__PURE__ */ n(
|
|
22959
|
+
H && /* @__PURE__ */ k("div", { className: "flex flex-col gap-3 flex-1 min-w-0", children: [
|
|
22960
|
+
r.map((f) => /* @__PURE__ */ n(
|
|
22988
22961
|
Cg,
|
|
22989
22962
|
{
|
|
22990
|
-
title:
|
|
22991
|
-
subtitle: `${
|
|
22992
|
-
iconFile:
|
|
22963
|
+
title: f.nombre,
|
|
22964
|
+
subtitle: f.size !== void 0 ? `${f.size}MB` : "",
|
|
22965
|
+
iconFile: F(f.nombre),
|
|
22993
22966
|
className: L,
|
|
22994
22967
|
titleClassName: w,
|
|
22995
22968
|
subtitleClassName: b,
|
|
22996
22969
|
menuButtonClassName: I,
|
|
22997
22970
|
dropdownOptions: [
|
|
22971
|
+
{
|
|
22972
|
+
label: "Descargar",
|
|
22973
|
+
icon: q?.download,
|
|
22974
|
+
onClick: () => i?.(f)
|
|
22975
|
+
},
|
|
22998
22976
|
{
|
|
22999
22977
|
label: "Borrar",
|
|
23000
|
-
icon:
|
|
22978
|
+
icon: q?.remove,
|
|
23001
22979
|
danger: !0,
|
|
23002
|
-
onClick: () =>
|
|
22980
|
+
onClick: () => d?.(f.id)
|
|
23003
22981
|
}
|
|
23004
22982
|
]
|
|
23005
22983
|
},
|
|
23006
|
-
`
|
|
23007
|
-
)
|
|
23008
|
-
|
|
22984
|
+
`existing-${f.id}`
|
|
22985
|
+
)),
|
|
22986
|
+
V.map((f, P) => {
|
|
22987
|
+
const Z = (f.size / 1024 / 1024).toFixed(0);
|
|
22988
|
+
return /* @__PURE__ */ n(
|
|
22989
|
+
Cg,
|
|
22990
|
+
{
|
|
22991
|
+
title: f.name,
|
|
22992
|
+
subtitle: `${Z}MB`,
|
|
22993
|
+
iconFile: F(f.name),
|
|
22994
|
+
className: L,
|
|
22995
|
+
titleClassName: w,
|
|
22996
|
+
subtitleClassName: b,
|
|
22997
|
+
menuButtonClassName: I,
|
|
22998
|
+
dropdownOptions: [
|
|
22999
|
+
{
|
|
23000
|
+
label: "Borrar",
|
|
23001
|
+
icon: B?.remove,
|
|
23002
|
+
danger: !0,
|
|
23003
|
+
onClick: () => s(P)
|
|
23004
|
+
}
|
|
23005
|
+
]
|
|
23006
|
+
},
|
|
23007
|
+
`new-${P}`
|
|
23008
|
+
);
|
|
23009
|
+
})
|
|
23010
|
+
] })
|
|
23009
23011
|
] });
|
|
23010
23012
|
}
|
|
23011
23013
|
const XX = ({
|
|
@@ -23058,14 +23060,14 @@ const XX = ({
|
|
|
23058
23060
|
primaryAction: i,
|
|
23059
23061
|
secondaryAction: h,
|
|
23060
23062
|
size: l = "medium",
|
|
23061
|
-
closeOnOverlayClick:
|
|
23062
|
-
closeOnEsc:
|
|
23063
|
-
hideIcon:
|
|
23063
|
+
closeOnOverlayClick: M = !0,
|
|
23064
|
+
closeOnEsc: x = !0,
|
|
23065
|
+
hideIcon: _ = !1,
|
|
23064
23066
|
className: L,
|
|
23065
23067
|
overlayClassName: N,
|
|
23066
23068
|
contentClassName: C,
|
|
23067
|
-
headerClassName:
|
|
23068
|
-
bodyClassName:
|
|
23069
|
+
headerClassName: g,
|
|
23070
|
+
bodyClassName: u,
|
|
23069
23071
|
footerClassName: w,
|
|
23070
23072
|
iconClassName: b,
|
|
23071
23073
|
titleClassName: I,
|
|
@@ -23074,18 +23076,18 @@ const XX = ({
|
|
|
23074
23076
|
if (Pt.useEffect(() => {
|
|
23075
23077
|
if (!t) return;
|
|
23076
23078
|
document.body.style.overflow = "hidden";
|
|
23077
|
-
const
|
|
23078
|
-
z.key === "Escape" &&
|
|
23079
|
+
const m = (z) => {
|
|
23080
|
+
z.key === "Escape" && x && a();
|
|
23079
23081
|
};
|
|
23080
|
-
return document.addEventListener("keydown",
|
|
23081
|
-
document.body.style.overflow = "", document.removeEventListener("keydown",
|
|
23082
|
+
return document.addEventListener("keydown", m), () => {
|
|
23083
|
+
document.body.style.overflow = "", document.removeEventListener("keydown", m);
|
|
23082
23084
|
};
|
|
23083
|
-
}, [t,
|
|
23084
|
-
const
|
|
23085
|
+
}, [t, x, a]), !t) return null;
|
|
23086
|
+
const B = {
|
|
23085
23087
|
small: "w-[360px]",
|
|
23086
23088
|
medium: "w-[480px]",
|
|
23087
23089
|
large: "w-[640px]"
|
|
23088
|
-
},
|
|
23090
|
+
}, A = {
|
|
23089
23091
|
success: {
|
|
23090
23092
|
icon: "✓",
|
|
23091
23093
|
bg: "bg-green-100",
|
|
@@ -23116,7 +23118,7 @@ const XX = ({
|
|
|
23116
23118
|
N
|
|
23117
23119
|
),
|
|
23118
23120
|
onClick: () => {
|
|
23119
|
-
|
|
23121
|
+
M && a();
|
|
23120
23122
|
}
|
|
23121
23123
|
}
|
|
23122
23124
|
),
|
|
@@ -23125,27 +23127,27 @@ const XX = ({
|
|
|
23125
23127
|
{
|
|
23126
23128
|
className: y(
|
|
23127
23129
|
"relative z-10 bg-white rounded-2xl shadow-2xl border border-gray-200 overflow-hidden animate-in fade-in zoom-in-95 duration-200",
|
|
23128
|
-
|
|
23130
|
+
B[l],
|
|
23129
23131
|
C
|
|
23130
23132
|
),
|
|
23131
23133
|
children: [
|
|
23132
|
-
/* @__PURE__ */ k("div", { className: y("px-6 pt-6 pb-4 text-center",
|
|
23133
|
-
!
|
|
23134
|
+
/* @__PURE__ */ k("div", { className: y("px-6 pt-6 pb-4 text-center", g), children: [
|
|
23135
|
+
!_ && /* @__PURE__ */ n(
|
|
23134
23136
|
"div",
|
|
23135
23137
|
{
|
|
23136
23138
|
className: y(
|
|
23137
23139
|
"w-14 h-14 mx-auto mb-4 rounded-full flex items-center justify-center text-2xl font-bold",
|
|
23138
|
-
|
|
23139
|
-
|
|
23140
|
+
A.bg,
|
|
23141
|
+
A.text,
|
|
23140
23142
|
b
|
|
23141
23143
|
),
|
|
23142
|
-
children:
|
|
23144
|
+
children: A.icon
|
|
23143
23145
|
}
|
|
23144
23146
|
),
|
|
23145
23147
|
/* @__PURE__ */ n("h2", { className: y("text-lg font-semibold text-gray-900", I), children: c }),
|
|
23146
23148
|
r && /* @__PURE__ */ n("p", { className: y("mt-2 text-sm text-gray-500", q), children: r })
|
|
23147
23149
|
] }),
|
|
23148
|
-
d && /* @__PURE__ */ n("div", { className: y("px-6 pb-6",
|
|
23150
|
+
d && /* @__PURE__ */ n("div", { className: y("px-6 pb-6", u), children: d }),
|
|
23149
23151
|
(i || h) && /* @__PURE__ */ k(
|
|
23150
23152
|
"div",
|
|
23151
23153
|
{
|
|
@@ -23187,7 +23189,7 @@ const XX = ({
|
|
|
23187
23189
|
disablePointerEvents: i = !1,
|
|
23188
23190
|
className: h,
|
|
23189
23191
|
overlayClassName: l,
|
|
23190
|
-
contentClassName:
|
|
23192
|
+
contentClassName: M
|
|
23191
23193
|
}) => t ? /* @__PURE__ */ k(
|
|
23192
23194
|
"div",
|
|
23193
23195
|
{
|
|
@@ -23216,7 +23218,7 @@ const XX = ({
|
|
|
23216
23218
|
className: y(
|
|
23217
23219
|
"relative z-50 flex items-center justify-center w-full h-full",
|
|
23218
23220
|
!i && "pointer-events-auto",
|
|
23219
|
-
|
|
23221
|
+
M
|
|
23220
23222
|
),
|
|
23221
23223
|
children: c
|
|
23222
23224
|
}
|
|
@@ -23237,42 +23239,42 @@ function QX({
|
|
|
23237
23239
|
className: d = "",
|
|
23238
23240
|
onActionClick: i
|
|
23239
23241
|
}) {
|
|
23240
|
-
const [h, l] = $t(1), [
|
|
23241
|
-
|
|
23242
|
+
const [h, l] = $t(1), [M, x] = $t({}), [_, L] = $t(null), [N, C] = $t({ top: 0, left: 0 }), g = xg(null), u = xg(/* @__PURE__ */ new Map()), w = (s, p) => {
|
|
23243
|
+
x((S) => ({ ...S, [s]: p })), l(1);
|
|
23242
23244
|
}, b = (s) => {
|
|
23243
|
-
const p =
|
|
23245
|
+
const p = u.current.get(s);
|
|
23244
23246
|
if (!p) return;
|
|
23245
|
-
const S = p.getBoundingClientRect(),
|
|
23247
|
+
const S = p.getBoundingClientRect(), F = 100, H = 160, P = window.innerHeight - S.bottom < F;
|
|
23246
23248
|
C({
|
|
23247
|
-
top:
|
|
23248
|
-
left: S.right -
|
|
23249
|
+
top: P ? S.top - F - 4 : S.bottom + 4,
|
|
23250
|
+
left: S.right - H
|
|
23249
23251
|
});
|
|
23250
23252
|
}, I = (s) => {
|
|
23251
|
-
|
|
23253
|
+
_ === s ? L(null) : (b(s), L(s));
|
|
23252
23254
|
};
|
|
23253
23255
|
_g(() => {
|
|
23254
23256
|
const s = (p) => {
|
|
23255
23257
|
const S = p.target;
|
|
23256
|
-
|
|
23258
|
+
g.current?.contains(S) || Array.from(u.current.values()).some((H) => H.contains(S)) || L(null);
|
|
23257
23259
|
};
|
|
23258
23260
|
return document.addEventListener("mousedown", s), () => document.removeEventListener("mousedown", s);
|
|
23259
23261
|
}, []), _g(() => {
|
|
23260
|
-
if (
|
|
23262
|
+
if (_ === null) return;
|
|
23261
23263
|
const s = () => L(null);
|
|
23262
23264
|
return window.addEventListener("scroll", s, !0), window.addEventListener("resize", s), () => {
|
|
23263
23265
|
window.removeEventListener("scroll", s, !0), window.removeEventListener("resize", s);
|
|
23264
23266
|
};
|
|
23265
|
-
}, [
|
|
23267
|
+
}, [_]);
|
|
23266
23268
|
const q = Fg(() => a.filter(
|
|
23267
23269
|
(s) => t.every((p) => {
|
|
23268
|
-
const S =
|
|
23270
|
+
const S = M[p.key]?.toLowerCase() || "";
|
|
23269
23271
|
return S ? String(s[p.key]).toLowerCase().includes(S) : !0;
|
|
23270
23272
|
})
|
|
23271
|
-
), [a,
|
|
23272
|
-
s >= 1 && s <=
|
|
23273
|
+
), [a, M, t]), B = Math.max(1, Math.ceil(q.length / o)), V = (h - 1) * o, A = q.slice(V, V + o), m = (s) => {
|
|
23274
|
+
s >= 1 && s <= B && l(s);
|
|
23273
23275
|
}, z = (s, p) => {
|
|
23274
23276
|
L(null), s.onClick ? s.onClick(p) : i && i(s, p);
|
|
23275
|
-
},
|
|
23277
|
+
}, j = _ !== null ? A[_ - V] : null;
|
|
23276
23278
|
return /* @__PURE__ */ k("div", { className: `w-full p-4 ${d}`, children: [
|
|
23277
23279
|
/* @__PURE__ */ k("div", { className: "border rounded-2xl shadow", children: [
|
|
23278
23280
|
/* @__PURE__ */ n("div", { className: "overflow-x-auto rounded-2xl", children: /* @__PURE__ */ k("table", { className: "w-full border-collapse", children: [
|
|
@@ -23305,7 +23307,7 @@ function QX({
|
|
|
23305
23307
|
{
|
|
23306
23308
|
type: "text",
|
|
23307
23309
|
placeholder: "",
|
|
23308
|
-
value:
|
|
23310
|
+
value: M[s.key] || "",
|
|
23309
23311
|
onChange: (p) => w(s.key, p.target.value),
|
|
23310
23312
|
className: "w-full px-2 py-1 border rounded-full text-sm focus:outline-none focus:ring-0 focus:border-transparent"
|
|
23311
23313
|
}
|
|
@@ -23313,27 +23315,27 @@ function QX({
|
|
|
23313
23315
|
/* @__PURE__ */ n("th", {})
|
|
23314
23316
|
] })
|
|
23315
23317
|
] }),
|
|
23316
|
-
/* @__PURE__ */ n("tbody", { children:
|
|
23318
|
+
/* @__PURE__ */ n("tbody", { children: A.length === 0 ? /* @__PURE__ */ n("tr", { children: /* @__PURE__ */ n(
|
|
23317
23319
|
"td",
|
|
23318
23320
|
{
|
|
23319
23321
|
colSpan: t.length + 1,
|
|
23320
23322
|
className: "p-4 text-center text-sm text-gray-500",
|
|
23321
23323
|
children: "No hay resultados"
|
|
23322
23324
|
}
|
|
23323
|
-
) }) :
|
|
23324
|
-
const S =
|
|
23325
|
+
) }) : A.map((s, p) => {
|
|
23326
|
+
const S = V + p, F = Array.isArray(s.actions) && s.actions.length > 0;
|
|
23325
23327
|
return /* @__PURE__ */ k(
|
|
23326
23328
|
"tr",
|
|
23327
23329
|
{
|
|
23328
23330
|
className: "border-t hover:bg-gray-50 transition",
|
|
23329
23331
|
children: [
|
|
23330
|
-
t.map((
|
|
23331
|
-
/* @__PURE__ */ n("td", { className: "p-3 text-right", children:
|
|
23332
|
+
t.map((H) => /* @__PURE__ */ n("td", { className: "p-3 text-sm", children: H.render ? H.render(s[H.key], s) : s[H.key] }, H.key)),
|
|
23333
|
+
/* @__PURE__ */ n("td", { className: "p-3 text-right", children: F && /* @__PURE__ */ n(
|
|
23332
23334
|
"button",
|
|
23333
23335
|
{
|
|
23334
23336
|
type: "button",
|
|
23335
|
-
ref: (
|
|
23336
|
-
|
|
23337
|
+
ref: (H) => {
|
|
23338
|
+
H ? u.current.set(S, H) : u.current.delete(S);
|
|
23337
23339
|
},
|
|
23338
23340
|
onClick: () => I(S),
|
|
23339
23341
|
className: "px-2 py-1 rounded hover:bg-gray-200 transition cursor-pointer",
|
|
@@ -23350,7 +23352,7 @@ function QX({
|
|
|
23350
23352
|
/* @__PURE__ */ k("div", { className: "flex items-center justify-between p-3 text-sm border-t border-gray-200", children: [
|
|
23351
23353
|
/* @__PURE__ */ k("span", { children: [
|
|
23352
23354
|
"Mostrando ",
|
|
23353
|
-
|
|
23355
|
+
A.length,
|
|
23354
23356
|
" de ",
|
|
23355
23357
|
q.length,
|
|
23356
23358
|
" resultados"
|
|
@@ -23359,16 +23361,16 @@ function QX({
|
|
|
23359
23361
|
/* @__PURE__ */ n(
|
|
23360
23362
|
"button",
|
|
23361
23363
|
{
|
|
23362
|
-
onClick: () =>
|
|
23364
|
+
onClick: () => m(h - 1),
|
|
23363
23365
|
className: "px-2 py-1 border rounded disabled:opacity-50",
|
|
23364
23366
|
disabled: h === 1,
|
|
23365
23367
|
children: "<"
|
|
23366
23368
|
}
|
|
23367
23369
|
),
|
|
23368
|
-
Array.from({ length:
|
|
23370
|
+
Array.from({ length: B }).map((s, p) => /* @__PURE__ */ n(
|
|
23369
23371
|
"button",
|
|
23370
23372
|
{
|
|
23371
|
-
onClick: () =>
|
|
23373
|
+
onClick: () => m(p + 1),
|
|
23372
23374
|
className: `px-3 py-1 rounded ${h === p + 1 ? "bg-red-500 text-white" : "border"}`,
|
|
23373
23375
|
children: p + 1
|
|
23374
23376
|
},
|
|
@@ -23377,19 +23379,19 @@ function QX({
|
|
|
23377
23379
|
/* @__PURE__ */ n(
|
|
23378
23380
|
"button",
|
|
23379
23381
|
{
|
|
23380
|
-
onClick: () =>
|
|
23382
|
+
onClick: () => m(h + 1),
|
|
23381
23383
|
className: "px-2 py-1 border rounded disabled:opacity-50",
|
|
23382
|
-
disabled: h ===
|
|
23384
|
+
disabled: h === B,
|
|
23383
23385
|
children: ">"
|
|
23384
23386
|
}
|
|
23385
23387
|
)
|
|
23386
23388
|
] })
|
|
23387
23389
|
] })
|
|
23388
23390
|
] }),
|
|
23389
|
-
|
|
23391
|
+
j && /* @__PURE__ */ n(
|
|
23390
23392
|
"div",
|
|
23391
23393
|
{
|
|
23392
|
-
ref:
|
|
23394
|
+
ref: g,
|
|
23393
23395
|
style: {
|
|
23394
23396
|
position: "fixed",
|
|
23395
23397
|
top: `${N.top}px`,
|
|
@@ -23398,11 +23400,11 @@ function QX({
|
|
|
23398
23400
|
minWidth: "160px"
|
|
23399
23401
|
},
|
|
23400
23402
|
className: "bg-white border border-gray-200 rounded-lg shadow-lg py-1",
|
|
23401
|
-
children:
|
|
23403
|
+
children: j.actions.filter((s) => s.isActive !== !1).map((s, p) => /* @__PURE__ */ k(
|
|
23402
23404
|
"button",
|
|
23403
23405
|
{
|
|
23404
23406
|
type: "button",
|
|
23405
|
-
onClick: () => z(s,
|
|
23407
|
+
onClick: () => z(s, j),
|
|
23406
23408
|
className: "w-full text-left px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 transition cursor-pointer flex items-center gap-2",
|
|
23407
23409
|
children: [
|
|
23408
23410
|
TX(s.icon),
|
|
@@ -23425,29 +23427,29 @@ const YX = ({
|
|
|
23425
23427
|
value: i,
|
|
23426
23428
|
onChange: h,
|
|
23427
23429
|
className: l,
|
|
23428
|
-
triggerClassName:
|
|
23429
|
-
dropdownClassName:
|
|
23430
|
-
optionClassName:
|
|
23430
|
+
triggerClassName: M,
|
|
23431
|
+
dropdownClassName: x,
|
|
23432
|
+
optionClassName: _,
|
|
23431
23433
|
labelClassName: L,
|
|
23432
23434
|
hintClassName: N,
|
|
23433
23435
|
searchClassName: C
|
|
23434
23436
|
}) => {
|
|
23435
|
-
const [
|
|
23437
|
+
const [g, u] = $t(!1), [w, b] = $t(""), I = xg(null), q = (m) => a && Array.isArray(i) ? i.includes(m) : i === m, B = (m) => {
|
|
23436
23438
|
if (a) {
|
|
23437
23439
|
let z = Array.isArray(i) ? [...i] : [];
|
|
23438
|
-
z.includes(
|
|
23440
|
+
z.includes(m) ? z = z.filter((j) => j !== m) : z.push(m), h?.(z);
|
|
23439
23441
|
} else
|
|
23440
|
-
h?.(
|
|
23441
|
-
},
|
|
23442
|
-
!a || !Array.isArray(i) || h?.(i.filter((z) => z !==
|
|
23443
|
-
},
|
|
23444
|
-
(
|
|
23442
|
+
h?.(m), u(!1);
|
|
23443
|
+
}, V = (m) => {
|
|
23444
|
+
!a || !Array.isArray(i) || h?.(i.filter((z) => z !== m));
|
|
23445
|
+
}, A = t.filter(
|
|
23446
|
+
(m) => m.label.toLowerCase().includes(w.toLowerCase())
|
|
23445
23447
|
);
|
|
23446
23448
|
return _g(() => {
|
|
23447
|
-
const
|
|
23448
|
-
I.current?.contains(z.target) ||
|
|
23449
|
+
const m = (z) => {
|
|
23450
|
+
I.current?.contains(z.target) || u(!1);
|
|
23449
23451
|
};
|
|
23450
|
-
return document.addEventListener("mousedown",
|
|
23452
|
+
return document.addEventListener("mousedown", m), () => document.removeEventListener("mousedown", m);
|
|
23451
23453
|
}, []), /* @__PURE__ */ k("div", { className: y("w-[300px] text-sm relative", l), ref: I, children: [
|
|
23452
23454
|
c && /* @__PURE__ */ k("label", { className: y("block mb-1 font-medium", L), children: [
|
|
23453
23455
|
c,
|
|
@@ -23459,12 +23461,12 @@ const YX = ({
|
|
|
23459
23461
|
{
|
|
23460
23462
|
className: y(
|
|
23461
23463
|
"border rounded-lg px-3 py-2 flex items-center cursor-pointer justify-between",
|
|
23462
|
-
|
|
23464
|
+
M
|
|
23463
23465
|
),
|
|
23464
|
-
onClick: () =>
|
|
23466
|
+
onClick: () => u(!g),
|
|
23465
23467
|
children: [
|
|
23466
|
-
/* @__PURE__ */ n("span", { className: "flex-1 flex flex-wrap gap-2", children: a && Array.isArray(i) ? i.length > 0 ? i.map((
|
|
23467
|
-
const z = t.find((
|
|
23468
|
+
/* @__PURE__ */ n("span", { className: "flex-1 flex flex-wrap gap-2", children: a && Array.isArray(i) ? i.length > 0 ? i.map((m) => {
|
|
23469
|
+
const z = t.find((j) => j.value === m);
|
|
23468
23470
|
return /* @__PURE__ */ k(
|
|
23469
23471
|
"span",
|
|
23470
23472
|
{
|
|
@@ -23474,32 +23476,32 @@ const YX = ({
|
|
|
23474
23476
|
/* @__PURE__ */ n(
|
|
23475
23477
|
"button",
|
|
23476
23478
|
{
|
|
23477
|
-
onClick: (
|
|
23478
|
-
|
|
23479
|
+
onClick: (j) => {
|
|
23480
|
+
j.stopPropagation(), V(m);
|
|
23479
23481
|
},
|
|
23480
23482
|
children: "×"
|
|
23481
23483
|
}
|
|
23482
23484
|
)
|
|
23483
23485
|
]
|
|
23484
23486
|
},
|
|
23485
|
-
|
|
23487
|
+
m
|
|
23486
23488
|
);
|
|
23487
|
-
}) : /* @__PURE__ */ n("span", { className: "text-gray-400", children: o }) : /* @__PURE__ */ n("span", { children: t.find((
|
|
23489
|
+
}) : /* @__PURE__ */ n("span", { className: "text-gray-400", children: o }) : /* @__PURE__ */ n("span", { children: t.find((m) => m.value === i)?.label || /* @__PURE__ */ n("span", { className: "text-gray-400", children: o }) }) }),
|
|
23488
23490
|
/* @__PURE__ */ n("span", { style: {
|
|
23489
23491
|
transition: "transform 200ms",
|
|
23490
|
-
transform:
|
|
23492
|
+
transform: g ? "rotate(180deg)" : "rotate(0deg)",
|
|
23491
23493
|
marginLeft: "8px",
|
|
23492
23494
|
flexShrink: 0
|
|
23493
23495
|
}, children: "▾" })
|
|
23494
23496
|
]
|
|
23495
23497
|
}
|
|
23496
23498
|
),
|
|
23497
|
-
|
|
23499
|
+
g && /* @__PURE__ */ k(
|
|
23498
23500
|
"div",
|
|
23499
23501
|
{
|
|
23500
23502
|
className: y(
|
|
23501
23503
|
"border rounded-lg mt-2 p-2 bg-white shadow absolute w-full z-50",
|
|
23502
|
-
|
|
23504
|
+
x
|
|
23503
23505
|
),
|
|
23504
23506
|
children: [
|
|
23505
23507
|
/* @__PURE__ */ n(
|
|
@@ -23512,31 +23514,31 @@ const YX = ({
|
|
|
23512
23514
|
C
|
|
23513
23515
|
),
|
|
23514
23516
|
value: w,
|
|
23515
|
-
onChange: (
|
|
23517
|
+
onChange: (m) => b(m.target.value)
|
|
23516
23518
|
}
|
|
23517
23519
|
),
|
|
23518
|
-
/* @__PURE__ */ n("div", { className: "max-h-40 overflow-auto", children:
|
|
23520
|
+
/* @__PURE__ */ n("div", { className: "max-h-40 overflow-auto", children: A.map((m) => /* @__PURE__ */ k(
|
|
23519
23521
|
"div",
|
|
23520
23522
|
{
|
|
23521
23523
|
className: y(
|
|
23522
23524
|
"flex items-center gap-2 px-2 py-1 hover:bg-gray-100 cursor-pointer",
|
|
23523
|
-
|
|
23525
|
+
_
|
|
23524
23526
|
),
|
|
23525
|
-
onClick: () =>
|
|
23527
|
+
onClick: () => B(m.value),
|
|
23526
23528
|
children: [
|
|
23527
23529
|
a && /* @__PURE__ */ n(
|
|
23528
23530
|
"input",
|
|
23529
23531
|
{
|
|
23530
23532
|
type: "checkbox",
|
|
23531
|
-
checked: q(
|
|
23533
|
+
checked: q(m.value),
|
|
23532
23534
|
readOnly: !0
|
|
23533
23535
|
}
|
|
23534
23536
|
),
|
|
23535
|
-
/* @__PURE__ */ n("span", { children:
|
|
23536
|
-
!a && q(
|
|
23537
|
+
/* @__PURE__ */ n("span", { children: m.label }),
|
|
23538
|
+
!a && q(m.value) && /* @__PURE__ */ n("span", { className: "ml-auto", children: "✔" })
|
|
23537
23539
|
]
|
|
23538
23540
|
},
|
|
23539
|
-
|
|
23541
|
+
m.value
|
|
23540
23542
|
)) })
|
|
23541
23543
|
]
|
|
23542
23544
|
}
|
|
@@ -23554,8 +23556,8 @@ function eK({
|
|
|
23554
23556
|
}) {
|
|
23555
23557
|
const [i, h] = $t(t), l = () => {
|
|
23556
23558
|
if (r) return;
|
|
23557
|
-
const
|
|
23558
|
-
h(
|
|
23559
|
+
const M = !i;
|
|
23560
|
+
h(M), a?.(M);
|
|
23559
23561
|
};
|
|
23560
23562
|
return /* @__PURE__ */ k("div", { className: `flex items-center gap-2 ${d}`, children: [
|
|
23561
23563
|
/* @__PURE__ */ n(
|