next-ui-lib 0.1.13 → 0.1.14
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/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/ui.cjs.js +3 -3
- package/dist/ui.es.js +209 -172
- package/dist/ui.umd.js +2 -2
- package/package.json +1 -1
package/dist/ui.es.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import * as
|
|
1
|
+
import { jsx as f, jsxs as H } from "react/jsx-runtime";
|
|
2
|
+
import * as j from "react";
|
|
3
|
+
import { useState as Ve } from "react";
|
|
3
4
|
const Ce = {
|
|
4
5
|
lightBlue: {
|
|
5
6
|
primary: { text: "#FFFFFF", value: "#27a7e3", dark: "#1f8ecb" },
|
|
@@ -27,7 +28,7 @@ const Ce = {
|
|
|
27
28
|
large: "px-8 py-3 text-2xl rounded-2xl",
|
|
28
29
|
full: "px-8 py-2 text-xl rounded-2xl w-full"
|
|
29
30
|
}, u = Ce[e];
|
|
30
|
-
return /* @__PURE__ */
|
|
31
|
+
return /* @__PURE__ */ f(
|
|
31
32
|
"button",
|
|
32
33
|
{
|
|
33
34
|
className: `relative flex items-center justify-center cursor-pointer transition duration-150 ease-in-out whitespace-nowrap active:translate-y-[4px] ${i[o]} ${c}`,
|
|
@@ -43,7 +44,7 @@ const Ce = {
|
|
|
43
44
|
m.currentTarget.style.boxShadow = `0 4px 0 ${n == "primary" ? u.primary.dark : u.secondary.dark}`;
|
|
44
45
|
},
|
|
45
46
|
onClick: t,
|
|
46
|
-
children: /* @__PURE__ */
|
|
47
|
+
children: /* @__PURE__ */ f("span", { className: "font-bold", children: r })
|
|
47
48
|
}
|
|
48
49
|
);
|
|
49
50
|
};
|
|
@@ -56,19 +57,19 @@ function ze(e) {
|
|
|
56
57
|
} else for (r in e) e[r] && (o && (o += " "), o += r);
|
|
57
58
|
return o;
|
|
58
59
|
}
|
|
59
|
-
function
|
|
60
|
+
function We() {
|
|
60
61
|
for (var e, t, r = 0, o = "", n = arguments.length; r < n; r++) (e = arguments[r]) && (t = ze(e)) && (o && (o += " "), o += t);
|
|
61
62
|
return o;
|
|
62
63
|
}
|
|
63
64
|
const ce = "-", _e = (e) => {
|
|
64
|
-
const t =
|
|
65
|
+
const t = Ue(e), {
|
|
65
66
|
conflictingClassGroups: r,
|
|
66
67
|
conflictingClassGroupModifiers: o
|
|
67
68
|
} = e;
|
|
68
69
|
return {
|
|
69
70
|
getClassGroupId: (i) => {
|
|
70
71
|
const u = i.split(ce);
|
|
71
|
-
return u[0] === "" && u.length !== 1 && u.shift(), Se(u, t) ||
|
|
72
|
+
return u[0] === "" && u.length !== 1 && u.shift(), Se(u, t) || De(i);
|
|
72
73
|
},
|
|
73
74
|
getConflictingClassGroupIds: (i, u) => {
|
|
74
75
|
const m = r[i] || [];
|
|
@@ -87,13 +88,13 @@ const ce = "-", _e = (e) => {
|
|
|
87
88
|
return t.validators.find(({
|
|
88
89
|
validator: i
|
|
89
90
|
}) => i(c))?.classGroupId;
|
|
90
|
-
}, ye = /^\[(.+)\]$/,
|
|
91
|
+
}, ye = /^\[(.+)\]$/, De = (e) => {
|
|
91
92
|
if (ye.test(e)) {
|
|
92
93
|
const t = ye.exec(e)[1], r = t?.substring(0, t.indexOf(":"));
|
|
93
94
|
if (r)
|
|
94
95
|
return "arbitrary.." + r;
|
|
95
96
|
}
|
|
96
|
-
},
|
|
97
|
+
}, Ue = (e) => {
|
|
97
98
|
const {
|
|
98
99
|
theme: t,
|
|
99
100
|
classGroups: r
|
|
@@ -112,7 +113,7 @@ const ce = "-", _e = (e) => {
|
|
|
112
113
|
return;
|
|
113
114
|
}
|
|
114
115
|
if (typeof n == "function") {
|
|
115
|
-
if (
|
|
116
|
+
if (He(n)) {
|
|
116
117
|
ne(n(o), t, r, o);
|
|
117
118
|
return;
|
|
118
119
|
}
|
|
@@ -134,7 +135,7 @@ const ce = "-", _e = (e) => {
|
|
|
134
135
|
validators: []
|
|
135
136
|
}), r = r.nextPart.get(o);
|
|
136
137
|
}), r;
|
|
137
|
-
},
|
|
138
|
+
}, He = (e) => e.isThemeGetter, qe = (e) => {
|
|
138
139
|
if (e < 1)
|
|
139
140
|
return {
|
|
140
141
|
get: () => {
|
|
@@ -158,34 +159,34 @@ const ce = "-", _e = (e) => {
|
|
|
158
159
|
r.has(c) ? r.set(c, i) : n(c, i);
|
|
159
160
|
}
|
|
160
161
|
};
|
|
161
|
-
}, ie = "!", le = ":",
|
|
162
|
+
}, ie = "!", le = ":", Je = le.length, Xe = (e) => {
|
|
162
163
|
const {
|
|
163
164
|
prefix: t,
|
|
164
165
|
experimentalParseClassName: r
|
|
165
166
|
} = e;
|
|
166
167
|
let o = (n) => {
|
|
167
168
|
const c = [];
|
|
168
|
-
let i = 0, u = 0, m = 0,
|
|
169
|
+
let i = 0, u = 0, m = 0, b;
|
|
169
170
|
for (let k = 0; k < n.length; k++) {
|
|
170
171
|
let v = n[k];
|
|
171
172
|
if (i === 0 && u === 0) {
|
|
172
173
|
if (v === le) {
|
|
173
|
-
c.push(n.slice(m, k)), m = k +
|
|
174
|
+
c.push(n.slice(m, k)), m = k + Je;
|
|
174
175
|
continue;
|
|
175
176
|
}
|
|
176
177
|
if (v === "/") {
|
|
177
|
-
|
|
178
|
+
b = k;
|
|
178
179
|
continue;
|
|
179
180
|
}
|
|
180
181
|
}
|
|
181
182
|
v === "[" ? i++ : v === "]" ? i-- : v === "(" ? u++ : v === ")" && u--;
|
|
182
183
|
}
|
|
183
|
-
const
|
|
184
|
+
const h = c.length === 0 ? n : n.substring(m), C = Ke(h), N = C !== h, W = b && b > m ? b - m : void 0;
|
|
184
185
|
return {
|
|
185
186
|
modifiers: c,
|
|
186
|
-
hasImportantModifier:
|
|
187
|
+
hasImportantModifier: N,
|
|
187
188
|
baseClassName: C,
|
|
188
|
-
maybePostfixModifierPosition:
|
|
189
|
+
maybePostfixModifierPosition: W
|
|
189
190
|
};
|
|
190
191
|
};
|
|
191
192
|
if (t) {
|
|
@@ -206,7 +207,7 @@ const ce = "-", _e = (e) => {
|
|
|
206
207
|
});
|
|
207
208
|
}
|
|
208
209
|
return o;
|
|
209
|
-
},
|
|
210
|
+
}, Ke = (e) => e.endsWith(ie) ? e.substring(0, e.length - 1) : e.startsWith(ie) ? e.substring(1) : e, Qe = (e) => {
|
|
210
211
|
const t = Object.fromEntries(e.orderSensitiveModifiers.map((o) => [o, !0]));
|
|
211
212
|
return (o) => {
|
|
212
213
|
if (o.length <= 1)
|
|
@@ -217,57 +218,57 @@ const ce = "-", _e = (e) => {
|
|
|
217
218
|
i[0] === "[" || t[i] ? (n.push(...c.sort(), i), c = []) : c.push(i);
|
|
218
219
|
}), n.push(...c.sort()), n;
|
|
219
220
|
};
|
|
220
|
-
},
|
|
221
|
-
cache:
|
|
222
|
-
parseClassName:
|
|
223
|
-
sortModifiers:
|
|
221
|
+
}, Ye = (e) => ({
|
|
222
|
+
cache: qe(e.cacheSize),
|
|
223
|
+
parseClassName: Xe(e),
|
|
224
|
+
sortModifiers: Qe(e),
|
|
224
225
|
..._e(e)
|
|
225
|
-
}),
|
|
226
|
+
}), Ze = /\s+/, er = (e, t) => {
|
|
226
227
|
const {
|
|
227
228
|
parseClassName: r,
|
|
228
229
|
getClassGroupId: o,
|
|
229
230
|
getConflictingClassGroupIds: n,
|
|
230
231
|
sortModifiers: c
|
|
231
|
-
} = t, i = [], u = e.trim().split(
|
|
232
|
+
} = t, i = [], u = e.trim().split(Ze);
|
|
232
233
|
let m = "";
|
|
233
|
-
for (let
|
|
234
|
-
const
|
|
234
|
+
for (let b = u.length - 1; b >= 0; b -= 1) {
|
|
235
|
+
const h = u[b], {
|
|
235
236
|
isExternal: C,
|
|
236
|
-
modifiers:
|
|
237
|
-
hasImportantModifier:
|
|
237
|
+
modifiers: N,
|
|
238
|
+
hasImportantModifier: W,
|
|
238
239
|
baseClassName: k,
|
|
239
240
|
maybePostfixModifierPosition: v
|
|
240
|
-
} = r(
|
|
241
|
+
} = r(h);
|
|
241
242
|
if (C) {
|
|
242
|
-
m =
|
|
243
|
+
m = h + (m.length > 0 ? " " + m : m);
|
|
243
244
|
continue;
|
|
244
245
|
}
|
|
245
|
-
let
|
|
246
|
+
let T = !!v, R = o(T ? k.substring(0, v) : k);
|
|
246
247
|
if (!R) {
|
|
247
|
-
if (!
|
|
248
|
-
m =
|
|
248
|
+
if (!T) {
|
|
249
|
+
m = h + (m.length > 0 ? " " + m : m);
|
|
249
250
|
continue;
|
|
250
251
|
}
|
|
251
252
|
if (R = o(k), !R) {
|
|
252
|
-
m =
|
|
253
|
+
m = h + (m.length > 0 ? " " + m : m);
|
|
253
254
|
continue;
|
|
254
255
|
}
|
|
255
|
-
|
|
256
|
+
T = !1;
|
|
256
257
|
}
|
|
257
|
-
const
|
|
258
|
-
if (i.includes(
|
|
258
|
+
const q = c(N).join(":"), _ = W ? q + ie : q, G = _ + R;
|
|
259
|
+
if (i.includes(G))
|
|
259
260
|
continue;
|
|
260
|
-
i.push(
|
|
261
|
-
const
|
|
262
|
-
for (let F = 0; F <
|
|
263
|
-
const D =
|
|
264
|
-
i.push(
|
|
261
|
+
i.push(G);
|
|
262
|
+
const E = n(R, T);
|
|
263
|
+
for (let F = 0; F < E.length; ++F) {
|
|
264
|
+
const D = E[F];
|
|
265
|
+
i.push(_ + D);
|
|
265
266
|
}
|
|
266
|
-
m =
|
|
267
|
+
m = h + (m.length > 0 ? " " + m : m);
|
|
267
268
|
}
|
|
268
269
|
return m;
|
|
269
270
|
};
|
|
270
|
-
function
|
|
271
|
+
function rr() {
|
|
271
272
|
let e = 0, t, r, o = "";
|
|
272
273
|
for (; e < arguments.length; )
|
|
273
274
|
(t = arguments[e++]) && (r = Me(t)) && (o && (o += " "), o += r);
|
|
@@ -281,39 +282,39 @@ const Me = (e) => {
|
|
|
281
282
|
e[o] && (t = Me(e[o])) && (r && (r += " "), r += t);
|
|
282
283
|
return r;
|
|
283
284
|
};
|
|
284
|
-
function
|
|
285
|
+
function or(e, ...t) {
|
|
285
286
|
let r, o, n, c = i;
|
|
286
287
|
function i(m) {
|
|
287
|
-
const
|
|
288
|
-
return r =
|
|
288
|
+
const b = t.reduce((h, C) => C(h), e());
|
|
289
|
+
return r = Ye(b), o = r.cache.get, n = r.cache.set, c = u, u(m);
|
|
289
290
|
}
|
|
290
291
|
function u(m) {
|
|
291
|
-
const
|
|
292
|
-
if (
|
|
293
|
-
return
|
|
294
|
-
const
|
|
295
|
-
return n(m,
|
|
292
|
+
const b = o(m);
|
|
293
|
+
if (b)
|
|
294
|
+
return b;
|
|
295
|
+
const h = er(m, r);
|
|
296
|
+
return n(m, h), h;
|
|
296
297
|
}
|
|
297
298
|
return function() {
|
|
298
|
-
return c(
|
|
299
|
+
return c(rr.apply(null, arguments));
|
|
299
300
|
};
|
|
300
301
|
}
|
|
301
|
-
const
|
|
302
|
+
const g = (e) => {
|
|
302
303
|
const t = (r) => r[e] || [];
|
|
303
304
|
return t.isThemeGetter = !0, t;
|
|
304
|
-
},
|
|
305
|
+
}, Ne = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Ae = /^\((?:(\w[\w-]*):)?(.+)\)$/i, tr = /^\d+\/\d+$/, sr = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, ar = /\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$/, nr = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, ir = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, lr = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, $ = (e) => tr.test(e), p = (e) => !!e && !Number.isNaN(Number(e)), A = (e) => !!e && Number.isInteger(Number(e)), se = (e) => e.endsWith("%") && p(e.slice(0, -1)), M = (e) => sr.test(e), cr = () => !0, dr = (e) => (
|
|
305
306
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
306
307
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
307
308
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
308
|
-
|
|
309
|
-
), Re = () => !1,
|
|
310
|
-
const o = Ae.exec(e);
|
|
311
|
-
return o ? o[1] ? t(o[1]) : r(o[2]) : !1;
|
|
312
|
-
}, V = (e, t, r = !1) => {
|
|
309
|
+
ar.test(e) && !nr.test(e)
|
|
310
|
+
), Re = () => !1, mr = (e) => ir.test(e), pr = (e) => lr.test(e), ur = (e) => !s(e) && !a(e), fr = (e) => L(e, Pe, Re), s = (e) => Ne.test(e), P = (e) => L(e, Te, dr), ae = (e) => L(e, yr, p), ke = (e) => L(e, Fe, Re), gr = (e) => L(e, Ie, pr), Z = (e) => L(e, Ge, mr), a = (e) => Ae.test(e), U = (e) => O(e, Te), br = (e) => O(e, wr), ve = (e) => O(e, Fe), hr = (e) => O(e, Pe), xr = (e) => O(e, Ie), ee = (e) => O(e, Ge, !0), L = (e, t, r) => {
|
|
313
311
|
const o = Ne.exec(e);
|
|
312
|
+
return o ? o[1] ? t(o[1]) : r(o[2]) : !1;
|
|
313
|
+
}, O = (e, t, r = !1) => {
|
|
314
|
+
const o = Ae.exec(e);
|
|
314
315
|
return o ? o[1] ? t(o[1]) : r : !1;
|
|
315
|
-
}, Fe = (e) => e === "position" || e === "percentage", Ie = (e) => e === "image" || e === "url", Pe = (e) => e === "length" || e === "size" || e === "bg-size",
|
|
316
|
-
const e =
|
|
316
|
+
}, Fe = (e) => e === "position" || e === "percentage", Ie = (e) => e === "image" || e === "url", Pe = (e) => e === "length" || e === "size" || e === "bg-size", Te = (e) => e === "length", yr = (e) => e === "number", wr = (e) => e === "family-name", Ge = (e) => e === "shadow", kr = () => {
|
|
317
|
+
const e = g("color"), t = g("font"), r = g("text"), o = g("font-weight"), n = g("tracking"), c = g("leading"), i = g("breakpoint"), u = g("container"), m = g("spacing"), b = g("radius"), h = g("shadow"), C = g("inset-shadow"), N = g("text-shadow"), W = g("drop-shadow"), k = g("blur"), v = g("perspective"), T = g("aspect"), R = g("ease"), q = g("animate"), _ = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], G = () => [
|
|
317
318
|
"center",
|
|
318
319
|
"top",
|
|
319
320
|
"bottom",
|
|
@@ -331,30 +332,30 @@ const f = (e) => {
|
|
|
331
332
|
"bottom-left",
|
|
332
333
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
333
334
|
"left-bottom"
|
|
334
|
-
],
|
|
335
|
-
span: ["full",
|
|
336
|
-
},
|
|
335
|
+
], E = () => [...G(), a, s], F = () => ["auto", "hidden", "clip", "visible", "scroll"], D = () => ["auto", "contain", "none"], d = () => [a, s, m], z = () => [$, "full", "auto", ...d()], de = () => [A, "none", "subgrid", a, s], me = () => ["auto", {
|
|
336
|
+
span: ["full", A, a, s]
|
|
337
|
+
}, A, a, s], J = () => [A, "auto", a, s], pe = () => ["auto", "min", "max", "fr", a, s], re = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], B = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], S = () => ["auto", ...d()], I = () => [$, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...d()], l = () => [e, a, s], ue = () => [...G(), ve, ke, {
|
|
337
338
|
position: [a, s]
|
|
338
339
|
}], fe = () => ["no-repeat", {
|
|
339
340
|
repeat: ["", "x", "y", "space", "round"]
|
|
340
|
-
}], ge = () => ["auto", "cover", "contain",
|
|
341
|
+
}], ge = () => ["auto", "cover", "contain", hr, fr, {
|
|
341
342
|
size: [a, s]
|
|
342
343
|
}], oe = () => [se, U, P], y = () => [
|
|
343
344
|
// Deprecated since Tailwind CSS v4.0.0
|
|
344
345
|
"",
|
|
345
346
|
"none",
|
|
346
347
|
"full",
|
|
347
|
-
|
|
348
|
+
b,
|
|
348
349
|
a,
|
|
349
350
|
s
|
|
350
|
-
], w = () => ["", p, U, P],
|
|
351
|
+
], w = () => ["", p, U, P], 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 = () => [p, se, ve, ke], he = () => [
|
|
351
352
|
// Deprecated since Tailwind CSS v4.0.0
|
|
352
353
|
"",
|
|
353
354
|
"none",
|
|
354
355
|
k,
|
|
355
356
|
a,
|
|
356
357
|
s
|
|
357
|
-
],
|
|
358
|
+
], K = () => ["none", p, a, s], Q = () => ["none", p, a, s], te = () => [p, a, s], Y = () => [$, "full", ...d()];
|
|
358
359
|
return {
|
|
359
360
|
cacheSize: 500,
|
|
360
361
|
theme: {
|
|
@@ -362,11 +363,11 @@ const f = (e) => {
|
|
|
362
363
|
aspect: ["video"],
|
|
363
364
|
blur: [M],
|
|
364
365
|
breakpoint: [M],
|
|
365
|
-
color: [
|
|
366
|
+
color: [cr],
|
|
366
367
|
container: [M],
|
|
367
368
|
"drop-shadow": [M],
|
|
368
369
|
ease: ["in", "out", "in-out"],
|
|
369
|
-
font: [
|
|
370
|
+
font: [ur],
|
|
370
371
|
"font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
|
|
371
372
|
"inset-shadow": [M],
|
|
372
373
|
leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
|
|
@@ -387,7 +388,7 @@ const f = (e) => {
|
|
|
387
388
|
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
388
389
|
*/
|
|
389
390
|
aspect: [{
|
|
390
|
-
aspect: ["auto", "square",
|
|
391
|
+
aspect: ["auto", "square", $, s, a, T]
|
|
391
392
|
}],
|
|
392
393
|
/**
|
|
393
394
|
* Container
|
|
@@ -407,14 +408,14 @@ const f = (e) => {
|
|
|
407
408
|
* @see https://tailwindcss.com/docs/break-after
|
|
408
409
|
*/
|
|
409
410
|
"break-after": [{
|
|
410
|
-
"break-after":
|
|
411
|
+
"break-after": _()
|
|
411
412
|
}],
|
|
412
413
|
/**
|
|
413
414
|
* Break Before
|
|
414
415
|
* @see https://tailwindcss.com/docs/break-before
|
|
415
416
|
*/
|
|
416
417
|
"break-before": [{
|
|
417
|
-
"break-before":
|
|
418
|
+
"break-before": _()
|
|
418
419
|
}],
|
|
419
420
|
/**
|
|
420
421
|
* Break Inside
|
|
@@ -478,7 +479,7 @@ const f = (e) => {
|
|
|
478
479
|
* @see https://tailwindcss.com/docs/object-position
|
|
479
480
|
*/
|
|
480
481
|
"object-position": [{
|
|
481
|
-
object:
|
|
482
|
+
object: E()
|
|
482
483
|
}],
|
|
483
484
|
/**
|
|
484
485
|
* Overflow
|
|
@@ -600,7 +601,7 @@ const f = (e) => {
|
|
|
600
601
|
* @see https://tailwindcss.com/docs/z-index
|
|
601
602
|
*/
|
|
602
603
|
z: [{
|
|
603
|
-
z: [
|
|
604
|
+
z: [A, "auto", a, s]
|
|
604
605
|
}],
|
|
605
606
|
// ------------------------
|
|
606
607
|
// --- Flexbox and Grid ---
|
|
@@ -610,7 +611,7 @@ const f = (e) => {
|
|
|
610
611
|
* @see https://tailwindcss.com/docs/flex-basis
|
|
611
612
|
*/
|
|
612
613
|
basis: [{
|
|
613
|
-
basis: [
|
|
614
|
+
basis: [$, "full", "auto", u, ...d()]
|
|
614
615
|
}],
|
|
615
616
|
/**
|
|
616
617
|
* Flex Direction
|
|
@@ -631,7 +632,7 @@ const f = (e) => {
|
|
|
631
632
|
* @see https://tailwindcss.com/docs/flex
|
|
632
633
|
*/
|
|
633
634
|
flex: [{
|
|
634
|
-
flex: [p,
|
|
635
|
+
flex: [p, $, "auto", "initial", "none", s]
|
|
635
636
|
}],
|
|
636
637
|
/**
|
|
637
638
|
* Flex Grow
|
|
@@ -652,7 +653,7 @@ const f = (e) => {
|
|
|
652
653
|
* @see https://tailwindcss.com/docs/order
|
|
653
654
|
*/
|
|
654
655
|
order: [{
|
|
655
|
-
order: [
|
|
656
|
+
order: [A, "first", "last", "none", a, s]
|
|
656
657
|
}],
|
|
657
658
|
/**
|
|
658
659
|
* Grid Template Columns
|
|
@@ -673,14 +674,14 @@ const f = (e) => {
|
|
|
673
674
|
* @see https://tailwindcss.com/docs/grid-column
|
|
674
675
|
*/
|
|
675
676
|
"col-start": [{
|
|
676
|
-
"col-start":
|
|
677
|
+
"col-start": J()
|
|
677
678
|
}],
|
|
678
679
|
/**
|
|
679
680
|
* Grid Column End
|
|
680
681
|
* @see https://tailwindcss.com/docs/grid-column
|
|
681
682
|
*/
|
|
682
683
|
"col-end": [{
|
|
683
|
-
"col-end":
|
|
684
|
+
"col-end": J()
|
|
684
685
|
}],
|
|
685
686
|
/**
|
|
686
687
|
* Grid Template Rows
|
|
@@ -701,14 +702,14 @@ const f = (e) => {
|
|
|
701
702
|
* @see https://tailwindcss.com/docs/grid-row
|
|
702
703
|
*/
|
|
703
704
|
"row-start": [{
|
|
704
|
-
"row-start":
|
|
705
|
+
"row-start": J()
|
|
705
706
|
}],
|
|
706
707
|
/**
|
|
707
708
|
* Grid Row End
|
|
708
709
|
* @see https://tailwindcss.com/docs/grid-row
|
|
709
710
|
*/
|
|
710
711
|
"row-end": [{
|
|
711
|
-
"row-end":
|
|
712
|
+
"row-end": J()
|
|
712
713
|
}],
|
|
713
714
|
/**
|
|
714
715
|
* Grid Auto Flow
|
|
@@ -1078,7 +1079,7 @@ const f = (e) => {
|
|
|
1078
1079
|
* @see https://tailwindcss.com/docs/font-family
|
|
1079
1080
|
*/
|
|
1080
1081
|
"font-family": [{
|
|
1081
|
-
font: [
|
|
1082
|
+
font: [br, s, t]
|
|
1082
1083
|
}],
|
|
1083
1084
|
/**
|
|
1084
1085
|
* Font Variant Numeric
|
|
@@ -1188,7 +1189,7 @@ const f = (e) => {
|
|
|
1188
1189
|
* @see https://tailwindcss.com/docs/text-decoration-style
|
|
1189
1190
|
*/
|
|
1190
1191
|
"text-decoration-style": [{
|
|
1191
|
-
decoration: [...
|
|
1192
|
+
decoration: [...X(), "wavy"]
|
|
1192
1193
|
}],
|
|
1193
1194
|
/**
|
|
1194
1195
|
* Text Decoration Thickness
|
|
@@ -1330,10 +1331,10 @@ const f = (e) => {
|
|
|
1330
1331
|
bg: ["none", {
|
|
1331
1332
|
linear: [{
|
|
1332
1333
|
to: ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
|
|
1333
|
-
},
|
|
1334
|
+
}, A, a, s],
|
|
1334
1335
|
radial: ["", a, s],
|
|
1335
|
-
conic: [
|
|
1336
|
-
},
|
|
1336
|
+
conic: [A, a, s]
|
|
1337
|
+
}, xr, gr]
|
|
1337
1338
|
}],
|
|
1338
1339
|
/**
|
|
1339
1340
|
* Background Color
|
|
@@ -1584,14 +1585,14 @@ const f = (e) => {
|
|
|
1584
1585
|
* @see https://tailwindcss.com/docs/border-style
|
|
1585
1586
|
*/
|
|
1586
1587
|
"border-style": [{
|
|
1587
|
-
border: [...
|
|
1588
|
+
border: [...X(), "hidden", "none"]
|
|
1588
1589
|
}],
|
|
1589
1590
|
/**
|
|
1590
1591
|
* Divide Style
|
|
1591
1592
|
* @see https://tailwindcss.com/docs/border-style#setting-the-divider-style
|
|
1592
1593
|
*/
|
|
1593
1594
|
"divide-style": [{
|
|
1594
|
-
divide: [...
|
|
1595
|
+
divide: [...X(), "hidden", "none"]
|
|
1595
1596
|
}],
|
|
1596
1597
|
/**
|
|
1597
1598
|
* Border Color
|
|
@@ -1668,7 +1669,7 @@ const f = (e) => {
|
|
|
1668
1669
|
* @see https://tailwindcss.com/docs/outline-style
|
|
1669
1670
|
*/
|
|
1670
1671
|
"outline-style": [{
|
|
1671
|
-
outline: [...
|
|
1672
|
+
outline: [...X(), "none", "hidden"]
|
|
1672
1673
|
}],
|
|
1673
1674
|
/**
|
|
1674
1675
|
* Outline Offset
|
|
@@ -1703,7 +1704,7 @@ const f = (e) => {
|
|
|
1703
1704
|
// Deprecated since Tailwind CSS v4.0.0
|
|
1704
1705
|
"",
|
|
1705
1706
|
"none",
|
|
1706
|
-
|
|
1707
|
+
h,
|
|
1707
1708
|
ee,
|
|
1708
1709
|
Z
|
|
1709
1710
|
]
|
|
@@ -1787,7 +1788,7 @@ const f = (e) => {
|
|
|
1787
1788
|
* @see https://tailwindcss.com/docs/text-shadow
|
|
1788
1789
|
*/
|
|
1789
1790
|
"text-shadow": [{
|
|
1790
|
-
"text-shadow": ["none",
|
|
1791
|
+
"text-shadow": ["none", N, ee, Z]
|
|
1791
1792
|
}],
|
|
1792
1793
|
/**
|
|
1793
1794
|
* Text Shadow Color
|
|
@@ -1839,10 +1840,10 @@ const f = (e) => {
|
|
|
1839
1840
|
"mask-linear": [p]
|
|
1840
1841
|
}],
|
|
1841
1842
|
"mask-image-linear-from-pos": [{
|
|
1842
|
-
"mask-linear-from":
|
|
1843
|
+
"mask-linear-from": x()
|
|
1843
1844
|
}],
|
|
1844
1845
|
"mask-image-linear-to-pos": [{
|
|
1845
|
-
"mask-linear-to":
|
|
1846
|
+
"mask-linear-to": x()
|
|
1846
1847
|
}],
|
|
1847
1848
|
"mask-image-linear-from-color": [{
|
|
1848
1849
|
"mask-linear-from": l()
|
|
@@ -1851,10 +1852,10 @@ const f = (e) => {
|
|
|
1851
1852
|
"mask-linear-to": l()
|
|
1852
1853
|
}],
|
|
1853
1854
|
"mask-image-t-from-pos": [{
|
|
1854
|
-
"mask-t-from":
|
|
1855
|
+
"mask-t-from": x()
|
|
1855
1856
|
}],
|
|
1856
1857
|
"mask-image-t-to-pos": [{
|
|
1857
|
-
"mask-t-to":
|
|
1858
|
+
"mask-t-to": x()
|
|
1858
1859
|
}],
|
|
1859
1860
|
"mask-image-t-from-color": [{
|
|
1860
1861
|
"mask-t-from": l()
|
|
@@ -1863,10 +1864,10 @@ const f = (e) => {
|
|
|
1863
1864
|
"mask-t-to": l()
|
|
1864
1865
|
}],
|
|
1865
1866
|
"mask-image-r-from-pos": [{
|
|
1866
|
-
"mask-r-from":
|
|
1867
|
+
"mask-r-from": x()
|
|
1867
1868
|
}],
|
|
1868
1869
|
"mask-image-r-to-pos": [{
|
|
1869
|
-
"mask-r-to":
|
|
1870
|
+
"mask-r-to": x()
|
|
1870
1871
|
}],
|
|
1871
1872
|
"mask-image-r-from-color": [{
|
|
1872
1873
|
"mask-r-from": l()
|
|
@@ -1875,10 +1876,10 @@ const f = (e) => {
|
|
|
1875
1876
|
"mask-r-to": l()
|
|
1876
1877
|
}],
|
|
1877
1878
|
"mask-image-b-from-pos": [{
|
|
1878
|
-
"mask-b-from":
|
|
1879
|
+
"mask-b-from": x()
|
|
1879
1880
|
}],
|
|
1880
1881
|
"mask-image-b-to-pos": [{
|
|
1881
|
-
"mask-b-to":
|
|
1882
|
+
"mask-b-to": x()
|
|
1882
1883
|
}],
|
|
1883
1884
|
"mask-image-b-from-color": [{
|
|
1884
1885
|
"mask-b-from": l()
|
|
@@ -1887,10 +1888,10 @@ const f = (e) => {
|
|
|
1887
1888
|
"mask-b-to": l()
|
|
1888
1889
|
}],
|
|
1889
1890
|
"mask-image-l-from-pos": [{
|
|
1890
|
-
"mask-l-from":
|
|
1891
|
+
"mask-l-from": x()
|
|
1891
1892
|
}],
|
|
1892
1893
|
"mask-image-l-to-pos": [{
|
|
1893
|
-
"mask-l-to":
|
|
1894
|
+
"mask-l-to": x()
|
|
1894
1895
|
}],
|
|
1895
1896
|
"mask-image-l-from-color": [{
|
|
1896
1897
|
"mask-l-from": l()
|
|
@@ -1899,10 +1900,10 @@ const f = (e) => {
|
|
|
1899
1900
|
"mask-l-to": l()
|
|
1900
1901
|
}],
|
|
1901
1902
|
"mask-image-x-from-pos": [{
|
|
1902
|
-
"mask-x-from":
|
|
1903
|
+
"mask-x-from": x()
|
|
1903
1904
|
}],
|
|
1904
1905
|
"mask-image-x-to-pos": [{
|
|
1905
|
-
"mask-x-to":
|
|
1906
|
+
"mask-x-to": x()
|
|
1906
1907
|
}],
|
|
1907
1908
|
"mask-image-x-from-color": [{
|
|
1908
1909
|
"mask-x-from": l()
|
|
@@ -1911,10 +1912,10 @@ const f = (e) => {
|
|
|
1911
1912
|
"mask-x-to": l()
|
|
1912
1913
|
}],
|
|
1913
1914
|
"mask-image-y-from-pos": [{
|
|
1914
|
-
"mask-y-from":
|
|
1915
|
+
"mask-y-from": x()
|
|
1915
1916
|
}],
|
|
1916
1917
|
"mask-image-y-to-pos": [{
|
|
1917
|
-
"mask-y-to":
|
|
1918
|
+
"mask-y-to": x()
|
|
1918
1919
|
}],
|
|
1919
1920
|
"mask-image-y-from-color": [{
|
|
1920
1921
|
"mask-y-from": l()
|
|
@@ -1926,10 +1927,10 @@ const f = (e) => {
|
|
|
1926
1927
|
"mask-radial": [a, s]
|
|
1927
1928
|
}],
|
|
1928
1929
|
"mask-image-radial-from-pos": [{
|
|
1929
|
-
"mask-radial-from":
|
|
1930
|
+
"mask-radial-from": x()
|
|
1930
1931
|
}],
|
|
1931
1932
|
"mask-image-radial-to-pos": [{
|
|
1932
|
-
"mask-radial-to":
|
|
1933
|
+
"mask-radial-to": x()
|
|
1933
1934
|
}],
|
|
1934
1935
|
"mask-image-radial-from-color": [{
|
|
1935
1936
|
"mask-radial-from": l()
|
|
@@ -1947,16 +1948,16 @@ const f = (e) => {
|
|
|
1947
1948
|
}]
|
|
1948
1949
|
}],
|
|
1949
1950
|
"mask-image-radial-pos": [{
|
|
1950
|
-
"mask-radial-at":
|
|
1951
|
+
"mask-radial-at": G()
|
|
1951
1952
|
}],
|
|
1952
1953
|
"mask-image-conic-pos": [{
|
|
1953
1954
|
"mask-conic": [p]
|
|
1954
1955
|
}],
|
|
1955
1956
|
"mask-image-conic-from-pos": [{
|
|
1956
|
-
"mask-conic-from":
|
|
1957
|
+
"mask-conic-from": x()
|
|
1957
1958
|
}],
|
|
1958
1959
|
"mask-image-conic-to-pos": [{
|
|
1959
|
-
"mask-conic-to":
|
|
1960
|
+
"mask-conic-to": x()
|
|
1960
1961
|
}],
|
|
1961
1962
|
"mask-image-conic-from-color": [{
|
|
1962
1963
|
"mask-conic-from": l()
|
|
@@ -2059,7 +2060,7 @@ const f = (e) => {
|
|
|
2059
2060
|
// Deprecated since Tailwind CSS v4.0.0
|
|
2060
2061
|
"",
|
|
2061
2062
|
"none",
|
|
2062
|
-
|
|
2063
|
+
W,
|
|
2063
2064
|
ee,
|
|
2064
2065
|
Z
|
|
2065
2066
|
]
|
|
@@ -2270,7 +2271,7 @@ const f = (e) => {
|
|
|
2270
2271
|
* @see https://tailwindcss.com/docs/animation
|
|
2271
2272
|
*/
|
|
2272
2273
|
animate: [{
|
|
2273
|
-
animate: ["none",
|
|
2274
|
+
animate: ["none", q, a, s]
|
|
2274
2275
|
}],
|
|
2275
2276
|
// ------------------
|
|
2276
2277
|
// --- Transforms ---
|
|
@@ -2294,63 +2295,63 @@ const f = (e) => {
|
|
|
2294
2295
|
* @see https://tailwindcss.com/docs/perspective-origin
|
|
2295
2296
|
*/
|
|
2296
2297
|
"perspective-origin": [{
|
|
2297
|
-
"perspective-origin":
|
|
2298
|
+
"perspective-origin": E()
|
|
2298
2299
|
}],
|
|
2299
2300
|
/**
|
|
2300
2301
|
* Rotate
|
|
2301
2302
|
* @see https://tailwindcss.com/docs/rotate
|
|
2302
2303
|
*/
|
|
2303
2304
|
rotate: [{
|
|
2304
|
-
rotate:
|
|
2305
|
+
rotate: K()
|
|
2305
2306
|
}],
|
|
2306
2307
|
/**
|
|
2307
2308
|
* Rotate X
|
|
2308
2309
|
* @see https://tailwindcss.com/docs/rotate
|
|
2309
2310
|
*/
|
|
2310
2311
|
"rotate-x": [{
|
|
2311
|
-
"rotate-x":
|
|
2312
|
+
"rotate-x": K()
|
|
2312
2313
|
}],
|
|
2313
2314
|
/**
|
|
2314
2315
|
* Rotate Y
|
|
2315
2316
|
* @see https://tailwindcss.com/docs/rotate
|
|
2316
2317
|
*/
|
|
2317
2318
|
"rotate-y": [{
|
|
2318
|
-
"rotate-y":
|
|
2319
|
+
"rotate-y": K()
|
|
2319
2320
|
}],
|
|
2320
2321
|
/**
|
|
2321
2322
|
* Rotate Z
|
|
2322
2323
|
* @see https://tailwindcss.com/docs/rotate
|
|
2323
2324
|
*/
|
|
2324
2325
|
"rotate-z": [{
|
|
2325
|
-
"rotate-z":
|
|
2326
|
+
"rotate-z": K()
|
|
2326
2327
|
}],
|
|
2327
2328
|
/**
|
|
2328
2329
|
* Scale
|
|
2329
2330
|
* @see https://tailwindcss.com/docs/scale
|
|
2330
2331
|
*/
|
|
2331
2332
|
scale: [{
|
|
2332
|
-
scale:
|
|
2333
|
+
scale: Q()
|
|
2333
2334
|
}],
|
|
2334
2335
|
/**
|
|
2335
2336
|
* Scale X
|
|
2336
2337
|
* @see https://tailwindcss.com/docs/scale
|
|
2337
2338
|
*/
|
|
2338
2339
|
"scale-x": [{
|
|
2339
|
-
"scale-x":
|
|
2340
|
+
"scale-x": Q()
|
|
2340
2341
|
}],
|
|
2341
2342
|
/**
|
|
2342
2343
|
* Scale Y
|
|
2343
2344
|
* @see https://tailwindcss.com/docs/scale
|
|
2344
2345
|
*/
|
|
2345
2346
|
"scale-y": [{
|
|
2346
|
-
"scale-y":
|
|
2347
|
+
"scale-y": Q()
|
|
2347
2348
|
}],
|
|
2348
2349
|
/**
|
|
2349
2350
|
* Scale Z
|
|
2350
2351
|
* @see https://tailwindcss.com/docs/scale
|
|
2351
2352
|
*/
|
|
2352
2353
|
"scale-z": [{
|
|
2353
|
-
"scale-z":
|
|
2354
|
+
"scale-z": Q()
|
|
2354
2355
|
}],
|
|
2355
2356
|
/**
|
|
2356
2357
|
* Scale 3D
|
|
@@ -2390,7 +2391,7 @@ const f = (e) => {
|
|
|
2390
2391
|
* @see https://tailwindcss.com/docs/transform-origin
|
|
2391
2392
|
*/
|
|
2392
2393
|
"transform-origin": [{
|
|
2393
|
-
origin:
|
|
2394
|
+
origin: E()
|
|
2394
2395
|
}],
|
|
2395
2396
|
/**
|
|
2396
2397
|
* Transform Style
|
|
@@ -2404,28 +2405,28 @@ const f = (e) => {
|
|
|
2404
2405
|
* @see https://tailwindcss.com/docs/translate
|
|
2405
2406
|
*/
|
|
2406
2407
|
translate: [{
|
|
2407
|
-
translate:
|
|
2408
|
+
translate: Y()
|
|
2408
2409
|
}],
|
|
2409
2410
|
/**
|
|
2410
2411
|
* Translate X
|
|
2411
2412
|
* @see https://tailwindcss.com/docs/translate
|
|
2412
2413
|
*/
|
|
2413
2414
|
"translate-x": [{
|
|
2414
|
-
"translate-x":
|
|
2415
|
+
"translate-x": Y()
|
|
2415
2416
|
}],
|
|
2416
2417
|
/**
|
|
2417
2418
|
* Translate Y
|
|
2418
2419
|
* @see https://tailwindcss.com/docs/translate
|
|
2419
2420
|
*/
|
|
2420
2421
|
"translate-y": [{
|
|
2421
|
-
"translate-y":
|
|
2422
|
+
"translate-y": Y()
|
|
2422
2423
|
}],
|
|
2423
2424
|
/**
|
|
2424
2425
|
* Translate Z
|
|
2425
2426
|
* @see https://tailwindcss.com/docs/translate
|
|
2426
2427
|
*/
|
|
2427
2428
|
"translate-z": [{
|
|
2428
|
-
"translate-z":
|
|
2429
|
+
"translate-z": Y()
|
|
2429
2430
|
}],
|
|
2430
2431
|
/**
|
|
2431
2432
|
* Translate None
|
|
@@ -2782,61 +2783,61 @@ const f = (e) => {
|
|
|
2782
2783
|
},
|
|
2783
2784
|
orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
|
|
2784
2785
|
};
|
|
2785
|
-
},
|
|
2786
|
-
function
|
|
2787
|
-
return
|
|
2786
|
+
}, vr = /* @__PURE__ */ or(kr);
|
|
2787
|
+
function V(...e) {
|
|
2788
|
+
return vr(We(e));
|
|
2788
2789
|
}
|
|
2789
|
-
const
|
|
2790
|
+
const Ee = j.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ f(
|
|
2790
2791
|
"div",
|
|
2791
2792
|
{
|
|
2792
2793
|
ref: r,
|
|
2793
|
-
className:
|
|
2794
|
+
className: V(
|
|
2794
2795
|
"rounded-xl border bg-card text-card-foreground shadow",
|
|
2795
2796
|
e
|
|
2796
2797
|
),
|
|
2797
2798
|
...t
|
|
2798
2799
|
}
|
|
2799
2800
|
));
|
|
2800
|
-
|
|
2801
|
-
const Be =
|
|
2801
|
+
Ee.displayName = "Card";
|
|
2802
|
+
const Be = j.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ f("div", { ref: r, className: V("flex", e), ...t }));
|
|
2802
2803
|
Be.displayName = "CardHeader";
|
|
2803
|
-
const
|
|
2804
|
+
const $e = j.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ f(
|
|
2804
2805
|
"div",
|
|
2805
2806
|
{
|
|
2806
2807
|
ref: r,
|
|
2807
|
-
className:
|
|
2808
|
+
className: V("font-semibold leading-none tracking-tight", e),
|
|
2808
2809
|
...t
|
|
2809
2810
|
}
|
|
2810
2811
|
));
|
|
2811
|
-
|
|
2812
|
-
const
|
|
2812
|
+
$e.displayName = "CardTitle";
|
|
2813
|
+
const je = j.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ f(
|
|
2813
2814
|
"div",
|
|
2814
2815
|
{
|
|
2815
2816
|
ref: r,
|
|
2816
|
-
className:
|
|
2817
|
+
className: V("text-sm text-muted-foreground", e),
|
|
2817
2818
|
...t
|
|
2818
2819
|
}
|
|
2819
2820
|
));
|
|
2820
|
-
|
|
2821
|
-
const Le =
|
|
2821
|
+
je.displayName = "CardDescription";
|
|
2822
|
+
const Le = j.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ f("div", { ref: r, className: V("pt-0", e), ...t }));
|
|
2822
2823
|
Le.displayName = "CardContent";
|
|
2823
|
-
const
|
|
2824
|
+
const Oe = j.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ f(
|
|
2824
2825
|
"div",
|
|
2825
2826
|
{
|
|
2826
2827
|
ref: r,
|
|
2827
|
-
className:
|
|
2828
|
+
className: V("flex items-center pt-0", e),
|
|
2828
2829
|
...t
|
|
2829
2830
|
}
|
|
2830
2831
|
));
|
|
2831
|
-
|
|
2832
|
-
const
|
|
2832
|
+
Oe.displayName = "CardFooter";
|
|
2833
|
+
const Cr = ({
|
|
2833
2834
|
color: e = "amber",
|
|
2834
2835
|
onClick: t,
|
|
2835
2836
|
customClass: r = "",
|
|
2836
2837
|
iconSrc: o
|
|
2837
2838
|
}) => {
|
|
2838
2839
|
const n = Ce[e];
|
|
2839
|
-
return /* @__PURE__ */
|
|
2840
|
+
return /* @__PURE__ */ f(
|
|
2840
2841
|
"button",
|
|
2841
2842
|
{
|
|
2842
2843
|
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}`,
|
|
@@ -2845,7 +2846,7 @@ const vr = ({
|
|
|
2845
2846
|
backgroundColor: n.primary.value,
|
|
2846
2847
|
boxShadow: `0 4px 0 ${n.primary.dark}`
|
|
2847
2848
|
},
|
|
2848
|
-
children: /* @__PURE__ */
|
|
2849
|
+
children: /* @__PURE__ */ f("span", { className: "text-2xl", children: /* @__PURE__ */ f(
|
|
2849
2850
|
"img",
|
|
2850
2851
|
{
|
|
2851
2852
|
style: {
|
|
@@ -2858,7 +2859,7 @@ const vr = ({
|
|
|
2858
2859
|
) })
|
|
2859
2860
|
}
|
|
2860
2861
|
);
|
|
2861
|
-
},
|
|
2862
|
+
}, Mr = ({
|
|
2862
2863
|
title: e,
|
|
2863
2864
|
description: t,
|
|
2864
2865
|
children: r,
|
|
@@ -2868,14 +2869,14 @@ const vr = ({
|
|
|
2868
2869
|
buttonLabel: i = "Button",
|
|
2869
2870
|
buttonPosition: u = "top-right",
|
|
2870
2871
|
bgIconColor: m = "lightBlue",
|
|
2871
|
-
buttonColor:
|
|
2872
|
-
buttonVariant:
|
|
2872
|
+
buttonColor: b = "lightBlue",
|
|
2873
|
+
buttonVariant: h = "primary",
|
|
2873
2874
|
onButtonClick: C
|
|
2874
2875
|
}) => {
|
|
2875
|
-
const
|
|
2876
|
+
const N = C ?? (() => {
|
|
2876
2877
|
});
|
|
2877
|
-
return /* @__PURE__ */
|
|
2878
|
-
|
|
2878
|
+
return /* @__PURE__ */ H(
|
|
2879
|
+
Ee,
|
|
2879
2880
|
{
|
|
2880
2881
|
className: `
|
|
2881
2882
|
w-full max-w-full sm:max-w-md md:max-w-lg lg:max-w-xl
|
|
@@ -2885,10 +2886,10 @@ const vr = ({
|
|
|
2885
2886
|
${n}
|
|
2886
2887
|
`,
|
|
2887
2888
|
children: [
|
|
2888
|
-
(e || t || c && u === "top-right") && /* @__PURE__ */
|
|
2889
|
-
/* @__PURE__ */
|
|
2890
|
-
o && /* @__PURE__ */
|
|
2891
|
-
|
|
2889
|
+
(e || t || c && u === "top-right") && /* @__PURE__ */ H(Be, { className: "mb-4 flex items-start justify-between", children: [
|
|
2890
|
+
/* @__PURE__ */ H("div", { className: "flex items-center gap-3", children: [
|
|
2891
|
+
o && /* @__PURE__ */ f(
|
|
2892
|
+
Cr,
|
|
2892
2893
|
{
|
|
2893
2894
|
color: m,
|
|
2894
2895
|
iconSrc: o,
|
|
@@ -2896,38 +2897,74 @@ const vr = ({
|
|
|
2896
2897
|
}
|
|
2897
2898
|
}
|
|
2898
2899
|
),
|
|
2899
|
-
/* @__PURE__ */
|
|
2900
|
-
e && /* @__PURE__ */
|
|
2901
|
-
t && /* @__PURE__ */
|
|
2900
|
+
/* @__PURE__ */ H("div", { children: [
|
|
2901
|
+
e && /* @__PURE__ */ f($e, { className: "text-base sm:text-lg md:text-xl font-semibold", children: e }),
|
|
2902
|
+
t && /* @__PURE__ */ f(je, { className: "text-sm sm:text-base text-gray-600", children: t })
|
|
2902
2903
|
] })
|
|
2903
2904
|
] }),
|
|
2904
|
-
c && u === "top-right" && /* @__PURE__ */
|
|
2905
|
+
c && u === "top-right" && /* @__PURE__ */ f(
|
|
2905
2906
|
xe,
|
|
2906
2907
|
{
|
|
2907
2908
|
label: i,
|
|
2908
2909
|
size: "medium",
|
|
2909
|
-
onClick:
|
|
2910
|
-
color:
|
|
2911
|
-
variant:
|
|
2910
|
+
onClick: N,
|
|
2911
|
+
color: b,
|
|
2912
|
+
variant: h
|
|
2912
2913
|
}
|
|
2913
2914
|
)
|
|
2914
2915
|
] }),
|
|
2915
|
-
r && /* @__PURE__ */
|
|
2916
|
-
c && u === "bottom-right" && /* @__PURE__ */
|
|
2916
|
+
r && /* @__PURE__ */ f(Le, { className: "flex flex-col gap-3 font-regular", children: r }),
|
|
2917
|
+
c && u === "bottom-right" && /* @__PURE__ */ f(Oe, { className: "flex justify-end pt-2", children: /* @__PURE__ */ f(
|
|
2917
2918
|
xe,
|
|
2918
2919
|
{
|
|
2919
2920
|
label: i,
|
|
2920
2921
|
size: "medium",
|
|
2921
|
-
onClick:
|
|
2922
|
-
color:
|
|
2923
|
-
variant:
|
|
2922
|
+
onClick: N,
|
|
2923
|
+
color: b,
|
|
2924
|
+
variant: h
|
|
2924
2925
|
}
|
|
2925
2926
|
) })
|
|
2926
2927
|
]
|
|
2927
2928
|
}
|
|
2928
2929
|
);
|
|
2930
|
+
}, Nr = ({
|
|
2931
|
+
color: e = "lightBlue"
|
|
2932
|
+
}) => {
|
|
2933
|
+
const [t, r] = Ve(!1), o = {
|
|
2934
|
+
lightBlue: "bg-blue-500",
|
|
2935
|
+
amber: "bg-amber-500",
|
|
2936
|
+
cyan: "bg-cyan-500"
|
|
2937
|
+
};
|
|
2938
|
+
return /* @__PURE__ */ H("div", { className: "inline-block relative w-12 h-6", children: [
|
|
2939
|
+
/* @__PURE__ */ f(
|
|
2940
|
+
"input",
|
|
2941
|
+
{
|
|
2942
|
+
checked: t,
|
|
2943
|
+
onChange: (c) => {
|
|
2944
|
+
r(c.target.checked);
|
|
2945
|
+
},
|
|
2946
|
+
className: "absolute opacity-0 w-0 h-0",
|
|
2947
|
+
id: `react-switch-${e}`,
|
|
2948
|
+
type: "checkbox"
|
|
2949
|
+
}
|
|
2950
|
+
),
|
|
2951
|
+
/* @__PURE__ */ f(
|
|
2952
|
+
"label",
|
|
2953
|
+
{
|
|
2954
|
+
className: "block overflow-hidden h-6 rounded-full cursor-pointer bg-gray-300",
|
|
2955
|
+
htmlFor: `react-switch-${e}`,
|
|
2956
|
+
children: /* @__PURE__ */ f(
|
|
2957
|
+
"span",
|
|
2958
|
+
{
|
|
2959
|
+
className: `block h-6 w-6 rounded-full shadow transform transition-transform duration-200 ${t ? `translate-x-full ${o[e]}` : "bg-white"}`
|
|
2960
|
+
}
|
|
2961
|
+
)
|
|
2962
|
+
}
|
|
2963
|
+
)
|
|
2964
|
+
] });
|
|
2929
2965
|
};
|
|
2930
2966
|
export {
|
|
2931
2967
|
xe as Button,
|
|
2932
|
-
|
|
2968
|
+
Mr as Card,
|
|
2969
|
+
Nr as Toggle
|
|
2933
2970
|
};
|