@lukso/web-components 1.53.2 → 1.55.0

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