@srimandir/common 2.0.17 → 2.0.19
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 +232 -234
- package/dist/common.js.map +1 -1
- package/dist/common.umd.cjs +1 -1
- package/dist/common.umd.cjs.map +1 -1
- package/dist/components/BottomSheet/BottomSheet.d.ts +0 -2
- package/dist/style.css +1 -1
- package/package.json +2 -2
package/dist/common.js
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as P, jsxs as Ve } from "react/jsx-runtime";
|
|
2
2
|
import { useEffect as We, createContext as $e, useContext as Ue } from "react";
|
|
3
|
-
const De = "
|
|
3
|
+
const De = "_overlay_1dae1_3", Ke = "_sheet_1dae1_14", He = "_handle_1dae1_66", Je = "_closeBtn_1dae1_75", Ye = "_header_1dae1_94", Ze = "_body_1dae1_25", Xe = "_footer_1dae1_106", j = {
|
|
4
4
|
overlay: De,
|
|
5
5
|
sheet: Ke,
|
|
6
6
|
handle: He,
|
|
7
7
|
closeBtn: Je,
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}, se = (...e) => e.filter(Boolean).join(" "), qe = () => /* @__PURE__ */ I("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ I(
|
|
8
|
+
header: Ye,
|
|
9
|
+
body: Ze,
|
|
10
|
+
footer: Xe
|
|
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(
|
|
13
12
|
"path",
|
|
14
13
|
{
|
|
15
14
|
d: "M12 4L4 12M4 4l8 8",
|
|
@@ -17,63 +16,62 @@ const De = "_overlay_1m4co_3", Ke = "_sheet_1m4co_14", He = "_handle_1m4co_66",
|
|
|
17
16
|
strokeWidth: "1.8",
|
|
18
17
|
strokeLinecap: "round"
|
|
19
18
|
}
|
|
20
|
-
) }),
|
|
19
|
+
) }), Jo = ({
|
|
21
20
|
isOpen: e,
|
|
22
21
|
onClose: r,
|
|
23
22
|
children: t,
|
|
24
23
|
header: o,
|
|
25
24
|
footer: a,
|
|
26
25
|
showCloseButton: d = !0,
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
"data-testid": _
|
|
26
|
+
showDragHandle: l = !1,
|
|
27
|
+
closeOnBackdropClick: u = !0,
|
|
28
|
+
closeOnEscape: b = !0,
|
|
29
|
+
lockBodyScroll: m = !0,
|
|
30
|
+
ariaLabel: h,
|
|
31
|
+
className: x = "",
|
|
32
|
+
overlayClassName: T = "",
|
|
33
|
+
"data-testid": A
|
|
36
34
|
}) => (We(() => {
|
|
37
35
|
if (!e) return;
|
|
38
|
-
const
|
|
39
|
-
|
|
36
|
+
const L = (v) => {
|
|
37
|
+
v.key === "Escape" && r();
|
|
40
38
|
};
|
|
41
|
-
|
|
42
|
-
const
|
|
43
|
-
return
|
|
44
|
-
|
|
39
|
+
b && document.addEventListener("keydown", L);
|
|
40
|
+
const w = document.body.style.overflow;
|
|
41
|
+
return m && (document.body.style.overflow = "hidden"), () => {
|
|
42
|
+
b && document.removeEventListener("keydown", L), m && (document.body.style.overflow = w);
|
|
45
43
|
};
|
|
46
|
-
}, [e, r,
|
|
44
|
+
}, [e, r, b, m]), e ? /* @__PURE__ */ P(
|
|
47
45
|
"div",
|
|
48
46
|
{
|
|
49
|
-
className:
|
|
47
|
+
className: he(j.overlay, T),
|
|
50
48
|
role: "presentation",
|
|
51
|
-
onClick: (
|
|
52
|
-
|
|
49
|
+
onClick: (L) => {
|
|
50
|
+
u && L.target === L.currentTarget && r();
|
|
53
51
|
},
|
|
54
52
|
children: /* @__PURE__ */ Ve(
|
|
55
53
|
"div",
|
|
56
54
|
{
|
|
57
|
-
className:
|
|
55
|
+
className: he(j.sheet, x),
|
|
58
56
|
role: "dialog",
|
|
59
57
|
"aria-modal": "true",
|
|
60
|
-
"aria-label":
|
|
61
|
-
"data-testid":
|
|
58
|
+
"aria-label": h,
|
|
59
|
+
"data-testid": A,
|
|
62
60
|
children: [
|
|
63
|
-
|
|
64
|
-
d && /* @__PURE__ */
|
|
61
|
+
l && /* @__PURE__ */ P("div", { className: j.handle, "aria-hidden": "true" }),
|
|
62
|
+
d && /* @__PURE__ */ P(
|
|
65
63
|
"button",
|
|
66
64
|
{
|
|
67
65
|
type: "button",
|
|
68
|
-
className:
|
|
66
|
+
className: j.closeBtn,
|
|
69
67
|
onClick: r,
|
|
70
68
|
"aria-label": "Close",
|
|
71
|
-
children: /* @__PURE__ */
|
|
69
|
+
children: /* @__PURE__ */ P(Qe, {})
|
|
72
70
|
}
|
|
73
71
|
),
|
|
74
|
-
o && /* @__PURE__ */
|
|
75
|
-
/* @__PURE__ */
|
|
76
|
-
a && /* @__PURE__ */
|
|
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 })
|
|
77
75
|
]
|
|
78
76
|
}
|
|
79
77
|
)
|
|
@@ -88,40 +86,40 @@ function ze(e) {
|
|
|
88
86
|
} else for (t in e) e[t] && (o && (o += " "), o += t);
|
|
89
87
|
return o;
|
|
90
88
|
}
|
|
91
|
-
function
|
|
89
|
+
function qe() {
|
|
92
90
|
for (var e, r, t = 0, o = "", a = arguments.length; t < a; t++) (e = arguments[t]) && (r = ze(e)) && (o && (o += " "), o += r);
|
|
93
91
|
return o;
|
|
94
92
|
}
|
|
95
|
-
const
|
|
93
|
+
const eo = (e, r) => {
|
|
96
94
|
const t = new Array(e.length + r.length);
|
|
97
95
|
for (let o = 0; o < e.length; o++)
|
|
98
96
|
t[o] = e[o];
|
|
99
97
|
for (let o = 0; o < r.length; o++)
|
|
100
98
|
t[e.length + o] = r[o];
|
|
101
99
|
return t;
|
|
102
|
-
},
|
|
100
|
+
}, oo = (e, r) => ({
|
|
103
101
|
classGroupId: e,
|
|
104
102
|
validator: r
|
|
105
103
|
}), Ae = (e = /* @__PURE__ */ new Map(), r = null, t) => ({
|
|
106
104
|
nextPart: e,
|
|
107
105
|
validators: r,
|
|
108
106
|
classGroupId: t
|
|
109
|
-
}), q = "-", xe = [],
|
|
110
|
-
const r =
|
|
107
|
+
}), q = "-", xe = [], to = "arbitrary..", ro = (e) => {
|
|
108
|
+
const r = so(e), {
|
|
111
109
|
conflictingClassGroups: t,
|
|
112
110
|
conflictingClassGroupModifiers: o
|
|
113
111
|
} = e;
|
|
114
112
|
return {
|
|
115
113
|
getClassGroupId: (l) => {
|
|
116
114
|
if (l.startsWith("[") && l.endsWith("]"))
|
|
117
|
-
return
|
|
115
|
+
return no(l);
|
|
118
116
|
const u = l.split(q), b = u[0] === "" && u.length > 1 ? 1 : 0;
|
|
119
117
|
return Le(u, b, r);
|
|
120
118
|
},
|
|
121
119
|
getConflictingClassGroupIds: (l, u) => {
|
|
122
120
|
if (u) {
|
|
123
121
|
const b = o[l], m = t[l];
|
|
124
|
-
return b ? m ?
|
|
122
|
+
return b ? m ? eo(m, b) : b : m || xe;
|
|
125
123
|
}
|
|
126
124
|
return t[l] || xe;
|
|
127
125
|
}
|
|
@@ -139,56 +137,56 @@ const oo = (e, r) => {
|
|
|
139
137
|
return;
|
|
140
138
|
const u = r === 0 ? e.join(q) : e.slice(r).join(q), b = l.length;
|
|
141
139
|
for (let m = 0; m < b; m++) {
|
|
142
|
-
const
|
|
143
|
-
if (
|
|
144
|
-
return
|
|
140
|
+
const h = l[m];
|
|
141
|
+
if (h.validator(u))
|
|
142
|
+
return h.classGroupId;
|
|
145
143
|
}
|
|
146
|
-
},
|
|
144
|
+
}, no = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
|
|
147
145
|
const r = e.slice(1, -1), t = r.indexOf(":"), o = r.slice(0, t);
|
|
148
|
-
return o ?
|
|
149
|
-
})(),
|
|
146
|
+
return o ? to + o : void 0;
|
|
147
|
+
})(), so = (e) => {
|
|
150
148
|
const {
|
|
151
149
|
theme: r,
|
|
152
150
|
classGroups: t
|
|
153
151
|
} = e;
|
|
154
|
-
return
|
|
155
|
-
},
|
|
152
|
+
return ao(t, r);
|
|
153
|
+
}, ao = (e, r) => {
|
|
156
154
|
const t = Ae();
|
|
157
155
|
for (const o in e) {
|
|
158
156
|
const a = e[o];
|
|
159
|
-
|
|
157
|
+
ie(a, t, o, r);
|
|
160
158
|
}
|
|
161
159
|
return t;
|
|
162
|
-
},
|
|
160
|
+
}, ie = (e, r, t, o) => {
|
|
163
161
|
const a = e.length;
|
|
164
162
|
for (let d = 0; d < a; d++) {
|
|
165
163
|
const l = e[d];
|
|
166
|
-
|
|
164
|
+
io(l, r, t, o);
|
|
167
165
|
}
|
|
168
|
-
},
|
|
166
|
+
}, io = (e, r, t, o) => {
|
|
169
167
|
if (typeof e == "string") {
|
|
170
|
-
|
|
168
|
+
lo(e, r, t);
|
|
171
169
|
return;
|
|
172
170
|
}
|
|
173
171
|
if (typeof e == "function") {
|
|
174
|
-
|
|
172
|
+
co(e, r, t, o);
|
|
175
173
|
return;
|
|
176
174
|
}
|
|
177
|
-
|
|
178
|
-
},
|
|
175
|
+
mo(e, r, t, o);
|
|
176
|
+
}, lo = (e, r, t) => {
|
|
179
177
|
const o = e === "" ? r : Se(r, e);
|
|
180
178
|
o.classGroupId = t;
|
|
181
|
-
},
|
|
182
|
-
if (
|
|
183
|
-
|
|
179
|
+
}, co = (e, r, t, o) => {
|
|
180
|
+
if (po(e)) {
|
|
181
|
+
ie(e(o), r, t, o);
|
|
184
182
|
return;
|
|
185
183
|
}
|
|
186
|
-
r.validators === null && (r.validators = []), r.validators.push(
|
|
187
|
-
},
|
|
184
|
+
r.validators === null && (r.validators = []), r.validators.push(oo(t, e));
|
|
185
|
+
}, mo = (e, r, t, o) => {
|
|
188
186
|
const a = Object.entries(e), d = a.length;
|
|
189
187
|
for (let l = 0; l < d; l++) {
|
|
190
188
|
const [u, b] = a[l];
|
|
191
|
-
|
|
189
|
+
ie(b, Se(r, u), t, o);
|
|
192
190
|
}
|
|
193
191
|
}, Se = (e, r) => {
|
|
194
192
|
let t = e;
|
|
@@ -199,7 +197,7 @@ const oo = (e, r) => {
|
|
|
199
197
|
u || (u = Ae(), t.nextPart.set(l, u)), t = u;
|
|
200
198
|
}
|
|
201
199
|
return t;
|
|
202
|
-
},
|
|
200
|
+
}, po = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, uo = (e) => {
|
|
203
201
|
if (e < 1)
|
|
204
202
|
return {
|
|
205
203
|
get: () => {
|
|
@@ -223,13 +221,13 @@ const oo = (e, r) => {
|
|
|
223
221
|
d in t ? t[d] = l : a(d, l);
|
|
224
222
|
}
|
|
225
223
|
};
|
|
226
|
-
},
|
|
224
|
+
}, ae = "!", we = ":", bo = [], ye = (e, r, t, o, a) => ({
|
|
227
225
|
modifiers: e,
|
|
228
226
|
hasImportantModifier: r,
|
|
229
227
|
baseClassName: t,
|
|
230
228
|
maybePostfixModifierPosition: o,
|
|
231
229
|
isExternal: a
|
|
232
|
-
}),
|
|
230
|
+
}), fo = (e) => {
|
|
233
231
|
const {
|
|
234
232
|
prefix: r,
|
|
235
233
|
experimentalParseClassName: t
|
|
@@ -237,36 +235,36 @@ const oo = (e, r) => {
|
|
|
237
235
|
let o = (a) => {
|
|
238
236
|
const d = [];
|
|
239
237
|
let l = 0, u = 0, b = 0, m;
|
|
240
|
-
const
|
|
241
|
-
for (let
|
|
242
|
-
const v = a[
|
|
238
|
+
const h = a.length;
|
|
239
|
+
for (let w = 0; w < h; w++) {
|
|
240
|
+
const v = a[w];
|
|
243
241
|
if (l === 0 && u === 0) {
|
|
244
242
|
if (v === we) {
|
|
245
|
-
d.push(a.slice(b,
|
|
243
|
+
d.push(a.slice(b, w)), b = w + 1;
|
|
246
244
|
continue;
|
|
247
245
|
}
|
|
248
246
|
if (v === "/") {
|
|
249
|
-
m =
|
|
247
|
+
m = w;
|
|
250
248
|
continue;
|
|
251
249
|
}
|
|
252
250
|
}
|
|
253
251
|
v === "[" ? l++ : v === "]" ? l-- : v === "(" ? u++ : v === ")" && u--;
|
|
254
252
|
}
|
|
255
|
-
const
|
|
256
|
-
let
|
|
257
|
-
|
|
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) : (
|
|
258
256
|
/**
|
|
259
257
|
* In Tailwind CSS v3 the important modifier was at the start of the base class name. This is still supported for legacy reasons.
|
|
260
258
|
* @see https://github.com/dcastil/tailwind-merge/issues/513#issuecomment-2614029864
|
|
261
259
|
*/
|
|
262
|
-
|
|
260
|
+
x.startsWith(ae) && (T = x.slice(1), A = !0)
|
|
263
261
|
);
|
|
264
|
-
const
|
|
265
|
-
return ye(d, A,
|
|
262
|
+
const L = m && m > b ? m - b : void 0;
|
|
263
|
+
return ye(d, A, T, L);
|
|
266
264
|
};
|
|
267
265
|
if (r) {
|
|
268
266
|
const a = r + we, d = o;
|
|
269
|
-
o = (l) => l.startsWith(a) ? d(l.slice(a.length)) : ye(
|
|
267
|
+
o = (l) => l.startsWith(a) ? d(l.slice(a.length)) : ye(bo, !1, l, void 0, !0);
|
|
270
268
|
}
|
|
271
269
|
if (t) {
|
|
272
270
|
const a = o;
|
|
@@ -276,7 +274,7 @@ const oo = (e, r) => {
|
|
|
276
274
|
});
|
|
277
275
|
}
|
|
278
276
|
return o;
|
|
279
|
-
},
|
|
277
|
+
}, go = (e) => {
|
|
280
278
|
const r = /* @__PURE__ */ new Map();
|
|
281
279
|
return e.orderSensitiveModifiers.forEach((t, o) => {
|
|
282
280
|
r.set(t, 1e6 + o);
|
|
@@ -289,71 +287,71 @@ const oo = (e, r) => {
|
|
|
289
287
|
}
|
|
290
288
|
return a.length > 0 && (a.sort(), o.push(...a)), o;
|
|
291
289
|
};
|
|
292
|
-
},
|
|
293
|
-
cache:
|
|
294
|
-
parseClassName:
|
|
295
|
-
sortModifiers:
|
|
296
|
-
postfixLookupClassGroupIds:
|
|
297
|
-
...
|
|
298
|
-
}),
|
|
290
|
+
}, ho = (e) => ({
|
|
291
|
+
cache: uo(e.cacheSize),
|
|
292
|
+
parseClassName: fo(e),
|
|
293
|
+
sortModifiers: go(e),
|
|
294
|
+
postfixLookupClassGroupIds: xo(e),
|
|
295
|
+
...ro(e)
|
|
296
|
+
}), xo = (e) => {
|
|
299
297
|
const r = /* @__PURE__ */ Object.create(null), t = e.postfixLookupClassGroups;
|
|
300
298
|
if (t)
|
|
301
299
|
for (let o = 0; o < t.length; o++)
|
|
302
300
|
r[t[o]] = !0;
|
|
303
301
|
return r;
|
|
304
|
-
},
|
|
302
|
+
}, wo = /\s+/, yo = (e, r) => {
|
|
305
303
|
const {
|
|
306
304
|
parseClassName: t,
|
|
307
305
|
getClassGroupId: o,
|
|
308
306
|
getConflictingClassGroupIds: a,
|
|
309
307
|
sortModifiers: d,
|
|
310
308
|
postfixLookupClassGroupIds: l
|
|
311
|
-
} = r, u = [], b = e.trim().split(
|
|
309
|
+
} = r, u = [], b = e.trim().split(wo);
|
|
312
310
|
let m = "";
|
|
313
|
-
for (let
|
|
314
|
-
const
|
|
315
|
-
isExternal:
|
|
311
|
+
for (let h = b.length - 1; h >= 0; h -= 1) {
|
|
312
|
+
const x = b[h], {
|
|
313
|
+
isExternal: T,
|
|
316
314
|
modifiers: A,
|
|
317
|
-
hasImportantModifier:
|
|
318
|
-
baseClassName:
|
|
315
|
+
hasImportantModifier: L,
|
|
316
|
+
baseClassName: w,
|
|
319
317
|
maybePostfixModifierPosition: v
|
|
320
|
-
} = t(
|
|
321
|
-
if (
|
|
322
|
-
m =
|
|
318
|
+
} = t(x);
|
|
319
|
+
if (T) {
|
|
320
|
+
m = x + (m.length > 0 ? " " + m : m);
|
|
323
321
|
continue;
|
|
324
322
|
}
|
|
325
|
-
let
|
|
326
|
-
if (
|
|
327
|
-
const M =
|
|
323
|
+
let E = !!v, C;
|
|
324
|
+
if (E) {
|
|
325
|
+
const M = w.substring(0, v);
|
|
328
326
|
C = o(M);
|
|
329
|
-
const i = C && l[C] ? o(
|
|
330
|
-
i && i !== C && (C = i,
|
|
327
|
+
const i = C && l[C] ? o(w) : void 0;
|
|
328
|
+
i && i !== C && (C = i, E = !1);
|
|
331
329
|
} else
|
|
332
|
-
C = o(
|
|
330
|
+
C = o(w);
|
|
333
331
|
if (!C) {
|
|
334
|
-
if (!
|
|
335
|
-
m =
|
|
332
|
+
if (!E) {
|
|
333
|
+
m = x + (m.length > 0 ? " " + m : m);
|
|
336
334
|
continue;
|
|
337
335
|
}
|
|
338
|
-
if (C = o(
|
|
339
|
-
m =
|
|
336
|
+
if (C = o(w), !C) {
|
|
337
|
+
m = x + (m.length > 0 ? " " + m : m);
|
|
340
338
|
continue;
|
|
341
339
|
}
|
|
342
|
-
|
|
340
|
+
E = !1;
|
|
343
341
|
}
|
|
344
|
-
const U = A.length === 0 ? "" : A.length === 1 ? A[0] : d(A).join(":"),
|
|
342
|
+
const U = A.length === 0 ? "" : A.length === 1 ? A[0] : d(A).join(":"), O = L ? U + ae : U, V = O + C;
|
|
345
343
|
if (u.indexOf(V) > -1)
|
|
346
344
|
continue;
|
|
347
345
|
u.push(V);
|
|
348
|
-
const W = a(C,
|
|
346
|
+
const W = a(C, E);
|
|
349
347
|
for (let M = 0; M < W.length; ++M) {
|
|
350
348
|
const i = W[M];
|
|
351
|
-
u.push(
|
|
349
|
+
u.push(O + i);
|
|
352
350
|
}
|
|
353
|
-
m =
|
|
351
|
+
m = x + (m.length > 0 ? " " + m : m);
|
|
354
352
|
}
|
|
355
353
|
return m;
|
|
356
|
-
},
|
|
354
|
+
}, ko = (...e) => {
|
|
357
355
|
let r = 0, t, o, a = "";
|
|
358
356
|
for (; r < e.length; )
|
|
359
357
|
(t = e[r++]) && (o = Ie(t)) && (a && (a += " "), a += o);
|
|
@@ -365,35 +363,35 @@ const oo = (e, r) => {
|
|
|
365
363
|
for (let o = 0; o < e.length; o++)
|
|
366
364
|
e[o] && (r = Ie(e[o])) && (t && (t += " "), t += r);
|
|
367
365
|
return t;
|
|
368
|
-
},
|
|
366
|
+
}, vo = (e, ...r) => {
|
|
369
367
|
let t, o, a, d;
|
|
370
368
|
const l = (b) => {
|
|
371
|
-
const m = r.reduce((
|
|
372
|
-
return t =
|
|
369
|
+
const m = r.reduce((h, x) => x(h), e());
|
|
370
|
+
return t = ho(m), o = t.cache.get, a = t.cache.set, d = u, u(b);
|
|
373
371
|
}, u = (b) => {
|
|
374
372
|
const m = o(b);
|
|
375
373
|
if (m)
|
|
376
374
|
return m;
|
|
377
|
-
const
|
|
378
|
-
return a(b,
|
|
375
|
+
const h = yo(b, t);
|
|
376
|
+
return a(b, h), h;
|
|
379
377
|
};
|
|
380
|
-
return d = l, (...b) => d(
|
|
381
|
-
},
|
|
382
|
-
const r = (t) => t[e] ||
|
|
378
|
+
return d = l, (...b) => d(ko(...b));
|
|
379
|
+
}, Co = [], f = (e) => {
|
|
380
|
+
const r = (t) => t[e] || Co;
|
|
383
381
|
return r.isThemeGetter = !0, r;
|
|
384
|
-
}, Pe = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Te = /^\((?:(\w[\w-]*):)?(.+)\)$/i,
|
|
382
|
+
}, Pe = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Te = /^\((?:(\w[\w-]*):)?(.+)\)$/i, zo = /^\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) => zo.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) => (
|
|
385
383
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
386
384
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
387
385
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
388
|
-
|
|
389
|
-
),
|
|
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), ke = (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), Ce = (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) => {
|
|
390
388
|
const o = Pe.exec(e);
|
|
391
389
|
return o ? o[1] ? r(o[1]) : t(o[2]) : !1;
|
|
392
|
-
},
|
|
390
|
+
}, F = (e, r, t = !1) => {
|
|
393
391
|
const o = Te.exec(e);
|
|
394
392
|
return o ? o[1] ? r(o[1]) : t : !1;
|
|
395
|
-
}, 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",
|
|
396
|
-
const e =
|
|
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"), w = f("perspective"), v = f("aspect"), E = f("ease"), C = f("animate"), U = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], O = () => [
|
|
397
395
|
"center",
|
|
398
396
|
"top",
|
|
399
397
|
"bottom",
|
|
@@ -411,15 +409,15 @@ const oo = (e, r) => {
|
|
|
411
409
|
"bottom-left",
|
|
412
410
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
413
411
|
"left-bottom"
|
|
414
|
-
], V = () => [...
|
|
415
|
-
span: ["full",
|
|
416
|
-
},
|
|
412
|
+
], V = () => [...O(), s, n], W = () => ["auto", "hidden", "clip", "visible", "scroll"], M = () => ["auto", "contain", "none"], i = () => [s, n, b], z = () => [N, "full", "auto", ...i()], ce = () => [I, "none", "subgrid", s, n], de = () => ["auto", {
|
|
413
|
+
span: ["full", 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(), Ce, ve, {
|
|
417
415
|
position: [s, n]
|
|
418
|
-
}],
|
|
416
|
+
}], ue = () => ["no-repeat", {
|
|
419
417
|
repeat: ["", "x", "y", "space", "round"]
|
|
420
|
-
}],
|
|
418
|
+
}], be = () => ["auto", "cover", "contain", Oo, Eo, {
|
|
421
419
|
size: [s, n]
|
|
422
|
-
}], re = () => [
|
|
420
|
+
}], re = () => [se, D, B], y = () => [
|
|
423
421
|
// Deprecated since Tailwind CSS v4.0.0
|
|
424
422
|
"",
|
|
425
423
|
"none",
|
|
@@ -427,14 +425,14 @@ const oo = (e, r) => {
|
|
|
427
425
|
m,
|
|
428
426
|
s,
|
|
429
427
|
n
|
|
430
|
-
], k = () => ["", p, D,
|
|
428
|
+
], k = () => ["", 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, Ce, ve], ge = () => [
|
|
431
429
|
// Deprecated since Tailwind CSS v4.0.0
|
|
432
430
|
"",
|
|
433
431
|
"none",
|
|
434
|
-
|
|
432
|
+
L,
|
|
435
433
|
s,
|
|
436
434
|
n
|
|
437
|
-
], J = () => ["none", p, s, n], Y = () => ["none", p, s, n], ne = () => [p, s, n], Z = () => [
|
|
435
|
+
], J = () => ["none", p, s, n], Y = () => ["none", p, s, n], ne = () => [p, s, n], Z = () => [N, "full", ...i()];
|
|
438
436
|
return {
|
|
439
437
|
cacheSize: 500,
|
|
440
438
|
theme: {
|
|
@@ -446,7 +444,7 @@ const oo = (e, r) => {
|
|
|
446
444
|
container: [R],
|
|
447
445
|
"drop-shadow": [R],
|
|
448
446
|
ease: ["in", "out", "in-out"],
|
|
449
|
-
font: [
|
|
447
|
+
font: [No],
|
|
450
448
|
"font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
|
|
451
449
|
"inset-shadow": [R],
|
|
452
450
|
leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
|
|
@@ -467,7 +465,7 @@ const oo = (e, r) => {
|
|
|
467
465
|
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
468
466
|
*/
|
|
469
467
|
aspect: [{
|
|
470
|
-
aspect: ["auto", "square",
|
|
468
|
+
aspect: ["auto", "square", N, n, s, v]
|
|
471
469
|
}],
|
|
472
470
|
/**
|
|
473
471
|
* Container
|
|
@@ -486,7 +484,7 @@ const oo = (e, r) => {
|
|
|
486
484
|
* Container Name
|
|
487
485
|
* @see https://tailwindcss.com/docs/responsive-design#named-containers
|
|
488
486
|
*/
|
|
489
|
-
"container-named": [
|
|
487
|
+
"container-named": [Go],
|
|
490
488
|
/**
|
|
491
489
|
* Columns
|
|
492
490
|
* @see https://tailwindcss.com/docs/columns
|
|
@@ -718,7 +716,7 @@ const oo = (e, r) => {
|
|
|
718
716
|
* @see https://tailwindcss.com/docs/z-index
|
|
719
717
|
*/
|
|
720
718
|
z: [{
|
|
721
|
-
z: [
|
|
719
|
+
z: [I, "auto", s, n]
|
|
722
720
|
}],
|
|
723
721
|
// ------------------------
|
|
724
722
|
// --- Flexbox and Grid ---
|
|
@@ -728,7 +726,7 @@ const oo = (e, r) => {
|
|
|
728
726
|
* @see https://tailwindcss.com/docs/flex-basis
|
|
729
727
|
*/
|
|
730
728
|
basis: [{
|
|
731
|
-
basis: [
|
|
729
|
+
basis: [N, "full", "auto", u, ...i()]
|
|
732
730
|
}],
|
|
733
731
|
/**
|
|
734
732
|
* Flex Direction
|
|
@@ -749,7 +747,7 @@ const oo = (e, r) => {
|
|
|
749
747
|
* @see https://tailwindcss.com/docs/flex
|
|
750
748
|
*/
|
|
751
749
|
flex: [{
|
|
752
|
-
flex: [p,
|
|
750
|
+
flex: [p, N, "auto", "initial", "none", n]
|
|
753
751
|
}],
|
|
754
752
|
/**
|
|
755
753
|
* Flex Grow
|
|
@@ -770,21 +768,21 @@ const oo = (e, r) => {
|
|
|
770
768
|
* @see https://tailwindcss.com/docs/order
|
|
771
769
|
*/
|
|
772
770
|
order: [{
|
|
773
|
-
order: [
|
|
771
|
+
order: [I, "first", "last", "none", s, n]
|
|
774
772
|
}],
|
|
775
773
|
/**
|
|
776
774
|
* Grid Template Columns
|
|
777
775
|
* @see https://tailwindcss.com/docs/grid-template-columns
|
|
778
776
|
*/
|
|
779
777
|
"grid-cols": [{
|
|
780
|
-
"grid-cols":
|
|
778
|
+
"grid-cols": ce()
|
|
781
779
|
}],
|
|
782
780
|
/**
|
|
783
781
|
* Grid Column Start / End
|
|
784
782
|
* @see https://tailwindcss.com/docs/grid-column
|
|
785
783
|
*/
|
|
786
784
|
"col-start-end": [{
|
|
787
|
-
col:
|
|
785
|
+
col: de()
|
|
788
786
|
}],
|
|
789
787
|
/**
|
|
790
788
|
* Grid Column Start
|
|
@@ -805,14 +803,14 @@ const oo = (e, r) => {
|
|
|
805
803
|
* @see https://tailwindcss.com/docs/grid-template-rows
|
|
806
804
|
*/
|
|
807
805
|
"grid-rows": [{
|
|
808
|
-
"grid-rows":
|
|
806
|
+
"grid-rows": ce()
|
|
809
807
|
}],
|
|
810
808
|
/**
|
|
811
809
|
* Grid Row Start / End
|
|
812
810
|
* @see https://tailwindcss.com/docs/grid-row
|
|
813
811
|
*/
|
|
814
812
|
"row-start-end": [{
|
|
815
|
-
row:
|
|
813
|
+
row: de()
|
|
816
814
|
}],
|
|
817
815
|
/**
|
|
818
816
|
* Grid Row Start
|
|
@@ -840,14 +838,14 @@ const oo = (e, r) => {
|
|
|
840
838
|
* @see https://tailwindcss.com/docs/grid-auto-columns
|
|
841
839
|
*/
|
|
842
840
|
"auto-cols": [{
|
|
843
|
-
"auto-cols":
|
|
841
|
+
"auto-cols": me()
|
|
844
842
|
}],
|
|
845
843
|
/**
|
|
846
844
|
* Grid Auto Rows
|
|
847
845
|
* @see https://tailwindcss.com/docs/grid-auto-rows
|
|
848
846
|
*/
|
|
849
847
|
"auto-rows": [{
|
|
850
|
-
"auto-rows":
|
|
848
|
+
"auto-rows": me()
|
|
851
849
|
}],
|
|
852
850
|
/**
|
|
853
851
|
* Gap
|
|
@@ -1020,77 +1018,77 @@ const oo = (e, r) => {
|
|
|
1020
1018
|
* @see https://tailwindcss.com/docs/margin
|
|
1021
1019
|
*/
|
|
1022
1020
|
m: [{
|
|
1023
|
-
m:
|
|
1021
|
+
m: S()
|
|
1024
1022
|
}],
|
|
1025
1023
|
/**
|
|
1026
1024
|
* Margin Inline
|
|
1027
1025
|
* @see https://tailwindcss.com/docs/margin
|
|
1028
1026
|
*/
|
|
1029
1027
|
mx: [{
|
|
1030
|
-
mx:
|
|
1028
|
+
mx: S()
|
|
1031
1029
|
}],
|
|
1032
1030
|
/**
|
|
1033
1031
|
* Margin Block
|
|
1034
1032
|
* @see https://tailwindcss.com/docs/margin
|
|
1035
1033
|
*/
|
|
1036
1034
|
my: [{
|
|
1037
|
-
my:
|
|
1035
|
+
my: S()
|
|
1038
1036
|
}],
|
|
1039
1037
|
/**
|
|
1040
1038
|
* Margin Inline Start
|
|
1041
1039
|
* @see https://tailwindcss.com/docs/margin
|
|
1042
1040
|
*/
|
|
1043
1041
|
ms: [{
|
|
1044
|
-
ms:
|
|
1042
|
+
ms: S()
|
|
1045
1043
|
}],
|
|
1046
1044
|
/**
|
|
1047
1045
|
* Margin Inline End
|
|
1048
1046
|
* @see https://tailwindcss.com/docs/margin
|
|
1049
1047
|
*/
|
|
1050
1048
|
me: [{
|
|
1051
|
-
me:
|
|
1049
|
+
me: S()
|
|
1052
1050
|
}],
|
|
1053
1051
|
/**
|
|
1054
1052
|
* Margin Block Start
|
|
1055
1053
|
* @see https://tailwindcss.com/docs/margin
|
|
1056
1054
|
*/
|
|
1057
1055
|
mbs: [{
|
|
1058
|
-
mbs:
|
|
1056
|
+
mbs: S()
|
|
1059
1057
|
}],
|
|
1060
1058
|
/**
|
|
1061
1059
|
* Margin Block End
|
|
1062
1060
|
* @see https://tailwindcss.com/docs/margin
|
|
1063
1061
|
*/
|
|
1064
1062
|
mbe: [{
|
|
1065
|
-
mbe:
|
|
1063
|
+
mbe: S()
|
|
1066
1064
|
}],
|
|
1067
1065
|
/**
|
|
1068
1066
|
* Margin Top
|
|
1069
1067
|
* @see https://tailwindcss.com/docs/margin
|
|
1070
1068
|
*/
|
|
1071
1069
|
mt: [{
|
|
1072
|
-
mt:
|
|
1070
|
+
mt: S()
|
|
1073
1071
|
}],
|
|
1074
1072
|
/**
|
|
1075
1073
|
* Margin Right
|
|
1076
1074
|
* @see https://tailwindcss.com/docs/margin
|
|
1077
1075
|
*/
|
|
1078
1076
|
mr: [{
|
|
1079
|
-
mr:
|
|
1077
|
+
mr: S()
|
|
1080
1078
|
}],
|
|
1081
1079
|
/**
|
|
1082
1080
|
* Margin Bottom
|
|
1083
1081
|
* @see https://tailwindcss.com/docs/margin
|
|
1084
1082
|
*/
|
|
1085
1083
|
mb: [{
|
|
1086
|
-
mb:
|
|
1084
|
+
mb: S()
|
|
1087
1085
|
}],
|
|
1088
1086
|
/**
|
|
1089
1087
|
* Margin Left
|
|
1090
1088
|
* @see https://tailwindcss.com/docs/margin
|
|
1091
1089
|
*/
|
|
1092
1090
|
ml: [{
|
|
1093
|
-
ml:
|
|
1091
|
+
ml: S()
|
|
1094
1092
|
}],
|
|
1095
1093
|
/**
|
|
1096
1094
|
* Space Between X
|
|
@@ -1124,7 +1122,7 @@ const oo = (e, r) => {
|
|
|
1124
1122
|
* @see https://tailwindcss.com/docs/width#setting-both-width-and-height
|
|
1125
1123
|
*/
|
|
1126
1124
|
size: [{
|
|
1127
|
-
size:
|
|
1125
|
+
size: _()
|
|
1128
1126
|
}],
|
|
1129
1127
|
/**
|
|
1130
1128
|
* Inline Size
|
|
@@ -1173,7 +1171,7 @@ const oo = (e, r) => {
|
|
|
1173
1171
|
* @see https://tailwindcss.com/docs/width
|
|
1174
1172
|
*/
|
|
1175
1173
|
w: [{
|
|
1176
|
-
w: [u, "screen", ...
|
|
1174
|
+
w: [u, "screen", ..._()]
|
|
1177
1175
|
}],
|
|
1178
1176
|
/**
|
|
1179
1177
|
* Min-Width
|
|
@@ -1185,7 +1183,7 @@ const oo = (e, r) => {
|
|
|
1185
1183
|
"screen",
|
|
1186
1184
|
/** Deprecated. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
1187
1185
|
"none",
|
|
1188
|
-
...
|
|
1186
|
+
..._()
|
|
1189
1187
|
]
|
|
1190
1188
|
}],
|
|
1191
1189
|
/**
|
|
@@ -1203,7 +1201,7 @@ const oo = (e, r) => {
|
|
|
1203
1201
|
{
|
|
1204
1202
|
screen: [l]
|
|
1205
1203
|
},
|
|
1206
|
-
...
|
|
1204
|
+
..._()
|
|
1207
1205
|
]
|
|
1208
1206
|
}],
|
|
1209
1207
|
/**
|
|
@@ -1211,21 +1209,21 @@ const oo = (e, r) => {
|
|
|
1211
1209
|
* @see https://tailwindcss.com/docs/height
|
|
1212
1210
|
*/
|
|
1213
1211
|
h: [{
|
|
1214
|
-
h: ["screen", "lh", ...
|
|
1212
|
+
h: ["screen", "lh", ..._()]
|
|
1215
1213
|
}],
|
|
1216
1214
|
/**
|
|
1217
1215
|
* Min-Height
|
|
1218
1216
|
* @see https://tailwindcss.com/docs/min-height
|
|
1219
1217
|
*/
|
|
1220
1218
|
"min-h": [{
|
|
1221
|
-
"min-h": ["screen", "lh", "none", ...
|
|
1219
|
+
"min-h": ["screen", "lh", "none", ..._()]
|
|
1222
1220
|
}],
|
|
1223
1221
|
/**
|
|
1224
1222
|
* Max-Height
|
|
1225
1223
|
* @see https://tailwindcss.com/docs/max-height
|
|
1226
1224
|
*/
|
|
1227
1225
|
"max-h": [{
|
|
1228
|
-
"max-h": ["screen", "lh", ...
|
|
1226
|
+
"max-h": ["screen", "lh", ..._()]
|
|
1229
1227
|
}],
|
|
1230
1228
|
// ------------------
|
|
1231
1229
|
// --- Typography ---
|
|
@@ -1235,7 +1233,7 @@ const oo = (e, r) => {
|
|
|
1235
1233
|
* @see https://tailwindcss.com/docs/font-size
|
|
1236
1234
|
*/
|
|
1237
1235
|
"font-size": [{
|
|
1238
|
-
text: ["base", t, D,
|
|
1236
|
+
text: ["base", t, D, B]
|
|
1239
1237
|
}],
|
|
1240
1238
|
/**
|
|
1241
1239
|
* Font Smoothing
|
|
@@ -1252,21 +1250,21 @@ const oo = (e, r) => {
|
|
|
1252
1250
|
* @see https://tailwindcss.com/docs/font-weight
|
|
1253
1251
|
*/
|
|
1254
1252
|
"font-weight": [{
|
|
1255
|
-
font: [o,
|
|
1253
|
+
font: [o, Wo, _o]
|
|
1256
1254
|
}],
|
|
1257
1255
|
/**
|
|
1258
1256
|
* Font Stretch
|
|
1259
1257
|
* @see https://tailwindcss.com/docs/font-stretch
|
|
1260
1258
|
*/
|
|
1261
1259
|
"font-stretch": [{
|
|
1262
|
-
"font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded",
|
|
1260
|
+
"font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", se, n]
|
|
1263
1261
|
}],
|
|
1264
1262
|
/**
|
|
1265
1263
|
* Font Family
|
|
1266
1264
|
* @see https://tailwindcss.com/docs/font-family
|
|
1267
1265
|
*/
|
|
1268
1266
|
"font-family": [{
|
|
1269
|
-
font: [Fo,
|
|
1267
|
+
font: [Fo, jo, r]
|
|
1270
1268
|
}],
|
|
1271
1269
|
/**
|
|
1272
1270
|
* Font Feature Settings
|
|
@@ -1390,7 +1388,7 @@ const oo = (e, r) => {
|
|
|
1390
1388
|
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
|
1391
1389
|
*/
|
|
1392
1390
|
"text-decoration-thickness": [{
|
|
1393
|
-
decoration: [p, "from-font", "auto", s,
|
|
1391
|
+
decoration: [p, "from-font", "auto", s, B]
|
|
1394
1392
|
}],
|
|
1395
1393
|
/**
|
|
1396
1394
|
* Text Decoration Color
|
|
@@ -1435,7 +1433,7 @@ const oo = (e, r) => {
|
|
|
1435
1433
|
* @see https://tailwindcss.com/docs/tab-size
|
|
1436
1434
|
*/
|
|
1437
1435
|
"tab-size": [{
|
|
1438
|
-
tab: [
|
|
1436
|
+
tab: [I, s, n]
|
|
1439
1437
|
}],
|
|
1440
1438
|
/**
|
|
1441
1439
|
* Vertical Alignment
|
|
@@ -1508,21 +1506,21 @@ const oo = (e, r) => {
|
|
|
1508
1506
|
* @see https://tailwindcss.com/docs/background-position
|
|
1509
1507
|
*/
|
|
1510
1508
|
"bg-position": [{
|
|
1511
|
-
bg:
|
|
1509
|
+
bg: pe()
|
|
1512
1510
|
}],
|
|
1513
1511
|
/**
|
|
1514
1512
|
* Background Repeat
|
|
1515
1513
|
* @see https://tailwindcss.com/docs/background-repeat
|
|
1516
1514
|
*/
|
|
1517
1515
|
"bg-repeat": [{
|
|
1518
|
-
bg:
|
|
1516
|
+
bg: ue()
|
|
1519
1517
|
}],
|
|
1520
1518
|
/**
|
|
1521
1519
|
* Background Size
|
|
1522
1520
|
* @see https://tailwindcss.com/docs/background-size
|
|
1523
1521
|
*/
|
|
1524
1522
|
"bg-size": [{
|
|
1525
|
-
bg:
|
|
1523
|
+
bg: be()
|
|
1526
1524
|
}],
|
|
1527
1525
|
/**
|
|
1528
1526
|
* Background Image
|
|
@@ -1532,10 +1530,10 @@ const oo = (e, r) => {
|
|
|
1532
1530
|
bg: ["none", {
|
|
1533
1531
|
linear: [{
|
|
1534
1532
|
to: ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
|
|
1535
|
-
},
|
|
1533
|
+
}, I, s, n],
|
|
1536
1534
|
radial: ["", s, n],
|
|
1537
|
-
conic: [
|
|
1538
|
-
},
|
|
1535
|
+
conic: [I, s, n]
|
|
1536
|
+
}, Vo, Bo]
|
|
1539
1537
|
}],
|
|
1540
1538
|
/**
|
|
1541
1539
|
* Background Color
|
|
@@ -1912,7 +1910,7 @@ const oo = (e, r) => {
|
|
|
1912
1910
|
* @see https://tailwindcss.com/docs/outline-width
|
|
1913
1911
|
*/
|
|
1914
1912
|
"outline-w": [{
|
|
1915
|
-
outline: ["", p, D,
|
|
1913
|
+
outline: ["", p, D, B]
|
|
1916
1914
|
}],
|
|
1917
1915
|
/**
|
|
1918
1916
|
* Outline Color
|
|
@@ -1933,7 +1931,7 @@ const oo = (e, r) => {
|
|
|
1933
1931
|
// Deprecated since Tailwind CSS v4.0.0
|
|
1934
1932
|
"",
|
|
1935
1933
|
"none",
|
|
1936
|
-
|
|
1934
|
+
h,
|
|
1937
1935
|
Q,
|
|
1938
1936
|
X
|
|
1939
1937
|
]
|
|
@@ -1950,7 +1948,7 @@ const oo = (e, r) => {
|
|
|
1950
1948
|
* @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-shadow
|
|
1951
1949
|
*/
|
|
1952
1950
|
"inset-shadow": [{
|
|
1953
|
-
"inset-shadow": ["none",
|
|
1951
|
+
"inset-shadow": ["none", x, Q, X]
|
|
1954
1952
|
}],
|
|
1955
1953
|
/**
|
|
1956
1954
|
* Inset Box Shadow Color
|
|
@@ -1987,7 +1985,7 @@ const oo = (e, r) => {
|
|
|
1987
1985
|
* @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
|
|
1988
1986
|
*/
|
|
1989
1987
|
"ring-offset-w": [{
|
|
1990
|
-
"ring-offset": [p,
|
|
1988
|
+
"ring-offset": [p, B]
|
|
1991
1989
|
}],
|
|
1992
1990
|
/**
|
|
1993
1991
|
* Ring Offset Color
|
|
@@ -2017,7 +2015,7 @@ const oo = (e, r) => {
|
|
|
2017
2015
|
* @see https://tailwindcss.com/docs/text-shadow
|
|
2018
2016
|
*/
|
|
2019
2017
|
"text-shadow": [{
|
|
2020
|
-
"text-shadow": ["none",
|
|
2018
|
+
"text-shadow": ["none", T, Q, X]
|
|
2021
2019
|
}],
|
|
2022
2020
|
/**
|
|
2023
2021
|
* Text Shadow Color
|
|
@@ -2038,14 +2036,14 @@ const oo = (e, r) => {
|
|
|
2038
2036
|
* @see https://tailwindcss.com/docs/mix-blend-mode
|
|
2039
2037
|
*/
|
|
2040
2038
|
"mix-blend": [{
|
|
2041
|
-
"mix-blend": [...
|
|
2039
|
+
"mix-blend": [...fe(), "plus-darker", "plus-lighter"]
|
|
2042
2040
|
}],
|
|
2043
2041
|
/**
|
|
2044
2042
|
* Background Blend Mode
|
|
2045
2043
|
* @see https://tailwindcss.com/docs/background-blend-mode
|
|
2046
2044
|
*/
|
|
2047
2045
|
"bg-blend": [{
|
|
2048
|
-
"bg-blend":
|
|
2046
|
+
"bg-blend": fe()
|
|
2049
2047
|
}],
|
|
2050
2048
|
/**
|
|
2051
2049
|
* Mask Clip
|
|
@@ -2069,10 +2067,10 @@ const oo = (e, r) => {
|
|
|
2069
2067
|
"mask-linear": [p]
|
|
2070
2068
|
}],
|
|
2071
2069
|
"mask-image-linear-from-pos": [{
|
|
2072
|
-
"mask-linear-from":
|
|
2070
|
+
"mask-linear-from": g()
|
|
2073
2071
|
}],
|
|
2074
2072
|
"mask-image-linear-to-pos": [{
|
|
2075
|
-
"mask-linear-to":
|
|
2073
|
+
"mask-linear-to": g()
|
|
2076
2074
|
}],
|
|
2077
2075
|
"mask-image-linear-from-color": [{
|
|
2078
2076
|
"mask-linear-from": c()
|
|
@@ -2081,10 +2079,10 @@ const oo = (e, r) => {
|
|
|
2081
2079
|
"mask-linear-to": c()
|
|
2082
2080
|
}],
|
|
2083
2081
|
"mask-image-t-from-pos": [{
|
|
2084
|
-
"mask-t-from":
|
|
2082
|
+
"mask-t-from": g()
|
|
2085
2083
|
}],
|
|
2086
2084
|
"mask-image-t-to-pos": [{
|
|
2087
|
-
"mask-t-to":
|
|
2085
|
+
"mask-t-to": g()
|
|
2088
2086
|
}],
|
|
2089
2087
|
"mask-image-t-from-color": [{
|
|
2090
2088
|
"mask-t-from": c()
|
|
@@ -2093,10 +2091,10 @@ const oo = (e, r) => {
|
|
|
2093
2091
|
"mask-t-to": c()
|
|
2094
2092
|
}],
|
|
2095
2093
|
"mask-image-r-from-pos": [{
|
|
2096
|
-
"mask-r-from":
|
|
2094
|
+
"mask-r-from": g()
|
|
2097
2095
|
}],
|
|
2098
2096
|
"mask-image-r-to-pos": [{
|
|
2099
|
-
"mask-r-to":
|
|
2097
|
+
"mask-r-to": g()
|
|
2100
2098
|
}],
|
|
2101
2099
|
"mask-image-r-from-color": [{
|
|
2102
2100
|
"mask-r-from": c()
|
|
@@ -2105,10 +2103,10 @@ const oo = (e, r) => {
|
|
|
2105
2103
|
"mask-r-to": c()
|
|
2106
2104
|
}],
|
|
2107
2105
|
"mask-image-b-from-pos": [{
|
|
2108
|
-
"mask-b-from":
|
|
2106
|
+
"mask-b-from": g()
|
|
2109
2107
|
}],
|
|
2110
2108
|
"mask-image-b-to-pos": [{
|
|
2111
|
-
"mask-b-to":
|
|
2109
|
+
"mask-b-to": g()
|
|
2112
2110
|
}],
|
|
2113
2111
|
"mask-image-b-from-color": [{
|
|
2114
2112
|
"mask-b-from": c()
|
|
@@ -2117,10 +2115,10 @@ const oo = (e, r) => {
|
|
|
2117
2115
|
"mask-b-to": c()
|
|
2118
2116
|
}],
|
|
2119
2117
|
"mask-image-l-from-pos": [{
|
|
2120
|
-
"mask-l-from":
|
|
2118
|
+
"mask-l-from": g()
|
|
2121
2119
|
}],
|
|
2122
2120
|
"mask-image-l-to-pos": [{
|
|
2123
|
-
"mask-l-to":
|
|
2121
|
+
"mask-l-to": g()
|
|
2124
2122
|
}],
|
|
2125
2123
|
"mask-image-l-from-color": [{
|
|
2126
2124
|
"mask-l-from": c()
|
|
@@ -2129,10 +2127,10 @@ const oo = (e, r) => {
|
|
|
2129
2127
|
"mask-l-to": c()
|
|
2130
2128
|
}],
|
|
2131
2129
|
"mask-image-x-from-pos": [{
|
|
2132
|
-
"mask-x-from":
|
|
2130
|
+
"mask-x-from": g()
|
|
2133
2131
|
}],
|
|
2134
2132
|
"mask-image-x-to-pos": [{
|
|
2135
|
-
"mask-x-to":
|
|
2133
|
+
"mask-x-to": g()
|
|
2136
2134
|
}],
|
|
2137
2135
|
"mask-image-x-from-color": [{
|
|
2138
2136
|
"mask-x-from": c()
|
|
@@ -2141,10 +2139,10 @@ const oo = (e, r) => {
|
|
|
2141
2139
|
"mask-x-to": c()
|
|
2142
2140
|
}],
|
|
2143
2141
|
"mask-image-y-from-pos": [{
|
|
2144
|
-
"mask-y-from":
|
|
2142
|
+
"mask-y-from": g()
|
|
2145
2143
|
}],
|
|
2146
2144
|
"mask-image-y-to-pos": [{
|
|
2147
|
-
"mask-y-to":
|
|
2145
|
+
"mask-y-to": g()
|
|
2148
2146
|
}],
|
|
2149
2147
|
"mask-image-y-from-color": [{
|
|
2150
2148
|
"mask-y-from": c()
|
|
@@ -2156,10 +2154,10 @@ const oo = (e, r) => {
|
|
|
2156
2154
|
"mask-radial": [s, n]
|
|
2157
2155
|
}],
|
|
2158
2156
|
"mask-image-radial-from-pos": [{
|
|
2159
|
-
"mask-radial-from":
|
|
2157
|
+
"mask-radial-from": g()
|
|
2160
2158
|
}],
|
|
2161
2159
|
"mask-image-radial-to-pos": [{
|
|
2162
|
-
"mask-radial-to":
|
|
2160
|
+
"mask-radial-to": g()
|
|
2163
2161
|
}],
|
|
2164
2162
|
"mask-image-radial-from-color": [{
|
|
2165
2163
|
"mask-radial-from": c()
|
|
@@ -2177,16 +2175,16 @@ const oo = (e, r) => {
|
|
|
2177
2175
|
}]
|
|
2178
2176
|
}],
|
|
2179
2177
|
"mask-image-radial-pos": [{
|
|
2180
|
-
"mask-radial-at":
|
|
2178
|
+
"mask-radial-at": O()
|
|
2181
2179
|
}],
|
|
2182
2180
|
"mask-image-conic-pos": [{
|
|
2183
2181
|
"mask-conic": [p]
|
|
2184
2182
|
}],
|
|
2185
2183
|
"mask-image-conic-from-pos": [{
|
|
2186
|
-
"mask-conic-from":
|
|
2184
|
+
"mask-conic-from": g()
|
|
2187
2185
|
}],
|
|
2188
2186
|
"mask-image-conic-to-pos": [{
|
|
2189
|
-
"mask-conic-to":
|
|
2187
|
+
"mask-conic-to": g()
|
|
2190
2188
|
}],
|
|
2191
2189
|
"mask-image-conic-from-color": [{
|
|
2192
2190
|
"mask-conic-from": c()
|
|
@@ -2213,21 +2211,21 @@ const oo = (e, r) => {
|
|
|
2213
2211
|
* @see https://tailwindcss.com/docs/mask-position
|
|
2214
2212
|
*/
|
|
2215
2213
|
"mask-position": [{
|
|
2216
|
-
mask:
|
|
2214
|
+
mask: pe()
|
|
2217
2215
|
}],
|
|
2218
2216
|
/**
|
|
2219
2217
|
* Mask Repeat
|
|
2220
2218
|
* @see https://tailwindcss.com/docs/mask-repeat
|
|
2221
2219
|
*/
|
|
2222
2220
|
"mask-repeat": [{
|
|
2223
|
-
mask:
|
|
2221
|
+
mask: ue()
|
|
2224
2222
|
}],
|
|
2225
2223
|
/**
|
|
2226
2224
|
* Mask Size
|
|
2227
2225
|
* @see https://tailwindcss.com/docs/mask-size
|
|
2228
2226
|
*/
|
|
2229
2227
|
"mask-size": [{
|
|
2230
|
-
mask:
|
|
2228
|
+
mask: be()
|
|
2231
2229
|
}],
|
|
2232
2230
|
/**
|
|
2233
2231
|
* Mask Type
|
|
@@ -2264,7 +2262,7 @@ const oo = (e, r) => {
|
|
|
2264
2262
|
* @see https://tailwindcss.com/docs/blur
|
|
2265
2263
|
*/
|
|
2266
2264
|
blur: [{
|
|
2267
|
-
blur:
|
|
2265
|
+
blur: ge()
|
|
2268
2266
|
}],
|
|
2269
2267
|
/**
|
|
2270
2268
|
* Brightness
|
|
@@ -2354,7 +2352,7 @@ const oo = (e, r) => {
|
|
|
2354
2352
|
* @see https://tailwindcss.com/docs/backdrop-blur
|
|
2355
2353
|
*/
|
|
2356
2354
|
"backdrop-blur": [{
|
|
2357
|
-
"backdrop-blur":
|
|
2355
|
+
"backdrop-blur": ge()
|
|
2358
2356
|
}],
|
|
2359
2357
|
/**
|
|
2360
2358
|
* Backdrop Brightness
|
|
@@ -2486,7 +2484,7 @@ const oo = (e, r) => {
|
|
|
2486
2484
|
* @see https://tailwindcss.com/docs/transition-timing-function
|
|
2487
2485
|
*/
|
|
2488
2486
|
ease: [{
|
|
2489
|
-
ease: ["linear", "initial",
|
|
2487
|
+
ease: ["linear", "initial", E, s, n]
|
|
2490
2488
|
}],
|
|
2491
2489
|
/**
|
|
2492
2490
|
* Transition Delay
|
|
@@ -2517,7 +2515,7 @@ const oo = (e, r) => {
|
|
|
2517
2515
|
* @see https://tailwindcss.com/docs/perspective
|
|
2518
2516
|
*/
|
|
2519
2517
|
perspective: [{
|
|
2520
|
-
perspective: [
|
|
2518
|
+
perspective: [w, s, n]
|
|
2521
2519
|
}],
|
|
2522
2520
|
/**
|
|
2523
2521
|
* Perspective Origin
|
|
@@ -2667,7 +2665,7 @@ const oo = (e, r) => {
|
|
|
2667
2665
|
* @see https://tailwindcss.com/docs/zoom
|
|
2668
2666
|
*/
|
|
2669
2667
|
zoom: [{
|
|
2670
|
-
zoom: [
|
|
2668
|
+
zoom: [I, s, n]
|
|
2671
2669
|
}],
|
|
2672
2670
|
// ---------------------
|
|
2673
2671
|
// --- Interactivity ---
|
|
@@ -3000,7 +2998,7 @@ const oo = (e, r) => {
|
|
|
3000
2998
|
* @see https://tailwindcss.com/docs/stroke-width
|
|
3001
2999
|
*/
|
|
3002
3000
|
"stroke-w": [{
|
|
3003
|
-
stroke: [p, D,
|
|
3001
|
+
stroke: [p, D, B, ke]
|
|
3004
3002
|
}],
|
|
3005
3003
|
/**
|
|
3006
3004
|
* Stroke
|
|
@@ -3077,11 +3075,11 @@ const oo = (e, r) => {
|
|
|
3077
3075
|
postfixLookupClassGroups: ["container-type"],
|
|
3078
3076
|
orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
|
|
3079
3077
|
};
|
|
3080
|
-
},
|
|
3081
|
-
function
|
|
3082
|
-
return
|
|
3078
|
+
}, Do = /* @__PURE__ */ vo(Uo);
|
|
3079
|
+
function Yo(...e) {
|
|
3080
|
+
return Do(qe(e));
|
|
3083
3081
|
}
|
|
3084
|
-
const
|
|
3082
|
+
const Fe = {
|
|
3085
3083
|
"+1": {
|
|
3086
3084
|
pattern: /^[2-9]\d{9}$/,
|
|
3087
3085
|
minLength: 10,
|
|
@@ -3154,19 +3152,19 @@ const je = {
|
|
|
3154
3152
|
maxLength: 8,
|
|
3155
3153
|
description: "7-8 digits"
|
|
3156
3154
|
}
|
|
3157
|
-
},
|
|
3155
|
+
}, Oe = {
|
|
3158
3156
|
pattern: /^\d{6,15}$/,
|
|
3159
3157
|
maxLength: 15,
|
|
3160
3158
|
description: "6-15 digits"
|
|
3161
|
-
},
|
|
3159
|
+
}, Zo = (e, r) => {
|
|
3162
3160
|
if (!e)
|
|
3163
3161
|
return { isValid: !0, error: "" };
|
|
3164
|
-
const t =
|
|
3162
|
+
const t = Fe[r] || Oe;
|
|
3165
3163
|
return t.pattern.test(e) ? { isValid: !0, error: "" } : {
|
|
3166
3164
|
isValid: !1,
|
|
3167
3165
|
error: `Please enter a valid phone number (${t.description})`
|
|
3168
3166
|
};
|
|
3169
|
-
},
|
|
3167
|
+
}, Xo = (e) => (Fe[e] || Oe).maxLength, Qo = [
|
|
3170
3168
|
{ name: "United States", code: "+1", iso: "US" },
|
|
3171
3169
|
{ name: "United Kingdom", code: "+44", iso: "GB" },
|
|
3172
3170
|
{ name: "Australia", code: "+61", iso: "AU" },
|
|
@@ -3221,15 +3219,15 @@ const je = {
|
|
|
3221
3219
|
{ name: "Austria", code: "+43", iso: "AT" },
|
|
3222
3220
|
{ name: "Réunion", code: "+262", iso: "RE" },
|
|
3223
3221
|
{ name: "India", code: "+91", iso: "IN" }
|
|
3224
|
-
],
|
|
3222
|
+
], qo = (e) => {
|
|
3225
3223
|
if (!e || e.length !== 2) return "🏳️";
|
|
3226
3224
|
const r = e.toUpperCase().split("").map((t) => 127397 + t.charCodeAt(0));
|
|
3227
3225
|
return String.fromCodePoint(...r);
|
|
3228
3226
|
};
|
|
3229
|
-
function
|
|
3227
|
+
function et(e) {
|
|
3230
3228
|
const r = $e(null), t = ({ locale: a, children: d }) => {
|
|
3231
3229
|
const u = { locale: a, t: (b) => e[a]?.[b] ?? b };
|
|
3232
|
-
return /* @__PURE__ */
|
|
3230
|
+
return /* @__PURE__ */ P(r.Provider, { value: u, children: d });
|
|
3233
3231
|
};
|
|
3234
3232
|
function o() {
|
|
3235
3233
|
return Ue(r);
|
|
@@ -3237,12 +3235,12 @@ function ot(e) {
|
|
|
3237
3235
|
return { I18nProvider: t, useI18n: o };
|
|
3238
3236
|
}
|
|
3239
3237
|
export {
|
|
3240
|
-
|
|
3241
|
-
|
|
3242
|
-
|
|
3243
|
-
|
|
3244
|
-
|
|
3245
|
-
|
|
3246
|
-
|
|
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
|
|
3247
3245
|
};
|
|
3248
3246
|
//# sourceMappingURL=common.js.map
|