@dreamcommerce/aurora 3.0.0-1 → 3.0.0-3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/_virtual/_commonjsHelpers.js +11 -0
- package/build/cjs/_virtual/_commonjsHelpers.js.map +1 -0
- package/build/cjs/_virtual/_rollupPluginBabelHelpers.js +133 -64
- package/build/cjs/_virtual/_rollupPluginBabelHelpers.js.map +1 -1
- package/build/cjs/external/tailwind-merge/dist/bundle-cjs.js +2671 -0
- package/build/{esm/external/tailwind-merge/dist/bundle-mjs.mjs.js.map → cjs/external/tailwind-merge/dist/bundle-cjs.js.map} +1 -1
- package/build/cjs/packages/aurora/src/components/badge/badge.js +4 -6
- package/build/cjs/packages/aurora/src/components/badge/badge.js.map +1 -1
- package/build/cjs/packages/aurora/src/utilities/cn.js +2 -3
- package/build/cjs/packages/aurora/src/utilities/cn.js.map +1 -1
- package/build/esm/_virtual/_commonjsHelpers.js +7 -0
- package/build/esm/_virtual/_commonjsHelpers.js.map +1 -0
- package/build/esm/_virtual/_rollupPluginBabelHelpers.js +121 -65
- package/build/esm/_virtual/_rollupPluginBabelHelpers.js.map +1 -1
- package/build/esm/external/tailwind-merge/dist/bundle-cjs.js +2667 -0
- package/build/{cjs/external/tailwind-merge/dist/bundle-mjs.mjs.js.map → esm/external/tailwind-merge/dist/bundle-cjs.js.map} +1 -1
- package/build/esm/packages/aurora/src/components/badge/badge.js +4 -6
- package/build/esm/packages/aurora/src/components/badge/badge.js.map +1 -1
- package/build/esm/packages/aurora/src/index.d.ts +0 -1
- package/build/esm/packages/aurora/src/utilities/cn.js +2 -3
- package/build/esm/packages/aurora/src/utilities/cn.js.map +1 -1
- package/build/index.css +1 -0
- package/build/tailwind.config.js +306 -0
- package/package.json +1 -1
- package/build/cjs/external/tailwind-merge/dist/bundle-mjs.mjs.js +0 -2502
- package/build/esm/external/tailwind-merge/dist/bundle-mjs.mjs.js +0 -2494
|
@@ -0,0 +1,2667 @@
|
|
|
1
|
+
import { toConsumableArray as _toConsumableArray, objectSpread2 as _objectSpread2, slicedToArray as _slicedToArray, typeof as _typeof } from '../../../_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import { createCommonjsModule } from '../../../_virtual/_commonjsHelpers.js';
|
|
3
|
+
|
|
4
|
+
var bundleCjs = createCommonjsModule(function (module, exports) {
|
|
5
|
+
|
|
6
|
+
Object.defineProperty(exports, Symbol.toStringTag, {
|
|
7
|
+
value: 'Module'
|
|
8
|
+
});
|
|
9
|
+
var CLASS_PART_SEPARATOR = '-';
|
|
10
|
+
var createClassGroupUtils = function createClassGroupUtils(config) {
|
|
11
|
+
var classMap = createClassMap(config);
|
|
12
|
+
var conflictingClassGroups = config.conflictingClassGroups,
|
|
13
|
+
conflictingClassGroupModifiers = config.conflictingClassGroupModifiers;
|
|
14
|
+
var getClassGroupId = function getClassGroupId(className) {
|
|
15
|
+
var classParts = className.split(CLASS_PART_SEPARATOR);
|
|
16
|
+
// Classes like `-inset-1` produce an empty string as first classPart. We assume that classes for negative values are used correctly and remove it from classParts.
|
|
17
|
+
if (classParts[0] === '' && classParts.length !== 1) {
|
|
18
|
+
classParts.shift();
|
|
19
|
+
}
|
|
20
|
+
return _getGroupRecursive(classParts, classMap) || getGroupIdForArbitraryProperty(className);
|
|
21
|
+
};
|
|
22
|
+
var getConflictingClassGroupIds = function getConflictingClassGroupIds(classGroupId, hasPostfixModifier) {
|
|
23
|
+
var conflicts = conflictingClassGroups[classGroupId] || [];
|
|
24
|
+
if (hasPostfixModifier && conflictingClassGroupModifiers[classGroupId]) {
|
|
25
|
+
return [].concat(_toConsumableArray(conflicts), _toConsumableArray(conflictingClassGroupModifiers[classGroupId]));
|
|
26
|
+
}
|
|
27
|
+
return conflicts;
|
|
28
|
+
};
|
|
29
|
+
return {
|
|
30
|
+
getClassGroupId: getClassGroupId,
|
|
31
|
+
getConflictingClassGroupIds: getConflictingClassGroupIds
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
var _getGroupRecursive = function getGroupRecursive(classParts, classPartObject) {
|
|
35
|
+
var _classPartObject$vali;
|
|
36
|
+
if (classParts.length === 0) {
|
|
37
|
+
return classPartObject.classGroupId;
|
|
38
|
+
}
|
|
39
|
+
var currentClassPart = classParts[0];
|
|
40
|
+
var nextClassPartObject = classPartObject.nextPart.get(currentClassPart);
|
|
41
|
+
var classGroupFromNextClassPart = nextClassPartObject ? _getGroupRecursive(classParts.slice(1), nextClassPartObject) : undefined;
|
|
42
|
+
if (classGroupFromNextClassPart) {
|
|
43
|
+
return classGroupFromNextClassPart;
|
|
44
|
+
}
|
|
45
|
+
if (classPartObject.validators.length === 0) {
|
|
46
|
+
return undefined;
|
|
47
|
+
}
|
|
48
|
+
var classRest = classParts.join(CLASS_PART_SEPARATOR);
|
|
49
|
+
return (_classPartObject$vali = classPartObject.validators.find(function (_ref) {
|
|
50
|
+
var validator = _ref.validator;
|
|
51
|
+
return validator(classRest);
|
|
52
|
+
})) === null || _classPartObject$vali === void 0 ? void 0 : _classPartObject$vali.classGroupId;
|
|
53
|
+
};
|
|
54
|
+
var arbitraryPropertyRegex = /^\[(.+)\]$/;
|
|
55
|
+
var getGroupIdForArbitraryProperty = function getGroupIdForArbitraryProperty(className) {
|
|
56
|
+
if (arbitraryPropertyRegex.test(className)) {
|
|
57
|
+
var arbitraryPropertyClassName = arbitraryPropertyRegex.exec(className)[1];
|
|
58
|
+
var property = arbitraryPropertyClassName === null || arbitraryPropertyClassName === void 0 ? void 0 : arbitraryPropertyClassName.substring(0, arbitraryPropertyClassName.indexOf(':'));
|
|
59
|
+
if (property) {
|
|
60
|
+
// I use two dots here because one dot is used as prefix for class groups in plugins
|
|
61
|
+
return 'arbitrary..' + property;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
/**
|
|
66
|
+
* Exported for testing only
|
|
67
|
+
*/
|
|
68
|
+
var createClassMap = function createClassMap(config) {
|
|
69
|
+
var theme = config.theme,
|
|
70
|
+
prefix = config.prefix;
|
|
71
|
+
var classMap = {
|
|
72
|
+
nextPart: new Map(),
|
|
73
|
+
validators: []
|
|
74
|
+
};
|
|
75
|
+
var prefixedClassGroupEntries = getPrefixedClassGroupEntries(Object.entries(config.classGroups), prefix);
|
|
76
|
+
prefixedClassGroupEntries.forEach(function (_ref2) {
|
|
77
|
+
var _ref3 = _slicedToArray(_ref2, 2),
|
|
78
|
+
classGroupId = _ref3[0],
|
|
79
|
+
classGroup = _ref3[1];
|
|
80
|
+
_processClassesRecursively(classGroup, classMap, classGroupId, theme);
|
|
81
|
+
});
|
|
82
|
+
return classMap;
|
|
83
|
+
};
|
|
84
|
+
var _processClassesRecursively = function processClassesRecursively(classGroup, classPartObject, classGroupId, theme) {
|
|
85
|
+
classGroup.forEach(function (classDefinition) {
|
|
86
|
+
if (typeof classDefinition === 'string') {
|
|
87
|
+
var classPartObjectToEdit = classDefinition === '' ? classPartObject : getPart(classPartObject, classDefinition);
|
|
88
|
+
classPartObjectToEdit.classGroupId = classGroupId;
|
|
89
|
+
return;
|
|
90
|
+
}
|
|
91
|
+
if (typeof classDefinition === 'function') {
|
|
92
|
+
if (isThemeGetter(classDefinition)) {
|
|
93
|
+
_processClassesRecursively(classDefinition(theme), classPartObject, classGroupId, theme);
|
|
94
|
+
return;
|
|
95
|
+
}
|
|
96
|
+
classPartObject.validators.push({
|
|
97
|
+
validator: classDefinition,
|
|
98
|
+
classGroupId: classGroupId
|
|
99
|
+
});
|
|
100
|
+
return;
|
|
101
|
+
}
|
|
102
|
+
Object.entries(classDefinition).forEach(function (_ref4) {
|
|
103
|
+
var _ref5 = _slicedToArray(_ref4, 2),
|
|
104
|
+
key = _ref5[0],
|
|
105
|
+
classGroup = _ref5[1];
|
|
106
|
+
_processClassesRecursively(classGroup, getPart(classPartObject, key), classGroupId, theme);
|
|
107
|
+
});
|
|
108
|
+
});
|
|
109
|
+
};
|
|
110
|
+
var getPart = function getPart(classPartObject, path) {
|
|
111
|
+
var currentClassPartObject = classPartObject;
|
|
112
|
+
path.split(CLASS_PART_SEPARATOR).forEach(function (pathPart) {
|
|
113
|
+
if (!currentClassPartObject.nextPart.has(pathPart)) {
|
|
114
|
+
currentClassPartObject.nextPart.set(pathPart, {
|
|
115
|
+
nextPart: new Map(),
|
|
116
|
+
validators: []
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
currentClassPartObject = currentClassPartObject.nextPart.get(pathPart);
|
|
120
|
+
});
|
|
121
|
+
return currentClassPartObject;
|
|
122
|
+
};
|
|
123
|
+
var isThemeGetter = function isThemeGetter(func) {
|
|
124
|
+
return func.isThemeGetter;
|
|
125
|
+
};
|
|
126
|
+
var getPrefixedClassGroupEntries = function getPrefixedClassGroupEntries(classGroupEntries, prefix) {
|
|
127
|
+
if (!prefix) {
|
|
128
|
+
return classGroupEntries;
|
|
129
|
+
}
|
|
130
|
+
return classGroupEntries.map(function (_ref6) {
|
|
131
|
+
var _ref7 = _slicedToArray(_ref6, 2),
|
|
132
|
+
classGroupId = _ref7[0],
|
|
133
|
+
classGroup = _ref7[1];
|
|
134
|
+
var prefixedClassGroup = classGroup.map(function (classDefinition) {
|
|
135
|
+
if (typeof classDefinition === 'string') {
|
|
136
|
+
return prefix + classDefinition;
|
|
137
|
+
}
|
|
138
|
+
if (_typeof(classDefinition) === 'object') {
|
|
139
|
+
return Object.fromEntries(Object.entries(classDefinition).map(function (_ref8) {
|
|
140
|
+
var _ref9 = _slicedToArray(_ref8, 2),
|
|
141
|
+
key = _ref9[0],
|
|
142
|
+
value = _ref9[1];
|
|
143
|
+
return [prefix + key, value];
|
|
144
|
+
}));
|
|
145
|
+
}
|
|
146
|
+
return classDefinition;
|
|
147
|
+
});
|
|
148
|
+
return [classGroupId, prefixedClassGroup];
|
|
149
|
+
});
|
|
150
|
+
};
|
|
151
|
+
|
|
152
|
+
// LRU cache inspired from hashlru (https://github.com/dominictarr/hashlru/blob/v1.0.4/index.js) but object replaced with Map to improve performance
|
|
153
|
+
var createLruCache = function createLruCache(maxCacheSize) {
|
|
154
|
+
if (maxCacheSize < 1) {
|
|
155
|
+
return {
|
|
156
|
+
get: function get() {
|
|
157
|
+
return undefined;
|
|
158
|
+
},
|
|
159
|
+
set: function set() {}
|
|
160
|
+
};
|
|
161
|
+
}
|
|
162
|
+
var cacheSize = 0;
|
|
163
|
+
var cache = new Map();
|
|
164
|
+
var previousCache = new Map();
|
|
165
|
+
var update = function update(key, value) {
|
|
166
|
+
cache.set(key, value);
|
|
167
|
+
cacheSize++;
|
|
168
|
+
if (cacheSize > maxCacheSize) {
|
|
169
|
+
cacheSize = 0;
|
|
170
|
+
previousCache = cache;
|
|
171
|
+
cache = new Map();
|
|
172
|
+
}
|
|
173
|
+
};
|
|
174
|
+
return {
|
|
175
|
+
get: function get(key) {
|
|
176
|
+
var value = cache.get(key);
|
|
177
|
+
if (value !== undefined) {
|
|
178
|
+
return value;
|
|
179
|
+
}
|
|
180
|
+
if ((value = previousCache.get(key)) !== undefined) {
|
|
181
|
+
update(key, value);
|
|
182
|
+
return value;
|
|
183
|
+
}
|
|
184
|
+
},
|
|
185
|
+
set: function set(key, value) {
|
|
186
|
+
if (cache.has(key)) {
|
|
187
|
+
cache.set(key, value);
|
|
188
|
+
} else {
|
|
189
|
+
update(key, value);
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
};
|
|
193
|
+
};
|
|
194
|
+
var IMPORTANT_MODIFIER = '!';
|
|
195
|
+
var createParseClassName = function createParseClassName(config) {
|
|
196
|
+
var separator = config.separator,
|
|
197
|
+
experimentalParseClassName = config.experimentalParseClassName;
|
|
198
|
+
var isSeparatorSingleCharacter = separator.length === 1;
|
|
199
|
+
var firstSeparatorCharacter = separator[0];
|
|
200
|
+
var separatorLength = separator.length;
|
|
201
|
+
// parseClassName inspired by https://github.com/tailwindlabs/tailwindcss/blob/v3.2.2/src/util/splitAtTopLevelOnly.js
|
|
202
|
+
var parseClassName = function parseClassName(className) {
|
|
203
|
+
var modifiers = [];
|
|
204
|
+
var bracketDepth = 0;
|
|
205
|
+
var modifierStart = 0;
|
|
206
|
+
var postfixModifierPosition;
|
|
207
|
+
for (var index = 0; index < className.length; index++) {
|
|
208
|
+
var currentCharacter = className[index];
|
|
209
|
+
if (bracketDepth === 0) {
|
|
210
|
+
if (currentCharacter === firstSeparatorCharacter && (isSeparatorSingleCharacter || className.slice(index, index + separatorLength) === separator)) {
|
|
211
|
+
modifiers.push(className.slice(modifierStart, index));
|
|
212
|
+
modifierStart = index + separatorLength;
|
|
213
|
+
continue;
|
|
214
|
+
}
|
|
215
|
+
if (currentCharacter === '/') {
|
|
216
|
+
postfixModifierPosition = index;
|
|
217
|
+
continue;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
if (currentCharacter === '[') {
|
|
221
|
+
bracketDepth++;
|
|
222
|
+
} else if (currentCharacter === ']') {
|
|
223
|
+
bracketDepth--;
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
var baseClassNameWithImportantModifier = modifiers.length === 0 ? className : className.substring(modifierStart);
|
|
227
|
+
var hasImportantModifier = baseClassNameWithImportantModifier.startsWith(IMPORTANT_MODIFIER);
|
|
228
|
+
var baseClassName = hasImportantModifier ? baseClassNameWithImportantModifier.substring(1) : baseClassNameWithImportantModifier;
|
|
229
|
+
var maybePostfixModifierPosition = postfixModifierPosition && postfixModifierPosition > modifierStart ? postfixModifierPosition - modifierStart : undefined;
|
|
230
|
+
return {
|
|
231
|
+
modifiers: modifiers,
|
|
232
|
+
hasImportantModifier: hasImportantModifier,
|
|
233
|
+
baseClassName: baseClassName,
|
|
234
|
+
maybePostfixModifierPosition: maybePostfixModifierPosition
|
|
235
|
+
};
|
|
236
|
+
};
|
|
237
|
+
if (experimentalParseClassName) {
|
|
238
|
+
return function (className) {
|
|
239
|
+
return experimentalParseClassName({
|
|
240
|
+
className: className,
|
|
241
|
+
parseClassName: parseClassName
|
|
242
|
+
});
|
|
243
|
+
};
|
|
244
|
+
}
|
|
245
|
+
return parseClassName;
|
|
246
|
+
};
|
|
247
|
+
/**
|
|
248
|
+
* Sorts modifiers according to following schema:
|
|
249
|
+
* - Predefined modifiers are sorted alphabetically
|
|
250
|
+
* - When an arbitrary variant appears, it must be preserved which modifiers are before and after it
|
|
251
|
+
*/
|
|
252
|
+
var sortModifiers = function sortModifiers(modifiers) {
|
|
253
|
+
if (modifiers.length <= 1) {
|
|
254
|
+
return modifiers;
|
|
255
|
+
}
|
|
256
|
+
var sortedModifiers = [];
|
|
257
|
+
var unsortedModifiers = [];
|
|
258
|
+
modifiers.forEach(function (modifier) {
|
|
259
|
+
var isArbitraryVariant = modifier[0] === '[';
|
|
260
|
+
if (isArbitraryVariant) {
|
|
261
|
+
sortedModifiers.push.apply(sortedModifiers, _toConsumableArray(unsortedModifiers.sort()).concat([modifier]));
|
|
262
|
+
unsortedModifiers = [];
|
|
263
|
+
} else {
|
|
264
|
+
unsortedModifiers.push(modifier);
|
|
265
|
+
}
|
|
266
|
+
});
|
|
267
|
+
sortedModifiers.push.apply(sortedModifiers, _toConsumableArray(unsortedModifiers.sort()));
|
|
268
|
+
return sortedModifiers;
|
|
269
|
+
};
|
|
270
|
+
var createConfigUtils = function createConfigUtils(config) {
|
|
271
|
+
return _objectSpread2({
|
|
272
|
+
cache: createLruCache(config.cacheSize),
|
|
273
|
+
parseClassName: createParseClassName(config)
|
|
274
|
+
}, createClassGroupUtils(config));
|
|
275
|
+
};
|
|
276
|
+
var SPLIT_CLASSES_REGEX = /\s+/;
|
|
277
|
+
var mergeClassList = function mergeClassList(classList, configUtils) {
|
|
278
|
+
var parseClassName = configUtils.parseClassName,
|
|
279
|
+
getClassGroupId = configUtils.getClassGroupId,
|
|
280
|
+
getConflictingClassGroupIds = configUtils.getConflictingClassGroupIds;
|
|
281
|
+
/**
|
|
282
|
+
* Set of classGroupIds in following format:
|
|
283
|
+
* `{importantModifier}{variantModifiers}{classGroupId}`
|
|
284
|
+
* @example 'float'
|
|
285
|
+
* @example 'hover:focus:bg-color'
|
|
286
|
+
* @example 'md:!pr'
|
|
287
|
+
*/
|
|
288
|
+
var classGroupsInConflict = [];
|
|
289
|
+
var classNames = classList.trim().split(SPLIT_CLASSES_REGEX);
|
|
290
|
+
var result = '';
|
|
291
|
+
for (var index = classNames.length - 1; index >= 0; index -= 1) {
|
|
292
|
+
var originalClassName = classNames[index];
|
|
293
|
+
var _parseClassName = parseClassName(originalClassName),
|
|
294
|
+
modifiers = _parseClassName.modifiers,
|
|
295
|
+
hasImportantModifier = _parseClassName.hasImportantModifier,
|
|
296
|
+
baseClassName = _parseClassName.baseClassName,
|
|
297
|
+
maybePostfixModifierPosition = _parseClassName.maybePostfixModifierPosition;
|
|
298
|
+
var hasPostfixModifier = Boolean(maybePostfixModifierPosition);
|
|
299
|
+
var classGroupId = getClassGroupId(hasPostfixModifier ? baseClassName.substring(0, maybePostfixModifierPosition) : baseClassName);
|
|
300
|
+
if (!classGroupId) {
|
|
301
|
+
if (!hasPostfixModifier) {
|
|
302
|
+
// Not a Tailwind class
|
|
303
|
+
result = originalClassName + (result.length > 0 ? ' ' + result : result);
|
|
304
|
+
continue;
|
|
305
|
+
}
|
|
306
|
+
classGroupId = getClassGroupId(baseClassName);
|
|
307
|
+
if (!classGroupId) {
|
|
308
|
+
// Not a Tailwind class
|
|
309
|
+
result = originalClassName + (result.length > 0 ? ' ' + result : result);
|
|
310
|
+
continue;
|
|
311
|
+
}
|
|
312
|
+
hasPostfixModifier = false;
|
|
313
|
+
}
|
|
314
|
+
var variantModifier = sortModifiers(modifiers).join(':');
|
|
315
|
+
var modifierId = hasImportantModifier ? variantModifier + IMPORTANT_MODIFIER : variantModifier;
|
|
316
|
+
var classId = modifierId + classGroupId;
|
|
317
|
+
if (classGroupsInConflict.includes(classId)) {
|
|
318
|
+
// Tailwind class omitted due to conflict
|
|
319
|
+
continue;
|
|
320
|
+
}
|
|
321
|
+
classGroupsInConflict.push(classId);
|
|
322
|
+
var conflictGroups = getConflictingClassGroupIds(classGroupId, hasPostfixModifier);
|
|
323
|
+
for (var i = 0; i < conflictGroups.length; ++i) {
|
|
324
|
+
var group = conflictGroups[i];
|
|
325
|
+
classGroupsInConflict.push(modifierId + group);
|
|
326
|
+
}
|
|
327
|
+
// Tailwind class not in conflict
|
|
328
|
+
result = originalClassName + (result.length > 0 ? ' ' + result : result);
|
|
329
|
+
}
|
|
330
|
+
return result;
|
|
331
|
+
};
|
|
332
|
+
|
|
333
|
+
/**
|
|
334
|
+
* The code in this file is copied from https://github.com/lukeed/clsx and modified to suit the needs of tailwind-merge better.
|
|
335
|
+
*
|
|
336
|
+
* Specifically:
|
|
337
|
+
* - Runtime code from https://github.com/lukeed/clsx/blob/v1.2.1/src/index.js
|
|
338
|
+
* - TypeScript types from https://github.com/lukeed/clsx/blob/v1.2.1/clsx.d.ts
|
|
339
|
+
*
|
|
340
|
+
* Original code has MIT license: Copyright (c) Luke Edwards <luke.edwards05@gmail.com> (lukeed.com)
|
|
341
|
+
*/
|
|
342
|
+
function twJoin() {
|
|
343
|
+
var index = 0;
|
|
344
|
+
var argument;
|
|
345
|
+
var resolvedValue;
|
|
346
|
+
var string = '';
|
|
347
|
+
while (index < arguments.length) {
|
|
348
|
+
if (argument = arguments[index++]) {
|
|
349
|
+
if (resolvedValue = _toValue(argument)) {
|
|
350
|
+
string && (string += ' ');
|
|
351
|
+
string += resolvedValue;
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
return string;
|
|
356
|
+
}
|
|
357
|
+
var _toValue = function toValue(mix) {
|
|
358
|
+
if (typeof mix === 'string') {
|
|
359
|
+
return mix;
|
|
360
|
+
}
|
|
361
|
+
var resolvedValue;
|
|
362
|
+
var string = '';
|
|
363
|
+
for (var k = 0; k < mix.length; k++) {
|
|
364
|
+
if (mix[k]) {
|
|
365
|
+
if (resolvedValue = _toValue(mix[k])) {
|
|
366
|
+
string && (string += ' ');
|
|
367
|
+
string += resolvedValue;
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
return string;
|
|
372
|
+
};
|
|
373
|
+
function createTailwindMerge(createConfigFirst) {
|
|
374
|
+
for (var _len = arguments.length, createConfigRest = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
375
|
+
createConfigRest[_key - 1] = arguments[_key];
|
|
376
|
+
}
|
|
377
|
+
var configUtils;
|
|
378
|
+
var cacheGet;
|
|
379
|
+
var cacheSet;
|
|
380
|
+
var functionToCall = initTailwindMerge;
|
|
381
|
+
function initTailwindMerge(classList) {
|
|
382
|
+
var config = createConfigRest.reduce(function (previousConfig, createConfigCurrent) {
|
|
383
|
+
return createConfigCurrent(previousConfig);
|
|
384
|
+
}, createConfigFirst());
|
|
385
|
+
configUtils = createConfigUtils(config);
|
|
386
|
+
cacheGet = configUtils.cache.get;
|
|
387
|
+
cacheSet = configUtils.cache.set;
|
|
388
|
+
functionToCall = tailwindMerge;
|
|
389
|
+
return tailwindMerge(classList);
|
|
390
|
+
}
|
|
391
|
+
function tailwindMerge(classList) {
|
|
392
|
+
var cachedResult = cacheGet(classList);
|
|
393
|
+
if (cachedResult) {
|
|
394
|
+
return cachedResult;
|
|
395
|
+
}
|
|
396
|
+
var result = mergeClassList(classList, configUtils);
|
|
397
|
+
cacheSet(classList, result);
|
|
398
|
+
return result;
|
|
399
|
+
}
|
|
400
|
+
return function callTailwindMerge() {
|
|
401
|
+
return functionToCall(twJoin.apply(null, arguments));
|
|
402
|
+
};
|
|
403
|
+
}
|
|
404
|
+
var fromTheme = function fromTheme(key) {
|
|
405
|
+
var themeGetter = function themeGetter(theme) {
|
|
406
|
+
return theme[key] || [];
|
|
407
|
+
};
|
|
408
|
+
themeGetter.isThemeGetter = true;
|
|
409
|
+
return themeGetter;
|
|
410
|
+
};
|
|
411
|
+
var arbitraryValueRegex = /^\[(?:([a-z-]+):)?(.+)\]$/i;
|
|
412
|
+
var fractionRegex = /^\d+\/\d+$/;
|
|
413
|
+
var stringLengths = /*#__PURE__*/new Set(['px', 'full', 'screen']);
|
|
414
|
+
var tshirtUnitRegex = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/;
|
|
415
|
+
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$/;
|
|
416
|
+
var colorFunctionRegex = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/;
|
|
417
|
+
// Shadow always begins with x and y offset separated by underscore optionally prepended by inset
|
|
418
|
+
var shadowRegex = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;
|
|
419
|
+
var imageRegex = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;
|
|
420
|
+
var isLength = function isLength(value) {
|
|
421
|
+
return isNumber(value) || stringLengths.has(value) || fractionRegex.test(value);
|
|
422
|
+
};
|
|
423
|
+
var isArbitraryLength = function isArbitraryLength(value) {
|
|
424
|
+
return getIsArbitraryValue(value, 'length', isLengthOnly);
|
|
425
|
+
};
|
|
426
|
+
var isNumber = function isNumber(value) {
|
|
427
|
+
return Boolean(value) && !Number.isNaN(Number(value));
|
|
428
|
+
};
|
|
429
|
+
var isArbitraryNumber = function isArbitraryNumber(value) {
|
|
430
|
+
return getIsArbitraryValue(value, 'number', isNumber);
|
|
431
|
+
};
|
|
432
|
+
var isInteger = function isInteger(value) {
|
|
433
|
+
return Boolean(value) && Number.isInteger(Number(value));
|
|
434
|
+
};
|
|
435
|
+
var isPercent = function isPercent(value) {
|
|
436
|
+
return value.endsWith('%') && isNumber(value.slice(0, -1));
|
|
437
|
+
};
|
|
438
|
+
var isArbitraryValue = function isArbitraryValue(value) {
|
|
439
|
+
return arbitraryValueRegex.test(value);
|
|
440
|
+
};
|
|
441
|
+
var isTshirtSize = function isTshirtSize(value) {
|
|
442
|
+
return tshirtUnitRegex.test(value);
|
|
443
|
+
};
|
|
444
|
+
var sizeLabels = /*#__PURE__*/new Set(['length', 'size', 'percentage']);
|
|
445
|
+
var isArbitrarySize = function isArbitrarySize(value) {
|
|
446
|
+
return getIsArbitraryValue(value, sizeLabels, isNever);
|
|
447
|
+
};
|
|
448
|
+
var isArbitraryPosition = function isArbitraryPosition(value) {
|
|
449
|
+
return getIsArbitraryValue(value, 'position', isNever);
|
|
450
|
+
};
|
|
451
|
+
var imageLabels = /*#__PURE__*/new Set(['image', 'url']);
|
|
452
|
+
var isArbitraryImage = function isArbitraryImage(value) {
|
|
453
|
+
return getIsArbitraryValue(value, imageLabels, isImage);
|
|
454
|
+
};
|
|
455
|
+
var isArbitraryShadow = function isArbitraryShadow(value) {
|
|
456
|
+
return getIsArbitraryValue(value, '', isShadow);
|
|
457
|
+
};
|
|
458
|
+
var isAny = function isAny() {
|
|
459
|
+
return true;
|
|
460
|
+
};
|
|
461
|
+
var getIsArbitraryValue = function getIsArbitraryValue(value, label, testValue) {
|
|
462
|
+
var result = arbitraryValueRegex.exec(value);
|
|
463
|
+
if (result) {
|
|
464
|
+
if (result[1]) {
|
|
465
|
+
return typeof label === 'string' ? result[1] === label : label.has(result[1]);
|
|
466
|
+
}
|
|
467
|
+
return testValue(result[2]);
|
|
468
|
+
}
|
|
469
|
+
return false;
|
|
470
|
+
};
|
|
471
|
+
var isLengthOnly = function isLengthOnly(value) {
|
|
472
|
+
return (
|
|
473
|
+
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
474
|
+
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
475
|
+
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
476
|
+
lengthUnitRegex.test(value) && !colorFunctionRegex.test(value)
|
|
477
|
+
);
|
|
478
|
+
};
|
|
479
|
+
var isNever = function isNever() {
|
|
480
|
+
return false;
|
|
481
|
+
};
|
|
482
|
+
var isShadow = function isShadow(value) {
|
|
483
|
+
return shadowRegex.test(value);
|
|
484
|
+
};
|
|
485
|
+
var isImage = function isImage(value) {
|
|
486
|
+
return imageRegex.test(value);
|
|
487
|
+
};
|
|
488
|
+
var validators = /*#__PURE__*/Object.defineProperty({
|
|
489
|
+
__proto__: null,
|
|
490
|
+
isAny: isAny,
|
|
491
|
+
isArbitraryImage: isArbitraryImage,
|
|
492
|
+
isArbitraryLength: isArbitraryLength,
|
|
493
|
+
isArbitraryNumber: isArbitraryNumber,
|
|
494
|
+
isArbitraryPosition: isArbitraryPosition,
|
|
495
|
+
isArbitraryShadow: isArbitraryShadow,
|
|
496
|
+
isArbitrarySize: isArbitrarySize,
|
|
497
|
+
isArbitraryValue: isArbitraryValue,
|
|
498
|
+
isInteger: isInteger,
|
|
499
|
+
isLength: isLength,
|
|
500
|
+
isNumber: isNumber,
|
|
501
|
+
isPercent: isPercent,
|
|
502
|
+
isTshirtSize: isTshirtSize
|
|
503
|
+
}, Symbol.toStringTag, {
|
|
504
|
+
value: 'Module'
|
|
505
|
+
});
|
|
506
|
+
var getDefaultConfig = function getDefaultConfig() {
|
|
507
|
+
var colors = fromTheme('colors');
|
|
508
|
+
var spacing = fromTheme('spacing');
|
|
509
|
+
var blur = fromTheme('blur');
|
|
510
|
+
var brightness = fromTheme('brightness');
|
|
511
|
+
var borderColor = fromTheme('borderColor');
|
|
512
|
+
var borderRadius = fromTheme('borderRadius');
|
|
513
|
+
var borderSpacing = fromTheme('borderSpacing');
|
|
514
|
+
var borderWidth = fromTheme('borderWidth');
|
|
515
|
+
var contrast = fromTheme('contrast');
|
|
516
|
+
var grayscale = fromTheme('grayscale');
|
|
517
|
+
var hueRotate = fromTheme('hueRotate');
|
|
518
|
+
var invert = fromTheme('invert');
|
|
519
|
+
var gap = fromTheme('gap');
|
|
520
|
+
var gradientColorStops = fromTheme('gradientColorStops');
|
|
521
|
+
var gradientColorStopPositions = fromTheme('gradientColorStopPositions');
|
|
522
|
+
var inset = fromTheme('inset');
|
|
523
|
+
var margin = fromTheme('margin');
|
|
524
|
+
var opacity = fromTheme('opacity');
|
|
525
|
+
var padding = fromTheme('padding');
|
|
526
|
+
var saturate = fromTheme('saturate');
|
|
527
|
+
var scale = fromTheme('scale');
|
|
528
|
+
var sepia = fromTheme('sepia');
|
|
529
|
+
var skew = fromTheme('skew');
|
|
530
|
+
var space = fromTheme('space');
|
|
531
|
+
var translate = fromTheme('translate');
|
|
532
|
+
var getOverscroll = function getOverscroll() {
|
|
533
|
+
return ['auto', 'contain', 'none'];
|
|
534
|
+
};
|
|
535
|
+
var getOverflow = function getOverflow() {
|
|
536
|
+
return ['auto', 'hidden', 'clip', 'visible', 'scroll'];
|
|
537
|
+
};
|
|
538
|
+
var getSpacingWithAutoAndArbitrary = function getSpacingWithAutoAndArbitrary() {
|
|
539
|
+
return ['auto', isArbitraryValue, spacing];
|
|
540
|
+
};
|
|
541
|
+
var getSpacingWithArbitrary = function getSpacingWithArbitrary() {
|
|
542
|
+
return [isArbitraryValue, spacing];
|
|
543
|
+
};
|
|
544
|
+
var getLengthWithEmptyAndArbitrary = function getLengthWithEmptyAndArbitrary() {
|
|
545
|
+
return ['', isLength, isArbitraryLength];
|
|
546
|
+
};
|
|
547
|
+
var getNumberWithAutoAndArbitrary = function getNumberWithAutoAndArbitrary() {
|
|
548
|
+
return ['auto', isNumber, isArbitraryValue];
|
|
549
|
+
};
|
|
550
|
+
var getPositions = function getPositions() {
|
|
551
|
+
return ['bottom', 'center', 'left', 'left-bottom', 'left-top', 'right', 'right-bottom', 'right-top', 'top'];
|
|
552
|
+
};
|
|
553
|
+
var getLineStyles = function getLineStyles() {
|
|
554
|
+
return ['solid', 'dashed', 'dotted', 'double', 'none'];
|
|
555
|
+
};
|
|
556
|
+
var getBlendModes = function getBlendModes() {
|
|
557
|
+
return ['normal', 'multiply', 'screen', 'overlay', 'darken', 'lighten', 'color-dodge', 'color-burn', 'hard-light', 'soft-light', 'difference', 'exclusion', 'hue', 'saturation', 'color', 'luminosity'];
|
|
558
|
+
};
|
|
559
|
+
var getAlign = function getAlign() {
|
|
560
|
+
return ['start', 'end', 'center', 'between', 'around', 'evenly', 'stretch'];
|
|
561
|
+
};
|
|
562
|
+
var getZeroAndEmpty = function getZeroAndEmpty() {
|
|
563
|
+
return ['', '0', isArbitraryValue];
|
|
564
|
+
};
|
|
565
|
+
var getBreaks = function getBreaks() {
|
|
566
|
+
return ['auto', 'avoid', 'all', 'avoid-page', 'page', 'left', 'right', 'column'];
|
|
567
|
+
};
|
|
568
|
+
var getNumberAndArbitrary = function getNumberAndArbitrary() {
|
|
569
|
+
return [isNumber, isArbitraryValue];
|
|
570
|
+
};
|
|
571
|
+
return {
|
|
572
|
+
cacheSize: 500,
|
|
573
|
+
separator: ':',
|
|
574
|
+
theme: {
|
|
575
|
+
colors: [isAny],
|
|
576
|
+
spacing: [isLength, isArbitraryLength],
|
|
577
|
+
blur: ['none', '', isTshirtSize, isArbitraryValue],
|
|
578
|
+
brightness: getNumberAndArbitrary(),
|
|
579
|
+
borderColor: [colors],
|
|
580
|
+
borderRadius: ['none', '', 'full', isTshirtSize, isArbitraryValue],
|
|
581
|
+
borderSpacing: getSpacingWithArbitrary(),
|
|
582
|
+
borderWidth: getLengthWithEmptyAndArbitrary(),
|
|
583
|
+
contrast: getNumberAndArbitrary(),
|
|
584
|
+
grayscale: getZeroAndEmpty(),
|
|
585
|
+
hueRotate: getNumberAndArbitrary(),
|
|
586
|
+
invert: getZeroAndEmpty(),
|
|
587
|
+
gap: getSpacingWithArbitrary(),
|
|
588
|
+
gradientColorStops: [colors],
|
|
589
|
+
gradientColorStopPositions: [isPercent, isArbitraryLength],
|
|
590
|
+
inset: getSpacingWithAutoAndArbitrary(),
|
|
591
|
+
margin: getSpacingWithAutoAndArbitrary(),
|
|
592
|
+
opacity: getNumberAndArbitrary(),
|
|
593
|
+
padding: getSpacingWithArbitrary(),
|
|
594
|
+
saturate: getNumberAndArbitrary(),
|
|
595
|
+
scale: getNumberAndArbitrary(),
|
|
596
|
+
sepia: getZeroAndEmpty(),
|
|
597
|
+
skew: getNumberAndArbitrary(),
|
|
598
|
+
space: getSpacingWithArbitrary(),
|
|
599
|
+
translate: getSpacingWithArbitrary()
|
|
600
|
+
},
|
|
601
|
+
classGroups: {
|
|
602
|
+
// Layout
|
|
603
|
+
/**
|
|
604
|
+
* Aspect Ratio
|
|
605
|
+
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
606
|
+
*/
|
|
607
|
+
aspect: [{
|
|
608
|
+
aspect: ['auto', 'square', 'video', isArbitraryValue]
|
|
609
|
+
}],
|
|
610
|
+
/**
|
|
611
|
+
* Container
|
|
612
|
+
* @see https://tailwindcss.com/docs/container
|
|
613
|
+
*/
|
|
614
|
+
container: ['container'],
|
|
615
|
+
/**
|
|
616
|
+
* Columns
|
|
617
|
+
* @see https://tailwindcss.com/docs/columns
|
|
618
|
+
*/
|
|
619
|
+
columns: [{
|
|
620
|
+
columns: [isTshirtSize]
|
|
621
|
+
}],
|
|
622
|
+
/**
|
|
623
|
+
* Break After
|
|
624
|
+
* @see https://tailwindcss.com/docs/break-after
|
|
625
|
+
*/
|
|
626
|
+
'break-after': [{
|
|
627
|
+
'break-after': getBreaks()
|
|
628
|
+
}],
|
|
629
|
+
/**
|
|
630
|
+
* Break Before
|
|
631
|
+
* @see https://tailwindcss.com/docs/break-before
|
|
632
|
+
*/
|
|
633
|
+
'break-before': [{
|
|
634
|
+
'break-before': getBreaks()
|
|
635
|
+
}],
|
|
636
|
+
/**
|
|
637
|
+
* Break Inside
|
|
638
|
+
* @see https://tailwindcss.com/docs/break-inside
|
|
639
|
+
*/
|
|
640
|
+
'break-inside': [{
|
|
641
|
+
'break-inside': ['auto', 'avoid', 'avoid-page', 'avoid-column']
|
|
642
|
+
}],
|
|
643
|
+
/**
|
|
644
|
+
* Box Decoration Break
|
|
645
|
+
* @see https://tailwindcss.com/docs/box-decoration-break
|
|
646
|
+
*/
|
|
647
|
+
'box-decoration': [{
|
|
648
|
+
'box-decoration': ['slice', 'clone']
|
|
649
|
+
}],
|
|
650
|
+
/**
|
|
651
|
+
* Box Sizing
|
|
652
|
+
* @see https://tailwindcss.com/docs/box-sizing
|
|
653
|
+
*/
|
|
654
|
+
box: [{
|
|
655
|
+
box: ['border', 'content']
|
|
656
|
+
}],
|
|
657
|
+
/**
|
|
658
|
+
* Display
|
|
659
|
+
* @see https://tailwindcss.com/docs/display
|
|
660
|
+
*/
|
|
661
|
+
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'],
|
|
662
|
+
/**
|
|
663
|
+
* Floats
|
|
664
|
+
* @see https://tailwindcss.com/docs/float
|
|
665
|
+
*/
|
|
666
|
+
float: [{
|
|
667
|
+
float: ['right', 'left', 'none', 'start', 'end']
|
|
668
|
+
}],
|
|
669
|
+
/**
|
|
670
|
+
* Clear
|
|
671
|
+
* @see https://tailwindcss.com/docs/clear
|
|
672
|
+
*/
|
|
673
|
+
clear: [{
|
|
674
|
+
clear: ['left', 'right', 'both', 'none', 'start', 'end']
|
|
675
|
+
}],
|
|
676
|
+
/**
|
|
677
|
+
* Isolation
|
|
678
|
+
* @see https://tailwindcss.com/docs/isolation
|
|
679
|
+
*/
|
|
680
|
+
isolation: ['isolate', 'isolation-auto'],
|
|
681
|
+
/**
|
|
682
|
+
* Object Fit
|
|
683
|
+
* @see https://tailwindcss.com/docs/object-fit
|
|
684
|
+
*/
|
|
685
|
+
'object-fit': [{
|
|
686
|
+
object: ['contain', 'cover', 'fill', 'none', 'scale-down']
|
|
687
|
+
}],
|
|
688
|
+
/**
|
|
689
|
+
* Object Position
|
|
690
|
+
* @see https://tailwindcss.com/docs/object-position
|
|
691
|
+
*/
|
|
692
|
+
'object-position': [{
|
|
693
|
+
object: [].concat(_toConsumableArray(getPositions()), [isArbitraryValue])
|
|
694
|
+
}],
|
|
695
|
+
/**
|
|
696
|
+
* Overflow
|
|
697
|
+
* @see https://tailwindcss.com/docs/overflow
|
|
698
|
+
*/
|
|
699
|
+
overflow: [{
|
|
700
|
+
overflow: getOverflow()
|
|
701
|
+
}],
|
|
702
|
+
/**
|
|
703
|
+
* Overflow X
|
|
704
|
+
* @see https://tailwindcss.com/docs/overflow
|
|
705
|
+
*/
|
|
706
|
+
'overflow-x': [{
|
|
707
|
+
'overflow-x': getOverflow()
|
|
708
|
+
}],
|
|
709
|
+
/**
|
|
710
|
+
* Overflow Y
|
|
711
|
+
* @see https://tailwindcss.com/docs/overflow
|
|
712
|
+
*/
|
|
713
|
+
'overflow-y': [{
|
|
714
|
+
'overflow-y': getOverflow()
|
|
715
|
+
}],
|
|
716
|
+
/**
|
|
717
|
+
* Overscroll Behavior
|
|
718
|
+
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
719
|
+
*/
|
|
720
|
+
overscroll: [{
|
|
721
|
+
overscroll: getOverscroll()
|
|
722
|
+
}],
|
|
723
|
+
/**
|
|
724
|
+
* Overscroll Behavior X
|
|
725
|
+
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
726
|
+
*/
|
|
727
|
+
'overscroll-x': [{
|
|
728
|
+
'overscroll-x': getOverscroll()
|
|
729
|
+
}],
|
|
730
|
+
/**
|
|
731
|
+
* Overscroll Behavior Y
|
|
732
|
+
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
733
|
+
*/
|
|
734
|
+
'overscroll-y': [{
|
|
735
|
+
'overscroll-y': getOverscroll()
|
|
736
|
+
}],
|
|
737
|
+
/**
|
|
738
|
+
* Position
|
|
739
|
+
* @see https://tailwindcss.com/docs/position
|
|
740
|
+
*/
|
|
741
|
+
position: ['static', 'fixed', 'absolute', 'relative', 'sticky'],
|
|
742
|
+
/**
|
|
743
|
+
* Top / Right / Bottom / Left
|
|
744
|
+
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
745
|
+
*/
|
|
746
|
+
inset: [{
|
|
747
|
+
inset: [inset]
|
|
748
|
+
}],
|
|
749
|
+
/**
|
|
750
|
+
* Right / Left
|
|
751
|
+
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
752
|
+
*/
|
|
753
|
+
'inset-x': [{
|
|
754
|
+
'inset-x': [inset]
|
|
755
|
+
}],
|
|
756
|
+
/**
|
|
757
|
+
* Top / Bottom
|
|
758
|
+
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
759
|
+
*/
|
|
760
|
+
'inset-y': [{
|
|
761
|
+
'inset-y': [inset]
|
|
762
|
+
}],
|
|
763
|
+
/**
|
|
764
|
+
* Start
|
|
765
|
+
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
766
|
+
*/
|
|
767
|
+
start: [{
|
|
768
|
+
start: [inset]
|
|
769
|
+
}],
|
|
770
|
+
/**
|
|
771
|
+
* End
|
|
772
|
+
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
773
|
+
*/
|
|
774
|
+
end: [{
|
|
775
|
+
end: [inset]
|
|
776
|
+
}],
|
|
777
|
+
/**
|
|
778
|
+
* Top
|
|
779
|
+
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
780
|
+
*/
|
|
781
|
+
top: [{
|
|
782
|
+
top: [inset]
|
|
783
|
+
}],
|
|
784
|
+
/**
|
|
785
|
+
* Right
|
|
786
|
+
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
787
|
+
*/
|
|
788
|
+
right: [{
|
|
789
|
+
right: [inset]
|
|
790
|
+
}],
|
|
791
|
+
/**
|
|
792
|
+
* Bottom
|
|
793
|
+
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
794
|
+
*/
|
|
795
|
+
bottom: [{
|
|
796
|
+
bottom: [inset]
|
|
797
|
+
}],
|
|
798
|
+
/**
|
|
799
|
+
* Left
|
|
800
|
+
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
801
|
+
*/
|
|
802
|
+
left: [{
|
|
803
|
+
left: [inset]
|
|
804
|
+
}],
|
|
805
|
+
/**
|
|
806
|
+
* Visibility
|
|
807
|
+
* @see https://tailwindcss.com/docs/visibility
|
|
808
|
+
*/
|
|
809
|
+
visibility: ['visible', 'invisible', 'collapse'],
|
|
810
|
+
/**
|
|
811
|
+
* Z-Index
|
|
812
|
+
* @see https://tailwindcss.com/docs/z-index
|
|
813
|
+
*/
|
|
814
|
+
z: [{
|
|
815
|
+
z: ['auto', isInteger, isArbitraryValue]
|
|
816
|
+
}],
|
|
817
|
+
// Flexbox and Grid
|
|
818
|
+
/**
|
|
819
|
+
* Flex Basis
|
|
820
|
+
* @see https://tailwindcss.com/docs/flex-basis
|
|
821
|
+
*/
|
|
822
|
+
basis: [{
|
|
823
|
+
basis: getSpacingWithAutoAndArbitrary()
|
|
824
|
+
}],
|
|
825
|
+
/**
|
|
826
|
+
* Flex Direction
|
|
827
|
+
* @see https://tailwindcss.com/docs/flex-direction
|
|
828
|
+
*/
|
|
829
|
+
'flex-direction': [{
|
|
830
|
+
flex: ['row', 'row-reverse', 'col', 'col-reverse']
|
|
831
|
+
}],
|
|
832
|
+
/**
|
|
833
|
+
* Flex Wrap
|
|
834
|
+
* @see https://tailwindcss.com/docs/flex-wrap
|
|
835
|
+
*/
|
|
836
|
+
'flex-wrap': [{
|
|
837
|
+
flex: ['wrap', 'wrap-reverse', 'nowrap']
|
|
838
|
+
}],
|
|
839
|
+
/**
|
|
840
|
+
* Flex
|
|
841
|
+
* @see https://tailwindcss.com/docs/flex
|
|
842
|
+
*/
|
|
843
|
+
flex: [{
|
|
844
|
+
flex: ['1', 'auto', 'initial', 'none', isArbitraryValue]
|
|
845
|
+
}],
|
|
846
|
+
/**
|
|
847
|
+
* Flex Grow
|
|
848
|
+
* @see https://tailwindcss.com/docs/flex-grow
|
|
849
|
+
*/
|
|
850
|
+
grow: [{
|
|
851
|
+
grow: getZeroAndEmpty()
|
|
852
|
+
}],
|
|
853
|
+
/**
|
|
854
|
+
* Flex Shrink
|
|
855
|
+
* @see https://tailwindcss.com/docs/flex-shrink
|
|
856
|
+
*/
|
|
857
|
+
shrink: [{
|
|
858
|
+
shrink: getZeroAndEmpty()
|
|
859
|
+
}],
|
|
860
|
+
/**
|
|
861
|
+
* Order
|
|
862
|
+
* @see https://tailwindcss.com/docs/order
|
|
863
|
+
*/
|
|
864
|
+
order: [{
|
|
865
|
+
order: ['first', 'last', 'none', isInteger, isArbitraryValue]
|
|
866
|
+
}],
|
|
867
|
+
/**
|
|
868
|
+
* Grid Template Columns
|
|
869
|
+
* @see https://tailwindcss.com/docs/grid-template-columns
|
|
870
|
+
*/
|
|
871
|
+
'grid-cols': [{
|
|
872
|
+
'grid-cols': [isAny]
|
|
873
|
+
}],
|
|
874
|
+
/**
|
|
875
|
+
* Grid Column Start / End
|
|
876
|
+
* @see https://tailwindcss.com/docs/grid-column
|
|
877
|
+
*/
|
|
878
|
+
'col-start-end': [{
|
|
879
|
+
col: ['auto', {
|
|
880
|
+
span: ['full', isInteger, isArbitraryValue]
|
|
881
|
+
}, isArbitraryValue]
|
|
882
|
+
}],
|
|
883
|
+
/**
|
|
884
|
+
* Grid Column Start
|
|
885
|
+
* @see https://tailwindcss.com/docs/grid-column
|
|
886
|
+
*/
|
|
887
|
+
'col-start': [{
|
|
888
|
+
'col-start': getNumberWithAutoAndArbitrary()
|
|
889
|
+
}],
|
|
890
|
+
/**
|
|
891
|
+
* Grid Column End
|
|
892
|
+
* @see https://tailwindcss.com/docs/grid-column
|
|
893
|
+
*/
|
|
894
|
+
'col-end': [{
|
|
895
|
+
'col-end': getNumberWithAutoAndArbitrary()
|
|
896
|
+
}],
|
|
897
|
+
/**
|
|
898
|
+
* Grid Template Rows
|
|
899
|
+
* @see https://tailwindcss.com/docs/grid-template-rows
|
|
900
|
+
*/
|
|
901
|
+
'grid-rows': [{
|
|
902
|
+
'grid-rows': [isAny]
|
|
903
|
+
}],
|
|
904
|
+
/**
|
|
905
|
+
* Grid Row Start / End
|
|
906
|
+
* @see https://tailwindcss.com/docs/grid-row
|
|
907
|
+
*/
|
|
908
|
+
'row-start-end': [{
|
|
909
|
+
row: ['auto', {
|
|
910
|
+
span: [isInteger, isArbitraryValue]
|
|
911
|
+
}, isArbitraryValue]
|
|
912
|
+
}],
|
|
913
|
+
/**
|
|
914
|
+
* Grid Row Start
|
|
915
|
+
* @see https://tailwindcss.com/docs/grid-row
|
|
916
|
+
*/
|
|
917
|
+
'row-start': [{
|
|
918
|
+
'row-start': getNumberWithAutoAndArbitrary()
|
|
919
|
+
}],
|
|
920
|
+
/**
|
|
921
|
+
* Grid Row End
|
|
922
|
+
* @see https://tailwindcss.com/docs/grid-row
|
|
923
|
+
*/
|
|
924
|
+
'row-end': [{
|
|
925
|
+
'row-end': getNumberWithAutoAndArbitrary()
|
|
926
|
+
}],
|
|
927
|
+
/**
|
|
928
|
+
* Grid Auto Flow
|
|
929
|
+
* @see https://tailwindcss.com/docs/grid-auto-flow
|
|
930
|
+
*/
|
|
931
|
+
'grid-flow': [{
|
|
932
|
+
'grid-flow': ['row', 'col', 'dense', 'row-dense', 'col-dense']
|
|
933
|
+
}],
|
|
934
|
+
/**
|
|
935
|
+
* Grid Auto Columns
|
|
936
|
+
* @see https://tailwindcss.com/docs/grid-auto-columns
|
|
937
|
+
*/
|
|
938
|
+
'auto-cols': [{
|
|
939
|
+
'auto-cols': ['auto', 'min', 'max', 'fr', isArbitraryValue]
|
|
940
|
+
}],
|
|
941
|
+
/**
|
|
942
|
+
* Grid Auto Rows
|
|
943
|
+
* @see https://tailwindcss.com/docs/grid-auto-rows
|
|
944
|
+
*/
|
|
945
|
+
'auto-rows': [{
|
|
946
|
+
'auto-rows': ['auto', 'min', 'max', 'fr', isArbitraryValue]
|
|
947
|
+
}],
|
|
948
|
+
/**
|
|
949
|
+
* Gap
|
|
950
|
+
* @see https://tailwindcss.com/docs/gap
|
|
951
|
+
*/
|
|
952
|
+
gap: [{
|
|
953
|
+
gap: [gap]
|
|
954
|
+
}],
|
|
955
|
+
/**
|
|
956
|
+
* Gap X
|
|
957
|
+
* @see https://tailwindcss.com/docs/gap
|
|
958
|
+
*/
|
|
959
|
+
'gap-x': [{
|
|
960
|
+
'gap-x': [gap]
|
|
961
|
+
}],
|
|
962
|
+
/**
|
|
963
|
+
* Gap Y
|
|
964
|
+
* @see https://tailwindcss.com/docs/gap
|
|
965
|
+
*/
|
|
966
|
+
'gap-y': [{
|
|
967
|
+
'gap-y': [gap]
|
|
968
|
+
}],
|
|
969
|
+
/**
|
|
970
|
+
* Justify Content
|
|
971
|
+
* @see https://tailwindcss.com/docs/justify-content
|
|
972
|
+
*/
|
|
973
|
+
'justify-content': [{
|
|
974
|
+
justify: ['normal'].concat(_toConsumableArray(getAlign()))
|
|
975
|
+
}],
|
|
976
|
+
/**
|
|
977
|
+
* Justify Items
|
|
978
|
+
* @see https://tailwindcss.com/docs/justify-items
|
|
979
|
+
*/
|
|
980
|
+
'justify-items': [{
|
|
981
|
+
'justify-items': ['start', 'end', 'center', 'stretch']
|
|
982
|
+
}],
|
|
983
|
+
/**
|
|
984
|
+
* Justify Self
|
|
985
|
+
* @see https://tailwindcss.com/docs/justify-self
|
|
986
|
+
*/
|
|
987
|
+
'justify-self': [{
|
|
988
|
+
'justify-self': ['auto', 'start', 'end', 'center', 'stretch']
|
|
989
|
+
}],
|
|
990
|
+
/**
|
|
991
|
+
* Align Content
|
|
992
|
+
* @see https://tailwindcss.com/docs/align-content
|
|
993
|
+
*/
|
|
994
|
+
'align-content': [{
|
|
995
|
+
content: ['normal'].concat(_toConsumableArray(getAlign()), ['baseline'])
|
|
996
|
+
}],
|
|
997
|
+
/**
|
|
998
|
+
* Align Items
|
|
999
|
+
* @see https://tailwindcss.com/docs/align-items
|
|
1000
|
+
*/
|
|
1001
|
+
'align-items': [{
|
|
1002
|
+
items: ['start', 'end', 'center', 'baseline', 'stretch']
|
|
1003
|
+
}],
|
|
1004
|
+
/**
|
|
1005
|
+
* Align Self
|
|
1006
|
+
* @see https://tailwindcss.com/docs/align-self
|
|
1007
|
+
*/
|
|
1008
|
+
'align-self': [{
|
|
1009
|
+
self: ['auto', 'start', 'end', 'center', 'stretch', 'baseline']
|
|
1010
|
+
}],
|
|
1011
|
+
/**
|
|
1012
|
+
* Place Content
|
|
1013
|
+
* @see https://tailwindcss.com/docs/place-content
|
|
1014
|
+
*/
|
|
1015
|
+
'place-content': [{
|
|
1016
|
+
'place-content': [].concat(_toConsumableArray(getAlign()), ['baseline'])
|
|
1017
|
+
}],
|
|
1018
|
+
/**
|
|
1019
|
+
* Place Items
|
|
1020
|
+
* @see https://tailwindcss.com/docs/place-items
|
|
1021
|
+
*/
|
|
1022
|
+
'place-items': [{
|
|
1023
|
+
'place-items': ['start', 'end', 'center', 'baseline', 'stretch']
|
|
1024
|
+
}],
|
|
1025
|
+
/**
|
|
1026
|
+
* Place Self
|
|
1027
|
+
* @see https://tailwindcss.com/docs/place-self
|
|
1028
|
+
*/
|
|
1029
|
+
'place-self': [{
|
|
1030
|
+
'place-self': ['auto', 'start', 'end', 'center', 'stretch']
|
|
1031
|
+
}],
|
|
1032
|
+
// Spacing
|
|
1033
|
+
/**
|
|
1034
|
+
* Padding
|
|
1035
|
+
* @see https://tailwindcss.com/docs/padding
|
|
1036
|
+
*/
|
|
1037
|
+
p: [{
|
|
1038
|
+
p: [padding]
|
|
1039
|
+
}],
|
|
1040
|
+
/**
|
|
1041
|
+
* Padding X
|
|
1042
|
+
* @see https://tailwindcss.com/docs/padding
|
|
1043
|
+
*/
|
|
1044
|
+
px: [{
|
|
1045
|
+
px: [padding]
|
|
1046
|
+
}],
|
|
1047
|
+
/**
|
|
1048
|
+
* Padding Y
|
|
1049
|
+
* @see https://tailwindcss.com/docs/padding
|
|
1050
|
+
*/
|
|
1051
|
+
py: [{
|
|
1052
|
+
py: [padding]
|
|
1053
|
+
}],
|
|
1054
|
+
/**
|
|
1055
|
+
* Padding Start
|
|
1056
|
+
* @see https://tailwindcss.com/docs/padding
|
|
1057
|
+
*/
|
|
1058
|
+
ps: [{
|
|
1059
|
+
ps: [padding]
|
|
1060
|
+
}],
|
|
1061
|
+
/**
|
|
1062
|
+
* Padding End
|
|
1063
|
+
* @see https://tailwindcss.com/docs/padding
|
|
1064
|
+
*/
|
|
1065
|
+
pe: [{
|
|
1066
|
+
pe: [padding]
|
|
1067
|
+
}],
|
|
1068
|
+
/**
|
|
1069
|
+
* Padding Top
|
|
1070
|
+
* @see https://tailwindcss.com/docs/padding
|
|
1071
|
+
*/
|
|
1072
|
+
pt: [{
|
|
1073
|
+
pt: [padding]
|
|
1074
|
+
}],
|
|
1075
|
+
/**
|
|
1076
|
+
* Padding Right
|
|
1077
|
+
* @see https://tailwindcss.com/docs/padding
|
|
1078
|
+
*/
|
|
1079
|
+
pr: [{
|
|
1080
|
+
pr: [padding]
|
|
1081
|
+
}],
|
|
1082
|
+
/**
|
|
1083
|
+
* Padding Bottom
|
|
1084
|
+
* @see https://tailwindcss.com/docs/padding
|
|
1085
|
+
*/
|
|
1086
|
+
pb: [{
|
|
1087
|
+
pb: [padding]
|
|
1088
|
+
}],
|
|
1089
|
+
/**
|
|
1090
|
+
* Padding Left
|
|
1091
|
+
* @see https://tailwindcss.com/docs/padding
|
|
1092
|
+
*/
|
|
1093
|
+
pl: [{
|
|
1094
|
+
pl: [padding]
|
|
1095
|
+
}],
|
|
1096
|
+
/**
|
|
1097
|
+
* Margin
|
|
1098
|
+
* @see https://tailwindcss.com/docs/margin
|
|
1099
|
+
*/
|
|
1100
|
+
m: [{
|
|
1101
|
+
m: [margin]
|
|
1102
|
+
}],
|
|
1103
|
+
/**
|
|
1104
|
+
* Margin X
|
|
1105
|
+
* @see https://tailwindcss.com/docs/margin
|
|
1106
|
+
*/
|
|
1107
|
+
mx: [{
|
|
1108
|
+
mx: [margin]
|
|
1109
|
+
}],
|
|
1110
|
+
/**
|
|
1111
|
+
* Margin Y
|
|
1112
|
+
* @see https://tailwindcss.com/docs/margin
|
|
1113
|
+
*/
|
|
1114
|
+
my: [{
|
|
1115
|
+
my: [margin]
|
|
1116
|
+
}],
|
|
1117
|
+
/**
|
|
1118
|
+
* Margin Start
|
|
1119
|
+
* @see https://tailwindcss.com/docs/margin
|
|
1120
|
+
*/
|
|
1121
|
+
ms: [{
|
|
1122
|
+
ms: [margin]
|
|
1123
|
+
}],
|
|
1124
|
+
/**
|
|
1125
|
+
* Margin End
|
|
1126
|
+
* @see https://tailwindcss.com/docs/margin
|
|
1127
|
+
*/
|
|
1128
|
+
me: [{
|
|
1129
|
+
me: [margin]
|
|
1130
|
+
}],
|
|
1131
|
+
/**
|
|
1132
|
+
* Margin Top
|
|
1133
|
+
* @see https://tailwindcss.com/docs/margin
|
|
1134
|
+
*/
|
|
1135
|
+
mt: [{
|
|
1136
|
+
mt: [margin]
|
|
1137
|
+
}],
|
|
1138
|
+
/**
|
|
1139
|
+
* Margin Right
|
|
1140
|
+
* @see https://tailwindcss.com/docs/margin
|
|
1141
|
+
*/
|
|
1142
|
+
mr: [{
|
|
1143
|
+
mr: [margin]
|
|
1144
|
+
}],
|
|
1145
|
+
/**
|
|
1146
|
+
* Margin Bottom
|
|
1147
|
+
* @see https://tailwindcss.com/docs/margin
|
|
1148
|
+
*/
|
|
1149
|
+
mb: [{
|
|
1150
|
+
mb: [margin]
|
|
1151
|
+
}],
|
|
1152
|
+
/**
|
|
1153
|
+
* Margin Left
|
|
1154
|
+
* @see https://tailwindcss.com/docs/margin
|
|
1155
|
+
*/
|
|
1156
|
+
ml: [{
|
|
1157
|
+
ml: [margin]
|
|
1158
|
+
}],
|
|
1159
|
+
/**
|
|
1160
|
+
* Space Between X
|
|
1161
|
+
* @see https://tailwindcss.com/docs/space
|
|
1162
|
+
*/
|
|
1163
|
+
'space-x': [{
|
|
1164
|
+
'space-x': [space]
|
|
1165
|
+
}],
|
|
1166
|
+
/**
|
|
1167
|
+
* Space Between X Reverse
|
|
1168
|
+
* @see https://tailwindcss.com/docs/space
|
|
1169
|
+
*/
|
|
1170
|
+
'space-x-reverse': ['space-x-reverse'],
|
|
1171
|
+
/**
|
|
1172
|
+
* Space Between Y
|
|
1173
|
+
* @see https://tailwindcss.com/docs/space
|
|
1174
|
+
*/
|
|
1175
|
+
'space-y': [{
|
|
1176
|
+
'space-y': [space]
|
|
1177
|
+
}],
|
|
1178
|
+
/**
|
|
1179
|
+
* Space Between Y Reverse
|
|
1180
|
+
* @see https://tailwindcss.com/docs/space
|
|
1181
|
+
*/
|
|
1182
|
+
'space-y-reverse': ['space-y-reverse'],
|
|
1183
|
+
// Sizing
|
|
1184
|
+
/**
|
|
1185
|
+
* Width
|
|
1186
|
+
* @see https://tailwindcss.com/docs/width
|
|
1187
|
+
*/
|
|
1188
|
+
w: [{
|
|
1189
|
+
w: ['auto', 'min', 'max', 'fit', 'svw', 'lvw', 'dvw', isArbitraryValue, spacing]
|
|
1190
|
+
}],
|
|
1191
|
+
/**
|
|
1192
|
+
* Min-Width
|
|
1193
|
+
* @see https://tailwindcss.com/docs/min-width
|
|
1194
|
+
*/
|
|
1195
|
+
'min-w': [{
|
|
1196
|
+
'min-w': [isArbitraryValue, spacing, 'min', 'max', 'fit']
|
|
1197
|
+
}],
|
|
1198
|
+
/**
|
|
1199
|
+
* Max-Width
|
|
1200
|
+
* @see https://tailwindcss.com/docs/max-width
|
|
1201
|
+
*/
|
|
1202
|
+
'max-w': [{
|
|
1203
|
+
'max-w': [isArbitraryValue, spacing, 'none', 'full', 'min', 'max', 'fit', 'prose', {
|
|
1204
|
+
screen: [isTshirtSize]
|
|
1205
|
+
}, isTshirtSize]
|
|
1206
|
+
}],
|
|
1207
|
+
/**
|
|
1208
|
+
* Height
|
|
1209
|
+
* @see https://tailwindcss.com/docs/height
|
|
1210
|
+
*/
|
|
1211
|
+
h: [{
|
|
1212
|
+
h: [isArbitraryValue, spacing, 'auto', 'min', 'max', 'fit', 'svh', 'lvh', 'dvh']
|
|
1213
|
+
}],
|
|
1214
|
+
/**
|
|
1215
|
+
* Min-Height
|
|
1216
|
+
* @see https://tailwindcss.com/docs/min-height
|
|
1217
|
+
*/
|
|
1218
|
+
'min-h': [{
|
|
1219
|
+
'min-h': [isArbitraryValue, spacing, 'min', 'max', 'fit', 'svh', 'lvh', 'dvh']
|
|
1220
|
+
}],
|
|
1221
|
+
/**
|
|
1222
|
+
* Max-Height
|
|
1223
|
+
* @see https://tailwindcss.com/docs/max-height
|
|
1224
|
+
*/
|
|
1225
|
+
'max-h': [{
|
|
1226
|
+
'max-h': [isArbitraryValue, spacing, 'min', 'max', 'fit', 'svh', 'lvh', 'dvh']
|
|
1227
|
+
}],
|
|
1228
|
+
/**
|
|
1229
|
+
* Size
|
|
1230
|
+
* @see https://tailwindcss.com/docs/size
|
|
1231
|
+
*/
|
|
1232
|
+
size: [{
|
|
1233
|
+
size: [isArbitraryValue, spacing, 'auto', 'min', 'max', 'fit']
|
|
1234
|
+
}],
|
|
1235
|
+
// Typography
|
|
1236
|
+
/**
|
|
1237
|
+
* Font Size
|
|
1238
|
+
* @see https://tailwindcss.com/docs/font-size
|
|
1239
|
+
*/
|
|
1240
|
+
'font-size': [{
|
|
1241
|
+
text: ['base', isTshirtSize, isArbitraryLength]
|
|
1242
|
+
}],
|
|
1243
|
+
/**
|
|
1244
|
+
* Font Smoothing
|
|
1245
|
+
* @see https://tailwindcss.com/docs/font-smoothing
|
|
1246
|
+
*/
|
|
1247
|
+
'font-smoothing': ['antialiased', 'subpixel-antialiased'],
|
|
1248
|
+
/**
|
|
1249
|
+
* Font Style
|
|
1250
|
+
* @see https://tailwindcss.com/docs/font-style
|
|
1251
|
+
*/
|
|
1252
|
+
'font-style': ['italic', 'not-italic'],
|
|
1253
|
+
/**
|
|
1254
|
+
* Font Weight
|
|
1255
|
+
* @see https://tailwindcss.com/docs/font-weight
|
|
1256
|
+
*/
|
|
1257
|
+
'font-weight': [{
|
|
1258
|
+
font: ['thin', 'extralight', 'light', 'normal', 'medium', 'semibold', 'bold', 'extrabold', 'black', isArbitraryNumber]
|
|
1259
|
+
}],
|
|
1260
|
+
/**
|
|
1261
|
+
* Font Family
|
|
1262
|
+
* @see https://tailwindcss.com/docs/font-family
|
|
1263
|
+
*/
|
|
1264
|
+
'font-family': [{
|
|
1265
|
+
font: [isAny]
|
|
1266
|
+
}],
|
|
1267
|
+
/**
|
|
1268
|
+
* Font Variant Numeric
|
|
1269
|
+
* @see https://tailwindcss.com/docs/font-variant-numeric
|
|
1270
|
+
*/
|
|
1271
|
+
'fvn-normal': ['normal-nums'],
|
|
1272
|
+
/**
|
|
1273
|
+
* Font Variant Numeric
|
|
1274
|
+
* @see https://tailwindcss.com/docs/font-variant-numeric
|
|
1275
|
+
*/
|
|
1276
|
+
'fvn-ordinal': ['ordinal'],
|
|
1277
|
+
/**
|
|
1278
|
+
* Font Variant Numeric
|
|
1279
|
+
* @see https://tailwindcss.com/docs/font-variant-numeric
|
|
1280
|
+
*/
|
|
1281
|
+
'fvn-slashed-zero': ['slashed-zero'],
|
|
1282
|
+
/**
|
|
1283
|
+
* Font Variant Numeric
|
|
1284
|
+
* @see https://tailwindcss.com/docs/font-variant-numeric
|
|
1285
|
+
*/
|
|
1286
|
+
'fvn-figure': ['lining-nums', 'oldstyle-nums'],
|
|
1287
|
+
/**
|
|
1288
|
+
* Font Variant Numeric
|
|
1289
|
+
* @see https://tailwindcss.com/docs/font-variant-numeric
|
|
1290
|
+
*/
|
|
1291
|
+
'fvn-spacing': ['proportional-nums', 'tabular-nums'],
|
|
1292
|
+
/**
|
|
1293
|
+
* Font Variant Numeric
|
|
1294
|
+
* @see https://tailwindcss.com/docs/font-variant-numeric
|
|
1295
|
+
*/
|
|
1296
|
+
'fvn-fraction': ['diagonal-fractions', 'stacked-fractons'],
|
|
1297
|
+
/**
|
|
1298
|
+
* Letter Spacing
|
|
1299
|
+
* @see https://tailwindcss.com/docs/letter-spacing
|
|
1300
|
+
*/
|
|
1301
|
+
tracking: [{
|
|
1302
|
+
tracking: ['tighter', 'tight', 'normal', 'wide', 'wider', 'widest', isArbitraryValue]
|
|
1303
|
+
}],
|
|
1304
|
+
/**
|
|
1305
|
+
* Line Clamp
|
|
1306
|
+
* @see https://tailwindcss.com/docs/line-clamp
|
|
1307
|
+
*/
|
|
1308
|
+
'line-clamp': [{
|
|
1309
|
+
'line-clamp': ['none', isNumber, isArbitraryNumber]
|
|
1310
|
+
}],
|
|
1311
|
+
/**
|
|
1312
|
+
* Line Height
|
|
1313
|
+
* @see https://tailwindcss.com/docs/line-height
|
|
1314
|
+
*/
|
|
1315
|
+
leading: [{
|
|
1316
|
+
leading: ['none', 'tight', 'snug', 'normal', 'relaxed', 'loose', isLength, isArbitraryValue]
|
|
1317
|
+
}],
|
|
1318
|
+
/**
|
|
1319
|
+
* List Style Image
|
|
1320
|
+
* @see https://tailwindcss.com/docs/list-style-image
|
|
1321
|
+
*/
|
|
1322
|
+
'list-image': [{
|
|
1323
|
+
'list-image': ['none', isArbitraryValue]
|
|
1324
|
+
}],
|
|
1325
|
+
/**
|
|
1326
|
+
* List Style Type
|
|
1327
|
+
* @see https://tailwindcss.com/docs/list-style-type
|
|
1328
|
+
*/
|
|
1329
|
+
'list-style-type': [{
|
|
1330
|
+
list: ['none', 'disc', 'decimal', isArbitraryValue]
|
|
1331
|
+
}],
|
|
1332
|
+
/**
|
|
1333
|
+
* List Style Position
|
|
1334
|
+
* @see https://tailwindcss.com/docs/list-style-position
|
|
1335
|
+
*/
|
|
1336
|
+
'list-style-position': [{
|
|
1337
|
+
list: ['inside', 'outside']
|
|
1338
|
+
}],
|
|
1339
|
+
/**
|
|
1340
|
+
* Placeholder Color
|
|
1341
|
+
* @deprecated since Tailwind CSS v3.0.0
|
|
1342
|
+
* @see https://tailwindcss.com/docs/placeholder-color
|
|
1343
|
+
*/
|
|
1344
|
+
'placeholder-color': [{
|
|
1345
|
+
placeholder: [colors]
|
|
1346
|
+
}],
|
|
1347
|
+
/**
|
|
1348
|
+
* Placeholder Opacity
|
|
1349
|
+
* @see https://tailwindcss.com/docs/placeholder-opacity
|
|
1350
|
+
*/
|
|
1351
|
+
'placeholder-opacity': [{
|
|
1352
|
+
'placeholder-opacity': [opacity]
|
|
1353
|
+
}],
|
|
1354
|
+
/**
|
|
1355
|
+
* Text Alignment
|
|
1356
|
+
* @see https://tailwindcss.com/docs/text-align
|
|
1357
|
+
*/
|
|
1358
|
+
'text-alignment': [{
|
|
1359
|
+
text: ['left', 'center', 'right', 'justify', 'start', 'end']
|
|
1360
|
+
}],
|
|
1361
|
+
/**
|
|
1362
|
+
* Text Color
|
|
1363
|
+
* @see https://tailwindcss.com/docs/text-color
|
|
1364
|
+
*/
|
|
1365
|
+
'text-color': [{
|
|
1366
|
+
text: [colors]
|
|
1367
|
+
}],
|
|
1368
|
+
/**
|
|
1369
|
+
* Text Opacity
|
|
1370
|
+
* @see https://tailwindcss.com/docs/text-opacity
|
|
1371
|
+
*/
|
|
1372
|
+
'text-opacity': [{
|
|
1373
|
+
'text-opacity': [opacity]
|
|
1374
|
+
}],
|
|
1375
|
+
/**
|
|
1376
|
+
* Text Decoration
|
|
1377
|
+
* @see https://tailwindcss.com/docs/text-decoration
|
|
1378
|
+
*/
|
|
1379
|
+
'text-decoration': ['underline', 'overline', 'line-through', 'no-underline'],
|
|
1380
|
+
/**
|
|
1381
|
+
* Text Decoration Style
|
|
1382
|
+
* @see https://tailwindcss.com/docs/text-decoration-style
|
|
1383
|
+
*/
|
|
1384
|
+
'text-decoration-style': [{
|
|
1385
|
+
decoration: [].concat(_toConsumableArray(getLineStyles()), ['wavy'])
|
|
1386
|
+
}],
|
|
1387
|
+
/**
|
|
1388
|
+
* Text Decoration Thickness
|
|
1389
|
+
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
|
1390
|
+
*/
|
|
1391
|
+
'text-decoration-thickness': [{
|
|
1392
|
+
decoration: ['auto', 'from-font', isLength, isArbitraryLength]
|
|
1393
|
+
}],
|
|
1394
|
+
/**
|
|
1395
|
+
* Text Underline Offset
|
|
1396
|
+
* @see https://tailwindcss.com/docs/text-underline-offset
|
|
1397
|
+
*/
|
|
1398
|
+
'underline-offset': [{
|
|
1399
|
+
'underline-offset': ['auto', isLength, isArbitraryValue]
|
|
1400
|
+
}],
|
|
1401
|
+
/**
|
|
1402
|
+
* Text Decoration Color
|
|
1403
|
+
* @see https://tailwindcss.com/docs/text-decoration-color
|
|
1404
|
+
*/
|
|
1405
|
+
'text-decoration-color': [{
|
|
1406
|
+
decoration: [colors]
|
|
1407
|
+
}],
|
|
1408
|
+
/**
|
|
1409
|
+
* Text Transform
|
|
1410
|
+
* @see https://tailwindcss.com/docs/text-transform
|
|
1411
|
+
*/
|
|
1412
|
+
'text-transform': ['uppercase', 'lowercase', 'capitalize', 'normal-case'],
|
|
1413
|
+
/**
|
|
1414
|
+
* Text Overflow
|
|
1415
|
+
* @see https://tailwindcss.com/docs/text-overflow
|
|
1416
|
+
*/
|
|
1417
|
+
'text-overflow': ['truncate', 'text-ellipsis', 'text-clip'],
|
|
1418
|
+
/**
|
|
1419
|
+
* Text Wrap
|
|
1420
|
+
* @see https://tailwindcss.com/docs/text-wrap
|
|
1421
|
+
*/
|
|
1422
|
+
'text-wrap': [{
|
|
1423
|
+
text: ['wrap', 'nowrap', 'balance', 'pretty']
|
|
1424
|
+
}],
|
|
1425
|
+
/**
|
|
1426
|
+
* Text Indent
|
|
1427
|
+
* @see https://tailwindcss.com/docs/text-indent
|
|
1428
|
+
*/
|
|
1429
|
+
indent: [{
|
|
1430
|
+
indent: getSpacingWithArbitrary()
|
|
1431
|
+
}],
|
|
1432
|
+
/**
|
|
1433
|
+
* Vertical Alignment
|
|
1434
|
+
* @see https://tailwindcss.com/docs/vertical-align
|
|
1435
|
+
*/
|
|
1436
|
+
'vertical-align': [{
|
|
1437
|
+
align: ['baseline', 'top', 'middle', 'bottom', 'text-top', 'text-bottom', 'sub', 'super', isArbitraryValue]
|
|
1438
|
+
}],
|
|
1439
|
+
/**
|
|
1440
|
+
* Whitespace
|
|
1441
|
+
* @see https://tailwindcss.com/docs/whitespace
|
|
1442
|
+
*/
|
|
1443
|
+
whitespace: [{
|
|
1444
|
+
whitespace: ['normal', 'nowrap', 'pre', 'pre-line', 'pre-wrap', 'break-spaces']
|
|
1445
|
+
}],
|
|
1446
|
+
/**
|
|
1447
|
+
* Word Break
|
|
1448
|
+
* @see https://tailwindcss.com/docs/word-break
|
|
1449
|
+
*/
|
|
1450
|
+
break: [{
|
|
1451
|
+
break: ['normal', 'words', 'all', 'keep']
|
|
1452
|
+
}],
|
|
1453
|
+
/**
|
|
1454
|
+
* Hyphens
|
|
1455
|
+
* @see https://tailwindcss.com/docs/hyphens
|
|
1456
|
+
*/
|
|
1457
|
+
hyphens: [{
|
|
1458
|
+
hyphens: ['none', 'manual', 'auto']
|
|
1459
|
+
}],
|
|
1460
|
+
/**
|
|
1461
|
+
* Content
|
|
1462
|
+
* @see https://tailwindcss.com/docs/content
|
|
1463
|
+
*/
|
|
1464
|
+
content: [{
|
|
1465
|
+
content: ['none', isArbitraryValue]
|
|
1466
|
+
}],
|
|
1467
|
+
// Backgrounds
|
|
1468
|
+
/**
|
|
1469
|
+
* Background Attachment
|
|
1470
|
+
* @see https://tailwindcss.com/docs/background-attachment
|
|
1471
|
+
*/
|
|
1472
|
+
'bg-attachment': [{
|
|
1473
|
+
bg: ['fixed', 'local', 'scroll']
|
|
1474
|
+
}],
|
|
1475
|
+
/**
|
|
1476
|
+
* Background Clip
|
|
1477
|
+
* @see https://tailwindcss.com/docs/background-clip
|
|
1478
|
+
*/
|
|
1479
|
+
'bg-clip': [{
|
|
1480
|
+
'bg-clip': ['border', 'padding', 'content', 'text']
|
|
1481
|
+
}],
|
|
1482
|
+
/**
|
|
1483
|
+
* Background Opacity
|
|
1484
|
+
* @deprecated since Tailwind CSS v3.0.0
|
|
1485
|
+
* @see https://tailwindcss.com/docs/background-opacity
|
|
1486
|
+
*/
|
|
1487
|
+
'bg-opacity': [{
|
|
1488
|
+
'bg-opacity': [opacity]
|
|
1489
|
+
}],
|
|
1490
|
+
/**
|
|
1491
|
+
* Background Origin
|
|
1492
|
+
* @see https://tailwindcss.com/docs/background-origin
|
|
1493
|
+
*/
|
|
1494
|
+
'bg-origin': [{
|
|
1495
|
+
'bg-origin': ['border', 'padding', 'content']
|
|
1496
|
+
}],
|
|
1497
|
+
/**
|
|
1498
|
+
* Background Position
|
|
1499
|
+
* @see https://tailwindcss.com/docs/background-position
|
|
1500
|
+
*/
|
|
1501
|
+
'bg-position': [{
|
|
1502
|
+
bg: [].concat(_toConsumableArray(getPositions()), [isArbitraryPosition])
|
|
1503
|
+
}],
|
|
1504
|
+
/**
|
|
1505
|
+
* Background Repeat
|
|
1506
|
+
* @see https://tailwindcss.com/docs/background-repeat
|
|
1507
|
+
*/
|
|
1508
|
+
'bg-repeat': [{
|
|
1509
|
+
bg: ['no-repeat', {
|
|
1510
|
+
repeat: ['', 'x', 'y', 'round', 'space']
|
|
1511
|
+
}]
|
|
1512
|
+
}],
|
|
1513
|
+
/**
|
|
1514
|
+
* Background Size
|
|
1515
|
+
* @see https://tailwindcss.com/docs/background-size
|
|
1516
|
+
*/
|
|
1517
|
+
'bg-size': [{
|
|
1518
|
+
bg: ['auto', 'cover', 'contain', isArbitrarySize]
|
|
1519
|
+
}],
|
|
1520
|
+
/**
|
|
1521
|
+
* Background Image
|
|
1522
|
+
* @see https://tailwindcss.com/docs/background-image
|
|
1523
|
+
*/
|
|
1524
|
+
'bg-image': [{
|
|
1525
|
+
bg: ['none', {
|
|
1526
|
+
'gradient-to': ['t', 'tr', 'r', 'br', 'b', 'bl', 'l', 'tl']
|
|
1527
|
+
}, isArbitraryImage]
|
|
1528
|
+
}],
|
|
1529
|
+
/**
|
|
1530
|
+
* Background Color
|
|
1531
|
+
* @see https://tailwindcss.com/docs/background-color
|
|
1532
|
+
*/
|
|
1533
|
+
'bg-color': [{
|
|
1534
|
+
bg: [colors]
|
|
1535
|
+
}],
|
|
1536
|
+
/**
|
|
1537
|
+
* Gradient Color Stops From Position
|
|
1538
|
+
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1539
|
+
*/
|
|
1540
|
+
'gradient-from-pos': [{
|
|
1541
|
+
from: [gradientColorStopPositions]
|
|
1542
|
+
}],
|
|
1543
|
+
/**
|
|
1544
|
+
* Gradient Color Stops Via Position
|
|
1545
|
+
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1546
|
+
*/
|
|
1547
|
+
'gradient-via-pos': [{
|
|
1548
|
+
via: [gradientColorStopPositions]
|
|
1549
|
+
}],
|
|
1550
|
+
/**
|
|
1551
|
+
* Gradient Color Stops To Position
|
|
1552
|
+
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1553
|
+
*/
|
|
1554
|
+
'gradient-to-pos': [{
|
|
1555
|
+
to: [gradientColorStopPositions]
|
|
1556
|
+
}],
|
|
1557
|
+
/**
|
|
1558
|
+
* Gradient Color Stops From
|
|
1559
|
+
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1560
|
+
*/
|
|
1561
|
+
'gradient-from': [{
|
|
1562
|
+
from: [gradientColorStops]
|
|
1563
|
+
}],
|
|
1564
|
+
/**
|
|
1565
|
+
* Gradient Color Stops Via
|
|
1566
|
+
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1567
|
+
*/
|
|
1568
|
+
'gradient-via': [{
|
|
1569
|
+
via: [gradientColorStops]
|
|
1570
|
+
}],
|
|
1571
|
+
/**
|
|
1572
|
+
* Gradient Color Stops To
|
|
1573
|
+
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1574
|
+
*/
|
|
1575
|
+
'gradient-to': [{
|
|
1576
|
+
to: [gradientColorStops]
|
|
1577
|
+
}],
|
|
1578
|
+
// Borders
|
|
1579
|
+
/**
|
|
1580
|
+
* Border Radius
|
|
1581
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
1582
|
+
*/
|
|
1583
|
+
rounded: [{
|
|
1584
|
+
rounded: [borderRadius]
|
|
1585
|
+
}],
|
|
1586
|
+
/**
|
|
1587
|
+
* Border Radius Start
|
|
1588
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
1589
|
+
*/
|
|
1590
|
+
'rounded-s': [{
|
|
1591
|
+
'rounded-s': [borderRadius]
|
|
1592
|
+
}],
|
|
1593
|
+
/**
|
|
1594
|
+
* Border Radius End
|
|
1595
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
1596
|
+
*/
|
|
1597
|
+
'rounded-e': [{
|
|
1598
|
+
'rounded-e': [borderRadius]
|
|
1599
|
+
}],
|
|
1600
|
+
/**
|
|
1601
|
+
* Border Radius Top
|
|
1602
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
1603
|
+
*/
|
|
1604
|
+
'rounded-t': [{
|
|
1605
|
+
'rounded-t': [borderRadius]
|
|
1606
|
+
}],
|
|
1607
|
+
/**
|
|
1608
|
+
* Border Radius Right
|
|
1609
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
1610
|
+
*/
|
|
1611
|
+
'rounded-r': [{
|
|
1612
|
+
'rounded-r': [borderRadius]
|
|
1613
|
+
}],
|
|
1614
|
+
/**
|
|
1615
|
+
* Border Radius Bottom
|
|
1616
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
1617
|
+
*/
|
|
1618
|
+
'rounded-b': [{
|
|
1619
|
+
'rounded-b': [borderRadius]
|
|
1620
|
+
}],
|
|
1621
|
+
/**
|
|
1622
|
+
* Border Radius Left
|
|
1623
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
1624
|
+
*/
|
|
1625
|
+
'rounded-l': [{
|
|
1626
|
+
'rounded-l': [borderRadius]
|
|
1627
|
+
}],
|
|
1628
|
+
/**
|
|
1629
|
+
* Border Radius Start Start
|
|
1630
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
1631
|
+
*/
|
|
1632
|
+
'rounded-ss': [{
|
|
1633
|
+
'rounded-ss': [borderRadius]
|
|
1634
|
+
}],
|
|
1635
|
+
/**
|
|
1636
|
+
* Border Radius Start End
|
|
1637
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
1638
|
+
*/
|
|
1639
|
+
'rounded-se': [{
|
|
1640
|
+
'rounded-se': [borderRadius]
|
|
1641
|
+
}],
|
|
1642
|
+
/**
|
|
1643
|
+
* Border Radius End End
|
|
1644
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
1645
|
+
*/
|
|
1646
|
+
'rounded-ee': [{
|
|
1647
|
+
'rounded-ee': [borderRadius]
|
|
1648
|
+
}],
|
|
1649
|
+
/**
|
|
1650
|
+
* Border Radius End Start
|
|
1651
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
1652
|
+
*/
|
|
1653
|
+
'rounded-es': [{
|
|
1654
|
+
'rounded-es': [borderRadius]
|
|
1655
|
+
}],
|
|
1656
|
+
/**
|
|
1657
|
+
* Border Radius Top Left
|
|
1658
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
1659
|
+
*/
|
|
1660
|
+
'rounded-tl': [{
|
|
1661
|
+
'rounded-tl': [borderRadius]
|
|
1662
|
+
}],
|
|
1663
|
+
/**
|
|
1664
|
+
* Border Radius Top Right
|
|
1665
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
1666
|
+
*/
|
|
1667
|
+
'rounded-tr': [{
|
|
1668
|
+
'rounded-tr': [borderRadius]
|
|
1669
|
+
}],
|
|
1670
|
+
/**
|
|
1671
|
+
* Border Radius Bottom Right
|
|
1672
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
1673
|
+
*/
|
|
1674
|
+
'rounded-br': [{
|
|
1675
|
+
'rounded-br': [borderRadius]
|
|
1676
|
+
}],
|
|
1677
|
+
/**
|
|
1678
|
+
* Border Radius Bottom Left
|
|
1679
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
1680
|
+
*/
|
|
1681
|
+
'rounded-bl': [{
|
|
1682
|
+
'rounded-bl': [borderRadius]
|
|
1683
|
+
}],
|
|
1684
|
+
/**
|
|
1685
|
+
* Border Width
|
|
1686
|
+
* @see https://tailwindcss.com/docs/border-width
|
|
1687
|
+
*/
|
|
1688
|
+
'border-w': [{
|
|
1689
|
+
border: [borderWidth]
|
|
1690
|
+
}],
|
|
1691
|
+
/**
|
|
1692
|
+
* Border Width X
|
|
1693
|
+
* @see https://tailwindcss.com/docs/border-width
|
|
1694
|
+
*/
|
|
1695
|
+
'border-w-x': [{
|
|
1696
|
+
'border-x': [borderWidth]
|
|
1697
|
+
}],
|
|
1698
|
+
/**
|
|
1699
|
+
* Border Width Y
|
|
1700
|
+
* @see https://tailwindcss.com/docs/border-width
|
|
1701
|
+
*/
|
|
1702
|
+
'border-w-y': [{
|
|
1703
|
+
'border-y': [borderWidth]
|
|
1704
|
+
}],
|
|
1705
|
+
/**
|
|
1706
|
+
* Border Width Start
|
|
1707
|
+
* @see https://tailwindcss.com/docs/border-width
|
|
1708
|
+
*/
|
|
1709
|
+
'border-w-s': [{
|
|
1710
|
+
'border-s': [borderWidth]
|
|
1711
|
+
}],
|
|
1712
|
+
/**
|
|
1713
|
+
* Border Width End
|
|
1714
|
+
* @see https://tailwindcss.com/docs/border-width
|
|
1715
|
+
*/
|
|
1716
|
+
'border-w-e': [{
|
|
1717
|
+
'border-e': [borderWidth]
|
|
1718
|
+
}],
|
|
1719
|
+
/**
|
|
1720
|
+
* Border Width Top
|
|
1721
|
+
* @see https://tailwindcss.com/docs/border-width
|
|
1722
|
+
*/
|
|
1723
|
+
'border-w-t': [{
|
|
1724
|
+
'border-t': [borderWidth]
|
|
1725
|
+
}],
|
|
1726
|
+
/**
|
|
1727
|
+
* Border Width Right
|
|
1728
|
+
* @see https://tailwindcss.com/docs/border-width
|
|
1729
|
+
*/
|
|
1730
|
+
'border-w-r': [{
|
|
1731
|
+
'border-r': [borderWidth]
|
|
1732
|
+
}],
|
|
1733
|
+
/**
|
|
1734
|
+
* Border Width Bottom
|
|
1735
|
+
* @see https://tailwindcss.com/docs/border-width
|
|
1736
|
+
*/
|
|
1737
|
+
'border-w-b': [{
|
|
1738
|
+
'border-b': [borderWidth]
|
|
1739
|
+
}],
|
|
1740
|
+
/**
|
|
1741
|
+
* Border Width Left
|
|
1742
|
+
* @see https://tailwindcss.com/docs/border-width
|
|
1743
|
+
*/
|
|
1744
|
+
'border-w-l': [{
|
|
1745
|
+
'border-l': [borderWidth]
|
|
1746
|
+
}],
|
|
1747
|
+
/**
|
|
1748
|
+
* Border Opacity
|
|
1749
|
+
* @see https://tailwindcss.com/docs/border-opacity
|
|
1750
|
+
*/
|
|
1751
|
+
'border-opacity': [{
|
|
1752
|
+
'border-opacity': [opacity]
|
|
1753
|
+
}],
|
|
1754
|
+
/**
|
|
1755
|
+
* Border Style
|
|
1756
|
+
* @see https://tailwindcss.com/docs/border-style
|
|
1757
|
+
*/
|
|
1758
|
+
'border-style': [{
|
|
1759
|
+
border: [].concat(_toConsumableArray(getLineStyles()), ['hidden'])
|
|
1760
|
+
}],
|
|
1761
|
+
/**
|
|
1762
|
+
* Divide Width X
|
|
1763
|
+
* @see https://tailwindcss.com/docs/divide-width
|
|
1764
|
+
*/
|
|
1765
|
+
'divide-x': [{
|
|
1766
|
+
'divide-x': [borderWidth]
|
|
1767
|
+
}],
|
|
1768
|
+
/**
|
|
1769
|
+
* Divide Width X Reverse
|
|
1770
|
+
* @see https://tailwindcss.com/docs/divide-width
|
|
1771
|
+
*/
|
|
1772
|
+
'divide-x-reverse': ['divide-x-reverse'],
|
|
1773
|
+
/**
|
|
1774
|
+
* Divide Width Y
|
|
1775
|
+
* @see https://tailwindcss.com/docs/divide-width
|
|
1776
|
+
*/
|
|
1777
|
+
'divide-y': [{
|
|
1778
|
+
'divide-y': [borderWidth]
|
|
1779
|
+
}],
|
|
1780
|
+
/**
|
|
1781
|
+
* Divide Width Y Reverse
|
|
1782
|
+
* @see https://tailwindcss.com/docs/divide-width
|
|
1783
|
+
*/
|
|
1784
|
+
'divide-y-reverse': ['divide-y-reverse'],
|
|
1785
|
+
/**
|
|
1786
|
+
* Divide Opacity
|
|
1787
|
+
* @see https://tailwindcss.com/docs/divide-opacity
|
|
1788
|
+
*/
|
|
1789
|
+
'divide-opacity': [{
|
|
1790
|
+
'divide-opacity': [opacity]
|
|
1791
|
+
}],
|
|
1792
|
+
/**
|
|
1793
|
+
* Divide Style
|
|
1794
|
+
* @see https://tailwindcss.com/docs/divide-style
|
|
1795
|
+
*/
|
|
1796
|
+
'divide-style': [{
|
|
1797
|
+
divide: getLineStyles()
|
|
1798
|
+
}],
|
|
1799
|
+
/**
|
|
1800
|
+
* Border Color
|
|
1801
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
1802
|
+
*/
|
|
1803
|
+
'border-color': [{
|
|
1804
|
+
border: [borderColor]
|
|
1805
|
+
}],
|
|
1806
|
+
/**
|
|
1807
|
+
* Border Color X
|
|
1808
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
1809
|
+
*/
|
|
1810
|
+
'border-color-x': [{
|
|
1811
|
+
'border-x': [borderColor]
|
|
1812
|
+
}],
|
|
1813
|
+
/**
|
|
1814
|
+
* Border Color Y
|
|
1815
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
1816
|
+
*/
|
|
1817
|
+
'border-color-y': [{
|
|
1818
|
+
'border-y': [borderColor]
|
|
1819
|
+
}],
|
|
1820
|
+
/**
|
|
1821
|
+
* Border Color S
|
|
1822
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
1823
|
+
*/
|
|
1824
|
+
'border-color-s': [{
|
|
1825
|
+
'border-s': [borderColor]
|
|
1826
|
+
}],
|
|
1827
|
+
/**
|
|
1828
|
+
* Border Color E
|
|
1829
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
1830
|
+
*/
|
|
1831
|
+
'border-color-e': [{
|
|
1832
|
+
'border-e': [borderColor]
|
|
1833
|
+
}],
|
|
1834
|
+
/**
|
|
1835
|
+
* Border Color Top
|
|
1836
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
1837
|
+
*/
|
|
1838
|
+
'border-color-t': [{
|
|
1839
|
+
'border-t': [borderColor]
|
|
1840
|
+
}],
|
|
1841
|
+
/**
|
|
1842
|
+
* Border Color Right
|
|
1843
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
1844
|
+
*/
|
|
1845
|
+
'border-color-r': [{
|
|
1846
|
+
'border-r': [borderColor]
|
|
1847
|
+
}],
|
|
1848
|
+
/**
|
|
1849
|
+
* Border Color Bottom
|
|
1850
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
1851
|
+
*/
|
|
1852
|
+
'border-color-b': [{
|
|
1853
|
+
'border-b': [borderColor]
|
|
1854
|
+
}],
|
|
1855
|
+
/**
|
|
1856
|
+
* Border Color Left
|
|
1857
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
1858
|
+
*/
|
|
1859
|
+
'border-color-l': [{
|
|
1860
|
+
'border-l': [borderColor]
|
|
1861
|
+
}],
|
|
1862
|
+
/**
|
|
1863
|
+
* Divide Color
|
|
1864
|
+
* @see https://tailwindcss.com/docs/divide-color
|
|
1865
|
+
*/
|
|
1866
|
+
'divide-color': [{
|
|
1867
|
+
divide: [borderColor]
|
|
1868
|
+
}],
|
|
1869
|
+
/**
|
|
1870
|
+
* Outline Style
|
|
1871
|
+
* @see https://tailwindcss.com/docs/outline-style
|
|
1872
|
+
*/
|
|
1873
|
+
'outline-style': [{
|
|
1874
|
+
outline: [''].concat(_toConsumableArray(getLineStyles()))
|
|
1875
|
+
}],
|
|
1876
|
+
/**
|
|
1877
|
+
* Outline Offset
|
|
1878
|
+
* @see https://tailwindcss.com/docs/outline-offset
|
|
1879
|
+
*/
|
|
1880
|
+
'outline-offset': [{
|
|
1881
|
+
'outline-offset': [isLength, isArbitraryValue]
|
|
1882
|
+
}],
|
|
1883
|
+
/**
|
|
1884
|
+
* Outline Width
|
|
1885
|
+
* @see https://tailwindcss.com/docs/outline-width
|
|
1886
|
+
*/
|
|
1887
|
+
'outline-w': [{
|
|
1888
|
+
outline: [isLength, isArbitraryLength]
|
|
1889
|
+
}],
|
|
1890
|
+
/**
|
|
1891
|
+
* Outline Color
|
|
1892
|
+
* @see https://tailwindcss.com/docs/outline-color
|
|
1893
|
+
*/
|
|
1894
|
+
'outline-color': [{
|
|
1895
|
+
outline: [colors]
|
|
1896
|
+
}],
|
|
1897
|
+
/**
|
|
1898
|
+
* Ring Width
|
|
1899
|
+
* @see https://tailwindcss.com/docs/ring-width
|
|
1900
|
+
*/
|
|
1901
|
+
'ring-w': [{
|
|
1902
|
+
ring: getLengthWithEmptyAndArbitrary()
|
|
1903
|
+
}],
|
|
1904
|
+
/**
|
|
1905
|
+
* Ring Width Inset
|
|
1906
|
+
* @see https://tailwindcss.com/docs/ring-width
|
|
1907
|
+
*/
|
|
1908
|
+
'ring-w-inset': ['ring-inset'],
|
|
1909
|
+
/**
|
|
1910
|
+
* Ring Color
|
|
1911
|
+
* @see https://tailwindcss.com/docs/ring-color
|
|
1912
|
+
*/
|
|
1913
|
+
'ring-color': [{
|
|
1914
|
+
ring: [colors]
|
|
1915
|
+
}],
|
|
1916
|
+
/**
|
|
1917
|
+
* Ring Opacity
|
|
1918
|
+
* @see https://tailwindcss.com/docs/ring-opacity
|
|
1919
|
+
*/
|
|
1920
|
+
'ring-opacity': [{
|
|
1921
|
+
'ring-opacity': [opacity]
|
|
1922
|
+
}],
|
|
1923
|
+
/**
|
|
1924
|
+
* Ring Offset Width
|
|
1925
|
+
* @see https://tailwindcss.com/docs/ring-offset-width
|
|
1926
|
+
*/
|
|
1927
|
+
'ring-offset-w': [{
|
|
1928
|
+
'ring-offset': [isLength, isArbitraryLength]
|
|
1929
|
+
}],
|
|
1930
|
+
/**
|
|
1931
|
+
* Ring Offset Color
|
|
1932
|
+
* @see https://tailwindcss.com/docs/ring-offset-color
|
|
1933
|
+
*/
|
|
1934
|
+
'ring-offset-color': [{
|
|
1935
|
+
'ring-offset': [colors]
|
|
1936
|
+
}],
|
|
1937
|
+
// Effects
|
|
1938
|
+
/**
|
|
1939
|
+
* Box Shadow
|
|
1940
|
+
* @see https://tailwindcss.com/docs/box-shadow
|
|
1941
|
+
*/
|
|
1942
|
+
shadow: [{
|
|
1943
|
+
shadow: ['', 'inner', 'none', isTshirtSize, isArbitraryShadow]
|
|
1944
|
+
}],
|
|
1945
|
+
/**
|
|
1946
|
+
* Box Shadow Color
|
|
1947
|
+
* @see https://tailwindcss.com/docs/box-shadow-color
|
|
1948
|
+
*/
|
|
1949
|
+
'shadow-color': [{
|
|
1950
|
+
shadow: [isAny]
|
|
1951
|
+
}],
|
|
1952
|
+
/**
|
|
1953
|
+
* Opacity
|
|
1954
|
+
* @see https://tailwindcss.com/docs/opacity
|
|
1955
|
+
*/
|
|
1956
|
+
opacity: [{
|
|
1957
|
+
opacity: [opacity]
|
|
1958
|
+
}],
|
|
1959
|
+
/**
|
|
1960
|
+
* Mix Blend Mode
|
|
1961
|
+
* @see https://tailwindcss.com/docs/mix-blend-mode
|
|
1962
|
+
*/
|
|
1963
|
+
'mix-blend': [{
|
|
1964
|
+
'mix-blend': [].concat(_toConsumableArray(getBlendModes()), ['plus-lighter', 'plus-darker'])
|
|
1965
|
+
}],
|
|
1966
|
+
/**
|
|
1967
|
+
* Background Blend Mode
|
|
1968
|
+
* @see https://tailwindcss.com/docs/background-blend-mode
|
|
1969
|
+
*/
|
|
1970
|
+
'bg-blend': [{
|
|
1971
|
+
'bg-blend': getBlendModes()
|
|
1972
|
+
}],
|
|
1973
|
+
// Filters
|
|
1974
|
+
/**
|
|
1975
|
+
* Filter
|
|
1976
|
+
* @deprecated since Tailwind CSS v3.0.0
|
|
1977
|
+
* @see https://tailwindcss.com/docs/filter
|
|
1978
|
+
*/
|
|
1979
|
+
filter: [{
|
|
1980
|
+
filter: ['', 'none']
|
|
1981
|
+
}],
|
|
1982
|
+
/**
|
|
1983
|
+
* Blur
|
|
1984
|
+
* @see https://tailwindcss.com/docs/blur
|
|
1985
|
+
*/
|
|
1986
|
+
blur: [{
|
|
1987
|
+
blur: [blur]
|
|
1988
|
+
}],
|
|
1989
|
+
/**
|
|
1990
|
+
* Brightness
|
|
1991
|
+
* @see https://tailwindcss.com/docs/brightness
|
|
1992
|
+
*/
|
|
1993
|
+
brightness: [{
|
|
1994
|
+
brightness: [brightness]
|
|
1995
|
+
}],
|
|
1996
|
+
/**
|
|
1997
|
+
* Contrast
|
|
1998
|
+
* @see https://tailwindcss.com/docs/contrast
|
|
1999
|
+
*/
|
|
2000
|
+
contrast: [{
|
|
2001
|
+
contrast: [contrast]
|
|
2002
|
+
}],
|
|
2003
|
+
/**
|
|
2004
|
+
* Drop Shadow
|
|
2005
|
+
* @see https://tailwindcss.com/docs/drop-shadow
|
|
2006
|
+
*/
|
|
2007
|
+
'drop-shadow': [{
|
|
2008
|
+
'drop-shadow': ['', 'none', isTshirtSize, isArbitraryValue]
|
|
2009
|
+
}],
|
|
2010
|
+
/**
|
|
2011
|
+
* Grayscale
|
|
2012
|
+
* @see https://tailwindcss.com/docs/grayscale
|
|
2013
|
+
*/
|
|
2014
|
+
grayscale: [{
|
|
2015
|
+
grayscale: [grayscale]
|
|
2016
|
+
}],
|
|
2017
|
+
/**
|
|
2018
|
+
* Hue Rotate
|
|
2019
|
+
* @see https://tailwindcss.com/docs/hue-rotate
|
|
2020
|
+
*/
|
|
2021
|
+
'hue-rotate': [{
|
|
2022
|
+
'hue-rotate': [hueRotate]
|
|
2023
|
+
}],
|
|
2024
|
+
/**
|
|
2025
|
+
* Invert
|
|
2026
|
+
* @see https://tailwindcss.com/docs/invert
|
|
2027
|
+
*/
|
|
2028
|
+
invert: [{
|
|
2029
|
+
invert: [invert]
|
|
2030
|
+
}],
|
|
2031
|
+
/**
|
|
2032
|
+
* Saturate
|
|
2033
|
+
* @see https://tailwindcss.com/docs/saturate
|
|
2034
|
+
*/
|
|
2035
|
+
saturate: [{
|
|
2036
|
+
saturate: [saturate]
|
|
2037
|
+
}],
|
|
2038
|
+
/**
|
|
2039
|
+
* Sepia
|
|
2040
|
+
* @see https://tailwindcss.com/docs/sepia
|
|
2041
|
+
*/
|
|
2042
|
+
sepia: [{
|
|
2043
|
+
sepia: [sepia]
|
|
2044
|
+
}],
|
|
2045
|
+
/**
|
|
2046
|
+
* Backdrop Filter
|
|
2047
|
+
* @deprecated since Tailwind CSS v3.0.0
|
|
2048
|
+
* @see https://tailwindcss.com/docs/backdrop-filter
|
|
2049
|
+
*/
|
|
2050
|
+
'backdrop-filter': [{
|
|
2051
|
+
'backdrop-filter': ['', 'none']
|
|
2052
|
+
}],
|
|
2053
|
+
/**
|
|
2054
|
+
* Backdrop Blur
|
|
2055
|
+
* @see https://tailwindcss.com/docs/backdrop-blur
|
|
2056
|
+
*/
|
|
2057
|
+
'backdrop-blur': [{
|
|
2058
|
+
'backdrop-blur': [blur]
|
|
2059
|
+
}],
|
|
2060
|
+
/**
|
|
2061
|
+
* Backdrop Brightness
|
|
2062
|
+
* @see https://tailwindcss.com/docs/backdrop-brightness
|
|
2063
|
+
*/
|
|
2064
|
+
'backdrop-brightness': [{
|
|
2065
|
+
'backdrop-brightness': [brightness]
|
|
2066
|
+
}],
|
|
2067
|
+
/**
|
|
2068
|
+
* Backdrop Contrast
|
|
2069
|
+
* @see https://tailwindcss.com/docs/backdrop-contrast
|
|
2070
|
+
*/
|
|
2071
|
+
'backdrop-contrast': [{
|
|
2072
|
+
'backdrop-contrast': [contrast]
|
|
2073
|
+
}],
|
|
2074
|
+
/**
|
|
2075
|
+
* Backdrop Grayscale
|
|
2076
|
+
* @see https://tailwindcss.com/docs/backdrop-grayscale
|
|
2077
|
+
*/
|
|
2078
|
+
'backdrop-grayscale': [{
|
|
2079
|
+
'backdrop-grayscale': [grayscale]
|
|
2080
|
+
}],
|
|
2081
|
+
/**
|
|
2082
|
+
* Backdrop Hue Rotate
|
|
2083
|
+
* @see https://tailwindcss.com/docs/backdrop-hue-rotate
|
|
2084
|
+
*/
|
|
2085
|
+
'backdrop-hue-rotate': [{
|
|
2086
|
+
'backdrop-hue-rotate': [hueRotate]
|
|
2087
|
+
}],
|
|
2088
|
+
/**
|
|
2089
|
+
* Backdrop Invert
|
|
2090
|
+
* @see https://tailwindcss.com/docs/backdrop-invert
|
|
2091
|
+
*/
|
|
2092
|
+
'backdrop-invert': [{
|
|
2093
|
+
'backdrop-invert': [invert]
|
|
2094
|
+
}],
|
|
2095
|
+
/**
|
|
2096
|
+
* Backdrop Opacity
|
|
2097
|
+
* @see https://tailwindcss.com/docs/backdrop-opacity
|
|
2098
|
+
*/
|
|
2099
|
+
'backdrop-opacity': [{
|
|
2100
|
+
'backdrop-opacity': [opacity]
|
|
2101
|
+
}],
|
|
2102
|
+
/**
|
|
2103
|
+
* Backdrop Saturate
|
|
2104
|
+
* @see https://tailwindcss.com/docs/backdrop-saturate
|
|
2105
|
+
*/
|
|
2106
|
+
'backdrop-saturate': [{
|
|
2107
|
+
'backdrop-saturate': [saturate]
|
|
2108
|
+
}],
|
|
2109
|
+
/**
|
|
2110
|
+
* Backdrop Sepia
|
|
2111
|
+
* @see https://tailwindcss.com/docs/backdrop-sepia
|
|
2112
|
+
*/
|
|
2113
|
+
'backdrop-sepia': [{
|
|
2114
|
+
'backdrop-sepia': [sepia]
|
|
2115
|
+
}],
|
|
2116
|
+
// Tables
|
|
2117
|
+
/**
|
|
2118
|
+
* Border Collapse
|
|
2119
|
+
* @see https://tailwindcss.com/docs/border-collapse
|
|
2120
|
+
*/
|
|
2121
|
+
'border-collapse': [{
|
|
2122
|
+
border: ['collapse', 'separate']
|
|
2123
|
+
}],
|
|
2124
|
+
/**
|
|
2125
|
+
* Border Spacing
|
|
2126
|
+
* @see https://tailwindcss.com/docs/border-spacing
|
|
2127
|
+
*/
|
|
2128
|
+
'border-spacing': [{
|
|
2129
|
+
'border-spacing': [borderSpacing]
|
|
2130
|
+
}],
|
|
2131
|
+
/**
|
|
2132
|
+
* Border Spacing X
|
|
2133
|
+
* @see https://tailwindcss.com/docs/border-spacing
|
|
2134
|
+
*/
|
|
2135
|
+
'border-spacing-x': [{
|
|
2136
|
+
'border-spacing-x': [borderSpacing]
|
|
2137
|
+
}],
|
|
2138
|
+
/**
|
|
2139
|
+
* Border Spacing Y
|
|
2140
|
+
* @see https://tailwindcss.com/docs/border-spacing
|
|
2141
|
+
*/
|
|
2142
|
+
'border-spacing-y': [{
|
|
2143
|
+
'border-spacing-y': [borderSpacing]
|
|
2144
|
+
}],
|
|
2145
|
+
/**
|
|
2146
|
+
* Table Layout
|
|
2147
|
+
* @see https://tailwindcss.com/docs/table-layout
|
|
2148
|
+
*/
|
|
2149
|
+
'table-layout': [{
|
|
2150
|
+
table: ['auto', 'fixed']
|
|
2151
|
+
}],
|
|
2152
|
+
/**
|
|
2153
|
+
* Caption Side
|
|
2154
|
+
* @see https://tailwindcss.com/docs/caption-side
|
|
2155
|
+
*/
|
|
2156
|
+
caption: [{
|
|
2157
|
+
caption: ['top', 'bottom']
|
|
2158
|
+
}],
|
|
2159
|
+
// Transitions and Animation
|
|
2160
|
+
/**
|
|
2161
|
+
* Tranisition Property
|
|
2162
|
+
* @see https://tailwindcss.com/docs/transition-property
|
|
2163
|
+
*/
|
|
2164
|
+
transition: [{
|
|
2165
|
+
transition: ['none', 'all', '', 'colors', 'opacity', 'shadow', 'transform', isArbitraryValue]
|
|
2166
|
+
}],
|
|
2167
|
+
/**
|
|
2168
|
+
* Transition Duration
|
|
2169
|
+
* @see https://tailwindcss.com/docs/transition-duration
|
|
2170
|
+
*/
|
|
2171
|
+
duration: [{
|
|
2172
|
+
duration: getNumberAndArbitrary()
|
|
2173
|
+
}],
|
|
2174
|
+
/**
|
|
2175
|
+
* Transition Timing Function
|
|
2176
|
+
* @see https://tailwindcss.com/docs/transition-timing-function
|
|
2177
|
+
*/
|
|
2178
|
+
ease: [{
|
|
2179
|
+
ease: ['linear', 'in', 'out', 'in-out', isArbitraryValue]
|
|
2180
|
+
}],
|
|
2181
|
+
/**
|
|
2182
|
+
* Transition Delay
|
|
2183
|
+
* @see https://tailwindcss.com/docs/transition-delay
|
|
2184
|
+
*/
|
|
2185
|
+
delay: [{
|
|
2186
|
+
delay: getNumberAndArbitrary()
|
|
2187
|
+
}],
|
|
2188
|
+
/**
|
|
2189
|
+
* Animation
|
|
2190
|
+
* @see https://tailwindcss.com/docs/animation
|
|
2191
|
+
*/
|
|
2192
|
+
animate: [{
|
|
2193
|
+
animate: ['none', 'spin', 'ping', 'pulse', 'bounce', isArbitraryValue]
|
|
2194
|
+
}],
|
|
2195
|
+
// Transforms
|
|
2196
|
+
/**
|
|
2197
|
+
* Transform
|
|
2198
|
+
* @see https://tailwindcss.com/docs/transform
|
|
2199
|
+
*/
|
|
2200
|
+
transform: [{
|
|
2201
|
+
transform: ['', 'gpu', 'none']
|
|
2202
|
+
}],
|
|
2203
|
+
/**
|
|
2204
|
+
* Scale
|
|
2205
|
+
* @see https://tailwindcss.com/docs/scale
|
|
2206
|
+
*/
|
|
2207
|
+
scale: [{
|
|
2208
|
+
scale: [scale]
|
|
2209
|
+
}],
|
|
2210
|
+
/**
|
|
2211
|
+
* Scale X
|
|
2212
|
+
* @see https://tailwindcss.com/docs/scale
|
|
2213
|
+
*/
|
|
2214
|
+
'scale-x': [{
|
|
2215
|
+
'scale-x': [scale]
|
|
2216
|
+
}],
|
|
2217
|
+
/**
|
|
2218
|
+
* Scale Y
|
|
2219
|
+
* @see https://tailwindcss.com/docs/scale
|
|
2220
|
+
*/
|
|
2221
|
+
'scale-y': [{
|
|
2222
|
+
'scale-y': [scale]
|
|
2223
|
+
}],
|
|
2224
|
+
/**
|
|
2225
|
+
* Rotate
|
|
2226
|
+
* @see https://tailwindcss.com/docs/rotate
|
|
2227
|
+
*/
|
|
2228
|
+
rotate: [{
|
|
2229
|
+
rotate: [isInteger, isArbitraryValue]
|
|
2230
|
+
}],
|
|
2231
|
+
/**
|
|
2232
|
+
* Translate X
|
|
2233
|
+
* @see https://tailwindcss.com/docs/translate
|
|
2234
|
+
*/
|
|
2235
|
+
'translate-x': [{
|
|
2236
|
+
'translate-x': [translate]
|
|
2237
|
+
}],
|
|
2238
|
+
/**
|
|
2239
|
+
* Translate Y
|
|
2240
|
+
* @see https://tailwindcss.com/docs/translate
|
|
2241
|
+
*/
|
|
2242
|
+
'translate-y': [{
|
|
2243
|
+
'translate-y': [translate]
|
|
2244
|
+
}],
|
|
2245
|
+
/**
|
|
2246
|
+
* Skew X
|
|
2247
|
+
* @see https://tailwindcss.com/docs/skew
|
|
2248
|
+
*/
|
|
2249
|
+
'skew-x': [{
|
|
2250
|
+
'skew-x': [skew]
|
|
2251
|
+
}],
|
|
2252
|
+
/**
|
|
2253
|
+
* Skew Y
|
|
2254
|
+
* @see https://tailwindcss.com/docs/skew
|
|
2255
|
+
*/
|
|
2256
|
+
'skew-y': [{
|
|
2257
|
+
'skew-y': [skew]
|
|
2258
|
+
}],
|
|
2259
|
+
/**
|
|
2260
|
+
* Transform Origin
|
|
2261
|
+
* @see https://tailwindcss.com/docs/transform-origin
|
|
2262
|
+
*/
|
|
2263
|
+
'transform-origin': [{
|
|
2264
|
+
origin: ['center', 'top', 'top-right', 'right', 'bottom-right', 'bottom', 'bottom-left', 'left', 'top-left', isArbitraryValue]
|
|
2265
|
+
}],
|
|
2266
|
+
// Interactivity
|
|
2267
|
+
/**
|
|
2268
|
+
* Accent Color
|
|
2269
|
+
* @see https://tailwindcss.com/docs/accent-color
|
|
2270
|
+
*/
|
|
2271
|
+
accent: [{
|
|
2272
|
+
accent: ['auto', colors]
|
|
2273
|
+
}],
|
|
2274
|
+
/**
|
|
2275
|
+
* Appearance
|
|
2276
|
+
* @see https://tailwindcss.com/docs/appearance
|
|
2277
|
+
*/
|
|
2278
|
+
appearance: [{
|
|
2279
|
+
appearance: ['none', 'auto']
|
|
2280
|
+
}],
|
|
2281
|
+
/**
|
|
2282
|
+
* Cursor
|
|
2283
|
+
* @see https://tailwindcss.com/docs/cursor
|
|
2284
|
+
*/
|
|
2285
|
+
cursor: [{
|
|
2286
|
+
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', isArbitraryValue]
|
|
2287
|
+
}],
|
|
2288
|
+
/**
|
|
2289
|
+
* Caret Color
|
|
2290
|
+
* @see https://tailwindcss.com/docs/just-in-time-mode#caret-color-utilities
|
|
2291
|
+
*/
|
|
2292
|
+
'caret-color': [{
|
|
2293
|
+
caret: [colors]
|
|
2294
|
+
}],
|
|
2295
|
+
/**
|
|
2296
|
+
* Pointer Events
|
|
2297
|
+
* @see https://tailwindcss.com/docs/pointer-events
|
|
2298
|
+
*/
|
|
2299
|
+
'pointer-events': [{
|
|
2300
|
+
'pointer-events': ['none', 'auto']
|
|
2301
|
+
}],
|
|
2302
|
+
/**
|
|
2303
|
+
* Resize
|
|
2304
|
+
* @see https://tailwindcss.com/docs/resize
|
|
2305
|
+
*/
|
|
2306
|
+
resize: [{
|
|
2307
|
+
resize: ['none', 'y', 'x', '']
|
|
2308
|
+
}],
|
|
2309
|
+
/**
|
|
2310
|
+
* Scroll Behavior
|
|
2311
|
+
* @see https://tailwindcss.com/docs/scroll-behavior
|
|
2312
|
+
*/
|
|
2313
|
+
'scroll-behavior': [{
|
|
2314
|
+
scroll: ['auto', 'smooth']
|
|
2315
|
+
}],
|
|
2316
|
+
/**
|
|
2317
|
+
* Scroll Margin
|
|
2318
|
+
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2319
|
+
*/
|
|
2320
|
+
'scroll-m': [{
|
|
2321
|
+
'scroll-m': getSpacingWithArbitrary()
|
|
2322
|
+
}],
|
|
2323
|
+
/**
|
|
2324
|
+
* Scroll Margin X
|
|
2325
|
+
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2326
|
+
*/
|
|
2327
|
+
'scroll-mx': [{
|
|
2328
|
+
'scroll-mx': getSpacingWithArbitrary()
|
|
2329
|
+
}],
|
|
2330
|
+
/**
|
|
2331
|
+
* Scroll Margin Y
|
|
2332
|
+
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2333
|
+
*/
|
|
2334
|
+
'scroll-my': [{
|
|
2335
|
+
'scroll-my': getSpacingWithArbitrary()
|
|
2336
|
+
}],
|
|
2337
|
+
/**
|
|
2338
|
+
* Scroll Margin Start
|
|
2339
|
+
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2340
|
+
*/
|
|
2341
|
+
'scroll-ms': [{
|
|
2342
|
+
'scroll-ms': getSpacingWithArbitrary()
|
|
2343
|
+
}],
|
|
2344
|
+
/**
|
|
2345
|
+
* Scroll Margin End
|
|
2346
|
+
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2347
|
+
*/
|
|
2348
|
+
'scroll-me': [{
|
|
2349
|
+
'scroll-me': getSpacingWithArbitrary()
|
|
2350
|
+
}],
|
|
2351
|
+
/**
|
|
2352
|
+
* Scroll Margin Top
|
|
2353
|
+
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2354
|
+
*/
|
|
2355
|
+
'scroll-mt': [{
|
|
2356
|
+
'scroll-mt': getSpacingWithArbitrary()
|
|
2357
|
+
}],
|
|
2358
|
+
/**
|
|
2359
|
+
* Scroll Margin Right
|
|
2360
|
+
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2361
|
+
*/
|
|
2362
|
+
'scroll-mr': [{
|
|
2363
|
+
'scroll-mr': getSpacingWithArbitrary()
|
|
2364
|
+
}],
|
|
2365
|
+
/**
|
|
2366
|
+
* Scroll Margin Bottom
|
|
2367
|
+
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2368
|
+
*/
|
|
2369
|
+
'scroll-mb': [{
|
|
2370
|
+
'scroll-mb': getSpacingWithArbitrary()
|
|
2371
|
+
}],
|
|
2372
|
+
/**
|
|
2373
|
+
* Scroll Margin Left
|
|
2374
|
+
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2375
|
+
*/
|
|
2376
|
+
'scroll-ml': [{
|
|
2377
|
+
'scroll-ml': getSpacingWithArbitrary()
|
|
2378
|
+
}],
|
|
2379
|
+
/**
|
|
2380
|
+
* Scroll Padding
|
|
2381
|
+
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2382
|
+
*/
|
|
2383
|
+
'scroll-p': [{
|
|
2384
|
+
'scroll-p': getSpacingWithArbitrary()
|
|
2385
|
+
}],
|
|
2386
|
+
/**
|
|
2387
|
+
* Scroll Padding X
|
|
2388
|
+
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2389
|
+
*/
|
|
2390
|
+
'scroll-px': [{
|
|
2391
|
+
'scroll-px': getSpacingWithArbitrary()
|
|
2392
|
+
}],
|
|
2393
|
+
/**
|
|
2394
|
+
* Scroll Padding Y
|
|
2395
|
+
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2396
|
+
*/
|
|
2397
|
+
'scroll-py': [{
|
|
2398
|
+
'scroll-py': getSpacingWithArbitrary()
|
|
2399
|
+
}],
|
|
2400
|
+
/**
|
|
2401
|
+
* Scroll Padding Start
|
|
2402
|
+
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2403
|
+
*/
|
|
2404
|
+
'scroll-ps': [{
|
|
2405
|
+
'scroll-ps': getSpacingWithArbitrary()
|
|
2406
|
+
}],
|
|
2407
|
+
/**
|
|
2408
|
+
* Scroll Padding End
|
|
2409
|
+
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2410
|
+
*/
|
|
2411
|
+
'scroll-pe': [{
|
|
2412
|
+
'scroll-pe': getSpacingWithArbitrary()
|
|
2413
|
+
}],
|
|
2414
|
+
/**
|
|
2415
|
+
* Scroll Padding Top
|
|
2416
|
+
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2417
|
+
*/
|
|
2418
|
+
'scroll-pt': [{
|
|
2419
|
+
'scroll-pt': getSpacingWithArbitrary()
|
|
2420
|
+
}],
|
|
2421
|
+
/**
|
|
2422
|
+
* Scroll Padding Right
|
|
2423
|
+
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2424
|
+
*/
|
|
2425
|
+
'scroll-pr': [{
|
|
2426
|
+
'scroll-pr': getSpacingWithArbitrary()
|
|
2427
|
+
}],
|
|
2428
|
+
/**
|
|
2429
|
+
* Scroll Padding Bottom
|
|
2430
|
+
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2431
|
+
*/
|
|
2432
|
+
'scroll-pb': [{
|
|
2433
|
+
'scroll-pb': getSpacingWithArbitrary()
|
|
2434
|
+
}],
|
|
2435
|
+
/**
|
|
2436
|
+
* Scroll Padding Left
|
|
2437
|
+
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2438
|
+
*/
|
|
2439
|
+
'scroll-pl': [{
|
|
2440
|
+
'scroll-pl': getSpacingWithArbitrary()
|
|
2441
|
+
}],
|
|
2442
|
+
/**
|
|
2443
|
+
* Scroll Snap Align
|
|
2444
|
+
* @see https://tailwindcss.com/docs/scroll-snap-align
|
|
2445
|
+
*/
|
|
2446
|
+
'snap-align': [{
|
|
2447
|
+
snap: ['start', 'end', 'center', 'align-none']
|
|
2448
|
+
}],
|
|
2449
|
+
/**
|
|
2450
|
+
* Scroll Snap Stop
|
|
2451
|
+
* @see https://tailwindcss.com/docs/scroll-snap-stop
|
|
2452
|
+
*/
|
|
2453
|
+
'snap-stop': [{
|
|
2454
|
+
snap: ['normal', 'always']
|
|
2455
|
+
}],
|
|
2456
|
+
/**
|
|
2457
|
+
* Scroll Snap Type
|
|
2458
|
+
* @see https://tailwindcss.com/docs/scroll-snap-type
|
|
2459
|
+
*/
|
|
2460
|
+
'snap-type': [{
|
|
2461
|
+
snap: ['none', 'x', 'y', 'both']
|
|
2462
|
+
}],
|
|
2463
|
+
/**
|
|
2464
|
+
* Scroll Snap Type Strictness
|
|
2465
|
+
* @see https://tailwindcss.com/docs/scroll-snap-type
|
|
2466
|
+
*/
|
|
2467
|
+
'snap-strictness': [{
|
|
2468
|
+
snap: ['mandatory', 'proximity']
|
|
2469
|
+
}],
|
|
2470
|
+
/**
|
|
2471
|
+
* Touch Action
|
|
2472
|
+
* @see https://tailwindcss.com/docs/touch-action
|
|
2473
|
+
*/
|
|
2474
|
+
touch: [{
|
|
2475
|
+
touch: ['auto', 'none', 'manipulation']
|
|
2476
|
+
}],
|
|
2477
|
+
/**
|
|
2478
|
+
* Touch Action X
|
|
2479
|
+
* @see https://tailwindcss.com/docs/touch-action
|
|
2480
|
+
*/
|
|
2481
|
+
'touch-x': [{
|
|
2482
|
+
'touch-pan': ['x', 'left', 'right']
|
|
2483
|
+
}],
|
|
2484
|
+
/**
|
|
2485
|
+
* Touch Action Y
|
|
2486
|
+
* @see https://tailwindcss.com/docs/touch-action
|
|
2487
|
+
*/
|
|
2488
|
+
'touch-y': [{
|
|
2489
|
+
'touch-pan': ['y', 'up', 'down']
|
|
2490
|
+
}],
|
|
2491
|
+
/**
|
|
2492
|
+
* Touch Action Pinch Zoom
|
|
2493
|
+
* @see https://tailwindcss.com/docs/touch-action
|
|
2494
|
+
*/
|
|
2495
|
+
'touch-pz': ['touch-pinch-zoom'],
|
|
2496
|
+
/**
|
|
2497
|
+
* User Select
|
|
2498
|
+
* @see https://tailwindcss.com/docs/user-select
|
|
2499
|
+
*/
|
|
2500
|
+
select: [{
|
|
2501
|
+
select: ['none', 'text', 'all', 'auto']
|
|
2502
|
+
}],
|
|
2503
|
+
/**
|
|
2504
|
+
* Will Change
|
|
2505
|
+
* @see https://tailwindcss.com/docs/will-change
|
|
2506
|
+
*/
|
|
2507
|
+
'will-change': [{
|
|
2508
|
+
'will-change': ['auto', 'scroll', 'contents', 'transform', isArbitraryValue]
|
|
2509
|
+
}],
|
|
2510
|
+
// SVG
|
|
2511
|
+
/**
|
|
2512
|
+
* Fill
|
|
2513
|
+
* @see https://tailwindcss.com/docs/fill
|
|
2514
|
+
*/
|
|
2515
|
+
fill: [{
|
|
2516
|
+
fill: [colors, 'none']
|
|
2517
|
+
}],
|
|
2518
|
+
/**
|
|
2519
|
+
* Stroke Width
|
|
2520
|
+
* @see https://tailwindcss.com/docs/stroke-width
|
|
2521
|
+
*/
|
|
2522
|
+
'stroke-w': [{
|
|
2523
|
+
stroke: [isLength, isArbitraryLength, isArbitraryNumber]
|
|
2524
|
+
}],
|
|
2525
|
+
/**
|
|
2526
|
+
* Stroke
|
|
2527
|
+
* @see https://tailwindcss.com/docs/stroke
|
|
2528
|
+
*/
|
|
2529
|
+
stroke: [{
|
|
2530
|
+
stroke: [colors, 'none']
|
|
2531
|
+
}],
|
|
2532
|
+
// Accessibility
|
|
2533
|
+
/**
|
|
2534
|
+
* Screen Readers
|
|
2535
|
+
* @see https://tailwindcss.com/docs/screen-readers
|
|
2536
|
+
*/
|
|
2537
|
+
sr: ['sr-only', 'not-sr-only'],
|
|
2538
|
+
/**
|
|
2539
|
+
* Forced Color Adjust
|
|
2540
|
+
* @see https://tailwindcss.com/docs/forced-color-adjust
|
|
2541
|
+
*/
|
|
2542
|
+
'forced-color-adjust': [{
|
|
2543
|
+
'forced-color-adjust': ['auto', 'none']
|
|
2544
|
+
}]
|
|
2545
|
+
},
|
|
2546
|
+
conflictingClassGroups: {
|
|
2547
|
+
overflow: ['overflow-x', 'overflow-y'],
|
|
2548
|
+
overscroll: ['overscroll-x', 'overscroll-y'],
|
|
2549
|
+
inset: ['inset-x', 'inset-y', 'start', 'end', 'top', 'right', 'bottom', 'left'],
|
|
2550
|
+
'inset-x': ['right', 'left'],
|
|
2551
|
+
'inset-y': ['top', 'bottom'],
|
|
2552
|
+
flex: ['basis', 'grow', 'shrink'],
|
|
2553
|
+
gap: ['gap-x', 'gap-y'],
|
|
2554
|
+
p: ['px', 'py', 'ps', 'pe', 'pt', 'pr', 'pb', 'pl'],
|
|
2555
|
+
px: ['pr', 'pl'],
|
|
2556
|
+
py: ['pt', 'pb'],
|
|
2557
|
+
m: ['mx', 'my', 'ms', 'me', 'mt', 'mr', 'mb', 'ml'],
|
|
2558
|
+
mx: ['mr', 'ml'],
|
|
2559
|
+
my: ['mt', 'mb'],
|
|
2560
|
+
size: ['w', 'h'],
|
|
2561
|
+
'font-size': ['leading'],
|
|
2562
|
+
'fvn-normal': ['fvn-ordinal', 'fvn-slashed-zero', 'fvn-figure', 'fvn-spacing', 'fvn-fraction'],
|
|
2563
|
+
'fvn-ordinal': ['fvn-normal'],
|
|
2564
|
+
'fvn-slashed-zero': ['fvn-normal'],
|
|
2565
|
+
'fvn-figure': ['fvn-normal'],
|
|
2566
|
+
'fvn-spacing': ['fvn-normal'],
|
|
2567
|
+
'fvn-fraction': ['fvn-normal'],
|
|
2568
|
+
'line-clamp': ['display', 'overflow'],
|
|
2569
|
+
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'],
|
|
2570
|
+
'rounded-s': ['rounded-ss', 'rounded-es'],
|
|
2571
|
+
'rounded-e': ['rounded-se', 'rounded-ee'],
|
|
2572
|
+
'rounded-t': ['rounded-tl', 'rounded-tr'],
|
|
2573
|
+
'rounded-r': ['rounded-tr', 'rounded-br'],
|
|
2574
|
+
'rounded-b': ['rounded-br', 'rounded-bl'],
|
|
2575
|
+
'rounded-l': ['rounded-tl', 'rounded-bl'],
|
|
2576
|
+
'border-spacing': ['border-spacing-x', 'border-spacing-y'],
|
|
2577
|
+
'border-w': ['border-w-s', 'border-w-e', 'border-w-t', 'border-w-r', 'border-w-b', 'border-w-l'],
|
|
2578
|
+
'border-w-x': ['border-w-r', 'border-w-l'],
|
|
2579
|
+
'border-w-y': ['border-w-t', 'border-w-b'],
|
|
2580
|
+
'border-color': ['border-color-s', 'border-color-e', 'border-color-t', 'border-color-r', 'border-color-b', 'border-color-l'],
|
|
2581
|
+
'border-color-x': ['border-color-r', 'border-color-l'],
|
|
2582
|
+
'border-color-y': ['border-color-t', 'border-color-b'],
|
|
2583
|
+
'scroll-m': ['scroll-mx', 'scroll-my', 'scroll-ms', 'scroll-me', 'scroll-mt', 'scroll-mr', 'scroll-mb', 'scroll-ml'],
|
|
2584
|
+
'scroll-mx': ['scroll-mr', 'scroll-ml'],
|
|
2585
|
+
'scroll-my': ['scroll-mt', 'scroll-mb'],
|
|
2586
|
+
'scroll-p': ['scroll-px', 'scroll-py', 'scroll-ps', 'scroll-pe', 'scroll-pt', 'scroll-pr', 'scroll-pb', 'scroll-pl'],
|
|
2587
|
+
'scroll-px': ['scroll-pr', 'scroll-pl'],
|
|
2588
|
+
'scroll-py': ['scroll-pt', 'scroll-pb'],
|
|
2589
|
+
touch: ['touch-x', 'touch-y', 'touch-pz'],
|
|
2590
|
+
'touch-x': ['touch'],
|
|
2591
|
+
'touch-y': ['touch'],
|
|
2592
|
+
'touch-pz': ['touch']
|
|
2593
|
+
},
|
|
2594
|
+
conflictingClassGroupModifiers: {
|
|
2595
|
+
'font-size': ['leading']
|
|
2596
|
+
}
|
|
2597
|
+
};
|
|
2598
|
+
};
|
|
2599
|
+
|
|
2600
|
+
/**
|
|
2601
|
+
* @param baseConfig Config where other config will be merged into. This object will be mutated.
|
|
2602
|
+
* @param configExtension Partial config to merge into the `baseConfig`.
|
|
2603
|
+
*/
|
|
2604
|
+
var mergeConfigs = function mergeConfigs(baseConfig, _ref10) {
|
|
2605
|
+
var cacheSize = _ref10.cacheSize,
|
|
2606
|
+
prefix = _ref10.prefix,
|
|
2607
|
+
separator = _ref10.separator,
|
|
2608
|
+
experimentalParseClassName = _ref10.experimentalParseClassName,
|
|
2609
|
+
_ref10$extend = _ref10.extend,
|
|
2610
|
+
extend = _ref10$extend === void 0 ? {} : _ref10$extend,
|
|
2611
|
+
_ref10$override = _ref10.override,
|
|
2612
|
+
override = _ref10$override === void 0 ? {} : _ref10$override;
|
|
2613
|
+
overrideProperty(baseConfig, 'cacheSize', cacheSize);
|
|
2614
|
+
overrideProperty(baseConfig, 'prefix', prefix);
|
|
2615
|
+
overrideProperty(baseConfig, 'separator', separator);
|
|
2616
|
+
overrideProperty(baseConfig, 'experimentalParseClassName', experimentalParseClassName);
|
|
2617
|
+
for (var configKey in override) {
|
|
2618
|
+
overrideConfigProperties(baseConfig[configKey], override[configKey]);
|
|
2619
|
+
}
|
|
2620
|
+
for (var key in extend) {
|
|
2621
|
+
mergeConfigProperties(baseConfig[key], extend[key]);
|
|
2622
|
+
}
|
|
2623
|
+
return baseConfig;
|
|
2624
|
+
};
|
|
2625
|
+
var overrideProperty = function overrideProperty(baseObject, overrideKey, overrideValue) {
|
|
2626
|
+
if (overrideValue !== undefined) {
|
|
2627
|
+
baseObject[overrideKey] = overrideValue;
|
|
2628
|
+
}
|
|
2629
|
+
};
|
|
2630
|
+
var overrideConfigProperties = function overrideConfigProperties(baseObject, overrideObject) {
|
|
2631
|
+
if (overrideObject) {
|
|
2632
|
+
for (var key in overrideObject) {
|
|
2633
|
+
overrideProperty(baseObject, key, overrideObject[key]);
|
|
2634
|
+
}
|
|
2635
|
+
}
|
|
2636
|
+
};
|
|
2637
|
+
var mergeConfigProperties = function mergeConfigProperties(baseObject, mergeObject) {
|
|
2638
|
+
if (mergeObject) {
|
|
2639
|
+
for (var key in mergeObject) {
|
|
2640
|
+
var mergeValue = mergeObject[key];
|
|
2641
|
+
if (mergeValue !== undefined) {
|
|
2642
|
+
baseObject[key] = (baseObject[key] || []).concat(mergeValue);
|
|
2643
|
+
}
|
|
2644
|
+
}
|
|
2645
|
+
}
|
|
2646
|
+
};
|
|
2647
|
+
var extendTailwindMerge = function extendTailwindMerge(configExtension) {
|
|
2648
|
+
for (var _len2 = arguments.length, createConfig = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
2649
|
+
createConfig[_key2 - 1] = arguments[_key2];
|
|
2650
|
+
}
|
|
2651
|
+
return typeof configExtension === 'function' ? createTailwindMerge.apply(void 0, [getDefaultConfig, configExtension].concat(createConfig)) : createTailwindMerge.apply(void 0, [function () {
|
|
2652
|
+
return mergeConfigs(getDefaultConfig(), configExtension);
|
|
2653
|
+
}].concat(createConfig));
|
|
2654
|
+
};
|
|
2655
|
+
var twMerge = /*#__PURE__*/createTailwindMerge(getDefaultConfig);
|
|
2656
|
+
exports.createTailwindMerge = createTailwindMerge;
|
|
2657
|
+
exports.extendTailwindMerge = extendTailwindMerge;
|
|
2658
|
+
exports.fromTheme = fromTheme;
|
|
2659
|
+
exports.getDefaultConfig = getDefaultConfig;
|
|
2660
|
+
exports.mergeConfigs = mergeConfigs;
|
|
2661
|
+
exports.twJoin = twJoin;
|
|
2662
|
+
exports.twMerge = twMerge;
|
|
2663
|
+
exports.validators = validators;
|
|
2664
|
+
});
|
|
2665
|
+
|
|
2666
|
+
export default bundleCjs;
|
|
2667
|
+
//# sourceMappingURL=bundle-cjs.js.map
|