@dgithiomi/sbui-web 1.0.0
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/chunk-3QS3WKRC.mjs +31 -0
- package/dist/chunk-3QS3WKRC.mjs.map +1 -0
- package/dist/index.cjs +3649 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +225 -0
- package/dist/index.d.ts +225 -0
- package/dist/index.mjs +3613 -0
- package/dist/index.mjs.map +1 -0
- package/dist/styles.css +1245 -0
- package/dist/tailwind-preset.cjs +266 -0
- package/dist/tailwind-preset.cjs.map +1 -0
- package/dist/tailwind-preset.d.cts +23 -0
- package/dist/tailwind-preset.d.ts +23 -0
- package/dist/tailwind-preset.mjs +246 -0
- package/dist/tailwind-preset.mjs.map +1 -0
- package/package.json +76 -0
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,3613 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__commonJS,
|
|
3
|
+
__toESM
|
|
4
|
+
} from "./chunk-3QS3WKRC.mjs";
|
|
5
|
+
|
|
6
|
+
// ../../node_modules/.bun/classnames@2.5.1/node_modules/classnames/index.js
|
|
7
|
+
var require_classnames = __commonJS({
|
|
8
|
+
"../../node_modules/.bun/classnames@2.5.1/node_modules/classnames/index.js"(exports, module) {
|
|
9
|
+
(function() {
|
|
10
|
+
"use strict";
|
|
11
|
+
var hasOwn = {}.hasOwnProperty;
|
|
12
|
+
function classNames2() {
|
|
13
|
+
var classes = "";
|
|
14
|
+
for (var i = 0; i < arguments.length; i++) {
|
|
15
|
+
var arg = arguments[i];
|
|
16
|
+
if (arg) {
|
|
17
|
+
classes = appendClass(classes, parseValue(arg));
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
return classes;
|
|
21
|
+
}
|
|
22
|
+
function parseValue(arg) {
|
|
23
|
+
if (typeof arg === "string" || typeof arg === "number") {
|
|
24
|
+
return arg;
|
|
25
|
+
}
|
|
26
|
+
if (typeof arg !== "object") {
|
|
27
|
+
return "";
|
|
28
|
+
}
|
|
29
|
+
if (Array.isArray(arg)) {
|
|
30
|
+
return classNames2.apply(null, arg);
|
|
31
|
+
}
|
|
32
|
+
if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes("[native code]")) {
|
|
33
|
+
return arg.toString();
|
|
34
|
+
}
|
|
35
|
+
var classes = "";
|
|
36
|
+
for (var key in arg) {
|
|
37
|
+
if (hasOwn.call(arg, key) && arg[key]) {
|
|
38
|
+
classes = appendClass(classes, key);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
return classes;
|
|
42
|
+
}
|
|
43
|
+
function appendClass(value, newClass) {
|
|
44
|
+
if (!newClass) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
if (value) {
|
|
48
|
+
return value + " " + newClass;
|
|
49
|
+
}
|
|
50
|
+
return value + newClass;
|
|
51
|
+
}
|
|
52
|
+
if (typeof module !== "undefined" && module.exports) {
|
|
53
|
+
classNames2.default = classNames2;
|
|
54
|
+
module.exports = classNames2;
|
|
55
|
+
} else if (typeof define === "function" && typeof define.amd === "object" && define.amd) {
|
|
56
|
+
define("classnames", [], function() {
|
|
57
|
+
return classNames2;
|
|
58
|
+
});
|
|
59
|
+
} else {
|
|
60
|
+
window.classNames = classNames2;
|
|
61
|
+
}
|
|
62
|
+
})();
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
// ../../packages/libs/utils.tsx
|
|
67
|
+
var import_classnames = __toESM(require_classnames(), 1);
|
|
68
|
+
|
|
69
|
+
// ../../node_modules/.bun/tailwind-merge@2.6.1/node_modules/tailwind-merge/dist/bundle-mjs.mjs
|
|
70
|
+
var CLASS_PART_SEPARATOR = "-";
|
|
71
|
+
var createClassGroupUtils = (config) => {
|
|
72
|
+
const classMap = createClassMap(config);
|
|
73
|
+
const {
|
|
74
|
+
conflictingClassGroups,
|
|
75
|
+
conflictingClassGroupModifiers
|
|
76
|
+
} = config;
|
|
77
|
+
const getClassGroupId = (className) => {
|
|
78
|
+
const classParts = className.split(CLASS_PART_SEPARATOR);
|
|
79
|
+
if (classParts[0] === "" && classParts.length !== 1) {
|
|
80
|
+
classParts.shift();
|
|
81
|
+
}
|
|
82
|
+
return getGroupRecursive(classParts, classMap) || getGroupIdForArbitraryProperty(className);
|
|
83
|
+
};
|
|
84
|
+
const getConflictingClassGroupIds = (classGroupId, hasPostfixModifier) => {
|
|
85
|
+
const conflicts = conflictingClassGroups[classGroupId] || [];
|
|
86
|
+
if (hasPostfixModifier && conflictingClassGroupModifiers[classGroupId]) {
|
|
87
|
+
return [...conflicts, ...conflictingClassGroupModifiers[classGroupId]];
|
|
88
|
+
}
|
|
89
|
+
return conflicts;
|
|
90
|
+
};
|
|
91
|
+
return {
|
|
92
|
+
getClassGroupId,
|
|
93
|
+
getConflictingClassGroupIds
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
var getGroupRecursive = (classParts, classPartObject) => {
|
|
97
|
+
var _a;
|
|
98
|
+
if (classParts.length === 0) {
|
|
99
|
+
return classPartObject.classGroupId;
|
|
100
|
+
}
|
|
101
|
+
const currentClassPart = classParts[0];
|
|
102
|
+
const nextClassPartObject = classPartObject.nextPart.get(currentClassPart);
|
|
103
|
+
const classGroupFromNextClassPart = nextClassPartObject ? getGroupRecursive(classParts.slice(1), nextClassPartObject) : void 0;
|
|
104
|
+
if (classGroupFromNextClassPart) {
|
|
105
|
+
return classGroupFromNextClassPart;
|
|
106
|
+
}
|
|
107
|
+
if (classPartObject.validators.length === 0) {
|
|
108
|
+
return void 0;
|
|
109
|
+
}
|
|
110
|
+
const classRest = classParts.join(CLASS_PART_SEPARATOR);
|
|
111
|
+
return (_a = classPartObject.validators.find(({
|
|
112
|
+
validator
|
|
113
|
+
}) => validator(classRest))) == null ? void 0 : _a.classGroupId;
|
|
114
|
+
};
|
|
115
|
+
var arbitraryPropertyRegex = /^\[(.+)\]$/;
|
|
116
|
+
var getGroupIdForArbitraryProperty = (className) => {
|
|
117
|
+
if (arbitraryPropertyRegex.test(className)) {
|
|
118
|
+
const arbitraryPropertyClassName = arbitraryPropertyRegex.exec(className)[1];
|
|
119
|
+
const property = arbitraryPropertyClassName == null ? void 0 : arbitraryPropertyClassName.substring(0, arbitraryPropertyClassName.indexOf(":"));
|
|
120
|
+
if (property) {
|
|
121
|
+
return "arbitrary.." + property;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
};
|
|
125
|
+
var createClassMap = (config) => {
|
|
126
|
+
const {
|
|
127
|
+
theme,
|
|
128
|
+
prefix
|
|
129
|
+
} = config;
|
|
130
|
+
const classMap = {
|
|
131
|
+
nextPart: /* @__PURE__ */ new Map(),
|
|
132
|
+
validators: []
|
|
133
|
+
};
|
|
134
|
+
const prefixedClassGroupEntries = getPrefixedClassGroupEntries(Object.entries(config.classGroups), prefix);
|
|
135
|
+
prefixedClassGroupEntries.forEach(([classGroupId, classGroup]) => {
|
|
136
|
+
processClassesRecursively(classGroup, classMap, classGroupId, theme);
|
|
137
|
+
});
|
|
138
|
+
return classMap;
|
|
139
|
+
};
|
|
140
|
+
var processClassesRecursively = (classGroup, classPartObject, classGroupId, theme) => {
|
|
141
|
+
classGroup.forEach((classDefinition) => {
|
|
142
|
+
if (typeof classDefinition === "string") {
|
|
143
|
+
const classPartObjectToEdit = classDefinition === "" ? classPartObject : getPart(classPartObject, classDefinition);
|
|
144
|
+
classPartObjectToEdit.classGroupId = classGroupId;
|
|
145
|
+
return;
|
|
146
|
+
}
|
|
147
|
+
if (typeof classDefinition === "function") {
|
|
148
|
+
if (isThemeGetter(classDefinition)) {
|
|
149
|
+
processClassesRecursively(classDefinition(theme), classPartObject, classGroupId, theme);
|
|
150
|
+
return;
|
|
151
|
+
}
|
|
152
|
+
classPartObject.validators.push({
|
|
153
|
+
validator: classDefinition,
|
|
154
|
+
classGroupId
|
|
155
|
+
});
|
|
156
|
+
return;
|
|
157
|
+
}
|
|
158
|
+
Object.entries(classDefinition).forEach(([key, classGroup2]) => {
|
|
159
|
+
processClassesRecursively(classGroup2, getPart(classPartObject, key), classGroupId, theme);
|
|
160
|
+
});
|
|
161
|
+
});
|
|
162
|
+
};
|
|
163
|
+
var getPart = (classPartObject, path) => {
|
|
164
|
+
let currentClassPartObject = classPartObject;
|
|
165
|
+
path.split(CLASS_PART_SEPARATOR).forEach((pathPart) => {
|
|
166
|
+
if (!currentClassPartObject.nextPart.has(pathPart)) {
|
|
167
|
+
currentClassPartObject.nextPart.set(pathPart, {
|
|
168
|
+
nextPart: /* @__PURE__ */ new Map(),
|
|
169
|
+
validators: []
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
currentClassPartObject = currentClassPartObject.nextPart.get(pathPart);
|
|
173
|
+
});
|
|
174
|
+
return currentClassPartObject;
|
|
175
|
+
};
|
|
176
|
+
var isThemeGetter = (func) => func.isThemeGetter;
|
|
177
|
+
var getPrefixedClassGroupEntries = (classGroupEntries, prefix) => {
|
|
178
|
+
if (!prefix) {
|
|
179
|
+
return classGroupEntries;
|
|
180
|
+
}
|
|
181
|
+
return classGroupEntries.map(([classGroupId, classGroup]) => {
|
|
182
|
+
const prefixedClassGroup = classGroup.map((classDefinition) => {
|
|
183
|
+
if (typeof classDefinition === "string") {
|
|
184
|
+
return prefix + classDefinition;
|
|
185
|
+
}
|
|
186
|
+
if (typeof classDefinition === "object") {
|
|
187
|
+
return Object.fromEntries(Object.entries(classDefinition).map(([key, value]) => [prefix + key, value]));
|
|
188
|
+
}
|
|
189
|
+
return classDefinition;
|
|
190
|
+
});
|
|
191
|
+
return [classGroupId, prefixedClassGroup];
|
|
192
|
+
});
|
|
193
|
+
};
|
|
194
|
+
var createLruCache = (maxCacheSize) => {
|
|
195
|
+
if (maxCacheSize < 1) {
|
|
196
|
+
return {
|
|
197
|
+
get: () => void 0,
|
|
198
|
+
set: () => {
|
|
199
|
+
}
|
|
200
|
+
};
|
|
201
|
+
}
|
|
202
|
+
let cacheSize = 0;
|
|
203
|
+
let cache = /* @__PURE__ */ new Map();
|
|
204
|
+
let previousCache = /* @__PURE__ */ new Map();
|
|
205
|
+
const update = (key, value) => {
|
|
206
|
+
cache.set(key, value);
|
|
207
|
+
cacheSize++;
|
|
208
|
+
if (cacheSize > maxCacheSize) {
|
|
209
|
+
cacheSize = 0;
|
|
210
|
+
previousCache = cache;
|
|
211
|
+
cache = /* @__PURE__ */ new Map();
|
|
212
|
+
}
|
|
213
|
+
};
|
|
214
|
+
return {
|
|
215
|
+
get(key) {
|
|
216
|
+
let value = cache.get(key);
|
|
217
|
+
if (value !== void 0) {
|
|
218
|
+
return value;
|
|
219
|
+
}
|
|
220
|
+
if ((value = previousCache.get(key)) !== void 0) {
|
|
221
|
+
update(key, value);
|
|
222
|
+
return value;
|
|
223
|
+
}
|
|
224
|
+
},
|
|
225
|
+
set(key, value) {
|
|
226
|
+
if (cache.has(key)) {
|
|
227
|
+
cache.set(key, value);
|
|
228
|
+
} else {
|
|
229
|
+
update(key, value);
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
};
|
|
233
|
+
};
|
|
234
|
+
var IMPORTANT_MODIFIER = "!";
|
|
235
|
+
var createParseClassName = (config) => {
|
|
236
|
+
const {
|
|
237
|
+
separator,
|
|
238
|
+
experimentalParseClassName
|
|
239
|
+
} = config;
|
|
240
|
+
const isSeparatorSingleCharacter = separator.length === 1;
|
|
241
|
+
const firstSeparatorCharacter = separator[0];
|
|
242
|
+
const separatorLength = separator.length;
|
|
243
|
+
const parseClassName = (className) => {
|
|
244
|
+
const modifiers = [];
|
|
245
|
+
let bracketDepth = 0;
|
|
246
|
+
let modifierStart = 0;
|
|
247
|
+
let postfixModifierPosition;
|
|
248
|
+
for (let index = 0; index < className.length; index++) {
|
|
249
|
+
let currentCharacter = className[index];
|
|
250
|
+
if (bracketDepth === 0) {
|
|
251
|
+
if (currentCharacter === firstSeparatorCharacter && (isSeparatorSingleCharacter || className.slice(index, index + separatorLength) === separator)) {
|
|
252
|
+
modifiers.push(className.slice(modifierStart, index));
|
|
253
|
+
modifierStart = index + separatorLength;
|
|
254
|
+
continue;
|
|
255
|
+
}
|
|
256
|
+
if (currentCharacter === "/") {
|
|
257
|
+
postfixModifierPosition = index;
|
|
258
|
+
continue;
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
if (currentCharacter === "[") {
|
|
262
|
+
bracketDepth++;
|
|
263
|
+
} else if (currentCharacter === "]") {
|
|
264
|
+
bracketDepth--;
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
const baseClassNameWithImportantModifier = modifiers.length === 0 ? className : className.substring(modifierStart);
|
|
268
|
+
const hasImportantModifier = baseClassNameWithImportantModifier.startsWith(IMPORTANT_MODIFIER);
|
|
269
|
+
const baseClassName = hasImportantModifier ? baseClassNameWithImportantModifier.substring(1) : baseClassNameWithImportantModifier;
|
|
270
|
+
const maybePostfixModifierPosition = postfixModifierPosition && postfixModifierPosition > modifierStart ? postfixModifierPosition - modifierStart : void 0;
|
|
271
|
+
return {
|
|
272
|
+
modifiers,
|
|
273
|
+
hasImportantModifier,
|
|
274
|
+
baseClassName,
|
|
275
|
+
maybePostfixModifierPosition
|
|
276
|
+
};
|
|
277
|
+
};
|
|
278
|
+
if (experimentalParseClassName) {
|
|
279
|
+
return (className) => experimentalParseClassName({
|
|
280
|
+
className,
|
|
281
|
+
parseClassName
|
|
282
|
+
});
|
|
283
|
+
}
|
|
284
|
+
return parseClassName;
|
|
285
|
+
};
|
|
286
|
+
var sortModifiers = (modifiers) => {
|
|
287
|
+
if (modifiers.length <= 1) {
|
|
288
|
+
return modifiers;
|
|
289
|
+
}
|
|
290
|
+
const sortedModifiers = [];
|
|
291
|
+
let unsortedModifiers = [];
|
|
292
|
+
modifiers.forEach((modifier) => {
|
|
293
|
+
const isArbitraryVariant = modifier[0] === "[";
|
|
294
|
+
if (isArbitraryVariant) {
|
|
295
|
+
sortedModifiers.push(...unsortedModifiers.sort(), modifier);
|
|
296
|
+
unsortedModifiers = [];
|
|
297
|
+
} else {
|
|
298
|
+
unsortedModifiers.push(modifier);
|
|
299
|
+
}
|
|
300
|
+
});
|
|
301
|
+
sortedModifiers.push(...unsortedModifiers.sort());
|
|
302
|
+
return sortedModifiers;
|
|
303
|
+
};
|
|
304
|
+
var createConfigUtils = (config) => ({
|
|
305
|
+
cache: createLruCache(config.cacheSize),
|
|
306
|
+
parseClassName: createParseClassName(config),
|
|
307
|
+
...createClassGroupUtils(config)
|
|
308
|
+
});
|
|
309
|
+
var SPLIT_CLASSES_REGEX = /\s+/;
|
|
310
|
+
var mergeClassList = (classList, configUtils) => {
|
|
311
|
+
const {
|
|
312
|
+
parseClassName,
|
|
313
|
+
getClassGroupId,
|
|
314
|
+
getConflictingClassGroupIds
|
|
315
|
+
} = configUtils;
|
|
316
|
+
const classGroupsInConflict = [];
|
|
317
|
+
const classNames2 = classList.trim().split(SPLIT_CLASSES_REGEX);
|
|
318
|
+
let result = "";
|
|
319
|
+
for (let index = classNames2.length - 1; index >= 0; index -= 1) {
|
|
320
|
+
const originalClassName = classNames2[index];
|
|
321
|
+
const {
|
|
322
|
+
modifiers,
|
|
323
|
+
hasImportantModifier,
|
|
324
|
+
baseClassName,
|
|
325
|
+
maybePostfixModifierPosition
|
|
326
|
+
} = parseClassName(originalClassName);
|
|
327
|
+
let hasPostfixModifier = Boolean(maybePostfixModifierPosition);
|
|
328
|
+
let classGroupId = getClassGroupId(hasPostfixModifier ? baseClassName.substring(0, maybePostfixModifierPosition) : baseClassName);
|
|
329
|
+
if (!classGroupId) {
|
|
330
|
+
if (!hasPostfixModifier) {
|
|
331
|
+
result = originalClassName + (result.length > 0 ? " " + result : result);
|
|
332
|
+
continue;
|
|
333
|
+
}
|
|
334
|
+
classGroupId = getClassGroupId(baseClassName);
|
|
335
|
+
if (!classGroupId) {
|
|
336
|
+
result = originalClassName + (result.length > 0 ? " " + result : result);
|
|
337
|
+
continue;
|
|
338
|
+
}
|
|
339
|
+
hasPostfixModifier = false;
|
|
340
|
+
}
|
|
341
|
+
const variantModifier = sortModifiers(modifiers).join(":");
|
|
342
|
+
const modifierId = hasImportantModifier ? variantModifier + IMPORTANT_MODIFIER : variantModifier;
|
|
343
|
+
const classId = modifierId + classGroupId;
|
|
344
|
+
if (classGroupsInConflict.includes(classId)) {
|
|
345
|
+
continue;
|
|
346
|
+
}
|
|
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);
|
|
352
|
+
}
|
|
353
|
+
result = originalClassName + (result.length > 0 ? " " + result : result);
|
|
354
|
+
}
|
|
355
|
+
return result;
|
|
356
|
+
};
|
|
357
|
+
function twJoin() {
|
|
358
|
+
let index = 0;
|
|
359
|
+
let argument;
|
|
360
|
+
let resolvedValue;
|
|
361
|
+
let string = "";
|
|
362
|
+
while (index < arguments.length) {
|
|
363
|
+
if (argument = arguments[index++]) {
|
|
364
|
+
if (resolvedValue = toValue(argument)) {
|
|
365
|
+
string && (string += " ");
|
|
366
|
+
string += resolvedValue;
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
return string;
|
|
371
|
+
}
|
|
372
|
+
var toValue = (mix) => {
|
|
373
|
+
if (typeof mix === "string") {
|
|
374
|
+
return mix;
|
|
375
|
+
}
|
|
376
|
+
let resolvedValue;
|
|
377
|
+
let string = "";
|
|
378
|
+
for (let k = 0; k < mix.length; k++) {
|
|
379
|
+
if (mix[k]) {
|
|
380
|
+
if (resolvedValue = toValue(mix[k])) {
|
|
381
|
+
string && (string += " ");
|
|
382
|
+
string += resolvedValue;
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
return string;
|
|
387
|
+
};
|
|
388
|
+
function createTailwindMerge(createConfigFirst, ...createConfigRest) {
|
|
389
|
+
let configUtils;
|
|
390
|
+
let cacheGet;
|
|
391
|
+
let cacheSet;
|
|
392
|
+
let functionToCall = initTailwindMerge;
|
|
393
|
+
function initTailwindMerge(classList) {
|
|
394
|
+
const config = createConfigRest.reduce((previousConfig, createConfigCurrent) => createConfigCurrent(previousConfig), createConfigFirst());
|
|
395
|
+
configUtils = createConfigUtils(config);
|
|
396
|
+
cacheGet = configUtils.cache.get;
|
|
397
|
+
cacheSet = configUtils.cache.set;
|
|
398
|
+
functionToCall = tailwindMerge;
|
|
399
|
+
return tailwindMerge(classList);
|
|
400
|
+
}
|
|
401
|
+
function tailwindMerge(classList) {
|
|
402
|
+
const cachedResult = cacheGet(classList);
|
|
403
|
+
if (cachedResult) {
|
|
404
|
+
return cachedResult;
|
|
405
|
+
}
|
|
406
|
+
const result = mergeClassList(classList, configUtils);
|
|
407
|
+
cacheSet(classList, result);
|
|
408
|
+
return result;
|
|
409
|
+
}
|
|
410
|
+
return function callTailwindMerge() {
|
|
411
|
+
return functionToCall(twJoin.apply(null, arguments));
|
|
412
|
+
};
|
|
413
|
+
}
|
|
414
|
+
var fromTheme = (key) => {
|
|
415
|
+
const themeGetter = (theme) => theme[key] || [];
|
|
416
|
+
themeGetter.isThemeGetter = true;
|
|
417
|
+
return themeGetter;
|
|
418
|
+
};
|
|
419
|
+
var arbitraryValueRegex = /^\[(?:([a-z-]+):)?(.+)\]$/i;
|
|
420
|
+
var fractionRegex = /^\d+\/\d+$/;
|
|
421
|
+
var stringLengths = /* @__PURE__ */ new Set(["px", "full", "screen"]);
|
|
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 isLength = (value) => isNumber(value) || stringLengths.has(value) || fractionRegex.test(value);
|
|
428
|
+
var isArbitraryLength = (value) => getIsArbitraryValue(value, "length", isLengthOnly);
|
|
429
|
+
var isNumber = (value) => Boolean(value) && !Number.isNaN(Number(value));
|
|
430
|
+
var isArbitraryNumber = (value) => getIsArbitraryValue(value, "number", isNumber);
|
|
431
|
+
var isInteger = (value) => Boolean(value) && Number.isInteger(Number(value));
|
|
432
|
+
var isPercent = (value) => value.endsWith("%") && isNumber(value.slice(0, -1));
|
|
433
|
+
var isArbitraryValue = (value) => arbitraryValueRegex.test(value);
|
|
434
|
+
var isTshirtSize = (value) => tshirtUnitRegex.test(value);
|
|
435
|
+
var sizeLabels = /* @__PURE__ */ new Set(["length", "size", "percentage"]);
|
|
436
|
+
var isArbitrarySize = (value) => getIsArbitraryValue(value, sizeLabels, isNever);
|
|
437
|
+
var isArbitraryPosition = (value) => getIsArbitraryValue(value, "position", isNever);
|
|
438
|
+
var imageLabels = /* @__PURE__ */ new Set(["image", "url"]);
|
|
439
|
+
var isArbitraryImage = (value) => getIsArbitraryValue(value, imageLabels, isImage);
|
|
440
|
+
var isArbitraryShadow = (value) => getIsArbitraryValue(value, "", isShadow);
|
|
441
|
+
var isAny = () => true;
|
|
442
|
+
var getIsArbitraryValue = (value, label, testValue) => {
|
|
443
|
+
const result = arbitraryValueRegex.exec(value);
|
|
444
|
+
if (result) {
|
|
445
|
+
if (result[1]) {
|
|
446
|
+
return typeof label === "string" ? result[1] === label : label.has(result[1]);
|
|
447
|
+
}
|
|
448
|
+
return testValue(result[2]);
|
|
449
|
+
}
|
|
450
|
+
return false;
|
|
451
|
+
};
|
|
452
|
+
var isLengthOnly = (value) => (
|
|
453
|
+
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
454
|
+
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
455
|
+
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
456
|
+
lengthUnitRegex.test(value) && !colorFunctionRegex.test(value)
|
|
457
|
+
);
|
|
458
|
+
var isNever = () => false;
|
|
459
|
+
var isShadow = (value) => shadowRegex.test(value);
|
|
460
|
+
var isImage = (value) => imageRegex.test(value);
|
|
461
|
+
var getDefaultConfig = () => {
|
|
462
|
+
const colors = fromTheme("colors");
|
|
463
|
+
const spacing = fromTheme("spacing");
|
|
464
|
+
const blur = fromTheme("blur");
|
|
465
|
+
const brightness = fromTheme("brightness");
|
|
466
|
+
const borderColor = fromTheme("borderColor");
|
|
467
|
+
const borderRadius = fromTheme("borderRadius");
|
|
468
|
+
const borderSpacing = fromTheme("borderSpacing");
|
|
469
|
+
const borderWidth = fromTheme("borderWidth");
|
|
470
|
+
const contrast = fromTheme("contrast");
|
|
471
|
+
const grayscale = fromTheme("grayscale");
|
|
472
|
+
const hueRotate = fromTheme("hueRotate");
|
|
473
|
+
const invert = fromTheme("invert");
|
|
474
|
+
const gap = fromTheme("gap");
|
|
475
|
+
const gradientColorStops = fromTheme("gradientColorStops");
|
|
476
|
+
const gradientColorStopPositions = fromTheme("gradientColorStopPositions");
|
|
477
|
+
const inset = fromTheme("inset");
|
|
478
|
+
const margin = fromTheme("margin");
|
|
479
|
+
const opacity = fromTheme("opacity");
|
|
480
|
+
const padding = fromTheme("padding");
|
|
481
|
+
const saturate = fromTheme("saturate");
|
|
482
|
+
const scale = fromTheme("scale");
|
|
483
|
+
const sepia = fromTheme("sepia");
|
|
484
|
+
const skew = fromTheme("skew");
|
|
485
|
+
const space = fromTheme("space");
|
|
486
|
+
const translate = fromTheme("translate");
|
|
487
|
+
const getOverscroll = () => ["auto", "contain", "none"];
|
|
488
|
+
const getOverflow = () => ["auto", "hidden", "clip", "visible", "scroll"];
|
|
489
|
+
const getSpacingWithAutoAndArbitrary = () => ["auto", isArbitraryValue, spacing];
|
|
490
|
+
const getSpacingWithArbitrary = () => [isArbitraryValue, spacing];
|
|
491
|
+
const getLengthWithEmptyAndArbitrary = () => ["", isLength, isArbitraryLength];
|
|
492
|
+
const getNumberWithAutoAndArbitrary = () => ["auto", isNumber, isArbitraryValue];
|
|
493
|
+
const getPositions = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"];
|
|
494
|
+
const getLineStyles = () => ["solid", "dashed", "dotted", "double", "none"];
|
|
495
|
+
const getBlendModes = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"];
|
|
496
|
+
const getAlign = () => ["start", "end", "center", "between", "around", "evenly", "stretch"];
|
|
497
|
+
const getZeroAndEmpty = () => ["", "0", isArbitraryValue];
|
|
498
|
+
const getBreaks = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"];
|
|
499
|
+
const getNumberAndArbitrary = () => [isNumber, isArbitraryValue];
|
|
500
|
+
return {
|
|
501
|
+
cacheSize: 500,
|
|
502
|
+
separator: ":",
|
|
503
|
+
theme: {
|
|
504
|
+
colors: [isAny],
|
|
505
|
+
spacing: [isLength, isArbitraryLength],
|
|
506
|
+
blur: ["none", "", isTshirtSize, isArbitraryValue],
|
|
507
|
+
brightness: getNumberAndArbitrary(),
|
|
508
|
+
borderColor: [colors],
|
|
509
|
+
borderRadius: ["none", "", "full", isTshirtSize, isArbitraryValue],
|
|
510
|
+
borderSpacing: getSpacingWithArbitrary(),
|
|
511
|
+
borderWidth: getLengthWithEmptyAndArbitrary(),
|
|
512
|
+
contrast: getNumberAndArbitrary(),
|
|
513
|
+
grayscale: getZeroAndEmpty(),
|
|
514
|
+
hueRotate: getNumberAndArbitrary(),
|
|
515
|
+
invert: getZeroAndEmpty(),
|
|
516
|
+
gap: getSpacingWithArbitrary(),
|
|
517
|
+
gradientColorStops: [colors],
|
|
518
|
+
gradientColorStopPositions: [isPercent, isArbitraryLength],
|
|
519
|
+
inset: getSpacingWithAutoAndArbitrary(),
|
|
520
|
+
margin: getSpacingWithAutoAndArbitrary(),
|
|
521
|
+
opacity: getNumberAndArbitrary(),
|
|
522
|
+
padding: getSpacingWithArbitrary(),
|
|
523
|
+
saturate: getNumberAndArbitrary(),
|
|
524
|
+
scale: getNumberAndArbitrary(),
|
|
525
|
+
sepia: getZeroAndEmpty(),
|
|
526
|
+
skew: getNumberAndArbitrary(),
|
|
527
|
+
space: getSpacingWithArbitrary(),
|
|
528
|
+
translate: getSpacingWithArbitrary()
|
|
529
|
+
},
|
|
530
|
+
classGroups: {
|
|
531
|
+
// Layout
|
|
532
|
+
/**
|
|
533
|
+
* Aspect Ratio
|
|
534
|
+
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
535
|
+
*/
|
|
536
|
+
aspect: [{
|
|
537
|
+
aspect: ["auto", "square", "video", isArbitraryValue]
|
|
538
|
+
}],
|
|
539
|
+
/**
|
|
540
|
+
* Container
|
|
541
|
+
* @see https://tailwindcss.com/docs/container
|
|
542
|
+
*/
|
|
543
|
+
container: ["container"],
|
|
544
|
+
/**
|
|
545
|
+
* Columns
|
|
546
|
+
* @see https://tailwindcss.com/docs/columns
|
|
547
|
+
*/
|
|
548
|
+
columns: [{
|
|
549
|
+
columns: [isTshirtSize]
|
|
550
|
+
}],
|
|
551
|
+
/**
|
|
552
|
+
* Break After
|
|
553
|
+
* @see https://tailwindcss.com/docs/break-after
|
|
554
|
+
*/
|
|
555
|
+
"break-after": [{
|
|
556
|
+
"break-after": getBreaks()
|
|
557
|
+
}],
|
|
558
|
+
/**
|
|
559
|
+
* Break Before
|
|
560
|
+
* @see https://tailwindcss.com/docs/break-before
|
|
561
|
+
*/
|
|
562
|
+
"break-before": [{
|
|
563
|
+
"break-before": getBreaks()
|
|
564
|
+
}],
|
|
565
|
+
/**
|
|
566
|
+
* Break Inside
|
|
567
|
+
* @see https://tailwindcss.com/docs/break-inside
|
|
568
|
+
*/
|
|
569
|
+
"break-inside": [{
|
|
570
|
+
"break-inside": ["auto", "avoid", "avoid-page", "avoid-column"]
|
|
571
|
+
}],
|
|
572
|
+
/**
|
|
573
|
+
* Box Decoration Break
|
|
574
|
+
* @see https://tailwindcss.com/docs/box-decoration-break
|
|
575
|
+
*/
|
|
576
|
+
"box-decoration": [{
|
|
577
|
+
"box-decoration": ["slice", "clone"]
|
|
578
|
+
}],
|
|
579
|
+
/**
|
|
580
|
+
* Box Sizing
|
|
581
|
+
* @see https://tailwindcss.com/docs/box-sizing
|
|
582
|
+
*/
|
|
583
|
+
box: [{
|
|
584
|
+
box: ["border", "content"]
|
|
585
|
+
}],
|
|
586
|
+
/**
|
|
587
|
+
* Display
|
|
588
|
+
* @see https://tailwindcss.com/docs/display
|
|
589
|
+
*/
|
|
590
|
+
display: ["block", "inline-block", "inline", "flex", "inline-flex", "table", "inline-table", "table-caption", "table-cell", "table-column", "table-column-group", "table-footer-group", "table-header-group", "table-row-group", "table-row", "flow-root", "grid", "inline-grid", "contents", "list-item", "hidden"],
|
|
591
|
+
/**
|
|
592
|
+
* Floats
|
|
593
|
+
* @see https://tailwindcss.com/docs/float
|
|
594
|
+
*/
|
|
595
|
+
float: [{
|
|
596
|
+
float: ["right", "left", "none", "start", "end"]
|
|
597
|
+
}],
|
|
598
|
+
/**
|
|
599
|
+
* Clear
|
|
600
|
+
* @see https://tailwindcss.com/docs/clear
|
|
601
|
+
*/
|
|
602
|
+
clear: [{
|
|
603
|
+
clear: ["left", "right", "both", "none", "start", "end"]
|
|
604
|
+
}],
|
|
605
|
+
/**
|
|
606
|
+
* Isolation
|
|
607
|
+
* @see https://tailwindcss.com/docs/isolation
|
|
608
|
+
*/
|
|
609
|
+
isolation: ["isolate", "isolation-auto"],
|
|
610
|
+
/**
|
|
611
|
+
* Object Fit
|
|
612
|
+
* @see https://tailwindcss.com/docs/object-fit
|
|
613
|
+
*/
|
|
614
|
+
"object-fit": [{
|
|
615
|
+
object: ["contain", "cover", "fill", "none", "scale-down"]
|
|
616
|
+
}],
|
|
617
|
+
/**
|
|
618
|
+
* Object Position
|
|
619
|
+
* @see https://tailwindcss.com/docs/object-position
|
|
620
|
+
*/
|
|
621
|
+
"object-position": [{
|
|
622
|
+
object: [...getPositions(), isArbitraryValue]
|
|
623
|
+
}],
|
|
624
|
+
/**
|
|
625
|
+
* Overflow
|
|
626
|
+
* @see https://tailwindcss.com/docs/overflow
|
|
627
|
+
*/
|
|
628
|
+
overflow: [{
|
|
629
|
+
overflow: getOverflow()
|
|
630
|
+
}],
|
|
631
|
+
/**
|
|
632
|
+
* Overflow X
|
|
633
|
+
* @see https://tailwindcss.com/docs/overflow
|
|
634
|
+
*/
|
|
635
|
+
"overflow-x": [{
|
|
636
|
+
"overflow-x": getOverflow()
|
|
637
|
+
}],
|
|
638
|
+
/**
|
|
639
|
+
* Overflow Y
|
|
640
|
+
* @see https://tailwindcss.com/docs/overflow
|
|
641
|
+
*/
|
|
642
|
+
"overflow-y": [{
|
|
643
|
+
"overflow-y": getOverflow()
|
|
644
|
+
}],
|
|
645
|
+
/**
|
|
646
|
+
* Overscroll Behavior
|
|
647
|
+
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
648
|
+
*/
|
|
649
|
+
overscroll: [{
|
|
650
|
+
overscroll: getOverscroll()
|
|
651
|
+
}],
|
|
652
|
+
/**
|
|
653
|
+
* Overscroll Behavior X
|
|
654
|
+
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
655
|
+
*/
|
|
656
|
+
"overscroll-x": [{
|
|
657
|
+
"overscroll-x": getOverscroll()
|
|
658
|
+
}],
|
|
659
|
+
/**
|
|
660
|
+
* Overscroll Behavior Y
|
|
661
|
+
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
662
|
+
*/
|
|
663
|
+
"overscroll-y": [{
|
|
664
|
+
"overscroll-y": getOverscroll()
|
|
665
|
+
}],
|
|
666
|
+
/**
|
|
667
|
+
* Position
|
|
668
|
+
* @see https://tailwindcss.com/docs/position
|
|
669
|
+
*/
|
|
670
|
+
position: ["static", "fixed", "absolute", "relative", "sticky"],
|
|
671
|
+
/**
|
|
672
|
+
* Top / Right / Bottom / Left
|
|
673
|
+
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
674
|
+
*/
|
|
675
|
+
inset: [{
|
|
676
|
+
inset: [inset]
|
|
677
|
+
}],
|
|
678
|
+
/**
|
|
679
|
+
* Right / Left
|
|
680
|
+
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
681
|
+
*/
|
|
682
|
+
"inset-x": [{
|
|
683
|
+
"inset-x": [inset]
|
|
684
|
+
}],
|
|
685
|
+
/**
|
|
686
|
+
* Top / Bottom
|
|
687
|
+
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
688
|
+
*/
|
|
689
|
+
"inset-y": [{
|
|
690
|
+
"inset-y": [inset]
|
|
691
|
+
}],
|
|
692
|
+
/**
|
|
693
|
+
* Start
|
|
694
|
+
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
695
|
+
*/
|
|
696
|
+
start: [{
|
|
697
|
+
start: [inset]
|
|
698
|
+
}],
|
|
699
|
+
/**
|
|
700
|
+
* End
|
|
701
|
+
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
702
|
+
*/
|
|
703
|
+
end: [{
|
|
704
|
+
end: [inset]
|
|
705
|
+
}],
|
|
706
|
+
/**
|
|
707
|
+
* Top
|
|
708
|
+
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
709
|
+
*/
|
|
710
|
+
top: [{
|
|
711
|
+
top: [inset]
|
|
712
|
+
}],
|
|
713
|
+
/**
|
|
714
|
+
* Right
|
|
715
|
+
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
716
|
+
*/
|
|
717
|
+
right: [{
|
|
718
|
+
right: [inset]
|
|
719
|
+
}],
|
|
720
|
+
/**
|
|
721
|
+
* Bottom
|
|
722
|
+
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
723
|
+
*/
|
|
724
|
+
bottom: [{
|
|
725
|
+
bottom: [inset]
|
|
726
|
+
}],
|
|
727
|
+
/**
|
|
728
|
+
* Left
|
|
729
|
+
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
730
|
+
*/
|
|
731
|
+
left: [{
|
|
732
|
+
left: [inset]
|
|
733
|
+
}],
|
|
734
|
+
/**
|
|
735
|
+
* Visibility
|
|
736
|
+
* @see https://tailwindcss.com/docs/visibility
|
|
737
|
+
*/
|
|
738
|
+
visibility: ["visible", "invisible", "collapse"],
|
|
739
|
+
/**
|
|
740
|
+
* Z-Index
|
|
741
|
+
* @see https://tailwindcss.com/docs/z-index
|
|
742
|
+
*/
|
|
743
|
+
z: [{
|
|
744
|
+
z: ["auto", isInteger, isArbitraryValue]
|
|
745
|
+
}],
|
|
746
|
+
// Flexbox and Grid
|
|
747
|
+
/**
|
|
748
|
+
* Flex Basis
|
|
749
|
+
* @see https://tailwindcss.com/docs/flex-basis
|
|
750
|
+
*/
|
|
751
|
+
basis: [{
|
|
752
|
+
basis: getSpacingWithAutoAndArbitrary()
|
|
753
|
+
}],
|
|
754
|
+
/**
|
|
755
|
+
* Flex Direction
|
|
756
|
+
* @see https://tailwindcss.com/docs/flex-direction
|
|
757
|
+
*/
|
|
758
|
+
"flex-direction": [{
|
|
759
|
+
flex: ["row", "row-reverse", "col", "col-reverse"]
|
|
760
|
+
}],
|
|
761
|
+
/**
|
|
762
|
+
* Flex Wrap
|
|
763
|
+
* @see https://tailwindcss.com/docs/flex-wrap
|
|
764
|
+
*/
|
|
765
|
+
"flex-wrap": [{
|
|
766
|
+
flex: ["wrap", "wrap-reverse", "nowrap"]
|
|
767
|
+
}],
|
|
768
|
+
/**
|
|
769
|
+
* Flex
|
|
770
|
+
* @see https://tailwindcss.com/docs/flex
|
|
771
|
+
*/
|
|
772
|
+
flex: [{
|
|
773
|
+
flex: ["1", "auto", "initial", "none", isArbitraryValue]
|
|
774
|
+
}],
|
|
775
|
+
/**
|
|
776
|
+
* Flex Grow
|
|
777
|
+
* @see https://tailwindcss.com/docs/flex-grow
|
|
778
|
+
*/
|
|
779
|
+
grow: [{
|
|
780
|
+
grow: getZeroAndEmpty()
|
|
781
|
+
}],
|
|
782
|
+
/**
|
|
783
|
+
* Flex Shrink
|
|
784
|
+
* @see https://tailwindcss.com/docs/flex-shrink
|
|
785
|
+
*/
|
|
786
|
+
shrink: [{
|
|
787
|
+
shrink: getZeroAndEmpty()
|
|
788
|
+
}],
|
|
789
|
+
/**
|
|
790
|
+
* Order
|
|
791
|
+
* @see https://tailwindcss.com/docs/order
|
|
792
|
+
*/
|
|
793
|
+
order: [{
|
|
794
|
+
order: ["first", "last", "none", isInteger, isArbitraryValue]
|
|
795
|
+
}],
|
|
796
|
+
/**
|
|
797
|
+
* Grid Template Columns
|
|
798
|
+
* @see https://tailwindcss.com/docs/grid-template-columns
|
|
799
|
+
*/
|
|
800
|
+
"grid-cols": [{
|
|
801
|
+
"grid-cols": [isAny]
|
|
802
|
+
}],
|
|
803
|
+
/**
|
|
804
|
+
* Grid Column Start / End
|
|
805
|
+
* @see https://tailwindcss.com/docs/grid-column
|
|
806
|
+
*/
|
|
807
|
+
"col-start-end": [{
|
|
808
|
+
col: ["auto", {
|
|
809
|
+
span: ["full", isInteger, isArbitraryValue]
|
|
810
|
+
}, isArbitraryValue]
|
|
811
|
+
}],
|
|
812
|
+
/**
|
|
813
|
+
* Grid Column Start
|
|
814
|
+
* @see https://tailwindcss.com/docs/grid-column
|
|
815
|
+
*/
|
|
816
|
+
"col-start": [{
|
|
817
|
+
"col-start": getNumberWithAutoAndArbitrary()
|
|
818
|
+
}],
|
|
819
|
+
/**
|
|
820
|
+
* Grid Column End
|
|
821
|
+
* @see https://tailwindcss.com/docs/grid-column
|
|
822
|
+
*/
|
|
823
|
+
"col-end": [{
|
|
824
|
+
"col-end": getNumberWithAutoAndArbitrary()
|
|
825
|
+
}],
|
|
826
|
+
/**
|
|
827
|
+
* Grid Template Rows
|
|
828
|
+
* @see https://tailwindcss.com/docs/grid-template-rows
|
|
829
|
+
*/
|
|
830
|
+
"grid-rows": [{
|
|
831
|
+
"grid-rows": [isAny]
|
|
832
|
+
}],
|
|
833
|
+
/**
|
|
834
|
+
* Grid Row Start / End
|
|
835
|
+
* @see https://tailwindcss.com/docs/grid-row
|
|
836
|
+
*/
|
|
837
|
+
"row-start-end": [{
|
|
838
|
+
row: ["auto", {
|
|
839
|
+
span: [isInteger, isArbitraryValue]
|
|
840
|
+
}, isArbitraryValue]
|
|
841
|
+
}],
|
|
842
|
+
/**
|
|
843
|
+
* Grid Row Start
|
|
844
|
+
* @see https://tailwindcss.com/docs/grid-row
|
|
845
|
+
*/
|
|
846
|
+
"row-start": [{
|
|
847
|
+
"row-start": getNumberWithAutoAndArbitrary()
|
|
848
|
+
}],
|
|
849
|
+
/**
|
|
850
|
+
* Grid Row End
|
|
851
|
+
* @see https://tailwindcss.com/docs/grid-row
|
|
852
|
+
*/
|
|
853
|
+
"row-end": [{
|
|
854
|
+
"row-end": getNumberWithAutoAndArbitrary()
|
|
855
|
+
}],
|
|
856
|
+
/**
|
|
857
|
+
* Grid Auto Flow
|
|
858
|
+
* @see https://tailwindcss.com/docs/grid-auto-flow
|
|
859
|
+
*/
|
|
860
|
+
"grid-flow": [{
|
|
861
|
+
"grid-flow": ["row", "col", "dense", "row-dense", "col-dense"]
|
|
862
|
+
}],
|
|
863
|
+
/**
|
|
864
|
+
* Grid Auto Columns
|
|
865
|
+
* @see https://tailwindcss.com/docs/grid-auto-columns
|
|
866
|
+
*/
|
|
867
|
+
"auto-cols": [{
|
|
868
|
+
"auto-cols": ["auto", "min", "max", "fr", isArbitraryValue]
|
|
869
|
+
}],
|
|
870
|
+
/**
|
|
871
|
+
* Grid Auto Rows
|
|
872
|
+
* @see https://tailwindcss.com/docs/grid-auto-rows
|
|
873
|
+
*/
|
|
874
|
+
"auto-rows": [{
|
|
875
|
+
"auto-rows": ["auto", "min", "max", "fr", isArbitraryValue]
|
|
876
|
+
}],
|
|
877
|
+
/**
|
|
878
|
+
* Gap
|
|
879
|
+
* @see https://tailwindcss.com/docs/gap
|
|
880
|
+
*/
|
|
881
|
+
gap: [{
|
|
882
|
+
gap: [gap]
|
|
883
|
+
}],
|
|
884
|
+
/**
|
|
885
|
+
* Gap X
|
|
886
|
+
* @see https://tailwindcss.com/docs/gap
|
|
887
|
+
*/
|
|
888
|
+
"gap-x": [{
|
|
889
|
+
"gap-x": [gap]
|
|
890
|
+
}],
|
|
891
|
+
/**
|
|
892
|
+
* Gap Y
|
|
893
|
+
* @see https://tailwindcss.com/docs/gap
|
|
894
|
+
*/
|
|
895
|
+
"gap-y": [{
|
|
896
|
+
"gap-y": [gap]
|
|
897
|
+
}],
|
|
898
|
+
/**
|
|
899
|
+
* Justify Content
|
|
900
|
+
* @see https://tailwindcss.com/docs/justify-content
|
|
901
|
+
*/
|
|
902
|
+
"justify-content": [{
|
|
903
|
+
justify: ["normal", ...getAlign()]
|
|
904
|
+
}],
|
|
905
|
+
/**
|
|
906
|
+
* Justify Items
|
|
907
|
+
* @see https://tailwindcss.com/docs/justify-items
|
|
908
|
+
*/
|
|
909
|
+
"justify-items": [{
|
|
910
|
+
"justify-items": ["start", "end", "center", "stretch"]
|
|
911
|
+
}],
|
|
912
|
+
/**
|
|
913
|
+
* Justify Self
|
|
914
|
+
* @see https://tailwindcss.com/docs/justify-self
|
|
915
|
+
*/
|
|
916
|
+
"justify-self": [{
|
|
917
|
+
"justify-self": ["auto", "start", "end", "center", "stretch"]
|
|
918
|
+
}],
|
|
919
|
+
/**
|
|
920
|
+
* Align Content
|
|
921
|
+
* @see https://tailwindcss.com/docs/align-content
|
|
922
|
+
*/
|
|
923
|
+
"align-content": [{
|
|
924
|
+
content: ["normal", ...getAlign(), "baseline"]
|
|
925
|
+
}],
|
|
926
|
+
/**
|
|
927
|
+
* Align Items
|
|
928
|
+
* @see https://tailwindcss.com/docs/align-items
|
|
929
|
+
*/
|
|
930
|
+
"align-items": [{
|
|
931
|
+
items: ["start", "end", "center", "baseline", "stretch"]
|
|
932
|
+
}],
|
|
933
|
+
/**
|
|
934
|
+
* Align Self
|
|
935
|
+
* @see https://tailwindcss.com/docs/align-self
|
|
936
|
+
*/
|
|
937
|
+
"align-self": [{
|
|
938
|
+
self: ["auto", "start", "end", "center", "stretch", "baseline"]
|
|
939
|
+
}],
|
|
940
|
+
/**
|
|
941
|
+
* Place Content
|
|
942
|
+
* @see https://tailwindcss.com/docs/place-content
|
|
943
|
+
*/
|
|
944
|
+
"place-content": [{
|
|
945
|
+
"place-content": [...getAlign(), "baseline"]
|
|
946
|
+
}],
|
|
947
|
+
/**
|
|
948
|
+
* Place Items
|
|
949
|
+
* @see https://tailwindcss.com/docs/place-items
|
|
950
|
+
*/
|
|
951
|
+
"place-items": [{
|
|
952
|
+
"place-items": ["start", "end", "center", "baseline", "stretch"]
|
|
953
|
+
}],
|
|
954
|
+
/**
|
|
955
|
+
* Place Self
|
|
956
|
+
* @see https://tailwindcss.com/docs/place-self
|
|
957
|
+
*/
|
|
958
|
+
"place-self": [{
|
|
959
|
+
"place-self": ["auto", "start", "end", "center", "stretch"]
|
|
960
|
+
}],
|
|
961
|
+
// Spacing
|
|
962
|
+
/**
|
|
963
|
+
* Padding
|
|
964
|
+
* @see https://tailwindcss.com/docs/padding
|
|
965
|
+
*/
|
|
966
|
+
p: [{
|
|
967
|
+
p: [padding]
|
|
968
|
+
}],
|
|
969
|
+
/**
|
|
970
|
+
* Padding X
|
|
971
|
+
* @see https://tailwindcss.com/docs/padding
|
|
972
|
+
*/
|
|
973
|
+
px: [{
|
|
974
|
+
px: [padding]
|
|
975
|
+
}],
|
|
976
|
+
/**
|
|
977
|
+
* Padding Y
|
|
978
|
+
* @see https://tailwindcss.com/docs/padding
|
|
979
|
+
*/
|
|
980
|
+
py: [{
|
|
981
|
+
py: [padding]
|
|
982
|
+
}],
|
|
983
|
+
/**
|
|
984
|
+
* Padding Start
|
|
985
|
+
* @see https://tailwindcss.com/docs/padding
|
|
986
|
+
*/
|
|
987
|
+
ps: [{
|
|
988
|
+
ps: [padding]
|
|
989
|
+
}],
|
|
990
|
+
/**
|
|
991
|
+
* Padding End
|
|
992
|
+
* @see https://tailwindcss.com/docs/padding
|
|
993
|
+
*/
|
|
994
|
+
pe: [{
|
|
995
|
+
pe: [padding]
|
|
996
|
+
}],
|
|
997
|
+
/**
|
|
998
|
+
* Padding Top
|
|
999
|
+
* @see https://tailwindcss.com/docs/padding
|
|
1000
|
+
*/
|
|
1001
|
+
pt: [{
|
|
1002
|
+
pt: [padding]
|
|
1003
|
+
}],
|
|
1004
|
+
/**
|
|
1005
|
+
* Padding Right
|
|
1006
|
+
* @see https://tailwindcss.com/docs/padding
|
|
1007
|
+
*/
|
|
1008
|
+
pr: [{
|
|
1009
|
+
pr: [padding]
|
|
1010
|
+
}],
|
|
1011
|
+
/**
|
|
1012
|
+
* Padding Bottom
|
|
1013
|
+
* @see https://tailwindcss.com/docs/padding
|
|
1014
|
+
*/
|
|
1015
|
+
pb: [{
|
|
1016
|
+
pb: [padding]
|
|
1017
|
+
}],
|
|
1018
|
+
/**
|
|
1019
|
+
* Padding Left
|
|
1020
|
+
* @see https://tailwindcss.com/docs/padding
|
|
1021
|
+
*/
|
|
1022
|
+
pl: [{
|
|
1023
|
+
pl: [padding]
|
|
1024
|
+
}],
|
|
1025
|
+
/**
|
|
1026
|
+
* Margin
|
|
1027
|
+
* @see https://tailwindcss.com/docs/margin
|
|
1028
|
+
*/
|
|
1029
|
+
m: [{
|
|
1030
|
+
m: [margin]
|
|
1031
|
+
}],
|
|
1032
|
+
/**
|
|
1033
|
+
* Margin X
|
|
1034
|
+
* @see https://tailwindcss.com/docs/margin
|
|
1035
|
+
*/
|
|
1036
|
+
mx: [{
|
|
1037
|
+
mx: [margin]
|
|
1038
|
+
}],
|
|
1039
|
+
/**
|
|
1040
|
+
* Margin Y
|
|
1041
|
+
* @see https://tailwindcss.com/docs/margin
|
|
1042
|
+
*/
|
|
1043
|
+
my: [{
|
|
1044
|
+
my: [margin]
|
|
1045
|
+
}],
|
|
1046
|
+
/**
|
|
1047
|
+
* Margin Start
|
|
1048
|
+
* @see https://tailwindcss.com/docs/margin
|
|
1049
|
+
*/
|
|
1050
|
+
ms: [{
|
|
1051
|
+
ms: [margin]
|
|
1052
|
+
}],
|
|
1053
|
+
/**
|
|
1054
|
+
* Margin End
|
|
1055
|
+
* @see https://tailwindcss.com/docs/margin
|
|
1056
|
+
*/
|
|
1057
|
+
me: [{
|
|
1058
|
+
me: [margin]
|
|
1059
|
+
}],
|
|
1060
|
+
/**
|
|
1061
|
+
* Margin Top
|
|
1062
|
+
* @see https://tailwindcss.com/docs/margin
|
|
1063
|
+
*/
|
|
1064
|
+
mt: [{
|
|
1065
|
+
mt: [margin]
|
|
1066
|
+
}],
|
|
1067
|
+
/**
|
|
1068
|
+
* Margin Right
|
|
1069
|
+
* @see https://tailwindcss.com/docs/margin
|
|
1070
|
+
*/
|
|
1071
|
+
mr: [{
|
|
1072
|
+
mr: [margin]
|
|
1073
|
+
}],
|
|
1074
|
+
/**
|
|
1075
|
+
* Margin Bottom
|
|
1076
|
+
* @see https://tailwindcss.com/docs/margin
|
|
1077
|
+
*/
|
|
1078
|
+
mb: [{
|
|
1079
|
+
mb: [margin]
|
|
1080
|
+
}],
|
|
1081
|
+
/**
|
|
1082
|
+
* Margin Left
|
|
1083
|
+
* @see https://tailwindcss.com/docs/margin
|
|
1084
|
+
*/
|
|
1085
|
+
ml: [{
|
|
1086
|
+
ml: [margin]
|
|
1087
|
+
}],
|
|
1088
|
+
/**
|
|
1089
|
+
* Space Between X
|
|
1090
|
+
* @see https://tailwindcss.com/docs/space
|
|
1091
|
+
*/
|
|
1092
|
+
"space-x": [{
|
|
1093
|
+
"space-x": [space]
|
|
1094
|
+
}],
|
|
1095
|
+
/**
|
|
1096
|
+
* Space Between X Reverse
|
|
1097
|
+
* @see https://tailwindcss.com/docs/space
|
|
1098
|
+
*/
|
|
1099
|
+
"space-x-reverse": ["space-x-reverse"],
|
|
1100
|
+
/**
|
|
1101
|
+
* Space Between Y
|
|
1102
|
+
* @see https://tailwindcss.com/docs/space
|
|
1103
|
+
*/
|
|
1104
|
+
"space-y": [{
|
|
1105
|
+
"space-y": [space]
|
|
1106
|
+
}],
|
|
1107
|
+
/**
|
|
1108
|
+
* Space Between Y Reverse
|
|
1109
|
+
* @see https://tailwindcss.com/docs/space
|
|
1110
|
+
*/
|
|
1111
|
+
"space-y-reverse": ["space-y-reverse"],
|
|
1112
|
+
// Sizing
|
|
1113
|
+
/**
|
|
1114
|
+
* Width
|
|
1115
|
+
* @see https://tailwindcss.com/docs/width
|
|
1116
|
+
*/
|
|
1117
|
+
w: [{
|
|
1118
|
+
w: ["auto", "min", "max", "fit", "svw", "lvw", "dvw", isArbitraryValue, spacing]
|
|
1119
|
+
}],
|
|
1120
|
+
/**
|
|
1121
|
+
* Min-Width
|
|
1122
|
+
* @see https://tailwindcss.com/docs/min-width
|
|
1123
|
+
*/
|
|
1124
|
+
"min-w": [{
|
|
1125
|
+
"min-w": [isArbitraryValue, spacing, "min", "max", "fit"]
|
|
1126
|
+
}],
|
|
1127
|
+
/**
|
|
1128
|
+
* Max-Width
|
|
1129
|
+
* @see https://tailwindcss.com/docs/max-width
|
|
1130
|
+
*/
|
|
1131
|
+
"max-w": [{
|
|
1132
|
+
"max-w": [isArbitraryValue, spacing, "none", "full", "min", "max", "fit", "prose", {
|
|
1133
|
+
screen: [isTshirtSize]
|
|
1134
|
+
}, isTshirtSize]
|
|
1135
|
+
}],
|
|
1136
|
+
/**
|
|
1137
|
+
* Height
|
|
1138
|
+
* @see https://tailwindcss.com/docs/height
|
|
1139
|
+
*/
|
|
1140
|
+
h: [{
|
|
1141
|
+
h: [isArbitraryValue, spacing, "auto", "min", "max", "fit", "svh", "lvh", "dvh"]
|
|
1142
|
+
}],
|
|
1143
|
+
/**
|
|
1144
|
+
* Min-Height
|
|
1145
|
+
* @see https://tailwindcss.com/docs/min-height
|
|
1146
|
+
*/
|
|
1147
|
+
"min-h": [{
|
|
1148
|
+
"min-h": [isArbitraryValue, spacing, "min", "max", "fit", "svh", "lvh", "dvh"]
|
|
1149
|
+
}],
|
|
1150
|
+
/**
|
|
1151
|
+
* Max-Height
|
|
1152
|
+
* @see https://tailwindcss.com/docs/max-height
|
|
1153
|
+
*/
|
|
1154
|
+
"max-h": [{
|
|
1155
|
+
"max-h": [isArbitraryValue, spacing, "min", "max", "fit", "svh", "lvh", "dvh"]
|
|
1156
|
+
}],
|
|
1157
|
+
/**
|
|
1158
|
+
* Size
|
|
1159
|
+
* @see https://tailwindcss.com/docs/size
|
|
1160
|
+
*/
|
|
1161
|
+
size: [{
|
|
1162
|
+
size: [isArbitraryValue, spacing, "auto", "min", "max", "fit"]
|
|
1163
|
+
}],
|
|
1164
|
+
// Typography
|
|
1165
|
+
/**
|
|
1166
|
+
* Font Size
|
|
1167
|
+
* @see https://tailwindcss.com/docs/font-size
|
|
1168
|
+
*/
|
|
1169
|
+
"font-size": [{
|
|
1170
|
+
text: ["base", isTshirtSize, isArbitraryLength]
|
|
1171
|
+
}],
|
|
1172
|
+
/**
|
|
1173
|
+
* Font Smoothing
|
|
1174
|
+
* @see https://tailwindcss.com/docs/font-smoothing
|
|
1175
|
+
*/
|
|
1176
|
+
"font-smoothing": ["antialiased", "subpixel-antialiased"],
|
|
1177
|
+
/**
|
|
1178
|
+
* Font Style
|
|
1179
|
+
* @see https://tailwindcss.com/docs/font-style
|
|
1180
|
+
*/
|
|
1181
|
+
"font-style": ["italic", "not-italic"],
|
|
1182
|
+
/**
|
|
1183
|
+
* Font Weight
|
|
1184
|
+
* @see https://tailwindcss.com/docs/font-weight
|
|
1185
|
+
*/
|
|
1186
|
+
"font-weight": [{
|
|
1187
|
+
font: ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black", isArbitraryNumber]
|
|
1188
|
+
}],
|
|
1189
|
+
/**
|
|
1190
|
+
* Font Family
|
|
1191
|
+
* @see https://tailwindcss.com/docs/font-family
|
|
1192
|
+
*/
|
|
1193
|
+
"font-family": [{
|
|
1194
|
+
font: [isAny]
|
|
1195
|
+
}],
|
|
1196
|
+
/**
|
|
1197
|
+
* Font Variant Numeric
|
|
1198
|
+
* @see https://tailwindcss.com/docs/font-variant-numeric
|
|
1199
|
+
*/
|
|
1200
|
+
"fvn-normal": ["normal-nums"],
|
|
1201
|
+
/**
|
|
1202
|
+
* Font Variant Numeric
|
|
1203
|
+
* @see https://tailwindcss.com/docs/font-variant-numeric
|
|
1204
|
+
*/
|
|
1205
|
+
"fvn-ordinal": ["ordinal"],
|
|
1206
|
+
/**
|
|
1207
|
+
* Font Variant Numeric
|
|
1208
|
+
* @see https://tailwindcss.com/docs/font-variant-numeric
|
|
1209
|
+
*/
|
|
1210
|
+
"fvn-slashed-zero": ["slashed-zero"],
|
|
1211
|
+
/**
|
|
1212
|
+
* Font Variant Numeric
|
|
1213
|
+
* @see https://tailwindcss.com/docs/font-variant-numeric
|
|
1214
|
+
*/
|
|
1215
|
+
"fvn-figure": ["lining-nums", "oldstyle-nums"],
|
|
1216
|
+
/**
|
|
1217
|
+
* Font Variant Numeric
|
|
1218
|
+
* @see https://tailwindcss.com/docs/font-variant-numeric
|
|
1219
|
+
*/
|
|
1220
|
+
"fvn-spacing": ["proportional-nums", "tabular-nums"],
|
|
1221
|
+
/**
|
|
1222
|
+
* Font Variant Numeric
|
|
1223
|
+
* @see https://tailwindcss.com/docs/font-variant-numeric
|
|
1224
|
+
*/
|
|
1225
|
+
"fvn-fraction": ["diagonal-fractions", "stacked-fractions"],
|
|
1226
|
+
/**
|
|
1227
|
+
* Letter Spacing
|
|
1228
|
+
* @see https://tailwindcss.com/docs/letter-spacing
|
|
1229
|
+
*/
|
|
1230
|
+
tracking: [{
|
|
1231
|
+
tracking: ["tighter", "tight", "normal", "wide", "wider", "widest", isArbitraryValue]
|
|
1232
|
+
}],
|
|
1233
|
+
/**
|
|
1234
|
+
* Line Clamp
|
|
1235
|
+
* @see https://tailwindcss.com/docs/line-clamp
|
|
1236
|
+
*/
|
|
1237
|
+
"line-clamp": [{
|
|
1238
|
+
"line-clamp": ["none", isNumber, isArbitraryNumber]
|
|
1239
|
+
}],
|
|
1240
|
+
/**
|
|
1241
|
+
* Line Height
|
|
1242
|
+
* @see https://tailwindcss.com/docs/line-height
|
|
1243
|
+
*/
|
|
1244
|
+
leading: [{
|
|
1245
|
+
leading: ["none", "tight", "snug", "normal", "relaxed", "loose", isLength, isArbitraryValue]
|
|
1246
|
+
}],
|
|
1247
|
+
/**
|
|
1248
|
+
* List Style Image
|
|
1249
|
+
* @see https://tailwindcss.com/docs/list-style-image
|
|
1250
|
+
*/
|
|
1251
|
+
"list-image": [{
|
|
1252
|
+
"list-image": ["none", isArbitraryValue]
|
|
1253
|
+
}],
|
|
1254
|
+
/**
|
|
1255
|
+
* List Style Type
|
|
1256
|
+
* @see https://tailwindcss.com/docs/list-style-type
|
|
1257
|
+
*/
|
|
1258
|
+
"list-style-type": [{
|
|
1259
|
+
list: ["none", "disc", "decimal", isArbitraryValue]
|
|
1260
|
+
}],
|
|
1261
|
+
/**
|
|
1262
|
+
* List Style Position
|
|
1263
|
+
* @see https://tailwindcss.com/docs/list-style-position
|
|
1264
|
+
*/
|
|
1265
|
+
"list-style-position": [{
|
|
1266
|
+
list: ["inside", "outside"]
|
|
1267
|
+
}],
|
|
1268
|
+
/**
|
|
1269
|
+
* Placeholder Color
|
|
1270
|
+
* @deprecated since Tailwind CSS v3.0.0
|
|
1271
|
+
* @see https://tailwindcss.com/docs/placeholder-color
|
|
1272
|
+
*/
|
|
1273
|
+
"placeholder-color": [{
|
|
1274
|
+
placeholder: [colors]
|
|
1275
|
+
}],
|
|
1276
|
+
/**
|
|
1277
|
+
* Placeholder Opacity
|
|
1278
|
+
* @see https://tailwindcss.com/docs/placeholder-opacity
|
|
1279
|
+
*/
|
|
1280
|
+
"placeholder-opacity": [{
|
|
1281
|
+
"placeholder-opacity": [opacity]
|
|
1282
|
+
}],
|
|
1283
|
+
/**
|
|
1284
|
+
* Text Alignment
|
|
1285
|
+
* @see https://tailwindcss.com/docs/text-align
|
|
1286
|
+
*/
|
|
1287
|
+
"text-alignment": [{
|
|
1288
|
+
text: ["left", "center", "right", "justify", "start", "end"]
|
|
1289
|
+
}],
|
|
1290
|
+
/**
|
|
1291
|
+
* Text Color
|
|
1292
|
+
* @see https://tailwindcss.com/docs/text-color
|
|
1293
|
+
*/
|
|
1294
|
+
"text-color": [{
|
|
1295
|
+
text: [colors]
|
|
1296
|
+
}],
|
|
1297
|
+
/**
|
|
1298
|
+
* Text Opacity
|
|
1299
|
+
* @see https://tailwindcss.com/docs/text-opacity
|
|
1300
|
+
*/
|
|
1301
|
+
"text-opacity": [{
|
|
1302
|
+
"text-opacity": [opacity]
|
|
1303
|
+
}],
|
|
1304
|
+
/**
|
|
1305
|
+
* Text Decoration
|
|
1306
|
+
* @see https://tailwindcss.com/docs/text-decoration
|
|
1307
|
+
*/
|
|
1308
|
+
"text-decoration": ["underline", "overline", "line-through", "no-underline"],
|
|
1309
|
+
/**
|
|
1310
|
+
* Text Decoration Style
|
|
1311
|
+
* @see https://tailwindcss.com/docs/text-decoration-style
|
|
1312
|
+
*/
|
|
1313
|
+
"text-decoration-style": [{
|
|
1314
|
+
decoration: [...getLineStyles(), "wavy"]
|
|
1315
|
+
}],
|
|
1316
|
+
/**
|
|
1317
|
+
* Text Decoration Thickness
|
|
1318
|
+
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
|
1319
|
+
*/
|
|
1320
|
+
"text-decoration-thickness": [{
|
|
1321
|
+
decoration: ["auto", "from-font", isLength, isArbitraryLength]
|
|
1322
|
+
}],
|
|
1323
|
+
/**
|
|
1324
|
+
* Text Underline Offset
|
|
1325
|
+
* @see https://tailwindcss.com/docs/text-underline-offset
|
|
1326
|
+
*/
|
|
1327
|
+
"underline-offset": [{
|
|
1328
|
+
"underline-offset": ["auto", isLength, isArbitraryValue]
|
|
1329
|
+
}],
|
|
1330
|
+
/**
|
|
1331
|
+
* Text Decoration Color
|
|
1332
|
+
* @see https://tailwindcss.com/docs/text-decoration-color
|
|
1333
|
+
*/
|
|
1334
|
+
"text-decoration-color": [{
|
|
1335
|
+
decoration: [colors]
|
|
1336
|
+
}],
|
|
1337
|
+
/**
|
|
1338
|
+
* Text Transform
|
|
1339
|
+
* @see https://tailwindcss.com/docs/text-transform
|
|
1340
|
+
*/
|
|
1341
|
+
"text-transform": ["uppercase", "lowercase", "capitalize", "normal-case"],
|
|
1342
|
+
/**
|
|
1343
|
+
* Text Overflow
|
|
1344
|
+
* @see https://tailwindcss.com/docs/text-overflow
|
|
1345
|
+
*/
|
|
1346
|
+
"text-overflow": ["truncate", "text-ellipsis", "text-clip"],
|
|
1347
|
+
/**
|
|
1348
|
+
* Text Wrap
|
|
1349
|
+
* @see https://tailwindcss.com/docs/text-wrap
|
|
1350
|
+
*/
|
|
1351
|
+
"text-wrap": [{
|
|
1352
|
+
text: ["wrap", "nowrap", "balance", "pretty"]
|
|
1353
|
+
}],
|
|
1354
|
+
/**
|
|
1355
|
+
* Text Indent
|
|
1356
|
+
* @see https://tailwindcss.com/docs/text-indent
|
|
1357
|
+
*/
|
|
1358
|
+
indent: [{
|
|
1359
|
+
indent: getSpacingWithArbitrary()
|
|
1360
|
+
}],
|
|
1361
|
+
/**
|
|
1362
|
+
* Vertical Alignment
|
|
1363
|
+
* @see https://tailwindcss.com/docs/vertical-align
|
|
1364
|
+
*/
|
|
1365
|
+
"vertical-align": [{
|
|
1366
|
+
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", isArbitraryValue]
|
|
1367
|
+
}],
|
|
1368
|
+
/**
|
|
1369
|
+
* Whitespace
|
|
1370
|
+
* @see https://tailwindcss.com/docs/whitespace
|
|
1371
|
+
*/
|
|
1372
|
+
whitespace: [{
|
|
1373
|
+
whitespace: ["normal", "nowrap", "pre", "pre-line", "pre-wrap", "break-spaces"]
|
|
1374
|
+
}],
|
|
1375
|
+
/**
|
|
1376
|
+
* Word Break
|
|
1377
|
+
* @see https://tailwindcss.com/docs/word-break
|
|
1378
|
+
*/
|
|
1379
|
+
break: [{
|
|
1380
|
+
break: ["normal", "words", "all", "keep"]
|
|
1381
|
+
}],
|
|
1382
|
+
/**
|
|
1383
|
+
* Hyphens
|
|
1384
|
+
* @see https://tailwindcss.com/docs/hyphens
|
|
1385
|
+
*/
|
|
1386
|
+
hyphens: [{
|
|
1387
|
+
hyphens: ["none", "manual", "auto"]
|
|
1388
|
+
}],
|
|
1389
|
+
/**
|
|
1390
|
+
* Content
|
|
1391
|
+
* @see https://tailwindcss.com/docs/content
|
|
1392
|
+
*/
|
|
1393
|
+
content: [{
|
|
1394
|
+
content: ["none", isArbitraryValue]
|
|
1395
|
+
}],
|
|
1396
|
+
// Backgrounds
|
|
1397
|
+
/**
|
|
1398
|
+
* Background Attachment
|
|
1399
|
+
* @see https://tailwindcss.com/docs/background-attachment
|
|
1400
|
+
*/
|
|
1401
|
+
"bg-attachment": [{
|
|
1402
|
+
bg: ["fixed", "local", "scroll"]
|
|
1403
|
+
}],
|
|
1404
|
+
/**
|
|
1405
|
+
* Background Clip
|
|
1406
|
+
* @see https://tailwindcss.com/docs/background-clip
|
|
1407
|
+
*/
|
|
1408
|
+
"bg-clip": [{
|
|
1409
|
+
"bg-clip": ["border", "padding", "content", "text"]
|
|
1410
|
+
}],
|
|
1411
|
+
/**
|
|
1412
|
+
* Background Opacity
|
|
1413
|
+
* @deprecated since Tailwind CSS v3.0.0
|
|
1414
|
+
* @see https://tailwindcss.com/docs/background-opacity
|
|
1415
|
+
*/
|
|
1416
|
+
"bg-opacity": [{
|
|
1417
|
+
"bg-opacity": [opacity]
|
|
1418
|
+
}],
|
|
1419
|
+
/**
|
|
1420
|
+
* Background Origin
|
|
1421
|
+
* @see https://tailwindcss.com/docs/background-origin
|
|
1422
|
+
*/
|
|
1423
|
+
"bg-origin": [{
|
|
1424
|
+
"bg-origin": ["border", "padding", "content"]
|
|
1425
|
+
}],
|
|
1426
|
+
/**
|
|
1427
|
+
* Background Position
|
|
1428
|
+
* @see https://tailwindcss.com/docs/background-position
|
|
1429
|
+
*/
|
|
1430
|
+
"bg-position": [{
|
|
1431
|
+
bg: [...getPositions(), isArbitraryPosition]
|
|
1432
|
+
}],
|
|
1433
|
+
/**
|
|
1434
|
+
* Background Repeat
|
|
1435
|
+
* @see https://tailwindcss.com/docs/background-repeat
|
|
1436
|
+
*/
|
|
1437
|
+
"bg-repeat": [{
|
|
1438
|
+
bg: ["no-repeat", {
|
|
1439
|
+
repeat: ["", "x", "y", "round", "space"]
|
|
1440
|
+
}]
|
|
1441
|
+
}],
|
|
1442
|
+
/**
|
|
1443
|
+
* Background Size
|
|
1444
|
+
* @see https://tailwindcss.com/docs/background-size
|
|
1445
|
+
*/
|
|
1446
|
+
"bg-size": [{
|
|
1447
|
+
bg: ["auto", "cover", "contain", isArbitrarySize]
|
|
1448
|
+
}],
|
|
1449
|
+
/**
|
|
1450
|
+
* Background Image
|
|
1451
|
+
* @see https://tailwindcss.com/docs/background-image
|
|
1452
|
+
*/
|
|
1453
|
+
"bg-image": [{
|
|
1454
|
+
bg: ["none", {
|
|
1455
|
+
"gradient-to": ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
|
|
1456
|
+
}, isArbitraryImage]
|
|
1457
|
+
}],
|
|
1458
|
+
/**
|
|
1459
|
+
* Background Color
|
|
1460
|
+
* @see https://tailwindcss.com/docs/background-color
|
|
1461
|
+
*/
|
|
1462
|
+
"bg-color": [{
|
|
1463
|
+
bg: [colors]
|
|
1464
|
+
}],
|
|
1465
|
+
/**
|
|
1466
|
+
* Gradient Color Stops From Position
|
|
1467
|
+
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1468
|
+
*/
|
|
1469
|
+
"gradient-from-pos": [{
|
|
1470
|
+
from: [gradientColorStopPositions]
|
|
1471
|
+
}],
|
|
1472
|
+
/**
|
|
1473
|
+
* Gradient Color Stops Via Position
|
|
1474
|
+
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1475
|
+
*/
|
|
1476
|
+
"gradient-via-pos": [{
|
|
1477
|
+
via: [gradientColorStopPositions]
|
|
1478
|
+
}],
|
|
1479
|
+
/**
|
|
1480
|
+
* Gradient Color Stops To Position
|
|
1481
|
+
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1482
|
+
*/
|
|
1483
|
+
"gradient-to-pos": [{
|
|
1484
|
+
to: [gradientColorStopPositions]
|
|
1485
|
+
}],
|
|
1486
|
+
/**
|
|
1487
|
+
* Gradient Color Stops From
|
|
1488
|
+
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1489
|
+
*/
|
|
1490
|
+
"gradient-from": [{
|
|
1491
|
+
from: [gradientColorStops]
|
|
1492
|
+
}],
|
|
1493
|
+
/**
|
|
1494
|
+
* Gradient Color Stops Via
|
|
1495
|
+
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1496
|
+
*/
|
|
1497
|
+
"gradient-via": [{
|
|
1498
|
+
via: [gradientColorStops]
|
|
1499
|
+
}],
|
|
1500
|
+
/**
|
|
1501
|
+
* Gradient Color Stops To
|
|
1502
|
+
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1503
|
+
*/
|
|
1504
|
+
"gradient-to": [{
|
|
1505
|
+
to: [gradientColorStops]
|
|
1506
|
+
}],
|
|
1507
|
+
// Borders
|
|
1508
|
+
/**
|
|
1509
|
+
* Border Radius
|
|
1510
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
1511
|
+
*/
|
|
1512
|
+
rounded: [{
|
|
1513
|
+
rounded: [borderRadius]
|
|
1514
|
+
}],
|
|
1515
|
+
/**
|
|
1516
|
+
* Border Radius Start
|
|
1517
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
1518
|
+
*/
|
|
1519
|
+
"rounded-s": [{
|
|
1520
|
+
"rounded-s": [borderRadius]
|
|
1521
|
+
}],
|
|
1522
|
+
/**
|
|
1523
|
+
* Border Radius End
|
|
1524
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
1525
|
+
*/
|
|
1526
|
+
"rounded-e": [{
|
|
1527
|
+
"rounded-e": [borderRadius]
|
|
1528
|
+
}],
|
|
1529
|
+
/**
|
|
1530
|
+
* Border Radius Top
|
|
1531
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
1532
|
+
*/
|
|
1533
|
+
"rounded-t": [{
|
|
1534
|
+
"rounded-t": [borderRadius]
|
|
1535
|
+
}],
|
|
1536
|
+
/**
|
|
1537
|
+
* Border Radius Right
|
|
1538
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
1539
|
+
*/
|
|
1540
|
+
"rounded-r": [{
|
|
1541
|
+
"rounded-r": [borderRadius]
|
|
1542
|
+
}],
|
|
1543
|
+
/**
|
|
1544
|
+
* Border Radius Bottom
|
|
1545
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
1546
|
+
*/
|
|
1547
|
+
"rounded-b": [{
|
|
1548
|
+
"rounded-b": [borderRadius]
|
|
1549
|
+
}],
|
|
1550
|
+
/**
|
|
1551
|
+
* Border Radius Left
|
|
1552
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
1553
|
+
*/
|
|
1554
|
+
"rounded-l": [{
|
|
1555
|
+
"rounded-l": [borderRadius]
|
|
1556
|
+
}],
|
|
1557
|
+
/**
|
|
1558
|
+
* Border Radius Start Start
|
|
1559
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
1560
|
+
*/
|
|
1561
|
+
"rounded-ss": [{
|
|
1562
|
+
"rounded-ss": [borderRadius]
|
|
1563
|
+
}],
|
|
1564
|
+
/**
|
|
1565
|
+
* Border Radius Start End
|
|
1566
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
1567
|
+
*/
|
|
1568
|
+
"rounded-se": [{
|
|
1569
|
+
"rounded-se": [borderRadius]
|
|
1570
|
+
}],
|
|
1571
|
+
/**
|
|
1572
|
+
* Border Radius End End
|
|
1573
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
1574
|
+
*/
|
|
1575
|
+
"rounded-ee": [{
|
|
1576
|
+
"rounded-ee": [borderRadius]
|
|
1577
|
+
}],
|
|
1578
|
+
/**
|
|
1579
|
+
* Border Radius End Start
|
|
1580
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
1581
|
+
*/
|
|
1582
|
+
"rounded-es": [{
|
|
1583
|
+
"rounded-es": [borderRadius]
|
|
1584
|
+
}],
|
|
1585
|
+
/**
|
|
1586
|
+
* Border Radius Top Left
|
|
1587
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
1588
|
+
*/
|
|
1589
|
+
"rounded-tl": [{
|
|
1590
|
+
"rounded-tl": [borderRadius]
|
|
1591
|
+
}],
|
|
1592
|
+
/**
|
|
1593
|
+
* Border Radius Top Right
|
|
1594
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
1595
|
+
*/
|
|
1596
|
+
"rounded-tr": [{
|
|
1597
|
+
"rounded-tr": [borderRadius]
|
|
1598
|
+
}],
|
|
1599
|
+
/**
|
|
1600
|
+
* Border Radius Bottom Right
|
|
1601
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
1602
|
+
*/
|
|
1603
|
+
"rounded-br": [{
|
|
1604
|
+
"rounded-br": [borderRadius]
|
|
1605
|
+
}],
|
|
1606
|
+
/**
|
|
1607
|
+
* Border Radius Bottom Left
|
|
1608
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
1609
|
+
*/
|
|
1610
|
+
"rounded-bl": [{
|
|
1611
|
+
"rounded-bl": [borderRadius]
|
|
1612
|
+
}],
|
|
1613
|
+
/**
|
|
1614
|
+
* Border Width
|
|
1615
|
+
* @see https://tailwindcss.com/docs/border-width
|
|
1616
|
+
*/
|
|
1617
|
+
"border-w": [{
|
|
1618
|
+
border: [borderWidth]
|
|
1619
|
+
}],
|
|
1620
|
+
/**
|
|
1621
|
+
* Border Width X
|
|
1622
|
+
* @see https://tailwindcss.com/docs/border-width
|
|
1623
|
+
*/
|
|
1624
|
+
"border-w-x": [{
|
|
1625
|
+
"border-x": [borderWidth]
|
|
1626
|
+
}],
|
|
1627
|
+
/**
|
|
1628
|
+
* Border Width Y
|
|
1629
|
+
* @see https://tailwindcss.com/docs/border-width
|
|
1630
|
+
*/
|
|
1631
|
+
"border-w-y": [{
|
|
1632
|
+
"border-y": [borderWidth]
|
|
1633
|
+
}],
|
|
1634
|
+
/**
|
|
1635
|
+
* Border Width Start
|
|
1636
|
+
* @see https://tailwindcss.com/docs/border-width
|
|
1637
|
+
*/
|
|
1638
|
+
"border-w-s": [{
|
|
1639
|
+
"border-s": [borderWidth]
|
|
1640
|
+
}],
|
|
1641
|
+
/**
|
|
1642
|
+
* Border Width End
|
|
1643
|
+
* @see https://tailwindcss.com/docs/border-width
|
|
1644
|
+
*/
|
|
1645
|
+
"border-w-e": [{
|
|
1646
|
+
"border-e": [borderWidth]
|
|
1647
|
+
}],
|
|
1648
|
+
/**
|
|
1649
|
+
* Border Width Top
|
|
1650
|
+
* @see https://tailwindcss.com/docs/border-width
|
|
1651
|
+
*/
|
|
1652
|
+
"border-w-t": [{
|
|
1653
|
+
"border-t": [borderWidth]
|
|
1654
|
+
}],
|
|
1655
|
+
/**
|
|
1656
|
+
* Border Width Right
|
|
1657
|
+
* @see https://tailwindcss.com/docs/border-width
|
|
1658
|
+
*/
|
|
1659
|
+
"border-w-r": [{
|
|
1660
|
+
"border-r": [borderWidth]
|
|
1661
|
+
}],
|
|
1662
|
+
/**
|
|
1663
|
+
* Border Width Bottom
|
|
1664
|
+
* @see https://tailwindcss.com/docs/border-width
|
|
1665
|
+
*/
|
|
1666
|
+
"border-w-b": [{
|
|
1667
|
+
"border-b": [borderWidth]
|
|
1668
|
+
}],
|
|
1669
|
+
/**
|
|
1670
|
+
* Border Width Left
|
|
1671
|
+
* @see https://tailwindcss.com/docs/border-width
|
|
1672
|
+
*/
|
|
1673
|
+
"border-w-l": [{
|
|
1674
|
+
"border-l": [borderWidth]
|
|
1675
|
+
}],
|
|
1676
|
+
/**
|
|
1677
|
+
* Border Opacity
|
|
1678
|
+
* @see https://tailwindcss.com/docs/border-opacity
|
|
1679
|
+
*/
|
|
1680
|
+
"border-opacity": [{
|
|
1681
|
+
"border-opacity": [opacity]
|
|
1682
|
+
}],
|
|
1683
|
+
/**
|
|
1684
|
+
* Border Style
|
|
1685
|
+
* @see https://tailwindcss.com/docs/border-style
|
|
1686
|
+
*/
|
|
1687
|
+
"border-style": [{
|
|
1688
|
+
border: [...getLineStyles(), "hidden"]
|
|
1689
|
+
}],
|
|
1690
|
+
/**
|
|
1691
|
+
* Divide Width X
|
|
1692
|
+
* @see https://tailwindcss.com/docs/divide-width
|
|
1693
|
+
*/
|
|
1694
|
+
"divide-x": [{
|
|
1695
|
+
"divide-x": [borderWidth]
|
|
1696
|
+
}],
|
|
1697
|
+
/**
|
|
1698
|
+
* Divide Width X Reverse
|
|
1699
|
+
* @see https://tailwindcss.com/docs/divide-width
|
|
1700
|
+
*/
|
|
1701
|
+
"divide-x-reverse": ["divide-x-reverse"],
|
|
1702
|
+
/**
|
|
1703
|
+
* Divide Width Y
|
|
1704
|
+
* @see https://tailwindcss.com/docs/divide-width
|
|
1705
|
+
*/
|
|
1706
|
+
"divide-y": [{
|
|
1707
|
+
"divide-y": [borderWidth]
|
|
1708
|
+
}],
|
|
1709
|
+
/**
|
|
1710
|
+
* Divide Width Y Reverse
|
|
1711
|
+
* @see https://tailwindcss.com/docs/divide-width
|
|
1712
|
+
*/
|
|
1713
|
+
"divide-y-reverse": ["divide-y-reverse"],
|
|
1714
|
+
/**
|
|
1715
|
+
* Divide Opacity
|
|
1716
|
+
* @see https://tailwindcss.com/docs/divide-opacity
|
|
1717
|
+
*/
|
|
1718
|
+
"divide-opacity": [{
|
|
1719
|
+
"divide-opacity": [opacity]
|
|
1720
|
+
}],
|
|
1721
|
+
/**
|
|
1722
|
+
* Divide Style
|
|
1723
|
+
* @see https://tailwindcss.com/docs/divide-style
|
|
1724
|
+
*/
|
|
1725
|
+
"divide-style": [{
|
|
1726
|
+
divide: getLineStyles()
|
|
1727
|
+
}],
|
|
1728
|
+
/**
|
|
1729
|
+
* Border Color
|
|
1730
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
1731
|
+
*/
|
|
1732
|
+
"border-color": [{
|
|
1733
|
+
border: [borderColor]
|
|
1734
|
+
}],
|
|
1735
|
+
/**
|
|
1736
|
+
* Border Color X
|
|
1737
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
1738
|
+
*/
|
|
1739
|
+
"border-color-x": [{
|
|
1740
|
+
"border-x": [borderColor]
|
|
1741
|
+
}],
|
|
1742
|
+
/**
|
|
1743
|
+
* Border Color Y
|
|
1744
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
1745
|
+
*/
|
|
1746
|
+
"border-color-y": [{
|
|
1747
|
+
"border-y": [borderColor]
|
|
1748
|
+
}],
|
|
1749
|
+
/**
|
|
1750
|
+
* Border Color S
|
|
1751
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
1752
|
+
*/
|
|
1753
|
+
"border-color-s": [{
|
|
1754
|
+
"border-s": [borderColor]
|
|
1755
|
+
}],
|
|
1756
|
+
/**
|
|
1757
|
+
* Border Color E
|
|
1758
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
1759
|
+
*/
|
|
1760
|
+
"border-color-e": [{
|
|
1761
|
+
"border-e": [borderColor]
|
|
1762
|
+
}],
|
|
1763
|
+
/**
|
|
1764
|
+
* Border Color Top
|
|
1765
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
1766
|
+
*/
|
|
1767
|
+
"border-color-t": [{
|
|
1768
|
+
"border-t": [borderColor]
|
|
1769
|
+
}],
|
|
1770
|
+
/**
|
|
1771
|
+
* Border Color Right
|
|
1772
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
1773
|
+
*/
|
|
1774
|
+
"border-color-r": [{
|
|
1775
|
+
"border-r": [borderColor]
|
|
1776
|
+
}],
|
|
1777
|
+
/**
|
|
1778
|
+
* Border Color Bottom
|
|
1779
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
1780
|
+
*/
|
|
1781
|
+
"border-color-b": [{
|
|
1782
|
+
"border-b": [borderColor]
|
|
1783
|
+
}],
|
|
1784
|
+
/**
|
|
1785
|
+
* Border Color Left
|
|
1786
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
1787
|
+
*/
|
|
1788
|
+
"border-color-l": [{
|
|
1789
|
+
"border-l": [borderColor]
|
|
1790
|
+
}],
|
|
1791
|
+
/**
|
|
1792
|
+
* Divide Color
|
|
1793
|
+
* @see https://tailwindcss.com/docs/divide-color
|
|
1794
|
+
*/
|
|
1795
|
+
"divide-color": [{
|
|
1796
|
+
divide: [borderColor]
|
|
1797
|
+
}],
|
|
1798
|
+
/**
|
|
1799
|
+
* Outline Style
|
|
1800
|
+
* @see https://tailwindcss.com/docs/outline-style
|
|
1801
|
+
*/
|
|
1802
|
+
"outline-style": [{
|
|
1803
|
+
outline: ["", ...getLineStyles()]
|
|
1804
|
+
}],
|
|
1805
|
+
/**
|
|
1806
|
+
* Outline Offset
|
|
1807
|
+
* @see https://tailwindcss.com/docs/outline-offset
|
|
1808
|
+
*/
|
|
1809
|
+
"outline-offset": [{
|
|
1810
|
+
"outline-offset": [isLength, isArbitraryValue]
|
|
1811
|
+
}],
|
|
1812
|
+
/**
|
|
1813
|
+
* Outline Width
|
|
1814
|
+
* @see https://tailwindcss.com/docs/outline-width
|
|
1815
|
+
*/
|
|
1816
|
+
"outline-w": [{
|
|
1817
|
+
outline: [isLength, isArbitraryLength]
|
|
1818
|
+
}],
|
|
1819
|
+
/**
|
|
1820
|
+
* Outline Color
|
|
1821
|
+
* @see https://tailwindcss.com/docs/outline-color
|
|
1822
|
+
*/
|
|
1823
|
+
"outline-color": [{
|
|
1824
|
+
outline: [colors]
|
|
1825
|
+
}],
|
|
1826
|
+
/**
|
|
1827
|
+
* Ring Width
|
|
1828
|
+
* @see https://tailwindcss.com/docs/ring-width
|
|
1829
|
+
*/
|
|
1830
|
+
"ring-w": [{
|
|
1831
|
+
ring: getLengthWithEmptyAndArbitrary()
|
|
1832
|
+
}],
|
|
1833
|
+
/**
|
|
1834
|
+
* Ring Width Inset
|
|
1835
|
+
* @see https://tailwindcss.com/docs/ring-width
|
|
1836
|
+
*/
|
|
1837
|
+
"ring-w-inset": ["ring-inset"],
|
|
1838
|
+
/**
|
|
1839
|
+
* Ring Color
|
|
1840
|
+
* @see https://tailwindcss.com/docs/ring-color
|
|
1841
|
+
*/
|
|
1842
|
+
"ring-color": [{
|
|
1843
|
+
ring: [colors]
|
|
1844
|
+
}],
|
|
1845
|
+
/**
|
|
1846
|
+
* Ring Opacity
|
|
1847
|
+
* @see https://tailwindcss.com/docs/ring-opacity
|
|
1848
|
+
*/
|
|
1849
|
+
"ring-opacity": [{
|
|
1850
|
+
"ring-opacity": [opacity]
|
|
1851
|
+
}],
|
|
1852
|
+
/**
|
|
1853
|
+
* Ring Offset Width
|
|
1854
|
+
* @see https://tailwindcss.com/docs/ring-offset-width
|
|
1855
|
+
*/
|
|
1856
|
+
"ring-offset-w": [{
|
|
1857
|
+
"ring-offset": [isLength, isArbitraryLength]
|
|
1858
|
+
}],
|
|
1859
|
+
/**
|
|
1860
|
+
* Ring Offset Color
|
|
1861
|
+
* @see https://tailwindcss.com/docs/ring-offset-color
|
|
1862
|
+
*/
|
|
1863
|
+
"ring-offset-color": [{
|
|
1864
|
+
"ring-offset": [colors]
|
|
1865
|
+
}],
|
|
1866
|
+
// Effects
|
|
1867
|
+
/**
|
|
1868
|
+
* Box Shadow
|
|
1869
|
+
* @see https://tailwindcss.com/docs/box-shadow
|
|
1870
|
+
*/
|
|
1871
|
+
shadow: [{
|
|
1872
|
+
shadow: ["", "inner", "none", isTshirtSize, isArbitraryShadow]
|
|
1873
|
+
}],
|
|
1874
|
+
/**
|
|
1875
|
+
* Box Shadow Color
|
|
1876
|
+
* @see https://tailwindcss.com/docs/box-shadow-color
|
|
1877
|
+
*/
|
|
1878
|
+
"shadow-color": [{
|
|
1879
|
+
shadow: [isAny]
|
|
1880
|
+
}],
|
|
1881
|
+
/**
|
|
1882
|
+
* Opacity
|
|
1883
|
+
* @see https://tailwindcss.com/docs/opacity
|
|
1884
|
+
*/
|
|
1885
|
+
opacity: [{
|
|
1886
|
+
opacity: [opacity]
|
|
1887
|
+
}],
|
|
1888
|
+
/**
|
|
1889
|
+
* Mix Blend Mode
|
|
1890
|
+
* @see https://tailwindcss.com/docs/mix-blend-mode
|
|
1891
|
+
*/
|
|
1892
|
+
"mix-blend": [{
|
|
1893
|
+
"mix-blend": [...getBlendModes(), "plus-lighter", "plus-darker"]
|
|
1894
|
+
}],
|
|
1895
|
+
/**
|
|
1896
|
+
* Background Blend Mode
|
|
1897
|
+
* @see https://tailwindcss.com/docs/background-blend-mode
|
|
1898
|
+
*/
|
|
1899
|
+
"bg-blend": [{
|
|
1900
|
+
"bg-blend": getBlendModes()
|
|
1901
|
+
}],
|
|
1902
|
+
// Filters
|
|
1903
|
+
/**
|
|
1904
|
+
* Filter
|
|
1905
|
+
* @deprecated since Tailwind CSS v3.0.0
|
|
1906
|
+
* @see https://tailwindcss.com/docs/filter
|
|
1907
|
+
*/
|
|
1908
|
+
filter: [{
|
|
1909
|
+
filter: ["", "none"]
|
|
1910
|
+
}],
|
|
1911
|
+
/**
|
|
1912
|
+
* Blur
|
|
1913
|
+
* @see https://tailwindcss.com/docs/blur
|
|
1914
|
+
*/
|
|
1915
|
+
blur: [{
|
|
1916
|
+
blur: [blur]
|
|
1917
|
+
}],
|
|
1918
|
+
/**
|
|
1919
|
+
* Brightness
|
|
1920
|
+
* @see https://tailwindcss.com/docs/brightness
|
|
1921
|
+
*/
|
|
1922
|
+
brightness: [{
|
|
1923
|
+
brightness: [brightness]
|
|
1924
|
+
}],
|
|
1925
|
+
/**
|
|
1926
|
+
* Contrast
|
|
1927
|
+
* @see https://tailwindcss.com/docs/contrast
|
|
1928
|
+
*/
|
|
1929
|
+
contrast: [{
|
|
1930
|
+
contrast: [contrast]
|
|
1931
|
+
}],
|
|
1932
|
+
/**
|
|
1933
|
+
* Drop Shadow
|
|
1934
|
+
* @see https://tailwindcss.com/docs/drop-shadow
|
|
1935
|
+
*/
|
|
1936
|
+
"drop-shadow": [{
|
|
1937
|
+
"drop-shadow": ["", "none", isTshirtSize, isArbitraryValue]
|
|
1938
|
+
}],
|
|
1939
|
+
/**
|
|
1940
|
+
* Grayscale
|
|
1941
|
+
* @see https://tailwindcss.com/docs/grayscale
|
|
1942
|
+
*/
|
|
1943
|
+
grayscale: [{
|
|
1944
|
+
grayscale: [grayscale]
|
|
1945
|
+
}],
|
|
1946
|
+
/**
|
|
1947
|
+
* Hue Rotate
|
|
1948
|
+
* @see https://tailwindcss.com/docs/hue-rotate
|
|
1949
|
+
*/
|
|
1950
|
+
"hue-rotate": [{
|
|
1951
|
+
"hue-rotate": [hueRotate]
|
|
1952
|
+
}],
|
|
1953
|
+
/**
|
|
1954
|
+
* Invert
|
|
1955
|
+
* @see https://tailwindcss.com/docs/invert
|
|
1956
|
+
*/
|
|
1957
|
+
invert: [{
|
|
1958
|
+
invert: [invert]
|
|
1959
|
+
}],
|
|
1960
|
+
/**
|
|
1961
|
+
* Saturate
|
|
1962
|
+
* @see https://tailwindcss.com/docs/saturate
|
|
1963
|
+
*/
|
|
1964
|
+
saturate: [{
|
|
1965
|
+
saturate: [saturate]
|
|
1966
|
+
}],
|
|
1967
|
+
/**
|
|
1968
|
+
* Sepia
|
|
1969
|
+
* @see https://tailwindcss.com/docs/sepia
|
|
1970
|
+
*/
|
|
1971
|
+
sepia: [{
|
|
1972
|
+
sepia: [sepia]
|
|
1973
|
+
}],
|
|
1974
|
+
/**
|
|
1975
|
+
* Backdrop Filter
|
|
1976
|
+
* @deprecated since Tailwind CSS v3.0.0
|
|
1977
|
+
* @see https://tailwindcss.com/docs/backdrop-filter
|
|
1978
|
+
*/
|
|
1979
|
+
"backdrop-filter": [{
|
|
1980
|
+
"backdrop-filter": ["", "none"]
|
|
1981
|
+
}],
|
|
1982
|
+
/**
|
|
1983
|
+
* Backdrop Blur
|
|
1984
|
+
* @see https://tailwindcss.com/docs/backdrop-blur
|
|
1985
|
+
*/
|
|
1986
|
+
"backdrop-blur": [{
|
|
1987
|
+
"backdrop-blur": [blur]
|
|
1988
|
+
}],
|
|
1989
|
+
/**
|
|
1990
|
+
* Backdrop Brightness
|
|
1991
|
+
* @see https://tailwindcss.com/docs/backdrop-brightness
|
|
1992
|
+
*/
|
|
1993
|
+
"backdrop-brightness": [{
|
|
1994
|
+
"backdrop-brightness": [brightness]
|
|
1995
|
+
}],
|
|
1996
|
+
/**
|
|
1997
|
+
* Backdrop Contrast
|
|
1998
|
+
* @see https://tailwindcss.com/docs/backdrop-contrast
|
|
1999
|
+
*/
|
|
2000
|
+
"backdrop-contrast": [{
|
|
2001
|
+
"backdrop-contrast": [contrast]
|
|
2002
|
+
}],
|
|
2003
|
+
/**
|
|
2004
|
+
* Backdrop Grayscale
|
|
2005
|
+
* @see https://tailwindcss.com/docs/backdrop-grayscale
|
|
2006
|
+
*/
|
|
2007
|
+
"backdrop-grayscale": [{
|
|
2008
|
+
"backdrop-grayscale": [grayscale]
|
|
2009
|
+
}],
|
|
2010
|
+
/**
|
|
2011
|
+
* Backdrop Hue Rotate
|
|
2012
|
+
* @see https://tailwindcss.com/docs/backdrop-hue-rotate
|
|
2013
|
+
*/
|
|
2014
|
+
"backdrop-hue-rotate": [{
|
|
2015
|
+
"backdrop-hue-rotate": [hueRotate]
|
|
2016
|
+
}],
|
|
2017
|
+
/**
|
|
2018
|
+
* Backdrop Invert
|
|
2019
|
+
* @see https://tailwindcss.com/docs/backdrop-invert
|
|
2020
|
+
*/
|
|
2021
|
+
"backdrop-invert": [{
|
|
2022
|
+
"backdrop-invert": [invert]
|
|
2023
|
+
}],
|
|
2024
|
+
/**
|
|
2025
|
+
* Backdrop Opacity
|
|
2026
|
+
* @see https://tailwindcss.com/docs/backdrop-opacity
|
|
2027
|
+
*/
|
|
2028
|
+
"backdrop-opacity": [{
|
|
2029
|
+
"backdrop-opacity": [opacity]
|
|
2030
|
+
}],
|
|
2031
|
+
/**
|
|
2032
|
+
* Backdrop Saturate
|
|
2033
|
+
* @see https://tailwindcss.com/docs/backdrop-saturate
|
|
2034
|
+
*/
|
|
2035
|
+
"backdrop-saturate": [{
|
|
2036
|
+
"backdrop-saturate": [saturate]
|
|
2037
|
+
}],
|
|
2038
|
+
/**
|
|
2039
|
+
* Backdrop Sepia
|
|
2040
|
+
* @see https://tailwindcss.com/docs/backdrop-sepia
|
|
2041
|
+
*/
|
|
2042
|
+
"backdrop-sepia": [{
|
|
2043
|
+
"backdrop-sepia": [sepia]
|
|
2044
|
+
}],
|
|
2045
|
+
// Tables
|
|
2046
|
+
/**
|
|
2047
|
+
* Border Collapse
|
|
2048
|
+
* @see https://tailwindcss.com/docs/border-collapse
|
|
2049
|
+
*/
|
|
2050
|
+
"border-collapse": [{
|
|
2051
|
+
border: ["collapse", "separate"]
|
|
2052
|
+
}],
|
|
2053
|
+
/**
|
|
2054
|
+
* Border Spacing
|
|
2055
|
+
* @see https://tailwindcss.com/docs/border-spacing
|
|
2056
|
+
*/
|
|
2057
|
+
"border-spacing": [{
|
|
2058
|
+
"border-spacing": [borderSpacing]
|
|
2059
|
+
}],
|
|
2060
|
+
/**
|
|
2061
|
+
* Border Spacing X
|
|
2062
|
+
* @see https://tailwindcss.com/docs/border-spacing
|
|
2063
|
+
*/
|
|
2064
|
+
"border-spacing-x": [{
|
|
2065
|
+
"border-spacing-x": [borderSpacing]
|
|
2066
|
+
}],
|
|
2067
|
+
/**
|
|
2068
|
+
* Border Spacing Y
|
|
2069
|
+
* @see https://tailwindcss.com/docs/border-spacing
|
|
2070
|
+
*/
|
|
2071
|
+
"border-spacing-y": [{
|
|
2072
|
+
"border-spacing-y": [borderSpacing]
|
|
2073
|
+
}],
|
|
2074
|
+
/**
|
|
2075
|
+
* Table Layout
|
|
2076
|
+
* @see https://tailwindcss.com/docs/table-layout
|
|
2077
|
+
*/
|
|
2078
|
+
"table-layout": [{
|
|
2079
|
+
table: ["auto", "fixed"]
|
|
2080
|
+
}],
|
|
2081
|
+
/**
|
|
2082
|
+
* Caption Side
|
|
2083
|
+
* @see https://tailwindcss.com/docs/caption-side
|
|
2084
|
+
*/
|
|
2085
|
+
caption: [{
|
|
2086
|
+
caption: ["top", "bottom"]
|
|
2087
|
+
}],
|
|
2088
|
+
// Transitions and Animation
|
|
2089
|
+
/**
|
|
2090
|
+
* Tranisition Property
|
|
2091
|
+
* @see https://tailwindcss.com/docs/transition-property
|
|
2092
|
+
*/
|
|
2093
|
+
transition: [{
|
|
2094
|
+
transition: ["none", "all", "", "colors", "opacity", "shadow", "transform", isArbitraryValue]
|
|
2095
|
+
}],
|
|
2096
|
+
/**
|
|
2097
|
+
* Transition Duration
|
|
2098
|
+
* @see https://tailwindcss.com/docs/transition-duration
|
|
2099
|
+
*/
|
|
2100
|
+
duration: [{
|
|
2101
|
+
duration: getNumberAndArbitrary()
|
|
2102
|
+
}],
|
|
2103
|
+
/**
|
|
2104
|
+
* Transition Timing Function
|
|
2105
|
+
* @see https://tailwindcss.com/docs/transition-timing-function
|
|
2106
|
+
*/
|
|
2107
|
+
ease: [{
|
|
2108
|
+
ease: ["linear", "in", "out", "in-out", isArbitraryValue]
|
|
2109
|
+
}],
|
|
2110
|
+
/**
|
|
2111
|
+
* Transition Delay
|
|
2112
|
+
* @see https://tailwindcss.com/docs/transition-delay
|
|
2113
|
+
*/
|
|
2114
|
+
delay: [{
|
|
2115
|
+
delay: getNumberAndArbitrary()
|
|
2116
|
+
}],
|
|
2117
|
+
/**
|
|
2118
|
+
* Animation
|
|
2119
|
+
* @see https://tailwindcss.com/docs/animation
|
|
2120
|
+
*/
|
|
2121
|
+
animate: [{
|
|
2122
|
+
animate: ["none", "spin", "ping", "pulse", "bounce", isArbitraryValue]
|
|
2123
|
+
}],
|
|
2124
|
+
// Transforms
|
|
2125
|
+
/**
|
|
2126
|
+
* Transform
|
|
2127
|
+
* @see https://tailwindcss.com/docs/transform
|
|
2128
|
+
*/
|
|
2129
|
+
transform: [{
|
|
2130
|
+
transform: ["", "gpu", "none"]
|
|
2131
|
+
}],
|
|
2132
|
+
/**
|
|
2133
|
+
* Scale
|
|
2134
|
+
* @see https://tailwindcss.com/docs/scale
|
|
2135
|
+
*/
|
|
2136
|
+
scale: [{
|
|
2137
|
+
scale: [scale]
|
|
2138
|
+
}],
|
|
2139
|
+
/**
|
|
2140
|
+
* Scale X
|
|
2141
|
+
* @see https://tailwindcss.com/docs/scale
|
|
2142
|
+
*/
|
|
2143
|
+
"scale-x": [{
|
|
2144
|
+
"scale-x": [scale]
|
|
2145
|
+
}],
|
|
2146
|
+
/**
|
|
2147
|
+
* Scale Y
|
|
2148
|
+
* @see https://tailwindcss.com/docs/scale
|
|
2149
|
+
*/
|
|
2150
|
+
"scale-y": [{
|
|
2151
|
+
"scale-y": [scale]
|
|
2152
|
+
}],
|
|
2153
|
+
/**
|
|
2154
|
+
* Rotate
|
|
2155
|
+
* @see https://tailwindcss.com/docs/rotate
|
|
2156
|
+
*/
|
|
2157
|
+
rotate: [{
|
|
2158
|
+
rotate: [isInteger, isArbitraryValue]
|
|
2159
|
+
}],
|
|
2160
|
+
/**
|
|
2161
|
+
* Translate X
|
|
2162
|
+
* @see https://tailwindcss.com/docs/translate
|
|
2163
|
+
*/
|
|
2164
|
+
"translate-x": [{
|
|
2165
|
+
"translate-x": [translate]
|
|
2166
|
+
}],
|
|
2167
|
+
/**
|
|
2168
|
+
* Translate Y
|
|
2169
|
+
* @see https://tailwindcss.com/docs/translate
|
|
2170
|
+
*/
|
|
2171
|
+
"translate-y": [{
|
|
2172
|
+
"translate-y": [translate]
|
|
2173
|
+
}],
|
|
2174
|
+
/**
|
|
2175
|
+
* Skew X
|
|
2176
|
+
* @see https://tailwindcss.com/docs/skew
|
|
2177
|
+
*/
|
|
2178
|
+
"skew-x": [{
|
|
2179
|
+
"skew-x": [skew]
|
|
2180
|
+
}],
|
|
2181
|
+
/**
|
|
2182
|
+
* Skew Y
|
|
2183
|
+
* @see https://tailwindcss.com/docs/skew
|
|
2184
|
+
*/
|
|
2185
|
+
"skew-y": [{
|
|
2186
|
+
"skew-y": [skew]
|
|
2187
|
+
}],
|
|
2188
|
+
/**
|
|
2189
|
+
* Transform Origin
|
|
2190
|
+
* @see https://tailwindcss.com/docs/transform-origin
|
|
2191
|
+
*/
|
|
2192
|
+
"transform-origin": [{
|
|
2193
|
+
origin: ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left", isArbitraryValue]
|
|
2194
|
+
}],
|
|
2195
|
+
// Interactivity
|
|
2196
|
+
/**
|
|
2197
|
+
* Accent Color
|
|
2198
|
+
* @see https://tailwindcss.com/docs/accent-color
|
|
2199
|
+
*/
|
|
2200
|
+
accent: [{
|
|
2201
|
+
accent: ["auto", colors]
|
|
2202
|
+
}],
|
|
2203
|
+
/**
|
|
2204
|
+
* Appearance
|
|
2205
|
+
* @see https://tailwindcss.com/docs/appearance
|
|
2206
|
+
*/
|
|
2207
|
+
appearance: [{
|
|
2208
|
+
appearance: ["none", "auto"]
|
|
2209
|
+
}],
|
|
2210
|
+
/**
|
|
2211
|
+
* Cursor
|
|
2212
|
+
* @see https://tailwindcss.com/docs/cursor
|
|
2213
|
+
*/
|
|
2214
|
+
cursor: [{
|
|
2215
|
+
cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", isArbitraryValue]
|
|
2216
|
+
}],
|
|
2217
|
+
/**
|
|
2218
|
+
* Caret Color
|
|
2219
|
+
* @see https://tailwindcss.com/docs/just-in-time-mode#caret-color-utilities
|
|
2220
|
+
*/
|
|
2221
|
+
"caret-color": [{
|
|
2222
|
+
caret: [colors]
|
|
2223
|
+
}],
|
|
2224
|
+
/**
|
|
2225
|
+
* Pointer Events
|
|
2226
|
+
* @see https://tailwindcss.com/docs/pointer-events
|
|
2227
|
+
*/
|
|
2228
|
+
"pointer-events": [{
|
|
2229
|
+
"pointer-events": ["none", "auto"]
|
|
2230
|
+
}],
|
|
2231
|
+
/**
|
|
2232
|
+
* Resize
|
|
2233
|
+
* @see https://tailwindcss.com/docs/resize
|
|
2234
|
+
*/
|
|
2235
|
+
resize: [{
|
|
2236
|
+
resize: ["none", "y", "x", ""]
|
|
2237
|
+
}],
|
|
2238
|
+
/**
|
|
2239
|
+
* Scroll Behavior
|
|
2240
|
+
* @see https://tailwindcss.com/docs/scroll-behavior
|
|
2241
|
+
*/
|
|
2242
|
+
"scroll-behavior": [{
|
|
2243
|
+
scroll: ["auto", "smooth"]
|
|
2244
|
+
}],
|
|
2245
|
+
/**
|
|
2246
|
+
* Scroll Margin
|
|
2247
|
+
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2248
|
+
*/
|
|
2249
|
+
"scroll-m": [{
|
|
2250
|
+
"scroll-m": getSpacingWithArbitrary()
|
|
2251
|
+
}],
|
|
2252
|
+
/**
|
|
2253
|
+
* Scroll Margin X
|
|
2254
|
+
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2255
|
+
*/
|
|
2256
|
+
"scroll-mx": [{
|
|
2257
|
+
"scroll-mx": getSpacingWithArbitrary()
|
|
2258
|
+
}],
|
|
2259
|
+
/**
|
|
2260
|
+
* Scroll Margin Y
|
|
2261
|
+
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2262
|
+
*/
|
|
2263
|
+
"scroll-my": [{
|
|
2264
|
+
"scroll-my": getSpacingWithArbitrary()
|
|
2265
|
+
}],
|
|
2266
|
+
/**
|
|
2267
|
+
* Scroll Margin Start
|
|
2268
|
+
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2269
|
+
*/
|
|
2270
|
+
"scroll-ms": [{
|
|
2271
|
+
"scroll-ms": getSpacingWithArbitrary()
|
|
2272
|
+
}],
|
|
2273
|
+
/**
|
|
2274
|
+
* Scroll Margin End
|
|
2275
|
+
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2276
|
+
*/
|
|
2277
|
+
"scroll-me": [{
|
|
2278
|
+
"scroll-me": getSpacingWithArbitrary()
|
|
2279
|
+
}],
|
|
2280
|
+
/**
|
|
2281
|
+
* Scroll Margin Top
|
|
2282
|
+
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2283
|
+
*/
|
|
2284
|
+
"scroll-mt": [{
|
|
2285
|
+
"scroll-mt": getSpacingWithArbitrary()
|
|
2286
|
+
}],
|
|
2287
|
+
/**
|
|
2288
|
+
* Scroll Margin Right
|
|
2289
|
+
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2290
|
+
*/
|
|
2291
|
+
"scroll-mr": [{
|
|
2292
|
+
"scroll-mr": getSpacingWithArbitrary()
|
|
2293
|
+
}],
|
|
2294
|
+
/**
|
|
2295
|
+
* Scroll Margin Bottom
|
|
2296
|
+
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2297
|
+
*/
|
|
2298
|
+
"scroll-mb": [{
|
|
2299
|
+
"scroll-mb": getSpacingWithArbitrary()
|
|
2300
|
+
}],
|
|
2301
|
+
/**
|
|
2302
|
+
* Scroll Margin Left
|
|
2303
|
+
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2304
|
+
*/
|
|
2305
|
+
"scroll-ml": [{
|
|
2306
|
+
"scroll-ml": getSpacingWithArbitrary()
|
|
2307
|
+
}],
|
|
2308
|
+
/**
|
|
2309
|
+
* Scroll Padding
|
|
2310
|
+
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2311
|
+
*/
|
|
2312
|
+
"scroll-p": [{
|
|
2313
|
+
"scroll-p": getSpacingWithArbitrary()
|
|
2314
|
+
}],
|
|
2315
|
+
/**
|
|
2316
|
+
* Scroll Padding X
|
|
2317
|
+
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2318
|
+
*/
|
|
2319
|
+
"scroll-px": [{
|
|
2320
|
+
"scroll-px": getSpacingWithArbitrary()
|
|
2321
|
+
}],
|
|
2322
|
+
/**
|
|
2323
|
+
* Scroll Padding Y
|
|
2324
|
+
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2325
|
+
*/
|
|
2326
|
+
"scroll-py": [{
|
|
2327
|
+
"scroll-py": getSpacingWithArbitrary()
|
|
2328
|
+
}],
|
|
2329
|
+
/**
|
|
2330
|
+
* Scroll Padding Start
|
|
2331
|
+
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2332
|
+
*/
|
|
2333
|
+
"scroll-ps": [{
|
|
2334
|
+
"scroll-ps": getSpacingWithArbitrary()
|
|
2335
|
+
}],
|
|
2336
|
+
/**
|
|
2337
|
+
* Scroll Padding End
|
|
2338
|
+
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2339
|
+
*/
|
|
2340
|
+
"scroll-pe": [{
|
|
2341
|
+
"scroll-pe": getSpacingWithArbitrary()
|
|
2342
|
+
}],
|
|
2343
|
+
/**
|
|
2344
|
+
* Scroll Padding Top
|
|
2345
|
+
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2346
|
+
*/
|
|
2347
|
+
"scroll-pt": [{
|
|
2348
|
+
"scroll-pt": getSpacingWithArbitrary()
|
|
2349
|
+
}],
|
|
2350
|
+
/**
|
|
2351
|
+
* Scroll Padding Right
|
|
2352
|
+
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2353
|
+
*/
|
|
2354
|
+
"scroll-pr": [{
|
|
2355
|
+
"scroll-pr": getSpacingWithArbitrary()
|
|
2356
|
+
}],
|
|
2357
|
+
/**
|
|
2358
|
+
* Scroll Padding Bottom
|
|
2359
|
+
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2360
|
+
*/
|
|
2361
|
+
"scroll-pb": [{
|
|
2362
|
+
"scroll-pb": getSpacingWithArbitrary()
|
|
2363
|
+
}],
|
|
2364
|
+
/**
|
|
2365
|
+
* Scroll Padding Left
|
|
2366
|
+
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2367
|
+
*/
|
|
2368
|
+
"scroll-pl": [{
|
|
2369
|
+
"scroll-pl": getSpacingWithArbitrary()
|
|
2370
|
+
}],
|
|
2371
|
+
/**
|
|
2372
|
+
* Scroll Snap Align
|
|
2373
|
+
* @see https://tailwindcss.com/docs/scroll-snap-align
|
|
2374
|
+
*/
|
|
2375
|
+
"snap-align": [{
|
|
2376
|
+
snap: ["start", "end", "center", "align-none"]
|
|
2377
|
+
}],
|
|
2378
|
+
/**
|
|
2379
|
+
* Scroll Snap Stop
|
|
2380
|
+
* @see https://tailwindcss.com/docs/scroll-snap-stop
|
|
2381
|
+
*/
|
|
2382
|
+
"snap-stop": [{
|
|
2383
|
+
snap: ["normal", "always"]
|
|
2384
|
+
}],
|
|
2385
|
+
/**
|
|
2386
|
+
* Scroll Snap Type
|
|
2387
|
+
* @see https://tailwindcss.com/docs/scroll-snap-type
|
|
2388
|
+
*/
|
|
2389
|
+
"snap-type": [{
|
|
2390
|
+
snap: ["none", "x", "y", "both"]
|
|
2391
|
+
}],
|
|
2392
|
+
/**
|
|
2393
|
+
* Scroll Snap Type Strictness
|
|
2394
|
+
* @see https://tailwindcss.com/docs/scroll-snap-type
|
|
2395
|
+
*/
|
|
2396
|
+
"snap-strictness": [{
|
|
2397
|
+
snap: ["mandatory", "proximity"]
|
|
2398
|
+
}],
|
|
2399
|
+
/**
|
|
2400
|
+
* Touch Action
|
|
2401
|
+
* @see https://tailwindcss.com/docs/touch-action
|
|
2402
|
+
*/
|
|
2403
|
+
touch: [{
|
|
2404
|
+
touch: ["auto", "none", "manipulation"]
|
|
2405
|
+
}],
|
|
2406
|
+
/**
|
|
2407
|
+
* Touch Action X
|
|
2408
|
+
* @see https://tailwindcss.com/docs/touch-action
|
|
2409
|
+
*/
|
|
2410
|
+
"touch-x": [{
|
|
2411
|
+
"touch-pan": ["x", "left", "right"]
|
|
2412
|
+
}],
|
|
2413
|
+
/**
|
|
2414
|
+
* Touch Action Y
|
|
2415
|
+
* @see https://tailwindcss.com/docs/touch-action
|
|
2416
|
+
*/
|
|
2417
|
+
"touch-y": [{
|
|
2418
|
+
"touch-pan": ["y", "up", "down"]
|
|
2419
|
+
}],
|
|
2420
|
+
/**
|
|
2421
|
+
* Touch Action Pinch Zoom
|
|
2422
|
+
* @see https://tailwindcss.com/docs/touch-action
|
|
2423
|
+
*/
|
|
2424
|
+
"touch-pz": ["touch-pinch-zoom"],
|
|
2425
|
+
/**
|
|
2426
|
+
* User Select
|
|
2427
|
+
* @see https://tailwindcss.com/docs/user-select
|
|
2428
|
+
*/
|
|
2429
|
+
select: [{
|
|
2430
|
+
select: ["none", "text", "all", "auto"]
|
|
2431
|
+
}],
|
|
2432
|
+
/**
|
|
2433
|
+
* Will Change
|
|
2434
|
+
* @see https://tailwindcss.com/docs/will-change
|
|
2435
|
+
*/
|
|
2436
|
+
"will-change": [{
|
|
2437
|
+
"will-change": ["auto", "scroll", "contents", "transform", isArbitraryValue]
|
|
2438
|
+
}],
|
|
2439
|
+
// SVG
|
|
2440
|
+
/**
|
|
2441
|
+
* Fill
|
|
2442
|
+
* @see https://tailwindcss.com/docs/fill
|
|
2443
|
+
*/
|
|
2444
|
+
fill: [{
|
|
2445
|
+
fill: [colors, "none"]
|
|
2446
|
+
}],
|
|
2447
|
+
/**
|
|
2448
|
+
* Stroke Width
|
|
2449
|
+
* @see https://tailwindcss.com/docs/stroke-width
|
|
2450
|
+
*/
|
|
2451
|
+
"stroke-w": [{
|
|
2452
|
+
stroke: [isLength, isArbitraryLength, isArbitraryNumber]
|
|
2453
|
+
}],
|
|
2454
|
+
/**
|
|
2455
|
+
* Stroke
|
|
2456
|
+
* @see https://tailwindcss.com/docs/stroke
|
|
2457
|
+
*/
|
|
2458
|
+
stroke: [{
|
|
2459
|
+
stroke: [colors, "none"]
|
|
2460
|
+
}],
|
|
2461
|
+
// Accessibility
|
|
2462
|
+
/**
|
|
2463
|
+
* Screen Readers
|
|
2464
|
+
* @see https://tailwindcss.com/docs/screen-readers
|
|
2465
|
+
*/
|
|
2466
|
+
sr: ["sr-only", "not-sr-only"],
|
|
2467
|
+
/**
|
|
2468
|
+
* Forced Color Adjust
|
|
2469
|
+
* @see https://tailwindcss.com/docs/forced-color-adjust
|
|
2470
|
+
*/
|
|
2471
|
+
"forced-color-adjust": [{
|
|
2472
|
+
"forced-color-adjust": ["auto", "none"]
|
|
2473
|
+
}]
|
|
2474
|
+
},
|
|
2475
|
+
conflictingClassGroups: {
|
|
2476
|
+
overflow: ["overflow-x", "overflow-y"],
|
|
2477
|
+
overscroll: ["overscroll-x", "overscroll-y"],
|
|
2478
|
+
inset: ["inset-x", "inset-y", "start", "end", "top", "right", "bottom", "left"],
|
|
2479
|
+
"inset-x": ["right", "left"],
|
|
2480
|
+
"inset-y": ["top", "bottom"],
|
|
2481
|
+
flex: ["basis", "grow", "shrink"],
|
|
2482
|
+
gap: ["gap-x", "gap-y"],
|
|
2483
|
+
p: ["px", "py", "ps", "pe", "pt", "pr", "pb", "pl"],
|
|
2484
|
+
px: ["pr", "pl"],
|
|
2485
|
+
py: ["pt", "pb"],
|
|
2486
|
+
m: ["mx", "my", "ms", "me", "mt", "mr", "mb", "ml"],
|
|
2487
|
+
mx: ["mr", "ml"],
|
|
2488
|
+
my: ["mt", "mb"],
|
|
2489
|
+
size: ["w", "h"],
|
|
2490
|
+
"font-size": ["leading"],
|
|
2491
|
+
"fvn-normal": ["fvn-ordinal", "fvn-slashed-zero", "fvn-figure", "fvn-spacing", "fvn-fraction"],
|
|
2492
|
+
"fvn-ordinal": ["fvn-normal"],
|
|
2493
|
+
"fvn-slashed-zero": ["fvn-normal"],
|
|
2494
|
+
"fvn-figure": ["fvn-normal"],
|
|
2495
|
+
"fvn-spacing": ["fvn-normal"],
|
|
2496
|
+
"fvn-fraction": ["fvn-normal"],
|
|
2497
|
+
"line-clamp": ["display", "overflow"],
|
|
2498
|
+
rounded: ["rounded-s", "rounded-e", "rounded-t", "rounded-r", "rounded-b", "rounded-l", "rounded-ss", "rounded-se", "rounded-ee", "rounded-es", "rounded-tl", "rounded-tr", "rounded-br", "rounded-bl"],
|
|
2499
|
+
"rounded-s": ["rounded-ss", "rounded-es"],
|
|
2500
|
+
"rounded-e": ["rounded-se", "rounded-ee"],
|
|
2501
|
+
"rounded-t": ["rounded-tl", "rounded-tr"],
|
|
2502
|
+
"rounded-r": ["rounded-tr", "rounded-br"],
|
|
2503
|
+
"rounded-b": ["rounded-br", "rounded-bl"],
|
|
2504
|
+
"rounded-l": ["rounded-tl", "rounded-bl"],
|
|
2505
|
+
"border-spacing": ["border-spacing-x", "border-spacing-y"],
|
|
2506
|
+
"border-w": ["border-w-s", "border-w-e", "border-w-t", "border-w-r", "border-w-b", "border-w-l"],
|
|
2507
|
+
"border-w-x": ["border-w-r", "border-w-l"],
|
|
2508
|
+
"border-w-y": ["border-w-t", "border-w-b"],
|
|
2509
|
+
"border-color": ["border-color-s", "border-color-e", "border-color-t", "border-color-r", "border-color-b", "border-color-l"],
|
|
2510
|
+
"border-color-x": ["border-color-r", "border-color-l"],
|
|
2511
|
+
"border-color-y": ["border-color-t", "border-color-b"],
|
|
2512
|
+
"scroll-m": ["scroll-mx", "scroll-my", "scroll-ms", "scroll-me", "scroll-mt", "scroll-mr", "scroll-mb", "scroll-ml"],
|
|
2513
|
+
"scroll-mx": ["scroll-mr", "scroll-ml"],
|
|
2514
|
+
"scroll-my": ["scroll-mt", "scroll-mb"],
|
|
2515
|
+
"scroll-p": ["scroll-px", "scroll-py", "scroll-ps", "scroll-pe", "scroll-pt", "scroll-pr", "scroll-pb", "scroll-pl"],
|
|
2516
|
+
"scroll-px": ["scroll-pr", "scroll-pl"],
|
|
2517
|
+
"scroll-py": ["scroll-pt", "scroll-pb"],
|
|
2518
|
+
touch: ["touch-x", "touch-y", "touch-pz"],
|
|
2519
|
+
"touch-x": ["touch"],
|
|
2520
|
+
"touch-y": ["touch"],
|
|
2521
|
+
"touch-pz": ["touch"]
|
|
2522
|
+
},
|
|
2523
|
+
conflictingClassGroupModifiers: {
|
|
2524
|
+
"font-size": ["leading"]
|
|
2525
|
+
}
|
|
2526
|
+
};
|
|
2527
|
+
};
|
|
2528
|
+
var twMerge = /* @__PURE__ */ createTailwindMerge(getDefaultConfig);
|
|
2529
|
+
|
|
2530
|
+
// ../../packages/libs/utils.tsx
|
|
2531
|
+
function cn(...inputs) {
|
|
2532
|
+
return twMerge((0, import_classnames.default)(inputs));
|
|
2533
|
+
}
|
|
2534
|
+
|
|
2535
|
+
// src/atoms/Tooltip/Tooltip.tsx
|
|
2536
|
+
import React4 from "react";
|
|
2537
|
+
|
|
2538
|
+
// ../../node_modules/.bun/framer-motion@12.40.0+d0e719b86e9808b5/node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs
|
|
2539
|
+
import { jsx as jsx3, Fragment } from "react/jsx-runtime";
|
|
2540
|
+
import { useMemo as useMemo2, useRef as useRef3, useState, useContext as useContext3 } from "react";
|
|
2541
|
+
|
|
2542
|
+
// ../../node_modules/.bun/framer-motion@12.40.0+d0e719b86e9808b5/node_modules/framer-motion/dist/es/context/LayoutGroupContext.mjs
|
|
2543
|
+
import { createContext } from "react";
|
|
2544
|
+
var LayoutGroupContext = createContext({});
|
|
2545
|
+
|
|
2546
|
+
// ../../node_modules/.bun/framer-motion@12.40.0+d0e719b86e9808b5/node_modules/framer-motion/dist/es/utils/use-constant.mjs
|
|
2547
|
+
import { useRef } from "react";
|
|
2548
|
+
function useConstant(init) {
|
|
2549
|
+
const ref = useRef(null);
|
|
2550
|
+
if (ref.current === null) {
|
|
2551
|
+
ref.current = init();
|
|
2552
|
+
}
|
|
2553
|
+
return ref.current;
|
|
2554
|
+
}
|
|
2555
|
+
|
|
2556
|
+
// ../../node_modules/.bun/framer-motion@12.40.0+d0e719b86e9808b5/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.mjs
|
|
2557
|
+
import { useLayoutEffect, useEffect } from "react";
|
|
2558
|
+
|
|
2559
|
+
// ../../node_modules/.bun/framer-motion@12.40.0+d0e719b86e9808b5/node_modules/framer-motion/dist/es/utils/is-browser.mjs
|
|
2560
|
+
var isBrowser = typeof window !== "undefined";
|
|
2561
|
+
|
|
2562
|
+
// ../../node_modules/.bun/framer-motion@12.40.0+d0e719b86e9808b5/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.mjs
|
|
2563
|
+
var useIsomorphicLayoutEffect = isBrowser ? useLayoutEffect : useEffect;
|
|
2564
|
+
|
|
2565
|
+
// ../../node_modules/.bun/framer-motion@12.40.0+d0e719b86e9808b5/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.mjs
|
|
2566
|
+
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
2567
|
+
import * as React3 from "react";
|
|
2568
|
+
import { useId as useId2, useMemo } from "react";
|
|
2569
|
+
|
|
2570
|
+
// ../../node_modules/.bun/framer-motion@12.40.0+d0e719b86e9808b5/node_modules/framer-motion/dist/es/context/PresenceContext.mjs
|
|
2571
|
+
import { createContext as createContext2 } from "react";
|
|
2572
|
+
var PresenceContext = /* @__PURE__ */ createContext2(null);
|
|
2573
|
+
|
|
2574
|
+
// ../../node_modules/.bun/framer-motion@12.40.0+d0e719b86e9808b5/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.mjs
|
|
2575
|
+
import { jsx } from "react/jsx-runtime";
|
|
2576
|
+
|
|
2577
|
+
// ../../node_modules/.bun/motion-utils@12.39.0/node_modules/motion-utils/dist/es/is-object.mjs
|
|
2578
|
+
var isObject = (value) => typeof value === "object" && value !== null;
|
|
2579
|
+
|
|
2580
|
+
// ../../node_modules/.bun/motion-dom@12.40.0/node_modules/motion-dom/dist/es/utils/is-html-element.mjs
|
|
2581
|
+
function isHTMLElement(element) {
|
|
2582
|
+
return isObject(element) && "offsetHeight" in element && !("ownerSVGElement" in element);
|
|
2583
|
+
}
|
|
2584
|
+
|
|
2585
|
+
// ../../node_modules/.bun/framer-motion@12.40.0+d0e719b86e9808b5/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.mjs
|
|
2586
|
+
import * as React2 from "react";
|
|
2587
|
+
import { useId, useRef as useRef2, useContext, useInsertionEffect } from "react";
|
|
2588
|
+
|
|
2589
|
+
// ../../node_modules/.bun/framer-motion@12.40.0+d0e719b86e9808b5/node_modules/framer-motion/dist/es/context/MotionConfigContext.mjs
|
|
2590
|
+
import { createContext as createContext3 } from "react";
|
|
2591
|
+
var MotionConfigContext = createContext3({
|
|
2592
|
+
transformPagePoint: (p) => p,
|
|
2593
|
+
isStatic: false,
|
|
2594
|
+
reducedMotion: "never"
|
|
2595
|
+
});
|
|
2596
|
+
|
|
2597
|
+
// ../../node_modules/.bun/framer-motion@12.40.0+d0e719b86e9808b5/node_modules/framer-motion/dist/es/utils/use-composed-ref.mjs
|
|
2598
|
+
import * as React from "react";
|
|
2599
|
+
function setRef(ref, value) {
|
|
2600
|
+
if (typeof ref === "function") {
|
|
2601
|
+
return ref(value);
|
|
2602
|
+
} else if (ref !== null && ref !== void 0) {
|
|
2603
|
+
ref.current = value;
|
|
2604
|
+
}
|
|
2605
|
+
}
|
|
2606
|
+
function composeRefs(...refs) {
|
|
2607
|
+
return (node) => {
|
|
2608
|
+
let hasCleanup = false;
|
|
2609
|
+
const cleanups = refs.map((ref) => {
|
|
2610
|
+
const cleanup = setRef(ref, node);
|
|
2611
|
+
if (!hasCleanup && typeof cleanup === "function") {
|
|
2612
|
+
hasCleanup = true;
|
|
2613
|
+
}
|
|
2614
|
+
return cleanup;
|
|
2615
|
+
});
|
|
2616
|
+
if (hasCleanup) {
|
|
2617
|
+
return () => {
|
|
2618
|
+
for (let i = 0; i < cleanups.length; i++) {
|
|
2619
|
+
const cleanup = cleanups[i];
|
|
2620
|
+
if (typeof cleanup === "function") {
|
|
2621
|
+
cleanup();
|
|
2622
|
+
} else {
|
|
2623
|
+
setRef(refs[i], null);
|
|
2624
|
+
}
|
|
2625
|
+
}
|
|
2626
|
+
};
|
|
2627
|
+
}
|
|
2628
|
+
};
|
|
2629
|
+
}
|
|
2630
|
+
function useComposedRefs(...refs) {
|
|
2631
|
+
return React.useCallback(composeRefs(...refs), refs);
|
|
2632
|
+
}
|
|
2633
|
+
|
|
2634
|
+
// ../../node_modules/.bun/framer-motion@12.40.0+d0e719b86e9808b5/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.mjs
|
|
2635
|
+
var PopChildMeasure = class extends React2.Component {
|
|
2636
|
+
getSnapshotBeforeUpdate(prevProps) {
|
|
2637
|
+
const element = this.props.childRef.current;
|
|
2638
|
+
if (isHTMLElement(element) && prevProps.isPresent && !this.props.isPresent && this.props.pop !== false) {
|
|
2639
|
+
const parent = element.offsetParent;
|
|
2640
|
+
const parentWidth = isHTMLElement(parent) ? parent.offsetWidth || 0 : 0;
|
|
2641
|
+
const parentHeight = isHTMLElement(parent) ? parent.offsetHeight || 0 : 0;
|
|
2642
|
+
const computedStyle = getComputedStyle(element);
|
|
2643
|
+
const size = this.props.sizeRef.current;
|
|
2644
|
+
size.height = parseFloat(computedStyle.height);
|
|
2645
|
+
size.width = parseFloat(computedStyle.width);
|
|
2646
|
+
size.top = element.offsetTop;
|
|
2647
|
+
size.left = element.offsetLeft;
|
|
2648
|
+
size.right = parentWidth - size.width - size.left;
|
|
2649
|
+
size.bottom = parentHeight - size.height - size.top;
|
|
2650
|
+
size.direction = computedStyle.direction;
|
|
2651
|
+
}
|
|
2652
|
+
return null;
|
|
2653
|
+
}
|
|
2654
|
+
/**
|
|
2655
|
+
* Required with getSnapshotBeforeUpdate to stop React complaining.
|
|
2656
|
+
*/
|
|
2657
|
+
componentDidUpdate() {
|
|
2658
|
+
}
|
|
2659
|
+
render() {
|
|
2660
|
+
return this.props.children;
|
|
2661
|
+
}
|
|
2662
|
+
};
|
|
2663
|
+
function PopChild({ children, isPresent, anchorX, anchorY, root, pop }) {
|
|
2664
|
+
var _a, _b;
|
|
2665
|
+
const id = useId();
|
|
2666
|
+
const ref = useRef2(null);
|
|
2667
|
+
const size = useRef2({
|
|
2668
|
+
width: 0,
|
|
2669
|
+
height: 0,
|
|
2670
|
+
top: 0,
|
|
2671
|
+
left: 0,
|
|
2672
|
+
right: 0,
|
|
2673
|
+
bottom: 0,
|
|
2674
|
+
direction: "ltr"
|
|
2675
|
+
});
|
|
2676
|
+
const { nonce } = useContext(MotionConfigContext);
|
|
2677
|
+
const childRef = (_b = (_a = children.props) == null ? void 0 : _a.ref) != null ? _b : children == null ? void 0 : children.ref;
|
|
2678
|
+
const composedRef = useComposedRefs(ref, childRef);
|
|
2679
|
+
useInsertionEffect(() => {
|
|
2680
|
+
const { width, height, top, left, right, bottom, direction } = size.current;
|
|
2681
|
+
if (isPresent || pop === false || !ref.current || !width || !height)
|
|
2682
|
+
return;
|
|
2683
|
+
const isRTL = direction === "rtl";
|
|
2684
|
+
const x = anchorX === "left" ? isRTL ? `right: ${right}` : `left: ${left}` : isRTL ? `left: ${left}` : `right: ${right}`;
|
|
2685
|
+
const y = anchorY === "bottom" ? `bottom: ${bottom}` : `top: ${top}`;
|
|
2686
|
+
ref.current.dataset.motionPopId = id;
|
|
2687
|
+
const style = document.createElement("style");
|
|
2688
|
+
if (nonce)
|
|
2689
|
+
style.nonce = nonce;
|
|
2690
|
+
const parent = root != null ? root : document.head;
|
|
2691
|
+
parent.appendChild(style);
|
|
2692
|
+
if (style.sheet) {
|
|
2693
|
+
style.sheet.insertRule(`
|
|
2694
|
+
[data-motion-pop-id="${id}"] {
|
|
2695
|
+
position: absolute !important;
|
|
2696
|
+
width: ${width}px !important;
|
|
2697
|
+
height: ${height}px !important;
|
|
2698
|
+
${x}px !important;
|
|
2699
|
+
${y}px !important;
|
|
2700
|
+
}
|
|
2701
|
+
`);
|
|
2702
|
+
}
|
|
2703
|
+
return () => {
|
|
2704
|
+
var _a2;
|
|
2705
|
+
(_a2 = ref.current) == null ? void 0 : _a2.removeAttribute("data-motion-pop-id");
|
|
2706
|
+
if (parent.contains(style)) {
|
|
2707
|
+
parent.removeChild(style);
|
|
2708
|
+
}
|
|
2709
|
+
};
|
|
2710
|
+
}, [isPresent]);
|
|
2711
|
+
return jsx(PopChildMeasure, { isPresent, childRef: ref, sizeRef: size, pop, children: pop === false ? children : React2.cloneElement(children, { ref: composedRef }) });
|
|
2712
|
+
}
|
|
2713
|
+
|
|
2714
|
+
// ../../node_modules/.bun/framer-motion@12.40.0+d0e719b86e9808b5/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.mjs
|
|
2715
|
+
var PresenceChild = ({ children, initial, isPresent, onExitComplete, custom, presenceAffectsLayout, mode, anchorX, anchorY, root }) => {
|
|
2716
|
+
const presenceChildren = useConstant(newChildrenMap);
|
|
2717
|
+
const id = useId2();
|
|
2718
|
+
let isReusedContext = true;
|
|
2719
|
+
let context = useMemo(() => {
|
|
2720
|
+
isReusedContext = false;
|
|
2721
|
+
return {
|
|
2722
|
+
id,
|
|
2723
|
+
initial,
|
|
2724
|
+
isPresent,
|
|
2725
|
+
custom,
|
|
2726
|
+
onExitComplete: (childId) => {
|
|
2727
|
+
presenceChildren.set(childId, true);
|
|
2728
|
+
for (const isComplete of presenceChildren.values()) {
|
|
2729
|
+
if (!isComplete)
|
|
2730
|
+
return;
|
|
2731
|
+
}
|
|
2732
|
+
onExitComplete && onExitComplete();
|
|
2733
|
+
},
|
|
2734
|
+
register: (childId) => {
|
|
2735
|
+
presenceChildren.set(childId, false);
|
|
2736
|
+
return () => presenceChildren.delete(childId);
|
|
2737
|
+
}
|
|
2738
|
+
};
|
|
2739
|
+
}, [isPresent, presenceChildren, onExitComplete]);
|
|
2740
|
+
if (presenceAffectsLayout && isReusedContext) {
|
|
2741
|
+
context = { ...context };
|
|
2742
|
+
}
|
|
2743
|
+
useMemo(() => {
|
|
2744
|
+
presenceChildren.forEach((_, key) => presenceChildren.set(key, false));
|
|
2745
|
+
}, [isPresent]);
|
|
2746
|
+
React3.useEffect(() => {
|
|
2747
|
+
!isPresent && !presenceChildren.size && onExitComplete && onExitComplete();
|
|
2748
|
+
}, [isPresent]);
|
|
2749
|
+
children = jsx2(PopChild, { pop: mode === "popLayout", isPresent, anchorX, anchorY, root, children });
|
|
2750
|
+
return jsx2(PresenceContext.Provider, { value: context, children });
|
|
2751
|
+
};
|
|
2752
|
+
function newChildrenMap() {
|
|
2753
|
+
return /* @__PURE__ */ new Map();
|
|
2754
|
+
}
|
|
2755
|
+
|
|
2756
|
+
// ../../node_modules/.bun/framer-motion@12.40.0+d0e719b86e9808b5/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.mjs
|
|
2757
|
+
import { useContext as useContext2, useId as useId3, useEffect as useEffect3, useCallback as useCallback2 } from "react";
|
|
2758
|
+
function usePresence(subscribe = true) {
|
|
2759
|
+
const context = useContext2(PresenceContext);
|
|
2760
|
+
if (context === null)
|
|
2761
|
+
return [true, null];
|
|
2762
|
+
const { isPresent, onExitComplete, register } = context;
|
|
2763
|
+
const id = useId3();
|
|
2764
|
+
useEffect3(() => {
|
|
2765
|
+
if (subscribe) {
|
|
2766
|
+
return register(id);
|
|
2767
|
+
}
|
|
2768
|
+
}, [subscribe]);
|
|
2769
|
+
const safeToRemove = useCallback2(() => subscribe && onExitComplete && onExitComplete(id), [id, onExitComplete, subscribe]);
|
|
2770
|
+
return !isPresent && onExitComplete ? [false, safeToRemove] : [true];
|
|
2771
|
+
}
|
|
2772
|
+
|
|
2773
|
+
// ../../node_modules/.bun/framer-motion@12.40.0+d0e719b86e9808b5/node_modules/framer-motion/dist/es/components/AnimatePresence/utils.mjs
|
|
2774
|
+
import { Children, isValidElement } from "react";
|
|
2775
|
+
var getChildKey = (child) => child.key || "";
|
|
2776
|
+
function onlyElements(children) {
|
|
2777
|
+
const filtered = [];
|
|
2778
|
+
Children.forEach(children, (child) => {
|
|
2779
|
+
if (isValidElement(child))
|
|
2780
|
+
filtered.push(child);
|
|
2781
|
+
});
|
|
2782
|
+
return filtered;
|
|
2783
|
+
}
|
|
2784
|
+
|
|
2785
|
+
// ../../node_modules/.bun/framer-motion@12.40.0+d0e719b86e9808b5/node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs
|
|
2786
|
+
var AnimatePresence = ({ children, custom, initial = true, onExitComplete, presenceAffectsLayout = true, mode = "sync", propagate = false, anchorX = "left", anchorY = "top", root }) => {
|
|
2787
|
+
const [isParentPresent, safeToRemove] = usePresence(propagate);
|
|
2788
|
+
const presentChildren = useMemo2(() => onlyElements(children), [children]);
|
|
2789
|
+
const presentKeys = propagate && !isParentPresent ? [] : presentChildren.map(getChildKey);
|
|
2790
|
+
const isInitialRender = useRef3(true);
|
|
2791
|
+
const pendingPresentChildren = useRef3(presentChildren);
|
|
2792
|
+
const exitComplete = useConstant(() => /* @__PURE__ */ new Map());
|
|
2793
|
+
const exitingComponents = useRef3(/* @__PURE__ */ new Set());
|
|
2794
|
+
const [diffedChildren, setDiffedChildren] = useState(presentChildren);
|
|
2795
|
+
const [renderedChildren, setRenderedChildren] = useState(presentChildren);
|
|
2796
|
+
useIsomorphicLayoutEffect(() => {
|
|
2797
|
+
isInitialRender.current = false;
|
|
2798
|
+
pendingPresentChildren.current = presentChildren;
|
|
2799
|
+
for (let i = 0; i < renderedChildren.length; i++) {
|
|
2800
|
+
const key = getChildKey(renderedChildren[i]);
|
|
2801
|
+
if (!presentKeys.includes(key)) {
|
|
2802
|
+
if (exitComplete.get(key) !== true) {
|
|
2803
|
+
exitComplete.set(key, false);
|
|
2804
|
+
}
|
|
2805
|
+
} else {
|
|
2806
|
+
exitComplete.delete(key);
|
|
2807
|
+
exitingComponents.current.delete(key);
|
|
2808
|
+
}
|
|
2809
|
+
}
|
|
2810
|
+
}, [renderedChildren, presentKeys.length, presentKeys.join("-")]);
|
|
2811
|
+
const exitingChildren = [];
|
|
2812
|
+
if (presentChildren !== diffedChildren) {
|
|
2813
|
+
let nextChildren = [...presentChildren];
|
|
2814
|
+
for (let i = 0; i < renderedChildren.length; i++) {
|
|
2815
|
+
const child = renderedChildren[i];
|
|
2816
|
+
const key = getChildKey(child);
|
|
2817
|
+
if (!presentKeys.includes(key)) {
|
|
2818
|
+
nextChildren.splice(i, 0, child);
|
|
2819
|
+
exitingChildren.push(child);
|
|
2820
|
+
}
|
|
2821
|
+
}
|
|
2822
|
+
if (mode === "wait" && exitingChildren.length) {
|
|
2823
|
+
nextChildren = exitingChildren;
|
|
2824
|
+
}
|
|
2825
|
+
setRenderedChildren(onlyElements(nextChildren));
|
|
2826
|
+
setDiffedChildren(presentChildren);
|
|
2827
|
+
return null;
|
|
2828
|
+
}
|
|
2829
|
+
if (process.env.NODE_ENV !== "production" && mode === "wait" && renderedChildren.length > 1) {
|
|
2830
|
+
console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);
|
|
2831
|
+
}
|
|
2832
|
+
const { forceRender } = useContext3(LayoutGroupContext);
|
|
2833
|
+
return jsx3(Fragment, { children: renderedChildren.map((child) => {
|
|
2834
|
+
const key = getChildKey(child);
|
|
2835
|
+
const isPresent = propagate && !isParentPresent ? false : presentChildren === renderedChildren || presentKeys.includes(key);
|
|
2836
|
+
const onExit = () => {
|
|
2837
|
+
if (exitingComponents.current.has(key)) {
|
|
2838
|
+
return;
|
|
2839
|
+
}
|
|
2840
|
+
if (exitComplete.has(key)) {
|
|
2841
|
+
exitingComponents.current.add(key);
|
|
2842
|
+
exitComplete.set(key, true);
|
|
2843
|
+
} else {
|
|
2844
|
+
return;
|
|
2845
|
+
}
|
|
2846
|
+
let isEveryExitComplete = true;
|
|
2847
|
+
exitComplete.forEach((isExitComplete) => {
|
|
2848
|
+
if (!isExitComplete)
|
|
2849
|
+
isEveryExitComplete = false;
|
|
2850
|
+
});
|
|
2851
|
+
if (isEveryExitComplete) {
|
|
2852
|
+
forceRender == null ? void 0 : forceRender();
|
|
2853
|
+
setRenderedChildren(pendingPresentChildren.current);
|
|
2854
|
+
propagate && (safeToRemove == null ? void 0 : safeToRemove());
|
|
2855
|
+
onExitComplete && onExitComplete();
|
|
2856
|
+
}
|
|
2857
|
+
};
|
|
2858
|
+
return jsx3(PresenceChild, { isPresent, initial: !isInitialRender.current || initial ? void 0 : false, custom, presenceAffectsLayout, mode, root, onExitComplete: isPresent ? void 0 : onExit, anchorX, anchorY, children: child }, key);
|
|
2859
|
+
}) });
|
|
2860
|
+
};
|
|
2861
|
+
|
|
2862
|
+
// src/atoms/Tooltip/Tooltip.tsx
|
|
2863
|
+
var animationClasses = {
|
|
2864
|
+
fade: "opacity-0 animate-fadeIn",
|
|
2865
|
+
scale: "animate-scaleIn",
|
|
2866
|
+
none: ""
|
|
2867
|
+
};
|
|
2868
|
+
var variantBorderColorClasses = {
|
|
2869
|
+
success: "tooltip-success-variant",
|
|
2870
|
+
warning: "tooltip-warning-variant",
|
|
2871
|
+
error: "tooltip-error-variant",
|
|
2872
|
+
info: "tooltip-info-variant"
|
|
2873
|
+
};
|
|
2874
|
+
var Tooltip = ({
|
|
2875
|
+
id,
|
|
2876
|
+
className,
|
|
2877
|
+
content,
|
|
2878
|
+
placement = "top",
|
|
2879
|
+
trigger = "hover",
|
|
2880
|
+
delay = 0,
|
|
2881
|
+
arrow = true,
|
|
2882
|
+
animation = "fade",
|
|
2883
|
+
maxWidth,
|
|
2884
|
+
disabled,
|
|
2885
|
+
asChild = "div",
|
|
2886
|
+
ref,
|
|
2887
|
+
isVisible = false,
|
|
2888
|
+
closeButton,
|
|
2889
|
+
onClose,
|
|
2890
|
+
onShow,
|
|
2891
|
+
onHide,
|
|
2892
|
+
children,
|
|
2893
|
+
variant,
|
|
2894
|
+
pointerDirection = "left"
|
|
2895
|
+
}) => {
|
|
2896
|
+
var _a, _b;
|
|
2897
|
+
const [visible, setVisible] = React4.useState(isVisible);
|
|
2898
|
+
const internalRef = React4.useRef(null);
|
|
2899
|
+
const mergedRef = mergeRefs(ref, internalRef);
|
|
2900
|
+
React4.useEffect(() => {
|
|
2901
|
+
if (visible) {
|
|
2902
|
+
onShow == null ? void 0 : onShow();
|
|
2903
|
+
}
|
|
2904
|
+
}, [visible, onShow]);
|
|
2905
|
+
function mergeRefs(...refs) {
|
|
2906
|
+
return (value) => {
|
|
2907
|
+
refs.forEach((ref2) => {
|
|
2908
|
+
if (typeof ref2 === "function") {
|
|
2909
|
+
ref2(value);
|
|
2910
|
+
} else if (ref2) {
|
|
2911
|
+
ref2.current = value;
|
|
2912
|
+
}
|
|
2913
|
+
});
|
|
2914
|
+
};
|
|
2915
|
+
}
|
|
2916
|
+
const getContainerPositionClass = (position, pointerDirection2) => {
|
|
2917
|
+
if (position === "bottom") {
|
|
2918
|
+
if (pointerDirection2 === "left")
|
|
2919
|
+
return "top-[calc(100%+8px)] left-0";
|
|
2920
|
+
if (pointerDirection2 === "center")
|
|
2921
|
+
return "top-[calc(100%+8px)] left-1/2 transform -translate-x-1/2";
|
|
2922
|
+
if (pointerDirection2 === "right")
|
|
2923
|
+
return "top-[calc(100%+8px)] right-0";
|
|
2924
|
+
} else if (position === "top") {
|
|
2925
|
+
if (pointerDirection2 === "left")
|
|
2926
|
+
return "bottom-[calc(100%+8px)] left-0";
|
|
2927
|
+
if (pointerDirection2 === "center")
|
|
2928
|
+
return "bottom-[calc(100%+8px)] left-1/2 transform -translate-x-1/2";
|
|
2929
|
+
if (pointerDirection2 === "right")
|
|
2930
|
+
return "bottom-[calc(100%+8px)] right-0";
|
|
2931
|
+
} else if (position === "left") {
|
|
2932
|
+
if (pointerDirection2 === "left")
|
|
2933
|
+
return "right-[calc(100%+8px)] top-0";
|
|
2934
|
+
if (pointerDirection2 === "center")
|
|
2935
|
+
return "right-[calc(100%+8px)] top-1/2 transform -translate-y-1/2";
|
|
2936
|
+
if (pointerDirection2 === "right")
|
|
2937
|
+
return "right-[calc(100%+8px)] bottom-0";
|
|
2938
|
+
} else if (position === "right") {
|
|
2939
|
+
if (pointerDirection2 === "left")
|
|
2940
|
+
return "left-[calc(100%+8px)] top-0";
|
|
2941
|
+
if (pointerDirection2 === "center")
|
|
2942
|
+
return "left-[calc(100%+8px)] top-1/2 transform -translate-y-1/2";
|
|
2943
|
+
if (pointerDirection2 === "right")
|
|
2944
|
+
return "left-[calc(100%+8px)] bottom-0";
|
|
2945
|
+
}
|
|
2946
|
+
return "";
|
|
2947
|
+
};
|
|
2948
|
+
const getVariantContainerClass = (position, pointerDirection2) => {
|
|
2949
|
+
if (position == "bottom") {
|
|
2950
|
+
if (pointerDirection2 === "left")
|
|
2951
|
+
return "top-[-2px] left-0 h-4 w-[100px]";
|
|
2952
|
+
if (pointerDirection2 === "center")
|
|
2953
|
+
return "top-[-2px] left-1/2 transform -translate-x-1/2 h-4 w-[100px]";
|
|
2954
|
+
if (pointerDirection2 === "right")
|
|
2955
|
+
return "top-[-2px] right-0 h-4 w-[100px]";
|
|
2956
|
+
} else if (position == "top") {
|
|
2957
|
+
if (pointerDirection2 === "left")
|
|
2958
|
+
return "bottom-[-2px] left-0 h-4 w-[100px]";
|
|
2959
|
+
if (pointerDirection2 === "center")
|
|
2960
|
+
return "bottom-[-2px] left-1/2 transform -translate-x-1/2 h-4 w-[100px]";
|
|
2961
|
+
if (pointerDirection2 === "right")
|
|
2962
|
+
return "bottom-[-2px] right-0 h-4 w-[100px]";
|
|
2963
|
+
} else if (position == "left") {
|
|
2964
|
+
return "left-[calc(100%-13px)] top-1/2 transform -translate-y-1/2 h-[100px] w-4";
|
|
2965
|
+
} else if (position == "right") {
|
|
2966
|
+
return "right-[calc(100%-13px)] top-1/2 transform -translate-y-1/2 h-[100px] w-4";
|
|
2967
|
+
}
|
|
2968
|
+
return "";
|
|
2969
|
+
};
|
|
2970
|
+
function useTooltipVisibility(ref2, trigger2, delay2) {
|
|
2971
|
+
React4.useEffect(() => {
|
|
2972
|
+
const el = ref2.current;
|
|
2973
|
+
if (!el || disabled || content === null || content === void 0)
|
|
2974
|
+
return;
|
|
2975
|
+
if (trigger2 === "click") {
|
|
2976
|
+
const handleClick = () => {
|
|
2977
|
+
setVisible((prev) => !prev);
|
|
2978
|
+
};
|
|
2979
|
+
el.addEventListener("click", handleClick);
|
|
2980
|
+
return () => {
|
|
2981
|
+
el.removeEventListener("click", handleClick);
|
|
2982
|
+
};
|
|
2983
|
+
} else if (trigger2 === "focus") {
|
|
2984
|
+
const handleFocus = () => {
|
|
2985
|
+
setVisible(true);
|
|
2986
|
+
};
|
|
2987
|
+
const handleBlur = () => {
|
|
2988
|
+
onHide == null ? void 0 : onHide();
|
|
2989
|
+
setVisible(false);
|
|
2990
|
+
};
|
|
2991
|
+
el.addEventListener("focus", handleFocus);
|
|
2992
|
+
el.addEventListener("blur", handleBlur);
|
|
2993
|
+
return () => {
|
|
2994
|
+
el.removeEventListener("focus", handleFocus);
|
|
2995
|
+
el.removeEventListener("blur", handleBlur);
|
|
2996
|
+
};
|
|
2997
|
+
} else if (trigger2 === "hover") {
|
|
2998
|
+
const handleMouseEnter = () => {
|
|
2999
|
+
if (delay2) {
|
|
3000
|
+
setTimeout(() => {
|
|
3001
|
+
setVisible(true);
|
|
3002
|
+
}, delay2);
|
|
3003
|
+
} else {
|
|
3004
|
+
setVisible(true);
|
|
3005
|
+
}
|
|
3006
|
+
};
|
|
3007
|
+
const handleMouseLeave = () => {
|
|
3008
|
+
setVisible(false);
|
|
3009
|
+
onHide == null ? void 0 : onHide();
|
|
3010
|
+
};
|
|
3011
|
+
el.addEventListener("mouseenter", handleMouseEnter);
|
|
3012
|
+
el.addEventListener("mouseleave", handleMouseLeave);
|
|
3013
|
+
return () => {
|
|
3014
|
+
el.removeEventListener("mouseenter", handleMouseEnter);
|
|
3015
|
+
el.removeEventListener("mouseleave", handleMouseLeave);
|
|
3016
|
+
};
|
|
3017
|
+
}
|
|
3018
|
+
}, [trigger2, ref2, delay2]);
|
|
3019
|
+
return visible;
|
|
3020
|
+
}
|
|
3021
|
+
const useTooltipArrowPosition = (position, pointerDirection2 = "left") => {
|
|
3022
|
+
return React4.useMemo(() => {
|
|
3023
|
+
let arrowPositionClass2 = "";
|
|
3024
|
+
let arrowInlineStyle2 = {};
|
|
3025
|
+
if (position === "bottom") {
|
|
3026
|
+
arrowInlineStyle2 = { top: "-4px" };
|
|
3027
|
+
arrowPositionClass2 = pointerDirection2 === "left" ? "left-2" : pointerDirection2 === "right" ? "right-2" : "left-1/2 transform -translate-x-1/2";
|
|
3028
|
+
} else if (position === "top") {
|
|
3029
|
+
arrowInlineStyle2 = { bottom: "-4px" };
|
|
3030
|
+
arrowPositionClass2 = pointerDirection2 === "left" ? "left-2" : pointerDirection2 === "right" ? "right-2" : pointerDirection2 === "center" ? "left-1/2 transform -translate-x-1/2" : "bottom-[-2px] left-0 h-4 w-[100px]";
|
|
3031
|
+
} else if (position === "left") {
|
|
3032
|
+
arrowInlineStyle2 = { right: "-4px" };
|
|
3033
|
+
arrowPositionClass2 = "top-1/2 transform -translate-y-1/2";
|
|
3034
|
+
} else if (position === "right") {
|
|
3035
|
+
arrowInlineStyle2 = { left: "-4px" };
|
|
3036
|
+
arrowPositionClass2 = "top-1/2 transform -translate-y-1/2";
|
|
3037
|
+
}
|
|
3038
|
+
return { arrowPositionClass: arrowPositionClass2, arrowInlineStyle: arrowInlineStyle2 };
|
|
3039
|
+
}, [position, pointerDirection2]);
|
|
3040
|
+
};
|
|
3041
|
+
useTooltipVisibility(internalRef, trigger, delay);
|
|
3042
|
+
const { arrowPositionClass, arrowInlineStyle } = useTooltipArrowPosition(
|
|
3043
|
+
placement,
|
|
3044
|
+
pointerDirection
|
|
3045
|
+
);
|
|
3046
|
+
const tooltipBgClass = ((_a = className == null ? void 0 : className.match(/bg-(?:\[.*?]|[a-zA-Z0-9-]+)/)) == null ? void 0 : _a[0]) || "bg-white";
|
|
3047
|
+
const textColor = ((_b = className == null ? void 0 : className.match(/text-[a-zA-Z0-9-]+/)) == null ? void 0 : _b[0]) || "text-inputDefaultText";
|
|
3048
|
+
const containerPositionClass = cn(
|
|
3049
|
+
"absolute z-10",
|
|
3050
|
+
className,
|
|
3051
|
+
getContainerPositionClass(placement, pointerDirection)
|
|
3052
|
+
);
|
|
3053
|
+
const variantContainerClass = getVariantContainerClass(
|
|
3054
|
+
placement,
|
|
3055
|
+
pointerDirection
|
|
3056
|
+
);
|
|
3057
|
+
const renderArrow = () => /* @__PURE__ */ React4.createElement(
|
|
3058
|
+
"div",
|
|
3059
|
+
{
|
|
3060
|
+
className: cn(
|
|
3061
|
+
"absolute h-2 w-2 rotate-45 bg-inherit",
|
|
3062
|
+
arrowPositionClass,
|
|
3063
|
+
variant && `tooltip-${placement}-variant-arrow-${variant}`
|
|
3064
|
+
),
|
|
3065
|
+
style: arrowInlineStyle
|
|
3066
|
+
}
|
|
3067
|
+
);
|
|
3068
|
+
const hideToolTip = () => {
|
|
3069
|
+
setVisible(false);
|
|
3070
|
+
onClose == null ? void 0 : onClose();
|
|
3071
|
+
};
|
|
3072
|
+
const renderCloseButton = () => /* @__PURE__ */ React4.createElement(
|
|
3073
|
+
"button",
|
|
3074
|
+
{
|
|
3075
|
+
tabIndex: 0,
|
|
3076
|
+
"aria-label": "Close tooltip",
|
|
3077
|
+
type: "button",
|
|
3078
|
+
className: "absolute top-4 right-4 cursor-pointer text-[var(--color-secondary)]",
|
|
3079
|
+
onClick: hideToolTip
|
|
3080
|
+
},
|
|
3081
|
+
"\u2715"
|
|
3082
|
+
);
|
|
3083
|
+
const renderVariantBorder = () => /* @__PURE__ */ React4.createElement(
|
|
3084
|
+
"div",
|
|
3085
|
+
{
|
|
3086
|
+
className: cn(
|
|
3087
|
+
"absolute z-[-1] flex",
|
|
3088
|
+
variant && variantBorderColorClasses[variant],
|
|
3089
|
+
variantContainerClass
|
|
3090
|
+
)
|
|
3091
|
+
}
|
|
3092
|
+
);
|
|
3093
|
+
return /* @__PURE__ */ React4.createElement("div", { ref: mergedRef, className: "relative inline-block" }, React4.createElement(
|
|
3094
|
+
asChild,
|
|
3095
|
+
{ id },
|
|
3096
|
+
/* @__PURE__ */ React4.createElement(React4.Fragment, null, children, /* @__PURE__ */ React4.createElement(AnimatePresence, null, visible && /* @__PURE__ */ React4.createElement(
|
|
3097
|
+
"div",
|
|
3098
|
+
{
|
|
3099
|
+
tabIndex: 0,
|
|
3100
|
+
role: "alert",
|
|
3101
|
+
"data-testid": "tooltip-container",
|
|
3102
|
+
className: cn(
|
|
3103
|
+
"w-max",
|
|
3104
|
+
containerPositionClass,
|
|
3105
|
+
animationClasses[animation]
|
|
3106
|
+
),
|
|
3107
|
+
style: {
|
|
3108
|
+
maxWidth: typeof maxWidth === "number" ? `${maxWidth}px` : maxWidth
|
|
3109
|
+
}
|
|
3110
|
+
},
|
|
3111
|
+
/* @__PURE__ */ React4.createElement(
|
|
3112
|
+
"div",
|
|
3113
|
+
{
|
|
3114
|
+
"data-testid": "tooltip",
|
|
3115
|
+
className: cn(
|
|
3116
|
+
className,
|
|
3117
|
+
tooltipBgClass,
|
|
3118
|
+
"relative flex flex-col items-start gap-1 px-2 py-1",
|
|
3119
|
+
textColor
|
|
3120
|
+
)
|
|
3121
|
+
},
|
|
3122
|
+
closeButton && renderCloseButton(),
|
|
3123
|
+
content,
|
|
3124
|
+
arrow && content && renderArrow(),
|
|
3125
|
+
variant && renderVariantBorder()
|
|
3126
|
+
)
|
|
3127
|
+
)))
|
|
3128
|
+
));
|
|
3129
|
+
};
|
|
3130
|
+
|
|
3131
|
+
// ../../packages/icons/src/web/X.tsx
|
|
3132
|
+
import React5 from "react";
|
|
3133
|
+
var X = ({
|
|
3134
|
+
size = 16,
|
|
3135
|
+
strokeWidth = 2,
|
|
3136
|
+
color = "currentColor",
|
|
3137
|
+
className,
|
|
3138
|
+
...props
|
|
3139
|
+
}) => /* @__PURE__ */ React5.createElement(
|
|
3140
|
+
"svg",
|
|
3141
|
+
{
|
|
3142
|
+
fill: "none",
|
|
3143
|
+
"aria-hidden": true,
|
|
3144
|
+
width: size,
|
|
3145
|
+
height: size,
|
|
3146
|
+
viewBox: "0 0 24 24",
|
|
3147
|
+
className,
|
|
3148
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
3149
|
+
...props
|
|
3150
|
+
},
|
|
3151
|
+
/* @__PURE__ */ React5.createElement(
|
|
3152
|
+
"path",
|
|
3153
|
+
{
|
|
3154
|
+
d: "M18 6L6 18M6 6l12 12",
|
|
3155
|
+
stroke: color,
|
|
3156
|
+
strokeLinecap: "round",
|
|
3157
|
+
strokeLinejoin: "round",
|
|
3158
|
+
strokeWidth
|
|
3159
|
+
}
|
|
3160
|
+
)
|
|
3161
|
+
);
|
|
3162
|
+
|
|
3163
|
+
// ../../packages/icons/src/web/SportsBetting.tsx
|
|
3164
|
+
import React6 from "react";
|
|
3165
|
+
|
|
3166
|
+
// ../../packages/icons/src/web/SportsBettingLogo.tsx
|
|
3167
|
+
import React7 from "react";
|
|
3168
|
+
|
|
3169
|
+
// src/atoms/TextArea/TextArea.tsx
|
|
3170
|
+
import React8, { useEffect as useEffect4, useRef as useRef4, useState as useState2 } from "react";
|
|
3171
|
+
var TextArea = ({
|
|
3172
|
+
id,
|
|
3173
|
+
value,
|
|
3174
|
+
className,
|
|
3175
|
+
placeholder,
|
|
3176
|
+
defaultValue,
|
|
3177
|
+
size = "default",
|
|
3178
|
+
disabled = false,
|
|
3179
|
+
readOnly = false,
|
|
3180
|
+
required = false,
|
|
3181
|
+
onChange,
|
|
3182
|
+
onFocus,
|
|
3183
|
+
onBlur,
|
|
3184
|
+
autoFocus = false,
|
|
3185
|
+
allowClear = true,
|
|
3186
|
+
maxLength,
|
|
3187
|
+
minLength,
|
|
3188
|
+
showCount = false,
|
|
3189
|
+
rows = 3,
|
|
3190
|
+
resize = "none",
|
|
3191
|
+
prefix,
|
|
3192
|
+
suffix,
|
|
3193
|
+
addonBefore,
|
|
3194
|
+
addonAfter,
|
|
3195
|
+
status = "none",
|
|
3196
|
+
tooltip,
|
|
3197
|
+
tooltipOptions,
|
|
3198
|
+
"aria-label": ariaLabel,
|
|
3199
|
+
"aria-describedby": ariaDescribedBy,
|
|
3200
|
+
...props
|
|
3201
|
+
}) => {
|
|
3202
|
+
const [isFocused, setIsFocused] = useState2(false);
|
|
3203
|
+
const textAreaRef = useRef4(null);
|
|
3204
|
+
const clearButtonRef = useRef4(null);
|
|
3205
|
+
useEffect4(() => {
|
|
3206
|
+
if (autoFocus && textAreaRef.current) {
|
|
3207
|
+
textAreaRef.current.focus();
|
|
3208
|
+
}
|
|
3209
|
+
}, [autoFocus]);
|
|
3210
|
+
const handleChange = (e) => {
|
|
3211
|
+
onChange(e.target.value);
|
|
3212
|
+
};
|
|
3213
|
+
const handleFocus = (e) => {
|
|
3214
|
+
setIsFocused(true);
|
|
3215
|
+
if (onFocus) onFocus(e);
|
|
3216
|
+
};
|
|
3217
|
+
const handleBlur = (e) => {
|
|
3218
|
+
setIsFocused(false);
|
|
3219
|
+
if (onBlur) onBlur(e);
|
|
3220
|
+
};
|
|
3221
|
+
const handleClear = () => {
|
|
3222
|
+
onChange("");
|
|
3223
|
+
if (textAreaRef.current) {
|
|
3224
|
+
textAreaRef.current.focus();
|
|
3225
|
+
}
|
|
3226
|
+
};
|
|
3227
|
+
const handleKeyDown = (e) => {
|
|
3228
|
+
if (e.key === "Escape" && allowClear && value) {
|
|
3229
|
+
handleClear();
|
|
3230
|
+
}
|
|
3231
|
+
};
|
|
3232
|
+
const textareaClasses = cn(
|
|
3233
|
+
"w-full p-2 border border-2 border-neutral-300 rounded-sm transition-all duration-200 text-fg dark:text-fg-inverse rounded",
|
|
3234
|
+
{
|
|
3235
|
+
// Size variants
|
|
3236
|
+
"text-sm": size === "small",
|
|
3237
|
+
"text-lg": size === "large",
|
|
3238
|
+
"text-base": size === "default",
|
|
3239
|
+
// State variants
|
|
3240
|
+
"bg-gray-300 text-gray-500 cursor-not-allowed": disabled || readOnly,
|
|
3241
|
+
"bg-fg": !disabled && !readOnly,
|
|
3242
|
+
// Add-ons
|
|
3243
|
+
"rounded-tl-none rounded-bl-none": addonBefore,
|
|
3244
|
+
"rounded-tr-none rounded-br-none": addonAfter,
|
|
3245
|
+
// Focus state
|
|
3246
|
+
"focus-within:ring-2 focus-within:shadow-[0_0_15px_0] focus-within:shadow-primary-500 focus-within:ring-primary-500 outline-none": isFocused,
|
|
3247
|
+
"ring-2 !ring-error-500 focus-within:shadow-error-500": status === "error",
|
|
3248
|
+
"ring-2 !ring-warning-500 focus-within:shadow-warning-500": status === "warning",
|
|
3249
|
+
// Resize options
|
|
3250
|
+
"resize-none": resize === "none",
|
|
3251
|
+
"resize-y": resize === "vertical",
|
|
3252
|
+
"resize-x": resize === "horizontal",
|
|
3253
|
+
resize: resize === "both"
|
|
3254
|
+
},
|
|
3255
|
+
className
|
|
3256
|
+
);
|
|
3257
|
+
const clearButtonClasses = cn(
|
|
3258
|
+
"absolute top-2 right-2 size-5 cursor-pointer flex items-center justify-center rounded-full focus:outline-none",
|
|
3259
|
+
{
|
|
3260
|
+
"right-6": suffix,
|
|
3261
|
+
"bg-neutral-300 hover:bg-neutral-400": status === "none",
|
|
3262
|
+
"bg-error-500/90 hover:bg-error-500": status === "error",
|
|
3263
|
+
"bg-warning-500/90 hover:bg-warning-500": status === "warning"
|
|
3264
|
+
}
|
|
3265
|
+
);
|
|
3266
|
+
const getStatusMessage = () => {
|
|
3267
|
+
if (status === "error") return "Error";
|
|
3268
|
+
if (status === "warning") return "Warning";
|
|
3269
|
+
return "";
|
|
3270
|
+
};
|
|
3271
|
+
return /* @__PURE__ */ React8.createElement(Tooltip, { id, content: tooltip, ...tooltipOptions }, /* @__PURE__ */ React8.createElement(
|
|
3272
|
+
"div",
|
|
3273
|
+
{
|
|
3274
|
+
role: "group",
|
|
3275
|
+
className: "relative",
|
|
3276
|
+
"aria-describedby": ariaDescribedBy,
|
|
3277
|
+
"data-testid": "test-textarea-container",
|
|
3278
|
+
"aria-labelledby": id ? `${id}-text-area` : "Text Area Input Field"
|
|
3279
|
+
},
|
|
3280
|
+
addonBefore && /* @__PURE__ */ React8.createElement(
|
|
3281
|
+
"div",
|
|
3282
|
+
{
|
|
3283
|
+
role: "presentation",
|
|
3284
|
+
"aria-label": `Text Area Before Addon: ${addonBefore}`,
|
|
3285
|
+
className: "absolute left-0 top-0 flex h-full items-center px-2"
|
|
3286
|
+
},
|
|
3287
|
+
addonBefore
|
|
3288
|
+
),
|
|
3289
|
+
prefix && /* @__PURE__ */ React8.createElement(
|
|
3290
|
+
"div",
|
|
3291
|
+
{
|
|
3292
|
+
"aria-label": `Text Area Prefix: ${prefix}`,
|
|
3293
|
+
className: "absolute left-2 top-1/2 -translate-y-1/2 transform",
|
|
3294
|
+
role: "presentation"
|
|
3295
|
+
},
|
|
3296
|
+
prefix
|
|
3297
|
+
),
|
|
3298
|
+
/* @__PURE__ */ React8.createElement(
|
|
3299
|
+
"textarea",
|
|
3300
|
+
{
|
|
3301
|
+
id,
|
|
3302
|
+
ref: textAreaRef,
|
|
3303
|
+
className: textareaClasses,
|
|
3304
|
+
placeholder,
|
|
3305
|
+
value,
|
|
3306
|
+
defaultValue,
|
|
3307
|
+
disabled,
|
|
3308
|
+
readOnly,
|
|
3309
|
+
required,
|
|
3310
|
+
onChange: handleChange,
|
|
3311
|
+
onFocus: handleFocus,
|
|
3312
|
+
onBlur: handleBlur,
|
|
3313
|
+
onKeyDown: handleKeyDown,
|
|
3314
|
+
maxLength,
|
|
3315
|
+
minLength,
|
|
3316
|
+
rows,
|
|
3317
|
+
"aria-label": ariaLabel || placeholder,
|
|
3318
|
+
"aria-invalid": status === "error",
|
|
3319
|
+
"aria-required": required,
|
|
3320
|
+
"aria-disabled": disabled,
|
|
3321
|
+
"aria-readonly": readOnly,
|
|
3322
|
+
"aria-multiline": "true",
|
|
3323
|
+
"aria-describedby": [
|
|
3324
|
+
status ? `${id}-status` : null,
|
|
3325
|
+
showCount ? `${id}-count` : null,
|
|
3326
|
+
tooltip ? `${id}-tooltip` : null
|
|
3327
|
+
].filter(Boolean).join(" ") || void 0,
|
|
3328
|
+
style: {
|
|
3329
|
+
paddingLeft: prefix ? "2rem" : "",
|
|
3330
|
+
paddingRight: suffix || allowClear ? "2rem" : ""
|
|
3331
|
+
},
|
|
3332
|
+
...props
|
|
3333
|
+
}
|
|
3334
|
+
),
|
|
3335
|
+
suffix && /* @__PURE__ */ React8.createElement(
|
|
3336
|
+
"div",
|
|
3337
|
+
{
|
|
3338
|
+
"aria-label": `Text Area Suffix: ${suffix}`,
|
|
3339
|
+
className: "absolute right-2 top-1/2 -translate-y-1/2 transform",
|
|
3340
|
+
role: "presentation"
|
|
3341
|
+
},
|
|
3342
|
+
suffix
|
|
3343
|
+
),
|
|
3344
|
+
addonAfter && /* @__PURE__ */ React8.createElement(
|
|
3345
|
+
"div",
|
|
3346
|
+
{
|
|
3347
|
+
"aria-label": `Text Area After Addon: ${addonAfter}`,
|
|
3348
|
+
className: "absolute right-0 top-0 flex h-full items-center px-2",
|
|
3349
|
+
role: "presentation"
|
|
3350
|
+
},
|
|
3351
|
+
addonAfter
|
|
3352
|
+
),
|
|
3353
|
+
allowClear && value && !readOnly && !disabled && !suffix && /* @__PURE__ */ React8.createElement(
|
|
3354
|
+
"button",
|
|
3355
|
+
{
|
|
3356
|
+
tabIndex: 0,
|
|
3357
|
+
role: "button",
|
|
3358
|
+
ref: clearButtonRef,
|
|
3359
|
+
onClick: handleClear,
|
|
3360
|
+
className: clearButtonClasses,
|
|
3361
|
+
"aria-label": "Clear Text Area Input"
|
|
3362
|
+
},
|
|
3363
|
+
/* @__PURE__ */ React8.createElement("span", { className: "sr-only" }, "Clear input"),
|
|
3364
|
+
/* @__PURE__ */ React8.createElement("div", { "aria-hidden": "true" }, /* @__PURE__ */ React8.createElement(
|
|
3365
|
+
X,
|
|
3366
|
+
{
|
|
3367
|
+
size: 12,
|
|
3368
|
+
strokeWidth: 2.5,
|
|
3369
|
+
className: cn("text-neutral-200", {
|
|
3370
|
+
"text-primary": status === "none"
|
|
3371
|
+
})
|
|
3372
|
+
}
|
|
3373
|
+
))
|
|
3374
|
+
),
|
|
3375
|
+
showCount && /* @__PURE__ */ React8.createElement(
|
|
3376
|
+
"div",
|
|
3377
|
+
{
|
|
3378
|
+
id: `${id}-count`,
|
|
3379
|
+
"aria-live": "polite",
|
|
3380
|
+
"aria-label": `Current Word Count: ${(value == null ? void 0 : value.length) || 0}/${maxLength || 0}`,
|
|
3381
|
+
className: cn(
|
|
3382
|
+
"absolute bottom-1.5 right-1 text-[10px] text-neutral-500",
|
|
3383
|
+
{
|
|
3384
|
+
"bottom-2 right-2": resize !== "none"
|
|
3385
|
+
}
|
|
3386
|
+
)
|
|
3387
|
+
},
|
|
3388
|
+
maxLength ? `${value == null ? void 0 : value.length}/${maxLength}` : value == null ? void 0 : value.length
|
|
3389
|
+
),
|
|
3390
|
+
status && /* @__PURE__ */ React8.createElement(
|
|
3391
|
+
"div",
|
|
3392
|
+
{
|
|
3393
|
+
role: "status",
|
|
3394
|
+
className: "sr-only",
|
|
3395
|
+
"aria-live": "polite",
|
|
3396
|
+
id: `${id}-status`,
|
|
3397
|
+
"aria-label": getStatusMessage()
|
|
3398
|
+
},
|
|
3399
|
+
getStatusMessage()
|
|
3400
|
+
)
|
|
3401
|
+
));
|
|
3402
|
+
};
|
|
3403
|
+
|
|
3404
|
+
// src/atoms/ProgressBar/ProgressBar.tsx
|
|
3405
|
+
import React9, { useEffect as useEffect5, useRef as useRef5, useState as useState3 } from "react";
|
|
3406
|
+
var ProgressBar = ({
|
|
3407
|
+
id,
|
|
3408
|
+
className,
|
|
3409
|
+
value: propValue,
|
|
3410
|
+
defaultValue = 0,
|
|
3411
|
+
max = 100,
|
|
3412
|
+
min = 0,
|
|
3413
|
+
size = "medium",
|
|
3414
|
+
color = "primary",
|
|
3415
|
+
striped = false,
|
|
3416
|
+
animated = false,
|
|
3417
|
+
variant = "solid",
|
|
3418
|
+
showPercentage = false,
|
|
3419
|
+
indeterminate = false,
|
|
3420
|
+
autoFocus = false,
|
|
3421
|
+
onClick,
|
|
3422
|
+
onChange,
|
|
3423
|
+
direction = "horizontal",
|
|
3424
|
+
minColor,
|
|
3425
|
+
maxColor,
|
|
3426
|
+
showLoadingLabel = true,
|
|
3427
|
+
labelPosition = "outside",
|
|
3428
|
+
minLabel,
|
|
3429
|
+
maxLabel
|
|
3430
|
+
}) => {
|
|
3431
|
+
const isFirstRender = React9.useRef(true);
|
|
3432
|
+
const progressBarRef = useRef5(null);
|
|
3433
|
+
const [value, setValue] = useState3(
|
|
3434
|
+
propValue !== void 0 ? propValue : defaultValue
|
|
3435
|
+
);
|
|
3436
|
+
useEffect5(() => {
|
|
3437
|
+
if (propValue !== void 0) {
|
|
3438
|
+
setValue(propValue);
|
|
3439
|
+
if (!isFirstRender.current) {
|
|
3440
|
+
onChange == null ? void 0 : onChange(propValue);
|
|
3441
|
+
} else {
|
|
3442
|
+
isFirstRender.current = false;
|
|
3443
|
+
}
|
|
3444
|
+
}
|
|
3445
|
+
}, [propValue, onChange]);
|
|
3446
|
+
const percentage = indeterminate ? 0 : Math.round((value - min) / (max - min) * 100);
|
|
3447
|
+
const clampedPercentage = Math.min(Math.max(percentage, 0), 100);
|
|
3448
|
+
return /* @__PURE__ */ React9.createElement(
|
|
3449
|
+
"div",
|
|
3450
|
+
{
|
|
3451
|
+
"data-testid": id,
|
|
3452
|
+
"aria-label": "Progress bar",
|
|
3453
|
+
className: cn(
|
|
3454
|
+
"flex w-full",
|
|
3455
|
+
direction === "horizontal" ? "flex-col" : "flex-row items-center",
|
|
3456
|
+
direction === "vertical" && "h-64"
|
|
3457
|
+
),
|
|
3458
|
+
role: "group",
|
|
3459
|
+
"aria-labelledby": `${id}-label`
|
|
3460
|
+
},
|
|
3461
|
+
/* @__PURE__ */ React9.createElement("div", { id: `${id}-label`, className: "sr-only" }, "Progress Bar:", " ", indeterminate ? "Loading" : `${clampedPercentage}% complete`),
|
|
3462
|
+
direction === "horizontal" && /* @__PURE__ */ React9.createElement("div", { className: "mb-1 flex justify-between" }, labelPosition === "outside" && minLabel && /* @__PURE__ */ React9.createElement(
|
|
3463
|
+
"span",
|
|
3464
|
+
{
|
|
3465
|
+
className: "text-xs font-medium",
|
|
3466
|
+
style: { color: minColor }
|
|
3467
|
+
},
|
|
3468
|
+
minLabel
|
|
3469
|
+
), labelPosition === "outside" && maxLabel && /* @__PURE__ */ React9.createElement(
|
|
3470
|
+
"span",
|
|
3471
|
+
{
|
|
3472
|
+
className: "text-xs font-medium",
|
|
3473
|
+
style: { color: maxColor }
|
|
3474
|
+
},
|
|
3475
|
+
maxLabel
|
|
3476
|
+
)),
|
|
3477
|
+
/* @__PURE__ */ React9.createElement(
|
|
3478
|
+
"div",
|
|
3479
|
+
{
|
|
3480
|
+
className: cn(
|
|
3481
|
+
"relative rounded-full",
|
|
3482
|
+
direction === "vertical" && "h-full overflow-hidden"
|
|
3483
|
+
)
|
|
3484
|
+
},
|
|
3485
|
+
/* @__PURE__ */ React9.createElement(
|
|
3486
|
+
"div",
|
|
3487
|
+
{
|
|
3488
|
+
id,
|
|
3489
|
+
ref: progressBarRef,
|
|
3490
|
+
className: cn(
|
|
3491
|
+
"overflow-hidden bg-primary-600",
|
|
3492
|
+
{
|
|
3493
|
+
"w-full rounded-full": direction === "horizontal",
|
|
3494
|
+
"h-full rounded-full": direction === "vertical",
|
|
3495
|
+
"h-1": size === "small" && direction === "horizontal",
|
|
3496
|
+
"h-2": size === "medium" && direction === "horizontal",
|
|
3497
|
+
"h-3": size === "large" && direction === "horizontal",
|
|
3498
|
+
"w-1": size === "small" && direction === "vertical",
|
|
3499
|
+
"w-2": size === "medium" && direction === "vertical",
|
|
3500
|
+
"w-3": size === "large" && direction === "vertical"
|
|
3501
|
+
},
|
|
3502
|
+
className
|
|
3503
|
+
),
|
|
3504
|
+
onClick,
|
|
3505
|
+
tabIndex: autoFocus ? 0 : void 0,
|
|
3506
|
+
role: "progressbar",
|
|
3507
|
+
"aria-valuenow": indeterminate ? void 0 : value,
|
|
3508
|
+
"aria-valuemin": min,
|
|
3509
|
+
"aria-valuemax": max,
|
|
3510
|
+
"aria-valuetext": `${clampedPercentage}%`,
|
|
3511
|
+
"aria-busy": indeterminate ? "true" : value <= max,
|
|
3512
|
+
"aria-label": indeterminate ? "Loading" : `Progress: ${clampedPercentage}%`
|
|
3513
|
+
},
|
|
3514
|
+
/* @__PURE__ */ React9.createElement(
|
|
3515
|
+
"div",
|
|
3516
|
+
{
|
|
3517
|
+
className: cn(
|
|
3518
|
+
"transition-all duration-300 ease-in-out",
|
|
3519
|
+
{
|
|
3520
|
+
"h-full": direction === "horizontal",
|
|
3521
|
+
"absolute bottom-0 w-full rounded-b-full": direction === "vertical",
|
|
3522
|
+
"bg-primary-400": color === "primary",
|
|
3523
|
+
"bg-accent-400": color === "secondary",
|
|
3524
|
+
"bg-success-400": color === "tertiary",
|
|
3525
|
+
"progress-bar-dashed": variant === "dashed",
|
|
3526
|
+
"progress-bar-dotted": variant === "dotted",
|
|
3527
|
+
stripe_overlay: striped,
|
|
3528
|
+
"animate-[progress_1s_linear_infinite]": animated,
|
|
3529
|
+
"animate-[indeterminate-horizontal_1.5s_ease-in-out_infinite]": indeterminate && direction === "horizontal",
|
|
3530
|
+
"origin-bottom animate-[indeterminate-vertical_1.5s_ease-in-out_infinite]": indeterminate && direction === "vertical"
|
|
3531
|
+
}
|
|
3532
|
+
),
|
|
3533
|
+
style: {
|
|
3534
|
+
width: direction === "horizontal" ? indeterminate ? "100%" : `${clampedPercentage}%` : "100%",
|
|
3535
|
+
height: direction === "vertical" ? indeterminate ? "100%" : `${clampedPercentage}%` : "100%",
|
|
3536
|
+
backgroundColor: color.startsWith("#") ? color : void 0
|
|
3537
|
+
}
|
|
3538
|
+
},
|
|
3539
|
+
showPercentage && labelPosition === "inside" && /* @__PURE__ */ React9.createElement(
|
|
3540
|
+
"div",
|
|
3541
|
+
{
|
|
3542
|
+
"aria-label": `Current Progress: ${clampedPercentage}%`,
|
|
3543
|
+
className: `absolute flex items-center justify-center ${direction === "horizontal" ? "inset-0" : "inset-x-0 bottom-1"}`
|
|
3544
|
+
},
|
|
3545
|
+
/* @__PURE__ */ React9.createElement("span", { className: "text-[10px] font-semibold text-fg" }, indeterminate ? showLoadingLabel ? "Loading..." : "" : `${clampedPercentage}%`)
|
|
3546
|
+
)
|
|
3547
|
+
)
|
|
3548
|
+
),
|
|
3549
|
+
showPercentage && labelPosition === "outside" && /* @__PURE__ */ React9.createElement(
|
|
3550
|
+
"div",
|
|
3551
|
+
{
|
|
3552
|
+
"data-testid": "percentage-container",
|
|
3553
|
+
"aria-label": `Current Progress: ${clampedPercentage}%`,
|
|
3554
|
+
className: `absolute ${direction === "horizontal" ? "top-full" : "left-full ml-2"}`,
|
|
3555
|
+
style: {
|
|
3556
|
+
...direction === "horizontal" ? {
|
|
3557
|
+
left: `${clampedPercentage}%`,
|
|
3558
|
+
transform: "translateX(-50%)"
|
|
3559
|
+
} : {
|
|
3560
|
+
bottom: `${clampedPercentage}%`,
|
|
3561
|
+
transform: "translateY(50%)"
|
|
3562
|
+
}
|
|
3563
|
+
}
|
|
3564
|
+
},
|
|
3565
|
+
/* @__PURE__ */ React9.createElement("span", { className: "text-[10px] font-semibold text-fg" }, indeterminate ? showLoadingLabel ? "Loading..." : "" : `${clampedPercentage}%`)
|
|
3566
|
+
)
|
|
3567
|
+
),
|
|
3568
|
+
direction === "vertical" && labelPosition === "outside" && /* @__PURE__ */ React9.createElement("div", { className: "relative ml-2 h-full", style: { width: "auto" } }, maxLabel && /* @__PURE__ */ React9.createElement(
|
|
3569
|
+
"div",
|
|
3570
|
+
{
|
|
3571
|
+
"aria-label": `Max Label: ${maxLabel}`,
|
|
3572
|
+
className: "absolute left-0 top-[-10px]"
|
|
3573
|
+
},
|
|
3574
|
+
/* @__PURE__ */ React9.createElement(
|
|
3575
|
+
"span",
|
|
3576
|
+
{
|
|
3577
|
+
className: "text-xs font-medium",
|
|
3578
|
+
style: { color: maxColor }
|
|
3579
|
+
},
|
|
3580
|
+
maxLabel
|
|
3581
|
+
)
|
|
3582
|
+
), minLabel && /* @__PURE__ */ React9.createElement(
|
|
3583
|
+
"div",
|
|
3584
|
+
{
|
|
3585
|
+
"aria-label": `Min Label: ${minLabel}`,
|
|
3586
|
+
className: "absolute bottom-[-5px] left-0"
|
|
3587
|
+
},
|
|
3588
|
+
/* @__PURE__ */ React9.createElement(
|
|
3589
|
+
"span",
|
|
3590
|
+
{
|
|
3591
|
+
className: "text-xs font-medium",
|
|
3592
|
+
style: { color: minColor }
|
|
3593
|
+
},
|
|
3594
|
+
minLabel
|
|
3595
|
+
)
|
|
3596
|
+
))
|
|
3597
|
+
);
|
|
3598
|
+
};
|
|
3599
|
+
export {
|
|
3600
|
+
ProgressBar,
|
|
3601
|
+
TextArea,
|
|
3602
|
+
Tooltip
|
|
3603
|
+
};
|
|
3604
|
+
/*! Bundled license information:
|
|
3605
|
+
|
|
3606
|
+
classnames/index.js:
|
|
3607
|
+
(*!
|
|
3608
|
+
Copyright (c) 2018 Jed Watson.
|
|
3609
|
+
Licensed under the MIT License (MIT), see
|
|
3610
|
+
http://jedwatson.github.io/classnames
|
|
3611
|
+
*)
|
|
3612
|
+
*/
|
|
3613
|
+
//# sourceMappingURL=index.mjs.map
|