@maily-to/core 0.3.2 → 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/blocks/index.cjs +21 -21
- package/dist/blocks/index.cjs.map +1 -1
- package/dist/blocks/index.mjs +21 -21
- package/dist/blocks/index.mjs.map +1 -1
- package/dist/extensions/index.cjs +1274 -775
- package/dist/extensions/index.cjs.map +1 -1
- package/dist/extensions/index.mjs +1274 -775
- package/dist/extensions/index.mjs.map +1 -1
- package/dist/index.cjs +1375 -871
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +2423 -2331
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.mjs +1375 -871
- package/dist/index.mjs.map +1 -1
- package/package.json +7 -4
- package/readme.md +1 -1
|
@@ -177,7 +177,7 @@ var HorizontalRule = import_extension_horizontal_rule.HorizontalRule.extend({
|
|
|
177
177
|
addOptions() {
|
|
178
178
|
return {
|
|
179
179
|
HTMLAttributes: {
|
|
180
|
-
class: "mly
|
|
180
|
+
class: "mly:relative"
|
|
181
181
|
}
|
|
182
182
|
};
|
|
183
183
|
}
|
|
@@ -364,7 +364,7 @@ var Footer = import_core3.Node.create({
|
|
|
364
364
|
return [
|
|
365
365
|
"small",
|
|
366
366
|
(0, import_core3.mergeAttributes)(this.options.HTMLAttributes, HTMLAttributes2, {
|
|
367
|
-
class: "footer mly
|
|
367
|
+
class: "footer mly:block mly:text-[13px] mly:text-slate-500 mly:relative"
|
|
368
368
|
}),
|
|
369
369
|
0
|
|
370
370
|
];
|
|
@@ -672,25 +672,25 @@ var SectionExtension = import_core4.Node.create({
|
|
|
672
672
|
border: 0,
|
|
673
673
|
cellpadding: 0,
|
|
674
674
|
cellspacing: 0,
|
|
675
|
-
class: "mly
|
|
675
|
+
class: "mly:w-full mly:border-separate mly:relative mly:table-fixed",
|
|
676
676
|
style: `margin-top: ${marginTop}px; margin-right: ${marginRight}px; margin-bottom: ${marginBottom}px; margin-left: ${marginLeft}px;`
|
|
677
677
|
},
|
|
678
678
|
[
|
|
679
679
|
"tbody",
|
|
680
680
|
{
|
|
681
|
-
class: "mly
|
|
681
|
+
class: "mly:w-full"
|
|
682
682
|
},
|
|
683
683
|
[
|
|
684
684
|
"tr",
|
|
685
685
|
{
|
|
686
|
-
class: "mly
|
|
686
|
+
class: "mly:w-full"
|
|
687
687
|
},
|
|
688
688
|
[
|
|
689
689
|
"td",
|
|
690
690
|
(0, import_core4.mergeAttributes)(HTMLAttributes2, {
|
|
691
691
|
"data-type": "section-cell",
|
|
692
692
|
style: "border-style: solid",
|
|
693
|
-
class: "mly
|
|
693
|
+
class: "mly:w-full mly:[text-align:revert-layer]"
|
|
694
694
|
}),
|
|
695
695
|
0
|
|
696
696
|
]
|
|
@@ -773,7 +773,7 @@ var Spacer = import_core5.Node.create({
|
|
|
773
773
|
this.options.HTMLAttributes,
|
|
774
774
|
HTMLAttributes2,
|
|
775
775
|
{
|
|
776
|
-
class: "spacer mly
|
|
776
|
+
class: "spacer mly:relative mly:full mly:z-50",
|
|
777
777
|
contenteditable: false,
|
|
778
778
|
style: `height: ${height}px;--spacer-height: ${height}px;`
|
|
779
779
|
}
|
|
@@ -798,7 +798,7 @@ var React = __toESM(require("react"), 1);
|
|
|
798
798
|
// src/editor/utils/classname.ts
|
|
799
799
|
var import_clsx = require("clsx");
|
|
800
800
|
|
|
801
|
-
// ../../node_modules/.pnpm/tailwind-merge@
|
|
801
|
+
// ../../node_modules/.pnpm/tailwind-merge@3.3.0/node_modules/tailwind-merge/dist/bundle-mjs.mjs
|
|
802
802
|
var CLASS_PART_SEPARATOR = "-";
|
|
803
803
|
var createClassGroupUtils = (config) => {
|
|
804
804
|
const classMap = createClassMap(config);
|
|
@@ -857,16 +857,15 @@ var getGroupIdForArbitraryProperty = (className) => {
|
|
|
857
857
|
var createClassMap = (config) => {
|
|
858
858
|
const {
|
|
859
859
|
theme,
|
|
860
|
-
|
|
860
|
+
classGroups
|
|
861
861
|
} = config;
|
|
862
862
|
const classMap = {
|
|
863
863
|
nextPart: /* @__PURE__ */ new Map(),
|
|
864
864
|
validators: []
|
|
865
865
|
};
|
|
866
|
-
const
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
});
|
|
866
|
+
for (const classGroupId in classGroups) {
|
|
867
|
+
processClassesRecursively(classGroups[classGroupId], classMap, classGroupId, theme);
|
|
868
|
+
}
|
|
870
869
|
return classMap;
|
|
871
870
|
};
|
|
872
871
|
var processClassesRecursively = (classGroup, classPartObject, classGroupId, theme) => {
|
|
@@ -906,23 +905,6 @@ var getPart = (classPartObject, path) => {
|
|
|
906
905
|
return currentClassPartObject;
|
|
907
906
|
};
|
|
908
907
|
var isThemeGetter = (func) => func.isThemeGetter;
|
|
909
|
-
var getPrefixedClassGroupEntries = (classGroupEntries, prefix) => {
|
|
910
|
-
if (!prefix) {
|
|
911
|
-
return classGroupEntries;
|
|
912
|
-
}
|
|
913
|
-
return classGroupEntries.map(([classGroupId, classGroup]) => {
|
|
914
|
-
const prefixedClassGroup = classGroup.map((classDefinition) => {
|
|
915
|
-
if (typeof classDefinition === "string") {
|
|
916
|
-
return prefix + classDefinition;
|
|
917
|
-
}
|
|
918
|
-
if (typeof classDefinition === "object") {
|
|
919
|
-
return Object.fromEntries(Object.entries(classDefinition).map(([key, value]) => [prefix + key, value]));
|
|
920
|
-
}
|
|
921
|
-
return classDefinition;
|
|
922
|
-
});
|
|
923
|
-
return [classGroupId, prefixedClassGroup];
|
|
924
|
-
});
|
|
925
|
-
};
|
|
926
908
|
var createLruCache = (maxCacheSize) => {
|
|
927
909
|
if (maxCacheSize < 1) {
|
|
928
910
|
return {
|
|
@@ -964,25 +946,25 @@ var createLruCache = (maxCacheSize) => {
|
|
|
964
946
|
};
|
|
965
947
|
};
|
|
966
948
|
var IMPORTANT_MODIFIER = "!";
|
|
949
|
+
var MODIFIER_SEPARATOR = ":";
|
|
950
|
+
var MODIFIER_SEPARATOR_LENGTH = MODIFIER_SEPARATOR.length;
|
|
967
951
|
var createParseClassName = (config) => {
|
|
968
952
|
const {
|
|
969
|
-
|
|
953
|
+
prefix,
|
|
970
954
|
experimentalParseClassName
|
|
971
955
|
} = config;
|
|
972
|
-
|
|
973
|
-
const firstSeparatorCharacter = separator[0];
|
|
974
|
-
const separatorLength = separator.length;
|
|
975
|
-
const parseClassName = (className) => {
|
|
956
|
+
let parseClassName = (className) => {
|
|
976
957
|
const modifiers = [];
|
|
977
958
|
let bracketDepth = 0;
|
|
959
|
+
let parenDepth = 0;
|
|
978
960
|
let modifierStart = 0;
|
|
979
961
|
let postfixModifierPosition;
|
|
980
962
|
for (let index = 0; index < className.length; index++) {
|
|
981
963
|
let currentCharacter = className[index];
|
|
982
|
-
if (bracketDepth === 0) {
|
|
983
|
-
if (currentCharacter ===
|
|
964
|
+
if (bracketDepth === 0 && parenDepth === 0) {
|
|
965
|
+
if (currentCharacter === MODIFIER_SEPARATOR) {
|
|
984
966
|
modifiers.push(className.slice(modifierStart, index));
|
|
985
|
-
modifierStart = index +
|
|
967
|
+
modifierStart = index + MODIFIER_SEPARATOR_LENGTH;
|
|
986
968
|
continue;
|
|
987
969
|
}
|
|
988
970
|
if (currentCharacter === "/") {
|
|
@@ -994,11 +976,15 @@ var createParseClassName = (config) => {
|
|
|
994
976
|
bracketDepth++;
|
|
995
977
|
} else if (currentCharacter === "]") {
|
|
996
978
|
bracketDepth--;
|
|
979
|
+
} else if (currentCharacter === "(") {
|
|
980
|
+
parenDepth++;
|
|
981
|
+
} else if (currentCharacter === ")") {
|
|
982
|
+
parenDepth--;
|
|
997
983
|
}
|
|
998
984
|
}
|
|
999
985
|
const baseClassNameWithImportantModifier = modifiers.length === 0 ? className : className.substring(modifierStart);
|
|
1000
|
-
const
|
|
1001
|
-
const
|
|
986
|
+
const baseClassName = stripImportantModifier(baseClassNameWithImportantModifier);
|
|
987
|
+
const hasImportantModifier = baseClassName !== baseClassNameWithImportantModifier;
|
|
1002
988
|
const maybePostfixModifierPosition = postfixModifierPosition && postfixModifierPosition > modifierStart ? postfixModifierPosition - modifierStart : void 0;
|
|
1003
989
|
return {
|
|
1004
990
|
modifiers,
|
|
@@ -1007,42 +993,69 @@ var createParseClassName = (config) => {
|
|
|
1007
993
|
maybePostfixModifierPosition
|
|
1008
994
|
};
|
|
1009
995
|
};
|
|
996
|
+
if (prefix) {
|
|
997
|
+
const fullPrefix = prefix + MODIFIER_SEPARATOR;
|
|
998
|
+
const parseClassNameOriginal = parseClassName;
|
|
999
|
+
parseClassName = (className) => className.startsWith(fullPrefix) ? parseClassNameOriginal(className.substring(fullPrefix.length)) : {
|
|
1000
|
+
isExternal: true,
|
|
1001
|
+
modifiers: [],
|
|
1002
|
+
hasImportantModifier: false,
|
|
1003
|
+
baseClassName: className,
|
|
1004
|
+
maybePostfixModifierPosition: void 0
|
|
1005
|
+
};
|
|
1006
|
+
}
|
|
1010
1007
|
if (experimentalParseClassName) {
|
|
1011
|
-
|
|
1008
|
+
const parseClassNameOriginal = parseClassName;
|
|
1009
|
+
parseClassName = (className) => experimentalParseClassName({
|
|
1012
1010
|
className,
|
|
1013
|
-
parseClassName
|
|
1011
|
+
parseClassName: parseClassNameOriginal
|
|
1014
1012
|
});
|
|
1015
1013
|
}
|
|
1016
1014
|
return parseClassName;
|
|
1017
1015
|
};
|
|
1018
|
-
var
|
|
1019
|
-
if (
|
|
1020
|
-
return
|
|
1016
|
+
var stripImportantModifier = (baseClassName) => {
|
|
1017
|
+
if (baseClassName.endsWith(IMPORTANT_MODIFIER)) {
|
|
1018
|
+
return baseClassName.substring(0, baseClassName.length - 1);
|
|
1021
1019
|
}
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1020
|
+
if (baseClassName.startsWith(IMPORTANT_MODIFIER)) {
|
|
1021
|
+
return baseClassName.substring(1);
|
|
1022
|
+
}
|
|
1023
|
+
return baseClassName;
|
|
1024
|
+
};
|
|
1025
|
+
var createSortModifiers = (config) => {
|
|
1026
|
+
const orderSensitiveModifiers = Object.fromEntries(config.orderSensitiveModifiers.map((modifier) => [modifier, true]));
|
|
1027
|
+
const sortModifiers = (modifiers) => {
|
|
1028
|
+
if (modifiers.length <= 1) {
|
|
1029
|
+
return modifiers;
|
|
1031
1030
|
}
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1031
|
+
const sortedModifiers = [];
|
|
1032
|
+
let unsortedModifiers = [];
|
|
1033
|
+
modifiers.forEach((modifier) => {
|
|
1034
|
+
const isPositionSensitive = modifier[0] === "[" || orderSensitiveModifiers[modifier];
|
|
1035
|
+
if (isPositionSensitive) {
|
|
1036
|
+
sortedModifiers.push(...unsortedModifiers.sort(), modifier);
|
|
1037
|
+
unsortedModifiers = [];
|
|
1038
|
+
} else {
|
|
1039
|
+
unsortedModifiers.push(modifier);
|
|
1040
|
+
}
|
|
1041
|
+
});
|
|
1042
|
+
sortedModifiers.push(...unsortedModifiers.sort());
|
|
1043
|
+
return sortedModifiers;
|
|
1044
|
+
};
|
|
1045
|
+
return sortModifiers;
|
|
1035
1046
|
};
|
|
1036
1047
|
var createConfigUtils = (config) => __spreadValues({
|
|
1037
1048
|
cache: createLruCache(config.cacheSize),
|
|
1038
|
-
parseClassName: createParseClassName(config)
|
|
1049
|
+
parseClassName: createParseClassName(config),
|
|
1050
|
+
sortModifiers: createSortModifiers(config)
|
|
1039
1051
|
}, createClassGroupUtils(config));
|
|
1040
1052
|
var SPLIT_CLASSES_REGEX = /\s+/;
|
|
1041
1053
|
var mergeClassList = (classList, configUtils) => {
|
|
1042
1054
|
const {
|
|
1043
1055
|
parseClassName,
|
|
1044
1056
|
getClassGroupId,
|
|
1045
|
-
getConflictingClassGroupIds
|
|
1057
|
+
getConflictingClassGroupIds,
|
|
1058
|
+
sortModifiers
|
|
1046
1059
|
} = configUtils;
|
|
1047
1060
|
const classGroupsInConflict = [];
|
|
1048
1061
|
const classNames = classList.trim().split(SPLIT_CLASSES_REGEX);
|
|
@@ -1050,12 +1063,17 @@ var mergeClassList = (classList, configUtils) => {
|
|
|
1050
1063
|
for (let index = classNames.length - 1; index >= 0; index -= 1) {
|
|
1051
1064
|
const originalClassName = classNames[index];
|
|
1052
1065
|
const {
|
|
1066
|
+
isExternal,
|
|
1053
1067
|
modifiers,
|
|
1054
1068
|
hasImportantModifier,
|
|
1055
1069
|
baseClassName,
|
|
1056
1070
|
maybePostfixModifierPosition
|
|
1057
1071
|
} = parseClassName(originalClassName);
|
|
1058
|
-
|
|
1072
|
+
if (isExternal) {
|
|
1073
|
+
result = originalClassName + (result.length > 0 ? " " + result : result);
|
|
1074
|
+
continue;
|
|
1075
|
+
}
|
|
1076
|
+
let hasPostfixModifier = !!maybePostfixModifierPosition;
|
|
1059
1077
|
let classGroupId = getClassGroupId(hasPostfixModifier ? baseClassName.substring(0, maybePostfixModifierPosition) : baseClassName);
|
|
1060
1078
|
if (!classGroupId) {
|
|
1061
1079
|
if (!hasPostfixModifier) {
|
|
@@ -1147,39 +1165,20 @@ var fromTheme = (key) => {
|
|
|
1147
1165
|
themeGetter.isThemeGetter = true;
|
|
1148
1166
|
return themeGetter;
|
|
1149
1167
|
};
|
|
1150
|
-
var arbitraryValueRegex = /^\[(?:([
|
|
1168
|
+
var arbitraryValueRegex = /^\[(?:(\w[\w-]*):)?(.+)\]$/i;
|
|
1169
|
+
var arbitraryVariableRegex = /^\((?:(\w[\w-]*):)?(.+)\)$/i;
|
|
1151
1170
|
var fractionRegex = /^\d+\/\d+$/;
|
|
1152
|
-
var stringLengths = /* @__PURE__ */ new Set(["px", "full", "screen"]);
|
|
1153
1171
|
var tshirtUnitRegex = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/;
|
|
1154
1172
|
var lengthUnitRegex = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/;
|
|
1155
1173
|
var colorFunctionRegex = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/;
|
|
1156
1174
|
var shadowRegex = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;
|
|
1157
1175
|
var imageRegex = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;
|
|
1158
|
-
var
|
|
1159
|
-
var
|
|
1160
|
-
var
|
|
1161
|
-
var isArbitraryNumber = (value) => getIsArbitraryValue(value, "number", isNumber);
|
|
1162
|
-
var isInteger = (value) => Boolean(value) && Number.isInteger(Number(value));
|
|
1176
|
+
var isFraction = (value) => fractionRegex.test(value);
|
|
1177
|
+
var isNumber = (value) => !!value && !Number.isNaN(Number(value));
|
|
1178
|
+
var isInteger = (value) => !!value && Number.isInteger(Number(value));
|
|
1163
1179
|
var isPercent = (value) => value.endsWith("%") && isNumber(value.slice(0, -1));
|
|
1164
|
-
var isArbitraryValue = (value) => arbitraryValueRegex.test(value);
|
|
1165
1180
|
var isTshirtSize = (value) => tshirtUnitRegex.test(value);
|
|
1166
|
-
var sizeLabels = /* @__PURE__ */ new Set(["length", "size", "percentage"]);
|
|
1167
|
-
var isArbitrarySize = (value) => getIsArbitraryValue(value, sizeLabels, isNever);
|
|
1168
|
-
var isArbitraryPosition = (value) => getIsArbitraryValue(value, "position", isNever);
|
|
1169
|
-
var imageLabels = /* @__PURE__ */ new Set(["image", "url"]);
|
|
1170
|
-
var isArbitraryImage = (value) => getIsArbitraryValue(value, imageLabels, isImage);
|
|
1171
|
-
var isArbitraryShadow = (value) => getIsArbitraryValue(value, "", isShadow);
|
|
1172
1181
|
var isAny = () => true;
|
|
1173
|
-
var getIsArbitraryValue = (value, label, testValue) => {
|
|
1174
|
-
const result = arbitraryValueRegex.exec(value);
|
|
1175
|
-
if (result) {
|
|
1176
|
-
if (result[1]) {
|
|
1177
|
-
return typeof label === "string" ? result[1] === label : label.has(result[1]);
|
|
1178
|
-
}
|
|
1179
|
-
return testValue(result[2]);
|
|
1180
|
-
}
|
|
1181
|
-
return false;
|
|
1182
|
-
};
|
|
1183
1182
|
var isLengthOnly = (value) => (
|
|
1184
1183
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
1185
1184
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
@@ -1189,87 +1188,177 @@ var isLengthOnly = (value) => (
|
|
|
1189
1188
|
var isNever = () => false;
|
|
1190
1189
|
var isShadow = (value) => shadowRegex.test(value);
|
|
1191
1190
|
var isImage = (value) => imageRegex.test(value);
|
|
1191
|
+
var isAnyNonArbitrary = (value) => !isArbitraryValue(value) && !isArbitraryVariable(value);
|
|
1192
|
+
var isArbitrarySize = (value) => getIsArbitraryValue(value, isLabelSize, isNever);
|
|
1193
|
+
var isArbitraryValue = (value) => arbitraryValueRegex.test(value);
|
|
1194
|
+
var isArbitraryLength = (value) => getIsArbitraryValue(value, isLabelLength, isLengthOnly);
|
|
1195
|
+
var isArbitraryNumber = (value) => getIsArbitraryValue(value, isLabelNumber, isNumber);
|
|
1196
|
+
var isArbitraryPosition = (value) => getIsArbitraryValue(value, isLabelPosition, isNever);
|
|
1197
|
+
var isArbitraryImage = (value) => getIsArbitraryValue(value, isLabelImage, isImage);
|
|
1198
|
+
var isArbitraryShadow = (value) => getIsArbitraryValue(value, isLabelShadow, isShadow);
|
|
1199
|
+
var isArbitraryVariable = (value) => arbitraryVariableRegex.test(value);
|
|
1200
|
+
var isArbitraryVariableLength = (value) => getIsArbitraryVariable(value, isLabelLength);
|
|
1201
|
+
var isArbitraryVariableFamilyName = (value) => getIsArbitraryVariable(value, isLabelFamilyName);
|
|
1202
|
+
var isArbitraryVariablePosition = (value) => getIsArbitraryVariable(value, isLabelPosition);
|
|
1203
|
+
var isArbitraryVariableSize = (value) => getIsArbitraryVariable(value, isLabelSize);
|
|
1204
|
+
var isArbitraryVariableImage = (value) => getIsArbitraryVariable(value, isLabelImage);
|
|
1205
|
+
var isArbitraryVariableShadow = (value) => getIsArbitraryVariable(value, isLabelShadow, true);
|
|
1206
|
+
var getIsArbitraryValue = (value, testLabel, testValue) => {
|
|
1207
|
+
const result = arbitraryValueRegex.exec(value);
|
|
1208
|
+
if (result) {
|
|
1209
|
+
if (result[1]) {
|
|
1210
|
+
return testLabel(result[1]);
|
|
1211
|
+
}
|
|
1212
|
+
return testValue(result[2]);
|
|
1213
|
+
}
|
|
1214
|
+
return false;
|
|
1215
|
+
};
|
|
1216
|
+
var getIsArbitraryVariable = (value, testLabel, shouldMatchNoLabel = false) => {
|
|
1217
|
+
const result = arbitraryVariableRegex.exec(value);
|
|
1218
|
+
if (result) {
|
|
1219
|
+
if (result[1]) {
|
|
1220
|
+
return testLabel(result[1]);
|
|
1221
|
+
}
|
|
1222
|
+
return shouldMatchNoLabel;
|
|
1223
|
+
}
|
|
1224
|
+
return false;
|
|
1225
|
+
};
|
|
1226
|
+
var isLabelPosition = (label) => label === "position" || label === "percentage";
|
|
1227
|
+
var isLabelImage = (label) => label === "image" || label === "url";
|
|
1228
|
+
var isLabelSize = (label) => label === "length" || label === "size" || label === "bg-size";
|
|
1229
|
+
var isLabelLength = (label) => label === "length";
|
|
1230
|
+
var isLabelNumber = (label) => label === "number";
|
|
1231
|
+
var isLabelFamilyName = (label) => label === "family-name";
|
|
1232
|
+
var isLabelShadow = (label) => label === "shadow";
|
|
1192
1233
|
var getDefaultConfig = () => {
|
|
1193
|
-
const
|
|
1194
|
-
const
|
|
1195
|
-
const
|
|
1196
|
-
const
|
|
1197
|
-
const
|
|
1198
|
-
const
|
|
1199
|
-
const
|
|
1200
|
-
const
|
|
1201
|
-
const
|
|
1202
|
-
const
|
|
1203
|
-
const
|
|
1204
|
-
const
|
|
1205
|
-
const
|
|
1206
|
-
const
|
|
1207
|
-
const
|
|
1208
|
-
const
|
|
1209
|
-
const
|
|
1210
|
-
const
|
|
1211
|
-
const
|
|
1212
|
-
const
|
|
1213
|
-
const
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1234
|
+
const themeColor = fromTheme("color");
|
|
1235
|
+
const themeFont = fromTheme("font");
|
|
1236
|
+
const themeText = fromTheme("text");
|
|
1237
|
+
const themeFontWeight = fromTheme("font-weight");
|
|
1238
|
+
const themeTracking = fromTheme("tracking");
|
|
1239
|
+
const themeLeading = fromTheme("leading");
|
|
1240
|
+
const themeBreakpoint = fromTheme("breakpoint");
|
|
1241
|
+
const themeContainer = fromTheme("container");
|
|
1242
|
+
const themeSpacing = fromTheme("spacing");
|
|
1243
|
+
const themeRadius = fromTheme("radius");
|
|
1244
|
+
const themeShadow = fromTheme("shadow");
|
|
1245
|
+
const themeInsetShadow = fromTheme("inset-shadow");
|
|
1246
|
+
const themeTextShadow = fromTheme("text-shadow");
|
|
1247
|
+
const themeDropShadow = fromTheme("drop-shadow");
|
|
1248
|
+
const themeBlur = fromTheme("blur");
|
|
1249
|
+
const themePerspective = fromTheme("perspective");
|
|
1250
|
+
const themeAspect = fromTheme("aspect");
|
|
1251
|
+
const themeEase = fromTheme("ease");
|
|
1252
|
+
const themeAnimate = fromTheme("animate");
|
|
1253
|
+
const scaleBreak = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"];
|
|
1254
|
+
const scalePosition = () => [
|
|
1255
|
+
"center",
|
|
1256
|
+
"top",
|
|
1257
|
+
"bottom",
|
|
1258
|
+
"left",
|
|
1259
|
+
"right",
|
|
1260
|
+
"top-left",
|
|
1261
|
+
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
1262
|
+
"left-top",
|
|
1263
|
+
"top-right",
|
|
1264
|
+
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
1265
|
+
"right-top",
|
|
1266
|
+
"bottom-right",
|
|
1267
|
+
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
1268
|
+
"right-bottom",
|
|
1269
|
+
"bottom-left",
|
|
1270
|
+
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
1271
|
+
"left-bottom"
|
|
1272
|
+
];
|
|
1273
|
+
const scalePositionWithArbitrary = () => [...scalePosition(), isArbitraryVariable, isArbitraryValue];
|
|
1274
|
+
const scaleOverflow = () => ["auto", "hidden", "clip", "visible", "scroll"];
|
|
1275
|
+
const scaleOverscroll = () => ["auto", "contain", "none"];
|
|
1276
|
+
const scaleUnambiguousSpacing = () => [isArbitraryVariable, isArbitraryValue, themeSpacing];
|
|
1277
|
+
const scaleInset = () => [isFraction, "full", "auto", ...scaleUnambiguousSpacing()];
|
|
1278
|
+
const scaleGridTemplateColsRows = () => [isInteger, "none", "subgrid", isArbitraryVariable, isArbitraryValue];
|
|
1279
|
+
const scaleGridColRowStartAndEnd = () => ["auto", {
|
|
1280
|
+
span: ["full", isInteger, isArbitraryVariable, isArbitraryValue]
|
|
1281
|
+
}, isInteger, isArbitraryVariable, isArbitraryValue];
|
|
1282
|
+
const scaleGridColRowStartOrEnd = () => [isInteger, "auto", isArbitraryVariable, isArbitraryValue];
|
|
1283
|
+
const scaleGridAutoColsRows = () => ["auto", "min", "max", "fr", isArbitraryVariable, isArbitraryValue];
|
|
1284
|
+
const scaleAlignPrimaryAxis = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"];
|
|
1285
|
+
const scaleAlignSecondaryAxis = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"];
|
|
1286
|
+
const scaleMargin = () => ["auto", ...scaleUnambiguousSpacing()];
|
|
1287
|
+
const scaleSizing = () => [isFraction, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...scaleUnambiguousSpacing()];
|
|
1288
|
+
const scaleColor = () => [themeColor, isArbitraryVariable, isArbitraryValue];
|
|
1289
|
+
const scaleBgPosition = () => [...scalePosition(), isArbitraryVariablePosition, isArbitraryPosition, {
|
|
1290
|
+
position: [isArbitraryVariable, isArbitraryValue]
|
|
1291
|
+
}];
|
|
1292
|
+
const scaleBgRepeat = () => ["no-repeat", {
|
|
1293
|
+
repeat: ["", "x", "y", "space", "round"]
|
|
1294
|
+
}];
|
|
1295
|
+
const scaleBgSize = () => ["auto", "cover", "contain", isArbitraryVariableSize, isArbitrarySize, {
|
|
1296
|
+
size: [isArbitraryVariable, isArbitraryValue]
|
|
1297
|
+
}];
|
|
1298
|
+
const scaleGradientStopPosition = () => [isPercent, isArbitraryVariableLength, isArbitraryLength];
|
|
1299
|
+
const scaleRadius = () => [
|
|
1300
|
+
// Deprecated since Tailwind CSS v4.0.0
|
|
1301
|
+
"",
|
|
1302
|
+
"none",
|
|
1303
|
+
"full",
|
|
1304
|
+
themeRadius,
|
|
1305
|
+
isArbitraryVariable,
|
|
1306
|
+
isArbitraryValue
|
|
1307
|
+
];
|
|
1308
|
+
const scaleBorderWidth = () => ["", isNumber, isArbitraryVariableLength, isArbitraryLength];
|
|
1309
|
+
const scaleLineStyle = () => ["solid", "dashed", "dotted", "double"];
|
|
1310
|
+
const scaleBlendMode = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"];
|
|
1311
|
+
const scaleMaskImagePosition = () => [isNumber, isPercent, isArbitraryVariablePosition, isArbitraryPosition];
|
|
1312
|
+
const scaleBlur = () => [
|
|
1313
|
+
// Deprecated since Tailwind CSS v4.0.0
|
|
1314
|
+
"",
|
|
1315
|
+
"none",
|
|
1316
|
+
themeBlur,
|
|
1317
|
+
isArbitraryVariable,
|
|
1318
|
+
isArbitraryValue
|
|
1319
|
+
];
|
|
1320
|
+
const scaleRotate = () => ["none", isNumber, isArbitraryVariable, isArbitraryValue];
|
|
1321
|
+
const scaleScale = () => ["none", isNumber, isArbitraryVariable, isArbitraryValue];
|
|
1322
|
+
const scaleSkew = () => [isNumber, isArbitraryVariable, isArbitraryValue];
|
|
1323
|
+
const scaleTranslate = () => [isFraction, "full", ...scaleUnambiguousSpacing()];
|
|
1231
1324
|
return {
|
|
1232
1325
|
cacheSize: 500,
|
|
1233
|
-
separator: ":",
|
|
1234
1326
|
theme: {
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
blur: [
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
saturate: getNumberAndArbitrary(),
|
|
1255
|
-
scale: getNumberAndArbitrary(),
|
|
1256
|
-
sepia: getZeroAndEmpty(),
|
|
1257
|
-
skew: getNumberAndArbitrary(),
|
|
1258
|
-
space: getSpacingWithArbitrary(),
|
|
1259
|
-
translate: getSpacingWithArbitrary()
|
|
1327
|
+
animate: ["spin", "ping", "pulse", "bounce"],
|
|
1328
|
+
aspect: ["video"],
|
|
1329
|
+
blur: [isTshirtSize],
|
|
1330
|
+
breakpoint: [isTshirtSize],
|
|
1331
|
+
color: [isAny],
|
|
1332
|
+
container: [isTshirtSize],
|
|
1333
|
+
"drop-shadow": [isTshirtSize],
|
|
1334
|
+
ease: ["in", "out", "in-out"],
|
|
1335
|
+
font: [isAnyNonArbitrary],
|
|
1336
|
+
"font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
|
|
1337
|
+
"inset-shadow": [isTshirtSize],
|
|
1338
|
+
leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
|
|
1339
|
+
perspective: ["dramatic", "near", "normal", "midrange", "distant", "none"],
|
|
1340
|
+
radius: [isTshirtSize],
|
|
1341
|
+
shadow: [isTshirtSize],
|
|
1342
|
+
spacing: ["px", isNumber],
|
|
1343
|
+
text: [isTshirtSize],
|
|
1344
|
+
"text-shadow": [isTshirtSize],
|
|
1345
|
+
tracking: ["tighter", "tight", "normal", "wide", "wider", "widest"]
|
|
1260
1346
|
},
|
|
1261
1347
|
classGroups: {
|
|
1262
|
-
//
|
|
1348
|
+
// --------------
|
|
1349
|
+
// --- Layout ---
|
|
1350
|
+
// --------------
|
|
1263
1351
|
/**
|
|
1264
1352
|
* Aspect Ratio
|
|
1265
1353
|
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
1266
1354
|
*/
|
|
1267
1355
|
aspect: [{
|
|
1268
|
-
aspect: ["auto", "square",
|
|
1356
|
+
aspect: ["auto", "square", isFraction, isArbitraryValue, isArbitraryVariable, themeAspect]
|
|
1269
1357
|
}],
|
|
1270
1358
|
/**
|
|
1271
1359
|
* Container
|
|
1272
1360
|
* @see https://tailwindcss.com/docs/container
|
|
1361
|
+
* @deprecated since Tailwind CSS v4.0.0
|
|
1273
1362
|
*/
|
|
1274
1363
|
container: ["container"],
|
|
1275
1364
|
/**
|
|
@@ -1277,21 +1366,21 @@ var getDefaultConfig = () => {
|
|
|
1277
1366
|
* @see https://tailwindcss.com/docs/columns
|
|
1278
1367
|
*/
|
|
1279
1368
|
columns: [{
|
|
1280
|
-
columns: [
|
|
1369
|
+
columns: [isNumber, isArbitraryValue, isArbitraryVariable, themeContainer]
|
|
1281
1370
|
}],
|
|
1282
1371
|
/**
|
|
1283
1372
|
* Break After
|
|
1284
1373
|
* @see https://tailwindcss.com/docs/break-after
|
|
1285
1374
|
*/
|
|
1286
1375
|
"break-after": [{
|
|
1287
|
-
"break-after":
|
|
1376
|
+
"break-after": scaleBreak()
|
|
1288
1377
|
}],
|
|
1289
1378
|
/**
|
|
1290
1379
|
* Break Before
|
|
1291
1380
|
* @see https://tailwindcss.com/docs/break-before
|
|
1292
1381
|
*/
|
|
1293
1382
|
"break-before": [{
|
|
1294
|
-
"break-before":
|
|
1383
|
+
"break-before": scaleBreak()
|
|
1295
1384
|
}],
|
|
1296
1385
|
/**
|
|
1297
1386
|
* Break Inside
|
|
@@ -1319,6 +1408,11 @@ var getDefaultConfig = () => {
|
|
|
1319
1408
|
* @see https://tailwindcss.com/docs/display
|
|
1320
1409
|
*/
|
|
1321
1410
|
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"],
|
|
1411
|
+
/**
|
|
1412
|
+
* Screen Reader Only
|
|
1413
|
+
* @see https://tailwindcss.com/docs/display#screen-reader-only
|
|
1414
|
+
*/
|
|
1415
|
+
sr: ["sr-only", "not-sr-only"],
|
|
1322
1416
|
/**
|
|
1323
1417
|
* Floats
|
|
1324
1418
|
* @see https://tailwindcss.com/docs/float
|
|
@@ -1350,49 +1444,49 @@ var getDefaultConfig = () => {
|
|
|
1350
1444
|
* @see https://tailwindcss.com/docs/object-position
|
|
1351
1445
|
*/
|
|
1352
1446
|
"object-position": [{
|
|
1353
|
-
object:
|
|
1447
|
+
object: scalePositionWithArbitrary()
|
|
1354
1448
|
}],
|
|
1355
1449
|
/**
|
|
1356
1450
|
* Overflow
|
|
1357
1451
|
* @see https://tailwindcss.com/docs/overflow
|
|
1358
1452
|
*/
|
|
1359
1453
|
overflow: [{
|
|
1360
|
-
overflow:
|
|
1454
|
+
overflow: scaleOverflow()
|
|
1361
1455
|
}],
|
|
1362
1456
|
/**
|
|
1363
1457
|
* Overflow X
|
|
1364
1458
|
* @see https://tailwindcss.com/docs/overflow
|
|
1365
1459
|
*/
|
|
1366
1460
|
"overflow-x": [{
|
|
1367
|
-
"overflow-x":
|
|
1461
|
+
"overflow-x": scaleOverflow()
|
|
1368
1462
|
}],
|
|
1369
1463
|
/**
|
|
1370
1464
|
* Overflow Y
|
|
1371
1465
|
* @see https://tailwindcss.com/docs/overflow
|
|
1372
1466
|
*/
|
|
1373
1467
|
"overflow-y": [{
|
|
1374
|
-
"overflow-y":
|
|
1468
|
+
"overflow-y": scaleOverflow()
|
|
1375
1469
|
}],
|
|
1376
1470
|
/**
|
|
1377
1471
|
* Overscroll Behavior
|
|
1378
1472
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
1379
1473
|
*/
|
|
1380
1474
|
overscroll: [{
|
|
1381
|
-
overscroll:
|
|
1475
|
+
overscroll: scaleOverscroll()
|
|
1382
1476
|
}],
|
|
1383
1477
|
/**
|
|
1384
1478
|
* Overscroll Behavior X
|
|
1385
1479
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
1386
1480
|
*/
|
|
1387
1481
|
"overscroll-x": [{
|
|
1388
|
-
"overscroll-x":
|
|
1482
|
+
"overscroll-x": scaleOverscroll()
|
|
1389
1483
|
}],
|
|
1390
1484
|
/**
|
|
1391
1485
|
* Overscroll Behavior Y
|
|
1392
1486
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
1393
1487
|
*/
|
|
1394
1488
|
"overscroll-y": [{
|
|
1395
|
-
"overscroll-y":
|
|
1489
|
+
"overscroll-y": scaleOverscroll()
|
|
1396
1490
|
}],
|
|
1397
1491
|
/**
|
|
1398
1492
|
* Position
|
|
@@ -1404,63 +1498,63 @@ var getDefaultConfig = () => {
|
|
|
1404
1498
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1405
1499
|
*/
|
|
1406
1500
|
inset: [{
|
|
1407
|
-
inset:
|
|
1501
|
+
inset: scaleInset()
|
|
1408
1502
|
}],
|
|
1409
1503
|
/**
|
|
1410
1504
|
* Right / Left
|
|
1411
1505
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1412
1506
|
*/
|
|
1413
1507
|
"inset-x": [{
|
|
1414
|
-
"inset-x":
|
|
1508
|
+
"inset-x": scaleInset()
|
|
1415
1509
|
}],
|
|
1416
1510
|
/**
|
|
1417
1511
|
* Top / Bottom
|
|
1418
1512
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1419
1513
|
*/
|
|
1420
1514
|
"inset-y": [{
|
|
1421
|
-
"inset-y":
|
|
1515
|
+
"inset-y": scaleInset()
|
|
1422
1516
|
}],
|
|
1423
1517
|
/**
|
|
1424
1518
|
* Start
|
|
1425
1519
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1426
1520
|
*/
|
|
1427
1521
|
start: [{
|
|
1428
|
-
start:
|
|
1522
|
+
start: scaleInset()
|
|
1429
1523
|
}],
|
|
1430
1524
|
/**
|
|
1431
1525
|
* End
|
|
1432
1526
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1433
1527
|
*/
|
|
1434
1528
|
end: [{
|
|
1435
|
-
end:
|
|
1529
|
+
end: scaleInset()
|
|
1436
1530
|
}],
|
|
1437
1531
|
/**
|
|
1438
1532
|
* Top
|
|
1439
1533
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1440
1534
|
*/
|
|
1441
1535
|
top: [{
|
|
1442
|
-
top:
|
|
1536
|
+
top: scaleInset()
|
|
1443
1537
|
}],
|
|
1444
1538
|
/**
|
|
1445
1539
|
* Right
|
|
1446
1540
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1447
1541
|
*/
|
|
1448
1542
|
right: [{
|
|
1449
|
-
right:
|
|
1543
|
+
right: scaleInset()
|
|
1450
1544
|
}],
|
|
1451
1545
|
/**
|
|
1452
1546
|
* Bottom
|
|
1453
1547
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1454
1548
|
*/
|
|
1455
1549
|
bottom: [{
|
|
1456
|
-
bottom:
|
|
1550
|
+
bottom: scaleInset()
|
|
1457
1551
|
}],
|
|
1458
1552
|
/**
|
|
1459
1553
|
* Left
|
|
1460
1554
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1461
1555
|
*/
|
|
1462
1556
|
left: [{
|
|
1463
|
-
left:
|
|
1557
|
+
left: scaleInset()
|
|
1464
1558
|
}],
|
|
1465
1559
|
/**
|
|
1466
1560
|
* Visibility
|
|
@@ -1472,15 +1566,17 @@ var getDefaultConfig = () => {
|
|
|
1472
1566
|
* @see https://tailwindcss.com/docs/z-index
|
|
1473
1567
|
*/
|
|
1474
1568
|
z: [{
|
|
1475
|
-
z: ["auto",
|
|
1569
|
+
z: [isInteger, "auto", isArbitraryVariable, isArbitraryValue]
|
|
1476
1570
|
}],
|
|
1477
|
-
//
|
|
1571
|
+
// ------------------------
|
|
1572
|
+
// --- Flexbox and Grid ---
|
|
1573
|
+
// ------------------------
|
|
1478
1574
|
/**
|
|
1479
1575
|
* Flex Basis
|
|
1480
1576
|
* @see https://tailwindcss.com/docs/flex-basis
|
|
1481
1577
|
*/
|
|
1482
1578
|
basis: [{
|
|
1483
|
-
basis:
|
|
1579
|
+
basis: [isFraction, "full", "auto", themeContainer, ...scaleUnambiguousSpacing()]
|
|
1484
1580
|
}],
|
|
1485
1581
|
/**
|
|
1486
1582
|
* Flex Direction
|
|
@@ -1494,95 +1590,91 @@ var getDefaultConfig = () => {
|
|
|
1494
1590
|
* @see https://tailwindcss.com/docs/flex-wrap
|
|
1495
1591
|
*/
|
|
1496
1592
|
"flex-wrap": [{
|
|
1497
|
-
flex: ["
|
|
1593
|
+
flex: ["nowrap", "wrap", "wrap-reverse"]
|
|
1498
1594
|
}],
|
|
1499
1595
|
/**
|
|
1500
1596
|
* Flex
|
|
1501
1597
|
* @see https://tailwindcss.com/docs/flex
|
|
1502
1598
|
*/
|
|
1503
1599
|
flex: [{
|
|
1504
|
-
flex: [
|
|
1600
|
+
flex: [isNumber, isFraction, "auto", "initial", "none", isArbitraryValue]
|
|
1505
1601
|
}],
|
|
1506
1602
|
/**
|
|
1507
1603
|
* Flex Grow
|
|
1508
1604
|
* @see https://tailwindcss.com/docs/flex-grow
|
|
1509
1605
|
*/
|
|
1510
1606
|
grow: [{
|
|
1511
|
-
grow:
|
|
1607
|
+
grow: ["", isNumber, isArbitraryVariable, isArbitraryValue]
|
|
1512
1608
|
}],
|
|
1513
1609
|
/**
|
|
1514
1610
|
* Flex Shrink
|
|
1515
1611
|
* @see https://tailwindcss.com/docs/flex-shrink
|
|
1516
1612
|
*/
|
|
1517
1613
|
shrink: [{
|
|
1518
|
-
shrink:
|
|
1614
|
+
shrink: ["", isNumber, isArbitraryVariable, isArbitraryValue]
|
|
1519
1615
|
}],
|
|
1520
1616
|
/**
|
|
1521
1617
|
* Order
|
|
1522
1618
|
* @see https://tailwindcss.com/docs/order
|
|
1523
1619
|
*/
|
|
1524
1620
|
order: [{
|
|
1525
|
-
order: ["first", "last", "none",
|
|
1621
|
+
order: [isInteger, "first", "last", "none", isArbitraryVariable, isArbitraryValue]
|
|
1526
1622
|
}],
|
|
1527
1623
|
/**
|
|
1528
1624
|
* Grid Template Columns
|
|
1529
1625
|
* @see https://tailwindcss.com/docs/grid-template-columns
|
|
1530
1626
|
*/
|
|
1531
1627
|
"grid-cols": [{
|
|
1532
|
-
"grid-cols":
|
|
1628
|
+
"grid-cols": scaleGridTemplateColsRows()
|
|
1533
1629
|
}],
|
|
1534
1630
|
/**
|
|
1535
1631
|
* Grid Column Start / End
|
|
1536
1632
|
* @see https://tailwindcss.com/docs/grid-column
|
|
1537
1633
|
*/
|
|
1538
1634
|
"col-start-end": [{
|
|
1539
|
-
col:
|
|
1540
|
-
span: ["full", isInteger, isArbitraryValue]
|
|
1541
|
-
}, isArbitraryValue]
|
|
1635
|
+
col: scaleGridColRowStartAndEnd()
|
|
1542
1636
|
}],
|
|
1543
1637
|
/**
|
|
1544
1638
|
* Grid Column Start
|
|
1545
1639
|
* @see https://tailwindcss.com/docs/grid-column
|
|
1546
1640
|
*/
|
|
1547
1641
|
"col-start": [{
|
|
1548
|
-
"col-start":
|
|
1642
|
+
"col-start": scaleGridColRowStartOrEnd()
|
|
1549
1643
|
}],
|
|
1550
1644
|
/**
|
|
1551
1645
|
* Grid Column End
|
|
1552
1646
|
* @see https://tailwindcss.com/docs/grid-column
|
|
1553
1647
|
*/
|
|
1554
1648
|
"col-end": [{
|
|
1555
|
-
"col-end":
|
|
1649
|
+
"col-end": scaleGridColRowStartOrEnd()
|
|
1556
1650
|
}],
|
|
1557
1651
|
/**
|
|
1558
1652
|
* Grid Template Rows
|
|
1559
1653
|
* @see https://tailwindcss.com/docs/grid-template-rows
|
|
1560
1654
|
*/
|
|
1561
1655
|
"grid-rows": [{
|
|
1562
|
-
"grid-rows":
|
|
1656
|
+
"grid-rows": scaleGridTemplateColsRows()
|
|
1563
1657
|
}],
|
|
1564
1658
|
/**
|
|
1565
1659
|
* Grid Row Start / End
|
|
1566
1660
|
* @see https://tailwindcss.com/docs/grid-row
|
|
1567
1661
|
*/
|
|
1568
1662
|
"row-start-end": [{
|
|
1569
|
-
row:
|
|
1570
|
-
span: [isInteger, isArbitraryValue]
|
|
1571
|
-
}, isArbitraryValue]
|
|
1663
|
+
row: scaleGridColRowStartAndEnd()
|
|
1572
1664
|
}],
|
|
1573
1665
|
/**
|
|
1574
1666
|
* Grid Row Start
|
|
1575
1667
|
* @see https://tailwindcss.com/docs/grid-row
|
|
1576
1668
|
*/
|
|
1577
1669
|
"row-start": [{
|
|
1578
|
-
"row-start":
|
|
1670
|
+
"row-start": scaleGridColRowStartOrEnd()
|
|
1579
1671
|
}],
|
|
1580
1672
|
/**
|
|
1581
1673
|
* Grid Row End
|
|
1582
1674
|
* @see https://tailwindcss.com/docs/grid-row
|
|
1583
1675
|
*/
|
|
1584
1676
|
"row-end": [{
|
|
1585
|
-
"row-end":
|
|
1677
|
+
"row-end": scaleGridColRowStartOrEnd()
|
|
1586
1678
|
}],
|
|
1587
1679
|
/**
|
|
1588
1680
|
* Grid Auto Flow
|
|
@@ -1596,98 +1688,102 @@ var getDefaultConfig = () => {
|
|
|
1596
1688
|
* @see https://tailwindcss.com/docs/grid-auto-columns
|
|
1597
1689
|
*/
|
|
1598
1690
|
"auto-cols": [{
|
|
1599
|
-
"auto-cols":
|
|
1691
|
+
"auto-cols": scaleGridAutoColsRows()
|
|
1600
1692
|
}],
|
|
1601
1693
|
/**
|
|
1602
1694
|
* Grid Auto Rows
|
|
1603
1695
|
* @see https://tailwindcss.com/docs/grid-auto-rows
|
|
1604
1696
|
*/
|
|
1605
1697
|
"auto-rows": [{
|
|
1606
|
-
"auto-rows":
|
|
1698
|
+
"auto-rows": scaleGridAutoColsRows()
|
|
1607
1699
|
}],
|
|
1608
1700
|
/**
|
|
1609
1701
|
* Gap
|
|
1610
1702
|
* @see https://tailwindcss.com/docs/gap
|
|
1611
1703
|
*/
|
|
1612
1704
|
gap: [{
|
|
1613
|
-
gap:
|
|
1705
|
+
gap: scaleUnambiguousSpacing()
|
|
1614
1706
|
}],
|
|
1615
1707
|
/**
|
|
1616
1708
|
* Gap X
|
|
1617
1709
|
* @see https://tailwindcss.com/docs/gap
|
|
1618
1710
|
*/
|
|
1619
1711
|
"gap-x": [{
|
|
1620
|
-
"gap-x":
|
|
1712
|
+
"gap-x": scaleUnambiguousSpacing()
|
|
1621
1713
|
}],
|
|
1622
1714
|
/**
|
|
1623
1715
|
* Gap Y
|
|
1624
1716
|
* @see https://tailwindcss.com/docs/gap
|
|
1625
1717
|
*/
|
|
1626
1718
|
"gap-y": [{
|
|
1627
|
-
"gap-y":
|
|
1719
|
+
"gap-y": scaleUnambiguousSpacing()
|
|
1628
1720
|
}],
|
|
1629
1721
|
/**
|
|
1630
1722
|
* Justify Content
|
|
1631
1723
|
* @see https://tailwindcss.com/docs/justify-content
|
|
1632
1724
|
*/
|
|
1633
1725
|
"justify-content": [{
|
|
1634
|
-
justify: ["normal"
|
|
1726
|
+
justify: [...scaleAlignPrimaryAxis(), "normal"]
|
|
1635
1727
|
}],
|
|
1636
1728
|
/**
|
|
1637
1729
|
* Justify Items
|
|
1638
1730
|
* @see https://tailwindcss.com/docs/justify-items
|
|
1639
1731
|
*/
|
|
1640
1732
|
"justify-items": [{
|
|
1641
|
-
"justify-items": [
|
|
1733
|
+
"justify-items": [...scaleAlignSecondaryAxis(), "normal"]
|
|
1642
1734
|
}],
|
|
1643
1735
|
/**
|
|
1644
1736
|
* Justify Self
|
|
1645
1737
|
* @see https://tailwindcss.com/docs/justify-self
|
|
1646
1738
|
*/
|
|
1647
1739
|
"justify-self": [{
|
|
1648
|
-
"justify-self": ["auto",
|
|
1740
|
+
"justify-self": ["auto", ...scaleAlignSecondaryAxis()]
|
|
1649
1741
|
}],
|
|
1650
1742
|
/**
|
|
1651
1743
|
* Align Content
|
|
1652
1744
|
* @see https://tailwindcss.com/docs/align-content
|
|
1653
1745
|
*/
|
|
1654
1746
|
"align-content": [{
|
|
1655
|
-
content: ["normal", ...
|
|
1747
|
+
content: ["normal", ...scaleAlignPrimaryAxis()]
|
|
1656
1748
|
}],
|
|
1657
1749
|
/**
|
|
1658
1750
|
* Align Items
|
|
1659
1751
|
* @see https://tailwindcss.com/docs/align-items
|
|
1660
1752
|
*/
|
|
1661
1753
|
"align-items": [{
|
|
1662
|
-
items: [
|
|
1754
|
+
items: [...scaleAlignSecondaryAxis(), {
|
|
1755
|
+
baseline: ["", "last"]
|
|
1756
|
+
}]
|
|
1663
1757
|
}],
|
|
1664
1758
|
/**
|
|
1665
1759
|
* Align Self
|
|
1666
1760
|
* @see https://tailwindcss.com/docs/align-self
|
|
1667
1761
|
*/
|
|
1668
1762
|
"align-self": [{
|
|
1669
|
-
self: ["auto",
|
|
1763
|
+
self: ["auto", ...scaleAlignSecondaryAxis(), {
|
|
1764
|
+
baseline: ["", "last"]
|
|
1765
|
+
}]
|
|
1670
1766
|
}],
|
|
1671
1767
|
/**
|
|
1672
1768
|
* Place Content
|
|
1673
1769
|
* @see https://tailwindcss.com/docs/place-content
|
|
1674
1770
|
*/
|
|
1675
1771
|
"place-content": [{
|
|
1676
|
-
"place-content":
|
|
1772
|
+
"place-content": scaleAlignPrimaryAxis()
|
|
1677
1773
|
}],
|
|
1678
1774
|
/**
|
|
1679
1775
|
* Place Items
|
|
1680
1776
|
* @see https://tailwindcss.com/docs/place-items
|
|
1681
1777
|
*/
|
|
1682
1778
|
"place-items": [{
|
|
1683
|
-
"place-items": [
|
|
1779
|
+
"place-items": [...scaleAlignSecondaryAxis(), "baseline"]
|
|
1684
1780
|
}],
|
|
1685
1781
|
/**
|
|
1686
1782
|
* Place Self
|
|
1687
1783
|
* @see https://tailwindcss.com/docs/place-self
|
|
1688
1784
|
*/
|
|
1689
1785
|
"place-self": [{
|
|
1690
|
-
"place-self": ["auto",
|
|
1786
|
+
"place-self": ["auto", ...scaleAlignSecondaryAxis()]
|
|
1691
1787
|
}],
|
|
1692
1788
|
// Spacing
|
|
1693
1789
|
/**
|
|
@@ -1695,210 +1791,229 @@ var getDefaultConfig = () => {
|
|
|
1695
1791
|
* @see https://tailwindcss.com/docs/padding
|
|
1696
1792
|
*/
|
|
1697
1793
|
p: [{
|
|
1698
|
-
p:
|
|
1794
|
+
p: scaleUnambiguousSpacing()
|
|
1699
1795
|
}],
|
|
1700
1796
|
/**
|
|
1701
1797
|
* Padding X
|
|
1702
1798
|
* @see https://tailwindcss.com/docs/padding
|
|
1703
1799
|
*/
|
|
1704
1800
|
px: [{
|
|
1705
|
-
px:
|
|
1801
|
+
px: scaleUnambiguousSpacing()
|
|
1706
1802
|
}],
|
|
1707
1803
|
/**
|
|
1708
1804
|
* Padding Y
|
|
1709
1805
|
* @see https://tailwindcss.com/docs/padding
|
|
1710
1806
|
*/
|
|
1711
1807
|
py: [{
|
|
1712
|
-
py:
|
|
1808
|
+
py: scaleUnambiguousSpacing()
|
|
1713
1809
|
}],
|
|
1714
1810
|
/**
|
|
1715
1811
|
* Padding Start
|
|
1716
1812
|
* @see https://tailwindcss.com/docs/padding
|
|
1717
1813
|
*/
|
|
1718
1814
|
ps: [{
|
|
1719
|
-
ps:
|
|
1815
|
+
ps: scaleUnambiguousSpacing()
|
|
1720
1816
|
}],
|
|
1721
1817
|
/**
|
|
1722
1818
|
* Padding End
|
|
1723
1819
|
* @see https://tailwindcss.com/docs/padding
|
|
1724
1820
|
*/
|
|
1725
1821
|
pe: [{
|
|
1726
|
-
pe:
|
|
1822
|
+
pe: scaleUnambiguousSpacing()
|
|
1727
1823
|
}],
|
|
1728
1824
|
/**
|
|
1729
1825
|
* Padding Top
|
|
1730
1826
|
* @see https://tailwindcss.com/docs/padding
|
|
1731
1827
|
*/
|
|
1732
1828
|
pt: [{
|
|
1733
|
-
pt:
|
|
1829
|
+
pt: scaleUnambiguousSpacing()
|
|
1734
1830
|
}],
|
|
1735
1831
|
/**
|
|
1736
1832
|
* Padding Right
|
|
1737
1833
|
* @see https://tailwindcss.com/docs/padding
|
|
1738
1834
|
*/
|
|
1739
1835
|
pr: [{
|
|
1740
|
-
pr:
|
|
1836
|
+
pr: scaleUnambiguousSpacing()
|
|
1741
1837
|
}],
|
|
1742
1838
|
/**
|
|
1743
1839
|
* Padding Bottom
|
|
1744
1840
|
* @see https://tailwindcss.com/docs/padding
|
|
1745
1841
|
*/
|
|
1746
1842
|
pb: [{
|
|
1747
|
-
pb:
|
|
1843
|
+
pb: scaleUnambiguousSpacing()
|
|
1748
1844
|
}],
|
|
1749
1845
|
/**
|
|
1750
1846
|
* Padding Left
|
|
1751
1847
|
* @see https://tailwindcss.com/docs/padding
|
|
1752
1848
|
*/
|
|
1753
1849
|
pl: [{
|
|
1754
|
-
pl:
|
|
1850
|
+
pl: scaleUnambiguousSpacing()
|
|
1755
1851
|
}],
|
|
1756
1852
|
/**
|
|
1757
1853
|
* Margin
|
|
1758
1854
|
* @see https://tailwindcss.com/docs/margin
|
|
1759
1855
|
*/
|
|
1760
1856
|
m: [{
|
|
1761
|
-
m:
|
|
1857
|
+
m: scaleMargin()
|
|
1762
1858
|
}],
|
|
1763
1859
|
/**
|
|
1764
1860
|
* Margin X
|
|
1765
1861
|
* @see https://tailwindcss.com/docs/margin
|
|
1766
1862
|
*/
|
|
1767
1863
|
mx: [{
|
|
1768
|
-
mx:
|
|
1864
|
+
mx: scaleMargin()
|
|
1769
1865
|
}],
|
|
1770
1866
|
/**
|
|
1771
1867
|
* Margin Y
|
|
1772
1868
|
* @see https://tailwindcss.com/docs/margin
|
|
1773
1869
|
*/
|
|
1774
1870
|
my: [{
|
|
1775
|
-
my:
|
|
1871
|
+
my: scaleMargin()
|
|
1776
1872
|
}],
|
|
1777
1873
|
/**
|
|
1778
1874
|
* Margin Start
|
|
1779
1875
|
* @see https://tailwindcss.com/docs/margin
|
|
1780
1876
|
*/
|
|
1781
1877
|
ms: [{
|
|
1782
|
-
ms:
|
|
1878
|
+
ms: scaleMargin()
|
|
1783
1879
|
}],
|
|
1784
1880
|
/**
|
|
1785
1881
|
* Margin End
|
|
1786
1882
|
* @see https://tailwindcss.com/docs/margin
|
|
1787
1883
|
*/
|
|
1788
1884
|
me: [{
|
|
1789
|
-
me:
|
|
1885
|
+
me: scaleMargin()
|
|
1790
1886
|
}],
|
|
1791
1887
|
/**
|
|
1792
1888
|
* Margin Top
|
|
1793
1889
|
* @see https://tailwindcss.com/docs/margin
|
|
1794
1890
|
*/
|
|
1795
1891
|
mt: [{
|
|
1796
|
-
mt:
|
|
1892
|
+
mt: scaleMargin()
|
|
1797
1893
|
}],
|
|
1798
1894
|
/**
|
|
1799
1895
|
* Margin Right
|
|
1800
1896
|
* @see https://tailwindcss.com/docs/margin
|
|
1801
1897
|
*/
|
|
1802
1898
|
mr: [{
|
|
1803
|
-
mr:
|
|
1899
|
+
mr: scaleMargin()
|
|
1804
1900
|
}],
|
|
1805
1901
|
/**
|
|
1806
1902
|
* Margin Bottom
|
|
1807
1903
|
* @see https://tailwindcss.com/docs/margin
|
|
1808
1904
|
*/
|
|
1809
1905
|
mb: [{
|
|
1810
|
-
mb:
|
|
1906
|
+
mb: scaleMargin()
|
|
1811
1907
|
}],
|
|
1812
1908
|
/**
|
|
1813
1909
|
* Margin Left
|
|
1814
1910
|
* @see https://tailwindcss.com/docs/margin
|
|
1815
1911
|
*/
|
|
1816
1912
|
ml: [{
|
|
1817
|
-
ml:
|
|
1913
|
+
ml: scaleMargin()
|
|
1818
1914
|
}],
|
|
1819
1915
|
/**
|
|
1820
1916
|
* Space Between X
|
|
1821
|
-
* @see https://tailwindcss.com/docs/space
|
|
1917
|
+
* @see https://tailwindcss.com/docs/margin#adding-space-between-children
|
|
1822
1918
|
*/
|
|
1823
1919
|
"space-x": [{
|
|
1824
|
-
"space-x":
|
|
1920
|
+
"space-x": scaleUnambiguousSpacing()
|
|
1825
1921
|
}],
|
|
1826
1922
|
/**
|
|
1827
1923
|
* Space Between X Reverse
|
|
1828
|
-
* @see https://tailwindcss.com/docs/space
|
|
1924
|
+
* @see https://tailwindcss.com/docs/margin#adding-space-between-children
|
|
1829
1925
|
*/
|
|
1830
1926
|
"space-x-reverse": ["space-x-reverse"],
|
|
1831
1927
|
/**
|
|
1832
1928
|
* Space Between Y
|
|
1833
|
-
* @see https://tailwindcss.com/docs/space
|
|
1929
|
+
* @see https://tailwindcss.com/docs/margin#adding-space-between-children
|
|
1834
1930
|
*/
|
|
1835
1931
|
"space-y": [{
|
|
1836
|
-
"space-y":
|
|
1932
|
+
"space-y": scaleUnambiguousSpacing()
|
|
1837
1933
|
}],
|
|
1838
1934
|
/**
|
|
1839
1935
|
* Space Between Y Reverse
|
|
1840
|
-
* @see https://tailwindcss.com/docs/space
|
|
1936
|
+
* @see https://tailwindcss.com/docs/margin#adding-space-between-children
|
|
1841
1937
|
*/
|
|
1842
1938
|
"space-y-reverse": ["space-y-reverse"],
|
|
1843
|
-
//
|
|
1939
|
+
// --------------
|
|
1940
|
+
// --- Sizing ---
|
|
1941
|
+
// --------------
|
|
1942
|
+
/**
|
|
1943
|
+
* Size
|
|
1944
|
+
* @see https://tailwindcss.com/docs/width#setting-both-width-and-height
|
|
1945
|
+
*/
|
|
1946
|
+
size: [{
|
|
1947
|
+
size: scaleSizing()
|
|
1948
|
+
}],
|
|
1844
1949
|
/**
|
|
1845
1950
|
* Width
|
|
1846
1951
|
* @see https://tailwindcss.com/docs/width
|
|
1847
1952
|
*/
|
|
1848
1953
|
w: [{
|
|
1849
|
-
w: [
|
|
1954
|
+
w: [themeContainer, "screen", ...scaleSizing()]
|
|
1850
1955
|
}],
|
|
1851
1956
|
/**
|
|
1852
1957
|
* Min-Width
|
|
1853
1958
|
* @see https://tailwindcss.com/docs/min-width
|
|
1854
1959
|
*/
|
|
1855
1960
|
"min-w": [{
|
|
1856
|
-
"min-w": [
|
|
1961
|
+
"min-w": [
|
|
1962
|
+
themeContainer,
|
|
1963
|
+
"screen",
|
|
1964
|
+
/** Deprecated. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
1965
|
+
"none",
|
|
1966
|
+
...scaleSizing()
|
|
1967
|
+
]
|
|
1857
1968
|
}],
|
|
1858
1969
|
/**
|
|
1859
1970
|
* Max-Width
|
|
1860
1971
|
* @see https://tailwindcss.com/docs/max-width
|
|
1861
1972
|
*/
|
|
1862
1973
|
"max-w": [{
|
|
1863
|
-
"max-w": [
|
|
1864
|
-
|
|
1865
|
-
|
|
1974
|
+
"max-w": [
|
|
1975
|
+
themeContainer,
|
|
1976
|
+
"screen",
|
|
1977
|
+
"none",
|
|
1978
|
+
/** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
1979
|
+
"prose",
|
|
1980
|
+
/** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
1981
|
+
{
|
|
1982
|
+
screen: [themeBreakpoint]
|
|
1983
|
+
},
|
|
1984
|
+
...scaleSizing()
|
|
1985
|
+
]
|
|
1866
1986
|
}],
|
|
1867
1987
|
/**
|
|
1868
1988
|
* Height
|
|
1869
1989
|
* @see https://tailwindcss.com/docs/height
|
|
1870
1990
|
*/
|
|
1871
1991
|
h: [{
|
|
1872
|
-
h: [
|
|
1992
|
+
h: ["screen", "lh", ...scaleSizing()]
|
|
1873
1993
|
}],
|
|
1874
1994
|
/**
|
|
1875
1995
|
* Min-Height
|
|
1876
1996
|
* @see https://tailwindcss.com/docs/min-height
|
|
1877
1997
|
*/
|
|
1878
1998
|
"min-h": [{
|
|
1879
|
-
"min-h": [
|
|
1999
|
+
"min-h": ["screen", "lh", "none", ...scaleSizing()]
|
|
1880
2000
|
}],
|
|
1881
2001
|
/**
|
|
1882
2002
|
* Max-Height
|
|
1883
2003
|
* @see https://tailwindcss.com/docs/max-height
|
|
1884
2004
|
*/
|
|
1885
2005
|
"max-h": [{
|
|
1886
|
-
"max-h": [
|
|
2006
|
+
"max-h": ["screen", "lh", ...scaleSizing()]
|
|
1887
2007
|
}],
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
*/
|
|
1892
|
-
size: [{
|
|
1893
|
-
size: [isArbitraryValue, spacing, "auto", "min", "max", "fit"]
|
|
1894
|
-
}],
|
|
1895
|
-
// Typography
|
|
2008
|
+
// ------------------
|
|
2009
|
+
// --- Typography ---
|
|
2010
|
+
// ------------------
|
|
1896
2011
|
/**
|
|
1897
2012
|
* Font Size
|
|
1898
2013
|
* @see https://tailwindcss.com/docs/font-size
|
|
1899
2014
|
*/
|
|
1900
2015
|
"font-size": [{
|
|
1901
|
-
text: ["base",
|
|
2016
|
+
text: ["base", themeText, isArbitraryVariableLength, isArbitraryLength]
|
|
1902
2017
|
}],
|
|
1903
2018
|
/**
|
|
1904
2019
|
* Font Smoothing
|
|
@@ -1915,14 +2030,21 @@ var getDefaultConfig = () => {
|
|
|
1915
2030
|
* @see https://tailwindcss.com/docs/font-weight
|
|
1916
2031
|
*/
|
|
1917
2032
|
"font-weight": [{
|
|
1918
|
-
font: [
|
|
2033
|
+
font: [themeFontWeight, isArbitraryVariable, isArbitraryNumber]
|
|
2034
|
+
}],
|
|
2035
|
+
/**
|
|
2036
|
+
* Font Stretch
|
|
2037
|
+
* @see https://tailwindcss.com/docs/font-stretch
|
|
2038
|
+
*/
|
|
2039
|
+
"font-stretch": [{
|
|
2040
|
+
"font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", isPercent, isArbitraryValue]
|
|
1919
2041
|
}],
|
|
1920
2042
|
/**
|
|
1921
2043
|
* Font Family
|
|
1922
2044
|
* @see https://tailwindcss.com/docs/font-family
|
|
1923
2045
|
*/
|
|
1924
2046
|
"font-family": [{
|
|
1925
|
-
font: [
|
|
2047
|
+
font: [isArbitraryVariableFamilyName, isArbitraryValue, themeFont]
|
|
1926
2048
|
}],
|
|
1927
2049
|
/**
|
|
1928
2050
|
* Font Variant Numeric
|
|
@@ -1953,41 +2075,38 @@ var getDefaultConfig = () => {
|
|
|
1953
2075
|
* Font Variant Numeric
|
|
1954
2076
|
* @see https://tailwindcss.com/docs/font-variant-numeric
|
|
1955
2077
|
*/
|
|
1956
|
-
"fvn-fraction": ["diagonal-fractions", "stacked-
|
|
2078
|
+
"fvn-fraction": ["diagonal-fractions", "stacked-fractions"],
|
|
1957
2079
|
/**
|
|
1958
2080
|
* Letter Spacing
|
|
1959
2081
|
* @see https://tailwindcss.com/docs/letter-spacing
|
|
1960
2082
|
*/
|
|
1961
2083
|
tracking: [{
|
|
1962
|
-
tracking: [
|
|
2084
|
+
tracking: [themeTracking, isArbitraryVariable, isArbitraryValue]
|
|
1963
2085
|
}],
|
|
1964
2086
|
/**
|
|
1965
2087
|
* Line Clamp
|
|
1966
2088
|
* @see https://tailwindcss.com/docs/line-clamp
|
|
1967
2089
|
*/
|
|
1968
2090
|
"line-clamp": [{
|
|
1969
|
-
"line-clamp": ["none",
|
|
2091
|
+
"line-clamp": [isNumber, "none", isArbitraryVariable, isArbitraryNumber]
|
|
1970
2092
|
}],
|
|
1971
2093
|
/**
|
|
1972
2094
|
* Line Height
|
|
1973
2095
|
* @see https://tailwindcss.com/docs/line-height
|
|
1974
2096
|
*/
|
|
1975
2097
|
leading: [{
|
|
1976
|
-
leading: [
|
|
2098
|
+
leading: [
|
|
2099
|
+
/** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
2100
|
+
themeLeading,
|
|
2101
|
+
...scaleUnambiguousSpacing()
|
|
2102
|
+
]
|
|
1977
2103
|
}],
|
|
1978
2104
|
/**
|
|
1979
2105
|
* List Style Image
|
|
1980
2106
|
* @see https://tailwindcss.com/docs/list-style-image
|
|
1981
2107
|
*/
|
|
1982
2108
|
"list-image": [{
|
|
1983
|
-
"list-image": ["none", isArbitraryValue]
|
|
1984
|
-
}],
|
|
1985
|
-
/**
|
|
1986
|
-
* List Style Type
|
|
1987
|
-
* @see https://tailwindcss.com/docs/list-style-type
|
|
1988
|
-
*/
|
|
1989
|
-
"list-style-type": [{
|
|
1990
|
-
list: ["none", "disc", "decimal", isArbitraryValue]
|
|
2109
|
+
"list-image": ["none", isArbitraryVariable, isArbitraryValue]
|
|
1991
2110
|
}],
|
|
1992
2111
|
/**
|
|
1993
2112
|
* List Style Position
|
|
@@ -1997,19 +2116,11 @@ var getDefaultConfig = () => {
|
|
|
1997
2116
|
list: ["inside", "outside"]
|
|
1998
2117
|
}],
|
|
1999
2118
|
/**
|
|
2000
|
-
*
|
|
2001
|
-
* @
|
|
2002
|
-
* @see https://tailwindcss.com/docs/placeholder-color
|
|
2003
|
-
*/
|
|
2004
|
-
"placeholder-color": [{
|
|
2005
|
-
placeholder: [colors]
|
|
2006
|
-
}],
|
|
2007
|
-
/**
|
|
2008
|
-
* Placeholder Opacity
|
|
2009
|
-
* @see https://tailwindcss.com/docs/placeholder-opacity
|
|
2119
|
+
* List Style Type
|
|
2120
|
+
* @see https://tailwindcss.com/docs/list-style-type
|
|
2010
2121
|
*/
|
|
2011
|
-
"
|
|
2012
|
-
"
|
|
2122
|
+
"list-style-type": [{
|
|
2123
|
+
list: ["disc", "decimal", "none", isArbitraryVariable, isArbitraryValue]
|
|
2013
2124
|
}],
|
|
2014
2125
|
/**
|
|
2015
2126
|
* Text Alignment
|
|
@@ -2019,18 +2130,19 @@ var getDefaultConfig = () => {
|
|
|
2019
2130
|
text: ["left", "center", "right", "justify", "start", "end"]
|
|
2020
2131
|
}],
|
|
2021
2132
|
/**
|
|
2022
|
-
*
|
|
2023
|
-
* @
|
|
2133
|
+
* Placeholder Color
|
|
2134
|
+
* @deprecated since Tailwind CSS v3.0.0
|
|
2135
|
+
* @see https://v3.tailwindcss.com/docs/placeholder-color
|
|
2024
2136
|
*/
|
|
2025
|
-
"
|
|
2026
|
-
|
|
2137
|
+
"placeholder-color": [{
|
|
2138
|
+
placeholder: scaleColor()
|
|
2027
2139
|
}],
|
|
2028
2140
|
/**
|
|
2029
|
-
* Text
|
|
2030
|
-
* @see https://tailwindcss.com/docs/text-
|
|
2141
|
+
* Text Color
|
|
2142
|
+
* @see https://tailwindcss.com/docs/text-color
|
|
2031
2143
|
*/
|
|
2032
|
-
"text-
|
|
2033
|
-
|
|
2144
|
+
"text-color": [{
|
|
2145
|
+
text: scaleColor()
|
|
2034
2146
|
}],
|
|
2035
2147
|
/**
|
|
2036
2148
|
* Text Decoration
|
|
@@ -2042,28 +2154,28 @@ var getDefaultConfig = () => {
|
|
|
2042
2154
|
* @see https://tailwindcss.com/docs/text-decoration-style
|
|
2043
2155
|
*/
|
|
2044
2156
|
"text-decoration-style": [{
|
|
2045
|
-
decoration: [...
|
|
2157
|
+
decoration: [...scaleLineStyle(), "wavy"]
|
|
2046
2158
|
}],
|
|
2047
2159
|
/**
|
|
2048
2160
|
* Text Decoration Thickness
|
|
2049
2161
|
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
|
2050
2162
|
*/
|
|
2051
2163
|
"text-decoration-thickness": [{
|
|
2052
|
-
decoration: [
|
|
2053
|
-
}],
|
|
2054
|
-
/**
|
|
2055
|
-
* Text Underline Offset
|
|
2056
|
-
* @see https://tailwindcss.com/docs/text-underline-offset
|
|
2057
|
-
*/
|
|
2058
|
-
"underline-offset": [{
|
|
2059
|
-
"underline-offset": ["auto", isLength, isArbitraryValue]
|
|
2164
|
+
decoration: [isNumber, "from-font", "auto", isArbitraryVariable, isArbitraryLength]
|
|
2060
2165
|
}],
|
|
2061
2166
|
/**
|
|
2062
2167
|
* Text Decoration Color
|
|
2063
2168
|
* @see https://tailwindcss.com/docs/text-decoration-color
|
|
2064
2169
|
*/
|
|
2065
2170
|
"text-decoration-color": [{
|
|
2066
|
-
decoration:
|
|
2171
|
+
decoration: scaleColor()
|
|
2172
|
+
}],
|
|
2173
|
+
/**
|
|
2174
|
+
* Text Underline Offset
|
|
2175
|
+
* @see https://tailwindcss.com/docs/text-underline-offset
|
|
2176
|
+
*/
|
|
2177
|
+
"underline-offset": [{
|
|
2178
|
+
"underline-offset": [isNumber, "auto", isArbitraryVariable, isArbitraryValue]
|
|
2067
2179
|
}],
|
|
2068
2180
|
/**
|
|
2069
2181
|
* Text Transform
|
|
@@ -2087,14 +2199,14 @@ var getDefaultConfig = () => {
|
|
|
2087
2199
|
* @see https://tailwindcss.com/docs/text-indent
|
|
2088
2200
|
*/
|
|
2089
2201
|
indent: [{
|
|
2090
|
-
indent:
|
|
2202
|
+
indent: scaleUnambiguousSpacing()
|
|
2091
2203
|
}],
|
|
2092
2204
|
/**
|
|
2093
2205
|
* Vertical Alignment
|
|
2094
2206
|
* @see https://tailwindcss.com/docs/vertical-align
|
|
2095
2207
|
*/
|
|
2096
2208
|
"vertical-align": [{
|
|
2097
|
-
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", isArbitraryValue]
|
|
2209
|
+
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", isArbitraryVariable, isArbitraryValue]
|
|
2098
2210
|
}],
|
|
2099
2211
|
/**
|
|
2100
2212
|
* Whitespace
|
|
@@ -2110,6 +2222,13 @@ var getDefaultConfig = () => {
|
|
|
2110
2222
|
break: [{
|
|
2111
2223
|
break: ["normal", "words", "all", "keep"]
|
|
2112
2224
|
}],
|
|
2225
|
+
/**
|
|
2226
|
+
* Overflow Wrap
|
|
2227
|
+
* @see https://tailwindcss.com/docs/overflow-wrap
|
|
2228
|
+
*/
|
|
2229
|
+
wrap: [{
|
|
2230
|
+
wrap: ["break-word", "anywhere", "normal"]
|
|
2231
|
+
}],
|
|
2113
2232
|
/**
|
|
2114
2233
|
* Hyphens
|
|
2115
2234
|
* @see https://tailwindcss.com/docs/hyphens
|
|
@@ -2122,9 +2241,11 @@ var getDefaultConfig = () => {
|
|
|
2122
2241
|
* @see https://tailwindcss.com/docs/content
|
|
2123
2242
|
*/
|
|
2124
2243
|
content: [{
|
|
2125
|
-
content: ["none", isArbitraryValue]
|
|
2244
|
+
content: ["none", isArbitraryVariable, isArbitraryValue]
|
|
2126
2245
|
}],
|
|
2127
|
-
//
|
|
2246
|
+
// -------------------
|
|
2247
|
+
// --- Backgrounds ---
|
|
2248
|
+
// -------------------
|
|
2128
2249
|
/**
|
|
2129
2250
|
* Background Attachment
|
|
2130
2251
|
* @see https://tailwindcss.com/docs/background-attachment
|
|
@@ -2139,14 +2260,6 @@ var getDefaultConfig = () => {
|
|
|
2139
2260
|
"bg-clip": [{
|
|
2140
2261
|
"bg-clip": ["border", "padding", "content", "text"]
|
|
2141
2262
|
}],
|
|
2142
|
-
/**
|
|
2143
|
-
* Background Opacity
|
|
2144
|
-
* @deprecated since Tailwind CSS v3.0.0
|
|
2145
|
-
* @see https://tailwindcss.com/docs/background-opacity
|
|
2146
|
-
*/
|
|
2147
|
-
"bg-opacity": [{
|
|
2148
|
-
"bg-opacity": [opacity]
|
|
2149
|
-
}],
|
|
2150
2263
|
/**
|
|
2151
2264
|
* Background Origin
|
|
2152
2265
|
* @see https://tailwindcss.com/docs/background-origin
|
|
@@ -2159,23 +2272,21 @@ var getDefaultConfig = () => {
|
|
|
2159
2272
|
* @see https://tailwindcss.com/docs/background-position
|
|
2160
2273
|
*/
|
|
2161
2274
|
"bg-position": [{
|
|
2162
|
-
bg:
|
|
2275
|
+
bg: scaleBgPosition()
|
|
2163
2276
|
}],
|
|
2164
2277
|
/**
|
|
2165
2278
|
* Background Repeat
|
|
2166
2279
|
* @see https://tailwindcss.com/docs/background-repeat
|
|
2167
2280
|
*/
|
|
2168
2281
|
"bg-repeat": [{
|
|
2169
|
-
bg:
|
|
2170
|
-
repeat: ["", "x", "y", "round", "space"]
|
|
2171
|
-
}]
|
|
2282
|
+
bg: scaleBgRepeat()
|
|
2172
2283
|
}],
|
|
2173
2284
|
/**
|
|
2174
2285
|
* Background Size
|
|
2175
2286
|
* @see https://tailwindcss.com/docs/background-size
|
|
2176
2287
|
*/
|
|
2177
2288
|
"bg-size": [{
|
|
2178
|
-
bg:
|
|
2289
|
+
bg: scaleBgSize()
|
|
2179
2290
|
}],
|
|
2180
2291
|
/**
|
|
2181
2292
|
* Background Image
|
|
@@ -2183,597 +2294,863 @@ var getDefaultConfig = () => {
|
|
|
2183
2294
|
*/
|
|
2184
2295
|
"bg-image": [{
|
|
2185
2296
|
bg: ["none", {
|
|
2186
|
-
|
|
2187
|
-
|
|
2297
|
+
linear: [{
|
|
2298
|
+
to: ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
|
|
2299
|
+
}, isInteger, isArbitraryVariable, isArbitraryValue],
|
|
2300
|
+
radial: ["", isArbitraryVariable, isArbitraryValue],
|
|
2301
|
+
conic: [isInteger, isArbitraryVariable, isArbitraryValue]
|
|
2302
|
+
}, isArbitraryVariableImage, isArbitraryImage]
|
|
2188
2303
|
}],
|
|
2189
2304
|
/**
|
|
2190
2305
|
* Background Color
|
|
2191
2306
|
* @see https://tailwindcss.com/docs/background-color
|
|
2192
2307
|
*/
|
|
2193
2308
|
"bg-color": [{
|
|
2194
|
-
bg:
|
|
2309
|
+
bg: scaleColor()
|
|
2195
2310
|
}],
|
|
2196
2311
|
/**
|
|
2197
2312
|
* Gradient Color Stops From Position
|
|
2198
2313
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
2199
2314
|
*/
|
|
2200
2315
|
"gradient-from-pos": [{
|
|
2201
|
-
from:
|
|
2316
|
+
from: scaleGradientStopPosition()
|
|
2202
2317
|
}],
|
|
2203
2318
|
/**
|
|
2204
2319
|
* Gradient Color Stops Via Position
|
|
2205
2320
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
2206
2321
|
*/
|
|
2207
2322
|
"gradient-via-pos": [{
|
|
2208
|
-
via:
|
|
2323
|
+
via: scaleGradientStopPosition()
|
|
2209
2324
|
}],
|
|
2210
2325
|
/**
|
|
2211
2326
|
* Gradient Color Stops To Position
|
|
2212
2327
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
2213
2328
|
*/
|
|
2214
2329
|
"gradient-to-pos": [{
|
|
2215
|
-
to:
|
|
2330
|
+
to: scaleGradientStopPosition()
|
|
2216
2331
|
}],
|
|
2217
2332
|
/**
|
|
2218
2333
|
* Gradient Color Stops From
|
|
2219
2334
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
2220
2335
|
*/
|
|
2221
2336
|
"gradient-from": [{
|
|
2222
|
-
from:
|
|
2337
|
+
from: scaleColor()
|
|
2223
2338
|
}],
|
|
2224
2339
|
/**
|
|
2225
2340
|
* Gradient Color Stops Via
|
|
2226
2341
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
2227
2342
|
*/
|
|
2228
2343
|
"gradient-via": [{
|
|
2229
|
-
via:
|
|
2344
|
+
via: scaleColor()
|
|
2230
2345
|
}],
|
|
2231
2346
|
/**
|
|
2232
2347
|
* Gradient Color Stops To
|
|
2233
2348
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
2234
2349
|
*/
|
|
2235
2350
|
"gradient-to": [{
|
|
2236
|
-
to:
|
|
2351
|
+
to: scaleColor()
|
|
2237
2352
|
}],
|
|
2238
|
-
//
|
|
2353
|
+
// ---------------
|
|
2354
|
+
// --- Borders ---
|
|
2355
|
+
// ---------------
|
|
2239
2356
|
/**
|
|
2240
2357
|
* Border Radius
|
|
2241
2358
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2242
2359
|
*/
|
|
2243
2360
|
rounded: [{
|
|
2244
|
-
rounded:
|
|
2361
|
+
rounded: scaleRadius()
|
|
2245
2362
|
}],
|
|
2246
2363
|
/**
|
|
2247
2364
|
* Border Radius Start
|
|
2248
2365
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2249
2366
|
*/
|
|
2250
2367
|
"rounded-s": [{
|
|
2251
|
-
"rounded-s":
|
|
2368
|
+
"rounded-s": scaleRadius()
|
|
2252
2369
|
}],
|
|
2253
2370
|
/**
|
|
2254
2371
|
* Border Radius End
|
|
2255
2372
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2256
2373
|
*/
|
|
2257
2374
|
"rounded-e": [{
|
|
2258
|
-
"rounded-e":
|
|
2375
|
+
"rounded-e": scaleRadius()
|
|
2259
2376
|
}],
|
|
2260
2377
|
/**
|
|
2261
2378
|
* Border Radius Top
|
|
2262
2379
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2263
2380
|
*/
|
|
2264
2381
|
"rounded-t": [{
|
|
2265
|
-
"rounded-t":
|
|
2382
|
+
"rounded-t": scaleRadius()
|
|
2266
2383
|
}],
|
|
2267
2384
|
/**
|
|
2268
2385
|
* Border Radius Right
|
|
2269
2386
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2270
2387
|
*/
|
|
2271
2388
|
"rounded-r": [{
|
|
2272
|
-
"rounded-r":
|
|
2389
|
+
"rounded-r": scaleRadius()
|
|
2273
2390
|
}],
|
|
2274
2391
|
/**
|
|
2275
2392
|
* Border Radius Bottom
|
|
2276
2393
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2277
2394
|
*/
|
|
2278
2395
|
"rounded-b": [{
|
|
2279
|
-
"rounded-b":
|
|
2396
|
+
"rounded-b": scaleRadius()
|
|
2280
2397
|
}],
|
|
2281
2398
|
/**
|
|
2282
2399
|
* Border Radius Left
|
|
2283
2400
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2284
2401
|
*/
|
|
2285
2402
|
"rounded-l": [{
|
|
2286
|
-
"rounded-l":
|
|
2403
|
+
"rounded-l": scaleRadius()
|
|
2287
2404
|
}],
|
|
2288
2405
|
/**
|
|
2289
2406
|
* Border Radius Start Start
|
|
2290
2407
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2291
2408
|
*/
|
|
2292
2409
|
"rounded-ss": [{
|
|
2293
|
-
"rounded-ss":
|
|
2410
|
+
"rounded-ss": scaleRadius()
|
|
2294
2411
|
}],
|
|
2295
2412
|
/**
|
|
2296
2413
|
* Border Radius Start End
|
|
2297
2414
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2298
2415
|
*/
|
|
2299
2416
|
"rounded-se": [{
|
|
2300
|
-
"rounded-se":
|
|
2417
|
+
"rounded-se": scaleRadius()
|
|
2301
2418
|
}],
|
|
2302
2419
|
/**
|
|
2303
2420
|
* Border Radius End End
|
|
2304
2421
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2305
2422
|
*/
|
|
2306
2423
|
"rounded-ee": [{
|
|
2307
|
-
"rounded-ee":
|
|
2424
|
+
"rounded-ee": scaleRadius()
|
|
2308
2425
|
}],
|
|
2309
2426
|
/**
|
|
2310
2427
|
* Border Radius End Start
|
|
2311
2428
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2312
2429
|
*/
|
|
2313
2430
|
"rounded-es": [{
|
|
2314
|
-
"rounded-es":
|
|
2431
|
+
"rounded-es": scaleRadius()
|
|
2315
2432
|
}],
|
|
2316
2433
|
/**
|
|
2317
2434
|
* Border Radius Top Left
|
|
2318
2435
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2319
2436
|
*/
|
|
2320
2437
|
"rounded-tl": [{
|
|
2321
|
-
"rounded-tl":
|
|
2438
|
+
"rounded-tl": scaleRadius()
|
|
2322
2439
|
}],
|
|
2323
2440
|
/**
|
|
2324
2441
|
* Border Radius Top Right
|
|
2325
2442
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2326
2443
|
*/
|
|
2327
2444
|
"rounded-tr": [{
|
|
2328
|
-
"rounded-tr":
|
|
2445
|
+
"rounded-tr": scaleRadius()
|
|
2329
2446
|
}],
|
|
2330
2447
|
/**
|
|
2331
2448
|
* Border Radius Bottom Right
|
|
2332
2449
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2333
2450
|
*/
|
|
2334
2451
|
"rounded-br": [{
|
|
2335
|
-
"rounded-br":
|
|
2452
|
+
"rounded-br": scaleRadius()
|
|
2336
2453
|
}],
|
|
2337
2454
|
/**
|
|
2338
2455
|
* Border Radius Bottom Left
|
|
2339
2456
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2340
2457
|
*/
|
|
2341
2458
|
"rounded-bl": [{
|
|
2342
|
-
"rounded-bl":
|
|
2459
|
+
"rounded-bl": scaleRadius()
|
|
2343
2460
|
}],
|
|
2344
2461
|
/**
|
|
2345
2462
|
* Border Width
|
|
2346
2463
|
* @see https://tailwindcss.com/docs/border-width
|
|
2347
2464
|
*/
|
|
2348
2465
|
"border-w": [{
|
|
2349
|
-
border:
|
|
2466
|
+
border: scaleBorderWidth()
|
|
2350
2467
|
}],
|
|
2351
2468
|
/**
|
|
2352
2469
|
* Border Width X
|
|
2353
2470
|
* @see https://tailwindcss.com/docs/border-width
|
|
2354
2471
|
*/
|
|
2355
2472
|
"border-w-x": [{
|
|
2356
|
-
"border-x":
|
|
2473
|
+
"border-x": scaleBorderWidth()
|
|
2357
2474
|
}],
|
|
2358
2475
|
/**
|
|
2359
2476
|
* Border Width Y
|
|
2360
2477
|
* @see https://tailwindcss.com/docs/border-width
|
|
2361
2478
|
*/
|
|
2362
2479
|
"border-w-y": [{
|
|
2363
|
-
"border-y":
|
|
2480
|
+
"border-y": scaleBorderWidth()
|
|
2364
2481
|
}],
|
|
2365
2482
|
/**
|
|
2366
2483
|
* Border Width Start
|
|
2367
2484
|
* @see https://tailwindcss.com/docs/border-width
|
|
2368
2485
|
*/
|
|
2369
2486
|
"border-w-s": [{
|
|
2370
|
-
"border-s":
|
|
2487
|
+
"border-s": scaleBorderWidth()
|
|
2371
2488
|
}],
|
|
2372
2489
|
/**
|
|
2373
2490
|
* Border Width End
|
|
2374
2491
|
* @see https://tailwindcss.com/docs/border-width
|
|
2375
2492
|
*/
|
|
2376
2493
|
"border-w-e": [{
|
|
2377
|
-
"border-e":
|
|
2494
|
+
"border-e": scaleBorderWidth()
|
|
2378
2495
|
}],
|
|
2379
2496
|
/**
|
|
2380
2497
|
* Border Width Top
|
|
2381
2498
|
* @see https://tailwindcss.com/docs/border-width
|
|
2382
2499
|
*/
|
|
2383
2500
|
"border-w-t": [{
|
|
2384
|
-
"border-t":
|
|
2501
|
+
"border-t": scaleBorderWidth()
|
|
2385
2502
|
}],
|
|
2386
2503
|
/**
|
|
2387
2504
|
* Border Width Right
|
|
2388
2505
|
* @see https://tailwindcss.com/docs/border-width
|
|
2389
2506
|
*/
|
|
2390
2507
|
"border-w-r": [{
|
|
2391
|
-
"border-r":
|
|
2508
|
+
"border-r": scaleBorderWidth()
|
|
2392
2509
|
}],
|
|
2393
2510
|
/**
|
|
2394
2511
|
* Border Width Bottom
|
|
2395
2512
|
* @see https://tailwindcss.com/docs/border-width
|
|
2396
2513
|
*/
|
|
2397
2514
|
"border-w-b": [{
|
|
2398
|
-
"border-b":
|
|
2515
|
+
"border-b": scaleBorderWidth()
|
|
2399
2516
|
}],
|
|
2400
2517
|
/**
|
|
2401
2518
|
* Border Width Left
|
|
2402
2519
|
* @see https://tailwindcss.com/docs/border-width
|
|
2403
2520
|
*/
|
|
2404
2521
|
"border-w-l": [{
|
|
2405
|
-
"border-l":
|
|
2406
|
-
}],
|
|
2407
|
-
/**
|
|
2408
|
-
* Border Opacity
|
|
2409
|
-
* @see https://tailwindcss.com/docs/border-opacity
|
|
2410
|
-
*/
|
|
2411
|
-
"border-opacity": [{
|
|
2412
|
-
"border-opacity": [opacity]
|
|
2413
|
-
}],
|
|
2414
|
-
/**
|
|
2415
|
-
* Border Style
|
|
2416
|
-
* @see https://tailwindcss.com/docs/border-style
|
|
2417
|
-
*/
|
|
2418
|
-
"border-style": [{
|
|
2419
|
-
border: [...getLineStyles(), "hidden"]
|
|
2522
|
+
"border-l": scaleBorderWidth()
|
|
2420
2523
|
}],
|
|
2421
2524
|
/**
|
|
2422
2525
|
* Divide Width X
|
|
2423
|
-
* @see https://tailwindcss.com/docs/
|
|
2526
|
+
* @see https://tailwindcss.com/docs/border-width#between-children
|
|
2424
2527
|
*/
|
|
2425
2528
|
"divide-x": [{
|
|
2426
|
-
"divide-x":
|
|
2529
|
+
"divide-x": scaleBorderWidth()
|
|
2427
2530
|
}],
|
|
2428
2531
|
/**
|
|
2429
2532
|
* Divide Width X Reverse
|
|
2430
|
-
* @see https://tailwindcss.com/docs/
|
|
2533
|
+
* @see https://tailwindcss.com/docs/border-width#between-children
|
|
2431
2534
|
*/
|
|
2432
2535
|
"divide-x-reverse": ["divide-x-reverse"],
|
|
2433
2536
|
/**
|
|
2434
2537
|
* Divide Width Y
|
|
2435
|
-
* @see https://tailwindcss.com/docs/
|
|
2538
|
+
* @see https://tailwindcss.com/docs/border-width#between-children
|
|
2436
2539
|
*/
|
|
2437
2540
|
"divide-y": [{
|
|
2438
|
-
"divide-y":
|
|
2541
|
+
"divide-y": scaleBorderWidth()
|
|
2439
2542
|
}],
|
|
2440
2543
|
/**
|
|
2441
2544
|
* Divide Width Y Reverse
|
|
2442
|
-
* @see https://tailwindcss.com/docs/
|
|
2545
|
+
* @see https://tailwindcss.com/docs/border-width#between-children
|
|
2443
2546
|
*/
|
|
2444
2547
|
"divide-y-reverse": ["divide-y-reverse"],
|
|
2445
2548
|
/**
|
|
2446
|
-
*
|
|
2447
|
-
* @see https://tailwindcss.com/docs/
|
|
2549
|
+
* Border Style
|
|
2550
|
+
* @see https://tailwindcss.com/docs/border-style
|
|
2448
2551
|
*/
|
|
2449
|
-
"
|
|
2450
|
-
"
|
|
2552
|
+
"border-style": [{
|
|
2553
|
+
border: [...scaleLineStyle(), "hidden", "none"]
|
|
2451
2554
|
}],
|
|
2452
2555
|
/**
|
|
2453
2556
|
* Divide Style
|
|
2454
|
-
* @see https://tailwindcss.com/docs/
|
|
2557
|
+
* @see https://tailwindcss.com/docs/border-style#setting-the-divider-style
|
|
2455
2558
|
*/
|
|
2456
2559
|
"divide-style": [{
|
|
2457
|
-
divide:
|
|
2560
|
+
divide: [...scaleLineStyle(), "hidden", "none"]
|
|
2458
2561
|
}],
|
|
2459
2562
|
/**
|
|
2460
2563
|
* Border Color
|
|
2461
2564
|
* @see https://tailwindcss.com/docs/border-color
|
|
2462
2565
|
*/
|
|
2463
2566
|
"border-color": [{
|
|
2464
|
-
border:
|
|
2567
|
+
border: scaleColor()
|
|
2465
2568
|
}],
|
|
2466
2569
|
/**
|
|
2467
2570
|
* Border Color X
|
|
2468
2571
|
* @see https://tailwindcss.com/docs/border-color
|
|
2469
2572
|
*/
|
|
2470
2573
|
"border-color-x": [{
|
|
2471
|
-
"border-x":
|
|
2574
|
+
"border-x": scaleColor()
|
|
2472
2575
|
}],
|
|
2473
2576
|
/**
|
|
2474
2577
|
* Border Color Y
|
|
2475
2578
|
* @see https://tailwindcss.com/docs/border-color
|
|
2476
2579
|
*/
|
|
2477
2580
|
"border-color-y": [{
|
|
2478
|
-
"border-y":
|
|
2581
|
+
"border-y": scaleColor()
|
|
2479
2582
|
}],
|
|
2480
2583
|
/**
|
|
2481
2584
|
* Border Color S
|
|
2482
2585
|
* @see https://tailwindcss.com/docs/border-color
|
|
2483
2586
|
*/
|
|
2484
2587
|
"border-color-s": [{
|
|
2485
|
-
"border-s":
|
|
2588
|
+
"border-s": scaleColor()
|
|
2486
2589
|
}],
|
|
2487
2590
|
/**
|
|
2488
2591
|
* Border Color E
|
|
2489
2592
|
* @see https://tailwindcss.com/docs/border-color
|
|
2490
2593
|
*/
|
|
2491
2594
|
"border-color-e": [{
|
|
2492
|
-
"border-e":
|
|
2595
|
+
"border-e": scaleColor()
|
|
2493
2596
|
}],
|
|
2494
2597
|
/**
|
|
2495
2598
|
* Border Color Top
|
|
2496
2599
|
* @see https://tailwindcss.com/docs/border-color
|
|
2497
2600
|
*/
|
|
2498
2601
|
"border-color-t": [{
|
|
2499
|
-
"border-t":
|
|
2602
|
+
"border-t": scaleColor()
|
|
2500
2603
|
}],
|
|
2501
2604
|
/**
|
|
2502
2605
|
* Border Color Right
|
|
2503
2606
|
* @see https://tailwindcss.com/docs/border-color
|
|
2504
2607
|
*/
|
|
2505
2608
|
"border-color-r": [{
|
|
2506
|
-
"border-r":
|
|
2609
|
+
"border-r": scaleColor()
|
|
2507
2610
|
}],
|
|
2508
2611
|
/**
|
|
2509
2612
|
* Border Color Bottom
|
|
2510
2613
|
* @see https://tailwindcss.com/docs/border-color
|
|
2511
2614
|
*/
|
|
2512
2615
|
"border-color-b": [{
|
|
2513
|
-
"border-b":
|
|
2616
|
+
"border-b": scaleColor()
|
|
2514
2617
|
}],
|
|
2515
2618
|
/**
|
|
2516
2619
|
* Border Color Left
|
|
2517
2620
|
* @see https://tailwindcss.com/docs/border-color
|
|
2518
2621
|
*/
|
|
2519
2622
|
"border-color-l": [{
|
|
2520
|
-
"border-l":
|
|
2623
|
+
"border-l": scaleColor()
|
|
2521
2624
|
}],
|
|
2522
2625
|
/**
|
|
2523
2626
|
* Divide Color
|
|
2524
2627
|
* @see https://tailwindcss.com/docs/divide-color
|
|
2525
2628
|
*/
|
|
2526
2629
|
"divide-color": [{
|
|
2527
|
-
divide:
|
|
2630
|
+
divide: scaleColor()
|
|
2528
2631
|
}],
|
|
2529
2632
|
/**
|
|
2530
2633
|
* Outline Style
|
|
2531
2634
|
* @see https://tailwindcss.com/docs/outline-style
|
|
2532
2635
|
*/
|
|
2533
2636
|
"outline-style": [{
|
|
2534
|
-
outline: ["",
|
|
2637
|
+
outline: [...scaleLineStyle(), "none", "hidden"]
|
|
2535
2638
|
}],
|
|
2536
2639
|
/**
|
|
2537
2640
|
* Outline Offset
|
|
2538
2641
|
* @see https://tailwindcss.com/docs/outline-offset
|
|
2539
2642
|
*/
|
|
2540
2643
|
"outline-offset": [{
|
|
2541
|
-
"outline-offset": [
|
|
2644
|
+
"outline-offset": [isNumber, isArbitraryVariable, isArbitraryValue]
|
|
2542
2645
|
}],
|
|
2543
2646
|
/**
|
|
2544
2647
|
* Outline Width
|
|
2545
2648
|
* @see https://tailwindcss.com/docs/outline-width
|
|
2546
2649
|
*/
|
|
2547
2650
|
"outline-w": [{
|
|
2548
|
-
outline: [
|
|
2651
|
+
outline: ["", isNumber, isArbitraryVariableLength, isArbitraryLength]
|
|
2549
2652
|
}],
|
|
2550
2653
|
/**
|
|
2551
2654
|
* Outline Color
|
|
2552
2655
|
* @see https://tailwindcss.com/docs/outline-color
|
|
2553
2656
|
*/
|
|
2554
2657
|
"outline-color": [{
|
|
2555
|
-
outline:
|
|
2658
|
+
outline: scaleColor()
|
|
2659
|
+
}],
|
|
2660
|
+
// ---------------
|
|
2661
|
+
// --- Effects ---
|
|
2662
|
+
// ---------------
|
|
2663
|
+
/**
|
|
2664
|
+
* Box Shadow
|
|
2665
|
+
* @see https://tailwindcss.com/docs/box-shadow
|
|
2666
|
+
*/
|
|
2667
|
+
shadow: [{
|
|
2668
|
+
shadow: [
|
|
2669
|
+
// Deprecated since Tailwind CSS v4.0.0
|
|
2670
|
+
"",
|
|
2671
|
+
"none",
|
|
2672
|
+
themeShadow,
|
|
2673
|
+
isArbitraryVariableShadow,
|
|
2674
|
+
isArbitraryShadow
|
|
2675
|
+
]
|
|
2676
|
+
}],
|
|
2677
|
+
/**
|
|
2678
|
+
* Box Shadow Color
|
|
2679
|
+
* @see https://tailwindcss.com/docs/box-shadow#setting-the-shadow-color
|
|
2680
|
+
*/
|
|
2681
|
+
"shadow-color": [{
|
|
2682
|
+
shadow: scaleColor()
|
|
2683
|
+
}],
|
|
2684
|
+
/**
|
|
2685
|
+
* Inset Box Shadow
|
|
2686
|
+
* @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-shadow
|
|
2687
|
+
*/
|
|
2688
|
+
"inset-shadow": [{
|
|
2689
|
+
"inset-shadow": ["none", themeInsetShadow, isArbitraryVariableShadow, isArbitraryShadow]
|
|
2690
|
+
}],
|
|
2691
|
+
/**
|
|
2692
|
+
* Inset Box Shadow Color
|
|
2693
|
+
* @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-shadow-color
|
|
2694
|
+
*/
|
|
2695
|
+
"inset-shadow-color": [{
|
|
2696
|
+
"inset-shadow": scaleColor()
|
|
2556
2697
|
}],
|
|
2557
2698
|
/**
|
|
2558
2699
|
* Ring Width
|
|
2559
|
-
* @see https://tailwindcss.com/docs/ring
|
|
2700
|
+
* @see https://tailwindcss.com/docs/box-shadow#adding-a-ring
|
|
2560
2701
|
*/
|
|
2561
2702
|
"ring-w": [{
|
|
2562
|
-
ring:
|
|
2703
|
+
ring: scaleBorderWidth()
|
|
2563
2704
|
}],
|
|
2564
2705
|
/**
|
|
2565
2706
|
* Ring Width Inset
|
|
2566
|
-
* @see https://tailwindcss.com/docs/ring-width
|
|
2707
|
+
* @see https://v3.tailwindcss.com/docs/ring-width#inset-rings
|
|
2708
|
+
* @deprecated since Tailwind CSS v4.0.0
|
|
2709
|
+
* @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
|
|
2567
2710
|
*/
|
|
2568
2711
|
"ring-w-inset": ["ring-inset"],
|
|
2569
2712
|
/**
|
|
2570
2713
|
* Ring Color
|
|
2571
|
-
* @see https://tailwindcss.com/docs/ring-color
|
|
2714
|
+
* @see https://tailwindcss.com/docs/box-shadow#setting-the-ring-color
|
|
2572
2715
|
*/
|
|
2573
2716
|
"ring-color": [{
|
|
2574
|
-
ring:
|
|
2575
|
-
}],
|
|
2576
|
-
/**
|
|
2577
|
-
* Ring Opacity
|
|
2578
|
-
* @see https://tailwindcss.com/docs/ring-opacity
|
|
2579
|
-
*/
|
|
2580
|
-
"ring-opacity": [{
|
|
2581
|
-
"ring-opacity": [opacity]
|
|
2717
|
+
ring: scaleColor()
|
|
2582
2718
|
}],
|
|
2583
2719
|
/**
|
|
2584
2720
|
* Ring Offset Width
|
|
2585
|
-
* @see https://tailwindcss.com/docs/ring-offset-width
|
|
2721
|
+
* @see https://v3.tailwindcss.com/docs/ring-offset-width
|
|
2722
|
+
* @deprecated since Tailwind CSS v4.0.0
|
|
2723
|
+
* @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
|
|
2586
2724
|
*/
|
|
2587
2725
|
"ring-offset-w": [{
|
|
2588
|
-
"ring-offset": [
|
|
2726
|
+
"ring-offset": [isNumber, isArbitraryLength]
|
|
2589
2727
|
}],
|
|
2590
2728
|
/**
|
|
2591
2729
|
* Ring Offset Color
|
|
2592
|
-
* @see https://tailwindcss.com/docs/ring-offset-color
|
|
2730
|
+
* @see https://v3.tailwindcss.com/docs/ring-offset-color
|
|
2731
|
+
* @deprecated since Tailwind CSS v4.0.0
|
|
2732
|
+
* @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
|
|
2593
2733
|
*/
|
|
2594
2734
|
"ring-offset-color": [{
|
|
2595
|
-
"ring-offset":
|
|
2735
|
+
"ring-offset": scaleColor()
|
|
2596
2736
|
}],
|
|
2597
|
-
// Effects
|
|
2598
2737
|
/**
|
|
2599
|
-
*
|
|
2600
|
-
* @see https://tailwindcss.com/docs/box-shadow
|
|
2738
|
+
* Inset Ring Width
|
|
2739
|
+
* @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-ring
|
|
2601
2740
|
*/
|
|
2602
|
-
|
|
2603
|
-
|
|
2741
|
+
"inset-ring-w": [{
|
|
2742
|
+
"inset-ring": scaleBorderWidth()
|
|
2604
2743
|
}],
|
|
2605
2744
|
/**
|
|
2606
|
-
*
|
|
2607
|
-
* @see https://tailwindcss.com/docs/box-shadow-color
|
|
2745
|
+
* Inset Ring Color
|
|
2746
|
+
* @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-ring-color
|
|
2608
2747
|
*/
|
|
2609
|
-
"
|
|
2610
|
-
|
|
2748
|
+
"inset-ring-color": [{
|
|
2749
|
+
"inset-ring": scaleColor()
|
|
2750
|
+
}],
|
|
2751
|
+
/**
|
|
2752
|
+
* Text Shadow
|
|
2753
|
+
* @see https://tailwindcss.com/docs/text-shadow
|
|
2754
|
+
*/
|
|
2755
|
+
"text-shadow": [{
|
|
2756
|
+
"text-shadow": ["none", themeTextShadow, isArbitraryVariableShadow, isArbitraryShadow]
|
|
2757
|
+
}],
|
|
2758
|
+
/**
|
|
2759
|
+
* Text Shadow Color
|
|
2760
|
+
* @see https://tailwindcss.com/docs/text-shadow#setting-the-shadow-color
|
|
2761
|
+
*/
|
|
2762
|
+
"text-shadow-color": [{
|
|
2763
|
+
"text-shadow": scaleColor()
|
|
2611
2764
|
}],
|
|
2612
2765
|
/**
|
|
2613
2766
|
* Opacity
|
|
2614
2767
|
* @see https://tailwindcss.com/docs/opacity
|
|
2615
2768
|
*/
|
|
2616
2769
|
opacity: [{
|
|
2617
|
-
opacity: [
|
|
2770
|
+
opacity: [isNumber, isArbitraryVariable, isArbitraryValue]
|
|
2618
2771
|
}],
|
|
2619
2772
|
/**
|
|
2620
2773
|
* Mix Blend Mode
|
|
2621
2774
|
* @see https://tailwindcss.com/docs/mix-blend-mode
|
|
2622
2775
|
*/
|
|
2623
2776
|
"mix-blend": [{
|
|
2624
|
-
"mix-blend": [...
|
|
2777
|
+
"mix-blend": [...scaleBlendMode(), "plus-darker", "plus-lighter"]
|
|
2625
2778
|
}],
|
|
2626
2779
|
/**
|
|
2627
2780
|
* Background Blend Mode
|
|
2628
2781
|
* @see https://tailwindcss.com/docs/background-blend-mode
|
|
2629
2782
|
*/
|
|
2630
2783
|
"bg-blend": [{
|
|
2631
|
-
"bg-blend":
|
|
2784
|
+
"bg-blend": scaleBlendMode()
|
|
2785
|
+
}],
|
|
2786
|
+
/**
|
|
2787
|
+
* Mask Clip
|
|
2788
|
+
* @see https://tailwindcss.com/docs/mask-clip
|
|
2789
|
+
*/
|
|
2790
|
+
"mask-clip": [{
|
|
2791
|
+
"mask-clip": ["border", "padding", "content", "fill", "stroke", "view"]
|
|
2792
|
+
}, "mask-no-clip"],
|
|
2793
|
+
/**
|
|
2794
|
+
* Mask Composite
|
|
2795
|
+
* @see https://tailwindcss.com/docs/mask-composite
|
|
2796
|
+
*/
|
|
2797
|
+
"mask-composite": [{
|
|
2798
|
+
mask: ["add", "subtract", "intersect", "exclude"]
|
|
2799
|
+
}],
|
|
2800
|
+
/**
|
|
2801
|
+
* Mask Image
|
|
2802
|
+
* @see https://tailwindcss.com/docs/mask-image
|
|
2803
|
+
*/
|
|
2804
|
+
"mask-image-linear-pos": [{
|
|
2805
|
+
"mask-linear": [isNumber]
|
|
2806
|
+
}],
|
|
2807
|
+
"mask-image-linear-from-pos": [{
|
|
2808
|
+
"mask-linear-from": scaleMaskImagePosition()
|
|
2809
|
+
}],
|
|
2810
|
+
"mask-image-linear-to-pos": [{
|
|
2811
|
+
"mask-linear-to": scaleMaskImagePosition()
|
|
2812
|
+
}],
|
|
2813
|
+
"mask-image-linear-from-color": [{
|
|
2814
|
+
"mask-linear-from": scaleColor()
|
|
2815
|
+
}],
|
|
2816
|
+
"mask-image-linear-to-color": [{
|
|
2817
|
+
"mask-linear-to": scaleColor()
|
|
2818
|
+
}],
|
|
2819
|
+
"mask-image-t-from-pos": [{
|
|
2820
|
+
"mask-t-from": scaleMaskImagePosition()
|
|
2821
|
+
}],
|
|
2822
|
+
"mask-image-t-to-pos": [{
|
|
2823
|
+
"mask-t-to": scaleMaskImagePosition()
|
|
2824
|
+
}],
|
|
2825
|
+
"mask-image-t-from-color": [{
|
|
2826
|
+
"mask-t-from": scaleColor()
|
|
2827
|
+
}],
|
|
2828
|
+
"mask-image-t-to-color": [{
|
|
2829
|
+
"mask-t-to": scaleColor()
|
|
2830
|
+
}],
|
|
2831
|
+
"mask-image-r-from-pos": [{
|
|
2832
|
+
"mask-r-from": scaleMaskImagePosition()
|
|
2833
|
+
}],
|
|
2834
|
+
"mask-image-r-to-pos": [{
|
|
2835
|
+
"mask-r-to": scaleMaskImagePosition()
|
|
2836
|
+
}],
|
|
2837
|
+
"mask-image-r-from-color": [{
|
|
2838
|
+
"mask-r-from": scaleColor()
|
|
2839
|
+
}],
|
|
2840
|
+
"mask-image-r-to-color": [{
|
|
2841
|
+
"mask-r-to": scaleColor()
|
|
2842
|
+
}],
|
|
2843
|
+
"mask-image-b-from-pos": [{
|
|
2844
|
+
"mask-b-from": scaleMaskImagePosition()
|
|
2845
|
+
}],
|
|
2846
|
+
"mask-image-b-to-pos": [{
|
|
2847
|
+
"mask-b-to": scaleMaskImagePosition()
|
|
2848
|
+
}],
|
|
2849
|
+
"mask-image-b-from-color": [{
|
|
2850
|
+
"mask-b-from": scaleColor()
|
|
2851
|
+
}],
|
|
2852
|
+
"mask-image-b-to-color": [{
|
|
2853
|
+
"mask-b-to": scaleColor()
|
|
2854
|
+
}],
|
|
2855
|
+
"mask-image-l-from-pos": [{
|
|
2856
|
+
"mask-l-from": scaleMaskImagePosition()
|
|
2857
|
+
}],
|
|
2858
|
+
"mask-image-l-to-pos": [{
|
|
2859
|
+
"mask-l-to": scaleMaskImagePosition()
|
|
2860
|
+
}],
|
|
2861
|
+
"mask-image-l-from-color": [{
|
|
2862
|
+
"mask-l-from": scaleColor()
|
|
2863
|
+
}],
|
|
2864
|
+
"mask-image-l-to-color": [{
|
|
2865
|
+
"mask-l-to": scaleColor()
|
|
2866
|
+
}],
|
|
2867
|
+
"mask-image-x-from-pos": [{
|
|
2868
|
+
"mask-x-from": scaleMaskImagePosition()
|
|
2869
|
+
}],
|
|
2870
|
+
"mask-image-x-to-pos": [{
|
|
2871
|
+
"mask-x-to": scaleMaskImagePosition()
|
|
2872
|
+
}],
|
|
2873
|
+
"mask-image-x-from-color": [{
|
|
2874
|
+
"mask-x-from": scaleColor()
|
|
2875
|
+
}],
|
|
2876
|
+
"mask-image-x-to-color": [{
|
|
2877
|
+
"mask-x-to": scaleColor()
|
|
2878
|
+
}],
|
|
2879
|
+
"mask-image-y-from-pos": [{
|
|
2880
|
+
"mask-y-from": scaleMaskImagePosition()
|
|
2881
|
+
}],
|
|
2882
|
+
"mask-image-y-to-pos": [{
|
|
2883
|
+
"mask-y-to": scaleMaskImagePosition()
|
|
2884
|
+
}],
|
|
2885
|
+
"mask-image-y-from-color": [{
|
|
2886
|
+
"mask-y-from": scaleColor()
|
|
2887
|
+
}],
|
|
2888
|
+
"mask-image-y-to-color": [{
|
|
2889
|
+
"mask-y-to": scaleColor()
|
|
2890
|
+
}],
|
|
2891
|
+
"mask-image-radial": [{
|
|
2892
|
+
"mask-radial": [isArbitraryVariable, isArbitraryValue]
|
|
2893
|
+
}],
|
|
2894
|
+
"mask-image-radial-from-pos": [{
|
|
2895
|
+
"mask-radial-from": scaleMaskImagePosition()
|
|
2896
|
+
}],
|
|
2897
|
+
"mask-image-radial-to-pos": [{
|
|
2898
|
+
"mask-radial-to": scaleMaskImagePosition()
|
|
2899
|
+
}],
|
|
2900
|
+
"mask-image-radial-from-color": [{
|
|
2901
|
+
"mask-radial-from": scaleColor()
|
|
2902
|
+
}],
|
|
2903
|
+
"mask-image-radial-to-color": [{
|
|
2904
|
+
"mask-radial-to": scaleColor()
|
|
2905
|
+
}],
|
|
2906
|
+
"mask-image-radial-shape": [{
|
|
2907
|
+
"mask-radial": ["circle", "ellipse"]
|
|
2908
|
+
}],
|
|
2909
|
+
"mask-image-radial-size": [{
|
|
2910
|
+
"mask-radial": [{
|
|
2911
|
+
closest: ["side", "corner"],
|
|
2912
|
+
farthest: ["side", "corner"]
|
|
2913
|
+
}]
|
|
2914
|
+
}],
|
|
2915
|
+
"mask-image-radial-pos": [{
|
|
2916
|
+
"mask-radial-at": scalePosition()
|
|
2917
|
+
}],
|
|
2918
|
+
"mask-image-conic-pos": [{
|
|
2919
|
+
"mask-conic": [isNumber]
|
|
2920
|
+
}],
|
|
2921
|
+
"mask-image-conic-from-pos": [{
|
|
2922
|
+
"mask-conic-from": scaleMaskImagePosition()
|
|
2923
|
+
}],
|
|
2924
|
+
"mask-image-conic-to-pos": [{
|
|
2925
|
+
"mask-conic-to": scaleMaskImagePosition()
|
|
2926
|
+
}],
|
|
2927
|
+
"mask-image-conic-from-color": [{
|
|
2928
|
+
"mask-conic-from": scaleColor()
|
|
2929
|
+
}],
|
|
2930
|
+
"mask-image-conic-to-color": [{
|
|
2931
|
+
"mask-conic-to": scaleColor()
|
|
2932
|
+
}],
|
|
2933
|
+
/**
|
|
2934
|
+
* Mask Mode
|
|
2935
|
+
* @see https://tailwindcss.com/docs/mask-mode
|
|
2936
|
+
*/
|
|
2937
|
+
"mask-mode": [{
|
|
2938
|
+
mask: ["alpha", "luminance", "match"]
|
|
2939
|
+
}],
|
|
2940
|
+
/**
|
|
2941
|
+
* Mask Origin
|
|
2942
|
+
* @see https://tailwindcss.com/docs/mask-origin
|
|
2943
|
+
*/
|
|
2944
|
+
"mask-origin": [{
|
|
2945
|
+
"mask-origin": ["border", "padding", "content", "fill", "stroke", "view"]
|
|
2946
|
+
}],
|
|
2947
|
+
/**
|
|
2948
|
+
* Mask Position
|
|
2949
|
+
* @see https://tailwindcss.com/docs/mask-position
|
|
2950
|
+
*/
|
|
2951
|
+
"mask-position": [{
|
|
2952
|
+
mask: scaleBgPosition()
|
|
2632
2953
|
}],
|
|
2633
|
-
|
|
2954
|
+
/**
|
|
2955
|
+
* Mask Repeat
|
|
2956
|
+
* @see https://tailwindcss.com/docs/mask-repeat
|
|
2957
|
+
*/
|
|
2958
|
+
"mask-repeat": [{
|
|
2959
|
+
mask: scaleBgRepeat()
|
|
2960
|
+
}],
|
|
2961
|
+
/**
|
|
2962
|
+
* Mask Size
|
|
2963
|
+
* @see https://tailwindcss.com/docs/mask-size
|
|
2964
|
+
*/
|
|
2965
|
+
"mask-size": [{
|
|
2966
|
+
mask: scaleBgSize()
|
|
2967
|
+
}],
|
|
2968
|
+
/**
|
|
2969
|
+
* Mask Type
|
|
2970
|
+
* @see https://tailwindcss.com/docs/mask-type
|
|
2971
|
+
*/
|
|
2972
|
+
"mask-type": [{
|
|
2973
|
+
"mask-type": ["alpha", "luminance"]
|
|
2974
|
+
}],
|
|
2975
|
+
/**
|
|
2976
|
+
* Mask Image
|
|
2977
|
+
* @see https://tailwindcss.com/docs/mask-image
|
|
2978
|
+
*/
|
|
2979
|
+
"mask-image": [{
|
|
2980
|
+
mask: ["none", isArbitraryVariable, isArbitraryValue]
|
|
2981
|
+
}],
|
|
2982
|
+
// ---------------
|
|
2983
|
+
// --- Filters ---
|
|
2984
|
+
// ---------------
|
|
2634
2985
|
/**
|
|
2635
2986
|
* Filter
|
|
2636
|
-
* @deprecated since Tailwind CSS v3.0.0
|
|
2637
2987
|
* @see https://tailwindcss.com/docs/filter
|
|
2638
2988
|
*/
|
|
2639
2989
|
filter: [{
|
|
2640
|
-
filter: [
|
|
2990
|
+
filter: [
|
|
2991
|
+
// Deprecated since Tailwind CSS v3.0.0
|
|
2992
|
+
"",
|
|
2993
|
+
"none",
|
|
2994
|
+
isArbitraryVariable,
|
|
2995
|
+
isArbitraryValue
|
|
2996
|
+
]
|
|
2641
2997
|
}],
|
|
2642
2998
|
/**
|
|
2643
2999
|
* Blur
|
|
2644
3000
|
* @see https://tailwindcss.com/docs/blur
|
|
2645
3001
|
*/
|
|
2646
3002
|
blur: [{
|
|
2647
|
-
blur:
|
|
3003
|
+
blur: scaleBlur()
|
|
2648
3004
|
}],
|
|
2649
3005
|
/**
|
|
2650
3006
|
* Brightness
|
|
2651
3007
|
* @see https://tailwindcss.com/docs/brightness
|
|
2652
3008
|
*/
|
|
2653
3009
|
brightness: [{
|
|
2654
|
-
brightness: [
|
|
3010
|
+
brightness: [isNumber, isArbitraryVariable, isArbitraryValue]
|
|
2655
3011
|
}],
|
|
2656
3012
|
/**
|
|
2657
3013
|
* Contrast
|
|
2658
3014
|
* @see https://tailwindcss.com/docs/contrast
|
|
2659
3015
|
*/
|
|
2660
3016
|
contrast: [{
|
|
2661
|
-
contrast: [
|
|
3017
|
+
contrast: [isNumber, isArbitraryVariable, isArbitraryValue]
|
|
2662
3018
|
}],
|
|
2663
3019
|
/**
|
|
2664
3020
|
* Drop Shadow
|
|
2665
3021
|
* @see https://tailwindcss.com/docs/drop-shadow
|
|
2666
3022
|
*/
|
|
2667
3023
|
"drop-shadow": [{
|
|
2668
|
-
"drop-shadow": [
|
|
3024
|
+
"drop-shadow": [
|
|
3025
|
+
// Deprecated since Tailwind CSS v4.0.0
|
|
3026
|
+
"",
|
|
3027
|
+
"none",
|
|
3028
|
+
themeDropShadow,
|
|
3029
|
+
isArbitraryVariableShadow,
|
|
3030
|
+
isArbitraryShadow
|
|
3031
|
+
]
|
|
3032
|
+
}],
|
|
3033
|
+
/**
|
|
3034
|
+
* Drop Shadow Color
|
|
3035
|
+
* @see https://tailwindcss.com/docs/filter-drop-shadow#setting-the-shadow-color
|
|
3036
|
+
*/
|
|
3037
|
+
"drop-shadow-color": [{
|
|
3038
|
+
"drop-shadow": scaleColor()
|
|
2669
3039
|
}],
|
|
2670
3040
|
/**
|
|
2671
3041
|
* Grayscale
|
|
2672
3042
|
* @see https://tailwindcss.com/docs/grayscale
|
|
2673
3043
|
*/
|
|
2674
3044
|
grayscale: [{
|
|
2675
|
-
grayscale: [
|
|
3045
|
+
grayscale: ["", isNumber, isArbitraryVariable, isArbitraryValue]
|
|
2676
3046
|
}],
|
|
2677
3047
|
/**
|
|
2678
3048
|
* Hue Rotate
|
|
2679
3049
|
* @see https://tailwindcss.com/docs/hue-rotate
|
|
2680
3050
|
*/
|
|
2681
3051
|
"hue-rotate": [{
|
|
2682
|
-
"hue-rotate": [
|
|
3052
|
+
"hue-rotate": [isNumber, isArbitraryVariable, isArbitraryValue]
|
|
2683
3053
|
}],
|
|
2684
3054
|
/**
|
|
2685
3055
|
* Invert
|
|
2686
3056
|
* @see https://tailwindcss.com/docs/invert
|
|
2687
3057
|
*/
|
|
2688
3058
|
invert: [{
|
|
2689
|
-
invert: [
|
|
3059
|
+
invert: ["", isNumber, isArbitraryVariable, isArbitraryValue]
|
|
2690
3060
|
}],
|
|
2691
3061
|
/**
|
|
2692
3062
|
* Saturate
|
|
2693
3063
|
* @see https://tailwindcss.com/docs/saturate
|
|
2694
3064
|
*/
|
|
2695
3065
|
saturate: [{
|
|
2696
|
-
saturate: [
|
|
3066
|
+
saturate: [isNumber, isArbitraryVariable, isArbitraryValue]
|
|
2697
3067
|
}],
|
|
2698
3068
|
/**
|
|
2699
3069
|
* Sepia
|
|
2700
3070
|
* @see https://tailwindcss.com/docs/sepia
|
|
2701
3071
|
*/
|
|
2702
3072
|
sepia: [{
|
|
2703
|
-
sepia: [
|
|
3073
|
+
sepia: ["", isNumber, isArbitraryVariable, isArbitraryValue]
|
|
2704
3074
|
}],
|
|
2705
3075
|
/**
|
|
2706
3076
|
* Backdrop Filter
|
|
2707
|
-
* @deprecated since Tailwind CSS v3.0.0
|
|
2708
3077
|
* @see https://tailwindcss.com/docs/backdrop-filter
|
|
2709
3078
|
*/
|
|
2710
3079
|
"backdrop-filter": [{
|
|
2711
|
-
"backdrop-filter": [
|
|
3080
|
+
"backdrop-filter": [
|
|
3081
|
+
// Deprecated since Tailwind CSS v3.0.0
|
|
3082
|
+
"",
|
|
3083
|
+
"none",
|
|
3084
|
+
isArbitraryVariable,
|
|
3085
|
+
isArbitraryValue
|
|
3086
|
+
]
|
|
2712
3087
|
}],
|
|
2713
3088
|
/**
|
|
2714
3089
|
* Backdrop Blur
|
|
2715
3090
|
* @see https://tailwindcss.com/docs/backdrop-blur
|
|
2716
3091
|
*/
|
|
2717
3092
|
"backdrop-blur": [{
|
|
2718
|
-
"backdrop-blur":
|
|
3093
|
+
"backdrop-blur": scaleBlur()
|
|
2719
3094
|
}],
|
|
2720
3095
|
/**
|
|
2721
3096
|
* Backdrop Brightness
|
|
2722
3097
|
* @see https://tailwindcss.com/docs/backdrop-brightness
|
|
2723
3098
|
*/
|
|
2724
3099
|
"backdrop-brightness": [{
|
|
2725
|
-
"backdrop-brightness": [
|
|
3100
|
+
"backdrop-brightness": [isNumber, isArbitraryVariable, isArbitraryValue]
|
|
2726
3101
|
}],
|
|
2727
3102
|
/**
|
|
2728
3103
|
* Backdrop Contrast
|
|
2729
3104
|
* @see https://tailwindcss.com/docs/backdrop-contrast
|
|
2730
3105
|
*/
|
|
2731
3106
|
"backdrop-contrast": [{
|
|
2732
|
-
"backdrop-contrast": [
|
|
3107
|
+
"backdrop-contrast": [isNumber, isArbitraryVariable, isArbitraryValue]
|
|
2733
3108
|
}],
|
|
2734
3109
|
/**
|
|
2735
3110
|
* Backdrop Grayscale
|
|
2736
3111
|
* @see https://tailwindcss.com/docs/backdrop-grayscale
|
|
2737
3112
|
*/
|
|
2738
3113
|
"backdrop-grayscale": [{
|
|
2739
|
-
"backdrop-grayscale": [
|
|
3114
|
+
"backdrop-grayscale": ["", isNumber, isArbitraryVariable, isArbitraryValue]
|
|
2740
3115
|
}],
|
|
2741
3116
|
/**
|
|
2742
3117
|
* Backdrop Hue Rotate
|
|
2743
3118
|
* @see https://tailwindcss.com/docs/backdrop-hue-rotate
|
|
2744
3119
|
*/
|
|
2745
3120
|
"backdrop-hue-rotate": [{
|
|
2746
|
-
"backdrop-hue-rotate": [
|
|
3121
|
+
"backdrop-hue-rotate": [isNumber, isArbitraryVariable, isArbitraryValue]
|
|
2747
3122
|
}],
|
|
2748
3123
|
/**
|
|
2749
3124
|
* Backdrop Invert
|
|
2750
3125
|
* @see https://tailwindcss.com/docs/backdrop-invert
|
|
2751
3126
|
*/
|
|
2752
3127
|
"backdrop-invert": [{
|
|
2753
|
-
"backdrop-invert": [
|
|
3128
|
+
"backdrop-invert": ["", isNumber, isArbitraryVariable, isArbitraryValue]
|
|
2754
3129
|
}],
|
|
2755
3130
|
/**
|
|
2756
3131
|
* Backdrop Opacity
|
|
2757
3132
|
* @see https://tailwindcss.com/docs/backdrop-opacity
|
|
2758
3133
|
*/
|
|
2759
3134
|
"backdrop-opacity": [{
|
|
2760
|
-
"backdrop-opacity": [
|
|
3135
|
+
"backdrop-opacity": [isNumber, isArbitraryVariable, isArbitraryValue]
|
|
2761
3136
|
}],
|
|
2762
3137
|
/**
|
|
2763
3138
|
* Backdrop Saturate
|
|
2764
3139
|
* @see https://tailwindcss.com/docs/backdrop-saturate
|
|
2765
3140
|
*/
|
|
2766
3141
|
"backdrop-saturate": [{
|
|
2767
|
-
"backdrop-saturate": [
|
|
3142
|
+
"backdrop-saturate": [isNumber, isArbitraryVariable, isArbitraryValue]
|
|
2768
3143
|
}],
|
|
2769
3144
|
/**
|
|
2770
3145
|
* Backdrop Sepia
|
|
2771
3146
|
* @see https://tailwindcss.com/docs/backdrop-sepia
|
|
2772
3147
|
*/
|
|
2773
3148
|
"backdrop-sepia": [{
|
|
2774
|
-
"backdrop-sepia": [
|
|
3149
|
+
"backdrop-sepia": ["", isNumber, isArbitraryVariable, isArbitraryValue]
|
|
2775
3150
|
}],
|
|
2776
|
-
//
|
|
3151
|
+
// --------------
|
|
3152
|
+
// --- Tables ---
|
|
3153
|
+
// --------------
|
|
2777
3154
|
/**
|
|
2778
3155
|
* Border Collapse
|
|
2779
3156
|
* @see https://tailwindcss.com/docs/border-collapse
|
|
@@ -2786,21 +3163,21 @@ var getDefaultConfig = () => {
|
|
|
2786
3163
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
2787
3164
|
*/
|
|
2788
3165
|
"border-spacing": [{
|
|
2789
|
-
"border-spacing":
|
|
3166
|
+
"border-spacing": scaleUnambiguousSpacing()
|
|
2790
3167
|
}],
|
|
2791
3168
|
/**
|
|
2792
3169
|
* Border Spacing X
|
|
2793
3170
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
2794
3171
|
*/
|
|
2795
3172
|
"border-spacing-x": [{
|
|
2796
|
-
"border-spacing-x":
|
|
3173
|
+
"border-spacing-x": scaleUnambiguousSpacing()
|
|
2797
3174
|
}],
|
|
2798
3175
|
/**
|
|
2799
3176
|
* Border Spacing Y
|
|
2800
3177
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
2801
3178
|
*/
|
|
2802
3179
|
"border-spacing-y": [{
|
|
2803
|
-
"border-spacing-y":
|
|
3180
|
+
"border-spacing-y": scaleUnambiguousSpacing()
|
|
2804
3181
|
}],
|
|
2805
3182
|
/**
|
|
2806
3183
|
* Table Layout
|
|
@@ -2816,120 +3193,220 @@ var getDefaultConfig = () => {
|
|
|
2816
3193
|
caption: [{
|
|
2817
3194
|
caption: ["top", "bottom"]
|
|
2818
3195
|
}],
|
|
2819
|
-
//
|
|
3196
|
+
// ---------------------------------
|
|
3197
|
+
// --- Transitions and Animation ---
|
|
3198
|
+
// ---------------------------------
|
|
2820
3199
|
/**
|
|
2821
|
-
*
|
|
3200
|
+
* Transition Property
|
|
2822
3201
|
* @see https://tailwindcss.com/docs/transition-property
|
|
2823
3202
|
*/
|
|
2824
3203
|
transition: [{
|
|
2825
|
-
transition: ["
|
|
3204
|
+
transition: ["", "all", "colors", "opacity", "shadow", "transform", "none", isArbitraryVariable, isArbitraryValue]
|
|
3205
|
+
}],
|
|
3206
|
+
/**
|
|
3207
|
+
* Transition Behavior
|
|
3208
|
+
* @see https://tailwindcss.com/docs/transition-behavior
|
|
3209
|
+
*/
|
|
3210
|
+
"transition-behavior": [{
|
|
3211
|
+
transition: ["normal", "discrete"]
|
|
2826
3212
|
}],
|
|
2827
3213
|
/**
|
|
2828
3214
|
* Transition Duration
|
|
2829
3215
|
* @see https://tailwindcss.com/docs/transition-duration
|
|
2830
3216
|
*/
|
|
2831
3217
|
duration: [{
|
|
2832
|
-
duration:
|
|
3218
|
+
duration: [isNumber, "initial", isArbitraryVariable, isArbitraryValue]
|
|
2833
3219
|
}],
|
|
2834
3220
|
/**
|
|
2835
3221
|
* Transition Timing Function
|
|
2836
3222
|
* @see https://tailwindcss.com/docs/transition-timing-function
|
|
2837
3223
|
*/
|
|
2838
3224
|
ease: [{
|
|
2839
|
-
ease: ["linear", "
|
|
3225
|
+
ease: ["linear", "initial", themeEase, isArbitraryVariable, isArbitraryValue]
|
|
2840
3226
|
}],
|
|
2841
3227
|
/**
|
|
2842
3228
|
* Transition Delay
|
|
2843
3229
|
* @see https://tailwindcss.com/docs/transition-delay
|
|
2844
3230
|
*/
|
|
2845
3231
|
delay: [{
|
|
2846
|
-
delay:
|
|
3232
|
+
delay: [isNumber, isArbitraryVariable, isArbitraryValue]
|
|
2847
3233
|
}],
|
|
2848
3234
|
/**
|
|
2849
3235
|
* Animation
|
|
2850
3236
|
* @see https://tailwindcss.com/docs/animation
|
|
2851
3237
|
*/
|
|
2852
3238
|
animate: [{
|
|
2853
|
-
animate: ["none",
|
|
3239
|
+
animate: ["none", themeAnimate, isArbitraryVariable, isArbitraryValue]
|
|
2854
3240
|
}],
|
|
2855
|
-
//
|
|
3241
|
+
// ------------------
|
|
3242
|
+
// --- Transforms ---
|
|
3243
|
+
// ------------------
|
|
2856
3244
|
/**
|
|
2857
|
-
*
|
|
2858
|
-
* @see https://tailwindcss.com/docs/
|
|
3245
|
+
* Backface Visibility
|
|
3246
|
+
* @see https://tailwindcss.com/docs/backface-visibility
|
|
2859
3247
|
*/
|
|
2860
|
-
|
|
2861
|
-
|
|
3248
|
+
backface: [{
|
|
3249
|
+
backface: ["hidden", "visible"]
|
|
3250
|
+
}],
|
|
3251
|
+
/**
|
|
3252
|
+
* Perspective
|
|
3253
|
+
* @see https://tailwindcss.com/docs/perspective
|
|
3254
|
+
*/
|
|
3255
|
+
perspective: [{
|
|
3256
|
+
perspective: [themePerspective, isArbitraryVariable, isArbitraryValue]
|
|
3257
|
+
}],
|
|
3258
|
+
/**
|
|
3259
|
+
* Perspective Origin
|
|
3260
|
+
* @see https://tailwindcss.com/docs/perspective-origin
|
|
3261
|
+
*/
|
|
3262
|
+
"perspective-origin": [{
|
|
3263
|
+
"perspective-origin": scalePositionWithArbitrary()
|
|
3264
|
+
}],
|
|
3265
|
+
/**
|
|
3266
|
+
* Rotate
|
|
3267
|
+
* @see https://tailwindcss.com/docs/rotate
|
|
3268
|
+
*/
|
|
3269
|
+
rotate: [{
|
|
3270
|
+
rotate: scaleRotate()
|
|
3271
|
+
}],
|
|
3272
|
+
/**
|
|
3273
|
+
* Rotate X
|
|
3274
|
+
* @see https://tailwindcss.com/docs/rotate
|
|
3275
|
+
*/
|
|
3276
|
+
"rotate-x": [{
|
|
3277
|
+
"rotate-x": scaleRotate()
|
|
3278
|
+
}],
|
|
3279
|
+
/**
|
|
3280
|
+
* Rotate Y
|
|
3281
|
+
* @see https://tailwindcss.com/docs/rotate
|
|
3282
|
+
*/
|
|
3283
|
+
"rotate-y": [{
|
|
3284
|
+
"rotate-y": scaleRotate()
|
|
3285
|
+
}],
|
|
3286
|
+
/**
|
|
3287
|
+
* Rotate Z
|
|
3288
|
+
* @see https://tailwindcss.com/docs/rotate
|
|
3289
|
+
*/
|
|
3290
|
+
"rotate-z": [{
|
|
3291
|
+
"rotate-z": scaleRotate()
|
|
2862
3292
|
}],
|
|
2863
3293
|
/**
|
|
2864
3294
|
* Scale
|
|
2865
3295
|
* @see https://tailwindcss.com/docs/scale
|
|
2866
3296
|
*/
|
|
2867
3297
|
scale: [{
|
|
2868
|
-
scale:
|
|
3298
|
+
scale: scaleScale()
|
|
2869
3299
|
}],
|
|
2870
3300
|
/**
|
|
2871
3301
|
* Scale X
|
|
2872
3302
|
* @see https://tailwindcss.com/docs/scale
|
|
2873
3303
|
*/
|
|
2874
3304
|
"scale-x": [{
|
|
2875
|
-
"scale-x":
|
|
3305
|
+
"scale-x": scaleScale()
|
|
2876
3306
|
}],
|
|
2877
3307
|
/**
|
|
2878
3308
|
* Scale Y
|
|
2879
3309
|
* @see https://tailwindcss.com/docs/scale
|
|
2880
3310
|
*/
|
|
2881
3311
|
"scale-y": [{
|
|
2882
|
-
"scale-y":
|
|
3312
|
+
"scale-y": scaleScale()
|
|
2883
3313
|
}],
|
|
2884
3314
|
/**
|
|
2885
|
-
*
|
|
2886
|
-
* @see https://tailwindcss.com/docs/
|
|
3315
|
+
* Scale Z
|
|
3316
|
+
* @see https://tailwindcss.com/docs/scale
|
|
2887
3317
|
*/
|
|
2888
|
-
|
|
2889
|
-
|
|
3318
|
+
"scale-z": [{
|
|
3319
|
+
"scale-z": scaleScale()
|
|
2890
3320
|
}],
|
|
2891
3321
|
/**
|
|
2892
|
-
*
|
|
2893
|
-
* @see https://tailwindcss.com/docs/
|
|
3322
|
+
* Scale 3D
|
|
3323
|
+
* @see https://tailwindcss.com/docs/scale
|
|
2894
3324
|
*/
|
|
2895
|
-
"
|
|
2896
|
-
"translate-x": [translate]
|
|
2897
|
-
}],
|
|
3325
|
+
"scale-3d": ["scale-3d"],
|
|
2898
3326
|
/**
|
|
2899
|
-
*
|
|
2900
|
-
* @see https://tailwindcss.com/docs/
|
|
3327
|
+
* Skew
|
|
3328
|
+
* @see https://tailwindcss.com/docs/skew
|
|
2901
3329
|
*/
|
|
2902
|
-
|
|
2903
|
-
|
|
3330
|
+
skew: [{
|
|
3331
|
+
skew: scaleSkew()
|
|
2904
3332
|
}],
|
|
2905
3333
|
/**
|
|
2906
3334
|
* Skew X
|
|
2907
3335
|
* @see https://tailwindcss.com/docs/skew
|
|
2908
3336
|
*/
|
|
2909
3337
|
"skew-x": [{
|
|
2910
|
-
"skew-x":
|
|
3338
|
+
"skew-x": scaleSkew()
|
|
2911
3339
|
}],
|
|
2912
3340
|
/**
|
|
2913
3341
|
* Skew Y
|
|
2914
3342
|
* @see https://tailwindcss.com/docs/skew
|
|
2915
3343
|
*/
|
|
2916
3344
|
"skew-y": [{
|
|
2917
|
-
"skew-y":
|
|
3345
|
+
"skew-y": scaleSkew()
|
|
3346
|
+
}],
|
|
3347
|
+
/**
|
|
3348
|
+
* Transform
|
|
3349
|
+
* @see https://tailwindcss.com/docs/transform
|
|
3350
|
+
*/
|
|
3351
|
+
transform: [{
|
|
3352
|
+
transform: [isArbitraryVariable, isArbitraryValue, "", "none", "gpu", "cpu"]
|
|
2918
3353
|
}],
|
|
2919
3354
|
/**
|
|
2920
3355
|
* Transform Origin
|
|
2921
3356
|
* @see https://tailwindcss.com/docs/transform-origin
|
|
2922
3357
|
*/
|
|
2923
3358
|
"transform-origin": [{
|
|
2924
|
-
origin:
|
|
3359
|
+
origin: scalePositionWithArbitrary()
|
|
3360
|
+
}],
|
|
3361
|
+
/**
|
|
3362
|
+
* Transform Style
|
|
3363
|
+
* @see https://tailwindcss.com/docs/transform-style
|
|
3364
|
+
*/
|
|
3365
|
+
"transform-style": [{
|
|
3366
|
+
transform: ["3d", "flat"]
|
|
3367
|
+
}],
|
|
3368
|
+
/**
|
|
3369
|
+
* Translate
|
|
3370
|
+
* @see https://tailwindcss.com/docs/translate
|
|
3371
|
+
*/
|
|
3372
|
+
translate: [{
|
|
3373
|
+
translate: scaleTranslate()
|
|
3374
|
+
}],
|
|
3375
|
+
/**
|
|
3376
|
+
* Translate X
|
|
3377
|
+
* @see https://tailwindcss.com/docs/translate
|
|
3378
|
+
*/
|
|
3379
|
+
"translate-x": [{
|
|
3380
|
+
"translate-x": scaleTranslate()
|
|
3381
|
+
}],
|
|
3382
|
+
/**
|
|
3383
|
+
* Translate Y
|
|
3384
|
+
* @see https://tailwindcss.com/docs/translate
|
|
3385
|
+
*/
|
|
3386
|
+
"translate-y": [{
|
|
3387
|
+
"translate-y": scaleTranslate()
|
|
2925
3388
|
}],
|
|
2926
|
-
|
|
3389
|
+
/**
|
|
3390
|
+
* Translate Z
|
|
3391
|
+
* @see https://tailwindcss.com/docs/translate
|
|
3392
|
+
*/
|
|
3393
|
+
"translate-z": [{
|
|
3394
|
+
"translate-z": scaleTranslate()
|
|
3395
|
+
}],
|
|
3396
|
+
/**
|
|
3397
|
+
* Translate None
|
|
3398
|
+
* @see https://tailwindcss.com/docs/translate
|
|
3399
|
+
*/
|
|
3400
|
+
"translate-none": ["translate-none"],
|
|
3401
|
+
// ---------------------
|
|
3402
|
+
// --- Interactivity ---
|
|
3403
|
+
// ---------------------
|
|
2927
3404
|
/**
|
|
2928
3405
|
* Accent Color
|
|
2929
3406
|
* @see https://tailwindcss.com/docs/accent-color
|
|
2930
3407
|
*/
|
|
2931
3408
|
accent: [{
|
|
2932
|
-
accent:
|
|
3409
|
+
accent: scaleColor()
|
|
2933
3410
|
}],
|
|
2934
3411
|
/**
|
|
2935
3412
|
* Appearance
|
|
@@ -2938,33 +3415,47 @@ var getDefaultConfig = () => {
|
|
|
2938
3415
|
appearance: [{
|
|
2939
3416
|
appearance: ["none", "auto"]
|
|
2940
3417
|
}],
|
|
3418
|
+
/**
|
|
3419
|
+
* Caret Color
|
|
3420
|
+
* @see https://tailwindcss.com/docs/just-in-time-mode#caret-color-utilities
|
|
3421
|
+
*/
|
|
3422
|
+
"caret-color": [{
|
|
3423
|
+
caret: scaleColor()
|
|
3424
|
+
}],
|
|
3425
|
+
/**
|
|
3426
|
+
* Color Scheme
|
|
3427
|
+
* @see https://tailwindcss.com/docs/color-scheme
|
|
3428
|
+
*/
|
|
3429
|
+
"color-scheme": [{
|
|
3430
|
+
scheme: ["normal", "dark", "light", "light-dark", "only-dark", "only-light"]
|
|
3431
|
+
}],
|
|
2941
3432
|
/**
|
|
2942
3433
|
* Cursor
|
|
2943
3434
|
* @see https://tailwindcss.com/docs/cursor
|
|
2944
3435
|
*/
|
|
2945
3436
|
cursor: [{
|
|
2946
|
-
cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", isArbitraryValue]
|
|
3437
|
+
cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", isArbitraryVariable, isArbitraryValue]
|
|
2947
3438
|
}],
|
|
2948
3439
|
/**
|
|
2949
|
-
*
|
|
2950
|
-
* @see https://tailwindcss.com/docs/
|
|
3440
|
+
* Field Sizing
|
|
3441
|
+
* @see https://tailwindcss.com/docs/field-sizing
|
|
2951
3442
|
*/
|
|
2952
|
-
"
|
|
2953
|
-
|
|
3443
|
+
"field-sizing": [{
|
|
3444
|
+
"field-sizing": ["fixed", "content"]
|
|
2954
3445
|
}],
|
|
2955
3446
|
/**
|
|
2956
3447
|
* Pointer Events
|
|
2957
3448
|
* @see https://tailwindcss.com/docs/pointer-events
|
|
2958
3449
|
*/
|
|
2959
3450
|
"pointer-events": [{
|
|
2960
|
-
"pointer-events": ["
|
|
3451
|
+
"pointer-events": ["auto", "none"]
|
|
2961
3452
|
}],
|
|
2962
3453
|
/**
|
|
2963
3454
|
* Resize
|
|
2964
3455
|
* @see https://tailwindcss.com/docs/resize
|
|
2965
3456
|
*/
|
|
2966
3457
|
resize: [{
|
|
2967
|
-
resize: ["none", "
|
|
3458
|
+
resize: ["none", "", "y", "x"]
|
|
2968
3459
|
}],
|
|
2969
3460
|
/**
|
|
2970
3461
|
* Scroll Behavior
|
|
@@ -2978,126 +3469,126 @@ var getDefaultConfig = () => {
|
|
|
2978
3469
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2979
3470
|
*/
|
|
2980
3471
|
"scroll-m": [{
|
|
2981
|
-
"scroll-m":
|
|
3472
|
+
"scroll-m": scaleUnambiguousSpacing()
|
|
2982
3473
|
}],
|
|
2983
3474
|
/**
|
|
2984
3475
|
* Scroll Margin X
|
|
2985
3476
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2986
3477
|
*/
|
|
2987
3478
|
"scroll-mx": [{
|
|
2988
|
-
"scroll-mx":
|
|
3479
|
+
"scroll-mx": scaleUnambiguousSpacing()
|
|
2989
3480
|
}],
|
|
2990
3481
|
/**
|
|
2991
3482
|
* Scroll Margin Y
|
|
2992
3483
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2993
3484
|
*/
|
|
2994
3485
|
"scroll-my": [{
|
|
2995
|
-
"scroll-my":
|
|
3486
|
+
"scroll-my": scaleUnambiguousSpacing()
|
|
2996
3487
|
}],
|
|
2997
3488
|
/**
|
|
2998
3489
|
* Scroll Margin Start
|
|
2999
3490
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3000
3491
|
*/
|
|
3001
3492
|
"scroll-ms": [{
|
|
3002
|
-
"scroll-ms":
|
|
3493
|
+
"scroll-ms": scaleUnambiguousSpacing()
|
|
3003
3494
|
}],
|
|
3004
3495
|
/**
|
|
3005
3496
|
* Scroll Margin End
|
|
3006
3497
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3007
3498
|
*/
|
|
3008
3499
|
"scroll-me": [{
|
|
3009
|
-
"scroll-me":
|
|
3500
|
+
"scroll-me": scaleUnambiguousSpacing()
|
|
3010
3501
|
}],
|
|
3011
3502
|
/**
|
|
3012
3503
|
* Scroll Margin Top
|
|
3013
3504
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3014
3505
|
*/
|
|
3015
3506
|
"scroll-mt": [{
|
|
3016
|
-
"scroll-mt":
|
|
3507
|
+
"scroll-mt": scaleUnambiguousSpacing()
|
|
3017
3508
|
}],
|
|
3018
3509
|
/**
|
|
3019
3510
|
* Scroll Margin Right
|
|
3020
3511
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3021
3512
|
*/
|
|
3022
3513
|
"scroll-mr": [{
|
|
3023
|
-
"scroll-mr":
|
|
3514
|
+
"scroll-mr": scaleUnambiguousSpacing()
|
|
3024
3515
|
}],
|
|
3025
3516
|
/**
|
|
3026
3517
|
* Scroll Margin Bottom
|
|
3027
3518
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3028
3519
|
*/
|
|
3029
3520
|
"scroll-mb": [{
|
|
3030
|
-
"scroll-mb":
|
|
3521
|
+
"scroll-mb": scaleUnambiguousSpacing()
|
|
3031
3522
|
}],
|
|
3032
3523
|
/**
|
|
3033
3524
|
* Scroll Margin Left
|
|
3034
3525
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3035
3526
|
*/
|
|
3036
3527
|
"scroll-ml": [{
|
|
3037
|
-
"scroll-ml":
|
|
3528
|
+
"scroll-ml": scaleUnambiguousSpacing()
|
|
3038
3529
|
}],
|
|
3039
3530
|
/**
|
|
3040
3531
|
* Scroll Padding
|
|
3041
3532
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3042
3533
|
*/
|
|
3043
3534
|
"scroll-p": [{
|
|
3044
|
-
"scroll-p":
|
|
3535
|
+
"scroll-p": scaleUnambiguousSpacing()
|
|
3045
3536
|
}],
|
|
3046
3537
|
/**
|
|
3047
3538
|
* Scroll Padding X
|
|
3048
3539
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3049
3540
|
*/
|
|
3050
3541
|
"scroll-px": [{
|
|
3051
|
-
"scroll-px":
|
|
3542
|
+
"scroll-px": scaleUnambiguousSpacing()
|
|
3052
3543
|
}],
|
|
3053
3544
|
/**
|
|
3054
3545
|
* Scroll Padding Y
|
|
3055
3546
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3056
3547
|
*/
|
|
3057
3548
|
"scroll-py": [{
|
|
3058
|
-
"scroll-py":
|
|
3549
|
+
"scroll-py": scaleUnambiguousSpacing()
|
|
3059
3550
|
}],
|
|
3060
3551
|
/**
|
|
3061
3552
|
* Scroll Padding Start
|
|
3062
3553
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3063
3554
|
*/
|
|
3064
3555
|
"scroll-ps": [{
|
|
3065
|
-
"scroll-ps":
|
|
3556
|
+
"scroll-ps": scaleUnambiguousSpacing()
|
|
3066
3557
|
}],
|
|
3067
3558
|
/**
|
|
3068
3559
|
* Scroll Padding End
|
|
3069
3560
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3070
3561
|
*/
|
|
3071
3562
|
"scroll-pe": [{
|
|
3072
|
-
"scroll-pe":
|
|
3563
|
+
"scroll-pe": scaleUnambiguousSpacing()
|
|
3073
3564
|
}],
|
|
3074
3565
|
/**
|
|
3075
3566
|
* Scroll Padding Top
|
|
3076
3567
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3077
3568
|
*/
|
|
3078
3569
|
"scroll-pt": [{
|
|
3079
|
-
"scroll-pt":
|
|
3570
|
+
"scroll-pt": scaleUnambiguousSpacing()
|
|
3080
3571
|
}],
|
|
3081
3572
|
/**
|
|
3082
3573
|
* Scroll Padding Right
|
|
3083
3574
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3084
3575
|
*/
|
|
3085
3576
|
"scroll-pr": [{
|
|
3086
|
-
"scroll-pr":
|
|
3577
|
+
"scroll-pr": scaleUnambiguousSpacing()
|
|
3087
3578
|
}],
|
|
3088
3579
|
/**
|
|
3089
3580
|
* Scroll Padding Bottom
|
|
3090
3581
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3091
3582
|
*/
|
|
3092
3583
|
"scroll-pb": [{
|
|
3093
|
-
"scroll-pb":
|
|
3584
|
+
"scroll-pb": scaleUnambiguousSpacing()
|
|
3094
3585
|
}],
|
|
3095
3586
|
/**
|
|
3096
3587
|
* Scroll Padding Left
|
|
3097
3588
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3098
3589
|
*/
|
|
3099
3590
|
"scroll-pl": [{
|
|
3100
|
-
"scroll-pl":
|
|
3591
|
+
"scroll-pl": scaleUnambiguousSpacing()
|
|
3101
3592
|
}],
|
|
3102
3593
|
/**
|
|
3103
3594
|
* Scroll Snap Align
|
|
@@ -3165,36 +3656,35 @@ var getDefaultConfig = () => {
|
|
|
3165
3656
|
* @see https://tailwindcss.com/docs/will-change
|
|
3166
3657
|
*/
|
|
3167
3658
|
"will-change": [{
|
|
3168
|
-
"will-change": ["auto", "scroll", "contents", "transform", isArbitraryValue]
|
|
3659
|
+
"will-change": ["auto", "scroll", "contents", "transform", isArbitraryVariable, isArbitraryValue]
|
|
3169
3660
|
}],
|
|
3170
|
-
//
|
|
3661
|
+
// -----------
|
|
3662
|
+
// --- SVG ---
|
|
3663
|
+
// -----------
|
|
3171
3664
|
/**
|
|
3172
3665
|
* Fill
|
|
3173
3666
|
* @see https://tailwindcss.com/docs/fill
|
|
3174
3667
|
*/
|
|
3175
3668
|
fill: [{
|
|
3176
|
-
fill: [
|
|
3669
|
+
fill: ["none", ...scaleColor()]
|
|
3177
3670
|
}],
|
|
3178
3671
|
/**
|
|
3179
3672
|
* Stroke Width
|
|
3180
3673
|
* @see https://tailwindcss.com/docs/stroke-width
|
|
3181
3674
|
*/
|
|
3182
3675
|
"stroke-w": [{
|
|
3183
|
-
stroke: [
|
|
3676
|
+
stroke: [isNumber, isArbitraryVariableLength, isArbitraryLength, isArbitraryNumber]
|
|
3184
3677
|
}],
|
|
3185
3678
|
/**
|
|
3186
3679
|
* Stroke
|
|
3187
3680
|
* @see https://tailwindcss.com/docs/stroke
|
|
3188
3681
|
*/
|
|
3189
3682
|
stroke: [{
|
|
3190
|
-
stroke: [
|
|
3683
|
+
stroke: ["none", ...scaleColor()]
|
|
3191
3684
|
}],
|
|
3192
|
-
//
|
|
3193
|
-
|
|
3194
|
-
|
|
3195
|
-
* @see https://tailwindcss.com/docs/screen-readers
|
|
3196
|
-
*/
|
|
3197
|
-
sr: ["sr-only", "not-sr-only"],
|
|
3685
|
+
// ---------------------
|
|
3686
|
+
// --- Accessibility ---
|
|
3687
|
+
// ---------------------
|
|
3198
3688
|
/**
|
|
3199
3689
|
* Forced Color Adjust
|
|
3200
3690
|
* @see https://tailwindcss.com/docs/forced-color-adjust
|
|
@@ -3234,12 +3724,14 @@ var getDefaultConfig = () => {
|
|
|
3234
3724
|
"rounded-b": ["rounded-br", "rounded-bl"],
|
|
3235
3725
|
"rounded-l": ["rounded-tl", "rounded-bl"],
|
|
3236
3726
|
"border-spacing": ["border-spacing-x", "border-spacing-y"],
|
|
3237
|
-
"border-w": ["border-w-s", "border-w-e", "border-w-t", "border-w-r", "border-w-b", "border-w-l"],
|
|
3727
|
+
"border-w": ["border-w-x", "border-w-y", "border-w-s", "border-w-e", "border-w-t", "border-w-r", "border-w-b", "border-w-l"],
|
|
3238
3728
|
"border-w-x": ["border-w-r", "border-w-l"],
|
|
3239
3729
|
"border-w-y": ["border-w-t", "border-w-b"],
|
|
3240
|
-
"border-color": ["border-color-s", "border-color-e", "border-color-t", "border-color-r", "border-color-b", "border-color-l"],
|
|
3730
|
+
"border-color": ["border-color-x", "border-color-y", "border-color-s", "border-color-e", "border-color-t", "border-color-r", "border-color-b", "border-color-l"],
|
|
3241
3731
|
"border-color-x": ["border-color-r", "border-color-l"],
|
|
3242
3732
|
"border-color-y": ["border-color-t", "border-color-b"],
|
|
3733
|
+
translate: ["translate-x", "translate-y", "translate-none"],
|
|
3734
|
+
"translate-none": ["translate", "translate-x", "translate-y", "translate-z"],
|
|
3243
3735
|
"scroll-m": ["scroll-mx", "scroll-my", "scroll-ms", "scroll-me", "scroll-mt", "scroll-mr", "scroll-mb", "scroll-ml"],
|
|
3244
3736
|
"scroll-mx": ["scroll-mr", "scroll-ml"],
|
|
3245
3737
|
"scroll-my": ["scroll-mt", "scroll-mb"],
|
|
@@ -3253,27 +3745,30 @@ var getDefaultConfig = () => {
|
|
|
3253
3745
|
},
|
|
3254
3746
|
conflictingClassGroupModifiers: {
|
|
3255
3747
|
"font-size": ["leading"]
|
|
3256
|
-
}
|
|
3748
|
+
},
|
|
3749
|
+
orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
|
|
3257
3750
|
};
|
|
3258
3751
|
};
|
|
3259
3752
|
var mergeConfigs = (baseConfig, {
|
|
3260
3753
|
cacheSize,
|
|
3261
3754
|
prefix,
|
|
3262
|
-
separator,
|
|
3263
3755
|
experimentalParseClassName,
|
|
3264
3756
|
extend = {},
|
|
3265
3757
|
override = {}
|
|
3266
3758
|
}) => {
|
|
3267
3759
|
overrideProperty(baseConfig, "cacheSize", cacheSize);
|
|
3268
3760
|
overrideProperty(baseConfig, "prefix", prefix);
|
|
3269
|
-
overrideProperty(baseConfig, "separator", separator);
|
|
3270
3761
|
overrideProperty(baseConfig, "experimentalParseClassName", experimentalParseClassName);
|
|
3271
|
-
|
|
3272
|
-
|
|
3273
|
-
|
|
3274
|
-
|
|
3275
|
-
|
|
3276
|
-
|
|
3762
|
+
overrideConfigProperties(baseConfig.theme, override.theme);
|
|
3763
|
+
overrideConfigProperties(baseConfig.classGroups, override.classGroups);
|
|
3764
|
+
overrideConfigProperties(baseConfig.conflictingClassGroups, override.conflictingClassGroups);
|
|
3765
|
+
overrideConfigProperties(baseConfig.conflictingClassGroupModifiers, override.conflictingClassGroupModifiers);
|
|
3766
|
+
overrideProperty(baseConfig, "orderSensitiveModifiers", override.orderSensitiveModifiers);
|
|
3767
|
+
mergeConfigProperties(baseConfig.theme, extend.theme);
|
|
3768
|
+
mergeConfigProperties(baseConfig.classGroups, extend.classGroups);
|
|
3769
|
+
mergeConfigProperties(baseConfig.conflictingClassGroups, extend.conflictingClassGroups);
|
|
3770
|
+
mergeConfigProperties(baseConfig.conflictingClassGroupModifiers, extend.conflictingClassGroupModifiers);
|
|
3771
|
+
mergeArrayProperties(baseConfig, extend, "orderSensitiveModifiers");
|
|
3277
3772
|
return baseConfig;
|
|
3278
3773
|
};
|
|
3279
3774
|
var overrideProperty = (baseObject, overrideKey, overrideValue) => {
|
|
@@ -3291,18 +3786,21 @@ var overrideConfigProperties = (baseObject, overrideObject) => {
|
|
|
3291
3786
|
var mergeConfigProperties = (baseObject, mergeObject) => {
|
|
3292
3787
|
if (mergeObject) {
|
|
3293
3788
|
for (const key in mergeObject) {
|
|
3294
|
-
|
|
3295
|
-
if (mergeValue !== void 0) {
|
|
3296
|
-
baseObject[key] = (baseObject[key] || []).concat(mergeValue);
|
|
3297
|
-
}
|
|
3789
|
+
mergeArrayProperties(baseObject, mergeObject, key);
|
|
3298
3790
|
}
|
|
3299
3791
|
}
|
|
3300
3792
|
};
|
|
3793
|
+
var mergeArrayProperties = (baseObject, mergeObject, key) => {
|
|
3794
|
+
const mergeValue = mergeObject[key];
|
|
3795
|
+
if (mergeValue !== void 0) {
|
|
3796
|
+
baseObject[key] = baseObject[key] ? baseObject[key].concat(mergeValue) : mergeValue;
|
|
3797
|
+
}
|
|
3798
|
+
};
|
|
3301
3799
|
var extendTailwindMerge = (configExtension, ...createConfig) => typeof configExtension === "function" ? createTailwindMerge(getDefaultConfig, configExtension, ...createConfig) : createTailwindMerge(() => mergeConfigs(getDefaultConfig(), configExtension), ...createConfig);
|
|
3302
3800
|
|
|
3303
3801
|
// src/editor/utils/classname.ts
|
|
3304
3802
|
var twMerge = extendTailwindMerge({
|
|
3305
|
-
prefix: "mly
|
|
3803
|
+
prefix: "mly"
|
|
3306
3804
|
});
|
|
3307
3805
|
function cn(...inputs) {
|
|
3308
3806
|
return twMerge((0, import_clsx.clsx)(inputs));
|
|
@@ -3325,7 +3823,7 @@ var Input = React.forwardRef(
|
|
|
3325
3823
|
__spreadValues(__spreadProps(__spreadValues({}, AUTOCOMPLETE_PASSWORD_MANAGERS_OFF), {
|
|
3326
3824
|
type,
|
|
3327
3825
|
className: cn(
|
|
3328
|
-
"mly
|
|
3826
|
+
"mly:flex mly:h-10 mly:w-full mly:rounded-md mly:border mly:border-gray-200 mly:bg-white mly:px-3 mly:py-2 mly:text-sm mly:ring-offset-white mly:file:border-0 mly:file:bg-transparent mly:file:text-sm mly:file:font-medium mly:placeholder:text-gray-500 mly:focus-visible:outline-hidden mly:focus-visible:ring-2 mly:focus-visible:ring-gray-400 mly:focus-visible:ring-offset-2 mly:disabled:cursor-not-allowed mly:disabled:opacity-50",
|
|
3329
3827
|
"mly-editor",
|
|
3330
3828
|
className
|
|
3331
3829
|
),
|
|
@@ -3342,22 +3840,28 @@ var PopoverPrimitive = __toESM(require("@radix-ui/react-popover"), 1);
|
|
|
3342
3840
|
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
3343
3841
|
var Popover = PopoverPrimitive.Root;
|
|
3344
3842
|
var PopoverTrigger = PopoverPrimitive.Trigger;
|
|
3345
|
-
var PopoverContent = React2.forwardRef(
|
|
3346
|
-
|
|
3347
|
-
|
|
3348
|
-
|
|
3349
|
-
|
|
3350
|
-
|
|
3351
|
-
|
|
3352
|
-
|
|
3353
|
-
|
|
3354
|
-
|
|
3355
|
-
|
|
3356
|
-
|
|
3357
|
-
|
|
3358
|
-
|
|
3359
|
-
|
|
3360
|
-
|
|
3843
|
+
var PopoverContent = React2.forwardRef(
|
|
3844
|
+
(_a, ref) => {
|
|
3845
|
+
var _b = _a, { className, align = "center", sideOffset = 4, portal = false } = _b, props = __objRest(_b, ["className", "align", "sideOffset", "portal"]);
|
|
3846
|
+
const content = /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
3847
|
+
PopoverPrimitive.Content,
|
|
3848
|
+
__spreadValues({
|
|
3849
|
+
ref,
|
|
3850
|
+
align,
|
|
3851
|
+
sideOffset,
|
|
3852
|
+
className: cn(
|
|
3853
|
+
"mly:z-9999 mly:w-72 mly:rounded-md mly:border mly:border-gray-200 mly:bg-white mly:p-4 mly:text-gray-950 mly:shadow-md mly:outline-hidden",
|
|
3854
|
+
"mly-editor",
|
|
3855
|
+
className
|
|
3856
|
+
)
|
|
3857
|
+
}, props)
|
|
3858
|
+
);
|
|
3859
|
+
if (!portal) {
|
|
3860
|
+
return content;
|
|
3861
|
+
}
|
|
3862
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(PopoverPrimitive.Portal, { children: content });
|
|
3863
|
+
}
|
|
3864
|
+
);
|
|
3361
3865
|
PopoverContent.displayName = PopoverPrimitive.Content.displayName;
|
|
3362
3866
|
|
|
3363
3867
|
// src/editor/components/textarea.tsx
|
|
@@ -3370,7 +3874,7 @@ var Textarea = React3.forwardRef(
|
|
|
3370
3874
|
"textarea",
|
|
3371
3875
|
__spreadValues({
|
|
3372
3876
|
className: cn(
|
|
3373
|
-
"mly
|
|
3877
|
+
"mly:flex mly:min-h-24 mly:w-full mly:rounded-md mly:border mly:border-gray-200 mly:bg-white mly:px-3 mly:py-2 mly:text-sm mly:ring-offset-white mly:file:border-0 mly:file:bg-transparent mly:file:text-sm mly:file:font-medium mly:placeholder:text-gray-500 mly:focus-visible:outline-hidden mly:focus-visible:ring-2 mly:focus-visible:ring-gray-400 mly:focus-visible:ring-offset-2 mly:disabled:cursor-not-allowed mly:disabled:opacity-50",
|
|
3374
3878
|
"mly-editor",
|
|
3375
3879
|
className
|
|
3376
3880
|
),
|
|
@@ -3402,27 +3906,27 @@ function LinkCardComponent(props) {
|
|
|
3402
3906
|
const pos = getPos();
|
|
3403
3907
|
editor.commands.setNodeSelection(pos);
|
|
3404
3908
|
},
|
|
3405
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "mly
|
|
3406
|
-
image2 && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "mly
|
|
3909
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "mly:no-prose mly:flex mly:flex-col mly:rounded-lg mly:border mly:border-gray-300", children: [
|
|
3910
|
+
image2 && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "mly:relative mly:mb-1.5 mly:w-full mly:shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
3407
3911
|
"img",
|
|
3408
3912
|
{
|
|
3409
3913
|
src: image2,
|
|
3410
3914
|
alt: "link-card",
|
|
3411
|
-
className: "mly
|
|
3915
|
+
className: "mly:no-prose mly:mb-0! mly:h-full mly:w-full mly:rounded-t-lg",
|
|
3412
3916
|
draggable: editor.isEditable
|
|
3413
3917
|
}
|
|
3414
3918
|
) }),
|
|
3415
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "mly
|
|
3416
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "!mly
|
|
3417
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("h2", { className: "!mly
|
|
3418
|
-
badgeText && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "!mly
|
|
3919
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "mly:flex mly:items-stretch mly:p-3", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: cn("mly:flex mly:flex-col"), children: [
|
|
3920
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "!mly:mb-1.5 mly:flex mly:items-center mly:gap-1.5", children: [
|
|
3921
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("h2", { className: "!mly:mb-0 mly:text-lg! mly:font-semibold", children: title }),
|
|
3922
|
+
badgeText && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "!mly:font-base mly:rounded-md mly:bg-yellow-200 mly:px-2 mly:py-1 mly:font-semibold mly:leading-none text-xs", children: badgeText }),
|
|
3419
3923
|
" ",
|
|
3420
|
-
subTitle && !badgeText && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "!mly
|
|
3924
|
+
subTitle && !badgeText && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "!mly:font-base mly:font-regular mly:rounded-md mly:leading-none mly:text-gray-400 text-xs", children: subTitle })
|
|
3421
3925
|
] }),
|
|
3422
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("p", { className: "!mly
|
|
3926
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("p", { className: "!mly:my-0 mly:text-base! mly:text-gray-500", children: [
|
|
3423
3927
|
description,
|
|
3424
3928
|
" ",
|
|
3425
|
-
linkTitle ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("a", { href: link, className: "mly
|
|
3929
|
+
linkTitle ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("a", { href: link, className: "mly:font-semibold", children: linkTitle }) : null
|
|
3426
3930
|
] })
|
|
3427
3931
|
] }) })
|
|
3428
3932
|
] })
|
|
@@ -3432,13 +3936,13 @@ function LinkCardComponent(props) {
|
|
|
3432
3936
|
PopoverContent,
|
|
3433
3937
|
{
|
|
3434
3938
|
align: "end",
|
|
3435
|
-
className: "mly
|
|
3939
|
+
className: "mly:flex mly:w-96 mly:flex-col mly:gap-2",
|
|
3436
3940
|
sideOffset: 10,
|
|
3437
3941
|
onOpenAutoFocus: (e) => e.preventDefault(),
|
|
3438
3942
|
onCloseAutoFocus: (e) => e.preventDefault(),
|
|
3439
3943
|
children: [
|
|
3440
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("label", { className: "mly
|
|
3441
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "mly
|
|
3944
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("label", { className: "mly:w-full mly:space-y-1", children: [
|
|
3945
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "mly:text-xs mly:font-normal mly:text-slate-400", children: "Image" }),
|
|
3442
3946
|
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
3443
3947
|
Input,
|
|
3444
3948
|
{
|
|
@@ -3453,8 +3957,8 @@ function LinkCardComponent(props) {
|
|
|
3453
3957
|
}
|
|
3454
3958
|
)
|
|
3455
3959
|
] }),
|
|
3456
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("label", { className: "mly
|
|
3457
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "mly
|
|
3960
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("label", { className: "mly:w-full mly:space-y-1", children: [
|
|
3961
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "mly:text-xs mly:font-normal mly:text-slate-400", children: "Title" }),
|
|
3458
3962
|
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
3459
3963
|
Input,
|
|
3460
3964
|
{
|
|
@@ -3468,8 +3972,8 @@ function LinkCardComponent(props) {
|
|
|
3468
3972
|
}
|
|
3469
3973
|
)
|
|
3470
3974
|
] }),
|
|
3471
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("label", { className: "mly
|
|
3472
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "mly
|
|
3975
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("label", { className: "mly:w-full mly:space-y-1", children: [
|
|
3976
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "mly:text-xs mly:font-normal mly:text-slate-400", children: "Description" }),
|
|
3473
3977
|
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
3474
3978
|
Textarea,
|
|
3475
3979
|
{
|
|
@@ -3483,9 +3987,9 @@ function LinkCardComponent(props) {
|
|
|
3483
3987
|
}
|
|
3484
3988
|
)
|
|
3485
3989
|
] }),
|
|
3486
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "mly
|
|
3487
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("label", { className: "mly
|
|
3488
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "mly
|
|
3990
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "mly:grid mly:grid-cols-2 mly:gap-2", children: [
|
|
3991
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("label", { className: "mly:w-full mly:space-y-1", children: [
|
|
3992
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "mly:text-xs mly:font-normal mly:text-slate-400", children: "Link Title" }),
|
|
3489
3993
|
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
3490
3994
|
Input,
|
|
3491
3995
|
{
|
|
@@ -3499,8 +4003,8 @@ function LinkCardComponent(props) {
|
|
|
3499
4003
|
}
|
|
3500
4004
|
)
|
|
3501
4005
|
] }),
|
|
3502
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("label", { className: "mly
|
|
3503
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "mly
|
|
4006
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("label", { className: "mly:w-full mly:space-y-1", children: [
|
|
4007
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "mly:text-xs mly:font-normal mly:text-slate-400", children: "Link" }),
|
|
3504
4008
|
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
3505
4009
|
Input,
|
|
3506
4010
|
{
|
|
@@ -3515,9 +4019,9 @@ function LinkCardComponent(props) {
|
|
|
3515
4019
|
)
|
|
3516
4020
|
] })
|
|
3517
4021
|
] }),
|
|
3518
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "mly
|
|
3519
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("label", { className: "mly
|
|
3520
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "mly
|
|
4022
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "mly:grid mly:grid-cols-2 mly:gap-2", children: [
|
|
4023
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("label", { className: "mly:w-full mly:space-y-1", children: [
|
|
4024
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "mly:text-xs mly:font-normal mly:text-slate-400", children: "Badge Text" }),
|
|
3521
4025
|
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
3522
4026
|
Input,
|
|
3523
4027
|
{
|
|
@@ -3531,8 +4035,8 @@ function LinkCardComponent(props) {
|
|
|
3531
4035
|
}
|
|
3532
4036
|
)
|
|
3533
4037
|
] }),
|
|
3534
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("label", { className: "mly
|
|
3535
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "mly
|
|
4038
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("label", { className: "mly:w-full mly:space-y-1", children: [
|
|
4039
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "mly:text-xs mly:font-normal mly:text-slate-400", children: "Sub Title" }),
|
|
3536
4040
|
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
3537
4041
|
Input,
|
|
3538
4042
|
{
|
|
@@ -3621,7 +4125,7 @@ var LinkCardExtension = import_core6.Node.create({
|
|
|
3621
4125
|
},
|
|
3622
4126
|
addNodeView() {
|
|
3623
4127
|
return (0, import_react3.ReactNodeViewRenderer)(LinkCardComponent, {
|
|
3624
|
-
className: "mly
|
|
4128
|
+
className: "mly:relative"
|
|
3625
4129
|
});
|
|
3626
4130
|
}
|
|
3627
4131
|
});
|
|
@@ -3837,7 +4341,7 @@ var ColumnsExtension = import_core10.Node.create({
|
|
|
3837
4341
|
"div",
|
|
3838
4342
|
(0, import_core9.mergeAttributes)(HTMLAttributes2, {
|
|
3839
4343
|
"data-type": "columns",
|
|
3840
|
-
class: "mly
|
|
4344
|
+
class: "mly:relative"
|
|
3841
4345
|
}),
|
|
3842
4346
|
0
|
|
3843
4347
|
];
|
|
@@ -3886,20 +4390,20 @@ var BaseButton = React4.forwardRef(
|
|
|
3886
4390
|
"asChild"
|
|
3887
4391
|
]);
|
|
3888
4392
|
const Comp = asChild ? import_react_slot.Slot : "button";
|
|
3889
|
-
const baseClass = "mly
|
|
4393
|
+
const baseClass = "mly:inline-flex mly:items-center mly:justify-center mly:rounded-md mly:text-sm mly:font-medium mly:ring-offset-white mly:transition-colors mly:focus-visible:outline-hidden mly:focus-visible:ring-2 mly:focus-visible:ring-gray-400 mly:focus-visible:ring-offset-2 mly:focus-visible:relative mly:focus-visible:z-10 mly:disabled:opacity-50 ";
|
|
3890
4394
|
const variantClasses = {
|
|
3891
|
-
default: "mly
|
|
3892
|
-
destructive: "mly
|
|
3893
|
-
outline: "mly
|
|
3894
|
-
secondary: "mly
|
|
3895
|
-
ghost: "hover:
|
|
3896
|
-
link: "mly
|
|
4395
|
+
default: "mly:bg-gray-900 mly:text-gray-50 mly:hover:bg-soft-gray",
|
|
4396
|
+
destructive: "mly:bg-red-500 mly:text-gray-50 mly:hover:bg-red-500/90",
|
|
4397
|
+
outline: "mly:border mly:border-gray-200 mly:bg-white mly:hover:bg-gray-100 mly:hover:text-gray-900",
|
|
4398
|
+
secondary: "mly:bg-gray-100 mly:text-gray-900 mly:hover:bg-gray-100/80",
|
|
4399
|
+
ghost: "mly:hover:bg-soft-gray bg-transparent mly:hover:text-gray-900 mly:data-[state=true]:bg-soft-gray mly:data-[state=true]:text-gray-900",
|
|
4400
|
+
link: "mly:text-gray-900 mly:underline-offset-4 mly:hover:underline"
|
|
3897
4401
|
};
|
|
3898
4402
|
const sizeClasses = {
|
|
3899
|
-
default: "mly
|
|
3900
|
-
sm: "mly
|
|
3901
|
-
lg: "mly
|
|
3902
|
-
icon: "mly
|
|
4403
|
+
default: "mly:h-10 mly:px-4 mly:py-2",
|
|
4404
|
+
sm: "mly:h-9 mly:rounded-md mly:px-3",
|
|
4405
|
+
lg: "mly:h-11 mly:rounded-md mly:px-8",
|
|
4406
|
+
icon: "mly:h-10 mly:w-10"
|
|
3903
4407
|
};
|
|
3904
4408
|
const classes = cn(
|
|
3905
4409
|
"mly-editor",
|
|
@@ -3928,7 +4432,7 @@ var TooltipContent = React5.forwardRef((_a, ref) => {
|
|
|
3928
4432
|
ref,
|
|
3929
4433
|
sideOffset,
|
|
3930
4434
|
className: cn(
|
|
3931
|
-
"mly
|
|
4435
|
+
"mly:z-50 mly:overflow-hidden mly:rounded-md mly:border mly:border-gray-200 mly:bg-white mly:px-2 mly:py-1 mly:text-xs mly:animate-in mly:fade-in-0 mly:zoom-in-95",
|
|
3932
4436
|
className
|
|
3933
4437
|
)
|
|
3934
4438
|
}, props)
|
|
@@ -3949,7 +4453,7 @@ function BubbleMenuButton(item) {
|
|
|
3949
4453
|
}, item.command ? { onClick: item.command } : {}), {
|
|
3950
4454
|
"data-state": (_a = item == null ? void 0 : item.isActive) == null ? void 0 : _a.call(item),
|
|
3951
4455
|
className: cn(
|
|
3952
|
-
"
|
|
4456
|
+
"mly:size-7! mly:px-2.5 mly:disabled:cursor-not-allowed",
|
|
3953
4457
|
item == null ? void 0 : item.className
|
|
3954
4458
|
),
|
|
3955
4459
|
type: "button",
|
|
@@ -3958,7 +4462,7 @@ function BubbleMenuButton(item) {
|
|
|
3958
4462
|
item.icon,
|
|
3959
4463
|
{
|
|
3960
4464
|
className: cn(
|
|
3961
|
-
"mly
|
|
4465
|
+
"mly:h-3 mly:w-3 mly:shrink-0 mly:stroke-[2.5]",
|
|
3962
4466
|
item == null ? void 0 : item.iconClassName
|
|
3963
4467
|
)
|
|
3964
4468
|
}
|
|
@@ -3966,7 +4470,7 @@ function BubbleMenuButton(item) {
|
|
|
3966
4470
|
"span",
|
|
3967
4471
|
{
|
|
3968
4472
|
className: cn(
|
|
3969
|
-
"mly
|
|
4473
|
+
"mly:text-sm mly:font-medium mly:text-slate-600",
|
|
3970
4474
|
item == null ? void 0 : item.nameClassName
|
|
3971
4475
|
),
|
|
3972
4476
|
children: item.name
|
|
@@ -4105,7 +4609,7 @@ function ImageView(props) {
|
|
|
4105
4609
|
tabIndex: 0,
|
|
4106
4610
|
onMouseDown: handleMouseDown,
|
|
4107
4611
|
"data-direction": direction,
|
|
4108
|
-
className: "mly
|
|
4612
|
+
className: "mly:bg-rose-500",
|
|
4109
4613
|
style: __spreadProps(__spreadValues(__spreadValues({
|
|
4110
4614
|
position: "absolute",
|
|
4111
4615
|
height: "10px",
|
|
@@ -4297,7 +4801,7 @@ function ImageView(props) {
|
|
|
4297
4801
|
type: "file",
|
|
4298
4802
|
accept: "image/*",
|
|
4299
4803
|
onChange: handleFileChange,
|
|
4300
|
-
className: "mly
|
|
4804
|
+
className: "mly:absolute mly:inset-0 mly:opacity-0",
|
|
4301
4805
|
multiple: false
|
|
4302
4806
|
}
|
|
4303
4807
|
),
|
|
@@ -4316,7 +4820,7 @@ function ImageView(props) {
|
|
|
4316
4820
|
}),
|
|
4317
4821
|
draggable: editor.isEditable,
|
|
4318
4822
|
className: cn(
|
|
4319
|
-
isPlaceholderImage && "mly
|
|
4823
|
+
isPlaceholderImage && "mly:animate-pulse mly:opacity-40"
|
|
4320
4824
|
)
|
|
4321
4825
|
})
|
|
4322
4826
|
),
|
|
@@ -4329,7 +4833,7 @@ function ImageView(props) {
|
|
|
4329
4833
|
].map((style, i) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
4330
4834
|
"div",
|
|
4331
4835
|
{
|
|
4332
|
-
className: "mly
|
|
4836
|
+
className: "mly:bg-rose-500",
|
|
4333
4837
|
style: __spreadValues({
|
|
4334
4838
|
position: "absolute"
|
|
4335
4839
|
}, style)
|
|
@@ -4352,10 +4856,10 @@ function ImageStatusLabel(props) {
|
|
|
4352
4856
|
"div",
|
|
4353
4857
|
__spreadProps(__spreadValues({}, rest), {
|
|
4354
4858
|
className: cn(
|
|
4355
|
-
"mly
|
|
4859
|
+
"mly:flex mly:items-center mly:justify-center mly:gap-2 mly:rounded-lg mly:bg-soft-gray mly:px-4 mly:py-2 mly:text-sm mly:font-medium",
|
|
4356
4860
|
{
|
|
4357
|
-
"mly
|
|
4358
|
-
"mly
|
|
4861
|
+
"mly:text-gray-500 mly:hover:bg-soft-gray/60": status === "loading",
|
|
4862
|
+
"mly:text-red-500 mly:hover:bg-soft-gray/60": status === "error"
|
|
4359
4863
|
},
|
|
4360
4864
|
className
|
|
4361
4865
|
),
|
|
@@ -4364,23 +4868,23 @@ function ImageStatusLabel(props) {
|
|
|
4364
4868
|
} : {}), style),
|
|
4365
4869
|
children: [
|
|
4366
4870
|
status === "idle" && !isDropZone && /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_jsx_runtime8.Fragment, { children: [
|
|
4367
|
-
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_lucide_react.ImageOffIcon, { className: "mly
|
|
4871
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_lucide_react.ImageOffIcon, { className: "mly:size-4 mly:stroke-[2.5]" }),
|
|
4368
4872
|
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { children: "No image selected" })
|
|
4369
4873
|
] }),
|
|
4370
4874
|
status === "idle" && isDropZone && /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_jsx_runtime8.Fragment, { children: [
|
|
4371
|
-
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_lucide_react.GrabIcon, { className: "mly
|
|
4875
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_lucide_react.GrabIcon, { className: "mly:size-4 mly:stroke-[2.5]" }),
|
|
4372
4876
|
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { children: "Click or Drop image here" })
|
|
4373
4877
|
] }),
|
|
4374
4878
|
status === "loading" && /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_jsx_runtime8.Fragment, { children: [
|
|
4375
|
-
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_lucide_react.Loader2, { className: "mly
|
|
4879
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_lucide_react.Loader2, { className: "mly:size-4 mly:animate-spin mly:stroke-[2.5]" }),
|
|
4376
4880
|
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { children: "Loading image..." })
|
|
4377
4881
|
] }),
|
|
4378
4882
|
status === "error" && /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_jsx_runtime8.Fragment, { children: [
|
|
4379
|
-
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_lucide_react.Ban, { className: "mly
|
|
4883
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_lucide_react.Ban, { className: "mly:size-4 mly:stroke-[2.5]" }),
|
|
4380
4884
|
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { children: "Error loading image" })
|
|
4381
4885
|
] }),
|
|
4382
4886
|
status === "variable" && /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_jsx_runtime8.Fragment, { children: [
|
|
4383
|
-
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_lucide_react.BracesIcon, { className: "mly
|
|
4887
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_lucide_react.BracesIcon, { className: "mly:size-4 mly:stroke-[2.5]" }),
|
|
4384
4888
|
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { children: "Variable Image URL" })
|
|
4385
4889
|
] })
|
|
4386
4890
|
]
|
|
@@ -4533,7 +5037,7 @@ function LogoView(props) {
|
|
|
4533
5037
|
type: "file",
|
|
4534
5038
|
accept: "image/*",
|
|
4535
5039
|
onChange: handleFileChange,
|
|
4536
|
-
className: "mly
|
|
5040
|
+
className: "mly:absolute mly:inset-0 mly:opacity-0",
|
|
4537
5041
|
multiple: false
|
|
4538
5042
|
}
|
|
4539
5043
|
),
|
|
@@ -4658,7 +5162,7 @@ var LogoExtension = import_extension_image.default.extend({
|
|
|
4658
5162
|
},
|
|
4659
5163
|
addNodeView() {
|
|
4660
5164
|
return (0, import_react10.ReactNodeViewRenderer)(LogoView, {
|
|
4661
|
-
className: "mly
|
|
5165
|
+
className: "mly:relative"
|
|
4662
5166
|
});
|
|
4663
5167
|
}
|
|
4664
5168
|
});
|
|
@@ -4700,9 +5204,9 @@ function AlignmentSwitch(props) {
|
|
|
4700
5204
|
PopoverTrigger,
|
|
4701
5205
|
{
|
|
4702
5206
|
className: cn(
|
|
4703
|
-
"mly
|
|
5207
|
+
"mly:flex mly:size-7 mly:items-center mly:justify-center mly:gap-1 mly:rounded-md mly:px-1.5 mly:text-sm mly:data-[state=open]:bg-soft-gray mly:hover:bg-soft-gray mly:focus-visible:relative mly:focus-visible:z-10 mly:focus-visible:outline-hidden mly:focus-visible:ring-2 mly:focus-visible:ring-gray-400 mly:focus-visible:ring-offset-2"
|
|
4704
5208
|
),
|
|
4705
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(activeAlignment.icon, { className: "mly
|
|
5209
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(activeAlignment.icon, { className: "mly:h-3 mly:w-3 mly:stroke-[2.5]" })
|
|
4706
5210
|
}
|
|
4707
5211
|
) }),
|
|
4708
5212
|
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)(TooltipContent, { sideOffset: 8, children: "Alignment" })
|
|
@@ -4710,7 +5214,7 @@ function AlignmentSwitch(props) {
|
|
|
4710
5214
|
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
4711
5215
|
PopoverContent,
|
|
4712
5216
|
{
|
|
4713
|
-
className: "mly
|
|
5217
|
+
className: "mly:flex mly:w-max mly:gap-0.5 mly:rounded-lg mly:p-0.5!",
|
|
4714
5218
|
side: "top",
|
|
4715
5219
|
sideOffset: 8,
|
|
4716
5220
|
align: "center",
|
|
@@ -4837,8 +5341,8 @@ var InputAutocomplete = (0, import_react14.forwardRef)((props, ref) => {
|
|
|
4837
5341
|
onOutsideClick == null ? void 0 : onOutsideClick();
|
|
4838
5342
|
});
|
|
4839
5343
|
const isTriggeringVariable = value.startsWith(triggerChar);
|
|
4840
|
-
return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: cn("mly
|
|
4841
|
-
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("label", { className: "mly
|
|
5344
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: cn("mly:relative"), ref: containerRef, children: [
|
|
5345
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("label", { className: "mly:relative", children: [
|
|
4842
5346
|
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
4843
5347
|
"input",
|
|
4844
5348
|
__spreadProps(__spreadValues(__spreadProps(__spreadValues({}, AUTOCOMPLETE_PASSWORD_MANAGERS_OFF), {
|
|
@@ -4851,7 +5355,7 @@ var InputAutocomplete = (0, import_react14.forwardRef)((props, ref) => {
|
|
|
4851
5355
|
onValueChange(e.target.value);
|
|
4852
5356
|
},
|
|
4853
5357
|
className: cn(
|
|
4854
|
-
"mly
|
|
5358
|
+
"mly:h-7 mly:w-40 mly:rounded-md mly:bg-white mly:px-2 mly:pr-6 mly:text-sm mly:text-midnight-gray mly:hover:bg-soft-gray mly:focus:bg-soft-gray mly:focus:outline-hidden",
|
|
4855
5359
|
className
|
|
4856
5360
|
),
|
|
4857
5361
|
onKeyDown: (e) => {
|
|
@@ -4873,9 +5377,9 @@ var InputAutocomplete = (0, import_react14.forwardRef)((props, ref) => {
|
|
|
4873
5377
|
spellCheck: false
|
|
4874
5378
|
})
|
|
4875
5379
|
),
|
|
4876
|
-
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: "mly
|
|
5380
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: "mly:absolute mly:inset-y-0 mly:right-1 mly:flex mly:items-center", children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_lucide_react3.CornerDownLeft, { className: "mly:h-3 mly:w-3 mly:stroke-[2.5] mly:text-midnight-gray" }) })
|
|
4877
5381
|
] }),
|
|
4878
|
-
isTriggeringVariable && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: "mly
|
|
5382
|
+
isTriggeringVariable && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: "mly:absolute mly:left-0 mly:top-8", children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
4879
5383
|
VariableSuggestionPopoverComponent,
|
|
4880
5384
|
{
|
|
4881
5385
|
items: autoCompleteOptions.map((option) => {
|
|
@@ -4925,10 +5429,10 @@ function _ShowPopover(props) {
|
|
|
4925
5429
|
PopoverTrigger,
|
|
4926
5430
|
{
|
|
4927
5431
|
className: cn(
|
|
4928
|
-
"mly
|
|
4929
|
-
showIfKey && "mly
|
|
5432
|
+
"mly:flex mly:size-7 mly:items-center mly:justify-center mly:gap-1 mly:rounded-md mly:px-1.5 mly:text-sm mly:data-[state=open]:bg-soft-gray mly:hover:bg-soft-gray mly:focus-visible:relative mly:focus-visible:z-10 mly:focus-visible:outline-hidden mly:focus-visible:ring-2 mly:focus-visible:ring-gray-400 mly:focus-visible:ring-offset-2",
|
|
5433
|
+
showIfKey && "mly:bg-rose-100 mly:text-rose-800 mly:data-[state=open]:bg-rose-100 mly:hover:bg-rose-100"
|
|
4930
5434
|
),
|
|
4931
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_lucide_react4.Eye, { className: "mly
|
|
5435
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_lucide_react4.Eye, { className: "mly:h-3 mly:w-3 mly:stroke-[2.5]" })
|
|
4932
5436
|
}
|
|
4933
5437
|
) }),
|
|
4934
5438
|
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(TooltipContent, { sideOffset: 8, children: "Show block conditionally" })
|
|
@@ -4936,7 +5440,7 @@ function _ShowPopover(props) {
|
|
|
4936
5440
|
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
|
|
4937
5441
|
PopoverContent,
|
|
4938
5442
|
{
|
|
4939
|
-
className: "mly
|
|
5443
|
+
className: "mly:flex mly:w-max mly:rounded-lg mly:p-0.5!",
|
|
4940
5444
|
side: "top",
|
|
4941
5445
|
sideOffset: 8,
|
|
4942
5446
|
align: "end",
|
|
@@ -4947,20 +5451,20 @@ function _ShowPopover(props) {
|
|
|
4947
5451
|
e.preventDefault();
|
|
4948
5452
|
},
|
|
4949
5453
|
children: [
|
|
4950
|
-
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "mly
|
|
5454
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "mly:flex mly:items-center mly:gap-1.5 mly:px-1.5 mly:text-sm mly:leading-none", children: [
|
|
4951
5455
|
"Show if",
|
|
4952
5456
|
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(Tooltip, { children: [
|
|
4953
5457
|
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(TooltipTrigger, { children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
4954
5458
|
import_lucide_react4.InfoIcon,
|
|
4955
5459
|
{
|
|
4956
|
-
className: cn("mly
|
|
5460
|
+
className: cn("mly:size-3 mly:stroke-[2.5] mly:text-gray-500")
|
|
4957
5461
|
}
|
|
4958
5462
|
) }),
|
|
4959
5463
|
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
4960
5464
|
TooltipContent,
|
|
4961
5465
|
{
|
|
4962
5466
|
sideOffset: 14,
|
|
4963
|
-
className: "mly
|
|
5467
|
+
className: "mly:max-w-[285px]",
|
|
4964
5468
|
align: "start",
|
|
4965
5469
|
children: "Show the block if the selected variable is true."
|
|
4966
5470
|
}
|
|
@@ -5054,14 +5558,14 @@ function ColorPicker(props) {
|
|
|
5054
5558
|
BaseButton,
|
|
5055
5559
|
{
|
|
5056
5560
|
variant: "ghost",
|
|
5057
|
-
className: "!mly
|
|
5561
|
+
className: "!mly:size-7 mly:shrink-0",
|
|
5058
5562
|
size: "sm",
|
|
5059
5563
|
type: "button",
|
|
5060
5564
|
children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
5061
5565
|
"div",
|
|
5062
5566
|
{
|
|
5063
5567
|
className: cn(
|
|
5064
|
-
"mly
|
|
5568
|
+
"mly:h-4 mly:w-4 mly:shrink-0 mly:rounded mly:border-2 mly:border-gray-700",
|
|
5065
5569
|
className
|
|
5066
5570
|
),
|
|
5067
5571
|
style: __spreadProps(__spreadValues({}, borderColor ? { borderColor } : {}), {
|
|
@@ -5087,15 +5591,15 @@ function ColorPicker(props) {
|
|
|
5087
5591
|
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
5088
5592
|
PopoverContent,
|
|
5089
5593
|
{
|
|
5090
|
-
className: "mly
|
|
5594
|
+
className: "mly:w-full mly:rounded-none mly:border-0 mly:bg-transparent! mly:p-0! mly:shadow-none mly:drop-shadow-md",
|
|
5091
5595
|
sideOffset: 8,
|
|
5092
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: "mly
|
|
5596
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: "mly:min-w-[260px] mly:rounded-xl mly:border mly:border-gray-200 mly:bg-white mly:p-4", children: [
|
|
5093
5597
|
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
5094
5598
|
import_react_colorful.HexColorPicker,
|
|
5095
5599
|
{
|
|
5096
5600
|
color,
|
|
5097
5601
|
onChange: handleColorChange,
|
|
5098
|
-
className: "mly
|
|
5602
|
+
className: "mly:flex mly:w-full! mly:flex-col mly:gap-4"
|
|
5099
5603
|
}
|
|
5100
5604
|
),
|
|
5101
5605
|
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
@@ -5104,25 +5608,25 @@ function ColorPicker(props) {
|
|
|
5104
5608
|
alpha: true,
|
|
5105
5609
|
color,
|
|
5106
5610
|
onChange: handleColorChange,
|
|
5107
|
-
className: "mly
|
|
5611
|
+
className: "mly:mt-4 mly:w-full mly:min-w-0 mly:rounded-lg mly:border mly:border-gray-200 mly:bg-white mly:px-2 mly:py-1.5 mly:text-sm mly:uppercase mly:focus-visible:border-gray-400 mly:focus-visible:outline-hidden",
|
|
5108
5612
|
prefixed: true
|
|
5109
5613
|
}
|
|
5110
5614
|
),
|
|
5111
5615
|
suggestedColors.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { children: [
|
|
5112
|
-
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: "-mly
|
|
5113
|
-
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)("h2", { className: "mly
|
|
5114
|
-
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: "mly
|
|
5616
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: "-mly:mx-4 mly:my-4 mly:h-px mly:bg-gray-200" }),
|
|
5617
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)("h2", { className: "mly:text-xs mly:text-gray-500", children: "Recently used" }),
|
|
5618
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: "mly:mt-2 mly:flex mly:flex-wrap mly:gap-0.5", children: suggestedColors.map((suggestedColor) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
5115
5619
|
BaseButton,
|
|
5116
5620
|
{
|
|
5117
5621
|
variant: "ghost",
|
|
5118
5622
|
size: "sm",
|
|
5119
|
-
className: "!mly
|
|
5623
|
+
className: "!mly:size-7 mly:shrink-0",
|
|
5120
5624
|
type: "button",
|
|
5121
5625
|
onClick: () => handleColorChange(suggestedColor),
|
|
5122
5626
|
children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
5123
5627
|
"div",
|
|
5124
5628
|
{
|
|
5125
|
-
className: "mly
|
|
5629
|
+
className: "mly:h-4 mly:w-4 mly:shrink-0 mly:rounded",
|
|
5126
5630
|
style: {
|
|
5127
5631
|
backgroundColor: suggestedColor
|
|
5128
5632
|
}
|
|
@@ -5148,8 +5652,8 @@ function Divider(props) {
|
|
|
5148
5652
|
"div",
|
|
5149
5653
|
{
|
|
5150
5654
|
className: cn(
|
|
5151
|
-
"mly
|
|
5152
|
-
type === "vertical" ? "mly
|
|
5655
|
+
"mly:shrink-0 mly:bg-gray-200",
|
|
5656
|
+
type === "vertical" ? "mly:mx-0.5 mly:w-px" : "mly:my-0.5 mly:h-px",
|
|
5153
5657
|
className
|
|
5154
5658
|
)
|
|
5155
5659
|
}
|
|
@@ -5173,7 +5677,7 @@ var button = {
|
|
|
5173
5677
|
title: "Button",
|
|
5174
5678
|
description: "Add a call to action button to email.",
|
|
5175
5679
|
searchTerms: ["link", "button", "cta"],
|
|
5176
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_lucide_react5.MousePointer, { className: "mly
|
|
5680
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_lucide_react5.MousePointer, { className: "mly:h-4 mly:w-4" }),
|
|
5177
5681
|
command: ({ editor, range }) => {
|
|
5178
5682
|
editor.chain().focus().deleteRange(range).setButton().run();
|
|
5179
5683
|
}
|
|
@@ -5182,7 +5686,7 @@ var linkCard = {
|
|
|
5182
5686
|
title: "Link Card",
|
|
5183
5687
|
description: "Add a link card to email.",
|
|
5184
5688
|
searchTerms: ["link", "button", "image"],
|
|
5185
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_lucide_react5.ArrowUpRightSquare, { className: "mly
|
|
5689
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_lucide_react5.ArrowUpRightSquare, { className: "mly:h-4 mly:w-4" }),
|
|
5186
5690
|
command: ({ editor, range }) => {
|
|
5187
5691
|
editor.chain().focus().deleteRange(range).setLinkCard().run();
|
|
5188
5692
|
},
|
|
@@ -5200,7 +5704,7 @@ var htmlCodeBlock = {
|
|
|
5200
5704
|
title: "Custom HTML",
|
|
5201
5705
|
description: "Insert a custom HTML block",
|
|
5202
5706
|
searchTerms: ["html", "code", "custom"],
|
|
5203
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_lucide_react6.CodeXmlIcon, { className: "mly
|
|
5707
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_lucide_react6.CodeXmlIcon, { className: "mly:h-4 mly:w-4" }),
|
|
5204
5708
|
command: ({ editor, range }) => {
|
|
5205
5709
|
editor.chain().focus().deleteRange(range).setHtmlCodeBlock({ language: "html" }).run();
|
|
5206
5710
|
}
|
|
@@ -5214,7 +5718,7 @@ var image = {
|
|
|
5214
5718
|
title: "Image",
|
|
5215
5719
|
description: "Full width image",
|
|
5216
5720
|
searchTerms: ["image"],
|
|
5217
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_lucide_react7.ImageIcon, { className: "mly
|
|
5721
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_lucide_react7.ImageIcon, { className: "mly:h-4 mly:w-4" }),
|
|
5218
5722
|
command: ({ editor, range }) => {
|
|
5219
5723
|
editor.chain().focus().deleteRange(range).setImage({ src: "" }).run();
|
|
5220
5724
|
}
|
|
@@ -5223,7 +5727,7 @@ var logo = {
|
|
|
5223
5727
|
title: "Logo",
|
|
5224
5728
|
description: "Add your brand logo",
|
|
5225
5729
|
searchTerms: ["image", "logo"],
|
|
5226
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_lucide_react7.ImageIcon, { className: "mly
|
|
5730
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_lucide_react7.ImageIcon, { className: "mly:h-4 mly:w-4" }),
|
|
5227
5731
|
command: ({ editor, range }) => {
|
|
5228
5732
|
editor.chain().focus().deleteRange(range).setLogoImage({ src: "" }).run();
|
|
5229
5733
|
}
|
|
@@ -5232,7 +5736,7 @@ var inlineImage = {
|
|
|
5232
5736
|
title: "Inline Image",
|
|
5233
5737
|
description: "Inline image",
|
|
5234
5738
|
searchTerms: ["image", "inline"],
|
|
5235
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_lucide_react7.ImageIcon, { className: "mly
|
|
5739
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_lucide_react7.ImageIcon, { className: "mly:h-4 mly:w-4" }),
|
|
5236
5740
|
command: ({ editor, range }) => {
|
|
5237
5741
|
editor.chain().focus().deleteRange(range).setInlineImage({
|
|
5238
5742
|
src: "https://maily.to/brand/logo.png"
|
|
@@ -5261,7 +5765,7 @@ var columns = {
|
|
|
5261
5765
|
title: "Columns",
|
|
5262
5766
|
description: "Add columns to email.",
|
|
5263
5767
|
searchTerms: ["layout", "columns"],
|
|
5264
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_lucide_react8.ColumnsIcon, { className: "mly
|
|
5768
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_lucide_react8.ColumnsIcon, { className: "mly:h-4 mly:w-4" }),
|
|
5265
5769
|
command: ({ editor, range }) => {
|
|
5266
5770
|
editor.chain().focus().deleteRange(range).setColumns().focus(editor.state.selection.head - 2).run();
|
|
5267
5771
|
}
|
|
@@ -5270,7 +5774,7 @@ var section = {
|
|
|
5270
5774
|
title: "Section",
|
|
5271
5775
|
description: "Add a section to email.",
|
|
5272
5776
|
searchTerms: ["layout", "section"],
|
|
5273
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_lucide_react8.RectangleHorizontal, { className: "mly
|
|
5777
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_lucide_react8.RectangleHorizontal, { className: "mly:h-4 mly:w-4" }),
|
|
5274
5778
|
command: ({ editor, range }) => {
|
|
5275
5779
|
editor.chain().focus().deleteRange(range).setSection().run();
|
|
5276
5780
|
}
|
|
@@ -5279,7 +5783,7 @@ var repeat = {
|
|
|
5279
5783
|
title: "Repeat",
|
|
5280
5784
|
description: "Loop over an array of items.",
|
|
5281
5785
|
searchTerms: ["repeat", "for", "loop"],
|
|
5282
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_lucide_react8.Repeat2, { className: "mly
|
|
5786
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_lucide_react8.Repeat2, { className: "mly:h-4 mly:w-4" }),
|
|
5283
5787
|
command: ({ editor, range }) => {
|
|
5284
5788
|
editor.chain().focus().deleteRange(range).setRepeat().run();
|
|
5285
5789
|
}
|
|
@@ -5288,7 +5792,7 @@ var spacer = {
|
|
|
5288
5792
|
title: "Spacer",
|
|
5289
5793
|
description: "Add space between blocks.",
|
|
5290
5794
|
searchTerms: ["space", "gap", "divider"],
|
|
5291
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_lucide_react8.MoveVertical, { className: "mly
|
|
5795
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_lucide_react8.MoveVertical, { className: "mly:h-4 mly:w-4" }),
|
|
5292
5796
|
command: ({ editor, range }) => {
|
|
5293
5797
|
editor.chain().focus().deleteRange(range).setSpacer({ height: "sm" }).run();
|
|
5294
5798
|
}
|
|
@@ -5297,7 +5801,7 @@ var divider = {
|
|
|
5297
5801
|
title: "Divider",
|
|
5298
5802
|
description: "Add a horizontal divider.",
|
|
5299
5803
|
searchTerms: ["divider", "line"],
|
|
5300
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_lucide_react8.Minus, { className: "mly
|
|
5804
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_lucide_react8.Minus, { className: "mly:h-4 mly:w-4" }),
|
|
5301
5805
|
command: ({ editor, range }) => {
|
|
5302
5806
|
editor.chain().focus().deleteRange(range).setHorizontalRule().run();
|
|
5303
5807
|
}
|
|
@@ -5310,7 +5814,7 @@ var bulletList = {
|
|
|
5310
5814
|
title: "Bullet List",
|
|
5311
5815
|
description: "Create a simple bullet list.",
|
|
5312
5816
|
searchTerms: ["unordered", "point"],
|
|
5313
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_lucide_react9.List, { className: "mly
|
|
5817
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_lucide_react9.List, { className: "mly:h-4 mly:w-4" }),
|
|
5314
5818
|
command: ({ editor, range }) => {
|
|
5315
5819
|
editor.chain().focus().deleteRange(range).toggleBulletList().run();
|
|
5316
5820
|
}
|
|
@@ -5319,7 +5823,7 @@ var orderedList = {
|
|
|
5319
5823
|
title: "Numbered List",
|
|
5320
5824
|
description: "Create a list with numbering.",
|
|
5321
5825
|
searchTerms: ["ordered"],
|
|
5322
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_lucide_react9.ListOrdered, { className: "mly
|
|
5826
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_lucide_react9.ListOrdered, { className: "mly:h-4 mly:w-4" }),
|
|
5323
5827
|
command: ({ editor, range }) => {
|
|
5324
5828
|
editor.chain().focus().deleteRange(range).toggleOrderedList().run();
|
|
5325
5829
|
}
|
|
@@ -5332,7 +5836,7 @@ var text = {
|
|
|
5332
5836
|
title: "Text",
|
|
5333
5837
|
description: "Just start typing with plain text.",
|
|
5334
5838
|
searchTerms: ["p", "paragraph"],
|
|
5335
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_lucide_react10.Text, { className: "mly
|
|
5839
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_lucide_react10.Text, { className: "mly:h-4 mly:w-4" }),
|
|
5336
5840
|
command: ({ editor, range }) => {
|
|
5337
5841
|
editor.chain().focus().deleteRange(range).toggleNode("paragraph", "paragraph").run();
|
|
5338
5842
|
}
|
|
@@ -5341,7 +5845,7 @@ var heading1 = {
|
|
|
5341
5845
|
title: "Heading 1",
|
|
5342
5846
|
description: "Big heading.",
|
|
5343
5847
|
searchTerms: ["h1", "title", "big", "large"],
|
|
5344
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_lucide_react10.Heading1, { className: "mly
|
|
5848
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_lucide_react10.Heading1, { className: "mly:h-4 mly:w-4" }),
|
|
5345
5849
|
command: ({ editor, range }) => {
|
|
5346
5850
|
editor.chain().focus().deleteRange(range).setNode("heading", { level: 1 }).run();
|
|
5347
5851
|
}
|
|
@@ -5350,7 +5854,7 @@ var heading2 = {
|
|
|
5350
5854
|
title: "Heading 2",
|
|
5351
5855
|
description: "Medium heading.",
|
|
5352
5856
|
searchTerms: ["h2", "subtitle", "medium"],
|
|
5353
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_lucide_react10.Heading2, { className: "mly
|
|
5857
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_lucide_react10.Heading2, { className: "mly:h-4 mly:w-4" }),
|
|
5354
5858
|
command: ({ editor, range }) => {
|
|
5355
5859
|
editor.chain().focus().deleteRange(range).setNode("heading", { level: 2 }).run();
|
|
5356
5860
|
}
|
|
@@ -5359,7 +5863,7 @@ var heading3 = {
|
|
|
5359
5863
|
title: "Heading 3",
|
|
5360
5864
|
description: "Small heading.",
|
|
5361
5865
|
searchTerms: ["h3", "subtitle", "small"],
|
|
5362
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_lucide_react10.Heading3, { className: "mly
|
|
5866
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_lucide_react10.Heading3, { className: "mly:h-4 mly:w-4" }),
|
|
5363
5867
|
command: ({ editor, range }) => {
|
|
5364
5868
|
editor.chain().focus().deleteRange(range).setNode("heading", { level: 3 }).run();
|
|
5365
5869
|
}
|
|
@@ -5368,7 +5872,7 @@ var hardBreak = {
|
|
|
5368
5872
|
title: "Hard Break",
|
|
5369
5873
|
description: "Add a break between lines.",
|
|
5370
5874
|
searchTerms: ["break", "line"],
|
|
5371
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_lucide_react10.DivideIcon, { className: "mly
|
|
5875
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_lucide_react10.DivideIcon, { className: "mly:h-4 mly:w-4" }),
|
|
5372
5876
|
command: ({ editor, range }) => {
|
|
5373
5877
|
editor.chain().focus().deleteRange(range).setHardBreak().run();
|
|
5374
5878
|
}
|
|
@@ -5377,7 +5881,7 @@ var blockquote = {
|
|
|
5377
5881
|
title: "Blockquote",
|
|
5378
5882
|
description: "Add blockquote.",
|
|
5379
5883
|
searchTerms: ["quote", "blockquote"],
|
|
5380
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_lucide_react10.TextQuote, { className: "mly
|
|
5884
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_lucide_react10.TextQuote, { className: "mly:h-4 mly:w-4" }),
|
|
5381
5885
|
command: ({ editor, range }) => {
|
|
5382
5886
|
editor.chain().focus().deleteRange(range).toggleBlockquote().run();
|
|
5383
5887
|
}
|
|
@@ -5386,7 +5890,7 @@ var footer = {
|
|
|
5386
5890
|
title: "Footer",
|
|
5387
5891
|
description: "Add a footer text to email.",
|
|
5388
5892
|
searchTerms: ["footer", "text"],
|
|
5389
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_lucide_react10.FootprintsIcon, { className: "mly
|
|
5893
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_lucide_react10.FootprintsIcon, { className: "mly:h-4 mly:w-4" }),
|
|
5390
5894
|
command: ({ editor, range }) => {
|
|
5391
5895
|
editor.chain().focus().deleteRange(range).setFooter().run();
|
|
5392
5896
|
}
|
|
@@ -5395,7 +5899,7 @@ var clearLine = {
|
|
|
5395
5899
|
title: "Clear Line",
|
|
5396
5900
|
description: "Clear the current line.",
|
|
5397
5901
|
searchTerms: ["clear", "line"],
|
|
5398
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_lucide_react10.EraserIcon, { className: "mly
|
|
5902
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_lucide_react10.EraserIcon, { className: "mly:h-4 mly:w-4" }),
|
|
5399
5903
|
command: ({ editor, range }) => {
|
|
5400
5904
|
editor.chain().focus().selectParentNode().deleteSelection().run();
|
|
5401
5905
|
}
|
|
@@ -5595,7 +6099,7 @@ var headerLogoWithTextHorizontal = {
|
|
|
5595
6099
|
title: "Logo with Text (Horizontal)",
|
|
5596
6100
|
description: "Logo and a text horizontally",
|
|
5597
6101
|
searchTerms: ["logo", "text"],
|
|
5598
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(LogoWithTextHorizonIcon, { className: "mly
|
|
6102
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(LogoWithTextHorizonIcon, { className: "mly:h-4 mly:w-4" }),
|
|
5599
6103
|
command: ({ editor, range }) => {
|
|
5600
6104
|
editor.chain().deleteRange(range).insertContent({
|
|
5601
6105
|
type: "columns",
|
|
@@ -5659,7 +6163,7 @@ var headerLogoWithTextVertical = {
|
|
|
5659
6163
|
title: "Logo with Text (Vertical)",
|
|
5660
6164
|
description: "Logo and a text vertically",
|
|
5661
6165
|
searchTerms: ["logo", "text"],
|
|
5662
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(LogoWithTextVerticalIcon, { className: "mly
|
|
6166
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(LogoWithTextVerticalIcon, { className: "mly:h-4 mly:w-4" }),
|
|
5663
6167
|
command: ({ editor, range }) => {
|
|
5664
6168
|
editor.chain().deleteRange(range).insertContent([
|
|
5665
6169
|
{
|
|
@@ -5690,7 +6194,7 @@ var headerLogoWithCoverImage = {
|
|
|
5690
6194
|
title: "Logo with Cover Image",
|
|
5691
6195
|
description: "Logo and a cover image",
|
|
5692
6196
|
searchTerms: ["logo", "cover", "image"],
|
|
5693
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(LogoWithCoverImageIcon, { className: "mly
|
|
6197
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(LogoWithCoverImageIcon, { className: "mly:h-4 mly:w-4" }),
|
|
5694
6198
|
command: ({ editor, range }) => {
|
|
5695
6199
|
const todayFormatted = (/* @__PURE__ */ new Date()).toLocaleDateString("en-US", {
|
|
5696
6200
|
year: "numeric",
|
|
@@ -5784,7 +6288,7 @@ var footerCopyrightText = {
|
|
|
5784
6288
|
title: "Footer Copyright",
|
|
5785
6289
|
description: "Copyright text for the footer.",
|
|
5786
6290
|
searchTerms: ["footer", "copyright"],
|
|
5787
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_lucide_react11.CopyrightIcon, { className: "mly
|
|
6291
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_lucide_react11.CopyrightIcon, { className: "mly:h-4 mly:w-4" }),
|
|
5788
6292
|
command: ({ editor, range }) => {
|
|
5789
6293
|
const currentYear = (/* @__PURE__ */ new Date()).getFullYear();
|
|
5790
6294
|
editor.chain().focus().deleteRange(range).insertContent({
|
|
@@ -5804,7 +6308,7 @@ var footerCommunityFeedbackCta = {
|
|
|
5804
6308
|
title: "Footer Community Feedback CTA",
|
|
5805
6309
|
description: "Community feedback CTA for the footer.",
|
|
5806
6310
|
searchTerms: ["footer", "community", "feedback", "cta"],
|
|
5807
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_lucide_react11.RectangleHorizontalIcon, { className: "mly
|
|
6311
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_lucide_react11.RectangleHorizontalIcon, { className: "mly:h-4 mly:w-4" }),
|
|
5808
6312
|
command: ({ editor, range }) => {
|
|
5809
6313
|
editor.chain().focus().deleteRange(range).insertContent([
|
|
5810
6314
|
{
|
|
@@ -5847,7 +6351,7 @@ var footerCompanySignature = {
|
|
|
5847
6351
|
title: "Footer Company Signature",
|
|
5848
6352
|
description: "Company signature for the footer.",
|
|
5849
6353
|
searchTerms: ["footer", "company", "signature"],
|
|
5850
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_lucide_react11.LayoutTemplateIcon, { className: "mly
|
|
6354
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_lucide_react11.LayoutTemplateIcon, { className: "mly:h-4 mly:w-4" }),
|
|
5851
6355
|
command: ({ editor, range }) => {
|
|
5852
6356
|
editor.chain().focus().deleteRange(range).insertContent([
|
|
5853
6357
|
{ type: "horizontalRule" },
|
|
@@ -5892,7 +6396,7 @@ var footerCompanySignature = {
|
|
|
5892
6396
|
href: "https://maily.to",
|
|
5893
6397
|
target: "_blank",
|
|
5894
6398
|
rel: "noopener noreferrer nofollow",
|
|
5895
|
-
class: "mly
|
|
6399
|
+
class: "mly:no-underline",
|
|
5896
6400
|
isUrlVariable: false
|
|
5897
6401
|
}
|
|
5898
6402
|
},
|
|
@@ -5915,7 +6419,7 @@ var footerCompanySignature = {
|
|
|
5915
6419
|
href: "https://maily.to",
|
|
5916
6420
|
target: "_blank",
|
|
5917
6421
|
rel: "noopener noreferrer nofollow",
|
|
5918
|
-
class: "mly
|
|
6422
|
+
class: "mly:no-underline",
|
|
5919
6423
|
isUrlVariable: false
|
|
5920
6424
|
}
|
|
5921
6425
|
},
|
|
@@ -5938,7 +6442,7 @@ var footerCompanySignature = {
|
|
|
5938
6442
|
href: "https://maily.to",
|
|
5939
6443
|
target: "_blank",
|
|
5940
6444
|
rel: "noopener noreferrer nofollow",
|
|
5941
|
-
class: "mly
|
|
6445
|
+
class: "mly:no-underline",
|
|
5942
6446
|
isUrlVariable: false
|
|
5943
6447
|
}
|
|
5944
6448
|
},
|
|
@@ -6036,7 +6540,7 @@ var DEFAULT_SLASH_COMMANDS = [
|
|
|
6036
6540
|
title: "Headers",
|
|
6037
6541
|
description: "Add pre-designed headers block",
|
|
6038
6542
|
searchTerms: ["header", "headers"],
|
|
6039
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_lucide_react12.Heading1, { className: "mly
|
|
6543
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_lucide_react12.Heading1, { className: "mly:h-4 mly:w-4" }),
|
|
6040
6544
|
preview: "https://cdn.usemaily.com/previews/header-preview-xyz.png",
|
|
6041
6545
|
commands: [
|
|
6042
6546
|
headerLogoWithTextVertical,
|
|
@@ -6049,7 +6553,7 @@ var DEFAULT_SLASH_COMMANDS = [
|
|
|
6049
6553
|
title: "Footers",
|
|
6050
6554
|
description: "Add pre-designed footers block",
|
|
6051
6555
|
searchTerms: ["footers"],
|
|
6052
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_lucide_react12.FootprintsIcon, { className: "mly
|
|
6556
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_lucide_react12.FootprintsIcon, { className: "mly:h-4 mly:w-4" }),
|
|
6053
6557
|
commands: [
|
|
6054
6558
|
footerCopyrightText,
|
|
6055
6559
|
footerCommunityFeedbackCta,
|
|
@@ -6134,41 +6638,41 @@ var VariableSuggestionsPopover = (0, import_react17.forwardRef)((props, ref) =>
|
|
|
6134
6638
|
onSelectItem(item);
|
|
6135
6639
|
}
|
|
6136
6640
|
}));
|
|
6137
|
-
return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "mly
|
|
6138
|
-
/* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "mly
|
|
6139
|
-
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "mly
|
|
6140
|
-
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(VariableIcon, { children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_lucide_react13.Braces, { className: "mly
|
|
6641
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "mly:z-50 mly:w-64 mly:rounded-lg mly:border mly:border-gray-200 mly:bg-white mly:shadow-md mly:transition-all", children: [
|
|
6642
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "mly:flex mly:items-center mly:justify-between mly:gap-2 mly:border-b mly:border-gray-200 mly:bg-soft-gray/40 mly:px-1 mly:py-1.5 mly:text-gray-500", children: [
|
|
6643
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "mly:text-xs mly:uppercase", children: "Variables" }),
|
|
6644
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(VariableIcon, { children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_lucide_react13.Braces, { className: "mly:size-3 mly:stroke-[2.5]" }) })
|
|
6141
6645
|
] }),
|
|
6142
6646
|
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
6143
6647
|
"div",
|
|
6144
6648
|
{
|
|
6145
6649
|
ref: scrollContainerRef,
|
|
6146
|
-
className: "mly
|
|
6147
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: "mly
|
|
6650
|
+
className: "mly:max-h-52 mly:overflow-y-auto mly:scrollbar-thin mly:scrollbar-track-transparent mly:scrollbar-thumb-gray-200",
|
|
6651
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: "mly:flex mly:w-fit mly:min-w-full mly:flex-col mly:gap-0.5 mly:p-1", children: (items == null ? void 0 : items.length) ? items == null ? void 0 : items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
|
|
6148
6652
|
"button",
|
|
6149
6653
|
{
|
|
6150
6654
|
ref: (el) => itemRefs.current[index] = el,
|
|
6151
6655
|
onClick: () => onSelectItem(item),
|
|
6152
6656
|
className: cn(
|
|
6153
|
-
"mly
|
|
6154
|
-
index === selectedIndex ? "mly
|
|
6657
|
+
"mly:flex mly:w-fit mly:min-w-full mly:items-center mly:gap-2 mly:rounded-md mly:px-2 mly:py-1 mly:text-left mly:font-mono mly:text-sm mly:text-gray-900 mly:hover:bg-soft-gray",
|
|
6658
|
+
index === selectedIndex ? "mly:bg-soft-gray" : "mly:bg-white"
|
|
6155
6659
|
),
|
|
6156
6660
|
children: [
|
|
6157
|
-
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_lucide_react13.Braces, { className: "mly
|
|
6661
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_lucide_react13.Braces, { className: "mly:size-3 mly:stroke-[2.5] mly:text-rose-600" }),
|
|
6158
6662
|
item.name
|
|
6159
6663
|
]
|
|
6160
6664
|
},
|
|
6161
6665
|
index
|
|
6162
|
-
)) : /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: "mly
|
|
6666
|
+
)) : /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: "mly:flex mly:h-7 mly:w-full mly:items-center mly:gap-2 mly:rounded-md mly:px-2 mly:py-1 mly:text-left mly:font-mono mly:text-[13px] mly:text-gray-900 mly:hover:bg-soft-gray", children: "No result" }) })
|
|
6163
6667
|
}
|
|
6164
6668
|
),
|
|
6165
|
-
/* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "mly
|
|
6166
|
-
/* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "mly
|
|
6167
|
-
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(VariableIcon, { children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_lucide_react13.ArrowDownIcon, { className: "mly
|
|
6168
|
-
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(VariableIcon, { children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_lucide_react13.ArrowUpIcon, { className: "mly
|
|
6169
|
-
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "mly
|
|
6669
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "mly:flex mly:items-center mly:justify-between mly:gap-2 mly:border-t mly:border-gray-200 mly:px-1 mly:py-1.5 mly:text-gray-500", children: [
|
|
6670
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "mly:flex mly:items-center mly:gap-1", children: [
|
|
6671
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(VariableIcon, { children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_lucide_react13.ArrowDownIcon, { className: "mly:size-3 mly:stroke-[2.5]" }) }),
|
|
6672
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(VariableIcon, { children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_lucide_react13.ArrowUpIcon, { className: "mly:size-3 mly:stroke-[2.5]" }) }),
|
|
6673
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "mly:text-xs mly:text-gray-500", children: "Navigate" })
|
|
6170
6674
|
] }),
|
|
6171
|
-
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(VariableIcon, { children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_lucide_react13.CornerDownLeftIcon, { className: "mly
|
|
6675
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(VariableIcon, { children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_lucide_react13.CornerDownLeftIcon, { className: "mly:size-3 mly:stroke-[2.5]" }) })
|
|
6172
6676
|
] })
|
|
6173
6677
|
] });
|
|
6174
6678
|
});
|
|
@@ -6178,7 +6682,7 @@ function VariableIcon(props) {
|
|
|
6178
6682
|
"div",
|
|
6179
6683
|
{
|
|
6180
6684
|
className: cn(
|
|
6181
|
-
"mly
|
|
6685
|
+
"mly:flex mly:size-5 mly:items-center mly:justify-center mly:rounded-md mly:border mly:border-gray-200",
|
|
6182
6686
|
className
|
|
6183
6687
|
),
|
|
6184
6688
|
children
|
|
@@ -6199,14 +6703,10 @@ function VariableView(props) {
|
|
|
6199
6703
|
const variableRender = (_b = (_a = getNodeOptions(editor, "variable")) == null ? void 0 : _a.renderVariable) != null ? _b : DEFAULT_RENDER_VARIABLE_FUNCTION;
|
|
6200
6704
|
return variableRender;
|
|
6201
6705
|
}, [editor]);
|
|
6202
|
-
const disableInput = (0, import_react19.useMemo)(() => {
|
|
6203
|
-
var _a, _b;
|
|
6204
|
-
return (_b = (_a = getNodeOptions(editor, "variable")) == null ? void 0 : _a.disableInput) != null ? _b : false;
|
|
6205
|
-
}, [editor]);
|
|
6206
6706
|
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
6207
6707
|
import_react18.NodeViewWrapper,
|
|
6208
6708
|
{
|
|
6209
|
-
className: "react-component mly
|
|
6709
|
+
className: "react-component mly:inline-block mly:leading-none",
|
|
6210
6710
|
draggable: "false",
|
|
6211
6711
|
children: /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
|
|
6212
6712
|
Popover,
|
|
@@ -6226,17 +6726,16 @@ function VariableView(props) {
|
|
|
6226
6726
|
{
|
|
6227
6727
|
align: "start",
|
|
6228
6728
|
side: "bottom",
|
|
6229
|
-
className: "mly
|
|
6729
|
+
className: "mly:w-max mly:rounded-lg mly:p-0.5!",
|
|
6230
6730
|
sideOffset: 8,
|
|
6231
6731
|
onOpenAutoFocus: (e) => e.preventDefault(),
|
|
6232
6732
|
onCloseAutoFocus: (e) => e.preventDefault(),
|
|
6233
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(TooltipProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: "mly
|
|
6234
|
-
/* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("label", { className: "mly
|
|
6235
|
-
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: "mly
|
|
6733
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(TooltipProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: "mly:flex mly:items-stretch mly:text-midnight-gray", children: [
|
|
6734
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("label", { className: "mly:relative", children: [
|
|
6735
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: "mly:inline-block mly:px-2 mly:text-xs mly:text-midnight-gray", children: "Variable" }),
|
|
6236
6736
|
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
6237
6737
|
"input",
|
|
6238
6738
|
__spreadProps(__spreadValues({}, AUTOCOMPLETE_PASSWORD_MANAGERS_OFF), {
|
|
6239
|
-
disabled: disableInput,
|
|
6240
6739
|
value: id != null ? id : "",
|
|
6241
6740
|
onChange: (e) => {
|
|
6242
6741
|
updateAttributes2({
|
|
@@ -6244,14 +6743,14 @@ function VariableView(props) {
|
|
|
6244
6743
|
});
|
|
6245
6744
|
},
|
|
6246
6745
|
placeholder: "ie. name...",
|
|
6247
|
-
className: "mly
|
|
6746
|
+
className: "mly:h-7 mly:w-36 mly:rounded-md mly:bg-soft-gray mly:px-2 mly:text-sm mly:text-midnight-gray mly:focus:bg-soft-gray mly:focus:outline-hidden mly:disabled:cursor-not-allowed"
|
|
6248
6747
|
})
|
|
6249
6748
|
)
|
|
6250
6749
|
] }),
|
|
6251
6750
|
!hideDefaultValue && /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(import_jsx_runtime29.Fragment, { children: [
|
|
6252
|
-
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Divider, { className: "mly
|
|
6253
|
-
/* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("label", { className: "mly
|
|
6254
|
-
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: "mly
|
|
6751
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Divider, { className: "mly:mx-1.5" }),
|
|
6752
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("label", { className: "mly:relative", children: [
|
|
6753
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: "mly:inline-block mly:px-2 mly:pl-1 mly:text-xs mly:text-midnight-gray", children: "Default" }),
|
|
6255
6754
|
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
6256
6755
|
"input",
|
|
6257
6756
|
__spreadProps(__spreadValues({}, AUTOCOMPLETE_PASSWORD_MANAGERS_OFF), {
|
|
@@ -6262,10 +6761,10 @@ function VariableView(props) {
|
|
|
6262
6761
|
});
|
|
6263
6762
|
},
|
|
6264
6763
|
placeholder: "ie. John Doe...",
|
|
6265
|
-
className: "mly
|
|
6764
|
+
className: "mly:h-7 mly:w-32 mly:rounded-md mly:bg-soft-gray mly:px-2 mly:pr-6 mly:text-sm mly:text-midnight-gray mly:focus:bg-soft-gray mly:focus:outline-none"
|
|
6266
6765
|
})
|
|
6267
6766
|
),
|
|
6268
|
-
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "mly
|
|
6767
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "mly:absolute mly:inset-y-0 mly:right-1 mly:flex mly:items-center", children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_lucide_react14.Pencil, { className: "mly:h-3 mly:w-3 mly:stroke-[2.5] mly:text-midnight-gray" }) })
|
|
6269
6768
|
] })
|
|
6270
6769
|
] })
|
|
6271
6770
|
] }) })
|
|
@@ -6281,9 +6780,9 @@ var DefaultRenderVariable = (props) => {
|
|
|
6281
6780
|
const { variable, fallback, from } = props;
|
|
6282
6781
|
const { name, required, valid } = variable;
|
|
6283
6782
|
if (from === "button-variable") {
|
|
6284
|
-
return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: "mly
|
|
6285
|
-
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_lucide_react14.Braces, { className: "mly
|
|
6286
|
-
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: "mly
|
|
6783
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: "mly:inline-grid mly:max-w-xs mly:grid-cols-[12px_1fr] mly:items-center mly:gap-1.5 mly:rounded-md mly:border mly:border-(--button-var-border-color) mly:px-2 mly:py-px mly:font-mono mly:text-xs", children: [
|
|
6784
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_lucide_react14.Braces, { className: "mly:h-3 mly:w-3 mly:shrink-0 mly:stroke-[2.5]" }),
|
|
6785
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: "mly:min-w-0 mly:truncate mly:text-left", children: name })
|
|
6287
6786
|
] });
|
|
6288
6787
|
}
|
|
6289
6788
|
if (from === "bubble-variable") {
|
|
@@ -6291,12 +6790,12 @@ var DefaultRenderVariable = (props) => {
|
|
|
6291
6790
|
"div",
|
|
6292
6791
|
{
|
|
6293
6792
|
className: cn(
|
|
6294
|
-
"mly
|
|
6295
|
-
!valid && "mly
|
|
6793
|
+
"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 mly:hover:bg-soft-gray",
|
|
6794
|
+
!valid && "mly:border-rose-400 mly:bg-rose-50 mly:text-rose-600 mly:hover:bg-rose-100"
|
|
6296
6795
|
),
|
|
6297
6796
|
children: [
|
|
6298
|
-
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_lucide_react14.Braces, { className: "mly
|
|
6299
|
-
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: "mly
|
|
6797
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_lucide_react14.Braces, { className: "mly:h-3 mly:w-3 mly:shrink-0 mly:stroke-[2.5] mly:text-rose-600" }),
|
|
6798
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: "mly:min-w-0 mly:truncate mly:text-left", children: name })
|
|
6300
6799
|
]
|
|
6301
6800
|
}
|
|
6302
6801
|
);
|
|
@@ -6305,11 +6804,11 @@ var DefaultRenderVariable = (props) => {
|
|
|
6305
6804
|
"span",
|
|
6306
6805
|
{
|
|
6307
6806
|
tabIndex: -1,
|
|
6308
|
-
className: "mly
|
|
6807
|
+
className: "mly:inline-flex mly:items-center mly:gap-(--variable-icon-gap) mly:rounded-full mly:border mly:border-gray-200 mly:px-1.5 mly:py-0.5 mly:leading-none",
|
|
6309
6808
|
children: [
|
|
6310
|
-
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_lucide_react14.Braces, { className: "mly
|
|
6809
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_lucide_react14.Braces, { className: "mly:size-[var(--variable-icon-size)] mly:shrink-0 mly:stroke-[2.5] mly:text-rose-600" }),
|
|
6311
6810
|
name,
|
|
6312
|
-
required && !fallback && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_lucide_react14.AlertTriangle, { className: "mly
|
|
6811
|
+
required && !fallback && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_lucide_react14.AlertTriangle, { className: "mly:size-[var(--variable-icon-size)] mly:shrink-0 mly:stroke-[2.5]" })
|
|
6313
6812
|
]
|
|
6314
6813
|
}
|
|
6315
6814
|
);
|
|
@@ -6483,7 +6982,7 @@ var VariableExtension = import_core11.Node.create({
|
|
|
6483
6982
|
},
|
|
6484
6983
|
addNodeView() {
|
|
6485
6984
|
return (0, import_react20.ReactNodeViewRenderer)(VariableView, {
|
|
6486
|
-
className: "mly
|
|
6985
|
+
className: "mly:relative mly:inline-block",
|
|
6487
6986
|
as: "div"
|
|
6488
6987
|
});
|
|
6489
6988
|
}
|
|
@@ -6526,9 +7025,9 @@ function LinkInputPopover(props) {
|
|
|
6526
7025
|
variant: "ghost",
|
|
6527
7026
|
size: "sm",
|
|
6528
7027
|
type: "button",
|
|
6529
|
-
className: "!mly-
|
|
7028
|
+
className: "mly:h-7! mly:w-7!",
|
|
6530
7029
|
"data-state": !!defaultValue,
|
|
6531
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Icon, { className: "mly
|
|
7030
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Icon, { className: "mly:h-3 mly:w-3 mly:shrink-0 mly:stroke-[2.5] mly:text-midnight-gray" })
|
|
6532
7031
|
}
|
|
6533
7032
|
) });
|
|
6534
7033
|
return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
|
|
@@ -6554,7 +7053,7 @@ function LinkInputPopover(props) {
|
|
|
6554
7053
|
{
|
|
6555
7054
|
align: "end",
|
|
6556
7055
|
side: "top",
|
|
6557
|
-
className: "mly
|
|
7056
|
+
className: "mly:w-max mly:rounded-none mly:border-none mly:bg-transparent mly:p-0! mly:shadow-none",
|
|
6558
7057
|
sideOffset: 8,
|
|
6559
7058
|
onCloseAutoFocus: (e) => e.preventDefault(),
|
|
6560
7059
|
children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
@@ -6569,8 +7068,8 @@ function LinkInputPopover(props) {
|
|
|
6569
7068
|
onValueChange == null ? void 0 : onValueChange(input.value);
|
|
6570
7069
|
setIsOpen(false);
|
|
6571
7070
|
},
|
|
6572
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "mly
|
|
6573
|
-
!isEditing && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "mly
|
|
7071
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "mly:isolate mly:flex mly:rounded-lg", children: [
|
|
7072
|
+
!isEditing && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "mly:flex mly:h-8 mly:items-center mly:rounded-lg mly:border mly:border-gray-300 mly:bg-white mly:px-0.5", children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
6574
7073
|
"button",
|
|
6575
7074
|
{
|
|
6576
7075
|
onClick: () => {
|
|
@@ -6591,8 +7090,8 @@ function LinkInputPopover(props) {
|
|
|
6591
7090
|
})
|
|
6592
7091
|
}
|
|
6593
7092
|
) }),
|
|
6594
|
-
isEditing && /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "mly
|
|
6595
|
-
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "mly
|
|
7093
|
+
isEditing && /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "mly:relative", children: [
|
|
7094
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "mly:absolute mly:inset-y-0 mly:left-1.5 mly:z-10 mly:flex mly:items-center", children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_lucide_react15.LinkIcon, { className: "mly:h-3 mly:w-3 mly:stroke-[2.5] mly:text-midnight-gray" }) }),
|
|
6596
7095
|
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
6597
7096
|
InputAutocomplete,
|
|
6598
7097
|
{
|
|
@@ -6604,7 +7103,7 @@ function LinkInputPopover(props) {
|
|
|
6604
7103
|
autoCompleteOptions,
|
|
6605
7104
|
ref: linkInputRef,
|
|
6606
7105
|
placeholder: placeholderUrl,
|
|
6607
|
-
className: "-mly
|
|
7106
|
+
className: "-mly:ms-px mly:block mly:h-8 mly:w-56 mly:rounded-lg mly:border mly:border-gray-300 mly:px-2 mly:py-1.5 mly:pl-6 mly:pr-6 mly:text-sm mly:shadow-sm mly:outline-hidden mly:placeholder:text-gray-400",
|
|
6608
7107
|
triggerChar: variableTriggerCharacter,
|
|
6609
7108
|
onSelectOption: (value) => {
|
|
6610
7109
|
var _a2;
|
|
@@ -6645,16 +7144,16 @@ function Select(props) {
|
|
|
6645
7144
|
placeholder
|
|
6646
7145
|
} = props;
|
|
6647
7146
|
const selectId = `mly${(0, import_react23.useId)()}`;
|
|
6648
|
-
const content = /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "mly
|
|
6649
|
-
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)("label", { htmlFor: selectId, className: "mly
|
|
6650
|
-
Icon && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "mly
|
|
7147
|
+
const content = /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "mly:relative", children: [
|
|
7148
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)("label", { htmlFor: selectId, className: "mly:sr-only", children: label }),
|
|
7149
|
+
Icon && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "mly:pointer-events-none mly:absolute mly:inset-y-0 mly:left-2 mly:z-20 mly:flex mly:items-center", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Icon, { className: cn("mly:size-3", iconClassName) }) }),
|
|
6651
7150
|
/* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
|
|
6652
7151
|
"select",
|
|
6653
7152
|
{
|
|
6654
7153
|
id: selectId,
|
|
6655
7154
|
className: cn(
|
|
6656
|
-
"mly
|
|
6657
|
-
!!Icon && "mly
|
|
7155
|
+
"mly:flex mly:min-h-7 mly:max-w-max mly:appearance-none mly:items-center mly:rounded-md mly:bg-white mly:px-1.5 mly:py-0.5 mly:pr-7 mly:text-sm mly:text-midnight-gray mly:ring-offset-white mly:transition-colors mly:hover:bg-soft-gray mly:focus-visible:relative mly:focus-visible:z-10 mly:focus-visible:outline-hidden mly:focus-visible:ring-2 mly:focus-visible:ring-gray-400 mly:focus-visible:ring-offset-2 mly:active:bg-soft-gray",
|
|
7156
|
+
!!Icon && "mly:pl-7",
|
|
6658
7157
|
className
|
|
6659
7158
|
),
|
|
6660
7159
|
value: value || "",
|
|
@@ -6665,7 +7164,7 @@ function Select(props) {
|
|
|
6665
7164
|
]
|
|
6666
7165
|
}
|
|
6667
7166
|
),
|
|
6668
|
-
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "mly
|
|
7167
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "mly:pointer-events-none mly:absolute mly:inset-y-0 mly:right-0 mly:z-10 mly:flex mly:h-full mly:w-7 mly:items-center mly:justify-center mly:text-gray-600 mly:peer-disabled:opacity-50", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
6669
7168
|
import_lucide_react16.ChevronDownIcon,
|
|
6670
7169
|
{
|
|
6671
7170
|
size: 16,
|
|
@@ -6712,7 +7211,7 @@ function ButtonLabelInput(props) {
|
|
|
6712
7211
|
editor
|
|
6713
7212
|
}).map((variable) => variable.name);
|
|
6714
7213
|
}, [variables, value, editor]);
|
|
6715
|
-
return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "mly
|
|
7214
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "mly:isolate mly:flex mly:rounded-lg", children: [
|
|
6716
7215
|
!isEditing && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
6717
7216
|
"button",
|
|
6718
7217
|
{
|
|
@@ -6745,7 +7244,7 @@ function ButtonLabelInput(props) {
|
|
|
6745
7244
|
autoCompleteOptions,
|
|
6746
7245
|
ref: linkInputRef,
|
|
6747
7246
|
placeholder: placeholderUrl,
|
|
6748
|
-
className: "mly
|
|
7247
|
+
className: "mly:h-7 mly:w-40 mly:rounded-md mly:px-2 mly:pr-6 mly:text-sm mly:text-midnight-gray mly:hover:bg-soft-gray mly:focus:bg-soft-gray mly:focus:outline-hidden",
|
|
6749
7248
|
triggerChar: variableTriggerCharacter,
|
|
6750
7249
|
onSelectOption: (value2) => {
|
|
6751
7250
|
var _a2;
|
|
@@ -6819,12 +7318,12 @@ function ButtonView(props) {
|
|
|
6819
7318
|
"button",
|
|
6820
7319
|
{
|
|
6821
7320
|
className: cn(
|
|
6822
|
-
"mly
|
|
6823
|
-
"mly
|
|
7321
|
+
"mly:inline-flex mly:items-center mly:justify-center mly:rounded-md mly:text-sm mly:font-medium mly:ring-offset-white mly:transition-colors mly:disabled:pointer-events-none mly:disabled:opacity-50",
|
|
7322
|
+
"mly:font-semibold mly:no-underline",
|
|
6824
7323
|
{
|
|
6825
|
-
"
|
|
6826
|
-
"
|
|
6827
|
-
"
|
|
7324
|
+
"mly:rounded-full!": _radius === "round",
|
|
7325
|
+
"mly:rounded-md!": _radius === "smooth",
|
|
7326
|
+
"mly:rounded-none!": _radius === "sharp"
|
|
6828
7327
|
}
|
|
6829
7328
|
),
|
|
6830
7329
|
tabIndex: -1,
|
|
@@ -6863,11 +7362,11 @@ function ButtonView(props) {
|
|
|
6863
7362
|
{
|
|
6864
7363
|
align: "end",
|
|
6865
7364
|
side: "top",
|
|
6866
|
-
className: "mly
|
|
7365
|
+
className: "mly:w-max mly:rounded-lg mly:p-0.5!",
|
|
6867
7366
|
sideOffset: 8,
|
|
6868
7367
|
onOpenAutoFocus: (e) => e.preventDefault(),
|
|
6869
7368
|
onCloseAutoFocus: (e) => e.preventDefault(),
|
|
6870
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(TooltipProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "mly
|
|
7369
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(TooltipProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "mly:flex mly:items-stretch mly:text-midnight-gray", children: [
|
|
6871
7370
|
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
6872
7371
|
ButtonLabelInput,
|
|
6873
7372
|
{
|
|
@@ -6883,7 +7382,7 @@ function ButtonView(props) {
|
|
|
6883
7382
|
}
|
|
6884
7383
|
),
|
|
6885
7384
|
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Divider, {}),
|
|
6886
|
-
/* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "mly
|
|
7385
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "mly:flex mly:gap-x-0.5", children: [
|
|
6887
7386
|
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
6888
7387
|
Select,
|
|
6889
7388
|
{
|
|
@@ -6899,7 +7398,7 @@ function ButtonView(props) {
|
|
|
6899
7398
|
});
|
|
6900
7399
|
},
|
|
6901
7400
|
tooltip: "Border Radius",
|
|
6902
|
-
className: "mly
|
|
7401
|
+
className: "mly:capitalize"
|
|
6903
7402
|
}
|
|
6904
7403
|
),
|
|
6905
7404
|
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
@@ -6917,7 +7416,7 @@ function ButtonView(props) {
|
|
|
6917
7416
|
});
|
|
6918
7417
|
},
|
|
6919
7418
|
tooltip: "Style",
|
|
6920
|
-
className: "mly
|
|
7419
|
+
className: "mly:capitalize"
|
|
6921
7420
|
}
|
|
6922
7421
|
),
|
|
6923
7422
|
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
@@ -6945,7 +7444,7 @@ function ButtonView(props) {
|
|
|
6945
7444
|
)
|
|
6946
7445
|
] }),
|
|
6947
7446
|
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Divider, {}),
|
|
6948
|
-
/* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "mly
|
|
7447
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "mly:flex mly:gap-x-0.5", children: [
|
|
6949
7448
|
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
6950
7449
|
AlignmentSwitch,
|
|
6951
7450
|
{
|
|
@@ -6974,7 +7473,7 @@ function ButtonView(props) {
|
|
|
6974
7473
|
)
|
|
6975
7474
|
] }),
|
|
6976
7475
|
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Divider, {}),
|
|
6977
|
-
/* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "mly
|
|
7476
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "mly:flex mly:gap-x-0.5", children: [
|
|
6978
7477
|
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
6979
7478
|
BackgroundColorPickerPopup,
|
|
6980
7479
|
{
|
|
@@ -7033,11 +7532,11 @@ function BackgroundColorPickerPopup(props) {
|
|
|
7033
7532
|
variant: "ghost",
|
|
7034
7533
|
size: "sm",
|
|
7035
7534
|
type: "button",
|
|
7036
|
-
className: "mly
|
|
7535
|
+
className: "mly:size-7",
|
|
7037
7536
|
children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
7038
7537
|
"div",
|
|
7039
7538
|
{
|
|
7040
|
-
className: "mly
|
|
7539
|
+
className: "mly:h-4 mly:w-4 mly:shrink-0 mly:rounded-full mly:shadow",
|
|
7041
7540
|
style: {
|
|
7042
7541
|
backgroundColor: variant === "filled" ? color : "transparent",
|
|
7043
7542
|
borderStyle: "solid",
|
|
@@ -7059,13 +7558,13 @@ function TextColorPickerPopup(props) {
|
|
|
7059
7558
|
variant: "ghost",
|
|
7060
7559
|
size: "sm",
|
|
7061
7560
|
type: "button",
|
|
7062
|
-
className: "mly
|
|
7063
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "mly
|
|
7064
|
-
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: "mly
|
|
7561
|
+
className: "mly:size-7",
|
|
7562
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "mly:flex mly:flex-col mly:items-center mly:justify-center mly:gap-px", children: [
|
|
7563
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: "mly:font-bolder mly:font-mono mly:text-xs mly:text-midnight-gray", children: "A" }),
|
|
7065
7564
|
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
7066
7565
|
"div",
|
|
7067
7566
|
{
|
|
7068
|
-
className: "mly
|
|
7567
|
+
className: "mly:h-[2px] mly:w-3 mly:shrink-0 mly:rounded-md mly:shadow",
|
|
7069
7568
|
style: { backgroundColor: color }
|
|
7070
7569
|
}
|
|
7071
7570
|
)
|
|
@@ -7231,7 +7730,7 @@ var ButtonExtension = import_core12.Node.create({
|
|
|
7231
7730
|
addNodeView() {
|
|
7232
7731
|
return (0, import_react27.ReactNodeViewRenderer)(ButtonView, {
|
|
7233
7732
|
contentDOMElementTag: "div",
|
|
7234
|
-
className: "mly
|
|
7733
|
+
className: "mly:relative"
|
|
7235
7734
|
});
|
|
7236
7735
|
}
|
|
7237
7736
|
});
|
|
@@ -7377,7 +7876,7 @@ var ImageExtension = import_extension_image2.default.extend({
|
|
|
7377
7876
|
},
|
|
7378
7877
|
addNodeView() {
|
|
7379
7878
|
return (0, import_react28.ReactNodeViewRenderer)(ImageView, {
|
|
7380
|
-
className: "mly
|
|
7879
|
+
className: "mly:relative"
|
|
7381
7880
|
});
|
|
7382
7881
|
}
|
|
7383
7882
|
});
|
|
@@ -7467,7 +7966,7 @@ function RepeatView(props) {
|
|
|
7467
7966
|
"data-type": "repeat",
|
|
7468
7967
|
draggable: editor.isEditable,
|
|
7469
7968
|
"data-drag-handle": editor.isEditable,
|
|
7470
|
-
className: "mly
|
|
7969
|
+
className: "mly:relative",
|
|
7471
7970
|
children: [
|
|
7472
7971
|
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_react29.NodeViewContent, { className: "is-editable" }),
|
|
7473
7972
|
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
|
|
@@ -7475,14 +7974,14 @@ function RepeatView(props) {
|
|
|
7475
7974
|
{
|
|
7476
7975
|
role: "button",
|
|
7477
7976
|
"data-repeat-indicator": "",
|
|
7478
|
-
className: "mly
|
|
7977
|
+
className: "mly:absolute mly:inset-y-0 mly:right-0 mly:flex mly:translate-x-full mly:cursor-pointer mly:flex-col mly:items-center mly:gap-1 mly:opacity-60",
|
|
7479
7978
|
contentEditable: false,
|
|
7480
7979
|
onClick: () => {
|
|
7481
7980
|
editor.commands.setNodeSelection(getPos());
|
|
7482
7981
|
},
|
|
7483
7982
|
children: [
|
|
7484
|
-
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_lucide_react17.Repeat2, { className: "mly
|
|
7485
|
-
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "mly
|
|
7983
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_lucide_react17.Repeat2, { className: "mly:size-3 mly:stroke-[2.5] mly:text-midnight-gray" }),
|
|
7984
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "mly:w-[1.5px] mly:grow mly:rounded-full mly:bg-rose-300" })
|
|
7486
7985
|
]
|
|
7487
7986
|
}
|
|
7488
7987
|
)
|
|
@@ -7568,7 +8067,7 @@ var RepeatExtension = import_core13.Node.create({
|
|
|
7568
8067
|
addNodeView() {
|
|
7569
8068
|
return (0, import_react30.ReactNodeViewRenderer)(RepeatView, {
|
|
7570
8069
|
contentDOMElementTag: "div",
|
|
7571
|
-
className: "mly
|
|
8070
|
+
className: "mly:relative"
|
|
7572
8071
|
});
|
|
7573
8072
|
}
|
|
7574
8073
|
});
|
|
@@ -7582,7 +8081,7 @@ var MailyKit = import_core14.Extension.create({
|
|
|
7582
8081
|
HTMLAttributes: {
|
|
7583
8082
|
target: "_blank",
|
|
7584
8083
|
rel: "noopener noreferrer nofollow",
|
|
7585
|
-
class: "mly
|
|
8084
|
+
class: "mly:no-underline"
|
|
7586
8085
|
},
|
|
7587
8086
|
openOnClick: false
|
|
7588
8087
|
}
|
|
@@ -7596,22 +8095,22 @@ var MailyKit = import_core14.Extension.create({
|
|
|
7596
8095
|
import_starter_kit.default.configure({
|
|
7597
8096
|
code: {
|
|
7598
8097
|
HTMLAttributes: {
|
|
7599
|
-
class: "mly
|
|
8098
|
+
class: "mly:px-1 mly:relative mly:py-0.5 mly:bg-[#efefef] mly:text-sm mly:rounded-md mly:tracking-normal mly:font-normal"
|
|
7600
8099
|
}
|
|
7601
8100
|
},
|
|
7602
8101
|
blockquote: {
|
|
7603
8102
|
HTMLAttributes: {
|
|
7604
|
-
class: "mly
|
|
8103
|
+
class: "mly:not-prose mly:border-l-4 mly:border-gray-300 mly:pl-4 mly:mt-4 mly:mb-4 mly:relative"
|
|
7605
8104
|
}
|
|
7606
8105
|
},
|
|
7607
8106
|
bulletList: {
|
|
7608
8107
|
HTMLAttributes: {
|
|
7609
|
-
class: "mly
|
|
8108
|
+
class: "mly:relative"
|
|
7610
8109
|
}
|
|
7611
8110
|
},
|
|
7612
8111
|
orderedList: {
|
|
7613
8112
|
HTMLAttributes: {
|
|
7614
|
-
class: "mly
|
|
8113
|
+
class: "mly:relative"
|
|
7615
8114
|
}
|
|
7616
8115
|
},
|
|
7617
8116
|
heading: false,
|
|
@@ -7637,12 +8136,12 @@ var MailyKit = import_core14.Extension.create({
|
|
|
7637
8136
|
HeadingExtension.configure({
|
|
7638
8137
|
levels: [1, 2, 3],
|
|
7639
8138
|
HTMLAttributes: {
|
|
7640
|
-
class: "mly
|
|
8139
|
+
class: "mly:relative"
|
|
7641
8140
|
}
|
|
7642
8141
|
}),
|
|
7643
8142
|
ParagraphExtension.configure({
|
|
7644
8143
|
HTMLAttributes: {
|
|
7645
|
-
class: "mly
|
|
8144
|
+
class: "mly:relative"
|
|
7646
8145
|
}
|
|
7647
8146
|
})
|
|
7648
8147
|
];
|
|
@@ -7754,12 +8253,12 @@ function SlashCommandItem(props) {
|
|
|
7754
8253
|
const hasRenderFunction = typeof item.render === "function";
|
|
7755
8254
|
const renderFunctionValue = hasRenderFunction ? (_a = item.render) == null ? void 0 : _a.call(item, editor) : null;
|
|
7756
8255
|
let value = /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(import_jsx_runtime35.Fragment, { children: [
|
|
7757
|
-
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "mly
|
|
7758
|
-
/* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "mly
|
|
7759
|
-
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)("p", { className: "mly
|
|
7760
|
-
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)("p", { className: "mly
|
|
8256
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "mly:flex mly:h-6 mly:w-6 mly:shrink-0 mly:items-center mly:justify-center", children: item.icon }),
|
|
8257
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "mly:grow", children: [
|
|
8258
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)("p", { className: "mly:font-medium", children: item.title }),
|
|
8259
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)("p", { className: "mly:text-xs mly:text-gray-400", children: item.description })
|
|
7761
8260
|
] }),
|
|
7762
|
-
isSubCommand2 && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: "mly
|
|
8261
|
+
isSubCommand2 && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: "mly:block mly:px-1 mly:text-gray-400", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_lucide_react18.ChevronRightIcon, { className: "mly:size-3.5 mly:stroke-[2.5]" }) })
|
|
7763
8262
|
] });
|
|
7764
8263
|
if (renderFunctionValue !== null && renderFunctionValue !== true) {
|
|
7765
8264
|
value = renderFunctionValue;
|
|
@@ -7795,8 +8294,8 @@ function SlashCommandItem(props) {
|
|
|
7795
8294
|
"button",
|
|
7796
8295
|
{
|
|
7797
8296
|
className: cn(
|
|
7798
|
-
"mly
|
|
7799
|
-
isActive ? "mly
|
|
8297
|
+
"mly:flex mly:w-full mly:items-center mly:gap-2 mly:rounded-md mly:px-2 mly:py-1 mly:text-left mly:text-sm mly:text-gray-900 mly:hover:bg-gray-100 mly:hover:text-gray-900",
|
|
8298
|
+
isActive ? "mly:bg-gray-100 mly:text-gray-900" : "mly:bg-transparent"
|
|
7800
8299
|
),
|
|
7801
8300
|
onClick: () => selectItem(groupIndex, commandIndex),
|
|
7802
8301
|
onMouseEnter: () => onHover(true),
|
|
@@ -7811,17 +8310,17 @@ function SlashCommandItem(props) {
|
|
|
7811
8310
|
{
|
|
7812
8311
|
side: "right",
|
|
7813
8312
|
sideOffset: 10,
|
|
7814
|
-
className: "mly
|
|
8313
|
+
className: "mly:w-52 mly:rounded-lg mly:border-none mly:p-1 mly:shadow",
|
|
7815
8314
|
children: typeof item.preview === "function" ? item == null ? void 0 : item.preview(editor) : /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(import_jsx_runtime35.Fragment, { children: [
|
|
7816
|
-
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)("figure", { className: "mly
|
|
8315
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)("figure", { className: "mly:relative mly:aspect-[2.5] mly:w-full mly:overflow-hidden mly:rounded-md mly:border mly:border-gray-200", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
7817
8316
|
"img",
|
|
7818
8317
|
{
|
|
7819
8318
|
src: item == null ? void 0 : item.preview,
|
|
7820
8319
|
alt: item == null ? void 0 : item.title,
|
|
7821
|
-
className: "mly
|
|
8320
|
+
className: "mly:absolute mly:inset-0 mly:h-full mly:w-full mly:object-cover"
|
|
7822
8321
|
}
|
|
7823
8322
|
) }),
|
|
7824
|
-
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)("p", { className: "mly
|
|
8323
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)("p", { className: "mly:mt-2 mly:px-0.5 mly:text-gray-500", children: item.description })
|
|
7825
8324
|
] })
|
|
7826
8325
|
}
|
|
7827
8326
|
)
|
|
@@ -8048,25 +8547,25 @@ var CommandList = (0, import_react33.forwardRef)((props, ref) => {
|
|
|
8048
8547
|
if (!groups || groups.length === 0) {
|
|
8049
8548
|
return null;
|
|
8050
8549
|
}
|
|
8051
|
-
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(TooltipProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "mly
|
|
8550
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(TooltipProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "mly:z-50 mly:w-72 mly:overflow-hidden mly:rounded-md mly:border mly:border-gray-200 mly:bg-white mly:shadow-md mly:transition-all", children: [
|
|
8052
8551
|
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
8053
8552
|
"div",
|
|
8054
8553
|
{
|
|
8055
8554
|
id: "slash-command",
|
|
8056
8555
|
ref: commandListContainer,
|
|
8057
|
-
className: "mly
|
|
8556
|
+
className: "mly:no-scrollbar mly:h-auto mly:max-h-[330px] mly:overflow-y-auto",
|
|
8058
8557
|
children: groups.map((group, groupIndex) => /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_react33.Fragment, { children: [
|
|
8059
8558
|
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
8060
8559
|
"span",
|
|
8061
8560
|
{
|
|
8062
8561
|
className: cn(
|
|
8063
|
-
"mly
|
|
8064
|
-
groupIndex > 0 ? "mly
|
|
8562
|
+
"mly:block mly:border-b mly:border-gray-200 mly:bg-soft-gray mly:p-2 mly:text-xs mly:uppercase mly:text-gray-400",
|
|
8563
|
+
groupIndex > 0 ? "mly:border-t" : ""
|
|
8065
8564
|
),
|
|
8066
8565
|
children: group.title
|
|
8067
8566
|
}
|
|
8068
8567
|
),
|
|
8069
|
-
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "mly
|
|
8568
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "mly:space-y-0.5 mly:p-1", children: group.commands.map((item, commandIndex) => {
|
|
8070
8569
|
const itemKey = `${groupIndex}-${commandIndex}`;
|
|
8071
8570
|
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
8072
8571
|
SlashCommandItem,
|
|
@@ -8088,16 +8587,16 @@ var CommandList = (0, import_react33.forwardRef)((props, ref) => {
|
|
|
8088
8587
|
] }, groupIndex))
|
|
8089
8588
|
}
|
|
8090
8589
|
),
|
|
8091
|
-
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "mly
|
|
8092
|
-
/* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("p", { className: "mly
|
|
8093
|
-
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)("kbd", { className: "mly
|
|
8094
|
-
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)("kbd", { className: "mly
|
|
8590
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "mly:border-t mly:border-gray-200 mly:px-1 mly:py-3 mly:pl-4", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "mly:flex mly:items-center", children: [
|
|
8591
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("p", { className: "mly:text-center mly:text-xs mly:text-gray-400", children: [
|
|
8592
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)("kbd", { className: "mly:rounded mly:border mly:border-gray-200 mly:p-1 mly:px-2 mly:font-medium", children: "\u2191" }),
|
|
8593
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)("kbd", { className: "mly:ml-1 mly:rounded mly:border mly:border-gray-200 mly:p-1 mly:px-2 mly:font-medium", children: "\u2193" }),
|
|
8095
8594
|
" ",
|
|
8096
8595
|
"to navigate"
|
|
8097
8596
|
] }),
|
|
8098
|
-
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { "aria-hidden": "true", className: "mly
|
|
8099
|
-
/* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("p", { className: "mly
|
|
8100
|
-
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)("kbd", { className: "mly
|
|
8597
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { "aria-hidden": "true", className: "mly:select-none mly:px-1", children: "\xB7" }),
|
|
8598
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("p", { className: "mly:text-center mly:text-xs mly:text-gray-400", children: [
|
|
8599
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)("kbd", { className: "mly:rounded mly:border mly:border-gray-200 mly:p-1 mly:px-1.5 mly:font-medium", children: "Enter" }),
|
|
8101
8600
|
" ",
|
|
8102
8601
|
"to select"
|
|
8103
8602
|
] })
|
|
@@ -8329,7 +8828,7 @@ function HTMLCodeBlockView(props) {
|
|
|
8329
8828
|
"data-drag-handle": false,
|
|
8330
8829
|
"data-type": "htmlCodeBlock",
|
|
8331
8830
|
children: [
|
|
8332
|
-
activeTab === "code" && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("pre", { className: "mly
|
|
8831
|
+
activeTab === "code" && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("pre", { className: "mly:my-0 mly:rounded-lg mly:border mly:border-gray-200 mly:bg-white mly:p-2 mly:text-black", children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
8333
8832
|
import_react36.NodeViewContent,
|
|
8334
8833
|
{
|
|
8335
8834
|
as: "code",
|
|
@@ -8340,8 +8839,8 @@ function HTMLCodeBlockView(props) {
|
|
|
8340
8839
|
"div",
|
|
8341
8840
|
{
|
|
8342
8841
|
className: cn(
|
|
8343
|
-
"mly
|
|
8344
|
-
isEmpty && "mly
|
|
8842
|
+
"mly:not-prose mly:rounded-lg mly:border mly:border-gray-200 mly:p-2",
|
|
8843
|
+
isEmpty && "mly:min-h-[42px]"
|
|
8345
8844
|
),
|
|
8346
8845
|
ref: (node2) => {
|
|
8347
8846
|
if (!node2 || (node2 == null ? void 0 : node2.shadowRoot)) {
|
|
@@ -8405,7 +8904,7 @@ var HTMLCodeBlockExtension = import_extension_code_block_lowlight.default.extend
|
|
|
8405
8904
|
},
|
|
8406
8905
|
addNodeView() {
|
|
8407
8906
|
return (0, import_react38.ReactNodeViewRenderer)(HTMLCodeBlockView, {
|
|
8408
|
-
className: "mly
|
|
8907
|
+
className: "mly:relative",
|
|
8409
8908
|
attrs: ({ node }) => {
|
|
8410
8909
|
var _a;
|
|
8411
8910
|
return {
|