@powerhousedao/connect 1.0.25-dev.3 → 1.0.25-dev.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{app-BtiIdebC.css → app-Di6g_N6F.css} +96 -78
- package/dist/assets/{app-DuevLOGa.js → app-DpvGvYx-.js} +2395 -1285
- package/dist/assets/app-DpvGvYx-.js.map +1 -0
- package/dist/assets/{app-loader-BNl_S7y5.js → app-loader-DlmRZ8eU.js} +219 -45
- package/dist/assets/app-loader-DlmRZ8eU.js.map +1 -0
- package/dist/assets/{app-loader-Kh2XKQY5.css → app-loader-b43YtazY.css} +15 -8
- package/dist/assets/{browser-BMIKwzU9.js → browser-CyAxFNDr.js} +4 -4
- package/dist/assets/{browser-BMIKwzU9.js.map → browser-CyAxFNDr.js.map} +1 -1
- package/dist/assets/{ccip-BoCYNkmd.js → ccip-B0vnV_KE.js} +4 -4
- package/dist/assets/{ccip-BoCYNkmd.js.map → ccip-B0vnV_KE.js.map} +1 -1
- package/dist/assets/{content-BLgob3rk.js → content-BECi_eC-.js} +5 -5
- package/dist/assets/{content-BLgob3rk.js.map → content-BECi_eC-.js.map} +1 -1
- package/dist/assets/{index-ChTDZAEG.js → index-CSdlimsY.js} +3409 -7
- package/dist/assets/index-CSdlimsY.js.map +1 -0
- package/dist/assets/{index-DjoCexCi.js → index-DdwuDRF1.js} +4 -4
- package/dist/assets/{index-DjoCexCi.js.map → index-DdwuDRF1.js.map} +1 -1
- package/dist/assets/{index-CvFSOEaQ.js → index-K6dF3gGM.js} +5 -5
- package/dist/assets/{index-CvFSOEaQ.js.map → index-K6dF3gGM.js.map} +1 -1
- package/dist/assets/{index-C6zbFAcK.js → index-mvOgfrBU.js} +4 -4
- package/dist/assets/index-mvOgfrBU.js.map +1 -0
- package/dist/assets/{main.CBcxpJYb.js → main.6cK_RVAD.js} +2 -2
- package/dist/assets/{main.CBcxpJYb.js.map → main.6cK_RVAD.js.map} +1 -1
- package/dist/assets/{reactor-analytics-m8eVeqfl.js → reactor-analytics-CPrrgnol.js} +6 -6
- package/dist/assets/{reactor-analytics-m8eVeqfl.js.map → reactor-analytics-CPrrgnol.js.map} +1 -1
- package/dist/assets/{router-BCYFp_Nf.js → router-Cdqw5UqJ.js} +6 -6
- package/dist/assets/{router-BCYFp_Nf.js.map → router-Cdqw5UqJ.js.map} +1 -1
- package/dist/assets/{style-DCJSX6pm.css → style-CK8AY-7U.css} +11 -12
- package/dist/index.html +1 -1
- package/dist/vite-envs.sh +1 -1
- package/package.json +12 -7
- package/dist/assets/app-DuevLOGa.js.map +0 -1
- package/dist/assets/app-loader-BNl_S7y5.js.map +0 -1
- package/dist/assets/index-C6zbFAcK.js.map +0 -1
- package/dist/assets/index-ChTDZAEG.js.map +0 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
var _a2, _b;
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
-
import {
|
|
4
|
-
import { aY as inspect$1, aZ as GraphQLError$1, a_ as getNamedType, a$ as invariant$2, b0 as isInputObjectType, b1 as isScalarType, b2 as isObjectType, b3 as isInterfaceType, b4 as isUnionType, b5 as isEnumType, b6 as print, b7 as isPrintableAsBlockString, b8 as Kind, b9 as astFromValue$1, ba as DEFAULT_DEPRECATION_REASON, bb as isSpecifiedDirective, bc as isSpecifiedScalarType, bd as isIntrospectionType, be as z, bf as GraphQLScalarType, bg as specifiedRules$1, bh as GraphQLID, bi as GraphQLBoolean, bj as GraphQLString, bk as GraphQLFloat, bl as GraphQLInt, bm as GraphQLDirective, bn as GraphQLObjectType, bo as GraphQLInterfaceType, bp as GraphQLUnionType, bq as GraphQLInputObjectType, br as GraphQLEnumType, bs as isListType, bt as GraphQLList, bu as isNonNullType, bv as GraphQLNonNull, bw as isNamedType, bx as getNullableType, by as isLeafType, bz as GraphQLSchema, bA as buildSchema, bB as buildASTSchema, bC as parse, bD as validate$2, Z as pascalCase, bE as visit, a1 as getDefaultExportFromCjs, bF as snakeCase, bG as constantCase, bH as isAbstractType, bI as BREAK, bJ as SchemaMetaFieldDef, bK as TypeMetaFieldDef, bL as TypeNameMetaFieldDef, bM as isCompositeType, bN as isOutputType, bO as isInputType, bP as assertAbstractType, bQ as doTypesOverlap, bR as DirectiveLocation, bS as NoUnusedFragmentsRule$1, bT as ExecutableDefinitionsRule$1, am as process, bU as validateSchema, bV as sentenceCase, ar as generateId } from "./app-loader-
|
|
3
|
+
import { a6 as clsx, a7 as get, a8 as set, a9 as appendErrors, aa as useFormContext, ab as Primitive, ac as cva, ad as FormProvider, ae as Controller, af as Slot, ag as useForm, ah as createContextScope, ai as useComposedRefs, aj as createSlot, ak as useId$1, al as composeEventHandlers, am as useControllableState, an as useCallbackRef, ao as Presence, ap as setModelName, aq as setModelId, ar as setModelDescription, as as setModelExtension, at as setAuthorName, au as setAuthorWebsite, av as setStateSchema, aw as setInitialState, ax as addModule, ay as setModuleName, az as deleteModule, aA as addOperation, aB as setOperationName, aC as setOperationSchema, aD as setOperationDescription, aE as deleteOperation, aF as addOperationError, aG as deleteOperationError, aH as setOperationErrorName } from "./app-DpvGvYx-.js";
|
|
4
|
+
import { aY as inspect$1, aZ as GraphQLError$1, a_ as getNamedType, a$ as invariant$2, b0 as isInputObjectType, b1 as isScalarType, b2 as isObjectType, b3 as isInterfaceType, b4 as isUnionType, b5 as isEnumType, b6 as print, b7 as isPrintableAsBlockString, b8 as Kind, b9 as astFromValue$1, ba as DEFAULT_DEPRECATION_REASON, bb as isSpecifiedDirective, bc as isSpecifiedScalarType, bd as isIntrospectionType, be as z, bf as GraphQLScalarType, bg as specifiedRules$1, bh as GraphQLID, bi as GraphQLBoolean, bj as GraphQLString, bk as GraphQLFloat, bl as GraphQLInt, bm as GraphQLDirective, bn as GraphQLObjectType, bo as GraphQLInterfaceType, bp as GraphQLUnionType, bq as GraphQLInputObjectType, br as GraphQLEnumType, bs as isListType, bt as GraphQLList, bu as isNonNullType, bv as GraphQLNonNull, bw as isNamedType, bx as getNullableType, by as isLeafType, bz as GraphQLSchema, bA as buildSchema, bB as buildASTSchema, bC as parse, bD as validate$2, Z as pascalCase, bE as visit, a1 as getDefaultExportFromCjs, bF as snakeCase, bG as constantCase, bH as isAbstractType, bI as BREAK, bJ as SchemaMetaFieldDef, bK as TypeMetaFieldDef, bL as TypeNameMetaFieldDef, bM as isCompositeType, bN as isOutputType, bO as isInputType, bP as assertAbstractType, bQ as doTypesOverlap, bR as DirectiveLocation, bS as NoUnusedFragmentsRule$1, bT as ExecutableDefinitionsRule$1, am as process, bU as validateSchema, bV as sentenceCase, ar as generateId } from "./app-loader-DlmRZ8eU.js";
|
|
5
5
|
import * as React from "react";
|
|
6
6
|
import React__default, { useState, useEffect, createContext, useContext, forwardRef, useRef, useCallback, useImperativeHandle, useId, memo, useMemo } from "react";
|
|
7
|
-
import "./main.
|
|
7
|
+
import "./main.6cK_RVAD.js";
|
|
8
8
|
import "react-dom";
|
|
9
9
|
const versionInfo = Object.freeze({
|
|
10
10
|
major: 16,
|
|
@@ -1042,6 +1042,2958 @@ function getPHCustomScalarByTypeName(name2) {
|
|
|
1042
1042
|
const scalar2 = Object.values(customScalars).find((scalar3) => scalar3.config.name === name2) ?? null;
|
|
1043
1043
|
return scalar2;
|
|
1044
1044
|
}
|
|
1045
|
+
const CLASS_PART_SEPARATOR = "-";
|
|
1046
|
+
const createClassGroupUtils = (config2) => {
|
|
1047
|
+
const classMap = createClassMap(config2);
|
|
1048
|
+
const {
|
|
1049
|
+
conflictingClassGroups,
|
|
1050
|
+
conflictingClassGroupModifiers
|
|
1051
|
+
} = config2;
|
|
1052
|
+
const getClassGroupId = (className) => {
|
|
1053
|
+
const classParts = className.split(CLASS_PART_SEPARATOR);
|
|
1054
|
+
if (classParts[0] === "" && classParts.length !== 1) {
|
|
1055
|
+
classParts.shift();
|
|
1056
|
+
}
|
|
1057
|
+
return getGroupRecursive(classParts, classMap) || getGroupIdForArbitraryProperty(className);
|
|
1058
|
+
};
|
|
1059
|
+
const getConflictingClassGroupIds = (classGroupId, hasPostfixModifier) => {
|
|
1060
|
+
const conflicts = conflictingClassGroups[classGroupId] || [];
|
|
1061
|
+
if (hasPostfixModifier && conflictingClassGroupModifiers[classGroupId]) {
|
|
1062
|
+
return [...conflicts, ...conflictingClassGroupModifiers[classGroupId]];
|
|
1063
|
+
}
|
|
1064
|
+
return conflicts;
|
|
1065
|
+
};
|
|
1066
|
+
return {
|
|
1067
|
+
getClassGroupId,
|
|
1068
|
+
getConflictingClassGroupIds
|
|
1069
|
+
};
|
|
1070
|
+
};
|
|
1071
|
+
const getGroupRecursive = (classParts, classPartObject) => {
|
|
1072
|
+
var _a3;
|
|
1073
|
+
if (classParts.length === 0) {
|
|
1074
|
+
return classPartObject.classGroupId;
|
|
1075
|
+
}
|
|
1076
|
+
const currentClassPart = classParts[0];
|
|
1077
|
+
const nextClassPartObject = classPartObject.nextPart.get(currentClassPart);
|
|
1078
|
+
const classGroupFromNextClassPart = nextClassPartObject ? getGroupRecursive(classParts.slice(1), nextClassPartObject) : void 0;
|
|
1079
|
+
if (classGroupFromNextClassPart) {
|
|
1080
|
+
return classGroupFromNextClassPart;
|
|
1081
|
+
}
|
|
1082
|
+
if (classPartObject.validators.length === 0) {
|
|
1083
|
+
return void 0;
|
|
1084
|
+
}
|
|
1085
|
+
const classRest = classParts.join(CLASS_PART_SEPARATOR);
|
|
1086
|
+
return (_a3 = classPartObject.validators.find(({
|
|
1087
|
+
validator: validator2
|
|
1088
|
+
}) => validator2(classRest))) == null ? void 0 : _a3.classGroupId;
|
|
1089
|
+
};
|
|
1090
|
+
const arbitraryPropertyRegex = /^\[(.+)\]$/;
|
|
1091
|
+
const getGroupIdForArbitraryProperty = (className) => {
|
|
1092
|
+
if (arbitraryPropertyRegex.test(className)) {
|
|
1093
|
+
const arbitraryPropertyClassName = arbitraryPropertyRegex.exec(className)[1];
|
|
1094
|
+
const property = arbitraryPropertyClassName == null ? void 0 : arbitraryPropertyClassName.substring(0, arbitraryPropertyClassName.indexOf(":"));
|
|
1095
|
+
if (property) {
|
|
1096
|
+
return "arbitrary.." + property;
|
|
1097
|
+
}
|
|
1098
|
+
}
|
|
1099
|
+
};
|
|
1100
|
+
const createClassMap = (config2) => {
|
|
1101
|
+
const {
|
|
1102
|
+
theme: theme2,
|
|
1103
|
+
classGroups
|
|
1104
|
+
} = config2;
|
|
1105
|
+
const classMap = {
|
|
1106
|
+
nextPart: /* @__PURE__ */ new Map(),
|
|
1107
|
+
validators: []
|
|
1108
|
+
};
|
|
1109
|
+
for (const classGroupId in classGroups) {
|
|
1110
|
+
processClassesRecursively(classGroups[classGroupId], classMap, classGroupId, theme2);
|
|
1111
|
+
}
|
|
1112
|
+
return classMap;
|
|
1113
|
+
};
|
|
1114
|
+
const processClassesRecursively = (classGroup, classPartObject, classGroupId, theme2) => {
|
|
1115
|
+
classGroup.forEach((classDefinition) => {
|
|
1116
|
+
if (typeof classDefinition === "string") {
|
|
1117
|
+
const classPartObjectToEdit = classDefinition === "" ? classPartObject : getPart(classPartObject, classDefinition);
|
|
1118
|
+
classPartObjectToEdit.classGroupId = classGroupId;
|
|
1119
|
+
return;
|
|
1120
|
+
}
|
|
1121
|
+
if (typeof classDefinition === "function") {
|
|
1122
|
+
if (isThemeGetter(classDefinition)) {
|
|
1123
|
+
processClassesRecursively(classDefinition(theme2), classPartObject, classGroupId, theme2);
|
|
1124
|
+
return;
|
|
1125
|
+
}
|
|
1126
|
+
classPartObject.validators.push({
|
|
1127
|
+
validator: classDefinition,
|
|
1128
|
+
classGroupId
|
|
1129
|
+
});
|
|
1130
|
+
return;
|
|
1131
|
+
}
|
|
1132
|
+
Object.entries(classDefinition).forEach(([key, classGroup2]) => {
|
|
1133
|
+
processClassesRecursively(classGroup2, getPart(classPartObject, key), classGroupId, theme2);
|
|
1134
|
+
});
|
|
1135
|
+
});
|
|
1136
|
+
};
|
|
1137
|
+
const getPart = (classPartObject, path) => {
|
|
1138
|
+
let currentClassPartObject = classPartObject;
|
|
1139
|
+
path.split(CLASS_PART_SEPARATOR).forEach((pathPart) => {
|
|
1140
|
+
if (!currentClassPartObject.nextPart.has(pathPart)) {
|
|
1141
|
+
currentClassPartObject.nextPart.set(pathPart, {
|
|
1142
|
+
nextPart: /* @__PURE__ */ new Map(),
|
|
1143
|
+
validators: []
|
|
1144
|
+
});
|
|
1145
|
+
}
|
|
1146
|
+
currentClassPartObject = currentClassPartObject.nextPart.get(pathPart);
|
|
1147
|
+
});
|
|
1148
|
+
return currentClassPartObject;
|
|
1149
|
+
};
|
|
1150
|
+
const isThemeGetter = (func) => func.isThemeGetter;
|
|
1151
|
+
const createLruCache = (maxCacheSize) => {
|
|
1152
|
+
if (maxCacheSize < 1) {
|
|
1153
|
+
return {
|
|
1154
|
+
get: () => void 0,
|
|
1155
|
+
set: () => {
|
|
1156
|
+
}
|
|
1157
|
+
};
|
|
1158
|
+
}
|
|
1159
|
+
let cacheSize = 0;
|
|
1160
|
+
let cache = /* @__PURE__ */ new Map();
|
|
1161
|
+
let previousCache = /* @__PURE__ */ new Map();
|
|
1162
|
+
const update = (key, value) => {
|
|
1163
|
+
cache.set(key, value);
|
|
1164
|
+
cacheSize++;
|
|
1165
|
+
if (cacheSize > maxCacheSize) {
|
|
1166
|
+
cacheSize = 0;
|
|
1167
|
+
previousCache = cache;
|
|
1168
|
+
cache = /* @__PURE__ */ new Map();
|
|
1169
|
+
}
|
|
1170
|
+
};
|
|
1171
|
+
return {
|
|
1172
|
+
get(key) {
|
|
1173
|
+
let value = cache.get(key);
|
|
1174
|
+
if (value !== void 0) {
|
|
1175
|
+
return value;
|
|
1176
|
+
}
|
|
1177
|
+
if ((value = previousCache.get(key)) !== void 0) {
|
|
1178
|
+
update(key, value);
|
|
1179
|
+
return value;
|
|
1180
|
+
}
|
|
1181
|
+
},
|
|
1182
|
+
set(key, value) {
|
|
1183
|
+
if (cache.has(key)) {
|
|
1184
|
+
cache.set(key, value);
|
|
1185
|
+
} else {
|
|
1186
|
+
update(key, value);
|
|
1187
|
+
}
|
|
1188
|
+
}
|
|
1189
|
+
};
|
|
1190
|
+
};
|
|
1191
|
+
const IMPORTANT_MODIFIER = "!";
|
|
1192
|
+
const MODIFIER_SEPARATOR = ":";
|
|
1193
|
+
const MODIFIER_SEPARATOR_LENGTH = MODIFIER_SEPARATOR.length;
|
|
1194
|
+
const createParseClassName = (config2) => {
|
|
1195
|
+
const {
|
|
1196
|
+
prefix,
|
|
1197
|
+
experimentalParseClassName
|
|
1198
|
+
} = config2;
|
|
1199
|
+
let parseClassName = (className) => {
|
|
1200
|
+
const modifiers2 = [];
|
|
1201
|
+
let bracketDepth = 0;
|
|
1202
|
+
let parenDepth = 0;
|
|
1203
|
+
let modifierStart = 0;
|
|
1204
|
+
let postfixModifierPosition;
|
|
1205
|
+
for (let index = 0; index < className.length; index++) {
|
|
1206
|
+
let currentCharacter = className[index];
|
|
1207
|
+
if (bracketDepth === 0 && parenDepth === 0) {
|
|
1208
|
+
if (currentCharacter === MODIFIER_SEPARATOR) {
|
|
1209
|
+
modifiers2.push(className.slice(modifierStart, index));
|
|
1210
|
+
modifierStart = index + MODIFIER_SEPARATOR_LENGTH;
|
|
1211
|
+
continue;
|
|
1212
|
+
}
|
|
1213
|
+
if (currentCharacter === "/") {
|
|
1214
|
+
postfixModifierPosition = index;
|
|
1215
|
+
continue;
|
|
1216
|
+
}
|
|
1217
|
+
}
|
|
1218
|
+
if (currentCharacter === "[") {
|
|
1219
|
+
bracketDepth++;
|
|
1220
|
+
} else if (currentCharacter === "]") {
|
|
1221
|
+
bracketDepth--;
|
|
1222
|
+
} else if (currentCharacter === "(") {
|
|
1223
|
+
parenDepth++;
|
|
1224
|
+
} else if (currentCharacter === ")") {
|
|
1225
|
+
parenDepth--;
|
|
1226
|
+
}
|
|
1227
|
+
}
|
|
1228
|
+
const baseClassNameWithImportantModifier = modifiers2.length === 0 ? className : className.substring(modifierStart);
|
|
1229
|
+
const baseClassName = stripImportantModifier(baseClassNameWithImportantModifier);
|
|
1230
|
+
const hasImportantModifier = baseClassName !== baseClassNameWithImportantModifier;
|
|
1231
|
+
const maybePostfixModifierPosition = postfixModifierPosition && postfixModifierPosition > modifierStart ? postfixModifierPosition - modifierStart : void 0;
|
|
1232
|
+
return {
|
|
1233
|
+
modifiers: modifiers2,
|
|
1234
|
+
hasImportantModifier,
|
|
1235
|
+
baseClassName,
|
|
1236
|
+
maybePostfixModifierPosition
|
|
1237
|
+
};
|
|
1238
|
+
};
|
|
1239
|
+
if (prefix) {
|
|
1240
|
+
const fullPrefix = prefix + MODIFIER_SEPARATOR;
|
|
1241
|
+
const parseClassNameOriginal = parseClassName;
|
|
1242
|
+
parseClassName = (className) => className.startsWith(fullPrefix) ? parseClassNameOriginal(className.substring(fullPrefix.length)) : {
|
|
1243
|
+
isExternal: true,
|
|
1244
|
+
modifiers: [],
|
|
1245
|
+
hasImportantModifier: false,
|
|
1246
|
+
baseClassName: className,
|
|
1247
|
+
maybePostfixModifierPosition: void 0
|
|
1248
|
+
};
|
|
1249
|
+
}
|
|
1250
|
+
if (experimentalParseClassName) {
|
|
1251
|
+
const parseClassNameOriginal = parseClassName;
|
|
1252
|
+
parseClassName = (className) => experimentalParseClassName({
|
|
1253
|
+
className,
|
|
1254
|
+
parseClassName: parseClassNameOriginal
|
|
1255
|
+
});
|
|
1256
|
+
}
|
|
1257
|
+
return parseClassName;
|
|
1258
|
+
};
|
|
1259
|
+
const stripImportantModifier = (baseClassName) => {
|
|
1260
|
+
if (baseClassName.endsWith(IMPORTANT_MODIFIER)) {
|
|
1261
|
+
return baseClassName.substring(0, baseClassName.length - 1);
|
|
1262
|
+
}
|
|
1263
|
+
if (baseClassName.startsWith(IMPORTANT_MODIFIER)) {
|
|
1264
|
+
return baseClassName.substring(1);
|
|
1265
|
+
}
|
|
1266
|
+
return baseClassName;
|
|
1267
|
+
};
|
|
1268
|
+
const createSortModifiers = (config2) => {
|
|
1269
|
+
const orderSensitiveModifiers = Object.fromEntries(config2.orderSensitiveModifiers.map((modifier) => [modifier, true]));
|
|
1270
|
+
const sortModifiers = (modifiers2) => {
|
|
1271
|
+
if (modifiers2.length <= 1) {
|
|
1272
|
+
return modifiers2;
|
|
1273
|
+
}
|
|
1274
|
+
const sortedModifiers = [];
|
|
1275
|
+
let unsortedModifiers = [];
|
|
1276
|
+
modifiers2.forEach((modifier) => {
|
|
1277
|
+
const isPositionSensitive = modifier[0] === "[" || orderSensitiveModifiers[modifier];
|
|
1278
|
+
if (isPositionSensitive) {
|
|
1279
|
+
sortedModifiers.push(...unsortedModifiers.sort(), modifier);
|
|
1280
|
+
unsortedModifiers = [];
|
|
1281
|
+
} else {
|
|
1282
|
+
unsortedModifiers.push(modifier);
|
|
1283
|
+
}
|
|
1284
|
+
});
|
|
1285
|
+
sortedModifiers.push(...unsortedModifiers.sort());
|
|
1286
|
+
return sortedModifiers;
|
|
1287
|
+
};
|
|
1288
|
+
return sortModifiers;
|
|
1289
|
+
};
|
|
1290
|
+
const createConfigUtils = (config2) => ({
|
|
1291
|
+
cache: createLruCache(config2.cacheSize),
|
|
1292
|
+
parseClassName: createParseClassName(config2),
|
|
1293
|
+
sortModifiers: createSortModifiers(config2),
|
|
1294
|
+
...createClassGroupUtils(config2)
|
|
1295
|
+
});
|
|
1296
|
+
const SPLIT_CLASSES_REGEX = /\s+/;
|
|
1297
|
+
const mergeClassList = (classList, configUtils) => {
|
|
1298
|
+
const {
|
|
1299
|
+
parseClassName,
|
|
1300
|
+
getClassGroupId,
|
|
1301
|
+
getConflictingClassGroupIds,
|
|
1302
|
+
sortModifiers
|
|
1303
|
+
} = configUtils;
|
|
1304
|
+
const classGroupsInConflict = [];
|
|
1305
|
+
const classNames = classList.trim().split(SPLIT_CLASSES_REGEX);
|
|
1306
|
+
let result = "";
|
|
1307
|
+
for (let index = classNames.length - 1; index >= 0; index -= 1) {
|
|
1308
|
+
const originalClassName = classNames[index];
|
|
1309
|
+
const {
|
|
1310
|
+
isExternal,
|
|
1311
|
+
modifiers: modifiers2,
|
|
1312
|
+
hasImportantModifier,
|
|
1313
|
+
baseClassName,
|
|
1314
|
+
maybePostfixModifierPosition
|
|
1315
|
+
} = parseClassName(originalClassName);
|
|
1316
|
+
if (isExternal) {
|
|
1317
|
+
result = originalClassName + (result.length > 0 ? " " + result : result);
|
|
1318
|
+
continue;
|
|
1319
|
+
}
|
|
1320
|
+
let hasPostfixModifier = !!maybePostfixModifierPosition;
|
|
1321
|
+
let classGroupId = getClassGroupId(hasPostfixModifier ? baseClassName.substring(0, maybePostfixModifierPosition) : baseClassName);
|
|
1322
|
+
if (!classGroupId) {
|
|
1323
|
+
if (!hasPostfixModifier) {
|
|
1324
|
+
result = originalClassName + (result.length > 0 ? " " + result : result);
|
|
1325
|
+
continue;
|
|
1326
|
+
}
|
|
1327
|
+
classGroupId = getClassGroupId(baseClassName);
|
|
1328
|
+
if (!classGroupId) {
|
|
1329
|
+
result = originalClassName + (result.length > 0 ? " " + result : result);
|
|
1330
|
+
continue;
|
|
1331
|
+
}
|
|
1332
|
+
hasPostfixModifier = false;
|
|
1333
|
+
}
|
|
1334
|
+
const variantModifier = sortModifiers(modifiers2).join(":");
|
|
1335
|
+
const modifierId = hasImportantModifier ? variantModifier + IMPORTANT_MODIFIER : variantModifier;
|
|
1336
|
+
const classId = modifierId + classGroupId;
|
|
1337
|
+
if (classGroupsInConflict.includes(classId)) {
|
|
1338
|
+
continue;
|
|
1339
|
+
}
|
|
1340
|
+
classGroupsInConflict.push(classId);
|
|
1341
|
+
const conflictGroups = getConflictingClassGroupIds(classGroupId, hasPostfixModifier);
|
|
1342
|
+
for (let i = 0; i < conflictGroups.length; ++i) {
|
|
1343
|
+
const group = conflictGroups[i];
|
|
1344
|
+
classGroupsInConflict.push(modifierId + group);
|
|
1345
|
+
}
|
|
1346
|
+
result = originalClassName + (result.length > 0 ? " " + result : result);
|
|
1347
|
+
}
|
|
1348
|
+
return result;
|
|
1349
|
+
};
|
|
1350
|
+
function twJoin() {
|
|
1351
|
+
let index = 0;
|
|
1352
|
+
let argument;
|
|
1353
|
+
let resolvedValue;
|
|
1354
|
+
let string2 = "";
|
|
1355
|
+
while (index < arguments.length) {
|
|
1356
|
+
if (argument = arguments[index++]) {
|
|
1357
|
+
if (resolvedValue = toValue(argument)) {
|
|
1358
|
+
string2 && (string2 += " ");
|
|
1359
|
+
string2 += resolvedValue;
|
|
1360
|
+
}
|
|
1361
|
+
}
|
|
1362
|
+
}
|
|
1363
|
+
return string2;
|
|
1364
|
+
}
|
|
1365
|
+
const toValue = (mix) => {
|
|
1366
|
+
if (typeof mix === "string") {
|
|
1367
|
+
return mix;
|
|
1368
|
+
}
|
|
1369
|
+
let resolvedValue;
|
|
1370
|
+
let string2 = "";
|
|
1371
|
+
for (let k = 0; k < mix.length; k++) {
|
|
1372
|
+
if (mix[k]) {
|
|
1373
|
+
if (resolvedValue = toValue(mix[k])) {
|
|
1374
|
+
string2 && (string2 += " ");
|
|
1375
|
+
string2 += resolvedValue;
|
|
1376
|
+
}
|
|
1377
|
+
}
|
|
1378
|
+
}
|
|
1379
|
+
return string2;
|
|
1380
|
+
};
|
|
1381
|
+
function createTailwindMerge(createConfigFirst, ...createConfigRest) {
|
|
1382
|
+
let configUtils;
|
|
1383
|
+
let cacheGet;
|
|
1384
|
+
let cacheSet;
|
|
1385
|
+
let functionToCall = initTailwindMerge;
|
|
1386
|
+
function initTailwindMerge(classList) {
|
|
1387
|
+
const config2 = createConfigRest.reduce((previousConfig, createConfigCurrent) => createConfigCurrent(previousConfig), createConfigFirst());
|
|
1388
|
+
configUtils = createConfigUtils(config2);
|
|
1389
|
+
cacheGet = configUtils.cache.get;
|
|
1390
|
+
cacheSet = configUtils.cache.set;
|
|
1391
|
+
functionToCall = tailwindMerge;
|
|
1392
|
+
return tailwindMerge(classList);
|
|
1393
|
+
}
|
|
1394
|
+
function tailwindMerge(classList) {
|
|
1395
|
+
const cachedResult = cacheGet(classList);
|
|
1396
|
+
if (cachedResult) {
|
|
1397
|
+
return cachedResult;
|
|
1398
|
+
}
|
|
1399
|
+
const result = mergeClassList(classList, configUtils);
|
|
1400
|
+
cacheSet(classList, result);
|
|
1401
|
+
return result;
|
|
1402
|
+
}
|
|
1403
|
+
return function callTailwindMerge() {
|
|
1404
|
+
return functionToCall(twJoin.apply(null, arguments));
|
|
1405
|
+
};
|
|
1406
|
+
}
|
|
1407
|
+
const fromTheme = (key) => {
|
|
1408
|
+
const themeGetter = (theme2) => theme2[key] || [];
|
|
1409
|
+
themeGetter.isThemeGetter = true;
|
|
1410
|
+
return themeGetter;
|
|
1411
|
+
};
|
|
1412
|
+
const arbitraryValueRegex = /^\[(?:(\w[\w-]*):)?(.+)\]$/i;
|
|
1413
|
+
const arbitraryVariableRegex = /^\((?:(\w[\w-]*):)?(.+)\)$/i;
|
|
1414
|
+
const fractionRegex = /^\d+\/\d+$/;
|
|
1415
|
+
const tshirtUnitRegex = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/;
|
|
1416
|
+
const 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$/;
|
|
1417
|
+
const colorFunctionRegex = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/;
|
|
1418
|
+
const shadowRegex = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;
|
|
1419
|
+
const imageRegex = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;
|
|
1420
|
+
const isFraction = (value) => fractionRegex.test(value);
|
|
1421
|
+
const isNumber = (value) => !!value && !Number.isNaN(Number(value));
|
|
1422
|
+
const isInteger = (value) => !!value && Number.isInteger(Number(value));
|
|
1423
|
+
const isPercent = (value) => value.endsWith("%") && isNumber(value.slice(0, -1));
|
|
1424
|
+
const isTshirtSize = (value) => tshirtUnitRegex.test(value);
|
|
1425
|
+
const isAny = () => true;
|
|
1426
|
+
const isLengthOnly = (value) => (
|
|
1427
|
+
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
1428
|
+
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
1429
|
+
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
1430
|
+
lengthUnitRegex.test(value) && !colorFunctionRegex.test(value)
|
|
1431
|
+
);
|
|
1432
|
+
const isNever = () => false;
|
|
1433
|
+
const isShadow = (value) => shadowRegex.test(value);
|
|
1434
|
+
const isImage = (value) => imageRegex.test(value);
|
|
1435
|
+
const isAnyNonArbitrary = (value) => !isArbitraryValue(value) && !isArbitraryVariable(value);
|
|
1436
|
+
const isArbitrarySize = (value) => getIsArbitraryValue(value, isLabelSize, isNever);
|
|
1437
|
+
const isArbitraryValue = (value) => arbitraryValueRegex.test(value);
|
|
1438
|
+
const isArbitraryLength = (value) => getIsArbitraryValue(value, isLabelLength, isLengthOnly);
|
|
1439
|
+
const isArbitraryNumber = (value) => getIsArbitraryValue(value, isLabelNumber, isNumber);
|
|
1440
|
+
const isArbitraryPosition = (value) => getIsArbitraryValue(value, isLabelPosition, isNever);
|
|
1441
|
+
const isArbitraryImage = (value) => getIsArbitraryValue(value, isLabelImage, isImage);
|
|
1442
|
+
const isArbitraryShadow = (value) => getIsArbitraryValue(value, isLabelShadow, isShadow);
|
|
1443
|
+
const isArbitraryVariable = (value) => arbitraryVariableRegex.test(value);
|
|
1444
|
+
const isArbitraryVariableLength = (value) => getIsArbitraryVariable(value, isLabelLength);
|
|
1445
|
+
const isArbitraryVariableFamilyName = (value) => getIsArbitraryVariable(value, isLabelFamilyName);
|
|
1446
|
+
const isArbitraryVariablePosition = (value) => getIsArbitraryVariable(value, isLabelPosition);
|
|
1447
|
+
const isArbitraryVariableSize = (value) => getIsArbitraryVariable(value, isLabelSize);
|
|
1448
|
+
const isArbitraryVariableImage = (value) => getIsArbitraryVariable(value, isLabelImage);
|
|
1449
|
+
const isArbitraryVariableShadow = (value) => getIsArbitraryVariable(value, isLabelShadow, true);
|
|
1450
|
+
const getIsArbitraryValue = (value, testLabel, testValue) => {
|
|
1451
|
+
const result = arbitraryValueRegex.exec(value);
|
|
1452
|
+
if (result) {
|
|
1453
|
+
if (result[1]) {
|
|
1454
|
+
return testLabel(result[1]);
|
|
1455
|
+
}
|
|
1456
|
+
return testValue(result[2]);
|
|
1457
|
+
}
|
|
1458
|
+
return false;
|
|
1459
|
+
};
|
|
1460
|
+
const getIsArbitraryVariable = (value, testLabel, shouldMatchNoLabel = false) => {
|
|
1461
|
+
const result = arbitraryVariableRegex.exec(value);
|
|
1462
|
+
if (result) {
|
|
1463
|
+
if (result[1]) {
|
|
1464
|
+
return testLabel(result[1]);
|
|
1465
|
+
}
|
|
1466
|
+
return shouldMatchNoLabel;
|
|
1467
|
+
}
|
|
1468
|
+
return false;
|
|
1469
|
+
};
|
|
1470
|
+
const isLabelPosition = (label) => label === "position" || label === "percentage";
|
|
1471
|
+
const isLabelImage = (label) => label === "image" || label === "url";
|
|
1472
|
+
const isLabelSize = (label) => label === "length" || label === "size" || label === "bg-size";
|
|
1473
|
+
const isLabelLength = (label) => label === "length";
|
|
1474
|
+
const isLabelNumber = (label) => label === "number";
|
|
1475
|
+
const isLabelFamilyName = (label) => label === "family-name";
|
|
1476
|
+
const isLabelShadow = (label) => label === "shadow";
|
|
1477
|
+
const getDefaultConfig = () => {
|
|
1478
|
+
const themeColor = fromTheme("color");
|
|
1479
|
+
const themeFont = fromTheme("font");
|
|
1480
|
+
const themeText = fromTheme("text");
|
|
1481
|
+
const themeFontWeight = fromTheme("font-weight");
|
|
1482
|
+
const themeTracking = fromTheme("tracking");
|
|
1483
|
+
const themeLeading = fromTheme("leading");
|
|
1484
|
+
const themeBreakpoint = fromTheme("breakpoint");
|
|
1485
|
+
const themeContainer = fromTheme("container");
|
|
1486
|
+
const themeSpacing = fromTheme("spacing");
|
|
1487
|
+
const themeRadius = fromTheme("radius");
|
|
1488
|
+
const themeShadow = fromTheme("shadow");
|
|
1489
|
+
const themeInsetShadow = fromTheme("inset-shadow");
|
|
1490
|
+
const themeTextShadow = fromTheme("text-shadow");
|
|
1491
|
+
const themeDropShadow = fromTheme("drop-shadow");
|
|
1492
|
+
const themeBlur = fromTheme("blur");
|
|
1493
|
+
const themePerspective = fromTheme("perspective");
|
|
1494
|
+
const themeAspect = fromTheme("aspect");
|
|
1495
|
+
const themeEase = fromTheme("ease");
|
|
1496
|
+
const themeAnimate = fromTheme("animate");
|
|
1497
|
+
const scaleBreak = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"];
|
|
1498
|
+
const scalePosition = () => [
|
|
1499
|
+
"center",
|
|
1500
|
+
"top",
|
|
1501
|
+
"bottom",
|
|
1502
|
+
"left",
|
|
1503
|
+
"right",
|
|
1504
|
+
"top-left",
|
|
1505
|
+
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
1506
|
+
"left-top",
|
|
1507
|
+
"top-right",
|
|
1508
|
+
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
1509
|
+
"right-top",
|
|
1510
|
+
"bottom-right",
|
|
1511
|
+
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
1512
|
+
"right-bottom",
|
|
1513
|
+
"bottom-left",
|
|
1514
|
+
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
1515
|
+
"left-bottom"
|
|
1516
|
+
];
|
|
1517
|
+
const scalePositionWithArbitrary = () => [...scalePosition(), isArbitraryVariable, isArbitraryValue];
|
|
1518
|
+
const scaleOverflow = () => ["auto", "hidden", "clip", "visible", "scroll"];
|
|
1519
|
+
const scaleOverscroll = () => ["auto", "contain", "none"];
|
|
1520
|
+
const scaleUnambiguousSpacing = () => [isArbitraryVariable, isArbitraryValue, themeSpacing];
|
|
1521
|
+
const scaleInset = () => [isFraction, "full", "auto", ...scaleUnambiguousSpacing()];
|
|
1522
|
+
const scaleGridTemplateColsRows = () => [isInteger, "none", "subgrid", isArbitraryVariable, isArbitraryValue];
|
|
1523
|
+
const scaleGridColRowStartAndEnd = () => ["auto", {
|
|
1524
|
+
span: ["full", isInteger, isArbitraryVariable, isArbitraryValue]
|
|
1525
|
+
}, isInteger, isArbitraryVariable, isArbitraryValue];
|
|
1526
|
+
const scaleGridColRowStartOrEnd = () => [isInteger, "auto", isArbitraryVariable, isArbitraryValue];
|
|
1527
|
+
const scaleGridAutoColsRows = () => ["auto", "min", "max", "fr", isArbitraryVariable, isArbitraryValue];
|
|
1528
|
+
const scaleAlignPrimaryAxis = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"];
|
|
1529
|
+
const scaleAlignSecondaryAxis = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"];
|
|
1530
|
+
const scaleMargin = () => ["auto", ...scaleUnambiguousSpacing()];
|
|
1531
|
+
const scaleSizing = () => [isFraction, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...scaleUnambiguousSpacing()];
|
|
1532
|
+
const scaleColor = () => [themeColor, isArbitraryVariable, isArbitraryValue];
|
|
1533
|
+
const scaleBgPosition = () => [...scalePosition(), isArbitraryVariablePosition, isArbitraryPosition, {
|
|
1534
|
+
position: [isArbitraryVariable, isArbitraryValue]
|
|
1535
|
+
}];
|
|
1536
|
+
const scaleBgRepeat = () => ["no-repeat", {
|
|
1537
|
+
repeat: ["", "x", "y", "space", "round"]
|
|
1538
|
+
}];
|
|
1539
|
+
const scaleBgSize = () => ["auto", "cover", "contain", isArbitraryVariableSize, isArbitrarySize, {
|
|
1540
|
+
size: [isArbitraryVariable, isArbitraryValue]
|
|
1541
|
+
}];
|
|
1542
|
+
const scaleGradientStopPosition = () => [isPercent, isArbitraryVariableLength, isArbitraryLength];
|
|
1543
|
+
const scaleRadius = () => [
|
|
1544
|
+
// Deprecated since Tailwind CSS v4.0.0
|
|
1545
|
+
"",
|
|
1546
|
+
"none",
|
|
1547
|
+
"full",
|
|
1548
|
+
themeRadius,
|
|
1549
|
+
isArbitraryVariable,
|
|
1550
|
+
isArbitraryValue
|
|
1551
|
+
];
|
|
1552
|
+
const scaleBorderWidth = () => ["", isNumber, isArbitraryVariableLength, isArbitraryLength];
|
|
1553
|
+
const scaleLineStyle = () => ["solid", "dashed", "dotted", "double"];
|
|
1554
|
+
const scaleBlendMode = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"];
|
|
1555
|
+
const scaleMaskImagePosition = () => [isNumber, isPercent, isArbitraryVariablePosition, isArbitraryPosition];
|
|
1556
|
+
const scaleBlur = () => [
|
|
1557
|
+
// Deprecated since Tailwind CSS v4.0.0
|
|
1558
|
+
"",
|
|
1559
|
+
"none",
|
|
1560
|
+
themeBlur,
|
|
1561
|
+
isArbitraryVariable,
|
|
1562
|
+
isArbitraryValue
|
|
1563
|
+
];
|
|
1564
|
+
const scaleRotate = () => ["none", isNumber, isArbitraryVariable, isArbitraryValue];
|
|
1565
|
+
const scaleScale = () => ["none", isNumber, isArbitraryVariable, isArbitraryValue];
|
|
1566
|
+
const scaleSkew = () => [isNumber, isArbitraryVariable, isArbitraryValue];
|
|
1567
|
+
const scaleTranslate = () => [isFraction, "full", ...scaleUnambiguousSpacing()];
|
|
1568
|
+
return {
|
|
1569
|
+
cacheSize: 500,
|
|
1570
|
+
theme: {
|
|
1571
|
+
animate: ["spin", "ping", "pulse", "bounce"],
|
|
1572
|
+
aspect: ["video"],
|
|
1573
|
+
blur: [isTshirtSize],
|
|
1574
|
+
breakpoint: [isTshirtSize],
|
|
1575
|
+
color: [isAny],
|
|
1576
|
+
container: [isTshirtSize],
|
|
1577
|
+
"drop-shadow": [isTshirtSize],
|
|
1578
|
+
ease: ["in", "out", "in-out"],
|
|
1579
|
+
font: [isAnyNonArbitrary],
|
|
1580
|
+
"font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
|
|
1581
|
+
"inset-shadow": [isTshirtSize],
|
|
1582
|
+
leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
|
|
1583
|
+
perspective: ["dramatic", "near", "normal", "midrange", "distant", "none"],
|
|
1584
|
+
radius: [isTshirtSize],
|
|
1585
|
+
shadow: [isTshirtSize],
|
|
1586
|
+
spacing: ["px", isNumber],
|
|
1587
|
+
text: [isTshirtSize],
|
|
1588
|
+
"text-shadow": [isTshirtSize],
|
|
1589
|
+
tracking: ["tighter", "tight", "normal", "wide", "wider", "widest"]
|
|
1590
|
+
},
|
|
1591
|
+
classGroups: {
|
|
1592
|
+
// --------------
|
|
1593
|
+
// --- Layout ---
|
|
1594
|
+
// --------------
|
|
1595
|
+
/**
|
|
1596
|
+
* Aspect Ratio
|
|
1597
|
+
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
1598
|
+
*/
|
|
1599
|
+
aspect: [{
|
|
1600
|
+
aspect: ["auto", "square", isFraction, isArbitraryValue, isArbitraryVariable, themeAspect]
|
|
1601
|
+
}],
|
|
1602
|
+
/**
|
|
1603
|
+
* Container
|
|
1604
|
+
* @see https://tailwindcss.com/docs/container
|
|
1605
|
+
* @deprecated since Tailwind CSS v4.0.0
|
|
1606
|
+
*/
|
|
1607
|
+
container: ["container"],
|
|
1608
|
+
/**
|
|
1609
|
+
* Columns
|
|
1610
|
+
* @see https://tailwindcss.com/docs/columns
|
|
1611
|
+
*/
|
|
1612
|
+
columns: [{
|
|
1613
|
+
columns: [isNumber, isArbitraryValue, isArbitraryVariable, themeContainer]
|
|
1614
|
+
}],
|
|
1615
|
+
/**
|
|
1616
|
+
* Break After
|
|
1617
|
+
* @see https://tailwindcss.com/docs/break-after
|
|
1618
|
+
*/
|
|
1619
|
+
"break-after": [{
|
|
1620
|
+
"break-after": scaleBreak()
|
|
1621
|
+
}],
|
|
1622
|
+
/**
|
|
1623
|
+
* Break Before
|
|
1624
|
+
* @see https://tailwindcss.com/docs/break-before
|
|
1625
|
+
*/
|
|
1626
|
+
"break-before": [{
|
|
1627
|
+
"break-before": scaleBreak()
|
|
1628
|
+
}],
|
|
1629
|
+
/**
|
|
1630
|
+
* Break Inside
|
|
1631
|
+
* @see https://tailwindcss.com/docs/break-inside
|
|
1632
|
+
*/
|
|
1633
|
+
"break-inside": [{
|
|
1634
|
+
"break-inside": ["auto", "avoid", "avoid-page", "avoid-column"]
|
|
1635
|
+
}],
|
|
1636
|
+
/**
|
|
1637
|
+
* Box Decoration Break
|
|
1638
|
+
* @see https://tailwindcss.com/docs/box-decoration-break
|
|
1639
|
+
*/
|
|
1640
|
+
"box-decoration": [{
|
|
1641
|
+
"box-decoration": ["slice", "clone"]
|
|
1642
|
+
}],
|
|
1643
|
+
/**
|
|
1644
|
+
* Box Sizing
|
|
1645
|
+
* @see https://tailwindcss.com/docs/box-sizing
|
|
1646
|
+
*/
|
|
1647
|
+
box: [{
|
|
1648
|
+
box: ["border", "content"]
|
|
1649
|
+
}],
|
|
1650
|
+
/**
|
|
1651
|
+
* Display
|
|
1652
|
+
* @see https://tailwindcss.com/docs/display
|
|
1653
|
+
*/
|
|
1654
|
+
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"],
|
|
1655
|
+
/**
|
|
1656
|
+
* Screen Reader Only
|
|
1657
|
+
* @see https://tailwindcss.com/docs/display#screen-reader-only
|
|
1658
|
+
*/
|
|
1659
|
+
sr: ["sr-only", "not-sr-only"],
|
|
1660
|
+
/**
|
|
1661
|
+
* Floats
|
|
1662
|
+
* @see https://tailwindcss.com/docs/float
|
|
1663
|
+
*/
|
|
1664
|
+
float: [{
|
|
1665
|
+
float: ["right", "left", "none", "start", "end"]
|
|
1666
|
+
}],
|
|
1667
|
+
/**
|
|
1668
|
+
* Clear
|
|
1669
|
+
* @see https://tailwindcss.com/docs/clear
|
|
1670
|
+
*/
|
|
1671
|
+
clear: [{
|
|
1672
|
+
clear: ["left", "right", "both", "none", "start", "end"]
|
|
1673
|
+
}],
|
|
1674
|
+
/**
|
|
1675
|
+
* Isolation
|
|
1676
|
+
* @see https://tailwindcss.com/docs/isolation
|
|
1677
|
+
*/
|
|
1678
|
+
isolation: ["isolate", "isolation-auto"],
|
|
1679
|
+
/**
|
|
1680
|
+
* Object Fit
|
|
1681
|
+
* @see https://tailwindcss.com/docs/object-fit
|
|
1682
|
+
*/
|
|
1683
|
+
"object-fit": [{
|
|
1684
|
+
object: ["contain", "cover", "fill", "none", "scale-down"]
|
|
1685
|
+
}],
|
|
1686
|
+
/**
|
|
1687
|
+
* Object Position
|
|
1688
|
+
* @see https://tailwindcss.com/docs/object-position
|
|
1689
|
+
*/
|
|
1690
|
+
"object-position": [{
|
|
1691
|
+
object: scalePositionWithArbitrary()
|
|
1692
|
+
}],
|
|
1693
|
+
/**
|
|
1694
|
+
* Overflow
|
|
1695
|
+
* @see https://tailwindcss.com/docs/overflow
|
|
1696
|
+
*/
|
|
1697
|
+
overflow: [{
|
|
1698
|
+
overflow: scaleOverflow()
|
|
1699
|
+
}],
|
|
1700
|
+
/**
|
|
1701
|
+
* Overflow X
|
|
1702
|
+
* @see https://tailwindcss.com/docs/overflow
|
|
1703
|
+
*/
|
|
1704
|
+
"overflow-x": [{
|
|
1705
|
+
"overflow-x": scaleOverflow()
|
|
1706
|
+
}],
|
|
1707
|
+
/**
|
|
1708
|
+
* Overflow Y
|
|
1709
|
+
* @see https://tailwindcss.com/docs/overflow
|
|
1710
|
+
*/
|
|
1711
|
+
"overflow-y": [{
|
|
1712
|
+
"overflow-y": scaleOverflow()
|
|
1713
|
+
}],
|
|
1714
|
+
/**
|
|
1715
|
+
* Overscroll Behavior
|
|
1716
|
+
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
1717
|
+
*/
|
|
1718
|
+
overscroll: [{
|
|
1719
|
+
overscroll: scaleOverscroll()
|
|
1720
|
+
}],
|
|
1721
|
+
/**
|
|
1722
|
+
* Overscroll Behavior X
|
|
1723
|
+
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
1724
|
+
*/
|
|
1725
|
+
"overscroll-x": [{
|
|
1726
|
+
"overscroll-x": scaleOverscroll()
|
|
1727
|
+
}],
|
|
1728
|
+
/**
|
|
1729
|
+
* Overscroll Behavior Y
|
|
1730
|
+
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
1731
|
+
*/
|
|
1732
|
+
"overscroll-y": [{
|
|
1733
|
+
"overscroll-y": scaleOverscroll()
|
|
1734
|
+
}],
|
|
1735
|
+
/**
|
|
1736
|
+
* Position
|
|
1737
|
+
* @see https://tailwindcss.com/docs/position
|
|
1738
|
+
*/
|
|
1739
|
+
position: ["static", "fixed", "absolute", "relative", "sticky"],
|
|
1740
|
+
/**
|
|
1741
|
+
* Top / Right / Bottom / Left
|
|
1742
|
+
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1743
|
+
*/
|
|
1744
|
+
inset: [{
|
|
1745
|
+
inset: scaleInset()
|
|
1746
|
+
}],
|
|
1747
|
+
/**
|
|
1748
|
+
* Right / Left
|
|
1749
|
+
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1750
|
+
*/
|
|
1751
|
+
"inset-x": [{
|
|
1752
|
+
"inset-x": scaleInset()
|
|
1753
|
+
}],
|
|
1754
|
+
/**
|
|
1755
|
+
* Top / Bottom
|
|
1756
|
+
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1757
|
+
*/
|
|
1758
|
+
"inset-y": [{
|
|
1759
|
+
"inset-y": scaleInset()
|
|
1760
|
+
}],
|
|
1761
|
+
/**
|
|
1762
|
+
* Start
|
|
1763
|
+
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1764
|
+
*/
|
|
1765
|
+
start: [{
|
|
1766
|
+
start: scaleInset()
|
|
1767
|
+
}],
|
|
1768
|
+
/**
|
|
1769
|
+
* End
|
|
1770
|
+
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1771
|
+
*/
|
|
1772
|
+
end: [{
|
|
1773
|
+
end: scaleInset()
|
|
1774
|
+
}],
|
|
1775
|
+
/**
|
|
1776
|
+
* Top
|
|
1777
|
+
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1778
|
+
*/
|
|
1779
|
+
top: [{
|
|
1780
|
+
top: scaleInset()
|
|
1781
|
+
}],
|
|
1782
|
+
/**
|
|
1783
|
+
* Right
|
|
1784
|
+
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1785
|
+
*/
|
|
1786
|
+
right: [{
|
|
1787
|
+
right: scaleInset()
|
|
1788
|
+
}],
|
|
1789
|
+
/**
|
|
1790
|
+
* Bottom
|
|
1791
|
+
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1792
|
+
*/
|
|
1793
|
+
bottom: [{
|
|
1794
|
+
bottom: scaleInset()
|
|
1795
|
+
}],
|
|
1796
|
+
/**
|
|
1797
|
+
* Left
|
|
1798
|
+
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1799
|
+
*/
|
|
1800
|
+
left: [{
|
|
1801
|
+
left: scaleInset()
|
|
1802
|
+
}],
|
|
1803
|
+
/**
|
|
1804
|
+
* Visibility
|
|
1805
|
+
* @see https://tailwindcss.com/docs/visibility
|
|
1806
|
+
*/
|
|
1807
|
+
visibility: ["visible", "invisible", "collapse"],
|
|
1808
|
+
/**
|
|
1809
|
+
* Z-Index
|
|
1810
|
+
* @see https://tailwindcss.com/docs/z-index
|
|
1811
|
+
*/
|
|
1812
|
+
z: [{
|
|
1813
|
+
z: [isInteger, "auto", isArbitraryVariable, isArbitraryValue]
|
|
1814
|
+
}],
|
|
1815
|
+
// ------------------------
|
|
1816
|
+
// --- Flexbox and Grid ---
|
|
1817
|
+
// ------------------------
|
|
1818
|
+
/**
|
|
1819
|
+
* Flex Basis
|
|
1820
|
+
* @see https://tailwindcss.com/docs/flex-basis
|
|
1821
|
+
*/
|
|
1822
|
+
basis: [{
|
|
1823
|
+
basis: [isFraction, "full", "auto", themeContainer, ...scaleUnambiguousSpacing()]
|
|
1824
|
+
}],
|
|
1825
|
+
/**
|
|
1826
|
+
* Flex Direction
|
|
1827
|
+
* @see https://tailwindcss.com/docs/flex-direction
|
|
1828
|
+
*/
|
|
1829
|
+
"flex-direction": [{
|
|
1830
|
+
flex: ["row", "row-reverse", "col", "col-reverse"]
|
|
1831
|
+
}],
|
|
1832
|
+
/**
|
|
1833
|
+
* Flex Wrap
|
|
1834
|
+
* @see https://tailwindcss.com/docs/flex-wrap
|
|
1835
|
+
*/
|
|
1836
|
+
"flex-wrap": [{
|
|
1837
|
+
flex: ["nowrap", "wrap", "wrap-reverse"]
|
|
1838
|
+
}],
|
|
1839
|
+
/**
|
|
1840
|
+
* Flex
|
|
1841
|
+
* @see https://tailwindcss.com/docs/flex
|
|
1842
|
+
*/
|
|
1843
|
+
flex: [{
|
|
1844
|
+
flex: [isNumber, isFraction, "auto", "initial", "none", isArbitraryValue]
|
|
1845
|
+
}],
|
|
1846
|
+
/**
|
|
1847
|
+
* Flex Grow
|
|
1848
|
+
* @see https://tailwindcss.com/docs/flex-grow
|
|
1849
|
+
*/
|
|
1850
|
+
grow: [{
|
|
1851
|
+
grow: ["", isNumber, isArbitraryVariable, isArbitraryValue]
|
|
1852
|
+
}],
|
|
1853
|
+
/**
|
|
1854
|
+
* Flex Shrink
|
|
1855
|
+
* @see https://tailwindcss.com/docs/flex-shrink
|
|
1856
|
+
*/
|
|
1857
|
+
shrink: [{
|
|
1858
|
+
shrink: ["", isNumber, isArbitraryVariable, isArbitraryValue]
|
|
1859
|
+
}],
|
|
1860
|
+
/**
|
|
1861
|
+
* Order
|
|
1862
|
+
* @see https://tailwindcss.com/docs/order
|
|
1863
|
+
*/
|
|
1864
|
+
order: [{
|
|
1865
|
+
order: [isInteger, "first", "last", "none", isArbitraryVariable, isArbitraryValue]
|
|
1866
|
+
}],
|
|
1867
|
+
/**
|
|
1868
|
+
* Grid Template Columns
|
|
1869
|
+
* @see https://tailwindcss.com/docs/grid-template-columns
|
|
1870
|
+
*/
|
|
1871
|
+
"grid-cols": [{
|
|
1872
|
+
"grid-cols": scaleGridTemplateColsRows()
|
|
1873
|
+
}],
|
|
1874
|
+
/**
|
|
1875
|
+
* Grid Column Start / End
|
|
1876
|
+
* @see https://tailwindcss.com/docs/grid-column
|
|
1877
|
+
*/
|
|
1878
|
+
"col-start-end": [{
|
|
1879
|
+
col: scaleGridColRowStartAndEnd()
|
|
1880
|
+
}],
|
|
1881
|
+
/**
|
|
1882
|
+
* Grid Column Start
|
|
1883
|
+
* @see https://tailwindcss.com/docs/grid-column
|
|
1884
|
+
*/
|
|
1885
|
+
"col-start": [{
|
|
1886
|
+
"col-start": scaleGridColRowStartOrEnd()
|
|
1887
|
+
}],
|
|
1888
|
+
/**
|
|
1889
|
+
* Grid Column End
|
|
1890
|
+
* @see https://tailwindcss.com/docs/grid-column
|
|
1891
|
+
*/
|
|
1892
|
+
"col-end": [{
|
|
1893
|
+
"col-end": scaleGridColRowStartOrEnd()
|
|
1894
|
+
}],
|
|
1895
|
+
/**
|
|
1896
|
+
* Grid Template Rows
|
|
1897
|
+
* @see https://tailwindcss.com/docs/grid-template-rows
|
|
1898
|
+
*/
|
|
1899
|
+
"grid-rows": [{
|
|
1900
|
+
"grid-rows": scaleGridTemplateColsRows()
|
|
1901
|
+
}],
|
|
1902
|
+
/**
|
|
1903
|
+
* Grid Row Start / End
|
|
1904
|
+
* @see https://tailwindcss.com/docs/grid-row
|
|
1905
|
+
*/
|
|
1906
|
+
"row-start-end": [{
|
|
1907
|
+
row: scaleGridColRowStartAndEnd()
|
|
1908
|
+
}],
|
|
1909
|
+
/**
|
|
1910
|
+
* Grid Row Start
|
|
1911
|
+
* @see https://tailwindcss.com/docs/grid-row
|
|
1912
|
+
*/
|
|
1913
|
+
"row-start": [{
|
|
1914
|
+
"row-start": scaleGridColRowStartOrEnd()
|
|
1915
|
+
}],
|
|
1916
|
+
/**
|
|
1917
|
+
* Grid Row End
|
|
1918
|
+
* @see https://tailwindcss.com/docs/grid-row
|
|
1919
|
+
*/
|
|
1920
|
+
"row-end": [{
|
|
1921
|
+
"row-end": scaleGridColRowStartOrEnd()
|
|
1922
|
+
}],
|
|
1923
|
+
/**
|
|
1924
|
+
* Grid Auto Flow
|
|
1925
|
+
* @see https://tailwindcss.com/docs/grid-auto-flow
|
|
1926
|
+
*/
|
|
1927
|
+
"grid-flow": [{
|
|
1928
|
+
"grid-flow": ["row", "col", "dense", "row-dense", "col-dense"]
|
|
1929
|
+
}],
|
|
1930
|
+
/**
|
|
1931
|
+
* Grid Auto Columns
|
|
1932
|
+
* @see https://tailwindcss.com/docs/grid-auto-columns
|
|
1933
|
+
*/
|
|
1934
|
+
"auto-cols": [{
|
|
1935
|
+
"auto-cols": scaleGridAutoColsRows()
|
|
1936
|
+
}],
|
|
1937
|
+
/**
|
|
1938
|
+
* Grid Auto Rows
|
|
1939
|
+
* @see https://tailwindcss.com/docs/grid-auto-rows
|
|
1940
|
+
*/
|
|
1941
|
+
"auto-rows": [{
|
|
1942
|
+
"auto-rows": scaleGridAutoColsRows()
|
|
1943
|
+
}],
|
|
1944
|
+
/**
|
|
1945
|
+
* Gap
|
|
1946
|
+
* @see https://tailwindcss.com/docs/gap
|
|
1947
|
+
*/
|
|
1948
|
+
gap: [{
|
|
1949
|
+
gap: scaleUnambiguousSpacing()
|
|
1950
|
+
}],
|
|
1951
|
+
/**
|
|
1952
|
+
* Gap X
|
|
1953
|
+
* @see https://tailwindcss.com/docs/gap
|
|
1954
|
+
*/
|
|
1955
|
+
"gap-x": [{
|
|
1956
|
+
"gap-x": scaleUnambiguousSpacing()
|
|
1957
|
+
}],
|
|
1958
|
+
/**
|
|
1959
|
+
* Gap Y
|
|
1960
|
+
* @see https://tailwindcss.com/docs/gap
|
|
1961
|
+
*/
|
|
1962
|
+
"gap-y": [{
|
|
1963
|
+
"gap-y": scaleUnambiguousSpacing()
|
|
1964
|
+
}],
|
|
1965
|
+
/**
|
|
1966
|
+
* Justify Content
|
|
1967
|
+
* @see https://tailwindcss.com/docs/justify-content
|
|
1968
|
+
*/
|
|
1969
|
+
"justify-content": [{
|
|
1970
|
+
justify: [...scaleAlignPrimaryAxis(), "normal"]
|
|
1971
|
+
}],
|
|
1972
|
+
/**
|
|
1973
|
+
* Justify Items
|
|
1974
|
+
* @see https://tailwindcss.com/docs/justify-items
|
|
1975
|
+
*/
|
|
1976
|
+
"justify-items": [{
|
|
1977
|
+
"justify-items": [...scaleAlignSecondaryAxis(), "normal"]
|
|
1978
|
+
}],
|
|
1979
|
+
/**
|
|
1980
|
+
* Justify Self
|
|
1981
|
+
* @see https://tailwindcss.com/docs/justify-self
|
|
1982
|
+
*/
|
|
1983
|
+
"justify-self": [{
|
|
1984
|
+
"justify-self": ["auto", ...scaleAlignSecondaryAxis()]
|
|
1985
|
+
}],
|
|
1986
|
+
/**
|
|
1987
|
+
* Align Content
|
|
1988
|
+
* @see https://tailwindcss.com/docs/align-content
|
|
1989
|
+
*/
|
|
1990
|
+
"align-content": [{
|
|
1991
|
+
content: ["normal", ...scaleAlignPrimaryAxis()]
|
|
1992
|
+
}],
|
|
1993
|
+
/**
|
|
1994
|
+
* Align Items
|
|
1995
|
+
* @see https://tailwindcss.com/docs/align-items
|
|
1996
|
+
*/
|
|
1997
|
+
"align-items": [{
|
|
1998
|
+
items: [...scaleAlignSecondaryAxis(), {
|
|
1999
|
+
baseline: ["", "last"]
|
|
2000
|
+
}]
|
|
2001
|
+
}],
|
|
2002
|
+
/**
|
|
2003
|
+
* Align Self
|
|
2004
|
+
* @see https://tailwindcss.com/docs/align-self
|
|
2005
|
+
*/
|
|
2006
|
+
"align-self": [{
|
|
2007
|
+
self: ["auto", ...scaleAlignSecondaryAxis(), {
|
|
2008
|
+
baseline: ["", "last"]
|
|
2009
|
+
}]
|
|
2010
|
+
}],
|
|
2011
|
+
/**
|
|
2012
|
+
* Place Content
|
|
2013
|
+
* @see https://tailwindcss.com/docs/place-content
|
|
2014
|
+
*/
|
|
2015
|
+
"place-content": [{
|
|
2016
|
+
"place-content": scaleAlignPrimaryAxis()
|
|
2017
|
+
}],
|
|
2018
|
+
/**
|
|
2019
|
+
* Place Items
|
|
2020
|
+
* @see https://tailwindcss.com/docs/place-items
|
|
2021
|
+
*/
|
|
2022
|
+
"place-items": [{
|
|
2023
|
+
"place-items": [...scaleAlignSecondaryAxis(), "baseline"]
|
|
2024
|
+
}],
|
|
2025
|
+
/**
|
|
2026
|
+
* Place Self
|
|
2027
|
+
* @see https://tailwindcss.com/docs/place-self
|
|
2028
|
+
*/
|
|
2029
|
+
"place-self": [{
|
|
2030
|
+
"place-self": ["auto", ...scaleAlignSecondaryAxis()]
|
|
2031
|
+
}],
|
|
2032
|
+
// Spacing
|
|
2033
|
+
/**
|
|
2034
|
+
* Padding
|
|
2035
|
+
* @see https://tailwindcss.com/docs/padding
|
|
2036
|
+
*/
|
|
2037
|
+
p: [{
|
|
2038
|
+
p: scaleUnambiguousSpacing()
|
|
2039
|
+
}],
|
|
2040
|
+
/**
|
|
2041
|
+
* Padding X
|
|
2042
|
+
* @see https://tailwindcss.com/docs/padding
|
|
2043
|
+
*/
|
|
2044
|
+
px: [{
|
|
2045
|
+
px: scaleUnambiguousSpacing()
|
|
2046
|
+
}],
|
|
2047
|
+
/**
|
|
2048
|
+
* Padding Y
|
|
2049
|
+
* @see https://tailwindcss.com/docs/padding
|
|
2050
|
+
*/
|
|
2051
|
+
py: [{
|
|
2052
|
+
py: scaleUnambiguousSpacing()
|
|
2053
|
+
}],
|
|
2054
|
+
/**
|
|
2055
|
+
* Padding Start
|
|
2056
|
+
* @see https://tailwindcss.com/docs/padding
|
|
2057
|
+
*/
|
|
2058
|
+
ps: [{
|
|
2059
|
+
ps: scaleUnambiguousSpacing()
|
|
2060
|
+
}],
|
|
2061
|
+
/**
|
|
2062
|
+
* Padding End
|
|
2063
|
+
* @see https://tailwindcss.com/docs/padding
|
|
2064
|
+
*/
|
|
2065
|
+
pe: [{
|
|
2066
|
+
pe: scaleUnambiguousSpacing()
|
|
2067
|
+
}],
|
|
2068
|
+
/**
|
|
2069
|
+
* Padding Top
|
|
2070
|
+
* @see https://tailwindcss.com/docs/padding
|
|
2071
|
+
*/
|
|
2072
|
+
pt: [{
|
|
2073
|
+
pt: scaleUnambiguousSpacing()
|
|
2074
|
+
}],
|
|
2075
|
+
/**
|
|
2076
|
+
* Padding Right
|
|
2077
|
+
* @see https://tailwindcss.com/docs/padding
|
|
2078
|
+
*/
|
|
2079
|
+
pr: [{
|
|
2080
|
+
pr: scaleUnambiguousSpacing()
|
|
2081
|
+
}],
|
|
2082
|
+
/**
|
|
2083
|
+
* Padding Bottom
|
|
2084
|
+
* @see https://tailwindcss.com/docs/padding
|
|
2085
|
+
*/
|
|
2086
|
+
pb: [{
|
|
2087
|
+
pb: scaleUnambiguousSpacing()
|
|
2088
|
+
}],
|
|
2089
|
+
/**
|
|
2090
|
+
* Padding Left
|
|
2091
|
+
* @see https://tailwindcss.com/docs/padding
|
|
2092
|
+
*/
|
|
2093
|
+
pl: [{
|
|
2094
|
+
pl: scaleUnambiguousSpacing()
|
|
2095
|
+
}],
|
|
2096
|
+
/**
|
|
2097
|
+
* Margin
|
|
2098
|
+
* @see https://tailwindcss.com/docs/margin
|
|
2099
|
+
*/
|
|
2100
|
+
m: [{
|
|
2101
|
+
m: scaleMargin()
|
|
2102
|
+
}],
|
|
2103
|
+
/**
|
|
2104
|
+
* Margin X
|
|
2105
|
+
* @see https://tailwindcss.com/docs/margin
|
|
2106
|
+
*/
|
|
2107
|
+
mx: [{
|
|
2108
|
+
mx: scaleMargin()
|
|
2109
|
+
}],
|
|
2110
|
+
/**
|
|
2111
|
+
* Margin Y
|
|
2112
|
+
* @see https://tailwindcss.com/docs/margin
|
|
2113
|
+
*/
|
|
2114
|
+
my: [{
|
|
2115
|
+
my: scaleMargin()
|
|
2116
|
+
}],
|
|
2117
|
+
/**
|
|
2118
|
+
* Margin Start
|
|
2119
|
+
* @see https://tailwindcss.com/docs/margin
|
|
2120
|
+
*/
|
|
2121
|
+
ms: [{
|
|
2122
|
+
ms: scaleMargin()
|
|
2123
|
+
}],
|
|
2124
|
+
/**
|
|
2125
|
+
* Margin End
|
|
2126
|
+
* @see https://tailwindcss.com/docs/margin
|
|
2127
|
+
*/
|
|
2128
|
+
me: [{
|
|
2129
|
+
me: scaleMargin()
|
|
2130
|
+
}],
|
|
2131
|
+
/**
|
|
2132
|
+
* Margin Top
|
|
2133
|
+
* @see https://tailwindcss.com/docs/margin
|
|
2134
|
+
*/
|
|
2135
|
+
mt: [{
|
|
2136
|
+
mt: scaleMargin()
|
|
2137
|
+
}],
|
|
2138
|
+
/**
|
|
2139
|
+
* Margin Right
|
|
2140
|
+
* @see https://tailwindcss.com/docs/margin
|
|
2141
|
+
*/
|
|
2142
|
+
mr: [{
|
|
2143
|
+
mr: scaleMargin()
|
|
2144
|
+
}],
|
|
2145
|
+
/**
|
|
2146
|
+
* Margin Bottom
|
|
2147
|
+
* @see https://tailwindcss.com/docs/margin
|
|
2148
|
+
*/
|
|
2149
|
+
mb: [{
|
|
2150
|
+
mb: scaleMargin()
|
|
2151
|
+
}],
|
|
2152
|
+
/**
|
|
2153
|
+
* Margin Left
|
|
2154
|
+
* @see https://tailwindcss.com/docs/margin
|
|
2155
|
+
*/
|
|
2156
|
+
ml: [{
|
|
2157
|
+
ml: scaleMargin()
|
|
2158
|
+
}],
|
|
2159
|
+
/**
|
|
2160
|
+
* Space Between X
|
|
2161
|
+
* @see https://tailwindcss.com/docs/margin#adding-space-between-children
|
|
2162
|
+
*/
|
|
2163
|
+
"space-x": [{
|
|
2164
|
+
"space-x": scaleUnambiguousSpacing()
|
|
2165
|
+
}],
|
|
2166
|
+
/**
|
|
2167
|
+
* Space Between X Reverse
|
|
2168
|
+
* @see https://tailwindcss.com/docs/margin#adding-space-between-children
|
|
2169
|
+
*/
|
|
2170
|
+
"space-x-reverse": ["space-x-reverse"],
|
|
2171
|
+
/**
|
|
2172
|
+
* Space Between Y
|
|
2173
|
+
* @see https://tailwindcss.com/docs/margin#adding-space-between-children
|
|
2174
|
+
*/
|
|
2175
|
+
"space-y": [{
|
|
2176
|
+
"space-y": scaleUnambiguousSpacing()
|
|
2177
|
+
}],
|
|
2178
|
+
/**
|
|
2179
|
+
* Space Between Y Reverse
|
|
2180
|
+
* @see https://tailwindcss.com/docs/margin#adding-space-between-children
|
|
2181
|
+
*/
|
|
2182
|
+
"space-y-reverse": ["space-y-reverse"],
|
|
2183
|
+
// --------------
|
|
2184
|
+
// --- Sizing ---
|
|
2185
|
+
// --------------
|
|
2186
|
+
/**
|
|
2187
|
+
* Size
|
|
2188
|
+
* @see https://tailwindcss.com/docs/width#setting-both-width-and-height
|
|
2189
|
+
*/
|
|
2190
|
+
size: [{
|
|
2191
|
+
size: scaleSizing()
|
|
2192
|
+
}],
|
|
2193
|
+
/**
|
|
2194
|
+
* Width
|
|
2195
|
+
* @see https://tailwindcss.com/docs/width
|
|
2196
|
+
*/
|
|
2197
|
+
w: [{
|
|
2198
|
+
w: [themeContainer, "screen", ...scaleSizing()]
|
|
2199
|
+
}],
|
|
2200
|
+
/**
|
|
2201
|
+
* Min-Width
|
|
2202
|
+
* @see https://tailwindcss.com/docs/min-width
|
|
2203
|
+
*/
|
|
2204
|
+
"min-w": [{
|
|
2205
|
+
"min-w": [
|
|
2206
|
+
themeContainer,
|
|
2207
|
+
"screen",
|
|
2208
|
+
/** Deprecated. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
2209
|
+
"none",
|
|
2210
|
+
...scaleSizing()
|
|
2211
|
+
]
|
|
2212
|
+
}],
|
|
2213
|
+
/**
|
|
2214
|
+
* Max-Width
|
|
2215
|
+
* @see https://tailwindcss.com/docs/max-width
|
|
2216
|
+
*/
|
|
2217
|
+
"max-w": [{
|
|
2218
|
+
"max-w": [
|
|
2219
|
+
themeContainer,
|
|
2220
|
+
"screen",
|
|
2221
|
+
"none",
|
|
2222
|
+
/** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
2223
|
+
"prose",
|
|
2224
|
+
/** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
2225
|
+
{
|
|
2226
|
+
screen: [themeBreakpoint]
|
|
2227
|
+
},
|
|
2228
|
+
...scaleSizing()
|
|
2229
|
+
]
|
|
2230
|
+
}],
|
|
2231
|
+
/**
|
|
2232
|
+
* Height
|
|
2233
|
+
* @see https://tailwindcss.com/docs/height
|
|
2234
|
+
*/
|
|
2235
|
+
h: [{
|
|
2236
|
+
h: ["screen", "lh", ...scaleSizing()]
|
|
2237
|
+
}],
|
|
2238
|
+
/**
|
|
2239
|
+
* Min-Height
|
|
2240
|
+
* @see https://tailwindcss.com/docs/min-height
|
|
2241
|
+
*/
|
|
2242
|
+
"min-h": [{
|
|
2243
|
+
"min-h": ["screen", "lh", "none", ...scaleSizing()]
|
|
2244
|
+
}],
|
|
2245
|
+
/**
|
|
2246
|
+
* Max-Height
|
|
2247
|
+
* @see https://tailwindcss.com/docs/max-height
|
|
2248
|
+
*/
|
|
2249
|
+
"max-h": [{
|
|
2250
|
+
"max-h": ["screen", "lh", ...scaleSizing()]
|
|
2251
|
+
}],
|
|
2252
|
+
// ------------------
|
|
2253
|
+
// --- Typography ---
|
|
2254
|
+
// ------------------
|
|
2255
|
+
/**
|
|
2256
|
+
* Font Size
|
|
2257
|
+
* @see https://tailwindcss.com/docs/font-size
|
|
2258
|
+
*/
|
|
2259
|
+
"font-size": [{
|
|
2260
|
+
text: ["base", themeText, isArbitraryVariableLength, isArbitraryLength]
|
|
2261
|
+
}],
|
|
2262
|
+
/**
|
|
2263
|
+
* Font Smoothing
|
|
2264
|
+
* @see https://tailwindcss.com/docs/font-smoothing
|
|
2265
|
+
*/
|
|
2266
|
+
"font-smoothing": ["antialiased", "subpixel-antialiased"],
|
|
2267
|
+
/**
|
|
2268
|
+
* Font Style
|
|
2269
|
+
* @see https://tailwindcss.com/docs/font-style
|
|
2270
|
+
*/
|
|
2271
|
+
"font-style": ["italic", "not-italic"],
|
|
2272
|
+
/**
|
|
2273
|
+
* Font Weight
|
|
2274
|
+
* @see https://tailwindcss.com/docs/font-weight
|
|
2275
|
+
*/
|
|
2276
|
+
"font-weight": [{
|
|
2277
|
+
font: [themeFontWeight, isArbitraryVariable, isArbitraryNumber]
|
|
2278
|
+
}],
|
|
2279
|
+
/**
|
|
2280
|
+
* Font Stretch
|
|
2281
|
+
* @see https://tailwindcss.com/docs/font-stretch
|
|
2282
|
+
*/
|
|
2283
|
+
"font-stretch": [{
|
|
2284
|
+
"font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", isPercent, isArbitraryValue]
|
|
2285
|
+
}],
|
|
2286
|
+
/**
|
|
2287
|
+
* Font Family
|
|
2288
|
+
* @see https://tailwindcss.com/docs/font-family
|
|
2289
|
+
*/
|
|
2290
|
+
"font-family": [{
|
|
2291
|
+
font: [isArbitraryVariableFamilyName, isArbitraryValue, themeFont]
|
|
2292
|
+
}],
|
|
2293
|
+
/**
|
|
2294
|
+
* Font Variant Numeric
|
|
2295
|
+
* @see https://tailwindcss.com/docs/font-variant-numeric
|
|
2296
|
+
*/
|
|
2297
|
+
"fvn-normal": ["normal-nums"],
|
|
2298
|
+
/**
|
|
2299
|
+
* Font Variant Numeric
|
|
2300
|
+
* @see https://tailwindcss.com/docs/font-variant-numeric
|
|
2301
|
+
*/
|
|
2302
|
+
"fvn-ordinal": ["ordinal"],
|
|
2303
|
+
/**
|
|
2304
|
+
* Font Variant Numeric
|
|
2305
|
+
* @see https://tailwindcss.com/docs/font-variant-numeric
|
|
2306
|
+
*/
|
|
2307
|
+
"fvn-slashed-zero": ["slashed-zero"],
|
|
2308
|
+
/**
|
|
2309
|
+
* Font Variant Numeric
|
|
2310
|
+
* @see https://tailwindcss.com/docs/font-variant-numeric
|
|
2311
|
+
*/
|
|
2312
|
+
"fvn-figure": ["lining-nums", "oldstyle-nums"],
|
|
2313
|
+
/**
|
|
2314
|
+
* Font Variant Numeric
|
|
2315
|
+
* @see https://tailwindcss.com/docs/font-variant-numeric
|
|
2316
|
+
*/
|
|
2317
|
+
"fvn-spacing": ["proportional-nums", "tabular-nums"],
|
|
2318
|
+
/**
|
|
2319
|
+
* Font Variant Numeric
|
|
2320
|
+
* @see https://tailwindcss.com/docs/font-variant-numeric
|
|
2321
|
+
*/
|
|
2322
|
+
"fvn-fraction": ["diagonal-fractions", "stacked-fractions"],
|
|
2323
|
+
/**
|
|
2324
|
+
* Letter Spacing
|
|
2325
|
+
* @see https://tailwindcss.com/docs/letter-spacing
|
|
2326
|
+
*/
|
|
2327
|
+
tracking: [{
|
|
2328
|
+
tracking: [themeTracking, isArbitraryVariable, isArbitraryValue]
|
|
2329
|
+
}],
|
|
2330
|
+
/**
|
|
2331
|
+
* Line Clamp
|
|
2332
|
+
* @see https://tailwindcss.com/docs/line-clamp
|
|
2333
|
+
*/
|
|
2334
|
+
"line-clamp": [{
|
|
2335
|
+
"line-clamp": [isNumber, "none", isArbitraryVariable, isArbitraryNumber]
|
|
2336
|
+
}],
|
|
2337
|
+
/**
|
|
2338
|
+
* Line Height
|
|
2339
|
+
* @see https://tailwindcss.com/docs/line-height
|
|
2340
|
+
*/
|
|
2341
|
+
leading: [{
|
|
2342
|
+
leading: [
|
|
2343
|
+
/** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
2344
|
+
themeLeading,
|
|
2345
|
+
...scaleUnambiguousSpacing()
|
|
2346
|
+
]
|
|
2347
|
+
}],
|
|
2348
|
+
/**
|
|
2349
|
+
* List Style Image
|
|
2350
|
+
* @see https://tailwindcss.com/docs/list-style-image
|
|
2351
|
+
*/
|
|
2352
|
+
"list-image": [{
|
|
2353
|
+
"list-image": ["none", isArbitraryVariable, isArbitraryValue]
|
|
2354
|
+
}],
|
|
2355
|
+
/**
|
|
2356
|
+
* List Style Position
|
|
2357
|
+
* @see https://tailwindcss.com/docs/list-style-position
|
|
2358
|
+
*/
|
|
2359
|
+
"list-style-position": [{
|
|
2360
|
+
list: ["inside", "outside"]
|
|
2361
|
+
}],
|
|
2362
|
+
/**
|
|
2363
|
+
* List Style Type
|
|
2364
|
+
* @see https://tailwindcss.com/docs/list-style-type
|
|
2365
|
+
*/
|
|
2366
|
+
"list-style-type": [{
|
|
2367
|
+
list: ["disc", "decimal", "none", isArbitraryVariable, isArbitraryValue]
|
|
2368
|
+
}],
|
|
2369
|
+
/**
|
|
2370
|
+
* Text Alignment
|
|
2371
|
+
* @see https://tailwindcss.com/docs/text-align
|
|
2372
|
+
*/
|
|
2373
|
+
"text-alignment": [{
|
|
2374
|
+
text: ["left", "center", "right", "justify", "start", "end"]
|
|
2375
|
+
}],
|
|
2376
|
+
/**
|
|
2377
|
+
* Placeholder Color
|
|
2378
|
+
* @deprecated since Tailwind CSS v3.0.0
|
|
2379
|
+
* @see https://v3.tailwindcss.com/docs/placeholder-color
|
|
2380
|
+
*/
|
|
2381
|
+
"placeholder-color": [{
|
|
2382
|
+
placeholder: scaleColor()
|
|
2383
|
+
}],
|
|
2384
|
+
/**
|
|
2385
|
+
* Text Color
|
|
2386
|
+
* @see https://tailwindcss.com/docs/text-color
|
|
2387
|
+
*/
|
|
2388
|
+
"text-color": [{
|
|
2389
|
+
text: scaleColor()
|
|
2390
|
+
}],
|
|
2391
|
+
/**
|
|
2392
|
+
* Text Decoration
|
|
2393
|
+
* @see https://tailwindcss.com/docs/text-decoration
|
|
2394
|
+
*/
|
|
2395
|
+
"text-decoration": ["underline", "overline", "line-through", "no-underline"],
|
|
2396
|
+
/**
|
|
2397
|
+
* Text Decoration Style
|
|
2398
|
+
* @see https://tailwindcss.com/docs/text-decoration-style
|
|
2399
|
+
*/
|
|
2400
|
+
"text-decoration-style": [{
|
|
2401
|
+
decoration: [...scaleLineStyle(), "wavy"]
|
|
2402
|
+
}],
|
|
2403
|
+
/**
|
|
2404
|
+
* Text Decoration Thickness
|
|
2405
|
+
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
|
2406
|
+
*/
|
|
2407
|
+
"text-decoration-thickness": [{
|
|
2408
|
+
decoration: [isNumber, "from-font", "auto", isArbitraryVariable, isArbitraryLength]
|
|
2409
|
+
}],
|
|
2410
|
+
/**
|
|
2411
|
+
* Text Decoration Color
|
|
2412
|
+
* @see https://tailwindcss.com/docs/text-decoration-color
|
|
2413
|
+
*/
|
|
2414
|
+
"text-decoration-color": [{
|
|
2415
|
+
decoration: scaleColor()
|
|
2416
|
+
}],
|
|
2417
|
+
/**
|
|
2418
|
+
* Text Underline Offset
|
|
2419
|
+
* @see https://tailwindcss.com/docs/text-underline-offset
|
|
2420
|
+
*/
|
|
2421
|
+
"underline-offset": [{
|
|
2422
|
+
"underline-offset": [isNumber, "auto", isArbitraryVariable, isArbitraryValue]
|
|
2423
|
+
}],
|
|
2424
|
+
/**
|
|
2425
|
+
* Text Transform
|
|
2426
|
+
* @see https://tailwindcss.com/docs/text-transform
|
|
2427
|
+
*/
|
|
2428
|
+
"text-transform": ["uppercase", "lowercase", "capitalize", "normal-case"],
|
|
2429
|
+
/**
|
|
2430
|
+
* Text Overflow
|
|
2431
|
+
* @see https://tailwindcss.com/docs/text-overflow
|
|
2432
|
+
*/
|
|
2433
|
+
"text-overflow": ["truncate", "text-ellipsis", "text-clip"],
|
|
2434
|
+
/**
|
|
2435
|
+
* Text Wrap
|
|
2436
|
+
* @see https://tailwindcss.com/docs/text-wrap
|
|
2437
|
+
*/
|
|
2438
|
+
"text-wrap": [{
|
|
2439
|
+
text: ["wrap", "nowrap", "balance", "pretty"]
|
|
2440
|
+
}],
|
|
2441
|
+
/**
|
|
2442
|
+
* Text Indent
|
|
2443
|
+
* @see https://tailwindcss.com/docs/text-indent
|
|
2444
|
+
*/
|
|
2445
|
+
indent: [{
|
|
2446
|
+
indent: scaleUnambiguousSpacing()
|
|
2447
|
+
}],
|
|
2448
|
+
/**
|
|
2449
|
+
* Vertical Alignment
|
|
2450
|
+
* @see https://tailwindcss.com/docs/vertical-align
|
|
2451
|
+
*/
|
|
2452
|
+
"vertical-align": [{
|
|
2453
|
+
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", isArbitraryVariable, isArbitraryValue]
|
|
2454
|
+
}],
|
|
2455
|
+
/**
|
|
2456
|
+
* Whitespace
|
|
2457
|
+
* @see https://tailwindcss.com/docs/whitespace
|
|
2458
|
+
*/
|
|
2459
|
+
whitespace: [{
|
|
2460
|
+
whitespace: ["normal", "nowrap", "pre", "pre-line", "pre-wrap", "break-spaces"]
|
|
2461
|
+
}],
|
|
2462
|
+
/**
|
|
2463
|
+
* Word Break
|
|
2464
|
+
* @see https://tailwindcss.com/docs/word-break
|
|
2465
|
+
*/
|
|
2466
|
+
break: [{
|
|
2467
|
+
break: ["normal", "words", "all", "keep"]
|
|
2468
|
+
}],
|
|
2469
|
+
/**
|
|
2470
|
+
* Overflow Wrap
|
|
2471
|
+
* @see https://tailwindcss.com/docs/overflow-wrap
|
|
2472
|
+
*/
|
|
2473
|
+
wrap: [{
|
|
2474
|
+
wrap: ["break-word", "anywhere", "normal"]
|
|
2475
|
+
}],
|
|
2476
|
+
/**
|
|
2477
|
+
* Hyphens
|
|
2478
|
+
* @see https://tailwindcss.com/docs/hyphens
|
|
2479
|
+
*/
|
|
2480
|
+
hyphens: [{
|
|
2481
|
+
hyphens: ["none", "manual", "auto"]
|
|
2482
|
+
}],
|
|
2483
|
+
/**
|
|
2484
|
+
* Content
|
|
2485
|
+
* @see https://tailwindcss.com/docs/content
|
|
2486
|
+
*/
|
|
2487
|
+
content: [{
|
|
2488
|
+
content: ["none", isArbitraryVariable, isArbitraryValue]
|
|
2489
|
+
}],
|
|
2490
|
+
// -------------------
|
|
2491
|
+
// --- Backgrounds ---
|
|
2492
|
+
// -------------------
|
|
2493
|
+
/**
|
|
2494
|
+
* Background Attachment
|
|
2495
|
+
* @see https://tailwindcss.com/docs/background-attachment
|
|
2496
|
+
*/
|
|
2497
|
+
"bg-attachment": [{
|
|
2498
|
+
bg: ["fixed", "local", "scroll"]
|
|
2499
|
+
}],
|
|
2500
|
+
/**
|
|
2501
|
+
* Background Clip
|
|
2502
|
+
* @see https://tailwindcss.com/docs/background-clip
|
|
2503
|
+
*/
|
|
2504
|
+
"bg-clip": [{
|
|
2505
|
+
"bg-clip": ["border", "padding", "content", "text"]
|
|
2506
|
+
}],
|
|
2507
|
+
/**
|
|
2508
|
+
* Background Origin
|
|
2509
|
+
* @see https://tailwindcss.com/docs/background-origin
|
|
2510
|
+
*/
|
|
2511
|
+
"bg-origin": [{
|
|
2512
|
+
"bg-origin": ["border", "padding", "content"]
|
|
2513
|
+
}],
|
|
2514
|
+
/**
|
|
2515
|
+
* Background Position
|
|
2516
|
+
* @see https://tailwindcss.com/docs/background-position
|
|
2517
|
+
*/
|
|
2518
|
+
"bg-position": [{
|
|
2519
|
+
bg: scaleBgPosition()
|
|
2520
|
+
}],
|
|
2521
|
+
/**
|
|
2522
|
+
* Background Repeat
|
|
2523
|
+
* @see https://tailwindcss.com/docs/background-repeat
|
|
2524
|
+
*/
|
|
2525
|
+
"bg-repeat": [{
|
|
2526
|
+
bg: scaleBgRepeat()
|
|
2527
|
+
}],
|
|
2528
|
+
/**
|
|
2529
|
+
* Background Size
|
|
2530
|
+
* @see https://tailwindcss.com/docs/background-size
|
|
2531
|
+
*/
|
|
2532
|
+
"bg-size": [{
|
|
2533
|
+
bg: scaleBgSize()
|
|
2534
|
+
}],
|
|
2535
|
+
/**
|
|
2536
|
+
* Background Image
|
|
2537
|
+
* @see https://tailwindcss.com/docs/background-image
|
|
2538
|
+
*/
|
|
2539
|
+
"bg-image": [{
|
|
2540
|
+
bg: ["none", {
|
|
2541
|
+
linear: [{
|
|
2542
|
+
to: ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
|
|
2543
|
+
}, isInteger, isArbitraryVariable, isArbitraryValue],
|
|
2544
|
+
radial: ["", isArbitraryVariable, isArbitraryValue],
|
|
2545
|
+
conic: [isInteger, isArbitraryVariable, isArbitraryValue]
|
|
2546
|
+
}, isArbitraryVariableImage, isArbitraryImage]
|
|
2547
|
+
}],
|
|
2548
|
+
/**
|
|
2549
|
+
* Background Color
|
|
2550
|
+
* @see https://tailwindcss.com/docs/background-color
|
|
2551
|
+
*/
|
|
2552
|
+
"bg-color": [{
|
|
2553
|
+
bg: scaleColor()
|
|
2554
|
+
}],
|
|
2555
|
+
/**
|
|
2556
|
+
* Gradient Color Stops From Position
|
|
2557
|
+
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
2558
|
+
*/
|
|
2559
|
+
"gradient-from-pos": [{
|
|
2560
|
+
from: scaleGradientStopPosition()
|
|
2561
|
+
}],
|
|
2562
|
+
/**
|
|
2563
|
+
* Gradient Color Stops Via Position
|
|
2564
|
+
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
2565
|
+
*/
|
|
2566
|
+
"gradient-via-pos": [{
|
|
2567
|
+
via: scaleGradientStopPosition()
|
|
2568
|
+
}],
|
|
2569
|
+
/**
|
|
2570
|
+
* Gradient Color Stops To Position
|
|
2571
|
+
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
2572
|
+
*/
|
|
2573
|
+
"gradient-to-pos": [{
|
|
2574
|
+
to: scaleGradientStopPosition()
|
|
2575
|
+
}],
|
|
2576
|
+
/**
|
|
2577
|
+
* Gradient Color Stops From
|
|
2578
|
+
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
2579
|
+
*/
|
|
2580
|
+
"gradient-from": [{
|
|
2581
|
+
from: scaleColor()
|
|
2582
|
+
}],
|
|
2583
|
+
/**
|
|
2584
|
+
* Gradient Color Stops Via
|
|
2585
|
+
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
2586
|
+
*/
|
|
2587
|
+
"gradient-via": [{
|
|
2588
|
+
via: scaleColor()
|
|
2589
|
+
}],
|
|
2590
|
+
/**
|
|
2591
|
+
* Gradient Color Stops To
|
|
2592
|
+
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
2593
|
+
*/
|
|
2594
|
+
"gradient-to": [{
|
|
2595
|
+
to: scaleColor()
|
|
2596
|
+
}],
|
|
2597
|
+
// ---------------
|
|
2598
|
+
// --- Borders ---
|
|
2599
|
+
// ---------------
|
|
2600
|
+
/**
|
|
2601
|
+
* Border Radius
|
|
2602
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
2603
|
+
*/
|
|
2604
|
+
rounded: [{
|
|
2605
|
+
rounded: scaleRadius()
|
|
2606
|
+
}],
|
|
2607
|
+
/**
|
|
2608
|
+
* Border Radius Start
|
|
2609
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
2610
|
+
*/
|
|
2611
|
+
"rounded-s": [{
|
|
2612
|
+
"rounded-s": scaleRadius()
|
|
2613
|
+
}],
|
|
2614
|
+
/**
|
|
2615
|
+
* Border Radius End
|
|
2616
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
2617
|
+
*/
|
|
2618
|
+
"rounded-e": [{
|
|
2619
|
+
"rounded-e": scaleRadius()
|
|
2620
|
+
}],
|
|
2621
|
+
/**
|
|
2622
|
+
* Border Radius Top
|
|
2623
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
2624
|
+
*/
|
|
2625
|
+
"rounded-t": [{
|
|
2626
|
+
"rounded-t": scaleRadius()
|
|
2627
|
+
}],
|
|
2628
|
+
/**
|
|
2629
|
+
* Border Radius Right
|
|
2630
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
2631
|
+
*/
|
|
2632
|
+
"rounded-r": [{
|
|
2633
|
+
"rounded-r": scaleRadius()
|
|
2634
|
+
}],
|
|
2635
|
+
/**
|
|
2636
|
+
* Border Radius Bottom
|
|
2637
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
2638
|
+
*/
|
|
2639
|
+
"rounded-b": [{
|
|
2640
|
+
"rounded-b": scaleRadius()
|
|
2641
|
+
}],
|
|
2642
|
+
/**
|
|
2643
|
+
* Border Radius Left
|
|
2644
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
2645
|
+
*/
|
|
2646
|
+
"rounded-l": [{
|
|
2647
|
+
"rounded-l": scaleRadius()
|
|
2648
|
+
}],
|
|
2649
|
+
/**
|
|
2650
|
+
* Border Radius Start Start
|
|
2651
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
2652
|
+
*/
|
|
2653
|
+
"rounded-ss": [{
|
|
2654
|
+
"rounded-ss": scaleRadius()
|
|
2655
|
+
}],
|
|
2656
|
+
/**
|
|
2657
|
+
* Border Radius Start End
|
|
2658
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
2659
|
+
*/
|
|
2660
|
+
"rounded-se": [{
|
|
2661
|
+
"rounded-se": scaleRadius()
|
|
2662
|
+
}],
|
|
2663
|
+
/**
|
|
2664
|
+
* Border Radius End End
|
|
2665
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
2666
|
+
*/
|
|
2667
|
+
"rounded-ee": [{
|
|
2668
|
+
"rounded-ee": scaleRadius()
|
|
2669
|
+
}],
|
|
2670
|
+
/**
|
|
2671
|
+
* Border Radius End Start
|
|
2672
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
2673
|
+
*/
|
|
2674
|
+
"rounded-es": [{
|
|
2675
|
+
"rounded-es": scaleRadius()
|
|
2676
|
+
}],
|
|
2677
|
+
/**
|
|
2678
|
+
* Border Radius Top Left
|
|
2679
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
2680
|
+
*/
|
|
2681
|
+
"rounded-tl": [{
|
|
2682
|
+
"rounded-tl": scaleRadius()
|
|
2683
|
+
}],
|
|
2684
|
+
/**
|
|
2685
|
+
* Border Radius Top Right
|
|
2686
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
2687
|
+
*/
|
|
2688
|
+
"rounded-tr": [{
|
|
2689
|
+
"rounded-tr": scaleRadius()
|
|
2690
|
+
}],
|
|
2691
|
+
/**
|
|
2692
|
+
* Border Radius Bottom Right
|
|
2693
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
2694
|
+
*/
|
|
2695
|
+
"rounded-br": [{
|
|
2696
|
+
"rounded-br": scaleRadius()
|
|
2697
|
+
}],
|
|
2698
|
+
/**
|
|
2699
|
+
* Border Radius Bottom Left
|
|
2700
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
2701
|
+
*/
|
|
2702
|
+
"rounded-bl": [{
|
|
2703
|
+
"rounded-bl": scaleRadius()
|
|
2704
|
+
}],
|
|
2705
|
+
/**
|
|
2706
|
+
* Border Width
|
|
2707
|
+
* @see https://tailwindcss.com/docs/border-width
|
|
2708
|
+
*/
|
|
2709
|
+
"border-w": [{
|
|
2710
|
+
border: scaleBorderWidth()
|
|
2711
|
+
}],
|
|
2712
|
+
/**
|
|
2713
|
+
* Border Width X
|
|
2714
|
+
* @see https://tailwindcss.com/docs/border-width
|
|
2715
|
+
*/
|
|
2716
|
+
"border-w-x": [{
|
|
2717
|
+
"border-x": scaleBorderWidth()
|
|
2718
|
+
}],
|
|
2719
|
+
/**
|
|
2720
|
+
* Border Width Y
|
|
2721
|
+
* @see https://tailwindcss.com/docs/border-width
|
|
2722
|
+
*/
|
|
2723
|
+
"border-w-y": [{
|
|
2724
|
+
"border-y": scaleBorderWidth()
|
|
2725
|
+
}],
|
|
2726
|
+
/**
|
|
2727
|
+
* Border Width Start
|
|
2728
|
+
* @see https://tailwindcss.com/docs/border-width
|
|
2729
|
+
*/
|
|
2730
|
+
"border-w-s": [{
|
|
2731
|
+
"border-s": scaleBorderWidth()
|
|
2732
|
+
}],
|
|
2733
|
+
/**
|
|
2734
|
+
* Border Width End
|
|
2735
|
+
* @see https://tailwindcss.com/docs/border-width
|
|
2736
|
+
*/
|
|
2737
|
+
"border-w-e": [{
|
|
2738
|
+
"border-e": scaleBorderWidth()
|
|
2739
|
+
}],
|
|
2740
|
+
/**
|
|
2741
|
+
* Border Width Top
|
|
2742
|
+
* @see https://tailwindcss.com/docs/border-width
|
|
2743
|
+
*/
|
|
2744
|
+
"border-w-t": [{
|
|
2745
|
+
"border-t": scaleBorderWidth()
|
|
2746
|
+
}],
|
|
2747
|
+
/**
|
|
2748
|
+
* Border Width Right
|
|
2749
|
+
* @see https://tailwindcss.com/docs/border-width
|
|
2750
|
+
*/
|
|
2751
|
+
"border-w-r": [{
|
|
2752
|
+
"border-r": scaleBorderWidth()
|
|
2753
|
+
}],
|
|
2754
|
+
/**
|
|
2755
|
+
* Border Width Bottom
|
|
2756
|
+
* @see https://tailwindcss.com/docs/border-width
|
|
2757
|
+
*/
|
|
2758
|
+
"border-w-b": [{
|
|
2759
|
+
"border-b": scaleBorderWidth()
|
|
2760
|
+
}],
|
|
2761
|
+
/**
|
|
2762
|
+
* Border Width Left
|
|
2763
|
+
* @see https://tailwindcss.com/docs/border-width
|
|
2764
|
+
*/
|
|
2765
|
+
"border-w-l": [{
|
|
2766
|
+
"border-l": scaleBorderWidth()
|
|
2767
|
+
}],
|
|
2768
|
+
/**
|
|
2769
|
+
* Divide Width X
|
|
2770
|
+
* @see https://tailwindcss.com/docs/border-width#between-children
|
|
2771
|
+
*/
|
|
2772
|
+
"divide-x": [{
|
|
2773
|
+
"divide-x": scaleBorderWidth()
|
|
2774
|
+
}],
|
|
2775
|
+
/**
|
|
2776
|
+
* Divide Width X Reverse
|
|
2777
|
+
* @see https://tailwindcss.com/docs/border-width#between-children
|
|
2778
|
+
*/
|
|
2779
|
+
"divide-x-reverse": ["divide-x-reverse"],
|
|
2780
|
+
/**
|
|
2781
|
+
* Divide Width Y
|
|
2782
|
+
* @see https://tailwindcss.com/docs/border-width#between-children
|
|
2783
|
+
*/
|
|
2784
|
+
"divide-y": [{
|
|
2785
|
+
"divide-y": scaleBorderWidth()
|
|
2786
|
+
}],
|
|
2787
|
+
/**
|
|
2788
|
+
* Divide Width Y Reverse
|
|
2789
|
+
* @see https://tailwindcss.com/docs/border-width#between-children
|
|
2790
|
+
*/
|
|
2791
|
+
"divide-y-reverse": ["divide-y-reverse"],
|
|
2792
|
+
/**
|
|
2793
|
+
* Border Style
|
|
2794
|
+
* @see https://tailwindcss.com/docs/border-style
|
|
2795
|
+
*/
|
|
2796
|
+
"border-style": [{
|
|
2797
|
+
border: [...scaleLineStyle(), "hidden", "none"]
|
|
2798
|
+
}],
|
|
2799
|
+
/**
|
|
2800
|
+
* Divide Style
|
|
2801
|
+
* @see https://tailwindcss.com/docs/border-style#setting-the-divider-style
|
|
2802
|
+
*/
|
|
2803
|
+
"divide-style": [{
|
|
2804
|
+
divide: [...scaleLineStyle(), "hidden", "none"]
|
|
2805
|
+
}],
|
|
2806
|
+
/**
|
|
2807
|
+
* Border Color
|
|
2808
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
2809
|
+
*/
|
|
2810
|
+
"border-color": [{
|
|
2811
|
+
border: scaleColor()
|
|
2812
|
+
}],
|
|
2813
|
+
/**
|
|
2814
|
+
* Border Color X
|
|
2815
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
2816
|
+
*/
|
|
2817
|
+
"border-color-x": [{
|
|
2818
|
+
"border-x": scaleColor()
|
|
2819
|
+
}],
|
|
2820
|
+
/**
|
|
2821
|
+
* Border Color Y
|
|
2822
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
2823
|
+
*/
|
|
2824
|
+
"border-color-y": [{
|
|
2825
|
+
"border-y": scaleColor()
|
|
2826
|
+
}],
|
|
2827
|
+
/**
|
|
2828
|
+
* Border Color S
|
|
2829
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
2830
|
+
*/
|
|
2831
|
+
"border-color-s": [{
|
|
2832
|
+
"border-s": scaleColor()
|
|
2833
|
+
}],
|
|
2834
|
+
/**
|
|
2835
|
+
* Border Color E
|
|
2836
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
2837
|
+
*/
|
|
2838
|
+
"border-color-e": [{
|
|
2839
|
+
"border-e": scaleColor()
|
|
2840
|
+
}],
|
|
2841
|
+
/**
|
|
2842
|
+
* Border Color Top
|
|
2843
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
2844
|
+
*/
|
|
2845
|
+
"border-color-t": [{
|
|
2846
|
+
"border-t": scaleColor()
|
|
2847
|
+
}],
|
|
2848
|
+
/**
|
|
2849
|
+
* Border Color Right
|
|
2850
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
2851
|
+
*/
|
|
2852
|
+
"border-color-r": [{
|
|
2853
|
+
"border-r": scaleColor()
|
|
2854
|
+
}],
|
|
2855
|
+
/**
|
|
2856
|
+
* Border Color Bottom
|
|
2857
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
2858
|
+
*/
|
|
2859
|
+
"border-color-b": [{
|
|
2860
|
+
"border-b": scaleColor()
|
|
2861
|
+
}],
|
|
2862
|
+
/**
|
|
2863
|
+
* Border Color Left
|
|
2864
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
2865
|
+
*/
|
|
2866
|
+
"border-color-l": [{
|
|
2867
|
+
"border-l": scaleColor()
|
|
2868
|
+
}],
|
|
2869
|
+
/**
|
|
2870
|
+
* Divide Color
|
|
2871
|
+
* @see https://tailwindcss.com/docs/divide-color
|
|
2872
|
+
*/
|
|
2873
|
+
"divide-color": [{
|
|
2874
|
+
divide: scaleColor()
|
|
2875
|
+
}],
|
|
2876
|
+
/**
|
|
2877
|
+
* Outline Style
|
|
2878
|
+
* @see https://tailwindcss.com/docs/outline-style
|
|
2879
|
+
*/
|
|
2880
|
+
"outline-style": [{
|
|
2881
|
+
outline: [...scaleLineStyle(), "none", "hidden"]
|
|
2882
|
+
}],
|
|
2883
|
+
/**
|
|
2884
|
+
* Outline Offset
|
|
2885
|
+
* @see https://tailwindcss.com/docs/outline-offset
|
|
2886
|
+
*/
|
|
2887
|
+
"outline-offset": [{
|
|
2888
|
+
"outline-offset": [isNumber, isArbitraryVariable, isArbitraryValue]
|
|
2889
|
+
}],
|
|
2890
|
+
/**
|
|
2891
|
+
* Outline Width
|
|
2892
|
+
* @see https://tailwindcss.com/docs/outline-width
|
|
2893
|
+
*/
|
|
2894
|
+
"outline-w": [{
|
|
2895
|
+
outline: ["", isNumber, isArbitraryVariableLength, isArbitraryLength]
|
|
2896
|
+
}],
|
|
2897
|
+
/**
|
|
2898
|
+
* Outline Color
|
|
2899
|
+
* @see https://tailwindcss.com/docs/outline-color
|
|
2900
|
+
*/
|
|
2901
|
+
"outline-color": [{
|
|
2902
|
+
outline: scaleColor()
|
|
2903
|
+
}],
|
|
2904
|
+
// ---------------
|
|
2905
|
+
// --- Effects ---
|
|
2906
|
+
// ---------------
|
|
2907
|
+
/**
|
|
2908
|
+
* Box Shadow
|
|
2909
|
+
* @see https://tailwindcss.com/docs/box-shadow
|
|
2910
|
+
*/
|
|
2911
|
+
shadow: [{
|
|
2912
|
+
shadow: [
|
|
2913
|
+
// Deprecated since Tailwind CSS v4.0.0
|
|
2914
|
+
"",
|
|
2915
|
+
"none",
|
|
2916
|
+
themeShadow,
|
|
2917
|
+
isArbitraryVariableShadow,
|
|
2918
|
+
isArbitraryShadow
|
|
2919
|
+
]
|
|
2920
|
+
}],
|
|
2921
|
+
/**
|
|
2922
|
+
* Box Shadow Color
|
|
2923
|
+
* @see https://tailwindcss.com/docs/box-shadow#setting-the-shadow-color
|
|
2924
|
+
*/
|
|
2925
|
+
"shadow-color": [{
|
|
2926
|
+
shadow: scaleColor()
|
|
2927
|
+
}],
|
|
2928
|
+
/**
|
|
2929
|
+
* Inset Box Shadow
|
|
2930
|
+
* @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-shadow
|
|
2931
|
+
*/
|
|
2932
|
+
"inset-shadow": [{
|
|
2933
|
+
"inset-shadow": ["none", themeInsetShadow, isArbitraryVariableShadow, isArbitraryShadow]
|
|
2934
|
+
}],
|
|
2935
|
+
/**
|
|
2936
|
+
* Inset Box Shadow Color
|
|
2937
|
+
* @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-shadow-color
|
|
2938
|
+
*/
|
|
2939
|
+
"inset-shadow-color": [{
|
|
2940
|
+
"inset-shadow": scaleColor()
|
|
2941
|
+
}],
|
|
2942
|
+
/**
|
|
2943
|
+
* Ring Width
|
|
2944
|
+
* @see https://tailwindcss.com/docs/box-shadow#adding-a-ring
|
|
2945
|
+
*/
|
|
2946
|
+
"ring-w": [{
|
|
2947
|
+
ring: scaleBorderWidth()
|
|
2948
|
+
}],
|
|
2949
|
+
/**
|
|
2950
|
+
* Ring Width Inset
|
|
2951
|
+
* @see https://v3.tailwindcss.com/docs/ring-width#inset-rings
|
|
2952
|
+
* @deprecated since Tailwind CSS v4.0.0
|
|
2953
|
+
* @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
|
|
2954
|
+
*/
|
|
2955
|
+
"ring-w-inset": ["ring-inset"],
|
|
2956
|
+
/**
|
|
2957
|
+
* Ring Color
|
|
2958
|
+
* @see https://tailwindcss.com/docs/box-shadow#setting-the-ring-color
|
|
2959
|
+
*/
|
|
2960
|
+
"ring-color": [{
|
|
2961
|
+
ring: scaleColor()
|
|
2962
|
+
}],
|
|
2963
|
+
/**
|
|
2964
|
+
* Ring Offset Width
|
|
2965
|
+
* @see https://v3.tailwindcss.com/docs/ring-offset-width
|
|
2966
|
+
* @deprecated since Tailwind CSS v4.0.0
|
|
2967
|
+
* @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
|
|
2968
|
+
*/
|
|
2969
|
+
"ring-offset-w": [{
|
|
2970
|
+
"ring-offset": [isNumber, isArbitraryLength]
|
|
2971
|
+
}],
|
|
2972
|
+
/**
|
|
2973
|
+
* Ring Offset Color
|
|
2974
|
+
* @see https://v3.tailwindcss.com/docs/ring-offset-color
|
|
2975
|
+
* @deprecated since Tailwind CSS v4.0.0
|
|
2976
|
+
* @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
|
|
2977
|
+
*/
|
|
2978
|
+
"ring-offset-color": [{
|
|
2979
|
+
"ring-offset": scaleColor()
|
|
2980
|
+
}],
|
|
2981
|
+
/**
|
|
2982
|
+
* Inset Ring Width
|
|
2983
|
+
* @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-ring
|
|
2984
|
+
*/
|
|
2985
|
+
"inset-ring-w": [{
|
|
2986
|
+
"inset-ring": scaleBorderWidth()
|
|
2987
|
+
}],
|
|
2988
|
+
/**
|
|
2989
|
+
* Inset Ring Color
|
|
2990
|
+
* @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-ring-color
|
|
2991
|
+
*/
|
|
2992
|
+
"inset-ring-color": [{
|
|
2993
|
+
"inset-ring": scaleColor()
|
|
2994
|
+
}],
|
|
2995
|
+
/**
|
|
2996
|
+
* Text Shadow
|
|
2997
|
+
* @see https://tailwindcss.com/docs/text-shadow
|
|
2998
|
+
*/
|
|
2999
|
+
"text-shadow": [{
|
|
3000
|
+
"text-shadow": ["none", themeTextShadow, isArbitraryVariableShadow, isArbitraryShadow]
|
|
3001
|
+
}],
|
|
3002
|
+
/**
|
|
3003
|
+
* Text Shadow Color
|
|
3004
|
+
* @see https://tailwindcss.com/docs/text-shadow#setting-the-shadow-color
|
|
3005
|
+
*/
|
|
3006
|
+
"text-shadow-color": [{
|
|
3007
|
+
"text-shadow": scaleColor()
|
|
3008
|
+
}],
|
|
3009
|
+
/**
|
|
3010
|
+
* Opacity
|
|
3011
|
+
* @see https://tailwindcss.com/docs/opacity
|
|
3012
|
+
*/
|
|
3013
|
+
opacity: [{
|
|
3014
|
+
opacity: [isNumber, isArbitraryVariable, isArbitraryValue]
|
|
3015
|
+
}],
|
|
3016
|
+
/**
|
|
3017
|
+
* Mix Blend Mode
|
|
3018
|
+
* @see https://tailwindcss.com/docs/mix-blend-mode
|
|
3019
|
+
*/
|
|
3020
|
+
"mix-blend": [{
|
|
3021
|
+
"mix-blend": [...scaleBlendMode(), "plus-darker", "plus-lighter"]
|
|
3022
|
+
}],
|
|
3023
|
+
/**
|
|
3024
|
+
* Background Blend Mode
|
|
3025
|
+
* @see https://tailwindcss.com/docs/background-blend-mode
|
|
3026
|
+
*/
|
|
3027
|
+
"bg-blend": [{
|
|
3028
|
+
"bg-blend": scaleBlendMode()
|
|
3029
|
+
}],
|
|
3030
|
+
/**
|
|
3031
|
+
* Mask Clip
|
|
3032
|
+
* @see https://tailwindcss.com/docs/mask-clip
|
|
3033
|
+
*/
|
|
3034
|
+
"mask-clip": [{
|
|
3035
|
+
"mask-clip": ["border", "padding", "content", "fill", "stroke", "view"]
|
|
3036
|
+
}, "mask-no-clip"],
|
|
3037
|
+
/**
|
|
3038
|
+
* Mask Composite
|
|
3039
|
+
* @see https://tailwindcss.com/docs/mask-composite
|
|
3040
|
+
*/
|
|
3041
|
+
"mask-composite": [{
|
|
3042
|
+
mask: ["add", "subtract", "intersect", "exclude"]
|
|
3043
|
+
}],
|
|
3044
|
+
/**
|
|
3045
|
+
* Mask Image
|
|
3046
|
+
* @see https://tailwindcss.com/docs/mask-image
|
|
3047
|
+
*/
|
|
3048
|
+
"mask-image-linear-pos": [{
|
|
3049
|
+
"mask-linear": [isNumber]
|
|
3050
|
+
}],
|
|
3051
|
+
"mask-image-linear-from-pos": [{
|
|
3052
|
+
"mask-linear-from": scaleMaskImagePosition()
|
|
3053
|
+
}],
|
|
3054
|
+
"mask-image-linear-to-pos": [{
|
|
3055
|
+
"mask-linear-to": scaleMaskImagePosition()
|
|
3056
|
+
}],
|
|
3057
|
+
"mask-image-linear-from-color": [{
|
|
3058
|
+
"mask-linear-from": scaleColor()
|
|
3059
|
+
}],
|
|
3060
|
+
"mask-image-linear-to-color": [{
|
|
3061
|
+
"mask-linear-to": scaleColor()
|
|
3062
|
+
}],
|
|
3063
|
+
"mask-image-t-from-pos": [{
|
|
3064
|
+
"mask-t-from": scaleMaskImagePosition()
|
|
3065
|
+
}],
|
|
3066
|
+
"mask-image-t-to-pos": [{
|
|
3067
|
+
"mask-t-to": scaleMaskImagePosition()
|
|
3068
|
+
}],
|
|
3069
|
+
"mask-image-t-from-color": [{
|
|
3070
|
+
"mask-t-from": scaleColor()
|
|
3071
|
+
}],
|
|
3072
|
+
"mask-image-t-to-color": [{
|
|
3073
|
+
"mask-t-to": scaleColor()
|
|
3074
|
+
}],
|
|
3075
|
+
"mask-image-r-from-pos": [{
|
|
3076
|
+
"mask-r-from": scaleMaskImagePosition()
|
|
3077
|
+
}],
|
|
3078
|
+
"mask-image-r-to-pos": [{
|
|
3079
|
+
"mask-r-to": scaleMaskImagePosition()
|
|
3080
|
+
}],
|
|
3081
|
+
"mask-image-r-from-color": [{
|
|
3082
|
+
"mask-r-from": scaleColor()
|
|
3083
|
+
}],
|
|
3084
|
+
"mask-image-r-to-color": [{
|
|
3085
|
+
"mask-r-to": scaleColor()
|
|
3086
|
+
}],
|
|
3087
|
+
"mask-image-b-from-pos": [{
|
|
3088
|
+
"mask-b-from": scaleMaskImagePosition()
|
|
3089
|
+
}],
|
|
3090
|
+
"mask-image-b-to-pos": [{
|
|
3091
|
+
"mask-b-to": scaleMaskImagePosition()
|
|
3092
|
+
}],
|
|
3093
|
+
"mask-image-b-from-color": [{
|
|
3094
|
+
"mask-b-from": scaleColor()
|
|
3095
|
+
}],
|
|
3096
|
+
"mask-image-b-to-color": [{
|
|
3097
|
+
"mask-b-to": scaleColor()
|
|
3098
|
+
}],
|
|
3099
|
+
"mask-image-l-from-pos": [{
|
|
3100
|
+
"mask-l-from": scaleMaskImagePosition()
|
|
3101
|
+
}],
|
|
3102
|
+
"mask-image-l-to-pos": [{
|
|
3103
|
+
"mask-l-to": scaleMaskImagePosition()
|
|
3104
|
+
}],
|
|
3105
|
+
"mask-image-l-from-color": [{
|
|
3106
|
+
"mask-l-from": scaleColor()
|
|
3107
|
+
}],
|
|
3108
|
+
"mask-image-l-to-color": [{
|
|
3109
|
+
"mask-l-to": scaleColor()
|
|
3110
|
+
}],
|
|
3111
|
+
"mask-image-x-from-pos": [{
|
|
3112
|
+
"mask-x-from": scaleMaskImagePosition()
|
|
3113
|
+
}],
|
|
3114
|
+
"mask-image-x-to-pos": [{
|
|
3115
|
+
"mask-x-to": scaleMaskImagePosition()
|
|
3116
|
+
}],
|
|
3117
|
+
"mask-image-x-from-color": [{
|
|
3118
|
+
"mask-x-from": scaleColor()
|
|
3119
|
+
}],
|
|
3120
|
+
"mask-image-x-to-color": [{
|
|
3121
|
+
"mask-x-to": scaleColor()
|
|
3122
|
+
}],
|
|
3123
|
+
"mask-image-y-from-pos": [{
|
|
3124
|
+
"mask-y-from": scaleMaskImagePosition()
|
|
3125
|
+
}],
|
|
3126
|
+
"mask-image-y-to-pos": [{
|
|
3127
|
+
"mask-y-to": scaleMaskImagePosition()
|
|
3128
|
+
}],
|
|
3129
|
+
"mask-image-y-from-color": [{
|
|
3130
|
+
"mask-y-from": scaleColor()
|
|
3131
|
+
}],
|
|
3132
|
+
"mask-image-y-to-color": [{
|
|
3133
|
+
"mask-y-to": scaleColor()
|
|
3134
|
+
}],
|
|
3135
|
+
"mask-image-radial": [{
|
|
3136
|
+
"mask-radial": [isArbitraryVariable, isArbitraryValue]
|
|
3137
|
+
}],
|
|
3138
|
+
"mask-image-radial-from-pos": [{
|
|
3139
|
+
"mask-radial-from": scaleMaskImagePosition()
|
|
3140
|
+
}],
|
|
3141
|
+
"mask-image-radial-to-pos": [{
|
|
3142
|
+
"mask-radial-to": scaleMaskImagePosition()
|
|
3143
|
+
}],
|
|
3144
|
+
"mask-image-radial-from-color": [{
|
|
3145
|
+
"mask-radial-from": scaleColor()
|
|
3146
|
+
}],
|
|
3147
|
+
"mask-image-radial-to-color": [{
|
|
3148
|
+
"mask-radial-to": scaleColor()
|
|
3149
|
+
}],
|
|
3150
|
+
"mask-image-radial-shape": [{
|
|
3151
|
+
"mask-radial": ["circle", "ellipse"]
|
|
3152
|
+
}],
|
|
3153
|
+
"mask-image-radial-size": [{
|
|
3154
|
+
"mask-radial": [{
|
|
3155
|
+
closest: ["side", "corner"],
|
|
3156
|
+
farthest: ["side", "corner"]
|
|
3157
|
+
}]
|
|
3158
|
+
}],
|
|
3159
|
+
"mask-image-radial-pos": [{
|
|
3160
|
+
"mask-radial-at": scalePosition()
|
|
3161
|
+
}],
|
|
3162
|
+
"mask-image-conic-pos": [{
|
|
3163
|
+
"mask-conic": [isNumber]
|
|
3164
|
+
}],
|
|
3165
|
+
"mask-image-conic-from-pos": [{
|
|
3166
|
+
"mask-conic-from": scaleMaskImagePosition()
|
|
3167
|
+
}],
|
|
3168
|
+
"mask-image-conic-to-pos": [{
|
|
3169
|
+
"mask-conic-to": scaleMaskImagePosition()
|
|
3170
|
+
}],
|
|
3171
|
+
"mask-image-conic-from-color": [{
|
|
3172
|
+
"mask-conic-from": scaleColor()
|
|
3173
|
+
}],
|
|
3174
|
+
"mask-image-conic-to-color": [{
|
|
3175
|
+
"mask-conic-to": scaleColor()
|
|
3176
|
+
}],
|
|
3177
|
+
/**
|
|
3178
|
+
* Mask Mode
|
|
3179
|
+
* @see https://tailwindcss.com/docs/mask-mode
|
|
3180
|
+
*/
|
|
3181
|
+
"mask-mode": [{
|
|
3182
|
+
mask: ["alpha", "luminance", "match"]
|
|
3183
|
+
}],
|
|
3184
|
+
/**
|
|
3185
|
+
* Mask Origin
|
|
3186
|
+
* @see https://tailwindcss.com/docs/mask-origin
|
|
3187
|
+
*/
|
|
3188
|
+
"mask-origin": [{
|
|
3189
|
+
"mask-origin": ["border", "padding", "content", "fill", "stroke", "view"]
|
|
3190
|
+
}],
|
|
3191
|
+
/**
|
|
3192
|
+
* Mask Position
|
|
3193
|
+
* @see https://tailwindcss.com/docs/mask-position
|
|
3194
|
+
*/
|
|
3195
|
+
"mask-position": [{
|
|
3196
|
+
mask: scaleBgPosition()
|
|
3197
|
+
}],
|
|
3198
|
+
/**
|
|
3199
|
+
* Mask Repeat
|
|
3200
|
+
* @see https://tailwindcss.com/docs/mask-repeat
|
|
3201
|
+
*/
|
|
3202
|
+
"mask-repeat": [{
|
|
3203
|
+
mask: scaleBgRepeat()
|
|
3204
|
+
}],
|
|
3205
|
+
/**
|
|
3206
|
+
* Mask Size
|
|
3207
|
+
* @see https://tailwindcss.com/docs/mask-size
|
|
3208
|
+
*/
|
|
3209
|
+
"mask-size": [{
|
|
3210
|
+
mask: scaleBgSize()
|
|
3211
|
+
}],
|
|
3212
|
+
/**
|
|
3213
|
+
* Mask Type
|
|
3214
|
+
* @see https://tailwindcss.com/docs/mask-type
|
|
3215
|
+
*/
|
|
3216
|
+
"mask-type": [{
|
|
3217
|
+
"mask-type": ["alpha", "luminance"]
|
|
3218
|
+
}],
|
|
3219
|
+
/**
|
|
3220
|
+
* Mask Image
|
|
3221
|
+
* @see https://tailwindcss.com/docs/mask-image
|
|
3222
|
+
*/
|
|
3223
|
+
"mask-image": [{
|
|
3224
|
+
mask: ["none", isArbitraryVariable, isArbitraryValue]
|
|
3225
|
+
}],
|
|
3226
|
+
// ---------------
|
|
3227
|
+
// --- Filters ---
|
|
3228
|
+
// ---------------
|
|
3229
|
+
/**
|
|
3230
|
+
* Filter
|
|
3231
|
+
* @see https://tailwindcss.com/docs/filter
|
|
3232
|
+
*/
|
|
3233
|
+
filter: [{
|
|
3234
|
+
filter: [
|
|
3235
|
+
// Deprecated since Tailwind CSS v3.0.0
|
|
3236
|
+
"",
|
|
3237
|
+
"none",
|
|
3238
|
+
isArbitraryVariable,
|
|
3239
|
+
isArbitraryValue
|
|
3240
|
+
]
|
|
3241
|
+
}],
|
|
3242
|
+
/**
|
|
3243
|
+
* Blur
|
|
3244
|
+
* @see https://tailwindcss.com/docs/blur
|
|
3245
|
+
*/
|
|
3246
|
+
blur: [{
|
|
3247
|
+
blur: scaleBlur()
|
|
3248
|
+
}],
|
|
3249
|
+
/**
|
|
3250
|
+
* Brightness
|
|
3251
|
+
* @see https://tailwindcss.com/docs/brightness
|
|
3252
|
+
*/
|
|
3253
|
+
brightness: [{
|
|
3254
|
+
brightness: [isNumber, isArbitraryVariable, isArbitraryValue]
|
|
3255
|
+
}],
|
|
3256
|
+
/**
|
|
3257
|
+
* Contrast
|
|
3258
|
+
* @see https://tailwindcss.com/docs/contrast
|
|
3259
|
+
*/
|
|
3260
|
+
contrast: [{
|
|
3261
|
+
contrast: [isNumber, isArbitraryVariable, isArbitraryValue]
|
|
3262
|
+
}],
|
|
3263
|
+
/**
|
|
3264
|
+
* Drop Shadow
|
|
3265
|
+
* @see https://tailwindcss.com/docs/drop-shadow
|
|
3266
|
+
*/
|
|
3267
|
+
"drop-shadow": [{
|
|
3268
|
+
"drop-shadow": [
|
|
3269
|
+
// Deprecated since Tailwind CSS v4.0.0
|
|
3270
|
+
"",
|
|
3271
|
+
"none",
|
|
3272
|
+
themeDropShadow,
|
|
3273
|
+
isArbitraryVariableShadow,
|
|
3274
|
+
isArbitraryShadow
|
|
3275
|
+
]
|
|
3276
|
+
}],
|
|
3277
|
+
/**
|
|
3278
|
+
* Drop Shadow Color
|
|
3279
|
+
* @see https://tailwindcss.com/docs/filter-drop-shadow#setting-the-shadow-color
|
|
3280
|
+
*/
|
|
3281
|
+
"drop-shadow-color": [{
|
|
3282
|
+
"drop-shadow": scaleColor()
|
|
3283
|
+
}],
|
|
3284
|
+
/**
|
|
3285
|
+
* Grayscale
|
|
3286
|
+
* @see https://tailwindcss.com/docs/grayscale
|
|
3287
|
+
*/
|
|
3288
|
+
grayscale: [{
|
|
3289
|
+
grayscale: ["", isNumber, isArbitraryVariable, isArbitraryValue]
|
|
3290
|
+
}],
|
|
3291
|
+
/**
|
|
3292
|
+
* Hue Rotate
|
|
3293
|
+
* @see https://tailwindcss.com/docs/hue-rotate
|
|
3294
|
+
*/
|
|
3295
|
+
"hue-rotate": [{
|
|
3296
|
+
"hue-rotate": [isNumber, isArbitraryVariable, isArbitraryValue]
|
|
3297
|
+
}],
|
|
3298
|
+
/**
|
|
3299
|
+
* Invert
|
|
3300
|
+
* @see https://tailwindcss.com/docs/invert
|
|
3301
|
+
*/
|
|
3302
|
+
invert: [{
|
|
3303
|
+
invert: ["", isNumber, isArbitraryVariable, isArbitraryValue]
|
|
3304
|
+
}],
|
|
3305
|
+
/**
|
|
3306
|
+
* Saturate
|
|
3307
|
+
* @see https://tailwindcss.com/docs/saturate
|
|
3308
|
+
*/
|
|
3309
|
+
saturate: [{
|
|
3310
|
+
saturate: [isNumber, isArbitraryVariable, isArbitraryValue]
|
|
3311
|
+
}],
|
|
3312
|
+
/**
|
|
3313
|
+
* Sepia
|
|
3314
|
+
* @see https://tailwindcss.com/docs/sepia
|
|
3315
|
+
*/
|
|
3316
|
+
sepia: [{
|
|
3317
|
+
sepia: ["", isNumber, isArbitraryVariable, isArbitraryValue]
|
|
3318
|
+
}],
|
|
3319
|
+
/**
|
|
3320
|
+
* Backdrop Filter
|
|
3321
|
+
* @see https://tailwindcss.com/docs/backdrop-filter
|
|
3322
|
+
*/
|
|
3323
|
+
"backdrop-filter": [{
|
|
3324
|
+
"backdrop-filter": [
|
|
3325
|
+
// Deprecated since Tailwind CSS v3.0.0
|
|
3326
|
+
"",
|
|
3327
|
+
"none",
|
|
3328
|
+
isArbitraryVariable,
|
|
3329
|
+
isArbitraryValue
|
|
3330
|
+
]
|
|
3331
|
+
}],
|
|
3332
|
+
/**
|
|
3333
|
+
* Backdrop Blur
|
|
3334
|
+
* @see https://tailwindcss.com/docs/backdrop-blur
|
|
3335
|
+
*/
|
|
3336
|
+
"backdrop-blur": [{
|
|
3337
|
+
"backdrop-blur": scaleBlur()
|
|
3338
|
+
}],
|
|
3339
|
+
/**
|
|
3340
|
+
* Backdrop Brightness
|
|
3341
|
+
* @see https://tailwindcss.com/docs/backdrop-brightness
|
|
3342
|
+
*/
|
|
3343
|
+
"backdrop-brightness": [{
|
|
3344
|
+
"backdrop-brightness": [isNumber, isArbitraryVariable, isArbitraryValue]
|
|
3345
|
+
}],
|
|
3346
|
+
/**
|
|
3347
|
+
* Backdrop Contrast
|
|
3348
|
+
* @see https://tailwindcss.com/docs/backdrop-contrast
|
|
3349
|
+
*/
|
|
3350
|
+
"backdrop-contrast": [{
|
|
3351
|
+
"backdrop-contrast": [isNumber, isArbitraryVariable, isArbitraryValue]
|
|
3352
|
+
}],
|
|
3353
|
+
/**
|
|
3354
|
+
* Backdrop Grayscale
|
|
3355
|
+
* @see https://tailwindcss.com/docs/backdrop-grayscale
|
|
3356
|
+
*/
|
|
3357
|
+
"backdrop-grayscale": [{
|
|
3358
|
+
"backdrop-grayscale": ["", isNumber, isArbitraryVariable, isArbitraryValue]
|
|
3359
|
+
}],
|
|
3360
|
+
/**
|
|
3361
|
+
* Backdrop Hue Rotate
|
|
3362
|
+
* @see https://tailwindcss.com/docs/backdrop-hue-rotate
|
|
3363
|
+
*/
|
|
3364
|
+
"backdrop-hue-rotate": [{
|
|
3365
|
+
"backdrop-hue-rotate": [isNumber, isArbitraryVariable, isArbitraryValue]
|
|
3366
|
+
}],
|
|
3367
|
+
/**
|
|
3368
|
+
* Backdrop Invert
|
|
3369
|
+
* @see https://tailwindcss.com/docs/backdrop-invert
|
|
3370
|
+
*/
|
|
3371
|
+
"backdrop-invert": [{
|
|
3372
|
+
"backdrop-invert": ["", isNumber, isArbitraryVariable, isArbitraryValue]
|
|
3373
|
+
}],
|
|
3374
|
+
/**
|
|
3375
|
+
* Backdrop Opacity
|
|
3376
|
+
* @see https://tailwindcss.com/docs/backdrop-opacity
|
|
3377
|
+
*/
|
|
3378
|
+
"backdrop-opacity": [{
|
|
3379
|
+
"backdrop-opacity": [isNumber, isArbitraryVariable, isArbitraryValue]
|
|
3380
|
+
}],
|
|
3381
|
+
/**
|
|
3382
|
+
* Backdrop Saturate
|
|
3383
|
+
* @see https://tailwindcss.com/docs/backdrop-saturate
|
|
3384
|
+
*/
|
|
3385
|
+
"backdrop-saturate": [{
|
|
3386
|
+
"backdrop-saturate": [isNumber, isArbitraryVariable, isArbitraryValue]
|
|
3387
|
+
}],
|
|
3388
|
+
/**
|
|
3389
|
+
* Backdrop Sepia
|
|
3390
|
+
* @see https://tailwindcss.com/docs/backdrop-sepia
|
|
3391
|
+
*/
|
|
3392
|
+
"backdrop-sepia": [{
|
|
3393
|
+
"backdrop-sepia": ["", isNumber, isArbitraryVariable, isArbitraryValue]
|
|
3394
|
+
}],
|
|
3395
|
+
// --------------
|
|
3396
|
+
// --- Tables ---
|
|
3397
|
+
// --------------
|
|
3398
|
+
/**
|
|
3399
|
+
* Border Collapse
|
|
3400
|
+
* @see https://tailwindcss.com/docs/border-collapse
|
|
3401
|
+
*/
|
|
3402
|
+
"border-collapse": [{
|
|
3403
|
+
border: ["collapse", "separate"]
|
|
3404
|
+
}],
|
|
3405
|
+
/**
|
|
3406
|
+
* Border Spacing
|
|
3407
|
+
* @see https://tailwindcss.com/docs/border-spacing
|
|
3408
|
+
*/
|
|
3409
|
+
"border-spacing": [{
|
|
3410
|
+
"border-spacing": scaleUnambiguousSpacing()
|
|
3411
|
+
}],
|
|
3412
|
+
/**
|
|
3413
|
+
* Border Spacing X
|
|
3414
|
+
* @see https://tailwindcss.com/docs/border-spacing
|
|
3415
|
+
*/
|
|
3416
|
+
"border-spacing-x": [{
|
|
3417
|
+
"border-spacing-x": scaleUnambiguousSpacing()
|
|
3418
|
+
}],
|
|
3419
|
+
/**
|
|
3420
|
+
* Border Spacing Y
|
|
3421
|
+
* @see https://tailwindcss.com/docs/border-spacing
|
|
3422
|
+
*/
|
|
3423
|
+
"border-spacing-y": [{
|
|
3424
|
+
"border-spacing-y": scaleUnambiguousSpacing()
|
|
3425
|
+
}],
|
|
3426
|
+
/**
|
|
3427
|
+
* Table Layout
|
|
3428
|
+
* @see https://tailwindcss.com/docs/table-layout
|
|
3429
|
+
*/
|
|
3430
|
+
"table-layout": [{
|
|
3431
|
+
table: ["auto", "fixed"]
|
|
3432
|
+
}],
|
|
3433
|
+
/**
|
|
3434
|
+
* Caption Side
|
|
3435
|
+
* @see https://tailwindcss.com/docs/caption-side
|
|
3436
|
+
*/
|
|
3437
|
+
caption: [{
|
|
3438
|
+
caption: ["top", "bottom"]
|
|
3439
|
+
}],
|
|
3440
|
+
// ---------------------------------
|
|
3441
|
+
// --- Transitions and Animation ---
|
|
3442
|
+
// ---------------------------------
|
|
3443
|
+
/**
|
|
3444
|
+
* Transition Property
|
|
3445
|
+
* @see https://tailwindcss.com/docs/transition-property
|
|
3446
|
+
*/
|
|
3447
|
+
transition: [{
|
|
3448
|
+
transition: ["", "all", "colors", "opacity", "shadow", "transform", "none", isArbitraryVariable, isArbitraryValue]
|
|
3449
|
+
}],
|
|
3450
|
+
/**
|
|
3451
|
+
* Transition Behavior
|
|
3452
|
+
* @see https://tailwindcss.com/docs/transition-behavior
|
|
3453
|
+
*/
|
|
3454
|
+
"transition-behavior": [{
|
|
3455
|
+
transition: ["normal", "discrete"]
|
|
3456
|
+
}],
|
|
3457
|
+
/**
|
|
3458
|
+
* Transition Duration
|
|
3459
|
+
* @see https://tailwindcss.com/docs/transition-duration
|
|
3460
|
+
*/
|
|
3461
|
+
duration: [{
|
|
3462
|
+
duration: [isNumber, "initial", isArbitraryVariable, isArbitraryValue]
|
|
3463
|
+
}],
|
|
3464
|
+
/**
|
|
3465
|
+
* Transition Timing Function
|
|
3466
|
+
* @see https://tailwindcss.com/docs/transition-timing-function
|
|
3467
|
+
*/
|
|
3468
|
+
ease: [{
|
|
3469
|
+
ease: ["linear", "initial", themeEase, isArbitraryVariable, isArbitraryValue]
|
|
3470
|
+
}],
|
|
3471
|
+
/**
|
|
3472
|
+
* Transition Delay
|
|
3473
|
+
* @see https://tailwindcss.com/docs/transition-delay
|
|
3474
|
+
*/
|
|
3475
|
+
delay: [{
|
|
3476
|
+
delay: [isNumber, isArbitraryVariable, isArbitraryValue]
|
|
3477
|
+
}],
|
|
3478
|
+
/**
|
|
3479
|
+
* Animation
|
|
3480
|
+
* @see https://tailwindcss.com/docs/animation
|
|
3481
|
+
*/
|
|
3482
|
+
animate: [{
|
|
3483
|
+
animate: ["none", themeAnimate, isArbitraryVariable, isArbitraryValue]
|
|
3484
|
+
}],
|
|
3485
|
+
// ------------------
|
|
3486
|
+
// --- Transforms ---
|
|
3487
|
+
// ------------------
|
|
3488
|
+
/**
|
|
3489
|
+
* Backface Visibility
|
|
3490
|
+
* @see https://tailwindcss.com/docs/backface-visibility
|
|
3491
|
+
*/
|
|
3492
|
+
backface: [{
|
|
3493
|
+
backface: ["hidden", "visible"]
|
|
3494
|
+
}],
|
|
3495
|
+
/**
|
|
3496
|
+
* Perspective
|
|
3497
|
+
* @see https://tailwindcss.com/docs/perspective
|
|
3498
|
+
*/
|
|
3499
|
+
perspective: [{
|
|
3500
|
+
perspective: [themePerspective, isArbitraryVariable, isArbitraryValue]
|
|
3501
|
+
}],
|
|
3502
|
+
/**
|
|
3503
|
+
* Perspective Origin
|
|
3504
|
+
* @see https://tailwindcss.com/docs/perspective-origin
|
|
3505
|
+
*/
|
|
3506
|
+
"perspective-origin": [{
|
|
3507
|
+
"perspective-origin": scalePositionWithArbitrary()
|
|
3508
|
+
}],
|
|
3509
|
+
/**
|
|
3510
|
+
* Rotate
|
|
3511
|
+
* @see https://tailwindcss.com/docs/rotate
|
|
3512
|
+
*/
|
|
3513
|
+
rotate: [{
|
|
3514
|
+
rotate: scaleRotate()
|
|
3515
|
+
}],
|
|
3516
|
+
/**
|
|
3517
|
+
* Rotate X
|
|
3518
|
+
* @see https://tailwindcss.com/docs/rotate
|
|
3519
|
+
*/
|
|
3520
|
+
"rotate-x": [{
|
|
3521
|
+
"rotate-x": scaleRotate()
|
|
3522
|
+
}],
|
|
3523
|
+
/**
|
|
3524
|
+
* Rotate Y
|
|
3525
|
+
* @see https://tailwindcss.com/docs/rotate
|
|
3526
|
+
*/
|
|
3527
|
+
"rotate-y": [{
|
|
3528
|
+
"rotate-y": scaleRotate()
|
|
3529
|
+
}],
|
|
3530
|
+
/**
|
|
3531
|
+
* Rotate Z
|
|
3532
|
+
* @see https://tailwindcss.com/docs/rotate
|
|
3533
|
+
*/
|
|
3534
|
+
"rotate-z": [{
|
|
3535
|
+
"rotate-z": scaleRotate()
|
|
3536
|
+
}],
|
|
3537
|
+
/**
|
|
3538
|
+
* Scale
|
|
3539
|
+
* @see https://tailwindcss.com/docs/scale
|
|
3540
|
+
*/
|
|
3541
|
+
scale: [{
|
|
3542
|
+
scale: scaleScale()
|
|
3543
|
+
}],
|
|
3544
|
+
/**
|
|
3545
|
+
* Scale X
|
|
3546
|
+
* @see https://tailwindcss.com/docs/scale
|
|
3547
|
+
*/
|
|
3548
|
+
"scale-x": [{
|
|
3549
|
+
"scale-x": scaleScale()
|
|
3550
|
+
}],
|
|
3551
|
+
/**
|
|
3552
|
+
* Scale Y
|
|
3553
|
+
* @see https://tailwindcss.com/docs/scale
|
|
3554
|
+
*/
|
|
3555
|
+
"scale-y": [{
|
|
3556
|
+
"scale-y": scaleScale()
|
|
3557
|
+
}],
|
|
3558
|
+
/**
|
|
3559
|
+
* Scale Z
|
|
3560
|
+
* @see https://tailwindcss.com/docs/scale
|
|
3561
|
+
*/
|
|
3562
|
+
"scale-z": [{
|
|
3563
|
+
"scale-z": scaleScale()
|
|
3564
|
+
}],
|
|
3565
|
+
/**
|
|
3566
|
+
* Scale 3D
|
|
3567
|
+
* @see https://tailwindcss.com/docs/scale
|
|
3568
|
+
*/
|
|
3569
|
+
"scale-3d": ["scale-3d"],
|
|
3570
|
+
/**
|
|
3571
|
+
* Skew
|
|
3572
|
+
* @see https://tailwindcss.com/docs/skew
|
|
3573
|
+
*/
|
|
3574
|
+
skew: [{
|
|
3575
|
+
skew: scaleSkew()
|
|
3576
|
+
}],
|
|
3577
|
+
/**
|
|
3578
|
+
* Skew X
|
|
3579
|
+
* @see https://tailwindcss.com/docs/skew
|
|
3580
|
+
*/
|
|
3581
|
+
"skew-x": [{
|
|
3582
|
+
"skew-x": scaleSkew()
|
|
3583
|
+
}],
|
|
3584
|
+
/**
|
|
3585
|
+
* Skew Y
|
|
3586
|
+
* @see https://tailwindcss.com/docs/skew
|
|
3587
|
+
*/
|
|
3588
|
+
"skew-y": [{
|
|
3589
|
+
"skew-y": scaleSkew()
|
|
3590
|
+
}],
|
|
3591
|
+
/**
|
|
3592
|
+
* Transform
|
|
3593
|
+
* @see https://tailwindcss.com/docs/transform
|
|
3594
|
+
*/
|
|
3595
|
+
transform: [{
|
|
3596
|
+
transform: [isArbitraryVariable, isArbitraryValue, "", "none", "gpu", "cpu"]
|
|
3597
|
+
}],
|
|
3598
|
+
/**
|
|
3599
|
+
* Transform Origin
|
|
3600
|
+
* @see https://tailwindcss.com/docs/transform-origin
|
|
3601
|
+
*/
|
|
3602
|
+
"transform-origin": [{
|
|
3603
|
+
origin: scalePositionWithArbitrary()
|
|
3604
|
+
}],
|
|
3605
|
+
/**
|
|
3606
|
+
* Transform Style
|
|
3607
|
+
* @see https://tailwindcss.com/docs/transform-style
|
|
3608
|
+
*/
|
|
3609
|
+
"transform-style": [{
|
|
3610
|
+
transform: ["3d", "flat"]
|
|
3611
|
+
}],
|
|
3612
|
+
/**
|
|
3613
|
+
* Translate
|
|
3614
|
+
* @see https://tailwindcss.com/docs/translate
|
|
3615
|
+
*/
|
|
3616
|
+
translate: [{
|
|
3617
|
+
translate: scaleTranslate()
|
|
3618
|
+
}],
|
|
3619
|
+
/**
|
|
3620
|
+
* Translate X
|
|
3621
|
+
* @see https://tailwindcss.com/docs/translate
|
|
3622
|
+
*/
|
|
3623
|
+
"translate-x": [{
|
|
3624
|
+
"translate-x": scaleTranslate()
|
|
3625
|
+
}],
|
|
3626
|
+
/**
|
|
3627
|
+
* Translate Y
|
|
3628
|
+
* @see https://tailwindcss.com/docs/translate
|
|
3629
|
+
*/
|
|
3630
|
+
"translate-y": [{
|
|
3631
|
+
"translate-y": scaleTranslate()
|
|
3632
|
+
}],
|
|
3633
|
+
/**
|
|
3634
|
+
* Translate Z
|
|
3635
|
+
* @see https://tailwindcss.com/docs/translate
|
|
3636
|
+
*/
|
|
3637
|
+
"translate-z": [{
|
|
3638
|
+
"translate-z": scaleTranslate()
|
|
3639
|
+
}],
|
|
3640
|
+
/**
|
|
3641
|
+
* Translate None
|
|
3642
|
+
* @see https://tailwindcss.com/docs/translate
|
|
3643
|
+
*/
|
|
3644
|
+
"translate-none": ["translate-none"],
|
|
3645
|
+
// ---------------------
|
|
3646
|
+
// --- Interactivity ---
|
|
3647
|
+
// ---------------------
|
|
3648
|
+
/**
|
|
3649
|
+
* Accent Color
|
|
3650
|
+
* @see https://tailwindcss.com/docs/accent-color
|
|
3651
|
+
*/
|
|
3652
|
+
accent: [{
|
|
3653
|
+
accent: scaleColor()
|
|
3654
|
+
}],
|
|
3655
|
+
/**
|
|
3656
|
+
* Appearance
|
|
3657
|
+
* @see https://tailwindcss.com/docs/appearance
|
|
3658
|
+
*/
|
|
3659
|
+
appearance: [{
|
|
3660
|
+
appearance: ["none", "auto"]
|
|
3661
|
+
}],
|
|
3662
|
+
/**
|
|
3663
|
+
* Caret Color
|
|
3664
|
+
* @see https://tailwindcss.com/docs/just-in-time-mode#caret-color-utilities
|
|
3665
|
+
*/
|
|
3666
|
+
"caret-color": [{
|
|
3667
|
+
caret: scaleColor()
|
|
3668
|
+
}],
|
|
3669
|
+
/**
|
|
3670
|
+
* Color Scheme
|
|
3671
|
+
* @see https://tailwindcss.com/docs/color-scheme
|
|
3672
|
+
*/
|
|
3673
|
+
"color-scheme": [{
|
|
3674
|
+
scheme: ["normal", "dark", "light", "light-dark", "only-dark", "only-light"]
|
|
3675
|
+
}],
|
|
3676
|
+
/**
|
|
3677
|
+
* Cursor
|
|
3678
|
+
* @see https://tailwindcss.com/docs/cursor
|
|
3679
|
+
*/
|
|
3680
|
+
cursor: [{
|
|
3681
|
+
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]
|
|
3682
|
+
}],
|
|
3683
|
+
/**
|
|
3684
|
+
* Field Sizing
|
|
3685
|
+
* @see https://tailwindcss.com/docs/field-sizing
|
|
3686
|
+
*/
|
|
3687
|
+
"field-sizing": [{
|
|
3688
|
+
"field-sizing": ["fixed", "content"]
|
|
3689
|
+
}],
|
|
3690
|
+
/**
|
|
3691
|
+
* Pointer Events
|
|
3692
|
+
* @see https://tailwindcss.com/docs/pointer-events
|
|
3693
|
+
*/
|
|
3694
|
+
"pointer-events": [{
|
|
3695
|
+
"pointer-events": ["auto", "none"]
|
|
3696
|
+
}],
|
|
3697
|
+
/**
|
|
3698
|
+
* Resize
|
|
3699
|
+
* @see https://tailwindcss.com/docs/resize
|
|
3700
|
+
*/
|
|
3701
|
+
resize: [{
|
|
3702
|
+
resize: ["none", "", "y", "x"]
|
|
3703
|
+
}],
|
|
3704
|
+
/**
|
|
3705
|
+
* Scroll Behavior
|
|
3706
|
+
* @see https://tailwindcss.com/docs/scroll-behavior
|
|
3707
|
+
*/
|
|
3708
|
+
"scroll-behavior": [{
|
|
3709
|
+
scroll: ["auto", "smooth"]
|
|
3710
|
+
}],
|
|
3711
|
+
/**
|
|
3712
|
+
* Scroll Margin
|
|
3713
|
+
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3714
|
+
*/
|
|
3715
|
+
"scroll-m": [{
|
|
3716
|
+
"scroll-m": scaleUnambiguousSpacing()
|
|
3717
|
+
}],
|
|
3718
|
+
/**
|
|
3719
|
+
* Scroll Margin X
|
|
3720
|
+
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3721
|
+
*/
|
|
3722
|
+
"scroll-mx": [{
|
|
3723
|
+
"scroll-mx": scaleUnambiguousSpacing()
|
|
3724
|
+
}],
|
|
3725
|
+
/**
|
|
3726
|
+
* Scroll Margin Y
|
|
3727
|
+
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3728
|
+
*/
|
|
3729
|
+
"scroll-my": [{
|
|
3730
|
+
"scroll-my": scaleUnambiguousSpacing()
|
|
3731
|
+
}],
|
|
3732
|
+
/**
|
|
3733
|
+
* Scroll Margin Start
|
|
3734
|
+
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3735
|
+
*/
|
|
3736
|
+
"scroll-ms": [{
|
|
3737
|
+
"scroll-ms": scaleUnambiguousSpacing()
|
|
3738
|
+
}],
|
|
3739
|
+
/**
|
|
3740
|
+
* Scroll Margin End
|
|
3741
|
+
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3742
|
+
*/
|
|
3743
|
+
"scroll-me": [{
|
|
3744
|
+
"scroll-me": scaleUnambiguousSpacing()
|
|
3745
|
+
}],
|
|
3746
|
+
/**
|
|
3747
|
+
* Scroll Margin Top
|
|
3748
|
+
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3749
|
+
*/
|
|
3750
|
+
"scroll-mt": [{
|
|
3751
|
+
"scroll-mt": scaleUnambiguousSpacing()
|
|
3752
|
+
}],
|
|
3753
|
+
/**
|
|
3754
|
+
* Scroll Margin Right
|
|
3755
|
+
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3756
|
+
*/
|
|
3757
|
+
"scroll-mr": [{
|
|
3758
|
+
"scroll-mr": scaleUnambiguousSpacing()
|
|
3759
|
+
}],
|
|
3760
|
+
/**
|
|
3761
|
+
* Scroll Margin Bottom
|
|
3762
|
+
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3763
|
+
*/
|
|
3764
|
+
"scroll-mb": [{
|
|
3765
|
+
"scroll-mb": scaleUnambiguousSpacing()
|
|
3766
|
+
}],
|
|
3767
|
+
/**
|
|
3768
|
+
* Scroll Margin Left
|
|
3769
|
+
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3770
|
+
*/
|
|
3771
|
+
"scroll-ml": [{
|
|
3772
|
+
"scroll-ml": scaleUnambiguousSpacing()
|
|
3773
|
+
}],
|
|
3774
|
+
/**
|
|
3775
|
+
* Scroll Padding
|
|
3776
|
+
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3777
|
+
*/
|
|
3778
|
+
"scroll-p": [{
|
|
3779
|
+
"scroll-p": scaleUnambiguousSpacing()
|
|
3780
|
+
}],
|
|
3781
|
+
/**
|
|
3782
|
+
* Scroll Padding X
|
|
3783
|
+
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3784
|
+
*/
|
|
3785
|
+
"scroll-px": [{
|
|
3786
|
+
"scroll-px": scaleUnambiguousSpacing()
|
|
3787
|
+
}],
|
|
3788
|
+
/**
|
|
3789
|
+
* Scroll Padding Y
|
|
3790
|
+
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3791
|
+
*/
|
|
3792
|
+
"scroll-py": [{
|
|
3793
|
+
"scroll-py": scaleUnambiguousSpacing()
|
|
3794
|
+
}],
|
|
3795
|
+
/**
|
|
3796
|
+
* Scroll Padding Start
|
|
3797
|
+
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3798
|
+
*/
|
|
3799
|
+
"scroll-ps": [{
|
|
3800
|
+
"scroll-ps": scaleUnambiguousSpacing()
|
|
3801
|
+
}],
|
|
3802
|
+
/**
|
|
3803
|
+
* Scroll Padding End
|
|
3804
|
+
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3805
|
+
*/
|
|
3806
|
+
"scroll-pe": [{
|
|
3807
|
+
"scroll-pe": scaleUnambiguousSpacing()
|
|
3808
|
+
}],
|
|
3809
|
+
/**
|
|
3810
|
+
* Scroll Padding Top
|
|
3811
|
+
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3812
|
+
*/
|
|
3813
|
+
"scroll-pt": [{
|
|
3814
|
+
"scroll-pt": scaleUnambiguousSpacing()
|
|
3815
|
+
}],
|
|
3816
|
+
/**
|
|
3817
|
+
* Scroll Padding Right
|
|
3818
|
+
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3819
|
+
*/
|
|
3820
|
+
"scroll-pr": [{
|
|
3821
|
+
"scroll-pr": scaleUnambiguousSpacing()
|
|
3822
|
+
}],
|
|
3823
|
+
/**
|
|
3824
|
+
* Scroll Padding Bottom
|
|
3825
|
+
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3826
|
+
*/
|
|
3827
|
+
"scroll-pb": [{
|
|
3828
|
+
"scroll-pb": scaleUnambiguousSpacing()
|
|
3829
|
+
}],
|
|
3830
|
+
/**
|
|
3831
|
+
* Scroll Padding Left
|
|
3832
|
+
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3833
|
+
*/
|
|
3834
|
+
"scroll-pl": [{
|
|
3835
|
+
"scroll-pl": scaleUnambiguousSpacing()
|
|
3836
|
+
}],
|
|
3837
|
+
/**
|
|
3838
|
+
* Scroll Snap Align
|
|
3839
|
+
* @see https://tailwindcss.com/docs/scroll-snap-align
|
|
3840
|
+
*/
|
|
3841
|
+
"snap-align": [{
|
|
3842
|
+
snap: ["start", "end", "center", "align-none"]
|
|
3843
|
+
}],
|
|
3844
|
+
/**
|
|
3845
|
+
* Scroll Snap Stop
|
|
3846
|
+
* @see https://tailwindcss.com/docs/scroll-snap-stop
|
|
3847
|
+
*/
|
|
3848
|
+
"snap-stop": [{
|
|
3849
|
+
snap: ["normal", "always"]
|
|
3850
|
+
}],
|
|
3851
|
+
/**
|
|
3852
|
+
* Scroll Snap Type
|
|
3853
|
+
* @see https://tailwindcss.com/docs/scroll-snap-type
|
|
3854
|
+
*/
|
|
3855
|
+
"snap-type": [{
|
|
3856
|
+
snap: ["none", "x", "y", "both"]
|
|
3857
|
+
}],
|
|
3858
|
+
/**
|
|
3859
|
+
* Scroll Snap Type Strictness
|
|
3860
|
+
* @see https://tailwindcss.com/docs/scroll-snap-type
|
|
3861
|
+
*/
|
|
3862
|
+
"snap-strictness": [{
|
|
3863
|
+
snap: ["mandatory", "proximity"]
|
|
3864
|
+
}],
|
|
3865
|
+
/**
|
|
3866
|
+
* Touch Action
|
|
3867
|
+
* @see https://tailwindcss.com/docs/touch-action
|
|
3868
|
+
*/
|
|
3869
|
+
touch: [{
|
|
3870
|
+
touch: ["auto", "none", "manipulation"]
|
|
3871
|
+
}],
|
|
3872
|
+
/**
|
|
3873
|
+
* Touch Action X
|
|
3874
|
+
* @see https://tailwindcss.com/docs/touch-action
|
|
3875
|
+
*/
|
|
3876
|
+
"touch-x": [{
|
|
3877
|
+
"touch-pan": ["x", "left", "right"]
|
|
3878
|
+
}],
|
|
3879
|
+
/**
|
|
3880
|
+
* Touch Action Y
|
|
3881
|
+
* @see https://tailwindcss.com/docs/touch-action
|
|
3882
|
+
*/
|
|
3883
|
+
"touch-y": [{
|
|
3884
|
+
"touch-pan": ["y", "up", "down"]
|
|
3885
|
+
}],
|
|
3886
|
+
/**
|
|
3887
|
+
* Touch Action Pinch Zoom
|
|
3888
|
+
* @see https://tailwindcss.com/docs/touch-action
|
|
3889
|
+
*/
|
|
3890
|
+
"touch-pz": ["touch-pinch-zoom"],
|
|
3891
|
+
/**
|
|
3892
|
+
* User Select
|
|
3893
|
+
* @see https://tailwindcss.com/docs/user-select
|
|
3894
|
+
*/
|
|
3895
|
+
select: [{
|
|
3896
|
+
select: ["none", "text", "all", "auto"]
|
|
3897
|
+
}],
|
|
3898
|
+
/**
|
|
3899
|
+
* Will Change
|
|
3900
|
+
* @see https://tailwindcss.com/docs/will-change
|
|
3901
|
+
*/
|
|
3902
|
+
"will-change": [{
|
|
3903
|
+
"will-change": ["auto", "scroll", "contents", "transform", isArbitraryVariable, isArbitraryValue]
|
|
3904
|
+
}],
|
|
3905
|
+
// -----------
|
|
3906
|
+
// --- SVG ---
|
|
3907
|
+
// -----------
|
|
3908
|
+
/**
|
|
3909
|
+
* Fill
|
|
3910
|
+
* @see https://tailwindcss.com/docs/fill
|
|
3911
|
+
*/
|
|
3912
|
+
fill: [{
|
|
3913
|
+
fill: ["none", ...scaleColor()]
|
|
3914
|
+
}],
|
|
3915
|
+
/**
|
|
3916
|
+
* Stroke Width
|
|
3917
|
+
* @see https://tailwindcss.com/docs/stroke-width
|
|
3918
|
+
*/
|
|
3919
|
+
"stroke-w": [{
|
|
3920
|
+
stroke: [isNumber, isArbitraryVariableLength, isArbitraryLength, isArbitraryNumber]
|
|
3921
|
+
}],
|
|
3922
|
+
/**
|
|
3923
|
+
* Stroke
|
|
3924
|
+
* @see https://tailwindcss.com/docs/stroke
|
|
3925
|
+
*/
|
|
3926
|
+
stroke: [{
|
|
3927
|
+
stroke: ["none", ...scaleColor()]
|
|
3928
|
+
}],
|
|
3929
|
+
// ---------------------
|
|
3930
|
+
// --- Accessibility ---
|
|
3931
|
+
// ---------------------
|
|
3932
|
+
/**
|
|
3933
|
+
* Forced Color Adjust
|
|
3934
|
+
* @see https://tailwindcss.com/docs/forced-color-adjust
|
|
3935
|
+
*/
|
|
3936
|
+
"forced-color-adjust": [{
|
|
3937
|
+
"forced-color-adjust": ["auto", "none"]
|
|
3938
|
+
}]
|
|
3939
|
+
},
|
|
3940
|
+
conflictingClassGroups: {
|
|
3941
|
+
overflow: ["overflow-x", "overflow-y"],
|
|
3942
|
+
overscroll: ["overscroll-x", "overscroll-y"],
|
|
3943
|
+
inset: ["inset-x", "inset-y", "start", "end", "top", "right", "bottom", "left"],
|
|
3944
|
+
"inset-x": ["right", "left"],
|
|
3945
|
+
"inset-y": ["top", "bottom"],
|
|
3946
|
+
flex: ["basis", "grow", "shrink"],
|
|
3947
|
+
gap: ["gap-x", "gap-y"],
|
|
3948
|
+
p: ["px", "py", "ps", "pe", "pt", "pr", "pb", "pl"],
|
|
3949
|
+
px: ["pr", "pl"],
|
|
3950
|
+
py: ["pt", "pb"],
|
|
3951
|
+
m: ["mx", "my", "ms", "me", "mt", "mr", "mb", "ml"],
|
|
3952
|
+
mx: ["mr", "ml"],
|
|
3953
|
+
my: ["mt", "mb"],
|
|
3954
|
+
size: ["w", "h"],
|
|
3955
|
+
"font-size": ["leading"],
|
|
3956
|
+
"fvn-normal": ["fvn-ordinal", "fvn-slashed-zero", "fvn-figure", "fvn-spacing", "fvn-fraction"],
|
|
3957
|
+
"fvn-ordinal": ["fvn-normal"],
|
|
3958
|
+
"fvn-slashed-zero": ["fvn-normal"],
|
|
3959
|
+
"fvn-figure": ["fvn-normal"],
|
|
3960
|
+
"fvn-spacing": ["fvn-normal"],
|
|
3961
|
+
"fvn-fraction": ["fvn-normal"],
|
|
3962
|
+
"line-clamp": ["display", "overflow"],
|
|
3963
|
+
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"],
|
|
3964
|
+
"rounded-s": ["rounded-ss", "rounded-es"],
|
|
3965
|
+
"rounded-e": ["rounded-se", "rounded-ee"],
|
|
3966
|
+
"rounded-t": ["rounded-tl", "rounded-tr"],
|
|
3967
|
+
"rounded-r": ["rounded-tr", "rounded-br"],
|
|
3968
|
+
"rounded-b": ["rounded-br", "rounded-bl"],
|
|
3969
|
+
"rounded-l": ["rounded-tl", "rounded-bl"],
|
|
3970
|
+
"border-spacing": ["border-spacing-x", "border-spacing-y"],
|
|
3971
|
+
"border-w": ["border-w-x", "border-w-y", "border-w-s", "border-w-e", "border-w-t", "border-w-r", "border-w-b", "border-w-l"],
|
|
3972
|
+
"border-w-x": ["border-w-r", "border-w-l"],
|
|
3973
|
+
"border-w-y": ["border-w-t", "border-w-b"],
|
|
3974
|
+
"border-color": ["border-color-x", "border-color-y", "border-color-s", "border-color-e", "border-color-t", "border-color-r", "border-color-b", "border-color-l"],
|
|
3975
|
+
"border-color-x": ["border-color-r", "border-color-l"],
|
|
3976
|
+
"border-color-y": ["border-color-t", "border-color-b"],
|
|
3977
|
+
translate: ["translate-x", "translate-y", "translate-none"],
|
|
3978
|
+
"translate-none": ["translate", "translate-x", "translate-y", "translate-z"],
|
|
3979
|
+
"scroll-m": ["scroll-mx", "scroll-my", "scroll-ms", "scroll-me", "scroll-mt", "scroll-mr", "scroll-mb", "scroll-ml"],
|
|
3980
|
+
"scroll-mx": ["scroll-mr", "scroll-ml"],
|
|
3981
|
+
"scroll-my": ["scroll-mt", "scroll-mb"],
|
|
3982
|
+
"scroll-p": ["scroll-px", "scroll-py", "scroll-ps", "scroll-pe", "scroll-pt", "scroll-pr", "scroll-pb", "scroll-pl"],
|
|
3983
|
+
"scroll-px": ["scroll-pr", "scroll-pl"],
|
|
3984
|
+
"scroll-py": ["scroll-pt", "scroll-pb"],
|
|
3985
|
+
touch: ["touch-x", "touch-y", "touch-pz"],
|
|
3986
|
+
"touch-x": ["touch"],
|
|
3987
|
+
"touch-y": ["touch"],
|
|
3988
|
+
"touch-pz": ["touch"]
|
|
3989
|
+
},
|
|
3990
|
+
conflictingClassGroupModifiers: {
|
|
3991
|
+
"font-size": ["leading"]
|
|
3992
|
+
},
|
|
3993
|
+
orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
|
|
3994
|
+
};
|
|
3995
|
+
};
|
|
3996
|
+
const twMerge = /* @__PURE__ */ createTailwindMerge(getDefaultConfig);
|
|
1045
3997
|
function cn(...inputs) {
|
|
1046
3998
|
return twMerge(clsx(inputs));
|
|
1047
3999
|
}
|
|
@@ -9226,10 +12178,10 @@ var Label$1 = React.forwardRef((props, forwardedRef) => {
|
|
|
9226
12178
|
);
|
|
9227
12179
|
});
|
|
9228
12180
|
Label$1.displayName = NAME;
|
|
9229
|
-
var Root = Label$1;
|
|
12181
|
+
var Root$1 = Label$1;
|
|
9230
12182
|
const labelVariants = cva("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70");
|
|
9231
|
-
const Label = React.forwardRef(({ className, ...props }, ref) => jsx(Root, { ref, className: cn(labelVariants(), className), ...props }));
|
|
9232
|
-
Label.displayName = Root.displayName;
|
|
12183
|
+
const Label = React.forwardRef(({ className, ...props }, ref) => jsx(Root$1, { ref, className: cn(labelVariants(), className), ...props }));
|
|
12184
|
+
Label.displayName = Root$1.displayName;
|
|
9233
12185
|
const Form = FormProvider;
|
|
9234
12186
|
const FormField = ({ ...props }) => {
|
|
9235
12187
|
return jsx(FormFieldContext.Provider, { value: { name: props.name }, children: jsx(Controller, { ...props }) });
|
|
@@ -46475,6 +49427,456 @@ const JSONEditor = memo(function JSONEditor2(props) {
|
|
|
46475
49427
|
useDocumentSync(viewRef.current, doc2);
|
|
46476
49428
|
return jsx("div", { ref: editorRef });
|
|
46477
49429
|
});
|
|
49430
|
+
function createCollection(name2) {
|
|
49431
|
+
const PROVIDER_NAME = name2 + "CollectionProvider";
|
|
49432
|
+
const [createCollectionContext, createCollectionScope2] = createContextScope(PROVIDER_NAME);
|
|
49433
|
+
const [CollectionProviderImpl, useCollectionContext] = createCollectionContext(
|
|
49434
|
+
PROVIDER_NAME,
|
|
49435
|
+
{ collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
|
|
49436
|
+
);
|
|
49437
|
+
const CollectionProvider = (props) => {
|
|
49438
|
+
const { scope, children } = props;
|
|
49439
|
+
const ref = React__default.useRef(null);
|
|
49440
|
+
const itemMap = React__default.useRef(/* @__PURE__ */ new Map()).current;
|
|
49441
|
+
return /* @__PURE__ */ jsx(CollectionProviderImpl, { scope, itemMap, collectionRef: ref, children });
|
|
49442
|
+
};
|
|
49443
|
+
CollectionProvider.displayName = PROVIDER_NAME;
|
|
49444
|
+
const COLLECTION_SLOT_NAME = name2 + "CollectionSlot";
|
|
49445
|
+
const CollectionSlotImpl = createSlot(COLLECTION_SLOT_NAME);
|
|
49446
|
+
const CollectionSlot = React__default.forwardRef(
|
|
49447
|
+
(props, forwardedRef) => {
|
|
49448
|
+
const { scope, children } = props;
|
|
49449
|
+
const context = useCollectionContext(COLLECTION_SLOT_NAME, scope);
|
|
49450
|
+
const composedRefs = useComposedRefs(forwardedRef, context.collectionRef);
|
|
49451
|
+
return /* @__PURE__ */ jsx(CollectionSlotImpl, { ref: composedRefs, children });
|
|
49452
|
+
}
|
|
49453
|
+
);
|
|
49454
|
+
CollectionSlot.displayName = COLLECTION_SLOT_NAME;
|
|
49455
|
+
const ITEM_SLOT_NAME = name2 + "CollectionItemSlot";
|
|
49456
|
+
const ITEM_DATA_ATTR = "data-radix-collection-item";
|
|
49457
|
+
const CollectionItemSlotImpl = createSlot(ITEM_SLOT_NAME);
|
|
49458
|
+
const CollectionItemSlot = React__default.forwardRef(
|
|
49459
|
+
(props, forwardedRef) => {
|
|
49460
|
+
const { scope, children, ...itemData } = props;
|
|
49461
|
+
const ref = React__default.useRef(null);
|
|
49462
|
+
const composedRefs = useComposedRefs(forwardedRef, ref);
|
|
49463
|
+
const context = useCollectionContext(ITEM_SLOT_NAME, scope);
|
|
49464
|
+
React__default.useEffect(() => {
|
|
49465
|
+
context.itemMap.set(ref, { ref, ...itemData });
|
|
49466
|
+
return () => void context.itemMap.delete(ref);
|
|
49467
|
+
});
|
|
49468
|
+
return /* @__PURE__ */ jsx(CollectionItemSlotImpl, { ...{ [ITEM_DATA_ATTR]: "" }, ref: composedRefs, children });
|
|
49469
|
+
}
|
|
49470
|
+
);
|
|
49471
|
+
CollectionItemSlot.displayName = ITEM_SLOT_NAME;
|
|
49472
|
+
function useCollection2(scope) {
|
|
49473
|
+
const context = useCollectionContext(name2 + "CollectionConsumer", scope);
|
|
49474
|
+
const getItems = React__default.useCallback(() => {
|
|
49475
|
+
const collectionNode = context.collectionRef.current;
|
|
49476
|
+
if (!collectionNode) return [];
|
|
49477
|
+
const orderedNodes = Array.from(collectionNode.querySelectorAll(`[${ITEM_DATA_ATTR}]`));
|
|
49478
|
+
const items = Array.from(context.itemMap.values());
|
|
49479
|
+
const orderedItems = items.sort(
|
|
49480
|
+
(a, b) => orderedNodes.indexOf(a.ref.current) - orderedNodes.indexOf(b.ref.current)
|
|
49481
|
+
);
|
|
49482
|
+
return orderedItems;
|
|
49483
|
+
}, [context.collectionRef, context.itemMap]);
|
|
49484
|
+
return getItems;
|
|
49485
|
+
}
|
|
49486
|
+
return [
|
|
49487
|
+
{ Provider: CollectionProvider, Slot: CollectionSlot, ItemSlot: CollectionItemSlot },
|
|
49488
|
+
useCollection2,
|
|
49489
|
+
createCollectionScope2
|
|
49490
|
+
];
|
|
49491
|
+
}
|
|
49492
|
+
var DirectionContext = React.createContext(void 0);
|
|
49493
|
+
function useDirection(localDir) {
|
|
49494
|
+
const globalDir = React.useContext(DirectionContext);
|
|
49495
|
+
return localDir || globalDir || "ltr";
|
|
49496
|
+
}
|
|
49497
|
+
var ENTRY_FOCUS = "rovingFocusGroup.onEntryFocus";
|
|
49498
|
+
var EVENT_OPTIONS = { bubbles: false, cancelable: true };
|
|
49499
|
+
var GROUP_NAME = "RovingFocusGroup";
|
|
49500
|
+
var [Collection, useCollection, createCollectionScope] = createCollection(GROUP_NAME);
|
|
49501
|
+
var [createRovingFocusGroupContext, createRovingFocusGroupScope] = createContextScope(
|
|
49502
|
+
GROUP_NAME,
|
|
49503
|
+
[createCollectionScope]
|
|
49504
|
+
);
|
|
49505
|
+
var [RovingFocusProvider, useRovingFocusContext] = createRovingFocusGroupContext(GROUP_NAME);
|
|
49506
|
+
var RovingFocusGroup = React.forwardRef(
|
|
49507
|
+
(props, forwardedRef) => {
|
|
49508
|
+
return /* @__PURE__ */ jsx(Collection.Provider, { scope: props.__scopeRovingFocusGroup, children: /* @__PURE__ */ jsx(Collection.Slot, { scope: props.__scopeRovingFocusGroup, children: /* @__PURE__ */ jsx(RovingFocusGroupImpl, { ...props, ref: forwardedRef }) }) });
|
|
49509
|
+
}
|
|
49510
|
+
);
|
|
49511
|
+
RovingFocusGroup.displayName = GROUP_NAME;
|
|
49512
|
+
var RovingFocusGroupImpl = React.forwardRef((props, forwardedRef) => {
|
|
49513
|
+
const {
|
|
49514
|
+
__scopeRovingFocusGroup,
|
|
49515
|
+
orientation,
|
|
49516
|
+
loop = false,
|
|
49517
|
+
dir,
|
|
49518
|
+
currentTabStopId: currentTabStopIdProp,
|
|
49519
|
+
defaultCurrentTabStopId,
|
|
49520
|
+
onCurrentTabStopIdChange,
|
|
49521
|
+
onEntryFocus,
|
|
49522
|
+
preventScrollOnEntryFocus = false,
|
|
49523
|
+
...groupProps
|
|
49524
|
+
} = props;
|
|
49525
|
+
const ref = React.useRef(null);
|
|
49526
|
+
const composedRefs = useComposedRefs(forwardedRef, ref);
|
|
49527
|
+
const direction = useDirection(dir);
|
|
49528
|
+
const [currentTabStopId, setCurrentTabStopId] = useControllableState({
|
|
49529
|
+
prop: currentTabStopIdProp,
|
|
49530
|
+
defaultProp: defaultCurrentTabStopId ?? null,
|
|
49531
|
+
onChange: onCurrentTabStopIdChange,
|
|
49532
|
+
caller: GROUP_NAME
|
|
49533
|
+
});
|
|
49534
|
+
const [isTabbingBackOut, setIsTabbingBackOut] = React.useState(false);
|
|
49535
|
+
const handleEntryFocus = useCallbackRef(onEntryFocus);
|
|
49536
|
+
const getItems = useCollection(__scopeRovingFocusGroup);
|
|
49537
|
+
const isClickFocusRef = React.useRef(false);
|
|
49538
|
+
const [focusableItemsCount, setFocusableItemsCount] = React.useState(0);
|
|
49539
|
+
React.useEffect(() => {
|
|
49540
|
+
const node = ref.current;
|
|
49541
|
+
if (node) {
|
|
49542
|
+
node.addEventListener(ENTRY_FOCUS, handleEntryFocus);
|
|
49543
|
+
return () => node.removeEventListener(ENTRY_FOCUS, handleEntryFocus);
|
|
49544
|
+
}
|
|
49545
|
+
}, [handleEntryFocus]);
|
|
49546
|
+
return /* @__PURE__ */ jsx(
|
|
49547
|
+
RovingFocusProvider,
|
|
49548
|
+
{
|
|
49549
|
+
scope: __scopeRovingFocusGroup,
|
|
49550
|
+
orientation,
|
|
49551
|
+
dir: direction,
|
|
49552
|
+
loop,
|
|
49553
|
+
currentTabStopId,
|
|
49554
|
+
onItemFocus: React.useCallback(
|
|
49555
|
+
(tabStopId) => setCurrentTabStopId(tabStopId),
|
|
49556
|
+
[setCurrentTabStopId]
|
|
49557
|
+
),
|
|
49558
|
+
onItemShiftTab: React.useCallback(() => setIsTabbingBackOut(true), []),
|
|
49559
|
+
onFocusableItemAdd: React.useCallback(
|
|
49560
|
+
() => setFocusableItemsCount((prevCount) => prevCount + 1),
|
|
49561
|
+
[]
|
|
49562
|
+
),
|
|
49563
|
+
onFocusableItemRemove: React.useCallback(
|
|
49564
|
+
() => setFocusableItemsCount((prevCount) => prevCount - 1),
|
|
49565
|
+
[]
|
|
49566
|
+
),
|
|
49567
|
+
children: /* @__PURE__ */ jsx(
|
|
49568
|
+
Primitive.div,
|
|
49569
|
+
{
|
|
49570
|
+
tabIndex: isTabbingBackOut || focusableItemsCount === 0 ? -1 : 0,
|
|
49571
|
+
"data-orientation": orientation,
|
|
49572
|
+
...groupProps,
|
|
49573
|
+
ref: composedRefs,
|
|
49574
|
+
style: { outline: "none", ...props.style },
|
|
49575
|
+
onMouseDown: composeEventHandlers(props.onMouseDown, () => {
|
|
49576
|
+
isClickFocusRef.current = true;
|
|
49577
|
+
}),
|
|
49578
|
+
onFocus: composeEventHandlers(props.onFocus, (event) => {
|
|
49579
|
+
const isKeyboardFocus = !isClickFocusRef.current;
|
|
49580
|
+
if (event.target === event.currentTarget && isKeyboardFocus && !isTabbingBackOut) {
|
|
49581
|
+
const entryFocusEvent = new CustomEvent(ENTRY_FOCUS, EVENT_OPTIONS);
|
|
49582
|
+
event.currentTarget.dispatchEvent(entryFocusEvent);
|
|
49583
|
+
if (!entryFocusEvent.defaultPrevented) {
|
|
49584
|
+
const items = getItems().filter((item) => item.focusable);
|
|
49585
|
+
const activeItem = items.find((item) => item.active);
|
|
49586
|
+
const currentItem = items.find((item) => item.id === currentTabStopId);
|
|
49587
|
+
const candidateItems = [activeItem, currentItem, ...items].filter(
|
|
49588
|
+
Boolean
|
|
49589
|
+
);
|
|
49590
|
+
const candidateNodes = candidateItems.map((item) => item.ref.current);
|
|
49591
|
+
focusFirst(candidateNodes, preventScrollOnEntryFocus);
|
|
49592
|
+
}
|
|
49593
|
+
}
|
|
49594
|
+
isClickFocusRef.current = false;
|
|
49595
|
+
}),
|
|
49596
|
+
onBlur: composeEventHandlers(props.onBlur, () => setIsTabbingBackOut(false))
|
|
49597
|
+
}
|
|
49598
|
+
)
|
|
49599
|
+
}
|
|
49600
|
+
);
|
|
49601
|
+
});
|
|
49602
|
+
var ITEM_NAME = "RovingFocusGroupItem";
|
|
49603
|
+
var RovingFocusGroupItem = React.forwardRef(
|
|
49604
|
+
(props, forwardedRef) => {
|
|
49605
|
+
const {
|
|
49606
|
+
__scopeRovingFocusGroup,
|
|
49607
|
+
focusable = true,
|
|
49608
|
+
active = false,
|
|
49609
|
+
tabStopId,
|
|
49610
|
+
children,
|
|
49611
|
+
...itemProps
|
|
49612
|
+
} = props;
|
|
49613
|
+
const autoId = useId$1();
|
|
49614
|
+
const id = tabStopId || autoId;
|
|
49615
|
+
const context = useRovingFocusContext(ITEM_NAME, __scopeRovingFocusGroup);
|
|
49616
|
+
const isCurrentTabStop = context.currentTabStopId === id;
|
|
49617
|
+
const getItems = useCollection(__scopeRovingFocusGroup);
|
|
49618
|
+
const { onFocusableItemAdd, onFocusableItemRemove, currentTabStopId } = context;
|
|
49619
|
+
React.useEffect(() => {
|
|
49620
|
+
if (focusable) {
|
|
49621
|
+
onFocusableItemAdd();
|
|
49622
|
+
return () => onFocusableItemRemove();
|
|
49623
|
+
}
|
|
49624
|
+
}, [focusable, onFocusableItemAdd, onFocusableItemRemove]);
|
|
49625
|
+
return /* @__PURE__ */ jsx(
|
|
49626
|
+
Collection.ItemSlot,
|
|
49627
|
+
{
|
|
49628
|
+
scope: __scopeRovingFocusGroup,
|
|
49629
|
+
id,
|
|
49630
|
+
focusable,
|
|
49631
|
+
active,
|
|
49632
|
+
children: /* @__PURE__ */ jsx(
|
|
49633
|
+
Primitive.span,
|
|
49634
|
+
{
|
|
49635
|
+
tabIndex: isCurrentTabStop ? 0 : -1,
|
|
49636
|
+
"data-orientation": context.orientation,
|
|
49637
|
+
...itemProps,
|
|
49638
|
+
ref: forwardedRef,
|
|
49639
|
+
onMouseDown: composeEventHandlers(props.onMouseDown, (event) => {
|
|
49640
|
+
if (!focusable) event.preventDefault();
|
|
49641
|
+
else context.onItemFocus(id);
|
|
49642
|
+
}),
|
|
49643
|
+
onFocus: composeEventHandlers(props.onFocus, () => context.onItemFocus(id)),
|
|
49644
|
+
onKeyDown: composeEventHandlers(props.onKeyDown, (event) => {
|
|
49645
|
+
if (event.key === "Tab" && event.shiftKey) {
|
|
49646
|
+
context.onItemShiftTab();
|
|
49647
|
+
return;
|
|
49648
|
+
}
|
|
49649
|
+
if (event.target !== event.currentTarget) return;
|
|
49650
|
+
const focusIntent = getFocusIntent(event, context.orientation, context.dir);
|
|
49651
|
+
if (focusIntent !== void 0) {
|
|
49652
|
+
if (event.metaKey || event.ctrlKey || event.altKey || event.shiftKey) return;
|
|
49653
|
+
event.preventDefault();
|
|
49654
|
+
const items = getItems().filter((item) => item.focusable);
|
|
49655
|
+
let candidateNodes = items.map((item) => item.ref.current);
|
|
49656
|
+
if (focusIntent === "last") candidateNodes.reverse();
|
|
49657
|
+
else if (focusIntent === "prev" || focusIntent === "next") {
|
|
49658
|
+
if (focusIntent === "prev") candidateNodes.reverse();
|
|
49659
|
+
const currentIndex = candidateNodes.indexOf(event.currentTarget);
|
|
49660
|
+
candidateNodes = context.loop ? wrapArray(candidateNodes, currentIndex + 1) : candidateNodes.slice(currentIndex + 1);
|
|
49661
|
+
}
|
|
49662
|
+
setTimeout(() => focusFirst(candidateNodes));
|
|
49663
|
+
}
|
|
49664
|
+
}),
|
|
49665
|
+
children: typeof children === "function" ? children({ isCurrentTabStop, hasTabStop: currentTabStopId != null }) : children
|
|
49666
|
+
}
|
|
49667
|
+
)
|
|
49668
|
+
}
|
|
49669
|
+
);
|
|
49670
|
+
}
|
|
49671
|
+
);
|
|
49672
|
+
RovingFocusGroupItem.displayName = ITEM_NAME;
|
|
49673
|
+
var MAP_KEY_TO_FOCUS_INTENT = {
|
|
49674
|
+
ArrowLeft: "prev",
|
|
49675
|
+
ArrowUp: "prev",
|
|
49676
|
+
ArrowRight: "next",
|
|
49677
|
+
ArrowDown: "next",
|
|
49678
|
+
PageUp: "first",
|
|
49679
|
+
Home: "first",
|
|
49680
|
+
PageDown: "last",
|
|
49681
|
+
End: "last"
|
|
49682
|
+
};
|
|
49683
|
+
function getDirectionAwareKey(key, dir) {
|
|
49684
|
+
if (dir !== "rtl") return key;
|
|
49685
|
+
return key === "ArrowLeft" ? "ArrowRight" : key === "ArrowRight" ? "ArrowLeft" : key;
|
|
49686
|
+
}
|
|
49687
|
+
function getFocusIntent(event, orientation, dir) {
|
|
49688
|
+
const key = getDirectionAwareKey(event.key, dir);
|
|
49689
|
+
if (orientation === "vertical" && ["ArrowLeft", "ArrowRight"].includes(key)) return void 0;
|
|
49690
|
+
if (orientation === "horizontal" && ["ArrowUp", "ArrowDown"].includes(key)) return void 0;
|
|
49691
|
+
return MAP_KEY_TO_FOCUS_INTENT[key];
|
|
49692
|
+
}
|
|
49693
|
+
function focusFirst(candidates, preventScroll = false) {
|
|
49694
|
+
const PREVIOUSLY_FOCUSED_ELEMENT = document.activeElement;
|
|
49695
|
+
for (const candidate of candidates) {
|
|
49696
|
+
if (candidate === PREVIOUSLY_FOCUSED_ELEMENT) return;
|
|
49697
|
+
candidate.focus({ preventScroll });
|
|
49698
|
+
if (document.activeElement !== PREVIOUSLY_FOCUSED_ELEMENT) return;
|
|
49699
|
+
}
|
|
49700
|
+
}
|
|
49701
|
+
function wrapArray(array, startIndex) {
|
|
49702
|
+
return array.map((_, index) => array[(startIndex + index) % array.length]);
|
|
49703
|
+
}
|
|
49704
|
+
var Root = RovingFocusGroup;
|
|
49705
|
+
var Item = RovingFocusGroupItem;
|
|
49706
|
+
var TABS_NAME = "Tabs";
|
|
49707
|
+
var [createTabsContext, createTabsScope] = createContextScope(TABS_NAME, [
|
|
49708
|
+
createRovingFocusGroupScope
|
|
49709
|
+
]);
|
|
49710
|
+
var useRovingFocusGroupScope = createRovingFocusGroupScope();
|
|
49711
|
+
var [TabsProvider, useTabsContext] = createTabsContext(TABS_NAME);
|
|
49712
|
+
var Tabs$1 = React.forwardRef(
|
|
49713
|
+
(props, forwardedRef) => {
|
|
49714
|
+
const {
|
|
49715
|
+
__scopeTabs,
|
|
49716
|
+
value: valueProp,
|
|
49717
|
+
onValueChange,
|
|
49718
|
+
defaultValue,
|
|
49719
|
+
orientation = "horizontal",
|
|
49720
|
+
dir,
|
|
49721
|
+
activationMode = "automatic",
|
|
49722
|
+
...tabsProps
|
|
49723
|
+
} = props;
|
|
49724
|
+
const direction = useDirection(dir);
|
|
49725
|
+
const [value, setValue] = useControllableState({
|
|
49726
|
+
prop: valueProp,
|
|
49727
|
+
onChange: onValueChange,
|
|
49728
|
+
defaultProp: defaultValue ?? "",
|
|
49729
|
+
caller: TABS_NAME
|
|
49730
|
+
});
|
|
49731
|
+
return /* @__PURE__ */ jsx(
|
|
49732
|
+
TabsProvider,
|
|
49733
|
+
{
|
|
49734
|
+
scope: __scopeTabs,
|
|
49735
|
+
baseId: useId$1(),
|
|
49736
|
+
value,
|
|
49737
|
+
onValueChange: setValue,
|
|
49738
|
+
orientation,
|
|
49739
|
+
dir: direction,
|
|
49740
|
+
activationMode,
|
|
49741
|
+
children: /* @__PURE__ */ jsx(
|
|
49742
|
+
Primitive.div,
|
|
49743
|
+
{
|
|
49744
|
+
dir: direction,
|
|
49745
|
+
"data-orientation": orientation,
|
|
49746
|
+
...tabsProps,
|
|
49747
|
+
ref: forwardedRef
|
|
49748
|
+
}
|
|
49749
|
+
)
|
|
49750
|
+
}
|
|
49751
|
+
);
|
|
49752
|
+
}
|
|
49753
|
+
);
|
|
49754
|
+
Tabs$1.displayName = TABS_NAME;
|
|
49755
|
+
var TAB_LIST_NAME = "TabsList";
|
|
49756
|
+
var TabsList$1 = React.forwardRef(
|
|
49757
|
+
(props, forwardedRef) => {
|
|
49758
|
+
const { __scopeTabs, loop = true, ...listProps } = props;
|
|
49759
|
+
const context = useTabsContext(TAB_LIST_NAME, __scopeTabs);
|
|
49760
|
+
const rovingFocusGroupScope = useRovingFocusGroupScope(__scopeTabs);
|
|
49761
|
+
return /* @__PURE__ */ jsx(
|
|
49762
|
+
Root,
|
|
49763
|
+
{
|
|
49764
|
+
asChild: true,
|
|
49765
|
+
...rovingFocusGroupScope,
|
|
49766
|
+
orientation: context.orientation,
|
|
49767
|
+
dir: context.dir,
|
|
49768
|
+
loop,
|
|
49769
|
+
children: /* @__PURE__ */ jsx(
|
|
49770
|
+
Primitive.div,
|
|
49771
|
+
{
|
|
49772
|
+
role: "tablist",
|
|
49773
|
+
"aria-orientation": context.orientation,
|
|
49774
|
+
...listProps,
|
|
49775
|
+
ref: forwardedRef
|
|
49776
|
+
}
|
|
49777
|
+
)
|
|
49778
|
+
}
|
|
49779
|
+
);
|
|
49780
|
+
}
|
|
49781
|
+
);
|
|
49782
|
+
TabsList$1.displayName = TAB_LIST_NAME;
|
|
49783
|
+
var TRIGGER_NAME = "TabsTrigger";
|
|
49784
|
+
var TabsTrigger$1 = React.forwardRef(
|
|
49785
|
+
(props, forwardedRef) => {
|
|
49786
|
+
const { __scopeTabs, value, disabled = false, ...triggerProps } = props;
|
|
49787
|
+
const context = useTabsContext(TRIGGER_NAME, __scopeTabs);
|
|
49788
|
+
const rovingFocusGroupScope = useRovingFocusGroupScope(__scopeTabs);
|
|
49789
|
+
const triggerId = makeTriggerId(context.baseId, value);
|
|
49790
|
+
const contentId = makeContentId(context.baseId, value);
|
|
49791
|
+
const isSelected = value === context.value;
|
|
49792
|
+
return /* @__PURE__ */ jsx(
|
|
49793
|
+
Item,
|
|
49794
|
+
{
|
|
49795
|
+
asChild: true,
|
|
49796
|
+
...rovingFocusGroupScope,
|
|
49797
|
+
focusable: !disabled,
|
|
49798
|
+
active: isSelected,
|
|
49799
|
+
children: /* @__PURE__ */ jsx(
|
|
49800
|
+
Primitive.button,
|
|
49801
|
+
{
|
|
49802
|
+
type: "button",
|
|
49803
|
+
role: "tab",
|
|
49804
|
+
"aria-selected": isSelected,
|
|
49805
|
+
"aria-controls": contentId,
|
|
49806
|
+
"data-state": isSelected ? "active" : "inactive",
|
|
49807
|
+
"data-disabled": disabled ? "" : void 0,
|
|
49808
|
+
disabled,
|
|
49809
|
+
id: triggerId,
|
|
49810
|
+
...triggerProps,
|
|
49811
|
+
ref: forwardedRef,
|
|
49812
|
+
onMouseDown: composeEventHandlers(props.onMouseDown, (event) => {
|
|
49813
|
+
if (!disabled && event.button === 0 && event.ctrlKey === false) {
|
|
49814
|
+
context.onValueChange(value);
|
|
49815
|
+
} else {
|
|
49816
|
+
event.preventDefault();
|
|
49817
|
+
}
|
|
49818
|
+
}),
|
|
49819
|
+
onKeyDown: composeEventHandlers(props.onKeyDown, (event) => {
|
|
49820
|
+
if ([" ", "Enter"].includes(event.key)) context.onValueChange(value);
|
|
49821
|
+
}),
|
|
49822
|
+
onFocus: composeEventHandlers(props.onFocus, () => {
|
|
49823
|
+
const isAutomaticActivation = context.activationMode !== "manual";
|
|
49824
|
+
if (!isSelected && !disabled && isAutomaticActivation) {
|
|
49825
|
+
context.onValueChange(value);
|
|
49826
|
+
}
|
|
49827
|
+
})
|
|
49828
|
+
}
|
|
49829
|
+
)
|
|
49830
|
+
}
|
|
49831
|
+
);
|
|
49832
|
+
}
|
|
49833
|
+
);
|
|
49834
|
+
TabsTrigger$1.displayName = TRIGGER_NAME;
|
|
49835
|
+
var CONTENT_NAME = "TabsContent";
|
|
49836
|
+
var TabsContent$1 = React.forwardRef(
|
|
49837
|
+
(props, forwardedRef) => {
|
|
49838
|
+
const { __scopeTabs, value, forceMount, children, ...contentProps } = props;
|
|
49839
|
+
const context = useTabsContext(CONTENT_NAME, __scopeTabs);
|
|
49840
|
+
const triggerId = makeTriggerId(context.baseId, value);
|
|
49841
|
+
const contentId = makeContentId(context.baseId, value);
|
|
49842
|
+
const isSelected = value === context.value;
|
|
49843
|
+
const isMountAnimationPreventedRef = React.useRef(isSelected);
|
|
49844
|
+
React.useEffect(() => {
|
|
49845
|
+
const rAF = requestAnimationFrame(() => isMountAnimationPreventedRef.current = false);
|
|
49846
|
+
return () => cancelAnimationFrame(rAF);
|
|
49847
|
+
}, []);
|
|
49848
|
+
return /* @__PURE__ */ jsx(Presence, { present: forceMount || isSelected, children: ({ present }) => /* @__PURE__ */ jsx(
|
|
49849
|
+
Primitive.div,
|
|
49850
|
+
{
|
|
49851
|
+
"data-state": isSelected ? "active" : "inactive",
|
|
49852
|
+
"data-orientation": context.orientation,
|
|
49853
|
+
role: "tabpanel",
|
|
49854
|
+
"aria-labelledby": triggerId,
|
|
49855
|
+
hidden: !present,
|
|
49856
|
+
id: contentId,
|
|
49857
|
+
tabIndex: 0,
|
|
49858
|
+
...contentProps,
|
|
49859
|
+
ref: forwardedRef,
|
|
49860
|
+
style: {
|
|
49861
|
+
...props.style,
|
|
49862
|
+
animationDuration: isMountAnimationPreventedRef.current ? "0s" : void 0
|
|
49863
|
+
},
|
|
49864
|
+
children: present && children
|
|
49865
|
+
}
|
|
49866
|
+
) });
|
|
49867
|
+
}
|
|
49868
|
+
);
|
|
49869
|
+
TabsContent$1.displayName = CONTENT_NAME;
|
|
49870
|
+
function makeTriggerId(baseId, value) {
|
|
49871
|
+
return `${baseId}-trigger-${value}`;
|
|
49872
|
+
}
|
|
49873
|
+
function makeContentId(baseId, value) {
|
|
49874
|
+
return `${baseId}-content-${value}`;
|
|
49875
|
+
}
|
|
49876
|
+
var Root2 = Tabs$1;
|
|
49877
|
+
var List = TabsList$1;
|
|
49878
|
+
var Trigger = TabsTrigger$1;
|
|
49879
|
+
var Content = TabsContent$1;
|
|
46478
49880
|
const Tabs = Root2;
|
|
46479
49881
|
const TabsList = React.forwardRef(({ className, ...props }, ref) => jsx(List, { ref, className: cn("flex items-center justify-center rounded-xl bg-slate-50 p-1 shadow-[inset_0px_0px_2px_rgba(255,255,255,0.50)]", className), ...props }));
|
|
46480
49882
|
TabsList.displayName = List.displayName;
|
|
@@ -46702,4 +50104,4 @@ export {
|
|
|
46702
50104
|
DocumentModelEditor,
|
|
46703
50105
|
documentModelEditorModule
|
|
46704
50106
|
};
|
|
46705
|
-
//# sourceMappingURL=index-
|
|
50107
|
+
//# sourceMappingURL=index-CSdlimsY.js.map
|