@maily-to/core 0.3.1 → 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.
@@ -177,7 +177,7 @@ var HorizontalRule = import_extension_horizontal_rule.HorizontalRule.extend({
177
177
  addOptions() {
178
178
  return {
179
179
  HTMLAttributes: {
180
- class: "mly-relative"
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-block mly-text-[13px] mly-text-slate-500 mly-relative"
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-w-full mly-border-separate mly-relative mly-table-fixed",
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-w-full"
681
+ class: "mly:w-full"
682
682
  },
683
683
  [
684
684
  "tr",
685
685
  {
686
- class: "mly-w-full"
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-w-full [text-align:revert-layer]"
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-relative mly-full mly-z-50",
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@2.5.4/node_modules/tailwind-merge/dist/bundle-mjs.mjs
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
- prefix
860
+ classGroups
861
861
  } = config;
862
862
  const classMap = {
863
863
  nextPart: /* @__PURE__ */ new Map(),
864
864
  validators: []
865
865
  };
866
- const prefixedClassGroupEntries = getPrefixedClassGroupEntries(Object.entries(config.classGroups), prefix);
867
- prefixedClassGroupEntries.forEach(([classGroupId, classGroup]) => {
868
- processClassesRecursively(classGroup, classMap, classGroupId, theme);
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
- separator,
953
+ prefix,
970
954
  experimentalParseClassName
971
955
  } = config;
972
- const isSeparatorSingleCharacter = separator.length === 1;
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 === firstSeparatorCharacter && (isSeparatorSingleCharacter || className.slice(index, index + separatorLength) === separator)) {
964
+ if (bracketDepth === 0 && parenDepth === 0) {
965
+ if (currentCharacter === MODIFIER_SEPARATOR) {
984
966
  modifiers.push(className.slice(modifierStart, index));
985
- modifierStart = index + separatorLength;
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 hasImportantModifier = baseClassNameWithImportantModifier.startsWith(IMPORTANT_MODIFIER);
1001
- const baseClassName = hasImportantModifier ? baseClassNameWithImportantModifier.substring(1) : baseClassNameWithImportantModifier;
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
- return (className) => experimentalParseClassName({
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 sortModifiers = (modifiers) => {
1019
- if (modifiers.length <= 1) {
1020
- return modifiers;
1016
+ var stripImportantModifier = (baseClassName) => {
1017
+ if (baseClassName.endsWith(IMPORTANT_MODIFIER)) {
1018
+ return baseClassName.substring(0, baseClassName.length - 1);
1021
1019
  }
1022
- const sortedModifiers = [];
1023
- let unsortedModifiers = [];
1024
- modifiers.forEach((modifier) => {
1025
- const isArbitraryVariant = modifier[0] === "[";
1026
- if (isArbitraryVariant) {
1027
- sortedModifiers.push(...unsortedModifiers.sort(), modifier);
1028
- unsortedModifiers = [];
1029
- } else {
1030
- unsortedModifiers.push(modifier);
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
- sortedModifiers.push(...unsortedModifiers.sort());
1034
- return sortedModifiers;
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
- let hasPostfixModifier = Boolean(maybePostfixModifierPosition);
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 = /^\[(?:([a-z-]+):)?(.+)\]$/i;
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 isLength = (value) => isNumber(value) || stringLengths.has(value) || fractionRegex.test(value);
1159
- var isArbitraryLength = (value) => getIsArbitraryValue(value, "length", isLengthOnly);
1160
- var isNumber = (value) => Boolean(value) && !Number.isNaN(Number(value));
1161
- var isArbitraryNumber = (value) => getIsArbitraryValue(value, "number", isNumber);
1162
- var isInteger = (value) => Boolean(value) && Number.isInteger(Number(value));
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 colors = fromTheme("colors");
1194
- const spacing = fromTheme("spacing");
1195
- const blur = fromTheme("blur");
1196
- const brightness = fromTheme("brightness");
1197
- const borderColor = fromTheme("borderColor");
1198
- const borderRadius = fromTheme("borderRadius");
1199
- const borderSpacing = fromTheme("borderSpacing");
1200
- const borderWidth = fromTheme("borderWidth");
1201
- const contrast = fromTheme("contrast");
1202
- const grayscale = fromTheme("grayscale");
1203
- const hueRotate = fromTheme("hueRotate");
1204
- const invert = fromTheme("invert");
1205
- const gap = fromTheme("gap");
1206
- const gradientColorStops = fromTheme("gradientColorStops");
1207
- const gradientColorStopPositions = fromTheme("gradientColorStopPositions");
1208
- const inset = fromTheme("inset");
1209
- const margin = fromTheme("margin");
1210
- const opacity = fromTheme("opacity");
1211
- const padding = fromTheme("padding");
1212
- const saturate = fromTheme("saturate");
1213
- const scale = fromTheme("scale");
1214
- const sepia = fromTheme("sepia");
1215
- const skew = fromTheme("skew");
1216
- const space = fromTheme("space");
1217
- const translate = fromTheme("translate");
1218
- const getOverscroll = () => ["auto", "contain", "none"];
1219
- const getOverflow = () => ["auto", "hidden", "clip", "visible", "scroll"];
1220
- const getSpacingWithAutoAndArbitrary = () => ["auto", isArbitraryValue, spacing];
1221
- const getSpacingWithArbitrary = () => [isArbitraryValue, spacing];
1222
- const getLengthWithEmptyAndArbitrary = () => ["", isLength, isArbitraryLength];
1223
- const getNumberWithAutoAndArbitrary = () => ["auto", isNumber, isArbitraryValue];
1224
- const getPositions = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"];
1225
- const getLineStyles = () => ["solid", "dashed", "dotted", "double", "none"];
1226
- const getBlendModes = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"];
1227
- const getAlign = () => ["start", "end", "center", "between", "around", "evenly", "stretch"];
1228
- const getZeroAndEmpty = () => ["", "0", isArbitraryValue];
1229
- const getBreaks = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"];
1230
- const getNumberAndArbitrary = () => [isNumber, isArbitraryValue];
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
- colors: [isAny],
1236
- spacing: [isLength, isArbitraryLength],
1237
- blur: ["none", "", isTshirtSize, isArbitraryValue],
1238
- brightness: getNumberAndArbitrary(),
1239
- borderColor: [colors],
1240
- borderRadius: ["none", "", "full", isTshirtSize, isArbitraryValue],
1241
- borderSpacing: getSpacingWithArbitrary(),
1242
- borderWidth: getLengthWithEmptyAndArbitrary(),
1243
- contrast: getNumberAndArbitrary(),
1244
- grayscale: getZeroAndEmpty(),
1245
- hueRotate: getNumberAndArbitrary(),
1246
- invert: getZeroAndEmpty(),
1247
- gap: getSpacingWithArbitrary(),
1248
- gradientColorStops: [colors],
1249
- gradientColorStopPositions: [isPercent, isArbitraryLength],
1250
- inset: getSpacingWithAutoAndArbitrary(),
1251
- margin: getSpacingWithAutoAndArbitrary(),
1252
- opacity: getNumberAndArbitrary(),
1253
- padding: getSpacingWithArbitrary(),
1254
- saturate: getNumberAndArbitrary(),
1255
- scale: getNumberAndArbitrary(),
1256
- sepia: getZeroAndEmpty(),
1257
- skew: getNumberAndArbitrary(),
1258
- space: getSpacingWithArbitrary(),
1259
- translate: getSpacingWithArbitrary()
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
- // Layout
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", "video", isArbitraryValue]
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: [isTshirtSize]
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": getBreaks()
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": getBreaks()
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: [...getPositions(), isArbitraryValue]
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: getOverflow()
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": getOverflow()
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": getOverflow()
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: getOverscroll()
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": getOverscroll()
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": getOverscroll()
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: [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": [inset]
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": [inset]
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: [inset]
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: [inset]
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: [inset]
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: [inset]
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: [inset]
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: [inset]
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", isInteger, isArbitraryValue]
1569
+ z: [isInteger, "auto", isArbitraryVariable, isArbitraryValue]
1476
1570
  }],
1477
- // Flexbox and Grid
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: getSpacingWithAutoAndArbitrary()
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: ["wrap", "wrap-reverse", "nowrap"]
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: ["1", "auto", "initial", "none", isArbitraryValue]
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: getZeroAndEmpty()
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: getZeroAndEmpty()
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", isInteger, isArbitraryValue]
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": [isAny]
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: ["auto", {
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": getNumberWithAutoAndArbitrary()
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": getNumberWithAutoAndArbitrary()
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": [isAny]
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: ["auto", {
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": getNumberWithAutoAndArbitrary()
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": getNumberWithAutoAndArbitrary()
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": ["auto", "min", "max", "fr", isArbitraryValue]
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": ["auto", "min", "max", "fr", isArbitraryValue]
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: [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": [gap]
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": [gap]
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", ...getAlign()]
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": ["start", "end", "center", "stretch"]
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", "start", "end", "center", "stretch"]
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", ...getAlign(), "baseline"]
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: ["start", "end", "center", "baseline", "stretch"]
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", "start", "end", "center", "stretch", "baseline"]
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": [...getAlign(), "baseline"]
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": ["start", "end", "center", "baseline", "stretch"]
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", "start", "end", "center", "stretch"]
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: [padding]
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: [padding]
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: [padding]
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: [padding]
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: [padding]
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: [padding]
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: [padding]
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: [padding]
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: [padding]
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: [margin]
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: [margin]
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: [margin]
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: [margin]
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: [margin]
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: [margin]
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: [margin]
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: [margin]
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: [margin]
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": [space]
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": [space]
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
- // Sizing
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: ["auto", "min", "max", "fit", "svw", "lvw", "dvw", isArbitraryValue, spacing]
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": [isArbitraryValue, spacing, "min", "max", "fit"]
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": [isArbitraryValue, spacing, "none", "full", "min", "max", "fit", "prose", {
1864
- screen: [isTshirtSize]
1865
- }, isTshirtSize]
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: [isArbitraryValue, spacing, "auto", "min", "max", "fit", "svh", "lvh", "dvh"]
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": [isArbitraryValue, spacing, "min", "max", "fit", "svh", "lvh", "dvh"]
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": [isArbitraryValue, spacing, "min", "max", "fit", "svh", "lvh", "dvh"]
1887
- }],
1888
- /**
1889
- * Size
1890
- * @see https://tailwindcss.com/docs/size
1891
- */
1892
- size: [{
1893
- size: [isArbitraryValue, spacing, "auto", "min", "max", "fit"]
2006
+ "max-h": ["screen", "lh", ...scaleSizing()]
1894
2007
  }],
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", isTshirtSize, isArbitraryLength]
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: ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black", isArbitraryNumber]
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: [isAny]
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-fractons"],
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: ["tighter", "tight", "normal", "wide", "wider", "widest", isArbitraryValue]
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", isNumber, isArbitraryNumber]
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: ["none", "tight", "snug", "normal", "relaxed", "loose", isLength, isArbitraryValue]
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
- * Placeholder Color
2001
- * @deprecated since Tailwind CSS v3.0.0
2002
- * @see https://tailwindcss.com/docs/placeholder-color
2003
- */
2004
- "placeholder-color": [{
2005
- placeholder: [colors]
2006
- }],
2007
- /**
2008
- * Placeholder Opacity
2009
- * @see https://tailwindcss.com/docs/placeholder-opacity
2119
+ * List Style Type
2120
+ * @see https://tailwindcss.com/docs/list-style-type
2010
2121
  */
2011
- "placeholder-opacity": [{
2012
- "placeholder-opacity": [opacity]
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
- * Text Color
2023
- * @see https://tailwindcss.com/docs/text-color
2133
+ * Placeholder Color
2134
+ * @deprecated since Tailwind CSS v3.0.0
2135
+ * @see https://v3.tailwindcss.com/docs/placeholder-color
2024
2136
  */
2025
- "text-color": [{
2026
- text: [colors]
2137
+ "placeholder-color": [{
2138
+ placeholder: scaleColor()
2027
2139
  }],
2028
2140
  /**
2029
- * Text Opacity
2030
- * @see https://tailwindcss.com/docs/text-opacity
2141
+ * Text Color
2142
+ * @see https://tailwindcss.com/docs/text-color
2031
2143
  */
2032
- "text-opacity": [{
2033
- "text-opacity": [opacity]
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: [...getLineStyles(), "wavy"]
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: ["auto", "from-font", isLength, isArbitraryLength]
2053
- }],
2054
- /**
2055
- * Text Underline Offset
2056
- * @see https://tailwindcss.com/docs/text-underline-offset
2057
- */
2058
- "underline-offset": [{
2059
- "underline-offset": ["auto", isLength, isArbitraryValue]
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: [colors]
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: getSpacingWithArbitrary()
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
- // Backgrounds
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: [...getPositions(), isArbitraryPosition]
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: ["no-repeat", {
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: ["auto", "cover", "contain", isArbitrarySize]
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
- "gradient-to": ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
2187
- }, isArbitraryImage]
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: [colors]
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: [gradientColorStopPositions]
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: [gradientColorStopPositions]
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: [gradientColorStopPositions]
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: [gradientColorStops]
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: [gradientColorStops]
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: [gradientColorStops]
2351
+ to: scaleColor()
2237
2352
  }],
2238
- // Borders
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: [borderRadius]
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": [borderRadius]
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": [borderRadius]
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": [borderRadius]
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": [borderRadius]
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": [borderRadius]
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": [borderRadius]
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": [borderRadius]
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": [borderRadius]
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": [borderRadius]
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": [borderRadius]
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": [borderRadius]
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": [borderRadius]
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": [borderRadius]
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": [borderRadius]
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: [borderWidth]
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": [borderWidth]
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": [borderWidth]
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": [borderWidth]
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": [borderWidth]
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": [borderWidth]
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": [borderWidth]
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": [borderWidth]
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": [borderWidth]
2406
- }],
2407
- /**
2408
- * Border Opacity
2409
- * @see https://tailwindcss.com/docs/border-opacity
2410
- */
2411
- "border-opacity": [{
2412
- "border-opacity": [opacity]
2413
- }],
2414
- /**
2415
- * Border Style
2416
- * @see https://tailwindcss.com/docs/border-style
2417
- */
2418
- "border-style": [{
2419
- border: [...getLineStyles(), "hidden"]
2522
+ "border-l": scaleBorderWidth()
2420
2523
  }],
2421
2524
  /**
2422
2525
  * Divide Width X
2423
- * @see https://tailwindcss.com/docs/divide-width
2526
+ * @see https://tailwindcss.com/docs/border-width#between-children
2424
2527
  */
2425
2528
  "divide-x": [{
2426
- "divide-x": [borderWidth]
2529
+ "divide-x": scaleBorderWidth()
2427
2530
  }],
2428
2531
  /**
2429
2532
  * Divide Width X Reverse
2430
- * @see https://tailwindcss.com/docs/divide-width
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/divide-width
2538
+ * @see https://tailwindcss.com/docs/border-width#between-children
2436
2539
  */
2437
2540
  "divide-y": [{
2438
- "divide-y": [borderWidth]
2541
+ "divide-y": scaleBorderWidth()
2439
2542
  }],
2440
2543
  /**
2441
2544
  * Divide Width Y Reverse
2442
- * @see https://tailwindcss.com/docs/divide-width
2545
+ * @see https://tailwindcss.com/docs/border-width#between-children
2443
2546
  */
2444
2547
  "divide-y-reverse": ["divide-y-reverse"],
2445
2548
  /**
2446
- * Divide Opacity
2447
- * @see https://tailwindcss.com/docs/divide-opacity
2549
+ * Border Style
2550
+ * @see https://tailwindcss.com/docs/border-style
2448
2551
  */
2449
- "divide-opacity": [{
2450
- "divide-opacity": [opacity]
2552
+ "border-style": [{
2553
+ border: [...scaleLineStyle(), "hidden", "none"]
2451
2554
  }],
2452
2555
  /**
2453
2556
  * Divide Style
2454
- * @see https://tailwindcss.com/docs/divide-style
2557
+ * @see https://tailwindcss.com/docs/border-style#setting-the-divider-style
2455
2558
  */
2456
2559
  "divide-style": [{
2457
- divide: getLineStyles()
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: [borderColor]
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": [borderColor]
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": [borderColor]
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": [borderColor]
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": [borderColor]
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": [borderColor]
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": [borderColor]
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": [borderColor]
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": [borderColor]
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: [borderColor]
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: ["", ...getLineStyles()]
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": [isLength, isArbitraryValue]
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: [isLength, isArbitraryLength]
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: [colors]
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-width
2700
+ * @see https://tailwindcss.com/docs/box-shadow#adding-a-ring
2560
2701
  */
2561
2702
  "ring-w": [{
2562
- ring: getLengthWithEmptyAndArbitrary()
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: [colors]
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": [isLength, isArbitraryLength]
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": [colors]
2735
+ "ring-offset": scaleColor()
2596
2736
  }],
2597
- // Effects
2598
2737
  /**
2599
- * Box Shadow
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
- shadow: [{
2603
- shadow: ["", "inner", "none", isTshirtSize, isArbitraryShadow]
2741
+ "inset-ring-w": [{
2742
+ "inset-ring": scaleBorderWidth()
2604
2743
  }],
2605
2744
  /**
2606
- * Box Shadow Color
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
- "shadow-color": [{
2610
- shadow: [isAny]
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: [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": [...getBlendModes(), "plus-lighter", "plus-darker"]
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": getBlendModes()
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
- // Filters
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: ["", "none"]
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: [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: [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: [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": ["", "none", isTshirtSize, isArbitraryValue]
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: [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": [hueRotate]
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: [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: [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: [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": ["", "none"]
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": [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": [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": [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": [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": [hueRotate]
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": [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": [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": [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": [sepia]
3149
+ "backdrop-sepia": ["", isNumber, isArbitraryVariable, isArbitraryValue]
2775
3150
  }],
2776
- // Tables
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": [borderSpacing]
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": [borderSpacing]
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": [borderSpacing]
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
- // Transitions and Animation
3196
+ // ---------------------------------
3197
+ // --- Transitions and Animation ---
3198
+ // ---------------------------------
2820
3199
  /**
2821
- * Tranisition Property
3200
+ * Transition Property
2822
3201
  * @see https://tailwindcss.com/docs/transition-property
2823
3202
  */
2824
3203
  transition: [{
2825
- transition: ["none", "all", "", "colors", "opacity", "shadow", "transform", isArbitraryValue]
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: getNumberAndArbitrary()
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", "in", "out", "in-out", isArbitraryValue]
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: getNumberAndArbitrary()
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", "spin", "ping", "pulse", "bounce", isArbitraryValue]
3239
+ animate: ["none", themeAnimate, isArbitraryVariable, isArbitraryValue]
2854
3240
  }],
2855
- // Transforms
3241
+ // ------------------
3242
+ // --- Transforms ---
3243
+ // ------------------
2856
3244
  /**
2857
- * Transform
2858
- * @see https://tailwindcss.com/docs/transform
3245
+ * Backface Visibility
3246
+ * @see https://tailwindcss.com/docs/backface-visibility
2859
3247
  */
2860
- transform: [{
2861
- transform: ["", "gpu", "none"]
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: [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": [scale]
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": [scale]
3312
+ "scale-y": scaleScale()
2883
3313
  }],
2884
3314
  /**
2885
- * Rotate
2886
- * @see https://tailwindcss.com/docs/rotate
3315
+ * Scale Z
3316
+ * @see https://tailwindcss.com/docs/scale
2887
3317
  */
2888
- rotate: [{
2889
- rotate: [isInteger, isArbitraryValue]
3318
+ "scale-z": [{
3319
+ "scale-z": scaleScale()
2890
3320
  }],
2891
3321
  /**
2892
- * Translate X
2893
- * @see https://tailwindcss.com/docs/translate
3322
+ * Scale 3D
3323
+ * @see https://tailwindcss.com/docs/scale
2894
3324
  */
2895
- "translate-x": [{
2896
- "translate-x": [translate]
2897
- }],
3325
+ "scale-3d": ["scale-3d"],
2898
3326
  /**
2899
- * Translate Y
2900
- * @see https://tailwindcss.com/docs/translate
3327
+ * Skew
3328
+ * @see https://tailwindcss.com/docs/skew
2901
3329
  */
2902
- "translate-y": [{
2903
- "translate-y": [translate]
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": [skew]
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": [skew]
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: ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left", isArbitraryValue]
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()
3388
+ }],
3389
+ /**
3390
+ * Translate Z
3391
+ * @see https://tailwindcss.com/docs/translate
3392
+ */
3393
+ "translate-z": [{
3394
+ "translate-z": scaleTranslate()
2925
3395
  }],
2926
- // Interactivity
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: ["auto", colors]
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
- * Caret Color
2950
- * @see https://tailwindcss.com/docs/just-in-time-mode#caret-color-utilities
3440
+ * Field Sizing
3441
+ * @see https://tailwindcss.com/docs/field-sizing
2951
3442
  */
2952
- "caret-color": [{
2953
- caret: [colors]
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": ["none", "auto"]
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", "y", "x", ""]
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": getSpacingWithArbitrary()
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": getSpacingWithArbitrary()
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": getSpacingWithArbitrary()
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": getSpacingWithArbitrary()
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": getSpacingWithArbitrary()
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": getSpacingWithArbitrary()
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": getSpacingWithArbitrary()
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": getSpacingWithArbitrary()
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": getSpacingWithArbitrary()
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": getSpacingWithArbitrary()
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": getSpacingWithArbitrary()
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": getSpacingWithArbitrary()
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": getSpacingWithArbitrary()
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": getSpacingWithArbitrary()
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": getSpacingWithArbitrary()
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": getSpacingWithArbitrary()
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": getSpacingWithArbitrary()
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": getSpacingWithArbitrary()
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
- // SVG
3661
+ // -----------
3662
+ // --- SVG ---
3663
+ // -----------
3171
3664
  /**
3172
3665
  * Fill
3173
3666
  * @see https://tailwindcss.com/docs/fill
3174
3667
  */
3175
3668
  fill: [{
3176
- fill: [colors, "none"]
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: [isLength, isArbitraryLength, isArbitraryNumber]
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: [colors, "none"]
3683
+ stroke: ["none", ...scaleColor()]
3191
3684
  }],
3192
- // Accessibility
3193
- /**
3194
- * Screen Readers
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
- for (const configKey in override) {
3272
- overrideConfigProperties(baseConfig[configKey], override[configKey]);
3273
- }
3274
- for (const key in extend) {
3275
- mergeConfigProperties(baseConfig[key], extend[key]);
3276
- }
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
- const mergeValue = mergeObject[key];
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-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 file:mly-border-0 file:mly-bg-transparent file:mly-text-sm file:mly-font-medium placeholder:mly-text-gray-500 focus-visible:mly-outline-none focus-visible:mly-ring-2 focus-visible:mly-ring-gray-400 focus-visible:mly-ring-offset-2 disabled:mly-cursor-not-allowed disabled:mly-opacity-50",
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((_a, ref) => {
3346
- var _b = _a, { className, align = "center", sideOffset = 4 } = _b, props = __objRest(_b, ["className", "align", "sideOffset"]);
3347
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(PopoverPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
3348
- PopoverPrimitive.Content,
3349
- __spreadValues({
3350
- ref,
3351
- align,
3352
- sideOffset,
3353
- className: cn(
3354
- "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-none",
3355
- "mly-editor",
3356
- className
3357
- )
3358
- }, props)
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-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 file:mly-border-0 file:mly-bg-transparent file:mly-text-sm file:mly-font-medium placeholder:mly-text-gray-500 focus-visible:mly-outline-none focus-visible:mly-ring-2 focus-visible:mly-ring-gray-400 focus-visible:mly-ring-offset-2 disabled:mly-cursor-not-allowed disabled:mly-opacity-50",
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-no-prose mly-flex mly-flex-col mly-rounded-lg mly-border mly-border-gray-300", children: [
3406
- 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)(
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-no-prose !mly-mb-0 mly-h-full mly-w-full mly-rounded-t-lg",
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-flex mly-items-stretch mly-p-3", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: cn("mly-flex mly-flex-col"), children: [
3416
- /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "!mly-mb-1.5 mly-flex mly-items-center mly-gap-1.5", children: [
3417
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("h2", { className: "!mly-mb-0 !mly-text-lg mly-font-semibold", children: title }),
3418
- badgeText && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "!mly-font-base text-xs mly-rounded-md mly-bg-yellow-200 mly-px-2 mly-py-1 mly-font-semibold mly-leading-none", children: badgeText }),
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-font-base text-xs mly-font-regular mly-rounded-md mly-leading-none mly-text-gray-400", children: subTitle })
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-my-0 !mly-text-base mly-text-gray-500", children: [
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-font-semibold", children: linkTitle }) : null
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-flex mly-w-96 mly-flex-col mly-gap-2",
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-w-full mly-space-y-1", children: [
3441
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "mly-text-xs mly-font-normal mly-text-slate-400", children: "Image" }),
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-w-full mly-space-y-1", children: [
3457
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "mly-text-xs mly-font-normal mly-text-slate-400", children: "Title" }),
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-w-full mly-space-y-1", children: [
3472
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "mly-text-xs mly-font-normal mly-text-slate-400", children: "Description" }),
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-grid mly-grid-cols-2 mly-gap-2", children: [
3487
- /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("label", { className: "mly-w-full mly-space-y-1", children: [
3488
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "mly-text-xs mly-font-normal mly-text-slate-400", children: "Link Title" }),
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-w-full mly-space-y-1", children: [
3503
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "mly-text-xs mly-font-normal mly-text-slate-400", children: "Link" }),
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-grid mly-grid-cols-2 mly-gap-2", children: [
3519
- /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("label", { className: "mly-w-full mly-space-y-1", children: [
3520
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "mly-text-xs mly-font-normal mly-text-slate-400", children: "Badge Text" }),
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-w-full mly-space-y-1", children: [
3535
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "mly-text-xs mly-font-normal mly-text-slate-400", children: "Sub Title" }),
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-relative"
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-relative"
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-inline-flex mly-items-center mly-justify-center mly-rounded-md mly-text-sm mly-font-medium mly-ring-offset-white mly-transition-colors focus-visible:mly-outline-none focus-visible:mly-ring-2 focus-visible:mly-ring-gray-400 focus-visible:mly-ring-offset-2 focus-visible:mly-relative focus-visible:mly-z-10 disabled:mly-opacity-50 ";
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-bg-gray-900 mly-text-gray-50 hover:mly-bg-soft-gray",
3892
- destructive: "mly-bg-red-500 mly-text-gray-50 hover:mly-bg-red-500/90",
3893
- outline: "mly-border mly-border-gray-200 mly-bg-white hover:mly-bg-gray-100 hover:mly-text-gray-900",
3894
- secondary: "mly-bg-gray-100 mly-text-gray-900 hover:mly-bg-gray-100/80",
3895
- ghost: "hover:mly-bg-soft-gray bg-transparent hover:mly-text-gray-900 data-[state=true]:mly-bg-soft-gray data-[state=true]:mly-text-gray-900",
3896
- link: "mly-text-gray-900 mly-underline-offset-4 hover:mly-underline"
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-h-10 mly-px-4 mly-py-2",
3900
- sm: "mly-h-9 mly-rounded-md mly-px-3",
3901
- lg: "mly-h-11 mly-rounded-md mly-px-8",
3902
- icon: "mly-h-10 mly-w-10"
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-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",
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
- "!mly-size-7 mly-px-2.5 disabled:mly-cursor-not-allowed",
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-h-3 mly-w-3 mly-shrink-0 mly-stroke-[2.5]",
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-text-sm mly-font-medium mly-text-slate-600",
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-bg-rose-500",
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-absolute mly-inset-0 mly-opacity-0",
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-animate-pulse mly-opacity-40"
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-bg-rose-500",
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-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",
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-text-gray-500 hover:mly-bg-soft-gray/60": status === "loading",
4358
- "mly-text-red-500 hover:mly-bg-soft-gray/60": status === "error"
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-size-4 mly-stroke-[2.5]" }),
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-size-4 mly-stroke-[2.5]" }),
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-size-4 mly-animate-spin mly-stroke-[2.5]" }),
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-size-4 mly-stroke-[2.5]" }),
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-size-4 mly-stroke-[2.5]" }),
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-absolute mly-inset-0 mly-opacity-0",
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-relative"
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-flex mly-size-7 mly-items-center mly-justify-center mly-gap-1 mly-rounded-md mly-px-1.5 mly-text-sm data-[state=open]:mly-bg-soft-gray hover:mly-bg-soft-gray focus-visible:mly-relative focus-visible:mly-z-10 focus-visible:mly-outline-none focus-visible:mly-ring-2 focus-visible:mly-ring-gray-400 focus-visible:mly-ring-offset-2"
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-h-3 mly-w-3 mly-stroke-[2.5]" })
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-flex mly-w-max mly-gap-0.5 mly-rounded-lg !mly-p-0.5",
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-relative"), ref: containerRef, children: [
4841
- /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("label", { className: "mly-relative", children: [
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-h-7 mly-w-40 mly-rounded-md mly-bg-white mly-px-2 mly-pr-6 mly-text-sm mly-text-midnight-gray hover:mly-bg-soft-gray focus:mly-bg-soft-gray focus:mly-outline-none",
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-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" }) })
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-absolute mly-left-0 mly-top-8", children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
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-flex mly-size-7 mly-items-center mly-justify-center mly-gap-1 mly-rounded-md mly-px-1.5 mly-text-sm data-[state=open]:mly-bg-soft-gray hover:mly-bg-soft-gray focus-visible:mly-relative focus-visible:mly-z-10 focus-visible:mly-outline-none focus-visible:mly-ring-2 focus-visible:mly-ring-gray-400 focus-visible:mly-ring-offset-2",
4929
- showIfKey && "mly-bg-rose-100 mly-text-rose-800 data-[state=open]:mly-bg-rose-100 hover:mly-bg-rose-100"
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-h-3 mly-w-3 mly-stroke-[2.5]" })
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-flex mly-w-max mly-rounded-lg !mly-p-0.5",
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-flex mly-items-center mly-gap-1.5 mly-px-1.5 mly-text-sm mly-leading-none", children: [
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-size-3 mly-stroke-[2.5] mly-text-gray-500")
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-max-w-[285px]",
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-size-7 mly-shrink-0",
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-h-4 mly-w-4 mly-shrink-0 mly-rounded mly-border-2 mly-border-gray-700",
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-w-full mly-rounded-none mly-border-0 !mly-bg-transparent !mly-p-0 mly-shadow-none mly-drop-shadow-md",
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-min-w-[260px] mly-rounded-xl mly-border mly-border-gray-200 mly-bg-white mly-p-4", children: [
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-flex !mly-w-full mly-flex-col mly-gap-4"
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-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 focus-visible:mly-border-gray-400 focus-visible:mly-outline-none",
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-mx-4 mly-my-4 mly-h-px mly-bg-gray-200" }),
5113
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("h2", { className: "mly-text-xs mly-text-gray-500", children: "Recently used" }),
5114
- /* @__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)(
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-size-7 mly-shrink-0",
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-h-4 mly-w-4 mly-shrink-0 mly-rounded",
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-shrink-0 mly-bg-gray-200",
5152
- type === "vertical" ? "mly-mx-0.5 mly-w-px" : "mly-my-0.5 mly-h-px",
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-h-4 mly-w-4" }),
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-h-4 mly-w-4" }),
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-h-4 mly-w-4" }),
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-h-4 mly-w-4" }),
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-h-4 mly-w-4" }),
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-h-4 mly-w-4" }),
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-h-4 mly-w-4" }),
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-h-4 mly-w-4" }),
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-h-4 mly-w-4" }),
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-h-4 mly-w-4" }),
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-h-4 mly-w-4" }),
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-h-4 mly-w-4" }),
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-h-4 mly-w-4" }),
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-h-4 mly-w-4" }),
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-h-4 mly-w-4" }),
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-h-4 mly-w-4" }),
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-h-4 mly-w-4" }),
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-h-4 mly-w-4" }),
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-h-4 mly-w-4" }),
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-h-4 mly-w-4" }),
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-h-4 mly-w-4" }),
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-h-4 mly-w-4" }),
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-h-4 mly-w-4" }),
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-h-4 mly-w-4" }),
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-h-4 mly-w-4" }),
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-h-4 mly-w-4" }),
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-h-4 mly-w-4" }),
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-no-underline",
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-no-underline",
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-no-underline",
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-h-4 mly-w-4" }),
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-h-4 mly-w-4" }),
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-z-50 mly-w-64 mly-rounded-lg mly-border mly-border-gray-200 mly-bg-white mly-shadow-md mly-transition-all", children: [
6138
- /* @__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: [
6139
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "mly-text-xs mly-uppercase", children: "Variables" }),
6140
- /* @__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]" }) })
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-max-h-52 mly-overflow-y-auto mly-scrollbar-thin mly-scrollbar-track-transparent mly-scrollbar-thumb-gray-200",
6147
- 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)(
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-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 hover:mly-bg-soft-gray",
6154
- index === selectedIndex ? "mly-bg-soft-gray" : "mly-bg-white"
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-size-3 mly-stroke-[2.5] mly-text-rose-600" }),
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-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 hover:mly-bg-soft-gray", children: "No result" }) })
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-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: [
6166
- /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "mly-flex mly-items-center mly-gap-1", children: [
6167
- /* @__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]" }) }),
6168
- /* @__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]" }) }),
6169
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "mly-text-xs mly-text-gray-500", children: "Navigate" })
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-size-3 mly-stroke-[2.5]" }) })
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-flex mly-size-5 mly-items-center mly-justify-center mly-rounded-md mly-border mly-border-gray-200",
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
@@ -6193,20 +6697,16 @@ var import_react19 = require("react");
6193
6697
  var import_jsx_runtime29 = require("react/jsx-runtime");
6194
6698
  function VariableView(props) {
6195
6699
  const { node, updateAttributes: updateAttributes2, editor } = props;
6196
- const { id, fallback, required } = node.attrs;
6700
+ const { id, fallback, required, hideDefaultValue = false } = node.attrs;
6197
6701
  const renderVariable = (0, import_react19.useMemo)(() => {
6198
6702
  var _a, _b;
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-inline-block mly-leading-none",
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-w-max mly-rounded-lg !mly-p-0.5",
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-flex mly-items-stretch mly-text-midnight-gray", children: [
6234
- /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("label", { className: "mly-relative", children: [
6235
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: "mly-inline-block mly-px-2 mly-text-xs mly-text-midnight-gray", children: "Variable" }),
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,27 +6743,29 @@ function VariableView(props) {
6244
6743
  });
6245
6744
  },
6246
6745
  placeholder: "ie. name...",
6247
- className: "mly-h-7 mly-w-36 mly-rounded-md mly-bg-soft-gray mly-px-2 mly-text-sm mly-text-midnight-gray focus:mly-bg-soft-gray focus:mly-outline-none disabled:mly-cursor-not-allowed"
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
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Divider, { className: "mly-mx-1.5" }),
6252
- /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("label", { className: "mly-relative", children: [
6253
- /* @__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" }),
6254
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
6255
- "input",
6256
- __spreadProps(__spreadValues({}, AUTOCOMPLETE_PASSWORD_MANAGERS_OFF), {
6257
- value: fallback != null ? fallback : "",
6258
- onChange: (e) => {
6259
- updateAttributes2({
6260
- fallback: e.target.value
6261
- });
6262
- },
6263
- placeholder: "ie. John Doe...",
6264
- 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 focus:mly-bg-soft-gray focus:mly-outline-none"
6265
- })
6266
- ),
6267
- /* @__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" }) })
6750
+ !hideDefaultValue && /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(import_jsx_runtime29.Fragment, { children: [
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" }),
6754
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
6755
+ "input",
6756
+ __spreadProps(__spreadValues({}, AUTOCOMPLETE_PASSWORD_MANAGERS_OFF), {
6757
+ value: fallback != null ? fallback : "",
6758
+ onChange: (e) => {
6759
+ updateAttributes2({
6760
+ fallback: e.target.value
6761
+ });
6762
+ },
6763
+ placeholder: "ie. John Doe...",
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"
6765
+ })
6766
+ ),
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" }) })
6768
+ ] })
6268
6769
  ] })
6269
6770
  ] }) })
6270
6771
  }
@@ -6279,9 +6780,9 @@ var DefaultRenderVariable = (props) => {
6279
6780
  const { variable, fallback, from } = props;
6280
6781
  const { name, required, valid } = variable;
6281
6782
  if (from === "button-variable") {
6282
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: "mly-inline-grid mly-max-w-xs mly-grid-cols-[12px_1fr] mly-items-center mly-gap-1.5 mly-rounded-md mly-border mly-border-[var(--button-var-border-color)] mly-px-2 mly-py-px mly-font-mono mly-text-xs", children: [
6283
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_lucide_react14.Braces, { className: "mly-h-3 mly-w-3 mly-shrink-0 mly-stroke-[2.5]" }),
6284
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: "mly-min-w-0 mly-truncate mly-text-left", children: name })
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 })
6285
6786
  ] });
6286
6787
  }
6287
6788
  if (from === "bubble-variable") {
@@ -6289,12 +6790,12 @@ var DefaultRenderVariable = (props) => {
6289
6790
  "div",
6290
6791
  {
6291
6792
  className: cn(
6292
- "mly-inline-grid mly-h-7 mly-min-w-28 mly-max-w-xs mly-grid-cols-[12px_1fr] mly-items-center mly-gap-1.5 mly-rounded-md mly-border mly-border-gray-200 mly-px-2 mly-font-mono mly-text-sm hover:mly-bg-soft-gray",
6293
- !valid && "mly-border-rose-400 mly-bg-rose-50 mly-text-rose-600 hover:mly-bg-rose-100"
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"
6294
6795
  ),
6295
6796
  children: [
6296
- /* @__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" }),
6297
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: "mly-min-w-0 mly-truncate mly-text-left", children: name })
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 })
6298
6799
  ]
6299
6800
  }
6300
6801
  );
@@ -6303,11 +6804,11 @@ var DefaultRenderVariable = (props) => {
6303
6804
  "span",
6304
6805
  {
6305
6806
  tabIndex: -1,
6306
- className: "mly-inline-flex mly-items-center mly-gap-[var(--variable-icon-gap)] mly-rounded-full mly-border mly-border-gray-200 mly-px-1.5 mly-py-0.5 mly-leading-none",
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",
6307
6808
  children: [
6308
- /* @__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" }),
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" }),
6309
6810
  name,
6310
- 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]" })
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]" })
6311
6812
  ]
6312
6813
  }
6313
6814
  );
@@ -6419,6 +6920,9 @@ var VariableExtension = import_core11.Node.create({
6419
6920
  "data-required": (_a = attributes == null ? void 0 : attributes.required) != null ? _a : true
6420
6921
  };
6421
6922
  }
6923
+ },
6924
+ hideDefaultValue: {
6925
+ default: false
6422
6926
  }
6423
6927
  };
6424
6928
  },
@@ -6478,7 +6982,7 @@ var VariableExtension = import_core11.Node.create({
6478
6982
  },
6479
6983
  addNodeView() {
6480
6984
  return (0, import_react20.ReactNodeViewRenderer)(VariableView, {
6481
- className: "mly-relative mly-inline-block",
6985
+ className: "mly:relative mly:inline-block",
6482
6986
  as: "div"
6483
6987
  });
6484
6988
  }
@@ -6521,9 +7025,9 @@ function LinkInputPopover(props) {
6521
7025
  variant: "ghost",
6522
7026
  size: "sm",
6523
7027
  type: "button",
6524
- className: "!mly-size-7",
7028
+ className: "mly:h-7! mly:w-7!",
6525
7029
  "data-state": !!defaultValue,
6526
- 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" })
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" })
6527
7031
  }
6528
7032
  ) });
6529
7033
  return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
@@ -6549,7 +7053,7 @@ function LinkInputPopover(props) {
6549
7053
  {
6550
7054
  align: "end",
6551
7055
  side: "top",
6552
- className: "mly-w-max mly-rounded-none mly-border-none mly-bg-transparent !mly-p-0 mly-shadow-none",
7056
+ className: "mly:w-max mly:rounded-none mly:border-none mly:bg-transparent mly:p-0! mly:shadow-none",
6553
7057
  sideOffset: 8,
6554
7058
  onCloseAutoFocus: (e) => e.preventDefault(),
6555
7059
  children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
@@ -6564,8 +7068,8 @@ function LinkInputPopover(props) {
6564
7068
  onValueChange == null ? void 0 : onValueChange(input.value);
6565
7069
  setIsOpen(false);
6566
7070
  },
6567
- children: /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "mly-isolate mly-flex mly-rounded-lg", children: [
6568
- !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)(
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)(
6569
7073
  "button",
6570
7074
  {
6571
7075
  onClick: () => {
@@ -6586,8 +7090,8 @@ function LinkInputPopover(props) {
6586
7090
  })
6587
7091
  }
6588
7092
  ) }),
6589
- isEditing && /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "mly-relative", children: [
6590
- /* @__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" }) }),
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" }) }),
6591
7095
  /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
6592
7096
  InputAutocomplete,
6593
7097
  {
@@ -6599,7 +7103,7 @@ function LinkInputPopover(props) {
6599
7103
  autoCompleteOptions,
6600
7104
  ref: linkInputRef,
6601
7105
  placeholder: placeholderUrl,
6602
- 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-none placeholder:mly-text-gray-400",
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",
6603
7107
  triggerChar: variableTriggerCharacter,
6604
7108
  onSelectOption: (value) => {
6605
7109
  var _a2;
@@ -6640,16 +7144,16 @@ function Select(props) {
6640
7144
  placeholder
6641
7145
  } = props;
6642
7146
  const selectId = `mly${(0, import_react23.useId)()}`;
6643
- const content = /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "mly-relative", children: [
6644
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("label", { htmlFor: selectId, className: "mly-sr-only", children: label }),
6645
- Icon && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "mly-pointer-events-none mly-absolute mly-inset-y-0 mly-left-2 mly-z-20 mly-flex mly-items-center", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Icon, { className: cn("mly-size-3", iconClassName) }) }),
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) }) }),
6646
7150
  /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
6647
7151
  "select",
6648
7152
  {
6649
7153
  id: selectId,
6650
7154
  className: cn(
6651
- "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 hover:mly-bg-soft-gray focus-visible:mly-relative focus-visible:mly-z-10 focus-visible:mly-outline-none focus-visible:mly-ring-2 focus-visible:mly-ring-gray-400 focus-visible:mly-ring-offset-2 active:mly-bg-soft-gray",
6652
- !!Icon && "mly-pl-7",
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",
6653
7157
  className
6654
7158
  ),
6655
7159
  value: value || "",
@@ -6660,7 +7164,7 @@ function Select(props) {
6660
7164
  ]
6661
7165
  }
6662
7166
  ),
6663
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "mly-pointer-events-none mly-absolute mly-inset-y-0 mly-right-0 mly-z-10 mly-flex mly-h-full mly-w-7 mly-items-center mly-justify-center mly-text-gray-600 peer-disabled:mly-opacity-50", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
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)(
6664
7168
  import_lucide_react16.ChevronDownIcon,
6665
7169
  {
6666
7170
  size: 16,
@@ -6707,7 +7211,7 @@ function ButtonLabelInput(props) {
6707
7211
  editor
6708
7212
  }).map((variable) => variable.name);
6709
7213
  }, [variables, value, editor]);
6710
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "mly-isolate mly-flex mly-rounded-lg", children: [
7214
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "mly:isolate mly:flex mly:rounded-lg", children: [
6711
7215
  !isEditing && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
6712
7216
  "button",
6713
7217
  {
@@ -6740,7 +7244,7 @@ function ButtonLabelInput(props) {
6740
7244
  autoCompleteOptions,
6741
7245
  ref: linkInputRef,
6742
7246
  placeholder: placeholderUrl,
6743
- className: "mly-h-7 mly-w-40 mly-rounded-md mly-px-2 mly-pr-6 mly-text-sm mly-text-midnight-gray hover:mly-bg-soft-gray focus:mly-bg-soft-gray focus:mly-outline-none",
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",
6744
7248
  triggerChar: variableTriggerCharacter,
6745
7249
  onSelectOption: (value2) => {
6746
7250
  var _a2;
@@ -6814,12 +7318,12 @@ function ButtonView(props) {
6814
7318
  "button",
6815
7319
  {
6816
7320
  className: cn(
6817
- "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 disabled:mly-pointer-events-none disabled:mly-opacity-50",
6818
- "mly-font-semibold mly-no-underline",
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",
6819
7323
  {
6820
- "!mly-rounded-full": _radius === "round",
6821
- "!mly-rounded-md": _radius === "smooth",
6822
- "!mly-rounded-none": _radius === "sharp"
7324
+ "mly:rounded-full!": _radius === "round",
7325
+ "mly:rounded-md!": _radius === "smooth",
7326
+ "mly:rounded-none!": _radius === "sharp"
6823
7327
  }
6824
7328
  ),
6825
7329
  tabIndex: -1,
@@ -6858,11 +7362,11 @@ function ButtonView(props) {
6858
7362
  {
6859
7363
  align: "end",
6860
7364
  side: "top",
6861
- className: "mly-w-max mly-rounded-lg !mly-p-0.5",
7365
+ className: "mly:w-max mly:rounded-lg mly:p-0.5!",
6862
7366
  sideOffset: 8,
6863
7367
  onOpenAutoFocus: (e) => e.preventDefault(),
6864
7368
  onCloseAutoFocus: (e) => e.preventDefault(),
6865
- 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: [
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: [
6866
7370
  /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
6867
7371
  ButtonLabelInput,
6868
7372
  {
@@ -6878,7 +7382,7 @@ function ButtonView(props) {
6878
7382
  }
6879
7383
  ),
6880
7384
  /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Divider, {}),
6881
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "mly-flex mly-space-x-0.5", children: [
7385
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "mly:flex mly:gap-x-0.5", children: [
6882
7386
  /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
6883
7387
  Select,
6884
7388
  {
@@ -6894,7 +7398,7 @@ function ButtonView(props) {
6894
7398
  });
6895
7399
  },
6896
7400
  tooltip: "Border Radius",
6897
- className: "mly-capitalize"
7401
+ className: "mly:capitalize"
6898
7402
  }
6899
7403
  ),
6900
7404
  /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
@@ -6912,7 +7416,7 @@ function ButtonView(props) {
6912
7416
  });
6913
7417
  },
6914
7418
  tooltip: "Style",
6915
- className: "mly-capitalize"
7419
+ className: "mly:capitalize"
6916
7420
  }
6917
7421
  ),
6918
7422
  /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
@@ -6940,7 +7444,7 @@ function ButtonView(props) {
6940
7444
  )
6941
7445
  ] }),
6942
7446
  /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Divider, {}),
6943
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "mly-flex mly-space-x-0.5", children: [
7447
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "mly:flex mly:gap-x-0.5", children: [
6944
7448
  /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
6945
7449
  AlignmentSwitch,
6946
7450
  {
@@ -6969,7 +7473,7 @@ function ButtonView(props) {
6969
7473
  )
6970
7474
  ] }),
6971
7475
  /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Divider, {}),
6972
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "mly-flex mly-space-x-0.5", children: [
7476
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "mly:flex mly:gap-x-0.5", children: [
6973
7477
  /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
6974
7478
  BackgroundColorPickerPopup,
6975
7479
  {
@@ -7028,11 +7532,11 @@ function BackgroundColorPickerPopup(props) {
7028
7532
  variant: "ghost",
7029
7533
  size: "sm",
7030
7534
  type: "button",
7031
- className: "mly-size-7",
7535
+ className: "mly:size-7",
7032
7536
  children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
7033
7537
  "div",
7034
7538
  {
7035
- className: "mly-h-4 mly-w-4 mly-shrink-0 mly-rounded-full mly-shadow",
7539
+ className: "mly:h-4 mly:w-4 mly:shrink-0 mly:rounded-full mly:shadow",
7036
7540
  style: {
7037
7541
  backgroundColor: variant === "filled" ? color : "transparent",
7038
7542
  borderStyle: "solid",
@@ -7054,13 +7558,13 @@ function TextColorPickerPopup(props) {
7054
7558
  variant: "ghost",
7055
7559
  size: "sm",
7056
7560
  type: "button",
7057
- className: "mly-size-7",
7058
- children: /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "mly-flex mly-flex-col mly-items-center mly-justify-center mly-gap-[1px]", children: [
7059
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: "mly-font-bolder mly-font-mono mly-text-xs mly-text-midnight-gray", children: "A" }),
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" }),
7060
7564
  /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
7061
7565
  "div",
7062
7566
  {
7063
- className: "mly-h-[2px] mly-w-3 mly-shrink-0 mly-rounded-md mly-shadow",
7567
+ className: "mly:h-[2px] mly:w-3 mly:shrink-0 mly:rounded-md mly:shadow",
7064
7568
  style: { backgroundColor: color }
7065
7569
  }
7066
7570
  )
@@ -7226,7 +7730,7 @@ var ButtonExtension = import_core12.Node.create({
7226
7730
  addNodeView() {
7227
7731
  return (0, import_react27.ReactNodeViewRenderer)(ButtonView, {
7228
7732
  contentDOMElementTag: "div",
7229
- className: "mly-relative"
7733
+ className: "mly:relative"
7230
7734
  });
7231
7735
  }
7232
7736
  });
@@ -7372,7 +7876,7 @@ var ImageExtension = import_extension_image2.default.extend({
7372
7876
  },
7373
7877
  addNodeView() {
7374
7878
  return (0, import_react28.ReactNodeViewRenderer)(ImageView, {
7375
- className: "mly-relative"
7879
+ className: "mly:relative"
7376
7880
  });
7377
7881
  }
7378
7882
  });
@@ -7462,7 +7966,7 @@ function RepeatView(props) {
7462
7966
  "data-type": "repeat",
7463
7967
  draggable: editor.isEditable,
7464
7968
  "data-drag-handle": editor.isEditable,
7465
- className: "mly-relative",
7969
+ className: "mly:relative",
7466
7970
  children: [
7467
7971
  /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_react29.NodeViewContent, { className: "is-editable" }),
7468
7972
  /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
@@ -7470,14 +7974,14 @@ function RepeatView(props) {
7470
7974
  {
7471
7975
  role: "button",
7472
7976
  "data-repeat-indicator": "",
7473
- 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",
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",
7474
7978
  contentEditable: false,
7475
7979
  onClick: () => {
7476
7980
  editor.commands.setNodeSelection(getPos());
7477
7981
  },
7478
7982
  children: [
7479
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_lucide_react17.Repeat2, { className: "mly-size-3 mly-stroke-[2.5] mly-text-midnight-gray" }),
7480
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "mly-w-[1.5px] mly-grow mly-rounded-full mly-bg-rose-300" })
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" })
7481
7985
  ]
7482
7986
  }
7483
7987
  )
@@ -7563,7 +8067,7 @@ var RepeatExtension = import_core13.Node.create({
7563
8067
  addNodeView() {
7564
8068
  return (0, import_react30.ReactNodeViewRenderer)(RepeatView, {
7565
8069
  contentDOMElementTag: "div",
7566
- className: "mly-relative"
8070
+ className: "mly:relative"
7567
8071
  });
7568
8072
  }
7569
8073
  });
@@ -7577,7 +8081,7 @@ var MailyKit = import_core14.Extension.create({
7577
8081
  HTMLAttributes: {
7578
8082
  target: "_blank",
7579
8083
  rel: "noopener noreferrer nofollow",
7580
- class: "mly-no-underline"
8084
+ class: "mly:no-underline"
7581
8085
  },
7582
8086
  openOnClick: false
7583
8087
  }
@@ -7591,22 +8095,22 @@ var MailyKit = import_core14.Extension.create({
7591
8095
  import_starter_kit.default.configure({
7592
8096
  code: {
7593
8097
  HTMLAttributes: {
7594
- 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"
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"
7595
8099
  }
7596
8100
  },
7597
8101
  blockquote: {
7598
8102
  HTMLAttributes: {
7599
- class: "mly-not-prose mly-border-l-4 mly-border-gray-300 mly-pl-4 mly-mt-4 mly-mb-4 mly-relative"
8103
+ class: "mly:not-prose mly:border-l-4 mly:border-gray-300 mly:pl-4 mly:mt-4 mly:mb-4 mly:relative"
7600
8104
  }
7601
8105
  },
7602
8106
  bulletList: {
7603
8107
  HTMLAttributes: {
7604
- class: "mly-relative"
8108
+ class: "mly:relative"
7605
8109
  }
7606
8110
  },
7607
8111
  orderedList: {
7608
8112
  HTMLAttributes: {
7609
- class: "mly-relative"
8113
+ class: "mly:relative"
7610
8114
  }
7611
8115
  },
7612
8116
  heading: false,
@@ -7632,12 +8136,12 @@ var MailyKit = import_core14.Extension.create({
7632
8136
  HeadingExtension.configure({
7633
8137
  levels: [1, 2, 3],
7634
8138
  HTMLAttributes: {
7635
- class: "mly-relative"
8139
+ class: "mly:relative"
7636
8140
  }
7637
8141
  }),
7638
8142
  ParagraphExtension.configure({
7639
8143
  HTMLAttributes: {
7640
- class: "mly-relative"
8144
+ class: "mly:relative"
7641
8145
  }
7642
8146
  })
7643
8147
  ];
@@ -7749,12 +8253,12 @@ function SlashCommandItem(props) {
7749
8253
  const hasRenderFunction = typeof item.render === "function";
7750
8254
  const renderFunctionValue = hasRenderFunction ? (_a = item.render) == null ? void 0 : _a.call(item, editor) : null;
7751
8255
  let value = /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(import_jsx_runtime35.Fragment, { children: [
7752
- /* @__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 }),
7753
- /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "mly-grow", children: [
7754
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("p", { className: "mly-font-medium", children: item.title }),
7755
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("p", { className: "mly-text-xs mly-text-gray-400", children: item.description })
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 })
7756
8260
  ] }),
7757
- 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]" }) })
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]" }) })
7758
8262
  ] });
7759
8263
  if (renderFunctionValue !== null && renderFunctionValue !== true) {
7760
8264
  value = renderFunctionValue;
@@ -7790,8 +8294,8 @@ function SlashCommandItem(props) {
7790
8294
  "button",
7791
8295
  {
7792
8296
  className: cn(
7793
- "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 hover:mly-bg-gray-100 hover:mly-text-gray-900",
7794
- isActive ? "mly-bg-gray-100 mly-text-gray-900" : "mly-bg-transparent"
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"
7795
8299
  ),
7796
8300
  onClick: () => selectItem(groupIndex, commandIndex),
7797
8301
  onMouseEnter: () => onHover(true),
@@ -7806,17 +8310,17 @@ function SlashCommandItem(props) {
7806
8310
  {
7807
8311
  side: "right",
7808
8312
  sideOffset: 10,
7809
- className: "mly-w-52 mly-rounded-lg mly-border-none mly-p-1 mly-shadow",
8313
+ className: "mly:w-52 mly:rounded-lg mly:border-none mly:p-1 mly:shadow",
7810
8314
  children: typeof item.preview === "function" ? item == null ? void 0 : item.preview(editor) : /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(import_jsx_runtime35.Fragment, { children: [
7811
- /* @__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)(
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)(
7812
8316
  "img",
7813
8317
  {
7814
8318
  src: item == null ? void 0 : item.preview,
7815
8319
  alt: item == null ? void 0 : item.title,
7816
- className: "mly-absolute mly-inset-0 mly-h-full mly-w-full mly-object-cover"
8320
+ className: "mly:absolute mly:inset-0 mly:h-full mly:w-full mly:object-cover"
7817
8321
  }
7818
8322
  ) }),
7819
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("p", { className: "mly-mt-2 mly-px-0.5 mly-text-gray-500", children: item.description })
8323
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("p", { className: "mly:mt-2 mly:px-0.5 mly:text-gray-500", children: item.description })
7820
8324
  ] })
7821
8325
  }
7822
8326
  )
@@ -8043,25 +8547,25 @@ var CommandList = (0, import_react33.forwardRef)((props, ref) => {
8043
8547
  if (!groups || groups.length === 0) {
8044
8548
  return null;
8045
8549
  }
8046
- 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: [
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: [
8047
8551
  /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
8048
8552
  "div",
8049
8553
  {
8050
8554
  id: "slash-command",
8051
8555
  ref: commandListContainer,
8052
- className: "mly-no-scrollbar mly-h-auto mly-max-h-[330px] mly-overflow-y-auto",
8556
+ className: "mly:no-scrollbar mly:h-auto mly:max-h-[330px] mly:overflow-y-auto",
8053
8557
  children: groups.map((group, groupIndex) => /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_react33.Fragment, { children: [
8054
8558
  /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
8055
8559
  "span",
8056
8560
  {
8057
8561
  className: cn(
8058
- "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",
8059
- groupIndex > 0 ? "mly-border-t" : ""
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" : ""
8060
8564
  ),
8061
8565
  children: group.title
8062
8566
  }
8063
8567
  ),
8064
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "mly-space-y-0.5 mly-p-1", children: group.commands.map((item, commandIndex) => {
8568
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "mly:space-y-0.5 mly:p-1", children: group.commands.map((item, commandIndex) => {
8065
8569
  const itemKey = `${groupIndex}-${commandIndex}`;
8066
8570
  return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
8067
8571
  SlashCommandItem,
@@ -8083,16 +8587,16 @@ var CommandList = (0, import_react33.forwardRef)((props, ref) => {
8083
8587
  ] }, groupIndex))
8084
8588
  }
8085
8589
  ),
8086
- /* @__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: [
8087
- /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("p", { className: "mly-text-center mly-text-xs mly-text-gray-400", children: [
8088
- /* @__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" }),
8089
- /* @__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" }),
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" }),
8090
8594
  " ",
8091
8595
  "to navigate"
8092
8596
  ] }),
8093
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { "aria-hidden": "true", className: "mly-select-none mly-px-1", children: "\xB7" }),
8094
- /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("p", { className: "mly-text-center mly-text-xs mly-text-gray-400", children: [
8095
- /* @__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" }),
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" }),
8096
8600
  " ",
8097
8601
  "to select"
8098
8602
  ] })
@@ -8206,10 +8710,11 @@ var VariableList = (0, import_react35.forwardRef)((props, ref) => {
8206
8710
  {
8207
8711
  items,
8208
8712
  onSelectItem: (value) => {
8209
- var _a2;
8713
+ var _a2, _b;
8210
8714
  props.command({
8211
8715
  id: value.name,
8212
- required: (_a2 = value.required) != null ? _a2 : true
8716
+ required: (_a2 = value.required) != null ? _a2 : true,
8717
+ hideDefaultValue: (_b = value == null ? void 0 : value.hideDefaultValue) != null ? _b : false
8213
8718
  });
8214
8719
  },
8215
8720
  ref: popoverRef
@@ -8323,7 +8828,7 @@ function HTMLCodeBlockView(props) {
8323
8828
  "data-drag-handle": false,
8324
8829
  "data-type": "htmlCodeBlock",
8325
8830
  children: [
8326
- 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)(
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)(
8327
8832
  import_react36.NodeViewContent,
8328
8833
  {
8329
8834
  as: "code",
@@ -8334,8 +8839,8 @@ function HTMLCodeBlockView(props) {
8334
8839
  "div",
8335
8840
  {
8336
8841
  className: cn(
8337
- "mly-not-prose mly-rounded-lg mly-border mly-border-gray-200 mly-p-2",
8338
- isEmpty && "mly-min-h-[42px]"
8842
+ "mly:not-prose mly:rounded-lg mly:border mly:border-gray-200 mly:p-2",
8843
+ isEmpty && "mly:min-h-[42px]"
8339
8844
  ),
8340
8845
  ref: (node2) => {
8341
8846
  if (!node2 || (node2 == null ? void 0 : node2.shadowRoot)) {
@@ -8399,7 +8904,7 @@ var HTMLCodeBlockExtension = import_extension_code_block_lowlight.default.extend
8399
8904
  },
8400
8905
  addNodeView() {
8401
8906
  return (0, import_react38.ReactNodeViewRenderer)(HTMLCodeBlockView, {
8402
- className: "mly-relative",
8907
+ className: "mly:relative",
8403
8908
  attrs: ({ node }) => {
8404
8909
  var _a;
8405
8910
  return {