UNPKG

@gulibs/vgrove-ui

Version:

VGrove UI component library built with HeroUI and React

1,820 lines 368 kB
var eo = Object.defineProperty; var to = (e, t, r) => t in e ? eo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r; var pe = (e, t, r) => to(e, typeof t != "symbol" ? t + "" : t, r); import Q, { clsx as ro } from "clsx"; import { jsxs as Z, jsx as u, Fragment as dt } from "react/jsx-runtime"; import { Icon as Ce } from "@iconify/react"; import no, { isUndefined as so, first as Cr, isString as io } from "lodash"; import { Button as Ye, Switch as Gr, ButtonGroup as oo, Tooltip as jr, Dropdown as Rr, DropdownTrigger as Mr, DropdownMenu as Nr, DropdownItem as Vr, Input as ao, Textarea as lo, Select as ws, Autocomplete as vs, Checkbox as co, CheckboxGroup as uo, Radio as fo, RadioGroup as ho, Slider as mo, DatePicker as po, TimeInput as go, Breadcrumbs as bo, BreadcrumbItem as wo, ScrollShadow as ys, Navbar as vo, NavbarBrand as yo, NavbarContent as xo, HeroUIProvider as ko, Progress as Co } from "@heroui/react"; import * as $n from "react"; import ce, { useState as be, useEffect as ye, createContext as Nt, useContext as it, useMemo as ie, useCallback as ee, useRef as qt, forwardRef as Hr, useId as So } from "react"; import { redirect as Ie, useLocation as Vt, useMatches as xs, useLoaderData as Io, useParams as Po, Link as Eo, useNavigate as Ao } from "react-router"; import To from "react-markdown"; import { Helmet as Ro, HelmetProvider as Mo } from "react-helmet-async"; import qr from "styled-components"; import { createFromIconfontCN as No } from "@ant-design/icons"; import { createPortal as Vo } from "react-dom"; import { X as Kr, AlertTriangle as Fo, Lock as Lo, Shield as _o } from "lucide-react"; const Zr = "-", Oo = (e) => { const t = Uo(e), { conflictingClassGroups: r, conflictingClassGroupModifiers: n } = e; return { getClassGroupId: (o) => { const a = o.split(Zr); return a[0] === "" && a.length !== 1 && a.shift(), ks(a, t) || Do(o); }, getConflictingClassGroupIds: (o, a) => { const l = r[o] || []; return a && n[o] ? [...l, ...n[o]] : l; } }; }, ks = (e, t) => { if (e.length === 0) return t.classGroupId; const r = e[0], n = t.nextPart.get(r), s = n ? ks(e.slice(1), n) : void 0; if (s) return s; if (t.validators.length === 0) return; const i = e.join(Zr); return t.validators.find(({ validator: o }) => o(i))?.classGroupId; }, Bn = /^\[(.+)\]$/, Do = (e) => { if (Bn.test(e)) { const t = Bn.exec(e)[1], r = t?.substring(0, t.indexOf(":")); if (r) return "arbitrary.." + r; } }, Uo = (e) => { const { theme: t, classGroups: r } = e, n = { nextPart: /* @__PURE__ */ new Map(), validators: [] }; for (const s in r) Fr(r[s], n, s, t); return n; }, Fr = (e, t, r, n) => { e.forEach((s) => { if (typeof s == "string") { const i = s === "" ? t : Wn(t, s); i.classGroupId = r; return; } if (typeof s == "function") { if (zo(s)) { Fr(s(n), t, r, n); return; } t.validators.push({ validator: s, classGroupId: r }); return; } Object.entries(s).forEach(([i, o]) => { Fr(o, Wn(t, i), r, n); }); }); }, Wn = (e, t) => { let r = e; return t.split(Zr).forEach((n) => { r.nextPart.has(n) || r.nextPart.set(n, { nextPart: /* @__PURE__ */ new Map(), validators: [] }), r = r.nextPart.get(n); }), r; }, zo = (e) => e.isThemeGetter, $o = (e) => { if (e < 1) return { get: () => { }, set: () => { } }; let t = 0, r = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map(); const s = (i, o) => { r.set(i, o), t++, t > e && (t = 0, n = r, r = /* @__PURE__ */ new Map()); }; return { get(i) { let o = r.get(i); if (o !== void 0) return o; if ((o = n.get(i)) !== void 0) return s(i, o), o; }, set(i, o) { r.has(i) ? r.set(i, o) : s(i, o); } }; }, Lr = "!", _r = ":", Bo = _r.length, Wo = (e) => { const { prefix: t, experimentalParseClassName: r } = e; let n = (s) => { const i = []; let o = 0, a = 0, l = 0, b; for (let p = 0; p < s.length; p++) { let h = s[p]; if (o === 0 && a === 0) { if (h === _r) { i.push(s.slice(l, p)), l = p + Bo; continue; } if (h === "/") { b = p; continue; } } h === "[" ? o++ : h === "]" ? o-- : h === "(" ? a++ : h === ")" && a--; } const f = i.length === 0 ? s : s.substring(l), y = Go(f), c = y !== f, v = b && b > l ? b - l : void 0; return { modifiers: i, hasImportantModifier: c, baseClassName: y, maybePostfixModifierPosition: v }; }; if (t) { const s = t + _r, i = n; n = (o) => o.startsWith(s) ? i(o.substring(s.length)) : { isExternal: !0, modifiers: [], hasImportantModifier: !1, baseClassName: o, maybePostfixModifierPosition: void 0 }; } if (r) { const s = n; n = (i) => r({ className: i, parseClassName: s }); } return n; }, Go = (e) => e.endsWith(Lr) ? e.substring(0, e.length - 1) : e.startsWith(Lr) ? e.substring(1) : e, jo = (e) => { const t = Object.fromEntries(e.orderSensitiveModifiers.map((n) => [n, !0])); return (n) => { if (n.length <= 1) return n; const s = []; let i = []; return n.forEach((o) => { o[0] === "[" || t[o] ? (s.push(...i.sort(), o), i = []) : i.push(o); }), s.push(...i.sort()), s; }; }, Ho = (e) => ({ cache: $o(e.cacheSize), parseClassName: Wo(e), sortModifiers: jo(e), ...Oo(e) }), qo = /\s+/, Ko = (e, t) => { const { parseClassName: r, getClassGroupId: n, getConflictingClassGroupIds: s, sortModifiers: i } = t, o = [], a = e.trim().split(qo); let l = ""; for (let b = a.length - 1; b >= 0; b -= 1) { const f = a[b], { isExternal: y, modifiers: c, hasImportantModifier: v, baseClassName: p, maybePostfixModifierPosition: h } = r(f); if (y) { l = f + (l.length > 0 ? " " + l : l); continue; } let g = !!h, I = n(g ? p.substring(0, h) : p); if (!I) { if (!g) { l = f + (l.length > 0 ? " " + l : l); continue; } if (I = n(p), !I) { l = f + (l.length > 0 ? " " + l : l); continue; } g = !1; } const C = i(c).join(":"), P = v ? C + Lr : C, M = P + I; if (o.includes(M)) continue; o.push(M); const N = s(I, g); for (let B = 0; B < N.length; ++B) { const E = N[B]; o.push(P + E); } l = f + (l.length > 0 ? " " + l : l); } return l; }; function Zo() { let e = 0, t, r, n = ""; for (; e < arguments.length; ) (t = arguments[e++]) && (r = Cs(t)) && (n && (n += " "), n += r); return n; } const Cs = (e) => { if (typeof e == "string") return e; let t, r = ""; for (let n = 0; n < e.length; n++) e[n] && (t = Cs(e[n])) && (r && (r += " "), r += t); return r; }; function Yo(e, ...t) { let r, n, s, i = o; function o(l) { const b = t.reduce((f, y) => y(f), e()); return r = Ho(b), n = r.cache.get, s = r.cache.set, i = a, a(l); } function a(l) { const b = n(l); if (b) return b; const f = Ko(l, r); return s(l, f), f; } return function() { return i(Zo.apply(null, arguments)); }; } const Ve = (e) => { const t = (r) => r[e] || []; return t.isThemeGetter = !0, t; }, Ss = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Is = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Xo = /^\d+\/\d+$/, Jo = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Qo = /\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$/, ea = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, ta = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, ra = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, At = (e) => Xo.test(e), fe = (e) => !!e && !Number.isNaN(Number(e)), mt = (e) => !!e && Number.isInteger(Number(e)), Sr = (e) => e.endsWith("%") && fe(e.slice(0, -1)), at = (e) => Jo.test(e), na = () => !0, sa = (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. Qo.test(e) && !ea.test(e) ), Ps = () => !1, ia = (e) => ta.test(e), oa = (e) => ra.test(e), aa = (e) => !X(e) && !J(e), la = (e) => Ft(e, Ts, Ps), X = (e) => Ss.test(e), yt = (e) => Ft(e, Rs, sa), Ir = (e) => Ft(e, ha, fe), Gn = (e) => Ft(e, Es, Ps), ca = (e) => Ft(e, As, oa), or = (e) => Ft(e, Ms, ia), J = (e) => Is.test(e), Ot = (e) => Lt(e, Rs), ua = (e) => Lt(e, ma), jn = (e) => Lt(e, Es), da = (e) => Lt(e, Ts), fa = (e) => Lt(e, As), ar = (e) => Lt(e, Ms, !0), Ft = (e, t, r) => { const n = Ss.exec(e); return n ? n[1] ? t(n[1]) : r(n[2]) : !1; }, Lt = (e, t, r = !1) => { const n = Is.exec(e); return n ? n[1] ? t(n[1]) : r : !1; }, Es = (e) => e === "position" || e === "percentage", As = (e) => e === "image" || e === "url", Ts = (e) => e === "length" || e === "size" || e === "bg-size", Rs = (e) => e === "length", ha = (e) => e === "number", ma = (e) => e === "family-name", Ms = (e) => e === "shadow", pa = () => { const e = Ve("color"), t = Ve("font"), r = Ve("text"), n = Ve("font-weight"), s = Ve("tracking"), i = Ve("leading"), o = Ve("breakpoint"), a = Ve("container"), l = Ve("spacing"), b = Ve("radius"), f = Ve("shadow"), y = Ve("inset-shadow"), c = Ve("text-shadow"), v = Ve("drop-shadow"), p = Ve("blur"), h = Ve("perspective"), g = Ve("aspect"), I = Ve("ease"), C = Ve("animate"), P = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], M = () => [ "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" ], N = () => [...M(), J, X], B = () => ["auto", "hidden", "clip", "visible", "scroll"], E = () => ["auto", "contain", "none"], A = () => [J, X, l], V = () => [At, "full", "auto", ...A()], O = () => [mt, "none", "subgrid", J, X], H = () => ["auto", { span: ["full", mt, J, X] }, mt, J, X], L = () => [mt, "auto", J, X], q = () => ["auto", "min", "max", "fr", J, X], oe = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], he = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], ae = () => ["auto", ...A()], re = () => [At, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...A()], U = () => [e, J, X], le = () => [...M(), jn, Gn, { position: [J, X] }], de = () => ["no-repeat", { repeat: ["", "x", "y", "space", "round"] }], ve = () => ["auto", "cover", "contain", da, la, { size: [J, X] }], ne = () => [Sr, Ot, yt], te = () => [ // Deprecated since Tailwind CSS v4.0.0 "", "none", "full", b, J, X ], xe = () => ["", fe, Ot, yt], j = () => ["solid", "dashed", "dotted", "double"], Ue = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], we = () => [fe, Sr, jn, Gn], qe = () => [ // Deprecated since Tailwind CSS v4.0.0 "", "none", p, J, X ], Oe = () => ["none", fe, J, X], ze = () => ["none", fe, J, X], Qe = () => [fe, J, X], Pe = () => [At, "full", ...A()]; return { cacheSize: 500, theme: { animate: ["spin", "ping", "pulse", "bounce"], aspect: ["video"], blur: [at], breakpoint: [at], color: [na], container: [at], "drop-shadow": [at], ease: ["in", "out", "in-out"], font: [aa], "font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"], "inset-shadow": [at], leading: ["none", "tight", "snug", "normal", "relaxed", "loose"], perspective: ["dramatic", "near", "normal", "midrange", "distant", "none"], radius: [at], shadow: [at], spacing: ["px", fe], text: [at], "text-shadow": [at], tracking: ["tighter", "tight", "normal", "wide", "wider", "widest"] }, classGroups: { // -------------- // --- Layout --- // -------------- /** * Aspect Ratio * @see https://tailwindcss.com/docs/aspect-ratio */ aspect: [{ aspect: ["auto", "square", At, X, J, 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: [fe, X, J, a] }], /** * Break After * @see https://tailwindcss.com/docs/break-after */ "break-after": [{ "break-after": P() }], /** * Break Before * @see https://tailwindcss.com/docs/break-before */ "break-before": [{ "break-before": P() }], /** * 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: N() }], /** * Overflow * @see https://tailwindcss.com/docs/overflow */ overflow: [{ overflow: B() }], /** * Overflow X * @see https://tailwindcss.com/docs/overflow */ "overflow-x": [{ "overflow-x": B() }], /** * Overflow Y * @see https://tailwindcss.com/docs/overflow */ "overflow-y": [{ "overflow-y": B() }], /** * Overscroll Behavior * @see https://tailwindcss.com/docs/overscroll-behavior */ overscroll: [{ overscroll: E() }], /** * Overscroll Behavior X * @see https://tailwindcss.com/docs/overscroll-behavior */ "overscroll-x": [{ "overscroll-x": E() }], /** * Overscroll Behavior Y * @see https://tailwindcss.com/docs/overscroll-behavior */ "overscroll-y": [{ "overscroll-y": E() }], /** * 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: V() }], /** * Right / Left * @see https://tailwindcss.com/docs/top-right-bottom-left */ "inset-x": [{ "inset-x": V() }], /** * Top / Bottom * @see https://tailwindcss.com/docs/top-right-bottom-left */ "inset-y": [{ "inset-y": V() }], /** * Start * @see https://tailwindcss.com/docs/top-right-bottom-left */ start: [{ start: V() }], /** * End * @see https://tailwindcss.com/docs/top-right-bottom-left */ end: [{ end: V() }], /** * Top * @see https://tailwindcss.com/docs/top-right-bottom-left */ top: [{ top: V() }], /** * Right * @see https://tailwindcss.com/docs/top-right-bottom-left */ right: [{ right: V() }], /** * Bottom * @see https://tailwindcss.com/docs/top-right-bottom-left */ bottom: [{ bottom: V() }], /** * Left * @see https://tailwindcss.com/docs/top-right-bottom-left */ left: [{ left: V() }], /** * Visibility * @see https://tailwindcss.com/docs/visibility */ visibility: ["visible", "invisible", "collapse"], /** * Z-Index * @see https://tailwindcss.com/docs/z-index */ z: [{ z: [mt, "auto", J, X] }], // ------------------------ // --- Flexbox and Grid --- // ------------------------ /** * Flex Basis * @see https://tailwindcss.com/docs/flex-basis */ basis: [{ basis: [At, "full", "auto", a, ...A()] }], /** * 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: [fe, At, "auto", "initial", "none", X] }], /** * Flex Grow * @see https://tailwindcss.com/docs/flex-grow */ grow: [{ grow: ["", fe, J, X] }], /** * Flex Shrink * @see https://tailwindcss.com/docs/flex-shrink */ shrink: [{ shrink: ["", fe, J, X] }], /** * Order * @see https://tailwindcss.com/docs/order */ order: [{ order: [mt, "first", "last", "none", J, X] }], /** * Grid Template Columns * @see https://tailwindcss.com/docs/grid-template-columns */ "grid-cols": [{ "grid-cols": O() }], /** * Grid Column Start / End * @see https://tailwindcss.com/docs/grid-column */ "col-start-end": [{ col: H() }], /** * Grid Column Start * @see https://tailwindcss.com/docs/grid-column */ "col-start": [{ "col-start": L() }], /** * Grid Column End * @see https://tailwindcss.com/docs/grid-column */ "col-end": [{ "col-end": L() }], /** * Grid Template Rows * @see https://tailwindcss.com/docs/grid-template-rows */ "grid-rows": [{ "grid-rows": O() }], /** * Grid Row Start / End * @see https://tailwindcss.com/docs/grid-row */ "row-start-end": [{ row: H() }], /** * Grid Row Start * @see https://tailwindcss.com/docs/grid-row */ "row-start": [{ "row-start": L() }], /** * Grid Row End * @see https://tailwindcss.com/docs/grid-row */ "row-end": [{ "row-end": L() }], /** * 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": q() }], /** * Grid Auto Rows * @see https://tailwindcss.com/docs/grid-auto-rows */ "auto-rows": [{ "auto-rows": q() }], /** * Gap * @see https://tailwindcss.com/docs/gap */ gap: [{ gap: A() }], /** * Gap X * @see https://tailwindcss.com/docs/gap */ "gap-x": [{ "gap-x": A() }], /** * Gap Y * @see https://tailwindcss.com/docs/gap */ "gap-y": [{ "gap-y": A() }], /** * Justify Content * @see https://tailwindcss.com/docs/justify-content */ "justify-content": [{ justify: [...oe(), "normal"] }], /** * Justify Items * @see https://tailwindcss.com/docs/justify-items */ "justify-items": [{ "justify-items": [...he(), "normal"] }], /** * Justify Self * @see https://tailwindcss.com/docs/justify-self */ "justify-self": [{ "justify-self": ["auto", ...he()] }], /** * Align Content * @see https://tailwindcss.com/docs/align-content */ "align-content": [{ content: ["normal", ...oe()] }], /** * Align Items * @see https://tailwindcss.com/docs/align-items */ "align-items": [{ items: [...he(), { baseline: ["", "last"] }] }], /** * Align Self * @see https://tailwindcss.com/docs/align-self */ "align-self": [{ self: ["auto", ...he(), { baseline: ["", "last"] }] }], /** * Place Content * @see https://tailwindcss.com/docs/place-content */ "place-content": [{ "place-content": oe() }], /** * Place Items * @see https://tailwindcss.com/docs/place-items */ "place-items": [{ "place-items": [...he(), "baseline"] }], /** * Place Self * @see https://tailwindcss.com/docs/place-self */ "place-self": [{ "place-self": ["auto", ...he()] }], // Spacing /** * Padding * @see https://tailwindcss.com/docs/padding */ p: [{ p: A() }], /** * Padding X * @see https://tailwindcss.com/docs/padding */ px: [{ px: A() }], /** * Padding Y * @see https://tailwindcss.com/docs/padding */ py: [{ py: A() }], /** * Padding Start * @see https://tailwindcss.com/docs/padding */ ps: [{ ps: A() }], /** * Padding End * @see https://tailwindcss.com/docs/padding */ pe: [{ pe: A() }], /** * Padding Top * @see https://tailwindcss.com/docs/padding */ pt: [{ pt: A() }], /** * Padding Right * @see https://tailwindcss.com/docs/padding */ pr: [{ pr: A() }], /** * Padding Bottom * @see https://tailwindcss.com/docs/padding */ pb: [{ pb: A() }], /** * Padding Left * @see https://tailwindcss.com/docs/padding */ pl: [{ pl: A() }], /** * Margin * @see https://tailwindcss.com/docs/margin */ m: [{ m: ae() }], /** * Margin X * @see https://tailwindcss.com/docs/margin */ mx: [{ mx: ae() }], /** * Margin Y * @see https://tailwindcss.com/docs/margin */ my: [{ my: ae() }], /** * Margin Start * @see https://tailwindcss.com/docs/margin */ ms: [{ ms: ae() }], /** * Margin End * @see https://tailwindcss.com/docs/margin */ me: [{ me: ae() }], /** * Margin Top * @see https://tailwindcss.com/docs/margin */ mt: [{ mt: ae() }], /** * Margin Right * @see https://tailwindcss.com/docs/margin */ mr: [{ mr: ae() }], /** * Margin Bottom * @see https://tailwindcss.com/docs/margin */ mb: [{ mb: ae() }], /** * Margin Left * @see https://tailwindcss.com/docs/margin */ ml: [{ ml: ae() }], /** * Space Between X * @see https://tailwindcss.com/docs/margin#adding-space-between-children */ "space-x": [{ "space-x": A() }], /** * 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": A() }], /** * 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: re() }], /** * Width * @see https://tailwindcss.com/docs/width */ w: [{ w: [a, "screen", ...re()] }], /** * 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", ...re() ] }], /** * 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: [o] }, ...re() ] }], /** * Height * @see https://tailwindcss.com/docs/height */ h: [{ h: ["screen", "lh", ...re()] }], /** * Min-Height * @see https://tailwindcss.com/docs/min-height */ "min-h": [{ "min-h": ["screen", "lh", "none", ...re()] }], /** * Max-Height * @see https://tailwindcss.com/docs/max-height */ "max-h": [{ "max-h": ["screen", "lh", ...re()] }], // ------------------ // --- Typography --- // ------------------ /** * Font Size * @see https://tailwindcss.com/docs/font-size */ "font-size": [{ text: ["base", r, Ot, yt] }], /** * 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: [n, J, Ir] }], /** * 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", Sr, X] }], /** * Font Family * @see https://tailwindcss.com/docs/font-family */ "font-family": [{ font: [ua, X, 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: [s, J, X] }], /** * Line Clamp * @see https://tailwindcss.com/docs/line-clamp */ "line-clamp": [{ "line-clamp": [fe, "none", J, Ir] }], /** * 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 */ i, ...A() ] }], /** * List Style Image * @see https://tailwindcss.com/docs/list-style-image */ "list-image": [{ "list-image": ["none", J, X] }], /** * 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", J, X] }], /** * 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: U() }], /** * Text Color * @see https://tailwindcss.com/docs/text-color */ "text-color": [{ text: U() }], /** * 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: [...j(), "wavy"] }], /** * Text Decoration Thickness * @see https://tailwindcss.com/docs/text-decoration-thickness */ "text-decoration-thickness": [{ decoration: [fe, "from-font", "auto", J, yt] }], /** * Text Decoration Color * @see https://tailwindcss.com/docs/text-decoration-color */ "text-decoration-color": [{ decoration: U() }], /** * Text Underline Offset * @see https://tailwindcss.com/docs/text-underline-offset */ "underline-offset": [{ "underline-offset": [fe, "auto", J, X] }], /** * 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: A() }], /** * Vertical Alignment * @see https://tailwindcss.com/docs/vertical-align */ "vertical-align": [{ align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", J, X] }], /** * 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", J, X] }], // ------------------- // --- 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: de() }], /** * Background Size * @see https://tailwindcss.com/docs/background-size */ "bg-size": [{ bg: ve() }], /** * Background Image * @see https://tailwindcss.com/docs/background-image */ "bg-image": [{ bg: ["none", { linear: [{ to: ["t", "tr", "r", "br", "b", "bl", "l", "tl"] }, mt, J, X], radial: ["", J, X], conic: [mt, J, X] }, fa, ca] }], /** * Background Color * @see https://tailwindcss.com/docs/background-color */ "bg-color": [{ bg: U() }], /** * Gradient Color Stops From Position * @see https://tailwindcss.com/docs/gradient-color-stops */ "gradient-from-pos": [{ from: ne() }], /** * Gradient Color Stops Via Position * @see https://tailwindcss.com/docs/gradient-color-stops */ "gradient-via-pos": [{ via: ne() }], /** * Gradient Color Stops To Position * @see https://tailwindcss.com/docs/gradient-color-stops */ "gradient-to-pos": [{ to: ne() }], /** * Gradient Color Stops From * @see https://tailwindcss.com/docs/gradient-color-stops */ "gradient-from": [{ from: U() }], /** * Gradient Color Stops Via * @see https://tailwindcss.com/docs/gradient-color-stops */ "gradient-via": [{ via: U() }], /** * Gradient Color Stops To * @see https://tailwindcss.com/docs/gradient-color-stops */ "gradient-to": [{ to: U() }], // --------------- // --- Borders --- // --------------- /** * Border Radius * @see https://tailwindcss.com/docs/border-radius */ rounded: [{ rounded: te() }], /** * Border Radius Start * @see https://tailwindcss.com/docs/border-radius */ "rounded-s": [{ "rounded-s": te() }], /** * Border Radius End * @see https://tailwindcss.com/docs/border-radius */ "rounded-e": [{ "rounded-e": te() }], /** * Border Radius Top * @see https://tailwindcss.com/docs/border-radius */ "rounded-t": [{ "rounded-t": te() }], /** * Border Radius Right * @see https://tailwindcss.com/docs/border-radius */ "rounded-r": [{ "rounded-r": te() }], /** * Border Radius Bottom * @see https://tailwindcss.com/docs/border-radius */ "rounded-b": [{ "rounded-b": te() }], /** * Border Radius Left * @see https://tailwindcss.com/docs/border-radius */ "rounded-l": [{ "rounded-l": te() }], /** * Border Radius Start Start * @see https://tailwindcss.com/docs/border-radius */ "rounded-ss": [{ "rounded-ss": te() }], /** * Border Radius Start End * @see https://tailwindcss.com/docs/border-radius */ "rounded-se": [{ "rounded-se": te() }], /** * Border Radius End End * @see https://tailwindcss.com/docs/border-radius */ "rounded-ee": [{ "rounded-ee": te() }], /** * Border Radius End Start * @see https://tailwindcss.com/docs/border-radius */ "rounded-es": [{ "rounded-es": te() }], /** * Border Radius Top Left * @see https://tailwindcss.com/docs/border-radius */ "rounded-tl": [{ "rounded-tl": te() }], /** * Border Radius Top Right * @see https://tailwindcss.com/docs/border-radius */ "rounded-tr": [{ "rounded-tr": te() }], /** * Border Radius Bottom Right * @see https://tailwindcss.com/docs/border-radius */ "rounded-br": [{ "rounded-br": te() }], /** * Border Radius Bottom Left * @see https://tailwindcss.com/docs/border-radius */ "rounded-bl": [{ "rounded-bl": te() }], /** * Border Width * @see https://tailwindcss.com/docs/border-width */ "border-w": [{ border: xe() }], /** * Border Width X * @see https://tailwindcss.com/docs/border-width */ "border-w-x": [{ "border-x": xe() }], /** * Border Width Y * @see https://tailwindcss.com/docs/border-width */ "border-w-y": [{ "border-y": xe() }], /** * Border Width Start * @see https://tailwindcss.com/docs/border-width */ "border-w-s": [{ "border-s": xe() }], /** * Border Width End * @see https://tailwindcss.com/docs/border-width */ "border-w-e": [{ "border-e": xe() }], /** * Border Width Top * @see https://tailwindcss.com/docs/border-width */ "border-w-t": [{ "border-t": xe() }], /** * Border Width Right * @see https://tailwindcss.com/docs/border-width */ "border-w-r": [{ "border-r": xe() }], /** * Border Width Bottom * @see https://tailwindcss.com/docs/border-width */ "border-w-b": [{ "border-b": xe() }], /** * Border Width Left * @see https://tailwindcss.com/docs/border-width */ "border-w-l": [{ "border-l": xe() }], /** * Divide Width X * @see https://tailwindcss.com/docs/border-width#between-children */ "divide-x": [{ "divide-x": xe() }], /** * 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": xe() }], /** * 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: [...j(), "hidden", "none"] }], /** * Divide Style * @see https://tailwindcss.com/docs/border-style#setting-the-divider-style */ "divide-style": [{ divide: [...j(), "hidden", "none"] }], /** * Border Color * @see https://tailwindcss.com/docs/border-color */ "border-color": [{ border: U() }], /** * Border Color X * @see https://tailwindcss.com/docs/border-color */ "border-color-x": [{ "border-x": U() }], /** * Border Color Y * @see https://tailwindcss.com/docs/border-color */ "border-color-y": [{ "border-y": U() }], /** * Border Color S * @see https://tailwindcss.com/docs/border-color */ "border-color-s": [{ "border-s": U() }], /** * Border Color E * @see https://tailwindcss.com/docs/border-color */ "border-color-e": [{ "border-e": U() }], /** * Border Color Top * @see https://tailwindcss.com/docs/border-color */ "border-color-t": [{ "border-t": U() }], /** * Border Color Right * @see https://tailwindcss.com/docs/border-color */ "border-color-r": [{ "border-r": U() }], /** * Border Color Bottom * @see https://tailwindcss.com/docs/border-color */ "border-color-b": [{ "border-b": U() }], /** * Border Color Left * @see https://tailwindcss.com/docs/border-color */ "border-color-l": [{ "border-l": U() }], /** * Divide Color * @see https://tailwindcss.com/docs/divide-color */ "divide-color": [{ divide: U() }], /** * Outline Style * @see https://tailwindcss.com/docs/outline-style */ "outline-style": [{ outline: [...j(), "none", "hidden"] }], /** * Outline Offset * @see https://tailwindcss.com/docs/outline-offset */ "outline-offset": [{ "outline-offset": [fe, J, X] }], /** * Outline Width * @see https://tailwindcss.com/docs/outline-width */ "outline-w": [{ outline: ["", fe, Ot, yt] }], /** * Outline Color * @see https://tailwindcss.com/docs/outline-color */ "outline-color": [{ outline: U() }], // --------------- // --- Effects --- // --------------- /** * Box Shadow * @see https://tailwindcss.com/docs/box-shadow */ shadow: [{ shadow: [ // Deprecated since Tailwind CSS v4.0.0 "", "none", f, ar, or ] }], /** * Box Shadow Color * @see https://tailwindcss.com/docs/box-shadow#setting-the-shadow-color */ "shadow-color": [{ shadow: U() }], /** * Inset Box Shadow * @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-shadow */ "inset-shadow": [{ "inset-shadow": ["none", y, ar, or] }], /** * Inset Box Shadow Color * @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-shadow-color */ "inset-shadow-color": [{ "inset-shadow": U() }], /** * Ring Width * @see https://tailwindcss.com/docs/box-shadow#adding-a-ring */ "ring-w": [{ ring: xe() }], /** * 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: U() }], /** * 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": [fe, yt] }], /** * 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": U() }], /** * Inset Ring Width * @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-ring */ "inset-ring-w": [{ "inset-ring": xe() }], /** * Inset Ring Color * @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-ring-color */ "inset-ring-color": [{ "inset-ring": U() }], /** * Text Shadow * @see https://tailwindcss.com/docs/text-shadow */ "text-shadow": [{ "text-shadow": ["none", c, ar, or] }], /** * Text Shadow Color * @see https://tailwindcss.com/docs/text-shadow#setting-the-shadow-color */ "text-shadow-color": [{ "text-shadow": U() }], /** * Opacity * @see https://tailwindcss.com/docs/opacity */ opacity: [{ opacity: [fe, J, X] }], /** * Mix Blend Mode * @see https://tailwindcss.com/docs/mix-blend-mode */ "mix-blend": [{ "mix-blend": [...Ue(), "plus-darker", "plus-lighter"] }], /** * Background Blend Mode * @see https://tailwindcss.com/docs/background-blend-mode */ "bg-blend": [{ "bg-blend": Ue() }], /** * 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": [fe] }], "mask-image-linear-from-pos": [{ "mask-linear-from": we() }], "mask-image-linear-to-pos": [{ "mask-linear-to": we() }], "mask-image-linear-from-color": [{ "mask-linear-from": U() }], "mask-image-linear-to-color": [{ "mask-linear-to": U() }], "mask-image-t-from-pos": [{ "mask-t-from": we() }], "mask-image-t-to-pos": [{ "mask-t-to": we() }], "mask-image-t-from-color": [{ "mask-t-from": U() }], "mask-image-t-to-color": [{ "mask-t-to": U() }], "mask-image-r-