UNPKG

@payfit/unity-themes

Version:

153 lines (152 loc) 3.44 kB
import { validators as e } from "tailwind-merge"; //#region src/utils/merge-config.ts var t = [ "0", "25", "50", "75", "100", "125", "150", "200", "250", "300", "400", "500", "600", "800", "1000" ], n = [ "display-heading", "h1", "h2", "h3", "h4", "overline", "subtitle", "display-title", "display-body", "body", "body-strong", "body-small", "body-small-strong", "body-large", "body-large-strong", "action", "action-small", "action-large" ], r = [ "50", "75", "100", "200", "300", "400", "500", "600", "800", "1000", "1200", "1400", "1600" ], i = [ "0", "25", "50", "75", "100", "125", "150", "200", "300", "400", "xs", "sm", "md", "lg", "xl", "circle", "pill" ], a = [ "canvas", "raising", "floating", "flying", "soaring" ], o = (e) => !!(/^[a-z]+-l\d+$/.test(e) || /^(?:canvas|surface|content|border|utility)-.+$/.test(e)), s = { prefix: "uy", extend: { classGroups: { "bg-color": [{ bg: [e.isArbitraryValue, o] }], "text-color": [{ text: [e.isArbitraryValue, o] }], "border-color": [{ border: [e.isArbitraryValue, o] }], "outline-color": [{ outline: [e.isArbitraryValue, o] }], "ring-color": [{ ring: [e.isArbitraryValue, o] }], "ring-offset-color": [{ "ring-offset": [e.isArbitraryValue, o] }], "divide-color": [{ divide: [e.isArbitraryValue, o] }], "text-decoration-color": [{ decoration: [e.isArbitraryValue, o] }], "gradient-color-from": [{ from: [e.isArbitraryValue, o] }], "gradient-color-via": [{ via: [e.isArbitraryValue, o] }], "gradient-color-to": [{ to: [e.isArbitraryValue, o] }], p: [{ p: t }], px: [{ px: t }], py: [{ py: t }], ps: [{ ps: t }], pe: [{ pe: t }], pt: [{ pt: t }], pr: [{ pr: t }], pb: [{ pb: t }], pl: [{ pl: t }], m: [{ m: t }], mx: [{ mx: t }], my: [{ my: t }], ms: [{ ms: t }], me: [{ me: t }], mt: [{ mt: t }], mr: [{ mr: t }], mb: [{ mb: t }], ml: [{ ml: t }], gap: [{ gap: t }], "gap-x": [{ "gap-x": t }], "gap-y": [{ "gap-y": t }], "space-x": [{ "space-x": t }], "space-y": [{ "space-y": t }], "scroll-p": [{ "scroll-p": t }], "scroll-px": [{ "scroll-px": t }], "scroll-py": [{ "scroll-py": t }], "scroll-ps": [{ "scroll-ps": t }], "scroll-pe": [{ "scroll-pe": t }], "scroll-pt": [{ "scroll-pt": t }], "scroll-pr": [{ "scroll-pr": t }], "scroll-pb": [{ "scroll-pb": t }], "scroll-pl": [{ "scroll-pl": t }], "scroll-m": [{ "scroll-m": t }], "scroll-mx": [{ "scroll-mx": t }], "scroll-my": [{ "scroll-my": t }], "scroll-ms": [{ "scroll-ms": t }], "scroll-me": [{ "scroll-me": t }], "scroll-mt": [{ "scroll-mt": t }], "scroll-mr": [{ "scroll-mr": t }], "scroll-mb": [{ "scroll-mb": t }], "scroll-ml": [{ "scroll-ml": t }], typography: [{ typography: n }], "font-size": [{ text: r }], rounded: [{ rounded: i }], "rounded-s": [{ "rounded-s": i }], "rounded-e": [{ "rounded-e": i }], "rounded-t": [{ "rounded-t": i }], "rounded-r": [{ "rounded-r": i }], "rounded-b": [{ "rounded-b": i }], "rounded-l": [{ "rounded-l": i }], "rounded-ss": [{ "rounded-ss": i }], "rounded-se": [{ "rounded-se": i }], "rounded-ee": [{ "rounded-ee": i }], "rounded-es": [{ "rounded-es": i }], "rounded-tl": [{ "rounded-tl": i }], "rounded-tr": [{ "rounded-tr": i }], "rounded-br": [{ "rounded-br": i }], "rounded-bl": [{ "rounded-bl": i }], shadow: [{ shadow: a }] } } }; //#endregion export { s as twMergeConfig };