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