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