UNPKG

@konstructio/ui

Version:

A set of reusable and customizable React components built for konstruct.io

1,862 lines (1,861 loc) 73.7 kB
import { c as Pe } from "../clsx-OuTLNxxd.js"; const Ge = (e, t) => { const o = new Array(e.length + t.length); for (let r = 0; r < e.length; r++) o[r] = e[r]; for (let r = 0; r < t.length; r++) o[e.length + r] = t[r]; return o; }, Te = (e, t) => ({ classGroupId: e, validator: t }), we = (e = /* @__PURE__ */ new Map(), t = null, o) => ({ nextPart: e, validators: t, classGroupId: o }), K = "-", ue = [], Le = "arbitrary..", Oe = (e) => { const t = Ee(e), { conflictingClassGroups: o, conflictingClassGroupModifiers: r } = e; return { getClassGroupId: (a) => { if (a.startsWith("[") && a.endsWith("]")) return je(a); const u = a.split(K), c = u[0] === "" && u.length > 1 ? 1 : 0; return xe(u, c, t); }, getConflictingClassGroupIds: (a, u) => { if (u) { const c = r[a], f = o[a]; return c ? f ? Ge(f, c) : c : f || ue; } return o[a] || ue; } }; }, xe = (e, t, o) => { if (e.length - t === 0) return o.classGroupId; const i = e[t], d = o.nextPart.get(i); if (d) { const f = xe(e, t + 1, d); if (f) return f; } const a = o.validators; if (a === null) return; const u = t === 0 ? e.join(K) : e.slice(t).join(K), c = a.length; for (let f = 0; f < c; f++) { const h = a[f]; if (h.validator(u)) return h.classGroupId; } }, je = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => { const t = e.slice(1, -1), o = t.indexOf(":"), r = t.slice(0, o); return r ? Le + r : void 0; })(), Ee = (e) => { const { theme: t, classGroups: o } = e; return Ne(o, t); }, Ne = (e, t) => { const o = we(); for (const r in e) { const i = e[r]; se(i, o, r, t); } return o; }, se = (e, t, o, r) => { const i = e.length; for (let d = 0; d < i; d++) { const a = e[d]; Ve(a, t, o, r); } }, Ve = (e, t, o, r) => { if (typeof e == "string") { Fe(e, t, o); return; } if (typeof e == "function") { _e(e, t, o, r); return; } Be(e, t, o, r); }, Fe = (e, t, o) => { const r = e === "" ? t : ke(t, e); r.classGroupId = o; }, _e = (e, t, o, r) => { if (We(e)) { se(e(r), t, o, r); return; } t.validators === null && (t.validators = []), t.validators.push(Te(o, e)); }, Be = (e, t, o, r) => { const i = Object.entries(e), d = i.length; for (let a = 0; a < d; a++) { const [u, c] = i[a]; se(c, ke(t, u), o, r); } }, ke = (e, t) => { let o = e; const r = t.split(K), i = r.length; for (let d = 0; d < i; d++) { const a = r[d]; let u = o.nextPart.get(a); u || (u = we(), o.nextPart.set(a, u)), o = u; } return o; }, We = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, $e = (e) => { if (e < 1) return { get: () => { }, set: () => { } }; let t = 0, o = /* @__PURE__ */ Object.create(null), r = /* @__PURE__ */ Object.create(null); const i = (d, a) => { o[d] = a, t++, t > e && (t = 0, r = o, o = /* @__PURE__ */ Object.create(null)); }; return { get(d) { let a = o[d]; if (a !== void 0) return a; if ((a = r[d]) !== void 0) return i(d, a), a; }, set(d, a) { d in o ? o[d] = a : i(d, a); } }; }, te = "!", fe = ":", Ue = [], be = (e, t, o, r, i) => ({ modifiers: e, hasImportantModifier: t, baseClassName: o, maybePostfixModifierPosition: r, isExternal: i }), De = (e) => { const { prefix: t, experimentalParseClassName: o } = e; let r = (i) => { const d = []; let a = 0, u = 0, c = 0, f; const h = i.length; for (let v = 0; v < h; v++) { const x = i[v]; if (a === 0 && u === 0) { if (x === fe) { d.push(i.slice(c, v)), c = v + 1; continue; } if (x === "/") { f = v; continue; } } x === "[" ? a++ : x === "]" ? a-- : x === "(" ? u++ : x === ")" && u--; } const y = d.length === 0 ? i : i.slice(c); let z = y, I = !1; y.endsWith(te) ? (z = y.slice(0, -1), I = !0) : ( /** * In Tailwind CSS v3 the important modifier was at the start of the base class name. This is still supported for legacy reasons. * @see https://github.com/dcastil/tailwind-merge/issues/513#issuecomment-2614029864 */ y.startsWith(te) && (z = y.slice(1), I = !0) ); const M = f && f > c ? f - c : void 0; return be(d, I, z, M); }; if (t) { const i = t + fe, d = r; r = (a) => a.startsWith(i) ? d(a.slice(i.length)) : be(Ue, !1, a, void 0, !0); } if (o) { const i = r; r = (d) => o({ className: d, parseClassName: i }); } return r; }, Ye = (e) => { const t = /* @__PURE__ */ new Map(); return e.orderSensitiveModifiers.forEach((o, r) => { t.set(o, 1e6 + r); }), (o) => { const r = []; let i = []; for (let d = 0; d < o.length; d++) { const a = o[d], u = a[0] === "[", c = t.has(a); u || c ? (i.length > 0 && (i.sort(), r.push(...i), i = []), r.push(a)) : i.push(a); } return i.length > 0 && (i.sort(), r.push(...i)), r; }; }, qe = (e) => ({ cache: $e(e.cacheSize), parseClassName: De(e), sortModifiers: Ye(e), ...Oe(e) }), Xe = /\s+/, Je = (e, t) => { const { parseClassName: o, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: d } = t, a = [], u = e.trim().split(Xe); let c = ""; for (let f = u.length - 1; f >= 0; f -= 1) { const h = u[f], { isExternal: y, modifiers: z, hasImportantModifier: I, baseClassName: M, maybePostfixModifierPosition: v } = o(h); if (y) { c = h + (c.length > 0 ? " " + c : c); continue; } let x = !!v, P = r(x ? M.substring(0, v) : M); if (!P) { if (!x) { c = h + (c.length > 0 ? " " + c : c); continue; } if (P = r(M), !P) { c = h + (c.length > 0 ? " " + c : c); continue; } x = !1; } const $ = z.length === 0 ? "" : z.length === 1 ? z[0] : d(z).join(":"), _ = I ? $ + te : $, O = _ + P; if (a.indexOf(O) > -1) continue; a.push(O); const j = i(P, x); for (let G = 0; G < j.length; ++G) { const B = j[G]; a.push(_ + B); } c = h + (c.length > 0 ? " " + c : c); } return c; }, He = (...e) => { let t = 0, o, r, i = ""; for (; t < e.length; ) (o = e[t++]) && (r = ye(o)) && (i && (i += " "), i += r); return i; }, ye = (e) => { if (typeof e == "string") return e; let t, o = ""; for (let r = 0; r < e.length; r++) e[r] && (t = ye(e[r])) && (o && (o += " "), o += t); return o; }, Ke = (e, ...t) => { let o, r, i, d; const a = (c) => { const f = t.reduce((h, y) => y(h), e()); return o = qe(f), r = o.cache.get, i = o.cache.set, d = u, u(c); }, u = (c) => { const f = r(c); if (f) return f; const h = Je(c, o); return i(c, h), h; }; return d = a, (...c) => d(He(...c)); }, Qe = [], b = (e) => { const t = (o) => o[e] || Qe; return t.isThemeGetter = !0, t; }, ve = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, ze = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Ze = /^\d+\/\d+$/, eo = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, oo = /\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$/, ro = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, to = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, so = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, N = (e) => Ze.test(e), p = (e) => !!e && !Number.isNaN(Number(e)), R = (e) => !!e && Number.isInteger(Number(e)), oe = (e) => e.endsWith("%") && p(e.slice(0, -1)), S = (e) => eo.test(e), no = () => !0, ao = (e) => ( // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths. // For example, `hsl(0 0% 0%)` would be classified as a length without this check. // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough. oo.test(e) && !ro.test(e) ), Ce = () => !1, io = (e) => to.test(e), lo = (e) => so.test(e), co = (e) => !s(e) && !n(e), mo = (e) => V(e, Re, Ce), s = (e) => ve.test(e), L = (e) => V(e, Ie, ao), re = (e) => V(e, go, p), ge = (e) => V(e, Ae, Ce), po = (e) => V(e, Se, lo), J = (e) => V(e, Me, io), n = (e) => ze.test(e), W = (e) => F(e, Ie), uo = (e) => F(e, ho), he = (e) => F(e, Ae), fo = (e) => F(e, Re), bo = (e) => F(e, Se), H = (e) => F(e, Me, !0), V = (e, t, o) => { const r = ve.exec(e); return r ? r[1] ? t(r[1]) : o(r[2]) : !1; }, F = (e, t, o = !1) => { const r = ze.exec(e); return r ? r[1] ? t(r[1]) : o : !1; }, Ae = (e) => e === "position" || e === "percentage", Se = (e) => e === "image" || e === "url", Re = (e) => e === "length" || e === "size" || e === "bg-size", Ie = (e) => e === "length", go = (e) => e === "number", ho = (e) => e === "family-name", Me = (e) => e === "shadow", wo = () => { const e = b("color"), t = b("font"), o = b("text"), r = b("font-weight"), i = b("tracking"), d = b("leading"), a = b("breakpoint"), u = b("container"), c = b("spacing"), f = b("radius"), h = b("shadow"), y = b("inset-shadow"), z = b("text-shadow"), I = b("drop-shadow"), M = b("blur"), v = b("perspective"), x = b("aspect"), P = b("ease"), $ = b("animate"), _ = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], O = () => [ "center", "top", "bottom", "left", "right", "top-left", // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378 "left-top", "top-right", // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378 "right-top", "bottom-right", // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378 "right-bottom", "bottom-left", // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378 "left-bottom" ], j = () => [...O(), n, s], G = () => ["auto", "hidden", "clip", "visible", "scroll"], B = () => ["auto", "contain", "none"], m = () => [n, s, c], C = () => [N, "full", "auto", ...m()], ne = () => [R, "none", "subgrid", n, s], ae = () => ["auto", { span: ["full", R, n, s] }, R, n, s], U = () => [R, "auto", n, s], ie = () => ["auto", "min", "max", "fr", n, s], Q = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], E = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], A = () => ["auto", ...m()], T = () => [N, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...m()], l = () => [e, n, s], le = () => [...O(), he, ge, { position: [n, s] }], ce = () => ["no-repeat", { repeat: ["", "x", "y", "space", "round"] }], de = () => ["auto", "cover", "contain", fo, mo, { size: [n, s] }], Z = () => [oe, W, L], w = () => [ // Deprecated since Tailwind CSS v4.0.0 "", "none", "full", f, n, s ], k = () => ["", p, W, L], D = () => ["solid", "dashed", "dotted", "double"], me = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], g = () => [p, oe, he, ge], pe = () => [ // Deprecated since Tailwind CSS v4.0.0 "", "none", M, n, s ], Y = () => ["none", p, n, s], q = () => ["none", p, n, s], ee = () => [p, n, s], X = () => [N, "full", ...m()]; return { cacheSize: 500, theme: { animate: ["spin", "ping", "pulse", "bounce"], aspect: ["video"], blur: [S], breakpoint: [S], color: [no], container: [S], "drop-shadow": [S], ease: ["in", "out", "in-out"], font: [co], "font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"], "inset-shadow": [S], leading: ["none", "tight", "snug", "normal", "relaxed", "loose"], perspective: ["dramatic", "near", "normal", "midrange", "distant", "none"], radius: [S], shadow: [S], spacing: ["px", p], text: [S], "text-shadow": [S], tracking: ["tighter", "tight", "normal", "wide", "wider", "widest"] }, classGroups: { // -------------- // --- Layout --- // -------------- /** * Aspect Ratio * @see https://tailwindcss.com/docs/aspect-ratio */ aspect: [{ aspect: ["auto", "square", N, s, n, x] }], /** * Container * @see https://tailwindcss.com/docs/container * @deprecated since Tailwind CSS v4.0.0 */ container: ["container"], /** * Columns * @see https://tailwindcss.com/docs/columns */ columns: [{ columns: [p, s, n, u] }], /** * Break After * @see https://tailwindcss.com/docs/break-after */ "break-after": [{ "break-after": _() }], /** * Break Before * @see https://tailwindcss.com/docs/break-before */ "break-before": [{ "break-before": _() }], /** * Break Inside * @see https://tailwindcss.com/docs/break-inside */ "break-inside": [{ "break-inside": ["auto", "avoid", "avoid-page", "avoid-column"] }], /** * Box Decoration Break * @see https://tailwindcss.com/docs/box-decoration-break */ "box-decoration": [{ "box-decoration": ["slice", "clone"] }], /** * Box Sizing * @see https://tailwindcss.com/docs/box-sizing */ box: [{ box: ["border", "content"] }], /** * Display * @see https://tailwindcss.com/docs/display */ 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"], /** * Screen Reader Only * @see https://tailwindcss.com/docs/display#screen-reader-only */ sr: ["sr-only", "not-sr-only"], /** * Floats * @see https://tailwindcss.com/docs/float */ float: [{ float: ["right", "left", "none", "start", "end"] }], /** * Clear * @see https://tailwindcss.com/docs/clear */ clear: [{ clear: ["left", "right", "both", "none", "start", "end"] }], /** * Isolation * @see https://tailwindcss.com/docs/isolation */ isolation: ["isolate", "isolation-auto"], /** * Object Fit * @see https://tailwindcss.com/docs/object-fit */ "object-fit": [{ object: ["contain", "cover", "fill", "none", "scale-down"] }], /** * Object Position * @see https://tailwindcss.com/docs/object-position */ "object-position": [{ object: j() }], /** * Overflow * @see https://tailwindcss.com/docs/overflow */ overflow: [{ overflow: G() }], /** * Overflow X * @see https://tailwindcss.com/docs/overflow */ "overflow-x": [{ "overflow-x": G() }], /** * Overflow Y * @see https://tailwindcss.com/docs/overflow */ "overflow-y": [{ "overflow-y": G() }], /** * Overscroll Behavior * @see https://tailwindcss.com/docs/overscroll-behavior */ overscroll: [{ overscroll: B() }], /** * Overscroll Behavior X * @see https://tailwindcss.com/docs/overscroll-behavior */ "overscroll-x": [{ "overscroll-x": B() }], /** * Overscroll Behavior Y * @see https://tailwindcss.com/docs/overscroll-behavior */ "overscroll-y": [{ "overscroll-y": B() }], /** * Position * @see https://tailwindcss.com/docs/position */ position: ["static", "fixed", "absolute", "relative", "sticky"], /** * Top / Right / Bottom / Left * @see https://tailwindcss.com/docs/top-right-bottom-left */ inset: [{ inset: C() }], /** * Right / Left * @see https://tailwindcss.com/docs/top-right-bottom-left */ "inset-x": [{ "inset-x": C() }], /** * Top / Bottom * @see https://tailwindcss.com/docs/top-right-bottom-left */ "inset-y": [{ "inset-y": C() }], /** * Start * @see https://tailwindcss.com/docs/top-right-bottom-left */ start: [{ start: C() }], /** * End * @see https://tailwindcss.com/docs/top-right-bottom-left */ end: [{ end: C() }], /** * Top * @see https://tailwindcss.com/docs/top-right-bottom-left */ top: [{ top: C() }], /** * Right * @see https://tailwindcss.com/docs/top-right-bottom-left */ right: [{ right: C() }], /** * Bottom * @see https://tailwindcss.com/docs/top-right-bottom-left */ bottom: [{ bottom: C() }], /** * Left * @see https://tailwindcss.com/docs/top-right-bottom-left */ left: [{ left: C() }], /** * Visibility * @see https://tailwindcss.com/docs/visibility */ visibility: ["visible", "invisible", "collapse"], /** * Z-Index * @see https://tailwindcss.com/docs/z-index */ z: [{ z: [R, "auto", n, s] }], // ------------------------ // --- Flexbox and Grid --- // ------------------------ /** * Flex Basis * @see https://tailwindcss.com/docs/flex-basis */ basis: [{ basis: [N, "full", "auto", u, ...m()] }], /** * Flex Direction * @see https://tailwindcss.com/docs/flex-direction */ "flex-direction": [{ flex: ["row", "row-reverse", "col", "col-reverse"] }], /** * Flex Wrap * @see https://tailwindcss.com/docs/flex-wrap */ "flex-wrap": [{ flex: ["nowrap", "wrap", "wrap-reverse"] }], /** * Flex * @see https://tailwindcss.com/docs/flex */ flex: [{ flex: [p, N, "auto", "initial", "none", s] }], /** * Flex Grow * @see https://tailwindcss.com/docs/flex-grow */ grow: [{ grow: ["", p, n, s] }], /** * Flex Shrink * @see https://tailwindcss.com/docs/flex-shrink */ shrink: [{ shrink: ["", p, n, s] }], /** * Order * @see https://tailwindcss.com/docs/order */ order: [{ order: [R, "first", "last", "none", n, s] }], /** * Grid Template Columns * @see https://tailwindcss.com/docs/grid-template-columns */ "grid-cols": [{ "grid-cols": ne() }], /** * Grid Column Start / End * @see https://tailwindcss.com/docs/grid-column */ "col-start-end": [{ col: ae() }], /** * Grid Column Start * @see https://tailwindcss.com/docs/grid-column */ "col-start": [{ "col-start": U() }], /** * Grid Column End * @see https://tailwindcss.com/docs/grid-column */ "col-end": [{ "col-end": U() }], /** * Grid Template Rows * @see https://tailwindcss.com/docs/grid-template-rows */ "grid-rows": [{ "grid-rows": ne() }], /** * Grid Row Start / End * @see https://tailwindcss.com/docs/grid-row */ "row-start-end": [{ row: ae() }], /** * Grid Row Start * @see https://tailwindcss.com/docs/grid-row */ "row-start": [{ "row-start": U() }], /** * Grid Row End * @see https://tailwindcss.com/docs/grid-row */ "row-end": [{ "row-end": U() }], /** * Grid Auto Flow * @see https://tailwindcss.com/docs/grid-auto-flow */ "grid-flow": [{ "grid-flow": ["row", "col", "dense", "row-dense", "col-dense"] }], /** * Grid Auto Columns * @see https://tailwindcss.com/docs/grid-auto-columns */ "auto-cols": [{ "auto-cols": ie() }], /** * Grid Auto Rows * @see https://tailwindcss.com/docs/grid-auto-rows */ "auto-rows": [{ "auto-rows": ie() }], /** * Gap * @see https://tailwindcss.com/docs/gap */ gap: [{ gap: m() }], /** * Gap X * @see https://tailwindcss.com/docs/gap */ "gap-x": [{ "gap-x": m() }], /** * Gap Y * @see https://tailwindcss.com/docs/gap */ "gap-y": [{ "gap-y": m() }], /** * Justify Content * @see https://tailwindcss.com/docs/justify-content */ "justify-content": [{ justify: [...Q(), "normal"] }], /** * Justify Items * @see https://tailwindcss.com/docs/justify-items */ "justify-items": [{ "justify-items": [...E(), "normal"] }], /** * Justify Self * @see https://tailwindcss.com/docs/justify-self */ "justify-self": [{ "justify-self": ["auto", ...E()] }], /** * Align Content * @see https://tailwindcss.com/docs/align-content */ "align-content": [{ content: ["normal", ...Q()] }], /** * Align Items * @see https://tailwindcss.com/docs/align-items */ "align-items": [{ items: [...E(), { baseline: ["", "last"] }] }], /** * Align Self * @see https://tailwindcss.com/docs/align-self */ "align-self": [{ self: ["auto", ...E(), { baseline: ["", "last"] }] }], /** * Place Content * @see https://tailwindcss.com/docs/place-content */ "place-content": [{ "place-content": Q() }], /** * Place Items * @see https://tailwindcss.com/docs/place-items */ "place-items": [{ "place-items": [...E(), "baseline"] }], /** * Place Self * @see https://tailwindcss.com/docs/place-self */ "place-self": [{ "place-self": ["auto", ...E()] }], // Spacing /** * Padding * @see https://tailwindcss.com/docs/padding */ p: [{ p: m() }], /** * Padding X * @see https://tailwindcss.com/docs/padding */ px: [{ px: m() }], /** * Padding Y * @see https://tailwindcss.com/docs/padding */ py: [{ py: m() }], /** * Padding Start * @see https://tailwindcss.com/docs/padding */ ps: [{ ps: m() }], /** * Padding End * @see https://tailwindcss.com/docs/padding */ pe: [{ pe: m() }], /** * Padding Top * @see https://tailwindcss.com/docs/padding */ pt: [{ pt: m() }], /** * Padding Right * @see https://tailwindcss.com/docs/padding */ pr: [{ pr: m() }], /** * Padding Bottom * @see https://tailwindcss.com/docs/padding */ pb: [{ pb: m() }], /** * Padding Left * @see https://tailwindcss.com/docs/padding */ pl: [{ pl: m() }], /** * Margin * @see https://tailwindcss.com/docs/margin */ m: [{ m: A() }], /** * Margin X * @see https://tailwindcss.com/docs/margin */ mx: [{ mx: A() }], /** * Margin Y * @see https://tailwindcss.com/docs/margin */ my: [{ my: A() }], /** * Margin Start * @see https://tailwindcss.com/docs/margin */ ms: [{ ms: A() }], /** * Margin End * @see https://tailwindcss.com/docs/margin */ me: [{ me: A() }], /** * Margin Top * @see https://tailwindcss.com/docs/margin */ mt: [{ mt: A() }], /** * Margin Right * @see https://tailwindcss.com/docs/margin */ mr: [{ mr: A() }], /** * Margin Bottom * @see https://tailwindcss.com/docs/margin */ mb: [{ mb: A() }], /** * Margin Left * @see https://tailwindcss.com/docs/margin */ ml: [{ ml: A() }], /** * Space Between X * @see https://tailwindcss.com/docs/margin#adding-space-between-children */ "space-x": [{ "space-x": m() }], /** * Space Between X Reverse * @see https://tailwindcss.com/docs/margin#adding-space-between-children */ "space-x-reverse": ["space-x-reverse"], /** * Space Between Y * @see https://tailwindcss.com/docs/margin#adding-space-between-children */ "space-y": [{ "space-y": m() }], /** * Space Between Y Reverse * @see https://tailwindcss.com/docs/margin#adding-space-between-children */ "space-y-reverse": ["space-y-reverse"], // -------------- // --- Sizing --- // -------------- /** * Size * @see https://tailwindcss.com/docs/width#setting-both-width-and-height */ size: [{ size: T() }], /** * Width * @see https://tailwindcss.com/docs/width */ w: [{ w: [u, "screen", ...T()] }], /** * Min-Width * @see https://tailwindcss.com/docs/min-width */ "min-w": [{ "min-w": [ u, "screen", /** Deprecated. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */ "none", ...T() ] }], /** * Max-Width * @see https://tailwindcss.com/docs/max-width */ "max-w": [{ "max-w": [ u, "screen", "none", /** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */ "prose", /** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */ { screen: [a] }, ...T() ] }], /** * Height * @see https://tailwindcss.com/docs/height */ h: [{ h: ["screen", "lh", ...T()] }], /** * Min-Height * @see https://tailwindcss.com/docs/min-height */ "min-h": [{ "min-h": ["screen", "lh", "none", ...T()] }], /** * Max-Height * @see https://tailwindcss.com/docs/max-height */ "max-h": [{ "max-h": ["screen", "lh", ...T()] }], // ------------------ // --- Typography --- // ------------------ /** * Font Size * @see https://tailwindcss.com/docs/font-size */ "font-size": [{ text: ["base", o, W, L] }], /** * Font Smoothing * @see https://tailwindcss.com/docs/font-smoothing */ "font-smoothing": ["antialiased", "subpixel-antialiased"], /** * Font Style * @see https://tailwindcss.com/docs/font-style */ "font-style": ["italic", "not-italic"], /** * Font Weight * @see https://tailwindcss.com/docs/font-weight */ "font-weight": [{ font: [r, n, re] }], /** * Font Stretch * @see https://tailwindcss.com/docs/font-stretch */ "font-stretch": [{ "font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", oe, s] }], /** * Font Family * @see https://tailwindcss.com/docs/font-family */ "font-family": [{ font: [uo, s, t] }], /** * Font Variant Numeric * @see https://tailwindcss.com/docs/font-variant-numeric */ "fvn-normal": ["normal-nums"], /** * Font Variant Numeric * @see https://tailwindcss.com/docs/font-variant-numeric */ "fvn-ordinal": ["ordinal"], /** * Font Variant Numeric * @see https://tailwindcss.com/docs/font-variant-numeric */ "fvn-slashed-zero": ["slashed-zero"], /** * Font Variant Numeric * @see https://tailwindcss.com/docs/font-variant-numeric */ "fvn-figure": ["lining-nums", "oldstyle-nums"], /** * Font Variant Numeric * @see https://tailwindcss.com/docs/font-variant-numeric */ "fvn-spacing": ["proportional-nums", "tabular-nums"], /** * Font Variant Numeric * @see https://tailwindcss.com/docs/font-variant-numeric */ "fvn-fraction": ["diagonal-fractions", "stacked-fractions"], /** * Letter Spacing * @see https://tailwindcss.com/docs/letter-spacing */ tracking: [{ tracking: [i, n, s] }], /** * Line Clamp * @see https://tailwindcss.com/docs/line-clamp */ "line-clamp": [{ "line-clamp": [p, "none", n, re] }], /** * Line Height * @see https://tailwindcss.com/docs/line-height */ leading: [{ leading: [ /** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */ d, ...m() ] }], /** * List Style Image * @see https://tailwindcss.com/docs/list-style-image */ "list-image": [{ "list-image": ["none", n, s] }], /** * List Style Position * @see https://tailwindcss.com/docs/list-style-position */ "list-style-position": [{ list: ["inside", "outside"] }], /** * List Style Type * @see https://tailwindcss.com/docs/list-style-type */ "list-style-type": [{ list: ["disc", "decimal", "none", n, s] }], /** * Text Alignment * @see https://tailwindcss.com/docs/text-align */ "text-alignment": [{ text: ["left", "center", "right", "justify", "start", "end"] }], /** * Placeholder Color * @deprecated since Tailwind CSS v3.0.0 * @see https://v3.tailwindcss.com/docs/placeholder-color */ "placeholder-color": [{ placeholder: l() }], /** * Text Color * @see https://tailwindcss.com/docs/text-color */ "text-color": [{ text: l() }], /** * Text Decoration * @see https://tailwindcss.com/docs/text-decoration */ "text-decoration": ["underline", "overline", "line-through", "no-underline"], /** * Text Decoration Style * @see https://tailwindcss.com/docs/text-decoration-style */ "text-decoration-style": [{ decoration: [...D(), "wavy"] }], /** * Text Decoration Thickness * @see https://tailwindcss.com/docs/text-decoration-thickness */ "text-decoration-thickness": [{ decoration: [p, "from-font", "auto", n, L] }], /** * Text Decoration Color * @see https://tailwindcss.com/docs/text-decoration-color */ "text-decoration-color": [{ decoration: l() }], /** * Text Underline Offset * @see https://tailwindcss.com/docs/text-underline-offset */ "underline-offset": [{ "underline-offset": [p, "auto", n, s] }], /** * Text Transform * @see https://tailwindcss.com/docs/text-transform */ "text-transform": ["uppercase", "lowercase", "capitalize", "normal-case"], /** * Text Overflow * @see https://tailwindcss.com/docs/text-overflow */ "text-overflow": ["truncate", "text-ellipsis", "text-clip"], /** * Text Wrap * @see https://tailwindcss.com/docs/text-wrap */ "text-wrap": [{ text: ["wrap", "nowrap", "balance", "pretty"] }], /** * Text Indent * @see https://tailwindcss.com/docs/text-indent */ indent: [{ indent: m() }], /** * Vertical Alignment * @see https://tailwindcss.com/docs/vertical-align */ "vertical-align": [{ align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", n, s] }], /** * Whitespace * @see https://tailwindcss.com/docs/whitespace */ whitespace: [{ whitespace: ["normal", "nowrap", "pre", "pre-line", "pre-wrap", "break-spaces"] }], /** * Word Break * @see https://tailwindcss.com/docs/word-break */ break: [{ break: ["normal", "words", "all", "keep"] }], /** * Overflow Wrap * @see https://tailwindcss.com/docs/overflow-wrap */ wrap: [{ wrap: ["break-word", "anywhere", "normal"] }], /** * Hyphens * @see https://tailwindcss.com/docs/hyphens */ hyphens: [{ hyphens: ["none", "manual", "auto"] }], /** * Content * @see https://tailwindcss.com/docs/content */ content: [{ content: ["none", n, s] }], // ------------------- // --- Backgrounds --- // ------------------- /** * Background Attachment * @see https://tailwindcss.com/docs/background-attachment */ "bg-attachment": [{ bg: ["fixed", "local", "scroll"] }], /** * Background Clip * @see https://tailwindcss.com/docs/background-clip */ "bg-clip": [{ "bg-clip": ["border", "padding", "content", "text"] }], /** * Background Origin * @see https://tailwindcss.com/docs/background-origin */ "bg-origin": [{ "bg-origin": ["border", "padding", "content"] }], /** * Background Position * @see https://tailwindcss.com/docs/background-position */ "bg-position": [{ bg: le() }], /** * Background Repeat * @see https://tailwindcss.com/docs/background-repeat */ "bg-repeat": [{ bg: ce() }], /** * Background Size * @see https://tailwindcss.com/docs/background-size */ "bg-size": [{ bg: de() }], /** * Background Image * @see https://tailwindcss.com/docs/background-image */ "bg-image": [{ bg: ["none", { linear: [{ to: ["t", "tr", "r", "br", "b", "bl", "l", "tl"] }, R, n, s], radial: ["", n, s], conic: [R, n, s] }, bo, po] }], /** * Background Color * @see https://tailwindcss.com/docs/background-color */ "bg-color": [{ bg: l() }], /** * Gradient Color Stops From Position * @see https://tailwindcss.com/docs/gradient-color-stops */ "gradient-from-pos": [{ from: Z() }], /** * Gradient Color Stops Via Position * @see https://tailwindcss.com/docs/gradient-color-stops */ "gradient-via-pos": [{ via: Z() }], /** * Gradient Color Stops To Position * @see https://tailwindcss.com/docs/gradient-color-stops */ "gradient-to-pos": [{ to: Z() }], /** * Gradient Color Stops From * @see https://tailwindcss.com/docs/gradient-color-stops */ "gradient-from": [{ from: l() }], /** * Gradient Color Stops Via * @see https://tailwindcss.com/docs/gradient-color-stops */ "gradient-via": [{ via: l() }], /** * Gradient Color Stops To * @see https://tailwindcss.com/docs/gradient-color-stops */ "gradient-to": [{ to: l() }], // --------------- // --- Borders --- // --------------- /** * Border Radius * @see https://tailwindcss.com/docs/border-radius */ rounded: [{ rounded: w() }], /** * Border Radius Start * @see https://tailwindcss.com/docs/border-radius */ "rounded-s": [{ "rounded-s": w() }], /** * Border Radius End * @see https://tailwindcss.com/docs/border-radius */ "rounded-e": [{ "rounded-e": w() }], /** * Border Radius Top * @see https://tailwindcss.com/docs/border-radius */ "rounded-t": [{ "rounded-t": w() }], /** * Border Radius Right * @see https://tailwindcss.com/docs/border-radius */ "rounded-r": [{ "rounded-r": w() }], /** * Border Radius Bottom * @see https://tailwindcss.com/docs/border-radius */ "rounded-b": [{ "rounded-b": w() }], /** * Border Radius Left * @see https://tailwindcss.com/docs/border-radius */ "rounded-l": [{ "rounded-l": w() }], /** * Border Radius Start Start * @see https://tailwindcss.com/docs/border-radius */ "rounded-ss": [{ "rounded-ss": w() }], /** * Border Radius Start End * @see https://tailwindcss.com/docs/border-radius */ "rounded-se": [{ "rounded-se": w() }], /** * Border Radius End End * @see https://tailwindcss.com/docs/border-radius */ "rounded-ee": [{ "rounded-ee": w() }], /** * Border Radius End Start * @see https://tailwindcss.com/docs/border-radius */ "rounded-es": [{ "rounded-es": w() }], /** * Border Radius Top Left * @see https://tailwindcss.com/docs/border-radius */ "rounded-tl": [{ "rounded-tl": w() }], /** * Border Radius Top Right * @see https://tailwindcss.com/docs/border-radius */ "rounded-tr": [{ "rounded-tr": w() }], /** * Border Radius Bottom Right * @see https://tailwindcss.com/docs/border-radius */ "rounded-br": [{ "rounded-br": w() }], /** * Border Radius Bottom Left * @see https://tailwindcss.com/docs/border-radius */ "rounded-bl": [{ "rounded-bl": w() }], /** * Border Width * @see https://tailwindcss.com/docs/border-width */ "border-w": [{ border: k() }], /** * Border Width X * @see https://tailwindcss.com/docs/border-width */ "border-w-x": [{ "border-x": k() }], /** * Border Width Y * @see https://tailwindcss.com/docs/border-width */ "border-w-y": [{ "border-y": k() }], /** * Border Width Start * @see https://tailwindcss.com/docs/border-width */ "border-w-s": [{ "border-s": k() }], /** * Border Width End * @see https://tailwindcss.com/docs/border-width */ "border-w-e": [{ "border-e": k() }], /** * Border Width Top * @see https://tailwindcss.com/docs/border-width */ "border-w-t": [{ "border-t": k() }], /** * Border Width Right * @see https://tailwindcss.com/docs/border-width */ "border-w-r": [{ "border-r": k() }], /** * Border Width Bottom * @see https://tailwindcss.com/docs/border-width */ "border-w-b": [{ "border-b": k() }], /** * Border Width Left * @see https://tailwindcss.com/docs/border-width */ "border-w-l": [{ "border-l": k() }], /** * Divide Width X * @see https://tailwindcss.com/docs/border-width#between-children */ "divide-x": [{ "divide-x": k() }], /** * Divide Width X Reverse * @see https://tailwindcss.com/docs/border-width#between-children */ "divide-x-reverse": ["divide-x-reverse"], /** * Divide Width Y * @see https://tailwindcss.com/docs/border-width#between-children */ "divide-y": [{ "divide-y": k() }], /** * Divide Width Y Reverse * @see https://tailwindcss.com/docs/border-width#between-children */ "divide-y-reverse": ["divide-y-reverse"], /** * Border Style * @see https://tailwindcss.com/docs/border-style */ "border-style": [{ border: [...D(), "hidden", "none"] }], /** * Divide Style * @see https://tailwindcss.com/docs/border-style#setting-the-divider-style */ "divide-style": [{ divide: [...D(), "hidden", "none"] }], /** * Border Color * @see https://tailwindcss.com/docs/border-color */ "border-color": [{ border: l() }], /** * Border Color X * @see https://tailwindcss.com/docs/border-color */ "border-color-x": [{ "border-x": l() }], /** * Border Color Y * @see https://tailwindcss.com/docs/border-color */ "border-color-y": [{ "border-y": l() }], /** * Border Color S * @see https://tailwindcss.com/docs/border-color */ "border-color-s": [{ "border-s": l() }], /** * Border Color E * @see https://tailwindcss.com/docs/border-color */ "border-color-e": [{ "border-e": l() }], /** * Border Color Top * @see https://tailwindcss.com/docs/border-color */ "border-color-t": [{ "border-t": l() }], /** * Border Color Right * @see https://tailwindcss.com/docs/border-color */ "border-color-r": [{ "border-r": l() }], /** * Border Color Bottom * @see https://tailwindcss.com/docs/border-color */ "border-color-b": [{ "border-b": l() }], /** * Border Color Left * @see https://tailwindcss.com/docs/border-color */ "border-color-l": [{ "border-l": l() }], /** * Divide Color * @see https://tailwindcss.com/docs/divide-color */ "divide-color": [{ divide: l() }], /** * Outline Style * @see https://tailwindcss.com/docs/outline-style */ "outline-style": [{ outline: [...D(), "none", "hidden"] }], /** * Outline Offset * @see https://tailwindcss.com/docs/outline-offset */ "outline-offset": [{ "outline-offset": [p, n, s] }], /** * Outline Width * @see https://tailwindcss.com/docs/outline-width */ "outline-w": [{ outline: ["", p, W, L] }], /** * Outline Color * @see https://tailwindcss.com/docs/outline-color */ "outline-color": [{ outline: l() }], // --------------- // --- Effects --- // --------------- /** * Box Shadow * @see https://tailwindcss.com/docs/box-shadow */ shadow: [{ shadow: [ // Deprecated since Tailwind CSS v4.0.0 "", "none", h, H, J ] }], /** * Box Shadow Color * @see https://tailwindcss.com/docs/box-shadow#setting-the-shadow-color */ "shadow-color": [{ shadow: l() }], /** * Inset Box Shadow * @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-shadow */ "inset-shadow": [{ "inset-shadow": ["none", y, H, J] }], /** * Inset Box Shadow Color * @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-shadow-color */ "inset-shadow-color": [{ "inset-shadow": l() }], /** * Ring Width * @see https://tailwindcss.com/docs/box-shadow#adding-a-ring */ "ring-w": [{ ring: k() }], /** * Ring Width Inset * @see https://v3.tailwindcss.com/docs/ring-width#inset-rings * @deprecated since Tailwind CSS v4.0.0 * @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158 */ "ring-w-inset": ["ring-inset"], /** * Ring Color * @see https://tailwindcss.com/docs/box-shadow#setting-the-ring-color */ "ring-color": [{ ring: l() }], /** * Ring Offset Width * @see https://v3.tailwindcss.com/docs/ring-offset-width * @deprecated since Tailwind CSS v4.0.0 * @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158 */ "ring-offset-w": [{ "ring-offset": [p, L] }], /** * Ring Offset Color * @see https://v3.tailwindcss.com/docs/ring-offset-color * @deprecated since Tailwind CSS v4.0.0 * @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158 */ "ring-offset-color": [{ "ring-offset": l() }], /** * Inset Ring Width * @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-ring */ "inset-ring-w": [{ "inset-ring": k() }], /** * Inset Ring Color * @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-ring-color */ "inset-ring-color": [{ "inset-ring": l() }], /** * Text Shadow * @see https://tailwindcss.com/docs/text-shadow */ "text-shadow": [{ "text-shadow": ["none", z, H, J] }], /** * Text Shadow Color * @see https://tailwindcss.com/docs/text-shadow#setting-the-shadow-color */ "text-shadow-color": [{ "text-shadow": l() }], /** * Opacity * @see https://tailwindcss.com/docs/opacity */ opacity: [{ opacity: [p, n, s] }], /** * Mix Blend Mode * @see https://tailwindcss.com/docs/mix-blend-mode */ "mix-blend": [{ "mix-blend": [...me(), "plus-darker", "plus-lighter"] }], /** * Background Blend Mode * @see https://tailwindcss.com/docs/background-blend-mode */ "bg-blend": [{ "bg-blend": me() }], /** * Mask Clip * @see https://tailwindcss.com/docs/mask-clip */ "mask-clip": [{ "mask-clip": ["border", "padding", "content", "fill", "stroke", "view"] }, "mask-no-clip"], /** * Mask Composite * @see https://tailwindcss.com/docs/mask-composite */ "mask-composite": [{ mask: ["add", "subtract", "intersect", "exclude"] }], /** * Mask Image * @see https://tailwindcss.com/docs/mask-image */ "mask-image-linear-pos": [{ "mask-linear": [p] }], "mask-image-linear-from-pos": [{ "mask-linear-from": g() }], "mask-image-linear-to-pos": [{ "mask-linear-to": g() }], "mask-image-linear-from-color": [{ "mask-linear-from": l() }], "mask-image-linear-to-color": [{ "mask-linear-to": l() }], "mask-image-t-from-pos": [{ "mask-t-from": g() }], "mask-image-t-to-pos": [{ "mask-t-to": g() }], "mask-image-t-from-color": [{ "mask-t-from": l() }], "mask-image-t-to-color": [{ "mask-t-to": l() }], "mask-image-r-from-pos": [{ "mask-r-from": g() }], "mask-image-r-to-pos": [{ "mask-r-to": g() }], "mask-image-r-from-color": [{ "mask-r-from": l() }], "mask-image-r-to-color": [{ "mask-r-to": l() }], "mask-image-b-from-pos": [{ "mask-b-from": g() }], "mask-image-b-to-pos": [{ "mask-b-to": g() }], "mask-image-b-from-color": [{ "mask-b-from": l() }], "mask-image-b-to-color": [{ "mask-b-to": l() }], "mask-image-l-from-pos": [{