@klu_dev/ui-klu-green 1.0.8 → 1.0.10
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/components/ui/backButton.d.ts +8 -0
- package/dist/components/ui/backButton.d.ts.map +1 -0
- package/dist/components/ui/button.d.ts +11 -0
- package/dist/components/ui/button.d.ts.map +1 -0
- package/dist/components/ui/input.d.ts +9 -0
- package/dist/components/ui/input.d.ts.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +1515 -979
- package/dist/lib/utils.d.ts +3 -0
- package/dist/lib/utils.d.ts.map +1 -0
- package/package.json +19 -22
- package/dist/favicon.svg +0 -1
- package/dist/icons.svg +0 -24
- package/dist/index.css +0 -2
package/dist/index.js
CHANGED
|
@@ -1,253 +1,512 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as React from "react";
|
|
2
2
|
//#region \0rolldown/runtime.js
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
4
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, { get: (a, b) => (typeof require !== "undefined" ? require : a)[b] }) : x)(function(x) {
|
|
5
|
+
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
6
|
+
throw Error("Calling `require` for \"" + x + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
|
|
6
7
|
});
|
|
7
8
|
//#endregion
|
|
8
9
|
//#region node_modules/clsx/dist/clsx.mjs
|
|
9
10
|
function r(e) {
|
|
10
|
-
var t,
|
|
11
|
-
if (
|
|
12
|
-
else if (typeof e
|
|
13
|
-
var
|
|
14
|
-
for (t = 0; t <
|
|
15
|
-
} else for (
|
|
16
|
-
return
|
|
11
|
+
var t, f, n = "";
|
|
12
|
+
if ("string" == typeof e || "number" == typeof e) n += e;
|
|
13
|
+
else if ("object" == typeof e) if (Array.isArray(e)) {
|
|
14
|
+
var o = e.length;
|
|
15
|
+
for (t = 0; t < o; t++) e[t] && (f = r(e[t])) && (n && (n += " "), n += f);
|
|
16
|
+
} else for (f in e) e[f] && (n && (n += " "), n += f);
|
|
17
|
+
return n;
|
|
17
18
|
}
|
|
18
|
-
function
|
|
19
|
-
for (var e, t,
|
|
20
|
-
return
|
|
19
|
+
function clsx() {
|
|
20
|
+
for (var e, t, f = 0, n = "", o = arguments.length; f < o; f++) (e = arguments[f]) && (t = r(e)) && (n && (n += " "), n += t);
|
|
21
|
+
return n;
|
|
21
22
|
}
|
|
22
23
|
//#endregion
|
|
23
24
|
//#region node_modules/tailwind-merge/dist/bundle-mjs.mjs
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
})
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
25
|
+
/**
|
|
26
|
+
* Concatenates two arrays faster than the array spread operator.
|
|
27
|
+
*/
|
|
28
|
+
var concatArrays = (array1, array2) => {
|
|
29
|
+
const combinedArray = new Array(array1.length + array2.length);
|
|
30
|
+
for (let i = 0; i < array1.length; i++) combinedArray[i] = array1[i];
|
|
31
|
+
for (let i = 0; i < array2.length; i++) combinedArray[array1.length + i] = array2[i];
|
|
32
|
+
return combinedArray;
|
|
33
|
+
};
|
|
34
|
+
var createClassValidatorObject = (classGroupId, validator) => ({
|
|
35
|
+
classGroupId,
|
|
36
|
+
validator
|
|
37
|
+
});
|
|
38
|
+
var createClassPartObject = (nextPart = /* @__PURE__ */ new Map(), validators = null, classGroupId) => ({
|
|
39
|
+
nextPart,
|
|
40
|
+
validators,
|
|
41
|
+
classGroupId
|
|
42
|
+
});
|
|
43
|
+
var CLASS_PART_SEPARATOR = "-";
|
|
44
|
+
var EMPTY_CONFLICTS = [];
|
|
45
|
+
var ARBITRARY_PROPERTY_PREFIX = "arbitrary..";
|
|
46
|
+
var createClassGroupUtils = (config) => {
|
|
47
|
+
const classMap = createClassMap(config);
|
|
48
|
+
const { conflictingClassGroups, conflictingClassGroupModifiers } = config;
|
|
49
|
+
const getClassGroupId = (className) => {
|
|
50
|
+
if (className.startsWith("[") && className.endsWith("]")) return getGroupIdForArbitraryProperty(className);
|
|
51
|
+
const classParts = className.split(CLASS_PART_SEPARATOR);
|
|
52
|
+
return getGroupRecursive(classParts, classParts[0] === "" && classParts.length > 1 ? 1 : 0, classMap);
|
|
53
|
+
};
|
|
54
|
+
const getConflictingClassGroupIds = (classGroupId, hasPostfixModifier) => {
|
|
55
|
+
if (hasPostfixModifier) {
|
|
56
|
+
const modifierConflicts = conflictingClassGroupModifiers[classGroupId];
|
|
57
|
+
const baseConflicts = conflictingClassGroups[classGroupId];
|
|
58
|
+
if (modifierConflicts) {
|
|
59
|
+
if (baseConflicts) return concatArrays(baseConflicts, modifierConflicts);
|
|
60
|
+
return modifierConflicts;
|
|
48
61
|
}
|
|
49
|
-
return
|
|
62
|
+
return baseConflicts || EMPTY_CONFLICTS;
|
|
50
63
|
}
|
|
64
|
+
return conflictingClassGroups[classGroupId] || EMPTY_CONFLICTS;
|
|
65
|
+
};
|
|
66
|
+
return {
|
|
67
|
+
getClassGroupId,
|
|
68
|
+
getConflictingClassGroupIds
|
|
51
69
|
};
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
70
|
+
};
|
|
71
|
+
var getGroupRecursive = (classParts, startIndex, classPartObject) => {
|
|
72
|
+
if (classParts.length - startIndex === 0) return classPartObject.classGroupId;
|
|
73
|
+
const currentClassPart = classParts[startIndex];
|
|
74
|
+
const nextClassPartObject = classPartObject.nextPart.get(currentClassPart);
|
|
75
|
+
if (nextClassPartObject) {
|
|
76
|
+
const result = getGroupRecursive(classParts, startIndex + 1, nextClassPartObject);
|
|
77
|
+
if (result) return result;
|
|
58
78
|
}
|
|
59
|
-
|
|
60
|
-
if (
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
79
|
+
const validators = classPartObject.validators;
|
|
80
|
+
if (validators === null) return;
|
|
81
|
+
const classRest = startIndex === 0 ? classParts.join(CLASS_PART_SEPARATOR) : classParts.slice(startIndex).join(CLASS_PART_SEPARATOR);
|
|
82
|
+
const validatorsLength = validators.length;
|
|
83
|
+
for (let i = 0; i < validatorsLength; i++) {
|
|
84
|
+
const validatorObj = validators[i];
|
|
85
|
+
if (validatorObj.validator(classRest)) return validatorObj.classGroupId;
|
|
65
86
|
}
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
87
|
+
};
|
|
88
|
+
/**
|
|
89
|
+
* Get the class group ID for an arbitrary property.
|
|
90
|
+
*
|
|
91
|
+
* @param className - The class name to get the group ID for. Is expected to be string starting with `[` and ending with `]`.
|
|
92
|
+
*/
|
|
93
|
+
var getGroupIdForArbitraryProperty = (className) => className.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
|
|
94
|
+
const content = className.slice(1, -1);
|
|
95
|
+
const colonIndex = content.indexOf(":");
|
|
96
|
+
const property = content.slice(0, colonIndex);
|
|
97
|
+
return property ? ARBITRARY_PROPERTY_PREFIX + property : void 0;
|
|
98
|
+
})();
|
|
99
|
+
/**
|
|
100
|
+
* Exported for testing only
|
|
101
|
+
*/
|
|
102
|
+
var createClassMap = (config) => {
|
|
103
|
+
const { theme, classGroups } = config;
|
|
104
|
+
return processClassGroups(classGroups, theme);
|
|
105
|
+
};
|
|
106
|
+
var processClassGroups = (classGroups, theme) => {
|
|
107
|
+
const classMap = createClassPartObject();
|
|
108
|
+
for (const classGroupId in classGroups) {
|
|
109
|
+
const group = classGroups[classGroupId];
|
|
110
|
+
processClassesRecursively(group, classMap, classGroupId, theme);
|
|
77
111
|
}
|
|
78
|
-
return
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
112
|
+
return classMap;
|
|
113
|
+
};
|
|
114
|
+
var processClassesRecursively = (classGroup, classPartObject, classGroupId, theme) => {
|
|
115
|
+
const len = classGroup.length;
|
|
116
|
+
for (let i = 0; i < len; i++) {
|
|
117
|
+
const classDefinition = classGroup[i];
|
|
118
|
+
processClassDefinition(classDefinition, classPartObject, classGroupId, theme);
|
|
84
119
|
}
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
|
|
120
|
+
};
|
|
121
|
+
var processClassDefinition = (classDefinition, classPartObject, classGroupId, theme) => {
|
|
122
|
+
if (typeof classDefinition === "string") {
|
|
123
|
+
processStringDefinition(classDefinition, classPartObject, classGroupId);
|
|
88
124
|
return;
|
|
89
125
|
}
|
|
90
|
-
if (typeof
|
|
91
|
-
|
|
126
|
+
if (typeof classDefinition === "function") {
|
|
127
|
+
processFunctionDefinition(classDefinition, classPartObject, classGroupId, theme);
|
|
92
128
|
return;
|
|
93
129
|
}
|
|
94
|
-
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
130
|
+
processObjectDefinition(classDefinition, classPartObject, classGroupId, theme);
|
|
131
|
+
};
|
|
132
|
+
var processStringDefinition = (classDefinition, classPartObject, classGroupId) => {
|
|
133
|
+
const classPartObjectToEdit = classDefinition === "" ? classPartObject : getPart(classPartObject, classDefinition);
|
|
134
|
+
classPartObjectToEdit.classGroupId = classGroupId;
|
|
135
|
+
};
|
|
136
|
+
var processFunctionDefinition = (classDefinition, classPartObject, classGroupId, theme) => {
|
|
137
|
+
if (isThemeGetter(classDefinition)) {
|
|
138
|
+
processClassesRecursively(classDefinition(theme), classPartObject, classGroupId, theme);
|
|
101
139
|
return;
|
|
102
140
|
}
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
141
|
+
if (classPartObject.validators === null) classPartObject.validators = [];
|
|
142
|
+
classPartObject.validators.push(createClassValidatorObject(classGroupId, classDefinition));
|
|
143
|
+
};
|
|
144
|
+
var processObjectDefinition = (classDefinition, classPartObject, classGroupId, theme) => {
|
|
145
|
+
const entries = Object.entries(classDefinition);
|
|
146
|
+
const len = entries.length;
|
|
147
|
+
for (let i = 0; i < len; i++) {
|
|
148
|
+
const [key, value] = entries[i];
|
|
149
|
+
processClassesRecursively(value, getPart(classPartObject, key), classGroupId, theme);
|
|
109
150
|
}
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
151
|
+
};
|
|
152
|
+
var getPart = (classPartObject, path) => {
|
|
153
|
+
let current = classPartObject;
|
|
154
|
+
const parts = path.split(CLASS_PART_SEPARATOR);
|
|
155
|
+
const len = parts.length;
|
|
156
|
+
for (let i = 0; i < len; i++) {
|
|
157
|
+
const part = parts[i];
|
|
158
|
+
let next = current.nextPart.get(part);
|
|
159
|
+
if (!next) {
|
|
160
|
+
next = createClassPartObject();
|
|
161
|
+
current.nextPart.set(part, next);
|
|
162
|
+
}
|
|
163
|
+
current = next;
|
|
115
164
|
}
|
|
116
|
-
return
|
|
117
|
-
}
|
|
118
|
-
|
|
165
|
+
return current;
|
|
166
|
+
};
|
|
167
|
+
var isThemeGetter = (func) => "isThemeGetter" in func && func.isThemeGetter === true;
|
|
168
|
+
var createLruCache = (maxCacheSize) => {
|
|
169
|
+
if (maxCacheSize < 1) return {
|
|
119
170
|
get: () => void 0,
|
|
120
171
|
set: () => {}
|
|
121
172
|
};
|
|
122
|
-
let
|
|
123
|
-
|
|
173
|
+
let cacheSize = 0;
|
|
174
|
+
let cache = Object.create(null);
|
|
175
|
+
let previousCache = Object.create(null);
|
|
176
|
+
const update = (key, value) => {
|
|
177
|
+
cache[key] = value;
|
|
178
|
+
cacheSize++;
|
|
179
|
+
if (cacheSize > maxCacheSize) {
|
|
180
|
+
cacheSize = 0;
|
|
181
|
+
previousCache = cache;
|
|
182
|
+
cache = Object.create(null);
|
|
183
|
+
}
|
|
124
184
|
};
|
|
125
185
|
return {
|
|
126
|
-
get(
|
|
127
|
-
let
|
|
128
|
-
if (
|
|
129
|
-
if ((
|
|
186
|
+
get(key) {
|
|
187
|
+
let value = cache[key];
|
|
188
|
+
if (value !== void 0) return value;
|
|
189
|
+
if ((value = previousCache[key]) !== void 0) {
|
|
190
|
+
update(key, value);
|
|
191
|
+
return value;
|
|
192
|
+
}
|
|
130
193
|
},
|
|
131
|
-
set(
|
|
132
|
-
|
|
194
|
+
set(key, value) {
|
|
195
|
+
if (key in cache) cache[key] = value;
|
|
196
|
+
else update(key, value);
|
|
133
197
|
}
|
|
134
198
|
};
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
199
|
+
};
|
|
200
|
+
var IMPORTANT_MODIFIER = "!";
|
|
201
|
+
var MODIFIER_SEPARATOR = ":";
|
|
202
|
+
var EMPTY_MODIFIERS = [];
|
|
203
|
+
var createResultObject = (modifiers, hasImportantModifier, baseClassName, maybePostfixModifierPosition, isExternal) => ({
|
|
204
|
+
modifiers,
|
|
205
|
+
hasImportantModifier,
|
|
206
|
+
baseClassName,
|
|
207
|
+
maybePostfixModifierPosition,
|
|
208
|
+
isExternal
|
|
209
|
+
});
|
|
210
|
+
var createParseClassName = (config) => {
|
|
211
|
+
const { prefix, experimentalParseClassName } = config;
|
|
212
|
+
/**
|
|
213
|
+
* Parse class name into parts.
|
|
214
|
+
*
|
|
215
|
+
* Inspired by `splitAtTopLevelOnly` used in Tailwind CSS
|
|
216
|
+
* @see https://github.com/tailwindlabs/tailwindcss/blob/v3.2.2/src/util/splitAtTopLevelOnly.js
|
|
217
|
+
*/
|
|
218
|
+
let parseClassName = (className) => {
|
|
219
|
+
const modifiers = [];
|
|
220
|
+
let bracketDepth = 0;
|
|
221
|
+
let parenDepth = 0;
|
|
222
|
+
let modifierStart = 0;
|
|
223
|
+
let postfixModifierPosition;
|
|
224
|
+
const len = className.length;
|
|
225
|
+
for (let index = 0; index < len; index++) {
|
|
226
|
+
const currentCharacter = className[index];
|
|
227
|
+
if (bracketDepth === 0 && parenDepth === 0) {
|
|
228
|
+
if (currentCharacter === MODIFIER_SEPARATOR) {
|
|
229
|
+
modifiers.push(className.slice(modifierStart, index));
|
|
230
|
+
modifierStart = index + 1;
|
|
149
231
|
continue;
|
|
150
232
|
}
|
|
151
|
-
if (
|
|
152
|
-
|
|
233
|
+
if (currentCharacter === "/") {
|
|
234
|
+
postfixModifierPosition = index;
|
|
153
235
|
continue;
|
|
154
236
|
}
|
|
155
237
|
}
|
|
156
|
-
|
|
238
|
+
if (currentCharacter === "[") bracketDepth++;
|
|
239
|
+
else if (currentCharacter === "]") bracketDepth--;
|
|
240
|
+
else if (currentCharacter === "(") parenDepth++;
|
|
241
|
+
else if (currentCharacter === ")") parenDepth--;
|
|
157
242
|
}
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
let
|
|
161
|
-
|
|
243
|
+
const baseClassNameWithImportantModifier = modifiers.length === 0 ? className : className.slice(modifierStart);
|
|
244
|
+
let baseClassName = baseClassNameWithImportantModifier;
|
|
245
|
+
let hasImportantModifier = false;
|
|
246
|
+
if (baseClassNameWithImportantModifier.endsWith(IMPORTANT_MODIFIER)) {
|
|
247
|
+
baseClassName = baseClassNameWithImportantModifier.slice(0, -1);
|
|
248
|
+
hasImportantModifier = true;
|
|
249
|
+
} else if (baseClassNameWithImportantModifier.startsWith(IMPORTANT_MODIFIER)) {
|
|
250
|
+
baseClassName = baseClassNameWithImportantModifier.slice(1);
|
|
251
|
+
hasImportantModifier = true;
|
|
252
|
+
}
|
|
253
|
+
const maybePostfixModifierPosition = postfixModifierPosition && postfixModifierPosition > modifierStart ? postfixModifierPosition - modifierStart : void 0;
|
|
254
|
+
return createResultObject(modifiers, hasImportantModifier, baseClassName, maybePostfixModifierPosition);
|
|
162
255
|
};
|
|
163
|
-
if (
|
|
164
|
-
|
|
165
|
-
|
|
256
|
+
if (prefix) {
|
|
257
|
+
const fullPrefix = prefix + MODIFIER_SEPARATOR;
|
|
258
|
+
const parseClassNameOriginal = parseClassName;
|
|
259
|
+
parseClassName = (className) => className.startsWith(fullPrefix) ? parseClassNameOriginal(className.slice(fullPrefix.length)) : createResultObject(EMPTY_MODIFIERS, false, className, void 0, true);
|
|
166
260
|
}
|
|
167
|
-
if (
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
className
|
|
171
|
-
parseClassName:
|
|
261
|
+
if (experimentalParseClassName) {
|
|
262
|
+
const parseClassNameOriginal = parseClassName;
|
|
263
|
+
parseClassName = (className) => experimentalParseClassName({
|
|
264
|
+
className,
|
|
265
|
+
parseClassName: parseClassNameOriginal
|
|
172
266
|
});
|
|
173
267
|
}
|
|
174
|
-
return
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
268
|
+
return parseClassName;
|
|
269
|
+
};
|
|
270
|
+
/**
|
|
271
|
+
* Sorts modifiers according to following schema:
|
|
272
|
+
* - Predefined modifiers are sorted alphabetically
|
|
273
|
+
* - When an arbitrary variant appears, it must be preserved which modifiers are before and after it
|
|
274
|
+
*/
|
|
275
|
+
var createSortModifiers = (config) => {
|
|
276
|
+
const modifierWeights = /* @__PURE__ */ new Map();
|
|
277
|
+
config.orderSensitiveModifiers.forEach((mod, index) => {
|
|
278
|
+
modifierWeights.set(mod, 1e6 + index);
|
|
279
|
+
});
|
|
280
|
+
return (modifiers) => {
|
|
281
|
+
const result = [];
|
|
282
|
+
let currentSegment = [];
|
|
283
|
+
for (let i = 0; i < modifiers.length; i++) {
|
|
284
|
+
const modifier = modifiers[i];
|
|
285
|
+
const isArbitrary = modifier[0] === "[";
|
|
286
|
+
const isOrderSensitive = modifierWeights.has(modifier);
|
|
287
|
+
if (isArbitrary || isOrderSensitive) {
|
|
288
|
+
if (currentSegment.length > 0) {
|
|
289
|
+
currentSegment.sort();
|
|
290
|
+
result.push(...currentSegment);
|
|
291
|
+
currentSegment = [];
|
|
292
|
+
}
|
|
293
|
+
result.push(modifier);
|
|
294
|
+
} else currentSegment.push(modifier);
|
|
295
|
+
}
|
|
296
|
+
if (currentSegment.length > 0) {
|
|
297
|
+
currentSegment.sort();
|
|
298
|
+
result.push(...currentSegment);
|
|
184
299
|
}
|
|
185
|
-
return
|
|
300
|
+
return result;
|
|
186
301
|
};
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
302
|
+
};
|
|
303
|
+
var createConfigUtils = (config) => ({
|
|
304
|
+
cache: createLruCache(config.cacheSize),
|
|
305
|
+
parseClassName: createParseClassName(config),
|
|
306
|
+
sortModifiers: createSortModifiers(config),
|
|
307
|
+
...createClassGroupUtils(config)
|
|
308
|
+
});
|
|
309
|
+
var SPLIT_CLASSES_REGEX = /\s+/;
|
|
310
|
+
var mergeClassList = (classList, configUtils) => {
|
|
311
|
+
const { parseClassName, getClassGroupId, getConflictingClassGroupIds, sortModifiers } = configUtils;
|
|
312
|
+
/**
|
|
313
|
+
* Set of classGroupIds in following format:
|
|
314
|
+
* `{importantModifier}{variantModifiers}{classGroupId}`
|
|
315
|
+
* @example 'float'
|
|
316
|
+
* @example 'hover:focus:bg-color'
|
|
317
|
+
* @example 'md:!pr'
|
|
318
|
+
*/
|
|
319
|
+
const classGroupsInConflict = [];
|
|
320
|
+
const classNames = classList.trim().split(SPLIT_CLASSES_REGEX);
|
|
321
|
+
let result = "";
|
|
322
|
+
for (let index = classNames.length - 1; index >= 0; index -= 1) {
|
|
323
|
+
const originalClassName = classNames[index];
|
|
324
|
+
const { isExternal, modifiers, hasImportantModifier, baseClassName, maybePostfixModifierPosition } = parseClassName(originalClassName);
|
|
325
|
+
if (isExternal) {
|
|
326
|
+
result = originalClassName + (result.length > 0 ? " " + result : result);
|
|
198
327
|
continue;
|
|
199
328
|
}
|
|
200
|
-
let
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
329
|
+
let hasPostfixModifier = !!maybePostfixModifierPosition;
|
|
330
|
+
let classGroupId = getClassGroupId(hasPostfixModifier ? baseClassName.substring(0, maybePostfixModifierPosition) : baseClassName);
|
|
331
|
+
if (!classGroupId) {
|
|
332
|
+
if (!hasPostfixModifier) {
|
|
333
|
+
result = originalClassName + (result.length > 0 ? " " + result : result);
|
|
204
334
|
continue;
|
|
205
335
|
}
|
|
206
|
-
|
|
207
|
-
|
|
336
|
+
classGroupId = getClassGroupId(baseClassName);
|
|
337
|
+
if (!classGroupId) {
|
|
338
|
+
result = originalClassName + (result.length > 0 ? " " + result : result);
|
|
208
339
|
continue;
|
|
209
340
|
}
|
|
210
|
-
|
|
341
|
+
hasPostfixModifier = false;
|
|
211
342
|
}
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
343
|
+
const variantModifier = modifiers.length === 0 ? "" : modifiers.length === 1 ? modifiers[0] : sortModifiers(modifiers).join(":");
|
|
344
|
+
const modifierId = hasImportantModifier ? variantModifier + IMPORTANT_MODIFIER : variantModifier;
|
|
345
|
+
const classId = modifierId + classGroupId;
|
|
346
|
+
if (classGroupsInConflict.indexOf(classId) > -1) continue;
|
|
347
|
+
classGroupsInConflict.push(classId);
|
|
348
|
+
const conflictGroups = getConflictingClassGroupIds(classGroupId, hasPostfixModifier);
|
|
349
|
+
for (let i = 0; i < conflictGroups.length; ++i) {
|
|
350
|
+
const group = conflictGroups[i];
|
|
351
|
+
classGroupsInConflict.push(modifierId + group);
|
|
219
352
|
}
|
|
220
|
-
|
|
353
|
+
result = originalClassName + (result.length > 0 ? " " + result : result);
|
|
221
354
|
}
|
|
222
|
-
return
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
355
|
+
return result;
|
|
356
|
+
};
|
|
357
|
+
/**
|
|
358
|
+
* The code in this file is copied from https://github.com/lukeed/clsx and modified to suit the needs of tailwind-merge better.
|
|
359
|
+
*
|
|
360
|
+
* Specifically:
|
|
361
|
+
* - Runtime code from https://github.com/lukeed/clsx/blob/v1.2.1/src/index.js
|
|
362
|
+
* - TypeScript types from https://github.com/lukeed/clsx/blob/v1.2.1/clsx.d.ts
|
|
363
|
+
*
|
|
364
|
+
* Original code has MIT license: Copyright (c) Luke Edwards <luke.edwards05@gmail.com> (lukeed.com)
|
|
365
|
+
*/
|
|
366
|
+
var twJoin = (...classLists) => {
|
|
367
|
+
let index = 0;
|
|
368
|
+
let argument;
|
|
369
|
+
let resolvedValue;
|
|
370
|
+
let string = "";
|
|
371
|
+
while (index < classLists.length) if (argument = classLists[index++]) {
|
|
372
|
+
if (resolvedValue = toValue(argument)) {
|
|
373
|
+
string && (string += " ");
|
|
374
|
+
string += resolvedValue;
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
return string;
|
|
378
|
+
};
|
|
379
|
+
var toValue = (mix) => {
|
|
380
|
+
if (typeof mix === "string") return mix;
|
|
381
|
+
let resolvedValue;
|
|
382
|
+
let string = "";
|
|
383
|
+
for (let k = 0; k < mix.length; k++) if (mix[k]) {
|
|
384
|
+
if (resolvedValue = toValue(mix[k])) {
|
|
385
|
+
string && (string += " ");
|
|
386
|
+
string += resolvedValue;
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
return string;
|
|
390
|
+
};
|
|
391
|
+
var createTailwindMerge = (createConfigFirst, ...createConfigRest) => {
|
|
392
|
+
let configUtils;
|
|
393
|
+
let cacheGet;
|
|
394
|
+
let cacheSet;
|
|
395
|
+
let functionToCall;
|
|
396
|
+
const initTailwindMerge = (classList) => {
|
|
397
|
+
configUtils = createConfigUtils(createConfigRest.reduce((previousConfig, createConfigCurrent) => createConfigCurrent(previousConfig), createConfigFirst()));
|
|
398
|
+
cacheGet = configUtils.cache.get;
|
|
399
|
+
cacheSet = configUtils.cache.set;
|
|
400
|
+
functionToCall = tailwindMerge;
|
|
401
|
+
return tailwindMerge(classList);
|
|
238
402
|
};
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
403
|
+
const tailwindMerge = (classList) => {
|
|
404
|
+
const cachedResult = cacheGet(classList);
|
|
405
|
+
if (cachedResult) return cachedResult;
|
|
406
|
+
const result = mergeClassList(classList, configUtils);
|
|
407
|
+
cacheSet(classList, result);
|
|
408
|
+
return result;
|
|
409
|
+
};
|
|
410
|
+
functionToCall = initTailwindMerge;
|
|
411
|
+
return (...args) => functionToCall(twJoin(...args));
|
|
412
|
+
};
|
|
413
|
+
var fallbackThemeArr = [];
|
|
414
|
+
var fromTheme = (key) => {
|
|
415
|
+
const themeGetter = (theme) => theme[key] || fallbackThemeArr;
|
|
416
|
+
themeGetter.isThemeGetter = true;
|
|
417
|
+
return themeGetter;
|
|
418
|
+
};
|
|
419
|
+
var arbitraryValueRegex = /^\[(?:(\w[\w-]*):)?(.+)\]$/i;
|
|
420
|
+
var arbitraryVariableRegex = /^\((?:(\w[\w-]*):)?(.+)\)$/i;
|
|
421
|
+
var fractionRegex = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/;
|
|
422
|
+
var tshirtUnitRegex = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/;
|
|
423
|
+
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$/;
|
|
424
|
+
var colorFunctionRegex = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/;
|
|
425
|
+
var shadowRegex = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;
|
|
426
|
+
var imageRegex = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;
|
|
427
|
+
var isFraction = (value) => fractionRegex.test(value);
|
|
428
|
+
var isNumber = (value) => !!value && !Number.isNaN(Number(value));
|
|
429
|
+
var isInteger = (value) => !!value && Number.isInteger(Number(value));
|
|
430
|
+
var isPercent = (value) => value.endsWith("%") && isNumber(value.slice(0, -1));
|
|
431
|
+
var isTshirtSize = (value) => tshirtUnitRegex.test(value);
|
|
432
|
+
var isAny = () => true;
|
|
433
|
+
var isLengthOnly = (value) => lengthUnitRegex.test(value) && !colorFunctionRegex.test(value);
|
|
434
|
+
var isNever = () => false;
|
|
435
|
+
var isShadow = (value) => shadowRegex.test(value);
|
|
436
|
+
var isImage = (value) => imageRegex.test(value);
|
|
437
|
+
var isAnyNonArbitrary = (value) => !isArbitraryValue(value) && !isArbitraryVariable(value);
|
|
438
|
+
var isArbitrarySize = (value) => getIsArbitraryValue(value, isLabelSize, isNever);
|
|
439
|
+
var isArbitraryValue = (value) => arbitraryValueRegex.test(value);
|
|
440
|
+
var isArbitraryLength = (value) => getIsArbitraryValue(value, isLabelLength, isLengthOnly);
|
|
441
|
+
var isArbitraryNumber = (value) => getIsArbitraryValue(value, isLabelNumber, isNumber);
|
|
442
|
+
var isArbitraryWeight = (value) => getIsArbitraryValue(value, isLabelWeight, isAny);
|
|
443
|
+
var isArbitraryFamilyName = (value) => getIsArbitraryValue(value, isLabelFamilyName, isNever);
|
|
444
|
+
var isArbitraryPosition = (value) => getIsArbitraryValue(value, isLabelPosition, isNever);
|
|
445
|
+
var isArbitraryImage = (value) => getIsArbitraryValue(value, isLabelImage, isImage);
|
|
446
|
+
var isArbitraryShadow = (value) => getIsArbitraryValue(value, isLabelShadow, isShadow);
|
|
447
|
+
var isArbitraryVariable = (value) => arbitraryVariableRegex.test(value);
|
|
448
|
+
var isArbitraryVariableLength = (value) => getIsArbitraryVariable(value, isLabelLength);
|
|
449
|
+
var isArbitraryVariableFamilyName = (value) => getIsArbitraryVariable(value, isLabelFamilyName);
|
|
450
|
+
var isArbitraryVariablePosition = (value) => getIsArbitraryVariable(value, isLabelPosition);
|
|
451
|
+
var isArbitraryVariableSize = (value) => getIsArbitraryVariable(value, isLabelSize);
|
|
452
|
+
var isArbitraryVariableImage = (value) => getIsArbitraryVariable(value, isLabelImage);
|
|
453
|
+
var isArbitraryVariableShadow = (value) => getIsArbitraryVariable(value, isLabelShadow, true);
|
|
454
|
+
var isArbitraryVariableWeight = (value) => getIsArbitraryVariable(value, isLabelWeight, true);
|
|
455
|
+
var getIsArbitraryValue = (value, testLabel, testValue) => {
|
|
456
|
+
const result = arbitraryValueRegex.exec(value);
|
|
457
|
+
if (result) {
|
|
458
|
+
if (result[1]) return testLabel(result[1]);
|
|
459
|
+
return testValue(result[2]);
|
|
460
|
+
}
|
|
461
|
+
return false;
|
|
462
|
+
};
|
|
463
|
+
var getIsArbitraryVariable = (value, testLabel, shouldMatchNoLabel = false) => {
|
|
464
|
+
const result = arbitraryVariableRegex.exec(value);
|
|
465
|
+
if (result) {
|
|
466
|
+
if (result[1]) return testLabel(result[1]);
|
|
467
|
+
return shouldMatchNoLabel;
|
|
468
|
+
}
|
|
469
|
+
return false;
|
|
470
|
+
};
|
|
471
|
+
var isLabelPosition = (label) => label === "position" || label === "percentage";
|
|
472
|
+
var isLabelImage = (label) => label === "image" || label === "url";
|
|
473
|
+
var isLabelSize = (label) => label === "length" || label === "size" || label === "bg-size";
|
|
474
|
+
var isLabelLength = (label) => label === "length";
|
|
475
|
+
var isLabelNumber = (label) => label === "number";
|
|
476
|
+
var isLabelFamilyName = (label) => label === "family-name";
|
|
477
|
+
var isLabelWeight = (label) => label === "number" || label === "weight";
|
|
478
|
+
var isLabelShadow = (label) => label === "shadow";
|
|
479
|
+
var getDefaultConfig = () => {
|
|
480
|
+
/**
|
|
481
|
+
* Theme getters for theme variable namespaces
|
|
482
|
+
* @see https://tailwindcss.com/docs/theme#theme-variable-namespaces
|
|
483
|
+
*/
|
|
484
|
+
const themeColor = fromTheme("color");
|
|
485
|
+
const themeFont = fromTheme("font");
|
|
486
|
+
const themeText = fromTheme("text");
|
|
487
|
+
const themeFontWeight = fromTheme("font-weight");
|
|
488
|
+
const themeTracking = fromTheme("tracking");
|
|
489
|
+
const themeLeading = fromTheme("leading");
|
|
490
|
+
const themeBreakpoint = fromTheme("breakpoint");
|
|
491
|
+
const themeContainer = fromTheme("container");
|
|
492
|
+
const themeSpacing = fromTheme("spacing");
|
|
493
|
+
const themeRadius = fromTheme("radius");
|
|
494
|
+
const themeShadow = fromTheme("shadow");
|
|
495
|
+
const themeInsetShadow = fromTheme("inset-shadow");
|
|
496
|
+
const themeTextShadow = fromTheme("text-shadow");
|
|
497
|
+
const themeDropShadow = fromTheme("drop-shadow");
|
|
498
|
+
const themeBlur = fromTheme("blur");
|
|
499
|
+
const themePerspective = fromTheme("perspective");
|
|
500
|
+
const themeAspect = fromTheme("aspect");
|
|
501
|
+
const themeEase = fromTheme("ease");
|
|
502
|
+
const themeAnimate = fromTheme("animate");
|
|
503
|
+
/**
|
|
504
|
+
* Helpers to avoid repeating the same scales
|
|
505
|
+
*
|
|
506
|
+
* We use functions that create a new array every time they're called instead of static arrays.
|
|
507
|
+
* This ensures that users who modify any scale by mutating the array (e.g. with `array.push(element)`) don't accidentally mutate arrays in other parts of the config.
|
|
508
|
+
*/
|
|
509
|
+
const scaleBreak = () => [
|
|
251
510
|
"auto",
|
|
252
511
|
"avoid",
|
|
253
512
|
"all",
|
|
@@ -256,7 +515,8 @@ var a = (e, t) => {
|
|
|
256
515
|
"left",
|
|
257
516
|
"right",
|
|
258
517
|
"column"
|
|
259
|
-
]
|
|
518
|
+
];
|
|
519
|
+
const scalePosition = () => [
|
|
260
520
|
"center",
|
|
261
521
|
"top",
|
|
262
522
|
"bottom",
|
|
@@ -270,59 +530,69 @@ var a = (e, t) => {
|
|
|
270
530
|
"right-bottom",
|
|
271
531
|
"bottom-left",
|
|
272
532
|
"left-bottom"
|
|
273
|
-
]
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
533
|
+
];
|
|
534
|
+
const scalePositionWithArbitrary = () => [
|
|
535
|
+
...scalePosition(),
|
|
536
|
+
isArbitraryVariable,
|
|
537
|
+
isArbitraryValue
|
|
538
|
+
];
|
|
539
|
+
const scaleOverflow = () => [
|
|
278
540
|
"auto",
|
|
279
541
|
"hidden",
|
|
280
542
|
"clip",
|
|
281
543
|
"visible",
|
|
282
544
|
"scroll"
|
|
283
|
-
]
|
|
545
|
+
];
|
|
546
|
+
const scaleOverscroll = () => [
|
|
284
547
|
"auto",
|
|
285
548
|
"contain",
|
|
286
549
|
"none"
|
|
287
|
-
]
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
550
|
+
];
|
|
551
|
+
const scaleUnambiguousSpacing = () => [
|
|
552
|
+
isArbitraryVariable,
|
|
553
|
+
isArbitraryValue,
|
|
554
|
+
themeSpacing
|
|
555
|
+
];
|
|
556
|
+
const scaleInset = () => [
|
|
557
|
+
isFraction,
|
|
293
558
|
"full",
|
|
294
559
|
"auto",
|
|
295
|
-
...
|
|
296
|
-
]
|
|
297
|
-
|
|
560
|
+
...scaleUnambiguousSpacing()
|
|
561
|
+
];
|
|
562
|
+
const scaleGridTemplateColsRows = () => [
|
|
563
|
+
isInteger,
|
|
298
564
|
"none",
|
|
299
565
|
"subgrid",
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
]
|
|
566
|
+
isArbitraryVariable,
|
|
567
|
+
isArbitraryValue
|
|
568
|
+
];
|
|
569
|
+
const scaleGridColRowStartAndEnd = () => [
|
|
303
570
|
"auto",
|
|
304
571
|
{ span: [
|
|
305
572
|
"full",
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
573
|
+
isInteger,
|
|
574
|
+
isArbitraryVariable,
|
|
575
|
+
isArbitraryValue
|
|
309
576
|
] },
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
]
|
|
314
|
-
|
|
577
|
+
isInteger,
|
|
578
|
+
isArbitraryVariable,
|
|
579
|
+
isArbitraryValue
|
|
580
|
+
];
|
|
581
|
+
const scaleGridColRowStartOrEnd = () => [
|
|
582
|
+
isInteger,
|
|
315
583
|
"auto",
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
]
|
|
584
|
+
isArbitraryVariable,
|
|
585
|
+
isArbitraryValue
|
|
586
|
+
];
|
|
587
|
+
const scaleGridAutoColsRows = () => [
|
|
319
588
|
"auto",
|
|
320
589
|
"min",
|
|
321
590
|
"max",
|
|
322
591
|
"fr",
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
]
|
|
592
|
+
isArbitraryVariable,
|
|
593
|
+
isArbitraryValue
|
|
594
|
+
];
|
|
595
|
+
const scaleAlignPrimaryAxis = () => [
|
|
326
596
|
"start",
|
|
327
597
|
"end",
|
|
328
598
|
"center",
|
|
@@ -333,15 +603,18 @@ var a = (e, t) => {
|
|
|
333
603
|
"baseline",
|
|
334
604
|
"center-safe",
|
|
335
605
|
"end-safe"
|
|
336
|
-
]
|
|
606
|
+
];
|
|
607
|
+
const scaleAlignSecondaryAxis = () => [
|
|
337
608
|
"start",
|
|
338
609
|
"end",
|
|
339
610
|
"center",
|
|
340
611
|
"stretch",
|
|
341
612
|
"center-safe",
|
|
342
613
|
"end-safe"
|
|
343
|
-
]
|
|
344
|
-
|
|
614
|
+
];
|
|
615
|
+
const scaleMargin = () => ["auto", ...scaleUnambiguousSpacing()];
|
|
616
|
+
const scaleSizing = () => [
|
|
617
|
+
isFraction,
|
|
345
618
|
"auto",
|
|
346
619
|
"full",
|
|
347
620
|
"dvw",
|
|
@@ -353,9 +626,10 @@ var a = (e, t) => {
|
|
|
353
626
|
"min",
|
|
354
627
|
"max",
|
|
355
628
|
"fit",
|
|
356
|
-
...
|
|
357
|
-
]
|
|
358
|
-
|
|
629
|
+
...scaleUnambiguousSpacing()
|
|
630
|
+
];
|
|
631
|
+
const scaleSizingInline = () => [
|
|
632
|
+
isFraction,
|
|
359
633
|
"screen",
|
|
360
634
|
"full",
|
|
361
635
|
"dvw",
|
|
@@ -364,9 +638,10 @@ var a = (e, t) => {
|
|
|
364
638
|
"min",
|
|
365
639
|
"max",
|
|
366
640
|
"fit",
|
|
367
|
-
...
|
|
368
|
-
]
|
|
369
|
-
|
|
641
|
+
...scaleUnambiguousSpacing()
|
|
642
|
+
];
|
|
643
|
+
const scaleSizingBlock = () => [
|
|
644
|
+
isFraction,
|
|
370
645
|
"screen",
|
|
371
646
|
"full",
|
|
372
647
|
"lh",
|
|
@@ -376,51 +651,60 @@ var a = (e, t) => {
|
|
|
376
651
|
"min",
|
|
377
652
|
"max",
|
|
378
653
|
"fit",
|
|
379
|
-
...
|
|
380
|
-
]
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
654
|
+
...scaleUnambiguousSpacing()
|
|
655
|
+
];
|
|
656
|
+
const scaleColor = () => [
|
|
657
|
+
themeColor,
|
|
658
|
+
isArbitraryVariable,
|
|
659
|
+
isArbitraryValue
|
|
660
|
+
];
|
|
661
|
+
const scaleBgPosition = () => [
|
|
662
|
+
...scalePosition(),
|
|
663
|
+
isArbitraryVariablePosition,
|
|
664
|
+
isArbitraryPosition,
|
|
665
|
+
{ position: [isArbitraryVariable, isArbitraryValue] }
|
|
666
|
+
];
|
|
667
|
+
const scaleBgRepeat = () => ["no-repeat", { repeat: [
|
|
390
668
|
"",
|
|
391
669
|
"x",
|
|
392
670
|
"y",
|
|
393
671
|
"space",
|
|
394
672
|
"round"
|
|
395
|
-
] }]
|
|
673
|
+
] }];
|
|
674
|
+
const scaleBgSize = () => [
|
|
396
675
|
"auto",
|
|
397
676
|
"cover",
|
|
398
677
|
"contain",
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
{ size: [
|
|
402
|
-
]
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
678
|
+
isArbitraryVariableSize,
|
|
679
|
+
isArbitrarySize,
|
|
680
|
+
{ size: [isArbitraryVariable, isArbitraryValue] }
|
|
681
|
+
];
|
|
682
|
+
const scaleGradientStopPosition = () => [
|
|
683
|
+
isPercent,
|
|
684
|
+
isArbitraryVariableLength,
|
|
685
|
+
isArbitraryLength
|
|
686
|
+
];
|
|
687
|
+
const scaleRadius = () => [
|
|
407
688
|
"",
|
|
408
689
|
"none",
|
|
409
690
|
"full",
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
]
|
|
691
|
+
themeRadius,
|
|
692
|
+
isArbitraryVariable,
|
|
693
|
+
isArbitraryValue
|
|
694
|
+
];
|
|
695
|
+
const scaleBorderWidth = () => [
|
|
414
696
|
"",
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
]
|
|
697
|
+
isNumber,
|
|
698
|
+
isArbitraryVariableLength,
|
|
699
|
+
isArbitraryLength
|
|
700
|
+
];
|
|
701
|
+
const scaleLineStyle = () => [
|
|
419
702
|
"solid",
|
|
420
703
|
"dashed",
|
|
421
704
|
"dotted",
|
|
422
705
|
"double"
|
|
423
|
-
]
|
|
706
|
+
];
|
|
707
|
+
const scaleBlendMode = () => [
|
|
424
708
|
"normal",
|
|
425
709
|
"multiply",
|
|
426
710
|
"screen",
|
|
@@ -437,35 +721,41 @@ var a = (e, t) => {
|
|
|
437
721
|
"saturation",
|
|
438
722
|
"color",
|
|
439
723
|
"luminosity"
|
|
440
|
-
]
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
724
|
+
];
|
|
725
|
+
const scaleMaskImagePosition = () => [
|
|
726
|
+
isNumber,
|
|
727
|
+
isPercent,
|
|
728
|
+
isArbitraryVariablePosition,
|
|
729
|
+
isArbitraryPosition
|
|
730
|
+
];
|
|
731
|
+
const scaleBlur = () => [
|
|
446
732
|
"",
|
|
447
733
|
"none",
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
]
|
|
734
|
+
themeBlur,
|
|
735
|
+
isArbitraryVariable,
|
|
736
|
+
isArbitraryValue
|
|
737
|
+
];
|
|
738
|
+
const scaleRotate = () => [
|
|
452
739
|
"none",
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
]
|
|
740
|
+
isNumber,
|
|
741
|
+
isArbitraryVariable,
|
|
742
|
+
isArbitraryValue
|
|
743
|
+
];
|
|
744
|
+
const scaleScale = () => [
|
|
457
745
|
"none",
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
]
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
746
|
+
isNumber,
|
|
747
|
+
isArbitraryVariable,
|
|
748
|
+
isArbitraryValue
|
|
749
|
+
];
|
|
750
|
+
const scaleSkew = () => [
|
|
751
|
+
isNumber,
|
|
752
|
+
isArbitraryVariable,
|
|
753
|
+
isArbitraryValue
|
|
754
|
+
];
|
|
755
|
+
const scaleTranslate = () => [
|
|
756
|
+
isFraction,
|
|
467
757
|
"full",
|
|
468
|
-
...
|
|
758
|
+
...scaleUnambiguousSpacing()
|
|
469
759
|
];
|
|
470
760
|
return {
|
|
471
761
|
cacheSize: 500,
|
|
@@ -477,17 +767,17 @@ var a = (e, t) => {
|
|
|
477
767
|
"bounce"
|
|
478
768
|
],
|
|
479
769
|
aspect: ["video"],
|
|
480
|
-
blur: [
|
|
481
|
-
breakpoint: [
|
|
482
|
-
color: [
|
|
483
|
-
container: [
|
|
484
|
-
"drop-shadow": [
|
|
770
|
+
blur: [isTshirtSize],
|
|
771
|
+
breakpoint: [isTshirtSize],
|
|
772
|
+
color: [isAny],
|
|
773
|
+
container: [isTshirtSize],
|
|
774
|
+
"drop-shadow": [isTshirtSize],
|
|
485
775
|
ease: [
|
|
486
776
|
"in",
|
|
487
777
|
"out",
|
|
488
778
|
"in-out"
|
|
489
779
|
],
|
|
490
|
-
font: [
|
|
780
|
+
font: [isAnyNonArbitrary],
|
|
491
781
|
"font-weight": [
|
|
492
782
|
"thin",
|
|
493
783
|
"extralight",
|
|
@@ -499,7 +789,7 @@ var a = (e, t) => {
|
|
|
499
789
|
"extrabold",
|
|
500
790
|
"black"
|
|
501
791
|
],
|
|
502
|
-
"inset-shadow": [
|
|
792
|
+
"inset-shadow": [isTshirtSize],
|
|
503
793
|
leading: [
|
|
504
794
|
"none",
|
|
505
795
|
"tight",
|
|
@@ -516,11 +806,11 @@ var a = (e, t) => {
|
|
|
516
806
|
"distant",
|
|
517
807
|
"none"
|
|
518
808
|
],
|
|
519
|
-
radius: [
|
|
520
|
-
shadow: [
|
|
521
|
-
spacing: ["px",
|
|
522
|
-
text: [
|
|
523
|
-
"text-shadow": [
|
|
809
|
+
radius: [isTshirtSize],
|
|
810
|
+
shadow: [isTshirtSize],
|
|
811
|
+
spacing: ["px", isNumber],
|
|
812
|
+
text: [isTshirtSize],
|
|
813
|
+
"text-shadow": [isTshirtSize],
|
|
524
814
|
tracking: [
|
|
525
815
|
"tighter",
|
|
526
816
|
"tight",
|
|
@@ -534,20 +824,20 @@ var a = (e, t) => {
|
|
|
534
824
|
aspect: [{ aspect: [
|
|
535
825
|
"auto",
|
|
536
826
|
"square",
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
827
|
+
isFraction,
|
|
828
|
+
isArbitraryValue,
|
|
829
|
+
isArbitraryVariable,
|
|
830
|
+
themeAspect
|
|
541
831
|
] }],
|
|
542
832
|
container: ["container"],
|
|
543
833
|
columns: [{ columns: [
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
834
|
+
isNumber,
|
|
835
|
+
isArbitraryValue,
|
|
836
|
+
isArbitraryVariable,
|
|
837
|
+
themeContainer
|
|
548
838
|
] }],
|
|
549
|
-
"break-after": [{ "break-after":
|
|
550
|
-
"break-before": [{ "break-before":
|
|
839
|
+
"break-after": [{ "break-after": scaleBreak() }],
|
|
840
|
+
"break-before": [{ "break-before": scaleBreak() }],
|
|
551
841
|
"break-inside": [{ "break-inside": [
|
|
552
842
|
"auto",
|
|
553
843
|
"avoid",
|
|
@@ -603,13 +893,13 @@ var a = (e, t) => {
|
|
|
603
893
|
"none",
|
|
604
894
|
"scale-down"
|
|
605
895
|
] }],
|
|
606
|
-
"object-position": [{ object:
|
|
607
|
-
overflow: [{ overflow:
|
|
608
|
-
"overflow-x": [{ "overflow-x":
|
|
609
|
-
"overflow-y": [{ "overflow-y":
|
|
610
|
-
overscroll: [{ overscroll:
|
|
611
|
-
"overscroll-x": [{ "overscroll-x":
|
|
612
|
-
"overscroll-y": [{ "overscroll-y":
|
|
896
|
+
"object-position": [{ object: scalePositionWithArbitrary() }],
|
|
897
|
+
overflow: [{ overflow: scaleOverflow() }],
|
|
898
|
+
"overflow-x": [{ "overflow-x": scaleOverflow() }],
|
|
899
|
+
"overflow-y": [{ "overflow-y": scaleOverflow() }],
|
|
900
|
+
overscroll: [{ overscroll: scaleOverscroll() }],
|
|
901
|
+
"overscroll-x": [{ "overscroll-x": scaleOverscroll() }],
|
|
902
|
+
"overscroll-y": [{ "overscroll-y": scaleOverscroll() }],
|
|
613
903
|
position: [
|
|
614
904
|
"static",
|
|
615
905
|
"fixed",
|
|
@@ -617,40 +907,40 @@ var a = (e, t) => {
|
|
|
617
907
|
"relative",
|
|
618
908
|
"sticky"
|
|
619
909
|
],
|
|
620
|
-
inset: [{ inset:
|
|
621
|
-
"inset-x": [{ "inset-x":
|
|
622
|
-
"inset-y": [{ "inset-y":
|
|
910
|
+
inset: [{ inset: scaleInset() }],
|
|
911
|
+
"inset-x": [{ "inset-x": scaleInset() }],
|
|
912
|
+
"inset-y": [{ "inset-y": scaleInset() }],
|
|
623
913
|
start: [{
|
|
624
|
-
"inset-s":
|
|
625
|
-
start:
|
|
914
|
+
"inset-s": scaleInset(),
|
|
915
|
+
start: scaleInset()
|
|
626
916
|
}],
|
|
627
917
|
end: [{
|
|
628
|
-
"inset-e":
|
|
629
|
-
end:
|
|
918
|
+
"inset-e": scaleInset(),
|
|
919
|
+
end: scaleInset()
|
|
630
920
|
}],
|
|
631
|
-
"inset-bs": [{ "inset-bs":
|
|
632
|
-
"inset-be": [{ "inset-be":
|
|
633
|
-
top: [{ top:
|
|
634
|
-
right: [{ right:
|
|
635
|
-
bottom: [{ bottom:
|
|
636
|
-
left: [{ left:
|
|
921
|
+
"inset-bs": [{ "inset-bs": scaleInset() }],
|
|
922
|
+
"inset-be": [{ "inset-be": scaleInset() }],
|
|
923
|
+
top: [{ top: scaleInset() }],
|
|
924
|
+
right: [{ right: scaleInset() }],
|
|
925
|
+
bottom: [{ bottom: scaleInset() }],
|
|
926
|
+
left: [{ left: scaleInset() }],
|
|
637
927
|
visibility: [
|
|
638
928
|
"visible",
|
|
639
929
|
"invisible",
|
|
640
930
|
"collapse"
|
|
641
931
|
],
|
|
642
932
|
z: [{ z: [
|
|
643
|
-
|
|
933
|
+
isInteger,
|
|
644
934
|
"auto",
|
|
645
|
-
|
|
646
|
-
|
|
935
|
+
isArbitraryVariable,
|
|
936
|
+
isArbitraryValue
|
|
647
937
|
] }],
|
|
648
938
|
basis: [{ basis: [
|
|
649
|
-
|
|
939
|
+
isFraction,
|
|
650
940
|
"full",
|
|
651
941
|
"auto",
|
|
652
|
-
|
|
653
|
-
...
|
|
942
|
+
themeContainer,
|
|
943
|
+
...scaleUnambiguousSpacing()
|
|
654
944
|
] }],
|
|
655
945
|
"flex-direction": [{ flex: [
|
|
656
946
|
"row",
|
|
@@ -664,41 +954,41 @@ var a = (e, t) => {
|
|
|
664
954
|
"wrap-reverse"
|
|
665
955
|
] }],
|
|
666
956
|
flex: [{ flex: [
|
|
667
|
-
|
|
668
|
-
|
|
957
|
+
isNumber,
|
|
958
|
+
isFraction,
|
|
669
959
|
"auto",
|
|
670
960
|
"initial",
|
|
671
961
|
"none",
|
|
672
|
-
|
|
962
|
+
isArbitraryValue
|
|
673
963
|
] }],
|
|
674
964
|
grow: [{ grow: [
|
|
675
965
|
"",
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
966
|
+
isNumber,
|
|
967
|
+
isArbitraryVariable,
|
|
968
|
+
isArbitraryValue
|
|
679
969
|
] }],
|
|
680
970
|
shrink: [{ shrink: [
|
|
681
971
|
"",
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
972
|
+
isNumber,
|
|
973
|
+
isArbitraryVariable,
|
|
974
|
+
isArbitraryValue
|
|
685
975
|
] }],
|
|
686
976
|
order: [{ order: [
|
|
687
|
-
|
|
977
|
+
isInteger,
|
|
688
978
|
"first",
|
|
689
979
|
"last",
|
|
690
980
|
"none",
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
] }],
|
|
694
|
-
"grid-cols": [{ "grid-cols":
|
|
695
|
-
"col-start-end": [{ col:
|
|
696
|
-
"col-start": [{ "col-start":
|
|
697
|
-
"col-end": [{ "col-end":
|
|
698
|
-
"grid-rows": [{ "grid-rows":
|
|
699
|
-
"row-start-end": [{ row:
|
|
700
|
-
"row-start": [{ "row-start":
|
|
701
|
-
"row-end": [{ "row-end":
|
|
981
|
+
isArbitraryVariable,
|
|
982
|
+
isArbitraryValue
|
|
983
|
+
] }],
|
|
984
|
+
"grid-cols": [{ "grid-cols": scaleGridTemplateColsRows() }],
|
|
985
|
+
"col-start-end": [{ col: scaleGridColRowStartAndEnd() }],
|
|
986
|
+
"col-start": [{ "col-start": scaleGridColRowStartOrEnd() }],
|
|
987
|
+
"col-end": [{ "col-end": scaleGridColRowStartOrEnd() }],
|
|
988
|
+
"grid-rows": [{ "grid-rows": scaleGridTemplateColsRows() }],
|
|
989
|
+
"row-start-end": [{ row: scaleGridColRowStartAndEnd() }],
|
|
990
|
+
"row-start": [{ "row-start": scaleGridColRowStartOrEnd() }],
|
|
991
|
+
"row-end": [{ "row-end": scaleGridColRowStartOrEnd() }],
|
|
702
992
|
"grid-flow": [{ "grid-flow": [
|
|
703
993
|
"row",
|
|
704
994
|
"col",
|
|
@@ -706,104 +996,104 @@ var a = (e, t) => {
|
|
|
706
996
|
"row-dense",
|
|
707
997
|
"col-dense"
|
|
708
998
|
] }],
|
|
709
|
-
"auto-cols": [{ "auto-cols":
|
|
710
|
-
"auto-rows": [{ "auto-rows":
|
|
711
|
-
gap: [{ gap:
|
|
712
|
-
"gap-x": [{ "gap-x":
|
|
713
|
-
"gap-y": [{ "gap-y":
|
|
714
|
-
"justify-content": [{ justify: [...
|
|
715
|
-
"justify-items": [{ "justify-items": [...
|
|
716
|
-
"justify-self": [{ "justify-self": ["auto", ...
|
|
717
|
-
"align-content": [{ content: ["normal", ...
|
|
718
|
-
"align-items": [{ items: [...
|
|
999
|
+
"auto-cols": [{ "auto-cols": scaleGridAutoColsRows() }],
|
|
1000
|
+
"auto-rows": [{ "auto-rows": scaleGridAutoColsRows() }],
|
|
1001
|
+
gap: [{ gap: scaleUnambiguousSpacing() }],
|
|
1002
|
+
"gap-x": [{ "gap-x": scaleUnambiguousSpacing() }],
|
|
1003
|
+
"gap-y": [{ "gap-y": scaleUnambiguousSpacing() }],
|
|
1004
|
+
"justify-content": [{ justify: [...scaleAlignPrimaryAxis(), "normal"] }],
|
|
1005
|
+
"justify-items": [{ "justify-items": [...scaleAlignSecondaryAxis(), "normal"] }],
|
|
1006
|
+
"justify-self": [{ "justify-self": ["auto", ...scaleAlignSecondaryAxis()] }],
|
|
1007
|
+
"align-content": [{ content: ["normal", ...scaleAlignPrimaryAxis()] }],
|
|
1008
|
+
"align-items": [{ items: [...scaleAlignSecondaryAxis(), { baseline: ["", "last"] }] }],
|
|
719
1009
|
"align-self": [{ self: [
|
|
720
1010
|
"auto",
|
|
721
|
-
...
|
|
1011
|
+
...scaleAlignSecondaryAxis(),
|
|
722
1012
|
{ baseline: ["", "last"] }
|
|
723
1013
|
] }],
|
|
724
|
-
"place-content": [{ "place-content":
|
|
725
|
-
"place-items": [{ "place-items": [...
|
|
726
|
-
"place-self": [{ "place-self": ["auto", ...
|
|
727
|
-
p: [{ p:
|
|
728
|
-
px: [{ px:
|
|
729
|
-
py: [{ py:
|
|
730
|
-
ps: [{ ps:
|
|
731
|
-
pe: [{ pe:
|
|
732
|
-
pbs: [{ pbs:
|
|
733
|
-
pbe: [{ pbe:
|
|
734
|
-
pt: [{ pt:
|
|
735
|
-
pr: [{ pr:
|
|
736
|
-
pb: [{ pb:
|
|
737
|
-
pl: [{ pl:
|
|
738
|
-
m: [{ m:
|
|
739
|
-
mx: [{ mx:
|
|
740
|
-
my: [{ my:
|
|
741
|
-
ms: [{ ms:
|
|
742
|
-
me: [{ me:
|
|
743
|
-
mbs: [{ mbs:
|
|
744
|
-
mbe: [{ mbe:
|
|
745
|
-
mt: [{ mt:
|
|
746
|
-
mr: [{ mr:
|
|
747
|
-
mb: [{ mb:
|
|
748
|
-
ml: [{ ml:
|
|
749
|
-
"space-x": [{ "space-x":
|
|
1014
|
+
"place-content": [{ "place-content": scaleAlignPrimaryAxis() }],
|
|
1015
|
+
"place-items": [{ "place-items": [...scaleAlignSecondaryAxis(), "baseline"] }],
|
|
1016
|
+
"place-self": [{ "place-self": ["auto", ...scaleAlignSecondaryAxis()] }],
|
|
1017
|
+
p: [{ p: scaleUnambiguousSpacing() }],
|
|
1018
|
+
px: [{ px: scaleUnambiguousSpacing() }],
|
|
1019
|
+
py: [{ py: scaleUnambiguousSpacing() }],
|
|
1020
|
+
ps: [{ ps: scaleUnambiguousSpacing() }],
|
|
1021
|
+
pe: [{ pe: scaleUnambiguousSpacing() }],
|
|
1022
|
+
pbs: [{ pbs: scaleUnambiguousSpacing() }],
|
|
1023
|
+
pbe: [{ pbe: scaleUnambiguousSpacing() }],
|
|
1024
|
+
pt: [{ pt: scaleUnambiguousSpacing() }],
|
|
1025
|
+
pr: [{ pr: scaleUnambiguousSpacing() }],
|
|
1026
|
+
pb: [{ pb: scaleUnambiguousSpacing() }],
|
|
1027
|
+
pl: [{ pl: scaleUnambiguousSpacing() }],
|
|
1028
|
+
m: [{ m: scaleMargin() }],
|
|
1029
|
+
mx: [{ mx: scaleMargin() }],
|
|
1030
|
+
my: [{ my: scaleMargin() }],
|
|
1031
|
+
ms: [{ ms: scaleMargin() }],
|
|
1032
|
+
me: [{ me: scaleMargin() }],
|
|
1033
|
+
mbs: [{ mbs: scaleMargin() }],
|
|
1034
|
+
mbe: [{ mbe: scaleMargin() }],
|
|
1035
|
+
mt: [{ mt: scaleMargin() }],
|
|
1036
|
+
mr: [{ mr: scaleMargin() }],
|
|
1037
|
+
mb: [{ mb: scaleMargin() }],
|
|
1038
|
+
ml: [{ ml: scaleMargin() }],
|
|
1039
|
+
"space-x": [{ "space-x": scaleUnambiguousSpacing() }],
|
|
750
1040
|
"space-x-reverse": ["space-x-reverse"],
|
|
751
|
-
"space-y": [{ "space-y":
|
|
1041
|
+
"space-y": [{ "space-y": scaleUnambiguousSpacing() }],
|
|
752
1042
|
"space-y-reverse": ["space-y-reverse"],
|
|
753
|
-
size: [{ size:
|
|
754
|
-
"inline-size": [{ inline: ["auto", ...
|
|
755
|
-
"min-inline-size": [{ "min-inline": ["auto", ...
|
|
756
|
-
"max-inline-size": [{ "max-inline": ["none", ...
|
|
757
|
-
"block-size": [{ block: ["auto", ...
|
|
758
|
-
"min-block-size": [{ "min-block": ["auto", ...
|
|
759
|
-
"max-block-size": [{ "max-block": ["none", ...
|
|
1043
|
+
size: [{ size: scaleSizing() }],
|
|
1044
|
+
"inline-size": [{ inline: ["auto", ...scaleSizingInline()] }],
|
|
1045
|
+
"min-inline-size": [{ "min-inline": ["auto", ...scaleSizingInline()] }],
|
|
1046
|
+
"max-inline-size": [{ "max-inline": ["none", ...scaleSizingInline()] }],
|
|
1047
|
+
"block-size": [{ block: ["auto", ...scaleSizingBlock()] }],
|
|
1048
|
+
"min-block-size": [{ "min-block": ["auto", ...scaleSizingBlock()] }],
|
|
1049
|
+
"max-block-size": [{ "max-block": ["none", ...scaleSizingBlock()] }],
|
|
760
1050
|
w: [{ w: [
|
|
761
|
-
|
|
1051
|
+
themeContainer,
|
|
762
1052
|
"screen",
|
|
763
|
-
...
|
|
1053
|
+
...scaleSizing()
|
|
764
1054
|
] }],
|
|
765
1055
|
"min-w": [{ "min-w": [
|
|
766
|
-
|
|
1056
|
+
themeContainer,
|
|
767
1057
|
"screen",
|
|
768
1058
|
"none",
|
|
769
|
-
...
|
|
1059
|
+
...scaleSizing()
|
|
770
1060
|
] }],
|
|
771
1061
|
"max-w": [{ "max-w": [
|
|
772
|
-
|
|
1062
|
+
themeContainer,
|
|
773
1063
|
"screen",
|
|
774
1064
|
"none",
|
|
775
1065
|
"prose",
|
|
776
|
-
{ screen: [
|
|
777
|
-
...
|
|
1066
|
+
{ screen: [themeBreakpoint] },
|
|
1067
|
+
...scaleSizing()
|
|
778
1068
|
] }],
|
|
779
1069
|
h: [{ h: [
|
|
780
1070
|
"screen",
|
|
781
1071
|
"lh",
|
|
782
|
-
...
|
|
1072
|
+
...scaleSizing()
|
|
783
1073
|
] }],
|
|
784
1074
|
"min-h": [{ "min-h": [
|
|
785
1075
|
"screen",
|
|
786
1076
|
"lh",
|
|
787
1077
|
"none",
|
|
788
|
-
...
|
|
1078
|
+
...scaleSizing()
|
|
789
1079
|
] }],
|
|
790
1080
|
"max-h": [{ "max-h": [
|
|
791
1081
|
"screen",
|
|
792
1082
|
"lh",
|
|
793
|
-
...
|
|
1083
|
+
...scaleSizing()
|
|
794
1084
|
] }],
|
|
795
1085
|
"font-size": [{ text: [
|
|
796
1086
|
"base",
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
1087
|
+
themeText,
|
|
1088
|
+
isArbitraryVariableLength,
|
|
1089
|
+
isArbitraryLength
|
|
800
1090
|
] }],
|
|
801
1091
|
"font-smoothing": ["antialiased", "subpixel-antialiased"],
|
|
802
1092
|
"font-style": ["italic", "not-italic"],
|
|
803
1093
|
"font-weight": [{ font: [
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
1094
|
+
themeFontWeight,
|
|
1095
|
+
isArbitraryVariableWeight,
|
|
1096
|
+
isArbitraryWeight
|
|
807
1097
|
] }],
|
|
808
1098
|
"font-stretch": [{ "font-stretch": [
|
|
809
1099
|
"ultra-condensed",
|
|
@@ -815,15 +1105,15 @@ var a = (e, t) => {
|
|
|
815
1105
|
"expanded",
|
|
816
1106
|
"extra-expanded",
|
|
817
1107
|
"ultra-expanded",
|
|
818
|
-
|
|
819
|
-
|
|
1108
|
+
isPercent,
|
|
1109
|
+
isArbitraryValue
|
|
820
1110
|
] }],
|
|
821
1111
|
"font-family": [{ font: [
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
1112
|
+
isArbitraryVariableFamilyName,
|
|
1113
|
+
isArbitraryFamilyName,
|
|
1114
|
+
themeFont
|
|
825
1115
|
] }],
|
|
826
|
-
"font-features": [{ "font-features": [
|
|
1116
|
+
"font-features": [{ "font-features": [isArbitraryValue] }],
|
|
827
1117
|
"fvn-normal": ["normal-nums"],
|
|
828
1118
|
"fvn-ordinal": ["ordinal"],
|
|
829
1119
|
"fvn-slashed-zero": ["slashed-zero"],
|
|
@@ -831,29 +1121,29 @@ var a = (e, t) => {
|
|
|
831
1121
|
"fvn-spacing": ["proportional-nums", "tabular-nums"],
|
|
832
1122
|
"fvn-fraction": ["diagonal-fractions", "stacked-fractions"],
|
|
833
1123
|
tracking: [{ tracking: [
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
1124
|
+
themeTracking,
|
|
1125
|
+
isArbitraryVariable,
|
|
1126
|
+
isArbitraryValue
|
|
837
1127
|
] }],
|
|
838
1128
|
"line-clamp": [{ "line-clamp": [
|
|
839
|
-
|
|
1129
|
+
isNumber,
|
|
840
1130
|
"none",
|
|
841
|
-
|
|
842
|
-
|
|
1131
|
+
isArbitraryVariable,
|
|
1132
|
+
isArbitraryNumber
|
|
843
1133
|
] }],
|
|
844
|
-
leading: [{ leading: [
|
|
1134
|
+
leading: [{ leading: [themeLeading, ...scaleUnambiguousSpacing()] }],
|
|
845
1135
|
"list-image": [{ "list-image": [
|
|
846
1136
|
"none",
|
|
847
|
-
|
|
848
|
-
|
|
1137
|
+
isArbitraryVariable,
|
|
1138
|
+
isArbitraryValue
|
|
849
1139
|
] }],
|
|
850
1140
|
"list-style-position": [{ list: ["inside", "outside"] }],
|
|
851
1141
|
"list-style-type": [{ list: [
|
|
852
1142
|
"disc",
|
|
853
1143
|
"decimal",
|
|
854
1144
|
"none",
|
|
855
|
-
|
|
856
|
-
|
|
1145
|
+
isArbitraryVariable,
|
|
1146
|
+
isArbitraryValue
|
|
857
1147
|
] }],
|
|
858
1148
|
"text-alignment": [{ text: [
|
|
859
1149
|
"left",
|
|
@@ -863,28 +1153,28 @@ var a = (e, t) => {
|
|
|
863
1153
|
"start",
|
|
864
1154
|
"end"
|
|
865
1155
|
] }],
|
|
866
|
-
"placeholder-color": [{ placeholder:
|
|
867
|
-
"text-color": [{ text:
|
|
1156
|
+
"placeholder-color": [{ placeholder: scaleColor() }],
|
|
1157
|
+
"text-color": [{ text: scaleColor() }],
|
|
868
1158
|
"text-decoration": [
|
|
869
1159
|
"underline",
|
|
870
1160
|
"overline",
|
|
871
1161
|
"line-through",
|
|
872
1162
|
"no-underline"
|
|
873
1163
|
],
|
|
874
|
-
"text-decoration-style": [{ decoration: [...
|
|
1164
|
+
"text-decoration-style": [{ decoration: [...scaleLineStyle(), "wavy"] }],
|
|
875
1165
|
"text-decoration-thickness": [{ decoration: [
|
|
876
|
-
|
|
1166
|
+
isNumber,
|
|
877
1167
|
"from-font",
|
|
878
1168
|
"auto",
|
|
879
|
-
|
|
880
|
-
|
|
1169
|
+
isArbitraryVariable,
|
|
1170
|
+
isArbitraryLength
|
|
881
1171
|
] }],
|
|
882
|
-
"text-decoration-color": [{ decoration:
|
|
1172
|
+
"text-decoration-color": [{ decoration: scaleColor() }],
|
|
883
1173
|
"underline-offset": [{ "underline-offset": [
|
|
884
|
-
|
|
1174
|
+
isNumber,
|
|
885
1175
|
"auto",
|
|
886
|
-
|
|
887
|
-
|
|
1176
|
+
isArbitraryVariable,
|
|
1177
|
+
isArbitraryValue
|
|
888
1178
|
] }],
|
|
889
1179
|
"text-transform": [
|
|
890
1180
|
"uppercase",
|
|
@@ -903,7 +1193,7 @@ var a = (e, t) => {
|
|
|
903
1193
|
"balance",
|
|
904
1194
|
"pretty"
|
|
905
1195
|
] }],
|
|
906
|
-
indent: [{ indent:
|
|
1196
|
+
indent: [{ indent: scaleUnambiguousSpacing() }],
|
|
907
1197
|
"vertical-align": [{ align: [
|
|
908
1198
|
"baseline",
|
|
909
1199
|
"top",
|
|
@@ -913,8 +1203,8 @@ var a = (e, t) => {
|
|
|
913
1203
|
"text-bottom",
|
|
914
1204
|
"sub",
|
|
915
1205
|
"super",
|
|
916
|
-
|
|
917
|
-
|
|
1206
|
+
isArbitraryVariable,
|
|
1207
|
+
isArbitraryValue
|
|
918
1208
|
] }],
|
|
919
1209
|
whitespace: [{ whitespace: [
|
|
920
1210
|
"normal",
|
|
@@ -942,8 +1232,8 @@ var a = (e, t) => {
|
|
|
942
1232
|
] }],
|
|
943
1233
|
content: [{ content: [
|
|
944
1234
|
"none",
|
|
945
|
-
|
|
946
|
-
|
|
1235
|
+
isArbitraryVariable,
|
|
1236
|
+
isArbitraryValue
|
|
947
1237
|
] }],
|
|
948
1238
|
"bg-attachment": [{ bg: [
|
|
949
1239
|
"fixed",
|
|
@@ -961,9 +1251,9 @@ var a = (e, t) => {
|
|
|
961
1251
|
"padding",
|
|
962
1252
|
"content"
|
|
963
1253
|
] }],
|
|
964
|
-
"bg-position": [{ bg:
|
|
965
|
-
"bg-repeat": [{ bg:
|
|
966
|
-
"bg-size": [{ bg:
|
|
1254
|
+
"bg-position": [{ bg: scaleBgPosition() }],
|
|
1255
|
+
"bg-repeat": [{ bg: scaleBgRepeat() }],
|
|
1256
|
+
"bg-size": [{ bg: scaleBgSize() }],
|
|
967
1257
|
"bg-image": [{ bg: [
|
|
968
1258
|
"none",
|
|
969
1259
|
{
|
|
@@ -978,140 +1268,140 @@ var a = (e, t) => {
|
|
|
978
1268
|
"l",
|
|
979
1269
|
"tl"
|
|
980
1270
|
] },
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
1271
|
+
isInteger,
|
|
1272
|
+
isArbitraryVariable,
|
|
1273
|
+
isArbitraryValue
|
|
984
1274
|
],
|
|
985
1275
|
radial: [
|
|
986
1276
|
"",
|
|
987
|
-
|
|
988
|
-
|
|
1277
|
+
isArbitraryVariable,
|
|
1278
|
+
isArbitraryValue
|
|
989
1279
|
],
|
|
990
1280
|
conic: [
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
1281
|
+
isInteger,
|
|
1282
|
+
isArbitraryVariable,
|
|
1283
|
+
isArbitraryValue
|
|
994
1284
|
]
|
|
995
1285
|
},
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
] }],
|
|
999
|
-
"bg-color": [{ bg:
|
|
1000
|
-
"gradient-from-pos": [{ from:
|
|
1001
|
-
"gradient-via-pos": [{ via:
|
|
1002
|
-
"gradient-to-pos": [{ to:
|
|
1003
|
-
"gradient-from": [{ from:
|
|
1004
|
-
"gradient-via": [{ via:
|
|
1005
|
-
"gradient-to": [{ to:
|
|
1006
|
-
rounded: [{ rounded:
|
|
1007
|
-
"rounded-s": [{ "rounded-s":
|
|
1008
|
-
"rounded-e": [{ "rounded-e":
|
|
1009
|
-
"rounded-t": [{ "rounded-t":
|
|
1010
|
-
"rounded-r": [{ "rounded-r":
|
|
1011
|
-
"rounded-b": [{ "rounded-b":
|
|
1012
|
-
"rounded-l": [{ "rounded-l":
|
|
1013
|
-
"rounded-ss": [{ "rounded-ss":
|
|
1014
|
-
"rounded-se": [{ "rounded-se":
|
|
1015
|
-
"rounded-ee": [{ "rounded-ee":
|
|
1016
|
-
"rounded-es": [{ "rounded-es":
|
|
1017
|
-
"rounded-tl": [{ "rounded-tl":
|
|
1018
|
-
"rounded-tr": [{ "rounded-tr":
|
|
1019
|
-
"rounded-br": [{ "rounded-br":
|
|
1020
|
-
"rounded-bl": [{ "rounded-bl":
|
|
1021
|
-
"border-w": [{ border:
|
|
1022
|
-
"border-w-x": [{ "border-x":
|
|
1023
|
-
"border-w-y": [{ "border-y":
|
|
1024
|
-
"border-w-s": [{ "border-s":
|
|
1025
|
-
"border-w-e": [{ "border-e":
|
|
1026
|
-
"border-w-bs": [{ "border-bs":
|
|
1027
|
-
"border-w-be": [{ "border-be":
|
|
1028
|
-
"border-w-t": [{ "border-t":
|
|
1029
|
-
"border-w-r": [{ "border-r":
|
|
1030
|
-
"border-w-b": [{ "border-b":
|
|
1031
|
-
"border-w-l": [{ "border-l":
|
|
1032
|
-
"divide-x": [{ "divide-x":
|
|
1286
|
+
isArbitraryVariableImage,
|
|
1287
|
+
isArbitraryImage
|
|
1288
|
+
] }],
|
|
1289
|
+
"bg-color": [{ bg: scaleColor() }],
|
|
1290
|
+
"gradient-from-pos": [{ from: scaleGradientStopPosition() }],
|
|
1291
|
+
"gradient-via-pos": [{ via: scaleGradientStopPosition() }],
|
|
1292
|
+
"gradient-to-pos": [{ to: scaleGradientStopPosition() }],
|
|
1293
|
+
"gradient-from": [{ from: scaleColor() }],
|
|
1294
|
+
"gradient-via": [{ via: scaleColor() }],
|
|
1295
|
+
"gradient-to": [{ to: scaleColor() }],
|
|
1296
|
+
rounded: [{ rounded: scaleRadius() }],
|
|
1297
|
+
"rounded-s": [{ "rounded-s": scaleRadius() }],
|
|
1298
|
+
"rounded-e": [{ "rounded-e": scaleRadius() }],
|
|
1299
|
+
"rounded-t": [{ "rounded-t": scaleRadius() }],
|
|
1300
|
+
"rounded-r": [{ "rounded-r": scaleRadius() }],
|
|
1301
|
+
"rounded-b": [{ "rounded-b": scaleRadius() }],
|
|
1302
|
+
"rounded-l": [{ "rounded-l": scaleRadius() }],
|
|
1303
|
+
"rounded-ss": [{ "rounded-ss": scaleRadius() }],
|
|
1304
|
+
"rounded-se": [{ "rounded-se": scaleRadius() }],
|
|
1305
|
+
"rounded-ee": [{ "rounded-ee": scaleRadius() }],
|
|
1306
|
+
"rounded-es": [{ "rounded-es": scaleRadius() }],
|
|
1307
|
+
"rounded-tl": [{ "rounded-tl": scaleRadius() }],
|
|
1308
|
+
"rounded-tr": [{ "rounded-tr": scaleRadius() }],
|
|
1309
|
+
"rounded-br": [{ "rounded-br": scaleRadius() }],
|
|
1310
|
+
"rounded-bl": [{ "rounded-bl": scaleRadius() }],
|
|
1311
|
+
"border-w": [{ border: scaleBorderWidth() }],
|
|
1312
|
+
"border-w-x": [{ "border-x": scaleBorderWidth() }],
|
|
1313
|
+
"border-w-y": [{ "border-y": scaleBorderWidth() }],
|
|
1314
|
+
"border-w-s": [{ "border-s": scaleBorderWidth() }],
|
|
1315
|
+
"border-w-e": [{ "border-e": scaleBorderWidth() }],
|
|
1316
|
+
"border-w-bs": [{ "border-bs": scaleBorderWidth() }],
|
|
1317
|
+
"border-w-be": [{ "border-be": scaleBorderWidth() }],
|
|
1318
|
+
"border-w-t": [{ "border-t": scaleBorderWidth() }],
|
|
1319
|
+
"border-w-r": [{ "border-r": scaleBorderWidth() }],
|
|
1320
|
+
"border-w-b": [{ "border-b": scaleBorderWidth() }],
|
|
1321
|
+
"border-w-l": [{ "border-l": scaleBorderWidth() }],
|
|
1322
|
+
"divide-x": [{ "divide-x": scaleBorderWidth() }],
|
|
1033
1323
|
"divide-x-reverse": ["divide-x-reverse"],
|
|
1034
|
-
"divide-y": [{ "divide-y":
|
|
1324
|
+
"divide-y": [{ "divide-y": scaleBorderWidth() }],
|
|
1035
1325
|
"divide-y-reverse": ["divide-y-reverse"],
|
|
1036
1326
|
"border-style": [{ border: [
|
|
1037
|
-
...
|
|
1327
|
+
...scaleLineStyle(),
|
|
1038
1328
|
"hidden",
|
|
1039
1329
|
"none"
|
|
1040
1330
|
] }],
|
|
1041
1331
|
"divide-style": [{ divide: [
|
|
1042
|
-
...
|
|
1332
|
+
...scaleLineStyle(),
|
|
1043
1333
|
"hidden",
|
|
1044
1334
|
"none"
|
|
1045
1335
|
] }],
|
|
1046
|
-
"border-color": [{ border:
|
|
1047
|
-
"border-color-x": [{ "border-x":
|
|
1048
|
-
"border-color-y": [{ "border-y":
|
|
1049
|
-
"border-color-s": [{ "border-s":
|
|
1050
|
-
"border-color-e": [{ "border-e":
|
|
1051
|
-
"border-color-bs": [{ "border-bs":
|
|
1052
|
-
"border-color-be": [{ "border-be":
|
|
1053
|
-
"border-color-t": [{ "border-t":
|
|
1054
|
-
"border-color-r": [{ "border-r":
|
|
1055
|
-
"border-color-b": [{ "border-b":
|
|
1056
|
-
"border-color-l": [{ "border-l":
|
|
1057
|
-
"divide-color": [{ divide:
|
|
1336
|
+
"border-color": [{ border: scaleColor() }],
|
|
1337
|
+
"border-color-x": [{ "border-x": scaleColor() }],
|
|
1338
|
+
"border-color-y": [{ "border-y": scaleColor() }],
|
|
1339
|
+
"border-color-s": [{ "border-s": scaleColor() }],
|
|
1340
|
+
"border-color-e": [{ "border-e": scaleColor() }],
|
|
1341
|
+
"border-color-bs": [{ "border-bs": scaleColor() }],
|
|
1342
|
+
"border-color-be": [{ "border-be": scaleColor() }],
|
|
1343
|
+
"border-color-t": [{ "border-t": scaleColor() }],
|
|
1344
|
+
"border-color-r": [{ "border-r": scaleColor() }],
|
|
1345
|
+
"border-color-b": [{ "border-b": scaleColor() }],
|
|
1346
|
+
"border-color-l": [{ "border-l": scaleColor() }],
|
|
1347
|
+
"divide-color": [{ divide: scaleColor() }],
|
|
1058
1348
|
"outline-style": [{ outline: [
|
|
1059
|
-
...
|
|
1349
|
+
...scaleLineStyle(),
|
|
1060
1350
|
"none",
|
|
1061
1351
|
"hidden"
|
|
1062
1352
|
] }],
|
|
1063
1353
|
"outline-offset": [{ "outline-offset": [
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1354
|
+
isNumber,
|
|
1355
|
+
isArbitraryVariable,
|
|
1356
|
+
isArbitraryValue
|
|
1067
1357
|
] }],
|
|
1068
1358
|
"outline-w": [{ outline: [
|
|
1069
1359
|
"",
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1360
|
+
isNumber,
|
|
1361
|
+
isArbitraryVariableLength,
|
|
1362
|
+
isArbitraryLength
|
|
1073
1363
|
] }],
|
|
1074
|
-
"outline-color": [{ outline:
|
|
1364
|
+
"outline-color": [{ outline: scaleColor() }],
|
|
1075
1365
|
shadow: [{ shadow: [
|
|
1076
1366
|
"",
|
|
1077
1367
|
"none",
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1368
|
+
themeShadow,
|
|
1369
|
+
isArbitraryVariableShadow,
|
|
1370
|
+
isArbitraryShadow
|
|
1081
1371
|
] }],
|
|
1082
|
-
"shadow-color": [{ shadow:
|
|
1372
|
+
"shadow-color": [{ shadow: scaleColor() }],
|
|
1083
1373
|
"inset-shadow": [{ "inset-shadow": [
|
|
1084
1374
|
"none",
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1375
|
+
themeInsetShadow,
|
|
1376
|
+
isArbitraryVariableShadow,
|
|
1377
|
+
isArbitraryShadow
|
|
1088
1378
|
] }],
|
|
1089
|
-
"inset-shadow-color": [{ "inset-shadow":
|
|
1090
|
-
"ring-w": [{ ring:
|
|
1379
|
+
"inset-shadow-color": [{ "inset-shadow": scaleColor() }],
|
|
1380
|
+
"ring-w": [{ ring: scaleBorderWidth() }],
|
|
1091
1381
|
"ring-w-inset": ["ring-inset"],
|
|
1092
|
-
"ring-color": [{ ring:
|
|
1093
|
-
"ring-offset-w": [{ "ring-offset": [
|
|
1094
|
-
"ring-offset-color": [{ "ring-offset":
|
|
1095
|
-
"inset-ring-w": [{ "inset-ring":
|
|
1096
|
-
"inset-ring-color": [{ "inset-ring":
|
|
1382
|
+
"ring-color": [{ ring: scaleColor() }],
|
|
1383
|
+
"ring-offset-w": [{ "ring-offset": [isNumber, isArbitraryLength] }],
|
|
1384
|
+
"ring-offset-color": [{ "ring-offset": scaleColor() }],
|
|
1385
|
+
"inset-ring-w": [{ "inset-ring": scaleBorderWidth() }],
|
|
1386
|
+
"inset-ring-color": [{ "inset-ring": scaleColor() }],
|
|
1097
1387
|
"text-shadow": [{ "text-shadow": [
|
|
1098
1388
|
"none",
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1389
|
+
themeTextShadow,
|
|
1390
|
+
isArbitraryVariableShadow,
|
|
1391
|
+
isArbitraryShadow
|
|
1102
1392
|
] }],
|
|
1103
|
-
"text-shadow-color": [{ "text-shadow":
|
|
1393
|
+
"text-shadow-color": [{ "text-shadow": scaleColor() }],
|
|
1104
1394
|
opacity: [{ opacity: [
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1395
|
+
isNumber,
|
|
1396
|
+
isArbitraryVariable,
|
|
1397
|
+
isArbitraryValue
|
|
1108
1398
|
] }],
|
|
1109
1399
|
"mix-blend": [{ "mix-blend": [
|
|
1110
|
-
...
|
|
1400
|
+
...scaleBlendMode(),
|
|
1111
1401
|
"plus-darker",
|
|
1112
1402
|
"plus-lighter"
|
|
1113
1403
|
] }],
|
|
1114
|
-
"bg-blend": [{ "bg-blend":
|
|
1404
|
+
"bg-blend": [{ "bg-blend": scaleBlendMode() }],
|
|
1115
1405
|
"mask-clip": [{ "mask-clip": [
|
|
1116
1406
|
"border",
|
|
1117
1407
|
"padding",
|
|
@@ -1126,51 +1416,51 @@ var a = (e, t) => {
|
|
|
1126
1416
|
"intersect",
|
|
1127
1417
|
"exclude"
|
|
1128
1418
|
] }],
|
|
1129
|
-
"mask-image-linear-pos": [{ "mask-linear": [
|
|
1130
|
-
"mask-image-linear-from-pos": [{ "mask-linear-from":
|
|
1131
|
-
"mask-image-linear-to-pos": [{ "mask-linear-to":
|
|
1132
|
-
"mask-image-linear-from-color": [{ "mask-linear-from":
|
|
1133
|
-
"mask-image-linear-to-color": [{ "mask-linear-to":
|
|
1134
|
-
"mask-image-t-from-pos": [{ "mask-t-from":
|
|
1135
|
-
"mask-image-t-to-pos": [{ "mask-t-to":
|
|
1136
|
-
"mask-image-t-from-color": [{ "mask-t-from":
|
|
1137
|
-
"mask-image-t-to-color": [{ "mask-t-to":
|
|
1138
|
-
"mask-image-r-from-pos": [{ "mask-r-from":
|
|
1139
|
-
"mask-image-r-to-pos": [{ "mask-r-to":
|
|
1140
|
-
"mask-image-r-from-color": [{ "mask-r-from":
|
|
1141
|
-
"mask-image-r-to-color": [{ "mask-r-to":
|
|
1142
|
-
"mask-image-b-from-pos": [{ "mask-b-from":
|
|
1143
|
-
"mask-image-b-to-pos": [{ "mask-b-to":
|
|
1144
|
-
"mask-image-b-from-color": [{ "mask-b-from":
|
|
1145
|
-
"mask-image-b-to-color": [{ "mask-b-to":
|
|
1146
|
-
"mask-image-l-from-pos": [{ "mask-l-from":
|
|
1147
|
-
"mask-image-l-to-pos": [{ "mask-l-to":
|
|
1148
|
-
"mask-image-l-from-color": [{ "mask-l-from":
|
|
1149
|
-
"mask-image-l-to-color": [{ "mask-l-to":
|
|
1150
|
-
"mask-image-x-from-pos": [{ "mask-x-from":
|
|
1151
|
-
"mask-image-x-to-pos": [{ "mask-x-to":
|
|
1152
|
-
"mask-image-x-from-color": [{ "mask-x-from":
|
|
1153
|
-
"mask-image-x-to-color": [{ "mask-x-to":
|
|
1154
|
-
"mask-image-y-from-pos": [{ "mask-y-from":
|
|
1155
|
-
"mask-image-y-to-pos": [{ "mask-y-to":
|
|
1156
|
-
"mask-image-y-from-color": [{ "mask-y-from":
|
|
1157
|
-
"mask-image-y-to-color": [{ "mask-y-to":
|
|
1158
|
-
"mask-image-radial": [{ "mask-radial": [
|
|
1159
|
-
"mask-image-radial-from-pos": [{ "mask-radial-from":
|
|
1160
|
-
"mask-image-radial-to-pos": [{ "mask-radial-to":
|
|
1161
|
-
"mask-image-radial-from-color": [{ "mask-radial-from":
|
|
1162
|
-
"mask-image-radial-to-color": [{ "mask-radial-to":
|
|
1419
|
+
"mask-image-linear-pos": [{ "mask-linear": [isNumber] }],
|
|
1420
|
+
"mask-image-linear-from-pos": [{ "mask-linear-from": scaleMaskImagePosition() }],
|
|
1421
|
+
"mask-image-linear-to-pos": [{ "mask-linear-to": scaleMaskImagePosition() }],
|
|
1422
|
+
"mask-image-linear-from-color": [{ "mask-linear-from": scaleColor() }],
|
|
1423
|
+
"mask-image-linear-to-color": [{ "mask-linear-to": scaleColor() }],
|
|
1424
|
+
"mask-image-t-from-pos": [{ "mask-t-from": scaleMaskImagePosition() }],
|
|
1425
|
+
"mask-image-t-to-pos": [{ "mask-t-to": scaleMaskImagePosition() }],
|
|
1426
|
+
"mask-image-t-from-color": [{ "mask-t-from": scaleColor() }],
|
|
1427
|
+
"mask-image-t-to-color": [{ "mask-t-to": scaleColor() }],
|
|
1428
|
+
"mask-image-r-from-pos": [{ "mask-r-from": scaleMaskImagePosition() }],
|
|
1429
|
+
"mask-image-r-to-pos": [{ "mask-r-to": scaleMaskImagePosition() }],
|
|
1430
|
+
"mask-image-r-from-color": [{ "mask-r-from": scaleColor() }],
|
|
1431
|
+
"mask-image-r-to-color": [{ "mask-r-to": scaleColor() }],
|
|
1432
|
+
"mask-image-b-from-pos": [{ "mask-b-from": scaleMaskImagePosition() }],
|
|
1433
|
+
"mask-image-b-to-pos": [{ "mask-b-to": scaleMaskImagePosition() }],
|
|
1434
|
+
"mask-image-b-from-color": [{ "mask-b-from": scaleColor() }],
|
|
1435
|
+
"mask-image-b-to-color": [{ "mask-b-to": scaleColor() }],
|
|
1436
|
+
"mask-image-l-from-pos": [{ "mask-l-from": scaleMaskImagePosition() }],
|
|
1437
|
+
"mask-image-l-to-pos": [{ "mask-l-to": scaleMaskImagePosition() }],
|
|
1438
|
+
"mask-image-l-from-color": [{ "mask-l-from": scaleColor() }],
|
|
1439
|
+
"mask-image-l-to-color": [{ "mask-l-to": scaleColor() }],
|
|
1440
|
+
"mask-image-x-from-pos": [{ "mask-x-from": scaleMaskImagePosition() }],
|
|
1441
|
+
"mask-image-x-to-pos": [{ "mask-x-to": scaleMaskImagePosition() }],
|
|
1442
|
+
"mask-image-x-from-color": [{ "mask-x-from": scaleColor() }],
|
|
1443
|
+
"mask-image-x-to-color": [{ "mask-x-to": scaleColor() }],
|
|
1444
|
+
"mask-image-y-from-pos": [{ "mask-y-from": scaleMaskImagePosition() }],
|
|
1445
|
+
"mask-image-y-to-pos": [{ "mask-y-to": scaleMaskImagePosition() }],
|
|
1446
|
+
"mask-image-y-from-color": [{ "mask-y-from": scaleColor() }],
|
|
1447
|
+
"mask-image-y-to-color": [{ "mask-y-to": scaleColor() }],
|
|
1448
|
+
"mask-image-radial": [{ "mask-radial": [isArbitraryVariable, isArbitraryValue] }],
|
|
1449
|
+
"mask-image-radial-from-pos": [{ "mask-radial-from": scaleMaskImagePosition() }],
|
|
1450
|
+
"mask-image-radial-to-pos": [{ "mask-radial-to": scaleMaskImagePosition() }],
|
|
1451
|
+
"mask-image-radial-from-color": [{ "mask-radial-from": scaleColor() }],
|
|
1452
|
+
"mask-image-radial-to-color": [{ "mask-radial-to": scaleColor() }],
|
|
1163
1453
|
"mask-image-radial-shape": [{ "mask-radial": ["circle", "ellipse"] }],
|
|
1164
1454
|
"mask-image-radial-size": [{ "mask-radial": [{
|
|
1165
1455
|
closest: ["side", "corner"],
|
|
1166
1456
|
farthest: ["side", "corner"]
|
|
1167
1457
|
}] }],
|
|
1168
|
-
"mask-image-radial-pos": [{ "mask-radial-at":
|
|
1169
|
-
"mask-image-conic-pos": [{ "mask-conic": [
|
|
1170
|
-
"mask-image-conic-from-pos": [{ "mask-conic-from":
|
|
1171
|
-
"mask-image-conic-to-pos": [{ "mask-conic-to":
|
|
1172
|
-
"mask-image-conic-from-color": [{ "mask-conic-from":
|
|
1173
|
-
"mask-image-conic-to-color": [{ "mask-conic-to":
|
|
1458
|
+
"mask-image-radial-pos": [{ "mask-radial-at": scalePosition() }],
|
|
1459
|
+
"mask-image-conic-pos": [{ "mask-conic": [isNumber] }],
|
|
1460
|
+
"mask-image-conic-from-pos": [{ "mask-conic-from": scaleMaskImagePosition() }],
|
|
1461
|
+
"mask-image-conic-to-pos": [{ "mask-conic-to": scaleMaskImagePosition() }],
|
|
1462
|
+
"mask-image-conic-from-color": [{ "mask-conic-from": scaleColor() }],
|
|
1463
|
+
"mask-image-conic-to-color": [{ "mask-conic-to": scaleColor() }],
|
|
1174
1464
|
"mask-mode": [{ mask: [
|
|
1175
1465
|
"alpha",
|
|
1176
1466
|
"luminance",
|
|
@@ -1184,122 +1474,122 @@ var a = (e, t) => {
|
|
|
1184
1474
|
"stroke",
|
|
1185
1475
|
"view"
|
|
1186
1476
|
] }],
|
|
1187
|
-
"mask-position": [{ mask:
|
|
1188
|
-
"mask-repeat": [{ mask:
|
|
1189
|
-
"mask-size": [{ mask:
|
|
1477
|
+
"mask-position": [{ mask: scaleBgPosition() }],
|
|
1478
|
+
"mask-repeat": [{ mask: scaleBgRepeat() }],
|
|
1479
|
+
"mask-size": [{ mask: scaleBgSize() }],
|
|
1190
1480
|
"mask-type": [{ "mask-type": ["alpha", "luminance"] }],
|
|
1191
1481
|
"mask-image": [{ mask: [
|
|
1192
1482
|
"none",
|
|
1193
|
-
|
|
1194
|
-
|
|
1483
|
+
isArbitraryVariable,
|
|
1484
|
+
isArbitraryValue
|
|
1195
1485
|
] }],
|
|
1196
1486
|
filter: [{ filter: [
|
|
1197
1487
|
"",
|
|
1198
1488
|
"none",
|
|
1199
|
-
|
|
1200
|
-
|
|
1489
|
+
isArbitraryVariable,
|
|
1490
|
+
isArbitraryValue
|
|
1201
1491
|
] }],
|
|
1202
|
-
blur: [{ blur:
|
|
1492
|
+
blur: [{ blur: scaleBlur() }],
|
|
1203
1493
|
brightness: [{ brightness: [
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1494
|
+
isNumber,
|
|
1495
|
+
isArbitraryVariable,
|
|
1496
|
+
isArbitraryValue
|
|
1207
1497
|
] }],
|
|
1208
1498
|
contrast: [{ contrast: [
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1499
|
+
isNumber,
|
|
1500
|
+
isArbitraryVariable,
|
|
1501
|
+
isArbitraryValue
|
|
1212
1502
|
] }],
|
|
1213
1503
|
"drop-shadow": [{ "drop-shadow": [
|
|
1214
1504
|
"",
|
|
1215
1505
|
"none",
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1506
|
+
themeDropShadow,
|
|
1507
|
+
isArbitraryVariableShadow,
|
|
1508
|
+
isArbitraryShadow
|
|
1219
1509
|
] }],
|
|
1220
|
-
"drop-shadow-color": [{ "drop-shadow":
|
|
1510
|
+
"drop-shadow-color": [{ "drop-shadow": scaleColor() }],
|
|
1221
1511
|
grayscale: [{ grayscale: [
|
|
1222
1512
|
"",
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1513
|
+
isNumber,
|
|
1514
|
+
isArbitraryVariable,
|
|
1515
|
+
isArbitraryValue
|
|
1226
1516
|
] }],
|
|
1227
1517
|
"hue-rotate": [{ "hue-rotate": [
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1518
|
+
isNumber,
|
|
1519
|
+
isArbitraryVariable,
|
|
1520
|
+
isArbitraryValue
|
|
1231
1521
|
] }],
|
|
1232
1522
|
invert: [{ invert: [
|
|
1233
1523
|
"",
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1524
|
+
isNumber,
|
|
1525
|
+
isArbitraryVariable,
|
|
1526
|
+
isArbitraryValue
|
|
1237
1527
|
] }],
|
|
1238
1528
|
saturate: [{ saturate: [
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1529
|
+
isNumber,
|
|
1530
|
+
isArbitraryVariable,
|
|
1531
|
+
isArbitraryValue
|
|
1242
1532
|
] }],
|
|
1243
1533
|
sepia: [{ sepia: [
|
|
1244
1534
|
"",
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1535
|
+
isNumber,
|
|
1536
|
+
isArbitraryVariable,
|
|
1537
|
+
isArbitraryValue
|
|
1248
1538
|
] }],
|
|
1249
1539
|
"backdrop-filter": [{ "backdrop-filter": [
|
|
1250
1540
|
"",
|
|
1251
1541
|
"none",
|
|
1252
|
-
|
|
1253
|
-
|
|
1542
|
+
isArbitraryVariable,
|
|
1543
|
+
isArbitraryValue
|
|
1254
1544
|
] }],
|
|
1255
|
-
"backdrop-blur": [{ "backdrop-blur":
|
|
1545
|
+
"backdrop-blur": [{ "backdrop-blur": scaleBlur() }],
|
|
1256
1546
|
"backdrop-brightness": [{ "backdrop-brightness": [
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1547
|
+
isNumber,
|
|
1548
|
+
isArbitraryVariable,
|
|
1549
|
+
isArbitraryValue
|
|
1260
1550
|
] }],
|
|
1261
1551
|
"backdrop-contrast": [{ "backdrop-contrast": [
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1552
|
+
isNumber,
|
|
1553
|
+
isArbitraryVariable,
|
|
1554
|
+
isArbitraryValue
|
|
1265
1555
|
] }],
|
|
1266
1556
|
"backdrop-grayscale": [{ "backdrop-grayscale": [
|
|
1267
1557
|
"",
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1558
|
+
isNumber,
|
|
1559
|
+
isArbitraryVariable,
|
|
1560
|
+
isArbitraryValue
|
|
1271
1561
|
] }],
|
|
1272
1562
|
"backdrop-hue-rotate": [{ "backdrop-hue-rotate": [
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1563
|
+
isNumber,
|
|
1564
|
+
isArbitraryVariable,
|
|
1565
|
+
isArbitraryValue
|
|
1276
1566
|
] }],
|
|
1277
1567
|
"backdrop-invert": [{ "backdrop-invert": [
|
|
1278
1568
|
"",
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1569
|
+
isNumber,
|
|
1570
|
+
isArbitraryVariable,
|
|
1571
|
+
isArbitraryValue
|
|
1282
1572
|
] }],
|
|
1283
1573
|
"backdrop-opacity": [{ "backdrop-opacity": [
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1574
|
+
isNumber,
|
|
1575
|
+
isArbitraryVariable,
|
|
1576
|
+
isArbitraryValue
|
|
1287
1577
|
] }],
|
|
1288
1578
|
"backdrop-saturate": [{ "backdrop-saturate": [
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1579
|
+
isNumber,
|
|
1580
|
+
isArbitraryVariable,
|
|
1581
|
+
isArbitraryValue
|
|
1292
1582
|
] }],
|
|
1293
1583
|
"backdrop-sepia": [{ "backdrop-sepia": [
|
|
1294
1584
|
"",
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1585
|
+
isNumber,
|
|
1586
|
+
isArbitraryVariable,
|
|
1587
|
+
isArbitraryValue
|
|
1298
1588
|
] }],
|
|
1299
1589
|
"border-collapse": [{ border: ["collapse", "separate"] }],
|
|
1300
|
-
"border-spacing": [{ "border-spacing":
|
|
1301
|
-
"border-spacing-x": [{ "border-spacing-x":
|
|
1302
|
-
"border-spacing-y": [{ "border-spacing-y":
|
|
1590
|
+
"border-spacing": [{ "border-spacing": scaleUnambiguousSpacing() }],
|
|
1591
|
+
"border-spacing-x": [{ "border-spacing-x": scaleUnambiguousSpacing() }],
|
|
1592
|
+
"border-spacing-y": [{ "border-spacing-y": scaleUnambiguousSpacing() }],
|
|
1303
1593
|
"table-layout": [{ table: ["auto", "fixed"] }],
|
|
1304
1594
|
caption: [{ caption: ["top", "bottom"] }],
|
|
1305
1595
|
transition: [{ transition: [
|
|
@@ -1310,71 +1600,71 @@ var a = (e, t) => {
|
|
|
1310
1600
|
"shadow",
|
|
1311
1601
|
"transform",
|
|
1312
1602
|
"none",
|
|
1313
|
-
|
|
1314
|
-
|
|
1603
|
+
isArbitraryVariable,
|
|
1604
|
+
isArbitraryValue
|
|
1315
1605
|
] }],
|
|
1316
1606
|
"transition-behavior": [{ transition: ["normal", "discrete"] }],
|
|
1317
1607
|
duration: [{ duration: [
|
|
1318
|
-
|
|
1608
|
+
isNumber,
|
|
1319
1609
|
"initial",
|
|
1320
|
-
|
|
1321
|
-
|
|
1610
|
+
isArbitraryVariable,
|
|
1611
|
+
isArbitraryValue
|
|
1322
1612
|
] }],
|
|
1323
1613
|
ease: [{ ease: [
|
|
1324
1614
|
"linear",
|
|
1325
1615
|
"initial",
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1616
|
+
themeEase,
|
|
1617
|
+
isArbitraryVariable,
|
|
1618
|
+
isArbitraryValue
|
|
1329
1619
|
] }],
|
|
1330
1620
|
delay: [{ delay: [
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1621
|
+
isNumber,
|
|
1622
|
+
isArbitraryVariable,
|
|
1623
|
+
isArbitraryValue
|
|
1334
1624
|
] }],
|
|
1335
1625
|
animate: [{ animate: [
|
|
1336
1626
|
"none",
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1627
|
+
themeAnimate,
|
|
1628
|
+
isArbitraryVariable,
|
|
1629
|
+
isArbitraryValue
|
|
1340
1630
|
] }],
|
|
1341
1631
|
backface: [{ backface: ["hidden", "visible"] }],
|
|
1342
1632
|
perspective: [{ perspective: [
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
] }],
|
|
1347
|
-
"perspective-origin": [{ "perspective-origin":
|
|
1348
|
-
rotate: [{ rotate:
|
|
1349
|
-
"rotate-x": [{ "rotate-x":
|
|
1350
|
-
"rotate-y": [{ "rotate-y":
|
|
1351
|
-
"rotate-z": [{ "rotate-z":
|
|
1352
|
-
scale: [{ scale:
|
|
1353
|
-
"scale-x": [{ "scale-x":
|
|
1354
|
-
"scale-y": [{ "scale-y":
|
|
1355
|
-
"scale-z": [{ "scale-z":
|
|
1633
|
+
themePerspective,
|
|
1634
|
+
isArbitraryVariable,
|
|
1635
|
+
isArbitraryValue
|
|
1636
|
+
] }],
|
|
1637
|
+
"perspective-origin": [{ "perspective-origin": scalePositionWithArbitrary() }],
|
|
1638
|
+
rotate: [{ rotate: scaleRotate() }],
|
|
1639
|
+
"rotate-x": [{ "rotate-x": scaleRotate() }],
|
|
1640
|
+
"rotate-y": [{ "rotate-y": scaleRotate() }],
|
|
1641
|
+
"rotate-z": [{ "rotate-z": scaleRotate() }],
|
|
1642
|
+
scale: [{ scale: scaleScale() }],
|
|
1643
|
+
"scale-x": [{ "scale-x": scaleScale() }],
|
|
1644
|
+
"scale-y": [{ "scale-y": scaleScale() }],
|
|
1645
|
+
"scale-z": [{ "scale-z": scaleScale() }],
|
|
1356
1646
|
"scale-3d": ["scale-3d"],
|
|
1357
|
-
skew: [{ skew:
|
|
1358
|
-
"skew-x": [{ "skew-x":
|
|
1359
|
-
"skew-y": [{ "skew-y":
|
|
1647
|
+
skew: [{ skew: scaleSkew() }],
|
|
1648
|
+
"skew-x": [{ "skew-x": scaleSkew() }],
|
|
1649
|
+
"skew-y": [{ "skew-y": scaleSkew() }],
|
|
1360
1650
|
transform: [{ transform: [
|
|
1361
|
-
|
|
1362
|
-
|
|
1651
|
+
isArbitraryVariable,
|
|
1652
|
+
isArbitraryValue,
|
|
1363
1653
|
"",
|
|
1364
1654
|
"none",
|
|
1365
1655
|
"gpu",
|
|
1366
1656
|
"cpu"
|
|
1367
1657
|
] }],
|
|
1368
|
-
"transform-origin": [{ origin:
|
|
1658
|
+
"transform-origin": [{ origin: scalePositionWithArbitrary() }],
|
|
1369
1659
|
"transform-style": [{ transform: ["3d", "flat"] }],
|
|
1370
|
-
translate: [{ translate:
|
|
1371
|
-
"translate-x": [{ "translate-x":
|
|
1372
|
-
"translate-y": [{ "translate-y":
|
|
1373
|
-
"translate-z": [{ "translate-z":
|
|
1660
|
+
translate: [{ translate: scaleTranslate() }],
|
|
1661
|
+
"translate-x": [{ "translate-x": scaleTranslate() }],
|
|
1662
|
+
"translate-y": [{ "translate-y": scaleTranslate() }],
|
|
1663
|
+
"translate-z": [{ "translate-z": scaleTranslate() }],
|
|
1374
1664
|
"translate-none": ["translate-none"],
|
|
1375
|
-
accent: [{ accent:
|
|
1665
|
+
accent: [{ accent: scaleColor() }],
|
|
1376
1666
|
appearance: [{ appearance: ["none", "auto"] }],
|
|
1377
|
-
"caret-color": [{ caret:
|
|
1667
|
+
"caret-color": [{ caret: scaleColor() }],
|
|
1378
1668
|
"color-scheme": [{ scheme: [
|
|
1379
1669
|
"normal",
|
|
1380
1670
|
"dark",
|
|
@@ -1420,8 +1710,8 @@ var a = (e, t) => {
|
|
|
1420
1710
|
"nwse-resize",
|
|
1421
1711
|
"zoom-in",
|
|
1422
1712
|
"zoom-out",
|
|
1423
|
-
|
|
1424
|
-
|
|
1713
|
+
isArbitraryVariable,
|
|
1714
|
+
isArbitraryValue
|
|
1425
1715
|
] }],
|
|
1426
1716
|
"field-sizing": [{ "field-sizing": ["fixed", "content"] }],
|
|
1427
1717
|
"pointer-events": [{ "pointer-events": ["auto", "none"] }],
|
|
@@ -1432,28 +1722,28 @@ var a = (e, t) => {
|
|
|
1432
1722
|
"x"
|
|
1433
1723
|
] }],
|
|
1434
1724
|
"scroll-behavior": [{ scroll: ["auto", "smooth"] }],
|
|
1435
|
-
"scroll-m": [{ "scroll-m":
|
|
1436
|
-
"scroll-mx": [{ "scroll-mx":
|
|
1437
|
-
"scroll-my": [{ "scroll-my":
|
|
1438
|
-
"scroll-ms": [{ "scroll-ms":
|
|
1439
|
-
"scroll-me": [{ "scroll-me":
|
|
1440
|
-
"scroll-mbs": [{ "scroll-mbs":
|
|
1441
|
-
"scroll-mbe": [{ "scroll-mbe":
|
|
1442
|
-
"scroll-mt": [{ "scroll-mt":
|
|
1443
|
-
"scroll-mr": [{ "scroll-mr":
|
|
1444
|
-
"scroll-mb": [{ "scroll-mb":
|
|
1445
|
-
"scroll-ml": [{ "scroll-ml":
|
|
1446
|
-
"scroll-p": [{ "scroll-p":
|
|
1447
|
-
"scroll-px": [{ "scroll-px":
|
|
1448
|
-
"scroll-py": [{ "scroll-py":
|
|
1449
|
-
"scroll-ps": [{ "scroll-ps":
|
|
1450
|
-
"scroll-pe": [{ "scroll-pe":
|
|
1451
|
-
"scroll-pbs": [{ "scroll-pbs":
|
|
1452
|
-
"scroll-pbe": [{ "scroll-pbe":
|
|
1453
|
-
"scroll-pt": [{ "scroll-pt":
|
|
1454
|
-
"scroll-pr": [{ "scroll-pr":
|
|
1455
|
-
"scroll-pb": [{ "scroll-pb":
|
|
1456
|
-
"scroll-pl": [{ "scroll-pl":
|
|
1725
|
+
"scroll-m": [{ "scroll-m": scaleUnambiguousSpacing() }],
|
|
1726
|
+
"scroll-mx": [{ "scroll-mx": scaleUnambiguousSpacing() }],
|
|
1727
|
+
"scroll-my": [{ "scroll-my": scaleUnambiguousSpacing() }],
|
|
1728
|
+
"scroll-ms": [{ "scroll-ms": scaleUnambiguousSpacing() }],
|
|
1729
|
+
"scroll-me": [{ "scroll-me": scaleUnambiguousSpacing() }],
|
|
1730
|
+
"scroll-mbs": [{ "scroll-mbs": scaleUnambiguousSpacing() }],
|
|
1731
|
+
"scroll-mbe": [{ "scroll-mbe": scaleUnambiguousSpacing() }],
|
|
1732
|
+
"scroll-mt": [{ "scroll-mt": scaleUnambiguousSpacing() }],
|
|
1733
|
+
"scroll-mr": [{ "scroll-mr": scaleUnambiguousSpacing() }],
|
|
1734
|
+
"scroll-mb": [{ "scroll-mb": scaleUnambiguousSpacing() }],
|
|
1735
|
+
"scroll-ml": [{ "scroll-ml": scaleUnambiguousSpacing() }],
|
|
1736
|
+
"scroll-p": [{ "scroll-p": scaleUnambiguousSpacing() }],
|
|
1737
|
+
"scroll-px": [{ "scroll-px": scaleUnambiguousSpacing() }],
|
|
1738
|
+
"scroll-py": [{ "scroll-py": scaleUnambiguousSpacing() }],
|
|
1739
|
+
"scroll-ps": [{ "scroll-ps": scaleUnambiguousSpacing() }],
|
|
1740
|
+
"scroll-pe": [{ "scroll-pe": scaleUnambiguousSpacing() }],
|
|
1741
|
+
"scroll-pbs": [{ "scroll-pbs": scaleUnambiguousSpacing() }],
|
|
1742
|
+
"scroll-pbe": [{ "scroll-pbe": scaleUnambiguousSpacing() }],
|
|
1743
|
+
"scroll-pt": [{ "scroll-pt": scaleUnambiguousSpacing() }],
|
|
1744
|
+
"scroll-pr": [{ "scroll-pr": scaleUnambiguousSpacing() }],
|
|
1745
|
+
"scroll-pb": [{ "scroll-pb": scaleUnambiguousSpacing() }],
|
|
1746
|
+
"scroll-pl": [{ "scroll-pl": scaleUnambiguousSpacing() }],
|
|
1457
1747
|
"snap-align": [{ snap: [
|
|
1458
1748
|
"start",
|
|
1459
1749
|
"end",
|
|
@@ -1495,17 +1785,17 @@ var a = (e, t) => {
|
|
|
1495
1785
|
"scroll",
|
|
1496
1786
|
"contents",
|
|
1497
1787
|
"transform",
|
|
1498
|
-
|
|
1499
|
-
|
|
1788
|
+
isArbitraryVariable,
|
|
1789
|
+
isArbitraryValue
|
|
1500
1790
|
] }],
|
|
1501
|
-
fill: [{ fill: ["none", ...
|
|
1791
|
+
fill: [{ fill: ["none", ...scaleColor()] }],
|
|
1502
1792
|
"stroke-w": [{ stroke: [
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1793
|
+
isNumber,
|
|
1794
|
+
isArbitraryVariableLength,
|
|
1795
|
+
isArbitraryLength,
|
|
1796
|
+
isArbitraryNumber
|
|
1507
1797
|
] }],
|
|
1508
|
-
stroke: [{ stroke: ["none", ...
|
|
1798
|
+
stroke: [{ stroke: ["none", ...scaleColor()] }],
|
|
1509
1799
|
"forced-color-adjust": [{ "forced-color-adjust": ["auto", "none"] }]
|
|
1510
1800
|
},
|
|
1511
1801
|
conflictingClassGroups: {
|
|
@@ -1689,377 +1979,597 @@ var a = (e, t) => {
|
|
|
1689
1979
|
"selection"
|
|
1690
1980
|
]
|
|
1691
1981
|
};
|
|
1692
|
-
}
|
|
1982
|
+
};
|
|
1983
|
+
var twMerge = /* @__PURE__ */ createTailwindMerge(getDefaultConfig);
|
|
1693
1984
|
//#endregion
|
|
1694
1985
|
//#region src/lib/utils.ts
|
|
1695
|
-
function
|
|
1696
|
-
return
|
|
1986
|
+
function cn(...inputs) {
|
|
1987
|
+
return twMerge(clsx(inputs));
|
|
1697
1988
|
}
|
|
1698
1989
|
//#endregion
|
|
1699
1990
|
//#region node_modules/react/cjs/react-jsx-runtime.production.js
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1991
|
+
/**
|
|
1992
|
+
* @license React
|
|
1993
|
+
* react-jsx-runtime.production.js
|
|
1994
|
+
*
|
|
1995
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
1996
|
+
*
|
|
1997
|
+
* This source code is licensed under the MIT license found in the
|
|
1998
|
+
* LICENSE file in the root directory of this source tree.
|
|
1999
|
+
*/
|
|
2000
|
+
var require_react_jsx_runtime_production = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
2001
|
+
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
2002
|
+
function jsxProd(type, config, maybeKey) {
|
|
2003
|
+
var key = null;
|
|
2004
|
+
void 0 !== maybeKey && (key = "" + maybeKey);
|
|
2005
|
+
void 0 !== config.key && (key = "" + config.key);
|
|
2006
|
+
if ("key" in config) {
|
|
2007
|
+
maybeKey = {};
|
|
2008
|
+
for (var propName in config) "key" !== propName && (maybeKey[propName] = config[propName]);
|
|
2009
|
+
} else maybeKey = config;
|
|
2010
|
+
config = maybeKey.ref;
|
|
2011
|
+
return {
|
|
2012
|
+
$$typeof: REACT_ELEMENT_TYPE,
|
|
2013
|
+
type,
|
|
2014
|
+
key,
|
|
2015
|
+
ref: void 0 !== config ? config : null,
|
|
2016
|
+
props: maybeKey
|
|
1712
2017
|
};
|
|
1713
2018
|
}
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
2019
|
+
exports.Fragment = REACT_FRAGMENT_TYPE;
|
|
2020
|
+
exports.jsx = jsxProd;
|
|
2021
|
+
exports.jsxs = jsxProd;
|
|
2022
|
+
}));
|
|
2023
|
+
//#endregion
|
|
2024
|
+
//#region node_modules/react/cjs/react-jsx-runtime.development.js
|
|
2025
|
+
/**
|
|
2026
|
+
* @license React
|
|
2027
|
+
* react-jsx-runtime.development.js
|
|
2028
|
+
*
|
|
2029
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2030
|
+
*
|
|
2031
|
+
* This source code is licensed under the MIT license found in the
|
|
2032
|
+
* LICENSE file in the root directory of this source tree.
|
|
2033
|
+
*/
|
|
2034
|
+
var require_react_jsx_runtime_development = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
2035
|
+
"production" !== process.env.NODE_ENV && (function() {
|
|
2036
|
+
function getComponentNameFromType(type) {
|
|
2037
|
+
if (null == type) return null;
|
|
2038
|
+
if ("function" === typeof type) return type.$$typeof === REACT_CLIENT_REFERENCE ? null : type.displayName || type.name || null;
|
|
2039
|
+
if ("string" === typeof type) return type;
|
|
2040
|
+
switch (type) {
|
|
2041
|
+
case REACT_FRAGMENT_TYPE: return "Fragment";
|
|
2042
|
+
case REACT_PROFILER_TYPE: return "Profiler";
|
|
2043
|
+
case REACT_STRICT_MODE_TYPE: return "StrictMode";
|
|
2044
|
+
case REACT_SUSPENSE_TYPE: return "Suspense";
|
|
2045
|
+
case REACT_SUSPENSE_LIST_TYPE: return "SuspenseList";
|
|
2046
|
+
case REACT_ACTIVITY_TYPE: return "Activity";
|
|
1728
2047
|
}
|
|
1729
|
-
if (typeof
|
|
1730
|
-
case
|
|
1731
|
-
case
|
|
1732
|
-
case
|
|
1733
|
-
case
|
|
1734
|
-
var
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
2048
|
+
if ("object" === typeof type) switch ("number" === typeof type.tag && console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), type.$$typeof) {
|
|
2049
|
+
case REACT_PORTAL_TYPE: return "Portal";
|
|
2050
|
+
case REACT_CONTEXT_TYPE: return type.displayName || "Context";
|
|
2051
|
+
case REACT_CONSUMER_TYPE: return (type._context.displayName || "Context") + ".Consumer";
|
|
2052
|
+
case REACT_FORWARD_REF_TYPE:
|
|
2053
|
+
var innerType = type.render;
|
|
2054
|
+
type = type.displayName;
|
|
2055
|
+
type || (type = innerType.displayName || innerType.name || "", type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef");
|
|
2056
|
+
return type;
|
|
2057
|
+
case REACT_MEMO_TYPE: return innerType = type.displayName || null, null !== innerType ? innerType : getComponentNameFromType(type.type) || "Memo";
|
|
2058
|
+
case REACT_LAZY_TYPE:
|
|
2059
|
+
innerType = type._payload;
|
|
2060
|
+
type = type._init;
|
|
1739
2061
|
try {
|
|
1740
|
-
return
|
|
1741
|
-
} catch {}
|
|
2062
|
+
return getComponentNameFromType(type(innerType));
|
|
2063
|
+
} catch (x) {}
|
|
1742
2064
|
}
|
|
1743
2065
|
return null;
|
|
1744
2066
|
}
|
|
1745
|
-
function
|
|
1746
|
-
return "" +
|
|
2067
|
+
function testStringCoercion(value) {
|
|
2068
|
+
return "" + value;
|
|
1747
2069
|
}
|
|
1748
|
-
function
|
|
2070
|
+
function checkKeyStringCoercion(value) {
|
|
1749
2071
|
try {
|
|
1750
|
-
|
|
1751
|
-
var
|
|
1752
|
-
} catch {
|
|
1753
|
-
|
|
2072
|
+
testStringCoercion(value);
|
|
2073
|
+
var JSCompiler_inline_result = !1;
|
|
2074
|
+
} catch (e) {
|
|
2075
|
+
JSCompiler_inline_result = !0;
|
|
1754
2076
|
}
|
|
1755
|
-
if (
|
|
1756
|
-
|
|
1757
|
-
var
|
|
1758
|
-
|
|
2077
|
+
if (JSCompiler_inline_result) {
|
|
2078
|
+
JSCompiler_inline_result = console;
|
|
2079
|
+
var JSCompiler_temp_const = JSCompiler_inline_result.error;
|
|
2080
|
+
var JSCompiler_inline_result$jscomp$0 = "function" === typeof Symbol && Symbol.toStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
|
|
2081
|
+
JSCompiler_temp_const.call(JSCompiler_inline_result, "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", JSCompiler_inline_result$jscomp$0);
|
|
2082
|
+
return testStringCoercion(value);
|
|
1759
2083
|
}
|
|
1760
2084
|
}
|
|
1761
|
-
function
|
|
1762
|
-
if (
|
|
1763
|
-
if (
|
|
2085
|
+
function getTaskName(type) {
|
|
2086
|
+
if (type === REACT_FRAGMENT_TYPE) return "<>";
|
|
2087
|
+
if ("object" === typeof type && null !== type && type.$$typeof === REACT_LAZY_TYPE) return "<...>";
|
|
1764
2088
|
try {
|
|
1765
|
-
var
|
|
1766
|
-
return
|
|
1767
|
-
} catch {
|
|
2089
|
+
var name = getComponentNameFromType(type);
|
|
2090
|
+
return name ? "<" + name + ">" : "<...>";
|
|
2091
|
+
} catch (x) {
|
|
1768
2092
|
return "<...>";
|
|
1769
2093
|
}
|
|
1770
2094
|
}
|
|
1771
|
-
function
|
|
1772
|
-
var
|
|
1773
|
-
return
|
|
2095
|
+
function getOwner() {
|
|
2096
|
+
var dispatcher = ReactSharedInternals.A;
|
|
2097
|
+
return null === dispatcher ? null : dispatcher.getOwner();
|
|
1774
2098
|
}
|
|
1775
|
-
function
|
|
2099
|
+
function UnknownOwner() {
|
|
1776
2100
|
return Error("react-stack-top-frame");
|
|
1777
2101
|
}
|
|
1778
|
-
function
|
|
1779
|
-
if (
|
|
1780
|
-
var
|
|
1781
|
-
if (
|
|
2102
|
+
function hasValidKey(config) {
|
|
2103
|
+
if (hasOwnProperty.call(config, "key")) {
|
|
2104
|
+
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
|
2105
|
+
if (getter && getter.isReactWarning) return !1;
|
|
1782
2106
|
}
|
|
1783
|
-
return
|
|
2107
|
+
return void 0 !== config.key;
|
|
1784
2108
|
}
|
|
1785
|
-
function
|
|
1786
|
-
function
|
|
1787
|
-
|
|
2109
|
+
function defineKeyPropWarningGetter(props, displayName) {
|
|
2110
|
+
function warnAboutAccessingKey() {
|
|
2111
|
+
specialPropKeyWarningShown || (specialPropKeyWarningShown = !0, console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)", displayName));
|
|
1788
2112
|
}
|
|
1789
|
-
|
|
1790
|
-
|
|
2113
|
+
warnAboutAccessingKey.isReactWarning = !0;
|
|
2114
|
+
Object.defineProperty(props, "key", {
|
|
2115
|
+
get: warnAboutAccessingKey,
|
|
1791
2116
|
configurable: !0
|
|
1792
2117
|
});
|
|
1793
2118
|
}
|
|
1794
|
-
function
|
|
1795
|
-
var
|
|
1796
|
-
|
|
2119
|
+
function elementRefGetterWithDeprecationWarning() {
|
|
2120
|
+
var componentName = getComponentNameFromType(this.type);
|
|
2121
|
+
didWarnAboutElementRef[componentName] || (didWarnAboutElementRef[componentName] = !0, console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."));
|
|
2122
|
+
componentName = this.props.ref;
|
|
2123
|
+
return void 0 !== componentName ? componentName : null;
|
|
1797
2124
|
}
|
|
1798
|
-
function
|
|
1799
|
-
var
|
|
1800
|
-
|
|
1801
|
-
$$typeof:
|
|
1802
|
-
type
|
|
1803
|
-
key
|
|
1804
|
-
props
|
|
1805
|
-
_owner:
|
|
1806
|
-
}
|
|
2125
|
+
function ReactElement(type, key, props, owner, debugStack, debugTask) {
|
|
2126
|
+
var refProp = props.ref;
|
|
2127
|
+
type = {
|
|
2128
|
+
$$typeof: REACT_ELEMENT_TYPE,
|
|
2129
|
+
type,
|
|
2130
|
+
key,
|
|
2131
|
+
props,
|
|
2132
|
+
_owner: owner
|
|
2133
|
+
};
|
|
2134
|
+
null !== (void 0 !== refProp ? refProp : null) ? Object.defineProperty(type, "ref", {
|
|
1807
2135
|
enumerable: !1,
|
|
1808
|
-
|
|
1809
|
-
}) : Object.defineProperty(
|
|
2136
|
+
get: elementRefGetterWithDeprecationWarning
|
|
2137
|
+
}) : Object.defineProperty(type, "ref", {
|
|
1810
2138
|
enumerable: !1,
|
|
1811
|
-
|
|
1812
|
-
})
|
|
2139
|
+
value: null
|
|
2140
|
+
});
|
|
2141
|
+
type._store = {};
|
|
2142
|
+
Object.defineProperty(type._store, "validated", {
|
|
1813
2143
|
configurable: !1,
|
|
1814
2144
|
enumerable: !1,
|
|
1815
2145
|
writable: !0,
|
|
1816
2146
|
value: 0
|
|
1817
|
-
})
|
|
2147
|
+
});
|
|
2148
|
+
Object.defineProperty(type, "_debugInfo", {
|
|
1818
2149
|
configurable: !1,
|
|
1819
2150
|
enumerable: !1,
|
|
1820
2151
|
writable: !0,
|
|
1821
2152
|
value: null
|
|
1822
|
-
})
|
|
2153
|
+
});
|
|
2154
|
+
Object.defineProperty(type, "_debugStack", {
|
|
1823
2155
|
configurable: !1,
|
|
1824
2156
|
enumerable: !1,
|
|
1825
2157
|
writable: !0,
|
|
1826
|
-
value:
|
|
1827
|
-
})
|
|
2158
|
+
value: debugStack
|
|
2159
|
+
});
|
|
2160
|
+
Object.defineProperty(type, "_debugTask", {
|
|
1828
2161
|
configurable: !1,
|
|
1829
2162
|
enumerable: !1,
|
|
1830
2163
|
writable: !0,
|
|
1831
|
-
value:
|
|
1832
|
-
})
|
|
2164
|
+
value: debugTask
|
|
2165
|
+
});
|
|
2166
|
+
Object.freeze && (Object.freeze(type.props), Object.freeze(type));
|
|
2167
|
+
return type;
|
|
1833
2168
|
}
|
|
1834
|
-
function
|
|
1835
|
-
var
|
|
1836
|
-
if (
|
|
1837
|
-
for (
|
|
1838
|
-
Object.freeze && Object.freeze(
|
|
2169
|
+
function jsxDEVImpl(type, config, maybeKey, isStaticChildren, debugStack, debugTask) {
|
|
2170
|
+
var children = config.children;
|
|
2171
|
+
if (void 0 !== children) if (isStaticChildren) if (isArrayImpl(children)) {
|
|
2172
|
+
for (isStaticChildren = 0; isStaticChildren < children.length; isStaticChildren++) validateChildKeys(children[isStaticChildren]);
|
|
2173
|
+
Object.freeze && Object.freeze(children);
|
|
1839
2174
|
} else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
1840
|
-
else
|
|
1841
|
-
if (
|
|
1842
|
-
|
|
1843
|
-
var
|
|
1844
|
-
return
|
|
2175
|
+
else validateChildKeys(children);
|
|
2176
|
+
if (hasOwnProperty.call(config, "key")) {
|
|
2177
|
+
children = getComponentNameFromType(type);
|
|
2178
|
+
var keys = Object.keys(config).filter(function(k) {
|
|
2179
|
+
return "key" !== k;
|
|
1845
2180
|
});
|
|
1846
|
-
|
|
2181
|
+
isStaticChildren = 0 < keys.length ? "{key: someKey, " + keys.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
2182
|
+
didWarnAboutKeySpread[children + isStaticChildren] || (keys = 0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}", console.error("A props object containing a \"key\" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />", isStaticChildren, children, keys, children), didWarnAboutKeySpread[children + isStaticChildren] = !0);
|
|
1847
2183
|
}
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
2184
|
+
children = null;
|
|
2185
|
+
void 0 !== maybeKey && (checkKeyStringCoercion(maybeKey), children = "" + maybeKey);
|
|
2186
|
+
hasValidKey(config) && (checkKeyStringCoercion(config.key), children = "" + config.key);
|
|
2187
|
+
if ("key" in config) {
|
|
2188
|
+
maybeKey = {};
|
|
2189
|
+
for (var propName in config) "key" !== propName && (maybeKey[propName] = config[propName]);
|
|
2190
|
+
} else maybeKey = config;
|
|
2191
|
+
children && defineKeyPropWarningGetter(maybeKey, "function" === typeof type ? type.displayName || type.name || "Unknown" : type);
|
|
2192
|
+
return ReactElement(type, children, maybeKey, getOwner(), debugStack, debugTask);
|
|
1851
2193
|
}
|
|
1852
|
-
function
|
|
1853
|
-
|
|
2194
|
+
function validateChildKeys(node) {
|
|
2195
|
+
isValidElement(node) ? node._store && (node._store.validated = 1) : "object" === typeof node && null !== node && node.$$typeof === REACT_LAZY_TYPE && ("fulfilled" === node._payload.status ? isValidElement(node._payload.value) && node._payload.value._store && (node._payload.value._store.validated = 1) : node._store && (node._store.validated = 1));
|
|
1854
2196
|
}
|
|
1855
|
-
function
|
|
1856
|
-
return
|
|
2197
|
+
function isValidElement(object) {
|
|
2198
|
+
return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
1857
2199
|
}
|
|
1858
|
-
var
|
|
2200
|
+
var React = __require("react"), REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = Symbol.for("react.activity"), REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, hasOwnProperty = Object.prototype.hasOwnProperty, isArrayImpl = Array.isArray, createTask = console.createTask ? console.createTask : function() {
|
|
1859
2201
|
return null;
|
|
1860
2202
|
};
|
|
1861
|
-
|
|
1862
|
-
return
|
|
2203
|
+
React = { react_stack_bottom_frame: function(callStackForError) {
|
|
2204
|
+
return callStackForError();
|
|
1863
2205
|
} };
|
|
1864
|
-
var
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
2206
|
+
var specialPropKeyWarningShown;
|
|
2207
|
+
var didWarnAboutElementRef = {};
|
|
2208
|
+
var unknownOwnerDebugStack = React.react_stack_bottom_frame.bind(React, UnknownOwner)();
|
|
2209
|
+
var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
|
|
2210
|
+
var didWarnAboutKeySpread = {};
|
|
2211
|
+
exports.Fragment = REACT_FRAGMENT_TYPE;
|
|
2212
|
+
exports.jsx = function(type, config, maybeKey) {
|
|
2213
|
+
var trackActualOwner = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
|
|
2214
|
+
return jsxDEVImpl(type, config, maybeKey, !1, trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack, trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask);
|
|
2215
|
+
};
|
|
2216
|
+
exports.jsxs = function(type, config, maybeKey) {
|
|
2217
|
+
var trackActualOwner = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
|
|
2218
|
+
return jsxDEVImpl(type, config, maybeKey, !0, trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack, trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask);
|
|
1871
2219
|
};
|
|
1872
2220
|
})();
|
|
1873
|
-
}))
|
|
1874
|
-
|
|
1875
|
-
|
|
2221
|
+
}));
|
|
2222
|
+
//#endregion
|
|
2223
|
+
//#region src/components/ui/input.tsx
|
|
2224
|
+
var import_jsx_runtime = (/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2225
|
+
if (process.env.NODE_ENV === "production") module.exports = require_react_jsx_runtime_production();
|
|
2226
|
+
else module.exports = require_react_jsx_runtime_development();
|
|
2227
|
+
})))();
|
|
2228
|
+
var inputSizes = {
|
|
1876
2229
|
sm: "h-9 px-4 text-[12px] leading-[20px]",
|
|
1877
2230
|
md: "h-10 px-5 text-[14px] leading-[20px]",
|
|
1878
2231
|
lg: "h-[50px] px-5 text-[16px] leading-[20px]",
|
|
1879
2232
|
full: "h-[50px] w-full px-5 text-[14px] md:text-[16px] leading-[20px]"
|
|
1880
|
-
}
|
|
1881
|
-
|
|
1882
|
-
|
|
2233
|
+
};
|
|
2234
|
+
var Input = React.forwardRef(({ className, type = "text", size = "lg", error, ...props }, ref) => {
|
|
2235
|
+
const [showPassword, setShowPassword] = React.useState(false);
|
|
2236
|
+
const isPassword = type === "password";
|
|
2237
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
1883
2238
|
className: "w-full",
|
|
1884
|
-
children: [/* @__PURE__ */ (0,
|
|
2239
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
1885
2240
|
className: "relative w-full",
|
|
1886
|
-
children: [/* @__PURE__ */ (0,
|
|
1887
|
-
ref
|
|
1888
|
-
type:
|
|
2241
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("input", {
|
|
2242
|
+
ref,
|
|
2243
|
+
type: isPassword && showPassword ? "text" : type,
|
|
1889
2244
|
"data-slot": "input",
|
|
1890
|
-
className:
|
|
1891
|
-
|
|
1892
|
-
|
|
2245
|
+
className: cn(`w-full min-w-0
|
|
2246
|
+
rounded-[50px]
|
|
2247
|
+
border border-border
|
|
2248
|
+
bg-background
|
|
2249
|
+
|
|
2250
|
+
font-sans
|
|
2251
|
+
text-inputtext
|
|
2252
|
+
|
|
2253
|
+
overflow-hidden
|
|
2254
|
+
text-ellipsis
|
|
2255
|
+
whitespace-nowrap
|
|
2256
|
+
|
|
2257
|
+
transition-all
|
|
2258
|
+
outline-none
|
|
2259
|
+
|
|
2260
|
+
placeholder:text-inputtext/60
|
|
2261
|
+
|
|
2262
|
+
focus-visible:border-baseblack
|
|
2263
|
+
focus-visible:ring-0
|
|
2264
|
+
focus-visible:ring-baseblack/20
|
|
2265
|
+
|
|
2266
|
+
disabled:cursor-not-allowed
|
|
2267
|
+
disabled:opacity-50
|
|
2268
|
+
|
|
2269
|
+
aria-invalid:border-destructive
|
|
2270
|
+
aria-invalid:ring-0
|
|
2271
|
+
aria-invalid:ring-destructive/20`, !error && `
|
|
2272
|
+
border-border
|
|
2273
|
+
text-inputText
|
|
2274
|
+
focus-visible:border-inputText
|
|
2275
|
+
focus-visible:ring-0
|
|
2276
|
+
focus-visible:ring-inputText/20
|
|
2277
|
+
`, error && `
|
|
2278
|
+
border-destructive
|
|
2279
|
+
text-destructive
|
|
2280
|
+
placeholder:text-destructive/60
|
|
2281
|
+
focus-visible:border-destructive
|
|
2282
|
+
focus-visible:ring-destructive/30
|
|
2283
|
+
`, isPassword && "pr-12", inputSizes[size], className),
|
|
2284
|
+
...props
|
|
2285
|
+
}), isPassword && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("button", {
|
|
1893
2286
|
type: "button",
|
|
1894
|
-
onClick: () =>
|
|
2287
|
+
onClick: () => setShowPassword(!showPassword),
|
|
1895
2288
|
className: "\n absolute right-5 top-1/2 -translate-y-1/2\n text-muted-foreground hover:text-foreground\n ",
|
|
1896
|
-
children:
|
|
2289
|
+
children: showPassword ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("svg", {
|
|
1897
2290
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1898
2291
|
width: "24",
|
|
1899
2292
|
height: "24",
|
|
1900
2293
|
viewBox: "0 0 24 24",
|
|
1901
2294
|
fill: "none",
|
|
1902
|
-
children: [/* @__PURE__ */ (0,
|
|
2295
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", {
|
|
1903
2296
|
d: "M2 12C2 12 5.5 5 12 5C18.5 5 22 12 22 12C22 12 18.5 19 12 19C5.5 19 2 12 2 12Z",
|
|
1904
2297
|
stroke: "#B5B6B8",
|
|
1905
2298
|
"stroke-width": "1.5",
|
|
1906
2299
|
"stroke-linecap": "round",
|
|
1907
2300
|
"stroke-linejoin": "round"
|
|
1908
|
-
}), /* @__PURE__ */ (0,
|
|
2301
|
+
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", {
|
|
1909
2302
|
cx: "12",
|
|
1910
2303
|
cy: "12",
|
|
1911
2304
|
r: "3",
|
|
1912
2305
|
stroke: "#B5B6B8",
|
|
1913
2306
|
"stroke-width": "1.5"
|
|
1914
2307
|
})]
|
|
1915
|
-
}) : /* @__PURE__ */ (0,
|
|
2308
|
+
}) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)("svg", {
|
|
1916
2309
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1917
2310
|
width: "24",
|
|
1918
2311
|
height: "24",
|
|
1919
2312
|
viewBox: "0 0 24 24",
|
|
1920
2313
|
fill: "none",
|
|
1921
|
-
children: /* @__PURE__ */ (0,
|
|
2314
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", {
|
|
1922
2315
|
d: "M5.05499 3.24563C4.98913 3.17138 4.90918 3.11095 4.81979 3.06783C4.7304 3.02471 4.63334 2.99976 4.53423 2.99443C4.43513 2.9891 4.33595 3.00349 4.24245 3.03677C4.14895 3.07005 4.06298 3.12156 3.98953 3.18831C3.91608 3.25506 3.85661 3.33572 3.81457 3.42562C3.77252 3.51552 3.74874 3.61288 3.7446 3.71204C3.74045 3.8112 3.75603 3.9102 3.79043 4.00329C3.82483 4.09639 3.87737 4.18173 3.94499 4.25438L5.74874 6.23906C2.34374 8.32875 0.879366 11.55 0.814679 11.6963C0.772035 11.7922 0.75 11.896 0.75 12.0009C0.75 12.1059 0.772035 12.2097 0.814679 12.3056C0.847491 12.3797 1.64155 14.1403 3.40687 15.9056C5.75905 18.2569 8.72999 19.5 12 19.5C13.6806 19.5096 15.3442 19.1636 16.8816 18.4847L18.9441 20.7544C19.0099 20.8286 19.0899 20.8891 19.1793 20.9322C19.2686 20.9753 19.3657 21.0002 19.4648 21.0056C19.5639 21.0109 19.6631 20.9965 19.7566 20.9632C19.8501 20.93 19.9361 20.8784 20.0095 20.8117C20.083 20.7449 20.1424 20.6643 20.1845 20.5744C20.2265 20.4845 20.2503 20.3871 20.2544 20.288C20.2586 20.1888 20.243 20.0898 20.2086 19.9967C20.1742 19.9036 20.1217 19.8183 20.0541 19.7456L5.05499 3.24563ZM9.49218 10.3556L13.3987 14.6541C12.8105 14.9636 12.136 15.0689 11.4814 14.9535C10.8268 14.8382 10.229 14.5087 9.78189 14.0168C9.33481 13.5248 9.06377 12.8984 9.01134 12.2357C8.9589 11.573 9.12803 10.9117 9.49218 10.3556ZM12 18C9.11437 18 6.59343 16.9509 4.50655 14.8828C3.64997 14.0315 2.92145 13.0605 2.34374 12C2.78343 11.1759 4.18687 8.86969 6.7828 7.37063L8.4703 9.22219C7.81699 10.0589 7.48052 11.0997 7.52036 12.1605C7.56021 13.2213 7.97379 14.2339 8.68802 15.0192C9.40225 15.8046 10.3711 16.3122 11.4234 16.4522C12.4757 16.5923 13.5436 16.3559 14.4384 15.7847L15.8194 17.3034C14.6006 17.771 13.3053 18.0072 12 18ZM12.5625 9.05344C12.3671 9.01614 12.1944 8.90274 12.0826 8.73818C11.9708 8.57361 11.9289 8.37137 11.9662 8.17594C12.0035 7.98051 12.1169 7.8079 12.2815 7.69608C12.4461 7.58426 12.6483 7.54239 12.8437 7.57969C13.7996 7.765 14.67 8.25436 15.325 8.97477C15.98 9.69518 16.3846 10.608 16.4784 11.5772C16.4969 11.7752 16.436 11.9725 16.3091 12.1257C16.1822 12.2788 15.9996 12.3752 15.8016 12.3938C15.7781 12.3951 15.7547 12.3951 15.7312 12.3938C15.5438 12.3946 15.3628 12.3251 15.224 12.1992C15.0852 12.0732 14.9986 11.8998 14.9812 11.7131C14.9181 11.0685 14.6486 10.4615 14.2128 9.98226C13.7771 9.50307 13.1982 9.17731 12.5625 9.05344ZM23.1825 12.3056C23.1431 12.3938 22.1934 14.4966 20.055 16.4119C19.9819 16.4794 19.8961 16.5317 19.8027 16.5658C19.7092 16.5998 19.6099 16.6149 19.5105 16.6102C19.4111 16.6055 19.3136 16.5811 19.2238 16.5384C19.1339 16.4956 19.0535 16.4354 18.9871 16.3613C18.9208 16.2872 18.8698 16.2006 18.8373 16.1066C18.8047 16.0125 18.7912 15.913 18.7975 15.8137C18.8037 15.7144 18.8297 15.6173 18.8739 15.5282C18.918 15.439 18.9795 15.3595 19.0547 15.2944C20.1038 14.3518 20.9851 13.2378 21.6609 12C21.0819 10.9385 20.3518 9.96683 19.4934 9.11531C17.4066 7.04906 14.8856 6 12 6C11.392 5.99926 10.7849 6.04849 10.185 6.14719C10.0874 6.16444 9.98741 6.16219 9.89073 6.14058C9.79404 6.11896 9.70259 6.07839 9.62167 6.02123C9.54074 5.96407 9.47195 5.89144 9.41925 5.80754C9.36656 5.72363 9.33101 5.63012 9.31466 5.5324C9.29832 5.43469 9.30149 5.3347 9.32401 5.23821C9.34652 5.14173 9.38793 5.05066 9.44584 4.97027C9.50375 4.88988 9.57702 4.82176 9.6614 4.76985C9.74579 4.71794 9.83963 4.68326 9.93749 4.66781C10.6192 4.55525 11.309 4.49912 12 4.5C15.27 4.5 18.2409 5.74313 20.5931 8.09531C22.3584 9.86063 23.1525 11.6222 23.1853 11.6963C23.2279 11.7922 23.25 11.896 23.25 12.0009C23.25 12.1059 23.2279 12.2097 23.1853 12.3056H23.1825Z",
|
|
1923
2316
|
fill: "#B5B6B8"
|
|
1924
2317
|
})
|
|
1925
2318
|
})
|
|
1926
2319
|
})]
|
|
1927
|
-
}),
|
|
2320
|
+
}), error && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
|
|
1928
2321
|
className: "mt-1 px-3 text-[12px] leading-[16px] text-destructive font-sans",
|
|
1929
|
-
children:
|
|
2322
|
+
children: error
|
|
1930
2323
|
})]
|
|
1931
2324
|
});
|
|
1932
2325
|
});
|
|
1933
|
-
|
|
2326
|
+
Input.displayName = "Input";
|
|
1934
2327
|
//#endregion
|
|
1935
2328
|
//#region node_modules/class-variance-authority/dist/index.mjs
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
2329
|
+
/**
|
|
2330
|
+
* Copyright 2022 Joe Bell. All rights reserved.
|
|
2331
|
+
*
|
|
2332
|
+
* This file is licensed to you under the Apache License, Version 2.0
|
|
2333
|
+
* (the "License"); you may not use this file except in compliance with the
|
|
2334
|
+
* License. You may obtain a copy of the License at
|
|
2335
|
+
*
|
|
2336
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
2337
|
+
*
|
|
2338
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
2339
|
+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
2340
|
+
* WARRANTIES OR REPRESENTATIONS OF ANY KIND, either express or implied. See the
|
|
2341
|
+
* License for the specific language governing permissions and limitations under
|
|
2342
|
+
* the License.
|
|
2343
|
+
*/ var falsyToString = (value) => typeof value === "boolean" ? `${value}` : value === 0 ? "0" : value;
|
|
2344
|
+
var cx = clsx;
|
|
2345
|
+
var cva = (base, config) => (props) => {
|
|
2346
|
+
var _config_compoundVariants;
|
|
2347
|
+
if ((config === null || config === void 0 ? void 0 : config.variants) == null) return cx(base, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);
|
|
2348
|
+
const { variants, defaultVariants } = config;
|
|
2349
|
+
const getVariantClassNames = Object.keys(variants).map((variant) => {
|
|
2350
|
+
const variantProp = props === null || props === void 0 ? void 0 : props[variant];
|
|
2351
|
+
const defaultVariantProp = defaultVariants === null || defaultVariants === void 0 ? void 0 : defaultVariants[variant];
|
|
2352
|
+
if (variantProp === null) return null;
|
|
2353
|
+
const variantKey = falsyToString(variantProp) || falsyToString(defaultVariantProp);
|
|
2354
|
+
return variants[variant][variantKey];
|
|
2355
|
+
});
|
|
2356
|
+
const propsWithoutUndefined = props && Object.entries(props).reduce((acc, param) => {
|
|
2357
|
+
let [key, value] = param;
|
|
2358
|
+
if (value === void 0) return acc;
|
|
2359
|
+
acc[key] = value;
|
|
2360
|
+
return acc;
|
|
1946
2361
|
}, {});
|
|
1947
|
-
return
|
|
1948
|
-
let { class:
|
|
1949
|
-
return Object.entries(
|
|
1950
|
-
let [
|
|
1951
|
-
return Array.isArray(
|
|
1952
|
-
...
|
|
1953
|
-
...
|
|
1954
|
-
}[
|
|
1955
|
-
...
|
|
1956
|
-
...
|
|
1957
|
-
}[
|
|
2362
|
+
return cx(base, getVariantClassNames, config === null || config === void 0 ? void 0 : (_config_compoundVariants = config.compoundVariants) === null || _config_compoundVariants === void 0 ? void 0 : _config_compoundVariants.reduce((acc, param) => {
|
|
2363
|
+
let { class: cvClass, className: cvClassName, ...compoundVariantOptions } = param;
|
|
2364
|
+
return Object.entries(compoundVariantOptions).every((param) => {
|
|
2365
|
+
let [key, value] = param;
|
|
2366
|
+
return Array.isArray(value) ? value.includes({
|
|
2367
|
+
...defaultVariants,
|
|
2368
|
+
...propsWithoutUndefined
|
|
2369
|
+
}[key]) : {
|
|
2370
|
+
...defaultVariants,
|
|
2371
|
+
...propsWithoutUndefined
|
|
2372
|
+
}[key] === value;
|
|
1958
2373
|
}) ? [
|
|
1959
|
-
...
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
] :
|
|
1963
|
-
}, []),
|
|
2374
|
+
...acc,
|
|
2375
|
+
cvClass,
|
|
2376
|
+
cvClassName
|
|
2377
|
+
] : acc;
|
|
2378
|
+
}, []), props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);
|
|
1964
2379
|
};
|
|
1965
2380
|
//#endregion
|
|
1966
2381
|
//#region node_modules/@radix-ui/react-compose-refs/dist/index.mjs
|
|
1967
|
-
function
|
|
1968
|
-
if (typeof
|
|
1969
|
-
|
|
2382
|
+
function setRef(ref, value) {
|
|
2383
|
+
if (typeof ref === "function") return ref(value);
|
|
2384
|
+
else if (ref !== null && ref !== void 0) ref.current = value;
|
|
1970
2385
|
}
|
|
1971
|
-
function
|
|
1972
|
-
return (
|
|
1973
|
-
let
|
|
1974
|
-
|
|
1975
|
-
|
|
2386
|
+
function composeRefs(...refs) {
|
|
2387
|
+
return (node) => {
|
|
2388
|
+
let hasCleanup = false;
|
|
2389
|
+
const cleanups = refs.map((ref) => {
|
|
2390
|
+
const cleanup = setRef(ref, node);
|
|
2391
|
+
if (!hasCleanup && typeof cleanup == "function") hasCleanup = true;
|
|
2392
|
+
return cleanup;
|
|
1976
2393
|
});
|
|
1977
|
-
if (
|
|
1978
|
-
for (let
|
|
1979
|
-
|
|
1980
|
-
typeof
|
|
2394
|
+
if (hasCleanup) return () => {
|
|
2395
|
+
for (let i = 0; i < cleanups.length; i++) {
|
|
2396
|
+
const cleanup = cleanups[i];
|
|
2397
|
+
if (typeof cleanup == "function") cleanup();
|
|
2398
|
+
else setRef(refs[i], null);
|
|
1981
2399
|
}
|
|
1982
2400
|
};
|
|
1983
2401
|
};
|
|
1984
2402
|
}
|
|
1985
2403
|
//#endregion
|
|
1986
|
-
//#region node_modules
|
|
2404
|
+
//#region node_modules/@radix-ui/react-slot/dist/index.mjs
|
|
2405
|
+
var REACT_LAZY_TYPE = Symbol.for("react.lazy");
|
|
2406
|
+
var use = React[" use ".trim().toString()];
|
|
2407
|
+
function isPromiseLike(value) {
|
|
2408
|
+
return typeof value === "object" && value !== null && "then" in value;
|
|
2409
|
+
}
|
|
2410
|
+
function isLazyComponent(element) {
|
|
2411
|
+
return element != null && typeof element === "object" && "$$typeof" in element && element.$$typeof === REACT_LAZY_TYPE && "_payload" in element && isPromiseLike(element._payload);
|
|
2412
|
+
}
|
|
1987
2413
|
/* @__NO_SIDE_EFFECTS__ */
|
|
1988
|
-
function
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
2414
|
+
function createSlot(ownerName) {
|
|
2415
|
+
const SlotClone = /* @__PURE__ */ createSlotClone(ownerName);
|
|
2416
|
+
const Slot2 = React.forwardRef((props, forwardedRef) => {
|
|
2417
|
+
let { children, ...slotProps } = props;
|
|
2418
|
+
if (isLazyComponent(children) && typeof use === "function") children = use(children._payload);
|
|
2419
|
+
const childrenArray = React.Children.toArray(children);
|
|
2420
|
+
const slottable = childrenArray.find(isSlottable);
|
|
2421
|
+
if (slottable) {
|
|
2422
|
+
const newElement = slottable.props.children;
|
|
2423
|
+
const newChildren = childrenArray.map((child) => {
|
|
2424
|
+
if (child === slottable) {
|
|
2425
|
+
if (React.Children.count(newElement) > 1) return React.Children.only(null);
|
|
2426
|
+
return React.isValidElement(newElement) ? newElement.props.children : null;
|
|
2427
|
+
} else return child;
|
|
2428
|
+
});
|
|
2429
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SlotClone, {
|
|
2430
|
+
...slotProps,
|
|
2431
|
+
ref: forwardedRef,
|
|
2432
|
+
children: React.isValidElement(newElement) ? React.cloneElement(newElement, void 0, newChildren) : null
|
|
1997
2433
|
});
|
|
1998
2434
|
}
|
|
1999
|
-
return /* @__PURE__ */ (0,
|
|
2000
|
-
...
|
|
2001
|
-
ref:
|
|
2002
|
-
children
|
|
2435
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SlotClone, {
|
|
2436
|
+
...slotProps,
|
|
2437
|
+
ref: forwardedRef,
|
|
2438
|
+
children
|
|
2003
2439
|
});
|
|
2004
2440
|
});
|
|
2005
|
-
|
|
2441
|
+
Slot2.displayName = `${ownerName}.Slot`;
|
|
2442
|
+
return Slot2;
|
|
2006
2443
|
}
|
|
2007
|
-
var
|
|
2444
|
+
var Slot = /* @__PURE__ */ createSlot("Slot");
|
|
2008
2445
|
/* @__NO_SIDE_EFFECTS__ */
|
|
2009
|
-
function
|
|
2010
|
-
|
|
2011
|
-
let { children
|
|
2012
|
-
if (
|
|
2013
|
-
|
|
2014
|
-
|
|
2446
|
+
function createSlotClone(ownerName) {
|
|
2447
|
+
const SlotClone = React.forwardRef((props, forwardedRef) => {
|
|
2448
|
+
let { children, ...slotProps } = props;
|
|
2449
|
+
if (isLazyComponent(children) && typeof use === "function") children = use(children._payload);
|
|
2450
|
+
if (React.isValidElement(children)) {
|
|
2451
|
+
const childrenRef = getElementRef(children);
|
|
2452
|
+
const props2 = mergeProps(slotProps, children.props);
|
|
2453
|
+
if (children.type !== React.Fragment) props2.ref = forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef;
|
|
2454
|
+
return React.cloneElement(children, props2);
|
|
2015
2455
|
}
|
|
2016
|
-
return
|
|
2456
|
+
return React.Children.count(children) > 1 ? React.Children.only(null) : null;
|
|
2017
2457
|
});
|
|
2018
|
-
|
|
2458
|
+
SlotClone.displayName = `${ownerName}.SlotClone`;
|
|
2459
|
+
return SlotClone;
|
|
2019
2460
|
}
|
|
2020
|
-
var
|
|
2021
|
-
function
|
|
2022
|
-
return
|
|
2461
|
+
var SLOTTABLE_IDENTIFIER = Symbol("radix.slottable");
|
|
2462
|
+
function isSlottable(child) {
|
|
2463
|
+
return React.isValidElement(child) && typeof child.type === "function" && "__radixId" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER;
|
|
2023
2464
|
}
|
|
2024
|
-
function
|
|
2025
|
-
|
|
2026
|
-
for (
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2465
|
+
function mergeProps(slotProps, childProps) {
|
|
2466
|
+
const overrideProps = { ...childProps };
|
|
2467
|
+
for (const propName in childProps) {
|
|
2468
|
+
const slotPropValue = slotProps[propName];
|
|
2469
|
+
const childPropValue = childProps[propName];
|
|
2470
|
+
if (/^on[A-Z]/.test(propName)) {
|
|
2471
|
+
if (slotPropValue && childPropValue) overrideProps[propName] = (...args) => {
|
|
2472
|
+
const result = childPropValue(...args);
|
|
2473
|
+
slotPropValue(...args);
|
|
2474
|
+
return result;
|
|
2475
|
+
};
|
|
2476
|
+
else if (slotPropValue) overrideProps[propName] = slotPropValue;
|
|
2477
|
+
} else if (propName === "style") overrideProps[propName] = {
|
|
2478
|
+
...slotPropValue,
|
|
2479
|
+
...childPropValue
|
|
2480
|
+
};
|
|
2481
|
+
else if (propName === "className") overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(" ");
|
|
2035
2482
|
}
|
|
2036
2483
|
return {
|
|
2037
|
-
...
|
|
2038
|
-
...
|
|
2484
|
+
...slotProps,
|
|
2485
|
+
...overrideProps
|
|
2039
2486
|
};
|
|
2040
2487
|
}
|
|
2041
|
-
function
|
|
2042
|
-
let
|
|
2043
|
-
|
|
2488
|
+
function getElementRef(element) {
|
|
2489
|
+
let getter = Object.getOwnPropertyDescriptor(element.props, "ref")?.get;
|
|
2490
|
+
let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
|
|
2491
|
+
if (mayWarn) return element.ref;
|
|
2492
|
+
getter = Object.getOwnPropertyDescriptor(element, "ref")?.get;
|
|
2493
|
+
mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
|
|
2494
|
+
if (mayWarn) return element.props.ref;
|
|
2495
|
+
return element.props.ref || element.ref;
|
|
2044
2496
|
}
|
|
2045
2497
|
//#endregion
|
|
2046
2498
|
//#region src/components/ui/button.tsx
|
|
2047
|
-
var
|
|
2499
|
+
var buttonVariants = cva("flex items-center justify-center border border-transparent font-medium transition-all outline-none select-none disabled:pointer-events-none disabled:opacity-50", {
|
|
2048
2500
|
variants: {
|
|
2049
2501
|
variant: {
|
|
2050
|
-
primary:
|
|
2051
|
-
|
|
2502
|
+
primary: `
|
|
2503
|
+
bg-primary
|
|
2504
|
+
text-primary-foreground
|
|
2505
|
+
hover:bg-primary/90
|
|
2506
|
+
rounded-[48px]
|
|
2507
|
+
`,
|
|
2508
|
+
secondary: `
|
|
2509
|
+
bg-gradient-to-r
|
|
2510
|
+
from-[#FBA022]
|
|
2511
|
+
to-[#157C70]
|
|
2512
|
+
text-white
|
|
2513
|
+
hover:opacity-90
|
|
2514
|
+
rounded-[48px]
|
|
2515
|
+
`,
|
|
2052
2516
|
outline: "border-border bg-background hover:bg-muted rounded-[48px]",
|
|
2053
|
-
outlinePrimary:
|
|
2054
|
-
|
|
2055
|
-
|
|
2517
|
+
outlinePrimary: `
|
|
2518
|
+
bg-transparent
|
|
2519
|
+
border-2
|
|
2520
|
+
border-primary
|
|
2521
|
+
text-primary
|
|
2522
|
+
rounded-[48px]
|
|
2523
|
+
hover:bg-primary/20
|
|
2524
|
+
`,
|
|
2525
|
+
outlineSecondary: `
|
|
2526
|
+
bg-transparent
|
|
2527
|
+
border-2
|
|
2528
|
+
border-[hsl(var(--outlinesecondary))]
|
|
2529
|
+
text-[hsl(var(--outlinesecondary))]
|
|
2530
|
+
rounded-[48px]
|
|
2531
|
+
hover:bg-[hsl(var(--outlinesecondary))]/20
|
|
2532
|
+
`,
|
|
2533
|
+
outlineWhite: `
|
|
2534
|
+
bg-transparent
|
|
2535
|
+
border-2
|
|
2536
|
+
border-[hsl(var(--basewhite))]
|
|
2537
|
+
text-[hsl(var(--basewhite))]
|
|
2538
|
+
rounded-[48px]
|
|
2539
|
+
hover:bg-[hsl(var(--baseWhite))]/20
|
|
2540
|
+
`
|
|
2056
2541
|
},
|
|
2057
2542
|
size: {
|
|
2058
2543
|
sm: "h-9 px-4 text-sm",
|
|
2059
2544
|
md: "h-10 px-6 text-base",
|
|
2060
|
-
lg:
|
|
2061
|
-
|
|
2062
|
-
|
|
2545
|
+
lg: `
|
|
2546
|
+
h-[40px]
|
|
2547
|
+
w-[350px]
|
|
2548
|
+
px-[32px]
|
|
2549
|
+
gap-[10px]
|
|
2550
|
+
text-base
|
|
2551
|
+
rounded-[48px]
|
|
2552
|
+
`,
|
|
2553
|
+
xl: `
|
|
2554
|
+
h-[50px]
|
|
2555
|
+
w-[350px]
|
|
2556
|
+
px-[40px]
|
|
2557
|
+
gap-[10px]
|
|
2558
|
+
text-base
|
|
2559
|
+
rounded-[48px]
|
|
2560
|
+
`,
|
|
2561
|
+
full: `
|
|
2562
|
+
h-full
|
|
2563
|
+
max-h-[50px]
|
|
2564
|
+
min-h-[30px]
|
|
2565
|
+
w-full
|
|
2566
|
+
max-w-[500px]
|
|
2567
|
+
min-w-[200px]
|
|
2568
|
+
px-[40px]
|
|
2569
|
+
gap-[10px]
|
|
2570
|
+
text-base
|
|
2571
|
+
rounded-[48px]
|
|
2572
|
+
`
|
|
2063
2573
|
}
|
|
2064
2574
|
},
|
|
2065
2575
|
defaultVariants: {
|
|
@@ -2067,35 +2577,61 @@ var Ye = ze("flex items-center justify-center border border-transparent font-med
|
|
|
2067
2577
|
size: "md"
|
|
2068
2578
|
}
|
|
2069
2579
|
});
|
|
2070
|
-
function
|
|
2071
|
-
return /* @__PURE__ */ (0,
|
|
2072
|
-
className:
|
|
2073
|
-
variant
|
|
2074
|
-
size
|
|
2075
|
-
}),
|
|
2076
|
-
...
|
|
2580
|
+
function Button({ className, variant, size, asChild = false, ...props }) {
|
|
2581
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(asChild ? Slot : "button", {
|
|
2582
|
+
className: cn(buttonVariants({
|
|
2583
|
+
variant,
|
|
2584
|
+
size
|
|
2585
|
+
}), className),
|
|
2586
|
+
...props
|
|
2077
2587
|
});
|
|
2078
2588
|
}
|
|
2079
2589
|
//#endregion
|
|
2080
2590
|
//#region src/components/ui/backButton.tsx
|
|
2081
|
-
var
|
|
2591
|
+
var sizes = {
|
|
2082
2592
|
ch: "text-[14px] gap-1 [&_svg]:w-4 [&_svg]:h-4",
|
|
2083
2593
|
md: "text-[16px] gap-2 [&_svg]:w-5 [&_svg]:h-5",
|
|
2084
2594
|
lg: "text-[18px] gap-2.5 [&_svg]:w-6 [&_svg]:h-6"
|
|
2085
|
-
}
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2595
|
+
};
|
|
2596
|
+
var BackButton = React.forwardRef(({ className, size = "lg", children = "Regresar", ...props }, ref) => {
|
|
2597
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("button", {
|
|
2598
|
+
ref,
|
|
2599
|
+
className: cn(`
|
|
2600
|
+
inline-flex
|
|
2601
|
+
items-center
|
|
2602
|
+
bg-transparent
|
|
2603
|
+
|
|
2604
|
+
font-sans
|
|
2605
|
+
font-medium
|
|
2606
|
+
|
|
2607
|
+
text-basewhite
|
|
2608
|
+
|
|
2609
|
+
text-center
|
|
2610
|
+
leading-none
|
|
2611
|
+
|
|
2612
|
+
cursor-pointer
|
|
2613
|
+
hover:underline
|
|
2614
|
+
|
|
2615
|
+
transition-all
|
|
2616
|
+
outline-none
|
|
2617
|
+
|
|
2618
|
+
active:opacity-70
|
|
2619
|
+
|
|
2620
|
+
disabled:opacity-50
|
|
2621
|
+
disabled:cursor-not-allowed
|
|
2622
|
+
`, sizes[size], className),
|
|
2623
|
+
...props,
|
|
2624
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("svg", {
|
|
2625
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2626
|
+
viewBox: "0 0 24 24",
|
|
2627
|
+
fill: "none",
|
|
2628
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", {
|
|
2629
|
+
d: "M21.0001 11.9999C21.0001 12.1988 20.9211 12.3896 20.7804 12.5303C20.6398 12.6709 20.449 12.7499 20.2501 12.7499H5.56041L11.0307 18.2193C11.1004 18.289 11.1557 18.3717 11.1934 18.4628C11.2311 18.5538 11.2505 18.6514 11.2505 18.7499C11.2505 18.8485 11.2311 18.9461 11.1934 19.0371C11.1557 19.1281 11.1004 19.2109 11.0307 19.2806C10.961 19.3502 10.8783 19.4055 10.7873 19.4432C10.6962 19.4809 10.5986 19.5003 10.5001 19.5003C10.4016 19.5003 10.304 19.4809 10.2129 19.4432C10.1219 19.4055 10.0392 19.3502 9.96948 19.2806L3.21948 12.5306C3.14974 12.4609 3.09443 12.3782 3.05668 12.2871C3.01894 12.1961 2.99951 12.0985 2.99951 11.9999C2.99951 11.9014 3.01894 11.8038 3.05668 11.7127C3.09443 11.6217 3.14974 11.539 3.21948 11.4693L9.96948 4.7193C10.1102 4.57857 10.3011 4.49951 10.5001 4.49951C10.6991 4.49951 10.89 4.57857 11.0307 4.7193C11.1715 4.86003 11.2505 5.05091 11.2505 5.24993C11.2505 5.44895 11.1715 5.63982 11.0307 5.78055L5.56041 11.2499H20.2501C20.449 11.2499 20.6398 11.3289 20.7804 11.4696C20.9211 11.6103 21.0001 11.801 21.0001 11.9999Z",
|
|
2630
|
+
fill: "currentColor"
|
|
2631
|
+
})
|
|
2632
|
+
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { children })]
|
|
2633
|
+
});
|
|
2634
|
+
});
|
|
2635
|
+
BackButton.displayName = "BackButton";
|
|
2100
2636
|
//#endregion
|
|
2101
|
-
export {
|
|
2637
|
+
export { BackButton, Button, Input };
|