@nayan-ui/react
Version:
Reusable Component Library for ReactJS.
1,787 lines • 558 kB
JavaScript
import * as f from "react";
import Z, { forwardRef as Ge, createElement as Go, memo as be, useRef as pe, useState as Te, useCallback as ue, useEffect as pt, useMemo as Oe, useLayoutEffect as ec, isValidElement as Qm, useId as Vt, useContext as tc, createContext as Km, Component as qm, Fragment as Vo } from "react";
import * as ma from "react-dom";
import eg, { createPortal as tg } from "react-dom";
function ng(e) {
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
}
var Mn = { exports: {} }, Ut = {};
/**
* @license React
* react-jsx-runtime.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var Ci;
function rg() {
if (Ci) return Ut;
Ci = 1;
var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment");
function n(o, r, a) {
var i = null;
if (a !== void 0 && (i = "" + a), r.key !== void 0 && (i = "" + r.key), "key" in r) {
a = {};
for (var s in r)
s !== "key" && (a[s] = r[s]);
} else a = r;
return r = a.ref, {
$$typeof: e,
type: o,
key: i,
ref: r !== void 0 ? r : null,
props: a
};
}
return Ut.Fragment = t, Ut.jsx = n, Ut.jsxs = n, Ut;
}
var Qt = {};
/**
* @license React
* react-jsx-runtime.development.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var Ii;
function og() {
return Ii || (Ii = 1, process.env.NODE_ENV !== "production" && (function() {
function e(N) {
if (N == null) return null;
if (typeof N == "function")
return N.$$typeof === D ? null : N.displayName || N.name || null;
if (typeof N == "string") return N;
switch (N) {
case g:
return "Fragment";
case C:
return "Profiler";
case b:
return "StrictMode";
case I:
return "Suspense";
case A:
return "SuspenseList";
case T:
return "Activity";
}
if (typeof N == "object")
switch (typeof N.tag == "number" && console.error(
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
), N.$$typeof) {
case h:
return "Portal";
case x:
return (N.displayName || "Context") + ".Provider";
case w:
return (N._context.displayName || "Context") + ".Consumer";
case y:
var L = N.render;
return N = N.displayName, N || (N = L.displayName || L.name || "", N = N !== "" ? "ForwardRef(" + N + ")" : "ForwardRef"), N;
case E:
return L = N.displayName || null, L !== null ? L : e(N.type) || "Memo";
case R:
L = N._payload, N = N._init;
try {
return e(N(L));
} catch {
}
}
return null;
}
function t(N) {
return "" + N;
}
function n(N) {
try {
t(N);
var L = !1;
} catch {
L = !0;
}
if (L) {
L = console;
var W = L.error, X = typeof Symbol == "function" && Symbol.toStringTag && N[Symbol.toStringTag] || N.constructor.name || "Object";
return W.call(
L,
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
X
), t(N);
}
}
function o(N) {
if (N === g) return "<>";
if (typeof N == "object" && N !== null && N.$$typeof === R)
return "<...>";
try {
var L = e(N);
return L ? "<" + L + ">" : "<...>";
} catch {
return "<...>";
}
}
function r() {
var N = _.A;
return N === null ? null : N.getOwner();
}
function a() {
return Error("react-stack-top-frame");
}
function i(N) {
if (F.call(N, "key")) {
var L = Object.getOwnPropertyDescriptor(N, "key").get;
if (L && L.isReactWarning) return !1;
}
return N.key !== void 0;
}
function s(N, L) {
function W() {
j || (j = !0, console.error(
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
L
));
}
W.isReactWarning = !0, Object.defineProperty(N, "key", {
get: W,
configurable: !0
});
}
function c() {
var N = e(this.type);
return M[N] || (M[N] = !0, console.error(
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
)), N = this.props.ref, N !== void 0 ? N : null;
}
function l(N, L, W, X, ee, oe, ae, J) {
return W = oe.ref, N = {
$$typeof: v,
type: N,
key: L,
props: oe,
_owner: ee
}, (W !== void 0 ? W : null) !== null ? Object.defineProperty(N, "ref", {
enumerable: !1,
get: c
}) : Object.defineProperty(N, "ref", { enumerable: !1, value: null }), N._store = {}, Object.defineProperty(N._store, "validated", {
configurable: !1,
enumerable: !1,
writable: !0,
value: 0
}), Object.defineProperty(N, "_debugInfo", {
configurable: !1,
enumerable: !1,
writable: !0,
value: null
}), Object.defineProperty(N, "_debugStack", {
configurable: !1,
enumerable: !1,
writable: !0,
value: ae
}), Object.defineProperty(N, "_debugTask", {
configurable: !1,
enumerable: !1,
writable: !0,
value: J
}), Object.freeze && (Object.freeze(N.props), Object.freeze(N)), N;
}
function u(N, L, W, X, ee, oe, ae, J) {
var ne = L.children;
if (ne !== void 0)
if (X)
if (Y(ne)) {
for (X = 0; X < ne.length; X++)
d(ne[X]);
Object.freeze && Object.freeze(ne);
} else
console.error(
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
);
else d(ne);
if (F.call(L, "key")) {
ne = e(N);
var de = Object.keys(L).filter(function($) {
return $ !== "key";
});
X = 0 < de.length ? "{key: someKey, " + de.join(": ..., ") + ": ...}" : "{key: someKey}", k[ne + X] || (de = 0 < de.length ? "{" + de.join(": ..., ") + ": ...}" : "{}", console.error(
`A props object containing a "key" prop is being spread into JSX:
let props = %s;
<%s {...props} />
React keys must be passed directly to JSX without using spread:
let props = %s;
<%s key={someKey} {...props} />`,
X,
ne,
de,
ne
), k[ne + X] = !0);
}
if (ne = null, W !== void 0 && (n(W), ne = "" + W), i(L) && (n(L.key), ne = "" + L.key), "key" in L) {
W = {};
for (var ye in L)
ye !== "key" && (W[ye] = L[ye]);
} else W = L;
return ne && s(
W,
typeof N == "function" ? N.displayName || N.name || "Unknown" : N
), l(
N,
ne,
oe,
ee,
r(),
W,
ae,
J
);
}
function d(N) {
typeof N == "object" && N !== null && N.$$typeof === v && N._store && (N._store.validated = 1);
}
var m = Z, v = Symbol.for("react.transitional.element"), h = Symbol.for("react.portal"), g = Symbol.for("react.fragment"), b = Symbol.for("react.strict_mode"), C = Symbol.for("react.profiler"), w = Symbol.for("react.consumer"), x = Symbol.for("react.context"), y = Symbol.for("react.forward_ref"), I = Symbol.for("react.suspense"), A = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), R = Symbol.for("react.lazy"), T = Symbol.for("react.activity"), D = Symbol.for("react.client.reference"), _ = m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, F = Object.prototype.hasOwnProperty, Y = Array.isArray, O = console.createTask ? console.createTask : function() {
return null;
};
m = {
react_stack_bottom_frame: function(N) {
return N();
}
};
var j, M = {}, B = m.react_stack_bottom_frame.bind(
m,
a
)(), P = O(o(a)), k = {};
Qt.Fragment = g, Qt.jsx = function(N, L, W, X, ee) {
var oe = 1e4 > _.recentlyCreatedOwnerStacks++;
return u(
N,
L,
W,
!1,
X,
ee,
oe ? Error("react-stack-top-frame") : B,
oe ? O(o(N)) : P
);
}, Qt.jsxs = function(N, L, W, X, ee) {
var oe = 1e4 > _.recentlyCreatedOwnerStacks++;
return u(
N,
L,
W,
!0,
X,
ee,
oe ? Error("react-stack-top-frame") : B,
oe ? O(o(N)) : P
);
};
})()), Qt;
}
var wi;
function ag() {
return wi || (wi = 1, process.env.NODE_ENV === "production" ? Mn.exports = rg() : Mn.exports = og()), Mn.exports;
}
var p = ag();
function nc(e) {
var t, n, o = "";
if (typeof e == "string" || typeof e == "number") o += e;
else if (typeof e == "object") if (Array.isArray(e)) {
var r = e.length;
for (t = 0; t < r; t++) e[t] && (n = nc(e[t])) && (o && (o += " "), o += n);
} else for (n in e) e[n] && (o && (o += " "), o += n);
return o;
}
function rc() {
for (var e, t, n = 0, o = "", r = arguments.length; n < r; n++) (e = arguments[n]) && (t = nc(e)) && (o && (o += " "), o += t);
return o;
}
const ga = "-", ig = (e) => {
const t = cg(e), {
conflictingClassGroups: n,
conflictingClassGroupModifiers: o
} = e;
return {
getClassGroupId: (i) => {
const s = i.split(ga);
return s[0] === "" && s.length !== 1 && s.shift(), oc(s, t) || sg(i);
},
getConflictingClassGroupIds: (i, s) => {
const c = n[i] || [];
return s && o[i] ? [...c, ...o[i]] : c;
}
};
}, oc = (e, t) => {
if (e.length === 0)
return t.classGroupId;
const n = e[0], o = t.nextPart.get(n), r = o ? oc(e.slice(1), o) : void 0;
if (r)
return r;
if (t.validators.length === 0)
return;
const a = e.join(ga);
return t.validators.find(({
validator: i
}) => i(a))?.classGroupId;
}, Ai = /^\[(.+)\]$/, sg = (e) => {
if (Ai.test(e)) {
const t = Ai.exec(e)[1], n = t?.substring(0, t.indexOf(":"));
if (n)
return "arbitrary.." + n;
}
}, cg = (e) => {
const {
theme: t,
classGroups: n
} = e, o = {
nextPart: /* @__PURE__ */ new Map(),
validators: []
};
for (const r in n)
jo(n[r], o, r, t);
return o;
}, jo = (e, t, n, o) => {
e.forEach((r) => {
if (typeof r == "string") {
const a = r === "" ? t : Ei(t, r);
a.classGroupId = n;
return;
}
if (typeof r == "function") {
if (lg(r)) {
jo(r(o), t, n, o);
return;
}
t.validators.push({
validator: r,
classGroupId: n
});
return;
}
Object.entries(r).forEach(([a, i]) => {
jo(i, Ei(t, a), n, o);
});
});
}, Ei = (e, t) => {
let n = e;
return t.split(ga).forEach((o) => {
n.nextPart.has(o) || n.nextPart.set(o, {
nextPart: /* @__PURE__ */ new Map(),
validators: []
}), n = n.nextPart.get(o);
}), n;
}, lg = (e) => e.isThemeGetter, ug = (e) => {
if (e < 1)
return {
get: () => {
},
set: () => {
}
};
let t = 0, n = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map();
const r = (a, i) => {
n.set(a, i), t++, t > e && (t = 0, o = n, n = /* @__PURE__ */ new Map());
};
return {
get(a) {
let i = n.get(a);
if (i !== void 0)
return i;
if ((i = o.get(a)) !== void 0)
return r(a, i), i;
},
set(a, i) {
n.has(a) ? n.set(a, i) : r(a, i);
}
};
}, Bo = "!", Lo = ":", dg = Lo.length, fg = (e) => {
const {
prefix: t,
experimentalParseClassName: n
} = e;
let o = (r) => {
const a = [];
let i = 0, s = 0, c = 0, l;
for (let h = 0; h < r.length; h++) {
let g = r[h];
if (i === 0 && s === 0) {
if (g === Lo) {
a.push(r.slice(c, h)), c = h + dg;
continue;
}
if (g === "/") {
l = h;
continue;
}
}
g === "[" ? i++ : g === "]" ? i-- : g === "(" ? s++ : g === ")" && s--;
}
const u = a.length === 0 ? r : r.substring(c), d = pg(u), m = d !== u, v = l && l > c ? l - c : void 0;
return {
modifiers: a,
hasImportantModifier: m,
baseClassName: d,
maybePostfixModifierPosition: v
};
};
if (t) {
const r = t + Lo, a = o;
o = (i) => i.startsWith(r) ? a(i.substring(r.length)) : {
isExternal: !0,
modifiers: [],
hasImportantModifier: !1,
baseClassName: i,
maybePostfixModifierPosition: void 0
};
}
if (n) {
const r = o;
o = (a) => n({
className: a,
parseClassName: r
});
}
return o;
}, pg = (e) => e.endsWith(Bo) ? e.substring(0, e.length - 1) : e.startsWith(Bo) ? e.substring(1) : e, mg = (e) => {
const t = Object.fromEntries(e.orderSensitiveModifiers.map((o) => [o, !0]));
return (o) => {
if (o.length <= 1)
return o;
const r = [];
let a = [];
return o.forEach((i) => {
i[0] === "[" || t[i] ? (r.push(...a.sort(), i), a = []) : a.push(i);
}), r.push(...a.sort()), r;
};
}, gg = (e) => ({
cache: ug(e.cacheSize),
parseClassName: fg(e),
sortModifiers: mg(e),
...ig(e)
}), bg = /\s+/, vg = (e, t) => {
const {
parseClassName: n,
getClassGroupId: o,
getConflictingClassGroupIds: r,
sortModifiers: a
} = t, i = [], s = e.trim().split(bg);
let c = "";
for (let l = s.length - 1; l >= 0; l -= 1) {
const u = s[l], {
isExternal: d,
modifiers: m,
hasImportantModifier: v,
baseClassName: h,
maybePostfixModifierPosition: g
} = n(u);
if (d) {
c = u + (c.length > 0 ? " " + c : c);
continue;
}
let b = !!g, C = o(b ? h.substring(0, g) : h);
if (!C) {
if (!b) {
c = u + (c.length > 0 ? " " + c : c);
continue;
}
if (C = o(h), !C) {
c = u + (c.length > 0 ? " " + c : c);
continue;
}
b = !1;
}
const w = a(m).join(":"), x = v ? w + Bo : w, y = x + C;
if (i.includes(y))
continue;
i.push(y);
const I = r(C, b);
for (let A = 0; A < I.length; ++A) {
const E = I[A];
i.push(x + E);
}
c = u + (c.length > 0 ? " " + c : c);
}
return c;
};
function hg() {
let e = 0, t, n, o = "";
for (; e < arguments.length; )
(t = arguments[e++]) && (n = ac(t)) && (o && (o += " "), o += n);
return o;
}
const ac = (e) => {
if (typeof e == "string")
return e;
let t, n = "";
for (let o = 0; o < e.length; o++)
e[o] && (t = ac(e[o])) && (n && (n += " "), n += t);
return n;
};
function xg(e, ...t) {
let n, o, r, a = i;
function i(c) {
const l = t.reduce((u, d) => d(u), e());
return n = gg(l), o = n.cache.get, r = n.cache.set, a = s, s(c);
}
function s(c) {
const l = o(c);
if (l)
return l;
const u = vg(c, n);
return r(c, u), u;
}
return function() {
return a(hg.apply(null, arguments));
};
}
const ge = (e) => {
const t = (n) => n[e] || [];
return t.isThemeGetter = !0, t;
}, ic = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, sc = /^\((?:(\w[\w-]*):)?(.+)\)$/i, yg = /^\d+\/\d+$/, Cg = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Ig = /\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$/, wg = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Ag = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Eg = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, yt = (e) => yg.test(e), re = (e) => !!e && !Number.isNaN(Number(e)), at = (e) => !!e && Number.isInteger(Number(e)), oo = (e) => e.endsWith("%") && re(e.slice(0, -1)), qe = (e) => Cg.test(e), Rg = () => !0, Sg = (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.
Ig.test(e) && !wg.test(e)
), cc = () => !1, Ng = (e) => Ag.test(e), Pg = (e) => Eg.test(e), _g = (e) => !z(e) && !H(e), Tg = (e) => jt(e, dc, cc), z = (e) => ic.test(e), ft = (e) => jt(e, fc, Sg), ao = (e) => jt(e, kg, re), Ri = (e) => jt(e, lc, cc), Dg = (e) => jt(e, uc, Pg), Fn = (e) => jt(e, pc, Ng), H = (e) => sc.test(e), Kt = (e) => Bt(e, fc), Mg = (e) => Bt(e, Gg), Si = (e) => Bt(e, lc), Fg = (e) => Bt(e, dc), Og = (e) => Bt(e, uc), On = (e) => Bt(e, pc, !0), jt = (e, t, n) => {
const o = ic.exec(e);
return o ? o[1] ? t(o[1]) : n(o[2]) : !1;
}, Bt = (e, t, n = !1) => {
const o = sc.exec(e);
return o ? o[1] ? t(o[1]) : n : !1;
}, lc = (e) => e === "position" || e === "percentage", uc = (e) => e === "image" || e === "url", dc = (e) => e === "length" || e === "size" || e === "bg-size", fc = (e) => e === "length", kg = (e) => e === "number", Gg = (e) => e === "family-name", pc = (e) => e === "shadow", Vg = () => {
const e = ge("color"), t = ge("font"), n = ge("text"), o = ge("font-weight"), r = ge("tracking"), a = ge("leading"), i = ge("breakpoint"), s = ge("container"), c = ge("spacing"), l = ge("radius"), u = ge("shadow"), d = ge("inset-shadow"), m = ge("text-shadow"), v = ge("drop-shadow"), h = ge("blur"), g = ge("perspective"), b = ge("aspect"), C = ge("ease"), w = ge("animate"), x = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], y = () => [
"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"
], I = () => [...y(), H, z], A = () => ["auto", "hidden", "clip", "visible", "scroll"], E = () => ["auto", "contain", "none"], R = () => [H, z, c], T = () => [yt, "full", "auto", ...R()], D = () => [at, "none", "subgrid", H, z], _ = () => ["auto", {
span: ["full", at, H, z]
}, at, H, z], F = () => [at, "auto", H, z], Y = () => ["auto", "min", "max", "fr", H, z], O = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], j = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], M = () => ["auto", ...R()], B = () => [yt, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...R()], P = () => [e, H, z], k = () => [...y(), Si, Ri, {
position: [H, z]
}], N = () => ["no-repeat", {
repeat: ["", "x", "y", "space", "round"]
}], L = () => ["auto", "cover", "contain", Fg, Tg, {
size: [H, z]
}], W = () => [oo, Kt, ft], X = () => [
// Deprecated since Tailwind CSS v4.0.0
"",
"none",
"full",
l,
H,
z
], ee = () => ["", re, Kt, ft], oe = () => ["solid", "dashed", "dotted", "double"], ae = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], J = () => [re, oo, Si, Ri], ne = () => [
// Deprecated since Tailwind CSS v4.0.0
"",
"none",
h,
H,
z
], de = () => ["none", re, H, z], ye = () => ["none", re, H, z], $ = () => [re, H, z], V = () => [yt, "full", ...R()];
return {
cacheSize: 500,
theme: {
animate: ["spin", "ping", "pulse", "bounce"],
aspect: ["video"],
blur: [qe],
breakpoint: [qe],
color: [Rg],
container: [qe],
"drop-shadow": [qe],
ease: ["in", "out", "in-out"],
font: [_g],
"font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
"inset-shadow": [qe],
leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
perspective: ["dramatic", "near", "normal", "midrange", "distant", "none"],
radius: [qe],
shadow: [qe],
spacing: ["px", re],
text: [qe],
"text-shadow": [qe],
tracking: ["tighter", "tight", "normal", "wide", "wider", "widest"]
},
classGroups: {
// --------------
// --- Layout ---
// --------------
/**
* Aspect Ratio
* @see https://tailwindcss.com/docs/aspect-ratio
*/
aspect: [{
aspect: ["auto", "square", yt, z, H, b]
}],
/**
* 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: [re, z, H, s]
}],
/**
* Break After
* @see https://tailwindcss.com/docs/break-after
*/
"break-after": [{
"break-after": x()
}],
/**
* Break Before
* @see https://tailwindcss.com/docs/break-before
*/
"break-before": [{
"break-before": x()
}],
/**
* 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: I()
}],
/**
* Overflow
* @see https://tailwindcss.com/docs/overflow
*/
overflow: [{
overflow: A()
}],
/**
* Overflow X
* @see https://tailwindcss.com/docs/overflow
*/
"overflow-x": [{
"overflow-x": A()
}],
/**
* Overflow Y
* @see https://tailwindcss.com/docs/overflow
*/
"overflow-y": [{
"overflow-y": A()
}],
/**
* 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: T()
}],
/**
* Right / Left
* @see https://tailwindcss.com/docs/top-right-bottom-left
*/
"inset-x": [{
"inset-x": T()
}],
/**
* Top / Bottom
* @see https://tailwindcss.com/docs/top-right-bottom-left
*/
"inset-y": [{
"inset-y": T()
}],
/**
* Start
* @see https://tailwindcss.com/docs/top-right-bottom-left
*/
start: [{
start: T()
}],
/**
* End
* @see https://tailwindcss.com/docs/top-right-bottom-left
*/
end: [{
end: T()
}],
/**
* Top
* @see https://tailwindcss.com/docs/top-right-bottom-left
*/
top: [{
top: T()
}],
/**
* Right
* @see https://tailwindcss.com/docs/top-right-bottom-left
*/
right: [{
right: T()
}],
/**
* Bottom
* @see https://tailwindcss.com/docs/top-right-bottom-left
*/
bottom: [{
bottom: T()
}],
/**
* Left
* @see https://tailwindcss.com/docs/top-right-bottom-left
*/
left: [{
left: T()
}],
/**
* Visibility
* @see https://tailwindcss.com/docs/visibility
*/
visibility: ["visible", "invisible", "collapse"],
/**
* Z-Index
* @see https://tailwindcss.com/docs/z-index
*/
z: [{
z: [at, "auto", H, z]
}],
// ------------------------
// --- Flexbox and Grid ---
// ------------------------
/**
* Flex Basis
* @see https://tailwindcss.com/docs/flex-basis
*/
basis: [{
basis: [yt, "full", "auto", s, ...R()]
}],
/**
* 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: [re, yt, "auto", "initial", "none", z]
}],
/**
* Flex Grow
* @see https://tailwindcss.com/docs/flex-grow
*/
grow: [{
grow: ["", re, H, z]
}],
/**
* Flex Shrink
* @see https://tailwindcss.com/docs/flex-shrink
*/
shrink: [{
shrink: ["", re, H, z]
}],
/**
* Order
* @see https://tailwindcss.com/docs/order
*/
order: [{
order: [at, "first", "last", "none", H, z]
}],
/**
* Grid Template Columns
* @see https://tailwindcss.com/docs/grid-template-columns
*/
"grid-cols": [{
"grid-cols": D()
}],
/**
* Grid Column Start / End
* @see https://tailwindcss.com/docs/grid-column
*/
"col-start-end": [{
col: _()
}],
/**
* Grid Column Start
* @see https://tailwindcss.com/docs/grid-column
*/
"col-start": [{
"col-start": F()
}],
/**
* Grid Column End
* @see https://tailwindcss.com/docs/grid-column
*/
"col-end": [{
"col-end": F()
}],
/**
* Grid Template Rows
* @see https://tailwindcss.com/docs/grid-template-rows
*/
"grid-rows": [{
"grid-rows": D()
}],
/**
* Grid Row Start / End
* @see https://tailwindcss.com/docs/grid-row
*/
"row-start-end": [{
row: _()
}],
/**
* Grid Row Start
* @see https://tailwindcss.com/docs/grid-row
*/
"row-start": [{
"row-start": F()
}],
/**
* Grid Row End
* @see https://tailwindcss.com/docs/grid-row
*/
"row-end": [{
"row-end": F()
}],
/**
* 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": Y()
}],
/**
* Grid Auto Rows
* @see https://tailwindcss.com/docs/grid-auto-rows
*/
"auto-rows": [{
"auto-rows": Y()
}],
/**
* Gap
* @see https://tailwindcss.com/docs/gap
*/
gap: [{
gap: R()
}],
/**
* Gap X
* @see https://tailwindcss.com/docs/gap
*/
"gap-x": [{
"gap-x": R()
}],
/**
* Gap Y
* @see https://tailwindcss.com/docs/gap
*/
"gap-y": [{
"gap-y": R()
}],
/**
* Justify Content
* @see https://tailwindcss.com/docs/justify-content
*/
"justify-content": [{
justify: [...O(), "normal"]
}],
/**
* Justify Items
* @see https://tailwindcss.com/docs/justify-items
*/
"justify-items": [{
"justify-items": [...j(), "normal"]
}],
/**
* Justify Self
* @see https://tailwindcss.com/docs/justify-self
*/
"justify-self": [{
"justify-self": ["auto", ...j()]
}],
/**
* Align Content
* @see https://tailwindcss.com/docs/align-content
*/
"align-content": [{
content: ["normal", ...O()]
}],
/**
* Align Items
* @see https://tailwindcss.com/docs/align-items
*/
"align-items": [{
items: [...j(), {
baseline: ["", "last"]
}]
}],
/**
* Align Self
* @see https://tailwindcss.com/docs/align-self
*/
"align-self": [{
self: ["auto", ...j(), {
baseline: ["", "last"]
}]
}],
/**
* Place Content
* @see https://tailwindcss.com/docs/place-content
*/
"place-content": [{
"place-content": O()
}],
/**
* Place Items
* @see https://tailwindcss.com/docs/place-items
*/
"place-items": [{
"place-items": [...j(), "baseline"]
}],
/**
* Place Self
* @see https://tailwindcss.com/docs/place-self
*/
"place-self": [{
"place-self": ["auto", ...j()]
}],
// Spacing
/**
* Padding
* @see https://tailwindcss.com/docs/padding
*/
p: [{
p: R()
}],
/**
* Padding X
* @see https://tailwindcss.com/docs/padding
*/
px: [{
px: R()
}],
/**
* Padding Y
* @see https://tailwindcss.com/docs/padding
*/
py: [{
py: R()
}],
/**
* Padding Start
* @see https://tailwindcss.com/docs/padding
*/
ps: [{
ps: R()
}],
/**
* Padding End
* @see https://tailwindcss.com/docs/padding
*/
pe: [{
pe: R()
}],
/**
* Padding Top
* @see https://tailwindcss.com/docs/padding
*/
pt: [{
pt: R()
}],
/**
* Padding Right
* @see https://tailwindcss.com/docs/padding
*/
pr: [{
pr: R()
}],
/**
* Padding Bottom
* @see https://tailwindcss.com/docs/padding
*/
pb: [{
pb: R()
}],
/**
* Padding Left
* @see https://tailwindcss.com/docs/padding
*/
pl: [{
pl: R()
}],
/**
* Margin
* @see https://tailwindcss.com/docs/margin
*/
m: [{
m: M()
}],
/**
* Margin X
* @see https://tailwindcss.com/docs/margin
*/
mx: [{
mx: M()
}],
/**
* Margin Y
* @see https://tailwindcss.com/docs/margin
*/
my: [{
my: M()
}],
/**
* Margin Start
* @see https://tailwindcss.com/docs/margin
*/
ms: [{
ms: M()
}],
/**
* Margin End
* @see https://tailwindcss.com/docs/margin
*/
me: [{
me: M()
}],
/**
* Margin Top
* @see https://tailwindcss.com/docs/margin
*/
mt: [{
mt: M()
}],
/**
* Margin Right
* @see https://tailwindcss.com/docs/margin
*/
mr: [{
mr: M()
}],
/**
* Margin Bottom
* @see https://tailwindcss.com/docs/margin
*/
mb: [{
mb: M()
}],
/**
* Margin Left
* @see https://tailwindcss.com/docs/margin
*/
ml: [{
ml: M()
}],
/**
* Space Between X
* @see https://tailwindcss.com/docs/margin#adding-space-between-children
*/
"space-x": [{
"space-x": R()
}],
/**
* 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": R()
}],
/**
* 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: B()
}],
/**
* Width
* @see https://tailwindcss.com/docs/width
*/
w: [{
w: [s, "screen", ...B()]
}],
/**
* Min-Width
* @see https://tailwindcss.com/docs/min-width
*/
"min-w": [{
"min-w": [
s,
"screen",
/** Deprecated. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
"none",
...B()
]
}],
/**
* Max-Width
* @see https://tailwindcss.com/docs/max-width
*/
"max-w": [{
"max-w": [
s,
"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]
},
...B()
]
}],
/**
* Height
* @see https://tailwindcss.com/docs/height
*/
h: [{
h: ["screen", "lh", ...B()]
}],
/**
* Min-Height
* @see https://tailwindcss.com/docs/min-height
*/
"min-h": [{
"min-h": ["screen", "lh", "none", ...B()]
}],
/**
* Max-Height
* @see https://tailwindcss.com/docs/max-height
*/
"max-h": [{
"max-h": ["screen", "lh", ...B()]
}],
// ------------------
// --- Typography ---
// ------------------
/**
* Font Size
* @see https://tailwindcss.com/docs/font-size
*/
"font-size": [{
text: ["base", n, Kt, ft]
}],
/**
* 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: [o, H, ao]
}],
/**
* 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", oo, z]
}],
/**
* Font Family
* @see https://tailwindcss.com/docs/font-family
*/
"font-family": [{
font: [Mg, z, 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: [r, H, z]
}],
/**
* Line Clamp
* @see https://tailwindcss.com/docs/line-clamp
*/
"line-clamp": [{
"line-clamp": [re, "none", H, ao]
}],
/**
* 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 */
a,
...R()
]
}],
/**
* List Style Image
* @see https://tailwindcss.com/docs/list-style-image
*/
"list-image": [{
"list-image": ["none", H, z]
}],
/**
* 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, z]
}],
/**
* 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: P()
}],
/**
* Text Color
* @see https://tailwindcss.com/docs/text-color
*/
"text-color": [{
text: P()
}],
/**
* 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: [...oe(), "wavy"]
}],
/**
* Text Decoration Thickness
* @see https://tailwindcss.com/docs/text-decoration-thickness
*/
"text-decoration-thickness": [{
decoration: [re, "from-font", "auto", H, ft]
}],
/**
* Text Decoration Color
* @see https://tailwindcss.com/docs/text-decoration-color
*/
"text-decoration-color": [{
decoration: P()
}],
/**
* Text Underline Offset
* @see https://tailwindcss.com/docs/text-underline-offset
*/
"underline-offset": [{
"underline-offset": [re, "auto", H, z]
}],
/**
* 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: R()
}],
/**
* Vertical Alignment
* @see https://tailwindcss.com/docs/vertical-align
*/
"vertical-align": [{
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", H, z]
}],
/**
* 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, z]
}],
// -------------------
// --- 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: k()
}],
/**
* Background Repeat
* @see https://tailwindcss.com/docs/background-repeat
*/
"bg-repeat": [{
bg: N()
}],
/**
* Background Size
* @see https://tailwindcss.com/docs/background-size
*/
"bg-size": [{
bg: L()
}],
/**
* Background Image
* @see https://tailwindcss.com/docs/background-image
*/
"bg-image": [{
bg: ["none", {
linear: [{
to: ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
}, at, H, z],
radial: ["", H, z],
conic: [at, H, z]
}, Og, Dg]
}],
/**
* Background Color
* @see https://tailwindcss.com/docs/background-color
*/
"bg-color": [{
bg: P()
}],
/**
* Gradient Color Stops From Position
* @see https://tailwindcss.com/docs/gradient-color-stops
*/
"gradient-from-pos": [{
from: W()
}],
/**
* Gradient Color Stops Via Position
* @see https://tailwindcss.com/docs/gradient-color-stops
*/
"gradient-via-pos": [{
via: W()
}],
/**
* Gradient Color Stops To Position
* @see https://tailwindcss.com/docs/gradient-color-stops
*/
"gradient-to-pos": [{
to: W()
}],
/**
* Gradient Color Stops From
* @see https://tailwindcss.com/docs/gradient-color-stops
*/
"gradient-from": [{
from: P()
}],
/**
* Gradient Color Stops Via
* @see https://tailwindcss.com/docs/gradient-color-stops
*/
"gradient-via": [{
via: P()
}],
/**
* Gradient Color Stops To
* @see https://tailwindcss.com/docs/gradient-color-stops
*/
"gradient-to": [{
to: P()
}],
// ---------------
// --- Borders ---
// ---------------
/**
* Border Radius
* @see https://tailwindcss.com/docs/border-radius
*/
rounded: [{
rounded: X()
}],
/**
* Border Radius Start
* @see https://tailwindcss.com/docs/border-radius
*/
"rounded-s": [{
"rounded-s": X()
}],
/**
* Border Radius End
* @see https://tailwindcss.com/docs/border-radius
*/
"rounded-e": [{
"rounded-e": X()
}],
/**
* Border Radius Top
* @see https://tailwindcss.com/docs/border-radius
*/
"rounded-t": [{
"rounded-t": X()
}],
/**
* Border Radius Right
* @see https://tailwindcss.com/docs/border-radius
*/
"rounded-r": [{
"rounded-r": X()
}],
/**
* Border Radius Bottom
* @see https://tailwindcss.com/docs/border-radius
*/
"rounded-b": [{
"rounded-b": X()
}],
/**
* Border Radius Left
* @see https://tailwindcss.com/docs/border-radius
*/
"rounded-l": [{
"rounded-l": X()
}],
/**
* Border Radius Start Start
* @see https://tailwindcss.com/docs/border-radius
*/
"rounded-ss": [{
"rounded-ss": X()
}],
/**
* Border Radius Start End
* @see https://tailwindcss.com/docs/border-radius
*/
"rounded-se": [{
"rounded-se": X()
}],
/**
* Border Radius End End
* @see https://tailwindcss.com/docs/border-radius
*/
"rounded-ee": [{
"rounded-ee": X()
}],
/**
* Border Radius End Start
* @see https://tailwindcss.com/docs/border-radius
*/
"rounded-es": [{
"rounded-es": X()
}],
/**
* Border Radius Top Left
* @see https://tailwindcss.com/docs/border-radius
*/
"rounded-tl": [{
"rounded-tl": X()
}],
/**
* Border Radius Top Right
* @see https://tailwindcss.com/docs/border-radius
*/
"rounded-tr": [{
"rounded-tr": X()
}],
/**
* Border Radius Bottom Right
* @see https://tailwindcss.com/docs/border-radius
*/
"rounded-br": [{
"rounded-br": X()
}],
/**
* Border Radius Bottom Left
* @see https://tailwindcss.com/docs/border-radius
*/
"rounded-bl": [{
"rounded-bl": X()
}],
/**
* Border Width
* @see https://tailwindcss.com/docs/border-width
*/
"border-w": [{
border: ee()
}],
/**
* Border Width X
* @see https://tailwindcss.com/docs/border-width
*/
"border-w-x": [{
"border-x": ee()
}],
/**
* Border Width Y
* @see https://tailwindcss.com/docs/border-width
*/
"border-w-y": [{
"border-y": ee()
}],
/**
* Border Width Start
* @see https://tailwindcss.com/docs/border-width
*/
"border-w-s": [{
"border-s": ee()
}],
/**
* Border Width End
* @see https://tailwindcss.com/docs/border-width
*/
"border-w-e": [{
"border-e": ee()
}],
/**
* Border Width Top
* @see https://tailwindcss.com/docs/border-width
*/
"border-w-t": [{
"border-t": ee()
}],
/**
* Border Width Right
* @see https://tailwindcss.com/docs/border-width
*/
"border-w-r": [{
"border-r": ee()
}],
/**
* Border Width Bottom
* @see https://tailwindcss.com/docs/border-width
*/
"border-w-b": [{
"b