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