@scalar/components 0.0.1 → 0.0.3
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/ScalarButton/ScalarButton.stories.d.ts +64 -64
- package/dist/components/ScalarLoading/ScalarLoading.stories.d.ts +36 -36
- package/dist/components/ScalarLoading/ScalarLoading.vue.d.ts +4 -4
- package/dist/components/ScalarTextField/ScalarTextField.vue.d.ts.map +1 -1
- package/dist/index.cjs +18 -21
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +267 -3485
- package/dist/index.umd.cjs +2 -8
- package/dist/style.css +1 -1
- package/dist/tailwind/index.d.ts +2 -0
- package/dist/tailwind/index.d.ts.map +1 -0
- package/dist/tailwind/tailwind.theme.d.ts +59 -0
- package/dist/tailwind/tailwind.theme.d.ts.map +1 -0
- package/package.json +32 -38
- package/dist/index-6bb15e9f.js +0 -1802
- package/dist/index-c8ae42b3.cjs +0 -4
- package/src/tailwind/index.ts +0 -1
- package/src/tailwind/tailwind.css +0 -18
- package/src/tailwind/tailwind.theme.ts +0 -65
package/dist/index.js
CHANGED
|
@@ -1,2401 +1,24 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
for (t = 0; t < e.length; t++)
|
|
9
|
-
e[t] && (r = pt(e[t])) && (n && (n += " "), n += r);
|
|
10
|
-
else
|
|
11
|
-
for (t in e)
|
|
12
|
-
e[t] && (n && (n += " "), n += t);
|
|
13
|
-
return n;
|
|
14
|
-
}
|
|
15
|
-
function Re() {
|
|
16
|
-
for (var e, t, r = 0, n = ""; r < arguments.length; )
|
|
17
|
-
(e = arguments[r++]) && (t = pt(e)) && (n && (n += " "), n += t);
|
|
18
|
-
return n;
|
|
19
|
-
}
|
|
20
|
-
const et = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, Jt = (e) => {
|
|
21
|
-
const t = function() {
|
|
22
|
-
for (var o = arguments.length, l = new Array(o), a = 0; a < o; a++)
|
|
23
|
-
l[a] = arguments[a];
|
|
24
|
-
var s, i;
|
|
25
|
-
return typeof (e == null || (s = e.hooks) === null || s === void 0 ? void 0 : s["cx:done"]) < "u" ? e == null ? void 0 : e.hooks["cx:done"](Re(l)) : typeof (e == null || (i = e.hooks) === null || i === void 0 ? void 0 : i.onComplete) < "u" ? e == null ? void 0 : e.hooks.onComplete(Re(l)) : Re(l);
|
|
26
|
-
};
|
|
27
|
-
return { compose: function() {
|
|
28
|
-
for (var o = arguments.length, l = new Array(o), a = 0; a < o; a++)
|
|
29
|
-
l[a] = arguments[a];
|
|
30
|
-
return (s) => {
|
|
31
|
-
const i = Object.fromEntries(Object.entries(s || {}).filter((u) => {
|
|
32
|
-
let [d] = u;
|
|
33
|
-
return !["class", "className"].includes(d);
|
|
34
|
-
}));
|
|
35
|
-
return t(l.map((u) => u(i)), s == null ? void 0 : s.class, s == null ? void 0 : s.className);
|
|
36
|
-
};
|
|
37
|
-
}, cva: (o) => (l) => {
|
|
38
|
-
var a;
|
|
39
|
-
if ((o == null ? void 0 : o.variants) == null)
|
|
40
|
-
return t(o == null ? void 0 : o.base, l == null ? void 0 : l.class, l == null ? void 0 : l.className);
|
|
41
|
-
const { variants: s, defaultVariants: i } = o, u = Object.keys(s).map((c) => {
|
|
42
|
-
const p = l == null ? void 0 : l[c], g = i == null ? void 0 : i[c], v = et(p) || et(g);
|
|
43
|
-
return s[c][v];
|
|
44
|
-
}), d = { ...i, ...l && Object.entries(l).reduce((c, p) => {
|
|
45
|
-
let [g, v] = p;
|
|
46
|
-
return typeof v > "u" ? c : { ...c, [g]: v };
|
|
47
|
-
}, {}) }, f = o == null || (a = o.compoundVariants) === null || a === void 0 ? void 0 : a.reduce((c, p) => {
|
|
48
|
-
let { class: g, className: v, ...S } = p;
|
|
49
|
-
return Object.entries(S).every((L) => {
|
|
50
|
-
let [E, B] = L;
|
|
51
|
-
const H = d[E];
|
|
52
|
-
return Array.isArray(B) ? B.includes(H) : H === B;
|
|
53
|
-
}) ? [...c, g, v] : c;
|
|
54
|
-
}, []);
|
|
55
|
-
return t(o == null ? void 0 : o.base, u, f, l == null ? void 0 : l.class, l == null ? void 0 : l.className);
|
|
56
|
-
}, cx: t };
|
|
57
|
-
}, Ze = "-";
|
|
58
|
-
function Qt(e) {
|
|
59
|
-
const t = tr(e), {
|
|
60
|
-
conflictingClassGroups: r,
|
|
61
|
-
conflictingClassGroupModifiers: n
|
|
62
|
-
} = e;
|
|
63
|
-
function o(a) {
|
|
64
|
-
const s = a.split(Ze);
|
|
65
|
-
return s[0] === "" && s.length !== 1 && s.shift(), ft(s, t) || er(a);
|
|
66
|
-
}
|
|
67
|
-
function l(a, s) {
|
|
68
|
-
const i = r[a] || [];
|
|
69
|
-
return s && n[a] ? [...i, ...n[a]] : i;
|
|
70
|
-
}
|
|
71
|
-
return {
|
|
72
|
-
getClassGroupId: o,
|
|
73
|
-
getConflictingClassGroupIds: l
|
|
74
|
-
};
|
|
75
|
-
}
|
|
76
|
-
function ft(e, t) {
|
|
77
|
-
var a;
|
|
78
|
-
if (e.length === 0)
|
|
79
|
-
return t.classGroupId;
|
|
80
|
-
const r = e[0], n = t.nextPart.get(r), o = n ? ft(e.slice(1), n) : void 0;
|
|
81
|
-
if (o)
|
|
82
|
-
return o;
|
|
83
|
-
if (t.validators.length === 0)
|
|
84
|
-
return;
|
|
85
|
-
const l = e.join(Ze);
|
|
86
|
-
return (a = t.validators.find(({
|
|
87
|
-
validator: s
|
|
88
|
-
}) => s(l))) == null ? void 0 : a.classGroupId;
|
|
89
|
-
}
|
|
90
|
-
const tt = /^\[(.+)\]$/;
|
|
91
|
-
function er(e) {
|
|
92
|
-
if (tt.test(e)) {
|
|
93
|
-
const t = tt.exec(e)[1], r = t == null ? void 0 : t.substring(0, t.indexOf(":"));
|
|
94
|
-
if (r)
|
|
95
|
-
return "arbitrary.." + r;
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
function tr(e) {
|
|
99
|
-
const {
|
|
100
|
-
theme: t,
|
|
101
|
-
prefix: r
|
|
102
|
-
} = e, n = {
|
|
103
|
-
nextPart: /* @__PURE__ */ new Map(),
|
|
104
|
-
validators: []
|
|
105
|
-
};
|
|
106
|
-
return nr(Object.entries(e.classGroups), r).forEach(([l, a]) => {
|
|
107
|
-
Ne(a, n, l, t);
|
|
108
|
-
}), n;
|
|
109
|
-
}
|
|
110
|
-
function Ne(e, t, r, n) {
|
|
111
|
-
e.forEach((o) => {
|
|
112
|
-
if (typeof o == "string") {
|
|
113
|
-
const l = o === "" ? t : rt(t, o);
|
|
114
|
-
l.classGroupId = r;
|
|
115
|
-
return;
|
|
116
|
-
}
|
|
117
|
-
if (typeof o == "function") {
|
|
118
|
-
if (rr(o)) {
|
|
119
|
-
Ne(o(n), t, r, n);
|
|
120
|
-
return;
|
|
121
|
-
}
|
|
122
|
-
t.validators.push({
|
|
123
|
-
validator: o,
|
|
124
|
-
classGroupId: r
|
|
125
|
-
});
|
|
126
|
-
return;
|
|
127
|
-
}
|
|
128
|
-
Object.entries(o).forEach(([l, a]) => {
|
|
129
|
-
Ne(a, rt(t, l), r, n);
|
|
130
|
-
});
|
|
131
|
-
});
|
|
132
|
-
}
|
|
133
|
-
function rt(e, t) {
|
|
134
|
-
let r = e;
|
|
135
|
-
return t.split(Ze).forEach((n) => {
|
|
136
|
-
r.nextPart.has(n) || r.nextPart.set(n, {
|
|
137
|
-
nextPart: /* @__PURE__ */ new Map(),
|
|
138
|
-
validators: []
|
|
139
|
-
}), r = r.nextPart.get(n);
|
|
140
|
-
}), r;
|
|
141
|
-
}
|
|
142
|
-
function rr(e) {
|
|
143
|
-
return e.isThemeGetter;
|
|
144
|
-
}
|
|
145
|
-
function nr(e, t) {
|
|
146
|
-
return t ? e.map(([r, n]) => {
|
|
147
|
-
const o = n.map((l) => typeof l == "string" ? t + l : typeof l == "object" ? Object.fromEntries(Object.entries(l).map(([a, s]) => [t + a, s])) : l);
|
|
148
|
-
return [r, o];
|
|
149
|
-
}) : e;
|
|
150
|
-
}
|
|
151
|
-
function or(e) {
|
|
152
|
-
if (e < 1)
|
|
153
|
-
return {
|
|
154
|
-
get: () => {
|
|
155
|
-
},
|
|
156
|
-
set: () => {
|
|
157
|
-
}
|
|
158
|
-
};
|
|
159
|
-
let t = 0, r = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map();
|
|
160
|
-
function o(l, a) {
|
|
161
|
-
r.set(l, a), t++, t > e && (t = 0, n = r, r = /* @__PURE__ */ new Map());
|
|
162
|
-
}
|
|
163
|
-
return {
|
|
164
|
-
get(l) {
|
|
165
|
-
let a = r.get(l);
|
|
166
|
-
if (a !== void 0)
|
|
167
|
-
return a;
|
|
168
|
-
if ((a = n.get(l)) !== void 0)
|
|
169
|
-
return o(l, a), a;
|
|
170
|
-
},
|
|
171
|
-
set(l, a) {
|
|
172
|
-
r.has(l) ? r.set(l, a) : o(l, a);
|
|
173
|
-
}
|
|
174
|
-
};
|
|
175
|
-
}
|
|
176
|
-
const vt = "!";
|
|
177
|
-
function lr(e) {
|
|
178
|
-
const t = e.separator, r = t.length === 1, n = t[0], o = t.length;
|
|
179
|
-
return function(a) {
|
|
180
|
-
const s = [];
|
|
181
|
-
let i = 0, u = 0, d;
|
|
182
|
-
for (let v = 0; v < a.length; v++) {
|
|
183
|
-
let S = a[v];
|
|
184
|
-
if (i === 0) {
|
|
185
|
-
if (S === n && (r || a.slice(v, v + o) === t)) {
|
|
186
|
-
s.push(a.slice(u, v)), u = v + o;
|
|
187
|
-
continue;
|
|
188
|
-
}
|
|
189
|
-
if (S === "/") {
|
|
190
|
-
d = v;
|
|
191
|
-
continue;
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
S === "[" ? i++ : S === "]" && i--;
|
|
195
|
-
}
|
|
196
|
-
const f = s.length === 0 ? a : a.substring(u), c = f.startsWith(vt), p = c ? f.substring(1) : f, g = d && d > u ? d - u : void 0;
|
|
197
|
-
return {
|
|
198
|
-
modifiers: s,
|
|
199
|
-
hasImportantModifier: c,
|
|
200
|
-
baseClassName: p,
|
|
201
|
-
maybePostfixModifierPosition: g
|
|
202
|
-
};
|
|
203
|
-
};
|
|
204
|
-
}
|
|
205
|
-
function ar(e) {
|
|
206
|
-
if (e.length <= 1)
|
|
207
|
-
return e;
|
|
208
|
-
const t = [];
|
|
209
|
-
let r = [];
|
|
210
|
-
return e.forEach((n) => {
|
|
211
|
-
n[0] === "[" ? (t.push(...r.sort(), n), r = []) : r.push(n);
|
|
212
|
-
}), t.push(...r.sort()), t;
|
|
213
|
-
}
|
|
214
|
-
function sr(e) {
|
|
215
|
-
return {
|
|
216
|
-
cache: or(e.cacheSize),
|
|
217
|
-
splitModifiers: lr(e),
|
|
218
|
-
...Qt(e)
|
|
219
|
-
};
|
|
220
|
-
}
|
|
221
|
-
const ir = /\s+/;
|
|
222
|
-
function ur(e, t) {
|
|
223
|
-
const {
|
|
224
|
-
splitModifiers: r,
|
|
225
|
-
getClassGroupId: n,
|
|
226
|
-
getConflictingClassGroupIds: o
|
|
227
|
-
} = t, l = /* @__PURE__ */ new Set();
|
|
228
|
-
return e.trim().split(ir).map((a) => {
|
|
229
|
-
const {
|
|
230
|
-
modifiers: s,
|
|
231
|
-
hasImportantModifier: i,
|
|
232
|
-
baseClassName: u,
|
|
233
|
-
maybePostfixModifierPosition: d
|
|
234
|
-
} = r(a);
|
|
235
|
-
let f = n(d ? u.substring(0, d) : u), c = !!d;
|
|
236
|
-
if (!f) {
|
|
237
|
-
if (!d)
|
|
238
|
-
return {
|
|
239
|
-
isTailwindClass: !1,
|
|
240
|
-
originalClassName: a
|
|
241
|
-
};
|
|
242
|
-
if (f = n(u), !f)
|
|
243
|
-
return {
|
|
244
|
-
isTailwindClass: !1,
|
|
245
|
-
originalClassName: a
|
|
246
|
-
};
|
|
247
|
-
c = !1;
|
|
248
|
-
}
|
|
249
|
-
const p = ar(s).join(":");
|
|
250
|
-
return {
|
|
251
|
-
isTailwindClass: !0,
|
|
252
|
-
modifierId: i ? p + vt : p,
|
|
253
|
-
classGroupId: f,
|
|
254
|
-
originalClassName: a,
|
|
255
|
-
hasPostfixModifier: c
|
|
256
|
-
};
|
|
257
|
-
}).reverse().filter((a) => {
|
|
258
|
-
if (!a.isTailwindClass)
|
|
259
|
-
return !0;
|
|
260
|
-
const {
|
|
261
|
-
modifierId: s,
|
|
262
|
-
classGroupId: i,
|
|
263
|
-
hasPostfixModifier: u
|
|
264
|
-
} = a, d = s + i;
|
|
265
|
-
return l.has(d) ? !1 : (l.add(d), o(i, u).forEach((f) => l.add(s + f)), !0);
|
|
266
|
-
}).reverse().map((a) => a.originalClassName).join(" ");
|
|
267
|
-
}
|
|
268
|
-
function cr() {
|
|
269
|
-
let e = 0, t, r, n = "";
|
|
270
|
-
for (; e < arguments.length; )
|
|
271
|
-
(t = arguments[e++]) && (r = gt(t)) && (n && (n += " "), n += r);
|
|
272
|
-
return n;
|
|
273
|
-
}
|
|
274
|
-
function gt(e) {
|
|
275
|
-
if (typeof e == "string")
|
|
276
|
-
return e;
|
|
277
|
-
let t, r = "";
|
|
278
|
-
for (let n = 0; n < e.length; n++)
|
|
279
|
-
e[n] && (t = gt(e[n])) && (r && (r += " "), r += t);
|
|
280
|
-
return r;
|
|
281
|
-
}
|
|
282
|
-
function nt(e, ...t) {
|
|
283
|
-
let r, n, o, l = a;
|
|
284
|
-
function a(i) {
|
|
285
|
-
const u = t.reduce((d, f) => f(d), e());
|
|
286
|
-
return r = sr(u), n = r.cache.get, o = r.cache.set, l = s, s(i);
|
|
287
|
-
}
|
|
288
|
-
function s(i) {
|
|
289
|
-
const u = n(i);
|
|
290
|
-
if (u)
|
|
291
|
-
return u;
|
|
292
|
-
const d = ur(i, r);
|
|
293
|
-
return o(i, d), d;
|
|
294
|
-
}
|
|
295
|
-
return function() {
|
|
296
|
-
return l(cr.apply(null, arguments));
|
|
297
|
-
};
|
|
298
|
-
}
|
|
299
|
-
function x(e) {
|
|
300
|
-
const t = (r) => r[e] || [];
|
|
301
|
-
return t.isThemeGetter = !0, t;
|
|
302
|
-
}
|
|
303
|
-
const mt = /^\[(?:([a-z-]+):)?(.+)\]$/i, dr = /^\d+\/\d+$/, pr = /* @__PURE__ */ new Set(["px", "full", "screen"]), fr = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, vr = /\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$/, gr = /^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, mr = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;
|
|
304
|
-
function z(e) {
|
|
305
|
-
return Z(e) || pr.has(e) || dr.test(e);
|
|
306
|
-
}
|
|
307
|
-
function W(e) {
|
|
308
|
-
return ae(e, "length", _r);
|
|
309
|
-
}
|
|
310
|
-
function Z(e) {
|
|
311
|
-
return !!e && !Number.isNaN(Number(e));
|
|
312
|
-
}
|
|
313
|
-
function Me(e) {
|
|
314
|
-
return ae(e, "number", Z);
|
|
315
|
-
}
|
|
316
|
-
function fe(e) {
|
|
317
|
-
return !!e && Number.isInteger(Number(e));
|
|
318
|
-
}
|
|
319
|
-
function hr(e) {
|
|
320
|
-
return e.endsWith("%") && Z(e.slice(0, -1));
|
|
321
|
-
}
|
|
322
|
-
function m(e) {
|
|
323
|
-
return mt.test(e);
|
|
324
|
-
}
|
|
325
|
-
function G(e) {
|
|
326
|
-
return fr.test(e);
|
|
327
|
-
}
|
|
328
|
-
const br = /* @__PURE__ */ new Set(["length", "size", "percentage"]);
|
|
329
|
-
function wr(e) {
|
|
330
|
-
return ae(e, br, ht);
|
|
331
|
-
}
|
|
332
|
-
function yr(e) {
|
|
333
|
-
return ae(e, "position", ht);
|
|
334
|
-
}
|
|
335
|
-
const xr = /* @__PURE__ */ new Set(["image", "url"]);
|
|
336
|
-
function Sr(e) {
|
|
337
|
-
return ae(e, xr, Er);
|
|
338
|
-
}
|
|
339
|
-
function kr(e) {
|
|
340
|
-
return ae(e, "", Cr);
|
|
341
|
-
}
|
|
342
|
-
function ve() {
|
|
343
|
-
return !0;
|
|
344
|
-
}
|
|
345
|
-
function ae(e, t, r) {
|
|
346
|
-
const n = mt.exec(e);
|
|
347
|
-
return n ? n[1] ? typeof t == "string" ? n[1] === t : t.has(n[1]) : r(n[2]) : !1;
|
|
348
|
-
}
|
|
349
|
-
function _r(e) {
|
|
350
|
-
return vr.test(e);
|
|
351
|
-
}
|
|
352
|
-
function ht() {
|
|
353
|
-
return !1;
|
|
354
|
-
}
|
|
355
|
-
function Cr(e) {
|
|
356
|
-
return gr.test(e);
|
|
357
|
-
}
|
|
358
|
-
function Er(e) {
|
|
359
|
-
return mr.test(e);
|
|
360
|
-
}
|
|
361
|
-
function ot() {
|
|
362
|
-
const e = x("colors"), t = x("spacing"), r = x("blur"), n = x("brightness"), o = x("borderColor"), l = x("borderRadius"), a = x("borderSpacing"), s = x("borderWidth"), i = x("contrast"), u = x("grayscale"), d = x("hueRotate"), f = x("invert"), c = x("gap"), p = x("gradientColorStops"), g = x("gradientColorStopPositions"), v = x("inset"), S = x("margin"), L = x("opacity"), E = x("padding"), B = x("saturate"), H = x("scale"), ke = x("sepia"), ue = x("skew"), _e = x("space"), Ce = x("translate"), ce = () => ["auto", "contain", "none"], de = () => ["auto", "hidden", "clip", "visible", "scroll"], pe = () => ["auto", m, t], b = () => [m, t], V = () => ["", z, W], re = () => ["auto", Z, m], Ee = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], ne = () => ["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", "plus-lighter"], k = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], T = () => ["", "0", m], A = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], D = () => [Z, Me], F = () => [Z, m];
|
|
363
|
-
return {
|
|
364
|
-
cacheSize: 500,
|
|
365
|
-
separator: ":",
|
|
366
|
-
theme: {
|
|
367
|
-
colors: [ve],
|
|
368
|
-
spacing: [z, W],
|
|
369
|
-
blur: ["none", "", G, m],
|
|
370
|
-
brightness: D(),
|
|
371
|
-
borderColor: [e],
|
|
372
|
-
borderRadius: ["none", "", "full", G, m],
|
|
373
|
-
borderSpacing: b(),
|
|
374
|
-
borderWidth: V(),
|
|
375
|
-
contrast: D(),
|
|
376
|
-
grayscale: T(),
|
|
377
|
-
hueRotate: F(),
|
|
378
|
-
invert: T(),
|
|
379
|
-
gap: b(),
|
|
380
|
-
gradientColorStops: [e],
|
|
381
|
-
gradientColorStopPositions: [hr, W],
|
|
382
|
-
inset: pe(),
|
|
383
|
-
margin: pe(),
|
|
384
|
-
opacity: D(),
|
|
385
|
-
padding: b(),
|
|
386
|
-
saturate: D(),
|
|
387
|
-
scale: D(),
|
|
388
|
-
sepia: T(),
|
|
389
|
-
skew: F(),
|
|
390
|
-
space: b(),
|
|
391
|
-
translate: b()
|
|
392
|
-
},
|
|
393
|
-
classGroups: {
|
|
394
|
-
// Layout
|
|
395
|
-
/**
|
|
396
|
-
* Aspect Ratio
|
|
397
|
-
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
398
|
-
*/
|
|
399
|
-
aspect: [{
|
|
400
|
-
aspect: ["auto", "square", "video", m]
|
|
401
|
-
}],
|
|
402
|
-
/**
|
|
403
|
-
* Container
|
|
404
|
-
* @see https://tailwindcss.com/docs/container
|
|
405
|
-
*/
|
|
406
|
-
container: ["container"],
|
|
407
|
-
/**
|
|
408
|
-
* Columns
|
|
409
|
-
* @see https://tailwindcss.com/docs/columns
|
|
410
|
-
*/
|
|
411
|
-
columns: [{
|
|
412
|
-
columns: [G]
|
|
413
|
-
}],
|
|
414
|
-
/**
|
|
415
|
-
* Break After
|
|
416
|
-
* @see https://tailwindcss.com/docs/break-after
|
|
417
|
-
*/
|
|
418
|
-
"break-after": [{
|
|
419
|
-
"break-after": A()
|
|
420
|
-
}],
|
|
421
|
-
/**
|
|
422
|
-
* Break Before
|
|
423
|
-
* @see https://tailwindcss.com/docs/break-before
|
|
424
|
-
*/
|
|
425
|
-
"break-before": [{
|
|
426
|
-
"break-before": A()
|
|
427
|
-
}],
|
|
428
|
-
/**
|
|
429
|
-
* Break Inside
|
|
430
|
-
* @see https://tailwindcss.com/docs/break-inside
|
|
431
|
-
*/
|
|
432
|
-
"break-inside": [{
|
|
433
|
-
"break-inside": ["auto", "avoid", "avoid-page", "avoid-column"]
|
|
434
|
-
}],
|
|
435
|
-
/**
|
|
436
|
-
* Box Decoration Break
|
|
437
|
-
* @see https://tailwindcss.com/docs/box-decoration-break
|
|
438
|
-
*/
|
|
439
|
-
"box-decoration": [{
|
|
440
|
-
"box-decoration": ["slice", "clone"]
|
|
441
|
-
}],
|
|
442
|
-
/**
|
|
443
|
-
* Box Sizing
|
|
444
|
-
* @see https://tailwindcss.com/docs/box-sizing
|
|
445
|
-
*/
|
|
446
|
-
box: [{
|
|
447
|
-
box: ["border", "content"]
|
|
448
|
-
}],
|
|
449
|
-
/**
|
|
450
|
-
* Display
|
|
451
|
-
* @see https://tailwindcss.com/docs/display
|
|
452
|
-
*/
|
|
453
|
-
display: ["block", "inline-block", "inline", "flex", "inline-flex", "table", "inline-table", "table-caption", "table-cell", "table-column", "table-column-group", "table-footer-group", "table-header-group", "table-row-group", "table-row", "flow-root", "grid", "inline-grid", "contents", "list-item", "hidden"],
|
|
454
|
-
/**
|
|
455
|
-
* Floats
|
|
456
|
-
* @see https://tailwindcss.com/docs/float
|
|
457
|
-
*/
|
|
458
|
-
float: [{
|
|
459
|
-
float: ["right", "left", "none"]
|
|
460
|
-
}],
|
|
461
|
-
/**
|
|
462
|
-
* Clear
|
|
463
|
-
* @see https://tailwindcss.com/docs/clear
|
|
464
|
-
*/
|
|
465
|
-
clear: [{
|
|
466
|
-
clear: ["left", "right", "both", "none"]
|
|
467
|
-
}],
|
|
468
|
-
/**
|
|
469
|
-
* Isolation
|
|
470
|
-
* @see https://tailwindcss.com/docs/isolation
|
|
471
|
-
*/
|
|
472
|
-
isolation: ["isolate", "isolation-auto"],
|
|
473
|
-
/**
|
|
474
|
-
* Object Fit
|
|
475
|
-
* @see https://tailwindcss.com/docs/object-fit
|
|
476
|
-
*/
|
|
477
|
-
"object-fit": [{
|
|
478
|
-
object: ["contain", "cover", "fill", "none", "scale-down"]
|
|
479
|
-
}],
|
|
480
|
-
/**
|
|
481
|
-
* Object Position
|
|
482
|
-
* @see https://tailwindcss.com/docs/object-position
|
|
483
|
-
*/
|
|
484
|
-
"object-position": [{
|
|
485
|
-
object: [...Ee(), m]
|
|
486
|
-
}],
|
|
487
|
-
/**
|
|
488
|
-
* Overflow
|
|
489
|
-
* @see https://tailwindcss.com/docs/overflow
|
|
490
|
-
*/
|
|
491
|
-
overflow: [{
|
|
492
|
-
overflow: de()
|
|
493
|
-
}],
|
|
494
|
-
/**
|
|
495
|
-
* Overflow X
|
|
496
|
-
* @see https://tailwindcss.com/docs/overflow
|
|
497
|
-
*/
|
|
498
|
-
"overflow-x": [{
|
|
499
|
-
"overflow-x": de()
|
|
500
|
-
}],
|
|
501
|
-
/**
|
|
502
|
-
* Overflow Y
|
|
503
|
-
* @see https://tailwindcss.com/docs/overflow
|
|
504
|
-
*/
|
|
505
|
-
"overflow-y": [{
|
|
506
|
-
"overflow-y": de()
|
|
507
|
-
}],
|
|
508
|
-
/**
|
|
509
|
-
* Overscroll Behavior
|
|
510
|
-
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
511
|
-
*/
|
|
512
|
-
overscroll: [{
|
|
513
|
-
overscroll: ce()
|
|
514
|
-
}],
|
|
515
|
-
/**
|
|
516
|
-
* Overscroll Behavior X
|
|
517
|
-
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
518
|
-
*/
|
|
519
|
-
"overscroll-x": [{
|
|
520
|
-
"overscroll-x": ce()
|
|
521
|
-
}],
|
|
522
|
-
/**
|
|
523
|
-
* Overscroll Behavior Y
|
|
524
|
-
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
525
|
-
*/
|
|
526
|
-
"overscroll-y": [{
|
|
527
|
-
"overscroll-y": ce()
|
|
528
|
-
}],
|
|
529
|
-
/**
|
|
530
|
-
* Position
|
|
531
|
-
* @see https://tailwindcss.com/docs/position
|
|
532
|
-
*/
|
|
533
|
-
position: ["static", "fixed", "absolute", "relative", "sticky"],
|
|
534
|
-
/**
|
|
535
|
-
* Top / Right / Bottom / Left
|
|
536
|
-
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
537
|
-
*/
|
|
538
|
-
inset: [{
|
|
539
|
-
inset: [v]
|
|
540
|
-
}],
|
|
541
|
-
/**
|
|
542
|
-
* Right / Left
|
|
543
|
-
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
544
|
-
*/
|
|
545
|
-
"inset-x": [{
|
|
546
|
-
"inset-x": [v]
|
|
547
|
-
}],
|
|
548
|
-
/**
|
|
549
|
-
* Top / Bottom
|
|
550
|
-
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
551
|
-
*/
|
|
552
|
-
"inset-y": [{
|
|
553
|
-
"inset-y": [v]
|
|
554
|
-
}],
|
|
555
|
-
/**
|
|
556
|
-
* Start
|
|
557
|
-
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
558
|
-
*/
|
|
559
|
-
start: [{
|
|
560
|
-
start: [v]
|
|
561
|
-
}],
|
|
562
|
-
/**
|
|
563
|
-
* End
|
|
564
|
-
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
565
|
-
*/
|
|
566
|
-
end: [{
|
|
567
|
-
end: [v]
|
|
568
|
-
}],
|
|
569
|
-
/**
|
|
570
|
-
* Top
|
|
571
|
-
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
572
|
-
*/
|
|
573
|
-
top: [{
|
|
574
|
-
top: [v]
|
|
575
|
-
}],
|
|
576
|
-
/**
|
|
577
|
-
* Right
|
|
578
|
-
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
579
|
-
*/
|
|
580
|
-
right: [{
|
|
581
|
-
right: [v]
|
|
582
|
-
}],
|
|
583
|
-
/**
|
|
584
|
-
* Bottom
|
|
585
|
-
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
586
|
-
*/
|
|
587
|
-
bottom: [{
|
|
588
|
-
bottom: [v]
|
|
589
|
-
}],
|
|
590
|
-
/**
|
|
591
|
-
* Left
|
|
592
|
-
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
593
|
-
*/
|
|
594
|
-
left: [{
|
|
595
|
-
left: [v]
|
|
596
|
-
}],
|
|
597
|
-
/**
|
|
598
|
-
* Visibility
|
|
599
|
-
* @see https://tailwindcss.com/docs/visibility
|
|
600
|
-
*/
|
|
601
|
-
visibility: ["visible", "invisible", "collapse"],
|
|
602
|
-
/**
|
|
603
|
-
* Z-Index
|
|
604
|
-
* @see https://tailwindcss.com/docs/z-index
|
|
605
|
-
*/
|
|
606
|
-
z: [{
|
|
607
|
-
z: ["auto", fe, m]
|
|
608
|
-
}],
|
|
609
|
-
// Flexbox and Grid
|
|
610
|
-
/**
|
|
611
|
-
* Flex Basis
|
|
612
|
-
* @see https://tailwindcss.com/docs/flex-basis
|
|
613
|
-
*/
|
|
614
|
-
basis: [{
|
|
615
|
-
basis: pe()
|
|
616
|
-
}],
|
|
617
|
-
/**
|
|
618
|
-
* Flex Direction
|
|
619
|
-
* @see https://tailwindcss.com/docs/flex-direction
|
|
620
|
-
*/
|
|
621
|
-
"flex-direction": [{
|
|
622
|
-
flex: ["row", "row-reverse", "col", "col-reverse"]
|
|
623
|
-
}],
|
|
624
|
-
/**
|
|
625
|
-
* Flex Wrap
|
|
626
|
-
* @see https://tailwindcss.com/docs/flex-wrap
|
|
627
|
-
*/
|
|
628
|
-
"flex-wrap": [{
|
|
629
|
-
flex: ["wrap", "wrap-reverse", "nowrap"]
|
|
630
|
-
}],
|
|
631
|
-
/**
|
|
632
|
-
* Flex
|
|
633
|
-
* @see https://tailwindcss.com/docs/flex
|
|
634
|
-
*/
|
|
635
|
-
flex: [{
|
|
636
|
-
flex: ["1", "auto", "initial", "none", m]
|
|
637
|
-
}],
|
|
638
|
-
/**
|
|
639
|
-
* Flex Grow
|
|
640
|
-
* @see https://tailwindcss.com/docs/flex-grow
|
|
641
|
-
*/
|
|
642
|
-
grow: [{
|
|
643
|
-
grow: T()
|
|
644
|
-
}],
|
|
645
|
-
/**
|
|
646
|
-
* Flex Shrink
|
|
647
|
-
* @see https://tailwindcss.com/docs/flex-shrink
|
|
648
|
-
*/
|
|
649
|
-
shrink: [{
|
|
650
|
-
shrink: T()
|
|
651
|
-
}],
|
|
652
|
-
/**
|
|
653
|
-
* Order
|
|
654
|
-
* @see https://tailwindcss.com/docs/order
|
|
655
|
-
*/
|
|
656
|
-
order: [{
|
|
657
|
-
order: ["first", "last", "none", fe, m]
|
|
658
|
-
}],
|
|
659
|
-
/**
|
|
660
|
-
* Grid Template Columns
|
|
661
|
-
* @see https://tailwindcss.com/docs/grid-template-columns
|
|
662
|
-
*/
|
|
663
|
-
"grid-cols": [{
|
|
664
|
-
"grid-cols": [ve]
|
|
665
|
-
}],
|
|
666
|
-
/**
|
|
667
|
-
* Grid Column Start / End
|
|
668
|
-
* @see https://tailwindcss.com/docs/grid-column
|
|
669
|
-
*/
|
|
670
|
-
"col-start-end": [{
|
|
671
|
-
col: ["auto", {
|
|
672
|
-
span: ["full", fe, m]
|
|
673
|
-
}, m]
|
|
674
|
-
}],
|
|
675
|
-
/**
|
|
676
|
-
* Grid Column Start
|
|
677
|
-
* @see https://tailwindcss.com/docs/grid-column
|
|
678
|
-
*/
|
|
679
|
-
"col-start": [{
|
|
680
|
-
"col-start": re()
|
|
681
|
-
}],
|
|
682
|
-
/**
|
|
683
|
-
* Grid Column End
|
|
684
|
-
* @see https://tailwindcss.com/docs/grid-column
|
|
685
|
-
*/
|
|
686
|
-
"col-end": [{
|
|
687
|
-
"col-end": re()
|
|
688
|
-
}],
|
|
689
|
-
/**
|
|
690
|
-
* Grid Template Rows
|
|
691
|
-
* @see https://tailwindcss.com/docs/grid-template-rows
|
|
692
|
-
*/
|
|
693
|
-
"grid-rows": [{
|
|
694
|
-
"grid-rows": [ve]
|
|
695
|
-
}],
|
|
696
|
-
/**
|
|
697
|
-
* Grid Row Start / End
|
|
698
|
-
* @see https://tailwindcss.com/docs/grid-row
|
|
699
|
-
*/
|
|
700
|
-
"row-start-end": [{
|
|
701
|
-
row: ["auto", {
|
|
702
|
-
span: [fe, m]
|
|
703
|
-
}, m]
|
|
704
|
-
}],
|
|
705
|
-
/**
|
|
706
|
-
* Grid Row Start
|
|
707
|
-
* @see https://tailwindcss.com/docs/grid-row
|
|
708
|
-
*/
|
|
709
|
-
"row-start": [{
|
|
710
|
-
"row-start": re()
|
|
711
|
-
}],
|
|
712
|
-
/**
|
|
713
|
-
* Grid Row End
|
|
714
|
-
* @see https://tailwindcss.com/docs/grid-row
|
|
715
|
-
*/
|
|
716
|
-
"row-end": [{
|
|
717
|
-
"row-end": re()
|
|
718
|
-
}],
|
|
719
|
-
/**
|
|
720
|
-
* Grid Auto Flow
|
|
721
|
-
* @see https://tailwindcss.com/docs/grid-auto-flow
|
|
722
|
-
*/
|
|
723
|
-
"grid-flow": [{
|
|
724
|
-
"grid-flow": ["row", "col", "dense", "row-dense", "col-dense"]
|
|
725
|
-
}],
|
|
726
|
-
/**
|
|
727
|
-
* Grid Auto Columns
|
|
728
|
-
* @see https://tailwindcss.com/docs/grid-auto-columns
|
|
729
|
-
*/
|
|
730
|
-
"auto-cols": [{
|
|
731
|
-
"auto-cols": ["auto", "min", "max", "fr", m]
|
|
732
|
-
}],
|
|
733
|
-
/**
|
|
734
|
-
* Grid Auto Rows
|
|
735
|
-
* @see https://tailwindcss.com/docs/grid-auto-rows
|
|
736
|
-
*/
|
|
737
|
-
"auto-rows": [{
|
|
738
|
-
"auto-rows": ["auto", "min", "max", "fr", m]
|
|
739
|
-
}],
|
|
740
|
-
/**
|
|
741
|
-
* Gap
|
|
742
|
-
* @see https://tailwindcss.com/docs/gap
|
|
743
|
-
*/
|
|
744
|
-
gap: [{
|
|
745
|
-
gap: [c]
|
|
746
|
-
}],
|
|
747
|
-
/**
|
|
748
|
-
* Gap X
|
|
749
|
-
* @see https://tailwindcss.com/docs/gap
|
|
750
|
-
*/
|
|
751
|
-
"gap-x": [{
|
|
752
|
-
"gap-x": [c]
|
|
753
|
-
}],
|
|
754
|
-
/**
|
|
755
|
-
* Gap Y
|
|
756
|
-
* @see https://tailwindcss.com/docs/gap
|
|
757
|
-
*/
|
|
758
|
-
"gap-y": [{
|
|
759
|
-
"gap-y": [c]
|
|
760
|
-
}],
|
|
761
|
-
/**
|
|
762
|
-
* Justify Content
|
|
763
|
-
* @see https://tailwindcss.com/docs/justify-content
|
|
764
|
-
*/
|
|
765
|
-
"justify-content": [{
|
|
766
|
-
justify: ["normal", ...k()]
|
|
767
|
-
}],
|
|
768
|
-
/**
|
|
769
|
-
* Justify Items
|
|
770
|
-
* @see https://tailwindcss.com/docs/justify-items
|
|
771
|
-
*/
|
|
772
|
-
"justify-items": [{
|
|
773
|
-
"justify-items": ["start", "end", "center", "stretch"]
|
|
774
|
-
}],
|
|
775
|
-
/**
|
|
776
|
-
* Justify Self
|
|
777
|
-
* @see https://tailwindcss.com/docs/justify-self
|
|
778
|
-
*/
|
|
779
|
-
"justify-self": [{
|
|
780
|
-
"justify-self": ["auto", "start", "end", "center", "stretch"]
|
|
781
|
-
}],
|
|
782
|
-
/**
|
|
783
|
-
* Align Content
|
|
784
|
-
* @see https://tailwindcss.com/docs/align-content
|
|
785
|
-
*/
|
|
786
|
-
"align-content": [{
|
|
787
|
-
content: ["normal", ...k(), "baseline"]
|
|
788
|
-
}],
|
|
789
|
-
/**
|
|
790
|
-
* Align Items
|
|
791
|
-
* @see https://tailwindcss.com/docs/align-items
|
|
792
|
-
*/
|
|
793
|
-
"align-items": [{
|
|
794
|
-
items: ["start", "end", "center", "baseline", "stretch"]
|
|
795
|
-
}],
|
|
796
|
-
/**
|
|
797
|
-
* Align Self
|
|
798
|
-
* @see https://tailwindcss.com/docs/align-self
|
|
799
|
-
*/
|
|
800
|
-
"align-self": [{
|
|
801
|
-
self: ["auto", "start", "end", "center", "stretch", "baseline"]
|
|
802
|
-
}],
|
|
803
|
-
/**
|
|
804
|
-
* Place Content
|
|
805
|
-
* @see https://tailwindcss.com/docs/place-content
|
|
806
|
-
*/
|
|
807
|
-
"place-content": [{
|
|
808
|
-
"place-content": [...k(), "baseline"]
|
|
809
|
-
}],
|
|
810
|
-
/**
|
|
811
|
-
* Place Items
|
|
812
|
-
* @see https://tailwindcss.com/docs/place-items
|
|
813
|
-
*/
|
|
814
|
-
"place-items": [{
|
|
815
|
-
"place-items": ["start", "end", "center", "baseline", "stretch"]
|
|
816
|
-
}],
|
|
817
|
-
/**
|
|
818
|
-
* Place Self
|
|
819
|
-
* @see https://tailwindcss.com/docs/place-self
|
|
820
|
-
*/
|
|
821
|
-
"place-self": [{
|
|
822
|
-
"place-self": ["auto", "start", "end", "center", "stretch"]
|
|
823
|
-
}],
|
|
824
|
-
// Spacing
|
|
825
|
-
/**
|
|
826
|
-
* Padding
|
|
827
|
-
* @see https://tailwindcss.com/docs/padding
|
|
828
|
-
*/
|
|
829
|
-
p: [{
|
|
830
|
-
p: [E]
|
|
831
|
-
}],
|
|
832
|
-
/**
|
|
833
|
-
* Padding X
|
|
834
|
-
* @see https://tailwindcss.com/docs/padding
|
|
835
|
-
*/
|
|
836
|
-
px: [{
|
|
837
|
-
px: [E]
|
|
838
|
-
}],
|
|
839
|
-
/**
|
|
840
|
-
* Padding Y
|
|
841
|
-
* @see https://tailwindcss.com/docs/padding
|
|
842
|
-
*/
|
|
843
|
-
py: [{
|
|
844
|
-
py: [E]
|
|
845
|
-
}],
|
|
846
|
-
/**
|
|
847
|
-
* Padding Start
|
|
848
|
-
* @see https://tailwindcss.com/docs/padding
|
|
849
|
-
*/
|
|
850
|
-
ps: [{
|
|
851
|
-
ps: [E]
|
|
852
|
-
}],
|
|
853
|
-
/**
|
|
854
|
-
* Padding End
|
|
855
|
-
* @see https://tailwindcss.com/docs/padding
|
|
856
|
-
*/
|
|
857
|
-
pe: [{
|
|
858
|
-
pe: [E]
|
|
859
|
-
}],
|
|
860
|
-
/**
|
|
861
|
-
* Padding Top
|
|
862
|
-
* @see https://tailwindcss.com/docs/padding
|
|
863
|
-
*/
|
|
864
|
-
pt: [{
|
|
865
|
-
pt: [E]
|
|
866
|
-
}],
|
|
867
|
-
/**
|
|
868
|
-
* Padding Right
|
|
869
|
-
* @see https://tailwindcss.com/docs/padding
|
|
870
|
-
*/
|
|
871
|
-
pr: [{
|
|
872
|
-
pr: [E]
|
|
873
|
-
}],
|
|
874
|
-
/**
|
|
875
|
-
* Padding Bottom
|
|
876
|
-
* @see https://tailwindcss.com/docs/padding
|
|
877
|
-
*/
|
|
878
|
-
pb: [{
|
|
879
|
-
pb: [E]
|
|
880
|
-
}],
|
|
881
|
-
/**
|
|
882
|
-
* Padding Left
|
|
883
|
-
* @see https://tailwindcss.com/docs/padding
|
|
884
|
-
*/
|
|
885
|
-
pl: [{
|
|
886
|
-
pl: [E]
|
|
887
|
-
}],
|
|
888
|
-
/**
|
|
889
|
-
* Margin
|
|
890
|
-
* @see https://tailwindcss.com/docs/margin
|
|
891
|
-
*/
|
|
892
|
-
m: [{
|
|
893
|
-
m: [S]
|
|
894
|
-
}],
|
|
895
|
-
/**
|
|
896
|
-
* Margin X
|
|
897
|
-
* @see https://tailwindcss.com/docs/margin
|
|
898
|
-
*/
|
|
899
|
-
mx: [{
|
|
900
|
-
mx: [S]
|
|
901
|
-
}],
|
|
902
|
-
/**
|
|
903
|
-
* Margin Y
|
|
904
|
-
* @see https://tailwindcss.com/docs/margin
|
|
905
|
-
*/
|
|
906
|
-
my: [{
|
|
907
|
-
my: [S]
|
|
908
|
-
}],
|
|
909
|
-
/**
|
|
910
|
-
* Margin Start
|
|
911
|
-
* @see https://tailwindcss.com/docs/margin
|
|
912
|
-
*/
|
|
913
|
-
ms: [{
|
|
914
|
-
ms: [S]
|
|
915
|
-
}],
|
|
916
|
-
/**
|
|
917
|
-
* Margin End
|
|
918
|
-
* @see https://tailwindcss.com/docs/margin
|
|
919
|
-
*/
|
|
920
|
-
me: [{
|
|
921
|
-
me: [S]
|
|
922
|
-
}],
|
|
923
|
-
/**
|
|
924
|
-
* Margin Top
|
|
925
|
-
* @see https://tailwindcss.com/docs/margin
|
|
926
|
-
*/
|
|
927
|
-
mt: [{
|
|
928
|
-
mt: [S]
|
|
929
|
-
}],
|
|
930
|
-
/**
|
|
931
|
-
* Margin Right
|
|
932
|
-
* @see https://tailwindcss.com/docs/margin
|
|
933
|
-
*/
|
|
934
|
-
mr: [{
|
|
935
|
-
mr: [S]
|
|
936
|
-
}],
|
|
937
|
-
/**
|
|
938
|
-
* Margin Bottom
|
|
939
|
-
* @see https://tailwindcss.com/docs/margin
|
|
940
|
-
*/
|
|
941
|
-
mb: [{
|
|
942
|
-
mb: [S]
|
|
943
|
-
}],
|
|
944
|
-
/**
|
|
945
|
-
* Margin Left
|
|
946
|
-
* @see https://tailwindcss.com/docs/margin
|
|
947
|
-
*/
|
|
948
|
-
ml: [{
|
|
949
|
-
ml: [S]
|
|
950
|
-
}],
|
|
951
|
-
/**
|
|
952
|
-
* Space Between X
|
|
953
|
-
* @see https://tailwindcss.com/docs/space
|
|
954
|
-
*/
|
|
955
|
-
"space-x": [{
|
|
956
|
-
"space-x": [_e]
|
|
957
|
-
}],
|
|
958
|
-
/**
|
|
959
|
-
* Space Between X Reverse
|
|
960
|
-
* @see https://tailwindcss.com/docs/space
|
|
961
|
-
*/
|
|
962
|
-
"space-x-reverse": ["space-x-reverse"],
|
|
963
|
-
/**
|
|
964
|
-
* Space Between Y
|
|
965
|
-
* @see https://tailwindcss.com/docs/space
|
|
966
|
-
*/
|
|
967
|
-
"space-y": [{
|
|
968
|
-
"space-y": [_e]
|
|
969
|
-
}],
|
|
970
|
-
/**
|
|
971
|
-
* Space Between Y Reverse
|
|
972
|
-
* @see https://tailwindcss.com/docs/space
|
|
973
|
-
*/
|
|
974
|
-
"space-y-reverse": ["space-y-reverse"],
|
|
975
|
-
// Sizing
|
|
976
|
-
/**
|
|
977
|
-
* Width
|
|
978
|
-
* @see https://tailwindcss.com/docs/width
|
|
979
|
-
*/
|
|
980
|
-
w: [{
|
|
981
|
-
w: ["auto", "min", "max", "fit", m, t]
|
|
982
|
-
}],
|
|
983
|
-
/**
|
|
984
|
-
* Min-Width
|
|
985
|
-
* @see https://tailwindcss.com/docs/min-width
|
|
986
|
-
*/
|
|
987
|
-
"min-w": [{
|
|
988
|
-
"min-w": ["min", "max", "fit", m, z]
|
|
989
|
-
}],
|
|
990
|
-
/**
|
|
991
|
-
* Max-Width
|
|
992
|
-
* @see https://tailwindcss.com/docs/max-width
|
|
993
|
-
*/
|
|
994
|
-
"max-w": [{
|
|
995
|
-
"max-w": ["0", "none", "full", "min", "max", "fit", "prose", {
|
|
996
|
-
screen: [G]
|
|
997
|
-
}, G, m]
|
|
998
|
-
}],
|
|
999
|
-
/**
|
|
1000
|
-
* Height
|
|
1001
|
-
* @see https://tailwindcss.com/docs/height
|
|
1002
|
-
*/
|
|
1003
|
-
h: [{
|
|
1004
|
-
h: [m, t, "auto", "min", "max", "fit"]
|
|
1005
|
-
}],
|
|
1006
|
-
/**
|
|
1007
|
-
* Min-Height
|
|
1008
|
-
* @see https://tailwindcss.com/docs/min-height
|
|
1009
|
-
*/
|
|
1010
|
-
"min-h": [{
|
|
1011
|
-
"min-h": ["min", "max", "fit", z, m]
|
|
1012
|
-
}],
|
|
1013
|
-
/**
|
|
1014
|
-
* Max-Height
|
|
1015
|
-
* @see https://tailwindcss.com/docs/max-height
|
|
1016
|
-
*/
|
|
1017
|
-
"max-h": [{
|
|
1018
|
-
"max-h": [m, t, "min", "max", "fit"]
|
|
1019
|
-
}],
|
|
1020
|
-
// Typography
|
|
1021
|
-
/**
|
|
1022
|
-
* Font Size
|
|
1023
|
-
* @see https://tailwindcss.com/docs/font-size
|
|
1024
|
-
*/
|
|
1025
|
-
"font-size": [{
|
|
1026
|
-
text: ["base", G, W]
|
|
1027
|
-
}],
|
|
1028
|
-
/**
|
|
1029
|
-
* Font Smoothing
|
|
1030
|
-
* @see https://tailwindcss.com/docs/font-smoothing
|
|
1031
|
-
*/
|
|
1032
|
-
"font-smoothing": ["antialiased", "subpixel-antialiased"],
|
|
1033
|
-
/**
|
|
1034
|
-
* Font Style
|
|
1035
|
-
* @see https://tailwindcss.com/docs/font-style
|
|
1036
|
-
*/
|
|
1037
|
-
"font-style": ["italic", "not-italic"],
|
|
1038
|
-
/**
|
|
1039
|
-
* Font Weight
|
|
1040
|
-
* @see https://tailwindcss.com/docs/font-weight
|
|
1041
|
-
*/
|
|
1042
|
-
"font-weight": [{
|
|
1043
|
-
font: ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black", Me]
|
|
1044
|
-
}],
|
|
1045
|
-
/**
|
|
1046
|
-
* Font Family
|
|
1047
|
-
* @see https://tailwindcss.com/docs/font-family
|
|
1048
|
-
*/
|
|
1049
|
-
"font-family": [{
|
|
1050
|
-
font: [ve]
|
|
1051
|
-
}],
|
|
1052
|
-
/**
|
|
1053
|
-
* Font Variant Numeric
|
|
1054
|
-
* @see https://tailwindcss.com/docs/font-variant-numeric
|
|
1055
|
-
*/
|
|
1056
|
-
"fvn-normal": ["normal-nums"],
|
|
1057
|
-
/**
|
|
1058
|
-
* Font Variant Numeric
|
|
1059
|
-
* @see https://tailwindcss.com/docs/font-variant-numeric
|
|
1060
|
-
*/
|
|
1061
|
-
"fvn-ordinal": ["ordinal"],
|
|
1062
|
-
/**
|
|
1063
|
-
* Font Variant Numeric
|
|
1064
|
-
* @see https://tailwindcss.com/docs/font-variant-numeric
|
|
1065
|
-
*/
|
|
1066
|
-
"fvn-slashed-zero": ["slashed-zero"],
|
|
1067
|
-
/**
|
|
1068
|
-
* Font Variant Numeric
|
|
1069
|
-
* @see https://tailwindcss.com/docs/font-variant-numeric
|
|
1070
|
-
*/
|
|
1071
|
-
"fvn-figure": ["lining-nums", "oldstyle-nums"],
|
|
1072
|
-
/**
|
|
1073
|
-
* Font Variant Numeric
|
|
1074
|
-
* @see https://tailwindcss.com/docs/font-variant-numeric
|
|
1075
|
-
*/
|
|
1076
|
-
"fvn-spacing": ["proportional-nums", "tabular-nums"],
|
|
1077
|
-
/**
|
|
1078
|
-
* Font Variant Numeric
|
|
1079
|
-
* @see https://tailwindcss.com/docs/font-variant-numeric
|
|
1080
|
-
*/
|
|
1081
|
-
"fvn-fraction": ["diagonal-fractions", "stacked-fractons"],
|
|
1082
|
-
/**
|
|
1083
|
-
* Letter Spacing
|
|
1084
|
-
* @see https://tailwindcss.com/docs/letter-spacing
|
|
1085
|
-
*/
|
|
1086
|
-
tracking: [{
|
|
1087
|
-
tracking: ["tighter", "tight", "normal", "wide", "wider", "widest", m]
|
|
1088
|
-
}],
|
|
1089
|
-
/**
|
|
1090
|
-
* Line Clamp
|
|
1091
|
-
* @see https://tailwindcss.com/docs/line-clamp
|
|
1092
|
-
*/
|
|
1093
|
-
"line-clamp": [{
|
|
1094
|
-
"line-clamp": ["none", Z, Me]
|
|
1095
|
-
}],
|
|
1096
|
-
/**
|
|
1097
|
-
* Line Height
|
|
1098
|
-
* @see https://tailwindcss.com/docs/line-height
|
|
1099
|
-
*/
|
|
1100
|
-
leading: [{
|
|
1101
|
-
leading: ["none", "tight", "snug", "normal", "relaxed", "loose", z, m]
|
|
1102
|
-
}],
|
|
1103
|
-
/**
|
|
1104
|
-
* List Style Image
|
|
1105
|
-
* @see https://tailwindcss.com/docs/list-style-image
|
|
1106
|
-
*/
|
|
1107
|
-
"list-image": [{
|
|
1108
|
-
"list-image": ["none", m]
|
|
1109
|
-
}],
|
|
1110
|
-
/**
|
|
1111
|
-
* List Style Type
|
|
1112
|
-
* @see https://tailwindcss.com/docs/list-style-type
|
|
1113
|
-
*/
|
|
1114
|
-
"list-style-type": [{
|
|
1115
|
-
list: ["none", "disc", "decimal", m]
|
|
1116
|
-
}],
|
|
1117
|
-
/**
|
|
1118
|
-
* List Style Position
|
|
1119
|
-
* @see https://tailwindcss.com/docs/list-style-position
|
|
1120
|
-
*/
|
|
1121
|
-
"list-style-position": [{
|
|
1122
|
-
list: ["inside", "outside"]
|
|
1123
|
-
}],
|
|
1124
|
-
/**
|
|
1125
|
-
* Placeholder Color
|
|
1126
|
-
* @deprecated since Tailwind CSS v3.0.0
|
|
1127
|
-
* @see https://tailwindcss.com/docs/placeholder-color
|
|
1128
|
-
*/
|
|
1129
|
-
"placeholder-color": [{
|
|
1130
|
-
placeholder: [e]
|
|
1131
|
-
}],
|
|
1132
|
-
/**
|
|
1133
|
-
* Placeholder Opacity
|
|
1134
|
-
* @see https://tailwindcss.com/docs/placeholder-opacity
|
|
1135
|
-
*/
|
|
1136
|
-
"placeholder-opacity": [{
|
|
1137
|
-
"placeholder-opacity": [L]
|
|
1138
|
-
}],
|
|
1139
|
-
/**
|
|
1140
|
-
* Text Alignment
|
|
1141
|
-
* @see https://tailwindcss.com/docs/text-align
|
|
1142
|
-
*/
|
|
1143
|
-
"text-alignment": [{
|
|
1144
|
-
text: ["left", "center", "right", "justify", "start", "end"]
|
|
1145
|
-
}],
|
|
1146
|
-
/**
|
|
1147
|
-
* Text Color
|
|
1148
|
-
* @see https://tailwindcss.com/docs/text-color
|
|
1149
|
-
*/
|
|
1150
|
-
"text-color": [{
|
|
1151
|
-
text: [e]
|
|
1152
|
-
}],
|
|
1153
|
-
/**
|
|
1154
|
-
* Text Opacity
|
|
1155
|
-
* @see https://tailwindcss.com/docs/text-opacity
|
|
1156
|
-
*/
|
|
1157
|
-
"text-opacity": [{
|
|
1158
|
-
"text-opacity": [L]
|
|
1159
|
-
}],
|
|
1160
|
-
/**
|
|
1161
|
-
* Text Decoration
|
|
1162
|
-
* @see https://tailwindcss.com/docs/text-decoration
|
|
1163
|
-
*/
|
|
1164
|
-
"text-decoration": ["underline", "overline", "line-through", "no-underline"],
|
|
1165
|
-
/**
|
|
1166
|
-
* Text Decoration Style
|
|
1167
|
-
* @see https://tailwindcss.com/docs/text-decoration-style
|
|
1168
|
-
*/
|
|
1169
|
-
"text-decoration-style": [{
|
|
1170
|
-
decoration: [...ne(), "wavy"]
|
|
1171
|
-
}],
|
|
1172
|
-
/**
|
|
1173
|
-
* Text Decoration Thickness
|
|
1174
|
-
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
|
1175
|
-
*/
|
|
1176
|
-
"text-decoration-thickness": [{
|
|
1177
|
-
decoration: ["auto", "from-font", z, W]
|
|
1178
|
-
}],
|
|
1179
|
-
/**
|
|
1180
|
-
* Text Underline Offset
|
|
1181
|
-
* @see https://tailwindcss.com/docs/text-underline-offset
|
|
1182
|
-
*/
|
|
1183
|
-
"underline-offset": [{
|
|
1184
|
-
"underline-offset": ["auto", z, m]
|
|
1185
|
-
}],
|
|
1186
|
-
/**
|
|
1187
|
-
* Text Decoration Color
|
|
1188
|
-
* @see https://tailwindcss.com/docs/text-decoration-color
|
|
1189
|
-
*/
|
|
1190
|
-
"text-decoration-color": [{
|
|
1191
|
-
decoration: [e]
|
|
1192
|
-
}],
|
|
1193
|
-
/**
|
|
1194
|
-
* Text Transform
|
|
1195
|
-
* @see https://tailwindcss.com/docs/text-transform
|
|
1196
|
-
*/
|
|
1197
|
-
"text-transform": ["uppercase", "lowercase", "capitalize", "normal-case"],
|
|
1198
|
-
/**
|
|
1199
|
-
* Text Overflow
|
|
1200
|
-
* @see https://tailwindcss.com/docs/text-overflow
|
|
1201
|
-
*/
|
|
1202
|
-
"text-overflow": ["truncate", "text-ellipsis", "text-clip"],
|
|
1203
|
-
/**
|
|
1204
|
-
* Text Indent
|
|
1205
|
-
* @see https://tailwindcss.com/docs/text-indent
|
|
1206
|
-
*/
|
|
1207
|
-
indent: [{
|
|
1208
|
-
indent: b()
|
|
1209
|
-
}],
|
|
1210
|
-
/**
|
|
1211
|
-
* Vertical Alignment
|
|
1212
|
-
* @see https://tailwindcss.com/docs/vertical-align
|
|
1213
|
-
*/
|
|
1214
|
-
"vertical-align": [{
|
|
1215
|
-
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", m]
|
|
1216
|
-
}],
|
|
1217
|
-
/**
|
|
1218
|
-
* Whitespace
|
|
1219
|
-
* @see https://tailwindcss.com/docs/whitespace
|
|
1220
|
-
*/
|
|
1221
|
-
whitespace: [{
|
|
1222
|
-
whitespace: ["normal", "nowrap", "pre", "pre-line", "pre-wrap", "break-spaces"]
|
|
1223
|
-
}],
|
|
1224
|
-
/**
|
|
1225
|
-
* Word Break
|
|
1226
|
-
* @see https://tailwindcss.com/docs/word-break
|
|
1227
|
-
*/
|
|
1228
|
-
break: [{
|
|
1229
|
-
break: ["normal", "words", "all", "keep"]
|
|
1230
|
-
}],
|
|
1231
|
-
/**
|
|
1232
|
-
* Hyphens
|
|
1233
|
-
* @see https://tailwindcss.com/docs/hyphens
|
|
1234
|
-
*/
|
|
1235
|
-
hyphens: [{
|
|
1236
|
-
hyphens: ["none", "manual", "auto"]
|
|
1237
|
-
}],
|
|
1238
|
-
/**
|
|
1239
|
-
* Content
|
|
1240
|
-
* @see https://tailwindcss.com/docs/content
|
|
1241
|
-
*/
|
|
1242
|
-
content: [{
|
|
1243
|
-
content: ["none", m]
|
|
1244
|
-
}],
|
|
1245
|
-
// Backgrounds
|
|
1246
|
-
/**
|
|
1247
|
-
* Background Attachment
|
|
1248
|
-
* @see https://tailwindcss.com/docs/background-attachment
|
|
1249
|
-
*/
|
|
1250
|
-
"bg-attachment": [{
|
|
1251
|
-
bg: ["fixed", "local", "scroll"]
|
|
1252
|
-
}],
|
|
1253
|
-
/**
|
|
1254
|
-
* Background Clip
|
|
1255
|
-
* @see https://tailwindcss.com/docs/background-clip
|
|
1256
|
-
*/
|
|
1257
|
-
"bg-clip": [{
|
|
1258
|
-
"bg-clip": ["border", "padding", "content", "text"]
|
|
1259
|
-
}],
|
|
1260
|
-
/**
|
|
1261
|
-
* Background Opacity
|
|
1262
|
-
* @deprecated since Tailwind CSS v3.0.0
|
|
1263
|
-
* @see https://tailwindcss.com/docs/background-opacity
|
|
1264
|
-
*/
|
|
1265
|
-
"bg-opacity": [{
|
|
1266
|
-
"bg-opacity": [L]
|
|
1267
|
-
}],
|
|
1268
|
-
/**
|
|
1269
|
-
* Background Origin
|
|
1270
|
-
* @see https://tailwindcss.com/docs/background-origin
|
|
1271
|
-
*/
|
|
1272
|
-
"bg-origin": [{
|
|
1273
|
-
"bg-origin": ["border", "padding", "content"]
|
|
1274
|
-
}],
|
|
1275
|
-
/**
|
|
1276
|
-
* Background Position
|
|
1277
|
-
* @see https://tailwindcss.com/docs/background-position
|
|
1278
|
-
*/
|
|
1279
|
-
"bg-position": [{
|
|
1280
|
-
bg: [...Ee(), yr]
|
|
1281
|
-
}],
|
|
1282
|
-
/**
|
|
1283
|
-
* Background Repeat
|
|
1284
|
-
* @see https://tailwindcss.com/docs/background-repeat
|
|
1285
|
-
*/
|
|
1286
|
-
"bg-repeat": [{
|
|
1287
|
-
bg: ["no-repeat", {
|
|
1288
|
-
repeat: ["", "x", "y", "round", "space"]
|
|
1289
|
-
}]
|
|
1290
|
-
}],
|
|
1291
|
-
/**
|
|
1292
|
-
* Background Size
|
|
1293
|
-
* @see https://tailwindcss.com/docs/background-size
|
|
1294
|
-
*/
|
|
1295
|
-
"bg-size": [{
|
|
1296
|
-
bg: ["auto", "cover", "contain", wr]
|
|
1297
|
-
}],
|
|
1298
|
-
/**
|
|
1299
|
-
* Background Image
|
|
1300
|
-
* @see https://tailwindcss.com/docs/background-image
|
|
1301
|
-
*/
|
|
1302
|
-
"bg-image": [{
|
|
1303
|
-
bg: ["none", {
|
|
1304
|
-
"gradient-to": ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
|
|
1305
|
-
}, Sr]
|
|
1306
|
-
}],
|
|
1307
|
-
/**
|
|
1308
|
-
* Background Color
|
|
1309
|
-
* @see https://tailwindcss.com/docs/background-color
|
|
1310
|
-
*/
|
|
1311
|
-
"bg-color": [{
|
|
1312
|
-
bg: [e]
|
|
1313
|
-
}],
|
|
1314
|
-
/**
|
|
1315
|
-
* Gradient Color Stops From Position
|
|
1316
|
-
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1317
|
-
*/
|
|
1318
|
-
"gradient-from-pos": [{
|
|
1319
|
-
from: [g]
|
|
1320
|
-
}],
|
|
1321
|
-
/**
|
|
1322
|
-
* Gradient Color Stops Via Position
|
|
1323
|
-
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1324
|
-
*/
|
|
1325
|
-
"gradient-via-pos": [{
|
|
1326
|
-
via: [g]
|
|
1327
|
-
}],
|
|
1328
|
-
/**
|
|
1329
|
-
* Gradient Color Stops To Position
|
|
1330
|
-
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1331
|
-
*/
|
|
1332
|
-
"gradient-to-pos": [{
|
|
1333
|
-
to: [g]
|
|
1334
|
-
}],
|
|
1335
|
-
/**
|
|
1336
|
-
* Gradient Color Stops From
|
|
1337
|
-
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1338
|
-
*/
|
|
1339
|
-
"gradient-from": [{
|
|
1340
|
-
from: [p]
|
|
1341
|
-
}],
|
|
1342
|
-
/**
|
|
1343
|
-
* Gradient Color Stops Via
|
|
1344
|
-
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1345
|
-
*/
|
|
1346
|
-
"gradient-via": [{
|
|
1347
|
-
via: [p]
|
|
1348
|
-
}],
|
|
1349
|
-
/**
|
|
1350
|
-
* Gradient Color Stops To
|
|
1351
|
-
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1352
|
-
*/
|
|
1353
|
-
"gradient-to": [{
|
|
1354
|
-
to: [p]
|
|
1355
|
-
}],
|
|
1356
|
-
// Borders
|
|
1357
|
-
/**
|
|
1358
|
-
* Border Radius
|
|
1359
|
-
* @see https://tailwindcss.com/docs/border-radius
|
|
1360
|
-
*/
|
|
1361
|
-
rounded: [{
|
|
1362
|
-
rounded: [l]
|
|
1363
|
-
}],
|
|
1364
|
-
/**
|
|
1365
|
-
* Border Radius Start
|
|
1366
|
-
* @see https://tailwindcss.com/docs/border-radius
|
|
1367
|
-
*/
|
|
1368
|
-
"rounded-s": [{
|
|
1369
|
-
"rounded-s": [l]
|
|
1370
|
-
}],
|
|
1371
|
-
/**
|
|
1372
|
-
* Border Radius End
|
|
1373
|
-
* @see https://tailwindcss.com/docs/border-radius
|
|
1374
|
-
*/
|
|
1375
|
-
"rounded-e": [{
|
|
1376
|
-
"rounded-e": [l]
|
|
1377
|
-
}],
|
|
1378
|
-
/**
|
|
1379
|
-
* Border Radius Top
|
|
1380
|
-
* @see https://tailwindcss.com/docs/border-radius
|
|
1381
|
-
*/
|
|
1382
|
-
"rounded-t": [{
|
|
1383
|
-
"rounded-t": [l]
|
|
1384
|
-
}],
|
|
1385
|
-
/**
|
|
1386
|
-
* Border Radius Right
|
|
1387
|
-
* @see https://tailwindcss.com/docs/border-radius
|
|
1388
|
-
*/
|
|
1389
|
-
"rounded-r": [{
|
|
1390
|
-
"rounded-r": [l]
|
|
1391
|
-
}],
|
|
1392
|
-
/**
|
|
1393
|
-
* Border Radius Bottom
|
|
1394
|
-
* @see https://tailwindcss.com/docs/border-radius
|
|
1395
|
-
*/
|
|
1396
|
-
"rounded-b": [{
|
|
1397
|
-
"rounded-b": [l]
|
|
1398
|
-
}],
|
|
1399
|
-
/**
|
|
1400
|
-
* Border Radius Left
|
|
1401
|
-
* @see https://tailwindcss.com/docs/border-radius
|
|
1402
|
-
*/
|
|
1403
|
-
"rounded-l": [{
|
|
1404
|
-
"rounded-l": [l]
|
|
1405
|
-
}],
|
|
1406
|
-
/**
|
|
1407
|
-
* Border Radius Start Start
|
|
1408
|
-
* @see https://tailwindcss.com/docs/border-radius
|
|
1409
|
-
*/
|
|
1410
|
-
"rounded-ss": [{
|
|
1411
|
-
"rounded-ss": [l]
|
|
1412
|
-
}],
|
|
1413
|
-
/**
|
|
1414
|
-
* Border Radius Start End
|
|
1415
|
-
* @see https://tailwindcss.com/docs/border-radius
|
|
1416
|
-
*/
|
|
1417
|
-
"rounded-se": [{
|
|
1418
|
-
"rounded-se": [l]
|
|
1419
|
-
}],
|
|
1420
|
-
/**
|
|
1421
|
-
* Border Radius End End
|
|
1422
|
-
* @see https://tailwindcss.com/docs/border-radius
|
|
1423
|
-
*/
|
|
1424
|
-
"rounded-ee": [{
|
|
1425
|
-
"rounded-ee": [l]
|
|
1426
|
-
}],
|
|
1427
|
-
/**
|
|
1428
|
-
* Border Radius End Start
|
|
1429
|
-
* @see https://tailwindcss.com/docs/border-radius
|
|
1430
|
-
*/
|
|
1431
|
-
"rounded-es": [{
|
|
1432
|
-
"rounded-es": [l]
|
|
1433
|
-
}],
|
|
1434
|
-
/**
|
|
1435
|
-
* Border Radius Top Left
|
|
1436
|
-
* @see https://tailwindcss.com/docs/border-radius
|
|
1437
|
-
*/
|
|
1438
|
-
"rounded-tl": [{
|
|
1439
|
-
"rounded-tl": [l]
|
|
1440
|
-
}],
|
|
1441
|
-
/**
|
|
1442
|
-
* Border Radius Top Right
|
|
1443
|
-
* @see https://tailwindcss.com/docs/border-radius
|
|
1444
|
-
*/
|
|
1445
|
-
"rounded-tr": [{
|
|
1446
|
-
"rounded-tr": [l]
|
|
1447
|
-
}],
|
|
1448
|
-
/**
|
|
1449
|
-
* Border Radius Bottom Right
|
|
1450
|
-
* @see https://tailwindcss.com/docs/border-radius
|
|
1451
|
-
*/
|
|
1452
|
-
"rounded-br": [{
|
|
1453
|
-
"rounded-br": [l]
|
|
1454
|
-
}],
|
|
1455
|
-
/**
|
|
1456
|
-
* Border Radius Bottom Left
|
|
1457
|
-
* @see https://tailwindcss.com/docs/border-radius
|
|
1458
|
-
*/
|
|
1459
|
-
"rounded-bl": [{
|
|
1460
|
-
"rounded-bl": [l]
|
|
1461
|
-
}],
|
|
1462
|
-
/**
|
|
1463
|
-
* Border Width
|
|
1464
|
-
* @see https://tailwindcss.com/docs/border-width
|
|
1465
|
-
*/
|
|
1466
|
-
"border-w": [{
|
|
1467
|
-
border: [s]
|
|
1468
|
-
}],
|
|
1469
|
-
/**
|
|
1470
|
-
* Border Width X
|
|
1471
|
-
* @see https://tailwindcss.com/docs/border-width
|
|
1472
|
-
*/
|
|
1473
|
-
"border-w-x": [{
|
|
1474
|
-
"border-x": [s]
|
|
1475
|
-
}],
|
|
1476
|
-
/**
|
|
1477
|
-
* Border Width Y
|
|
1478
|
-
* @see https://tailwindcss.com/docs/border-width
|
|
1479
|
-
*/
|
|
1480
|
-
"border-w-y": [{
|
|
1481
|
-
"border-y": [s]
|
|
1482
|
-
}],
|
|
1483
|
-
/**
|
|
1484
|
-
* Border Width Start
|
|
1485
|
-
* @see https://tailwindcss.com/docs/border-width
|
|
1486
|
-
*/
|
|
1487
|
-
"border-w-s": [{
|
|
1488
|
-
"border-s": [s]
|
|
1489
|
-
}],
|
|
1490
|
-
/**
|
|
1491
|
-
* Border Width End
|
|
1492
|
-
* @see https://tailwindcss.com/docs/border-width
|
|
1493
|
-
*/
|
|
1494
|
-
"border-w-e": [{
|
|
1495
|
-
"border-e": [s]
|
|
1496
|
-
}],
|
|
1497
|
-
/**
|
|
1498
|
-
* Border Width Top
|
|
1499
|
-
* @see https://tailwindcss.com/docs/border-width
|
|
1500
|
-
*/
|
|
1501
|
-
"border-w-t": [{
|
|
1502
|
-
"border-t": [s]
|
|
1503
|
-
}],
|
|
1504
|
-
/**
|
|
1505
|
-
* Border Width Right
|
|
1506
|
-
* @see https://tailwindcss.com/docs/border-width
|
|
1507
|
-
*/
|
|
1508
|
-
"border-w-r": [{
|
|
1509
|
-
"border-r": [s]
|
|
1510
|
-
}],
|
|
1511
|
-
/**
|
|
1512
|
-
* Border Width Bottom
|
|
1513
|
-
* @see https://tailwindcss.com/docs/border-width
|
|
1514
|
-
*/
|
|
1515
|
-
"border-w-b": [{
|
|
1516
|
-
"border-b": [s]
|
|
1517
|
-
}],
|
|
1518
|
-
/**
|
|
1519
|
-
* Border Width Left
|
|
1520
|
-
* @see https://tailwindcss.com/docs/border-width
|
|
1521
|
-
*/
|
|
1522
|
-
"border-w-l": [{
|
|
1523
|
-
"border-l": [s]
|
|
1524
|
-
}],
|
|
1525
|
-
/**
|
|
1526
|
-
* Border Opacity
|
|
1527
|
-
* @see https://tailwindcss.com/docs/border-opacity
|
|
1528
|
-
*/
|
|
1529
|
-
"border-opacity": [{
|
|
1530
|
-
"border-opacity": [L]
|
|
1531
|
-
}],
|
|
1532
|
-
/**
|
|
1533
|
-
* Border Style
|
|
1534
|
-
* @see https://tailwindcss.com/docs/border-style
|
|
1535
|
-
*/
|
|
1536
|
-
"border-style": [{
|
|
1537
|
-
border: [...ne(), "hidden"]
|
|
1538
|
-
}],
|
|
1539
|
-
/**
|
|
1540
|
-
* Divide Width X
|
|
1541
|
-
* @see https://tailwindcss.com/docs/divide-width
|
|
1542
|
-
*/
|
|
1543
|
-
"divide-x": [{
|
|
1544
|
-
"divide-x": [s]
|
|
1545
|
-
}],
|
|
1546
|
-
/**
|
|
1547
|
-
* Divide Width X Reverse
|
|
1548
|
-
* @see https://tailwindcss.com/docs/divide-width
|
|
1549
|
-
*/
|
|
1550
|
-
"divide-x-reverse": ["divide-x-reverse"],
|
|
1551
|
-
/**
|
|
1552
|
-
* Divide Width Y
|
|
1553
|
-
* @see https://tailwindcss.com/docs/divide-width
|
|
1554
|
-
*/
|
|
1555
|
-
"divide-y": [{
|
|
1556
|
-
"divide-y": [s]
|
|
1557
|
-
}],
|
|
1558
|
-
/**
|
|
1559
|
-
* Divide Width Y Reverse
|
|
1560
|
-
* @see https://tailwindcss.com/docs/divide-width
|
|
1561
|
-
*/
|
|
1562
|
-
"divide-y-reverse": ["divide-y-reverse"],
|
|
1563
|
-
/**
|
|
1564
|
-
* Divide Opacity
|
|
1565
|
-
* @see https://tailwindcss.com/docs/divide-opacity
|
|
1566
|
-
*/
|
|
1567
|
-
"divide-opacity": [{
|
|
1568
|
-
"divide-opacity": [L]
|
|
1569
|
-
}],
|
|
1570
|
-
/**
|
|
1571
|
-
* Divide Style
|
|
1572
|
-
* @see https://tailwindcss.com/docs/divide-style
|
|
1573
|
-
*/
|
|
1574
|
-
"divide-style": [{
|
|
1575
|
-
divide: ne()
|
|
1576
|
-
}],
|
|
1577
|
-
/**
|
|
1578
|
-
* Border Color
|
|
1579
|
-
* @see https://tailwindcss.com/docs/border-color
|
|
1580
|
-
*/
|
|
1581
|
-
"border-color": [{
|
|
1582
|
-
border: [o]
|
|
1583
|
-
}],
|
|
1584
|
-
/**
|
|
1585
|
-
* Border Color X
|
|
1586
|
-
* @see https://tailwindcss.com/docs/border-color
|
|
1587
|
-
*/
|
|
1588
|
-
"border-color-x": [{
|
|
1589
|
-
"border-x": [o]
|
|
1590
|
-
}],
|
|
1591
|
-
/**
|
|
1592
|
-
* Border Color Y
|
|
1593
|
-
* @see https://tailwindcss.com/docs/border-color
|
|
1594
|
-
*/
|
|
1595
|
-
"border-color-y": [{
|
|
1596
|
-
"border-y": [o]
|
|
1597
|
-
}],
|
|
1598
|
-
/**
|
|
1599
|
-
* Border Color Top
|
|
1600
|
-
* @see https://tailwindcss.com/docs/border-color
|
|
1601
|
-
*/
|
|
1602
|
-
"border-color-t": [{
|
|
1603
|
-
"border-t": [o]
|
|
1604
|
-
}],
|
|
1605
|
-
/**
|
|
1606
|
-
* Border Color Right
|
|
1607
|
-
* @see https://tailwindcss.com/docs/border-color
|
|
1608
|
-
*/
|
|
1609
|
-
"border-color-r": [{
|
|
1610
|
-
"border-r": [o]
|
|
1611
|
-
}],
|
|
1612
|
-
/**
|
|
1613
|
-
* Border Color Bottom
|
|
1614
|
-
* @see https://tailwindcss.com/docs/border-color
|
|
1615
|
-
*/
|
|
1616
|
-
"border-color-b": [{
|
|
1617
|
-
"border-b": [o]
|
|
1618
|
-
}],
|
|
1619
|
-
/**
|
|
1620
|
-
* Border Color Left
|
|
1621
|
-
* @see https://tailwindcss.com/docs/border-color
|
|
1622
|
-
*/
|
|
1623
|
-
"border-color-l": [{
|
|
1624
|
-
"border-l": [o]
|
|
1625
|
-
}],
|
|
1626
|
-
/**
|
|
1627
|
-
* Divide Color
|
|
1628
|
-
* @see https://tailwindcss.com/docs/divide-color
|
|
1629
|
-
*/
|
|
1630
|
-
"divide-color": [{
|
|
1631
|
-
divide: [o]
|
|
1632
|
-
}],
|
|
1633
|
-
/**
|
|
1634
|
-
* Outline Style
|
|
1635
|
-
* @see https://tailwindcss.com/docs/outline-style
|
|
1636
|
-
*/
|
|
1637
|
-
"outline-style": [{
|
|
1638
|
-
outline: ["", ...ne()]
|
|
1639
|
-
}],
|
|
1640
|
-
/**
|
|
1641
|
-
* Outline Offset
|
|
1642
|
-
* @see https://tailwindcss.com/docs/outline-offset
|
|
1643
|
-
*/
|
|
1644
|
-
"outline-offset": [{
|
|
1645
|
-
"outline-offset": [z, m]
|
|
1646
|
-
}],
|
|
1647
|
-
/**
|
|
1648
|
-
* Outline Width
|
|
1649
|
-
* @see https://tailwindcss.com/docs/outline-width
|
|
1650
|
-
*/
|
|
1651
|
-
"outline-w": [{
|
|
1652
|
-
outline: [z, W]
|
|
1653
|
-
}],
|
|
1654
|
-
/**
|
|
1655
|
-
* Outline Color
|
|
1656
|
-
* @see https://tailwindcss.com/docs/outline-color
|
|
1657
|
-
*/
|
|
1658
|
-
"outline-color": [{
|
|
1659
|
-
outline: [e]
|
|
1660
|
-
}],
|
|
1661
|
-
/**
|
|
1662
|
-
* Ring Width
|
|
1663
|
-
* @see https://tailwindcss.com/docs/ring-width
|
|
1664
|
-
*/
|
|
1665
|
-
"ring-w": [{
|
|
1666
|
-
ring: V()
|
|
1667
|
-
}],
|
|
1668
|
-
/**
|
|
1669
|
-
* Ring Width Inset
|
|
1670
|
-
* @see https://tailwindcss.com/docs/ring-width
|
|
1671
|
-
*/
|
|
1672
|
-
"ring-w-inset": ["ring-inset"],
|
|
1673
|
-
/**
|
|
1674
|
-
* Ring Color
|
|
1675
|
-
* @see https://tailwindcss.com/docs/ring-color
|
|
1676
|
-
*/
|
|
1677
|
-
"ring-color": [{
|
|
1678
|
-
ring: [e]
|
|
1679
|
-
}],
|
|
1680
|
-
/**
|
|
1681
|
-
* Ring Opacity
|
|
1682
|
-
* @see https://tailwindcss.com/docs/ring-opacity
|
|
1683
|
-
*/
|
|
1684
|
-
"ring-opacity": [{
|
|
1685
|
-
"ring-opacity": [L]
|
|
1686
|
-
}],
|
|
1687
|
-
/**
|
|
1688
|
-
* Ring Offset Width
|
|
1689
|
-
* @see https://tailwindcss.com/docs/ring-offset-width
|
|
1690
|
-
*/
|
|
1691
|
-
"ring-offset-w": [{
|
|
1692
|
-
"ring-offset": [z, W]
|
|
1693
|
-
}],
|
|
1694
|
-
/**
|
|
1695
|
-
* Ring Offset Color
|
|
1696
|
-
* @see https://tailwindcss.com/docs/ring-offset-color
|
|
1697
|
-
*/
|
|
1698
|
-
"ring-offset-color": [{
|
|
1699
|
-
"ring-offset": [e]
|
|
1700
|
-
}],
|
|
1701
|
-
// Effects
|
|
1702
|
-
/**
|
|
1703
|
-
* Box Shadow
|
|
1704
|
-
* @see https://tailwindcss.com/docs/box-shadow
|
|
1705
|
-
*/
|
|
1706
|
-
shadow: [{
|
|
1707
|
-
shadow: ["", "inner", "none", G, kr]
|
|
1708
|
-
}],
|
|
1709
|
-
/**
|
|
1710
|
-
* Box Shadow Color
|
|
1711
|
-
* @see https://tailwindcss.com/docs/box-shadow-color
|
|
1712
|
-
*/
|
|
1713
|
-
"shadow-color": [{
|
|
1714
|
-
shadow: [ve]
|
|
1715
|
-
}],
|
|
1716
|
-
/**
|
|
1717
|
-
* Opacity
|
|
1718
|
-
* @see https://tailwindcss.com/docs/opacity
|
|
1719
|
-
*/
|
|
1720
|
-
opacity: [{
|
|
1721
|
-
opacity: [L]
|
|
1722
|
-
}],
|
|
1723
|
-
/**
|
|
1724
|
-
* Mix Blend Mode
|
|
1725
|
-
* @see https://tailwindcss.com/docs/mix-blend-mode
|
|
1726
|
-
*/
|
|
1727
|
-
"mix-blend": [{
|
|
1728
|
-
"mix-blend": y()
|
|
1729
|
-
}],
|
|
1730
|
-
/**
|
|
1731
|
-
* Background Blend Mode
|
|
1732
|
-
* @see https://tailwindcss.com/docs/background-blend-mode
|
|
1733
|
-
*/
|
|
1734
|
-
"bg-blend": [{
|
|
1735
|
-
"bg-blend": y()
|
|
1736
|
-
}],
|
|
1737
|
-
// Filters
|
|
1738
|
-
/**
|
|
1739
|
-
* Filter
|
|
1740
|
-
* @deprecated since Tailwind CSS v3.0.0
|
|
1741
|
-
* @see https://tailwindcss.com/docs/filter
|
|
1742
|
-
*/
|
|
1743
|
-
filter: [{
|
|
1744
|
-
filter: ["", "none"]
|
|
1745
|
-
}],
|
|
1746
|
-
/**
|
|
1747
|
-
* Blur
|
|
1748
|
-
* @see https://tailwindcss.com/docs/blur
|
|
1749
|
-
*/
|
|
1750
|
-
blur: [{
|
|
1751
|
-
blur: [r]
|
|
1752
|
-
}],
|
|
1753
|
-
/**
|
|
1754
|
-
* Brightness
|
|
1755
|
-
* @see https://tailwindcss.com/docs/brightness
|
|
1756
|
-
*/
|
|
1757
|
-
brightness: [{
|
|
1758
|
-
brightness: [n]
|
|
1759
|
-
}],
|
|
1760
|
-
/**
|
|
1761
|
-
* Contrast
|
|
1762
|
-
* @see https://tailwindcss.com/docs/contrast
|
|
1763
|
-
*/
|
|
1764
|
-
contrast: [{
|
|
1765
|
-
contrast: [i]
|
|
1766
|
-
}],
|
|
1767
|
-
/**
|
|
1768
|
-
* Drop Shadow
|
|
1769
|
-
* @see https://tailwindcss.com/docs/drop-shadow
|
|
1770
|
-
*/
|
|
1771
|
-
"drop-shadow": [{
|
|
1772
|
-
"drop-shadow": ["", "none", G, m]
|
|
1773
|
-
}],
|
|
1774
|
-
/**
|
|
1775
|
-
* Grayscale
|
|
1776
|
-
* @see https://tailwindcss.com/docs/grayscale
|
|
1777
|
-
*/
|
|
1778
|
-
grayscale: [{
|
|
1779
|
-
grayscale: [u]
|
|
1780
|
-
}],
|
|
1781
|
-
/**
|
|
1782
|
-
* Hue Rotate
|
|
1783
|
-
* @see https://tailwindcss.com/docs/hue-rotate
|
|
1784
|
-
*/
|
|
1785
|
-
"hue-rotate": [{
|
|
1786
|
-
"hue-rotate": [d]
|
|
1787
|
-
}],
|
|
1788
|
-
/**
|
|
1789
|
-
* Invert
|
|
1790
|
-
* @see https://tailwindcss.com/docs/invert
|
|
1791
|
-
*/
|
|
1792
|
-
invert: [{
|
|
1793
|
-
invert: [f]
|
|
1794
|
-
}],
|
|
1795
|
-
/**
|
|
1796
|
-
* Saturate
|
|
1797
|
-
* @see https://tailwindcss.com/docs/saturate
|
|
1798
|
-
*/
|
|
1799
|
-
saturate: [{
|
|
1800
|
-
saturate: [B]
|
|
1801
|
-
}],
|
|
1802
|
-
/**
|
|
1803
|
-
* Sepia
|
|
1804
|
-
* @see https://tailwindcss.com/docs/sepia
|
|
1805
|
-
*/
|
|
1806
|
-
sepia: [{
|
|
1807
|
-
sepia: [ke]
|
|
1808
|
-
}],
|
|
1809
|
-
/**
|
|
1810
|
-
* Backdrop Filter
|
|
1811
|
-
* @deprecated since Tailwind CSS v3.0.0
|
|
1812
|
-
* @see https://tailwindcss.com/docs/backdrop-filter
|
|
1813
|
-
*/
|
|
1814
|
-
"backdrop-filter": [{
|
|
1815
|
-
"backdrop-filter": ["", "none"]
|
|
1816
|
-
}],
|
|
1817
|
-
/**
|
|
1818
|
-
* Backdrop Blur
|
|
1819
|
-
* @see https://tailwindcss.com/docs/backdrop-blur
|
|
1820
|
-
*/
|
|
1821
|
-
"backdrop-blur": [{
|
|
1822
|
-
"backdrop-blur": [r]
|
|
1823
|
-
}],
|
|
1824
|
-
/**
|
|
1825
|
-
* Backdrop Brightness
|
|
1826
|
-
* @see https://tailwindcss.com/docs/backdrop-brightness
|
|
1827
|
-
*/
|
|
1828
|
-
"backdrop-brightness": [{
|
|
1829
|
-
"backdrop-brightness": [n]
|
|
1830
|
-
}],
|
|
1831
|
-
/**
|
|
1832
|
-
* Backdrop Contrast
|
|
1833
|
-
* @see https://tailwindcss.com/docs/backdrop-contrast
|
|
1834
|
-
*/
|
|
1835
|
-
"backdrop-contrast": [{
|
|
1836
|
-
"backdrop-contrast": [i]
|
|
1837
|
-
}],
|
|
1838
|
-
/**
|
|
1839
|
-
* Backdrop Grayscale
|
|
1840
|
-
* @see https://tailwindcss.com/docs/backdrop-grayscale
|
|
1841
|
-
*/
|
|
1842
|
-
"backdrop-grayscale": [{
|
|
1843
|
-
"backdrop-grayscale": [u]
|
|
1844
|
-
}],
|
|
1845
|
-
/**
|
|
1846
|
-
* Backdrop Hue Rotate
|
|
1847
|
-
* @see https://tailwindcss.com/docs/backdrop-hue-rotate
|
|
1848
|
-
*/
|
|
1849
|
-
"backdrop-hue-rotate": [{
|
|
1850
|
-
"backdrop-hue-rotate": [d]
|
|
1851
|
-
}],
|
|
1852
|
-
/**
|
|
1853
|
-
* Backdrop Invert
|
|
1854
|
-
* @see https://tailwindcss.com/docs/backdrop-invert
|
|
1855
|
-
*/
|
|
1856
|
-
"backdrop-invert": [{
|
|
1857
|
-
"backdrop-invert": [f]
|
|
1858
|
-
}],
|
|
1859
|
-
/**
|
|
1860
|
-
* Backdrop Opacity
|
|
1861
|
-
* @see https://tailwindcss.com/docs/backdrop-opacity
|
|
1862
|
-
*/
|
|
1863
|
-
"backdrop-opacity": [{
|
|
1864
|
-
"backdrop-opacity": [L]
|
|
1865
|
-
}],
|
|
1866
|
-
/**
|
|
1867
|
-
* Backdrop Saturate
|
|
1868
|
-
* @see https://tailwindcss.com/docs/backdrop-saturate
|
|
1869
|
-
*/
|
|
1870
|
-
"backdrop-saturate": [{
|
|
1871
|
-
"backdrop-saturate": [B]
|
|
1872
|
-
}],
|
|
1873
|
-
/**
|
|
1874
|
-
* Backdrop Sepia
|
|
1875
|
-
* @see https://tailwindcss.com/docs/backdrop-sepia
|
|
1876
|
-
*/
|
|
1877
|
-
"backdrop-sepia": [{
|
|
1878
|
-
"backdrop-sepia": [ke]
|
|
1879
|
-
}],
|
|
1880
|
-
// Tables
|
|
1881
|
-
/**
|
|
1882
|
-
* Border Collapse
|
|
1883
|
-
* @see https://tailwindcss.com/docs/border-collapse
|
|
1884
|
-
*/
|
|
1885
|
-
"border-collapse": [{
|
|
1886
|
-
border: ["collapse", "separate"]
|
|
1887
|
-
}],
|
|
1888
|
-
/**
|
|
1889
|
-
* Border Spacing
|
|
1890
|
-
* @see https://tailwindcss.com/docs/border-spacing
|
|
1891
|
-
*/
|
|
1892
|
-
"border-spacing": [{
|
|
1893
|
-
"border-spacing": [a]
|
|
1894
|
-
}],
|
|
1895
|
-
/**
|
|
1896
|
-
* Border Spacing X
|
|
1897
|
-
* @see https://tailwindcss.com/docs/border-spacing
|
|
1898
|
-
*/
|
|
1899
|
-
"border-spacing-x": [{
|
|
1900
|
-
"border-spacing-x": [a]
|
|
1901
|
-
}],
|
|
1902
|
-
/**
|
|
1903
|
-
* Border Spacing Y
|
|
1904
|
-
* @see https://tailwindcss.com/docs/border-spacing
|
|
1905
|
-
*/
|
|
1906
|
-
"border-spacing-y": [{
|
|
1907
|
-
"border-spacing-y": [a]
|
|
1908
|
-
}],
|
|
1909
|
-
/**
|
|
1910
|
-
* Table Layout
|
|
1911
|
-
* @see https://tailwindcss.com/docs/table-layout
|
|
1912
|
-
*/
|
|
1913
|
-
"table-layout": [{
|
|
1914
|
-
table: ["auto", "fixed"]
|
|
1915
|
-
}],
|
|
1916
|
-
/**
|
|
1917
|
-
* Caption Side
|
|
1918
|
-
* @see https://tailwindcss.com/docs/caption-side
|
|
1919
|
-
*/
|
|
1920
|
-
caption: [{
|
|
1921
|
-
caption: ["top", "bottom"]
|
|
1922
|
-
}],
|
|
1923
|
-
// Transitions and Animation
|
|
1924
|
-
/**
|
|
1925
|
-
* Tranisition Property
|
|
1926
|
-
* @see https://tailwindcss.com/docs/transition-property
|
|
1927
|
-
*/
|
|
1928
|
-
transition: [{
|
|
1929
|
-
transition: ["none", "all", "", "colors", "opacity", "shadow", "transform", m]
|
|
1930
|
-
}],
|
|
1931
|
-
/**
|
|
1932
|
-
* Transition Duration
|
|
1933
|
-
* @see https://tailwindcss.com/docs/transition-duration
|
|
1934
|
-
*/
|
|
1935
|
-
duration: [{
|
|
1936
|
-
duration: F()
|
|
1937
|
-
}],
|
|
1938
|
-
/**
|
|
1939
|
-
* Transition Timing Function
|
|
1940
|
-
* @see https://tailwindcss.com/docs/transition-timing-function
|
|
1941
|
-
*/
|
|
1942
|
-
ease: [{
|
|
1943
|
-
ease: ["linear", "in", "out", "in-out", m]
|
|
1944
|
-
}],
|
|
1945
|
-
/**
|
|
1946
|
-
* Transition Delay
|
|
1947
|
-
* @see https://tailwindcss.com/docs/transition-delay
|
|
1948
|
-
*/
|
|
1949
|
-
delay: [{
|
|
1950
|
-
delay: F()
|
|
1951
|
-
}],
|
|
1952
|
-
/**
|
|
1953
|
-
* Animation
|
|
1954
|
-
* @see https://tailwindcss.com/docs/animation
|
|
1955
|
-
*/
|
|
1956
|
-
animate: [{
|
|
1957
|
-
animate: ["none", "spin", "ping", "pulse", "bounce", m]
|
|
1958
|
-
}],
|
|
1959
|
-
// Transforms
|
|
1960
|
-
/**
|
|
1961
|
-
* Transform
|
|
1962
|
-
* @see https://tailwindcss.com/docs/transform
|
|
1963
|
-
*/
|
|
1964
|
-
transform: [{
|
|
1965
|
-
transform: ["", "gpu", "none"]
|
|
1966
|
-
}],
|
|
1967
|
-
/**
|
|
1968
|
-
* Scale
|
|
1969
|
-
* @see https://tailwindcss.com/docs/scale
|
|
1970
|
-
*/
|
|
1971
|
-
scale: [{
|
|
1972
|
-
scale: [H]
|
|
1973
|
-
}],
|
|
1974
|
-
/**
|
|
1975
|
-
* Scale X
|
|
1976
|
-
* @see https://tailwindcss.com/docs/scale
|
|
1977
|
-
*/
|
|
1978
|
-
"scale-x": [{
|
|
1979
|
-
"scale-x": [H]
|
|
1980
|
-
}],
|
|
1981
|
-
/**
|
|
1982
|
-
* Scale Y
|
|
1983
|
-
* @see https://tailwindcss.com/docs/scale
|
|
1984
|
-
*/
|
|
1985
|
-
"scale-y": [{
|
|
1986
|
-
"scale-y": [H]
|
|
1987
|
-
}],
|
|
1988
|
-
/**
|
|
1989
|
-
* Rotate
|
|
1990
|
-
* @see https://tailwindcss.com/docs/rotate
|
|
1991
|
-
*/
|
|
1992
|
-
rotate: [{
|
|
1993
|
-
rotate: [fe, m]
|
|
1994
|
-
}],
|
|
1995
|
-
/**
|
|
1996
|
-
* Translate X
|
|
1997
|
-
* @see https://tailwindcss.com/docs/translate
|
|
1998
|
-
*/
|
|
1999
|
-
"translate-x": [{
|
|
2000
|
-
"translate-x": [Ce]
|
|
2001
|
-
}],
|
|
2002
|
-
/**
|
|
2003
|
-
* Translate Y
|
|
2004
|
-
* @see https://tailwindcss.com/docs/translate
|
|
2005
|
-
*/
|
|
2006
|
-
"translate-y": [{
|
|
2007
|
-
"translate-y": [Ce]
|
|
2008
|
-
}],
|
|
2009
|
-
/**
|
|
2010
|
-
* Skew X
|
|
2011
|
-
* @see https://tailwindcss.com/docs/skew
|
|
2012
|
-
*/
|
|
2013
|
-
"skew-x": [{
|
|
2014
|
-
"skew-x": [ue]
|
|
2015
|
-
}],
|
|
2016
|
-
/**
|
|
2017
|
-
* Skew Y
|
|
2018
|
-
* @see https://tailwindcss.com/docs/skew
|
|
2019
|
-
*/
|
|
2020
|
-
"skew-y": [{
|
|
2021
|
-
"skew-y": [ue]
|
|
2022
|
-
}],
|
|
2023
|
-
/**
|
|
2024
|
-
* Transform Origin
|
|
2025
|
-
* @see https://tailwindcss.com/docs/transform-origin
|
|
2026
|
-
*/
|
|
2027
|
-
"transform-origin": [{
|
|
2028
|
-
origin: ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left", m]
|
|
2029
|
-
}],
|
|
2030
|
-
// Interactivity
|
|
2031
|
-
/**
|
|
2032
|
-
* Accent Color
|
|
2033
|
-
* @see https://tailwindcss.com/docs/accent-color
|
|
2034
|
-
*/
|
|
2035
|
-
accent: [{
|
|
2036
|
-
accent: ["auto", e]
|
|
2037
|
-
}],
|
|
2038
|
-
/**
|
|
2039
|
-
* Appearance
|
|
2040
|
-
* @see https://tailwindcss.com/docs/appearance
|
|
2041
|
-
*/
|
|
2042
|
-
appearance: ["appearance-none"],
|
|
2043
|
-
/**
|
|
2044
|
-
* Cursor
|
|
2045
|
-
* @see https://tailwindcss.com/docs/cursor
|
|
2046
|
-
*/
|
|
2047
|
-
cursor: [{
|
|
2048
|
-
cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", m]
|
|
2049
|
-
}],
|
|
2050
|
-
/**
|
|
2051
|
-
* Caret Color
|
|
2052
|
-
* @see https://tailwindcss.com/docs/just-in-time-mode#caret-color-utilities
|
|
2053
|
-
*/
|
|
2054
|
-
"caret-color": [{
|
|
2055
|
-
caret: [e]
|
|
2056
|
-
}],
|
|
2057
|
-
/**
|
|
2058
|
-
* Pointer Events
|
|
2059
|
-
* @see https://tailwindcss.com/docs/pointer-events
|
|
2060
|
-
*/
|
|
2061
|
-
"pointer-events": [{
|
|
2062
|
-
"pointer-events": ["none", "auto"]
|
|
2063
|
-
}],
|
|
2064
|
-
/**
|
|
2065
|
-
* Resize
|
|
2066
|
-
* @see https://tailwindcss.com/docs/resize
|
|
2067
|
-
*/
|
|
2068
|
-
resize: [{
|
|
2069
|
-
resize: ["none", "y", "x", ""]
|
|
2070
|
-
}],
|
|
2071
|
-
/**
|
|
2072
|
-
* Scroll Behavior
|
|
2073
|
-
* @see https://tailwindcss.com/docs/scroll-behavior
|
|
2074
|
-
*/
|
|
2075
|
-
"scroll-behavior": [{
|
|
2076
|
-
scroll: ["auto", "smooth"]
|
|
2077
|
-
}],
|
|
2078
|
-
/**
|
|
2079
|
-
* Scroll Margin
|
|
2080
|
-
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2081
|
-
*/
|
|
2082
|
-
"scroll-m": [{
|
|
2083
|
-
"scroll-m": b()
|
|
2084
|
-
}],
|
|
2085
|
-
/**
|
|
2086
|
-
* Scroll Margin X
|
|
2087
|
-
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2088
|
-
*/
|
|
2089
|
-
"scroll-mx": [{
|
|
2090
|
-
"scroll-mx": b()
|
|
2091
|
-
}],
|
|
2092
|
-
/**
|
|
2093
|
-
* Scroll Margin Y
|
|
2094
|
-
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2095
|
-
*/
|
|
2096
|
-
"scroll-my": [{
|
|
2097
|
-
"scroll-my": b()
|
|
2098
|
-
}],
|
|
2099
|
-
/**
|
|
2100
|
-
* Scroll Margin Start
|
|
2101
|
-
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2102
|
-
*/
|
|
2103
|
-
"scroll-ms": [{
|
|
2104
|
-
"scroll-ms": b()
|
|
2105
|
-
}],
|
|
2106
|
-
/**
|
|
2107
|
-
* Scroll Margin End
|
|
2108
|
-
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2109
|
-
*/
|
|
2110
|
-
"scroll-me": [{
|
|
2111
|
-
"scroll-me": b()
|
|
2112
|
-
}],
|
|
2113
|
-
/**
|
|
2114
|
-
* Scroll Margin Top
|
|
2115
|
-
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2116
|
-
*/
|
|
2117
|
-
"scroll-mt": [{
|
|
2118
|
-
"scroll-mt": b()
|
|
2119
|
-
}],
|
|
2120
|
-
/**
|
|
2121
|
-
* Scroll Margin Right
|
|
2122
|
-
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2123
|
-
*/
|
|
2124
|
-
"scroll-mr": [{
|
|
2125
|
-
"scroll-mr": b()
|
|
2126
|
-
}],
|
|
2127
|
-
/**
|
|
2128
|
-
* Scroll Margin Bottom
|
|
2129
|
-
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2130
|
-
*/
|
|
2131
|
-
"scroll-mb": [{
|
|
2132
|
-
"scroll-mb": b()
|
|
2133
|
-
}],
|
|
2134
|
-
/**
|
|
2135
|
-
* Scroll Margin Left
|
|
2136
|
-
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2137
|
-
*/
|
|
2138
|
-
"scroll-ml": [{
|
|
2139
|
-
"scroll-ml": b()
|
|
2140
|
-
}],
|
|
2141
|
-
/**
|
|
2142
|
-
* Scroll Padding
|
|
2143
|
-
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2144
|
-
*/
|
|
2145
|
-
"scroll-p": [{
|
|
2146
|
-
"scroll-p": b()
|
|
2147
|
-
}],
|
|
2148
|
-
/**
|
|
2149
|
-
* Scroll Padding X
|
|
2150
|
-
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2151
|
-
*/
|
|
2152
|
-
"scroll-px": [{
|
|
2153
|
-
"scroll-px": b()
|
|
2154
|
-
}],
|
|
2155
|
-
/**
|
|
2156
|
-
* Scroll Padding Y
|
|
2157
|
-
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2158
|
-
*/
|
|
2159
|
-
"scroll-py": [{
|
|
2160
|
-
"scroll-py": b()
|
|
2161
|
-
}],
|
|
2162
|
-
/**
|
|
2163
|
-
* Scroll Padding Start
|
|
2164
|
-
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2165
|
-
*/
|
|
2166
|
-
"scroll-ps": [{
|
|
2167
|
-
"scroll-ps": b()
|
|
2168
|
-
}],
|
|
2169
|
-
/**
|
|
2170
|
-
* Scroll Padding End
|
|
2171
|
-
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2172
|
-
*/
|
|
2173
|
-
"scroll-pe": [{
|
|
2174
|
-
"scroll-pe": b()
|
|
2175
|
-
}],
|
|
2176
|
-
/**
|
|
2177
|
-
* Scroll Padding Top
|
|
2178
|
-
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2179
|
-
*/
|
|
2180
|
-
"scroll-pt": [{
|
|
2181
|
-
"scroll-pt": b()
|
|
2182
|
-
}],
|
|
2183
|
-
/**
|
|
2184
|
-
* Scroll Padding Right
|
|
2185
|
-
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2186
|
-
*/
|
|
2187
|
-
"scroll-pr": [{
|
|
2188
|
-
"scroll-pr": b()
|
|
2189
|
-
}],
|
|
2190
|
-
/**
|
|
2191
|
-
* Scroll Padding Bottom
|
|
2192
|
-
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2193
|
-
*/
|
|
2194
|
-
"scroll-pb": [{
|
|
2195
|
-
"scroll-pb": b()
|
|
2196
|
-
}],
|
|
2197
|
-
/**
|
|
2198
|
-
* Scroll Padding Left
|
|
2199
|
-
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2200
|
-
*/
|
|
2201
|
-
"scroll-pl": [{
|
|
2202
|
-
"scroll-pl": b()
|
|
2203
|
-
}],
|
|
2204
|
-
/**
|
|
2205
|
-
* Scroll Snap Align
|
|
2206
|
-
* @see https://tailwindcss.com/docs/scroll-snap-align
|
|
2207
|
-
*/
|
|
2208
|
-
"snap-align": [{
|
|
2209
|
-
snap: ["start", "end", "center", "align-none"]
|
|
2210
|
-
}],
|
|
2211
|
-
/**
|
|
2212
|
-
* Scroll Snap Stop
|
|
2213
|
-
* @see https://tailwindcss.com/docs/scroll-snap-stop
|
|
2214
|
-
*/
|
|
2215
|
-
"snap-stop": [{
|
|
2216
|
-
snap: ["normal", "always"]
|
|
2217
|
-
}],
|
|
2218
|
-
/**
|
|
2219
|
-
* Scroll Snap Type
|
|
2220
|
-
* @see https://tailwindcss.com/docs/scroll-snap-type
|
|
2221
|
-
*/
|
|
2222
|
-
"snap-type": [{
|
|
2223
|
-
snap: ["none", "x", "y", "both"]
|
|
2224
|
-
}],
|
|
2225
|
-
/**
|
|
2226
|
-
* Scroll Snap Type Strictness
|
|
2227
|
-
* @see https://tailwindcss.com/docs/scroll-snap-type
|
|
2228
|
-
*/
|
|
2229
|
-
"snap-strictness": [{
|
|
2230
|
-
snap: ["mandatory", "proximity"]
|
|
2231
|
-
}],
|
|
2232
|
-
/**
|
|
2233
|
-
* Touch Action
|
|
2234
|
-
* @see https://tailwindcss.com/docs/touch-action
|
|
2235
|
-
*/
|
|
2236
|
-
touch: [{
|
|
2237
|
-
touch: ["auto", "none", "manipulation"]
|
|
2238
|
-
}],
|
|
2239
|
-
/**
|
|
2240
|
-
* Touch Action X
|
|
2241
|
-
* @see https://tailwindcss.com/docs/touch-action
|
|
2242
|
-
*/
|
|
2243
|
-
"touch-x": [{
|
|
2244
|
-
"touch-pan": ["x", "left", "right"]
|
|
2245
|
-
}],
|
|
2246
|
-
/**
|
|
2247
|
-
* Touch Action Y
|
|
2248
|
-
* @see https://tailwindcss.com/docs/touch-action
|
|
2249
|
-
*/
|
|
2250
|
-
"touch-y": [{
|
|
2251
|
-
"touch-pan": ["y", "up", "down"]
|
|
2252
|
-
}],
|
|
2253
|
-
/**
|
|
2254
|
-
* Touch Action Pinch Zoom
|
|
2255
|
-
* @see https://tailwindcss.com/docs/touch-action
|
|
2256
|
-
*/
|
|
2257
|
-
"touch-pz": ["touch-pinch-zoom"],
|
|
2258
|
-
/**
|
|
2259
|
-
* User Select
|
|
2260
|
-
* @see https://tailwindcss.com/docs/user-select
|
|
2261
|
-
*/
|
|
2262
|
-
select: [{
|
|
2263
|
-
select: ["none", "text", "all", "auto"]
|
|
2264
|
-
}],
|
|
2265
|
-
/**
|
|
2266
|
-
* Will Change
|
|
2267
|
-
* @see https://tailwindcss.com/docs/will-change
|
|
2268
|
-
*/
|
|
2269
|
-
"will-change": [{
|
|
2270
|
-
"will-change": ["auto", "scroll", "contents", "transform", m]
|
|
2271
|
-
}],
|
|
2272
|
-
// SVG
|
|
2273
|
-
/**
|
|
2274
|
-
* Fill
|
|
2275
|
-
* @see https://tailwindcss.com/docs/fill
|
|
2276
|
-
*/
|
|
2277
|
-
fill: [{
|
|
2278
|
-
fill: [e, "none"]
|
|
2279
|
-
}],
|
|
2280
|
-
/**
|
|
2281
|
-
* Stroke Width
|
|
2282
|
-
* @see https://tailwindcss.com/docs/stroke-width
|
|
2283
|
-
*/
|
|
2284
|
-
"stroke-w": [{
|
|
2285
|
-
stroke: [z, W, Me]
|
|
2286
|
-
}],
|
|
2287
|
-
/**
|
|
2288
|
-
* Stroke
|
|
2289
|
-
* @see https://tailwindcss.com/docs/stroke
|
|
2290
|
-
*/
|
|
2291
|
-
stroke: [{
|
|
2292
|
-
stroke: [e, "none"]
|
|
2293
|
-
}],
|
|
2294
|
-
// Accessibility
|
|
2295
|
-
/**
|
|
2296
|
-
* Screen Readers
|
|
2297
|
-
* @see https://tailwindcss.com/docs/screen-readers
|
|
2298
|
-
*/
|
|
2299
|
-
sr: ["sr-only", "not-sr-only"]
|
|
2300
|
-
},
|
|
2301
|
-
conflictingClassGroups: {
|
|
2302
|
-
overflow: ["overflow-x", "overflow-y"],
|
|
2303
|
-
overscroll: ["overscroll-x", "overscroll-y"],
|
|
2304
|
-
inset: ["inset-x", "inset-y", "start", "end", "top", "right", "bottom", "left"],
|
|
2305
|
-
"inset-x": ["right", "left"],
|
|
2306
|
-
"inset-y": ["top", "bottom"],
|
|
2307
|
-
flex: ["basis", "grow", "shrink"],
|
|
2308
|
-
gap: ["gap-x", "gap-y"],
|
|
2309
|
-
p: ["px", "py", "ps", "pe", "pt", "pr", "pb", "pl"],
|
|
2310
|
-
px: ["pr", "pl"],
|
|
2311
|
-
py: ["pt", "pb"],
|
|
2312
|
-
m: ["mx", "my", "ms", "me", "mt", "mr", "mb", "ml"],
|
|
2313
|
-
mx: ["mr", "ml"],
|
|
2314
|
-
my: ["mt", "mb"],
|
|
2315
|
-
"font-size": ["leading"],
|
|
2316
|
-
"fvn-normal": ["fvn-ordinal", "fvn-slashed-zero", "fvn-figure", "fvn-spacing", "fvn-fraction"],
|
|
2317
|
-
"fvn-ordinal": ["fvn-normal"],
|
|
2318
|
-
"fvn-slashed-zero": ["fvn-normal"],
|
|
2319
|
-
"fvn-figure": ["fvn-normal"],
|
|
2320
|
-
"fvn-spacing": ["fvn-normal"],
|
|
2321
|
-
"fvn-fraction": ["fvn-normal"],
|
|
2322
|
-
rounded: ["rounded-s", "rounded-e", "rounded-t", "rounded-r", "rounded-b", "rounded-l", "rounded-ss", "rounded-se", "rounded-ee", "rounded-es", "rounded-tl", "rounded-tr", "rounded-br", "rounded-bl"],
|
|
2323
|
-
"rounded-s": ["rounded-ss", "rounded-es"],
|
|
2324
|
-
"rounded-e": ["rounded-se", "rounded-ee"],
|
|
2325
|
-
"rounded-t": ["rounded-tl", "rounded-tr"],
|
|
2326
|
-
"rounded-r": ["rounded-tr", "rounded-br"],
|
|
2327
|
-
"rounded-b": ["rounded-br", "rounded-bl"],
|
|
2328
|
-
"rounded-l": ["rounded-tl", "rounded-bl"],
|
|
2329
|
-
"border-spacing": ["border-spacing-x", "border-spacing-y"],
|
|
2330
|
-
"border-w": ["border-w-s", "border-w-e", "border-w-t", "border-w-r", "border-w-b", "border-w-l"],
|
|
2331
|
-
"border-w-x": ["border-w-r", "border-w-l"],
|
|
2332
|
-
"border-w-y": ["border-w-t", "border-w-b"],
|
|
2333
|
-
"border-color": ["border-color-t", "border-color-r", "border-color-b", "border-color-l"],
|
|
2334
|
-
"border-color-x": ["border-color-r", "border-color-l"],
|
|
2335
|
-
"border-color-y": ["border-color-t", "border-color-b"],
|
|
2336
|
-
"scroll-m": ["scroll-mx", "scroll-my", "scroll-ms", "scroll-me", "scroll-mt", "scroll-mr", "scroll-mb", "scroll-ml"],
|
|
2337
|
-
"scroll-mx": ["scroll-mr", "scroll-ml"],
|
|
2338
|
-
"scroll-my": ["scroll-mt", "scroll-mb"],
|
|
2339
|
-
"scroll-p": ["scroll-px", "scroll-py", "scroll-ps", "scroll-pe", "scroll-pt", "scroll-pr", "scroll-pb", "scroll-pl"],
|
|
2340
|
-
"scroll-px": ["scroll-pr", "scroll-pl"],
|
|
2341
|
-
"scroll-py": ["scroll-pt", "scroll-pb"],
|
|
2342
|
-
touch: ["touch-x", "touch-y", "touch-pz"],
|
|
2343
|
-
"touch-x": ["touch"],
|
|
2344
|
-
"touch-y": ["touch"],
|
|
2345
|
-
"touch-pz": ["touch"]
|
|
2346
|
-
},
|
|
2347
|
-
conflictingClassGroupModifiers: {
|
|
2348
|
-
"font-size": ["leading"]
|
|
2349
|
-
}
|
|
2350
|
-
};
|
|
2351
|
-
}
|
|
2352
|
-
function Mr(e, {
|
|
2353
|
-
cacheSize: t,
|
|
2354
|
-
prefix: r,
|
|
2355
|
-
separator: n,
|
|
2356
|
-
extend: o = {},
|
|
2357
|
-
override: l = {}
|
|
2358
|
-
}) {
|
|
2359
|
-
Le(e, "cacheSize", t), Le(e, "prefix", r), Le(e, "separator", n);
|
|
2360
|
-
for (const a in l)
|
|
2361
|
-
Tr(e[a], l[a]);
|
|
2362
|
-
for (const a in o)
|
|
2363
|
-
Pr(e[a], o[a]);
|
|
2364
|
-
return e;
|
|
2365
|
-
}
|
|
2366
|
-
function Le(e, t, r) {
|
|
2367
|
-
r !== void 0 && (e[t] = r);
|
|
2368
|
-
}
|
|
2369
|
-
function Tr(e, t) {
|
|
2370
|
-
if (t)
|
|
2371
|
-
for (const r in t)
|
|
2372
|
-
Le(e, r, t[r]);
|
|
2373
|
-
}
|
|
2374
|
-
function Pr(e, t) {
|
|
2375
|
-
if (t)
|
|
2376
|
-
for (const r in t) {
|
|
2377
|
-
const n = t[r];
|
|
2378
|
-
n !== void 0 && (e[r] = (e[r] || []).concat(n));
|
|
2379
|
-
}
|
|
2380
|
-
}
|
|
2381
|
-
function Lr(e, ...t) {
|
|
2382
|
-
return typeof e == "function" ? nt(ot, e, ...t) : nt(() => Mr(ot(), e), ...t);
|
|
2383
|
-
}
|
|
2384
|
-
const Ar = Lr({}), { cva: Xe, cx: oe, compose: wo } = Jt({
|
|
1
|
+
import { defineComponent as p, useCssVars as j, openBlock as s, createElementBlock as u, normalizeClass as i, createElementVNode as b, createCommentVNode as m, createStaticVNode as H, reactive as T, useSlots as P, computed as S, unref as l, renderSlot as x, createVNode as y, defineAsyncComponent as Z, h as W, createBlock as w, withCtx as f, normalizeStyle as V, createTextVNode as E, toDisplayString as C, useAttrs as R, ref as L, onMounted as N, resolveDynamicComponent as K, mergeProps as U, withKeys as q } from "vue";
|
|
2
|
+
import { defineConfig as G } from "cva";
|
|
3
|
+
import { extendTailwindMerge as J } from "tailwind-merge";
|
|
4
|
+
import { Dialog as Q, DialogPanel as X, DialogTitle as Y, DialogDescription as ee } from "@headlessui/vue";
|
|
5
|
+
import { useTextareaAutosize as te } from "@vueuse/core";
|
|
6
|
+
import { nanoid as ae } from "nanoid";
|
|
7
|
+
const oe = J({}), { cva: B, cx: g, compose: Ue } = G({
|
|
2385
8
|
hooks: {
|
|
2386
|
-
onComplete: (
|
|
9
|
+
onComplete: (a) => oe(a)
|
|
2387
10
|
}
|
|
2388
|
-
}),
|
|
11
|
+
}), re = {
|
|
2389
12
|
key: 0,
|
|
2390
13
|
class: "loader-wrapper"
|
|
2391
|
-
},
|
|
14
|
+
}, le = /* @__PURE__ */ H('<path class="svg-path svg-check-mark" d="m 0 60 l 30 30 l 70 -80" data-v-9483a281></path><path class="svg-path svg-x-mark" d="m 50 50 l 40 -40" data-v-9483a281></path><path class="svg-path svg-x-mark" d="m 50 50 l 40 40" data-v-9483a281></path><path class="svg-path svg-x-mark" d="m 50 50 l -40 -40" data-v-9483a281></path><path class="svg-path svg-x-mark" d="m 50 50 l -40 40" data-v-9483a281></path>', 5), ne = {
|
|
2392
15
|
key: 0,
|
|
2393
16
|
class: "circular-loader"
|
|
2394
17
|
};
|
|
2395
|
-
function
|
|
2396
|
-
return
|
|
2397
|
-
|
|
2398
|
-
|
|
18
|
+
function qe() {
|
|
19
|
+
return T({
|
|
20
|
+
isValid: !1,
|
|
21
|
+
isInvalid: !1,
|
|
2399
22
|
isLoading: !1,
|
|
2400
23
|
startLoading() {
|
|
2401
24
|
this.isLoading = !0;
|
|
@@ -2403,53 +26,53 @@ function yo() {
|
|
|
2403
26
|
stopLoading() {
|
|
2404
27
|
this.isLoading = !1;
|
|
2405
28
|
},
|
|
2406
|
-
|
|
2407
|
-
this.
|
|
2408
|
-
const
|
|
29
|
+
validate(a = 800) {
|
|
30
|
+
this.isValid = !0;
|
|
31
|
+
const e = a - 300;
|
|
2409
32
|
return new Promise(
|
|
2410
|
-
(
|
|
33
|
+
(t) => setTimeout(() => this.clear().then(() => t(!0)), e)
|
|
2411
34
|
);
|
|
2412
35
|
},
|
|
2413
|
-
|
|
2414
|
-
this.
|
|
2415
|
-
const
|
|
36
|
+
invalidate(a = 1100) {
|
|
37
|
+
this.isInvalid = !0;
|
|
38
|
+
const e = a - 300;
|
|
2416
39
|
return new Promise(
|
|
2417
|
-
(
|
|
40
|
+
(t) => setTimeout(() => this.clear().then(() => t(!0)), e)
|
|
2418
41
|
);
|
|
2419
42
|
},
|
|
2420
|
-
clear(
|
|
2421
|
-
return this.
|
|
43
|
+
clear(a = 300) {
|
|
44
|
+
return this.isValid = !1, this.isInvalid = !1, this.isLoading = !1, new Promise((e) => {
|
|
2422
45
|
setTimeout(() => {
|
|
2423
|
-
|
|
2424
|
-
},
|
|
46
|
+
e(!0);
|
|
47
|
+
}, a);
|
|
2425
48
|
});
|
|
2426
49
|
}
|
|
2427
50
|
});
|
|
2428
51
|
}
|
|
2429
|
-
const
|
|
52
|
+
const se = /* @__PURE__ */ p({
|
|
2430
53
|
__name: "ScalarLoading",
|
|
2431
54
|
props: {
|
|
2432
55
|
loadingState: {},
|
|
2433
56
|
size: { default: "24px" }
|
|
2434
57
|
},
|
|
2435
|
-
setup(
|
|
2436
|
-
return
|
|
2437
|
-
|
|
2438
|
-
})), (
|
|
2439
|
-
(
|
|
2440
|
-
class:
|
|
2441
|
-
"icon-is-valid":
|
|
2442
|
-
"icon-is-invalid":
|
|
58
|
+
setup(a) {
|
|
59
|
+
return j((e) => ({
|
|
60
|
+
"68e6c412": e.size
|
|
61
|
+
})), (e, t) => e.loadingState ? (s(), u("div", re, [
|
|
62
|
+
(s(), u("svg", {
|
|
63
|
+
class: i(["svg-loader", {
|
|
64
|
+
"icon-is-valid": e.loadingState.isValid,
|
|
65
|
+
"icon-is-invalid": e.loadingState.isInvalid
|
|
2443
66
|
}]),
|
|
2444
67
|
viewBox: "0 0 100 100",
|
|
2445
68
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2446
69
|
"xmlns:xlink": "http://www.w3.org/1999/xlink"
|
|
2447
70
|
}, [
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
class:
|
|
2452
|
-
"loader-path-off":
|
|
71
|
+
le,
|
|
72
|
+
e.loadingState.isLoading ? (s(), u("g", ne, [
|
|
73
|
+
b("circle", {
|
|
74
|
+
class: i(["loader-path", {
|
|
75
|
+
"loader-path-off": e.loadingState.isValid || e.loadingState.isInvalid
|
|
2453
76
|
}]),
|
|
2454
77
|
cx: "50",
|
|
2455
78
|
cy: "50",
|
|
@@ -2457,20 +80,20 @@ const zr = /* @__PURE__ */ C({
|
|
|
2457
80
|
r: "20",
|
|
2458
81
|
"stroke-width": "2"
|
|
2459
82
|
}, null, 2)
|
|
2460
|
-
])) :
|
|
83
|
+
])) : m("", !0)
|
|
2461
84
|
], 2))
|
|
2462
|
-
])) :
|
|
85
|
+
])) : m("", !0);
|
|
2463
86
|
}
|
|
2464
87
|
});
|
|
2465
|
-
const
|
|
2466
|
-
const
|
|
2467
|
-
for (const [n, o] of
|
|
2468
|
-
|
|
2469
|
-
return
|
|
2470
|
-
},
|
|
88
|
+
const z = (a, e) => {
|
|
89
|
+
const t = a.__vccOpts || a;
|
|
90
|
+
for (const [n, o] of e)
|
|
91
|
+
t[n] = o;
|
|
92
|
+
return t;
|
|
93
|
+
}, $ = /* @__PURE__ */ z(se, [["__scopeId", "data-v-9483a281"]]), ie = ["aria-disabled", "aria-label", "title"], de = {
|
|
2471
94
|
key: 1,
|
|
2472
95
|
class: "ml-2"
|
|
2473
|
-
},
|
|
96
|
+
}, ce = B({
|
|
2474
97
|
base: "scalar-button row items-center justify-center rounded font-medium",
|
|
2475
98
|
variants: {
|
|
2476
99
|
isDisabled: { true: "bg-background-2 text-color-3 shadow-none" },
|
|
@@ -2480,19 +103,19 @@ const Ye = (e, t) => {
|
|
|
2480
103
|
variant: {
|
|
2481
104
|
solid: [
|
|
2482
105
|
"scalar-button-solid",
|
|
2483
|
-
"
|
|
106
|
+
"bg-back-btn-1 text-fore-btn-1 shadow-sm active:bg-back-btn-1 active:shadow-none hocus:bg-hover-btn-1"
|
|
2484
107
|
].join(" "),
|
|
2485
108
|
outlined: [
|
|
2486
109
|
"scalar-button-outlined",
|
|
2487
|
-
"active:bg-btn-1
|
|
110
|
+
"active:bg-btn-1 border border-border bg-transparent text-fore-1 hocus:bg-back-2"
|
|
2488
111
|
].join(" "),
|
|
2489
112
|
ghost: [
|
|
2490
113
|
"scalar-button-ghost",
|
|
2491
|
-
"
|
|
114
|
+
"bg-transparent text-fore-3 active:text-fore-2 hocus:text-fore-2"
|
|
2492
115
|
].join(" "),
|
|
2493
116
|
danger: [
|
|
2494
117
|
"scalar-button-danger",
|
|
2495
|
-
"
|
|
118
|
+
"bg-error text-white active:brightness-90 hocus:brightness-90"
|
|
2496
119
|
].join(" ")
|
|
2497
120
|
}
|
|
2498
121
|
},
|
|
@@ -2508,7 +131,7 @@ const Ye = (e, t) => {
|
|
|
2508
131
|
class: "h-10 w-10 p-2"
|
|
2509
132
|
}
|
|
2510
133
|
]
|
|
2511
|
-
}),
|
|
134
|
+
}), I = /* @__PURE__ */ p({
|
|
2512
135
|
__name: "ScalarButton",
|
|
2513
136
|
props: {
|
|
2514
137
|
isDisabled: { type: Boolean, default: !1 },
|
|
@@ -2518,19 +141,19 @@ const Ye = (e, t) => {
|
|
|
2518
141
|
variant: { default: "solid" },
|
|
2519
142
|
title: {}
|
|
2520
143
|
},
|
|
2521
|
-
setup(
|
|
2522
|
-
const
|
|
144
|
+
setup(a) {
|
|
145
|
+
const e = P(), t = S(
|
|
2523
146
|
() => {
|
|
2524
|
-
var o,
|
|
2525
|
-
return (
|
|
147
|
+
var o, d, v, h;
|
|
148
|
+
return (h = (v = (d = (o = e.default) == null ? void 0 : o.call(e)) == null ? void 0 : d[0]) == null ? void 0 : v.children) == null ? void 0 : h.trim();
|
|
2526
149
|
}
|
|
2527
|
-
), n =
|
|
2528
|
-
return (o,
|
|
150
|
+
), n = S(() => !!(e.icon && !e.default));
|
|
151
|
+
return (o, d) => (s(), u("button", {
|
|
2529
152
|
"aria-disabled": o.isDisabled,
|
|
2530
|
-
"aria-label":
|
|
2531
|
-
class:
|
|
2532
|
-
|
|
2533
|
-
|
|
153
|
+
"aria-label": t.value || o.title,
|
|
154
|
+
class: i(
|
|
155
|
+
l(g)(
|
|
156
|
+
l(ce)({
|
|
2534
157
|
isFullWidth: o.isFullWidth,
|
|
2535
158
|
isIconOnly: n.value,
|
|
2536
159
|
isDisabled: o.isDisabled,
|
|
@@ -2540,60 +163,60 @@ const Ye = (e, t) => {
|
|
|
2540
163
|
{ "pl-9 pr-3": o.loadingState }
|
|
2541
164
|
)
|
|
2542
165
|
),
|
|
2543
|
-
title: o.title ||
|
|
166
|
+
title: o.title || t.value,
|
|
2544
167
|
type: "button"
|
|
2545
168
|
}, [
|
|
2546
|
-
o.$slots.icon ? (
|
|
169
|
+
o.$slots.icon ? (s(), u("div", {
|
|
2547
170
|
key: 0,
|
|
2548
|
-
class:
|
|
171
|
+
class: i(l(g)({ "mr-2": !n.value }, "h-4 w-4"))
|
|
2549
172
|
}, [
|
|
2550
|
-
|
|
2551
|
-
], 2)) :
|
|
2552
|
-
|
|
2553
|
-
o.loadingState ? (
|
|
2554
|
-
|
|
173
|
+
x(o.$slots, "icon")
|
|
174
|
+
], 2)) : m("", !0),
|
|
175
|
+
x(o.$slots, "default"),
|
|
176
|
+
o.loadingState ? (s(), u("div", de, [
|
|
177
|
+
y(l($), {
|
|
2555
178
|
loadingState: o.loadingState,
|
|
2556
179
|
size: "20px"
|
|
2557
180
|
}, null, 8, ["loadingState"])
|
|
2558
|
-
])) :
|
|
2559
|
-
], 10,
|
|
181
|
+
])) : m("", !0)
|
|
182
|
+
], 10, ie));
|
|
2560
183
|
}
|
|
2561
|
-
}),
|
|
2562
|
-
const n = new
|
|
184
|
+
}), ue = (a) => Object.fromEntries(Array.from(a).map((e) => [e.name, e.value])), ve = (a) => ({ raw: e }) => {
|
|
185
|
+
const n = new a().parseFromString(e, "image/svg+xml");
|
|
2563
186
|
if (n.getElementsByTagName("parsererror").length)
|
|
2564
187
|
return;
|
|
2565
|
-
const o = n.documentElement,
|
|
2566
|
-
return
|
|
2567
|
-
},
|
|
2568
|
-
const
|
|
2569
|
-
return
|
|
188
|
+
const o = n.documentElement, d = ue(o.attributes), { width: v, height: h, ..._ } = d;
|
|
189
|
+
return W("svg", { ..._, innerHTML: o.innerHTML });
|
|
190
|
+
}, he = Z(async () => {
|
|
191
|
+
const a = typeof DOMParser > "u" ? (await import("@xmldom/xmldom")).DOMParser : DOMParser, e = ve(a);
|
|
192
|
+
return e.props = {
|
|
2570
193
|
raw: {
|
|
2571
194
|
type: String,
|
|
2572
195
|
required: !0
|
|
2573
196
|
}
|
|
2574
|
-
},
|
|
2575
|
-
}),
|
|
197
|
+
}, e;
|
|
198
|
+
}), me = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48">
|
|
2576
199
|
<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="3.429"
|
|
2577
200
|
d="M24 1.714v44.572M1.714 24h44.572" />
|
|
2578
|
-
</svg>`,
|
|
201
|
+
</svg>`, ge = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32.5 23.5" fill="currentColor">
|
|
2579
202
|
<path d="M11.2 23.5 0 12.3l2.15-2.15 9.05 9.05L30.4 0l2.15 2.15z" />
|
|
2580
|
-
</svg>`,
|
|
203
|
+
</svg>`, pe = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
|
2581
204
|
<path d="m19.5 8.25-7.5 7.5-7.5-7.5" />
|
|
2582
|
-
</svg>`,
|
|
205
|
+
</svg>`, fe = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
|
2583
206
|
<path d="M15.75 19.5 8.25 12l7.5-7.5" />
|
|
2584
|
-
</svg>`,
|
|
207
|
+
</svg>`, be = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
|
2585
208
|
<path d="m8.25 4.5 7.5 7.5-7.5 7.5" />
|
|
2586
|
-
</svg>`,
|
|
209
|
+
</svg>`, we = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
|
2587
210
|
<path d="m4.5 15.75 7.5-7.5 7.5 7.5" />
|
|
2588
|
-
</svg>`,
|
|
211
|
+
</svg>`, _e = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 14 14">
|
|
2589
212
|
<path stroke="currentColor" d="m12.5 1.5-11 11m0-11 11 11" />
|
|
2590
|
-
</svg>`,
|
|
213
|
+
</svg>`, xe = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor">
|
|
2591
214
|
<path
|
|
2592
215
|
d="M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z" />
|
|
2593
|
-
</svg>`,
|
|
216
|
+
</svg>`, ye = `<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 1024 1024">
|
|
2594
217
|
<path
|
|
2595
218
|
d="M512 0a512 512 0 0 0-162 998c26 4 35-11 35-25l-1-95c-128 23-161-32-172-60-6-15-31-61-52-73-18-10-44-33-1-33 40-1 69 37 78 52 46 78 120 56 149 43 5-33 18-56 33-69-114-13-234-56-234-253 0-56 20-101 53-137-5-13-23-65 5-136 0 0 43-13 141 53a487 487 0 0 1 256 0c98-66 141-53 141-53 28 71 10 123 5 136 33 36 53 81 53 137 0 197-120 240-234 253 18 16 35 47 35 95l-1 140c0 14 9 30 35 25A512 512 0 0 0 512 0z" />
|
|
2596
|
-
</svg>`,
|
|
219
|
+
</svg>`, ke = `<svg
|
|
2597
220
|
height="24"
|
|
2598
221
|
viewBox="0 0 24 24"
|
|
2599
222
|
width="24"
|
|
@@ -2602,897 +225,63 @@ const Ye = (e, t) => {
|
|
|
2602
225
|
d="M24 12a1 1 0 0 0 -1 -1h-3.91a0.51 0.51 0 0 1 -0.49 -0.4 6.83 6.83 0 0 0 -0.94 -2.28 0.5 0.5 0 0 1 0.06 -0.63l2.77 -2.76a1 1 0 1 0 -1.42 -1.42l-2.76 2.77a0.5 0.5 0 0 1 -0.63 0.06 6.83 6.83 0 0 0 -2.28 -0.94 0.5 0.5 0 0 1 -0.4 -0.49V1a1 1 0 0 0 -2 0v3.91a0.51 0.51 0 0 1 -0.4 0.49 6.83 6.83 0 0 0 -2.28 0.94 0.5 0.5 0 0 1 -0.63 -0.06L4.93 3.51a1 1 0 0 0 -1.42 1.42l2.77 2.76a0.5 0.5 0 0 1 0.06 0.63 6.83 6.83 0 0 0 -0.94 2.28 0.5 0.5 0 0 1 -0.49 0.4H1a1 1 0 0 0 0 2h3.91a0.51 0.51 0 0 1 0.49 0.4 6.83 6.83 0 0 0 0.94 2.28 0.5 0.5 0 0 1 -0.06 0.63l-2.77 2.76a1 1 0 1 0 1.42 1.42l2.76 -2.77a0.5 0.5 0 0 1 0.63 -0.06 6.83 6.83 0 0 0 2.28 0.94 0.5 0.5 0 0 1 0.4 0.49V23a1 1 0 0 0 2 0v-3.91a0.51 0.51 0 0 1 0.4 -0.49 6.83 6.83 0 0 0 2.28 -0.94 0.5 0.5 0 0 1 0.63 0.06l2.76 2.77a1 1 0 1 0 1.42 -1.42l-2.77 -2.76a0.5 0.5 0 0 1 -0.06 -0.63 6.83 6.83 0 0 0 0.94 -2.28 0.5 0.5 0 0 1 0.49 -0.4H23a1 1 0 0 0 1 -1Zm-8.74 2.5A5.76 5.76 0 0 1 9.5 8.74a5.66 5.66 0 0 1 0.16 -1.31 0.49 0.49 0 0 1 0.34 -0.36 5.36 5.36 0 0 1 1.8 -0.31 5.47 5.47 0 0 1 5.46 5.46 5.36 5.36 0 0 1 -0.31 1.8 0.49 0.49 0 0 1 -0.35 0.32 5.53 5.53 0 0 1 -1.34 0.16Z"
|
|
2603
226
|
fill="currentColor"
|
|
2604
227
|
stroke-width="1"></path>
|
|
2605
|
-
</svg>`,
|
|
228
|
+
</svg>`, Se = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 593 593">
|
|
2606
229
|
<path fill="currentColor" fill-rule="evenodd"
|
|
2607
230
|
d="M347 0c6 0 12 5 12 12v134l94-95c5-5 13-5 17 0l72 72c4 4 5 12 0 16v1l-95 94h134c7 0 12 5 12 12v101c0 7-5 12-12 12H447l95 94c4 5 5 13 0 17l-72 72c-4 4-12 5-16 0h-1l-94-95v134c0 7-5 12-12 12H246c-7 0-12-5-12-12v-70c0-22 9-43 24-59l130-130c14-14 14-37 0-51L259 142a84 84 0 0 1-25-59V12c0-7 5-12 12-12h101ZM138 52h1l219 219c14 14 14 37 0 51L139 542c-4 5-12 5-17 0l-71-70c-4-5-5-12 0-17l95-96H12c-7 0-12-5-12-12V246c0-7 5-12 12-12h134l-95-94c-4-5-4-12 0-17l71-71c4-5 12-5 16 0Z" />
|
|
2608
|
-
</svg>`,
|
|
231
|
+
</svg>`, Ce = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 662 662">
|
|
2609
232
|
<path fill-rule="evenodd" fill="currentColor"
|
|
2610
233
|
d="M331 0a331 331 0 1 1 0 662 331 331 0 0 1 0-662Zm148.5 109 .6.9a187 187 0 1 1-297.6-.9 267 267 0 1 0 297 0Z" />
|
|
2611
|
-
</svg>`,
|
|
234
|
+
</svg>`, Be = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 620 620">
|
|
2612
235
|
<path fill="currentColor"
|
|
2613
236
|
d="M-.653 309.29c-.078 82.272 31.848 159.735 89.739 218.178l.283.283c122.379 121.247 319.824 121.184 440.16-.283 119.967-121.1 119.409-316.933-.998-437.339l-.99-.99C468.681 30.845 390.716-1.017 307.893-.67c-82.83.354-160.443 32.994-218.814 91.79C31.209 149.555-.724 227.025-.653 309.29Zm469.271-160.789.778.778c87.9 87.9 88.325 231.005.707 319.33-77.753 78.46-199.786 87.412-288.959 26.862l198.513-198.513-.007 166.361 83.68-.07v-306.22H157.11l-.008 83.6h160.584L121.994 436.323c-59.347-87.689-50.536-208.59 26.51-286.343C236.34 61.294 379.94 60.67 468.61 148.494Z" />
|
|
2614
|
-
</svg>`,
|
|
237
|
+
</svg>`, ze = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 642 642" fill="currentColor">
|
|
2615
238
|
<path
|
|
2616
239
|
d="M321 0a321 321 0 1 1 0 642 321 321 0 0 1 0-642Zm51.3 63L321 189.5 269.7 63l1 136.5-95.8-97.2L228 228l-125.7-53.1 97.2 95.8-136.5-1L189.5 321 63 372.3l136.5-1-97.2 95.8 125.7-53-53.1 125.6 95.8-97.2-1 136.5L321 452.5 372.3 579l-1-136.5 95.8 97.2-53-125.7 125.6 53.1-97.2-95.8 136.5 1L452.5 321 579 269.7l-136.5 1 97.2-95.8L414 228l53.1-125.7-95.8 97.2 1-136.5Z" />
|
|
2617
|
-
</svg>`,
|
|
240
|
+
</svg>`, Me = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 620 620" fill="currentColor">
|
|
2618
241
|
<path
|
|
2619
242
|
d="M529.2 90.8A310 310 0 1 0 90.8 529.2 310 310 0 0 0 529.2 90.8M122.4 498.2c-54.9-55-15.4-183.5 88.2-287 103.6-103.7 232.1-143.2 287-88.3 54.9 54.8 15.4 183.4-88.3 287-103.5 103.6-232 143.1-286.9 88.3m261.8-262.7A104.7 104.7 0 1 1 236 383.7a104.7 104.7 0 0 1 148.2-148.2" />
|
|
2620
|
-
</svg>`,
|
|
243
|
+
</svg>`, Le = `<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 14 14">
|
|
2621
244
|
<path fill="none" stroke="currentColor" d="M14 3.4H0m14 7.2H0" />
|
|
2622
|
-
</svg>`,
|
|
245
|
+
</svg>`, Fe = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="currentColor">
|
|
2623
246
|
<path fill-rule="evenodd"
|
|
2624
247
|
d="M12.6 11.2h.1l3 3a1 1 0 1 1-1.4 1.5l-3-3a1 1 0 0 1-.1-.1 7 7 0 1 1 1.4-1.4zM7 12A5 5 0 1 0 7 2a5 5 0 0 0 0 10z" />
|
|
2625
|
-
</svg>`,
|
|
2626
|
-
const
|
|
2627
|
-
return
|
|
2628
|
-
},
|
|
248
|
+
</svg>`, F = /* @__PURE__ */ Object.assign({ "./Add.svg": me, "./CheckMark.svg": ge, "./ChevronDown.svg": pe, "./ChevronLeft.svg": fe, "./ChevronRight.svg": be, "./ChevronUp.svg": we, "./Close.svg": _e, "./Ellipses.svg": xe, "./GitHub.svg": ye, "./LightDarkModeToggle.svg": ke, "./Logo.svg": Se, "./LogoAPI.svg": Ce, "./LogoClient.svg": Be, "./LogoMarket.svg": ze, "./LogoSwagger.svg": Me, "./Menu.svg": Le, "./Search.svg": Fe }), Te = (a) => {
|
|
249
|
+
const e = `./${a}.svg`;
|
|
250
|
+
return F[e] === void 0 ? (console.warn(`Could not find icon: ${a}`), "") : F[e];
|
|
251
|
+
}, D = /* @__PURE__ */ p({
|
|
2629
252
|
__name: "ScalarIcon",
|
|
2630
253
|
props: {
|
|
2631
254
|
name: {}
|
|
2632
255
|
},
|
|
2633
|
-
setup(
|
|
2634
|
-
const
|
|
2635
|
-
return (n, o) =>
|
|
256
|
+
setup(a) {
|
|
257
|
+
const e = a, t = S(() => Te(e.name));
|
|
258
|
+
return (n, o) => t.value ? (s(), w(l(he), {
|
|
2636
259
|
key: 0,
|
|
2637
260
|
class: "flow-icon",
|
|
2638
261
|
height: "100%",
|
|
2639
|
-
raw:
|
|
262
|
+
raw: t.value,
|
|
2640
263
|
width: "100%"
|
|
2641
|
-
}, null, 8, ["raw"])) :
|
|
264
|
+
}, null, 8, ["raw"])) : m("", !0);
|
|
2642
265
|
}
|
|
2643
|
-
}),
|
|
266
|
+
}), Ve = /* @__PURE__ */ p({
|
|
2644
267
|
__name: "ScalarIconButton",
|
|
2645
268
|
props: {
|
|
2646
269
|
label: {},
|
|
2647
270
|
icon: {},
|
|
2648
271
|
variant: { default: "ghost" }
|
|
2649
272
|
},
|
|
2650
|
-
setup(
|
|
2651
|
-
return (
|
|
2652
|
-
title:
|
|
2653
|
-
variant:
|
|
273
|
+
setup(a) {
|
|
274
|
+
return (e, t) => (s(), w(l(I), {
|
|
275
|
+
title: e.label,
|
|
276
|
+
variant: e.variant
|
|
2654
277
|
}, {
|
|
2655
|
-
icon:
|
|
2656
|
-
|
|
278
|
+
icon: f(() => [
|
|
279
|
+
y(l(D), { name: e.icon }, null, 8, ["name"])
|
|
2657
280
|
]),
|
|
2658
281
|
_: 1
|
|
2659
282
|
}, 8, ["title", "variant"]));
|
|
2660
283
|
}
|
|
2661
|
-
})
|
|
2662
|
-
function ee(e, t, ...r) {
|
|
2663
|
-
if (e in t) {
|
|
2664
|
-
let o = t[e];
|
|
2665
|
-
return typeof o == "function" ? o(...r) : o;
|
|
2666
|
-
}
|
|
2667
|
-
let n = new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map((o) => `"${o}"`).join(", ")}.`);
|
|
2668
|
-
throw Error.captureStackTrace && Error.captureStackTrace(n, ee), n;
|
|
2669
|
-
}
|
|
2670
|
-
var Ie = ((e) => (e[e.None = 0] = "None", e[e.RenderStrategy = 1] = "RenderStrategy", e[e.Static = 2] = "Static", e))(Ie || {}), sn = ((e) => (e[e.Unmount = 0] = "Unmount", e[e.Hidden = 1] = "Hidden", e))(sn || {});
|
|
2671
|
-
function R({ visible: e = !0, features: t = 0, ourProps: r, theirProps: n, ...o }) {
|
|
2672
|
-
var l;
|
|
2673
|
-
let a = St(n, r), s = Object.assign(o, { props: a });
|
|
2674
|
-
if (e || t & 2 && a.static)
|
|
2675
|
-
return je(s);
|
|
2676
|
-
if (t & 1) {
|
|
2677
|
-
let i = (l = a.unmount) == null || l ? 0 : 1;
|
|
2678
|
-
return ee(i, { 0() {
|
|
2679
|
-
return null;
|
|
2680
|
-
}, 1() {
|
|
2681
|
-
return je({ ...o, props: { ...a, hidden: !0, style: { display: "none" } } });
|
|
2682
|
-
} });
|
|
2683
|
-
}
|
|
2684
|
-
return je(s);
|
|
2685
|
-
}
|
|
2686
|
-
function je({ props: e, attrs: t, slots: r, slot: n, name: o }) {
|
|
2687
|
-
var l, a;
|
|
2688
|
-
let { as: s, ...i } = un(e, ["unmount", "static"]), u = (l = r.default) == null ? void 0 : l.call(r, n), d = {};
|
|
2689
|
-
if (n) {
|
|
2690
|
-
let f = !1, c = [];
|
|
2691
|
-
for (let [p, g] of Object.entries(n))
|
|
2692
|
-
typeof g == "boolean" && (f = !0), g === !0 && c.push(p);
|
|
2693
|
-
f && (d["data-headlessui-state"] = c.join(" "));
|
|
2694
|
-
}
|
|
2695
|
-
if (s === "template") {
|
|
2696
|
-
if (u = xt(u ?? []), Object.keys(i).length > 0 || Object.keys(t).length > 0) {
|
|
2697
|
-
let [f, ...c] = u ?? [];
|
|
2698
|
-
if (!cn(f) || c.length > 0)
|
|
2699
|
-
throw new Error(['Passing props on "template"!', "", `The current component <${o} /> is rendering a "template".`, "However we need to passthrough the following props:", Object.keys(i).concat(Object.keys(t)).map((v) => v.trim()).filter((v, S, L) => L.indexOf(v) === S).sort((v, S) => v.localeCompare(S)).map((v) => ` - ${v}`).join(`
|
|
2700
|
-
`), "", "You can apply a few solutions:", ['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".', "Render a single element as the child so that we can forward the props onto that element."].map((v) => ` - ${v}`).join(`
|
|
2701
|
-
`)].join(`
|
|
2702
|
-
`));
|
|
2703
|
-
let p = St((a = f.props) != null ? a : {}, i), g = It(f, p);
|
|
2704
|
-
for (let v in p)
|
|
2705
|
-
v.startsWith("on") && (g.props || (g.props = {}), g.props[v] = p[v]);
|
|
2706
|
-
return g;
|
|
2707
|
-
}
|
|
2708
|
-
return Array.isArray(u) && u.length === 1 ? u[0] : u;
|
|
2709
|
-
}
|
|
2710
|
-
return P(s, Object.assign({}, i, d), { default: () => u });
|
|
2711
|
-
}
|
|
2712
|
-
function xt(e) {
|
|
2713
|
-
return e.flatMap((t) => t.type === ut ? xt(t.children) : [t]);
|
|
2714
|
-
}
|
|
2715
|
-
function St(...e) {
|
|
2716
|
-
if (e.length === 0)
|
|
2717
|
-
return {};
|
|
2718
|
-
if (e.length === 1)
|
|
2719
|
-
return e[0];
|
|
2720
|
-
let t = {}, r = {};
|
|
2721
|
-
for (let n of e)
|
|
2722
|
-
for (let o in n)
|
|
2723
|
-
o.startsWith("on") && typeof n[o] == "function" ? (r[o] != null || (r[o] = []), r[o].push(n[o])) : t[o] = n[o];
|
|
2724
|
-
if (t.disabled || t["aria-disabled"])
|
|
2725
|
-
return Object.assign(t, Object.fromEntries(Object.keys(r).map((n) => [n, void 0])));
|
|
2726
|
-
for (let n in r)
|
|
2727
|
-
Object.assign(t, { [n](o, ...l) {
|
|
2728
|
-
let a = r[n];
|
|
2729
|
-
for (let s of a) {
|
|
2730
|
-
if (o instanceof Event && o.defaultPrevented)
|
|
2731
|
-
return;
|
|
2732
|
-
s(o, ...l);
|
|
2733
|
-
}
|
|
2734
|
-
} });
|
|
2735
|
-
return t;
|
|
2736
|
-
}
|
|
2737
|
-
function un(e, t = []) {
|
|
2738
|
-
let r = Object.assign({}, e);
|
|
2739
|
-
for (let n of t)
|
|
2740
|
-
n in r && delete r[n];
|
|
2741
|
-
return r;
|
|
2742
|
-
}
|
|
2743
|
-
function cn(e) {
|
|
2744
|
-
return e == null ? !1 : typeof e.type == "string" || typeof e.type == "object" || typeof e.type == "function";
|
|
2745
|
-
}
|
|
2746
|
-
let dn = 0;
|
|
2747
|
-
function pn() {
|
|
2748
|
-
return ++dn;
|
|
2749
|
-
}
|
|
2750
|
-
function se() {
|
|
2751
|
-
return pn();
|
|
2752
|
-
}
|
|
2753
|
-
var kt = ((e) => (e.Space = " ", e.Enter = "Enter", e.Escape = "Escape", e.Backspace = "Backspace", e.Delete = "Delete", e.ArrowLeft = "ArrowLeft", e.ArrowUp = "ArrowUp", e.ArrowRight = "ArrowRight", e.ArrowDown = "ArrowDown", e.Home = "Home", e.End = "End", e.PageUp = "PageUp", e.PageDown = "PageDown", e.Tab = "Tab", e))(kt || {});
|
|
2754
|
-
function M(e) {
|
|
2755
|
-
var t;
|
|
2756
|
-
return e == null || e.value == null ? null : (t = e.value.$el) != null ? t : e.value;
|
|
2757
|
-
}
|
|
2758
|
-
let fn = Symbol("Context");
|
|
2759
|
-
var be = ((e) => (e[e.Open = 1] = "Open", e[e.Closed = 2] = "Closed", e[e.Closing = 4] = "Closing", e[e.Opening = 8] = "Opening", e))(be || {});
|
|
2760
|
-
function vn() {
|
|
2761
|
-
return N(fn, null);
|
|
2762
|
-
}
|
|
2763
|
-
var gn = Object.defineProperty, mn = (e, t, r) => t in e ? gn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, at = (e, t, r) => (mn(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
2764
|
-
class hn {
|
|
2765
|
-
constructor() {
|
|
2766
|
-
at(this, "current", this.detect()), at(this, "currentId", 0);
|
|
2767
|
-
}
|
|
2768
|
-
set(t) {
|
|
2769
|
-
this.current !== t && (this.currentId = 0, this.current = t);
|
|
2770
|
-
}
|
|
2771
|
-
reset() {
|
|
2772
|
-
this.set(this.detect());
|
|
2773
|
-
}
|
|
2774
|
-
nextId() {
|
|
2775
|
-
return ++this.currentId;
|
|
2776
|
-
}
|
|
2777
|
-
get isServer() {
|
|
2778
|
-
return this.current === "server";
|
|
2779
|
-
}
|
|
2780
|
-
get isClient() {
|
|
2781
|
-
return this.current === "client";
|
|
2782
|
-
}
|
|
2783
|
-
detect() {
|
|
2784
|
-
return typeof window > "u" || typeof document > "u" ? "server" : "client";
|
|
2785
|
-
}
|
|
2786
|
-
}
|
|
2787
|
-
let ze = new hn();
|
|
2788
|
-
function ie(e) {
|
|
2789
|
-
if (ze.isServer)
|
|
2790
|
-
return null;
|
|
2791
|
-
if (e instanceof Node)
|
|
2792
|
-
return e.ownerDocument;
|
|
2793
|
-
if (e != null && e.hasOwnProperty("value")) {
|
|
2794
|
-
let t = M(e);
|
|
2795
|
-
if (t)
|
|
2796
|
-
return t.ownerDocument;
|
|
2797
|
-
}
|
|
2798
|
-
return document;
|
|
2799
|
-
}
|
|
2800
|
-
let He = ["[contentEditable=true]", "[tabindex]", "a[href]", "area[href]", "button:not([disabled])", "iframe", "input:not([disabled])", "select:not([disabled])", "textarea:not([disabled])"].map((e) => `${e}:not([tabindex='-1'])`).join(",");
|
|
2801
|
-
var U = ((e) => (e[e.First = 1] = "First", e[e.Previous = 2] = "Previous", e[e.Next = 4] = "Next", e[e.Last = 8] = "Last", e[e.WrapAround = 16] = "WrapAround", e[e.NoScroll = 32] = "NoScroll", e))(U || {}), _t = ((e) => (e[e.Error = 0] = "Error", e[e.Overflow = 1] = "Overflow", e[e.Success = 2] = "Success", e[e.Underflow = 3] = "Underflow", e))(_t || {}), bn = ((e) => (e[e.Previous = -1] = "Previous", e[e.Next = 1] = "Next", e))(bn || {});
|
|
2802
|
-
function wn(e = document.body) {
|
|
2803
|
-
return e == null ? [] : Array.from(e.querySelectorAll(He)).sort((t, r) => Math.sign((t.tabIndex || Number.MAX_SAFE_INTEGER) - (r.tabIndex || Number.MAX_SAFE_INTEGER)));
|
|
2804
|
-
}
|
|
2805
|
-
var Ct = ((e) => (e[e.Strict = 0] = "Strict", e[e.Loose = 1] = "Loose", e))(Ct || {});
|
|
2806
|
-
function yn(e, t = 0) {
|
|
2807
|
-
var r;
|
|
2808
|
-
return e === ((r = ie(e)) == null ? void 0 : r.body) ? !1 : ee(t, { 0() {
|
|
2809
|
-
return e.matches(He);
|
|
2810
|
-
}, 1() {
|
|
2811
|
-
let n = e;
|
|
2812
|
-
for (; n !== null; ) {
|
|
2813
|
-
if (n.matches(He))
|
|
2814
|
-
return !0;
|
|
2815
|
-
n = n.parentElement;
|
|
2816
|
-
}
|
|
2817
|
-
return !1;
|
|
2818
|
-
} });
|
|
2819
|
-
}
|
|
2820
|
-
var xn = ((e) => (e[e.Keyboard = 0] = "Keyboard", e[e.Mouse = 1] = "Mouse", e))(xn || {});
|
|
2821
|
-
typeof window < "u" && typeof document < "u" && (document.addEventListener("keydown", (e) => {
|
|
2822
|
-
e.metaKey || e.altKey || e.ctrlKey || (document.documentElement.dataset.headlessuiFocusVisible = "");
|
|
2823
|
-
}, !0), document.addEventListener("click", (e) => {
|
|
2824
|
-
e.detail === 1 ? delete document.documentElement.dataset.headlessuiFocusVisible : e.detail === 0 && (document.documentElement.dataset.headlessuiFocusVisible = "");
|
|
2825
|
-
}, !0));
|
|
2826
|
-
function Y(e) {
|
|
2827
|
-
e == null || e.focus({ preventScroll: !0 });
|
|
2828
|
-
}
|
|
2829
|
-
let Sn = ["textarea", "input"].join(",");
|
|
2830
|
-
function kn(e) {
|
|
2831
|
-
var t, r;
|
|
2832
|
-
return (r = (t = e == null ? void 0 : e.matches) == null ? void 0 : t.call(e, Sn)) != null ? r : !1;
|
|
2833
|
-
}
|
|
2834
|
-
function _n(e, t = (r) => r) {
|
|
2835
|
-
return e.slice().sort((r, n) => {
|
|
2836
|
-
let o = t(r), l = t(n);
|
|
2837
|
-
if (o === null || l === null)
|
|
2838
|
-
return 0;
|
|
2839
|
-
let a = o.compareDocumentPosition(l);
|
|
2840
|
-
return a & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : a & Node.DOCUMENT_POSITION_PRECEDING ? 1 : 0;
|
|
2841
|
-
});
|
|
2842
|
-
}
|
|
2843
|
-
function Ae(e, t, { sorted: r = !0, relativeTo: n = null, skipElements: o = [] } = {}) {
|
|
2844
|
-
var l;
|
|
2845
|
-
let a = (l = Array.isArray(e) ? e.length > 0 ? e[0].ownerDocument : document : e == null ? void 0 : e.ownerDocument) != null ? l : document, s = Array.isArray(e) ? r ? _n(e) : e : wn(e);
|
|
2846
|
-
o.length > 0 && s.length > 1 && (s = s.filter((g) => !o.includes(g))), n = n ?? a.activeElement;
|
|
2847
|
-
let i = (() => {
|
|
2848
|
-
if (t & 5)
|
|
2849
|
-
return 1;
|
|
2850
|
-
if (t & 10)
|
|
2851
|
-
return -1;
|
|
2852
|
-
throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last");
|
|
2853
|
-
})(), u = (() => {
|
|
2854
|
-
if (t & 1)
|
|
2855
|
-
return 0;
|
|
2856
|
-
if (t & 2)
|
|
2857
|
-
return Math.max(0, s.indexOf(n)) - 1;
|
|
2858
|
-
if (t & 4)
|
|
2859
|
-
return Math.max(0, s.indexOf(n)) + 1;
|
|
2860
|
-
if (t & 8)
|
|
2861
|
-
return s.length - 1;
|
|
2862
|
-
throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last");
|
|
2863
|
-
})(), d = t & 32 ? { preventScroll: !0 } : {}, f = 0, c = s.length, p;
|
|
2864
|
-
do {
|
|
2865
|
-
if (f >= c || f + c <= 0)
|
|
2866
|
-
return 0;
|
|
2867
|
-
let g = u + f;
|
|
2868
|
-
if (t & 16)
|
|
2869
|
-
g = (g + c) % c;
|
|
2870
|
-
else {
|
|
2871
|
-
if (g < 0)
|
|
2872
|
-
return 3;
|
|
2873
|
-
if (g >= c)
|
|
2874
|
-
return 1;
|
|
2875
|
-
}
|
|
2876
|
-
p = s[g], p == null || p.focus(d), f += i;
|
|
2877
|
-
} while (p !== a.activeElement);
|
|
2878
|
-
return t & 6 && kn(p) && p.select(), 2;
|
|
2879
|
-
}
|
|
2880
|
-
function Te(e, t, r) {
|
|
2881
|
-
ze.isServer || te((n) => {
|
|
2882
|
-
document.addEventListener(e, t, r), n(() => document.removeEventListener(e, t, r));
|
|
2883
|
-
});
|
|
2884
|
-
}
|
|
2885
|
-
function Et(e, t, r) {
|
|
2886
|
-
ze.isServer || te((n) => {
|
|
2887
|
-
window.addEventListener(e, t, r), n(() => window.removeEventListener(e, t, r));
|
|
2888
|
-
});
|
|
2889
|
-
}
|
|
2890
|
-
function Cn(e, t, r = h(() => !0)) {
|
|
2891
|
-
function n(l, a) {
|
|
2892
|
-
if (!r.value || l.defaultPrevented)
|
|
2893
|
-
return;
|
|
2894
|
-
let s = a(l);
|
|
2895
|
-
if (s === null || !s.getRootNode().contains(s))
|
|
2896
|
-
return;
|
|
2897
|
-
let i = function u(d) {
|
|
2898
|
-
return typeof d == "function" ? u(d()) : Array.isArray(d) || d instanceof Set ? d : [d];
|
|
2899
|
-
}(e);
|
|
2900
|
-
for (let u of i) {
|
|
2901
|
-
if (u === null)
|
|
2902
|
-
continue;
|
|
2903
|
-
let d = u instanceof HTMLElement ? u : M(u);
|
|
2904
|
-
if (d != null && d.contains(s) || l.composed && l.composedPath().includes(d))
|
|
2905
|
-
return;
|
|
2906
|
-
}
|
|
2907
|
-
return !yn(s, Ct.Loose) && s.tabIndex !== -1 && l.preventDefault(), t(l, s);
|
|
2908
|
-
}
|
|
2909
|
-
let o = w(null);
|
|
2910
|
-
Te("pointerdown", (l) => {
|
|
2911
|
-
var a, s;
|
|
2912
|
-
r.value && (o.value = ((s = (a = l.composedPath) == null ? void 0 : a.call(l)) == null ? void 0 : s[0]) || l.target);
|
|
2913
|
-
}, !0), Te("mousedown", (l) => {
|
|
2914
|
-
var a, s;
|
|
2915
|
-
r.value && (o.value = ((s = (a = l.composedPath) == null ? void 0 : a.call(l)) == null ? void 0 : s[0]) || l.target);
|
|
2916
|
-
}, !0), Te("click", (l) => {
|
|
2917
|
-
o.value && (n(l, () => o.value), o.value = null);
|
|
2918
|
-
}, !0), Te("touchend", (l) => n(l, () => l.target instanceof HTMLElement ? l.target : null), !0), Et("blur", (l) => n(l, () => window.document.activeElement instanceof HTMLIFrameElement ? window.document.activeElement : null), !0);
|
|
2919
|
-
}
|
|
2920
|
-
var Fe = ((e) => (e[e.None = 1] = "None", e[e.Focusable = 2] = "Focusable", e[e.Hidden = 4] = "Hidden", e))(Fe || {});
|
|
2921
|
-
let Ve = C({ name: "Hidden", props: { as: { type: [Object, String], default: "div" }, features: { type: Number, default: 1 } }, setup(e, { slots: t, attrs: r }) {
|
|
2922
|
-
return () => {
|
|
2923
|
-
let { features: n, ...o } = e, l = { "aria-hidden": (n & 2) === 2 ? !0 : void 0, style: { position: "fixed", top: 1, left: 1, width: 1, height: 0, padding: 0, margin: -1, overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0", ...(n & 4) === 4 && (n & 2) !== 2 && { display: "none" } } };
|
|
2924
|
-
return R({ ourProps: l, theirProps: o, slot: {}, attrs: r, slots: t, name: "Hidden" });
|
|
2925
|
-
};
|
|
2926
|
-
} });
|
|
2927
|
-
function En() {
|
|
2928
|
-
return /iPhone/gi.test(window.navigator.platform) || /Mac/gi.test(window.navigator.platform) && window.navigator.maxTouchPoints > 0;
|
|
2929
|
-
}
|
|
2930
|
-
function Je(e) {
|
|
2931
|
-
typeof queueMicrotask == "function" ? queueMicrotask(e) : Promise.resolve().then(e).catch((t) => setTimeout(() => {
|
|
2932
|
-
throw t;
|
|
2933
|
-
}));
|
|
2934
|
-
}
|
|
2935
|
-
function Qe() {
|
|
2936
|
-
let e = [], t = { addEventListener(r, n, o, l) {
|
|
2937
|
-
return r.addEventListener(n, o, l), t.add(() => r.removeEventListener(n, o, l));
|
|
2938
|
-
}, requestAnimationFrame(...r) {
|
|
2939
|
-
let n = requestAnimationFrame(...r);
|
|
2940
|
-
t.add(() => cancelAnimationFrame(n));
|
|
2941
|
-
}, nextFrame(...r) {
|
|
2942
|
-
t.requestAnimationFrame(() => {
|
|
2943
|
-
t.requestAnimationFrame(...r);
|
|
2944
|
-
});
|
|
2945
|
-
}, setTimeout(...r) {
|
|
2946
|
-
let n = setTimeout(...r);
|
|
2947
|
-
t.add(() => clearTimeout(n));
|
|
2948
|
-
}, microTask(...r) {
|
|
2949
|
-
let n = { current: !0 };
|
|
2950
|
-
return Je(() => {
|
|
2951
|
-
n.current && r[0]();
|
|
2952
|
-
}), t.add(() => {
|
|
2953
|
-
n.current = !1;
|
|
2954
|
-
});
|
|
2955
|
-
}, style(r, n, o) {
|
|
2956
|
-
let l = r.style.getPropertyValue(n);
|
|
2957
|
-
return Object.assign(r.style, { [n]: o }), this.add(() => {
|
|
2958
|
-
Object.assign(r.style, { [n]: l });
|
|
2959
|
-
});
|
|
2960
|
-
}, group(r) {
|
|
2961
|
-
let n = Qe();
|
|
2962
|
-
return r(n), this.add(() => n.dispose());
|
|
2963
|
-
}, add(r) {
|
|
2964
|
-
return e.push(r), () => {
|
|
2965
|
-
let n = e.indexOf(r);
|
|
2966
|
-
if (n >= 0)
|
|
2967
|
-
for (let o of e.splice(n, 1))
|
|
2968
|
-
o();
|
|
2969
|
-
};
|
|
2970
|
-
}, dispose() {
|
|
2971
|
-
for (let r of e.splice(0))
|
|
2972
|
-
r();
|
|
2973
|
-
} };
|
|
2974
|
-
return t;
|
|
2975
|
-
}
|
|
2976
|
-
var we = ((e) => (e[e.Forwards = 0] = "Forwards", e[e.Backwards = 1] = "Backwards", e))(we || {});
|
|
2977
|
-
function Mn() {
|
|
2978
|
-
let e = w(0);
|
|
2979
|
-
return Et("keydown", (t) => {
|
|
2980
|
-
t.key === "Tab" && (e.value = t.shiftKey ? 1 : 0);
|
|
2981
|
-
}), e;
|
|
2982
|
-
}
|
|
2983
|
-
function Mt(e, t, r, n) {
|
|
2984
|
-
ze.isServer || te((o) => {
|
|
2985
|
-
e = e ?? window, e.addEventListener(t, r, n), o(() => e.removeEventListener(t, r, n));
|
|
2986
|
-
});
|
|
2987
|
-
}
|
|
2988
|
-
function Tn(e) {
|
|
2989
|
-
function t() {
|
|
2990
|
-
document.readyState !== "loading" && (e(), document.removeEventListener("DOMContentLoaded", t));
|
|
2991
|
-
}
|
|
2992
|
-
typeof window < "u" && typeof document < "u" && (document.addEventListener("DOMContentLoaded", t), t());
|
|
2993
|
-
}
|
|
2994
|
-
function Tt(e) {
|
|
2995
|
-
if (!e)
|
|
2996
|
-
return /* @__PURE__ */ new Set();
|
|
2997
|
-
if (typeof e == "function")
|
|
2998
|
-
return new Set(e());
|
|
2999
|
-
let t = /* @__PURE__ */ new Set();
|
|
3000
|
-
for (let r of e.value) {
|
|
3001
|
-
let n = M(r);
|
|
3002
|
-
n instanceof HTMLElement && t.add(n);
|
|
3003
|
-
}
|
|
3004
|
-
return t;
|
|
3005
|
-
}
|
|
3006
|
-
var Pt = ((e) => (e[e.None = 1] = "None", e[e.InitialFocus = 2] = "InitialFocus", e[e.TabLock = 4] = "TabLock", e[e.FocusLock = 8] = "FocusLock", e[e.RestoreFocus = 16] = "RestoreFocus", e[e.All = 30] = "All", e))(Pt || {});
|
|
3007
|
-
let ge = Object.assign(C({ name: "FocusTrap", props: { as: { type: [Object, String], default: "div" }, initialFocus: { type: Object, default: null }, features: { type: Number, default: 30 }, containers: { type: [Object, Function], default: w(/* @__PURE__ */ new Set()) } }, inheritAttrs: !1, setup(e, { attrs: t, slots: r, expose: n }) {
|
|
3008
|
-
let o = w(null);
|
|
3009
|
-
n({ el: o, $el: o });
|
|
3010
|
-
let l = h(() => ie(o)), a = w(!1);
|
|
3011
|
-
$(() => a.value = !0), I(() => a.value = !1), Ln({ ownerDocument: l }, h(() => a.value && !!(e.features & 16)));
|
|
3012
|
-
let s = An({ ownerDocument: l, container: o, initialFocus: h(() => e.initialFocus) }, h(() => a.value && !!(e.features & 2)));
|
|
3013
|
-
On({ ownerDocument: l, container: o, containers: e.containers, previousActiveElement: s }, h(() => a.value && !!(e.features & 8)));
|
|
3014
|
-
let i = Mn();
|
|
3015
|
-
function u(p) {
|
|
3016
|
-
let g = M(o);
|
|
3017
|
-
g && ((v) => v())(() => {
|
|
3018
|
-
ee(i.value, { [we.Forwards]: () => {
|
|
3019
|
-
Ae(g, U.First, { skipElements: [p.relatedTarget] });
|
|
3020
|
-
}, [we.Backwards]: () => {
|
|
3021
|
-
Ae(g, U.Last, { skipElements: [p.relatedTarget] });
|
|
3022
|
-
} });
|
|
3023
|
-
});
|
|
3024
|
-
}
|
|
3025
|
-
let d = w(!1);
|
|
3026
|
-
function f(p) {
|
|
3027
|
-
p.key === "Tab" && (d.value = !0, requestAnimationFrame(() => {
|
|
3028
|
-
d.value = !1;
|
|
3029
|
-
}));
|
|
3030
|
-
}
|
|
3031
|
-
function c(p) {
|
|
3032
|
-
if (!a.value)
|
|
3033
|
-
return;
|
|
3034
|
-
let g = Tt(e.containers);
|
|
3035
|
-
M(o) instanceof HTMLElement && g.add(M(o));
|
|
3036
|
-
let v = p.relatedTarget;
|
|
3037
|
-
v instanceof HTMLElement && v.dataset.headlessuiFocusGuard !== "true" && (Lt(g, v) || (d.value ? Ae(M(o), ee(i.value, { [we.Forwards]: () => U.Next, [we.Backwards]: () => U.Previous }) | U.WrapAround, { relativeTo: p.target }) : p.target instanceof HTMLElement && Y(p.target)));
|
|
3038
|
-
}
|
|
3039
|
-
return () => {
|
|
3040
|
-
let p = {}, g = { ref: o, onKeydown: f, onFocusout: c }, { features: v, initialFocus: S, containers: L, ...E } = e;
|
|
3041
|
-
return P(ut, [!!(v & 4) && P(Ve, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: u, features: Fe.Focusable }), R({ ourProps: g, theirProps: { ...t, ...E }, slot: p, attrs: t, slots: r, name: "FocusTrap" }), !!(v & 4) && P(Ve, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: u, features: Fe.Focusable })]);
|
|
3042
|
-
};
|
|
3043
|
-
} }), { features: Pt }), K = [];
|
|
3044
|
-
Tn(() => {
|
|
3045
|
-
function e(t) {
|
|
3046
|
-
t.target instanceof HTMLElement && t.target !== document.body && K[0] !== t.target && (K.unshift(t.target), K = K.filter((r) => r != null && r.isConnected), K.splice(10));
|
|
3047
|
-
}
|
|
3048
|
-
window.addEventListener("click", e, { capture: !0 }), window.addEventListener("mousedown", e, { capture: !0 }), window.addEventListener("focus", e, { capture: !0 }), document.body.addEventListener("click", e, { capture: !0 }), document.body.addEventListener("mousedown", e, { capture: !0 }), document.body.addEventListener("focus", e, { capture: !0 });
|
|
3049
|
-
});
|
|
3050
|
-
function Pn(e) {
|
|
3051
|
-
let t = w(K.slice());
|
|
3052
|
-
return Q([e], ([r], [n]) => {
|
|
3053
|
-
n === !0 && r === !1 ? Je(() => {
|
|
3054
|
-
t.value.splice(0);
|
|
3055
|
-
}) : n === !1 && r === !0 && (t.value = K.slice());
|
|
3056
|
-
}, { flush: "post" }), () => {
|
|
3057
|
-
var r;
|
|
3058
|
-
return (r = t.value.find((n) => n != null && n.isConnected)) != null ? r : null;
|
|
3059
|
-
};
|
|
3060
|
-
}
|
|
3061
|
-
function Ln({ ownerDocument: e }, t) {
|
|
3062
|
-
let r = Pn(t);
|
|
3063
|
-
$(() => {
|
|
3064
|
-
te(() => {
|
|
3065
|
-
var n, o;
|
|
3066
|
-
t.value || ((n = e.value) == null ? void 0 : n.activeElement) === ((o = e.value) == null ? void 0 : o.body) && Y(r());
|
|
3067
|
-
}, { flush: "post" });
|
|
3068
|
-
}), I(() => {
|
|
3069
|
-
t.value && Y(r());
|
|
3070
|
-
});
|
|
3071
|
-
}
|
|
3072
|
-
function An({ ownerDocument: e, container: t, initialFocus: r }, n) {
|
|
3073
|
-
let o = w(null), l = w(!1);
|
|
3074
|
-
return $(() => l.value = !0), I(() => l.value = !1), $(() => {
|
|
3075
|
-
Q([t, r, n], (a, s) => {
|
|
3076
|
-
if (a.every((u, d) => (s == null ? void 0 : s[d]) === u) || !n.value)
|
|
3077
|
-
return;
|
|
3078
|
-
let i = M(t);
|
|
3079
|
-
i && Je(() => {
|
|
3080
|
-
var u, d;
|
|
3081
|
-
if (!l.value)
|
|
3082
|
-
return;
|
|
3083
|
-
let f = M(r), c = (u = e.value) == null ? void 0 : u.activeElement;
|
|
3084
|
-
if (f) {
|
|
3085
|
-
if (f === c) {
|
|
3086
|
-
o.value = c;
|
|
3087
|
-
return;
|
|
3088
|
-
}
|
|
3089
|
-
} else if (i.contains(c)) {
|
|
3090
|
-
o.value = c;
|
|
3091
|
-
return;
|
|
3092
|
-
}
|
|
3093
|
-
f ? Y(f) : Ae(i, U.First | U.NoScroll) === _t.Error && console.warn("There are no focusable elements inside the <FocusTrap />"), o.value = (d = e.value) == null ? void 0 : d.activeElement;
|
|
3094
|
-
});
|
|
3095
|
-
}, { immediate: !0, flush: "post" });
|
|
3096
|
-
}), o;
|
|
3097
|
-
}
|
|
3098
|
-
function On({ ownerDocument: e, container: t, containers: r, previousActiveElement: n }, o) {
|
|
3099
|
-
var l;
|
|
3100
|
-
Mt((l = e.value) == null ? void 0 : l.defaultView, "focus", (a) => {
|
|
3101
|
-
if (!o.value)
|
|
3102
|
-
return;
|
|
3103
|
-
let s = Tt(r);
|
|
3104
|
-
M(t) instanceof HTMLElement && s.add(M(t));
|
|
3105
|
-
let i = n.value;
|
|
3106
|
-
if (!i)
|
|
3107
|
-
return;
|
|
3108
|
-
let u = a.target;
|
|
3109
|
-
u && u instanceof HTMLElement ? Lt(s, u) ? (n.value = u, Y(u)) : (a.preventDefault(), a.stopPropagation(), Y(i)) : Y(n.value);
|
|
3110
|
-
}, !0);
|
|
3111
|
-
}
|
|
3112
|
-
function Lt(e, t) {
|
|
3113
|
-
for (let r of e)
|
|
3114
|
-
if (r.contains(t))
|
|
3115
|
-
return !0;
|
|
3116
|
-
return !1;
|
|
3117
|
-
}
|
|
3118
|
-
let Be = /* @__PURE__ */ new Map(), me = /* @__PURE__ */ new Map();
|
|
3119
|
-
function st(e, t = w(!0)) {
|
|
3120
|
-
te((r) => {
|
|
3121
|
-
var n;
|
|
3122
|
-
if (!t.value)
|
|
3123
|
-
return;
|
|
3124
|
-
let o = M(e);
|
|
3125
|
-
if (!o)
|
|
3126
|
-
return;
|
|
3127
|
-
r(function() {
|
|
3128
|
-
var a;
|
|
3129
|
-
if (!o)
|
|
3130
|
-
return;
|
|
3131
|
-
let s = (a = me.get(o)) != null ? a : 1;
|
|
3132
|
-
if (s === 1 ? me.delete(o) : me.set(o, s - 1), s !== 1)
|
|
3133
|
-
return;
|
|
3134
|
-
let i = Be.get(o);
|
|
3135
|
-
i && (i["aria-hidden"] === null ? o.removeAttribute("aria-hidden") : o.setAttribute("aria-hidden", i["aria-hidden"]), o.inert = i.inert, Be.delete(o));
|
|
3136
|
-
});
|
|
3137
|
-
let l = (n = me.get(o)) != null ? n : 0;
|
|
3138
|
-
me.set(o, l + 1), l === 0 && (Be.set(o, { "aria-hidden": o.getAttribute("aria-hidden"), inert: o.inert }), o.setAttribute("aria-hidden", "true"), o.inert = !0);
|
|
3139
|
-
});
|
|
3140
|
-
}
|
|
3141
|
-
let At = Symbol("ForcePortalRootContext");
|
|
3142
|
-
function $n() {
|
|
3143
|
-
return N(At, !1);
|
|
3144
|
-
}
|
|
3145
|
-
let We = C({ name: "ForcePortalRoot", props: { as: { type: [Object, String], default: "template" }, force: { type: Boolean, default: !1 } }, setup(e, { slots: t, attrs: r }) {
|
|
3146
|
-
return le(At, e.force), () => {
|
|
3147
|
-
let { force: n, ...o } = e;
|
|
3148
|
-
return R({ theirProps: o, ourProps: {}, slot: {}, slots: t, attrs: r, name: "ForcePortalRoot" });
|
|
3149
|
-
};
|
|
3150
|
-
} });
|
|
3151
|
-
function Fn(e) {
|
|
3152
|
-
let t = ie(e);
|
|
3153
|
-
if (!t) {
|
|
3154
|
-
if (e === null)
|
|
3155
|
-
return null;
|
|
3156
|
-
throw new Error(`[Headless UI]: Cannot find ownerDocument for contextElement: ${e}`);
|
|
3157
|
-
}
|
|
3158
|
-
let r = t.getElementById("headlessui-portal-root");
|
|
3159
|
-
if (r)
|
|
3160
|
-
return r;
|
|
3161
|
-
let n = t.createElement("div");
|
|
3162
|
-
return n.setAttribute("id", "headlessui-portal-root"), t.body.appendChild(n);
|
|
3163
|
-
}
|
|
3164
|
-
let Ot = C({ name: "Portal", props: { as: { type: [Object, String], default: "div" } }, setup(e, { slots: t, attrs: r }) {
|
|
3165
|
-
let n = w(null), o = h(() => ie(n)), l = $n(), a = N($t, null), s = w(l === !0 || a == null ? Fn(n.value) : a.resolveTarget());
|
|
3166
|
-
te(() => {
|
|
3167
|
-
l || a != null && (s.value = a.resolveTarget());
|
|
3168
|
-
});
|
|
3169
|
-
let i = N(Ge, null);
|
|
3170
|
-
return $(() => {
|
|
3171
|
-
let u = M(n);
|
|
3172
|
-
u && i && I(i.register(u));
|
|
3173
|
-
}), I(() => {
|
|
3174
|
-
var u, d;
|
|
3175
|
-
let f = (u = o.value) == null ? void 0 : u.getElementById("headlessui-portal-root");
|
|
3176
|
-
f && s.value === f && s.value.children.length <= 0 && ((d = s.value.parentElement) == null || d.removeChild(s.value));
|
|
3177
|
-
}), () => {
|
|
3178
|
-
if (s.value === null)
|
|
3179
|
-
return null;
|
|
3180
|
-
let u = { ref: n, "data-headlessui-portal": "" };
|
|
3181
|
-
return P(Ht, { to: s.value }, R({ ourProps: u, theirProps: e, slot: {}, attrs: r, slots: t, name: "Portal" }));
|
|
3182
|
-
};
|
|
3183
|
-
} }), Ge = Symbol("PortalParentContext");
|
|
3184
|
-
function zn() {
|
|
3185
|
-
let e = N(Ge, null), t = w([]);
|
|
3186
|
-
function r(l) {
|
|
3187
|
-
return t.value.push(l), e && e.register(l), () => n(l);
|
|
3188
|
-
}
|
|
3189
|
-
function n(l) {
|
|
3190
|
-
let a = t.value.indexOf(l);
|
|
3191
|
-
a !== -1 && t.value.splice(a, 1), e && e.unregister(l);
|
|
3192
|
-
}
|
|
3193
|
-
let o = { register: r, unregister: n, portals: t };
|
|
3194
|
-
return [t, C({ name: "PortalWrapper", setup(l, { slots: a }) {
|
|
3195
|
-
return le(Ge, o), () => {
|
|
3196
|
-
var s;
|
|
3197
|
-
return (s = a.default) == null ? void 0 : s.call(a);
|
|
3198
|
-
};
|
|
3199
|
-
} })];
|
|
3200
|
-
}
|
|
3201
|
-
let $t = Symbol("PortalGroupContext"), Rn = C({ name: "PortalGroup", props: { as: { type: [Object, String], default: "template" }, target: { type: Object, default: null } }, setup(e, { attrs: t, slots: r }) {
|
|
3202
|
-
let n = Ke({ resolveTarget() {
|
|
3203
|
-
return e.target;
|
|
3204
|
-
} });
|
|
3205
|
-
return le($t, n), () => {
|
|
3206
|
-
let { target: o, ...l } = e;
|
|
3207
|
-
return R({ theirProps: l, ourProps: {}, slot: {}, attrs: t, slots: r, name: "PortalGroup" });
|
|
3208
|
-
};
|
|
3209
|
-
} }), Ft = Symbol("StackContext");
|
|
3210
|
-
var Ue = ((e) => (e[e.Add = 0] = "Add", e[e.Remove = 1] = "Remove", e))(Ue || {});
|
|
3211
|
-
function jn() {
|
|
3212
|
-
return N(Ft, () => {
|
|
3213
|
-
});
|
|
3214
|
-
}
|
|
3215
|
-
function Bn({ type: e, enabled: t, element: r, onUpdate: n }) {
|
|
3216
|
-
let o = jn();
|
|
3217
|
-
function l(...a) {
|
|
3218
|
-
n == null || n(...a), o(...a);
|
|
3219
|
-
}
|
|
3220
|
-
$(() => {
|
|
3221
|
-
Q(t, (a, s) => {
|
|
3222
|
-
a ? l(0, e, r) : s === !0 && l(1, e, r);
|
|
3223
|
-
}, { immediate: !0, flush: "sync" });
|
|
3224
|
-
}), I(() => {
|
|
3225
|
-
t.value && l(1, e, r);
|
|
3226
|
-
}), le(Ft, l);
|
|
3227
|
-
}
|
|
3228
|
-
let zt = Symbol("DescriptionContext");
|
|
3229
|
-
function Dn() {
|
|
3230
|
-
let e = N(zt, null);
|
|
3231
|
-
if (e === null)
|
|
3232
|
-
throw new Error("Missing parent");
|
|
3233
|
-
return e;
|
|
3234
|
-
}
|
|
3235
|
-
function Nn({ slot: e = w({}), name: t = "Description", props: r = {} } = {}) {
|
|
3236
|
-
let n = w([]);
|
|
3237
|
-
function o(l) {
|
|
3238
|
-
return n.value.push(l), () => {
|
|
3239
|
-
let a = n.value.indexOf(l);
|
|
3240
|
-
a !== -1 && n.value.splice(a, 1);
|
|
3241
|
-
};
|
|
3242
|
-
}
|
|
3243
|
-
return le(zt, { register: o, slot: e, name: t, props: r }), h(() => n.value.length > 0 ? n.value.join(" ") : void 0);
|
|
3244
|
-
}
|
|
3245
|
-
let In = C({ name: "Description", props: { as: { type: [Object, String], default: "p" }, id: { type: String, default: () => `headlessui-description-${se()}` } }, setup(e, { attrs: t, slots: r }) {
|
|
3246
|
-
let n = Dn();
|
|
3247
|
-
return $(() => I(n.register(e.id))), () => {
|
|
3248
|
-
let { name: o = "Description", slot: l = w({}), props: a = {} } = n, { id: s, ...i } = e, u = { ...Object.entries(a).reduce((d, [f, c]) => Object.assign(d, { [f]: _(c) }), {}), id: s };
|
|
3249
|
-
return R({ ourProps: u, theirProps: i, slot: l.value, attrs: t, slots: r, name: o });
|
|
3250
|
-
};
|
|
3251
|
-
} });
|
|
3252
|
-
function Hn(e) {
|
|
3253
|
-
let t = Vt(e.getSnapshot());
|
|
3254
|
-
return I(e.subscribe(() => {
|
|
3255
|
-
t.value = e.getSnapshot();
|
|
3256
|
-
})), t;
|
|
3257
|
-
}
|
|
3258
|
-
function Vn(e, t) {
|
|
3259
|
-
let r = e(), n = /* @__PURE__ */ new Set();
|
|
3260
|
-
return { getSnapshot() {
|
|
3261
|
-
return r;
|
|
3262
|
-
}, subscribe(o) {
|
|
3263
|
-
return n.add(o), () => n.delete(o);
|
|
3264
|
-
}, dispatch(o, ...l) {
|
|
3265
|
-
let a = t[o].call(r, ...l);
|
|
3266
|
-
a && (r = a, n.forEach((s) => s()));
|
|
3267
|
-
} };
|
|
3268
|
-
}
|
|
3269
|
-
function Wn() {
|
|
3270
|
-
let e;
|
|
3271
|
-
return { before({ doc: t }) {
|
|
3272
|
-
var r;
|
|
3273
|
-
let n = t.documentElement;
|
|
3274
|
-
e = ((r = t.defaultView) != null ? r : window).innerWidth - n.clientWidth;
|
|
3275
|
-
}, after({ doc: t, d: r }) {
|
|
3276
|
-
let n = t.documentElement, o = n.clientWidth - n.offsetWidth, l = e - o;
|
|
3277
|
-
r.style(n, "paddingRight", `${l}px`);
|
|
3278
|
-
} };
|
|
3279
|
-
}
|
|
3280
|
-
function Gn() {
|
|
3281
|
-
if (!En())
|
|
3282
|
-
return {};
|
|
3283
|
-
let e;
|
|
3284
|
-
return { before() {
|
|
3285
|
-
e = window.pageYOffset;
|
|
3286
|
-
}, after({ doc: t, d: r, meta: n }) {
|
|
3287
|
-
function o(a) {
|
|
3288
|
-
return n.containers.flatMap((s) => s()).some((s) => s.contains(a));
|
|
3289
|
-
}
|
|
3290
|
-
if (window.getComputedStyle(t.documentElement).scrollBehavior !== "auto") {
|
|
3291
|
-
let a = Qe();
|
|
3292
|
-
a.style(t.documentElement, "scroll-behavior", "auto"), r.add(() => r.microTask(() => a.dispose()));
|
|
3293
|
-
}
|
|
3294
|
-
r.style(t.body, "marginTop", `-${e}px`), window.scrollTo(0, 0);
|
|
3295
|
-
let l = null;
|
|
3296
|
-
r.addEventListener(t, "click", (a) => {
|
|
3297
|
-
if (a.target instanceof HTMLElement)
|
|
3298
|
-
try {
|
|
3299
|
-
let s = a.target.closest("a");
|
|
3300
|
-
if (!s)
|
|
3301
|
-
return;
|
|
3302
|
-
let { hash: i } = new URL(s.href), u = t.querySelector(i);
|
|
3303
|
-
u && !o(u) && (l = u);
|
|
3304
|
-
} catch {
|
|
3305
|
-
}
|
|
3306
|
-
}, !0), r.addEventListener(t, "touchmove", (a) => {
|
|
3307
|
-
a.target instanceof HTMLElement && !o(a.target) && a.preventDefault();
|
|
3308
|
-
}, { passive: !1 }), r.add(() => {
|
|
3309
|
-
window.scrollTo(0, window.pageYOffset + e), l && l.isConnected && (l.scrollIntoView({ block: "nearest" }), l = null);
|
|
3310
|
-
});
|
|
3311
|
-
} };
|
|
3312
|
-
}
|
|
3313
|
-
function Un() {
|
|
3314
|
-
return { before({ doc: e, d: t }) {
|
|
3315
|
-
t.style(e.documentElement, "overflow", "hidden");
|
|
3316
|
-
} };
|
|
3317
|
-
}
|
|
3318
|
-
function qn(e) {
|
|
3319
|
-
let t = {};
|
|
3320
|
-
for (let r of e)
|
|
3321
|
-
Object.assign(t, r(t));
|
|
3322
|
-
return t;
|
|
3323
|
-
}
|
|
3324
|
-
let X = Vn(() => /* @__PURE__ */ new Map(), { PUSH(e, t) {
|
|
3325
|
-
var r;
|
|
3326
|
-
let n = (r = this.get(e)) != null ? r : { doc: e, count: 0, d: Qe(), meta: /* @__PURE__ */ new Set() };
|
|
3327
|
-
return n.count++, n.meta.add(t), this.set(e, n), this;
|
|
3328
|
-
}, POP(e, t) {
|
|
3329
|
-
let r = this.get(e);
|
|
3330
|
-
return r && (r.count--, r.meta.delete(t)), this;
|
|
3331
|
-
}, SCROLL_PREVENT({ doc: e, d: t, meta: r }) {
|
|
3332
|
-
let n = { doc: e, d: t, meta: qn(r) }, o = [Gn(), Wn(), Un()];
|
|
3333
|
-
o.forEach(({ before: l }) => l == null ? void 0 : l(n)), o.forEach(({ after: l }) => l == null ? void 0 : l(n));
|
|
3334
|
-
}, SCROLL_ALLOW({ d: e }) {
|
|
3335
|
-
e.dispose();
|
|
3336
|
-
}, TEARDOWN({ doc: e }) {
|
|
3337
|
-
this.delete(e);
|
|
3338
|
-
} });
|
|
3339
|
-
X.subscribe(() => {
|
|
3340
|
-
let e = X.getSnapshot(), t = /* @__PURE__ */ new Map();
|
|
3341
|
-
for (let [r] of e)
|
|
3342
|
-
t.set(r, r.documentElement.style.overflow);
|
|
3343
|
-
for (let r of e.values()) {
|
|
3344
|
-
let n = t.get(r.doc) === "hidden", o = r.count !== 0;
|
|
3345
|
-
(o && !n || !o && n) && X.dispatch(r.count > 0 ? "SCROLL_PREVENT" : "SCROLL_ALLOW", r), r.count === 0 && X.dispatch("TEARDOWN", r);
|
|
3346
|
-
}
|
|
3347
|
-
});
|
|
3348
|
-
function Kn(e, t, r) {
|
|
3349
|
-
let n = Hn(X), o = h(() => {
|
|
3350
|
-
let l = e.value ? n.value.get(e.value) : void 0;
|
|
3351
|
-
return l ? l.count > 0 : !1;
|
|
3352
|
-
});
|
|
3353
|
-
return Q([e, t], ([l, a], [s], i) => {
|
|
3354
|
-
if (!l || !a)
|
|
3355
|
-
return;
|
|
3356
|
-
X.dispatch("PUSH", l, r);
|
|
3357
|
-
let u = !1;
|
|
3358
|
-
i(() => {
|
|
3359
|
-
u || (X.dispatch("POP", s ?? l, r), u = !0);
|
|
3360
|
-
});
|
|
3361
|
-
}, { immediate: !0 }), o;
|
|
3362
|
-
}
|
|
3363
|
-
function Zn({ defaultContainers: e = [], portals: t, mainTreeNodeRef: r } = {}) {
|
|
3364
|
-
let n = w(null), o = ie(n);
|
|
3365
|
-
function l() {
|
|
3366
|
-
var a;
|
|
3367
|
-
let s = [];
|
|
3368
|
-
for (let i of e)
|
|
3369
|
-
i !== null && (i instanceof HTMLElement ? s.push(i) : "value" in i && i.value instanceof HTMLElement && s.push(i.value));
|
|
3370
|
-
if (t != null && t.value)
|
|
3371
|
-
for (let i of t.value)
|
|
3372
|
-
s.push(i);
|
|
3373
|
-
for (let i of (a = o == null ? void 0 : o.querySelectorAll("html > *, body > *")) != null ? a : [])
|
|
3374
|
-
i !== document.body && i !== document.head && i instanceof HTMLElement && i.id !== "headlessui-portal-root" && (i.contains(M(n)) || s.some((u) => i.contains(u)) || s.push(i));
|
|
3375
|
-
return s;
|
|
3376
|
-
}
|
|
3377
|
-
return { resolveContainers: l, contains(a) {
|
|
3378
|
-
return l().some((s) => s.contains(a));
|
|
3379
|
-
}, mainTreeNodeRef: n, MainTreeNode() {
|
|
3380
|
-
return r != null ? null : P(Ve, { features: Fe.Hidden, ref: n });
|
|
3381
|
-
} };
|
|
3382
|
-
}
|
|
3383
|
-
var Xn = ((e) => (e[e.Open = 0] = "Open", e[e.Closed = 1] = "Closed", e))(Xn || {});
|
|
3384
|
-
let qe = Symbol("DialogContext");
|
|
3385
|
-
function Se(e) {
|
|
3386
|
-
let t = N(qe, null);
|
|
3387
|
-
if (t === null) {
|
|
3388
|
-
let r = new Error(`<${e} /> is missing a parent <Dialog /> component.`);
|
|
3389
|
-
throw Error.captureStackTrace && Error.captureStackTrace(r, Se), r;
|
|
3390
|
-
}
|
|
3391
|
-
return t;
|
|
3392
|
-
}
|
|
3393
|
-
let Pe = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", Yn = C({ name: "Dialog", inheritAttrs: !1, props: { as: { type: [Object, String], default: "div" }, static: { type: Boolean, default: !1 }, unmount: { type: Boolean, default: !0 }, open: { type: [Boolean, String], default: Pe }, initialFocus: { type: Object, default: null }, id: { type: String, default: () => `headlessui-dialog-${se()}` } }, emits: { close: (e) => !0 }, setup(e, { emit: t, attrs: r, slots: n, expose: o }) {
|
|
3394
|
-
var l;
|
|
3395
|
-
let a = w(!1);
|
|
3396
|
-
$(() => {
|
|
3397
|
-
a.value = !0;
|
|
3398
|
-
});
|
|
3399
|
-
let s = w(0), i = vn(), u = h(() => e.open === Pe && i !== null ? (i.value & be.Open) === be.Open : e.open), d = w(null), f = h(() => ie(d));
|
|
3400
|
-
if (o({ el: d, $el: d }), !(e.open !== Pe || i !== null))
|
|
3401
|
-
throw new Error("You forgot to provide an `open` prop to the `Dialog`.");
|
|
3402
|
-
if (typeof u.value != "boolean")
|
|
3403
|
-
throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${u.value === Pe ? void 0 : e.open}`);
|
|
3404
|
-
let c = h(() => a.value && u.value ? 0 : 1), p = h(() => c.value === 0), g = h(() => s.value > 1), v = N(qe, null) !== null, [S, L] = zn(), { resolveContainers: E, mainTreeNodeRef: B, MainTreeNode: H } = Zn({ portals: S, defaultContainers: [h(() => {
|
|
3405
|
-
var y;
|
|
3406
|
-
return (y = V.panelRef.value) != null ? y : d.value;
|
|
3407
|
-
})] }), ke = h(() => g.value ? "parent" : "leaf"), ue = h(() => i !== null ? (i.value & be.Closing) === be.Closing : !1), _e = h(() => v || ue.value ? !1 : p.value), Ce = h(() => {
|
|
3408
|
-
var y, k, T;
|
|
3409
|
-
return (T = Array.from((k = (y = f.value) == null ? void 0 : y.querySelectorAll("body > *")) != null ? k : []).find((A) => A.id === "headlessui-portal-root" ? !1 : A.contains(M(B)) && A instanceof HTMLElement)) != null ? T : null;
|
|
3410
|
-
});
|
|
3411
|
-
st(Ce, _e);
|
|
3412
|
-
let ce = h(() => g.value ? !0 : p.value), de = h(() => {
|
|
3413
|
-
var y, k, T;
|
|
3414
|
-
return (T = Array.from((k = (y = f.value) == null ? void 0 : y.querySelectorAll("[data-headlessui-portal]")) != null ? k : []).find((A) => A.contains(M(B)) && A instanceof HTMLElement)) != null ? T : null;
|
|
3415
|
-
});
|
|
3416
|
-
st(de, ce), Bn({ type: "Dialog", enabled: h(() => c.value === 0), element: d, onUpdate: (y, k) => {
|
|
3417
|
-
if (k === "Dialog")
|
|
3418
|
-
return ee(y, { [Ue.Add]: () => s.value += 1, [Ue.Remove]: () => s.value -= 1 });
|
|
3419
|
-
} });
|
|
3420
|
-
let pe = Nn({ name: "DialogDescription", slot: h(() => ({ open: u.value })) }), b = w(null), V = { titleId: b, panelRef: w(null), dialogState: c, setTitleId(y) {
|
|
3421
|
-
b.value !== y && (b.value = y);
|
|
3422
|
-
}, close() {
|
|
3423
|
-
t("close", !1);
|
|
3424
|
-
} };
|
|
3425
|
-
le(qe, V);
|
|
3426
|
-
let re = h(() => !(!p.value || g.value));
|
|
3427
|
-
Cn(E, (y, k) => {
|
|
3428
|
-
V.close(), ct(() => k == null ? void 0 : k.focus());
|
|
3429
|
-
}, re);
|
|
3430
|
-
let Ee = h(() => !(g.value || c.value !== 0));
|
|
3431
|
-
Mt((l = f.value) == null ? void 0 : l.defaultView, "keydown", (y) => {
|
|
3432
|
-
Ee.value && (y.defaultPrevented || y.key === kt.Escape && (y.preventDefault(), y.stopPropagation(), V.close()));
|
|
3433
|
-
});
|
|
3434
|
-
let ne = h(() => !(ue.value || c.value !== 0 || v));
|
|
3435
|
-
return Kn(f, ne, (y) => {
|
|
3436
|
-
var k;
|
|
3437
|
-
return { containers: [...(k = y.containers) != null ? k : [], E] };
|
|
3438
|
-
}), te((y) => {
|
|
3439
|
-
if (c.value !== 0)
|
|
3440
|
-
return;
|
|
3441
|
-
let k = M(d);
|
|
3442
|
-
if (!k)
|
|
3443
|
-
return;
|
|
3444
|
-
let T = new ResizeObserver((A) => {
|
|
3445
|
-
for (let D of A) {
|
|
3446
|
-
let F = D.target.getBoundingClientRect();
|
|
3447
|
-
F.x === 0 && F.y === 0 && F.width === 0 && F.height === 0 && V.close();
|
|
3448
|
-
}
|
|
3449
|
-
});
|
|
3450
|
-
T.observe(k), y(() => T.disconnect());
|
|
3451
|
-
}), () => {
|
|
3452
|
-
let { id: y, open: k, initialFocus: T, ...A } = e, D = { ...r, ref: d, id: y, role: "dialog", "aria-modal": c.value === 0 ? !0 : void 0, "aria-labelledby": b.value, "aria-describedby": pe.value }, F = { open: c.value === 0 };
|
|
3453
|
-
return P(We, { force: !0 }, () => [P(Ot, () => P(Rn, { target: d.value }, () => P(We, { force: !1 }, () => P(ge, { initialFocus: T, containers: E, features: p.value ? ee(ke.value, { parent: ge.features.RestoreFocus, leaf: ge.features.All & ~ge.features.FocusLock }) : ge.features.None }, () => P(L, {}, () => R({ ourProps: D, theirProps: { ...A, ...r }, slot: F, attrs: r, slots: n, visible: c.value === 0, features: Ie.RenderStrategy | Ie.Static, name: "Dialog" })))))), P(H)]);
|
|
3454
|
-
};
|
|
3455
|
-
} });
|
|
3456
|
-
C({ name: "DialogOverlay", props: { as: { type: [Object, String], default: "div" }, id: { type: String, default: () => `headlessui-dialog-overlay-${se()}` } }, setup(e, { attrs: t, slots: r }) {
|
|
3457
|
-
let n = Se("DialogOverlay");
|
|
3458
|
-
function o(l) {
|
|
3459
|
-
l.target === l.currentTarget && (l.preventDefault(), l.stopPropagation(), n.close());
|
|
3460
|
-
}
|
|
3461
|
-
return () => {
|
|
3462
|
-
let { id: l, ...a } = e;
|
|
3463
|
-
return R({ ourProps: { id: l, "aria-hidden": !0, onClick: o }, theirProps: a, slot: { open: n.dialogState.value === 0 }, attrs: t, slots: r, name: "DialogOverlay" });
|
|
3464
|
-
};
|
|
3465
|
-
} });
|
|
3466
|
-
C({ name: "DialogBackdrop", props: { as: { type: [Object, String], default: "div" }, id: { type: String, default: () => `headlessui-dialog-backdrop-${se()}` } }, inheritAttrs: !1, setup(e, { attrs: t, slots: r, expose: n }) {
|
|
3467
|
-
let o = Se("DialogBackdrop"), l = w(null);
|
|
3468
|
-
return n({ el: l, $el: l }), $(() => {
|
|
3469
|
-
if (o.panelRef.value === null)
|
|
3470
|
-
throw new Error("A <DialogBackdrop /> component is being used, but a <DialogPanel /> component is missing.");
|
|
3471
|
-
}), () => {
|
|
3472
|
-
let { id: a, ...s } = e, i = { id: a, ref: l, "aria-hidden": !0 };
|
|
3473
|
-
return P(We, { force: !0 }, () => P(Ot, () => R({ ourProps: i, theirProps: { ...t, ...s }, slot: { open: o.dialogState.value === 0 }, attrs: t, slots: r, name: "DialogBackdrop" })));
|
|
3474
|
-
};
|
|
3475
|
-
} });
|
|
3476
|
-
let Jn = C({ name: "DialogPanel", props: { as: { type: [Object, String], default: "div" }, id: { type: String, default: () => `headlessui-dialog-panel-${se()}` } }, setup(e, { attrs: t, slots: r, expose: n }) {
|
|
3477
|
-
let o = Se("DialogPanel");
|
|
3478
|
-
n({ el: o.panelRef, $el: o.panelRef });
|
|
3479
|
-
function l(a) {
|
|
3480
|
-
a.stopPropagation();
|
|
3481
|
-
}
|
|
3482
|
-
return () => {
|
|
3483
|
-
let { id: a, ...s } = e, i = { id: a, ref: o.panelRef, onClick: l };
|
|
3484
|
-
return R({ ourProps: i, theirProps: s, slot: { open: o.dialogState.value === 0 }, attrs: t, slots: r, name: "DialogPanel" });
|
|
3485
|
-
};
|
|
3486
|
-
} }), Qn = C({ name: "DialogTitle", props: { as: { type: [Object, String], default: "h2" }, id: { type: String, default: () => `headlessui-dialog-title-${se()}` } }, setup(e, { attrs: t, slots: r }) {
|
|
3487
|
-
let n = Se("DialogTitle");
|
|
3488
|
-
return $(() => {
|
|
3489
|
-
n.setTitleId(e.id), I(() => n.setTitleId(null));
|
|
3490
|
-
}), () => {
|
|
3491
|
-
let { id: o, ...l } = e;
|
|
3492
|
-
return R({ ourProps: { id: o }, theirProps: l, slot: { open: n.dialogState.value === 0 }, attrs: t, slots: r, name: "DialogTitle" });
|
|
3493
|
-
};
|
|
3494
|
-
} }), eo = In;
|
|
3495
|
-
const to = { class: "scalar-modal-layout fixed left-0 top-0 z-[1001] h-[100dvh] w-[100dvw] bg-backdrop p-5 opacity-0" }, xo = () => Ke({
|
|
284
|
+
}), $e = { class: "scalar-modal-layout fixed left-0 top-0 z-[1001] h-[100dvh] w-[100dvw] bg-backdrop p-5 opacity-0" }, Ge = () => T({
|
|
3496
285
|
open: !1,
|
|
3497
286
|
show() {
|
|
3498
287
|
this.open = !0;
|
|
@@ -3500,7 +289,7 @@ const to = { class: "scalar-modal-layout fixed left-0 top-0 z-[1001] h-[100dvh]
|
|
|
3500
289
|
hide() {
|
|
3501
290
|
this.open = !1;
|
|
3502
291
|
}
|
|
3503
|
-
}),
|
|
292
|
+
}), Ie = /* @__PURE__ */ p({
|
|
3504
293
|
__name: "ScalarModal",
|
|
3505
294
|
props: {
|
|
3506
295
|
state: {},
|
|
@@ -3510,8 +299,8 @@ const to = { class: "scalar-modal-layout fixed left-0 top-0 z-[1001] h-[100dvh]
|
|
|
3510
299
|
size: { default: "md" },
|
|
3511
300
|
variant: {}
|
|
3512
301
|
},
|
|
3513
|
-
setup(
|
|
3514
|
-
const
|
|
302
|
+
setup(a) {
|
|
303
|
+
const e = B({
|
|
3515
304
|
base: [
|
|
3516
305
|
"scalar-modal",
|
|
3517
306
|
"col relative mx-auto mb-0 mt-20 w-full rounded-lg bg-back-2 text-left leading-snug text-fore-1 opacity-0"
|
|
@@ -3529,38 +318,38 @@ const to = { class: "scalar-modal-layout fixed left-0 top-0 z-[1001] h-[100dvh]
|
|
|
3529
318
|
}
|
|
3530
319
|
}
|
|
3531
320
|
});
|
|
3532
|
-
return (
|
|
3533
|
-
open:
|
|
3534
|
-
onClose: n[0] || (n[0] = (o) =>
|
|
321
|
+
return (t, n) => (s(), w(l(Q), {
|
|
322
|
+
open: t.state.open,
|
|
323
|
+
onClose: n[0] || (n[0] = (o) => t.state.hide())
|
|
3535
324
|
}, {
|
|
3536
|
-
default:
|
|
3537
|
-
|
|
3538
|
-
|
|
3539
|
-
class:
|
|
3540
|
-
style:
|
|
325
|
+
default: f(() => [
|
|
326
|
+
b("div", $e, [
|
|
327
|
+
y(l(X), {
|
|
328
|
+
class: i(l(e)({ size: t.size, variant: t.variant })),
|
|
329
|
+
style: V({ maxWidth: t.maxWidth })
|
|
3541
330
|
}, {
|
|
3542
|
-
default:
|
|
3543
|
-
|
|
331
|
+
default: f(() => [
|
|
332
|
+
t.title ? (s(), w(l(Y), {
|
|
3544
333
|
key: 0,
|
|
3545
|
-
class:
|
|
334
|
+
class: i(["scalar-modal-header font-semiBold m-0 rounded-lg px-6 py-3 text-left text-xs text-fore-1", { "pb-0 pt-6": t.variant === "history" }])
|
|
3546
335
|
}, {
|
|
3547
|
-
default:
|
|
3548
|
-
|
|
336
|
+
default: f(() => [
|
|
337
|
+
E(C(t.title), 1)
|
|
3549
338
|
]),
|
|
3550
339
|
_: 1
|
|
3551
|
-
}, 8, ["class"])) :
|
|
3552
|
-
|
|
3553
|
-
class:
|
|
340
|
+
}, 8, ["class"])) : m("", !0),
|
|
341
|
+
y(l(ee), {
|
|
342
|
+
class: i([
|
|
3554
343
|
"scalar-modal-body relative max-h-[calc(100dvh-240px)] overflow-y-auto rounded-lg bg-back-1 py-6 pb-4 pt-3",
|
|
3555
|
-
|
|
3556
|
-
|
|
3557
|
-
|
|
3558
|
-
|
|
344
|
+
l(g)(
|
|
345
|
+
t.bodyClass,
|
|
346
|
+
t.variant === "history" && "pt-3",
|
|
347
|
+
t.variant === "search" && "col max-h-[440px] overflow-hidden p-0"
|
|
3559
348
|
)
|
|
3560
349
|
])
|
|
3561
350
|
}, {
|
|
3562
|
-
default:
|
|
3563
|
-
|
|
351
|
+
default: f(() => [
|
|
352
|
+
x(t.$slots, "default", {}, void 0, !0)
|
|
3564
353
|
]),
|
|
3565
354
|
_: 3
|
|
3566
355
|
}, 8, ["class"])
|
|
@@ -3573,72 +362,7 @@ const to = { class: "scalar-modal-layout fixed left-0 top-0 z-[1001] h-[100dvh]
|
|
|
3573
362
|
}, 8, ["open"]));
|
|
3574
363
|
}
|
|
3575
364
|
});
|
|
3576
|
-
const
|
|
3577
|
-
function oo(e) {
|
|
3578
|
-
return Gt() ? (Ut(e), !0) : !1;
|
|
3579
|
-
}
|
|
3580
|
-
function Rt(e) {
|
|
3581
|
-
return typeof e == "function" ? e() : _(e);
|
|
3582
|
-
}
|
|
3583
|
-
const lo = typeof window < "u" && typeof document < "u";
|
|
3584
|
-
function it(e) {
|
|
3585
|
-
var t;
|
|
3586
|
-
const r = Rt(e);
|
|
3587
|
-
return (t = r == null ? void 0 : r.$el) != null ? t : r;
|
|
3588
|
-
}
|
|
3589
|
-
const ao = lo ? window : void 0;
|
|
3590
|
-
function so() {
|
|
3591
|
-
const e = w(!1);
|
|
3592
|
-
return qt() && $(() => {
|
|
3593
|
-
e.value = !0;
|
|
3594
|
-
}), e;
|
|
3595
|
-
}
|
|
3596
|
-
function io(e) {
|
|
3597
|
-
const t = so();
|
|
3598
|
-
return h(() => (t.value, !!e()));
|
|
3599
|
-
}
|
|
3600
|
-
function uo(e, t, r = {}) {
|
|
3601
|
-
const { window: n = ao, ...o } = r;
|
|
3602
|
-
let l;
|
|
3603
|
-
const a = io(() => n && "ResizeObserver" in n), s = () => {
|
|
3604
|
-
l && (l.disconnect(), l = void 0);
|
|
3605
|
-
}, i = h(
|
|
3606
|
-
() => Array.isArray(e) ? e.map((f) => it(f)) : [it(e)]
|
|
3607
|
-
), u = Q(
|
|
3608
|
-
i,
|
|
3609
|
-
(f) => {
|
|
3610
|
-
if (s(), a.value && n) {
|
|
3611
|
-
l = new ResizeObserver(t);
|
|
3612
|
-
for (const c of f)
|
|
3613
|
-
c && l.observe(c, o);
|
|
3614
|
-
}
|
|
3615
|
-
},
|
|
3616
|
-
{ immediate: !0, flush: "post", deep: !0 }
|
|
3617
|
-
), d = () => {
|
|
3618
|
-
s(), u();
|
|
3619
|
-
};
|
|
3620
|
-
return oo(d), {
|
|
3621
|
-
isSupported: a,
|
|
3622
|
-
stop: d
|
|
3623
|
-
};
|
|
3624
|
-
}
|
|
3625
|
-
function co(e) {
|
|
3626
|
-
const t = w(e == null ? void 0 : e.element), r = w(e == null ? void 0 : e.input), n = w(1);
|
|
3627
|
-
function o() {
|
|
3628
|
-
var l, a;
|
|
3629
|
-
if (!t.value)
|
|
3630
|
-
return;
|
|
3631
|
-
let s = "";
|
|
3632
|
-
t.value.style.height = "1px", n.value = (l = t.value) == null ? void 0 : l.scrollHeight, e != null && e.styleTarget ? Rt(e.styleTarget).style.height = `${n.value}px` : s = `${n.value}px`, t.value.style.height = s, (a = e == null ? void 0 : e.onResize) == null || a.call(e);
|
|
3633
|
-
}
|
|
3634
|
-
return Q([r, t], () => ct(o), { immediate: !0 }), uo(t, () => o()), e != null && e.watch && Q(e.watch, o, { immediate: !0, deep: !0 }), {
|
|
3635
|
-
textarea: t,
|
|
3636
|
-
input: r,
|
|
3637
|
-
triggerResize: o
|
|
3638
|
-
};
|
|
3639
|
-
}
|
|
3640
|
-
let po = (e = 21) => crypto.getRandomValues(new Uint8Array(e)).reduce((t, r) => (r &= 63, r < 36 ? t += r.toString(36) : r < 62 ? t += (r - 26).toString(36).toUpperCase() : r > 62 ? t += "-" : t += "_", t), "");
|
|
3641
|
-
const fo = { class: "scalar-input-container relative" }, vo = ["for"], go = { class: "icon-slot cursor-pointer text-ghost hover:text-fore-1 !empty:flex !empty:w-7 !empty:items-center !empty:pr-3" }, mo = /* @__PURE__ */ C({
|
|
365
|
+
const De = /* @__PURE__ */ z(Ie, [["__scopeId", "data-v-4ee157b1"]]), Oe = { class: "scalar-input-container relative" }, Ae = ["for"], je = { class: "icon-slot cursor-pointer text-ghost hover:text-fore-1 !empty:flex !empty:w-7 !empty:items-center !empty:pr-3" }, He = /* @__PURE__ */ p({
|
|
3642
366
|
__name: "ScalarTextField",
|
|
3643
367
|
props: {
|
|
3644
368
|
modelValue: {},
|
|
@@ -3654,8 +378,8 @@ const fo = { class: "scalar-input-container relative" }, vo = ["for"], go = { cl
|
|
|
3654
378
|
disableTrim: { type: Boolean, default: !1 }
|
|
3655
379
|
},
|
|
3656
380
|
emits: ["submit", "update:modelValue"],
|
|
3657
|
-
setup(
|
|
3658
|
-
const
|
|
381
|
+
setup(a, { emit: e }) {
|
|
382
|
+
const t = a, n = B({
|
|
3659
383
|
base: "scalar-input-wrapper relative flex items-center rounded border border-border",
|
|
3660
384
|
variants: {
|
|
3661
385
|
focus: {
|
|
@@ -3663,95 +387,153 @@ const fo = { class: "scalar-input-container relative" }, vo = ["for"], go = { cl
|
|
|
3663
387
|
},
|
|
3664
388
|
error: { true: "scalar-input-wrapper-error border-error" }
|
|
3665
389
|
}
|
|
3666
|
-
}), o =
|
|
3667
|
-
let
|
|
3668
|
-
if (
|
|
3669
|
-
const { triggerResize:
|
|
3670
|
-
element:
|
|
3671
|
-
input:
|
|
390
|
+
}), o = R(), d = o.id || `id-${ae()}`, v = L(), h = L(!1);
|
|
391
|
+
let _;
|
|
392
|
+
if (t.isMultiline) {
|
|
393
|
+
const { triggerResize: r } = te({
|
|
394
|
+
element: v,
|
|
395
|
+
input: t.modelValue
|
|
3672
396
|
});
|
|
3673
|
-
|
|
397
|
+
_ = r;
|
|
3674
398
|
}
|
|
3675
|
-
function
|
|
3676
|
-
const
|
|
3677
|
-
|
|
399
|
+
function O(r) {
|
|
400
|
+
const c = r.target.value;
|
|
401
|
+
t.isMultiline && _(), t.handleFieldChange ? t.handleFieldChange(c) : e("update:modelValue", c);
|
|
3678
402
|
}
|
|
3679
|
-
function
|
|
3680
|
-
const
|
|
3681
|
-
|
|
403
|
+
function M(r) {
|
|
404
|
+
const c = r.target, k = t.disableTrim || t.isMultiline ? c.value : c.value.trim();
|
|
405
|
+
t.handleFieldSubmit ? t.handleFieldSubmit(k) : e("submit", k);
|
|
3682
406
|
}
|
|
3683
|
-
function
|
|
3684
|
-
|
|
407
|
+
function A(r) {
|
|
408
|
+
h.value = !1, t.emitOnBlur && t.modelValue && M(r);
|
|
3685
409
|
}
|
|
3686
|
-
return
|
|
3687
|
-
var
|
|
3688
|
-
Object.prototype.hasOwnProperty.call(o, "autofocus") && ((
|
|
3689
|
-
}), (
|
|
3690
|
-
|
|
3691
|
-
class:
|
|
410
|
+
return N(() => {
|
|
411
|
+
var r;
|
|
412
|
+
Object.prototype.hasOwnProperty.call(o, "autofocus") && ((r = v.value) == null || r.focus());
|
|
413
|
+
}), (r, c) => (s(), u("div", Oe, [
|
|
414
|
+
b("div", {
|
|
415
|
+
class: i(l(n)({ error: r.error, focus: h.value }))
|
|
3692
416
|
}, [
|
|
3693
|
-
|
|
3694
|
-
key: 0,
|
|
3695
|
-
class: j(
|
|
3696
|
-
_(oe)(
|
|
3697
|
-
"scalar-input-label pointer-events-none absolute left-0 top-0 mx-2 my-3 px-1 text-xs",
|
|
3698
|
-
"shadow-current peer z-10 origin-top-left rounded text-fore-3 transition-transform"
|
|
3699
|
-
)
|
|
3700
|
-
),
|
|
3701
|
-
for: _(l),
|
|
3702
|
-
style: dt({
|
|
3703
|
-
"box-shadow": `0 0 4px 4px ${c.labelShadowColor}`,
|
|
3704
|
-
"background-color": c.labelShadowColor
|
|
3705
|
-
})
|
|
3706
|
-
}, De(c.label), 15, vo)) : J("", !0),
|
|
3707
|
-
(O(), xe(Zt(c.isMultiline ? "textarea" : "input"), Xt({ id: _(l) }, c.$attrs, {
|
|
417
|
+
(s(), w(K(r.isMultiline ? "textarea" : "input"), U({ id: l(d) }, r.$attrs, {
|
|
3708
418
|
ref_key: "input",
|
|
3709
|
-
ref:
|
|
419
|
+
ref: v,
|
|
3710
420
|
class: [
|
|
3711
421
|
"scalar-input",
|
|
3712
|
-
|
|
3713
|
-
{ "min-h-[77px]":
|
|
422
|
+
l(g)(
|
|
423
|
+
{ "min-h-[77px]": r.isMultiline },
|
|
3714
424
|
"z-10 w-full resize-none appearance-none border-0 bg-transparent p-3 text-sm text-fore-1",
|
|
3715
|
-
"outline-none transition-opacity
|
|
425
|
+
"outline-none transition-opacity"
|
|
3716
426
|
)
|
|
3717
427
|
],
|
|
3718
|
-
placeholder:
|
|
3719
|
-
value:
|
|
3720
|
-
onBlur:
|
|
3721
|
-
onFocus:
|
|
3722
|
-
onInput:
|
|
3723
|
-
onKeyup:
|
|
428
|
+
placeholder: r.placeholder,
|
|
429
|
+
value: r.modelValue,
|
|
430
|
+
onBlur: A,
|
|
431
|
+
onFocus: c[0] || (c[0] = (k) => h.value = !0),
|
|
432
|
+
onInput: O,
|
|
433
|
+
onKeyup: q(M, ["enter"])
|
|
3724
434
|
}), null, 16, ["id", "class", "placeholder", "value", "onKeyup"])),
|
|
3725
|
-
|
|
3726
|
-
|
|
435
|
+
r.label ? (s(), u("label", {
|
|
436
|
+
key: 0,
|
|
437
|
+
class: i(
|
|
438
|
+
l(g)(
|
|
439
|
+
"scalar-input-label pointer-events-none absolute left-0 top-0 mx-2 my-3 px-1 text-xs",
|
|
440
|
+
"shadow-current z-10 origin-top-left rounded text-fore-3 transition-transform"
|
|
441
|
+
)
|
|
442
|
+
),
|
|
443
|
+
for: l(d),
|
|
444
|
+
style: V({
|
|
445
|
+
"box-shadow": `0 0 4px 4px ${r.labelShadowColor}`,
|
|
446
|
+
"background-color": r.labelShadowColor
|
|
447
|
+
})
|
|
448
|
+
}, C(r.label), 15, Ae)) : m("", !0),
|
|
449
|
+
b("div", je, [
|
|
450
|
+
x(r.$slots, "default", {}, void 0, !0)
|
|
3727
451
|
])
|
|
3728
452
|
], 2),
|
|
3729
|
-
|
|
3730
|
-
class:
|
|
3731
|
-
|
|
453
|
+
b("span", {
|
|
454
|
+
class: i(
|
|
455
|
+
l(g)(
|
|
3732
456
|
"helper-text mt-1.5 flex items-center text-xs text-error before:rounded-full before:font-black",
|
|
3733
457
|
"before:mr-1.5 before:block before:h-4 before:w-4 before:text-center before:text-xxs before:leading-4",
|
|
3734
458
|
"before:bg-error before:text-white before:content-['!'] empty:hidden"
|
|
3735
459
|
)
|
|
3736
460
|
)
|
|
3737
|
-
},
|
|
461
|
+
}, C(r.helperText), 3)
|
|
3738
462
|
]));
|
|
3739
463
|
}
|
|
3740
464
|
});
|
|
3741
|
-
const
|
|
3742
|
-
const
|
|
3743
|
-
|
|
3744
|
-
|
|
465
|
+
const Pe = /* @__PURE__ */ z(He, [["__scopeId", "data-v-8e18f760"]]);
|
|
466
|
+
const Je = {
|
|
467
|
+
boxShadow: {
|
|
468
|
+
DEFAULT: "var(--theme-shadow-1, var(--default-theme-shadow-1))",
|
|
469
|
+
md: "var(--theme-shadow-2, var(--default-theme-shadow-2))",
|
|
470
|
+
sm: "rgba(0, 0, 0, 0.09) 0px 1px 4px",
|
|
471
|
+
none: "0 0 #0000"
|
|
472
|
+
},
|
|
473
|
+
colors: {
|
|
474
|
+
"fore-1": "var(--theme-color-1, var(--default-theme-color-1))",
|
|
475
|
+
"fore-2": "var(--theme-color-2, var(--default-theme-color-2))",
|
|
476
|
+
"fore-3": "var(--theme-color-3, var(--default-theme-color-3))",
|
|
477
|
+
accent: "var(--theme-color-accent, var(--default-theme-color-accent))",
|
|
478
|
+
"back-1": "var(--theme-background-1, var(--default-theme-background-1))",
|
|
479
|
+
"back-2": "var(--theme-background-2, var(--default-theme-background-2))",
|
|
480
|
+
"back-3": "var(--theme-background-3, var(--default-theme-background-3))",
|
|
481
|
+
"back-accent": "var(--theme-background-accent, var(--default-theme-background-accent))",
|
|
482
|
+
backdrop: "rgba(0, 0, 0, 0.44)",
|
|
483
|
+
border: "var(--theme-border-color, var(--default-theme-border-color))",
|
|
484
|
+
"back-btn-1": "var(--theme-button-1, var(--default-theme-button-1))",
|
|
485
|
+
"fore-btn-1": "var(--theme-button-1-color, var(--default-theme-button-1-color))",
|
|
486
|
+
"hover-btn-1": "var(--theme-button-1-hover, var(--default-theme-button-1-hover))",
|
|
487
|
+
white: "#FFF",
|
|
488
|
+
green: "var(--theme-color-green, var(--default-theme-color-green))",
|
|
489
|
+
red: "var(--theme-color-red, var(--default-theme-color-red))",
|
|
490
|
+
yellow: "var(--theme-color-yellow, var(--default-theme-color-yellow))",
|
|
491
|
+
blue: "var(--theme-color-blue, var(--default-theme-color-blue))",
|
|
492
|
+
orange: "var(--theme-color-orange, var(--default-theme-color-orange))",
|
|
493
|
+
purple: "var(--theme-color-purple, var(--default-theme-color-purple))",
|
|
494
|
+
error: "var(--theme-error-color, var(--default-theme-color-red))",
|
|
495
|
+
ghost: "var(--theme-color-ghost, var(--default-theme-color-ghost))",
|
|
496
|
+
transparent: "transparent"
|
|
497
|
+
},
|
|
498
|
+
fontSize: {
|
|
499
|
+
xxs: "var(--theme-micro, var(--default-theme-micro, var(--theme-font-size-5, var(--default-theme-font-size-5))))",
|
|
500
|
+
xs: "var(--theme-mini, var(--default-theme-mini, var(--theme-font-size-4, var(--default-theme-font-size-4))))",
|
|
501
|
+
sm: "var(--theme-small, var(--default-theme-small, var(--theme-font-size-3, var(--default-theme-font-size-3))))",
|
|
502
|
+
base: "var(--theme-paragraph, var(--default-theme-paragraph, var(--theme-font-size-2, var(--default-theme-font-size-2))))",
|
|
503
|
+
lg: "var(--theme-font-size-1, var(--default-theme-font-size-1))"
|
|
504
|
+
}
|
|
505
|
+
}, Qe = {
|
|
506
|
+
borderRadius: {
|
|
507
|
+
DEFAULT: "var(--theme-radius, var(--default-theme-radius))",
|
|
508
|
+
md: "var(--theme-radius, var(--default-theme-radius))",
|
|
509
|
+
lg: "var(--theme-radius-lg, var(--default-theme-radius-lg))",
|
|
510
|
+
xl: "var(--theme-radius-xl, var(--default-theme-radius-xl))"
|
|
511
|
+
},
|
|
512
|
+
fontWeight: {
|
|
513
|
+
medium: "var(--theme-font-medium, var(--default-theme-font-medium))",
|
|
514
|
+
bold: "var(-theme-font-bold, var(--default-theme-font-bold))"
|
|
515
|
+
},
|
|
516
|
+
maxWidth: {
|
|
517
|
+
"screen-xs": "480px",
|
|
518
|
+
"screen-sm": "540px",
|
|
519
|
+
"screen-md": "640px",
|
|
520
|
+
"screen-lg": "800px"
|
|
521
|
+
}
|
|
522
|
+
}, Xe = {
|
|
523
|
+
install: (a) => {
|
|
524
|
+
a.component("ScalarButton", I), a.component("ScalarIcon", D), a.component("ScalarIconButton", Ve), a.component("ScalarLoading", $), a.component("ScalarModal", De), a.component("ScalarTextField", Pe);
|
|
3745
525
|
}
|
|
3746
526
|
};
|
|
3747
527
|
export {
|
|
3748
|
-
|
|
3749
|
-
|
|
3750
|
-
|
|
3751
|
-
|
|
3752
|
-
|
|
3753
|
-
|
|
3754
|
-
|
|
3755
|
-
|
|
3756
|
-
|
|
528
|
+
I as ScalarButton,
|
|
529
|
+
D as ScalarIcon,
|
|
530
|
+
Ve as ScalarIconButton,
|
|
531
|
+
$ as ScalarLoading,
|
|
532
|
+
De as ScalarModal,
|
|
533
|
+
Pe as ScalarTextField,
|
|
534
|
+
Xe as default,
|
|
535
|
+
Qe as extend,
|
|
536
|
+
Je as theme,
|
|
537
|
+
qe as useLoadingState,
|
|
538
|
+
Ge as useModal
|
|
3757
539
|
};
|