@maily-to/core 0.3.2 → 0.3.4

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.
@@ -84,7 +84,7 @@ var HorizontalRule = TipTapHorizontalRule.extend({
84
84
  addOptions() {
85
85
  return {
86
86
  HTMLAttributes: {
87
- class: "mly-relative"
87
+ class: "mly:relative"
88
88
  }
89
89
  };
90
90
  }
@@ -271,7 +271,7 @@ var Footer = Node.create({
271
271
  return [
272
272
  "small",
273
273
  mergeAttributes(this.options.HTMLAttributes, HTMLAttributes2, {
274
- class: "footer mly-block mly-text-[13px] mly-text-slate-500 mly-relative"
274
+ class: "footer mly:block mly:text-[13px] mly:text-slate-500 mly:relative"
275
275
  }),
276
276
  0
277
277
  ];
@@ -579,25 +579,25 @@ var SectionExtension = Node2.create({
579
579
  border: 0,
580
580
  cellpadding: 0,
581
581
  cellspacing: 0,
582
- class: "mly-w-full mly-border-separate mly-relative mly-table-fixed",
582
+ class: "mly:w-full mly:border-separate mly:relative mly:table-fixed",
583
583
  style: `margin-top: ${marginTop}px; margin-right: ${marginRight}px; margin-bottom: ${marginBottom}px; margin-left: ${marginLeft}px;`
584
584
  },
585
585
  [
586
586
  "tbody",
587
587
  {
588
- class: "mly-w-full"
588
+ class: "mly:w-full"
589
589
  },
590
590
  [
591
591
  "tr",
592
592
  {
593
- class: "mly-w-full"
593
+ class: "mly:w-full"
594
594
  },
595
595
  [
596
596
  "td",
597
597
  mergeAttributes2(HTMLAttributes2, {
598
598
  "data-type": "section-cell",
599
599
  style: "border-style: solid",
600
- class: "mly-w-full [text-align:revert-layer]"
600
+ class: "mly:w-full mly:[text-align:revert-layer]"
601
601
  }),
602
602
  0
603
603
  ]
@@ -680,7 +680,7 @@ var Spacer = Node3.create({
680
680
  this.options.HTMLAttributes,
681
681
  HTMLAttributes2,
682
682
  {
683
- class: "spacer mly-relative mly-full mly-z-50",
683
+ class: "spacer mly:relative mly:full mly:z-50",
684
684
  contenteditable: false,
685
685
  style: `height: ${height}px;--spacer-height: ${height}px;`
686
686
  }
@@ -705,7 +705,7 @@ import * as React from "react";
705
705
  // src/editor/utils/classname.ts
706
706
  import { clsx } from "clsx";
707
707
 
708
- // ../../node_modules/.pnpm/tailwind-merge@2.5.4/node_modules/tailwind-merge/dist/bundle-mjs.mjs
708
+ // ../../node_modules/.pnpm/tailwind-merge@3.3.0/node_modules/tailwind-merge/dist/bundle-mjs.mjs
709
709
  var CLASS_PART_SEPARATOR = "-";
710
710
  var createClassGroupUtils = (config) => {
711
711
  const classMap = createClassMap(config);
@@ -764,16 +764,15 @@ var getGroupIdForArbitraryProperty = (className) => {
764
764
  var createClassMap = (config) => {
765
765
  const {
766
766
  theme,
767
- prefix
767
+ classGroups
768
768
  } = config;
769
769
  const classMap = {
770
770
  nextPart: /* @__PURE__ */ new Map(),
771
771
  validators: []
772
772
  };
773
- const prefixedClassGroupEntries = getPrefixedClassGroupEntries(Object.entries(config.classGroups), prefix);
774
- prefixedClassGroupEntries.forEach(([classGroupId, classGroup]) => {
775
- processClassesRecursively(classGroup, classMap, classGroupId, theme);
776
- });
773
+ for (const classGroupId in classGroups) {
774
+ processClassesRecursively(classGroups[classGroupId], classMap, classGroupId, theme);
775
+ }
777
776
  return classMap;
778
777
  };
779
778
  var processClassesRecursively = (classGroup, classPartObject, classGroupId, theme) => {
@@ -813,23 +812,6 @@ var getPart = (classPartObject, path) => {
813
812
  return currentClassPartObject;
814
813
  };
815
814
  var isThemeGetter = (func) => func.isThemeGetter;
816
- var getPrefixedClassGroupEntries = (classGroupEntries, prefix) => {
817
- if (!prefix) {
818
- return classGroupEntries;
819
- }
820
- return classGroupEntries.map(([classGroupId, classGroup]) => {
821
- const prefixedClassGroup = classGroup.map((classDefinition) => {
822
- if (typeof classDefinition === "string") {
823
- return prefix + classDefinition;
824
- }
825
- if (typeof classDefinition === "object") {
826
- return Object.fromEntries(Object.entries(classDefinition).map(([key, value]) => [prefix + key, value]));
827
- }
828
- return classDefinition;
829
- });
830
- return [classGroupId, prefixedClassGroup];
831
- });
832
- };
833
815
  var createLruCache = (maxCacheSize) => {
834
816
  if (maxCacheSize < 1) {
835
817
  return {
@@ -871,25 +853,25 @@ var createLruCache = (maxCacheSize) => {
871
853
  };
872
854
  };
873
855
  var IMPORTANT_MODIFIER = "!";
856
+ var MODIFIER_SEPARATOR = ":";
857
+ var MODIFIER_SEPARATOR_LENGTH = MODIFIER_SEPARATOR.length;
874
858
  var createParseClassName = (config) => {
875
859
  const {
876
- separator,
860
+ prefix,
877
861
  experimentalParseClassName
878
862
  } = config;
879
- const isSeparatorSingleCharacter = separator.length === 1;
880
- const firstSeparatorCharacter = separator[0];
881
- const separatorLength = separator.length;
882
- const parseClassName = (className) => {
863
+ let parseClassName = (className) => {
883
864
  const modifiers = [];
884
865
  let bracketDepth = 0;
866
+ let parenDepth = 0;
885
867
  let modifierStart = 0;
886
868
  let postfixModifierPosition;
887
869
  for (let index = 0; index < className.length; index++) {
888
870
  let currentCharacter = className[index];
889
- if (bracketDepth === 0) {
890
- if (currentCharacter === firstSeparatorCharacter && (isSeparatorSingleCharacter || className.slice(index, index + separatorLength) === separator)) {
871
+ if (bracketDepth === 0 && parenDepth === 0) {
872
+ if (currentCharacter === MODIFIER_SEPARATOR) {
891
873
  modifiers.push(className.slice(modifierStart, index));
892
- modifierStart = index + separatorLength;
874
+ modifierStart = index + MODIFIER_SEPARATOR_LENGTH;
893
875
  continue;
894
876
  }
895
877
  if (currentCharacter === "/") {
@@ -901,11 +883,15 @@ var createParseClassName = (config) => {
901
883
  bracketDepth++;
902
884
  } else if (currentCharacter === "]") {
903
885
  bracketDepth--;
886
+ } else if (currentCharacter === "(") {
887
+ parenDepth++;
888
+ } else if (currentCharacter === ")") {
889
+ parenDepth--;
904
890
  }
905
891
  }
906
892
  const baseClassNameWithImportantModifier = modifiers.length === 0 ? className : className.substring(modifierStart);
907
- const hasImportantModifier = baseClassNameWithImportantModifier.startsWith(IMPORTANT_MODIFIER);
908
- const baseClassName = hasImportantModifier ? baseClassNameWithImportantModifier.substring(1) : baseClassNameWithImportantModifier;
893
+ const baseClassName = stripImportantModifier(baseClassNameWithImportantModifier);
894
+ const hasImportantModifier = baseClassName !== baseClassNameWithImportantModifier;
909
895
  const maybePostfixModifierPosition = postfixModifierPosition && postfixModifierPosition > modifierStart ? postfixModifierPosition - modifierStart : void 0;
910
896
  return {
911
897
  modifiers,
@@ -914,42 +900,69 @@ var createParseClassName = (config) => {
914
900
  maybePostfixModifierPosition
915
901
  };
916
902
  };
903
+ if (prefix) {
904
+ const fullPrefix = prefix + MODIFIER_SEPARATOR;
905
+ const parseClassNameOriginal = parseClassName;
906
+ parseClassName = (className) => className.startsWith(fullPrefix) ? parseClassNameOriginal(className.substring(fullPrefix.length)) : {
907
+ isExternal: true,
908
+ modifiers: [],
909
+ hasImportantModifier: false,
910
+ baseClassName: className,
911
+ maybePostfixModifierPosition: void 0
912
+ };
913
+ }
917
914
  if (experimentalParseClassName) {
918
- return (className) => experimentalParseClassName({
915
+ const parseClassNameOriginal = parseClassName;
916
+ parseClassName = (className) => experimentalParseClassName({
919
917
  className,
920
- parseClassName
918
+ parseClassName: parseClassNameOriginal
921
919
  });
922
920
  }
923
921
  return parseClassName;
924
922
  };
925
- var sortModifiers = (modifiers) => {
926
- if (modifiers.length <= 1) {
927
- return modifiers;
923
+ var stripImportantModifier = (baseClassName) => {
924
+ if (baseClassName.endsWith(IMPORTANT_MODIFIER)) {
925
+ return baseClassName.substring(0, baseClassName.length - 1);
928
926
  }
929
- const sortedModifiers = [];
930
- let unsortedModifiers = [];
931
- modifiers.forEach((modifier) => {
932
- const isArbitraryVariant = modifier[0] === "[";
933
- if (isArbitraryVariant) {
934
- sortedModifiers.push(...unsortedModifiers.sort(), modifier);
935
- unsortedModifiers = [];
936
- } else {
937
- unsortedModifiers.push(modifier);
927
+ if (baseClassName.startsWith(IMPORTANT_MODIFIER)) {
928
+ return baseClassName.substring(1);
929
+ }
930
+ return baseClassName;
931
+ };
932
+ var createSortModifiers = (config) => {
933
+ const orderSensitiveModifiers = Object.fromEntries(config.orderSensitiveModifiers.map((modifier) => [modifier, true]));
934
+ const sortModifiers = (modifiers) => {
935
+ if (modifiers.length <= 1) {
936
+ return modifiers;
938
937
  }
939
- });
940
- sortedModifiers.push(...unsortedModifiers.sort());
941
- return sortedModifiers;
938
+ const sortedModifiers = [];
939
+ let unsortedModifiers = [];
940
+ modifiers.forEach((modifier) => {
941
+ const isPositionSensitive = modifier[0] === "[" || orderSensitiveModifiers[modifier];
942
+ if (isPositionSensitive) {
943
+ sortedModifiers.push(...unsortedModifiers.sort(), modifier);
944
+ unsortedModifiers = [];
945
+ } else {
946
+ unsortedModifiers.push(modifier);
947
+ }
948
+ });
949
+ sortedModifiers.push(...unsortedModifiers.sort());
950
+ return sortedModifiers;
951
+ };
952
+ return sortModifiers;
942
953
  };
943
954
  var createConfigUtils = (config) => __spreadValues({
944
955
  cache: createLruCache(config.cacheSize),
945
- parseClassName: createParseClassName(config)
956
+ parseClassName: createParseClassName(config),
957
+ sortModifiers: createSortModifiers(config)
946
958
  }, createClassGroupUtils(config));
947
959
  var SPLIT_CLASSES_REGEX = /\s+/;
948
960
  var mergeClassList = (classList, configUtils) => {
949
961
  const {
950
962
  parseClassName,
951
963
  getClassGroupId,
952
- getConflictingClassGroupIds
964
+ getConflictingClassGroupIds,
965
+ sortModifiers
953
966
  } = configUtils;
954
967
  const classGroupsInConflict = [];
955
968
  const classNames = classList.trim().split(SPLIT_CLASSES_REGEX);
@@ -957,12 +970,17 @@ var mergeClassList = (classList, configUtils) => {
957
970
  for (let index = classNames.length - 1; index >= 0; index -= 1) {
958
971
  const originalClassName = classNames[index];
959
972
  const {
973
+ isExternal,
960
974
  modifiers,
961
975
  hasImportantModifier,
962
976
  baseClassName,
963
977
  maybePostfixModifierPosition
964
978
  } = parseClassName(originalClassName);
965
- let hasPostfixModifier = Boolean(maybePostfixModifierPosition);
979
+ if (isExternal) {
980
+ result = originalClassName + (result.length > 0 ? " " + result : result);
981
+ continue;
982
+ }
983
+ let hasPostfixModifier = !!maybePostfixModifierPosition;
966
984
  let classGroupId = getClassGroupId(hasPostfixModifier ? baseClassName.substring(0, maybePostfixModifierPosition) : baseClassName);
967
985
  if (!classGroupId) {
968
986
  if (!hasPostfixModifier) {
@@ -1054,39 +1072,20 @@ var fromTheme = (key) => {
1054
1072
  themeGetter.isThemeGetter = true;
1055
1073
  return themeGetter;
1056
1074
  };
1057
- var arbitraryValueRegex = /^\[(?:([a-z-]+):)?(.+)\]$/i;
1075
+ var arbitraryValueRegex = /^\[(?:(\w[\w-]*):)?(.+)\]$/i;
1076
+ var arbitraryVariableRegex = /^\((?:(\w[\w-]*):)?(.+)\)$/i;
1058
1077
  var fractionRegex = /^\d+\/\d+$/;
1059
- var stringLengths = /* @__PURE__ */ new Set(["px", "full", "screen"]);
1060
1078
  var tshirtUnitRegex = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/;
1061
1079
  var lengthUnitRegex = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/;
1062
1080
  var colorFunctionRegex = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/;
1063
1081
  var shadowRegex = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;
1064
1082
  var imageRegex = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;
1065
- var isLength = (value) => isNumber(value) || stringLengths.has(value) || fractionRegex.test(value);
1066
- var isArbitraryLength = (value) => getIsArbitraryValue(value, "length", isLengthOnly);
1067
- var isNumber = (value) => Boolean(value) && !Number.isNaN(Number(value));
1068
- var isArbitraryNumber = (value) => getIsArbitraryValue(value, "number", isNumber);
1069
- var isInteger = (value) => Boolean(value) && Number.isInteger(Number(value));
1083
+ var isFraction = (value) => fractionRegex.test(value);
1084
+ var isNumber = (value) => !!value && !Number.isNaN(Number(value));
1085
+ var isInteger = (value) => !!value && Number.isInteger(Number(value));
1070
1086
  var isPercent = (value) => value.endsWith("%") && isNumber(value.slice(0, -1));
1071
- var isArbitraryValue = (value) => arbitraryValueRegex.test(value);
1072
1087
  var isTshirtSize = (value) => tshirtUnitRegex.test(value);
1073
- var sizeLabels = /* @__PURE__ */ new Set(["length", "size", "percentage"]);
1074
- var isArbitrarySize = (value) => getIsArbitraryValue(value, sizeLabels, isNever);
1075
- var isArbitraryPosition = (value) => getIsArbitraryValue(value, "position", isNever);
1076
- var imageLabels = /* @__PURE__ */ new Set(["image", "url"]);
1077
- var isArbitraryImage = (value) => getIsArbitraryValue(value, imageLabels, isImage);
1078
- var isArbitraryShadow = (value) => getIsArbitraryValue(value, "", isShadow);
1079
1088
  var isAny = () => true;
1080
- var getIsArbitraryValue = (value, label, testValue) => {
1081
- const result = arbitraryValueRegex.exec(value);
1082
- if (result) {
1083
- if (result[1]) {
1084
- return typeof label === "string" ? result[1] === label : label.has(result[1]);
1085
- }
1086
- return testValue(result[2]);
1087
- }
1088
- return false;
1089
- };
1090
1089
  var isLengthOnly = (value) => (
1091
1090
  // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
1092
1091
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
@@ -1096,87 +1095,177 @@ var isLengthOnly = (value) => (
1096
1095
  var isNever = () => false;
1097
1096
  var isShadow = (value) => shadowRegex.test(value);
1098
1097
  var isImage = (value) => imageRegex.test(value);
1098
+ var isAnyNonArbitrary = (value) => !isArbitraryValue(value) && !isArbitraryVariable(value);
1099
+ var isArbitrarySize = (value) => getIsArbitraryValue(value, isLabelSize, isNever);
1100
+ var isArbitraryValue = (value) => arbitraryValueRegex.test(value);
1101
+ var isArbitraryLength = (value) => getIsArbitraryValue(value, isLabelLength, isLengthOnly);
1102
+ var isArbitraryNumber = (value) => getIsArbitraryValue(value, isLabelNumber, isNumber);
1103
+ var isArbitraryPosition = (value) => getIsArbitraryValue(value, isLabelPosition, isNever);
1104
+ var isArbitraryImage = (value) => getIsArbitraryValue(value, isLabelImage, isImage);
1105
+ var isArbitraryShadow = (value) => getIsArbitraryValue(value, isLabelShadow, isShadow);
1106
+ var isArbitraryVariable = (value) => arbitraryVariableRegex.test(value);
1107
+ var isArbitraryVariableLength = (value) => getIsArbitraryVariable(value, isLabelLength);
1108
+ var isArbitraryVariableFamilyName = (value) => getIsArbitraryVariable(value, isLabelFamilyName);
1109
+ var isArbitraryVariablePosition = (value) => getIsArbitraryVariable(value, isLabelPosition);
1110
+ var isArbitraryVariableSize = (value) => getIsArbitraryVariable(value, isLabelSize);
1111
+ var isArbitraryVariableImage = (value) => getIsArbitraryVariable(value, isLabelImage);
1112
+ var isArbitraryVariableShadow = (value) => getIsArbitraryVariable(value, isLabelShadow, true);
1113
+ var getIsArbitraryValue = (value, testLabel, testValue) => {
1114
+ const result = arbitraryValueRegex.exec(value);
1115
+ if (result) {
1116
+ if (result[1]) {
1117
+ return testLabel(result[1]);
1118
+ }
1119
+ return testValue(result[2]);
1120
+ }
1121
+ return false;
1122
+ };
1123
+ var getIsArbitraryVariable = (value, testLabel, shouldMatchNoLabel = false) => {
1124
+ const result = arbitraryVariableRegex.exec(value);
1125
+ if (result) {
1126
+ if (result[1]) {
1127
+ return testLabel(result[1]);
1128
+ }
1129
+ return shouldMatchNoLabel;
1130
+ }
1131
+ return false;
1132
+ };
1133
+ var isLabelPosition = (label) => label === "position" || label === "percentage";
1134
+ var isLabelImage = (label) => label === "image" || label === "url";
1135
+ var isLabelSize = (label) => label === "length" || label === "size" || label === "bg-size";
1136
+ var isLabelLength = (label) => label === "length";
1137
+ var isLabelNumber = (label) => label === "number";
1138
+ var isLabelFamilyName = (label) => label === "family-name";
1139
+ var isLabelShadow = (label) => label === "shadow";
1099
1140
  var getDefaultConfig = () => {
1100
- const colors = fromTheme("colors");
1101
- const spacing = fromTheme("spacing");
1102
- const blur = fromTheme("blur");
1103
- const brightness = fromTheme("brightness");
1104
- const borderColor = fromTheme("borderColor");
1105
- const borderRadius = fromTheme("borderRadius");
1106
- const borderSpacing = fromTheme("borderSpacing");
1107
- const borderWidth = fromTheme("borderWidth");
1108
- const contrast = fromTheme("contrast");
1109
- const grayscale = fromTheme("grayscale");
1110
- const hueRotate = fromTheme("hueRotate");
1111
- const invert = fromTheme("invert");
1112
- const gap = fromTheme("gap");
1113
- const gradientColorStops = fromTheme("gradientColorStops");
1114
- const gradientColorStopPositions = fromTheme("gradientColorStopPositions");
1115
- const inset = fromTheme("inset");
1116
- const margin = fromTheme("margin");
1117
- const opacity = fromTheme("opacity");
1118
- const padding = fromTheme("padding");
1119
- const saturate = fromTheme("saturate");
1120
- const scale = fromTheme("scale");
1121
- const sepia = fromTheme("sepia");
1122
- const skew = fromTheme("skew");
1123
- const space = fromTheme("space");
1124
- const translate = fromTheme("translate");
1125
- const getOverscroll = () => ["auto", "contain", "none"];
1126
- const getOverflow = () => ["auto", "hidden", "clip", "visible", "scroll"];
1127
- const getSpacingWithAutoAndArbitrary = () => ["auto", isArbitraryValue, spacing];
1128
- const getSpacingWithArbitrary = () => [isArbitraryValue, spacing];
1129
- const getLengthWithEmptyAndArbitrary = () => ["", isLength, isArbitraryLength];
1130
- const getNumberWithAutoAndArbitrary = () => ["auto", isNumber, isArbitraryValue];
1131
- const getPositions = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"];
1132
- const getLineStyles = () => ["solid", "dashed", "dotted", "double", "none"];
1133
- const getBlendModes = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"];
1134
- const getAlign = () => ["start", "end", "center", "between", "around", "evenly", "stretch"];
1135
- const getZeroAndEmpty = () => ["", "0", isArbitraryValue];
1136
- const getBreaks = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"];
1137
- const getNumberAndArbitrary = () => [isNumber, isArbitraryValue];
1141
+ const themeColor = fromTheme("color");
1142
+ const themeFont = fromTheme("font");
1143
+ const themeText = fromTheme("text");
1144
+ const themeFontWeight = fromTheme("font-weight");
1145
+ const themeTracking = fromTheme("tracking");
1146
+ const themeLeading = fromTheme("leading");
1147
+ const themeBreakpoint = fromTheme("breakpoint");
1148
+ const themeContainer = fromTheme("container");
1149
+ const themeSpacing = fromTheme("spacing");
1150
+ const themeRadius = fromTheme("radius");
1151
+ const themeShadow = fromTheme("shadow");
1152
+ const themeInsetShadow = fromTheme("inset-shadow");
1153
+ const themeTextShadow = fromTheme("text-shadow");
1154
+ const themeDropShadow = fromTheme("drop-shadow");
1155
+ const themeBlur = fromTheme("blur");
1156
+ const themePerspective = fromTheme("perspective");
1157
+ const themeAspect = fromTheme("aspect");
1158
+ const themeEase = fromTheme("ease");
1159
+ const themeAnimate = fromTheme("animate");
1160
+ const scaleBreak = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"];
1161
+ const scalePosition = () => [
1162
+ "center",
1163
+ "top",
1164
+ "bottom",
1165
+ "left",
1166
+ "right",
1167
+ "top-left",
1168
+ // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
1169
+ "left-top",
1170
+ "top-right",
1171
+ // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
1172
+ "right-top",
1173
+ "bottom-right",
1174
+ // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
1175
+ "right-bottom",
1176
+ "bottom-left",
1177
+ // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
1178
+ "left-bottom"
1179
+ ];
1180
+ const scalePositionWithArbitrary = () => [...scalePosition(), isArbitraryVariable, isArbitraryValue];
1181
+ const scaleOverflow = () => ["auto", "hidden", "clip", "visible", "scroll"];
1182
+ const scaleOverscroll = () => ["auto", "contain", "none"];
1183
+ const scaleUnambiguousSpacing = () => [isArbitraryVariable, isArbitraryValue, themeSpacing];
1184
+ const scaleInset = () => [isFraction, "full", "auto", ...scaleUnambiguousSpacing()];
1185
+ const scaleGridTemplateColsRows = () => [isInteger, "none", "subgrid", isArbitraryVariable, isArbitraryValue];
1186
+ const scaleGridColRowStartAndEnd = () => ["auto", {
1187
+ span: ["full", isInteger, isArbitraryVariable, isArbitraryValue]
1188
+ }, isInteger, isArbitraryVariable, isArbitraryValue];
1189
+ const scaleGridColRowStartOrEnd = () => [isInteger, "auto", isArbitraryVariable, isArbitraryValue];
1190
+ const scaleGridAutoColsRows = () => ["auto", "min", "max", "fr", isArbitraryVariable, isArbitraryValue];
1191
+ const scaleAlignPrimaryAxis = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"];
1192
+ const scaleAlignSecondaryAxis = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"];
1193
+ const scaleMargin = () => ["auto", ...scaleUnambiguousSpacing()];
1194
+ const scaleSizing = () => [isFraction, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...scaleUnambiguousSpacing()];
1195
+ const scaleColor = () => [themeColor, isArbitraryVariable, isArbitraryValue];
1196
+ const scaleBgPosition = () => [...scalePosition(), isArbitraryVariablePosition, isArbitraryPosition, {
1197
+ position: [isArbitraryVariable, isArbitraryValue]
1198
+ }];
1199
+ const scaleBgRepeat = () => ["no-repeat", {
1200
+ repeat: ["", "x", "y", "space", "round"]
1201
+ }];
1202
+ const scaleBgSize = () => ["auto", "cover", "contain", isArbitraryVariableSize, isArbitrarySize, {
1203
+ size: [isArbitraryVariable, isArbitraryValue]
1204
+ }];
1205
+ const scaleGradientStopPosition = () => [isPercent, isArbitraryVariableLength, isArbitraryLength];
1206
+ const scaleRadius = () => [
1207
+ // Deprecated since Tailwind CSS v4.0.0
1208
+ "",
1209
+ "none",
1210
+ "full",
1211
+ themeRadius,
1212
+ isArbitraryVariable,
1213
+ isArbitraryValue
1214
+ ];
1215
+ const scaleBorderWidth = () => ["", isNumber, isArbitraryVariableLength, isArbitraryLength];
1216
+ const scaleLineStyle = () => ["solid", "dashed", "dotted", "double"];
1217
+ const scaleBlendMode = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"];
1218
+ const scaleMaskImagePosition = () => [isNumber, isPercent, isArbitraryVariablePosition, isArbitraryPosition];
1219
+ const scaleBlur = () => [
1220
+ // Deprecated since Tailwind CSS v4.0.0
1221
+ "",
1222
+ "none",
1223
+ themeBlur,
1224
+ isArbitraryVariable,
1225
+ isArbitraryValue
1226
+ ];
1227
+ const scaleRotate = () => ["none", isNumber, isArbitraryVariable, isArbitraryValue];
1228
+ const scaleScale = () => ["none", isNumber, isArbitraryVariable, isArbitraryValue];
1229
+ const scaleSkew = () => [isNumber, isArbitraryVariable, isArbitraryValue];
1230
+ const scaleTranslate = () => [isFraction, "full", ...scaleUnambiguousSpacing()];
1138
1231
  return {
1139
1232
  cacheSize: 500,
1140
- separator: ":",
1141
1233
  theme: {
1142
- colors: [isAny],
1143
- spacing: [isLength, isArbitraryLength],
1144
- blur: ["none", "", isTshirtSize, isArbitraryValue],
1145
- brightness: getNumberAndArbitrary(),
1146
- borderColor: [colors],
1147
- borderRadius: ["none", "", "full", isTshirtSize, isArbitraryValue],
1148
- borderSpacing: getSpacingWithArbitrary(),
1149
- borderWidth: getLengthWithEmptyAndArbitrary(),
1150
- contrast: getNumberAndArbitrary(),
1151
- grayscale: getZeroAndEmpty(),
1152
- hueRotate: getNumberAndArbitrary(),
1153
- invert: getZeroAndEmpty(),
1154
- gap: getSpacingWithArbitrary(),
1155
- gradientColorStops: [colors],
1156
- gradientColorStopPositions: [isPercent, isArbitraryLength],
1157
- inset: getSpacingWithAutoAndArbitrary(),
1158
- margin: getSpacingWithAutoAndArbitrary(),
1159
- opacity: getNumberAndArbitrary(),
1160
- padding: getSpacingWithArbitrary(),
1161
- saturate: getNumberAndArbitrary(),
1162
- scale: getNumberAndArbitrary(),
1163
- sepia: getZeroAndEmpty(),
1164
- skew: getNumberAndArbitrary(),
1165
- space: getSpacingWithArbitrary(),
1166
- translate: getSpacingWithArbitrary()
1234
+ animate: ["spin", "ping", "pulse", "bounce"],
1235
+ aspect: ["video"],
1236
+ blur: [isTshirtSize],
1237
+ breakpoint: [isTshirtSize],
1238
+ color: [isAny],
1239
+ container: [isTshirtSize],
1240
+ "drop-shadow": [isTshirtSize],
1241
+ ease: ["in", "out", "in-out"],
1242
+ font: [isAnyNonArbitrary],
1243
+ "font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
1244
+ "inset-shadow": [isTshirtSize],
1245
+ leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
1246
+ perspective: ["dramatic", "near", "normal", "midrange", "distant", "none"],
1247
+ radius: [isTshirtSize],
1248
+ shadow: [isTshirtSize],
1249
+ spacing: ["px", isNumber],
1250
+ text: [isTshirtSize],
1251
+ "text-shadow": [isTshirtSize],
1252
+ tracking: ["tighter", "tight", "normal", "wide", "wider", "widest"]
1167
1253
  },
1168
1254
  classGroups: {
1169
- // Layout
1255
+ // --------------
1256
+ // --- Layout ---
1257
+ // --------------
1170
1258
  /**
1171
1259
  * Aspect Ratio
1172
1260
  * @see https://tailwindcss.com/docs/aspect-ratio
1173
1261
  */
1174
1262
  aspect: [{
1175
- aspect: ["auto", "square", "video", isArbitraryValue]
1263
+ aspect: ["auto", "square", isFraction, isArbitraryValue, isArbitraryVariable, themeAspect]
1176
1264
  }],
1177
1265
  /**
1178
1266
  * Container
1179
1267
  * @see https://tailwindcss.com/docs/container
1268
+ * @deprecated since Tailwind CSS v4.0.0
1180
1269
  */
1181
1270
  container: ["container"],
1182
1271
  /**
@@ -1184,21 +1273,21 @@ var getDefaultConfig = () => {
1184
1273
  * @see https://tailwindcss.com/docs/columns
1185
1274
  */
1186
1275
  columns: [{
1187
- columns: [isTshirtSize]
1276
+ columns: [isNumber, isArbitraryValue, isArbitraryVariable, themeContainer]
1188
1277
  }],
1189
1278
  /**
1190
1279
  * Break After
1191
1280
  * @see https://tailwindcss.com/docs/break-after
1192
1281
  */
1193
1282
  "break-after": [{
1194
- "break-after": getBreaks()
1283
+ "break-after": scaleBreak()
1195
1284
  }],
1196
1285
  /**
1197
1286
  * Break Before
1198
1287
  * @see https://tailwindcss.com/docs/break-before
1199
1288
  */
1200
1289
  "break-before": [{
1201
- "break-before": getBreaks()
1290
+ "break-before": scaleBreak()
1202
1291
  }],
1203
1292
  /**
1204
1293
  * Break Inside
@@ -1226,6 +1315,11 @@ var getDefaultConfig = () => {
1226
1315
  * @see https://tailwindcss.com/docs/display
1227
1316
  */
1228
1317
  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"],
1318
+ /**
1319
+ * Screen Reader Only
1320
+ * @see https://tailwindcss.com/docs/display#screen-reader-only
1321
+ */
1322
+ sr: ["sr-only", "not-sr-only"],
1229
1323
  /**
1230
1324
  * Floats
1231
1325
  * @see https://tailwindcss.com/docs/float
@@ -1257,49 +1351,49 @@ var getDefaultConfig = () => {
1257
1351
  * @see https://tailwindcss.com/docs/object-position
1258
1352
  */
1259
1353
  "object-position": [{
1260
- object: [...getPositions(), isArbitraryValue]
1354
+ object: scalePositionWithArbitrary()
1261
1355
  }],
1262
1356
  /**
1263
1357
  * Overflow
1264
1358
  * @see https://tailwindcss.com/docs/overflow
1265
1359
  */
1266
1360
  overflow: [{
1267
- overflow: getOverflow()
1361
+ overflow: scaleOverflow()
1268
1362
  }],
1269
1363
  /**
1270
1364
  * Overflow X
1271
1365
  * @see https://tailwindcss.com/docs/overflow
1272
1366
  */
1273
1367
  "overflow-x": [{
1274
- "overflow-x": getOverflow()
1368
+ "overflow-x": scaleOverflow()
1275
1369
  }],
1276
1370
  /**
1277
1371
  * Overflow Y
1278
1372
  * @see https://tailwindcss.com/docs/overflow
1279
1373
  */
1280
1374
  "overflow-y": [{
1281
- "overflow-y": getOverflow()
1375
+ "overflow-y": scaleOverflow()
1282
1376
  }],
1283
1377
  /**
1284
1378
  * Overscroll Behavior
1285
1379
  * @see https://tailwindcss.com/docs/overscroll-behavior
1286
1380
  */
1287
1381
  overscroll: [{
1288
- overscroll: getOverscroll()
1382
+ overscroll: scaleOverscroll()
1289
1383
  }],
1290
1384
  /**
1291
1385
  * Overscroll Behavior X
1292
1386
  * @see https://tailwindcss.com/docs/overscroll-behavior
1293
1387
  */
1294
1388
  "overscroll-x": [{
1295
- "overscroll-x": getOverscroll()
1389
+ "overscroll-x": scaleOverscroll()
1296
1390
  }],
1297
1391
  /**
1298
1392
  * Overscroll Behavior Y
1299
1393
  * @see https://tailwindcss.com/docs/overscroll-behavior
1300
1394
  */
1301
1395
  "overscroll-y": [{
1302
- "overscroll-y": getOverscroll()
1396
+ "overscroll-y": scaleOverscroll()
1303
1397
  }],
1304
1398
  /**
1305
1399
  * Position
@@ -1311,63 +1405,63 @@ var getDefaultConfig = () => {
1311
1405
  * @see https://tailwindcss.com/docs/top-right-bottom-left
1312
1406
  */
1313
1407
  inset: [{
1314
- inset: [inset]
1408
+ inset: scaleInset()
1315
1409
  }],
1316
1410
  /**
1317
1411
  * Right / Left
1318
1412
  * @see https://tailwindcss.com/docs/top-right-bottom-left
1319
1413
  */
1320
1414
  "inset-x": [{
1321
- "inset-x": [inset]
1415
+ "inset-x": scaleInset()
1322
1416
  }],
1323
1417
  /**
1324
1418
  * Top / Bottom
1325
1419
  * @see https://tailwindcss.com/docs/top-right-bottom-left
1326
1420
  */
1327
1421
  "inset-y": [{
1328
- "inset-y": [inset]
1422
+ "inset-y": scaleInset()
1329
1423
  }],
1330
1424
  /**
1331
1425
  * Start
1332
1426
  * @see https://tailwindcss.com/docs/top-right-bottom-left
1333
1427
  */
1334
1428
  start: [{
1335
- start: [inset]
1429
+ start: scaleInset()
1336
1430
  }],
1337
1431
  /**
1338
1432
  * End
1339
1433
  * @see https://tailwindcss.com/docs/top-right-bottom-left
1340
1434
  */
1341
1435
  end: [{
1342
- end: [inset]
1436
+ end: scaleInset()
1343
1437
  }],
1344
1438
  /**
1345
1439
  * Top
1346
1440
  * @see https://tailwindcss.com/docs/top-right-bottom-left
1347
1441
  */
1348
1442
  top: [{
1349
- top: [inset]
1443
+ top: scaleInset()
1350
1444
  }],
1351
1445
  /**
1352
1446
  * Right
1353
1447
  * @see https://tailwindcss.com/docs/top-right-bottom-left
1354
1448
  */
1355
1449
  right: [{
1356
- right: [inset]
1450
+ right: scaleInset()
1357
1451
  }],
1358
1452
  /**
1359
1453
  * Bottom
1360
1454
  * @see https://tailwindcss.com/docs/top-right-bottom-left
1361
1455
  */
1362
1456
  bottom: [{
1363
- bottom: [inset]
1457
+ bottom: scaleInset()
1364
1458
  }],
1365
1459
  /**
1366
1460
  * Left
1367
1461
  * @see https://tailwindcss.com/docs/top-right-bottom-left
1368
1462
  */
1369
1463
  left: [{
1370
- left: [inset]
1464
+ left: scaleInset()
1371
1465
  }],
1372
1466
  /**
1373
1467
  * Visibility
@@ -1379,15 +1473,17 @@ var getDefaultConfig = () => {
1379
1473
  * @see https://tailwindcss.com/docs/z-index
1380
1474
  */
1381
1475
  z: [{
1382
- z: ["auto", isInteger, isArbitraryValue]
1476
+ z: [isInteger, "auto", isArbitraryVariable, isArbitraryValue]
1383
1477
  }],
1384
- // Flexbox and Grid
1478
+ // ------------------------
1479
+ // --- Flexbox and Grid ---
1480
+ // ------------------------
1385
1481
  /**
1386
1482
  * Flex Basis
1387
1483
  * @see https://tailwindcss.com/docs/flex-basis
1388
1484
  */
1389
1485
  basis: [{
1390
- basis: getSpacingWithAutoAndArbitrary()
1486
+ basis: [isFraction, "full", "auto", themeContainer, ...scaleUnambiguousSpacing()]
1391
1487
  }],
1392
1488
  /**
1393
1489
  * Flex Direction
@@ -1401,95 +1497,91 @@ var getDefaultConfig = () => {
1401
1497
  * @see https://tailwindcss.com/docs/flex-wrap
1402
1498
  */
1403
1499
  "flex-wrap": [{
1404
- flex: ["wrap", "wrap-reverse", "nowrap"]
1500
+ flex: ["nowrap", "wrap", "wrap-reverse"]
1405
1501
  }],
1406
1502
  /**
1407
1503
  * Flex
1408
1504
  * @see https://tailwindcss.com/docs/flex
1409
1505
  */
1410
1506
  flex: [{
1411
- flex: ["1", "auto", "initial", "none", isArbitraryValue]
1507
+ flex: [isNumber, isFraction, "auto", "initial", "none", isArbitraryValue]
1412
1508
  }],
1413
1509
  /**
1414
1510
  * Flex Grow
1415
1511
  * @see https://tailwindcss.com/docs/flex-grow
1416
1512
  */
1417
1513
  grow: [{
1418
- grow: getZeroAndEmpty()
1514
+ grow: ["", isNumber, isArbitraryVariable, isArbitraryValue]
1419
1515
  }],
1420
1516
  /**
1421
1517
  * Flex Shrink
1422
1518
  * @see https://tailwindcss.com/docs/flex-shrink
1423
1519
  */
1424
1520
  shrink: [{
1425
- shrink: getZeroAndEmpty()
1521
+ shrink: ["", isNumber, isArbitraryVariable, isArbitraryValue]
1426
1522
  }],
1427
1523
  /**
1428
1524
  * Order
1429
1525
  * @see https://tailwindcss.com/docs/order
1430
1526
  */
1431
1527
  order: [{
1432
- order: ["first", "last", "none", isInteger, isArbitraryValue]
1528
+ order: [isInteger, "first", "last", "none", isArbitraryVariable, isArbitraryValue]
1433
1529
  }],
1434
1530
  /**
1435
1531
  * Grid Template Columns
1436
1532
  * @see https://tailwindcss.com/docs/grid-template-columns
1437
1533
  */
1438
1534
  "grid-cols": [{
1439
- "grid-cols": [isAny]
1535
+ "grid-cols": scaleGridTemplateColsRows()
1440
1536
  }],
1441
1537
  /**
1442
1538
  * Grid Column Start / End
1443
1539
  * @see https://tailwindcss.com/docs/grid-column
1444
1540
  */
1445
1541
  "col-start-end": [{
1446
- col: ["auto", {
1447
- span: ["full", isInteger, isArbitraryValue]
1448
- }, isArbitraryValue]
1542
+ col: scaleGridColRowStartAndEnd()
1449
1543
  }],
1450
1544
  /**
1451
1545
  * Grid Column Start
1452
1546
  * @see https://tailwindcss.com/docs/grid-column
1453
1547
  */
1454
1548
  "col-start": [{
1455
- "col-start": getNumberWithAutoAndArbitrary()
1549
+ "col-start": scaleGridColRowStartOrEnd()
1456
1550
  }],
1457
1551
  /**
1458
1552
  * Grid Column End
1459
1553
  * @see https://tailwindcss.com/docs/grid-column
1460
1554
  */
1461
1555
  "col-end": [{
1462
- "col-end": getNumberWithAutoAndArbitrary()
1556
+ "col-end": scaleGridColRowStartOrEnd()
1463
1557
  }],
1464
1558
  /**
1465
1559
  * Grid Template Rows
1466
1560
  * @see https://tailwindcss.com/docs/grid-template-rows
1467
1561
  */
1468
1562
  "grid-rows": [{
1469
- "grid-rows": [isAny]
1563
+ "grid-rows": scaleGridTemplateColsRows()
1470
1564
  }],
1471
1565
  /**
1472
1566
  * Grid Row Start / End
1473
1567
  * @see https://tailwindcss.com/docs/grid-row
1474
1568
  */
1475
1569
  "row-start-end": [{
1476
- row: ["auto", {
1477
- span: [isInteger, isArbitraryValue]
1478
- }, isArbitraryValue]
1570
+ row: scaleGridColRowStartAndEnd()
1479
1571
  }],
1480
1572
  /**
1481
1573
  * Grid Row Start
1482
1574
  * @see https://tailwindcss.com/docs/grid-row
1483
1575
  */
1484
1576
  "row-start": [{
1485
- "row-start": getNumberWithAutoAndArbitrary()
1577
+ "row-start": scaleGridColRowStartOrEnd()
1486
1578
  }],
1487
1579
  /**
1488
1580
  * Grid Row End
1489
1581
  * @see https://tailwindcss.com/docs/grid-row
1490
1582
  */
1491
1583
  "row-end": [{
1492
- "row-end": getNumberWithAutoAndArbitrary()
1584
+ "row-end": scaleGridColRowStartOrEnd()
1493
1585
  }],
1494
1586
  /**
1495
1587
  * Grid Auto Flow
@@ -1503,98 +1595,102 @@ var getDefaultConfig = () => {
1503
1595
  * @see https://tailwindcss.com/docs/grid-auto-columns
1504
1596
  */
1505
1597
  "auto-cols": [{
1506
- "auto-cols": ["auto", "min", "max", "fr", isArbitraryValue]
1598
+ "auto-cols": scaleGridAutoColsRows()
1507
1599
  }],
1508
1600
  /**
1509
1601
  * Grid Auto Rows
1510
1602
  * @see https://tailwindcss.com/docs/grid-auto-rows
1511
1603
  */
1512
1604
  "auto-rows": [{
1513
- "auto-rows": ["auto", "min", "max", "fr", isArbitraryValue]
1605
+ "auto-rows": scaleGridAutoColsRows()
1514
1606
  }],
1515
1607
  /**
1516
1608
  * Gap
1517
1609
  * @see https://tailwindcss.com/docs/gap
1518
1610
  */
1519
1611
  gap: [{
1520
- gap: [gap]
1612
+ gap: scaleUnambiguousSpacing()
1521
1613
  }],
1522
1614
  /**
1523
1615
  * Gap X
1524
1616
  * @see https://tailwindcss.com/docs/gap
1525
1617
  */
1526
1618
  "gap-x": [{
1527
- "gap-x": [gap]
1619
+ "gap-x": scaleUnambiguousSpacing()
1528
1620
  }],
1529
1621
  /**
1530
1622
  * Gap Y
1531
1623
  * @see https://tailwindcss.com/docs/gap
1532
1624
  */
1533
1625
  "gap-y": [{
1534
- "gap-y": [gap]
1626
+ "gap-y": scaleUnambiguousSpacing()
1535
1627
  }],
1536
1628
  /**
1537
1629
  * Justify Content
1538
1630
  * @see https://tailwindcss.com/docs/justify-content
1539
1631
  */
1540
1632
  "justify-content": [{
1541
- justify: ["normal", ...getAlign()]
1633
+ justify: [...scaleAlignPrimaryAxis(), "normal"]
1542
1634
  }],
1543
1635
  /**
1544
1636
  * Justify Items
1545
1637
  * @see https://tailwindcss.com/docs/justify-items
1546
1638
  */
1547
1639
  "justify-items": [{
1548
- "justify-items": ["start", "end", "center", "stretch"]
1640
+ "justify-items": [...scaleAlignSecondaryAxis(), "normal"]
1549
1641
  }],
1550
1642
  /**
1551
1643
  * Justify Self
1552
1644
  * @see https://tailwindcss.com/docs/justify-self
1553
1645
  */
1554
1646
  "justify-self": [{
1555
- "justify-self": ["auto", "start", "end", "center", "stretch"]
1647
+ "justify-self": ["auto", ...scaleAlignSecondaryAxis()]
1556
1648
  }],
1557
1649
  /**
1558
1650
  * Align Content
1559
1651
  * @see https://tailwindcss.com/docs/align-content
1560
1652
  */
1561
1653
  "align-content": [{
1562
- content: ["normal", ...getAlign(), "baseline"]
1654
+ content: ["normal", ...scaleAlignPrimaryAxis()]
1563
1655
  }],
1564
1656
  /**
1565
1657
  * Align Items
1566
1658
  * @see https://tailwindcss.com/docs/align-items
1567
1659
  */
1568
1660
  "align-items": [{
1569
- items: ["start", "end", "center", "baseline", "stretch"]
1661
+ items: [...scaleAlignSecondaryAxis(), {
1662
+ baseline: ["", "last"]
1663
+ }]
1570
1664
  }],
1571
1665
  /**
1572
1666
  * Align Self
1573
1667
  * @see https://tailwindcss.com/docs/align-self
1574
1668
  */
1575
1669
  "align-self": [{
1576
- self: ["auto", "start", "end", "center", "stretch", "baseline"]
1670
+ self: ["auto", ...scaleAlignSecondaryAxis(), {
1671
+ baseline: ["", "last"]
1672
+ }]
1577
1673
  }],
1578
1674
  /**
1579
1675
  * Place Content
1580
1676
  * @see https://tailwindcss.com/docs/place-content
1581
1677
  */
1582
1678
  "place-content": [{
1583
- "place-content": [...getAlign(), "baseline"]
1679
+ "place-content": scaleAlignPrimaryAxis()
1584
1680
  }],
1585
1681
  /**
1586
1682
  * Place Items
1587
1683
  * @see https://tailwindcss.com/docs/place-items
1588
1684
  */
1589
1685
  "place-items": [{
1590
- "place-items": ["start", "end", "center", "baseline", "stretch"]
1686
+ "place-items": [...scaleAlignSecondaryAxis(), "baseline"]
1591
1687
  }],
1592
1688
  /**
1593
1689
  * Place Self
1594
1690
  * @see https://tailwindcss.com/docs/place-self
1595
1691
  */
1596
1692
  "place-self": [{
1597
- "place-self": ["auto", "start", "end", "center", "stretch"]
1693
+ "place-self": ["auto", ...scaleAlignSecondaryAxis()]
1598
1694
  }],
1599
1695
  // Spacing
1600
1696
  /**
@@ -1602,210 +1698,229 @@ var getDefaultConfig = () => {
1602
1698
  * @see https://tailwindcss.com/docs/padding
1603
1699
  */
1604
1700
  p: [{
1605
- p: [padding]
1701
+ p: scaleUnambiguousSpacing()
1606
1702
  }],
1607
1703
  /**
1608
1704
  * Padding X
1609
1705
  * @see https://tailwindcss.com/docs/padding
1610
1706
  */
1611
1707
  px: [{
1612
- px: [padding]
1708
+ px: scaleUnambiguousSpacing()
1613
1709
  }],
1614
1710
  /**
1615
1711
  * Padding Y
1616
1712
  * @see https://tailwindcss.com/docs/padding
1617
1713
  */
1618
1714
  py: [{
1619
- py: [padding]
1715
+ py: scaleUnambiguousSpacing()
1620
1716
  }],
1621
1717
  /**
1622
1718
  * Padding Start
1623
1719
  * @see https://tailwindcss.com/docs/padding
1624
1720
  */
1625
1721
  ps: [{
1626
- ps: [padding]
1722
+ ps: scaleUnambiguousSpacing()
1627
1723
  }],
1628
1724
  /**
1629
1725
  * Padding End
1630
1726
  * @see https://tailwindcss.com/docs/padding
1631
1727
  */
1632
1728
  pe: [{
1633
- pe: [padding]
1729
+ pe: scaleUnambiguousSpacing()
1634
1730
  }],
1635
1731
  /**
1636
1732
  * Padding Top
1637
1733
  * @see https://tailwindcss.com/docs/padding
1638
1734
  */
1639
1735
  pt: [{
1640
- pt: [padding]
1736
+ pt: scaleUnambiguousSpacing()
1641
1737
  }],
1642
1738
  /**
1643
1739
  * Padding Right
1644
1740
  * @see https://tailwindcss.com/docs/padding
1645
1741
  */
1646
1742
  pr: [{
1647
- pr: [padding]
1743
+ pr: scaleUnambiguousSpacing()
1648
1744
  }],
1649
1745
  /**
1650
1746
  * Padding Bottom
1651
1747
  * @see https://tailwindcss.com/docs/padding
1652
1748
  */
1653
1749
  pb: [{
1654
- pb: [padding]
1750
+ pb: scaleUnambiguousSpacing()
1655
1751
  }],
1656
1752
  /**
1657
1753
  * Padding Left
1658
1754
  * @see https://tailwindcss.com/docs/padding
1659
1755
  */
1660
1756
  pl: [{
1661
- pl: [padding]
1757
+ pl: scaleUnambiguousSpacing()
1662
1758
  }],
1663
1759
  /**
1664
1760
  * Margin
1665
1761
  * @see https://tailwindcss.com/docs/margin
1666
1762
  */
1667
1763
  m: [{
1668
- m: [margin]
1764
+ m: scaleMargin()
1669
1765
  }],
1670
1766
  /**
1671
1767
  * Margin X
1672
1768
  * @see https://tailwindcss.com/docs/margin
1673
1769
  */
1674
1770
  mx: [{
1675
- mx: [margin]
1771
+ mx: scaleMargin()
1676
1772
  }],
1677
1773
  /**
1678
1774
  * Margin Y
1679
1775
  * @see https://tailwindcss.com/docs/margin
1680
1776
  */
1681
1777
  my: [{
1682
- my: [margin]
1778
+ my: scaleMargin()
1683
1779
  }],
1684
1780
  /**
1685
1781
  * Margin Start
1686
1782
  * @see https://tailwindcss.com/docs/margin
1687
1783
  */
1688
1784
  ms: [{
1689
- ms: [margin]
1785
+ ms: scaleMargin()
1690
1786
  }],
1691
1787
  /**
1692
1788
  * Margin End
1693
1789
  * @see https://tailwindcss.com/docs/margin
1694
1790
  */
1695
1791
  me: [{
1696
- me: [margin]
1792
+ me: scaleMargin()
1697
1793
  }],
1698
1794
  /**
1699
1795
  * Margin Top
1700
1796
  * @see https://tailwindcss.com/docs/margin
1701
1797
  */
1702
1798
  mt: [{
1703
- mt: [margin]
1799
+ mt: scaleMargin()
1704
1800
  }],
1705
1801
  /**
1706
1802
  * Margin Right
1707
1803
  * @see https://tailwindcss.com/docs/margin
1708
1804
  */
1709
1805
  mr: [{
1710
- mr: [margin]
1806
+ mr: scaleMargin()
1711
1807
  }],
1712
1808
  /**
1713
1809
  * Margin Bottom
1714
1810
  * @see https://tailwindcss.com/docs/margin
1715
1811
  */
1716
1812
  mb: [{
1717
- mb: [margin]
1813
+ mb: scaleMargin()
1718
1814
  }],
1719
1815
  /**
1720
1816
  * Margin Left
1721
1817
  * @see https://tailwindcss.com/docs/margin
1722
1818
  */
1723
1819
  ml: [{
1724
- ml: [margin]
1820
+ ml: scaleMargin()
1725
1821
  }],
1726
1822
  /**
1727
1823
  * Space Between X
1728
- * @see https://tailwindcss.com/docs/space
1824
+ * @see https://tailwindcss.com/docs/margin#adding-space-between-children
1729
1825
  */
1730
1826
  "space-x": [{
1731
- "space-x": [space]
1827
+ "space-x": scaleUnambiguousSpacing()
1732
1828
  }],
1733
1829
  /**
1734
1830
  * Space Between X Reverse
1735
- * @see https://tailwindcss.com/docs/space
1831
+ * @see https://tailwindcss.com/docs/margin#adding-space-between-children
1736
1832
  */
1737
1833
  "space-x-reverse": ["space-x-reverse"],
1738
1834
  /**
1739
1835
  * Space Between Y
1740
- * @see https://tailwindcss.com/docs/space
1836
+ * @see https://tailwindcss.com/docs/margin#adding-space-between-children
1741
1837
  */
1742
1838
  "space-y": [{
1743
- "space-y": [space]
1839
+ "space-y": scaleUnambiguousSpacing()
1744
1840
  }],
1745
1841
  /**
1746
1842
  * Space Between Y Reverse
1747
- * @see https://tailwindcss.com/docs/space
1843
+ * @see https://tailwindcss.com/docs/margin#adding-space-between-children
1748
1844
  */
1749
1845
  "space-y-reverse": ["space-y-reverse"],
1750
- // Sizing
1846
+ // --------------
1847
+ // --- Sizing ---
1848
+ // --------------
1849
+ /**
1850
+ * Size
1851
+ * @see https://tailwindcss.com/docs/width#setting-both-width-and-height
1852
+ */
1853
+ size: [{
1854
+ size: scaleSizing()
1855
+ }],
1751
1856
  /**
1752
1857
  * Width
1753
1858
  * @see https://tailwindcss.com/docs/width
1754
1859
  */
1755
1860
  w: [{
1756
- w: ["auto", "min", "max", "fit", "svw", "lvw", "dvw", isArbitraryValue, spacing]
1861
+ w: [themeContainer, "screen", ...scaleSizing()]
1757
1862
  }],
1758
1863
  /**
1759
1864
  * Min-Width
1760
1865
  * @see https://tailwindcss.com/docs/min-width
1761
1866
  */
1762
1867
  "min-w": [{
1763
- "min-w": [isArbitraryValue, spacing, "min", "max", "fit"]
1868
+ "min-w": [
1869
+ themeContainer,
1870
+ "screen",
1871
+ /** Deprecated. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
1872
+ "none",
1873
+ ...scaleSizing()
1874
+ ]
1764
1875
  }],
1765
1876
  /**
1766
1877
  * Max-Width
1767
1878
  * @see https://tailwindcss.com/docs/max-width
1768
1879
  */
1769
1880
  "max-w": [{
1770
- "max-w": [isArbitraryValue, spacing, "none", "full", "min", "max", "fit", "prose", {
1771
- screen: [isTshirtSize]
1772
- }, isTshirtSize]
1881
+ "max-w": [
1882
+ themeContainer,
1883
+ "screen",
1884
+ "none",
1885
+ /** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
1886
+ "prose",
1887
+ /** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
1888
+ {
1889
+ screen: [themeBreakpoint]
1890
+ },
1891
+ ...scaleSizing()
1892
+ ]
1773
1893
  }],
1774
1894
  /**
1775
1895
  * Height
1776
1896
  * @see https://tailwindcss.com/docs/height
1777
1897
  */
1778
1898
  h: [{
1779
- h: [isArbitraryValue, spacing, "auto", "min", "max", "fit", "svh", "lvh", "dvh"]
1899
+ h: ["screen", "lh", ...scaleSizing()]
1780
1900
  }],
1781
1901
  /**
1782
1902
  * Min-Height
1783
1903
  * @see https://tailwindcss.com/docs/min-height
1784
1904
  */
1785
1905
  "min-h": [{
1786
- "min-h": [isArbitraryValue, spacing, "min", "max", "fit", "svh", "lvh", "dvh"]
1906
+ "min-h": ["screen", "lh", "none", ...scaleSizing()]
1787
1907
  }],
1788
1908
  /**
1789
1909
  * Max-Height
1790
1910
  * @see https://tailwindcss.com/docs/max-height
1791
1911
  */
1792
1912
  "max-h": [{
1793
- "max-h": [isArbitraryValue, spacing, "min", "max", "fit", "svh", "lvh", "dvh"]
1913
+ "max-h": ["screen", "lh", ...scaleSizing()]
1794
1914
  }],
1795
- /**
1796
- * Size
1797
- * @see https://tailwindcss.com/docs/size
1798
- */
1799
- size: [{
1800
- size: [isArbitraryValue, spacing, "auto", "min", "max", "fit"]
1801
- }],
1802
- // Typography
1915
+ // ------------------
1916
+ // --- Typography ---
1917
+ // ------------------
1803
1918
  /**
1804
1919
  * Font Size
1805
1920
  * @see https://tailwindcss.com/docs/font-size
1806
1921
  */
1807
1922
  "font-size": [{
1808
- text: ["base", isTshirtSize, isArbitraryLength]
1923
+ text: ["base", themeText, isArbitraryVariableLength, isArbitraryLength]
1809
1924
  }],
1810
1925
  /**
1811
1926
  * Font Smoothing
@@ -1822,14 +1937,21 @@ var getDefaultConfig = () => {
1822
1937
  * @see https://tailwindcss.com/docs/font-weight
1823
1938
  */
1824
1939
  "font-weight": [{
1825
- font: ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black", isArbitraryNumber]
1940
+ font: [themeFontWeight, isArbitraryVariable, isArbitraryNumber]
1941
+ }],
1942
+ /**
1943
+ * Font Stretch
1944
+ * @see https://tailwindcss.com/docs/font-stretch
1945
+ */
1946
+ "font-stretch": [{
1947
+ "font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", isPercent, isArbitraryValue]
1826
1948
  }],
1827
1949
  /**
1828
1950
  * Font Family
1829
1951
  * @see https://tailwindcss.com/docs/font-family
1830
1952
  */
1831
1953
  "font-family": [{
1832
- font: [isAny]
1954
+ font: [isArbitraryVariableFamilyName, isArbitraryValue, themeFont]
1833
1955
  }],
1834
1956
  /**
1835
1957
  * Font Variant Numeric
@@ -1860,41 +1982,38 @@ var getDefaultConfig = () => {
1860
1982
  * Font Variant Numeric
1861
1983
  * @see https://tailwindcss.com/docs/font-variant-numeric
1862
1984
  */
1863
- "fvn-fraction": ["diagonal-fractions", "stacked-fractons"],
1985
+ "fvn-fraction": ["diagonal-fractions", "stacked-fractions"],
1864
1986
  /**
1865
1987
  * Letter Spacing
1866
1988
  * @see https://tailwindcss.com/docs/letter-spacing
1867
1989
  */
1868
1990
  tracking: [{
1869
- tracking: ["tighter", "tight", "normal", "wide", "wider", "widest", isArbitraryValue]
1991
+ tracking: [themeTracking, isArbitraryVariable, isArbitraryValue]
1870
1992
  }],
1871
1993
  /**
1872
1994
  * Line Clamp
1873
1995
  * @see https://tailwindcss.com/docs/line-clamp
1874
1996
  */
1875
1997
  "line-clamp": [{
1876
- "line-clamp": ["none", isNumber, isArbitraryNumber]
1998
+ "line-clamp": [isNumber, "none", isArbitraryVariable, isArbitraryNumber]
1877
1999
  }],
1878
2000
  /**
1879
2001
  * Line Height
1880
2002
  * @see https://tailwindcss.com/docs/line-height
1881
2003
  */
1882
2004
  leading: [{
1883
- leading: ["none", "tight", "snug", "normal", "relaxed", "loose", isLength, isArbitraryValue]
2005
+ leading: [
2006
+ /** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
2007
+ themeLeading,
2008
+ ...scaleUnambiguousSpacing()
2009
+ ]
1884
2010
  }],
1885
2011
  /**
1886
2012
  * List Style Image
1887
2013
  * @see https://tailwindcss.com/docs/list-style-image
1888
2014
  */
1889
2015
  "list-image": [{
1890
- "list-image": ["none", isArbitraryValue]
1891
- }],
1892
- /**
1893
- * List Style Type
1894
- * @see https://tailwindcss.com/docs/list-style-type
1895
- */
1896
- "list-style-type": [{
1897
- list: ["none", "disc", "decimal", isArbitraryValue]
2016
+ "list-image": ["none", isArbitraryVariable, isArbitraryValue]
1898
2017
  }],
1899
2018
  /**
1900
2019
  * List Style Position
@@ -1904,19 +2023,11 @@ var getDefaultConfig = () => {
1904
2023
  list: ["inside", "outside"]
1905
2024
  }],
1906
2025
  /**
1907
- * Placeholder Color
1908
- * @deprecated since Tailwind CSS v3.0.0
1909
- * @see https://tailwindcss.com/docs/placeholder-color
1910
- */
1911
- "placeholder-color": [{
1912
- placeholder: [colors]
1913
- }],
1914
- /**
1915
- * Placeholder Opacity
1916
- * @see https://tailwindcss.com/docs/placeholder-opacity
2026
+ * List Style Type
2027
+ * @see https://tailwindcss.com/docs/list-style-type
1917
2028
  */
1918
- "placeholder-opacity": [{
1919
- "placeholder-opacity": [opacity]
2029
+ "list-style-type": [{
2030
+ list: ["disc", "decimal", "none", isArbitraryVariable, isArbitraryValue]
1920
2031
  }],
1921
2032
  /**
1922
2033
  * Text Alignment
@@ -1926,18 +2037,19 @@ var getDefaultConfig = () => {
1926
2037
  text: ["left", "center", "right", "justify", "start", "end"]
1927
2038
  }],
1928
2039
  /**
1929
- * Text Color
1930
- * @see https://tailwindcss.com/docs/text-color
2040
+ * Placeholder Color
2041
+ * @deprecated since Tailwind CSS v3.0.0
2042
+ * @see https://v3.tailwindcss.com/docs/placeholder-color
1931
2043
  */
1932
- "text-color": [{
1933
- text: [colors]
2044
+ "placeholder-color": [{
2045
+ placeholder: scaleColor()
1934
2046
  }],
1935
2047
  /**
1936
- * Text Opacity
1937
- * @see https://tailwindcss.com/docs/text-opacity
2048
+ * Text Color
2049
+ * @see https://tailwindcss.com/docs/text-color
1938
2050
  */
1939
- "text-opacity": [{
1940
- "text-opacity": [opacity]
2051
+ "text-color": [{
2052
+ text: scaleColor()
1941
2053
  }],
1942
2054
  /**
1943
2055
  * Text Decoration
@@ -1949,28 +2061,28 @@ var getDefaultConfig = () => {
1949
2061
  * @see https://tailwindcss.com/docs/text-decoration-style
1950
2062
  */
1951
2063
  "text-decoration-style": [{
1952
- decoration: [...getLineStyles(), "wavy"]
2064
+ decoration: [...scaleLineStyle(), "wavy"]
1953
2065
  }],
1954
2066
  /**
1955
2067
  * Text Decoration Thickness
1956
2068
  * @see https://tailwindcss.com/docs/text-decoration-thickness
1957
2069
  */
1958
2070
  "text-decoration-thickness": [{
1959
- decoration: ["auto", "from-font", isLength, isArbitraryLength]
1960
- }],
1961
- /**
1962
- * Text Underline Offset
1963
- * @see https://tailwindcss.com/docs/text-underline-offset
1964
- */
1965
- "underline-offset": [{
1966
- "underline-offset": ["auto", isLength, isArbitraryValue]
2071
+ decoration: [isNumber, "from-font", "auto", isArbitraryVariable, isArbitraryLength]
1967
2072
  }],
1968
2073
  /**
1969
2074
  * Text Decoration Color
1970
2075
  * @see https://tailwindcss.com/docs/text-decoration-color
1971
2076
  */
1972
2077
  "text-decoration-color": [{
1973
- decoration: [colors]
2078
+ decoration: scaleColor()
2079
+ }],
2080
+ /**
2081
+ * Text Underline Offset
2082
+ * @see https://tailwindcss.com/docs/text-underline-offset
2083
+ */
2084
+ "underline-offset": [{
2085
+ "underline-offset": [isNumber, "auto", isArbitraryVariable, isArbitraryValue]
1974
2086
  }],
1975
2087
  /**
1976
2088
  * Text Transform
@@ -1994,14 +2106,14 @@ var getDefaultConfig = () => {
1994
2106
  * @see https://tailwindcss.com/docs/text-indent
1995
2107
  */
1996
2108
  indent: [{
1997
- indent: getSpacingWithArbitrary()
2109
+ indent: scaleUnambiguousSpacing()
1998
2110
  }],
1999
2111
  /**
2000
2112
  * Vertical Alignment
2001
2113
  * @see https://tailwindcss.com/docs/vertical-align
2002
2114
  */
2003
2115
  "vertical-align": [{
2004
- align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", isArbitraryValue]
2116
+ align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", isArbitraryVariable, isArbitraryValue]
2005
2117
  }],
2006
2118
  /**
2007
2119
  * Whitespace
@@ -2017,6 +2129,13 @@ var getDefaultConfig = () => {
2017
2129
  break: [{
2018
2130
  break: ["normal", "words", "all", "keep"]
2019
2131
  }],
2132
+ /**
2133
+ * Overflow Wrap
2134
+ * @see https://tailwindcss.com/docs/overflow-wrap
2135
+ */
2136
+ wrap: [{
2137
+ wrap: ["break-word", "anywhere", "normal"]
2138
+ }],
2020
2139
  /**
2021
2140
  * Hyphens
2022
2141
  * @see https://tailwindcss.com/docs/hyphens
@@ -2029,9 +2148,11 @@ var getDefaultConfig = () => {
2029
2148
  * @see https://tailwindcss.com/docs/content
2030
2149
  */
2031
2150
  content: [{
2032
- content: ["none", isArbitraryValue]
2151
+ content: ["none", isArbitraryVariable, isArbitraryValue]
2033
2152
  }],
2034
- // Backgrounds
2153
+ // -------------------
2154
+ // --- Backgrounds ---
2155
+ // -------------------
2035
2156
  /**
2036
2157
  * Background Attachment
2037
2158
  * @see https://tailwindcss.com/docs/background-attachment
@@ -2046,14 +2167,6 @@ var getDefaultConfig = () => {
2046
2167
  "bg-clip": [{
2047
2168
  "bg-clip": ["border", "padding", "content", "text"]
2048
2169
  }],
2049
- /**
2050
- * Background Opacity
2051
- * @deprecated since Tailwind CSS v3.0.0
2052
- * @see https://tailwindcss.com/docs/background-opacity
2053
- */
2054
- "bg-opacity": [{
2055
- "bg-opacity": [opacity]
2056
- }],
2057
2170
  /**
2058
2171
  * Background Origin
2059
2172
  * @see https://tailwindcss.com/docs/background-origin
@@ -2066,23 +2179,21 @@ var getDefaultConfig = () => {
2066
2179
  * @see https://tailwindcss.com/docs/background-position
2067
2180
  */
2068
2181
  "bg-position": [{
2069
- bg: [...getPositions(), isArbitraryPosition]
2182
+ bg: scaleBgPosition()
2070
2183
  }],
2071
2184
  /**
2072
2185
  * Background Repeat
2073
2186
  * @see https://tailwindcss.com/docs/background-repeat
2074
2187
  */
2075
2188
  "bg-repeat": [{
2076
- bg: ["no-repeat", {
2077
- repeat: ["", "x", "y", "round", "space"]
2078
- }]
2189
+ bg: scaleBgRepeat()
2079
2190
  }],
2080
2191
  /**
2081
2192
  * Background Size
2082
2193
  * @see https://tailwindcss.com/docs/background-size
2083
2194
  */
2084
2195
  "bg-size": [{
2085
- bg: ["auto", "cover", "contain", isArbitrarySize]
2196
+ bg: scaleBgSize()
2086
2197
  }],
2087
2198
  /**
2088
2199
  * Background Image
@@ -2090,597 +2201,863 @@ var getDefaultConfig = () => {
2090
2201
  */
2091
2202
  "bg-image": [{
2092
2203
  bg: ["none", {
2093
- "gradient-to": ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
2094
- }, isArbitraryImage]
2204
+ linear: [{
2205
+ to: ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
2206
+ }, isInteger, isArbitraryVariable, isArbitraryValue],
2207
+ radial: ["", isArbitraryVariable, isArbitraryValue],
2208
+ conic: [isInteger, isArbitraryVariable, isArbitraryValue]
2209
+ }, isArbitraryVariableImage, isArbitraryImage]
2095
2210
  }],
2096
2211
  /**
2097
2212
  * Background Color
2098
2213
  * @see https://tailwindcss.com/docs/background-color
2099
2214
  */
2100
2215
  "bg-color": [{
2101
- bg: [colors]
2216
+ bg: scaleColor()
2102
2217
  }],
2103
2218
  /**
2104
2219
  * Gradient Color Stops From Position
2105
2220
  * @see https://tailwindcss.com/docs/gradient-color-stops
2106
2221
  */
2107
2222
  "gradient-from-pos": [{
2108
- from: [gradientColorStopPositions]
2223
+ from: scaleGradientStopPosition()
2109
2224
  }],
2110
2225
  /**
2111
2226
  * Gradient Color Stops Via Position
2112
2227
  * @see https://tailwindcss.com/docs/gradient-color-stops
2113
2228
  */
2114
2229
  "gradient-via-pos": [{
2115
- via: [gradientColorStopPositions]
2230
+ via: scaleGradientStopPosition()
2116
2231
  }],
2117
2232
  /**
2118
2233
  * Gradient Color Stops To Position
2119
2234
  * @see https://tailwindcss.com/docs/gradient-color-stops
2120
2235
  */
2121
2236
  "gradient-to-pos": [{
2122
- to: [gradientColorStopPositions]
2237
+ to: scaleGradientStopPosition()
2123
2238
  }],
2124
2239
  /**
2125
2240
  * Gradient Color Stops From
2126
2241
  * @see https://tailwindcss.com/docs/gradient-color-stops
2127
2242
  */
2128
2243
  "gradient-from": [{
2129
- from: [gradientColorStops]
2244
+ from: scaleColor()
2130
2245
  }],
2131
2246
  /**
2132
2247
  * Gradient Color Stops Via
2133
2248
  * @see https://tailwindcss.com/docs/gradient-color-stops
2134
2249
  */
2135
2250
  "gradient-via": [{
2136
- via: [gradientColorStops]
2251
+ via: scaleColor()
2137
2252
  }],
2138
2253
  /**
2139
2254
  * Gradient Color Stops To
2140
2255
  * @see https://tailwindcss.com/docs/gradient-color-stops
2141
2256
  */
2142
2257
  "gradient-to": [{
2143
- to: [gradientColorStops]
2258
+ to: scaleColor()
2144
2259
  }],
2145
- // Borders
2260
+ // ---------------
2261
+ // --- Borders ---
2262
+ // ---------------
2146
2263
  /**
2147
2264
  * Border Radius
2148
2265
  * @see https://tailwindcss.com/docs/border-radius
2149
2266
  */
2150
2267
  rounded: [{
2151
- rounded: [borderRadius]
2268
+ rounded: scaleRadius()
2152
2269
  }],
2153
2270
  /**
2154
2271
  * Border Radius Start
2155
2272
  * @see https://tailwindcss.com/docs/border-radius
2156
2273
  */
2157
2274
  "rounded-s": [{
2158
- "rounded-s": [borderRadius]
2275
+ "rounded-s": scaleRadius()
2159
2276
  }],
2160
2277
  /**
2161
2278
  * Border Radius End
2162
2279
  * @see https://tailwindcss.com/docs/border-radius
2163
2280
  */
2164
2281
  "rounded-e": [{
2165
- "rounded-e": [borderRadius]
2282
+ "rounded-e": scaleRadius()
2166
2283
  }],
2167
2284
  /**
2168
2285
  * Border Radius Top
2169
2286
  * @see https://tailwindcss.com/docs/border-radius
2170
2287
  */
2171
2288
  "rounded-t": [{
2172
- "rounded-t": [borderRadius]
2289
+ "rounded-t": scaleRadius()
2173
2290
  }],
2174
2291
  /**
2175
2292
  * Border Radius Right
2176
2293
  * @see https://tailwindcss.com/docs/border-radius
2177
2294
  */
2178
2295
  "rounded-r": [{
2179
- "rounded-r": [borderRadius]
2296
+ "rounded-r": scaleRadius()
2180
2297
  }],
2181
2298
  /**
2182
2299
  * Border Radius Bottom
2183
2300
  * @see https://tailwindcss.com/docs/border-radius
2184
2301
  */
2185
2302
  "rounded-b": [{
2186
- "rounded-b": [borderRadius]
2303
+ "rounded-b": scaleRadius()
2187
2304
  }],
2188
2305
  /**
2189
2306
  * Border Radius Left
2190
2307
  * @see https://tailwindcss.com/docs/border-radius
2191
2308
  */
2192
2309
  "rounded-l": [{
2193
- "rounded-l": [borderRadius]
2310
+ "rounded-l": scaleRadius()
2194
2311
  }],
2195
2312
  /**
2196
2313
  * Border Radius Start Start
2197
2314
  * @see https://tailwindcss.com/docs/border-radius
2198
2315
  */
2199
2316
  "rounded-ss": [{
2200
- "rounded-ss": [borderRadius]
2317
+ "rounded-ss": scaleRadius()
2201
2318
  }],
2202
2319
  /**
2203
2320
  * Border Radius Start End
2204
2321
  * @see https://tailwindcss.com/docs/border-radius
2205
2322
  */
2206
2323
  "rounded-se": [{
2207
- "rounded-se": [borderRadius]
2324
+ "rounded-se": scaleRadius()
2208
2325
  }],
2209
2326
  /**
2210
2327
  * Border Radius End End
2211
2328
  * @see https://tailwindcss.com/docs/border-radius
2212
2329
  */
2213
2330
  "rounded-ee": [{
2214
- "rounded-ee": [borderRadius]
2331
+ "rounded-ee": scaleRadius()
2215
2332
  }],
2216
2333
  /**
2217
2334
  * Border Radius End Start
2218
2335
  * @see https://tailwindcss.com/docs/border-radius
2219
2336
  */
2220
2337
  "rounded-es": [{
2221
- "rounded-es": [borderRadius]
2338
+ "rounded-es": scaleRadius()
2222
2339
  }],
2223
2340
  /**
2224
2341
  * Border Radius Top Left
2225
2342
  * @see https://tailwindcss.com/docs/border-radius
2226
2343
  */
2227
2344
  "rounded-tl": [{
2228
- "rounded-tl": [borderRadius]
2345
+ "rounded-tl": scaleRadius()
2229
2346
  }],
2230
2347
  /**
2231
2348
  * Border Radius Top Right
2232
2349
  * @see https://tailwindcss.com/docs/border-radius
2233
2350
  */
2234
2351
  "rounded-tr": [{
2235
- "rounded-tr": [borderRadius]
2352
+ "rounded-tr": scaleRadius()
2236
2353
  }],
2237
2354
  /**
2238
2355
  * Border Radius Bottom Right
2239
2356
  * @see https://tailwindcss.com/docs/border-radius
2240
2357
  */
2241
2358
  "rounded-br": [{
2242
- "rounded-br": [borderRadius]
2359
+ "rounded-br": scaleRadius()
2243
2360
  }],
2244
2361
  /**
2245
2362
  * Border Radius Bottom Left
2246
2363
  * @see https://tailwindcss.com/docs/border-radius
2247
2364
  */
2248
2365
  "rounded-bl": [{
2249
- "rounded-bl": [borderRadius]
2366
+ "rounded-bl": scaleRadius()
2250
2367
  }],
2251
2368
  /**
2252
2369
  * Border Width
2253
2370
  * @see https://tailwindcss.com/docs/border-width
2254
2371
  */
2255
2372
  "border-w": [{
2256
- border: [borderWidth]
2373
+ border: scaleBorderWidth()
2257
2374
  }],
2258
2375
  /**
2259
2376
  * Border Width X
2260
2377
  * @see https://tailwindcss.com/docs/border-width
2261
2378
  */
2262
2379
  "border-w-x": [{
2263
- "border-x": [borderWidth]
2380
+ "border-x": scaleBorderWidth()
2264
2381
  }],
2265
2382
  /**
2266
2383
  * Border Width Y
2267
2384
  * @see https://tailwindcss.com/docs/border-width
2268
2385
  */
2269
2386
  "border-w-y": [{
2270
- "border-y": [borderWidth]
2387
+ "border-y": scaleBorderWidth()
2271
2388
  }],
2272
2389
  /**
2273
2390
  * Border Width Start
2274
2391
  * @see https://tailwindcss.com/docs/border-width
2275
2392
  */
2276
2393
  "border-w-s": [{
2277
- "border-s": [borderWidth]
2394
+ "border-s": scaleBorderWidth()
2278
2395
  }],
2279
2396
  /**
2280
2397
  * Border Width End
2281
2398
  * @see https://tailwindcss.com/docs/border-width
2282
2399
  */
2283
2400
  "border-w-e": [{
2284
- "border-e": [borderWidth]
2401
+ "border-e": scaleBorderWidth()
2285
2402
  }],
2286
2403
  /**
2287
2404
  * Border Width Top
2288
2405
  * @see https://tailwindcss.com/docs/border-width
2289
2406
  */
2290
2407
  "border-w-t": [{
2291
- "border-t": [borderWidth]
2408
+ "border-t": scaleBorderWidth()
2292
2409
  }],
2293
2410
  /**
2294
2411
  * Border Width Right
2295
2412
  * @see https://tailwindcss.com/docs/border-width
2296
2413
  */
2297
2414
  "border-w-r": [{
2298
- "border-r": [borderWidth]
2415
+ "border-r": scaleBorderWidth()
2299
2416
  }],
2300
2417
  /**
2301
2418
  * Border Width Bottom
2302
2419
  * @see https://tailwindcss.com/docs/border-width
2303
2420
  */
2304
2421
  "border-w-b": [{
2305
- "border-b": [borderWidth]
2422
+ "border-b": scaleBorderWidth()
2306
2423
  }],
2307
2424
  /**
2308
2425
  * Border Width Left
2309
2426
  * @see https://tailwindcss.com/docs/border-width
2310
2427
  */
2311
2428
  "border-w-l": [{
2312
- "border-l": [borderWidth]
2313
- }],
2314
- /**
2315
- * Border Opacity
2316
- * @see https://tailwindcss.com/docs/border-opacity
2317
- */
2318
- "border-opacity": [{
2319
- "border-opacity": [opacity]
2320
- }],
2321
- /**
2322
- * Border Style
2323
- * @see https://tailwindcss.com/docs/border-style
2324
- */
2325
- "border-style": [{
2326
- border: [...getLineStyles(), "hidden"]
2429
+ "border-l": scaleBorderWidth()
2327
2430
  }],
2328
2431
  /**
2329
2432
  * Divide Width X
2330
- * @see https://tailwindcss.com/docs/divide-width
2433
+ * @see https://tailwindcss.com/docs/border-width#between-children
2331
2434
  */
2332
2435
  "divide-x": [{
2333
- "divide-x": [borderWidth]
2436
+ "divide-x": scaleBorderWidth()
2334
2437
  }],
2335
2438
  /**
2336
2439
  * Divide Width X Reverse
2337
- * @see https://tailwindcss.com/docs/divide-width
2440
+ * @see https://tailwindcss.com/docs/border-width#between-children
2338
2441
  */
2339
2442
  "divide-x-reverse": ["divide-x-reverse"],
2340
2443
  /**
2341
2444
  * Divide Width Y
2342
- * @see https://tailwindcss.com/docs/divide-width
2445
+ * @see https://tailwindcss.com/docs/border-width#between-children
2343
2446
  */
2344
2447
  "divide-y": [{
2345
- "divide-y": [borderWidth]
2448
+ "divide-y": scaleBorderWidth()
2346
2449
  }],
2347
2450
  /**
2348
2451
  * Divide Width Y Reverse
2349
- * @see https://tailwindcss.com/docs/divide-width
2452
+ * @see https://tailwindcss.com/docs/border-width#between-children
2350
2453
  */
2351
2454
  "divide-y-reverse": ["divide-y-reverse"],
2352
2455
  /**
2353
- * Divide Opacity
2354
- * @see https://tailwindcss.com/docs/divide-opacity
2456
+ * Border Style
2457
+ * @see https://tailwindcss.com/docs/border-style
2355
2458
  */
2356
- "divide-opacity": [{
2357
- "divide-opacity": [opacity]
2459
+ "border-style": [{
2460
+ border: [...scaleLineStyle(), "hidden", "none"]
2358
2461
  }],
2359
2462
  /**
2360
2463
  * Divide Style
2361
- * @see https://tailwindcss.com/docs/divide-style
2464
+ * @see https://tailwindcss.com/docs/border-style#setting-the-divider-style
2362
2465
  */
2363
2466
  "divide-style": [{
2364
- divide: getLineStyles()
2467
+ divide: [...scaleLineStyle(), "hidden", "none"]
2365
2468
  }],
2366
2469
  /**
2367
2470
  * Border Color
2368
2471
  * @see https://tailwindcss.com/docs/border-color
2369
2472
  */
2370
2473
  "border-color": [{
2371
- border: [borderColor]
2474
+ border: scaleColor()
2372
2475
  }],
2373
2476
  /**
2374
2477
  * Border Color X
2375
2478
  * @see https://tailwindcss.com/docs/border-color
2376
2479
  */
2377
2480
  "border-color-x": [{
2378
- "border-x": [borderColor]
2481
+ "border-x": scaleColor()
2379
2482
  }],
2380
2483
  /**
2381
2484
  * Border Color Y
2382
2485
  * @see https://tailwindcss.com/docs/border-color
2383
2486
  */
2384
2487
  "border-color-y": [{
2385
- "border-y": [borderColor]
2488
+ "border-y": scaleColor()
2386
2489
  }],
2387
2490
  /**
2388
2491
  * Border Color S
2389
2492
  * @see https://tailwindcss.com/docs/border-color
2390
2493
  */
2391
2494
  "border-color-s": [{
2392
- "border-s": [borderColor]
2495
+ "border-s": scaleColor()
2393
2496
  }],
2394
2497
  /**
2395
2498
  * Border Color E
2396
2499
  * @see https://tailwindcss.com/docs/border-color
2397
2500
  */
2398
2501
  "border-color-e": [{
2399
- "border-e": [borderColor]
2502
+ "border-e": scaleColor()
2400
2503
  }],
2401
2504
  /**
2402
2505
  * Border Color Top
2403
2506
  * @see https://tailwindcss.com/docs/border-color
2404
2507
  */
2405
2508
  "border-color-t": [{
2406
- "border-t": [borderColor]
2509
+ "border-t": scaleColor()
2407
2510
  }],
2408
2511
  /**
2409
2512
  * Border Color Right
2410
2513
  * @see https://tailwindcss.com/docs/border-color
2411
2514
  */
2412
2515
  "border-color-r": [{
2413
- "border-r": [borderColor]
2516
+ "border-r": scaleColor()
2414
2517
  }],
2415
2518
  /**
2416
2519
  * Border Color Bottom
2417
2520
  * @see https://tailwindcss.com/docs/border-color
2418
2521
  */
2419
2522
  "border-color-b": [{
2420
- "border-b": [borderColor]
2523
+ "border-b": scaleColor()
2421
2524
  }],
2422
2525
  /**
2423
2526
  * Border Color Left
2424
2527
  * @see https://tailwindcss.com/docs/border-color
2425
2528
  */
2426
2529
  "border-color-l": [{
2427
- "border-l": [borderColor]
2530
+ "border-l": scaleColor()
2428
2531
  }],
2429
2532
  /**
2430
2533
  * Divide Color
2431
2534
  * @see https://tailwindcss.com/docs/divide-color
2432
2535
  */
2433
2536
  "divide-color": [{
2434
- divide: [borderColor]
2537
+ divide: scaleColor()
2435
2538
  }],
2436
2539
  /**
2437
2540
  * Outline Style
2438
2541
  * @see https://tailwindcss.com/docs/outline-style
2439
2542
  */
2440
2543
  "outline-style": [{
2441
- outline: ["", ...getLineStyles()]
2544
+ outline: [...scaleLineStyle(), "none", "hidden"]
2442
2545
  }],
2443
2546
  /**
2444
2547
  * Outline Offset
2445
2548
  * @see https://tailwindcss.com/docs/outline-offset
2446
2549
  */
2447
2550
  "outline-offset": [{
2448
- "outline-offset": [isLength, isArbitraryValue]
2551
+ "outline-offset": [isNumber, isArbitraryVariable, isArbitraryValue]
2449
2552
  }],
2450
2553
  /**
2451
2554
  * Outline Width
2452
2555
  * @see https://tailwindcss.com/docs/outline-width
2453
2556
  */
2454
2557
  "outline-w": [{
2455
- outline: [isLength, isArbitraryLength]
2558
+ outline: ["", isNumber, isArbitraryVariableLength, isArbitraryLength]
2456
2559
  }],
2457
2560
  /**
2458
2561
  * Outline Color
2459
2562
  * @see https://tailwindcss.com/docs/outline-color
2460
2563
  */
2461
2564
  "outline-color": [{
2462
- outline: [colors]
2565
+ outline: scaleColor()
2566
+ }],
2567
+ // ---------------
2568
+ // --- Effects ---
2569
+ // ---------------
2570
+ /**
2571
+ * Box Shadow
2572
+ * @see https://tailwindcss.com/docs/box-shadow
2573
+ */
2574
+ shadow: [{
2575
+ shadow: [
2576
+ // Deprecated since Tailwind CSS v4.0.0
2577
+ "",
2578
+ "none",
2579
+ themeShadow,
2580
+ isArbitraryVariableShadow,
2581
+ isArbitraryShadow
2582
+ ]
2583
+ }],
2584
+ /**
2585
+ * Box Shadow Color
2586
+ * @see https://tailwindcss.com/docs/box-shadow#setting-the-shadow-color
2587
+ */
2588
+ "shadow-color": [{
2589
+ shadow: scaleColor()
2590
+ }],
2591
+ /**
2592
+ * Inset Box Shadow
2593
+ * @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-shadow
2594
+ */
2595
+ "inset-shadow": [{
2596
+ "inset-shadow": ["none", themeInsetShadow, isArbitraryVariableShadow, isArbitraryShadow]
2597
+ }],
2598
+ /**
2599
+ * Inset Box Shadow Color
2600
+ * @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-shadow-color
2601
+ */
2602
+ "inset-shadow-color": [{
2603
+ "inset-shadow": scaleColor()
2463
2604
  }],
2464
2605
  /**
2465
2606
  * Ring Width
2466
- * @see https://tailwindcss.com/docs/ring-width
2607
+ * @see https://tailwindcss.com/docs/box-shadow#adding-a-ring
2467
2608
  */
2468
2609
  "ring-w": [{
2469
- ring: getLengthWithEmptyAndArbitrary()
2610
+ ring: scaleBorderWidth()
2470
2611
  }],
2471
2612
  /**
2472
2613
  * Ring Width Inset
2473
- * @see https://tailwindcss.com/docs/ring-width
2614
+ * @see https://v3.tailwindcss.com/docs/ring-width#inset-rings
2615
+ * @deprecated since Tailwind CSS v4.0.0
2616
+ * @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
2474
2617
  */
2475
2618
  "ring-w-inset": ["ring-inset"],
2476
2619
  /**
2477
2620
  * Ring Color
2478
- * @see https://tailwindcss.com/docs/ring-color
2621
+ * @see https://tailwindcss.com/docs/box-shadow#setting-the-ring-color
2479
2622
  */
2480
2623
  "ring-color": [{
2481
- ring: [colors]
2482
- }],
2483
- /**
2484
- * Ring Opacity
2485
- * @see https://tailwindcss.com/docs/ring-opacity
2486
- */
2487
- "ring-opacity": [{
2488
- "ring-opacity": [opacity]
2624
+ ring: scaleColor()
2489
2625
  }],
2490
2626
  /**
2491
2627
  * Ring Offset Width
2492
- * @see https://tailwindcss.com/docs/ring-offset-width
2628
+ * @see https://v3.tailwindcss.com/docs/ring-offset-width
2629
+ * @deprecated since Tailwind CSS v4.0.0
2630
+ * @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
2493
2631
  */
2494
2632
  "ring-offset-w": [{
2495
- "ring-offset": [isLength, isArbitraryLength]
2633
+ "ring-offset": [isNumber, isArbitraryLength]
2496
2634
  }],
2497
2635
  /**
2498
2636
  * Ring Offset Color
2499
- * @see https://tailwindcss.com/docs/ring-offset-color
2637
+ * @see https://v3.tailwindcss.com/docs/ring-offset-color
2638
+ * @deprecated since Tailwind CSS v4.0.0
2639
+ * @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
2500
2640
  */
2501
2641
  "ring-offset-color": [{
2502
- "ring-offset": [colors]
2642
+ "ring-offset": scaleColor()
2503
2643
  }],
2504
- // Effects
2505
2644
  /**
2506
- * Box Shadow
2507
- * @see https://tailwindcss.com/docs/box-shadow
2645
+ * Inset Ring Width
2646
+ * @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-ring
2508
2647
  */
2509
- shadow: [{
2510
- shadow: ["", "inner", "none", isTshirtSize, isArbitraryShadow]
2648
+ "inset-ring-w": [{
2649
+ "inset-ring": scaleBorderWidth()
2511
2650
  }],
2512
2651
  /**
2513
- * Box Shadow Color
2514
- * @see https://tailwindcss.com/docs/box-shadow-color
2652
+ * Inset Ring Color
2653
+ * @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-ring-color
2515
2654
  */
2516
- "shadow-color": [{
2517
- shadow: [isAny]
2655
+ "inset-ring-color": [{
2656
+ "inset-ring": scaleColor()
2657
+ }],
2658
+ /**
2659
+ * Text Shadow
2660
+ * @see https://tailwindcss.com/docs/text-shadow
2661
+ */
2662
+ "text-shadow": [{
2663
+ "text-shadow": ["none", themeTextShadow, isArbitraryVariableShadow, isArbitraryShadow]
2664
+ }],
2665
+ /**
2666
+ * Text Shadow Color
2667
+ * @see https://tailwindcss.com/docs/text-shadow#setting-the-shadow-color
2668
+ */
2669
+ "text-shadow-color": [{
2670
+ "text-shadow": scaleColor()
2518
2671
  }],
2519
2672
  /**
2520
2673
  * Opacity
2521
2674
  * @see https://tailwindcss.com/docs/opacity
2522
2675
  */
2523
2676
  opacity: [{
2524
- opacity: [opacity]
2677
+ opacity: [isNumber, isArbitraryVariable, isArbitraryValue]
2525
2678
  }],
2526
2679
  /**
2527
2680
  * Mix Blend Mode
2528
2681
  * @see https://tailwindcss.com/docs/mix-blend-mode
2529
2682
  */
2530
2683
  "mix-blend": [{
2531
- "mix-blend": [...getBlendModes(), "plus-lighter", "plus-darker"]
2684
+ "mix-blend": [...scaleBlendMode(), "plus-darker", "plus-lighter"]
2532
2685
  }],
2533
2686
  /**
2534
2687
  * Background Blend Mode
2535
2688
  * @see https://tailwindcss.com/docs/background-blend-mode
2536
2689
  */
2537
2690
  "bg-blend": [{
2538
- "bg-blend": getBlendModes()
2691
+ "bg-blend": scaleBlendMode()
2692
+ }],
2693
+ /**
2694
+ * Mask Clip
2695
+ * @see https://tailwindcss.com/docs/mask-clip
2696
+ */
2697
+ "mask-clip": [{
2698
+ "mask-clip": ["border", "padding", "content", "fill", "stroke", "view"]
2699
+ }, "mask-no-clip"],
2700
+ /**
2701
+ * Mask Composite
2702
+ * @see https://tailwindcss.com/docs/mask-composite
2703
+ */
2704
+ "mask-composite": [{
2705
+ mask: ["add", "subtract", "intersect", "exclude"]
2539
2706
  }],
2540
- // Filters
2707
+ /**
2708
+ * Mask Image
2709
+ * @see https://tailwindcss.com/docs/mask-image
2710
+ */
2711
+ "mask-image-linear-pos": [{
2712
+ "mask-linear": [isNumber]
2713
+ }],
2714
+ "mask-image-linear-from-pos": [{
2715
+ "mask-linear-from": scaleMaskImagePosition()
2716
+ }],
2717
+ "mask-image-linear-to-pos": [{
2718
+ "mask-linear-to": scaleMaskImagePosition()
2719
+ }],
2720
+ "mask-image-linear-from-color": [{
2721
+ "mask-linear-from": scaleColor()
2722
+ }],
2723
+ "mask-image-linear-to-color": [{
2724
+ "mask-linear-to": scaleColor()
2725
+ }],
2726
+ "mask-image-t-from-pos": [{
2727
+ "mask-t-from": scaleMaskImagePosition()
2728
+ }],
2729
+ "mask-image-t-to-pos": [{
2730
+ "mask-t-to": scaleMaskImagePosition()
2731
+ }],
2732
+ "mask-image-t-from-color": [{
2733
+ "mask-t-from": scaleColor()
2734
+ }],
2735
+ "mask-image-t-to-color": [{
2736
+ "mask-t-to": scaleColor()
2737
+ }],
2738
+ "mask-image-r-from-pos": [{
2739
+ "mask-r-from": scaleMaskImagePosition()
2740
+ }],
2741
+ "mask-image-r-to-pos": [{
2742
+ "mask-r-to": scaleMaskImagePosition()
2743
+ }],
2744
+ "mask-image-r-from-color": [{
2745
+ "mask-r-from": scaleColor()
2746
+ }],
2747
+ "mask-image-r-to-color": [{
2748
+ "mask-r-to": scaleColor()
2749
+ }],
2750
+ "mask-image-b-from-pos": [{
2751
+ "mask-b-from": scaleMaskImagePosition()
2752
+ }],
2753
+ "mask-image-b-to-pos": [{
2754
+ "mask-b-to": scaleMaskImagePosition()
2755
+ }],
2756
+ "mask-image-b-from-color": [{
2757
+ "mask-b-from": scaleColor()
2758
+ }],
2759
+ "mask-image-b-to-color": [{
2760
+ "mask-b-to": scaleColor()
2761
+ }],
2762
+ "mask-image-l-from-pos": [{
2763
+ "mask-l-from": scaleMaskImagePosition()
2764
+ }],
2765
+ "mask-image-l-to-pos": [{
2766
+ "mask-l-to": scaleMaskImagePosition()
2767
+ }],
2768
+ "mask-image-l-from-color": [{
2769
+ "mask-l-from": scaleColor()
2770
+ }],
2771
+ "mask-image-l-to-color": [{
2772
+ "mask-l-to": scaleColor()
2773
+ }],
2774
+ "mask-image-x-from-pos": [{
2775
+ "mask-x-from": scaleMaskImagePosition()
2776
+ }],
2777
+ "mask-image-x-to-pos": [{
2778
+ "mask-x-to": scaleMaskImagePosition()
2779
+ }],
2780
+ "mask-image-x-from-color": [{
2781
+ "mask-x-from": scaleColor()
2782
+ }],
2783
+ "mask-image-x-to-color": [{
2784
+ "mask-x-to": scaleColor()
2785
+ }],
2786
+ "mask-image-y-from-pos": [{
2787
+ "mask-y-from": scaleMaskImagePosition()
2788
+ }],
2789
+ "mask-image-y-to-pos": [{
2790
+ "mask-y-to": scaleMaskImagePosition()
2791
+ }],
2792
+ "mask-image-y-from-color": [{
2793
+ "mask-y-from": scaleColor()
2794
+ }],
2795
+ "mask-image-y-to-color": [{
2796
+ "mask-y-to": scaleColor()
2797
+ }],
2798
+ "mask-image-radial": [{
2799
+ "mask-radial": [isArbitraryVariable, isArbitraryValue]
2800
+ }],
2801
+ "mask-image-radial-from-pos": [{
2802
+ "mask-radial-from": scaleMaskImagePosition()
2803
+ }],
2804
+ "mask-image-radial-to-pos": [{
2805
+ "mask-radial-to": scaleMaskImagePosition()
2806
+ }],
2807
+ "mask-image-radial-from-color": [{
2808
+ "mask-radial-from": scaleColor()
2809
+ }],
2810
+ "mask-image-radial-to-color": [{
2811
+ "mask-radial-to": scaleColor()
2812
+ }],
2813
+ "mask-image-radial-shape": [{
2814
+ "mask-radial": ["circle", "ellipse"]
2815
+ }],
2816
+ "mask-image-radial-size": [{
2817
+ "mask-radial": [{
2818
+ closest: ["side", "corner"],
2819
+ farthest: ["side", "corner"]
2820
+ }]
2821
+ }],
2822
+ "mask-image-radial-pos": [{
2823
+ "mask-radial-at": scalePosition()
2824
+ }],
2825
+ "mask-image-conic-pos": [{
2826
+ "mask-conic": [isNumber]
2827
+ }],
2828
+ "mask-image-conic-from-pos": [{
2829
+ "mask-conic-from": scaleMaskImagePosition()
2830
+ }],
2831
+ "mask-image-conic-to-pos": [{
2832
+ "mask-conic-to": scaleMaskImagePosition()
2833
+ }],
2834
+ "mask-image-conic-from-color": [{
2835
+ "mask-conic-from": scaleColor()
2836
+ }],
2837
+ "mask-image-conic-to-color": [{
2838
+ "mask-conic-to": scaleColor()
2839
+ }],
2840
+ /**
2841
+ * Mask Mode
2842
+ * @see https://tailwindcss.com/docs/mask-mode
2843
+ */
2844
+ "mask-mode": [{
2845
+ mask: ["alpha", "luminance", "match"]
2846
+ }],
2847
+ /**
2848
+ * Mask Origin
2849
+ * @see https://tailwindcss.com/docs/mask-origin
2850
+ */
2851
+ "mask-origin": [{
2852
+ "mask-origin": ["border", "padding", "content", "fill", "stroke", "view"]
2853
+ }],
2854
+ /**
2855
+ * Mask Position
2856
+ * @see https://tailwindcss.com/docs/mask-position
2857
+ */
2858
+ "mask-position": [{
2859
+ mask: scaleBgPosition()
2860
+ }],
2861
+ /**
2862
+ * Mask Repeat
2863
+ * @see https://tailwindcss.com/docs/mask-repeat
2864
+ */
2865
+ "mask-repeat": [{
2866
+ mask: scaleBgRepeat()
2867
+ }],
2868
+ /**
2869
+ * Mask Size
2870
+ * @see https://tailwindcss.com/docs/mask-size
2871
+ */
2872
+ "mask-size": [{
2873
+ mask: scaleBgSize()
2874
+ }],
2875
+ /**
2876
+ * Mask Type
2877
+ * @see https://tailwindcss.com/docs/mask-type
2878
+ */
2879
+ "mask-type": [{
2880
+ "mask-type": ["alpha", "luminance"]
2881
+ }],
2882
+ /**
2883
+ * Mask Image
2884
+ * @see https://tailwindcss.com/docs/mask-image
2885
+ */
2886
+ "mask-image": [{
2887
+ mask: ["none", isArbitraryVariable, isArbitraryValue]
2888
+ }],
2889
+ // ---------------
2890
+ // --- Filters ---
2891
+ // ---------------
2541
2892
  /**
2542
2893
  * Filter
2543
- * @deprecated since Tailwind CSS v3.0.0
2544
2894
  * @see https://tailwindcss.com/docs/filter
2545
2895
  */
2546
2896
  filter: [{
2547
- filter: ["", "none"]
2897
+ filter: [
2898
+ // Deprecated since Tailwind CSS v3.0.0
2899
+ "",
2900
+ "none",
2901
+ isArbitraryVariable,
2902
+ isArbitraryValue
2903
+ ]
2548
2904
  }],
2549
2905
  /**
2550
2906
  * Blur
2551
2907
  * @see https://tailwindcss.com/docs/blur
2552
2908
  */
2553
2909
  blur: [{
2554
- blur: [blur]
2910
+ blur: scaleBlur()
2555
2911
  }],
2556
2912
  /**
2557
2913
  * Brightness
2558
2914
  * @see https://tailwindcss.com/docs/brightness
2559
2915
  */
2560
2916
  brightness: [{
2561
- brightness: [brightness]
2917
+ brightness: [isNumber, isArbitraryVariable, isArbitraryValue]
2562
2918
  }],
2563
2919
  /**
2564
2920
  * Contrast
2565
2921
  * @see https://tailwindcss.com/docs/contrast
2566
2922
  */
2567
2923
  contrast: [{
2568
- contrast: [contrast]
2924
+ contrast: [isNumber, isArbitraryVariable, isArbitraryValue]
2569
2925
  }],
2570
2926
  /**
2571
2927
  * Drop Shadow
2572
2928
  * @see https://tailwindcss.com/docs/drop-shadow
2573
2929
  */
2574
2930
  "drop-shadow": [{
2575
- "drop-shadow": ["", "none", isTshirtSize, isArbitraryValue]
2931
+ "drop-shadow": [
2932
+ // Deprecated since Tailwind CSS v4.0.0
2933
+ "",
2934
+ "none",
2935
+ themeDropShadow,
2936
+ isArbitraryVariableShadow,
2937
+ isArbitraryShadow
2938
+ ]
2939
+ }],
2940
+ /**
2941
+ * Drop Shadow Color
2942
+ * @see https://tailwindcss.com/docs/filter-drop-shadow#setting-the-shadow-color
2943
+ */
2944
+ "drop-shadow-color": [{
2945
+ "drop-shadow": scaleColor()
2576
2946
  }],
2577
2947
  /**
2578
2948
  * Grayscale
2579
2949
  * @see https://tailwindcss.com/docs/grayscale
2580
2950
  */
2581
2951
  grayscale: [{
2582
- grayscale: [grayscale]
2952
+ grayscale: ["", isNumber, isArbitraryVariable, isArbitraryValue]
2583
2953
  }],
2584
2954
  /**
2585
2955
  * Hue Rotate
2586
2956
  * @see https://tailwindcss.com/docs/hue-rotate
2587
2957
  */
2588
2958
  "hue-rotate": [{
2589
- "hue-rotate": [hueRotate]
2959
+ "hue-rotate": [isNumber, isArbitraryVariable, isArbitraryValue]
2590
2960
  }],
2591
2961
  /**
2592
2962
  * Invert
2593
2963
  * @see https://tailwindcss.com/docs/invert
2594
2964
  */
2595
2965
  invert: [{
2596
- invert: [invert]
2966
+ invert: ["", isNumber, isArbitraryVariable, isArbitraryValue]
2597
2967
  }],
2598
2968
  /**
2599
2969
  * Saturate
2600
2970
  * @see https://tailwindcss.com/docs/saturate
2601
2971
  */
2602
2972
  saturate: [{
2603
- saturate: [saturate]
2973
+ saturate: [isNumber, isArbitraryVariable, isArbitraryValue]
2604
2974
  }],
2605
2975
  /**
2606
2976
  * Sepia
2607
2977
  * @see https://tailwindcss.com/docs/sepia
2608
2978
  */
2609
2979
  sepia: [{
2610
- sepia: [sepia]
2980
+ sepia: ["", isNumber, isArbitraryVariable, isArbitraryValue]
2611
2981
  }],
2612
2982
  /**
2613
2983
  * Backdrop Filter
2614
- * @deprecated since Tailwind CSS v3.0.0
2615
2984
  * @see https://tailwindcss.com/docs/backdrop-filter
2616
2985
  */
2617
2986
  "backdrop-filter": [{
2618
- "backdrop-filter": ["", "none"]
2987
+ "backdrop-filter": [
2988
+ // Deprecated since Tailwind CSS v3.0.0
2989
+ "",
2990
+ "none",
2991
+ isArbitraryVariable,
2992
+ isArbitraryValue
2993
+ ]
2619
2994
  }],
2620
2995
  /**
2621
2996
  * Backdrop Blur
2622
2997
  * @see https://tailwindcss.com/docs/backdrop-blur
2623
2998
  */
2624
2999
  "backdrop-blur": [{
2625
- "backdrop-blur": [blur]
3000
+ "backdrop-blur": scaleBlur()
2626
3001
  }],
2627
3002
  /**
2628
3003
  * Backdrop Brightness
2629
3004
  * @see https://tailwindcss.com/docs/backdrop-brightness
2630
3005
  */
2631
3006
  "backdrop-brightness": [{
2632
- "backdrop-brightness": [brightness]
3007
+ "backdrop-brightness": [isNumber, isArbitraryVariable, isArbitraryValue]
2633
3008
  }],
2634
3009
  /**
2635
3010
  * Backdrop Contrast
2636
3011
  * @see https://tailwindcss.com/docs/backdrop-contrast
2637
3012
  */
2638
3013
  "backdrop-contrast": [{
2639
- "backdrop-contrast": [contrast]
3014
+ "backdrop-contrast": [isNumber, isArbitraryVariable, isArbitraryValue]
2640
3015
  }],
2641
3016
  /**
2642
3017
  * Backdrop Grayscale
2643
3018
  * @see https://tailwindcss.com/docs/backdrop-grayscale
2644
3019
  */
2645
3020
  "backdrop-grayscale": [{
2646
- "backdrop-grayscale": [grayscale]
3021
+ "backdrop-grayscale": ["", isNumber, isArbitraryVariable, isArbitraryValue]
2647
3022
  }],
2648
3023
  /**
2649
3024
  * Backdrop Hue Rotate
2650
3025
  * @see https://tailwindcss.com/docs/backdrop-hue-rotate
2651
3026
  */
2652
3027
  "backdrop-hue-rotate": [{
2653
- "backdrop-hue-rotate": [hueRotate]
3028
+ "backdrop-hue-rotate": [isNumber, isArbitraryVariable, isArbitraryValue]
2654
3029
  }],
2655
3030
  /**
2656
3031
  * Backdrop Invert
2657
3032
  * @see https://tailwindcss.com/docs/backdrop-invert
2658
3033
  */
2659
3034
  "backdrop-invert": [{
2660
- "backdrop-invert": [invert]
3035
+ "backdrop-invert": ["", isNumber, isArbitraryVariable, isArbitraryValue]
2661
3036
  }],
2662
3037
  /**
2663
3038
  * Backdrop Opacity
2664
3039
  * @see https://tailwindcss.com/docs/backdrop-opacity
2665
3040
  */
2666
3041
  "backdrop-opacity": [{
2667
- "backdrop-opacity": [opacity]
3042
+ "backdrop-opacity": [isNumber, isArbitraryVariable, isArbitraryValue]
2668
3043
  }],
2669
3044
  /**
2670
3045
  * Backdrop Saturate
2671
3046
  * @see https://tailwindcss.com/docs/backdrop-saturate
2672
3047
  */
2673
3048
  "backdrop-saturate": [{
2674
- "backdrop-saturate": [saturate]
3049
+ "backdrop-saturate": [isNumber, isArbitraryVariable, isArbitraryValue]
2675
3050
  }],
2676
3051
  /**
2677
3052
  * Backdrop Sepia
2678
3053
  * @see https://tailwindcss.com/docs/backdrop-sepia
2679
3054
  */
2680
3055
  "backdrop-sepia": [{
2681
- "backdrop-sepia": [sepia]
3056
+ "backdrop-sepia": ["", isNumber, isArbitraryVariable, isArbitraryValue]
2682
3057
  }],
2683
- // Tables
3058
+ // --------------
3059
+ // --- Tables ---
3060
+ // --------------
2684
3061
  /**
2685
3062
  * Border Collapse
2686
3063
  * @see https://tailwindcss.com/docs/border-collapse
@@ -2693,21 +3070,21 @@ var getDefaultConfig = () => {
2693
3070
  * @see https://tailwindcss.com/docs/border-spacing
2694
3071
  */
2695
3072
  "border-spacing": [{
2696
- "border-spacing": [borderSpacing]
3073
+ "border-spacing": scaleUnambiguousSpacing()
2697
3074
  }],
2698
3075
  /**
2699
3076
  * Border Spacing X
2700
3077
  * @see https://tailwindcss.com/docs/border-spacing
2701
3078
  */
2702
3079
  "border-spacing-x": [{
2703
- "border-spacing-x": [borderSpacing]
3080
+ "border-spacing-x": scaleUnambiguousSpacing()
2704
3081
  }],
2705
3082
  /**
2706
3083
  * Border Spacing Y
2707
3084
  * @see https://tailwindcss.com/docs/border-spacing
2708
3085
  */
2709
3086
  "border-spacing-y": [{
2710
- "border-spacing-y": [borderSpacing]
3087
+ "border-spacing-y": scaleUnambiguousSpacing()
2711
3088
  }],
2712
3089
  /**
2713
3090
  * Table Layout
@@ -2723,120 +3100,220 @@ var getDefaultConfig = () => {
2723
3100
  caption: [{
2724
3101
  caption: ["top", "bottom"]
2725
3102
  }],
2726
- // Transitions and Animation
3103
+ // ---------------------------------
3104
+ // --- Transitions and Animation ---
3105
+ // ---------------------------------
2727
3106
  /**
2728
- * Tranisition Property
3107
+ * Transition Property
2729
3108
  * @see https://tailwindcss.com/docs/transition-property
2730
3109
  */
2731
3110
  transition: [{
2732
- transition: ["none", "all", "", "colors", "opacity", "shadow", "transform", isArbitraryValue]
3111
+ transition: ["", "all", "colors", "opacity", "shadow", "transform", "none", isArbitraryVariable, isArbitraryValue]
3112
+ }],
3113
+ /**
3114
+ * Transition Behavior
3115
+ * @see https://tailwindcss.com/docs/transition-behavior
3116
+ */
3117
+ "transition-behavior": [{
3118
+ transition: ["normal", "discrete"]
2733
3119
  }],
2734
3120
  /**
2735
3121
  * Transition Duration
2736
3122
  * @see https://tailwindcss.com/docs/transition-duration
2737
3123
  */
2738
3124
  duration: [{
2739
- duration: getNumberAndArbitrary()
3125
+ duration: [isNumber, "initial", isArbitraryVariable, isArbitraryValue]
2740
3126
  }],
2741
3127
  /**
2742
3128
  * Transition Timing Function
2743
3129
  * @see https://tailwindcss.com/docs/transition-timing-function
2744
3130
  */
2745
3131
  ease: [{
2746
- ease: ["linear", "in", "out", "in-out", isArbitraryValue]
3132
+ ease: ["linear", "initial", themeEase, isArbitraryVariable, isArbitraryValue]
2747
3133
  }],
2748
3134
  /**
2749
3135
  * Transition Delay
2750
3136
  * @see https://tailwindcss.com/docs/transition-delay
2751
3137
  */
2752
3138
  delay: [{
2753
- delay: getNumberAndArbitrary()
3139
+ delay: [isNumber, isArbitraryVariable, isArbitraryValue]
2754
3140
  }],
2755
3141
  /**
2756
3142
  * Animation
2757
3143
  * @see https://tailwindcss.com/docs/animation
2758
3144
  */
2759
3145
  animate: [{
2760
- animate: ["none", "spin", "ping", "pulse", "bounce", isArbitraryValue]
3146
+ animate: ["none", themeAnimate, isArbitraryVariable, isArbitraryValue]
2761
3147
  }],
2762
- // Transforms
3148
+ // ------------------
3149
+ // --- Transforms ---
3150
+ // ------------------
2763
3151
  /**
2764
- * Transform
2765
- * @see https://tailwindcss.com/docs/transform
3152
+ * Backface Visibility
3153
+ * @see https://tailwindcss.com/docs/backface-visibility
2766
3154
  */
2767
- transform: [{
2768
- transform: ["", "gpu", "none"]
3155
+ backface: [{
3156
+ backface: ["hidden", "visible"]
3157
+ }],
3158
+ /**
3159
+ * Perspective
3160
+ * @see https://tailwindcss.com/docs/perspective
3161
+ */
3162
+ perspective: [{
3163
+ perspective: [themePerspective, isArbitraryVariable, isArbitraryValue]
3164
+ }],
3165
+ /**
3166
+ * Perspective Origin
3167
+ * @see https://tailwindcss.com/docs/perspective-origin
3168
+ */
3169
+ "perspective-origin": [{
3170
+ "perspective-origin": scalePositionWithArbitrary()
3171
+ }],
3172
+ /**
3173
+ * Rotate
3174
+ * @see https://tailwindcss.com/docs/rotate
3175
+ */
3176
+ rotate: [{
3177
+ rotate: scaleRotate()
3178
+ }],
3179
+ /**
3180
+ * Rotate X
3181
+ * @see https://tailwindcss.com/docs/rotate
3182
+ */
3183
+ "rotate-x": [{
3184
+ "rotate-x": scaleRotate()
3185
+ }],
3186
+ /**
3187
+ * Rotate Y
3188
+ * @see https://tailwindcss.com/docs/rotate
3189
+ */
3190
+ "rotate-y": [{
3191
+ "rotate-y": scaleRotate()
3192
+ }],
3193
+ /**
3194
+ * Rotate Z
3195
+ * @see https://tailwindcss.com/docs/rotate
3196
+ */
3197
+ "rotate-z": [{
3198
+ "rotate-z": scaleRotate()
2769
3199
  }],
2770
3200
  /**
2771
3201
  * Scale
2772
3202
  * @see https://tailwindcss.com/docs/scale
2773
3203
  */
2774
3204
  scale: [{
2775
- scale: [scale]
3205
+ scale: scaleScale()
2776
3206
  }],
2777
3207
  /**
2778
3208
  * Scale X
2779
3209
  * @see https://tailwindcss.com/docs/scale
2780
3210
  */
2781
3211
  "scale-x": [{
2782
- "scale-x": [scale]
3212
+ "scale-x": scaleScale()
2783
3213
  }],
2784
3214
  /**
2785
3215
  * Scale Y
2786
3216
  * @see https://tailwindcss.com/docs/scale
2787
3217
  */
2788
3218
  "scale-y": [{
2789
- "scale-y": [scale]
3219
+ "scale-y": scaleScale()
2790
3220
  }],
2791
3221
  /**
2792
- * Rotate
2793
- * @see https://tailwindcss.com/docs/rotate
3222
+ * Scale Z
3223
+ * @see https://tailwindcss.com/docs/scale
2794
3224
  */
2795
- rotate: [{
2796
- rotate: [isInteger, isArbitraryValue]
3225
+ "scale-z": [{
3226
+ "scale-z": scaleScale()
2797
3227
  }],
2798
3228
  /**
2799
- * Translate X
2800
- * @see https://tailwindcss.com/docs/translate
3229
+ * Scale 3D
3230
+ * @see https://tailwindcss.com/docs/scale
2801
3231
  */
2802
- "translate-x": [{
2803
- "translate-x": [translate]
2804
- }],
3232
+ "scale-3d": ["scale-3d"],
2805
3233
  /**
2806
- * Translate Y
2807
- * @see https://tailwindcss.com/docs/translate
3234
+ * Skew
3235
+ * @see https://tailwindcss.com/docs/skew
2808
3236
  */
2809
- "translate-y": [{
2810
- "translate-y": [translate]
3237
+ skew: [{
3238
+ skew: scaleSkew()
2811
3239
  }],
2812
3240
  /**
2813
3241
  * Skew X
2814
3242
  * @see https://tailwindcss.com/docs/skew
2815
3243
  */
2816
3244
  "skew-x": [{
2817
- "skew-x": [skew]
3245
+ "skew-x": scaleSkew()
2818
3246
  }],
2819
3247
  /**
2820
3248
  * Skew Y
2821
3249
  * @see https://tailwindcss.com/docs/skew
2822
3250
  */
2823
3251
  "skew-y": [{
2824
- "skew-y": [skew]
3252
+ "skew-y": scaleSkew()
3253
+ }],
3254
+ /**
3255
+ * Transform
3256
+ * @see https://tailwindcss.com/docs/transform
3257
+ */
3258
+ transform: [{
3259
+ transform: [isArbitraryVariable, isArbitraryValue, "", "none", "gpu", "cpu"]
2825
3260
  }],
2826
3261
  /**
2827
3262
  * Transform Origin
2828
3263
  * @see https://tailwindcss.com/docs/transform-origin
2829
3264
  */
2830
3265
  "transform-origin": [{
2831
- origin: ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left", isArbitraryValue]
3266
+ origin: scalePositionWithArbitrary()
3267
+ }],
3268
+ /**
3269
+ * Transform Style
3270
+ * @see https://tailwindcss.com/docs/transform-style
3271
+ */
3272
+ "transform-style": [{
3273
+ transform: ["3d", "flat"]
3274
+ }],
3275
+ /**
3276
+ * Translate
3277
+ * @see https://tailwindcss.com/docs/translate
3278
+ */
3279
+ translate: [{
3280
+ translate: scaleTranslate()
2832
3281
  }],
2833
- // Interactivity
3282
+ /**
3283
+ * Translate X
3284
+ * @see https://tailwindcss.com/docs/translate
3285
+ */
3286
+ "translate-x": [{
3287
+ "translate-x": scaleTranslate()
3288
+ }],
3289
+ /**
3290
+ * Translate Y
3291
+ * @see https://tailwindcss.com/docs/translate
3292
+ */
3293
+ "translate-y": [{
3294
+ "translate-y": scaleTranslate()
3295
+ }],
3296
+ /**
3297
+ * Translate Z
3298
+ * @see https://tailwindcss.com/docs/translate
3299
+ */
3300
+ "translate-z": [{
3301
+ "translate-z": scaleTranslate()
3302
+ }],
3303
+ /**
3304
+ * Translate None
3305
+ * @see https://tailwindcss.com/docs/translate
3306
+ */
3307
+ "translate-none": ["translate-none"],
3308
+ // ---------------------
3309
+ // --- Interactivity ---
3310
+ // ---------------------
2834
3311
  /**
2835
3312
  * Accent Color
2836
3313
  * @see https://tailwindcss.com/docs/accent-color
2837
3314
  */
2838
3315
  accent: [{
2839
- accent: ["auto", colors]
3316
+ accent: scaleColor()
2840
3317
  }],
2841
3318
  /**
2842
3319
  * Appearance
@@ -2845,33 +3322,47 @@ var getDefaultConfig = () => {
2845
3322
  appearance: [{
2846
3323
  appearance: ["none", "auto"]
2847
3324
  }],
3325
+ /**
3326
+ * Caret Color
3327
+ * @see https://tailwindcss.com/docs/just-in-time-mode#caret-color-utilities
3328
+ */
3329
+ "caret-color": [{
3330
+ caret: scaleColor()
3331
+ }],
3332
+ /**
3333
+ * Color Scheme
3334
+ * @see https://tailwindcss.com/docs/color-scheme
3335
+ */
3336
+ "color-scheme": [{
3337
+ scheme: ["normal", "dark", "light", "light-dark", "only-dark", "only-light"]
3338
+ }],
2848
3339
  /**
2849
3340
  * Cursor
2850
3341
  * @see https://tailwindcss.com/docs/cursor
2851
3342
  */
2852
3343
  cursor: [{
2853
- cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", isArbitraryValue]
3344
+ 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]
2854
3345
  }],
2855
3346
  /**
2856
- * Caret Color
2857
- * @see https://tailwindcss.com/docs/just-in-time-mode#caret-color-utilities
3347
+ * Field Sizing
3348
+ * @see https://tailwindcss.com/docs/field-sizing
2858
3349
  */
2859
- "caret-color": [{
2860
- caret: [colors]
3350
+ "field-sizing": [{
3351
+ "field-sizing": ["fixed", "content"]
2861
3352
  }],
2862
3353
  /**
2863
3354
  * Pointer Events
2864
3355
  * @see https://tailwindcss.com/docs/pointer-events
2865
3356
  */
2866
3357
  "pointer-events": [{
2867
- "pointer-events": ["none", "auto"]
3358
+ "pointer-events": ["auto", "none"]
2868
3359
  }],
2869
3360
  /**
2870
3361
  * Resize
2871
3362
  * @see https://tailwindcss.com/docs/resize
2872
3363
  */
2873
3364
  resize: [{
2874
- resize: ["none", "y", "x", ""]
3365
+ resize: ["none", "", "y", "x"]
2875
3366
  }],
2876
3367
  /**
2877
3368
  * Scroll Behavior
@@ -2885,126 +3376,126 @@ var getDefaultConfig = () => {
2885
3376
  * @see https://tailwindcss.com/docs/scroll-margin
2886
3377
  */
2887
3378
  "scroll-m": [{
2888
- "scroll-m": getSpacingWithArbitrary()
3379
+ "scroll-m": scaleUnambiguousSpacing()
2889
3380
  }],
2890
3381
  /**
2891
3382
  * Scroll Margin X
2892
3383
  * @see https://tailwindcss.com/docs/scroll-margin
2893
3384
  */
2894
3385
  "scroll-mx": [{
2895
- "scroll-mx": getSpacingWithArbitrary()
3386
+ "scroll-mx": scaleUnambiguousSpacing()
2896
3387
  }],
2897
3388
  /**
2898
3389
  * Scroll Margin Y
2899
3390
  * @see https://tailwindcss.com/docs/scroll-margin
2900
3391
  */
2901
3392
  "scroll-my": [{
2902
- "scroll-my": getSpacingWithArbitrary()
3393
+ "scroll-my": scaleUnambiguousSpacing()
2903
3394
  }],
2904
3395
  /**
2905
3396
  * Scroll Margin Start
2906
3397
  * @see https://tailwindcss.com/docs/scroll-margin
2907
3398
  */
2908
3399
  "scroll-ms": [{
2909
- "scroll-ms": getSpacingWithArbitrary()
3400
+ "scroll-ms": scaleUnambiguousSpacing()
2910
3401
  }],
2911
3402
  /**
2912
3403
  * Scroll Margin End
2913
3404
  * @see https://tailwindcss.com/docs/scroll-margin
2914
3405
  */
2915
3406
  "scroll-me": [{
2916
- "scroll-me": getSpacingWithArbitrary()
3407
+ "scroll-me": scaleUnambiguousSpacing()
2917
3408
  }],
2918
3409
  /**
2919
3410
  * Scroll Margin Top
2920
3411
  * @see https://tailwindcss.com/docs/scroll-margin
2921
3412
  */
2922
3413
  "scroll-mt": [{
2923
- "scroll-mt": getSpacingWithArbitrary()
3414
+ "scroll-mt": scaleUnambiguousSpacing()
2924
3415
  }],
2925
3416
  /**
2926
3417
  * Scroll Margin Right
2927
3418
  * @see https://tailwindcss.com/docs/scroll-margin
2928
3419
  */
2929
3420
  "scroll-mr": [{
2930
- "scroll-mr": getSpacingWithArbitrary()
3421
+ "scroll-mr": scaleUnambiguousSpacing()
2931
3422
  }],
2932
3423
  /**
2933
3424
  * Scroll Margin Bottom
2934
3425
  * @see https://tailwindcss.com/docs/scroll-margin
2935
3426
  */
2936
3427
  "scroll-mb": [{
2937
- "scroll-mb": getSpacingWithArbitrary()
3428
+ "scroll-mb": scaleUnambiguousSpacing()
2938
3429
  }],
2939
3430
  /**
2940
3431
  * Scroll Margin Left
2941
3432
  * @see https://tailwindcss.com/docs/scroll-margin
2942
3433
  */
2943
3434
  "scroll-ml": [{
2944
- "scroll-ml": getSpacingWithArbitrary()
3435
+ "scroll-ml": scaleUnambiguousSpacing()
2945
3436
  }],
2946
3437
  /**
2947
3438
  * Scroll Padding
2948
3439
  * @see https://tailwindcss.com/docs/scroll-padding
2949
3440
  */
2950
3441
  "scroll-p": [{
2951
- "scroll-p": getSpacingWithArbitrary()
3442
+ "scroll-p": scaleUnambiguousSpacing()
2952
3443
  }],
2953
3444
  /**
2954
3445
  * Scroll Padding X
2955
3446
  * @see https://tailwindcss.com/docs/scroll-padding
2956
3447
  */
2957
3448
  "scroll-px": [{
2958
- "scroll-px": getSpacingWithArbitrary()
3449
+ "scroll-px": scaleUnambiguousSpacing()
2959
3450
  }],
2960
3451
  /**
2961
3452
  * Scroll Padding Y
2962
3453
  * @see https://tailwindcss.com/docs/scroll-padding
2963
3454
  */
2964
3455
  "scroll-py": [{
2965
- "scroll-py": getSpacingWithArbitrary()
3456
+ "scroll-py": scaleUnambiguousSpacing()
2966
3457
  }],
2967
3458
  /**
2968
3459
  * Scroll Padding Start
2969
3460
  * @see https://tailwindcss.com/docs/scroll-padding
2970
3461
  */
2971
3462
  "scroll-ps": [{
2972
- "scroll-ps": getSpacingWithArbitrary()
3463
+ "scroll-ps": scaleUnambiguousSpacing()
2973
3464
  }],
2974
3465
  /**
2975
3466
  * Scroll Padding End
2976
3467
  * @see https://tailwindcss.com/docs/scroll-padding
2977
3468
  */
2978
3469
  "scroll-pe": [{
2979
- "scroll-pe": getSpacingWithArbitrary()
3470
+ "scroll-pe": scaleUnambiguousSpacing()
2980
3471
  }],
2981
3472
  /**
2982
3473
  * Scroll Padding Top
2983
3474
  * @see https://tailwindcss.com/docs/scroll-padding
2984
3475
  */
2985
3476
  "scroll-pt": [{
2986
- "scroll-pt": getSpacingWithArbitrary()
3477
+ "scroll-pt": scaleUnambiguousSpacing()
2987
3478
  }],
2988
3479
  /**
2989
3480
  * Scroll Padding Right
2990
3481
  * @see https://tailwindcss.com/docs/scroll-padding
2991
3482
  */
2992
3483
  "scroll-pr": [{
2993
- "scroll-pr": getSpacingWithArbitrary()
3484
+ "scroll-pr": scaleUnambiguousSpacing()
2994
3485
  }],
2995
3486
  /**
2996
3487
  * Scroll Padding Bottom
2997
3488
  * @see https://tailwindcss.com/docs/scroll-padding
2998
3489
  */
2999
3490
  "scroll-pb": [{
3000
- "scroll-pb": getSpacingWithArbitrary()
3491
+ "scroll-pb": scaleUnambiguousSpacing()
3001
3492
  }],
3002
3493
  /**
3003
3494
  * Scroll Padding Left
3004
3495
  * @see https://tailwindcss.com/docs/scroll-padding
3005
3496
  */
3006
3497
  "scroll-pl": [{
3007
- "scroll-pl": getSpacingWithArbitrary()
3498
+ "scroll-pl": scaleUnambiguousSpacing()
3008
3499
  }],
3009
3500
  /**
3010
3501
  * Scroll Snap Align
@@ -3072,36 +3563,35 @@ var getDefaultConfig = () => {
3072
3563
  * @see https://tailwindcss.com/docs/will-change
3073
3564
  */
3074
3565
  "will-change": [{
3075
- "will-change": ["auto", "scroll", "contents", "transform", isArbitraryValue]
3566
+ "will-change": ["auto", "scroll", "contents", "transform", isArbitraryVariable, isArbitraryValue]
3076
3567
  }],
3077
- // SVG
3568
+ // -----------
3569
+ // --- SVG ---
3570
+ // -----------
3078
3571
  /**
3079
3572
  * Fill
3080
3573
  * @see https://tailwindcss.com/docs/fill
3081
3574
  */
3082
3575
  fill: [{
3083
- fill: [colors, "none"]
3576
+ fill: ["none", ...scaleColor()]
3084
3577
  }],
3085
3578
  /**
3086
3579
  * Stroke Width
3087
3580
  * @see https://tailwindcss.com/docs/stroke-width
3088
3581
  */
3089
3582
  "stroke-w": [{
3090
- stroke: [isLength, isArbitraryLength, isArbitraryNumber]
3583
+ stroke: [isNumber, isArbitraryVariableLength, isArbitraryLength, isArbitraryNumber]
3091
3584
  }],
3092
3585
  /**
3093
3586
  * Stroke
3094
3587
  * @see https://tailwindcss.com/docs/stroke
3095
3588
  */
3096
3589
  stroke: [{
3097
- stroke: [colors, "none"]
3590
+ stroke: ["none", ...scaleColor()]
3098
3591
  }],
3099
- // Accessibility
3100
- /**
3101
- * Screen Readers
3102
- * @see https://tailwindcss.com/docs/screen-readers
3103
- */
3104
- sr: ["sr-only", "not-sr-only"],
3592
+ // ---------------------
3593
+ // --- Accessibility ---
3594
+ // ---------------------
3105
3595
  /**
3106
3596
  * Forced Color Adjust
3107
3597
  * @see https://tailwindcss.com/docs/forced-color-adjust
@@ -3141,12 +3631,14 @@ var getDefaultConfig = () => {
3141
3631
  "rounded-b": ["rounded-br", "rounded-bl"],
3142
3632
  "rounded-l": ["rounded-tl", "rounded-bl"],
3143
3633
  "border-spacing": ["border-spacing-x", "border-spacing-y"],
3144
- "border-w": ["border-w-s", "border-w-e", "border-w-t", "border-w-r", "border-w-b", "border-w-l"],
3634
+ "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"],
3145
3635
  "border-w-x": ["border-w-r", "border-w-l"],
3146
3636
  "border-w-y": ["border-w-t", "border-w-b"],
3147
- "border-color": ["border-color-s", "border-color-e", "border-color-t", "border-color-r", "border-color-b", "border-color-l"],
3637
+ "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"],
3148
3638
  "border-color-x": ["border-color-r", "border-color-l"],
3149
3639
  "border-color-y": ["border-color-t", "border-color-b"],
3640
+ translate: ["translate-x", "translate-y", "translate-none"],
3641
+ "translate-none": ["translate", "translate-x", "translate-y", "translate-z"],
3150
3642
  "scroll-m": ["scroll-mx", "scroll-my", "scroll-ms", "scroll-me", "scroll-mt", "scroll-mr", "scroll-mb", "scroll-ml"],
3151
3643
  "scroll-mx": ["scroll-mr", "scroll-ml"],
3152
3644
  "scroll-my": ["scroll-mt", "scroll-mb"],
@@ -3160,27 +3652,30 @@ var getDefaultConfig = () => {
3160
3652
  },
3161
3653
  conflictingClassGroupModifiers: {
3162
3654
  "font-size": ["leading"]
3163
- }
3655
+ },
3656
+ orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
3164
3657
  };
3165
3658
  };
3166
3659
  var mergeConfigs = (baseConfig, {
3167
3660
  cacheSize,
3168
3661
  prefix,
3169
- separator,
3170
3662
  experimentalParseClassName,
3171
3663
  extend = {},
3172
3664
  override = {}
3173
3665
  }) => {
3174
3666
  overrideProperty(baseConfig, "cacheSize", cacheSize);
3175
3667
  overrideProperty(baseConfig, "prefix", prefix);
3176
- overrideProperty(baseConfig, "separator", separator);
3177
3668
  overrideProperty(baseConfig, "experimentalParseClassName", experimentalParseClassName);
3178
- for (const configKey in override) {
3179
- overrideConfigProperties(baseConfig[configKey], override[configKey]);
3180
- }
3181
- for (const key in extend) {
3182
- mergeConfigProperties(baseConfig[key], extend[key]);
3183
- }
3669
+ overrideConfigProperties(baseConfig.theme, override.theme);
3670
+ overrideConfigProperties(baseConfig.classGroups, override.classGroups);
3671
+ overrideConfigProperties(baseConfig.conflictingClassGroups, override.conflictingClassGroups);
3672
+ overrideConfigProperties(baseConfig.conflictingClassGroupModifiers, override.conflictingClassGroupModifiers);
3673
+ overrideProperty(baseConfig, "orderSensitiveModifiers", override.orderSensitiveModifiers);
3674
+ mergeConfigProperties(baseConfig.theme, extend.theme);
3675
+ mergeConfigProperties(baseConfig.classGroups, extend.classGroups);
3676
+ mergeConfigProperties(baseConfig.conflictingClassGroups, extend.conflictingClassGroups);
3677
+ mergeConfigProperties(baseConfig.conflictingClassGroupModifiers, extend.conflictingClassGroupModifiers);
3678
+ mergeArrayProperties(baseConfig, extend, "orderSensitiveModifiers");
3184
3679
  return baseConfig;
3185
3680
  };
3186
3681
  var overrideProperty = (baseObject, overrideKey, overrideValue) => {
@@ -3198,18 +3693,21 @@ var overrideConfigProperties = (baseObject, overrideObject) => {
3198
3693
  var mergeConfigProperties = (baseObject, mergeObject) => {
3199
3694
  if (mergeObject) {
3200
3695
  for (const key in mergeObject) {
3201
- const mergeValue = mergeObject[key];
3202
- if (mergeValue !== void 0) {
3203
- baseObject[key] = (baseObject[key] || []).concat(mergeValue);
3204
- }
3696
+ mergeArrayProperties(baseObject, mergeObject, key);
3205
3697
  }
3206
3698
  }
3207
3699
  };
3700
+ var mergeArrayProperties = (baseObject, mergeObject, key) => {
3701
+ const mergeValue = mergeObject[key];
3702
+ if (mergeValue !== void 0) {
3703
+ baseObject[key] = baseObject[key] ? baseObject[key].concat(mergeValue) : mergeValue;
3704
+ }
3705
+ };
3208
3706
  var extendTailwindMerge = (configExtension, ...createConfig) => typeof configExtension === "function" ? createTailwindMerge(getDefaultConfig, configExtension, ...createConfig) : createTailwindMerge(() => mergeConfigs(getDefaultConfig(), configExtension), ...createConfig);
3209
3707
 
3210
3708
  // src/editor/utils/classname.ts
3211
3709
  var twMerge = extendTailwindMerge({
3212
- prefix: "mly-"
3710
+ prefix: "mly"
3213
3711
  });
3214
3712
  function cn(...inputs) {
3215
3713
  return twMerge(clsx(inputs));
@@ -3232,7 +3730,7 @@ var Input = React.forwardRef(
3232
3730
  __spreadValues(__spreadProps(__spreadValues({}, AUTOCOMPLETE_PASSWORD_MANAGERS_OFF), {
3233
3731
  type,
3234
3732
  className: cn(
3235
- "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",
3733
+ "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",
3236
3734
  "mly-editor",
3237
3735
  className
3238
3736
  ),
@@ -3249,22 +3747,28 @@ import * as PopoverPrimitive from "@radix-ui/react-popover";
3249
3747
  import { jsx as jsx2 } from "react/jsx-runtime";
3250
3748
  var Popover = PopoverPrimitive.Root;
3251
3749
  var PopoverTrigger = PopoverPrimitive.Trigger;
3252
- var PopoverContent = React2.forwardRef((_a, ref) => {
3253
- var _b = _a, { className, align = "center", sideOffset = 4 } = _b, props = __objRest(_b, ["className", "align", "sideOffset"]);
3254
- return /* @__PURE__ */ jsx2(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx2(
3255
- PopoverPrimitive.Content,
3256
- __spreadValues({
3257
- ref,
3258
- align,
3259
- sideOffset,
3260
- className: cn(
3261
- "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",
3262
- "mly-editor",
3263
- className
3264
- )
3265
- }, props)
3266
- ) });
3267
- });
3750
+ var PopoverContent = React2.forwardRef(
3751
+ (_a, ref) => {
3752
+ var _b = _a, { className, align = "center", sideOffset = 4, portal = false } = _b, props = __objRest(_b, ["className", "align", "sideOffset", "portal"]);
3753
+ const content = /* @__PURE__ */ jsx2(
3754
+ PopoverPrimitive.Content,
3755
+ __spreadValues({
3756
+ ref,
3757
+ align,
3758
+ sideOffset,
3759
+ className: cn(
3760
+ "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",
3761
+ "mly-editor",
3762
+ className
3763
+ )
3764
+ }, props)
3765
+ );
3766
+ if (!portal) {
3767
+ return content;
3768
+ }
3769
+ return /* @__PURE__ */ jsx2(PopoverPrimitive.Portal, { children: content });
3770
+ }
3771
+ );
3268
3772
  PopoverContent.displayName = PopoverPrimitive.Content.displayName;
3269
3773
 
3270
3774
  // src/editor/components/textarea.tsx
@@ -3277,7 +3781,7 @@ var Textarea = React3.forwardRef(
3277
3781
  "textarea",
3278
3782
  __spreadValues({
3279
3783
  className: cn(
3280
- "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",
3784
+ "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",
3281
3785
  "mly-editor",
3282
3786
  className
3283
3787
  ),
@@ -3309,27 +3813,27 @@ function LinkCardComponent(props) {
3309
3813
  const pos = getPos();
3310
3814
  editor.commands.setNodeSelection(pos);
3311
3815
  },
3312
- children: /* @__PURE__ */ jsxs("div", { className: "mly-no-prose mly-flex mly-flex-col mly-rounded-lg mly-border mly-border-gray-300", children: [
3313
- image2 && /* @__PURE__ */ jsx4("div", { className: "mly-relative mly-mb-1.5 mly-w-full mly-shrink-0", children: /* @__PURE__ */ jsx4(
3816
+ children: /* @__PURE__ */ jsxs("div", { className: "mly:no-prose mly:flex mly:flex-col mly:rounded-lg mly:border mly:border-gray-300", children: [
3817
+ image2 && /* @__PURE__ */ jsx4("div", { className: "mly:relative mly:mb-1.5 mly:w-full mly:shrink-0", children: /* @__PURE__ */ jsx4(
3314
3818
  "img",
3315
3819
  {
3316
3820
  src: image2,
3317
3821
  alt: "link-card",
3318
- className: "mly-no-prose !mly-mb-0 mly-h-full mly-w-full mly-rounded-t-lg",
3822
+ className: "mly:no-prose mly:mb-0! mly:h-full mly:w-full mly:rounded-t-lg",
3319
3823
  draggable: editor.isEditable
3320
3824
  }
3321
3825
  ) }),
3322
- /* @__PURE__ */ jsx4("div", { className: "mly-flex mly-items-stretch mly-p-3", children: /* @__PURE__ */ jsxs("div", { className: cn("mly-flex mly-flex-col"), children: [
3323
- /* @__PURE__ */ jsxs("div", { className: "!mly-mb-1.5 mly-flex mly-items-center mly-gap-1.5", children: [
3324
- /* @__PURE__ */ jsx4("h2", { className: "!mly-mb-0 !mly-text-lg mly-font-semibold", children: title }),
3325
- badgeText && /* @__PURE__ */ jsx4("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 }),
3826
+ /* @__PURE__ */ jsx4("div", { className: "mly:flex mly:items-stretch mly:p-3", children: /* @__PURE__ */ jsxs("div", { className: cn("mly:flex mly:flex-col"), children: [
3827
+ /* @__PURE__ */ jsxs("div", { className: "!mly:mb-1.5 mly:flex mly:items-center mly:gap-1.5", children: [
3828
+ /* @__PURE__ */ jsx4("h2", { className: "!mly:mb-0 mly:text-lg! mly:font-semibold", children: title }),
3829
+ badgeText && /* @__PURE__ */ jsx4("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 }),
3326
3830
  " ",
3327
- subTitle && !badgeText && /* @__PURE__ */ jsx4("span", { className: "!mly-font-base text-xs mly-font-regular mly-rounded-md mly-leading-none mly-text-gray-400", children: subTitle })
3831
+ subTitle && !badgeText && /* @__PURE__ */ jsx4("span", { className: "!mly:font-base mly:font-regular mly:rounded-md mly:leading-none mly:text-gray-400 text-xs", children: subTitle })
3328
3832
  ] }),
3329
- /* @__PURE__ */ jsxs("p", { className: "!mly-my-0 !mly-text-base mly-text-gray-500", children: [
3833
+ /* @__PURE__ */ jsxs("p", { className: "!mly:my-0 mly:text-base! mly:text-gray-500", children: [
3330
3834
  description,
3331
3835
  " ",
3332
- linkTitle ? /* @__PURE__ */ jsx4("a", { href: link, className: "mly-font-semibold", children: linkTitle }) : null
3836
+ linkTitle ? /* @__PURE__ */ jsx4("a", { href: link, className: "mly:font-semibold", children: linkTitle }) : null
3333
3837
  ] })
3334
3838
  ] }) })
3335
3839
  ] })
@@ -3339,13 +3843,13 @@ function LinkCardComponent(props) {
3339
3843
  PopoverContent,
3340
3844
  {
3341
3845
  align: "end",
3342
- className: "mly-flex mly-w-96 mly-flex-col mly-gap-2",
3846
+ className: "mly:flex mly:w-96 mly:flex-col mly:gap-2",
3343
3847
  sideOffset: 10,
3344
3848
  onOpenAutoFocus: (e) => e.preventDefault(),
3345
3849
  onCloseAutoFocus: (e) => e.preventDefault(),
3346
3850
  children: [
3347
- /* @__PURE__ */ jsxs("label", { className: "mly-w-full mly-space-y-1", children: [
3348
- /* @__PURE__ */ jsx4("span", { className: "mly-text-xs mly-font-normal mly-text-slate-400", children: "Image" }),
3851
+ /* @__PURE__ */ jsxs("label", { className: "mly:w-full mly:space-y-1", children: [
3852
+ /* @__PURE__ */ jsx4("span", { className: "mly:text-xs mly:font-normal mly:text-slate-400", children: "Image" }),
3349
3853
  /* @__PURE__ */ jsx4(
3350
3854
  Input,
3351
3855
  {
@@ -3360,8 +3864,8 @@ function LinkCardComponent(props) {
3360
3864
  }
3361
3865
  )
3362
3866
  ] }),
3363
- /* @__PURE__ */ jsxs("label", { className: "mly-w-full mly-space-y-1", children: [
3364
- /* @__PURE__ */ jsx4("span", { className: "mly-text-xs mly-font-normal mly-text-slate-400", children: "Title" }),
3867
+ /* @__PURE__ */ jsxs("label", { className: "mly:w-full mly:space-y-1", children: [
3868
+ /* @__PURE__ */ jsx4("span", { className: "mly:text-xs mly:font-normal mly:text-slate-400", children: "Title" }),
3365
3869
  /* @__PURE__ */ jsx4(
3366
3870
  Input,
3367
3871
  {
@@ -3375,8 +3879,8 @@ function LinkCardComponent(props) {
3375
3879
  }
3376
3880
  )
3377
3881
  ] }),
3378
- /* @__PURE__ */ jsxs("label", { className: "mly-w-full mly-space-y-1", children: [
3379
- /* @__PURE__ */ jsx4("span", { className: "mly-text-xs mly-font-normal mly-text-slate-400", children: "Description" }),
3882
+ /* @__PURE__ */ jsxs("label", { className: "mly:w-full mly:space-y-1", children: [
3883
+ /* @__PURE__ */ jsx4("span", { className: "mly:text-xs mly:font-normal mly:text-slate-400", children: "Description" }),
3380
3884
  /* @__PURE__ */ jsx4(
3381
3885
  Textarea,
3382
3886
  {
@@ -3390,9 +3894,9 @@ function LinkCardComponent(props) {
3390
3894
  }
3391
3895
  )
3392
3896
  ] }),
3393
- /* @__PURE__ */ jsxs("div", { className: "mly-grid mly-grid-cols-2 mly-gap-2", children: [
3394
- /* @__PURE__ */ jsxs("label", { className: "mly-w-full mly-space-y-1", children: [
3395
- /* @__PURE__ */ jsx4("span", { className: "mly-text-xs mly-font-normal mly-text-slate-400", children: "Link Title" }),
3897
+ /* @__PURE__ */ jsxs("div", { className: "mly:grid mly:grid-cols-2 mly:gap-2", children: [
3898
+ /* @__PURE__ */ jsxs("label", { className: "mly:w-full mly:space-y-1", children: [
3899
+ /* @__PURE__ */ jsx4("span", { className: "mly:text-xs mly:font-normal mly:text-slate-400", children: "Link Title" }),
3396
3900
  /* @__PURE__ */ jsx4(
3397
3901
  Input,
3398
3902
  {
@@ -3406,8 +3910,8 @@ function LinkCardComponent(props) {
3406
3910
  }
3407
3911
  )
3408
3912
  ] }),
3409
- /* @__PURE__ */ jsxs("label", { className: "mly-w-full mly-space-y-1", children: [
3410
- /* @__PURE__ */ jsx4("span", { className: "mly-text-xs mly-font-normal mly-text-slate-400", children: "Link" }),
3913
+ /* @__PURE__ */ jsxs("label", { className: "mly:w-full mly:space-y-1", children: [
3914
+ /* @__PURE__ */ jsx4("span", { className: "mly:text-xs mly:font-normal mly:text-slate-400", children: "Link" }),
3411
3915
  /* @__PURE__ */ jsx4(
3412
3916
  Input,
3413
3917
  {
@@ -3422,9 +3926,9 @@ function LinkCardComponent(props) {
3422
3926
  )
3423
3927
  ] })
3424
3928
  ] }),
3425
- /* @__PURE__ */ jsxs("div", { className: "mly-grid mly-grid-cols-2 mly-gap-2", children: [
3426
- /* @__PURE__ */ jsxs("label", { className: "mly-w-full mly-space-y-1", children: [
3427
- /* @__PURE__ */ jsx4("span", { className: "mly-text-xs mly-font-normal mly-text-slate-400", children: "Badge Text" }),
3929
+ /* @__PURE__ */ jsxs("div", { className: "mly:grid mly:grid-cols-2 mly:gap-2", children: [
3930
+ /* @__PURE__ */ jsxs("label", { className: "mly:w-full mly:space-y-1", children: [
3931
+ /* @__PURE__ */ jsx4("span", { className: "mly:text-xs mly:font-normal mly:text-slate-400", children: "Badge Text" }),
3428
3932
  /* @__PURE__ */ jsx4(
3429
3933
  Input,
3430
3934
  {
@@ -3438,8 +3942,8 @@ function LinkCardComponent(props) {
3438
3942
  }
3439
3943
  )
3440
3944
  ] }),
3441
- /* @__PURE__ */ jsxs("label", { className: "mly-w-full mly-space-y-1", children: [
3442
- /* @__PURE__ */ jsx4("span", { className: "mly-text-xs mly-font-normal mly-text-slate-400", children: "Sub Title" }),
3945
+ /* @__PURE__ */ jsxs("label", { className: "mly:w-full mly:space-y-1", children: [
3946
+ /* @__PURE__ */ jsx4("span", { className: "mly:text-xs mly:font-normal mly:text-slate-400", children: "Sub Title" }),
3443
3947
  /* @__PURE__ */ jsx4(
3444
3948
  Input,
3445
3949
  {
@@ -3528,7 +4032,7 @@ var LinkCardExtension = Node4.create({
3528
4032
  },
3529
4033
  addNodeView() {
3530
4034
  return ReactNodeViewRenderer(LinkCardComponent, {
3531
- className: "mly-relative"
4035
+ className: "mly:relative"
3532
4036
  });
3533
4037
  }
3534
4038
  });
@@ -3744,7 +4248,7 @@ var ColumnsExtension = Node7.create({
3744
4248
  "div",
3745
4249
  mergeAttributes6(HTMLAttributes2, {
3746
4250
  "data-type": "columns",
3747
- class: "mly-relative"
4251
+ class: "mly:relative"
3748
4252
  }),
3749
4253
  0
3750
4254
  ];
@@ -3793,20 +4297,20 @@ var BaseButton = React4.forwardRef(
3793
4297
  "asChild"
3794
4298
  ]);
3795
4299
  const Comp = asChild ? Slot : "button";
3796
- 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 ";
4300
+ 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 ";
3797
4301
  const variantClasses = {
3798
- default: "mly-bg-gray-900 mly-text-gray-50 hover:mly-bg-soft-gray",
3799
- destructive: "mly-bg-red-500 mly-text-gray-50 hover:mly-bg-red-500/90",
3800
- outline: "mly-border mly-border-gray-200 mly-bg-white hover:mly-bg-gray-100 hover:mly-text-gray-900",
3801
- secondary: "mly-bg-gray-100 mly-text-gray-900 hover:mly-bg-gray-100/80",
3802
- 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",
3803
- link: "mly-text-gray-900 mly-underline-offset-4 hover:mly-underline"
4302
+ default: "mly:bg-gray-900 mly:text-gray-50 mly:hover:bg-soft-gray",
4303
+ destructive: "mly:bg-red-500 mly:text-gray-50 mly:hover:bg-red-500/90",
4304
+ outline: "mly:border mly:border-gray-200 mly:bg-white mly:hover:bg-gray-100 mly:hover:text-gray-900",
4305
+ secondary: "mly:bg-gray-100 mly:text-gray-900 mly:hover:bg-gray-100/80",
4306
+ 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",
4307
+ link: "mly:text-gray-900 mly:underline-offset-4 mly:hover:underline"
3804
4308
  };
3805
4309
  const sizeClasses = {
3806
- default: "mly-h-10 mly-px-4 mly-py-2",
3807
- sm: "mly-h-9 mly-rounded-md mly-px-3",
3808
- lg: "mly-h-11 mly-rounded-md mly-px-8",
3809
- icon: "mly-h-10 mly-w-10"
4310
+ default: "mly:h-10 mly:px-4 mly:py-2",
4311
+ sm: "mly:h-9 mly:rounded-md mly:px-3",
4312
+ lg: "mly:h-11 mly:rounded-md mly:px-8",
4313
+ icon: "mly:h-10 mly:w-10"
3810
4314
  };
3811
4315
  const classes = cn(
3812
4316
  "mly-editor",
@@ -3835,7 +4339,7 @@ var TooltipContent = React5.forwardRef((_a, ref) => {
3835
4339
  ref,
3836
4340
  sideOffset,
3837
4341
  className: cn(
3838
- "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",
4342
+ "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",
3839
4343
  className
3840
4344
  )
3841
4345
  }, props)
@@ -3856,7 +4360,7 @@ function BubbleMenuButton(item) {
3856
4360
  }, item.command ? { onClick: item.command } : {}), {
3857
4361
  "data-state": (_a = item == null ? void 0 : item.isActive) == null ? void 0 : _a.call(item),
3858
4362
  className: cn(
3859
- "!mly-size-7 mly-px-2.5 disabled:mly-cursor-not-allowed",
4363
+ "mly:size-7! mly:px-2.5 mly:disabled:cursor-not-allowed",
3860
4364
  item == null ? void 0 : item.className
3861
4365
  ),
3862
4366
  type: "button",
@@ -3865,7 +4369,7 @@ function BubbleMenuButton(item) {
3865
4369
  item.icon,
3866
4370
  {
3867
4371
  className: cn(
3868
- "mly-h-3 mly-w-3 mly-shrink-0 mly-stroke-[2.5]",
4372
+ "mly:h-3 mly:w-3 mly:shrink-0 mly:stroke-[2.5]",
3869
4373
  item == null ? void 0 : item.iconClassName
3870
4374
  )
3871
4375
  }
@@ -3873,7 +4377,7 @@ function BubbleMenuButton(item) {
3873
4377
  "span",
3874
4378
  {
3875
4379
  className: cn(
3876
- "mly-text-sm mly-font-medium mly-text-slate-600",
4380
+ "mly:text-sm mly:font-medium mly:text-slate-600",
3877
4381
  item == null ? void 0 : item.nameClassName
3878
4382
  ),
3879
4383
  children: item.name
@@ -4017,7 +4521,7 @@ function ImageView(props) {
4017
4521
  tabIndex: 0,
4018
4522
  onMouseDown: handleMouseDown,
4019
4523
  "data-direction": direction,
4020
- className: "mly-bg-rose-500",
4524
+ className: "mly:bg-rose-500",
4021
4525
  style: __spreadProps(__spreadValues(__spreadValues({
4022
4526
  position: "absolute",
4023
4527
  height: "10px",
@@ -4209,7 +4713,7 @@ function ImageView(props) {
4209
4713
  type: "file",
4210
4714
  accept: "image/*",
4211
4715
  onChange: handleFileChange,
4212
- className: "mly-absolute mly-inset-0 mly-opacity-0",
4716
+ className: "mly:absolute mly:inset-0 mly:opacity-0",
4213
4717
  multiple: false
4214
4718
  }
4215
4719
  ),
@@ -4228,7 +4732,7 @@ function ImageView(props) {
4228
4732
  }),
4229
4733
  draggable: editor.isEditable,
4230
4734
  className: cn(
4231
- isPlaceholderImage && "mly-animate-pulse mly-opacity-40"
4735
+ isPlaceholderImage && "mly:animate-pulse mly:opacity-40"
4232
4736
  )
4233
4737
  })
4234
4738
  ),
@@ -4241,7 +4745,7 @@ function ImageView(props) {
4241
4745
  ].map((style, i) => /* @__PURE__ */ jsx8(
4242
4746
  "div",
4243
4747
  {
4244
- className: "mly-bg-rose-500",
4748
+ className: "mly:bg-rose-500",
4245
4749
  style: __spreadValues({
4246
4750
  position: "absolute"
4247
4751
  }, style)
@@ -4264,10 +4768,10 @@ function ImageStatusLabel(props) {
4264
4768
  "div",
4265
4769
  __spreadProps(__spreadValues({}, rest), {
4266
4770
  className: cn(
4267
- "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",
4771
+ "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",
4268
4772
  {
4269
- "mly-text-gray-500 hover:mly-bg-soft-gray/60": status === "loading",
4270
- "mly-text-red-500 hover:mly-bg-soft-gray/60": status === "error"
4773
+ "mly:text-gray-500 mly:hover:bg-soft-gray/60": status === "loading",
4774
+ "mly:text-red-500 mly:hover:bg-soft-gray/60": status === "error"
4271
4775
  },
4272
4776
  className
4273
4777
  ),
@@ -4276,23 +4780,23 @@ function ImageStatusLabel(props) {
4276
4780
  } : {}), style),
4277
4781
  children: [
4278
4782
  status === "idle" && !isDropZone && /* @__PURE__ */ jsxs3(Fragment2, { children: [
4279
- /* @__PURE__ */ jsx8(ImageOffIcon, { className: "mly-size-4 mly-stroke-[2.5]" }),
4783
+ /* @__PURE__ */ jsx8(ImageOffIcon, { className: "mly:size-4 mly:stroke-[2.5]" }),
4280
4784
  /* @__PURE__ */ jsx8("span", { children: "No image selected" })
4281
4785
  ] }),
4282
4786
  status === "idle" && isDropZone && /* @__PURE__ */ jsxs3(Fragment2, { children: [
4283
- /* @__PURE__ */ jsx8(GrabIcon, { className: "mly-size-4 mly-stroke-[2.5]" }),
4787
+ /* @__PURE__ */ jsx8(GrabIcon, { className: "mly:size-4 mly:stroke-[2.5]" }),
4284
4788
  /* @__PURE__ */ jsx8("span", { children: "Click or Drop image here" })
4285
4789
  ] }),
4286
4790
  status === "loading" && /* @__PURE__ */ jsxs3(Fragment2, { children: [
4287
- /* @__PURE__ */ jsx8(Loader2, { className: "mly-size-4 mly-animate-spin mly-stroke-[2.5]" }),
4791
+ /* @__PURE__ */ jsx8(Loader2, { className: "mly:size-4 mly:animate-spin mly:stroke-[2.5]" }),
4288
4792
  /* @__PURE__ */ jsx8("span", { children: "Loading image..." })
4289
4793
  ] }),
4290
4794
  status === "error" && /* @__PURE__ */ jsxs3(Fragment2, { children: [
4291
- /* @__PURE__ */ jsx8(Ban, { className: "mly-size-4 mly-stroke-[2.5]" }),
4795
+ /* @__PURE__ */ jsx8(Ban, { className: "mly:size-4 mly:stroke-[2.5]" }),
4292
4796
  /* @__PURE__ */ jsx8("span", { children: "Error loading image" })
4293
4797
  ] }),
4294
4798
  status === "variable" && /* @__PURE__ */ jsxs3(Fragment2, { children: [
4295
- /* @__PURE__ */ jsx8(BracesIcon, { className: "mly-size-4 mly-stroke-[2.5]" }),
4799
+ /* @__PURE__ */ jsx8(BracesIcon, { className: "mly:size-4 mly:stroke-[2.5]" }),
4296
4800
  /* @__PURE__ */ jsx8("span", { children: "Variable Image URL" })
4297
4801
  ] })
4298
4802
  ]
@@ -4445,7 +4949,7 @@ function LogoView(props) {
4445
4949
  type: "file",
4446
4950
  accept: "image/*",
4447
4951
  onChange: handleFileChange,
4448
- className: "mly-absolute mly-inset-0 mly-opacity-0",
4952
+ className: "mly:absolute mly:inset-0 mly:opacity-0",
4449
4953
  multiple: false
4450
4954
  }
4451
4955
  ),
@@ -4570,7 +5074,7 @@ var LogoExtension = TiptapImage.extend({
4570
5074
  },
4571
5075
  addNodeView() {
4572
5076
  return ReactNodeViewRenderer2(LogoView, {
4573
- className: "mly-relative"
5077
+ className: "mly:relative"
4574
5078
  });
4575
5079
  }
4576
5080
  });
@@ -4612,9 +5116,9 @@ function AlignmentSwitch(props) {
4612
5116
  PopoverTrigger,
4613
5117
  {
4614
5118
  className: cn(
4615
- "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"
5119
+ "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"
4616
5120
  ),
4617
- children: /* @__PURE__ */ jsx10(activeAlignment.icon, { className: "mly-h-3 mly-w-3 mly-stroke-[2.5]" })
5121
+ children: /* @__PURE__ */ jsx10(activeAlignment.icon, { className: "mly:h-3 mly:w-3 mly:stroke-[2.5]" })
4618
5122
  }
4619
5123
  ) }),
4620
5124
  /* @__PURE__ */ jsx10(TooltipContent, { sideOffset: 8, children: "Alignment" })
@@ -4622,7 +5126,7 @@ function AlignmentSwitch(props) {
4622
5126
  /* @__PURE__ */ jsx10(
4623
5127
  PopoverContent,
4624
5128
  {
4625
- className: "mly-flex mly-w-max mly-gap-0.5 mly-rounded-lg !mly-p-0.5",
5129
+ className: "mly:flex mly:w-max mly:gap-0.5 mly:rounded-lg mly:p-0.5!",
4626
5130
  side: "top",
4627
5131
  sideOffset: 8,
4628
5132
  align: "center",
@@ -4749,8 +5253,8 @@ var InputAutocomplete = forwardRef6((props, ref) => {
4749
5253
  onOutsideClick == null ? void 0 : onOutsideClick();
4750
5254
  });
4751
5255
  const isTriggeringVariable = value.startsWith(triggerChar);
4752
- return /* @__PURE__ */ jsxs6("div", { className: cn("mly-relative"), ref: containerRef, children: [
4753
- /* @__PURE__ */ jsxs6("label", { className: "mly-relative", children: [
5256
+ return /* @__PURE__ */ jsxs6("div", { className: cn("mly:relative"), ref: containerRef, children: [
5257
+ /* @__PURE__ */ jsxs6("label", { className: "mly:relative", children: [
4754
5258
  /* @__PURE__ */ jsx11(
4755
5259
  "input",
4756
5260
  __spreadProps(__spreadValues(__spreadProps(__spreadValues({}, AUTOCOMPLETE_PASSWORD_MANAGERS_OFF), {
@@ -4763,7 +5267,7 @@ var InputAutocomplete = forwardRef6((props, ref) => {
4763
5267
  onValueChange(e.target.value);
4764
5268
  },
4765
5269
  className: cn(
4766
- "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",
5270
+ "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",
4767
5271
  className
4768
5272
  ),
4769
5273
  onKeyDown: (e) => {
@@ -4785,9 +5289,9 @@ var InputAutocomplete = forwardRef6((props, ref) => {
4785
5289
  spellCheck: false
4786
5290
  })
4787
5291
  ),
4788
- /* @__PURE__ */ jsx11("div", { className: "mly-absolute mly-inset-y-0 mly-right-1 mly-flex mly-items-center", children: /* @__PURE__ */ jsx11(CornerDownLeft, { className: "mly-h-3 mly-w-3 mly-stroke-[2.5] mly-text-midnight-gray" }) })
5292
+ /* @__PURE__ */ jsx11("div", { className: "mly:absolute mly:inset-y-0 mly:right-1 mly:flex mly:items-center", children: /* @__PURE__ */ jsx11(CornerDownLeft, { className: "mly:h-3 mly:w-3 mly:stroke-[2.5] mly:text-midnight-gray" }) })
4789
5293
  ] }),
4790
- isTriggeringVariable && /* @__PURE__ */ jsx11("div", { className: "mly-absolute mly-left-0 mly-top-8", children: /* @__PURE__ */ jsx11(
5294
+ isTriggeringVariable && /* @__PURE__ */ jsx11("div", { className: "mly:absolute mly:left-0 mly:top-8", children: /* @__PURE__ */ jsx11(
4791
5295
  VariableSuggestionPopoverComponent,
4792
5296
  {
4793
5297
  items: autoCompleteOptions.map((option) => {
@@ -4837,10 +5341,10 @@ function _ShowPopover(props) {
4837
5341
  PopoverTrigger,
4838
5342
  {
4839
5343
  className: cn(
4840
- "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",
4841
- showIfKey && "mly-bg-rose-100 mly-text-rose-800 data-[state=open]:mly-bg-rose-100 hover:mly-bg-rose-100"
5344
+ "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",
5345
+ showIfKey && "mly:bg-rose-100 mly:text-rose-800 mly:data-[state=open]:bg-rose-100 mly:hover:bg-rose-100"
4842
5346
  ),
4843
- children: /* @__PURE__ */ jsx12(Eye, { className: "mly-h-3 mly-w-3 mly-stroke-[2.5]" })
5347
+ children: /* @__PURE__ */ jsx12(Eye, { className: "mly:h-3 mly:w-3 mly:stroke-[2.5]" })
4844
5348
  }
4845
5349
  ) }),
4846
5350
  /* @__PURE__ */ jsx12(TooltipContent, { sideOffset: 8, children: "Show block conditionally" })
@@ -4848,7 +5352,7 @@ function _ShowPopover(props) {
4848
5352
  /* @__PURE__ */ jsxs7(
4849
5353
  PopoverContent,
4850
5354
  {
4851
- className: "mly-flex mly-w-max mly-rounded-lg !mly-p-0.5",
5355
+ className: "mly:flex mly:w-max mly:rounded-lg mly:p-0.5!",
4852
5356
  side: "top",
4853
5357
  sideOffset: 8,
4854
5358
  align: "end",
@@ -4859,20 +5363,20 @@ function _ShowPopover(props) {
4859
5363
  e.preventDefault();
4860
5364
  },
4861
5365
  children: [
4862
- /* @__PURE__ */ jsxs7("div", { className: "mly-flex mly-items-center mly-gap-1.5 mly-px-1.5 mly-text-sm mly-leading-none", children: [
5366
+ /* @__PURE__ */ jsxs7("div", { className: "mly:flex mly:items-center mly:gap-1.5 mly:px-1.5 mly:text-sm mly:leading-none", children: [
4863
5367
  "Show if",
4864
5368
  /* @__PURE__ */ jsxs7(Tooltip, { children: [
4865
5369
  /* @__PURE__ */ jsx12(TooltipTrigger, { children: /* @__PURE__ */ jsx12(
4866
5370
  InfoIcon,
4867
5371
  {
4868
- className: cn("mly-size-3 mly-stroke-[2.5] mly-text-gray-500")
5372
+ className: cn("mly:size-3 mly:stroke-[2.5] mly:text-gray-500")
4869
5373
  }
4870
5374
  ) }),
4871
5375
  /* @__PURE__ */ jsx12(
4872
5376
  TooltipContent,
4873
5377
  {
4874
5378
  sideOffset: 14,
4875
- className: "mly-max-w-[285px]",
5379
+ className: "mly:max-w-[285px]",
4876
5380
  align: "start",
4877
5381
  children: "Show the block if the selected variable is true."
4878
5382
  }
@@ -4966,14 +5470,14 @@ function ColorPicker(props) {
4966
5470
  BaseButton,
4967
5471
  {
4968
5472
  variant: "ghost",
4969
- className: "!mly-size-7 mly-shrink-0",
5473
+ className: "mly:h-7 mly:w-7 mly:shrink-0",
4970
5474
  size: "sm",
4971
5475
  type: "button",
4972
5476
  children: /* @__PURE__ */ jsx13(
4973
5477
  "div",
4974
5478
  {
4975
5479
  className: cn(
4976
- "mly-h-4 mly-w-4 mly-shrink-0 mly-rounded mly-border-2 mly-border-gray-700",
5480
+ "mly:h-4 mly:w-4 mly:shrink-0 mly:rounded mly:border-2 mly:border-gray-700",
4977
5481
  className
4978
5482
  ),
4979
5483
  style: __spreadProps(__spreadValues({}, borderColor ? { borderColor } : {}), {
@@ -4999,15 +5503,15 @@ function ColorPicker(props) {
4999
5503
  /* @__PURE__ */ jsx13(
5000
5504
  PopoverContent,
5001
5505
  {
5002
- className: "mly-w-full mly-rounded-none mly-border-0 !mly-bg-transparent !mly-p-0 mly-shadow-none mly-drop-shadow-md",
5506
+ className: "mly:w-full mly:rounded-none mly:border-0 mly:bg-transparent! mly:p-0! mly:shadow-none mly:drop-shadow-md",
5003
5507
  sideOffset: 8,
5004
- children: /* @__PURE__ */ jsxs8("div", { className: "mly-min-w-[260px] mly-rounded-xl mly-border mly-border-gray-200 mly-bg-white mly-p-4", children: [
5508
+ children: /* @__PURE__ */ jsxs8("div", { className: "mly:min-w-[260px] mly:rounded-xl mly:border mly:border-gray-200 mly:bg-white mly:p-4", children: [
5005
5509
  /* @__PURE__ */ jsx13(
5006
5510
  HexColorPicker,
5007
5511
  {
5008
5512
  color,
5009
5513
  onChange: handleColorChange,
5010
- className: "mly-flex !mly-w-full mly-flex-col mly-gap-4"
5514
+ className: "mly:flex mly:w-full! mly:flex-col mly:gap-4"
5011
5515
  }
5012
5516
  ),
5013
5517
  /* @__PURE__ */ jsx13(
@@ -5016,25 +5520,25 @@ function ColorPicker(props) {
5016
5520
  alpha: true,
5017
5521
  color,
5018
5522
  onChange: handleColorChange,
5019
- 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",
5523
+ 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",
5020
5524
  prefixed: true
5021
5525
  }
5022
5526
  ),
5023
5527
  suggestedColors.length > 0 && /* @__PURE__ */ jsxs8("div", { children: [
5024
- /* @__PURE__ */ jsx13("div", { className: "-mly-mx-4 mly-my-4 mly-h-px mly-bg-gray-200" }),
5025
- /* @__PURE__ */ jsx13("h2", { className: "mly-text-xs mly-text-gray-500", children: "Recently used" }),
5026
- /* @__PURE__ */ jsx13("div", { className: "mly-mt-2 mly-flex mly-flex-wrap mly-gap-0.5", children: suggestedColors.map((suggestedColor) => /* @__PURE__ */ jsx13(
5528
+ /* @__PURE__ */ jsx13("div", { className: "-mly:mx-4 mly:my-4 mly:h-px mly:bg-gray-200" }),
5529
+ /* @__PURE__ */ jsx13("h2", { className: "mly:text-xs mly:text-gray-500", children: "Recently used" }),
5530
+ /* @__PURE__ */ jsx13("div", { className: "mly:mt-2 mly:flex mly:flex-wrap mly:gap-0.5", children: suggestedColors.map((suggestedColor) => /* @__PURE__ */ jsx13(
5027
5531
  BaseButton,
5028
5532
  {
5029
5533
  variant: "ghost",
5030
5534
  size: "sm",
5031
- className: "!mly-size-7 mly-shrink-0",
5535
+ className: "!mly:size-7 mly:shrink-0",
5032
5536
  type: "button",
5033
5537
  onClick: () => handleColorChange(suggestedColor),
5034
5538
  children: /* @__PURE__ */ jsx13(
5035
5539
  "div",
5036
5540
  {
5037
- className: "mly-h-4 mly-w-4 mly-shrink-0 mly-rounded",
5541
+ className: "mly:h-4 mly:w-4 mly:shrink-0 mly:rounded",
5038
5542
  style: {
5039
5543
  backgroundColor: suggestedColor
5040
5544
  }
@@ -5060,8 +5564,8 @@ function Divider(props) {
5060
5564
  "div",
5061
5565
  {
5062
5566
  className: cn(
5063
- "mly-shrink-0 mly-bg-gray-200",
5064
- type === "vertical" ? "mly-mx-0.5 mly-w-px" : "mly-my-0.5 mly-h-px",
5567
+ "mly:shrink-0 mly:bg-gray-200",
5568
+ type === "vertical" ? "mly:mx-0.5 mly:w-px" : "mly:my-0.5 mly:h-px",
5065
5569
  className
5066
5570
  )
5067
5571
  }
@@ -5085,7 +5589,7 @@ var button = {
5085
5589
  title: "Button",
5086
5590
  description: "Add a call to action button to email.",
5087
5591
  searchTerms: ["link", "button", "cta"],
5088
- icon: /* @__PURE__ */ jsx15(MousePointer, { className: "mly-h-4 mly-w-4" }),
5592
+ icon: /* @__PURE__ */ jsx15(MousePointer, { className: "mly:h-4 mly:w-4" }),
5089
5593
  command: ({ editor, range }) => {
5090
5594
  editor.chain().focus().deleteRange(range).setButton().run();
5091
5595
  }
@@ -5094,7 +5598,7 @@ var linkCard = {
5094
5598
  title: "Link Card",
5095
5599
  description: "Add a link card to email.",
5096
5600
  searchTerms: ["link", "button", "image"],
5097
- icon: /* @__PURE__ */ jsx15(ArrowUpRightSquare, { className: "mly-h-4 mly-w-4" }),
5601
+ icon: /* @__PURE__ */ jsx15(ArrowUpRightSquare, { className: "mly:h-4 mly:w-4" }),
5098
5602
  command: ({ editor, range }) => {
5099
5603
  editor.chain().focus().deleteRange(range).setLinkCard().run();
5100
5604
  },
@@ -5112,7 +5616,7 @@ var htmlCodeBlock = {
5112
5616
  title: "Custom HTML",
5113
5617
  description: "Insert a custom HTML block",
5114
5618
  searchTerms: ["html", "code", "custom"],
5115
- icon: /* @__PURE__ */ jsx16(CodeXmlIcon, { className: "mly-h-4 mly-w-4" }),
5619
+ icon: /* @__PURE__ */ jsx16(CodeXmlIcon, { className: "mly:h-4 mly:w-4" }),
5116
5620
  command: ({ editor, range }) => {
5117
5621
  editor.chain().focus().deleteRange(range).setHtmlCodeBlock({ language: "html" }).run();
5118
5622
  }
@@ -5126,7 +5630,7 @@ var image = {
5126
5630
  title: "Image",
5127
5631
  description: "Full width image",
5128
5632
  searchTerms: ["image"],
5129
- icon: /* @__PURE__ */ jsx17(ImageIcon, { className: "mly-h-4 mly-w-4" }),
5633
+ icon: /* @__PURE__ */ jsx17(ImageIcon, { className: "mly:h-4 mly:w-4" }),
5130
5634
  command: ({ editor, range }) => {
5131
5635
  editor.chain().focus().deleteRange(range).setImage({ src: "" }).run();
5132
5636
  }
@@ -5135,7 +5639,7 @@ var logo = {
5135
5639
  title: "Logo",
5136
5640
  description: "Add your brand logo",
5137
5641
  searchTerms: ["image", "logo"],
5138
- icon: /* @__PURE__ */ jsx17(ImageIcon, { className: "mly-h-4 mly-w-4" }),
5642
+ icon: /* @__PURE__ */ jsx17(ImageIcon, { className: "mly:h-4 mly:w-4" }),
5139
5643
  command: ({ editor, range }) => {
5140
5644
  editor.chain().focus().deleteRange(range).setLogoImage({ src: "" }).run();
5141
5645
  }
@@ -5144,7 +5648,7 @@ var inlineImage = {
5144
5648
  title: "Inline Image",
5145
5649
  description: "Inline image",
5146
5650
  searchTerms: ["image", "inline"],
5147
- icon: /* @__PURE__ */ jsx17(ImageIcon, { className: "mly-h-4 mly-w-4" }),
5651
+ icon: /* @__PURE__ */ jsx17(ImageIcon, { className: "mly:h-4 mly:w-4" }),
5148
5652
  command: ({ editor, range }) => {
5149
5653
  editor.chain().focus().deleteRange(range).setInlineImage({
5150
5654
  src: "https://maily.to/brand/logo.png"
@@ -5179,7 +5683,7 @@ var columns = {
5179
5683
  title: "Columns",
5180
5684
  description: "Add columns to email.",
5181
5685
  searchTerms: ["layout", "columns"],
5182
- icon: /* @__PURE__ */ jsx18(ColumnsIcon, { className: "mly-h-4 mly-w-4" }),
5686
+ icon: /* @__PURE__ */ jsx18(ColumnsIcon, { className: "mly:h-4 mly:w-4" }),
5183
5687
  command: ({ editor, range }) => {
5184
5688
  editor.chain().focus().deleteRange(range).setColumns().focus(editor.state.selection.head - 2).run();
5185
5689
  }
@@ -5188,7 +5692,7 @@ var section = {
5188
5692
  title: "Section",
5189
5693
  description: "Add a section to email.",
5190
5694
  searchTerms: ["layout", "section"],
5191
- icon: /* @__PURE__ */ jsx18(RectangleHorizontal, { className: "mly-h-4 mly-w-4" }),
5695
+ icon: /* @__PURE__ */ jsx18(RectangleHorizontal, { className: "mly:h-4 mly:w-4" }),
5192
5696
  command: ({ editor, range }) => {
5193
5697
  editor.chain().focus().deleteRange(range).setSection().run();
5194
5698
  }
@@ -5197,7 +5701,7 @@ var repeat = {
5197
5701
  title: "Repeat",
5198
5702
  description: "Loop over an array of items.",
5199
5703
  searchTerms: ["repeat", "for", "loop"],
5200
- icon: /* @__PURE__ */ jsx18(Repeat2, { className: "mly-h-4 mly-w-4" }),
5704
+ icon: /* @__PURE__ */ jsx18(Repeat2, { className: "mly:h-4 mly:w-4" }),
5201
5705
  command: ({ editor, range }) => {
5202
5706
  editor.chain().focus().deleteRange(range).setRepeat().run();
5203
5707
  }
@@ -5206,7 +5710,7 @@ var spacer = {
5206
5710
  title: "Spacer",
5207
5711
  description: "Add space between blocks.",
5208
5712
  searchTerms: ["space", "gap", "divider"],
5209
- icon: /* @__PURE__ */ jsx18(MoveVertical, { className: "mly-h-4 mly-w-4" }),
5713
+ icon: /* @__PURE__ */ jsx18(MoveVertical, { className: "mly:h-4 mly:w-4" }),
5210
5714
  command: ({ editor, range }) => {
5211
5715
  editor.chain().focus().deleteRange(range).setSpacer({ height: "sm" }).run();
5212
5716
  }
@@ -5215,7 +5719,7 @@ var divider = {
5215
5719
  title: "Divider",
5216
5720
  description: "Add a horizontal divider.",
5217
5721
  searchTerms: ["divider", "line"],
5218
- icon: /* @__PURE__ */ jsx18(Minus, { className: "mly-h-4 mly-w-4" }),
5722
+ icon: /* @__PURE__ */ jsx18(Minus, { className: "mly:h-4 mly:w-4" }),
5219
5723
  command: ({ editor, range }) => {
5220
5724
  editor.chain().focus().deleteRange(range).setHorizontalRule().run();
5221
5725
  }
@@ -5228,7 +5732,7 @@ var bulletList = {
5228
5732
  title: "Bullet List",
5229
5733
  description: "Create a simple bullet list.",
5230
5734
  searchTerms: ["unordered", "point"],
5231
- icon: /* @__PURE__ */ jsx19(List, { className: "mly-h-4 mly-w-4" }),
5735
+ icon: /* @__PURE__ */ jsx19(List, { className: "mly:h-4 mly:w-4" }),
5232
5736
  command: ({ editor, range }) => {
5233
5737
  editor.chain().focus().deleteRange(range).toggleBulletList().run();
5234
5738
  }
@@ -5237,7 +5741,7 @@ var orderedList = {
5237
5741
  title: "Numbered List",
5238
5742
  description: "Create a list with numbering.",
5239
5743
  searchTerms: ["ordered"],
5240
- icon: /* @__PURE__ */ jsx19(ListOrdered, { className: "mly-h-4 mly-w-4" }),
5744
+ icon: /* @__PURE__ */ jsx19(ListOrdered, { className: "mly:h-4 mly:w-4" }),
5241
5745
  command: ({ editor, range }) => {
5242
5746
  editor.chain().focus().deleteRange(range).toggleOrderedList().run();
5243
5747
  }
@@ -5259,7 +5763,7 @@ var text = {
5259
5763
  title: "Text",
5260
5764
  description: "Just start typing with plain text.",
5261
5765
  searchTerms: ["p", "paragraph"],
5262
- icon: /* @__PURE__ */ jsx20(Text, { className: "mly-h-4 mly-w-4" }),
5766
+ icon: /* @__PURE__ */ jsx20(Text, { className: "mly:h-4 mly:w-4" }),
5263
5767
  command: ({ editor, range }) => {
5264
5768
  editor.chain().focus().deleteRange(range).toggleNode("paragraph", "paragraph").run();
5265
5769
  }
@@ -5268,7 +5772,7 @@ var heading1 = {
5268
5772
  title: "Heading 1",
5269
5773
  description: "Big heading.",
5270
5774
  searchTerms: ["h1", "title", "big", "large"],
5271
- icon: /* @__PURE__ */ jsx20(Heading1, { className: "mly-h-4 mly-w-4" }),
5775
+ icon: /* @__PURE__ */ jsx20(Heading1, { className: "mly:h-4 mly:w-4" }),
5272
5776
  command: ({ editor, range }) => {
5273
5777
  editor.chain().focus().deleteRange(range).setNode("heading", { level: 1 }).run();
5274
5778
  }
@@ -5277,7 +5781,7 @@ var heading2 = {
5277
5781
  title: "Heading 2",
5278
5782
  description: "Medium heading.",
5279
5783
  searchTerms: ["h2", "subtitle", "medium"],
5280
- icon: /* @__PURE__ */ jsx20(Heading2, { className: "mly-h-4 mly-w-4" }),
5784
+ icon: /* @__PURE__ */ jsx20(Heading2, { className: "mly:h-4 mly:w-4" }),
5281
5785
  command: ({ editor, range }) => {
5282
5786
  editor.chain().focus().deleteRange(range).setNode("heading", { level: 2 }).run();
5283
5787
  }
@@ -5286,7 +5790,7 @@ var heading3 = {
5286
5790
  title: "Heading 3",
5287
5791
  description: "Small heading.",
5288
5792
  searchTerms: ["h3", "subtitle", "small"],
5289
- icon: /* @__PURE__ */ jsx20(Heading3, { className: "mly-h-4 mly-w-4" }),
5793
+ icon: /* @__PURE__ */ jsx20(Heading3, { className: "mly:h-4 mly:w-4" }),
5290
5794
  command: ({ editor, range }) => {
5291
5795
  editor.chain().focus().deleteRange(range).setNode("heading", { level: 3 }).run();
5292
5796
  }
@@ -5295,7 +5799,7 @@ var hardBreak = {
5295
5799
  title: "Hard Break",
5296
5800
  description: "Add a break between lines.",
5297
5801
  searchTerms: ["break", "line"],
5298
- icon: /* @__PURE__ */ jsx20(DivideIcon, { className: "mly-h-4 mly-w-4" }),
5802
+ icon: /* @__PURE__ */ jsx20(DivideIcon, { className: "mly:h-4 mly:w-4" }),
5299
5803
  command: ({ editor, range }) => {
5300
5804
  editor.chain().focus().deleteRange(range).setHardBreak().run();
5301
5805
  }
@@ -5304,7 +5808,7 @@ var blockquote = {
5304
5808
  title: "Blockquote",
5305
5809
  description: "Add blockquote.",
5306
5810
  searchTerms: ["quote", "blockquote"],
5307
- icon: /* @__PURE__ */ jsx20(TextQuote, { className: "mly-h-4 mly-w-4" }),
5811
+ icon: /* @__PURE__ */ jsx20(TextQuote, { className: "mly:h-4 mly:w-4" }),
5308
5812
  command: ({ editor, range }) => {
5309
5813
  editor.chain().focus().deleteRange(range).toggleBlockquote().run();
5310
5814
  }
@@ -5313,7 +5817,7 @@ var footer = {
5313
5817
  title: "Footer",
5314
5818
  description: "Add a footer text to email.",
5315
5819
  searchTerms: ["footer", "text"],
5316
- icon: /* @__PURE__ */ jsx20(FootprintsIcon, { className: "mly-h-4 mly-w-4" }),
5820
+ icon: /* @__PURE__ */ jsx20(FootprintsIcon, { className: "mly:h-4 mly:w-4" }),
5317
5821
  command: ({ editor, range }) => {
5318
5822
  editor.chain().focus().deleteRange(range).setFooter().run();
5319
5823
  }
@@ -5322,7 +5826,7 @@ var clearLine = {
5322
5826
  title: "Clear Line",
5323
5827
  description: "Clear the current line.",
5324
5828
  searchTerms: ["clear", "line"],
5325
- icon: /* @__PURE__ */ jsx20(EraserIcon, { className: "mly-h-4 mly-w-4" }),
5829
+ icon: /* @__PURE__ */ jsx20(EraserIcon, { className: "mly:h-4 mly:w-4" }),
5326
5830
  command: ({ editor, range }) => {
5327
5831
  editor.chain().focus().selectParentNode().deleteSelection().run();
5328
5832
  }
@@ -5522,7 +6026,7 @@ var headerLogoWithTextHorizontal = {
5522
6026
  title: "Logo with Text (Horizontal)",
5523
6027
  description: "Logo and a text horizontally",
5524
6028
  searchTerms: ["logo", "text"],
5525
- icon: /* @__PURE__ */ jsx24(LogoWithTextHorizonIcon, { className: "mly-h-4 mly-w-4" }),
6029
+ icon: /* @__PURE__ */ jsx24(LogoWithTextHorizonIcon, { className: "mly:h-4 mly:w-4" }),
5526
6030
  command: ({ editor, range }) => {
5527
6031
  editor.chain().deleteRange(range).insertContent({
5528
6032
  type: "columns",
@@ -5586,7 +6090,7 @@ var headerLogoWithTextVertical = {
5586
6090
  title: "Logo with Text (Vertical)",
5587
6091
  description: "Logo and a text vertically",
5588
6092
  searchTerms: ["logo", "text"],
5589
- icon: /* @__PURE__ */ jsx24(LogoWithTextVerticalIcon, { className: "mly-h-4 mly-w-4" }),
6093
+ icon: /* @__PURE__ */ jsx24(LogoWithTextVerticalIcon, { className: "mly:h-4 mly:w-4" }),
5590
6094
  command: ({ editor, range }) => {
5591
6095
  editor.chain().deleteRange(range).insertContent([
5592
6096
  {
@@ -5617,7 +6121,7 @@ var headerLogoWithCoverImage = {
5617
6121
  title: "Logo with Cover Image",
5618
6122
  description: "Logo and a cover image",
5619
6123
  searchTerms: ["logo", "cover", "image"],
5620
- icon: /* @__PURE__ */ jsx24(LogoWithCoverImageIcon, { className: "mly-h-4 mly-w-4" }),
6124
+ icon: /* @__PURE__ */ jsx24(LogoWithCoverImageIcon, { className: "mly:h-4 mly:w-4" }),
5621
6125
  command: ({ editor, range }) => {
5622
6126
  const todayFormatted = (/* @__PURE__ */ new Date()).toLocaleDateString("en-US", {
5623
6127
  year: "numeric",
@@ -5715,7 +6219,7 @@ var footerCopyrightText = {
5715
6219
  title: "Footer Copyright",
5716
6220
  description: "Copyright text for the footer.",
5717
6221
  searchTerms: ["footer", "copyright"],
5718
- icon: /* @__PURE__ */ jsx25(CopyrightIcon, { className: "mly-h-4 mly-w-4" }),
6222
+ icon: /* @__PURE__ */ jsx25(CopyrightIcon, { className: "mly:h-4 mly:w-4" }),
5719
6223
  command: ({ editor, range }) => {
5720
6224
  const currentYear = (/* @__PURE__ */ new Date()).getFullYear();
5721
6225
  editor.chain().focus().deleteRange(range).insertContent({
@@ -5735,7 +6239,7 @@ var footerCommunityFeedbackCta = {
5735
6239
  title: "Footer Community Feedback CTA",
5736
6240
  description: "Community feedback CTA for the footer.",
5737
6241
  searchTerms: ["footer", "community", "feedback", "cta"],
5738
- icon: /* @__PURE__ */ jsx25(RectangleHorizontalIcon, { className: "mly-h-4 mly-w-4" }),
6242
+ icon: /* @__PURE__ */ jsx25(RectangleHorizontalIcon, { className: "mly:h-4 mly:w-4" }),
5739
6243
  command: ({ editor, range }) => {
5740
6244
  editor.chain().focus().deleteRange(range).insertContent([
5741
6245
  {
@@ -5778,7 +6282,7 @@ var footerCompanySignature = {
5778
6282
  title: "Footer Company Signature",
5779
6283
  description: "Company signature for the footer.",
5780
6284
  searchTerms: ["footer", "company", "signature"],
5781
- icon: /* @__PURE__ */ jsx25(LayoutTemplateIcon, { className: "mly-h-4 mly-w-4" }),
6285
+ icon: /* @__PURE__ */ jsx25(LayoutTemplateIcon, { className: "mly:h-4 mly:w-4" }),
5782
6286
  command: ({ editor, range }) => {
5783
6287
  editor.chain().focus().deleteRange(range).insertContent([
5784
6288
  { type: "horizontalRule" },
@@ -5823,7 +6327,7 @@ var footerCompanySignature = {
5823
6327
  href: "https://maily.to",
5824
6328
  target: "_blank",
5825
6329
  rel: "noopener noreferrer nofollow",
5826
- class: "mly-no-underline",
6330
+ class: "mly:no-underline",
5827
6331
  isUrlVariable: false
5828
6332
  }
5829
6333
  },
@@ -5846,7 +6350,7 @@ var footerCompanySignature = {
5846
6350
  href: "https://maily.to",
5847
6351
  target: "_blank",
5848
6352
  rel: "noopener noreferrer nofollow",
5849
- class: "mly-no-underline",
6353
+ class: "mly:no-underline",
5850
6354
  isUrlVariable: false
5851
6355
  }
5852
6356
  },
@@ -5869,7 +6373,7 @@ var footerCompanySignature = {
5869
6373
  href: "https://maily.to",
5870
6374
  target: "_blank",
5871
6375
  rel: "noopener noreferrer nofollow",
5872
- class: "mly-no-underline",
6376
+ class: "mly:no-underline",
5873
6377
  isUrlVariable: false
5874
6378
  }
5875
6379
  },
@@ -5967,7 +6471,7 @@ var DEFAULT_SLASH_COMMANDS = [
5967
6471
  title: "Headers",
5968
6472
  description: "Add pre-designed headers block",
5969
6473
  searchTerms: ["header", "headers"],
5970
- icon: /* @__PURE__ */ jsx26(Heading12, { className: "mly-h-4 mly-w-4" }),
6474
+ icon: /* @__PURE__ */ jsx26(Heading12, { className: "mly:h-4 mly:w-4" }),
5971
6475
  preview: "https://cdn.usemaily.com/previews/header-preview-xyz.png",
5972
6476
  commands: [
5973
6477
  headerLogoWithTextVertical,
@@ -5980,7 +6484,7 @@ var DEFAULT_SLASH_COMMANDS = [
5980
6484
  title: "Footers",
5981
6485
  description: "Add pre-designed footers block",
5982
6486
  searchTerms: ["footers"],
5983
- icon: /* @__PURE__ */ jsx26(FootprintsIcon2, { className: "mly-h-4 mly-w-4" }),
6487
+ icon: /* @__PURE__ */ jsx26(FootprintsIcon2, { className: "mly:h-4 mly:w-4" }),
5984
6488
  commands: [
5985
6489
  footerCopyrightText,
5986
6490
  footerCommunityFeedbackCta,
@@ -6076,41 +6580,41 @@ var VariableSuggestionsPopover = forwardRef7((props, ref) => {
6076
6580
  onSelectItem(item);
6077
6581
  }
6078
6582
  }));
6079
- return /* @__PURE__ */ jsxs12("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: [
6080
- /* @__PURE__ */ jsxs12("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: [
6081
- /* @__PURE__ */ jsx28("span", { className: "mly-text-xs mly-uppercase", children: "Variables" }),
6082
- /* @__PURE__ */ jsx28(VariableIcon, { children: /* @__PURE__ */ jsx28(Braces, { className: "mly-size-3 mly-stroke-[2.5]" }) })
6583
+ return /* @__PURE__ */ jsxs12("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: [
6584
+ /* @__PURE__ */ jsxs12("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: [
6585
+ /* @__PURE__ */ jsx28("span", { className: "mly:text-xs mly:uppercase", children: "Variables" }),
6586
+ /* @__PURE__ */ jsx28(VariableIcon, { children: /* @__PURE__ */ jsx28(Braces, { className: "mly:size-3 mly:stroke-[2.5]" }) })
6083
6587
  ] }),
6084
6588
  /* @__PURE__ */ jsx28(
6085
6589
  "div",
6086
6590
  {
6087
6591
  ref: scrollContainerRef,
6088
- className: "mly-max-h-52 mly-overflow-y-auto mly-scrollbar-thin mly-scrollbar-track-transparent mly-scrollbar-thumb-gray-200",
6089
- children: /* @__PURE__ */ jsx28("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__ */ jsxs12(
6592
+ className: "mly:max-h-52 mly:overflow-y-auto mly:scrollbar-thin mly:scrollbar-track-transparent mly:scrollbar-thumb-gray-200",
6593
+ children: /* @__PURE__ */ jsx28("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__ */ jsxs12(
6090
6594
  "button",
6091
6595
  {
6092
6596
  ref: (el) => itemRefs.current[index] = el,
6093
6597
  onClick: () => onSelectItem(item),
6094
6598
  className: cn(
6095
- "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",
6096
- index === selectedIndex ? "mly-bg-soft-gray" : "mly-bg-white"
6599
+ "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",
6600
+ index === selectedIndex ? "mly:bg-soft-gray" : "mly:bg-white"
6097
6601
  ),
6098
6602
  children: [
6099
- /* @__PURE__ */ jsx28(Braces, { className: "mly-size-3 mly-stroke-[2.5] mly-text-rose-600" }),
6100
- item.name
6603
+ /* @__PURE__ */ jsx28(Braces, { className: "mly:size-3 mly:stroke-[2.5] mly:text-rose-600" }),
6604
+ (item == null ? void 0 : item.label) || item.name
6101
6605
  ]
6102
6606
  },
6103
6607
  index
6104
- )) : /* @__PURE__ */ jsx28("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" }) })
6608
+ )) : /* @__PURE__ */ jsx28("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" }) })
6105
6609
  }
6106
6610
  ),
6107
- /* @__PURE__ */ jsxs12("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: [
6108
- /* @__PURE__ */ jsxs12("div", { className: "mly-flex mly-items-center mly-gap-1", children: [
6109
- /* @__PURE__ */ jsx28(VariableIcon, { children: /* @__PURE__ */ jsx28(ArrowDownIcon, { className: "mly-size-3 mly-stroke-[2.5]" }) }),
6110
- /* @__PURE__ */ jsx28(VariableIcon, { children: /* @__PURE__ */ jsx28(ArrowUpIcon, { className: "mly-size-3 mly-stroke-[2.5]" }) }),
6111
- /* @__PURE__ */ jsx28("span", { className: "mly-text-xs mly-text-gray-500", children: "Navigate" })
6611
+ /* @__PURE__ */ jsxs12("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: [
6612
+ /* @__PURE__ */ jsxs12("div", { className: "mly:flex mly:items-center mly:gap-1", children: [
6613
+ /* @__PURE__ */ jsx28(VariableIcon, { children: /* @__PURE__ */ jsx28(ArrowDownIcon, { className: "mly:size-3 mly:stroke-[2.5]" }) }),
6614
+ /* @__PURE__ */ jsx28(VariableIcon, { children: /* @__PURE__ */ jsx28(ArrowUpIcon, { className: "mly:size-3 mly:stroke-[2.5]" }) }),
6615
+ /* @__PURE__ */ jsx28("span", { className: "mly:text-xs mly:text-gray-500", children: "Navigate" })
6112
6616
  ] }),
6113
- /* @__PURE__ */ jsx28(VariableIcon, { children: /* @__PURE__ */ jsx28(CornerDownLeftIcon, { className: "mly-size-3 mly-stroke-[2.5]" }) })
6617
+ /* @__PURE__ */ jsx28(VariableIcon, { children: /* @__PURE__ */ jsx28(CornerDownLeftIcon, { className: "mly:size-3 mly:stroke-[2.5]" }) })
6114
6618
  ] })
6115
6619
  ] });
6116
6620
  });
@@ -6120,7 +6624,7 @@ function VariableIcon(props) {
6120
6624
  "div",
6121
6625
  {
6122
6626
  className: cn(
6123
- "mly-flex mly-size-5 mly-items-center mly-justify-center mly-rounded-md mly-border mly-border-gray-200",
6627
+ "mly:flex mly:size-5 mly:items-center mly:justify-center mly:rounded-md mly:border mly:border-gray-200",
6124
6628
  className
6125
6629
  ),
6126
6630
  children
@@ -6135,20 +6639,22 @@ import { useMemo as useMemo4 } from "react";
6135
6639
  import { Fragment as Fragment3, jsx as jsx29, jsxs as jsxs13 } from "react/jsx-runtime";
6136
6640
  function VariableView(props) {
6137
6641
  const { node, updateAttributes: updateAttributes2, editor } = props;
6138
- const { id, fallback, required, hideDefaultValue = false } = node.attrs;
6642
+ const {
6643
+ id,
6644
+ fallback,
6645
+ required,
6646
+ hideDefaultValue = false,
6647
+ label
6648
+ } = node.attrs;
6139
6649
  const renderVariable = useMemo4(() => {
6140
6650
  var _a, _b;
6141
6651
  const variableRender = (_b = (_a = getNodeOptions(editor, "variable")) == null ? void 0 : _a.renderVariable) != null ? _b : DEFAULT_RENDER_VARIABLE_FUNCTION;
6142
6652
  return variableRender;
6143
6653
  }, [editor]);
6144
- const disableInput = useMemo4(() => {
6145
- var _a, _b;
6146
- return (_b = (_a = getNodeOptions(editor, "variable")) == null ? void 0 : _a.disableInput) != null ? _b : false;
6147
- }, [editor]);
6148
6654
  return /* @__PURE__ */ jsx29(
6149
6655
  NodeViewWrapper4,
6150
6656
  {
6151
- className: "react-component mly-inline-block mly-leading-none",
6657
+ className: "react-component mly:inline-block mly:leading-none",
6152
6658
  draggable: "false",
6153
6659
  children: /* @__PURE__ */ jsxs13(
6154
6660
  Popover,
@@ -6158,7 +6664,12 @@ function VariableView(props) {
6158
6664
  },
6159
6665
  children: [
6160
6666
  /* @__PURE__ */ jsx29(PopoverTrigger, { children: renderVariable({
6161
- variable: { name: id, required, valid: true },
6667
+ variable: {
6668
+ name: id,
6669
+ required,
6670
+ valid: true,
6671
+ label
6672
+ },
6162
6673
  fallback,
6163
6674
  editor,
6164
6675
  from: "content-variable"
@@ -6168,17 +6679,16 @@ function VariableView(props) {
6168
6679
  {
6169
6680
  align: "start",
6170
6681
  side: "bottom",
6171
- className: "mly-w-max mly-rounded-lg !mly-p-0.5",
6682
+ className: "mly:w-max mly:rounded-lg mly:p-0.5!",
6172
6683
  sideOffset: 8,
6173
6684
  onOpenAutoFocus: (e) => e.preventDefault(),
6174
6685
  onCloseAutoFocus: (e) => e.preventDefault(),
6175
- children: /* @__PURE__ */ jsx29(TooltipProvider, { children: /* @__PURE__ */ jsxs13("div", { className: "mly-flex mly-items-stretch mly-text-midnight-gray", children: [
6176
- /* @__PURE__ */ jsxs13("label", { className: "mly-relative", children: [
6177
- /* @__PURE__ */ jsx29("span", { className: "mly-inline-block mly-px-2 mly-text-xs mly-text-midnight-gray", children: "Variable" }),
6686
+ children: /* @__PURE__ */ jsx29(TooltipProvider, { children: /* @__PURE__ */ jsxs13("div", { className: "mly:flex mly:items-stretch mly:text-midnight-gray", children: [
6687
+ /* @__PURE__ */ jsxs13("label", { className: "mly:relative", children: [
6688
+ /* @__PURE__ */ jsx29("span", { className: "mly:inline-block mly:px-2 mly:text-xs mly:text-midnight-gray", children: "Variable" }),
6178
6689
  /* @__PURE__ */ jsx29(
6179
6690
  "input",
6180
6691
  __spreadProps(__spreadValues({}, AUTOCOMPLETE_PASSWORD_MANAGERS_OFF), {
6181
- disabled: disableInput,
6182
6692
  value: id != null ? id : "",
6183
6693
  onChange: (e) => {
6184
6694
  updateAttributes2({
@@ -6186,14 +6696,14 @@ function VariableView(props) {
6186
6696
  });
6187
6697
  },
6188
6698
  placeholder: "ie. name...",
6189
- className: "mly-h-7 mly-w-36 mly-rounded-md mly-bg-soft-gray mly-px-2 mly-text-sm mly-text-midnight-gray focus:mly-bg-soft-gray focus:mly-outline-none disabled:mly-cursor-not-allowed"
6699
+ 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"
6190
6700
  })
6191
6701
  )
6192
6702
  ] }),
6193
6703
  !hideDefaultValue && /* @__PURE__ */ jsxs13(Fragment3, { children: [
6194
- /* @__PURE__ */ jsx29(Divider, { className: "mly-mx-1.5" }),
6195
- /* @__PURE__ */ jsxs13("label", { className: "mly-relative", children: [
6196
- /* @__PURE__ */ jsx29("span", { className: "mly-inline-block mly-px-2 mly-pl-1 mly-text-xs mly-text-midnight-gray", children: "Default" }),
6704
+ /* @__PURE__ */ jsx29(Divider, { className: "mly:mx-1.5" }),
6705
+ /* @__PURE__ */ jsxs13("label", { className: "mly:relative", children: [
6706
+ /* @__PURE__ */ jsx29("span", { className: "mly:inline-block mly:px-2 mly:pl-1 mly:text-xs mly:text-midnight-gray", children: "Default" }),
6197
6707
  /* @__PURE__ */ jsx29(
6198
6708
  "input",
6199
6709
  __spreadProps(__spreadValues({}, AUTOCOMPLETE_PASSWORD_MANAGERS_OFF), {
@@ -6204,10 +6714,10 @@ function VariableView(props) {
6204
6714
  });
6205
6715
  },
6206
6716
  placeholder: "ie. John Doe...",
6207
- 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"
6717
+ 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"
6208
6718
  })
6209
6719
  ),
6210
- /* @__PURE__ */ jsx29("div", { className: "mly-absolute mly-inset-y-0 mly-right-1 mly-flex mly-items-center", children: /* @__PURE__ */ jsx29(Pencil, { className: "mly-h-3 mly-w-3 mly-stroke-[2.5] mly-text-midnight-gray" }) })
6720
+ /* @__PURE__ */ jsx29("div", { className: "mly:absolute mly:inset-y-0 mly:right-1 mly:flex mly:items-center", children: /* @__PURE__ */ jsx29(Pencil, { className: "mly:h-3 mly:w-3 mly:stroke-[2.5] mly:text-midnight-gray" }) })
6211
6721
  ] })
6212
6722
  ] })
6213
6723
  ] }) })
@@ -6221,11 +6731,12 @@ function VariableView(props) {
6221
6731
  }
6222
6732
  var DefaultRenderVariable = (props) => {
6223
6733
  const { variable, fallback, from } = props;
6224
- const { name, required, valid } = variable;
6734
+ const { name, required, valid, label } = variable;
6735
+ const variableLabel = label || name;
6225
6736
  if (from === "button-variable") {
6226
- return /* @__PURE__ */ jsxs13("div", { className: "mly-inline-grid mly-max-w-xs mly-grid-cols-[12px_1fr] mly-items-center mly-gap-1.5 mly-rounded-md mly-border mly-border-[var(--button-var-border-color)] mly-px-2 mly-py-px mly-font-mono mly-text-xs", children: [
6227
- /* @__PURE__ */ jsx29(Braces2, { className: "mly-h-3 mly-w-3 mly-shrink-0 mly-stroke-[2.5]" }),
6228
- /* @__PURE__ */ jsx29("span", { className: "mly-min-w-0 mly-truncate mly-text-left", children: name })
6737
+ return /* @__PURE__ */ jsxs13("div", { className: "mly:inline-grid mly:max-w-xs mly:grid-cols-[12px_1fr] mly:items-center mly:gap-1.5 mly:rounded-md mly:border mly:border-(--button-var-border-color) mly:px-2 mly:py-px mly:font-mono mly:text-xs", children: [
6738
+ /* @__PURE__ */ jsx29(Braces2, { className: "mly:h-3 mly:w-3 mly:shrink-0 mly:stroke-[2.5]" }),
6739
+ /* @__PURE__ */ jsx29("span", { className: "mly:min-w-0 mly:truncate mly:text-left", children: variableLabel })
6229
6740
  ] });
6230
6741
  }
6231
6742
  if (from === "bubble-variable") {
@@ -6233,12 +6744,12 @@ var DefaultRenderVariable = (props) => {
6233
6744
  "div",
6234
6745
  {
6235
6746
  className: cn(
6236
- "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",
6237
- !valid && "mly-border-rose-400 mly-bg-rose-50 mly-text-rose-600 hover:mly-bg-rose-100"
6747
+ "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",
6748
+ !valid && "mly:border-rose-400 mly:bg-rose-50 mly:text-rose-600 mly:hover:bg-rose-100"
6238
6749
  ),
6239
6750
  children: [
6240
- /* @__PURE__ */ jsx29(Braces2, { className: "mly-h-3 mly-w-3 mly-shrink-0 mly-stroke-[2.5] mly-text-rose-600" }),
6241
- /* @__PURE__ */ jsx29("span", { className: "mly-min-w-0 mly-truncate mly-text-left", children: name })
6751
+ /* @__PURE__ */ jsx29(Braces2, { className: "mly:h-3 mly:w-3 mly:shrink-0 mly:stroke-[2.5] mly:text-rose-600" }),
6752
+ /* @__PURE__ */ jsx29("span", { className: "mly:min-w-0 mly:truncate mly:text-left", children: variableLabel })
6242
6753
  ]
6243
6754
  }
6244
6755
  );
@@ -6247,11 +6758,11 @@ var DefaultRenderVariable = (props) => {
6247
6758
  "span",
6248
6759
  {
6249
6760
  tabIndex: -1,
6250
- 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",
6761
+ 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",
6251
6762
  children: [
6252
- /* @__PURE__ */ jsx29(Braces2, { className: "mly-size-[var(--variable-icon-size)] mly-shrink-0 mly-stroke-[2.5] mly-text-rose-600" }),
6253
- name,
6254
- required && !fallback && /* @__PURE__ */ jsx29(AlertTriangle, { className: "mly-size-[var(--variable-icon-size)] mly-shrink-0 mly-stroke-[2.5]" })
6763
+ /* @__PURE__ */ jsx29(Braces2, { className: "mly:size-[var(--variable-icon-size)] mly:shrink-0 mly:stroke-[2.5] mly:text-rose-600" }),
6764
+ variableLabel,
6765
+ required && !fallback && /* @__PURE__ */ jsx29(AlertTriangle, { className: "mly:size-[var(--variable-icon-size)] mly:shrink-0 mly:stroke-[2.5]" })
6255
6766
  ]
6256
6767
  }
6257
6768
  );
@@ -6425,7 +6936,7 @@ var VariableExtension = Node8.create({
6425
6936
  },
6426
6937
  addNodeView() {
6427
6938
  return ReactNodeViewRenderer3(VariableView, {
6428
- className: "mly-relative mly-inline-block",
6939
+ className: "mly:relative mly:inline-block",
6429
6940
  as: "div"
6430
6941
  });
6431
6942
  }
@@ -6468,9 +6979,9 @@ function LinkInputPopover(props) {
6468
6979
  variant: "ghost",
6469
6980
  size: "sm",
6470
6981
  type: "button",
6471
- className: "!mly-size-7",
6982
+ className: "mly:h-7! mly:w-7!",
6472
6983
  "data-state": !!defaultValue,
6473
- children: /* @__PURE__ */ jsx30(Icon, { className: "mly-h-3 mly-w-3 mly-shrink-0 mly-stroke-[2.5] mly-text-midnight-gray" })
6984
+ children: /* @__PURE__ */ jsx30(Icon, { className: "mly:h-3 mly:w-3 mly:shrink-0 mly:stroke-[2.5] mly:text-midnight-gray" })
6474
6985
  }
6475
6986
  ) });
6476
6987
  return /* @__PURE__ */ jsxs14(
@@ -6496,7 +7007,7 @@ function LinkInputPopover(props) {
6496
7007
  {
6497
7008
  align: "end",
6498
7009
  side: "top",
6499
- className: "mly-w-max mly-rounded-none mly-border-none mly-bg-transparent !mly-p-0 mly-shadow-none",
7010
+ className: "mly:w-max mly:rounded-none mly:border-none mly:bg-transparent mly:p-0! mly:shadow-none",
6500
7011
  sideOffset: 8,
6501
7012
  onCloseAutoFocus: (e) => e.preventDefault(),
6502
7013
  children: /* @__PURE__ */ jsx30(
@@ -6511,8 +7022,8 @@ function LinkInputPopover(props) {
6511
7022
  onValueChange == null ? void 0 : onValueChange(input.value);
6512
7023
  setIsOpen(false);
6513
7024
  },
6514
- children: /* @__PURE__ */ jsxs14("div", { className: "mly-isolate mly-flex mly-rounded-lg", children: [
6515
- !isEditing && /* @__PURE__ */ jsx30("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__ */ jsx30(
7025
+ children: /* @__PURE__ */ jsxs14("div", { className: "mly:isolate mly:flex mly:rounded-lg", children: [
7026
+ !isEditing && /* @__PURE__ */ jsx30("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__ */ jsx30(
6516
7027
  "button",
6517
7028
  {
6518
7029
  onClick: () => {
@@ -6533,8 +7044,8 @@ function LinkInputPopover(props) {
6533
7044
  })
6534
7045
  }
6535
7046
  ) }),
6536
- isEditing && /* @__PURE__ */ jsxs14("div", { className: "mly-relative", children: [
6537
- /* @__PURE__ */ jsx30("div", { className: "mly-absolute mly-inset-y-0 mly-left-1.5 mly-z-10 mly-flex mly-items-center", children: /* @__PURE__ */ jsx30(LinkIcon, { className: "mly-h-3 mly-w-3 mly-stroke-[2.5] mly-text-midnight-gray" }) }),
7047
+ isEditing && /* @__PURE__ */ jsxs14("div", { className: "mly:relative", children: [
7048
+ /* @__PURE__ */ jsx30("div", { className: "mly:absolute mly:inset-y-0 mly:left-1.5 mly:z-10 mly:flex mly:items-center", children: /* @__PURE__ */ jsx30(LinkIcon, { className: "mly:h-3 mly:w-3 mly:stroke-[2.5] mly:text-midnight-gray" }) }),
6538
7049
  /* @__PURE__ */ jsx30(
6539
7050
  InputAutocomplete,
6540
7051
  {
@@ -6546,7 +7057,7 @@ function LinkInputPopover(props) {
6546
7057
  autoCompleteOptions,
6547
7058
  ref: linkInputRef,
6548
7059
  placeholder: placeholderUrl,
6549
- 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",
7060
+ 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",
6550
7061
  triggerChar: variableTriggerCharacter,
6551
7062
  onSelectOption: (value) => {
6552
7063
  var _a2;
@@ -6587,16 +7098,16 @@ function Select(props) {
6587
7098
  placeholder
6588
7099
  } = props;
6589
7100
  const selectId = `mly${useId()}`;
6590
- const content = /* @__PURE__ */ jsxs15("div", { className: "mly-relative", children: [
6591
- /* @__PURE__ */ jsx31("label", { htmlFor: selectId, className: "mly-sr-only", children: label }),
6592
- Icon && /* @__PURE__ */ jsx31("div", { className: "mly-pointer-events-none mly-absolute mly-inset-y-0 mly-left-2 mly-z-20 mly-flex mly-items-center", children: /* @__PURE__ */ jsx31(Icon, { className: cn("mly-size-3", iconClassName) }) }),
7101
+ const content = /* @__PURE__ */ jsxs15("div", { className: "mly:relative", children: [
7102
+ /* @__PURE__ */ jsx31("label", { htmlFor: selectId, className: "mly:sr-only", children: label }),
7103
+ Icon && /* @__PURE__ */ jsx31("div", { className: "mly:pointer-events-none mly:absolute mly:inset-y-0 mly:left-2 mly:z-20 mly:flex mly:items-center", children: /* @__PURE__ */ jsx31(Icon, { className: cn("mly:size-3", iconClassName) }) }),
6593
7104
  /* @__PURE__ */ jsxs15(
6594
7105
  "select",
6595
7106
  {
6596
7107
  id: selectId,
6597
7108
  className: cn(
6598
- "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",
6599
- !!Icon && "mly-pl-7",
7109
+ "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",
7110
+ !!Icon && "mly:pl-7",
6600
7111
  className
6601
7112
  ),
6602
7113
  value: value || "",
@@ -6607,7 +7118,7 @@ function Select(props) {
6607
7118
  ]
6608
7119
  }
6609
7120
  ),
6610
- /* @__PURE__ */ jsx31("span", { className: "mly-pointer-events-none mly-absolute mly-inset-y-0 mly-right-0 mly-z-10 mly-flex mly-h-full mly-w-7 mly-items-center mly-justify-center mly-text-gray-600 peer-disabled:mly-opacity-50", children: /* @__PURE__ */ jsx31(
7121
+ /* @__PURE__ */ jsx31("span", { className: "mly:pointer-events-none mly:absolute mly:inset-y-0 mly:right-0 mly:z-10 mly:flex mly:h-full mly:w-7 mly:items-center mly:justify-center mly:text-gray-600 mly:peer-disabled:opacity-50", children: /* @__PURE__ */ jsx31(
6611
7122
  ChevronDownIcon,
6612
7123
  {
6613
7124
  size: 16,
@@ -6654,7 +7165,7 @@ function ButtonLabelInput(props) {
6654
7165
  editor
6655
7166
  }).map((variable) => variable.name);
6656
7167
  }, [variables, value, editor]);
6657
- return /* @__PURE__ */ jsxs16("div", { className: "mly-isolate mly-flex mly-rounded-lg", children: [
7168
+ return /* @__PURE__ */ jsxs16("div", { className: "mly:isolate mly:flex mly:rounded-lg", children: [
6658
7169
  !isEditing && /* @__PURE__ */ jsx32(
6659
7170
  "button",
6660
7171
  {
@@ -6687,7 +7198,7 @@ function ButtonLabelInput(props) {
6687
7198
  autoCompleteOptions,
6688
7199
  ref: linkInputRef,
6689
7200
  placeholder: placeholderUrl,
6690
- 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",
7201
+ 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",
6691
7202
  triggerChar: variableTriggerCharacter,
6692
7203
  onSelectOption: (value2) => {
6693
7204
  var _a2;
@@ -6761,12 +7272,12 @@ function ButtonView(props) {
6761
7272
  "button",
6762
7273
  {
6763
7274
  className: cn(
6764
- "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",
6765
- "mly-font-semibold mly-no-underline",
7275
+ "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",
7276
+ "mly:font-semibold mly:no-underline",
6766
7277
  {
6767
- "!mly-rounded-full": _radius === "round",
6768
- "!mly-rounded-md": _radius === "smooth",
6769
- "!mly-rounded-none": _radius === "sharp"
7278
+ "mly:rounded-full!": _radius === "round",
7279
+ "mly:rounded-md!": _radius === "smooth",
7280
+ "mly:rounded-none!": _radius === "sharp"
6770
7281
  }
6771
7282
  ),
6772
7283
  tabIndex: -1,
@@ -6805,11 +7316,11 @@ function ButtonView(props) {
6805
7316
  {
6806
7317
  align: "end",
6807
7318
  side: "top",
6808
- className: "mly-w-max mly-rounded-lg !mly-p-0.5",
7319
+ className: "mly:w-max mly:rounded-lg mly:p-0.5!",
6809
7320
  sideOffset: 8,
6810
7321
  onOpenAutoFocus: (e) => e.preventDefault(),
6811
7322
  onCloseAutoFocus: (e) => e.preventDefault(),
6812
- children: /* @__PURE__ */ jsx33(TooltipProvider, { children: /* @__PURE__ */ jsxs17("div", { className: "mly-flex mly-items-stretch mly-text-midnight-gray", children: [
7323
+ children: /* @__PURE__ */ jsx33(TooltipProvider, { children: /* @__PURE__ */ jsxs17("div", { className: "mly:flex mly:items-stretch mly:text-midnight-gray", children: [
6813
7324
  /* @__PURE__ */ jsx33(
6814
7325
  ButtonLabelInput,
6815
7326
  {
@@ -6825,7 +7336,7 @@ function ButtonView(props) {
6825
7336
  }
6826
7337
  ),
6827
7338
  /* @__PURE__ */ jsx33(Divider, {}),
6828
- /* @__PURE__ */ jsxs17("div", { className: "mly-flex mly-space-x-0.5", children: [
7339
+ /* @__PURE__ */ jsxs17("div", { className: "mly:flex mly:gap-x-0.5", children: [
6829
7340
  /* @__PURE__ */ jsx33(
6830
7341
  Select,
6831
7342
  {
@@ -6841,7 +7352,7 @@ function ButtonView(props) {
6841
7352
  });
6842
7353
  },
6843
7354
  tooltip: "Border Radius",
6844
- className: "mly-capitalize"
7355
+ className: "mly:capitalize"
6845
7356
  }
6846
7357
  ),
6847
7358
  /* @__PURE__ */ jsx33(
@@ -6859,7 +7370,7 @@ function ButtonView(props) {
6859
7370
  });
6860
7371
  },
6861
7372
  tooltip: "Style",
6862
- className: "mly-capitalize"
7373
+ className: "mly:capitalize"
6863
7374
  }
6864
7375
  ),
6865
7376
  /* @__PURE__ */ jsx33(
@@ -6887,7 +7398,7 @@ function ButtonView(props) {
6887
7398
  )
6888
7399
  ] }),
6889
7400
  /* @__PURE__ */ jsx33(Divider, {}),
6890
- /* @__PURE__ */ jsxs17("div", { className: "mly-flex mly-space-x-0.5", children: [
7401
+ /* @__PURE__ */ jsxs17("div", { className: "mly:flex mly:gap-x-0.5", children: [
6891
7402
  /* @__PURE__ */ jsx33(
6892
7403
  AlignmentSwitch,
6893
7404
  {
@@ -6916,7 +7427,7 @@ function ButtonView(props) {
6916
7427
  )
6917
7428
  ] }),
6918
7429
  /* @__PURE__ */ jsx33(Divider, {}),
6919
- /* @__PURE__ */ jsxs17("div", { className: "mly-flex mly-space-x-0.5", children: [
7430
+ /* @__PURE__ */ jsxs17("div", { className: "mly:flex mly:gap-x-0.5", children: [
6920
7431
  /* @__PURE__ */ jsx33(
6921
7432
  BackgroundColorPickerPopup,
6922
7433
  {
@@ -6975,11 +7486,11 @@ function BackgroundColorPickerPopup(props) {
6975
7486
  variant: "ghost",
6976
7487
  size: "sm",
6977
7488
  type: "button",
6978
- className: "mly-size-7",
7489
+ className: "mly:size-7",
6979
7490
  children: /* @__PURE__ */ jsx33(
6980
7491
  "div",
6981
7492
  {
6982
- className: "mly-h-4 mly-w-4 mly-shrink-0 mly-rounded-full mly-shadow",
7493
+ className: "mly:h-4 mly:w-4 mly:shrink-0 mly:rounded-full mly:shadow",
6983
7494
  style: {
6984
7495
  backgroundColor: variant === "filled" ? color : "transparent",
6985
7496
  borderStyle: "solid",
@@ -7001,13 +7512,13 @@ function TextColorPickerPopup(props) {
7001
7512
  variant: "ghost",
7002
7513
  size: "sm",
7003
7514
  type: "button",
7004
- className: "mly-size-7",
7005
- children: /* @__PURE__ */ jsxs17("div", { className: "mly-flex mly-flex-col mly-items-center mly-justify-center mly-gap-[1px]", children: [
7006
- /* @__PURE__ */ jsx33("span", { className: "mly-font-bolder mly-font-mono mly-text-xs mly-text-midnight-gray", children: "A" }),
7515
+ className: "mly:size-7",
7516
+ children: /* @__PURE__ */ jsxs17("div", { className: "mly:flex mly:flex-col mly:items-center mly:justify-center mly:gap-px", children: [
7517
+ /* @__PURE__ */ jsx33("span", { className: "mly:font-bolder mly:font-mono mly:text-xs mly:text-midnight-gray", children: "A" }),
7007
7518
  /* @__PURE__ */ jsx33(
7008
7519
  "div",
7009
7520
  {
7010
- className: "mly-h-[2px] mly-w-3 mly-shrink-0 mly-rounded-md mly-shadow",
7521
+ className: "mly:h-[2px] mly:w-3 mly:shrink-0 mly:rounded-md mly:shadow",
7011
7522
  style: { backgroundColor: color }
7012
7523
  }
7013
7524
  )
@@ -7173,7 +7684,7 @@ var ButtonExtension = Node9.create({
7173
7684
  addNodeView() {
7174
7685
  return ReactNodeViewRenderer4(ButtonView, {
7175
7686
  contentDOMElementTag: "div",
7176
- className: "mly-relative"
7687
+ className: "mly:relative"
7177
7688
  });
7178
7689
  }
7179
7690
  });
@@ -7319,7 +7830,7 @@ var ImageExtension = TiptapImage2.extend({
7319
7830
  },
7320
7831
  addNodeView() {
7321
7832
  return ReactNodeViewRenderer5(ImageView, {
7322
- className: "mly-relative"
7833
+ className: "mly:relative"
7323
7834
  });
7324
7835
  }
7325
7836
  });
@@ -7409,7 +7920,7 @@ function RepeatView(props) {
7409
7920
  "data-type": "repeat",
7410
7921
  draggable: editor.isEditable,
7411
7922
  "data-drag-handle": editor.isEditable,
7412
- className: "mly-relative",
7923
+ className: "mly:relative",
7413
7924
  children: [
7414
7925
  /* @__PURE__ */ jsx34(NodeViewContent, { className: "is-editable" }),
7415
7926
  /* @__PURE__ */ jsxs18(
@@ -7417,14 +7928,14 @@ function RepeatView(props) {
7417
7928
  {
7418
7929
  role: "button",
7419
7930
  "data-repeat-indicator": "",
7420
- 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",
7931
+ 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",
7421
7932
  contentEditable: false,
7422
7933
  onClick: () => {
7423
7934
  editor.commands.setNodeSelection(getPos());
7424
7935
  },
7425
7936
  children: [
7426
- /* @__PURE__ */ jsx34(Repeat22, { className: "mly-size-3 mly-stroke-[2.5] mly-text-midnight-gray" }),
7427
- /* @__PURE__ */ jsx34("div", { className: "mly-w-[1.5px] mly-grow mly-rounded-full mly-bg-rose-300" })
7937
+ /* @__PURE__ */ jsx34(Repeat22, { className: "mly:size-3 mly:stroke-[2.5] mly:text-midnight-gray" }),
7938
+ /* @__PURE__ */ jsx34("div", { className: "mly:w-[1.5px] mly:grow mly:rounded-full mly:bg-rose-300" })
7428
7939
  ]
7429
7940
  }
7430
7941
  )
@@ -7510,7 +8021,7 @@ var RepeatExtension = Node10.create({
7510
8021
  addNodeView() {
7511
8022
  return ReactNodeViewRenderer6(RepeatView, {
7512
8023
  contentDOMElementTag: "div",
7513
- className: "mly-relative"
8024
+ className: "mly:relative"
7514
8025
  });
7515
8026
  }
7516
8027
  });
@@ -7524,7 +8035,7 @@ var MailyKit = Extension2.create({
7524
8035
  HTMLAttributes: {
7525
8036
  target: "_blank",
7526
8037
  rel: "noopener noreferrer nofollow",
7527
- class: "mly-no-underline"
8038
+ class: "mly:no-underline"
7528
8039
  },
7529
8040
  openOnClick: false
7530
8041
  }
@@ -7538,22 +8049,22 @@ var MailyKit = Extension2.create({
7538
8049
  StarterKit.configure({
7539
8050
  code: {
7540
8051
  HTMLAttributes: {
7541
- 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"
8052
+ 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"
7542
8053
  }
7543
8054
  },
7544
8055
  blockquote: {
7545
8056
  HTMLAttributes: {
7546
- class: "mly-not-prose mly-border-l-4 mly-border-gray-300 mly-pl-4 mly-mt-4 mly-mb-4 mly-relative"
8057
+ class: "mly:not-prose mly:border-l-4 mly:border-gray-300 mly:pl-4 mly:mt-4 mly:mb-4 mly:relative"
7547
8058
  }
7548
8059
  },
7549
8060
  bulletList: {
7550
8061
  HTMLAttributes: {
7551
- class: "mly-relative"
8062
+ class: "mly:relative"
7552
8063
  }
7553
8064
  },
7554
8065
  orderedList: {
7555
8066
  HTMLAttributes: {
7556
- class: "mly-relative"
8067
+ class: "mly:relative"
7557
8068
  }
7558
8069
  },
7559
8070
  heading: false,
@@ -7579,12 +8090,12 @@ var MailyKit = Extension2.create({
7579
8090
  HeadingExtension.configure({
7580
8091
  levels: [1, 2, 3],
7581
8092
  HTMLAttributes: {
7582
- class: "mly-relative"
8093
+ class: "mly:relative"
7583
8094
  }
7584
8095
  }),
7585
8096
  ParagraphExtension.configure({
7586
8097
  HTMLAttributes: {
7587
- class: "mly-relative"
8098
+ class: "mly:relative"
7588
8099
  }
7589
8100
  })
7590
8101
  ];
@@ -7705,12 +8216,12 @@ function SlashCommandItem(props) {
7705
8216
  const hasRenderFunction = typeof item.render === "function";
7706
8217
  const renderFunctionValue = hasRenderFunction ? (_a = item.render) == null ? void 0 : _a.call(item, editor) : null;
7707
8218
  let value = /* @__PURE__ */ jsxs19(Fragment4, { children: [
7708
- /* @__PURE__ */ jsx35("div", { className: "mly-flex mly-h-6 mly-w-6 mly-shrink-0 mly-items-center mly-justify-center", children: item.icon }),
7709
- /* @__PURE__ */ jsxs19("div", { className: "mly-grow", children: [
7710
- /* @__PURE__ */ jsx35("p", { className: "mly-font-medium", children: item.title }),
7711
- /* @__PURE__ */ jsx35("p", { className: "mly-text-xs mly-text-gray-400", children: item.description })
8219
+ /* @__PURE__ */ jsx35("div", { className: "mly:flex mly:h-6 mly:w-6 mly:shrink-0 mly:items-center mly:justify-center", children: item.icon }),
8220
+ /* @__PURE__ */ jsxs19("div", { className: "mly:grow", children: [
8221
+ /* @__PURE__ */ jsx35("p", { className: "mly:font-medium", children: item.title }),
8222
+ /* @__PURE__ */ jsx35("p", { className: "mly:text-xs mly:text-gray-400", children: item.description })
7712
8223
  ] }),
7713
- isSubCommand2 && /* @__PURE__ */ jsx35("span", { className: "mly-block mly-px-1 mly-text-gray-400", children: /* @__PURE__ */ jsx35(ChevronRightIcon, { className: "mly-size-3.5 mly-stroke-[2.5]" }) })
8224
+ isSubCommand2 && /* @__PURE__ */ jsx35("span", { className: "mly:block mly:px-1 mly:text-gray-400", children: /* @__PURE__ */ jsx35(ChevronRightIcon, { className: "mly:size-3.5 mly:stroke-[2.5]" }) })
7714
8225
  ] });
7715
8226
  if (renderFunctionValue !== null && renderFunctionValue !== true) {
7716
8227
  value = renderFunctionValue;
@@ -7746,8 +8257,8 @@ function SlashCommandItem(props) {
7746
8257
  "button",
7747
8258
  {
7748
8259
  className: cn(
7749
- "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",
7750
- isActive ? "mly-bg-gray-100 mly-text-gray-900" : "mly-bg-transparent"
8260
+ "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",
8261
+ isActive ? "mly:bg-gray-100 mly:text-gray-900" : "mly:bg-transparent"
7751
8262
  ),
7752
8263
  onClick: () => selectItem(groupIndex, commandIndex),
7753
8264
  onMouseEnter: () => onHover(true),
@@ -7762,17 +8273,17 @@ function SlashCommandItem(props) {
7762
8273
  {
7763
8274
  side: "right",
7764
8275
  sideOffset: 10,
7765
- className: "mly-w-52 mly-rounded-lg mly-border-none mly-p-1 mly-shadow",
8276
+ className: "mly:w-52 mly:rounded-lg mly:border-none mly:p-1 mly:shadow",
7766
8277
  children: typeof item.preview === "function" ? item == null ? void 0 : item.preview(editor) : /* @__PURE__ */ jsxs19(Fragment4, { children: [
7767
- /* @__PURE__ */ jsx35("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__ */ jsx35(
8278
+ /* @__PURE__ */ jsx35("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__ */ jsx35(
7768
8279
  "img",
7769
8280
  {
7770
8281
  src: item == null ? void 0 : item.preview,
7771
8282
  alt: item == null ? void 0 : item.title,
7772
- className: "mly-absolute mly-inset-0 mly-h-full mly-w-full mly-object-cover"
8283
+ className: "mly:absolute mly:inset-0 mly:h-full mly:w-full mly:object-cover"
7773
8284
  }
7774
8285
  ) }),
7775
- /* @__PURE__ */ jsx35("p", { className: "mly-mt-2 mly-px-0.5 mly-text-gray-500", children: item.description })
8286
+ /* @__PURE__ */ jsx35("p", { className: "mly:mt-2 mly:px-0.5 mly:text-gray-500", children: item.description })
7776
8287
  ] })
7777
8288
  }
7778
8289
  )
@@ -7999,25 +8510,25 @@ var CommandList = forwardRef8((props, ref) => {
7999
8510
  if (!groups || groups.length === 0) {
8000
8511
  return null;
8001
8512
  }
8002
- return /* @__PURE__ */ jsx36(TooltipProvider, { children: /* @__PURE__ */ jsxs20("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: [
8513
+ return /* @__PURE__ */ jsx36(TooltipProvider, { children: /* @__PURE__ */ jsxs20("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: [
8003
8514
  /* @__PURE__ */ jsx36(
8004
8515
  "div",
8005
8516
  {
8006
8517
  id: "slash-command",
8007
8518
  ref: commandListContainer,
8008
- className: "mly-no-scrollbar mly-h-auto mly-max-h-[330px] mly-overflow-y-auto",
8519
+ className: "mly:no-scrollbar mly:h-auto mly:max-h-[330px] mly:overflow-y-auto",
8009
8520
  children: groups.map((group, groupIndex) => /* @__PURE__ */ jsxs20(Fragment5, { children: [
8010
8521
  /* @__PURE__ */ jsx36(
8011
8522
  "span",
8012
8523
  {
8013
8524
  className: cn(
8014
- "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",
8015
- groupIndex > 0 ? "mly-border-t" : ""
8525
+ "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",
8526
+ groupIndex > 0 ? "mly:border-t" : ""
8016
8527
  ),
8017
8528
  children: group.title
8018
8529
  }
8019
8530
  ),
8020
- /* @__PURE__ */ jsx36("div", { className: "mly-space-y-0.5 mly-p-1", children: group.commands.map((item, commandIndex) => {
8531
+ /* @__PURE__ */ jsx36("div", { className: "mly:space-y-0.5 mly:p-1", children: group.commands.map((item, commandIndex) => {
8021
8532
  const itemKey = `${groupIndex}-${commandIndex}`;
8022
8533
  return /* @__PURE__ */ jsx36(
8023
8534
  SlashCommandItem,
@@ -8039,16 +8550,16 @@ var CommandList = forwardRef8((props, ref) => {
8039
8550
  ] }, groupIndex))
8040
8551
  }
8041
8552
  ),
8042
- /* @__PURE__ */ jsx36("div", { className: "mly-border-t mly-border-gray-200 mly-px-1 mly-py-3 mly-pl-4", children: /* @__PURE__ */ jsxs20("div", { className: "mly-flex mly-items-center", children: [
8043
- /* @__PURE__ */ jsxs20("p", { className: "mly-text-center mly-text-xs mly-text-gray-400", children: [
8044
- /* @__PURE__ */ jsx36("kbd", { className: "mly-rounded mly-border mly-border-gray-200 mly-p-1 mly-px-2 mly-font-medium", children: "\u2191" }),
8045
- /* @__PURE__ */ jsx36("kbd", { className: "mly-ml-1 mly-rounded mly-border mly-border-gray-200 mly-p-1 mly-px-2 mly-font-medium", children: "\u2193" }),
8553
+ /* @__PURE__ */ jsx36("div", { className: "mly:border-t mly:border-gray-200 mly:px-1 mly:py-3 mly:pl-4", children: /* @__PURE__ */ jsxs20("div", { className: "mly:flex mly:items-center", children: [
8554
+ /* @__PURE__ */ jsxs20("p", { className: "mly:text-center mly:text-xs mly:text-gray-400", children: [
8555
+ /* @__PURE__ */ jsx36("kbd", { className: "mly:rounded mly:border mly:border-gray-200 mly:p-1 mly:px-2 mly:font-medium", children: "\u2191" }),
8556
+ /* @__PURE__ */ jsx36("kbd", { className: "mly:ml-1 mly:rounded mly:border mly:border-gray-200 mly:p-1 mly:px-2 mly:font-medium", children: "\u2193" }),
8046
8557
  " ",
8047
8558
  "to navigate"
8048
8559
  ] }),
8049
- /* @__PURE__ */ jsx36("span", { "aria-hidden": "true", className: "mly-select-none mly-px-1", children: "\xB7" }),
8050
- /* @__PURE__ */ jsxs20("p", { className: "mly-text-center mly-text-xs mly-text-gray-400", children: [
8051
- /* @__PURE__ */ jsx36("kbd", { className: "mly-rounded mly-border mly-border-gray-200 mly-p-1 mly-px-1.5 mly-font-medium", children: "Enter" }),
8560
+ /* @__PURE__ */ jsx36("span", { "aria-hidden": "true", className: "mly:select-none mly:px-1", children: "\xB7" }),
8561
+ /* @__PURE__ */ jsxs20("p", { className: "mly:text-center mly:text-xs mly:text-gray-400", children: [
8562
+ /* @__PURE__ */ jsx36("kbd", { className: "mly:rounded mly:border mly:border-gray-200 mly:p-1 mly:px-1.5 mly:font-medium", children: "Enter" }),
8052
8563
  " ",
8053
8564
  "to select"
8054
8565
  ] })
@@ -8166,7 +8677,8 @@ var VariableList = forwardRef9((props, ref) => {
8166
8677
  props.command({
8167
8678
  id: value.name,
8168
8679
  required: (_a2 = value.required) != null ? _a2 : true,
8169
- hideDefaultValue: (_b = value == null ? void 0 : value.hideDefaultValue) != null ? _b : false
8680
+ hideDefaultValue: (_b = value == null ? void 0 : value.hideDefaultValue) != null ? _b : false,
8681
+ label: value == null ? void 0 : value.label
8170
8682
  });
8171
8683
  },
8172
8684
  ref: popoverRef
@@ -8282,7 +8794,7 @@ function HTMLCodeBlockView(props) {
8282
8794
  "data-drag-handle": false,
8283
8795
  "data-type": "htmlCodeBlock",
8284
8796
  children: [
8285
- activeTab === "code" && /* @__PURE__ */ jsx38("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__ */ jsx38(
8797
+ activeTab === "code" && /* @__PURE__ */ jsx38("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__ */ jsx38(
8286
8798
  NodeViewContent2,
8287
8799
  {
8288
8800
  as: "code",
@@ -8293,8 +8805,8 @@ function HTMLCodeBlockView(props) {
8293
8805
  "div",
8294
8806
  {
8295
8807
  className: cn(
8296
- "mly-not-prose mly-rounded-lg mly-border mly-border-gray-200 mly-p-2",
8297
- isEmpty && "mly-min-h-[42px]"
8808
+ "mly:not-prose mly:rounded-lg mly:border mly:border-gray-200 mly:p-2",
8809
+ isEmpty && "mly:min-h-[42px]"
8298
8810
  ),
8299
8811
  ref: (node2) => {
8300
8812
  if (!node2 || (node2 == null ? void 0 : node2.shadowRoot)) {
@@ -8358,7 +8870,7 @@ var HTMLCodeBlockExtension = CodeBlockLowlight.extend({
8358
8870
  },
8359
8871
  addNodeView() {
8360
8872
  return ReactNodeViewRenderer7(HTMLCodeBlockView, {
8361
- className: "mly-relative",
8873
+ className: "mly:relative",
8362
8874
  attrs: ({ node }) => {
8363
8875
  var _a;
8364
8876
  return {