@bymarcant/easy-time-input 1.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/.eslintrc.cjs +18 -0
- package/.hintrc +13 -0
- package/README.md +192 -0
- package/dist/easy-time-input.css +1 -0
- package/dist/easy-time-input.es.js +3896 -0
- package/dist/easy-time-input.umd.js +12 -0
- package/dist/index.d.ts +282 -0
- package/index.html +19 -0
- package/package.json +76 -0
- package/tailwind.config.js +9 -0
- package/tsconfig.json +25 -0
- package/tsconfig.node.json +10 -0
|
@@ -0,0 +1,3896 @@
|
|
|
1
|
+
import * as re from "react";
|
|
2
|
+
import st, { useReducer as at, useRef as xe, useEffect as ke, useCallback as it, createContext as De, useContext as Le, memo as lt } from "react";
|
|
3
|
+
var ge = { exports: {} }, me = {};
|
|
4
|
+
var Ae;
|
|
5
|
+
function ct() {
|
|
6
|
+
if (Ae) return me;
|
|
7
|
+
Ae = 1;
|
|
8
|
+
var e = /* @__PURE__ */ Symbol.for("react.transitional.element"), t = /* @__PURE__ */ Symbol.for("react.fragment");
|
|
9
|
+
function o(r, s, a) {
|
|
10
|
+
var i = null;
|
|
11
|
+
if (a !== void 0 && (i = "" + a), s.key !== void 0 && (i = "" + s.key), "key" in s) {
|
|
12
|
+
a = {};
|
|
13
|
+
for (var d in s)
|
|
14
|
+
d !== "key" && (a[d] = s[d]);
|
|
15
|
+
} else a = s;
|
|
16
|
+
return s = a.ref, {
|
|
17
|
+
$$typeof: e,
|
|
18
|
+
type: r,
|
|
19
|
+
key: i,
|
|
20
|
+
ref: s !== void 0 ? s : null,
|
|
21
|
+
props: a
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
return me.Fragment = t, me.jsx = o, me.jsxs = o, me;
|
|
25
|
+
}
|
|
26
|
+
var fe = {};
|
|
27
|
+
var Pe;
|
|
28
|
+
function dt() {
|
|
29
|
+
return Pe || (Pe = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
30
|
+
function e(n) {
|
|
31
|
+
if (n == null) return null;
|
|
32
|
+
if (typeof n == "function")
|
|
33
|
+
return n.$$typeof === B ? null : n.displayName || n.name || null;
|
|
34
|
+
if (typeof n == "string") return n;
|
|
35
|
+
switch (n) {
|
|
36
|
+
case P:
|
|
37
|
+
return "Fragment";
|
|
38
|
+
case F:
|
|
39
|
+
return "Profiler";
|
|
40
|
+
case D:
|
|
41
|
+
return "StrictMode";
|
|
42
|
+
case L:
|
|
43
|
+
return "Suspense";
|
|
44
|
+
case _:
|
|
45
|
+
return "SuspenseList";
|
|
46
|
+
case M:
|
|
47
|
+
return "Activity";
|
|
48
|
+
}
|
|
49
|
+
if (typeof n == "object")
|
|
50
|
+
switch (typeof n.tag == "number" && console.error(
|
|
51
|
+
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
52
|
+
), n.$$typeof) {
|
|
53
|
+
case y:
|
|
54
|
+
return "Portal";
|
|
55
|
+
case H:
|
|
56
|
+
return n.displayName || "Context";
|
|
57
|
+
case O:
|
|
58
|
+
return (n._context.displayName || "Context") + ".Consumer";
|
|
59
|
+
case W:
|
|
60
|
+
var h = n.render;
|
|
61
|
+
return n = n.displayName, n || (n = h.displayName || h.name || "", n = n !== "" ? "ForwardRef(" + n + ")" : "ForwardRef"), n;
|
|
62
|
+
case c:
|
|
63
|
+
return h = n.displayName || null, h !== null ? h : e(n.type) || "Memo";
|
|
64
|
+
case b:
|
|
65
|
+
h = n._payload, n = n._init;
|
|
66
|
+
try {
|
|
67
|
+
return e(n(h));
|
|
68
|
+
} catch {
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
return null;
|
|
72
|
+
}
|
|
73
|
+
function t(n) {
|
|
74
|
+
return "" + n;
|
|
75
|
+
}
|
|
76
|
+
function o(n) {
|
|
77
|
+
try {
|
|
78
|
+
t(n);
|
|
79
|
+
var h = !1;
|
|
80
|
+
} catch {
|
|
81
|
+
h = !0;
|
|
82
|
+
}
|
|
83
|
+
if (h) {
|
|
84
|
+
h = console;
|
|
85
|
+
var x = h.error, g = typeof Symbol == "function" && Symbol.toStringTag && n[Symbol.toStringTag] || n.constructor.name || "Object";
|
|
86
|
+
return x.call(
|
|
87
|
+
h,
|
|
88
|
+
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
89
|
+
g
|
|
90
|
+
), t(n);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
function r(n) {
|
|
94
|
+
if (n === P) return "<>";
|
|
95
|
+
if (typeof n == "object" && n !== null && n.$$typeof === b)
|
|
96
|
+
return "<...>";
|
|
97
|
+
try {
|
|
98
|
+
var h = e(n);
|
|
99
|
+
return h ? "<" + h + ">" : "<...>";
|
|
100
|
+
} catch {
|
|
101
|
+
return "<...>";
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
function s() {
|
|
105
|
+
var n = J.A;
|
|
106
|
+
return n === null ? null : n.getOwner();
|
|
107
|
+
}
|
|
108
|
+
function a() {
|
|
109
|
+
return Error("react-stack-top-frame");
|
|
110
|
+
}
|
|
111
|
+
function i(n) {
|
|
112
|
+
if (oe.call(n, "key")) {
|
|
113
|
+
var h = Object.getOwnPropertyDescriptor(n, "key").get;
|
|
114
|
+
if (h && h.isReactWarning) return !1;
|
|
115
|
+
}
|
|
116
|
+
return n.key !== void 0;
|
|
117
|
+
}
|
|
118
|
+
function d(n, h) {
|
|
119
|
+
function x() {
|
|
120
|
+
V || (V = !0, console.error(
|
|
121
|
+
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
122
|
+
h
|
|
123
|
+
));
|
|
124
|
+
}
|
|
125
|
+
x.isReactWarning = !0, Object.defineProperty(n, "key", {
|
|
126
|
+
get: x,
|
|
127
|
+
configurable: !0
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
function l() {
|
|
131
|
+
var n = e(this.type);
|
|
132
|
+
return Y[n] || (Y[n] = !0, console.error(
|
|
133
|
+
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
134
|
+
)), n = this.props.ref, n !== void 0 ? n : null;
|
|
135
|
+
}
|
|
136
|
+
function w(n, h, x, g, q, ee) {
|
|
137
|
+
var k = x.ref;
|
|
138
|
+
return n = {
|
|
139
|
+
$$typeof: f,
|
|
140
|
+
type: n,
|
|
141
|
+
key: h,
|
|
142
|
+
props: x,
|
|
143
|
+
_owner: g
|
|
144
|
+
}, (k !== void 0 ? k : null) !== null ? Object.defineProperty(n, "ref", {
|
|
145
|
+
enumerable: !1,
|
|
146
|
+
get: l
|
|
147
|
+
}) : Object.defineProperty(n, "ref", { enumerable: !1, value: null }), n._store = {}, Object.defineProperty(n._store, "validated", {
|
|
148
|
+
configurable: !1,
|
|
149
|
+
enumerable: !1,
|
|
150
|
+
writable: !0,
|
|
151
|
+
value: 0
|
|
152
|
+
}), Object.defineProperty(n, "_debugInfo", {
|
|
153
|
+
configurable: !1,
|
|
154
|
+
enumerable: !1,
|
|
155
|
+
writable: !0,
|
|
156
|
+
value: null
|
|
157
|
+
}), Object.defineProperty(n, "_debugStack", {
|
|
158
|
+
configurable: !1,
|
|
159
|
+
enumerable: !1,
|
|
160
|
+
writable: !0,
|
|
161
|
+
value: q
|
|
162
|
+
}), Object.defineProperty(n, "_debugTask", {
|
|
163
|
+
configurable: !1,
|
|
164
|
+
enumerable: !1,
|
|
165
|
+
writable: !0,
|
|
166
|
+
value: ee
|
|
167
|
+
}), Object.freeze && (Object.freeze(n.props), Object.freeze(n)), n;
|
|
168
|
+
}
|
|
169
|
+
function C(n, h, x, g, q, ee) {
|
|
170
|
+
var k = h.children;
|
|
171
|
+
if (k !== void 0)
|
|
172
|
+
if (g)
|
|
173
|
+
if (ne(k)) {
|
|
174
|
+
for (g = 0; g < k.length; g++)
|
|
175
|
+
A(k[g]);
|
|
176
|
+
Object.freeze && Object.freeze(k);
|
|
177
|
+
} else
|
|
178
|
+
console.error(
|
|
179
|
+
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
180
|
+
);
|
|
181
|
+
else A(k);
|
|
182
|
+
if (oe.call(h, "key")) {
|
|
183
|
+
k = e(n);
|
|
184
|
+
var T = Object.keys(h).filter(function(N) {
|
|
185
|
+
return N !== "key";
|
|
186
|
+
});
|
|
187
|
+
g = 0 < T.length ? "{key: someKey, " + T.join(": ..., ") + ": ...}" : "{key: someKey}", Z[k + g] || (T = 0 < T.length ? "{" + T.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
188
|
+
`A props object containing a "key" prop is being spread into JSX:
|
|
189
|
+
let props = %s;
|
|
190
|
+
<%s {...props} />
|
|
191
|
+
React keys must be passed directly to JSX without using spread:
|
|
192
|
+
let props = %s;
|
|
193
|
+
<%s key={someKey} {...props} />`,
|
|
194
|
+
g,
|
|
195
|
+
k,
|
|
196
|
+
T,
|
|
197
|
+
k
|
|
198
|
+
), Z[k + g] = !0);
|
|
199
|
+
}
|
|
200
|
+
if (k = null, x !== void 0 && (o(x), k = "" + x), i(h) && (o(h.key), k = "" + h.key), "key" in h) {
|
|
201
|
+
x = {};
|
|
202
|
+
for (var E in h)
|
|
203
|
+
E !== "key" && (x[E] = h[E]);
|
|
204
|
+
} else x = h;
|
|
205
|
+
return k && d(
|
|
206
|
+
x,
|
|
207
|
+
typeof n == "function" ? n.displayName || n.name || "Unknown" : n
|
|
208
|
+
), w(
|
|
209
|
+
n,
|
|
210
|
+
k,
|
|
211
|
+
x,
|
|
212
|
+
s(),
|
|
213
|
+
q,
|
|
214
|
+
ee
|
|
215
|
+
);
|
|
216
|
+
}
|
|
217
|
+
function A(n) {
|
|
218
|
+
R(n) ? n._store && (n._store.validated = 1) : typeof n == "object" && n !== null && n.$$typeof === b && (n._payload.status === "fulfilled" ? R(n._payload.value) && n._payload.value._store && (n._payload.value._store.validated = 1) : n._store && (n._store.validated = 1));
|
|
219
|
+
}
|
|
220
|
+
function R(n) {
|
|
221
|
+
return typeof n == "object" && n !== null && n.$$typeof === f;
|
|
222
|
+
}
|
|
223
|
+
var S = st, f = /* @__PURE__ */ Symbol.for("react.transitional.element"), y = /* @__PURE__ */ Symbol.for("react.portal"), P = /* @__PURE__ */ Symbol.for("react.fragment"), D = /* @__PURE__ */ Symbol.for("react.strict_mode"), F = /* @__PURE__ */ Symbol.for("react.profiler"), O = /* @__PURE__ */ Symbol.for("react.consumer"), H = /* @__PURE__ */ Symbol.for("react.context"), W = /* @__PURE__ */ Symbol.for("react.forward_ref"), L = /* @__PURE__ */ Symbol.for("react.suspense"), _ = /* @__PURE__ */ Symbol.for("react.suspense_list"), c = /* @__PURE__ */ Symbol.for("react.memo"), b = /* @__PURE__ */ Symbol.for("react.lazy"), M = /* @__PURE__ */ Symbol.for("react.activity"), B = /* @__PURE__ */ Symbol.for("react.client.reference"), J = S.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, oe = Object.prototype.hasOwnProperty, ne = Array.isArray, U = console.createTask ? console.createTask : function() {
|
|
224
|
+
return null;
|
|
225
|
+
};
|
|
226
|
+
S = {
|
|
227
|
+
react_stack_bottom_frame: function(n) {
|
|
228
|
+
return n();
|
|
229
|
+
}
|
|
230
|
+
};
|
|
231
|
+
var V, Y = {}, p = S.react_stack_bottom_frame.bind(
|
|
232
|
+
S,
|
|
233
|
+
a
|
|
234
|
+
)(), K = U(r(a)), Z = {};
|
|
235
|
+
fe.Fragment = P, fe.jsx = function(n, h, x) {
|
|
236
|
+
var g = 1e4 > J.recentlyCreatedOwnerStacks++;
|
|
237
|
+
return C(
|
|
238
|
+
n,
|
|
239
|
+
h,
|
|
240
|
+
x,
|
|
241
|
+
!1,
|
|
242
|
+
g ? Error("react-stack-top-frame") : p,
|
|
243
|
+
g ? U(r(n)) : K
|
|
244
|
+
);
|
|
245
|
+
}, fe.jsxs = function(n, h, x) {
|
|
246
|
+
var g = 1e4 > J.recentlyCreatedOwnerStacks++;
|
|
247
|
+
return C(
|
|
248
|
+
n,
|
|
249
|
+
h,
|
|
250
|
+
x,
|
|
251
|
+
!0,
|
|
252
|
+
g ? Error("react-stack-top-frame") : p,
|
|
253
|
+
g ? U(r(n)) : K
|
|
254
|
+
);
|
|
255
|
+
};
|
|
256
|
+
})()), fe;
|
|
257
|
+
}
|
|
258
|
+
var Ne;
|
|
259
|
+
function ut() {
|
|
260
|
+
return Ne || (Ne = 1, process.env.NODE_ENV === "production" ? ge.exports = ct() : ge.exports = dt()), ge.exports;
|
|
261
|
+
}
|
|
262
|
+
var $ = ut();
|
|
263
|
+
const se = (e) => {
|
|
264
|
+
e.current?.select(), e.current?.focus();
|
|
265
|
+
}, be = (e, t, o) => {
|
|
266
|
+
let r, s, a = !0;
|
|
267
|
+
if (t && t instanceof Date ? r = new Date(t).toLocaleTimeString("en", {
|
|
268
|
+
hour12: !1
|
|
269
|
+
}) : r = t, o && o instanceof Date ? s = new Date(o).toLocaleTimeString("en", {
|
|
270
|
+
hour12: !1
|
|
271
|
+
}) : s = o, r) {
|
|
272
|
+
const i = r.split(":");
|
|
273
|
+
let d = e.split(":");
|
|
274
|
+
d.length === 1 && (d = [d[0], "00"]);
|
|
275
|
+
const l = new Date(
|
|
276
|
+
(/* @__PURE__ */ new Date()).getFullYear(),
|
|
277
|
+
(/* @__PURE__ */ new Date()).getMonth(),
|
|
278
|
+
(/* @__PURE__ */ new Date()).getDate(),
|
|
279
|
+
parseInt(i[0]),
|
|
280
|
+
parseInt(i[1])
|
|
281
|
+
);
|
|
282
|
+
new Date(
|
|
283
|
+
(/* @__PURE__ */ new Date()).getFullYear(),
|
|
284
|
+
(/* @__PURE__ */ new Date()).getMonth(),
|
|
285
|
+
(/* @__PURE__ */ new Date()).getDate(),
|
|
286
|
+
parseInt(d[0]),
|
|
287
|
+
parseInt(d[1])
|
|
288
|
+
).getTime() > l.getTime() && (a = !1);
|
|
289
|
+
}
|
|
290
|
+
if (s) {
|
|
291
|
+
const i = s.split(":");
|
|
292
|
+
let d = e.split(":");
|
|
293
|
+
d.length === 1 && (d = [d[0], "00"]);
|
|
294
|
+
const l = new Date(
|
|
295
|
+
(/* @__PURE__ */ new Date()).getFullYear(),
|
|
296
|
+
(/* @__PURE__ */ new Date()).getMonth(),
|
|
297
|
+
(/* @__PURE__ */ new Date()).getDate(),
|
|
298
|
+
parseInt(i[0]),
|
|
299
|
+
parseInt(i[1])
|
|
300
|
+
);
|
|
301
|
+
new Date(
|
|
302
|
+
(/* @__PURE__ */ new Date()).getFullYear(),
|
|
303
|
+
(/* @__PURE__ */ new Date()).getMonth(),
|
|
304
|
+
(/* @__PURE__ */ new Date()).getDate(),
|
|
305
|
+
parseInt(d[0]),
|
|
306
|
+
parseInt(d[1])
|
|
307
|
+
).getTime() < l.getTime() && (a = !1);
|
|
308
|
+
}
|
|
309
|
+
return a;
|
|
310
|
+
};
|
|
311
|
+
function Ve(e) {
|
|
312
|
+
var t, o, r = "";
|
|
313
|
+
if (typeof e == "string" || typeof e == "number") r += e;
|
|
314
|
+
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
315
|
+
var s = e.length;
|
|
316
|
+
for (t = 0; t < s; t++) e[t] && (o = Ve(e[t])) && (r && (r += " "), r += o);
|
|
317
|
+
} else for (o in e) e[o] && (r && (r += " "), r += o);
|
|
318
|
+
return r;
|
|
319
|
+
}
|
|
320
|
+
function mt() {
|
|
321
|
+
for (var e, t, o = 0, r = "", s = arguments.length; o < s; o++) (e = arguments[o]) && (t = Ve(e)) && (r && (r += " "), r += t);
|
|
322
|
+
return r;
|
|
323
|
+
}
|
|
324
|
+
const ft = (e, t) => {
|
|
325
|
+
const o = new Array(e.length + t.length);
|
|
326
|
+
for (let r = 0; r < e.length; r++)
|
|
327
|
+
o[r] = e[r];
|
|
328
|
+
for (let r = 0; r < t.length; r++)
|
|
329
|
+
o[e.length + r] = t[r];
|
|
330
|
+
return o;
|
|
331
|
+
}, pt = (e, t) => ({
|
|
332
|
+
classGroupId: e,
|
|
333
|
+
validator: t
|
|
334
|
+
}), Fe = (e = /* @__PURE__ */ new Map(), t = null, o) => ({
|
|
335
|
+
nextPart: e,
|
|
336
|
+
validators: t,
|
|
337
|
+
classGroupId: o
|
|
338
|
+
}), ye = "-", Ie = [], bt = "arbitrary..", gt = (e) => {
|
|
339
|
+
const t = wt(e), {
|
|
340
|
+
conflictingClassGroups: o,
|
|
341
|
+
conflictingClassGroupModifiers: r
|
|
342
|
+
} = e;
|
|
343
|
+
return {
|
|
344
|
+
getClassGroupId: (i) => {
|
|
345
|
+
if (i.startsWith("[") && i.endsWith("]"))
|
|
346
|
+
return ht(i);
|
|
347
|
+
const d = i.split(ye), l = d[0] === "" && d.length > 1 ? 1 : 0;
|
|
348
|
+
return Ge(d, l, t);
|
|
349
|
+
},
|
|
350
|
+
getConflictingClassGroupIds: (i, d) => {
|
|
351
|
+
if (d) {
|
|
352
|
+
const l = r[i], w = o[i];
|
|
353
|
+
return l ? w ? ft(w, l) : l : w || Ie;
|
|
354
|
+
}
|
|
355
|
+
return o[i] || Ie;
|
|
356
|
+
}
|
|
357
|
+
};
|
|
358
|
+
}, Ge = (e, t, o) => {
|
|
359
|
+
if (e.length - t === 0)
|
|
360
|
+
return o.classGroupId;
|
|
361
|
+
const s = e[t], a = o.nextPart.get(s);
|
|
362
|
+
if (a) {
|
|
363
|
+
const w = Ge(e, t + 1, a);
|
|
364
|
+
if (w) return w;
|
|
365
|
+
}
|
|
366
|
+
const i = o.validators;
|
|
367
|
+
if (i === null)
|
|
368
|
+
return;
|
|
369
|
+
const d = t === 0 ? e.join(ye) : e.slice(t).join(ye), l = i.length;
|
|
370
|
+
for (let w = 0; w < l; w++) {
|
|
371
|
+
const C = i[w];
|
|
372
|
+
if (C.validator(d))
|
|
373
|
+
return C.classGroupId;
|
|
374
|
+
}
|
|
375
|
+
}, ht = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
|
|
376
|
+
const t = e.slice(1, -1), o = t.indexOf(":"), r = t.slice(0, o);
|
|
377
|
+
return r ? bt + r : void 0;
|
|
378
|
+
})(), wt = (e) => {
|
|
379
|
+
const {
|
|
380
|
+
theme: t,
|
|
381
|
+
classGroups: o
|
|
382
|
+
} = e;
|
|
383
|
+
return yt(o, t);
|
|
384
|
+
}, yt = (e, t) => {
|
|
385
|
+
const o = Fe();
|
|
386
|
+
for (const r in e) {
|
|
387
|
+
const s = e[r];
|
|
388
|
+
$e(s, o, r, t);
|
|
389
|
+
}
|
|
390
|
+
return o;
|
|
391
|
+
}, $e = (e, t, o, r) => {
|
|
392
|
+
const s = e.length;
|
|
393
|
+
for (let a = 0; a < s; a++) {
|
|
394
|
+
const i = e[a];
|
|
395
|
+
xt(i, t, o, r);
|
|
396
|
+
}
|
|
397
|
+
}, xt = (e, t, o, r) => {
|
|
398
|
+
if (typeof e == "string") {
|
|
399
|
+
kt(e, t, o);
|
|
400
|
+
return;
|
|
401
|
+
}
|
|
402
|
+
if (typeof e == "function") {
|
|
403
|
+
vt(e, t, o, r);
|
|
404
|
+
return;
|
|
405
|
+
}
|
|
406
|
+
Tt(e, t, o, r);
|
|
407
|
+
}, kt = (e, t, o) => {
|
|
408
|
+
const r = e === "" ? t : Ue(t, e);
|
|
409
|
+
r.classGroupId = o;
|
|
410
|
+
}, vt = (e, t, o, r) => {
|
|
411
|
+
if (_t(e)) {
|
|
412
|
+
$e(e(r), t, o, r);
|
|
413
|
+
return;
|
|
414
|
+
}
|
|
415
|
+
t.validators === null && (t.validators = []), t.validators.push(pt(o, e));
|
|
416
|
+
}, Tt = (e, t, o, r) => {
|
|
417
|
+
const s = Object.entries(e), a = s.length;
|
|
418
|
+
for (let i = 0; i < a; i++) {
|
|
419
|
+
const [d, l] = s[i];
|
|
420
|
+
$e(l, Ue(t, d), o, r);
|
|
421
|
+
}
|
|
422
|
+
}, Ue = (e, t) => {
|
|
423
|
+
let o = e;
|
|
424
|
+
const r = t.split(ye), s = r.length;
|
|
425
|
+
for (let a = 0; a < s; a++) {
|
|
426
|
+
const i = r[a];
|
|
427
|
+
let d = o.nextPart.get(i);
|
|
428
|
+
d || (d = Fe(), o.nextPart.set(i, d)), o = d;
|
|
429
|
+
}
|
|
430
|
+
return o;
|
|
431
|
+
}, _t = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, Ct = (e) => {
|
|
432
|
+
if (e < 1)
|
|
433
|
+
return {
|
|
434
|
+
get: () => {
|
|
435
|
+
},
|
|
436
|
+
set: () => {
|
|
437
|
+
}
|
|
438
|
+
};
|
|
439
|
+
let t = 0, o = /* @__PURE__ */ Object.create(null), r = /* @__PURE__ */ Object.create(null);
|
|
440
|
+
const s = (a, i) => {
|
|
441
|
+
o[a] = i, t++, t > e && (t = 0, r = o, o = /* @__PURE__ */ Object.create(null));
|
|
442
|
+
};
|
|
443
|
+
return {
|
|
444
|
+
get(a) {
|
|
445
|
+
let i = o[a];
|
|
446
|
+
if (i !== void 0)
|
|
447
|
+
return i;
|
|
448
|
+
if ((i = r[a]) !== void 0)
|
|
449
|
+
return s(a, i), i;
|
|
450
|
+
},
|
|
451
|
+
set(a, i) {
|
|
452
|
+
a in o ? o[a] = i : s(a, i);
|
|
453
|
+
}
|
|
454
|
+
};
|
|
455
|
+
}, Se = "!", Me = ":", Et = [], je = (e, t, o, r, s) => ({
|
|
456
|
+
modifiers: e,
|
|
457
|
+
hasImportantModifier: t,
|
|
458
|
+
baseClassName: o,
|
|
459
|
+
maybePostfixModifierPosition: r,
|
|
460
|
+
isExternal: s
|
|
461
|
+
}), St = (e) => {
|
|
462
|
+
const {
|
|
463
|
+
prefix: t,
|
|
464
|
+
experimentalParseClassName: o
|
|
465
|
+
} = e;
|
|
466
|
+
let r = (s) => {
|
|
467
|
+
const a = [];
|
|
468
|
+
let i = 0, d = 0, l = 0, w;
|
|
469
|
+
const C = s.length;
|
|
470
|
+
for (let y = 0; y < C; y++) {
|
|
471
|
+
const P = s[y];
|
|
472
|
+
if (i === 0 && d === 0) {
|
|
473
|
+
if (P === Me) {
|
|
474
|
+
a.push(s.slice(l, y)), l = y + 1;
|
|
475
|
+
continue;
|
|
476
|
+
}
|
|
477
|
+
if (P === "/") {
|
|
478
|
+
w = y;
|
|
479
|
+
continue;
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
P === "[" ? i++ : P === "]" ? i-- : P === "(" ? d++ : P === ")" && d--;
|
|
483
|
+
}
|
|
484
|
+
const A = a.length === 0 ? s : s.slice(l);
|
|
485
|
+
let R = A, S = !1;
|
|
486
|
+
A.endsWith(Se) ? (R = A.slice(0, -1), S = !0) : (
|
|
487
|
+
/**
|
|
488
|
+
* In Tailwind CSS v3 the important modifier was at the start of the base class name. This is still supported for legacy reasons.
|
|
489
|
+
* @see https://github.com/dcastil/tailwind-merge/issues/513#issuecomment-2614029864
|
|
490
|
+
*/
|
|
491
|
+
A.startsWith(Se) && (R = A.slice(1), S = !0)
|
|
492
|
+
);
|
|
493
|
+
const f = w && w > l ? w - l : void 0;
|
|
494
|
+
return je(a, S, R, f);
|
|
495
|
+
};
|
|
496
|
+
if (t) {
|
|
497
|
+
const s = t + Me, a = r;
|
|
498
|
+
r = (i) => i.startsWith(s) ? a(i.slice(s.length)) : je(Et, !1, i, void 0, !0);
|
|
499
|
+
}
|
|
500
|
+
if (o) {
|
|
501
|
+
const s = r;
|
|
502
|
+
r = (a) => o({
|
|
503
|
+
className: a,
|
|
504
|
+
parseClassName: s
|
|
505
|
+
});
|
|
506
|
+
}
|
|
507
|
+
return r;
|
|
508
|
+
}, $t = (e) => {
|
|
509
|
+
const t = /* @__PURE__ */ new Map();
|
|
510
|
+
return e.orderSensitiveModifiers.forEach((o, r) => {
|
|
511
|
+
t.set(o, 1e6 + r);
|
|
512
|
+
}), (o) => {
|
|
513
|
+
const r = [];
|
|
514
|
+
let s = [];
|
|
515
|
+
for (let a = 0; a < o.length; a++) {
|
|
516
|
+
const i = o[a], d = i[0] === "[", l = t.has(i);
|
|
517
|
+
d || l ? (s.length > 0 && (s.sort(), r.push(...s), s = []), r.push(i)) : s.push(i);
|
|
518
|
+
}
|
|
519
|
+
return s.length > 0 && (s.sort(), r.push(...s)), r;
|
|
520
|
+
};
|
|
521
|
+
}, Rt = (e) => ({
|
|
522
|
+
cache: Ct(e.cacheSize),
|
|
523
|
+
parseClassName: St(e),
|
|
524
|
+
sortModifiers: $t(e),
|
|
525
|
+
...gt(e)
|
|
526
|
+
}), At = /\s+/, Pt = (e, t) => {
|
|
527
|
+
const {
|
|
528
|
+
parseClassName: o,
|
|
529
|
+
getClassGroupId: r,
|
|
530
|
+
getConflictingClassGroupIds: s,
|
|
531
|
+
sortModifiers: a
|
|
532
|
+
} = t, i = [], d = e.trim().split(At);
|
|
533
|
+
let l = "";
|
|
534
|
+
for (let w = d.length - 1; w >= 0; w -= 1) {
|
|
535
|
+
const C = d[w], {
|
|
536
|
+
isExternal: A,
|
|
537
|
+
modifiers: R,
|
|
538
|
+
hasImportantModifier: S,
|
|
539
|
+
baseClassName: f,
|
|
540
|
+
maybePostfixModifierPosition: y
|
|
541
|
+
} = o(C);
|
|
542
|
+
if (A) {
|
|
543
|
+
l = C + (l.length > 0 ? " " + l : l);
|
|
544
|
+
continue;
|
|
545
|
+
}
|
|
546
|
+
let P = !!y, D = r(P ? f.substring(0, y) : f);
|
|
547
|
+
if (!D) {
|
|
548
|
+
if (!P) {
|
|
549
|
+
l = C + (l.length > 0 ? " " + l : l);
|
|
550
|
+
continue;
|
|
551
|
+
}
|
|
552
|
+
if (D = r(f), !D) {
|
|
553
|
+
l = C + (l.length > 0 ? " " + l : l);
|
|
554
|
+
continue;
|
|
555
|
+
}
|
|
556
|
+
P = !1;
|
|
557
|
+
}
|
|
558
|
+
const F = R.length === 0 ? "" : R.length === 1 ? R[0] : a(R).join(":"), O = S ? F + Se : F, H = O + D;
|
|
559
|
+
if (i.indexOf(H) > -1)
|
|
560
|
+
continue;
|
|
561
|
+
i.push(H);
|
|
562
|
+
const W = s(D, P);
|
|
563
|
+
for (let L = 0; L < W.length; ++L) {
|
|
564
|
+
const _ = W[L];
|
|
565
|
+
i.push(O + _);
|
|
566
|
+
}
|
|
567
|
+
l = C + (l.length > 0 ? " " + l : l);
|
|
568
|
+
}
|
|
569
|
+
return l;
|
|
570
|
+
}, Nt = (...e) => {
|
|
571
|
+
let t = 0, o, r, s = "";
|
|
572
|
+
for (; t < e.length; )
|
|
573
|
+
(o = e[t++]) && (r = Ye(o)) && (s && (s += " "), s += r);
|
|
574
|
+
return s;
|
|
575
|
+
}, Ye = (e) => {
|
|
576
|
+
if (typeof e == "string")
|
|
577
|
+
return e;
|
|
578
|
+
let t, o = "";
|
|
579
|
+
for (let r = 0; r < e.length; r++)
|
|
580
|
+
e[r] && (t = Ye(e[r])) && (o && (o += " "), o += t);
|
|
581
|
+
return o;
|
|
582
|
+
}, It = (e, ...t) => {
|
|
583
|
+
let o, r, s, a;
|
|
584
|
+
const i = (l) => {
|
|
585
|
+
const w = t.reduce((C, A) => A(C), e());
|
|
586
|
+
return o = Rt(w), r = o.cache.get, s = o.cache.set, a = d, d(l);
|
|
587
|
+
}, d = (l) => {
|
|
588
|
+
const w = r(l);
|
|
589
|
+
if (w)
|
|
590
|
+
return w;
|
|
591
|
+
const C = Pt(l, o);
|
|
592
|
+
return s(l, C), C;
|
|
593
|
+
};
|
|
594
|
+
return a = i, (...l) => a(Nt(...l));
|
|
595
|
+
}, Mt = [], z = (e) => {
|
|
596
|
+
const t = (o) => o[e] || Mt;
|
|
597
|
+
return t.isThemeGetter = !0, t;
|
|
598
|
+
}, He = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, We = /^\((?:(\w[\w-]*):)?(.+)\)$/i, jt = /^\d+\/\d+$/, Ot = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, zt = /\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$/, Dt = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Lt = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Vt = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, ce = (e) => jt.test(e), v = (e) => !!e && !Number.isNaN(Number(e)), te = (e) => !!e && Number.isInteger(Number(e)), ve = (e) => e.endsWith("%") && v(e.slice(0, -1)), Q = (e) => Ot.test(e), Ft = () => !0, Gt = (e) => (
|
|
599
|
+
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
600
|
+
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
601
|
+
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
602
|
+
zt.test(e) && !Dt.test(e)
|
|
603
|
+
), Be = () => !1, Ut = (e) => Lt.test(e), Yt = (e) => Vt.test(e), Ht = (e) => !u(e) && !m(e), Wt = (e) => de(e, Xe, Be), u = (e) => He.test(e), ae = (e) => de(e, Ze, Gt), Te = (e) => de(e, Zt, v), Oe = (e) => de(e, Je, Be), Bt = (e) => de(e, qe, Yt), he = (e) => de(e, Ke, Ut), m = (e) => We.test(e), pe = (e) => ue(e, Ze), Jt = (e) => ue(e, Kt), ze = (e) => ue(e, Je), qt = (e) => ue(e, Xe), Xt = (e) => ue(e, qe), we = (e) => ue(e, Ke, !0), de = (e, t, o) => {
|
|
604
|
+
const r = He.exec(e);
|
|
605
|
+
return r ? r[1] ? t(r[1]) : o(r[2]) : !1;
|
|
606
|
+
}, ue = (e, t, o = !1) => {
|
|
607
|
+
const r = We.exec(e);
|
|
608
|
+
return r ? r[1] ? t(r[1]) : o : !1;
|
|
609
|
+
}, Je = (e) => e === "position" || e === "percentage", qe = (e) => e === "image" || e === "url", Xe = (e) => e === "length" || e === "size" || e === "bg-size", Ze = (e) => e === "length", Zt = (e) => e === "number", Kt = (e) => e === "family-name", Ke = (e) => e === "shadow", Qt = () => {
|
|
610
|
+
const e = z("color"), t = z("font"), o = z("text"), r = z("font-weight"), s = z("tracking"), a = z("leading"), i = z("breakpoint"), d = z("container"), l = z("spacing"), w = z("radius"), C = z("shadow"), A = z("inset-shadow"), R = z("text-shadow"), S = z("drop-shadow"), f = z("blur"), y = z("perspective"), P = z("aspect"), D = z("ease"), F = z("animate"), O = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], H = () => [
|
|
611
|
+
"center",
|
|
612
|
+
"top",
|
|
613
|
+
"bottom",
|
|
614
|
+
"left",
|
|
615
|
+
"right",
|
|
616
|
+
"top-left",
|
|
617
|
+
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
618
|
+
"left-top",
|
|
619
|
+
"top-right",
|
|
620
|
+
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
621
|
+
"right-top",
|
|
622
|
+
"bottom-right",
|
|
623
|
+
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
624
|
+
"right-bottom",
|
|
625
|
+
"bottom-left",
|
|
626
|
+
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
627
|
+
"left-bottom"
|
|
628
|
+
], W = () => [...H(), m, u], L = () => ["auto", "hidden", "clip", "visible", "scroll"], _ = () => ["auto", "contain", "none"], c = () => [m, u, l], b = () => [ce, "full", "auto", ...c()], M = () => [te, "none", "subgrid", m, u], B = () => ["auto", {
|
|
629
|
+
span: ["full", te, m, u]
|
|
630
|
+
}, te, m, u], J = () => [te, "auto", m, u], oe = () => ["auto", "min", "max", "fr", m, u], ne = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], U = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], V = () => ["auto", ...c()], Y = () => [ce, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...c()], p = () => [e, m, u], K = () => [...H(), ze, Oe, {
|
|
631
|
+
position: [m, u]
|
|
632
|
+
}], Z = () => ["no-repeat", {
|
|
633
|
+
repeat: ["", "x", "y", "space", "round"]
|
|
634
|
+
}], n = () => ["auto", "cover", "contain", qt, Wt, {
|
|
635
|
+
size: [m, u]
|
|
636
|
+
}], h = () => [ve, pe, ae], x = () => [
|
|
637
|
+
// Deprecated since Tailwind CSS v4.0.0
|
|
638
|
+
"",
|
|
639
|
+
"none",
|
|
640
|
+
"full",
|
|
641
|
+
w,
|
|
642
|
+
m,
|
|
643
|
+
u
|
|
644
|
+
], g = () => ["", v, pe, ae], q = () => ["solid", "dashed", "dotted", "double"], ee = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], k = () => [v, ve, ze, Oe], T = () => [
|
|
645
|
+
// Deprecated since Tailwind CSS v4.0.0
|
|
646
|
+
"",
|
|
647
|
+
"none",
|
|
648
|
+
f,
|
|
649
|
+
m,
|
|
650
|
+
u
|
|
651
|
+
], E = () => ["none", v, m, u], N = () => ["none", v, m, u], ie = () => [v, m, u], le = () => [ce, "full", ...c()];
|
|
652
|
+
return {
|
|
653
|
+
cacheSize: 500,
|
|
654
|
+
theme: {
|
|
655
|
+
animate: ["spin", "ping", "pulse", "bounce"],
|
|
656
|
+
aspect: ["video"],
|
|
657
|
+
blur: [Q],
|
|
658
|
+
breakpoint: [Q],
|
|
659
|
+
color: [Ft],
|
|
660
|
+
container: [Q],
|
|
661
|
+
"drop-shadow": [Q],
|
|
662
|
+
ease: ["in", "out", "in-out"],
|
|
663
|
+
font: [Ht],
|
|
664
|
+
"font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
|
|
665
|
+
"inset-shadow": [Q],
|
|
666
|
+
leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
|
|
667
|
+
perspective: ["dramatic", "near", "normal", "midrange", "distant", "none"],
|
|
668
|
+
radius: [Q],
|
|
669
|
+
shadow: [Q],
|
|
670
|
+
spacing: ["px", v],
|
|
671
|
+
text: [Q],
|
|
672
|
+
"text-shadow": [Q],
|
|
673
|
+
tracking: ["tighter", "tight", "normal", "wide", "wider", "widest"]
|
|
674
|
+
},
|
|
675
|
+
classGroups: {
|
|
676
|
+
// --------------
|
|
677
|
+
// --- Layout ---
|
|
678
|
+
// --------------
|
|
679
|
+
/**
|
|
680
|
+
* Aspect Ratio
|
|
681
|
+
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
682
|
+
*/
|
|
683
|
+
aspect: [{
|
|
684
|
+
aspect: ["auto", "square", ce, u, m, P]
|
|
685
|
+
}],
|
|
686
|
+
/**
|
|
687
|
+
* Container
|
|
688
|
+
* @see https://tailwindcss.com/docs/container
|
|
689
|
+
* @deprecated since Tailwind CSS v4.0.0
|
|
690
|
+
*/
|
|
691
|
+
container: ["container"],
|
|
692
|
+
/**
|
|
693
|
+
* Columns
|
|
694
|
+
* @see https://tailwindcss.com/docs/columns
|
|
695
|
+
*/
|
|
696
|
+
columns: [{
|
|
697
|
+
columns: [v, u, m, d]
|
|
698
|
+
}],
|
|
699
|
+
/**
|
|
700
|
+
* Break After
|
|
701
|
+
* @see https://tailwindcss.com/docs/break-after
|
|
702
|
+
*/
|
|
703
|
+
"break-after": [{
|
|
704
|
+
"break-after": O()
|
|
705
|
+
}],
|
|
706
|
+
/**
|
|
707
|
+
* Break Before
|
|
708
|
+
* @see https://tailwindcss.com/docs/break-before
|
|
709
|
+
*/
|
|
710
|
+
"break-before": [{
|
|
711
|
+
"break-before": O()
|
|
712
|
+
}],
|
|
713
|
+
/**
|
|
714
|
+
* Break Inside
|
|
715
|
+
* @see https://tailwindcss.com/docs/break-inside
|
|
716
|
+
*/
|
|
717
|
+
"break-inside": [{
|
|
718
|
+
"break-inside": ["auto", "avoid", "avoid-page", "avoid-column"]
|
|
719
|
+
}],
|
|
720
|
+
/**
|
|
721
|
+
* Box Decoration Break
|
|
722
|
+
* @see https://tailwindcss.com/docs/box-decoration-break
|
|
723
|
+
*/
|
|
724
|
+
"box-decoration": [{
|
|
725
|
+
"box-decoration": ["slice", "clone"]
|
|
726
|
+
}],
|
|
727
|
+
/**
|
|
728
|
+
* Box Sizing
|
|
729
|
+
* @see https://tailwindcss.com/docs/box-sizing
|
|
730
|
+
*/
|
|
731
|
+
box: [{
|
|
732
|
+
box: ["border", "content"]
|
|
733
|
+
}],
|
|
734
|
+
/**
|
|
735
|
+
* Display
|
|
736
|
+
* @see https://tailwindcss.com/docs/display
|
|
737
|
+
*/
|
|
738
|
+
display: ["block", "inline-block", "inline", "flex", "inline-flex", "table", "inline-table", "table-caption", "table-cell", "table-column", "table-column-group", "table-footer-group", "table-header-group", "table-row-group", "table-row", "flow-root", "grid", "inline-grid", "contents", "list-item", "hidden"],
|
|
739
|
+
/**
|
|
740
|
+
* Screen Reader Only
|
|
741
|
+
* @see https://tailwindcss.com/docs/display#screen-reader-only
|
|
742
|
+
*/
|
|
743
|
+
sr: ["sr-only", "not-sr-only"],
|
|
744
|
+
/**
|
|
745
|
+
* Floats
|
|
746
|
+
* @see https://tailwindcss.com/docs/float
|
|
747
|
+
*/
|
|
748
|
+
float: [{
|
|
749
|
+
float: ["right", "left", "none", "start", "end"]
|
|
750
|
+
}],
|
|
751
|
+
/**
|
|
752
|
+
* Clear
|
|
753
|
+
* @see https://tailwindcss.com/docs/clear
|
|
754
|
+
*/
|
|
755
|
+
clear: [{
|
|
756
|
+
clear: ["left", "right", "both", "none", "start", "end"]
|
|
757
|
+
}],
|
|
758
|
+
/**
|
|
759
|
+
* Isolation
|
|
760
|
+
* @see https://tailwindcss.com/docs/isolation
|
|
761
|
+
*/
|
|
762
|
+
isolation: ["isolate", "isolation-auto"],
|
|
763
|
+
/**
|
|
764
|
+
* Object Fit
|
|
765
|
+
* @see https://tailwindcss.com/docs/object-fit
|
|
766
|
+
*/
|
|
767
|
+
"object-fit": [{
|
|
768
|
+
object: ["contain", "cover", "fill", "none", "scale-down"]
|
|
769
|
+
}],
|
|
770
|
+
/**
|
|
771
|
+
* Object Position
|
|
772
|
+
* @see https://tailwindcss.com/docs/object-position
|
|
773
|
+
*/
|
|
774
|
+
"object-position": [{
|
|
775
|
+
object: W()
|
|
776
|
+
}],
|
|
777
|
+
/**
|
|
778
|
+
* Overflow
|
|
779
|
+
* @see https://tailwindcss.com/docs/overflow
|
|
780
|
+
*/
|
|
781
|
+
overflow: [{
|
|
782
|
+
overflow: L()
|
|
783
|
+
}],
|
|
784
|
+
/**
|
|
785
|
+
* Overflow X
|
|
786
|
+
* @see https://tailwindcss.com/docs/overflow
|
|
787
|
+
*/
|
|
788
|
+
"overflow-x": [{
|
|
789
|
+
"overflow-x": L()
|
|
790
|
+
}],
|
|
791
|
+
/**
|
|
792
|
+
* Overflow Y
|
|
793
|
+
* @see https://tailwindcss.com/docs/overflow
|
|
794
|
+
*/
|
|
795
|
+
"overflow-y": [{
|
|
796
|
+
"overflow-y": L()
|
|
797
|
+
}],
|
|
798
|
+
/**
|
|
799
|
+
* Overscroll Behavior
|
|
800
|
+
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
801
|
+
*/
|
|
802
|
+
overscroll: [{
|
|
803
|
+
overscroll: _()
|
|
804
|
+
}],
|
|
805
|
+
/**
|
|
806
|
+
* Overscroll Behavior X
|
|
807
|
+
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
808
|
+
*/
|
|
809
|
+
"overscroll-x": [{
|
|
810
|
+
"overscroll-x": _()
|
|
811
|
+
}],
|
|
812
|
+
/**
|
|
813
|
+
* Overscroll Behavior Y
|
|
814
|
+
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
815
|
+
*/
|
|
816
|
+
"overscroll-y": [{
|
|
817
|
+
"overscroll-y": _()
|
|
818
|
+
}],
|
|
819
|
+
/**
|
|
820
|
+
* Position
|
|
821
|
+
* @see https://tailwindcss.com/docs/position
|
|
822
|
+
*/
|
|
823
|
+
position: ["static", "fixed", "absolute", "relative", "sticky"],
|
|
824
|
+
/**
|
|
825
|
+
* Top / Right / Bottom / Left
|
|
826
|
+
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
827
|
+
*/
|
|
828
|
+
inset: [{
|
|
829
|
+
inset: b()
|
|
830
|
+
}],
|
|
831
|
+
/**
|
|
832
|
+
* Right / Left
|
|
833
|
+
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
834
|
+
*/
|
|
835
|
+
"inset-x": [{
|
|
836
|
+
"inset-x": b()
|
|
837
|
+
}],
|
|
838
|
+
/**
|
|
839
|
+
* Top / Bottom
|
|
840
|
+
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
841
|
+
*/
|
|
842
|
+
"inset-y": [{
|
|
843
|
+
"inset-y": b()
|
|
844
|
+
}],
|
|
845
|
+
/**
|
|
846
|
+
* Start
|
|
847
|
+
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
848
|
+
*/
|
|
849
|
+
start: [{
|
|
850
|
+
start: b()
|
|
851
|
+
}],
|
|
852
|
+
/**
|
|
853
|
+
* End
|
|
854
|
+
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
855
|
+
*/
|
|
856
|
+
end: [{
|
|
857
|
+
end: b()
|
|
858
|
+
}],
|
|
859
|
+
/**
|
|
860
|
+
* Top
|
|
861
|
+
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
862
|
+
*/
|
|
863
|
+
top: [{
|
|
864
|
+
top: b()
|
|
865
|
+
}],
|
|
866
|
+
/**
|
|
867
|
+
* Right
|
|
868
|
+
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
869
|
+
*/
|
|
870
|
+
right: [{
|
|
871
|
+
right: b()
|
|
872
|
+
}],
|
|
873
|
+
/**
|
|
874
|
+
* Bottom
|
|
875
|
+
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
876
|
+
*/
|
|
877
|
+
bottom: [{
|
|
878
|
+
bottom: b()
|
|
879
|
+
}],
|
|
880
|
+
/**
|
|
881
|
+
* Left
|
|
882
|
+
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
883
|
+
*/
|
|
884
|
+
left: [{
|
|
885
|
+
left: b()
|
|
886
|
+
}],
|
|
887
|
+
/**
|
|
888
|
+
* Visibility
|
|
889
|
+
* @see https://tailwindcss.com/docs/visibility
|
|
890
|
+
*/
|
|
891
|
+
visibility: ["visible", "invisible", "collapse"],
|
|
892
|
+
/**
|
|
893
|
+
* Z-Index
|
|
894
|
+
* @see https://tailwindcss.com/docs/z-index
|
|
895
|
+
*/
|
|
896
|
+
z: [{
|
|
897
|
+
z: [te, "auto", m, u]
|
|
898
|
+
}],
|
|
899
|
+
// ------------------------
|
|
900
|
+
// --- Flexbox and Grid ---
|
|
901
|
+
// ------------------------
|
|
902
|
+
/**
|
|
903
|
+
* Flex Basis
|
|
904
|
+
* @see https://tailwindcss.com/docs/flex-basis
|
|
905
|
+
*/
|
|
906
|
+
basis: [{
|
|
907
|
+
basis: [ce, "full", "auto", d, ...c()]
|
|
908
|
+
}],
|
|
909
|
+
/**
|
|
910
|
+
* Flex Direction
|
|
911
|
+
* @see https://tailwindcss.com/docs/flex-direction
|
|
912
|
+
*/
|
|
913
|
+
"flex-direction": [{
|
|
914
|
+
flex: ["row", "row-reverse", "col", "col-reverse"]
|
|
915
|
+
}],
|
|
916
|
+
/**
|
|
917
|
+
* Flex Wrap
|
|
918
|
+
* @see https://tailwindcss.com/docs/flex-wrap
|
|
919
|
+
*/
|
|
920
|
+
"flex-wrap": [{
|
|
921
|
+
flex: ["nowrap", "wrap", "wrap-reverse"]
|
|
922
|
+
}],
|
|
923
|
+
/**
|
|
924
|
+
* Flex
|
|
925
|
+
* @see https://tailwindcss.com/docs/flex
|
|
926
|
+
*/
|
|
927
|
+
flex: [{
|
|
928
|
+
flex: [v, ce, "auto", "initial", "none", u]
|
|
929
|
+
}],
|
|
930
|
+
/**
|
|
931
|
+
* Flex Grow
|
|
932
|
+
* @see https://tailwindcss.com/docs/flex-grow
|
|
933
|
+
*/
|
|
934
|
+
grow: [{
|
|
935
|
+
grow: ["", v, m, u]
|
|
936
|
+
}],
|
|
937
|
+
/**
|
|
938
|
+
* Flex Shrink
|
|
939
|
+
* @see https://tailwindcss.com/docs/flex-shrink
|
|
940
|
+
*/
|
|
941
|
+
shrink: [{
|
|
942
|
+
shrink: ["", v, m, u]
|
|
943
|
+
}],
|
|
944
|
+
/**
|
|
945
|
+
* Order
|
|
946
|
+
* @see https://tailwindcss.com/docs/order
|
|
947
|
+
*/
|
|
948
|
+
order: [{
|
|
949
|
+
order: [te, "first", "last", "none", m, u]
|
|
950
|
+
}],
|
|
951
|
+
/**
|
|
952
|
+
* Grid Template Columns
|
|
953
|
+
* @see https://tailwindcss.com/docs/grid-template-columns
|
|
954
|
+
*/
|
|
955
|
+
"grid-cols": [{
|
|
956
|
+
"grid-cols": M()
|
|
957
|
+
}],
|
|
958
|
+
/**
|
|
959
|
+
* Grid Column Start / End
|
|
960
|
+
* @see https://tailwindcss.com/docs/grid-column
|
|
961
|
+
*/
|
|
962
|
+
"col-start-end": [{
|
|
963
|
+
col: B()
|
|
964
|
+
}],
|
|
965
|
+
/**
|
|
966
|
+
* Grid Column Start
|
|
967
|
+
* @see https://tailwindcss.com/docs/grid-column
|
|
968
|
+
*/
|
|
969
|
+
"col-start": [{
|
|
970
|
+
"col-start": J()
|
|
971
|
+
}],
|
|
972
|
+
/**
|
|
973
|
+
* Grid Column End
|
|
974
|
+
* @see https://tailwindcss.com/docs/grid-column
|
|
975
|
+
*/
|
|
976
|
+
"col-end": [{
|
|
977
|
+
"col-end": J()
|
|
978
|
+
}],
|
|
979
|
+
/**
|
|
980
|
+
* Grid Template Rows
|
|
981
|
+
* @see https://tailwindcss.com/docs/grid-template-rows
|
|
982
|
+
*/
|
|
983
|
+
"grid-rows": [{
|
|
984
|
+
"grid-rows": M()
|
|
985
|
+
}],
|
|
986
|
+
/**
|
|
987
|
+
* Grid Row Start / End
|
|
988
|
+
* @see https://tailwindcss.com/docs/grid-row
|
|
989
|
+
*/
|
|
990
|
+
"row-start-end": [{
|
|
991
|
+
row: B()
|
|
992
|
+
}],
|
|
993
|
+
/**
|
|
994
|
+
* Grid Row Start
|
|
995
|
+
* @see https://tailwindcss.com/docs/grid-row
|
|
996
|
+
*/
|
|
997
|
+
"row-start": [{
|
|
998
|
+
"row-start": J()
|
|
999
|
+
}],
|
|
1000
|
+
/**
|
|
1001
|
+
* Grid Row End
|
|
1002
|
+
* @see https://tailwindcss.com/docs/grid-row
|
|
1003
|
+
*/
|
|
1004
|
+
"row-end": [{
|
|
1005
|
+
"row-end": J()
|
|
1006
|
+
}],
|
|
1007
|
+
/**
|
|
1008
|
+
* Grid Auto Flow
|
|
1009
|
+
* @see https://tailwindcss.com/docs/grid-auto-flow
|
|
1010
|
+
*/
|
|
1011
|
+
"grid-flow": [{
|
|
1012
|
+
"grid-flow": ["row", "col", "dense", "row-dense", "col-dense"]
|
|
1013
|
+
}],
|
|
1014
|
+
/**
|
|
1015
|
+
* Grid Auto Columns
|
|
1016
|
+
* @see https://tailwindcss.com/docs/grid-auto-columns
|
|
1017
|
+
*/
|
|
1018
|
+
"auto-cols": [{
|
|
1019
|
+
"auto-cols": oe()
|
|
1020
|
+
}],
|
|
1021
|
+
/**
|
|
1022
|
+
* Grid Auto Rows
|
|
1023
|
+
* @see https://tailwindcss.com/docs/grid-auto-rows
|
|
1024
|
+
*/
|
|
1025
|
+
"auto-rows": [{
|
|
1026
|
+
"auto-rows": oe()
|
|
1027
|
+
}],
|
|
1028
|
+
/**
|
|
1029
|
+
* Gap
|
|
1030
|
+
* @see https://tailwindcss.com/docs/gap
|
|
1031
|
+
*/
|
|
1032
|
+
gap: [{
|
|
1033
|
+
gap: c()
|
|
1034
|
+
}],
|
|
1035
|
+
/**
|
|
1036
|
+
* Gap X
|
|
1037
|
+
* @see https://tailwindcss.com/docs/gap
|
|
1038
|
+
*/
|
|
1039
|
+
"gap-x": [{
|
|
1040
|
+
"gap-x": c()
|
|
1041
|
+
}],
|
|
1042
|
+
/**
|
|
1043
|
+
* Gap Y
|
|
1044
|
+
* @see https://tailwindcss.com/docs/gap
|
|
1045
|
+
*/
|
|
1046
|
+
"gap-y": [{
|
|
1047
|
+
"gap-y": c()
|
|
1048
|
+
}],
|
|
1049
|
+
/**
|
|
1050
|
+
* Justify Content
|
|
1051
|
+
* @see https://tailwindcss.com/docs/justify-content
|
|
1052
|
+
*/
|
|
1053
|
+
"justify-content": [{
|
|
1054
|
+
justify: [...ne(), "normal"]
|
|
1055
|
+
}],
|
|
1056
|
+
/**
|
|
1057
|
+
* Justify Items
|
|
1058
|
+
* @see https://tailwindcss.com/docs/justify-items
|
|
1059
|
+
*/
|
|
1060
|
+
"justify-items": [{
|
|
1061
|
+
"justify-items": [...U(), "normal"]
|
|
1062
|
+
}],
|
|
1063
|
+
/**
|
|
1064
|
+
* Justify Self
|
|
1065
|
+
* @see https://tailwindcss.com/docs/justify-self
|
|
1066
|
+
*/
|
|
1067
|
+
"justify-self": [{
|
|
1068
|
+
"justify-self": ["auto", ...U()]
|
|
1069
|
+
}],
|
|
1070
|
+
/**
|
|
1071
|
+
* Align Content
|
|
1072
|
+
* @see https://tailwindcss.com/docs/align-content
|
|
1073
|
+
*/
|
|
1074
|
+
"align-content": [{
|
|
1075
|
+
content: ["normal", ...ne()]
|
|
1076
|
+
}],
|
|
1077
|
+
/**
|
|
1078
|
+
* Align Items
|
|
1079
|
+
* @see https://tailwindcss.com/docs/align-items
|
|
1080
|
+
*/
|
|
1081
|
+
"align-items": [{
|
|
1082
|
+
items: [...U(), {
|
|
1083
|
+
baseline: ["", "last"]
|
|
1084
|
+
}]
|
|
1085
|
+
}],
|
|
1086
|
+
/**
|
|
1087
|
+
* Align Self
|
|
1088
|
+
* @see https://tailwindcss.com/docs/align-self
|
|
1089
|
+
*/
|
|
1090
|
+
"align-self": [{
|
|
1091
|
+
self: ["auto", ...U(), {
|
|
1092
|
+
baseline: ["", "last"]
|
|
1093
|
+
}]
|
|
1094
|
+
}],
|
|
1095
|
+
/**
|
|
1096
|
+
* Place Content
|
|
1097
|
+
* @see https://tailwindcss.com/docs/place-content
|
|
1098
|
+
*/
|
|
1099
|
+
"place-content": [{
|
|
1100
|
+
"place-content": ne()
|
|
1101
|
+
}],
|
|
1102
|
+
/**
|
|
1103
|
+
* Place Items
|
|
1104
|
+
* @see https://tailwindcss.com/docs/place-items
|
|
1105
|
+
*/
|
|
1106
|
+
"place-items": [{
|
|
1107
|
+
"place-items": [...U(), "baseline"]
|
|
1108
|
+
}],
|
|
1109
|
+
/**
|
|
1110
|
+
* Place Self
|
|
1111
|
+
* @see https://tailwindcss.com/docs/place-self
|
|
1112
|
+
*/
|
|
1113
|
+
"place-self": [{
|
|
1114
|
+
"place-self": ["auto", ...U()]
|
|
1115
|
+
}],
|
|
1116
|
+
// Spacing
|
|
1117
|
+
/**
|
|
1118
|
+
* Padding
|
|
1119
|
+
* @see https://tailwindcss.com/docs/padding
|
|
1120
|
+
*/
|
|
1121
|
+
p: [{
|
|
1122
|
+
p: c()
|
|
1123
|
+
}],
|
|
1124
|
+
/**
|
|
1125
|
+
* Padding X
|
|
1126
|
+
* @see https://tailwindcss.com/docs/padding
|
|
1127
|
+
*/
|
|
1128
|
+
px: [{
|
|
1129
|
+
px: c()
|
|
1130
|
+
}],
|
|
1131
|
+
/**
|
|
1132
|
+
* Padding Y
|
|
1133
|
+
* @see https://tailwindcss.com/docs/padding
|
|
1134
|
+
*/
|
|
1135
|
+
py: [{
|
|
1136
|
+
py: c()
|
|
1137
|
+
}],
|
|
1138
|
+
/**
|
|
1139
|
+
* Padding Start
|
|
1140
|
+
* @see https://tailwindcss.com/docs/padding
|
|
1141
|
+
*/
|
|
1142
|
+
ps: [{
|
|
1143
|
+
ps: c()
|
|
1144
|
+
}],
|
|
1145
|
+
/**
|
|
1146
|
+
* Padding End
|
|
1147
|
+
* @see https://tailwindcss.com/docs/padding
|
|
1148
|
+
*/
|
|
1149
|
+
pe: [{
|
|
1150
|
+
pe: c()
|
|
1151
|
+
}],
|
|
1152
|
+
/**
|
|
1153
|
+
* Padding Top
|
|
1154
|
+
* @see https://tailwindcss.com/docs/padding
|
|
1155
|
+
*/
|
|
1156
|
+
pt: [{
|
|
1157
|
+
pt: c()
|
|
1158
|
+
}],
|
|
1159
|
+
/**
|
|
1160
|
+
* Padding Right
|
|
1161
|
+
* @see https://tailwindcss.com/docs/padding
|
|
1162
|
+
*/
|
|
1163
|
+
pr: [{
|
|
1164
|
+
pr: c()
|
|
1165
|
+
}],
|
|
1166
|
+
/**
|
|
1167
|
+
* Padding Bottom
|
|
1168
|
+
* @see https://tailwindcss.com/docs/padding
|
|
1169
|
+
*/
|
|
1170
|
+
pb: [{
|
|
1171
|
+
pb: c()
|
|
1172
|
+
}],
|
|
1173
|
+
/**
|
|
1174
|
+
* Padding Left
|
|
1175
|
+
* @see https://tailwindcss.com/docs/padding
|
|
1176
|
+
*/
|
|
1177
|
+
pl: [{
|
|
1178
|
+
pl: c()
|
|
1179
|
+
}],
|
|
1180
|
+
/**
|
|
1181
|
+
* Margin
|
|
1182
|
+
* @see https://tailwindcss.com/docs/margin
|
|
1183
|
+
*/
|
|
1184
|
+
m: [{
|
|
1185
|
+
m: V()
|
|
1186
|
+
}],
|
|
1187
|
+
/**
|
|
1188
|
+
* Margin X
|
|
1189
|
+
* @see https://tailwindcss.com/docs/margin
|
|
1190
|
+
*/
|
|
1191
|
+
mx: [{
|
|
1192
|
+
mx: V()
|
|
1193
|
+
}],
|
|
1194
|
+
/**
|
|
1195
|
+
* Margin Y
|
|
1196
|
+
* @see https://tailwindcss.com/docs/margin
|
|
1197
|
+
*/
|
|
1198
|
+
my: [{
|
|
1199
|
+
my: V()
|
|
1200
|
+
}],
|
|
1201
|
+
/**
|
|
1202
|
+
* Margin Start
|
|
1203
|
+
* @see https://tailwindcss.com/docs/margin
|
|
1204
|
+
*/
|
|
1205
|
+
ms: [{
|
|
1206
|
+
ms: V()
|
|
1207
|
+
}],
|
|
1208
|
+
/**
|
|
1209
|
+
* Margin End
|
|
1210
|
+
* @see https://tailwindcss.com/docs/margin
|
|
1211
|
+
*/
|
|
1212
|
+
me: [{
|
|
1213
|
+
me: V()
|
|
1214
|
+
}],
|
|
1215
|
+
/**
|
|
1216
|
+
* Margin Top
|
|
1217
|
+
* @see https://tailwindcss.com/docs/margin
|
|
1218
|
+
*/
|
|
1219
|
+
mt: [{
|
|
1220
|
+
mt: V()
|
|
1221
|
+
}],
|
|
1222
|
+
/**
|
|
1223
|
+
* Margin Right
|
|
1224
|
+
* @see https://tailwindcss.com/docs/margin
|
|
1225
|
+
*/
|
|
1226
|
+
mr: [{
|
|
1227
|
+
mr: V()
|
|
1228
|
+
}],
|
|
1229
|
+
/**
|
|
1230
|
+
* Margin Bottom
|
|
1231
|
+
* @see https://tailwindcss.com/docs/margin
|
|
1232
|
+
*/
|
|
1233
|
+
mb: [{
|
|
1234
|
+
mb: V()
|
|
1235
|
+
}],
|
|
1236
|
+
/**
|
|
1237
|
+
* Margin Left
|
|
1238
|
+
* @see https://tailwindcss.com/docs/margin
|
|
1239
|
+
*/
|
|
1240
|
+
ml: [{
|
|
1241
|
+
ml: V()
|
|
1242
|
+
}],
|
|
1243
|
+
/**
|
|
1244
|
+
* Space Between X
|
|
1245
|
+
* @see https://tailwindcss.com/docs/margin#adding-space-between-children
|
|
1246
|
+
*/
|
|
1247
|
+
"space-x": [{
|
|
1248
|
+
"space-x": c()
|
|
1249
|
+
}],
|
|
1250
|
+
/**
|
|
1251
|
+
* Space Between X Reverse
|
|
1252
|
+
* @see https://tailwindcss.com/docs/margin#adding-space-between-children
|
|
1253
|
+
*/
|
|
1254
|
+
"space-x-reverse": ["space-x-reverse"],
|
|
1255
|
+
/**
|
|
1256
|
+
* Space Between Y
|
|
1257
|
+
* @see https://tailwindcss.com/docs/margin#adding-space-between-children
|
|
1258
|
+
*/
|
|
1259
|
+
"space-y": [{
|
|
1260
|
+
"space-y": c()
|
|
1261
|
+
}],
|
|
1262
|
+
/**
|
|
1263
|
+
* Space Between Y Reverse
|
|
1264
|
+
* @see https://tailwindcss.com/docs/margin#adding-space-between-children
|
|
1265
|
+
*/
|
|
1266
|
+
"space-y-reverse": ["space-y-reverse"],
|
|
1267
|
+
// --------------
|
|
1268
|
+
// --- Sizing ---
|
|
1269
|
+
// --------------
|
|
1270
|
+
/**
|
|
1271
|
+
* Size
|
|
1272
|
+
* @see https://tailwindcss.com/docs/width#setting-both-width-and-height
|
|
1273
|
+
*/
|
|
1274
|
+
size: [{
|
|
1275
|
+
size: Y()
|
|
1276
|
+
}],
|
|
1277
|
+
/**
|
|
1278
|
+
* Width
|
|
1279
|
+
* @see https://tailwindcss.com/docs/width
|
|
1280
|
+
*/
|
|
1281
|
+
w: [{
|
|
1282
|
+
w: [d, "screen", ...Y()]
|
|
1283
|
+
}],
|
|
1284
|
+
/**
|
|
1285
|
+
* Min-Width
|
|
1286
|
+
* @see https://tailwindcss.com/docs/min-width
|
|
1287
|
+
*/
|
|
1288
|
+
"min-w": [{
|
|
1289
|
+
"min-w": [
|
|
1290
|
+
d,
|
|
1291
|
+
"screen",
|
|
1292
|
+
/** Deprecated. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
1293
|
+
"none",
|
|
1294
|
+
...Y()
|
|
1295
|
+
]
|
|
1296
|
+
}],
|
|
1297
|
+
/**
|
|
1298
|
+
* Max-Width
|
|
1299
|
+
* @see https://tailwindcss.com/docs/max-width
|
|
1300
|
+
*/
|
|
1301
|
+
"max-w": [{
|
|
1302
|
+
"max-w": [
|
|
1303
|
+
d,
|
|
1304
|
+
"screen",
|
|
1305
|
+
"none",
|
|
1306
|
+
/** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
1307
|
+
"prose",
|
|
1308
|
+
/** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
1309
|
+
{
|
|
1310
|
+
screen: [i]
|
|
1311
|
+
},
|
|
1312
|
+
...Y()
|
|
1313
|
+
]
|
|
1314
|
+
}],
|
|
1315
|
+
/**
|
|
1316
|
+
* Height
|
|
1317
|
+
* @see https://tailwindcss.com/docs/height
|
|
1318
|
+
*/
|
|
1319
|
+
h: [{
|
|
1320
|
+
h: ["screen", "lh", ...Y()]
|
|
1321
|
+
}],
|
|
1322
|
+
/**
|
|
1323
|
+
* Min-Height
|
|
1324
|
+
* @see https://tailwindcss.com/docs/min-height
|
|
1325
|
+
*/
|
|
1326
|
+
"min-h": [{
|
|
1327
|
+
"min-h": ["screen", "lh", "none", ...Y()]
|
|
1328
|
+
}],
|
|
1329
|
+
/**
|
|
1330
|
+
* Max-Height
|
|
1331
|
+
* @see https://tailwindcss.com/docs/max-height
|
|
1332
|
+
*/
|
|
1333
|
+
"max-h": [{
|
|
1334
|
+
"max-h": ["screen", "lh", ...Y()]
|
|
1335
|
+
}],
|
|
1336
|
+
// ------------------
|
|
1337
|
+
// --- Typography ---
|
|
1338
|
+
// ------------------
|
|
1339
|
+
/**
|
|
1340
|
+
* Font Size
|
|
1341
|
+
* @see https://tailwindcss.com/docs/font-size
|
|
1342
|
+
*/
|
|
1343
|
+
"font-size": [{
|
|
1344
|
+
text: ["base", o, pe, ae]
|
|
1345
|
+
}],
|
|
1346
|
+
/**
|
|
1347
|
+
* Font Smoothing
|
|
1348
|
+
* @see https://tailwindcss.com/docs/font-smoothing
|
|
1349
|
+
*/
|
|
1350
|
+
"font-smoothing": ["antialiased", "subpixel-antialiased"],
|
|
1351
|
+
/**
|
|
1352
|
+
* Font Style
|
|
1353
|
+
* @see https://tailwindcss.com/docs/font-style
|
|
1354
|
+
*/
|
|
1355
|
+
"font-style": ["italic", "not-italic"],
|
|
1356
|
+
/**
|
|
1357
|
+
* Font Weight
|
|
1358
|
+
* @see https://tailwindcss.com/docs/font-weight
|
|
1359
|
+
*/
|
|
1360
|
+
"font-weight": [{
|
|
1361
|
+
font: [r, m, Te]
|
|
1362
|
+
}],
|
|
1363
|
+
/**
|
|
1364
|
+
* Font Stretch
|
|
1365
|
+
* @see https://tailwindcss.com/docs/font-stretch
|
|
1366
|
+
*/
|
|
1367
|
+
"font-stretch": [{
|
|
1368
|
+
"font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", ve, u]
|
|
1369
|
+
}],
|
|
1370
|
+
/**
|
|
1371
|
+
* Font Family
|
|
1372
|
+
* @see https://tailwindcss.com/docs/font-family
|
|
1373
|
+
*/
|
|
1374
|
+
"font-family": [{
|
|
1375
|
+
font: [Jt, u, t]
|
|
1376
|
+
}],
|
|
1377
|
+
/**
|
|
1378
|
+
* Font Variant Numeric
|
|
1379
|
+
* @see https://tailwindcss.com/docs/font-variant-numeric
|
|
1380
|
+
*/
|
|
1381
|
+
"fvn-normal": ["normal-nums"],
|
|
1382
|
+
/**
|
|
1383
|
+
* Font Variant Numeric
|
|
1384
|
+
* @see https://tailwindcss.com/docs/font-variant-numeric
|
|
1385
|
+
*/
|
|
1386
|
+
"fvn-ordinal": ["ordinal"],
|
|
1387
|
+
/**
|
|
1388
|
+
* Font Variant Numeric
|
|
1389
|
+
* @see https://tailwindcss.com/docs/font-variant-numeric
|
|
1390
|
+
*/
|
|
1391
|
+
"fvn-slashed-zero": ["slashed-zero"],
|
|
1392
|
+
/**
|
|
1393
|
+
* Font Variant Numeric
|
|
1394
|
+
* @see https://tailwindcss.com/docs/font-variant-numeric
|
|
1395
|
+
*/
|
|
1396
|
+
"fvn-figure": ["lining-nums", "oldstyle-nums"],
|
|
1397
|
+
/**
|
|
1398
|
+
* Font Variant Numeric
|
|
1399
|
+
* @see https://tailwindcss.com/docs/font-variant-numeric
|
|
1400
|
+
*/
|
|
1401
|
+
"fvn-spacing": ["proportional-nums", "tabular-nums"],
|
|
1402
|
+
/**
|
|
1403
|
+
* Font Variant Numeric
|
|
1404
|
+
* @see https://tailwindcss.com/docs/font-variant-numeric
|
|
1405
|
+
*/
|
|
1406
|
+
"fvn-fraction": ["diagonal-fractions", "stacked-fractions"],
|
|
1407
|
+
/**
|
|
1408
|
+
* Letter Spacing
|
|
1409
|
+
* @see https://tailwindcss.com/docs/letter-spacing
|
|
1410
|
+
*/
|
|
1411
|
+
tracking: [{
|
|
1412
|
+
tracking: [s, m, u]
|
|
1413
|
+
}],
|
|
1414
|
+
/**
|
|
1415
|
+
* Line Clamp
|
|
1416
|
+
* @see https://tailwindcss.com/docs/line-clamp
|
|
1417
|
+
*/
|
|
1418
|
+
"line-clamp": [{
|
|
1419
|
+
"line-clamp": [v, "none", m, Te]
|
|
1420
|
+
}],
|
|
1421
|
+
/**
|
|
1422
|
+
* Line Height
|
|
1423
|
+
* @see https://tailwindcss.com/docs/line-height
|
|
1424
|
+
*/
|
|
1425
|
+
leading: [{
|
|
1426
|
+
leading: [
|
|
1427
|
+
/** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
1428
|
+
a,
|
|
1429
|
+
...c()
|
|
1430
|
+
]
|
|
1431
|
+
}],
|
|
1432
|
+
/**
|
|
1433
|
+
* List Style Image
|
|
1434
|
+
* @see https://tailwindcss.com/docs/list-style-image
|
|
1435
|
+
*/
|
|
1436
|
+
"list-image": [{
|
|
1437
|
+
"list-image": ["none", m, u]
|
|
1438
|
+
}],
|
|
1439
|
+
/**
|
|
1440
|
+
* List Style Position
|
|
1441
|
+
* @see https://tailwindcss.com/docs/list-style-position
|
|
1442
|
+
*/
|
|
1443
|
+
"list-style-position": [{
|
|
1444
|
+
list: ["inside", "outside"]
|
|
1445
|
+
}],
|
|
1446
|
+
/**
|
|
1447
|
+
* List Style Type
|
|
1448
|
+
* @see https://tailwindcss.com/docs/list-style-type
|
|
1449
|
+
*/
|
|
1450
|
+
"list-style-type": [{
|
|
1451
|
+
list: ["disc", "decimal", "none", m, u]
|
|
1452
|
+
}],
|
|
1453
|
+
/**
|
|
1454
|
+
* Text Alignment
|
|
1455
|
+
* @see https://tailwindcss.com/docs/text-align
|
|
1456
|
+
*/
|
|
1457
|
+
"text-alignment": [{
|
|
1458
|
+
text: ["left", "center", "right", "justify", "start", "end"]
|
|
1459
|
+
}],
|
|
1460
|
+
/**
|
|
1461
|
+
* Placeholder Color
|
|
1462
|
+
* @deprecated since Tailwind CSS v3.0.0
|
|
1463
|
+
* @see https://v3.tailwindcss.com/docs/placeholder-color
|
|
1464
|
+
*/
|
|
1465
|
+
"placeholder-color": [{
|
|
1466
|
+
placeholder: p()
|
|
1467
|
+
}],
|
|
1468
|
+
/**
|
|
1469
|
+
* Text Color
|
|
1470
|
+
* @see https://tailwindcss.com/docs/text-color
|
|
1471
|
+
*/
|
|
1472
|
+
"text-color": [{
|
|
1473
|
+
text: p()
|
|
1474
|
+
}],
|
|
1475
|
+
/**
|
|
1476
|
+
* Text Decoration
|
|
1477
|
+
* @see https://tailwindcss.com/docs/text-decoration
|
|
1478
|
+
*/
|
|
1479
|
+
"text-decoration": ["underline", "overline", "line-through", "no-underline"],
|
|
1480
|
+
/**
|
|
1481
|
+
* Text Decoration Style
|
|
1482
|
+
* @see https://tailwindcss.com/docs/text-decoration-style
|
|
1483
|
+
*/
|
|
1484
|
+
"text-decoration-style": [{
|
|
1485
|
+
decoration: [...q(), "wavy"]
|
|
1486
|
+
}],
|
|
1487
|
+
/**
|
|
1488
|
+
* Text Decoration Thickness
|
|
1489
|
+
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
|
1490
|
+
*/
|
|
1491
|
+
"text-decoration-thickness": [{
|
|
1492
|
+
decoration: [v, "from-font", "auto", m, ae]
|
|
1493
|
+
}],
|
|
1494
|
+
/**
|
|
1495
|
+
* Text Decoration Color
|
|
1496
|
+
* @see https://tailwindcss.com/docs/text-decoration-color
|
|
1497
|
+
*/
|
|
1498
|
+
"text-decoration-color": [{
|
|
1499
|
+
decoration: p()
|
|
1500
|
+
}],
|
|
1501
|
+
/**
|
|
1502
|
+
* Text Underline Offset
|
|
1503
|
+
* @see https://tailwindcss.com/docs/text-underline-offset
|
|
1504
|
+
*/
|
|
1505
|
+
"underline-offset": [{
|
|
1506
|
+
"underline-offset": [v, "auto", m, u]
|
|
1507
|
+
}],
|
|
1508
|
+
/**
|
|
1509
|
+
* Text Transform
|
|
1510
|
+
* @see https://tailwindcss.com/docs/text-transform
|
|
1511
|
+
*/
|
|
1512
|
+
"text-transform": ["uppercase", "lowercase", "capitalize", "normal-case"],
|
|
1513
|
+
/**
|
|
1514
|
+
* Text Overflow
|
|
1515
|
+
* @see https://tailwindcss.com/docs/text-overflow
|
|
1516
|
+
*/
|
|
1517
|
+
"text-overflow": ["truncate", "text-ellipsis", "text-clip"],
|
|
1518
|
+
/**
|
|
1519
|
+
* Text Wrap
|
|
1520
|
+
* @see https://tailwindcss.com/docs/text-wrap
|
|
1521
|
+
*/
|
|
1522
|
+
"text-wrap": [{
|
|
1523
|
+
text: ["wrap", "nowrap", "balance", "pretty"]
|
|
1524
|
+
}],
|
|
1525
|
+
/**
|
|
1526
|
+
* Text Indent
|
|
1527
|
+
* @see https://tailwindcss.com/docs/text-indent
|
|
1528
|
+
*/
|
|
1529
|
+
indent: [{
|
|
1530
|
+
indent: c()
|
|
1531
|
+
}],
|
|
1532
|
+
/**
|
|
1533
|
+
* Vertical Alignment
|
|
1534
|
+
* @see https://tailwindcss.com/docs/vertical-align
|
|
1535
|
+
*/
|
|
1536
|
+
"vertical-align": [{
|
|
1537
|
+
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", m, u]
|
|
1538
|
+
}],
|
|
1539
|
+
/**
|
|
1540
|
+
* Whitespace
|
|
1541
|
+
* @see https://tailwindcss.com/docs/whitespace
|
|
1542
|
+
*/
|
|
1543
|
+
whitespace: [{
|
|
1544
|
+
whitespace: ["normal", "nowrap", "pre", "pre-line", "pre-wrap", "break-spaces"]
|
|
1545
|
+
}],
|
|
1546
|
+
/**
|
|
1547
|
+
* Word Break
|
|
1548
|
+
* @see https://tailwindcss.com/docs/word-break
|
|
1549
|
+
*/
|
|
1550
|
+
break: [{
|
|
1551
|
+
break: ["normal", "words", "all", "keep"]
|
|
1552
|
+
}],
|
|
1553
|
+
/**
|
|
1554
|
+
* Overflow Wrap
|
|
1555
|
+
* @see https://tailwindcss.com/docs/overflow-wrap
|
|
1556
|
+
*/
|
|
1557
|
+
wrap: [{
|
|
1558
|
+
wrap: ["break-word", "anywhere", "normal"]
|
|
1559
|
+
}],
|
|
1560
|
+
/**
|
|
1561
|
+
* Hyphens
|
|
1562
|
+
* @see https://tailwindcss.com/docs/hyphens
|
|
1563
|
+
*/
|
|
1564
|
+
hyphens: [{
|
|
1565
|
+
hyphens: ["none", "manual", "auto"]
|
|
1566
|
+
}],
|
|
1567
|
+
/**
|
|
1568
|
+
* Content
|
|
1569
|
+
* @see https://tailwindcss.com/docs/content
|
|
1570
|
+
*/
|
|
1571
|
+
content: [{
|
|
1572
|
+
content: ["none", m, u]
|
|
1573
|
+
}],
|
|
1574
|
+
// -------------------
|
|
1575
|
+
// --- Backgrounds ---
|
|
1576
|
+
// -------------------
|
|
1577
|
+
/**
|
|
1578
|
+
* Background Attachment
|
|
1579
|
+
* @see https://tailwindcss.com/docs/background-attachment
|
|
1580
|
+
*/
|
|
1581
|
+
"bg-attachment": [{
|
|
1582
|
+
bg: ["fixed", "local", "scroll"]
|
|
1583
|
+
}],
|
|
1584
|
+
/**
|
|
1585
|
+
* Background Clip
|
|
1586
|
+
* @see https://tailwindcss.com/docs/background-clip
|
|
1587
|
+
*/
|
|
1588
|
+
"bg-clip": [{
|
|
1589
|
+
"bg-clip": ["border", "padding", "content", "text"]
|
|
1590
|
+
}],
|
|
1591
|
+
/**
|
|
1592
|
+
* Background Origin
|
|
1593
|
+
* @see https://tailwindcss.com/docs/background-origin
|
|
1594
|
+
*/
|
|
1595
|
+
"bg-origin": [{
|
|
1596
|
+
"bg-origin": ["border", "padding", "content"]
|
|
1597
|
+
}],
|
|
1598
|
+
/**
|
|
1599
|
+
* Background Position
|
|
1600
|
+
* @see https://tailwindcss.com/docs/background-position
|
|
1601
|
+
*/
|
|
1602
|
+
"bg-position": [{
|
|
1603
|
+
bg: K()
|
|
1604
|
+
}],
|
|
1605
|
+
/**
|
|
1606
|
+
* Background Repeat
|
|
1607
|
+
* @see https://tailwindcss.com/docs/background-repeat
|
|
1608
|
+
*/
|
|
1609
|
+
"bg-repeat": [{
|
|
1610
|
+
bg: Z()
|
|
1611
|
+
}],
|
|
1612
|
+
/**
|
|
1613
|
+
* Background Size
|
|
1614
|
+
* @see https://tailwindcss.com/docs/background-size
|
|
1615
|
+
*/
|
|
1616
|
+
"bg-size": [{
|
|
1617
|
+
bg: n()
|
|
1618
|
+
}],
|
|
1619
|
+
/**
|
|
1620
|
+
* Background Image
|
|
1621
|
+
* @see https://tailwindcss.com/docs/background-image
|
|
1622
|
+
*/
|
|
1623
|
+
"bg-image": [{
|
|
1624
|
+
bg: ["none", {
|
|
1625
|
+
linear: [{
|
|
1626
|
+
to: ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
|
|
1627
|
+
}, te, m, u],
|
|
1628
|
+
radial: ["", m, u],
|
|
1629
|
+
conic: [te, m, u]
|
|
1630
|
+
}, Xt, Bt]
|
|
1631
|
+
}],
|
|
1632
|
+
/**
|
|
1633
|
+
* Background Color
|
|
1634
|
+
* @see https://tailwindcss.com/docs/background-color
|
|
1635
|
+
*/
|
|
1636
|
+
"bg-color": [{
|
|
1637
|
+
bg: p()
|
|
1638
|
+
}],
|
|
1639
|
+
/**
|
|
1640
|
+
* Gradient Color Stops From Position
|
|
1641
|
+
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1642
|
+
*/
|
|
1643
|
+
"gradient-from-pos": [{
|
|
1644
|
+
from: h()
|
|
1645
|
+
}],
|
|
1646
|
+
/**
|
|
1647
|
+
* Gradient Color Stops Via Position
|
|
1648
|
+
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1649
|
+
*/
|
|
1650
|
+
"gradient-via-pos": [{
|
|
1651
|
+
via: h()
|
|
1652
|
+
}],
|
|
1653
|
+
/**
|
|
1654
|
+
* Gradient Color Stops To Position
|
|
1655
|
+
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1656
|
+
*/
|
|
1657
|
+
"gradient-to-pos": [{
|
|
1658
|
+
to: h()
|
|
1659
|
+
}],
|
|
1660
|
+
/**
|
|
1661
|
+
* Gradient Color Stops From
|
|
1662
|
+
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1663
|
+
*/
|
|
1664
|
+
"gradient-from": [{
|
|
1665
|
+
from: p()
|
|
1666
|
+
}],
|
|
1667
|
+
/**
|
|
1668
|
+
* Gradient Color Stops Via
|
|
1669
|
+
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1670
|
+
*/
|
|
1671
|
+
"gradient-via": [{
|
|
1672
|
+
via: p()
|
|
1673
|
+
}],
|
|
1674
|
+
/**
|
|
1675
|
+
* Gradient Color Stops To
|
|
1676
|
+
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1677
|
+
*/
|
|
1678
|
+
"gradient-to": [{
|
|
1679
|
+
to: p()
|
|
1680
|
+
}],
|
|
1681
|
+
// ---------------
|
|
1682
|
+
// --- Borders ---
|
|
1683
|
+
// ---------------
|
|
1684
|
+
/**
|
|
1685
|
+
* Border Radius
|
|
1686
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
1687
|
+
*/
|
|
1688
|
+
rounded: [{
|
|
1689
|
+
rounded: x()
|
|
1690
|
+
}],
|
|
1691
|
+
/**
|
|
1692
|
+
* Border Radius Start
|
|
1693
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
1694
|
+
*/
|
|
1695
|
+
"rounded-s": [{
|
|
1696
|
+
"rounded-s": x()
|
|
1697
|
+
}],
|
|
1698
|
+
/**
|
|
1699
|
+
* Border Radius End
|
|
1700
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
1701
|
+
*/
|
|
1702
|
+
"rounded-e": [{
|
|
1703
|
+
"rounded-e": x()
|
|
1704
|
+
}],
|
|
1705
|
+
/**
|
|
1706
|
+
* Border Radius Top
|
|
1707
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
1708
|
+
*/
|
|
1709
|
+
"rounded-t": [{
|
|
1710
|
+
"rounded-t": x()
|
|
1711
|
+
}],
|
|
1712
|
+
/**
|
|
1713
|
+
* Border Radius Right
|
|
1714
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
1715
|
+
*/
|
|
1716
|
+
"rounded-r": [{
|
|
1717
|
+
"rounded-r": x()
|
|
1718
|
+
}],
|
|
1719
|
+
/**
|
|
1720
|
+
* Border Radius Bottom
|
|
1721
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
1722
|
+
*/
|
|
1723
|
+
"rounded-b": [{
|
|
1724
|
+
"rounded-b": x()
|
|
1725
|
+
}],
|
|
1726
|
+
/**
|
|
1727
|
+
* Border Radius Left
|
|
1728
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
1729
|
+
*/
|
|
1730
|
+
"rounded-l": [{
|
|
1731
|
+
"rounded-l": x()
|
|
1732
|
+
}],
|
|
1733
|
+
/**
|
|
1734
|
+
* Border Radius Start Start
|
|
1735
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
1736
|
+
*/
|
|
1737
|
+
"rounded-ss": [{
|
|
1738
|
+
"rounded-ss": x()
|
|
1739
|
+
}],
|
|
1740
|
+
/**
|
|
1741
|
+
* Border Radius Start End
|
|
1742
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
1743
|
+
*/
|
|
1744
|
+
"rounded-se": [{
|
|
1745
|
+
"rounded-se": x()
|
|
1746
|
+
}],
|
|
1747
|
+
/**
|
|
1748
|
+
* Border Radius End End
|
|
1749
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
1750
|
+
*/
|
|
1751
|
+
"rounded-ee": [{
|
|
1752
|
+
"rounded-ee": x()
|
|
1753
|
+
}],
|
|
1754
|
+
/**
|
|
1755
|
+
* Border Radius End Start
|
|
1756
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
1757
|
+
*/
|
|
1758
|
+
"rounded-es": [{
|
|
1759
|
+
"rounded-es": x()
|
|
1760
|
+
}],
|
|
1761
|
+
/**
|
|
1762
|
+
* Border Radius Top Left
|
|
1763
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
1764
|
+
*/
|
|
1765
|
+
"rounded-tl": [{
|
|
1766
|
+
"rounded-tl": x()
|
|
1767
|
+
}],
|
|
1768
|
+
/**
|
|
1769
|
+
* Border Radius Top Right
|
|
1770
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
1771
|
+
*/
|
|
1772
|
+
"rounded-tr": [{
|
|
1773
|
+
"rounded-tr": x()
|
|
1774
|
+
}],
|
|
1775
|
+
/**
|
|
1776
|
+
* Border Radius Bottom Right
|
|
1777
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
1778
|
+
*/
|
|
1779
|
+
"rounded-br": [{
|
|
1780
|
+
"rounded-br": x()
|
|
1781
|
+
}],
|
|
1782
|
+
/**
|
|
1783
|
+
* Border Radius Bottom Left
|
|
1784
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
1785
|
+
*/
|
|
1786
|
+
"rounded-bl": [{
|
|
1787
|
+
"rounded-bl": x()
|
|
1788
|
+
}],
|
|
1789
|
+
/**
|
|
1790
|
+
* Border Width
|
|
1791
|
+
* @see https://tailwindcss.com/docs/border-width
|
|
1792
|
+
*/
|
|
1793
|
+
"border-w": [{
|
|
1794
|
+
border: g()
|
|
1795
|
+
}],
|
|
1796
|
+
/**
|
|
1797
|
+
* Border Width X
|
|
1798
|
+
* @see https://tailwindcss.com/docs/border-width
|
|
1799
|
+
*/
|
|
1800
|
+
"border-w-x": [{
|
|
1801
|
+
"border-x": g()
|
|
1802
|
+
}],
|
|
1803
|
+
/**
|
|
1804
|
+
* Border Width Y
|
|
1805
|
+
* @see https://tailwindcss.com/docs/border-width
|
|
1806
|
+
*/
|
|
1807
|
+
"border-w-y": [{
|
|
1808
|
+
"border-y": g()
|
|
1809
|
+
}],
|
|
1810
|
+
/**
|
|
1811
|
+
* Border Width Start
|
|
1812
|
+
* @see https://tailwindcss.com/docs/border-width
|
|
1813
|
+
*/
|
|
1814
|
+
"border-w-s": [{
|
|
1815
|
+
"border-s": g()
|
|
1816
|
+
}],
|
|
1817
|
+
/**
|
|
1818
|
+
* Border Width End
|
|
1819
|
+
* @see https://tailwindcss.com/docs/border-width
|
|
1820
|
+
*/
|
|
1821
|
+
"border-w-e": [{
|
|
1822
|
+
"border-e": g()
|
|
1823
|
+
}],
|
|
1824
|
+
/**
|
|
1825
|
+
* Border Width Top
|
|
1826
|
+
* @see https://tailwindcss.com/docs/border-width
|
|
1827
|
+
*/
|
|
1828
|
+
"border-w-t": [{
|
|
1829
|
+
"border-t": g()
|
|
1830
|
+
}],
|
|
1831
|
+
/**
|
|
1832
|
+
* Border Width Right
|
|
1833
|
+
* @see https://tailwindcss.com/docs/border-width
|
|
1834
|
+
*/
|
|
1835
|
+
"border-w-r": [{
|
|
1836
|
+
"border-r": g()
|
|
1837
|
+
}],
|
|
1838
|
+
/**
|
|
1839
|
+
* Border Width Bottom
|
|
1840
|
+
* @see https://tailwindcss.com/docs/border-width
|
|
1841
|
+
*/
|
|
1842
|
+
"border-w-b": [{
|
|
1843
|
+
"border-b": g()
|
|
1844
|
+
}],
|
|
1845
|
+
/**
|
|
1846
|
+
* Border Width Left
|
|
1847
|
+
* @see https://tailwindcss.com/docs/border-width
|
|
1848
|
+
*/
|
|
1849
|
+
"border-w-l": [{
|
|
1850
|
+
"border-l": g()
|
|
1851
|
+
}],
|
|
1852
|
+
/**
|
|
1853
|
+
* Divide Width X
|
|
1854
|
+
* @see https://tailwindcss.com/docs/border-width#between-children
|
|
1855
|
+
*/
|
|
1856
|
+
"divide-x": [{
|
|
1857
|
+
"divide-x": g()
|
|
1858
|
+
}],
|
|
1859
|
+
/**
|
|
1860
|
+
* Divide Width X Reverse
|
|
1861
|
+
* @see https://tailwindcss.com/docs/border-width#between-children
|
|
1862
|
+
*/
|
|
1863
|
+
"divide-x-reverse": ["divide-x-reverse"],
|
|
1864
|
+
/**
|
|
1865
|
+
* Divide Width Y
|
|
1866
|
+
* @see https://tailwindcss.com/docs/border-width#between-children
|
|
1867
|
+
*/
|
|
1868
|
+
"divide-y": [{
|
|
1869
|
+
"divide-y": g()
|
|
1870
|
+
}],
|
|
1871
|
+
/**
|
|
1872
|
+
* Divide Width Y Reverse
|
|
1873
|
+
* @see https://tailwindcss.com/docs/border-width#between-children
|
|
1874
|
+
*/
|
|
1875
|
+
"divide-y-reverse": ["divide-y-reverse"],
|
|
1876
|
+
/**
|
|
1877
|
+
* Border Style
|
|
1878
|
+
* @see https://tailwindcss.com/docs/border-style
|
|
1879
|
+
*/
|
|
1880
|
+
"border-style": [{
|
|
1881
|
+
border: [...q(), "hidden", "none"]
|
|
1882
|
+
}],
|
|
1883
|
+
/**
|
|
1884
|
+
* Divide Style
|
|
1885
|
+
* @see https://tailwindcss.com/docs/border-style#setting-the-divider-style
|
|
1886
|
+
*/
|
|
1887
|
+
"divide-style": [{
|
|
1888
|
+
divide: [...q(), "hidden", "none"]
|
|
1889
|
+
}],
|
|
1890
|
+
/**
|
|
1891
|
+
* Border Color
|
|
1892
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
1893
|
+
*/
|
|
1894
|
+
"border-color": [{
|
|
1895
|
+
border: p()
|
|
1896
|
+
}],
|
|
1897
|
+
/**
|
|
1898
|
+
* Border Color X
|
|
1899
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
1900
|
+
*/
|
|
1901
|
+
"border-color-x": [{
|
|
1902
|
+
"border-x": p()
|
|
1903
|
+
}],
|
|
1904
|
+
/**
|
|
1905
|
+
* Border Color Y
|
|
1906
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
1907
|
+
*/
|
|
1908
|
+
"border-color-y": [{
|
|
1909
|
+
"border-y": p()
|
|
1910
|
+
}],
|
|
1911
|
+
/**
|
|
1912
|
+
* Border Color S
|
|
1913
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
1914
|
+
*/
|
|
1915
|
+
"border-color-s": [{
|
|
1916
|
+
"border-s": p()
|
|
1917
|
+
}],
|
|
1918
|
+
/**
|
|
1919
|
+
* Border Color E
|
|
1920
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
1921
|
+
*/
|
|
1922
|
+
"border-color-e": [{
|
|
1923
|
+
"border-e": p()
|
|
1924
|
+
}],
|
|
1925
|
+
/**
|
|
1926
|
+
* Border Color Top
|
|
1927
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
1928
|
+
*/
|
|
1929
|
+
"border-color-t": [{
|
|
1930
|
+
"border-t": p()
|
|
1931
|
+
}],
|
|
1932
|
+
/**
|
|
1933
|
+
* Border Color Right
|
|
1934
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
1935
|
+
*/
|
|
1936
|
+
"border-color-r": [{
|
|
1937
|
+
"border-r": p()
|
|
1938
|
+
}],
|
|
1939
|
+
/**
|
|
1940
|
+
* Border Color Bottom
|
|
1941
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
1942
|
+
*/
|
|
1943
|
+
"border-color-b": [{
|
|
1944
|
+
"border-b": p()
|
|
1945
|
+
}],
|
|
1946
|
+
/**
|
|
1947
|
+
* Border Color Left
|
|
1948
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
1949
|
+
*/
|
|
1950
|
+
"border-color-l": [{
|
|
1951
|
+
"border-l": p()
|
|
1952
|
+
}],
|
|
1953
|
+
/**
|
|
1954
|
+
* Divide Color
|
|
1955
|
+
* @see https://tailwindcss.com/docs/divide-color
|
|
1956
|
+
*/
|
|
1957
|
+
"divide-color": [{
|
|
1958
|
+
divide: p()
|
|
1959
|
+
}],
|
|
1960
|
+
/**
|
|
1961
|
+
* Outline Style
|
|
1962
|
+
* @see https://tailwindcss.com/docs/outline-style
|
|
1963
|
+
*/
|
|
1964
|
+
"outline-style": [{
|
|
1965
|
+
outline: [...q(), "none", "hidden"]
|
|
1966
|
+
}],
|
|
1967
|
+
/**
|
|
1968
|
+
* Outline Offset
|
|
1969
|
+
* @see https://tailwindcss.com/docs/outline-offset
|
|
1970
|
+
*/
|
|
1971
|
+
"outline-offset": [{
|
|
1972
|
+
"outline-offset": [v, m, u]
|
|
1973
|
+
}],
|
|
1974
|
+
/**
|
|
1975
|
+
* Outline Width
|
|
1976
|
+
* @see https://tailwindcss.com/docs/outline-width
|
|
1977
|
+
*/
|
|
1978
|
+
"outline-w": [{
|
|
1979
|
+
outline: ["", v, pe, ae]
|
|
1980
|
+
}],
|
|
1981
|
+
/**
|
|
1982
|
+
* Outline Color
|
|
1983
|
+
* @see https://tailwindcss.com/docs/outline-color
|
|
1984
|
+
*/
|
|
1985
|
+
"outline-color": [{
|
|
1986
|
+
outline: p()
|
|
1987
|
+
}],
|
|
1988
|
+
// ---------------
|
|
1989
|
+
// --- Effects ---
|
|
1990
|
+
// ---------------
|
|
1991
|
+
/**
|
|
1992
|
+
* Box Shadow
|
|
1993
|
+
* @see https://tailwindcss.com/docs/box-shadow
|
|
1994
|
+
*/
|
|
1995
|
+
shadow: [{
|
|
1996
|
+
shadow: [
|
|
1997
|
+
// Deprecated since Tailwind CSS v4.0.0
|
|
1998
|
+
"",
|
|
1999
|
+
"none",
|
|
2000
|
+
C,
|
|
2001
|
+
we,
|
|
2002
|
+
he
|
|
2003
|
+
]
|
|
2004
|
+
}],
|
|
2005
|
+
/**
|
|
2006
|
+
* Box Shadow Color
|
|
2007
|
+
* @see https://tailwindcss.com/docs/box-shadow#setting-the-shadow-color
|
|
2008
|
+
*/
|
|
2009
|
+
"shadow-color": [{
|
|
2010
|
+
shadow: p()
|
|
2011
|
+
}],
|
|
2012
|
+
/**
|
|
2013
|
+
* Inset Box Shadow
|
|
2014
|
+
* @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-shadow
|
|
2015
|
+
*/
|
|
2016
|
+
"inset-shadow": [{
|
|
2017
|
+
"inset-shadow": ["none", A, we, he]
|
|
2018
|
+
}],
|
|
2019
|
+
/**
|
|
2020
|
+
* Inset Box Shadow Color
|
|
2021
|
+
* @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-shadow-color
|
|
2022
|
+
*/
|
|
2023
|
+
"inset-shadow-color": [{
|
|
2024
|
+
"inset-shadow": p()
|
|
2025
|
+
}],
|
|
2026
|
+
/**
|
|
2027
|
+
* Ring Width
|
|
2028
|
+
* @see https://tailwindcss.com/docs/box-shadow#adding-a-ring
|
|
2029
|
+
*/
|
|
2030
|
+
"ring-w": [{
|
|
2031
|
+
ring: g()
|
|
2032
|
+
}],
|
|
2033
|
+
/**
|
|
2034
|
+
* Ring Width Inset
|
|
2035
|
+
* @see https://v3.tailwindcss.com/docs/ring-width#inset-rings
|
|
2036
|
+
* @deprecated since Tailwind CSS v4.0.0
|
|
2037
|
+
* @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
|
|
2038
|
+
*/
|
|
2039
|
+
"ring-w-inset": ["ring-inset"],
|
|
2040
|
+
/**
|
|
2041
|
+
* Ring Color
|
|
2042
|
+
* @see https://tailwindcss.com/docs/box-shadow#setting-the-ring-color
|
|
2043
|
+
*/
|
|
2044
|
+
"ring-color": [{
|
|
2045
|
+
ring: p()
|
|
2046
|
+
}],
|
|
2047
|
+
/**
|
|
2048
|
+
* Ring Offset Width
|
|
2049
|
+
* @see https://v3.tailwindcss.com/docs/ring-offset-width
|
|
2050
|
+
* @deprecated since Tailwind CSS v4.0.0
|
|
2051
|
+
* @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
|
|
2052
|
+
*/
|
|
2053
|
+
"ring-offset-w": [{
|
|
2054
|
+
"ring-offset": [v, ae]
|
|
2055
|
+
}],
|
|
2056
|
+
/**
|
|
2057
|
+
* Ring Offset Color
|
|
2058
|
+
* @see https://v3.tailwindcss.com/docs/ring-offset-color
|
|
2059
|
+
* @deprecated since Tailwind CSS v4.0.0
|
|
2060
|
+
* @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
|
|
2061
|
+
*/
|
|
2062
|
+
"ring-offset-color": [{
|
|
2063
|
+
"ring-offset": p()
|
|
2064
|
+
}],
|
|
2065
|
+
/**
|
|
2066
|
+
* Inset Ring Width
|
|
2067
|
+
* @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-ring
|
|
2068
|
+
*/
|
|
2069
|
+
"inset-ring-w": [{
|
|
2070
|
+
"inset-ring": g()
|
|
2071
|
+
}],
|
|
2072
|
+
/**
|
|
2073
|
+
* Inset Ring Color
|
|
2074
|
+
* @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-ring-color
|
|
2075
|
+
*/
|
|
2076
|
+
"inset-ring-color": [{
|
|
2077
|
+
"inset-ring": p()
|
|
2078
|
+
}],
|
|
2079
|
+
/**
|
|
2080
|
+
* Text Shadow
|
|
2081
|
+
* @see https://tailwindcss.com/docs/text-shadow
|
|
2082
|
+
*/
|
|
2083
|
+
"text-shadow": [{
|
|
2084
|
+
"text-shadow": ["none", R, we, he]
|
|
2085
|
+
}],
|
|
2086
|
+
/**
|
|
2087
|
+
* Text Shadow Color
|
|
2088
|
+
* @see https://tailwindcss.com/docs/text-shadow#setting-the-shadow-color
|
|
2089
|
+
*/
|
|
2090
|
+
"text-shadow-color": [{
|
|
2091
|
+
"text-shadow": p()
|
|
2092
|
+
}],
|
|
2093
|
+
/**
|
|
2094
|
+
* Opacity
|
|
2095
|
+
* @see https://tailwindcss.com/docs/opacity
|
|
2096
|
+
*/
|
|
2097
|
+
opacity: [{
|
|
2098
|
+
opacity: [v, m, u]
|
|
2099
|
+
}],
|
|
2100
|
+
/**
|
|
2101
|
+
* Mix Blend Mode
|
|
2102
|
+
* @see https://tailwindcss.com/docs/mix-blend-mode
|
|
2103
|
+
*/
|
|
2104
|
+
"mix-blend": [{
|
|
2105
|
+
"mix-blend": [...ee(), "plus-darker", "plus-lighter"]
|
|
2106
|
+
}],
|
|
2107
|
+
/**
|
|
2108
|
+
* Background Blend Mode
|
|
2109
|
+
* @see https://tailwindcss.com/docs/background-blend-mode
|
|
2110
|
+
*/
|
|
2111
|
+
"bg-blend": [{
|
|
2112
|
+
"bg-blend": ee()
|
|
2113
|
+
}],
|
|
2114
|
+
/**
|
|
2115
|
+
* Mask Clip
|
|
2116
|
+
* @see https://tailwindcss.com/docs/mask-clip
|
|
2117
|
+
*/
|
|
2118
|
+
"mask-clip": [{
|
|
2119
|
+
"mask-clip": ["border", "padding", "content", "fill", "stroke", "view"]
|
|
2120
|
+
}, "mask-no-clip"],
|
|
2121
|
+
/**
|
|
2122
|
+
* Mask Composite
|
|
2123
|
+
* @see https://tailwindcss.com/docs/mask-composite
|
|
2124
|
+
*/
|
|
2125
|
+
"mask-composite": [{
|
|
2126
|
+
mask: ["add", "subtract", "intersect", "exclude"]
|
|
2127
|
+
}],
|
|
2128
|
+
/**
|
|
2129
|
+
* Mask Image
|
|
2130
|
+
* @see https://tailwindcss.com/docs/mask-image
|
|
2131
|
+
*/
|
|
2132
|
+
"mask-image-linear-pos": [{
|
|
2133
|
+
"mask-linear": [v]
|
|
2134
|
+
}],
|
|
2135
|
+
"mask-image-linear-from-pos": [{
|
|
2136
|
+
"mask-linear-from": k()
|
|
2137
|
+
}],
|
|
2138
|
+
"mask-image-linear-to-pos": [{
|
|
2139
|
+
"mask-linear-to": k()
|
|
2140
|
+
}],
|
|
2141
|
+
"mask-image-linear-from-color": [{
|
|
2142
|
+
"mask-linear-from": p()
|
|
2143
|
+
}],
|
|
2144
|
+
"mask-image-linear-to-color": [{
|
|
2145
|
+
"mask-linear-to": p()
|
|
2146
|
+
}],
|
|
2147
|
+
"mask-image-t-from-pos": [{
|
|
2148
|
+
"mask-t-from": k()
|
|
2149
|
+
}],
|
|
2150
|
+
"mask-image-t-to-pos": [{
|
|
2151
|
+
"mask-t-to": k()
|
|
2152
|
+
}],
|
|
2153
|
+
"mask-image-t-from-color": [{
|
|
2154
|
+
"mask-t-from": p()
|
|
2155
|
+
}],
|
|
2156
|
+
"mask-image-t-to-color": [{
|
|
2157
|
+
"mask-t-to": p()
|
|
2158
|
+
}],
|
|
2159
|
+
"mask-image-r-from-pos": [{
|
|
2160
|
+
"mask-r-from": k()
|
|
2161
|
+
}],
|
|
2162
|
+
"mask-image-r-to-pos": [{
|
|
2163
|
+
"mask-r-to": k()
|
|
2164
|
+
}],
|
|
2165
|
+
"mask-image-r-from-color": [{
|
|
2166
|
+
"mask-r-from": p()
|
|
2167
|
+
}],
|
|
2168
|
+
"mask-image-r-to-color": [{
|
|
2169
|
+
"mask-r-to": p()
|
|
2170
|
+
}],
|
|
2171
|
+
"mask-image-b-from-pos": [{
|
|
2172
|
+
"mask-b-from": k()
|
|
2173
|
+
}],
|
|
2174
|
+
"mask-image-b-to-pos": [{
|
|
2175
|
+
"mask-b-to": k()
|
|
2176
|
+
}],
|
|
2177
|
+
"mask-image-b-from-color": [{
|
|
2178
|
+
"mask-b-from": p()
|
|
2179
|
+
}],
|
|
2180
|
+
"mask-image-b-to-color": [{
|
|
2181
|
+
"mask-b-to": p()
|
|
2182
|
+
}],
|
|
2183
|
+
"mask-image-l-from-pos": [{
|
|
2184
|
+
"mask-l-from": k()
|
|
2185
|
+
}],
|
|
2186
|
+
"mask-image-l-to-pos": [{
|
|
2187
|
+
"mask-l-to": k()
|
|
2188
|
+
}],
|
|
2189
|
+
"mask-image-l-from-color": [{
|
|
2190
|
+
"mask-l-from": p()
|
|
2191
|
+
}],
|
|
2192
|
+
"mask-image-l-to-color": [{
|
|
2193
|
+
"mask-l-to": p()
|
|
2194
|
+
}],
|
|
2195
|
+
"mask-image-x-from-pos": [{
|
|
2196
|
+
"mask-x-from": k()
|
|
2197
|
+
}],
|
|
2198
|
+
"mask-image-x-to-pos": [{
|
|
2199
|
+
"mask-x-to": k()
|
|
2200
|
+
}],
|
|
2201
|
+
"mask-image-x-from-color": [{
|
|
2202
|
+
"mask-x-from": p()
|
|
2203
|
+
}],
|
|
2204
|
+
"mask-image-x-to-color": [{
|
|
2205
|
+
"mask-x-to": p()
|
|
2206
|
+
}],
|
|
2207
|
+
"mask-image-y-from-pos": [{
|
|
2208
|
+
"mask-y-from": k()
|
|
2209
|
+
}],
|
|
2210
|
+
"mask-image-y-to-pos": [{
|
|
2211
|
+
"mask-y-to": k()
|
|
2212
|
+
}],
|
|
2213
|
+
"mask-image-y-from-color": [{
|
|
2214
|
+
"mask-y-from": p()
|
|
2215
|
+
}],
|
|
2216
|
+
"mask-image-y-to-color": [{
|
|
2217
|
+
"mask-y-to": p()
|
|
2218
|
+
}],
|
|
2219
|
+
"mask-image-radial": [{
|
|
2220
|
+
"mask-radial": [m, u]
|
|
2221
|
+
}],
|
|
2222
|
+
"mask-image-radial-from-pos": [{
|
|
2223
|
+
"mask-radial-from": k()
|
|
2224
|
+
}],
|
|
2225
|
+
"mask-image-radial-to-pos": [{
|
|
2226
|
+
"mask-radial-to": k()
|
|
2227
|
+
}],
|
|
2228
|
+
"mask-image-radial-from-color": [{
|
|
2229
|
+
"mask-radial-from": p()
|
|
2230
|
+
}],
|
|
2231
|
+
"mask-image-radial-to-color": [{
|
|
2232
|
+
"mask-radial-to": p()
|
|
2233
|
+
}],
|
|
2234
|
+
"mask-image-radial-shape": [{
|
|
2235
|
+
"mask-radial": ["circle", "ellipse"]
|
|
2236
|
+
}],
|
|
2237
|
+
"mask-image-radial-size": [{
|
|
2238
|
+
"mask-radial": [{
|
|
2239
|
+
closest: ["side", "corner"],
|
|
2240
|
+
farthest: ["side", "corner"]
|
|
2241
|
+
}]
|
|
2242
|
+
}],
|
|
2243
|
+
"mask-image-radial-pos": [{
|
|
2244
|
+
"mask-radial-at": H()
|
|
2245
|
+
}],
|
|
2246
|
+
"mask-image-conic-pos": [{
|
|
2247
|
+
"mask-conic": [v]
|
|
2248
|
+
}],
|
|
2249
|
+
"mask-image-conic-from-pos": [{
|
|
2250
|
+
"mask-conic-from": k()
|
|
2251
|
+
}],
|
|
2252
|
+
"mask-image-conic-to-pos": [{
|
|
2253
|
+
"mask-conic-to": k()
|
|
2254
|
+
}],
|
|
2255
|
+
"mask-image-conic-from-color": [{
|
|
2256
|
+
"mask-conic-from": p()
|
|
2257
|
+
}],
|
|
2258
|
+
"mask-image-conic-to-color": [{
|
|
2259
|
+
"mask-conic-to": p()
|
|
2260
|
+
}],
|
|
2261
|
+
/**
|
|
2262
|
+
* Mask Mode
|
|
2263
|
+
* @see https://tailwindcss.com/docs/mask-mode
|
|
2264
|
+
*/
|
|
2265
|
+
"mask-mode": [{
|
|
2266
|
+
mask: ["alpha", "luminance", "match"]
|
|
2267
|
+
}],
|
|
2268
|
+
/**
|
|
2269
|
+
* Mask Origin
|
|
2270
|
+
* @see https://tailwindcss.com/docs/mask-origin
|
|
2271
|
+
*/
|
|
2272
|
+
"mask-origin": [{
|
|
2273
|
+
"mask-origin": ["border", "padding", "content", "fill", "stroke", "view"]
|
|
2274
|
+
}],
|
|
2275
|
+
/**
|
|
2276
|
+
* Mask Position
|
|
2277
|
+
* @see https://tailwindcss.com/docs/mask-position
|
|
2278
|
+
*/
|
|
2279
|
+
"mask-position": [{
|
|
2280
|
+
mask: K()
|
|
2281
|
+
}],
|
|
2282
|
+
/**
|
|
2283
|
+
* Mask Repeat
|
|
2284
|
+
* @see https://tailwindcss.com/docs/mask-repeat
|
|
2285
|
+
*/
|
|
2286
|
+
"mask-repeat": [{
|
|
2287
|
+
mask: Z()
|
|
2288
|
+
}],
|
|
2289
|
+
/**
|
|
2290
|
+
* Mask Size
|
|
2291
|
+
* @see https://tailwindcss.com/docs/mask-size
|
|
2292
|
+
*/
|
|
2293
|
+
"mask-size": [{
|
|
2294
|
+
mask: n()
|
|
2295
|
+
}],
|
|
2296
|
+
/**
|
|
2297
|
+
* Mask Type
|
|
2298
|
+
* @see https://tailwindcss.com/docs/mask-type
|
|
2299
|
+
*/
|
|
2300
|
+
"mask-type": [{
|
|
2301
|
+
"mask-type": ["alpha", "luminance"]
|
|
2302
|
+
}],
|
|
2303
|
+
/**
|
|
2304
|
+
* Mask Image
|
|
2305
|
+
* @see https://tailwindcss.com/docs/mask-image
|
|
2306
|
+
*/
|
|
2307
|
+
"mask-image": [{
|
|
2308
|
+
mask: ["none", m, u]
|
|
2309
|
+
}],
|
|
2310
|
+
// ---------------
|
|
2311
|
+
// --- Filters ---
|
|
2312
|
+
// ---------------
|
|
2313
|
+
/**
|
|
2314
|
+
* Filter
|
|
2315
|
+
* @see https://tailwindcss.com/docs/filter
|
|
2316
|
+
*/
|
|
2317
|
+
filter: [{
|
|
2318
|
+
filter: [
|
|
2319
|
+
// Deprecated since Tailwind CSS v3.0.0
|
|
2320
|
+
"",
|
|
2321
|
+
"none",
|
|
2322
|
+
m,
|
|
2323
|
+
u
|
|
2324
|
+
]
|
|
2325
|
+
}],
|
|
2326
|
+
/**
|
|
2327
|
+
* Blur
|
|
2328
|
+
* @see https://tailwindcss.com/docs/blur
|
|
2329
|
+
*/
|
|
2330
|
+
blur: [{
|
|
2331
|
+
blur: T()
|
|
2332
|
+
}],
|
|
2333
|
+
/**
|
|
2334
|
+
* Brightness
|
|
2335
|
+
* @see https://tailwindcss.com/docs/brightness
|
|
2336
|
+
*/
|
|
2337
|
+
brightness: [{
|
|
2338
|
+
brightness: [v, m, u]
|
|
2339
|
+
}],
|
|
2340
|
+
/**
|
|
2341
|
+
* Contrast
|
|
2342
|
+
* @see https://tailwindcss.com/docs/contrast
|
|
2343
|
+
*/
|
|
2344
|
+
contrast: [{
|
|
2345
|
+
contrast: [v, m, u]
|
|
2346
|
+
}],
|
|
2347
|
+
/**
|
|
2348
|
+
* Drop Shadow
|
|
2349
|
+
* @see https://tailwindcss.com/docs/drop-shadow
|
|
2350
|
+
*/
|
|
2351
|
+
"drop-shadow": [{
|
|
2352
|
+
"drop-shadow": [
|
|
2353
|
+
// Deprecated since Tailwind CSS v4.0.0
|
|
2354
|
+
"",
|
|
2355
|
+
"none",
|
|
2356
|
+
S,
|
|
2357
|
+
we,
|
|
2358
|
+
he
|
|
2359
|
+
]
|
|
2360
|
+
}],
|
|
2361
|
+
/**
|
|
2362
|
+
* Drop Shadow Color
|
|
2363
|
+
* @see https://tailwindcss.com/docs/filter-drop-shadow#setting-the-shadow-color
|
|
2364
|
+
*/
|
|
2365
|
+
"drop-shadow-color": [{
|
|
2366
|
+
"drop-shadow": p()
|
|
2367
|
+
}],
|
|
2368
|
+
/**
|
|
2369
|
+
* Grayscale
|
|
2370
|
+
* @see https://tailwindcss.com/docs/grayscale
|
|
2371
|
+
*/
|
|
2372
|
+
grayscale: [{
|
|
2373
|
+
grayscale: ["", v, m, u]
|
|
2374
|
+
}],
|
|
2375
|
+
/**
|
|
2376
|
+
* Hue Rotate
|
|
2377
|
+
* @see https://tailwindcss.com/docs/hue-rotate
|
|
2378
|
+
*/
|
|
2379
|
+
"hue-rotate": [{
|
|
2380
|
+
"hue-rotate": [v, m, u]
|
|
2381
|
+
}],
|
|
2382
|
+
/**
|
|
2383
|
+
* Invert
|
|
2384
|
+
* @see https://tailwindcss.com/docs/invert
|
|
2385
|
+
*/
|
|
2386
|
+
invert: [{
|
|
2387
|
+
invert: ["", v, m, u]
|
|
2388
|
+
}],
|
|
2389
|
+
/**
|
|
2390
|
+
* Saturate
|
|
2391
|
+
* @see https://tailwindcss.com/docs/saturate
|
|
2392
|
+
*/
|
|
2393
|
+
saturate: [{
|
|
2394
|
+
saturate: [v, m, u]
|
|
2395
|
+
}],
|
|
2396
|
+
/**
|
|
2397
|
+
* Sepia
|
|
2398
|
+
* @see https://tailwindcss.com/docs/sepia
|
|
2399
|
+
*/
|
|
2400
|
+
sepia: [{
|
|
2401
|
+
sepia: ["", v, m, u]
|
|
2402
|
+
}],
|
|
2403
|
+
/**
|
|
2404
|
+
* Backdrop Filter
|
|
2405
|
+
* @see https://tailwindcss.com/docs/backdrop-filter
|
|
2406
|
+
*/
|
|
2407
|
+
"backdrop-filter": [{
|
|
2408
|
+
"backdrop-filter": [
|
|
2409
|
+
// Deprecated since Tailwind CSS v3.0.0
|
|
2410
|
+
"",
|
|
2411
|
+
"none",
|
|
2412
|
+
m,
|
|
2413
|
+
u
|
|
2414
|
+
]
|
|
2415
|
+
}],
|
|
2416
|
+
/**
|
|
2417
|
+
* Backdrop Blur
|
|
2418
|
+
* @see https://tailwindcss.com/docs/backdrop-blur
|
|
2419
|
+
*/
|
|
2420
|
+
"backdrop-blur": [{
|
|
2421
|
+
"backdrop-blur": T()
|
|
2422
|
+
}],
|
|
2423
|
+
/**
|
|
2424
|
+
* Backdrop Brightness
|
|
2425
|
+
* @see https://tailwindcss.com/docs/backdrop-brightness
|
|
2426
|
+
*/
|
|
2427
|
+
"backdrop-brightness": [{
|
|
2428
|
+
"backdrop-brightness": [v, m, u]
|
|
2429
|
+
}],
|
|
2430
|
+
/**
|
|
2431
|
+
* Backdrop Contrast
|
|
2432
|
+
* @see https://tailwindcss.com/docs/backdrop-contrast
|
|
2433
|
+
*/
|
|
2434
|
+
"backdrop-contrast": [{
|
|
2435
|
+
"backdrop-contrast": [v, m, u]
|
|
2436
|
+
}],
|
|
2437
|
+
/**
|
|
2438
|
+
* Backdrop Grayscale
|
|
2439
|
+
* @see https://tailwindcss.com/docs/backdrop-grayscale
|
|
2440
|
+
*/
|
|
2441
|
+
"backdrop-grayscale": [{
|
|
2442
|
+
"backdrop-grayscale": ["", v, m, u]
|
|
2443
|
+
}],
|
|
2444
|
+
/**
|
|
2445
|
+
* Backdrop Hue Rotate
|
|
2446
|
+
* @see https://tailwindcss.com/docs/backdrop-hue-rotate
|
|
2447
|
+
*/
|
|
2448
|
+
"backdrop-hue-rotate": [{
|
|
2449
|
+
"backdrop-hue-rotate": [v, m, u]
|
|
2450
|
+
}],
|
|
2451
|
+
/**
|
|
2452
|
+
* Backdrop Invert
|
|
2453
|
+
* @see https://tailwindcss.com/docs/backdrop-invert
|
|
2454
|
+
*/
|
|
2455
|
+
"backdrop-invert": [{
|
|
2456
|
+
"backdrop-invert": ["", v, m, u]
|
|
2457
|
+
}],
|
|
2458
|
+
/**
|
|
2459
|
+
* Backdrop Opacity
|
|
2460
|
+
* @see https://tailwindcss.com/docs/backdrop-opacity
|
|
2461
|
+
*/
|
|
2462
|
+
"backdrop-opacity": [{
|
|
2463
|
+
"backdrop-opacity": [v, m, u]
|
|
2464
|
+
}],
|
|
2465
|
+
/**
|
|
2466
|
+
* Backdrop Saturate
|
|
2467
|
+
* @see https://tailwindcss.com/docs/backdrop-saturate
|
|
2468
|
+
*/
|
|
2469
|
+
"backdrop-saturate": [{
|
|
2470
|
+
"backdrop-saturate": [v, m, u]
|
|
2471
|
+
}],
|
|
2472
|
+
/**
|
|
2473
|
+
* Backdrop Sepia
|
|
2474
|
+
* @see https://tailwindcss.com/docs/backdrop-sepia
|
|
2475
|
+
*/
|
|
2476
|
+
"backdrop-sepia": [{
|
|
2477
|
+
"backdrop-sepia": ["", v, m, u]
|
|
2478
|
+
}],
|
|
2479
|
+
// --------------
|
|
2480
|
+
// --- Tables ---
|
|
2481
|
+
// --------------
|
|
2482
|
+
/**
|
|
2483
|
+
* Border Collapse
|
|
2484
|
+
* @see https://tailwindcss.com/docs/border-collapse
|
|
2485
|
+
*/
|
|
2486
|
+
"border-collapse": [{
|
|
2487
|
+
border: ["collapse", "separate"]
|
|
2488
|
+
}],
|
|
2489
|
+
/**
|
|
2490
|
+
* Border Spacing
|
|
2491
|
+
* @see https://tailwindcss.com/docs/border-spacing
|
|
2492
|
+
*/
|
|
2493
|
+
"border-spacing": [{
|
|
2494
|
+
"border-spacing": c()
|
|
2495
|
+
}],
|
|
2496
|
+
/**
|
|
2497
|
+
* Border Spacing X
|
|
2498
|
+
* @see https://tailwindcss.com/docs/border-spacing
|
|
2499
|
+
*/
|
|
2500
|
+
"border-spacing-x": [{
|
|
2501
|
+
"border-spacing-x": c()
|
|
2502
|
+
}],
|
|
2503
|
+
/**
|
|
2504
|
+
* Border Spacing Y
|
|
2505
|
+
* @see https://tailwindcss.com/docs/border-spacing
|
|
2506
|
+
*/
|
|
2507
|
+
"border-spacing-y": [{
|
|
2508
|
+
"border-spacing-y": c()
|
|
2509
|
+
}],
|
|
2510
|
+
/**
|
|
2511
|
+
* Table Layout
|
|
2512
|
+
* @see https://tailwindcss.com/docs/table-layout
|
|
2513
|
+
*/
|
|
2514
|
+
"table-layout": [{
|
|
2515
|
+
table: ["auto", "fixed"]
|
|
2516
|
+
}],
|
|
2517
|
+
/**
|
|
2518
|
+
* Caption Side
|
|
2519
|
+
* @see https://tailwindcss.com/docs/caption-side
|
|
2520
|
+
*/
|
|
2521
|
+
caption: [{
|
|
2522
|
+
caption: ["top", "bottom"]
|
|
2523
|
+
}],
|
|
2524
|
+
// ---------------------------------
|
|
2525
|
+
// --- Transitions and Animation ---
|
|
2526
|
+
// ---------------------------------
|
|
2527
|
+
/**
|
|
2528
|
+
* Transition Property
|
|
2529
|
+
* @see https://tailwindcss.com/docs/transition-property
|
|
2530
|
+
*/
|
|
2531
|
+
transition: [{
|
|
2532
|
+
transition: ["", "all", "colors", "opacity", "shadow", "transform", "none", m, u]
|
|
2533
|
+
}],
|
|
2534
|
+
/**
|
|
2535
|
+
* Transition Behavior
|
|
2536
|
+
* @see https://tailwindcss.com/docs/transition-behavior
|
|
2537
|
+
*/
|
|
2538
|
+
"transition-behavior": [{
|
|
2539
|
+
transition: ["normal", "discrete"]
|
|
2540
|
+
}],
|
|
2541
|
+
/**
|
|
2542
|
+
* Transition Duration
|
|
2543
|
+
* @see https://tailwindcss.com/docs/transition-duration
|
|
2544
|
+
*/
|
|
2545
|
+
duration: [{
|
|
2546
|
+
duration: [v, "initial", m, u]
|
|
2547
|
+
}],
|
|
2548
|
+
/**
|
|
2549
|
+
* Transition Timing Function
|
|
2550
|
+
* @see https://tailwindcss.com/docs/transition-timing-function
|
|
2551
|
+
*/
|
|
2552
|
+
ease: [{
|
|
2553
|
+
ease: ["linear", "initial", D, m, u]
|
|
2554
|
+
}],
|
|
2555
|
+
/**
|
|
2556
|
+
* Transition Delay
|
|
2557
|
+
* @see https://tailwindcss.com/docs/transition-delay
|
|
2558
|
+
*/
|
|
2559
|
+
delay: [{
|
|
2560
|
+
delay: [v, m, u]
|
|
2561
|
+
}],
|
|
2562
|
+
/**
|
|
2563
|
+
* Animation
|
|
2564
|
+
* @see https://tailwindcss.com/docs/animation
|
|
2565
|
+
*/
|
|
2566
|
+
animate: [{
|
|
2567
|
+
animate: ["none", F, m, u]
|
|
2568
|
+
}],
|
|
2569
|
+
// ------------------
|
|
2570
|
+
// --- Transforms ---
|
|
2571
|
+
// ------------------
|
|
2572
|
+
/**
|
|
2573
|
+
* Backface Visibility
|
|
2574
|
+
* @see https://tailwindcss.com/docs/backface-visibility
|
|
2575
|
+
*/
|
|
2576
|
+
backface: [{
|
|
2577
|
+
backface: ["hidden", "visible"]
|
|
2578
|
+
}],
|
|
2579
|
+
/**
|
|
2580
|
+
* Perspective
|
|
2581
|
+
* @see https://tailwindcss.com/docs/perspective
|
|
2582
|
+
*/
|
|
2583
|
+
perspective: [{
|
|
2584
|
+
perspective: [y, m, u]
|
|
2585
|
+
}],
|
|
2586
|
+
/**
|
|
2587
|
+
* Perspective Origin
|
|
2588
|
+
* @see https://tailwindcss.com/docs/perspective-origin
|
|
2589
|
+
*/
|
|
2590
|
+
"perspective-origin": [{
|
|
2591
|
+
"perspective-origin": W()
|
|
2592
|
+
}],
|
|
2593
|
+
/**
|
|
2594
|
+
* Rotate
|
|
2595
|
+
* @see https://tailwindcss.com/docs/rotate
|
|
2596
|
+
*/
|
|
2597
|
+
rotate: [{
|
|
2598
|
+
rotate: E()
|
|
2599
|
+
}],
|
|
2600
|
+
/**
|
|
2601
|
+
* Rotate X
|
|
2602
|
+
* @see https://tailwindcss.com/docs/rotate
|
|
2603
|
+
*/
|
|
2604
|
+
"rotate-x": [{
|
|
2605
|
+
"rotate-x": E()
|
|
2606
|
+
}],
|
|
2607
|
+
/**
|
|
2608
|
+
* Rotate Y
|
|
2609
|
+
* @see https://tailwindcss.com/docs/rotate
|
|
2610
|
+
*/
|
|
2611
|
+
"rotate-y": [{
|
|
2612
|
+
"rotate-y": E()
|
|
2613
|
+
}],
|
|
2614
|
+
/**
|
|
2615
|
+
* Rotate Z
|
|
2616
|
+
* @see https://tailwindcss.com/docs/rotate
|
|
2617
|
+
*/
|
|
2618
|
+
"rotate-z": [{
|
|
2619
|
+
"rotate-z": E()
|
|
2620
|
+
}],
|
|
2621
|
+
/**
|
|
2622
|
+
* Scale
|
|
2623
|
+
* @see https://tailwindcss.com/docs/scale
|
|
2624
|
+
*/
|
|
2625
|
+
scale: [{
|
|
2626
|
+
scale: N()
|
|
2627
|
+
}],
|
|
2628
|
+
/**
|
|
2629
|
+
* Scale X
|
|
2630
|
+
* @see https://tailwindcss.com/docs/scale
|
|
2631
|
+
*/
|
|
2632
|
+
"scale-x": [{
|
|
2633
|
+
"scale-x": N()
|
|
2634
|
+
}],
|
|
2635
|
+
/**
|
|
2636
|
+
* Scale Y
|
|
2637
|
+
* @see https://tailwindcss.com/docs/scale
|
|
2638
|
+
*/
|
|
2639
|
+
"scale-y": [{
|
|
2640
|
+
"scale-y": N()
|
|
2641
|
+
}],
|
|
2642
|
+
/**
|
|
2643
|
+
* Scale Z
|
|
2644
|
+
* @see https://tailwindcss.com/docs/scale
|
|
2645
|
+
*/
|
|
2646
|
+
"scale-z": [{
|
|
2647
|
+
"scale-z": N()
|
|
2648
|
+
}],
|
|
2649
|
+
/**
|
|
2650
|
+
* Scale 3D
|
|
2651
|
+
* @see https://tailwindcss.com/docs/scale
|
|
2652
|
+
*/
|
|
2653
|
+
"scale-3d": ["scale-3d"],
|
|
2654
|
+
/**
|
|
2655
|
+
* Skew
|
|
2656
|
+
* @see https://tailwindcss.com/docs/skew
|
|
2657
|
+
*/
|
|
2658
|
+
skew: [{
|
|
2659
|
+
skew: ie()
|
|
2660
|
+
}],
|
|
2661
|
+
/**
|
|
2662
|
+
* Skew X
|
|
2663
|
+
* @see https://tailwindcss.com/docs/skew
|
|
2664
|
+
*/
|
|
2665
|
+
"skew-x": [{
|
|
2666
|
+
"skew-x": ie()
|
|
2667
|
+
}],
|
|
2668
|
+
/**
|
|
2669
|
+
* Skew Y
|
|
2670
|
+
* @see https://tailwindcss.com/docs/skew
|
|
2671
|
+
*/
|
|
2672
|
+
"skew-y": [{
|
|
2673
|
+
"skew-y": ie()
|
|
2674
|
+
}],
|
|
2675
|
+
/**
|
|
2676
|
+
* Transform
|
|
2677
|
+
* @see https://tailwindcss.com/docs/transform
|
|
2678
|
+
*/
|
|
2679
|
+
transform: [{
|
|
2680
|
+
transform: [m, u, "", "none", "gpu", "cpu"]
|
|
2681
|
+
}],
|
|
2682
|
+
/**
|
|
2683
|
+
* Transform Origin
|
|
2684
|
+
* @see https://tailwindcss.com/docs/transform-origin
|
|
2685
|
+
*/
|
|
2686
|
+
"transform-origin": [{
|
|
2687
|
+
origin: W()
|
|
2688
|
+
}],
|
|
2689
|
+
/**
|
|
2690
|
+
* Transform Style
|
|
2691
|
+
* @see https://tailwindcss.com/docs/transform-style
|
|
2692
|
+
*/
|
|
2693
|
+
"transform-style": [{
|
|
2694
|
+
transform: ["3d", "flat"]
|
|
2695
|
+
}],
|
|
2696
|
+
/**
|
|
2697
|
+
* Translate
|
|
2698
|
+
* @see https://tailwindcss.com/docs/translate
|
|
2699
|
+
*/
|
|
2700
|
+
translate: [{
|
|
2701
|
+
translate: le()
|
|
2702
|
+
}],
|
|
2703
|
+
/**
|
|
2704
|
+
* Translate X
|
|
2705
|
+
* @see https://tailwindcss.com/docs/translate
|
|
2706
|
+
*/
|
|
2707
|
+
"translate-x": [{
|
|
2708
|
+
"translate-x": le()
|
|
2709
|
+
}],
|
|
2710
|
+
/**
|
|
2711
|
+
* Translate Y
|
|
2712
|
+
* @see https://tailwindcss.com/docs/translate
|
|
2713
|
+
*/
|
|
2714
|
+
"translate-y": [{
|
|
2715
|
+
"translate-y": le()
|
|
2716
|
+
}],
|
|
2717
|
+
/**
|
|
2718
|
+
* Translate Z
|
|
2719
|
+
* @see https://tailwindcss.com/docs/translate
|
|
2720
|
+
*/
|
|
2721
|
+
"translate-z": [{
|
|
2722
|
+
"translate-z": le()
|
|
2723
|
+
}],
|
|
2724
|
+
/**
|
|
2725
|
+
* Translate None
|
|
2726
|
+
* @see https://tailwindcss.com/docs/translate
|
|
2727
|
+
*/
|
|
2728
|
+
"translate-none": ["translate-none"],
|
|
2729
|
+
// ---------------------
|
|
2730
|
+
// --- Interactivity ---
|
|
2731
|
+
// ---------------------
|
|
2732
|
+
/**
|
|
2733
|
+
* Accent Color
|
|
2734
|
+
* @see https://tailwindcss.com/docs/accent-color
|
|
2735
|
+
*/
|
|
2736
|
+
accent: [{
|
|
2737
|
+
accent: p()
|
|
2738
|
+
}],
|
|
2739
|
+
/**
|
|
2740
|
+
* Appearance
|
|
2741
|
+
* @see https://tailwindcss.com/docs/appearance
|
|
2742
|
+
*/
|
|
2743
|
+
appearance: [{
|
|
2744
|
+
appearance: ["none", "auto"]
|
|
2745
|
+
}],
|
|
2746
|
+
/**
|
|
2747
|
+
* Caret Color
|
|
2748
|
+
* @see https://tailwindcss.com/docs/just-in-time-mode#caret-color-utilities
|
|
2749
|
+
*/
|
|
2750
|
+
"caret-color": [{
|
|
2751
|
+
caret: p()
|
|
2752
|
+
}],
|
|
2753
|
+
/**
|
|
2754
|
+
* Color Scheme
|
|
2755
|
+
* @see https://tailwindcss.com/docs/color-scheme
|
|
2756
|
+
*/
|
|
2757
|
+
"color-scheme": [{
|
|
2758
|
+
scheme: ["normal", "dark", "light", "light-dark", "only-dark", "only-light"]
|
|
2759
|
+
}],
|
|
2760
|
+
/**
|
|
2761
|
+
* Cursor
|
|
2762
|
+
* @see https://tailwindcss.com/docs/cursor
|
|
2763
|
+
*/
|
|
2764
|
+
cursor: [{
|
|
2765
|
+
cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", m, u]
|
|
2766
|
+
}],
|
|
2767
|
+
/**
|
|
2768
|
+
* Field Sizing
|
|
2769
|
+
* @see https://tailwindcss.com/docs/field-sizing
|
|
2770
|
+
*/
|
|
2771
|
+
"field-sizing": [{
|
|
2772
|
+
"field-sizing": ["fixed", "content"]
|
|
2773
|
+
}],
|
|
2774
|
+
/**
|
|
2775
|
+
* Pointer Events
|
|
2776
|
+
* @see https://tailwindcss.com/docs/pointer-events
|
|
2777
|
+
*/
|
|
2778
|
+
"pointer-events": [{
|
|
2779
|
+
"pointer-events": ["auto", "none"]
|
|
2780
|
+
}],
|
|
2781
|
+
/**
|
|
2782
|
+
* Resize
|
|
2783
|
+
* @see https://tailwindcss.com/docs/resize
|
|
2784
|
+
*/
|
|
2785
|
+
resize: [{
|
|
2786
|
+
resize: ["none", "", "y", "x"]
|
|
2787
|
+
}],
|
|
2788
|
+
/**
|
|
2789
|
+
* Scroll Behavior
|
|
2790
|
+
* @see https://tailwindcss.com/docs/scroll-behavior
|
|
2791
|
+
*/
|
|
2792
|
+
"scroll-behavior": [{
|
|
2793
|
+
scroll: ["auto", "smooth"]
|
|
2794
|
+
}],
|
|
2795
|
+
/**
|
|
2796
|
+
* Scroll Margin
|
|
2797
|
+
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2798
|
+
*/
|
|
2799
|
+
"scroll-m": [{
|
|
2800
|
+
"scroll-m": c()
|
|
2801
|
+
}],
|
|
2802
|
+
/**
|
|
2803
|
+
* Scroll Margin X
|
|
2804
|
+
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2805
|
+
*/
|
|
2806
|
+
"scroll-mx": [{
|
|
2807
|
+
"scroll-mx": c()
|
|
2808
|
+
}],
|
|
2809
|
+
/**
|
|
2810
|
+
* Scroll Margin Y
|
|
2811
|
+
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2812
|
+
*/
|
|
2813
|
+
"scroll-my": [{
|
|
2814
|
+
"scroll-my": c()
|
|
2815
|
+
}],
|
|
2816
|
+
/**
|
|
2817
|
+
* Scroll Margin Start
|
|
2818
|
+
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2819
|
+
*/
|
|
2820
|
+
"scroll-ms": [{
|
|
2821
|
+
"scroll-ms": c()
|
|
2822
|
+
}],
|
|
2823
|
+
/**
|
|
2824
|
+
* Scroll Margin End
|
|
2825
|
+
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2826
|
+
*/
|
|
2827
|
+
"scroll-me": [{
|
|
2828
|
+
"scroll-me": c()
|
|
2829
|
+
}],
|
|
2830
|
+
/**
|
|
2831
|
+
* Scroll Margin Top
|
|
2832
|
+
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2833
|
+
*/
|
|
2834
|
+
"scroll-mt": [{
|
|
2835
|
+
"scroll-mt": c()
|
|
2836
|
+
}],
|
|
2837
|
+
/**
|
|
2838
|
+
* Scroll Margin Right
|
|
2839
|
+
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2840
|
+
*/
|
|
2841
|
+
"scroll-mr": [{
|
|
2842
|
+
"scroll-mr": c()
|
|
2843
|
+
}],
|
|
2844
|
+
/**
|
|
2845
|
+
* Scroll Margin Bottom
|
|
2846
|
+
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2847
|
+
*/
|
|
2848
|
+
"scroll-mb": [{
|
|
2849
|
+
"scroll-mb": c()
|
|
2850
|
+
}],
|
|
2851
|
+
/**
|
|
2852
|
+
* Scroll Margin Left
|
|
2853
|
+
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2854
|
+
*/
|
|
2855
|
+
"scroll-ml": [{
|
|
2856
|
+
"scroll-ml": c()
|
|
2857
|
+
}],
|
|
2858
|
+
/**
|
|
2859
|
+
* Scroll Padding
|
|
2860
|
+
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2861
|
+
*/
|
|
2862
|
+
"scroll-p": [{
|
|
2863
|
+
"scroll-p": c()
|
|
2864
|
+
}],
|
|
2865
|
+
/**
|
|
2866
|
+
* Scroll Padding X
|
|
2867
|
+
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2868
|
+
*/
|
|
2869
|
+
"scroll-px": [{
|
|
2870
|
+
"scroll-px": c()
|
|
2871
|
+
}],
|
|
2872
|
+
/**
|
|
2873
|
+
* Scroll Padding Y
|
|
2874
|
+
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2875
|
+
*/
|
|
2876
|
+
"scroll-py": [{
|
|
2877
|
+
"scroll-py": c()
|
|
2878
|
+
}],
|
|
2879
|
+
/**
|
|
2880
|
+
* Scroll Padding Start
|
|
2881
|
+
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2882
|
+
*/
|
|
2883
|
+
"scroll-ps": [{
|
|
2884
|
+
"scroll-ps": c()
|
|
2885
|
+
}],
|
|
2886
|
+
/**
|
|
2887
|
+
* Scroll Padding End
|
|
2888
|
+
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2889
|
+
*/
|
|
2890
|
+
"scroll-pe": [{
|
|
2891
|
+
"scroll-pe": c()
|
|
2892
|
+
}],
|
|
2893
|
+
/**
|
|
2894
|
+
* Scroll Padding Top
|
|
2895
|
+
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2896
|
+
*/
|
|
2897
|
+
"scroll-pt": [{
|
|
2898
|
+
"scroll-pt": c()
|
|
2899
|
+
}],
|
|
2900
|
+
/**
|
|
2901
|
+
* Scroll Padding Right
|
|
2902
|
+
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2903
|
+
*/
|
|
2904
|
+
"scroll-pr": [{
|
|
2905
|
+
"scroll-pr": c()
|
|
2906
|
+
}],
|
|
2907
|
+
/**
|
|
2908
|
+
* Scroll Padding Bottom
|
|
2909
|
+
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2910
|
+
*/
|
|
2911
|
+
"scroll-pb": [{
|
|
2912
|
+
"scroll-pb": c()
|
|
2913
|
+
}],
|
|
2914
|
+
/**
|
|
2915
|
+
* Scroll Padding Left
|
|
2916
|
+
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2917
|
+
*/
|
|
2918
|
+
"scroll-pl": [{
|
|
2919
|
+
"scroll-pl": c()
|
|
2920
|
+
}],
|
|
2921
|
+
/**
|
|
2922
|
+
* Scroll Snap Align
|
|
2923
|
+
* @see https://tailwindcss.com/docs/scroll-snap-align
|
|
2924
|
+
*/
|
|
2925
|
+
"snap-align": [{
|
|
2926
|
+
snap: ["start", "end", "center", "align-none"]
|
|
2927
|
+
}],
|
|
2928
|
+
/**
|
|
2929
|
+
* Scroll Snap Stop
|
|
2930
|
+
* @see https://tailwindcss.com/docs/scroll-snap-stop
|
|
2931
|
+
*/
|
|
2932
|
+
"snap-stop": [{
|
|
2933
|
+
snap: ["normal", "always"]
|
|
2934
|
+
}],
|
|
2935
|
+
/**
|
|
2936
|
+
* Scroll Snap Type
|
|
2937
|
+
* @see https://tailwindcss.com/docs/scroll-snap-type
|
|
2938
|
+
*/
|
|
2939
|
+
"snap-type": [{
|
|
2940
|
+
snap: ["none", "x", "y", "both"]
|
|
2941
|
+
}],
|
|
2942
|
+
/**
|
|
2943
|
+
* Scroll Snap Type Strictness
|
|
2944
|
+
* @see https://tailwindcss.com/docs/scroll-snap-type
|
|
2945
|
+
*/
|
|
2946
|
+
"snap-strictness": [{
|
|
2947
|
+
snap: ["mandatory", "proximity"]
|
|
2948
|
+
}],
|
|
2949
|
+
/**
|
|
2950
|
+
* Touch Action
|
|
2951
|
+
* @see https://tailwindcss.com/docs/touch-action
|
|
2952
|
+
*/
|
|
2953
|
+
touch: [{
|
|
2954
|
+
touch: ["auto", "none", "manipulation"]
|
|
2955
|
+
}],
|
|
2956
|
+
/**
|
|
2957
|
+
* Touch Action X
|
|
2958
|
+
* @see https://tailwindcss.com/docs/touch-action
|
|
2959
|
+
*/
|
|
2960
|
+
"touch-x": [{
|
|
2961
|
+
"touch-pan": ["x", "left", "right"]
|
|
2962
|
+
}],
|
|
2963
|
+
/**
|
|
2964
|
+
* Touch Action Y
|
|
2965
|
+
* @see https://tailwindcss.com/docs/touch-action
|
|
2966
|
+
*/
|
|
2967
|
+
"touch-y": [{
|
|
2968
|
+
"touch-pan": ["y", "up", "down"]
|
|
2969
|
+
}],
|
|
2970
|
+
/**
|
|
2971
|
+
* Touch Action Pinch Zoom
|
|
2972
|
+
* @see https://tailwindcss.com/docs/touch-action
|
|
2973
|
+
*/
|
|
2974
|
+
"touch-pz": ["touch-pinch-zoom"],
|
|
2975
|
+
/**
|
|
2976
|
+
* User Select
|
|
2977
|
+
* @see https://tailwindcss.com/docs/user-select
|
|
2978
|
+
*/
|
|
2979
|
+
select: [{
|
|
2980
|
+
select: ["none", "text", "all", "auto"]
|
|
2981
|
+
}],
|
|
2982
|
+
/**
|
|
2983
|
+
* Will Change
|
|
2984
|
+
* @see https://tailwindcss.com/docs/will-change
|
|
2985
|
+
*/
|
|
2986
|
+
"will-change": [{
|
|
2987
|
+
"will-change": ["auto", "scroll", "contents", "transform", m, u]
|
|
2988
|
+
}],
|
|
2989
|
+
// -----------
|
|
2990
|
+
// --- SVG ---
|
|
2991
|
+
// -----------
|
|
2992
|
+
/**
|
|
2993
|
+
* Fill
|
|
2994
|
+
* @see https://tailwindcss.com/docs/fill
|
|
2995
|
+
*/
|
|
2996
|
+
fill: [{
|
|
2997
|
+
fill: ["none", ...p()]
|
|
2998
|
+
}],
|
|
2999
|
+
/**
|
|
3000
|
+
* Stroke Width
|
|
3001
|
+
* @see https://tailwindcss.com/docs/stroke-width
|
|
3002
|
+
*/
|
|
3003
|
+
"stroke-w": [{
|
|
3004
|
+
stroke: [v, pe, ae, Te]
|
|
3005
|
+
}],
|
|
3006
|
+
/**
|
|
3007
|
+
* Stroke
|
|
3008
|
+
* @see https://tailwindcss.com/docs/stroke
|
|
3009
|
+
*/
|
|
3010
|
+
stroke: [{
|
|
3011
|
+
stroke: ["none", ...p()]
|
|
3012
|
+
}],
|
|
3013
|
+
// ---------------------
|
|
3014
|
+
// --- Accessibility ---
|
|
3015
|
+
// ---------------------
|
|
3016
|
+
/**
|
|
3017
|
+
* Forced Color Adjust
|
|
3018
|
+
* @see https://tailwindcss.com/docs/forced-color-adjust
|
|
3019
|
+
*/
|
|
3020
|
+
"forced-color-adjust": [{
|
|
3021
|
+
"forced-color-adjust": ["auto", "none"]
|
|
3022
|
+
}]
|
|
3023
|
+
},
|
|
3024
|
+
conflictingClassGroups: {
|
|
3025
|
+
overflow: ["overflow-x", "overflow-y"],
|
|
3026
|
+
overscroll: ["overscroll-x", "overscroll-y"],
|
|
3027
|
+
inset: ["inset-x", "inset-y", "start", "end", "top", "right", "bottom", "left"],
|
|
3028
|
+
"inset-x": ["right", "left"],
|
|
3029
|
+
"inset-y": ["top", "bottom"],
|
|
3030
|
+
flex: ["basis", "grow", "shrink"],
|
|
3031
|
+
gap: ["gap-x", "gap-y"],
|
|
3032
|
+
p: ["px", "py", "ps", "pe", "pt", "pr", "pb", "pl"],
|
|
3033
|
+
px: ["pr", "pl"],
|
|
3034
|
+
py: ["pt", "pb"],
|
|
3035
|
+
m: ["mx", "my", "ms", "me", "mt", "mr", "mb", "ml"],
|
|
3036
|
+
mx: ["mr", "ml"],
|
|
3037
|
+
my: ["mt", "mb"],
|
|
3038
|
+
size: ["w", "h"],
|
|
3039
|
+
"font-size": ["leading"],
|
|
3040
|
+
"fvn-normal": ["fvn-ordinal", "fvn-slashed-zero", "fvn-figure", "fvn-spacing", "fvn-fraction"],
|
|
3041
|
+
"fvn-ordinal": ["fvn-normal"],
|
|
3042
|
+
"fvn-slashed-zero": ["fvn-normal"],
|
|
3043
|
+
"fvn-figure": ["fvn-normal"],
|
|
3044
|
+
"fvn-spacing": ["fvn-normal"],
|
|
3045
|
+
"fvn-fraction": ["fvn-normal"],
|
|
3046
|
+
"line-clamp": ["display", "overflow"],
|
|
3047
|
+
rounded: ["rounded-s", "rounded-e", "rounded-t", "rounded-r", "rounded-b", "rounded-l", "rounded-ss", "rounded-se", "rounded-ee", "rounded-es", "rounded-tl", "rounded-tr", "rounded-br", "rounded-bl"],
|
|
3048
|
+
"rounded-s": ["rounded-ss", "rounded-es"],
|
|
3049
|
+
"rounded-e": ["rounded-se", "rounded-ee"],
|
|
3050
|
+
"rounded-t": ["rounded-tl", "rounded-tr"],
|
|
3051
|
+
"rounded-r": ["rounded-tr", "rounded-br"],
|
|
3052
|
+
"rounded-b": ["rounded-br", "rounded-bl"],
|
|
3053
|
+
"rounded-l": ["rounded-tl", "rounded-bl"],
|
|
3054
|
+
"border-spacing": ["border-spacing-x", "border-spacing-y"],
|
|
3055
|
+
"border-w": ["border-w-x", "border-w-y", "border-w-s", "border-w-e", "border-w-t", "border-w-r", "border-w-b", "border-w-l"],
|
|
3056
|
+
"border-w-x": ["border-w-r", "border-w-l"],
|
|
3057
|
+
"border-w-y": ["border-w-t", "border-w-b"],
|
|
3058
|
+
"border-color": ["border-color-x", "border-color-y", "border-color-s", "border-color-e", "border-color-t", "border-color-r", "border-color-b", "border-color-l"],
|
|
3059
|
+
"border-color-x": ["border-color-r", "border-color-l"],
|
|
3060
|
+
"border-color-y": ["border-color-t", "border-color-b"],
|
|
3061
|
+
translate: ["translate-x", "translate-y", "translate-none"],
|
|
3062
|
+
"translate-none": ["translate", "translate-x", "translate-y", "translate-z"],
|
|
3063
|
+
"scroll-m": ["scroll-mx", "scroll-my", "scroll-ms", "scroll-me", "scroll-mt", "scroll-mr", "scroll-mb", "scroll-ml"],
|
|
3064
|
+
"scroll-mx": ["scroll-mr", "scroll-ml"],
|
|
3065
|
+
"scroll-my": ["scroll-mt", "scroll-mb"],
|
|
3066
|
+
"scroll-p": ["scroll-px", "scroll-py", "scroll-ps", "scroll-pe", "scroll-pt", "scroll-pr", "scroll-pb", "scroll-pl"],
|
|
3067
|
+
"scroll-px": ["scroll-pr", "scroll-pl"],
|
|
3068
|
+
"scroll-py": ["scroll-pt", "scroll-pb"],
|
|
3069
|
+
touch: ["touch-x", "touch-y", "touch-pz"],
|
|
3070
|
+
"touch-x": ["touch"],
|
|
3071
|
+
"touch-y": ["touch"],
|
|
3072
|
+
"touch-pz": ["touch"]
|
|
3073
|
+
},
|
|
3074
|
+
conflictingClassGroupModifiers: {
|
|
3075
|
+
"font-size": ["leading"]
|
|
3076
|
+
},
|
|
3077
|
+
orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
|
|
3078
|
+
};
|
|
3079
|
+
}, er = /* @__PURE__ */ It(Qt), tr = (e, t) => {
|
|
3080
|
+
const [o, r, s] = e.split(":"), a = +o % 12 === 0 ? 12 : +o % 12;
|
|
3081
|
+
switch (t) {
|
|
3082
|
+
case "HH:mm:ss":
|
|
3083
|
+
return `${o}:${r}:${s}`;
|
|
3084
|
+
case "HH:mm":
|
|
3085
|
+
return `${o}:${r}`;
|
|
3086
|
+
case "hh:mm:ss":
|
|
3087
|
+
return `${a}:${r}:${s}`;
|
|
3088
|
+
case "hh:mm":
|
|
3089
|
+
return `${a}:${r}`;
|
|
3090
|
+
}
|
|
3091
|
+
}, G = (...e) => er(mt(e)), _e = (e, t, o) => {
|
|
3092
|
+
if (!e) return "00";
|
|
3093
|
+
if (!isNaN(new Date(e).getTime())) {
|
|
3094
|
+
const r = new Date(e).getHours();
|
|
3095
|
+
return t ? r.toString() : o && o.includes("hh") ? r < 1 ? "1" : `${r % 12}` : r < 10 ? `0${r}` : r.toString();
|
|
3096
|
+
}
|
|
3097
|
+
if (e instanceof Date) {
|
|
3098
|
+
const r = new Date(e).getHours();
|
|
3099
|
+
return r < 10 ? `0${r}` : r.toString();
|
|
3100
|
+
}
|
|
3101
|
+
if (typeof e == "string" && e.includes(":")) {
|
|
3102
|
+
const r = e.split(":")[0];
|
|
3103
|
+
if (r === void 0)
|
|
3104
|
+
return t ? "1" : "00";
|
|
3105
|
+
if (isNaN(parseInt(r)))
|
|
3106
|
+
return "";
|
|
3107
|
+
const s = tr(e, o);
|
|
3108
|
+
let a = r;
|
|
3109
|
+
if (s)
|
|
3110
|
+
return a = s.split(":")[0], a;
|
|
3111
|
+
if (parseInt(a) < 0)
|
|
3112
|
+
return Math.abs(parseInt(a)) < 10 ? `0${Math.abs(parseInt(a))}` : `${Math.abs(parseInt(a))}`;
|
|
3113
|
+
if (t) {
|
|
3114
|
+
let i;
|
|
3115
|
+
return i = `${+a % 12 === 0 ? 12 : +a % 12}`, i;
|
|
3116
|
+
} else
|
|
3117
|
+
return r.length < 2 ? `0${r}` : r;
|
|
3118
|
+
}
|
|
3119
|
+
return t ? "1" : "00";
|
|
3120
|
+
}, Ce = (e) => {
|
|
3121
|
+
if (!e) return "00";
|
|
3122
|
+
if (!isNaN(new Date(e).getTime())) {
|
|
3123
|
+
const t = new Date(e).getMinutes();
|
|
3124
|
+
return t < 10 ? `0${t}` : t.toString();
|
|
3125
|
+
}
|
|
3126
|
+
if (e instanceof Date)
|
|
3127
|
+
return e.getMinutes().toString();
|
|
3128
|
+
if (typeof e == "string" && e.includes(":")) {
|
|
3129
|
+
const t = e.split(":")[1];
|
|
3130
|
+
return t === void 0 ? "00" : isNaN(parseInt(t)) ? "" : Math.abs(parseInt(t)) < 10 ? `0${Math.abs(parseInt(t))}` : `${Math.abs(parseInt(t))}`;
|
|
3131
|
+
}
|
|
3132
|
+
return "00";
|
|
3133
|
+
}, Ee = (e) => {
|
|
3134
|
+
if (!e) return "00";
|
|
3135
|
+
if (!isNaN(new Date(e).getTime())) {
|
|
3136
|
+
const t = new Date(e).getSeconds();
|
|
3137
|
+
return t < 10 ? `0${t}` : t.toString();
|
|
3138
|
+
}
|
|
3139
|
+
if (e instanceof Date)
|
|
3140
|
+
return e.getSeconds().toString();
|
|
3141
|
+
if (typeof e == "string" && e.includes(":")) {
|
|
3142
|
+
const t = e.split(":")[2];
|
|
3143
|
+
return t === void 0 ? "00" : isNaN(parseInt(t)) ? "" : Math.abs(parseInt(t)) < 10 ? `0${Math.abs(parseInt(t))}` : `${Math.abs(parseInt(t))}`;
|
|
3144
|
+
}
|
|
3145
|
+
return "00";
|
|
3146
|
+
}, rr = (e, t) => {
|
|
3147
|
+
switch (t.type) {
|
|
3148
|
+
case "SET_HOURS":
|
|
3149
|
+
return {
|
|
3150
|
+
...e,
|
|
3151
|
+
hours: t.payload
|
|
3152
|
+
};
|
|
3153
|
+
case "SET_MINUTES":
|
|
3154
|
+
return { ...e, minutes: t.payload };
|
|
3155
|
+
case "SET_SECONDS":
|
|
3156
|
+
return { ...e, seconds: t.payload };
|
|
3157
|
+
case "TOGGLE_AM":
|
|
3158
|
+
return { ...e, isAm: t.payload };
|
|
3159
|
+
case "INPUT_TYPE":
|
|
3160
|
+
return { ...e, inputType: t.payload };
|
|
3161
|
+
default:
|
|
3162
|
+
return e;
|
|
3163
|
+
}
|
|
3164
|
+
}, or = ({
|
|
3165
|
+
value: e,
|
|
3166
|
+
onChange: t,
|
|
3167
|
+
hasSeconds: o,
|
|
3168
|
+
hour12: r,
|
|
3169
|
+
maxTime: s,
|
|
3170
|
+
minTime: a,
|
|
3171
|
+
format: i
|
|
3172
|
+
}) => {
|
|
3173
|
+
const [d, l] = at(rr, {
|
|
3174
|
+
isAm: !1,
|
|
3175
|
+
inputType: "hours",
|
|
3176
|
+
hours: _e(e, r, i),
|
|
3177
|
+
minutes: Ce(e),
|
|
3178
|
+
seconds: Ee(e),
|
|
3179
|
+
hour12: r,
|
|
3180
|
+
format: i
|
|
3181
|
+
}), { isAm: w, inputType: C, hours: A, minutes: R, seconds: S } = d, f = xe(null), y = xe(null), P = xe(null), D = `${A}:${R}:${S}`, F = `${_e(
|
|
3182
|
+
e,
|
|
3183
|
+
r,
|
|
3184
|
+
i
|
|
3185
|
+
)}:${Ce(e)}:${Ee(e)}`;
|
|
3186
|
+
ke(() => {
|
|
3187
|
+
e && typeof e == "string" && +e?.split(":")[0] < 12 && r && l({ type: "TOGGLE_AM", payload: !0 });
|
|
3188
|
+
}, []), ke(() => {
|
|
3189
|
+
!e && t && t(D);
|
|
3190
|
+
}, []), ke(() => {
|
|
3191
|
+
if (t) {
|
|
3192
|
+
const _ = F?.split(":")[0], c = F?.split(":")[1], b = F?.split(":")[2];
|
|
3193
|
+
let M = _;
|
|
3194
|
+
!w && r && +_ < 12 && (M = `${+_ + 12}`), t(`${M}:${c}:${b}`);
|
|
3195
|
+
}
|
|
3196
|
+
}, [w]), e && t && F !== D && (l({
|
|
3197
|
+
type: "SET_HOURS",
|
|
3198
|
+
payload: _e(e, r, i)
|
|
3199
|
+
}), l({
|
|
3200
|
+
type: "SET_MINUTES",
|
|
3201
|
+
payload: Ce(e)
|
|
3202
|
+
}), l({
|
|
3203
|
+
type: "SET_SECONDS",
|
|
3204
|
+
payload: Ee(e)
|
|
3205
|
+
}));
|
|
3206
|
+
const O = it(
|
|
3207
|
+
(_, c, b) => {
|
|
3208
|
+
let M;
|
|
3209
|
+
if (t && e || e === "" && _ && t) {
|
|
3210
|
+
if (M = o ? `${_}:${c}:${b}` : `${_}:${c}`, (s || a) && !be(M, s, a))
|
|
3211
|
+
return;
|
|
3212
|
+
t(M);
|
|
3213
|
+
return;
|
|
3214
|
+
} else {
|
|
3215
|
+
let B;
|
|
3216
|
+
if (B = o ? `${_}:${c}:${b}` : `${_}:${c}`, (s || a) && !be(B, s, a))
|
|
3217
|
+
return;
|
|
3218
|
+
l({ type: "SET_HOURS", payload: _ }), l({ type: "SET_MINUTES", payload: c }), l({ type: "SET_SECONDS", payload: b });
|
|
3219
|
+
return;
|
|
3220
|
+
}
|
|
3221
|
+
},
|
|
3222
|
+
[t, e, o]
|
|
3223
|
+
);
|
|
3224
|
+
return {
|
|
3225
|
+
hoursRef: f,
|
|
3226
|
+
minutesRef: y,
|
|
3227
|
+
secondsRef: P,
|
|
3228
|
+
handleHours: (_) => {
|
|
3229
|
+
const { currentTarget: c } = _;
|
|
3230
|
+
if (c.value === "") {
|
|
3231
|
+
O(c.value, R, S);
|
|
3232
|
+
return;
|
|
3233
|
+
}
|
|
3234
|
+
if (c.value && c.valueAsNumber < 24 && c.valueAsNumber >= 0) {
|
|
3235
|
+
const b = c.value.slice(-2);
|
|
3236
|
+
if (t)
|
|
3237
|
+
if (r)
|
|
3238
|
+
if (w) {
|
|
3239
|
+
O(
|
|
3240
|
+
+b % 12 === 0 ? "0" : `${+b}`,
|
|
3241
|
+
R,
|
|
3242
|
+
S
|
|
3243
|
+
);
|
|
3244
|
+
return;
|
|
3245
|
+
} else {
|
|
3246
|
+
O(
|
|
3247
|
+
+b % 12 === 0 ? "0" : `${+b + 12}`,
|
|
3248
|
+
R,
|
|
3249
|
+
S
|
|
3250
|
+
);
|
|
3251
|
+
return;
|
|
3252
|
+
}
|
|
3253
|
+
else {
|
|
3254
|
+
O(
|
|
3255
|
+
b.length < 2 ? `0${b}` : b,
|
|
3256
|
+
R,
|
|
3257
|
+
S
|
|
3258
|
+
);
|
|
3259
|
+
return;
|
|
3260
|
+
}
|
|
3261
|
+
else {
|
|
3262
|
+
if ((s || a) && !be(
|
|
3263
|
+
b,
|
|
3264
|
+
s,
|
|
3265
|
+
a
|
|
3266
|
+
))
|
|
3267
|
+
return;
|
|
3268
|
+
if (i && i.includes("hh")) {
|
|
3269
|
+
const M = +b > 11 ? "12" : `${+b < 1 ? "1" : +b % 12}`;
|
|
3270
|
+
l({ type: "SET_HOURS", payload: M });
|
|
3271
|
+
} else {
|
|
3272
|
+
const M = b.length < 2 ? `0${b}` : b;
|
|
3273
|
+
l({ type: "SET_HOURS", payload: M });
|
|
3274
|
+
}
|
|
3275
|
+
}
|
|
3276
|
+
}
|
|
3277
|
+
},
|
|
3278
|
+
handleMinutes: (_) => {
|
|
3279
|
+
const { currentTarget: c } = _;
|
|
3280
|
+
if (c.value === "") {
|
|
3281
|
+
O(A, c.value, S);
|
|
3282
|
+
return;
|
|
3283
|
+
}
|
|
3284
|
+
if (c.value && c.valueAsNumber < 60 && c.valueAsNumber >= 0) {
|
|
3285
|
+
const b = c.value.slice(-2);
|
|
3286
|
+
if (t)
|
|
3287
|
+
O(
|
|
3288
|
+
A,
|
|
3289
|
+
b.length < 2 ? `0${b}` : b,
|
|
3290
|
+
S
|
|
3291
|
+
);
|
|
3292
|
+
else {
|
|
3293
|
+
const M = b.length < 2 ? `0${b}` : b;
|
|
3294
|
+
l({ type: "SET_MINUTES", payload: M });
|
|
3295
|
+
}
|
|
3296
|
+
}
|
|
3297
|
+
},
|
|
3298
|
+
handleSeconds: (_) => {
|
|
3299
|
+
const { currentTarget: c } = _;
|
|
3300
|
+
if (c.value === "") {
|
|
3301
|
+
O(A, R, c.value);
|
|
3302
|
+
return;
|
|
3303
|
+
}
|
|
3304
|
+
if (c.value && c.valueAsNumber < 60 && c.valueAsNumber >= 0) {
|
|
3305
|
+
const b = c.value.slice(-2);
|
|
3306
|
+
if (t)
|
|
3307
|
+
O(
|
|
3308
|
+
A,
|
|
3309
|
+
R,
|
|
3310
|
+
b.length < 2 ? `0${b}` : b
|
|
3311
|
+
);
|
|
3312
|
+
else {
|
|
3313
|
+
const M = b.length < 2 ? `0${b}` : b;
|
|
3314
|
+
l({ type: "SET_SECONDS", payload: M });
|
|
3315
|
+
}
|
|
3316
|
+
}
|
|
3317
|
+
},
|
|
3318
|
+
inputType: C,
|
|
3319
|
+
updateTime: O,
|
|
3320
|
+
hours: A,
|
|
3321
|
+
minutes: R,
|
|
3322
|
+
seconds: S,
|
|
3323
|
+
isAm: w,
|
|
3324
|
+
state: d,
|
|
3325
|
+
dispatch: l
|
|
3326
|
+
};
|
|
3327
|
+
}, nr = (e) => /* @__PURE__ */ re.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", className: "icon icon-tabler icon-tabler-chevron-up", width: 24, height: 24, viewBox: "0 0 24 24", strokeWidth: 2, stroke: "currentColor", fill: "none", strokeLinecap: "round", strokeLinejoin: "round", ...e }, /* @__PURE__ */ re.createElement("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }), /* @__PURE__ */ re.createElement("path", { d: "M6 15l6 -6l6 6" })), sr = (e) => /* @__PURE__ */ re.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", className: "icon icon-tabler icon-tabler-chevron-down", width: 24, height: 24, viewBox: "0 0 24 24", strokeWidth: 2, stroke: "currentColor", fill: "none", strokeLinecap: "round", strokeLinejoin: "round", ...e }, /* @__PURE__ */ re.createElement("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }), /* @__PURE__ */ re.createElement("path", { d: "M6 9l6 6l6 -6" })), ar = "_inputContainer_9rf1m_2", ir = "_timeInputMainContainer_9rf1m_15", lr = "_disabled_9rf1m_43", cr = "_hourContainer_9rf1m_54", dr = "_hh_9rf1m_54", ur = "_noValue_9rf1m_54", mr = "_hyphen_9rf1m_58", fr = "_noZero_9rf1m_62", pr = "_minutesContainer_9rf1m_66", br = "_mm_9rf1m_66", gr = "_withSeconds_9rf1m_78", hr = "_secondsContainer_9rf1m_86", wr = "_timerContainer_9rf1m_105", yr = "_iconContainer_9rf1m_115", xr = "_arrowsContainer_9rf1m_141", kr = "_toggleAmPmContainer_9rf1m_159", j = {
|
|
3328
|
+
inputContainer: ar,
|
|
3329
|
+
timeInputMainContainer: ir,
|
|
3330
|
+
disabled: lr,
|
|
3331
|
+
hourContainer: cr,
|
|
3332
|
+
hh: dr,
|
|
3333
|
+
noValue: ur,
|
|
3334
|
+
hyphen: mr,
|
|
3335
|
+
noZero: fr,
|
|
3336
|
+
minutesContainer: pr,
|
|
3337
|
+
mm: br,
|
|
3338
|
+
withSeconds: gr,
|
|
3339
|
+
secondsContainer: hr,
|
|
3340
|
+
timerContainer: wr,
|
|
3341
|
+
iconContainer: yr,
|
|
3342
|
+
arrowsContainer: xr,
|
|
3343
|
+
toggleAmPmContainer: kr
|
|
3344
|
+
}, vr = (e) => {
|
|
3345
|
+
const {
|
|
3346
|
+
inputType: t,
|
|
3347
|
+
updateTime: o,
|
|
3348
|
+
hours: r,
|
|
3349
|
+
minutes: s,
|
|
3350
|
+
seconds: a,
|
|
3351
|
+
hour12: i,
|
|
3352
|
+
isAm: d,
|
|
3353
|
+
maxTime: l,
|
|
3354
|
+
minTime: w,
|
|
3355
|
+
format: C
|
|
3356
|
+
} = e;
|
|
3357
|
+
return { handleAddTime: (S) => {
|
|
3358
|
+
if (S.preventDefault(), t === "hours") {
|
|
3359
|
+
if ((l || w) && !be(
|
|
3360
|
+
`${+r + 1}`,
|
|
3361
|
+
l,
|
|
3362
|
+
w
|
|
3363
|
+
))
|
|
3364
|
+
return;
|
|
3365
|
+
const f = +r + 1;
|
|
3366
|
+
let y;
|
|
3367
|
+
i ? d ? y = `${f > 11 ? "12" : f}` : y = `${f > 11 ? "00" : f + 12}` : C && C.includes("hh") ? y = `${f > 11 ? "12" : +f % 12}` : y = `${f < 0 ? "00" : f < 10 ? `0${f}` : f < 24 ? f : 23}`, o(y, s, a);
|
|
3368
|
+
}
|
|
3369
|
+
if (t === "minutes") {
|
|
3370
|
+
const f = +s + 1, y = `${f < 10 ? `0${f}` : f < 60 ? f : 59}`;
|
|
3371
|
+
o(r, y, a);
|
|
3372
|
+
}
|
|
3373
|
+
if (t === "seconds") {
|
|
3374
|
+
const f = +a + 1, y = `${f < 10 ? `0${f}` : f < 60 ? f : 59}`;
|
|
3375
|
+
o(r, s, y);
|
|
3376
|
+
}
|
|
3377
|
+
}, handleRemoveTime: (S) => {
|
|
3378
|
+
if (S.preventDefault(), t === "hours") {
|
|
3379
|
+
if ((l || w) && !be(
|
|
3380
|
+
`${+r - 1}`,
|
|
3381
|
+
l,
|
|
3382
|
+
w
|
|
3383
|
+
))
|
|
3384
|
+
return;
|
|
3385
|
+
const f = +r - 1;
|
|
3386
|
+
let y;
|
|
3387
|
+
i ? d ? y = `${f < 1 ? "1" : f}` : y = `${f < 1 ? "13" : f + 12}` : C && C.includes("hh") ? y = `${f < 1 ? "1" : f}` : y = `${f < 0 ? "00" : f < 10 ? `0${f}` : f}`, o(y, s, a);
|
|
3388
|
+
}
|
|
3389
|
+
if (t === "minutes") {
|
|
3390
|
+
const f = +s - 1, y = `${f < 0 ? "00" : f < 10 ? `0${f}` : f}`;
|
|
3391
|
+
o(r, y, a);
|
|
3392
|
+
}
|
|
3393
|
+
if (t === "seconds") {
|
|
3394
|
+
const f = +a - 1, y = `${f < 0 ? "00" : f < 10 ? `0${f}` : f}`;
|
|
3395
|
+
o(r, s, y);
|
|
3396
|
+
}
|
|
3397
|
+
} };
|
|
3398
|
+
}, Qe = De(null), Tr = ({
|
|
3399
|
+
children: e,
|
|
3400
|
+
props: t
|
|
3401
|
+
}) => {
|
|
3402
|
+
const { handleAddTime: o, handleRemoveTime: r } = vr(t), { controlsClassName: s, disabled: a, inputType: i } = t;
|
|
3403
|
+
return /* @__PURE__ */ $.jsx(
|
|
3404
|
+
Qe,
|
|
3405
|
+
{
|
|
3406
|
+
value: {
|
|
3407
|
+
controlsClassName: s,
|
|
3408
|
+
disabled: a,
|
|
3409
|
+
handleAddTime: o,
|
|
3410
|
+
handleRemoveTime: r,
|
|
3411
|
+
inputType: i
|
|
3412
|
+
},
|
|
3413
|
+
children: e
|
|
3414
|
+
}
|
|
3415
|
+
);
|
|
3416
|
+
}, _r = () => {
|
|
3417
|
+
const e = Le(Qe);
|
|
3418
|
+
if (!e)
|
|
3419
|
+
throw new Error("useContext must be used within a ControlsProvider");
|
|
3420
|
+
return e;
|
|
3421
|
+
}, Cr = lt(function() {
|
|
3422
|
+
const {
|
|
3423
|
+
controlsClassName: t,
|
|
3424
|
+
disabled: o,
|
|
3425
|
+
handleAddTime: r,
|
|
3426
|
+
handleRemoveTime: s,
|
|
3427
|
+
inputType: a
|
|
3428
|
+
} = _r();
|
|
3429
|
+
return /* @__PURE__ */ $.jsxs(
|
|
3430
|
+
"div",
|
|
3431
|
+
{
|
|
3432
|
+
className: G(j.arrowsContainer, t),
|
|
3433
|
+
"aria-label": `${a}-controls`,
|
|
3434
|
+
children: [
|
|
3435
|
+
/* @__PURE__ */ $.jsx(
|
|
3436
|
+
"button",
|
|
3437
|
+
{
|
|
3438
|
+
onClick: (i) => r(i),
|
|
3439
|
+
disabled: o,
|
|
3440
|
+
"aria-label": "add-time",
|
|
3441
|
+
children: /* @__PURE__ */ $.jsx(nr, {})
|
|
3442
|
+
}
|
|
3443
|
+
),
|
|
3444
|
+
/* @__PURE__ */ $.jsx(
|
|
3445
|
+
"button",
|
|
3446
|
+
{
|
|
3447
|
+
disabled: o,
|
|
3448
|
+
onClick: (i) => s(i),
|
|
3449
|
+
"aria-label": "remove-time",
|
|
3450
|
+
children: /* @__PURE__ */ $.jsx(sr, {})
|
|
3451
|
+
}
|
|
3452
|
+
)
|
|
3453
|
+
]
|
|
3454
|
+
}
|
|
3455
|
+
);
|
|
3456
|
+
}), Er = (e) => /* @__PURE__ */ re.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: 1.5, stroke: "currentColor", className: "size-6", ...e }, /* @__PURE__ */ re.createElement("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M12 6v6h4.5m4.5 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z" })), et = De(
|
|
3457
|
+
null
|
|
3458
|
+
), Sr = ({
|
|
3459
|
+
children: e,
|
|
3460
|
+
props: t
|
|
3461
|
+
}) => {
|
|
3462
|
+
const { dispatch: o, amPmAriaLabel: r, disabled: s, isAm: a } = t, i = () => {
|
|
3463
|
+
o({ type: "TOGGLE_AM", payload: !a });
|
|
3464
|
+
};
|
|
3465
|
+
return /* @__PURE__ */ $.jsx(
|
|
3466
|
+
et,
|
|
3467
|
+
{
|
|
3468
|
+
value: {
|
|
3469
|
+
handleToggleAmPm: i,
|
|
3470
|
+
amPmAriaLabel: r,
|
|
3471
|
+
isAm: a,
|
|
3472
|
+
disabled: s
|
|
3473
|
+
},
|
|
3474
|
+
children: e
|
|
3475
|
+
}
|
|
3476
|
+
);
|
|
3477
|
+
}, $r = () => {
|
|
3478
|
+
const e = Le(et);
|
|
3479
|
+
if (!e)
|
|
3480
|
+
throw new Error("useContext must be used within a ControlsProvider");
|
|
3481
|
+
return e;
|
|
3482
|
+
}, Rr = () => {
|
|
3483
|
+
const { handleToggleAmPm: e, isAm: t, disabled: o, amPmAriaLabel: r } = $r();
|
|
3484
|
+
return /* @__PURE__ */ $.jsx(
|
|
3485
|
+
"button",
|
|
3486
|
+
{
|
|
3487
|
+
id: "toggle-am-pm",
|
|
3488
|
+
"aria-label": r,
|
|
3489
|
+
onClick: e,
|
|
3490
|
+
disabled: o,
|
|
3491
|
+
title: "AM/PM button",
|
|
3492
|
+
type: "button",
|
|
3493
|
+
children: t ? "AM" : "PM"
|
|
3494
|
+
}
|
|
3495
|
+
);
|
|
3496
|
+
}, Ar = ({
|
|
3497
|
+
props: e,
|
|
3498
|
+
children: t
|
|
3499
|
+
}) => {
|
|
3500
|
+
const {
|
|
3501
|
+
inputType: o,
|
|
3502
|
+
isAm: r,
|
|
3503
|
+
disabled: s,
|
|
3504
|
+
disabledHours: a,
|
|
3505
|
+
disabledMinutes: i,
|
|
3506
|
+
disabledSeconds: d,
|
|
3507
|
+
controlsClassName: l,
|
|
3508
|
+
format: w,
|
|
3509
|
+
hour12: C,
|
|
3510
|
+
amPmAriaLabel: A,
|
|
3511
|
+
updateTime: R,
|
|
3512
|
+
hours: S,
|
|
3513
|
+
minutes: f,
|
|
3514
|
+
seconds: y,
|
|
3515
|
+
state: P,
|
|
3516
|
+
dispatch: D
|
|
3517
|
+
} = e;
|
|
3518
|
+
return /* @__PURE__ */ $.jsx(
|
|
3519
|
+
Tr,
|
|
3520
|
+
{
|
|
3521
|
+
props: {
|
|
3522
|
+
inputType: o,
|
|
3523
|
+
disabled: s || a || i || d,
|
|
3524
|
+
updateTime: R,
|
|
3525
|
+
hours: S,
|
|
3526
|
+
minutes: f,
|
|
3527
|
+
seconds: y,
|
|
3528
|
+
controlsClassName: l,
|
|
3529
|
+
format: w,
|
|
3530
|
+
hour12: C,
|
|
3531
|
+
isAm: r,
|
|
3532
|
+
state: P,
|
|
3533
|
+
dispatch: D
|
|
3534
|
+
},
|
|
3535
|
+
children: /* @__PURE__ */ $.jsx(
|
|
3536
|
+
Sr,
|
|
3537
|
+
{
|
|
3538
|
+
props: {
|
|
3539
|
+
isAm: r,
|
|
3540
|
+
amPmAriaLabel: A,
|
|
3541
|
+
disabled: s || a || i || d,
|
|
3542
|
+
state: P,
|
|
3543
|
+
dispatch: D
|
|
3544
|
+
},
|
|
3545
|
+
children: t
|
|
3546
|
+
}
|
|
3547
|
+
)
|
|
3548
|
+
}
|
|
3549
|
+
);
|
|
3550
|
+
}, Nr = ({
|
|
3551
|
+
id: e,
|
|
3552
|
+
value: t,
|
|
3553
|
+
dataTestId: o,
|
|
3554
|
+
hoursPlaceholder: r = "--",
|
|
3555
|
+
minutesPlaceholder: s = "--",
|
|
3556
|
+
secondsPlaceholder: a = "--",
|
|
3557
|
+
name: i = "time",
|
|
3558
|
+
disabled: d,
|
|
3559
|
+
required: l,
|
|
3560
|
+
onChange: w,
|
|
3561
|
+
className: C,
|
|
3562
|
+
iconClockClassName: A,
|
|
3563
|
+
amPmButtonClassName: R,
|
|
3564
|
+
controlsClassName: S,
|
|
3565
|
+
inputClassName: f,
|
|
3566
|
+
dividerClassName: y,
|
|
3567
|
+
ariaLabel: P = "time",
|
|
3568
|
+
iconAriaLabel: D = "clock",
|
|
3569
|
+
hoursAriaLabel: F = "hours",
|
|
3570
|
+
minutesAriaLabel: O = "minutes",
|
|
3571
|
+
secondsAriaLabel: H = "seconds",
|
|
3572
|
+
amPmAriaLabel: W = "am-pm",
|
|
3573
|
+
hasSeconds: L = !1,
|
|
3574
|
+
hour12: _ = !1,
|
|
3575
|
+
disableFocusOnIcon: c = !1,
|
|
3576
|
+
disabledHours: b,
|
|
3577
|
+
disabledMinutes: M,
|
|
3578
|
+
disabledSeconds: B,
|
|
3579
|
+
maxTime: J,
|
|
3580
|
+
minTime: oe,
|
|
3581
|
+
hideControls: ne = !1,
|
|
3582
|
+
hoursInputTitle: U = "Hours input",
|
|
3583
|
+
minutesInputTitle: V = "Minutes input",
|
|
3584
|
+
secondsInputTitle: Y = "Seconds input",
|
|
3585
|
+
setZeroOnBlur: p = !1,
|
|
3586
|
+
format: K
|
|
3587
|
+
}) => {
|
|
3588
|
+
const {
|
|
3589
|
+
hoursRef: Z,
|
|
3590
|
+
minutesRef: n,
|
|
3591
|
+
secondsRef: h,
|
|
3592
|
+
inputType: x,
|
|
3593
|
+
updateTime: g,
|
|
3594
|
+
handleHours: q,
|
|
3595
|
+
handleMinutes: ee,
|
|
3596
|
+
handleSeconds: k,
|
|
3597
|
+
hours: T,
|
|
3598
|
+
minutes: E,
|
|
3599
|
+
seconds: N,
|
|
3600
|
+
isAm: ie,
|
|
3601
|
+
state: le,
|
|
3602
|
+
dispatch: X
|
|
3603
|
+
} = or({
|
|
3604
|
+
value: t,
|
|
3605
|
+
onChange: w,
|
|
3606
|
+
hasSeconds: L,
|
|
3607
|
+
hour12: _,
|
|
3608
|
+
maxTime: J,
|
|
3609
|
+
minTime: oe,
|
|
3610
|
+
format: K
|
|
3611
|
+
}), tt = `${j.timerContainer} ${j.hourContainer}
|
|
3612
|
+
${r === "--" ? j.hyphen : j.hh}
|
|
3613
|
+
${T === "" ? j.noValue : ""}
|
|
3614
|
+
${+T > 9 ? j.noZero : ""}`, rt = `${j.timerContainer} ${j.minutesContainer} ${L ? j.withSeconds : ""}
|
|
3615
|
+
${s === "--" ? j.hyphen : j.mm}
|
|
3616
|
+
${E === "" ? j.noValue : ""}
|
|
3617
|
+
${+E > 9 ? j.noZero : ""}`, ot = `${j.timerContainer} ${j.secondsContainer}`, Re = K?.includes("ss") || L, nt = K?.includes("hh");
|
|
3618
|
+
return /* @__PURE__ */ $.jsx(
|
|
3619
|
+
Ar,
|
|
3620
|
+
{
|
|
3621
|
+
props: {
|
|
3622
|
+
hours: T,
|
|
3623
|
+
minutes: E,
|
|
3624
|
+
seconds: N,
|
|
3625
|
+
isAm: ie,
|
|
3626
|
+
inputType: x,
|
|
3627
|
+
disabled: d,
|
|
3628
|
+
controlsClassName: S,
|
|
3629
|
+
hour12: _,
|
|
3630
|
+
amPmAriaLabel: W,
|
|
3631
|
+
updateTime: g,
|
|
3632
|
+
format: nt ? "hh" : "HH",
|
|
3633
|
+
disabledHours: b,
|
|
3634
|
+
disabledMinutes: M,
|
|
3635
|
+
disabledSeconds: B,
|
|
3636
|
+
state: le,
|
|
3637
|
+
dispatch: X
|
|
3638
|
+
},
|
|
3639
|
+
children: /* @__PURE__ */ $.jsxs(
|
|
3640
|
+
"div",
|
|
3641
|
+
{
|
|
3642
|
+
className: G(
|
|
3643
|
+
`${j.inputContainer} ${d ? j.disabled : ""}`,
|
|
3644
|
+
C
|
|
3645
|
+
),
|
|
3646
|
+
"data-testid": o,
|
|
3647
|
+
role: "textbox",
|
|
3648
|
+
tabIndex: 0,
|
|
3649
|
+
children: [
|
|
3650
|
+
!c && /* @__PURE__ */ $.jsx(
|
|
3651
|
+
"div",
|
|
3652
|
+
{
|
|
3653
|
+
className: G(j.iconContainer, A),
|
|
3654
|
+
role: "button",
|
|
3655
|
+
onClick: () => {
|
|
3656
|
+
X({ type: "INPUT_TYPE", payload: "hours" }), se(Z);
|
|
3657
|
+
},
|
|
3658
|
+
"aria-label": D,
|
|
3659
|
+
children: /* @__PURE__ */ $.jsx(Er, {})
|
|
3660
|
+
}
|
|
3661
|
+
),
|
|
3662
|
+
/* @__PURE__ */ $.jsxs("div", { className: G(j.timeInputMainContainer), children: [
|
|
3663
|
+
/* @__PURE__ */ $.jsxs(
|
|
3664
|
+
"div",
|
|
3665
|
+
{
|
|
3666
|
+
className: G(tt),
|
|
3667
|
+
onClick: (I) => {
|
|
3668
|
+
I.preventDefault(), X({ type: "INPUT_TYPE", payload: "hours" }), se(Z);
|
|
3669
|
+
},
|
|
3670
|
+
children: [
|
|
3671
|
+
/* @__PURE__ */ $.jsx(
|
|
3672
|
+
"input",
|
|
3673
|
+
{
|
|
3674
|
+
type: "hidden",
|
|
3675
|
+
name: i,
|
|
3676
|
+
"aria-label": P,
|
|
3677
|
+
value: Re ? `${T}:${E}:${N}` : `${T}:${E}`
|
|
3678
|
+
}
|
|
3679
|
+
),
|
|
3680
|
+
/* @__PURE__ */ $.jsx(
|
|
3681
|
+
"input",
|
|
3682
|
+
{
|
|
3683
|
+
type: "number",
|
|
3684
|
+
id: e,
|
|
3685
|
+
autoComplete: "off",
|
|
3686
|
+
minLength: 1,
|
|
3687
|
+
maxLength: 2,
|
|
3688
|
+
step: 1,
|
|
3689
|
+
min: _ ? 1 : 0,
|
|
3690
|
+
max: _ ? 12 : 23,
|
|
3691
|
+
inputMode: "numeric",
|
|
3692
|
+
value: T,
|
|
3693
|
+
onChange: q,
|
|
3694
|
+
pattern: "^(2[0-3]|[01]?[0-9]){1,1}$",
|
|
3695
|
+
placeholder: r,
|
|
3696
|
+
required: l,
|
|
3697
|
+
className: G(f),
|
|
3698
|
+
onBlur: () => {
|
|
3699
|
+
if (p && T.length < 2) {
|
|
3700
|
+
if (_) {
|
|
3701
|
+
g(
|
|
3702
|
+
+T > 12 ? "12" : ie ? T : `${+T + 12}`,
|
|
3703
|
+
E,
|
|
3704
|
+
N
|
|
3705
|
+
);
|
|
3706
|
+
return;
|
|
3707
|
+
}
|
|
3708
|
+
g(`0${T}`, E, N);
|
|
3709
|
+
return;
|
|
3710
|
+
}
|
|
3711
|
+
},
|
|
3712
|
+
onKeyDown: (I) => {
|
|
3713
|
+
if (I.key === "Tab") {
|
|
3714
|
+
if (X({ type: "INPUT_TYPE", payload: "minutes" }), T === "") {
|
|
3715
|
+
g("00", E, N);
|
|
3716
|
+
return;
|
|
3717
|
+
}
|
|
3718
|
+
if (T.length < 2) {
|
|
3719
|
+
g(`0${T}`, E, N);
|
|
3720
|
+
return;
|
|
3721
|
+
}
|
|
3722
|
+
}
|
|
3723
|
+
if (I.key === "Backspace") {
|
|
3724
|
+
g("", E, N);
|
|
3725
|
+
return;
|
|
3726
|
+
}
|
|
3727
|
+
return ["e", "E", "+", "-"].includes(I.key) && I.preventDefault();
|
|
3728
|
+
},
|
|
3729
|
+
onClick: (I) => {
|
|
3730
|
+
I.preventDefault(), se(Z), X({ type: "INPUT_TYPE", payload: "hours" });
|
|
3731
|
+
},
|
|
3732
|
+
tabIndex: 0,
|
|
3733
|
+
disabled: d || b,
|
|
3734
|
+
"aria-label": F,
|
|
3735
|
+
name: `hours-${i}`,
|
|
3736
|
+
ref: Z,
|
|
3737
|
+
title: U
|
|
3738
|
+
}
|
|
3739
|
+
)
|
|
3740
|
+
]
|
|
3741
|
+
}
|
|
3742
|
+
),
|
|
3743
|
+
/* @__PURE__ */ $.jsx("span", { className: G(y), children: ":" }),
|
|
3744
|
+
/* @__PURE__ */ $.jsx(
|
|
3745
|
+
"div",
|
|
3746
|
+
{
|
|
3747
|
+
className: G(rt),
|
|
3748
|
+
onClick: (I) => {
|
|
3749
|
+
I.preventDefault(), X({ type: "INPUT_TYPE", payload: "minutes" }), se(n);
|
|
3750
|
+
},
|
|
3751
|
+
children: /* @__PURE__ */ $.jsx(
|
|
3752
|
+
"input",
|
|
3753
|
+
{
|
|
3754
|
+
type: "number",
|
|
3755
|
+
autoComplete: "off",
|
|
3756
|
+
min: 0,
|
|
3757
|
+
max: 59,
|
|
3758
|
+
step: 1,
|
|
3759
|
+
size: 2,
|
|
3760
|
+
placeholder: s,
|
|
3761
|
+
value: E,
|
|
3762
|
+
className: G(f),
|
|
3763
|
+
inputMode: "numeric",
|
|
3764
|
+
onChange: ee,
|
|
3765
|
+
pattern: "/^([0-5]){1,1}([0-9]){1,1}$/",
|
|
3766
|
+
required: l,
|
|
3767
|
+
onBlur: () => {
|
|
3768
|
+
if (p) {
|
|
3769
|
+
if (E === "") {
|
|
3770
|
+
g(T, "00", N);
|
|
3771
|
+
return;
|
|
3772
|
+
}
|
|
3773
|
+
if (E.length < 2) {
|
|
3774
|
+
g(T, `0${E}`, N);
|
|
3775
|
+
return;
|
|
3776
|
+
}
|
|
3777
|
+
}
|
|
3778
|
+
},
|
|
3779
|
+
onKeyDown: (I) => {
|
|
3780
|
+
if (I.key === "Tab" && L) {
|
|
3781
|
+
if (E === "") {
|
|
3782
|
+
g(T, "00", N);
|
|
3783
|
+
return;
|
|
3784
|
+
}
|
|
3785
|
+
if (E.length < 2) {
|
|
3786
|
+
g(T, `0${E}`, N);
|
|
3787
|
+
return;
|
|
3788
|
+
}
|
|
3789
|
+
X({ type: "INPUT_TYPE", payload: "seconds" });
|
|
3790
|
+
}
|
|
3791
|
+
if (I.key === "Backspace") {
|
|
3792
|
+
g(T, "", N);
|
|
3793
|
+
return;
|
|
3794
|
+
}
|
|
3795
|
+
return ["e", "E", "+", "-"].includes(I.key) && I.preventDefault();
|
|
3796
|
+
},
|
|
3797
|
+
onClick: (I) => {
|
|
3798
|
+
I.preventDefault(), se(n), X({ type: "INPUT_TYPE", payload: "minutes" });
|
|
3799
|
+
},
|
|
3800
|
+
ref: n,
|
|
3801
|
+
tabIndex: 0,
|
|
3802
|
+
disabled: d || M,
|
|
3803
|
+
"aria-label": O,
|
|
3804
|
+
name: `minutes-${i}`,
|
|
3805
|
+
title: V
|
|
3806
|
+
}
|
|
3807
|
+
)
|
|
3808
|
+
}
|
|
3809
|
+
),
|
|
3810
|
+
Re ? /* @__PURE__ */ $.jsxs($.Fragment, { children: [
|
|
3811
|
+
/* @__PURE__ */ $.jsx("span", { className: G(y), children: ":" }),
|
|
3812
|
+
/* @__PURE__ */ $.jsx(
|
|
3813
|
+
"div",
|
|
3814
|
+
{
|
|
3815
|
+
className: G(ot),
|
|
3816
|
+
onClick: (I) => {
|
|
3817
|
+
I.preventDefault(), X({ type: "INPUT_TYPE", payload: "seconds" }), se(h);
|
|
3818
|
+
},
|
|
3819
|
+
children: /* @__PURE__ */ $.jsx(
|
|
3820
|
+
"input",
|
|
3821
|
+
{
|
|
3822
|
+
type: "number",
|
|
3823
|
+
autoComplete: "off",
|
|
3824
|
+
step: 1,
|
|
3825
|
+
size: 2,
|
|
3826
|
+
min: 0,
|
|
3827
|
+
max: 59,
|
|
3828
|
+
placeholder: a,
|
|
3829
|
+
value: N,
|
|
3830
|
+
className: G(f),
|
|
3831
|
+
pattern: "/^([0-5]){1,1}([0-9]){1,1}$/",
|
|
3832
|
+
required: l,
|
|
3833
|
+
onBlur: () => {
|
|
3834
|
+
if (p) {
|
|
3835
|
+
if (N === "") {
|
|
3836
|
+
g(T, E, "00");
|
|
3837
|
+
return;
|
|
3838
|
+
}
|
|
3839
|
+
if (N.length < 2) {
|
|
3840
|
+
g(T, E, `0${N}`);
|
|
3841
|
+
return;
|
|
3842
|
+
}
|
|
3843
|
+
}
|
|
3844
|
+
},
|
|
3845
|
+
onKeyDown: (I) => {
|
|
3846
|
+
if (I.key === "Tab") {
|
|
3847
|
+
if (N === "") {
|
|
3848
|
+
g(T, E, "00");
|
|
3849
|
+
return;
|
|
3850
|
+
}
|
|
3851
|
+
if (N.length < 2) {
|
|
3852
|
+
g(T, E, `0${N}`);
|
|
3853
|
+
return;
|
|
3854
|
+
}
|
|
3855
|
+
X({ type: "INPUT_TYPE", payload: "seconds" });
|
|
3856
|
+
}
|
|
3857
|
+
if (I.key === "Backspace") {
|
|
3858
|
+
g(T, E, "");
|
|
3859
|
+
return;
|
|
3860
|
+
}
|
|
3861
|
+
return ["e", "E", "+", "-"].includes(I.key) && I.preventDefault();
|
|
3862
|
+
},
|
|
3863
|
+
onChange: k,
|
|
3864
|
+
onClick: (I) => {
|
|
3865
|
+
I.preventDefault(), se(h), X({ type: "INPUT_TYPE", payload: "seconds" });
|
|
3866
|
+
},
|
|
3867
|
+
tabIndex: 0,
|
|
3868
|
+
disabled: d || B,
|
|
3869
|
+
ref: h,
|
|
3870
|
+
"aria-label": H,
|
|
3871
|
+
name: `seconds-${i}`,
|
|
3872
|
+
title: Y
|
|
3873
|
+
}
|
|
3874
|
+
)
|
|
3875
|
+
}
|
|
3876
|
+
)
|
|
3877
|
+
] }) : null,
|
|
3878
|
+
_ && /* @__PURE__ */ $.jsx(
|
|
3879
|
+
"div",
|
|
3880
|
+
{
|
|
3881
|
+
className: G(j.toggleAmPmContainer, R),
|
|
3882
|
+
title: "AM/PM button",
|
|
3883
|
+
children: /* @__PURE__ */ $.jsx(Rr, {})
|
|
3884
|
+
}
|
|
3885
|
+
)
|
|
3886
|
+
] }),
|
|
3887
|
+
ne ? null : /* @__PURE__ */ $.jsx(Cr, {})
|
|
3888
|
+
]
|
|
3889
|
+
}
|
|
3890
|
+
)
|
|
3891
|
+
}
|
|
3892
|
+
);
|
|
3893
|
+
};
|
|
3894
|
+
export {
|
|
3895
|
+
Nr as TimeInput
|
|
3896
|
+
};
|