@aminnausin/cedar-ui 0.0.15 → 0.0.16
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 +411 -387
- package/dist/cedar-ui.umd.js +1 -1
- package/dist/index.d.ts +11 -3
- package/package.json +1 -1
package/dist/cedar-ui.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
var Xe = Object.defineProperty;
|
|
2
|
-
var Ze = (e, t,
|
|
3
|
-
var
|
|
4
|
-
import { ref as y, computed as q, onMounted as Qe, watch as X, nextTick as et, reactive as ue, onBeforeUnmount as tt, shallowRef as
|
|
5
|
-
function Xt(e, t,
|
|
2
|
+
var Ze = (e, t, r) => t in e ? Xe(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
|
+
var C = (e, t, r) => Ze(e, typeof t != "symbol" ? t + "" : t, r);
|
|
4
|
+
import { ref as y, computed as q, onMounted as Qe, watch as X, nextTick as et, reactive as ue, onBeforeUnmount as tt, shallowRef as ge, readonly as De } from "vue";
|
|
5
|
+
function Xt(e, t, r) {
|
|
6
6
|
var te;
|
|
7
|
-
const
|
|
7
|
+
const o = y(!1), s = y(((te = e.model) == null ? void 0 : te.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",
|
|
@@ -25,7 +25,7 @@ function Xt(e, t, o) {
|
|
|
25
25
|
return Array.from({ length: 10 }, (I, x) => h + x);
|
|
26
26
|
});
|
|
27
27
|
function z(h) {
|
|
28
|
-
|
|
28
|
+
o.value = h ?? !o.value, k.value = "D";
|
|
29
29
|
}
|
|
30
30
|
function G(h = "D") {
|
|
31
31
|
k.value = h;
|
|
@@ -60,7 +60,7 @@ function Xt(e, t, o) {
|
|
|
60
60
|
a.value = h, k.value = "D", v();
|
|
61
61
|
break;
|
|
62
62
|
default:
|
|
63
|
-
l.value = h,
|
|
63
|
+
l.value = h, s.value = L(new Date(i.value, a.value, h)), o.value = !1, e.model && (e.model.value = s.value);
|
|
64
64
|
break;
|
|
65
65
|
}
|
|
66
66
|
}
|
|
@@ -92,7 +92,7 @@ function Xt(e, t, o) {
|
|
|
92
92
|
}
|
|
93
93
|
function w(h) {
|
|
94
94
|
const I = new Date(i.value, a.value, h);
|
|
95
|
-
return
|
|
95
|
+
return s.value === L(I);
|
|
96
96
|
}
|
|
97
97
|
function c(h) {
|
|
98
98
|
const I = /* @__PURE__ */ new Date(), x = new Date(i.value, a.value, h);
|
|
@@ -103,31 +103,31 @@ function Xt(e, t, o) {
|
|
|
103
103
|
p.value = Array.from({ length: I }, (x, D) => D + 1), f.value = Array.from({ length: h }, (x, D) => D + 1);
|
|
104
104
|
}
|
|
105
105
|
function O() {
|
|
106
|
-
if (!t.value || !
|
|
107
|
-
const h = t.value.getBoundingClientRect(), I =
|
|
108
|
-
|
|
106
|
+
if (!t.value || !r.value || !o.value) return;
|
|
107
|
+
const h = t.value.getBoundingClientRect(), I = r.value.offsetHeight, x = h.top + h.height + I;
|
|
108
|
+
g.value = x > window.innerHeight ? "top" : "bottom";
|
|
109
109
|
}
|
|
110
110
|
function ee(h, I = !0) {
|
|
111
|
-
a.value = h.getMonth(), i.value = h.getFullYear(), l.value = h.getDate(), I && (
|
|
111
|
+
a.value = h.getMonth(), i.value = h.getFullYear(), l.value = h.getDate(), I && (s.value = L(h)), v();
|
|
112
112
|
}
|
|
113
|
-
function
|
|
114
|
-
if (
|
|
115
|
-
return ee(new Date(Date.parse(
|
|
113
|
+
function K() {
|
|
114
|
+
if (s.value)
|
|
115
|
+
return ee(new Date(Date.parse(s.value)));
|
|
116
116
|
ee(/* @__PURE__ */ new Date(), e.useDefaultDate);
|
|
117
117
|
}
|
|
118
118
|
return Qe(() => {
|
|
119
|
-
|
|
120
|
-
}), X(
|
|
119
|
+
K();
|
|
120
|
+
}), X(o, async (h) => {
|
|
121
121
|
if (!h) {
|
|
122
122
|
window.removeEventListener("resize", O);
|
|
123
123
|
return;
|
|
124
124
|
}
|
|
125
|
-
await et(),
|
|
125
|
+
await et(), K(), O(), window.addEventListener("resize", O);
|
|
126
126
|
}), {
|
|
127
127
|
datePickerInput: t,
|
|
128
|
-
datePickerCalendar:
|
|
129
|
-
datePickerOpen:
|
|
130
|
-
datePickerValue:
|
|
128
|
+
datePickerCalendar: r,
|
|
129
|
+
datePickerOpen: o,
|
|
130
|
+
datePickerValue: s,
|
|
131
131
|
datePickerPanel: k,
|
|
132
132
|
datePickerFormat: n,
|
|
133
133
|
datePickerMonth: a,
|
|
@@ -139,7 +139,7 @@ function Xt(e, t, o) {
|
|
|
139
139
|
datePickerBlankDaysInMonth: p,
|
|
140
140
|
datePickerMonthNames: M,
|
|
141
141
|
datePickerDays: F,
|
|
142
|
-
datePickerPosition:
|
|
142
|
+
datePickerPosition: g,
|
|
143
143
|
toggleDatePicker: z,
|
|
144
144
|
datePickerValueClicked: _,
|
|
145
145
|
datePickerPrevious: V,
|
|
@@ -149,8 +149,8 @@ function Xt(e, t, o) {
|
|
|
149
149
|
showDatePickerPanel: G
|
|
150
150
|
};
|
|
151
151
|
}
|
|
152
|
-
function Zt({ options: e, defaultItems: t },
|
|
153
|
-
const
|
|
152
|
+
function Zt({ options: e, defaultItems: t }, r) {
|
|
153
|
+
const o = ue({
|
|
154
154
|
selectOpen: !1,
|
|
155
155
|
selectedItems: t,
|
|
156
156
|
selectableItems: e,
|
|
@@ -160,8 +160,8 @@ function Zt({ options: e, defaultItems: t }, o) {
|
|
|
160
160
|
selectKeydownTimeout: 1e3,
|
|
161
161
|
selectKeydownClearTimeout: null,
|
|
162
162
|
selectDropdownPosition: "bottom",
|
|
163
|
-
selectableItemsList:
|
|
164
|
-
selectButton:
|
|
163
|
+
selectableItemsList: r.selectableItemsList,
|
|
164
|
+
selectButton: r.selectButton,
|
|
165
165
|
toggleSelect(n) {
|
|
166
166
|
n !== void 0 ? this.selectOpen = n === !0 : this.selectOpen = !this.selectOpen;
|
|
167
167
|
},
|
|
@@ -201,23 +201,23 @@ 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
|
+
o.selectOpen && o.selectPositionUpdate();
|
|
206
206
|
};
|
|
207
207
|
return X(
|
|
208
|
-
() =>
|
|
208
|
+
() => o.selectOpen,
|
|
209
209
|
function(n) {
|
|
210
|
-
if (
|
|
211
|
-
window.removeEventListener("resize",
|
|
210
|
+
if (o.selectedItems ? o.selectableItemActive = o.selectedItem : o.selectableItemActive = o.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
|
+
), o;
|
|
218
218
|
}
|
|
219
219
|
function Qt(e, t) {
|
|
220
|
-
const
|
|
220
|
+
const r = ue({
|
|
221
221
|
selectOpen: !1,
|
|
222
222
|
selectedItem: "",
|
|
223
223
|
selectableItems: e,
|
|
@@ -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,9 +261,9 @@ 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 f = i.title.toLowerCase().indexOf(
|
|
266
|
+
let f = i.title.toLowerCase().indexOf(s);
|
|
267
267
|
f > -1 && (a == -1 || f < a) && !i.disabled && (n = i, a = f);
|
|
268
268
|
}
|
|
269
269
|
return n;
|
|
@@ -271,36 +271,36 @@ function Qt(e, t) {
|
|
|
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
|
-
}),
|
|
278
|
-
|
|
277
|
+
}), o = () => {
|
|
278
|
+
r.selectOpen && r.selectPositionUpdate();
|
|
279
279
|
};
|
|
280
280
|
return X(
|
|
281
|
-
() =>
|
|
282
|
-
function(
|
|
283
|
-
if (
|
|
284
|
-
window.removeEventListener("resize",
|
|
281
|
+
() => r.selectOpen,
|
|
282
|
+
function(s) {
|
|
283
|
+
if (r.selectedItem ? r.selectableItemActive = r.selectedItem : r.selectableItemActive = r.selectableItems[0], !s) {
|
|
284
|
+
window.removeEventListener("resize", o);
|
|
285
285
|
return;
|
|
286
286
|
}
|
|
287
287
|
window.setTimeout(function() {
|
|
288
|
-
|
|
289
|
-
}, 10),
|
|
288
|
+
r.selectScrollToActiveItem();
|
|
289
|
+
}, 10), o(), window.addEventListener("resize", o);
|
|
290
290
|
},
|
|
291
291
|
{ immediate: !1 }
|
|
292
|
-
),
|
|
292
|
+
), r;
|
|
293
293
|
}
|
|
294
|
-
function
|
|
295
|
-
const t = q(() => e.itemsPerPage ?? 10),
|
|
296
|
-
const i = (
|
|
294
|
+
function er(e) {
|
|
295
|
+
const t = q(() => e.itemsPerPage ?? 10), r = y(1), o = q(() => Math.ceil(e.data.value.length / t.value)), s = q(() => {
|
|
296
|
+
const i = (r.value - 1) * t.value;
|
|
297
297
|
return e.data.value.slice(i, i + t.value);
|
|
298
298
|
});
|
|
299
299
|
function n(i) {
|
|
300
|
-
|
|
300
|
+
r.value = Math.min(Math.max(1, i), o.value);
|
|
301
301
|
}
|
|
302
302
|
function a() {
|
|
303
|
-
|
|
303
|
+
r.value = 1;
|
|
304
304
|
}
|
|
305
305
|
return X(
|
|
306
306
|
() => e.data.value,
|
|
@@ -312,11 +312,11 @@ function eo(e) {
|
|
|
312
312
|
{ immediate: !0 }
|
|
313
313
|
), {
|
|
314
314
|
// state
|
|
315
|
-
currentPage:
|
|
315
|
+
currentPage: r,
|
|
316
316
|
itemsPerPage: t,
|
|
317
317
|
// derived
|
|
318
|
-
pageCount:
|
|
319
|
-
pageData:
|
|
318
|
+
pageCount: o,
|
|
319
|
+
pageData: s,
|
|
320
320
|
// actions
|
|
321
321
|
setPage: n,
|
|
322
322
|
resetPage: a
|
|
@@ -325,64 +325,87 @@ function eo(e) {
|
|
|
325
325
|
function Fe(e = "pv_id_") {
|
|
326
326
|
return e + Math.random().toString(16).slice(2);
|
|
327
327
|
}
|
|
328
|
-
class
|
|
328
|
+
class rt {
|
|
329
329
|
constructor() {
|
|
330
|
-
|
|
331
|
-
|
|
330
|
+
C(this, "subscribers");
|
|
331
|
+
C(this, "toasts");
|
|
332
332
|
// We use arrow functions to maintain the correct `this` reference
|
|
333
|
-
|
|
334
|
-
const
|
|
335
|
-
this.subscribers.splice(
|
|
333
|
+
C(this, "subscribe", (t) => (this.subscribers.push(t), () => {
|
|
334
|
+
const r = this.subscribers.indexOf(t);
|
|
335
|
+
this.subscribers.splice(r, 1);
|
|
336
336
|
}));
|
|
337
|
-
|
|
338
|
-
this.subscribers.forEach((
|
|
337
|
+
C(this, "publish", (t) => {
|
|
338
|
+
this.subscribers.forEach((r) => r(t));
|
|
339
339
|
});
|
|
340
|
-
|
|
340
|
+
C(this, "addToast", (t) => {
|
|
341
341
|
this.publish(t), this.toasts = [...this.toasts, t];
|
|
342
342
|
});
|
|
343
|
-
|
|
344
|
-
const
|
|
345
|
-
return this.toasts.find((n) => n.id ===
|
|
343
|
+
C(this, "create", (t, r) => {
|
|
344
|
+
const o = r.id ?? Fe("toast_");
|
|
345
|
+
return this.toasts.find((n) => n.id === o) ? this.toasts = this.toasts.map((n) => n.id === o ? (this.publish({ ...n, ...r, id: o, title: t }), {
|
|
346
346
|
...n,
|
|
347
|
-
...
|
|
348
|
-
id:
|
|
347
|
+
...r,
|
|
348
|
+
id: o,
|
|
349
349
|
title: t
|
|
350
350
|
}) : n) : this.addToast({
|
|
351
351
|
title: t,
|
|
352
|
-
id:
|
|
352
|
+
id: o,
|
|
353
353
|
scale: 1,
|
|
354
354
|
zIndex: 200,
|
|
355
355
|
offsetY: 0,
|
|
356
|
-
...
|
|
357
|
-
}),
|
|
356
|
+
...r
|
|
357
|
+
}), o;
|
|
358
358
|
});
|
|
359
|
-
|
|
360
|
-
t ? (this.publish({ id: t, dismiss: !0 }), this.toasts = this.toasts.filter((
|
|
361
|
-
this.publish({ id:
|
|
359
|
+
C(this, "dismiss", (t) => {
|
|
360
|
+
t ? (this.publish({ id: t, dismiss: !0 }), this.toasts = this.toasts.filter((r) => r.id !== t)) : (this.toasts.forEach((r) => {
|
|
361
|
+
this.publish({ id: r.id, dismiss: !0 });
|
|
362
362
|
}), this.toasts = []);
|
|
363
363
|
});
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
364
|
+
C(this, "add", (t, r) => this.create(t, { ...r }));
|
|
365
|
+
C(this, "success", (t, r) => this.create(t, { type: "success", ...r }));
|
|
366
|
+
C(this, "error", (t, r) => this.create(t, { type: "danger", ...r }));
|
|
367
|
+
C(this, "info", (t, r) => this.create(t, { type: "info", ...r }));
|
|
368
|
+
C(this, "warning", (t, r) => this.create(t, { type: "warning", ...r }));
|
|
369
|
+
C(this, "promise", (t, r, o) => {
|
|
370
|
+
const s = this.create(r.loading, {
|
|
371
|
+
...o,
|
|
372
|
+
type: "promise",
|
|
373
|
+
life: 1 / 0
|
|
374
|
+
});
|
|
375
|
+
return t.then((n) => {
|
|
376
|
+
this.create(typeof r.success == "function" ? r.success(n) : r.success, {
|
|
377
|
+
...o,
|
|
378
|
+
id: s,
|
|
379
|
+
type: "success",
|
|
380
|
+
life: (o == null ? void 0 : o.life) ?? 3e3
|
|
381
|
+
});
|
|
382
|
+
}).catch((n) => {
|
|
383
|
+
this.create(typeof r.error == "function" ? r.error(n) : r.error, {
|
|
384
|
+
...o,
|
|
385
|
+
id: s,
|
|
386
|
+
type: "danger",
|
|
387
|
+
life: (o == null ? void 0 : o.life) ?? 3e3
|
|
388
|
+
});
|
|
389
|
+
}), t;
|
|
390
|
+
});
|
|
369
391
|
this.subscribers = [], this.toasts = [];
|
|
370
392
|
}
|
|
371
393
|
}
|
|
372
|
-
const
|
|
373
|
-
function
|
|
374
|
-
const
|
|
375
|
-
return
|
|
394
|
+
const j = new rt();
|
|
395
|
+
function ot(e, t) {
|
|
396
|
+
const r = Fe("toast_");
|
|
397
|
+
return j.create(e, { ...t, id: r }), r;
|
|
376
398
|
}
|
|
377
|
-
const
|
|
378
|
-
add:
|
|
379
|
-
success:
|
|
380
|
-
error:
|
|
381
|
-
info:
|
|
382
|
-
warning:
|
|
383
|
-
dismiss:
|
|
399
|
+
const st = Object.assign(ot, {
|
|
400
|
+
add: j.add,
|
|
401
|
+
success: j.success,
|
|
402
|
+
error: j.error,
|
|
403
|
+
info: j.info,
|
|
404
|
+
warning: j.warning,
|
|
405
|
+
dismiss: j.dismiss,
|
|
406
|
+
promise: j.promise
|
|
384
407
|
});
|
|
385
|
-
function
|
|
408
|
+
function tr(e) {
|
|
386
409
|
const t = y(!1);
|
|
387
410
|
return {
|
|
388
411
|
copyNotification: t,
|
|
@@ -391,8 +414,8 @@ function to(e) {
|
|
|
391
414
|
await navigator.clipboard.writeText(e.value), t.value = !0, setTimeout(() => {
|
|
392
415
|
t.value = !1;
|
|
393
416
|
}, 3e3);
|
|
394
|
-
} catch (
|
|
395
|
-
console.error(
|
|
417
|
+
} catch (o) {
|
|
418
|
+
console.error(o), st.error("Error", {
|
|
396
419
|
description: "Unable to copy. Network is not secure."
|
|
397
420
|
});
|
|
398
421
|
}
|
|
@@ -404,37 +427,37 @@ function nt(e) {
|
|
|
404
427
|
}
|
|
405
428
|
var fe, Pe;
|
|
406
429
|
function at() {
|
|
407
|
-
return Pe || (Pe = 1, fe = function e(t,
|
|
408
|
-
if (t ===
|
|
409
|
-
if (t &&
|
|
410
|
-
if (t.constructor !==
|
|
411
|
-
var
|
|
430
|
+
return Pe || (Pe = 1, fe = function e(t, r) {
|
|
431
|
+
if (t === r) return !0;
|
|
432
|
+
if (t && r && typeof t == "object" && typeof r == "object") {
|
|
433
|
+
if (t.constructor !== r.constructor) return !1;
|
|
434
|
+
var o, s, n;
|
|
412
435
|
if (Array.isArray(t)) {
|
|
413
|
-
if (
|
|
414
|
-
for (
|
|
415
|
-
if (!e(t[
|
|
436
|
+
if (o = t.length, o != r.length) return !1;
|
|
437
|
+
for (s = o; s-- !== 0; )
|
|
438
|
+
if (!e(t[s], r[s])) return !1;
|
|
416
439
|
return !0;
|
|
417
440
|
}
|
|
418
|
-
if (t.constructor === RegExp) return t.source ===
|
|
419
|
-
if (t.valueOf !== Object.prototype.valueOf) return t.valueOf() ===
|
|
420
|
-
if (t.toString !== Object.prototype.toString) return t.toString() ===
|
|
421
|
-
if (n = Object.keys(t),
|
|
422
|
-
for (
|
|
423
|
-
if (!Object.prototype.hasOwnProperty.call(
|
|
424
|
-
for (
|
|
425
|
-
var a = n[
|
|
426
|
-
if (!e(t[a],
|
|
441
|
+
if (t.constructor === RegExp) return t.source === r.source && t.flags === r.flags;
|
|
442
|
+
if (t.valueOf !== Object.prototype.valueOf) return t.valueOf() === r.valueOf();
|
|
443
|
+
if (t.toString !== Object.prototype.toString) return t.toString() === r.toString();
|
|
444
|
+
if (n = Object.keys(t), o = n.length, o !== Object.keys(r).length) return !1;
|
|
445
|
+
for (s = o; s-- !== 0; )
|
|
446
|
+
if (!Object.prototype.hasOwnProperty.call(r, n[s])) return !1;
|
|
447
|
+
for (s = o; s-- !== 0; ) {
|
|
448
|
+
var a = n[s];
|
|
449
|
+
if (!e(t[a], r[a])) return !1;
|
|
427
450
|
}
|
|
428
451
|
return !0;
|
|
429
452
|
}
|
|
430
|
-
return t !== t &&
|
|
453
|
+
return t !== t && r !== r;
|
|
431
454
|
}), fe;
|
|
432
455
|
}
|
|
433
456
|
var it = at();
|
|
434
457
|
const lt = /* @__PURE__ */ nt(it);
|
|
435
|
-
function
|
|
436
|
-
let t = e,
|
|
437
|
-
const
|
|
458
|
+
function rr(e) {
|
|
459
|
+
let t = e, r;
|
|
460
|
+
const o = ue({
|
|
438
461
|
fields: structuredClone(e),
|
|
439
462
|
errors: {},
|
|
440
463
|
dirty: !1,
|
|
@@ -442,22 +465,22 @@ function oo(e) {
|
|
|
442
465
|
processing: !1,
|
|
443
466
|
wasSuccessful: !1,
|
|
444
467
|
recentlySuccessful: !1,
|
|
445
|
-
async submit(
|
|
468
|
+
async submit(s, n = {}) {
|
|
446
469
|
if (this.processing) return;
|
|
447
470
|
const a = {
|
|
448
471
|
onBefore: async () => {
|
|
449
|
-
this.processing = !0, this.wasSuccessful = !1, this.recentlySuccessful = !1, clearTimeout(
|
|
472
|
+
this.processing = !0, this.wasSuccessful = !1, this.recentlySuccessful = !1, clearTimeout(r), n.onBefore && await n.onBefore();
|
|
450
473
|
},
|
|
451
474
|
onSuccess: async (i) => {
|
|
452
|
-
this.clearErrors(), this.wasSuccessful = !0, this.recentlySuccessful = !0,
|
|
475
|
+
this.clearErrors(), this.wasSuccessful = !0, this.recentlySuccessful = !0, r = window.setTimeout(() => {
|
|
453
476
|
this.recentlySuccessful = !1;
|
|
454
477
|
}, 2e3), n.onSuccess && await n.onSuccess(i), t = structuredClone(this.fields);
|
|
455
478
|
},
|
|
456
479
|
onError: async (i) => {
|
|
457
|
-
var l, f, p,
|
|
480
|
+
var l, f, p, g, M;
|
|
458
481
|
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({
|
|
459
482
|
message: (p = i == null ? void 0 : i.response) == null ? void 0 : p.data.message,
|
|
460
|
-
...(M = (
|
|
483
|
+
...(M = (g = i == null ? void 0 : i.response) == null ? void 0 : g.data) == null ? void 0 : M.errors
|
|
461
484
|
})), n.onError && await n.onError(i);
|
|
462
485
|
},
|
|
463
486
|
onFinish: async () => {
|
|
@@ -466,7 +489,7 @@ function oo(e) {
|
|
|
466
489
|
};
|
|
467
490
|
await a.onBefore();
|
|
468
491
|
try {
|
|
469
|
-
const i = await
|
|
492
|
+
const i = await s(this.fields);
|
|
470
493
|
await a.onSuccess(i);
|
|
471
494
|
} catch (i) {
|
|
472
495
|
await a.onError(i);
|
|
@@ -474,41 +497,42 @@ function oo(e) {
|
|
|
474
497
|
await a.onFinish();
|
|
475
498
|
}
|
|
476
499
|
},
|
|
477
|
-
reset(...
|
|
500
|
+
reset(...s) {
|
|
478
501
|
const n = structuredClone(t);
|
|
479
|
-
|
|
502
|
+
s.length === 0 ? this.fields = n : s.forEach((a) => {
|
|
480
503
|
n[a] !== void 0 && (this.fields[a] = n[a]);
|
|
481
504
|
});
|
|
482
505
|
},
|
|
483
|
-
clearErrors(...
|
|
484
|
-
|
|
506
|
+
clearErrors(...s) {
|
|
507
|
+
s.length === 0 ? this.errors = {} : s.forEach((n) => delete this.errors[n]), this.hasErrors = Object.keys(this.errors).length > 0;
|
|
485
508
|
},
|
|
486
|
-
setErrors(
|
|
487
|
-
this.errors = { ...this.errors, ...
|
|
509
|
+
setErrors(s) {
|
|
510
|
+
this.errors = { ...this.errors, ...s }, this.hasErrors = Object.keys(this.errors).length > 0;
|
|
488
511
|
}
|
|
489
512
|
});
|
|
490
513
|
return X(
|
|
491
|
-
() =>
|
|
514
|
+
() => o.fields,
|
|
492
515
|
() => {
|
|
493
|
-
|
|
516
|
+
o.dirty = !lt(o.fields, t);
|
|
494
517
|
},
|
|
495
518
|
{ immediate: !0, deep: !0 }
|
|
496
|
-
),
|
|
519
|
+
), o;
|
|
497
520
|
}
|
|
498
|
-
function
|
|
499
|
-
const
|
|
521
|
+
function or({ duration: e, isPaused: t, onTimeout: r, immediate: o = !0 }) {
|
|
522
|
+
const s = y(), n = y(0), a = y(e());
|
|
500
523
|
function i() {
|
|
501
|
-
a.value === 1 / 0
|
|
502
|
-
|
|
524
|
+
t() || a.value === 1 / 0 && e() === 1 / 0 || (a.value === 1 / 0 && (a.value = e()), n.value = Date.now(), s.value = window.setTimeout(() => {
|
|
525
|
+
r();
|
|
503
526
|
}, a.value));
|
|
504
527
|
}
|
|
505
528
|
function l() {
|
|
529
|
+
if (!s.value) return;
|
|
506
530
|
f();
|
|
507
531
|
const p = Date.now() - n.value;
|
|
508
532
|
a.value -= p;
|
|
509
533
|
}
|
|
510
534
|
function f() {
|
|
511
|
-
|
|
535
|
+
s.value && (clearTimeout(s.value), s.value = null);
|
|
512
536
|
}
|
|
513
537
|
return X(
|
|
514
538
|
t,
|
|
@@ -519,14 +543,14 @@ function so({ duration: e, isPaused: t, onTimeout: o, immediate: s = !0 }) {
|
|
|
519
543
|
}
|
|
520
544
|
i();
|
|
521
545
|
},
|
|
522
|
-
{ immediate:
|
|
546
|
+
{ immediate: o }
|
|
523
547
|
), tt(() => {
|
|
524
548
|
f();
|
|
525
549
|
}), { cancel: f };
|
|
526
550
|
}
|
|
527
|
-
const
|
|
528
|
-
function
|
|
529
|
-
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 = q(() => A(e.value)),
|
|
551
|
+
const sr = 3, nr = "24px", ar = "16px", ir = 0, lr = 3e3, cr = 16, ur = 45, dr = 10, mr = 0.06, fr = 16, Ce = 4, Ee = 6;
|
|
552
|
+
function pr({ directions: e, swipeThreshold: t, velocityThreshold: r, getElementSize: o, onSwipeOut: s }) {
|
|
553
|
+
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 = q(() => A(e.value)), g = y(null);
|
|
530
554
|
function M(w) {
|
|
531
555
|
return 1 / (1.5 + Math.abs(w) / 20);
|
|
532
556
|
}
|
|
@@ -551,7 +575,7 @@ function ho({ directions: e, swipeThreshold: t, velocityThreshold: o, getElement
|
|
|
551
575
|
return k(c) ? c : null;
|
|
552
576
|
}
|
|
553
577
|
function z(w) {
|
|
554
|
-
return t.px ? t.px : w && t.percent &&
|
|
578
|
+
return t.px ? t.px : w && t.percent && o ? o(w) * t.percent : 1 / 0;
|
|
555
579
|
}
|
|
556
580
|
function G(w) {
|
|
557
581
|
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);
|
|
@@ -559,21 +583,21 @@ function ho({ directions: e, swipeThreshold: t, velocityThreshold: o, getElement
|
|
|
559
583
|
function L(w) {
|
|
560
584
|
if (!n.value) return;
|
|
561
585
|
const c = { x: 0, y: 0 }, v = { x: w.clientX - i.value.x, y: w.clientY - i.value.y };
|
|
562
|
-
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)), !
|
|
563
|
-
if (c[
|
|
564
|
-
const O = v[
|
|
565
|
-
c[
|
|
586
|
+
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 = N(v)), !!g.value) {
|
|
587
|
+
if (c[g.value] = F(v[g.value], p.value[g.value]), c[g.value] === 0 && v[g.value] !== 0) {
|
|
588
|
+
const O = v[g.value] * M(v[g.value]);
|
|
589
|
+
c[g.value] = Math.abs(O) < Math.abs(v[g.value]) ? O : v[g.value];
|
|
566
590
|
}
|
|
567
591
|
a.value = c;
|
|
568
592
|
}
|
|
569
593
|
}
|
|
570
594
|
function _() {
|
|
571
595
|
if (!n.value) return !1;
|
|
572
|
-
const w = Date.now() - (f.value ?? 0), c =
|
|
573
|
-
return O &&
|
|
596
|
+
const w = Date.now() - (f.value ?? 0), c = g.value ? a.value[g.value] : 0, v = Math.abs(c) / w, O = Math.abs(c) >= z(g.value) || v > (r ?? 0.11);
|
|
597
|
+
return O && s(), n.value = !1, g.value = null, a.value = { x: 0, y: 0 }, O;
|
|
574
598
|
}
|
|
575
599
|
function V() {
|
|
576
|
-
n.value = !1,
|
|
600
|
+
n.value = !1, g.value = null, a.value = { x: 0, y: 0 };
|
|
577
601
|
}
|
|
578
602
|
function B() {
|
|
579
603
|
return l.value.x <= Ee && l.value.y <= Ee;
|
|
@@ -588,48 +612,48 @@ function ho({ directions: e, swipeThreshold: t, velocityThreshold: o, getElement
|
|
|
588
612
|
isTapGesture: B
|
|
589
613
|
};
|
|
590
614
|
}
|
|
591
|
-
const
|
|
615
|
+
const hr = 45, br = 0.11, oe = y(!1), ke = y(!1), Ie = y(300), J = y(null), Ne = ue({}), _e = ge(null);
|
|
592
616
|
function ct(e, t = {}) {
|
|
593
|
-
J.value && clearTimeout(J.value), _e.value = e, Object.assign(Ne, t), ke.value = !0,
|
|
594
|
-
|
|
617
|
+
J.value && clearTimeout(J.value), _e.value = e, Object.assign(Ne, t), ke.value = !0, oe.value = !0, J.value = window.setTimeout(() => {
|
|
618
|
+
oe.value = !1;
|
|
595
619
|
}, Ie.value);
|
|
596
620
|
}
|
|
597
621
|
function ut() {
|
|
598
|
-
J.value && clearTimeout(J.value), ke.value = !1,
|
|
599
|
-
|
|
622
|
+
J.value && clearTimeout(J.value), ke.value = !1, oe.value = !0, J.value = window.setTimeout(() => {
|
|
623
|
+
oe.value = !1;
|
|
600
624
|
}, Ie.value);
|
|
601
625
|
}
|
|
602
|
-
function
|
|
603
|
-
return { isOpen: ke, isAnimating:
|
|
626
|
+
function gr() {
|
|
627
|
+
return { isOpen: ke, isAnimating: oe, animationTime: Ie, props: Ne, component: _e, open: ct, close: ut };
|
|
604
628
|
}
|
|
605
629
|
let pe = null;
|
|
606
630
|
function dt() {
|
|
607
|
-
const e = y(!1), t = y(!1),
|
|
631
|
+
const e = y(!1), t = y(!1), r = y(200), o = y(null), s = ge({}), n = ge(null);
|
|
608
632
|
function a(l, f = {}) {
|
|
609
|
-
var p,
|
|
633
|
+
var p, g;
|
|
610
634
|
if (t.value) {
|
|
611
635
|
i("programmatic");
|
|
612
636
|
return;
|
|
613
637
|
}
|
|
614
|
-
|
|
638
|
+
o.value && clearTimeout(o.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), o.value = window.setTimeout(() => {
|
|
615
639
|
e.value = !1;
|
|
616
|
-
},
|
|
640
|
+
}, r.value);
|
|
617
641
|
}
|
|
618
642
|
function i(l) {
|
|
619
643
|
var f, p;
|
|
620
|
-
t.value && (
|
|
621
|
-
e.value = !1, n.value = null,
|
|
622
|
-
},
|
|
644
|
+
t.value && (o.value && clearTimeout(o.value), !(l !== "programmatic" && s.value.preventClose) && (l === "escape" && !(s.value.closeOnEsc ?? !0) || l === "backdrop" && !(s.value.closeOnBackdrop ?? !0) || l === "swipe" && !(s.value.closeOnSwipe ?? !0) || (t.value = !1, e.value = !0, (p = (f = s.value) == null ? void 0 : f.onClose) == null || p.call(f, l), o.value = window.setTimeout(() => {
|
|
645
|
+
e.value = !1, n.value = null, s.value = {};
|
|
646
|
+
}, r.value))));
|
|
623
647
|
}
|
|
624
|
-
return { isOpen: De(t), isAnimating: De(e), animationTime:
|
|
648
|
+
return { isOpen: De(t), isAnimating: De(e), animationTime: r, props: s, component: n, open: a, close: i };
|
|
625
649
|
}
|
|
626
650
|
function ve() {
|
|
627
651
|
return pe || (pe = dt()), pe;
|
|
628
652
|
}
|
|
629
|
-
function
|
|
653
|
+
function vr() {
|
|
630
654
|
return ve();
|
|
631
655
|
}
|
|
632
|
-
const
|
|
656
|
+
const wr = {
|
|
633
657
|
open: (e, t) => ve().open(e, t),
|
|
634
658
|
close: (e) => ve().close(e)
|
|
635
659
|
}, mt = {
|
|
@@ -640,10 +664,10 @@ const yo = {
|
|
|
640
664
|
function Oe(e) {
|
|
641
665
|
return String(e ?? "").toLowerCase().replace(/\s+/g, " ").trim();
|
|
642
666
|
}
|
|
643
|
-
function
|
|
644
|
-
return (
|
|
645
|
-
const n =
|
|
646
|
-
if (n instanceof Date && a instanceof Date ||
|
|
667
|
+
function yr(e, t = 1, r = ["date", "date_released"]) {
|
|
668
|
+
return (o, s) => {
|
|
669
|
+
const n = o[e], a = s[e];
|
|
670
|
+
if (n instanceof Date && a instanceof Date || r.includes(String(e))) {
|
|
647
671
|
const f = new Date(String(n));
|
|
648
672
|
return (new Date(String(a)).getTime() - f.getTime()) * t;
|
|
649
673
|
}
|
|
@@ -651,27 +675,27 @@ function xo(e, t = 1, o = ["date", "date_released"]) {
|
|
|
651
675
|
return !isNaN(i) && !isNaN(l) ? (i - l) * t : String(n).toLowerCase().replace(/\s+/g, " ").localeCompare(String(a).toLowerCase().replace(/\s+/g, " ")) * t;
|
|
652
676
|
};
|
|
653
677
|
}
|
|
654
|
-
function
|
|
655
|
-
return (
|
|
656
|
-
for (const { key:
|
|
657
|
-
const a =
|
|
678
|
+
function xr(e, t = 1) {
|
|
679
|
+
return (r, o) => {
|
|
680
|
+
for (const { key: s, compareFn: n } of e) {
|
|
681
|
+
const a = s ? r[s] ?? "" : void 0, i = s ? o[s] ?? "" : void 0;
|
|
658
682
|
let l;
|
|
659
|
-
if (n ? l =
|
|
683
|
+
if (n ? l = s ? n(a, i) : n(r, o) : l = ft(a, i), l !== 0) return l * t;
|
|
660
684
|
}
|
|
661
685
|
return 0;
|
|
662
686
|
};
|
|
663
687
|
}
|
|
664
688
|
function ft(e, t) {
|
|
665
|
-
const
|
|
666
|
-
if (!isNaN(
|
|
667
|
-
return
|
|
668
|
-
const
|
|
669
|
-
return !isNaN(
|
|
689
|
+
const r = parseFloat(e), o = parseFloat(t);
|
|
690
|
+
if (!isNaN(r) && !isNaN(o))
|
|
691
|
+
return r - o;
|
|
692
|
+
const s = new Date(e), n = new Date(t);
|
|
693
|
+
return !isNaN(s.getTime()) && !isNaN(n.getTime()) ? s.getTime() - n.getTime() : mt.stringInsensitive(e, t);
|
|
670
694
|
}
|
|
671
695
|
const Te = "-", pt = (e) => {
|
|
672
|
-
const t =
|
|
673
|
-
conflictingClassGroups:
|
|
674
|
-
conflictingClassGroupModifiers:
|
|
696
|
+
const t = bt(e), {
|
|
697
|
+
conflictingClassGroups: r,
|
|
698
|
+
conflictingClassGroupModifiers: o
|
|
675
699
|
} = e;
|
|
676
700
|
return {
|
|
677
701
|
getClassGroupId: (a) => {
|
|
@@ -679,17 +703,17 @@ const Te = "-", pt = (e) => {
|
|
|
679
703
|
return i[0] === "" && i.length !== 1 && i.shift(), Ve(i, t) || ht(a);
|
|
680
704
|
},
|
|
681
705
|
getConflictingClassGroupIds: (a, i) => {
|
|
682
|
-
const l =
|
|
683
|
-
return i &&
|
|
706
|
+
const l = r[a] || [];
|
|
707
|
+
return i && o[a] ? [...l, ...o[a]] : l;
|
|
684
708
|
}
|
|
685
709
|
};
|
|
686
710
|
}, Ve = (e, t) => {
|
|
687
711
|
var a;
|
|
688
712
|
if (e.length === 0)
|
|
689
713
|
return t.classGroupId;
|
|
690
|
-
const
|
|
691
|
-
if (
|
|
692
|
-
return
|
|
714
|
+
const r = e[0], o = t.nextPart.get(r), s = o ? Ve(e.slice(1), o) : void 0;
|
|
715
|
+
if (s)
|
|
716
|
+
return s;
|
|
693
717
|
if (t.validators.length === 0)
|
|
694
718
|
return;
|
|
695
719
|
const n = e.join(Te);
|
|
@@ -698,52 +722,52 @@ const Te = "-", pt = (e) => {
|
|
|
698
722
|
}) => i(n))) == null ? void 0 : a.classGroupId;
|
|
699
723
|
}, ze = /^\[(.+)\]$/, ht = (e) => {
|
|
700
724
|
if (ze.test(e)) {
|
|
701
|
-
const t = ze.exec(e)[1],
|
|
702
|
-
if (
|
|
703
|
-
return "arbitrary.." +
|
|
725
|
+
const t = ze.exec(e)[1], r = t == null ? void 0 : t.substring(0, t.indexOf(":"));
|
|
726
|
+
if (r)
|
|
727
|
+
return "arbitrary.." + r;
|
|
704
728
|
}
|
|
705
|
-
},
|
|
729
|
+
}, bt = (e) => {
|
|
706
730
|
const {
|
|
707
731
|
theme: t,
|
|
708
|
-
classGroups:
|
|
709
|
-
} = e,
|
|
732
|
+
classGroups: r
|
|
733
|
+
} = e, o = {
|
|
710
734
|
nextPart: /* @__PURE__ */ new Map(),
|
|
711
735
|
validators: []
|
|
712
736
|
};
|
|
713
|
-
for (const
|
|
714
|
-
we(
|
|
715
|
-
return
|
|
716
|
-
}, we = (e, t,
|
|
717
|
-
e.forEach((
|
|
718
|
-
if (typeof
|
|
719
|
-
const n =
|
|
720
|
-
n.classGroupId =
|
|
737
|
+
for (const s in r)
|
|
738
|
+
we(r[s], o, s, t);
|
|
739
|
+
return o;
|
|
740
|
+
}, we = (e, t, r, o) => {
|
|
741
|
+
e.forEach((s) => {
|
|
742
|
+
if (typeof s == "string") {
|
|
743
|
+
const n = s === "" ? t : Le(t, s);
|
|
744
|
+
n.classGroupId = r;
|
|
721
745
|
return;
|
|
722
746
|
}
|
|
723
|
-
if (typeof
|
|
724
|
-
if (
|
|
725
|
-
we(
|
|
747
|
+
if (typeof s == "function") {
|
|
748
|
+
if (gt(s)) {
|
|
749
|
+
we(s(o), t, r, o);
|
|
726
750
|
return;
|
|
727
751
|
}
|
|
728
752
|
t.validators.push({
|
|
729
|
-
validator:
|
|
730
|
-
classGroupId:
|
|
753
|
+
validator: s,
|
|
754
|
+
classGroupId: r
|
|
731
755
|
});
|
|
732
756
|
return;
|
|
733
757
|
}
|
|
734
|
-
Object.entries(
|
|
735
|
-
we(a, Le(t, n),
|
|
758
|
+
Object.entries(s).forEach(([n, a]) => {
|
|
759
|
+
we(a, Le(t, n), r, o);
|
|
736
760
|
});
|
|
737
761
|
});
|
|
738
762
|
}, Le = (e, t) => {
|
|
739
|
-
let
|
|
740
|
-
return t.split(Te).forEach((
|
|
741
|
-
|
|
763
|
+
let r = e;
|
|
764
|
+
return t.split(Te).forEach((o) => {
|
|
765
|
+
r.nextPart.has(o) || r.nextPart.set(o, {
|
|
742
766
|
nextPart: /* @__PURE__ */ new Map(),
|
|
743
767
|
validators: []
|
|
744
|
-
}),
|
|
745
|
-
}),
|
|
746
|
-
},
|
|
768
|
+
}), r = r.nextPart.get(o);
|
|
769
|
+
}), r;
|
|
770
|
+
}, gt = (e) => e.isThemeGetter, vt = (e) => {
|
|
747
771
|
if (e < 1)
|
|
748
772
|
return {
|
|
749
773
|
get: () => {
|
|
@@ -751,35 +775,35 @@ const Te = "-", pt = (e) => {
|
|
|
751
775
|
set: () => {
|
|
752
776
|
}
|
|
753
777
|
};
|
|
754
|
-
let t = 0,
|
|
755
|
-
const
|
|
756
|
-
|
|
778
|
+
let t = 0, r = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map();
|
|
779
|
+
const s = (n, a) => {
|
|
780
|
+
r.set(n, a), t++, t > e && (t = 0, o = r, r = /* @__PURE__ */ new Map());
|
|
757
781
|
};
|
|
758
782
|
return {
|
|
759
783
|
get(n) {
|
|
760
|
-
let a =
|
|
784
|
+
let a = r.get(n);
|
|
761
785
|
if (a !== void 0)
|
|
762
786
|
return a;
|
|
763
|
-
if ((a =
|
|
764
|
-
return
|
|
787
|
+
if ((a = o.get(n)) !== void 0)
|
|
788
|
+
return s(n, a), a;
|
|
765
789
|
},
|
|
766
790
|
set(n, a) {
|
|
767
|
-
|
|
791
|
+
r.has(n) ? r.set(n, a) : s(n, a);
|
|
768
792
|
}
|
|
769
793
|
};
|
|
770
794
|
}, ye = "!", xe = ":", wt = xe.length, yt = (e) => {
|
|
771
795
|
const {
|
|
772
796
|
prefix: t,
|
|
773
|
-
experimentalParseClassName:
|
|
797
|
+
experimentalParseClassName: r
|
|
774
798
|
} = e;
|
|
775
|
-
let
|
|
799
|
+
let o = (s) => {
|
|
776
800
|
const n = [];
|
|
777
801
|
let a = 0, i = 0, l = 0, f;
|
|
778
|
-
for (let k = 0; k <
|
|
779
|
-
let A =
|
|
802
|
+
for (let k = 0; k < s.length; k++) {
|
|
803
|
+
let A = s[k];
|
|
780
804
|
if (a === 0 && i === 0) {
|
|
781
805
|
if (A === xe) {
|
|
782
|
-
n.push(
|
|
806
|
+
n.push(s.slice(l, k)), l = k + wt;
|
|
783
807
|
continue;
|
|
784
808
|
}
|
|
785
809
|
if (A === "/") {
|
|
@@ -789,17 +813,17 @@ const Te = "-", pt = (e) => {
|
|
|
789
813
|
}
|
|
790
814
|
A === "[" ? a++ : A === "]" ? a-- : A === "(" ? i++ : A === ")" && i--;
|
|
791
815
|
}
|
|
792
|
-
const p = n.length === 0 ?
|
|
816
|
+
const p = n.length === 0 ? s : s.substring(l), g = xt(p), M = g !== p, F = f && f > l ? f - l : void 0;
|
|
793
817
|
return {
|
|
794
818
|
modifiers: n,
|
|
795
819
|
hasImportantModifier: M,
|
|
796
|
-
baseClassName:
|
|
820
|
+
baseClassName: g,
|
|
797
821
|
maybePostfixModifierPosition: F
|
|
798
822
|
};
|
|
799
823
|
};
|
|
800
824
|
if (t) {
|
|
801
|
-
const
|
|
802
|
-
|
|
825
|
+
const s = t + xe, n = o;
|
|
826
|
+
o = (a) => a.startsWith(s) ? n(a.substring(s.length)) : {
|
|
803
827
|
isExternal: !0,
|
|
804
828
|
modifiers: [],
|
|
805
829
|
hasImportantModifier: !1,
|
|
@@ -807,24 +831,24 @@ const Te = "-", pt = (e) => {
|
|
|
807
831
|
maybePostfixModifierPosition: void 0
|
|
808
832
|
};
|
|
809
833
|
}
|
|
810
|
-
if (
|
|
811
|
-
const
|
|
812
|
-
|
|
834
|
+
if (r) {
|
|
835
|
+
const s = o;
|
|
836
|
+
o = (n) => r({
|
|
813
837
|
className: n,
|
|
814
|
-
parseClassName:
|
|
838
|
+
parseClassName: s
|
|
815
839
|
});
|
|
816
840
|
}
|
|
817
|
-
return
|
|
841
|
+
return o;
|
|
818
842
|
}, xt = (e) => e.endsWith(ye) ? e.substring(0, e.length - 1) : e.startsWith(ye) ? e.substring(1) : e, kt = (e) => {
|
|
819
|
-
const t = Object.fromEntries(e.orderSensitiveModifiers.map((
|
|
820
|
-
return (
|
|
821
|
-
if (
|
|
822
|
-
return
|
|
823
|
-
const
|
|
843
|
+
const t = Object.fromEntries(e.orderSensitiveModifiers.map((o) => [o, !0]));
|
|
844
|
+
return (o) => {
|
|
845
|
+
if (o.length <= 1)
|
|
846
|
+
return o;
|
|
847
|
+
const s = [];
|
|
824
848
|
let n = [];
|
|
825
|
-
return
|
|
826
|
-
a[0] === "[" || t[a] ? (
|
|
827
|
-
}),
|
|
849
|
+
return o.forEach((a) => {
|
|
850
|
+
a[0] === "[" || t[a] ? (s.push(...n.sort(), a), n = []) : n.push(a);
|
|
851
|
+
}), s.push(...n.sort()), s;
|
|
828
852
|
};
|
|
829
853
|
}, It = (e) => ({
|
|
830
854
|
cache: vt(e.cacheSize),
|
|
@@ -833,31 +857,31 @@ const Te = "-", pt = (e) => {
|
|
|
833
857
|
...pt(e)
|
|
834
858
|
}), Tt = /\s+/, St = (e, t) => {
|
|
835
859
|
const {
|
|
836
|
-
parseClassName:
|
|
837
|
-
getClassGroupId:
|
|
838
|
-
getConflictingClassGroupIds:
|
|
860
|
+
parseClassName: r,
|
|
861
|
+
getClassGroupId: o,
|
|
862
|
+
getConflictingClassGroupIds: s,
|
|
839
863
|
sortModifiers: n
|
|
840
864
|
} = t, a = [], i = e.trim().split(Tt);
|
|
841
865
|
let l = "";
|
|
842
866
|
for (let f = i.length - 1; f >= 0; f -= 1) {
|
|
843
867
|
const p = i[f], {
|
|
844
|
-
isExternal:
|
|
868
|
+
isExternal: g,
|
|
845
869
|
modifiers: M,
|
|
846
870
|
hasImportantModifier: F,
|
|
847
871
|
baseClassName: k,
|
|
848
872
|
maybePostfixModifierPosition: A
|
|
849
|
-
} =
|
|
850
|
-
if (
|
|
873
|
+
} = r(p);
|
|
874
|
+
if (g) {
|
|
851
875
|
l = p + (l.length > 0 ? " " + l : l);
|
|
852
876
|
continue;
|
|
853
877
|
}
|
|
854
|
-
let N = !!A, z =
|
|
878
|
+
let N = !!A, z = o(N ? k.substring(0, A) : k);
|
|
855
879
|
if (!z) {
|
|
856
880
|
if (!N) {
|
|
857
881
|
l = p + (l.length > 0 ? " " + l : l);
|
|
858
882
|
continue;
|
|
859
883
|
}
|
|
860
|
-
if (z =
|
|
884
|
+
if (z = o(k), !z) {
|
|
861
885
|
l = p + (l.length > 0 ? " " + l : l);
|
|
862
886
|
continue;
|
|
863
887
|
}
|
|
@@ -867,7 +891,7 @@ const Te = "-", pt = (e) => {
|
|
|
867
891
|
if (a.includes(_))
|
|
868
892
|
continue;
|
|
869
893
|
a.push(_);
|
|
870
|
-
const V =
|
|
894
|
+
const V = s(z, N);
|
|
871
895
|
for (let B = 0; B < V.length; ++B) {
|
|
872
896
|
const w = V[B];
|
|
873
897
|
a.push(L + w);
|
|
@@ -877,52 +901,52 @@ const Te = "-", pt = (e) => {
|
|
|
877
901
|
return l;
|
|
878
902
|
};
|
|
879
903
|
function Mt() {
|
|
880
|
-
let e = 0, t,
|
|
904
|
+
let e = 0, t, r, o = "";
|
|
881
905
|
for (; e < arguments.length; )
|
|
882
|
-
(t = arguments[e++]) && (
|
|
883
|
-
return
|
|
906
|
+
(t = arguments[e++]) && (r = $e(t)) && (o && (o += " "), o += r);
|
|
907
|
+
return o;
|
|
884
908
|
}
|
|
885
909
|
const $e = (e) => {
|
|
886
910
|
if (typeof e == "string")
|
|
887
911
|
return e;
|
|
888
|
-
let t,
|
|
889
|
-
for (let
|
|
890
|
-
e[
|
|
891
|
-
return
|
|
912
|
+
let t, r = "";
|
|
913
|
+
for (let o = 0; o < e.length; o++)
|
|
914
|
+
e[o] && (t = $e(e[o])) && (r && (r += " "), r += t);
|
|
915
|
+
return r;
|
|
892
916
|
};
|
|
893
917
|
function At(e, ...t) {
|
|
894
|
-
let o, s,
|
|
918
|
+
let r, o, s, n = a;
|
|
895
919
|
function a(l) {
|
|
896
|
-
const f = t.reduce((p,
|
|
897
|
-
return
|
|
920
|
+
const f = t.reduce((p, g) => g(p), e());
|
|
921
|
+
return r = It(f), o = r.cache.get, s = r.cache.set, n = i, i(l);
|
|
898
922
|
}
|
|
899
923
|
function i(l) {
|
|
900
|
-
const f =
|
|
924
|
+
const f = o(l);
|
|
901
925
|
if (f)
|
|
902
926
|
return f;
|
|
903
|
-
const p = St(l,
|
|
904
|
-
return
|
|
927
|
+
const p = St(l, r);
|
|
928
|
+
return s(l, p), p;
|
|
905
929
|
}
|
|
906
930
|
return function() {
|
|
907
931
|
return n(Mt.apply(null, arguments));
|
|
908
932
|
};
|
|
909
933
|
}
|
|
910
934
|
const T = (e) => {
|
|
911
|
-
const t = (
|
|
935
|
+
const t = (r) => r[e] || [];
|
|
912
936
|
return t.isThemeGetter = !0, t;
|
|
913
|
-
}, Ge = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Ye = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Dt = /^\d+\/\d+$/, Pt = /^(\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) => Dt.test(e),
|
|
937
|
+
}, Ge = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Ye = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Dt = /^\d+\/\d+$/, Pt = /^(\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) => Dt.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) => Pt.test(e), Lt = () => !0, Bt = (e) => (
|
|
914
938
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
915
939
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
916
940
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
917
941
|
Ct.test(e) && !Et.test(e)
|
|
918
|
-
), je = () => !1, Rt = (e) => Ot.test(e), Ft = (e) => zt.test(e), Nt = (e) => !u(e) && !d(e), _t = (e) => Z(e, Ue, je), u = (e) => Ge.test(e),
|
|
919
|
-
const
|
|
920
|
-
return
|
|
921
|
-
}, Q = (e, t,
|
|
922
|
-
const
|
|
923
|
-
return
|
|
942
|
+
), je = () => !1, Rt = (e) => Ot.test(e), Ft = (e) => zt.test(e), Nt = (e) => !u(e) && !d(e), _t = (e) => Z(e, Ue, je), u = (e) => Ge.test(e), H = (e) => Z(e, We, Bt), be = (e) => Z(e, jt, b), Be = (e) => Z(e, Ke, je), Vt = (e) => Z(e, He, Ft), le = (e) => Z(e, qe, Rt), d = (e) => Ye.test(e), re = (e) => Q(e, We), $t = (e) => Q(e, Kt), Re = (e) => Q(e, Ke), Gt = (e) => Q(e, Ue), Yt = (e) => Q(e, He), ce = (e) => Q(e, qe, !0), Z = (e, t, r) => {
|
|
943
|
+
const o = Ge.exec(e);
|
|
944
|
+
return o ? o[1] ? t(o[1]) : r(o[2]) : !1;
|
|
945
|
+
}, Q = (e, t, r = !1) => {
|
|
946
|
+
const o = Ye.exec(e);
|
|
947
|
+
return o ? o[1] ? t(o[1]) : r : !1;
|
|
924
948
|
}, 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 = () => {
|
|
925
|
-
const e = T("color"), t = T("font"),
|
|
949
|
+
const e = T("color"), t = T("font"), r = T("text"), o = 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"), F = T("drop-shadow"), k = T("blur"), A = T("perspective"), N = T("aspect"), z = T("ease"), G = T("animate"), L = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], _ = () => [
|
|
926
950
|
"center",
|
|
927
951
|
"top",
|
|
928
952
|
"bottom",
|
|
@@ -942,13 +966,13 @@ const T = (e) => {
|
|
|
942
966
|
"left-bottom"
|
|
943
967
|
], V = () => [..._(), d, u], B = () => ["auto", "hidden", "clip", "visible", "scroll"], w = () => ["auto", "contain", "none"], c = () => [d, u, l], v = () => [W, "full", "auto", ...c()], O = () => [Y, "none", "subgrid", d, u], ee = () => ["auto", {
|
|
944
968
|
span: ["full", Y, d, u]
|
|
945
|
-
}, Y, d, u],
|
|
969
|
+
}, Y, d, u], K = () => [Y, "auto", d, u], te = () => ["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()], D = () => [W, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...c()], m = () => [e, d, u], U = () => [..._(), Re, Be, {
|
|
946
970
|
position: [d, u]
|
|
947
971
|
}], R = () => ["no-repeat", {
|
|
948
972
|
repeat: ["", "x", "y", "space", "round"]
|
|
949
973
|
}], Se = () => ["auto", "cover", "contain", Gt, _t, {
|
|
950
974
|
size: [d, u]
|
|
951
|
-
}], de = () => [he,
|
|
975
|
+
}], de = () => [he, re, H], P = () => [
|
|
952
976
|
// Deprecated since Tailwind CSS v4.0.0
|
|
953
977
|
"",
|
|
954
978
|
"none",
|
|
@@ -956,14 +980,14 @@ const T = (e) => {
|
|
|
956
980
|
f,
|
|
957
981
|
d,
|
|
958
982
|
u
|
|
959
|
-
],
|
|
983
|
+
], E = () => ["", b, re, H], se = () => ["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 = () => [
|
|
960
984
|
// Deprecated since Tailwind CSS v4.0.0
|
|
961
985
|
"",
|
|
962
986
|
"none",
|
|
963
987
|
k,
|
|
964
988
|
d,
|
|
965
989
|
u
|
|
966
|
-
], ne = () => ["none",
|
|
990
|
+
], ne = () => ["none", b, d, u], ae = () => ["none", b, d, u], me = () => [b, d, u], ie = () => [W, "full", ...c()];
|
|
967
991
|
return {
|
|
968
992
|
cacheSize: 500,
|
|
969
993
|
theme: {
|
|
@@ -982,7 +1006,7 @@ const T = (e) => {
|
|
|
982
1006
|
perspective: ["dramatic", "near", "normal", "midrange", "distant", "none"],
|
|
983
1007
|
radius: [$],
|
|
984
1008
|
shadow: [$],
|
|
985
|
-
spacing: ["px",
|
|
1009
|
+
spacing: ["px", b],
|
|
986
1010
|
text: [$],
|
|
987
1011
|
"text-shadow": [$],
|
|
988
1012
|
tracking: ["tighter", "tight", "normal", "wide", "wider", "widest"]
|
|
@@ -1009,7 +1033,7 @@ const T = (e) => {
|
|
|
1009
1033
|
* @see https://tailwindcss.com/docs/columns
|
|
1010
1034
|
*/
|
|
1011
1035
|
columns: [{
|
|
1012
|
-
columns: [
|
|
1036
|
+
columns: [b, u, d, i]
|
|
1013
1037
|
}],
|
|
1014
1038
|
/**
|
|
1015
1039
|
* Break After
|
|
@@ -1240,21 +1264,21 @@ const T = (e) => {
|
|
|
1240
1264
|
* @see https://tailwindcss.com/docs/flex
|
|
1241
1265
|
*/
|
|
1242
1266
|
flex: [{
|
|
1243
|
-
flex: [
|
|
1267
|
+
flex: [b, W, "auto", "initial", "none", u]
|
|
1244
1268
|
}],
|
|
1245
1269
|
/**
|
|
1246
1270
|
* Flex Grow
|
|
1247
1271
|
* @see https://tailwindcss.com/docs/flex-grow
|
|
1248
1272
|
*/
|
|
1249
1273
|
grow: [{
|
|
1250
|
-
grow: ["",
|
|
1274
|
+
grow: ["", b, d, u]
|
|
1251
1275
|
}],
|
|
1252
1276
|
/**
|
|
1253
1277
|
* Flex Shrink
|
|
1254
1278
|
* @see https://tailwindcss.com/docs/flex-shrink
|
|
1255
1279
|
*/
|
|
1256
1280
|
shrink: [{
|
|
1257
|
-
shrink: ["",
|
|
1281
|
+
shrink: ["", b, d, u]
|
|
1258
1282
|
}],
|
|
1259
1283
|
/**
|
|
1260
1284
|
* Order
|
|
@@ -1282,14 +1306,14 @@ const T = (e) => {
|
|
|
1282
1306
|
* @see https://tailwindcss.com/docs/grid-column
|
|
1283
1307
|
*/
|
|
1284
1308
|
"col-start": [{
|
|
1285
|
-
"col-start":
|
|
1309
|
+
"col-start": K()
|
|
1286
1310
|
}],
|
|
1287
1311
|
/**
|
|
1288
1312
|
* Grid Column End
|
|
1289
1313
|
* @see https://tailwindcss.com/docs/grid-column
|
|
1290
1314
|
*/
|
|
1291
1315
|
"col-end": [{
|
|
1292
|
-
"col-end":
|
|
1316
|
+
"col-end": K()
|
|
1293
1317
|
}],
|
|
1294
1318
|
/**
|
|
1295
1319
|
* Grid Template Rows
|
|
@@ -1310,14 +1334,14 @@ const T = (e) => {
|
|
|
1310
1334
|
* @see https://tailwindcss.com/docs/grid-row
|
|
1311
1335
|
*/
|
|
1312
1336
|
"row-start": [{
|
|
1313
|
-
"row-start":
|
|
1337
|
+
"row-start": K()
|
|
1314
1338
|
}],
|
|
1315
1339
|
/**
|
|
1316
1340
|
* Grid Row End
|
|
1317
1341
|
* @see https://tailwindcss.com/docs/grid-row
|
|
1318
1342
|
*/
|
|
1319
1343
|
"row-end": [{
|
|
1320
|
-
"row-end":
|
|
1344
|
+
"row-end": K()
|
|
1321
1345
|
}],
|
|
1322
1346
|
/**
|
|
1323
1347
|
* Grid Auto Flow
|
|
@@ -1656,7 +1680,7 @@ const T = (e) => {
|
|
|
1656
1680
|
* @see https://tailwindcss.com/docs/font-size
|
|
1657
1681
|
*/
|
|
1658
1682
|
"font-size": [{
|
|
1659
|
-
text: ["base",
|
|
1683
|
+
text: ["base", r, re, H]
|
|
1660
1684
|
}],
|
|
1661
1685
|
/**
|
|
1662
1686
|
* Font Smoothing
|
|
@@ -1673,7 +1697,7 @@ const T = (e) => {
|
|
|
1673
1697
|
* @see https://tailwindcss.com/docs/font-weight
|
|
1674
1698
|
*/
|
|
1675
1699
|
"font-weight": [{
|
|
1676
|
-
font: [
|
|
1700
|
+
font: [o, d, be]
|
|
1677
1701
|
}],
|
|
1678
1702
|
/**
|
|
1679
1703
|
* Font Stretch
|
|
@@ -1724,14 +1748,14 @@ const T = (e) => {
|
|
|
1724
1748
|
* @see https://tailwindcss.com/docs/letter-spacing
|
|
1725
1749
|
*/
|
|
1726
1750
|
tracking: [{
|
|
1727
|
-
tracking: [
|
|
1751
|
+
tracking: [s, d, u]
|
|
1728
1752
|
}],
|
|
1729
1753
|
/**
|
|
1730
1754
|
* Line Clamp
|
|
1731
1755
|
* @see https://tailwindcss.com/docs/line-clamp
|
|
1732
1756
|
*/
|
|
1733
1757
|
"line-clamp": [{
|
|
1734
|
-
"line-clamp": [
|
|
1758
|
+
"line-clamp": [b, "none", d, be]
|
|
1735
1759
|
}],
|
|
1736
1760
|
/**
|
|
1737
1761
|
* Line Height
|
|
@@ -1797,14 +1821,14 @@ const T = (e) => {
|
|
|
1797
1821
|
* @see https://tailwindcss.com/docs/text-decoration-style
|
|
1798
1822
|
*/
|
|
1799
1823
|
"text-decoration-style": [{
|
|
1800
|
-
decoration: [...
|
|
1824
|
+
decoration: [...se(), "wavy"]
|
|
1801
1825
|
}],
|
|
1802
1826
|
/**
|
|
1803
1827
|
* Text Decoration Thickness
|
|
1804
1828
|
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
|
1805
1829
|
*/
|
|
1806
1830
|
"text-decoration-thickness": [{
|
|
1807
|
-
decoration: [
|
|
1831
|
+
decoration: [b, "from-font", "auto", d, H]
|
|
1808
1832
|
}],
|
|
1809
1833
|
/**
|
|
1810
1834
|
* Text Decoration Color
|
|
@@ -1818,7 +1842,7 @@ const T = (e) => {
|
|
|
1818
1842
|
* @see https://tailwindcss.com/docs/text-underline-offset
|
|
1819
1843
|
*/
|
|
1820
1844
|
"underline-offset": [{
|
|
1821
|
-
"underline-offset": [
|
|
1845
|
+
"underline-offset": [b, "auto", d, u]
|
|
1822
1846
|
}],
|
|
1823
1847
|
/**
|
|
1824
1848
|
* Text Transform
|
|
@@ -2106,70 +2130,70 @@ const T = (e) => {
|
|
|
2106
2130
|
* @see https://tailwindcss.com/docs/border-width
|
|
2107
2131
|
*/
|
|
2108
2132
|
"border-w": [{
|
|
2109
|
-
border:
|
|
2133
|
+
border: E()
|
|
2110
2134
|
}],
|
|
2111
2135
|
/**
|
|
2112
2136
|
* Border Width X
|
|
2113
2137
|
* @see https://tailwindcss.com/docs/border-width
|
|
2114
2138
|
*/
|
|
2115
2139
|
"border-w-x": [{
|
|
2116
|
-
"border-x":
|
|
2140
|
+
"border-x": E()
|
|
2117
2141
|
}],
|
|
2118
2142
|
/**
|
|
2119
2143
|
* Border Width Y
|
|
2120
2144
|
* @see https://tailwindcss.com/docs/border-width
|
|
2121
2145
|
*/
|
|
2122
2146
|
"border-w-y": [{
|
|
2123
|
-
"border-y":
|
|
2147
|
+
"border-y": E()
|
|
2124
2148
|
}],
|
|
2125
2149
|
/**
|
|
2126
2150
|
* Border Width Start
|
|
2127
2151
|
* @see https://tailwindcss.com/docs/border-width
|
|
2128
2152
|
*/
|
|
2129
2153
|
"border-w-s": [{
|
|
2130
|
-
"border-s":
|
|
2154
|
+
"border-s": E()
|
|
2131
2155
|
}],
|
|
2132
2156
|
/**
|
|
2133
2157
|
* Border Width End
|
|
2134
2158
|
* @see https://tailwindcss.com/docs/border-width
|
|
2135
2159
|
*/
|
|
2136
2160
|
"border-w-e": [{
|
|
2137
|
-
"border-e":
|
|
2161
|
+
"border-e": E()
|
|
2138
2162
|
}],
|
|
2139
2163
|
/**
|
|
2140
2164
|
* Border Width Top
|
|
2141
2165
|
* @see https://tailwindcss.com/docs/border-width
|
|
2142
2166
|
*/
|
|
2143
2167
|
"border-w-t": [{
|
|
2144
|
-
"border-t":
|
|
2168
|
+
"border-t": E()
|
|
2145
2169
|
}],
|
|
2146
2170
|
/**
|
|
2147
2171
|
* Border Width Right
|
|
2148
2172
|
* @see https://tailwindcss.com/docs/border-width
|
|
2149
2173
|
*/
|
|
2150
2174
|
"border-w-r": [{
|
|
2151
|
-
"border-r":
|
|
2175
|
+
"border-r": E()
|
|
2152
2176
|
}],
|
|
2153
2177
|
/**
|
|
2154
2178
|
* Border Width Bottom
|
|
2155
2179
|
* @see https://tailwindcss.com/docs/border-width
|
|
2156
2180
|
*/
|
|
2157
2181
|
"border-w-b": [{
|
|
2158
|
-
"border-b":
|
|
2182
|
+
"border-b": E()
|
|
2159
2183
|
}],
|
|
2160
2184
|
/**
|
|
2161
2185
|
* Border Width Left
|
|
2162
2186
|
* @see https://tailwindcss.com/docs/border-width
|
|
2163
2187
|
*/
|
|
2164
2188
|
"border-w-l": [{
|
|
2165
|
-
"border-l":
|
|
2189
|
+
"border-l": E()
|
|
2166
2190
|
}],
|
|
2167
2191
|
/**
|
|
2168
2192
|
* Divide Width X
|
|
2169
2193
|
* @see https://tailwindcss.com/docs/border-width#between-children
|
|
2170
2194
|
*/
|
|
2171
2195
|
"divide-x": [{
|
|
2172
|
-
"divide-x":
|
|
2196
|
+
"divide-x": E()
|
|
2173
2197
|
}],
|
|
2174
2198
|
/**
|
|
2175
2199
|
* Divide Width X Reverse
|
|
@@ -2181,7 +2205,7 @@ const T = (e) => {
|
|
|
2181
2205
|
* @see https://tailwindcss.com/docs/border-width#between-children
|
|
2182
2206
|
*/
|
|
2183
2207
|
"divide-y": [{
|
|
2184
|
-
"divide-y":
|
|
2208
|
+
"divide-y": E()
|
|
2185
2209
|
}],
|
|
2186
2210
|
/**
|
|
2187
2211
|
* Divide Width Y Reverse
|
|
@@ -2193,14 +2217,14 @@ const T = (e) => {
|
|
|
2193
2217
|
* @see https://tailwindcss.com/docs/border-style
|
|
2194
2218
|
*/
|
|
2195
2219
|
"border-style": [{
|
|
2196
|
-
border: [...
|
|
2220
|
+
border: [...se(), "hidden", "none"]
|
|
2197
2221
|
}],
|
|
2198
2222
|
/**
|
|
2199
2223
|
* Divide Style
|
|
2200
2224
|
* @see https://tailwindcss.com/docs/border-style#setting-the-divider-style
|
|
2201
2225
|
*/
|
|
2202
2226
|
"divide-style": [{
|
|
2203
|
-
divide: [...
|
|
2227
|
+
divide: [...se(), "hidden", "none"]
|
|
2204
2228
|
}],
|
|
2205
2229
|
/**
|
|
2206
2230
|
* Border Color
|
|
@@ -2277,21 +2301,21 @@ const T = (e) => {
|
|
|
2277
2301
|
* @see https://tailwindcss.com/docs/outline-style
|
|
2278
2302
|
*/
|
|
2279
2303
|
"outline-style": [{
|
|
2280
|
-
outline: [...
|
|
2304
|
+
outline: [...se(), "none", "hidden"]
|
|
2281
2305
|
}],
|
|
2282
2306
|
/**
|
|
2283
2307
|
* Outline Offset
|
|
2284
2308
|
* @see https://tailwindcss.com/docs/outline-offset
|
|
2285
2309
|
*/
|
|
2286
2310
|
"outline-offset": [{
|
|
2287
|
-
"outline-offset": [
|
|
2311
|
+
"outline-offset": [b, d, u]
|
|
2288
2312
|
}],
|
|
2289
2313
|
/**
|
|
2290
2314
|
* Outline Width
|
|
2291
2315
|
* @see https://tailwindcss.com/docs/outline-width
|
|
2292
2316
|
*/
|
|
2293
2317
|
"outline-w": [{
|
|
2294
|
-
outline: ["",
|
|
2318
|
+
outline: ["", b, re, H]
|
|
2295
2319
|
}],
|
|
2296
2320
|
/**
|
|
2297
2321
|
* Outline Color
|
|
@@ -2329,7 +2353,7 @@ const T = (e) => {
|
|
|
2329
2353
|
* @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-shadow
|
|
2330
2354
|
*/
|
|
2331
2355
|
"inset-shadow": [{
|
|
2332
|
-
"inset-shadow": ["none",
|
|
2356
|
+
"inset-shadow": ["none", g, ce, le]
|
|
2333
2357
|
}],
|
|
2334
2358
|
/**
|
|
2335
2359
|
* Inset Box Shadow Color
|
|
@@ -2343,7 +2367,7 @@ const T = (e) => {
|
|
|
2343
2367
|
* @see https://tailwindcss.com/docs/box-shadow#adding-a-ring
|
|
2344
2368
|
*/
|
|
2345
2369
|
"ring-w": [{
|
|
2346
|
-
ring:
|
|
2370
|
+
ring: E()
|
|
2347
2371
|
}],
|
|
2348
2372
|
/**
|
|
2349
2373
|
* Ring Width Inset
|
|
@@ -2366,7 +2390,7 @@ const T = (e) => {
|
|
|
2366
2390
|
* @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
|
|
2367
2391
|
*/
|
|
2368
2392
|
"ring-offset-w": [{
|
|
2369
|
-
"ring-offset": [
|
|
2393
|
+
"ring-offset": [b, H]
|
|
2370
2394
|
}],
|
|
2371
2395
|
/**
|
|
2372
2396
|
* Ring Offset Color
|
|
@@ -2382,7 +2406,7 @@ const T = (e) => {
|
|
|
2382
2406
|
* @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-ring
|
|
2383
2407
|
*/
|
|
2384
2408
|
"inset-ring-w": [{
|
|
2385
|
-
"inset-ring":
|
|
2409
|
+
"inset-ring": E()
|
|
2386
2410
|
}],
|
|
2387
2411
|
/**
|
|
2388
2412
|
* Inset Ring Color
|
|
@@ -2410,7 +2434,7 @@ const T = (e) => {
|
|
|
2410
2434
|
* @see https://tailwindcss.com/docs/opacity
|
|
2411
2435
|
*/
|
|
2412
2436
|
opacity: [{
|
|
2413
|
-
opacity: [
|
|
2437
|
+
opacity: [b, d, u]
|
|
2414
2438
|
}],
|
|
2415
2439
|
/**
|
|
2416
2440
|
* Mix Blend Mode
|
|
@@ -2445,7 +2469,7 @@ const T = (e) => {
|
|
|
2445
2469
|
* @see https://tailwindcss.com/docs/mask-image
|
|
2446
2470
|
*/
|
|
2447
2471
|
"mask-image-linear-pos": [{
|
|
2448
|
-
"mask-linear": [
|
|
2472
|
+
"mask-linear": [b]
|
|
2449
2473
|
}],
|
|
2450
2474
|
"mask-image-linear-from-pos": [{
|
|
2451
2475
|
"mask-linear-from": S()
|
|
@@ -2559,7 +2583,7 @@ const T = (e) => {
|
|
|
2559
2583
|
"mask-radial-at": _()
|
|
2560
2584
|
}],
|
|
2561
2585
|
"mask-image-conic-pos": [{
|
|
2562
|
-
"mask-conic": [
|
|
2586
|
+
"mask-conic": [b]
|
|
2563
2587
|
}],
|
|
2564
2588
|
"mask-image-conic-from-pos": [{
|
|
2565
2589
|
"mask-conic-from": S()
|
|
@@ -2650,14 +2674,14 @@ const T = (e) => {
|
|
|
2650
2674
|
* @see https://tailwindcss.com/docs/brightness
|
|
2651
2675
|
*/
|
|
2652
2676
|
brightness: [{
|
|
2653
|
-
brightness: [
|
|
2677
|
+
brightness: [b, d, u]
|
|
2654
2678
|
}],
|
|
2655
2679
|
/**
|
|
2656
2680
|
* Contrast
|
|
2657
2681
|
* @see https://tailwindcss.com/docs/contrast
|
|
2658
2682
|
*/
|
|
2659
2683
|
contrast: [{
|
|
2660
|
-
contrast: [
|
|
2684
|
+
contrast: [b, d, u]
|
|
2661
2685
|
}],
|
|
2662
2686
|
/**
|
|
2663
2687
|
* Drop Shadow
|
|
@@ -2685,35 +2709,35 @@ const T = (e) => {
|
|
|
2685
2709
|
* @see https://tailwindcss.com/docs/grayscale
|
|
2686
2710
|
*/
|
|
2687
2711
|
grayscale: [{
|
|
2688
|
-
grayscale: ["",
|
|
2712
|
+
grayscale: ["", b, d, u]
|
|
2689
2713
|
}],
|
|
2690
2714
|
/**
|
|
2691
2715
|
* Hue Rotate
|
|
2692
2716
|
* @see https://tailwindcss.com/docs/hue-rotate
|
|
2693
2717
|
*/
|
|
2694
2718
|
"hue-rotate": [{
|
|
2695
|
-
"hue-rotate": [
|
|
2719
|
+
"hue-rotate": [b, d, u]
|
|
2696
2720
|
}],
|
|
2697
2721
|
/**
|
|
2698
2722
|
* Invert
|
|
2699
2723
|
* @see https://tailwindcss.com/docs/invert
|
|
2700
2724
|
*/
|
|
2701
2725
|
invert: [{
|
|
2702
|
-
invert: ["",
|
|
2726
|
+
invert: ["", b, d, u]
|
|
2703
2727
|
}],
|
|
2704
2728
|
/**
|
|
2705
2729
|
* Saturate
|
|
2706
2730
|
* @see https://tailwindcss.com/docs/saturate
|
|
2707
2731
|
*/
|
|
2708
2732
|
saturate: [{
|
|
2709
|
-
saturate: [
|
|
2733
|
+
saturate: [b, d, u]
|
|
2710
2734
|
}],
|
|
2711
2735
|
/**
|
|
2712
2736
|
* Sepia
|
|
2713
2737
|
* @see https://tailwindcss.com/docs/sepia
|
|
2714
2738
|
*/
|
|
2715
2739
|
sepia: [{
|
|
2716
|
-
sepia: ["",
|
|
2740
|
+
sepia: ["", b, d, u]
|
|
2717
2741
|
}],
|
|
2718
2742
|
/**
|
|
2719
2743
|
* Backdrop Filter
|
|
@@ -2740,56 +2764,56 @@ const T = (e) => {
|
|
|
2740
2764
|
* @see https://tailwindcss.com/docs/backdrop-brightness
|
|
2741
2765
|
*/
|
|
2742
2766
|
"backdrop-brightness": [{
|
|
2743
|
-
"backdrop-brightness": [
|
|
2767
|
+
"backdrop-brightness": [b, d, u]
|
|
2744
2768
|
}],
|
|
2745
2769
|
/**
|
|
2746
2770
|
* Backdrop Contrast
|
|
2747
2771
|
* @see https://tailwindcss.com/docs/backdrop-contrast
|
|
2748
2772
|
*/
|
|
2749
2773
|
"backdrop-contrast": [{
|
|
2750
|
-
"backdrop-contrast": [
|
|
2774
|
+
"backdrop-contrast": [b, d, u]
|
|
2751
2775
|
}],
|
|
2752
2776
|
/**
|
|
2753
2777
|
* Backdrop Grayscale
|
|
2754
2778
|
* @see https://tailwindcss.com/docs/backdrop-grayscale
|
|
2755
2779
|
*/
|
|
2756
2780
|
"backdrop-grayscale": [{
|
|
2757
|
-
"backdrop-grayscale": ["",
|
|
2781
|
+
"backdrop-grayscale": ["", b, d, u]
|
|
2758
2782
|
}],
|
|
2759
2783
|
/**
|
|
2760
2784
|
* Backdrop Hue Rotate
|
|
2761
2785
|
* @see https://tailwindcss.com/docs/backdrop-hue-rotate
|
|
2762
2786
|
*/
|
|
2763
2787
|
"backdrop-hue-rotate": [{
|
|
2764
|
-
"backdrop-hue-rotate": [
|
|
2788
|
+
"backdrop-hue-rotate": [b, d, u]
|
|
2765
2789
|
}],
|
|
2766
2790
|
/**
|
|
2767
2791
|
* Backdrop Invert
|
|
2768
2792
|
* @see https://tailwindcss.com/docs/backdrop-invert
|
|
2769
2793
|
*/
|
|
2770
2794
|
"backdrop-invert": [{
|
|
2771
|
-
"backdrop-invert": ["",
|
|
2795
|
+
"backdrop-invert": ["", b, d, u]
|
|
2772
2796
|
}],
|
|
2773
2797
|
/**
|
|
2774
2798
|
* Backdrop Opacity
|
|
2775
2799
|
* @see https://tailwindcss.com/docs/backdrop-opacity
|
|
2776
2800
|
*/
|
|
2777
2801
|
"backdrop-opacity": [{
|
|
2778
|
-
"backdrop-opacity": [
|
|
2802
|
+
"backdrop-opacity": [b, d, u]
|
|
2779
2803
|
}],
|
|
2780
2804
|
/**
|
|
2781
2805
|
* Backdrop Saturate
|
|
2782
2806
|
* @see https://tailwindcss.com/docs/backdrop-saturate
|
|
2783
2807
|
*/
|
|
2784
2808
|
"backdrop-saturate": [{
|
|
2785
|
-
"backdrop-saturate": [
|
|
2809
|
+
"backdrop-saturate": [b, d, u]
|
|
2786
2810
|
}],
|
|
2787
2811
|
/**
|
|
2788
2812
|
* Backdrop Sepia
|
|
2789
2813
|
* @see https://tailwindcss.com/docs/backdrop-sepia
|
|
2790
2814
|
*/
|
|
2791
2815
|
"backdrop-sepia": [{
|
|
2792
|
-
"backdrop-sepia": ["",
|
|
2816
|
+
"backdrop-sepia": ["", b, d, u]
|
|
2793
2817
|
}],
|
|
2794
2818
|
// --------------
|
|
2795
2819
|
// --- Tables ---
|
|
@@ -2858,7 +2882,7 @@ const T = (e) => {
|
|
|
2858
2882
|
* @see https://tailwindcss.com/docs/transition-duration
|
|
2859
2883
|
*/
|
|
2860
2884
|
duration: [{
|
|
2861
|
-
duration: [
|
|
2885
|
+
duration: [b, "initial", d, u]
|
|
2862
2886
|
}],
|
|
2863
2887
|
/**
|
|
2864
2888
|
* Transition Timing Function
|
|
@@ -2872,7 +2896,7 @@ const T = (e) => {
|
|
|
2872
2896
|
* @see https://tailwindcss.com/docs/transition-delay
|
|
2873
2897
|
*/
|
|
2874
2898
|
delay: [{
|
|
2875
|
-
delay: [
|
|
2899
|
+
delay: [b, d, u]
|
|
2876
2900
|
}],
|
|
2877
2901
|
/**
|
|
2878
2902
|
* Animation
|
|
@@ -3316,7 +3340,7 @@ const T = (e) => {
|
|
|
3316
3340
|
* @see https://tailwindcss.com/docs/stroke-width
|
|
3317
3341
|
*/
|
|
3318
3342
|
"stroke-w": [{
|
|
3319
|
-
stroke: [
|
|
3343
|
+
stroke: [b, re, H, be]
|
|
3320
3344
|
}],
|
|
3321
3345
|
/**
|
|
3322
3346
|
* Stroke
|
|
@@ -3393,57 +3417,57 @@ const T = (e) => {
|
|
|
3393
3417
|
};
|
|
3394
3418
|
}, Ut = /* @__PURE__ */ At(Ht);
|
|
3395
3419
|
function Je(e) {
|
|
3396
|
-
var t,
|
|
3397
|
-
if (typeof e == "string" || typeof e == "number")
|
|
3420
|
+
var t, r, o = "";
|
|
3421
|
+
if (typeof e == "string" || typeof e == "number") o += e;
|
|
3398
3422
|
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
3399
|
-
var
|
|
3400
|
-
for (t = 0; t <
|
|
3401
|
-
} else for (
|
|
3402
|
-
return
|
|
3423
|
+
var s = e.length;
|
|
3424
|
+
for (t = 0; t < s; t++) e[t] && (r = Je(e[t])) && (o && (o += " "), o += r);
|
|
3425
|
+
} else for (r in e) e[r] && (o && (o += " "), o += r);
|
|
3426
|
+
return o;
|
|
3403
3427
|
}
|
|
3404
3428
|
function Wt() {
|
|
3405
|
-
for (var e, t,
|
|
3406
|
-
return
|
|
3429
|
+
for (var e, t, r = 0, o = "", s = arguments.length; r < s; r++) (e = arguments[r]) && (t = Je(e)) && (o && (o += " "), o += t);
|
|
3430
|
+
return o;
|
|
3407
3431
|
}
|
|
3408
|
-
function
|
|
3432
|
+
function kr(...e) {
|
|
3409
3433
|
return Ut(Wt(e));
|
|
3410
3434
|
}
|
|
3411
|
-
function
|
|
3435
|
+
function Ir(e, t) {
|
|
3412
3436
|
if (!e) return !1;
|
|
3413
|
-
let
|
|
3414
|
-
return (t === " " || t === "Enter") && (
|
|
3437
|
+
let r = ["INPUT", "TEXTAREA", "SELECT"];
|
|
3438
|
+
return (t === " " || t === "Enter") && (r = [...r, "BUTTON"]), r.includes(e.tagName);
|
|
3415
3439
|
}
|
|
3416
3440
|
export {
|
|
3417
3441
|
mt as CompareStrategies,
|
|
3418
|
-
|
|
3419
|
-
|
|
3420
|
-
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
|
|
3424
|
-
|
|
3425
|
-
|
|
3426
|
-
|
|
3427
|
-
|
|
3428
|
-
|
|
3429
|
-
|
|
3430
|
-
|
|
3431
|
-
|
|
3442
|
+
cr as DEFAULT_GAP,
|
|
3443
|
+
ar as MOBILE_VIEWPORT_OFFSET,
|
|
3444
|
+
mr as SCALE_STEP,
|
|
3445
|
+
hr as SWIPE_THRESHOLD,
|
|
3446
|
+
lr as TOAST_LIFE,
|
|
3447
|
+
ur as TOAST_SWIPE_THRESHOLD,
|
|
3448
|
+
ir as TOAST_WIDTH,
|
|
3449
|
+
j as ToastState,
|
|
3450
|
+
br as VELOCITY_THRESHOLD,
|
|
3451
|
+
nr as VIEWPORT_OFFSET,
|
|
3452
|
+
sr as VISIBLE_TOASTS_AMOUNT,
|
|
3453
|
+
fr as Y_OFFSET_STEP,
|
|
3454
|
+
dr as Z_STEP,
|
|
3455
|
+
kr as cn,
|
|
3432
3456
|
dt as createDrawerCore,
|
|
3433
|
-
|
|
3434
|
-
|
|
3435
|
-
|
|
3436
|
-
|
|
3437
|
-
|
|
3438
|
-
|
|
3457
|
+
wr as drawer,
|
|
3458
|
+
Ir as isInputLikeElement,
|
|
3459
|
+
yr as sortObject,
|
|
3460
|
+
xr as sortObjectNew,
|
|
3461
|
+
st as toast,
|
|
3462
|
+
tr as useClipboard,
|
|
3439
3463
|
Xt as useDatePicker,
|
|
3440
|
-
|
|
3464
|
+
vr as useDrawer,
|
|
3441
3465
|
ve as useDrawerCore,
|
|
3442
|
-
|
|
3443
|
-
|
|
3466
|
+
rr as useForm,
|
|
3467
|
+
gr as useModalCore,
|
|
3444
3468
|
Zt as useMultiSelect,
|
|
3445
3469
|
Qt as useSelect,
|
|
3446
|
-
|
|
3447
|
-
|
|
3448
|
-
|
|
3470
|
+
pr as useSwipeHandler,
|
|
3471
|
+
er as useTable,
|
|
3472
|
+
or as useToastTimer
|
|
3449
3473
|
};
|