@dappworks/kit 0.5.37 → 0.5.39

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 (84) hide show
  1. package/dist/aiem.mjs +5 -5
  2. package/dist/{chunk-SPFKGNUY.mjs → chunk-2HNXZE3X.mjs} +396 -373
  3. package/dist/chunk-2HNXZE3X.mjs.map +1 -0
  4. package/dist/{chunk-2BZKMJZX.mjs → chunk-2N4HH4ZF.mjs} +1 -1
  5. package/dist/chunk-2N4HH4ZF.mjs.map +1 -0
  6. package/dist/{chunk-72E76L6J.mjs → chunk-B7RV4C5E.mjs} +3 -3
  7. package/dist/chunk-B7RV4C5E.mjs.map +1 -0
  8. package/dist/{chunk-WMV5O3PI.mjs → chunk-DTCEVRDM.mjs} +33 -6
  9. package/dist/chunk-DTCEVRDM.mjs.map +1 -0
  10. package/dist/{chunk-R66SHRQE.mjs → chunk-GKAU4P5I.mjs} +2 -2
  11. package/dist/chunk-GKAU4P5I.mjs.map +1 -0
  12. package/dist/{chunk-7EL2RQI7.mjs → chunk-IMOLRP7I.mjs} +1 -1
  13. package/dist/chunk-IMOLRP7I.mjs.map +1 -0
  14. package/dist/{chunk-2PD23V7H.mjs → chunk-K7LFG5BA.mjs} +1 -1
  15. package/dist/{chunk-2PD23V7H.mjs.map → chunk-K7LFG5BA.mjs.map} +1 -1
  16. package/dist/{chunk-AVG4JG4V.mjs → chunk-MPNSYZJU.mjs} +6 -6
  17. package/dist/chunk-MPNSYZJU.mjs.map +1 -0
  18. package/dist/{chunk-Z3LJE5QF.mjs → chunk-ONVPCAMQ.mjs} +1 -1
  19. package/dist/chunk-ONVPCAMQ.mjs.map +1 -0
  20. package/dist/{chunk-NKGQRF5D.mjs → chunk-PZ3VSAOC.mjs} +4 -4
  21. package/dist/chunk-PZ3VSAOC.mjs.map +1 -0
  22. package/dist/{chunk-5BTB7HRK.mjs → chunk-QA3E2PJT.mjs} +2 -2
  23. package/dist/chunk-QA3E2PJT.mjs.map +1 -0
  24. package/dist/{chunk-7WJMHFRA.mjs → chunk-R4N52NI2.mjs} +2 -2
  25. package/dist/chunk-R4N52NI2.mjs.map +1 -0
  26. package/dist/{chunk-6F7H4PAA.mjs → chunk-R4SQKVDQ.mjs} +1 -1
  27. package/dist/{chunk-7LPSHBBI.mjs → chunk-WKE3FSON.mjs} +13 -9
  28. package/dist/chunk-WKE3FSON.mjs.map +1 -0
  29. package/dist/{chunk-KIS52LFU.mjs → chunk-XSGTWROT.mjs} +7 -7
  30. package/dist/chunk-XSGTWROT.mjs.map +1 -0
  31. package/dist/dev.mjs +4 -4
  32. package/dist/dev.mjs.map +1 -1
  33. package/dist/experimental.mjs +5 -5
  34. package/dist/experimental.mjs.map +1 -1
  35. package/dist/form.mjs +6 -6
  36. package/dist/form.mjs.map +1 -1
  37. package/dist/index.mjs +12 -12
  38. package/dist/inspector.mjs +1 -1
  39. package/dist/inspector.mjs.map +1 -1
  40. package/dist/jsoncomponent.mjs +1 -1
  41. package/dist/jsoncomponent.mjs.map +1 -1
  42. package/dist/jsontable.mjs +6 -6
  43. package/dist/metrics.mjs +6 -6
  44. package/dist/metrics.mjs.map +1 -1
  45. package/dist/plugins.mjs +9 -9
  46. package/dist/plugins.mjs.map +1 -1
  47. package/dist/ui.mjs +3 -3
  48. package/dist/ui.mjs.map +1 -1
  49. package/dist/utils.mjs +4 -4
  50. package/dist/wallet.mjs +13 -13
  51. package/dist/wallet.mjs.map +1 -1
  52. package/package.json +3 -3
  53. package/dist/PaginationState-c19e621a.d.ts +0 -17
  54. package/dist/PromiseState-e64b3707.d.ts +0 -57
  55. package/dist/StorageState-cfd942cb.d.ts +0 -48
  56. package/dist/aiem.d.mts +0 -124
  57. package/dist/chunk-2BZKMJZX.mjs.map +0 -1
  58. package/dist/chunk-5BTB7HRK.mjs.map +0 -1
  59. package/dist/chunk-72E76L6J.mjs.map +0 -1
  60. package/dist/chunk-7EL2RQI7.mjs.map +0 -1
  61. package/dist/chunk-7LPSHBBI.mjs.map +0 -1
  62. package/dist/chunk-7WJMHFRA.mjs.map +0 -1
  63. package/dist/chunk-AVG4JG4V.mjs.map +0 -1
  64. package/dist/chunk-KIS52LFU.mjs.map +0 -1
  65. package/dist/chunk-NKGQRF5D.mjs.map +0 -1
  66. package/dist/chunk-R66SHRQE.mjs.map +0 -1
  67. package/dist/chunk-SPFKGNUY.mjs.map +0 -1
  68. package/dist/chunk-WMV5O3PI.mjs.map +0 -1
  69. package/dist/chunk-Z3LJE5QF.mjs.map +0 -1
  70. package/dist/dev.d.mts +0 -26
  71. package/dist/experimental.d.mts +0 -190
  72. package/dist/form.d.mts +0 -384
  73. package/dist/index-38be834f.d.ts +0 -3
  74. package/dist/index.d.mts +0 -90
  75. package/dist/inspector.d.mts +0 -15
  76. package/dist/jsoncomponent.d.mts +0 -22
  77. package/dist/jsontable.d.mts +0 -126
  78. package/dist/metrics.d.mts +0 -121
  79. package/dist/plugins.d.mts +0 -118
  80. package/dist/root-218afa4f.d.ts +0 -111
  81. package/dist/ui.d.mts +0 -29
  82. package/dist/utils.d.mts +0 -148
  83. package/dist/wallet.d.mts +0 -193
  84. /package/dist/{chunk-6F7H4PAA.mjs.map → chunk-R4SQKVDQ.mjs.map} +0 -0
@@ -1,101 +1,129 @@
1
- import { __spreadValues } from './chunk-6F7H4PAA.mjs';
1
+ import { __spreadValues } from './chunk-R4SQKVDQ.mjs';
2
2
 
3
- // node_modules/clsx/dist/clsx.mjs
3
+ // ../../node_modules/clsx/dist/clsx.m.js
4
4
  function r(e) {
5
5
  var t, f, n = "";
6
6
  if ("string" == typeof e || "number" == typeof e)
7
7
  n += e;
8
8
  else if ("object" == typeof e)
9
- if (Array.isArray(e)) {
10
- var o = e.length;
11
- for (t = 0; t < o; t++)
9
+ if (Array.isArray(e))
10
+ for (t = 0; t < e.length; t++)
12
11
  e[t] && (f = r(e[t])) && (n && (n += " "), n += f);
13
- } else
14
- for (f in e)
15
- e[f] && (n && (n += " "), n += f);
12
+ else
13
+ for (t in e)
14
+ e[t] && (n && (n += " "), n += t);
16
15
  return n;
17
16
  }
18
17
  function clsx() {
19
- for (var e, t, f = 0, n = "", o = arguments.length; f < o; f++)
20
- (e = arguments[f]) && (t = r(e)) && (n && (n += " "), n += t);
18
+ for (var e, t, f = 0, n = ""; f < arguments.length; )
19
+ (e = arguments[f++]) && (t = r(e)) && (n && (n += " "), n += t);
21
20
  return n;
22
21
  }
23
22
 
24
- // node_modules/tailwind-merge/dist/bundle-mjs.mjs
23
+ // ../../node_modules/tailwind-merge/dist/lib/tw-join.mjs
24
+ function twJoin() {
25
+ var index = 0;
26
+ var argument;
27
+ var resolvedValue;
28
+ var string = "";
29
+ while (index < arguments.length) {
30
+ if (argument = arguments[index++]) {
31
+ if (resolvedValue = toValue(argument)) {
32
+ string && (string += " ");
33
+ string += resolvedValue;
34
+ }
35
+ }
36
+ }
37
+ return string;
38
+ }
39
+ function toValue(mix) {
40
+ if (typeof mix === "string") {
41
+ return mix;
42
+ }
43
+ var resolvedValue;
44
+ var string = "";
45
+ for (var k = 0; k < mix.length; k++) {
46
+ if (mix[k]) {
47
+ if (resolvedValue = toValue(mix[k])) {
48
+ string && (string += " ");
49
+ string += resolvedValue;
50
+ }
51
+ }
52
+ }
53
+ return string;
54
+ }
55
+
56
+ // ../../node_modules/tailwind-merge/dist/lib/class-utils.mjs
25
57
  var CLASS_PART_SEPARATOR = "-";
26
- var createClassGroupUtils = (config) => {
27
- const classMap = createClassMap(config);
28
- const {
29
- conflictingClassGroups,
30
- conflictingClassGroupModifiers
31
- } = config;
32
- const getClassGroupId = (className) => {
33
- const classParts = className.split(CLASS_PART_SEPARATOR);
58
+ function createClassUtils(config) {
59
+ var classMap = createClassMap(config);
60
+ var conflictingClassGroups = config.conflictingClassGroups, _config$conflictingCl = config.conflictingClassGroupModifiers, conflictingClassGroupModifiers = _config$conflictingCl === void 0 ? {} : _config$conflictingCl;
61
+ function getClassGroupId(className) {
62
+ var classParts = className.split(CLASS_PART_SEPARATOR);
34
63
  if (classParts[0] === "" && classParts.length !== 1) {
35
64
  classParts.shift();
36
65
  }
37
66
  return getGroupRecursive(classParts, classMap) || getGroupIdForArbitraryProperty(className);
38
- };
39
- const getConflictingClassGroupIds = (classGroupId, hasPostfixModifier) => {
40
- const conflicts = conflictingClassGroups[classGroupId] || [];
67
+ }
68
+ function getConflictingClassGroupIds(classGroupId, hasPostfixModifier) {
69
+ var conflicts = conflictingClassGroups[classGroupId] || [];
41
70
  if (hasPostfixModifier && conflictingClassGroupModifiers[classGroupId]) {
42
- return [...conflicts, ...conflictingClassGroupModifiers[classGroupId]];
71
+ return [].concat(conflicts, conflictingClassGroupModifiers[classGroupId]);
43
72
  }
44
73
  return conflicts;
45
- };
74
+ }
46
75
  return {
47
76
  getClassGroupId,
48
77
  getConflictingClassGroupIds
49
78
  };
50
- };
51
- var getGroupRecursive = (classParts, classPartObject) => {
79
+ }
80
+ function getGroupRecursive(classParts, classPartObject) {
52
81
  var _a;
53
82
  if (classParts.length === 0) {
54
83
  return classPartObject.classGroupId;
55
84
  }
56
- const currentClassPart = classParts[0];
57
- const nextClassPartObject = classPartObject.nextPart.get(currentClassPart);
58
- const classGroupFromNextClassPart = nextClassPartObject ? getGroupRecursive(classParts.slice(1), nextClassPartObject) : void 0;
85
+ var currentClassPart = classParts[0];
86
+ var nextClassPartObject = classPartObject.nextPart.get(currentClassPart);
87
+ var classGroupFromNextClassPart = nextClassPartObject ? getGroupRecursive(classParts.slice(1), nextClassPartObject) : void 0;
59
88
  if (classGroupFromNextClassPart) {
60
89
  return classGroupFromNextClassPart;
61
90
  }
62
91
  if (classPartObject.validators.length === 0) {
63
92
  return void 0;
64
93
  }
65
- const classRest = classParts.join(CLASS_PART_SEPARATOR);
66
- return (_a = classPartObject.validators.find(({
67
- validator
68
- }) => validator(classRest))) == null ? void 0 : _a.classGroupId;
69
- };
94
+ var classRest = classParts.join(CLASS_PART_SEPARATOR);
95
+ return (_a = classPartObject.validators.find(function(_ref) {
96
+ var validator = _ref.validator;
97
+ return validator(classRest);
98
+ })) == null ? void 0 : _a.classGroupId;
99
+ }
70
100
  var arbitraryPropertyRegex = /^\[(.+)\]$/;
71
- var getGroupIdForArbitraryProperty = (className) => {
101
+ function getGroupIdForArbitraryProperty(className) {
72
102
  if (arbitraryPropertyRegex.test(className)) {
73
- const arbitraryPropertyClassName = arbitraryPropertyRegex.exec(className)[1];
74
- const property = arbitraryPropertyClassName == null ? void 0 : arbitraryPropertyClassName.substring(0, arbitraryPropertyClassName.indexOf(":"));
103
+ var arbitraryPropertyClassName = arbitraryPropertyRegex.exec(className)[1];
104
+ var property = arbitraryPropertyClassName == null ? void 0 : arbitraryPropertyClassName.substring(0, arbitraryPropertyClassName.indexOf(":"));
75
105
  if (property) {
76
106
  return "arbitrary.." + property;
77
107
  }
78
108
  }
79
- };
80
- var createClassMap = (config) => {
81
- const {
82
- theme,
83
- prefix
84
- } = config;
85
- const classMap = {
109
+ }
110
+ function createClassMap(config) {
111
+ var theme = config.theme, prefix = config.prefix;
112
+ var classMap = {
86
113
  nextPart: /* @__PURE__ */ new Map(),
87
114
  validators: []
88
115
  };
89
- const prefixedClassGroupEntries = getPrefixedClassGroupEntries(Object.entries(config.classGroups), prefix);
90
- prefixedClassGroupEntries.forEach(([classGroupId, classGroup]) => {
116
+ var prefixedClassGroupEntries = getPrefixedClassGroupEntries(Object.entries(config.classGroups), prefix);
117
+ prefixedClassGroupEntries.forEach(function(_ref2) {
118
+ var classGroupId = _ref2[0], classGroup = _ref2[1];
91
119
  processClassesRecursively(classGroup, classMap, classGroupId, theme);
92
120
  });
93
121
  return classMap;
94
- };
95
- var processClassesRecursively = (classGroup, classPartObject, classGroupId, theme) => {
96
- classGroup.forEach((classDefinition) => {
122
+ }
123
+ function processClassesRecursively(classGroup, classPartObject, classGroupId, theme) {
124
+ classGroup.forEach(function(classDefinition) {
97
125
  if (typeof classDefinition === "string") {
98
- const classPartObjectToEdit = classDefinition === "" ? classPartObject : getPart(classPartObject, classDefinition);
126
+ var classPartObjectToEdit = classDefinition === "" ? classPartObject : getPart(classPartObject, classDefinition);
99
127
  classPartObjectToEdit.classGroupId = classGroupId;
100
128
  return;
101
129
  }
@@ -110,14 +138,15 @@ var processClassesRecursively = (classGroup, classPartObject, classGroupId, them
110
138
  });
111
139
  return;
112
140
  }
113
- Object.entries(classDefinition).forEach(([key, classGroup2]) => {
141
+ Object.entries(classDefinition).forEach(function(_ref3) {
142
+ var key = _ref3[0], classGroup2 = _ref3[1];
114
143
  processClassesRecursively(classGroup2, getPart(classPartObject, key), classGroupId, theme);
115
144
  });
116
145
  });
117
- };
118
- var getPart = (classPartObject, path) => {
119
- let currentClassPartObject = classPartObject;
120
- path.split(CLASS_PART_SEPARATOR).forEach((pathPart) => {
146
+ }
147
+ function getPart(classPartObject, path) {
148
+ var currentClassPartObject = classPartObject;
149
+ path.split(CLASS_PART_SEPARATOR).forEach(function(pathPart) {
121
150
  if (!currentClassPartObject.nextPart.has(pathPart)) {
122
151
  currentClassPartObject.nextPart.set(pathPart, {
123
152
  nextPart: /* @__PURE__ */ new Map(),
@@ -127,37 +156,47 @@ var getPart = (classPartObject, path) => {
127
156
  currentClassPartObject = currentClassPartObject.nextPart.get(pathPart);
128
157
  });
129
158
  return currentClassPartObject;
130
- };
131
- var isThemeGetter = (func) => func.isThemeGetter;
132
- var getPrefixedClassGroupEntries = (classGroupEntries, prefix) => {
159
+ }
160
+ function isThemeGetter(func) {
161
+ return func.isThemeGetter;
162
+ }
163
+ function getPrefixedClassGroupEntries(classGroupEntries, prefix) {
133
164
  if (!prefix) {
134
165
  return classGroupEntries;
135
166
  }
136
- return classGroupEntries.map(([classGroupId, classGroup]) => {
137
- const prefixedClassGroup = classGroup.map((classDefinition) => {
167
+ return classGroupEntries.map(function(_ref4) {
168
+ var classGroupId = _ref4[0], classGroup = _ref4[1];
169
+ var prefixedClassGroup = classGroup.map(function(classDefinition) {
138
170
  if (typeof classDefinition === "string") {
139
171
  return prefix + classDefinition;
140
172
  }
141
173
  if (typeof classDefinition === "object") {
142
- return Object.fromEntries(Object.entries(classDefinition).map(([key, value]) => [prefix + key, value]));
174
+ return Object.fromEntries(Object.entries(classDefinition).map(function(_ref5) {
175
+ var key = _ref5[0], value = _ref5[1];
176
+ return [prefix + key, value];
177
+ }));
143
178
  }
144
179
  return classDefinition;
145
180
  });
146
181
  return [classGroupId, prefixedClassGroup];
147
182
  });
148
- };
149
- var createLruCache = (maxCacheSize) => {
183
+ }
184
+
185
+ // ../../node_modules/tailwind-merge/dist/lib/lru-cache.mjs
186
+ function createLruCache(maxCacheSize) {
150
187
  if (maxCacheSize < 1) {
151
188
  return {
152
- get: () => void 0,
153
- set: () => {
189
+ get: function get() {
190
+ return void 0;
191
+ },
192
+ set: function set() {
154
193
  }
155
194
  };
156
195
  }
157
- let cacheSize = 0;
158
- let cache = /* @__PURE__ */ new Map();
159
- let previousCache = /* @__PURE__ */ new Map();
160
- const update = (key, value) => {
196
+ var cacheSize = 0;
197
+ var cache = /* @__PURE__ */ new Map();
198
+ var previousCache = /* @__PURE__ */ new Map();
199
+ function update(key, value) {
161
200
  cache.set(key, value);
162
201
  cacheSize++;
163
202
  if (cacheSize > maxCacheSize) {
@@ -165,10 +204,10 @@ var createLruCache = (maxCacheSize) => {
165
204
  previousCache = cache;
166
205
  cache = /* @__PURE__ */ new Map();
167
206
  }
168
- };
207
+ }
169
208
  return {
170
- get(key) {
171
- let value = cache.get(key);
209
+ get: function get(key) {
210
+ var value = cache.get(key);
172
211
  if (value !== void 0) {
173
212
  return value;
174
213
  }
@@ -177,7 +216,7 @@ var createLruCache = (maxCacheSize) => {
177
216
  return value;
178
217
  }
179
218
  },
180
- set(key, value) {
219
+ set: function set(key, value) {
181
220
  if (cache.has(key)) {
182
221
  cache.set(key, value);
183
222
  } else {
@@ -185,23 +224,22 @@ var createLruCache = (maxCacheSize) => {
185
224
  }
186
225
  }
187
226
  };
188
- };
227
+ }
228
+
229
+ // ../../node_modules/tailwind-merge/dist/lib/modifier-utils.mjs
189
230
  var IMPORTANT_MODIFIER = "!";
190
- var createParseClassName = (config) => {
191
- const {
192
- separator,
193
- experimentalParseClassName
194
- } = config;
195
- const isSeparatorSingleCharacter = separator.length === 1;
196
- const firstSeparatorCharacter = separator[0];
197
- const separatorLength = separator.length;
198
- const parseClassName = (className) => {
199
- const modifiers = [];
200
- let bracketDepth = 0;
201
- let modifierStart = 0;
202
- let postfixModifierPosition;
203
- for (let index = 0; index < className.length; index++) {
204
- let currentCharacter = className[index];
231
+ function createSplitModifiers(config) {
232
+ var separator = config.separator || ":";
233
+ var isSeparatorSingleCharacter = separator.length === 1;
234
+ var firstSeparatorCharacter = separator[0];
235
+ var separatorLength = separator.length;
236
+ return function splitModifiers(className) {
237
+ var modifiers = [];
238
+ var bracketDepth = 0;
239
+ var modifierStart = 0;
240
+ var postfixModifierPosition;
241
+ for (var index = 0; index < className.length; index++) {
242
+ var currentCharacter = className[index];
205
243
  if (bracketDepth === 0) {
206
244
  if (currentCharacter === firstSeparatorCharacter && (isSeparatorSingleCharacter || className.slice(index, index + separatorLength) === separator)) {
207
245
  modifiers.push(className.slice(modifierStart, index));
@@ -219,10 +257,10 @@ var createParseClassName = (config) => {
219
257
  bracketDepth--;
220
258
  }
221
259
  }
222
- const baseClassNameWithImportantModifier = modifiers.length === 0 ? className : className.substring(modifierStart);
223
- const hasImportantModifier = baseClassNameWithImportantModifier.startsWith(IMPORTANT_MODIFIER);
224
- const baseClassName = hasImportantModifier ? baseClassNameWithImportantModifier.substring(1) : baseClassNameWithImportantModifier;
225
- const maybePostfixModifierPosition = postfixModifierPosition && postfixModifierPosition > modifierStart ? postfixModifierPosition - modifierStart : void 0;
260
+ var baseClassNameWithImportantModifier = modifiers.length === 0 ? className : className.substring(modifierStart);
261
+ var hasImportantModifier = baseClassNameWithImportantModifier.startsWith(IMPORTANT_MODIFIER);
262
+ var baseClassName = hasImportantModifier ? baseClassNameWithImportantModifier.substring(1) : baseClassNameWithImportantModifier;
263
+ var maybePostfixModifierPosition = postfixModifierPosition && postfixModifierPosition > modifierStart ? postfixModifierPosition - modifierStart : void 0;
226
264
  return {
227
265
  modifiers,
228
266
  hasImportantModifier,
@@ -230,122 +268,101 @@ var createParseClassName = (config) => {
230
268
  maybePostfixModifierPosition
231
269
  };
232
270
  };
233
- if (experimentalParseClassName) {
234
- return (className) => experimentalParseClassName({
235
- className,
236
- parseClassName
237
- });
238
- }
239
- return parseClassName;
240
- };
241
- var sortModifiers = (modifiers) => {
271
+ }
272
+ function sortModifiers(modifiers) {
242
273
  if (modifiers.length <= 1) {
243
274
  return modifiers;
244
275
  }
245
- const sortedModifiers = [];
246
- let unsortedModifiers = [];
247
- modifiers.forEach((modifier) => {
248
- const isArbitraryVariant = modifier[0] === "[";
276
+ var sortedModifiers = [];
277
+ var unsortedModifiers = [];
278
+ modifiers.forEach(function(modifier) {
279
+ var isArbitraryVariant = modifier[0] === "[";
249
280
  if (isArbitraryVariant) {
250
- sortedModifiers.push(...unsortedModifiers.sort(), modifier);
281
+ sortedModifiers.push.apply(sortedModifiers, unsortedModifiers.sort().concat([modifier]));
251
282
  unsortedModifiers = [];
252
283
  } else {
253
284
  unsortedModifiers.push(modifier);
254
285
  }
255
286
  });
256
- sortedModifiers.push(...unsortedModifiers.sort());
287
+ sortedModifiers.push.apply(sortedModifiers, unsortedModifiers.sort());
257
288
  return sortedModifiers;
258
- };
259
- var createConfigUtils = (config) => __spreadValues({
260
- cache: createLruCache(config.cacheSize),
261
- parseClassName: createParseClassName(config)
262
- }, createClassGroupUtils(config));
289
+ }
290
+
291
+ // ../../node_modules/tailwind-merge/dist/lib/config-utils.mjs
292
+ function createConfigUtils(config) {
293
+ return __spreadValues({
294
+ cache: createLruCache(config.cacheSize),
295
+ splitModifiers: createSplitModifiers(config)
296
+ }, createClassUtils(config));
297
+ }
298
+
299
+ // ../../node_modules/tailwind-merge/dist/lib/merge-classlist.mjs
263
300
  var SPLIT_CLASSES_REGEX = /\s+/;
264
- var mergeClassList = (classList, configUtils) => {
265
- const {
266
- parseClassName,
267
- getClassGroupId,
268
- getConflictingClassGroupIds
269
- } = configUtils;
270
- const classGroupsInConflict = [];
271
- const classNames = classList.trim().split(SPLIT_CLASSES_REGEX);
272
- let result = "";
273
- for (let index = classNames.length - 1; index >= 0; index -= 1) {
274
- const originalClassName = classNames[index];
275
- const {
276
- modifiers,
277
- hasImportantModifier,
278
- baseClassName,
279
- maybePostfixModifierPosition
280
- } = parseClassName(originalClassName);
281
- let hasPostfixModifier = Boolean(maybePostfixModifierPosition);
282
- let classGroupId = getClassGroupId(hasPostfixModifier ? baseClassName.substring(0, maybePostfixModifierPosition) : baseClassName);
301
+ function mergeClassList(classList, configUtils) {
302
+ var splitModifiers = configUtils.splitModifiers, getClassGroupId = configUtils.getClassGroupId, getConflictingClassGroupIds = configUtils.getConflictingClassGroupIds;
303
+ var classGroupsInConflict = /* @__PURE__ */ new Set();
304
+ return classList.trim().split(SPLIT_CLASSES_REGEX).map(function(originalClassName) {
305
+ var _splitModifiers = splitModifiers(originalClassName), modifiers = _splitModifiers.modifiers, hasImportantModifier = _splitModifiers.hasImportantModifier, baseClassName = _splitModifiers.baseClassName, maybePostfixModifierPosition = _splitModifiers.maybePostfixModifierPosition;
306
+ var classGroupId = getClassGroupId(maybePostfixModifierPosition ? baseClassName.substring(0, maybePostfixModifierPosition) : baseClassName);
307
+ var hasPostfixModifier = Boolean(maybePostfixModifierPosition);
283
308
  if (!classGroupId) {
284
- if (!hasPostfixModifier) {
285
- result = originalClassName + (result.length > 0 ? " " + result : result);
286
- continue;
309
+ if (!maybePostfixModifierPosition) {
310
+ return {
311
+ isTailwindClass: false,
312
+ originalClassName
313
+ };
287
314
  }
288
315
  classGroupId = getClassGroupId(baseClassName);
289
316
  if (!classGroupId) {
290
- result = originalClassName + (result.length > 0 ? " " + result : result);
291
- continue;
317
+ return {
318
+ isTailwindClass: false,
319
+ originalClassName
320
+ };
292
321
  }
293
322
  hasPostfixModifier = false;
294
323
  }
295
- const variantModifier = sortModifiers(modifiers).join(":");
296
- const modifierId = hasImportantModifier ? variantModifier + IMPORTANT_MODIFIER : variantModifier;
297
- const classId = modifierId + classGroupId;
298
- if (classGroupsInConflict.includes(classId)) {
299
- continue;
324
+ var variantModifier = sortModifiers(modifiers).join(":");
325
+ var modifierId = hasImportantModifier ? variantModifier + IMPORTANT_MODIFIER : variantModifier;
326
+ return {
327
+ isTailwindClass: true,
328
+ modifierId,
329
+ classGroupId,
330
+ originalClassName,
331
+ hasPostfixModifier
332
+ };
333
+ }).reverse().filter(function(parsed) {
334
+ if (!parsed.isTailwindClass) {
335
+ return true;
300
336
  }
301
- classGroupsInConflict.push(classId);
302
- const conflictGroups = getConflictingClassGroupIds(classGroupId, hasPostfixModifier);
303
- for (let i = 0; i < conflictGroups.length; ++i) {
304
- const group = conflictGroups[i];
305
- classGroupsInConflict.push(modifierId + group);
337
+ var modifierId = parsed.modifierId, classGroupId = parsed.classGroupId, hasPostfixModifier = parsed.hasPostfixModifier;
338
+ var classId = modifierId + classGroupId;
339
+ if (classGroupsInConflict.has(classId)) {
340
+ return false;
306
341
  }
307
- result = originalClassName + (result.length > 0 ? " " + result : result);
308
- }
309
- return result;
310
- };
311
- function twJoin() {
312
- let index = 0;
313
- let argument;
314
- let resolvedValue;
315
- let string = "";
316
- while (index < arguments.length) {
317
- if (argument = arguments[index++]) {
318
- if (resolvedValue = toValue(argument)) {
319
- string && (string += " ");
320
- string += resolvedValue;
321
- }
322
- }
323
- }
324
- return string;
342
+ classGroupsInConflict.add(classId);
343
+ getConflictingClassGroupIds(classGroupId, hasPostfixModifier).forEach(function(group) {
344
+ return classGroupsInConflict.add(modifierId + group);
345
+ });
346
+ return true;
347
+ }).reverse().map(function(parsed) {
348
+ return parsed.originalClassName;
349
+ }).join(" ");
325
350
  }
326
- var toValue = (mix) => {
327
- if (typeof mix === "string") {
328
- return mix;
329
- }
330
- let resolvedValue;
331
- let string = "";
332
- for (let k = 0; k < mix.length; k++) {
333
- if (mix[k]) {
334
- if (resolvedValue = toValue(mix[k])) {
335
- string && (string += " ");
336
- string += resolvedValue;
337
- }
338
- }
351
+
352
+ // ../../node_modules/tailwind-merge/dist/lib/create-tailwind-merge.mjs
353
+ function createTailwindMerge() {
354
+ for (var _len = arguments.length, createConfig = new Array(_len), _key = 0; _key < _len; _key++) {
355
+ createConfig[_key] = arguments[_key];
339
356
  }
340
- return string;
341
- };
342
- function createTailwindMerge(createConfigFirst, ...createConfigRest) {
343
- let configUtils;
344
- let cacheGet;
345
- let cacheSet;
346
- let functionToCall = initTailwindMerge;
357
+ var configUtils;
358
+ var cacheGet;
359
+ var cacheSet;
360
+ var functionToCall = initTailwindMerge;
347
361
  function initTailwindMerge(classList) {
348
- const config = createConfigRest.reduce((previousConfig, createConfigCurrent) => createConfigCurrent(previousConfig), createConfigFirst());
362
+ var firstCreateConfig = createConfig[0], restCreateConfig = createConfig.slice(1);
363
+ var config = restCreateConfig.reduce(function(previousConfig, createConfigCurrent) {
364
+ return createConfigCurrent(previousConfig);
365
+ }, firstCreateConfig());
349
366
  configUtils = createConfigUtils(config);
350
367
  cacheGet = configUtils.cache.get;
351
368
  cacheSet = configUtils.cache.set;
@@ -353,11 +370,11 @@ function createTailwindMerge(createConfigFirst, ...createConfigRest) {
353
370
  return tailwindMerge(classList);
354
371
  }
355
372
  function tailwindMerge(classList) {
356
- const cachedResult = cacheGet(classList);
373
+ var cachedResult = cacheGet(classList);
357
374
  if (cachedResult) {
358
375
  return cachedResult;
359
376
  }
360
- const result = mergeClassList(classList, configUtils);
377
+ var result = mergeClassList(classList, configUtils);
361
378
  cacheSet(classList, result);
362
379
  return result;
363
380
  }
@@ -365,105 +382,169 @@ function createTailwindMerge(createConfigFirst, ...createConfigRest) {
365
382
  return functionToCall(twJoin.apply(null, arguments));
366
383
  };
367
384
  }
368
- var fromTheme = (key) => {
369
- const themeGetter = (theme) => theme[key] || [];
385
+
386
+ // ../../node_modules/tailwind-merge/dist/lib/from-theme.mjs
387
+ function fromTheme(key) {
388
+ var themeGetter = function themeGetter2(theme) {
389
+ return theme[key] || [];
390
+ };
370
391
  themeGetter.isThemeGetter = true;
371
392
  return themeGetter;
372
- };
393
+ }
394
+
395
+ // ../../node_modules/tailwind-merge/dist/lib/validators.mjs
373
396
  var arbitraryValueRegex = /^\[(?:([a-z-]+):)?(.+)\]$/i;
374
397
  var fractionRegex = /^\d+\/\d+$/;
375
398
  var stringLengths = /* @__PURE__ */ new Set(["px", "full", "screen"]);
376
399
  var tshirtUnitRegex = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/;
377
400
  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$/;
378
- var colorFunctionRegex = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/;
379
- var shadowRegex = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;
380
- var imageRegex = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;
381
- var isLength = (value) => isNumber(value) || stringLengths.has(value) || fractionRegex.test(value);
382
- var isArbitraryLength = (value) => getIsArbitraryValue(value, "length", isLengthOnly);
383
- var isNumber = (value) => Boolean(value) && !Number.isNaN(Number(value));
384
- var isArbitraryNumber = (value) => getIsArbitraryValue(value, "number", isNumber);
385
- var isInteger = (value) => Boolean(value) && Number.isInteger(Number(value));
386
- var isPercent = (value) => value.endsWith("%") && isNumber(value.slice(0, -1));
387
- var isArbitraryValue = (value) => arbitraryValueRegex.test(value);
388
- var isTshirtSize = (value) => tshirtUnitRegex.test(value);
389
- var sizeLabels = /* @__PURE__ */ new Set(["length", "size", "percentage"]);
390
- var isArbitrarySize = (value) => getIsArbitraryValue(value, sizeLabels, isNever);
391
- var isArbitraryPosition = (value) => getIsArbitraryValue(value, "position", isNever);
392
- var imageLabels = /* @__PURE__ */ new Set(["image", "url"]);
393
- var isArbitraryImage = (value) => getIsArbitraryValue(value, imageLabels, isImage);
394
- var isArbitraryShadow = (value) => getIsArbitraryValue(value, "", isShadow);
395
- var isAny = () => true;
396
- var getIsArbitraryValue = (value, label, testValue) => {
397
- const result = arbitraryValueRegex.exec(value);
401
+ var shadowRegex = /^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;
402
+ function isLength(value) {
403
+ return isNumber(value) || stringLengths.has(value) || fractionRegex.test(value) || isArbitraryLength(value);
404
+ }
405
+ function isArbitraryLength(value) {
406
+ return getIsArbitraryValue(value, "length", isLengthOnly);
407
+ }
408
+ function isArbitrarySize(value) {
409
+ return getIsArbitraryValue(value, "size", isNever);
410
+ }
411
+ function isArbitraryPosition(value) {
412
+ return getIsArbitraryValue(value, "position", isNever);
413
+ }
414
+ function isArbitraryUrl(value) {
415
+ return getIsArbitraryValue(value, "url", isUrl);
416
+ }
417
+ function isArbitraryNumber(value) {
418
+ return getIsArbitraryValue(value, "number", isNumber);
419
+ }
420
+ function isNumber(value) {
421
+ return !Number.isNaN(Number(value));
422
+ }
423
+ function isPercent(value) {
424
+ return value.endsWith("%") && isNumber(value.slice(0, -1));
425
+ }
426
+ function isInteger(value) {
427
+ return isIntegerOnly(value) || getIsArbitraryValue(value, "number", isIntegerOnly);
428
+ }
429
+ function isArbitraryValue(value) {
430
+ return arbitraryValueRegex.test(value);
431
+ }
432
+ function isAny() {
433
+ return true;
434
+ }
435
+ function isTshirtSize(value) {
436
+ return tshirtUnitRegex.test(value);
437
+ }
438
+ function isArbitraryShadow(value) {
439
+ return getIsArbitraryValue(value, "", isShadow);
440
+ }
441
+ function getIsArbitraryValue(value, label, testValue) {
442
+ var result = arbitraryValueRegex.exec(value);
398
443
  if (result) {
399
444
  if (result[1]) {
400
- return typeof label === "string" ? result[1] === label : label.has(result[1]);
445
+ return result[1] === label;
401
446
  }
402
447
  return testValue(result[2]);
403
448
  }
404
449
  return false;
405
- };
406
- var isLengthOnly = (value) => (
407
- // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
408
- // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
409
- // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
410
- lengthUnitRegex.test(value) && !colorFunctionRegex.test(value)
411
- );
412
- var isNever = () => false;
413
- var isShadow = (value) => shadowRegex.test(value);
414
- var isImage = (value) => imageRegex.test(value);
415
- var getDefaultConfig = () => {
416
- const colors = fromTheme("colors");
417
- const spacing = fromTheme("spacing");
418
- const blur = fromTheme("blur");
419
- const brightness = fromTheme("brightness");
420
- const borderColor = fromTheme("borderColor");
421
- const borderRadius = fromTheme("borderRadius");
422
- const borderSpacing = fromTheme("borderSpacing");
423
- const borderWidth = fromTheme("borderWidth");
424
- const contrast = fromTheme("contrast");
425
- const grayscale = fromTheme("grayscale");
426
- const hueRotate = fromTheme("hueRotate");
427
- const invert = fromTheme("invert");
428
- const gap = fromTheme("gap");
429
- const gradientColorStops = fromTheme("gradientColorStops");
430
- const gradientColorStopPositions = fromTheme("gradientColorStopPositions");
431
- const inset = fromTheme("inset");
432
- const margin = fromTheme("margin");
433
- const opacity = fromTheme("opacity");
434
- const padding = fromTheme("padding");
435
- const saturate = fromTheme("saturate");
436
- const scale = fromTheme("scale");
437
- const sepia = fromTheme("sepia");
438
- const skew = fromTheme("skew");
439
- const space = fromTheme("space");
440
- const translate = fromTheme("translate");
441
- const getOverscroll = () => ["auto", "contain", "none"];
442
- const getOverflow = () => ["auto", "hidden", "clip", "visible", "scroll"];
443
- const getSpacingWithAutoAndArbitrary = () => ["auto", isArbitraryValue, spacing];
444
- const getSpacingWithArbitrary = () => [isArbitraryValue, spacing];
445
- const getLengthWithEmptyAndArbitrary = () => ["", isLength, isArbitraryLength];
446
- const getNumberWithAutoAndArbitrary = () => ["auto", isNumber, isArbitraryValue];
447
- const getPositions = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"];
448
- const getLineStyles = () => ["solid", "dashed", "dotted", "double", "none"];
449
- const getBlendModes = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"];
450
- const getAlign = () => ["start", "end", "center", "between", "around", "evenly", "stretch"];
451
- const getZeroAndEmpty = () => ["", "0", isArbitraryValue];
452
- const getBreaks = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"];
453
- const getNumberAndArbitrary = () => [isNumber, isArbitraryValue];
450
+ }
451
+ function isLengthOnly(value) {
452
+ return lengthUnitRegex.test(value);
453
+ }
454
+ function isNever() {
455
+ return false;
456
+ }
457
+ function isUrl(value) {
458
+ return value.startsWith("url(");
459
+ }
460
+ function isIntegerOnly(value) {
461
+ return Number.isInteger(Number(value));
462
+ }
463
+ function isShadow(value) {
464
+ return shadowRegex.test(value);
465
+ }
466
+
467
+ // ../../node_modules/tailwind-merge/dist/lib/default-config.mjs
468
+ function getDefaultConfig() {
469
+ var colors = fromTheme("colors");
470
+ var spacing = fromTheme("spacing");
471
+ var blur = fromTheme("blur");
472
+ var brightness = fromTheme("brightness");
473
+ var borderColor = fromTheme("borderColor");
474
+ var borderRadius = fromTheme("borderRadius");
475
+ var borderSpacing = fromTheme("borderSpacing");
476
+ var borderWidth = fromTheme("borderWidth");
477
+ var contrast = fromTheme("contrast");
478
+ var grayscale = fromTheme("grayscale");
479
+ var hueRotate = fromTheme("hueRotate");
480
+ var invert = fromTheme("invert");
481
+ var gap = fromTheme("gap");
482
+ var gradientColorStops = fromTheme("gradientColorStops");
483
+ var gradientColorStopPositions = fromTheme("gradientColorStopPositions");
484
+ var inset = fromTheme("inset");
485
+ var margin = fromTheme("margin");
486
+ var opacity = fromTheme("opacity");
487
+ var padding = fromTheme("padding");
488
+ var saturate = fromTheme("saturate");
489
+ var scale = fromTheme("scale");
490
+ var sepia = fromTheme("sepia");
491
+ var skew = fromTheme("skew");
492
+ var space = fromTheme("space");
493
+ var translate = fromTheme("translate");
494
+ var getOverscroll = function getOverscroll2() {
495
+ return ["auto", "contain", "none"];
496
+ };
497
+ var getOverflow = function getOverflow2() {
498
+ return ["auto", "hidden", "clip", "visible", "scroll"];
499
+ };
500
+ var getSpacingWithAutoAndArbitrary = function getSpacingWithAutoAndArbitrary2() {
501
+ return ["auto", isArbitraryValue, spacing];
502
+ };
503
+ var getSpacingWithArbitrary = function getSpacingWithArbitrary2() {
504
+ return [isArbitraryValue, spacing];
505
+ };
506
+ var getLengthWithEmpty = function getLengthWithEmpty2() {
507
+ return ["", isLength];
508
+ };
509
+ var getNumberWithAutoAndArbitrary = function getNumberWithAutoAndArbitrary2() {
510
+ return ["auto", isNumber, isArbitraryValue];
511
+ };
512
+ var getPositions = function getPositions2() {
513
+ return ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"];
514
+ };
515
+ var getLineStyles = function getLineStyles2() {
516
+ return ["solid", "dashed", "dotted", "double", "none"];
517
+ };
518
+ var getBlendModes = function getBlendModes2() {
519
+ return ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity", "plus-lighter"];
520
+ };
521
+ var getAlign = function getAlign2() {
522
+ return ["start", "end", "center", "between", "around", "evenly", "stretch"];
523
+ };
524
+ var getZeroAndEmpty = function getZeroAndEmpty2() {
525
+ return ["", "0", isArbitraryValue];
526
+ };
527
+ var getBreaks = function getBreaks2() {
528
+ return ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"];
529
+ };
530
+ var getNumber = function getNumber2() {
531
+ return [isNumber, isArbitraryNumber];
532
+ };
533
+ var getNumberAndArbitrary = function getNumberAndArbitrary2() {
534
+ return [isNumber, isArbitraryValue];
535
+ };
454
536
  return {
455
537
  cacheSize: 500,
456
- separator: ":",
457
538
  theme: {
458
539
  colors: [isAny],
459
- spacing: [isLength, isArbitraryLength],
540
+ spacing: [isLength],
460
541
  blur: ["none", "", isTshirtSize, isArbitraryValue],
461
- brightness: getNumberAndArbitrary(),
542
+ brightness: getNumber(),
462
543
  borderColor: [colors],
463
544
  borderRadius: ["none", "", "full", isTshirtSize, isArbitraryValue],
464
545
  borderSpacing: getSpacingWithArbitrary(),
465
- borderWidth: getLengthWithEmptyAndArbitrary(),
466
- contrast: getNumberAndArbitrary(),
546
+ borderWidth: getLengthWithEmpty(),
547
+ contrast: getNumber(),
467
548
  grayscale: getZeroAndEmpty(),
468
549
  hueRotate: getNumberAndArbitrary(),
469
550
  invert: getZeroAndEmpty(),
@@ -472,10 +553,10 @@ var getDefaultConfig = () => {
472
553
  gradientColorStopPositions: [isPercent, isArbitraryLength],
473
554
  inset: getSpacingWithAutoAndArbitrary(),
474
555
  margin: getSpacingWithAutoAndArbitrary(),
475
- opacity: getNumberAndArbitrary(),
556
+ opacity: getNumber(),
476
557
  padding: getSpacingWithArbitrary(),
477
- saturate: getNumberAndArbitrary(),
478
- scale: getNumberAndArbitrary(),
558
+ saturate: getNumber(),
559
+ scale: getNumber(),
479
560
  sepia: getZeroAndEmpty(),
480
561
  skew: getNumberAndArbitrary(),
481
562
  space: getSpacingWithArbitrary(),
@@ -546,15 +627,15 @@ var getDefaultConfig = () => {
546
627
  * Floats
547
628
  * @see https://tailwindcss.com/docs/float
548
629
  */
549
- float: [{
550
- float: ["right", "left", "none", "start", "end"]
630
+ "float": [{
631
+ "float": ["right", "left", "none"]
551
632
  }],
552
633
  /**
553
634
  * Clear
554
635
  * @see https://tailwindcss.com/docs/clear
555
636
  */
556
637
  clear: [{
557
- clear: ["left", "right", "both", "none", "start", "end"]
638
+ clear: ["left", "right", "both", "none"]
558
639
  }],
559
640
  /**
560
641
  * Isolation
@@ -573,7 +654,7 @@ var getDefaultConfig = () => {
573
654
  * @see https://tailwindcss.com/docs/object-position
574
655
  */
575
656
  "object-position": [{
576
- object: [...getPositions(), isArbitraryValue]
657
+ object: [].concat(getPositions(), [isArbitraryValue])
577
658
  }],
578
659
  /**
579
660
  * Overflow
@@ -695,7 +776,7 @@ var getDefaultConfig = () => {
695
776
  * @see https://tailwindcss.com/docs/z-index
696
777
  */
697
778
  z: [{
698
- z: ["auto", isInteger, isArbitraryValue]
779
+ z: ["auto", isInteger]
699
780
  }],
700
781
  // Flexbox and Grid
701
782
  /**
@@ -745,7 +826,7 @@ var getDefaultConfig = () => {
745
826
  * @see https://tailwindcss.com/docs/order
746
827
  */
747
828
  order: [{
748
- order: ["first", "last", "none", isInteger, isArbitraryValue]
829
+ order: ["first", "last", "none", isInteger]
749
830
  }],
750
831
  /**
751
832
  * Grid Template Columns
@@ -760,7 +841,7 @@ var getDefaultConfig = () => {
760
841
  */
761
842
  "col-start-end": [{
762
843
  col: ["auto", {
763
- span: ["full", isInteger, isArbitraryValue]
844
+ span: ["full", isInteger]
764
845
  }, isArbitraryValue]
765
846
  }],
766
847
  /**
@@ -790,7 +871,7 @@ var getDefaultConfig = () => {
790
871
  */
791
872
  "row-start-end": [{
792
873
  row: ["auto", {
793
- span: [isInteger, isArbitraryValue]
874
+ span: [isInteger]
794
875
  }, isArbitraryValue]
795
876
  }],
796
877
  /**
@@ -854,7 +935,7 @@ var getDefaultConfig = () => {
854
935
  * @see https://tailwindcss.com/docs/justify-content
855
936
  */
856
937
  "justify-content": [{
857
- justify: ["normal", ...getAlign()]
938
+ justify: ["normal"].concat(getAlign())
858
939
  }],
859
940
  /**
860
941
  * Justify Items
@@ -875,7 +956,7 @@ var getDefaultConfig = () => {
875
956
  * @see https://tailwindcss.com/docs/align-content
876
957
  */
877
958
  "align-content": [{
878
- content: ["normal", ...getAlign(), "baseline"]
959
+ content: ["normal"].concat(getAlign(), ["baseline"])
879
960
  }],
880
961
  /**
881
962
  * Align Items
@@ -896,7 +977,7 @@ var getDefaultConfig = () => {
896
977
  * @see https://tailwindcss.com/docs/place-content
897
978
  */
898
979
  "place-content": [{
899
- "place-content": [...getAlign(), "baseline"]
980
+ "place-content": [].concat(getAlign(), ["baseline"])
900
981
  }],
901
982
  /**
902
983
  * Place Items
@@ -1069,51 +1150,44 @@ var getDefaultConfig = () => {
1069
1150
  * @see https://tailwindcss.com/docs/width
1070
1151
  */
1071
1152
  w: [{
1072
- w: ["auto", "min", "max", "fit", "svw", "lvw", "dvw", isArbitraryValue, spacing]
1153
+ w: ["auto", "min", "max", "fit", isArbitraryValue, spacing]
1073
1154
  }],
1074
1155
  /**
1075
1156
  * Min-Width
1076
1157
  * @see https://tailwindcss.com/docs/min-width
1077
1158
  */
1078
1159
  "min-w": [{
1079
- "min-w": [isArbitraryValue, spacing, "min", "max", "fit"]
1160
+ "min-w": ["min", "max", "fit", isArbitraryValue, isLength]
1080
1161
  }],
1081
1162
  /**
1082
1163
  * Max-Width
1083
1164
  * @see https://tailwindcss.com/docs/max-width
1084
1165
  */
1085
1166
  "max-w": [{
1086
- "max-w": [isArbitraryValue, spacing, "none", "full", "min", "max", "fit", "prose", {
1167
+ "max-w": ["0", "none", "full", "min", "max", "fit", "prose", {
1087
1168
  screen: [isTshirtSize]
1088
- }, isTshirtSize]
1169
+ }, isTshirtSize, isArbitraryValue]
1089
1170
  }],
1090
1171
  /**
1091
1172
  * Height
1092
1173
  * @see https://tailwindcss.com/docs/height
1093
1174
  */
1094
1175
  h: [{
1095
- h: [isArbitraryValue, spacing, "auto", "min", "max", "fit", "svh", "lvh", "dvh"]
1176
+ h: [isArbitraryValue, spacing, "auto", "min", "max", "fit"]
1096
1177
  }],
1097
1178
  /**
1098
1179
  * Min-Height
1099
1180
  * @see https://tailwindcss.com/docs/min-height
1100
1181
  */
1101
1182
  "min-h": [{
1102
- "min-h": [isArbitraryValue, spacing, "min", "max", "fit", "svh", "lvh", "dvh"]
1183
+ "min-h": ["min", "max", "fit", isArbitraryValue, isLength]
1103
1184
  }],
1104
1185
  /**
1105
1186
  * Max-Height
1106
1187
  * @see https://tailwindcss.com/docs/max-height
1107
1188
  */
1108
1189
  "max-h": [{
1109
- "max-h": [isArbitraryValue, spacing, "min", "max", "fit", "svh", "lvh", "dvh"]
1110
- }],
1111
- /**
1112
- * Size
1113
- * @see https://tailwindcss.com/docs/size
1114
- */
1115
- size: [{
1116
- size: [isArbitraryValue, spacing, "auto", "min", "max", "fit"]
1190
+ "max-h": [isArbitraryValue, spacing, "min", "max", "fit"]
1117
1191
  }],
1118
1192
  // Typography
1119
1193
  /**
@@ -1176,7 +1250,7 @@ var getDefaultConfig = () => {
1176
1250
  * Font Variant Numeric
1177
1251
  * @see https://tailwindcss.com/docs/font-variant-numeric
1178
1252
  */
1179
- "fvn-fraction": ["diagonal-fractions", "stacked-fractions"],
1253
+ "fvn-fraction": ["diagonal-fractions", "stacked-fractons"],
1180
1254
  /**
1181
1255
  * Letter Spacing
1182
1256
  * @see https://tailwindcss.com/docs/letter-spacing
@@ -1196,7 +1270,7 @@ var getDefaultConfig = () => {
1196
1270
  * @see https://tailwindcss.com/docs/line-height
1197
1271
  */
1198
1272
  leading: [{
1199
- leading: ["none", "tight", "snug", "normal", "relaxed", "loose", isLength, isArbitraryValue]
1273
+ leading: ["none", "tight", "snug", "normal", "relaxed", "loose", isArbitraryValue, isLength]
1200
1274
  }],
1201
1275
  /**
1202
1276
  * List Style Image
@@ -1265,21 +1339,21 @@ var getDefaultConfig = () => {
1265
1339
  * @see https://tailwindcss.com/docs/text-decoration-style
1266
1340
  */
1267
1341
  "text-decoration-style": [{
1268
- decoration: [...getLineStyles(), "wavy"]
1342
+ decoration: [].concat(getLineStyles(), ["wavy"])
1269
1343
  }],
1270
1344
  /**
1271
1345
  * Text Decoration Thickness
1272
1346
  * @see https://tailwindcss.com/docs/text-decoration-thickness
1273
1347
  */
1274
1348
  "text-decoration-thickness": [{
1275
- decoration: ["auto", "from-font", isLength, isArbitraryLength]
1349
+ decoration: ["auto", "from-font", isLength]
1276
1350
  }],
1277
1351
  /**
1278
1352
  * Text Underline Offset
1279
1353
  * @see https://tailwindcss.com/docs/text-underline-offset
1280
1354
  */
1281
1355
  "underline-offset": [{
1282
- "underline-offset": ["auto", isLength, isArbitraryValue]
1356
+ "underline-offset": ["auto", isArbitraryValue, isLength]
1283
1357
  }],
1284
1358
  /**
1285
1359
  * Text Decoration Color
@@ -1298,13 +1372,6 @@ var getDefaultConfig = () => {
1298
1372
  * @see https://tailwindcss.com/docs/text-overflow
1299
1373
  */
1300
1374
  "text-overflow": ["truncate", "text-ellipsis", "text-clip"],
1301
- /**
1302
- * Text Wrap
1303
- * @see https://tailwindcss.com/docs/text-wrap
1304
- */
1305
- "text-wrap": [{
1306
- text: ["wrap", "nowrap", "balance", "pretty"]
1307
- }],
1308
1375
  /**
1309
1376
  * Text Indent
1310
1377
  * @see https://tailwindcss.com/docs/text-indent
@@ -1330,8 +1397,8 @@ var getDefaultConfig = () => {
1330
1397
  * Word Break
1331
1398
  * @see https://tailwindcss.com/docs/word-break
1332
1399
  */
1333
- break: [{
1334
- break: ["normal", "words", "all", "keep"]
1400
+ "break": [{
1401
+ "break": ["normal", "words", "all", "keep"]
1335
1402
  }],
1336
1403
  /**
1337
1404
  * Hyphens
@@ -1382,7 +1449,7 @@ var getDefaultConfig = () => {
1382
1449
  * @see https://tailwindcss.com/docs/background-position
1383
1450
  */
1384
1451
  "bg-position": [{
1385
- bg: [...getPositions(), isArbitraryPosition]
1452
+ bg: [].concat(getPositions(), [isArbitraryPosition])
1386
1453
  }],
1387
1454
  /**
1388
1455
  * Background Repeat
@@ -1407,7 +1474,7 @@ var getDefaultConfig = () => {
1407
1474
  "bg-image": [{
1408
1475
  bg: ["none", {
1409
1476
  "gradient-to": ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
1410
- }, isArbitraryImage]
1477
+ }, isArbitraryUrl]
1411
1478
  }],
1412
1479
  /**
1413
1480
  * Background Color
@@ -1639,7 +1706,7 @@ var getDefaultConfig = () => {
1639
1706
  * @see https://tailwindcss.com/docs/border-style
1640
1707
  */
1641
1708
  "border-style": [{
1642
- border: [...getLineStyles(), "hidden"]
1709
+ border: [].concat(getLineStyles(), ["hidden"])
1643
1710
  }],
1644
1711
  /**
1645
1712
  * Divide Width X
@@ -1700,20 +1767,6 @@ var getDefaultConfig = () => {
1700
1767
  "border-color-y": [{
1701
1768
  "border-y": [borderColor]
1702
1769
  }],
1703
- /**
1704
- * Border Color S
1705
- * @see https://tailwindcss.com/docs/border-color
1706
- */
1707
- "border-color-s": [{
1708
- "border-s": [borderColor]
1709
- }],
1710
- /**
1711
- * Border Color E
1712
- * @see https://tailwindcss.com/docs/border-color
1713
- */
1714
- "border-color-e": [{
1715
- "border-e": [borderColor]
1716
- }],
1717
1770
  /**
1718
1771
  * Border Color Top
1719
1772
  * @see https://tailwindcss.com/docs/border-color
@@ -1754,21 +1807,21 @@ var getDefaultConfig = () => {
1754
1807
  * @see https://tailwindcss.com/docs/outline-style
1755
1808
  */
1756
1809
  "outline-style": [{
1757
- outline: ["", ...getLineStyles()]
1810
+ outline: [""].concat(getLineStyles())
1758
1811
  }],
1759
1812
  /**
1760
1813
  * Outline Offset
1761
1814
  * @see https://tailwindcss.com/docs/outline-offset
1762
1815
  */
1763
1816
  "outline-offset": [{
1764
- "outline-offset": [isLength, isArbitraryValue]
1817
+ "outline-offset": [isArbitraryValue, isLength]
1765
1818
  }],
1766
1819
  /**
1767
1820
  * Outline Width
1768
1821
  * @see https://tailwindcss.com/docs/outline-width
1769
1822
  */
1770
1823
  "outline-w": [{
1771
- outline: [isLength, isArbitraryLength]
1824
+ outline: [isLength]
1772
1825
  }],
1773
1826
  /**
1774
1827
  * Outline Color
@@ -1782,7 +1835,7 @@ var getDefaultConfig = () => {
1782
1835
  * @see https://tailwindcss.com/docs/ring-width
1783
1836
  */
1784
1837
  "ring-w": [{
1785
- ring: getLengthWithEmptyAndArbitrary()
1838
+ ring: getLengthWithEmpty()
1786
1839
  }],
1787
1840
  /**
1788
1841
  * Ring Width Inset
@@ -1808,7 +1861,7 @@ var getDefaultConfig = () => {
1808
1861
  * @see https://tailwindcss.com/docs/ring-offset-width
1809
1862
  */
1810
1863
  "ring-offset-w": [{
1811
- "ring-offset": [isLength, isArbitraryLength]
1864
+ "ring-offset": [isLength]
1812
1865
  }],
1813
1866
  /**
1814
1867
  * Ring Offset Color
@@ -1844,7 +1897,7 @@ var getDefaultConfig = () => {
1844
1897
  * @see https://tailwindcss.com/docs/mix-blend-mode
1845
1898
  */
1846
1899
  "mix-blend": [{
1847
- "mix-blend": [...getBlendModes(), "plus-lighter", "plus-darker"]
1900
+ "mix-blend": getBlendModes()
1848
1901
  }],
1849
1902
  /**
1850
1903
  * Background Blend Mode
@@ -2158,9 +2211,7 @@ var getDefaultConfig = () => {
2158
2211
  * Appearance
2159
2212
  * @see https://tailwindcss.com/docs/appearance
2160
2213
  */
2161
- appearance: [{
2162
- appearance: ["none", "auto"]
2163
- }],
2214
+ appearance: ["appearance-none"],
2164
2215
  /**
2165
2216
  * Cursor
2166
2217
  * @see https://tailwindcss.com/docs/cursor
@@ -2355,27 +2406,10 @@ var getDefaultConfig = () => {
2355
2406
  * @see https://tailwindcss.com/docs/touch-action
2356
2407
  */
2357
2408
  touch: [{
2358
- touch: ["auto", "none", "manipulation"]
2359
- }],
2360
- /**
2361
- * Touch Action X
2362
- * @see https://tailwindcss.com/docs/touch-action
2363
- */
2364
- "touch-x": [{
2365
- "touch-pan": ["x", "left", "right"]
2366
- }],
2367
- /**
2368
- * Touch Action Y
2369
- * @see https://tailwindcss.com/docs/touch-action
2370
- */
2371
- "touch-y": [{
2372
- "touch-pan": ["y", "up", "down"]
2409
+ touch: ["auto", "none", "pinch-zoom", "manipulation", {
2410
+ pan: ["x", "left", "right", "y", "up", "down"]
2411
+ }]
2373
2412
  }],
2374
- /**
2375
- * Touch Action Pinch Zoom
2376
- * @see https://tailwindcss.com/docs/touch-action
2377
- */
2378
- "touch-pz": ["touch-pinch-zoom"],
2379
2413
  /**
2380
2414
  * User Select
2381
2415
  * @see https://tailwindcss.com/docs/user-select
@@ -2403,7 +2437,7 @@ var getDefaultConfig = () => {
2403
2437
  * @see https://tailwindcss.com/docs/stroke-width
2404
2438
  */
2405
2439
  "stroke-w": [{
2406
- stroke: [isLength, isArbitraryLength, isArbitraryNumber]
2440
+ stroke: [isLength, isArbitraryNumber]
2407
2441
  }],
2408
2442
  /**
2409
2443
  * Stroke
@@ -2417,14 +2451,7 @@ var getDefaultConfig = () => {
2417
2451
  * Screen Readers
2418
2452
  * @see https://tailwindcss.com/docs/screen-readers
2419
2453
  */
2420
- sr: ["sr-only", "not-sr-only"],
2421
- /**
2422
- * Forced Color Adjust
2423
- * @see https://tailwindcss.com/docs/forced-color-adjust
2424
- */
2425
- "forced-color-adjust": [{
2426
- "forced-color-adjust": ["auto", "none"]
2427
- }]
2454
+ sr: ["sr-only", "not-sr-only"]
2428
2455
  },
2429
2456
  conflictingClassGroups: {
2430
2457
  overflow: ["overflow-x", "overflow-y"],
@@ -2440,7 +2467,6 @@ var getDefaultConfig = () => {
2440
2467
  m: ["mx", "my", "ms", "me", "mt", "mr", "mb", "ml"],
2441
2468
  mx: ["mr", "ml"],
2442
2469
  my: ["mt", "mb"],
2443
- size: ["w", "h"],
2444
2470
  "font-size": ["leading"],
2445
2471
  "fvn-normal": ["fvn-ordinal", "fvn-slashed-zero", "fvn-figure", "fvn-spacing", "fvn-fraction"],
2446
2472
  "fvn-ordinal": ["fvn-normal"],
@@ -2448,7 +2474,6 @@ var getDefaultConfig = () => {
2448
2474
  "fvn-figure": ["fvn-normal"],
2449
2475
  "fvn-spacing": ["fvn-normal"],
2450
2476
  "fvn-fraction": ["fvn-normal"],
2451
- "line-clamp": ["display", "overflow"],
2452
2477
  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"],
2453
2478
  "rounded-s": ["rounded-ss", "rounded-es"],
2454
2479
  "rounded-e": ["rounded-se", "rounded-ee"],
@@ -2460,7 +2485,7 @@ var getDefaultConfig = () => {
2460
2485
  "border-w": ["border-w-s", "border-w-e", "border-w-t", "border-w-r", "border-w-b", "border-w-l"],
2461
2486
  "border-w-x": ["border-w-r", "border-w-l"],
2462
2487
  "border-w-y": ["border-w-t", "border-w-b"],
2463
- "border-color": ["border-color-s", "border-color-e", "border-color-t", "border-color-r", "border-color-b", "border-color-l"],
2488
+ "border-color": ["border-color-t", "border-color-r", "border-color-b", "border-color-l"],
2464
2489
  "border-color-x": ["border-color-r", "border-color-l"],
2465
2490
  "border-color-y": ["border-color-t", "border-color-b"],
2466
2491
  "scroll-m": ["scroll-mx", "scroll-my", "scroll-ms", "scroll-me", "scroll-mt", "scroll-mr", "scroll-mb", "scroll-ml"],
@@ -2468,17 +2493,15 @@ var getDefaultConfig = () => {
2468
2493
  "scroll-my": ["scroll-mt", "scroll-mb"],
2469
2494
  "scroll-p": ["scroll-px", "scroll-py", "scroll-ps", "scroll-pe", "scroll-pt", "scroll-pr", "scroll-pb", "scroll-pl"],
2470
2495
  "scroll-px": ["scroll-pr", "scroll-pl"],
2471
- "scroll-py": ["scroll-pt", "scroll-pb"],
2472
- touch: ["touch-x", "touch-y", "touch-pz"],
2473
- "touch-x": ["touch"],
2474
- "touch-y": ["touch"],
2475
- "touch-pz": ["touch"]
2496
+ "scroll-py": ["scroll-pt", "scroll-pb"]
2476
2497
  },
2477
2498
  conflictingClassGroupModifiers: {
2478
2499
  "font-size": ["leading"]
2479
2500
  }
2480
2501
  };
2481
- };
2502
+ }
2503
+
2504
+ // ../../node_modules/tailwind-merge/dist/lib/tw-merge.mjs
2482
2505
  var twMerge = /* @__PURE__ */ createTailwindMerge(getDefaultConfig);
2483
2506
 
2484
2507
  // lib/utils.ts
@@ -2488,4 +2511,4 @@ function cn(...inputs) {
2488
2511
 
2489
2512
  export { cn };
2490
2513
  //# sourceMappingURL=out.js.map
2491
- //# sourceMappingURL=chunk-SPFKGNUY.mjs.map
2514
+ //# sourceMappingURL=chunk-2HNXZE3X.mjs.map