@rotki/ui-library 2.16.0 → 2.16.2

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/accordions/accordion/RuiAccordion.js.map +1 -1
  2. package/dist/components/accordions/accordion/RuiAccordion.vue_vue_type_script_setup_true_lang.js +7 -2
  3. package/dist/components/accordions/accordion/RuiAccordion.vue_vue_type_script_setup_true_lang.js.map +1 -1
  4. package/dist/components/buttons/button/RuiButton.js.map +1 -1
  5. package/dist/components/buttons/button/RuiButton.vue_vue_type_script_setup_true_lang.js +6 -2
  6. package/dist/components/buttons/button/RuiButton.vue_vue_type_script_setup_true_lang.js.map +1 -1
  7. package/dist/components/buttons/button/button-styles.d.ts +6 -9
  8. package/dist/components/buttons/button/button-styles.js +42 -20
  9. package/dist/components/buttons/button/button-styles.js.map +1 -1
  10. package/dist/components/cards/RuiCard.js.map +1 -1
  11. package/dist/components/cards/RuiCard.vue_vue_type_script_setup_true_lang.js +4 -1
  12. package/dist/components/cards/RuiCard.vue_vue_type_script_setup_true_lang.js.map +1 -1
  13. package/dist/components/color-picker/RuiColorBoard.js.map +1 -1
  14. package/dist/components/color-picker/RuiColorBoard.vue_vue_type_script_setup_true_lang.js +7 -2
  15. package/dist/components/color-picker/RuiColorBoard.vue_vue_type_script_setup_true_lang.js.map +1 -1
  16. package/dist/components/color-picker/RuiColorHue.js.map +1 -1
  17. package/dist/components/color-picker/RuiColorHue.vue_vue_type_script_setup_true_lang.js +7 -2
  18. package/dist/components/color-picker/RuiColorHue.vue_vue_type_script_setup_true_lang.js.map +1 -1
  19. package/dist/components/color-picker/RuiColorPicker.js.map +1 -1
  20. package/dist/components/color-picker/RuiColorPicker.vue_vue_type_script_setup_true_lang.js +7 -2
  21. package/dist/components/color-picker/RuiColorPicker.vue_vue_type_script_setup_true_lang.js.map +1 -1
  22. package/dist/components/date-time-picker/RuiDateTimePicker.js.map +1 -1
  23. package/dist/components/date-time-picker/RuiDateTimePicker.vue_vue_type_script_setup_true_lang.js +3 -2
  24. package/dist/components/date-time-picker/RuiDateTimePicker.vue_vue_type_script_setup_true_lang.js.map +1 -1
  25. package/dist/components/forms/auto-complete/RuiAutoComplete.js.map +1 -1
  26. package/dist/components/forms/auto-complete/RuiAutoComplete.vue.d.ts +1 -1
  27. package/dist/components/forms/auto-complete/RuiAutoComplete.vue_vue_type_script_setup_true_lang.js +6 -3
  28. package/dist/components/forms/auto-complete/RuiAutoComplete.vue_vue_type_script_setup_true_lang.js.map +1 -1
  29. package/dist/components/forms/select/RuiMenuSelect.js.map +1 -1
  30. package/dist/components/forms/select/RuiMenuSelect.vue_vue_type_script_setup_true_lang.js +2 -2
  31. package/dist/components/forms/select/RuiMenuSelect.vue_vue_type_script_setup_true_lang.js.map +1 -1
  32. package/dist/components/forms/text-area/text-area-styles.js +2 -2
  33. package/dist/components/forms/text-area/text-area-styles.js.map +1 -1
  34. package/dist/components/forms/text-field/text-field-styles.js +3 -3
  35. package/dist/components/forms/text-field/text-field-styles.js.map +1 -1
  36. package/dist/components/forms/text-input-styles.js +2 -2
  37. package/dist/components/forms/text-input-styles.js.map +1 -1
  38. package/dist/components/loaders/RuiSkeletonLoader.js.map +1 -1
  39. package/dist/components/loaders/RuiSkeletonLoader.vue_vue_type_script_setup_true_lang.js +15 -5
  40. package/dist/components/loaders/RuiSkeletonLoader.vue_vue_type_script_setup_true_lang.js.map +1 -1
  41. package/dist/components/overlays/badge/RuiBadge.js.map +1 -1
  42. package/dist/components/overlays/badge/RuiBadge.vue_vue_type_script_setup_true_lang.js +2 -2
  43. package/dist/components/overlays/badge/RuiBadge.vue_vue_type_script_setup_true_lang.js.map +1 -1
  44. package/dist/components/overlays/menu/RuiMenu.js.map +1 -1
  45. package/dist/components/overlays/menu/RuiMenu.vue_vue_type_script_setup_true_lang.js +6 -10
  46. package/dist/components/overlays/menu/RuiMenu.vue_vue_type_script_setup_true_lang.js.map +1 -1
  47. package/dist/components/overlays/notification/RuiNotification.js.map +1 -1
  48. package/dist/components/overlays/notification/RuiNotification.vue_vue_type_script_setup_true_lang.js +8 -3
  49. package/dist/components/overlays/notification/RuiNotification.vue_vue_type_script_setup_true_lang.js.map +1 -1
  50. package/dist/components/overlays/tooltip/RuiTooltip.js.map +1 -1
  51. package/dist/components/overlays/tooltip/RuiTooltip.vue_vue_type_script_setup_true_lang.js +13 -6
  52. package/dist/components/overlays/tooltip/RuiTooltip.vue_vue_type_script_setup_true_lang.js.map +1 -1
  53. package/dist/components/tables/RuiDataTable.js.map +1 -1
  54. package/dist/components/tables/RuiDataTable.vue_vue_type_script_setup_true_lang.js +2 -6
  55. package/dist/components/tables/RuiDataTable.vue_vue_type_script_setup_true_lang.js.map +1 -1
  56. package/dist/components/tables/RuiTableHead.js.map +1 -1
  57. package/dist/components/tables/RuiTableHead.vue_vue_type_script_setup_true_lang.js +1 -1
  58. package/dist/components/tables/RuiTableHead.vue_vue_type_script_setup_true_lang.js.map +1 -1
  59. package/dist/components/tabs/tab/RuiTab.js.map +1 -1
  60. package/dist/components/tabs/tab/RuiTab.vue_vue_type_script_setup_true_lang.js +1 -1
  61. package/dist/components/tabs/tab/RuiTab.vue_vue_type_script_setup_true_lang.js.map +1 -1
  62. package/dist/components/tabs/tab-items/RuiTabItems.js.map +1 -1
  63. package/dist/components/tabs/tab-items/RuiTabItems.vue.d.ts +2 -2
  64. package/dist/components/tabs/tab-items/RuiTabItems.vue_vue_type_script_setup_true_lang.js +1 -1
  65. package/dist/components/tabs/tab-items/RuiTabItems.vue_vue_type_script_setup_true_lang.js.map +1 -1
  66. package/dist/components/tabs/tabs/RuiTabs.js.map +1 -1
  67. package/dist/components/tabs/tabs/RuiTabs.vue.d.ts +2 -2
  68. package/dist/components/tabs/tabs/RuiTabs.vue_vue_type_script_setup_true_lang.js +1 -1
  69. package/dist/components/tabs/tabs/RuiTabs.vue_vue_type_script_setup_true_lang.js.map +1 -1
  70. package/dist/composables/forms/auto-complete/keyboard-navigation.d.ts +1 -1
  71. package/dist/composables/forms/auto-complete/keyboard-navigation.js +2 -2
  72. package/dist/composables/forms/auto-complete/keyboard-navigation.js.map +1 -1
  73. package/dist/composables/tables/data-table/expansion.d.ts +0 -1
  74. package/dist/composables/tables/data-table/expansion.js +2 -2
  75. package/dist/composables/tables/data-table/expansion.js.map +1 -1
  76. package/dist/style.css +79 -13
  77. package/dist/utils/tv.d.ts +6 -3
  78. package/dist/utils/tv.js +15 -5
  79. package/dist/utils/tv.js.map +1 -1
  80. package/dist/vite-plugin/index.js +1 -1
  81. package/dist/vite-plugin/index.js.map +1 -1
  82. package/dist/web-types.json +6 -4
  83. package/package.json +9 -2
  84. package/dist/node_modules/.pnpm/tailwind-merge@2.6.1/node_modules/tailwind-merge/dist/bundle-mjs.js +0 -1440
  85. package/dist/node_modules/.pnpm/tailwind-merge@2.6.1/node_modules/tailwind-merge/dist/bundle-mjs.js.map +0 -1
  86. package/dist/node_modules/.pnpm/tailwind-variants@3.2.2_tailwind-merge@2.6.1_tailwindcss@3.4.19_tsx@4.21.0_yaml@2.8.2_/node_modules/tailwind-variants/dist/chunk-LQJYWU4O.js +0 -91
  87. package/dist/node_modules/.pnpm/tailwind-variants@3.2.2_tailwind-merge@2.6.1_tailwindcss@3.4.19_tsx@4.21.0_yaml@2.8.2_/node_modules/tailwind-variants/dist/chunk-LQJYWU4O.js.map +0 -1
  88. package/dist/node_modules/.pnpm/tailwind-variants@3.2.2_tailwind-merge@2.6.1_tailwindcss@3.4.19_tsx@4.21.0_yaml@2.8.2_/node_modules/tailwind-variants/dist/chunk-RZF76H2U.js +0 -217
  89. package/dist/node_modules/.pnpm/tailwind-variants@3.2.2_tailwind-merge@2.6.1_tailwindcss@3.4.19_tsx@4.21.0_yaml@2.8.2_/node_modules/tailwind-variants/dist/chunk-RZF76H2U.js.map +0 -1
  90. package/dist/node_modules/.pnpm/tailwind-variants@3.2.2_tailwind-merge@2.6.1_tailwindcss@3.4.19_tsx@4.21.0_yaml@2.8.2_/node_modules/tailwind-variants/dist/index.js +0 -33
  91. package/dist/node_modules/.pnpm/tailwind-variants@3.2.2_tailwind-merge@2.6.1_tailwindcss@3.4.19_tsx@4.21.0_yaml@2.8.2_/node_modules/tailwind-variants/dist/index.js.map +0 -1
@@ -1,1440 +0,0 @@
1
- //#region ../../node_modules/.pnpm/tailwind-merge@2.6.1/node_modules/tailwind-merge/dist/bundle-mjs.mjs
2
- var CLASS_PART_SEPARATOR = "-";
3
- var createClassGroupUtils = (config) => {
4
- const classMap = createClassMap(config);
5
- const { conflictingClassGroups, conflictingClassGroupModifiers } = config;
6
- const getClassGroupId = (className) => {
7
- const classParts = className.split(CLASS_PART_SEPARATOR);
8
- if (classParts[0] === "" && classParts.length !== 1) classParts.shift();
9
- return getGroupRecursive(classParts, classMap) || getGroupIdForArbitraryProperty(className);
10
- };
11
- const getConflictingClassGroupIds = (classGroupId, hasPostfixModifier) => {
12
- const conflicts = conflictingClassGroups[classGroupId] || [];
13
- if (hasPostfixModifier && conflictingClassGroupModifiers[classGroupId]) return [...conflicts, ...conflictingClassGroupModifiers[classGroupId]];
14
- return conflicts;
15
- };
16
- return {
17
- getClassGroupId,
18
- getConflictingClassGroupIds
19
- };
20
- };
21
- var getGroupRecursive = (classParts, classPartObject) => {
22
- if (classParts.length === 0) return classPartObject.classGroupId;
23
- const currentClassPart = classParts[0];
24
- const nextClassPartObject = classPartObject.nextPart.get(currentClassPart);
25
- const classGroupFromNextClassPart = nextClassPartObject ? getGroupRecursive(classParts.slice(1), nextClassPartObject) : void 0;
26
- if (classGroupFromNextClassPart) return classGroupFromNextClassPart;
27
- if (classPartObject.validators.length === 0) return;
28
- const classRest = classParts.join(CLASS_PART_SEPARATOR);
29
- return classPartObject.validators.find(({ validator }) => validator(classRest))?.classGroupId;
30
- };
31
- var arbitraryPropertyRegex = /^\[(.+)\]$/;
32
- var getGroupIdForArbitraryProperty = (className) => {
33
- if (arbitraryPropertyRegex.test(className)) {
34
- const arbitraryPropertyClassName = arbitraryPropertyRegex.exec(className)[1];
35
- const property = arbitraryPropertyClassName?.substring(0, arbitraryPropertyClassName.indexOf(":"));
36
- if (property) return "arbitrary.." + property;
37
- }
38
- };
39
- /**
40
- * Exported for testing only
41
- */
42
- var createClassMap = (config) => {
43
- const { theme, prefix } = config;
44
- const classMap = {
45
- nextPart: /* @__PURE__ */ new Map(),
46
- validators: []
47
- };
48
- getPrefixedClassGroupEntries(Object.entries(config.classGroups), prefix).forEach(([classGroupId, classGroup]) => {
49
- processClassesRecursively(classGroup, classMap, classGroupId, theme);
50
- });
51
- return classMap;
52
- };
53
- var processClassesRecursively = (classGroup, classPartObject, classGroupId, theme) => {
54
- classGroup.forEach((classDefinition) => {
55
- if (typeof classDefinition === "string") {
56
- const classPartObjectToEdit = classDefinition === "" ? classPartObject : getPart(classPartObject, classDefinition);
57
- classPartObjectToEdit.classGroupId = classGroupId;
58
- return;
59
- }
60
- if (typeof classDefinition === "function") {
61
- if (isThemeGetter(classDefinition)) {
62
- processClassesRecursively(classDefinition(theme), classPartObject, classGroupId, theme);
63
- return;
64
- }
65
- classPartObject.validators.push({
66
- validator: classDefinition,
67
- classGroupId
68
- });
69
- return;
70
- }
71
- Object.entries(classDefinition).forEach(([key, classGroup]) => {
72
- processClassesRecursively(classGroup, getPart(classPartObject, key), classGroupId, theme);
73
- });
74
- });
75
- };
76
- var getPart = (classPartObject, path) => {
77
- let currentClassPartObject = classPartObject;
78
- path.split(CLASS_PART_SEPARATOR).forEach((pathPart) => {
79
- if (!currentClassPartObject.nextPart.has(pathPart)) currentClassPartObject.nextPart.set(pathPart, {
80
- nextPart: /* @__PURE__ */ new Map(),
81
- validators: []
82
- });
83
- currentClassPartObject = currentClassPartObject.nextPart.get(pathPart);
84
- });
85
- return currentClassPartObject;
86
- };
87
- var isThemeGetter = (func) => func.isThemeGetter;
88
- var getPrefixedClassGroupEntries = (classGroupEntries, prefix) => {
89
- if (!prefix) return classGroupEntries;
90
- return classGroupEntries.map(([classGroupId, classGroup]) => {
91
- return [classGroupId, classGroup.map((classDefinition) => {
92
- if (typeof classDefinition === "string") return prefix + classDefinition;
93
- if (typeof classDefinition === "object") return Object.fromEntries(Object.entries(classDefinition).map(([key, value]) => [prefix + key, value]));
94
- return classDefinition;
95
- })];
96
- });
97
- };
98
- var createLruCache = (maxCacheSize) => {
99
- if (maxCacheSize < 1) return {
100
- get: () => void 0,
101
- set: () => {}
102
- };
103
- let cacheSize = 0;
104
- let cache = /* @__PURE__ */ new Map();
105
- let previousCache = /* @__PURE__ */ new Map();
106
- const update = (key, value) => {
107
- cache.set(key, value);
108
- cacheSize++;
109
- if (cacheSize > maxCacheSize) {
110
- cacheSize = 0;
111
- previousCache = cache;
112
- cache = /* @__PURE__ */ new Map();
113
- }
114
- };
115
- return {
116
- get(key) {
117
- let value = cache.get(key);
118
- if (value !== void 0) return value;
119
- if ((value = previousCache.get(key)) !== void 0) {
120
- update(key, value);
121
- return value;
122
- }
123
- },
124
- set(key, value) {
125
- if (cache.has(key)) cache.set(key, value);
126
- else update(key, value);
127
- }
128
- };
129
- };
130
- var IMPORTANT_MODIFIER = "!";
131
- var createParseClassName = (config) => {
132
- const { separator, experimentalParseClassName } = config;
133
- const isSeparatorSingleCharacter = separator.length === 1;
134
- const firstSeparatorCharacter = separator[0];
135
- const separatorLength = separator.length;
136
- const parseClassName = (className) => {
137
- const modifiers = [];
138
- let bracketDepth = 0;
139
- let modifierStart = 0;
140
- let postfixModifierPosition;
141
- for (let index = 0; index < className.length; index++) {
142
- let currentCharacter = className[index];
143
- if (bracketDepth === 0) {
144
- if (currentCharacter === firstSeparatorCharacter && (isSeparatorSingleCharacter || className.slice(index, index + separatorLength) === separator)) {
145
- modifiers.push(className.slice(modifierStart, index));
146
- modifierStart = index + separatorLength;
147
- continue;
148
- }
149
- if (currentCharacter === "/") {
150
- postfixModifierPosition = index;
151
- continue;
152
- }
153
- }
154
- if (currentCharacter === "[") bracketDepth++;
155
- else if (currentCharacter === "]") bracketDepth--;
156
- }
157
- const baseClassNameWithImportantModifier = modifiers.length === 0 ? className : className.substring(modifierStart);
158
- const hasImportantModifier = baseClassNameWithImportantModifier.startsWith(IMPORTANT_MODIFIER);
159
- return {
160
- modifiers,
161
- hasImportantModifier,
162
- baseClassName: hasImportantModifier ? baseClassNameWithImportantModifier.substring(1) : baseClassNameWithImportantModifier,
163
- maybePostfixModifierPosition: postfixModifierPosition && postfixModifierPosition > modifierStart ? postfixModifierPosition - modifierStart : void 0
164
- };
165
- };
166
- if (experimentalParseClassName) return (className) => experimentalParseClassName({
167
- className,
168
- parseClassName
169
- });
170
- return parseClassName;
171
- };
172
- /**
173
- * Sorts modifiers according to following schema:
174
- * - Predefined modifiers are sorted alphabetically
175
- * - When an arbitrary variant appears, it must be preserved which modifiers are before and after it
176
- */
177
- var sortModifiers = (modifiers) => {
178
- if (modifiers.length <= 1) return modifiers;
179
- const sortedModifiers = [];
180
- let unsortedModifiers = [];
181
- modifiers.forEach((modifier) => {
182
- if (modifier[0] === "[") {
183
- sortedModifiers.push(...unsortedModifiers.sort(), modifier);
184
- unsortedModifiers = [];
185
- } else unsortedModifiers.push(modifier);
186
- });
187
- sortedModifiers.push(...unsortedModifiers.sort());
188
- return sortedModifiers;
189
- };
190
- var createConfigUtils = (config) => ({
191
- cache: createLruCache(config.cacheSize),
192
- parseClassName: createParseClassName(config),
193
- ...createClassGroupUtils(config)
194
- });
195
- var SPLIT_CLASSES_REGEX = /\s+/;
196
- var mergeClassList = (classList, configUtils) => {
197
- const { parseClassName, getClassGroupId, getConflictingClassGroupIds } = configUtils;
198
- /**
199
- * Set of classGroupIds in following format:
200
- * `{importantModifier}{variantModifiers}{classGroupId}`
201
- * @example 'float'
202
- * @example 'hover:focus:bg-color'
203
- * @example 'md:!pr'
204
- */
205
- const classGroupsInConflict = [];
206
- const classNames = classList.trim().split(SPLIT_CLASSES_REGEX);
207
- let result = "";
208
- for (let index = classNames.length - 1; index >= 0; index -= 1) {
209
- const originalClassName = classNames[index];
210
- const { modifiers, hasImportantModifier, baseClassName, maybePostfixModifierPosition } = parseClassName(originalClassName);
211
- let hasPostfixModifier = Boolean(maybePostfixModifierPosition);
212
- let classGroupId = getClassGroupId(hasPostfixModifier ? baseClassName.substring(0, maybePostfixModifierPosition) : baseClassName);
213
- if (!classGroupId) {
214
- if (!hasPostfixModifier) {
215
- result = originalClassName + (result.length > 0 ? " " + result : result);
216
- continue;
217
- }
218
- classGroupId = getClassGroupId(baseClassName);
219
- if (!classGroupId) {
220
- result = originalClassName + (result.length > 0 ? " " + result : result);
221
- continue;
222
- }
223
- hasPostfixModifier = false;
224
- }
225
- const variantModifier = sortModifiers(modifiers).join(":");
226
- const modifierId = hasImportantModifier ? variantModifier + IMPORTANT_MODIFIER : variantModifier;
227
- const classId = modifierId + classGroupId;
228
- if (classGroupsInConflict.includes(classId)) continue;
229
- classGroupsInConflict.push(classId);
230
- const conflictGroups = getConflictingClassGroupIds(classGroupId, hasPostfixModifier);
231
- for (let i = 0; i < conflictGroups.length; ++i) {
232
- const group = conflictGroups[i];
233
- classGroupsInConflict.push(modifierId + group);
234
- }
235
- result = originalClassName + (result.length > 0 ? " " + result : result);
236
- }
237
- return result;
238
- };
239
- /**
240
- * The code in this file is copied from https://github.com/lukeed/clsx and modified to suit the needs of tailwind-merge better.
241
- *
242
- * Specifically:
243
- * - Runtime code from https://github.com/lukeed/clsx/blob/v1.2.1/src/index.js
244
- * - TypeScript types from https://github.com/lukeed/clsx/blob/v1.2.1/clsx.d.ts
245
- *
246
- * Original code has MIT license: Copyright (c) Luke Edwards <luke.edwards05@gmail.com> (lukeed.com)
247
- */
248
- function twJoin() {
249
- let index = 0;
250
- let argument;
251
- let resolvedValue;
252
- let string = "";
253
- while (index < arguments.length) if (argument = arguments[index++]) {
254
- if (resolvedValue = toValue(argument)) {
255
- string && (string += " ");
256
- string += resolvedValue;
257
- }
258
- }
259
- return string;
260
- }
261
- var toValue = (mix) => {
262
- if (typeof mix === "string") return mix;
263
- let resolvedValue;
264
- let string = "";
265
- for (let k = 0; k < mix.length; k++) if (mix[k]) {
266
- if (resolvedValue = toValue(mix[k])) {
267
- string && (string += " ");
268
- string += resolvedValue;
269
- }
270
- }
271
- return string;
272
- };
273
- function createTailwindMerge(createConfigFirst, ...createConfigRest) {
274
- let configUtils;
275
- let cacheGet;
276
- let cacheSet;
277
- let functionToCall = initTailwindMerge;
278
- function initTailwindMerge(classList) {
279
- configUtils = createConfigUtils(createConfigRest.reduce((previousConfig, createConfigCurrent) => createConfigCurrent(previousConfig), createConfigFirst()));
280
- cacheGet = configUtils.cache.get;
281
- cacheSet = configUtils.cache.set;
282
- functionToCall = tailwindMerge;
283
- return tailwindMerge(classList);
284
- }
285
- function tailwindMerge(classList) {
286
- const cachedResult = cacheGet(classList);
287
- if (cachedResult) return cachedResult;
288
- const result = mergeClassList(classList, configUtils);
289
- cacheSet(classList, result);
290
- return result;
291
- }
292
- return function callTailwindMerge() {
293
- return functionToCall(twJoin.apply(null, arguments));
294
- };
295
- }
296
- var fromTheme = (key) => {
297
- const themeGetter = (theme) => theme[key] || [];
298
- themeGetter.isThemeGetter = true;
299
- return themeGetter;
300
- };
301
- var arbitraryValueRegex = /^\[(?:([a-z-]+):)?(.+)\]$/i;
302
- var fractionRegex = /^\d+\/\d+$/;
303
- var stringLengths = /* @__PURE__ */ new Set([
304
- "px",
305
- "full",
306
- "screen"
307
- ]);
308
- var tshirtUnitRegex = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/;
309
- 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$/;
310
- var colorFunctionRegex = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/;
311
- var shadowRegex = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;
312
- var imageRegex = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;
313
- var isLength = (value) => isNumber(value) || stringLengths.has(value) || fractionRegex.test(value);
314
- var isArbitraryLength = (value) => getIsArbitraryValue(value, "length", isLengthOnly);
315
- var isNumber = (value) => Boolean(value) && !Number.isNaN(Number(value));
316
- var isArbitraryNumber = (value) => getIsArbitraryValue(value, "number", isNumber);
317
- var isInteger = (value) => Boolean(value) && Number.isInteger(Number(value));
318
- var isPercent = (value) => value.endsWith("%") && isNumber(value.slice(0, -1));
319
- var isArbitraryValue = (value) => arbitraryValueRegex.test(value);
320
- var isTshirtSize = (value) => tshirtUnitRegex.test(value);
321
- var sizeLabels = /* @__PURE__ */ new Set([
322
- "length",
323
- "size",
324
- "percentage"
325
- ]);
326
- var isArbitrarySize = (value) => getIsArbitraryValue(value, sizeLabels, isNever);
327
- var isArbitraryPosition = (value) => getIsArbitraryValue(value, "position", isNever);
328
- var imageLabels = /* @__PURE__ */ new Set(["image", "url"]);
329
- var isArbitraryImage = (value) => getIsArbitraryValue(value, imageLabels, isImage);
330
- var isArbitraryShadow = (value) => getIsArbitraryValue(value, "", isShadow);
331
- var isAny = () => true;
332
- var getIsArbitraryValue = (value, label, testValue) => {
333
- const result = arbitraryValueRegex.exec(value);
334
- if (result) {
335
- if (result[1]) return typeof label === "string" ? result[1] === label : label.has(result[1]);
336
- return testValue(result[2]);
337
- }
338
- return false;
339
- };
340
- var isLengthOnly = (value) => lengthUnitRegex.test(value) && !colorFunctionRegex.test(value);
341
- var isNever = () => false;
342
- var isShadow = (value) => shadowRegex.test(value);
343
- var isImage = (value) => imageRegex.test(value);
344
- var getDefaultConfig = () => {
345
- const colors = fromTheme("colors");
346
- const spacing = fromTheme("spacing");
347
- const blur = fromTheme("blur");
348
- const brightness = fromTheme("brightness");
349
- const borderColor = fromTheme("borderColor");
350
- const borderRadius = fromTheme("borderRadius");
351
- const borderSpacing = fromTheme("borderSpacing");
352
- const borderWidth = fromTheme("borderWidth");
353
- const contrast = fromTheme("contrast");
354
- const grayscale = fromTheme("grayscale");
355
- const hueRotate = fromTheme("hueRotate");
356
- const invert = fromTheme("invert");
357
- const gap = fromTheme("gap");
358
- const gradientColorStops = fromTheme("gradientColorStops");
359
- const gradientColorStopPositions = fromTheme("gradientColorStopPositions");
360
- const inset = fromTheme("inset");
361
- const margin = fromTheme("margin");
362
- const opacity = fromTheme("opacity");
363
- const padding = fromTheme("padding");
364
- const saturate = fromTheme("saturate");
365
- const scale = fromTheme("scale");
366
- const sepia = fromTheme("sepia");
367
- const skew = fromTheme("skew");
368
- const space = fromTheme("space");
369
- const translate = fromTheme("translate");
370
- const getOverscroll = () => [
371
- "auto",
372
- "contain",
373
- "none"
374
- ];
375
- const getOverflow = () => [
376
- "auto",
377
- "hidden",
378
- "clip",
379
- "visible",
380
- "scroll"
381
- ];
382
- const getSpacingWithAutoAndArbitrary = () => [
383
- "auto",
384
- isArbitraryValue,
385
- spacing
386
- ];
387
- const getSpacingWithArbitrary = () => [isArbitraryValue, spacing];
388
- const getLengthWithEmptyAndArbitrary = () => [
389
- "",
390
- isLength,
391
- isArbitraryLength
392
- ];
393
- const getNumberWithAutoAndArbitrary = () => [
394
- "auto",
395
- isNumber,
396
- isArbitraryValue
397
- ];
398
- const getPositions = () => [
399
- "bottom",
400
- "center",
401
- "left",
402
- "left-bottom",
403
- "left-top",
404
- "right",
405
- "right-bottom",
406
- "right-top",
407
- "top"
408
- ];
409
- const getLineStyles = () => [
410
- "solid",
411
- "dashed",
412
- "dotted",
413
- "double",
414
- "none"
415
- ];
416
- const getBlendModes = () => [
417
- "normal",
418
- "multiply",
419
- "screen",
420
- "overlay",
421
- "darken",
422
- "lighten",
423
- "color-dodge",
424
- "color-burn",
425
- "hard-light",
426
- "soft-light",
427
- "difference",
428
- "exclusion",
429
- "hue",
430
- "saturation",
431
- "color",
432
- "luminosity"
433
- ];
434
- const getAlign = () => [
435
- "start",
436
- "end",
437
- "center",
438
- "between",
439
- "around",
440
- "evenly",
441
- "stretch"
442
- ];
443
- const getZeroAndEmpty = () => [
444
- "",
445
- "0",
446
- isArbitraryValue
447
- ];
448
- const getBreaks = () => [
449
- "auto",
450
- "avoid",
451
- "all",
452
- "avoid-page",
453
- "page",
454
- "left",
455
- "right",
456
- "column"
457
- ];
458
- const getNumberAndArbitrary = () => [isNumber, isArbitraryValue];
459
- return {
460
- cacheSize: 500,
461
- separator: ":",
462
- theme: {
463
- colors: [isAny],
464
- spacing: [isLength, isArbitraryLength],
465
- blur: [
466
- "none",
467
- "",
468
- isTshirtSize,
469
- isArbitraryValue
470
- ],
471
- brightness: getNumberAndArbitrary(),
472
- borderColor: [colors],
473
- borderRadius: [
474
- "none",
475
- "",
476
- "full",
477
- isTshirtSize,
478
- isArbitraryValue
479
- ],
480
- borderSpacing: getSpacingWithArbitrary(),
481
- borderWidth: getLengthWithEmptyAndArbitrary(),
482
- contrast: getNumberAndArbitrary(),
483
- grayscale: getZeroAndEmpty(),
484
- hueRotate: getNumberAndArbitrary(),
485
- invert: getZeroAndEmpty(),
486
- gap: getSpacingWithArbitrary(),
487
- gradientColorStops: [colors],
488
- gradientColorStopPositions: [isPercent, isArbitraryLength],
489
- inset: getSpacingWithAutoAndArbitrary(),
490
- margin: getSpacingWithAutoAndArbitrary(),
491
- opacity: getNumberAndArbitrary(),
492
- padding: getSpacingWithArbitrary(),
493
- saturate: getNumberAndArbitrary(),
494
- scale: getNumberAndArbitrary(),
495
- sepia: getZeroAndEmpty(),
496
- skew: getNumberAndArbitrary(),
497
- space: getSpacingWithArbitrary(),
498
- translate: getSpacingWithArbitrary()
499
- },
500
- classGroups: {
501
- aspect: [{ aspect: [
502
- "auto",
503
- "square",
504
- "video",
505
- isArbitraryValue
506
- ] }],
507
- container: ["container"],
508
- columns: [{ columns: [isTshirtSize] }],
509
- "break-after": [{ "break-after": getBreaks() }],
510
- "break-before": [{ "break-before": getBreaks() }],
511
- "break-inside": [{ "break-inside": [
512
- "auto",
513
- "avoid",
514
- "avoid-page",
515
- "avoid-column"
516
- ] }],
517
- "box-decoration": [{ "box-decoration": ["slice", "clone"] }],
518
- box: [{ box: ["border", "content"] }],
519
- display: [
520
- "block",
521
- "inline-block",
522
- "inline",
523
- "flex",
524
- "inline-flex",
525
- "table",
526
- "inline-table",
527
- "table-caption",
528
- "table-cell",
529
- "table-column",
530
- "table-column-group",
531
- "table-footer-group",
532
- "table-header-group",
533
- "table-row-group",
534
- "table-row",
535
- "flow-root",
536
- "grid",
537
- "inline-grid",
538
- "contents",
539
- "list-item",
540
- "hidden"
541
- ],
542
- float: [{ float: [
543
- "right",
544
- "left",
545
- "none",
546
- "start",
547
- "end"
548
- ] }],
549
- clear: [{ clear: [
550
- "left",
551
- "right",
552
- "both",
553
- "none",
554
- "start",
555
- "end"
556
- ] }],
557
- isolation: ["isolate", "isolation-auto"],
558
- "object-fit": [{ object: [
559
- "contain",
560
- "cover",
561
- "fill",
562
- "none",
563
- "scale-down"
564
- ] }],
565
- "object-position": [{ object: [...getPositions(), isArbitraryValue] }],
566
- overflow: [{ overflow: getOverflow() }],
567
- "overflow-x": [{ "overflow-x": getOverflow() }],
568
- "overflow-y": [{ "overflow-y": getOverflow() }],
569
- overscroll: [{ overscroll: getOverscroll() }],
570
- "overscroll-x": [{ "overscroll-x": getOverscroll() }],
571
- "overscroll-y": [{ "overscroll-y": getOverscroll() }],
572
- position: [
573
- "static",
574
- "fixed",
575
- "absolute",
576
- "relative",
577
- "sticky"
578
- ],
579
- inset: [{ inset: [inset] }],
580
- "inset-x": [{ "inset-x": [inset] }],
581
- "inset-y": [{ "inset-y": [inset] }],
582
- start: [{ start: [inset] }],
583
- end: [{ end: [inset] }],
584
- top: [{ top: [inset] }],
585
- right: [{ right: [inset] }],
586
- bottom: [{ bottom: [inset] }],
587
- left: [{ left: [inset] }],
588
- visibility: [
589
- "visible",
590
- "invisible",
591
- "collapse"
592
- ],
593
- z: [{ z: [
594
- "auto",
595
- isInteger,
596
- isArbitraryValue
597
- ] }],
598
- basis: [{ basis: getSpacingWithAutoAndArbitrary() }],
599
- "flex-direction": [{ flex: [
600
- "row",
601
- "row-reverse",
602
- "col",
603
- "col-reverse"
604
- ] }],
605
- "flex-wrap": [{ flex: [
606
- "wrap",
607
- "wrap-reverse",
608
- "nowrap"
609
- ] }],
610
- flex: [{ flex: [
611
- "1",
612
- "auto",
613
- "initial",
614
- "none",
615
- isArbitraryValue
616
- ] }],
617
- grow: [{ grow: getZeroAndEmpty() }],
618
- shrink: [{ shrink: getZeroAndEmpty() }],
619
- order: [{ order: [
620
- "first",
621
- "last",
622
- "none",
623
- isInteger,
624
- isArbitraryValue
625
- ] }],
626
- "grid-cols": [{ "grid-cols": [isAny] }],
627
- "col-start-end": [{ col: [
628
- "auto",
629
- { span: [
630
- "full",
631
- isInteger,
632
- isArbitraryValue
633
- ] },
634
- isArbitraryValue
635
- ] }],
636
- "col-start": [{ "col-start": getNumberWithAutoAndArbitrary() }],
637
- "col-end": [{ "col-end": getNumberWithAutoAndArbitrary() }],
638
- "grid-rows": [{ "grid-rows": [isAny] }],
639
- "row-start-end": [{ row: [
640
- "auto",
641
- { span: [isInteger, isArbitraryValue] },
642
- isArbitraryValue
643
- ] }],
644
- "row-start": [{ "row-start": getNumberWithAutoAndArbitrary() }],
645
- "row-end": [{ "row-end": getNumberWithAutoAndArbitrary() }],
646
- "grid-flow": [{ "grid-flow": [
647
- "row",
648
- "col",
649
- "dense",
650
- "row-dense",
651
- "col-dense"
652
- ] }],
653
- "auto-cols": [{ "auto-cols": [
654
- "auto",
655
- "min",
656
- "max",
657
- "fr",
658
- isArbitraryValue
659
- ] }],
660
- "auto-rows": [{ "auto-rows": [
661
- "auto",
662
- "min",
663
- "max",
664
- "fr",
665
- isArbitraryValue
666
- ] }],
667
- gap: [{ gap: [gap] }],
668
- "gap-x": [{ "gap-x": [gap] }],
669
- "gap-y": [{ "gap-y": [gap] }],
670
- "justify-content": [{ justify: ["normal", ...getAlign()] }],
671
- "justify-items": [{ "justify-items": [
672
- "start",
673
- "end",
674
- "center",
675
- "stretch"
676
- ] }],
677
- "justify-self": [{ "justify-self": [
678
- "auto",
679
- "start",
680
- "end",
681
- "center",
682
- "stretch"
683
- ] }],
684
- "align-content": [{ content: [
685
- "normal",
686
- ...getAlign(),
687
- "baseline"
688
- ] }],
689
- "align-items": [{ items: [
690
- "start",
691
- "end",
692
- "center",
693
- "baseline",
694
- "stretch"
695
- ] }],
696
- "align-self": [{ self: [
697
- "auto",
698
- "start",
699
- "end",
700
- "center",
701
- "stretch",
702
- "baseline"
703
- ] }],
704
- "place-content": [{ "place-content": [...getAlign(), "baseline"] }],
705
- "place-items": [{ "place-items": [
706
- "start",
707
- "end",
708
- "center",
709
- "baseline",
710
- "stretch"
711
- ] }],
712
- "place-self": [{ "place-self": [
713
- "auto",
714
- "start",
715
- "end",
716
- "center",
717
- "stretch"
718
- ] }],
719
- p: [{ p: [padding] }],
720
- px: [{ px: [padding] }],
721
- py: [{ py: [padding] }],
722
- ps: [{ ps: [padding] }],
723
- pe: [{ pe: [padding] }],
724
- pt: [{ pt: [padding] }],
725
- pr: [{ pr: [padding] }],
726
- pb: [{ pb: [padding] }],
727
- pl: [{ pl: [padding] }],
728
- m: [{ m: [margin] }],
729
- mx: [{ mx: [margin] }],
730
- my: [{ my: [margin] }],
731
- ms: [{ ms: [margin] }],
732
- me: [{ me: [margin] }],
733
- mt: [{ mt: [margin] }],
734
- mr: [{ mr: [margin] }],
735
- mb: [{ mb: [margin] }],
736
- ml: [{ ml: [margin] }],
737
- "space-x": [{ "space-x": [space] }],
738
- "space-x-reverse": ["space-x-reverse"],
739
- "space-y": [{ "space-y": [space] }],
740
- "space-y-reverse": ["space-y-reverse"],
741
- w: [{ w: [
742
- "auto",
743
- "min",
744
- "max",
745
- "fit",
746
- "svw",
747
- "lvw",
748
- "dvw",
749
- isArbitraryValue,
750
- spacing
751
- ] }],
752
- "min-w": [{ "min-w": [
753
- isArbitraryValue,
754
- spacing,
755
- "min",
756
- "max",
757
- "fit"
758
- ] }],
759
- "max-w": [{ "max-w": [
760
- isArbitraryValue,
761
- spacing,
762
- "none",
763
- "full",
764
- "min",
765
- "max",
766
- "fit",
767
- "prose",
768
- { screen: [isTshirtSize] },
769
- isTshirtSize
770
- ] }],
771
- h: [{ h: [
772
- isArbitraryValue,
773
- spacing,
774
- "auto",
775
- "min",
776
- "max",
777
- "fit",
778
- "svh",
779
- "lvh",
780
- "dvh"
781
- ] }],
782
- "min-h": [{ "min-h": [
783
- isArbitraryValue,
784
- spacing,
785
- "min",
786
- "max",
787
- "fit",
788
- "svh",
789
- "lvh",
790
- "dvh"
791
- ] }],
792
- "max-h": [{ "max-h": [
793
- isArbitraryValue,
794
- spacing,
795
- "min",
796
- "max",
797
- "fit",
798
- "svh",
799
- "lvh",
800
- "dvh"
801
- ] }],
802
- size: [{ size: [
803
- isArbitraryValue,
804
- spacing,
805
- "auto",
806
- "min",
807
- "max",
808
- "fit"
809
- ] }],
810
- "font-size": [{ text: [
811
- "base",
812
- isTshirtSize,
813
- isArbitraryLength
814
- ] }],
815
- "font-smoothing": ["antialiased", "subpixel-antialiased"],
816
- "font-style": ["italic", "not-italic"],
817
- "font-weight": [{ font: [
818
- "thin",
819
- "extralight",
820
- "light",
821
- "normal",
822
- "medium",
823
- "semibold",
824
- "bold",
825
- "extrabold",
826
- "black",
827
- isArbitraryNumber
828
- ] }],
829
- "font-family": [{ font: [isAny] }],
830
- "fvn-normal": ["normal-nums"],
831
- "fvn-ordinal": ["ordinal"],
832
- "fvn-slashed-zero": ["slashed-zero"],
833
- "fvn-figure": ["lining-nums", "oldstyle-nums"],
834
- "fvn-spacing": ["proportional-nums", "tabular-nums"],
835
- "fvn-fraction": ["diagonal-fractions", "stacked-fractions"],
836
- tracking: [{ tracking: [
837
- "tighter",
838
- "tight",
839
- "normal",
840
- "wide",
841
- "wider",
842
- "widest",
843
- isArbitraryValue
844
- ] }],
845
- "line-clamp": [{ "line-clamp": [
846
- "none",
847
- isNumber,
848
- isArbitraryNumber
849
- ] }],
850
- leading: [{ leading: [
851
- "none",
852
- "tight",
853
- "snug",
854
- "normal",
855
- "relaxed",
856
- "loose",
857
- isLength,
858
- isArbitraryValue
859
- ] }],
860
- "list-image": [{ "list-image": ["none", isArbitraryValue] }],
861
- "list-style-type": [{ list: [
862
- "none",
863
- "disc",
864
- "decimal",
865
- isArbitraryValue
866
- ] }],
867
- "list-style-position": [{ list: ["inside", "outside"] }],
868
- "placeholder-color": [{ placeholder: [colors] }],
869
- "placeholder-opacity": [{ "placeholder-opacity": [opacity] }],
870
- "text-alignment": [{ text: [
871
- "left",
872
- "center",
873
- "right",
874
- "justify",
875
- "start",
876
- "end"
877
- ] }],
878
- "text-color": [{ text: [colors] }],
879
- "text-opacity": [{ "text-opacity": [opacity] }],
880
- "text-decoration": [
881
- "underline",
882
- "overline",
883
- "line-through",
884
- "no-underline"
885
- ],
886
- "text-decoration-style": [{ decoration: [...getLineStyles(), "wavy"] }],
887
- "text-decoration-thickness": [{ decoration: [
888
- "auto",
889
- "from-font",
890
- isLength,
891
- isArbitraryLength
892
- ] }],
893
- "underline-offset": [{ "underline-offset": [
894
- "auto",
895
- isLength,
896
- isArbitraryValue
897
- ] }],
898
- "text-decoration-color": [{ decoration: [colors] }],
899
- "text-transform": [
900
- "uppercase",
901
- "lowercase",
902
- "capitalize",
903
- "normal-case"
904
- ],
905
- "text-overflow": [
906
- "truncate",
907
- "text-ellipsis",
908
- "text-clip"
909
- ],
910
- "text-wrap": [{ text: [
911
- "wrap",
912
- "nowrap",
913
- "balance",
914
- "pretty"
915
- ] }],
916
- indent: [{ indent: getSpacingWithArbitrary() }],
917
- "vertical-align": [{ align: [
918
- "baseline",
919
- "top",
920
- "middle",
921
- "bottom",
922
- "text-top",
923
- "text-bottom",
924
- "sub",
925
- "super",
926
- isArbitraryValue
927
- ] }],
928
- whitespace: [{ whitespace: [
929
- "normal",
930
- "nowrap",
931
- "pre",
932
- "pre-line",
933
- "pre-wrap",
934
- "break-spaces"
935
- ] }],
936
- break: [{ break: [
937
- "normal",
938
- "words",
939
- "all",
940
- "keep"
941
- ] }],
942
- hyphens: [{ hyphens: [
943
- "none",
944
- "manual",
945
- "auto"
946
- ] }],
947
- content: [{ content: ["none", isArbitraryValue] }],
948
- "bg-attachment": [{ bg: [
949
- "fixed",
950
- "local",
951
- "scroll"
952
- ] }],
953
- "bg-clip": [{ "bg-clip": [
954
- "border",
955
- "padding",
956
- "content",
957
- "text"
958
- ] }],
959
- "bg-opacity": [{ "bg-opacity": [opacity] }],
960
- "bg-origin": [{ "bg-origin": [
961
- "border",
962
- "padding",
963
- "content"
964
- ] }],
965
- "bg-position": [{ bg: [...getPositions(), isArbitraryPosition] }],
966
- "bg-repeat": [{ bg: ["no-repeat", { repeat: [
967
- "",
968
- "x",
969
- "y",
970
- "round",
971
- "space"
972
- ] }] }],
973
- "bg-size": [{ bg: [
974
- "auto",
975
- "cover",
976
- "contain",
977
- isArbitrarySize
978
- ] }],
979
- "bg-image": [{ bg: [
980
- "none",
981
- { "gradient-to": [
982
- "t",
983
- "tr",
984
- "r",
985
- "br",
986
- "b",
987
- "bl",
988
- "l",
989
- "tl"
990
- ] },
991
- isArbitraryImage
992
- ] }],
993
- "bg-color": [{ bg: [colors] }],
994
- "gradient-from-pos": [{ from: [gradientColorStopPositions] }],
995
- "gradient-via-pos": [{ via: [gradientColorStopPositions] }],
996
- "gradient-to-pos": [{ to: [gradientColorStopPositions] }],
997
- "gradient-from": [{ from: [gradientColorStops] }],
998
- "gradient-via": [{ via: [gradientColorStops] }],
999
- "gradient-to": [{ to: [gradientColorStops] }],
1000
- rounded: [{ rounded: [borderRadius] }],
1001
- "rounded-s": [{ "rounded-s": [borderRadius] }],
1002
- "rounded-e": [{ "rounded-e": [borderRadius] }],
1003
- "rounded-t": [{ "rounded-t": [borderRadius] }],
1004
- "rounded-r": [{ "rounded-r": [borderRadius] }],
1005
- "rounded-b": [{ "rounded-b": [borderRadius] }],
1006
- "rounded-l": [{ "rounded-l": [borderRadius] }],
1007
- "rounded-ss": [{ "rounded-ss": [borderRadius] }],
1008
- "rounded-se": [{ "rounded-se": [borderRadius] }],
1009
- "rounded-ee": [{ "rounded-ee": [borderRadius] }],
1010
- "rounded-es": [{ "rounded-es": [borderRadius] }],
1011
- "rounded-tl": [{ "rounded-tl": [borderRadius] }],
1012
- "rounded-tr": [{ "rounded-tr": [borderRadius] }],
1013
- "rounded-br": [{ "rounded-br": [borderRadius] }],
1014
- "rounded-bl": [{ "rounded-bl": [borderRadius] }],
1015
- "border-w": [{ border: [borderWidth] }],
1016
- "border-w-x": [{ "border-x": [borderWidth] }],
1017
- "border-w-y": [{ "border-y": [borderWidth] }],
1018
- "border-w-s": [{ "border-s": [borderWidth] }],
1019
- "border-w-e": [{ "border-e": [borderWidth] }],
1020
- "border-w-t": [{ "border-t": [borderWidth] }],
1021
- "border-w-r": [{ "border-r": [borderWidth] }],
1022
- "border-w-b": [{ "border-b": [borderWidth] }],
1023
- "border-w-l": [{ "border-l": [borderWidth] }],
1024
- "border-opacity": [{ "border-opacity": [opacity] }],
1025
- "border-style": [{ border: [...getLineStyles(), "hidden"] }],
1026
- "divide-x": [{ "divide-x": [borderWidth] }],
1027
- "divide-x-reverse": ["divide-x-reverse"],
1028
- "divide-y": [{ "divide-y": [borderWidth] }],
1029
- "divide-y-reverse": ["divide-y-reverse"],
1030
- "divide-opacity": [{ "divide-opacity": [opacity] }],
1031
- "divide-style": [{ divide: getLineStyles() }],
1032
- "border-color": [{ border: [borderColor] }],
1033
- "border-color-x": [{ "border-x": [borderColor] }],
1034
- "border-color-y": [{ "border-y": [borderColor] }],
1035
- "border-color-s": [{ "border-s": [borderColor] }],
1036
- "border-color-e": [{ "border-e": [borderColor] }],
1037
- "border-color-t": [{ "border-t": [borderColor] }],
1038
- "border-color-r": [{ "border-r": [borderColor] }],
1039
- "border-color-b": [{ "border-b": [borderColor] }],
1040
- "border-color-l": [{ "border-l": [borderColor] }],
1041
- "divide-color": [{ divide: [borderColor] }],
1042
- "outline-style": [{ outline: ["", ...getLineStyles()] }],
1043
- "outline-offset": [{ "outline-offset": [isLength, isArbitraryValue] }],
1044
- "outline-w": [{ outline: [isLength, isArbitraryLength] }],
1045
- "outline-color": [{ outline: [colors] }],
1046
- "ring-w": [{ ring: getLengthWithEmptyAndArbitrary() }],
1047
- "ring-w-inset": ["ring-inset"],
1048
- "ring-color": [{ ring: [colors] }],
1049
- "ring-opacity": [{ "ring-opacity": [opacity] }],
1050
- "ring-offset-w": [{ "ring-offset": [isLength, isArbitraryLength] }],
1051
- "ring-offset-color": [{ "ring-offset": [colors] }],
1052
- shadow: [{ shadow: [
1053
- "",
1054
- "inner",
1055
- "none",
1056
- isTshirtSize,
1057
- isArbitraryShadow
1058
- ] }],
1059
- "shadow-color": [{ shadow: [isAny] }],
1060
- opacity: [{ opacity: [opacity] }],
1061
- "mix-blend": [{ "mix-blend": [
1062
- ...getBlendModes(),
1063
- "plus-lighter",
1064
- "plus-darker"
1065
- ] }],
1066
- "bg-blend": [{ "bg-blend": getBlendModes() }],
1067
- filter: [{ filter: ["", "none"] }],
1068
- blur: [{ blur: [blur] }],
1069
- brightness: [{ brightness: [brightness] }],
1070
- contrast: [{ contrast: [contrast] }],
1071
- "drop-shadow": [{ "drop-shadow": [
1072
- "",
1073
- "none",
1074
- isTshirtSize,
1075
- isArbitraryValue
1076
- ] }],
1077
- grayscale: [{ grayscale: [grayscale] }],
1078
- "hue-rotate": [{ "hue-rotate": [hueRotate] }],
1079
- invert: [{ invert: [invert] }],
1080
- saturate: [{ saturate: [saturate] }],
1081
- sepia: [{ sepia: [sepia] }],
1082
- "backdrop-filter": [{ "backdrop-filter": ["", "none"] }],
1083
- "backdrop-blur": [{ "backdrop-blur": [blur] }],
1084
- "backdrop-brightness": [{ "backdrop-brightness": [brightness] }],
1085
- "backdrop-contrast": [{ "backdrop-contrast": [contrast] }],
1086
- "backdrop-grayscale": [{ "backdrop-grayscale": [grayscale] }],
1087
- "backdrop-hue-rotate": [{ "backdrop-hue-rotate": [hueRotate] }],
1088
- "backdrop-invert": [{ "backdrop-invert": [invert] }],
1089
- "backdrop-opacity": [{ "backdrop-opacity": [opacity] }],
1090
- "backdrop-saturate": [{ "backdrop-saturate": [saturate] }],
1091
- "backdrop-sepia": [{ "backdrop-sepia": [sepia] }],
1092
- "border-collapse": [{ border: ["collapse", "separate"] }],
1093
- "border-spacing": [{ "border-spacing": [borderSpacing] }],
1094
- "border-spacing-x": [{ "border-spacing-x": [borderSpacing] }],
1095
- "border-spacing-y": [{ "border-spacing-y": [borderSpacing] }],
1096
- "table-layout": [{ table: ["auto", "fixed"] }],
1097
- caption: [{ caption: ["top", "bottom"] }],
1098
- transition: [{ transition: [
1099
- "none",
1100
- "all",
1101
- "",
1102
- "colors",
1103
- "opacity",
1104
- "shadow",
1105
- "transform",
1106
- isArbitraryValue
1107
- ] }],
1108
- duration: [{ duration: getNumberAndArbitrary() }],
1109
- ease: [{ ease: [
1110
- "linear",
1111
- "in",
1112
- "out",
1113
- "in-out",
1114
- isArbitraryValue
1115
- ] }],
1116
- delay: [{ delay: getNumberAndArbitrary() }],
1117
- animate: [{ animate: [
1118
- "none",
1119
- "spin",
1120
- "ping",
1121
- "pulse",
1122
- "bounce",
1123
- isArbitraryValue
1124
- ] }],
1125
- transform: [{ transform: [
1126
- "",
1127
- "gpu",
1128
- "none"
1129
- ] }],
1130
- scale: [{ scale: [scale] }],
1131
- "scale-x": [{ "scale-x": [scale] }],
1132
- "scale-y": [{ "scale-y": [scale] }],
1133
- rotate: [{ rotate: [isInteger, isArbitraryValue] }],
1134
- "translate-x": [{ "translate-x": [translate] }],
1135
- "translate-y": [{ "translate-y": [translate] }],
1136
- "skew-x": [{ "skew-x": [skew] }],
1137
- "skew-y": [{ "skew-y": [skew] }],
1138
- "transform-origin": [{ origin: [
1139
- "center",
1140
- "top",
1141
- "top-right",
1142
- "right",
1143
- "bottom-right",
1144
- "bottom",
1145
- "bottom-left",
1146
- "left",
1147
- "top-left",
1148
- isArbitraryValue
1149
- ] }],
1150
- accent: [{ accent: ["auto", colors] }],
1151
- appearance: [{ appearance: ["none", "auto"] }],
1152
- cursor: [{ cursor: [
1153
- "auto",
1154
- "default",
1155
- "pointer",
1156
- "wait",
1157
- "text",
1158
- "move",
1159
- "help",
1160
- "not-allowed",
1161
- "none",
1162
- "context-menu",
1163
- "progress",
1164
- "cell",
1165
- "crosshair",
1166
- "vertical-text",
1167
- "alias",
1168
- "copy",
1169
- "no-drop",
1170
- "grab",
1171
- "grabbing",
1172
- "all-scroll",
1173
- "col-resize",
1174
- "row-resize",
1175
- "n-resize",
1176
- "e-resize",
1177
- "s-resize",
1178
- "w-resize",
1179
- "ne-resize",
1180
- "nw-resize",
1181
- "se-resize",
1182
- "sw-resize",
1183
- "ew-resize",
1184
- "ns-resize",
1185
- "nesw-resize",
1186
- "nwse-resize",
1187
- "zoom-in",
1188
- "zoom-out",
1189
- isArbitraryValue
1190
- ] }],
1191
- "caret-color": [{ caret: [colors] }],
1192
- "pointer-events": [{ "pointer-events": ["none", "auto"] }],
1193
- resize: [{ resize: [
1194
- "none",
1195
- "y",
1196
- "x",
1197
- ""
1198
- ] }],
1199
- "scroll-behavior": [{ scroll: ["auto", "smooth"] }],
1200
- "scroll-m": [{ "scroll-m": getSpacingWithArbitrary() }],
1201
- "scroll-mx": [{ "scroll-mx": getSpacingWithArbitrary() }],
1202
- "scroll-my": [{ "scroll-my": getSpacingWithArbitrary() }],
1203
- "scroll-ms": [{ "scroll-ms": getSpacingWithArbitrary() }],
1204
- "scroll-me": [{ "scroll-me": getSpacingWithArbitrary() }],
1205
- "scroll-mt": [{ "scroll-mt": getSpacingWithArbitrary() }],
1206
- "scroll-mr": [{ "scroll-mr": getSpacingWithArbitrary() }],
1207
- "scroll-mb": [{ "scroll-mb": getSpacingWithArbitrary() }],
1208
- "scroll-ml": [{ "scroll-ml": getSpacingWithArbitrary() }],
1209
- "scroll-p": [{ "scroll-p": getSpacingWithArbitrary() }],
1210
- "scroll-px": [{ "scroll-px": getSpacingWithArbitrary() }],
1211
- "scroll-py": [{ "scroll-py": getSpacingWithArbitrary() }],
1212
- "scroll-ps": [{ "scroll-ps": getSpacingWithArbitrary() }],
1213
- "scroll-pe": [{ "scroll-pe": getSpacingWithArbitrary() }],
1214
- "scroll-pt": [{ "scroll-pt": getSpacingWithArbitrary() }],
1215
- "scroll-pr": [{ "scroll-pr": getSpacingWithArbitrary() }],
1216
- "scroll-pb": [{ "scroll-pb": getSpacingWithArbitrary() }],
1217
- "scroll-pl": [{ "scroll-pl": getSpacingWithArbitrary() }],
1218
- "snap-align": [{ snap: [
1219
- "start",
1220
- "end",
1221
- "center",
1222
- "align-none"
1223
- ] }],
1224
- "snap-stop": [{ snap: ["normal", "always"] }],
1225
- "snap-type": [{ snap: [
1226
- "none",
1227
- "x",
1228
- "y",
1229
- "both"
1230
- ] }],
1231
- "snap-strictness": [{ snap: ["mandatory", "proximity"] }],
1232
- touch: [{ touch: [
1233
- "auto",
1234
- "none",
1235
- "manipulation"
1236
- ] }],
1237
- "touch-x": [{ "touch-pan": [
1238
- "x",
1239
- "left",
1240
- "right"
1241
- ] }],
1242
- "touch-y": [{ "touch-pan": [
1243
- "y",
1244
- "up",
1245
- "down"
1246
- ] }],
1247
- "touch-pz": ["touch-pinch-zoom"],
1248
- select: [{ select: [
1249
- "none",
1250
- "text",
1251
- "all",
1252
- "auto"
1253
- ] }],
1254
- "will-change": [{ "will-change": [
1255
- "auto",
1256
- "scroll",
1257
- "contents",
1258
- "transform",
1259
- isArbitraryValue
1260
- ] }],
1261
- fill: [{ fill: [colors, "none"] }],
1262
- "stroke-w": [{ stroke: [
1263
- isLength,
1264
- isArbitraryLength,
1265
- isArbitraryNumber
1266
- ] }],
1267
- stroke: [{ stroke: [colors, "none"] }],
1268
- sr: ["sr-only", "not-sr-only"],
1269
- "forced-color-adjust": [{ "forced-color-adjust": ["auto", "none"] }]
1270
- },
1271
- conflictingClassGroups: {
1272
- overflow: ["overflow-x", "overflow-y"],
1273
- overscroll: ["overscroll-x", "overscroll-y"],
1274
- inset: [
1275
- "inset-x",
1276
- "inset-y",
1277
- "start",
1278
- "end",
1279
- "top",
1280
- "right",
1281
- "bottom",
1282
- "left"
1283
- ],
1284
- "inset-x": ["right", "left"],
1285
- "inset-y": ["top", "bottom"],
1286
- flex: [
1287
- "basis",
1288
- "grow",
1289
- "shrink"
1290
- ],
1291
- gap: ["gap-x", "gap-y"],
1292
- p: [
1293
- "px",
1294
- "py",
1295
- "ps",
1296
- "pe",
1297
- "pt",
1298
- "pr",
1299
- "pb",
1300
- "pl"
1301
- ],
1302
- px: ["pr", "pl"],
1303
- py: ["pt", "pb"],
1304
- m: [
1305
- "mx",
1306
- "my",
1307
- "ms",
1308
- "me",
1309
- "mt",
1310
- "mr",
1311
- "mb",
1312
- "ml"
1313
- ],
1314
- mx: ["mr", "ml"],
1315
- my: ["mt", "mb"],
1316
- size: ["w", "h"],
1317
- "font-size": ["leading"],
1318
- "fvn-normal": [
1319
- "fvn-ordinal",
1320
- "fvn-slashed-zero",
1321
- "fvn-figure",
1322
- "fvn-spacing",
1323
- "fvn-fraction"
1324
- ],
1325
- "fvn-ordinal": ["fvn-normal"],
1326
- "fvn-slashed-zero": ["fvn-normal"],
1327
- "fvn-figure": ["fvn-normal"],
1328
- "fvn-spacing": ["fvn-normal"],
1329
- "fvn-fraction": ["fvn-normal"],
1330
- "line-clamp": ["display", "overflow"],
1331
- rounded: [
1332
- "rounded-s",
1333
- "rounded-e",
1334
- "rounded-t",
1335
- "rounded-r",
1336
- "rounded-b",
1337
- "rounded-l",
1338
- "rounded-ss",
1339
- "rounded-se",
1340
- "rounded-ee",
1341
- "rounded-es",
1342
- "rounded-tl",
1343
- "rounded-tr",
1344
- "rounded-br",
1345
- "rounded-bl"
1346
- ],
1347
- "rounded-s": ["rounded-ss", "rounded-es"],
1348
- "rounded-e": ["rounded-se", "rounded-ee"],
1349
- "rounded-t": ["rounded-tl", "rounded-tr"],
1350
- "rounded-r": ["rounded-tr", "rounded-br"],
1351
- "rounded-b": ["rounded-br", "rounded-bl"],
1352
- "rounded-l": ["rounded-tl", "rounded-bl"],
1353
- "border-spacing": ["border-spacing-x", "border-spacing-y"],
1354
- "border-w": [
1355
- "border-w-s",
1356
- "border-w-e",
1357
- "border-w-t",
1358
- "border-w-r",
1359
- "border-w-b",
1360
- "border-w-l"
1361
- ],
1362
- "border-w-x": ["border-w-r", "border-w-l"],
1363
- "border-w-y": ["border-w-t", "border-w-b"],
1364
- "border-color": [
1365
- "border-color-s",
1366
- "border-color-e",
1367
- "border-color-t",
1368
- "border-color-r",
1369
- "border-color-b",
1370
- "border-color-l"
1371
- ],
1372
- "border-color-x": ["border-color-r", "border-color-l"],
1373
- "border-color-y": ["border-color-t", "border-color-b"],
1374
- "scroll-m": [
1375
- "scroll-mx",
1376
- "scroll-my",
1377
- "scroll-ms",
1378
- "scroll-me",
1379
- "scroll-mt",
1380
- "scroll-mr",
1381
- "scroll-mb",
1382
- "scroll-ml"
1383
- ],
1384
- "scroll-mx": ["scroll-mr", "scroll-ml"],
1385
- "scroll-my": ["scroll-mt", "scroll-mb"],
1386
- "scroll-p": [
1387
- "scroll-px",
1388
- "scroll-py",
1389
- "scroll-ps",
1390
- "scroll-pe",
1391
- "scroll-pt",
1392
- "scroll-pr",
1393
- "scroll-pb",
1394
- "scroll-pl"
1395
- ],
1396
- "scroll-px": ["scroll-pr", "scroll-pl"],
1397
- "scroll-py": ["scroll-pt", "scroll-pb"],
1398
- touch: [
1399
- "touch-x",
1400
- "touch-y",
1401
- "touch-pz"
1402
- ],
1403
- "touch-x": ["touch"],
1404
- "touch-y": ["touch"],
1405
- "touch-pz": ["touch"]
1406
- },
1407
- conflictingClassGroupModifiers: { "font-size": ["leading"] }
1408
- };
1409
- };
1410
- /**
1411
- * @param baseConfig Config where other config will be merged into. This object will be mutated.
1412
- * @param configExtension Partial config to merge into the `baseConfig`.
1413
- */
1414
- var mergeConfigs = (baseConfig, { cacheSize, prefix, separator, experimentalParseClassName, extend = {}, override = {} }) => {
1415
- overrideProperty(baseConfig, "cacheSize", cacheSize);
1416
- overrideProperty(baseConfig, "prefix", prefix);
1417
- overrideProperty(baseConfig, "separator", separator);
1418
- overrideProperty(baseConfig, "experimentalParseClassName", experimentalParseClassName);
1419
- for (const configKey in override) overrideConfigProperties(baseConfig[configKey], override[configKey]);
1420
- for (const key in extend) mergeConfigProperties(baseConfig[key], extend[key]);
1421
- return baseConfig;
1422
- };
1423
- var overrideProperty = (baseObject, overrideKey, overrideValue) => {
1424
- if (overrideValue !== void 0) baseObject[overrideKey] = overrideValue;
1425
- };
1426
- var overrideConfigProperties = (baseObject, overrideObject) => {
1427
- if (overrideObject) for (const key in overrideObject) overrideProperty(baseObject, key, overrideObject[key]);
1428
- };
1429
- var mergeConfigProperties = (baseObject, mergeObject) => {
1430
- if (mergeObject) for (const key in mergeObject) {
1431
- const mergeValue = mergeObject[key];
1432
- if (mergeValue !== void 0) baseObject[key] = (baseObject[key] || []).concat(mergeValue);
1433
- }
1434
- };
1435
- var extendTailwindMerge = (configExtension, ...createConfig) => typeof configExtension === "function" ? createTailwindMerge(getDefaultConfig, configExtension, ...createConfig) : createTailwindMerge(() => mergeConfigs(getDefaultConfig(), configExtension), ...createConfig);
1436
- var twMerge = /* @__PURE__ */ createTailwindMerge(getDefaultConfig);
1437
- //#endregion
1438
- export { extendTailwindMerge, twMerge };
1439
-
1440
- //# sourceMappingURL=bundle-mjs.js.map