@cfcc/design-system 0.1.0 → 0.1.2
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.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/{index.js → index.mjs} +168 -172
- package/dist/index.mjs.map +1 -0
- package/dist/style.css +1 -1
- package/package.json +4 -4
- package/dist/index.js.map +0 -1
|
@@ -18,17 +18,17 @@ const H = "-", de = (e) => {
|
|
|
18
18
|
conflictingClassGroupModifiers: o
|
|
19
19
|
} = e;
|
|
20
20
|
return {
|
|
21
|
-
getClassGroupId: (
|
|
22
|
-
const
|
|
23
|
-
return
|
|
21
|
+
getClassGroupId: (i) => {
|
|
22
|
+
const a = i.split(H);
|
|
23
|
+
return a[0] === "" && a.length !== 1 && a.shift(), ne(a, r) || ue(i);
|
|
24
24
|
},
|
|
25
|
-
getConflictingClassGroupIds: (
|
|
26
|
-
const d = t[
|
|
27
|
-
return
|
|
25
|
+
getConflictingClassGroupIds: (i, a) => {
|
|
26
|
+
const d = t[i] || [];
|
|
27
|
+
return a && o[i] ? [...d, ...o[i]] : d;
|
|
28
28
|
}
|
|
29
29
|
};
|
|
30
30
|
}, ne = (e, r) => {
|
|
31
|
-
var
|
|
31
|
+
var i;
|
|
32
32
|
if (e.length === 0)
|
|
33
33
|
return r.classGroupId;
|
|
34
34
|
const t = e[0], o = r.nextPart.get(t), s = o ? ne(e.slice(1), o) : void 0;
|
|
@@ -37,9 +37,9 @@ const H = "-", de = (e) => {
|
|
|
37
37
|
if (r.validators.length === 0)
|
|
38
38
|
return;
|
|
39
39
|
const n = e.join(H);
|
|
40
|
-
return (
|
|
41
|
-
validator:
|
|
42
|
-
}) =>
|
|
40
|
+
return (i = r.validators.find(({
|
|
41
|
+
validator: a
|
|
42
|
+
}) => a(n))) == null ? void 0 : i.classGroupId;
|
|
43
43
|
}, ee = /^\[(.+)\]$/, ue = (e) => {
|
|
44
44
|
if (ee.test(e)) {
|
|
45
45
|
const r = ee.exec(e)[1], t = r == null ? void 0 : r.substring(0, r.indexOf(":"));
|
|
@@ -54,8 +54,8 @@ const H = "-", de = (e) => {
|
|
|
54
54
|
nextPart: /* @__PURE__ */ new Map(),
|
|
55
55
|
validators: []
|
|
56
56
|
};
|
|
57
|
-
return ge(Object.entries(e.classGroups), t).forEach(([n,
|
|
58
|
-
q(
|
|
57
|
+
return ge(Object.entries(e.classGroups), t).forEach(([n, i]) => {
|
|
58
|
+
q(i, o, n, r);
|
|
59
59
|
}), o;
|
|
60
60
|
}, q = (e, r, t, o) => {
|
|
61
61
|
e.forEach((s) => {
|
|
@@ -75,8 +75,8 @@ const H = "-", de = (e) => {
|
|
|
75
75
|
});
|
|
76
76
|
return;
|
|
77
77
|
}
|
|
78
|
-
Object.entries(s).forEach(([n,
|
|
79
|
-
q(
|
|
78
|
+
Object.entries(s).forEach(([n, i]) => {
|
|
79
|
+
q(i, re(r, n), t, o);
|
|
80
80
|
});
|
|
81
81
|
});
|
|
82
82
|
}, re = (e, r) => {
|
|
@@ -88,7 +88,7 @@ const H = "-", de = (e) => {
|
|
|
88
88
|
}), t = t.nextPart.get(o);
|
|
89
89
|
}), t;
|
|
90
90
|
}, be = (e) => e.isThemeGetter, ge = (e, r) => r ? e.map(([t, o]) => {
|
|
91
|
-
const s = o.map((n) => typeof n == "string" ? r + n : typeof n == "object" ? Object.fromEntries(Object.entries(n).map(([
|
|
91
|
+
const s = o.map((n) => typeof n == "string" ? r + n : typeof n == "object" ? Object.fromEntries(Object.entries(n).map(([i, a]) => [r + i, a])) : n);
|
|
92
92
|
return [t, s];
|
|
93
93
|
}) : e, fe = (e) => {
|
|
94
94
|
if (e < 1)
|
|
@@ -99,33 +99,33 @@ const H = "-", de = (e) => {
|
|
|
99
99
|
}
|
|
100
100
|
};
|
|
101
101
|
let r = 0, t = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map();
|
|
102
|
-
const s = (n,
|
|
103
|
-
t.set(n,
|
|
102
|
+
const s = (n, i) => {
|
|
103
|
+
t.set(n, i), r++, r > e && (r = 0, o = t, t = /* @__PURE__ */ new Map());
|
|
104
104
|
};
|
|
105
105
|
return {
|
|
106
106
|
get(n) {
|
|
107
|
-
let
|
|
108
|
-
if (
|
|
109
|
-
return
|
|
110
|
-
if ((
|
|
111
|
-
return s(n,
|
|
107
|
+
let i = t.get(n);
|
|
108
|
+
if (i !== void 0)
|
|
109
|
+
return i;
|
|
110
|
+
if ((i = o.get(n)) !== void 0)
|
|
111
|
+
return s(n, i), i;
|
|
112
112
|
},
|
|
113
|
-
set(n,
|
|
114
|
-
t.has(n) ? t.set(n,
|
|
113
|
+
set(n, i) {
|
|
114
|
+
t.has(n) ? t.set(n, i) : s(n, i);
|
|
115
115
|
}
|
|
116
116
|
};
|
|
117
117
|
}, se = "!", me = (e) => {
|
|
118
118
|
const {
|
|
119
119
|
separator: r,
|
|
120
120
|
experimentalParseClassName: t
|
|
121
|
-
} = e, o = r.length === 1, s = r[0], n = r.length,
|
|
121
|
+
} = e, o = r.length === 1, s = r[0], n = r.length, i = (a) => {
|
|
122
122
|
const d = [];
|
|
123
123
|
let g = 0, f = 0, v;
|
|
124
|
-
for (let b = 0; b <
|
|
125
|
-
let h =
|
|
124
|
+
for (let b = 0; b < a.length; b++) {
|
|
125
|
+
let h = a[b];
|
|
126
126
|
if (g === 0) {
|
|
127
|
-
if (h === s && (o ||
|
|
128
|
-
d.push(
|
|
127
|
+
if (h === s && (o || a.slice(b, b + n) === r)) {
|
|
128
|
+
d.push(a.slice(f, b)), f = b + n;
|
|
129
129
|
continue;
|
|
130
130
|
}
|
|
131
131
|
if (h === "/") {
|
|
@@ -135,18 +135,18 @@ const H = "-", de = (e) => {
|
|
|
135
135
|
}
|
|
136
136
|
h === "[" ? g++ : h === "]" && g--;
|
|
137
137
|
}
|
|
138
|
-
const w = d.length === 0 ?
|
|
138
|
+
const w = d.length === 0 ? a : a.substring(f), C = w.startsWith(se), k = C ? w.substring(1) : w, m = v && v > f ? v - f : void 0;
|
|
139
139
|
return {
|
|
140
140
|
modifiers: d,
|
|
141
|
-
hasImportantModifier:
|
|
142
|
-
baseClassName:
|
|
141
|
+
hasImportantModifier: C,
|
|
142
|
+
baseClassName: k,
|
|
143
143
|
maybePostfixModifierPosition: m
|
|
144
144
|
};
|
|
145
145
|
};
|
|
146
|
-
return t ? (
|
|
147
|
-
className:
|
|
148
|
-
parseClassName:
|
|
149
|
-
}) :
|
|
146
|
+
return t ? (a) => t({
|
|
147
|
+
className: a,
|
|
148
|
+
parseClassName: i
|
|
149
|
+
}) : i;
|
|
150
150
|
}, he = (e) => {
|
|
151
151
|
if (e.length <= 1)
|
|
152
152
|
return e;
|
|
@@ -164,61 +164,61 @@ const H = "-", de = (e) => {
|
|
|
164
164
|
parseClassName: t,
|
|
165
165
|
getClassGroupId: o,
|
|
166
166
|
getConflictingClassGroupIds: s
|
|
167
|
-
} = r, n = [],
|
|
168
|
-
let
|
|
169
|
-
for (let d =
|
|
170
|
-
const g =
|
|
167
|
+
} = r, n = [], i = e.trim().split(ye);
|
|
168
|
+
let a = "";
|
|
169
|
+
for (let d = i.length - 1; d >= 0; d -= 1) {
|
|
170
|
+
const g = i[d], {
|
|
171
171
|
modifiers: f,
|
|
172
172
|
hasImportantModifier: v,
|
|
173
173
|
baseClassName: w,
|
|
174
|
-
maybePostfixModifierPosition:
|
|
174
|
+
maybePostfixModifierPosition: C
|
|
175
175
|
} = t(g);
|
|
176
|
-
let
|
|
176
|
+
let k = !!C, m = o(k ? w.substring(0, C) : w);
|
|
177
177
|
if (!m) {
|
|
178
|
-
if (!
|
|
179
|
-
|
|
178
|
+
if (!k) {
|
|
179
|
+
a = g + (a.length > 0 ? " " + a : a);
|
|
180
180
|
continue;
|
|
181
181
|
}
|
|
182
182
|
if (m = o(w), !m) {
|
|
183
|
-
|
|
183
|
+
a = g + (a.length > 0 ? " " + a : a);
|
|
184
184
|
continue;
|
|
185
185
|
}
|
|
186
|
-
|
|
186
|
+
k = !1;
|
|
187
187
|
}
|
|
188
188
|
const b = he(f).join(":"), h = v ? b + se : b, y = h + m;
|
|
189
189
|
if (n.includes(y))
|
|
190
190
|
continue;
|
|
191
191
|
n.push(y);
|
|
192
|
-
const L = s(m,
|
|
192
|
+
const L = s(m, k);
|
|
193
193
|
for (let R = 0; R < L.length; ++R) {
|
|
194
194
|
const B = L[R];
|
|
195
195
|
n.push(h + B);
|
|
196
196
|
}
|
|
197
|
-
|
|
197
|
+
a = g + (a.length > 0 ? " " + a : a);
|
|
198
198
|
}
|
|
199
|
-
return
|
|
199
|
+
return a;
|
|
200
200
|
};
|
|
201
201
|
function we() {
|
|
202
202
|
let e = 0, r, t, o = "";
|
|
203
203
|
for (; e < arguments.length; )
|
|
204
|
-
(r = arguments[e++]) && (t =
|
|
204
|
+
(r = arguments[e++]) && (t = ae(r)) && (o && (o += " "), o += t);
|
|
205
205
|
return o;
|
|
206
206
|
}
|
|
207
|
-
const
|
|
207
|
+
const ae = (e) => {
|
|
208
208
|
if (typeof e == "string")
|
|
209
209
|
return e;
|
|
210
210
|
let r, t = "";
|
|
211
211
|
for (let o = 0; o < e.length; o++)
|
|
212
|
-
e[o] && (r =
|
|
212
|
+
e[o] && (r = ae(e[o])) && (t && (t += " "), t += r);
|
|
213
213
|
return t;
|
|
214
214
|
};
|
|
215
|
-
function
|
|
216
|
-
let t, o, s, n =
|
|
217
|
-
function
|
|
215
|
+
function ke(e, ...r) {
|
|
216
|
+
let t, o, s, n = i;
|
|
217
|
+
function i(d) {
|
|
218
218
|
const g = r.reduce((f, v) => v(f), e());
|
|
219
|
-
return t = xe(g), o = t.cache.get, s = t.cache.set, n =
|
|
219
|
+
return t = xe(g), o = t.cache.get, s = t.cache.set, n = a, a(d);
|
|
220
220
|
}
|
|
221
|
-
function
|
|
221
|
+
function a(d) {
|
|
222
222
|
const g = o(d);
|
|
223
223
|
if (g)
|
|
224
224
|
return g;
|
|
@@ -232,26 +232,26 @@ function Ce(e, ...r) {
|
|
|
232
232
|
const u = (e) => {
|
|
233
233
|
const r = (t) => t[e] || [];
|
|
234
234
|
return r.isThemeGetter = !0, r;
|
|
235
|
-
},
|
|
236
|
-
const o =
|
|
235
|
+
}, ie = /^\[(?:([a-z-]+):)?(.+)\]$/i, Ce = /^\d+\/\d+$/, ze = /* @__PURE__ */ new Set(["px", "full", "screen"]), Ne = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Ae = /\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$/, Me = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Se = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Re = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, N = (e) => G(e) || ze.has(e) || Ce.test(e), M = (e) => j(e, "length", Te), G = (e) => !!e && !Number.isNaN(Number(e)), _ = (e) => j(e, "number", G), I = (e) => !!e && Number.isInteger(Number(e)), Ge = (e) => e.endsWith("%") && G(e.slice(0, -1)), l = (e) => ie.test(e), S = (e) => Ne.test(e), je = /* @__PURE__ */ new Set(["length", "size", "percentage"]), Le = (e) => j(e, je, le), Pe = (e) => j(e, "position", le), Ie = /* @__PURE__ */ new Set(["image", "url"]), Ee = (e) => j(e, Ie, $e), Be = (e) => j(e, "", We), E = () => !0, j = (e, r, t) => {
|
|
236
|
+
const o = ie.exec(e);
|
|
237
237
|
return o ? o[1] ? typeof r == "string" ? o[1] === r : r.has(o[1]) : t(o[2]) : !1;
|
|
238
238
|
}, Te = (e) => (
|
|
239
239
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
240
240
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
241
241
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
242
242
|
Ae.test(e) && !Me.test(e)
|
|
243
|
-
),
|
|
244
|
-
const e = u("colors"), r = u("spacing"), t = u("blur"), o = u("brightness"), s = u("borderColor"), n = u("borderRadius"),
|
|
243
|
+
), le = () => !1, We = (e) => Se.test(e), $e = (e) => Re.test(e), Ve = () => {
|
|
244
|
+
const e = u("colors"), r = u("spacing"), t = u("blur"), o = u("brightness"), s = u("borderColor"), n = u("borderRadius"), i = u("borderSpacing"), a = u("borderWidth"), d = u("contrast"), g = u("grayscale"), f = u("hueRotate"), v = u("invert"), w = u("gap"), C = u("gradientColorStops"), k = u("gradientColorStopPositions"), m = u("inset"), b = u("margin"), h = u("opacity"), y = u("padding"), L = u("saturate"), R = u("scale"), B = u("sepia"), J = u("skew"), X = u("space"), Z = u("translate"), $ = () => ["auto", "contain", "none"], V = () => ["auto", "hidden", "clip", "visible", "scroll"], O = () => ["auto", l, r], p = () => [l, r], K = () => ["", N, M], T = () => ["auto", G, l], Q = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], W = () => ["solid", "dashed", "dotted", "double", "none"], Y = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], U = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], P = () => ["", "0", l], D = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], z = () => [G, l];
|
|
245
245
|
return {
|
|
246
246
|
cacheSize: 500,
|
|
247
247
|
separator: ":",
|
|
248
248
|
theme: {
|
|
249
249
|
colors: [E],
|
|
250
250
|
spacing: [N, M],
|
|
251
|
-
blur: ["none", "", S,
|
|
251
|
+
blur: ["none", "", S, l],
|
|
252
252
|
brightness: z(),
|
|
253
253
|
borderColor: [e],
|
|
254
|
-
borderRadius: ["none", "", "full", S,
|
|
254
|
+
borderRadius: ["none", "", "full", S, l],
|
|
255
255
|
borderSpacing: p(),
|
|
256
256
|
borderWidth: K(),
|
|
257
257
|
contrast: z(),
|
|
@@ -279,7 +279,7 @@ const u = (e) => {
|
|
|
279
279
|
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
280
280
|
*/
|
|
281
281
|
aspect: [{
|
|
282
|
-
aspect: ["auto", "square", "video",
|
|
282
|
+
aspect: ["auto", "square", "video", l]
|
|
283
283
|
}],
|
|
284
284
|
/**
|
|
285
285
|
* Container
|
|
@@ -364,7 +364,7 @@ const u = (e) => {
|
|
|
364
364
|
* @see https://tailwindcss.com/docs/object-position
|
|
365
365
|
*/
|
|
366
366
|
"object-position": [{
|
|
367
|
-
object: [...Q(),
|
|
367
|
+
object: [...Q(), l]
|
|
368
368
|
}],
|
|
369
369
|
/**
|
|
370
370
|
* Overflow
|
|
@@ -486,7 +486,7 @@ const u = (e) => {
|
|
|
486
486
|
* @see https://tailwindcss.com/docs/z-index
|
|
487
487
|
*/
|
|
488
488
|
z: [{
|
|
489
|
-
z: ["auto", I,
|
|
489
|
+
z: ["auto", I, l]
|
|
490
490
|
}],
|
|
491
491
|
// Flexbox and Grid
|
|
492
492
|
/**
|
|
@@ -515,7 +515,7 @@ const u = (e) => {
|
|
|
515
515
|
* @see https://tailwindcss.com/docs/flex
|
|
516
516
|
*/
|
|
517
517
|
flex: [{
|
|
518
|
-
flex: ["1", "auto", "initial", "none",
|
|
518
|
+
flex: ["1", "auto", "initial", "none", l]
|
|
519
519
|
}],
|
|
520
520
|
/**
|
|
521
521
|
* Flex Grow
|
|
@@ -536,7 +536,7 @@ const u = (e) => {
|
|
|
536
536
|
* @see https://tailwindcss.com/docs/order
|
|
537
537
|
*/
|
|
538
538
|
order: [{
|
|
539
|
-
order: ["first", "last", "none", I,
|
|
539
|
+
order: ["first", "last", "none", I, l]
|
|
540
540
|
}],
|
|
541
541
|
/**
|
|
542
542
|
* Grid Template Columns
|
|
@@ -551,8 +551,8 @@ const u = (e) => {
|
|
|
551
551
|
*/
|
|
552
552
|
"col-start-end": [{
|
|
553
553
|
col: ["auto", {
|
|
554
|
-
span: ["full", I,
|
|
555
|
-
},
|
|
554
|
+
span: ["full", I, l]
|
|
555
|
+
}, l]
|
|
556
556
|
}],
|
|
557
557
|
/**
|
|
558
558
|
* Grid Column Start
|
|
@@ -581,8 +581,8 @@ const u = (e) => {
|
|
|
581
581
|
*/
|
|
582
582
|
"row-start-end": [{
|
|
583
583
|
row: ["auto", {
|
|
584
|
-
span: [I,
|
|
585
|
-
},
|
|
584
|
+
span: [I, l]
|
|
585
|
+
}, l]
|
|
586
586
|
}],
|
|
587
587
|
/**
|
|
588
588
|
* Grid Row Start
|
|
@@ -610,14 +610,14 @@ const u = (e) => {
|
|
|
610
610
|
* @see https://tailwindcss.com/docs/grid-auto-columns
|
|
611
611
|
*/
|
|
612
612
|
"auto-cols": [{
|
|
613
|
-
"auto-cols": ["auto", "min", "max", "fr",
|
|
613
|
+
"auto-cols": ["auto", "min", "max", "fr", l]
|
|
614
614
|
}],
|
|
615
615
|
/**
|
|
616
616
|
* Grid Auto Rows
|
|
617
617
|
* @see https://tailwindcss.com/docs/grid-auto-rows
|
|
618
618
|
*/
|
|
619
619
|
"auto-rows": [{
|
|
620
|
-
"auto-rows": ["auto", "min", "max", "fr",
|
|
620
|
+
"auto-rows": ["auto", "min", "max", "fr", l]
|
|
621
621
|
}],
|
|
622
622
|
/**
|
|
623
623
|
* Gap
|
|
@@ -860,21 +860,21 @@ const u = (e) => {
|
|
|
860
860
|
* @see https://tailwindcss.com/docs/width
|
|
861
861
|
*/
|
|
862
862
|
w: [{
|
|
863
|
-
w: ["auto", "min", "max", "fit", "svw", "lvw", "dvw",
|
|
863
|
+
w: ["auto", "min", "max", "fit", "svw", "lvw", "dvw", l, r]
|
|
864
864
|
}],
|
|
865
865
|
/**
|
|
866
866
|
* Min-Width
|
|
867
867
|
* @see https://tailwindcss.com/docs/min-width
|
|
868
868
|
*/
|
|
869
869
|
"min-w": [{
|
|
870
|
-
"min-w": [
|
|
870
|
+
"min-w": [l, r, "min", "max", "fit"]
|
|
871
871
|
}],
|
|
872
872
|
/**
|
|
873
873
|
* Max-Width
|
|
874
874
|
* @see https://tailwindcss.com/docs/max-width
|
|
875
875
|
*/
|
|
876
876
|
"max-w": [{
|
|
877
|
-
"max-w": [
|
|
877
|
+
"max-w": [l, r, "none", "full", "min", "max", "fit", "prose", {
|
|
878
878
|
screen: [S]
|
|
879
879
|
}, S]
|
|
880
880
|
}],
|
|
@@ -883,28 +883,28 @@ const u = (e) => {
|
|
|
883
883
|
* @see https://tailwindcss.com/docs/height
|
|
884
884
|
*/
|
|
885
885
|
h: [{
|
|
886
|
-
h: [
|
|
886
|
+
h: [l, r, "auto", "min", "max", "fit", "svh", "lvh", "dvh"]
|
|
887
887
|
}],
|
|
888
888
|
/**
|
|
889
889
|
* Min-Height
|
|
890
890
|
* @see https://tailwindcss.com/docs/min-height
|
|
891
891
|
*/
|
|
892
892
|
"min-h": [{
|
|
893
|
-
"min-h": [
|
|
893
|
+
"min-h": [l, r, "min", "max", "fit", "svh", "lvh", "dvh"]
|
|
894
894
|
}],
|
|
895
895
|
/**
|
|
896
896
|
* Max-Height
|
|
897
897
|
* @see https://tailwindcss.com/docs/max-height
|
|
898
898
|
*/
|
|
899
899
|
"max-h": [{
|
|
900
|
-
"max-h": [
|
|
900
|
+
"max-h": [l, r, "min", "max", "fit", "svh", "lvh", "dvh"]
|
|
901
901
|
}],
|
|
902
902
|
/**
|
|
903
903
|
* Size
|
|
904
904
|
* @see https://tailwindcss.com/docs/size
|
|
905
905
|
*/
|
|
906
906
|
size: [{
|
|
907
|
-
size: [
|
|
907
|
+
size: [l, r, "auto", "min", "max", "fit"]
|
|
908
908
|
}],
|
|
909
909
|
// Typography
|
|
910
910
|
/**
|
|
@@ -973,7 +973,7 @@ const u = (e) => {
|
|
|
973
973
|
* @see https://tailwindcss.com/docs/letter-spacing
|
|
974
974
|
*/
|
|
975
975
|
tracking: [{
|
|
976
|
-
tracking: ["tighter", "tight", "normal", "wide", "wider", "widest",
|
|
976
|
+
tracking: ["tighter", "tight", "normal", "wide", "wider", "widest", l]
|
|
977
977
|
}],
|
|
978
978
|
/**
|
|
979
979
|
* Line Clamp
|
|
@@ -987,21 +987,21 @@ const u = (e) => {
|
|
|
987
987
|
* @see https://tailwindcss.com/docs/line-height
|
|
988
988
|
*/
|
|
989
989
|
leading: [{
|
|
990
|
-
leading: ["none", "tight", "snug", "normal", "relaxed", "loose", N,
|
|
990
|
+
leading: ["none", "tight", "snug", "normal", "relaxed", "loose", N, l]
|
|
991
991
|
}],
|
|
992
992
|
/**
|
|
993
993
|
* List Style Image
|
|
994
994
|
* @see https://tailwindcss.com/docs/list-style-image
|
|
995
995
|
*/
|
|
996
996
|
"list-image": [{
|
|
997
|
-
"list-image": ["none",
|
|
997
|
+
"list-image": ["none", l]
|
|
998
998
|
}],
|
|
999
999
|
/**
|
|
1000
1000
|
* List Style Type
|
|
1001
1001
|
* @see https://tailwindcss.com/docs/list-style-type
|
|
1002
1002
|
*/
|
|
1003
1003
|
"list-style-type": [{
|
|
1004
|
-
list: ["none", "disc", "decimal",
|
|
1004
|
+
list: ["none", "disc", "decimal", l]
|
|
1005
1005
|
}],
|
|
1006
1006
|
/**
|
|
1007
1007
|
* List Style Position
|
|
@@ -1070,7 +1070,7 @@ const u = (e) => {
|
|
|
1070
1070
|
* @see https://tailwindcss.com/docs/text-underline-offset
|
|
1071
1071
|
*/
|
|
1072
1072
|
"underline-offset": [{
|
|
1073
|
-
"underline-offset": ["auto", N,
|
|
1073
|
+
"underline-offset": ["auto", N, l]
|
|
1074
1074
|
}],
|
|
1075
1075
|
/**
|
|
1076
1076
|
* Text Decoration Color
|
|
@@ -1108,7 +1108,7 @@ const u = (e) => {
|
|
|
1108
1108
|
* @see https://tailwindcss.com/docs/vertical-align
|
|
1109
1109
|
*/
|
|
1110
1110
|
"vertical-align": [{
|
|
1111
|
-
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super",
|
|
1111
|
+
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", l]
|
|
1112
1112
|
}],
|
|
1113
1113
|
/**
|
|
1114
1114
|
* Whitespace
|
|
@@ -1136,7 +1136,7 @@ const u = (e) => {
|
|
|
1136
1136
|
* @see https://tailwindcss.com/docs/content
|
|
1137
1137
|
*/
|
|
1138
1138
|
content: [{
|
|
1139
|
-
content: ["none",
|
|
1139
|
+
content: ["none", l]
|
|
1140
1140
|
}],
|
|
1141
1141
|
// Backgrounds
|
|
1142
1142
|
/**
|
|
@@ -1212,42 +1212,42 @@ const u = (e) => {
|
|
|
1212
1212
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1213
1213
|
*/
|
|
1214
1214
|
"gradient-from-pos": [{
|
|
1215
|
-
from: [
|
|
1215
|
+
from: [k]
|
|
1216
1216
|
}],
|
|
1217
1217
|
/**
|
|
1218
1218
|
* Gradient Color Stops Via Position
|
|
1219
1219
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1220
1220
|
*/
|
|
1221
1221
|
"gradient-via-pos": [{
|
|
1222
|
-
via: [
|
|
1222
|
+
via: [k]
|
|
1223
1223
|
}],
|
|
1224
1224
|
/**
|
|
1225
1225
|
* Gradient Color Stops To Position
|
|
1226
1226
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1227
1227
|
*/
|
|
1228
1228
|
"gradient-to-pos": [{
|
|
1229
|
-
to: [
|
|
1229
|
+
to: [k]
|
|
1230
1230
|
}],
|
|
1231
1231
|
/**
|
|
1232
1232
|
* Gradient Color Stops From
|
|
1233
1233
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1234
1234
|
*/
|
|
1235
1235
|
"gradient-from": [{
|
|
1236
|
-
from: [
|
|
1236
|
+
from: [C]
|
|
1237
1237
|
}],
|
|
1238
1238
|
/**
|
|
1239
1239
|
* Gradient Color Stops Via
|
|
1240
1240
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1241
1241
|
*/
|
|
1242
1242
|
"gradient-via": [{
|
|
1243
|
-
via: [
|
|
1243
|
+
via: [C]
|
|
1244
1244
|
}],
|
|
1245
1245
|
/**
|
|
1246
1246
|
* Gradient Color Stops To
|
|
1247
1247
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1248
1248
|
*/
|
|
1249
1249
|
"gradient-to": [{
|
|
1250
|
-
to: [
|
|
1250
|
+
to: [C]
|
|
1251
1251
|
}],
|
|
1252
1252
|
// Borders
|
|
1253
1253
|
/**
|
|
@@ -1360,63 +1360,63 @@ const u = (e) => {
|
|
|
1360
1360
|
* @see https://tailwindcss.com/docs/border-width
|
|
1361
1361
|
*/
|
|
1362
1362
|
"border-w": [{
|
|
1363
|
-
border: [
|
|
1363
|
+
border: [a]
|
|
1364
1364
|
}],
|
|
1365
1365
|
/**
|
|
1366
1366
|
* Border Width X
|
|
1367
1367
|
* @see https://tailwindcss.com/docs/border-width
|
|
1368
1368
|
*/
|
|
1369
1369
|
"border-w-x": [{
|
|
1370
|
-
"border-x": [
|
|
1370
|
+
"border-x": [a]
|
|
1371
1371
|
}],
|
|
1372
1372
|
/**
|
|
1373
1373
|
* Border Width Y
|
|
1374
1374
|
* @see https://tailwindcss.com/docs/border-width
|
|
1375
1375
|
*/
|
|
1376
1376
|
"border-w-y": [{
|
|
1377
|
-
"border-y": [
|
|
1377
|
+
"border-y": [a]
|
|
1378
1378
|
}],
|
|
1379
1379
|
/**
|
|
1380
1380
|
* Border Width Start
|
|
1381
1381
|
* @see https://tailwindcss.com/docs/border-width
|
|
1382
1382
|
*/
|
|
1383
1383
|
"border-w-s": [{
|
|
1384
|
-
"border-s": [
|
|
1384
|
+
"border-s": [a]
|
|
1385
1385
|
}],
|
|
1386
1386
|
/**
|
|
1387
1387
|
* Border Width End
|
|
1388
1388
|
* @see https://tailwindcss.com/docs/border-width
|
|
1389
1389
|
*/
|
|
1390
1390
|
"border-w-e": [{
|
|
1391
|
-
"border-e": [
|
|
1391
|
+
"border-e": [a]
|
|
1392
1392
|
}],
|
|
1393
1393
|
/**
|
|
1394
1394
|
* Border Width Top
|
|
1395
1395
|
* @see https://tailwindcss.com/docs/border-width
|
|
1396
1396
|
*/
|
|
1397
1397
|
"border-w-t": [{
|
|
1398
|
-
"border-t": [
|
|
1398
|
+
"border-t": [a]
|
|
1399
1399
|
}],
|
|
1400
1400
|
/**
|
|
1401
1401
|
* Border Width Right
|
|
1402
1402
|
* @see https://tailwindcss.com/docs/border-width
|
|
1403
1403
|
*/
|
|
1404
1404
|
"border-w-r": [{
|
|
1405
|
-
"border-r": [
|
|
1405
|
+
"border-r": [a]
|
|
1406
1406
|
}],
|
|
1407
1407
|
/**
|
|
1408
1408
|
* Border Width Bottom
|
|
1409
1409
|
* @see https://tailwindcss.com/docs/border-width
|
|
1410
1410
|
*/
|
|
1411
1411
|
"border-w-b": [{
|
|
1412
|
-
"border-b": [
|
|
1412
|
+
"border-b": [a]
|
|
1413
1413
|
}],
|
|
1414
1414
|
/**
|
|
1415
1415
|
* Border Width Left
|
|
1416
1416
|
* @see https://tailwindcss.com/docs/border-width
|
|
1417
1417
|
*/
|
|
1418
1418
|
"border-w-l": [{
|
|
1419
|
-
"border-l": [
|
|
1419
|
+
"border-l": [a]
|
|
1420
1420
|
}],
|
|
1421
1421
|
/**
|
|
1422
1422
|
* Border Opacity
|
|
@@ -1437,7 +1437,7 @@ const u = (e) => {
|
|
|
1437
1437
|
* @see https://tailwindcss.com/docs/divide-width
|
|
1438
1438
|
*/
|
|
1439
1439
|
"divide-x": [{
|
|
1440
|
-
"divide-x": [
|
|
1440
|
+
"divide-x": [a]
|
|
1441
1441
|
}],
|
|
1442
1442
|
/**
|
|
1443
1443
|
* Divide Width X Reverse
|
|
@@ -1449,7 +1449,7 @@ const u = (e) => {
|
|
|
1449
1449
|
* @see https://tailwindcss.com/docs/divide-width
|
|
1450
1450
|
*/
|
|
1451
1451
|
"divide-y": [{
|
|
1452
|
-
"divide-y": [
|
|
1452
|
+
"divide-y": [a]
|
|
1453
1453
|
}],
|
|
1454
1454
|
/**
|
|
1455
1455
|
* Divide Width Y Reverse
|
|
@@ -1552,7 +1552,7 @@ const u = (e) => {
|
|
|
1552
1552
|
* @see https://tailwindcss.com/docs/outline-offset
|
|
1553
1553
|
*/
|
|
1554
1554
|
"outline-offset": [{
|
|
1555
|
-
"outline-offset": [N,
|
|
1555
|
+
"outline-offset": [N, l]
|
|
1556
1556
|
}],
|
|
1557
1557
|
/**
|
|
1558
1558
|
* Outline Width
|
|
@@ -1679,7 +1679,7 @@ const u = (e) => {
|
|
|
1679
1679
|
* @see https://tailwindcss.com/docs/drop-shadow
|
|
1680
1680
|
*/
|
|
1681
1681
|
"drop-shadow": [{
|
|
1682
|
-
"drop-shadow": ["", "none", S,
|
|
1682
|
+
"drop-shadow": ["", "none", S, l]
|
|
1683
1683
|
}],
|
|
1684
1684
|
/**
|
|
1685
1685
|
* Grayscale
|
|
@@ -1800,21 +1800,21 @@ const u = (e) => {
|
|
|
1800
1800
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
1801
1801
|
*/
|
|
1802
1802
|
"border-spacing": [{
|
|
1803
|
-
"border-spacing": [
|
|
1803
|
+
"border-spacing": [i]
|
|
1804
1804
|
}],
|
|
1805
1805
|
/**
|
|
1806
1806
|
* Border Spacing X
|
|
1807
1807
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
1808
1808
|
*/
|
|
1809
1809
|
"border-spacing-x": [{
|
|
1810
|
-
"border-spacing-x": [
|
|
1810
|
+
"border-spacing-x": [i]
|
|
1811
1811
|
}],
|
|
1812
1812
|
/**
|
|
1813
1813
|
* Border Spacing Y
|
|
1814
1814
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
1815
1815
|
*/
|
|
1816
1816
|
"border-spacing-y": [{
|
|
1817
|
-
"border-spacing-y": [
|
|
1817
|
+
"border-spacing-y": [i]
|
|
1818
1818
|
}],
|
|
1819
1819
|
/**
|
|
1820
1820
|
* Table Layout
|
|
@@ -1836,7 +1836,7 @@ const u = (e) => {
|
|
|
1836
1836
|
* @see https://tailwindcss.com/docs/transition-property
|
|
1837
1837
|
*/
|
|
1838
1838
|
transition: [{
|
|
1839
|
-
transition: ["none", "all", "", "colors", "opacity", "shadow", "transform",
|
|
1839
|
+
transition: ["none", "all", "", "colors", "opacity", "shadow", "transform", l]
|
|
1840
1840
|
}],
|
|
1841
1841
|
/**
|
|
1842
1842
|
* Transition Duration
|
|
@@ -1850,7 +1850,7 @@ const u = (e) => {
|
|
|
1850
1850
|
* @see https://tailwindcss.com/docs/transition-timing-function
|
|
1851
1851
|
*/
|
|
1852
1852
|
ease: [{
|
|
1853
|
-
ease: ["linear", "in", "out", "in-out",
|
|
1853
|
+
ease: ["linear", "in", "out", "in-out", l]
|
|
1854
1854
|
}],
|
|
1855
1855
|
/**
|
|
1856
1856
|
* Transition Delay
|
|
@@ -1864,7 +1864,7 @@ const u = (e) => {
|
|
|
1864
1864
|
* @see https://tailwindcss.com/docs/animation
|
|
1865
1865
|
*/
|
|
1866
1866
|
animate: [{
|
|
1867
|
-
animate: ["none", "spin", "ping", "pulse", "bounce",
|
|
1867
|
+
animate: ["none", "spin", "ping", "pulse", "bounce", l]
|
|
1868
1868
|
}],
|
|
1869
1869
|
// Transforms
|
|
1870
1870
|
/**
|
|
@@ -1900,7 +1900,7 @@ const u = (e) => {
|
|
|
1900
1900
|
* @see https://tailwindcss.com/docs/rotate
|
|
1901
1901
|
*/
|
|
1902
1902
|
rotate: [{
|
|
1903
|
-
rotate: [I,
|
|
1903
|
+
rotate: [I, l]
|
|
1904
1904
|
}],
|
|
1905
1905
|
/**
|
|
1906
1906
|
* Translate X
|
|
@@ -1935,7 +1935,7 @@ const u = (e) => {
|
|
|
1935
1935
|
* @see https://tailwindcss.com/docs/transform-origin
|
|
1936
1936
|
*/
|
|
1937
1937
|
"transform-origin": [{
|
|
1938
|
-
origin: ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left",
|
|
1938
|
+
origin: ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left", l]
|
|
1939
1939
|
}],
|
|
1940
1940
|
// Interactivity
|
|
1941
1941
|
/**
|
|
@@ -1957,7 +1957,7 @@ const u = (e) => {
|
|
|
1957
1957
|
* @see https://tailwindcss.com/docs/cursor
|
|
1958
1958
|
*/
|
|
1959
1959
|
cursor: [{
|
|
1960
|
-
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",
|
|
1960
|
+
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", l]
|
|
1961
1961
|
}],
|
|
1962
1962
|
/**
|
|
1963
1963
|
* Caret Color
|
|
@@ -2179,7 +2179,7 @@ const u = (e) => {
|
|
|
2179
2179
|
* @see https://tailwindcss.com/docs/will-change
|
|
2180
2180
|
*/
|
|
2181
2181
|
"will-change": [{
|
|
2182
|
-
"will-change": ["auto", "scroll", "contents", "transform",
|
|
2182
|
+
"will-change": ["auto", "scroll", "contents", "transform", l]
|
|
2183
2183
|
}],
|
|
2184
2184
|
// SVG
|
|
2185
2185
|
/**
|
|
@@ -2269,19 +2269,19 @@ const u = (e) => {
|
|
|
2269
2269
|
"font-size": ["leading"]
|
|
2270
2270
|
}
|
|
2271
2271
|
};
|
|
2272
|
-
}, Oe = /* @__PURE__ */
|
|
2272
|
+
}, Oe = /* @__PURE__ */ ke(Ve);
|
|
2273
2273
|
function x(...e) {
|
|
2274
2274
|
return Oe(ce(e));
|
|
2275
2275
|
}
|
|
2276
2276
|
const Ue = {
|
|
2277
|
-
primary: "bg-
|
|
2278
|
-
secondary: "bg-
|
|
2279
|
-
outline: "border
|
|
2280
|
-
ghost: "
|
|
2281
|
-
danger: "bg-
|
|
2277
|
+
primary: "bg-primary text-white hover:bg-primary-strong active:bg-primary-strong focus-visible:ring-primary",
|
|
2278
|
+
secondary: "bg-surface2 text-fg border border-line hover:border-primary hover:text-primary focus-visible:ring-primary",
|
|
2279
|
+
outline: "border border-primary text-primary bg-transparent hover:bg-primary-weak active:bg-primary-weak focus-visible:ring-primary",
|
|
2280
|
+
ghost: "bg-transparent text-muted hover:bg-surface2 hover:text-fg focus-visible:ring-primary",
|
|
2281
|
+
danger: "bg-danger text-white hover:opacity-90 active:opacity-100 focus-visible:ring-danger"
|
|
2282
2282
|
}, _e = {
|
|
2283
|
-
sm: "h-
|
|
2284
|
-
md: "h-10 px-
|
|
2283
|
+
sm: "h-9 px-3.5 text-[13px] gap-1.5",
|
|
2284
|
+
md: "h-10 px-[18px] text-sm gap-2",
|
|
2285
2285
|
lg: "h-12 px-6 text-base gap-2"
|
|
2286
2286
|
};
|
|
2287
2287
|
function Ye({
|
|
@@ -2291,21 +2291,21 @@ function Ye({
|
|
|
2291
2291
|
disabled: o,
|
|
2292
2292
|
className: s,
|
|
2293
2293
|
children: n,
|
|
2294
|
-
...
|
|
2294
|
+
...i
|
|
2295
2295
|
}) {
|
|
2296
2296
|
return /* @__PURE__ */ A(
|
|
2297
2297
|
"button",
|
|
2298
2298
|
{
|
|
2299
2299
|
className: x(
|
|
2300
|
-
"inline-flex items-center justify-center rounded-
|
|
2301
|
-
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2",
|
|
2300
|
+
"inline-flex items-center justify-center rounded-pill font-bold leading-none transition-all duration-150",
|
|
2301
|
+
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-offset-surface",
|
|
2302
2302
|
"disabled:pointer-events-none disabled:opacity-50",
|
|
2303
2303
|
Ue[e],
|
|
2304
2304
|
_e[r],
|
|
2305
2305
|
s
|
|
2306
2306
|
),
|
|
2307
2307
|
disabled: o || t,
|
|
2308
|
-
...
|
|
2308
|
+
...i,
|
|
2309
2309
|
children: [
|
|
2310
2310
|
t && /* @__PURE__ */ A(
|
|
2311
2311
|
"svg",
|
|
@@ -2344,22 +2344,22 @@ function Ye({
|
|
|
2344
2344
|
);
|
|
2345
2345
|
}
|
|
2346
2346
|
const Fe = {
|
|
2347
|
-
default: "bg-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
outline: "border border-
|
|
2347
|
+
default: "bg-surface2 text-muted border border-line",
|
|
2348
|
+
info: "bg-primary-weak text-primary",
|
|
2349
|
+
success: "bg-green-100 text-green-700 dark:bg-green-900/35 dark:text-green-300",
|
|
2350
|
+
warning: "bg-amber-100 text-amber-700 dark:bg-amber-900/35 dark:text-amber-300",
|
|
2351
|
+
error: "bg-red-100 text-red-700 dark:bg-red-900/35 dark:text-red-300",
|
|
2352
|
+
outline: "border border-line text-muted bg-transparent"
|
|
2353
2353
|
}, qe = {
|
|
2354
2354
|
sm: "px-2 py-0.5 text-xs",
|
|
2355
|
-
md: "px-2.5 py-1 text-
|
|
2355
|
+
md: "px-2.5 py-1 text-[13px]"
|
|
2356
2356
|
};
|
|
2357
2357
|
function De({ variant: e = "default", size: r = "md", children: t, className: o }) {
|
|
2358
2358
|
return /* @__PURE__ */ c(
|
|
2359
2359
|
"span",
|
|
2360
2360
|
{
|
|
2361
2361
|
className: x(
|
|
2362
|
-
"inline-flex items-center gap-1 rounded-
|
|
2362
|
+
"inline-flex items-center gap-1 rounded-badge font-bold leading-none",
|
|
2363
2363
|
Fe[e],
|
|
2364
2364
|
qe[r],
|
|
2365
2365
|
o
|
|
@@ -2375,21 +2375,21 @@ const F = {
|
|
|
2375
2375
|
lg: "p-8"
|
|
2376
2376
|
};
|
|
2377
2377
|
function er({ title: e, description: r, footer: t, children: o, className: s, padding: n = "md" }) {
|
|
2378
|
-
const
|
|
2378
|
+
const i = n !== "none";
|
|
2379
2379
|
return /* @__PURE__ */ A(
|
|
2380
2380
|
"div",
|
|
2381
2381
|
{
|
|
2382
2382
|
className: x(
|
|
2383
|
-
"rounded-
|
|
2383
|
+
"rounded-card border border-line bg-surface text-fg shadow-card",
|
|
2384
2384
|
s
|
|
2385
2385
|
),
|
|
2386
2386
|
children: [
|
|
2387
|
-
(e || r) && /* @__PURE__ */ A("div", { className: x("border-b border-
|
|
2388
|
-
e && /* @__PURE__ */ c("h3", { className: "text-base font-
|
|
2389
|
-
r && /* @__PURE__ */ c("p", { className: x("text-sm text-
|
|
2387
|
+
(e || r) && /* @__PURE__ */ A("div", { className: x("border-b border-line2", F[n]), children: [
|
|
2388
|
+
e && /* @__PURE__ */ c("h3", { className: "text-base font-bold tracking-[-0.2px] text-fg", children: e }),
|
|
2389
|
+
r && /* @__PURE__ */ c("p", { className: x("text-sm text-muted", e && "mt-1"), children: r })
|
|
2390
2390
|
] }),
|
|
2391
|
-
o && /* @__PURE__ */ c("div", { className: x(
|
|
2392
|
-
t && /* @__PURE__ */ c("div", { className: x("border-t border-
|
|
2391
|
+
o && /* @__PURE__ */ c("div", { className: x(i && F[n]), children: o }),
|
|
2392
|
+
t && /* @__PURE__ */ c("div", { className: x("rounded-b-card border-t border-line2 bg-surface2", F[n]), children: t })
|
|
2393
2393
|
]
|
|
2394
2394
|
}
|
|
2395
2395
|
);
|
|
@@ -2406,56 +2406,56 @@ function rr({
|
|
|
2406
2406
|
inputSize: o = "md",
|
|
2407
2407
|
leadingIcon: s,
|
|
2408
2408
|
trailingIcon: n,
|
|
2409
|
-
className:
|
|
2410
|
-
id:
|
|
2409
|
+
className: i,
|
|
2410
|
+
id: a,
|
|
2411
2411
|
...d
|
|
2412
2412
|
}) {
|
|
2413
|
-
const g =
|
|
2413
|
+
const g = a ?? (e == null ? void 0 : e.toLowerCase().replace(/\s+/g, "-")), f = !!t;
|
|
2414
2414
|
return /* @__PURE__ */ A("div", { className: "flex flex-col gap-1.5", children: [
|
|
2415
|
-
e && /* @__PURE__ */ A("label", { htmlFor: g, className: "text-
|
|
2415
|
+
e && /* @__PURE__ */ A("label", { htmlFor: g, className: "text-[13px] font-bold text-fg", children: [
|
|
2416
2416
|
e,
|
|
2417
|
-
d.required && /* @__PURE__ */ c("span", { className: "ml-0.5 text-
|
|
2417
|
+
d.required && /* @__PURE__ */ c("span", { className: "ml-0.5 text-danger", children: "*" })
|
|
2418
2418
|
] }),
|
|
2419
2419
|
/* @__PURE__ */ A("div", { className: "relative flex items-center", children: [
|
|
2420
|
-
s && /* @__PURE__ */ c("span", { className: "pointer-events-none absolute left-3 text-
|
|
2420
|
+
s && /* @__PURE__ */ c("span", { className: "pointer-events-none absolute left-3 text-faint", children: s }),
|
|
2421
2421
|
/* @__PURE__ */ c(
|
|
2422
2422
|
"input",
|
|
2423
2423
|
{
|
|
2424
2424
|
id: g,
|
|
2425
2425
|
className: x(
|
|
2426
|
-
"w-full rounded-
|
|
2427
|
-
"placeholder:text-
|
|
2426
|
+
"w-full rounded-field border bg-surface text-fg transition-colors duration-150",
|
|
2427
|
+
"placeholder:text-faint",
|
|
2428
2428
|
"focus:outline-none focus:ring-2 focus:ring-offset-0",
|
|
2429
|
-
"disabled:cursor-not-allowed disabled:bg-
|
|
2430
|
-
f ? "border-
|
|
2429
|
+
"disabled:cursor-not-allowed disabled:bg-surface2 disabled:text-muted",
|
|
2430
|
+
f ? "border-danger focus:border-danger focus:ring-red-200" : "border-line focus:border-primary focus:ring-primary-weak",
|
|
2431
2431
|
He[o],
|
|
2432
2432
|
s && "pl-10",
|
|
2433
2433
|
n && "pr-10",
|
|
2434
|
-
|
|
2434
|
+
i
|
|
2435
2435
|
),
|
|
2436
2436
|
...d
|
|
2437
2437
|
}
|
|
2438
2438
|
),
|
|
2439
|
-
n && /* @__PURE__ */ c("span", { className: "pointer-events-none absolute right-3 text-
|
|
2439
|
+
n && /* @__PURE__ */ c("span", { className: "pointer-events-none absolute right-3 text-faint", children: n })
|
|
2440
2440
|
] }),
|
|
2441
|
-
(r || t) && /* @__PURE__ */ c("p", { className: x("text-xs", f ? "text-
|
|
2441
|
+
(r || t) && /* @__PURE__ */ c("p", { className: x("text-xs", f ? "text-danger" : "text-muted"), children: t ?? r })
|
|
2442
2442
|
] });
|
|
2443
2443
|
}
|
|
2444
2444
|
const Je = {
|
|
2445
2445
|
info: {
|
|
2446
|
-
container: "bg-
|
|
2447
|
-
icon: /* @__PURE__ */ c("svg", { className: "h-5 w-5 text-
|
|
2446
|
+
container: "bg-primary-weak border-line text-fg",
|
|
2447
|
+
icon: /* @__PURE__ */ c("svg", { className: "h-5 w-5 text-primary shrink-0", fill: "currentColor", viewBox: "0 0 20 20", "aria-hidden": "true", children: /* @__PURE__ */ c("path", { fillRule: "evenodd", d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z", clipRule: "evenodd" }) })
|
|
2448
2448
|
},
|
|
2449
2449
|
success: {
|
|
2450
|
-
container: "bg-green-50 border-green-200 text-green-900",
|
|
2450
|
+
container: "bg-green-50 border-green-200 text-green-900 dark:bg-green-950/40 dark:border-green-900 dark:text-green-200",
|
|
2451
2451
|
icon: /* @__PURE__ */ c("svg", { className: "h-5 w-5 text-green-500 shrink-0", fill: "currentColor", viewBox: "0 0 20 20", "aria-hidden": "true", children: /* @__PURE__ */ c("path", { fillRule: "evenodd", d: "M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z", clipRule: "evenodd" }) })
|
|
2452
2452
|
},
|
|
2453
2453
|
warning: {
|
|
2454
|
-
container: "bg-amber-50 border-amber-200 text-amber-900",
|
|
2454
|
+
container: "bg-amber-50 border-amber-200 text-amber-900 dark:bg-amber-950/40 dark:border-amber-900 dark:text-amber-200",
|
|
2455
2455
|
icon: /* @__PURE__ */ c("svg", { className: "h-5 w-5 text-amber-500 shrink-0", fill: "currentColor", viewBox: "0 0 20 20", "aria-hidden": "true", children: /* @__PURE__ */ c("path", { fillRule: "evenodd", d: "M8.485 2.495c.673-1.167 2.357-1.167 3.03 0l6.28 10.875c.673 1.167-.17 2.625-1.516 2.625H3.72c-1.347 0-2.189-1.458-1.515-2.625L8.485 2.495zM10 5a.75.75 0 01.75.75v3.5a.75.75 0 01-1.5 0v-3.5A.75.75 0 0110 5zm0 9a1 1 0 100-2 1 1 0 000 2z", clipRule: "evenodd" }) })
|
|
2456
2456
|
},
|
|
2457
2457
|
error: {
|
|
2458
|
-
container: "bg-red-50 border-red-200 text-red-900",
|
|
2458
|
+
container: "bg-red-50 border-red-200 text-red-900 dark:bg-red-950/40 dark:border-red-900 dark:text-red-200",
|
|
2459
2459
|
icon: /* @__PURE__ */ c("svg", { className: "h-5 w-5 text-red-500 shrink-0", fill: "currentColor", viewBox: "0 0 20 20", "aria-hidden": "true", children: /* @__PURE__ */ c("path", { fillRule: "evenodd", d: "M10 18a8 8 0 100-16 8 8 0 000 16zM8.28 7.22a.75.75 0 00-1.06 1.06L8.94 10l-1.72 1.72a.75.75 0 101.06 1.06L10 11.06l1.72 1.72a.75.75 0 101.06-1.06L11.06 10l1.72-1.72a.75.75 0 00-1.06-1.06L10 8.94 8.28 7.22z", clipRule: "evenodd" }) })
|
|
2460
2460
|
}
|
|
2461
2461
|
};
|
|
@@ -2465,15 +2465,11 @@ function tr({ variant: e = "info", title: r, children: t, className: o, onDismis
|
|
|
2465
2465
|
"div",
|
|
2466
2466
|
{
|
|
2467
2467
|
role: "alert",
|
|
2468
|
-
className: x(
|
|
2469
|
-
"flex gap-3 rounded-lg border p-4",
|
|
2470
|
-
n.container,
|
|
2471
|
-
o
|
|
2472
|
-
),
|
|
2468
|
+
className: x("flex gap-3 rounded-field border p-4", n.container, o),
|
|
2473
2469
|
children: [
|
|
2474
2470
|
n.icon,
|
|
2475
2471
|
/* @__PURE__ */ A("div", { className: "flex-1 min-w-0", children: [
|
|
2476
|
-
r && /* @__PURE__ */ c("p", { className: "font-
|
|
2472
|
+
r && /* @__PURE__ */ c("p", { className: "font-bold text-sm", children: r }),
|
|
2477
2473
|
/* @__PURE__ */ c("div", { className: x("text-sm", r && "mt-1"), children: t })
|
|
2478
2474
|
] }),
|
|
2479
2475
|
s && /* @__PURE__ */ c(
|
|
@@ -2516,7 +2512,7 @@ function Ke(e) {
|
|
|
2516
2512
|
return te[r];
|
|
2517
2513
|
}
|
|
2518
2514
|
function or({ src: e, alt: r, name: t, size: o = "md", className: s }) {
|
|
2519
|
-
const { container: n, text:
|
|
2515
|
+
const { container: n, text: i } = Xe[o], a = t ? Ze(t) : "?", d = t ? Ke(t) : "bg-faint";
|
|
2520
2516
|
return /* @__PURE__ */ c(
|
|
2521
2517
|
"span",
|
|
2522
2518
|
{
|
|
@@ -2528,9 +2524,9 @@ function or({ src: e, alt: r, name: t, size: o = "md", className: s }) {
|
|
|
2528
2524
|
children: e ? /* @__PURE__ */ c("img", { src: e, alt: r ?? t ?? "Avatar", className: "h-full w-full object-cover" }) : /* @__PURE__ */ c(
|
|
2529
2525
|
"span",
|
|
2530
2526
|
{
|
|
2531
|
-
className: x("flex h-full w-full items-center justify-center font-semibold text-white", d,
|
|
2527
|
+
className: x("flex h-full w-full items-center justify-center font-semibold text-white", d, i),
|
|
2532
2528
|
"aria-label": t ?? "User avatar",
|
|
2533
|
-
children:
|
|
2529
|
+
children: a
|
|
2534
2530
|
}
|
|
2535
2531
|
)
|
|
2536
2532
|
}
|
|
@@ -2545,4 +2541,4 @@ export {
|
|
|
2545
2541
|
rr as Input,
|
|
2546
2542
|
x as cn
|
|
2547
2543
|
};
|
|
2548
|
-
//# sourceMappingURL=index.
|
|
2544
|
+
//# sourceMappingURL=index.mjs.map
|