@maily-to/core 0.2.8 → 0.3.1
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/LICENSE +21 -0
- package/dist/extensions/index.cjs +2547 -105
- package/dist/extensions/index.cjs.map +1 -1
- package/dist/extensions/index.d.cts +12 -6
- package/dist/extensions/index.d.ts +12 -6
- package/dist/extensions/index.mjs +2546 -104
- package/dist/extensions/index.mjs.map +1 -1
- package/dist/index.cjs +2547 -105
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +40 -0
- package/dist/index.css.map +1 -1
- package/dist/index.mjs +2546 -104
- package/dist/index.mjs.map +1 -1
- package/package.json +11 -11
|
@@ -797,8 +797,2511 @@ var React = __toESM(require("react"), 1);
|
|
|
797
797
|
|
|
798
798
|
// src/editor/utils/classname.ts
|
|
799
799
|
var import_clsx = require("clsx");
|
|
800
|
-
|
|
801
|
-
|
|
800
|
+
|
|
801
|
+
// ../../node_modules/.pnpm/tailwind-merge@2.5.4/node_modules/tailwind-merge/dist/bundle-mjs.mjs
|
|
802
|
+
var CLASS_PART_SEPARATOR = "-";
|
|
803
|
+
var createClassGroupUtils = (config) => {
|
|
804
|
+
const classMap = createClassMap(config);
|
|
805
|
+
const {
|
|
806
|
+
conflictingClassGroups,
|
|
807
|
+
conflictingClassGroupModifiers
|
|
808
|
+
} = config;
|
|
809
|
+
const getClassGroupId = (className) => {
|
|
810
|
+
const classParts = className.split(CLASS_PART_SEPARATOR);
|
|
811
|
+
if (classParts[0] === "" && classParts.length !== 1) {
|
|
812
|
+
classParts.shift();
|
|
813
|
+
}
|
|
814
|
+
return getGroupRecursive(classParts, classMap) || getGroupIdForArbitraryProperty(className);
|
|
815
|
+
};
|
|
816
|
+
const getConflictingClassGroupIds = (classGroupId, hasPostfixModifier) => {
|
|
817
|
+
const conflicts = conflictingClassGroups[classGroupId] || [];
|
|
818
|
+
if (hasPostfixModifier && conflictingClassGroupModifiers[classGroupId]) {
|
|
819
|
+
return [...conflicts, ...conflictingClassGroupModifiers[classGroupId]];
|
|
820
|
+
}
|
|
821
|
+
return conflicts;
|
|
822
|
+
};
|
|
823
|
+
return {
|
|
824
|
+
getClassGroupId,
|
|
825
|
+
getConflictingClassGroupIds
|
|
826
|
+
};
|
|
827
|
+
};
|
|
828
|
+
var getGroupRecursive = (classParts, classPartObject) => {
|
|
829
|
+
var _a;
|
|
830
|
+
if (classParts.length === 0) {
|
|
831
|
+
return classPartObject.classGroupId;
|
|
832
|
+
}
|
|
833
|
+
const currentClassPart = classParts[0];
|
|
834
|
+
const nextClassPartObject = classPartObject.nextPart.get(currentClassPart);
|
|
835
|
+
const classGroupFromNextClassPart = nextClassPartObject ? getGroupRecursive(classParts.slice(1), nextClassPartObject) : void 0;
|
|
836
|
+
if (classGroupFromNextClassPart) {
|
|
837
|
+
return classGroupFromNextClassPart;
|
|
838
|
+
}
|
|
839
|
+
if (classPartObject.validators.length === 0) {
|
|
840
|
+
return void 0;
|
|
841
|
+
}
|
|
842
|
+
const classRest = classParts.join(CLASS_PART_SEPARATOR);
|
|
843
|
+
return (_a = classPartObject.validators.find(({
|
|
844
|
+
validator
|
|
845
|
+
}) => validator(classRest))) == null ? void 0 : _a.classGroupId;
|
|
846
|
+
};
|
|
847
|
+
var arbitraryPropertyRegex = /^\[(.+)\]$/;
|
|
848
|
+
var getGroupIdForArbitraryProperty = (className) => {
|
|
849
|
+
if (arbitraryPropertyRegex.test(className)) {
|
|
850
|
+
const arbitraryPropertyClassName = arbitraryPropertyRegex.exec(className)[1];
|
|
851
|
+
const property = arbitraryPropertyClassName == null ? void 0 : arbitraryPropertyClassName.substring(0, arbitraryPropertyClassName.indexOf(":"));
|
|
852
|
+
if (property) {
|
|
853
|
+
return "arbitrary.." + property;
|
|
854
|
+
}
|
|
855
|
+
}
|
|
856
|
+
};
|
|
857
|
+
var createClassMap = (config) => {
|
|
858
|
+
const {
|
|
859
|
+
theme,
|
|
860
|
+
prefix
|
|
861
|
+
} = config;
|
|
862
|
+
const classMap = {
|
|
863
|
+
nextPart: /* @__PURE__ */ new Map(),
|
|
864
|
+
validators: []
|
|
865
|
+
};
|
|
866
|
+
const prefixedClassGroupEntries = getPrefixedClassGroupEntries(Object.entries(config.classGroups), prefix);
|
|
867
|
+
prefixedClassGroupEntries.forEach(([classGroupId, classGroup]) => {
|
|
868
|
+
processClassesRecursively(classGroup, classMap, classGroupId, theme);
|
|
869
|
+
});
|
|
870
|
+
return classMap;
|
|
871
|
+
};
|
|
872
|
+
var processClassesRecursively = (classGroup, classPartObject, classGroupId, theme) => {
|
|
873
|
+
classGroup.forEach((classDefinition) => {
|
|
874
|
+
if (typeof classDefinition === "string") {
|
|
875
|
+
const classPartObjectToEdit = classDefinition === "" ? classPartObject : getPart(classPartObject, classDefinition);
|
|
876
|
+
classPartObjectToEdit.classGroupId = classGroupId;
|
|
877
|
+
return;
|
|
878
|
+
}
|
|
879
|
+
if (typeof classDefinition === "function") {
|
|
880
|
+
if (isThemeGetter(classDefinition)) {
|
|
881
|
+
processClassesRecursively(classDefinition(theme), classPartObject, classGroupId, theme);
|
|
882
|
+
return;
|
|
883
|
+
}
|
|
884
|
+
classPartObject.validators.push({
|
|
885
|
+
validator: classDefinition,
|
|
886
|
+
classGroupId
|
|
887
|
+
});
|
|
888
|
+
return;
|
|
889
|
+
}
|
|
890
|
+
Object.entries(classDefinition).forEach(([key, classGroup2]) => {
|
|
891
|
+
processClassesRecursively(classGroup2, getPart(classPartObject, key), classGroupId, theme);
|
|
892
|
+
});
|
|
893
|
+
});
|
|
894
|
+
};
|
|
895
|
+
var getPart = (classPartObject, path) => {
|
|
896
|
+
let currentClassPartObject = classPartObject;
|
|
897
|
+
path.split(CLASS_PART_SEPARATOR).forEach((pathPart) => {
|
|
898
|
+
if (!currentClassPartObject.nextPart.has(pathPart)) {
|
|
899
|
+
currentClassPartObject.nextPart.set(pathPart, {
|
|
900
|
+
nextPart: /* @__PURE__ */ new Map(),
|
|
901
|
+
validators: []
|
|
902
|
+
});
|
|
903
|
+
}
|
|
904
|
+
currentClassPartObject = currentClassPartObject.nextPart.get(pathPart);
|
|
905
|
+
});
|
|
906
|
+
return currentClassPartObject;
|
|
907
|
+
};
|
|
908
|
+
var isThemeGetter = (func) => func.isThemeGetter;
|
|
909
|
+
var getPrefixedClassGroupEntries = (classGroupEntries, prefix) => {
|
|
910
|
+
if (!prefix) {
|
|
911
|
+
return classGroupEntries;
|
|
912
|
+
}
|
|
913
|
+
return classGroupEntries.map(([classGroupId, classGroup]) => {
|
|
914
|
+
const prefixedClassGroup = classGroup.map((classDefinition) => {
|
|
915
|
+
if (typeof classDefinition === "string") {
|
|
916
|
+
return prefix + classDefinition;
|
|
917
|
+
}
|
|
918
|
+
if (typeof classDefinition === "object") {
|
|
919
|
+
return Object.fromEntries(Object.entries(classDefinition).map(([key, value]) => [prefix + key, value]));
|
|
920
|
+
}
|
|
921
|
+
return classDefinition;
|
|
922
|
+
});
|
|
923
|
+
return [classGroupId, prefixedClassGroup];
|
|
924
|
+
});
|
|
925
|
+
};
|
|
926
|
+
var createLruCache = (maxCacheSize) => {
|
|
927
|
+
if (maxCacheSize < 1) {
|
|
928
|
+
return {
|
|
929
|
+
get: () => void 0,
|
|
930
|
+
set: () => {
|
|
931
|
+
}
|
|
932
|
+
};
|
|
933
|
+
}
|
|
934
|
+
let cacheSize = 0;
|
|
935
|
+
let cache = /* @__PURE__ */ new Map();
|
|
936
|
+
let previousCache = /* @__PURE__ */ new Map();
|
|
937
|
+
const update = (key, value) => {
|
|
938
|
+
cache.set(key, value);
|
|
939
|
+
cacheSize++;
|
|
940
|
+
if (cacheSize > maxCacheSize) {
|
|
941
|
+
cacheSize = 0;
|
|
942
|
+
previousCache = cache;
|
|
943
|
+
cache = /* @__PURE__ */ new Map();
|
|
944
|
+
}
|
|
945
|
+
};
|
|
946
|
+
return {
|
|
947
|
+
get(key) {
|
|
948
|
+
let value = cache.get(key);
|
|
949
|
+
if (value !== void 0) {
|
|
950
|
+
return value;
|
|
951
|
+
}
|
|
952
|
+
if ((value = previousCache.get(key)) !== void 0) {
|
|
953
|
+
update(key, value);
|
|
954
|
+
return value;
|
|
955
|
+
}
|
|
956
|
+
},
|
|
957
|
+
set(key, value) {
|
|
958
|
+
if (cache.has(key)) {
|
|
959
|
+
cache.set(key, value);
|
|
960
|
+
} else {
|
|
961
|
+
update(key, value);
|
|
962
|
+
}
|
|
963
|
+
}
|
|
964
|
+
};
|
|
965
|
+
};
|
|
966
|
+
var IMPORTANT_MODIFIER = "!";
|
|
967
|
+
var createParseClassName = (config) => {
|
|
968
|
+
const {
|
|
969
|
+
separator,
|
|
970
|
+
experimentalParseClassName
|
|
971
|
+
} = config;
|
|
972
|
+
const isSeparatorSingleCharacter = separator.length === 1;
|
|
973
|
+
const firstSeparatorCharacter = separator[0];
|
|
974
|
+
const separatorLength = separator.length;
|
|
975
|
+
const parseClassName = (className) => {
|
|
976
|
+
const modifiers = [];
|
|
977
|
+
let bracketDepth = 0;
|
|
978
|
+
let modifierStart = 0;
|
|
979
|
+
let postfixModifierPosition;
|
|
980
|
+
for (let index = 0; index < className.length; index++) {
|
|
981
|
+
let currentCharacter = className[index];
|
|
982
|
+
if (bracketDepth === 0) {
|
|
983
|
+
if (currentCharacter === firstSeparatorCharacter && (isSeparatorSingleCharacter || className.slice(index, index + separatorLength) === separator)) {
|
|
984
|
+
modifiers.push(className.slice(modifierStart, index));
|
|
985
|
+
modifierStart = index + separatorLength;
|
|
986
|
+
continue;
|
|
987
|
+
}
|
|
988
|
+
if (currentCharacter === "/") {
|
|
989
|
+
postfixModifierPosition = index;
|
|
990
|
+
continue;
|
|
991
|
+
}
|
|
992
|
+
}
|
|
993
|
+
if (currentCharacter === "[") {
|
|
994
|
+
bracketDepth++;
|
|
995
|
+
} else if (currentCharacter === "]") {
|
|
996
|
+
bracketDepth--;
|
|
997
|
+
}
|
|
998
|
+
}
|
|
999
|
+
const baseClassNameWithImportantModifier = modifiers.length === 0 ? className : className.substring(modifierStart);
|
|
1000
|
+
const hasImportantModifier = baseClassNameWithImportantModifier.startsWith(IMPORTANT_MODIFIER);
|
|
1001
|
+
const baseClassName = hasImportantModifier ? baseClassNameWithImportantModifier.substring(1) : baseClassNameWithImportantModifier;
|
|
1002
|
+
const maybePostfixModifierPosition = postfixModifierPosition && postfixModifierPosition > modifierStart ? postfixModifierPosition - modifierStart : void 0;
|
|
1003
|
+
return {
|
|
1004
|
+
modifiers,
|
|
1005
|
+
hasImportantModifier,
|
|
1006
|
+
baseClassName,
|
|
1007
|
+
maybePostfixModifierPosition
|
|
1008
|
+
};
|
|
1009
|
+
};
|
|
1010
|
+
if (experimentalParseClassName) {
|
|
1011
|
+
return (className) => experimentalParseClassName({
|
|
1012
|
+
className,
|
|
1013
|
+
parseClassName
|
|
1014
|
+
});
|
|
1015
|
+
}
|
|
1016
|
+
return parseClassName;
|
|
1017
|
+
};
|
|
1018
|
+
var sortModifiers = (modifiers) => {
|
|
1019
|
+
if (modifiers.length <= 1) {
|
|
1020
|
+
return modifiers;
|
|
1021
|
+
}
|
|
1022
|
+
const sortedModifiers = [];
|
|
1023
|
+
let unsortedModifiers = [];
|
|
1024
|
+
modifiers.forEach((modifier) => {
|
|
1025
|
+
const isArbitraryVariant = modifier[0] === "[";
|
|
1026
|
+
if (isArbitraryVariant) {
|
|
1027
|
+
sortedModifiers.push(...unsortedModifiers.sort(), modifier);
|
|
1028
|
+
unsortedModifiers = [];
|
|
1029
|
+
} else {
|
|
1030
|
+
unsortedModifiers.push(modifier);
|
|
1031
|
+
}
|
|
1032
|
+
});
|
|
1033
|
+
sortedModifiers.push(...unsortedModifiers.sort());
|
|
1034
|
+
return sortedModifiers;
|
|
1035
|
+
};
|
|
1036
|
+
var createConfigUtils = (config) => __spreadValues({
|
|
1037
|
+
cache: createLruCache(config.cacheSize),
|
|
1038
|
+
parseClassName: createParseClassName(config)
|
|
1039
|
+
}, createClassGroupUtils(config));
|
|
1040
|
+
var SPLIT_CLASSES_REGEX = /\s+/;
|
|
1041
|
+
var mergeClassList = (classList, configUtils) => {
|
|
1042
|
+
const {
|
|
1043
|
+
parseClassName,
|
|
1044
|
+
getClassGroupId,
|
|
1045
|
+
getConflictingClassGroupIds
|
|
1046
|
+
} = configUtils;
|
|
1047
|
+
const classGroupsInConflict = [];
|
|
1048
|
+
const classNames = classList.trim().split(SPLIT_CLASSES_REGEX);
|
|
1049
|
+
let result = "";
|
|
1050
|
+
for (let index = classNames.length - 1; index >= 0; index -= 1) {
|
|
1051
|
+
const originalClassName = classNames[index];
|
|
1052
|
+
const {
|
|
1053
|
+
modifiers,
|
|
1054
|
+
hasImportantModifier,
|
|
1055
|
+
baseClassName,
|
|
1056
|
+
maybePostfixModifierPosition
|
|
1057
|
+
} = parseClassName(originalClassName);
|
|
1058
|
+
let hasPostfixModifier = Boolean(maybePostfixModifierPosition);
|
|
1059
|
+
let classGroupId = getClassGroupId(hasPostfixModifier ? baseClassName.substring(0, maybePostfixModifierPosition) : baseClassName);
|
|
1060
|
+
if (!classGroupId) {
|
|
1061
|
+
if (!hasPostfixModifier) {
|
|
1062
|
+
result = originalClassName + (result.length > 0 ? " " + result : result);
|
|
1063
|
+
continue;
|
|
1064
|
+
}
|
|
1065
|
+
classGroupId = getClassGroupId(baseClassName);
|
|
1066
|
+
if (!classGroupId) {
|
|
1067
|
+
result = originalClassName + (result.length > 0 ? " " + result : result);
|
|
1068
|
+
continue;
|
|
1069
|
+
}
|
|
1070
|
+
hasPostfixModifier = false;
|
|
1071
|
+
}
|
|
1072
|
+
const variantModifier = sortModifiers(modifiers).join(":");
|
|
1073
|
+
const modifierId = hasImportantModifier ? variantModifier + IMPORTANT_MODIFIER : variantModifier;
|
|
1074
|
+
const classId = modifierId + classGroupId;
|
|
1075
|
+
if (classGroupsInConflict.includes(classId)) {
|
|
1076
|
+
continue;
|
|
1077
|
+
}
|
|
1078
|
+
classGroupsInConflict.push(classId);
|
|
1079
|
+
const conflictGroups = getConflictingClassGroupIds(classGroupId, hasPostfixModifier);
|
|
1080
|
+
for (let i = 0; i < conflictGroups.length; ++i) {
|
|
1081
|
+
const group = conflictGroups[i];
|
|
1082
|
+
classGroupsInConflict.push(modifierId + group);
|
|
1083
|
+
}
|
|
1084
|
+
result = originalClassName + (result.length > 0 ? " " + result : result);
|
|
1085
|
+
}
|
|
1086
|
+
return result;
|
|
1087
|
+
};
|
|
1088
|
+
function twJoin() {
|
|
1089
|
+
let index = 0;
|
|
1090
|
+
let argument;
|
|
1091
|
+
let resolvedValue;
|
|
1092
|
+
let string = "";
|
|
1093
|
+
while (index < arguments.length) {
|
|
1094
|
+
if (argument = arguments[index++]) {
|
|
1095
|
+
if (resolvedValue = toValue(argument)) {
|
|
1096
|
+
string && (string += " ");
|
|
1097
|
+
string += resolvedValue;
|
|
1098
|
+
}
|
|
1099
|
+
}
|
|
1100
|
+
}
|
|
1101
|
+
return string;
|
|
1102
|
+
}
|
|
1103
|
+
var toValue = (mix) => {
|
|
1104
|
+
if (typeof mix === "string") {
|
|
1105
|
+
return mix;
|
|
1106
|
+
}
|
|
1107
|
+
let resolvedValue;
|
|
1108
|
+
let string = "";
|
|
1109
|
+
for (let k = 0; k < mix.length; k++) {
|
|
1110
|
+
if (mix[k]) {
|
|
1111
|
+
if (resolvedValue = toValue(mix[k])) {
|
|
1112
|
+
string && (string += " ");
|
|
1113
|
+
string += resolvedValue;
|
|
1114
|
+
}
|
|
1115
|
+
}
|
|
1116
|
+
}
|
|
1117
|
+
return string;
|
|
1118
|
+
};
|
|
1119
|
+
function createTailwindMerge(createConfigFirst, ...createConfigRest) {
|
|
1120
|
+
let configUtils;
|
|
1121
|
+
let cacheGet;
|
|
1122
|
+
let cacheSet;
|
|
1123
|
+
let functionToCall = initTailwindMerge;
|
|
1124
|
+
function initTailwindMerge(classList) {
|
|
1125
|
+
const config = createConfigRest.reduce((previousConfig, createConfigCurrent) => createConfigCurrent(previousConfig), createConfigFirst());
|
|
1126
|
+
configUtils = createConfigUtils(config);
|
|
1127
|
+
cacheGet = configUtils.cache.get;
|
|
1128
|
+
cacheSet = configUtils.cache.set;
|
|
1129
|
+
functionToCall = tailwindMerge;
|
|
1130
|
+
return tailwindMerge(classList);
|
|
1131
|
+
}
|
|
1132
|
+
function tailwindMerge(classList) {
|
|
1133
|
+
const cachedResult = cacheGet(classList);
|
|
1134
|
+
if (cachedResult) {
|
|
1135
|
+
return cachedResult;
|
|
1136
|
+
}
|
|
1137
|
+
const result = mergeClassList(classList, configUtils);
|
|
1138
|
+
cacheSet(classList, result);
|
|
1139
|
+
return result;
|
|
1140
|
+
}
|
|
1141
|
+
return function callTailwindMerge() {
|
|
1142
|
+
return functionToCall(twJoin.apply(null, arguments));
|
|
1143
|
+
};
|
|
1144
|
+
}
|
|
1145
|
+
var fromTheme = (key) => {
|
|
1146
|
+
const themeGetter = (theme) => theme[key] || [];
|
|
1147
|
+
themeGetter.isThemeGetter = true;
|
|
1148
|
+
return themeGetter;
|
|
1149
|
+
};
|
|
1150
|
+
var arbitraryValueRegex = /^\[(?:([a-z-]+):)?(.+)\]$/i;
|
|
1151
|
+
var fractionRegex = /^\d+\/\d+$/;
|
|
1152
|
+
var stringLengths = /* @__PURE__ */ new Set(["px", "full", "screen"]);
|
|
1153
|
+
var tshirtUnitRegex = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/;
|
|
1154
|
+
var lengthUnitRegex = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/;
|
|
1155
|
+
var colorFunctionRegex = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/;
|
|
1156
|
+
var shadowRegex = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;
|
|
1157
|
+
var imageRegex = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;
|
|
1158
|
+
var isLength = (value) => isNumber(value) || stringLengths.has(value) || fractionRegex.test(value);
|
|
1159
|
+
var isArbitraryLength = (value) => getIsArbitraryValue(value, "length", isLengthOnly);
|
|
1160
|
+
var isNumber = (value) => Boolean(value) && !Number.isNaN(Number(value));
|
|
1161
|
+
var isArbitraryNumber = (value) => getIsArbitraryValue(value, "number", isNumber);
|
|
1162
|
+
var isInteger = (value) => Boolean(value) && Number.isInteger(Number(value));
|
|
1163
|
+
var isPercent = (value) => value.endsWith("%") && isNumber(value.slice(0, -1));
|
|
1164
|
+
var isArbitraryValue = (value) => arbitraryValueRegex.test(value);
|
|
1165
|
+
var isTshirtSize = (value) => tshirtUnitRegex.test(value);
|
|
1166
|
+
var sizeLabels = /* @__PURE__ */ new Set(["length", "size", "percentage"]);
|
|
1167
|
+
var isArbitrarySize = (value) => getIsArbitraryValue(value, sizeLabels, isNever);
|
|
1168
|
+
var isArbitraryPosition = (value) => getIsArbitraryValue(value, "position", isNever);
|
|
1169
|
+
var imageLabels = /* @__PURE__ */ new Set(["image", "url"]);
|
|
1170
|
+
var isArbitraryImage = (value) => getIsArbitraryValue(value, imageLabels, isImage);
|
|
1171
|
+
var isArbitraryShadow = (value) => getIsArbitraryValue(value, "", isShadow);
|
|
1172
|
+
var isAny = () => true;
|
|
1173
|
+
var getIsArbitraryValue = (value, label, testValue) => {
|
|
1174
|
+
const result = arbitraryValueRegex.exec(value);
|
|
1175
|
+
if (result) {
|
|
1176
|
+
if (result[1]) {
|
|
1177
|
+
return typeof label === "string" ? result[1] === label : label.has(result[1]);
|
|
1178
|
+
}
|
|
1179
|
+
return testValue(result[2]);
|
|
1180
|
+
}
|
|
1181
|
+
return false;
|
|
1182
|
+
};
|
|
1183
|
+
var isLengthOnly = (value) => (
|
|
1184
|
+
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
1185
|
+
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
1186
|
+
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
1187
|
+
lengthUnitRegex.test(value) && !colorFunctionRegex.test(value)
|
|
1188
|
+
);
|
|
1189
|
+
var isNever = () => false;
|
|
1190
|
+
var isShadow = (value) => shadowRegex.test(value);
|
|
1191
|
+
var isImage = (value) => imageRegex.test(value);
|
|
1192
|
+
var getDefaultConfig = () => {
|
|
1193
|
+
const colors = fromTheme("colors");
|
|
1194
|
+
const spacing = fromTheme("spacing");
|
|
1195
|
+
const blur = fromTheme("blur");
|
|
1196
|
+
const brightness = fromTheme("brightness");
|
|
1197
|
+
const borderColor = fromTheme("borderColor");
|
|
1198
|
+
const borderRadius = fromTheme("borderRadius");
|
|
1199
|
+
const borderSpacing = fromTheme("borderSpacing");
|
|
1200
|
+
const borderWidth = fromTheme("borderWidth");
|
|
1201
|
+
const contrast = fromTheme("contrast");
|
|
1202
|
+
const grayscale = fromTheme("grayscale");
|
|
1203
|
+
const hueRotate = fromTheme("hueRotate");
|
|
1204
|
+
const invert = fromTheme("invert");
|
|
1205
|
+
const gap = fromTheme("gap");
|
|
1206
|
+
const gradientColorStops = fromTheme("gradientColorStops");
|
|
1207
|
+
const gradientColorStopPositions = fromTheme("gradientColorStopPositions");
|
|
1208
|
+
const inset = fromTheme("inset");
|
|
1209
|
+
const margin = fromTheme("margin");
|
|
1210
|
+
const opacity = fromTheme("opacity");
|
|
1211
|
+
const padding = fromTheme("padding");
|
|
1212
|
+
const saturate = fromTheme("saturate");
|
|
1213
|
+
const scale = fromTheme("scale");
|
|
1214
|
+
const sepia = fromTheme("sepia");
|
|
1215
|
+
const skew = fromTheme("skew");
|
|
1216
|
+
const space = fromTheme("space");
|
|
1217
|
+
const translate = fromTheme("translate");
|
|
1218
|
+
const getOverscroll = () => ["auto", "contain", "none"];
|
|
1219
|
+
const getOverflow = () => ["auto", "hidden", "clip", "visible", "scroll"];
|
|
1220
|
+
const getSpacingWithAutoAndArbitrary = () => ["auto", isArbitraryValue, spacing];
|
|
1221
|
+
const getSpacingWithArbitrary = () => [isArbitraryValue, spacing];
|
|
1222
|
+
const getLengthWithEmptyAndArbitrary = () => ["", isLength, isArbitraryLength];
|
|
1223
|
+
const getNumberWithAutoAndArbitrary = () => ["auto", isNumber, isArbitraryValue];
|
|
1224
|
+
const getPositions = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"];
|
|
1225
|
+
const getLineStyles = () => ["solid", "dashed", "dotted", "double", "none"];
|
|
1226
|
+
const getBlendModes = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"];
|
|
1227
|
+
const getAlign = () => ["start", "end", "center", "between", "around", "evenly", "stretch"];
|
|
1228
|
+
const getZeroAndEmpty = () => ["", "0", isArbitraryValue];
|
|
1229
|
+
const getBreaks = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"];
|
|
1230
|
+
const getNumberAndArbitrary = () => [isNumber, isArbitraryValue];
|
|
1231
|
+
return {
|
|
1232
|
+
cacheSize: 500,
|
|
1233
|
+
separator: ":",
|
|
1234
|
+
theme: {
|
|
1235
|
+
colors: [isAny],
|
|
1236
|
+
spacing: [isLength, isArbitraryLength],
|
|
1237
|
+
blur: ["none", "", isTshirtSize, isArbitraryValue],
|
|
1238
|
+
brightness: getNumberAndArbitrary(),
|
|
1239
|
+
borderColor: [colors],
|
|
1240
|
+
borderRadius: ["none", "", "full", isTshirtSize, isArbitraryValue],
|
|
1241
|
+
borderSpacing: getSpacingWithArbitrary(),
|
|
1242
|
+
borderWidth: getLengthWithEmptyAndArbitrary(),
|
|
1243
|
+
contrast: getNumberAndArbitrary(),
|
|
1244
|
+
grayscale: getZeroAndEmpty(),
|
|
1245
|
+
hueRotate: getNumberAndArbitrary(),
|
|
1246
|
+
invert: getZeroAndEmpty(),
|
|
1247
|
+
gap: getSpacingWithArbitrary(),
|
|
1248
|
+
gradientColorStops: [colors],
|
|
1249
|
+
gradientColorStopPositions: [isPercent, isArbitraryLength],
|
|
1250
|
+
inset: getSpacingWithAutoAndArbitrary(),
|
|
1251
|
+
margin: getSpacingWithAutoAndArbitrary(),
|
|
1252
|
+
opacity: getNumberAndArbitrary(),
|
|
1253
|
+
padding: getSpacingWithArbitrary(),
|
|
1254
|
+
saturate: getNumberAndArbitrary(),
|
|
1255
|
+
scale: getNumberAndArbitrary(),
|
|
1256
|
+
sepia: getZeroAndEmpty(),
|
|
1257
|
+
skew: getNumberAndArbitrary(),
|
|
1258
|
+
space: getSpacingWithArbitrary(),
|
|
1259
|
+
translate: getSpacingWithArbitrary()
|
|
1260
|
+
},
|
|
1261
|
+
classGroups: {
|
|
1262
|
+
// Layout
|
|
1263
|
+
/**
|
|
1264
|
+
* Aspect Ratio
|
|
1265
|
+
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
1266
|
+
*/
|
|
1267
|
+
aspect: [{
|
|
1268
|
+
aspect: ["auto", "square", "video", isArbitraryValue]
|
|
1269
|
+
}],
|
|
1270
|
+
/**
|
|
1271
|
+
* Container
|
|
1272
|
+
* @see https://tailwindcss.com/docs/container
|
|
1273
|
+
*/
|
|
1274
|
+
container: ["container"],
|
|
1275
|
+
/**
|
|
1276
|
+
* Columns
|
|
1277
|
+
* @see https://tailwindcss.com/docs/columns
|
|
1278
|
+
*/
|
|
1279
|
+
columns: [{
|
|
1280
|
+
columns: [isTshirtSize]
|
|
1281
|
+
}],
|
|
1282
|
+
/**
|
|
1283
|
+
* Break After
|
|
1284
|
+
* @see https://tailwindcss.com/docs/break-after
|
|
1285
|
+
*/
|
|
1286
|
+
"break-after": [{
|
|
1287
|
+
"break-after": getBreaks()
|
|
1288
|
+
}],
|
|
1289
|
+
/**
|
|
1290
|
+
* Break Before
|
|
1291
|
+
* @see https://tailwindcss.com/docs/break-before
|
|
1292
|
+
*/
|
|
1293
|
+
"break-before": [{
|
|
1294
|
+
"break-before": getBreaks()
|
|
1295
|
+
}],
|
|
1296
|
+
/**
|
|
1297
|
+
* Break Inside
|
|
1298
|
+
* @see https://tailwindcss.com/docs/break-inside
|
|
1299
|
+
*/
|
|
1300
|
+
"break-inside": [{
|
|
1301
|
+
"break-inside": ["auto", "avoid", "avoid-page", "avoid-column"]
|
|
1302
|
+
}],
|
|
1303
|
+
/**
|
|
1304
|
+
* Box Decoration Break
|
|
1305
|
+
* @see https://tailwindcss.com/docs/box-decoration-break
|
|
1306
|
+
*/
|
|
1307
|
+
"box-decoration": [{
|
|
1308
|
+
"box-decoration": ["slice", "clone"]
|
|
1309
|
+
}],
|
|
1310
|
+
/**
|
|
1311
|
+
* Box Sizing
|
|
1312
|
+
* @see https://tailwindcss.com/docs/box-sizing
|
|
1313
|
+
*/
|
|
1314
|
+
box: [{
|
|
1315
|
+
box: ["border", "content"]
|
|
1316
|
+
}],
|
|
1317
|
+
/**
|
|
1318
|
+
* Display
|
|
1319
|
+
* @see https://tailwindcss.com/docs/display
|
|
1320
|
+
*/
|
|
1321
|
+
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"],
|
|
1322
|
+
/**
|
|
1323
|
+
* Floats
|
|
1324
|
+
* @see https://tailwindcss.com/docs/float
|
|
1325
|
+
*/
|
|
1326
|
+
float: [{
|
|
1327
|
+
float: ["right", "left", "none", "start", "end"]
|
|
1328
|
+
}],
|
|
1329
|
+
/**
|
|
1330
|
+
* Clear
|
|
1331
|
+
* @see https://tailwindcss.com/docs/clear
|
|
1332
|
+
*/
|
|
1333
|
+
clear: [{
|
|
1334
|
+
clear: ["left", "right", "both", "none", "start", "end"]
|
|
1335
|
+
}],
|
|
1336
|
+
/**
|
|
1337
|
+
* Isolation
|
|
1338
|
+
* @see https://tailwindcss.com/docs/isolation
|
|
1339
|
+
*/
|
|
1340
|
+
isolation: ["isolate", "isolation-auto"],
|
|
1341
|
+
/**
|
|
1342
|
+
* Object Fit
|
|
1343
|
+
* @see https://tailwindcss.com/docs/object-fit
|
|
1344
|
+
*/
|
|
1345
|
+
"object-fit": [{
|
|
1346
|
+
object: ["contain", "cover", "fill", "none", "scale-down"]
|
|
1347
|
+
}],
|
|
1348
|
+
/**
|
|
1349
|
+
* Object Position
|
|
1350
|
+
* @see https://tailwindcss.com/docs/object-position
|
|
1351
|
+
*/
|
|
1352
|
+
"object-position": [{
|
|
1353
|
+
object: [...getPositions(), isArbitraryValue]
|
|
1354
|
+
}],
|
|
1355
|
+
/**
|
|
1356
|
+
* Overflow
|
|
1357
|
+
* @see https://tailwindcss.com/docs/overflow
|
|
1358
|
+
*/
|
|
1359
|
+
overflow: [{
|
|
1360
|
+
overflow: getOverflow()
|
|
1361
|
+
}],
|
|
1362
|
+
/**
|
|
1363
|
+
* Overflow X
|
|
1364
|
+
* @see https://tailwindcss.com/docs/overflow
|
|
1365
|
+
*/
|
|
1366
|
+
"overflow-x": [{
|
|
1367
|
+
"overflow-x": getOverflow()
|
|
1368
|
+
}],
|
|
1369
|
+
/**
|
|
1370
|
+
* Overflow Y
|
|
1371
|
+
* @see https://tailwindcss.com/docs/overflow
|
|
1372
|
+
*/
|
|
1373
|
+
"overflow-y": [{
|
|
1374
|
+
"overflow-y": getOverflow()
|
|
1375
|
+
}],
|
|
1376
|
+
/**
|
|
1377
|
+
* Overscroll Behavior
|
|
1378
|
+
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
1379
|
+
*/
|
|
1380
|
+
overscroll: [{
|
|
1381
|
+
overscroll: getOverscroll()
|
|
1382
|
+
}],
|
|
1383
|
+
/**
|
|
1384
|
+
* Overscroll Behavior X
|
|
1385
|
+
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
1386
|
+
*/
|
|
1387
|
+
"overscroll-x": [{
|
|
1388
|
+
"overscroll-x": getOverscroll()
|
|
1389
|
+
}],
|
|
1390
|
+
/**
|
|
1391
|
+
* Overscroll Behavior Y
|
|
1392
|
+
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
1393
|
+
*/
|
|
1394
|
+
"overscroll-y": [{
|
|
1395
|
+
"overscroll-y": getOverscroll()
|
|
1396
|
+
}],
|
|
1397
|
+
/**
|
|
1398
|
+
* Position
|
|
1399
|
+
* @see https://tailwindcss.com/docs/position
|
|
1400
|
+
*/
|
|
1401
|
+
position: ["static", "fixed", "absolute", "relative", "sticky"],
|
|
1402
|
+
/**
|
|
1403
|
+
* Top / Right / Bottom / Left
|
|
1404
|
+
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1405
|
+
*/
|
|
1406
|
+
inset: [{
|
|
1407
|
+
inset: [inset]
|
|
1408
|
+
}],
|
|
1409
|
+
/**
|
|
1410
|
+
* Right / Left
|
|
1411
|
+
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1412
|
+
*/
|
|
1413
|
+
"inset-x": [{
|
|
1414
|
+
"inset-x": [inset]
|
|
1415
|
+
}],
|
|
1416
|
+
/**
|
|
1417
|
+
* Top / Bottom
|
|
1418
|
+
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1419
|
+
*/
|
|
1420
|
+
"inset-y": [{
|
|
1421
|
+
"inset-y": [inset]
|
|
1422
|
+
}],
|
|
1423
|
+
/**
|
|
1424
|
+
* Start
|
|
1425
|
+
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1426
|
+
*/
|
|
1427
|
+
start: [{
|
|
1428
|
+
start: [inset]
|
|
1429
|
+
}],
|
|
1430
|
+
/**
|
|
1431
|
+
* End
|
|
1432
|
+
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1433
|
+
*/
|
|
1434
|
+
end: [{
|
|
1435
|
+
end: [inset]
|
|
1436
|
+
}],
|
|
1437
|
+
/**
|
|
1438
|
+
* Top
|
|
1439
|
+
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1440
|
+
*/
|
|
1441
|
+
top: [{
|
|
1442
|
+
top: [inset]
|
|
1443
|
+
}],
|
|
1444
|
+
/**
|
|
1445
|
+
* Right
|
|
1446
|
+
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1447
|
+
*/
|
|
1448
|
+
right: [{
|
|
1449
|
+
right: [inset]
|
|
1450
|
+
}],
|
|
1451
|
+
/**
|
|
1452
|
+
* Bottom
|
|
1453
|
+
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1454
|
+
*/
|
|
1455
|
+
bottom: [{
|
|
1456
|
+
bottom: [inset]
|
|
1457
|
+
}],
|
|
1458
|
+
/**
|
|
1459
|
+
* Left
|
|
1460
|
+
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1461
|
+
*/
|
|
1462
|
+
left: [{
|
|
1463
|
+
left: [inset]
|
|
1464
|
+
}],
|
|
1465
|
+
/**
|
|
1466
|
+
* Visibility
|
|
1467
|
+
* @see https://tailwindcss.com/docs/visibility
|
|
1468
|
+
*/
|
|
1469
|
+
visibility: ["visible", "invisible", "collapse"],
|
|
1470
|
+
/**
|
|
1471
|
+
* Z-Index
|
|
1472
|
+
* @see https://tailwindcss.com/docs/z-index
|
|
1473
|
+
*/
|
|
1474
|
+
z: [{
|
|
1475
|
+
z: ["auto", isInteger, isArbitraryValue]
|
|
1476
|
+
}],
|
|
1477
|
+
// Flexbox and Grid
|
|
1478
|
+
/**
|
|
1479
|
+
* Flex Basis
|
|
1480
|
+
* @see https://tailwindcss.com/docs/flex-basis
|
|
1481
|
+
*/
|
|
1482
|
+
basis: [{
|
|
1483
|
+
basis: getSpacingWithAutoAndArbitrary()
|
|
1484
|
+
}],
|
|
1485
|
+
/**
|
|
1486
|
+
* Flex Direction
|
|
1487
|
+
* @see https://tailwindcss.com/docs/flex-direction
|
|
1488
|
+
*/
|
|
1489
|
+
"flex-direction": [{
|
|
1490
|
+
flex: ["row", "row-reverse", "col", "col-reverse"]
|
|
1491
|
+
}],
|
|
1492
|
+
/**
|
|
1493
|
+
* Flex Wrap
|
|
1494
|
+
* @see https://tailwindcss.com/docs/flex-wrap
|
|
1495
|
+
*/
|
|
1496
|
+
"flex-wrap": [{
|
|
1497
|
+
flex: ["wrap", "wrap-reverse", "nowrap"]
|
|
1498
|
+
}],
|
|
1499
|
+
/**
|
|
1500
|
+
* Flex
|
|
1501
|
+
* @see https://tailwindcss.com/docs/flex
|
|
1502
|
+
*/
|
|
1503
|
+
flex: [{
|
|
1504
|
+
flex: ["1", "auto", "initial", "none", isArbitraryValue]
|
|
1505
|
+
}],
|
|
1506
|
+
/**
|
|
1507
|
+
* Flex Grow
|
|
1508
|
+
* @see https://tailwindcss.com/docs/flex-grow
|
|
1509
|
+
*/
|
|
1510
|
+
grow: [{
|
|
1511
|
+
grow: getZeroAndEmpty()
|
|
1512
|
+
}],
|
|
1513
|
+
/**
|
|
1514
|
+
* Flex Shrink
|
|
1515
|
+
* @see https://tailwindcss.com/docs/flex-shrink
|
|
1516
|
+
*/
|
|
1517
|
+
shrink: [{
|
|
1518
|
+
shrink: getZeroAndEmpty()
|
|
1519
|
+
}],
|
|
1520
|
+
/**
|
|
1521
|
+
* Order
|
|
1522
|
+
* @see https://tailwindcss.com/docs/order
|
|
1523
|
+
*/
|
|
1524
|
+
order: [{
|
|
1525
|
+
order: ["first", "last", "none", isInteger, isArbitraryValue]
|
|
1526
|
+
}],
|
|
1527
|
+
/**
|
|
1528
|
+
* Grid Template Columns
|
|
1529
|
+
* @see https://tailwindcss.com/docs/grid-template-columns
|
|
1530
|
+
*/
|
|
1531
|
+
"grid-cols": [{
|
|
1532
|
+
"grid-cols": [isAny]
|
|
1533
|
+
}],
|
|
1534
|
+
/**
|
|
1535
|
+
* Grid Column Start / End
|
|
1536
|
+
* @see https://tailwindcss.com/docs/grid-column
|
|
1537
|
+
*/
|
|
1538
|
+
"col-start-end": [{
|
|
1539
|
+
col: ["auto", {
|
|
1540
|
+
span: ["full", isInteger, isArbitraryValue]
|
|
1541
|
+
}, isArbitraryValue]
|
|
1542
|
+
}],
|
|
1543
|
+
/**
|
|
1544
|
+
* Grid Column Start
|
|
1545
|
+
* @see https://tailwindcss.com/docs/grid-column
|
|
1546
|
+
*/
|
|
1547
|
+
"col-start": [{
|
|
1548
|
+
"col-start": getNumberWithAutoAndArbitrary()
|
|
1549
|
+
}],
|
|
1550
|
+
/**
|
|
1551
|
+
* Grid Column End
|
|
1552
|
+
* @see https://tailwindcss.com/docs/grid-column
|
|
1553
|
+
*/
|
|
1554
|
+
"col-end": [{
|
|
1555
|
+
"col-end": getNumberWithAutoAndArbitrary()
|
|
1556
|
+
}],
|
|
1557
|
+
/**
|
|
1558
|
+
* Grid Template Rows
|
|
1559
|
+
* @see https://tailwindcss.com/docs/grid-template-rows
|
|
1560
|
+
*/
|
|
1561
|
+
"grid-rows": [{
|
|
1562
|
+
"grid-rows": [isAny]
|
|
1563
|
+
}],
|
|
1564
|
+
/**
|
|
1565
|
+
* Grid Row Start / End
|
|
1566
|
+
* @see https://tailwindcss.com/docs/grid-row
|
|
1567
|
+
*/
|
|
1568
|
+
"row-start-end": [{
|
|
1569
|
+
row: ["auto", {
|
|
1570
|
+
span: [isInteger, isArbitraryValue]
|
|
1571
|
+
}, isArbitraryValue]
|
|
1572
|
+
}],
|
|
1573
|
+
/**
|
|
1574
|
+
* Grid Row Start
|
|
1575
|
+
* @see https://tailwindcss.com/docs/grid-row
|
|
1576
|
+
*/
|
|
1577
|
+
"row-start": [{
|
|
1578
|
+
"row-start": getNumberWithAutoAndArbitrary()
|
|
1579
|
+
}],
|
|
1580
|
+
/**
|
|
1581
|
+
* Grid Row End
|
|
1582
|
+
* @see https://tailwindcss.com/docs/grid-row
|
|
1583
|
+
*/
|
|
1584
|
+
"row-end": [{
|
|
1585
|
+
"row-end": getNumberWithAutoAndArbitrary()
|
|
1586
|
+
}],
|
|
1587
|
+
/**
|
|
1588
|
+
* Grid Auto Flow
|
|
1589
|
+
* @see https://tailwindcss.com/docs/grid-auto-flow
|
|
1590
|
+
*/
|
|
1591
|
+
"grid-flow": [{
|
|
1592
|
+
"grid-flow": ["row", "col", "dense", "row-dense", "col-dense"]
|
|
1593
|
+
}],
|
|
1594
|
+
/**
|
|
1595
|
+
* Grid Auto Columns
|
|
1596
|
+
* @see https://tailwindcss.com/docs/grid-auto-columns
|
|
1597
|
+
*/
|
|
1598
|
+
"auto-cols": [{
|
|
1599
|
+
"auto-cols": ["auto", "min", "max", "fr", isArbitraryValue]
|
|
1600
|
+
}],
|
|
1601
|
+
/**
|
|
1602
|
+
* Grid Auto Rows
|
|
1603
|
+
* @see https://tailwindcss.com/docs/grid-auto-rows
|
|
1604
|
+
*/
|
|
1605
|
+
"auto-rows": [{
|
|
1606
|
+
"auto-rows": ["auto", "min", "max", "fr", isArbitraryValue]
|
|
1607
|
+
}],
|
|
1608
|
+
/**
|
|
1609
|
+
* Gap
|
|
1610
|
+
* @see https://tailwindcss.com/docs/gap
|
|
1611
|
+
*/
|
|
1612
|
+
gap: [{
|
|
1613
|
+
gap: [gap]
|
|
1614
|
+
}],
|
|
1615
|
+
/**
|
|
1616
|
+
* Gap X
|
|
1617
|
+
* @see https://tailwindcss.com/docs/gap
|
|
1618
|
+
*/
|
|
1619
|
+
"gap-x": [{
|
|
1620
|
+
"gap-x": [gap]
|
|
1621
|
+
}],
|
|
1622
|
+
/**
|
|
1623
|
+
* Gap Y
|
|
1624
|
+
* @see https://tailwindcss.com/docs/gap
|
|
1625
|
+
*/
|
|
1626
|
+
"gap-y": [{
|
|
1627
|
+
"gap-y": [gap]
|
|
1628
|
+
}],
|
|
1629
|
+
/**
|
|
1630
|
+
* Justify Content
|
|
1631
|
+
* @see https://tailwindcss.com/docs/justify-content
|
|
1632
|
+
*/
|
|
1633
|
+
"justify-content": [{
|
|
1634
|
+
justify: ["normal", ...getAlign()]
|
|
1635
|
+
}],
|
|
1636
|
+
/**
|
|
1637
|
+
* Justify Items
|
|
1638
|
+
* @see https://tailwindcss.com/docs/justify-items
|
|
1639
|
+
*/
|
|
1640
|
+
"justify-items": [{
|
|
1641
|
+
"justify-items": ["start", "end", "center", "stretch"]
|
|
1642
|
+
}],
|
|
1643
|
+
/**
|
|
1644
|
+
* Justify Self
|
|
1645
|
+
* @see https://tailwindcss.com/docs/justify-self
|
|
1646
|
+
*/
|
|
1647
|
+
"justify-self": [{
|
|
1648
|
+
"justify-self": ["auto", "start", "end", "center", "stretch"]
|
|
1649
|
+
}],
|
|
1650
|
+
/**
|
|
1651
|
+
* Align Content
|
|
1652
|
+
* @see https://tailwindcss.com/docs/align-content
|
|
1653
|
+
*/
|
|
1654
|
+
"align-content": [{
|
|
1655
|
+
content: ["normal", ...getAlign(), "baseline"]
|
|
1656
|
+
}],
|
|
1657
|
+
/**
|
|
1658
|
+
* Align Items
|
|
1659
|
+
* @see https://tailwindcss.com/docs/align-items
|
|
1660
|
+
*/
|
|
1661
|
+
"align-items": [{
|
|
1662
|
+
items: ["start", "end", "center", "baseline", "stretch"]
|
|
1663
|
+
}],
|
|
1664
|
+
/**
|
|
1665
|
+
* Align Self
|
|
1666
|
+
* @see https://tailwindcss.com/docs/align-self
|
|
1667
|
+
*/
|
|
1668
|
+
"align-self": [{
|
|
1669
|
+
self: ["auto", "start", "end", "center", "stretch", "baseline"]
|
|
1670
|
+
}],
|
|
1671
|
+
/**
|
|
1672
|
+
* Place Content
|
|
1673
|
+
* @see https://tailwindcss.com/docs/place-content
|
|
1674
|
+
*/
|
|
1675
|
+
"place-content": [{
|
|
1676
|
+
"place-content": [...getAlign(), "baseline"]
|
|
1677
|
+
}],
|
|
1678
|
+
/**
|
|
1679
|
+
* Place Items
|
|
1680
|
+
* @see https://tailwindcss.com/docs/place-items
|
|
1681
|
+
*/
|
|
1682
|
+
"place-items": [{
|
|
1683
|
+
"place-items": ["start", "end", "center", "baseline", "stretch"]
|
|
1684
|
+
}],
|
|
1685
|
+
/**
|
|
1686
|
+
* Place Self
|
|
1687
|
+
* @see https://tailwindcss.com/docs/place-self
|
|
1688
|
+
*/
|
|
1689
|
+
"place-self": [{
|
|
1690
|
+
"place-self": ["auto", "start", "end", "center", "stretch"]
|
|
1691
|
+
}],
|
|
1692
|
+
// Spacing
|
|
1693
|
+
/**
|
|
1694
|
+
* Padding
|
|
1695
|
+
* @see https://tailwindcss.com/docs/padding
|
|
1696
|
+
*/
|
|
1697
|
+
p: [{
|
|
1698
|
+
p: [padding]
|
|
1699
|
+
}],
|
|
1700
|
+
/**
|
|
1701
|
+
* Padding X
|
|
1702
|
+
* @see https://tailwindcss.com/docs/padding
|
|
1703
|
+
*/
|
|
1704
|
+
px: [{
|
|
1705
|
+
px: [padding]
|
|
1706
|
+
}],
|
|
1707
|
+
/**
|
|
1708
|
+
* Padding Y
|
|
1709
|
+
* @see https://tailwindcss.com/docs/padding
|
|
1710
|
+
*/
|
|
1711
|
+
py: [{
|
|
1712
|
+
py: [padding]
|
|
1713
|
+
}],
|
|
1714
|
+
/**
|
|
1715
|
+
* Padding Start
|
|
1716
|
+
* @see https://tailwindcss.com/docs/padding
|
|
1717
|
+
*/
|
|
1718
|
+
ps: [{
|
|
1719
|
+
ps: [padding]
|
|
1720
|
+
}],
|
|
1721
|
+
/**
|
|
1722
|
+
* Padding End
|
|
1723
|
+
* @see https://tailwindcss.com/docs/padding
|
|
1724
|
+
*/
|
|
1725
|
+
pe: [{
|
|
1726
|
+
pe: [padding]
|
|
1727
|
+
}],
|
|
1728
|
+
/**
|
|
1729
|
+
* Padding Top
|
|
1730
|
+
* @see https://tailwindcss.com/docs/padding
|
|
1731
|
+
*/
|
|
1732
|
+
pt: [{
|
|
1733
|
+
pt: [padding]
|
|
1734
|
+
}],
|
|
1735
|
+
/**
|
|
1736
|
+
* Padding Right
|
|
1737
|
+
* @see https://tailwindcss.com/docs/padding
|
|
1738
|
+
*/
|
|
1739
|
+
pr: [{
|
|
1740
|
+
pr: [padding]
|
|
1741
|
+
}],
|
|
1742
|
+
/**
|
|
1743
|
+
* Padding Bottom
|
|
1744
|
+
* @see https://tailwindcss.com/docs/padding
|
|
1745
|
+
*/
|
|
1746
|
+
pb: [{
|
|
1747
|
+
pb: [padding]
|
|
1748
|
+
}],
|
|
1749
|
+
/**
|
|
1750
|
+
* Padding Left
|
|
1751
|
+
* @see https://tailwindcss.com/docs/padding
|
|
1752
|
+
*/
|
|
1753
|
+
pl: [{
|
|
1754
|
+
pl: [padding]
|
|
1755
|
+
}],
|
|
1756
|
+
/**
|
|
1757
|
+
* Margin
|
|
1758
|
+
* @see https://tailwindcss.com/docs/margin
|
|
1759
|
+
*/
|
|
1760
|
+
m: [{
|
|
1761
|
+
m: [margin]
|
|
1762
|
+
}],
|
|
1763
|
+
/**
|
|
1764
|
+
* Margin X
|
|
1765
|
+
* @see https://tailwindcss.com/docs/margin
|
|
1766
|
+
*/
|
|
1767
|
+
mx: [{
|
|
1768
|
+
mx: [margin]
|
|
1769
|
+
}],
|
|
1770
|
+
/**
|
|
1771
|
+
* Margin Y
|
|
1772
|
+
* @see https://tailwindcss.com/docs/margin
|
|
1773
|
+
*/
|
|
1774
|
+
my: [{
|
|
1775
|
+
my: [margin]
|
|
1776
|
+
}],
|
|
1777
|
+
/**
|
|
1778
|
+
* Margin Start
|
|
1779
|
+
* @see https://tailwindcss.com/docs/margin
|
|
1780
|
+
*/
|
|
1781
|
+
ms: [{
|
|
1782
|
+
ms: [margin]
|
|
1783
|
+
}],
|
|
1784
|
+
/**
|
|
1785
|
+
* Margin End
|
|
1786
|
+
* @see https://tailwindcss.com/docs/margin
|
|
1787
|
+
*/
|
|
1788
|
+
me: [{
|
|
1789
|
+
me: [margin]
|
|
1790
|
+
}],
|
|
1791
|
+
/**
|
|
1792
|
+
* Margin Top
|
|
1793
|
+
* @see https://tailwindcss.com/docs/margin
|
|
1794
|
+
*/
|
|
1795
|
+
mt: [{
|
|
1796
|
+
mt: [margin]
|
|
1797
|
+
}],
|
|
1798
|
+
/**
|
|
1799
|
+
* Margin Right
|
|
1800
|
+
* @see https://tailwindcss.com/docs/margin
|
|
1801
|
+
*/
|
|
1802
|
+
mr: [{
|
|
1803
|
+
mr: [margin]
|
|
1804
|
+
}],
|
|
1805
|
+
/**
|
|
1806
|
+
* Margin Bottom
|
|
1807
|
+
* @see https://tailwindcss.com/docs/margin
|
|
1808
|
+
*/
|
|
1809
|
+
mb: [{
|
|
1810
|
+
mb: [margin]
|
|
1811
|
+
}],
|
|
1812
|
+
/**
|
|
1813
|
+
* Margin Left
|
|
1814
|
+
* @see https://tailwindcss.com/docs/margin
|
|
1815
|
+
*/
|
|
1816
|
+
ml: [{
|
|
1817
|
+
ml: [margin]
|
|
1818
|
+
}],
|
|
1819
|
+
/**
|
|
1820
|
+
* Space Between X
|
|
1821
|
+
* @see https://tailwindcss.com/docs/space
|
|
1822
|
+
*/
|
|
1823
|
+
"space-x": [{
|
|
1824
|
+
"space-x": [space]
|
|
1825
|
+
}],
|
|
1826
|
+
/**
|
|
1827
|
+
* Space Between X Reverse
|
|
1828
|
+
* @see https://tailwindcss.com/docs/space
|
|
1829
|
+
*/
|
|
1830
|
+
"space-x-reverse": ["space-x-reverse"],
|
|
1831
|
+
/**
|
|
1832
|
+
* Space Between Y
|
|
1833
|
+
* @see https://tailwindcss.com/docs/space
|
|
1834
|
+
*/
|
|
1835
|
+
"space-y": [{
|
|
1836
|
+
"space-y": [space]
|
|
1837
|
+
}],
|
|
1838
|
+
/**
|
|
1839
|
+
* Space Between Y Reverse
|
|
1840
|
+
* @see https://tailwindcss.com/docs/space
|
|
1841
|
+
*/
|
|
1842
|
+
"space-y-reverse": ["space-y-reverse"],
|
|
1843
|
+
// Sizing
|
|
1844
|
+
/**
|
|
1845
|
+
* Width
|
|
1846
|
+
* @see https://tailwindcss.com/docs/width
|
|
1847
|
+
*/
|
|
1848
|
+
w: [{
|
|
1849
|
+
w: ["auto", "min", "max", "fit", "svw", "lvw", "dvw", isArbitraryValue, spacing]
|
|
1850
|
+
}],
|
|
1851
|
+
/**
|
|
1852
|
+
* Min-Width
|
|
1853
|
+
* @see https://tailwindcss.com/docs/min-width
|
|
1854
|
+
*/
|
|
1855
|
+
"min-w": [{
|
|
1856
|
+
"min-w": [isArbitraryValue, spacing, "min", "max", "fit"]
|
|
1857
|
+
}],
|
|
1858
|
+
/**
|
|
1859
|
+
* Max-Width
|
|
1860
|
+
* @see https://tailwindcss.com/docs/max-width
|
|
1861
|
+
*/
|
|
1862
|
+
"max-w": [{
|
|
1863
|
+
"max-w": [isArbitraryValue, spacing, "none", "full", "min", "max", "fit", "prose", {
|
|
1864
|
+
screen: [isTshirtSize]
|
|
1865
|
+
}, isTshirtSize]
|
|
1866
|
+
}],
|
|
1867
|
+
/**
|
|
1868
|
+
* Height
|
|
1869
|
+
* @see https://tailwindcss.com/docs/height
|
|
1870
|
+
*/
|
|
1871
|
+
h: [{
|
|
1872
|
+
h: [isArbitraryValue, spacing, "auto", "min", "max", "fit", "svh", "lvh", "dvh"]
|
|
1873
|
+
}],
|
|
1874
|
+
/**
|
|
1875
|
+
* Min-Height
|
|
1876
|
+
* @see https://tailwindcss.com/docs/min-height
|
|
1877
|
+
*/
|
|
1878
|
+
"min-h": [{
|
|
1879
|
+
"min-h": [isArbitraryValue, spacing, "min", "max", "fit", "svh", "lvh", "dvh"]
|
|
1880
|
+
}],
|
|
1881
|
+
/**
|
|
1882
|
+
* Max-Height
|
|
1883
|
+
* @see https://tailwindcss.com/docs/max-height
|
|
1884
|
+
*/
|
|
1885
|
+
"max-h": [{
|
|
1886
|
+
"max-h": [isArbitraryValue, spacing, "min", "max", "fit", "svh", "lvh", "dvh"]
|
|
1887
|
+
}],
|
|
1888
|
+
/**
|
|
1889
|
+
* Size
|
|
1890
|
+
* @see https://tailwindcss.com/docs/size
|
|
1891
|
+
*/
|
|
1892
|
+
size: [{
|
|
1893
|
+
size: [isArbitraryValue, spacing, "auto", "min", "max", "fit"]
|
|
1894
|
+
}],
|
|
1895
|
+
// Typography
|
|
1896
|
+
/**
|
|
1897
|
+
* Font Size
|
|
1898
|
+
* @see https://tailwindcss.com/docs/font-size
|
|
1899
|
+
*/
|
|
1900
|
+
"font-size": [{
|
|
1901
|
+
text: ["base", isTshirtSize, isArbitraryLength]
|
|
1902
|
+
}],
|
|
1903
|
+
/**
|
|
1904
|
+
* Font Smoothing
|
|
1905
|
+
* @see https://tailwindcss.com/docs/font-smoothing
|
|
1906
|
+
*/
|
|
1907
|
+
"font-smoothing": ["antialiased", "subpixel-antialiased"],
|
|
1908
|
+
/**
|
|
1909
|
+
* Font Style
|
|
1910
|
+
* @see https://tailwindcss.com/docs/font-style
|
|
1911
|
+
*/
|
|
1912
|
+
"font-style": ["italic", "not-italic"],
|
|
1913
|
+
/**
|
|
1914
|
+
* Font Weight
|
|
1915
|
+
* @see https://tailwindcss.com/docs/font-weight
|
|
1916
|
+
*/
|
|
1917
|
+
"font-weight": [{
|
|
1918
|
+
font: ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black", isArbitraryNumber]
|
|
1919
|
+
}],
|
|
1920
|
+
/**
|
|
1921
|
+
* Font Family
|
|
1922
|
+
* @see https://tailwindcss.com/docs/font-family
|
|
1923
|
+
*/
|
|
1924
|
+
"font-family": [{
|
|
1925
|
+
font: [isAny]
|
|
1926
|
+
}],
|
|
1927
|
+
/**
|
|
1928
|
+
* Font Variant Numeric
|
|
1929
|
+
* @see https://tailwindcss.com/docs/font-variant-numeric
|
|
1930
|
+
*/
|
|
1931
|
+
"fvn-normal": ["normal-nums"],
|
|
1932
|
+
/**
|
|
1933
|
+
* Font Variant Numeric
|
|
1934
|
+
* @see https://tailwindcss.com/docs/font-variant-numeric
|
|
1935
|
+
*/
|
|
1936
|
+
"fvn-ordinal": ["ordinal"],
|
|
1937
|
+
/**
|
|
1938
|
+
* Font Variant Numeric
|
|
1939
|
+
* @see https://tailwindcss.com/docs/font-variant-numeric
|
|
1940
|
+
*/
|
|
1941
|
+
"fvn-slashed-zero": ["slashed-zero"],
|
|
1942
|
+
/**
|
|
1943
|
+
* Font Variant Numeric
|
|
1944
|
+
* @see https://tailwindcss.com/docs/font-variant-numeric
|
|
1945
|
+
*/
|
|
1946
|
+
"fvn-figure": ["lining-nums", "oldstyle-nums"],
|
|
1947
|
+
/**
|
|
1948
|
+
* Font Variant Numeric
|
|
1949
|
+
* @see https://tailwindcss.com/docs/font-variant-numeric
|
|
1950
|
+
*/
|
|
1951
|
+
"fvn-spacing": ["proportional-nums", "tabular-nums"],
|
|
1952
|
+
/**
|
|
1953
|
+
* Font Variant Numeric
|
|
1954
|
+
* @see https://tailwindcss.com/docs/font-variant-numeric
|
|
1955
|
+
*/
|
|
1956
|
+
"fvn-fraction": ["diagonal-fractions", "stacked-fractons"],
|
|
1957
|
+
/**
|
|
1958
|
+
* Letter Spacing
|
|
1959
|
+
* @see https://tailwindcss.com/docs/letter-spacing
|
|
1960
|
+
*/
|
|
1961
|
+
tracking: [{
|
|
1962
|
+
tracking: ["tighter", "tight", "normal", "wide", "wider", "widest", isArbitraryValue]
|
|
1963
|
+
}],
|
|
1964
|
+
/**
|
|
1965
|
+
* Line Clamp
|
|
1966
|
+
* @see https://tailwindcss.com/docs/line-clamp
|
|
1967
|
+
*/
|
|
1968
|
+
"line-clamp": [{
|
|
1969
|
+
"line-clamp": ["none", isNumber, isArbitraryNumber]
|
|
1970
|
+
}],
|
|
1971
|
+
/**
|
|
1972
|
+
* Line Height
|
|
1973
|
+
* @see https://tailwindcss.com/docs/line-height
|
|
1974
|
+
*/
|
|
1975
|
+
leading: [{
|
|
1976
|
+
leading: ["none", "tight", "snug", "normal", "relaxed", "loose", isLength, isArbitraryValue]
|
|
1977
|
+
}],
|
|
1978
|
+
/**
|
|
1979
|
+
* List Style Image
|
|
1980
|
+
* @see https://tailwindcss.com/docs/list-style-image
|
|
1981
|
+
*/
|
|
1982
|
+
"list-image": [{
|
|
1983
|
+
"list-image": ["none", isArbitraryValue]
|
|
1984
|
+
}],
|
|
1985
|
+
/**
|
|
1986
|
+
* List Style Type
|
|
1987
|
+
* @see https://tailwindcss.com/docs/list-style-type
|
|
1988
|
+
*/
|
|
1989
|
+
"list-style-type": [{
|
|
1990
|
+
list: ["none", "disc", "decimal", isArbitraryValue]
|
|
1991
|
+
}],
|
|
1992
|
+
/**
|
|
1993
|
+
* List Style Position
|
|
1994
|
+
* @see https://tailwindcss.com/docs/list-style-position
|
|
1995
|
+
*/
|
|
1996
|
+
"list-style-position": [{
|
|
1997
|
+
list: ["inside", "outside"]
|
|
1998
|
+
}],
|
|
1999
|
+
/**
|
|
2000
|
+
* Placeholder Color
|
|
2001
|
+
* @deprecated since Tailwind CSS v3.0.0
|
|
2002
|
+
* @see https://tailwindcss.com/docs/placeholder-color
|
|
2003
|
+
*/
|
|
2004
|
+
"placeholder-color": [{
|
|
2005
|
+
placeholder: [colors]
|
|
2006
|
+
}],
|
|
2007
|
+
/**
|
|
2008
|
+
* Placeholder Opacity
|
|
2009
|
+
* @see https://tailwindcss.com/docs/placeholder-opacity
|
|
2010
|
+
*/
|
|
2011
|
+
"placeholder-opacity": [{
|
|
2012
|
+
"placeholder-opacity": [opacity]
|
|
2013
|
+
}],
|
|
2014
|
+
/**
|
|
2015
|
+
* Text Alignment
|
|
2016
|
+
* @see https://tailwindcss.com/docs/text-align
|
|
2017
|
+
*/
|
|
2018
|
+
"text-alignment": [{
|
|
2019
|
+
text: ["left", "center", "right", "justify", "start", "end"]
|
|
2020
|
+
}],
|
|
2021
|
+
/**
|
|
2022
|
+
* Text Color
|
|
2023
|
+
* @see https://tailwindcss.com/docs/text-color
|
|
2024
|
+
*/
|
|
2025
|
+
"text-color": [{
|
|
2026
|
+
text: [colors]
|
|
2027
|
+
}],
|
|
2028
|
+
/**
|
|
2029
|
+
* Text Opacity
|
|
2030
|
+
* @see https://tailwindcss.com/docs/text-opacity
|
|
2031
|
+
*/
|
|
2032
|
+
"text-opacity": [{
|
|
2033
|
+
"text-opacity": [opacity]
|
|
2034
|
+
}],
|
|
2035
|
+
/**
|
|
2036
|
+
* Text Decoration
|
|
2037
|
+
* @see https://tailwindcss.com/docs/text-decoration
|
|
2038
|
+
*/
|
|
2039
|
+
"text-decoration": ["underline", "overline", "line-through", "no-underline"],
|
|
2040
|
+
/**
|
|
2041
|
+
* Text Decoration Style
|
|
2042
|
+
* @see https://tailwindcss.com/docs/text-decoration-style
|
|
2043
|
+
*/
|
|
2044
|
+
"text-decoration-style": [{
|
|
2045
|
+
decoration: [...getLineStyles(), "wavy"]
|
|
2046
|
+
}],
|
|
2047
|
+
/**
|
|
2048
|
+
* Text Decoration Thickness
|
|
2049
|
+
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
|
2050
|
+
*/
|
|
2051
|
+
"text-decoration-thickness": [{
|
|
2052
|
+
decoration: ["auto", "from-font", isLength, isArbitraryLength]
|
|
2053
|
+
}],
|
|
2054
|
+
/**
|
|
2055
|
+
* Text Underline Offset
|
|
2056
|
+
* @see https://tailwindcss.com/docs/text-underline-offset
|
|
2057
|
+
*/
|
|
2058
|
+
"underline-offset": [{
|
|
2059
|
+
"underline-offset": ["auto", isLength, isArbitraryValue]
|
|
2060
|
+
}],
|
|
2061
|
+
/**
|
|
2062
|
+
* Text Decoration Color
|
|
2063
|
+
* @see https://tailwindcss.com/docs/text-decoration-color
|
|
2064
|
+
*/
|
|
2065
|
+
"text-decoration-color": [{
|
|
2066
|
+
decoration: [colors]
|
|
2067
|
+
}],
|
|
2068
|
+
/**
|
|
2069
|
+
* Text Transform
|
|
2070
|
+
* @see https://tailwindcss.com/docs/text-transform
|
|
2071
|
+
*/
|
|
2072
|
+
"text-transform": ["uppercase", "lowercase", "capitalize", "normal-case"],
|
|
2073
|
+
/**
|
|
2074
|
+
* Text Overflow
|
|
2075
|
+
* @see https://tailwindcss.com/docs/text-overflow
|
|
2076
|
+
*/
|
|
2077
|
+
"text-overflow": ["truncate", "text-ellipsis", "text-clip"],
|
|
2078
|
+
/**
|
|
2079
|
+
* Text Wrap
|
|
2080
|
+
* @see https://tailwindcss.com/docs/text-wrap
|
|
2081
|
+
*/
|
|
2082
|
+
"text-wrap": [{
|
|
2083
|
+
text: ["wrap", "nowrap", "balance", "pretty"]
|
|
2084
|
+
}],
|
|
2085
|
+
/**
|
|
2086
|
+
* Text Indent
|
|
2087
|
+
* @see https://tailwindcss.com/docs/text-indent
|
|
2088
|
+
*/
|
|
2089
|
+
indent: [{
|
|
2090
|
+
indent: getSpacingWithArbitrary()
|
|
2091
|
+
}],
|
|
2092
|
+
/**
|
|
2093
|
+
* Vertical Alignment
|
|
2094
|
+
* @see https://tailwindcss.com/docs/vertical-align
|
|
2095
|
+
*/
|
|
2096
|
+
"vertical-align": [{
|
|
2097
|
+
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", isArbitraryValue]
|
|
2098
|
+
}],
|
|
2099
|
+
/**
|
|
2100
|
+
* Whitespace
|
|
2101
|
+
* @see https://tailwindcss.com/docs/whitespace
|
|
2102
|
+
*/
|
|
2103
|
+
whitespace: [{
|
|
2104
|
+
whitespace: ["normal", "nowrap", "pre", "pre-line", "pre-wrap", "break-spaces"]
|
|
2105
|
+
}],
|
|
2106
|
+
/**
|
|
2107
|
+
* Word Break
|
|
2108
|
+
* @see https://tailwindcss.com/docs/word-break
|
|
2109
|
+
*/
|
|
2110
|
+
break: [{
|
|
2111
|
+
break: ["normal", "words", "all", "keep"]
|
|
2112
|
+
}],
|
|
2113
|
+
/**
|
|
2114
|
+
* Hyphens
|
|
2115
|
+
* @see https://tailwindcss.com/docs/hyphens
|
|
2116
|
+
*/
|
|
2117
|
+
hyphens: [{
|
|
2118
|
+
hyphens: ["none", "manual", "auto"]
|
|
2119
|
+
}],
|
|
2120
|
+
/**
|
|
2121
|
+
* Content
|
|
2122
|
+
* @see https://tailwindcss.com/docs/content
|
|
2123
|
+
*/
|
|
2124
|
+
content: [{
|
|
2125
|
+
content: ["none", isArbitraryValue]
|
|
2126
|
+
}],
|
|
2127
|
+
// Backgrounds
|
|
2128
|
+
/**
|
|
2129
|
+
* Background Attachment
|
|
2130
|
+
* @see https://tailwindcss.com/docs/background-attachment
|
|
2131
|
+
*/
|
|
2132
|
+
"bg-attachment": [{
|
|
2133
|
+
bg: ["fixed", "local", "scroll"]
|
|
2134
|
+
}],
|
|
2135
|
+
/**
|
|
2136
|
+
* Background Clip
|
|
2137
|
+
* @see https://tailwindcss.com/docs/background-clip
|
|
2138
|
+
*/
|
|
2139
|
+
"bg-clip": [{
|
|
2140
|
+
"bg-clip": ["border", "padding", "content", "text"]
|
|
2141
|
+
}],
|
|
2142
|
+
/**
|
|
2143
|
+
* Background Opacity
|
|
2144
|
+
* @deprecated since Tailwind CSS v3.0.0
|
|
2145
|
+
* @see https://tailwindcss.com/docs/background-opacity
|
|
2146
|
+
*/
|
|
2147
|
+
"bg-opacity": [{
|
|
2148
|
+
"bg-opacity": [opacity]
|
|
2149
|
+
}],
|
|
2150
|
+
/**
|
|
2151
|
+
* Background Origin
|
|
2152
|
+
* @see https://tailwindcss.com/docs/background-origin
|
|
2153
|
+
*/
|
|
2154
|
+
"bg-origin": [{
|
|
2155
|
+
"bg-origin": ["border", "padding", "content"]
|
|
2156
|
+
}],
|
|
2157
|
+
/**
|
|
2158
|
+
* Background Position
|
|
2159
|
+
* @see https://tailwindcss.com/docs/background-position
|
|
2160
|
+
*/
|
|
2161
|
+
"bg-position": [{
|
|
2162
|
+
bg: [...getPositions(), isArbitraryPosition]
|
|
2163
|
+
}],
|
|
2164
|
+
/**
|
|
2165
|
+
* Background Repeat
|
|
2166
|
+
* @see https://tailwindcss.com/docs/background-repeat
|
|
2167
|
+
*/
|
|
2168
|
+
"bg-repeat": [{
|
|
2169
|
+
bg: ["no-repeat", {
|
|
2170
|
+
repeat: ["", "x", "y", "round", "space"]
|
|
2171
|
+
}]
|
|
2172
|
+
}],
|
|
2173
|
+
/**
|
|
2174
|
+
* Background Size
|
|
2175
|
+
* @see https://tailwindcss.com/docs/background-size
|
|
2176
|
+
*/
|
|
2177
|
+
"bg-size": [{
|
|
2178
|
+
bg: ["auto", "cover", "contain", isArbitrarySize]
|
|
2179
|
+
}],
|
|
2180
|
+
/**
|
|
2181
|
+
* Background Image
|
|
2182
|
+
* @see https://tailwindcss.com/docs/background-image
|
|
2183
|
+
*/
|
|
2184
|
+
"bg-image": [{
|
|
2185
|
+
bg: ["none", {
|
|
2186
|
+
"gradient-to": ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
|
|
2187
|
+
}, isArbitraryImage]
|
|
2188
|
+
}],
|
|
2189
|
+
/**
|
|
2190
|
+
* Background Color
|
|
2191
|
+
* @see https://tailwindcss.com/docs/background-color
|
|
2192
|
+
*/
|
|
2193
|
+
"bg-color": [{
|
|
2194
|
+
bg: [colors]
|
|
2195
|
+
}],
|
|
2196
|
+
/**
|
|
2197
|
+
* Gradient Color Stops From Position
|
|
2198
|
+
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
2199
|
+
*/
|
|
2200
|
+
"gradient-from-pos": [{
|
|
2201
|
+
from: [gradientColorStopPositions]
|
|
2202
|
+
}],
|
|
2203
|
+
/**
|
|
2204
|
+
* Gradient Color Stops Via Position
|
|
2205
|
+
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
2206
|
+
*/
|
|
2207
|
+
"gradient-via-pos": [{
|
|
2208
|
+
via: [gradientColorStopPositions]
|
|
2209
|
+
}],
|
|
2210
|
+
/**
|
|
2211
|
+
* Gradient Color Stops To Position
|
|
2212
|
+
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
2213
|
+
*/
|
|
2214
|
+
"gradient-to-pos": [{
|
|
2215
|
+
to: [gradientColorStopPositions]
|
|
2216
|
+
}],
|
|
2217
|
+
/**
|
|
2218
|
+
* Gradient Color Stops From
|
|
2219
|
+
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
2220
|
+
*/
|
|
2221
|
+
"gradient-from": [{
|
|
2222
|
+
from: [gradientColorStops]
|
|
2223
|
+
}],
|
|
2224
|
+
/**
|
|
2225
|
+
* Gradient Color Stops Via
|
|
2226
|
+
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
2227
|
+
*/
|
|
2228
|
+
"gradient-via": [{
|
|
2229
|
+
via: [gradientColorStops]
|
|
2230
|
+
}],
|
|
2231
|
+
/**
|
|
2232
|
+
* Gradient Color Stops To
|
|
2233
|
+
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
2234
|
+
*/
|
|
2235
|
+
"gradient-to": [{
|
|
2236
|
+
to: [gradientColorStops]
|
|
2237
|
+
}],
|
|
2238
|
+
// Borders
|
|
2239
|
+
/**
|
|
2240
|
+
* Border Radius
|
|
2241
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
2242
|
+
*/
|
|
2243
|
+
rounded: [{
|
|
2244
|
+
rounded: [borderRadius]
|
|
2245
|
+
}],
|
|
2246
|
+
/**
|
|
2247
|
+
* Border Radius Start
|
|
2248
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
2249
|
+
*/
|
|
2250
|
+
"rounded-s": [{
|
|
2251
|
+
"rounded-s": [borderRadius]
|
|
2252
|
+
}],
|
|
2253
|
+
/**
|
|
2254
|
+
* Border Radius End
|
|
2255
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
2256
|
+
*/
|
|
2257
|
+
"rounded-e": [{
|
|
2258
|
+
"rounded-e": [borderRadius]
|
|
2259
|
+
}],
|
|
2260
|
+
/**
|
|
2261
|
+
* Border Radius Top
|
|
2262
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
2263
|
+
*/
|
|
2264
|
+
"rounded-t": [{
|
|
2265
|
+
"rounded-t": [borderRadius]
|
|
2266
|
+
}],
|
|
2267
|
+
/**
|
|
2268
|
+
* Border Radius Right
|
|
2269
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
2270
|
+
*/
|
|
2271
|
+
"rounded-r": [{
|
|
2272
|
+
"rounded-r": [borderRadius]
|
|
2273
|
+
}],
|
|
2274
|
+
/**
|
|
2275
|
+
* Border Radius Bottom
|
|
2276
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
2277
|
+
*/
|
|
2278
|
+
"rounded-b": [{
|
|
2279
|
+
"rounded-b": [borderRadius]
|
|
2280
|
+
}],
|
|
2281
|
+
/**
|
|
2282
|
+
* Border Radius Left
|
|
2283
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
2284
|
+
*/
|
|
2285
|
+
"rounded-l": [{
|
|
2286
|
+
"rounded-l": [borderRadius]
|
|
2287
|
+
}],
|
|
2288
|
+
/**
|
|
2289
|
+
* Border Radius Start Start
|
|
2290
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
2291
|
+
*/
|
|
2292
|
+
"rounded-ss": [{
|
|
2293
|
+
"rounded-ss": [borderRadius]
|
|
2294
|
+
}],
|
|
2295
|
+
/**
|
|
2296
|
+
* Border Radius Start End
|
|
2297
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
2298
|
+
*/
|
|
2299
|
+
"rounded-se": [{
|
|
2300
|
+
"rounded-se": [borderRadius]
|
|
2301
|
+
}],
|
|
2302
|
+
/**
|
|
2303
|
+
* Border Radius End End
|
|
2304
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
2305
|
+
*/
|
|
2306
|
+
"rounded-ee": [{
|
|
2307
|
+
"rounded-ee": [borderRadius]
|
|
2308
|
+
}],
|
|
2309
|
+
/**
|
|
2310
|
+
* Border Radius End Start
|
|
2311
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
2312
|
+
*/
|
|
2313
|
+
"rounded-es": [{
|
|
2314
|
+
"rounded-es": [borderRadius]
|
|
2315
|
+
}],
|
|
2316
|
+
/**
|
|
2317
|
+
* Border Radius Top Left
|
|
2318
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
2319
|
+
*/
|
|
2320
|
+
"rounded-tl": [{
|
|
2321
|
+
"rounded-tl": [borderRadius]
|
|
2322
|
+
}],
|
|
2323
|
+
/**
|
|
2324
|
+
* Border Radius Top Right
|
|
2325
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
2326
|
+
*/
|
|
2327
|
+
"rounded-tr": [{
|
|
2328
|
+
"rounded-tr": [borderRadius]
|
|
2329
|
+
}],
|
|
2330
|
+
/**
|
|
2331
|
+
* Border Radius Bottom Right
|
|
2332
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
2333
|
+
*/
|
|
2334
|
+
"rounded-br": [{
|
|
2335
|
+
"rounded-br": [borderRadius]
|
|
2336
|
+
}],
|
|
2337
|
+
/**
|
|
2338
|
+
* Border Radius Bottom Left
|
|
2339
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
2340
|
+
*/
|
|
2341
|
+
"rounded-bl": [{
|
|
2342
|
+
"rounded-bl": [borderRadius]
|
|
2343
|
+
}],
|
|
2344
|
+
/**
|
|
2345
|
+
* Border Width
|
|
2346
|
+
* @see https://tailwindcss.com/docs/border-width
|
|
2347
|
+
*/
|
|
2348
|
+
"border-w": [{
|
|
2349
|
+
border: [borderWidth]
|
|
2350
|
+
}],
|
|
2351
|
+
/**
|
|
2352
|
+
* Border Width X
|
|
2353
|
+
* @see https://tailwindcss.com/docs/border-width
|
|
2354
|
+
*/
|
|
2355
|
+
"border-w-x": [{
|
|
2356
|
+
"border-x": [borderWidth]
|
|
2357
|
+
}],
|
|
2358
|
+
/**
|
|
2359
|
+
* Border Width Y
|
|
2360
|
+
* @see https://tailwindcss.com/docs/border-width
|
|
2361
|
+
*/
|
|
2362
|
+
"border-w-y": [{
|
|
2363
|
+
"border-y": [borderWidth]
|
|
2364
|
+
}],
|
|
2365
|
+
/**
|
|
2366
|
+
* Border Width Start
|
|
2367
|
+
* @see https://tailwindcss.com/docs/border-width
|
|
2368
|
+
*/
|
|
2369
|
+
"border-w-s": [{
|
|
2370
|
+
"border-s": [borderWidth]
|
|
2371
|
+
}],
|
|
2372
|
+
/**
|
|
2373
|
+
* Border Width End
|
|
2374
|
+
* @see https://tailwindcss.com/docs/border-width
|
|
2375
|
+
*/
|
|
2376
|
+
"border-w-e": [{
|
|
2377
|
+
"border-e": [borderWidth]
|
|
2378
|
+
}],
|
|
2379
|
+
/**
|
|
2380
|
+
* Border Width Top
|
|
2381
|
+
* @see https://tailwindcss.com/docs/border-width
|
|
2382
|
+
*/
|
|
2383
|
+
"border-w-t": [{
|
|
2384
|
+
"border-t": [borderWidth]
|
|
2385
|
+
}],
|
|
2386
|
+
/**
|
|
2387
|
+
* Border Width Right
|
|
2388
|
+
* @see https://tailwindcss.com/docs/border-width
|
|
2389
|
+
*/
|
|
2390
|
+
"border-w-r": [{
|
|
2391
|
+
"border-r": [borderWidth]
|
|
2392
|
+
}],
|
|
2393
|
+
/**
|
|
2394
|
+
* Border Width Bottom
|
|
2395
|
+
* @see https://tailwindcss.com/docs/border-width
|
|
2396
|
+
*/
|
|
2397
|
+
"border-w-b": [{
|
|
2398
|
+
"border-b": [borderWidth]
|
|
2399
|
+
}],
|
|
2400
|
+
/**
|
|
2401
|
+
* Border Width Left
|
|
2402
|
+
* @see https://tailwindcss.com/docs/border-width
|
|
2403
|
+
*/
|
|
2404
|
+
"border-w-l": [{
|
|
2405
|
+
"border-l": [borderWidth]
|
|
2406
|
+
}],
|
|
2407
|
+
/**
|
|
2408
|
+
* Border Opacity
|
|
2409
|
+
* @see https://tailwindcss.com/docs/border-opacity
|
|
2410
|
+
*/
|
|
2411
|
+
"border-opacity": [{
|
|
2412
|
+
"border-opacity": [opacity]
|
|
2413
|
+
}],
|
|
2414
|
+
/**
|
|
2415
|
+
* Border Style
|
|
2416
|
+
* @see https://tailwindcss.com/docs/border-style
|
|
2417
|
+
*/
|
|
2418
|
+
"border-style": [{
|
|
2419
|
+
border: [...getLineStyles(), "hidden"]
|
|
2420
|
+
}],
|
|
2421
|
+
/**
|
|
2422
|
+
* Divide Width X
|
|
2423
|
+
* @see https://tailwindcss.com/docs/divide-width
|
|
2424
|
+
*/
|
|
2425
|
+
"divide-x": [{
|
|
2426
|
+
"divide-x": [borderWidth]
|
|
2427
|
+
}],
|
|
2428
|
+
/**
|
|
2429
|
+
* Divide Width X Reverse
|
|
2430
|
+
* @see https://tailwindcss.com/docs/divide-width
|
|
2431
|
+
*/
|
|
2432
|
+
"divide-x-reverse": ["divide-x-reverse"],
|
|
2433
|
+
/**
|
|
2434
|
+
* Divide Width Y
|
|
2435
|
+
* @see https://tailwindcss.com/docs/divide-width
|
|
2436
|
+
*/
|
|
2437
|
+
"divide-y": [{
|
|
2438
|
+
"divide-y": [borderWidth]
|
|
2439
|
+
}],
|
|
2440
|
+
/**
|
|
2441
|
+
* Divide Width Y Reverse
|
|
2442
|
+
* @see https://tailwindcss.com/docs/divide-width
|
|
2443
|
+
*/
|
|
2444
|
+
"divide-y-reverse": ["divide-y-reverse"],
|
|
2445
|
+
/**
|
|
2446
|
+
* Divide Opacity
|
|
2447
|
+
* @see https://tailwindcss.com/docs/divide-opacity
|
|
2448
|
+
*/
|
|
2449
|
+
"divide-opacity": [{
|
|
2450
|
+
"divide-opacity": [opacity]
|
|
2451
|
+
}],
|
|
2452
|
+
/**
|
|
2453
|
+
* Divide Style
|
|
2454
|
+
* @see https://tailwindcss.com/docs/divide-style
|
|
2455
|
+
*/
|
|
2456
|
+
"divide-style": [{
|
|
2457
|
+
divide: getLineStyles()
|
|
2458
|
+
}],
|
|
2459
|
+
/**
|
|
2460
|
+
* Border Color
|
|
2461
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
2462
|
+
*/
|
|
2463
|
+
"border-color": [{
|
|
2464
|
+
border: [borderColor]
|
|
2465
|
+
}],
|
|
2466
|
+
/**
|
|
2467
|
+
* Border Color X
|
|
2468
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
2469
|
+
*/
|
|
2470
|
+
"border-color-x": [{
|
|
2471
|
+
"border-x": [borderColor]
|
|
2472
|
+
}],
|
|
2473
|
+
/**
|
|
2474
|
+
* Border Color Y
|
|
2475
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
2476
|
+
*/
|
|
2477
|
+
"border-color-y": [{
|
|
2478
|
+
"border-y": [borderColor]
|
|
2479
|
+
}],
|
|
2480
|
+
/**
|
|
2481
|
+
* Border Color S
|
|
2482
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
2483
|
+
*/
|
|
2484
|
+
"border-color-s": [{
|
|
2485
|
+
"border-s": [borderColor]
|
|
2486
|
+
}],
|
|
2487
|
+
/**
|
|
2488
|
+
* Border Color E
|
|
2489
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
2490
|
+
*/
|
|
2491
|
+
"border-color-e": [{
|
|
2492
|
+
"border-e": [borderColor]
|
|
2493
|
+
}],
|
|
2494
|
+
/**
|
|
2495
|
+
* Border Color Top
|
|
2496
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
2497
|
+
*/
|
|
2498
|
+
"border-color-t": [{
|
|
2499
|
+
"border-t": [borderColor]
|
|
2500
|
+
}],
|
|
2501
|
+
/**
|
|
2502
|
+
* Border Color Right
|
|
2503
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
2504
|
+
*/
|
|
2505
|
+
"border-color-r": [{
|
|
2506
|
+
"border-r": [borderColor]
|
|
2507
|
+
}],
|
|
2508
|
+
/**
|
|
2509
|
+
* Border Color Bottom
|
|
2510
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
2511
|
+
*/
|
|
2512
|
+
"border-color-b": [{
|
|
2513
|
+
"border-b": [borderColor]
|
|
2514
|
+
}],
|
|
2515
|
+
/**
|
|
2516
|
+
* Border Color Left
|
|
2517
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
2518
|
+
*/
|
|
2519
|
+
"border-color-l": [{
|
|
2520
|
+
"border-l": [borderColor]
|
|
2521
|
+
}],
|
|
2522
|
+
/**
|
|
2523
|
+
* Divide Color
|
|
2524
|
+
* @see https://tailwindcss.com/docs/divide-color
|
|
2525
|
+
*/
|
|
2526
|
+
"divide-color": [{
|
|
2527
|
+
divide: [borderColor]
|
|
2528
|
+
}],
|
|
2529
|
+
/**
|
|
2530
|
+
* Outline Style
|
|
2531
|
+
* @see https://tailwindcss.com/docs/outline-style
|
|
2532
|
+
*/
|
|
2533
|
+
"outline-style": [{
|
|
2534
|
+
outline: ["", ...getLineStyles()]
|
|
2535
|
+
}],
|
|
2536
|
+
/**
|
|
2537
|
+
* Outline Offset
|
|
2538
|
+
* @see https://tailwindcss.com/docs/outline-offset
|
|
2539
|
+
*/
|
|
2540
|
+
"outline-offset": [{
|
|
2541
|
+
"outline-offset": [isLength, isArbitraryValue]
|
|
2542
|
+
}],
|
|
2543
|
+
/**
|
|
2544
|
+
* Outline Width
|
|
2545
|
+
* @see https://tailwindcss.com/docs/outline-width
|
|
2546
|
+
*/
|
|
2547
|
+
"outline-w": [{
|
|
2548
|
+
outline: [isLength, isArbitraryLength]
|
|
2549
|
+
}],
|
|
2550
|
+
/**
|
|
2551
|
+
* Outline Color
|
|
2552
|
+
* @see https://tailwindcss.com/docs/outline-color
|
|
2553
|
+
*/
|
|
2554
|
+
"outline-color": [{
|
|
2555
|
+
outline: [colors]
|
|
2556
|
+
}],
|
|
2557
|
+
/**
|
|
2558
|
+
* Ring Width
|
|
2559
|
+
* @see https://tailwindcss.com/docs/ring-width
|
|
2560
|
+
*/
|
|
2561
|
+
"ring-w": [{
|
|
2562
|
+
ring: getLengthWithEmptyAndArbitrary()
|
|
2563
|
+
}],
|
|
2564
|
+
/**
|
|
2565
|
+
* Ring Width Inset
|
|
2566
|
+
* @see https://tailwindcss.com/docs/ring-width
|
|
2567
|
+
*/
|
|
2568
|
+
"ring-w-inset": ["ring-inset"],
|
|
2569
|
+
/**
|
|
2570
|
+
* Ring Color
|
|
2571
|
+
* @see https://tailwindcss.com/docs/ring-color
|
|
2572
|
+
*/
|
|
2573
|
+
"ring-color": [{
|
|
2574
|
+
ring: [colors]
|
|
2575
|
+
}],
|
|
2576
|
+
/**
|
|
2577
|
+
* Ring Opacity
|
|
2578
|
+
* @see https://tailwindcss.com/docs/ring-opacity
|
|
2579
|
+
*/
|
|
2580
|
+
"ring-opacity": [{
|
|
2581
|
+
"ring-opacity": [opacity]
|
|
2582
|
+
}],
|
|
2583
|
+
/**
|
|
2584
|
+
* Ring Offset Width
|
|
2585
|
+
* @see https://tailwindcss.com/docs/ring-offset-width
|
|
2586
|
+
*/
|
|
2587
|
+
"ring-offset-w": [{
|
|
2588
|
+
"ring-offset": [isLength, isArbitraryLength]
|
|
2589
|
+
}],
|
|
2590
|
+
/**
|
|
2591
|
+
* Ring Offset Color
|
|
2592
|
+
* @see https://tailwindcss.com/docs/ring-offset-color
|
|
2593
|
+
*/
|
|
2594
|
+
"ring-offset-color": [{
|
|
2595
|
+
"ring-offset": [colors]
|
|
2596
|
+
}],
|
|
2597
|
+
// Effects
|
|
2598
|
+
/**
|
|
2599
|
+
* Box Shadow
|
|
2600
|
+
* @see https://tailwindcss.com/docs/box-shadow
|
|
2601
|
+
*/
|
|
2602
|
+
shadow: [{
|
|
2603
|
+
shadow: ["", "inner", "none", isTshirtSize, isArbitraryShadow]
|
|
2604
|
+
}],
|
|
2605
|
+
/**
|
|
2606
|
+
* Box Shadow Color
|
|
2607
|
+
* @see https://tailwindcss.com/docs/box-shadow-color
|
|
2608
|
+
*/
|
|
2609
|
+
"shadow-color": [{
|
|
2610
|
+
shadow: [isAny]
|
|
2611
|
+
}],
|
|
2612
|
+
/**
|
|
2613
|
+
* Opacity
|
|
2614
|
+
* @see https://tailwindcss.com/docs/opacity
|
|
2615
|
+
*/
|
|
2616
|
+
opacity: [{
|
|
2617
|
+
opacity: [opacity]
|
|
2618
|
+
}],
|
|
2619
|
+
/**
|
|
2620
|
+
* Mix Blend Mode
|
|
2621
|
+
* @see https://tailwindcss.com/docs/mix-blend-mode
|
|
2622
|
+
*/
|
|
2623
|
+
"mix-blend": [{
|
|
2624
|
+
"mix-blend": [...getBlendModes(), "plus-lighter", "plus-darker"]
|
|
2625
|
+
}],
|
|
2626
|
+
/**
|
|
2627
|
+
* Background Blend Mode
|
|
2628
|
+
* @see https://tailwindcss.com/docs/background-blend-mode
|
|
2629
|
+
*/
|
|
2630
|
+
"bg-blend": [{
|
|
2631
|
+
"bg-blend": getBlendModes()
|
|
2632
|
+
}],
|
|
2633
|
+
// Filters
|
|
2634
|
+
/**
|
|
2635
|
+
* Filter
|
|
2636
|
+
* @deprecated since Tailwind CSS v3.0.0
|
|
2637
|
+
* @see https://tailwindcss.com/docs/filter
|
|
2638
|
+
*/
|
|
2639
|
+
filter: [{
|
|
2640
|
+
filter: ["", "none"]
|
|
2641
|
+
}],
|
|
2642
|
+
/**
|
|
2643
|
+
* Blur
|
|
2644
|
+
* @see https://tailwindcss.com/docs/blur
|
|
2645
|
+
*/
|
|
2646
|
+
blur: [{
|
|
2647
|
+
blur: [blur]
|
|
2648
|
+
}],
|
|
2649
|
+
/**
|
|
2650
|
+
* Brightness
|
|
2651
|
+
* @see https://tailwindcss.com/docs/brightness
|
|
2652
|
+
*/
|
|
2653
|
+
brightness: [{
|
|
2654
|
+
brightness: [brightness]
|
|
2655
|
+
}],
|
|
2656
|
+
/**
|
|
2657
|
+
* Contrast
|
|
2658
|
+
* @see https://tailwindcss.com/docs/contrast
|
|
2659
|
+
*/
|
|
2660
|
+
contrast: [{
|
|
2661
|
+
contrast: [contrast]
|
|
2662
|
+
}],
|
|
2663
|
+
/**
|
|
2664
|
+
* Drop Shadow
|
|
2665
|
+
* @see https://tailwindcss.com/docs/drop-shadow
|
|
2666
|
+
*/
|
|
2667
|
+
"drop-shadow": [{
|
|
2668
|
+
"drop-shadow": ["", "none", isTshirtSize, isArbitraryValue]
|
|
2669
|
+
}],
|
|
2670
|
+
/**
|
|
2671
|
+
* Grayscale
|
|
2672
|
+
* @see https://tailwindcss.com/docs/grayscale
|
|
2673
|
+
*/
|
|
2674
|
+
grayscale: [{
|
|
2675
|
+
grayscale: [grayscale]
|
|
2676
|
+
}],
|
|
2677
|
+
/**
|
|
2678
|
+
* Hue Rotate
|
|
2679
|
+
* @see https://tailwindcss.com/docs/hue-rotate
|
|
2680
|
+
*/
|
|
2681
|
+
"hue-rotate": [{
|
|
2682
|
+
"hue-rotate": [hueRotate]
|
|
2683
|
+
}],
|
|
2684
|
+
/**
|
|
2685
|
+
* Invert
|
|
2686
|
+
* @see https://tailwindcss.com/docs/invert
|
|
2687
|
+
*/
|
|
2688
|
+
invert: [{
|
|
2689
|
+
invert: [invert]
|
|
2690
|
+
}],
|
|
2691
|
+
/**
|
|
2692
|
+
* Saturate
|
|
2693
|
+
* @see https://tailwindcss.com/docs/saturate
|
|
2694
|
+
*/
|
|
2695
|
+
saturate: [{
|
|
2696
|
+
saturate: [saturate]
|
|
2697
|
+
}],
|
|
2698
|
+
/**
|
|
2699
|
+
* Sepia
|
|
2700
|
+
* @see https://tailwindcss.com/docs/sepia
|
|
2701
|
+
*/
|
|
2702
|
+
sepia: [{
|
|
2703
|
+
sepia: [sepia]
|
|
2704
|
+
}],
|
|
2705
|
+
/**
|
|
2706
|
+
* Backdrop Filter
|
|
2707
|
+
* @deprecated since Tailwind CSS v3.0.0
|
|
2708
|
+
* @see https://tailwindcss.com/docs/backdrop-filter
|
|
2709
|
+
*/
|
|
2710
|
+
"backdrop-filter": [{
|
|
2711
|
+
"backdrop-filter": ["", "none"]
|
|
2712
|
+
}],
|
|
2713
|
+
/**
|
|
2714
|
+
* Backdrop Blur
|
|
2715
|
+
* @see https://tailwindcss.com/docs/backdrop-blur
|
|
2716
|
+
*/
|
|
2717
|
+
"backdrop-blur": [{
|
|
2718
|
+
"backdrop-blur": [blur]
|
|
2719
|
+
}],
|
|
2720
|
+
/**
|
|
2721
|
+
* Backdrop Brightness
|
|
2722
|
+
* @see https://tailwindcss.com/docs/backdrop-brightness
|
|
2723
|
+
*/
|
|
2724
|
+
"backdrop-brightness": [{
|
|
2725
|
+
"backdrop-brightness": [brightness]
|
|
2726
|
+
}],
|
|
2727
|
+
/**
|
|
2728
|
+
* Backdrop Contrast
|
|
2729
|
+
* @see https://tailwindcss.com/docs/backdrop-contrast
|
|
2730
|
+
*/
|
|
2731
|
+
"backdrop-contrast": [{
|
|
2732
|
+
"backdrop-contrast": [contrast]
|
|
2733
|
+
}],
|
|
2734
|
+
/**
|
|
2735
|
+
* Backdrop Grayscale
|
|
2736
|
+
* @see https://tailwindcss.com/docs/backdrop-grayscale
|
|
2737
|
+
*/
|
|
2738
|
+
"backdrop-grayscale": [{
|
|
2739
|
+
"backdrop-grayscale": [grayscale]
|
|
2740
|
+
}],
|
|
2741
|
+
/**
|
|
2742
|
+
* Backdrop Hue Rotate
|
|
2743
|
+
* @see https://tailwindcss.com/docs/backdrop-hue-rotate
|
|
2744
|
+
*/
|
|
2745
|
+
"backdrop-hue-rotate": [{
|
|
2746
|
+
"backdrop-hue-rotate": [hueRotate]
|
|
2747
|
+
}],
|
|
2748
|
+
/**
|
|
2749
|
+
* Backdrop Invert
|
|
2750
|
+
* @see https://tailwindcss.com/docs/backdrop-invert
|
|
2751
|
+
*/
|
|
2752
|
+
"backdrop-invert": [{
|
|
2753
|
+
"backdrop-invert": [invert]
|
|
2754
|
+
}],
|
|
2755
|
+
/**
|
|
2756
|
+
* Backdrop Opacity
|
|
2757
|
+
* @see https://tailwindcss.com/docs/backdrop-opacity
|
|
2758
|
+
*/
|
|
2759
|
+
"backdrop-opacity": [{
|
|
2760
|
+
"backdrop-opacity": [opacity]
|
|
2761
|
+
}],
|
|
2762
|
+
/**
|
|
2763
|
+
* Backdrop Saturate
|
|
2764
|
+
* @see https://tailwindcss.com/docs/backdrop-saturate
|
|
2765
|
+
*/
|
|
2766
|
+
"backdrop-saturate": [{
|
|
2767
|
+
"backdrop-saturate": [saturate]
|
|
2768
|
+
}],
|
|
2769
|
+
/**
|
|
2770
|
+
* Backdrop Sepia
|
|
2771
|
+
* @see https://tailwindcss.com/docs/backdrop-sepia
|
|
2772
|
+
*/
|
|
2773
|
+
"backdrop-sepia": [{
|
|
2774
|
+
"backdrop-sepia": [sepia]
|
|
2775
|
+
}],
|
|
2776
|
+
// Tables
|
|
2777
|
+
/**
|
|
2778
|
+
* Border Collapse
|
|
2779
|
+
* @see https://tailwindcss.com/docs/border-collapse
|
|
2780
|
+
*/
|
|
2781
|
+
"border-collapse": [{
|
|
2782
|
+
border: ["collapse", "separate"]
|
|
2783
|
+
}],
|
|
2784
|
+
/**
|
|
2785
|
+
* Border Spacing
|
|
2786
|
+
* @see https://tailwindcss.com/docs/border-spacing
|
|
2787
|
+
*/
|
|
2788
|
+
"border-spacing": [{
|
|
2789
|
+
"border-spacing": [borderSpacing]
|
|
2790
|
+
}],
|
|
2791
|
+
/**
|
|
2792
|
+
* Border Spacing X
|
|
2793
|
+
* @see https://tailwindcss.com/docs/border-spacing
|
|
2794
|
+
*/
|
|
2795
|
+
"border-spacing-x": [{
|
|
2796
|
+
"border-spacing-x": [borderSpacing]
|
|
2797
|
+
}],
|
|
2798
|
+
/**
|
|
2799
|
+
* Border Spacing Y
|
|
2800
|
+
* @see https://tailwindcss.com/docs/border-spacing
|
|
2801
|
+
*/
|
|
2802
|
+
"border-spacing-y": [{
|
|
2803
|
+
"border-spacing-y": [borderSpacing]
|
|
2804
|
+
}],
|
|
2805
|
+
/**
|
|
2806
|
+
* Table Layout
|
|
2807
|
+
* @see https://tailwindcss.com/docs/table-layout
|
|
2808
|
+
*/
|
|
2809
|
+
"table-layout": [{
|
|
2810
|
+
table: ["auto", "fixed"]
|
|
2811
|
+
}],
|
|
2812
|
+
/**
|
|
2813
|
+
* Caption Side
|
|
2814
|
+
* @see https://tailwindcss.com/docs/caption-side
|
|
2815
|
+
*/
|
|
2816
|
+
caption: [{
|
|
2817
|
+
caption: ["top", "bottom"]
|
|
2818
|
+
}],
|
|
2819
|
+
// Transitions and Animation
|
|
2820
|
+
/**
|
|
2821
|
+
* Tranisition Property
|
|
2822
|
+
* @see https://tailwindcss.com/docs/transition-property
|
|
2823
|
+
*/
|
|
2824
|
+
transition: [{
|
|
2825
|
+
transition: ["none", "all", "", "colors", "opacity", "shadow", "transform", isArbitraryValue]
|
|
2826
|
+
}],
|
|
2827
|
+
/**
|
|
2828
|
+
* Transition Duration
|
|
2829
|
+
* @see https://tailwindcss.com/docs/transition-duration
|
|
2830
|
+
*/
|
|
2831
|
+
duration: [{
|
|
2832
|
+
duration: getNumberAndArbitrary()
|
|
2833
|
+
}],
|
|
2834
|
+
/**
|
|
2835
|
+
* Transition Timing Function
|
|
2836
|
+
* @see https://tailwindcss.com/docs/transition-timing-function
|
|
2837
|
+
*/
|
|
2838
|
+
ease: [{
|
|
2839
|
+
ease: ["linear", "in", "out", "in-out", isArbitraryValue]
|
|
2840
|
+
}],
|
|
2841
|
+
/**
|
|
2842
|
+
* Transition Delay
|
|
2843
|
+
* @see https://tailwindcss.com/docs/transition-delay
|
|
2844
|
+
*/
|
|
2845
|
+
delay: [{
|
|
2846
|
+
delay: getNumberAndArbitrary()
|
|
2847
|
+
}],
|
|
2848
|
+
/**
|
|
2849
|
+
* Animation
|
|
2850
|
+
* @see https://tailwindcss.com/docs/animation
|
|
2851
|
+
*/
|
|
2852
|
+
animate: [{
|
|
2853
|
+
animate: ["none", "spin", "ping", "pulse", "bounce", isArbitraryValue]
|
|
2854
|
+
}],
|
|
2855
|
+
// Transforms
|
|
2856
|
+
/**
|
|
2857
|
+
* Transform
|
|
2858
|
+
* @see https://tailwindcss.com/docs/transform
|
|
2859
|
+
*/
|
|
2860
|
+
transform: [{
|
|
2861
|
+
transform: ["", "gpu", "none"]
|
|
2862
|
+
}],
|
|
2863
|
+
/**
|
|
2864
|
+
* Scale
|
|
2865
|
+
* @see https://tailwindcss.com/docs/scale
|
|
2866
|
+
*/
|
|
2867
|
+
scale: [{
|
|
2868
|
+
scale: [scale]
|
|
2869
|
+
}],
|
|
2870
|
+
/**
|
|
2871
|
+
* Scale X
|
|
2872
|
+
* @see https://tailwindcss.com/docs/scale
|
|
2873
|
+
*/
|
|
2874
|
+
"scale-x": [{
|
|
2875
|
+
"scale-x": [scale]
|
|
2876
|
+
}],
|
|
2877
|
+
/**
|
|
2878
|
+
* Scale Y
|
|
2879
|
+
* @see https://tailwindcss.com/docs/scale
|
|
2880
|
+
*/
|
|
2881
|
+
"scale-y": [{
|
|
2882
|
+
"scale-y": [scale]
|
|
2883
|
+
}],
|
|
2884
|
+
/**
|
|
2885
|
+
* Rotate
|
|
2886
|
+
* @see https://tailwindcss.com/docs/rotate
|
|
2887
|
+
*/
|
|
2888
|
+
rotate: [{
|
|
2889
|
+
rotate: [isInteger, isArbitraryValue]
|
|
2890
|
+
}],
|
|
2891
|
+
/**
|
|
2892
|
+
* Translate X
|
|
2893
|
+
* @see https://tailwindcss.com/docs/translate
|
|
2894
|
+
*/
|
|
2895
|
+
"translate-x": [{
|
|
2896
|
+
"translate-x": [translate]
|
|
2897
|
+
}],
|
|
2898
|
+
/**
|
|
2899
|
+
* Translate Y
|
|
2900
|
+
* @see https://tailwindcss.com/docs/translate
|
|
2901
|
+
*/
|
|
2902
|
+
"translate-y": [{
|
|
2903
|
+
"translate-y": [translate]
|
|
2904
|
+
}],
|
|
2905
|
+
/**
|
|
2906
|
+
* Skew X
|
|
2907
|
+
* @see https://tailwindcss.com/docs/skew
|
|
2908
|
+
*/
|
|
2909
|
+
"skew-x": [{
|
|
2910
|
+
"skew-x": [skew]
|
|
2911
|
+
}],
|
|
2912
|
+
/**
|
|
2913
|
+
* Skew Y
|
|
2914
|
+
* @see https://tailwindcss.com/docs/skew
|
|
2915
|
+
*/
|
|
2916
|
+
"skew-y": [{
|
|
2917
|
+
"skew-y": [skew]
|
|
2918
|
+
}],
|
|
2919
|
+
/**
|
|
2920
|
+
* Transform Origin
|
|
2921
|
+
* @see https://tailwindcss.com/docs/transform-origin
|
|
2922
|
+
*/
|
|
2923
|
+
"transform-origin": [{
|
|
2924
|
+
origin: ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left", isArbitraryValue]
|
|
2925
|
+
}],
|
|
2926
|
+
// Interactivity
|
|
2927
|
+
/**
|
|
2928
|
+
* Accent Color
|
|
2929
|
+
* @see https://tailwindcss.com/docs/accent-color
|
|
2930
|
+
*/
|
|
2931
|
+
accent: [{
|
|
2932
|
+
accent: ["auto", colors]
|
|
2933
|
+
}],
|
|
2934
|
+
/**
|
|
2935
|
+
* Appearance
|
|
2936
|
+
* @see https://tailwindcss.com/docs/appearance
|
|
2937
|
+
*/
|
|
2938
|
+
appearance: [{
|
|
2939
|
+
appearance: ["none", "auto"]
|
|
2940
|
+
}],
|
|
2941
|
+
/**
|
|
2942
|
+
* Cursor
|
|
2943
|
+
* @see https://tailwindcss.com/docs/cursor
|
|
2944
|
+
*/
|
|
2945
|
+
cursor: [{
|
|
2946
|
+
cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", isArbitraryValue]
|
|
2947
|
+
}],
|
|
2948
|
+
/**
|
|
2949
|
+
* Caret Color
|
|
2950
|
+
* @see https://tailwindcss.com/docs/just-in-time-mode#caret-color-utilities
|
|
2951
|
+
*/
|
|
2952
|
+
"caret-color": [{
|
|
2953
|
+
caret: [colors]
|
|
2954
|
+
}],
|
|
2955
|
+
/**
|
|
2956
|
+
* Pointer Events
|
|
2957
|
+
* @see https://tailwindcss.com/docs/pointer-events
|
|
2958
|
+
*/
|
|
2959
|
+
"pointer-events": [{
|
|
2960
|
+
"pointer-events": ["none", "auto"]
|
|
2961
|
+
}],
|
|
2962
|
+
/**
|
|
2963
|
+
* Resize
|
|
2964
|
+
* @see https://tailwindcss.com/docs/resize
|
|
2965
|
+
*/
|
|
2966
|
+
resize: [{
|
|
2967
|
+
resize: ["none", "y", "x", ""]
|
|
2968
|
+
}],
|
|
2969
|
+
/**
|
|
2970
|
+
* Scroll Behavior
|
|
2971
|
+
* @see https://tailwindcss.com/docs/scroll-behavior
|
|
2972
|
+
*/
|
|
2973
|
+
"scroll-behavior": [{
|
|
2974
|
+
scroll: ["auto", "smooth"]
|
|
2975
|
+
}],
|
|
2976
|
+
/**
|
|
2977
|
+
* Scroll Margin
|
|
2978
|
+
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2979
|
+
*/
|
|
2980
|
+
"scroll-m": [{
|
|
2981
|
+
"scroll-m": getSpacingWithArbitrary()
|
|
2982
|
+
}],
|
|
2983
|
+
/**
|
|
2984
|
+
* Scroll Margin X
|
|
2985
|
+
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2986
|
+
*/
|
|
2987
|
+
"scroll-mx": [{
|
|
2988
|
+
"scroll-mx": getSpacingWithArbitrary()
|
|
2989
|
+
}],
|
|
2990
|
+
/**
|
|
2991
|
+
* Scroll Margin Y
|
|
2992
|
+
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2993
|
+
*/
|
|
2994
|
+
"scroll-my": [{
|
|
2995
|
+
"scroll-my": getSpacingWithArbitrary()
|
|
2996
|
+
}],
|
|
2997
|
+
/**
|
|
2998
|
+
* Scroll Margin Start
|
|
2999
|
+
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3000
|
+
*/
|
|
3001
|
+
"scroll-ms": [{
|
|
3002
|
+
"scroll-ms": getSpacingWithArbitrary()
|
|
3003
|
+
}],
|
|
3004
|
+
/**
|
|
3005
|
+
* Scroll Margin End
|
|
3006
|
+
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3007
|
+
*/
|
|
3008
|
+
"scroll-me": [{
|
|
3009
|
+
"scroll-me": getSpacingWithArbitrary()
|
|
3010
|
+
}],
|
|
3011
|
+
/**
|
|
3012
|
+
* Scroll Margin Top
|
|
3013
|
+
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3014
|
+
*/
|
|
3015
|
+
"scroll-mt": [{
|
|
3016
|
+
"scroll-mt": getSpacingWithArbitrary()
|
|
3017
|
+
}],
|
|
3018
|
+
/**
|
|
3019
|
+
* Scroll Margin Right
|
|
3020
|
+
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3021
|
+
*/
|
|
3022
|
+
"scroll-mr": [{
|
|
3023
|
+
"scroll-mr": getSpacingWithArbitrary()
|
|
3024
|
+
}],
|
|
3025
|
+
/**
|
|
3026
|
+
* Scroll Margin Bottom
|
|
3027
|
+
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3028
|
+
*/
|
|
3029
|
+
"scroll-mb": [{
|
|
3030
|
+
"scroll-mb": getSpacingWithArbitrary()
|
|
3031
|
+
}],
|
|
3032
|
+
/**
|
|
3033
|
+
* Scroll Margin Left
|
|
3034
|
+
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3035
|
+
*/
|
|
3036
|
+
"scroll-ml": [{
|
|
3037
|
+
"scroll-ml": getSpacingWithArbitrary()
|
|
3038
|
+
}],
|
|
3039
|
+
/**
|
|
3040
|
+
* Scroll Padding
|
|
3041
|
+
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3042
|
+
*/
|
|
3043
|
+
"scroll-p": [{
|
|
3044
|
+
"scroll-p": getSpacingWithArbitrary()
|
|
3045
|
+
}],
|
|
3046
|
+
/**
|
|
3047
|
+
* Scroll Padding X
|
|
3048
|
+
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3049
|
+
*/
|
|
3050
|
+
"scroll-px": [{
|
|
3051
|
+
"scroll-px": getSpacingWithArbitrary()
|
|
3052
|
+
}],
|
|
3053
|
+
/**
|
|
3054
|
+
* Scroll Padding Y
|
|
3055
|
+
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3056
|
+
*/
|
|
3057
|
+
"scroll-py": [{
|
|
3058
|
+
"scroll-py": getSpacingWithArbitrary()
|
|
3059
|
+
}],
|
|
3060
|
+
/**
|
|
3061
|
+
* Scroll Padding Start
|
|
3062
|
+
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3063
|
+
*/
|
|
3064
|
+
"scroll-ps": [{
|
|
3065
|
+
"scroll-ps": getSpacingWithArbitrary()
|
|
3066
|
+
}],
|
|
3067
|
+
/**
|
|
3068
|
+
* Scroll Padding End
|
|
3069
|
+
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3070
|
+
*/
|
|
3071
|
+
"scroll-pe": [{
|
|
3072
|
+
"scroll-pe": getSpacingWithArbitrary()
|
|
3073
|
+
}],
|
|
3074
|
+
/**
|
|
3075
|
+
* Scroll Padding Top
|
|
3076
|
+
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3077
|
+
*/
|
|
3078
|
+
"scroll-pt": [{
|
|
3079
|
+
"scroll-pt": getSpacingWithArbitrary()
|
|
3080
|
+
}],
|
|
3081
|
+
/**
|
|
3082
|
+
* Scroll Padding Right
|
|
3083
|
+
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3084
|
+
*/
|
|
3085
|
+
"scroll-pr": [{
|
|
3086
|
+
"scroll-pr": getSpacingWithArbitrary()
|
|
3087
|
+
}],
|
|
3088
|
+
/**
|
|
3089
|
+
* Scroll Padding Bottom
|
|
3090
|
+
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3091
|
+
*/
|
|
3092
|
+
"scroll-pb": [{
|
|
3093
|
+
"scroll-pb": getSpacingWithArbitrary()
|
|
3094
|
+
}],
|
|
3095
|
+
/**
|
|
3096
|
+
* Scroll Padding Left
|
|
3097
|
+
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3098
|
+
*/
|
|
3099
|
+
"scroll-pl": [{
|
|
3100
|
+
"scroll-pl": getSpacingWithArbitrary()
|
|
3101
|
+
}],
|
|
3102
|
+
/**
|
|
3103
|
+
* Scroll Snap Align
|
|
3104
|
+
* @see https://tailwindcss.com/docs/scroll-snap-align
|
|
3105
|
+
*/
|
|
3106
|
+
"snap-align": [{
|
|
3107
|
+
snap: ["start", "end", "center", "align-none"]
|
|
3108
|
+
}],
|
|
3109
|
+
/**
|
|
3110
|
+
* Scroll Snap Stop
|
|
3111
|
+
* @see https://tailwindcss.com/docs/scroll-snap-stop
|
|
3112
|
+
*/
|
|
3113
|
+
"snap-stop": [{
|
|
3114
|
+
snap: ["normal", "always"]
|
|
3115
|
+
}],
|
|
3116
|
+
/**
|
|
3117
|
+
* Scroll Snap Type
|
|
3118
|
+
* @see https://tailwindcss.com/docs/scroll-snap-type
|
|
3119
|
+
*/
|
|
3120
|
+
"snap-type": [{
|
|
3121
|
+
snap: ["none", "x", "y", "both"]
|
|
3122
|
+
}],
|
|
3123
|
+
/**
|
|
3124
|
+
* Scroll Snap Type Strictness
|
|
3125
|
+
* @see https://tailwindcss.com/docs/scroll-snap-type
|
|
3126
|
+
*/
|
|
3127
|
+
"snap-strictness": [{
|
|
3128
|
+
snap: ["mandatory", "proximity"]
|
|
3129
|
+
}],
|
|
3130
|
+
/**
|
|
3131
|
+
* Touch Action
|
|
3132
|
+
* @see https://tailwindcss.com/docs/touch-action
|
|
3133
|
+
*/
|
|
3134
|
+
touch: [{
|
|
3135
|
+
touch: ["auto", "none", "manipulation"]
|
|
3136
|
+
}],
|
|
3137
|
+
/**
|
|
3138
|
+
* Touch Action X
|
|
3139
|
+
* @see https://tailwindcss.com/docs/touch-action
|
|
3140
|
+
*/
|
|
3141
|
+
"touch-x": [{
|
|
3142
|
+
"touch-pan": ["x", "left", "right"]
|
|
3143
|
+
}],
|
|
3144
|
+
/**
|
|
3145
|
+
* Touch Action Y
|
|
3146
|
+
* @see https://tailwindcss.com/docs/touch-action
|
|
3147
|
+
*/
|
|
3148
|
+
"touch-y": [{
|
|
3149
|
+
"touch-pan": ["y", "up", "down"]
|
|
3150
|
+
}],
|
|
3151
|
+
/**
|
|
3152
|
+
* Touch Action Pinch Zoom
|
|
3153
|
+
* @see https://tailwindcss.com/docs/touch-action
|
|
3154
|
+
*/
|
|
3155
|
+
"touch-pz": ["touch-pinch-zoom"],
|
|
3156
|
+
/**
|
|
3157
|
+
* User Select
|
|
3158
|
+
* @see https://tailwindcss.com/docs/user-select
|
|
3159
|
+
*/
|
|
3160
|
+
select: [{
|
|
3161
|
+
select: ["none", "text", "all", "auto"]
|
|
3162
|
+
}],
|
|
3163
|
+
/**
|
|
3164
|
+
* Will Change
|
|
3165
|
+
* @see https://tailwindcss.com/docs/will-change
|
|
3166
|
+
*/
|
|
3167
|
+
"will-change": [{
|
|
3168
|
+
"will-change": ["auto", "scroll", "contents", "transform", isArbitraryValue]
|
|
3169
|
+
}],
|
|
3170
|
+
// SVG
|
|
3171
|
+
/**
|
|
3172
|
+
* Fill
|
|
3173
|
+
* @see https://tailwindcss.com/docs/fill
|
|
3174
|
+
*/
|
|
3175
|
+
fill: [{
|
|
3176
|
+
fill: [colors, "none"]
|
|
3177
|
+
}],
|
|
3178
|
+
/**
|
|
3179
|
+
* Stroke Width
|
|
3180
|
+
* @see https://tailwindcss.com/docs/stroke-width
|
|
3181
|
+
*/
|
|
3182
|
+
"stroke-w": [{
|
|
3183
|
+
stroke: [isLength, isArbitraryLength, isArbitraryNumber]
|
|
3184
|
+
}],
|
|
3185
|
+
/**
|
|
3186
|
+
* Stroke
|
|
3187
|
+
* @see https://tailwindcss.com/docs/stroke
|
|
3188
|
+
*/
|
|
3189
|
+
stroke: [{
|
|
3190
|
+
stroke: [colors, "none"]
|
|
3191
|
+
}],
|
|
3192
|
+
// Accessibility
|
|
3193
|
+
/**
|
|
3194
|
+
* Screen Readers
|
|
3195
|
+
* @see https://tailwindcss.com/docs/screen-readers
|
|
3196
|
+
*/
|
|
3197
|
+
sr: ["sr-only", "not-sr-only"],
|
|
3198
|
+
/**
|
|
3199
|
+
* Forced Color Adjust
|
|
3200
|
+
* @see https://tailwindcss.com/docs/forced-color-adjust
|
|
3201
|
+
*/
|
|
3202
|
+
"forced-color-adjust": [{
|
|
3203
|
+
"forced-color-adjust": ["auto", "none"]
|
|
3204
|
+
}]
|
|
3205
|
+
},
|
|
3206
|
+
conflictingClassGroups: {
|
|
3207
|
+
overflow: ["overflow-x", "overflow-y"],
|
|
3208
|
+
overscroll: ["overscroll-x", "overscroll-y"],
|
|
3209
|
+
inset: ["inset-x", "inset-y", "start", "end", "top", "right", "bottom", "left"],
|
|
3210
|
+
"inset-x": ["right", "left"],
|
|
3211
|
+
"inset-y": ["top", "bottom"],
|
|
3212
|
+
flex: ["basis", "grow", "shrink"],
|
|
3213
|
+
gap: ["gap-x", "gap-y"],
|
|
3214
|
+
p: ["px", "py", "ps", "pe", "pt", "pr", "pb", "pl"],
|
|
3215
|
+
px: ["pr", "pl"],
|
|
3216
|
+
py: ["pt", "pb"],
|
|
3217
|
+
m: ["mx", "my", "ms", "me", "mt", "mr", "mb", "ml"],
|
|
3218
|
+
mx: ["mr", "ml"],
|
|
3219
|
+
my: ["mt", "mb"],
|
|
3220
|
+
size: ["w", "h"],
|
|
3221
|
+
"font-size": ["leading"],
|
|
3222
|
+
"fvn-normal": ["fvn-ordinal", "fvn-slashed-zero", "fvn-figure", "fvn-spacing", "fvn-fraction"],
|
|
3223
|
+
"fvn-ordinal": ["fvn-normal"],
|
|
3224
|
+
"fvn-slashed-zero": ["fvn-normal"],
|
|
3225
|
+
"fvn-figure": ["fvn-normal"],
|
|
3226
|
+
"fvn-spacing": ["fvn-normal"],
|
|
3227
|
+
"fvn-fraction": ["fvn-normal"],
|
|
3228
|
+
"line-clamp": ["display", "overflow"],
|
|
3229
|
+
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"],
|
|
3230
|
+
"rounded-s": ["rounded-ss", "rounded-es"],
|
|
3231
|
+
"rounded-e": ["rounded-se", "rounded-ee"],
|
|
3232
|
+
"rounded-t": ["rounded-tl", "rounded-tr"],
|
|
3233
|
+
"rounded-r": ["rounded-tr", "rounded-br"],
|
|
3234
|
+
"rounded-b": ["rounded-br", "rounded-bl"],
|
|
3235
|
+
"rounded-l": ["rounded-tl", "rounded-bl"],
|
|
3236
|
+
"border-spacing": ["border-spacing-x", "border-spacing-y"],
|
|
3237
|
+
"border-w": ["border-w-s", "border-w-e", "border-w-t", "border-w-r", "border-w-b", "border-w-l"],
|
|
3238
|
+
"border-w-x": ["border-w-r", "border-w-l"],
|
|
3239
|
+
"border-w-y": ["border-w-t", "border-w-b"],
|
|
3240
|
+
"border-color": ["border-color-s", "border-color-e", "border-color-t", "border-color-r", "border-color-b", "border-color-l"],
|
|
3241
|
+
"border-color-x": ["border-color-r", "border-color-l"],
|
|
3242
|
+
"border-color-y": ["border-color-t", "border-color-b"],
|
|
3243
|
+
"scroll-m": ["scroll-mx", "scroll-my", "scroll-ms", "scroll-me", "scroll-mt", "scroll-mr", "scroll-mb", "scroll-ml"],
|
|
3244
|
+
"scroll-mx": ["scroll-mr", "scroll-ml"],
|
|
3245
|
+
"scroll-my": ["scroll-mt", "scroll-mb"],
|
|
3246
|
+
"scroll-p": ["scroll-px", "scroll-py", "scroll-ps", "scroll-pe", "scroll-pt", "scroll-pr", "scroll-pb", "scroll-pl"],
|
|
3247
|
+
"scroll-px": ["scroll-pr", "scroll-pl"],
|
|
3248
|
+
"scroll-py": ["scroll-pt", "scroll-pb"],
|
|
3249
|
+
touch: ["touch-x", "touch-y", "touch-pz"],
|
|
3250
|
+
"touch-x": ["touch"],
|
|
3251
|
+
"touch-y": ["touch"],
|
|
3252
|
+
"touch-pz": ["touch"]
|
|
3253
|
+
},
|
|
3254
|
+
conflictingClassGroupModifiers: {
|
|
3255
|
+
"font-size": ["leading"]
|
|
3256
|
+
}
|
|
3257
|
+
};
|
|
3258
|
+
};
|
|
3259
|
+
var mergeConfigs = (baseConfig, {
|
|
3260
|
+
cacheSize,
|
|
3261
|
+
prefix,
|
|
3262
|
+
separator,
|
|
3263
|
+
experimentalParseClassName,
|
|
3264
|
+
extend = {},
|
|
3265
|
+
override = {}
|
|
3266
|
+
}) => {
|
|
3267
|
+
overrideProperty(baseConfig, "cacheSize", cacheSize);
|
|
3268
|
+
overrideProperty(baseConfig, "prefix", prefix);
|
|
3269
|
+
overrideProperty(baseConfig, "separator", separator);
|
|
3270
|
+
overrideProperty(baseConfig, "experimentalParseClassName", experimentalParseClassName);
|
|
3271
|
+
for (const configKey in override) {
|
|
3272
|
+
overrideConfigProperties(baseConfig[configKey], override[configKey]);
|
|
3273
|
+
}
|
|
3274
|
+
for (const key in extend) {
|
|
3275
|
+
mergeConfigProperties(baseConfig[key], extend[key]);
|
|
3276
|
+
}
|
|
3277
|
+
return baseConfig;
|
|
3278
|
+
};
|
|
3279
|
+
var overrideProperty = (baseObject, overrideKey, overrideValue) => {
|
|
3280
|
+
if (overrideValue !== void 0) {
|
|
3281
|
+
baseObject[overrideKey] = overrideValue;
|
|
3282
|
+
}
|
|
3283
|
+
};
|
|
3284
|
+
var overrideConfigProperties = (baseObject, overrideObject) => {
|
|
3285
|
+
if (overrideObject) {
|
|
3286
|
+
for (const key in overrideObject) {
|
|
3287
|
+
overrideProperty(baseObject, key, overrideObject[key]);
|
|
3288
|
+
}
|
|
3289
|
+
}
|
|
3290
|
+
};
|
|
3291
|
+
var mergeConfigProperties = (baseObject, mergeObject) => {
|
|
3292
|
+
if (mergeObject) {
|
|
3293
|
+
for (const key in mergeObject) {
|
|
3294
|
+
const mergeValue = mergeObject[key];
|
|
3295
|
+
if (mergeValue !== void 0) {
|
|
3296
|
+
baseObject[key] = (baseObject[key] || []).concat(mergeValue);
|
|
3297
|
+
}
|
|
3298
|
+
}
|
|
3299
|
+
}
|
|
3300
|
+
};
|
|
3301
|
+
var extendTailwindMerge = (configExtension, ...createConfig) => typeof configExtension === "function" ? createTailwindMerge(getDefaultConfig, configExtension, ...createConfig) : createTailwindMerge(() => mergeConfigs(getDefaultConfig(), configExtension), ...createConfig);
|
|
3302
|
+
|
|
3303
|
+
// src/editor/utils/classname.ts
|
|
3304
|
+
var twMerge = extendTailwindMerge({
|
|
802
3305
|
prefix: "mly-"
|
|
803
3306
|
});
|
|
804
3307
|
function cn(...inputs) {
|
|
@@ -3675,7 +6178,7 @@ function VariableIcon(props) {
|
|
|
3675
6178
|
"div",
|
|
3676
6179
|
{
|
|
3677
6180
|
className: cn(
|
|
3678
|
-
"mly-flex mly-size-5 mly-items-center mly-justify-center mly-rounded-md mly-border",
|
|
6181
|
+
"mly-flex mly-size-5 mly-items-center mly-justify-center mly-rounded-md mly-border mly-border-gray-200",
|
|
3679
6182
|
className
|
|
3680
6183
|
),
|
|
3681
6184
|
children
|
|
@@ -3696,6 +6199,10 @@ function VariableView(props) {
|
|
|
3696
6199
|
const variableRender = (_b = (_a = getNodeOptions(editor, "variable")) == null ? void 0 : _a.renderVariable) != null ? _b : DEFAULT_RENDER_VARIABLE_FUNCTION;
|
|
3697
6200
|
return variableRender;
|
|
3698
6201
|
}, [editor]);
|
|
6202
|
+
const disableInput = (0, import_react19.useMemo)(() => {
|
|
6203
|
+
var _a, _b;
|
|
6204
|
+
return (_b = (_a = getNodeOptions(editor, "variable")) == null ? void 0 : _a.disableInput) != null ? _b : false;
|
|
6205
|
+
}, [editor]);
|
|
3699
6206
|
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
3700
6207
|
import_react18.NodeViewWrapper,
|
|
3701
6208
|
{
|
|
@@ -3729,6 +6236,7 @@ function VariableView(props) {
|
|
|
3729
6236
|
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
3730
6237
|
"input",
|
|
3731
6238
|
__spreadProps(__spreadValues({}, AUTOCOMPLETE_PASSWORD_MANAGERS_OFF), {
|
|
6239
|
+
disabled: disableInput,
|
|
3732
6240
|
value: id != null ? id : "",
|
|
3733
6241
|
onChange: (e) => {
|
|
3734
6242
|
updateAttributes2({
|
|
@@ -3736,7 +6244,7 @@ function VariableView(props) {
|
|
|
3736
6244
|
});
|
|
3737
6245
|
},
|
|
3738
6246
|
placeholder: "ie. name...",
|
|
3739
|
-
className: "mly-h-7 mly-w-36 mly-rounded-md mly-bg-soft-gray mly-px-2 mly-text-sm mly-text-midnight-gray focus:mly-bg-soft-gray focus:mly-outline-none"
|
|
6247
|
+
className: "mly-h-7 mly-w-36 mly-rounded-md mly-bg-soft-gray mly-px-2 mly-text-sm mly-text-midnight-gray focus:mly-bg-soft-gray focus:mly-outline-none disabled:mly-cursor-not-allowed"
|
|
3740
6248
|
})
|
|
3741
6249
|
)
|
|
3742
6250
|
] }),
|
|
@@ -3771,7 +6279,7 @@ var DefaultRenderVariable = (props) => {
|
|
|
3771
6279
|
const { variable, fallback, from } = props;
|
|
3772
6280
|
const { name, required, valid } = variable;
|
|
3773
6281
|
if (from === "button-variable") {
|
|
3774
|
-
return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: "mly-inline-grid mly-
|
|
6282
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: "mly-inline-grid mly-max-w-xs mly-grid-cols-[12px_1fr] mly-items-center mly-gap-1.5 mly-rounded-md mly-border mly-border-[var(--button-var-border-color)] mly-px-2 mly-py-px mly-font-mono mly-text-xs", children: [
|
|
3775
6283
|
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_lucide_react14.Braces, { className: "mly-h-3 mly-w-3 mly-shrink-0 mly-stroke-[2.5]" }),
|
|
3776
6284
|
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: "mly-min-w-0 mly-truncate mly-text-left", children: name })
|
|
3777
6285
|
] });
|
|
@@ -3781,7 +6289,7 @@ var DefaultRenderVariable = (props) => {
|
|
|
3781
6289
|
"div",
|
|
3782
6290
|
{
|
|
3783
6291
|
className: cn(
|
|
3784
|
-
"mly-inline-grid mly-h-7 mly-min-w-28 mly-max-w-xs mly-grid-cols-[12px_1fr] mly-items-center mly-gap-1.5 mly-rounded-md mly-border mly-px-2 mly-font-mono mly-text-sm hover:mly-bg-soft-gray",
|
|
6292
|
+
"mly-inline-grid mly-h-7 mly-min-w-28 mly-max-w-xs mly-grid-cols-[12px_1fr] mly-items-center mly-gap-1.5 mly-rounded-md mly-border mly-border-gray-200 mly-px-2 mly-font-mono mly-text-sm hover:mly-bg-soft-gray",
|
|
3785
6293
|
!valid && "mly-border-rose-400 mly-bg-rose-50 mly-text-rose-600 hover:mly-bg-rose-100"
|
|
3786
6294
|
),
|
|
3787
6295
|
children: [
|
|
@@ -3827,6 +6335,7 @@ var VariableExtension = import_core11.Node.create({
|
|
|
3827
6335
|
variables: DEFAULT_VARIABLES,
|
|
3828
6336
|
variableSuggestionsPopover: DEFAULT_VARIABLE_SUGGESTION_POPOVER,
|
|
3829
6337
|
renderVariable: DEFAULT_RENDER_VARIABLE_FUNCTION,
|
|
6338
|
+
disableInput: false,
|
|
3830
6339
|
renderLabel(props) {
|
|
3831
6340
|
var _a;
|
|
3832
6341
|
const { node } = props;
|
|
@@ -4127,13 +6636,14 @@ function Select(props) {
|
|
|
4127
6636
|
tooltip,
|
|
4128
6637
|
className,
|
|
4129
6638
|
icon: Icon,
|
|
4130
|
-
iconClassName
|
|
6639
|
+
iconClassName,
|
|
6640
|
+
placeholder
|
|
4131
6641
|
} = props;
|
|
4132
6642
|
const selectId = `mly${(0, import_react23.useId)()}`;
|
|
4133
6643
|
const content = /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "mly-relative", children: [
|
|
4134
6644
|
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)("label", { htmlFor: selectId, className: "mly-sr-only", children: label }),
|
|
4135
6645
|
Icon && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "mly-pointer-events-none mly-absolute mly-inset-y-0 mly-left-2 mly-z-20 mly-flex mly-items-center", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Icon, { className: cn("mly-size-3", iconClassName) }) }),
|
|
4136
|
-
/* @__PURE__ */ (0, import_jsx_runtime31.
|
|
6646
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
|
|
4137
6647
|
"select",
|
|
4138
6648
|
{
|
|
4139
6649
|
id: selectId,
|
|
@@ -4142,9 +6652,12 @@ function Select(props) {
|
|
|
4142
6652
|
!!Icon && "mly-pl-7",
|
|
4143
6653
|
className
|
|
4144
6654
|
),
|
|
4145
|
-
value,
|
|
6655
|
+
value: value || "",
|
|
4146
6656
|
onChange: (event) => onValueChange(event.target.value),
|
|
4147
|
-
children:
|
|
6657
|
+
children: [
|
|
6658
|
+
placeholder && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("option", { value: "", disabled: true, hidden: true, children: placeholder }),
|
|
6659
|
+
options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("option", { value: option.value, children: option.label }, option.value))
|
|
6660
|
+
]
|
|
4148
6661
|
}
|
|
4149
6662
|
),
|
|
4150
6663
|
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "mly-pointer-events-none mly-absolute mly-inset-y-0 mly-right-0 mly-z-10 mly-flex mly-h-full mly-w-7 mly-items-center mly-justify-center mly-text-gray-600 peer-disabled:mly-opacity-50", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
@@ -4311,18 +6824,18 @@ function ButtonView(props) {
|
|
|
4311
6824
|
),
|
|
4312
6825
|
tabIndex: -1,
|
|
4313
6826
|
style: {
|
|
4314
|
-
backgroundColor: variant === "filled" ? buttonColor : "transparent",
|
|
4315
|
-
color: textColor,
|
|
6827
|
+
backgroundColor: variant === "filled" ? buttonColor || "var(--mly-button-background-color)" : "transparent",
|
|
6828
|
+
color: textColor || "var(--mly-button-text-color)",
|
|
4316
6829
|
borderWidth: 2,
|
|
4317
6830
|
borderStyle: "solid",
|
|
4318
|
-
borderColor: buttonColor,
|
|
6831
|
+
borderColor: buttonColor || "var(--mly-button-background-color)",
|
|
4319
6832
|
// decrease the border color opacity to 80%
|
|
4320
6833
|
// so that it's not too prominent
|
|
4321
|
-
"--button-var-border-color": `${textColor}80
|
|
4322
|
-
paddingTop,
|
|
4323
|
-
paddingRight,
|
|
4324
|
-
paddingBottom,
|
|
4325
|
-
paddingLeft
|
|
6834
|
+
"--button-var-border-color": textColor ? `${textColor}80` : "color-mix(in srgb, var(--mly-button-text-color) 80%, transparent)",
|
|
6835
|
+
paddingTop: paddingTop || "var(--mly-button-padding-top)",
|
|
6836
|
+
paddingRight: paddingRight || "var(--mly-button-padding-right)",
|
|
6837
|
+
paddingBottom: paddingBottom || "var(--mly-button-padding-bottom)",
|
|
6838
|
+
paddingLeft: paddingLeft || "var(--mly-button-padding-left)"
|
|
4326
6839
|
},
|
|
4327
6840
|
onClick: (e) => {
|
|
4328
6841
|
e.preventDefault();
|
|
@@ -4421,7 +6934,8 @@ function ButtonView(props) {
|
|
|
4421
6934
|
paddingLeft: paddingX
|
|
4422
6935
|
});
|
|
4423
6936
|
},
|
|
4424
|
-
tooltip: "Size"
|
|
6937
|
+
tooltip: "Size",
|
|
6938
|
+
placeholder: "Size"
|
|
4425
6939
|
}
|
|
4426
6940
|
)
|
|
4427
6941
|
] }),
|
|
@@ -4460,7 +6974,7 @@ function ButtonView(props) {
|
|
|
4460
6974
|
BackgroundColorPickerPopup,
|
|
4461
6975
|
{
|
|
4462
6976
|
variant,
|
|
4463
|
-
color: buttonColor,
|
|
6977
|
+
color: buttonColor || "transparent",
|
|
4464
6978
|
onChange: (color) => {
|
|
4465
6979
|
updateAttributes2({
|
|
4466
6980
|
buttonColor: color
|
|
@@ -4471,7 +6985,7 @@ function ButtonView(props) {
|
|
|
4471
6985
|
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
4472
6986
|
TextColorPickerPopup,
|
|
4473
6987
|
{
|
|
4474
|
-
color: textColor,
|
|
6988
|
+
color: textColor || "transparent",
|
|
4475
6989
|
onChange: (color) => {
|
|
4476
6990
|
updateAttributes2({
|
|
4477
6991
|
textColor: color
|
|
@@ -4559,12 +7073,12 @@ function TextColorPickerPopup(props) {
|
|
|
4559
7073
|
var DEFAULT_BUTTON_ALIGNMENT = "left";
|
|
4560
7074
|
var DEFAULT_BUTTON_VARIANT = "filled";
|
|
4561
7075
|
var DEFAULT_BUTTON_BORDER_RADIUS = "smooth";
|
|
4562
|
-
var DEFAULT_BUTTON_BACKGROUND_COLOR =
|
|
4563
|
-
var DEFAULT_BUTTON_TEXT_COLOR =
|
|
4564
|
-
var DEFAULT_BUTTON_PADDING_TOP =
|
|
4565
|
-
var DEFAULT_BUTTON_PADDING_RIGHT =
|
|
4566
|
-
var DEFAULT_BUTTON_PADDING_BOTTOM =
|
|
4567
|
-
var DEFAULT_BUTTON_PADDING_LEFT =
|
|
7076
|
+
var DEFAULT_BUTTON_BACKGROUND_COLOR = null;
|
|
7077
|
+
var DEFAULT_BUTTON_TEXT_COLOR = null;
|
|
7078
|
+
var DEFAULT_BUTTON_PADDING_TOP = null;
|
|
7079
|
+
var DEFAULT_BUTTON_PADDING_RIGHT = null;
|
|
7080
|
+
var DEFAULT_BUTTON_PADDING_BOTTOM = null;
|
|
7081
|
+
var DEFAULT_BUTTON_PADDING_LEFT = null;
|
|
4568
7082
|
var allowedButtonVariant = ["filled", "outline"];
|
|
4569
7083
|
var allowedButtonBorderRadius = ["sharp", "smooth", "round"];
|
|
4570
7084
|
var ButtonExtension = import_core12.Node.create({
|
|
@@ -4660,28 +7174,6 @@ var ButtonExtension = import_core12.Node.create({
|
|
|
4660
7174
|
};
|
|
4661
7175
|
}
|
|
4662
7176
|
},
|
|
4663
|
-
buttonColor: {
|
|
4664
|
-
default: DEFAULT_BUTTON_BACKGROUND_COLOR,
|
|
4665
|
-
parseHTML: (element) => {
|
|
4666
|
-
return element.getAttribute("data-button-color") || DEFAULT_BUTTON_BACKGROUND_COLOR;
|
|
4667
|
-
},
|
|
4668
|
-
renderHTML: (attributes) => {
|
|
4669
|
-
return {
|
|
4670
|
-
"data-button-color": attributes.buttonColor
|
|
4671
|
-
};
|
|
4672
|
-
}
|
|
4673
|
-
},
|
|
4674
|
-
textColor: {
|
|
4675
|
-
default: DEFAULT_BUTTON_TEXT_COLOR,
|
|
4676
|
-
parseHTML: (element) => {
|
|
4677
|
-
return element.getAttribute("data-text-color") || DEFAULT_BUTTON_TEXT_COLOR;
|
|
4678
|
-
},
|
|
4679
|
-
renderHTML: (attributes) => {
|
|
4680
|
-
return {
|
|
4681
|
-
"data-text-color": attributes.textColor
|
|
4682
|
-
};
|
|
4683
|
-
}
|
|
4684
|
-
},
|
|
4685
7177
|
showIfKey: {
|
|
4686
7178
|
default: DEFAULT_SECTION_SHOW_IF_KEY,
|
|
4687
7179
|
parseHTML: (element) => {
|
|
@@ -4696,62 +7188,12 @@ var ButtonExtension = import_core12.Node.create({
|
|
|
4696
7188
|
};
|
|
4697
7189
|
}
|
|
4698
7190
|
},
|
|
4699
|
-
|
|
4700
|
-
|
|
4701
|
-
|
|
4702
|
-
|
|
4703
|
-
|
|
4704
|
-
|
|
4705
|
-
);
|
|
4706
|
-
},
|
|
4707
|
-
renderHTML: (attributes) => {
|
|
4708
|
-
return {
|
|
4709
|
-
"data-padding-top": attributes.paddingTop
|
|
4710
|
-
};
|
|
4711
|
-
}
|
|
4712
|
-
},
|
|
4713
|
-
paddingRight: {
|
|
4714
|
-
default: DEFAULT_BUTTON_PADDING_RIGHT,
|
|
4715
|
-
parseHTML: (element) => {
|
|
4716
|
-
return parseInt(
|
|
4717
|
-
element.getAttribute("data-padding-right") || DEFAULT_BUTTON_PADDING_RIGHT.toString(),
|
|
4718
|
-
10
|
|
4719
|
-
);
|
|
4720
|
-
},
|
|
4721
|
-
renderHTML: (attributes) => {
|
|
4722
|
-
return {
|
|
4723
|
-
"data-padding-right": attributes.paddingRight
|
|
4724
|
-
};
|
|
4725
|
-
}
|
|
4726
|
-
},
|
|
4727
|
-
paddingBottom: {
|
|
4728
|
-
default: DEFAULT_BUTTON_PADDING_BOTTOM,
|
|
4729
|
-
parseHTML: (element) => {
|
|
4730
|
-
return parseInt(
|
|
4731
|
-
element.getAttribute("data-padding-bottom") || DEFAULT_BUTTON_PADDING_BOTTOM.toString(),
|
|
4732
|
-
10
|
|
4733
|
-
);
|
|
4734
|
-
},
|
|
4735
|
-
renderHTML: (attributes) => {
|
|
4736
|
-
return {
|
|
4737
|
-
"data-padding-bottom": attributes.paddingBottom
|
|
4738
|
-
};
|
|
4739
|
-
}
|
|
4740
|
-
},
|
|
4741
|
-
paddingLeft: {
|
|
4742
|
-
default: DEFAULT_BUTTON_PADDING_LEFT,
|
|
4743
|
-
parseHTML: (element) => {
|
|
4744
|
-
return parseInt(
|
|
4745
|
-
element.getAttribute("data-padding-left") || DEFAULT_BUTTON_PADDING_LEFT.toString(),
|
|
4746
|
-
10
|
|
4747
|
-
);
|
|
4748
|
-
},
|
|
4749
|
-
renderHTML: (attributes) => {
|
|
4750
|
-
return {
|
|
4751
|
-
"data-padding-left": attributes.paddingLeft
|
|
4752
|
-
};
|
|
4753
|
-
}
|
|
4754
|
-
}
|
|
7191
|
+
buttonColor: DEFAULT_BUTTON_BACKGROUND_COLOR,
|
|
7192
|
+
textColor: DEFAULT_BUTTON_TEXT_COLOR,
|
|
7193
|
+
paddingTop: DEFAULT_BUTTON_PADDING_TOP,
|
|
7194
|
+
paddingRight: DEFAULT_BUTTON_PADDING_RIGHT,
|
|
7195
|
+
paddingBottom: DEFAULT_BUTTON_PADDING_BOTTOM,
|
|
7196
|
+
paddingLeft: DEFAULT_BUTTON_PADDING_LEFT
|
|
4755
7197
|
};
|
|
4756
7198
|
},
|
|
4757
7199
|
parseHTML() {
|