@aminnausin/cedar-ui 0.0.10 → 0.0.11
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/cedar-ui.mjs +349 -347
- package/dist/cedar-ui.umd.js +1 -1
- package/dist/index.d.ts +16 -6
- package/package.json +1 -1
package/dist/cedar-ui.mjs
CHANGED
|
@@ -4,7 +4,7 @@ var E = (e, t, o) => Ze(e, typeof t != "symbol" ? t + "" : t, o);
|
|
|
4
4
|
import { ref as y, computed as ue, onMounted as Qe, watch as J, nextTick as et, reactive as se, onBeforeUnmount as tt, shallowRef as ge, readonly as Pe } from "vue";
|
|
5
5
|
function Xt(e, t, o) {
|
|
6
6
|
var ee;
|
|
7
|
-
const
|
|
7
|
+
const r = y(!1), s = y(((ee = e.model) == null ? void 0 : ee.value) ?? e.defaultDate ?? ""), n = y("F d, Y"), a = y(0), i = y(0), l = y(0), f = y([]), p = y([]), g = y("bottom"), M = [
|
|
8
8
|
"January",
|
|
9
9
|
"February",
|
|
10
10
|
"March",
|
|
@@ -18,20 +18,20 @@ function Xt(e, t, o) {
|
|
|
18
18
|
"November",
|
|
19
19
|
"December"
|
|
20
20
|
], R = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], k = y("D"), A = ue(() => {
|
|
21
|
-
let
|
|
22
|
-
return
|
|
21
|
+
let h = Math.max(a.value, 0);
|
|
22
|
+
return h >= M.length && (h = 0), M[h];
|
|
23
23
|
}), F = ue(() => {
|
|
24
|
-
const
|
|
25
|
-
return Array.from({ length: 10 }, (I, x) =>
|
|
24
|
+
const h = Math.floor(i.value / 10) * 10;
|
|
25
|
+
return Array.from({ length: 10 }, (I, x) => h + x);
|
|
26
26
|
});
|
|
27
|
-
function O(
|
|
28
|
-
|
|
27
|
+
function O(h) {
|
|
28
|
+
r.value = h ?? !r.value, k.value = "D";
|
|
29
29
|
}
|
|
30
|
-
function G(
|
|
31
|
-
k.value =
|
|
30
|
+
function G(h = "D") {
|
|
31
|
+
k.value = h;
|
|
32
32
|
}
|
|
33
|
-
function z(
|
|
34
|
-
const I = R[
|
|
33
|
+
function z(h) {
|
|
34
|
+
const I = R[h.getDay()], x = ("0" + h.getDate()).slice(-2), P = M[h.getMonth()], m = P.substring(0, 3), U = ("0" + (h.getMonth() + 1)).slice(-2), B = h.getFullYear();
|
|
35
35
|
switch (n.value) {
|
|
36
36
|
case "F d, Y":
|
|
37
37
|
return `${P} ${x}, ${B}`;
|
|
@@ -51,16 +51,16 @@ function Xt(e, t, o) {
|
|
|
51
51
|
return `${P} ${x}, ${B}`;
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
|
-
function N(
|
|
54
|
+
function N(h) {
|
|
55
55
|
switch (k.value) {
|
|
56
56
|
case "Y":
|
|
57
|
-
i.value =
|
|
57
|
+
i.value = h, k.value = "M";
|
|
58
58
|
break;
|
|
59
59
|
case "M":
|
|
60
|
-
a.value =
|
|
60
|
+
a.value = h, k.value = "D", v();
|
|
61
61
|
break;
|
|
62
62
|
default:
|
|
63
|
-
|
|
63
|
+
l.value = h, s.value = z(new Date(i.value, a.value, h)), r.value = !1, e.model && (e.model.value = s.value);
|
|
64
64
|
break;
|
|
65
65
|
}
|
|
66
66
|
}
|
|
@@ -90,35 +90,35 @@ function Xt(e, t, o) {
|
|
|
90
90
|
break;
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
|
-
function w(
|
|
94
|
-
const I = new Date(i.value, a.value,
|
|
95
|
-
return
|
|
93
|
+
function w(h) {
|
|
94
|
+
const I = new Date(i.value, a.value, h);
|
|
95
|
+
return s.value === z(I);
|
|
96
96
|
}
|
|
97
|
-
function
|
|
98
|
-
const I = /* @__PURE__ */ new Date(), x = new Date(i.value, a.value,
|
|
97
|
+
function c(h) {
|
|
98
|
+
const I = /* @__PURE__ */ new Date(), x = new Date(i.value, a.value, h);
|
|
99
99
|
return I.toDateString() === x.toDateString();
|
|
100
100
|
}
|
|
101
101
|
function v() {
|
|
102
|
-
const
|
|
103
|
-
|
|
102
|
+
const h = new Date(i.value, a.value + 1, 0).getDate(), I = new Date(i.value, a.value).getDay();
|
|
103
|
+
p.value = Array.from({ length: I }, (x, P) => P + 1), f.value = Array.from({ length: h }, (x, P) => P + 1);
|
|
104
104
|
}
|
|
105
105
|
function V() {
|
|
106
|
-
if (!t.value || !o.value || !
|
|
107
|
-
const
|
|
106
|
+
if (!t.value || !o.value || !r.value) return;
|
|
107
|
+
const h = t.value.getBoundingClientRect(), I = o.value.offsetHeight, x = h.top + h.height + I;
|
|
108
108
|
g.value = x > window.innerHeight ? "top" : "bottom";
|
|
109
109
|
}
|
|
110
|
-
function Q(
|
|
111
|
-
a.value =
|
|
110
|
+
function Q(h, I = !0) {
|
|
111
|
+
a.value = h.getMonth(), i.value = h.getFullYear(), l.value = h.getDate(), I && (s.value = z(h)), v();
|
|
112
112
|
}
|
|
113
113
|
function j() {
|
|
114
|
-
if (
|
|
115
|
-
return Q(new Date(Date.parse(
|
|
114
|
+
if (s.value)
|
|
115
|
+
return Q(new Date(Date.parse(s.value)));
|
|
116
116
|
Q(/* @__PURE__ */ new Date(), e.useDefaultDate);
|
|
117
117
|
}
|
|
118
118
|
return Qe(() => {
|
|
119
119
|
j();
|
|
120
|
-
}), J(
|
|
121
|
-
if (!
|
|
120
|
+
}), J(r, async (h) => {
|
|
121
|
+
if (!h) {
|
|
122
122
|
window.removeEventListener("resize", V);
|
|
123
123
|
return;
|
|
124
124
|
}
|
|
@@ -126,17 +126,17 @@ function Xt(e, t, o) {
|
|
|
126
126
|
}), {
|
|
127
127
|
datePickerInput: t,
|
|
128
128
|
datePickerCalendar: o,
|
|
129
|
-
datePickerOpen:
|
|
130
|
-
datePickerValue:
|
|
129
|
+
datePickerOpen: r,
|
|
130
|
+
datePickerValue: s,
|
|
131
131
|
datePickerPanel: k,
|
|
132
132
|
datePickerFormat: n,
|
|
133
133
|
datePickerMonth: a,
|
|
134
134
|
datePickerMonthVerbose: A,
|
|
135
135
|
datePickerYear: i,
|
|
136
136
|
datePickerDecade: F,
|
|
137
|
-
datePickerDay:
|
|
138
|
-
datePickerDaysInMonth:
|
|
139
|
-
datePickerBlankDaysInMonth:
|
|
137
|
+
datePickerDay: l,
|
|
138
|
+
datePickerDaysInMonth: f,
|
|
139
|
+
datePickerBlankDaysInMonth: p,
|
|
140
140
|
datePickerMonthNames: M,
|
|
141
141
|
datePickerDays: R,
|
|
142
142
|
datePickerPosition: g,
|
|
@@ -145,12 +145,12 @@ function Xt(e, t, o) {
|
|
|
145
145
|
datePickerPrevious: _,
|
|
146
146
|
datePickerNext: L,
|
|
147
147
|
datePickerIsSelectedDate: w,
|
|
148
|
-
datePickerIsToday:
|
|
148
|
+
datePickerIsToday: c,
|
|
149
149
|
showDatePickerPanel: G
|
|
150
150
|
};
|
|
151
151
|
}
|
|
152
152
|
function Zt({ options: e, defaultItems: t }, o) {
|
|
153
|
-
const
|
|
153
|
+
const r = se({
|
|
154
154
|
selectOpen: !1,
|
|
155
155
|
selectedItems: t,
|
|
156
156
|
selectableItems: e,
|
|
@@ -186,9 +186,9 @@ function Zt({ options: e, defaultItems: t }, o) {
|
|
|
186
186
|
},
|
|
187
187
|
selectItemsFindBestMatch() {
|
|
188
188
|
let n = this.selectKeydownValue.toLowerCase(), a = null, i = -1;
|
|
189
|
-
for (const
|
|
190
|
-
let
|
|
191
|
-
|
|
189
|
+
for (const l of this.selectableItems) {
|
|
190
|
+
let p = l.name.toLowerCase().indexOf(n);
|
|
191
|
+
p > -1 && (i == -1 || p < i) && !l.disabled && (a = l, i = p);
|
|
192
192
|
}
|
|
193
193
|
return a;
|
|
194
194
|
},
|
|
@@ -201,20 +201,20 @@ function Zt({ options: e, defaultItems: t }, o) {
|
|
|
201
201
|
setOptions(n) {
|
|
202
202
|
Array.isArray(n) && (this.selectableItems = n);
|
|
203
203
|
}
|
|
204
|
-
}),
|
|
205
|
-
|
|
204
|
+
}), s = () => {
|
|
205
|
+
r.selectOpen && r.selectPositionUpdate();
|
|
206
206
|
};
|
|
207
207
|
return J(
|
|
208
|
-
() =>
|
|
208
|
+
() => r.selectOpen,
|
|
209
209
|
function(n) {
|
|
210
|
-
if (
|
|
211
|
-
window.removeEventListener("resize",
|
|
210
|
+
if (r.selectedItems ? r.selectableItemActive = r.selectedItem : r.selectableItemActive = r.selectableItems[0], !n) {
|
|
211
|
+
window.removeEventListener("resize", s);
|
|
212
212
|
return;
|
|
213
213
|
}
|
|
214
|
-
|
|
214
|
+
s(), window.addEventListener("resize", s);
|
|
215
215
|
},
|
|
216
216
|
{ immediate: !1 }
|
|
217
|
-
),
|
|
217
|
+
), r;
|
|
218
218
|
}
|
|
219
219
|
function Qt(e, t) {
|
|
220
220
|
const o = se({
|
|
@@ -229,31 +229,31 @@ function Qt(e, t) {
|
|
|
229
229
|
selectDropdownPosition: "bottom",
|
|
230
230
|
selectableItemsList: t.selectableItemsList,
|
|
231
231
|
selectButton: t.selectButton,
|
|
232
|
-
toggleSelect(
|
|
233
|
-
|
|
232
|
+
toggleSelect(s) {
|
|
233
|
+
s !== void 0 ? this.selectOpen = s === !0 : this.selectOpen = !this.selectOpen;
|
|
234
234
|
},
|
|
235
|
-
updateRefs(
|
|
236
|
-
this.selectButton =
|
|
235
|
+
updateRefs(s) {
|
|
236
|
+
this.selectButton = s.selectButton, this.selectableItemsList = s.selectableItemsList;
|
|
237
237
|
},
|
|
238
|
-
selectableItemIsActive(
|
|
239
|
-
return this.selectableItemActive && this.selectableItemActive.value ==
|
|
238
|
+
selectableItemIsActive(s) {
|
|
239
|
+
return this.selectableItemActive && this.selectableItemActive.value == s.value;
|
|
240
240
|
},
|
|
241
241
|
selectableItemActiveNext() {
|
|
242
|
-
let
|
|
243
|
-
|
|
242
|
+
let s = this.selectableItems.indexOf(this.selectableItemActive);
|
|
243
|
+
s < this.selectableItems.length - 1 && (this.selectableItemActive = this.selectableItems[s + 1], this.selectScrollToActiveItem());
|
|
244
244
|
},
|
|
245
245
|
selectableItemActivePrevious() {
|
|
246
|
-
let
|
|
247
|
-
|
|
246
|
+
let s = this.selectableItems.indexOf(this.selectableItemActive);
|
|
247
|
+
s > 0 && (this.selectableItemActive = this.selectableItems[s - 1], this.selectScrollToActiveItem());
|
|
248
248
|
},
|
|
249
249
|
selectScrollToActiveItem() {
|
|
250
250
|
if (!this.selectableItemActive) return;
|
|
251
|
-
let
|
|
252
|
-
|
|
251
|
+
let s = document.getElementById(this.selectableItemActive.value + "-" + this.selectId);
|
|
252
|
+
s && s.focus();
|
|
253
253
|
},
|
|
254
|
-
selectKeydown(
|
|
255
|
-
if (
|
|
256
|
-
this.selectKeydownValue +=
|
|
254
|
+
selectKeydown(s) {
|
|
255
|
+
if (s.keyCode >= 65 && s.keyCode <= 90) {
|
|
256
|
+
this.selectKeydownValue += s.key;
|
|
257
257
|
let n = this.selectItemsFindBestMatch();
|
|
258
258
|
n && (this.selectOpen ? (this.selectableItemActive = n, this.selectScrollToActiveItem()) : this.selectedItem = this.selectableItemActive === n), this.selectKeydownValue != "" && (clearTimeout(this.selectKeydownClearTimeout), this.selectKeydownClearTimeout = window.setTimeout(() => {
|
|
259
259
|
this.selectKeydownValue = "";
|
|
@@ -261,46 +261,46 @@ function Qt(e, t) {
|
|
|
261
261
|
}
|
|
262
262
|
},
|
|
263
263
|
selectItemsFindBestMatch() {
|
|
264
|
-
let
|
|
264
|
+
let s = this.selectKeydownValue.toLowerCase(), n = null, a = -1;
|
|
265
265
|
for (const i of this.selectableItems) {
|
|
266
|
-
let
|
|
267
|
-
|
|
266
|
+
let f = i.title.toLowerCase().indexOf(s);
|
|
267
|
+
f > -1 && (a == -1 || f < a) && !i.disabled && (n = i, a = f);
|
|
268
268
|
}
|
|
269
269
|
return n;
|
|
270
270
|
},
|
|
271
271
|
selectPositionUpdate() {
|
|
272
272
|
var n;
|
|
273
273
|
if (!this.selectableItemsList || !this.selectButton) return;
|
|
274
|
-
let
|
|
275
|
-
window.innerHeight <
|
|
274
|
+
let s = ((n = this.selectButton) == null ? void 0 : n.getBoundingClientRect().top) + this.selectButton.offsetHeight + parseInt(window.getComputedStyle(this.selectableItemsList).maxHeight);
|
|
275
|
+
window.innerHeight < s ? this.selectDropdownPosition = "top" : this.selectDropdownPosition = "bottom";
|
|
276
276
|
}
|
|
277
|
-
}),
|
|
277
|
+
}), r = () => {
|
|
278
278
|
o.selectOpen && o.selectPositionUpdate();
|
|
279
279
|
};
|
|
280
280
|
return J(
|
|
281
281
|
() => o.selectOpen,
|
|
282
|
-
function(
|
|
283
|
-
if (o.selectedItem ? o.selectableItemActive = o.selectedItem : o.selectableItemActive = o.selectableItems[0], !
|
|
284
|
-
window.removeEventListener("resize",
|
|
282
|
+
function(s) {
|
|
283
|
+
if (o.selectedItem ? o.selectableItemActive = o.selectedItem : o.selectableItemActive = o.selectableItems[0], !s) {
|
|
284
|
+
window.removeEventListener("resize", r);
|
|
285
285
|
return;
|
|
286
286
|
}
|
|
287
287
|
window.setTimeout(function() {
|
|
288
288
|
o.selectScrollToActiveItem();
|
|
289
|
-
}, 10),
|
|
289
|
+
}, 10), r(), window.addEventListener("resize", r);
|
|
290
290
|
},
|
|
291
291
|
{ immediate: !1 }
|
|
292
292
|
), o;
|
|
293
293
|
}
|
|
294
294
|
function eo(e) {
|
|
295
|
-
const t = y(1), o = y(e.itemsPerPage ?? 10),
|
|
295
|
+
const t = y(1), o = y(e.itemsPerPage ?? 10), r = se({
|
|
296
296
|
filteredPage: ue(() => {
|
|
297
|
-
const
|
|
298
|
-
return e.data.slice(
|
|
297
|
+
const s = o.value * (t.value - 1), n = Math.min(o.value * t.value, e.data.length);
|
|
298
|
+
return e.data.slice(s, n);
|
|
299
299
|
}),
|
|
300
300
|
props: e,
|
|
301
301
|
fields: { currentPage: t, itemsPerPage: o },
|
|
302
|
-
handlePageChange(
|
|
303
|
-
t.value =
|
|
302
|
+
handlePageChange(s) {
|
|
303
|
+
t.value = s;
|
|
304
304
|
},
|
|
305
305
|
handlePageReset() {
|
|
306
306
|
t.value = 1;
|
|
@@ -308,12 +308,12 @@ function eo(e) {
|
|
|
308
308
|
});
|
|
309
309
|
return J(
|
|
310
310
|
() => e.data,
|
|
311
|
-
(
|
|
311
|
+
(s, n) => {
|
|
312
312
|
var a, i;
|
|
313
|
-
((
|
|
313
|
+
((s == null ? void 0 : s.length) !== (n == null ? void 0 : n.length) || s[0] && n[0] && ((a = s[0]) == null ? void 0 : a.id) !== ((i = n[0]) == null ? void 0 : i.id)) && r.handlePageReset();
|
|
314
314
|
},
|
|
315
315
|
{ immediate: !0 }
|
|
316
|
-
),
|
|
316
|
+
), r;
|
|
317
317
|
}
|
|
318
318
|
function Fe(e = "pv_id_") {
|
|
319
319
|
return e + Math.random().toString(16).slice(2);
|
|
@@ -334,20 +334,20 @@ class ot {
|
|
|
334
334
|
this.publish(t), this.toasts = [...this.toasts, t];
|
|
335
335
|
});
|
|
336
336
|
E(this, "create", (t, o) => {
|
|
337
|
-
const
|
|
338
|
-
return this.toasts.find((n) => n.id ===
|
|
337
|
+
const r = o.id ?? Fe("toast_");
|
|
338
|
+
return this.toasts.find((n) => n.id === r) ? this.toasts = this.toasts.map((n) => n.id === r ? (this.publish({ ...n, ...o, id: r, title: t }), {
|
|
339
339
|
...n,
|
|
340
340
|
...o,
|
|
341
|
-
id:
|
|
341
|
+
id: r,
|
|
342
342
|
title: t
|
|
343
343
|
}) : n) : this.addToast({
|
|
344
344
|
title: t,
|
|
345
|
-
id:
|
|
345
|
+
id: r,
|
|
346
346
|
scale: 1,
|
|
347
347
|
zIndex: 200,
|
|
348
348
|
offsetY: 0,
|
|
349
349
|
...o
|
|
350
|
-
}),
|
|
350
|
+
}), r;
|
|
351
351
|
});
|
|
352
352
|
E(this, "dismiss", (t) => {
|
|
353
353
|
t ? (this.publish({ id: t, dismiss: !0 }), this.toasts = this.toasts.filter((o) => o.id !== t)) : (this.toasts.forEach((o) => {
|
|
@@ -384,8 +384,8 @@ function to(e) {
|
|
|
384
384
|
await navigator.clipboard.writeText(e.value), t.value = !0, setTimeout(() => {
|
|
385
385
|
t.value = !1;
|
|
386
386
|
}, 3e3);
|
|
387
|
-
} catch (
|
|
388
|
-
console.error(
|
|
387
|
+
} catch (r) {
|
|
388
|
+
console.error(r), rt.error("Error", {
|
|
389
389
|
description: "Unable to copy. Network is not secure."
|
|
390
390
|
});
|
|
391
391
|
}
|
|
@@ -401,21 +401,21 @@ function at() {
|
|
|
401
401
|
if (t === o) return !0;
|
|
402
402
|
if (t && o && typeof t == "object" && typeof o == "object") {
|
|
403
403
|
if (t.constructor !== o.constructor) return !1;
|
|
404
|
-
var
|
|
404
|
+
var r, s, n;
|
|
405
405
|
if (Array.isArray(t)) {
|
|
406
|
-
if (
|
|
407
|
-
for (
|
|
408
|
-
if (!e(t[
|
|
406
|
+
if (r = t.length, r != o.length) return !1;
|
|
407
|
+
for (s = r; s-- !== 0; )
|
|
408
|
+
if (!e(t[s], o[s])) return !1;
|
|
409
409
|
return !0;
|
|
410
410
|
}
|
|
411
411
|
if (t.constructor === RegExp) return t.source === o.source && t.flags === o.flags;
|
|
412
412
|
if (t.valueOf !== Object.prototype.valueOf) return t.valueOf() === o.valueOf();
|
|
413
413
|
if (t.toString !== Object.prototype.toString) return t.toString() === o.toString();
|
|
414
|
-
if (n = Object.keys(t),
|
|
415
|
-
for (
|
|
416
|
-
if (!Object.prototype.hasOwnProperty.call(o, n[
|
|
417
|
-
for (
|
|
418
|
-
var a = n[
|
|
414
|
+
if (n = Object.keys(t), r = n.length, r !== Object.keys(o).length) return !1;
|
|
415
|
+
for (s = r; s-- !== 0; )
|
|
416
|
+
if (!Object.prototype.hasOwnProperty.call(o, n[s])) return !1;
|
|
417
|
+
for (s = r; s-- !== 0; ) {
|
|
418
|
+
var a = n[s];
|
|
419
419
|
if (!e(t[a], o[a])) return !1;
|
|
420
420
|
}
|
|
421
421
|
return !0;
|
|
@@ -427,7 +427,7 @@ var it = at();
|
|
|
427
427
|
const lt = /* @__PURE__ */ nt(it);
|
|
428
428
|
function oo(e) {
|
|
429
429
|
let t = e, o;
|
|
430
|
-
const
|
|
430
|
+
const r = se({
|
|
431
431
|
fields: structuredClone(e),
|
|
432
432
|
errors: {},
|
|
433
433
|
dirty: !1,
|
|
@@ -435,7 +435,7 @@ function oo(e) {
|
|
|
435
435
|
processing: !1,
|
|
436
436
|
wasSuccessful: !1,
|
|
437
437
|
recentlySuccessful: !1,
|
|
438
|
-
async submit(
|
|
438
|
+
async submit(s, n = {}) {
|
|
439
439
|
if (this.processing) return;
|
|
440
440
|
const a = {
|
|
441
441
|
onBefore: async () => {
|
|
@@ -447,9 +447,9 @@ function oo(e) {
|
|
|
447
447
|
}, 2e3), n.onSuccess && await n.onSuccess(i), t = structuredClone(this.fields);
|
|
448
448
|
},
|
|
449
449
|
onError: async (i) => {
|
|
450
|
-
var
|
|
451
|
-
this.hasErrors = !0, (((
|
|
452
|
-
message: (
|
|
450
|
+
var l, f, p, g, M;
|
|
451
|
+
this.hasErrors = !0, (((l = i == null ? void 0 : i.response) == null ? void 0 : l.status) === 422 || ((f = i == null ? void 0 : i.response) == null ? void 0 : f.status) === 401) && (this.clearErrors(), this.setErrors({
|
|
452
|
+
message: (p = i == null ? void 0 : i.response) == null ? void 0 : p.data.message,
|
|
453
453
|
...(M = (g = i == null ? void 0 : i.response) == null ? void 0 : g.data) == null ? void 0 : M.errors
|
|
454
454
|
})), n.onError && await n.onError(i);
|
|
455
455
|
},
|
|
@@ -459,7 +459,7 @@ function oo(e) {
|
|
|
459
459
|
};
|
|
460
460
|
await a.onBefore();
|
|
461
461
|
try {
|
|
462
|
-
const i = await
|
|
462
|
+
const i = await s(this.fields);
|
|
463
463
|
await a.onSuccess(i);
|
|
464
464
|
} catch (i) {
|
|
465
465
|
await a.onError(i);
|
|
@@ -467,109 +467,109 @@ function oo(e) {
|
|
|
467
467
|
await a.onFinish();
|
|
468
468
|
}
|
|
469
469
|
},
|
|
470
|
-
reset(...
|
|
470
|
+
reset(...s) {
|
|
471
471
|
const n = structuredClone(t);
|
|
472
|
-
|
|
472
|
+
s.length === 0 ? this.fields = n : s.forEach((a) => {
|
|
473
473
|
n[a] !== void 0 && (this.fields[a] = n[a]);
|
|
474
474
|
});
|
|
475
475
|
},
|
|
476
|
-
clearErrors(...
|
|
477
|
-
|
|
476
|
+
clearErrors(...s) {
|
|
477
|
+
s.length === 0 ? this.errors = {} : s.forEach((n) => delete this.errors[n]), this.hasErrors = Object.keys(this.errors).length > 0;
|
|
478
478
|
},
|
|
479
|
-
setErrors(
|
|
480
|
-
this.errors = { ...this.errors, ...
|
|
479
|
+
setErrors(s) {
|
|
480
|
+
this.errors = { ...this.errors, ...s }, this.hasErrors = Object.keys(this.errors).length > 0;
|
|
481
481
|
}
|
|
482
482
|
});
|
|
483
483
|
return J(
|
|
484
|
-
() =>
|
|
484
|
+
() => r.fields,
|
|
485
485
|
() => {
|
|
486
|
-
|
|
486
|
+
r.dirty = !lt(r.fields, t);
|
|
487
487
|
},
|
|
488
488
|
{ immediate: !0, deep: !0 }
|
|
489
|
-
),
|
|
489
|
+
), r;
|
|
490
490
|
}
|
|
491
|
-
function so({ duration: e, isPaused: t, onTimeout: o, immediate:
|
|
492
|
-
const
|
|
491
|
+
function so({ duration: e, isPaused: t, onTimeout: o, immediate: r = !0 }) {
|
|
492
|
+
const s = y(), n = y(0), a = y(e);
|
|
493
493
|
function i() {
|
|
494
|
-
a.value === 1 / 0 || t() || (n.value = Date.now(),
|
|
494
|
+
a.value === 1 / 0 || t() || (n.value = Date.now(), s.value = window.setTimeout(() => {
|
|
495
495
|
o();
|
|
496
496
|
}, a.value));
|
|
497
497
|
}
|
|
498
|
-
function
|
|
499
|
-
|
|
500
|
-
const
|
|
501
|
-
a.value -=
|
|
498
|
+
function l() {
|
|
499
|
+
f();
|
|
500
|
+
const p = Date.now() - n.value;
|
|
501
|
+
a.value -= p;
|
|
502
502
|
}
|
|
503
|
-
function
|
|
504
|
-
|
|
503
|
+
function f() {
|
|
504
|
+
s.value && (clearTimeout(s.value), s.value = null);
|
|
505
505
|
}
|
|
506
506
|
return J(
|
|
507
507
|
t,
|
|
508
|
-
(
|
|
509
|
-
if (
|
|
510
|
-
|
|
508
|
+
(p) => {
|
|
509
|
+
if (p) {
|
|
510
|
+
l();
|
|
511
511
|
return;
|
|
512
512
|
}
|
|
513
513
|
i();
|
|
514
514
|
},
|
|
515
|
-
{ immediate:
|
|
515
|
+
{ immediate: r }
|
|
516
516
|
), tt(() => {
|
|
517
|
-
|
|
518
|
-
}), { cancel:
|
|
517
|
+
f();
|
|
518
|
+
}), { cancel: f };
|
|
519
519
|
}
|
|
520
520
|
const ro = 3, no = "24px", ao = "16px", io = 0, lo = 3e3, co = 16, uo = 45, mo = 10, fo = 0.06, po = 16, Ce = 4, Ee = 6;
|
|
521
|
-
function ho({ directions: e, swipeThreshold: t, velocityThreshold: o, getElementSize:
|
|
522
|
-
const n = y(!1), a = y({ x: 0, y: 0 }), i = y({ x: 0, y: 0 }),
|
|
521
|
+
function ho({ directions: e, swipeThreshold: t, velocityThreshold: o, getElementSize: r, onSwipeOut: s }) {
|
|
522
|
+
const n = y(!1), a = y({ x: 0, y: 0 }), i = y({ x: 0, y: 0 }), l = y({ x: 0, y: 0 }), f = y(), p = ue(() => A(e.value)), g = y(null);
|
|
523
523
|
function M(w) {
|
|
524
524
|
return 1 / (1.5 + Math.abs(w) / 20);
|
|
525
525
|
}
|
|
526
|
-
function R(w,
|
|
527
|
-
return Math.min(
|
|
526
|
+
function R(w, c) {
|
|
527
|
+
return Math.min(c.maxDelta, Math.max(c.minDelta, w));
|
|
528
528
|
}
|
|
529
529
|
function k(w) {
|
|
530
|
-
const
|
|
531
|
-
return
|
|
530
|
+
const c = p.value[w];
|
|
531
|
+
return c.minDelta !== 0 || c.maxDelta !== 0;
|
|
532
532
|
}
|
|
533
533
|
function A(w) {
|
|
534
|
-
const
|
|
534
|
+
const c = {
|
|
535
535
|
x: { minDelta: 0, maxDelta: 0 },
|
|
536
536
|
y: { minDelta: 0, maxDelta: 0 }
|
|
537
537
|
};
|
|
538
538
|
for (const v of w)
|
|
539
|
-
v === "left" && (
|
|
540
|
-
return
|
|
539
|
+
v === "left" && (c.x.minDelta = -1 / 0), v === "right" && (c.x.maxDelta = 1 / 0), v === "top" && (c.y.minDelta = -1 / 0), v === "bottom" && (c.y.maxDelta = 1 / 0);
|
|
540
|
+
return c;
|
|
541
541
|
}
|
|
542
542
|
function F(w) {
|
|
543
|
-
const
|
|
544
|
-
return k(
|
|
543
|
+
const c = Math.abs(w.x) > Math.abs(w.y) ? "x" : "y";
|
|
544
|
+
return k(c) ? c : null;
|
|
545
545
|
}
|
|
546
546
|
function O(w) {
|
|
547
|
-
return t.px ? t.px : w && t.percent &&
|
|
547
|
+
return t.px ? t.px : w && t.percent && r ? r(w) * t.percent : 1 / 0;
|
|
548
548
|
}
|
|
549
549
|
function G(w) {
|
|
550
|
-
w.target.closest("button, a, input, textarea, select") || (
|
|
550
|
+
w.target.closest("button, a, input, textarea, select") || (f.value = Date.now(), w.target.setPointerCapture(w.pointerId), i.value = { x: w.clientX, y: w.clientY }, n.value = !0);
|
|
551
551
|
}
|
|
552
552
|
function z(w) {
|
|
553
553
|
if (!n.value) return;
|
|
554
|
-
const
|
|
555
|
-
if (
|
|
556
|
-
if (
|
|
554
|
+
const c = { x: 0, y: 0 }, v = { x: w.clientX - i.value.x, y: w.clientY - i.value.y };
|
|
555
|
+
if (l.value.x = Math.max(l.value.x, Math.abs(v.x)), l.value.y = Math.max(l.value.y, Math.abs(v.y)), !g.value && (Math.abs(v.x) > Ce || Math.abs(v.y) > Ce) && (g.value = F(v)), !!g.value) {
|
|
556
|
+
if (c[g.value] = R(v[g.value], p.value[g.value]), c[g.value] === 0 && v[g.value] !== 0) {
|
|
557
557
|
const V = v[g.value] * M(v[g.value]);
|
|
558
|
-
|
|
558
|
+
c[g.value] = Math.abs(V) < Math.abs(v[g.value]) ? V : v[g.value];
|
|
559
559
|
}
|
|
560
|
-
a.value =
|
|
560
|
+
a.value = c;
|
|
561
561
|
}
|
|
562
562
|
}
|
|
563
563
|
function N() {
|
|
564
564
|
if (!n.value) return;
|
|
565
|
-
const w = Date.now() - (
|
|
566
|
-
(Math.abs(
|
|
565
|
+
const w = Date.now() - (f.value ?? 0), c = g.value ? a.value[g.value] : 0, v = Math.abs(c) / w;
|
|
566
|
+
(Math.abs(c) >= O(g.value) || v > (o ?? 0.11)) && s(), n.value = !1, g.value = null, a.value = { x: 0, y: 0 };
|
|
567
567
|
}
|
|
568
568
|
function _() {
|
|
569
569
|
n.value = !1, g.value = null, a.value = { x: 0, y: 0 };
|
|
570
570
|
}
|
|
571
571
|
function L() {
|
|
572
|
-
return
|
|
572
|
+
return l.value.x <= Ee && l.value.y <= Ee;
|
|
573
573
|
}
|
|
574
574
|
return {
|
|
575
575
|
offset: a,
|
|
@@ -597,18 +597,20 @@ function vo() {
|
|
|
597
597
|
}
|
|
598
598
|
let pe = null;
|
|
599
599
|
function dt() {
|
|
600
|
-
const e = y(!1), t = y(!1), o = y(200),
|
|
601
|
-
function a(
|
|
602
|
-
|
|
600
|
+
const e = y(!1), t = y(!1), o = y(200), r = y(null), s = ge({}), n = ge(null);
|
|
601
|
+
function a(l, f = {}) {
|
|
602
|
+
var p, g;
|
|
603
|
+
t.value && i("programmatic"), r.value && clearTimeout(r.value), s.value = f, n.value = l, t.value = !0, e.value = !0, (g = (p = s.value) == null ? void 0 : p.onOpen) == null || g.call(p), r.value = window.setTimeout(() => {
|
|
603
604
|
e.value = !1;
|
|
604
605
|
}, o.value);
|
|
605
606
|
}
|
|
606
|
-
function i() {
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
607
|
+
function i(l) {
|
|
608
|
+
var f, p;
|
|
609
|
+
r.value && clearTimeout(r.value), !(l !== "programmatic" && s.value.preventClose) && (l === "escape" && !(s.value.closeOnEsc ?? !0) || l === "user" && !(s.value.closeOnBackdrop ?? !0) || (t.value = !1, e.value = !0, (p = (f = s.value) == null ? void 0 : f.onClose) == null || p.call(f), r.value = window.setTimeout(() => {
|
|
610
|
+
e.value = !1, n.value = null, s.value = {};
|
|
611
|
+
}, o.value)));
|
|
610
612
|
}
|
|
611
|
-
return { isOpen: Pe(t), isAnimating: Pe(e), animationTime: o, props:
|
|
613
|
+
return { isOpen: Pe(t), isAnimating: Pe(e), animationTime: o, props: s, component: n, open: a, close: i };
|
|
612
614
|
}
|
|
613
615
|
function ve() {
|
|
614
616
|
return pe || (pe = dt()), pe;
|
|
@@ -618,7 +620,7 @@ function wo() {
|
|
|
618
620
|
}
|
|
619
621
|
const yo = {
|
|
620
622
|
open: (e, t) => ve().open(e, t),
|
|
621
|
-
close: () => ve().close()
|
|
623
|
+
close: (e) => ve().close(e)
|
|
622
624
|
}, mt = {
|
|
623
625
|
stringInsensitive: (e, t) => Oe(e).localeCompare(Oe(t)),
|
|
624
626
|
date: (e, t) => new Date(e).getTime() - new Date(t).getTime(),
|
|
@@ -628,37 +630,37 @@ function Oe(e) {
|
|
|
628
630
|
return String(e ?? "").toLowerCase().replace(/\s+/g, " ").trim();
|
|
629
631
|
}
|
|
630
632
|
function xo(e, t = 1, o = ["date", "date_released"]) {
|
|
631
|
-
return (
|
|
632
|
-
const n =
|
|
633
|
+
return (r, s) => {
|
|
634
|
+
const n = r[e], a = s[e];
|
|
633
635
|
if (n instanceof Date && a instanceof Date || o.includes(String(e))) {
|
|
634
|
-
const
|
|
635
|
-
return (new Date(String(a)).getTime() -
|
|
636
|
+
const f = new Date(String(n));
|
|
637
|
+
return (new Date(String(a)).getTime() - f.getTime()) * t;
|
|
636
638
|
}
|
|
637
|
-
const i = parseFloat(n),
|
|
638
|
-
return !isNaN(i) && !isNaN(
|
|
639
|
+
const i = parseFloat(n), l = parseFloat(a);
|
|
640
|
+
return !isNaN(i) && !isNaN(l) ? (i - l) * t : String(n).toLowerCase().replace(/\s+/g, " ").localeCompare(String(a).toLowerCase().replace(/\s+/g, " ")) * t;
|
|
639
641
|
};
|
|
640
642
|
}
|
|
641
643
|
function ko(e, t = 1) {
|
|
642
|
-
return (o,
|
|
643
|
-
for (const { key:
|
|
644
|
-
const a =
|
|
645
|
-
let
|
|
646
|
-
if (n ?
|
|
644
|
+
return (o, r) => {
|
|
645
|
+
for (const { key: s, compareFn: n } of e) {
|
|
646
|
+
const a = s ? o[s] ?? "" : void 0, i = s ? r[s] ?? "" : void 0;
|
|
647
|
+
let l;
|
|
648
|
+
if (n ? l = s ? n(a, i) : n(o, r) : l = ft(a, i), l !== 0) return l * t;
|
|
647
649
|
}
|
|
648
650
|
return 0;
|
|
649
651
|
};
|
|
650
652
|
}
|
|
651
653
|
function ft(e, t) {
|
|
652
|
-
const o = parseFloat(e),
|
|
653
|
-
if (!isNaN(o) && !isNaN(
|
|
654
|
-
return o -
|
|
655
|
-
const
|
|
656
|
-
return !isNaN(
|
|
654
|
+
const o = parseFloat(e), r = parseFloat(t);
|
|
655
|
+
if (!isNaN(o) && !isNaN(r))
|
|
656
|
+
return o - r;
|
|
657
|
+
const s = new Date(e), n = new Date(t);
|
|
658
|
+
return !isNaN(s.getTime()) && !isNaN(n.getTime()) ? s.getTime() - n.getTime() : mt.stringInsensitive(e, t);
|
|
657
659
|
}
|
|
658
660
|
const Te = "-", pt = (e) => {
|
|
659
661
|
const t = bt(e), {
|
|
660
662
|
conflictingClassGroups: o,
|
|
661
|
-
conflictingClassGroupModifiers:
|
|
663
|
+
conflictingClassGroupModifiers: r
|
|
662
664
|
} = e;
|
|
663
665
|
return {
|
|
664
666
|
getClassGroupId: (a) => {
|
|
@@ -666,17 +668,17 @@ const Te = "-", pt = (e) => {
|
|
|
666
668
|
return i[0] === "" && i.length !== 1 && i.shift(), Ve(i, t) || ht(a);
|
|
667
669
|
},
|
|
668
670
|
getConflictingClassGroupIds: (a, i) => {
|
|
669
|
-
const
|
|
670
|
-
return i &&
|
|
671
|
+
const l = o[a] || [];
|
|
672
|
+
return i && r[a] ? [...l, ...r[a]] : l;
|
|
671
673
|
}
|
|
672
674
|
};
|
|
673
675
|
}, Ve = (e, t) => {
|
|
674
676
|
var a;
|
|
675
677
|
if (e.length === 0)
|
|
676
678
|
return t.classGroupId;
|
|
677
|
-
const o = e[0],
|
|
678
|
-
if (
|
|
679
|
-
return
|
|
679
|
+
const o = e[0], r = t.nextPart.get(o), s = r ? Ve(e.slice(1), r) : void 0;
|
|
680
|
+
if (s)
|
|
681
|
+
return s;
|
|
680
682
|
if (t.validators.length === 0)
|
|
681
683
|
return;
|
|
682
684
|
const n = e.join(Te);
|
|
@@ -693,42 +695,42 @@ const Te = "-", pt = (e) => {
|
|
|
693
695
|
const {
|
|
694
696
|
theme: t,
|
|
695
697
|
classGroups: o
|
|
696
|
-
} = e,
|
|
698
|
+
} = e, r = {
|
|
697
699
|
nextPart: /* @__PURE__ */ new Map(),
|
|
698
700
|
validators: []
|
|
699
701
|
};
|
|
700
|
-
for (const
|
|
701
|
-
we(o[
|
|
702
|
-
return
|
|
703
|
-
}, we = (e, t, o,
|
|
704
|
-
e.forEach((
|
|
705
|
-
if (typeof
|
|
706
|
-
const n =
|
|
702
|
+
for (const s in o)
|
|
703
|
+
we(o[s], r, s, t);
|
|
704
|
+
return r;
|
|
705
|
+
}, we = (e, t, o, r) => {
|
|
706
|
+
e.forEach((s) => {
|
|
707
|
+
if (typeof s == "string") {
|
|
708
|
+
const n = s === "" ? t : Le(t, s);
|
|
707
709
|
n.classGroupId = o;
|
|
708
710
|
return;
|
|
709
711
|
}
|
|
710
|
-
if (typeof
|
|
711
|
-
if (gt(
|
|
712
|
-
we(r
|
|
712
|
+
if (typeof s == "function") {
|
|
713
|
+
if (gt(s)) {
|
|
714
|
+
we(s(r), t, o, r);
|
|
713
715
|
return;
|
|
714
716
|
}
|
|
715
717
|
t.validators.push({
|
|
716
|
-
validator:
|
|
718
|
+
validator: s,
|
|
717
719
|
classGroupId: o
|
|
718
720
|
});
|
|
719
721
|
return;
|
|
720
722
|
}
|
|
721
|
-
Object.entries(
|
|
722
|
-
we(a, Le(t, n), o,
|
|
723
|
+
Object.entries(s).forEach(([n, a]) => {
|
|
724
|
+
we(a, Le(t, n), o, r);
|
|
723
725
|
});
|
|
724
726
|
});
|
|
725
727
|
}, Le = (e, t) => {
|
|
726
728
|
let o = e;
|
|
727
|
-
return t.split(Te).forEach((
|
|
728
|
-
o.nextPart.has(
|
|
729
|
+
return t.split(Te).forEach((r) => {
|
|
730
|
+
o.nextPart.has(r) || o.nextPart.set(r, {
|
|
729
731
|
nextPart: /* @__PURE__ */ new Map(),
|
|
730
732
|
validators: []
|
|
731
|
-
}), o = o.nextPart.get(
|
|
733
|
+
}), o = o.nextPart.get(r);
|
|
732
734
|
}), o;
|
|
733
735
|
}, gt = (e) => e.isThemeGetter, vt = (e) => {
|
|
734
736
|
if (e < 1)
|
|
@@ -738,20 +740,20 @@ const Te = "-", pt = (e) => {
|
|
|
738
740
|
set: () => {
|
|
739
741
|
}
|
|
740
742
|
};
|
|
741
|
-
let t = 0, o = /* @__PURE__ */ new Map(),
|
|
742
|
-
const
|
|
743
|
-
o.set(n, a), t++, t > e && (t = 0,
|
|
743
|
+
let t = 0, o = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map();
|
|
744
|
+
const s = (n, a) => {
|
|
745
|
+
o.set(n, a), t++, t > e && (t = 0, r = o, o = /* @__PURE__ */ new Map());
|
|
744
746
|
};
|
|
745
747
|
return {
|
|
746
748
|
get(n) {
|
|
747
749
|
let a = o.get(n);
|
|
748
750
|
if (a !== void 0)
|
|
749
751
|
return a;
|
|
750
|
-
if ((a =
|
|
751
|
-
return
|
|
752
|
+
if ((a = r.get(n)) !== void 0)
|
|
753
|
+
return s(n, a), a;
|
|
752
754
|
},
|
|
753
755
|
set(n, a) {
|
|
754
|
-
o.has(n) ? o.set(n, a) :
|
|
756
|
+
o.has(n) ? o.set(n, a) : s(n, a);
|
|
755
757
|
}
|
|
756
758
|
};
|
|
757
759
|
}, ye = "!", xe = ":", wt = xe.length, yt = (e) => {
|
|
@@ -759,24 +761,24 @@ const Te = "-", pt = (e) => {
|
|
|
759
761
|
prefix: t,
|
|
760
762
|
experimentalParseClassName: o
|
|
761
763
|
} = e;
|
|
762
|
-
let
|
|
764
|
+
let r = (s) => {
|
|
763
765
|
const n = [];
|
|
764
|
-
let a = 0, i = 0,
|
|
765
|
-
for (let k = 0; k <
|
|
766
|
-
let A =
|
|
766
|
+
let a = 0, i = 0, l = 0, f;
|
|
767
|
+
for (let k = 0; k < s.length; k++) {
|
|
768
|
+
let A = s[k];
|
|
767
769
|
if (a === 0 && i === 0) {
|
|
768
770
|
if (A === xe) {
|
|
769
|
-
n.push(
|
|
771
|
+
n.push(s.slice(l, k)), l = k + wt;
|
|
770
772
|
continue;
|
|
771
773
|
}
|
|
772
774
|
if (A === "/") {
|
|
773
|
-
|
|
775
|
+
f = k;
|
|
774
776
|
continue;
|
|
775
777
|
}
|
|
776
778
|
}
|
|
777
779
|
A === "[" ? a++ : A === "]" ? a-- : A === "(" ? i++ : A === ")" && i--;
|
|
778
780
|
}
|
|
779
|
-
const
|
|
781
|
+
const p = n.length === 0 ? s : s.substring(l), g = xt(p), M = g !== p, R = f && f > l ? f - l : void 0;
|
|
780
782
|
return {
|
|
781
783
|
modifiers: n,
|
|
782
784
|
hasImportantModifier: M,
|
|
@@ -785,8 +787,8 @@ const Te = "-", pt = (e) => {
|
|
|
785
787
|
};
|
|
786
788
|
};
|
|
787
789
|
if (t) {
|
|
788
|
-
const
|
|
789
|
-
|
|
790
|
+
const s = t + xe, n = r;
|
|
791
|
+
r = (a) => a.startsWith(s) ? n(a.substring(s.length)) : {
|
|
790
792
|
isExternal: !0,
|
|
791
793
|
modifiers: [],
|
|
792
794
|
hasImportantModifier: !1,
|
|
@@ -795,23 +797,23 @@ const Te = "-", pt = (e) => {
|
|
|
795
797
|
};
|
|
796
798
|
}
|
|
797
799
|
if (o) {
|
|
798
|
-
const
|
|
799
|
-
|
|
800
|
+
const s = r;
|
|
801
|
+
r = (n) => o({
|
|
800
802
|
className: n,
|
|
801
|
-
parseClassName:
|
|
803
|
+
parseClassName: s
|
|
802
804
|
});
|
|
803
805
|
}
|
|
804
|
-
return
|
|
806
|
+
return r;
|
|
805
807
|
}, xt = (e) => e.endsWith(ye) ? e.substring(0, e.length - 1) : e.startsWith(ye) ? e.substring(1) : e, kt = (e) => {
|
|
806
|
-
const t = Object.fromEntries(e.orderSensitiveModifiers.map((
|
|
807
|
-
return (
|
|
808
|
-
if (
|
|
809
|
-
return
|
|
810
|
-
const
|
|
808
|
+
const t = Object.fromEntries(e.orderSensitiveModifiers.map((r) => [r, !0]));
|
|
809
|
+
return (r) => {
|
|
810
|
+
if (r.length <= 1)
|
|
811
|
+
return r;
|
|
812
|
+
const s = [];
|
|
811
813
|
let n = [];
|
|
812
|
-
return
|
|
813
|
-
a[0] === "[" || t[a] ? (
|
|
814
|
-
}),
|
|
814
|
+
return r.forEach((a) => {
|
|
815
|
+
a[0] === "[" || t[a] ? (s.push(...n.sort(), a), n = []) : n.push(a);
|
|
816
|
+
}), s.push(...n.sort()), s;
|
|
815
817
|
};
|
|
816
818
|
}, It = (e) => ({
|
|
817
819
|
cache: vt(e.cacheSize),
|
|
@@ -821,31 +823,31 @@ const Te = "-", pt = (e) => {
|
|
|
821
823
|
}), Tt = /\s+/, St = (e, t) => {
|
|
822
824
|
const {
|
|
823
825
|
parseClassName: o,
|
|
824
|
-
getClassGroupId:
|
|
825
|
-
getConflictingClassGroupIds:
|
|
826
|
+
getClassGroupId: r,
|
|
827
|
+
getConflictingClassGroupIds: s,
|
|
826
828
|
sortModifiers: n
|
|
827
829
|
} = t, a = [], i = e.trim().split(Tt);
|
|
828
|
-
let
|
|
829
|
-
for (let
|
|
830
|
-
const
|
|
830
|
+
let l = "";
|
|
831
|
+
for (let f = i.length - 1; f >= 0; f -= 1) {
|
|
832
|
+
const p = i[f], {
|
|
831
833
|
isExternal: g,
|
|
832
834
|
modifiers: M,
|
|
833
835
|
hasImportantModifier: R,
|
|
834
836
|
baseClassName: k,
|
|
835
837
|
maybePostfixModifierPosition: A
|
|
836
|
-
} = o(
|
|
838
|
+
} = o(p);
|
|
837
839
|
if (g) {
|
|
838
|
-
|
|
840
|
+
l = p + (l.length > 0 ? " " + l : l);
|
|
839
841
|
continue;
|
|
840
842
|
}
|
|
841
|
-
let F = !!A, O =
|
|
843
|
+
let F = !!A, O = r(F ? k.substring(0, A) : k);
|
|
842
844
|
if (!O) {
|
|
843
845
|
if (!F) {
|
|
844
|
-
|
|
846
|
+
l = p + (l.length > 0 ? " " + l : l);
|
|
845
847
|
continue;
|
|
846
848
|
}
|
|
847
|
-
if (O =
|
|
848
|
-
|
|
849
|
+
if (O = r(k), !O) {
|
|
850
|
+
l = p + (l.length > 0 ? " " + l : l);
|
|
849
851
|
continue;
|
|
850
852
|
}
|
|
851
853
|
F = !1;
|
|
@@ -854,41 +856,41 @@ const Te = "-", pt = (e) => {
|
|
|
854
856
|
if (a.includes(N))
|
|
855
857
|
continue;
|
|
856
858
|
a.push(N);
|
|
857
|
-
const _ =
|
|
859
|
+
const _ = s(O, F);
|
|
858
860
|
for (let L = 0; L < _.length; ++L) {
|
|
859
861
|
const w = _[L];
|
|
860
862
|
a.push(z + w);
|
|
861
863
|
}
|
|
862
|
-
|
|
864
|
+
l = p + (l.length > 0 ? " " + l : l);
|
|
863
865
|
}
|
|
864
|
-
return
|
|
866
|
+
return l;
|
|
865
867
|
};
|
|
866
868
|
function Mt() {
|
|
867
|
-
let e = 0, t, o,
|
|
869
|
+
let e = 0, t, o, r = "";
|
|
868
870
|
for (; e < arguments.length; )
|
|
869
|
-
(t = arguments[e++]) && (o = $e(t)) && (
|
|
870
|
-
return
|
|
871
|
+
(t = arguments[e++]) && (o = $e(t)) && (r && (r += " "), r += o);
|
|
872
|
+
return r;
|
|
871
873
|
}
|
|
872
874
|
const $e = (e) => {
|
|
873
875
|
if (typeof e == "string")
|
|
874
876
|
return e;
|
|
875
877
|
let t, o = "";
|
|
876
|
-
for (let
|
|
877
|
-
e[
|
|
878
|
+
for (let r = 0; r < e.length; r++)
|
|
879
|
+
e[r] && (t = $e(e[r])) && (o && (o += " "), o += t);
|
|
878
880
|
return o;
|
|
879
881
|
};
|
|
880
882
|
function At(e, ...t) {
|
|
881
|
-
let o,
|
|
882
|
-
function a(
|
|
883
|
-
const
|
|
884
|
-
return o = It(
|
|
883
|
+
let o, r, s, n = a;
|
|
884
|
+
function a(l) {
|
|
885
|
+
const f = t.reduce((p, g) => g(p), e());
|
|
886
|
+
return o = It(f), r = o.cache.get, s = o.cache.set, n = i, i(l);
|
|
885
887
|
}
|
|
886
|
-
function i(
|
|
887
|
-
const
|
|
888
|
-
if (
|
|
889
|
-
return
|
|
890
|
-
const
|
|
891
|
-
return
|
|
888
|
+
function i(l) {
|
|
889
|
+
const f = r(l);
|
|
890
|
+
if (f)
|
|
891
|
+
return f;
|
|
892
|
+
const p = St(l, o);
|
|
893
|
+
return s(l, p), p;
|
|
892
894
|
}
|
|
893
895
|
return function() {
|
|
894
896
|
return n(Mt.apply(null, arguments));
|
|
@@ -897,19 +899,19 @@ function At(e, ...t) {
|
|
|
897
899
|
const T = (e) => {
|
|
898
900
|
const t = (o) => o[e] || [];
|
|
899
901
|
return t.isThemeGetter = !0, t;
|
|
900
|
-
}, Ge = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Ye = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Pt = /^\d+\/\d+$/, Dt = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Ct = /\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$/, Et = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Ot = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, zt = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, W = (e) => Pt.test(e),
|
|
902
|
+
}, Ge = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Ye = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Pt = /^\d+\/\d+$/, Dt = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Ct = /\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$/, Et = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Ot = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, zt = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, W = (e) => Pt.test(e), b = (e) => !!e && !Number.isNaN(Number(e)), Y = (e) => !!e && Number.isInteger(Number(e)), he = (e) => e.endsWith("%") && b(e.slice(0, -1)), $ = (e) => Dt.test(e), Lt = () => !0, Bt = (e) => (
|
|
901
903
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
902
904
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
903
905
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
904
906
|
Ct.test(e) && !Et.test(e)
|
|
905
|
-
), je = () => !1, Rt = (e) => Ot.test(e), Ft = (e) => zt.test(e), Nt = (e) => !u(e) && !d(e), _t = (e) => X(e, Ue, je), u = (e) => Ge.test(e), K = (e) => X(e, We, Bt), be = (e) => X(e, jt,
|
|
906
|
-
const
|
|
907
|
-
return
|
|
907
|
+
), je = () => !1, Rt = (e) => Ot.test(e), Ft = (e) => zt.test(e), Nt = (e) => !u(e) && !d(e), _t = (e) => X(e, Ue, je), u = (e) => Ge.test(e), K = (e) => X(e, We, Bt), be = (e) => X(e, jt, b), Be = (e) => X(e, Ke, je), Vt = (e) => X(e, He, Ft), le = (e) => X(e, qe, Rt), d = (e) => Ye.test(e), te = (e) => Z(e, We), $t = (e) => Z(e, Kt), Re = (e) => Z(e, Ke), Gt = (e) => Z(e, Ue), Yt = (e) => Z(e, He), ce = (e) => Z(e, qe, !0), X = (e, t, o) => {
|
|
908
|
+
const r = Ge.exec(e);
|
|
909
|
+
return r ? r[1] ? t(r[1]) : o(r[2]) : !1;
|
|
908
910
|
}, Z = (e, t, o = !1) => {
|
|
909
|
-
const
|
|
910
|
-
return
|
|
911
|
+
const r = Ye.exec(e);
|
|
912
|
+
return r ? r[1] ? t(r[1]) : o : !1;
|
|
911
913
|
}, Ke = (e) => e === "position" || e === "percentage", He = (e) => e === "image" || e === "url", Ue = (e) => e === "length" || e === "size" || e === "bg-size", We = (e) => e === "length", jt = (e) => e === "number", Kt = (e) => e === "family-name", qe = (e) => e === "shadow", Ht = () => {
|
|
912
|
-
const e = T("color"), t = T("font"), o = T("text"),
|
|
914
|
+
const e = T("color"), t = T("font"), o = T("text"), r = T("font-weight"), s = T("tracking"), n = T("leading"), a = T("breakpoint"), i = T("container"), l = T("spacing"), f = T("radius"), p = T("shadow"), g = T("inset-shadow"), M = T("text-shadow"), R = T("drop-shadow"), k = T("blur"), A = T("perspective"), F = T("aspect"), O = T("ease"), G = T("animate"), z = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], N = () => [
|
|
913
915
|
"center",
|
|
914
916
|
"top",
|
|
915
917
|
"bottom",
|
|
@@ -927,9 +929,9 @@ const T = (e) => {
|
|
|
927
929
|
"bottom-left",
|
|
928
930
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
929
931
|
"left-bottom"
|
|
930
|
-
], _ = () => [...N(), d, u], L = () => ["auto", "hidden", "clip", "visible", "scroll"], w = () => ["auto", "contain", "none"],
|
|
932
|
+
], _ = () => [...N(), d, u], L = () => ["auto", "hidden", "clip", "visible", "scroll"], w = () => ["auto", "contain", "none"], c = () => [d, u, l], v = () => [W, "full", "auto", ...c()], V = () => [Y, "none", "subgrid", d, u], Q = () => ["auto", {
|
|
931
933
|
span: ["full", Y, d, u]
|
|
932
|
-
}, Y, d, u], j = () => [Y, "auto", d, u], ee = () => ["auto", "min", "max", "fr", d, u],
|
|
934
|
+
}, Y, d, u], j = () => [Y, "auto", d, u], ee = () => ["auto", "min", "max", "fr", d, u], h = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], I = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], x = () => ["auto", ...c()], P = () => [W, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...c()], m = () => [e, d, u], U = () => [...N(), Re, Be, {
|
|
933
935
|
position: [d, u]
|
|
934
936
|
}], B = () => ["no-repeat", {
|
|
935
937
|
repeat: ["", "x", "y", "space", "round"]
|
|
@@ -940,17 +942,17 @@ const T = (e) => {
|
|
|
940
942
|
"",
|
|
941
943
|
"none",
|
|
942
944
|
"full",
|
|
943
|
-
|
|
945
|
+
f,
|
|
944
946
|
d,
|
|
945
947
|
u
|
|
946
|
-
], C = () => ["",
|
|
948
|
+
], C = () => ["", b, te, K], re = () => ["solid", "dashed", "dotted", "double"], Me = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], S = () => [b, he, Re, Be], Ae = () => [
|
|
947
949
|
// Deprecated since Tailwind CSS v4.0.0
|
|
948
950
|
"",
|
|
949
951
|
"none",
|
|
950
952
|
k,
|
|
951
953
|
d,
|
|
952
954
|
u
|
|
953
|
-
], ne = () => ["none",
|
|
955
|
+
], ne = () => ["none", b, d, u], ae = () => ["none", b, d, u], me = () => [b, d, u], ie = () => [W, "full", ...c()];
|
|
954
956
|
return {
|
|
955
957
|
cacheSize: 500,
|
|
956
958
|
theme: {
|
|
@@ -969,7 +971,7 @@ const T = (e) => {
|
|
|
969
971
|
perspective: ["dramatic", "near", "normal", "midrange", "distant", "none"],
|
|
970
972
|
radius: [$],
|
|
971
973
|
shadow: [$],
|
|
972
|
-
spacing: ["px",
|
|
974
|
+
spacing: ["px", b],
|
|
973
975
|
text: [$],
|
|
974
976
|
"text-shadow": [$],
|
|
975
977
|
tracking: ["tighter", "tight", "normal", "wide", "wider", "widest"]
|
|
@@ -996,7 +998,7 @@ const T = (e) => {
|
|
|
996
998
|
* @see https://tailwindcss.com/docs/columns
|
|
997
999
|
*/
|
|
998
1000
|
columns: [{
|
|
999
|
-
columns: [
|
|
1001
|
+
columns: [b, u, d, i]
|
|
1000
1002
|
}],
|
|
1001
1003
|
/**
|
|
1002
1004
|
* Break After
|
|
@@ -1206,7 +1208,7 @@ const T = (e) => {
|
|
|
1206
1208
|
* @see https://tailwindcss.com/docs/flex-basis
|
|
1207
1209
|
*/
|
|
1208
1210
|
basis: [{
|
|
1209
|
-
basis: [W, "full", "auto", i, ...
|
|
1211
|
+
basis: [W, "full", "auto", i, ...c()]
|
|
1210
1212
|
}],
|
|
1211
1213
|
/**
|
|
1212
1214
|
* Flex Direction
|
|
@@ -1227,21 +1229,21 @@ const T = (e) => {
|
|
|
1227
1229
|
* @see https://tailwindcss.com/docs/flex
|
|
1228
1230
|
*/
|
|
1229
1231
|
flex: [{
|
|
1230
|
-
flex: [
|
|
1232
|
+
flex: [b, W, "auto", "initial", "none", u]
|
|
1231
1233
|
}],
|
|
1232
1234
|
/**
|
|
1233
1235
|
* Flex Grow
|
|
1234
1236
|
* @see https://tailwindcss.com/docs/flex-grow
|
|
1235
1237
|
*/
|
|
1236
1238
|
grow: [{
|
|
1237
|
-
grow: ["",
|
|
1239
|
+
grow: ["", b, d, u]
|
|
1238
1240
|
}],
|
|
1239
1241
|
/**
|
|
1240
1242
|
* Flex Shrink
|
|
1241
1243
|
* @see https://tailwindcss.com/docs/flex-shrink
|
|
1242
1244
|
*/
|
|
1243
1245
|
shrink: [{
|
|
1244
|
-
shrink: ["",
|
|
1246
|
+
shrink: ["", b, d, u]
|
|
1245
1247
|
}],
|
|
1246
1248
|
/**
|
|
1247
1249
|
* Order
|
|
@@ -1332,28 +1334,28 @@ const T = (e) => {
|
|
|
1332
1334
|
* @see https://tailwindcss.com/docs/gap
|
|
1333
1335
|
*/
|
|
1334
1336
|
gap: [{
|
|
1335
|
-
gap:
|
|
1337
|
+
gap: c()
|
|
1336
1338
|
}],
|
|
1337
1339
|
/**
|
|
1338
1340
|
* Gap X
|
|
1339
1341
|
* @see https://tailwindcss.com/docs/gap
|
|
1340
1342
|
*/
|
|
1341
1343
|
"gap-x": [{
|
|
1342
|
-
"gap-x":
|
|
1344
|
+
"gap-x": c()
|
|
1343
1345
|
}],
|
|
1344
1346
|
/**
|
|
1345
1347
|
* Gap Y
|
|
1346
1348
|
* @see https://tailwindcss.com/docs/gap
|
|
1347
1349
|
*/
|
|
1348
1350
|
"gap-y": [{
|
|
1349
|
-
"gap-y":
|
|
1351
|
+
"gap-y": c()
|
|
1350
1352
|
}],
|
|
1351
1353
|
/**
|
|
1352
1354
|
* Justify Content
|
|
1353
1355
|
* @see https://tailwindcss.com/docs/justify-content
|
|
1354
1356
|
*/
|
|
1355
1357
|
"justify-content": [{
|
|
1356
|
-
justify: [...
|
|
1358
|
+
justify: [...h(), "normal"]
|
|
1357
1359
|
}],
|
|
1358
1360
|
/**
|
|
1359
1361
|
* Justify Items
|
|
@@ -1374,7 +1376,7 @@ const T = (e) => {
|
|
|
1374
1376
|
* @see https://tailwindcss.com/docs/align-content
|
|
1375
1377
|
*/
|
|
1376
1378
|
"align-content": [{
|
|
1377
|
-
content: ["normal", ...
|
|
1379
|
+
content: ["normal", ...h()]
|
|
1378
1380
|
}],
|
|
1379
1381
|
/**
|
|
1380
1382
|
* Align Items
|
|
@@ -1399,7 +1401,7 @@ const T = (e) => {
|
|
|
1399
1401
|
* @see https://tailwindcss.com/docs/place-content
|
|
1400
1402
|
*/
|
|
1401
1403
|
"place-content": [{
|
|
1402
|
-
"place-content":
|
|
1404
|
+
"place-content": h()
|
|
1403
1405
|
}],
|
|
1404
1406
|
/**
|
|
1405
1407
|
* Place Items
|
|
@@ -1421,63 +1423,63 @@ const T = (e) => {
|
|
|
1421
1423
|
* @see https://tailwindcss.com/docs/padding
|
|
1422
1424
|
*/
|
|
1423
1425
|
p: [{
|
|
1424
|
-
p:
|
|
1426
|
+
p: c()
|
|
1425
1427
|
}],
|
|
1426
1428
|
/**
|
|
1427
1429
|
* Padding X
|
|
1428
1430
|
* @see https://tailwindcss.com/docs/padding
|
|
1429
1431
|
*/
|
|
1430
1432
|
px: [{
|
|
1431
|
-
px:
|
|
1433
|
+
px: c()
|
|
1432
1434
|
}],
|
|
1433
1435
|
/**
|
|
1434
1436
|
* Padding Y
|
|
1435
1437
|
* @see https://tailwindcss.com/docs/padding
|
|
1436
1438
|
*/
|
|
1437
1439
|
py: [{
|
|
1438
|
-
py:
|
|
1440
|
+
py: c()
|
|
1439
1441
|
}],
|
|
1440
1442
|
/**
|
|
1441
1443
|
* Padding Start
|
|
1442
1444
|
* @see https://tailwindcss.com/docs/padding
|
|
1443
1445
|
*/
|
|
1444
1446
|
ps: [{
|
|
1445
|
-
ps:
|
|
1447
|
+
ps: c()
|
|
1446
1448
|
}],
|
|
1447
1449
|
/**
|
|
1448
1450
|
* Padding End
|
|
1449
1451
|
* @see https://tailwindcss.com/docs/padding
|
|
1450
1452
|
*/
|
|
1451
1453
|
pe: [{
|
|
1452
|
-
pe:
|
|
1454
|
+
pe: c()
|
|
1453
1455
|
}],
|
|
1454
1456
|
/**
|
|
1455
1457
|
* Padding Top
|
|
1456
1458
|
* @see https://tailwindcss.com/docs/padding
|
|
1457
1459
|
*/
|
|
1458
1460
|
pt: [{
|
|
1459
|
-
pt:
|
|
1461
|
+
pt: c()
|
|
1460
1462
|
}],
|
|
1461
1463
|
/**
|
|
1462
1464
|
* Padding Right
|
|
1463
1465
|
* @see https://tailwindcss.com/docs/padding
|
|
1464
1466
|
*/
|
|
1465
1467
|
pr: [{
|
|
1466
|
-
pr:
|
|
1468
|
+
pr: c()
|
|
1467
1469
|
}],
|
|
1468
1470
|
/**
|
|
1469
1471
|
* Padding Bottom
|
|
1470
1472
|
* @see https://tailwindcss.com/docs/padding
|
|
1471
1473
|
*/
|
|
1472
1474
|
pb: [{
|
|
1473
|
-
pb:
|
|
1475
|
+
pb: c()
|
|
1474
1476
|
}],
|
|
1475
1477
|
/**
|
|
1476
1478
|
* Padding Left
|
|
1477
1479
|
* @see https://tailwindcss.com/docs/padding
|
|
1478
1480
|
*/
|
|
1479
1481
|
pl: [{
|
|
1480
|
-
pl:
|
|
1482
|
+
pl: c()
|
|
1481
1483
|
}],
|
|
1482
1484
|
/**
|
|
1483
1485
|
* Margin
|
|
@@ -1547,7 +1549,7 @@ const T = (e) => {
|
|
|
1547
1549
|
* @see https://tailwindcss.com/docs/margin#adding-space-between-children
|
|
1548
1550
|
*/
|
|
1549
1551
|
"space-x": [{
|
|
1550
|
-
"space-x":
|
|
1552
|
+
"space-x": c()
|
|
1551
1553
|
}],
|
|
1552
1554
|
/**
|
|
1553
1555
|
* Space Between X Reverse
|
|
@@ -1559,7 +1561,7 @@ const T = (e) => {
|
|
|
1559
1561
|
* @see https://tailwindcss.com/docs/margin#adding-space-between-children
|
|
1560
1562
|
*/
|
|
1561
1563
|
"space-y": [{
|
|
1562
|
-
"space-y":
|
|
1564
|
+
"space-y": c()
|
|
1563
1565
|
}],
|
|
1564
1566
|
/**
|
|
1565
1567
|
* Space Between Y Reverse
|
|
@@ -1660,7 +1662,7 @@ const T = (e) => {
|
|
|
1660
1662
|
* @see https://tailwindcss.com/docs/font-weight
|
|
1661
1663
|
*/
|
|
1662
1664
|
"font-weight": [{
|
|
1663
|
-
font: [
|
|
1665
|
+
font: [r, d, be]
|
|
1664
1666
|
}],
|
|
1665
1667
|
/**
|
|
1666
1668
|
* Font Stretch
|
|
@@ -1711,14 +1713,14 @@ const T = (e) => {
|
|
|
1711
1713
|
* @see https://tailwindcss.com/docs/letter-spacing
|
|
1712
1714
|
*/
|
|
1713
1715
|
tracking: [{
|
|
1714
|
-
tracking: [
|
|
1716
|
+
tracking: [s, d, u]
|
|
1715
1717
|
}],
|
|
1716
1718
|
/**
|
|
1717
1719
|
* Line Clamp
|
|
1718
1720
|
* @see https://tailwindcss.com/docs/line-clamp
|
|
1719
1721
|
*/
|
|
1720
1722
|
"line-clamp": [{
|
|
1721
|
-
"line-clamp": [
|
|
1723
|
+
"line-clamp": [b, "none", d, be]
|
|
1722
1724
|
}],
|
|
1723
1725
|
/**
|
|
1724
1726
|
* Line Height
|
|
@@ -1728,7 +1730,7 @@ const T = (e) => {
|
|
|
1728
1730
|
leading: [
|
|
1729
1731
|
/** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
1730
1732
|
n,
|
|
1731
|
-
...
|
|
1733
|
+
...c()
|
|
1732
1734
|
]
|
|
1733
1735
|
}],
|
|
1734
1736
|
/**
|
|
@@ -1791,7 +1793,7 @@ const T = (e) => {
|
|
|
1791
1793
|
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
|
1792
1794
|
*/
|
|
1793
1795
|
"text-decoration-thickness": [{
|
|
1794
|
-
decoration: [
|
|
1796
|
+
decoration: [b, "from-font", "auto", d, K]
|
|
1795
1797
|
}],
|
|
1796
1798
|
/**
|
|
1797
1799
|
* Text Decoration Color
|
|
@@ -1805,7 +1807,7 @@ const T = (e) => {
|
|
|
1805
1807
|
* @see https://tailwindcss.com/docs/text-underline-offset
|
|
1806
1808
|
*/
|
|
1807
1809
|
"underline-offset": [{
|
|
1808
|
-
"underline-offset": [
|
|
1810
|
+
"underline-offset": [b, "auto", d, u]
|
|
1809
1811
|
}],
|
|
1810
1812
|
/**
|
|
1811
1813
|
* Text Transform
|
|
@@ -1829,7 +1831,7 @@ const T = (e) => {
|
|
|
1829
1831
|
* @see https://tailwindcss.com/docs/text-indent
|
|
1830
1832
|
*/
|
|
1831
1833
|
indent: [{
|
|
1832
|
-
indent:
|
|
1834
|
+
indent: c()
|
|
1833
1835
|
}],
|
|
1834
1836
|
/**
|
|
1835
1837
|
* Vertical Alignment
|
|
@@ -2271,14 +2273,14 @@ const T = (e) => {
|
|
|
2271
2273
|
* @see https://tailwindcss.com/docs/outline-offset
|
|
2272
2274
|
*/
|
|
2273
2275
|
"outline-offset": [{
|
|
2274
|
-
"outline-offset": [
|
|
2276
|
+
"outline-offset": [b, d, u]
|
|
2275
2277
|
}],
|
|
2276
2278
|
/**
|
|
2277
2279
|
* Outline Width
|
|
2278
2280
|
* @see https://tailwindcss.com/docs/outline-width
|
|
2279
2281
|
*/
|
|
2280
2282
|
"outline-w": [{
|
|
2281
|
-
outline: ["",
|
|
2283
|
+
outline: ["", b, te, K]
|
|
2282
2284
|
}],
|
|
2283
2285
|
/**
|
|
2284
2286
|
* Outline Color
|
|
@@ -2299,7 +2301,7 @@ const T = (e) => {
|
|
|
2299
2301
|
// Deprecated since Tailwind CSS v4.0.0
|
|
2300
2302
|
"",
|
|
2301
2303
|
"none",
|
|
2302
|
-
|
|
2304
|
+
p,
|
|
2303
2305
|
ce,
|
|
2304
2306
|
le
|
|
2305
2307
|
]
|
|
@@ -2353,7 +2355,7 @@ const T = (e) => {
|
|
|
2353
2355
|
* @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
|
|
2354
2356
|
*/
|
|
2355
2357
|
"ring-offset-w": [{
|
|
2356
|
-
"ring-offset": [
|
|
2358
|
+
"ring-offset": [b, K]
|
|
2357
2359
|
}],
|
|
2358
2360
|
/**
|
|
2359
2361
|
* Ring Offset Color
|
|
@@ -2397,7 +2399,7 @@ const T = (e) => {
|
|
|
2397
2399
|
* @see https://tailwindcss.com/docs/opacity
|
|
2398
2400
|
*/
|
|
2399
2401
|
opacity: [{
|
|
2400
|
-
opacity: [
|
|
2402
|
+
opacity: [b, d, u]
|
|
2401
2403
|
}],
|
|
2402
2404
|
/**
|
|
2403
2405
|
* Mix Blend Mode
|
|
@@ -2432,7 +2434,7 @@ const T = (e) => {
|
|
|
2432
2434
|
* @see https://tailwindcss.com/docs/mask-image
|
|
2433
2435
|
*/
|
|
2434
2436
|
"mask-image-linear-pos": [{
|
|
2435
|
-
"mask-linear": [
|
|
2437
|
+
"mask-linear": [b]
|
|
2436
2438
|
}],
|
|
2437
2439
|
"mask-image-linear-from-pos": [{
|
|
2438
2440
|
"mask-linear-from": S()
|
|
@@ -2546,7 +2548,7 @@ const T = (e) => {
|
|
|
2546
2548
|
"mask-radial-at": N()
|
|
2547
2549
|
}],
|
|
2548
2550
|
"mask-image-conic-pos": [{
|
|
2549
|
-
"mask-conic": [
|
|
2551
|
+
"mask-conic": [b]
|
|
2550
2552
|
}],
|
|
2551
2553
|
"mask-image-conic-from-pos": [{
|
|
2552
2554
|
"mask-conic-from": S()
|
|
@@ -2637,14 +2639,14 @@ const T = (e) => {
|
|
|
2637
2639
|
* @see https://tailwindcss.com/docs/brightness
|
|
2638
2640
|
*/
|
|
2639
2641
|
brightness: [{
|
|
2640
|
-
brightness: [
|
|
2642
|
+
brightness: [b, d, u]
|
|
2641
2643
|
}],
|
|
2642
2644
|
/**
|
|
2643
2645
|
* Contrast
|
|
2644
2646
|
* @see https://tailwindcss.com/docs/contrast
|
|
2645
2647
|
*/
|
|
2646
2648
|
contrast: [{
|
|
2647
|
-
contrast: [
|
|
2649
|
+
contrast: [b, d, u]
|
|
2648
2650
|
}],
|
|
2649
2651
|
/**
|
|
2650
2652
|
* Drop Shadow
|
|
@@ -2672,35 +2674,35 @@ const T = (e) => {
|
|
|
2672
2674
|
* @see https://tailwindcss.com/docs/grayscale
|
|
2673
2675
|
*/
|
|
2674
2676
|
grayscale: [{
|
|
2675
|
-
grayscale: ["",
|
|
2677
|
+
grayscale: ["", b, d, u]
|
|
2676
2678
|
}],
|
|
2677
2679
|
/**
|
|
2678
2680
|
* Hue Rotate
|
|
2679
2681
|
* @see https://tailwindcss.com/docs/hue-rotate
|
|
2680
2682
|
*/
|
|
2681
2683
|
"hue-rotate": [{
|
|
2682
|
-
"hue-rotate": [
|
|
2684
|
+
"hue-rotate": [b, d, u]
|
|
2683
2685
|
}],
|
|
2684
2686
|
/**
|
|
2685
2687
|
* Invert
|
|
2686
2688
|
* @see https://tailwindcss.com/docs/invert
|
|
2687
2689
|
*/
|
|
2688
2690
|
invert: [{
|
|
2689
|
-
invert: ["",
|
|
2691
|
+
invert: ["", b, d, u]
|
|
2690
2692
|
}],
|
|
2691
2693
|
/**
|
|
2692
2694
|
* Saturate
|
|
2693
2695
|
* @see https://tailwindcss.com/docs/saturate
|
|
2694
2696
|
*/
|
|
2695
2697
|
saturate: [{
|
|
2696
|
-
saturate: [
|
|
2698
|
+
saturate: [b, d, u]
|
|
2697
2699
|
}],
|
|
2698
2700
|
/**
|
|
2699
2701
|
* Sepia
|
|
2700
2702
|
* @see https://tailwindcss.com/docs/sepia
|
|
2701
2703
|
*/
|
|
2702
2704
|
sepia: [{
|
|
2703
|
-
sepia: ["",
|
|
2705
|
+
sepia: ["", b, d, u]
|
|
2704
2706
|
}],
|
|
2705
2707
|
/**
|
|
2706
2708
|
* Backdrop Filter
|
|
@@ -2727,56 +2729,56 @@ const T = (e) => {
|
|
|
2727
2729
|
* @see https://tailwindcss.com/docs/backdrop-brightness
|
|
2728
2730
|
*/
|
|
2729
2731
|
"backdrop-brightness": [{
|
|
2730
|
-
"backdrop-brightness": [
|
|
2732
|
+
"backdrop-brightness": [b, d, u]
|
|
2731
2733
|
}],
|
|
2732
2734
|
/**
|
|
2733
2735
|
* Backdrop Contrast
|
|
2734
2736
|
* @see https://tailwindcss.com/docs/backdrop-contrast
|
|
2735
2737
|
*/
|
|
2736
2738
|
"backdrop-contrast": [{
|
|
2737
|
-
"backdrop-contrast": [
|
|
2739
|
+
"backdrop-contrast": [b, d, u]
|
|
2738
2740
|
}],
|
|
2739
2741
|
/**
|
|
2740
2742
|
* Backdrop Grayscale
|
|
2741
2743
|
* @see https://tailwindcss.com/docs/backdrop-grayscale
|
|
2742
2744
|
*/
|
|
2743
2745
|
"backdrop-grayscale": [{
|
|
2744
|
-
"backdrop-grayscale": ["",
|
|
2746
|
+
"backdrop-grayscale": ["", b, d, u]
|
|
2745
2747
|
}],
|
|
2746
2748
|
/**
|
|
2747
2749
|
* Backdrop Hue Rotate
|
|
2748
2750
|
* @see https://tailwindcss.com/docs/backdrop-hue-rotate
|
|
2749
2751
|
*/
|
|
2750
2752
|
"backdrop-hue-rotate": [{
|
|
2751
|
-
"backdrop-hue-rotate": [
|
|
2753
|
+
"backdrop-hue-rotate": [b, d, u]
|
|
2752
2754
|
}],
|
|
2753
2755
|
/**
|
|
2754
2756
|
* Backdrop Invert
|
|
2755
2757
|
* @see https://tailwindcss.com/docs/backdrop-invert
|
|
2756
2758
|
*/
|
|
2757
2759
|
"backdrop-invert": [{
|
|
2758
|
-
"backdrop-invert": ["",
|
|
2760
|
+
"backdrop-invert": ["", b, d, u]
|
|
2759
2761
|
}],
|
|
2760
2762
|
/**
|
|
2761
2763
|
* Backdrop Opacity
|
|
2762
2764
|
* @see https://tailwindcss.com/docs/backdrop-opacity
|
|
2763
2765
|
*/
|
|
2764
2766
|
"backdrop-opacity": [{
|
|
2765
|
-
"backdrop-opacity": [
|
|
2767
|
+
"backdrop-opacity": [b, d, u]
|
|
2766
2768
|
}],
|
|
2767
2769
|
/**
|
|
2768
2770
|
* Backdrop Saturate
|
|
2769
2771
|
* @see https://tailwindcss.com/docs/backdrop-saturate
|
|
2770
2772
|
*/
|
|
2771
2773
|
"backdrop-saturate": [{
|
|
2772
|
-
"backdrop-saturate": [
|
|
2774
|
+
"backdrop-saturate": [b, d, u]
|
|
2773
2775
|
}],
|
|
2774
2776
|
/**
|
|
2775
2777
|
* Backdrop Sepia
|
|
2776
2778
|
* @see https://tailwindcss.com/docs/backdrop-sepia
|
|
2777
2779
|
*/
|
|
2778
2780
|
"backdrop-sepia": [{
|
|
2779
|
-
"backdrop-sepia": ["",
|
|
2781
|
+
"backdrop-sepia": ["", b, d, u]
|
|
2780
2782
|
}],
|
|
2781
2783
|
// --------------
|
|
2782
2784
|
// --- Tables ---
|
|
@@ -2793,21 +2795,21 @@ const T = (e) => {
|
|
|
2793
2795
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
2794
2796
|
*/
|
|
2795
2797
|
"border-spacing": [{
|
|
2796
|
-
"border-spacing":
|
|
2798
|
+
"border-spacing": c()
|
|
2797
2799
|
}],
|
|
2798
2800
|
/**
|
|
2799
2801
|
* Border Spacing X
|
|
2800
2802
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
2801
2803
|
*/
|
|
2802
2804
|
"border-spacing-x": [{
|
|
2803
|
-
"border-spacing-x":
|
|
2805
|
+
"border-spacing-x": c()
|
|
2804
2806
|
}],
|
|
2805
2807
|
/**
|
|
2806
2808
|
* Border Spacing Y
|
|
2807
2809
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
2808
2810
|
*/
|
|
2809
2811
|
"border-spacing-y": [{
|
|
2810
|
-
"border-spacing-y":
|
|
2812
|
+
"border-spacing-y": c()
|
|
2811
2813
|
}],
|
|
2812
2814
|
/**
|
|
2813
2815
|
* Table Layout
|
|
@@ -2845,7 +2847,7 @@ const T = (e) => {
|
|
|
2845
2847
|
* @see https://tailwindcss.com/docs/transition-duration
|
|
2846
2848
|
*/
|
|
2847
2849
|
duration: [{
|
|
2848
|
-
duration: [
|
|
2850
|
+
duration: [b, "initial", d, u]
|
|
2849
2851
|
}],
|
|
2850
2852
|
/**
|
|
2851
2853
|
* Transition Timing Function
|
|
@@ -2859,7 +2861,7 @@ const T = (e) => {
|
|
|
2859
2861
|
* @see https://tailwindcss.com/docs/transition-delay
|
|
2860
2862
|
*/
|
|
2861
2863
|
delay: [{
|
|
2862
|
-
delay: [
|
|
2864
|
+
delay: [b, d, u]
|
|
2863
2865
|
}],
|
|
2864
2866
|
/**
|
|
2865
2867
|
* Animation
|
|
@@ -3099,126 +3101,126 @@ const T = (e) => {
|
|
|
3099
3101
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3100
3102
|
*/
|
|
3101
3103
|
"scroll-m": [{
|
|
3102
|
-
"scroll-m":
|
|
3104
|
+
"scroll-m": c()
|
|
3103
3105
|
}],
|
|
3104
3106
|
/**
|
|
3105
3107
|
* Scroll Margin X
|
|
3106
3108
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3107
3109
|
*/
|
|
3108
3110
|
"scroll-mx": [{
|
|
3109
|
-
"scroll-mx":
|
|
3111
|
+
"scroll-mx": c()
|
|
3110
3112
|
}],
|
|
3111
3113
|
/**
|
|
3112
3114
|
* Scroll Margin Y
|
|
3113
3115
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3114
3116
|
*/
|
|
3115
3117
|
"scroll-my": [{
|
|
3116
|
-
"scroll-my":
|
|
3118
|
+
"scroll-my": c()
|
|
3117
3119
|
}],
|
|
3118
3120
|
/**
|
|
3119
3121
|
* Scroll Margin Start
|
|
3120
3122
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3121
3123
|
*/
|
|
3122
3124
|
"scroll-ms": [{
|
|
3123
|
-
"scroll-ms":
|
|
3125
|
+
"scroll-ms": c()
|
|
3124
3126
|
}],
|
|
3125
3127
|
/**
|
|
3126
3128
|
* Scroll Margin End
|
|
3127
3129
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3128
3130
|
*/
|
|
3129
3131
|
"scroll-me": [{
|
|
3130
|
-
"scroll-me":
|
|
3132
|
+
"scroll-me": c()
|
|
3131
3133
|
}],
|
|
3132
3134
|
/**
|
|
3133
3135
|
* Scroll Margin Top
|
|
3134
3136
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3135
3137
|
*/
|
|
3136
3138
|
"scroll-mt": [{
|
|
3137
|
-
"scroll-mt":
|
|
3139
|
+
"scroll-mt": c()
|
|
3138
3140
|
}],
|
|
3139
3141
|
/**
|
|
3140
3142
|
* Scroll Margin Right
|
|
3141
3143
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3142
3144
|
*/
|
|
3143
3145
|
"scroll-mr": [{
|
|
3144
|
-
"scroll-mr":
|
|
3146
|
+
"scroll-mr": c()
|
|
3145
3147
|
}],
|
|
3146
3148
|
/**
|
|
3147
3149
|
* Scroll Margin Bottom
|
|
3148
3150
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3149
3151
|
*/
|
|
3150
3152
|
"scroll-mb": [{
|
|
3151
|
-
"scroll-mb":
|
|
3153
|
+
"scroll-mb": c()
|
|
3152
3154
|
}],
|
|
3153
3155
|
/**
|
|
3154
3156
|
* Scroll Margin Left
|
|
3155
3157
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3156
3158
|
*/
|
|
3157
3159
|
"scroll-ml": [{
|
|
3158
|
-
"scroll-ml":
|
|
3160
|
+
"scroll-ml": c()
|
|
3159
3161
|
}],
|
|
3160
3162
|
/**
|
|
3161
3163
|
* Scroll Padding
|
|
3162
3164
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3163
3165
|
*/
|
|
3164
3166
|
"scroll-p": [{
|
|
3165
|
-
"scroll-p":
|
|
3167
|
+
"scroll-p": c()
|
|
3166
3168
|
}],
|
|
3167
3169
|
/**
|
|
3168
3170
|
* Scroll Padding X
|
|
3169
3171
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3170
3172
|
*/
|
|
3171
3173
|
"scroll-px": [{
|
|
3172
|
-
"scroll-px":
|
|
3174
|
+
"scroll-px": c()
|
|
3173
3175
|
}],
|
|
3174
3176
|
/**
|
|
3175
3177
|
* Scroll Padding Y
|
|
3176
3178
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3177
3179
|
*/
|
|
3178
3180
|
"scroll-py": [{
|
|
3179
|
-
"scroll-py":
|
|
3181
|
+
"scroll-py": c()
|
|
3180
3182
|
}],
|
|
3181
3183
|
/**
|
|
3182
3184
|
* Scroll Padding Start
|
|
3183
3185
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3184
3186
|
*/
|
|
3185
3187
|
"scroll-ps": [{
|
|
3186
|
-
"scroll-ps":
|
|
3188
|
+
"scroll-ps": c()
|
|
3187
3189
|
}],
|
|
3188
3190
|
/**
|
|
3189
3191
|
* Scroll Padding End
|
|
3190
3192
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3191
3193
|
*/
|
|
3192
3194
|
"scroll-pe": [{
|
|
3193
|
-
"scroll-pe":
|
|
3195
|
+
"scroll-pe": c()
|
|
3194
3196
|
}],
|
|
3195
3197
|
/**
|
|
3196
3198
|
* Scroll Padding Top
|
|
3197
3199
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3198
3200
|
*/
|
|
3199
3201
|
"scroll-pt": [{
|
|
3200
|
-
"scroll-pt":
|
|
3202
|
+
"scroll-pt": c()
|
|
3201
3203
|
}],
|
|
3202
3204
|
/**
|
|
3203
3205
|
* Scroll Padding Right
|
|
3204
3206
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3205
3207
|
*/
|
|
3206
3208
|
"scroll-pr": [{
|
|
3207
|
-
"scroll-pr":
|
|
3209
|
+
"scroll-pr": c()
|
|
3208
3210
|
}],
|
|
3209
3211
|
/**
|
|
3210
3212
|
* Scroll Padding Bottom
|
|
3211
3213
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3212
3214
|
*/
|
|
3213
3215
|
"scroll-pb": [{
|
|
3214
|
-
"scroll-pb":
|
|
3216
|
+
"scroll-pb": c()
|
|
3215
3217
|
}],
|
|
3216
3218
|
/**
|
|
3217
3219
|
* Scroll Padding Left
|
|
3218
3220
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3219
3221
|
*/
|
|
3220
3222
|
"scroll-pl": [{
|
|
3221
|
-
"scroll-pl":
|
|
3223
|
+
"scroll-pl": c()
|
|
3222
3224
|
}],
|
|
3223
3225
|
/**
|
|
3224
3226
|
* Scroll Snap Align
|
|
@@ -3303,7 +3305,7 @@ const T = (e) => {
|
|
|
3303
3305
|
* @see https://tailwindcss.com/docs/stroke-width
|
|
3304
3306
|
*/
|
|
3305
3307
|
"stroke-w": [{
|
|
3306
|
-
stroke: [
|
|
3308
|
+
stroke: [b, te, K, be]
|
|
3307
3309
|
}],
|
|
3308
3310
|
/**
|
|
3309
3311
|
* Stroke
|
|
@@ -3380,17 +3382,17 @@ const T = (e) => {
|
|
|
3380
3382
|
};
|
|
3381
3383
|
}, Ut = /* @__PURE__ */ At(Ht);
|
|
3382
3384
|
function Je(e) {
|
|
3383
|
-
var t, o,
|
|
3384
|
-
if (typeof e == "string" || typeof e == "number")
|
|
3385
|
+
var t, o, r = "";
|
|
3386
|
+
if (typeof e == "string" || typeof e == "number") r += e;
|
|
3385
3387
|
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
3386
|
-
var
|
|
3387
|
-
for (t = 0; t <
|
|
3388
|
-
} else for (o in e) e[o] && (
|
|
3389
|
-
return
|
|
3388
|
+
var s = e.length;
|
|
3389
|
+
for (t = 0; t < s; t++) e[t] && (o = Je(e[t])) && (r && (r += " "), r += o);
|
|
3390
|
+
} else for (o in e) e[o] && (r && (r += " "), r += o);
|
|
3391
|
+
return r;
|
|
3390
3392
|
}
|
|
3391
3393
|
function Wt() {
|
|
3392
|
-
for (var e, t, o = 0,
|
|
3393
|
-
return
|
|
3394
|
+
for (var e, t, o = 0, r = "", s = arguments.length; o < s; o++) (e = arguments[o]) && (t = Je(e)) && (r && (r += " "), r += t);
|
|
3395
|
+
return r;
|
|
3394
3396
|
}
|
|
3395
3397
|
function Io(...e) {
|
|
3396
3398
|
return Ut(Wt(e));
|