UNPKG

tailwind-joy

Version:

React component library that styles the components of Joy UI in the Tailwind CSS way.

2,012 lines 82.5 kB
import { useId as mo } from "react"; function po(o) { var e, t, l = ""; if (typeof o == "string" || typeof o == "number") l += o; else if (typeof o == "object") if (Array.isArray(o)) { var d = o.length; for (e = 0; e < d; e++) o[e] && (t = po(o[e])) && (l && (l += " "), l += t); } else for (t in o) o[t] && (l && (l += " "), l += t); return l; } function jo() { for (var o, e, t = 0, l = "", d = arguments.length; t < d; t++) (o = arguments[t]) && (e = po(o)) && (l && (l += " "), l += e); return l; } const Y = "-"; function Co(o) { const e = wo(o), { conflictingClassGroups: t, conflictingClassGroupModifiers: l } = o; function d(i) { const g = i.split(Y); return g[0] === "" && g.length !== 1 && g.shift(), fo(g, e) || ho(i); } function a(i, g) { const b = t[i] || []; return g && l[i] ? [...b, ...l[i]] : b; } return { getClassGroupId: d, getConflictingClassGroupIds: a }; } function fo(o, e) { var i; if (o.length === 0) return e.classGroupId; const t = o[0], l = e.nextPart.get(t), d = l ? fo(o.slice(1), l) : void 0; if (d) return d; if (e.validators.length === 0) return; const a = o.join(Y); return (i = e.validators.find(({ validator: g }) => g(a))) == null ? void 0 : i.classGroupId; } const co = /^\[(.+)\]$/; function ho(o) { if (co.test(o)) { const e = co.exec(o)[1], t = e == null ? void 0 : e.substring(0, e.indexOf(":")); if (t) return "arbitrary.." + t; } } function wo(o) { const { theme: e, prefix: t } = o, l = { nextPart: /* @__PURE__ */ new Map(), validators: [] }; return Ao(Object.entries(o.classGroups), t).forEach(([a, i]) => { X(i, l, a, e); }), l; } function X(o, e, t, l) { o.forEach((d) => { if (typeof d == "string") { const a = d === "" ? e : uo(e, d); a.classGroupId = t; return; } if (typeof d == "function") { if (ko(d)) { X(d(l), e, t, l); return; } e.validators.push({ validator: d, classGroupId: t }); return; } Object.entries(d).forEach(([a, i]) => { X(i, uo(e, a), t, l); }); }); } function uo(o, e) { let t = o; return e.split(Y).forEach((l) => { t.nextPart.has(l) || t.nextPart.set(l, { nextPart: /* @__PURE__ */ new Map(), validators: [] }), t = t.nextPart.get(l); }), t; } function ko(o) { return o.isThemeGetter; } function Ao(o, e) { return e ? o.map(([t, l]) => { const d = l.map((a) => typeof a == "string" ? e + a : typeof a == "object" ? Object.fromEntries(Object.entries(a).map(([i, g]) => [e + i, g])) : a); return [t, d]; }) : o; } function xo(o) { if (o < 1) return { get: () => { }, set: () => { } }; let e = 0, t = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Map(); function d(a, i) { t.set(a, i), e++, e > o && (e = 0, l = t, t = /* @__PURE__ */ new Map()); } return { get(a) { let i = t.get(a); if (i !== void 0) return i; if ((i = l.get(a)) !== void 0) return d(a, i), i; }, set(a, i) { t.has(a) ? t.set(a, i) : d(a, i); } }; } const yo = "!"; function Do(o) { const e = o.separator, t = e.length === 1, l = e[0], d = e.length; return function(i) { const g = []; let b = 0, m = 0, B; for (let j = 0; j < i.length; j++) { let h = i[j]; if (b === 0) { if (h === l && (t || i.slice(j, j + d) === e)) { g.push(i.slice(m, j)), m = j + d; continue; } if (h === "/") { B = j; continue; } } h === "[" ? b++ : h === "]" && b--; } const C = g.length === 0 ? i : i.substring(m), k = C.startsWith(yo), D = k ? C.substring(1) : C, I = B && B > m ? B - m : void 0; return { modifiers: g, hasImportantModifier: k, baseClassName: D, maybePostfixModifierPosition: I }; }; } function Ho(o) { if (o.length <= 1) return o; const e = []; let t = []; return o.forEach((l) => { l[0] === "[" ? (e.push(...t.sort(), l), t = []) : t.push(l); }), e.push(...t.sort()), e; } function zo(o) { return { cache: xo(o.cacheSize), splitModifiers: Do(o), ...Co(o) }; } const So = /\s+/; function Mo(o, e) { const { splitModifiers: t, getClassGroupId: l, getConflictingClassGroupIds: d } = e, a = /* @__PURE__ */ new Set(); return o.trim().split(So).map((i) => { const { modifiers: g, hasImportantModifier: b, baseClassName: m, maybePostfixModifierPosition: B } = t(i); let C = l(B ? m.substring(0, B) : m), k = !!B; if (!C) { if (!B) return { isTailwindClass: !1, originalClassName: i }; if (C = l(m), !C) return { isTailwindClass: !1, originalClassName: i }; k = !1; } const D = Ho(g).join(":"); return { isTailwindClass: !0, modifierId: b ? D + yo : D, classGroupId: C, originalClassName: i, hasPostfixModifier: k }; }).reverse().filter((i) => { if (!i.isTailwindClass) return !0; const { modifierId: g, classGroupId: b, hasPostfixModifier: m } = i, B = g + b; return a.has(B) ? !1 : (a.add(B), d(b, m).forEach((C) => a.add(g + C)), !0); }).reverse().map((i) => i.originalClassName).join(" "); } function Io() { let o = 0, e, t, l = ""; for (; o < arguments.length; ) (e = arguments[o++]) && (t = bo(e)) && (l && (l += " "), l += t); return l; } function bo(o) { if (typeof o == "string") return o; let e, t = ""; for (let l = 0; l < o.length; l++) o[l] && (e = bo(o[l])) && (t && (t += " "), t += e); return t; } function Z(o, ...e) { let t, l, d, a = i; function i(b) { const m = e.reduce((B, C) => C(B), o()); return t = zo(m), l = t.cache.get, d = t.cache.set, a = g, g(b); } function g(b) { const m = l(b); if (m) return m; const B = Mo(b, t); return d(b, B), B; } return function() { return a(Io.apply(null, arguments)); }; } function p(o) { const e = (t) => t[o] || []; return e.isThemeGetter = !0, e; } const vo = /^\[(?:([a-z-]+):)?(.+)\]$/i, Po = /^\d+\/\d+$/, Go = /* @__PURE__ */ new Set(["px", "full", "screen"]), Ro = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, To = /\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$/, $o = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, Eo = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Vo = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/; function x(o) { return M(o) || Go.has(o) || Po.test(o); } function z(o) { return P(o, "length", Oo); } function M(o) { return !!o && !Number.isNaN(Number(o)); } function W(o) { return P(o, "number", M); } function T(o) { return !!o && Number.isInteger(Number(o)); } function Lo(o) { return o.endsWith("%") && M(o.slice(0, -1)); } function c(o) { return vo.test(o); } function S(o) { return Ro.test(o); } const Wo = /* @__PURE__ */ new Set(["length", "size", "percentage"]); function No(o) { return P(o, Wo, Bo); } function _o(o) { return P(o, "position", Bo); } const Uo = /* @__PURE__ */ new Set(["image", "url"]); function Fo(o) { return P(o, Uo, Ko); } function qo(o) { return P(o, "", Jo); } function $() { return !0; } function P(o, e, t) { const l = vo.exec(o); return l ? l[1] ? typeof e == "string" ? l[1] === e : e.has(l[1]) : t(l[2]) : !1; } function Oo(o) { return To.test(o) && !$o.test(o); } function Bo() { return !1; } function Jo(o) { return Eo.test(o); } function Ko(o) { return Vo.test(o); } function Q() { const o = p("colors"), e = p("spacing"), t = p("blur"), l = p("brightness"), d = p("borderColor"), a = p("borderRadius"), i = p("borderSpacing"), g = p("borderWidth"), b = p("contrast"), m = p("grayscale"), B = p("hueRotate"), C = p("invert"), k = p("gap"), D = p("gradientColorStops"), I = p("gradientColorStopPositions"), j = p("inset"), h = p("margin"), H = p("opacity"), A = p("padding"), oo = p("saturate"), F = p("scale"), ro = p("sepia"), eo = p("skew"), to = p("space"), lo = p("translate"), q = () => ["auto", "contain", "none"], O = () => ["auto", "hidden", "clip", "visible", "scroll"], J = () => ["auto", c, e], y = () => [c, e], no = () => ["", x, z], E = () => ["auto", M, c], io = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], V = () => ["solid", "dashed", "dotted", "double", "none"], ao = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], K = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], G = () => ["", "0", c], so = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], R = () => [M, W], L = () => [M, c]; return { cacheSize: 500, separator: ":", theme: { colors: [$], spacing: [x, z], blur: ["none", "", S, c], brightness: R(), borderColor: [o], borderRadius: ["none", "", "full", S, c], borderSpacing: y(), borderWidth: no(), contrast: R(), grayscale: G(), hueRotate: L(), invert: G(), gap: y(), gradientColorStops: [o], gradientColorStopPositions: [Lo, z], inset: J(), margin: J(), opacity: R(), padding: y(), saturate: R(), scale: R(), sepia: G(), skew: L(), space: y(), translate: y() }, classGroups: { // Layout /** * Aspect Ratio * @see https://tailwindcss.com/docs/aspect-ratio */ aspect: [{ aspect: ["auto", "square", "video", c] }], /** * Container * @see https://tailwindcss.com/docs/container */ container: ["container"], /** * Columns * @see https://tailwindcss.com/docs/columns */ columns: [{ columns: [S] }], /** * Break After * @see https://tailwindcss.com/docs/break-after */ "break-after": [{ "break-after": so() }], /** * Break Before * @see https://tailwindcss.com/docs/break-before */ "break-before": [{ "break-before": so() }], /** * 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"], /** * 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: [...io(), c] }], /** * Overflow * @see https://tailwindcss.com/docs/overflow */ overflow: [{ overflow: O() }], /** * Overflow X * @see https://tailwindcss.com/docs/overflow */ "overflow-x": [{ "overflow-x": O() }], /** * Overflow Y * @see https://tailwindcss.com/docs/overflow */ "overflow-y": [{ "overflow-y": O() }], /** * Overscroll Behavior * @see https://tailwindcss.com/docs/overscroll-behavior */ overscroll: [{ overscroll: q() }], /** * Overscroll Behavior X * @see https://tailwindcss.com/docs/overscroll-behavior */ "overscroll-x": [{ "overscroll-x": q() }], /** * Overscroll Behavior Y * @see https://tailwindcss.com/docs/overscroll-behavior */ "overscroll-y": [{ "overscroll-y": q() }], /** * 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: [j] }], /** * Right / Left * @see https://tailwindcss.com/docs/top-right-bottom-left */ "inset-x": [{ "inset-x": [j] }], /** * Top / Bottom * @see https://tailwindcss.com/docs/top-right-bottom-left */ "inset-y": [{ "inset-y": [j] }], /** * Start * @see https://tailwindcss.com/docs/top-right-bottom-left */ start: [{ start: [j] }], /** * End * @see https://tailwindcss.com/docs/top-right-bottom-left */ end: [{ end: [j] }], /** * Top * @see https://tailwindcss.com/docs/top-right-bottom-left */ top: [{ top: [j] }], /** * Right * @see https://tailwindcss.com/docs/top-right-bottom-left */ right: [{ right: [j] }], /** * Bottom * @see https://tailwindcss.com/docs/top-right-bottom-left */ bottom: [{ bottom: [j] }], /** * Left * @see https://tailwindcss.com/docs/top-right-bottom-left */ left: [{ left: [j] }], /** * Visibility * @see https://tailwindcss.com/docs/visibility */ visibility: ["visible", "invisible", "collapse"], /** * Z-Index * @see https://tailwindcss.com/docs/z-index */ z: [{ z: ["auto", T, c] }], // Flexbox and Grid /** * Flex Basis * @see https://tailwindcss.com/docs/flex-basis */ basis: [{ basis: J() }], /** * 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: ["wrap", "wrap-reverse", "nowrap"] }], /** * Flex * @see https://tailwindcss.com/docs/flex */ flex: [{ flex: ["1", "auto", "initial", "none", c] }], /** * Flex Grow * @see https://tailwindcss.com/docs/flex-grow */ grow: [{ grow: G() }], /** * Flex Shrink * @see https://tailwindcss.com/docs/flex-shrink */ shrink: [{ shrink: G() }], /** * Order * @see https://tailwindcss.com/docs/order */ order: [{ order: ["first", "last", "none", T, c] }], /** * Grid Template Columns * @see https://tailwindcss.com/docs/grid-template-columns */ "grid-cols": [{ "grid-cols": [$] }], /** * Grid Column Start / End * @see https://tailwindcss.com/docs/grid-column */ "col-start-end": [{ col: ["auto", { span: ["full", T, c] }, c] }], /** * Grid Column Start * @see https://tailwindcss.com/docs/grid-column */ "col-start": [{ "col-start": E() }], /** * Grid Column End * @see https://tailwindcss.com/docs/grid-column */ "col-end": [{ "col-end": E() }], /** * Grid Template Rows * @see https://tailwindcss.com/docs/grid-template-rows */ "grid-rows": [{ "grid-rows": [$] }], /** * Grid Row Start / End * @see https://tailwindcss.com/docs/grid-row */ "row-start-end": [{ row: ["auto", { span: [T, c] }, c] }], /** * Grid Row Start * @see https://tailwindcss.com/docs/grid-row */ "row-start": [{ "row-start": E() }], /** * Grid Row End * @see https://tailwindcss.com/docs/grid-row */ "row-end": [{ "row-end": E() }], /** * 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": ["auto", "min", "max", "fr", c] }], /** * Grid Auto Rows * @see https://tailwindcss.com/docs/grid-auto-rows */ "auto-rows": [{ "auto-rows": ["auto", "min", "max", "fr", c] }], /** * Gap * @see https://tailwindcss.com/docs/gap */ gap: [{ gap: [k] }], /** * Gap X * @see https://tailwindcss.com/docs/gap */ "gap-x": [{ "gap-x": [k] }], /** * Gap Y * @see https://tailwindcss.com/docs/gap */ "gap-y": [{ "gap-y": [k] }], /** * Justify Content * @see https://tailwindcss.com/docs/justify-content */ "justify-content": [{ justify: ["normal", ...K()] }], /** * Justify Items * @see https://tailwindcss.com/docs/justify-items */ "justify-items": [{ "justify-items": ["start", "end", "center", "stretch"] }], /** * Justify Self * @see https://tailwindcss.com/docs/justify-self */ "justify-self": [{ "justify-self": ["auto", "start", "end", "center", "stretch"] }], /** * Align Content * @see https://tailwindcss.com/docs/align-content */ "align-content": [{ content: ["normal", ...K(), "baseline"] }], /** * Align Items * @see https://tailwindcss.com/docs/align-items */ "align-items": [{ items: ["start", "end", "center", "baseline", "stretch"] }], /** * Align Self * @see https://tailwindcss.com/docs/align-self */ "align-self": [{ self: ["auto", "start", "end", "center", "stretch", "baseline"] }], /** * Place Content * @see https://tailwindcss.com/docs/place-content */ "place-content": [{ "place-content": [...K(), "baseline"] }], /** * Place Items * @see https://tailwindcss.com/docs/place-items */ "place-items": [{ "place-items": ["start", "end", "center", "baseline", "stretch"] }], /** * Place Self * @see https://tailwindcss.com/docs/place-self */ "place-self": [{ "place-self": ["auto", "start", "end", "center", "stretch"] }], // 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: [h] }], /** * Margin X * @see https://tailwindcss.com/docs/margin */ mx: [{ mx: [h] }], /** * Margin Y * @see https://tailwindcss.com/docs/margin */ my: [{ my: [h] }], /** * Margin Start * @see https://tailwindcss.com/docs/margin */ ms: [{ ms: [h] }], /** * Margin End * @see https://tailwindcss.com/docs/margin */ me: [{ me: [h] }], /** * Margin Top * @see https://tailwindcss.com/docs/margin */ mt: [{ mt: [h] }], /** * Margin Right * @see https://tailwindcss.com/docs/margin */ mr: [{ mr: [h] }], /** * Margin Bottom * @see https://tailwindcss.com/docs/margin */ mb: [{ mb: [h] }], /** * Margin Left * @see https://tailwindcss.com/docs/margin */ ml: [{ ml: [h] }], /** * Space Between X * @see https://tailwindcss.com/docs/space */ "space-x": [{ "space-x": [to] }], /** * Space Between X Reverse * @see https://tailwindcss.com/docs/space */ "space-x-reverse": ["space-x-reverse"], /** * Space Between Y * @see https://tailwindcss.com/docs/space */ "space-y": [{ "space-y": [to] }], /** * Space Between Y Reverse * @see https://tailwindcss.com/docs/space */ "space-y-reverse": ["space-y-reverse"], // Sizing /** * Width * @see https://tailwindcss.com/docs/width */ w: [{ w: ["auto", "min", "max", "fit", "svw", "lvw", "dvw", c, e] }], /** * Min-Width * @see https://tailwindcss.com/docs/min-width */ "min-w": [{ "min-w": [c, e, "min", "max", "fit"] }], /** * Max-Width * @see https://tailwindcss.com/docs/max-width */ "max-w": [{ "max-w": [c, e, "none", "full", "min", "max", "fit", "prose", { screen: [S] }, S] }], /** * Height * @see https://tailwindcss.com/docs/height */ h: [{ h: [c, e, "auto", "min", "max", "fit", "svh", "lvh", "dvh"] }], /** * Min-Height * @see https://tailwindcss.com/docs/min-height */ "min-h": [{ "min-h": [c, e, "min", "max", "fit", "svh", "lvh", "dvh"] }], /** * Max-Height * @see https://tailwindcss.com/docs/max-height */ "max-h": [{ "max-h": [c, e, "min", "max", "fit", "svh", "lvh", "dvh"] }], /** * Size * @see https://tailwindcss.com/docs/size */ size: [{ size: [c, e, "auto", "min", "max", "fit"] }], // Typography /** * Font Size * @see https://tailwindcss.com/docs/font-size */ "font-size": [{ text: ["base", S, z] }], /** * 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: ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black", W] }], /** * Font Family * @see https://tailwindcss.com/docs/font-family */ "font-family": [{ font: [$] }], /** * 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-fractons"], /** * Letter Spacing * @see https://tailwindcss.com/docs/letter-spacing */ tracking: [{ tracking: ["tighter", "tight", "normal", "wide", "wider", "widest", c] }], /** * Line Clamp * @see https://tailwindcss.com/docs/line-clamp */ "line-clamp": [{ "line-clamp": ["none", M, W] }], /** * Line Height * @see https://tailwindcss.com/docs/line-height */ leading: [{ leading: ["none", "tight", "snug", "normal", "relaxed", "loose", x, c] }], /** * List Style Image * @see https://tailwindcss.com/docs/list-style-image */ "list-image": [{ "list-image": ["none", c] }], /** * List Style Type * @see https://tailwindcss.com/docs/list-style-type */ "list-style-type": [{ list: ["none", "disc", "decimal", c] }], /** * List Style Position * @see https://tailwindcss.com/docs/list-style-position */ "list-style-position": [{ list: ["inside", "outside"] }], /** * Placeholder Color * @deprecated since Tailwind CSS v3.0.0 * @see https://tailwindcss.com/docs/placeholder-color */ "placeholder-color": [{ placeholder: [o] }], /** * Placeholder Opacity * @see https://tailwindcss.com/docs/placeholder-opacity */ "placeholder-opacity": [{ "placeholder-opacity": [H] }], /** * Text Alignment * @see https://tailwindcss.com/docs/text-align */ "text-alignment": [{ text: ["left", "center", "right", "justify", "start", "end"] }], /** * Text Color * @see https://tailwindcss.com/docs/text-color */ "text-color": [{ text: [o] }], /** * Text Opacity * @see https://tailwindcss.com/docs/text-opacity */ "text-opacity": [{ "text-opacity": [H] }], /** * 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: [...V(), "wavy"] }], /** * Text Decoration Thickness * @see https://tailwindcss.com/docs/text-decoration-thickness */ "text-decoration-thickness": [{ decoration: ["auto", "from-font", x, z] }], /** * Text Underline Offset * @see https://tailwindcss.com/docs/text-underline-offset */ "underline-offset": [{ "underline-offset": ["auto", x, c] }], /** * Text Decoration Color * @see https://tailwindcss.com/docs/text-decoration-color */ "text-decoration-color": [{ decoration: [o] }], /** * 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: y() }], /** * Vertical Alignment * @see https://tailwindcss.com/docs/vertical-align */ "vertical-align": [{ align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", c] }], /** * 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"] }], /** * Hyphens * @see https://tailwindcss.com/docs/hyphens */ hyphens: [{ hyphens: ["none", "manual", "auto"] }], /** * Content * @see https://tailwindcss.com/docs/content */ content: [{ content: ["none", c] }], // 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 Opacity * @deprecated since Tailwind CSS v3.0.0 * @see https://tailwindcss.com/docs/background-opacity */ "bg-opacity": [{ "bg-opacity": [H] }], /** * 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: [...io(), _o] }], /** * Background Repeat * @see https://tailwindcss.com/docs/background-repeat */ "bg-repeat": [{ bg: ["no-repeat", { repeat: ["", "x", "y", "round", "space"] }] }], /** * Background Size * @see https://tailwindcss.com/docs/background-size */ "bg-size": [{ bg: ["auto", "cover", "contain", No] }], /** * Background Image * @see https://tailwindcss.com/docs/background-image */ "bg-image": [{ bg: ["none", { "gradient-to": ["t", "tr", "r", "br", "b", "bl", "l", "tl"] }, Fo] }], /** * Background Color * @see https://tailwindcss.com/docs/background-color */ "bg-color": [{ bg: [o] }], /** * Gradient Color Stops From Position * @see https://tailwindcss.com/docs/gradient-color-stops */ "gradient-from-pos": [{ from: [I] }], /** * Gradient Color Stops Via Position * @see https://tailwindcss.com/docs/gradient-color-stops */ "gradient-via-pos": [{ via: [I] }], /** * Gradient Color Stops To Position * @see https://tailwindcss.com/docs/gradient-color-stops */ "gradient-to-pos": [{ to: [I] }], /** * Gradient Color Stops From * @see https://tailwindcss.com/docs/gradient-color-stops */ "gradient-from": [{ from: [D] }], /** * Gradient Color Stops Via * @see https://tailwindcss.com/docs/gradient-color-stops */ "gradient-via": [{ via: [D] }], /** * Gradient Color Stops To * @see https://tailwindcss.com/docs/gradient-color-stops */ "gradient-to": [{ to: [D] }], // Borders /** * Border Radius * @see https://tailwindcss.com/docs/border-radius */ rounded: [{ rounded: [a] }], /** * Border Radius Start * @see https://tailwindcss.com/docs/border-radius */ "rounded-s": [{ "rounded-s": [a] }], /** * Border Radius End * @see https://tailwindcss.com/docs/border-radius */ "rounded-e": [{ "rounded-e": [a] }], /** * Border Radius Top * @see https://tailwindcss.com/docs/border-radius */ "rounded-t": [{ "rounded-t": [a] }], /** * Border Radius Right * @see https://tailwindcss.com/docs/border-radius */ "rounded-r": [{ "rounded-r": [a] }], /** * Border Radius Bottom * @see https://tailwindcss.com/docs/border-radius */ "rounded-b": [{ "rounded-b": [a] }], /** * Border Radius Left * @see https://tailwindcss.com/docs/border-radius */ "rounded-l": [{ "rounded-l": [a] }], /** * Border Radius Start Start * @see https://tailwindcss.com/docs/border-radius */ "rounded-ss": [{ "rounded-ss": [a] }], /** * Border Radius Start End * @see https://tailwindcss.com/docs/border-radius */ "rounded-se": [{ "rounded-se": [a] }], /** * Border Radius End End * @see https://tailwindcss.com/docs/border-radius */ "rounded-ee": [{ "rounded-ee": [a] }], /** * Border Radius End Start * @see https://tailwindcss.com/docs/border-radius */ "rounded-es": [{ "rounded-es": [a] }], /** * Border Radius Top Left * @see https://tailwindcss.com/docs/border-radius */ "rounded-tl": [{ "rounded-tl": [a] }], /** * Border Radius Top Right * @see https://tailwindcss.com/docs/border-radius */ "rounded-tr": [{ "rounded-tr": [a] }], /** * Border Radius Bottom Right * @see https://tailwindcss.com/docs/border-radius */ "rounded-br": [{ "rounded-br": [a] }], /** * Border Radius Bottom Left * @see https://tailwindcss.com/docs/border-radius */ "rounded-bl": [{ "rounded-bl": [a] }], /** * Border Width * @see https://tailwindcss.com/docs/border-width */ "border-w": [{ border: [g] }], /** * Border Width X * @see https://tailwindcss.com/docs/border-width */ "border-w-x": [{ "border-x": [g] }], /** * Border Width Y * @see https://tailwindcss.com/docs/border-width */ "border-w-y": [{ "border-y": [g] }], /** * Border Width Start * @see https://tailwindcss.com/docs/border-width */ "border-w-s": [{ "border-s": [g] }], /** * Border Width End * @see https://tailwindcss.com/docs/border-width */ "border-w-e": [{ "border-e": [g] }], /** * Border Width Top * @see https://tailwindcss.com/docs/border-width */ "border-w-t": [{ "border-t": [g] }], /** * Border Width Right * @see https://tailwindcss.com/docs/border-width */ "border-w-r": [{ "border-r": [g] }], /** * Border Width Bottom * @see https://tailwindcss.com/docs/border-width */ "border-w-b": [{ "border-b": [g] }], /** * Border Width Left * @see https://tailwindcss.com/docs/border-width */ "border-w-l": [{ "border-l": [g] }], /** * Border Opacity * @see https://tailwindcss.com/docs/border-opacity */ "border-opacity": [{ "border-opacity": [H] }], /** * Border Style * @see https://tailwindcss.com/docs/border-style */ "border-style": [{ border: [...V(), "hidden"] }], /** * Divide Width X * @see https://tailwindcss.com/docs/divide-width */ "divide-x": [{ "divide-x": [g] }], /** * Divide Width X Reverse * @see https://tailwindcss.com/docs/divide-width */ "divide-x-reverse": ["divide-x-reverse"], /** * Divide Width Y * @see https://tailwindcss.com/docs/divide-width */ "divide-y": [{ "divide-y": [g] }], /** * Divide Width Y Reverse * @see https://tailwindcss.com/docs/divide-width */ "divide-y-reverse": ["divide-y-reverse"], /** * Divide Opacity * @see https://tailwindcss.com/docs/divide-opacity */ "divide-opacity": [{ "divide-opacity": [H] }], /** * Divide Style * @see https://tailwindcss.com/docs/divide-style */ "divide-style": [{ divide: V() }], /** * Border Color * @see https://tailwindcss.com/docs/border-color */ "border-color": [{ border: [d] }], /** * Border Color X * @see https://tailwindcss.com/docs/border-color */ "border-color-x": [{ "border-x": [d] }], /** * Border Color Y * @see https://tailwindcss.com/docs/border-color */ "border-color-y": [{ "border-y": [d] }], /** * Border Color Top * @see https://tailwindcss.com/docs/border-color */ "border-color-t": [{ "border-t": [d] }], /** * Border Color Right * @see https://tailwindcss.com/docs/border-color */ "border-color-r": [{ "border-r": [d] }], /** * Border Color Bottom * @see https://tailwindcss.com/docs/border-color */ "border-color-b": [{ "border-b": [d] }], /** * Border Color Left * @see https://tailwindcss.com/docs/border-color */ "border-color-l": [{ "border-l": [d] }], /** * Divide Color * @see https://tailwindcss.com/docs/divide-color */ "divide-color": [{ divide: [d] }], /** * Outline Style * @see https://tailwindcss.com/docs/outline-style */ "outline-style": [{ outline: ["", ...V()] }], /** * Outline Offset * @see https://tailwindcss.com/docs/outline-offset */ "outline-offset": [{ "outline-offset": [x, c] }], /** * Outline Width * @see https://tailwindcss.com/docs/outline-width */ "outline-w": [{ outline: [x, z] }], /** * Outline Color * @see https://tailwindcss.com/docs/outline-color */ "outline-color": [{ outline: [o] }], /** * Ring Width * @see https://tailwindcss.com/docs/ring-width */ "ring-w": [{ ring: no() }], /** * Ring Width Inset * @see https://tailwindcss.com/docs/ring-width */ "ring-w-inset": ["ring-inset"], /** * Ring Color * @see https://tailwindcss.com/docs/ring-color */ "ring-color": [{ ring: [o] }], /** * Ring Opacity * @see https://tailwindcss.com/docs/ring-opacity */ "ring-opacity": [{ "ring-opacity": [H] }], /** * Ring Offset Width * @see https://tailwindcss.com/docs/ring-offset-width */ "ring-offset-w": [{ "ring-offset": [x, z] }], /** * Ring Offset Color * @see https://tailwindcss.com/docs/ring-offset-color */ "ring-offset-color": [{ "ring-offset": [o] }], // Effects /** * Box Shadow * @see https://tailwindcss.com/docs/box-shadow */ shadow: [{ shadow: ["", "inner", "none", S, qo] }], /** * Box Shadow Color * @see https://tailwindcss.com/docs/box-shadow-color */ "shadow-color": [{ shadow: [$] }], /** * Opacity * @see https://tailwindcss.com/docs/opacity */ opacity: [{ opacity: [H] }], /** * Mix Blend Mode * @see https://tailwindcss.com/docs/mix-blend-mode */ "mix-blend": [{ "mix-blend": [...ao(), "plus-lighter", "plus-darker"] }], /** * Background Blend Mode * @see https://tailwindcss.com/docs/background-blend-mode */ "bg-blend": [{ "bg-blend": ao() }], // Filters /** * Filter * @deprecated since Tailwind CSS v3.0.0 * @see https://tailwindcss.com/docs/filter */ filter: [{ filter: ["", "none"] }], /** * Blur * @see https://tailwindcss.com/docs/blur */ blur: [{ blur: [t] }], /** * Brightness * @see https://tailwindcss.com/docs/brightness */ brightness: [{ brightness: [l] }], /** * Contrast * @see https://tailwindcss.com/docs/contrast */ contrast: [{ contrast: [b] }], /** * Drop Shadow * @see https://tailwindcss.com/docs/drop-shadow */ "drop-shadow": [{ "drop-shadow": ["", "none", S, c] }], /** * Grayscale * @see https://tailwindcss.com/docs/grayscale */ grayscale: [{ grayscale: [m] }], /** * Hue Rotate * @see https://tailwindcss.com/docs/hue-rotate */ "hue-rotate": [{ "hue-rotate": [B] }], /** * Invert * @see https://tailwindcss.com/docs/invert */ invert: [{ invert: [C] }], /** * Saturate * @see https://tailwindcss.com/docs/saturate */ saturate: [{ saturate: [oo] }], /** * Sepia * @see https://tailwindcss.com/docs/sepia */ sepia: [{ sepia: [ro] }], /** * Backdrop Filter * @deprecated since Tailwind CSS v3.0.0 * @see https://tailwindcss.com/docs/backdrop-filter */ "backdrop-filter": [{ "backdrop-filter": ["", "none"] }], /** * Backdrop Blur * @see https://tailwindcss.com/docs/backdrop-blur */ "backdrop-blur": [{ "backdrop-blur": [t] }], /** * Backdrop Brightness * @see https://tailwindcss.com/docs/backdrop-brightness */ "backdrop-brightness": [{ "backdrop-brightness": [l] }], /** * Backdrop Contrast * @see https://tailwindcss.com/docs/backdrop-contrast */ "backdrop-contrast": [{ "backdrop-contrast": [b] }], /** * Backdrop Grayscale * @see https://tailwindcss.com/docs/backdrop-grayscale */ "backdrop-grayscale": [{ "backdrop-grayscale": [m] }], /** * Backdrop Hue Rotate * @see https://tailwindcss.com/docs/backdrop-hue-rotate */ "backdrop-hue-rotate": [{ "backdrop-hue-rotate": [B] }], /** * Backdrop Invert * @see https://tailwindcss.com/docs/backdrop-invert */ "backdrop-invert": [{ "backdrop-invert": [C] }], /** * Backdrop Opacity * @see https://tailwindcss.com/docs/backdrop-opacity */ "backdrop-opacity": [{ "backdrop-opacity": [H] }], /** * Backdrop Saturate * @see https://tailwindcss.com/docs/backdrop-saturate */ "backdrop-saturate": [{ "backdrop-saturate": [oo] }], /** * Backdrop Sepia * @see https://tailwindcss.com/docs/backdrop-sepia */ "backdrop-sepia": [{ "backdrop-sepia": [ro] }], // Tables /** * Border Collapse * @see https://tailwindcss.com/docs/border-collapse */ "border-collapse": [{ border: ["collapse", "separate"] }], /** * Border Spacing * @see https://tailwindcss.com/docs/border-spacing */ "border-spacing": [{ "border-spacing": [i] }], /** * Border Spacing X * @see https://tailwindcss.com/docs/border-spacing */ "border-spacing-x": [{ "border-spacing-x": [i] }], /** * Border Spacing Y * @see https://tailwindcss.com/docs/border-spacing */ "border-spacing-y": [{ "border-spacing-y": [i] }], /** * Table Layout * @see https://tailwindcss.com/docs/table-layout */ "table-layout": [{ table: ["auto", "fixed"] }], /** * Caption Side * @see https://tailwindcss.com/docs/caption-side */ caption: [{ caption: ["top", "bottom"] }], // Transitions and Animation /** * Tranisition Property * @see https://tailwindcss.com/docs/transition-property */ transition: [{ transition: ["none", "all", "", "colors", "opacity", "shadow", "transform", c] }], /** * Transition Duration * @see https://tailwindcss.com/docs/transition-duration */ duration: [{ duration: L() }], /** * Transition Timing Function * @see https://tailwindcss.com/docs/transition-timing-function */ ease: [{ ease: ["linear", "in", "out", "in-out", c] }], /** * Transition Delay * @see https://tailwindcss.com/docs/transition-delay */ delay: [{ delay: L() }], /** * Animation * @see https://tailwindcss.com/docs/animation */ animate: [{ animate: ["none", "spin", "ping", "pulse", "bounce", c] }], // Transforms /** * Transform * @see https://tailwindcss.com/docs/transform */ transform: [{ transform: ["", "gpu", "none"] }], /** * Scale * @see https://tailwindcss.com/docs/scale */ scale: [{ scale: [F] }], /** * Scale X * @see https://tailwindcss.com/docs/scale */ "scale-x": [{ "scale-x": [F] }], /** * Scale Y * @see https://tailwindcss.com/docs/scale */ "scale-y": [{ "scale-y": [F] }], /** * Rotate * @see https://tailwindcss.com/docs/rotate */ rotate: [{ rotate: [T, c] }], /** * Translate X * @see https://tailwindcss.com/docs/translate */ "translate-x": [{ "translate-x": [lo] }], /** * Translate Y * @see https://tailwindcss.com/docs/translate */ "translate-y": [{ "translate-y": [lo] }], /** * Skew X * @see https://tailwindcss.com/docs/skew */ "skew-x": [{ "skew-x": [eo] }], /** * Skew Y * @see https://tailwindcss.com/docs/skew */ "skew-y": [{ "skew-y": [eo] }], /** * Transform Origin * @see https://tailwindcss.com/docs/transform-origin */ "transform-origin": [{ origin: ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left", c] }], // Interactivity /** * Accent Color * @see https://tailwindcss.com/docs/accent-color */ accent: [{ accent: ["auto", o] }], /** * Appearance * @see https://tailwindcss.com/docs/app