@mistersee/global-table 0.1.3 → 0.1.5
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/Pagination.d.ts +4 -2
- package/dist/SeeTable.d.ts +1 -1
- package/dist/global-table.js +506 -422
- package/dist/icons/SortIcon.d.ts +5 -0
- package/dist/index.d.ts +1 -1
- package/dist/types.d.ts +31 -1
- package/package.json +6 -3
package/dist/global-table.js
CHANGED
|
@@ -118,30 +118,30 @@ var p = (e, t) => {
|
|
|
118
118
|
ne(e, t, n, r);
|
|
119
119
|
return;
|
|
120
120
|
}
|
|
121
|
-
|
|
121
|
+
re(e, t, n, r);
|
|
122
122
|
}, te = (e, t, n) => {
|
|
123
|
-
let r = e === "" ? t :
|
|
123
|
+
let r = e === "" ? t : ie(t, e);
|
|
124
124
|
r.classGroupId = n;
|
|
125
125
|
}, ne = (e, t, n, r) => {
|
|
126
|
-
if (
|
|
126
|
+
if (ae(e)) {
|
|
127
127
|
C(e(r), t, n, r);
|
|
128
128
|
return;
|
|
129
129
|
}
|
|
130
130
|
t.validators === null && (t.validators = []), t.validators.push(m(n, e));
|
|
131
|
-
},
|
|
131
|
+
}, re = (e, t, n, r) => {
|
|
132
132
|
let i = Object.entries(e), a = i.length;
|
|
133
133
|
for (let e = 0; e < a; e++) {
|
|
134
134
|
let [a, o] = i[e];
|
|
135
|
-
C(o,
|
|
135
|
+
C(o, ie(t, a), n, r);
|
|
136
136
|
}
|
|
137
|
-
},
|
|
137
|
+
}, ie = (e, t) => {
|
|
138
138
|
let n = e, r = t.split(g), i = r.length;
|
|
139
139
|
for (let e = 0; e < i; e++) {
|
|
140
140
|
let t = r[e], i = n.nextPart.get(t);
|
|
141
141
|
i || (i = h(), n.nextPart.set(t, i)), n = i;
|
|
142
142
|
}
|
|
143
143
|
return n;
|
|
144
|
-
},
|
|
144
|
+
}, ae = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, T = (e) => {
|
|
145
145
|
if (e < 1) return {
|
|
146
146
|
get: () => void 0,
|
|
147
147
|
set: () => {}
|
|
@@ -159,19 +159,19 @@ var p = (e, t) => {
|
|
|
159
159
|
e in n ? n[e] = t : i(e, t);
|
|
160
160
|
}
|
|
161
161
|
};
|
|
162
|
-
},
|
|
162
|
+
}, E = "!", D = ":", O = [], oe = (e, t, n, r, i) => ({
|
|
163
163
|
modifiers: e,
|
|
164
164
|
hasImportantModifier: t,
|
|
165
165
|
baseClassName: n,
|
|
166
166
|
maybePostfixModifierPosition: r,
|
|
167
167
|
isExternal: i
|
|
168
|
-
}),
|
|
168
|
+
}), k = (e) => {
|
|
169
169
|
let { prefix: t, experimentalParseClassName: n } = e, r = (e) => {
|
|
170
170
|
let t = [], n = 0, r = 0, i = 0, a, o = e.length;
|
|
171
171
|
for (let s = 0; s < o; s++) {
|
|
172
172
|
let o = e[s];
|
|
173
173
|
if (n === 0 && r === 0) {
|
|
174
|
-
if (o ===
|
|
174
|
+
if (o === D) {
|
|
175
175
|
t.push(e.slice(i, s)), i = s + 1;
|
|
176
176
|
continue;
|
|
177
177
|
}
|
|
@@ -183,13 +183,13 @@ var p = (e, t) => {
|
|
|
183
183
|
o === "[" ? n++ : o === "]" ? n-- : o === "(" ? r++ : o === ")" && r--;
|
|
184
184
|
}
|
|
185
185
|
let s = t.length === 0 ? e : e.slice(i), c = s, l = !1;
|
|
186
|
-
s.endsWith(
|
|
186
|
+
s.endsWith(E) ? (c = s.slice(0, -1), l = !0) : s.startsWith(E) && (c = s.slice(1), l = !0);
|
|
187
187
|
let u = a && a > i ? a - i : void 0;
|
|
188
|
-
return
|
|
188
|
+
return oe(t, l, c, u);
|
|
189
189
|
};
|
|
190
190
|
if (t) {
|
|
191
|
-
let e = t +
|
|
192
|
-
r = (t) => t.startsWith(e) ? n(t.slice(e.length)) :
|
|
191
|
+
let e = t + D, n = r;
|
|
192
|
+
r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : oe(O, !1, t, void 0, !0);
|
|
193
193
|
}
|
|
194
194
|
if (n) {
|
|
195
195
|
let e = r;
|
|
@@ -199,7 +199,7 @@ var p = (e, t) => {
|
|
|
199
199
|
});
|
|
200
200
|
}
|
|
201
201
|
return r;
|
|
202
|
-
},
|
|
202
|
+
}, A = (e) => {
|
|
203
203
|
let t = /* @__PURE__ */ new Map();
|
|
204
204
|
return e.orderSensitiveModifiers.forEach((e, n) => {
|
|
205
205
|
t.set(e, 1e6 + n);
|
|
@@ -211,18 +211,18 @@ var p = (e, t) => {
|
|
|
211
211
|
}
|
|
212
212
|
return r.length > 0 && (r.sort(), n.push(...r)), n;
|
|
213
213
|
};
|
|
214
|
-
},
|
|
215
|
-
cache:
|
|
216
|
-
parseClassName:
|
|
217
|
-
sortModifiers:
|
|
218
|
-
postfixLookupClassGroupIds:
|
|
214
|
+
}, se = (e) => ({
|
|
215
|
+
cache: T(e.cacheSize),
|
|
216
|
+
parseClassName: k(e),
|
|
217
|
+
sortModifiers: A(e),
|
|
218
|
+
postfixLookupClassGroupIds: j(e),
|
|
219
219
|
...y(e)
|
|
220
|
-
}),
|
|
220
|
+
}), j = (e) => {
|
|
221
221
|
let t = Object.create(null), n = e.postfixLookupClassGroups;
|
|
222
222
|
if (n) for (let e = 0; e < n.length; e++) t[n[e]] = !0;
|
|
223
223
|
return t;
|
|
224
|
-
},
|
|
225
|
-
let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(
|
|
224
|
+
}, M = /\s+/, N = (e, t) => {
|
|
225
|
+
let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(M), l = "";
|
|
226
226
|
for (let e = c.length - 1; e >= 0; --e) {
|
|
227
227
|
let t = c[e], { isExternal: u, modifiers: d, hasImportantModifier: f, baseClassName: p, maybePostfixModifierPosition: m } = n(t);
|
|
228
228
|
if (u) {
|
|
@@ -246,7 +246,7 @@ var p = (e, t) => {
|
|
|
246
246
|
}
|
|
247
247
|
h = !1;
|
|
248
248
|
}
|
|
249
|
-
let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ +
|
|
249
|
+
let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + E : _, y = v + g;
|
|
250
250
|
if (s.indexOf(y) > -1) continue;
|
|
251
251
|
s.push(y);
|
|
252
252
|
let b = i(g, h);
|
|
@@ -266,25 +266,25 @@ var p = (e, t) => {
|
|
|
266
266
|
let t, n = "";
|
|
267
267
|
for (let r = 0; r < e.length; r++) e[r] && (t = F(e[r])) && (n && (n += " "), n += t);
|
|
268
268
|
return n;
|
|
269
|
-
},
|
|
270
|
-
let n, r, i, a, o = (o) => (n =
|
|
269
|
+
}, ce = (e, ...t) => {
|
|
270
|
+
let n, r, i, a, o = (o) => (n = se(t.reduce((e, t) => t(e), e())), r = n.cache.get, i = n.cache.set, a = s, s(o)), s = (e) => {
|
|
271
271
|
let t = r(e);
|
|
272
272
|
if (t) return t;
|
|
273
273
|
let a = N(e, n);
|
|
274
274
|
return i(e, a), a;
|
|
275
275
|
};
|
|
276
276
|
return a = o, (...e) => a(P(...e));
|
|
277
|
-
},
|
|
278
|
-
let t = (t) => t[e] ||
|
|
277
|
+
}, I = [], L = (e) => {
|
|
278
|
+
let t = (t) => t[e] || I;
|
|
279
279
|
return t.isThemeGetter = !0, t.themeKey = e, t;
|
|
280
|
-
},
|
|
281
|
-
let r =
|
|
280
|
+
}, R = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, z = /^\((?:(\w[\w-]*):)?(.+)\)$/i, B = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, le = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, V = /\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$/, ue = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/, de = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, fe = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, H = (e) => B.test(e), U = (e) => !!e && !Number.isNaN(Number(e)), W = (e) => !!e && Number.isInteger(Number(e)), G = (e) => e.endsWith("%") && U(e.slice(0, -1)), K = (e) => le.test(e), q = () => !0, pe = (e) => V.test(e) && !ue.test(e), me = () => !1, he = (e) => de.test(e), ge = (e) => fe.test(e), _e = (e) => !J(e) && !X(e), ve = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), ye = (e) => Z(e, Fe, me), J = (e) => R.test(e), Y = (e) => Z(e, Ie, pe), be = (e) => Z(e, Le, U), xe = (e) => Z(e, ze, q), Se = (e) => Z(e, Re, me), Ce = (e) => Z(e, Ne, me), we = (e) => Z(e, Pe, ge), Te = (e) => Z(e, Be, he), X = (e) => z.test(e), Ee = (e) => Q(e, Ie), De = (e) => Q(e, Re), Oe = (e) => Q(e, Ne), ke = (e) => Q(e, Fe), Ae = (e) => Q(e, Pe), je = (e) => Q(e, Be, !0), Me = (e) => Q(e, ze, !0), Z = (e, t, n) => {
|
|
281
|
+
let r = R.exec(e);
|
|
282
282
|
return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
|
|
283
283
|
}, Q = (e, t, n = !1) => {
|
|
284
|
-
let r =
|
|
284
|
+
let r = z.exec(e);
|
|
285
285
|
return r ? r[1] ? t(r[1]) : n : !1;
|
|
286
|
-
}, Ne = (e) => e === "position" || e === "percentage", Pe = (e) => e === "image" || e === "url", Fe = (e) => e === "length" || e === "size" || e === "bg-size", Ie = (e) => e === "length", Le = (e) => e === "number", Re = (e) => e === "family-name", ze = (e) => e === "number" || e === "weight", Be = (e) => e === "shadow", Ve = /*#__PURE__*/
|
|
287
|
-
let e =
|
|
286
|
+
}, Ne = (e) => e === "position" || e === "percentage", Pe = (e) => e === "image" || e === "url", Fe = (e) => e === "length" || e === "size" || e === "bg-size", Ie = (e) => e === "length", Le = (e) => e === "number", Re = (e) => e === "family-name", ze = (e) => e === "number" || e === "weight", Be = (e) => e === "shadow", Ve = /*#__PURE__*/ ce(() => {
|
|
287
|
+
let e = L("color"), t = L("font"), n = L("text"), r = L("font-weight"), i = L("tracking"), a = L("leading"), o = L("breakpoint"), s = L("container"), c = L("spacing"), l = L("radius"), u = L("shadow"), d = L("inset-shadow"), f = L("text-shadow"), p = L("drop-shadow"), m = L("blur"), h = L("perspective"), g = L("aspect"), _ = L("ease"), v = L("animate"), y = () => [
|
|
288
288
|
"auto",
|
|
289
289
|
"avoid",
|
|
290
290
|
"all",
|
|
@@ -326,12 +326,12 @@ var p = (e, t) => {
|
|
|
326
326
|
J,
|
|
327
327
|
c
|
|
328
328
|
], w = () => [
|
|
329
|
-
|
|
329
|
+
H,
|
|
330
330
|
"full",
|
|
331
331
|
"auto",
|
|
332
332
|
...C()
|
|
333
333
|
], te = () => [
|
|
334
|
-
|
|
334
|
+
W,
|
|
335
335
|
"none",
|
|
336
336
|
"subgrid",
|
|
337
337
|
X,
|
|
@@ -340,26 +340,26 @@ var p = (e, t) => {
|
|
|
340
340
|
"auto",
|
|
341
341
|
{ span: [
|
|
342
342
|
"full",
|
|
343
|
-
|
|
343
|
+
W,
|
|
344
344
|
X,
|
|
345
345
|
J
|
|
346
346
|
] },
|
|
347
|
-
|
|
347
|
+
W,
|
|
348
348
|
X,
|
|
349
349
|
J
|
|
350
|
-
],
|
|
351
|
-
|
|
350
|
+
], re = () => [
|
|
351
|
+
W,
|
|
352
352
|
"auto",
|
|
353
353
|
X,
|
|
354
354
|
J
|
|
355
|
-
],
|
|
355
|
+
], ie = () => [
|
|
356
356
|
"auto",
|
|
357
357
|
"min",
|
|
358
358
|
"max",
|
|
359
359
|
"fr",
|
|
360
360
|
X,
|
|
361
361
|
J
|
|
362
|
-
],
|
|
362
|
+
], ae = () => [
|
|
363
363
|
"start",
|
|
364
364
|
"end",
|
|
365
365
|
"center",
|
|
@@ -370,15 +370,15 @@ var p = (e, t) => {
|
|
|
370
370
|
"baseline",
|
|
371
371
|
"center-safe",
|
|
372
372
|
"end-safe"
|
|
373
|
-
],
|
|
373
|
+
], T = () => [
|
|
374
374
|
"start",
|
|
375
375
|
"end",
|
|
376
376
|
"center",
|
|
377
377
|
"stretch",
|
|
378
378
|
"center-safe",
|
|
379
379
|
"end-safe"
|
|
380
|
-
],
|
|
381
|
-
|
|
380
|
+
], E = () => ["auto", ...C()], D = () => [
|
|
381
|
+
H,
|
|
382
382
|
"auto",
|
|
383
383
|
"full",
|
|
384
384
|
"dvw",
|
|
@@ -391,9 +391,9 @@ var p = (e, t) => {
|
|
|
391
391
|
"max",
|
|
392
392
|
"fit",
|
|
393
393
|
...C()
|
|
394
|
-
],
|
|
394
|
+
], O = () => [
|
|
395
395
|
s,
|
|
396
|
-
|
|
396
|
+
H,
|
|
397
397
|
"screen",
|
|
398
398
|
"full",
|
|
399
399
|
"dvw",
|
|
@@ -403,8 +403,8 @@ var p = (e, t) => {
|
|
|
403
403
|
"max",
|
|
404
404
|
"fit",
|
|
405
405
|
...C()
|
|
406
|
-
],
|
|
407
|
-
|
|
406
|
+
], oe = () => [
|
|
407
|
+
H,
|
|
408
408
|
"screen",
|
|
409
409
|
"full",
|
|
410
410
|
"lh",
|
|
@@ -415,30 +415,30 @@ var p = (e, t) => {
|
|
|
415
415
|
"max",
|
|
416
416
|
"fit",
|
|
417
417
|
...C()
|
|
418
|
-
],
|
|
418
|
+
], k = () => [
|
|
419
419
|
e,
|
|
420
420
|
X,
|
|
421
421
|
J
|
|
422
|
-
],
|
|
422
|
+
], A = () => [
|
|
423
423
|
...b(),
|
|
424
424
|
Oe,
|
|
425
425
|
Ce,
|
|
426
426
|
{ position: [X, J] }
|
|
427
|
-
],
|
|
427
|
+
], se = () => ["no-repeat", { repeat: [
|
|
428
428
|
"",
|
|
429
429
|
"x",
|
|
430
430
|
"y",
|
|
431
431
|
"space",
|
|
432
432
|
"round"
|
|
433
|
-
] }],
|
|
433
|
+
] }], j = () => [
|
|
434
434
|
"auto",
|
|
435
435
|
"cover",
|
|
436
436
|
"contain",
|
|
437
437
|
ke,
|
|
438
438
|
ye,
|
|
439
439
|
{ size: [X, J] }
|
|
440
|
-
],
|
|
441
|
-
|
|
440
|
+
], M = () => [
|
|
441
|
+
G,
|
|
442
442
|
Ee,
|
|
443
443
|
Y
|
|
444
444
|
], N = () => [
|
|
@@ -450,7 +450,7 @@ var p = (e, t) => {
|
|
|
450
450
|
J
|
|
451
451
|
], P = () => [
|
|
452
452
|
"",
|
|
453
|
-
|
|
453
|
+
U,
|
|
454
454
|
Ee,
|
|
455
455
|
Y
|
|
456
456
|
], F = () => [
|
|
@@ -458,7 +458,7 @@ var p = (e, t) => {
|
|
|
458
458
|
"dashed",
|
|
459
459
|
"dotted",
|
|
460
460
|
"double"
|
|
461
|
-
],
|
|
461
|
+
], ce = () => [
|
|
462
462
|
"normal",
|
|
463
463
|
"multiply",
|
|
464
464
|
"screen",
|
|
@@ -475,33 +475,33 @@ var p = (e, t) => {
|
|
|
475
475
|
"saturation",
|
|
476
476
|
"color",
|
|
477
477
|
"luminosity"
|
|
478
|
-
],
|
|
479
|
-
|
|
480
|
-
|
|
478
|
+
], I = () => [
|
|
479
|
+
U,
|
|
480
|
+
G,
|
|
481
481
|
Oe,
|
|
482
482
|
Ce
|
|
483
|
-
],
|
|
483
|
+
], R = () => [
|
|
484
484
|
"",
|
|
485
485
|
"none",
|
|
486
486
|
m,
|
|
487
487
|
X,
|
|
488
488
|
J
|
|
489
|
-
],
|
|
489
|
+
], z = () => [
|
|
490
490
|
"none",
|
|
491
|
-
|
|
491
|
+
U,
|
|
492
492
|
X,
|
|
493
493
|
J
|
|
494
|
-
],
|
|
494
|
+
], B = () => [
|
|
495
495
|
"none",
|
|
496
|
-
|
|
496
|
+
U,
|
|
497
497
|
X,
|
|
498
498
|
J
|
|
499
|
-
],
|
|
500
|
-
|
|
499
|
+
], le = () => [
|
|
500
|
+
U,
|
|
501
501
|
X,
|
|
502
502
|
J
|
|
503
|
-
],
|
|
504
|
-
|
|
503
|
+
], V = () => [
|
|
504
|
+
H,
|
|
505
505
|
"full",
|
|
506
506
|
...C()
|
|
507
507
|
];
|
|
@@ -515,11 +515,11 @@ var p = (e, t) => {
|
|
|
515
515
|
"bounce"
|
|
516
516
|
],
|
|
517
517
|
aspect: ["video"],
|
|
518
|
-
blur: [
|
|
519
|
-
breakpoint: [
|
|
520
|
-
color: [
|
|
521
|
-
container: [
|
|
522
|
-
"drop-shadow": [
|
|
518
|
+
blur: [K],
|
|
519
|
+
breakpoint: [K],
|
|
520
|
+
color: [q],
|
|
521
|
+
container: [K],
|
|
522
|
+
"drop-shadow": [K],
|
|
523
523
|
ease: [
|
|
524
524
|
"in",
|
|
525
525
|
"out",
|
|
@@ -537,7 +537,7 @@ var p = (e, t) => {
|
|
|
537
537
|
"extrabold",
|
|
538
538
|
"black"
|
|
539
539
|
],
|
|
540
|
-
"inset-shadow": [
|
|
540
|
+
"inset-shadow": [K],
|
|
541
541
|
leading: [
|
|
542
542
|
"none",
|
|
543
543
|
"tight",
|
|
@@ -554,11 +554,11 @@ var p = (e, t) => {
|
|
|
554
554
|
"distant",
|
|
555
555
|
"none"
|
|
556
556
|
],
|
|
557
|
-
radius: [
|
|
558
|
-
shadow: [
|
|
559
|
-
spacing: ["px",
|
|
560
|
-
text: [
|
|
561
|
-
"text-shadow": [
|
|
557
|
+
radius: [K],
|
|
558
|
+
shadow: [K],
|
|
559
|
+
spacing: ["px", U],
|
|
560
|
+
text: [K],
|
|
561
|
+
"text-shadow": [K],
|
|
562
562
|
tracking: [
|
|
563
563
|
"tighter",
|
|
564
564
|
"tight",
|
|
@@ -572,7 +572,7 @@ var p = (e, t) => {
|
|
|
572
572
|
aspect: [{ aspect: [
|
|
573
573
|
"auto",
|
|
574
574
|
"square",
|
|
575
|
-
|
|
575
|
+
H,
|
|
576
576
|
J,
|
|
577
577
|
X,
|
|
578
578
|
g
|
|
@@ -587,7 +587,7 @@ var p = (e, t) => {
|
|
|
587
587
|
] }],
|
|
588
588
|
"container-named": [ve],
|
|
589
589
|
columns: [{ columns: [
|
|
590
|
-
|
|
590
|
+
U,
|
|
591
591
|
"auto",
|
|
592
592
|
J,
|
|
593
593
|
X,
|
|
@@ -687,13 +687,13 @@ var p = (e, t) => {
|
|
|
687
687
|
"collapse"
|
|
688
688
|
],
|
|
689
689
|
z: [{ z: [
|
|
690
|
-
|
|
690
|
+
W,
|
|
691
691
|
"auto",
|
|
692
692
|
X,
|
|
693
693
|
J
|
|
694
694
|
] }],
|
|
695
695
|
basis: [{ basis: [
|
|
696
|
-
|
|
696
|
+
H,
|
|
697
697
|
"full",
|
|
698
698
|
"auto",
|
|
699
699
|
s,
|
|
@@ -711,8 +711,8 @@ var p = (e, t) => {
|
|
|
711
711
|
"wrap-reverse"
|
|
712
712
|
] }],
|
|
713
713
|
flex: [{ flex: [
|
|
714
|
-
W,
|
|
715
714
|
U,
|
|
715
|
+
H,
|
|
716
716
|
"auto",
|
|
717
717
|
"initial",
|
|
718
718
|
"none",
|
|
@@ -720,18 +720,18 @@ var p = (e, t) => {
|
|
|
720
720
|
] }],
|
|
721
721
|
grow: [{ grow: [
|
|
722
722
|
"",
|
|
723
|
-
|
|
723
|
+
U,
|
|
724
724
|
X,
|
|
725
725
|
J
|
|
726
726
|
] }],
|
|
727
727
|
shrink: [{ shrink: [
|
|
728
728
|
"",
|
|
729
|
-
|
|
729
|
+
U,
|
|
730
730
|
X,
|
|
731
731
|
J
|
|
732
732
|
] }],
|
|
733
733
|
order: [{ order: [
|
|
734
|
-
|
|
734
|
+
W,
|
|
735
735
|
"first",
|
|
736
736
|
"last",
|
|
737
737
|
"none",
|
|
@@ -740,12 +740,12 @@ var p = (e, t) => {
|
|
|
740
740
|
] }],
|
|
741
741
|
"grid-cols": [{ "grid-cols": te() }],
|
|
742
742
|
"col-start-end": [{ col: ne() }],
|
|
743
|
-
"col-start": [{ "col-start":
|
|
744
|
-
"col-end": [{ "col-end":
|
|
743
|
+
"col-start": [{ "col-start": re() }],
|
|
744
|
+
"col-end": [{ "col-end": re() }],
|
|
745
745
|
"grid-rows": [{ "grid-rows": te() }],
|
|
746
746
|
"row-start-end": [{ row: ne() }],
|
|
747
|
-
"row-start": [{ "row-start":
|
|
748
|
-
"row-end": [{ "row-end":
|
|
747
|
+
"row-start": [{ "row-start": re() }],
|
|
748
|
+
"row-end": [{ "row-end": re() }],
|
|
749
749
|
"grid-flow": [{ "grid-flow": [
|
|
750
750
|
"row",
|
|
751
751
|
"col",
|
|
@@ -753,24 +753,24 @@ var p = (e, t) => {
|
|
|
753
753
|
"row-dense",
|
|
754
754
|
"col-dense"
|
|
755
755
|
] }],
|
|
756
|
-
"auto-cols": [{ "auto-cols":
|
|
757
|
-
"auto-rows": [{ "auto-rows":
|
|
756
|
+
"auto-cols": [{ "auto-cols": ie() }],
|
|
757
|
+
"auto-rows": [{ "auto-rows": ie() }],
|
|
758
758
|
gap: [{ gap: C() }],
|
|
759
759
|
"gap-x": [{ "gap-x": C() }],
|
|
760
760
|
"gap-y": [{ "gap-y": C() }],
|
|
761
|
-
"justify-content": [{ justify: [...
|
|
762
|
-
"justify-items": [{ "justify-items": [...
|
|
763
|
-
"justify-self": [{ "justify-self": ["auto", ...
|
|
764
|
-
"align-content": [{ content: ["normal", ...
|
|
765
|
-
"align-items": [{ items: [...
|
|
761
|
+
"justify-content": [{ justify: [...ae(), "normal"] }],
|
|
762
|
+
"justify-items": [{ "justify-items": [...T(), "normal"] }],
|
|
763
|
+
"justify-self": [{ "justify-self": ["auto", ...T()] }],
|
|
764
|
+
"align-content": [{ content: ["normal", ...ae()] }],
|
|
765
|
+
"align-items": [{ items: [...T(), { baseline: ["", "last"] }] }],
|
|
766
766
|
"align-self": [{ self: [
|
|
767
767
|
"auto",
|
|
768
|
-
...
|
|
768
|
+
...T(),
|
|
769
769
|
{ baseline: ["", "last"] }
|
|
770
770
|
] }],
|
|
771
|
-
"place-content": [{ "place-content":
|
|
772
|
-
"place-items": [{ "place-items": [...
|
|
773
|
-
"place-self": [{ "place-self": ["auto", ...
|
|
771
|
+
"place-content": [{ "place-content": ae() }],
|
|
772
|
+
"place-items": [{ "place-items": [...T(), "baseline"] }],
|
|
773
|
+
"place-self": [{ "place-self": ["auto", ...T()] }],
|
|
774
774
|
p: [{ p: C() }],
|
|
775
775
|
px: [{ px: C() }],
|
|
776
776
|
py: [{ py: C() }],
|
|
@@ -782,38 +782,38 @@ var p = (e, t) => {
|
|
|
782
782
|
pr: [{ pr: C() }],
|
|
783
783
|
pb: [{ pb: C() }],
|
|
784
784
|
pl: [{ pl: C() }],
|
|
785
|
-
m: [{ m:
|
|
786
|
-
mx: [{ mx:
|
|
787
|
-
my: [{ my:
|
|
788
|
-
ms: [{ ms:
|
|
789
|
-
me: [{ me:
|
|
790
|
-
mbs: [{ mbs:
|
|
791
|
-
mbe: [{ mbe:
|
|
792
|
-
mt: [{ mt:
|
|
793
|
-
mr: [{ mr:
|
|
794
|
-
mb: [{ mb:
|
|
795
|
-
ml: [{ ml:
|
|
785
|
+
m: [{ m: E() }],
|
|
786
|
+
mx: [{ mx: E() }],
|
|
787
|
+
my: [{ my: E() }],
|
|
788
|
+
ms: [{ ms: E() }],
|
|
789
|
+
me: [{ me: E() }],
|
|
790
|
+
mbs: [{ mbs: E() }],
|
|
791
|
+
mbe: [{ mbe: E() }],
|
|
792
|
+
mt: [{ mt: E() }],
|
|
793
|
+
mr: [{ mr: E() }],
|
|
794
|
+
mb: [{ mb: E() }],
|
|
795
|
+
ml: [{ ml: E() }],
|
|
796
796
|
"space-x": [{ "space-x": C() }],
|
|
797
797
|
"space-x-reverse": ["space-x-reverse"],
|
|
798
798
|
"space-y": [{ "space-y": C() }],
|
|
799
799
|
"space-y-reverse": ["space-y-reverse"],
|
|
800
|
-
size: [{ size:
|
|
801
|
-
"inline-size": [{ inline: ["auto", ...
|
|
802
|
-
"min-inline-size": [{ "min-inline": ["auto", ...
|
|
803
|
-
"max-inline-size": [{ "max-inline": ["none", ...
|
|
804
|
-
"block-size": [{ block: ["auto", ...
|
|
805
|
-
"min-block-size": [{ "min-block": ["auto", ...
|
|
806
|
-
"max-block-size": [{ "max-block": ["none", ...
|
|
800
|
+
size: [{ size: D() }],
|
|
801
|
+
"inline-size": [{ inline: ["auto", ...O()] }],
|
|
802
|
+
"min-inline-size": [{ "min-inline": ["auto", ...O()] }],
|
|
803
|
+
"max-inline-size": [{ "max-inline": ["none", ...O()] }],
|
|
804
|
+
"block-size": [{ block: ["auto", ...oe()] }],
|
|
805
|
+
"min-block-size": [{ "min-block": ["auto", ...oe()] }],
|
|
806
|
+
"max-block-size": [{ "max-block": ["none", ...oe()] }],
|
|
807
807
|
w: [{ w: [
|
|
808
808
|
s,
|
|
809
809
|
"screen",
|
|
810
|
-
...
|
|
810
|
+
...D()
|
|
811
811
|
] }],
|
|
812
812
|
"min-w": [{ "min-w": [
|
|
813
813
|
s,
|
|
814
814
|
"screen",
|
|
815
815
|
"none",
|
|
816
|
-
...
|
|
816
|
+
...D()
|
|
817
817
|
] }],
|
|
818
818
|
"max-w": [{ "max-w": [
|
|
819
819
|
s,
|
|
@@ -821,24 +821,24 @@ var p = (e, t) => {
|
|
|
821
821
|
"none",
|
|
822
822
|
"prose",
|
|
823
823
|
{ screen: [o] },
|
|
824
|
-
...
|
|
824
|
+
...D()
|
|
825
825
|
] }],
|
|
826
826
|
h: [{ h: [
|
|
827
827
|
"screen",
|
|
828
828
|
"lh",
|
|
829
|
-
...
|
|
829
|
+
...D()
|
|
830
830
|
] }],
|
|
831
831
|
"min-h": [{ "min-h": [
|
|
832
832
|
"screen",
|
|
833
833
|
"lh",
|
|
834
834
|
"none",
|
|
835
|
-
...
|
|
835
|
+
...D()
|
|
836
836
|
] }],
|
|
837
837
|
"max-h": [{ "max-h": [
|
|
838
838
|
"screen",
|
|
839
839
|
"lh",
|
|
840
840
|
"none",
|
|
841
|
-
...
|
|
841
|
+
...D()
|
|
842
842
|
] }],
|
|
843
843
|
"font-size": [{ text: [
|
|
844
844
|
"base",
|
|
@@ -863,7 +863,7 @@ var p = (e, t) => {
|
|
|
863
863
|
"expanded",
|
|
864
864
|
"extra-expanded",
|
|
865
865
|
"ultra-expanded",
|
|
866
|
-
|
|
866
|
+
G,
|
|
867
867
|
J
|
|
868
868
|
] }],
|
|
869
869
|
"font-family": [{ font: [
|
|
@@ -884,7 +884,7 @@ var p = (e, t) => {
|
|
|
884
884
|
J
|
|
885
885
|
] }],
|
|
886
886
|
"line-clamp": [{ "line-clamp": [
|
|
887
|
-
|
|
887
|
+
U,
|
|
888
888
|
"none",
|
|
889
889
|
X,
|
|
890
890
|
be
|
|
@@ -915,8 +915,8 @@ var p = (e, t) => {
|
|
|
915
915
|
"start",
|
|
916
916
|
"end"
|
|
917
917
|
] }],
|
|
918
|
-
"placeholder-color": [{ placeholder:
|
|
919
|
-
"text-color": [{ text:
|
|
918
|
+
"placeholder-color": [{ placeholder: k() }],
|
|
919
|
+
"text-color": [{ text: k() }],
|
|
920
920
|
"text-decoration": [
|
|
921
921
|
"underline",
|
|
922
922
|
"overline",
|
|
@@ -925,15 +925,15 @@ var p = (e, t) => {
|
|
|
925
925
|
],
|
|
926
926
|
"text-decoration-style": [{ decoration: [...F(), "wavy"] }],
|
|
927
927
|
"text-decoration-thickness": [{ decoration: [
|
|
928
|
-
|
|
928
|
+
U,
|
|
929
929
|
"from-font",
|
|
930
930
|
"auto",
|
|
931
931
|
X,
|
|
932
932
|
Y
|
|
933
933
|
] }],
|
|
934
|
-
"text-decoration-color": [{ decoration:
|
|
934
|
+
"text-decoration-color": [{ decoration: k() }],
|
|
935
935
|
"underline-offset": [{ "underline-offset": [
|
|
936
|
-
|
|
936
|
+
U,
|
|
937
937
|
"auto",
|
|
938
938
|
X,
|
|
939
939
|
J
|
|
@@ -957,7 +957,7 @@ var p = (e, t) => {
|
|
|
957
957
|
] }],
|
|
958
958
|
indent: [{ indent: C() }],
|
|
959
959
|
"tab-size": [{ tab: [
|
|
960
|
-
|
|
960
|
+
W,
|
|
961
961
|
X,
|
|
962
962
|
J
|
|
963
963
|
] }],
|
|
@@ -1018,9 +1018,9 @@ var p = (e, t) => {
|
|
|
1018
1018
|
"padding",
|
|
1019
1019
|
"content"
|
|
1020
1020
|
] }],
|
|
1021
|
-
"bg-position": [{ bg:
|
|
1022
|
-
"bg-repeat": [{ bg:
|
|
1023
|
-
"bg-size": [{ bg:
|
|
1021
|
+
"bg-position": [{ bg: A() }],
|
|
1022
|
+
"bg-repeat": [{ bg: se() }],
|
|
1023
|
+
"bg-size": [{ bg: j() }],
|
|
1024
1024
|
"bg-image": [{ bg: [
|
|
1025
1025
|
"none",
|
|
1026
1026
|
{
|
|
@@ -1035,7 +1035,7 @@ var p = (e, t) => {
|
|
|
1035
1035
|
"l",
|
|
1036
1036
|
"tl"
|
|
1037
1037
|
] },
|
|
1038
|
-
|
|
1038
|
+
W,
|
|
1039
1039
|
X,
|
|
1040
1040
|
J
|
|
1041
1041
|
],
|
|
@@ -1046,7 +1046,7 @@ var p = (e, t) => {
|
|
|
1046
1046
|
],
|
|
1047
1047
|
conic: [
|
|
1048
1048
|
"",
|
|
1049
|
-
|
|
1049
|
+
W,
|
|
1050
1050
|
X,
|
|
1051
1051
|
J
|
|
1052
1052
|
]
|
|
@@ -1054,13 +1054,13 @@ var p = (e, t) => {
|
|
|
1054
1054
|
Ae,
|
|
1055
1055
|
we
|
|
1056
1056
|
] }],
|
|
1057
|
-
"bg-color": [{ bg:
|
|
1058
|
-
"gradient-from-pos": [{ from:
|
|
1059
|
-
"gradient-via-pos": [{ via:
|
|
1060
|
-
"gradient-to-pos": [{ to:
|
|
1061
|
-
"gradient-from": [{ from:
|
|
1062
|
-
"gradient-via": [{ via:
|
|
1063
|
-
"gradient-to": [{ to:
|
|
1057
|
+
"bg-color": [{ bg: k() }],
|
|
1058
|
+
"gradient-from-pos": [{ from: M() }],
|
|
1059
|
+
"gradient-via-pos": [{ via: M() }],
|
|
1060
|
+
"gradient-to-pos": [{ to: M() }],
|
|
1061
|
+
"gradient-from": [{ from: k() }],
|
|
1062
|
+
"gradient-via": [{ via: k() }],
|
|
1063
|
+
"gradient-to": [{ to: k() }],
|
|
1064
1064
|
rounded: [{ rounded: N() }],
|
|
1065
1065
|
"rounded-s": [{ "rounded-s": N() }],
|
|
1066
1066
|
"rounded-e": [{ "rounded-e": N() }],
|
|
@@ -1101,35 +1101,35 @@ var p = (e, t) => {
|
|
|
1101
1101
|
"hidden",
|
|
1102
1102
|
"none"
|
|
1103
1103
|
] }],
|
|
1104
|
-
"border-color": [{ border:
|
|
1105
|
-
"border-color-x": [{ "border-x":
|
|
1106
|
-
"border-color-y": [{ "border-y":
|
|
1107
|
-
"border-color-s": [{ "border-s":
|
|
1108
|
-
"border-color-e": [{ "border-e":
|
|
1109
|
-
"border-color-bs": [{ "border-bs":
|
|
1110
|
-
"border-color-be": [{ "border-be":
|
|
1111
|
-
"border-color-t": [{ "border-t":
|
|
1112
|
-
"border-color-r": [{ "border-r":
|
|
1113
|
-
"border-color-b": [{ "border-b":
|
|
1114
|
-
"border-color-l": [{ "border-l":
|
|
1115
|
-
"divide-color": [{ divide:
|
|
1104
|
+
"border-color": [{ border: k() }],
|
|
1105
|
+
"border-color-x": [{ "border-x": k() }],
|
|
1106
|
+
"border-color-y": [{ "border-y": k() }],
|
|
1107
|
+
"border-color-s": [{ "border-s": k() }],
|
|
1108
|
+
"border-color-e": [{ "border-e": k() }],
|
|
1109
|
+
"border-color-bs": [{ "border-bs": k() }],
|
|
1110
|
+
"border-color-be": [{ "border-be": k() }],
|
|
1111
|
+
"border-color-t": [{ "border-t": k() }],
|
|
1112
|
+
"border-color-r": [{ "border-r": k() }],
|
|
1113
|
+
"border-color-b": [{ "border-b": k() }],
|
|
1114
|
+
"border-color-l": [{ "border-l": k() }],
|
|
1115
|
+
"divide-color": [{ divide: k() }],
|
|
1116
1116
|
"outline-style": [{ outline: [
|
|
1117
1117
|
...F(),
|
|
1118
1118
|
"none",
|
|
1119
1119
|
"hidden"
|
|
1120
1120
|
] }],
|
|
1121
1121
|
"outline-offset": [{ "outline-offset": [
|
|
1122
|
-
|
|
1122
|
+
U,
|
|
1123
1123
|
X,
|
|
1124
1124
|
J
|
|
1125
1125
|
] }],
|
|
1126
1126
|
"outline-w": [{ outline: [
|
|
1127
1127
|
"",
|
|
1128
|
-
|
|
1128
|
+
U,
|
|
1129
1129
|
Ee,
|
|
1130
1130
|
Y
|
|
1131
1131
|
] }],
|
|
1132
|
-
"outline-color": [{ outline:
|
|
1132
|
+
"outline-color": [{ outline: k() }],
|
|
1133
1133
|
shadow: [{ shadow: [
|
|
1134
1134
|
"",
|
|
1135
1135
|
"inner",
|
|
@@ -1138,39 +1138,39 @@ var p = (e, t) => {
|
|
|
1138
1138
|
je,
|
|
1139
1139
|
Te
|
|
1140
1140
|
] }],
|
|
1141
|
-
"shadow-color": [{ shadow:
|
|
1141
|
+
"shadow-color": [{ shadow: k() }],
|
|
1142
1142
|
"inset-shadow": [{ "inset-shadow": [
|
|
1143
1143
|
"none",
|
|
1144
1144
|
d,
|
|
1145
1145
|
je,
|
|
1146
1146
|
Te
|
|
1147
1147
|
] }],
|
|
1148
|
-
"inset-shadow-color": [{ "inset-shadow":
|
|
1148
|
+
"inset-shadow-color": [{ "inset-shadow": k() }],
|
|
1149
1149
|
"ring-w": [{ ring: P() }],
|
|
1150
1150
|
"ring-w-inset": ["ring-inset"],
|
|
1151
|
-
"ring-color": [{ ring:
|
|
1152
|
-
"ring-offset-w": [{ "ring-offset": [
|
|
1153
|
-
"ring-offset-color": [{ "ring-offset":
|
|
1151
|
+
"ring-color": [{ ring: k() }],
|
|
1152
|
+
"ring-offset-w": [{ "ring-offset": [U, Y] }],
|
|
1153
|
+
"ring-offset-color": [{ "ring-offset": k() }],
|
|
1154
1154
|
"inset-ring-w": [{ "inset-ring": P() }],
|
|
1155
|
-
"inset-ring-color": [{ "inset-ring":
|
|
1155
|
+
"inset-ring-color": [{ "inset-ring": k() }],
|
|
1156
1156
|
"text-shadow": [{ "text-shadow": [
|
|
1157
1157
|
"none",
|
|
1158
1158
|
f,
|
|
1159
1159
|
je,
|
|
1160
1160
|
Te
|
|
1161
1161
|
] }],
|
|
1162
|
-
"text-shadow-color": [{ "text-shadow":
|
|
1162
|
+
"text-shadow-color": [{ "text-shadow": k() }],
|
|
1163
1163
|
opacity: [{ opacity: [
|
|
1164
|
-
|
|
1164
|
+
U,
|
|
1165
1165
|
X,
|
|
1166
1166
|
J
|
|
1167
1167
|
] }],
|
|
1168
1168
|
"mix-blend": [{ "mix-blend": [
|
|
1169
|
-
...
|
|
1169
|
+
...ce(),
|
|
1170
1170
|
"plus-darker",
|
|
1171
1171
|
"plus-lighter"
|
|
1172
1172
|
] }],
|
|
1173
|
-
"bg-blend": [{ "bg-blend":
|
|
1173
|
+
"bg-blend": [{ "bg-blend": ce() }],
|
|
1174
1174
|
"mask-clip": [{ "mask-clip": [
|
|
1175
1175
|
"border",
|
|
1176
1176
|
"padding",
|
|
@@ -1185,51 +1185,51 @@ var p = (e, t) => {
|
|
|
1185
1185
|
"intersect",
|
|
1186
1186
|
"exclude"
|
|
1187
1187
|
] }],
|
|
1188
|
-
"mask-image-linear-pos": [{ "mask-linear": [
|
|
1189
|
-
"mask-image-linear-from-pos": [{ "mask-linear-from":
|
|
1190
|
-
"mask-image-linear-to-pos": [{ "mask-linear-to":
|
|
1191
|
-
"mask-image-linear-from-color": [{ "mask-linear-from":
|
|
1192
|
-
"mask-image-linear-to-color": [{ "mask-linear-to":
|
|
1193
|
-
"mask-image-t-from-pos": [{ "mask-t-from":
|
|
1194
|
-
"mask-image-t-to-pos": [{ "mask-t-to":
|
|
1195
|
-
"mask-image-t-from-color": [{ "mask-t-from":
|
|
1196
|
-
"mask-image-t-to-color": [{ "mask-t-to":
|
|
1197
|
-
"mask-image-r-from-pos": [{ "mask-r-from":
|
|
1198
|
-
"mask-image-r-to-pos": [{ "mask-r-to":
|
|
1199
|
-
"mask-image-r-from-color": [{ "mask-r-from":
|
|
1200
|
-
"mask-image-r-to-color": [{ "mask-r-to":
|
|
1201
|
-
"mask-image-b-from-pos": [{ "mask-b-from":
|
|
1202
|
-
"mask-image-b-to-pos": [{ "mask-b-to":
|
|
1203
|
-
"mask-image-b-from-color": [{ "mask-b-from":
|
|
1204
|
-
"mask-image-b-to-color": [{ "mask-b-to":
|
|
1205
|
-
"mask-image-l-from-pos": [{ "mask-l-from":
|
|
1206
|
-
"mask-image-l-to-pos": [{ "mask-l-to":
|
|
1207
|
-
"mask-image-l-from-color": [{ "mask-l-from":
|
|
1208
|
-
"mask-image-l-to-color": [{ "mask-l-to":
|
|
1209
|
-
"mask-image-x-from-pos": [{ "mask-x-from":
|
|
1210
|
-
"mask-image-x-to-pos": [{ "mask-x-to":
|
|
1211
|
-
"mask-image-x-from-color": [{ "mask-x-from":
|
|
1212
|
-
"mask-image-x-to-color": [{ "mask-x-to":
|
|
1213
|
-
"mask-image-y-from-pos": [{ "mask-y-from":
|
|
1214
|
-
"mask-image-y-to-pos": [{ "mask-y-to":
|
|
1215
|
-
"mask-image-y-from-color": [{ "mask-y-from":
|
|
1216
|
-
"mask-image-y-to-color": [{ "mask-y-to":
|
|
1188
|
+
"mask-image-linear-pos": [{ "mask-linear": [U] }],
|
|
1189
|
+
"mask-image-linear-from-pos": [{ "mask-linear-from": I() }],
|
|
1190
|
+
"mask-image-linear-to-pos": [{ "mask-linear-to": I() }],
|
|
1191
|
+
"mask-image-linear-from-color": [{ "mask-linear-from": k() }],
|
|
1192
|
+
"mask-image-linear-to-color": [{ "mask-linear-to": k() }],
|
|
1193
|
+
"mask-image-t-from-pos": [{ "mask-t-from": I() }],
|
|
1194
|
+
"mask-image-t-to-pos": [{ "mask-t-to": I() }],
|
|
1195
|
+
"mask-image-t-from-color": [{ "mask-t-from": k() }],
|
|
1196
|
+
"mask-image-t-to-color": [{ "mask-t-to": k() }],
|
|
1197
|
+
"mask-image-r-from-pos": [{ "mask-r-from": I() }],
|
|
1198
|
+
"mask-image-r-to-pos": [{ "mask-r-to": I() }],
|
|
1199
|
+
"mask-image-r-from-color": [{ "mask-r-from": k() }],
|
|
1200
|
+
"mask-image-r-to-color": [{ "mask-r-to": k() }],
|
|
1201
|
+
"mask-image-b-from-pos": [{ "mask-b-from": I() }],
|
|
1202
|
+
"mask-image-b-to-pos": [{ "mask-b-to": I() }],
|
|
1203
|
+
"mask-image-b-from-color": [{ "mask-b-from": k() }],
|
|
1204
|
+
"mask-image-b-to-color": [{ "mask-b-to": k() }],
|
|
1205
|
+
"mask-image-l-from-pos": [{ "mask-l-from": I() }],
|
|
1206
|
+
"mask-image-l-to-pos": [{ "mask-l-to": I() }],
|
|
1207
|
+
"mask-image-l-from-color": [{ "mask-l-from": k() }],
|
|
1208
|
+
"mask-image-l-to-color": [{ "mask-l-to": k() }],
|
|
1209
|
+
"mask-image-x-from-pos": [{ "mask-x-from": I() }],
|
|
1210
|
+
"mask-image-x-to-pos": [{ "mask-x-to": I() }],
|
|
1211
|
+
"mask-image-x-from-color": [{ "mask-x-from": k() }],
|
|
1212
|
+
"mask-image-x-to-color": [{ "mask-x-to": k() }],
|
|
1213
|
+
"mask-image-y-from-pos": [{ "mask-y-from": I() }],
|
|
1214
|
+
"mask-image-y-to-pos": [{ "mask-y-to": I() }],
|
|
1215
|
+
"mask-image-y-from-color": [{ "mask-y-from": k() }],
|
|
1216
|
+
"mask-image-y-to-color": [{ "mask-y-to": k() }],
|
|
1217
1217
|
"mask-image-radial": [{ "mask-radial": [X, J] }],
|
|
1218
|
-
"mask-image-radial-from-pos": [{ "mask-radial-from":
|
|
1219
|
-
"mask-image-radial-to-pos": [{ "mask-radial-to":
|
|
1220
|
-
"mask-image-radial-from-color": [{ "mask-radial-from":
|
|
1221
|
-
"mask-image-radial-to-color": [{ "mask-radial-to":
|
|
1218
|
+
"mask-image-radial-from-pos": [{ "mask-radial-from": I() }],
|
|
1219
|
+
"mask-image-radial-to-pos": [{ "mask-radial-to": I() }],
|
|
1220
|
+
"mask-image-radial-from-color": [{ "mask-radial-from": k() }],
|
|
1221
|
+
"mask-image-radial-to-color": [{ "mask-radial-to": k() }],
|
|
1222
1222
|
"mask-image-radial-shape": [{ "mask-radial": ["circle", "ellipse"] }],
|
|
1223
1223
|
"mask-image-radial-size": [{ "mask-radial": [{
|
|
1224
1224
|
closest: ["side", "corner"],
|
|
1225
1225
|
farthest: ["side", "corner"]
|
|
1226
1226
|
}] }],
|
|
1227
1227
|
"mask-image-radial-pos": [{ "mask-radial-at": b() }],
|
|
1228
|
-
"mask-image-conic-pos": [{ "mask-conic": [
|
|
1229
|
-
"mask-image-conic-from-pos": [{ "mask-conic-from":
|
|
1230
|
-
"mask-image-conic-to-pos": [{ "mask-conic-to":
|
|
1231
|
-
"mask-image-conic-from-color": [{ "mask-conic-from":
|
|
1232
|
-
"mask-image-conic-to-color": [{ "mask-conic-to":
|
|
1228
|
+
"mask-image-conic-pos": [{ "mask-conic": [U] }],
|
|
1229
|
+
"mask-image-conic-from-pos": [{ "mask-conic-from": I() }],
|
|
1230
|
+
"mask-image-conic-to-pos": [{ "mask-conic-to": I() }],
|
|
1231
|
+
"mask-image-conic-from-color": [{ "mask-conic-from": k() }],
|
|
1232
|
+
"mask-image-conic-to-color": [{ "mask-conic-to": k() }],
|
|
1233
1233
|
"mask-mode": [{ mask: [
|
|
1234
1234
|
"alpha",
|
|
1235
1235
|
"luminance",
|
|
@@ -1243,9 +1243,9 @@ var p = (e, t) => {
|
|
|
1243
1243
|
"stroke",
|
|
1244
1244
|
"view"
|
|
1245
1245
|
] }],
|
|
1246
|
-
"mask-position": [{ mask:
|
|
1247
|
-
"mask-repeat": [{ mask:
|
|
1248
|
-
"mask-size": [{ mask:
|
|
1246
|
+
"mask-position": [{ mask: A() }],
|
|
1247
|
+
"mask-repeat": [{ mask: se() }],
|
|
1248
|
+
"mask-size": [{ mask: j() }],
|
|
1249
1249
|
"mask-type": [{ "mask-type": ["alpha", "luminance"] }],
|
|
1250
1250
|
"mask-image": [{ mask: [
|
|
1251
1251
|
"none",
|
|
@@ -1258,14 +1258,14 @@ var p = (e, t) => {
|
|
|
1258
1258
|
X,
|
|
1259
1259
|
J
|
|
1260
1260
|
] }],
|
|
1261
|
-
blur: [{ blur:
|
|
1261
|
+
blur: [{ blur: R() }],
|
|
1262
1262
|
brightness: [{ brightness: [
|
|
1263
|
-
|
|
1263
|
+
U,
|
|
1264
1264
|
X,
|
|
1265
1265
|
J
|
|
1266
1266
|
] }],
|
|
1267
1267
|
contrast: [{ contrast: [
|
|
1268
|
-
|
|
1268
|
+
U,
|
|
1269
1269
|
X,
|
|
1270
1270
|
J
|
|
1271
1271
|
] }],
|
|
@@ -1276,32 +1276,32 @@ var p = (e, t) => {
|
|
|
1276
1276
|
je,
|
|
1277
1277
|
Te
|
|
1278
1278
|
] }],
|
|
1279
|
-
"drop-shadow-color": [{ "drop-shadow":
|
|
1279
|
+
"drop-shadow-color": [{ "drop-shadow": k() }],
|
|
1280
1280
|
grayscale: [{ grayscale: [
|
|
1281
1281
|
"",
|
|
1282
|
-
|
|
1282
|
+
U,
|
|
1283
1283
|
X,
|
|
1284
1284
|
J
|
|
1285
1285
|
] }],
|
|
1286
1286
|
"hue-rotate": [{ "hue-rotate": [
|
|
1287
|
-
|
|
1287
|
+
U,
|
|
1288
1288
|
X,
|
|
1289
1289
|
J
|
|
1290
1290
|
] }],
|
|
1291
1291
|
invert: [{ invert: [
|
|
1292
1292
|
"",
|
|
1293
|
-
|
|
1293
|
+
U,
|
|
1294
1294
|
X,
|
|
1295
1295
|
J
|
|
1296
1296
|
] }],
|
|
1297
1297
|
saturate: [{ saturate: [
|
|
1298
|
-
|
|
1298
|
+
U,
|
|
1299
1299
|
X,
|
|
1300
1300
|
J
|
|
1301
1301
|
] }],
|
|
1302
1302
|
sepia: [{ sepia: [
|
|
1303
1303
|
"",
|
|
1304
|
-
|
|
1304
|
+
U,
|
|
1305
1305
|
X,
|
|
1306
1306
|
J
|
|
1307
1307
|
] }],
|
|
@@ -1311,47 +1311,47 @@ var p = (e, t) => {
|
|
|
1311
1311
|
X,
|
|
1312
1312
|
J
|
|
1313
1313
|
] }],
|
|
1314
|
-
"backdrop-blur": [{ "backdrop-blur":
|
|
1314
|
+
"backdrop-blur": [{ "backdrop-blur": R() }],
|
|
1315
1315
|
"backdrop-brightness": [{ "backdrop-brightness": [
|
|
1316
|
-
|
|
1316
|
+
U,
|
|
1317
1317
|
X,
|
|
1318
1318
|
J
|
|
1319
1319
|
] }],
|
|
1320
1320
|
"backdrop-contrast": [{ "backdrop-contrast": [
|
|
1321
|
-
|
|
1321
|
+
U,
|
|
1322
1322
|
X,
|
|
1323
1323
|
J
|
|
1324
1324
|
] }],
|
|
1325
1325
|
"backdrop-grayscale": [{ "backdrop-grayscale": [
|
|
1326
1326
|
"",
|
|
1327
|
-
|
|
1327
|
+
U,
|
|
1328
1328
|
X,
|
|
1329
1329
|
J
|
|
1330
1330
|
] }],
|
|
1331
1331
|
"backdrop-hue-rotate": [{ "backdrop-hue-rotate": [
|
|
1332
|
-
|
|
1332
|
+
U,
|
|
1333
1333
|
X,
|
|
1334
1334
|
J
|
|
1335
1335
|
] }],
|
|
1336
1336
|
"backdrop-invert": [{ "backdrop-invert": [
|
|
1337
1337
|
"",
|
|
1338
|
-
|
|
1338
|
+
U,
|
|
1339
1339
|
X,
|
|
1340
1340
|
J
|
|
1341
1341
|
] }],
|
|
1342
1342
|
"backdrop-opacity": [{ "backdrop-opacity": [
|
|
1343
|
-
|
|
1343
|
+
U,
|
|
1344
1344
|
X,
|
|
1345
1345
|
J
|
|
1346
1346
|
] }],
|
|
1347
1347
|
"backdrop-saturate": [{ "backdrop-saturate": [
|
|
1348
|
-
|
|
1348
|
+
U,
|
|
1349
1349
|
X,
|
|
1350
1350
|
J
|
|
1351
1351
|
] }],
|
|
1352
1352
|
"backdrop-sepia": [{ "backdrop-sepia": [
|
|
1353
1353
|
"",
|
|
1354
|
-
|
|
1354
|
+
U,
|
|
1355
1355
|
X,
|
|
1356
1356
|
J
|
|
1357
1357
|
] }],
|
|
@@ -1374,7 +1374,7 @@ var p = (e, t) => {
|
|
|
1374
1374
|
] }],
|
|
1375
1375
|
"transition-behavior": [{ transition: ["normal", "discrete"] }],
|
|
1376
1376
|
duration: [{ duration: [
|
|
1377
|
-
|
|
1377
|
+
U,
|
|
1378
1378
|
"initial",
|
|
1379
1379
|
X,
|
|
1380
1380
|
J
|
|
@@ -1387,7 +1387,7 @@ var p = (e, t) => {
|
|
|
1387
1387
|
J
|
|
1388
1388
|
] }],
|
|
1389
1389
|
delay: [{ delay: [
|
|
1390
|
-
|
|
1390
|
+
U,
|
|
1391
1391
|
X,
|
|
1392
1392
|
J
|
|
1393
1393
|
] }],
|
|
@@ -1404,18 +1404,18 @@ var p = (e, t) => {
|
|
|
1404
1404
|
J
|
|
1405
1405
|
] }],
|
|
1406
1406
|
"perspective-origin": [{ "perspective-origin": x() }],
|
|
1407
|
-
rotate: [{ rotate:
|
|
1408
|
-
"rotate-x": [{ "rotate-x":
|
|
1409
|
-
"rotate-y": [{ "rotate-y":
|
|
1410
|
-
"rotate-z": [{ "rotate-z":
|
|
1411
|
-
scale: [{ scale:
|
|
1412
|
-
"scale-x": [{ "scale-x":
|
|
1413
|
-
"scale-y": [{ "scale-y":
|
|
1414
|
-
"scale-z": [{ "scale-z":
|
|
1407
|
+
rotate: [{ rotate: z() }],
|
|
1408
|
+
"rotate-x": [{ "rotate-x": z() }],
|
|
1409
|
+
"rotate-y": [{ "rotate-y": z() }],
|
|
1410
|
+
"rotate-z": [{ "rotate-z": z() }],
|
|
1411
|
+
scale: [{ scale: B() }],
|
|
1412
|
+
"scale-x": [{ "scale-x": B() }],
|
|
1413
|
+
"scale-y": [{ "scale-y": B() }],
|
|
1414
|
+
"scale-z": [{ "scale-z": B() }],
|
|
1415
1415
|
"scale-3d": ["scale-3d"],
|
|
1416
|
-
skew: [{ skew:
|
|
1417
|
-
"skew-x": [{ "skew-x":
|
|
1418
|
-
"skew-y": [{ "skew-y":
|
|
1416
|
+
skew: [{ skew: le() }],
|
|
1417
|
+
"skew-x": [{ "skew-x": le() }],
|
|
1418
|
+
"skew-y": [{ "skew-y": le() }],
|
|
1419
1419
|
transform: [{ transform: [
|
|
1420
1420
|
X,
|
|
1421
1421
|
J,
|
|
@@ -1426,19 +1426,19 @@ var p = (e, t) => {
|
|
|
1426
1426
|
] }],
|
|
1427
1427
|
"transform-origin": [{ origin: x() }],
|
|
1428
1428
|
"transform-style": [{ transform: ["3d", "flat"] }],
|
|
1429
|
-
translate: [{ translate:
|
|
1430
|
-
"translate-x": [{ "translate-x":
|
|
1431
|
-
"translate-y": [{ "translate-y":
|
|
1432
|
-
"translate-z": [{ "translate-z":
|
|
1429
|
+
translate: [{ translate: V() }],
|
|
1430
|
+
"translate-x": [{ "translate-x": V() }],
|
|
1431
|
+
"translate-y": [{ "translate-y": V() }],
|
|
1432
|
+
"translate-z": [{ "translate-z": V() }],
|
|
1433
1433
|
"translate-none": ["translate-none"],
|
|
1434
1434
|
zoom: [{ zoom: [
|
|
1435
|
-
|
|
1435
|
+
W,
|
|
1436
1436
|
X,
|
|
1437
1437
|
J
|
|
1438
1438
|
] }],
|
|
1439
|
-
accent: [{ accent:
|
|
1439
|
+
accent: [{ accent: k() }],
|
|
1440
1440
|
appearance: [{ appearance: ["none", "auto"] }],
|
|
1441
|
-
"caret-color": [{ caret:
|
|
1441
|
+
"caret-color": [{ caret: k() }],
|
|
1442
1442
|
"color-scheme": [{ scheme: [
|
|
1443
1443
|
"normal",
|
|
1444
1444
|
"dark",
|
|
@@ -1496,8 +1496,8 @@ var p = (e, t) => {
|
|
|
1496
1496
|
"x"
|
|
1497
1497
|
] }],
|
|
1498
1498
|
"scroll-behavior": [{ scroll: ["auto", "smooth"] }],
|
|
1499
|
-
"scrollbar-thumb-color": [{ "scrollbar-thumb":
|
|
1500
|
-
"scrollbar-track-color": [{ "scrollbar-track":
|
|
1499
|
+
"scrollbar-thumb-color": [{ "scrollbar-thumb": k() }],
|
|
1500
|
+
"scrollbar-track-color": [{ "scrollbar-track": k() }],
|
|
1501
1501
|
"scrollbar-gutter": [{ "scrollbar-gutter": [
|
|
1502
1502
|
"auto",
|
|
1503
1503
|
"stable",
|
|
@@ -1574,14 +1574,14 @@ var p = (e, t) => {
|
|
|
1574
1574
|
X,
|
|
1575
1575
|
J
|
|
1576
1576
|
] }],
|
|
1577
|
-
fill: [{ fill: ["none", ...
|
|
1577
|
+
fill: [{ fill: ["none", ...k()] }],
|
|
1578
1578
|
"stroke-w": [{ stroke: [
|
|
1579
|
-
|
|
1579
|
+
U,
|
|
1580
1580
|
Ee,
|
|
1581
1581
|
Y,
|
|
1582
1582
|
be
|
|
1583
1583
|
] }],
|
|
1584
|
-
stroke: [{ stroke: ["none", ...
|
|
1584
|
+
stroke: [{ stroke: ["none", ...k()] }],
|
|
1585
1585
|
"forced-color-adjust": [{ "forced-color-adjust": ["auto", "none"] }]
|
|
1586
1586
|
},
|
|
1587
1587
|
conflictingClassGroups: {
|
|
@@ -1976,8 +1976,30 @@ function We({ className: e }) {
|
|
|
1976
1976
|
});
|
|
1977
1977
|
}
|
|
1978
1978
|
//#endregion
|
|
1979
|
+
//#region src/lib/icons/SortIcon.tsx
|
|
1980
|
+
function Ge({ direction: e, className: t }) {
|
|
1981
|
+
return /* @__PURE__ */ u("svg", {
|
|
1982
|
+
className: $("size-3.5 shrink-0 select-none ml-4", t),
|
|
1983
|
+
viewBox: "0 0 14 14",
|
|
1984
|
+
fill: "none",
|
|
1985
|
+
stroke: "currentColor",
|
|
1986
|
+
strokeLinecap: "round",
|
|
1987
|
+
strokeLinejoin: "round",
|
|
1988
|
+
"aria-hidden": !0,
|
|
1989
|
+
children: [/* @__PURE__ */ l("path", {
|
|
1990
|
+
d: "M4 5.5L7 2.5L10 5.5",
|
|
1991
|
+
strokeWidth: e === "asc" ? "2" : "1.5",
|
|
1992
|
+
className: $("transition-colors", e === "asc" ? "stroke-zinc-900" : e === "desc" ? "stroke-zinc-300/50" : "stroke-zinc-400/80")
|
|
1993
|
+
}), /* @__PURE__ */ l("path", {
|
|
1994
|
+
d: "M4 8.5L7 11.5L10 8.5",
|
|
1995
|
+
strokeWidth: e === "desc" ? "2" : "1.5",
|
|
1996
|
+
className: $("transition-colors", e === "desc" ? "stroke-zinc-900" : e === "asc" ? "stroke-zinc-300/50" : "stroke-zinc-400/80")
|
|
1997
|
+
})]
|
|
1998
|
+
});
|
|
1999
|
+
}
|
|
2000
|
+
//#endregion
|
|
1979
2001
|
//#region src/lib/LimitSelect.tsx
|
|
1980
|
-
function
|
|
2002
|
+
function Ke({ className: e }) {
|
|
1981
2003
|
return /* @__PURE__ */ l("svg", {
|
|
1982
2004
|
className: e,
|
|
1983
2005
|
width: "16",
|
|
@@ -1992,7 +2014,7 @@ function Ge({ className: e }) {
|
|
|
1992
2014
|
children: /* @__PURE__ */ l("path", { d: "M6 9l6 6 6-6" })
|
|
1993
2015
|
});
|
|
1994
2016
|
}
|
|
1995
|
-
function
|
|
2017
|
+
function qe({ className: e }) {
|
|
1996
2018
|
return /* @__PURE__ */ l("svg", {
|
|
1997
2019
|
className: e,
|
|
1998
2020
|
width: "16",
|
|
@@ -2007,7 +2029,7 @@ function Ke({ className: e }) {
|
|
|
2007
2029
|
children: /* @__PURE__ */ l("path", { d: "M20 6L9 17l-5-5" })
|
|
2008
2030
|
});
|
|
2009
2031
|
}
|
|
2010
|
-
function
|
|
2032
|
+
function Je({ value: n, options: r, onChange: o, className: s }) {
|
|
2011
2033
|
let [c, d] = a(!1), f = i(null), p = t();
|
|
2012
2034
|
return e(() => {
|
|
2013
2035
|
function e(e) {
|
|
@@ -2030,7 +2052,7 @@ function qe({ value: n, options: r, onChange: o, className: s }) {
|
|
|
2030
2052
|
"aria-label": "Rows per page",
|
|
2031
2053
|
className: $("inline-flex h-9 min-w-[4.5rem] items-center justify-between gap-2", "rounded-md bg-zinc-100 px-3 text-sm text-zinc-900", "outline-none transition-colors", "hover:bg-zinc-200/80", "focus-visible:ring-2 focus-visible:ring-zinc-300"),
|
|
2032
2054
|
onClick: () => d((e) => !e),
|
|
2033
|
-
children: [/* @__PURE__ */ l("span", { children: n }), /* @__PURE__ */ l(
|
|
2055
|
+
children: [/* @__PURE__ */ l("span", { children: n }), /* @__PURE__ */ l(Ke, { className: $("text-zinc-500 transition-transform duration-200", c && "rotate-180") })]
|
|
2034
2056
|
}), c ? /* @__PURE__ */ l("ul", {
|
|
2035
2057
|
id: p,
|
|
2036
2058
|
role: "listbox",
|
|
@@ -2043,11 +2065,11 @@ function qe({ value: n, options: r, onChange: o, className: s }) {
|
|
|
2043
2065
|
"aria-selected": t,
|
|
2044
2066
|
children: /* @__PURE__ */ u("button", {
|
|
2045
2067
|
type: "button",
|
|
2046
|
-
className: $("flex w-
|
|
2068
|
+
className: $("flex w-[8.5em] cursor-pointer items-center justify-between gap-4 px-3 py-2 text-left text-sm", "text-zinc-900 transition-colors", t ? "bg-zinc-50" : "hover:bg-zinc-50"),
|
|
2047
2069
|
onClick: () => {
|
|
2048
2070
|
o(e), d(!1);
|
|
2049
2071
|
},
|
|
2050
|
-
children: [/* @__PURE__ */
|
|
2072
|
+
children: [/* @__PURE__ */ u("span", { children: [e, " Items"] }), t ? /* @__PURE__ */ l(qe, { className: "text-zinc-800" }) : null]
|
|
2051
2073
|
})
|
|
2052
2074
|
}, e);
|
|
2053
2075
|
})
|
|
@@ -2056,12 +2078,12 @@ function qe({ value: n, options: r, onChange: o, className: s }) {
|
|
|
2056
2078
|
}
|
|
2057
2079
|
//#endregion
|
|
2058
2080
|
//#region src/lib/Pagination.tsx
|
|
2059
|
-
function
|
|
2081
|
+
function Ye(e, t) {
|
|
2060
2082
|
if (t <= 7) return Array.from({ length: t }, (e, t) => t + 1);
|
|
2061
2083
|
let n = e + 1, r = [];
|
|
2062
2084
|
return n <= 4 ? (r.push(1, 2, 3, 4, 5, "ellipsis", t), r) : n >= t - 3 ? (r.push(1, "ellipsis", t - 4, t - 3, t - 2, t - 1, t), r) : (r.push(1, "ellipsis", n - 1, n, n + 1, "ellipsis", t), r);
|
|
2063
2085
|
}
|
|
2064
|
-
function
|
|
2086
|
+
function Xe({ className: e }) {
|
|
2065
2087
|
return /* @__PURE__ */ l("svg", {
|
|
2066
2088
|
className: e,
|
|
2067
2089
|
width: "14",
|
|
@@ -2076,7 +2098,7 @@ function Ye({ className: e }) {
|
|
|
2076
2098
|
children: /* @__PURE__ */ l("path", { d: "M15 18l-6-6 6-6" })
|
|
2077
2099
|
});
|
|
2078
2100
|
}
|
|
2079
|
-
function
|
|
2101
|
+
function Ze({ className: e }) {
|
|
2080
2102
|
return /* @__PURE__ */ l("svg", {
|
|
2081
2103
|
className: e,
|
|
2082
2104
|
width: "14",
|
|
@@ -2091,20 +2113,20 @@ function Xe({ className: e }) {
|
|
|
2091
2113
|
children: /* @__PURE__ */ l("path", { d: "M9 18l6-6-6-6" })
|
|
2092
2114
|
});
|
|
2093
2115
|
}
|
|
2094
|
-
var
|
|
2095
|
-
function
|
|
2116
|
+
var Qe = "inline-flex size-9 shrink-0 items-center justify-center rounded-md border text-sm transition-colors";
|
|
2117
|
+
function $e({ skip: e, limit: t, total: n, limitOptions: r = [
|
|
2096
2118
|
10,
|
|
2097
2119
|
20,
|
|
2098
2120
|
50
|
|
2099
|
-
], onChange: i, className: a, startAddon: o }) {
|
|
2100
|
-
let
|
|
2121
|
+
], onChange: i, className: a, startAddon: o, endAddon: s }) {
|
|
2122
|
+
let c = Math.max(1, Math.ceil(n / t) || 1), d = Math.floor(e / t), f = Ye(d, c), p = n === 0 ? 0 : e + 1, m = Math.min(e + t, n);
|
|
2101
2123
|
return /* @__PURE__ */ u("div", {
|
|
2102
2124
|
className: $("flex flex-wrap items-center justify-between gap-3 px-1 py-2 text-sm text-zinc-700", a),
|
|
2103
2125
|
children: [/* @__PURE__ */ u("div", {
|
|
2104
2126
|
className: "flex items-center gap-2 text-zinc-500",
|
|
2105
2127
|
children: [
|
|
2106
2128
|
o,
|
|
2107
|
-
/* @__PURE__ */ l(
|
|
2129
|
+
/* @__PURE__ */ l(Je, {
|
|
2108
2130
|
value: t,
|
|
2109
2131
|
options: r,
|
|
2110
2132
|
onChange: (e) => i({
|
|
@@ -2115,62 +2137,65 @@ function Qe({ skip: e, limit: t, total: n, limitOptions: r = [
|
|
|
2115
2137
|
/* @__PURE__ */ u("span", {
|
|
2116
2138
|
className: "hidden text-sm sm:inline",
|
|
2117
2139
|
children: [
|
|
2118
|
-
f,
|
|
2119
|
-
"-",
|
|
2120
2140
|
p,
|
|
2141
|
+
"-",
|
|
2142
|
+
m,
|
|
2121
2143
|
" of ",
|
|
2122
2144
|
n
|
|
2123
2145
|
]
|
|
2124
2146
|
})
|
|
2125
2147
|
]
|
|
2126
|
-
}), /* @__PURE__ */ u("
|
|
2127
|
-
className: "flex items-center gap-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
className: "inline-flex size-9 items-center justify-center text-zinc-400",
|
|
2143
|
-
"aria-hidden": !0,
|
|
2144
|
-
children: "…"
|
|
2145
|
-
}, `e-${n}`) : /* @__PURE__ */ l("button", {
|
|
2146
|
-
type: "button",
|
|
2147
|
-
"aria-label": `Page ${e}`,
|
|
2148
|
-
"aria-current": e === c + 1 ? "page" : void 0,
|
|
2149
|
-
className: $(Ze, e === c + 1 ? "border-zinc-300 bg-zinc-100 font-medium text-zinc-900" : "border-zinc-200 bg-white text-zinc-800 hover:bg-zinc-50"),
|
|
2150
|
-
onClick: () => i({
|
|
2151
|
-
limit: t,
|
|
2152
|
-
skip: (e - 1) * t
|
|
2153
|
-
}),
|
|
2154
|
-
children: e
|
|
2155
|
-
}, e)),
|
|
2156
|
-
/* @__PURE__ */ l("button", {
|
|
2157
|
-
type: "button",
|
|
2158
|
-
className: $(Ze, "border-zinc-200 bg-white text-zinc-800", "disabled:cursor-not-allowed disabled:border-zinc-100 disabled:text-zinc-300", "hover:enabled:bg-zinc-50"),
|
|
2159
|
-
disabled: c >= s - 1,
|
|
2160
|
-
"aria-label": "Next page",
|
|
2161
|
-
onClick: () => i({
|
|
2162
|
-
limit: t,
|
|
2163
|
-
skip: e + t
|
|
2148
|
+
}), /* @__PURE__ */ u("div", {
|
|
2149
|
+
className: "flex items-center gap-2",
|
|
2150
|
+
children: [/* @__PURE__ */ u("nav", {
|
|
2151
|
+
className: "flex items-center gap-1.5",
|
|
2152
|
+
"aria-label": "Pagination",
|
|
2153
|
+
children: [
|
|
2154
|
+
/* @__PURE__ */ l("button", {
|
|
2155
|
+
type: "button",
|
|
2156
|
+
className: $(Qe, "border-zinc-200 cursor-pointer bg-white text-zinc-800", "disabled:cursor-not-allowed disabled:border-zinc-100 disabled:text-zinc-300", "hover:enabled:bg-zinc-50"),
|
|
2157
|
+
disabled: d <= 0,
|
|
2158
|
+
"aria-label": "Previous page",
|
|
2159
|
+
onClick: () => i({
|
|
2160
|
+
limit: t,
|
|
2161
|
+
skip: Math.max(0, e - t)
|
|
2162
|
+
}),
|
|
2163
|
+
children: /* @__PURE__ */ l(Xe, {})
|
|
2164
2164
|
}),
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2165
|
+
f.map((e, n) => e === "ellipsis" ? /* @__PURE__ */ l("span", {
|
|
2166
|
+
className: "inline-flex size-9 items-center justify-center text-zinc-400",
|
|
2167
|
+
"aria-hidden": !0,
|
|
2168
|
+
children: "…"
|
|
2169
|
+
}, `e-${n}`) : /* @__PURE__ */ l("button", {
|
|
2170
|
+
type: "button",
|
|
2171
|
+
"aria-label": `Page ${e}`,
|
|
2172
|
+
"aria-current": e === d + 1 ? "page" : void 0,
|
|
2173
|
+
className: $(Qe, e === d + 1 ? "border-zinc-300 cursor-pointer bg-zinc-200 font-medium text-zinc-900" : "border-zinc-200 cursor-pointer bg-white text-zinc-800 hover:bg-zinc-50"),
|
|
2174
|
+
onClick: () => i({
|
|
2175
|
+
limit: t,
|
|
2176
|
+
skip: (e - 1) * t
|
|
2177
|
+
}),
|
|
2178
|
+
children: e
|
|
2179
|
+
}, e)),
|
|
2180
|
+
/* @__PURE__ */ l("button", {
|
|
2181
|
+
type: "button",
|
|
2182
|
+
className: $(Qe, "border-zinc-200 cursor-pointer bg-white text-zinc-800", "disabled:cursor-not-allowed disabled:border-zinc-100 disabled:text-zinc-300", "hover:enabled:bg-zinc-50"),
|
|
2183
|
+
disabled: d >= c - 1,
|
|
2184
|
+
"aria-label": "Next page",
|
|
2185
|
+
onClick: () => i({
|
|
2186
|
+
limit: t,
|
|
2187
|
+
skip: e + t
|
|
2188
|
+
}),
|
|
2189
|
+
children: /* @__PURE__ */ l(Ze, {})
|
|
2190
|
+
})
|
|
2191
|
+
]
|
|
2192
|
+
}), s]
|
|
2168
2193
|
})]
|
|
2169
2194
|
});
|
|
2170
2195
|
}
|
|
2171
2196
|
//#endregion
|
|
2172
2197
|
//#region src/lib/SkeletonRows.tsx
|
|
2173
|
-
function
|
|
2198
|
+
function et({ rowCount: e, columnCount: t, className: n }) {
|
|
2174
2199
|
return /* @__PURE__ */ l(c, { children: Array.from({ length: e }).map((e, r) => /* @__PURE__ */ l("tr", {
|
|
2175
2200
|
className: $("animate-pulse", n),
|
|
2176
2201
|
children: Array.from({ length: t }).map((e, t) => /* @__PURE__ */ l("td", {
|
|
@@ -2181,12 +2206,12 @@ function $e({ rowCount: e, columnCount: t, className: n }) {
|
|
|
2181
2206
|
}
|
|
2182
2207
|
//#endregion
|
|
2183
2208
|
//#region src/lib/utils/columnOrder.ts
|
|
2184
|
-
function
|
|
2209
|
+
function tt(e, t) {
|
|
2185
2210
|
if (!t?.length) return e;
|
|
2186
2211
|
let n = new Set(e), r = t.filter((e) => n.has(e)), i = e.filter((e) => !r.includes(e));
|
|
2187
2212
|
return [...r, ...i];
|
|
2188
2213
|
}
|
|
2189
|
-
function
|
|
2214
|
+
function nt(e, t, n) {
|
|
2190
2215
|
let r = e.indexOf(t), i = e.indexOf(n);
|
|
2191
2216
|
if (r === -1 || i === -1 || r === i) return e;
|
|
2192
2217
|
let a = e.filter((e, t) => t !== r);
|
|
@@ -2194,16 +2219,16 @@ function tt(e, t, n) {
|
|
|
2194
2219
|
}
|
|
2195
2220
|
//#endregion
|
|
2196
2221
|
//#region src/lib/utils/pagination.ts
|
|
2197
|
-
function
|
|
2222
|
+
function rt(e, t, n) {
|
|
2198
2223
|
if (t <= 0) return 0;
|
|
2199
2224
|
let r = Math.floor((t - 1) / n) * n;
|
|
2200
2225
|
return Math.min(Math.max(0, e), Math.max(0, r));
|
|
2201
2226
|
}
|
|
2202
|
-
function
|
|
2227
|
+
function it(e, t, n) {
|
|
2203
2228
|
return e.slice(t, t + n);
|
|
2204
2229
|
}
|
|
2205
|
-
function
|
|
2206
|
-
let t = e.total ?? e.dataLength, n = Math.max(1, e.limit), r =
|
|
2230
|
+
function at(e) {
|
|
2231
|
+
let t = e.total ?? e.dataLength, n = Math.max(1, e.limit), r = rt(e.skip, t, n), i = Math.max(1, Math.ceil(t / n) || 1);
|
|
2207
2232
|
return {
|
|
2208
2233
|
limit: n,
|
|
2209
2234
|
skip: r,
|
|
@@ -2214,43 +2239,43 @@ function it(e) {
|
|
|
2214
2239
|
}
|
|
2215
2240
|
//#endregion
|
|
2216
2241
|
//#region src/lib/utils/stickyOffsets.ts
|
|
2217
|
-
function
|
|
2242
|
+
function ot(e, t) {
|
|
2218
2243
|
return t?.[e.key] == null ? typeof e.width == "number" ? e.width : 120 : t[e.key];
|
|
2219
2244
|
}
|
|
2220
|
-
function
|
|
2245
|
+
function st(e, t) {
|
|
2221
2246
|
let n = {}, r = 0;
|
|
2222
2247
|
for (let i of e) i.sticky === "left" && (n[i.key] = {
|
|
2223
2248
|
side: "left",
|
|
2224
2249
|
offset: r
|
|
2225
|
-
}, r +=
|
|
2250
|
+
}, r += ot(i, t));
|
|
2226
2251
|
let i = 0;
|
|
2227
2252
|
for (let r = e.length - 1; r >= 0; r--) {
|
|
2228
2253
|
let a = e[r];
|
|
2229
2254
|
a.sticky === "right" && (n[a.key] = {
|
|
2230
2255
|
side: "right",
|
|
2231
2256
|
offset: i
|
|
2232
|
-
}, i +=
|
|
2257
|
+
}, i += ot(a, t));
|
|
2233
2258
|
}
|
|
2234
2259
|
return n;
|
|
2235
2260
|
}
|
|
2236
2261
|
//#endregion
|
|
2237
2262
|
//#region src/lib/SeeTable.tsx
|
|
2238
|
-
var
|
|
2239
|
-
function
|
|
2263
|
+
var ct = "__see_table_index__", lt = 120, ut = 310;
|
|
2264
|
+
function dt(e, t) {
|
|
2240
2265
|
return t?.length ? new Set(t) : new Set(e.filter((e) => e.defaultVisible !== !1).map((e) => e.key));
|
|
2241
2266
|
}
|
|
2242
|
-
function
|
|
2267
|
+
function ft(e, t, n, r) {
|
|
2243
2268
|
if (n?.includes(e)) return "left";
|
|
2244
2269
|
if (r?.includes(e)) return "right";
|
|
2245
2270
|
if (n === void 0 && r === void 0) return t;
|
|
2246
2271
|
}
|
|
2247
|
-
function
|
|
2272
|
+
function pt(e, t, n) {
|
|
2248
2273
|
return e.map((e) => ({
|
|
2249
2274
|
...e,
|
|
2250
|
-
sticky:
|
|
2275
|
+
sticky: ft(e.key, e.sticky, t, n)
|
|
2251
2276
|
}));
|
|
2252
2277
|
}
|
|
2253
|
-
function
|
|
2278
|
+
function mt(e, t, n = "actions", r = "Actions") {
|
|
2254
2279
|
return t ? (e.some((e) => e.key === n) ? e : [...e, {
|
|
2255
2280
|
key: n,
|
|
2256
2281
|
header: r,
|
|
@@ -2261,7 +2286,7 @@ function pt(e, t, n = "actions", r = "Actions") {
|
|
|
2261
2286
|
cell: (e, n) => t(e, n)
|
|
2262
2287
|
} : e) : e;
|
|
2263
2288
|
}
|
|
2264
|
-
function
|
|
2289
|
+
function ht(e, t) {
|
|
2265
2290
|
let n = e.width === "auto" ? {
|
|
2266
2291
|
width: "1%",
|
|
2267
2292
|
whiteSpace: "nowrap",
|
|
@@ -2279,83 +2304,127 @@ function mt(e, t) {
|
|
|
2279
2304
|
[t.side]: t.offset
|
|
2280
2305
|
} : n;
|
|
2281
2306
|
}
|
|
2282
|
-
function
|
|
2307
|
+
function gt({ columns: e, data: t, getRowId: o, defaultVisibleColumns: s, limit: c, skip: d, total: f, onPaginationChange: p, limitOptions: m = [
|
|
2283
2308
|
10,
|
|
2284
2309
|
20,
|
|
2285
2310
|
50
|
|
2286
|
-
], loading: h = !1, stickyLeft: g, stickyRight: _, renderActions: v, actionsKey: y = "actions", actionsHeader: b = "Actions", columnOrder: x, onColumnOrderChange: S, enableColumnReorder: ee,
|
|
2287
|
-
let
|
|
2311
|
+
], loading: h = !1, stickyLeft: g, stickyRight: _, renderActions: v, actionsKey: y = "actions", actionsHeader: b = "Actions", columnOrder: x, onColumnOrderChange: S, enableColumnReorder: ee, enableSorting: C, sortState: w, defaultSort: te, onSortChange: ne, showColumnToggle: re = !0, columnTogglePosition: ie = "after-skip", columnsLabel: ae = "Columns", showIndex: T = !1, indexHeader: E = "#", indexWidth: D = 56, renderIndex: O, fieldClassNames: oe, classNames: k }) {
|
|
2312
|
+
let A = (ee ?? typeof S == "function") && typeof S == "function", se = C ?? (typeof ne == "function" || w !== void 0), j = i(null), [M, N] = a(null), P = i(!1), [F, ce] = a(() => te ?? null), I = w !== void 0, L = I ? w : F, R = c !== void 0 && d !== void 0 && typeof p == "function", [z, B] = a(m[0] ?? 10), [le, V] = a(0), [ue, de] = a(() => dt(e, s)), fe = R ? c : z, H = R ? d : le, U = r(() => mt(e, v, y, b), [
|
|
2288
2313
|
e,
|
|
2289
2314
|
v,
|
|
2290
2315
|
y,
|
|
2291
2316
|
b
|
|
2292
|
-
]),
|
|
2293
|
-
|
|
2317
|
+
]), W = r(() => pt(U, g, _), [
|
|
2318
|
+
U,
|
|
2294
2319
|
g,
|
|
2295
2320
|
_
|
|
2296
|
-
]),
|
|
2297
|
-
let e =
|
|
2321
|
+
]), G = r(() => {
|
|
2322
|
+
let e = tt(W.map((e) => e.key), x), t = new Map(W.map((e) => [e.key, e]));
|
|
2298
2323
|
return e.map((e) => t.get(e)).filter((e) => !!e);
|
|
2299
|
-
}, [
|
|
2300
|
-
key:
|
|
2301
|
-
header:
|
|
2302
|
-
width:
|
|
2324
|
+
}, [W, x]), K = r(() => T ? {
|
|
2325
|
+
key: ct,
|
|
2326
|
+
header: E,
|
|
2327
|
+
width: D,
|
|
2303
2328
|
sticky: g?.includes("__see_table_index__") ? "left" : void 0,
|
|
2304
2329
|
cell: (e, t) => {
|
|
2305
|
-
let n =
|
|
2306
|
-
return
|
|
2330
|
+
let n = H + t + 1;
|
|
2331
|
+
return O ? O(e, t, n) : n;
|
|
2307
2332
|
}
|
|
2308
2333
|
} : null, [
|
|
2309
|
-
te,
|
|
2310
|
-
ne,
|
|
2311
2334
|
T,
|
|
2335
|
+
E,
|
|
2336
|
+
D,
|
|
2312
2337
|
g,
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
]),
|
|
2316
|
-
let e =
|
|
2317
|
-
return
|
|
2338
|
+
H,
|
|
2339
|
+
O
|
|
2340
|
+
]), q = r(() => {
|
|
2341
|
+
let e = G.filter((e) => ue.has(e.key));
|
|
2342
|
+
return K ? [K, ...e] : e;
|
|
2318
2343
|
}, [
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
]),
|
|
2344
|
+
G,
|
|
2345
|
+
ue,
|
|
2346
|
+
K
|
|
2347
|
+
]), pe = r(() => tt(W.map((e) => e.key), x), [W, x]), me = r(() => G.map((e) => ({
|
|
2323
2348
|
key: e.key,
|
|
2324
2349
|
label: e.header
|
|
2325
|
-
})), [
|
|
2326
|
-
function
|
|
2327
|
-
|
|
2350
|
+
})), [G]);
|
|
2351
|
+
function he(e, t) {
|
|
2352
|
+
A && e !== "__see_table_index__" && (P.current = !0, j.current = e, t.dataTransfer.effectAllowed = "move", t.dataTransfer.setData("text/plain", e));
|
|
2328
2353
|
}
|
|
2329
|
-
function
|
|
2330
|
-
|
|
2354
|
+
function ge(e, t) {
|
|
2355
|
+
A && j.current && e !== "__see_table_index__" && (t.preventDefault(), t.stopPropagation(), t.dataTransfer.dropEffect = "move", M !== e && N(e));
|
|
2331
2356
|
}
|
|
2332
|
-
function
|
|
2333
|
-
if (!
|
|
2357
|
+
function _e(e, t) {
|
|
2358
|
+
if (!A || e === "__see_table_index__") return;
|
|
2334
2359
|
t.preventDefault(), t.stopPropagation();
|
|
2335
|
-
let n =
|
|
2336
|
-
|
|
2360
|
+
let n = j.current ?? t.dataTransfer.getData("text/plain");
|
|
2361
|
+
j.current = null, N(null), n && n !== e && n !== "__see_table_index__" && S(nt(pe, n, e));
|
|
2362
|
+
}
|
|
2363
|
+
function ve() {
|
|
2364
|
+
j.current = null, N(null), setTimeout(() => {
|
|
2365
|
+
P.current = !1;
|
|
2366
|
+
}, 50);
|
|
2337
2367
|
}
|
|
2338
|
-
function
|
|
2339
|
-
|
|
2368
|
+
function ye(e) {
|
|
2369
|
+
if (!se || P.current) return;
|
|
2370
|
+
let t = q.find((t) => t.key === e);
|
|
2371
|
+
if (!t || t.sortable === !1 || e === "__see_table_index__" || e === y) return;
|
|
2372
|
+
let n = null;
|
|
2373
|
+
n = L?.key === e ? L.direction === "asc" ? {
|
|
2374
|
+
key: e,
|
|
2375
|
+
direction: "desc"
|
|
2376
|
+
} : null : {
|
|
2377
|
+
key: e,
|
|
2378
|
+
direction: "asc"
|
|
2379
|
+
}, I || (ce(n), R || V(0)), ne?.(n);
|
|
2340
2380
|
}
|
|
2341
|
-
let
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2381
|
+
let J = r(() => {
|
|
2382
|
+
if (!se || !L || R) return t;
|
|
2383
|
+
let { key: n, direction: r } = L, i = e.find((e) => e.key === n)?.sortFn;
|
|
2384
|
+
return [...t].sort((e, t) => {
|
|
2385
|
+
if (i) {
|
|
2386
|
+
let n = i(e, t);
|
|
2387
|
+
return r === "asc" ? n : -n;
|
|
2388
|
+
}
|
|
2389
|
+
let a = e[n], o = t[n];
|
|
2390
|
+
if (a == null && o == null) return 0;
|
|
2391
|
+
if (a == null) return 1;
|
|
2392
|
+
if (o == null) return -1;
|
|
2393
|
+
if (typeof a == "number" && typeof o == "number") return r === "asc" ? a - o : o - a;
|
|
2394
|
+
if (typeof a == "boolean" && typeof o == "boolean") {
|
|
2395
|
+
let e = +!!a, t = +!!o;
|
|
2396
|
+
return r === "asc" ? e - t : t - e;
|
|
2397
|
+
}
|
|
2398
|
+
if (a instanceof Date && o instanceof Date) return r === "asc" ? a.getTime() - o.getTime() : o.getTime() - a.getTime();
|
|
2399
|
+
let s = String(a), c = String(o), l = s.localeCompare(c, void 0, {
|
|
2400
|
+
numeric: !0,
|
|
2401
|
+
sensitivity: "base"
|
|
2402
|
+
});
|
|
2403
|
+
return r === "asc" ? l : -l;
|
|
2404
|
+
});
|
|
2405
|
+
}, [
|
|
2406
|
+
t,
|
|
2407
|
+
L,
|
|
2408
|
+
R,
|
|
2409
|
+
e
|
|
2410
|
+
]), Y = at({
|
|
2411
|
+
dataLength: J.length,
|
|
2412
|
+
limit: fe,
|
|
2413
|
+
skip: H,
|
|
2345
2414
|
total: f
|
|
2346
|
-
}),
|
|
2415
|
+
}), be = R ? t : it(J, Y.skip, Y.limit), xe = i({}), [Se, Ce] = a({});
|
|
2347
2416
|
n(() => {
|
|
2348
|
-
let e =
|
|
2417
|
+
let e = q.filter((e) => e.sticky || e.width === "auto").map((e) => xe.current[e.key]).filter((e) => !!e);
|
|
2349
2418
|
if (e.length === 0) return;
|
|
2350
2419
|
let t = () => {
|
|
2351
2420
|
let e = {};
|
|
2352
|
-
for (let t of
|
|
2353
|
-
let n =
|
|
2421
|
+
for (let t of q) {
|
|
2422
|
+
let n = xe.current[t.key];
|
|
2354
2423
|
if (!n) continue;
|
|
2355
2424
|
let r = n.closest("table")?.querySelector(`tbody tr td:nth-child(${Array.from(n.parentElement?.children ?? []).indexOf(n) + 1})`), i = Math.ceil((r ?? n).getBoundingClientRect().width);
|
|
2356
2425
|
i > 0 && (e[t.key] = i);
|
|
2357
2426
|
}
|
|
2358
|
-
|
|
2427
|
+
Ce((t) => {
|
|
2359
2428
|
let n = Object.keys(e);
|
|
2360
2429
|
return n.length === Object.keys(t).length && n.every((n) => t[n] === e[n]) ? t : e;
|
|
2361
2430
|
});
|
|
@@ -2365,57 +2434,68 @@ function ht({ columns: e, data: t, getRowId: o, defaultVisibleColumns: s, limit:
|
|
|
2365
2434
|
for (let t of e) n.observe(t);
|
|
2366
2435
|
return () => n.disconnect();
|
|
2367
2436
|
}, [
|
|
2368
|
-
|
|
2369
|
-
|
|
2437
|
+
q,
|
|
2438
|
+
be,
|
|
2370
2439
|
h,
|
|
2371
2440
|
v
|
|
2372
2441
|
]);
|
|
2373
|
-
let
|
|
2374
|
-
function
|
|
2375
|
-
|
|
2442
|
+
let we = r(() => st(q, Se), [q, Se]);
|
|
2443
|
+
function Te(e) {
|
|
2444
|
+
R ? p(e) : (B(e.limit), V(e.skip));
|
|
2376
2445
|
}
|
|
2377
2446
|
return /* @__PURE__ */ u("div", {
|
|
2378
|
-
className: $("flex w-full flex-col gap-2",
|
|
2447
|
+
className: $("flex w-full flex-col gap-2", k?.root),
|
|
2379
2448
|
children: [/* @__PURE__ */ l("div", {
|
|
2380
|
-
className: $("w-full overflow-auto rounded border border-zinc-200/70", "scrollbar-none [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden",
|
|
2449
|
+
className: $("w-full overflow-auto rounded border border-zinc-200/70", "scrollbar-none [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden", k?.tableWrapper),
|
|
2381
2450
|
children: /* @__PURE__ */ u("table", {
|
|
2382
|
-
className: $("min-w-full border-collapse text-left text-sm text-zinc-500",
|
|
2451
|
+
className: $("min-w-full border-collapse text-left text-sm text-zinc-500", k?.table),
|
|
2383
2452
|
children: [/* @__PURE__ */ l("thead", {
|
|
2384
|
-
className: $("bg-zinc-50",
|
|
2385
|
-
children: /* @__PURE__ */ l("tr", { children:
|
|
2386
|
-
let t =
|
|
2453
|
+
className: $("bg-zinc-50", k?.thead),
|
|
2454
|
+
children: /* @__PURE__ */ l("tr", { children: q.map((e) => {
|
|
2455
|
+
let t = we[e.key], n = se && e.key !== "__see_table_index__" && e.key !== y && e.sortable !== !1, r = L?.key === e.key, i = r ? L.direction : null;
|
|
2387
2456
|
return /* @__PURE__ */ l("th", {
|
|
2388
2457
|
ref: (t) => {
|
|
2389
|
-
|
|
2458
|
+
xe.current[e.key] = t;
|
|
2459
|
+
},
|
|
2460
|
+
draggable: A && e.key !== "__see_table_index__",
|
|
2461
|
+
onDragStart: (t) => he(e.key, t),
|
|
2462
|
+
onDragOver: (t) => ge(e.key, t),
|
|
2463
|
+
onDrop: (t) => _e(e.key, t),
|
|
2464
|
+
onDragEnd: ve,
|
|
2465
|
+
onClick: () => {
|
|
2466
|
+
n && ye(e.key);
|
|
2390
2467
|
},
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
onDrop: (t) => de(e.key, t),
|
|
2395
|
-
onDragEnd: U,
|
|
2396
|
-
className: $("whitespace-nowrap border-b border-zinc-200 p-3", e.width !== "auto" && typeof e.width != "number" && "overflow-hidden text-ellipsis", O && e.key !== "__see_table_index__" && "cursor-grab active:cursor-grabbing select-none", A === e.key && O && e.key !== "__see_table_index__" && "bg-zinc-200 ring-1 ring-inset ring-zinc-300", t && "sticky z-20 isolate bg-zinc-50", t?.side === "left" && "shadow-[4px_0_8px_-4px_rgba(0,0,0,0.15)]", t?.side === "right" && "shadow-[-4px_0_8px_-4px_rgba(0,0,0,0.15)]", D?.th, e.className, "font-medium"),
|
|
2397
|
-
style: mt(e, t),
|
|
2468
|
+
"aria-sort": n ? i === "asc" ? "ascending" : i === "desc" ? "descending" : "none" : void 0,
|
|
2469
|
+
className: $("whitespace-nowrap border-b border-zinc-200 p-3", e.width !== "auto" && typeof e.width != "number" && "overflow-hidden text-ellipsis", n && "cursor-pointer select-none transition-colors hover:bg-zinc-100/80", A && e.key !== "__see_table_index__" && !n && "cursor-grab active:cursor-grabbing select-none", M === e.key && A && e.key !== "__see_table_index__" && "bg-zinc-200 ring-1 ring-inset ring-zinc-300", t && "sticky z-20 isolate bg-zinc-50", t?.side === "left" && "shadow-[4px_0_8px_-4px_rgba(0,0,0,0.15)]", t?.side === "right" && "shadow-[-4px_0_8px_-4px_rgba(0,0,0,0.15)]", k?.th, e.className, "font-medium"),
|
|
2470
|
+
style: ht(e, t),
|
|
2398
2471
|
children: /* @__PURE__ */ u("span", {
|
|
2399
2472
|
className: "inline-flex items-center gap-1.5",
|
|
2400
|
-
children: [
|
|
2473
|
+
children: [
|
|
2474
|
+
A && e.key !== "__see_table_index__" ? /* @__PURE__ */ l(We, { className: "shrink-0 text-zinc-400 hover:text-zinc-600" }) : null,
|
|
2475
|
+
/* @__PURE__ */ l("span", {
|
|
2476
|
+
className: $(r && "font-semibold text-zinc-900"),
|
|
2477
|
+
children: e.header
|
|
2478
|
+
}),
|
|
2479
|
+
n ? /* @__PURE__ */ l(Ge, { direction: i }) : null
|
|
2480
|
+
]
|
|
2401
2481
|
})
|
|
2402
2482
|
}, e.key);
|
|
2403
2483
|
}) })
|
|
2404
2484
|
}), /* @__PURE__ */ l("tbody", {
|
|
2405
|
-
className:
|
|
2406
|
-
children: h ? /* @__PURE__ */ l(
|
|
2407
|
-
rowCount:
|
|
2408
|
-
columnCount:
|
|
2409
|
-
className:
|
|
2410
|
-
}) :
|
|
2411
|
-
let n = o?.(e, t) ?? String(
|
|
2485
|
+
className: k?.tbody,
|
|
2486
|
+
children: h ? /* @__PURE__ */ l(et, {
|
|
2487
|
+
rowCount: Y.limit,
|
|
2488
|
+
columnCount: q.length,
|
|
2489
|
+
className: k?.skeleton
|
|
2490
|
+
}) : be.map((e, t) => {
|
|
2491
|
+
let n = o?.(e, t) ?? String(Y.skip + t);
|
|
2412
2492
|
return /* @__PURE__ */ l("tr", {
|
|
2413
|
-
className: $("group bg-white",
|
|
2414
|
-
children:
|
|
2415
|
-
let r =
|
|
2493
|
+
className: $("group bg-white", k?.tr),
|
|
2494
|
+
children: q.map((n) => {
|
|
2495
|
+
let r = we[n.key], i = n.cell ? n.cell(e, t) : e[n.key], a = oe?.[n.key], o = typeof a == "function" ? a(e, t) : a;
|
|
2416
2496
|
return /* @__PURE__ */ l("td", {
|
|
2417
|
-
className: $("border-b border-zinc-100/80 px-3 py-2 text-zinc-500 transition-colors group-hover:bg-zinc-50", n.width !== "auto" && typeof n.width != "number" && "overflow-hidden text-ellipsis whitespace-nowrap", r && "sticky z-10 isolate bg-white group-hover:bg-zinc-50", r?.side === "left" && "shadow-[4px_0_8px_-4px_rgba(0,0,0,0.15)]", r?.side === "right" && "shadow-[-4px_0_8px_-4px_rgba(0,0,0,0.15)]",
|
|
2418
|
-
style:
|
|
2497
|
+
className: $("border-b border-zinc-100/80 px-3 py-2 text-zinc-500 transition-colors group-hover:bg-zinc-50", n.width !== "auto" && typeof n.width != "number" && "overflow-hidden text-ellipsis whitespace-nowrap", r && "sticky z-10 isolate bg-white group-hover:bg-zinc-50", r?.side === "left" && "shadow-[4px_0_8px_-4px_rgba(0,0,0,0.15)]", r?.side === "right" && "shadow-[-4px_0_8px_-4px_rgba(0,0,0,0.15)]", k?.td, n.className, o),
|
|
2498
|
+
style: ht(n, r),
|
|
2419
2499
|
children: i
|
|
2420
2500
|
}, n.key);
|
|
2421
2501
|
})
|
|
@@ -2423,22 +2503,26 @@ function ht({ columns: e, data: t, getRowId: o, defaultVisibleColumns: s, limit:
|
|
|
2423
2503
|
})
|
|
2424
2504
|
})]
|
|
2425
2505
|
})
|
|
2426
|
-
}),
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
|
|
2506
|
+
}), (() => {
|
|
2507
|
+
let e = ie === "before-limit" || ie === "start", t = re ? /* @__PURE__ */ l(Ue, {
|
|
2508
|
+
className: k?.columnToggle,
|
|
2509
|
+
label: ae,
|
|
2510
|
+
columns: me,
|
|
2511
|
+
visibleKeys: ue,
|
|
2512
|
+
onChange: de
|
|
2513
|
+
}) : void 0;
|
|
2514
|
+
return /* @__PURE__ */ l($e, {
|
|
2515
|
+
className: k?.pagination,
|
|
2516
|
+
skip: Y.skip,
|
|
2517
|
+
limit: Y.limit,
|
|
2518
|
+
total: Y.total,
|
|
2519
|
+
limitOptions: m,
|
|
2520
|
+
onChange: Te,
|
|
2521
|
+
startAddon: e ? t : void 0,
|
|
2522
|
+
endAddon: e ? void 0 : t
|
|
2523
|
+
});
|
|
2524
|
+
})()]
|
|
2441
2525
|
});
|
|
2442
2526
|
}
|
|
2443
2527
|
//#endregion
|
|
2444
|
-
export {
|
|
2528
|
+
export { ut as DEFAULT_COL_MAX_WIDTH, lt as DEFAULT_COL_MIN_WIDTH, ct as INDEX_COLUMN_KEY, gt as MisterSeeGlobalTable };
|