UNPKG

@datamonsterr/vdt-dashboard

Version:
1,819 lines (1,818 loc) 565 kB
import { jsx as f, jsxs as O, Fragment as kt } from "react/jsx-runtime"; import * as v from "react"; import _, { forwardRef as Ec, createElement as Dn, createContext as ft, useContext as Rt, useEffect as he, useLayoutEffect as $i, useMemo as Ee, useRef as me, useCallback as be, useDebugValue as sp, useState as J, memo as ip, useReducer as ap } from "react"; import * as Co from "react-dom"; import lp, { createPortal as kc, unstable_batchedUpdates as Lr } from "react-dom"; const fn = { // Schema Builder specific TABLE: 10, CONNECTION_LINE: 15, TOOLBAR: 30, MODAL_BACKDROP: 50, DIALOG: 50 }, cp = "pk_test_c21hc2hpbmctc2hlcGhlcmQtNzMuY2xlcmsuYWNjb3VudHMuZGV2JA"; function La(e, t) { if (typeof e == "function") return e(t); e != null && (e.current = t); } function Eo(...e) { return (t) => { let n = !1; const r = e.map((o) => { const s = La(o, t); return !n && typeof s == "function" && (n = !0), s; }); if (n) return () => { for (let o = 0; o < r.length; o++) { const s = r[o]; typeof s == "function" ? s() : La(e[o], null); } }; }; } function we(...e) { return v.useCallback(Eo(...e), e); } // @__NO_SIDE_EFFECTS__ function hn(e) { const t = /* @__PURE__ */ up(e), n = v.forwardRef((r, o) => { const { children: s, ...i } = r, a = v.Children.toArray(s), l = a.find(fp); if (l) { const c = l.props.children, u = a.map((d) => d === l ? v.Children.count(c) > 1 ? v.Children.only(null) : v.isValidElement(c) ? c.props.children : null : d); return /* @__PURE__ */ f(t, { ...i, ref: o, children: v.isValidElement(c) ? v.cloneElement(c, void 0, u) : null }); } return /* @__PURE__ */ f(t, { ...i, ref: o, children: s }); }); return n.displayName = `${e}.Slot`, n; } var Rc = /* @__PURE__ */ hn("Slot"); // @__NO_SIDE_EFFECTS__ function up(e) { const t = v.forwardRef((n, r) => { const { children: o, ...s } = n; if (v.isValidElement(o)) { const i = pp(o), a = hp(s, o.props); return o.type !== v.Fragment && (a.ref = r ? Eo(r, i) : i), v.cloneElement(o, a); } return v.Children.count(o) > 1 ? v.Children.only(null) : null; }); return t.displayName = `${e}.SlotClone`, t; } var dp = Symbol("radix.slottable"); function fp(e) { return v.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === dp; } function hp(e, t) { const n = { ...t }; for (const r in t) { const o = e[r], s = t[r]; /^on[A-Z]/.test(r) ? o && s ? n[r] = (...a) => { const l = s(...a); return o(...a), l; } : o && (n[r] = o) : r === "style" ? n[r] = { ...o, ...s } : r === "className" && (n[r] = [o, s].filter(Boolean).join(" ")); } return { ...e, ...n }; } function pp(e) { var r, o; let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get, n = t && "isReactWarning" in t && t.isReactWarning; return n ? e.ref : (t = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref); } function _c(e) { var t, n, r = ""; if (typeof e == "string" || typeof e == "number") r += e; else if (typeof e == "object") if (Array.isArray(e)) { var o = e.length; for (t = 0; t < o; t++) e[t] && (n = _c(e[t])) && (r && (r += " "), r += n); } else for (n in e) e[n] && (r && (r += " "), r += n); return r; } function Tc() { for (var e, t, n = 0, r = "", o = arguments.length; n < o; n++) (e = arguments[n]) && (t = _c(e)) && (r && (r += " "), r += t); return r; } const Ua = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, $a = Tc, Fi = (e, t) => (n) => { var r; if ((t == null ? void 0 : t.variants) == null) return $a(e, n == null ? void 0 : n.class, n == null ? void 0 : n.className); const { variants: o, defaultVariants: s } = t, i = Object.keys(o).map((c) => { const u = n == null ? void 0 : n[c], d = s == null ? void 0 : s[c]; if (u === null) return null; const p = Ua(u) || Ua(d); return o[c][p]; }), a = n && Object.entries(n).reduce((c, u) => { let [d, p] = u; return p === void 0 || (c[d] = p), c; }, {}), l = t == null || (r = t.compoundVariants) === null || r === void 0 ? void 0 : r.reduce((c, u) => { let { class: d, className: p, ...m } = u; return Object.entries(m).every((b) => { let [h, g] = b; return Array.isArray(g) ? g.includes({ ...s, ...a }[h]) : { ...s, ...a }[h] === g; }) ? [ ...c, d, p ] : c; }, []); return $a(e, i, l, n == null ? void 0 : n.class, n == null ? void 0 : n.className); }, ji = "-", mp = (e) => { const t = vp(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e; return { getClassGroupId: (i) => { const a = i.split(ji); return a[0] === "" && a.length !== 1 && a.shift(), Pc(a, t) || gp(i); }, getConflictingClassGroupIds: (i, a) => { const l = n[i] || []; return a && r[i] ? [...l, ...r[i]] : l; } }; }, Pc = (e, t) => { var i; if (e.length === 0) return t.classGroupId; const n = e[0], r = t.nextPart.get(n), o = r ? Pc(e.slice(1), r) : void 0; if (o) return o; if (t.validators.length === 0) return; const s = e.join(ji); return (i = t.validators.find(({ validator: a }) => a(s))) == null ? void 0 : i.classGroupId; }, Fa = /^\[(.+)\]$/, gp = (e) => { if (Fa.test(e)) { const t = Fa.exec(e)[1], n = t == null ? void 0 : t.substring(0, t.indexOf(":")); if (n) return "arbitrary.." + n; } }, vp = (e) => { const { theme: t, classGroups: n } = e, r = { nextPart: /* @__PURE__ */ new Map(), validators: [] }; for (const o in n) Xs(n[o], r, o, t); return r; }, Xs = (e, t, n, r) => { e.forEach((o) => { if (typeof o == "string") { const s = o === "" ? t : ja(t, o); s.classGroupId = n; return; } if (typeof o == "function") { if (bp(o)) { Xs(o(r), t, n, r); return; } t.validators.push({ validator: o, classGroupId: n }); return; } Object.entries(o).forEach(([s, i]) => { Xs(i, ja(t, s), n, r); }); }); }, ja = (e, t) => { let n = e; return t.split(ji).forEach((r) => { n.nextPart.has(r) || n.nextPart.set(r, { nextPart: /* @__PURE__ */ new Map(), validators: [] }), n = n.nextPart.get(r); }), n; }, bp = (e) => e.isThemeGetter, yp = (e) => { if (e < 1) return { get: () => { }, set: () => { } }; let t = 0, n = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map(); const o = (s, i) => { n.set(s, i), t++, t > e && (t = 0, r = n, n = /* @__PURE__ */ new Map()); }; return { get(s) { let i = n.get(s); if (i !== void 0) return i; if ((i = r.get(s)) !== void 0) return o(s, i), i; }, set(s, i) { n.has(s) ? n.set(s, i) : o(s, i); } }; }, Js = "!", Zs = ":", wp = Zs.length, xp = (e) => { const { prefix: t, experimentalParseClassName: n } = e; let r = (o) => { const s = []; let i = 0, a = 0, l = 0, c; for (let b = 0; b < o.length; b++) { let h = o[b]; if (i === 0 && a === 0) { if (h === Zs) { s.push(o.slice(l, b)), l = b + wp; continue; } if (h === "/") { c = b; continue; } } h === "[" ? i++ : h === "]" ? i-- : h === "(" ? a++ : h === ")" && a--; } const u = s.length === 0 ? o : o.substring(l), d = Sp(u), p = d !== u, m = c && c > l ? c - l : void 0; return { modifiers: s, hasImportantModifier: p, baseClassName: d, maybePostfixModifierPosition: m }; }; if (t) { const o = t + Zs, s = r; r = (i) => i.startsWith(o) ? s(i.substring(o.length)) : { isExternal: !0, modifiers: [], hasImportantModifier: !1, baseClassName: i, maybePostfixModifierPosition: void 0 }; } if (n) { const o = r; r = (s) => n({ className: s, parseClassName: o }); } return r; }, Sp = (e) => e.endsWith(Js) ? e.substring(0, e.length - 1) : e.startsWith(Js) ? e.substring(1) : e, Cp = (e) => { const t = Object.fromEntries(e.orderSensitiveModifiers.map((r) => [r, !0])); return (r) => { if (r.length <= 1) return r; const o = []; let s = []; return r.forEach((i) => { i[0] === "[" || t[i] ? (o.push(...s.sort(), i), s = []) : s.push(i); }), o.push(...s.sort()), o; }; }, Ep = (e) => ({ cache: yp(e.cacheSize), parseClassName: xp(e), sortModifiers: Cp(e), ...mp(e) }), kp = /\s+/, Rp = (e, t) => { const { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: o, sortModifiers: s } = t, i = [], a = e.trim().split(kp); let l = ""; for (let c = a.length - 1; c >= 0; c -= 1) { const u = a[c], { isExternal: d, modifiers: p, hasImportantModifier: m, baseClassName: b, maybePostfixModifierPosition: h } = n(u); if (d) { l = u + (l.length > 0 ? " " + l : l); continue; } let g = !!h, y = r(g ? b.substring(0, h) : b); if (!y) { if (!g) { l = u + (l.length > 0 ? " " + l : l); continue; } if (y = r(b), !y) { l = u + (l.length > 0 ? " " + l : l); continue; } g = !1; } const w = s(p).join(":"), S = m ? w + Js : w, x = S + y; if (i.includes(x)) continue; i.push(x); const E = o(y, g); for (let R = 0; R < E.length; ++R) { const k = E[R]; i.push(S + k); } l = u + (l.length > 0 ? " " + l : l); } return l; }; function _p() { let e = 0, t, n, r = ""; for (; e < arguments.length; ) (t = arguments[e++]) && (n = Ac(t)) && (r && (r += " "), r += n); return r; } const Ac = (e) => { if (typeof e == "string") return e; let t, n = ""; for (let r = 0; r < e.length; r++) e[r] && (t = Ac(e[r])) && (n && (n += " "), n += t); return n; }; function Tp(e, ...t) { let n, r, o, s = i; function i(l) { const c = t.reduce((u, d) => d(u), e()); return n = Ep(c), r = n.cache.get, o = n.cache.set, s = a, a(l); } function a(l) { const c = r(l); if (c) return c; const u = Rp(l, n); return o(l, u), u; } return function() { return s(_p.apply(null, arguments)); }; } const Ae = (e) => { const t = (n) => n[e] || []; return t.isThemeGetter = !0, t; }, Oc = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Nc = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Pp = /^\d+\/\d+$/, Ap = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Op = /\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$/, Np = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, Ip = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Mp = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, En = (e) => Pp.test(e), se = (e) => !!e && !Number.isNaN(Number(e)), Vt = (e) => !!e && Number.isInteger(Number(e)), us = (e) => e.endsWith("%") && se(e.slice(0, -1)), Ot = (e) => Ap.test(e), Dp = () => !0, Lp = (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. Op.test(e) && !Np.test(e) ), Ic = () => !1, Up = (e) => Ip.test(e), $p = (e) => Mp.test(e), Fp = (e) => !V(e) && !H(e), jp = (e) => Fn(e, Lc, Ic), V = (e) => Oc.test(e), ln = (e) => Fn(e, Uc, Lp), ds = (e) => Fn(e, Hp, se), za = (e) => Fn(e, Mc, Ic), zp = (e) => Fn(e, Dc, $p), Ur = (e) => Fn(e, $c, Up), H = (e) => Nc.test(e), tr = (e) => jn(e, Uc), Bp = (e) => jn(e, Kp), Ba = (e) => jn(e, Mc), Wp = (e) => jn(e, Lc), Vp = (e) => jn(e, Dc), $r = (e) => jn(e, $c, !0), Fn = (e, t, n) => { const r = Oc.exec(e); return r ? r[1] ? t(r[1]) : n(r[2]) : !1; }, jn = (e, t, n = !1) => { const r = Nc.exec(e); return r ? r[1] ? t(r[1]) : n : !1; }, Mc = (e) => e === "position" || e === "percentage", Dc = (e) => e === "image" || e === "url", Lc = (e) => e === "length" || e === "size" || e === "bg-size", Uc = (e) => e === "length", Hp = (e) => e === "number", Kp = (e) => e === "family-name", $c = (e) => e === "shadow", Gp = () => { const e = Ae("color"), t = Ae("font"), n = Ae("text"), r = Ae("font-weight"), o = Ae("tracking"), s = Ae("leading"), i = Ae("breakpoint"), a = Ae("container"), l = Ae("spacing"), c = Ae("radius"), u = Ae("shadow"), d = Ae("inset-shadow"), p = Ae("text-shadow"), m = Ae("drop-shadow"), b = Ae("blur"), h = Ae("perspective"), g = Ae("aspect"), y = Ae("ease"), w = Ae("animate"), S = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], x = () => [ "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" ], E = () => [...x(), H, V], R = () => ["auto", "hidden", "clip", "visible", "scroll"], k = () => ["auto", "contain", "none"], C = () => [H, V, l], M = () => [En, "full", "auto", ...C()], I = () => [Vt, "none", "subgrid", H, V], T = () => ["auto", { span: ["full", Vt, H, V] }, Vt, H, V], U = () => [Vt, "auto", H, V], z = () => ["auto", "min", "max", "fr", H, V], D = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], K = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], j = () => ["auto", ...C()], $ = () => [En, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...C()], A = () => [e, H, V], L = () => [...x(), Ba, za, { position: [H, V] }], Z = () => ["no-repeat", { repeat: ["", "x", "y", "space", "round"] }], N = () => ["auto", "cover", "contain", Wp, jp, { size: [H, V] }], B = () => [us, tr, ln], W = () => [ // Deprecated since Tailwind CSS v4.0.0 "", "none", "full", c, H, V ], X = () => ["", se, tr, ln], fe = () => ["solid", "dashed", "dotted", "double"], q = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], F = () => [se, us, Ba, za], ae = () => [ // Deprecated since Tailwind CSS v4.0.0 "", "none", b, H, V ], le = () => ["none", se, H, V], Y = () => ["none", se, H, V], oe = () => [se, H, V], ee = () => [En, "full", ...C()]; return { cacheSize: 500, theme: { animate: ["spin", "ping", "pulse", "bounce"], aspect: ["video"], blur: [Ot], breakpoint: [Ot], color: [Dp], container: [Ot], "drop-shadow": [Ot], ease: ["in", "out", "in-out"], font: [Fp], "font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"], "inset-shadow": [Ot], leading: ["none", "tight", "snug", "normal", "relaxed", "loose"], perspective: ["dramatic", "near", "normal", "midrange", "distant", "none"], radius: [Ot], shadow: [Ot], spacing: ["px", se], text: [Ot], "text-shadow": [Ot], tracking: ["tighter", "tight", "normal", "wide", "wider", "widest"] }, classGroups: { // -------------- // --- Layout --- // -------------- /** * Aspect Ratio * @see https://tailwindcss.com/docs/aspect-ratio */ aspect: [{ aspect: ["auto", "square", En, V, H, g] }], /** * 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: [se, V, H, a] }], /** * Break After * @see https://tailwindcss.com/docs/break-after */ "break-after": [{ "break-after": S() }], /** * Break Before * @see https://tailwindcss.com/docs/break-before */ "break-before": [{ "break-before": S() }], /** * 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: E() }], /** * Overflow * @see https://tailwindcss.com/docs/overflow */ overflow: [{ overflow: R() }], /** * Overflow X * @see https://tailwindcss.com/docs/overflow */ "overflow-x": [{ "overflow-x": R() }], /** * Overflow Y * @see https://tailwindcss.com/docs/overflow */ "overflow-y": [{ "overflow-y": R() }], /** * Overscroll Behavior * @see https://tailwindcss.com/docs/overscroll-behavior */ overscroll: [{ overscroll: k() }], /** * Overscroll Behavior X * @see https://tailwindcss.com/docs/overscroll-behavior */ "overscroll-x": [{ "overscroll-x": k() }], /** * Overscroll Behavior Y * @see https://tailwindcss.com/docs/overscroll-behavior */ "overscroll-y": [{ "overscroll-y": k() }], /** * 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: M() }], /** * Right / Left * @see https://tailwindcss.com/docs/top-right-bottom-left */ "inset-x": [{ "inset-x": M() }], /** * Top / Bottom * @see https://tailwindcss.com/docs/top-right-bottom-left */ "inset-y": [{ "inset-y": M() }], /** * Start * @see https://tailwindcss.com/docs/top-right-bottom-left */ start: [{ start: M() }], /** * End * @see https://tailwindcss.com/docs/top-right-bottom-left */ end: [{ end: M() }], /** * Top * @see https://tailwindcss.com/docs/top-right-bottom-left */ top: [{ top: M() }], /** * Right * @see https://tailwindcss.com/docs/top-right-bottom-left */ right: [{ right: M() }], /** * Bottom * @see https://tailwindcss.com/docs/top-right-bottom-left */ bottom: [{ bottom: M() }], /** * Left * @see https://tailwindcss.com/docs/top-right-bottom-left */ left: [{ left: M() }], /** * Visibility * @see https://tailwindcss.com/docs/visibility */ visibility: ["visible", "invisible", "collapse"], /** * Z-Index * @see https://tailwindcss.com/docs/z-index */ z: [{ z: [Vt, "auto", H, V] }], // ------------------------ // --- Flexbox and Grid --- // ------------------------ /** * Flex Basis * @see https://tailwindcss.com/docs/flex-basis */ basis: [{ basis: [En, "full", "auto", a, ...C()] }], /** * 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: [se, En, "auto", "initial", "none", V] }], /** * Flex Grow * @see https://tailwindcss.com/docs/flex-grow */ grow: [{ grow: ["", se, H, V] }], /** * Flex Shrink * @see https://tailwindcss.com/docs/flex-shrink */ shrink: [{ shrink: ["", se, H, V] }], /** * Order * @see https://tailwindcss.com/docs/order */ order: [{ order: [Vt, "first", "last", "none", H, V] }], /** * Grid Template Columns * @see https://tailwindcss.com/docs/grid-template-columns */ "grid-cols": [{ "grid-cols": I() }], /** * Grid Column Start / End * @see https://tailwindcss.com/docs/grid-column */ "col-start-end": [{ col: T() }], /** * 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": I() }], /** * Grid Row Start / End * @see https://tailwindcss.com/docs/grid-row */ "row-start-end": [{ row: T() }], /** * 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": z() }], /** * Grid Auto Rows * @see https://tailwindcss.com/docs/grid-auto-rows */ "auto-rows": [{ "auto-rows": z() }], /** * Gap * @see https://tailwindcss.com/docs/gap */ gap: [{ gap: C() }], /** * Gap X * @see https://tailwindcss.com/docs/gap */ "gap-x": [{ "gap-x": C() }], /** * Gap Y * @see https://tailwindcss.com/docs/gap */ "gap-y": [{ "gap-y": C() }], /** * Justify Content * @see https://tailwindcss.com/docs/justify-content */ "justify-content": [{ justify: [...D(), "normal"] }], /** * Justify Items * @see https://tailwindcss.com/docs/justify-items */ "justify-items": [{ "justify-items": [...K(), "normal"] }], /** * Justify Self * @see https://tailwindcss.com/docs/justify-self */ "justify-self": [{ "justify-self": ["auto", ...K()] }], /** * Align Content * @see https://tailwindcss.com/docs/align-content */ "align-content": [{ content: ["normal", ...D()] }], /** * Align Items * @see https://tailwindcss.com/docs/align-items */ "align-items": [{ items: [...K(), { baseline: ["", "last"] }] }], /** * Align Self * @see https://tailwindcss.com/docs/align-self */ "align-self": [{ self: ["auto", ...K(), { baseline: ["", "last"] }] }], /** * Place Content * @see https://tailwindcss.com/docs/place-content */ "place-content": [{ "place-content": D() }], /** * Place Items * @see https://tailwindcss.com/docs/place-items */ "place-items": [{ "place-items": [...K(), "baseline"] }], /** * Place Self * @see https://tailwindcss.com/docs/place-self */ "place-self": [{ "place-self": ["auto", ...K()] }], // Spacing /** * Padding * @see https://tailwindcss.com/docs/padding */ p: [{ p: C() }], /** * Padding X * @see https://tailwindcss.com/docs/padding */ px: [{ px: C() }], /** * Padding Y * @see https://tailwindcss.com/docs/padding */ py: [{ py: C() }], /** * Padding Start * @see https://tailwindcss.com/docs/padding */ ps: [{ ps: C() }], /** * Padding End * @see https://tailwindcss.com/docs/padding */ pe: [{ pe: C() }], /** * Padding Top * @see https://tailwindcss.com/docs/padding */ pt: [{ pt: C() }], /** * Padding Right * @see https://tailwindcss.com/docs/padding */ pr: [{ pr: C() }], /** * Padding Bottom * @see https://tailwindcss.com/docs/padding */ pb: [{ pb: C() }], /** * Padding Left * @see https://tailwindcss.com/docs/padding */ pl: [{ pl: C() }], /** * Margin * @see https://tailwindcss.com/docs/margin */ m: [{ m: j() }], /** * Margin X * @see https://tailwindcss.com/docs/margin */ mx: [{ mx: j() }], /** * Margin Y * @see https://tailwindcss.com/docs/margin */ my: [{ my: j() }], /** * Margin Start * @see https://tailwindcss.com/docs/margin */ ms: [{ ms: j() }], /** * Margin End * @see https://tailwindcss.com/docs/margin */ me: [{ me: j() }], /** * Margin Top * @see https://tailwindcss.com/docs/margin */ mt: [{ mt: j() }], /** * Margin Right * @see https://tailwindcss.com/docs/margin */ mr: [{ mr: j() }], /** * Margin Bottom * @see https://tailwindcss.com/docs/margin */ mb: [{ mb: j() }], /** * Margin Left * @see https://tailwindcss.com/docs/margin */ ml: [{ ml: j() }], /** * Space Between X * @see https://tailwindcss.com/docs/margin#adding-space-between-children */ "space-x": [{ "space-x": C() }], /** * 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": C() }], /** * 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: $() }], /** * Width * @see https://tailwindcss.com/docs/width */ w: [{ w: [a, "screen", ...$()] }], /** * Min-Width * @see https://tailwindcss.com/docs/min-width */ "min-w": [{ "min-w": [ a, "screen", /** Deprecated. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */ "none", ...$() ] }], /** * Max-Width * @see https://tailwindcss.com/docs/max-width */ "max-w": [{ "max-w": [ a, "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: [i] }, ...$() ] }], /** * Height * @see https://tailwindcss.com/docs/height */ h: [{ h: ["screen", "lh", ...$()] }], /** * Min-Height * @see https://tailwindcss.com/docs/min-height */ "min-h": [{ "min-h": ["screen", "lh", "none", ...$()] }], /** * Max-Height * @see https://tailwindcss.com/docs/max-height */ "max-h": [{ "max-h": ["screen", "lh", ...$()] }], // ------------------ // --- Typography --- // ------------------ /** * Font Size * @see https://tailwindcss.com/docs/font-size */ "font-size": [{ text: ["base", n, tr, ln] }], /** * 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, H, ds] }], /** * 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", us, V] }], /** * Font Family * @see https://tailwindcss.com/docs/font-family */ "font-family": [{ font: [Bp, V, 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: [o, H, V] }], /** * Line Clamp * @see https://tailwindcss.com/docs/line-clamp */ "line-clamp": [{ "line-clamp": [se, "none", H, ds] }], /** * 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 */ s, ...C() ] }], /** * List Style Image * @see https://tailwindcss.com/docs/list-style-image */ "list-image": [{ "list-image": ["none", H, V] }], /** * 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", H, V] }], /** * 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: A() }], /** * Text Color * @see https://tailwindcss.com/docs/text-color */ "text-color": [{ text: A() }], /** * 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: [...fe(), "wavy"] }], /** * Text Decoration Thickness * @see https://tailwindcss.com/docs/text-decoration-thickness */ "text-decoration-thickness": [{ decoration: [se, "from-font", "auto", H, ln] }], /** * Text Decoration Color * @see https://tailwindcss.com/docs/text-decoration-color */ "text-decoration-color": [{ decoration: A() }], /** * Text Underline Offset * @see https://tailwindcss.com/docs/text-underline-offset */ "underline-offset": [{ "underline-offset": [se, "auto", H, V] }], /** * 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: C() }], /** * Vertical Alignment * @see https://tailwindcss.com/docs/vertical-align */ "vertical-align": [{ align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", H, V] }], /** * 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", H, V] }], // ------------------- // --- 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: L() }], /** * Background Repeat * @see https://tailwindcss.com/docs/background-repeat */ "bg-repeat": [{ bg: Z() }], /** * Background Size * @see https://tailwindcss.com/docs/background-size */ "bg-size": [{ bg: N() }], /** * Background Image * @see https://tailwindcss.com/docs/background-image */ "bg-image": [{ bg: ["none", { linear: [{ to: ["t", "tr", "r", "br", "b", "bl", "l", "tl"] }, Vt, H, V], radial: ["", H, V], conic: [Vt, H, V] }, Vp, zp] }], /** * Background Color * @see https://tailwindcss.com/docs/background-color */ "bg-color": [{ bg: A() }], /** * Gradient Color Stops From Position * @see https://tailwindcss.com/docs/gradient-color-stops */ "gradient-from-pos": [{ from: B() }], /** * Gradient Color Stops Via Position * @see https://tailwindcss.com/docs/gradient-color-stops */ "gradient-via-pos": [{ via: B() }], /** * Gradient Color Stops To Position * @see https://tailwindcss.com/docs/gradient-color-stops */ "gradient-to-pos": [{ to: B() }], /** * Gradient Color Stops From * @see https://tailwindcss.com/docs/gradient-color-stops */ "gradient-from": [{ from: A() }], /** * Gradient Color Stops Via * @see https://tailwindcss.com/docs/gradient-color-stops */ "gradient-via": [{ via: A() }], /** * Gradient Color Stops To * @see https://tailwindcss.com/docs/gradient-color-stops */ "gradient-to": [{ to: A() }], // --------------- // --- 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: X() }], /** * Border Width X * @see https://tailwindcss.com/docs/border-width */ "border-w-x": [{ "border-x": X() }], /** * Border Width Y * @see https://tailwindcss.com/docs/border-width */ "border-w-y": [{ "border-y": X() }], /** * Border Width Start * @see https://tailwindcss.com/docs/border-width */ "border-w-s": [{ "border-s": X() }], /** * Border Width End * @see https://tailwindcss.com/docs/border-width */ "border-w-e": [{ "border-e": X() }], /** * Border Width Top * @see https://tailwindcss.com/docs/border-width */ "border-w-t": [{ "border-t": X() }], /** * Border Width Right * @see https://tailwindcss.com/docs/border-width */ "border-w-r": [{ "border-r": X() }], /** * Border Width Bottom * @see https://tailwindcss.com/docs/border-width */ "border-w-b": [{ "border-b": X() }], /** * Border Width Left * @see https://tailwindcss.com/docs/border-width */ "border-w-l": [{ "border-l": X() }], /** * Divide Width X * @see https://tailwindcss.com/docs/border-width#between-children */ "divide-x": [{ "divide-x": X() }], /** * 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": X() }], /** * 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: [...fe(), "hidden", "none"] }], /** * Divide Style * @see https://tailwindcss.com/docs/border-style#setting-the-divider-style */ "divide-style": [{ divide: [...fe(), "hidden", "none"] }], /** * Border Color * @see https://tailwindcss.com/docs/border-color */ "border-color": [{ border: A() }], /** * Border Color X * @see https://tailwindcss.com/docs/border-color */ "border-color-x": [{ "border-x": A() }], /** * Border Color Y * @see https://tailwindcss.com/docs/border-color */ "border-color-y": [{ "border-y": A() }], /** * Border Color S * @see https://tailwindcss.com/docs/border-color */ "border-color-s": [{ "border-s": A() }], /** * Border Color E * @see https://tailwindcss.com/docs/border-color */ "border-color-e": [{ "border-e": A() }], /** * Border Color Top * @see https://tailwindcss.com/docs/border-color */ "border-color-t": [{ "border-t": A() }], /** * Border Color Right * @see https://tailwindcss.com/docs/border-color */ "border-color-r": [{ "border-r": A() }], /** * Border Color Bottom * @see https://tailwindcss.com/docs/border-color */ "border-color-b": [{ "border-b": A() }], /** * Border Color Left * @see https://tailwindcss.com/docs/border-color */ "border-color-l": [{ "border-l": A() }], /** * Divide Color * @see https://tailwindcss.com/docs/divide-color */ "divide-color": [{ divide: A() }], /** * Outline Style * @see https://tailwindcss.com/docs/outline-style */ "outline-style": [{ outline: [...fe(), "none", "hidden"] }], /** * Outline Offset * @see https://tailwindcss.com/docs/outline-offset */ "outline-offset": [{ "outline-offset": [se, H, V] }], /** * Outline Width * @see https://tailwindcss.com/docs/outline-width */ "outline-w": [{ outline: ["", se, tr, ln] }], /** * Outline Color * @see https://tailwindcss.com/docs/outline-color */ "outline-color": [{ outline: A() }], // --------------- // --- Effects --- // --------------- /** * Box Shadow * @see https://tailwindcss.com/docs/box-shadow */ shadow: [{ shadow: [ // Deprecated since Tailwind CSS v4.0.0 "", "none", u, $r, Ur ] }], /** * Box Shadow Color * @see https://tailwindcss.com/docs/box-shadow#setting-the-shadow-color */ "shadow-color": [{ shadow: A() }], /** * Inset Box Shadow * @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-shadow */ "inset-shadow": [{ "inset-shadow": ["none", d, $r, Ur] }], /** * Inset Box Shadow Color * @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-shadow-color */ "inset-shadow-color": [{ "inset-shadow": A() }], /** * Ring Width * @see https://tailwindcss.com/docs/box-shadow#adding-a-ring */ "ring-w": [{ ring: X() }], /** * 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: A() }], /** * Ring Offset Width * @see https://v3.tailwindcss.com/docs/ring-offset-width