@srimandir/common 1.7.6 → 2.0.0
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/common.js +335 -274
- package/dist/common.js.map +1 -1
- package/dist/common.umd.cjs +1 -1
- package/dist/common.umd.cjs.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/utils/countries.d.ts +13 -0
- package/package.json +2 -2
package/dist/common.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { jsx as P, jsxs as
|
|
2
|
-
import { useEffect as
|
|
3
|
-
const
|
|
4
|
-
overlay:
|
|
5
|
-
sheet:
|
|
6
|
-
handle:
|
|
7
|
-
closeBtn:
|
|
8
|
-
header:
|
|
9
|
-
body:
|
|
10
|
-
footer:
|
|
1
|
+
import { jsx as P, jsxs as Ve } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect as We, createContext as $e, useContext as Ue } from "react";
|
|
3
|
+
const De = "_overlay_7kyzr_3", Ke = "_sheet_7kyzr_14", He = "_handle_7kyzr_51", Je = "_closeBtn_7kyzr_60", Ye = "_header_7kyzr_79", Ze = "_body_7kyzr_84", Xe = "_footer_7kyzr_91", j = {
|
|
4
|
+
overlay: De,
|
|
5
|
+
sheet: Ke,
|
|
6
|
+
handle: He,
|
|
7
|
+
closeBtn: Je,
|
|
8
|
+
header: Ye,
|
|
9
|
+
body: Ze,
|
|
10
|
+
footer: Xe
|
|
11
11
|
}, he = (...e) => e.filter(Boolean).join(" "), Qe = () => /* @__PURE__ */ P("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ P(
|
|
12
12
|
"path",
|
|
13
13
|
{
|
|
@@ -16,12 +16,12 @@ const Ue = "_overlay_7kyzr_3", Ye = "_sheet_7kyzr_14", qe = "_handle_7kyzr_51",
|
|
|
16
16
|
strokeWidth: "1.8",
|
|
17
17
|
strokeLinecap: "round"
|
|
18
18
|
}
|
|
19
|
-
) }),
|
|
19
|
+
) }), Jo = ({
|
|
20
20
|
isOpen: e,
|
|
21
21
|
onClose: r,
|
|
22
22
|
children: t,
|
|
23
23
|
header: o,
|
|
24
|
-
footer:
|
|
24
|
+
footer: a,
|
|
25
25
|
showCloseButton: d = !0,
|
|
26
26
|
showDragHandle: l = !1,
|
|
27
27
|
closeOnBackdropClick: u = !0,
|
|
@@ -29,49 +29,49 @@ const Ue = "_overlay_7kyzr_3", Ye = "_sheet_7kyzr_14", qe = "_handle_7kyzr_51",
|
|
|
29
29
|
lockBodyScroll: m = !0,
|
|
30
30
|
ariaLabel: h,
|
|
31
31
|
className: x = "",
|
|
32
|
-
overlayClassName:
|
|
33
|
-
"data-testid":
|
|
34
|
-
}) => (
|
|
32
|
+
overlayClassName: T = "",
|
|
33
|
+
"data-testid": A
|
|
34
|
+
}) => (We(() => {
|
|
35
35
|
if (!e) return;
|
|
36
|
-
const
|
|
36
|
+
const L = (v) => {
|
|
37
37
|
v.key === "Escape" && r();
|
|
38
38
|
};
|
|
39
|
-
b && document.addEventListener("keydown",
|
|
40
|
-
const
|
|
39
|
+
b && document.addEventListener("keydown", L);
|
|
40
|
+
const y = document.body.style.overflow;
|
|
41
41
|
return m && (document.body.style.overflow = "hidden"), () => {
|
|
42
|
-
b && document.removeEventListener("keydown",
|
|
42
|
+
b && document.removeEventListener("keydown", L), m && (document.body.style.overflow = y);
|
|
43
43
|
};
|
|
44
44
|
}, [e, r, b, m]), e ? /* @__PURE__ */ P(
|
|
45
45
|
"div",
|
|
46
46
|
{
|
|
47
|
-
className: he(
|
|
47
|
+
className: he(j.overlay, T),
|
|
48
48
|
role: "presentation",
|
|
49
|
-
onClick: (
|
|
50
|
-
u &&
|
|
49
|
+
onClick: (L) => {
|
|
50
|
+
u && L.target === L.currentTarget && r();
|
|
51
51
|
},
|
|
52
|
-
children: /* @__PURE__ */
|
|
52
|
+
children: /* @__PURE__ */ Ve(
|
|
53
53
|
"div",
|
|
54
54
|
{
|
|
55
|
-
className: he(
|
|
55
|
+
className: he(j.sheet, x),
|
|
56
56
|
role: "dialog",
|
|
57
57
|
"aria-modal": "true",
|
|
58
58
|
"aria-label": h,
|
|
59
|
-
"data-testid":
|
|
59
|
+
"data-testid": A,
|
|
60
60
|
children: [
|
|
61
|
-
l && /* @__PURE__ */ P("div", { className:
|
|
61
|
+
l && /* @__PURE__ */ P("div", { className: j.handle, "aria-hidden": "true" }),
|
|
62
62
|
d && /* @__PURE__ */ P(
|
|
63
63
|
"button",
|
|
64
64
|
{
|
|
65
65
|
type: "button",
|
|
66
|
-
className:
|
|
66
|
+
className: j.closeBtn,
|
|
67
67
|
onClick: r,
|
|
68
68
|
"aria-label": "Close",
|
|
69
69
|
children: /* @__PURE__ */ P(Qe, {})
|
|
70
70
|
}
|
|
71
71
|
),
|
|
72
|
-
o && /* @__PURE__ */ P("div", { className:
|
|
73
|
-
/* @__PURE__ */ P("div", { className:
|
|
74
|
-
|
|
72
|
+
o && /* @__PURE__ */ P("div", { className: j.header, children: o }),
|
|
73
|
+
/* @__PURE__ */ P("div", { className: j.body, children: t }),
|
|
74
|
+
a && /* @__PURE__ */ P("div", { className: j.footer, children: a })
|
|
75
75
|
]
|
|
76
76
|
}
|
|
77
77
|
)
|
|
@@ -81,13 +81,13 @@ function Ce(e) {
|
|
|
81
81
|
var r, t, o = "";
|
|
82
82
|
if (typeof e == "string" || typeof e == "number") o += e;
|
|
83
83
|
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
84
|
-
var
|
|
85
|
-
for (r = 0; r <
|
|
84
|
+
var a = e.length;
|
|
85
|
+
for (r = 0; r < a; r++) e[r] && (t = Ce(e[r])) && (o && (o += " "), o += t);
|
|
86
86
|
} else for (t in e) e[t] && (o && (o += " "), o += t);
|
|
87
87
|
return o;
|
|
88
88
|
}
|
|
89
|
-
function
|
|
90
|
-
for (var e, r, t = 0, o = "",
|
|
89
|
+
function qe() {
|
|
90
|
+
for (var e, r, t = 0, o = "", a = arguments.length; t < a; t++) (e = arguments[t]) && (r = Ce(e)) && (o && (o += " "), o += r);
|
|
91
91
|
return o;
|
|
92
92
|
}
|
|
93
93
|
const eo = (e, r) => {
|
|
@@ -100,11 +100,11 @@ const eo = (e, r) => {
|
|
|
100
100
|
}, oo = (e, r) => ({
|
|
101
101
|
classGroupId: e,
|
|
102
102
|
validator: r
|
|
103
|
-
}),
|
|
103
|
+
}), Ae = (e = /* @__PURE__ */ new Map(), r = null, t) => ({
|
|
104
104
|
nextPart: e,
|
|
105
105
|
validators: r,
|
|
106
106
|
classGroupId: t
|
|
107
|
-
}),
|
|
107
|
+
}), q = "-", xe = [], to = "arbitrary..", ro = (e) => {
|
|
108
108
|
const r = so(e), {
|
|
109
109
|
conflictingClassGroups: t,
|
|
110
110
|
conflictingClassGroupModifiers: o
|
|
@@ -113,8 +113,8 @@ const eo = (e, r) => {
|
|
|
113
113
|
getClassGroupId: (l) => {
|
|
114
114
|
if (l.startsWith("[") && l.endsWith("]"))
|
|
115
115
|
return no(l);
|
|
116
|
-
const u = l.split(
|
|
117
|
-
return
|
|
116
|
+
const u = l.split(q), b = u[0] === "" && u.length > 1 ? 1 : 0;
|
|
117
|
+
return Le(u, b, r);
|
|
118
118
|
},
|
|
119
119
|
getConflictingClassGroupIds: (l, u) => {
|
|
120
120
|
if (u) {
|
|
@@ -124,18 +124,18 @@ const eo = (e, r) => {
|
|
|
124
124
|
return t[l] || xe;
|
|
125
125
|
}
|
|
126
126
|
};
|
|
127
|
-
},
|
|
127
|
+
}, Le = (e, r, t) => {
|
|
128
128
|
if (e.length - r === 0)
|
|
129
129
|
return t.classGroupId;
|
|
130
|
-
const
|
|
130
|
+
const a = e[r], d = t.nextPart.get(a);
|
|
131
131
|
if (d) {
|
|
132
|
-
const m =
|
|
132
|
+
const m = Le(e, r + 1, d);
|
|
133
133
|
if (m) return m;
|
|
134
134
|
}
|
|
135
135
|
const l = t.validators;
|
|
136
136
|
if (l === null)
|
|
137
137
|
return;
|
|
138
|
-
const u = r === 0 ? e.join(
|
|
138
|
+
const u = r === 0 ? e.join(q) : e.slice(r).join(q), b = l.length;
|
|
139
139
|
for (let m = 0; m < b; m++) {
|
|
140
140
|
const h = l[m];
|
|
141
141
|
if (h.validator(u))
|
|
@@ -149,21 +149,21 @@ const eo = (e, r) => {
|
|
|
149
149
|
theme: r,
|
|
150
150
|
classGroups: t
|
|
151
151
|
} = e;
|
|
152
|
-
return
|
|
153
|
-
},
|
|
154
|
-
const t =
|
|
152
|
+
return ao(t, r);
|
|
153
|
+
}, ao = (e, r) => {
|
|
154
|
+
const t = Ae();
|
|
155
155
|
for (const o in e) {
|
|
156
|
-
const
|
|
157
|
-
|
|
156
|
+
const a = e[o];
|
|
157
|
+
ie(a, t, o, r);
|
|
158
158
|
}
|
|
159
159
|
return t;
|
|
160
|
-
},
|
|
161
|
-
const
|
|
162
|
-
for (let d = 0; d <
|
|
160
|
+
}, ie = (e, r, t, o) => {
|
|
161
|
+
const a = e.length;
|
|
162
|
+
for (let d = 0; d < a; d++) {
|
|
163
163
|
const l = e[d];
|
|
164
|
-
|
|
164
|
+
io(l, r, t, o);
|
|
165
165
|
}
|
|
166
|
-
},
|
|
166
|
+
}, io = (e, r, t, o) => {
|
|
167
167
|
if (typeof e == "string") {
|
|
168
168
|
lo(e, r, t);
|
|
169
169
|
return;
|
|
@@ -178,23 +178,23 @@ const eo = (e, r) => {
|
|
|
178
178
|
o.classGroupId = t;
|
|
179
179
|
}, co = (e, r, t, o) => {
|
|
180
180
|
if (po(e)) {
|
|
181
|
-
|
|
181
|
+
ie(e(o), r, t, o);
|
|
182
182
|
return;
|
|
183
183
|
}
|
|
184
184
|
r.validators === null && (r.validators = []), r.validators.push(oo(t, e));
|
|
185
185
|
}, mo = (e, r, t, o) => {
|
|
186
|
-
const
|
|
186
|
+
const a = Object.entries(e), d = a.length;
|
|
187
187
|
for (let l = 0; l < d; l++) {
|
|
188
|
-
const [u, b] =
|
|
189
|
-
|
|
188
|
+
const [u, b] = a[l];
|
|
189
|
+
ie(b, Se(r, u), t, o);
|
|
190
190
|
}
|
|
191
191
|
}, Se = (e, r) => {
|
|
192
192
|
let t = e;
|
|
193
|
-
const o = r.split(
|
|
194
|
-
for (let d = 0; d <
|
|
193
|
+
const o = r.split(q), a = o.length;
|
|
194
|
+
for (let d = 0; d < a; d++) {
|
|
195
195
|
const l = o[d];
|
|
196
196
|
let u = t.nextPart.get(l);
|
|
197
|
-
u || (u =
|
|
197
|
+
u || (u = Ae(), t.nextPart.set(l, u)), t = u;
|
|
198
198
|
}
|
|
199
199
|
return t;
|
|
200
200
|
}, po = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, uo = (e) => {
|
|
@@ -206,7 +206,7 @@ const eo = (e, r) => {
|
|
|
206
206
|
}
|
|
207
207
|
};
|
|
208
208
|
let r = 0, t = /* @__PURE__ */ Object.create(null), o = /* @__PURE__ */ Object.create(null);
|
|
209
|
-
const
|
|
209
|
+
const a = (d, l) => {
|
|
210
210
|
t[d] = l, r++, r > e && (r = 0, o = t, t = /* @__PURE__ */ Object.create(null));
|
|
211
211
|
};
|
|
212
212
|
return {
|
|
@@ -215,62 +215,62 @@ const eo = (e, r) => {
|
|
|
215
215
|
if (l !== void 0)
|
|
216
216
|
return l;
|
|
217
217
|
if ((l = o[d]) !== void 0)
|
|
218
|
-
return
|
|
218
|
+
return a(d, l), l;
|
|
219
219
|
},
|
|
220
220
|
set(d, l) {
|
|
221
|
-
d in t ? t[d] = l :
|
|
221
|
+
d in t ? t[d] = l : a(d, l);
|
|
222
222
|
}
|
|
223
223
|
};
|
|
224
|
-
},
|
|
224
|
+
}, ae = "!", ye = ":", bo = [], ke = (e, r, t, o, a) => ({
|
|
225
225
|
modifiers: e,
|
|
226
226
|
hasImportantModifier: r,
|
|
227
227
|
baseClassName: t,
|
|
228
228
|
maybePostfixModifierPosition: o,
|
|
229
|
-
isExternal:
|
|
229
|
+
isExternal: a
|
|
230
230
|
}), fo = (e) => {
|
|
231
231
|
const {
|
|
232
232
|
prefix: r,
|
|
233
233
|
experimentalParseClassName: t
|
|
234
234
|
} = e;
|
|
235
|
-
let o = (
|
|
235
|
+
let o = (a) => {
|
|
236
236
|
const d = [];
|
|
237
237
|
let l = 0, u = 0, b = 0, m;
|
|
238
|
-
const h =
|
|
239
|
-
for (let
|
|
240
|
-
const v =
|
|
238
|
+
const h = a.length;
|
|
239
|
+
for (let y = 0; y < h; y++) {
|
|
240
|
+
const v = a[y];
|
|
241
241
|
if (l === 0 && u === 0) {
|
|
242
|
-
if (v ===
|
|
243
|
-
d.push(
|
|
242
|
+
if (v === ye) {
|
|
243
|
+
d.push(a.slice(b, y)), b = y + 1;
|
|
244
244
|
continue;
|
|
245
245
|
}
|
|
246
246
|
if (v === "/") {
|
|
247
|
-
m =
|
|
247
|
+
m = y;
|
|
248
248
|
continue;
|
|
249
249
|
}
|
|
250
250
|
}
|
|
251
251
|
v === "[" ? l++ : v === "]" ? l-- : v === "(" ? u++ : v === ")" && u--;
|
|
252
252
|
}
|
|
253
|
-
const x = d.length === 0 ?
|
|
254
|
-
let
|
|
255
|
-
x.endsWith(
|
|
253
|
+
const x = d.length === 0 ? a : a.slice(b);
|
|
254
|
+
let T = x, A = !1;
|
|
255
|
+
x.endsWith(ae) ? (T = x.slice(0, -1), A = !0) : (
|
|
256
256
|
/**
|
|
257
257
|
* In Tailwind CSS v3 the important modifier was at the start of the base class name. This is still supported for legacy reasons.
|
|
258
258
|
* @see https://github.com/dcastil/tailwind-merge/issues/513#issuecomment-2614029864
|
|
259
259
|
*/
|
|
260
|
-
x.startsWith(
|
|
260
|
+
x.startsWith(ae) && (T = x.slice(1), A = !0)
|
|
261
261
|
);
|
|
262
|
-
const
|
|
263
|
-
return
|
|
262
|
+
const L = m && m > b ? m - b : void 0;
|
|
263
|
+
return ke(d, A, T, L);
|
|
264
264
|
};
|
|
265
265
|
if (r) {
|
|
266
|
-
const
|
|
267
|
-
o = (l) => l.startsWith(
|
|
266
|
+
const a = r + ye, d = o;
|
|
267
|
+
o = (l) => l.startsWith(a) ? d(l.slice(a.length)) : ke(bo, !1, l, void 0, !0);
|
|
268
268
|
}
|
|
269
269
|
if (t) {
|
|
270
|
-
const
|
|
270
|
+
const a = o;
|
|
271
271
|
o = (d) => t({
|
|
272
272
|
className: d,
|
|
273
|
-
parseClassName:
|
|
273
|
+
parseClassName: a
|
|
274
274
|
});
|
|
275
275
|
}
|
|
276
276
|
return o;
|
|
@@ -280,12 +280,12 @@ const eo = (e, r) => {
|
|
|
280
280
|
r.set(t, 1e6 + o);
|
|
281
281
|
}), (t) => {
|
|
282
282
|
const o = [];
|
|
283
|
-
let
|
|
283
|
+
let a = [];
|
|
284
284
|
for (let d = 0; d < t.length; d++) {
|
|
285
285
|
const l = t[d], u = l[0] === "[", b = r.has(l);
|
|
286
|
-
u || b ? (
|
|
286
|
+
u || b ? (a.length > 0 && (a.sort(), o.push(...a), a = []), o.push(l)) : a.push(l);
|
|
287
287
|
}
|
|
288
|
-
return
|
|
288
|
+
return a.length > 0 && (a.sort(), o.push(...a)), o;
|
|
289
289
|
};
|
|
290
290
|
}, ho = (e) => ({
|
|
291
291
|
cache: uo(e.cacheSize),
|
|
@@ -299,63 +299,63 @@ const eo = (e, r) => {
|
|
|
299
299
|
for (let o = 0; o < t.length; o++)
|
|
300
300
|
r[t[o]] = !0;
|
|
301
301
|
return r;
|
|
302
|
-
},
|
|
302
|
+
}, yo = /\s+/, ko = (e, r) => {
|
|
303
303
|
const {
|
|
304
304
|
parseClassName: t,
|
|
305
305
|
getClassGroupId: o,
|
|
306
|
-
getConflictingClassGroupIds:
|
|
306
|
+
getConflictingClassGroupIds: a,
|
|
307
307
|
sortModifiers: d,
|
|
308
308
|
postfixLookupClassGroupIds: l
|
|
309
|
-
} = r, u = [], b = e.trim().split(
|
|
309
|
+
} = r, u = [], b = e.trim().split(yo);
|
|
310
310
|
let m = "";
|
|
311
311
|
for (let h = b.length - 1; h >= 0; h -= 1) {
|
|
312
312
|
const x = b[h], {
|
|
313
|
-
isExternal:
|
|
314
|
-
modifiers:
|
|
315
|
-
hasImportantModifier:
|
|
316
|
-
baseClassName:
|
|
313
|
+
isExternal: T,
|
|
314
|
+
modifiers: A,
|
|
315
|
+
hasImportantModifier: L,
|
|
316
|
+
baseClassName: y,
|
|
317
317
|
maybePostfixModifierPosition: v
|
|
318
318
|
} = t(x);
|
|
319
|
-
if (
|
|
319
|
+
if (T) {
|
|
320
320
|
m = x + (m.length > 0 ? " " + m : m);
|
|
321
321
|
continue;
|
|
322
322
|
}
|
|
323
|
-
let
|
|
324
|
-
if (
|
|
325
|
-
const M =
|
|
323
|
+
let E = !!v, z;
|
|
324
|
+
if (E) {
|
|
325
|
+
const M = y.substring(0, v);
|
|
326
326
|
z = o(M);
|
|
327
|
-
const
|
|
328
|
-
|
|
327
|
+
const i = z && l[z] ? o(y) : void 0;
|
|
328
|
+
i && i !== z && (z = i, E = !1);
|
|
329
329
|
} else
|
|
330
|
-
z = o(
|
|
330
|
+
z = o(y);
|
|
331
331
|
if (!z) {
|
|
332
|
-
if (!
|
|
332
|
+
if (!E) {
|
|
333
333
|
m = x + (m.length > 0 ? " " + m : m);
|
|
334
334
|
continue;
|
|
335
335
|
}
|
|
336
|
-
if (z = o(
|
|
336
|
+
if (z = o(y), !z) {
|
|
337
337
|
m = x + (m.length > 0 ? " " + m : m);
|
|
338
338
|
continue;
|
|
339
339
|
}
|
|
340
|
-
|
|
340
|
+
E = !1;
|
|
341
341
|
}
|
|
342
|
-
const
|
|
343
|
-
if (u.indexOf(
|
|
342
|
+
const U = A.length === 0 ? "" : A.length === 1 ? A[0] : d(A).join(":"), O = L ? U + ae : U, V = O + z;
|
|
343
|
+
if (u.indexOf(V) > -1)
|
|
344
344
|
continue;
|
|
345
|
-
u.push(
|
|
346
|
-
const
|
|
347
|
-
for (let M = 0; M <
|
|
348
|
-
const
|
|
349
|
-
u.push(O +
|
|
345
|
+
u.push(V);
|
|
346
|
+
const W = a(z, E);
|
|
347
|
+
for (let M = 0; M < W.length; ++M) {
|
|
348
|
+
const i = W[M];
|
|
349
|
+
u.push(O + i);
|
|
350
350
|
}
|
|
351
351
|
m = x + (m.length > 0 ? " " + m : m);
|
|
352
352
|
}
|
|
353
353
|
return m;
|
|
354
354
|
}, wo = (...e) => {
|
|
355
|
-
let r = 0, t, o,
|
|
355
|
+
let r = 0, t, o, a = "";
|
|
356
356
|
for (; r < e.length; )
|
|
357
|
-
(t = e[r++]) && (o = Ie(t)) && (
|
|
358
|
-
return
|
|
357
|
+
(t = e[r++]) && (o = Ie(t)) && (a && (a += " "), a += o);
|
|
358
|
+
return a;
|
|
359
359
|
}, Ie = (e) => {
|
|
360
360
|
if (typeof e == "string")
|
|
361
361
|
return e;
|
|
@@ -364,34 +364,34 @@ const eo = (e, r) => {
|
|
|
364
364
|
e[o] && (r = Ie(e[o])) && (t && (t += " "), t += r);
|
|
365
365
|
return t;
|
|
366
366
|
}, vo = (e, ...r) => {
|
|
367
|
-
let t, o,
|
|
367
|
+
let t, o, a, d;
|
|
368
368
|
const l = (b) => {
|
|
369
369
|
const m = r.reduce((h, x) => x(h), e());
|
|
370
|
-
return t = ho(m), o = t.cache.get,
|
|
370
|
+
return t = ho(m), o = t.cache.get, a = t.cache.set, d = u, u(b);
|
|
371
371
|
}, u = (b) => {
|
|
372
372
|
const m = o(b);
|
|
373
373
|
if (m)
|
|
374
374
|
return m;
|
|
375
|
-
const h =
|
|
376
|
-
return
|
|
375
|
+
const h = ko(b, t);
|
|
376
|
+
return a(b, h), h;
|
|
377
377
|
};
|
|
378
378
|
return d = l, (...b) => d(wo(...b));
|
|
379
379
|
}, zo = [], f = (e) => {
|
|
380
380
|
const r = (t) => t[e] || zo;
|
|
381
381
|
return r.isThemeGetter = !0, r;
|
|
382
|
-
}, Pe = /^\[(?:(\w[\w-]*):)?(.+)\]$/i,
|
|
382
|
+
}, Pe = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Te = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Co = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, Ao = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Lo = /\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$/, So = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Io = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Po = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, N = (e) => Co.test(e), p = (e) => !!e && !Number.isNaN(Number(e)), I = (e) => !!e && Number.isInteger(Number(e)), se = (e) => e.endsWith("%") && p(e.slice(0, -1)), R = (e) => Ao.test(e), Me = () => !0, To = (e) => (
|
|
383
383
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
384
384
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
385
385
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
386
|
-
|
|
387
|
-
), le = () => !1, Mo = (e) => Io.test(e),
|
|
386
|
+
Lo.test(e) && !So.test(e)
|
|
387
|
+
), le = () => !1, Mo = (e) => Io.test(e), Ro = (e) => Po.test(e), No = (e) => !n(e) && !s(e), Go = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), Eo = (e) => G(e, Ge, le), n = (e) => Pe.test(e), B = (e) => G(e, Ee, To), we = (e) => G(e, $o, p), _o = (e) => G(e, je, Me), jo = (e) => G(e, _e, le), ve = (e) => G(e, Re, le), Bo = (e) => G(e, Ne, Ro), X = (e) => G(e, Be, Mo), s = (e) => Te.test(e), D = (e) => F(e, Ee), Fo = (e) => F(e, _e), ze = (e) => F(e, Re), Oo = (e) => F(e, Ge), Vo = (e) => F(e, Ne), Q = (e) => F(e, Be, !0), Wo = (e) => F(e, je, !0), G = (e, r, t) => {
|
|
388
388
|
const o = Pe.exec(e);
|
|
389
389
|
return o ? o[1] ? r(o[1]) : t(o[2]) : !1;
|
|
390
|
-
},
|
|
391
|
-
const o =
|
|
390
|
+
}, F = (e, r, t = !1) => {
|
|
391
|
+
const o = Te.exec(e);
|
|
392
392
|
return o ? o[1] ? r(o[1]) : t : !1;
|
|
393
|
-
},
|
|
394
|
-
const e = f("color"), r = f("font"), t = f("text"), o = f("font-weight"),
|
|
393
|
+
}, Re = (e) => e === "position" || e === "percentage", Ne = (e) => e === "image" || e === "url", Ge = (e) => e === "length" || e === "size" || e === "bg-size", Ee = (e) => e === "length", $o = (e) => e === "number", _e = (e) => e === "family-name", je = (e) => e === "number" || e === "weight", Be = (e) => e === "shadow", Uo = () => {
|
|
394
|
+
const e = f("color"), r = f("font"), t = f("text"), o = f("font-weight"), a = f("tracking"), d = f("leading"), l = f("breakpoint"), u = f("container"), b = f("spacing"), m = f("radius"), h = f("shadow"), x = f("inset-shadow"), T = f("text-shadow"), A = f("drop-shadow"), L = f("blur"), y = f("perspective"), v = f("aspect"), E = f("ease"), z = f("animate"), U = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], O = () => [
|
|
395
395
|
"center",
|
|
396
396
|
"top",
|
|
397
397
|
"bottom",
|
|
@@ -409,15 +409,15 @@ const eo = (e, r) => {
|
|
|
409
409
|
"bottom-left",
|
|
410
410
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
411
411
|
"left-bottom"
|
|
412
|
-
],
|
|
412
|
+
], V = () => [...O(), s, n], W = () => ["auto", "hidden", "clip", "visible", "scroll"], M = () => ["auto", "contain", "none"], i = () => [s, n, b], C = () => [N, "full", "auto", ...i()], ce = () => [I, "none", "subgrid", s, n], de = () => ["auto", {
|
|
413
413
|
span: ["full", I, s, n]
|
|
414
|
-
}, I, s, n],
|
|
414
|
+
}, I, s, n], K = () => [I, "auto", s, n], me = () => ["auto", "min", "max", "fr", s, n], ee = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], $ = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], S = () => ["auto", ...i()], _ = () => [N, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...i()], oe = () => [N, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...i()], te = () => [N, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...i()], c = () => [e, s, n], pe = () => [...O(), ze, ve, {
|
|
415
415
|
position: [s, n]
|
|
416
416
|
}], ue = () => ["no-repeat", {
|
|
417
417
|
repeat: ["", "x", "y", "space", "round"]
|
|
418
|
-
}], be = () => ["auto", "cover", "contain", Oo,
|
|
418
|
+
}], be = () => ["auto", "cover", "contain", Oo, Eo, {
|
|
419
419
|
size: [s, n]
|
|
420
|
-
}], re = () => [se,
|
|
420
|
+
}], re = () => [se, D, B], k = () => [
|
|
421
421
|
// Deprecated since Tailwind CSS v4.0.0
|
|
422
422
|
"",
|
|
423
423
|
"none",
|
|
@@ -425,35 +425,35 @@ const eo = (e, r) => {
|
|
|
425
425
|
m,
|
|
426
426
|
s,
|
|
427
427
|
n
|
|
428
|
-
], w = () => ["", p,
|
|
428
|
+
], w = () => ["", p, D, B], H = () => ["solid", "dashed", "dotted", "double"], fe = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], g = () => [p, se, ze, ve], ge = () => [
|
|
429
429
|
// Deprecated since Tailwind CSS v4.0.0
|
|
430
430
|
"",
|
|
431
431
|
"none",
|
|
432
|
-
|
|
432
|
+
L,
|
|
433
433
|
s,
|
|
434
434
|
n
|
|
435
|
-
],
|
|
435
|
+
], J = () => ["none", p, s, n], Y = () => ["none", p, s, n], ne = () => [p, s, n], Z = () => [N, "full", ...i()];
|
|
436
436
|
return {
|
|
437
437
|
cacheSize: 500,
|
|
438
438
|
theme: {
|
|
439
439
|
animate: ["spin", "ping", "pulse", "bounce"],
|
|
440
440
|
aspect: ["video"],
|
|
441
|
-
blur: [
|
|
442
|
-
breakpoint: [
|
|
441
|
+
blur: [R],
|
|
442
|
+
breakpoint: [R],
|
|
443
443
|
color: [Me],
|
|
444
|
-
container: [
|
|
445
|
-
"drop-shadow": [
|
|
444
|
+
container: [R],
|
|
445
|
+
"drop-shadow": [R],
|
|
446
446
|
ease: ["in", "out", "in-out"],
|
|
447
|
-
font: [
|
|
447
|
+
font: [No],
|
|
448
448
|
"font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
|
|
449
|
-
"inset-shadow": [
|
|
449
|
+
"inset-shadow": [R],
|
|
450
450
|
leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
|
|
451
451
|
perspective: ["dramatic", "near", "normal", "midrange", "distant", "none"],
|
|
452
|
-
radius: [
|
|
453
|
-
shadow: [
|
|
452
|
+
radius: [R],
|
|
453
|
+
shadow: [R],
|
|
454
454
|
spacing: ["px", p],
|
|
455
|
-
text: [
|
|
456
|
-
"text-shadow": [
|
|
455
|
+
text: [R],
|
|
456
|
+
"text-shadow": [R],
|
|
457
457
|
tracking: ["tighter", "tight", "normal", "wide", "wider", "widest"]
|
|
458
458
|
},
|
|
459
459
|
classGroups: {
|
|
@@ -465,7 +465,7 @@ const eo = (e, r) => {
|
|
|
465
465
|
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
466
466
|
*/
|
|
467
467
|
aspect: [{
|
|
468
|
-
aspect: ["auto", "square",
|
|
468
|
+
aspect: ["auto", "square", N, n, s, v]
|
|
469
469
|
}],
|
|
470
470
|
/**
|
|
471
471
|
* Container
|
|
@@ -484,7 +484,7 @@ const eo = (e, r) => {
|
|
|
484
484
|
* Container Name
|
|
485
485
|
* @see https://tailwindcss.com/docs/responsive-design#named-containers
|
|
486
486
|
*/
|
|
487
|
-
"container-named": [
|
|
487
|
+
"container-named": [Go],
|
|
488
488
|
/**
|
|
489
489
|
* Columns
|
|
490
490
|
* @see https://tailwindcss.com/docs/columns
|
|
@@ -497,14 +497,14 @@ const eo = (e, r) => {
|
|
|
497
497
|
* @see https://tailwindcss.com/docs/break-after
|
|
498
498
|
*/
|
|
499
499
|
"break-after": [{
|
|
500
|
-
"break-after":
|
|
500
|
+
"break-after": U()
|
|
501
501
|
}],
|
|
502
502
|
/**
|
|
503
503
|
* Break Before
|
|
504
504
|
* @see https://tailwindcss.com/docs/break-before
|
|
505
505
|
*/
|
|
506
506
|
"break-before": [{
|
|
507
|
-
"break-before":
|
|
507
|
+
"break-before": U()
|
|
508
508
|
}],
|
|
509
509
|
/**
|
|
510
510
|
* Break Inside
|
|
@@ -568,28 +568,28 @@ const eo = (e, r) => {
|
|
|
568
568
|
* @see https://tailwindcss.com/docs/object-position
|
|
569
569
|
*/
|
|
570
570
|
"object-position": [{
|
|
571
|
-
object:
|
|
571
|
+
object: V()
|
|
572
572
|
}],
|
|
573
573
|
/**
|
|
574
574
|
* Overflow
|
|
575
575
|
* @see https://tailwindcss.com/docs/overflow
|
|
576
576
|
*/
|
|
577
577
|
overflow: [{
|
|
578
|
-
overflow:
|
|
578
|
+
overflow: W()
|
|
579
579
|
}],
|
|
580
580
|
/**
|
|
581
581
|
* Overflow X
|
|
582
582
|
* @see https://tailwindcss.com/docs/overflow
|
|
583
583
|
*/
|
|
584
584
|
"overflow-x": [{
|
|
585
|
-
"overflow-x":
|
|
585
|
+
"overflow-x": W()
|
|
586
586
|
}],
|
|
587
587
|
/**
|
|
588
588
|
* Overflow Y
|
|
589
589
|
* @see https://tailwindcss.com/docs/overflow
|
|
590
590
|
*/
|
|
591
591
|
"overflow-y": [{
|
|
592
|
-
"overflow-y":
|
|
592
|
+
"overflow-y": W()
|
|
593
593
|
}],
|
|
594
594
|
/**
|
|
595
595
|
* Overscroll Behavior
|
|
@@ -726,7 +726,7 @@ const eo = (e, r) => {
|
|
|
726
726
|
* @see https://tailwindcss.com/docs/flex-basis
|
|
727
727
|
*/
|
|
728
728
|
basis: [{
|
|
729
|
-
basis: [
|
|
729
|
+
basis: [N, "full", "auto", u, ...i()]
|
|
730
730
|
}],
|
|
731
731
|
/**
|
|
732
732
|
* Flex Direction
|
|
@@ -747,7 +747,7 @@ const eo = (e, r) => {
|
|
|
747
747
|
* @see https://tailwindcss.com/docs/flex
|
|
748
748
|
*/
|
|
749
749
|
flex: [{
|
|
750
|
-
flex: [p,
|
|
750
|
+
flex: [p, N, "auto", "initial", "none", n]
|
|
751
751
|
}],
|
|
752
752
|
/**
|
|
753
753
|
* Flex Grow
|
|
@@ -789,14 +789,14 @@ const eo = (e, r) => {
|
|
|
789
789
|
* @see https://tailwindcss.com/docs/grid-column
|
|
790
790
|
*/
|
|
791
791
|
"col-start": [{
|
|
792
|
-
"col-start":
|
|
792
|
+
"col-start": K()
|
|
793
793
|
}],
|
|
794
794
|
/**
|
|
795
795
|
* Grid Column End
|
|
796
796
|
* @see https://tailwindcss.com/docs/grid-column
|
|
797
797
|
*/
|
|
798
798
|
"col-end": [{
|
|
799
|
-
"col-end":
|
|
799
|
+
"col-end": K()
|
|
800
800
|
}],
|
|
801
801
|
/**
|
|
802
802
|
* Grid Template Rows
|
|
@@ -817,14 +817,14 @@ const eo = (e, r) => {
|
|
|
817
817
|
* @see https://tailwindcss.com/docs/grid-row
|
|
818
818
|
*/
|
|
819
819
|
"row-start": [{
|
|
820
|
-
"row-start":
|
|
820
|
+
"row-start": K()
|
|
821
821
|
}],
|
|
822
822
|
/**
|
|
823
823
|
* Grid Row End
|
|
824
824
|
* @see https://tailwindcss.com/docs/grid-row
|
|
825
825
|
*/
|
|
826
826
|
"row-end": [{
|
|
827
|
-
"row-end":
|
|
827
|
+
"row-end": K()
|
|
828
828
|
}],
|
|
829
829
|
/**
|
|
830
830
|
* Grid Auto Flow
|
|
@@ -852,21 +852,21 @@ const eo = (e, r) => {
|
|
|
852
852
|
* @see https://tailwindcss.com/docs/gap
|
|
853
853
|
*/
|
|
854
854
|
gap: [{
|
|
855
|
-
gap:
|
|
855
|
+
gap: i()
|
|
856
856
|
}],
|
|
857
857
|
/**
|
|
858
858
|
* Gap X
|
|
859
859
|
* @see https://tailwindcss.com/docs/gap
|
|
860
860
|
*/
|
|
861
861
|
"gap-x": [{
|
|
862
|
-
"gap-x":
|
|
862
|
+
"gap-x": i()
|
|
863
863
|
}],
|
|
864
864
|
/**
|
|
865
865
|
* Gap Y
|
|
866
866
|
* @see https://tailwindcss.com/docs/gap
|
|
867
867
|
*/
|
|
868
868
|
"gap-y": [{
|
|
869
|
-
"gap-y":
|
|
869
|
+
"gap-y": i()
|
|
870
870
|
}],
|
|
871
871
|
/**
|
|
872
872
|
* Justify Content
|
|
@@ -880,14 +880,14 @@ const eo = (e, r) => {
|
|
|
880
880
|
* @see https://tailwindcss.com/docs/justify-items
|
|
881
881
|
*/
|
|
882
882
|
"justify-items": [{
|
|
883
|
-
"justify-items": [
|
|
883
|
+
"justify-items": [...$(), "normal"]
|
|
884
884
|
}],
|
|
885
885
|
/**
|
|
886
886
|
* Justify Self
|
|
887
887
|
* @see https://tailwindcss.com/docs/justify-self
|
|
888
888
|
*/
|
|
889
889
|
"justify-self": [{
|
|
890
|
-
"justify-self": ["auto",
|
|
890
|
+
"justify-self": ["auto", ...$()]
|
|
891
891
|
}],
|
|
892
892
|
/**
|
|
893
893
|
* Align Content
|
|
@@ -901,7 +901,7 @@ const eo = (e, r) => {
|
|
|
901
901
|
* @see https://tailwindcss.com/docs/align-items
|
|
902
902
|
*/
|
|
903
903
|
"align-items": [{
|
|
904
|
-
items: [
|
|
904
|
+
items: [...$(), {
|
|
905
905
|
baseline: ["", "last"]
|
|
906
906
|
}]
|
|
907
907
|
}],
|
|
@@ -910,7 +910,7 @@ const eo = (e, r) => {
|
|
|
910
910
|
* @see https://tailwindcss.com/docs/align-self
|
|
911
911
|
*/
|
|
912
912
|
"align-self": [{
|
|
913
|
-
self: ["auto",
|
|
913
|
+
self: ["auto", ...$(), {
|
|
914
914
|
baseline: ["", "last"]
|
|
915
915
|
}]
|
|
916
916
|
}],
|
|
@@ -926,14 +926,14 @@ const eo = (e, r) => {
|
|
|
926
926
|
* @see https://tailwindcss.com/docs/place-items
|
|
927
927
|
*/
|
|
928
928
|
"place-items": [{
|
|
929
|
-
"place-items": [
|
|
929
|
+
"place-items": [...$(), "baseline"]
|
|
930
930
|
}],
|
|
931
931
|
/**
|
|
932
932
|
* Place Self
|
|
933
933
|
* @see https://tailwindcss.com/docs/place-self
|
|
934
934
|
*/
|
|
935
935
|
"place-self": [{
|
|
936
|
-
"place-self": ["auto",
|
|
936
|
+
"place-self": ["auto", ...$()]
|
|
937
937
|
}],
|
|
938
938
|
// Spacing
|
|
939
939
|
/**
|
|
@@ -941,77 +941,77 @@ const eo = (e, r) => {
|
|
|
941
941
|
* @see https://tailwindcss.com/docs/padding
|
|
942
942
|
*/
|
|
943
943
|
p: [{
|
|
944
|
-
p:
|
|
944
|
+
p: i()
|
|
945
945
|
}],
|
|
946
946
|
/**
|
|
947
947
|
* Padding Inline
|
|
948
948
|
* @see https://tailwindcss.com/docs/padding
|
|
949
949
|
*/
|
|
950
950
|
px: [{
|
|
951
|
-
px:
|
|
951
|
+
px: i()
|
|
952
952
|
}],
|
|
953
953
|
/**
|
|
954
954
|
* Padding Block
|
|
955
955
|
* @see https://tailwindcss.com/docs/padding
|
|
956
956
|
*/
|
|
957
957
|
py: [{
|
|
958
|
-
py:
|
|
958
|
+
py: i()
|
|
959
959
|
}],
|
|
960
960
|
/**
|
|
961
961
|
* Padding Inline Start
|
|
962
962
|
* @see https://tailwindcss.com/docs/padding
|
|
963
963
|
*/
|
|
964
964
|
ps: [{
|
|
965
|
-
ps:
|
|
965
|
+
ps: i()
|
|
966
966
|
}],
|
|
967
967
|
/**
|
|
968
968
|
* Padding Inline End
|
|
969
969
|
* @see https://tailwindcss.com/docs/padding
|
|
970
970
|
*/
|
|
971
971
|
pe: [{
|
|
972
|
-
pe:
|
|
972
|
+
pe: i()
|
|
973
973
|
}],
|
|
974
974
|
/**
|
|
975
975
|
* Padding Block Start
|
|
976
976
|
* @see https://tailwindcss.com/docs/padding
|
|
977
977
|
*/
|
|
978
978
|
pbs: [{
|
|
979
|
-
pbs:
|
|
979
|
+
pbs: i()
|
|
980
980
|
}],
|
|
981
981
|
/**
|
|
982
982
|
* Padding Block End
|
|
983
983
|
* @see https://tailwindcss.com/docs/padding
|
|
984
984
|
*/
|
|
985
985
|
pbe: [{
|
|
986
|
-
pbe:
|
|
986
|
+
pbe: i()
|
|
987
987
|
}],
|
|
988
988
|
/**
|
|
989
989
|
* Padding Top
|
|
990
990
|
* @see https://tailwindcss.com/docs/padding
|
|
991
991
|
*/
|
|
992
992
|
pt: [{
|
|
993
|
-
pt:
|
|
993
|
+
pt: i()
|
|
994
994
|
}],
|
|
995
995
|
/**
|
|
996
996
|
* Padding Right
|
|
997
997
|
* @see https://tailwindcss.com/docs/padding
|
|
998
998
|
*/
|
|
999
999
|
pr: [{
|
|
1000
|
-
pr:
|
|
1000
|
+
pr: i()
|
|
1001
1001
|
}],
|
|
1002
1002
|
/**
|
|
1003
1003
|
* Padding Bottom
|
|
1004
1004
|
* @see https://tailwindcss.com/docs/padding
|
|
1005
1005
|
*/
|
|
1006
1006
|
pb: [{
|
|
1007
|
-
pb:
|
|
1007
|
+
pb: i()
|
|
1008
1008
|
}],
|
|
1009
1009
|
/**
|
|
1010
1010
|
* Padding Left
|
|
1011
1011
|
* @see https://tailwindcss.com/docs/padding
|
|
1012
1012
|
*/
|
|
1013
1013
|
pl: [{
|
|
1014
|
-
pl:
|
|
1014
|
+
pl: i()
|
|
1015
1015
|
}],
|
|
1016
1016
|
/**
|
|
1017
1017
|
* Margin
|
|
@@ -1095,7 +1095,7 @@ const eo = (e, r) => {
|
|
|
1095
1095
|
* @see https://tailwindcss.com/docs/margin#adding-space-between-children
|
|
1096
1096
|
*/
|
|
1097
1097
|
"space-x": [{
|
|
1098
|
-
"space-x":
|
|
1098
|
+
"space-x": i()
|
|
1099
1099
|
}],
|
|
1100
1100
|
/**
|
|
1101
1101
|
* Space Between X Reverse
|
|
@@ -1107,7 +1107,7 @@ const eo = (e, r) => {
|
|
|
1107
1107
|
* @see https://tailwindcss.com/docs/margin#adding-space-between-children
|
|
1108
1108
|
*/
|
|
1109
1109
|
"space-y": [{
|
|
1110
|
-
"space-y":
|
|
1110
|
+
"space-y": i()
|
|
1111
1111
|
}],
|
|
1112
1112
|
/**
|
|
1113
1113
|
* Space Between Y Reverse
|
|
@@ -1122,7 +1122,7 @@ const eo = (e, r) => {
|
|
|
1122
1122
|
* @see https://tailwindcss.com/docs/width#setting-both-width-and-height
|
|
1123
1123
|
*/
|
|
1124
1124
|
size: [{
|
|
1125
|
-
size:
|
|
1125
|
+
size: _()
|
|
1126
1126
|
}],
|
|
1127
1127
|
/**
|
|
1128
1128
|
* Inline Size
|
|
@@ -1171,7 +1171,7 @@ const eo = (e, r) => {
|
|
|
1171
1171
|
* @see https://tailwindcss.com/docs/width
|
|
1172
1172
|
*/
|
|
1173
1173
|
w: [{
|
|
1174
|
-
w: [u, "screen", ...
|
|
1174
|
+
w: [u, "screen", ..._()]
|
|
1175
1175
|
}],
|
|
1176
1176
|
/**
|
|
1177
1177
|
* Min-Width
|
|
@@ -1183,7 +1183,7 @@ const eo = (e, r) => {
|
|
|
1183
1183
|
"screen",
|
|
1184
1184
|
/** Deprecated. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
1185
1185
|
"none",
|
|
1186
|
-
...
|
|
1186
|
+
..._()
|
|
1187
1187
|
]
|
|
1188
1188
|
}],
|
|
1189
1189
|
/**
|
|
@@ -1201,7 +1201,7 @@ const eo = (e, r) => {
|
|
|
1201
1201
|
{
|
|
1202
1202
|
screen: [l]
|
|
1203
1203
|
},
|
|
1204
|
-
...
|
|
1204
|
+
..._()
|
|
1205
1205
|
]
|
|
1206
1206
|
}],
|
|
1207
1207
|
/**
|
|
@@ -1209,21 +1209,21 @@ const eo = (e, r) => {
|
|
|
1209
1209
|
* @see https://tailwindcss.com/docs/height
|
|
1210
1210
|
*/
|
|
1211
1211
|
h: [{
|
|
1212
|
-
h: ["screen", "lh", ...
|
|
1212
|
+
h: ["screen", "lh", ..._()]
|
|
1213
1213
|
}],
|
|
1214
1214
|
/**
|
|
1215
1215
|
* Min-Height
|
|
1216
1216
|
* @see https://tailwindcss.com/docs/min-height
|
|
1217
1217
|
*/
|
|
1218
1218
|
"min-h": [{
|
|
1219
|
-
"min-h": ["screen", "lh", "none", ...
|
|
1219
|
+
"min-h": ["screen", "lh", "none", ..._()]
|
|
1220
1220
|
}],
|
|
1221
1221
|
/**
|
|
1222
1222
|
* Max-Height
|
|
1223
1223
|
* @see https://tailwindcss.com/docs/max-height
|
|
1224
1224
|
*/
|
|
1225
1225
|
"max-h": [{
|
|
1226
|
-
"max-h": ["screen", "lh", ...
|
|
1226
|
+
"max-h": ["screen", "lh", ..._()]
|
|
1227
1227
|
}],
|
|
1228
1228
|
// ------------------
|
|
1229
1229
|
// --- Typography ---
|
|
@@ -1233,7 +1233,7 @@ const eo = (e, r) => {
|
|
|
1233
1233
|
* @see https://tailwindcss.com/docs/font-size
|
|
1234
1234
|
*/
|
|
1235
1235
|
"font-size": [{
|
|
1236
|
-
text: ["base", t,
|
|
1236
|
+
text: ["base", t, D, B]
|
|
1237
1237
|
}],
|
|
1238
1238
|
/**
|
|
1239
1239
|
* Font Smoothing
|
|
@@ -1250,7 +1250,7 @@ const eo = (e, r) => {
|
|
|
1250
1250
|
* @see https://tailwindcss.com/docs/font-weight
|
|
1251
1251
|
*/
|
|
1252
1252
|
"font-weight": [{
|
|
1253
|
-
font: [o,
|
|
1253
|
+
font: [o, Wo, _o]
|
|
1254
1254
|
}],
|
|
1255
1255
|
/**
|
|
1256
1256
|
* Font Stretch
|
|
@@ -1264,7 +1264,7 @@ const eo = (e, r) => {
|
|
|
1264
1264
|
* @see https://tailwindcss.com/docs/font-family
|
|
1265
1265
|
*/
|
|
1266
1266
|
"font-family": [{
|
|
1267
|
-
font: [
|
|
1267
|
+
font: [Fo, jo, r]
|
|
1268
1268
|
}],
|
|
1269
1269
|
/**
|
|
1270
1270
|
* Font Feature Settings
|
|
@@ -1308,7 +1308,7 @@ const eo = (e, r) => {
|
|
|
1308
1308
|
* @see https://tailwindcss.com/docs/letter-spacing
|
|
1309
1309
|
*/
|
|
1310
1310
|
tracking: [{
|
|
1311
|
-
tracking: [
|
|
1311
|
+
tracking: [a, s, n]
|
|
1312
1312
|
}],
|
|
1313
1313
|
/**
|
|
1314
1314
|
* Line Clamp
|
|
@@ -1325,7 +1325,7 @@ const eo = (e, r) => {
|
|
|
1325
1325
|
leading: [
|
|
1326
1326
|
/** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
1327
1327
|
d,
|
|
1328
|
-
...
|
|
1328
|
+
...i()
|
|
1329
1329
|
]
|
|
1330
1330
|
}],
|
|
1331
1331
|
/**
|
|
@@ -1381,14 +1381,14 @@ const eo = (e, r) => {
|
|
|
1381
1381
|
* @see https://tailwindcss.com/docs/text-decoration-style
|
|
1382
1382
|
*/
|
|
1383
1383
|
"text-decoration-style": [{
|
|
1384
|
-
decoration: [...
|
|
1384
|
+
decoration: [...H(), "wavy"]
|
|
1385
1385
|
}],
|
|
1386
1386
|
/**
|
|
1387
1387
|
* Text Decoration Thickness
|
|
1388
1388
|
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
|
1389
1389
|
*/
|
|
1390
1390
|
"text-decoration-thickness": [{
|
|
1391
|
-
decoration: [p, "from-font", "auto", s,
|
|
1391
|
+
decoration: [p, "from-font", "auto", s, B]
|
|
1392
1392
|
}],
|
|
1393
1393
|
/**
|
|
1394
1394
|
* Text Decoration Color
|
|
@@ -1426,7 +1426,7 @@ const eo = (e, r) => {
|
|
|
1426
1426
|
* @see https://tailwindcss.com/docs/text-indent
|
|
1427
1427
|
*/
|
|
1428
1428
|
indent: [{
|
|
1429
|
-
indent:
|
|
1429
|
+
indent: i()
|
|
1430
1430
|
}],
|
|
1431
1431
|
/**
|
|
1432
1432
|
* Tab Size
|
|
@@ -1533,7 +1533,7 @@ const eo = (e, r) => {
|
|
|
1533
1533
|
}, I, s, n],
|
|
1534
1534
|
radial: ["", s, n],
|
|
1535
1535
|
conic: [I, s, n]
|
|
1536
|
-
},
|
|
1536
|
+
}, Vo, Bo]
|
|
1537
1537
|
}],
|
|
1538
1538
|
/**
|
|
1539
1539
|
* Background Color
|
|
@@ -1592,105 +1592,105 @@ const eo = (e, r) => {
|
|
|
1592
1592
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1593
1593
|
*/
|
|
1594
1594
|
rounded: [{
|
|
1595
|
-
rounded:
|
|
1595
|
+
rounded: k()
|
|
1596
1596
|
}],
|
|
1597
1597
|
/**
|
|
1598
1598
|
* Border Radius Start
|
|
1599
1599
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1600
1600
|
*/
|
|
1601
1601
|
"rounded-s": [{
|
|
1602
|
-
"rounded-s":
|
|
1602
|
+
"rounded-s": k()
|
|
1603
1603
|
}],
|
|
1604
1604
|
/**
|
|
1605
1605
|
* Border Radius End
|
|
1606
1606
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1607
1607
|
*/
|
|
1608
1608
|
"rounded-e": [{
|
|
1609
|
-
"rounded-e":
|
|
1609
|
+
"rounded-e": k()
|
|
1610
1610
|
}],
|
|
1611
1611
|
/**
|
|
1612
1612
|
* Border Radius Top
|
|
1613
1613
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1614
1614
|
*/
|
|
1615
1615
|
"rounded-t": [{
|
|
1616
|
-
"rounded-t":
|
|
1616
|
+
"rounded-t": k()
|
|
1617
1617
|
}],
|
|
1618
1618
|
/**
|
|
1619
1619
|
* Border Radius Right
|
|
1620
1620
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1621
1621
|
*/
|
|
1622
1622
|
"rounded-r": [{
|
|
1623
|
-
"rounded-r":
|
|
1623
|
+
"rounded-r": k()
|
|
1624
1624
|
}],
|
|
1625
1625
|
/**
|
|
1626
1626
|
* Border Radius Bottom
|
|
1627
1627
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1628
1628
|
*/
|
|
1629
1629
|
"rounded-b": [{
|
|
1630
|
-
"rounded-b":
|
|
1630
|
+
"rounded-b": k()
|
|
1631
1631
|
}],
|
|
1632
1632
|
/**
|
|
1633
1633
|
* Border Radius Left
|
|
1634
1634
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1635
1635
|
*/
|
|
1636
1636
|
"rounded-l": [{
|
|
1637
|
-
"rounded-l":
|
|
1637
|
+
"rounded-l": k()
|
|
1638
1638
|
}],
|
|
1639
1639
|
/**
|
|
1640
1640
|
* Border Radius Start Start
|
|
1641
1641
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1642
1642
|
*/
|
|
1643
1643
|
"rounded-ss": [{
|
|
1644
|
-
"rounded-ss":
|
|
1644
|
+
"rounded-ss": k()
|
|
1645
1645
|
}],
|
|
1646
1646
|
/**
|
|
1647
1647
|
* Border Radius Start End
|
|
1648
1648
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1649
1649
|
*/
|
|
1650
1650
|
"rounded-se": [{
|
|
1651
|
-
"rounded-se":
|
|
1651
|
+
"rounded-se": k()
|
|
1652
1652
|
}],
|
|
1653
1653
|
/**
|
|
1654
1654
|
* Border Radius End End
|
|
1655
1655
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1656
1656
|
*/
|
|
1657
1657
|
"rounded-ee": [{
|
|
1658
|
-
"rounded-ee":
|
|
1658
|
+
"rounded-ee": k()
|
|
1659
1659
|
}],
|
|
1660
1660
|
/**
|
|
1661
1661
|
* Border Radius End Start
|
|
1662
1662
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1663
1663
|
*/
|
|
1664
1664
|
"rounded-es": [{
|
|
1665
|
-
"rounded-es":
|
|
1665
|
+
"rounded-es": k()
|
|
1666
1666
|
}],
|
|
1667
1667
|
/**
|
|
1668
1668
|
* Border Radius Top Left
|
|
1669
1669
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1670
1670
|
*/
|
|
1671
1671
|
"rounded-tl": [{
|
|
1672
|
-
"rounded-tl":
|
|
1672
|
+
"rounded-tl": k()
|
|
1673
1673
|
}],
|
|
1674
1674
|
/**
|
|
1675
1675
|
* Border Radius Top Right
|
|
1676
1676
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1677
1677
|
*/
|
|
1678
1678
|
"rounded-tr": [{
|
|
1679
|
-
"rounded-tr":
|
|
1679
|
+
"rounded-tr": k()
|
|
1680
1680
|
}],
|
|
1681
1681
|
/**
|
|
1682
1682
|
* Border Radius Bottom Right
|
|
1683
1683
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1684
1684
|
*/
|
|
1685
1685
|
"rounded-br": [{
|
|
1686
|
-
"rounded-br":
|
|
1686
|
+
"rounded-br": k()
|
|
1687
1687
|
}],
|
|
1688
1688
|
/**
|
|
1689
1689
|
* Border Radius Bottom Left
|
|
1690
1690
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1691
1691
|
*/
|
|
1692
1692
|
"rounded-bl": [{
|
|
1693
|
-
"rounded-bl":
|
|
1693
|
+
"rounded-bl": k()
|
|
1694
1694
|
}],
|
|
1695
1695
|
/**
|
|
1696
1696
|
* Border Width
|
|
@@ -1798,14 +1798,14 @@ const eo = (e, r) => {
|
|
|
1798
1798
|
* @see https://tailwindcss.com/docs/border-style
|
|
1799
1799
|
*/
|
|
1800
1800
|
"border-style": [{
|
|
1801
|
-
border: [...
|
|
1801
|
+
border: [...H(), "hidden", "none"]
|
|
1802
1802
|
}],
|
|
1803
1803
|
/**
|
|
1804
1804
|
* Divide Style
|
|
1805
1805
|
* @see https://tailwindcss.com/docs/border-style#setting-the-divider-style
|
|
1806
1806
|
*/
|
|
1807
1807
|
"divide-style": [{
|
|
1808
|
-
divide: [...
|
|
1808
|
+
divide: [...H(), "hidden", "none"]
|
|
1809
1809
|
}],
|
|
1810
1810
|
/**
|
|
1811
1811
|
* Border Color
|
|
@@ -1896,7 +1896,7 @@ const eo = (e, r) => {
|
|
|
1896
1896
|
* @see https://tailwindcss.com/docs/outline-style
|
|
1897
1897
|
*/
|
|
1898
1898
|
"outline-style": [{
|
|
1899
|
-
outline: [...
|
|
1899
|
+
outline: [...H(), "none", "hidden"]
|
|
1900
1900
|
}],
|
|
1901
1901
|
/**
|
|
1902
1902
|
* Outline Offset
|
|
@@ -1910,7 +1910,7 @@ const eo = (e, r) => {
|
|
|
1910
1910
|
* @see https://tailwindcss.com/docs/outline-width
|
|
1911
1911
|
*/
|
|
1912
1912
|
"outline-w": [{
|
|
1913
|
-
outline: ["", p,
|
|
1913
|
+
outline: ["", p, D, B]
|
|
1914
1914
|
}],
|
|
1915
1915
|
/**
|
|
1916
1916
|
* Outline Color
|
|
@@ -1933,7 +1933,7 @@ const eo = (e, r) => {
|
|
|
1933
1933
|
"none",
|
|
1934
1934
|
h,
|
|
1935
1935
|
Q,
|
|
1936
|
-
|
|
1936
|
+
X
|
|
1937
1937
|
]
|
|
1938
1938
|
}],
|
|
1939
1939
|
/**
|
|
@@ -1948,7 +1948,7 @@ const eo = (e, r) => {
|
|
|
1948
1948
|
* @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-shadow
|
|
1949
1949
|
*/
|
|
1950
1950
|
"inset-shadow": [{
|
|
1951
|
-
"inset-shadow": ["none", x, Q,
|
|
1951
|
+
"inset-shadow": ["none", x, Q, X]
|
|
1952
1952
|
}],
|
|
1953
1953
|
/**
|
|
1954
1954
|
* Inset Box Shadow Color
|
|
@@ -1985,7 +1985,7 @@ const eo = (e, r) => {
|
|
|
1985
1985
|
* @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
|
|
1986
1986
|
*/
|
|
1987
1987
|
"ring-offset-w": [{
|
|
1988
|
-
"ring-offset": [p,
|
|
1988
|
+
"ring-offset": [p, B]
|
|
1989
1989
|
}],
|
|
1990
1990
|
/**
|
|
1991
1991
|
* Ring Offset Color
|
|
@@ -2015,7 +2015,7 @@ const eo = (e, r) => {
|
|
|
2015
2015
|
* @see https://tailwindcss.com/docs/text-shadow
|
|
2016
2016
|
*/
|
|
2017
2017
|
"text-shadow": [{
|
|
2018
|
-
"text-shadow": ["none",
|
|
2018
|
+
"text-shadow": ["none", T, Q, X]
|
|
2019
2019
|
}],
|
|
2020
2020
|
/**
|
|
2021
2021
|
* Text Shadow Color
|
|
@@ -2287,9 +2287,9 @@ const eo = (e, r) => {
|
|
|
2287
2287
|
// Deprecated since Tailwind CSS v4.0.0
|
|
2288
2288
|
"",
|
|
2289
2289
|
"none",
|
|
2290
|
-
|
|
2290
|
+
A,
|
|
2291
2291
|
Q,
|
|
2292
|
-
|
|
2292
|
+
X
|
|
2293
2293
|
]
|
|
2294
2294
|
}],
|
|
2295
2295
|
/**
|
|
@@ -2425,21 +2425,21 @@ const eo = (e, r) => {
|
|
|
2425
2425
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
2426
2426
|
*/
|
|
2427
2427
|
"border-spacing": [{
|
|
2428
|
-
"border-spacing":
|
|
2428
|
+
"border-spacing": i()
|
|
2429
2429
|
}],
|
|
2430
2430
|
/**
|
|
2431
2431
|
* Border Spacing X
|
|
2432
2432
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
2433
2433
|
*/
|
|
2434
2434
|
"border-spacing-x": [{
|
|
2435
|
-
"border-spacing-x":
|
|
2435
|
+
"border-spacing-x": i()
|
|
2436
2436
|
}],
|
|
2437
2437
|
/**
|
|
2438
2438
|
* Border Spacing Y
|
|
2439
2439
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
2440
2440
|
*/
|
|
2441
2441
|
"border-spacing-y": [{
|
|
2442
|
-
"border-spacing-y":
|
|
2442
|
+
"border-spacing-y": i()
|
|
2443
2443
|
}],
|
|
2444
2444
|
/**
|
|
2445
2445
|
* Table Layout
|
|
@@ -2484,7 +2484,7 @@ const eo = (e, r) => {
|
|
|
2484
2484
|
* @see https://tailwindcss.com/docs/transition-timing-function
|
|
2485
2485
|
*/
|
|
2486
2486
|
ease: [{
|
|
2487
|
-
ease: ["linear", "initial",
|
|
2487
|
+
ease: ["linear", "initial", E, s, n]
|
|
2488
2488
|
}],
|
|
2489
2489
|
/**
|
|
2490
2490
|
* Transition Delay
|
|
@@ -2515,70 +2515,70 @@ const eo = (e, r) => {
|
|
|
2515
2515
|
* @see https://tailwindcss.com/docs/perspective
|
|
2516
2516
|
*/
|
|
2517
2517
|
perspective: [{
|
|
2518
|
-
perspective: [
|
|
2518
|
+
perspective: [y, s, n]
|
|
2519
2519
|
}],
|
|
2520
2520
|
/**
|
|
2521
2521
|
* Perspective Origin
|
|
2522
2522
|
* @see https://tailwindcss.com/docs/perspective-origin
|
|
2523
2523
|
*/
|
|
2524
2524
|
"perspective-origin": [{
|
|
2525
|
-
"perspective-origin":
|
|
2525
|
+
"perspective-origin": V()
|
|
2526
2526
|
}],
|
|
2527
2527
|
/**
|
|
2528
2528
|
* Rotate
|
|
2529
2529
|
* @see https://tailwindcss.com/docs/rotate
|
|
2530
2530
|
*/
|
|
2531
2531
|
rotate: [{
|
|
2532
|
-
rotate:
|
|
2532
|
+
rotate: J()
|
|
2533
2533
|
}],
|
|
2534
2534
|
/**
|
|
2535
2535
|
* Rotate X
|
|
2536
2536
|
* @see https://tailwindcss.com/docs/rotate
|
|
2537
2537
|
*/
|
|
2538
2538
|
"rotate-x": [{
|
|
2539
|
-
"rotate-x":
|
|
2539
|
+
"rotate-x": J()
|
|
2540
2540
|
}],
|
|
2541
2541
|
/**
|
|
2542
2542
|
* Rotate Y
|
|
2543
2543
|
* @see https://tailwindcss.com/docs/rotate
|
|
2544
2544
|
*/
|
|
2545
2545
|
"rotate-y": [{
|
|
2546
|
-
"rotate-y":
|
|
2546
|
+
"rotate-y": J()
|
|
2547
2547
|
}],
|
|
2548
2548
|
/**
|
|
2549
2549
|
* Rotate Z
|
|
2550
2550
|
* @see https://tailwindcss.com/docs/rotate
|
|
2551
2551
|
*/
|
|
2552
2552
|
"rotate-z": [{
|
|
2553
|
-
"rotate-z":
|
|
2553
|
+
"rotate-z": J()
|
|
2554
2554
|
}],
|
|
2555
2555
|
/**
|
|
2556
2556
|
* Scale
|
|
2557
2557
|
* @see https://tailwindcss.com/docs/scale
|
|
2558
2558
|
*/
|
|
2559
2559
|
scale: [{
|
|
2560
|
-
scale:
|
|
2560
|
+
scale: Y()
|
|
2561
2561
|
}],
|
|
2562
2562
|
/**
|
|
2563
2563
|
* Scale X
|
|
2564
2564
|
* @see https://tailwindcss.com/docs/scale
|
|
2565
2565
|
*/
|
|
2566
2566
|
"scale-x": [{
|
|
2567
|
-
"scale-x":
|
|
2567
|
+
"scale-x": Y()
|
|
2568
2568
|
}],
|
|
2569
2569
|
/**
|
|
2570
2570
|
* Scale Y
|
|
2571
2571
|
* @see https://tailwindcss.com/docs/scale
|
|
2572
2572
|
*/
|
|
2573
2573
|
"scale-y": [{
|
|
2574
|
-
"scale-y":
|
|
2574
|
+
"scale-y": Y()
|
|
2575
2575
|
}],
|
|
2576
2576
|
/**
|
|
2577
2577
|
* Scale Z
|
|
2578
2578
|
* @see https://tailwindcss.com/docs/scale
|
|
2579
2579
|
*/
|
|
2580
2580
|
"scale-z": [{
|
|
2581
|
-
"scale-z":
|
|
2581
|
+
"scale-z": Y()
|
|
2582
2582
|
}],
|
|
2583
2583
|
/**
|
|
2584
2584
|
* Scale 3D
|
|
@@ -2618,7 +2618,7 @@ const eo = (e, r) => {
|
|
|
2618
2618
|
* @see https://tailwindcss.com/docs/transform-origin
|
|
2619
2619
|
*/
|
|
2620
2620
|
"transform-origin": [{
|
|
2621
|
-
origin:
|
|
2621
|
+
origin: V()
|
|
2622
2622
|
}],
|
|
2623
2623
|
/**
|
|
2624
2624
|
* Transform Style
|
|
@@ -2632,28 +2632,28 @@ const eo = (e, r) => {
|
|
|
2632
2632
|
* @see https://tailwindcss.com/docs/translate
|
|
2633
2633
|
*/
|
|
2634
2634
|
translate: [{
|
|
2635
|
-
translate:
|
|
2635
|
+
translate: Z()
|
|
2636
2636
|
}],
|
|
2637
2637
|
/**
|
|
2638
2638
|
* Translate X
|
|
2639
2639
|
* @see https://tailwindcss.com/docs/translate
|
|
2640
2640
|
*/
|
|
2641
2641
|
"translate-x": [{
|
|
2642
|
-
"translate-x":
|
|
2642
|
+
"translate-x": Z()
|
|
2643
2643
|
}],
|
|
2644
2644
|
/**
|
|
2645
2645
|
* Translate Y
|
|
2646
2646
|
* @see https://tailwindcss.com/docs/translate
|
|
2647
2647
|
*/
|
|
2648
2648
|
"translate-y": [{
|
|
2649
|
-
"translate-y":
|
|
2649
|
+
"translate-y": Z()
|
|
2650
2650
|
}],
|
|
2651
2651
|
/**
|
|
2652
2652
|
* Translate Z
|
|
2653
2653
|
* @see https://tailwindcss.com/docs/translate
|
|
2654
2654
|
*/
|
|
2655
2655
|
"translate-z": [{
|
|
2656
|
-
"translate-z":
|
|
2656
|
+
"translate-z": Z()
|
|
2657
2657
|
}],
|
|
2658
2658
|
/**
|
|
2659
2659
|
* Translate None
|
|
@@ -2766,154 +2766,154 @@ const eo = (e, r) => {
|
|
|
2766
2766
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2767
2767
|
*/
|
|
2768
2768
|
"scroll-m": [{
|
|
2769
|
-
"scroll-m":
|
|
2769
|
+
"scroll-m": i()
|
|
2770
2770
|
}],
|
|
2771
2771
|
/**
|
|
2772
2772
|
* Scroll Margin Inline
|
|
2773
2773
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2774
2774
|
*/
|
|
2775
2775
|
"scroll-mx": [{
|
|
2776
|
-
"scroll-mx":
|
|
2776
|
+
"scroll-mx": i()
|
|
2777
2777
|
}],
|
|
2778
2778
|
/**
|
|
2779
2779
|
* Scroll Margin Block
|
|
2780
2780
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2781
2781
|
*/
|
|
2782
2782
|
"scroll-my": [{
|
|
2783
|
-
"scroll-my":
|
|
2783
|
+
"scroll-my": i()
|
|
2784
2784
|
}],
|
|
2785
2785
|
/**
|
|
2786
2786
|
* Scroll Margin Inline Start
|
|
2787
2787
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2788
2788
|
*/
|
|
2789
2789
|
"scroll-ms": [{
|
|
2790
|
-
"scroll-ms":
|
|
2790
|
+
"scroll-ms": i()
|
|
2791
2791
|
}],
|
|
2792
2792
|
/**
|
|
2793
2793
|
* Scroll Margin Inline End
|
|
2794
2794
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2795
2795
|
*/
|
|
2796
2796
|
"scroll-me": [{
|
|
2797
|
-
"scroll-me":
|
|
2797
|
+
"scroll-me": i()
|
|
2798
2798
|
}],
|
|
2799
2799
|
/**
|
|
2800
2800
|
* Scroll Margin Block Start
|
|
2801
2801
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2802
2802
|
*/
|
|
2803
2803
|
"scroll-mbs": [{
|
|
2804
|
-
"scroll-mbs":
|
|
2804
|
+
"scroll-mbs": i()
|
|
2805
2805
|
}],
|
|
2806
2806
|
/**
|
|
2807
2807
|
* Scroll Margin Block End
|
|
2808
2808
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2809
2809
|
*/
|
|
2810
2810
|
"scroll-mbe": [{
|
|
2811
|
-
"scroll-mbe":
|
|
2811
|
+
"scroll-mbe": i()
|
|
2812
2812
|
}],
|
|
2813
2813
|
/**
|
|
2814
2814
|
* Scroll Margin Top
|
|
2815
2815
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2816
2816
|
*/
|
|
2817
2817
|
"scroll-mt": [{
|
|
2818
|
-
"scroll-mt":
|
|
2818
|
+
"scroll-mt": i()
|
|
2819
2819
|
}],
|
|
2820
2820
|
/**
|
|
2821
2821
|
* Scroll Margin Right
|
|
2822
2822
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2823
2823
|
*/
|
|
2824
2824
|
"scroll-mr": [{
|
|
2825
|
-
"scroll-mr":
|
|
2825
|
+
"scroll-mr": i()
|
|
2826
2826
|
}],
|
|
2827
2827
|
/**
|
|
2828
2828
|
* Scroll Margin Bottom
|
|
2829
2829
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2830
2830
|
*/
|
|
2831
2831
|
"scroll-mb": [{
|
|
2832
|
-
"scroll-mb":
|
|
2832
|
+
"scroll-mb": i()
|
|
2833
2833
|
}],
|
|
2834
2834
|
/**
|
|
2835
2835
|
* Scroll Margin Left
|
|
2836
2836
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2837
2837
|
*/
|
|
2838
2838
|
"scroll-ml": [{
|
|
2839
|
-
"scroll-ml":
|
|
2839
|
+
"scroll-ml": i()
|
|
2840
2840
|
}],
|
|
2841
2841
|
/**
|
|
2842
2842
|
* Scroll Padding
|
|
2843
2843
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2844
2844
|
*/
|
|
2845
2845
|
"scroll-p": [{
|
|
2846
|
-
"scroll-p":
|
|
2846
|
+
"scroll-p": i()
|
|
2847
2847
|
}],
|
|
2848
2848
|
/**
|
|
2849
2849
|
* Scroll Padding Inline
|
|
2850
2850
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2851
2851
|
*/
|
|
2852
2852
|
"scroll-px": [{
|
|
2853
|
-
"scroll-px":
|
|
2853
|
+
"scroll-px": i()
|
|
2854
2854
|
}],
|
|
2855
2855
|
/**
|
|
2856
2856
|
* Scroll Padding Block
|
|
2857
2857
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2858
2858
|
*/
|
|
2859
2859
|
"scroll-py": [{
|
|
2860
|
-
"scroll-py":
|
|
2860
|
+
"scroll-py": i()
|
|
2861
2861
|
}],
|
|
2862
2862
|
/**
|
|
2863
2863
|
* Scroll Padding Inline Start
|
|
2864
2864
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2865
2865
|
*/
|
|
2866
2866
|
"scroll-ps": [{
|
|
2867
|
-
"scroll-ps":
|
|
2867
|
+
"scroll-ps": i()
|
|
2868
2868
|
}],
|
|
2869
2869
|
/**
|
|
2870
2870
|
* Scroll Padding Inline End
|
|
2871
2871
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2872
2872
|
*/
|
|
2873
2873
|
"scroll-pe": [{
|
|
2874
|
-
"scroll-pe":
|
|
2874
|
+
"scroll-pe": i()
|
|
2875
2875
|
}],
|
|
2876
2876
|
/**
|
|
2877
2877
|
* Scroll Padding Block Start
|
|
2878
2878
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2879
2879
|
*/
|
|
2880
2880
|
"scroll-pbs": [{
|
|
2881
|
-
"scroll-pbs":
|
|
2881
|
+
"scroll-pbs": i()
|
|
2882
2882
|
}],
|
|
2883
2883
|
/**
|
|
2884
2884
|
* Scroll Padding Block End
|
|
2885
2885
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2886
2886
|
*/
|
|
2887
2887
|
"scroll-pbe": [{
|
|
2888
|
-
"scroll-pbe":
|
|
2888
|
+
"scroll-pbe": i()
|
|
2889
2889
|
}],
|
|
2890
2890
|
/**
|
|
2891
2891
|
* Scroll Padding Top
|
|
2892
2892
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2893
2893
|
*/
|
|
2894
2894
|
"scroll-pt": [{
|
|
2895
|
-
"scroll-pt":
|
|
2895
|
+
"scroll-pt": i()
|
|
2896
2896
|
}],
|
|
2897
2897
|
/**
|
|
2898
2898
|
* Scroll Padding Right
|
|
2899
2899
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2900
2900
|
*/
|
|
2901
2901
|
"scroll-pr": [{
|
|
2902
|
-
"scroll-pr":
|
|
2902
|
+
"scroll-pr": i()
|
|
2903
2903
|
}],
|
|
2904
2904
|
/**
|
|
2905
2905
|
* Scroll Padding Bottom
|
|
2906
2906
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2907
2907
|
*/
|
|
2908
2908
|
"scroll-pb": [{
|
|
2909
|
-
"scroll-pb":
|
|
2909
|
+
"scroll-pb": i()
|
|
2910
2910
|
}],
|
|
2911
2911
|
/**
|
|
2912
2912
|
* Scroll Padding Left
|
|
2913
2913
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2914
2914
|
*/
|
|
2915
2915
|
"scroll-pl": [{
|
|
2916
|
-
"scroll-pl":
|
|
2916
|
+
"scroll-pl": i()
|
|
2917
2917
|
}],
|
|
2918
2918
|
/**
|
|
2919
2919
|
* Scroll Snap Align
|
|
@@ -2998,7 +2998,7 @@ const eo = (e, r) => {
|
|
|
2998
2998
|
* @see https://tailwindcss.com/docs/stroke-width
|
|
2999
2999
|
*/
|
|
3000
3000
|
"stroke-w": [{
|
|
3001
|
-
stroke: [p,
|
|
3001
|
+
stroke: [p, D, B, we]
|
|
3002
3002
|
}],
|
|
3003
3003
|
/**
|
|
3004
3004
|
* Stroke
|
|
@@ -3075,11 +3075,11 @@ const eo = (e, r) => {
|
|
|
3075
3075
|
postfixLookupClassGroups: ["container-type"],
|
|
3076
3076
|
orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
|
|
3077
3077
|
};
|
|
3078
|
-
},
|
|
3079
|
-
function
|
|
3080
|
-
return
|
|
3078
|
+
}, Do = /* @__PURE__ */ vo(Uo);
|
|
3079
|
+
function Yo(...e) {
|
|
3080
|
+
return Do(qe(e));
|
|
3081
3081
|
}
|
|
3082
|
-
const
|
|
3082
|
+
const Fe = {
|
|
3083
3083
|
"+1": {
|
|
3084
3084
|
pattern: /^[2-9]\d{9}$/,
|
|
3085
3085
|
minLength: 10,
|
|
@@ -3156,30 +3156,91 @@ const $e = {
|
|
|
3156
3156
|
pattern: /^\d{6,15}$/,
|
|
3157
3157
|
maxLength: 15,
|
|
3158
3158
|
description: "6-15 digits"
|
|
3159
|
-
},
|
|
3159
|
+
}, Zo = (e, r) => {
|
|
3160
3160
|
if (!e)
|
|
3161
3161
|
return { isValid: !0, error: "" };
|
|
3162
|
-
const t =
|
|
3162
|
+
const t = Fe[r] || Oe;
|
|
3163
3163
|
return t.pattern.test(e) ? { isValid: !0, error: "" } : {
|
|
3164
3164
|
isValid: !1,
|
|
3165
3165
|
error: `Please enter a valid phone number (${t.description})`
|
|
3166
3166
|
};
|
|
3167
|
-
},
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
|
|
3167
|
+
}, Xo = (e) => (Fe[e] || Oe).maxLength, Qo = [
|
|
3168
|
+
{ name: "United States", code: "+1", iso: "US" },
|
|
3169
|
+
{ name: "United Kingdom", code: "+44", iso: "GB" },
|
|
3170
|
+
{ name: "Australia", code: "+61", iso: "AU" },
|
|
3171
|
+
{ name: "Canada", code: "+1", iso: "CA" },
|
|
3172
|
+
{ name: "United Arab Emirates", code: "+971", iso: "AE" },
|
|
3173
|
+
{ name: "Singapore", code: "+65", iso: "SG" },
|
|
3174
|
+
{ name: "New Zealand", code: "+64", iso: "NZ" },
|
|
3175
|
+
{ name: "Mauritius", code: "+230", iso: "MU" },
|
|
3176
|
+
{ name: "Netherlands", code: "+31", iso: "NL" },
|
|
3177
|
+
{ name: "Malaysia", code: "+60", iso: "MY" },
|
|
3178
|
+
{ name: "Germany", code: "+49", iso: "DE" },
|
|
3179
|
+
{ name: "South Africa", code: "+27", iso: "ZA" },
|
|
3180
|
+
{ name: "Qatar", code: "+974", iso: "QA" },
|
|
3181
|
+
{ name: "Ireland", code: "+353", iso: "IE" },
|
|
3182
|
+
{ name: "Oman", code: "+968", iso: "OM" },
|
|
3183
|
+
{ name: "Saudi Arabia", code: "+966", iso: "SA" },
|
|
3184
|
+
{ name: "Hong Kong", code: "+852", iso: "HK" },
|
|
3185
|
+
{ name: "France", code: "+33", iso: "FR" },
|
|
3186
|
+
{ name: "Switzerland", code: "+41", iso: "CH" },
|
|
3187
|
+
{ name: "Bahrain", code: "+973", iso: "BH" },
|
|
3188
|
+
{ name: "Trinidad and Tobago", code: "+1-868", iso: "TT" },
|
|
3189
|
+
{ name: "Kuwait", code: "+965", iso: "KW" },
|
|
3190
|
+
{ name: "Belgium", code: "+32", iso: "BE" },
|
|
3191
|
+
{ name: "Japan", code: "+81", iso: "JP" },
|
|
3192
|
+
{ name: "Italy", code: "+39", iso: "IT" },
|
|
3193
|
+
{ name: "Spain", code: "+34", iso: "ES" },
|
|
3194
|
+
{ name: "Norway", code: "+47", iso: "NO" },
|
|
3195
|
+
{ name: "Sweden", code: "+46", iso: "SE" },
|
|
3196
|
+
{ name: "Portugal", code: "+351", iso: "PT" },
|
|
3197
|
+
{ name: "Poland", code: "+48", iso: "PL" },
|
|
3198
|
+
{ name: "Denmark", code: "+45", iso: "DK" },
|
|
3199
|
+
{ name: "Nepal", code: "+977", iso: "NP" },
|
|
3200
|
+
{ name: "Bangladesh", code: "+880", iso: "BD" },
|
|
3201
|
+
{ name: "Kenya", code: "+254", iso: "KE" },
|
|
3202
|
+
{ name: "Mexico", code: "+52", iso: "MX" },
|
|
3203
|
+
{ name: "Czechia", code: "+420", iso: "CZ" },
|
|
3204
|
+
{ name: "Indonesia", code: "+62", iso: "ID" },
|
|
3205
|
+
{ name: "Taiwan", code: "+886", iso: "TW" },
|
|
3206
|
+
{ name: "Fiji", code: "+679", iso: "FJ" },
|
|
3207
|
+
{ name: "Guyana", code: "+592", iso: "GY" },
|
|
3208
|
+
{ name: "Finland", code: "+358", iso: "FI" },
|
|
3209
|
+
{ name: "Nigeria", code: "+234", iso: "NG" },
|
|
3210
|
+
{ name: "Jamaica", code: "+1-876", iso: "JM" },
|
|
3211
|
+
{ name: "Sri Lanka", code: "+94", iso: "LK" },
|
|
3212
|
+
{ name: "Thailand", code: "+66", iso: "TH" },
|
|
3213
|
+
{ name: "Hungary", code: "+36", iso: "HU" },
|
|
3214
|
+
{ name: "Tanzania", code: "+255", iso: "TZ" },
|
|
3215
|
+
{ name: "Sint Maarten", code: "+1-721", iso: "SX" },
|
|
3216
|
+
{ name: "Philippines", code: "+63", iso: "PH" },
|
|
3217
|
+
{ name: "Estonia", code: "+372", iso: "EE" },
|
|
3218
|
+
{ name: "Ukraine", code: "+380", iso: "UA" },
|
|
3219
|
+
{ name: "Austria", code: "+43", iso: "AT" },
|
|
3220
|
+
{ name: "Réunion", code: "+262", iso: "RE" },
|
|
3221
|
+
{ name: "India", code: "+91", iso: "IN" }
|
|
3222
|
+
], qo = (e) => {
|
|
3223
|
+
if (!e || e.length !== 2) return "🏳️";
|
|
3224
|
+
const r = e.toUpperCase().split("").map((t) => 127397 + t.charCodeAt(0));
|
|
3225
|
+
return String.fromCodePoint(...r);
|
|
3226
|
+
};
|
|
3227
|
+
function et(e) {
|
|
3228
|
+
const r = $e(null), t = ({ locale: a, children: d }) => {
|
|
3229
|
+
const u = { locale: a, t: (b) => e[a]?.[b] ?? b };
|
|
3171
3230
|
return /* @__PURE__ */ P(r.Provider, { value: u, children: d });
|
|
3172
3231
|
};
|
|
3173
3232
|
function o() {
|
|
3174
|
-
return
|
|
3233
|
+
return Ue(r);
|
|
3175
3234
|
}
|
|
3176
3235
|
return { I18nProvider: t, useI18n: o };
|
|
3177
3236
|
}
|
|
3178
3237
|
export {
|
|
3179
|
-
|
|
3180
|
-
|
|
3181
|
-
|
|
3182
|
-
|
|
3183
|
-
|
|
3238
|
+
Jo as BottomSheet,
|
|
3239
|
+
Qo as DEFAULT_COUNTRIES,
|
|
3240
|
+
Yo as cn,
|
|
3241
|
+
et as createI18n,
|
|
3242
|
+
qo as getFlagEmoji,
|
|
3243
|
+
Xo as getMaxLengthForCountry,
|
|
3244
|
+
Zo as validatePhoneByCountryCode
|
|
3184
3245
|
};
|
|
3185
3246
|
//# sourceMappingURL=common.js.map
|