UNPKG

@undp/design-system-react

Version:

React based design system for UNDP

1,655 lines (1,654 loc) 36.4 kB
//#region node_modules/clsx/dist/clsx.mjs function e(t) { var n, r, i = ""; if (typeof t == "string" || typeof t == "number") i += t; else if (typeof t == "object") if (Array.isArray(t)) { var a = t.length; for (n = 0; n < a; n++) t[n] && (r = e(t[n])) && (i && (i += " "), i += r); } else for (r in t) t[r] && (i && (i += " "), i += r); return i; } function t() { for (var t, n, r = 0, i = "", a = arguments.length; r < a; r++) (t = arguments[r]) && (n = e(t)) && (i && (i += " "), i += n); return i; } //#endregion //#region node_modules/tailwind-merge/dist/bundle-mjs.mjs var n = (e) => { let t = o(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: i } = e; return { getClassGroupId: (e) => { let n = e.split("-"); return n[0] === "" && n.length !== 1 && n.shift(), r(n, t) || a(e); }, getConflictingClassGroupIds: (e, t) => { let r = n[e] || []; return t && i[e] ? [...r, ...i[e]] : r; } }; }, r = (e, t) => { if (e.length === 0) return t.classGroupId; let n = e[0], i = t.nextPart.get(n), a = i ? r(e.slice(1), i) : void 0; if (a) return a; if (t.validators.length === 0) return; let o = e.join("-"); return t.validators.find(({ validator: e }) => e(o))?.classGroupId; }, i = /^\[(.+)\]$/, a = (e) => { if (i.test(e)) { let t = i.exec(e)[1], n = t?.substring(0, t.indexOf(":")); if (n) return "arbitrary.." + n; } }, o = (e) => { let { theme: t, classGroups: n } = e, r = { nextPart: /* @__PURE__ */ new Map(), validators: [] }; for (let e in n) s(n[e], r, e, t); return r; }, s = (e, t, n, r) => { e.forEach((e) => { if (typeof e == "string") { let r = e === "" ? t : c(t, e); r.classGroupId = n; return; } if (typeof e == "function") { if (ee(e)) { s(e(r), t, n, r); return; } t.validators.push({ validator: e, classGroupId: n }); return; } Object.entries(e).forEach(([e, i]) => { s(i, c(t, e), n, r); }); }); }, c = (e, t) => { let n = e; return t.split("-").forEach((e) => { n.nextPart.has(e) || n.nextPart.set(e, { nextPart: /* @__PURE__ */ new Map(), validators: [] }), n = n.nextPart.get(e); }), n; }, ee = (e) => e.isThemeGetter, te = (e) => { if (e < 1) return { get: () => void 0, set: () => {} }; let t = 0, n = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map(), i = (i, a) => { n.set(i, a), t++, t > e && (t = 0, r = n, n = /* @__PURE__ */ new Map()); }; return { get(e) { let t = n.get(e); if (t !== void 0) return t; if ((t = r.get(e)) !== void 0) return i(e, t), t; }, set(e, t) { n.has(e) ? n.set(e, t) : i(e, t); } }; }, l = "!", u = ":", d = 1, f = (e) => { let { prefix: t, experimentalParseClassName: n } = e, r = (e) => { let t = [], n = 0, r = 0, i = 0, a; for (let o = 0; o < e.length; o++) { let s = e[o]; if (n === 0 && r === 0) { if (s === u) { t.push(e.slice(i, o)), i = o + d; continue; } if (s === "/") { a = o; continue; } } s === "[" ? n++ : s === "]" ? n-- : s === "(" ? r++ : s === ")" && r--; } let o = t.length === 0 ? e : e.substring(i), s = p(o); return { modifiers: t, hasImportantModifier: s !== o, baseClassName: s, maybePostfixModifierPosition: a && a > i ? a - i : void 0 }; }; if (t) { let e = t + u, n = r; r = (t) => t.startsWith(e) ? n(t.substring(e.length)) : { isExternal: !0, modifiers: [], hasImportantModifier: !1, baseClassName: t, maybePostfixModifierPosition: void 0 }; } if (n) { let e = r; r = (t) => n({ className: t, parseClassName: e }); } return r; }, p = (e) => e.endsWith(l) ? e.substring(0, e.length - 1) : e.startsWith(l) ? e.substring(1) : e, m = (e) => { let t = Object.fromEntries(e.orderSensitiveModifiers.map((e) => [e, !0])); return (e) => { if (e.length <= 1) return e; let n = [], r = []; return e.forEach((e) => { e[0] === "[" || t[e] ? (n.push(...r.sort(), e), r = []) : r.push(e); }), n.push(...r.sort()), n; }; }, h = (e) => ({ cache: te(e.cacheSize), parseClassName: f(e), sortModifiers: m(e), ...n(e) }), g = /\s+/, _ = (e, t) => { let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a } = t, o = [], s = e.trim().split(g), c = ""; for (let e = s.length - 1; e >= 0; --e) { let t = s[e], { isExternal: ee, modifiers: te, hasImportantModifier: u, baseClassName: d, maybePostfixModifierPosition: f } = n(t); if (ee) { c = t + (c.length > 0 ? " " + c : c); continue; } let p = !!f, m = r(p ? d.substring(0, f) : d); if (!m) { if (!p) { c = t + (c.length > 0 ? " " + c : c); continue; } if (m = r(d), !m) { c = t + (c.length > 0 ? " " + c : c); continue; } p = !1; } let h = a(te).join(":"), g = u ? h + l : h, _ = g + m; if (o.includes(_)) continue; o.push(_); let v = i(m, p); for (let e = 0; e < v.length; ++e) { let t = v[e]; o.push(g + t); } c = t + (c.length > 0 ? " " + c : c); } return c; }; function v() { let e = 0, t, n, r = ""; for (; e < arguments.length;) (t = arguments[e++]) && (n = y(t)) && (r && (r += " "), r += n); return r; } var y = (e) => { if (typeof e == "string") return e; let t, n = ""; for (let r = 0; r < e.length; r++) e[r] && (t = y(e[r])) && (n && (n += " "), n += t); return n; }; function b(e, ...t) { let n, r, i, a = o; function o(o) { return n = h(t.reduce((e, t) => t(e), e())), r = n.cache.get, i = n.cache.set, a = s, s(o); } function s(e) { let t = r(e); if (t) return t; let a = _(e, n); return i(e, a), a; } return function() { return a(v.apply(null, arguments)); }; } var x = (e) => { let t = (t) => t[e] || []; return t.isThemeGetter = !0, t; }, S = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, C = /^\((?:(\w[\w-]*):)?(.+)\)$/i, w = /^\d+\/\d+$/, ne = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, re = /\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$/, T = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, ie = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, E = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, D = (e) => w.test(e), O = (e) => !!e && !Number.isNaN(Number(e)), k = (e) => !!e && Number.isInteger(Number(e)), ae = (e) => e.endsWith("%") && O(e.slice(0, -1)), A = (e) => ne.test(e), oe = () => !0, j = (e) => re.test(e) && !T.test(e), M = () => !1, N = (e) => ie.test(e), P = (e) => E.test(e), se = (e) => !F(e) && !R(e), ce = (e) => V(e, G, M), F = (e) => S.test(e), I = (e) => V(e, K, j), le = (e) => V(e, q, O), ue = (e) => V(e, U, M), de = (e) => V(e, W, P), L = (e) => V(e, J, N), R = (e) => C.test(e), z = (e) => H(e, K), fe = (e) => H(e, ge), pe = (e) => H(e, U), me = (e) => H(e, G), he = (e) => H(e, W), B = (e) => H(e, J, !0), V = (e, t, n) => { let r = S.exec(e); return r ? r[1] ? t(r[1]) : n(r[2]) : !1; }, H = (e, t, n = !1) => { let r = C.exec(e); return r ? r[1] ? t(r[1]) : n : !1; }, U = (e) => e === "position" || e === "percentage", W = (e) => e === "image" || e === "url", G = (e) => e === "length" || e === "size" || e === "bg-size", K = (e) => e === "length", q = (e) => e === "number", ge = (e) => e === "family-name", J = (e) => e === "shadow", Y = () => { let e = x("color"), t = x("font"), n = x("text"), r = x("font-weight"), i = x("tracking"), a = x("leading"), o = x("breakpoint"), s = x("container"), c = x("spacing"), ee = x("radius"), te = x("shadow"), l = x("inset-shadow"), u = x("text-shadow"), d = x("drop-shadow"), f = x("blur"), p = x("perspective"), m = x("aspect"), h = x("ease"), g = x("animate"), _ = () => [ "auto", "avoid", "all", "avoid-page", "page", "left", "right", "column" ], v = () => [ "center", "top", "bottom", "left", "right", "top-left", "left-top", "top-right", "right-top", "bottom-right", "right-bottom", "bottom-left", "left-bottom" ], y = () => [ ...v(), R, F ], b = () => [ "auto", "hidden", "clip", "visible", "scroll" ], S = () => [ "auto", "contain", "none" ], C = () => [ R, F, c ], w = () => [ D, "full", "auto", ...C() ], ne = () => [ k, "none", "subgrid", R, F ], re = () => [ "auto", { span: [ "full", k, R, F ] }, k, R, F ], T = () => [ k, "auto", R, F ], ie = () => [ "auto", "min", "max", "fr", R, F ], E = () => [ "start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe" ], j = () => [ "start", "end", "center", "stretch", "center-safe", "end-safe" ], M = () => ["auto", ...C()], N = () => [ D, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...C() ], P = () => [ e, R, F ], V = () => [ ...v(), pe, ue, { position: [R, F] } ], H = () => ["no-repeat", { repeat: [ "", "x", "y", "space", "round" ] }], U = () => [ "auto", "cover", "contain", me, ce, { size: [R, F] } ], W = () => [ ae, z, I ], G = () => [ "", "none", "full", ee, R, F ], K = () => [ "", O, z, I ], q = () => [ "solid", "dashed", "dotted", "double" ], ge = () => [ "normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity" ], J = () => [ O, ae, pe, ue ], Y = () => [ "", "none", f, R, F ], X = () => [ "none", O, R, F ], Z = () => [ "none", O, R, F ], Q = () => [ O, R, F ], $ = () => [ D, "full", ...C() ]; return { cacheSize: 500, theme: { animate: [ "spin", "ping", "pulse", "bounce" ], aspect: ["video"], blur: [A], breakpoint: [A], color: [oe], container: [A], "drop-shadow": [A], ease: [ "in", "out", "in-out" ], font: [se], "font-weight": [ "thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black" ], "inset-shadow": [A], leading: [ "none", "tight", "snug", "normal", "relaxed", "loose" ], perspective: [ "dramatic", "near", "normal", "midrange", "distant", "none" ], radius: [A], shadow: [A], spacing: ["px", O], text: [A], "text-shadow": [A], tracking: [ "tighter", "tight", "normal", "wide", "wider", "widest" ] }, classGroups: { aspect: [{ aspect: [ "auto", "square", D, F, R, m ] }], container: ["container"], columns: [{ columns: [ O, F, R, s ] }], "break-after": [{ "break-after": _() }], "break-before": [{ "break-before": _() }], "break-inside": [{ "break-inside": [ "auto", "avoid", "avoid-page", "avoid-column" ] }], "box-decoration": [{ "box-decoration": ["slice", "clone"] }], box: [{ box: ["border", "content"] }], 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" ], sr: ["sr-only", "not-sr-only"], float: [{ float: [ "right", "left", "none", "start", "end" ] }], clear: [{ clear: [ "left", "right", "both", "none", "start", "end" ] }], isolation: ["isolate", "isolation-auto"], "object-fit": [{ object: [ "contain", "cover", "fill", "none", "scale-down" ] }], "object-position": [{ object: y() }], overflow: [{ overflow: b() }], "overflow-x": [{ "overflow-x": b() }], "overflow-y": [{ "overflow-y": b() }], overscroll: [{ overscroll: S() }], "overscroll-x": [{ "overscroll-x": S() }], "overscroll-y": [{ "overscroll-y": S() }], position: [ "static", "fixed", "absolute", "relative", "sticky" ], inset: [{ inset: w() }], "inset-x": [{ "inset-x": w() }], "inset-y": [{ "inset-y": w() }], start: [{ start: w() }], end: [{ end: w() }], top: [{ top: w() }], right: [{ right: w() }], bottom: [{ bottom: w() }], left: [{ left: w() }], visibility: [ "visible", "invisible", "collapse" ], z: [{ z: [ k, "auto", R, F ] }], basis: [{ basis: [ D, "full", "auto", s, ...C() ] }], "flex-direction": [{ flex: [ "row", "row-reverse", "col", "col-reverse" ] }], "flex-wrap": [{ flex: [ "nowrap", "wrap", "wrap-reverse" ] }], flex: [{ flex: [ O, D, "auto", "initial", "none", F ] }], grow: [{ grow: [ "", O, R, F ] }], shrink: [{ shrink: [ "", O, R, F ] }], order: [{ order: [ k, "first", "last", "none", R, F ] }], "grid-cols": [{ "grid-cols": ne() }], "col-start-end": [{ col: re() }], "col-start": [{ "col-start": T() }], "col-end": [{ "col-end": T() }], "grid-rows": [{ "grid-rows": ne() }], "row-start-end": [{ row: re() }], "row-start": [{ "row-start": T() }], "row-end": [{ "row-end": T() }], "grid-flow": [{ "grid-flow": [ "row", "col", "dense", "row-dense", "col-dense" ] }], "auto-cols": [{ "auto-cols": ie() }], "auto-rows": [{ "auto-rows": ie() }], gap: [{ gap: C() }], "gap-x": [{ "gap-x": C() }], "gap-y": [{ "gap-y": C() }], "justify-content": [{ justify: [...E(), "normal"] }], "justify-items": [{ "justify-items": [...j(), "normal"] }], "justify-self": [{ "justify-self": ["auto", ...j()] }], "align-content": [{ content: ["normal", ...E()] }], "align-items": [{ items: [...j(), { baseline: ["", "last"] }] }], "align-self": [{ self: [ "auto", ...j(), { baseline: ["", "last"] } ] }], "place-content": [{ "place-content": E() }], "place-items": [{ "place-items": [...j(), "baseline"] }], "place-self": [{ "place-self": ["auto", ...j()] }], p: [{ p: C() }], px: [{ px: C() }], py: [{ py: C() }], ps: [{ ps: C() }], pe: [{ pe: C() }], pt: [{ pt: C() }], pr: [{ pr: C() }], pb: [{ pb: C() }], pl: [{ pl: C() }], m: [{ m: M() }], mx: [{ mx: M() }], my: [{ my: M() }], ms: [{ ms: M() }], me: [{ me: M() }], mt: [{ mt: M() }], mr: [{ mr: M() }], mb: [{ mb: M() }], ml: [{ ml: M() }], "space-x": [{ "space-x": C() }], "space-x-reverse": ["space-x-reverse"], "space-y": [{ "space-y": C() }], "space-y-reverse": ["space-y-reverse"], size: [{ size: N() }], w: [{ w: [ s, "screen", ...N() ] }], "min-w": [{ "min-w": [ s, "screen", "none", ...N() ] }], "max-w": [{ "max-w": [ s, "screen", "none", "prose", { screen: [o] }, ...N() ] }], h: [{ h: [ "screen", "lh", ...N() ] }], "min-h": [{ "min-h": [ "screen", "lh", "none", ...N() ] }], "max-h": [{ "max-h": [ "screen", "lh", ...N() ] }], "font-size": [{ text: [ "base", n, z, I ] }], "font-smoothing": ["antialiased", "subpixel-antialiased"], "font-style": ["italic", "not-italic"], "font-weight": [{ font: [ r, R, le ] }], "font-stretch": [{ "font-stretch": [ "ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", ae, F ] }], "font-family": [{ font: [ fe, F, t ] }], "fvn-normal": ["normal-nums"], "fvn-ordinal": ["ordinal"], "fvn-slashed-zero": ["slashed-zero"], "fvn-figure": ["lining-nums", "oldstyle-nums"], "fvn-spacing": ["proportional-nums", "tabular-nums"], "fvn-fraction": ["diagonal-fractions", "stacked-fractions"], tracking: [{ tracking: [ i, R, F ] }], "line-clamp": [{ "line-clamp": [ O, "none", R, le ] }], leading: [{ leading: [a, ...C()] }], "list-image": [{ "list-image": [ "none", R, F ] }], "list-style-position": [{ list: ["inside", "outside"] }], "list-style-type": [{ list: [ "disc", "decimal", "none", R, F ] }], "text-alignment": [{ text: [ "left", "center", "right", "justify", "start", "end" ] }], "placeholder-color": [{ placeholder: P() }], "text-color": [{ text: P() }], "text-decoration": [ "underline", "overline", "line-through", "no-underline" ], "text-decoration-style": [{ decoration: [...q(), "wavy"] }], "text-decoration-thickness": [{ decoration: [ O, "from-font", "auto", R, I ] }], "text-decoration-color": [{ decoration: P() }], "underline-offset": [{ "underline-offset": [ O, "auto", R, F ] }], "text-transform": [ "uppercase", "lowercase", "capitalize", "normal-case" ], "text-overflow": [ "truncate", "text-ellipsis", "text-clip" ], "text-wrap": [{ text: [ "wrap", "nowrap", "balance", "pretty" ] }], indent: [{ indent: C() }], "vertical-align": [{ align: [ "baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", R, F ] }], whitespace: [{ whitespace: [ "normal", "nowrap", "pre", "pre-line", "pre-wrap", "break-spaces" ] }], break: [{ break: [ "normal", "words", "all", "keep" ] }], wrap: [{ wrap: [ "break-word", "anywhere", "normal" ] }], hyphens: [{ hyphens: [ "none", "manual", "auto" ] }], content: [{ content: [ "none", R, F ] }], "bg-attachment": [{ bg: [ "fixed", "local", "scroll" ] }], "bg-clip": [{ "bg-clip": [ "border", "padding", "content", "text" ] }], "bg-origin": [{ "bg-origin": [ "border", "padding", "content" ] }], "bg-position": [{ bg: V() }], "bg-repeat": [{ bg: H() }], "bg-size": [{ bg: U() }], "bg-image": [{ bg: [ "none", { linear: [ { to: [ "t", "tr", "r", "br", "b", "bl", "l", "tl" ] }, k, R, F ], radial: [ "", R, F ], conic: [ k, R, F ] }, he, de ] }], "bg-color": [{ bg: P() }], "gradient-from-pos": [{ from: W() }], "gradient-via-pos": [{ via: W() }], "gradient-to-pos": [{ to: W() }], "gradient-from": [{ from: P() }], "gradient-via": [{ via: P() }], "gradient-to": [{ to: P() }], rounded: [{ rounded: G() }], "rounded-s": [{ "rounded-s": G() }], "rounded-e": [{ "rounded-e": G() }], "rounded-t": [{ "rounded-t": G() }], "rounded-r": [{ "rounded-r": G() }], "rounded-b": [{ "rounded-b": G() }], "rounded-l": [{ "rounded-l": G() }], "rounded-ss": [{ "rounded-ss": G() }], "rounded-se": [{ "rounded-se": G() }], "rounded-ee": [{ "rounded-ee": G() }], "rounded-es": [{ "rounded-es": G() }], "rounded-tl": [{ "rounded-tl": G() }], "rounded-tr": [{ "rounded-tr": G() }], "rounded-br": [{ "rounded-br": G() }], "rounded-bl": [{ "rounded-bl": G() }], "border-w": [{ border: K() }], "border-w-x": [{ "border-x": K() }], "border-w-y": [{ "border-y": K() }], "border-w-s": [{ "border-s": K() }], "border-w-e": [{ "border-e": K() }], "border-w-t": [{ "border-t": K() }], "border-w-r": [{ "border-r": K() }], "border-w-b": [{ "border-b": K() }], "border-w-l": [{ "border-l": K() }], "divide-x": [{ "divide-x": K() }], "divide-x-reverse": ["divide-x-reverse"], "divide-y": [{ "divide-y": K() }], "divide-y-reverse": ["divide-y-reverse"], "border-style": [{ border: [ ...q(), "hidden", "none" ] }], "divide-style": [{ divide: [ ...q(), "hidden", "none" ] }], "border-color": [{ border: P() }], "border-color-x": [{ "border-x": P() }], "border-color-y": [{ "border-y": P() }], "border-color-s": [{ "border-s": P() }], "border-color-e": [{ "border-e": P() }], "border-color-t": [{ "border-t": P() }], "border-color-r": [{ "border-r": P() }], "border-color-b": [{ "border-b": P() }], "border-color-l": [{ "border-l": P() }], "divide-color": [{ divide: P() }], "outline-style": [{ outline: [ ...q(), "none", "hidden" ] }], "outline-offset": [{ "outline-offset": [ O, R, F ] }], "outline-w": [{ outline: [ "", O, z, I ] }], "outline-color": [{ outline: P() }], shadow: [{ shadow: [ "", "none", te, B, L ] }], "shadow-color": [{ shadow: P() }], "inset-shadow": [{ "inset-shadow": [ "none", l, B, L ] }], "inset-shadow-color": [{ "inset-shadow": P() }], "ring-w": [{ ring: K() }], "ring-w-inset": ["ring-inset"], "ring-color": [{ ring: P() }], "ring-offset-w": [{ "ring-offset": [O, I] }], "ring-offset-color": [{ "ring-offset": P() }], "inset-ring-w": [{ "inset-ring": K() }], "inset-ring-color": [{ "inset-ring": P() }], "text-shadow": [{ "text-shadow": [ "none", u, B, L ] }], "text-shadow-color": [{ "text-shadow": P() }], opacity: [{ opacity: [ O, R, F ] }], "mix-blend": [{ "mix-blend": [ ...ge(), "plus-darker", "plus-lighter" ] }], "bg-blend": [{ "bg-blend": ge() }], "mask-clip": [{ "mask-clip": [ "border", "padding", "content", "fill", "stroke", "view" ] }, "mask-no-clip"], "mask-composite": [{ mask: [ "add", "subtract", "intersect", "exclude" ] }], "mask-image-linear-pos": [{ "mask-linear": [O] }], "mask-image-linear-from-pos": [{ "mask-linear-from": J() }], "mask-image-linear-to-pos": [{ "mask-linear-to": J() }], "mask-image-linear-from-color": [{ "mask-linear-from": P() }], "mask-image-linear-to-color": [{ "mask-linear-to": P() }], "mask-image-t-from-pos": [{ "mask-t-from": J() }], "mask-image-t-to-pos": [{ "mask-t-to": J() }], "mask-image-t-from-color": [{ "mask-t-from": P() }], "mask-image-t-to-color": [{ "mask-t-to": P() }], "mask-image-r-from-pos": [{ "mask-r-from": J() }], "mask-image-r-to-pos": [{ "mask-r-to": J() }], "mask-image-r-from-color": [{ "mask-r-from": P() }], "mask-image-r-to-color": [{ "mask-r-to": P() }], "mask-image-b-from-pos": [{ "mask-b-from": J() }], "mask-image-b-to-pos": [{ "mask-b-to": J() }], "mask-image-b-from-color": [{ "mask-b-from": P() }], "mask-image-b-to-color": [{ "mask-b-to": P() }], "mask-image-l-from-pos": [{ "mask-l-from": J() }], "mask-image-l-to-pos": [{ "mask-l-to": J() }], "mask-image-l-from-color": [{ "mask-l-from": P() }], "mask-image-l-to-color": [{ "mask-l-to": P() }], "mask-image-x-from-pos": [{ "mask-x-from": J() }], "mask-image-x-to-pos": [{ "mask-x-to": J() }], "mask-image-x-from-color": [{ "mask-x-from": P() }], "mask-image-x-to-color": [{ "mask-x-to": P() }], "mask-image-y-from-pos": [{ "mask-y-from": J() }], "mask-image-y-to-pos": [{ "mask-y-to": J() }], "mask-image-y-from-color": [{ "mask-y-from": P() }], "mask-image-y-to-color": [{ "mask-y-to": P() }], "mask-image-radial": [{ "mask-radial": [R, F] }], "mask-image-radial-from-pos": [{ "mask-radial-from": J() }], "mask-image-radial-to-pos": [{ "mask-radial-to": J() }], "mask-image-radial-from-color": [{ "mask-radial-from": P() }], "mask-image-radial-to-color": [{ "mask-radial-to": P() }], "mask-image-radial-shape": [{ "mask-radial": ["circle", "ellipse"] }], "mask-image-radial-size": [{ "mask-radial": [{ closest: ["side", "corner"], farthest: ["side", "corner"] }] }], "mask-image-radial-pos": [{ "mask-radial-at": v() }], "mask-image-conic-pos": [{ "mask-conic": [O] }], "mask-image-conic-from-pos": [{ "mask-conic-from": J() }], "mask-image-conic-to-pos": [{ "mask-conic-to": J() }], "mask-image-conic-from-color": [{ "mask-conic-from": P() }], "mask-image-conic-to-color": [{ "mask-conic-to": P() }], "mask-mode": [{ mask: [ "alpha", "luminance", "match" ] }], "mask-origin": [{ "mask-origin": [ "border", "padding", "content", "fill", "stroke", "view" ] }], "mask-position": [{ mask: V() }], "mask-repeat": [{ mask: H() }], "mask-size": [{ mask: U() }], "mask-type": [{ "mask-type": ["alpha", "luminance"] }], "mask-image": [{ mask: [ "none", R, F ] }], filter: [{ filter: [ "", "none", R, F ] }], blur: [{ blur: Y() }], brightness: [{ brightness: [ O, R, F ] }], contrast: [{ contrast: [ O, R, F ] }], "drop-shadow": [{ "drop-shadow": [ "", "none", d, B, L ] }], "drop-shadow-color": [{ "drop-shadow": P() }], grayscale: [{ grayscale: [ "", O, R, F ] }], "hue-rotate": [{ "hue-rotate": [ O, R, F ] }], invert: [{ invert: [ "", O, R, F ] }], saturate: [{ saturate: [ O, R, F ] }], sepia: [{ sepia: [ "", O, R, F ] }], "backdrop-filter": [{ "backdrop-filter": [ "", "none", R, F ] }], "backdrop-blur": [{ "backdrop-blur": Y() }], "backdrop-brightness": [{ "backdrop-brightness": [ O, R, F ] }], "backdrop-contrast": [{ "backdrop-contrast": [ O, R, F ] }], "backdrop-grayscale": [{ "backdrop-grayscale": [ "", O, R, F ] }], "backdrop-hue-rotate": [{ "backdrop-hue-rotate": [ O, R, F ] }], "backdrop-invert": [{ "backdrop-invert": [ "", O, R, F ] }], "backdrop-opacity": [{ "backdrop-opacity": [ O, R, F ] }], "backdrop-saturate": [{ "backdrop-saturate": [ O, R, F ] }], "backdrop-sepia": [{ "backdrop-sepia": [ "", O, R, F ] }], "border-collapse": [{ border: ["collapse", "separate"] }], "border-spacing": [{ "border-spacing": C() }], "border-spacing-x": [{ "border-spacing-x": C() }], "border-spacing-y": [{ "border-spacing-y": C() }], "table-layout": [{ table: ["auto", "fixed"] }], caption: [{ caption: ["top", "bottom"] }], transition: [{ transition: [ "", "all", "colors", "opacity", "shadow", "transform", "none", R, F ] }], "transition-behavior": [{ transition: ["normal", "discrete"] }], duration: [{ duration: [ O, "initial", R, F ] }], ease: [{ ease: [ "linear", "initial", h, R, F ] }], delay: [{ delay: [ O, R, F ] }], animate: [{ animate: [ "none", g, R, F ] }], backface: [{ backface: ["hidden", "visible"] }], perspective: [{ perspective: [ p, R, F ] }], "perspective-origin": [{ "perspective-origin": y() }], rotate: [{ rotate: X() }], "rotate-x": [{ "rotate-x": X() }], "rotate-y": [{ "rotate-y": X() }], "rotate-z": [{ "rotate-z": X() }], scale: [{ scale: Z() }], "scale-x": [{ "scale-x": Z() }], "scale-y": [{ "scale-y": Z() }], "scale-z": [{ "scale-z": Z() }], "scale-3d": ["scale-3d"], skew: [{ skew: Q() }], "skew-x": [{ "skew-x": Q() }], "skew-y": [{ "skew-y": Q() }], transform: [{ transform: [ R, F, "", "none", "gpu", "cpu" ] }], "transform-origin": [{ origin: y() }], "transform-style": [{ transform: ["3d", "flat"] }], translate: [{ translate: $() }], "translate-x": [{ "translate-x": $() }], "translate-y": [{ "translate-y": $() }], "translate-z": [{ "translate-z": $() }], "translate-none": ["translate-none"], accent: [{ accent: P() }], appearance: [{ appearance: ["none", "auto"] }], "caret-color": [{ caret: P() }], "color-scheme": [{ scheme: [ "normal", "dark", "light", "light-dark", "only-dark", "only-light" ] }], cursor: [{ cursor: [ "auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", R, F ] }], "field-sizing": [{ "field-sizing": ["fixed", "content"] }], "pointer-events": [{ "pointer-events": ["auto", "none"] }], resize: [{ resize: [ "none", "", "y", "x" ] }], "scroll-behavior": [{ scroll: ["auto", "smooth"] }], "scroll-m": [{ "scroll-m": C() }], "scroll-mx": [{ "scroll-mx": C() }], "scroll-my": [{ "scroll-my": C() }], "scroll-ms": [{ "scroll-ms": C() }], "scroll-me": [{ "scroll-me": C() }], "scroll-mt": [{ "scroll-mt": C() }], "scroll-mr": [{ "scroll-mr": C() }], "scroll-mb": [{ "scroll-mb": C() }], "scroll-ml": [{ "scroll-ml": C() }], "scroll-p": [{ "scroll-p": C() }], "scroll-px": [{ "scroll-px": C() }], "scroll-py": [{ "scroll-py": C() }], "scroll-ps": [{ "scroll-ps": C() }], "scroll-pe": [{ "scroll-pe": C() }], "scroll-pt": [{ "scroll-pt": C() }], "scroll-pr": [{ "scroll-pr": C() }], "scroll-pb": [{ "scroll-pb": C() }], "scroll-pl": [{ "scroll-pl": C() }], "snap-align": [{ snap: [ "start", "end", "center", "align-none" ] }], "snap-stop": [{ snap: ["normal", "always"] }], "snap-type": [{ snap: [ "none", "x", "y", "both" ] }], "snap-strictness": [{ snap: ["mandatory", "proximity"] }], touch: [{ touch: [ "auto", "none", "manipulation" ] }], "touch-x": [{ "touch-pan": [ "x", "left", "right" ] }], "touch-y": [{ "touch-pan": [ "y", "up", "down" ] }], "touch-pz": ["touch-pinch-zoom"], select: [{ select: [ "none", "text", "all", "auto" ] }], "will-change": [{ "will-change": [ "auto", "scroll", "contents", "transform", R, F ] }], fill: [{ fill: ["none", ...P()] }], "stroke-w": [{ stroke: [ O, z, I, le ] }], stroke: [{ stroke: ["none", ...P()] }], "forced-color-adjust": [{ "forced-color-adjust": ["auto", "none"] }] }, conflictingClassGroups: { overflow: ["overflow-x", "overflow-y"], overscroll: ["overscroll-x", "overscroll-y"], inset: [ "inset-x", "inset-y", "start", "end", "top", "right", "bottom", "left" ], "inset-x": ["right", "left"], "inset-y": ["top", "bottom"], flex: [ "basis", "grow", "shrink" ], gap: ["gap-x", "gap-y"], p: [ "px", "py", "ps", "pe", "pt", "pr", "pb", "pl" ], px: ["pr", "pl"], py: ["pt", "pb"], m: [ "mx", "my", "ms", "me", "mt", "mr", "mb", "ml" ], mx: ["mr", "ml"], my: ["mt", "mb"], size: ["w", "h"], "font-size": ["leading"], "fvn-normal": [ "fvn-ordinal", "fvn-slashed-zero", "fvn-figure", "fvn-spacing", "fvn-fraction" ], "fvn-ordinal": ["fvn-normal"], "fvn-slashed-zero": ["fvn-normal"], "fvn-figure": ["fvn-normal"], "fvn-spacing": ["fvn-normal"], "fvn-fraction": ["fvn-normal"], "line-clamp": ["display", "overflow"], rounded: [ "rounded-s", "rounded-e", "rounded-t", "rounded-r", "rounded-b", "rounded-l", "rounded-ss", "rounded-se", "rounded-ee", "rounded-es", "rounded-tl", "rounded-tr", "rounded-br", "rounded-bl" ], "rounded-s": ["rounded-ss", "rounded-es"], "rounded-e": ["rounded-se", "rounded-ee"], "rounded-t": ["rounded-tl", "rounded-tr"], "rounded-r": ["rounded-tr", "rounded-br"], "rounded-b": ["rounded-br", "rounded-bl"], "rounded-l": ["rounded-tl", "rounded-bl"], "border-spacing": ["border-spacing-x", "border-spacing-y"], "border-w": [ "border-w-x", "border-w-y", "border-w-s", "border-w-e", "border-w-t", "border-w-r", "border-w-b", "border-w-l" ], "border-w-x": ["border-w-r", "border-w-l"], "border-w-y": ["border-w-t", "border-w-b"], "border-color": [ "border-color-x", "border-color-y", "border-color-s", "border-color-e", "border-color-t", "border-color-r", "border-color-b", "border-color-l" ], "border-color-x": ["border-color-r", "border-color-l"], "border-color-y": ["border-color-t", "border-color-b"], translate: [ "translate-x", "translate-y", "translate-none" ], "translate-none": [ "translate", "translate-x", "translate-y", "translate-z" ], "scroll-m": [ "scroll-mx", "scroll-my", "scroll-ms", "scroll-me", "scroll-mt", "scroll-mr", "scroll-mb", "scroll-ml" ], "scroll-mx": ["scroll-mr", "scroll-ml"], "scroll-my": ["scroll-mt", "scroll-mb"], "scroll-p": [ "scroll-px", "scroll-py", "scroll-ps", "scroll-pe", "scroll-pt", "scroll-pr", "scroll-pb", "scroll-pl" ], "scroll-px": ["scroll-pr", "scroll-pl"], "scroll-py": ["scroll-pt", "scroll-pb"], touch: [ "touch-x", "touch-y", "touch-pz" ], "touch-x": ["touch"], "touch-y": ["touch"], "touch-pz": ["touch"] }, conflictingClassGroupModifiers: { "font-size": ["leading"] }, orderSensitiveModifiers: [ "*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection" ] }; }, X = (e, { cacheSize: t, prefix: n, experimentalParseClassName: r, extend: i = {}, override: a = {} }) => (Z(e, "cacheSize", t), Z(e, "prefix", n), Z(e, "experimentalParseClassName", r), Q(e.theme, a.theme), Q(e.classGroups, a.classGroups), Q(e.conflictingClassGroups, a.conflictingClassGroups), Q(e.conflictingClassGroupModifiers, a.conflictingClassGroupModifiers), Z(e, "orderSensitiveModifiers", a.orderSensitiveModifiers), $(e.theme, i.theme), $(e.classGroups, i.classGroups), $(e.conflictingClassGroups, i.conflictingClassGroups), $(e.conflictingClassGroupModifiers, i.conflictingClassGroupModifiers), _e(e, i, "orderSensitiveModifiers"), e), Z = (e, t, n) => { n !== void 0 && (e[t] = n); }, Q = (e, t) => { if (t) for (let n in t) Z(e, n, t[n]); }, $ = (e, t) => { if (t) for (let n in t) _e(e, t, n); }, _e = (e, t, n) => { let r = t[n]; r !== void 0 && (e[n] = e[n] ? e[n].concat(r) : r); }, ve = ((e, ...t) => typeof e == "function" ? b(Y, e, ...t) : b(() => X(Y(), e), ...t))({ extend: { classGroups: { "font-size": /* @__PURE__ */ "text-h1.text-h1-sm.text-h1-xs.text-h2.text-h2-sm.text-h2-xs.text-h3.text-h3-sm.text-h3-xs.text-h4.text-h4-sm.text-h4-xs.text-h5.text-h5-sm.text-h5-xs.text-h6.text-h6-sm.text-h6-xs.text-p.text-p-sm.text-p-xs.text-2xl.text-xl.text-lg.text-base.text-sm.text-xs.text-2xs".split("."), "font-family": [ "font-heading", "font-body", "font-sans", "font-mono", "font-serif", "font-sans-ar", "font-sans-az", "font-sans-bn", "font-sans-he", "font-sans-hi", "font-sans-ja", "font-sans-ka", "font-sans-km", "font-sans-ko", "font-sans-my", "font-sans-ne", "font-sans-zh" ], leading: [ "leading-none", "leading-xs", "leading-sm", "leading-base", "leading-lg", "leading-xl", "leading-2xl", "leading-h1", "leading-h2", "leading-h3", "leading-h4", "leading-h5", "leading-h6", "leading-p" ] } } }); function ye(...e) { return ve(t(e)); } function be() { return Math.random().toString(36).substring(2, 10); } //#endregion export { be as n, t as r, ye as t }; //# sourceMappingURL=utils-ca9as9Ye.js.map