UEA-PRODEM
This commit is contained in:
+307
-42
@@ -364,15 +364,27 @@ var createConfigUtils = function createConfigUtils(config) {
|
||||
return _extends({
|
||||
cache: createLruCache(config.cacheSize),
|
||||
parseClassName: createParseClassName(config),
|
||||
sortModifiers: createSortModifiers(config)
|
||||
sortModifiers: createSortModifiers(config),
|
||||
postfixLookupClassGroupIds: createPostfixLookupClassGroupIds(config)
|
||||
}, createClassGroupUtils(config));
|
||||
};
|
||||
var createPostfixLookupClassGroupIds = function createPostfixLookupClassGroupIds(config) {
|
||||
var lookup = Object.create(null);
|
||||
var classGroupIds = config.postfixLookupClassGroups;
|
||||
if (classGroupIds) {
|
||||
for (var i = 0; i < classGroupIds.length; i++) {
|
||||
lookup[classGroupIds[i]] = true;
|
||||
}
|
||||
}
|
||||
return lookup;
|
||||
};
|
||||
var SPLIT_CLASSES_REGEX = /\s+/;
|
||||
var mergeClassList = function mergeClassList(classList, configUtils) {
|
||||
var parseClassName = configUtils.parseClassName,
|
||||
getClassGroupId = configUtils.getClassGroupId,
|
||||
getConflictingClassGroupIds = configUtils.getConflictingClassGroupIds,
|
||||
sortModifiers = configUtils.sortModifiers;
|
||||
sortModifiers = configUtils.sortModifiers,
|
||||
postfixLookupClassGroupIds = configUtils.postfixLookupClassGroupIds;
|
||||
/**
|
||||
* Set of classGroupIds in following format:
|
||||
* `{importantModifier}{variantModifiers}{classGroupId}`
|
||||
@@ -396,7 +408,18 @@ var mergeClassList = function mergeClassList(classList, configUtils) {
|
||||
continue;
|
||||
}
|
||||
var hasPostfixModifier = !!maybePostfixModifierPosition;
|
||||
var classGroupId = getClassGroupId(hasPostfixModifier ? baseClassName.substring(0, maybePostfixModifierPosition) : baseClassName);
|
||||
var classGroupId = void 0;
|
||||
if (hasPostfixModifier) {
|
||||
var baseClassNameWithoutPostfix = baseClassName.substring(0, maybePostfixModifierPosition);
|
||||
classGroupId = getClassGroupId(baseClassNameWithoutPostfix);
|
||||
var classGroupIdWithPostfix = classGroupId && postfixLookupClassGroupIds[classGroupId] ? getClassGroupId(baseClassName) : undefined;
|
||||
if (classGroupIdWithPostfix && classGroupIdWithPostfix !== classGroupId) {
|
||||
classGroupId = classGroupIdWithPostfix;
|
||||
hasPostfixModifier = false;
|
||||
}
|
||||
} else {
|
||||
classGroupId = getClassGroupId(baseClassName);
|
||||
}
|
||||
if (!classGroupId) {
|
||||
if (!hasPostfixModifier) {
|
||||
// Not a Tailwind class
|
||||
@@ -515,7 +538,7 @@ var fromTheme = function 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)\(.+\)$/;
|
||||
@@ -560,6 +583,9 @@ var isImage = function isImage(value) {
|
||||
var isAnyNonArbitrary = function isAnyNonArbitrary(value) {
|
||||
return !isArbitraryValue(value) && !isArbitraryVariable(value);
|
||||
};
|
||||
var isNamedContainerQuery = function isNamedContainerQuery(value) {
|
||||
return value.startsWith('@container') && (value[10] === '/' && value[11] !== undefined || value[11] === 's' && value[16] !== undefined && value.startsWith('-size/', 10) || value[11] === 'n' && value[18] !== undefined && value.startsWith('-normal/', 10));
|
||||
};
|
||||
var isArbitrarySize = function isArbitrarySize(value) {
|
||||
return getIsArbitraryValue(value, isLabelSize, isNever);
|
||||
};
|
||||
@@ -572,6 +598,12 @@ var isArbitraryLength = function isArbitraryLength(value) {
|
||||
var isArbitraryNumber = function isArbitraryNumber(value) {
|
||||
return getIsArbitraryValue(value, isLabelNumber, isNumber);
|
||||
};
|
||||
var isArbitraryWeight = function isArbitraryWeight(value) {
|
||||
return getIsArbitraryValue(value, isLabelWeight, isAny);
|
||||
};
|
||||
var isArbitraryFamilyName = function isArbitraryFamilyName(value) {
|
||||
return getIsArbitraryValue(value, isLabelFamilyName, isNever);
|
||||
};
|
||||
var isArbitraryPosition = function isArbitraryPosition(value) {
|
||||
return getIsArbitraryValue(value, isLabelPosition, isNever);
|
||||
};
|
||||
@@ -602,6 +634,9 @@ var isArbitraryVariableImage = function isArbitraryVariableImage(value) {
|
||||
var isArbitraryVariableShadow = function isArbitraryVariableShadow(value) {
|
||||
return getIsArbitraryVariable(value, isLabelShadow, true);
|
||||
};
|
||||
var isArbitraryVariableWeight = function isArbitraryVariableWeight(value) {
|
||||
return getIsArbitraryVariable(value, isLabelWeight, true);
|
||||
};
|
||||
// Helpers
|
||||
var getIsArbitraryValue = function getIsArbitraryValue(value, testLabel, testValue) {
|
||||
var result = arbitraryValueRegex.exec(value);
|
||||
@@ -645,6 +680,9 @@ var isLabelNumber = function isLabelNumber(label) {
|
||||
var isLabelFamilyName = function isLabelFamilyName(label) {
|
||||
return label === 'family-name';
|
||||
};
|
||||
var isLabelWeight = function isLabelWeight(label) {
|
||||
return label === 'number' || label === 'weight';
|
||||
};
|
||||
var isLabelShadow = function isLabelShadow(label) {
|
||||
return label === 'shadow';
|
||||
};
|
||||
@@ -652,6 +690,7 @@ var validators = /*#__PURE__*/Object.defineProperty({
|
||||
__proto__: null,
|
||||
isAny: isAny,
|
||||
isAnyNonArbitrary: isAnyNonArbitrary,
|
||||
isArbitraryFamilyName: isArbitraryFamilyName,
|
||||
isArbitraryImage: isArbitraryImage,
|
||||
isArbitraryLength: isArbitraryLength,
|
||||
isArbitraryNumber: isArbitraryNumber,
|
||||
@@ -666,8 +705,11 @@ var validators = /*#__PURE__*/Object.defineProperty({
|
||||
isArbitraryVariablePosition: isArbitraryVariablePosition,
|
||||
isArbitraryVariableShadow: isArbitraryVariableShadow,
|
||||
isArbitraryVariableSize: isArbitraryVariableSize,
|
||||
isArbitraryVariableWeight: isArbitraryVariableWeight,
|
||||
isArbitraryWeight: isArbitraryWeight,
|
||||
isFraction: isFraction,
|
||||
isInteger: isInteger,
|
||||
isNamedContainerQuery: isNamedContainerQuery,
|
||||
isNumber: isNumber,
|
||||
isPercent: isPercent,
|
||||
isTshirtSize: isTshirtSize
|
||||
@@ -761,6 +803,12 @@ var getDefaultConfig = function getDefaultConfig() {
|
||||
var scaleSizing = function scaleSizing() {
|
||||
return [isFraction, 'auto', 'full', 'dvw', 'dvh', 'lvw', 'lvh', 'svw', 'svh', 'min', 'max', 'fit'].concat(scaleUnambiguousSpacing());
|
||||
};
|
||||
var scaleSizingInline = function scaleSizingInline() {
|
||||
return [isFraction, 'screen', 'full', 'dvw', 'lvw', 'svw', 'min', 'max', 'fit'].concat(scaleUnambiguousSpacing());
|
||||
};
|
||||
var scaleSizingBlock = function scaleSizingBlock() {
|
||||
return [isFraction, 'screen', 'full', 'lh', 'dvh', 'lvh', 'svh', 'min', 'max', 'fit'].concat(scaleUnambiguousSpacing());
|
||||
};
|
||||
var scaleColor = function scaleColor() {
|
||||
return [themeColor, isArbitraryVariable, isArbitraryValue];
|
||||
};
|
||||
@@ -856,6 +904,18 @@ var getDefaultConfig = function 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
|
||||
@@ -989,40 +1049,66 @@ var getDefaultConfig = function 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
|
||||
@@ -1289,33 +1375,47 @@ var getDefaultConfig = function 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
|
||||
@@ -1352,33 +1452,47 @@ var getDefaultConfig = function 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
|
||||
@@ -1441,6 +1555,48 @@ var getDefaultConfig = function getDefaultConfig() {
|
||||
size: [{
|
||||
size: scaleSizing()
|
||||
}],
|
||||
/**
|
||||
* Inline Size
|
||||
* @see https://tailwindcss.com/docs/width
|
||||
*/
|
||||
'inline-size': [{
|
||||
inline: ['auto'].concat(scaleSizingInline())
|
||||
}],
|
||||
/**
|
||||
* Min-Inline Size
|
||||
* @see https://tailwindcss.com/docs/min-width
|
||||
*/
|
||||
'min-inline-size': [{
|
||||
'min-inline': ['auto'].concat(scaleSizingInline())
|
||||
}],
|
||||
/**
|
||||
* Max-Inline Size
|
||||
* @see https://tailwindcss.com/docs/max-width
|
||||
*/
|
||||
'max-inline-size': [{
|
||||
'max-inline': ['none'].concat(scaleSizingInline())
|
||||
}],
|
||||
/**
|
||||
* Block Size
|
||||
* @see https://tailwindcss.com/docs/height
|
||||
*/
|
||||
'block-size': [{
|
||||
block: ['auto'].concat(scaleSizingBlock())
|
||||
}],
|
||||
/**
|
||||
* Min-Block Size
|
||||
* @see https://tailwindcss.com/docs/min-height
|
||||
*/
|
||||
'min-block-size': [{
|
||||
'min-block': ['auto'].concat(scaleSizingBlock())
|
||||
}],
|
||||
/**
|
||||
* Max-Block Size
|
||||
* @see https://tailwindcss.com/docs/max-height
|
||||
*/
|
||||
'max-block-size': [{
|
||||
'max-block': ['none'].concat(scaleSizingBlock())
|
||||
}],
|
||||
/**
|
||||
* Width
|
||||
* @see https://tailwindcss.com/docs/width
|
||||
@@ -1513,7 +1669,7 @@ var getDefaultConfig = function getDefaultConfig() {
|
||||
* @see https://tailwindcss.com/docs/font-weight
|
||||
*/
|
||||
'font-weight': [{
|
||||
font: [themeFontWeight, isArbitraryVariable, isArbitraryNumber]
|
||||
font: [themeFontWeight, isArbitraryVariableWeight, isArbitraryWeight]
|
||||
}],
|
||||
/**
|
||||
* Font Stretch
|
||||
@@ -1527,7 +1683,14 @@ var getDefaultConfig = function 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
|
||||
@@ -1681,6 +1844,13 @@ var getDefaultConfig = function 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
|
||||
@@ -1946,33 +2116,47 @@ var getDefaultConfig = function 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
|
||||
@@ -2047,33 +2231,47 @@ var getDefaultConfig = function 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
|
||||
@@ -2860,6 +3058,13 @@ var getDefaultConfig = function getDefaultConfig() {
|
||||
* @see https://tailwindcss.com/docs/translate
|
||||
*/
|
||||
'translate-none': ['translate-none'],
|
||||
/**
|
||||
* Zoom
|
||||
* @see https://tailwindcss.com/docs/zoom
|
||||
*/
|
||||
zoom: [{
|
||||
zoom: [isInteger, isArbitraryVariable, isArbitraryValue]
|
||||
}],
|
||||
// ---------------------
|
||||
// --- Interactivity ---
|
||||
// ---------------------
|
||||
@@ -2926,6 +3131,34 @@ var getDefaultConfig = function 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
|
||||
@@ -2934,33 +3167,47 @@ var getDefaultConfig = function 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
|
||||
@@ -2997,33 +3244,47 @@ var getDefaultConfig = function 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
|
||||
@@ -3156,17 +3417,18 @@ var getDefaultConfig = function 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'],
|
||||
@@ -3186,18 +3448,18 @@ var getDefaultConfig = function 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'],
|
||||
@@ -3208,6 +3470,7 @@ var getDefaultConfig = function getDefaultConfig() {
|
||||
conflictingClassGroupModifiers: {
|
||||
'font-size': ['leading']
|
||||
},
|
||||
postfixLookupClassGroups: ['container-type'],
|
||||
orderSensitiveModifiers: ['*', '**', 'after', 'backdrop', 'before', 'details-content', 'file', 'first-letter', 'first-line', 'marker', 'placeholder', 'selection']
|
||||
};
|
||||
};
|
||||
@@ -3231,11 +3494,13 @@ var mergeConfigs = function mergeConfigs(baseConfig, _ref) {
|
||||
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