next-ui-lib 0.1.20 → 0.1.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/bgIcon/bgIcon.d.ts +2 -2
- package/dist/components/bgIcon/bgIcon.d.ts.map +1 -1
- package/dist/components/card/card.d.ts +2 -2
- package/dist/components/card/card.d.ts.map +1 -1
- package/dist/components/card/card.stories.d.ts +1 -1
- package/dist/components/progressBar/progressBar.d.ts +2 -2
- package/dist/components/progressBar/progressBar.d.ts.map +1 -1
- package/dist/constants/colors.d.ts +38 -0
- package/dist/constants/colors.d.ts.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/ui.cjs.js +3 -3
- package/dist/ui.es.js +192 -183
- package/dist/ui.umd.js +3 -3
- package/package.json +1 -1
package/dist/ui.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsx as f, jsxs as
|
|
1
|
+
import { jsx as f, jsxs as S } from "react/jsx-runtime";
|
|
2
2
|
import * as O from "react";
|
|
3
|
-
import { useState as
|
|
4
|
-
const
|
|
3
|
+
import { useState as De } from "react";
|
|
4
|
+
const We = {
|
|
5
5
|
lightBlue: {
|
|
6
6
|
primary: { text: "#FFFFFF", value: "#27a7e3", dark: "#1f8ecb" },
|
|
7
7
|
secondary: { text: "#1CB0F6", value: "#E0F3FF", dark: "#B3DFFC" }
|
|
@@ -14,9 +14,18 @@ const ce = {
|
|
|
14
14
|
primary: { text: "#FFFFFF", value: "#00BCD4", dark: "#0097A7" },
|
|
15
15
|
secondary: { text: "#00BCD4", value: "#B2EBF2", dark: "#80DEEA" }
|
|
16
16
|
}
|
|
17
|
+
}, Ce = {
|
|
18
|
+
red: { value: "#FF5733", dark: "#C74422" },
|
|
19
|
+
amber: { text: "#936E00", value: "#FFC107", dark: "#D39E00" },
|
|
20
|
+
green: { value: "#79C70B", dark: "#619F08" },
|
|
21
|
+
blue: { value: "#2196F3", dark: "#1976D2" },
|
|
22
|
+
purple: { value: "#9C27B0", dark: "#7B1FA2" },
|
|
23
|
+
orange: { value: "#FF9800", dark: "#E68900" },
|
|
24
|
+
pink: { text: "#FFFFFF", value: "#E91E63", dark: "#C2185B" },
|
|
25
|
+
cyan: { text: "#FFFFFF", value: "#00BCD4", dark: "#0097A7" }
|
|
17
26
|
}, _e = {
|
|
18
27
|
Gray: { value: "#F1F1F1" }
|
|
19
|
-
},
|
|
28
|
+
}, xe = ({
|
|
20
29
|
color: e = "lightBlue",
|
|
21
30
|
onClick: t,
|
|
22
31
|
label: r,
|
|
@@ -29,7 +38,7 @@ const ce = {
|
|
|
29
38
|
medium: "px-3 py-1 text-base rounded-xl",
|
|
30
39
|
large: "px-8 py-3 text-2xl rounded-2xl",
|
|
31
40
|
full: "px-8 py-2 text-xl rounded-2xl w-full"
|
|
32
|
-
}, p =
|
|
41
|
+
}, p = We[e];
|
|
33
42
|
return /* @__PURE__ */ f(
|
|
34
43
|
"button",
|
|
35
44
|
{
|
|
@@ -50,53 +59,53 @@ const ce = {
|
|
|
50
59
|
}
|
|
51
60
|
);
|
|
52
61
|
};
|
|
53
|
-
function
|
|
62
|
+
function Fe(e) {
|
|
54
63
|
var t, r, o = "";
|
|
55
64
|
if (typeof e == "string" || typeof e == "number") o += e;
|
|
56
65
|
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
57
66
|
var n = e.length;
|
|
58
|
-
for (t = 0; t < n; t++) e[t] && (r =
|
|
67
|
+
for (t = 0; t < n; t++) e[t] && (r = Fe(e[t])) && (o && (o += " "), o += r);
|
|
59
68
|
} else for (r in e) e[r] && (o && (o += " "), o += r);
|
|
60
69
|
return o;
|
|
61
70
|
}
|
|
62
|
-
function
|
|
63
|
-
for (var e, t, r = 0, o = "", n = arguments.length; r < n; r++) (e = arguments[r]) && (t =
|
|
71
|
+
function Ue() {
|
|
72
|
+
for (var e, t, r = 0, o = "", n = arguments.length; r < n; r++) (e = arguments[r]) && (t = Fe(e)) && (o && (o += " "), o += t);
|
|
64
73
|
return o;
|
|
65
74
|
}
|
|
66
|
-
const
|
|
67
|
-
const t =
|
|
75
|
+
const ce = "-", He = (e) => {
|
|
76
|
+
const t = Je(e), {
|
|
68
77
|
conflictingClassGroups: r,
|
|
69
78
|
conflictingClassGroupModifiers: o
|
|
70
79
|
} = e;
|
|
71
80
|
return {
|
|
72
81
|
getClassGroupId: (l) => {
|
|
73
|
-
const p = l.split(
|
|
74
|
-
return p[0] === "" && p.length !== 1 && p.shift(),
|
|
82
|
+
const p = l.split(ce);
|
|
83
|
+
return p[0] === "" && p.length !== 1 && p.shift(), ze(p, t) || qe(l);
|
|
75
84
|
},
|
|
76
85
|
getConflictingClassGroupIds: (l, p) => {
|
|
77
86
|
const m = r[l] || [];
|
|
78
87
|
return p && o[l] ? [...m, ...o[l]] : m;
|
|
79
88
|
}
|
|
80
89
|
};
|
|
81
|
-
},
|
|
90
|
+
}, ze = (e, t) => {
|
|
82
91
|
if (e.length === 0)
|
|
83
92
|
return t.classGroupId;
|
|
84
|
-
const r = e[0], o = t.nextPart.get(r), n = o ?
|
|
93
|
+
const r = e[0], o = t.nextPart.get(r), n = o ? ze(e.slice(1), o) : void 0;
|
|
85
94
|
if (n)
|
|
86
95
|
return n;
|
|
87
96
|
if (t.validators.length === 0)
|
|
88
97
|
return;
|
|
89
|
-
const c = e.join(
|
|
98
|
+
const c = e.join(ce);
|
|
90
99
|
return t.validators.find(({
|
|
91
100
|
validator: l
|
|
92
101
|
}) => l(c))?.classGroupId;
|
|
93
|
-
},
|
|
94
|
-
if (
|
|
95
|
-
const t =
|
|
102
|
+
}, ye = /^\[(.+)\]$/, qe = (e) => {
|
|
103
|
+
if (ye.test(e)) {
|
|
104
|
+
const t = ye.exec(e)[1], r = t?.substring(0, t.indexOf(":"));
|
|
96
105
|
if (r)
|
|
97
106
|
return "arbitrary.." + r;
|
|
98
107
|
}
|
|
99
|
-
},
|
|
108
|
+
}, Je = (e) => {
|
|
100
109
|
const {
|
|
101
110
|
theme: t,
|
|
102
111
|
classGroups: r
|
|
@@ -110,12 +119,12 @@ const de = "-", Ue = (e) => {
|
|
|
110
119
|
}, ne = (e, t, r, o) => {
|
|
111
120
|
e.forEach((n) => {
|
|
112
121
|
if (typeof n == "string") {
|
|
113
|
-
const c = n === "" ? t :
|
|
122
|
+
const c = n === "" ? t : we(t, n);
|
|
114
123
|
c.classGroupId = r;
|
|
115
124
|
return;
|
|
116
125
|
}
|
|
117
126
|
if (typeof n == "function") {
|
|
118
|
-
if (
|
|
127
|
+
if (Xe(n)) {
|
|
119
128
|
ne(n(o), t, r, o);
|
|
120
129
|
return;
|
|
121
130
|
}
|
|
@@ -126,18 +135,18 @@ const de = "-", Ue = (e) => {
|
|
|
126
135
|
return;
|
|
127
136
|
}
|
|
128
137
|
Object.entries(n).forEach(([c, l]) => {
|
|
129
|
-
ne(l,
|
|
138
|
+
ne(l, we(t, c), r, o);
|
|
130
139
|
});
|
|
131
140
|
});
|
|
132
|
-
},
|
|
141
|
+
}, we = (e, t) => {
|
|
133
142
|
let r = e;
|
|
134
|
-
return t.split(
|
|
143
|
+
return t.split(ce).forEach((o) => {
|
|
135
144
|
r.nextPart.has(o) || r.nextPart.set(o, {
|
|
136
145
|
nextPart: /* @__PURE__ */ new Map(),
|
|
137
146
|
validators: []
|
|
138
147
|
}), r = r.nextPart.get(o);
|
|
139
148
|
}), r;
|
|
140
|
-
},
|
|
149
|
+
}, Xe = (e) => e.isThemeGetter, Ke = (e) => {
|
|
141
150
|
if (e < 1)
|
|
142
151
|
return {
|
|
143
152
|
get: () => {
|
|
@@ -161,7 +170,7 @@ const de = "-", Ue = (e) => {
|
|
|
161
170
|
r.has(c) ? r.set(c, l) : n(c, l);
|
|
162
171
|
}
|
|
163
172
|
};
|
|
164
|
-
}, le = "!", ie = ":",
|
|
173
|
+
}, le = "!", ie = ":", Qe = ie.length, Ye = (e) => {
|
|
165
174
|
const {
|
|
166
175
|
prefix: t,
|
|
167
176
|
experimentalParseClassName: r
|
|
@@ -173,7 +182,7 @@ const de = "-", Ue = (e) => {
|
|
|
173
182
|
let C = n[k];
|
|
174
183
|
if (l === 0 && p === 0) {
|
|
175
184
|
if (C === ie) {
|
|
176
|
-
c.push(n.slice(m, k)), m = k +
|
|
185
|
+
c.push(n.slice(m, k)), m = k + Qe;
|
|
177
186
|
continue;
|
|
178
187
|
}
|
|
179
188
|
if (C === "/") {
|
|
@@ -183,12 +192,12 @@ const de = "-", Ue = (e) => {
|
|
|
183
192
|
}
|
|
184
193
|
C === "[" ? l++ : C === "]" ? l-- : C === "(" ? p++ : C === ")" && p--;
|
|
185
194
|
}
|
|
186
|
-
const h = c.length === 0 ? n : n.substring(m), v =
|
|
195
|
+
const h = c.length === 0 ? n : n.substring(m), v = Ze(h), R = v !== h, A = b && b > m ? b - m : void 0;
|
|
187
196
|
return {
|
|
188
197
|
modifiers: c,
|
|
189
198
|
hasImportantModifier: R,
|
|
190
199
|
baseClassName: v,
|
|
191
|
-
maybePostfixModifierPosition:
|
|
200
|
+
maybePostfixModifierPosition: A
|
|
192
201
|
};
|
|
193
202
|
};
|
|
194
203
|
if (t) {
|
|
@@ -209,7 +218,7 @@ const de = "-", Ue = (e) => {
|
|
|
209
218
|
});
|
|
210
219
|
}
|
|
211
220
|
return o;
|
|
212
|
-
},
|
|
221
|
+
}, Ze = (e) => e.endsWith(le) ? e.substring(0, e.length - 1) : e.startsWith(le) ? e.substring(1) : e, er = (e) => {
|
|
213
222
|
const t = Object.fromEntries(e.orderSensitiveModifiers.map((o) => [o, !0]));
|
|
214
223
|
return (o) => {
|
|
215
224
|
if (o.length <= 1)
|
|
@@ -220,24 +229,24 @@ const de = "-", Ue = (e) => {
|
|
|
220
229
|
l[0] === "[" || t[l] ? (n.push(...c.sort(), l), c = []) : c.push(l);
|
|
221
230
|
}), n.push(...c.sort()), n;
|
|
222
231
|
};
|
|
223
|
-
},
|
|
224
|
-
cache:
|
|
225
|
-
parseClassName:
|
|
226
|
-
sortModifiers:
|
|
227
|
-
...
|
|
228
|
-
}),
|
|
232
|
+
}, rr = (e) => ({
|
|
233
|
+
cache: Ke(e.cacheSize),
|
|
234
|
+
parseClassName: Ye(e),
|
|
235
|
+
sortModifiers: er(e),
|
|
236
|
+
...He(e)
|
|
237
|
+
}), or = /\s+/, tr = (e, t) => {
|
|
229
238
|
const {
|
|
230
239
|
parseClassName: r,
|
|
231
240
|
getClassGroupId: o,
|
|
232
241
|
getConflictingClassGroupIds: n,
|
|
233
242
|
sortModifiers: c
|
|
234
|
-
} = t, l = [], p = e.trim().split(
|
|
243
|
+
} = t, l = [], p = e.trim().split(or);
|
|
235
244
|
let m = "";
|
|
236
245
|
for (let b = p.length - 1; b >= 0; b -= 1) {
|
|
237
246
|
const h = p[b], {
|
|
238
247
|
isExternal: v,
|
|
239
248
|
modifiers: R,
|
|
240
|
-
hasImportantModifier:
|
|
249
|
+
hasImportantModifier: A,
|
|
241
250
|
baseClassName: k,
|
|
242
251
|
maybePostfixModifierPosition: C
|
|
243
252
|
} = r(h);
|
|
@@ -245,9 +254,9 @@ const de = "-", Ue = (e) => {
|
|
|
245
254
|
m = h + (m.length > 0 ? " " + m : m);
|
|
246
255
|
continue;
|
|
247
256
|
}
|
|
248
|
-
let
|
|
257
|
+
let B = !!C, I = o(B ? k.substring(0, C) : k);
|
|
249
258
|
if (!I) {
|
|
250
|
-
if (!
|
|
259
|
+
if (!B) {
|
|
251
260
|
m = h + (m.length > 0 ? " " + m : m);
|
|
252
261
|
continue;
|
|
253
262
|
}
|
|
@@ -255,68 +264,68 @@ const de = "-", Ue = (e) => {
|
|
|
255
264
|
m = h + (m.length > 0 ? " " + m : m);
|
|
256
265
|
continue;
|
|
257
266
|
}
|
|
258
|
-
|
|
267
|
+
B = !1;
|
|
259
268
|
}
|
|
260
|
-
const q = c(R).join(":"),
|
|
261
|
-
if (l.includes(
|
|
269
|
+
const q = c(R).join(":"), _ = A ? q + le : q, T = _ + I;
|
|
270
|
+
if (l.includes(T))
|
|
262
271
|
continue;
|
|
263
|
-
l.push(
|
|
264
|
-
const $ = n(I,
|
|
265
|
-
for (let
|
|
266
|
-
const U = $[
|
|
267
|
-
l.push(
|
|
272
|
+
l.push(T);
|
|
273
|
+
const $ = n(I, B);
|
|
274
|
+
for (let E = 0; E < $.length; ++E) {
|
|
275
|
+
const U = $[E];
|
|
276
|
+
l.push(_ + U);
|
|
268
277
|
}
|
|
269
278
|
m = h + (m.length > 0 ? " " + m : m);
|
|
270
279
|
}
|
|
271
280
|
return m;
|
|
272
281
|
};
|
|
273
|
-
function
|
|
282
|
+
function sr() {
|
|
274
283
|
let e = 0, t, r, o = "";
|
|
275
284
|
for (; e < arguments.length; )
|
|
276
|
-
(t = arguments[e++]) && (r =
|
|
285
|
+
(t = arguments[e++]) && (r = Ne(t)) && (o && (o += " "), o += r);
|
|
277
286
|
return o;
|
|
278
287
|
}
|
|
279
|
-
const
|
|
288
|
+
const Ne = (e) => {
|
|
280
289
|
if (typeof e == "string")
|
|
281
290
|
return e;
|
|
282
291
|
let t, r = "";
|
|
283
292
|
for (let o = 0; o < e.length; o++)
|
|
284
|
-
e[o] && (t =
|
|
293
|
+
e[o] && (t = Ne(e[o])) && (r && (r += " "), r += t);
|
|
285
294
|
return r;
|
|
286
295
|
};
|
|
287
|
-
function
|
|
296
|
+
function ar(e, ...t) {
|
|
288
297
|
let r, o, n, c = l;
|
|
289
298
|
function l(m) {
|
|
290
299
|
const b = t.reduce((h, v) => v(h), e());
|
|
291
|
-
return r =
|
|
300
|
+
return r = rr(b), o = r.cache.get, n = r.cache.set, c = p, p(m);
|
|
292
301
|
}
|
|
293
302
|
function p(m) {
|
|
294
303
|
const b = o(m);
|
|
295
304
|
if (b)
|
|
296
305
|
return b;
|
|
297
|
-
const h =
|
|
306
|
+
const h = tr(m, r);
|
|
298
307
|
return n(m, h), h;
|
|
299
308
|
}
|
|
300
309
|
return function() {
|
|
301
|
-
return c(
|
|
310
|
+
return c(sr.apply(null, arguments));
|
|
302
311
|
};
|
|
303
312
|
}
|
|
304
313
|
const g = (e) => {
|
|
305
314
|
const t = (r) => r[e] || [];
|
|
306
315
|
return t.isThemeGetter = !0, t;
|
|
307
|
-
},
|
|
316
|
+
}, Se = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Ae = /^\((?:(\w[\w-]*):)?(.+)\)$/i, nr = /^\d+\/\d+$/, lr = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, ir = /\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$/, cr = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, dr = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, mr = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, L = (e) => nr.test(e), u = (e) => !!e && !Number.isNaN(Number(e)), M = (e) => !!e && Number.isInteger(Number(e)), se = (e) => e.endsWith("%") && u(e.slice(0, -1)), N = (e) => lr.test(e), pr = () => !0, ur = (e) => (
|
|
308
317
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
309
318
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
310
319
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
311
|
-
|
|
312
|
-
),
|
|
313
|
-
const o =
|
|
320
|
+
ir.test(e) && !cr.test(e)
|
|
321
|
+
), Me = () => !1, fr = (e) => dr.test(e), gr = (e) => mr.test(e), br = (e) => !s(e) && !a(e), hr = (e) => V(e, Ee, Me), s = (e) => Se.test(e), G = (e) => V(e, Pe, ur), ae = (e) => V(e, vr, u), ke = (e) => V(e, Re, Me), xr = (e) => V(e, Ie, gr), Z = (e) => V(e, Ge, fr), a = (e) => Ae.test(e), H = (e) => D(e, Pe), yr = (e) => D(e, Cr), ve = (e) => D(e, Re), wr = (e) => D(e, Ee), kr = (e) => D(e, Ie), ee = (e) => D(e, Ge, !0), V = (e, t, r) => {
|
|
322
|
+
const o = Se.exec(e);
|
|
314
323
|
return o ? o[1] ? t(o[1]) : r(o[2]) : !1;
|
|
315
|
-
},
|
|
316
|
-
const o =
|
|
324
|
+
}, D = (e, t, r = !1) => {
|
|
325
|
+
const o = Ae.exec(e);
|
|
317
326
|
return o ? o[1] ? t(o[1]) : r : !1;
|
|
318
|
-
}, Re = (e) => e === "position" || e === "percentage", Ie = (e) => e === "image" || e === "url",
|
|
319
|
-
const e = g("color"), t = g("font"), r = g("text"), o = g("font-weight"), n = g("tracking"), c = g("leading"), l = g("breakpoint"), p = g("container"), m = g("spacing"), b = g("radius"), h = g("shadow"), v = g("inset-shadow"), R = g("text-shadow"),
|
|
327
|
+
}, Re = (e) => e === "position" || e === "percentage", Ie = (e) => e === "image" || e === "url", Ee = (e) => e === "length" || e === "size" || e === "bg-size", Pe = (e) => e === "length", vr = (e) => e === "number", Cr = (e) => e === "family-name", Ge = (e) => e === "shadow", Fr = () => {
|
|
328
|
+
const e = g("color"), t = g("font"), r = g("text"), o = g("font-weight"), n = g("tracking"), c = g("leading"), l = g("breakpoint"), p = g("container"), m = g("spacing"), b = g("radius"), h = g("shadow"), v = g("inset-shadow"), R = g("text-shadow"), A = g("drop-shadow"), k = g("blur"), C = g("perspective"), B = g("aspect"), I = g("ease"), q = g("animate"), _ = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], T = () => [
|
|
320
329
|
"center",
|
|
321
330
|
"top",
|
|
322
331
|
"bottom",
|
|
@@ -334,15 +343,15 @@ const g = (e) => {
|
|
|
334
343
|
"bottom-left",
|
|
335
344
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
336
345
|
"left-bottom"
|
|
337
|
-
], $ = () => [...
|
|
338
|
-
span: ["full",
|
|
339
|
-
},
|
|
346
|
+
], $ = () => [...T(), a, s], E = () => ["auto", "hidden", "clip", "visible", "scroll"], U = () => ["auto", "contain", "none"], d = () => [a, s, m], F = () => [L, "full", "auto", ...d()], de = () => [M, "none", "subgrid", a, s], me = () => ["auto", {
|
|
347
|
+
span: ["full", M, a, s]
|
|
348
|
+
}, M, a, s], J = () => [M, "auto", a, s], pe = () => ["auto", "min", "max", "fr", a, s], re = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], j = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], z = () => ["auto", ...d()], P = () => [L, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...d()], i = () => [e, a, s], ue = () => [...T(), ve, ke, {
|
|
340
349
|
position: [a, s]
|
|
341
|
-
}],
|
|
350
|
+
}], fe = () => ["no-repeat", {
|
|
342
351
|
repeat: ["", "x", "y", "space", "round"]
|
|
343
|
-
}],
|
|
352
|
+
}], ge = () => ["auto", "cover", "contain", wr, hr, {
|
|
344
353
|
size: [a, s]
|
|
345
|
-
}], oe = () => [se, H,
|
|
354
|
+
}], oe = () => [se, H, G], y = () => [
|
|
346
355
|
// Deprecated since Tailwind CSS v4.0.0
|
|
347
356
|
"",
|
|
348
357
|
"none",
|
|
@@ -350,7 +359,7 @@ const g = (e) => {
|
|
|
350
359
|
b,
|
|
351
360
|
a,
|
|
352
361
|
s
|
|
353
|
-
], w = () => ["", u, H,
|
|
362
|
+
], w = () => ["", u, H, G], X = () => ["solid", "dashed", "dotted", "double"], be = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], x = () => [u, se, ve, ke], he = () => [
|
|
354
363
|
// Deprecated since Tailwind CSS v4.0.0
|
|
355
364
|
"",
|
|
356
365
|
"none",
|
|
@@ -363,22 +372,22 @@ const g = (e) => {
|
|
|
363
372
|
theme: {
|
|
364
373
|
animate: ["spin", "ping", "pulse", "bounce"],
|
|
365
374
|
aspect: ["video"],
|
|
366
|
-
blur: [
|
|
367
|
-
breakpoint: [
|
|
368
|
-
color: [
|
|
369
|
-
container: [
|
|
370
|
-
"drop-shadow": [
|
|
375
|
+
blur: [N],
|
|
376
|
+
breakpoint: [N],
|
|
377
|
+
color: [pr],
|
|
378
|
+
container: [N],
|
|
379
|
+
"drop-shadow": [N],
|
|
371
380
|
ease: ["in", "out", "in-out"],
|
|
372
|
-
font: [
|
|
381
|
+
font: [br],
|
|
373
382
|
"font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
|
|
374
|
-
"inset-shadow": [
|
|
383
|
+
"inset-shadow": [N],
|
|
375
384
|
leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
|
|
376
385
|
perspective: ["dramatic", "near", "normal", "midrange", "distant", "none"],
|
|
377
|
-
radius: [
|
|
378
|
-
shadow: [
|
|
386
|
+
radius: [N],
|
|
387
|
+
shadow: [N],
|
|
379
388
|
spacing: ["px", u],
|
|
380
|
-
text: [
|
|
381
|
-
"text-shadow": [
|
|
389
|
+
text: [N],
|
|
390
|
+
"text-shadow": [N],
|
|
382
391
|
tracking: ["tighter", "tight", "normal", "wide", "wider", "widest"]
|
|
383
392
|
},
|
|
384
393
|
classGroups: {
|
|
@@ -390,7 +399,7 @@ const g = (e) => {
|
|
|
390
399
|
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
391
400
|
*/
|
|
392
401
|
aspect: [{
|
|
393
|
-
aspect: ["auto", "square", L, s, a,
|
|
402
|
+
aspect: ["auto", "square", L, s, a, B]
|
|
394
403
|
}],
|
|
395
404
|
/**
|
|
396
405
|
* Container
|
|
@@ -410,14 +419,14 @@ const g = (e) => {
|
|
|
410
419
|
* @see https://tailwindcss.com/docs/break-after
|
|
411
420
|
*/
|
|
412
421
|
"break-after": [{
|
|
413
|
-
"break-after":
|
|
422
|
+
"break-after": _()
|
|
414
423
|
}],
|
|
415
424
|
/**
|
|
416
425
|
* Break Before
|
|
417
426
|
* @see https://tailwindcss.com/docs/break-before
|
|
418
427
|
*/
|
|
419
428
|
"break-before": [{
|
|
420
|
-
"break-before":
|
|
429
|
+
"break-before": _()
|
|
421
430
|
}],
|
|
422
431
|
/**
|
|
423
432
|
* Break Inside
|
|
@@ -488,21 +497,21 @@ const g = (e) => {
|
|
|
488
497
|
* @see https://tailwindcss.com/docs/overflow
|
|
489
498
|
*/
|
|
490
499
|
overflow: [{
|
|
491
|
-
overflow:
|
|
500
|
+
overflow: E()
|
|
492
501
|
}],
|
|
493
502
|
/**
|
|
494
503
|
* Overflow X
|
|
495
504
|
* @see https://tailwindcss.com/docs/overflow
|
|
496
505
|
*/
|
|
497
506
|
"overflow-x": [{
|
|
498
|
-
"overflow-x":
|
|
507
|
+
"overflow-x": E()
|
|
499
508
|
}],
|
|
500
509
|
/**
|
|
501
510
|
* Overflow Y
|
|
502
511
|
* @see https://tailwindcss.com/docs/overflow
|
|
503
512
|
*/
|
|
504
513
|
"overflow-y": [{
|
|
505
|
-
"overflow-y":
|
|
514
|
+
"overflow-y": E()
|
|
506
515
|
}],
|
|
507
516
|
/**
|
|
508
517
|
* Overscroll Behavior
|
|
@@ -535,63 +544,63 @@ const g = (e) => {
|
|
|
535
544
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
536
545
|
*/
|
|
537
546
|
inset: [{
|
|
538
|
-
inset:
|
|
547
|
+
inset: F()
|
|
539
548
|
}],
|
|
540
549
|
/**
|
|
541
550
|
* Right / Left
|
|
542
551
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
543
552
|
*/
|
|
544
553
|
"inset-x": [{
|
|
545
|
-
"inset-x":
|
|
554
|
+
"inset-x": F()
|
|
546
555
|
}],
|
|
547
556
|
/**
|
|
548
557
|
* Top / Bottom
|
|
549
558
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
550
559
|
*/
|
|
551
560
|
"inset-y": [{
|
|
552
|
-
"inset-y":
|
|
561
|
+
"inset-y": F()
|
|
553
562
|
}],
|
|
554
563
|
/**
|
|
555
564
|
* Start
|
|
556
565
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
557
566
|
*/
|
|
558
567
|
start: [{
|
|
559
|
-
start:
|
|
568
|
+
start: F()
|
|
560
569
|
}],
|
|
561
570
|
/**
|
|
562
571
|
* End
|
|
563
572
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
564
573
|
*/
|
|
565
574
|
end: [{
|
|
566
|
-
end:
|
|
575
|
+
end: F()
|
|
567
576
|
}],
|
|
568
577
|
/**
|
|
569
578
|
* Top
|
|
570
579
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
571
580
|
*/
|
|
572
581
|
top: [{
|
|
573
|
-
top:
|
|
582
|
+
top: F()
|
|
574
583
|
}],
|
|
575
584
|
/**
|
|
576
585
|
* Right
|
|
577
586
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
578
587
|
*/
|
|
579
588
|
right: [{
|
|
580
|
-
right:
|
|
589
|
+
right: F()
|
|
581
590
|
}],
|
|
582
591
|
/**
|
|
583
592
|
* Bottom
|
|
584
593
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
585
594
|
*/
|
|
586
595
|
bottom: [{
|
|
587
|
-
bottom:
|
|
596
|
+
bottom: F()
|
|
588
597
|
}],
|
|
589
598
|
/**
|
|
590
599
|
* Left
|
|
591
600
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
592
601
|
*/
|
|
593
602
|
left: [{
|
|
594
|
-
left:
|
|
603
|
+
left: F()
|
|
595
604
|
}],
|
|
596
605
|
/**
|
|
597
606
|
* Visibility
|
|
@@ -603,7 +612,7 @@ const g = (e) => {
|
|
|
603
612
|
* @see https://tailwindcss.com/docs/z-index
|
|
604
613
|
*/
|
|
605
614
|
z: [{
|
|
606
|
-
z: [
|
|
615
|
+
z: [M, "auto", a, s]
|
|
607
616
|
}],
|
|
608
617
|
// ------------------------
|
|
609
618
|
// --- Flexbox and Grid ---
|
|
@@ -655,21 +664,21 @@ const g = (e) => {
|
|
|
655
664
|
* @see https://tailwindcss.com/docs/order
|
|
656
665
|
*/
|
|
657
666
|
order: [{
|
|
658
|
-
order: [
|
|
667
|
+
order: [M, "first", "last", "none", a, s]
|
|
659
668
|
}],
|
|
660
669
|
/**
|
|
661
670
|
* Grid Template Columns
|
|
662
671
|
* @see https://tailwindcss.com/docs/grid-template-columns
|
|
663
672
|
*/
|
|
664
673
|
"grid-cols": [{
|
|
665
|
-
"grid-cols":
|
|
674
|
+
"grid-cols": de()
|
|
666
675
|
}],
|
|
667
676
|
/**
|
|
668
677
|
* Grid Column Start / End
|
|
669
678
|
* @see https://tailwindcss.com/docs/grid-column
|
|
670
679
|
*/
|
|
671
680
|
"col-start-end": [{
|
|
672
|
-
col:
|
|
681
|
+
col: me()
|
|
673
682
|
}],
|
|
674
683
|
/**
|
|
675
684
|
* Grid Column Start
|
|
@@ -690,14 +699,14 @@ const g = (e) => {
|
|
|
690
699
|
* @see https://tailwindcss.com/docs/grid-template-rows
|
|
691
700
|
*/
|
|
692
701
|
"grid-rows": [{
|
|
693
|
-
"grid-rows":
|
|
702
|
+
"grid-rows": de()
|
|
694
703
|
}],
|
|
695
704
|
/**
|
|
696
705
|
* Grid Row Start / End
|
|
697
706
|
* @see https://tailwindcss.com/docs/grid-row
|
|
698
707
|
*/
|
|
699
708
|
"row-start-end": [{
|
|
700
|
-
row:
|
|
709
|
+
row: me()
|
|
701
710
|
}],
|
|
702
711
|
/**
|
|
703
712
|
* Grid Row Start
|
|
@@ -725,14 +734,14 @@ const g = (e) => {
|
|
|
725
734
|
* @see https://tailwindcss.com/docs/grid-auto-columns
|
|
726
735
|
*/
|
|
727
736
|
"auto-cols": [{
|
|
728
|
-
"auto-cols":
|
|
737
|
+
"auto-cols": pe()
|
|
729
738
|
}],
|
|
730
739
|
/**
|
|
731
740
|
* Grid Auto Rows
|
|
732
741
|
* @see https://tailwindcss.com/docs/grid-auto-rows
|
|
733
742
|
*/
|
|
734
743
|
"auto-rows": [{
|
|
735
|
-
"auto-rows":
|
|
744
|
+
"auto-rows": pe()
|
|
736
745
|
}],
|
|
737
746
|
/**
|
|
738
747
|
* Gap
|
|
@@ -891,63 +900,63 @@ const g = (e) => {
|
|
|
891
900
|
* @see https://tailwindcss.com/docs/margin
|
|
892
901
|
*/
|
|
893
902
|
m: [{
|
|
894
|
-
m:
|
|
903
|
+
m: z()
|
|
895
904
|
}],
|
|
896
905
|
/**
|
|
897
906
|
* Margin X
|
|
898
907
|
* @see https://tailwindcss.com/docs/margin
|
|
899
908
|
*/
|
|
900
909
|
mx: [{
|
|
901
|
-
mx:
|
|
910
|
+
mx: z()
|
|
902
911
|
}],
|
|
903
912
|
/**
|
|
904
913
|
* Margin Y
|
|
905
914
|
* @see https://tailwindcss.com/docs/margin
|
|
906
915
|
*/
|
|
907
916
|
my: [{
|
|
908
|
-
my:
|
|
917
|
+
my: z()
|
|
909
918
|
}],
|
|
910
919
|
/**
|
|
911
920
|
* Margin Start
|
|
912
921
|
* @see https://tailwindcss.com/docs/margin
|
|
913
922
|
*/
|
|
914
923
|
ms: [{
|
|
915
|
-
ms:
|
|
924
|
+
ms: z()
|
|
916
925
|
}],
|
|
917
926
|
/**
|
|
918
927
|
* Margin End
|
|
919
928
|
* @see https://tailwindcss.com/docs/margin
|
|
920
929
|
*/
|
|
921
930
|
me: [{
|
|
922
|
-
me:
|
|
931
|
+
me: z()
|
|
923
932
|
}],
|
|
924
933
|
/**
|
|
925
934
|
* Margin Top
|
|
926
935
|
* @see https://tailwindcss.com/docs/margin
|
|
927
936
|
*/
|
|
928
937
|
mt: [{
|
|
929
|
-
mt:
|
|
938
|
+
mt: z()
|
|
930
939
|
}],
|
|
931
940
|
/**
|
|
932
941
|
* Margin Right
|
|
933
942
|
* @see https://tailwindcss.com/docs/margin
|
|
934
943
|
*/
|
|
935
944
|
mr: [{
|
|
936
|
-
mr:
|
|
945
|
+
mr: z()
|
|
937
946
|
}],
|
|
938
947
|
/**
|
|
939
948
|
* Margin Bottom
|
|
940
949
|
* @see https://tailwindcss.com/docs/margin
|
|
941
950
|
*/
|
|
942
951
|
mb: [{
|
|
943
|
-
mb:
|
|
952
|
+
mb: z()
|
|
944
953
|
}],
|
|
945
954
|
/**
|
|
946
955
|
* Margin Left
|
|
947
956
|
* @see https://tailwindcss.com/docs/margin
|
|
948
957
|
*/
|
|
949
958
|
ml: [{
|
|
950
|
-
ml:
|
|
959
|
+
ml: z()
|
|
951
960
|
}],
|
|
952
961
|
/**
|
|
953
962
|
* Space Between X
|
|
@@ -981,14 +990,14 @@ const g = (e) => {
|
|
|
981
990
|
* @see https://tailwindcss.com/docs/width#setting-both-width-and-height
|
|
982
991
|
*/
|
|
983
992
|
size: [{
|
|
984
|
-
size:
|
|
993
|
+
size: P()
|
|
985
994
|
}],
|
|
986
995
|
/**
|
|
987
996
|
* Width
|
|
988
997
|
* @see https://tailwindcss.com/docs/width
|
|
989
998
|
*/
|
|
990
999
|
w: [{
|
|
991
|
-
w: [p, "screen", ...
|
|
1000
|
+
w: [p, "screen", ...P()]
|
|
992
1001
|
}],
|
|
993
1002
|
/**
|
|
994
1003
|
* Min-Width
|
|
@@ -1000,7 +1009,7 @@ const g = (e) => {
|
|
|
1000
1009
|
"screen",
|
|
1001
1010
|
/** Deprecated. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
1002
1011
|
"none",
|
|
1003
|
-
...
|
|
1012
|
+
...P()
|
|
1004
1013
|
]
|
|
1005
1014
|
}],
|
|
1006
1015
|
/**
|
|
@@ -1018,7 +1027,7 @@ const g = (e) => {
|
|
|
1018
1027
|
{
|
|
1019
1028
|
screen: [l]
|
|
1020
1029
|
},
|
|
1021
|
-
...
|
|
1030
|
+
...P()
|
|
1022
1031
|
]
|
|
1023
1032
|
}],
|
|
1024
1033
|
/**
|
|
@@ -1026,21 +1035,21 @@ const g = (e) => {
|
|
|
1026
1035
|
* @see https://tailwindcss.com/docs/height
|
|
1027
1036
|
*/
|
|
1028
1037
|
h: [{
|
|
1029
|
-
h: ["screen", "lh", ...
|
|
1038
|
+
h: ["screen", "lh", ...P()]
|
|
1030
1039
|
}],
|
|
1031
1040
|
/**
|
|
1032
1041
|
* Min-Height
|
|
1033
1042
|
* @see https://tailwindcss.com/docs/min-height
|
|
1034
1043
|
*/
|
|
1035
1044
|
"min-h": [{
|
|
1036
|
-
"min-h": ["screen", "lh", "none", ...
|
|
1045
|
+
"min-h": ["screen", "lh", "none", ...P()]
|
|
1037
1046
|
}],
|
|
1038
1047
|
/**
|
|
1039
1048
|
* Max-Height
|
|
1040
1049
|
* @see https://tailwindcss.com/docs/max-height
|
|
1041
1050
|
*/
|
|
1042
1051
|
"max-h": [{
|
|
1043
|
-
"max-h": ["screen", "lh", ...
|
|
1052
|
+
"max-h": ["screen", "lh", ...P()]
|
|
1044
1053
|
}],
|
|
1045
1054
|
// ------------------
|
|
1046
1055
|
// --- Typography ---
|
|
@@ -1050,7 +1059,7 @@ const g = (e) => {
|
|
|
1050
1059
|
* @see https://tailwindcss.com/docs/font-size
|
|
1051
1060
|
*/
|
|
1052
1061
|
"font-size": [{
|
|
1053
|
-
text: ["base", r, H,
|
|
1062
|
+
text: ["base", r, H, G]
|
|
1054
1063
|
}],
|
|
1055
1064
|
/**
|
|
1056
1065
|
* Font Smoothing
|
|
@@ -1081,7 +1090,7 @@ const g = (e) => {
|
|
|
1081
1090
|
* @see https://tailwindcss.com/docs/font-family
|
|
1082
1091
|
*/
|
|
1083
1092
|
"font-family": [{
|
|
1084
|
-
font: [
|
|
1093
|
+
font: [yr, s, t]
|
|
1085
1094
|
}],
|
|
1086
1095
|
/**
|
|
1087
1096
|
* Font Variant Numeric
|
|
@@ -1198,7 +1207,7 @@ const g = (e) => {
|
|
|
1198
1207
|
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
|
1199
1208
|
*/
|
|
1200
1209
|
"text-decoration-thickness": [{
|
|
1201
|
-
decoration: [u, "from-font", "auto", a,
|
|
1210
|
+
decoration: [u, "from-font", "auto", a, G]
|
|
1202
1211
|
}],
|
|
1203
1212
|
/**
|
|
1204
1213
|
* Text Decoration Color
|
|
@@ -1309,21 +1318,21 @@ const g = (e) => {
|
|
|
1309
1318
|
* @see https://tailwindcss.com/docs/background-position
|
|
1310
1319
|
*/
|
|
1311
1320
|
"bg-position": [{
|
|
1312
|
-
bg:
|
|
1321
|
+
bg: ue()
|
|
1313
1322
|
}],
|
|
1314
1323
|
/**
|
|
1315
1324
|
* Background Repeat
|
|
1316
1325
|
* @see https://tailwindcss.com/docs/background-repeat
|
|
1317
1326
|
*/
|
|
1318
1327
|
"bg-repeat": [{
|
|
1319
|
-
bg:
|
|
1328
|
+
bg: fe()
|
|
1320
1329
|
}],
|
|
1321
1330
|
/**
|
|
1322
1331
|
* Background Size
|
|
1323
1332
|
* @see https://tailwindcss.com/docs/background-size
|
|
1324
1333
|
*/
|
|
1325
1334
|
"bg-size": [{
|
|
1326
|
-
bg:
|
|
1335
|
+
bg: ge()
|
|
1327
1336
|
}],
|
|
1328
1337
|
/**
|
|
1329
1338
|
* Background Image
|
|
@@ -1333,10 +1342,10 @@ const g = (e) => {
|
|
|
1333
1342
|
bg: ["none", {
|
|
1334
1343
|
linear: [{
|
|
1335
1344
|
to: ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
|
|
1336
|
-
},
|
|
1345
|
+
}, M, a, s],
|
|
1337
1346
|
radial: ["", a, s],
|
|
1338
|
-
conic: [
|
|
1339
|
-
},
|
|
1347
|
+
conic: [M, a, s]
|
|
1348
|
+
}, kr, xr]
|
|
1340
1349
|
}],
|
|
1341
1350
|
/**
|
|
1342
1351
|
* Background Color
|
|
@@ -1685,7 +1694,7 @@ const g = (e) => {
|
|
|
1685
1694
|
* @see https://tailwindcss.com/docs/outline-width
|
|
1686
1695
|
*/
|
|
1687
1696
|
"outline-w": [{
|
|
1688
|
-
outline: ["", u, H,
|
|
1697
|
+
outline: ["", u, H, G]
|
|
1689
1698
|
}],
|
|
1690
1699
|
/**
|
|
1691
1700
|
* Outline Color
|
|
@@ -1760,7 +1769,7 @@ const g = (e) => {
|
|
|
1760
1769
|
* @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
|
|
1761
1770
|
*/
|
|
1762
1771
|
"ring-offset-w": [{
|
|
1763
|
-
"ring-offset": [u,
|
|
1772
|
+
"ring-offset": [u, G]
|
|
1764
1773
|
}],
|
|
1765
1774
|
/**
|
|
1766
1775
|
* Ring Offset Color
|
|
@@ -1811,14 +1820,14 @@ const g = (e) => {
|
|
|
1811
1820
|
* @see https://tailwindcss.com/docs/mix-blend-mode
|
|
1812
1821
|
*/
|
|
1813
1822
|
"mix-blend": [{
|
|
1814
|
-
"mix-blend": [...
|
|
1823
|
+
"mix-blend": [...be(), "plus-darker", "plus-lighter"]
|
|
1815
1824
|
}],
|
|
1816
1825
|
/**
|
|
1817
1826
|
* Background Blend Mode
|
|
1818
1827
|
* @see https://tailwindcss.com/docs/background-blend-mode
|
|
1819
1828
|
*/
|
|
1820
1829
|
"bg-blend": [{
|
|
1821
|
-
"bg-blend":
|
|
1830
|
+
"bg-blend": be()
|
|
1822
1831
|
}],
|
|
1823
1832
|
/**
|
|
1824
1833
|
* Mask Clip
|
|
@@ -1950,7 +1959,7 @@ const g = (e) => {
|
|
|
1950
1959
|
}]
|
|
1951
1960
|
}],
|
|
1952
1961
|
"mask-image-radial-pos": [{
|
|
1953
|
-
"mask-radial-at":
|
|
1962
|
+
"mask-radial-at": T()
|
|
1954
1963
|
}],
|
|
1955
1964
|
"mask-image-conic-pos": [{
|
|
1956
1965
|
"mask-conic": [u]
|
|
@@ -1986,21 +1995,21 @@ const g = (e) => {
|
|
|
1986
1995
|
* @see https://tailwindcss.com/docs/mask-position
|
|
1987
1996
|
*/
|
|
1988
1997
|
"mask-position": [{
|
|
1989
|
-
mask:
|
|
1998
|
+
mask: ue()
|
|
1990
1999
|
}],
|
|
1991
2000
|
/**
|
|
1992
2001
|
* Mask Repeat
|
|
1993
2002
|
* @see https://tailwindcss.com/docs/mask-repeat
|
|
1994
2003
|
*/
|
|
1995
2004
|
"mask-repeat": [{
|
|
1996
|
-
mask:
|
|
2005
|
+
mask: fe()
|
|
1997
2006
|
}],
|
|
1998
2007
|
/**
|
|
1999
2008
|
* Mask Size
|
|
2000
2009
|
* @see https://tailwindcss.com/docs/mask-size
|
|
2001
2010
|
*/
|
|
2002
2011
|
"mask-size": [{
|
|
2003
|
-
mask:
|
|
2012
|
+
mask: ge()
|
|
2004
2013
|
}],
|
|
2005
2014
|
/**
|
|
2006
2015
|
* Mask Type
|
|
@@ -2037,7 +2046,7 @@ const g = (e) => {
|
|
|
2037
2046
|
* @see https://tailwindcss.com/docs/blur
|
|
2038
2047
|
*/
|
|
2039
2048
|
blur: [{
|
|
2040
|
-
blur:
|
|
2049
|
+
blur: he()
|
|
2041
2050
|
}],
|
|
2042
2051
|
/**
|
|
2043
2052
|
* Brightness
|
|
@@ -2062,7 +2071,7 @@ const g = (e) => {
|
|
|
2062
2071
|
// Deprecated since Tailwind CSS v4.0.0
|
|
2063
2072
|
"",
|
|
2064
2073
|
"none",
|
|
2065
|
-
|
|
2074
|
+
A,
|
|
2066
2075
|
ee,
|
|
2067
2076
|
Z
|
|
2068
2077
|
]
|
|
@@ -2127,7 +2136,7 @@ const g = (e) => {
|
|
|
2127
2136
|
* @see https://tailwindcss.com/docs/backdrop-blur
|
|
2128
2137
|
*/
|
|
2129
2138
|
"backdrop-blur": [{
|
|
2130
|
-
"backdrop-blur":
|
|
2139
|
+
"backdrop-blur": he()
|
|
2131
2140
|
}],
|
|
2132
2141
|
/**
|
|
2133
2142
|
* Backdrop Brightness
|
|
@@ -2710,7 +2719,7 @@ const g = (e) => {
|
|
|
2710
2719
|
* @see https://tailwindcss.com/docs/stroke-width
|
|
2711
2720
|
*/
|
|
2712
2721
|
"stroke-w": [{
|
|
2713
|
-
stroke: [u, H,
|
|
2722
|
+
stroke: [u, H, G, ae]
|
|
2714
2723
|
}],
|
|
2715
2724
|
/**
|
|
2716
2725
|
* Stroke
|
|
@@ -2785,29 +2794,29 @@ const g = (e) => {
|
|
|
2785
2794
|
},
|
|
2786
2795
|
orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
|
|
2787
2796
|
};
|
|
2788
|
-
}, zr = /* @__PURE__ */
|
|
2789
|
-
function
|
|
2790
|
-
return zr(
|
|
2797
|
+
}, zr = /* @__PURE__ */ ar(Fr);
|
|
2798
|
+
function W(...e) {
|
|
2799
|
+
return zr(Ue(e));
|
|
2791
2800
|
}
|
|
2792
|
-
const
|
|
2801
|
+
const Be = O.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ f(
|
|
2793
2802
|
"div",
|
|
2794
2803
|
{
|
|
2795
2804
|
ref: r,
|
|
2796
|
-
className:
|
|
2805
|
+
className: W(
|
|
2797
2806
|
"rounded-xl border bg-card text-card-foreground shadow",
|
|
2798
2807
|
e
|
|
2799
2808
|
),
|
|
2800
2809
|
...t
|
|
2801
2810
|
}
|
|
2802
2811
|
));
|
|
2803
|
-
|
|
2804
|
-
const
|
|
2805
|
-
|
|
2812
|
+
Be.displayName = "Card";
|
|
2813
|
+
const Te = O.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ f("div", { ref: r, className: W("flex", e), ...t }));
|
|
2814
|
+
Te.displayName = "CardHeader";
|
|
2806
2815
|
const $e = O.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ f(
|
|
2807
2816
|
"div",
|
|
2808
2817
|
{
|
|
2809
2818
|
ref: r,
|
|
2810
|
-
className:
|
|
2819
|
+
className: W("font-semibold leading-none tracking-tight", e),
|
|
2811
2820
|
...t
|
|
2812
2821
|
}
|
|
2813
2822
|
));
|
|
@@ -2816,18 +2825,18 @@ const je = O.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ f(
|
|
|
2816
2825
|
"div",
|
|
2817
2826
|
{
|
|
2818
2827
|
ref: r,
|
|
2819
|
-
className:
|
|
2828
|
+
className: W("text-sm text-muted-foreground", e),
|
|
2820
2829
|
...t
|
|
2821
2830
|
}
|
|
2822
2831
|
));
|
|
2823
2832
|
je.displayName = "CardDescription";
|
|
2824
|
-
const Le = O.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ f("div", { ref: r, className:
|
|
2833
|
+
const Le = O.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ f("div", { ref: r, className: W("pt-0", e), ...t }));
|
|
2825
2834
|
Le.displayName = "CardContent";
|
|
2826
2835
|
const Oe = O.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ f(
|
|
2827
2836
|
"div",
|
|
2828
2837
|
{
|
|
2829
2838
|
ref: r,
|
|
2830
|
-
className:
|
|
2839
|
+
className: W("flex items-center pt-0", e),
|
|
2831
2840
|
...t
|
|
2832
2841
|
}
|
|
2833
2842
|
));
|
|
@@ -2838,15 +2847,15 @@ const Ve = ({
|
|
|
2838
2847
|
customClass: r = "",
|
|
2839
2848
|
iconSrc: o
|
|
2840
2849
|
}) => {
|
|
2841
|
-
const n =
|
|
2850
|
+
const n = Ce[e];
|
|
2842
2851
|
return /* @__PURE__ */ f(
|
|
2843
2852
|
"button",
|
|
2844
2853
|
{
|
|
2845
2854
|
className: `w-12 h-12 rounded-lg flex items-center justify-center cursor-pointer transition duration-150 ease-in-out whitespace-nowrap active:translate-y-[4px] ${r}`,
|
|
2846
2855
|
onClick: t,
|
|
2847
2856
|
style: {
|
|
2848
|
-
backgroundColor: n.
|
|
2849
|
-
boxShadow: `0 4px 0 ${n.
|
|
2857
|
+
backgroundColor: n.value,
|
|
2858
|
+
boxShadow: `0 4px 0 ${n.dark}`
|
|
2850
2859
|
},
|
|
2851
2860
|
children: /* @__PURE__ */ f("span", { className: "text-2xl", children: /* @__PURE__ */ f(
|
|
2852
2861
|
"img",
|
|
@@ -2870,27 +2879,27 @@ const Ve = ({
|
|
|
2870
2879
|
button: c = !1,
|
|
2871
2880
|
buttonLabel: l = "Button",
|
|
2872
2881
|
buttonPosition: p = "top-right",
|
|
2873
|
-
bgIconColor: m = "
|
|
2882
|
+
bgIconColor: m = "amber",
|
|
2874
2883
|
buttonColor: b = "lightBlue",
|
|
2875
2884
|
buttonVariant: h = "primary",
|
|
2876
2885
|
buttonSize: v = "medium",
|
|
2877
2886
|
onButtonClick: R
|
|
2878
2887
|
}) => {
|
|
2879
|
-
const
|
|
2888
|
+
const A = R ?? (() => {
|
|
2880
2889
|
});
|
|
2881
|
-
return /* @__PURE__ */
|
|
2882
|
-
|
|
2890
|
+
return /* @__PURE__ */ S(
|
|
2891
|
+
Be,
|
|
2883
2892
|
{
|
|
2884
2893
|
className: `
|
|
2885
2894
|
w-full max-w-full sm:max-w-md md:max-w-lg lg:max-w-xl
|
|
2886
2895
|
border-2 border-b-4 border-gray-200 border-opacity-80
|
|
2887
|
-
px-4 sm:px-6 py-4 sm:py-6 rounded-xl
|
|
2896
|
+
px-4 sm:px-6 py-4 sm:py-6 rounded-xl h-full
|
|
2888
2897
|
flex flex-col relative
|
|
2889
2898
|
${n}
|
|
2890
2899
|
`,
|
|
2891
2900
|
children: [
|
|
2892
|
-
(e || t || c && p === "top-right") && /* @__PURE__ */
|
|
2893
|
-
/* @__PURE__ */
|
|
2901
|
+
(e || t || c && p === "top-right") && /* @__PURE__ */ S(Te, { className: "mb-4 flex items-start justify-between", children: [
|
|
2902
|
+
/* @__PURE__ */ S("div", { className: "flex items-center gap-3", children: [
|
|
2894
2903
|
o && /* @__PURE__ */ f(
|
|
2895
2904
|
Ve,
|
|
2896
2905
|
{
|
|
@@ -2900,29 +2909,29 @@ const Ve = ({
|
|
|
2900
2909
|
}
|
|
2901
2910
|
}
|
|
2902
2911
|
),
|
|
2903
|
-
/* @__PURE__ */
|
|
2912
|
+
/* @__PURE__ */ S("div", { children: [
|
|
2904
2913
|
e && /* @__PURE__ */ f($e, { className: "text-main text-xl font-gabaritoBold font-medium leading-5 sm:text-lg md:text-xl", children: e }),
|
|
2905
2914
|
t && /* @__PURE__ */ f(je, { className: "text-sm sm:text-base text-gray-600", children: t })
|
|
2906
2915
|
] })
|
|
2907
2916
|
] }),
|
|
2908
2917
|
c && p === "top-right" && /* @__PURE__ */ f(
|
|
2909
|
-
|
|
2918
|
+
xe,
|
|
2910
2919
|
{
|
|
2911
2920
|
label: l,
|
|
2912
2921
|
size: v,
|
|
2913
|
-
onClick:
|
|
2922
|
+
onClick: A,
|
|
2914
2923
|
color: b,
|
|
2915
2924
|
variant: h
|
|
2916
2925
|
}
|
|
2917
2926
|
)
|
|
2918
2927
|
] }),
|
|
2919
|
-
r && /* @__PURE__ */ f(Le, { className: "flex flex-col gap-
|
|
2928
|
+
r && /* @__PURE__ */ f(Le, { className: "flex flex-col gap-4 font-regular", children: r }),
|
|
2920
2929
|
c && p === "bottom-right" && /* @__PURE__ */ f(Oe, { className: "flex justify-end pt-2", children: /* @__PURE__ */ f(
|
|
2921
|
-
|
|
2930
|
+
xe,
|
|
2922
2931
|
{
|
|
2923
2932
|
label: l,
|
|
2924
2933
|
size: v,
|
|
2925
|
-
onClick:
|
|
2934
|
+
onClick: A,
|
|
2926
2935
|
color: b,
|
|
2927
2936
|
variant: h
|
|
2928
2937
|
}
|
|
@@ -2933,12 +2942,12 @@ const Ve = ({
|
|
|
2933
2942
|
}, Mr = ({
|
|
2934
2943
|
color: e = "lightBlue"
|
|
2935
2944
|
}) => {
|
|
2936
|
-
const [t, r] =
|
|
2945
|
+
const [t, r] = De(!1), o = {
|
|
2937
2946
|
lightBlue: "bg-blue-500",
|
|
2938
2947
|
amber: "bg-amber-500",
|
|
2939
2948
|
cyan: "bg-cyan-500"
|
|
2940
2949
|
};
|
|
2941
|
-
return /* @__PURE__ */
|
|
2950
|
+
return /* @__PURE__ */ S("div", { className: "inline-block relative w-12 h-6", children: [
|
|
2942
2951
|
/* @__PURE__ */ f(
|
|
2943
2952
|
"input",
|
|
2944
2953
|
{
|
|
@@ -2965,21 +2974,21 @@ const Ve = ({
|
|
|
2965
2974
|
}
|
|
2966
2975
|
)
|
|
2967
2976
|
] });
|
|
2968
|
-
},
|
|
2969
|
-
bgIconColor: e = "
|
|
2977
|
+
}, Rr = ({
|
|
2978
|
+
bgIconColor: e = "amber",
|
|
2970
2979
|
iconSrc: t = "",
|
|
2971
2980
|
label: r = "",
|
|
2972
2981
|
percentage: o = 0,
|
|
2973
2982
|
showCard: n = !1,
|
|
2974
2983
|
showPercentage: c = !1
|
|
2975
2984
|
}) => {
|
|
2976
|
-
const l =
|
|
2985
|
+
const l = Ce[e], p = /* @__PURE__ */ S("div", { className: "flex w-full items-center", children: [
|
|
2977
2986
|
/* @__PURE__ */ f(Ve, { color: e, iconSrc: t, onClick: () => {
|
|
2978
2987
|
} }),
|
|
2979
|
-
/* @__PURE__ */
|
|
2980
|
-
/* @__PURE__ */
|
|
2981
|
-
r && /* @__PURE__ */ f("p", { className: "font-
|
|
2982
|
-
c && /* @__PURE__ */
|
|
2988
|
+
/* @__PURE__ */ S("div", { className: "flex flex-col ml-3 flex-1", children: [
|
|
2989
|
+
/* @__PURE__ */ S("div", { className: "flex justify-between mb-1 items-end", children: [
|
|
2990
|
+
r && /* @__PURE__ */ f("p", { className: "font-medium text-sec text-md", children: r }),
|
|
2991
|
+
c && /* @__PURE__ */ S("span", { className: "text-base text-gray-500", children: [
|
|
2983
2992
|
o,
|
|
2984
2993
|
"%"
|
|
2985
2994
|
] })
|
|
@@ -2996,7 +3005,7 @@ const Ve = ({
|
|
|
2996
3005
|
style: {
|
|
2997
3006
|
width: `${o}%`,
|
|
2998
3007
|
background: "linear-gradient(to right, #FFC801, #FFC801)",
|
|
2999
|
-
boxShadow: `0 1px 2px ${l.
|
|
3008
|
+
boxShadow: `0 1px 2px ${l.dark}`
|
|
3000
3009
|
}
|
|
3001
3010
|
}
|
|
3002
3011
|
)
|
|
@@ -3007,8 +3016,8 @@ const Ve = ({
|
|
|
3007
3016
|
return n ? /* @__PURE__ */ f(Nr, { children: p }) : p;
|
|
3008
3017
|
};
|
|
3009
3018
|
export {
|
|
3010
|
-
|
|
3019
|
+
xe as Button,
|
|
3011
3020
|
Nr as Card,
|
|
3012
|
-
|
|
3021
|
+
Rr as ProgressBar,
|
|
3013
3022
|
Mr as Toggle
|
|
3014
3023
|
};
|