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