UEA-PRODEM
This commit is contained in:
+292
-41
@@ -305,15 +305,27 @@ var createConfigUtils = (config) => ({
|
||||
cache: createLruCache(config.cacheSize),
|
||||
parseClassName: createParseClassName(config),
|
||||
sortModifiers: createSortModifiers(config),
|
||||
postfixLookupClassGroupIds: createPostfixLookupClassGroupIds(config),
|
||||
...createClassGroupUtils(config)
|
||||
});
|
||||
var createPostfixLookupClassGroupIds = (config) => {
|
||||
const lookup = /* @__PURE__ */ Object.create(null);
|
||||
const classGroupIds = config.postfixLookupClassGroups;
|
||||
if (classGroupIds) {
|
||||
for (let i = 0; i < classGroupIds.length; i++) {
|
||||
lookup[classGroupIds[i]] = true;
|
||||
}
|
||||
}
|
||||
return lookup;
|
||||
};
|
||||
var SPLIT_CLASSES_REGEX = /\s+/;
|
||||
var mergeClassList = (classList, configUtils) => {
|
||||
const {
|
||||
parseClassName,
|
||||
getClassGroupId,
|
||||
getConflictingClassGroupIds,
|
||||
sortModifiers
|
||||
sortModifiers,
|
||||
postfixLookupClassGroupIds
|
||||
} = configUtils;
|
||||
const classGroupsInConflict = [];
|
||||
const classNames = classList.trim().split(SPLIT_CLASSES_REGEX);
|
||||
@@ -332,7 +344,18 @@ var mergeClassList = (classList, configUtils) => {
|
||||
continue;
|
||||
}
|
||||
let hasPostfixModifier = !!maybePostfixModifierPosition;
|
||||
let classGroupId = getClassGroupId(hasPostfixModifier ? baseClassName.substring(0, maybePostfixModifierPosition) : baseClassName);
|
||||
let classGroupId;
|
||||
if (hasPostfixModifier) {
|
||||
const baseClassNameWithoutPostfix = baseClassName.substring(0, maybePostfixModifierPosition);
|
||||
classGroupId = getClassGroupId(baseClassNameWithoutPostfix);
|
||||
const classGroupIdWithPostfix = classGroupId && postfixLookupClassGroupIds[classGroupId] ? getClassGroupId(baseClassName) : void 0;
|
||||
if (classGroupIdWithPostfix && classGroupIdWithPostfix !== classGroupId) {
|
||||
classGroupId = classGroupIdWithPostfix;
|
||||
hasPostfixModifier = false;
|
||||
}
|
||||
} else {
|
||||
classGroupId = getClassGroupId(baseClassName);
|
||||
}
|
||||
if (!classGroupId) {
|
||||
if (!hasPostfixModifier) {
|
||||
result = originalClassName + (result.length > 0 ? " " + result : result);
|
||||
@@ -425,7 +448,7 @@ var fromTheme = (key) => {
|
||||
};
|
||||
var arbitraryValueRegex = /^\[(?:(\w[\w-]*):)?(.+)\]$/i;
|
||||
var arbitraryVariableRegex = /^\((?:(\w[\w-]*):)?(.+)\)$/i;
|
||||
var fractionRegex = /^\d+\/\d+$/;
|
||||
var fractionRegex = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/;
|
||||
var tshirtUnitRegex = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/;
|
||||
var lengthUnitRegex = /\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$/;
|
||||
var colorFunctionRegex = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/;
|
||||
@@ -447,10 +470,13 @@ var isNever = () => false;
|
||||
var isShadow = (value) => shadowRegex.test(value);
|
||||
var isImage = (value) => imageRegex.test(value);
|
||||
var isAnyNonArbitrary = (value) => !isArbitraryValue(value) && !isArbitraryVariable(value);
|
||||
var isNamedContainerQuery = (value) => value.startsWith("@container") && (value[10] === "/" && value[11] !== void 0 || value[11] === "s" && value[16] !== void 0 && value.startsWith("-size/", 10) || value[11] === "n" && value[18] !== void 0 && value.startsWith("-normal/", 10));
|
||||
var isArbitrarySize = (value) => getIsArbitraryValue(value, isLabelSize, isNever);
|
||||
var isArbitraryValue = (value) => arbitraryValueRegex.test(value);
|
||||
var isArbitraryLength = (value) => getIsArbitraryValue(value, isLabelLength, isLengthOnly);
|
||||
var isArbitraryNumber = (value) => getIsArbitraryValue(value, isLabelNumber, isNumber);
|
||||
var isArbitraryWeight = (value) => getIsArbitraryValue(value, isLabelWeight, isAny);
|
||||
var isArbitraryFamilyName = (value) => getIsArbitraryValue(value, isLabelFamilyName, isNever);
|
||||
var isArbitraryPosition = (value) => getIsArbitraryValue(value, isLabelPosition, isNever);
|
||||
var isArbitraryImage = (value) => getIsArbitraryValue(value, isLabelImage, isImage);
|
||||
var isArbitraryShadow = (value) => getIsArbitraryValue(value, isLabelShadow, isShadow);
|
||||
@@ -461,6 +487,7 @@ var isArbitraryVariablePosition = (value) => getIsArbitraryVariable(value, isLab
|
||||
var isArbitraryVariableSize = (value) => getIsArbitraryVariable(value, isLabelSize);
|
||||
var isArbitraryVariableImage = (value) => getIsArbitraryVariable(value, isLabelImage);
|
||||
var isArbitraryVariableShadow = (value) => getIsArbitraryVariable(value, isLabelShadow, true);
|
||||
var isArbitraryVariableWeight = (value) => getIsArbitraryVariable(value, isLabelWeight, true);
|
||||
var getIsArbitraryValue = (value, testLabel, testValue) => {
|
||||
const result = arbitraryValueRegex.exec(value);
|
||||
if (result) {
|
||||
@@ -487,11 +514,13 @@ var isLabelSize = (label) => label === "length" || label === "size" || label ===
|
||||
var isLabelLength = (label) => label === "length";
|
||||
var isLabelNumber = (label) => label === "number";
|
||||
var isLabelFamilyName = (label) => label === "family-name";
|
||||
var isLabelWeight = (label) => label === "number" || label === "weight";
|
||||
var isLabelShadow = (label) => label === "shadow";
|
||||
var validators = Object.defineProperty({
|
||||
__proto__: null,
|
||||
isAny,
|
||||
isAnyNonArbitrary,
|
||||
isArbitraryFamilyName,
|
||||
isArbitraryImage,
|
||||
isArbitraryLength,
|
||||
isArbitraryNumber,
|
||||
@@ -506,8 +535,11 @@ var validators = Object.defineProperty({
|
||||
isArbitraryVariablePosition,
|
||||
isArbitraryVariableShadow,
|
||||
isArbitraryVariableSize,
|
||||
isArbitraryVariableWeight,
|
||||
isArbitraryWeight,
|
||||
isFraction,
|
||||
isInteger,
|
||||
isNamedContainerQuery,
|
||||
isNumber,
|
||||
isPercent,
|
||||
isTshirtSize
|
||||
@@ -569,6 +601,8 @@ var getDefaultConfig = () => {
|
||||
const scaleAlignSecondaryAxis = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"];
|
||||
const scaleMargin = () => ["auto", ...scaleUnambiguousSpacing()];
|
||||
const scaleSizing = () => [isFraction, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...scaleUnambiguousSpacing()];
|
||||
const scaleSizingInline = () => [isFraction, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...scaleUnambiguousSpacing()];
|
||||
const scaleSizingBlock = () => [isFraction, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...scaleUnambiguousSpacing()];
|
||||
const scaleColor = () => [themeColor, isArbitraryVariable, isArbitraryValue];
|
||||
const scaleBgPosition = () => [...scalePosition(), isArbitraryVariablePosition, isArbitraryPosition, {
|
||||
position: [isArbitraryVariable, isArbitraryValue]
|
||||
@@ -645,6 +679,18 @@ var getDefaultConfig = () => {
|
||||
* @deprecated since Tailwind CSS v4.0.0
|
||||
*/
|
||||
container: ["container"],
|
||||
/**
|
||||
* Container Type
|
||||
* @see https://tailwindcss.com/docs/responsive-design#container-queries
|
||||
*/
|
||||
"container-type": [{
|
||||
"@container": ["", "normal", "size", isArbitraryVariable, isArbitraryValue]
|
||||
}],
|
||||
/**
|
||||
* Container Name
|
||||
* @see https://tailwindcss.com/docs/responsive-design#named-containers
|
||||
*/
|
||||
"container-named": [isNamedContainerQuery],
|
||||
/**
|
||||
* Columns
|
||||
* @see https://tailwindcss.com/docs/columns
|
||||
@@ -778,40 +824,66 @@ var getDefaultConfig = () => {
|
||||
*/
|
||||
position: ["static", "fixed", "absolute", "relative", "sticky"],
|
||||
/**
|
||||
* Top / Right / Bottom / Left
|
||||
* Inset
|
||||
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
||||
*/
|
||||
inset: [{
|
||||
inset: scaleInset()
|
||||
}],
|
||||
/**
|
||||
* Right / Left
|
||||
* Inset Inline
|
||||
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
||||
*/
|
||||
"inset-x": [{
|
||||
"inset-x": scaleInset()
|
||||
}],
|
||||
/**
|
||||
* Top / Bottom
|
||||
* Inset Block
|
||||
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
||||
*/
|
||||
"inset-y": [{
|
||||
"inset-y": scaleInset()
|
||||
}],
|
||||
/**
|
||||
* Start
|
||||
* Inset Inline Start
|
||||
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
||||
* @todo class group will be renamed to `inset-s` in next major release
|
||||
*/
|
||||
start: [{
|
||||
"inset-s": scaleInset(),
|
||||
/**
|
||||
* @deprecated since Tailwind CSS v4.2.0 in favor of `inset-s-*` utilities.
|
||||
* @see https://github.com/tailwindlabs/tailwindcss/pull/19613
|
||||
*/
|
||||
start: scaleInset()
|
||||
}],
|
||||
/**
|
||||
* End
|
||||
* Inset Inline End
|
||||
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
||||
* @todo class group will be renamed to `inset-e` in next major release
|
||||
*/
|
||||
end: [{
|
||||
"inset-e": scaleInset(),
|
||||
/**
|
||||
* @deprecated since Tailwind CSS v4.2.0 in favor of `inset-e-*` utilities.
|
||||
* @see https://github.com/tailwindlabs/tailwindcss/pull/19613
|
||||
*/
|
||||
end: scaleInset()
|
||||
}],
|
||||
/**
|
||||
* Inset Block Start
|
||||
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
||||
*/
|
||||
"inset-bs": [{
|
||||
"inset-bs": scaleInset()
|
||||
}],
|
||||
/**
|
||||
* Inset Block End
|
||||
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
||||
*/
|
||||
"inset-be": [{
|
||||
"inset-be": scaleInset()
|
||||
}],
|
||||
/**
|
||||
* Top
|
||||
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
||||
@@ -1078,33 +1150,47 @@ var getDefaultConfig = () => {
|
||||
p: scaleUnambiguousSpacing()
|
||||
}],
|
||||
/**
|
||||
* Padding X
|
||||
* Padding Inline
|
||||
* @see https://tailwindcss.com/docs/padding
|
||||
*/
|
||||
px: [{
|
||||
px: scaleUnambiguousSpacing()
|
||||
}],
|
||||
/**
|
||||
* Padding Y
|
||||
* Padding Block
|
||||
* @see https://tailwindcss.com/docs/padding
|
||||
*/
|
||||
py: [{
|
||||
py: scaleUnambiguousSpacing()
|
||||
}],
|
||||
/**
|
||||
* Padding Start
|
||||
* Padding Inline Start
|
||||
* @see https://tailwindcss.com/docs/padding
|
||||
*/
|
||||
ps: [{
|
||||
ps: scaleUnambiguousSpacing()
|
||||
}],
|
||||
/**
|
||||
* Padding End
|
||||
* Padding Inline End
|
||||
* @see https://tailwindcss.com/docs/padding
|
||||
*/
|
||||
pe: [{
|
||||
pe: scaleUnambiguousSpacing()
|
||||
}],
|
||||
/**
|
||||
* Padding Block Start
|
||||
* @see https://tailwindcss.com/docs/padding
|
||||
*/
|
||||
pbs: [{
|
||||
pbs: scaleUnambiguousSpacing()
|
||||
}],
|
||||
/**
|
||||
* Padding Block End
|
||||
* @see https://tailwindcss.com/docs/padding
|
||||
*/
|
||||
pbe: [{
|
||||
pbe: scaleUnambiguousSpacing()
|
||||
}],
|
||||
/**
|
||||
* Padding Top
|
||||
* @see https://tailwindcss.com/docs/padding
|
||||
@@ -1141,33 +1227,47 @@ var getDefaultConfig = () => {
|
||||
m: scaleMargin()
|
||||
}],
|
||||
/**
|
||||
* Margin X
|
||||
* Margin Inline
|
||||
* @see https://tailwindcss.com/docs/margin
|
||||
*/
|
||||
mx: [{
|
||||
mx: scaleMargin()
|
||||
}],
|
||||
/**
|
||||
* Margin Y
|
||||
* Margin Block
|
||||
* @see https://tailwindcss.com/docs/margin
|
||||
*/
|
||||
my: [{
|
||||
my: scaleMargin()
|
||||
}],
|
||||
/**
|
||||
* Margin Start
|
||||
* Margin Inline Start
|
||||
* @see https://tailwindcss.com/docs/margin
|
||||
*/
|
||||
ms: [{
|
||||
ms: scaleMargin()
|
||||
}],
|
||||
/**
|
||||
* Margin End
|
||||
* Margin Inline End
|
||||
* @see https://tailwindcss.com/docs/margin
|
||||
*/
|
||||
me: [{
|
||||
me: scaleMargin()
|
||||
}],
|
||||
/**
|
||||
* Margin Block Start
|
||||
* @see https://tailwindcss.com/docs/margin
|
||||
*/
|
||||
mbs: [{
|
||||
mbs: scaleMargin()
|
||||
}],
|
||||
/**
|
||||
* Margin Block End
|
||||
* @see https://tailwindcss.com/docs/margin
|
||||
*/
|
||||
mbe: [{
|
||||
mbe: scaleMargin()
|
||||
}],
|
||||
/**
|
||||
* Margin Top
|
||||
* @see https://tailwindcss.com/docs/margin
|
||||
@@ -1230,6 +1330,48 @@ var getDefaultConfig = () => {
|
||||
size: [{
|
||||
size: scaleSizing()
|
||||
}],
|
||||
/**
|
||||
* Inline Size
|
||||
* @see https://tailwindcss.com/docs/width
|
||||
*/
|
||||
"inline-size": [{
|
||||
inline: ["auto", ...scaleSizingInline()]
|
||||
}],
|
||||
/**
|
||||
* Min-Inline Size
|
||||
* @see https://tailwindcss.com/docs/min-width
|
||||
*/
|
||||
"min-inline-size": [{
|
||||
"min-inline": ["auto", ...scaleSizingInline()]
|
||||
}],
|
||||
/**
|
||||
* Max-Inline Size
|
||||
* @see https://tailwindcss.com/docs/max-width
|
||||
*/
|
||||
"max-inline-size": [{
|
||||
"max-inline": ["none", ...scaleSizingInline()]
|
||||
}],
|
||||
/**
|
||||
* Block Size
|
||||
* @see https://tailwindcss.com/docs/height
|
||||
*/
|
||||
"block-size": [{
|
||||
block: ["auto", ...scaleSizingBlock()]
|
||||
}],
|
||||
/**
|
||||
* Min-Block Size
|
||||
* @see https://tailwindcss.com/docs/min-height
|
||||
*/
|
||||
"min-block-size": [{
|
||||
"min-block": ["auto", ...scaleSizingBlock()]
|
||||
}],
|
||||
/**
|
||||
* Max-Block Size
|
||||
* @see https://tailwindcss.com/docs/max-height
|
||||
*/
|
||||
"max-block-size": [{
|
||||
"max-block": ["none", ...scaleSizingBlock()]
|
||||
}],
|
||||
/**
|
||||
* Width
|
||||
* @see https://tailwindcss.com/docs/width
|
||||
@@ -1314,7 +1456,7 @@ var getDefaultConfig = () => {
|
||||
* @see https://tailwindcss.com/docs/font-weight
|
||||
*/
|
||||
"font-weight": [{
|
||||
font: [themeFontWeight, isArbitraryVariable, isArbitraryNumber]
|
||||
font: [themeFontWeight, isArbitraryVariableWeight, isArbitraryWeight]
|
||||
}],
|
||||
/**
|
||||
* Font Stretch
|
||||
@@ -1328,7 +1470,14 @@ var getDefaultConfig = () => {
|
||||
* @see https://tailwindcss.com/docs/font-family
|
||||
*/
|
||||
"font-family": [{
|
||||
font: [isArbitraryVariableFamilyName, isArbitraryValue, themeFont]
|
||||
font: [isArbitraryVariableFamilyName, isArbitraryFamilyName, themeFont]
|
||||
}],
|
||||
/**
|
||||
* Font Feature Settings
|
||||
* @see https://tailwindcss.com/docs/font-feature-settings
|
||||
*/
|
||||
"font-features": [{
|
||||
"font-features": [isArbitraryValue]
|
||||
}],
|
||||
/**
|
||||
* Font Variant Numeric
|
||||
@@ -1485,6 +1634,13 @@ var getDefaultConfig = () => {
|
||||
indent: [{
|
||||
indent: scaleUnambiguousSpacing()
|
||||
}],
|
||||
/**
|
||||
* Tab Size
|
||||
* @see https://tailwindcss.com/docs/tab-size
|
||||
*/
|
||||
"tab-size": [{
|
||||
tab: [isInteger, isArbitraryVariable, isArbitraryValue]
|
||||
}],
|
||||
/**
|
||||
* Vertical Alignment
|
||||
* @see https://tailwindcss.com/docs/vertical-align
|
||||
@@ -1750,33 +1906,47 @@ var getDefaultConfig = () => {
|
||||
border: scaleBorderWidth()
|
||||
}],
|
||||
/**
|
||||
* Border Width X
|
||||
* Border Width Inline
|
||||
* @see https://tailwindcss.com/docs/border-width
|
||||
*/
|
||||
"border-w-x": [{
|
||||
"border-x": scaleBorderWidth()
|
||||
}],
|
||||
/**
|
||||
* Border Width Y
|
||||
* Border Width Block
|
||||
* @see https://tailwindcss.com/docs/border-width
|
||||
*/
|
||||
"border-w-y": [{
|
||||
"border-y": scaleBorderWidth()
|
||||
}],
|
||||
/**
|
||||
* Border Width Start
|
||||
* Border Width Inline Start
|
||||
* @see https://tailwindcss.com/docs/border-width
|
||||
*/
|
||||
"border-w-s": [{
|
||||
"border-s": scaleBorderWidth()
|
||||
}],
|
||||
/**
|
||||
* Border Width End
|
||||
* Border Width Inline End
|
||||
* @see https://tailwindcss.com/docs/border-width
|
||||
*/
|
||||
"border-w-e": [{
|
||||
"border-e": scaleBorderWidth()
|
||||
}],
|
||||
/**
|
||||
* Border Width Block Start
|
||||
* @see https://tailwindcss.com/docs/border-width
|
||||
*/
|
||||
"border-w-bs": [{
|
||||
"border-bs": scaleBorderWidth()
|
||||
}],
|
||||
/**
|
||||
* Border Width Block End
|
||||
* @see https://tailwindcss.com/docs/border-width
|
||||
*/
|
||||
"border-w-be": [{
|
||||
"border-be": scaleBorderWidth()
|
||||
}],
|
||||
/**
|
||||
* Border Width Top
|
||||
* @see https://tailwindcss.com/docs/border-width
|
||||
@@ -1851,33 +2021,47 @@ var getDefaultConfig = () => {
|
||||
border: scaleColor()
|
||||
}],
|
||||
/**
|
||||
* Border Color X
|
||||
* Border Color Inline
|
||||
* @see https://tailwindcss.com/docs/border-color
|
||||
*/
|
||||
"border-color-x": [{
|
||||
"border-x": scaleColor()
|
||||
}],
|
||||
/**
|
||||
* Border Color Y
|
||||
* Border Color Block
|
||||
* @see https://tailwindcss.com/docs/border-color
|
||||
*/
|
||||
"border-color-y": [{
|
||||
"border-y": scaleColor()
|
||||
}],
|
||||
/**
|
||||
* Border Color S
|
||||
* Border Color Inline Start
|
||||
* @see https://tailwindcss.com/docs/border-color
|
||||
*/
|
||||
"border-color-s": [{
|
||||
"border-s": scaleColor()
|
||||
}],
|
||||
/**
|
||||
* Border Color E
|
||||
* Border Color Inline End
|
||||
* @see https://tailwindcss.com/docs/border-color
|
||||
*/
|
||||
"border-color-e": [{
|
||||
"border-e": scaleColor()
|
||||
}],
|
||||
/**
|
||||
* Border Color Block Start
|
||||
* @see https://tailwindcss.com/docs/border-color
|
||||
*/
|
||||
"border-color-bs": [{
|
||||
"border-bs": scaleColor()
|
||||
}],
|
||||
/**
|
||||
* Border Color Block End
|
||||
* @see https://tailwindcss.com/docs/border-color
|
||||
*/
|
||||
"border-color-be": [{
|
||||
"border-be": scaleColor()
|
||||
}],
|
||||
/**
|
||||
* Border Color Top
|
||||
* @see https://tailwindcss.com/docs/border-color
|
||||
@@ -2682,6 +2866,13 @@ var getDefaultConfig = () => {
|
||||
* @see https://tailwindcss.com/docs/translate
|
||||
*/
|
||||
"translate-none": ["translate-none"],
|
||||
/**
|
||||
* Zoom
|
||||
* @see https://tailwindcss.com/docs/zoom
|
||||
*/
|
||||
zoom: [{
|
||||
zoom: [isInteger, isArbitraryVariable, isArbitraryValue]
|
||||
}],
|
||||
// ---------------------
|
||||
// --- Interactivity ---
|
||||
// ---------------------
|
||||
@@ -2748,6 +2939,34 @@ var getDefaultConfig = () => {
|
||||
"scroll-behavior": [{
|
||||
scroll: ["auto", "smooth"]
|
||||
}],
|
||||
/**
|
||||
* Scrollbar Thumb Color
|
||||
* @see https://tailwindcss.com/docs/scrollbar-color
|
||||
*/
|
||||
"scrollbar-thumb-color": [{
|
||||
"scrollbar-thumb": scaleColor()
|
||||
}],
|
||||
/**
|
||||
* Scrollbar Track Color
|
||||
* @see https://tailwindcss.com/docs/scrollbar-color
|
||||
*/
|
||||
"scrollbar-track-color": [{
|
||||
"scrollbar-track": scaleColor()
|
||||
}],
|
||||
/**
|
||||
* Scrollbar Gutter
|
||||
* @see https://tailwindcss.com/docs/scrollbar-gutter
|
||||
*/
|
||||
"scrollbar-gutter": [{
|
||||
"scrollbar-gutter": ["auto", "stable", "both"]
|
||||
}],
|
||||
/**
|
||||
* Scrollbar Width
|
||||
* @see https://tailwindcss.com/docs/scrollbar-width
|
||||
*/
|
||||
"scrollbar-w": [{
|
||||
scrollbar: ["auto", "thin", "none"]
|
||||
}],
|
||||
/**
|
||||
* Scroll Margin
|
||||
* @see https://tailwindcss.com/docs/scroll-margin
|
||||
@@ -2756,33 +2975,47 @@ var getDefaultConfig = () => {
|
||||
"scroll-m": scaleUnambiguousSpacing()
|
||||
}],
|
||||
/**
|
||||
* Scroll Margin X
|
||||
* Scroll Margin Inline
|
||||
* @see https://tailwindcss.com/docs/scroll-margin
|
||||
*/
|
||||
"scroll-mx": [{
|
||||
"scroll-mx": scaleUnambiguousSpacing()
|
||||
}],
|
||||
/**
|
||||
* Scroll Margin Y
|
||||
* Scroll Margin Block
|
||||
* @see https://tailwindcss.com/docs/scroll-margin
|
||||
*/
|
||||
"scroll-my": [{
|
||||
"scroll-my": scaleUnambiguousSpacing()
|
||||
}],
|
||||
/**
|
||||
* Scroll Margin Start
|
||||
* Scroll Margin Inline Start
|
||||
* @see https://tailwindcss.com/docs/scroll-margin
|
||||
*/
|
||||
"scroll-ms": [{
|
||||
"scroll-ms": scaleUnambiguousSpacing()
|
||||
}],
|
||||
/**
|
||||
* Scroll Margin End
|
||||
* Scroll Margin Inline End
|
||||
* @see https://tailwindcss.com/docs/scroll-margin
|
||||
*/
|
||||
"scroll-me": [{
|
||||
"scroll-me": scaleUnambiguousSpacing()
|
||||
}],
|
||||
/**
|
||||
* Scroll Margin Block Start
|
||||
* @see https://tailwindcss.com/docs/scroll-margin
|
||||
*/
|
||||
"scroll-mbs": [{
|
||||
"scroll-mbs": scaleUnambiguousSpacing()
|
||||
}],
|
||||
/**
|
||||
* Scroll Margin Block End
|
||||
* @see https://tailwindcss.com/docs/scroll-margin
|
||||
*/
|
||||
"scroll-mbe": [{
|
||||
"scroll-mbe": scaleUnambiguousSpacing()
|
||||
}],
|
||||
/**
|
||||
* Scroll Margin Top
|
||||
* @see https://tailwindcss.com/docs/scroll-margin
|
||||
@@ -2819,33 +3052,47 @@ var getDefaultConfig = () => {
|
||||
"scroll-p": scaleUnambiguousSpacing()
|
||||
}],
|
||||
/**
|
||||
* Scroll Padding X
|
||||
* Scroll Padding Inline
|
||||
* @see https://tailwindcss.com/docs/scroll-padding
|
||||
*/
|
||||
"scroll-px": [{
|
||||
"scroll-px": scaleUnambiguousSpacing()
|
||||
}],
|
||||
/**
|
||||
* Scroll Padding Y
|
||||
* Scroll Padding Block
|
||||
* @see https://tailwindcss.com/docs/scroll-padding
|
||||
*/
|
||||
"scroll-py": [{
|
||||
"scroll-py": scaleUnambiguousSpacing()
|
||||
}],
|
||||
/**
|
||||
* Scroll Padding Start
|
||||
* Scroll Padding Inline Start
|
||||
* @see https://tailwindcss.com/docs/scroll-padding
|
||||
*/
|
||||
"scroll-ps": [{
|
||||
"scroll-ps": scaleUnambiguousSpacing()
|
||||
}],
|
||||
/**
|
||||
* Scroll Padding End
|
||||
* Scroll Padding Inline End
|
||||
* @see https://tailwindcss.com/docs/scroll-padding
|
||||
*/
|
||||
"scroll-pe": [{
|
||||
"scroll-pe": scaleUnambiguousSpacing()
|
||||
}],
|
||||
/**
|
||||
* Scroll Padding Block Start
|
||||
* @see https://tailwindcss.com/docs/scroll-padding
|
||||
*/
|
||||
"scroll-pbs": [{
|
||||
"scroll-pbs": scaleUnambiguousSpacing()
|
||||
}],
|
||||
/**
|
||||
* Scroll Padding Block End
|
||||
* @see https://tailwindcss.com/docs/scroll-padding
|
||||
*/
|
||||
"scroll-pbe": [{
|
||||
"scroll-pbe": scaleUnambiguousSpacing()
|
||||
}],
|
||||
/**
|
||||
* Scroll Padding Top
|
||||
* @see https://tailwindcss.com/docs/scroll-padding
|
||||
@@ -2978,17 +3225,18 @@ var getDefaultConfig = () => {
|
||||
}]
|
||||
},
|
||||
conflictingClassGroups: {
|
||||
"container-named": ["container-type"],
|
||||
overflow: ["overflow-x", "overflow-y"],
|
||||
overscroll: ["overscroll-x", "overscroll-y"],
|
||||
inset: ["inset-x", "inset-y", "start", "end", "top", "right", "bottom", "left"],
|
||||
inset: ["inset-x", "inset-y", "inset-bs", "inset-be", "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"],
|
||||
p: ["px", "py", "ps", "pe", "pbs", "pbe", "pt", "pr", "pb", "pl"],
|
||||
px: ["pr", "pl"],
|
||||
py: ["pt", "pb"],
|
||||
m: ["mx", "my", "ms", "me", "mt", "mr", "mb", "ml"],
|
||||
m: ["mx", "my", "ms", "me", "mbs", "mbe", "mt", "mr", "mb", "ml"],
|
||||
mx: ["mr", "ml"],
|
||||
my: ["mt", "mb"],
|
||||
size: ["w", "h"],
|
||||
@@ -3008,18 +3256,18 @@ var getDefaultConfig = () => {
|
||||
"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": ["border-w-x", "border-w-y", "border-w-s", "border-w-e", "border-w-bs", "border-w-be", "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": ["border-color-x", "border-color-y", "border-color-s", "border-color-e", "border-color-bs", "border-color-be", "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-m": ["scroll-mx", "scroll-my", "scroll-ms", "scroll-me", "scroll-mbs", "scroll-mbe", "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-p": ["scroll-px", "scroll-py", "scroll-ps", "scroll-pe", "scroll-pbs", "scroll-pbe", "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"],
|
||||
@@ -3030,6 +3278,7 @@ var getDefaultConfig = () => {
|
||||
conflictingClassGroupModifiers: {
|
||||
"font-size": ["leading"]
|
||||
},
|
||||
postfixLookupClassGroups: ["container-type"],
|
||||
orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
|
||||
};
|
||||
};
|
||||
@@ -3047,11 +3296,13 @@ var mergeConfigs = (baseConfig, {
|
||||
overrideConfigProperties(baseConfig.classGroups, override.classGroups);
|
||||
overrideConfigProperties(baseConfig.conflictingClassGroups, override.conflictingClassGroups);
|
||||
overrideConfigProperties(baseConfig.conflictingClassGroupModifiers, override.conflictingClassGroupModifiers);
|
||||
overrideProperty(baseConfig, "postfixLookupClassGroups", override.postfixLookupClassGroups);
|
||||
overrideProperty(baseConfig, "orderSensitiveModifiers", override.orderSensitiveModifiers);
|
||||
mergeConfigProperties(baseConfig.theme, extend.theme);
|
||||
mergeConfigProperties(baseConfig.classGroups, extend.classGroups);
|
||||
mergeConfigProperties(baseConfig.conflictingClassGroups, extend.conflictingClassGroups);
|
||||
mergeConfigProperties(baseConfig.conflictingClassGroupModifiers, extend.conflictingClassGroupModifiers);
|
||||
mergeArrayProperties(baseConfig, extend, "postfixLookupClassGroups");
|
||||
mergeArrayProperties(baseConfig, extend, "orderSensitiveModifiers");
|
||||
return baseConfig;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user