@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
|
@@ -704,7 +704,2510 @@ import * as React from "react";
|
|
|
704
704
|
|
|
705
705
|
// src/editor/utils/classname.ts
|
|
706
706
|
import { clsx } from "clsx";
|
|
707
|
-
|
|
707
|
+
|
|
708
|
+
// ../../node_modules/.pnpm/tailwind-merge@2.5.4/node_modules/tailwind-merge/dist/bundle-mjs.mjs
|
|
709
|
+
var CLASS_PART_SEPARATOR = "-";
|
|
710
|
+
var createClassGroupUtils = (config) => {
|
|
711
|
+
const classMap = createClassMap(config);
|
|
712
|
+
const {
|
|
713
|
+
conflictingClassGroups,
|
|
714
|
+
conflictingClassGroupModifiers
|
|
715
|
+
} = config;
|
|
716
|
+
const getClassGroupId = (className) => {
|
|
717
|
+
const classParts = className.split(CLASS_PART_SEPARATOR);
|
|
718
|
+
if (classParts[0] === "" && classParts.length !== 1) {
|
|
719
|
+
classParts.shift();
|
|
720
|
+
}
|
|
721
|
+
return getGroupRecursive(classParts, classMap) || getGroupIdForArbitraryProperty(className);
|
|
722
|
+
};
|
|
723
|
+
const getConflictingClassGroupIds = (classGroupId, hasPostfixModifier) => {
|
|
724
|
+
const conflicts = conflictingClassGroups[classGroupId] || [];
|
|
725
|
+
if (hasPostfixModifier && conflictingClassGroupModifiers[classGroupId]) {
|
|
726
|
+
return [...conflicts, ...conflictingClassGroupModifiers[classGroupId]];
|
|
727
|
+
}
|
|
728
|
+
return conflicts;
|
|
729
|
+
};
|
|
730
|
+
return {
|
|
731
|
+
getClassGroupId,
|
|
732
|
+
getConflictingClassGroupIds
|
|
733
|
+
};
|
|
734
|
+
};
|
|
735
|
+
var getGroupRecursive = (classParts, classPartObject) => {
|
|
736
|
+
var _a;
|
|
737
|
+
if (classParts.length === 0) {
|
|
738
|
+
return classPartObject.classGroupId;
|
|
739
|
+
}
|
|
740
|
+
const currentClassPart = classParts[0];
|
|
741
|
+
const nextClassPartObject = classPartObject.nextPart.get(currentClassPart);
|
|
742
|
+
const classGroupFromNextClassPart = nextClassPartObject ? getGroupRecursive(classParts.slice(1), nextClassPartObject) : void 0;
|
|
743
|
+
if (classGroupFromNextClassPart) {
|
|
744
|
+
return classGroupFromNextClassPart;
|
|
745
|
+
}
|
|
746
|
+
if (classPartObject.validators.length === 0) {
|
|
747
|
+
return void 0;
|
|
748
|
+
}
|
|
749
|
+
const classRest = classParts.join(CLASS_PART_SEPARATOR);
|
|
750
|
+
return (_a = classPartObject.validators.find(({
|
|
751
|
+
validator
|
|
752
|
+
}) => validator(classRest))) == null ? void 0 : _a.classGroupId;
|
|
753
|
+
};
|
|
754
|
+
var arbitraryPropertyRegex = /^\[(.+)\]$/;
|
|
755
|
+
var getGroupIdForArbitraryProperty = (className) => {
|
|
756
|
+
if (arbitraryPropertyRegex.test(className)) {
|
|
757
|
+
const arbitraryPropertyClassName = arbitraryPropertyRegex.exec(className)[1];
|
|
758
|
+
const property = arbitraryPropertyClassName == null ? void 0 : arbitraryPropertyClassName.substring(0, arbitraryPropertyClassName.indexOf(":"));
|
|
759
|
+
if (property) {
|
|
760
|
+
return "arbitrary.." + property;
|
|
761
|
+
}
|
|
762
|
+
}
|
|
763
|
+
};
|
|
764
|
+
var createClassMap = (config) => {
|
|
765
|
+
const {
|
|
766
|
+
theme,
|
|
767
|
+
prefix
|
|
768
|
+
} = config;
|
|
769
|
+
const classMap = {
|
|
770
|
+
nextPart: /* @__PURE__ */ new Map(),
|
|
771
|
+
validators: []
|
|
772
|
+
};
|
|
773
|
+
const prefixedClassGroupEntries = getPrefixedClassGroupEntries(Object.entries(config.classGroups), prefix);
|
|
774
|
+
prefixedClassGroupEntries.forEach(([classGroupId, classGroup]) => {
|
|
775
|
+
processClassesRecursively(classGroup, classMap, classGroupId, theme);
|
|
776
|
+
});
|
|
777
|
+
return classMap;
|
|
778
|
+
};
|
|
779
|
+
var processClassesRecursively = (classGroup, classPartObject, classGroupId, theme) => {
|
|
780
|
+
classGroup.forEach((classDefinition) => {
|
|
781
|
+
if (typeof classDefinition === "string") {
|
|
782
|
+
const classPartObjectToEdit = classDefinition === "" ? classPartObject : getPart(classPartObject, classDefinition);
|
|
783
|
+
classPartObjectToEdit.classGroupId = classGroupId;
|
|
784
|
+
return;
|
|
785
|
+
}
|
|
786
|
+
if (typeof classDefinition === "function") {
|
|
787
|
+
if (isThemeGetter(classDefinition)) {
|
|
788
|
+
processClassesRecursively(classDefinition(theme), classPartObject, classGroupId, theme);
|
|
789
|
+
return;
|
|
790
|
+
}
|
|
791
|
+
classPartObject.validators.push({
|
|
792
|
+
validator: classDefinition,
|
|
793
|
+
classGroupId
|
|
794
|
+
});
|
|
795
|
+
return;
|
|
796
|
+
}
|
|
797
|
+
Object.entries(classDefinition).forEach(([key, classGroup2]) => {
|
|
798
|
+
processClassesRecursively(classGroup2, getPart(classPartObject, key), classGroupId, theme);
|
|
799
|
+
});
|
|
800
|
+
});
|
|
801
|
+
};
|
|
802
|
+
var getPart = (classPartObject, path) => {
|
|
803
|
+
let currentClassPartObject = classPartObject;
|
|
804
|
+
path.split(CLASS_PART_SEPARATOR).forEach((pathPart) => {
|
|
805
|
+
if (!currentClassPartObject.nextPart.has(pathPart)) {
|
|
806
|
+
currentClassPartObject.nextPart.set(pathPart, {
|
|
807
|
+
nextPart: /* @__PURE__ */ new Map(),
|
|
808
|
+
validators: []
|
|
809
|
+
});
|
|
810
|
+
}
|
|
811
|
+
currentClassPartObject = currentClassPartObject.nextPart.get(pathPart);
|
|
812
|
+
});
|
|
813
|
+
return currentClassPartObject;
|
|
814
|
+
};
|
|
815
|
+
var isThemeGetter = (func) => func.isThemeGetter;
|
|
816
|
+
var getPrefixedClassGroupEntries = (classGroupEntries, prefix) => {
|
|
817
|
+
if (!prefix) {
|
|
818
|
+
return classGroupEntries;
|
|
819
|
+
}
|
|
820
|
+
return classGroupEntries.map(([classGroupId, classGroup]) => {
|
|
821
|
+
const prefixedClassGroup = classGroup.map((classDefinition) => {
|
|
822
|
+
if (typeof classDefinition === "string") {
|
|
823
|
+
return prefix + classDefinition;
|
|
824
|
+
}
|
|
825
|
+
if (typeof classDefinition === "object") {
|
|
826
|
+
return Object.fromEntries(Object.entries(classDefinition).map(([key, value]) => [prefix + key, value]));
|
|
827
|
+
}
|
|
828
|
+
return classDefinition;
|
|
829
|
+
});
|
|
830
|
+
return [classGroupId, prefixedClassGroup];
|
|
831
|
+
});
|
|
832
|
+
};
|
|
833
|
+
var createLruCache = (maxCacheSize) => {
|
|
834
|
+
if (maxCacheSize < 1) {
|
|
835
|
+
return {
|
|
836
|
+
get: () => void 0,
|
|
837
|
+
set: () => {
|
|
838
|
+
}
|
|
839
|
+
};
|
|
840
|
+
}
|
|
841
|
+
let cacheSize = 0;
|
|
842
|
+
let cache = /* @__PURE__ */ new Map();
|
|
843
|
+
let previousCache = /* @__PURE__ */ new Map();
|
|
844
|
+
const update = (key, value) => {
|
|
845
|
+
cache.set(key, value);
|
|
846
|
+
cacheSize++;
|
|
847
|
+
if (cacheSize > maxCacheSize) {
|
|
848
|
+
cacheSize = 0;
|
|
849
|
+
previousCache = cache;
|
|
850
|
+
cache = /* @__PURE__ */ new Map();
|
|
851
|
+
}
|
|
852
|
+
};
|
|
853
|
+
return {
|
|
854
|
+
get(key) {
|
|
855
|
+
let value = cache.get(key);
|
|
856
|
+
if (value !== void 0) {
|
|
857
|
+
return value;
|
|
858
|
+
}
|
|
859
|
+
if ((value = previousCache.get(key)) !== void 0) {
|
|
860
|
+
update(key, value);
|
|
861
|
+
return value;
|
|
862
|
+
}
|
|
863
|
+
},
|
|
864
|
+
set(key, value) {
|
|
865
|
+
if (cache.has(key)) {
|
|
866
|
+
cache.set(key, value);
|
|
867
|
+
} else {
|
|
868
|
+
update(key, value);
|
|
869
|
+
}
|
|
870
|
+
}
|
|
871
|
+
};
|
|
872
|
+
};
|
|
873
|
+
var IMPORTANT_MODIFIER = "!";
|
|
874
|
+
var createParseClassName = (config) => {
|
|
875
|
+
const {
|
|
876
|
+
separator,
|
|
877
|
+
experimentalParseClassName
|
|
878
|
+
} = config;
|
|
879
|
+
const isSeparatorSingleCharacter = separator.length === 1;
|
|
880
|
+
const firstSeparatorCharacter = separator[0];
|
|
881
|
+
const separatorLength = separator.length;
|
|
882
|
+
const parseClassName = (className) => {
|
|
883
|
+
const modifiers = [];
|
|
884
|
+
let bracketDepth = 0;
|
|
885
|
+
let modifierStart = 0;
|
|
886
|
+
let postfixModifierPosition;
|
|
887
|
+
for (let index = 0; index < className.length; index++) {
|
|
888
|
+
let currentCharacter = className[index];
|
|
889
|
+
if (bracketDepth === 0) {
|
|
890
|
+
if (currentCharacter === firstSeparatorCharacter && (isSeparatorSingleCharacter || className.slice(index, index + separatorLength) === separator)) {
|
|
891
|
+
modifiers.push(className.slice(modifierStart, index));
|
|
892
|
+
modifierStart = index + separatorLength;
|
|
893
|
+
continue;
|
|
894
|
+
}
|
|
895
|
+
if (currentCharacter === "/") {
|
|
896
|
+
postfixModifierPosition = index;
|
|
897
|
+
continue;
|
|
898
|
+
}
|
|
899
|
+
}
|
|
900
|
+
if (currentCharacter === "[") {
|
|
901
|
+
bracketDepth++;
|
|
902
|
+
} else if (currentCharacter === "]") {
|
|
903
|
+
bracketDepth--;
|
|
904
|
+
}
|
|
905
|
+
}
|
|
906
|
+
const baseClassNameWithImportantModifier = modifiers.length === 0 ? className : className.substring(modifierStart);
|
|
907
|
+
const hasImportantModifier = baseClassNameWithImportantModifier.startsWith(IMPORTANT_MODIFIER);
|
|
908
|
+
const baseClassName = hasImportantModifier ? baseClassNameWithImportantModifier.substring(1) : baseClassNameWithImportantModifier;
|
|
909
|
+
const maybePostfixModifierPosition = postfixModifierPosition && postfixModifierPosition > modifierStart ? postfixModifierPosition - modifierStart : void 0;
|
|
910
|
+
return {
|
|
911
|
+
modifiers,
|
|
912
|
+
hasImportantModifier,
|
|
913
|
+
baseClassName,
|
|
914
|
+
maybePostfixModifierPosition
|
|
915
|
+
};
|
|
916
|
+
};
|
|
917
|
+
if (experimentalParseClassName) {
|
|
918
|
+
return (className) => experimentalParseClassName({
|
|
919
|
+
className,
|
|
920
|
+
parseClassName
|
|
921
|
+
});
|
|
922
|
+
}
|
|
923
|
+
return parseClassName;
|
|
924
|
+
};
|
|
925
|
+
var sortModifiers = (modifiers) => {
|
|
926
|
+
if (modifiers.length <= 1) {
|
|
927
|
+
return modifiers;
|
|
928
|
+
}
|
|
929
|
+
const sortedModifiers = [];
|
|
930
|
+
let unsortedModifiers = [];
|
|
931
|
+
modifiers.forEach((modifier) => {
|
|
932
|
+
const isArbitraryVariant = modifier[0] === "[";
|
|
933
|
+
if (isArbitraryVariant) {
|
|
934
|
+
sortedModifiers.push(...unsortedModifiers.sort(), modifier);
|
|
935
|
+
unsortedModifiers = [];
|
|
936
|
+
} else {
|
|
937
|
+
unsortedModifiers.push(modifier);
|
|
938
|
+
}
|
|
939
|
+
});
|
|
940
|
+
sortedModifiers.push(...unsortedModifiers.sort());
|
|
941
|
+
return sortedModifiers;
|
|
942
|
+
};
|
|
943
|
+
var createConfigUtils = (config) => __spreadValues({
|
|
944
|
+
cache: createLruCache(config.cacheSize),
|
|
945
|
+
parseClassName: createParseClassName(config)
|
|
946
|
+
}, createClassGroupUtils(config));
|
|
947
|
+
var SPLIT_CLASSES_REGEX = /\s+/;
|
|
948
|
+
var mergeClassList = (classList, configUtils) => {
|
|
949
|
+
const {
|
|
950
|
+
parseClassName,
|
|
951
|
+
getClassGroupId,
|
|
952
|
+
getConflictingClassGroupIds
|
|
953
|
+
} = configUtils;
|
|
954
|
+
const classGroupsInConflict = [];
|
|
955
|
+
const classNames = classList.trim().split(SPLIT_CLASSES_REGEX);
|
|
956
|
+
let result = "";
|
|
957
|
+
for (let index = classNames.length - 1; index >= 0; index -= 1) {
|
|
958
|
+
const originalClassName = classNames[index];
|
|
959
|
+
const {
|
|
960
|
+
modifiers,
|
|
961
|
+
hasImportantModifier,
|
|
962
|
+
baseClassName,
|
|
963
|
+
maybePostfixModifierPosition
|
|
964
|
+
} = parseClassName(originalClassName);
|
|
965
|
+
let hasPostfixModifier = Boolean(maybePostfixModifierPosition);
|
|
966
|
+
let classGroupId = getClassGroupId(hasPostfixModifier ? baseClassName.substring(0, maybePostfixModifierPosition) : baseClassName);
|
|
967
|
+
if (!classGroupId) {
|
|
968
|
+
if (!hasPostfixModifier) {
|
|
969
|
+
result = originalClassName + (result.length > 0 ? " " + result : result);
|
|
970
|
+
continue;
|
|
971
|
+
}
|
|
972
|
+
classGroupId = getClassGroupId(baseClassName);
|
|
973
|
+
if (!classGroupId) {
|
|
974
|
+
result = originalClassName + (result.length > 0 ? " " + result : result);
|
|
975
|
+
continue;
|
|
976
|
+
}
|
|
977
|
+
hasPostfixModifier = false;
|
|
978
|
+
}
|
|
979
|
+
const variantModifier = sortModifiers(modifiers).join(":");
|
|
980
|
+
const modifierId = hasImportantModifier ? variantModifier + IMPORTANT_MODIFIER : variantModifier;
|
|
981
|
+
const classId = modifierId + classGroupId;
|
|
982
|
+
if (classGroupsInConflict.includes(classId)) {
|
|
983
|
+
continue;
|
|
984
|
+
}
|
|
985
|
+
classGroupsInConflict.push(classId);
|
|
986
|
+
const conflictGroups = getConflictingClassGroupIds(classGroupId, hasPostfixModifier);
|
|
987
|
+
for (let i = 0; i < conflictGroups.length; ++i) {
|
|
988
|
+
const group = conflictGroups[i];
|
|
989
|
+
classGroupsInConflict.push(modifierId + group);
|
|
990
|
+
}
|
|
991
|
+
result = originalClassName + (result.length > 0 ? " " + result : result);
|
|
992
|
+
}
|
|
993
|
+
return result;
|
|
994
|
+
};
|
|
995
|
+
function twJoin() {
|
|
996
|
+
let index = 0;
|
|
997
|
+
let argument;
|
|
998
|
+
let resolvedValue;
|
|
999
|
+
let string = "";
|
|
1000
|
+
while (index < arguments.length) {
|
|
1001
|
+
if (argument = arguments[index++]) {
|
|
1002
|
+
if (resolvedValue = toValue(argument)) {
|
|
1003
|
+
string && (string += " ");
|
|
1004
|
+
string += resolvedValue;
|
|
1005
|
+
}
|
|
1006
|
+
}
|
|
1007
|
+
}
|
|
1008
|
+
return string;
|
|
1009
|
+
}
|
|
1010
|
+
var toValue = (mix) => {
|
|
1011
|
+
if (typeof mix === "string") {
|
|
1012
|
+
return mix;
|
|
1013
|
+
}
|
|
1014
|
+
let resolvedValue;
|
|
1015
|
+
let string = "";
|
|
1016
|
+
for (let k = 0; k < mix.length; k++) {
|
|
1017
|
+
if (mix[k]) {
|
|
1018
|
+
if (resolvedValue = toValue(mix[k])) {
|
|
1019
|
+
string && (string += " ");
|
|
1020
|
+
string += resolvedValue;
|
|
1021
|
+
}
|
|
1022
|
+
}
|
|
1023
|
+
}
|
|
1024
|
+
return string;
|
|
1025
|
+
};
|
|
1026
|
+
function createTailwindMerge(createConfigFirst, ...createConfigRest) {
|
|
1027
|
+
let configUtils;
|
|
1028
|
+
let cacheGet;
|
|
1029
|
+
let cacheSet;
|
|
1030
|
+
let functionToCall = initTailwindMerge;
|
|
1031
|
+
function initTailwindMerge(classList) {
|
|
1032
|
+
const config = createConfigRest.reduce((previousConfig, createConfigCurrent) => createConfigCurrent(previousConfig), createConfigFirst());
|
|
1033
|
+
configUtils = createConfigUtils(config);
|
|
1034
|
+
cacheGet = configUtils.cache.get;
|
|
1035
|
+
cacheSet = configUtils.cache.set;
|
|
1036
|
+
functionToCall = tailwindMerge;
|
|
1037
|
+
return tailwindMerge(classList);
|
|
1038
|
+
}
|
|
1039
|
+
function tailwindMerge(classList) {
|
|
1040
|
+
const cachedResult = cacheGet(classList);
|
|
1041
|
+
if (cachedResult) {
|
|
1042
|
+
return cachedResult;
|
|
1043
|
+
}
|
|
1044
|
+
const result = mergeClassList(classList, configUtils);
|
|
1045
|
+
cacheSet(classList, result);
|
|
1046
|
+
return result;
|
|
1047
|
+
}
|
|
1048
|
+
return function callTailwindMerge() {
|
|
1049
|
+
return functionToCall(twJoin.apply(null, arguments));
|
|
1050
|
+
};
|
|
1051
|
+
}
|
|
1052
|
+
var fromTheme = (key) => {
|
|
1053
|
+
const themeGetter = (theme) => theme[key] || [];
|
|
1054
|
+
themeGetter.isThemeGetter = true;
|
|
1055
|
+
return themeGetter;
|
|
1056
|
+
};
|
|
1057
|
+
var arbitraryValueRegex = /^\[(?:([a-z-]+):)?(.+)\]$/i;
|
|
1058
|
+
var fractionRegex = /^\d+\/\d+$/;
|
|
1059
|
+
var stringLengths = /* @__PURE__ */ new Set(["px", "full", "screen"]);
|
|
1060
|
+
var tshirtUnitRegex = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/;
|
|
1061
|
+
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$/;
|
|
1062
|
+
var colorFunctionRegex = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/;
|
|
1063
|
+
var shadowRegex = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;
|
|
1064
|
+
var imageRegex = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;
|
|
1065
|
+
var isLength = (value) => isNumber(value) || stringLengths.has(value) || fractionRegex.test(value);
|
|
1066
|
+
var isArbitraryLength = (value) => getIsArbitraryValue(value, "length", isLengthOnly);
|
|
1067
|
+
var isNumber = (value) => Boolean(value) && !Number.isNaN(Number(value));
|
|
1068
|
+
var isArbitraryNumber = (value) => getIsArbitraryValue(value, "number", isNumber);
|
|
1069
|
+
var isInteger = (value) => Boolean(value) && Number.isInteger(Number(value));
|
|
1070
|
+
var isPercent = (value) => value.endsWith("%") && isNumber(value.slice(0, -1));
|
|
1071
|
+
var isArbitraryValue = (value) => arbitraryValueRegex.test(value);
|
|
1072
|
+
var isTshirtSize = (value) => tshirtUnitRegex.test(value);
|
|
1073
|
+
var sizeLabels = /* @__PURE__ */ new Set(["length", "size", "percentage"]);
|
|
1074
|
+
var isArbitrarySize = (value) => getIsArbitraryValue(value, sizeLabels, isNever);
|
|
1075
|
+
var isArbitraryPosition = (value) => getIsArbitraryValue(value, "position", isNever);
|
|
1076
|
+
var imageLabels = /* @__PURE__ */ new Set(["image", "url"]);
|
|
1077
|
+
var isArbitraryImage = (value) => getIsArbitraryValue(value, imageLabels, isImage);
|
|
1078
|
+
var isArbitraryShadow = (value) => getIsArbitraryValue(value, "", isShadow);
|
|
1079
|
+
var isAny = () => true;
|
|
1080
|
+
var getIsArbitraryValue = (value, label, testValue) => {
|
|
1081
|
+
const result = arbitraryValueRegex.exec(value);
|
|
1082
|
+
if (result) {
|
|
1083
|
+
if (result[1]) {
|
|
1084
|
+
return typeof label === "string" ? result[1] === label : label.has(result[1]);
|
|
1085
|
+
}
|
|
1086
|
+
return testValue(result[2]);
|
|
1087
|
+
}
|
|
1088
|
+
return false;
|
|
1089
|
+
};
|
|
1090
|
+
var isLengthOnly = (value) => (
|
|
1091
|
+
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
1092
|
+
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
1093
|
+
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
1094
|
+
lengthUnitRegex.test(value) && !colorFunctionRegex.test(value)
|
|
1095
|
+
);
|
|
1096
|
+
var isNever = () => false;
|
|
1097
|
+
var isShadow = (value) => shadowRegex.test(value);
|
|
1098
|
+
var isImage = (value) => imageRegex.test(value);
|
|
1099
|
+
var getDefaultConfig = () => {
|
|
1100
|
+
const colors = fromTheme("colors");
|
|
1101
|
+
const spacing = fromTheme("spacing");
|
|
1102
|
+
const blur = fromTheme("blur");
|
|
1103
|
+
const brightness = fromTheme("brightness");
|
|
1104
|
+
const borderColor = fromTheme("borderColor");
|
|
1105
|
+
const borderRadius = fromTheme("borderRadius");
|
|
1106
|
+
const borderSpacing = fromTheme("borderSpacing");
|
|
1107
|
+
const borderWidth = fromTheme("borderWidth");
|
|
1108
|
+
const contrast = fromTheme("contrast");
|
|
1109
|
+
const grayscale = fromTheme("grayscale");
|
|
1110
|
+
const hueRotate = fromTheme("hueRotate");
|
|
1111
|
+
const invert = fromTheme("invert");
|
|
1112
|
+
const gap = fromTheme("gap");
|
|
1113
|
+
const gradientColorStops = fromTheme("gradientColorStops");
|
|
1114
|
+
const gradientColorStopPositions = fromTheme("gradientColorStopPositions");
|
|
1115
|
+
const inset = fromTheme("inset");
|
|
1116
|
+
const margin = fromTheme("margin");
|
|
1117
|
+
const opacity = fromTheme("opacity");
|
|
1118
|
+
const padding = fromTheme("padding");
|
|
1119
|
+
const saturate = fromTheme("saturate");
|
|
1120
|
+
const scale = fromTheme("scale");
|
|
1121
|
+
const sepia = fromTheme("sepia");
|
|
1122
|
+
const skew = fromTheme("skew");
|
|
1123
|
+
const space = fromTheme("space");
|
|
1124
|
+
const translate = fromTheme("translate");
|
|
1125
|
+
const getOverscroll = () => ["auto", "contain", "none"];
|
|
1126
|
+
const getOverflow = () => ["auto", "hidden", "clip", "visible", "scroll"];
|
|
1127
|
+
const getSpacingWithAutoAndArbitrary = () => ["auto", isArbitraryValue, spacing];
|
|
1128
|
+
const getSpacingWithArbitrary = () => [isArbitraryValue, spacing];
|
|
1129
|
+
const getLengthWithEmptyAndArbitrary = () => ["", isLength, isArbitraryLength];
|
|
1130
|
+
const getNumberWithAutoAndArbitrary = () => ["auto", isNumber, isArbitraryValue];
|
|
1131
|
+
const getPositions = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"];
|
|
1132
|
+
const getLineStyles = () => ["solid", "dashed", "dotted", "double", "none"];
|
|
1133
|
+
const getBlendModes = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"];
|
|
1134
|
+
const getAlign = () => ["start", "end", "center", "between", "around", "evenly", "stretch"];
|
|
1135
|
+
const getZeroAndEmpty = () => ["", "0", isArbitraryValue];
|
|
1136
|
+
const getBreaks = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"];
|
|
1137
|
+
const getNumberAndArbitrary = () => [isNumber, isArbitraryValue];
|
|
1138
|
+
return {
|
|
1139
|
+
cacheSize: 500,
|
|
1140
|
+
separator: ":",
|
|
1141
|
+
theme: {
|
|
1142
|
+
colors: [isAny],
|
|
1143
|
+
spacing: [isLength, isArbitraryLength],
|
|
1144
|
+
blur: ["none", "", isTshirtSize, isArbitraryValue],
|
|
1145
|
+
brightness: getNumberAndArbitrary(),
|
|
1146
|
+
borderColor: [colors],
|
|
1147
|
+
borderRadius: ["none", "", "full", isTshirtSize, isArbitraryValue],
|
|
1148
|
+
borderSpacing: getSpacingWithArbitrary(),
|
|
1149
|
+
borderWidth: getLengthWithEmptyAndArbitrary(),
|
|
1150
|
+
contrast: getNumberAndArbitrary(),
|
|
1151
|
+
grayscale: getZeroAndEmpty(),
|
|
1152
|
+
hueRotate: getNumberAndArbitrary(),
|
|
1153
|
+
invert: getZeroAndEmpty(),
|
|
1154
|
+
gap: getSpacingWithArbitrary(),
|
|
1155
|
+
gradientColorStops: [colors],
|
|
1156
|
+
gradientColorStopPositions: [isPercent, isArbitraryLength],
|
|
1157
|
+
inset: getSpacingWithAutoAndArbitrary(),
|
|
1158
|
+
margin: getSpacingWithAutoAndArbitrary(),
|
|
1159
|
+
opacity: getNumberAndArbitrary(),
|
|
1160
|
+
padding: getSpacingWithArbitrary(),
|
|
1161
|
+
saturate: getNumberAndArbitrary(),
|
|
1162
|
+
scale: getNumberAndArbitrary(),
|
|
1163
|
+
sepia: getZeroAndEmpty(),
|
|
1164
|
+
skew: getNumberAndArbitrary(),
|
|
1165
|
+
space: getSpacingWithArbitrary(),
|
|
1166
|
+
translate: getSpacingWithArbitrary()
|
|
1167
|
+
},
|
|
1168
|
+
classGroups: {
|
|
1169
|
+
// Layout
|
|
1170
|
+
/**
|
|
1171
|
+
* Aspect Ratio
|
|
1172
|
+
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
1173
|
+
*/
|
|
1174
|
+
aspect: [{
|
|
1175
|
+
aspect: ["auto", "square", "video", isArbitraryValue]
|
|
1176
|
+
}],
|
|
1177
|
+
/**
|
|
1178
|
+
* Container
|
|
1179
|
+
* @see https://tailwindcss.com/docs/container
|
|
1180
|
+
*/
|
|
1181
|
+
container: ["container"],
|
|
1182
|
+
/**
|
|
1183
|
+
* Columns
|
|
1184
|
+
* @see https://tailwindcss.com/docs/columns
|
|
1185
|
+
*/
|
|
1186
|
+
columns: [{
|
|
1187
|
+
columns: [isTshirtSize]
|
|
1188
|
+
}],
|
|
1189
|
+
/**
|
|
1190
|
+
* Break After
|
|
1191
|
+
* @see https://tailwindcss.com/docs/break-after
|
|
1192
|
+
*/
|
|
1193
|
+
"break-after": [{
|
|
1194
|
+
"break-after": getBreaks()
|
|
1195
|
+
}],
|
|
1196
|
+
/**
|
|
1197
|
+
* Break Before
|
|
1198
|
+
* @see https://tailwindcss.com/docs/break-before
|
|
1199
|
+
*/
|
|
1200
|
+
"break-before": [{
|
|
1201
|
+
"break-before": getBreaks()
|
|
1202
|
+
}],
|
|
1203
|
+
/**
|
|
1204
|
+
* Break Inside
|
|
1205
|
+
* @see https://tailwindcss.com/docs/break-inside
|
|
1206
|
+
*/
|
|
1207
|
+
"break-inside": [{
|
|
1208
|
+
"break-inside": ["auto", "avoid", "avoid-page", "avoid-column"]
|
|
1209
|
+
}],
|
|
1210
|
+
/**
|
|
1211
|
+
* Box Decoration Break
|
|
1212
|
+
* @see https://tailwindcss.com/docs/box-decoration-break
|
|
1213
|
+
*/
|
|
1214
|
+
"box-decoration": [{
|
|
1215
|
+
"box-decoration": ["slice", "clone"]
|
|
1216
|
+
}],
|
|
1217
|
+
/**
|
|
1218
|
+
* Box Sizing
|
|
1219
|
+
* @see https://tailwindcss.com/docs/box-sizing
|
|
1220
|
+
*/
|
|
1221
|
+
box: [{
|
|
1222
|
+
box: ["border", "content"]
|
|
1223
|
+
}],
|
|
1224
|
+
/**
|
|
1225
|
+
* Display
|
|
1226
|
+
* @see https://tailwindcss.com/docs/display
|
|
1227
|
+
*/
|
|
1228
|
+
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"],
|
|
1229
|
+
/**
|
|
1230
|
+
* Floats
|
|
1231
|
+
* @see https://tailwindcss.com/docs/float
|
|
1232
|
+
*/
|
|
1233
|
+
float: [{
|
|
1234
|
+
float: ["right", "left", "none", "start", "end"]
|
|
1235
|
+
}],
|
|
1236
|
+
/**
|
|
1237
|
+
* Clear
|
|
1238
|
+
* @see https://tailwindcss.com/docs/clear
|
|
1239
|
+
*/
|
|
1240
|
+
clear: [{
|
|
1241
|
+
clear: ["left", "right", "both", "none", "start", "end"]
|
|
1242
|
+
}],
|
|
1243
|
+
/**
|
|
1244
|
+
* Isolation
|
|
1245
|
+
* @see https://tailwindcss.com/docs/isolation
|
|
1246
|
+
*/
|
|
1247
|
+
isolation: ["isolate", "isolation-auto"],
|
|
1248
|
+
/**
|
|
1249
|
+
* Object Fit
|
|
1250
|
+
* @see https://tailwindcss.com/docs/object-fit
|
|
1251
|
+
*/
|
|
1252
|
+
"object-fit": [{
|
|
1253
|
+
object: ["contain", "cover", "fill", "none", "scale-down"]
|
|
1254
|
+
}],
|
|
1255
|
+
/**
|
|
1256
|
+
* Object Position
|
|
1257
|
+
* @see https://tailwindcss.com/docs/object-position
|
|
1258
|
+
*/
|
|
1259
|
+
"object-position": [{
|
|
1260
|
+
object: [...getPositions(), isArbitraryValue]
|
|
1261
|
+
}],
|
|
1262
|
+
/**
|
|
1263
|
+
* Overflow
|
|
1264
|
+
* @see https://tailwindcss.com/docs/overflow
|
|
1265
|
+
*/
|
|
1266
|
+
overflow: [{
|
|
1267
|
+
overflow: getOverflow()
|
|
1268
|
+
}],
|
|
1269
|
+
/**
|
|
1270
|
+
* Overflow X
|
|
1271
|
+
* @see https://tailwindcss.com/docs/overflow
|
|
1272
|
+
*/
|
|
1273
|
+
"overflow-x": [{
|
|
1274
|
+
"overflow-x": getOverflow()
|
|
1275
|
+
}],
|
|
1276
|
+
/**
|
|
1277
|
+
* Overflow Y
|
|
1278
|
+
* @see https://tailwindcss.com/docs/overflow
|
|
1279
|
+
*/
|
|
1280
|
+
"overflow-y": [{
|
|
1281
|
+
"overflow-y": getOverflow()
|
|
1282
|
+
}],
|
|
1283
|
+
/**
|
|
1284
|
+
* Overscroll Behavior
|
|
1285
|
+
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
1286
|
+
*/
|
|
1287
|
+
overscroll: [{
|
|
1288
|
+
overscroll: getOverscroll()
|
|
1289
|
+
}],
|
|
1290
|
+
/**
|
|
1291
|
+
* Overscroll Behavior X
|
|
1292
|
+
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
1293
|
+
*/
|
|
1294
|
+
"overscroll-x": [{
|
|
1295
|
+
"overscroll-x": getOverscroll()
|
|
1296
|
+
}],
|
|
1297
|
+
/**
|
|
1298
|
+
* Overscroll Behavior Y
|
|
1299
|
+
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
1300
|
+
*/
|
|
1301
|
+
"overscroll-y": [{
|
|
1302
|
+
"overscroll-y": getOverscroll()
|
|
1303
|
+
}],
|
|
1304
|
+
/**
|
|
1305
|
+
* Position
|
|
1306
|
+
* @see https://tailwindcss.com/docs/position
|
|
1307
|
+
*/
|
|
1308
|
+
position: ["static", "fixed", "absolute", "relative", "sticky"],
|
|
1309
|
+
/**
|
|
1310
|
+
* Top / Right / Bottom / Left
|
|
1311
|
+
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1312
|
+
*/
|
|
1313
|
+
inset: [{
|
|
1314
|
+
inset: [inset]
|
|
1315
|
+
}],
|
|
1316
|
+
/**
|
|
1317
|
+
* Right / Left
|
|
1318
|
+
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1319
|
+
*/
|
|
1320
|
+
"inset-x": [{
|
|
1321
|
+
"inset-x": [inset]
|
|
1322
|
+
}],
|
|
1323
|
+
/**
|
|
1324
|
+
* Top / Bottom
|
|
1325
|
+
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1326
|
+
*/
|
|
1327
|
+
"inset-y": [{
|
|
1328
|
+
"inset-y": [inset]
|
|
1329
|
+
}],
|
|
1330
|
+
/**
|
|
1331
|
+
* Start
|
|
1332
|
+
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1333
|
+
*/
|
|
1334
|
+
start: [{
|
|
1335
|
+
start: [inset]
|
|
1336
|
+
}],
|
|
1337
|
+
/**
|
|
1338
|
+
* End
|
|
1339
|
+
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1340
|
+
*/
|
|
1341
|
+
end: [{
|
|
1342
|
+
end: [inset]
|
|
1343
|
+
}],
|
|
1344
|
+
/**
|
|
1345
|
+
* Top
|
|
1346
|
+
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1347
|
+
*/
|
|
1348
|
+
top: [{
|
|
1349
|
+
top: [inset]
|
|
1350
|
+
}],
|
|
1351
|
+
/**
|
|
1352
|
+
* Right
|
|
1353
|
+
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1354
|
+
*/
|
|
1355
|
+
right: [{
|
|
1356
|
+
right: [inset]
|
|
1357
|
+
}],
|
|
1358
|
+
/**
|
|
1359
|
+
* Bottom
|
|
1360
|
+
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1361
|
+
*/
|
|
1362
|
+
bottom: [{
|
|
1363
|
+
bottom: [inset]
|
|
1364
|
+
}],
|
|
1365
|
+
/**
|
|
1366
|
+
* Left
|
|
1367
|
+
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1368
|
+
*/
|
|
1369
|
+
left: [{
|
|
1370
|
+
left: [inset]
|
|
1371
|
+
}],
|
|
1372
|
+
/**
|
|
1373
|
+
* Visibility
|
|
1374
|
+
* @see https://tailwindcss.com/docs/visibility
|
|
1375
|
+
*/
|
|
1376
|
+
visibility: ["visible", "invisible", "collapse"],
|
|
1377
|
+
/**
|
|
1378
|
+
* Z-Index
|
|
1379
|
+
* @see https://tailwindcss.com/docs/z-index
|
|
1380
|
+
*/
|
|
1381
|
+
z: [{
|
|
1382
|
+
z: ["auto", isInteger, isArbitraryValue]
|
|
1383
|
+
}],
|
|
1384
|
+
// Flexbox and Grid
|
|
1385
|
+
/**
|
|
1386
|
+
* Flex Basis
|
|
1387
|
+
* @see https://tailwindcss.com/docs/flex-basis
|
|
1388
|
+
*/
|
|
1389
|
+
basis: [{
|
|
1390
|
+
basis: getSpacingWithAutoAndArbitrary()
|
|
1391
|
+
}],
|
|
1392
|
+
/**
|
|
1393
|
+
* Flex Direction
|
|
1394
|
+
* @see https://tailwindcss.com/docs/flex-direction
|
|
1395
|
+
*/
|
|
1396
|
+
"flex-direction": [{
|
|
1397
|
+
flex: ["row", "row-reverse", "col", "col-reverse"]
|
|
1398
|
+
}],
|
|
1399
|
+
/**
|
|
1400
|
+
* Flex Wrap
|
|
1401
|
+
* @see https://tailwindcss.com/docs/flex-wrap
|
|
1402
|
+
*/
|
|
1403
|
+
"flex-wrap": [{
|
|
1404
|
+
flex: ["wrap", "wrap-reverse", "nowrap"]
|
|
1405
|
+
}],
|
|
1406
|
+
/**
|
|
1407
|
+
* Flex
|
|
1408
|
+
* @see https://tailwindcss.com/docs/flex
|
|
1409
|
+
*/
|
|
1410
|
+
flex: [{
|
|
1411
|
+
flex: ["1", "auto", "initial", "none", isArbitraryValue]
|
|
1412
|
+
}],
|
|
1413
|
+
/**
|
|
1414
|
+
* Flex Grow
|
|
1415
|
+
* @see https://tailwindcss.com/docs/flex-grow
|
|
1416
|
+
*/
|
|
1417
|
+
grow: [{
|
|
1418
|
+
grow: getZeroAndEmpty()
|
|
1419
|
+
}],
|
|
1420
|
+
/**
|
|
1421
|
+
* Flex Shrink
|
|
1422
|
+
* @see https://tailwindcss.com/docs/flex-shrink
|
|
1423
|
+
*/
|
|
1424
|
+
shrink: [{
|
|
1425
|
+
shrink: getZeroAndEmpty()
|
|
1426
|
+
}],
|
|
1427
|
+
/**
|
|
1428
|
+
* Order
|
|
1429
|
+
* @see https://tailwindcss.com/docs/order
|
|
1430
|
+
*/
|
|
1431
|
+
order: [{
|
|
1432
|
+
order: ["first", "last", "none", isInteger, isArbitraryValue]
|
|
1433
|
+
}],
|
|
1434
|
+
/**
|
|
1435
|
+
* Grid Template Columns
|
|
1436
|
+
* @see https://tailwindcss.com/docs/grid-template-columns
|
|
1437
|
+
*/
|
|
1438
|
+
"grid-cols": [{
|
|
1439
|
+
"grid-cols": [isAny]
|
|
1440
|
+
}],
|
|
1441
|
+
/**
|
|
1442
|
+
* Grid Column Start / End
|
|
1443
|
+
* @see https://tailwindcss.com/docs/grid-column
|
|
1444
|
+
*/
|
|
1445
|
+
"col-start-end": [{
|
|
1446
|
+
col: ["auto", {
|
|
1447
|
+
span: ["full", isInteger, isArbitraryValue]
|
|
1448
|
+
}, isArbitraryValue]
|
|
1449
|
+
}],
|
|
1450
|
+
/**
|
|
1451
|
+
* Grid Column Start
|
|
1452
|
+
* @see https://tailwindcss.com/docs/grid-column
|
|
1453
|
+
*/
|
|
1454
|
+
"col-start": [{
|
|
1455
|
+
"col-start": getNumberWithAutoAndArbitrary()
|
|
1456
|
+
}],
|
|
1457
|
+
/**
|
|
1458
|
+
* Grid Column End
|
|
1459
|
+
* @see https://tailwindcss.com/docs/grid-column
|
|
1460
|
+
*/
|
|
1461
|
+
"col-end": [{
|
|
1462
|
+
"col-end": getNumberWithAutoAndArbitrary()
|
|
1463
|
+
}],
|
|
1464
|
+
/**
|
|
1465
|
+
* Grid Template Rows
|
|
1466
|
+
* @see https://tailwindcss.com/docs/grid-template-rows
|
|
1467
|
+
*/
|
|
1468
|
+
"grid-rows": [{
|
|
1469
|
+
"grid-rows": [isAny]
|
|
1470
|
+
}],
|
|
1471
|
+
/**
|
|
1472
|
+
* Grid Row Start / End
|
|
1473
|
+
* @see https://tailwindcss.com/docs/grid-row
|
|
1474
|
+
*/
|
|
1475
|
+
"row-start-end": [{
|
|
1476
|
+
row: ["auto", {
|
|
1477
|
+
span: [isInteger, isArbitraryValue]
|
|
1478
|
+
}, isArbitraryValue]
|
|
1479
|
+
}],
|
|
1480
|
+
/**
|
|
1481
|
+
* Grid Row Start
|
|
1482
|
+
* @see https://tailwindcss.com/docs/grid-row
|
|
1483
|
+
*/
|
|
1484
|
+
"row-start": [{
|
|
1485
|
+
"row-start": getNumberWithAutoAndArbitrary()
|
|
1486
|
+
}],
|
|
1487
|
+
/**
|
|
1488
|
+
* Grid Row End
|
|
1489
|
+
* @see https://tailwindcss.com/docs/grid-row
|
|
1490
|
+
*/
|
|
1491
|
+
"row-end": [{
|
|
1492
|
+
"row-end": getNumberWithAutoAndArbitrary()
|
|
1493
|
+
}],
|
|
1494
|
+
/**
|
|
1495
|
+
* Grid Auto Flow
|
|
1496
|
+
* @see https://tailwindcss.com/docs/grid-auto-flow
|
|
1497
|
+
*/
|
|
1498
|
+
"grid-flow": [{
|
|
1499
|
+
"grid-flow": ["row", "col", "dense", "row-dense", "col-dense"]
|
|
1500
|
+
}],
|
|
1501
|
+
/**
|
|
1502
|
+
* Grid Auto Columns
|
|
1503
|
+
* @see https://tailwindcss.com/docs/grid-auto-columns
|
|
1504
|
+
*/
|
|
1505
|
+
"auto-cols": [{
|
|
1506
|
+
"auto-cols": ["auto", "min", "max", "fr", isArbitraryValue]
|
|
1507
|
+
}],
|
|
1508
|
+
/**
|
|
1509
|
+
* Grid Auto Rows
|
|
1510
|
+
* @see https://tailwindcss.com/docs/grid-auto-rows
|
|
1511
|
+
*/
|
|
1512
|
+
"auto-rows": [{
|
|
1513
|
+
"auto-rows": ["auto", "min", "max", "fr", isArbitraryValue]
|
|
1514
|
+
}],
|
|
1515
|
+
/**
|
|
1516
|
+
* Gap
|
|
1517
|
+
* @see https://tailwindcss.com/docs/gap
|
|
1518
|
+
*/
|
|
1519
|
+
gap: [{
|
|
1520
|
+
gap: [gap]
|
|
1521
|
+
}],
|
|
1522
|
+
/**
|
|
1523
|
+
* Gap X
|
|
1524
|
+
* @see https://tailwindcss.com/docs/gap
|
|
1525
|
+
*/
|
|
1526
|
+
"gap-x": [{
|
|
1527
|
+
"gap-x": [gap]
|
|
1528
|
+
}],
|
|
1529
|
+
/**
|
|
1530
|
+
* Gap Y
|
|
1531
|
+
* @see https://tailwindcss.com/docs/gap
|
|
1532
|
+
*/
|
|
1533
|
+
"gap-y": [{
|
|
1534
|
+
"gap-y": [gap]
|
|
1535
|
+
}],
|
|
1536
|
+
/**
|
|
1537
|
+
* Justify Content
|
|
1538
|
+
* @see https://tailwindcss.com/docs/justify-content
|
|
1539
|
+
*/
|
|
1540
|
+
"justify-content": [{
|
|
1541
|
+
justify: ["normal", ...getAlign()]
|
|
1542
|
+
}],
|
|
1543
|
+
/**
|
|
1544
|
+
* Justify Items
|
|
1545
|
+
* @see https://tailwindcss.com/docs/justify-items
|
|
1546
|
+
*/
|
|
1547
|
+
"justify-items": [{
|
|
1548
|
+
"justify-items": ["start", "end", "center", "stretch"]
|
|
1549
|
+
}],
|
|
1550
|
+
/**
|
|
1551
|
+
* Justify Self
|
|
1552
|
+
* @see https://tailwindcss.com/docs/justify-self
|
|
1553
|
+
*/
|
|
1554
|
+
"justify-self": [{
|
|
1555
|
+
"justify-self": ["auto", "start", "end", "center", "stretch"]
|
|
1556
|
+
}],
|
|
1557
|
+
/**
|
|
1558
|
+
* Align Content
|
|
1559
|
+
* @see https://tailwindcss.com/docs/align-content
|
|
1560
|
+
*/
|
|
1561
|
+
"align-content": [{
|
|
1562
|
+
content: ["normal", ...getAlign(), "baseline"]
|
|
1563
|
+
}],
|
|
1564
|
+
/**
|
|
1565
|
+
* Align Items
|
|
1566
|
+
* @see https://tailwindcss.com/docs/align-items
|
|
1567
|
+
*/
|
|
1568
|
+
"align-items": [{
|
|
1569
|
+
items: ["start", "end", "center", "baseline", "stretch"]
|
|
1570
|
+
}],
|
|
1571
|
+
/**
|
|
1572
|
+
* Align Self
|
|
1573
|
+
* @see https://tailwindcss.com/docs/align-self
|
|
1574
|
+
*/
|
|
1575
|
+
"align-self": [{
|
|
1576
|
+
self: ["auto", "start", "end", "center", "stretch", "baseline"]
|
|
1577
|
+
}],
|
|
1578
|
+
/**
|
|
1579
|
+
* Place Content
|
|
1580
|
+
* @see https://tailwindcss.com/docs/place-content
|
|
1581
|
+
*/
|
|
1582
|
+
"place-content": [{
|
|
1583
|
+
"place-content": [...getAlign(), "baseline"]
|
|
1584
|
+
}],
|
|
1585
|
+
/**
|
|
1586
|
+
* Place Items
|
|
1587
|
+
* @see https://tailwindcss.com/docs/place-items
|
|
1588
|
+
*/
|
|
1589
|
+
"place-items": [{
|
|
1590
|
+
"place-items": ["start", "end", "center", "baseline", "stretch"]
|
|
1591
|
+
}],
|
|
1592
|
+
/**
|
|
1593
|
+
* Place Self
|
|
1594
|
+
* @see https://tailwindcss.com/docs/place-self
|
|
1595
|
+
*/
|
|
1596
|
+
"place-self": [{
|
|
1597
|
+
"place-self": ["auto", "start", "end", "center", "stretch"]
|
|
1598
|
+
}],
|
|
1599
|
+
// Spacing
|
|
1600
|
+
/**
|
|
1601
|
+
* Padding
|
|
1602
|
+
* @see https://tailwindcss.com/docs/padding
|
|
1603
|
+
*/
|
|
1604
|
+
p: [{
|
|
1605
|
+
p: [padding]
|
|
1606
|
+
}],
|
|
1607
|
+
/**
|
|
1608
|
+
* Padding X
|
|
1609
|
+
* @see https://tailwindcss.com/docs/padding
|
|
1610
|
+
*/
|
|
1611
|
+
px: [{
|
|
1612
|
+
px: [padding]
|
|
1613
|
+
}],
|
|
1614
|
+
/**
|
|
1615
|
+
* Padding Y
|
|
1616
|
+
* @see https://tailwindcss.com/docs/padding
|
|
1617
|
+
*/
|
|
1618
|
+
py: [{
|
|
1619
|
+
py: [padding]
|
|
1620
|
+
}],
|
|
1621
|
+
/**
|
|
1622
|
+
* Padding Start
|
|
1623
|
+
* @see https://tailwindcss.com/docs/padding
|
|
1624
|
+
*/
|
|
1625
|
+
ps: [{
|
|
1626
|
+
ps: [padding]
|
|
1627
|
+
}],
|
|
1628
|
+
/**
|
|
1629
|
+
* Padding End
|
|
1630
|
+
* @see https://tailwindcss.com/docs/padding
|
|
1631
|
+
*/
|
|
1632
|
+
pe: [{
|
|
1633
|
+
pe: [padding]
|
|
1634
|
+
}],
|
|
1635
|
+
/**
|
|
1636
|
+
* Padding Top
|
|
1637
|
+
* @see https://tailwindcss.com/docs/padding
|
|
1638
|
+
*/
|
|
1639
|
+
pt: [{
|
|
1640
|
+
pt: [padding]
|
|
1641
|
+
}],
|
|
1642
|
+
/**
|
|
1643
|
+
* Padding Right
|
|
1644
|
+
* @see https://tailwindcss.com/docs/padding
|
|
1645
|
+
*/
|
|
1646
|
+
pr: [{
|
|
1647
|
+
pr: [padding]
|
|
1648
|
+
}],
|
|
1649
|
+
/**
|
|
1650
|
+
* Padding Bottom
|
|
1651
|
+
* @see https://tailwindcss.com/docs/padding
|
|
1652
|
+
*/
|
|
1653
|
+
pb: [{
|
|
1654
|
+
pb: [padding]
|
|
1655
|
+
}],
|
|
1656
|
+
/**
|
|
1657
|
+
* Padding Left
|
|
1658
|
+
* @see https://tailwindcss.com/docs/padding
|
|
1659
|
+
*/
|
|
1660
|
+
pl: [{
|
|
1661
|
+
pl: [padding]
|
|
1662
|
+
}],
|
|
1663
|
+
/**
|
|
1664
|
+
* Margin
|
|
1665
|
+
* @see https://tailwindcss.com/docs/margin
|
|
1666
|
+
*/
|
|
1667
|
+
m: [{
|
|
1668
|
+
m: [margin]
|
|
1669
|
+
}],
|
|
1670
|
+
/**
|
|
1671
|
+
* Margin X
|
|
1672
|
+
* @see https://tailwindcss.com/docs/margin
|
|
1673
|
+
*/
|
|
1674
|
+
mx: [{
|
|
1675
|
+
mx: [margin]
|
|
1676
|
+
}],
|
|
1677
|
+
/**
|
|
1678
|
+
* Margin Y
|
|
1679
|
+
* @see https://tailwindcss.com/docs/margin
|
|
1680
|
+
*/
|
|
1681
|
+
my: [{
|
|
1682
|
+
my: [margin]
|
|
1683
|
+
}],
|
|
1684
|
+
/**
|
|
1685
|
+
* Margin Start
|
|
1686
|
+
* @see https://tailwindcss.com/docs/margin
|
|
1687
|
+
*/
|
|
1688
|
+
ms: [{
|
|
1689
|
+
ms: [margin]
|
|
1690
|
+
}],
|
|
1691
|
+
/**
|
|
1692
|
+
* Margin End
|
|
1693
|
+
* @see https://tailwindcss.com/docs/margin
|
|
1694
|
+
*/
|
|
1695
|
+
me: [{
|
|
1696
|
+
me: [margin]
|
|
1697
|
+
}],
|
|
1698
|
+
/**
|
|
1699
|
+
* Margin Top
|
|
1700
|
+
* @see https://tailwindcss.com/docs/margin
|
|
1701
|
+
*/
|
|
1702
|
+
mt: [{
|
|
1703
|
+
mt: [margin]
|
|
1704
|
+
}],
|
|
1705
|
+
/**
|
|
1706
|
+
* Margin Right
|
|
1707
|
+
* @see https://tailwindcss.com/docs/margin
|
|
1708
|
+
*/
|
|
1709
|
+
mr: [{
|
|
1710
|
+
mr: [margin]
|
|
1711
|
+
}],
|
|
1712
|
+
/**
|
|
1713
|
+
* Margin Bottom
|
|
1714
|
+
* @see https://tailwindcss.com/docs/margin
|
|
1715
|
+
*/
|
|
1716
|
+
mb: [{
|
|
1717
|
+
mb: [margin]
|
|
1718
|
+
}],
|
|
1719
|
+
/**
|
|
1720
|
+
* Margin Left
|
|
1721
|
+
* @see https://tailwindcss.com/docs/margin
|
|
1722
|
+
*/
|
|
1723
|
+
ml: [{
|
|
1724
|
+
ml: [margin]
|
|
1725
|
+
}],
|
|
1726
|
+
/**
|
|
1727
|
+
* Space Between X
|
|
1728
|
+
* @see https://tailwindcss.com/docs/space
|
|
1729
|
+
*/
|
|
1730
|
+
"space-x": [{
|
|
1731
|
+
"space-x": [space]
|
|
1732
|
+
}],
|
|
1733
|
+
/**
|
|
1734
|
+
* Space Between X Reverse
|
|
1735
|
+
* @see https://tailwindcss.com/docs/space
|
|
1736
|
+
*/
|
|
1737
|
+
"space-x-reverse": ["space-x-reverse"],
|
|
1738
|
+
/**
|
|
1739
|
+
* Space Between Y
|
|
1740
|
+
* @see https://tailwindcss.com/docs/space
|
|
1741
|
+
*/
|
|
1742
|
+
"space-y": [{
|
|
1743
|
+
"space-y": [space]
|
|
1744
|
+
}],
|
|
1745
|
+
/**
|
|
1746
|
+
* Space Between Y Reverse
|
|
1747
|
+
* @see https://tailwindcss.com/docs/space
|
|
1748
|
+
*/
|
|
1749
|
+
"space-y-reverse": ["space-y-reverse"],
|
|
1750
|
+
// Sizing
|
|
1751
|
+
/**
|
|
1752
|
+
* Width
|
|
1753
|
+
* @see https://tailwindcss.com/docs/width
|
|
1754
|
+
*/
|
|
1755
|
+
w: [{
|
|
1756
|
+
w: ["auto", "min", "max", "fit", "svw", "lvw", "dvw", isArbitraryValue, spacing]
|
|
1757
|
+
}],
|
|
1758
|
+
/**
|
|
1759
|
+
* Min-Width
|
|
1760
|
+
* @see https://tailwindcss.com/docs/min-width
|
|
1761
|
+
*/
|
|
1762
|
+
"min-w": [{
|
|
1763
|
+
"min-w": [isArbitraryValue, spacing, "min", "max", "fit"]
|
|
1764
|
+
}],
|
|
1765
|
+
/**
|
|
1766
|
+
* Max-Width
|
|
1767
|
+
* @see https://tailwindcss.com/docs/max-width
|
|
1768
|
+
*/
|
|
1769
|
+
"max-w": [{
|
|
1770
|
+
"max-w": [isArbitraryValue, spacing, "none", "full", "min", "max", "fit", "prose", {
|
|
1771
|
+
screen: [isTshirtSize]
|
|
1772
|
+
}, isTshirtSize]
|
|
1773
|
+
}],
|
|
1774
|
+
/**
|
|
1775
|
+
* Height
|
|
1776
|
+
* @see https://tailwindcss.com/docs/height
|
|
1777
|
+
*/
|
|
1778
|
+
h: [{
|
|
1779
|
+
h: [isArbitraryValue, spacing, "auto", "min", "max", "fit", "svh", "lvh", "dvh"]
|
|
1780
|
+
}],
|
|
1781
|
+
/**
|
|
1782
|
+
* Min-Height
|
|
1783
|
+
* @see https://tailwindcss.com/docs/min-height
|
|
1784
|
+
*/
|
|
1785
|
+
"min-h": [{
|
|
1786
|
+
"min-h": [isArbitraryValue, spacing, "min", "max", "fit", "svh", "lvh", "dvh"]
|
|
1787
|
+
}],
|
|
1788
|
+
/**
|
|
1789
|
+
* Max-Height
|
|
1790
|
+
* @see https://tailwindcss.com/docs/max-height
|
|
1791
|
+
*/
|
|
1792
|
+
"max-h": [{
|
|
1793
|
+
"max-h": [isArbitraryValue, spacing, "min", "max", "fit", "svh", "lvh", "dvh"]
|
|
1794
|
+
}],
|
|
1795
|
+
/**
|
|
1796
|
+
* Size
|
|
1797
|
+
* @see https://tailwindcss.com/docs/size
|
|
1798
|
+
*/
|
|
1799
|
+
size: [{
|
|
1800
|
+
size: [isArbitraryValue, spacing, "auto", "min", "max", "fit"]
|
|
1801
|
+
}],
|
|
1802
|
+
// Typography
|
|
1803
|
+
/**
|
|
1804
|
+
* Font Size
|
|
1805
|
+
* @see https://tailwindcss.com/docs/font-size
|
|
1806
|
+
*/
|
|
1807
|
+
"font-size": [{
|
|
1808
|
+
text: ["base", isTshirtSize, isArbitraryLength]
|
|
1809
|
+
}],
|
|
1810
|
+
/**
|
|
1811
|
+
* Font Smoothing
|
|
1812
|
+
* @see https://tailwindcss.com/docs/font-smoothing
|
|
1813
|
+
*/
|
|
1814
|
+
"font-smoothing": ["antialiased", "subpixel-antialiased"],
|
|
1815
|
+
/**
|
|
1816
|
+
* Font Style
|
|
1817
|
+
* @see https://tailwindcss.com/docs/font-style
|
|
1818
|
+
*/
|
|
1819
|
+
"font-style": ["italic", "not-italic"],
|
|
1820
|
+
/**
|
|
1821
|
+
* Font Weight
|
|
1822
|
+
* @see https://tailwindcss.com/docs/font-weight
|
|
1823
|
+
*/
|
|
1824
|
+
"font-weight": [{
|
|
1825
|
+
font: ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black", isArbitraryNumber]
|
|
1826
|
+
}],
|
|
1827
|
+
/**
|
|
1828
|
+
* Font Family
|
|
1829
|
+
* @see https://tailwindcss.com/docs/font-family
|
|
1830
|
+
*/
|
|
1831
|
+
"font-family": [{
|
|
1832
|
+
font: [isAny]
|
|
1833
|
+
}],
|
|
1834
|
+
/**
|
|
1835
|
+
* Font Variant Numeric
|
|
1836
|
+
* @see https://tailwindcss.com/docs/font-variant-numeric
|
|
1837
|
+
*/
|
|
1838
|
+
"fvn-normal": ["normal-nums"],
|
|
1839
|
+
/**
|
|
1840
|
+
* Font Variant Numeric
|
|
1841
|
+
* @see https://tailwindcss.com/docs/font-variant-numeric
|
|
1842
|
+
*/
|
|
1843
|
+
"fvn-ordinal": ["ordinal"],
|
|
1844
|
+
/**
|
|
1845
|
+
* Font Variant Numeric
|
|
1846
|
+
* @see https://tailwindcss.com/docs/font-variant-numeric
|
|
1847
|
+
*/
|
|
1848
|
+
"fvn-slashed-zero": ["slashed-zero"],
|
|
1849
|
+
/**
|
|
1850
|
+
* Font Variant Numeric
|
|
1851
|
+
* @see https://tailwindcss.com/docs/font-variant-numeric
|
|
1852
|
+
*/
|
|
1853
|
+
"fvn-figure": ["lining-nums", "oldstyle-nums"],
|
|
1854
|
+
/**
|
|
1855
|
+
* Font Variant Numeric
|
|
1856
|
+
* @see https://tailwindcss.com/docs/font-variant-numeric
|
|
1857
|
+
*/
|
|
1858
|
+
"fvn-spacing": ["proportional-nums", "tabular-nums"],
|
|
1859
|
+
/**
|
|
1860
|
+
* Font Variant Numeric
|
|
1861
|
+
* @see https://tailwindcss.com/docs/font-variant-numeric
|
|
1862
|
+
*/
|
|
1863
|
+
"fvn-fraction": ["diagonal-fractions", "stacked-fractons"],
|
|
1864
|
+
/**
|
|
1865
|
+
* Letter Spacing
|
|
1866
|
+
* @see https://tailwindcss.com/docs/letter-spacing
|
|
1867
|
+
*/
|
|
1868
|
+
tracking: [{
|
|
1869
|
+
tracking: ["tighter", "tight", "normal", "wide", "wider", "widest", isArbitraryValue]
|
|
1870
|
+
}],
|
|
1871
|
+
/**
|
|
1872
|
+
* Line Clamp
|
|
1873
|
+
* @see https://tailwindcss.com/docs/line-clamp
|
|
1874
|
+
*/
|
|
1875
|
+
"line-clamp": [{
|
|
1876
|
+
"line-clamp": ["none", isNumber, isArbitraryNumber]
|
|
1877
|
+
}],
|
|
1878
|
+
/**
|
|
1879
|
+
* Line Height
|
|
1880
|
+
* @see https://tailwindcss.com/docs/line-height
|
|
1881
|
+
*/
|
|
1882
|
+
leading: [{
|
|
1883
|
+
leading: ["none", "tight", "snug", "normal", "relaxed", "loose", isLength, isArbitraryValue]
|
|
1884
|
+
}],
|
|
1885
|
+
/**
|
|
1886
|
+
* List Style Image
|
|
1887
|
+
* @see https://tailwindcss.com/docs/list-style-image
|
|
1888
|
+
*/
|
|
1889
|
+
"list-image": [{
|
|
1890
|
+
"list-image": ["none", isArbitraryValue]
|
|
1891
|
+
}],
|
|
1892
|
+
/**
|
|
1893
|
+
* List Style Type
|
|
1894
|
+
* @see https://tailwindcss.com/docs/list-style-type
|
|
1895
|
+
*/
|
|
1896
|
+
"list-style-type": [{
|
|
1897
|
+
list: ["none", "disc", "decimal", isArbitraryValue]
|
|
1898
|
+
}],
|
|
1899
|
+
/**
|
|
1900
|
+
* List Style Position
|
|
1901
|
+
* @see https://tailwindcss.com/docs/list-style-position
|
|
1902
|
+
*/
|
|
1903
|
+
"list-style-position": [{
|
|
1904
|
+
list: ["inside", "outside"]
|
|
1905
|
+
}],
|
|
1906
|
+
/**
|
|
1907
|
+
* Placeholder Color
|
|
1908
|
+
* @deprecated since Tailwind CSS v3.0.0
|
|
1909
|
+
* @see https://tailwindcss.com/docs/placeholder-color
|
|
1910
|
+
*/
|
|
1911
|
+
"placeholder-color": [{
|
|
1912
|
+
placeholder: [colors]
|
|
1913
|
+
}],
|
|
1914
|
+
/**
|
|
1915
|
+
* Placeholder Opacity
|
|
1916
|
+
* @see https://tailwindcss.com/docs/placeholder-opacity
|
|
1917
|
+
*/
|
|
1918
|
+
"placeholder-opacity": [{
|
|
1919
|
+
"placeholder-opacity": [opacity]
|
|
1920
|
+
}],
|
|
1921
|
+
/**
|
|
1922
|
+
* Text Alignment
|
|
1923
|
+
* @see https://tailwindcss.com/docs/text-align
|
|
1924
|
+
*/
|
|
1925
|
+
"text-alignment": [{
|
|
1926
|
+
text: ["left", "center", "right", "justify", "start", "end"]
|
|
1927
|
+
}],
|
|
1928
|
+
/**
|
|
1929
|
+
* Text Color
|
|
1930
|
+
* @see https://tailwindcss.com/docs/text-color
|
|
1931
|
+
*/
|
|
1932
|
+
"text-color": [{
|
|
1933
|
+
text: [colors]
|
|
1934
|
+
}],
|
|
1935
|
+
/**
|
|
1936
|
+
* Text Opacity
|
|
1937
|
+
* @see https://tailwindcss.com/docs/text-opacity
|
|
1938
|
+
*/
|
|
1939
|
+
"text-opacity": [{
|
|
1940
|
+
"text-opacity": [opacity]
|
|
1941
|
+
}],
|
|
1942
|
+
/**
|
|
1943
|
+
* Text Decoration
|
|
1944
|
+
* @see https://tailwindcss.com/docs/text-decoration
|
|
1945
|
+
*/
|
|
1946
|
+
"text-decoration": ["underline", "overline", "line-through", "no-underline"],
|
|
1947
|
+
/**
|
|
1948
|
+
* Text Decoration Style
|
|
1949
|
+
* @see https://tailwindcss.com/docs/text-decoration-style
|
|
1950
|
+
*/
|
|
1951
|
+
"text-decoration-style": [{
|
|
1952
|
+
decoration: [...getLineStyles(), "wavy"]
|
|
1953
|
+
}],
|
|
1954
|
+
/**
|
|
1955
|
+
* Text Decoration Thickness
|
|
1956
|
+
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
|
1957
|
+
*/
|
|
1958
|
+
"text-decoration-thickness": [{
|
|
1959
|
+
decoration: ["auto", "from-font", isLength, isArbitraryLength]
|
|
1960
|
+
}],
|
|
1961
|
+
/**
|
|
1962
|
+
* Text Underline Offset
|
|
1963
|
+
* @see https://tailwindcss.com/docs/text-underline-offset
|
|
1964
|
+
*/
|
|
1965
|
+
"underline-offset": [{
|
|
1966
|
+
"underline-offset": ["auto", isLength, isArbitraryValue]
|
|
1967
|
+
}],
|
|
1968
|
+
/**
|
|
1969
|
+
* Text Decoration Color
|
|
1970
|
+
* @see https://tailwindcss.com/docs/text-decoration-color
|
|
1971
|
+
*/
|
|
1972
|
+
"text-decoration-color": [{
|
|
1973
|
+
decoration: [colors]
|
|
1974
|
+
}],
|
|
1975
|
+
/**
|
|
1976
|
+
* Text Transform
|
|
1977
|
+
* @see https://tailwindcss.com/docs/text-transform
|
|
1978
|
+
*/
|
|
1979
|
+
"text-transform": ["uppercase", "lowercase", "capitalize", "normal-case"],
|
|
1980
|
+
/**
|
|
1981
|
+
* Text Overflow
|
|
1982
|
+
* @see https://tailwindcss.com/docs/text-overflow
|
|
1983
|
+
*/
|
|
1984
|
+
"text-overflow": ["truncate", "text-ellipsis", "text-clip"],
|
|
1985
|
+
/**
|
|
1986
|
+
* Text Wrap
|
|
1987
|
+
* @see https://tailwindcss.com/docs/text-wrap
|
|
1988
|
+
*/
|
|
1989
|
+
"text-wrap": [{
|
|
1990
|
+
text: ["wrap", "nowrap", "balance", "pretty"]
|
|
1991
|
+
}],
|
|
1992
|
+
/**
|
|
1993
|
+
* Text Indent
|
|
1994
|
+
* @see https://tailwindcss.com/docs/text-indent
|
|
1995
|
+
*/
|
|
1996
|
+
indent: [{
|
|
1997
|
+
indent: getSpacingWithArbitrary()
|
|
1998
|
+
}],
|
|
1999
|
+
/**
|
|
2000
|
+
* Vertical Alignment
|
|
2001
|
+
* @see https://tailwindcss.com/docs/vertical-align
|
|
2002
|
+
*/
|
|
2003
|
+
"vertical-align": [{
|
|
2004
|
+
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", isArbitraryValue]
|
|
2005
|
+
}],
|
|
2006
|
+
/**
|
|
2007
|
+
* Whitespace
|
|
2008
|
+
* @see https://tailwindcss.com/docs/whitespace
|
|
2009
|
+
*/
|
|
2010
|
+
whitespace: [{
|
|
2011
|
+
whitespace: ["normal", "nowrap", "pre", "pre-line", "pre-wrap", "break-spaces"]
|
|
2012
|
+
}],
|
|
2013
|
+
/**
|
|
2014
|
+
* Word Break
|
|
2015
|
+
* @see https://tailwindcss.com/docs/word-break
|
|
2016
|
+
*/
|
|
2017
|
+
break: [{
|
|
2018
|
+
break: ["normal", "words", "all", "keep"]
|
|
2019
|
+
}],
|
|
2020
|
+
/**
|
|
2021
|
+
* Hyphens
|
|
2022
|
+
* @see https://tailwindcss.com/docs/hyphens
|
|
2023
|
+
*/
|
|
2024
|
+
hyphens: [{
|
|
2025
|
+
hyphens: ["none", "manual", "auto"]
|
|
2026
|
+
}],
|
|
2027
|
+
/**
|
|
2028
|
+
* Content
|
|
2029
|
+
* @see https://tailwindcss.com/docs/content
|
|
2030
|
+
*/
|
|
2031
|
+
content: [{
|
|
2032
|
+
content: ["none", isArbitraryValue]
|
|
2033
|
+
}],
|
|
2034
|
+
// Backgrounds
|
|
2035
|
+
/**
|
|
2036
|
+
* Background Attachment
|
|
2037
|
+
* @see https://tailwindcss.com/docs/background-attachment
|
|
2038
|
+
*/
|
|
2039
|
+
"bg-attachment": [{
|
|
2040
|
+
bg: ["fixed", "local", "scroll"]
|
|
2041
|
+
}],
|
|
2042
|
+
/**
|
|
2043
|
+
* Background Clip
|
|
2044
|
+
* @see https://tailwindcss.com/docs/background-clip
|
|
2045
|
+
*/
|
|
2046
|
+
"bg-clip": [{
|
|
2047
|
+
"bg-clip": ["border", "padding", "content", "text"]
|
|
2048
|
+
}],
|
|
2049
|
+
/**
|
|
2050
|
+
* Background Opacity
|
|
2051
|
+
* @deprecated since Tailwind CSS v3.0.0
|
|
2052
|
+
* @see https://tailwindcss.com/docs/background-opacity
|
|
2053
|
+
*/
|
|
2054
|
+
"bg-opacity": [{
|
|
2055
|
+
"bg-opacity": [opacity]
|
|
2056
|
+
}],
|
|
2057
|
+
/**
|
|
2058
|
+
* Background Origin
|
|
2059
|
+
* @see https://tailwindcss.com/docs/background-origin
|
|
2060
|
+
*/
|
|
2061
|
+
"bg-origin": [{
|
|
2062
|
+
"bg-origin": ["border", "padding", "content"]
|
|
2063
|
+
}],
|
|
2064
|
+
/**
|
|
2065
|
+
* Background Position
|
|
2066
|
+
* @see https://tailwindcss.com/docs/background-position
|
|
2067
|
+
*/
|
|
2068
|
+
"bg-position": [{
|
|
2069
|
+
bg: [...getPositions(), isArbitraryPosition]
|
|
2070
|
+
}],
|
|
2071
|
+
/**
|
|
2072
|
+
* Background Repeat
|
|
2073
|
+
* @see https://tailwindcss.com/docs/background-repeat
|
|
2074
|
+
*/
|
|
2075
|
+
"bg-repeat": [{
|
|
2076
|
+
bg: ["no-repeat", {
|
|
2077
|
+
repeat: ["", "x", "y", "round", "space"]
|
|
2078
|
+
}]
|
|
2079
|
+
}],
|
|
2080
|
+
/**
|
|
2081
|
+
* Background Size
|
|
2082
|
+
* @see https://tailwindcss.com/docs/background-size
|
|
2083
|
+
*/
|
|
2084
|
+
"bg-size": [{
|
|
2085
|
+
bg: ["auto", "cover", "contain", isArbitrarySize]
|
|
2086
|
+
}],
|
|
2087
|
+
/**
|
|
2088
|
+
* Background Image
|
|
2089
|
+
* @see https://tailwindcss.com/docs/background-image
|
|
2090
|
+
*/
|
|
2091
|
+
"bg-image": [{
|
|
2092
|
+
bg: ["none", {
|
|
2093
|
+
"gradient-to": ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
|
|
2094
|
+
}, isArbitraryImage]
|
|
2095
|
+
}],
|
|
2096
|
+
/**
|
|
2097
|
+
* Background Color
|
|
2098
|
+
* @see https://tailwindcss.com/docs/background-color
|
|
2099
|
+
*/
|
|
2100
|
+
"bg-color": [{
|
|
2101
|
+
bg: [colors]
|
|
2102
|
+
}],
|
|
2103
|
+
/**
|
|
2104
|
+
* Gradient Color Stops From Position
|
|
2105
|
+
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
2106
|
+
*/
|
|
2107
|
+
"gradient-from-pos": [{
|
|
2108
|
+
from: [gradientColorStopPositions]
|
|
2109
|
+
}],
|
|
2110
|
+
/**
|
|
2111
|
+
* Gradient Color Stops Via Position
|
|
2112
|
+
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
2113
|
+
*/
|
|
2114
|
+
"gradient-via-pos": [{
|
|
2115
|
+
via: [gradientColorStopPositions]
|
|
2116
|
+
}],
|
|
2117
|
+
/**
|
|
2118
|
+
* Gradient Color Stops To Position
|
|
2119
|
+
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
2120
|
+
*/
|
|
2121
|
+
"gradient-to-pos": [{
|
|
2122
|
+
to: [gradientColorStopPositions]
|
|
2123
|
+
}],
|
|
2124
|
+
/**
|
|
2125
|
+
* Gradient Color Stops From
|
|
2126
|
+
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
2127
|
+
*/
|
|
2128
|
+
"gradient-from": [{
|
|
2129
|
+
from: [gradientColorStops]
|
|
2130
|
+
}],
|
|
2131
|
+
/**
|
|
2132
|
+
* Gradient Color Stops Via
|
|
2133
|
+
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
2134
|
+
*/
|
|
2135
|
+
"gradient-via": [{
|
|
2136
|
+
via: [gradientColorStops]
|
|
2137
|
+
}],
|
|
2138
|
+
/**
|
|
2139
|
+
* Gradient Color Stops To
|
|
2140
|
+
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
2141
|
+
*/
|
|
2142
|
+
"gradient-to": [{
|
|
2143
|
+
to: [gradientColorStops]
|
|
2144
|
+
}],
|
|
2145
|
+
// Borders
|
|
2146
|
+
/**
|
|
2147
|
+
* Border Radius
|
|
2148
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
2149
|
+
*/
|
|
2150
|
+
rounded: [{
|
|
2151
|
+
rounded: [borderRadius]
|
|
2152
|
+
}],
|
|
2153
|
+
/**
|
|
2154
|
+
* Border Radius Start
|
|
2155
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
2156
|
+
*/
|
|
2157
|
+
"rounded-s": [{
|
|
2158
|
+
"rounded-s": [borderRadius]
|
|
2159
|
+
}],
|
|
2160
|
+
/**
|
|
2161
|
+
* Border Radius End
|
|
2162
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
2163
|
+
*/
|
|
2164
|
+
"rounded-e": [{
|
|
2165
|
+
"rounded-e": [borderRadius]
|
|
2166
|
+
}],
|
|
2167
|
+
/**
|
|
2168
|
+
* Border Radius Top
|
|
2169
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
2170
|
+
*/
|
|
2171
|
+
"rounded-t": [{
|
|
2172
|
+
"rounded-t": [borderRadius]
|
|
2173
|
+
}],
|
|
2174
|
+
/**
|
|
2175
|
+
* Border Radius Right
|
|
2176
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
2177
|
+
*/
|
|
2178
|
+
"rounded-r": [{
|
|
2179
|
+
"rounded-r": [borderRadius]
|
|
2180
|
+
}],
|
|
2181
|
+
/**
|
|
2182
|
+
* Border Radius Bottom
|
|
2183
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
2184
|
+
*/
|
|
2185
|
+
"rounded-b": [{
|
|
2186
|
+
"rounded-b": [borderRadius]
|
|
2187
|
+
}],
|
|
2188
|
+
/**
|
|
2189
|
+
* Border Radius Left
|
|
2190
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
2191
|
+
*/
|
|
2192
|
+
"rounded-l": [{
|
|
2193
|
+
"rounded-l": [borderRadius]
|
|
2194
|
+
}],
|
|
2195
|
+
/**
|
|
2196
|
+
* Border Radius Start Start
|
|
2197
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
2198
|
+
*/
|
|
2199
|
+
"rounded-ss": [{
|
|
2200
|
+
"rounded-ss": [borderRadius]
|
|
2201
|
+
}],
|
|
2202
|
+
/**
|
|
2203
|
+
* Border Radius Start End
|
|
2204
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
2205
|
+
*/
|
|
2206
|
+
"rounded-se": [{
|
|
2207
|
+
"rounded-se": [borderRadius]
|
|
2208
|
+
}],
|
|
2209
|
+
/**
|
|
2210
|
+
* Border Radius End End
|
|
2211
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
2212
|
+
*/
|
|
2213
|
+
"rounded-ee": [{
|
|
2214
|
+
"rounded-ee": [borderRadius]
|
|
2215
|
+
}],
|
|
2216
|
+
/**
|
|
2217
|
+
* Border Radius End Start
|
|
2218
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
2219
|
+
*/
|
|
2220
|
+
"rounded-es": [{
|
|
2221
|
+
"rounded-es": [borderRadius]
|
|
2222
|
+
}],
|
|
2223
|
+
/**
|
|
2224
|
+
* Border Radius Top Left
|
|
2225
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
2226
|
+
*/
|
|
2227
|
+
"rounded-tl": [{
|
|
2228
|
+
"rounded-tl": [borderRadius]
|
|
2229
|
+
}],
|
|
2230
|
+
/**
|
|
2231
|
+
* Border Radius Top Right
|
|
2232
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
2233
|
+
*/
|
|
2234
|
+
"rounded-tr": [{
|
|
2235
|
+
"rounded-tr": [borderRadius]
|
|
2236
|
+
}],
|
|
2237
|
+
/**
|
|
2238
|
+
* Border Radius Bottom Right
|
|
2239
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
2240
|
+
*/
|
|
2241
|
+
"rounded-br": [{
|
|
2242
|
+
"rounded-br": [borderRadius]
|
|
2243
|
+
}],
|
|
2244
|
+
/**
|
|
2245
|
+
* Border Radius Bottom Left
|
|
2246
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
2247
|
+
*/
|
|
2248
|
+
"rounded-bl": [{
|
|
2249
|
+
"rounded-bl": [borderRadius]
|
|
2250
|
+
}],
|
|
2251
|
+
/**
|
|
2252
|
+
* Border Width
|
|
2253
|
+
* @see https://tailwindcss.com/docs/border-width
|
|
2254
|
+
*/
|
|
2255
|
+
"border-w": [{
|
|
2256
|
+
border: [borderWidth]
|
|
2257
|
+
}],
|
|
2258
|
+
/**
|
|
2259
|
+
* Border Width X
|
|
2260
|
+
* @see https://tailwindcss.com/docs/border-width
|
|
2261
|
+
*/
|
|
2262
|
+
"border-w-x": [{
|
|
2263
|
+
"border-x": [borderWidth]
|
|
2264
|
+
}],
|
|
2265
|
+
/**
|
|
2266
|
+
* Border Width Y
|
|
2267
|
+
* @see https://tailwindcss.com/docs/border-width
|
|
2268
|
+
*/
|
|
2269
|
+
"border-w-y": [{
|
|
2270
|
+
"border-y": [borderWidth]
|
|
2271
|
+
}],
|
|
2272
|
+
/**
|
|
2273
|
+
* Border Width Start
|
|
2274
|
+
* @see https://tailwindcss.com/docs/border-width
|
|
2275
|
+
*/
|
|
2276
|
+
"border-w-s": [{
|
|
2277
|
+
"border-s": [borderWidth]
|
|
2278
|
+
}],
|
|
2279
|
+
/**
|
|
2280
|
+
* Border Width End
|
|
2281
|
+
* @see https://tailwindcss.com/docs/border-width
|
|
2282
|
+
*/
|
|
2283
|
+
"border-w-e": [{
|
|
2284
|
+
"border-e": [borderWidth]
|
|
2285
|
+
}],
|
|
2286
|
+
/**
|
|
2287
|
+
* Border Width Top
|
|
2288
|
+
* @see https://tailwindcss.com/docs/border-width
|
|
2289
|
+
*/
|
|
2290
|
+
"border-w-t": [{
|
|
2291
|
+
"border-t": [borderWidth]
|
|
2292
|
+
}],
|
|
2293
|
+
/**
|
|
2294
|
+
* Border Width Right
|
|
2295
|
+
* @see https://tailwindcss.com/docs/border-width
|
|
2296
|
+
*/
|
|
2297
|
+
"border-w-r": [{
|
|
2298
|
+
"border-r": [borderWidth]
|
|
2299
|
+
}],
|
|
2300
|
+
/**
|
|
2301
|
+
* Border Width Bottom
|
|
2302
|
+
* @see https://tailwindcss.com/docs/border-width
|
|
2303
|
+
*/
|
|
2304
|
+
"border-w-b": [{
|
|
2305
|
+
"border-b": [borderWidth]
|
|
2306
|
+
}],
|
|
2307
|
+
/**
|
|
2308
|
+
* Border Width Left
|
|
2309
|
+
* @see https://tailwindcss.com/docs/border-width
|
|
2310
|
+
*/
|
|
2311
|
+
"border-w-l": [{
|
|
2312
|
+
"border-l": [borderWidth]
|
|
2313
|
+
}],
|
|
2314
|
+
/**
|
|
2315
|
+
* Border Opacity
|
|
2316
|
+
* @see https://tailwindcss.com/docs/border-opacity
|
|
2317
|
+
*/
|
|
2318
|
+
"border-opacity": [{
|
|
2319
|
+
"border-opacity": [opacity]
|
|
2320
|
+
}],
|
|
2321
|
+
/**
|
|
2322
|
+
* Border Style
|
|
2323
|
+
* @see https://tailwindcss.com/docs/border-style
|
|
2324
|
+
*/
|
|
2325
|
+
"border-style": [{
|
|
2326
|
+
border: [...getLineStyles(), "hidden"]
|
|
2327
|
+
}],
|
|
2328
|
+
/**
|
|
2329
|
+
* Divide Width X
|
|
2330
|
+
* @see https://tailwindcss.com/docs/divide-width
|
|
2331
|
+
*/
|
|
2332
|
+
"divide-x": [{
|
|
2333
|
+
"divide-x": [borderWidth]
|
|
2334
|
+
}],
|
|
2335
|
+
/**
|
|
2336
|
+
* Divide Width X Reverse
|
|
2337
|
+
* @see https://tailwindcss.com/docs/divide-width
|
|
2338
|
+
*/
|
|
2339
|
+
"divide-x-reverse": ["divide-x-reverse"],
|
|
2340
|
+
/**
|
|
2341
|
+
* Divide Width Y
|
|
2342
|
+
* @see https://tailwindcss.com/docs/divide-width
|
|
2343
|
+
*/
|
|
2344
|
+
"divide-y": [{
|
|
2345
|
+
"divide-y": [borderWidth]
|
|
2346
|
+
}],
|
|
2347
|
+
/**
|
|
2348
|
+
* Divide Width Y Reverse
|
|
2349
|
+
* @see https://tailwindcss.com/docs/divide-width
|
|
2350
|
+
*/
|
|
2351
|
+
"divide-y-reverse": ["divide-y-reverse"],
|
|
2352
|
+
/**
|
|
2353
|
+
* Divide Opacity
|
|
2354
|
+
* @see https://tailwindcss.com/docs/divide-opacity
|
|
2355
|
+
*/
|
|
2356
|
+
"divide-opacity": [{
|
|
2357
|
+
"divide-opacity": [opacity]
|
|
2358
|
+
}],
|
|
2359
|
+
/**
|
|
2360
|
+
* Divide Style
|
|
2361
|
+
* @see https://tailwindcss.com/docs/divide-style
|
|
2362
|
+
*/
|
|
2363
|
+
"divide-style": [{
|
|
2364
|
+
divide: getLineStyles()
|
|
2365
|
+
}],
|
|
2366
|
+
/**
|
|
2367
|
+
* Border Color
|
|
2368
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
2369
|
+
*/
|
|
2370
|
+
"border-color": [{
|
|
2371
|
+
border: [borderColor]
|
|
2372
|
+
}],
|
|
2373
|
+
/**
|
|
2374
|
+
* Border Color X
|
|
2375
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
2376
|
+
*/
|
|
2377
|
+
"border-color-x": [{
|
|
2378
|
+
"border-x": [borderColor]
|
|
2379
|
+
}],
|
|
2380
|
+
/**
|
|
2381
|
+
* Border Color Y
|
|
2382
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
2383
|
+
*/
|
|
2384
|
+
"border-color-y": [{
|
|
2385
|
+
"border-y": [borderColor]
|
|
2386
|
+
}],
|
|
2387
|
+
/**
|
|
2388
|
+
* Border Color S
|
|
2389
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
2390
|
+
*/
|
|
2391
|
+
"border-color-s": [{
|
|
2392
|
+
"border-s": [borderColor]
|
|
2393
|
+
}],
|
|
2394
|
+
/**
|
|
2395
|
+
* Border Color E
|
|
2396
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
2397
|
+
*/
|
|
2398
|
+
"border-color-e": [{
|
|
2399
|
+
"border-e": [borderColor]
|
|
2400
|
+
}],
|
|
2401
|
+
/**
|
|
2402
|
+
* Border Color Top
|
|
2403
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
2404
|
+
*/
|
|
2405
|
+
"border-color-t": [{
|
|
2406
|
+
"border-t": [borderColor]
|
|
2407
|
+
}],
|
|
2408
|
+
/**
|
|
2409
|
+
* Border Color Right
|
|
2410
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
2411
|
+
*/
|
|
2412
|
+
"border-color-r": [{
|
|
2413
|
+
"border-r": [borderColor]
|
|
2414
|
+
}],
|
|
2415
|
+
/**
|
|
2416
|
+
* Border Color Bottom
|
|
2417
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
2418
|
+
*/
|
|
2419
|
+
"border-color-b": [{
|
|
2420
|
+
"border-b": [borderColor]
|
|
2421
|
+
}],
|
|
2422
|
+
/**
|
|
2423
|
+
* Border Color Left
|
|
2424
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
2425
|
+
*/
|
|
2426
|
+
"border-color-l": [{
|
|
2427
|
+
"border-l": [borderColor]
|
|
2428
|
+
}],
|
|
2429
|
+
/**
|
|
2430
|
+
* Divide Color
|
|
2431
|
+
* @see https://tailwindcss.com/docs/divide-color
|
|
2432
|
+
*/
|
|
2433
|
+
"divide-color": [{
|
|
2434
|
+
divide: [borderColor]
|
|
2435
|
+
}],
|
|
2436
|
+
/**
|
|
2437
|
+
* Outline Style
|
|
2438
|
+
* @see https://tailwindcss.com/docs/outline-style
|
|
2439
|
+
*/
|
|
2440
|
+
"outline-style": [{
|
|
2441
|
+
outline: ["", ...getLineStyles()]
|
|
2442
|
+
}],
|
|
2443
|
+
/**
|
|
2444
|
+
* Outline Offset
|
|
2445
|
+
* @see https://tailwindcss.com/docs/outline-offset
|
|
2446
|
+
*/
|
|
2447
|
+
"outline-offset": [{
|
|
2448
|
+
"outline-offset": [isLength, isArbitraryValue]
|
|
2449
|
+
}],
|
|
2450
|
+
/**
|
|
2451
|
+
* Outline Width
|
|
2452
|
+
* @see https://tailwindcss.com/docs/outline-width
|
|
2453
|
+
*/
|
|
2454
|
+
"outline-w": [{
|
|
2455
|
+
outline: [isLength, isArbitraryLength]
|
|
2456
|
+
}],
|
|
2457
|
+
/**
|
|
2458
|
+
* Outline Color
|
|
2459
|
+
* @see https://tailwindcss.com/docs/outline-color
|
|
2460
|
+
*/
|
|
2461
|
+
"outline-color": [{
|
|
2462
|
+
outline: [colors]
|
|
2463
|
+
}],
|
|
2464
|
+
/**
|
|
2465
|
+
* Ring Width
|
|
2466
|
+
* @see https://tailwindcss.com/docs/ring-width
|
|
2467
|
+
*/
|
|
2468
|
+
"ring-w": [{
|
|
2469
|
+
ring: getLengthWithEmptyAndArbitrary()
|
|
2470
|
+
}],
|
|
2471
|
+
/**
|
|
2472
|
+
* Ring Width Inset
|
|
2473
|
+
* @see https://tailwindcss.com/docs/ring-width
|
|
2474
|
+
*/
|
|
2475
|
+
"ring-w-inset": ["ring-inset"],
|
|
2476
|
+
/**
|
|
2477
|
+
* Ring Color
|
|
2478
|
+
* @see https://tailwindcss.com/docs/ring-color
|
|
2479
|
+
*/
|
|
2480
|
+
"ring-color": [{
|
|
2481
|
+
ring: [colors]
|
|
2482
|
+
}],
|
|
2483
|
+
/**
|
|
2484
|
+
* Ring Opacity
|
|
2485
|
+
* @see https://tailwindcss.com/docs/ring-opacity
|
|
2486
|
+
*/
|
|
2487
|
+
"ring-opacity": [{
|
|
2488
|
+
"ring-opacity": [opacity]
|
|
2489
|
+
}],
|
|
2490
|
+
/**
|
|
2491
|
+
* Ring Offset Width
|
|
2492
|
+
* @see https://tailwindcss.com/docs/ring-offset-width
|
|
2493
|
+
*/
|
|
2494
|
+
"ring-offset-w": [{
|
|
2495
|
+
"ring-offset": [isLength, isArbitraryLength]
|
|
2496
|
+
}],
|
|
2497
|
+
/**
|
|
2498
|
+
* Ring Offset Color
|
|
2499
|
+
* @see https://tailwindcss.com/docs/ring-offset-color
|
|
2500
|
+
*/
|
|
2501
|
+
"ring-offset-color": [{
|
|
2502
|
+
"ring-offset": [colors]
|
|
2503
|
+
}],
|
|
2504
|
+
// Effects
|
|
2505
|
+
/**
|
|
2506
|
+
* Box Shadow
|
|
2507
|
+
* @see https://tailwindcss.com/docs/box-shadow
|
|
2508
|
+
*/
|
|
2509
|
+
shadow: [{
|
|
2510
|
+
shadow: ["", "inner", "none", isTshirtSize, isArbitraryShadow]
|
|
2511
|
+
}],
|
|
2512
|
+
/**
|
|
2513
|
+
* Box Shadow Color
|
|
2514
|
+
* @see https://tailwindcss.com/docs/box-shadow-color
|
|
2515
|
+
*/
|
|
2516
|
+
"shadow-color": [{
|
|
2517
|
+
shadow: [isAny]
|
|
2518
|
+
}],
|
|
2519
|
+
/**
|
|
2520
|
+
* Opacity
|
|
2521
|
+
* @see https://tailwindcss.com/docs/opacity
|
|
2522
|
+
*/
|
|
2523
|
+
opacity: [{
|
|
2524
|
+
opacity: [opacity]
|
|
2525
|
+
}],
|
|
2526
|
+
/**
|
|
2527
|
+
* Mix Blend Mode
|
|
2528
|
+
* @see https://tailwindcss.com/docs/mix-blend-mode
|
|
2529
|
+
*/
|
|
2530
|
+
"mix-blend": [{
|
|
2531
|
+
"mix-blend": [...getBlendModes(), "plus-lighter", "plus-darker"]
|
|
2532
|
+
}],
|
|
2533
|
+
/**
|
|
2534
|
+
* Background Blend Mode
|
|
2535
|
+
* @see https://tailwindcss.com/docs/background-blend-mode
|
|
2536
|
+
*/
|
|
2537
|
+
"bg-blend": [{
|
|
2538
|
+
"bg-blend": getBlendModes()
|
|
2539
|
+
}],
|
|
2540
|
+
// Filters
|
|
2541
|
+
/**
|
|
2542
|
+
* Filter
|
|
2543
|
+
* @deprecated since Tailwind CSS v3.0.0
|
|
2544
|
+
* @see https://tailwindcss.com/docs/filter
|
|
2545
|
+
*/
|
|
2546
|
+
filter: [{
|
|
2547
|
+
filter: ["", "none"]
|
|
2548
|
+
}],
|
|
2549
|
+
/**
|
|
2550
|
+
* Blur
|
|
2551
|
+
* @see https://tailwindcss.com/docs/blur
|
|
2552
|
+
*/
|
|
2553
|
+
blur: [{
|
|
2554
|
+
blur: [blur]
|
|
2555
|
+
}],
|
|
2556
|
+
/**
|
|
2557
|
+
* Brightness
|
|
2558
|
+
* @see https://tailwindcss.com/docs/brightness
|
|
2559
|
+
*/
|
|
2560
|
+
brightness: [{
|
|
2561
|
+
brightness: [brightness]
|
|
2562
|
+
}],
|
|
2563
|
+
/**
|
|
2564
|
+
* Contrast
|
|
2565
|
+
* @see https://tailwindcss.com/docs/contrast
|
|
2566
|
+
*/
|
|
2567
|
+
contrast: [{
|
|
2568
|
+
contrast: [contrast]
|
|
2569
|
+
}],
|
|
2570
|
+
/**
|
|
2571
|
+
* Drop Shadow
|
|
2572
|
+
* @see https://tailwindcss.com/docs/drop-shadow
|
|
2573
|
+
*/
|
|
2574
|
+
"drop-shadow": [{
|
|
2575
|
+
"drop-shadow": ["", "none", isTshirtSize, isArbitraryValue]
|
|
2576
|
+
}],
|
|
2577
|
+
/**
|
|
2578
|
+
* Grayscale
|
|
2579
|
+
* @see https://tailwindcss.com/docs/grayscale
|
|
2580
|
+
*/
|
|
2581
|
+
grayscale: [{
|
|
2582
|
+
grayscale: [grayscale]
|
|
2583
|
+
}],
|
|
2584
|
+
/**
|
|
2585
|
+
* Hue Rotate
|
|
2586
|
+
* @see https://tailwindcss.com/docs/hue-rotate
|
|
2587
|
+
*/
|
|
2588
|
+
"hue-rotate": [{
|
|
2589
|
+
"hue-rotate": [hueRotate]
|
|
2590
|
+
}],
|
|
2591
|
+
/**
|
|
2592
|
+
* Invert
|
|
2593
|
+
* @see https://tailwindcss.com/docs/invert
|
|
2594
|
+
*/
|
|
2595
|
+
invert: [{
|
|
2596
|
+
invert: [invert]
|
|
2597
|
+
}],
|
|
2598
|
+
/**
|
|
2599
|
+
* Saturate
|
|
2600
|
+
* @see https://tailwindcss.com/docs/saturate
|
|
2601
|
+
*/
|
|
2602
|
+
saturate: [{
|
|
2603
|
+
saturate: [saturate]
|
|
2604
|
+
}],
|
|
2605
|
+
/**
|
|
2606
|
+
* Sepia
|
|
2607
|
+
* @see https://tailwindcss.com/docs/sepia
|
|
2608
|
+
*/
|
|
2609
|
+
sepia: [{
|
|
2610
|
+
sepia: [sepia]
|
|
2611
|
+
}],
|
|
2612
|
+
/**
|
|
2613
|
+
* Backdrop Filter
|
|
2614
|
+
* @deprecated since Tailwind CSS v3.0.0
|
|
2615
|
+
* @see https://tailwindcss.com/docs/backdrop-filter
|
|
2616
|
+
*/
|
|
2617
|
+
"backdrop-filter": [{
|
|
2618
|
+
"backdrop-filter": ["", "none"]
|
|
2619
|
+
}],
|
|
2620
|
+
/**
|
|
2621
|
+
* Backdrop Blur
|
|
2622
|
+
* @see https://tailwindcss.com/docs/backdrop-blur
|
|
2623
|
+
*/
|
|
2624
|
+
"backdrop-blur": [{
|
|
2625
|
+
"backdrop-blur": [blur]
|
|
2626
|
+
}],
|
|
2627
|
+
/**
|
|
2628
|
+
* Backdrop Brightness
|
|
2629
|
+
* @see https://tailwindcss.com/docs/backdrop-brightness
|
|
2630
|
+
*/
|
|
2631
|
+
"backdrop-brightness": [{
|
|
2632
|
+
"backdrop-brightness": [brightness]
|
|
2633
|
+
}],
|
|
2634
|
+
/**
|
|
2635
|
+
* Backdrop Contrast
|
|
2636
|
+
* @see https://tailwindcss.com/docs/backdrop-contrast
|
|
2637
|
+
*/
|
|
2638
|
+
"backdrop-contrast": [{
|
|
2639
|
+
"backdrop-contrast": [contrast]
|
|
2640
|
+
}],
|
|
2641
|
+
/**
|
|
2642
|
+
* Backdrop Grayscale
|
|
2643
|
+
* @see https://tailwindcss.com/docs/backdrop-grayscale
|
|
2644
|
+
*/
|
|
2645
|
+
"backdrop-grayscale": [{
|
|
2646
|
+
"backdrop-grayscale": [grayscale]
|
|
2647
|
+
}],
|
|
2648
|
+
/**
|
|
2649
|
+
* Backdrop Hue Rotate
|
|
2650
|
+
* @see https://tailwindcss.com/docs/backdrop-hue-rotate
|
|
2651
|
+
*/
|
|
2652
|
+
"backdrop-hue-rotate": [{
|
|
2653
|
+
"backdrop-hue-rotate": [hueRotate]
|
|
2654
|
+
}],
|
|
2655
|
+
/**
|
|
2656
|
+
* Backdrop Invert
|
|
2657
|
+
* @see https://tailwindcss.com/docs/backdrop-invert
|
|
2658
|
+
*/
|
|
2659
|
+
"backdrop-invert": [{
|
|
2660
|
+
"backdrop-invert": [invert]
|
|
2661
|
+
}],
|
|
2662
|
+
/**
|
|
2663
|
+
* Backdrop Opacity
|
|
2664
|
+
* @see https://tailwindcss.com/docs/backdrop-opacity
|
|
2665
|
+
*/
|
|
2666
|
+
"backdrop-opacity": [{
|
|
2667
|
+
"backdrop-opacity": [opacity]
|
|
2668
|
+
}],
|
|
2669
|
+
/**
|
|
2670
|
+
* Backdrop Saturate
|
|
2671
|
+
* @see https://tailwindcss.com/docs/backdrop-saturate
|
|
2672
|
+
*/
|
|
2673
|
+
"backdrop-saturate": [{
|
|
2674
|
+
"backdrop-saturate": [saturate]
|
|
2675
|
+
}],
|
|
2676
|
+
/**
|
|
2677
|
+
* Backdrop Sepia
|
|
2678
|
+
* @see https://tailwindcss.com/docs/backdrop-sepia
|
|
2679
|
+
*/
|
|
2680
|
+
"backdrop-sepia": [{
|
|
2681
|
+
"backdrop-sepia": [sepia]
|
|
2682
|
+
}],
|
|
2683
|
+
// Tables
|
|
2684
|
+
/**
|
|
2685
|
+
* Border Collapse
|
|
2686
|
+
* @see https://tailwindcss.com/docs/border-collapse
|
|
2687
|
+
*/
|
|
2688
|
+
"border-collapse": [{
|
|
2689
|
+
border: ["collapse", "separate"]
|
|
2690
|
+
}],
|
|
2691
|
+
/**
|
|
2692
|
+
* Border Spacing
|
|
2693
|
+
* @see https://tailwindcss.com/docs/border-spacing
|
|
2694
|
+
*/
|
|
2695
|
+
"border-spacing": [{
|
|
2696
|
+
"border-spacing": [borderSpacing]
|
|
2697
|
+
}],
|
|
2698
|
+
/**
|
|
2699
|
+
* Border Spacing X
|
|
2700
|
+
* @see https://tailwindcss.com/docs/border-spacing
|
|
2701
|
+
*/
|
|
2702
|
+
"border-spacing-x": [{
|
|
2703
|
+
"border-spacing-x": [borderSpacing]
|
|
2704
|
+
}],
|
|
2705
|
+
/**
|
|
2706
|
+
* Border Spacing Y
|
|
2707
|
+
* @see https://tailwindcss.com/docs/border-spacing
|
|
2708
|
+
*/
|
|
2709
|
+
"border-spacing-y": [{
|
|
2710
|
+
"border-spacing-y": [borderSpacing]
|
|
2711
|
+
}],
|
|
2712
|
+
/**
|
|
2713
|
+
* Table Layout
|
|
2714
|
+
* @see https://tailwindcss.com/docs/table-layout
|
|
2715
|
+
*/
|
|
2716
|
+
"table-layout": [{
|
|
2717
|
+
table: ["auto", "fixed"]
|
|
2718
|
+
}],
|
|
2719
|
+
/**
|
|
2720
|
+
* Caption Side
|
|
2721
|
+
* @see https://tailwindcss.com/docs/caption-side
|
|
2722
|
+
*/
|
|
2723
|
+
caption: [{
|
|
2724
|
+
caption: ["top", "bottom"]
|
|
2725
|
+
}],
|
|
2726
|
+
// Transitions and Animation
|
|
2727
|
+
/**
|
|
2728
|
+
* Tranisition Property
|
|
2729
|
+
* @see https://tailwindcss.com/docs/transition-property
|
|
2730
|
+
*/
|
|
2731
|
+
transition: [{
|
|
2732
|
+
transition: ["none", "all", "", "colors", "opacity", "shadow", "transform", isArbitraryValue]
|
|
2733
|
+
}],
|
|
2734
|
+
/**
|
|
2735
|
+
* Transition Duration
|
|
2736
|
+
* @see https://tailwindcss.com/docs/transition-duration
|
|
2737
|
+
*/
|
|
2738
|
+
duration: [{
|
|
2739
|
+
duration: getNumberAndArbitrary()
|
|
2740
|
+
}],
|
|
2741
|
+
/**
|
|
2742
|
+
* Transition Timing Function
|
|
2743
|
+
* @see https://tailwindcss.com/docs/transition-timing-function
|
|
2744
|
+
*/
|
|
2745
|
+
ease: [{
|
|
2746
|
+
ease: ["linear", "in", "out", "in-out", isArbitraryValue]
|
|
2747
|
+
}],
|
|
2748
|
+
/**
|
|
2749
|
+
* Transition Delay
|
|
2750
|
+
* @see https://tailwindcss.com/docs/transition-delay
|
|
2751
|
+
*/
|
|
2752
|
+
delay: [{
|
|
2753
|
+
delay: getNumberAndArbitrary()
|
|
2754
|
+
}],
|
|
2755
|
+
/**
|
|
2756
|
+
* Animation
|
|
2757
|
+
* @see https://tailwindcss.com/docs/animation
|
|
2758
|
+
*/
|
|
2759
|
+
animate: [{
|
|
2760
|
+
animate: ["none", "spin", "ping", "pulse", "bounce", isArbitraryValue]
|
|
2761
|
+
}],
|
|
2762
|
+
// Transforms
|
|
2763
|
+
/**
|
|
2764
|
+
* Transform
|
|
2765
|
+
* @see https://tailwindcss.com/docs/transform
|
|
2766
|
+
*/
|
|
2767
|
+
transform: [{
|
|
2768
|
+
transform: ["", "gpu", "none"]
|
|
2769
|
+
}],
|
|
2770
|
+
/**
|
|
2771
|
+
* Scale
|
|
2772
|
+
* @see https://tailwindcss.com/docs/scale
|
|
2773
|
+
*/
|
|
2774
|
+
scale: [{
|
|
2775
|
+
scale: [scale]
|
|
2776
|
+
}],
|
|
2777
|
+
/**
|
|
2778
|
+
* Scale X
|
|
2779
|
+
* @see https://tailwindcss.com/docs/scale
|
|
2780
|
+
*/
|
|
2781
|
+
"scale-x": [{
|
|
2782
|
+
"scale-x": [scale]
|
|
2783
|
+
}],
|
|
2784
|
+
/**
|
|
2785
|
+
* Scale Y
|
|
2786
|
+
* @see https://tailwindcss.com/docs/scale
|
|
2787
|
+
*/
|
|
2788
|
+
"scale-y": [{
|
|
2789
|
+
"scale-y": [scale]
|
|
2790
|
+
}],
|
|
2791
|
+
/**
|
|
2792
|
+
* Rotate
|
|
2793
|
+
* @see https://tailwindcss.com/docs/rotate
|
|
2794
|
+
*/
|
|
2795
|
+
rotate: [{
|
|
2796
|
+
rotate: [isInteger, isArbitraryValue]
|
|
2797
|
+
}],
|
|
2798
|
+
/**
|
|
2799
|
+
* Translate X
|
|
2800
|
+
* @see https://tailwindcss.com/docs/translate
|
|
2801
|
+
*/
|
|
2802
|
+
"translate-x": [{
|
|
2803
|
+
"translate-x": [translate]
|
|
2804
|
+
}],
|
|
2805
|
+
/**
|
|
2806
|
+
* Translate Y
|
|
2807
|
+
* @see https://tailwindcss.com/docs/translate
|
|
2808
|
+
*/
|
|
2809
|
+
"translate-y": [{
|
|
2810
|
+
"translate-y": [translate]
|
|
2811
|
+
}],
|
|
2812
|
+
/**
|
|
2813
|
+
* Skew X
|
|
2814
|
+
* @see https://tailwindcss.com/docs/skew
|
|
2815
|
+
*/
|
|
2816
|
+
"skew-x": [{
|
|
2817
|
+
"skew-x": [skew]
|
|
2818
|
+
}],
|
|
2819
|
+
/**
|
|
2820
|
+
* Skew Y
|
|
2821
|
+
* @see https://tailwindcss.com/docs/skew
|
|
2822
|
+
*/
|
|
2823
|
+
"skew-y": [{
|
|
2824
|
+
"skew-y": [skew]
|
|
2825
|
+
}],
|
|
2826
|
+
/**
|
|
2827
|
+
* Transform Origin
|
|
2828
|
+
* @see https://tailwindcss.com/docs/transform-origin
|
|
2829
|
+
*/
|
|
2830
|
+
"transform-origin": [{
|
|
2831
|
+
origin: ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left", isArbitraryValue]
|
|
2832
|
+
}],
|
|
2833
|
+
// Interactivity
|
|
2834
|
+
/**
|
|
2835
|
+
* Accent Color
|
|
2836
|
+
* @see https://tailwindcss.com/docs/accent-color
|
|
2837
|
+
*/
|
|
2838
|
+
accent: [{
|
|
2839
|
+
accent: ["auto", colors]
|
|
2840
|
+
}],
|
|
2841
|
+
/**
|
|
2842
|
+
* Appearance
|
|
2843
|
+
* @see https://tailwindcss.com/docs/appearance
|
|
2844
|
+
*/
|
|
2845
|
+
appearance: [{
|
|
2846
|
+
appearance: ["none", "auto"]
|
|
2847
|
+
}],
|
|
2848
|
+
/**
|
|
2849
|
+
* Cursor
|
|
2850
|
+
* @see https://tailwindcss.com/docs/cursor
|
|
2851
|
+
*/
|
|
2852
|
+
cursor: [{
|
|
2853
|
+
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]
|
|
2854
|
+
}],
|
|
2855
|
+
/**
|
|
2856
|
+
* Caret Color
|
|
2857
|
+
* @see https://tailwindcss.com/docs/just-in-time-mode#caret-color-utilities
|
|
2858
|
+
*/
|
|
2859
|
+
"caret-color": [{
|
|
2860
|
+
caret: [colors]
|
|
2861
|
+
}],
|
|
2862
|
+
/**
|
|
2863
|
+
* Pointer Events
|
|
2864
|
+
* @see https://tailwindcss.com/docs/pointer-events
|
|
2865
|
+
*/
|
|
2866
|
+
"pointer-events": [{
|
|
2867
|
+
"pointer-events": ["none", "auto"]
|
|
2868
|
+
}],
|
|
2869
|
+
/**
|
|
2870
|
+
* Resize
|
|
2871
|
+
* @see https://tailwindcss.com/docs/resize
|
|
2872
|
+
*/
|
|
2873
|
+
resize: [{
|
|
2874
|
+
resize: ["none", "y", "x", ""]
|
|
2875
|
+
}],
|
|
2876
|
+
/**
|
|
2877
|
+
* Scroll Behavior
|
|
2878
|
+
* @see https://tailwindcss.com/docs/scroll-behavior
|
|
2879
|
+
*/
|
|
2880
|
+
"scroll-behavior": [{
|
|
2881
|
+
scroll: ["auto", "smooth"]
|
|
2882
|
+
}],
|
|
2883
|
+
/**
|
|
2884
|
+
* Scroll Margin
|
|
2885
|
+
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2886
|
+
*/
|
|
2887
|
+
"scroll-m": [{
|
|
2888
|
+
"scroll-m": getSpacingWithArbitrary()
|
|
2889
|
+
}],
|
|
2890
|
+
/**
|
|
2891
|
+
* Scroll Margin X
|
|
2892
|
+
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2893
|
+
*/
|
|
2894
|
+
"scroll-mx": [{
|
|
2895
|
+
"scroll-mx": getSpacingWithArbitrary()
|
|
2896
|
+
}],
|
|
2897
|
+
/**
|
|
2898
|
+
* Scroll Margin Y
|
|
2899
|
+
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2900
|
+
*/
|
|
2901
|
+
"scroll-my": [{
|
|
2902
|
+
"scroll-my": getSpacingWithArbitrary()
|
|
2903
|
+
}],
|
|
2904
|
+
/**
|
|
2905
|
+
* Scroll Margin Start
|
|
2906
|
+
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2907
|
+
*/
|
|
2908
|
+
"scroll-ms": [{
|
|
2909
|
+
"scroll-ms": getSpacingWithArbitrary()
|
|
2910
|
+
}],
|
|
2911
|
+
/**
|
|
2912
|
+
* Scroll Margin End
|
|
2913
|
+
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2914
|
+
*/
|
|
2915
|
+
"scroll-me": [{
|
|
2916
|
+
"scroll-me": getSpacingWithArbitrary()
|
|
2917
|
+
}],
|
|
2918
|
+
/**
|
|
2919
|
+
* Scroll Margin Top
|
|
2920
|
+
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2921
|
+
*/
|
|
2922
|
+
"scroll-mt": [{
|
|
2923
|
+
"scroll-mt": getSpacingWithArbitrary()
|
|
2924
|
+
}],
|
|
2925
|
+
/**
|
|
2926
|
+
* Scroll Margin Right
|
|
2927
|
+
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2928
|
+
*/
|
|
2929
|
+
"scroll-mr": [{
|
|
2930
|
+
"scroll-mr": getSpacingWithArbitrary()
|
|
2931
|
+
}],
|
|
2932
|
+
/**
|
|
2933
|
+
* Scroll Margin Bottom
|
|
2934
|
+
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2935
|
+
*/
|
|
2936
|
+
"scroll-mb": [{
|
|
2937
|
+
"scroll-mb": getSpacingWithArbitrary()
|
|
2938
|
+
}],
|
|
2939
|
+
/**
|
|
2940
|
+
* Scroll Margin Left
|
|
2941
|
+
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2942
|
+
*/
|
|
2943
|
+
"scroll-ml": [{
|
|
2944
|
+
"scroll-ml": getSpacingWithArbitrary()
|
|
2945
|
+
}],
|
|
2946
|
+
/**
|
|
2947
|
+
* Scroll Padding
|
|
2948
|
+
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2949
|
+
*/
|
|
2950
|
+
"scroll-p": [{
|
|
2951
|
+
"scroll-p": getSpacingWithArbitrary()
|
|
2952
|
+
}],
|
|
2953
|
+
/**
|
|
2954
|
+
* Scroll Padding X
|
|
2955
|
+
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2956
|
+
*/
|
|
2957
|
+
"scroll-px": [{
|
|
2958
|
+
"scroll-px": getSpacingWithArbitrary()
|
|
2959
|
+
}],
|
|
2960
|
+
/**
|
|
2961
|
+
* Scroll Padding Y
|
|
2962
|
+
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2963
|
+
*/
|
|
2964
|
+
"scroll-py": [{
|
|
2965
|
+
"scroll-py": getSpacingWithArbitrary()
|
|
2966
|
+
}],
|
|
2967
|
+
/**
|
|
2968
|
+
* Scroll Padding Start
|
|
2969
|
+
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2970
|
+
*/
|
|
2971
|
+
"scroll-ps": [{
|
|
2972
|
+
"scroll-ps": getSpacingWithArbitrary()
|
|
2973
|
+
}],
|
|
2974
|
+
/**
|
|
2975
|
+
* Scroll Padding End
|
|
2976
|
+
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2977
|
+
*/
|
|
2978
|
+
"scroll-pe": [{
|
|
2979
|
+
"scroll-pe": getSpacingWithArbitrary()
|
|
2980
|
+
}],
|
|
2981
|
+
/**
|
|
2982
|
+
* Scroll Padding Top
|
|
2983
|
+
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2984
|
+
*/
|
|
2985
|
+
"scroll-pt": [{
|
|
2986
|
+
"scroll-pt": getSpacingWithArbitrary()
|
|
2987
|
+
}],
|
|
2988
|
+
/**
|
|
2989
|
+
* Scroll Padding Right
|
|
2990
|
+
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2991
|
+
*/
|
|
2992
|
+
"scroll-pr": [{
|
|
2993
|
+
"scroll-pr": getSpacingWithArbitrary()
|
|
2994
|
+
}],
|
|
2995
|
+
/**
|
|
2996
|
+
* Scroll Padding Bottom
|
|
2997
|
+
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2998
|
+
*/
|
|
2999
|
+
"scroll-pb": [{
|
|
3000
|
+
"scroll-pb": getSpacingWithArbitrary()
|
|
3001
|
+
}],
|
|
3002
|
+
/**
|
|
3003
|
+
* Scroll Padding Left
|
|
3004
|
+
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3005
|
+
*/
|
|
3006
|
+
"scroll-pl": [{
|
|
3007
|
+
"scroll-pl": getSpacingWithArbitrary()
|
|
3008
|
+
}],
|
|
3009
|
+
/**
|
|
3010
|
+
* Scroll Snap Align
|
|
3011
|
+
* @see https://tailwindcss.com/docs/scroll-snap-align
|
|
3012
|
+
*/
|
|
3013
|
+
"snap-align": [{
|
|
3014
|
+
snap: ["start", "end", "center", "align-none"]
|
|
3015
|
+
}],
|
|
3016
|
+
/**
|
|
3017
|
+
* Scroll Snap Stop
|
|
3018
|
+
* @see https://tailwindcss.com/docs/scroll-snap-stop
|
|
3019
|
+
*/
|
|
3020
|
+
"snap-stop": [{
|
|
3021
|
+
snap: ["normal", "always"]
|
|
3022
|
+
}],
|
|
3023
|
+
/**
|
|
3024
|
+
* Scroll Snap Type
|
|
3025
|
+
* @see https://tailwindcss.com/docs/scroll-snap-type
|
|
3026
|
+
*/
|
|
3027
|
+
"snap-type": [{
|
|
3028
|
+
snap: ["none", "x", "y", "both"]
|
|
3029
|
+
}],
|
|
3030
|
+
/**
|
|
3031
|
+
* Scroll Snap Type Strictness
|
|
3032
|
+
* @see https://tailwindcss.com/docs/scroll-snap-type
|
|
3033
|
+
*/
|
|
3034
|
+
"snap-strictness": [{
|
|
3035
|
+
snap: ["mandatory", "proximity"]
|
|
3036
|
+
}],
|
|
3037
|
+
/**
|
|
3038
|
+
* Touch Action
|
|
3039
|
+
* @see https://tailwindcss.com/docs/touch-action
|
|
3040
|
+
*/
|
|
3041
|
+
touch: [{
|
|
3042
|
+
touch: ["auto", "none", "manipulation"]
|
|
3043
|
+
}],
|
|
3044
|
+
/**
|
|
3045
|
+
* Touch Action X
|
|
3046
|
+
* @see https://tailwindcss.com/docs/touch-action
|
|
3047
|
+
*/
|
|
3048
|
+
"touch-x": [{
|
|
3049
|
+
"touch-pan": ["x", "left", "right"]
|
|
3050
|
+
}],
|
|
3051
|
+
/**
|
|
3052
|
+
* Touch Action Y
|
|
3053
|
+
* @see https://tailwindcss.com/docs/touch-action
|
|
3054
|
+
*/
|
|
3055
|
+
"touch-y": [{
|
|
3056
|
+
"touch-pan": ["y", "up", "down"]
|
|
3057
|
+
}],
|
|
3058
|
+
/**
|
|
3059
|
+
* Touch Action Pinch Zoom
|
|
3060
|
+
* @see https://tailwindcss.com/docs/touch-action
|
|
3061
|
+
*/
|
|
3062
|
+
"touch-pz": ["touch-pinch-zoom"],
|
|
3063
|
+
/**
|
|
3064
|
+
* User Select
|
|
3065
|
+
* @see https://tailwindcss.com/docs/user-select
|
|
3066
|
+
*/
|
|
3067
|
+
select: [{
|
|
3068
|
+
select: ["none", "text", "all", "auto"]
|
|
3069
|
+
}],
|
|
3070
|
+
/**
|
|
3071
|
+
* Will Change
|
|
3072
|
+
* @see https://tailwindcss.com/docs/will-change
|
|
3073
|
+
*/
|
|
3074
|
+
"will-change": [{
|
|
3075
|
+
"will-change": ["auto", "scroll", "contents", "transform", isArbitraryValue]
|
|
3076
|
+
}],
|
|
3077
|
+
// SVG
|
|
3078
|
+
/**
|
|
3079
|
+
* Fill
|
|
3080
|
+
* @see https://tailwindcss.com/docs/fill
|
|
3081
|
+
*/
|
|
3082
|
+
fill: [{
|
|
3083
|
+
fill: [colors, "none"]
|
|
3084
|
+
}],
|
|
3085
|
+
/**
|
|
3086
|
+
* Stroke Width
|
|
3087
|
+
* @see https://tailwindcss.com/docs/stroke-width
|
|
3088
|
+
*/
|
|
3089
|
+
"stroke-w": [{
|
|
3090
|
+
stroke: [isLength, isArbitraryLength, isArbitraryNumber]
|
|
3091
|
+
}],
|
|
3092
|
+
/**
|
|
3093
|
+
* Stroke
|
|
3094
|
+
* @see https://tailwindcss.com/docs/stroke
|
|
3095
|
+
*/
|
|
3096
|
+
stroke: [{
|
|
3097
|
+
stroke: [colors, "none"]
|
|
3098
|
+
}],
|
|
3099
|
+
// Accessibility
|
|
3100
|
+
/**
|
|
3101
|
+
* Screen Readers
|
|
3102
|
+
* @see https://tailwindcss.com/docs/screen-readers
|
|
3103
|
+
*/
|
|
3104
|
+
sr: ["sr-only", "not-sr-only"],
|
|
3105
|
+
/**
|
|
3106
|
+
* Forced Color Adjust
|
|
3107
|
+
* @see https://tailwindcss.com/docs/forced-color-adjust
|
|
3108
|
+
*/
|
|
3109
|
+
"forced-color-adjust": [{
|
|
3110
|
+
"forced-color-adjust": ["auto", "none"]
|
|
3111
|
+
}]
|
|
3112
|
+
},
|
|
3113
|
+
conflictingClassGroups: {
|
|
3114
|
+
overflow: ["overflow-x", "overflow-y"],
|
|
3115
|
+
overscroll: ["overscroll-x", "overscroll-y"],
|
|
3116
|
+
inset: ["inset-x", "inset-y", "start", "end", "top", "right", "bottom", "left"],
|
|
3117
|
+
"inset-x": ["right", "left"],
|
|
3118
|
+
"inset-y": ["top", "bottom"],
|
|
3119
|
+
flex: ["basis", "grow", "shrink"],
|
|
3120
|
+
gap: ["gap-x", "gap-y"],
|
|
3121
|
+
p: ["px", "py", "ps", "pe", "pt", "pr", "pb", "pl"],
|
|
3122
|
+
px: ["pr", "pl"],
|
|
3123
|
+
py: ["pt", "pb"],
|
|
3124
|
+
m: ["mx", "my", "ms", "me", "mt", "mr", "mb", "ml"],
|
|
3125
|
+
mx: ["mr", "ml"],
|
|
3126
|
+
my: ["mt", "mb"],
|
|
3127
|
+
size: ["w", "h"],
|
|
3128
|
+
"font-size": ["leading"],
|
|
3129
|
+
"fvn-normal": ["fvn-ordinal", "fvn-slashed-zero", "fvn-figure", "fvn-spacing", "fvn-fraction"],
|
|
3130
|
+
"fvn-ordinal": ["fvn-normal"],
|
|
3131
|
+
"fvn-slashed-zero": ["fvn-normal"],
|
|
3132
|
+
"fvn-figure": ["fvn-normal"],
|
|
3133
|
+
"fvn-spacing": ["fvn-normal"],
|
|
3134
|
+
"fvn-fraction": ["fvn-normal"],
|
|
3135
|
+
"line-clamp": ["display", "overflow"],
|
|
3136
|
+
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"],
|
|
3137
|
+
"rounded-s": ["rounded-ss", "rounded-es"],
|
|
3138
|
+
"rounded-e": ["rounded-se", "rounded-ee"],
|
|
3139
|
+
"rounded-t": ["rounded-tl", "rounded-tr"],
|
|
3140
|
+
"rounded-r": ["rounded-tr", "rounded-br"],
|
|
3141
|
+
"rounded-b": ["rounded-br", "rounded-bl"],
|
|
3142
|
+
"rounded-l": ["rounded-tl", "rounded-bl"],
|
|
3143
|
+
"border-spacing": ["border-spacing-x", "border-spacing-y"],
|
|
3144
|
+
"border-w": ["border-w-s", "border-w-e", "border-w-t", "border-w-r", "border-w-b", "border-w-l"],
|
|
3145
|
+
"border-w-x": ["border-w-r", "border-w-l"],
|
|
3146
|
+
"border-w-y": ["border-w-t", "border-w-b"],
|
|
3147
|
+
"border-color": ["border-color-s", "border-color-e", "border-color-t", "border-color-r", "border-color-b", "border-color-l"],
|
|
3148
|
+
"border-color-x": ["border-color-r", "border-color-l"],
|
|
3149
|
+
"border-color-y": ["border-color-t", "border-color-b"],
|
|
3150
|
+
"scroll-m": ["scroll-mx", "scroll-my", "scroll-ms", "scroll-me", "scroll-mt", "scroll-mr", "scroll-mb", "scroll-ml"],
|
|
3151
|
+
"scroll-mx": ["scroll-mr", "scroll-ml"],
|
|
3152
|
+
"scroll-my": ["scroll-mt", "scroll-mb"],
|
|
3153
|
+
"scroll-p": ["scroll-px", "scroll-py", "scroll-ps", "scroll-pe", "scroll-pt", "scroll-pr", "scroll-pb", "scroll-pl"],
|
|
3154
|
+
"scroll-px": ["scroll-pr", "scroll-pl"],
|
|
3155
|
+
"scroll-py": ["scroll-pt", "scroll-pb"],
|
|
3156
|
+
touch: ["touch-x", "touch-y", "touch-pz"],
|
|
3157
|
+
"touch-x": ["touch"],
|
|
3158
|
+
"touch-y": ["touch"],
|
|
3159
|
+
"touch-pz": ["touch"]
|
|
3160
|
+
},
|
|
3161
|
+
conflictingClassGroupModifiers: {
|
|
3162
|
+
"font-size": ["leading"]
|
|
3163
|
+
}
|
|
3164
|
+
};
|
|
3165
|
+
};
|
|
3166
|
+
var mergeConfigs = (baseConfig, {
|
|
3167
|
+
cacheSize,
|
|
3168
|
+
prefix,
|
|
3169
|
+
separator,
|
|
3170
|
+
experimentalParseClassName,
|
|
3171
|
+
extend = {},
|
|
3172
|
+
override = {}
|
|
3173
|
+
}) => {
|
|
3174
|
+
overrideProperty(baseConfig, "cacheSize", cacheSize);
|
|
3175
|
+
overrideProperty(baseConfig, "prefix", prefix);
|
|
3176
|
+
overrideProperty(baseConfig, "separator", separator);
|
|
3177
|
+
overrideProperty(baseConfig, "experimentalParseClassName", experimentalParseClassName);
|
|
3178
|
+
for (const configKey in override) {
|
|
3179
|
+
overrideConfigProperties(baseConfig[configKey], override[configKey]);
|
|
3180
|
+
}
|
|
3181
|
+
for (const key in extend) {
|
|
3182
|
+
mergeConfigProperties(baseConfig[key], extend[key]);
|
|
3183
|
+
}
|
|
3184
|
+
return baseConfig;
|
|
3185
|
+
};
|
|
3186
|
+
var overrideProperty = (baseObject, overrideKey, overrideValue) => {
|
|
3187
|
+
if (overrideValue !== void 0) {
|
|
3188
|
+
baseObject[overrideKey] = overrideValue;
|
|
3189
|
+
}
|
|
3190
|
+
};
|
|
3191
|
+
var overrideConfigProperties = (baseObject, overrideObject) => {
|
|
3192
|
+
if (overrideObject) {
|
|
3193
|
+
for (const key in overrideObject) {
|
|
3194
|
+
overrideProperty(baseObject, key, overrideObject[key]);
|
|
3195
|
+
}
|
|
3196
|
+
}
|
|
3197
|
+
};
|
|
3198
|
+
var mergeConfigProperties = (baseObject, mergeObject) => {
|
|
3199
|
+
if (mergeObject) {
|
|
3200
|
+
for (const key in mergeObject) {
|
|
3201
|
+
const mergeValue = mergeObject[key];
|
|
3202
|
+
if (mergeValue !== void 0) {
|
|
3203
|
+
baseObject[key] = (baseObject[key] || []).concat(mergeValue);
|
|
3204
|
+
}
|
|
3205
|
+
}
|
|
3206
|
+
}
|
|
3207
|
+
};
|
|
3208
|
+
var extendTailwindMerge = (configExtension, ...createConfig) => typeof configExtension === "function" ? createTailwindMerge(getDefaultConfig, configExtension, ...createConfig) : createTailwindMerge(() => mergeConfigs(getDefaultConfig(), configExtension), ...createConfig);
|
|
3209
|
+
|
|
3210
|
+
// src/editor/utils/classname.ts
|
|
708
3211
|
var twMerge = extendTailwindMerge({
|
|
709
3212
|
prefix: "mly-"
|
|
710
3213
|
});
|
|
@@ -3617,7 +6120,7 @@ function VariableIcon(props) {
|
|
|
3617
6120
|
"div",
|
|
3618
6121
|
{
|
|
3619
6122
|
className: cn(
|
|
3620
|
-
"mly-flex mly-size-5 mly-items-center mly-justify-center mly-rounded-md mly-border",
|
|
6123
|
+
"mly-flex mly-size-5 mly-items-center mly-justify-center mly-rounded-md mly-border mly-border-gray-200",
|
|
3621
6124
|
className
|
|
3622
6125
|
),
|
|
3623
6126
|
children
|
|
@@ -3638,6 +6141,10 @@ function VariableView(props) {
|
|
|
3638
6141
|
const variableRender = (_b = (_a = getNodeOptions(editor, "variable")) == null ? void 0 : _a.renderVariable) != null ? _b : DEFAULT_RENDER_VARIABLE_FUNCTION;
|
|
3639
6142
|
return variableRender;
|
|
3640
6143
|
}, [editor]);
|
|
6144
|
+
const disableInput = useMemo4(() => {
|
|
6145
|
+
var _a, _b;
|
|
6146
|
+
return (_b = (_a = getNodeOptions(editor, "variable")) == null ? void 0 : _a.disableInput) != null ? _b : false;
|
|
6147
|
+
}, [editor]);
|
|
3641
6148
|
return /* @__PURE__ */ jsx29(
|
|
3642
6149
|
NodeViewWrapper4,
|
|
3643
6150
|
{
|
|
@@ -3671,6 +6178,7 @@ function VariableView(props) {
|
|
|
3671
6178
|
/* @__PURE__ */ jsx29(
|
|
3672
6179
|
"input",
|
|
3673
6180
|
__spreadProps(__spreadValues({}, AUTOCOMPLETE_PASSWORD_MANAGERS_OFF), {
|
|
6181
|
+
disabled: disableInput,
|
|
3674
6182
|
value: id != null ? id : "",
|
|
3675
6183
|
onChange: (e) => {
|
|
3676
6184
|
updateAttributes2({
|
|
@@ -3678,7 +6186,7 @@ function VariableView(props) {
|
|
|
3678
6186
|
});
|
|
3679
6187
|
},
|
|
3680
6188
|
placeholder: "ie. name...",
|
|
3681
|
-
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"
|
|
6189
|
+
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"
|
|
3682
6190
|
})
|
|
3683
6191
|
)
|
|
3684
6192
|
] }),
|
|
@@ -3713,7 +6221,7 @@ var DefaultRenderVariable = (props) => {
|
|
|
3713
6221
|
const { variable, fallback, from } = props;
|
|
3714
6222
|
const { name, required, valid } = variable;
|
|
3715
6223
|
if (from === "button-variable") {
|
|
3716
|
-
return /* @__PURE__ */ jsxs13("div", { className: "mly-inline-grid mly-
|
|
6224
|
+
return /* @__PURE__ */ jsxs13("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: [
|
|
3717
6225
|
/* @__PURE__ */ jsx29(Braces2, { className: "mly-h-3 mly-w-3 mly-shrink-0 mly-stroke-[2.5]" }),
|
|
3718
6226
|
/* @__PURE__ */ jsx29("span", { className: "mly-min-w-0 mly-truncate mly-text-left", children: name })
|
|
3719
6227
|
] });
|
|
@@ -3723,7 +6231,7 @@ var DefaultRenderVariable = (props) => {
|
|
|
3723
6231
|
"div",
|
|
3724
6232
|
{
|
|
3725
6233
|
className: cn(
|
|
3726
|
-
"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",
|
|
6234
|
+
"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",
|
|
3727
6235
|
!valid && "mly-border-rose-400 mly-bg-rose-50 mly-text-rose-600 hover:mly-bg-rose-100"
|
|
3728
6236
|
),
|
|
3729
6237
|
children: [
|
|
@@ -3769,6 +6277,7 @@ var VariableExtension = Node8.create({
|
|
|
3769
6277
|
variables: DEFAULT_VARIABLES,
|
|
3770
6278
|
variableSuggestionsPopover: DEFAULT_VARIABLE_SUGGESTION_POPOVER,
|
|
3771
6279
|
renderVariable: DEFAULT_RENDER_VARIABLE_FUNCTION,
|
|
6280
|
+
disableInput: false,
|
|
3772
6281
|
renderLabel(props) {
|
|
3773
6282
|
var _a;
|
|
3774
6283
|
const { node } = props;
|
|
@@ -4069,13 +6578,14 @@ function Select(props) {
|
|
|
4069
6578
|
tooltip,
|
|
4070
6579
|
className,
|
|
4071
6580
|
icon: Icon,
|
|
4072
|
-
iconClassName
|
|
6581
|
+
iconClassName,
|
|
6582
|
+
placeholder
|
|
4073
6583
|
} = props;
|
|
4074
6584
|
const selectId = `mly${useId()}`;
|
|
4075
6585
|
const content = /* @__PURE__ */ jsxs15("div", { className: "mly-relative", children: [
|
|
4076
6586
|
/* @__PURE__ */ jsx31("label", { htmlFor: selectId, className: "mly-sr-only", children: label }),
|
|
4077
6587
|
Icon && /* @__PURE__ */ jsx31("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__ */ jsx31(Icon, { className: cn("mly-size-3", iconClassName) }) }),
|
|
4078
|
-
/* @__PURE__ */
|
|
6588
|
+
/* @__PURE__ */ jsxs15(
|
|
4079
6589
|
"select",
|
|
4080
6590
|
{
|
|
4081
6591
|
id: selectId,
|
|
@@ -4084,9 +6594,12 @@ function Select(props) {
|
|
|
4084
6594
|
!!Icon && "mly-pl-7",
|
|
4085
6595
|
className
|
|
4086
6596
|
),
|
|
4087
|
-
value,
|
|
6597
|
+
value: value || "",
|
|
4088
6598
|
onChange: (event) => onValueChange(event.target.value),
|
|
4089
|
-
children:
|
|
6599
|
+
children: [
|
|
6600
|
+
placeholder && /* @__PURE__ */ jsx31("option", { value: "", disabled: true, hidden: true, children: placeholder }),
|
|
6601
|
+
options.map((option) => /* @__PURE__ */ jsx31("option", { value: option.value, children: option.label }, option.value))
|
|
6602
|
+
]
|
|
4090
6603
|
}
|
|
4091
6604
|
),
|
|
4092
6605
|
/* @__PURE__ */ jsx31("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__ */ jsx31(
|
|
@@ -4253,18 +6766,18 @@ function ButtonView(props) {
|
|
|
4253
6766
|
),
|
|
4254
6767
|
tabIndex: -1,
|
|
4255
6768
|
style: {
|
|
4256
|
-
backgroundColor: variant === "filled" ? buttonColor : "transparent",
|
|
4257
|
-
color: textColor,
|
|
6769
|
+
backgroundColor: variant === "filled" ? buttonColor || "var(--mly-button-background-color)" : "transparent",
|
|
6770
|
+
color: textColor || "var(--mly-button-text-color)",
|
|
4258
6771
|
borderWidth: 2,
|
|
4259
6772
|
borderStyle: "solid",
|
|
4260
|
-
borderColor: buttonColor,
|
|
6773
|
+
borderColor: buttonColor || "var(--mly-button-background-color)",
|
|
4261
6774
|
// decrease the border color opacity to 80%
|
|
4262
6775
|
// so that it's not too prominent
|
|
4263
|
-
"--button-var-border-color": `${textColor}80
|
|
4264
|
-
paddingTop,
|
|
4265
|
-
paddingRight,
|
|
4266
|
-
paddingBottom,
|
|
4267
|
-
paddingLeft
|
|
6776
|
+
"--button-var-border-color": textColor ? `${textColor}80` : "color-mix(in srgb, var(--mly-button-text-color) 80%, transparent)",
|
|
6777
|
+
paddingTop: paddingTop || "var(--mly-button-padding-top)",
|
|
6778
|
+
paddingRight: paddingRight || "var(--mly-button-padding-right)",
|
|
6779
|
+
paddingBottom: paddingBottom || "var(--mly-button-padding-bottom)",
|
|
6780
|
+
paddingLeft: paddingLeft || "var(--mly-button-padding-left)"
|
|
4268
6781
|
},
|
|
4269
6782
|
onClick: (e) => {
|
|
4270
6783
|
e.preventDefault();
|
|
@@ -4363,7 +6876,8 @@ function ButtonView(props) {
|
|
|
4363
6876
|
paddingLeft: paddingX
|
|
4364
6877
|
});
|
|
4365
6878
|
},
|
|
4366
|
-
tooltip: "Size"
|
|
6879
|
+
tooltip: "Size",
|
|
6880
|
+
placeholder: "Size"
|
|
4367
6881
|
}
|
|
4368
6882
|
)
|
|
4369
6883
|
] }),
|
|
@@ -4402,7 +6916,7 @@ function ButtonView(props) {
|
|
|
4402
6916
|
BackgroundColorPickerPopup,
|
|
4403
6917
|
{
|
|
4404
6918
|
variant,
|
|
4405
|
-
color: buttonColor,
|
|
6919
|
+
color: buttonColor || "transparent",
|
|
4406
6920
|
onChange: (color) => {
|
|
4407
6921
|
updateAttributes2({
|
|
4408
6922
|
buttonColor: color
|
|
@@ -4413,7 +6927,7 @@ function ButtonView(props) {
|
|
|
4413
6927
|
/* @__PURE__ */ jsx33(
|
|
4414
6928
|
TextColorPickerPopup,
|
|
4415
6929
|
{
|
|
4416
|
-
color: textColor,
|
|
6930
|
+
color: textColor || "transparent",
|
|
4417
6931
|
onChange: (color) => {
|
|
4418
6932
|
updateAttributes2({
|
|
4419
6933
|
textColor: color
|
|
@@ -4501,12 +7015,12 @@ function TextColorPickerPopup(props) {
|
|
|
4501
7015
|
var DEFAULT_BUTTON_ALIGNMENT = "left";
|
|
4502
7016
|
var DEFAULT_BUTTON_VARIANT = "filled";
|
|
4503
7017
|
var DEFAULT_BUTTON_BORDER_RADIUS = "smooth";
|
|
4504
|
-
var DEFAULT_BUTTON_BACKGROUND_COLOR =
|
|
4505
|
-
var DEFAULT_BUTTON_TEXT_COLOR =
|
|
4506
|
-
var DEFAULT_BUTTON_PADDING_TOP =
|
|
4507
|
-
var DEFAULT_BUTTON_PADDING_RIGHT =
|
|
4508
|
-
var DEFAULT_BUTTON_PADDING_BOTTOM =
|
|
4509
|
-
var DEFAULT_BUTTON_PADDING_LEFT =
|
|
7018
|
+
var DEFAULT_BUTTON_BACKGROUND_COLOR = null;
|
|
7019
|
+
var DEFAULT_BUTTON_TEXT_COLOR = null;
|
|
7020
|
+
var DEFAULT_BUTTON_PADDING_TOP = null;
|
|
7021
|
+
var DEFAULT_BUTTON_PADDING_RIGHT = null;
|
|
7022
|
+
var DEFAULT_BUTTON_PADDING_BOTTOM = null;
|
|
7023
|
+
var DEFAULT_BUTTON_PADDING_LEFT = null;
|
|
4510
7024
|
var allowedButtonVariant = ["filled", "outline"];
|
|
4511
7025
|
var allowedButtonBorderRadius = ["sharp", "smooth", "round"];
|
|
4512
7026
|
var ButtonExtension = Node9.create({
|
|
@@ -4602,28 +7116,6 @@ var ButtonExtension = Node9.create({
|
|
|
4602
7116
|
};
|
|
4603
7117
|
}
|
|
4604
7118
|
},
|
|
4605
|
-
buttonColor: {
|
|
4606
|
-
default: DEFAULT_BUTTON_BACKGROUND_COLOR,
|
|
4607
|
-
parseHTML: (element) => {
|
|
4608
|
-
return element.getAttribute("data-button-color") || DEFAULT_BUTTON_BACKGROUND_COLOR;
|
|
4609
|
-
},
|
|
4610
|
-
renderHTML: (attributes) => {
|
|
4611
|
-
return {
|
|
4612
|
-
"data-button-color": attributes.buttonColor
|
|
4613
|
-
};
|
|
4614
|
-
}
|
|
4615
|
-
},
|
|
4616
|
-
textColor: {
|
|
4617
|
-
default: DEFAULT_BUTTON_TEXT_COLOR,
|
|
4618
|
-
parseHTML: (element) => {
|
|
4619
|
-
return element.getAttribute("data-text-color") || DEFAULT_BUTTON_TEXT_COLOR;
|
|
4620
|
-
},
|
|
4621
|
-
renderHTML: (attributes) => {
|
|
4622
|
-
return {
|
|
4623
|
-
"data-text-color": attributes.textColor
|
|
4624
|
-
};
|
|
4625
|
-
}
|
|
4626
|
-
},
|
|
4627
7119
|
showIfKey: {
|
|
4628
7120
|
default: DEFAULT_SECTION_SHOW_IF_KEY,
|
|
4629
7121
|
parseHTML: (element) => {
|
|
@@ -4638,62 +7130,12 @@ var ButtonExtension = Node9.create({
|
|
|
4638
7130
|
};
|
|
4639
7131
|
}
|
|
4640
7132
|
},
|
|
4641
|
-
|
|
4642
|
-
|
|
4643
|
-
|
|
4644
|
-
|
|
4645
|
-
|
|
4646
|
-
|
|
4647
|
-
);
|
|
4648
|
-
},
|
|
4649
|
-
renderHTML: (attributes) => {
|
|
4650
|
-
return {
|
|
4651
|
-
"data-padding-top": attributes.paddingTop
|
|
4652
|
-
};
|
|
4653
|
-
}
|
|
4654
|
-
},
|
|
4655
|
-
paddingRight: {
|
|
4656
|
-
default: DEFAULT_BUTTON_PADDING_RIGHT,
|
|
4657
|
-
parseHTML: (element) => {
|
|
4658
|
-
return parseInt(
|
|
4659
|
-
element.getAttribute("data-padding-right") || DEFAULT_BUTTON_PADDING_RIGHT.toString(),
|
|
4660
|
-
10
|
|
4661
|
-
);
|
|
4662
|
-
},
|
|
4663
|
-
renderHTML: (attributes) => {
|
|
4664
|
-
return {
|
|
4665
|
-
"data-padding-right": attributes.paddingRight
|
|
4666
|
-
};
|
|
4667
|
-
}
|
|
4668
|
-
},
|
|
4669
|
-
paddingBottom: {
|
|
4670
|
-
default: DEFAULT_BUTTON_PADDING_BOTTOM,
|
|
4671
|
-
parseHTML: (element) => {
|
|
4672
|
-
return parseInt(
|
|
4673
|
-
element.getAttribute("data-padding-bottom") || DEFAULT_BUTTON_PADDING_BOTTOM.toString(),
|
|
4674
|
-
10
|
|
4675
|
-
);
|
|
4676
|
-
},
|
|
4677
|
-
renderHTML: (attributes) => {
|
|
4678
|
-
return {
|
|
4679
|
-
"data-padding-bottom": attributes.paddingBottom
|
|
4680
|
-
};
|
|
4681
|
-
}
|
|
4682
|
-
},
|
|
4683
|
-
paddingLeft: {
|
|
4684
|
-
default: DEFAULT_BUTTON_PADDING_LEFT,
|
|
4685
|
-
parseHTML: (element) => {
|
|
4686
|
-
return parseInt(
|
|
4687
|
-
element.getAttribute("data-padding-left") || DEFAULT_BUTTON_PADDING_LEFT.toString(),
|
|
4688
|
-
10
|
|
4689
|
-
);
|
|
4690
|
-
},
|
|
4691
|
-
renderHTML: (attributes) => {
|
|
4692
|
-
return {
|
|
4693
|
-
"data-padding-left": attributes.paddingLeft
|
|
4694
|
-
};
|
|
4695
|
-
}
|
|
4696
|
-
}
|
|
7133
|
+
buttonColor: DEFAULT_BUTTON_BACKGROUND_COLOR,
|
|
7134
|
+
textColor: DEFAULT_BUTTON_TEXT_COLOR,
|
|
7135
|
+
paddingTop: DEFAULT_BUTTON_PADDING_TOP,
|
|
7136
|
+
paddingRight: DEFAULT_BUTTON_PADDING_RIGHT,
|
|
7137
|
+
paddingBottom: DEFAULT_BUTTON_PADDING_BOTTOM,
|
|
7138
|
+
paddingLeft: DEFAULT_BUTTON_PADDING_LEFT
|
|
4697
7139
|
};
|
|
4698
7140
|
},
|
|
4699
7141
|
parseHTML() {
|