@meetreeve/ui 0.25.0 → 0.30.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.
@@ -0,0 +1,3400 @@
1
+ // src/button.tsx
2
+ import * as React from "react";
3
+ import { Slot } from "@radix-ui/react-slot";
4
+
5
+ // node_modules/clsx/dist/clsx.mjs
6
+ function r(e) {
7
+ var t, f, n = "";
8
+ if ("string" == typeof e || "number" == typeof e) n += e;
9
+ else if ("object" == typeof e) if (Array.isArray(e)) {
10
+ var o = e.length;
11
+ for (t = 0; t < o; t++) e[t] && (f = r(e[t])) && (n && (n += " "), n += f);
12
+ } else for (f in e) e[f] && (n && (n += " "), n += f);
13
+ return n;
14
+ }
15
+ function clsx() {
16
+ for (var e, t, f = 0, n = "", o = arguments.length; f < o; f++) (e = arguments[f]) && (t = r(e)) && (n && (n += " "), n += t);
17
+ return n;
18
+ }
19
+
20
+ // node_modules/class-variance-authority/dist/index.mjs
21
+ var falsyToString = (value) => typeof value === "boolean" ? `${value}` : value === 0 ? "0" : value;
22
+ var cx = clsx;
23
+ var cva = (base, config) => (props) => {
24
+ var _config_compoundVariants;
25
+ if ((config === null || config === void 0 ? void 0 : config.variants) == null) return cx(base, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);
26
+ const { variants, defaultVariants } = config;
27
+ const getVariantClassNames = Object.keys(variants).map((variant) => {
28
+ const variantProp = props === null || props === void 0 ? void 0 : props[variant];
29
+ const defaultVariantProp = defaultVariants === null || defaultVariants === void 0 ? void 0 : defaultVariants[variant];
30
+ if (variantProp === null) return null;
31
+ const variantKey = falsyToString(variantProp) || falsyToString(defaultVariantProp);
32
+ return variants[variant][variantKey];
33
+ });
34
+ const propsWithoutUndefined = props && Object.entries(props).reduce((acc, param) => {
35
+ let [key, value] = param;
36
+ if (value === void 0) {
37
+ return acc;
38
+ }
39
+ acc[key] = value;
40
+ return acc;
41
+ }, {});
42
+ const getCompoundVariantClassNames = config === null || config === void 0 ? void 0 : (_config_compoundVariants = config.compoundVariants) === null || _config_compoundVariants === void 0 ? void 0 : _config_compoundVariants.reduce((acc, param) => {
43
+ let { class: cvClass, className: cvClassName, ...compoundVariantOptions } = param;
44
+ return Object.entries(compoundVariantOptions).every((param2) => {
45
+ let [key, value] = param2;
46
+ return Array.isArray(value) ? value.includes({
47
+ ...defaultVariants,
48
+ ...propsWithoutUndefined
49
+ }[key]) : {
50
+ ...defaultVariants,
51
+ ...propsWithoutUndefined
52
+ }[key] === value;
53
+ }) ? [
54
+ ...acc,
55
+ cvClass,
56
+ cvClassName
57
+ ] : acc;
58
+ }, []);
59
+ return cx(base, getVariantClassNames, getCompoundVariantClassNames, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);
60
+ };
61
+
62
+ // src/button.tsx
63
+ import { DisabledSlot } from "@meetreeve/ui/button-client";
64
+
65
+ // node_modules/tailwind-merge/dist/bundle-mjs.mjs
66
+ var concatArrays = (array1, array2) => {
67
+ const combinedArray = new Array(array1.length + array2.length);
68
+ for (let i = 0; i < array1.length; i++) {
69
+ combinedArray[i] = array1[i];
70
+ }
71
+ for (let i = 0; i < array2.length; i++) {
72
+ combinedArray[array1.length + i] = array2[i];
73
+ }
74
+ return combinedArray;
75
+ };
76
+ var createClassValidatorObject = (classGroupId, validator) => ({
77
+ classGroupId,
78
+ validator
79
+ });
80
+ var createClassPartObject = (nextPart = /* @__PURE__ */ new Map(), validators = null, classGroupId) => ({
81
+ nextPart,
82
+ validators,
83
+ classGroupId
84
+ });
85
+ var CLASS_PART_SEPARATOR = "-";
86
+ var EMPTY_CONFLICTS = [];
87
+ var ARBITRARY_PROPERTY_PREFIX = "arbitrary..";
88
+ var createClassGroupUtils = (config) => {
89
+ const classMap = createClassMap(config);
90
+ const {
91
+ conflictingClassGroups,
92
+ conflictingClassGroupModifiers
93
+ } = config;
94
+ const getClassGroupId = (className) => {
95
+ if (className.startsWith("[") && className.endsWith("]")) {
96
+ return getGroupIdForArbitraryProperty(className);
97
+ }
98
+ const classParts = className.split(CLASS_PART_SEPARATOR);
99
+ const startIndex = classParts[0] === "" && classParts.length > 1 ? 1 : 0;
100
+ return getGroupRecursive(classParts, startIndex, classMap);
101
+ };
102
+ const getConflictingClassGroupIds = (classGroupId, hasPostfixModifier) => {
103
+ if (hasPostfixModifier) {
104
+ const modifierConflicts = conflictingClassGroupModifiers[classGroupId];
105
+ const baseConflicts = conflictingClassGroups[classGroupId];
106
+ if (modifierConflicts) {
107
+ if (baseConflicts) {
108
+ return concatArrays(baseConflicts, modifierConflicts);
109
+ }
110
+ return modifierConflicts;
111
+ }
112
+ return baseConflicts || EMPTY_CONFLICTS;
113
+ }
114
+ return conflictingClassGroups[classGroupId] || EMPTY_CONFLICTS;
115
+ };
116
+ return {
117
+ getClassGroupId,
118
+ getConflictingClassGroupIds
119
+ };
120
+ };
121
+ var getGroupRecursive = (classParts, startIndex, classPartObject) => {
122
+ const classPathsLength = classParts.length - startIndex;
123
+ if (classPathsLength === 0) {
124
+ return classPartObject.classGroupId;
125
+ }
126
+ const currentClassPart = classParts[startIndex];
127
+ const nextClassPartObject = classPartObject.nextPart.get(currentClassPart);
128
+ if (nextClassPartObject) {
129
+ const result = getGroupRecursive(classParts, startIndex + 1, nextClassPartObject);
130
+ if (result) return result;
131
+ }
132
+ const validators = classPartObject.validators;
133
+ if (validators === null) {
134
+ return void 0;
135
+ }
136
+ const classRest = startIndex === 0 ? classParts.join(CLASS_PART_SEPARATOR) : classParts.slice(startIndex).join(CLASS_PART_SEPARATOR);
137
+ const validatorsLength = validators.length;
138
+ for (let i = 0; i < validatorsLength; i++) {
139
+ const validatorObj = validators[i];
140
+ if (validatorObj.validator(classRest)) {
141
+ return validatorObj.classGroupId;
142
+ }
143
+ }
144
+ return void 0;
145
+ };
146
+ var getGroupIdForArbitraryProperty = (className) => className.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
147
+ const content = className.slice(1, -1);
148
+ const colonIndex = content.indexOf(":");
149
+ const property = content.slice(0, colonIndex);
150
+ return property ? ARBITRARY_PROPERTY_PREFIX + property : void 0;
151
+ })();
152
+ var createClassMap = (config) => {
153
+ const {
154
+ theme,
155
+ classGroups
156
+ } = config;
157
+ return processClassGroups(classGroups, theme);
158
+ };
159
+ var processClassGroups = (classGroups, theme) => {
160
+ const classMap = createClassPartObject();
161
+ for (const classGroupId in classGroups) {
162
+ const group = classGroups[classGroupId];
163
+ processClassesRecursively(group, classMap, classGroupId, theme);
164
+ }
165
+ return classMap;
166
+ };
167
+ var processClassesRecursively = (classGroup, classPartObject, classGroupId, theme) => {
168
+ const len = classGroup.length;
169
+ for (let i = 0; i < len; i++) {
170
+ const classDefinition = classGroup[i];
171
+ processClassDefinition(classDefinition, classPartObject, classGroupId, theme);
172
+ }
173
+ };
174
+ var processClassDefinition = (classDefinition, classPartObject, classGroupId, theme) => {
175
+ if (typeof classDefinition === "string") {
176
+ processStringDefinition(classDefinition, classPartObject, classGroupId);
177
+ return;
178
+ }
179
+ if (typeof classDefinition === "function") {
180
+ processFunctionDefinition(classDefinition, classPartObject, classGroupId, theme);
181
+ return;
182
+ }
183
+ processObjectDefinition(classDefinition, classPartObject, classGroupId, theme);
184
+ };
185
+ var processStringDefinition = (classDefinition, classPartObject, classGroupId) => {
186
+ const classPartObjectToEdit = classDefinition === "" ? classPartObject : getPart(classPartObject, classDefinition);
187
+ classPartObjectToEdit.classGroupId = classGroupId;
188
+ };
189
+ var processFunctionDefinition = (classDefinition, classPartObject, classGroupId, theme) => {
190
+ if (isThemeGetter(classDefinition)) {
191
+ processClassesRecursively(classDefinition(theme), classPartObject, classGroupId, theme);
192
+ return;
193
+ }
194
+ if (classPartObject.validators === null) {
195
+ classPartObject.validators = [];
196
+ }
197
+ classPartObject.validators.push(createClassValidatorObject(classGroupId, classDefinition));
198
+ };
199
+ var processObjectDefinition = (classDefinition, classPartObject, classGroupId, theme) => {
200
+ const entries = Object.entries(classDefinition);
201
+ const len = entries.length;
202
+ for (let i = 0; i < len; i++) {
203
+ const [key, value] = entries[i];
204
+ processClassesRecursively(value, getPart(classPartObject, key), classGroupId, theme);
205
+ }
206
+ };
207
+ var getPart = (classPartObject, path) => {
208
+ let current = classPartObject;
209
+ const parts = path.split(CLASS_PART_SEPARATOR);
210
+ const len = parts.length;
211
+ for (let i = 0; i < len; i++) {
212
+ const part = parts[i];
213
+ let next = current.nextPart.get(part);
214
+ if (!next) {
215
+ next = createClassPartObject();
216
+ current.nextPart.set(part, next);
217
+ }
218
+ current = next;
219
+ }
220
+ return current;
221
+ };
222
+ var isThemeGetter = (func) => "isThemeGetter" in func && func.isThemeGetter === true;
223
+ var createLruCache = (maxCacheSize) => {
224
+ if (maxCacheSize < 1) {
225
+ return {
226
+ get: () => void 0,
227
+ set: () => {
228
+ }
229
+ };
230
+ }
231
+ let cacheSize = 0;
232
+ let cache = /* @__PURE__ */ Object.create(null);
233
+ let previousCache = /* @__PURE__ */ Object.create(null);
234
+ const update = (key, value) => {
235
+ cache[key] = value;
236
+ cacheSize++;
237
+ if (cacheSize > maxCacheSize) {
238
+ cacheSize = 0;
239
+ previousCache = cache;
240
+ cache = /* @__PURE__ */ Object.create(null);
241
+ }
242
+ };
243
+ return {
244
+ get(key) {
245
+ let value = cache[key];
246
+ if (value !== void 0) {
247
+ return value;
248
+ }
249
+ if ((value = previousCache[key]) !== void 0) {
250
+ update(key, value);
251
+ return value;
252
+ }
253
+ },
254
+ set(key, value) {
255
+ if (key in cache) {
256
+ cache[key] = value;
257
+ } else {
258
+ update(key, value);
259
+ }
260
+ }
261
+ };
262
+ };
263
+ var IMPORTANT_MODIFIER = "!";
264
+ var MODIFIER_SEPARATOR = ":";
265
+ var EMPTY_MODIFIERS = [];
266
+ var createResultObject = (modifiers, hasImportantModifier, baseClassName, maybePostfixModifierPosition, isExternal) => ({
267
+ modifiers,
268
+ hasImportantModifier,
269
+ baseClassName,
270
+ maybePostfixModifierPosition,
271
+ isExternal
272
+ });
273
+ var createParseClassName = (config) => {
274
+ const {
275
+ prefix,
276
+ experimentalParseClassName
277
+ } = config;
278
+ let parseClassName = (className) => {
279
+ const modifiers = [];
280
+ let bracketDepth = 0;
281
+ let parenDepth = 0;
282
+ let modifierStart = 0;
283
+ let postfixModifierPosition;
284
+ const len = className.length;
285
+ for (let index = 0; index < len; index++) {
286
+ const currentCharacter = className[index];
287
+ if (bracketDepth === 0 && parenDepth === 0) {
288
+ if (currentCharacter === MODIFIER_SEPARATOR) {
289
+ modifiers.push(className.slice(modifierStart, index));
290
+ modifierStart = index + 1;
291
+ continue;
292
+ }
293
+ if (currentCharacter === "/") {
294
+ postfixModifierPosition = index;
295
+ continue;
296
+ }
297
+ }
298
+ if (currentCharacter === "[") bracketDepth++;
299
+ else if (currentCharacter === "]") bracketDepth--;
300
+ else if (currentCharacter === "(") parenDepth++;
301
+ else if (currentCharacter === ")") parenDepth--;
302
+ }
303
+ const baseClassNameWithImportantModifier = modifiers.length === 0 ? className : className.slice(modifierStart);
304
+ let baseClassName = baseClassNameWithImportantModifier;
305
+ let hasImportantModifier = false;
306
+ if (baseClassNameWithImportantModifier.endsWith(IMPORTANT_MODIFIER)) {
307
+ baseClassName = baseClassNameWithImportantModifier.slice(0, -1);
308
+ hasImportantModifier = true;
309
+ } else if (
310
+ /**
311
+ * In Tailwind CSS v3 the important modifier was at the start of the base class name. This is still supported for legacy reasons.
312
+ * @see https://github.com/dcastil/tailwind-merge/issues/513#issuecomment-2614029864
313
+ */
314
+ baseClassNameWithImportantModifier.startsWith(IMPORTANT_MODIFIER)
315
+ ) {
316
+ baseClassName = baseClassNameWithImportantModifier.slice(1);
317
+ hasImportantModifier = true;
318
+ }
319
+ const maybePostfixModifierPosition = postfixModifierPosition && postfixModifierPosition > modifierStart ? postfixModifierPosition - modifierStart : void 0;
320
+ return createResultObject(modifiers, hasImportantModifier, baseClassName, maybePostfixModifierPosition);
321
+ };
322
+ if (prefix) {
323
+ const fullPrefix = prefix + MODIFIER_SEPARATOR;
324
+ const parseClassNameOriginal = parseClassName;
325
+ parseClassName = (className) => className.startsWith(fullPrefix) ? parseClassNameOriginal(className.slice(fullPrefix.length)) : createResultObject(EMPTY_MODIFIERS, false, className, void 0, true);
326
+ }
327
+ if (experimentalParseClassName) {
328
+ const parseClassNameOriginal = parseClassName;
329
+ parseClassName = (className) => experimentalParseClassName({
330
+ className,
331
+ parseClassName: parseClassNameOriginal
332
+ });
333
+ }
334
+ return parseClassName;
335
+ };
336
+ var createSortModifiers = (config) => {
337
+ const modifierWeights = /* @__PURE__ */ new Map();
338
+ config.orderSensitiveModifiers.forEach((mod, index) => {
339
+ modifierWeights.set(mod, 1e6 + index);
340
+ });
341
+ return (modifiers) => {
342
+ const result = [];
343
+ let currentSegment = [];
344
+ for (let i = 0; i < modifiers.length; i++) {
345
+ const modifier = modifiers[i];
346
+ const isArbitrary = modifier[0] === "[";
347
+ const isOrderSensitive = modifierWeights.has(modifier);
348
+ if (isArbitrary || isOrderSensitive) {
349
+ if (currentSegment.length > 0) {
350
+ currentSegment.sort();
351
+ result.push(...currentSegment);
352
+ currentSegment = [];
353
+ }
354
+ result.push(modifier);
355
+ } else {
356
+ currentSegment.push(modifier);
357
+ }
358
+ }
359
+ if (currentSegment.length > 0) {
360
+ currentSegment.sort();
361
+ result.push(...currentSegment);
362
+ }
363
+ return result;
364
+ };
365
+ };
366
+ var createConfigUtils = (config) => ({
367
+ cache: createLruCache(config.cacheSize),
368
+ parseClassName: createParseClassName(config),
369
+ sortModifiers: createSortModifiers(config),
370
+ postfixLookupClassGroupIds: createPostfixLookupClassGroupIds(config),
371
+ ...createClassGroupUtils(config)
372
+ });
373
+ var createPostfixLookupClassGroupIds = (config) => {
374
+ const lookup = /* @__PURE__ */ Object.create(null);
375
+ const classGroupIds = config.postfixLookupClassGroups;
376
+ if (classGroupIds) {
377
+ for (let i = 0; i < classGroupIds.length; i++) {
378
+ lookup[classGroupIds[i]] = true;
379
+ }
380
+ }
381
+ return lookup;
382
+ };
383
+ var SPLIT_CLASSES_REGEX = /\s+/;
384
+ var mergeClassList = (classList, configUtils) => {
385
+ const {
386
+ parseClassName,
387
+ getClassGroupId,
388
+ getConflictingClassGroupIds,
389
+ sortModifiers,
390
+ postfixLookupClassGroupIds
391
+ } = configUtils;
392
+ const classGroupsInConflict = [];
393
+ const classNames = classList.trim().split(SPLIT_CLASSES_REGEX);
394
+ let result = "";
395
+ for (let index = classNames.length - 1; index >= 0; index -= 1) {
396
+ const originalClassName = classNames[index];
397
+ const {
398
+ isExternal,
399
+ modifiers,
400
+ hasImportantModifier,
401
+ baseClassName,
402
+ maybePostfixModifierPosition
403
+ } = parseClassName(originalClassName);
404
+ if (isExternal) {
405
+ result = originalClassName + (result.length > 0 ? " " + result : result);
406
+ continue;
407
+ }
408
+ let hasPostfixModifier = !!maybePostfixModifierPosition;
409
+ let classGroupId;
410
+ if (hasPostfixModifier) {
411
+ const baseClassNameWithoutPostfix = baseClassName.substring(0, maybePostfixModifierPosition);
412
+ classGroupId = getClassGroupId(baseClassNameWithoutPostfix);
413
+ const classGroupIdWithPostfix = classGroupId && postfixLookupClassGroupIds[classGroupId] ? getClassGroupId(baseClassName) : void 0;
414
+ if (classGroupIdWithPostfix && classGroupIdWithPostfix !== classGroupId) {
415
+ classGroupId = classGroupIdWithPostfix;
416
+ hasPostfixModifier = false;
417
+ }
418
+ } else {
419
+ classGroupId = getClassGroupId(baseClassName);
420
+ }
421
+ if (!classGroupId) {
422
+ if (!hasPostfixModifier) {
423
+ result = originalClassName + (result.length > 0 ? " " + result : result);
424
+ continue;
425
+ }
426
+ classGroupId = getClassGroupId(baseClassName);
427
+ if (!classGroupId) {
428
+ result = originalClassName + (result.length > 0 ? " " + result : result);
429
+ continue;
430
+ }
431
+ hasPostfixModifier = false;
432
+ }
433
+ const variantModifier = modifiers.length === 0 ? "" : modifiers.length === 1 ? modifiers[0] : sortModifiers(modifiers).join(":");
434
+ const modifierId = hasImportantModifier ? variantModifier + IMPORTANT_MODIFIER : variantModifier;
435
+ const classId = modifierId + classGroupId;
436
+ if (classGroupsInConflict.indexOf(classId) > -1) {
437
+ continue;
438
+ }
439
+ classGroupsInConflict.push(classId);
440
+ const conflictGroups = getConflictingClassGroupIds(classGroupId, hasPostfixModifier);
441
+ for (let i = 0; i < conflictGroups.length; ++i) {
442
+ const group = conflictGroups[i];
443
+ classGroupsInConflict.push(modifierId + group);
444
+ }
445
+ result = originalClassName + (result.length > 0 ? " " + result : result);
446
+ }
447
+ return result;
448
+ };
449
+ var twJoin = (...classLists) => {
450
+ let index = 0;
451
+ let argument;
452
+ let resolvedValue;
453
+ let string = "";
454
+ while (index < classLists.length) {
455
+ if (argument = classLists[index++]) {
456
+ if (resolvedValue = toValue(argument)) {
457
+ string && (string += " ");
458
+ string += resolvedValue;
459
+ }
460
+ }
461
+ }
462
+ return string;
463
+ };
464
+ var toValue = (mix) => {
465
+ if (typeof mix === "string") {
466
+ return mix;
467
+ }
468
+ let resolvedValue;
469
+ let string = "";
470
+ for (let k = 0; k < mix.length; k++) {
471
+ if (mix[k]) {
472
+ if (resolvedValue = toValue(mix[k])) {
473
+ string && (string += " ");
474
+ string += resolvedValue;
475
+ }
476
+ }
477
+ }
478
+ return string;
479
+ };
480
+ var createTailwindMerge = (createConfigFirst, ...createConfigRest) => {
481
+ let configUtils;
482
+ let cacheGet;
483
+ let cacheSet;
484
+ let functionToCall;
485
+ const initTailwindMerge = (classList) => {
486
+ const config = createConfigRest.reduce((previousConfig, createConfigCurrent) => createConfigCurrent(previousConfig), createConfigFirst());
487
+ configUtils = createConfigUtils(config);
488
+ cacheGet = configUtils.cache.get;
489
+ cacheSet = configUtils.cache.set;
490
+ functionToCall = tailwindMerge;
491
+ return tailwindMerge(classList);
492
+ };
493
+ const tailwindMerge = (classList) => {
494
+ const cachedResult = cacheGet(classList);
495
+ if (cachedResult) {
496
+ return cachedResult;
497
+ }
498
+ const result = mergeClassList(classList, configUtils);
499
+ cacheSet(classList, result);
500
+ return result;
501
+ };
502
+ functionToCall = initTailwindMerge;
503
+ return (...args) => functionToCall(twJoin(...args));
504
+ };
505
+ var fallbackThemeArr = [];
506
+ var fromTheme = (key) => {
507
+ const themeGetter = (theme) => theme[key] || fallbackThemeArr;
508
+ themeGetter.isThemeGetter = true;
509
+ return themeGetter;
510
+ };
511
+ var arbitraryValueRegex = /^\[(?:(\w[\w-]*):)?(.+)\]$/i;
512
+ var arbitraryVariableRegex = /^\((?:(\w[\w-]*):)?(.+)\)$/i;
513
+ var fractionRegex = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/;
514
+ var tshirtUnitRegex = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/;
515
+ 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$/;
516
+ var colorFunctionRegex = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/;
517
+ var shadowRegex = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;
518
+ var imageRegex = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;
519
+ var isFraction = (value) => fractionRegex.test(value);
520
+ var isNumber = (value) => !!value && !Number.isNaN(Number(value));
521
+ var isInteger = (value) => !!value && Number.isInteger(Number(value));
522
+ var isPercent = (value) => value.endsWith("%") && isNumber(value.slice(0, -1));
523
+ var isTshirtSize = (value) => tshirtUnitRegex.test(value);
524
+ var isAny = () => true;
525
+ var isLengthOnly = (value) => (
526
+ // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
527
+ // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
528
+ // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
529
+ lengthUnitRegex.test(value) && !colorFunctionRegex.test(value)
530
+ );
531
+ var isNever = () => false;
532
+ var isShadow = (value) => shadowRegex.test(value);
533
+ var isImage = (value) => imageRegex.test(value);
534
+ var isAnyNonArbitrary = (value) => !isArbitraryValue(value) && !isArbitraryVariable(value);
535
+ var isNamedContainerQuery = (value) => value.startsWith("@container") && (value[10] === "/" && value[11] !== void 0 || value[11] === "s" && value[16] !== void 0 && value.startsWith("-size/", 10) || value[11] === "n" && value[18] !== void 0 && value.startsWith("-normal/", 10));
536
+ var isArbitrarySize = (value) => getIsArbitraryValue(value, isLabelSize, isNever);
537
+ var isArbitraryValue = (value) => arbitraryValueRegex.test(value);
538
+ var isArbitraryLength = (value) => getIsArbitraryValue(value, isLabelLength, isLengthOnly);
539
+ var isArbitraryNumber = (value) => getIsArbitraryValue(value, isLabelNumber, isNumber);
540
+ var isArbitraryWeight = (value) => getIsArbitraryValue(value, isLabelWeight, isAny);
541
+ var isArbitraryFamilyName = (value) => getIsArbitraryValue(value, isLabelFamilyName, isNever);
542
+ var isArbitraryPosition = (value) => getIsArbitraryValue(value, isLabelPosition, isNever);
543
+ var isArbitraryImage = (value) => getIsArbitraryValue(value, isLabelImage, isImage);
544
+ var isArbitraryShadow = (value) => getIsArbitraryValue(value, isLabelShadow, isShadow);
545
+ var isArbitraryVariable = (value) => arbitraryVariableRegex.test(value);
546
+ var isArbitraryVariableLength = (value) => getIsArbitraryVariable(value, isLabelLength);
547
+ var isArbitraryVariableFamilyName = (value) => getIsArbitraryVariable(value, isLabelFamilyName);
548
+ var isArbitraryVariablePosition = (value) => getIsArbitraryVariable(value, isLabelPosition);
549
+ var isArbitraryVariableSize = (value) => getIsArbitraryVariable(value, isLabelSize);
550
+ var isArbitraryVariableImage = (value) => getIsArbitraryVariable(value, isLabelImage);
551
+ var isArbitraryVariableShadow = (value) => getIsArbitraryVariable(value, isLabelShadow, true);
552
+ var isArbitraryVariableWeight = (value) => getIsArbitraryVariable(value, isLabelWeight, true);
553
+ var getIsArbitraryValue = (value, testLabel, testValue) => {
554
+ const result = arbitraryValueRegex.exec(value);
555
+ if (result) {
556
+ if (result[1]) {
557
+ return testLabel(result[1]);
558
+ }
559
+ return testValue(result[2]);
560
+ }
561
+ return false;
562
+ };
563
+ var getIsArbitraryVariable = (value, testLabel, shouldMatchNoLabel = false) => {
564
+ const result = arbitraryVariableRegex.exec(value);
565
+ if (result) {
566
+ if (result[1]) {
567
+ return testLabel(result[1]);
568
+ }
569
+ return shouldMatchNoLabel;
570
+ }
571
+ return false;
572
+ };
573
+ var isLabelPosition = (label) => label === "position" || label === "percentage";
574
+ var isLabelImage = (label) => label === "image" || label === "url";
575
+ var isLabelSize = (label) => label === "length" || label === "size" || label === "bg-size";
576
+ var isLabelLength = (label) => label === "length";
577
+ var isLabelNumber = (label) => label === "number";
578
+ var isLabelFamilyName = (label) => label === "family-name";
579
+ var isLabelWeight = (label) => label === "number" || label === "weight";
580
+ var isLabelShadow = (label) => label === "shadow";
581
+ var getDefaultConfig = () => {
582
+ const themeColor = fromTheme("color");
583
+ const themeFont = fromTheme("font");
584
+ const themeText = fromTheme("text");
585
+ const themeFontWeight = fromTheme("font-weight");
586
+ const themeTracking = fromTheme("tracking");
587
+ const themeLeading = fromTheme("leading");
588
+ const themeBreakpoint = fromTheme("breakpoint");
589
+ const themeContainer = fromTheme("container");
590
+ const themeSpacing = fromTheme("spacing");
591
+ const themeRadius = fromTheme("radius");
592
+ const themeShadow = fromTheme("shadow");
593
+ const themeInsetShadow = fromTheme("inset-shadow");
594
+ const themeTextShadow = fromTheme("text-shadow");
595
+ const themeDropShadow = fromTheme("drop-shadow");
596
+ const themeBlur = fromTheme("blur");
597
+ const themePerspective = fromTheme("perspective");
598
+ const themeAspect = fromTheme("aspect");
599
+ const themeEase = fromTheme("ease");
600
+ const themeAnimate = fromTheme("animate");
601
+ const scaleBreak = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"];
602
+ const scalePosition = () => [
603
+ "center",
604
+ "top",
605
+ "bottom",
606
+ "left",
607
+ "right",
608
+ "top-left",
609
+ // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
610
+ "left-top",
611
+ "top-right",
612
+ // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
613
+ "right-top",
614
+ "bottom-right",
615
+ // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
616
+ "right-bottom",
617
+ "bottom-left",
618
+ // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
619
+ "left-bottom"
620
+ ];
621
+ const scalePositionWithArbitrary = () => [...scalePosition(), isArbitraryVariable, isArbitraryValue];
622
+ const scaleOverflow = () => ["auto", "hidden", "clip", "visible", "scroll"];
623
+ const scaleOverscroll = () => ["auto", "contain", "none"];
624
+ const scaleUnambiguousSpacing = () => [isArbitraryVariable, isArbitraryValue, themeSpacing];
625
+ const scaleInset = () => [isFraction, "full", "auto", ...scaleUnambiguousSpacing()];
626
+ const scaleGridTemplateColsRows = () => [isInteger, "none", "subgrid", isArbitraryVariable, isArbitraryValue];
627
+ const scaleGridColRowStartAndEnd = () => ["auto", {
628
+ span: ["full", isInteger, isArbitraryVariable, isArbitraryValue]
629
+ }, isInteger, isArbitraryVariable, isArbitraryValue];
630
+ const scaleGridColRowStartOrEnd = () => [isInteger, "auto", isArbitraryVariable, isArbitraryValue];
631
+ const scaleGridAutoColsRows = () => ["auto", "min", "max", "fr", isArbitraryVariable, isArbitraryValue];
632
+ const scaleAlignPrimaryAxis = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"];
633
+ const scaleAlignSecondaryAxis = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"];
634
+ const scaleMargin = () => ["auto", ...scaleUnambiguousSpacing()];
635
+ const scaleSizing = () => [isFraction, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...scaleUnambiguousSpacing()];
636
+ const scaleSizingInline = () => [isFraction, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...scaleUnambiguousSpacing()];
637
+ const scaleSizingBlock = () => [isFraction, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...scaleUnambiguousSpacing()];
638
+ const scaleColor = () => [themeColor, isArbitraryVariable, isArbitraryValue];
639
+ const scaleBgPosition = () => [...scalePosition(), isArbitraryVariablePosition, isArbitraryPosition, {
640
+ position: [isArbitraryVariable, isArbitraryValue]
641
+ }];
642
+ const scaleBgRepeat = () => ["no-repeat", {
643
+ repeat: ["", "x", "y", "space", "round"]
644
+ }];
645
+ const scaleBgSize = () => ["auto", "cover", "contain", isArbitraryVariableSize, isArbitrarySize, {
646
+ size: [isArbitraryVariable, isArbitraryValue]
647
+ }];
648
+ const scaleGradientStopPosition = () => [isPercent, isArbitraryVariableLength, isArbitraryLength];
649
+ const scaleRadius = () => [
650
+ // Deprecated since Tailwind CSS v4.0.0
651
+ "",
652
+ "none",
653
+ "full",
654
+ themeRadius,
655
+ isArbitraryVariable,
656
+ isArbitraryValue
657
+ ];
658
+ const scaleBorderWidth = () => ["", isNumber, isArbitraryVariableLength, isArbitraryLength];
659
+ const scaleLineStyle = () => ["solid", "dashed", "dotted", "double"];
660
+ const scaleBlendMode = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"];
661
+ const scaleMaskImagePosition = () => [isNumber, isPercent, isArbitraryVariablePosition, isArbitraryPosition];
662
+ const scaleBlur = () => [
663
+ // Deprecated since Tailwind CSS v4.0.0
664
+ "",
665
+ "none",
666
+ themeBlur,
667
+ isArbitraryVariable,
668
+ isArbitraryValue
669
+ ];
670
+ const scaleRotate = () => ["none", isNumber, isArbitraryVariable, isArbitraryValue];
671
+ const scaleScale = () => ["none", isNumber, isArbitraryVariable, isArbitraryValue];
672
+ const scaleSkew = () => [isNumber, isArbitraryVariable, isArbitraryValue];
673
+ const scaleTranslate = () => [isFraction, "full", ...scaleUnambiguousSpacing()];
674
+ return {
675
+ cacheSize: 500,
676
+ theme: {
677
+ animate: ["spin", "ping", "pulse", "bounce"],
678
+ aspect: ["video"],
679
+ blur: [isTshirtSize],
680
+ breakpoint: [isTshirtSize],
681
+ color: [isAny],
682
+ container: [isTshirtSize],
683
+ "drop-shadow": [isTshirtSize],
684
+ ease: ["in", "out", "in-out"],
685
+ font: [isAnyNonArbitrary],
686
+ "font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
687
+ "inset-shadow": [isTshirtSize],
688
+ leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
689
+ perspective: ["dramatic", "near", "normal", "midrange", "distant", "none"],
690
+ radius: [isTshirtSize],
691
+ shadow: [isTshirtSize],
692
+ spacing: ["px", isNumber],
693
+ text: [isTshirtSize],
694
+ "text-shadow": [isTshirtSize],
695
+ tracking: ["tighter", "tight", "normal", "wide", "wider", "widest"]
696
+ },
697
+ classGroups: {
698
+ // --------------
699
+ // --- Layout ---
700
+ // --------------
701
+ /**
702
+ * Aspect Ratio
703
+ * @see https://tailwindcss.com/docs/aspect-ratio
704
+ */
705
+ aspect: [{
706
+ aspect: ["auto", "square", isFraction, isArbitraryValue, isArbitraryVariable, themeAspect]
707
+ }],
708
+ /**
709
+ * Container
710
+ * @see https://tailwindcss.com/docs/container
711
+ * @deprecated since Tailwind CSS v4.0.0
712
+ */
713
+ container: ["container"],
714
+ /**
715
+ * Container Type
716
+ * @see https://tailwindcss.com/docs/responsive-design#container-queries
717
+ */
718
+ "container-type": [{
719
+ "@container": ["", "normal", "size", isArbitraryVariable, isArbitraryValue]
720
+ }],
721
+ /**
722
+ * Container Name
723
+ * @see https://tailwindcss.com/docs/responsive-design#named-containers
724
+ */
725
+ "container-named": [isNamedContainerQuery],
726
+ /**
727
+ * Columns
728
+ * @see https://tailwindcss.com/docs/columns
729
+ */
730
+ columns: [{
731
+ columns: [isNumber, isArbitraryValue, isArbitraryVariable, themeContainer]
732
+ }],
733
+ /**
734
+ * Break After
735
+ * @see https://tailwindcss.com/docs/break-after
736
+ */
737
+ "break-after": [{
738
+ "break-after": scaleBreak()
739
+ }],
740
+ /**
741
+ * Break Before
742
+ * @see https://tailwindcss.com/docs/break-before
743
+ */
744
+ "break-before": [{
745
+ "break-before": scaleBreak()
746
+ }],
747
+ /**
748
+ * Break Inside
749
+ * @see https://tailwindcss.com/docs/break-inside
750
+ */
751
+ "break-inside": [{
752
+ "break-inside": ["auto", "avoid", "avoid-page", "avoid-column"]
753
+ }],
754
+ /**
755
+ * Box Decoration Break
756
+ * @see https://tailwindcss.com/docs/box-decoration-break
757
+ */
758
+ "box-decoration": [{
759
+ "box-decoration": ["slice", "clone"]
760
+ }],
761
+ /**
762
+ * Box Sizing
763
+ * @see https://tailwindcss.com/docs/box-sizing
764
+ */
765
+ box: [{
766
+ box: ["border", "content"]
767
+ }],
768
+ /**
769
+ * Display
770
+ * @see https://tailwindcss.com/docs/display
771
+ */
772
+ 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"],
773
+ /**
774
+ * Screen Reader Only
775
+ * @see https://tailwindcss.com/docs/display#screen-reader-only
776
+ */
777
+ sr: ["sr-only", "not-sr-only"],
778
+ /**
779
+ * Floats
780
+ * @see https://tailwindcss.com/docs/float
781
+ */
782
+ float: [{
783
+ float: ["right", "left", "none", "start", "end"]
784
+ }],
785
+ /**
786
+ * Clear
787
+ * @see https://tailwindcss.com/docs/clear
788
+ */
789
+ clear: [{
790
+ clear: ["left", "right", "both", "none", "start", "end"]
791
+ }],
792
+ /**
793
+ * Isolation
794
+ * @see https://tailwindcss.com/docs/isolation
795
+ */
796
+ isolation: ["isolate", "isolation-auto"],
797
+ /**
798
+ * Object Fit
799
+ * @see https://tailwindcss.com/docs/object-fit
800
+ */
801
+ "object-fit": [{
802
+ object: ["contain", "cover", "fill", "none", "scale-down"]
803
+ }],
804
+ /**
805
+ * Object Position
806
+ * @see https://tailwindcss.com/docs/object-position
807
+ */
808
+ "object-position": [{
809
+ object: scalePositionWithArbitrary()
810
+ }],
811
+ /**
812
+ * Overflow
813
+ * @see https://tailwindcss.com/docs/overflow
814
+ */
815
+ overflow: [{
816
+ overflow: scaleOverflow()
817
+ }],
818
+ /**
819
+ * Overflow X
820
+ * @see https://tailwindcss.com/docs/overflow
821
+ */
822
+ "overflow-x": [{
823
+ "overflow-x": scaleOverflow()
824
+ }],
825
+ /**
826
+ * Overflow Y
827
+ * @see https://tailwindcss.com/docs/overflow
828
+ */
829
+ "overflow-y": [{
830
+ "overflow-y": scaleOverflow()
831
+ }],
832
+ /**
833
+ * Overscroll Behavior
834
+ * @see https://tailwindcss.com/docs/overscroll-behavior
835
+ */
836
+ overscroll: [{
837
+ overscroll: scaleOverscroll()
838
+ }],
839
+ /**
840
+ * Overscroll Behavior X
841
+ * @see https://tailwindcss.com/docs/overscroll-behavior
842
+ */
843
+ "overscroll-x": [{
844
+ "overscroll-x": scaleOverscroll()
845
+ }],
846
+ /**
847
+ * Overscroll Behavior Y
848
+ * @see https://tailwindcss.com/docs/overscroll-behavior
849
+ */
850
+ "overscroll-y": [{
851
+ "overscroll-y": scaleOverscroll()
852
+ }],
853
+ /**
854
+ * Position
855
+ * @see https://tailwindcss.com/docs/position
856
+ */
857
+ position: ["static", "fixed", "absolute", "relative", "sticky"],
858
+ /**
859
+ * Inset
860
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
861
+ */
862
+ inset: [{
863
+ inset: scaleInset()
864
+ }],
865
+ /**
866
+ * Inset Inline
867
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
868
+ */
869
+ "inset-x": [{
870
+ "inset-x": scaleInset()
871
+ }],
872
+ /**
873
+ * Inset Block
874
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
875
+ */
876
+ "inset-y": [{
877
+ "inset-y": scaleInset()
878
+ }],
879
+ /**
880
+ * Inset Inline Start
881
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
882
+ * @todo class group will be renamed to `inset-s` in next major release
883
+ */
884
+ start: [{
885
+ "inset-s": scaleInset(),
886
+ /**
887
+ * @deprecated since Tailwind CSS v4.2.0 in favor of `inset-s-*` utilities.
888
+ * @see https://github.com/tailwindlabs/tailwindcss/pull/19613
889
+ */
890
+ start: scaleInset()
891
+ }],
892
+ /**
893
+ * Inset Inline End
894
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
895
+ * @todo class group will be renamed to `inset-e` in next major release
896
+ */
897
+ end: [{
898
+ "inset-e": scaleInset(),
899
+ /**
900
+ * @deprecated since Tailwind CSS v4.2.0 in favor of `inset-e-*` utilities.
901
+ * @see https://github.com/tailwindlabs/tailwindcss/pull/19613
902
+ */
903
+ end: scaleInset()
904
+ }],
905
+ /**
906
+ * Inset Block Start
907
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
908
+ */
909
+ "inset-bs": [{
910
+ "inset-bs": scaleInset()
911
+ }],
912
+ /**
913
+ * Inset Block End
914
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
915
+ */
916
+ "inset-be": [{
917
+ "inset-be": scaleInset()
918
+ }],
919
+ /**
920
+ * Top
921
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
922
+ */
923
+ top: [{
924
+ top: scaleInset()
925
+ }],
926
+ /**
927
+ * Right
928
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
929
+ */
930
+ right: [{
931
+ right: scaleInset()
932
+ }],
933
+ /**
934
+ * Bottom
935
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
936
+ */
937
+ bottom: [{
938
+ bottom: scaleInset()
939
+ }],
940
+ /**
941
+ * Left
942
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
943
+ */
944
+ left: [{
945
+ left: scaleInset()
946
+ }],
947
+ /**
948
+ * Visibility
949
+ * @see https://tailwindcss.com/docs/visibility
950
+ */
951
+ visibility: ["visible", "invisible", "collapse"],
952
+ /**
953
+ * Z-Index
954
+ * @see https://tailwindcss.com/docs/z-index
955
+ */
956
+ z: [{
957
+ z: [isInteger, "auto", isArbitraryVariable, isArbitraryValue]
958
+ }],
959
+ // ------------------------
960
+ // --- Flexbox and Grid ---
961
+ // ------------------------
962
+ /**
963
+ * Flex Basis
964
+ * @see https://tailwindcss.com/docs/flex-basis
965
+ */
966
+ basis: [{
967
+ basis: [isFraction, "full", "auto", themeContainer, ...scaleUnambiguousSpacing()]
968
+ }],
969
+ /**
970
+ * Flex Direction
971
+ * @see https://tailwindcss.com/docs/flex-direction
972
+ */
973
+ "flex-direction": [{
974
+ flex: ["row", "row-reverse", "col", "col-reverse"]
975
+ }],
976
+ /**
977
+ * Flex Wrap
978
+ * @see https://tailwindcss.com/docs/flex-wrap
979
+ */
980
+ "flex-wrap": [{
981
+ flex: ["nowrap", "wrap", "wrap-reverse"]
982
+ }],
983
+ /**
984
+ * Flex
985
+ * @see https://tailwindcss.com/docs/flex
986
+ */
987
+ flex: [{
988
+ flex: [isNumber, isFraction, "auto", "initial", "none", isArbitraryValue]
989
+ }],
990
+ /**
991
+ * Flex Grow
992
+ * @see https://tailwindcss.com/docs/flex-grow
993
+ */
994
+ grow: [{
995
+ grow: ["", isNumber, isArbitraryVariable, isArbitraryValue]
996
+ }],
997
+ /**
998
+ * Flex Shrink
999
+ * @see https://tailwindcss.com/docs/flex-shrink
1000
+ */
1001
+ shrink: [{
1002
+ shrink: ["", isNumber, isArbitraryVariable, isArbitraryValue]
1003
+ }],
1004
+ /**
1005
+ * Order
1006
+ * @see https://tailwindcss.com/docs/order
1007
+ */
1008
+ order: [{
1009
+ order: [isInteger, "first", "last", "none", isArbitraryVariable, isArbitraryValue]
1010
+ }],
1011
+ /**
1012
+ * Grid Template Columns
1013
+ * @see https://tailwindcss.com/docs/grid-template-columns
1014
+ */
1015
+ "grid-cols": [{
1016
+ "grid-cols": scaleGridTemplateColsRows()
1017
+ }],
1018
+ /**
1019
+ * Grid Column Start / End
1020
+ * @see https://tailwindcss.com/docs/grid-column
1021
+ */
1022
+ "col-start-end": [{
1023
+ col: scaleGridColRowStartAndEnd()
1024
+ }],
1025
+ /**
1026
+ * Grid Column Start
1027
+ * @see https://tailwindcss.com/docs/grid-column
1028
+ */
1029
+ "col-start": [{
1030
+ "col-start": scaleGridColRowStartOrEnd()
1031
+ }],
1032
+ /**
1033
+ * Grid Column End
1034
+ * @see https://tailwindcss.com/docs/grid-column
1035
+ */
1036
+ "col-end": [{
1037
+ "col-end": scaleGridColRowStartOrEnd()
1038
+ }],
1039
+ /**
1040
+ * Grid Template Rows
1041
+ * @see https://tailwindcss.com/docs/grid-template-rows
1042
+ */
1043
+ "grid-rows": [{
1044
+ "grid-rows": scaleGridTemplateColsRows()
1045
+ }],
1046
+ /**
1047
+ * Grid Row Start / End
1048
+ * @see https://tailwindcss.com/docs/grid-row
1049
+ */
1050
+ "row-start-end": [{
1051
+ row: scaleGridColRowStartAndEnd()
1052
+ }],
1053
+ /**
1054
+ * Grid Row Start
1055
+ * @see https://tailwindcss.com/docs/grid-row
1056
+ */
1057
+ "row-start": [{
1058
+ "row-start": scaleGridColRowStartOrEnd()
1059
+ }],
1060
+ /**
1061
+ * Grid Row End
1062
+ * @see https://tailwindcss.com/docs/grid-row
1063
+ */
1064
+ "row-end": [{
1065
+ "row-end": scaleGridColRowStartOrEnd()
1066
+ }],
1067
+ /**
1068
+ * Grid Auto Flow
1069
+ * @see https://tailwindcss.com/docs/grid-auto-flow
1070
+ */
1071
+ "grid-flow": [{
1072
+ "grid-flow": ["row", "col", "dense", "row-dense", "col-dense"]
1073
+ }],
1074
+ /**
1075
+ * Grid Auto Columns
1076
+ * @see https://tailwindcss.com/docs/grid-auto-columns
1077
+ */
1078
+ "auto-cols": [{
1079
+ "auto-cols": scaleGridAutoColsRows()
1080
+ }],
1081
+ /**
1082
+ * Grid Auto Rows
1083
+ * @see https://tailwindcss.com/docs/grid-auto-rows
1084
+ */
1085
+ "auto-rows": [{
1086
+ "auto-rows": scaleGridAutoColsRows()
1087
+ }],
1088
+ /**
1089
+ * Gap
1090
+ * @see https://tailwindcss.com/docs/gap
1091
+ */
1092
+ gap: [{
1093
+ gap: scaleUnambiguousSpacing()
1094
+ }],
1095
+ /**
1096
+ * Gap X
1097
+ * @see https://tailwindcss.com/docs/gap
1098
+ */
1099
+ "gap-x": [{
1100
+ "gap-x": scaleUnambiguousSpacing()
1101
+ }],
1102
+ /**
1103
+ * Gap Y
1104
+ * @see https://tailwindcss.com/docs/gap
1105
+ */
1106
+ "gap-y": [{
1107
+ "gap-y": scaleUnambiguousSpacing()
1108
+ }],
1109
+ /**
1110
+ * Justify Content
1111
+ * @see https://tailwindcss.com/docs/justify-content
1112
+ */
1113
+ "justify-content": [{
1114
+ justify: [...scaleAlignPrimaryAxis(), "normal"]
1115
+ }],
1116
+ /**
1117
+ * Justify Items
1118
+ * @see https://tailwindcss.com/docs/justify-items
1119
+ */
1120
+ "justify-items": [{
1121
+ "justify-items": [...scaleAlignSecondaryAxis(), "normal"]
1122
+ }],
1123
+ /**
1124
+ * Justify Self
1125
+ * @see https://tailwindcss.com/docs/justify-self
1126
+ */
1127
+ "justify-self": [{
1128
+ "justify-self": ["auto", ...scaleAlignSecondaryAxis()]
1129
+ }],
1130
+ /**
1131
+ * Align Content
1132
+ * @see https://tailwindcss.com/docs/align-content
1133
+ */
1134
+ "align-content": [{
1135
+ content: ["normal", ...scaleAlignPrimaryAxis()]
1136
+ }],
1137
+ /**
1138
+ * Align Items
1139
+ * @see https://tailwindcss.com/docs/align-items
1140
+ */
1141
+ "align-items": [{
1142
+ items: [...scaleAlignSecondaryAxis(), {
1143
+ baseline: ["", "last"]
1144
+ }]
1145
+ }],
1146
+ /**
1147
+ * Align Self
1148
+ * @see https://tailwindcss.com/docs/align-self
1149
+ */
1150
+ "align-self": [{
1151
+ self: ["auto", ...scaleAlignSecondaryAxis(), {
1152
+ baseline: ["", "last"]
1153
+ }]
1154
+ }],
1155
+ /**
1156
+ * Place Content
1157
+ * @see https://tailwindcss.com/docs/place-content
1158
+ */
1159
+ "place-content": [{
1160
+ "place-content": scaleAlignPrimaryAxis()
1161
+ }],
1162
+ /**
1163
+ * Place Items
1164
+ * @see https://tailwindcss.com/docs/place-items
1165
+ */
1166
+ "place-items": [{
1167
+ "place-items": [...scaleAlignSecondaryAxis(), "baseline"]
1168
+ }],
1169
+ /**
1170
+ * Place Self
1171
+ * @see https://tailwindcss.com/docs/place-self
1172
+ */
1173
+ "place-self": [{
1174
+ "place-self": ["auto", ...scaleAlignSecondaryAxis()]
1175
+ }],
1176
+ // Spacing
1177
+ /**
1178
+ * Padding
1179
+ * @see https://tailwindcss.com/docs/padding
1180
+ */
1181
+ p: [{
1182
+ p: scaleUnambiguousSpacing()
1183
+ }],
1184
+ /**
1185
+ * Padding Inline
1186
+ * @see https://tailwindcss.com/docs/padding
1187
+ */
1188
+ px: [{
1189
+ px: scaleUnambiguousSpacing()
1190
+ }],
1191
+ /**
1192
+ * Padding Block
1193
+ * @see https://tailwindcss.com/docs/padding
1194
+ */
1195
+ py: [{
1196
+ py: scaleUnambiguousSpacing()
1197
+ }],
1198
+ /**
1199
+ * Padding Inline Start
1200
+ * @see https://tailwindcss.com/docs/padding
1201
+ */
1202
+ ps: [{
1203
+ ps: scaleUnambiguousSpacing()
1204
+ }],
1205
+ /**
1206
+ * Padding Inline End
1207
+ * @see https://tailwindcss.com/docs/padding
1208
+ */
1209
+ pe: [{
1210
+ pe: scaleUnambiguousSpacing()
1211
+ }],
1212
+ /**
1213
+ * Padding Block Start
1214
+ * @see https://tailwindcss.com/docs/padding
1215
+ */
1216
+ pbs: [{
1217
+ pbs: scaleUnambiguousSpacing()
1218
+ }],
1219
+ /**
1220
+ * Padding Block End
1221
+ * @see https://tailwindcss.com/docs/padding
1222
+ */
1223
+ pbe: [{
1224
+ pbe: scaleUnambiguousSpacing()
1225
+ }],
1226
+ /**
1227
+ * Padding Top
1228
+ * @see https://tailwindcss.com/docs/padding
1229
+ */
1230
+ pt: [{
1231
+ pt: scaleUnambiguousSpacing()
1232
+ }],
1233
+ /**
1234
+ * Padding Right
1235
+ * @see https://tailwindcss.com/docs/padding
1236
+ */
1237
+ pr: [{
1238
+ pr: scaleUnambiguousSpacing()
1239
+ }],
1240
+ /**
1241
+ * Padding Bottom
1242
+ * @see https://tailwindcss.com/docs/padding
1243
+ */
1244
+ pb: [{
1245
+ pb: scaleUnambiguousSpacing()
1246
+ }],
1247
+ /**
1248
+ * Padding Left
1249
+ * @see https://tailwindcss.com/docs/padding
1250
+ */
1251
+ pl: [{
1252
+ pl: scaleUnambiguousSpacing()
1253
+ }],
1254
+ /**
1255
+ * Margin
1256
+ * @see https://tailwindcss.com/docs/margin
1257
+ */
1258
+ m: [{
1259
+ m: scaleMargin()
1260
+ }],
1261
+ /**
1262
+ * Margin Inline
1263
+ * @see https://tailwindcss.com/docs/margin
1264
+ */
1265
+ mx: [{
1266
+ mx: scaleMargin()
1267
+ }],
1268
+ /**
1269
+ * Margin Block
1270
+ * @see https://tailwindcss.com/docs/margin
1271
+ */
1272
+ my: [{
1273
+ my: scaleMargin()
1274
+ }],
1275
+ /**
1276
+ * Margin Inline Start
1277
+ * @see https://tailwindcss.com/docs/margin
1278
+ */
1279
+ ms: [{
1280
+ ms: scaleMargin()
1281
+ }],
1282
+ /**
1283
+ * Margin Inline End
1284
+ * @see https://tailwindcss.com/docs/margin
1285
+ */
1286
+ me: [{
1287
+ me: scaleMargin()
1288
+ }],
1289
+ /**
1290
+ * Margin Block Start
1291
+ * @see https://tailwindcss.com/docs/margin
1292
+ */
1293
+ mbs: [{
1294
+ mbs: scaleMargin()
1295
+ }],
1296
+ /**
1297
+ * Margin Block End
1298
+ * @see https://tailwindcss.com/docs/margin
1299
+ */
1300
+ mbe: [{
1301
+ mbe: scaleMargin()
1302
+ }],
1303
+ /**
1304
+ * Margin Top
1305
+ * @see https://tailwindcss.com/docs/margin
1306
+ */
1307
+ mt: [{
1308
+ mt: scaleMargin()
1309
+ }],
1310
+ /**
1311
+ * Margin Right
1312
+ * @see https://tailwindcss.com/docs/margin
1313
+ */
1314
+ mr: [{
1315
+ mr: scaleMargin()
1316
+ }],
1317
+ /**
1318
+ * Margin Bottom
1319
+ * @see https://tailwindcss.com/docs/margin
1320
+ */
1321
+ mb: [{
1322
+ mb: scaleMargin()
1323
+ }],
1324
+ /**
1325
+ * Margin Left
1326
+ * @see https://tailwindcss.com/docs/margin
1327
+ */
1328
+ ml: [{
1329
+ ml: scaleMargin()
1330
+ }],
1331
+ /**
1332
+ * Space Between X
1333
+ * @see https://tailwindcss.com/docs/margin#adding-space-between-children
1334
+ */
1335
+ "space-x": [{
1336
+ "space-x": scaleUnambiguousSpacing()
1337
+ }],
1338
+ /**
1339
+ * Space Between X Reverse
1340
+ * @see https://tailwindcss.com/docs/margin#adding-space-between-children
1341
+ */
1342
+ "space-x-reverse": ["space-x-reverse"],
1343
+ /**
1344
+ * Space Between Y
1345
+ * @see https://tailwindcss.com/docs/margin#adding-space-between-children
1346
+ */
1347
+ "space-y": [{
1348
+ "space-y": scaleUnambiguousSpacing()
1349
+ }],
1350
+ /**
1351
+ * Space Between Y Reverse
1352
+ * @see https://tailwindcss.com/docs/margin#adding-space-between-children
1353
+ */
1354
+ "space-y-reverse": ["space-y-reverse"],
1355
+ // --------------
1356
+ // --- Sizing ---
1357
+ // --------------
1358
+ /**
1359
+ * Size
1360
+ * @see https://tailwindcss.com/docs/width#setting-both-width-and-height
1361
+ */
1362
+ size: [{
1363
+ size: scaleSizing()
1364
+ }],
1365
+ /**
1366
+ * Inline Size
1367
+ * @see https://tailwindcss.com/docs/width
1368
+ */
1369
+ "inline-size": [{
1370
+ inline: ["auto", ...scaleSizingInline()]
1371
+ }],
1372
+ /**
1373
+ * Min-Inline Size
1374
+ * @see https://tailwindcss.com/docs/min-width
1375
+ */
1376
+ "min-inline-size": [{
1377
+ "min-inline": ["auto", ...scaleSizingInline()]
1378
+ }],
1379
+ /**
1380
+ * Max-Inline Size
1381
+ * @see https://tailwindcss.com/docs/max-width
1382
+ */
1383
+ "max-inline-size": [{
1384
+ "max-inline": ["none", ...scaleSizingInline()]
1385
+ }],
1386
+ /**
1387
+ * Block Size
1388
+ * @see https://tailwindcss.com/docs/height
1389
+ */
1390
+ "block-size": [{
1391
+ block: ["auto", ...scaleSizingBlock()]
1392
+ }],
1393
+ /**
1394
+ * Min-Block Size
1395
+ * @see https://tailwindcss.com/docs/min-height
1396
+ */
1397
+ "min-block-size": [{
1398
+ "min-block": ["auto", ...scaleSizingBlock()]
1399
+ }],
1400
+ /**
1401
+ * Max-Block Size
1402
+ * @see https://tailwindcss.com/docs/max-height
1403
+ */
1404
+ "max-block-size": [{
1405
+ "max-block": ["none", ...scaleSizingBlock()]
1406
+ }],
1407
+ /**
1408
+ * Width
1409
+ * @see https://tailwindcss.com/docs/width
1410
+ */
1411
+ w: [{
1412
+ w: [themeContainer, "screen", ...scaleSizing()]
1413
+ }],
1414
+ /**
1415
+ * Min-Width
1416
+ * @see https://tailwindcss.com/docs/min-width
1417
+ */
1418
+ "min-w": [{
1419
+ "min-w": [
1420
+ themeContainer,
1421
+ "screen",
1422
+ /** Deprecated. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
1423
+ "none",
1424
+ ...scaleSizing()
1425
+ ]
1426
+ }],
1427
+ /**
1428
+ * Max-Width
1429
+ * @see https://tailwindcss.com/docs/max-width
1430
+ */
1431
+ "max-w": [{
1432
+ "max-w": [
1433
+ themeContainer,
1434
+ "screen",
1435
+ "none",
1436
+ /** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
1437
+ "prose",
1438
+ /** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
1439
+ {
1440
+ screen: [themeBreakpoint]
1441
+ },
1442
+ ...scaleSizing()
1443
+ ]
1444
+ }],
1445
+ /**
1446
+ * Height
1447
+ * @see https://tailwindcss.com/docs/height
1448
+ */
1449
+ h: [{
1450
+ h: ["screen", "lh", ...scaleSizing()]
1451
+ }],
1452
+ /**
1453
+ * Min-Height
1454
+ * @see https://tailwindcss.com/docs/min-height
1455
+ */
1456
+ "min-h": [{
1457
+ "min-h": ["screen", "lh", "none", ...scaleSizing()]
1458
+ }],
1459
+ /**
1460
+ * Max-Height
1461
+ * @see https://tailwindcss.com/docs/max-height
1462
+ */
1463
+ "max-h": [{
1464
+ "max-h": ["screen", "lh", ...scaleSizing()]
1465
+ }],
1466
+ // ------------------
1467
+ // --- Typography ---
1468
+ // ------------------
1469
+ /**
1470
+ * Font Size
1471
+ * @see https://tailwindcss.com/docs/font-size
1472
+ */
1473
+ "font-size": [{
1474
+ text: ["base", themeText, isArbitraryVariableLength, isArbitraryLength]
1475
+ }],
1476
+ /**
1477
+ * Font Smoothing
1478
+ * @see https://tailwindcss.com/docs/font-smoothing
1479
+ */
1480
+ "font-smoothing": ["antialiased", "subpixel-antialiased"],
1481
+ /**
1482
+ * Font Style
1483
+ * @see https://tailwindcss.com/docs/font-style
1484
+ */
1485
+ "font-style": ["italic", "not-italic"],
1486
+ /**
1487
+ * Font Weight
1488
+ * @see https://tailwindcss.com/docs/font-weight
1489
+ */
1490
+ "font-weight": [{
1491
+ font: [themeFontWeight, isArbitraryVariableWeight, isArbitraryWeight]
1492
+ }],
1493
+ /**
1494
+ * Font Stretch
1495
+ * @see https://tailwindcss.com/docs/font-stretch
1496
+ */
1497
+ "font-stretch": [{
1498
+ "font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", isPercent, isArbitraryValue]
1499
+ }],
1500
+ /**
1501
+ * Font Family
1502
+ * @see https://tailwindcss.com/docs/font-family
1503
+ */
1504
+ "font-family": [{
1505
+ font: [isArbitraryVariableFamilyName, isArbitraryFamilyName, themeFont]
1506
+ }],
1507
+ /**
1508
+ * Font Feature Settings
1509
+ * @see https://tailwindcss.com/docs/font-feature-settings
1510
+ */
1511
+ "font-features": [{
1512
+ "font-features": [isArbitraryValue]
1513
+ }],
1514
+ /**
1515
+ * Font Variant Numeric
1516
+ * @see https://tailwindcss.com/docs/font-variant-numeric
1517
+ */
1518
+ "fvn-normal": ["normal-nums"],
1519
+ /**
1520
+ * Font Variant Numeric
1521
+ * @see https://tailwindcss.com/docs/font-variant-numeric
1522
+ */
1523
+ "fvn-ordinal": ["ordinal"],
1524
+ /**
1525
+ * Font Variant Numeric
1526
+ * @see https://tailwindcss.com/docs/font-variant-numeric
1527
+ */
1528
+ "fvn-slashed-zero": ["slashed-zero"],
1529
+ /**
1530
+ * Font Variant Numeric
1531
+ * @see https://tailwindcss.com/docs/font-variant-numeric
1532
+ */
1533
+ "fvn-figure": ["lining-nums", "oldstyle-nums"],
1534
+ /**
1535
+ * Font Variant Numeric
1536
+ * @see https://tailwindcss.com/docs/font-variant-numeric
1537
+ */
1538
+ "fvn-spacing": ["proportional-nums", "tabular-nums"],
1539
+ /**
1540
+ * Font Variant Numeric
1541
+ * @see https://tailwindcss.com/docs/font-variant-numeric
1542
+ */
1543
+ "fvn-fraction": ["diagonal-fractions", "stacked-fractions"],
1544
+ /**
1545
+ * Letter Spacing
1546
+ * @see https://tailwindcss.com/docs/letter-spacing
1547
+ */
1548
+ tracking: [{
1549
+ tracking: [themeTracking, isArbitraryVariable, isArbitraryValue]
1550
+ }],
1551
+ /**
1552
+ * Line Clamp
1553
+ * @see https://tailwindcss.com/docs/line-clamp
1554
+ */
1555
+ "line-clamp": [{
1556
+ "line-clamp": [isNumber, "none", isArbitraryVariable, isArbitraryNumber]
1557
+ }],
1558
+ /**
1559
+ * Line Height
1560
+ * @see https://tailwindcss.com/docs/line-height
1561
+ */
1562
+ leading: [{
1563
+ leading: [
1564
+ /** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
1565
+ themeLeading,
1566
+ ...scaleUnambiguousSpacing()
1567
+ ]
1568
+ }],
1569
+ /**
1570
+ * List Style Image
1571
+ * @see https://tailwindcss.com/docs/list-style-image
1572
+ */
1573
+ "list-image": [{
1574
+ "list-image": ["none", isArbitraryVariable, isArbitraryValue]
1575
+ }],
1576
+ /**
1577
+ * List Style Position
1578
+ * @see https://tailwindcss.com/docs/list-style-position
1579
+ */
1580
+ "list-style-position": [{
1581
+ list: ["inside", "outside"]
1582
+ }],
1583
+ /**
1584
+ * List Style Type
1585
+ * @see https://tailwindcss.com/docs/list-style-type
1586
+ */
1587
+ "list-style-type": [{
1588
+ list: ["disc", "decimal", "none", isArbitraryVariable, isArbitraryValue]
1589
+ }],
1590
+ /**
1591
+ * Text Alignment
1592
+ * @see https://tailwindcss.com/docs/text-align
1593
+ */
1594
+ "text-alignment": [{
1595
+ text: ["left", "center", "right", "justify", "start", "end"]
1596
+ }],
1597
+ /**
1598
+ * Placeholder Color
1599
+ * @deprecated since Tailwind CSS v3.0.0
1600
+ * @see https://v3.tailwindcss.com/docs/placeholder-color
1601
+ */
1602
+ "placeholder-color": [{
1603
+ placeholder: scaleColor()
1604
+ }],
1605
+ /**
1606
+ * Text Color
1607
+ * @see https://tailwindcss.com/docs/text-color
1608
+ */
1609
+ "text-color": [{
1610
+ text: scaleColor()
1611
+ }],
1612
+ /**
1613
+ * Text Decoration
1614
+ * @see https://tailwindcss.com/docs/text-decoration
1615
+ */
1616
+ "text-decoration": ["underline", "overline", "line-through", "no-underline"],
1617
+ /**
1618
+ * Text Decoration Style
1619
+ * @see https://tailwindcss.com/docs/text-decoration-style
1620
+ */
1621
+ "text-decoration-style": [{
1622
+ decoration: [...scaleLineStyle(), "wavy"]
1623
+ }],
1624
+ /**
1625
+ * Text Decoration Thickness
1626
+ * @see https://tailwindcss.com/docs/text-decoration-thickness
1627
+ */
1628
+ "text-decoration-thickness": [{
1629
+ decoration: [isNumber, "from-font", "auto", isArbitraryVariable, isArbitraryLength]
1630
+ }],
1631
+ /**
1632
+ * Text Decoration Color
1633
+ * @see https://tailwindcss.com/docs/text-decoration-color
1634
+ */
1635
+ "text-decoration-color": [{
1636
+ decoration: scaleColor()
1637
+ }],
1638
+ /**
1639
+ * Text Underline Offset
1640
+ * @see https://tailwindcss.com/docs/text-underline-offset
1641
+ */
1642
+ "underline-offset": [{
1643
+ "underline-offset": [isNumber, "auto", isArbitraryVariable, isArbitraryValue]
1644
+ }],
1645
+ /**
1646
+ * Text Transform
1647
+ * @see https://tailwindcss.com/docs/text-transform
1648
+ */
1649
+ "text-transform": ["uppercase", "lowercase", "capitalize", "normal-case"],
1650
+ /**
1651
+ * Text Overflow
1652
+ * @see https://tailwindcss.com/docs/text-overflow
1653
+ */
1654
+ "text-overflow": ["truncate", "text-ellipsis", "text-clip"],
1655
+ /**
1656
+ * Text Wrap
1657
+ * @see https://tailwindcss.com/docs/text-wrap
1658
+ */
1659
+ "text-wrap": [{
1660
+ text: ["wrap", "nowrap", "balance", "pretty"]
1661
+ }],
1662
+ /**
1663
+ * Text Indent
1664
+ * @see https://tailwindcss.com/docs/text-indent
1665
+ */
1666
+ indent: [{
1667
+ indent: scaleUnambiguousSpacing()
1668
+ }],
1669
+ /**
1670
+ * Tab Size
1671
+ * @see https://tailwindcss.com/docs/tab-size
1672
+ */
1673
+ "tab-size": [{
1674
+ tab: [isInteger, isArbitraryVariable, isArbitraryValue]
1675
+ }],
1676
+ /**
1677
+ * Vertical Alignment
1678
+ * @see https://tailwindcss.com/docs/vertical-align
1679
+ */
1680
+ "vertical-align": [{
1681
+ align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", isArbitraryVariable, isArbitraryValue]
1682
+ }],
1683
+ /**
1684
+ * Whitespace
1685
+ * @see https://tailwindcss.com/docs/whitespace
1686
+ */
1687
+ whitespace: [{
1688
+ whitespace: ["normal", "nowrap", "pre", "pre-line", "pre-wrap", "break-spaces"]
1689
+ }],
1690
+ /**
1691
+ * Word Break
1692
+ * @see https://tailwindcss.com/docs/word-break
1693
+ */
1694
+ break: [{
1695
+ break: ["normal", "words", "all", "keep"]
1696
+ }],
1697
+ /**
1698
+ * Overflow Wrap
1699
+ * @see https://tailwindcss.com/docs/overflow-wrap
1700
+ */
1701
+ wrap: [{
1702
+ wrap: ["break-word", "anywhere", "normal"]
1703
+ }],
1704
+ /**
1705
+ * Hyphens
1706
+ * @see https://tailwindcss.com/docs/hyphens
1707
+ */
1708
+ hyphens: [{
1709
+ hyphens: ["none", "manual", "auto"]
1710
+ }],
1711
+ /**
1712
+ * Content
1713
+ * @see https://tailwindcss.com/docs/content
1714
+ */
1715
+ content: [{
1716
+ content: ["none", isArbitraryVariable, isArbitraryValue]
1717
+ }],
1718
+ // -------------------
1719
+ // --- Backgrounds ---
1720
+ // -------------------
1721
+ /**
1722
+ * Background Attachment
1723
+ * @see https://tailwindcss.com/docs/background-attachment
1724
+ */
1725
+ "bg-attachment": [{
1726
+ bg: ["fixed", "local", "scroll"]
1727
+ }],
1728
+ /**
1729
+ * Background Clip
1730
+ * @see https://tailwindcss.com/docs/background-clip
1731
+ */
1732
+ "bg-clip": [{
1733
+ "bg-clip": ["border", "padding", "content", "text"]
1734
+ }],
1735
+ /**
1736
+ * Background Origin
1737
+ * @see https://tailwindcss.com/docs/background-origin
1738
+ */
1739
+ "bg-origin": [{
1740
+ "bg-origin": ["border", "padding", "content"]
1741
+ }],
1742
+ /**
1743
+ * Background Position
1744
+ * @see https://tailwindcss.com/docs/background-position
1745
+ */
1746
+ "bg-position": [{
1747
+ bg: scaleBgPosition()
1748
+ }],
1749
+ /**
1750
+ * Background Repeat
1751
+ * @see https://tailwindcss.com/docs/background-repeat
1752
+ */
1753
+ "bg-repeat": [{
1754
+ bg: scaleBgRepeat()
1755
+ }],
1756
+ /**
1757
+ * Background Size
1758
+ * @see https://tailwindcss.com/docs/background-size
1759
+ */
1760
+ "bg-size": [{
1761
+ bg: scaleBgSize()
1762
+ }],
1763
+ /**
1764
+ * Background Image
1765
+ * @see https://tailwindcss.com/docs/background-image
1766
+ */
1767
+ "bg-image": [{
1768
+ bg: ["none", {
1769
+ linear: [{
1770
+ to: ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
1771
+ }, isInteger, isArbitraryVariable, isArbitraryValue],
1772
+ radial: ["", isArbitraryVariable, isArbitraryValue],
1773
+ conic: [isInteger, isArbitraryVariable, isArbitraryValue]
1774
+ }, isArbitraryVariableImage, isArbitraryImage]
1775
+ }],
1776
+ /**
1777
+ * Background Color
1778
+ * @see https://tailwindcss.com/docs/background-color
1779
+ */
1780
+ "bg-color": [{
1781
+ bg: scaleColor()
1782
+ }],
1783
+ /**
1784
+ * Gradient Color Stops From Position
1785
+ * @see https://tailwindcss.com/docs/gradient-color-stops
1786
+ */
1787
+ "gradient-from-pos": [{
1788
+ from: scaleGradientStopPosition()
1789
+ }],
1790
+ /**
1791
+ * Gradient Color Stops Via Position
1792
+ * @see https://tailwindcss.com/docs/gradient-color-stops
1793
+ */
1794
+ "gradient-via-pos": [{
1795
+ via: scaleGradientStopPosition()
1796
+ }],
1797
+ /**
1798
+ * Gradient Color Stops To Position
1799
+ * @see https://tailwindcss.com/docs/gradient-color-stops
1800
+ */
1801
+ "gradient-to-pos": [{
1802
+ to: scaleGradientStopPosition()
1803
+ }],
1804
+ /**
1805
+ * Gradient Color Stops From
1806
+ * @see https://tailwindcss.com/docs/gradient-color-stops
1807
+ */
1808
+ "gradient-from": [{
1809
+ from: scaleColor()
1810
+ }],
1811
+ /**
1812
+ * Gradient Color Stops Via
1813
+ * @see https://tailwindcss.com/docs/gradient-color-stops
1814
+ */
1815
+ "gradient-via": [{
1816
+ via: scaleColor()
1817
+ }],
1818
+ /**
1819
+ * Gradient Color Stops To
1820
+ * @see https://tailwindcss.com/docs/gradient-color-stops
1821
+ */
1822
+ "gradient-to": [{
1823
+ to: scaleColor()
1824
+ }],
1825
+ // ---------------
1826
+ // --- Borders ---
1827
+ // ---------------
1828
+ /**
1829
+ * Border Radius
1830
+ * @see https://tailwindcss.com/docs/border-radius
1831
+ */
1832
+ rounded: [{
1833
+ rounded: scaleRadius()
1834
+ }],
1835
+ /**
1836
+ * Border Radius Start
1837
+ * @see https://tailwindcss.com/docs/border-radius
1838
+ */
1839
+ "rounded-s": [{
1840
+ "rounded-s": scaleRadius()
1841
+ }],
1842
+ /**
1843
+ * Border Radius End
1844
+ * @see https://tailwindcss.com/docs/border-radius
1845
+ */
1846
+ "rounded-e": [{
1847
+ "rounded-e": scaleRadius()
1848
+ }],
1849
+ /**
1850
+ * Border Radius Top
1851
+ * @see https://tailwindcss.com/docs/border-radius
1852
+ */
1853
+ "rounded-t": [{
1854
+ "rounded-t": scaleRadius()
1855
+ }],
1856
+ /**
1857
+ * Border Radius Right
1858
+ * @see https://tailwindcss.com/docs/border-radius
1859
+ */
1860
+ "rounded-r": [{
1861
+ "rounded-r": scaleRadius()
1862
+ }],
1863
+ /**
1864
+ * Border Radius Bottom
1865
+ * @see https://tailwindcss.com/docs/border-radius
1866
+ */
1867
+ "rounded-b": [{
1868
+ "rounded-b": scaleRadius()
1869
+ }],
1870
+ /**
1871
+ * Border Radius Left
1872
+ * @see https://tailwindcss.com/docs/border-radius
1873
+ */
1874
+ "rounded-l": [{
1875
+ "rounded-l": scaleRadius()
1876
+ }],
1877
+ /**
1878
+ * Border Radius Start Start
1879
+ * @see https://tailwindcss.com/docs/border-radius
1880
+ */
1881
+ "rounded-ss": [{
1882
+ "rounded-ss": scaleRadius()
1883
+ }],
1884
+ /**
1885
+ * Border Radius Start End
1886
+ * @see https://tailwindcss.com/docs/border-radius
1887
+ */
1888
+ "rounded-se": [{
1889
+ "rounded-se": scaleRadius()
1890
+ }],
1891
+ /**
1892
+ * Border Radius End End
1893
+ * @see https://tailwindcss.com/docs/border-radius
1894
+ */
1895
+ "rounded-ee": [{
1896
+ "rounded-ee": scaleRadius()
1897
+ }],
1898
+ /**
1899
+ * Border Radius End Start
1900
+ * @see https://tailwindcss.com/docs/border-radius
1901
+ */
1902
+ "rounded-es": [{
1903
+ "rounded-es": scaleRadius()
1904
+ }],
1905
+ /**
1906
+ * Border Radius Top Left
1907
+ * @see https://tailwindcss.com/docs/border-radius
1908
+ */
1909
+ "rounded-tl": [{
1910
+ "rounded-tl": scaleRadius()
1911
+ }],
1912
+ /**
1913
+ * Border Radius Top Right
1914
+ * @see https://tailwindcss.com/docs/border-radius
1915
+ */
1916
+ "rounded-tr": [{
1917
+ "rounded-tr": scaleRadius()
1918
+ }],
1919
+ /**
1920
+ * Border Radius Bottom Right
1921
+ * @see https://tailwindcss.com/docs/border-radius
1922
+ */
1923
+ "rounded-br": [{
1924
+ "rounded-br": scaleRadius()
1925
+ }],
1926
+ /**
1927
+ * Border Radius Bottom Left
1928
+ * @see https://tailwindcss.com/docs/border-radius
1929
+ */
1930
+ "rounded-bl": [{
1931
+ "rounded-bl": scaleRadius()
1932
+ }],
1933
+ /**
1934
+ * Border Width
1935
+ * @see https://tailwindcss.com/docs/border-width
1936
+ */
1937
+ "border-w": [{
1938
+ border: scaleBorderWidth()
1939
+ }],
1940
+ /**
1941
+ * Border Width Inline
1942
+ * @see https://tailwindcss.com/docs/border-width
1943
+ */
1944
+ "border-w-x": [{
1945
+ "border-x": scaleBorderWidth()
1946
+ }],
1947
+ /**
1948
+ * Border Width Block
1949
+ * @see https://tailwindcss.com/docs/border-width
1950
+ */
1951
+ "border-w-y": [{
1952
+ "border-y": scaleBorderWidth()
1953
+ }],
1954
+ /**
1955
+ * Border Width Inline Start
1956
+ * @see https://tailwindcss.com/docs/border-width
1957
+ */
1958
+ "border-w-s": [{
1959
+ "border-s": scaleBorderWidth()
1960
+ }],
1961
+ /**
1962
+ * Border Width Inline End
1963
+ * @see https://tailwindcss.com/docs/border-width
1964
+ */
1965
+ "border-w-e": [{
1966
+ "border-e": scaleBorderWidth()
1967
+ }],
1968
+ /**
1969
+ * Border Width Block Start
1970
+ * @see https://tailwindcss.com/docs/border-width
1971
+ */
1972
+ "border-w-bs": [{
1973
+ "border-bs": scaleBorderWidth()
1974
+ }],
1975
+ /**
1976
+ * Border Width Block End
1977
+ * @see https://tailwindcss.com/docs/border-width
1978
+ */
1979
+ "border-w-be": [{
1980
+ "border-be": scaleBorderWidth()
1981
+ }],
1982
+ /**
1983
+ * Border Width Top
1984
+ * @see https://tailwindcss.com/docs/border-width
1985
+ */
1986
+ "border-w-t": [{
1987
+ "border-t": scaleBorderWidth()
1988
+ }],
1989
+ /**
1990
+ * Border Width Right
1991
+ * @see https://tailwindcss.com/docs/border-width
1992
+ */
1993
+ "border-w-r": [{
1994
+ "border-r": scaleBorderWidth()
1995
+ }],
1996
+ /**
1997
+ * Border Width Bottom
1998
+ * @see https://tailwindcss.com/docs/border-width
1999
+ */
2000
+ "border-w-b": [{
2001
+ "border-b": scaleBorderWidth()
2002
+ }],
2003
+ /**
2004
+ * Border Width Left
2005
+ * @see https://tailwindcss.com/docs/border-width
2006
+ */
2007
+ "border-w-l": [{
2008
+ "border-l": scaleBorderWidth()
2009
+ }],
2010
+ /**
2011
+ * Divide Width X
2012
+ * @see https://tailwindcss.com/docs/border-width#between-children
2013
+ */
2014
+ "divide-x": [{
2015
+ "divide-x": scaleBorderWidth()
2016
+ }],
2017
+ /**
2018
+ * Divide Width X Reverse
2019
+ * @see https://tailwindcss.com/docs/border-width#between-children
2020
+ */
2021
+ "divide-x-reverse": ["divide-x-reverse"],
2022
+ /**
2023
+ * Divide Width Y
2024
+ * @see https://tailwindcss.com/docs/border-width#between-children
2025
+ */
2026
+ "divide-y": [{
2027
+ "divide-y": scaleBorderWidth()
2028
+ }],
2029
+ /**
2030
+ * Divide Width Y Reverse
2031
+ * @see https://tailwindcss.com/docs/border-width#between-children
2032
+ */
2033
+ "divide-y-reverse": ["divide-y-reverse"],
2034
+ /**
2035
+ * Border Style
2036
+ * @see https://tailwindcss.com/docs/border-style
2037
+ */
2038
+ "border-style": [{
2039
+ border: [...scaleLineStyle(), "hidden", "none"]
2040
+ }],
2041
+ /**
2042
+ * Divide Style
2043
+ * @see https://tailwindcss.com/docs/border-style#setting-the-divider-style
2044
+ */
2045
+ "divide-style": [{
2046
+ divide: [...scaleLineStyle(), "hidden", "none"]
2047
+ }],
2048
+ /**
2049
+ * Border Color
2050
+ * @see https://tailwindcss.com/docs/border-color
2051
+ */
2052
+ "border-color": [{
2053
+ border: scaleColor()
2054
+ }],
2055
+ /**
2056
+ * Border Color Inline
2057
+ * @see https://tailwindcss.com/docs/border-color
2058
+ */
2059
+ "border-color-x": [{
2060
+ "border-x": scaleColor()
2061
+ }],
2062
+ /**
2063
+ * Border Color Block
2064
+ * @see https://tailwindcss.com/docs/border-color
2065
+ */
2066
+ "border-color-y": [{
2067
+ "border-y": scaleColor()
2068
+ }],
2069
+ /**
2070
+ * Border Color Inline Start
2071
+ * @see https://tailwindcss.com/docs/border-color
2072
+ */
2073
+ "border-color-s": [{
2074
+ "border-s": scaleColor()
2075
+ }],
2076
+ /**
2077
+ * Border Color Inline End
2078
+ * @see https://tailwindcss.com/docs/border-color
2079
+ */
2080
+ "border-color-e": [{
2081
+ "border-e": scaleColor()
2082
+ }],
2083
+ /**
2084
+ * Border Color Block Start
2085
+ * @see https://tailwindcss.com/docs/border-color
2086
+ */
2087
+ "border-color-bs": [{
2088
+ "border-bs": scaleColor()
2089
+ }],
2090
+ /**
2091
+ * Border Color Block End
2092
+ * @see https://tailwindcss.com/docs/border-color
2093
+ */
2094
+ "border-color-be": [{
2095
+ "border-be": scaleColor()
2096
+ }],
2097
+ /**
2098
+ * Border Color Top
2099
+ * @see https://tailwindcss.com/docs/border-color
2100
+ */
2101
+ "border-color-t": [{
2102
+ "border-t": scaleColor()
2103
+ }],
2104
+ /**
2105
+ * Border Color Right
2106
+ * @see https://tailwindcss.com/docs/border-color
2107
+ */
2108
+ "border-color-r": [{
2109
+ "border-r": scaleColor()
2110
+ }],
2111
+ /**
2112
+ * Border Color Bottom
2113
+ * @see https://tailwindcss.com/docs/border-color
2114
+ */
2115
+ "border-color-b": [{
2116
+ "border-b": scaleColor()
2117
+ }],
2118
+ /**
2119
+ * Border Color Left
2120
+ * @see https://tailwindcss.com/docs/border-color
2121
+ */
2122
+ "border-color-l": [{
2123
+ "border-l": scaleColor()
2124
+ }],
2125
+ /**
2126
+ * Divide Color
2127
+ * @see https://tailwindcss.com/docs/divide-color
2128
+ */
2129
+ "divide-color": [{
2130
+ divide: scaleColor()
2131
+ }],
2132
+ /**
2133
+ * Outline Style
2134
+ * @see https://tailwindcss.com/docs/outline-style
2135
+ */
2136
+ "outline-style": [{
2137
+ outline: [...scaleLineStyle(), "none", "hidden"]
2138
+ }],
2139
+ /**
2140
+ * Outline Offset
2141
+ * @see https://tailwindcss.com/docs/outline-offset
2142
+ */
2143
+ "outline-offset": [{
2144
+ "outline-offset": [isNumber, isArbitraryVariable, isArbitraryValue]
2145
+ }],
2146
+ /**
2147
+ * Outline Width
2148
+ * @see https://tailwindcss.com/docs/outline-width
2149
+ */
2150
+ "outline-w": [{
2151
+ outline: ["", isNumber, isArbitraryVariableLength, isArbitraryLength]
2152
+ }],
2153
+ /**
2154
+ * Outline Color
2155
+ * @see https://tailwindcss.com/docs/outline-color
2156
+ */
2157
+ "outline-color": [{
2158
+ outline: scaleColor()
2159
+ }],
2160
+ // ---------------
2161
+ // --- Effects ---
2162
+ // ---------------
2163
+ /**
2164
+ * Box Shadow
2165
+ * @see https://tailwindcss.com/docs/box-shadow
2166
+ */
2167
+ shadow: [{
2168
+ shadow: [
2169
+ // Deprecated since Tailwind CSS v4.0.0
2170
+ "",
2171
+ "none",
2172
+ themeShadow,
2173
+ isArbitraryVariableShadow,
2174
+ isArbitraryShadow
2175
+ ]
2176
+ }],
2177
+ /**
2178
+ * Box Shadow Color
2179
+ * @see https://tailwindcss.com/docs/box-shadow#setting-the-shadow-color
2180
+ */
2181
+ "shadow-color": [{
2182
+ shadow: scaleColor()
2183
+ }],
2184
+ /**
2185
+ * Inset Box Shadow
2186
+ * @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-shadow
2187
+ */
2188
+ "inset-shadow": [{
2189
+ "inset-shadow": ["none", themeInsetShadow, isArbitraryVariableShadow, isArbitraryShadow]
2190
+ }],
2191
+ /**
2192
+ * Inset Box Shadow Color
2193
+ * @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-shadow-color
2194
+ */
2195
+ "inset-shadow-color": [{
2196
+ "inset-shadow": scaleColor()
2197
+ }],
2198
+ /**
2199
+ * Ring Width
2200
+ * @see https://tailwindcss.com/docs/box-shadow#adding-a-ring
2201
+ */
2202
+ "ring-w": [{
2203
+ ring: scaleBorderWidth()
2204
+ }],
2205
+ /**
2206
+ * Ring Width Inset
2207
+ * @see https://v3.tailwindcss.com/docs/ring-width#inset-rings
2208
+ * @deprecated since Tailwind CSS v4.0.0
2209
+ * @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
2210
+ */
2211
+ "ring-w-inset": ["ring-inset"],
2212
+ /**
2213
+ * Ring Color
2214
+ * @see https://tailwindcss.com/docs/box-shadow#setting-the-ring-color
2215
+ */
2216
+ "ring-color": [{
2217
+ ring: scaleColor()
2218
+ }],
2219
+ /**
2220
+ * Ring Offset Width
2221
+ * @see https://v3.tailwindcss.com/docs/ring-offset-width
2222
+ * @deprecated since Tailwind CSS v4.0.0
2223
+ * @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
2224
+ */
2225
+ "ring-offset-w": [{
2226
+ "ring-offset": [isNumber, isArbitraryLength]
2227
+ }],
2228
+ /**
2229
+ * Ring Offset Color
2230
+ * @see https://v3.tailwindcss.com/docs/ring-offset-color
2231
+ * @deprecated since Tailwind CSS v4.0.0
2232
+ * @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
2233
+ */
2234
+ "ring-offset-color": [{
2235
+ "ring-offset": scaleColor()
2236
+ }],
2237
+ /**
2238
+ * Inset Ring Width
2239
+ * @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-ring
2240
+ */
2241
+ "inset-ring-w": [{
2242
+ "inset-ring": scaleBorderWidth()
2243
+ }],
2244
+ /**
2245
+ * Inset Ring Color
2246
+ * @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-ring-color
2247
+ */
2248
+ "inset-ring-color": [{
2249
+ "inset-ring": scaleColor()
2250
+ }],
2251
+ /**
2252
+ * Text Shadow
2253
+ * @see https://tailwindcss.com/docs/text-shadow
2254
+ */
2255
+ "text-shadow": [{
2256
+ "text-shadow": ["none", themeTextShadow, isArbitraryVariableShadow, isArbitraryShadow]
2257
+ }],
2258
+ /**
2259
+ * Text Shadow Color
2260
+ * @see https://tailwindcss.com/docs/text-shadow#setting-the-shadow-color
2261
+ */
2262
+ "text-shadow-color": [{
2263
+ "text-shadow": scaleColor()
2264
+ }],
2265
+ /**
2266
+ * Opacity
2267
+ * @see https://tailwindcss.com/docs/opacity
2268
+ */
2269
+ opacity: [{
2270
+ opacity: [isNumber, isArbitraryVariable, isArbitraryValue]
2271
+ }],
2272
+ /**
2273
+ * Mix Blend Mode
2274
+ * @see https://tailwindcss.com/docs/mix-blend-mode
2275
+ */
2276
+ "mix-blend": [{
2277
+ "mix-blend": [...scaleBlendMode(), "plus-darker", "plus-lighter"]
2278
+ }],
2279
+ /**
2280
+ * Background Blend Mode
2281
+ * @see https://tailwindcss.com/docs/background-blend-mode
2282
+ */
2283
+ "bg-blend": [{
2284
+ "bg-blend": scaleBlendMode()
2285
+ }],
2286
+ /**
2287
+ * Mask Clip
2288
+ * @see https://tailwindcss.com/docs/mask-clip
2289
+ */
2290
+ "mask-clip": [{
2291
+ "mask-clip": ["border", "padding", "content", "fill", "stroke", "view"]
2292
+ }, "mask-no-clip"],
2293
+ /**
2294
+ * Mask Composite
2295
+ * @see https://tailwindcss.com/docs/mask-composite
2296
+ */
2297
+ "mask-composite": [{
2298
+ mask: ["add", "subtract", "intersect", "exclude"]
2299
+ }],
2300
+ /**
2301
+ * Mask Image
2302
+ * @see https://tailwindcss.com/docs/mask-image
2303
+ */
2304
+ "mask-image-linear-pos": [{
2305
+ "mask-linear": [isNumber]
2306
+ }],
2307
+ "mask-image-linear-from-pos": [{
2308
+ "mask-linear-from": scaleMaskImagePosition()
2309
+ }],
2310
+ "mask-image-linear-to-pos": [{
2311
+ "mask-linear-to": scaleMaskImagePosition()
2312
+ }],
2313
+ "mask-image-linear-from-color": [{
2314
+ "mask-linear-from": scaleColor()
2315
+ }],
2316
+ "mask-image-linear-to-color": [{
2317
+ "mask-linear-to": scaleColor()
2318
+ }],
2319
+ "mask-image-t-from-pos": [{
2320
+ "mask-t-from": scaleMaskImagePosition()
2321
+ }],
2322
+ "mask-image-t-to-pos": [{
2323
+ "mask-t-to": scaleMaskImagePosition()
2324
+ }],
2325
+ "mask-image-t-from-color": [{
2326
+ "mask-t-from": scaleColor()
2327
+ }],
2328
+ "mask-image-t-to-color": [{
2329
+ "mask-t-to": scaleColor()
2330
+ }],
2331
+ "mask-image-r-from-pos": [{
2332
+ "mask-r-from": scaleMaskImagePosition()
2333
+ }],
2334
+ "mask-image-r-to-pos": [{
2335
+ "mask-r-to": scaleMaskImagePosition()
2336
+ }],
2337
+ "mask-image-r-from-color": [{
2338
+ "mask-r-from": scaleColor()
2339
+ }],
2340
+ "mask-image-r-to-color": [{
2341
+ "mask-r-to": scaleColor()
2342
+ }],
2343
+ "mask-image-b-from-pos": [{
2344
+ "mask-b-from": scaleMaskImagePosition()
2345
+ }],
2346
+ "mask-image-b-to-pos": [{
2347
+ "mask-b-to": scaleMaskImagePosition()
2348
+ }],
2349
+ "mask-image-b-from-color": [{
2350
+ "mask-b-from": scaleColor()
2351
+ }],
2352
+ "mask-image-b-to-color": [{
2353
+ "mask-b-to": scaleColor()
2354
+ }],
2355
+ "mask-image-l-from-pos": [{
2356
+ "mask-l-from": scaleMaskImagePosition()
2357
+ }],
2358
+ "mask-image-l-to-pos": [{
2359
+ "mask-l-to": scaleMaskImagePosition()
2360
+ }],
2361
+ "mask-image-l-from-color": [{
2362
+ "mask-l-from": scaleColor()
2363
+ }],
2364
+ "mask-image-l-to-color": [{
2365
+ "mask-l-to": scaleColor()
2366
+ }],
2367
+ "mask-image-x-from-pos": [{
2368
+ "mask-x-from": scaleMaskImagePosition()
2369
+ }],
2370
+ "mask-image-x-to-pos": [{
2371
+ "mask-x-to": scaleMaskImagePosition()
2372
+ }],
2373
+ "mask-image-x-from-color": [{
2374
+ "mask-x-from": scaleColor()
2375
+ }],
2376
+ "mask-image-x-to-color": [{
2377
+ "mask-x-to": scaleColor()
2378
+ }],
2379
+ "mask-image-y-from-pos": [{
2380
+ "mask-y-from": scaleMaskImagePosition()
2381
+ }],
2382
+ "mask-image-y-to-pos": [{
2383
+ "mask-y-to": scaleMaskImagePosition()
2384
+ }],
2385
+ "mask-image-y-from-color": [{
2386
+ "mask-y-from": scaleColor()
2387
+ }],
2388
+ "mask-image-y-to-color": [{
2389
+ "mask-y-to": scaleColor()
2390
+ }],
2391
+ "mask-image-radial": [{
2392
+ "mask-radial": [isArbitraryVariable, isArbitraryValue]
2393
+ }],
2394
+ "mask-image-radial-from-pos": [{
2395
+ "mask-radial-from": scaleMaskImagePosition()
2396
+ }],
2397
+ "mask-image-radial-to-pos": [{
2398
+ "mask-radial-to": scaleMaskImagePosition()
2399
+ }],
2400
+ "mask-image-radial-from-color": [{
2401
+ "mask-radial-from": scaleColor()
2402
+ }],
2403
+ "mask-image-radial-to-color": [{
2404
+ "mask-radial-to": scaleColor()
2405
+ }],
2406
+ "mask-image-radial-shape": [{
2407
+ "mask-radial": ["circle", "ellipse"]
2408
+ }],
2409
+ "mask-image-radial-size": [{
2410
+ "mask-radial": [{
2411
+ closest: ["side", "corner"],
2412
+ farthest: ["side", "corner"]
2413
+ }]
2414
+ }],
2415
+ "mask-image-radial-pos": [{
2416
+ "mask-radial-at": scalePosition()
2417
+ }],
2418
+ "mask-image-conic-pos": [{
2419
+ "mask-conic": [isNumber]
2420
+ }],
2421
+ "mask-image-conic-from-pos": [{
2422
+ "mask-conic-from": scaleMaskImagePosition()
2423
+ }],
2424
+ "mask-image-conic-to-pos": [{
2425
+ "mask-conic-to": scaleMaskImagePosition()
2426
+ }],
2427
+ "mask-image-conic-from-color": [{
2428
+ "mask-conic-from": scaleColor()
2429
+ }],
2430
+ "mask-image-conic-to-color": [{
2431
+ "mask-conic-to": scaleColor()
2432
+ }],
2433
+ /**
2434
+ * Mask Mode
2435
+ * @see https://tailwindcss.com/docs/mask-mode
2436
+ */
2437
+ "mask-mode": [{
2438
+ mask: ["alpha", "luminance", "match"]
2439
+ }],
2440
+ /**
2441
+ * Mask Origin
2442
+ * @see https://tailwindcss.com/docs/mask-origin
2443
+ */
2444
+ "mask-origin": [{
2445
+ "mask-origin": ["border", "padding", "content", "fill", "stroke", "view"]
2446
+ }],
2447
+ /**
2448
+ * Mask Position
2449
+ * @see https://tailwindcss.com/docs/mask-position
2450
+ */
2451
+ "mask-position": [{
2452
+ mask: scaleBgPosition()
2453
+ }],
2454
+ /**
2455
+ * Mask Repeat
2456
+ * @see https://tailwindcss.com/docs/mask-repeat
2457
+ */
2458
+ "mask-repeat": [{
2459
+ mask: scaleBgRepeat()
2460
+ }],
2461
+ /**
2462
+ * Mask Size
2463
+ * @see https://tailwindcss.com/docs/mask-size
2464
+ */
2465
+ "mask-size": [{
2466
+ mask: scaleBgSize()
2467
+ }],
2468
+ /**
2469
+ * Mask Type
2470
+ * @see https://tailwindcss.com/docs/mask-type
2471
+ */
2472
+ "mask-type": [{
2473
+ "mask-type": ["alpha", "luminance"]
2474
+ }],
2475
+ /**
2476
+ * Mask Image
2477
+ * @see https://tailwindcss.com/docs/mask-image
2478
+ */
2479
+ "mask-image": [{
2480
+ mask: ["none", isArbitraryVariable, isArbitraryValue]
2481
+ }],
2482
+ // ---------------
2483
+ // --- Filters ---
2484
+ // ---------------
2485
+ /**
2486
+ * Filter
2487
+ * @see https://tailwindcss.com/docs/filter
2488
+ */
2489
+ filter: [{
2490
+ filter: [
2491
+ // Deprecated since Tailwind CSS v3.0.0
2492
+ "",
2493
+ "none",
2494
+ isArbitraryVariable,
2495
+ isArbitraryValue
2496
+ ]
2497
+ }],
2498
+ /**
2499
+ * Blur
2500
+ * @see https://tailwindcss.com/docs/blur
2501
+ */
2502
+ blur: [{
2503
+ blur: scaleBlur()
2504
+ }],
2505
+ /**
2506
+ * Brightness
2507
+ * @see https://tailwindcss.com/docs/brightness
2508
+ */
2509
+ brightness: [{
2510
+ brightness: [isNumber, isArbitraryVariable, isArbitraryValue]
2511
+ }],
2512
+ /**
2513
+ * Contrast
2514
+ * @see https://tailwindcss.com/docs/contrast
2515
+ */
2516
+ contrast: [{
2517
+ contrast: [isNumber, isArbitraryVariable, isArbitraryValue]
2518
+ }],
2519
+ /**
2520
+ * Drop Shadow
2521
+ * @see https://tailwindcss.com/docs/drop-shadow
2522
+ */
2523
+ "drop-shadow": [{
2524
+ "drop-shadow": [
2525
+ // Deprecated since Tailwind CSS v4.0.0
2526
+ "",
2527
+ "none",
2528
+ themeDropShadow,
2529
+ isArbitraryVariableShadow,
2530
+ isArbitraryShadow
2531
+ ]
2532
+ }],
2533
+ /**
2534
+ * Drop Shadow Color
2535
+ * @see https://tailwindcss.com/docs/filter-drop-shadow#setting-the-shadow-color
2536
+ */
2537
+ "drop-shadow-color": [{
2538
+ "drop-shadow": scaleColor()
2539
+ }],
2540
+ /**
2541
+ * Grayscale
2542
+ * @see https://tailwindcss.com/docs/grayscale
2543
+ */
2544
+ grayscale: [{
2545
+ grayscale: ["", isNumber, isArbitraryVariable, isArbitraryValue]
2546
+ }],
2547
+ /**
2548
+ * Hue Rotate
2549
+ * @see https://tailwindcss.com/docs/hue-rotate
2550
+ */
2551
+ "hue-rotate": [{
2552
+ "hue-rotate": [isNumber, isArbitraryVariable, isArbitraryValue]
2553
+ }],
2554
+ /**
2555
+ * Invert
2556
+ * @see https://tailwindcss.com/docs/invert
2557
+ */
2558
+ invert: [{
2559
+ invert: ["", isNumber, isArbitraryVariable, isArbitraryValue]
2560
+ }],
2561
+ /**
2562
+ * Saturate
2563
+ * @see https://tailwindcss.com/docs/saturate
2564
+ */
2565
+ saturate: [{
2566
+ saturate: [isNumber, isArbitraryVariable, isArbitraryValue]
2567
+ }],
2568
+ /**
2569
+ * Sepia
2570
+ * @see https://tailwindcss.com/docs/sepia
2571
+ */
2572
+ sepia: [{
2573
+ sepia: ["", isNumber, isArbitraryVariable, isArbitraryValue]
2574
+ }],
2575
+ /**
2576
+ * Backdrop Filter
2577
+ * @see https://tailwindcss.com/docs/backdrop-filter
2578
+ */
2579
+ "backdrop-filter": [{
2580
+ "backdrop-filter": [
2581
+ // Deprecated since Tailwind CSS v3.0.0
2582
+ "",
2583
+ "none",
2584
+ isArbitraryVariable,
2585
+ isArbitraryValue
2586
+ ]
2587
+ }],
2588
+ /**
2589
+ * Backdrop Blur
2590
+ * @see https://tailwindcss.com/docs/backdrop-blur
2591
+ */
2592
+ "backdrop-blur": [{
2593
+ "backdrop-blur": scaleBlur()
2594
+ }],
2595
+ /**
2596
+ * Backdrop Brightness
2597
+ * @see https://tailwindcss.com/docs/backdrop-brightness
2598
+ */
2599
+ "backdrop-brightness": [{
2600
+ "backdrop-brightness": [isNumber, isArbitraryVariable, isArbitraryValue]
2601
+ }],
2602
+ /**
2603
+ * Backdrop Contrast
2604
+ * @see https://tailwindcss.com/docs/backdrop-contrast
2605
+ */
2606
+ "backdrop-contrast": [{
2607
+ "backdrop-contrast": [isNumber, isArbitraryVariable, isArbitraryValue]
2608
+ }],
2609
+ /**
2610
+ * Backdrop Grayscale
2611
+ * @see https://tailwindcss.com/docs/backdrop-grayscale
2612
+ */
2613
+ "backdrop-grayscale": [{
2614
+ "backdrop-grayscale": ["", isNumber, isArbitraryVariable, isArbitraryValue]
2615
+ }],
2616
+ /**
2617
+ * Backdrop Hue Rotate
2618
+ * @see https://tailwindcss.com/docs/backdrop-hue-rotate
2619
+ */
2620
+ "backdrop-hue-rotate": [{
2621
+ "backdrop-hue-rotate": [isNumber, isArbitraryVariable, isArbitraryValue]
2622
+ }],
2623
+ /**
2624
+ * Backdrop Invert
2625
+ * @see https://tailwindcss.com/docs/backdrop-invert
2626
+ */
2627
+ "backdrop-invert": [{
2628
+ "backdrop-invert": ["", isNumber, isArbitraryVariable, isArbitraryValue]
2629
+ }],
2630
+ /**
2631
+ * Backdrop Opacity
2632
+ * @see https://tailwindcss.com/docs/backdrop-opacity
2633
+ */
2634
+ "backdrop-opacity": [{
2635
+ "backdrop-opacity": [isNumber, isArbitraryVariable, isArbitraryValue]
2636
+ }],
2637
+ /**
2638
+ * Backdrop Saturate
2639
+ * @see https://tailwindcss.com/docs/backdrop-saturate
2640
+ */
2641
+ "backdrop-saturate": [{
2642
+ "backdrop-saturate": [isNumber, isArbitraryVariable, isArbitraryValue]
2643
+ }],
2644
+ /**
2645
+ * Backdrop Sepia
2646
+ * @see https://tailwindcss.com/docs/backdrop-sepia
2647
+ */
2648
+ "backdrop-sepia": [{
2649
+ "backdrop-sepia": ["", isNumber, isArbitraryVariable, isArbitraryValue]
2650
+ }],
2651
+ // --------------
2652
+ // --- Tables ---
2653
+ // --------------
2654
+ /**
2655
+ * Border Collapse
2656
+ * @see https://tailwindcss.com/docs/border-collapse
2657
+ */
2658
+ "border-collapse": [{
2659
+ border: ["collapse", "separate"]
2660
+ }],
2661
+ /**
2662
+ * Border Spacing
2663
+ * @see https://tailwindcss.com/docs/border-spacing
2664
+ */
2665
+ "border-spacing": [{
2666
+ "border-spacing": scaleUnambiguousSpacing()
2667
+ }],
2668
+ /**
2669
+ * Border Spacing X
2670
+ * @see https://tailwindcss.com/docs/border-spacing
2671
+ */
2672
+ "border-spacing-x": [{
2673
+ "border-spacing-x": scaleUnambiguousSpacing()
2674
+ }],
2675
+ /**
2676
+ * Border Spacing Y
2677
+ * @see https://tailwindcss.com/docs/border-spacing
2678
+ */
2679
+ "border-spacing-y": [{
2680
+ "border-spacing-y": scaleUnambiguousSpacing()
2681
+ }],
2682
+ /**
2683
+ * Table Layout
2684
+ * @see https://tailwindcss.com/docs/table-layout
2685
+ */
2686
+ "table-layout": [{
2687
+ table: ["auto", "fixed"]
2688
+ }],
2689
+ /**
2690
+ * Caption Side
2691
+ * @see https://tailwindcss.com/docs/caption-side
2692
+ */
2693
+ caption: [{
2694
+ caption: ["top", "bottom"]
2695
+ }],
2696
+ // ---------------------------------
2697
+ // --- Transitions and Animation ---
2698
+ // ---------------------------------
2699
+ /**
2700
+ * Transition Property
2701
+ * @see https://tailwindcss.com/docs/transition-property
2702
+ */
2703
+ transition: [{
2704
+ transition: ["", "all", "colors", "opacity", "shadow", "transform", "none", isArbitraryVariable, isArbitraryValue]
2705
+ }],
2706
+ /**
2707
+ * Transition Behavior
2708
+ * @see https://tailwindcss.com/docs/transition-behavior
2709
+ */
2710
+ "transition-behavior": [{
2711
+ transition: ["normal", "discrete"]
2712
+ }],
2713
+ /**
2714
+ * Transition Duration
2715
+ * @see https://tailwindcss.com/docs/transition-duration
2716
+ */
2717
+ duration: [{
2718
+ duration: [isNumber, "initial", isArbitraryVariable, isArbitraryValue]
2719
+ }],
2720
+ /**
2721
+ * Transition Timing Function
2722
+ * @see https://tailwindcss.com/docs/transition-timing-function
2723
+ */
2724
+ ease: [{
2725
+ ease: ["linear", "initial", themeEase, isArbitraryVariable, isArbitraryValue]
2726
+ }],
2727
+ /**
2728
+ * Transition Delay
2729
+ * @see https://tailwindcss.com/docs/transition-delay
2730
+ */
2731
+ delay: [{
2732
+ delay: [isNumber, isArbitraryVariable, isArbitraryValue]
2733
+ }],
2734
+ /**
2735
+ * Animation
2736
+ * @see https://tailwindcss.com/docs/animation
2737
+ */
2738
+ animate: [{
2739
+ animate: ["none", themeAnimate, isArbitraryVariable, isArbitraryValue]
2740
+ }],
2741
+ // ------------------
2742
+ // --- Transforms ---
2743
+ // ------------------
2744
+ /**
2745
+ * Backface Visibility
2746
+ * @see https://tailwindcss.com/docs/backface-visibility
2747
+ */
2748
+ backface: [{
2749
+ backface: ["hidden", "visible"]
2750
+ }],
2751
+ /**
2752
+ * Perspective
2753
+ * @see https://tailwindcss.com/docs/perspective
2754
+ */
2755
+ perspective: [{
2756
+ perspective: [themePerspective, isArbitraryVariable, isArbitraryValue]
2757
+ }],
2758
+ /**
2759
+ * Perspective Origin
2760
+ * @see https://tailwindcss.com/docs/perspective-origin
2761
+ */
2762
+ "perspective-origin": [{
2763
+ "perspective-origin": scalePositionWithArbitrary()
2764
+ }],
2765
+ /**
2766
+ * Rotate
2767
+ * @see https://tailwindcss.com/docs/rotate
2768
+ */
2769
+ rotate: [{
2770
+ rotate: scaleRotate()
2771
+ }],
2772
+ /**
2773
+ * Rotate X
2774
+ * @see https://tailwindcss.com/docs/rotate
2775
+ */
2776
+ "rotate-x": [{
2777
+ "rotate-x": scaleRotate()
2778
+ }],
2779
+ /**
2780
+ * Rotate Y
2781
+ * @see https://tailwindcss.com/docs/rotate
2782
+ */
2783
+ "rotate-y": [{
2784
+ "rotate-y": scaleRotate()
2785
+ }],
2786
+ /**
2787
+ * Rotate Z
2788
+ * @see https://tailwindcss.com/docs/rotate
2789
+ */
2790
+ "rotate-z": [{
2791
+ "rotate-z": scaleRotate()
2792
+ }],
2793
+ /**
2794
+ * Scale
2795
+ * @see https://tailwindcss.com/docs/scale
2796
+ */
2797
+ scale: [{
2798
+ scale: scaleScale()
2799
+ }],
2800
+ /**
2801
+ * Scale X
2802
+ * @see https://tailwindcss.com/docs/scale
2803
+ */
2804
+ "scale-x": [{
2805
+ "scale-x": scaleScale()
2806
+ }],
2807
+ /**
2808
+ * Scale Y
2809
+ * @see https://tailwindcss.com/docs/scale
2810
+ */
2811
+ "scale-y": [{
2812
+ "scale-y": scaleScale()
2813
+ }],
2814
+ /**
2815
+ * Scale Z
2816
+ * @see https://tailwindcss.com/docs/scale
2817
+ */
2818
+ "scale-z": [{
2819
+ "scale-z": scaleScale()
2820
+ }],
2821
+ /**
2822
+ * Scale 3D
2823
+ * @see https://tailwindcss.com/docs/scale
2824
+ */
2825
+ "scale-3d": ["scale-3d"],
2826
+ /**
2827
+ * Skew
2828
+ * @see https://tailwindcss.com/docs/skew
2829
+ */
2830
+ skew: [{
2831
+ skew: scaleSkew()
2832
+ }],
2833
+ /**
2834
+ * Skew X
2835
+ * @see https://tailwindcss.com/docs/skew
2836
+ */
2837
+ "skew-x": [{
2838
+ "skew-x": scaleSkew()
2839
+ }],
2840
+ /**
2841
+ * Skew Y
2842
+ * @see https://tailwindcss.com/docs/skew
2843
+ */
2844
+ "skew-y": [{
2845
+ "skew-y": scaleSkew()
2846
+ }],
2847
+ /**
2848
+ * Transform
2849
+ * @see https://tailwindcss.com/docs/transform
2850
+ */
2851
+ transform: [{
2852
+ transform: [isArbitraryVariable, isArbitraryValue, "", "none", "gpu", "cpu"]
2853
+ }],
2854
+ /**
2855
+ * Transform Origin
2856
+ * @see https://tailwindcss.com/docs/transform-origin
2857
+ */
2858
+ "transform-origin": [{
2859
+ origin: scalePositionWithArbitrary()
2860
+ }],
2861
+ /**
2862
+ * Transform Style
2863
+ * @see https://tailwindcss.com/docs/transform-style
2864
+ */
2865
+ "transform-style": [{
2866
+ transform: ["3d", "flat"]
2867
+ }],
2868
+ /**
2869
+ * Translate
2870
+ * @see https://tailwindcss.com/docs/translate
2871
+ */
2872
+ translate: [{
2873
+ translate: scaleTranslate()
2874
+ }],
2875
+ /**
2876
+ * Translate X
2877
+ * @see https://tailwindcss.com/docs/translate
2878
+ */
2879
+ "translate-x": [{
2880
+ "translate-x": scaleTranslate()
2881
+ }],
2882
+ /**
2883
+ * Translate Y
2884
+ * @see https://tailwindcss.com/docs/translate
2885
+ */
2886
+ "translate-y": [{
2887
+ "translate-y": scaleTranslate()
2888
+ }],
2889
+ /**
2890
+ * Translate Z
2891
+ * @see https://tailwindcss.com/docs/translate
2892
+ */
2893
+ "translate-z": [{
2894
+ "translate-z": scaleTranslate()
2895
+ }],
2896
+ /**
2897
+ * Translate None
2898
+ * @see https://tailwindcss.com/docs/translate
2899
+ */
2900
+ "translate-none": ["translate-none"],
2901
+ /**
2902
+ * Zoom
2903
+ * @see https://tailwindcss.com/docs/zoom
2904
+ */
2905
+ zoom: [{
2906
+ zoom: [isInteger, isArbitraryVariable, isArbitraryValue]
2907
+ }],
2908
+ // ---------------------
2909
+ // --- Interactivity ---
2910
+ // ---------------------
2911
+ /**
2912
+ * Accent Color
2913
+ * @see https://tailwindcss.com/docs/accent-color
2914
+ */
2915
+ accent: [{
2916
+ accent: scaleColor()
2917
+ }],
2918
+ /**
2919
+ * Appearance
2920
+ * @see https://tailwindcss.com/docs/appearance
2921
+ */
2922
+ appearance: [{
2923
+ appearance: ["none", "auto"]
2924
+ }],
2925
+ /**
2926
+ * Caret Color
2927
+ * @see https://tailwindcss.com/docs/just-in-time-mode#caret-color-utilities
2928
+ */
2929
+ "caret-color": [{
2930
+ caret: scaleColor()
2931
+ }],
2932
+ /**
2933
+ * Color Scheme
2934
+ * @see https://tailwindcss.com/docs/color-scheme
2935
+ */
2936
+ "color-scheme": [{
2937
+ scheme: ["normal", "dark", "light", "light-dark", "only-dark", "only-light"]
2938
+ }],
2939
+ /**
2940
+ * Cursor
2941
+ * @see https://tailwindcss.com/docs/cursor
2942
+ */
2943
+ cursor: [{
2944
+ 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", isArbitraryVariable, isArbitraryValue]
2945
+ }],
2946
+ /**
2947
+ * Field Sizing
2948
+ * @see https://tailwindcss.com/docs/field-sizing
2949
+ */
2950
+ "field-sizing": [{
2951
+ "field-sizing": ["fixed", "content"]
2952
+ }],
2953
+ /**
2954
+ * Pointer Events
2955
+ * @see https://tailwindcss.com/docs/pointer-events
2956
+ */
2957
+ "pointer-events": [{
2958
+ "pointer-events": ["auto", "none"]
2959
+ }],
2960
+ /**
2961
+ * Resize
2962
+ * @see https://tailwindcss.com/docs/resize
2963
+ */
2964
+ resize: [{
2965
+ resize: ["none", "", "y", "x"]
2966
+ }],
2967
+ /**
2968
+ * Scroll Behavior
2969
+ * @see https://tailwindcss.com/docs/scroll-behavior
2970
+ */
2971
+ "scroll-behavior": [{
2972
+ scroll: ["auto", "smooth"]
2973
+ }],
2974
+ /**
2975
+ * Scrollbar Thumb Color
2976
+ * @see https://tailwindcss.com/docs/scrollbar-color
2977
+ */
2978
+ "scrollbar-thumb-color": [{
2979
+ "scrollbar-thumb": scaleColor()
2980
+ }],
2981
+ /**
2982
+ * Scrollbar Track Color
2983
+ * @see https://tailwindcss.com/docs/scrollbar-color
2984
+ */
2985
+ "scrollbar-track-color": [{
2986
+ "scrollbar-track": scaleColor()
2987
+ }],
2988
+ /**
2989
+ * Scrollbar Gutter
2990
+ * @see https://tailwindcss.com/docs/scrollbar-gutter
2991
+ */
2992
+ "scrollbar-gutter": [{
2993
+ "scrollbar-gutter": ["auto", "stable", "both"]
2994
+ }],
2995
+ /**
2996
+ * Scrollbar Width
2997
+ * @see https://tailwindcss.com/docs/scrollbar-width
2998
+ */
2999
+ "scrollbar-w": [{
3000
+ scrollbar: ["auto", "thin", "none"]
3001
+ }],
3002
+ /**
3003
+ * Scroll Margin
3004
+ * @see https://tailwindcss.com/docs/scroll-margin
3005
+ */
3006
+ "scroll-m": [{
3007
+ "scroll-m": scaleUnambiguousSpacing()
3008
+ }],
3009
+ /**
3010
+ * Scroll Margin Inline
3011
+ * @see https://tailwindcss.com/docs/scroll-margin
3012
+ */
3013
+ "scroll-mx": [{
3014
+ "scroll-mx": scaleUnambiguousSpacing()
3015
+ }],
3016
+ /**
3017
+ * Scroll Margin Block
3018
+ * @see https://tailwindcss.com/docs/scroll-margin
3019
+ */
3020
+ "scroll-my": [{
3021
+ "scroll-my": scaleUnambiguousSpacing()
3022
+ }],
3023
+ /**
3024
+ * Scroll Margin Inline Start
3025
+ * @see https://tailwindcss.com/docs/scroll-margin
3026
+ */
3027
+ "scroll-ms": [{
3028
+ "scroll-ms": scaleUnambiguousSpacing()
3029
+ }],
3030
+ /**
3031
+ * Scroll Margin Inline End
3032
+ * @see https://tailwindcss.com/docs/scroll-margin
3033
+ */
3034
+ "scroll-me": [{
3035
+ "scroll-me": scaleUnambiguousSpacing()
3036
+ }],
3037
+ /**
3038
+ * Scroll Margin Block Start
3039
+ * @see https://tailwindcss.com/docs/scroll-margin
3040
+ */
3041
+ "scroll-mbs": [{
3042
+ "scroll-mbs": scaleUnambiguousSpacing()
3043
+ }],
3044
+ /**
3045
+ * Scroll Margin Block End
3046
+ * @see https://tailwindcss.com/docs/scroll-margin
3047
+ */
3048
+ "scroll-mbe": [{
3049
+ "scroll-mbe": scaleUnambiguousSpacing()
3050
+ }],
3051
+ /**
3052
+ * Scroll Margin Top
3053
+ * @see https://tailwindcss.com/docs/scroll-margin
3054
+ */
3055
+ "scroll-mt": [{
3056
+ "scroll-mt": scaleUnambiguousSpacing()
3057
+ }],
3058
+ /**
3059
+ * Scroll Margin Right
3060
+ * @see https://tailwindcss.com/docs/scroll-margin
3061
+ */
3062
+ "scroll-mr": [{
3063
+ "scroll-mr": scaleUnambiguousSpacing()
3064
+ }],
3065
+ /**
3066
+ * Scroll Margin Bottom
3067
+ * @see https://tailwindcss.com/docs/scroll-margin
3068
+ */
3069
+ "scroll-mb": [{
3070
+ "scroll-mb": scaleUnambiguousSpacing()
3071
+ }],
3072
+ /**
3073
+ * Scroll Margin Left
3074
+ * @see https://tailwindcss.com/docs/scroll-margin
3075
+ */
3076
+ "scroll-ml": [{
3077
+ "scroll-ml": scaleUnambiguousSpacing()
3078
+ }],
3079
+ /**
3080
+ * Scroll Padding
3081
+ * @see https://tailwindcss.com/docs/scroll-padding
3082
+ */
3083
+ "scroll-p": [{
3084
+ "scroll-p": scaleUnambiguousSpacing()
3085
+ }],
3086
+ /**
3087
+ * Scroll Padding Inline
3088
+ * @see https://tailwindcss.com/docs/scroll-padding
3089
+ */
3090
+ "scroll-px": [{
3091
+ "scroll-px": scaleUnambiguousSpacing()
3092
+ }],
3093
+ /**
3094
+ * Scroll Padding Block
3095
+ * @see https://tailwindcss.com/docs/scroll-padding
3096
+ */
3097
+ "scroll-py": [{
3098
+ "scroll-py": scaleUnambiguousSpacing()
3099
+ }],
3100
+ /**
3101
+ * Scroll Padding Inline Start
3102
+ * @see https://tailwindcss.com/docs/scroll-padding
3103
+ */
3104
+ "scroll-ps": [{
3105
+ "scroll-ps": scaleUnambiguousSpacing()
3106
+ }],
3107
+ /**
3108
+ * Scroll Padding Inline End
3109
+ * @see https://tailwindcss.com/docs/scroll-padding
3110
+ */
3111
+ "scroll-pe": [{
3112
+ "scroll-pe": scaleUnambiguousSpacing()
3113
+ }],
3114
+ /**
3115
+ * Scroll Padding Block Start
3116
+ * @see https://tailwindcss.com/docs/scroll-padding
3117
+ */
3118
+ "scroll-pbs": [{
3119
+ "scroll-pbs": scaleUnambiguousSpacing()
3120
+ }],
3121
+ /**
3122
+ * Scroll Padding Block End
3123
+ * @see https://tailwindcss.com/docs/scroll-padding
3124
+ */
3125
+ "scroll-pbe": [{
3126
+ "scroll-pbe": scaleUnambiguousSpacing()
3127
+ }],
3128
+ /**
3129
+ * Scroll Padding Top
3130
+ * @see https://tailwindcss.com/docs/scroll-padding
3131
+ */
3132
+ "scroll-pt": [{
3133
+ "scroll-pt": scaleUnambiguousSpacing()
3134
+ }],
3135
+ /**
3136
+ * Scroll Padding Right
3137
+ * @see https://tailwindcss.com/docs/scroll-padding
3138
+ */
3139
+ "scroll-pr": [{
3140
+ "scroll-pr": scaleUnambiguousSpacing()
3141
+ }],
3142
+ /**
3143
+ * Scroll Padding Bottom
3144
+ * @see https://tailwindcss.com/docs/scroll-padding
3145
+ */
3146
+ "scroll-pb": [{
3147
+ "scroll-pb": scaleUnambiguousSpacing()
3148
+ }],
3149
+ /**
3150
+ * Scroll Padding Left
3151
+ * @see https://tailwindcss.com/docs/scroll-padding
3152
+ */
3153
+ "scroll-pl": [{
3154
+ "scroll-pl": scaleUnambiguousSpacing()
3155
+ }],
3156
+ /**
3157
+ * Scroll Snap Align
3158
+ * @see https://tailwindcss.com/docs/scroll-snap-align
3159
+ */
3160
+ "snap-align": [{
3161
+ snap: ["start", "end", "center", "align-none"]
3162
+ }],
3163
+ /**
3164
+ * Scroll Snap Stop
3165
+ * @see https://tailwindcss.com/docs/scroll-snap-stop
3166
+ */
3167
+ "snap-stop": [{
3168
+ snap: ["normal", "always"]
3169
+ }],
3170
+ /**
3171
+ * Scroll Snap Type
3172
+ * @see https://tailwindcss.com/docs/scroll-snap-type
3173
+ */
3174
+ "snap-type": [{
3175
+ snap: ["none", "x", "y", "both"]
3176
+ }],
3177
+ /**
3178
+ * Scroll Snap Type Strictness
3179
+ * @see https://tailwindcss.com/docs/scroll-snap-type
3180
+ */
3181
+ "snap-strictness": [{
3182
+ snap: ["mandatory", "proximity"]
3183
+ }],
3184
+ /**
3185
+ * Touch Action
3186
+ * @see https://tailwindcss.com/docs/touch-action
3187
+ */
3188
+ touch: [{
3189
+ touch: ["auto", "none", "manipulation"]
3190
+ }],
3191
+ /**
3192
+ * Touch Action X
3193
+ * @see https://tailwindcss.com/docs/touch-action
3194
+ */
3195
+ "touch-x": [{
3196
+ "touch-pan": ["x", "left", "right"]
3197
+ }],
3198
+ /**
3199
+ * Touch Action Y
3200
+ * @see https://tailwindcss.com/docs/touch-action
3201
+ */
3202
+ "touch-y": [{
3203
+ "touch-pan": ["y", "up", "down"]
3204
+ }],
3205
+ /**
3206
+ * Touch Action Pinch Zoom
3207
+ * @see https://tailwindcss.com/docs/touch-action
3208
+ */
3209
+ "touch-pz": ["touch-pinch-zoom"],
3210
+ /**
3211
+ * User Select
3212
+ * @see https://tailwindcss.com/docs/user-select
3213
+ */
3214
+ select: [{
3215
+ select: ["none", "text", "all", "auto"]
3216
+ }],
3217
+ /**
3218
+ * Will Change
3219
+ * @see https://tailwindcss.com/docs/will-change
3220
+ */
3221
+ "will-change": [{
3222
+ "will-change": ["auto", "scroll", "contents", "transform", isArbitraryVariable, isArbitraryValue]
3223
+ }],
3224
+ // -----------
3225
+ // --- SVG ---
3226
+ // -----------
3227
+ /**
3228
+ * Fill
3229
+ * @see https://tailwindcss.com/docs/fill
3230
+ */
3231
+ fill: [{
3232
+ fill: ["none", ...scaleColor()]
3233
+ }],
3234
+ /**
3235
+ * Stroke Width
3236
+ * @see https://tailwindcss.com/docs/stroke-width
3237
+ */
3238
+ "stroke-w": [{
3239
+ stroke: [isNumber, isArbitraryVariableLength, isArbitraryLength, isArbitraryNumber]
3240
+ }],
3241
+ /**
3242
+ * Stroke
3243
+ * @see https://tailwindcss.com/docs/stroke
3244
+ */
3245
+ stroke: [{
3246
+ stroke: ["none", ...scaleColor()]
3247
+ }],
3248
+ // ---------------------
3249
+ // --- Accessibility ---
3250
+ // ---------------------
3251
+ /**
3252
+ * Forced Color Adjust
3253
+ * @see https://tailwindcss.com/docs/forced-color-adjust
3254
+ */
3255
+ "forced-color-adjust": [{
3256
+ "forced-color-adjust": ["auto", "none"]
3257
+ }]
3258
+ },
3259
+ conflictingClassGroups: {
3260
+ "container-named": ["container-type"],
3261
+ overflow: ["overflow-x", "overflow-y"],
3262
+ overscroll: ["overscroll-x", "overscroll-y"],
3263
+ inset: ["inset-x", "inset-y", "inset-bs", "inset-be", "start", "end", "top", "right", "bottom", "left"],
3264
+ "inset-x": ["right", "left"],
3265
+ "inset-y": ["top", "bottom"],
3266
+ flex: ["basis", "grow", "shrink"],
3267
+ gap: ["gap-x", "gap-y"],
3268
+ p: ["px", "py", "ps", "pe", "pbs", "pbe", "pt", "pr", "pb", "pl"],
3269
+ px: ["pr", "pl"],
3270
+ py: ["pt", "pb"],
3271
+ m: ["mx", "my", "ms", "me", "mbs", "mbe", "mt", "mr", "mb", "ml"],
3272
+ mx: ["mr", "ml"],
3273
+ my: ["mt", "mb"],
3274
+ size: ["w", "h"],
3275
+ "font-size": ["leading"],
3276
+ "fvn-normal": ["fvn-ordinal", "fvn-slashed-zero", "fvn-figure", "fvn-spacing", "fvn-fraction"],
3277
+ "fvn-ordinal": ["fvn-normal"],
3278
+ "fvn-slashed-zero": ["fvn-normal"],
3279
+ "fvn-figure": ["fvn-normal"],
3280
+ "fvn-spacing": ["fvn-normal"],
3281
+ "fvn-fraction": ["fvn-normal"],
3282
+ "line-clamp": ["display", "overflow"],
3283
+ 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"],
3284
+ "rounded-s": ["rounded-ss", "rounded-es"],
3285
+ "rounded-e": ["rounded-se", "rounded-ee"],
3286
+ "rounded-t": ["rounded-tl", "rounded-tr"],
3287
+ "rounded-r": ["rounded-tr", "rounded-br"],
3288
+ "rounded-b": ["rounded-br", "rounded-bl"],
3289
+ "rounded-l": ["rounded-tl", "rounded-bl"],
3290
+ "border-spacing": ["border-spacing-x", "border-spacing-y"],
3291
+ "border-w": ["border-w-x", "border-w-y", "border-w-s", "border-w-e", "border-w-bs", "border-w-be", "border-w-t", "border-w-r", "border-w-b", "border-w-l"],
3292
+ "border-w-x": ["border-w-r", "border-w-l"],
3293
+ "border-w-y": ["border-w-t", "border-w-b"],
3294
+ "border-color": ["border-color-x", "border-color-y", "border-color-s", "border-color-e", "border-color-bs", "border-color-be", "border-color-t", "border-color-r", "border-color-b", "border-color-l"],
3295
+ "border-color-x": ["border-color-r", "border-color-l"],
3296
+ "border-color-y": ["border-color-t", "border-color-b"],
3297
+ translate: ["translate-x", "translate-y", "translate-none"],
3298
+ "translate-none": ["translate", "translate-x", "translate-y", "translate-z"],
3299
+ "scroll-m": ["scroll-mx", "scroll-my", "scroll-ms", "scroll-me", "scroll-mbs", "scroll-mbe", "scroll-mt", "scroll-mr", "scroll-mb", "scroll-ml"],
3300
+ "scroll-mx": ["scroll-mr", "scroll-ml"],
3301
+ "scroll-my": ["scroll-mt", "scroll-mb"],
3302
+ "scroll-p": ["scroll-px", "scroll-py", "scroll-ps", "scroll-pe", "scroll-pbs", "scroll-pbe", "scroll-pt", "scroll-pr", "scroll-pb", "scroll-pl"],
3303
+ "scroll-px": ["scroll-pr", "scroll-pl"],
3304
+ "scroll-py": ["scroll-pt", "scroll-pb"],
3305
+ touch: ["touch-x", "touch-y", "touch-pz"],
3306
+ "touch-x": ["touch"],
3307
+ "touch-y": ["touch"],
3308
+ "touch-pz": ["touch"]
3309
+ },
3310
+ conflictingClassGroupModifiers: {
3311
+ "font-size": ["leading"]
3312
+ },
3313
+ postfixLookupClassGroups: ["container-type"],
3314
+ orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
3315
+ };
3316
+ };
3317
+ var twMerge = /* @__PURE__ */ createTailwindMerge(getDefaultConfig);
3318
+
3319
+ // src/console/cn.ts
3320
+ function cn(...inputs) {
3321
+ return twMerge(clsx(inputs));
3322
+ }
3323
+
3324
+ // src/button.tsx
3325
+ import { jsx } from "react/jsx-runtime";
3326
+ var HIT_AREA = "relative after:absolute after:left-1/2 after:top-1/2 after:size-full after:min-h-11 after:min-w-11 after:-translate-x-1/2 after:-translate-y-1/2";
3327
+ var SIZE = {
3328
+ sm: "h-8 gap-1.5 px-3 has-[>svg]:px-2.5",
3329
+ default: "h-9 px-4 py-2 has-[>svg]:px-3",
3330
+ icon: "size-8",
3331
+ "icon-sm": "size-7 rounded-md"
3332
+ };
3333
+ var buttonVariants = cva(
3334
+ `inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-lg text-sm font-medium transition-colors duration-150 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive ${HIT_AREA}`,
3335
+ {
3336
+ variants: {
3337
+ variant: {
3338
+ // The neutral default: navy in light, inverted in dark.
3339
+ default: "bg-primary text-primary-foreground hover:bg-primary/90",
3340
+ // The one dominant action of a task region: the dot orange, ink text.
3341
+ action: "bg-action text-action-foreground hover:bg-action/90",
3342
+ // Hover moves toward the foreground (darker in light, lighter in
3343
+ // dark): destructive/90 over white would drop white text to 4.30:1.
3344
+ destructive: "bg-destructive text-destructive-foreground hover:bg-[color-mix(in_srgb,var(--destructive)_88%,var(--foreground))]",
3345
+ outline: "border border-input bg-background hover:bg-accent hover:text-accent-foreground",
3346
+ secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
3347
+ ghost: "hover:bg-accent hover:text-accent-foreground",
3348
+ link: "text-link underline-offset-4 hover:underline after:hidden"
3349
+ },
3350
+ size: {
3351
+ ...SIZE,
3352
+ /** @deprecated Use `sm`. */
3353
+ xs: SIZE.sm,
3354
+ /** @deprecated Use `default`. */
3355
+ lg: SIZE.default,
3356
+ /** @deprecated Use `icon-sm`. */
3357
+ "icon-xs": SIZE["icon-sm"],
3358
+ /** @deprecated Use `icon`. */
3359
+ "icon-lg": SIZE.icon
3360
+ }
3361
+ },
3362
+ defaultVariants: {
3363
+ variant: "default",
3364
+ size: "sm"
3365
+ }
3366
+ }
3367
+ );
3368
+ var Button = React.forwardRef(function Button2({ className, variant = "default", size = "sm", asChild = false, disabled, onClick, ...props }, ref) {
3369
+ if (asChild && disabled) {
3370
+ return /* @__PURE__ */ jsx(
3371
+ DisabledSlot,
3372
+ {
3373
+ ref,
3374
+ "data-slot": "button",
3375
+ "data-variant": variant,
3376
+ "data-size": size,
3377
+ className: cn(buttonVariants({ variant, size }), "pointer-events-none opacity-50", className),
3378
+ ...props
3379
+ }
3380
+ );
3381
+ }
3382
+ const Comp = asChild ? Slot : "button";
3383
+ return /* @__PURE__ */ jsx(
3384
+ Comp,
3385
+ {
3386
+ ref,
3387
+ "data-slot": "button",
3388
+ "data-variant": variant,
3389
+ "data-size": size,
3390
+ className: cn(buttonVariants({ variant, size, className })),
3391
+ disabled,
3392
+ onClick,
3393
+ ...props
3394
+ }
3395
+ );
3396
+ });
3397
+ export {
3398
+ Button,
3399
+ buttonVariants
3400
+ };