@daisychainapp/maily-to-core 0.2.12 → 0.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/blocks/index.cjs +21 -21
- package/dist/blocks/index.cjs.map +1 -1
- package/dist/blocks/index.mjs +21 -21
- package/dist/blocks/index.mjs.map +1 -1
- package/dist/extensions/index.cjs +3331 -372
- package/dist/extensions/index.cjs.map +1 -1
- package/dist/extensions/index.d.cts +18 -6
- package/dist/extensions/index.d.ts +18 -6
- package/dist/extensions/index.mjs +3336 -377
- package/dist/extensions/index.mjs.map +1 -1
- package/dist/index.cjs +3554 -552
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +2422 -2293
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.mjs +3544 -542
- package/dist/index.mjs.map +1 -1
- package/package.json +7 -4
- package/readme.md +12 -5
|
@@ -84,7 +84,7 @@ var HorizontalRule = TipTapHorizontalRule.extend({
|
|
|
84
84
|
addOptions() {
|
|
85
85
|
return {
|
|
86
86
|
HTMLAttributes: {
|
|
87
|
-
class: "mly
|
|
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
|
|
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
|
|
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
|
|
588
|
+
class: "mly:w-full"
|
|
589
589
|
},
|
|
590
590
|
[
|
|
591
591
|
"tr",
|
|
592
592
|
{
|
|
593
|
-
class: "mly
|
|
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
|
|
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
|
|
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
|
}
|
|
@@ -704,9 +704,3010 @@ import * as React from "react";
|
|
|
704
704
|
|
|
705
705
|
// src/editor/utils/classname.ts
|
|
706
706
|
import { clsx } from "clsx";
|
|
707
|
-
|
|
707
|
+
|
|
708
|
+
// ../../node_modules/.pnpm/tailwind-merge@3.3.0/node_modules/tailwind-merge/dist/bundle-mjs.mjs
|
|
709
|
+
var CLASS_PART_SEPARATOR = "-";
|
|
710
|
+
var createClassGroupUtils = (config) => {
|
|
711
|
+
const classMap = createClassMap(config);
|
|
712
|
+
const {
|
|
713
|
+
conflictingClassGroups,
|
|
714
|
+
conflictingClassGroupModifiers
|
|
715
|
+
} = config;
|
|
716
|
+
const getClassGroupId = (className) => {
|
|
717
|
+
const classParts = className.split(CLASS_PART_SEPARATOR);
|
|
718
|
+
if (classParts[0] === "" && classParts.length !== 1) {
|
|
719
|
+
classParts.shift();
|
|
720
|
+
}
|
|
721
|
+
return getGroupRecursive(classParts, classMap) || getGroupIdForArbitraryProperty(className);
|
|
722
|
+
};
|
|
723
|
+
const getConflictingClassGroupIds = (classGroupId, hasPostfixModifier) => {
|
|
724
|
+
const conflicts = conflictingClassGroups[classGroupId] || [];
|
|
725
|
+
if (hasPostfixModifier && conflictingClassGroupModifiers[classGroupId]) {
|
|
726
|
+
return [...conflicts, ...conflictingClassGroupModifiers[classGroupId]];
|
|
727
|
+
}
|
|
728
|
+
return conflicts;
|
|
729
|
+
};
|
|
730
|
+
return {
|
|
731
|
+
getClassGroupId,
|
|
732
|
+
getConflictingClassGroupIds
|
|
733
|
+
};
|
|
734
|
+
};
|
|
735
|
+
var getGroupRecursive = (classParts, classPartObject) => {
|
|
736
|
+
var _a;
|
|
737
|
+
if (classParts.length === 0) {
|
|
738
|
+
return classPartObject.classGroupId;
|
|
739
|
+
}
|
|
740
|
+
const currentClassPart = classParts[0];
|
|
741
|
+
const nextClassPartObject = classPartObject.nextPart.get(currentClassPart);
|
|
742
|
+
const classGroupFromNextClassPart = nextClassPartObject ? getGroupRecursive(classParts.slice(1), nextClassPartObject) : void 0;
|
|
743
|
+
if (classGroupFromNextClassPart) {
|
|
744
|
+
return classGroupFromNextClassPart;
|
|
745
|
+
}
|
|
746
|
+
if (classPartObject.validators.length === 0) {
|
|
747
|
+
return void 0;
|
|
748
|
+
}
|
|
749
|
+
const classRest = classParts.join(CLASS_PART_SEPARATOR);
|
|
750
|
+
return (_a = classPartObject.validators.find(({
|
|
751
|
+
validator
|
|
752
|
+
}) => validator(classRest))) == null ? void 0 : _a.classGroupId;
|
|
753
|
+
};
|
|
754
|
+
var arbitraryPropertyRegex = /^\[(.+)\]$/;
|
|
755
|
+
var getGroupIdForArbitraryProperty = (className) => {
|
|
756
|
+
if (arbitraryPropertyRegex.test(className)) {
|
|
757
|
+
const arbitraryPropertyClassName = arbitraryPropertyRegex.exec(className)[1];
|
|
758
|
+
const property = arbitraryPropertyClassName == null ? void 0 : arbitraryPropertyClassName.substring(0, arbitraryPropertyClassName.indexOf(":"));
|
|
759
|
+
if (property) {
|
|
760
|
+
return "arbitrary.." + property;
|
|
761
|
+
}
|
|
762
|
+
}
|
|
763
|
+
};
|
|
764
|
+
var createClassMap = (config) => {
|
|
765
|
+
const {
|
|
766
|
+
theme,
|
|
767
|
+
classGroups
|
|
768
|
+
} = config;
|
|
769
|
+
const classMap = {
|
|
770
|
+
nextPart: /* @__PURE__ */ new Map(),
|
|
771
|
+
validators: []
|
|
772
|
+
};
|
|
773
|
+
for (const classGroupId in classGroups) {
|
|
774
|
+
processClassesRecursively(classGroups[classGroupId], classMap, classGroupId, theme);
|
|
775
|
+
}
|
|
776
|
+
return classMap;
|
|
777
|
+
};
|
|
778
|
+
var processClassesRecursively = (classGroup, classPartObject, classGroupId, theme) => {
|
|
779
|
+
classGroup.forEach((classDefinition) => {
|
|
780
|
+
if (typeof classDefinition === "string") {
|
|
781
|
+
const classPartObjectToEdit = classDefinition === "" ? classPartObject : getPart(classPartObject, classDefinition);
|
|
782
|
+
classPartObjectToEdit.classGroupId = classGroupId;
|
|
783
|
+
return;
|
|
784
|
+
}
|
|
785
|
+
if (typeof classDefinition === "function") {
|
|
786
|
+
if (isThemeGetter(classDefinition)) {
|
|
787
|
+
processClassesRecursively(classDefinition(theme), classPartObject, classGroupId, theme);
|
|
788
|
+
return;
|
|
789
|
+
}
|
|
790
|
+
classPartObject.validators.push({
|
|
791
|
+
validator: classDefinition,
|
|
792
|
+
classGroupId
|
|
793
|
+
});
|
|
794
|
+
return;
|
|
795
|
+
}
|
|
796
|
+
Object.entries(classDefinition).forEach(([key, classGroup2]) => {
|
|
797
|
+
processClassesRecursively(classGroup2, getPart(classPartObject, key), classGroupId, theme);
|
|
798
|
+
});
|
|
799
|
+
});
|
|
800
|
+
};
|
|
801
|
+
var getPart = (classPartObject, path) => {
|
|
802
|
+
let currentClassPartObject = classPartObject;
|
|
803
|
+
path.split(CLASS_PART_SEPARATOR).forEach((pathPart) => {
|
|
804
|
+
if (!currentClassPartObject.nextPart.has(pathPart)) {
|
|
805
|
+
currentClassPartObject.nextPart.set(pathPart, {
|
|
806
|
+
nextPart: /* @__PURE__ */ new Map(),
|
|
807
|
+
validators: []
|
|
808
|
+
});
|
|
809
|
+
}
|
|
810
|
+
currentClassPartObject = currentClassPartObject.nextPart.get(pathPart);
|
|
811
|
+
});
|
|
812
|
+
return currentClassPartObject;
|
|
813
|
+
};
|
|
814
|
+
var isThemeGetter = (func) => func.isThemeGetter;
|
|
815
|
+
var createLruCache = (maxCacheSize) => {
|
|
816
|
+
if (maxCacheSize < 1) {
|
|
817
|
+
return {
|
|
818
|
+
get: () => void 0,
|
|
819
|
+
set: () => {
|
|
820
|
+
}
|
|
821
|
+
};
|
|
822
|
+
}
|
|
823
|
+
let cacheSize = 0;
|
|
824
|
+
let cache = /* @__PURE__ */ new Map();
|
|
825
|
+
let previousCache = /* @__PURE__ */ new Map();
|
|
826
|
+
const update = (key, value) => {
|
|
827
|
+
cache.set(key, value);
|
|
828
|
+
cacheSize++;
|
|
829
|
+
if (cacheSize > maxCacheSize) {
|
|
830
|
+
cacheSize = 0;
|
|
831
|
+
previousCache = cache;
|
|
832
|
+
cache = /* @__PURE__ */ new Map();
|
|
833
|
+
}
|
|
834
|
+
};
|
|
835
|
+
return {
|
|
836
|
+
get(key) {
|
|
837
|
+
let value = cache.get(key);
|
|
838
|
+
if (value !== void 0) {
|
|
839
|
+
return value;
|
|
840
|
+
}
|
|
841
|
+
if ((value = previousCache.get(key)) !== void 0) {
|
|
842
|
+
update(key, value);
|
|
843
|
+
return value;
|
|
844
|
+
}
|
|
845
|
+
},
|
|
846
|
+
set(key, value) {
|
|
847
|
+
if (cache.has(key)) {
|
|
848
|
+
cache.set(key, value);
|
|
849
|
+
} else {
|
|
850
|
+
update(key, value);
|
|
851
|
+
}
|
|
852
|
+
}
|
|
853
|
+
};
|
|
854
|
+
};
|
|
855
|
+
var IMPORTANT_MODIFIER = "!";
|
|
856
|
+
var MODIFIER_SEPARATOR = ":";
|
|
857
|
+
var MODIFIER_SEPARATOR_LENGTH = MODIFIER_SEPARATOR.length;
|
|
858
|
+
var createParseClassName = (config) => {
|
|
859
|
+
const {
|
|
860
|
+
prefix,
|
|
861
|
+
experimentalParseClassName
|
|
862
|
+
} = config;
|
|
863
|
+
let parseClassName = (className) => {
|
|
864
|
+
const modifiers = [];
|
|
865
|
+
let bracketDepth = 0;
|
|
866
|
+
let parenDepth = 0;
|
|
867
|
+
let modifierStart = 0;
|
|
868
|
+
let postfixModifierPosition;
|
|
869
|
+
for (let index = 0; index < className.length; index++) {
|
|
870
|
+
let currentCharacter = className[index];
|
|
871
|
+
if (bracketDepth === 0 && parenDepth === 0) {
|
|
872
|
+
if (currentCharacter === MODIFIER_SEPARATOR) {
|
|
873
|
+
modifiers.push(className.slice(modifierStart, index));
|
|
874
|
+
modifierStart = index + MODIFIER_SEPARATOR_LENGTH;
|
|
875
|
+
continue;
|
|
876
|
+
}
|
|
877
|
+
if (currentCharacter === "/") {
|
|
878
|
+
postfixModifierPosition = index;
|
|
879
|
+
continue;
|
|
880
|
+
}
|
|
881
|
+
}
|
|
882
|
+
if (currentCharacter === "[") {
|
|
883
|
+
bracketDepth++;
|
|
884
|
+
} else if (currentCharacter === "]") {
|
|
885
|
+
bracketDepth--;
|
|
886
|
+
} else if (currentCharacter === "(") {
|
|
887
|
+
parenDepth++;
|
|
888
|
+
} else if (currentCharacter === ")") {
|
|
889
|
+
parenDepth--;
|
|
890
|
+
}
|
|
891
|
+
}
|
|
892
|
+
const baseClassNameWithImportantModifier = modifiers.length === 0 ? className : className.substring(modifierStart);
|
|
893
|
+
const baseClassName = stripImportantModifier(baseClassNameWithImportantModifier);
|
|
894
|
+
const hasImportantModifier = baseClassName !== baseClassNameWithImportantModifier;
|
|
895
|
+
const maybePostfixModifierPosition = postfixModifierPosition && postfixModifierPosition > modifierStart ? postfixModifierPosition - modifierStart : void 0;
|
|
896
|
+
return {
|
|
897
|
+
modifiers,
|
|
898
|
+
hasImportantModifier,
|
|
899
|
+
baseClassName,
|
|
900
|
+
maybePostfixModifierPosition
|
|
901
|
+
};
|
|
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
|
+
}
|
|
914
|
+
if (experimentalParseClassName) {
|
|
915
|
+
const parseClassNameOriginal = parseClassName;
|
|
916
|
+
parseClassName = (className) => experimentalParseClassName({
|
|
917
|
+
className,
|
|
918
|
+
parseClassName: parseClassNameOriginal
|
|
919
|
+
});
|
|
920
|
+
}
|
|
921
|
+
return parseClassName;
|
|
922
|
+
};
|
|
923
|
+
var stripImportantModifier = (baseClassName) => {
|
|
924
|
+
if (baseClassName.endsWith(IMPORTANT_MODIFIER)) {
|
|
925
|
+
return baseClassName.substring(0, baseClassName.length - 1);
|
|
926
|
+
}
|
|
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;
|
|
937
|
+
}
|
|
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;
|
|
953
|
+
};
|
|
954
|
+
var createConfigUtils = (config) => __spreadValues({
|
|
955
|
+
cache: createLruCache(config.cacheSize),
|
|
956
|
+
parseClassName: createParseClassName(config),
|
|
957
|
+
sortModifiers: createSortModifiers(config)
|
|
958
|
+
}, createClassGroupUtils(config));
|
|
959
|
+
var SPLIT_CLASSES_REGEX = /\s+/;
|
|
960
|
+
var mergeClassList = (classList, configUtils) => {
|
|
961
|
+
const {
|
|
962
|
+
parseClassName,
|
|
963
|
+
getClassGroupId,
|
|
964
|
+
getConflictingClassGroupIds,
|
|
965
|
+
sortModifiers
|
|
966
|
+
} = configUtils;
|
|
967
|
+
const classGroupsInConflict = [];
|
|
968
|
+
const classNames = classList.trim().split(SPLIT_CLASSES_REGEX);
|
|
969
|
+
let result = "";
|
|
970
|
+
for (let index = classNames.length - 1; index >= 0; index -= 1) {
|
|
971
|
+
const originalClassName = classNames[index];
|
|
972
|
+
const {
|
|
973
|
+
isExternal,
|
|
974
|
+
modifiers,
|
|
975
|
+
hasImportantModifier,
|
|
976
|
+
baseClassName,
|
|
977
|
+
maybePostfixModifierPosition
|
|
978
|
+
} = parseClassName(originalClassName);
|
|
979
|
+
if (isExternal) {
|
|
980
|
+
result = originalClassName + (result.length > 0 ? " " + result : result);
|
|
981
|
+
continue;
|
|
982
|
+
}
|
|
983
|
+
let hasPostfixModifier = !!maybePostfixModifierPosition;
|
|
984
|
+
let classGroupId = getClassGroupId(hasPostfixModifier ? baseClassName.substring(0, maybePostfixModifierPosition) : baseClassName);
|
|
985
|
+
if (!classGroupId) {
|
|
986
|
+
if (!hasPostfixModifier) {
|
|
987
|
+
result = originalClassName + (result.length > 0 ? " " + result : result);
|
|
988
|
+
continue;
|
|
989
|
+
}
|
|
990
|
+
classGroupId = getClassGroupId(baseClassName);
|
|
991
|
+
if (!classGroupId) {
|
|
992
|
+
result = originalClassName + (result.length > 0 ? " " + result : result);
|
|
993
|
+
continue;
|
|
994
|
+
}
|
|
995
|
+
hasPostfixModifier = false;
|
|
996
|
+
}
|
|
997
|
+
const variantModifier = sortModifiers(modifiers).join(":");
|
|
998
|
+
const modifierId = hasImportantModifier ? variantModifier + IMPORTANT_MODIFIER : variantModifier;
|
|
999
|
+
const classId = modifierId + classGroupId;
|
|
1000
|
+
if (classGroupsInConflict.includes(classId)) {
|
|
1001
|
+
continue;
|
|
1002
|
+
}
|
|
1003
|
+
classGroupsInConflict.push(classId);
|
|
1004
|
+
const conflictGroups = getConflictingClassGroupIds(classGroupId, hasPostfixModifier);
|
|
1005
|
+
for (let i = 0; i < conflictGroups.length; ++i) {
|
|
1006
|
+
const group = conflictGroups[i];
|
|
1007
|
+
classGroupsInConflict.push(modifierId + group);
|
|
1008
|
+
}
|
|
1009
|
+
result = originalClassName + (result.length > 0 ? " " + result : result);
|
|
1010
|
+
}
|
|
1011
|
+
return result;
|
|
1012
|
+
};
|
|
1013
|
+
function twJoin() {
|
|
1014
|
+
let index = 0;
|
|
1015
|
+
let argument;
|
|
1016
|
+
let resolvedValue;
|
|
1017
|
+
let string = "";
|
|
1018
|
+
while (index < arguments.length) {
|
|
1019
|
+
if (argument = arguments[index++]) {
|
|
1020
|
+
if (resolvedValue = toValue(argument)) {
|
|
1021
|
+
string && (string += " ");
|
|
1022
|
+
string += resolvedValue;
|
|
1023
|
+
}
|
|
1024
|
+
}
|
|
1025
|
+
}
|
|
1026
|
+
return string;
|
|
1027
|
+
}
|
|
1028
|
+
var toValue = (mix) => {
|
|
1029
|
+
if (typeof mix === "string") {
|
|
1030
|
+
return mix;
|
|
1031
|
+
}
|
|
1032
|
+
let resolvedValue;
|
|
1033
|
+
let string = "";
|
|
1034
|
+
for (let k = 0; k < mix.length; k++) {
|
|
1035
|
+
if (mix[k]) {
|
|
1036
|
+
if (resolvedValue = toValue(mix[k])) {
|
|
1037
|
+
string && (string += " ");
|
|
1038
|
+
string += resolvedValue;
|
|
1039
|
+
}
|
|
1040
|
+
}
|
|
1041
|
+
}
|
|
1042
|
+
return string;
|
|
1043
|
+
};
|
|
1044
|
+
function createTailwindMerge(createConfigFirst, ...createConfigRest) {
|
|
1045
|
+
let configUtils;
|
|
1046
|
+
let cacheGet;
|
|
1047
|
+
let cacheSet;
|
|
1048
|
+
let functionToCall = initTailwindMerge;
|
|
1049
|
+
function initTailwindMerge(classList) {
|
|
1050
|
+
const config = createConfigRest.reduce((previousConfig, createConfigCurrent) => createConfigCurrent(previousConfig), createConfigFirst());
|
|
1051
|
+
configUtils = createConfigUtils(config);
|
|
1052
|
+
cacheGet = configUtils.cache.get;
|
|
1053
|
+
cacheSet = configUtils.cache.set;
|
|
1054
|
+
functionToCall = tailwindMerge;
|
|
1055
|
+
return tailwindMerge(classList);
|
|
1056
|
+
}
|
|
1057
|
+
function tailwindMerge(classList) {
|
|
1058
|
+
const cachedResult = cacheGet(classList);
|
|
1059
|
+
if (cachedResult) {
|
|
1060
|
+
return cachedResult;
|
|
1061
|
+
}
|
|
1062
|
+
const result = mergeClassList(classList, configUtils);
|
|
1063
|
+
cacheSet(classList, result);
|
|
1064
|
+
return result;
|
|
1065
|
+
}
|
|
1066
|
+
return function callTailwindMerge() {
|
|
1067
|
+
return functionToCall(twJoin.apply(null, arguments));
|
|
1068
|
+
};
|
|
1069
|
+
}
|
|
1070
|
+
var fromTheme = (key) => {
|
|
1071
|
+
const themeGetter = (theme) => theme[key] || [];
|
|
1072
|
+
themeGetter.isThemeGetter = true;
|
|
1073
|
+
return themeGetter;
|
|
1074
|
+
};
|
|
1075
|
+
var arbitraryValueRegex = /^\[(?:(\w[\w-]*):)?(.+)\]$/i;
|
|
1076
|
+
var arbitraryVariableRegex = /^\((?:(\w[\w-]*):)?(.+)\)$/i;
|
|
1077
|
+
var fractionRegex = /^\d+\/\d+$/;
|
|
1078
|
+
var tshirtUnitRegex = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/;
|
|
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$/;
|
|
1080
|
+
var colorFunctionRegex = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/;
|
|
1081
|
+
var shadowRegex = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;
|
|
1082
|
+
var imageRegex = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;
|
|
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));
|
|
1086
|
+
var isPercent = (value) => value.endsWith("%") && isNumber(value.slice(0, -1));
|
|
1087
|
+
var isTshirtSize = (value) => tshirtUnitRegex.test(value);
|
|
1088
|
+
var isAny = () => true;
|
|
1089
|
+
var isLengthOnly = (value) => (
|
|
1090
|
+
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
1091
|
+
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
1092
|
+
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
1093
|
+
lengthUnitRegex.test(value) && !colorFunctionRegex.test(value)
|
|
1094
|
+
);
|
|
1095
|
+
var isNever = () => false;
|
|
1096
|
+
var isShadow = (value) => shadowRegex.test(value);
|
|
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";
|
|
1140
|
+
var getDefaultConfig = () => {
|
|
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()];
|
|
1231
|
+
return {
|
|
1232
|
+
cacheSize: 500,
|
|
1233
|
+
theme: {
|
|
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"]
|
|
1253
|
+
},
|
|
1254
|
+
classGroups: {
|
|
1255
|
+
// --------------
|
|
1256
|
+
// --- Layout ---
|
|
1257
|
+
// --------------
|
|
1258
|
+
/**
|
|
1259
|
+
* Aspect Ratio
|
|
1260
|
+
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
1261
|
+
*/
|
|
1262
|
+
aspect: [{
|
|
1263
|
+
aspect: ["auto", "square", isFraction, isArbitraryValue, isArbitraryVariable, themeAspect]
|
|
1264
|
+
}],
|
|
1265
|
+
/**
|
|
1266
|
+
* Container
|
|
1267
|
+
* @see https://tailwindcss.com/docs/container
|
|
1268
|
+
* @deprecated since Tailwind CSS v4.0.0
|
|
1269
|
+
*/
|
|
1270
|
+
container: ["container"],
|
|
1271
|
+
/**
|
|
1272
|
+
* Columns
|
|
1273
|
+
* @see https://tailwindcss.com/docs/columns
|
|
1274
|
+
*/
|
|
1275
|
+
columns: [{
|
|
1276
|
+
columns: [isNumber, isArbitraryValue, isArbitraryVariable, themeContainer]
|
|
1277
|
+
}],
|
|
1278
|
+
/**
|
|
1279
|
+
* Break After
|
|
1280
|
+
* @see https://tailwindcss.com/docs/break-after
|
|
1281
|
+
*/
|
|
1282
|
+
"break-after": [{
|
|
1283
|
+
"break-after": scaleBreak()
|
|
1284
|
+
}],
|
|
1285
|
+
/**
|
|
1286
|
+
* Break Before
|
|
1287
|
+
* @see https://tailwindcss.com/docs/break-before
|
|
1288
|
+
*/
|
|
1289
|
+
"break-before": [{
|
|
1290
|
+
"break-before": scaleBreak()
|
|
1291
|
+
}],
|
|
1292
|
+
/**
|
|
1293
|
+
* Break Inside
|
|
1294
|
+
* @see https://tailwindcss.com/docs/break-inside
|
|
1295
|
+
*/
|
|
1296
|
+
"break-inside": [{
|
|
1297
|
+
"break-inside": ["auto", "avoid", "avoid-page", "avoid-column"]
|
|
1298
|
+
}],
|
|
1299
|
+
/**
|
|
1300
|
+
* Box Decoration Break
|
|
1301
|
+
* @see https://tailwindcss.com/docs/box-decoration-break
|
|
1302
|
+
*/
|
|
1303
|
+
"box-decoration": [{
|
|
1304
|
+
"box-decoration": ["slice", "clone"]
|
|
1305
|
+
}],
|
|
1306
|
+
/**
|
|
1307
|
+
* Box Sizing
|
|
1308
|
+
* @see https://tailwindcss.com/docs/box-sizing
|
|
1309
|
+
*/
|
|
1310
|
+
box: [{
|
|
1311
|
+
box: ["border", "content"]
|
|
1312
|
+
}],
|
|
1313
|
+
/**
|
|
1314
|
+
* Display
|
|
1315
|
+
* @see https://tailwindcss.com/docs/display
|
|
1316
|
+
*/
|
|
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"],
|
|
1323
|
+
/**
|
|
1324
|
+
* Floats
|
|
1325
|
+
* @see https://tailwindcss.com/docs/float
|
|
1326
|
+
*/
|
|
1327
|
+
float: [{
|
|
1328
|
+
float: ["right", "left", "none", "start", "end"]
|
|
1329
|
+
}],
|
|
1330
|
+
/**
|
|
1331
|
+
* Clear
|
|
1332
|
+
* @see https://tailwindcss.com/docs/clear
|
|
1333
|
+
*/
|
|
1334
|
+
clear: [{
|
|
1335
|
+
clear: ["left", "right", "both", "none", "start", "end"]
|
|
1336
|
+
}],
|
|
1337
|
+
/**
|
|
1338
|
+
* Isolation
|
|
1339
|
+
* @see https://tailwindcss.com/docs/isolation
|
|
1340
|
+
*/
|
|
1341
|
+
isolation: ["isolate", "isolation-auto"],
|
|
1342
|
+
/**
|
|
1343
|
+
* Object Fit
|
|
1344
|
+
* @see https://tailwindcss.com/docs/object-fit
|
|
1345
|
+
*/
|
|
1346
|
+
"object-fit": [{
|
|
1347
|
+
object: ["contain", "cover", "fill", "none", "scale-down"]
|
|
1348
|
+
}],
|
|
1349
|
+
/**
|
|
1350
|
+
* Object Position
|
|
1351
|
+
* @see https://tailwindcss.com/docs/object-position
|
|
1352
|
+
*/
|
|
1353
|
+
"object-position": [{
|
|
1354
|
+
object: scalePositionWithArbitrary()
|
|
1355
|
+
}],
|
|
1356
|
+
/**
|
|
1357
|
+
* Overflow
|
|
1358
|
+
* @see https://tailwindcss.com/docs/overflow
|
|
1359
|
+
*/
|
|
1360
|
+
overflow: [{
|
|
1361
|
+
overflow: scaleOverflow()
|
|
1362
|
+
}],
|
|
1363
|
+
/**
|
|
1364
|
+
* Overflow X
|
|
1365
|
+
* @see https://tailwindcss.com/docs/overflow
|
|
1366
|
+
*/
|
|
1367
|
+
"overflow-x": [{
|
|
1368
|
+
"overflow-x": scaleOverflow()
|
|
1369
|
+
}],
|
|
1370
|
+
/**
|
|
1371
|
+
* Overflow Y
|
|
1372
|
+
* @see https://tailwindcss.com/docs/overflow
|
|
1373
|
+
*/
|
|
1374
|
+
"overflow-y": [{
|
|
1375
|
+
"overflow-y": scaleOverflow()
|
|
1376
|
+
}],
|
|
1377
|
+
/**
|
|
1378
|
+
* Overscroll Behavior
|
|
1379
|
+
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
1380
|
+
*/
|
|
1381
|
+
overscroll: [{
|
|
1382
|
+
overscroll: scaleOverscroll()
|
|
1383
|
+
}],
|
|
1384
|
+
/**
|
|
1385
|
+
* Overscroll Behavior X
|
|
1386
|
+
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
1387
|
+
*/
|
|
1388
|
+
"overscroll-x": [{
|
|
1389
|
+
"overscroll-x": scaleOverscroll()
|
|
1390
|
+
}],
|
|
1391
|
+
/**
|
|
1392
|
+
* Overscroll Behavior Y
|
|
1393
|
+
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
1394
|
+
*/
|
|
1395
|
+
"overscroll-y": [{
|
|
1396
|
+
"overscroll-y": scaleOverscroll()
|
|
1397
|
+
}],
|
|
1398
|
+
/**
|
|
1399
|
+
* Position
|
|
1400
|
+
* @see https://tailwindcss.com/docs/position
|
|
1401
|
+
*/
|
|
1402
|
+
position: ["static", "fixed", "absolute", "relative", "sticky"],
|
|
1403
|
+
/**
|
|
1404
|
+
* Top / Right / Bottom / Left
|
|
1405
|
+
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1406
|
+
*/
|
|
1407
|
+
inset: [{
|
|
1408
|
+
inset: scaleInset()
|
|
1409
|
+
}],
|
|
1410
|
+
/**
|
|
1411
|
+
* Right / Left
|
|
1412
|
+
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1413
|
+
*/
|
|
1414
|
+
"inset-x": [{
|
|
1415
|
+
"inset-x": scaleInset()
|
|
1416
|
+
}],
|
|
1417
|
+
/**
|
|
1418
|
+
* Top / Bottom
|
|
1419
|
+
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1420
|
+
*/
|
|
1421
|
+
"inset-y": [{
|
|
1422
|
+
"inset-y": scaleInset()
|
|
1423
|
+
}],
|
|
1424
|
+
/**
|
|
1425
|
+
* Start
|
|
1426
|
+
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1427
|
+
*/
|
|
1428
|
+
start: [{
|
|
1429
|
+
start: scaleInset()
|
|
1430
|
+
}],
|
|
1431
|
+
/**
|
|
1432
|
+
* End
|
|
1433
|
+
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1434
|
+
*/
|
|
1435
|
+
end: [{
|
|
1436
|
+
end: scaleInset()
|
|
1437
|
+
}],
|
|
1438
|
+
/**
|
|
1439
|
+
* Top
|
|
1440
|
+
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1441
|
+
*/
|
|
1442
|
+
top: [{
|
|
1443
|
+
top: scaleInset()
|
|
1444
|
+
}],
|
|
1445
|
+
/**
|
|
1446
|
+
* Right
|
|
1447
|
+
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1448
|
+
*/
|
|
1449
|
+
right: [{
|
|
1450
|
+
right: scaleInset()
|
|
1451
|
+
}],
|
|
1452
|
+
/**
|
|
1453
|
+
* Bottom
|
|
1454
|
+
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1455
|
+
*/
|
|
1456
|
+
bottom: [{
|
|
1457
|
+
bottom: scaleInset()
|
|
1458
|
+
}],
|
|
1459
|
+
/**
|
|
1460
|
+
* Left
|
|
1461
|
+
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1462
|
+
*/
|
|
1463
|
+
left: [{
|
|
1464
|
+
left: scaleInset()
|
|
1465
|
+
}],
|
|
1466
|
+
/**
|
|
1467
|
+
* Visibility
|
|
1468
|
+
* @see https://tailwindcss.com/docs/visibility
|
|
1469
|
+
*/
|
|
1470
|
+
visibility: ["visible", "invisible", "collapse"],
|
|
1471
|
+
/**
|
|
1472
|
+
* Z-Index
|
|
1473
|
+
* @see https://tailwindcss.com/docs/z-index
|
|
1474
|
+
*/
|
|
1475
|
+
z: [{
|
|
1476
|
+
z: [isInteger, "auto", isArbitraryVariable, isArbitraryValue]
|
|
1477
|
+
}],
|
|
1478
|
+
// ------------------------
|
|
1479
|
+
// --- Flexbox and Grid ---
|
|
1480
|
+
// ------------------------
|
|
1481
|
+
/**
|
|
1482
|
+
* Flex Basis
|
|
1483
|
+
* @see https://tailwindcss.com/docs/flex-basis
|
|
1484
|
+
*/
|
|
1485
|
+
basis: [{
|
|
1486
|
+
basis: [isFraction, "full", "auto", themeContainer, ...scaleUnambiguousSpacing()]
|
|
1487
|
+
}],
|
|
1488
|
+
/**
|
|
1489
|
+
* Flex Direction
|
|
1490
|
+
* @see https://tailwindcss.com/docs/flex-direction
|
|
1491
|
+
*/
|
|
1492
|
+
"flex-direction": [{
|
|
1493
|
+
flex: ["row", "row-reverse", "col", "col-reverse"]
|
|
1494
|
+
}],
|
|
1495
|
+
/**
|
|
1496
|
+
* Flex Wrap
|
|
1497
|
+
* @see https://tailwindcss.com/docs/flex-wrap
|
|
1498
|
+
*/
|
|
1499
|
+
"flex-wrap": [{
|
|
1500
|
+
flex: ["nowrap", "wrap", "wrap-reverse"]
|
|
1501
|
+
}],
|
|
1502
|
+
/**
|
|
1503
|
+
* Flex
|
|
1504
|
+
* @see https://tailwindcss.com/docs/flex
|
|
1505
|
+
*/
|
|
1506
|
+
flex: [{
|
|
1507
|
+
flex: [isNumber, isFraction, "auto", "initial", "none", isArbitraryValue]
|
|
1508
|
+
}],
|
|
1509
|
+
/**
|
|
1510
|
+
* Flex Grow
|
|
1511
|
+
* @see https://tailwindcss.com/docs/flex-grow
|
|
1512
|
+
*/
|
|
1513
|
+
grow: [{
|
|
1514
|
+
grow: ["", isNumber, isArbitraryVariable, isArbitraryValue]
|
|
1515
|
+
}],
|
|
1516
|
+
/**
|
|
1517
|
+
* Flex Shrink
|
|
1518
|
+
* @see https://tailwindcss.com/docs/flex-shrink
|
|
1519
|
+
*/
|
|
1520
|
+
shrink: [{
|
|
1521
|
+
shrink: ["", isNumber, isArbitraryVariable, isArbitraryValue]
|
|
1522
|
+
}],
|
|
1523
|
+
/**
|
|
1524
|
+
* Order
|
|
1525
|
+
* @see https://tailwindcss.com/docs/order
|
|
1526
|
+
*/
|
|
1527
|
+
order: [{
|
|
1528
|
+
order: [isInteger, "first", "last", "none", isArbitraryVariable, isArbitraryValue]
|
|
1529
|
+
}],
|
|
1530
|
+
/**
|
|
1531
|
+
* Grid Template Columns
|
|
1532
|
+
* @see https://tailwindcss.com/docs/grid-template-columns
|
|
1533
|
+
*/
|
|
1534
|
+
"grid-cols": [{
|
|
1535
|
+
"grid-cols": scaleGridTemplateColsRows()
|
|
1536
|
+
}],
|
|
1537
|
+
/**
|
|
1538
|
+
* Grid Column Start / End
|
|
1539
|
+
* @see https://tailwindcss.com/docs/grid-column
|
|
1540
|
+
*/
|
|
1541
|
+
"col-start-end": [{
|
|
1542
|
+
col: scaleGridColRowStartAndEnd()
|
|
1543
|
+
}],
|
|
1544
|
+
/**
|
|
1545
|
+
* Grid Column Start
|
|
1546
|
+
* @see https://tailwindcss.com/docs/grid-column
|
|
1547
|
+
*/
|
|
1548
|
+
"col-start": [{
|
|
1549
|
+
"col-start": scaleGridColRowStartOrEnd()
|
|
1550
|
+
}],
|
|
1551
|
+
/**
|
|
1552
|
+
* Grid Column End
|
|
1553
|
+
* @see https://tailwindcss.com/docs/grid-column
|
|
1554
|
+
*/
|
|
1555
|
+
"col-end": [{
|
|
1556
|
+
"col-end": scaleGridColRowStartOrEnd()
|
|
1557
|
+
}],
|
|
1558
|
+
/**
|
|
1559
|
+
* Grid Template Rows
|
|
1560
|
+
* @see https://tailwindcss.com/docs/grid-template-rows
|
|
1561
|
+
*/
|
|
1562
|
+
"grid-rows": [{
|
|
1563
|
+
"grid-rows": scaleGridTemplateColsRows()
|
|
1564
|
+
}],
|
|
1565
|
+
/**
|
|
1566
|
+
* Grid Row Start / End
|
|
1567
|
+
* @see https://tailwindcss.com/docs/grid-row
|
|
1568
|
+
*/
|
|
1569
|
+
"row-start-end": [{
|
|
1570
|
+
row: scaleGridColRowStartAndEnd()
|
|
1571
|
+
}],
|
|
1572
|
+
/**
|
|
1573
|
+
* Grid Row Start
|
|
1574
|
+
* @see https://tailwindcss.com/docs/grid-row
|
|
1575
|
+
*/
|
|
1576
|
+
"row-start": [{
|
|
1577
|
+
"row-start": scaleGridColRowStartOrEnd()
|
|
1578
|
+
}],
|
|
1579
|
+
/**
|
|
1580
|
+
* Grid Row End
|
|
1581
|
+
* @see https://tailwindcss.com/docs/grid-row
|
|
1582
|
+
*/
|
|
1583
|
+
"row-end": [{
|
|
1584
|
+
"row-end": scaleGridColRowStartOrEnd()
|
|
1585
|
+
}],
|
|
1586
|
+
/**
|
|
1587
|
+
* Grid Auto Flow
|
|
1588
|
+
* @see https://tailwindcss.com/docs/grid-auto-flow
|
|
1589
|
+
*/
|
|
1590
|
+
"grid-flow": [{
|
|
1591
|
+
"grid-flow": ["row", "col", "dense", "row-dense", "col-dense"]
|
|
1592
|
+
}],
|
|
1593
|
+
/**
|
|
1594
|
+
* Grid Auto Columns
|
|
1595
|
+
* @see https://tailwindcss.com/docs/grid-auto-columns
|
|
1596
|
+
*/
|
|
1597
|
+
"auto-cols": [{
|
|
1598
|
+
"auto-cols": scaleGridAutoColsRows()
|
|
1599
|
+
}],
|
|
1600
|
+
/**
|
|
1601
|
+
* Grid Auto Rows
|
|
1602
|
+
* @see https://tailwindcss.com/docs/grid-auto-rows
|
|
1603
|
+
*/
|
|
1604
|
+
"auto-rows": [{
|
|
1605
|
+
"auto-rows": scaleGridAutoColsRows()
|
|
1606
|
+
}],
|
|
1607
|
+
/**
|
|
1608
|
+
* Gap
|
|
1609
|
+
* @see https://tailwindcss.com/docs/gap
|
|
1610
|
+
*/
|
|
1611
|
+
gap: [{
|
|
1612
|
+
gap: scaleUnambiguousSpacing()
|
|
1613
|
+
}],
|
|
1614
|
+
/**
|
|
1615
|
+
* Gap X
|
|
1616
|
+
* @see https://tailwindcss.com/docs/gap
|
|
1617
|
+
*/
|
|
1618
|
+
"gap-x": [{
|
|
1619
|
+
"gap-x": scaleUnambiguousSpacing()
|
|
1620
|
+
}],
|
|
1621
|
+
/**
|
|
1622
|
+
* Gap Y
|
|
1623
|
+
* @see https://tailwindcss.com/docs/gap
|
|
1624
|
+
*/
|
|
1625
|
+
"gap-y": [{
|
|
1626
|
+
"gap-y": scaleUnambiguousSpacing()
|
|
1627
|
+
}],
|
|
1628
|
+
/**
|
|
1629
|
+
* Justify Content
|
|
1630
|
+
* @see https://tailwindcss.com/docs/justify-content
|
|
1631
|
+
*/
|
|
1632
|
+
"justify-content": [{
|
|
1633
|
+
justify: [...scaleAlignPrimaryAxis(), "normal"]
|
|
1634
|
+
}],
|
|
1635
|
+
/**
|
|
1636
|
+
* Justify Items
|
|
1637
|
+
* @see https://tailwindcss.com/docs/justify-items
|
|
1638
|
+
*/
|
|
1639
|
+
"justify-items": [{
|
|
1640
|
+
"justify-items": [...scaleAlignSecondaryAxis(), "normal"]
|
|
1641
|
+
}],
|
|
1642
|
+
/**
|
|
1643
|
+
* Justify Self
|
|
1644
|
+
* @see https://tailwindcss.com/docs/justify-self
|
|
1645
|
+
*/
|
|
1646
|
+
"justify-self": [{
|
|
1647
|
+
"justify-self": ["auto", ...scaleAlignSecondaryAxis()]
|
|
1648
|
+
}],
|
|
1649
|
+
/**
|
|
1650
|
+
* Align Content
|
|
1651
|
+
* @see https://tailwindcss.com/docs/align-content
|
|
1652
|
+
*/
|
|
1653
|
+
"align-content": [{
|
|
1654
|
+
content: ["normal", ...scaleAlignPrimaryAxis()]
|
|
1655
|
+
}],
|
|
1656
|
+
/**
|
|
1657
|
+
* Align Items
|
|
1658
|
+
* @see https://tailwindcss.com/docs/align-items
|
|
1659
|
+
*/
|
|
1660
|
+
"align-items": [{
|
|
1661
|
+
items: [...scaleAlignSecondaryAxis(), {
|
|
1662
|
+
baseline: ["", "last"]
|
|
1663
|
+
}]
|
|
1664
|
+
}],
|
|
1665
|
+
/**
|
|
1666
|
+
* Align Self
|
|
1667
|
+
* @see https://tailwindcss.com/docs/align-self
|
|
1668
|
+
*/
|
|
1669
|
+
"align-self": [{
|
|
1670
|
+
self: ["auto", ...scaleAlignSecondaryAxis(), {
|
|
1671
|
+
baseline: ["", "last"]
|
|
1672
|
+
}]
|
|
1673
|
+
}],
|
|
1674
|
+
/**
|
|
1675
|
+
* Place Content
|
|
1676
|
+
* @see https://tailwindcss.com/docs/place-content
|
|
1677
|
+
*/
|
|
1678
|
+
"place-content": [{
|
|
1679
|
+
"place-content": scaleAlignPrimaryAxis()
|
|
1680
|
+
}],
|
|
1681
|
+
/**
|
|
1682
|
+
* Place Items
|
|
1683
|
+
* @see https://tailwindcss.com/docs/place-items
|
|
1684
|
+
*/
|
|
1685
|
+
"place-items": [{
|
|
1686
|
+
"place-items": [...scaleAlignSecondaryAxis(), "baseline"]
|
|
1687
|
+
}],
|
|
1688
|
+
/**
|
|
1689
|
+
* Place Self
|
|
1690
|
+
* @see https://tailwindcss.com/docs/place-self
|
|
1691
|
+
*/
|
|
1692
|
+
"place-self": [{
|
|
1693
|
+
"place-self": ["auto", ...scaleAlignSecondaryAxis()]
|
|
1694
|
+
}],
|
|
1695
|
+
// Spacing
|
|
1696
|
+
/**
|
|
1697
|
+
* Padding
|
|
1698
|
+
* @see https://tailwindcss.com/docs/padding
|
|
1699
|
+
*/
|
|
1700
|
+
p: [{
|
|
1701
|
+
p: scaleUnambiguousSpacing()
|
|
1702
|
+
}],
|
|
1703
|
+
/**
|
|
1704
|
+
* Padding X
|
|
1705
|
+
* @see https://tailwindcss.com/docs/padding
|
|
1706
|
+
*/
|
|
1707
|
+
px: [{
|
|
1708
|
+
px: scaleUnambiguousSpacing()
|
|
1709
|
+
}],
|
|
1710
|
+
/**
|
|
1711
|
+
* Padding Y
|
|
1712
|
+
* @see https://tailwindcss.com/docs/padding
|
|
1713
|
+
*/
|
|
1714
|
+
py: [{
|
|
1715
|
+
py: scaleUnambiguousSpacing()
|
|
1716
|
+
}],
|
|
1717
|
+
/**
|
|
1718
|
+
* Padding Start
|
|
1719
|
+
* @see https://tailwindcss.com/docs/padding
|
|
1720
|
+
*/
|
|
1721
|
+
ps: [{
|
|
1722
|
+
ps: scaleUnambiguousSpacing()
|
|
1723
|
+
}],
|
|
1724
|
+
/**
|
|
1725
|
+
* Padding End
|
|
1726
|
+
* @see https://tailwindcss.com/docs/padding
|
|
1727
|
+
*/
|
|
1728
|
+
pe: [{
|
|
1729
|
+
pe: scaleUnambiguousSpacing()
|
|
1730
|
+
}],
|
|
1731
|
+
/**
|
|
1732
|
+
* Padding Top
|
|
1733
|
+
* @see https://tailwindcss.com/docs/padding
|
|
1734
|
+
*/
|
|
1735
|
+
pt: [{
|
|
1736
|
+
pt: scaleUnambiguousSpacing()
|
|
1737
|
+
}],
|
|
1738
|
+
/**
|
|
1739
|
+
* Padding Right
|
|
1740
|
+
* @see https://tailwindcss.com/docs/padding
|
|
1741
|
+
*/
|
|
1742
|
+
pr: [{
|
|
1743
|
+
pr: scaleUnambiguousSpacing()
|
|
1744
|
+
}],
|
|
1745
|
+
/**
|
|
1746
|
+
* Padding Bottom
|
|
1747
|
+
* @see https://tailwindcss.com/docs/padding
|
|
1748
|
+
*/
|
|
1749
|
+
pb: [{
|
|
1750
|
+
pb: scaleUnambiguousSpacing()
|
|
1751
|
+
}],
|
|
1752
|
+
/**
|
|
1753
|
+
* Padding Left
|
|
1754
|
+
* @see https://tailwindcss.com/docs/padding
|
|
1755
|
+
*/
|
|
1756
|
+
pl: [{
|
|
1757
|
+
pl: scaleUnambiguousSpacing()
|
|
1758
|
+
}],
|
|
1759
|
+
/**
|
|
1760
|
+
* Margin
|
|
1761
|
+
* @see https://tailwindcss.com/docs/margin
|
|
1762
|
+
*/
|
|
1763
|
+
m: [{
|
|
1764
|
+
m: scaleMargin()
|
|
1765
|
+
}],
|
|
1766
|
+
/**
|
|
1767
|
+
* Margin X
|
|
1768
|
+
* @see https://tailwindcss.com/docs/margin
|
|
1769
|
+
*/
|
|
1770
|
+
mx: [{
|
|
1771
|
+
mx: scaleMargin()
|
|
1772
|
+
}],
|
|
1773
|
+
/**
|
|
1774
|
+
* Margin Y
|
|
1775
|
+
* @see https://tailwindcss.com/docs/margin
|
|
1776
|
+
*/
|
|
1777
|
+
my: [{
|
|
1778
|
+
my: scaleMargin()
|
|
1779
|
+
}],
|
|
1780
|
+
/**
|
|
1781
|
+
* Margin Start
|
|
1782
|
+
* @see https://tailwindcss.com/docs/margin
|
|
1783
|
+
*/
|
|
1784
|
+
ms: [{
|
|
1785
|
+
ms: scaleMargin()
|
|
1786
|
+
}],
|
|
1787
|
+
/**
|
|
1788
|
+
* Margin End
|
|
1789
|
+
* @see https://tailwindcss.com/docs/margin
|
|
1790
|
+
*/
|
|
1791
|
+
me: [{
|
|
1792
|
+
me: scaleMargin()
|
|
1793
|
+
}],
|
|
1794
|
+
/**
|
|
1795
|
+
* Margin Top
|
|
1796
|
+
* @see https://tailwindcss.com/docs/margin
|
|
1797
|
+
*/
|
|
1798
|
+
mt: [{
|
|
1799
|
+
mt: scaleMargin()
|
|
1800
|
+
}],
|
|
1801
|
+
/**
|
|
1802
|
+
* Margin Right
|
|
1803
|
+
* @see https://tailwindcss.com/docs/margin
|
|
1804
|
+
*/
|
|
1805
|
+
mr: [{
|
|
1806
|
+
mr: scaleMargin()
|
|
1807
|
+
}],
|
|
1808
|
+
/**
|
|
1809
|
+
* Margin Bottom
|
|
1810
|
+
* @see https://tailwindcss.com/docs/margin
|
|
1811
|
+
*/
|
|
1812
|
+
mb: [{
|
|
1813
|
+
mb: scaleMargin()
|
|
1814
|
+
}],
|
|
1815
|
+
/**
|
|
1816
|
+
* Margin Left
|
|
1817
|
+
* @see https://tailwindcss.com/docs/margin
|
|
1818
|
+
*/
|
|
1819
|
+
ml: [{
|
|
1820
|
+
ml: scaleMargin()
|
|
1821
|
+
}],
|
|
1822
|
+
/**
|
|
1823
|
+
* Space Between X
|
|
1824
|
+
* @see https://tailwindcss.com/docs/margin#adding-space-between-children
|
|
1825
|
+
*/
|
|
1826
|
+
"space-x": [{
|
|
1827
|
+
"space-x": scaleUnambiguousSpacing()
|
|
1828
|
+
}],
|
|
1829
|
+
/**
|
|
1830
|
+
* Space Between X Reverse
|
|
1831
|
+
* @see https://tailwindcss.com/docs/margin#adding-space-between-children
|
|
1832
|
+
*/
|
|
1833
|
+
"space-x-reverse": ["space-x-reverse"],
|
|
1834
|
+
/**
|
|
1835
|
+
* Space Between Y
|
|
1836
|
+
* @see https://tailwindcss.com/docs/margin#adding-space-between-children
|
|
1837
|
+
*/
|
|
1838
|
+
"space-y": [{
|
|
1839
|
+
"space-y": scaleUnambiguousSpacing()
|
|
1840
|
+
}],
|
|
1841
|
+
/**
|
|
1842
|
+
* Space Between Y Reverse
|
|
1843
|
+
* @see https://tailwindcss.com/docs/margin#adding-space-between-children
|
|
1844
|
+
*/
|
|
1845
|
+
"space-y-reverse": ["space-y-reverse"],
|
|
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
|
+
}],
|
|
1856
|
+
/**
|
|
1857
|
+
* Width
|
|
1858
|
+
* @see https://tailwindcss.com/docs/width
|
|
1859
|
+
*/
|
|
1860
|
+
w: [{
|
|
1861
|
+
w: [themeContainer, "screen", ...scaleSizing()]
|
|
1862
|
+
}],
|
|
1863
|
+
/**
|
|
1864
|
+
* Min-Width
|
|
1865
|
+
* @see https://tailwindcss.com/docs/min-width
|
|
1866
|
+
*/
|
|
1867
|
+
"min-w": [{
|
|
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
|
+
]
|
|
1875
|
+
}],
|
|
1876
|
+
/**
|
|
1877
|
+
* Max-Width
|
|
1878
|
+
* @see https://tailwindcss.com/docs/max-width
|
|
1879
|
+
*/
|
|
1880
|
+
"max-w": [{
|
|
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
|
+
]
|
|
1893
|
+
}],
|
|
1894
|
+
/**
|
|
1895
|
+
* Height
|
|
1896
|
+
* @see https://tailwindcss.com/docs/height
|
|
1897
|
+
*/
|
|
1898
|
+
h: [{
|
|
1899
|
+
h: ["screen", "lh", ...scaleSizing()]
|
|
1900
|
+
}],
|
|
1901
|
+
/**
|
|
1902
|
+
* Min-Height
|
|
1903
|
+
* @see https://tailwindcss.com/docs/min-height
|
|
1904
|
+
*/
|
|
1905
|
+
"min-h": [{
|
|
1906
|
+
"min-h": ["screen", "lh", "none", ...scaleSizing()]
|
|
1907
|
+
}],
|
|
1908
|
+
/**
|
|
1909
|
+
* Max-Height
|
|
1910
|
+
* @see https://tailwindcss.com/docs/max-height
|
|
1911
|
+
*/
|
|
1912
|
+
"max-h": [{
|
|
1913
|
+
"max-h": ["screen", "lh", ...scaleSizing()]
|
|
1914
|
+
}],
|
|
1915
|
+
// ------------------
|
|
1916
|
+
// --- Typography ---
|
|
1917
|
+
// ------------------
|
|
1918
|
+
/**
|
|
1919
|
+
* Font Size
|
|
1920
|
+
* @see https://tailwindcss.com/docs/font-size
|
|
1921
|
+
*/
|
|
1922
|
+
"font-size": [{
|
|
1923
|
+
text: ["base", themeText, isArbitraryVariableLength, isArbitraryLength]
|
|
1924
|
+
}],
|
|
1925
|
+
/**
|
|
1926
|
+
* Font Smoothing
|
|
1927
|
+
* @see https://tailwindcss.com/docs/font-smoothing
|
|
1928
|
+
*/
|
|
1929
|
+
"font-smoothing": ["antialiased", "subpixel-antialiased"],
|
|
1930
|
+
/**
|
|
1931
|
+
* Font Style
|
|
1932
|
+
* @see https://tailwindcss.com/docs/font-style
|
|
1933
|
+
*/
|
|
1934
|
+
"font-style": ["italic", "not-italic"],
|
|
1935
|
+
/**
|
|
1936
|
+
* Font Weight
|
|
1937
|
+
* @see https://tailwindcss.com/docs/font-weight
|
|
1938
|
+
*/
|
|
1939
|
+
"font-weight": [{
|
|
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]
|
|
1948
|
+
}],
|
|
1949
|
+
/**
|
|
1950
|
+
* Font Family
|
|
1951
|
+
* @see https://tailwindcss.com/docs/font-family
|
|
1952
|
+
*/
|
|
1953
|
+
"font-family": [{
|
|
1954
|
+
font: [isArbitraryVariableFamilyName, isArbitraryValue, themeFont]
|
|
1955
|
+
}],
|
|
1956
|
+
/**
|
|
1957
|
+
* Font Variant Numeric
|
|
1958
|
+
* @see https://tailwindcss.com/docs/font-variant-numeric
|
|
1959
|
+
*/
|
|
1960
|
+
"fvn-normal": ["normal-nums"],
|
|
1961
|
+
/**
|
|
1962
|
+
* Font Variant Numeric
|
|
1963
|
+
* @see https://tailwindcss.com/docs/font-variant-numeric
|
|
1964
|
+
*/
|
|
1965
|
+
"fvn-ordinal": ["ordinal"],
|
|
1966
|
+
/**
|
|
1967
|
+
* Font Variant Numeric
|
|
1968
|
+
* @see https://tailwindcss.com/docs/font-variant-numeric
|
|
1969
|
+
*/
|
|
1970
|
+
"fvn-slashed-zero": ["slashed-zero"],
|
|
1971
|
+
/**
|
|
1972
|
+
* Font Variant Numeric
|
|
1973
|
+
* @see https://tailwindcss.com/docs/font-variant-numeric
|
|
1974
|
+
*/
|
|
1975
|
+
"fvn-figure": ["lining-nums", "oldstyle-nums"],
|
|
1976
|
+
/**
|
|
1977
|
+
* Font Variant Numeric
|
|
1978
|
+
* @see https://tailwindcss.com/docs/font-variant-numeric
|
|
1979
|
+
*/
|
|
1980
|
+
"fvn-spacing": ["proportional-nums", "tabular-nums"],
|
|
1981
|
+
/**
|
|
1982
|
+
* Font Variant Numeric
|
|
1983
|
+
* @see https://tailwindcss.com/docs/font-variant-numeric
|
|
1984
|
+
*/
|
|
1985
|
+
"fvn-fraction": ["diagonal-fractions", "stacked-fractions"],
|
|
1986
|
+
/**
|
|
1987
|
+
* Letter Spacing
|
|
1988
|
+
* @see https://tailwindcss.com/docs/letter-spacing
|
|
1989
|
+
*/
|
|
1990
|
+
tracking: [{
|
|
1991
|
+
tracking: [themeTracking, isArbitraryVariable, isArbitraryValue]
|
|
1992
|
+
}],
|
|
1993
|
+
/**
|
|
1994
|
+
* Line Clamp
|
|
1995
|
+
* @see https://tailwindcss.com/docs/line-clamp
|
|
1996
|
+
*/
|
|
1997
|
+
"line-clamp": [{
|
|
1998
|
+
"line-clamp": [isNumber, "none", isArbitraryVariable, isArbitraryNumber]
|
|
1999
|
+
}],
|
|
2000
|
+
/**
|
|
2001
|
+
* Line Height
|
|
2002
|
+
* @see https://tailwindcss.com/docs/line-height
|
|
2003
|
+
*/
|
|
2004
|
+
leading: [{
|
|
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
|
+
]
|
|
2010
|
+
}],
|
|
2011
|
+
/**
|
|
2012
|
+
* List Style Image
|
|
2013
|
+
* @see https://tailwindcss.com/docs/list-style-image
|
|
2014
|
+
*/
|
|
2015
|
+
"list-image": [{
|
|
2016
|
+
"list-image": ["none", isArbitraryVariable, isArbitraryValue]
|
|
2017
|
+
}],
|
|
2018
|
+
/**
|
|
2019
|
+
* List Style Position
|
|
2020
|
+
* @see https://tailwindcss.com/docs/list-style-position
|
|
2021
|
+
*/
|
|
2022
|
+
"list-style-position": [{
|
|
2023
|
+
list: ["inside", "outside"]
|
|
2024
|
+
}],
|
|
2025
|
+
/**
|
|
2026
|
+
* List Style Type
|
|
2027
|
+
* @see https://tailwindcss.com/docs/list-style-type
|
|
2028
|
+
*/
|
|
2029
|
+
"list-style-type": [{
|
|
2030
|
+
list: ["disc", "decimal", "none", isArbitraryVariable, isArbitraryValue]
|
|
2031
|
+
}],
|
|
2032
|
+
/**
|
|
2033
|
+
* Text Alignment
|
|
2034
|
+
* @see https://tailwindcss.com/docs/text-align
|
|
2035
|
+
*/
|
|
2036
|
+
"text-alignment": [{
|
|
2037
|
+
text: ["left", "center", "right", "justify", "start", "end"]
|
|
2038
|
+
}],
|
|
2039
|
+
/**
|
|
2040
|
+
* Placeholder Color
|
|
2041
|
+
* @deprecated since Tailwind CSS v3.0.0
|
|
2042
|
+
* @see https://v3.tailwindcss.com/docs/placeholder-color
|
|
2043
|
+
*/
|
|
2044
|
+
"placeholder-color": [{
|
|
2045
|
+
placeholder: scaleColor()
|
|
2046
|
+
}],
|
|
2047
|
+
/**
|
|
2048
|
+
* Text Color
|
|
2049
|
+
* @see https://tailwindcss.com/docs/text-color
|
|
2050
|
+
*/
|
|
2051
|
+
"text-color": [{
|
|
2052
|
+
text: scaleColor()
|
|
2053
|
+
}],
|
|
2054
|
+
/**
|
|
2055
|
+
* Text Decoration
|
|
2056
|
+
* @see https://tailwindcss.com/docs/text-decoration
|
|
2057
|
+
*/
|
|
2058
|
+
"text-decoration": ["underline", "overline", "line-through", "no-underline"],
|
|
2059
|
+
/**
|
|
2060
|
+
* Text Decoration Style
|
|
2061
|
+
* @see https://tailwindcss.com/docs/text-decoration-style
|
|
2062
|
+
*/
|
|
2063
|
+
"text-decoration-style": [{
|
|
2064
|
+
decoration: [...scaleLineStyle(), "wavy"]
|
|
2065
|
+
}],
|
|
2066
|
+
/**
|
|
2067
|
+
* Text Decoration Thickness
|
|
2068
|
+
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
|
2069
|
+
*/
|
|
2070
|
+
"text-decoration-thickness": [{
|
|
2071
|
+
decoration: [isNumber, "from-font", "auto", isArbitraryVariable, isArbitraryLength]
|
|
2072
|
+
}],
|
|
2073
|
+
/**
|
|
2074
|
+
* Text Decoration Color
|
|
2075
|
+
* @see https://tailwindcss.com/docs/text-decoration-color
|
|
2076
|
+
*/
|
|
2077
|
+
"text-decoration-color": [{
|
|
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]
|
|
2086
|
+
}],
|
|
2087
|
+
/**
|
|
2088
|
+
* Text Transform
|
|
2089
|
+
* @see https://tailwindcss.com/docs/text-transform
|
|
2090
|
+
*/
|
|
2091
|
+
"text-transform": ["uppercase", "lowercase", "capitalize", "normal-case"],
|
|
2092
|
+
/**
|
|
2093
|
+
* Text Overflow
|
|
2094
|
+
* @see https://tailwindcss.com/docs/text-overflow
|
|
2095
|
+
*/
|
|
2096
|
+
"text-overflow": ["truncate", "text-ellipsis", "text-clip"],
|
|
2097
|
+
/**
|
|
2098
|
+
* Text Wrap
|
|
2099
|
+
* @see https://tailwindcss.com/docs/text-wrap
|
|
2100
|
+
*/
|
|
2101
|
+
"text-wrap": [{
|
|
2102
|
+
text: ["wrap", "nowrap", "balance", "pretty"]
|
|
2103
|
+
}],
|
|
2104
|
+
/**
|
|
2105
|
+
* Text Indent
|
|
2106
|
+
* @see https://tailwindcss.com/docs/text-indent
|
|
2107
|
+
*/
|
|
2108
|
+
indent: [{
|
|
2109
|
+
indent: scaleUnambiguousSpacing()
|
|
2110
|
+
}],
|
|
2111
|
+
/**
|
|
2112
|
+
* Vertical Alignment
|
|
2113
|
+
* @see https://tailwindcss.com/docs/vertical-align
|
|
2114
|
+
*/
|
|
2115
|
+
"vertical-align": [{
|
|
2116
|
+
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", isArbitraryVariable, isArbitraryValue]
|
|
2117
|
+
}],
|
|
2118
|
+
/**
|
|
2119
|
+
* Whitespace
|
|
2120
|
+
* @see https://tailwindcss.com/docs/whitespace
|
|
2121
|
+
*/
|
|
2122
|
+
whitespace: [{
|
|
2123
|
+
whitespace: ["normal", "nowrap", "pre", "pre-line", "pre-wrap", "break-spaces"]
|
|
2124
|
+
}],
|
|
2125
|
+
/**
|
|
2126
|
+
* Word Break
|
|
2127
|
+
* @see https://tailwindcss.com/docs/word-break
|
|
2128
|
+
*/
|
|
2129
|
+
break: [{
|
|
2130
|
+
break: ["normal", "words", "all", "keep"]
|
|
2131
|
+
}],
|
|
2132
|
+
/**
|
|
2133
|
+
* Overflow Wrap
|
|
2134
|
+
* @see https://tailwindcss.com/docs/overflow-wrap
|
|
2135
|
+
*/
|
|
2136
|
+
wrap: [{
|
|
2137
|
+
wrap: ["break-word", "anywhere", "normal"]
|
|
2138
|
+
}],
|
|
2139
|
+
/**
|
|
2140
|
+
* Hyphens
|
|
2141
|
+
* @see https://tailwindcss.com/docs/hyphens
|
|
2142
|
+
*/
|
|
2143
|
+
hyphens: [{
|
|
2144
|
+
hyphens: ["none", "manual", "auto"]
|
|
2145
|
+
}],
|
|
2146
|
+
/**
|
|
2147
|
+
* Content
|
|
2148
|
+
* @see https://tailwindcss.com/docs/content
|
|
2149
|
+
*/
|
|
2150
|
+
content: [{
|
|
2151
|
+
content: ["none", isArbitraryVariable, isArbitraryValue]
|
|
2152
|
+
}],
|
|
2153
|
+
// -------------------
|
|
2154
|
+
// --- Backgrounds ---
|
|
2155
|
+
// -------------------
|
|
2156
|
+
/**
|
|
2157
|
+
* Background Attachment
|
|
2158
|
+
* @see https://tailwindcss.com/docs/background-attachment
|
|
2159
|
+
*/
|
|
2160
|
+
"bg-attachment": [{
|
|
2161
|
+
bg: ["fixed", "local", "scroll"]
|
|
2162
|
+
}],
|
|
2163
|
+
/**
|
|
2164
|
+
* Background Clip
|
|
2165
|
+
* @see https://tailwindcss.com/docs/background-clip
|
|
2166
|
+
*/
|
|
2167
|
+
"bg-clip": [{
|
|
2168
|
+
"bg-clip": ["border", "padding", "content", "text"]
|
|
2169
|
+
}],
|
|
2170
|
+
/**
|
|
2171
|
+
* Background Origin
|
|
2172
|
+
* @see https://tailwindcss.com/docs/background-origin
|
|
2173
|
+
*/
|
|
2174
|
+
"bg-origin": [{
|
|
2175
|
+
"bg-origin": ["border", "padding", "content"]
|
|
2176
|
+
}],
|
|
2177
|
+
/**
|
|
2178
|
+
* Background Position
|
|
2179
|
+
* @see https://tailwindcss.com/docs/background-position
|
|
2180
|
+
*/
|
|
2181
|
+
"bg-position": [{
|
|
2182
|
+
bg: scaleBgPosition()
|
|
2183
|
+
}],
|
|
2184
|
+
/**
|
|
2185
|
+
* Background Repeat
|
|
2186
|
+
* @see https://tailwindcss.com/docs/background-repeat
|
|
2187
|
+
*/
|
|
2188
|
+
"bg-repeat": [{
|
|
2189
|
+
bg: scaleBgRepeat()
|
|
2190
|
+
}],
|
|
2191
|
+
/**
|
|
2192
|
+
* Background Size
|
|
2193
|
+
* @see https://tailwindcss.com/docs/background-size
|
|
2194
|
+
*/
|
|
2195
|
+
"bg-size": [{
|
|
2196
|
+
bg: scaleBgSize()
|
|
2197
|
+
}],
|
|
2198
|
+
/**
|
|
2199
|
+
* Background Image
|
|
2200
|
+
* @see https://tailwindcss.com/docs/background-image
|
|
2201
|
+
*/
|
|
2202
|
+
"bg-image": [{
|
|
2203
|
+
bg: ["none", {
|
|
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]
|
|
2210
|
+
}],
|
|
2211
|
+
/**
|
|
2212
|
+
* Background Color
|
|
2213
|
+
* @see https://tailwindcss.com/docs/background-color
|
|
2214
|
+
*/
|
|
2215
|
+
"bg-color": [{
|
|
2216
|
+
bg: scaleColor()
|
|
2217
|
+
}],
|
|
2218
|
+
/**
|
|
2219
|
+
* Gradient Color Stops From Position
|
|
2220
|
+
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
2221
|
+
*/
|
|
2222
|
+
"gradient-from-pos": [{
|
|
2223
|
+
from: scaleGradientStopPosition()
|
|
2224
|
+
}],
|
|
2225
|
+
/**
|
|
2226
|
+
* Gradient Color Stops Via Position
|
|
2227
|
+
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
2228
|
+
*/
|
|
2229
|
+
"gradient-via-pos": [{
|
|
2230
|
+
via: scaleGradientStopPosition()
|
|
2231
|
+
}],
|
|
2232
|
+
/**
|
|
2233
|
+
* Gradient Color Stops To Position
|
|
2234
|
+
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
2235
|
+
*/
|
|
2236
|
+
"gradient-to-pos": [{
|
|
2237
|
+
to: scaleGradientStopPosition()
|
|
2238
|
+
}],
|
|
2239
|
+
/**
|
|
2240
|
+
* Gradient Color Stops From
|
|
2241
|
+
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
2242
|
+
*/
|
|
2243
|
+
"gradient-from": [{
|
|
2244
|
+
from: scaleColor()
|
|
2245
|
+
}],
|
|
2246
|
+
/**
|
|
2247
|
+
* Gradient Color Stops Via
|
|
2248
|
+
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
2249
|
+
*/
|
|
2250
|
+
"gradient-via": [{
|
|
2251
|
+
via: scaleColor()
|
|
2252
|
+
}],
|
|
2253
|
+
/**
|
|
2254
|
+
* Gradient Color Stops To
|
|
2255
|
+
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
2256
|
+
*/
|
|
2257
|
+
"gradient-to": [{
|
|
2258
|
+
to: scaleColor()
|
|
2259
|
+
}],
|
|
2260
|
+
// ---------------
|
|
2261
|
+
// --- Borders ---
|
|
2262
|
+
// ---------------
|
|
2263
|
+
/**
|
|
2264
|
+
* Border Radius
|
|
2265
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
2266
|
+
*/
|
|
2267
|
+
rounded: [{
|
|
2268
|
+
rounded: scaleRadius()
|
|
2269
|
+
}],
|
|
2270
|
+
/**
|
|
2271
|
+
* Border Radius Start
|
|
2272
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
2273
|
+
*/
|
|
2274
|
+
"rounded-s": [{
|
|
2275
|
+
"rounded-s": scaleRadius()
|
|
2276
|
+
}],
|
|
2277
|
+
/**
|
|
2278
|
+
* Border Radius End
|
|
2279
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
2280
|
+
*/
|
|
2281
|
+
"rounded-e": [{
|
|
2282
|
+
"rounded-e": scaleRadius()
|
|
2283
|
+
}],
|
|
2284
|
+
/**
|
|
2285
|
+
* Border Radius Top
|
|
2286
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
2287
|
+
*/
|
|
2288
|
+
"rounded-t": [{
|
|
2289
|
+
"rounded-t": scaleRadius()
|
|
2290
|
+
}],
|
|
2291
|
+
/**
|
|
2292
|
+
* Border Radius Right
|
|
2293
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
2294
|
+
*/
|
|
2295
|
+
"rounded-r": [{
|
|
2296
|
+
"rounded-r": scaleRadius()
|
|
2297
|
+
}],
|
|
2298
|
+
/**
|
|
2299
|
+
* Border Radius Bottom
|
|
2300
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
2301
|
+
*/
|
|
2302
|
+
"rounded-b": [{
|
|
2303
|
+
"rounded-b": scaleRadius()
|
|
2304
|
+
}],
|
|
2305
|
+
/**
|
|
2306
|
+
* Border Radius Left
|
|
2307
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
2308
|
+
*/
|
|
2309
|
+
"rounded-l": [{
|
|
2310
|
+
"rounded-l": scaleRadius()
|
|
2311
|
+
}],
|
|
2312
|
+
/**
|
|
2313
|
+
* Border Radius Start Start
|
|
2314
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
2315
|
+
*/
|
|
2316
|
+
"rounded-ss": [{
|
|
2317
|
+
"rounded-ss": scaleRadius()
|
|
2318
|
+
}],
|
|
2319
|
+
/**
|
|
2320
|
+
* Border Radius Start End
|
|
2321
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
2322
|
+
*/
|
|
2323
|
+
"rounded-se": [{
|
|
2324
|
+
"rounded-se": scaleRadius()
|
|
2325
|
+
}],
|
|
2326
|
+
/**
|
|
2327
|
+
* Border Radius End End
|
|
2328
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
2329
|
+
*/
|
|
2330
|
+
"rounded-ee": [{
|
|
2331
|
+
"rounded-ee": scaleRadius()
|
|
2332
|
+
}],
|
|
2333
|
+
/**
|
|
2334
|
+
* Border Radius End Start
|
|
2335
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
2336
|
+
*/
|
|
2337
|
+
"rounded-es": [{
|
|
2338
|
+
"rounded-es": scaleRadius()
|
|
2339
|
+
}],
|
|
2340
|
+
/**
|
|
2341
|
+
* Border Radius Top Left
|
|
2342
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
2343
|
+
*/
|
|
2344
|
+
"rounded-tl": [{
|
|
2345
|
+
"rounded-tl": scaleRadius()
|
|
2346
|
+
}],
|
|
2347
|
+
/**
|
|
2348
|
+
* Border Radius Top Right
|
|
2349
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
2350
|
+
*/
|
|
2351
|
+
"rounded-tr": [{
|
|
2352
|
+
"rounded-tr": scaleRadius()
|
|
2353
|
+
}],
|
|
2354
|
+
/**
|
|
2355
|
+
* Border Radius Bottom Right
|
|
2356
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
2357
|
+
*/
|
|
2358
|
+
"rounded-br": [{
|
|
2359
|
+
"rounded-br": scaleRadius()
|
|
2360
|
+
}],
|
|
2361
|
+
/**
|
|
2362
|
+
* Border Radius Bottom Left
|
|
2363
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
2364
|
+
*/
|
|
2365
|
+
"rounded-bl": [{
|
|
2366
|
+
"rounded-bl": scaleRadius()
|
|
2367
|
+
}],
|
|
2368
|
+
/**
|
|
2369
|
+
* Border Width
|
|
2370
|
+
* @see https://tailwindcss.com/docs/border-width
|
|
2371
|
+
*/
|
|
2372
|
+
"border-w": [{
|
|
2373
|
+
border: scaleBorderWidth()
|
|
2374
|
+
}],
|
|
2375
|
+
/**
|
|
2376
|
+
* Border Width X
|
|
2377
|
+
* @see https://tailwindcss.com/docs/border-width
|
|
2378
|
+
*/
|
|
2379
|
+
"border-w-x": [{
|
|
2380
|
+
"border-x": scaleBorderWidth()
|
|
2381
|
+
}],
|
|
2382
|
+
/**
|
|
2383
|
+
* Border Width Y
|
|
2384
|
+
* @see https://tailwindcss.com/docs/border-width
|
|
2385
|
+
*/
|
|
2386
|
+
"border-w-y": [{
|
|
2387
|
+
"border-y": scaleBorderWidth()
|
|
2388
|
+
}],
|
|
2389
|
+
/**
|
|
2390
|
+
* Border Width Start
|
|
2391
|
+
* @see https://tailwindcss.com/docs/border-width
|
|
2392
|
+
*/
|
|
2393
|
+
"border-w-s": [{
|
|
2394
|
+
"border-s": scaleBorderWidth()
|
|
2395
|
+
}],
|
|
2396
|
+
/**
|
|
2397
|
+
* Border Width End
|
|
2398
|
+
* @see https://tailwindcss.com/docs/border-width
|
|
2399
|
+
*/
|
|
2400
|
+
"border-w-e": [{
|
|
2401
|
+
"border-e": scaleBorderWidth()
|
|
2402
|
+
}],
|
|
2403
|
+
/**
|
|
2404
|
+
* Border Width Top
|
|
2405
|
+
* @see https://tailwindcss.com/docs/border-width
|
|
2406
|
+
*/
|
|
2407
|
+
"border-w-t": [{
|
|
2408
|
+
"border-t": scaleBorderWidth()
|
|
2409
|
+
}],
|
|
2410
|
+
/**
|
|
2411
|
+
* Border Width Right
|
|
2412
|
+
* @see https://tailwindcss.com/docs/border-width
|
|
2413
|
+
*/
|
|
2414
|
+
"border-w-r": [{
|
|
2415
|
+
"border-r": scaleBorderWidth()
|
|
2416
|
+
}],
|
|
2417
|
+
/**
|
|
2418
|
+
* Border Width Bottom
|
|
2419
|
+
* @see https://tailwindcss.com/docs/border-width
|
|
2420
|
+
*/
|
|
2421
|
+
"border-w-b": [{
|
|
2422
|
+
"border-b": scaleBorderWidth()
|
|
2423
|
+
}],
|
|
2424
|
+
/**
|
|
2425
|
+
* Border Width Left
|
|
2426
|
+
* @see https://tailwindcss.com/docs/border-width
|
|
2427
|
+
*/
|
|
2428
|
+
"border-w-l": [{
|
|
2429
|
+
"border-l": scaleBorderWidth()
|
|
2430
|
+
}],
|
|
2431
|
+
/**
|
|
2432
|
+
* Divide Width X
|
|
2433
|
+
* @see https://tailwindcss.com/docs/border-width#between-children
|
|
2434
|
+
*/
|
|
2435
|
+
"divide-x": [{
|
|
2436
|
+
"divide-x": scaleBorderWidth()
|
|
2437
|
+
}],
|
|
2438
|
+
/**
|
|
2439
|
+
* Divide Width X Reverse
|
|
2440
|
+
* @see https://tailwindcss.com/docs/border-width#between-children
|
|
2441
|
+
*/
|
|
2442
|
+
"divide-x-reverse": ["divide-x-reverse"],
|
|
2443
|
+
/**
|
|
2444
|
+
* Divide Width Y
|
|
2445
|
+
* @see https://tailwindcss.com/docs/border-width#between-children
|
|
2446
|
+
*/
|
|
2447
|
+
"divide-y": [{
|
|
2448
|
+
"divide-y": scaleBorderWidth()
|
|
2449
|
+
}],
|
|
2450
|
+
/**
|
|
2451
|
+
* Divide Width Y Reverse
|
|
2452
|
+
* @see https://tailwindcss.com/docs/border-width#between-children
|
|
2453
|
+
*/
|
|
2454
|
+
"divide-y-reverse": ["divide-y-reverse"],
|
|
2455
|
+
/**
|
|
2456
|
+
* Border Style
|
|
2457
|
+
* @see https://tailwindcss.com/docs/border-style
|
|
2458
|
+
*/
|
|
2459
|
+
"border-style": [{
|
|
2460
|
+
border: [...scaleLineStyle(), "hidden", "none"]
|
|
2461
|
+
}],
|
|
2462
|
+
/**
|
|
2463
|
+
* Divide Style
|
|
2464
|
+
* @see https://tailwindcss.com/docs/border-style#setting-the-divider-style
|
|
2465
|
+
*/
|
|
2466
|
+
"divide-style": [{
|
|
2467
|
+
divide: [...scaleLineStyle(), "hidden", "none"]
|
|
2468
|
+
}],
|
|
2469
|
+
/**
|
|
2470
|
+
* Border Color
|
|
2471
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
2472
|
+
*/
|
|
2473
|
+
"border-color": [{
|
|
2474
|
+
border: scaleColor()
|
|
2475
|
+
}],
|
|
2476
|
+
/**
|
|
2477
|
+
* Border Color X
|
|
2478
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
2479
|
+
*/
|
|
2480
|
+
"border-color-x": [{
|
|
2481
|
+
"border-x": scaleColor()
|
|
2482
|
+
}],
|
|
2483
|
+
/**
|
|
2484
|
+
* Border Color Y
|
|
2485
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
2486
|
+
*/
|
|
2487
|
+
"border-color-y": [{
|
|
2488
|
+
"border-y": scaleColor()
|
|
2489
|
+
}],
|
|
2490
|
+
/**
|
|
2491
|
+
* Border Color S
|
|
2492
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
2493
|
+
*/
|
|
2494
|
+
"border-color-s": [{
|
|
2495
|
+
"border-s": scaleColor()
|
|
2496
|
+
}],
|
|
2497
|
+
/**
|
|
2498
|
+
* Border Color E
|
|
2499
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
2500
|
+
*/
|
|
2501
|
+
"border-color-e": [{
|
|
2502
|
+
"border-e": scaleColor()
|
|
2503
|
+
}],
|
|
2504
|
+
/**
|
|
2505
|
+
* Border Color Top
|
|
2506
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
2507
|
+
*/
|
|
2508
|
+
"border-color-t": [{
|
|
2509
|
+
"border-t": scaleColor()
|
|
2510
|
+
}],
|
|
2511
|
+
/**
|
|
2512
|
+
* Border Color Right
|
|
2513
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
2514
|
+
*/
|
|
2515
|
+
"border-color-r": [{
|
|
2516
|
+
"border-r": scaleColor()
|
|
2517
|
+
}],
|
|
2518
|
+
/**
|
|
2519
|
+
* Border Color Bottom
|
|
2520
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
2521
|
+
*/
|
|
2522
|
+
"border-color-b": [{
|
|
2523
|
+
"border-b": scaleColor()
|
|
2524
|
+
}],
|
|
2525
|
+
/**
|
|
2526
|
+
* Border Color Left
|
|
2527
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
2528
|
+
*/
|
|
2529
|
+
"border-color-l": [{
|
|
2530
|
+
"border-l": scaleColor()
|
|
2531
|
+
}],
|
|
2532
|
+
/**
|
|
2533
|
+
* Divide Color
|
|
2534
|
+
* @see https://tailwindcss.com/docs/divide-color
|
|
2535
|
+
*/
|
|
2536
|
+
"divide-color": [{
|
|
2537
|
+
divide: scaleColor()
|
|
2538
|
+
}],
|
|
2539
|
+
/**
|
|
2540
|
+
* Outline Style
|
|
2541
|
+
* @see https://tailwindcss.com/docs/outline-style
|
|
2542
|
+
*/
|
|
2543
|
+
"outline-style": [{
|
|
2544
|
+
outline: [...scaleLineStyle(), "none", "hidden"]
|
|
2545
|
+
}],
|
|
2546
|
+
/**
|
|
2547
|
+
* Outline Offset
|
|
2548
|
+
* @see https://tailwindcss.com/docs/outline-offset
|
|
2549
|
+
*/
|
|
2550
|
+
"outline-offset": [{
|
|
2551
|
+
"outline-offset": [isNumber, isArbitraryVariable, isArbitraryValue]
|
|
2552
|
+
}],
|
|
2553
|
+
/**
|
|
2554
|
+
* Outline Width
|
|
2555
|
+
* @see https://tailwindcss.com/docs/outline-width
|
|
2556
|
+
*/
|
|
2557
|
+
"outline-w": [{
|
|
2558
|
+
outline: ["", isNumber, isArbitraryVariableLength, isArbitraryLength]
|
|
2559
|
+
}],
|
|
2560
|
+
/**
|
|
2561
|
+
* Outline Color
|
|
2562
|
+
* @see https://tailwindcss.com/docs/outline-color
|
|
2563
|
+
*/
|
|
2564
|
+
"outline-color": [{
|
|
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()
|
|
2604
|
+
}],
|
|
2605
|
+
/**
|
|
2606
|
+
* Ring Width
|
|
2607
|
+
* @see https://tailwindcss.com/docs/box-shadow#adding-a-ring
|
|
2608
|
+
*/
|
|
2609
|
+
"ring-w": [{
|
|
2610
|
+
ring: scaleBorderWidth()
|
|
2611
|
+
}],
|
|
2612
|
+
/**
|
|
2613
|
+
* Ring Width Inset
|
|
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
|
|
2617
|
+
*/
|
|
2618
|
+
"ring-w-inset": ["ring-inset"],
|
|
2619
|
+
/**
|
|
2620
|
+
* Ring Color
|
|
2621
|
+
* @see https://tailwindcss.com/docs/box-shadow#setting-the-ring-color
|
|
2622
|
+
*/
|
|
2623
|
+
"ring-color": [{
|
|
2624
|
+
ring: scaleColor()
|
|
2625
|
+
}],
|
|
2626
|
+
/**
|
|
2627
|
+
* 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
|
|
2631
|
+
*/
|
|
2632
|
+
"ring-offset-w": [{
|
|
2633
|
+
"ring-offset": [isNumber, isArbitraryLength]
|
|
2634
|
+
}],
|
|
2635
|
+
/**
|
|
2636
|
+
* 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
|
|
2640
|
+
*/
|
|
2641
|
+
"ring-offset-color": [{
|
|
2642
|
+
"ring-offset": scaleColor()
|
|
2643
|
+
}],
|
|
2644
|
+
/**
|
|
2645
|
+
* Inset Ring Width
|
|
2646
|
+
* @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-ring
|
|
2647
|
+
*/
|
|
2648
|
+
"inset-ring-w": [{
|
|
2649
|
+
"inset-ring": scaleBorderWidth()
|
|
2650
|
+
}],
|
|
2651
|
+
/**
|
|
2652
|
+
* Inset Ring Color
|
|
2653
|
+
* @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-ring-color
|
|
2654
|
+
*/
|
|
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()
|
|
2671
|
+
}],
|
|
2672
|
+
/**
|
|
2673
|
+
* Opacity
|
|
2674
|
+
* @see https://tailwindcss.com/docs/opacity
|
|
2675
|
+
*/
|
|
2676
|
+
opacity: [{
|
|
2677
|
+
opacity: [isNumber, isArbitraryVariable, isArbitraryValue]
|
|
2678
|
+
}],
|
|
2679
|
+
/**
|
|
2680
|
+
* Mix Blend Mode
|
|
2681
|
+
* @see https://tailwindcss.com/docs/mix-blend-mode
|
|
2682
|
+
*/
|
|
2683
|
+
"mix-blend": [{
|
|
2684
|
+
"mix-blend": [...scaleBlendMode(), "plus-darker", "plus-lighter"]
|
|
2685
|
+
}],
|
|
2686
|
+
/**
|
|
2687
|
+
* Background Blend Mode
|
|
2688
|
+
* @see https://tailwindcss.com/docs/background-blend-mode
|
|
2689
|
+
*/
|
|
2690
|
+
"bg-blend": [{
|
|
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"]
|
|
2706
|
+
}],
|
|
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
|
+
// ---------------
|
|
2892
|
+
/**
|
|
2893
|
+
* Filter
|
|
2894
|
+
* @see https://tailwindcss.com/docs/filter
|
|
2895
|
+
*/
|
|
2896
|
+
filter: [{
|
|
2897
|
+
filter: [
|
|
2898
|
+
// Deprecated since Tailwind CSS v3.0.0
|
|
2899
|
+
"",
|
|
2900
|
+
"none",
|
|
2901
|
+
isArbitraryVariable,
|
|
2902
|
+
isArbitraryValue
|
|
2903
|
+
]
|
|
2904
|
+
}],
|
|
2905
|
+
/**
|
|
2906
|
+
* Blur
|
|
2907
|
+
* @see https://tailwindcss.com/docs/blur
|
|
2908
|
+
*/
|
|
2909
|
+
blur: [{
|
|
2910
|
+
blur: scaleBlur()
|
|
2911
|
+
}],
|
|
2912
|
+
/**
|
|
2913
|
+
* Brightness
|
|
2914
|
+
* @see https://tailwindcss.com/docs/brightness
|
|
2915
|
+
*/
|
|
2916
|
+
brightness: [{
|
|
2917
|
+
brightness: [isNumber, isArbitraryVariable, isArbitraryValue]
|
|
2918
|
+
}],
|
|
2919
|
+
/**
|
|
2920
|
+
* Contrast
|
|
2921
|
+
* @see https://tailwindcss.com/docs/contrast
|
|
2922
|
+
*/
|
|
2923
|
+
contrast: [{
|
|
2924
|
+
contrast: [isNumber, isArbitraryVariable, isArbitraryValue]
|
|
2925
|
+
}],
|
|
2926
|
+
/**
|
|
2927
|
+
* Drop Shadow
|
|
2928
|
+
* @see https://tailwindcss.com/docs/drop-shadow
|
|
2929
|
+
*/
|
|
2930
|
+
"drop-shadow": [{
|
|
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()
|
|
2946
|
+
}],
|
|
2947
|
+
/**
|
|
2948
|
+
* Grayscale
|
|
2949
|
+
* @see https://tailwindcss.com/docs/grayscale
|
|
2950
|
+
*/
|
|
2951
|
+
grayscale: [{
|
|
2952
|
+
grayscale: ["", isNumber, isArbitraryVariable, isArbitraryValue]
|
|
2953
|
+
}],
|
|
2954
|
+
/**
|
|
2955
|
+
* Hue Rotate
|
|
2956
|
+
* @see https://tailwindcss.com/docs/hue-rotate
|
|
2957
|
+
*/
|
|
2958
|
+
"hue-rotate": [{
|
|
2959
|
+
"hue-rotate": [isNumber, isArbitraryVariable, isArbitraryValue]
|
|
2960
|
+
}],
|
|
2961
|
+
/**
|
|
2962
|
+
* Invert
|
|
2963
|
+
* @see https://tailwindcss.com/docs/invert
|
|
2964
|
+
*/
|
|
2965
|
+
invert: [{
|
|
2966
|
+
invert: ["", isNumber, isArbitraryVariable, isArbitraryValue]
|
|
2967
|
+
}],
|
|
2968
|
+
/**
|
|
2969
|
+
* Saturate
|
|
2970
|
+
* @see https://tailwindcss.com/docs/saturate
|
|
2971
|
+
*/
|
|
2972
|
+
saturate: [{
|
|
2973
|
+
saturate: [isNumber, isArbitraryVariable, isArbitraryValue]
|
|
2974
|
+
}],
|
|
2975
|
+
/**
|
|
2976
|
+
* Sepia
|
|
2977
|
+
* @see https://tailwindcss.com/docs/sepia
|
|
2978
|
+
*/
|
|
2979
|
+
sepia: [{
|
|
2980
|
+
sepia: ["", isNumber, isArbitraryVariable, isArbitraryValue]
|
|
2981
|
+
}],
|
|
2982
|
+
/**
|
|
2983
|
+
* Backdrop Filter
|
|
2984
|
+
* @see https://tailwindcss.com/docs/backdrop-filter
|
|
2985
|
+
*/
|
|
2986
|
+
"backdrop-filter": [{
|
|
2987
|
+
"backdrop-filter": [
|
|
2988
|
+
// Deprecated since Tailwind CSS v3.0.0
|
|
2989
|
+
"",
|
|
2990
|
+
"none",
|
|
2991
|
+
isArbitraryVariable,
|
|
2992
|
+
isArbitraryValue
|
|
2993
|
+
]
|
|
2994
|
+
}],
|
|
2995
|
+
/**
|
|
2996
|
+
* Backdrop Blur
|
|
2997
|
+
* @see https://tailwindcss.com/docs/backdrop-blur
|
|
2998
|
+
*/
|
|
2999
|
+
"backdrop-blur": [{
|
|
3000
|
+
"backdrop-blur": scaleBlur()
|
|
3001
|
+
}],
|
|
3002
|
+
/**
|
|
3003
|
+
* Backdrop Brightness
|
|
3004
|
+
* @see https://tailwindcss.com/docs/backdrop-brightness
|
|
3005
|
+
*/
|
|
3006
|
+
"backdrop-brightness": [{
|
|
3007
|
+
"backdrop-brightness": [isNumber, isArbitraryVariable, isArbitraryValue]
|
|
3008
|
+
}],
|
|
3009
|
+
/**
|
|
3010
|
+
* Backdrop Contrast
|
|
3011
|
+
* @see https://tailwindcss.com/docs/backdrop-contrast
|
|
3012
|
+
*/
|
|
3013
|
+
"backdrop-contrast": [{
|
|
3014
|
+
"backdrop-contrast": [isNumber, isArbitraryVariable, isArbitraryValue]
|
|
3015
|
+
}],
|
|
3016
|
+
/**
|
|
3017
|
+
* Backdrop Grayscale
|
|
3018
|
+
* @see https://tailwindcss.com/docs/backdrop-grayscale
|
|
3019
|
+
*/
|
|
3020
|
+
"backdrop-grayscale": [{
|
|
3021
|
+
"backdrop-grayscale": ["", isNumber, isArbitraryVariable, isArbitraryValue]
|
|
3022
|
+
}],
|
|
3023
|
+
/**
|
|
3024
|
+
* Backdrop Hue Rotate
|
|
3025
|
+
* @see https://tailwindcss.com/docs/backdrop-hue-rotate
|
|
3026
|
+
*/
|
|
3027
|
+
"backdrop-hue-rotate": [{
|
|
3028
|
+
"backdrop-hue-rotate": [isNumber, isArbitraryVariable, isArbitraryValue]
|
|
3029
|
+
}],
|
|
3030
|
+
/**
|
|
3031
|
+
* Backdrop Invert
|
|
3032
|
+
* @see https://tailwindcss.com/docs/backdrop-invert
|
|
3033
|
+
*/
|
|
3034
|
+
"backdrop-invert": [{
|
|
3035
|
+
"backdrop-invert": ["", isNumber, isArbitraryVariable, isArbitraryValue]
|
|
3036
|
+
}],
|
|
3037
|
+
/**
|
|
3038
|
+
* Backdrop Opacity
|
|
3039
|
+
* @see https://tailwindcss.com/docs/backdrop-opacity
|
|
3040
|
+
*/
|
|
3041
|
+
"backdrop-opacity": [{
|
|
3042
|
+
"backdrop-opacity": [isNumber, isArbitraryVariable, isArbitraryValue]
|
|
3043
|
+
}],
|
|
3044
|
+
/**
|
|
3045
|
+
* Backdrop Saturate
|
|
3046
|
+
* @see https://tailwindcss.com/docs/backdrop-saturate
|
|
3047
|
+
*/
|
|
3048
|
+
"backdrop-saturate": [{
|
|
3049
|
+
"backdrop-saturate": [isNumber, isArbitraryVariable, isArbitraryValue]
|
|
3050
|
+
}],
|
|
3051
|
+
/**
|
|
3052
|
+
* Backdrop Sepia
|
|
3053
|
+
* @see https://tailwindcss.com/docs/backdrop-sepia
|
|
3054
|
+
*/
|
|
3055
|
+
"backdrop-sepia": [{
|
|
3056
|
+
"backdrop-sepia": ["", isNumber, isArbitraryVariable, isArbitraryValue]
|
|
3057
|
+
}],
|
|
3058
|
+
// --------------
|
|
3059
|
+
// --- Tables ---
|
|
3060
|
+
// --------------
|
|
3061
|
+
/**
|
|
3062
|
+
* Border Collapse
|
|
3063
|
+
* @see https://tailwindcss.com/docs/border-collapse
|
|
3064
|
+
*/
|
|
3065
|
+
"border-collapse": [{
|
|
3066
|
+
border: ["collapse", "separate"]
|
|
3067
|
+
}],
|
|
3068
|
+
/**
|
|
3069
|
+
* Border Spacing
|
|
3070
|
+
* @see https://tailwindcss.com/docs/border-spacing
|
|
3071
|
+
*/
|
|
3072
|
+
"border-spacing": [{
|
|
3073
|
+
"border-spacing": scaleUnambiguousSpacing()
|
|
3074
|
+
}],
|
|
3075
|
+
/**
|
|
3076
|
+
* Border Spacing X
|
|
3077
|
+
* @see https://tailwindcss.com/docs/border-spacing
|
|
3078
|
+
*/
|
|
3079
|
+
"border-spacing-x": [{
|
|
3080
|
+
"border-spacing-x": scaleUnambiguousSpacing()
|
|
3081
|
+
}],
|
|
3082
|
+
/**
|
|
3083
|
+
* Border Spacing Y
|
|
3084
|
+
* @see https://tailwindcss.com/docs/border-spacing
|
|
3085
|
+
*/
|
|
3086
|
+
"border-spacing-y": [{
|
|
3087
|
+
"border-spacing-y": scaleUnambiguousSpacing()
|
|
3088
|
+
}],
|
|
3089
|
+
/**
|
|
3090
|
+
* Table Layout
|
|
3091
|
+
* @see https://tailwindcss.com/docs/table-layout
|
|
3092
|
+
*/
|
|
3093
|
+
"table-layout": [{
|
|
3094
|
+
table: ["auto", "fixed"]
|
|
3095
|
+
}],
|
|
3096
|
+
/**
|
|
3097
|
+
* Caption Side
|
|
3098
|
+
* @see https://tailwindcss.com/docs/caption-side
|
|
3099
|
+
*/
|
|
3100
|
+
caption: [{
|
|
3101
|
+
caption: ["top", "bottom"]
|
|
3102
|
+
}],
|
|
3103
|
+
// ---------------------------------
|
|
3104
|
+
// --- Transitions and Animation ---
|
|
3105
|
+
// ---------------------------------
|
|
3106
|
+
/**
|
|
3107
|
+
* Transition Property
|
|
3108
|
+
* @see https://tailwindcss.com/docs/transition-property
|
|
3109
|
+
*/
|
|
3110
|
+
transition: [{
|
|
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"]
|
|
3119
|
+
}],
|
|
3120
|
+
/**
|
|
3121
|
+
* Transition Duration
|
|
3122
|
+
* @see https://tailwindcss.com/docs/transition-duration
|
|
3123
|
+
*/
|
|
3124
|
+
duration: [{
|
|
3125
|
+
duration: [isNumber, "initial", isArbitraryVariable, isArbitraryValue]
|
|
3126
|
+
}],
|
|
3127
|
+
/**
|
|
3128
|
+
* Transition Timing Function
|
|
3129
|
+
* @see https://tailwindcss.com/docs/transition-timing-function
|
|
3130
|
+
*/
|
|
3131
|
+
ease: [{
|
|
3132
|
+
ease: ["linear", "initial", themeEase, isArbitraryVariable, isArbitraryValue]
|
|
3133
|
+
}],
|
|
3134
|
+
/**
|
|
3135
|
+
* Transition Delay
|
|
3136
|
+
* @see https://tailwindcss.com/docs/transition-delay
|
|
3137
|
+
*/
|
|
3138
|
+
delay: [{
|
|
3139
|
+
delay: [isNumber, isArbitraryVariable, isArbitraryValue]
|
|
3140
|
+
}],
|
|
3141
|
+
/**
|
|
3142
|
+
* Animation
|
|
3143
|
+
* @see https://tailwindcss.com/docs/animation
|
|
3144
|
+
*/
|
|
3145
|
+
animate: [{
|
|
3146
|
+
animate: ["none", themeAnimate, isArbitraryVariable, isArbitraryValue]
|
|
3147
|
+
}],
|
|
3148
|
+
// ------------------
|
|
3149
|
+
// --- Transforms ---
|
|
3150
|
+
// ------------------
|
|
3151
|
+
/**
|
|
3152
|
+
* Backface Visibility
|
|
3153
|
+
* @see https://tailwindcss.com/docs/backface-visibility
|
|
3154
|
+
*/
|
|
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()
|
|
3199
|
+
}],
|
|
3200
|
+
/**
|
|
3201
|
+
* Scale
|
|
3202
|
+
* @see https://tailwindcss.com/docs/scale
|
|
3203
|
+
*/
|
|
3204
|
+
scale: [{
|
|
3205
|
+
scale: scaleScale()
|
|
3206
|
+
}],
|
|
3207
|
+
/**
|
|
3208
|
+
* Scale X
|
|
3209
|
+
* @see https://tailwindcss.com/docs/scale
|
|
3210
|
+
*/
|
|
3211
|
+
"scale-x": [{
|
|
3212
|
+
"scale-x": scaleScale()
|
|
3213
|
+
}],
|
|
3214
|
+
/**
|
|
3215
|
+
* Scale Y
|
|
3216
|
+
* @see https://tailwindcss.com/docs/scale
|
|
3217
|
+
*/
|
|
3218
|
+
"scale-y": [{
|
|
3219
|
+
"scale-y": scaleScale()
|
|
3220
|
+
}],
|
|
3221
|
+
/**
|
|
3222
|
+
* Scale Z
|
|
3223
|
+
* @see https://tailwindcss.com/docs/scale
|
|
3224
|
+
*/
|
|
3225
|
+
"scale-z": [{
|
|
3226
|
+
"scale-z": scaleScale()
|
|
3227
|
+
}],
|
|
3228
|
+
/**
|
|
3229
|
+
* Scale 3D
|
|
3230
|
+
* @see https://tailwindcss.com/docs/scale
|
|
3231
|
+
*/
|
|
3232
|
+
"scale-3d": ["scale-3d"],
|
|
3233
|
+
/**
|
|
3234
|
+
* Skew
|
|
3235
|
+
* @see https://tailwindcss.com/docs/skew
|
|
3236
|
+
*/
|
|
3237
|
+
skew: [{
|
|
3238
|
+
skew: scaleSkew()
|
|
3239
|
+
}],
|
|
3240
|
+
/**
|
|
3241
|
+
* Skew X
|
|
3242
|
+
* @see https://tailwindcss.com/docs/skew
|
|
3243
|
+
*/
|
|
3244
|
+
"skew-x": [{
|
|
3245
|
+
"skew-x": scaleSkew()
|
|
3246
|
+
}],
|
|
3247
|
+
/**
|
|
3248
|
+
* Skew Y
|
|
3249
|
+
* @see https://tailwindcss.com/docs/skew
|
|
3250
|
+
*/
|
|
3251
|
+
"skew-y": [{
|
|
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"]
|
|
3260
|
+
}],
|
|
3261
|
+
/**
|
|
3262
|
+
* Transform Origin
|
|
3263
|
+
* @see https://tailwindcss.com/docs/transform-origin
|
|
3264
|
+
*/
|
|
3265
|
+
"transform-origin": [{
|
|
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()
|
|
3281
|
+
}],
|
|
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
|
+
// ---------------------
|
|
3311
|
+
/**
|
|
3312
|
+
* Accent Color
|
|
3313
|
+
* @see https://tailwindcss.com/docs/accent-color
|
|
3314
|
+
*/
|
|
3315
|
+
accent: [{
|
|
3316
|
+
accent: scaleColor()
|
|
3317
|
+
}],
|
|
3318
|
+
/**
|
|
3319
|
+
* Appearance
|
|
3320
|
+
* @see https://tailwindcss.com/docs/appearance
|
|
3321
|
+
*/
|
|
3322
|
+
appearance: [{
|
|
3323
|
+
appearance: ["none", "auto"]
|
|
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
|
+
}],
|
|
3339
|
+
/**
|
|
3340
|
+
* Cursor
|
|
3341
|
+
* @see https://tailwindcss.com/docs/cursor
|
|
3342
|
+
*/
|
|
3343
|
+
cursor: [{
|
|
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]
|
|
3345
|
+
}],
|
|
3346
|
+
/**
|
|
3347
|
+
* Field Sizing
|
|
3348
|
+
* @see https://tailwindcss.com/docs/field-sizing
|
|
3349
|
+
*/
|
|
3350
|
+
"field-sizing": [{
|
|
3351
|
+
"field-sizing": ["fixed", "content"]
|
|
3352
|
+
}],
|
|
3353
|
+
/**
|
|
3354
|
+
* Pointer Events
|
|
3355
|
+
* @see https://tailwindcss.com/docs/pointer-events
|
|
3356
|
+
*/
|
|
3357
|
+
"pointer-events": [{
|
|
3358
|
+
"pointer-events": ["auto", "none"]
|
|
3359
|
+
}],
|
|
3360
|
+
/**
|
|
3361
|
+
* Resize
|
|
3362
|
+
* @see https://tailwindcss.com/docs/resize
|
|
3363
|
+
*/
|
|
3364
|
+
resize: [{
|
|
3365
|
+
resize: ["none", "", "y", "x"]
|
|
3366
|
+
}],
|
|
3367
|
+
/**
|
|
3368
|
+
* Scroll Behavior
|
|
3369
|
+
* @see https://tailwindcss.com/docs/scroll-behavior
|
|
3370
|
+
*/
|
|
3371
|
+
"scroll-behavior": [{
|
|
3372
|
+
scroll: ["auto", "smooth"]
|
|
3373
|
+
}],
|
|
3374
|
+
/**
|
|
3375
|
+
* Scroll Margin
|
|
3376
|
+
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3377
|
+
*/
|
|
3378
|
+
"scroll-m": [{
|
|
3379
|
+
"scroll-m": scaleUnambiguousSpacing()
|
|
3380
|
+
}],
|
|
3381
|
+
/**
|
|
3382
|
+
* Scroll Margin X
|
|
3383
|
+
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3384
|
+
*/
|
|
3385
|
+
"scroll-mx": [{
|
|
3386
|
+
"scroll-mx": scaleUnambiguousSpacing()
|
|
3387
|
+
}],
|
|
3388
|
+
/**
|
|
3389
|
+
* Scroll Margin Y
|
|
3390
|
+
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3391
|
+
*/
|
|
3392
|
+
"scroll-my": [{
|
|
3393
|
+
"scroll-my": scaleUnambiguousSpacing()
|
|
3394
|
+
}],
|
|
3395
|
+
/**
|
|
3396
|
+
* Scroll Margin Start
|
|
3397
|
+
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3398
|
+
*/
|
|
3399
|
+
"scroll-ms": [{
|
|
3400
|
+
"scroll-ms": scaleUnambiguousSpacing()
|
|
3401
|
+
}],
|
|
3402
|
+
/**
|
|
3403
|
+
* Scroll Margin End
|
|
3404
|
+
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3405
|
+
*/
|
|
3406
|
+
"scroll-me": [{
|
|
3407
|
+
"scroll-me": scaleUnambiguousSpacing()
|
|
3408
|
+
}],
|
|
3409
|
+
/**
|
|
3410
|
+
* Scroll Margin Top
|
|
3411
|
+
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3412
|
+
*/
|
|
3413
|
+
"scroll-mt": [{
|
|
3414
|
+
"scroll-mt": scaleUnambiguousSpacing()
|
|
3415
|
+
}],
|
|
3416
|
+
/**
|
|
3417
|
+
* Scroll Margin Right
|
|
3418
|
+
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3419
|
+
*/
|
|
3420
|
+
"scroll-mr": [{
|
|
3421
|
+
"scroll-mr": scaleUnambiguousSpacing()
|
|
3422
|
+
}],
|
|
3423
|
+
/**
|
|
3424
|
+
* Scroll Margin Bottom
|
|
3425
|
+
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3426
|
+
*/
|
|
3427
|
+
"scroll-mb": [{
|
|
3428
|
+
"scroll-mb": scaleUnambiguousSpacing()
|
|
3429
|
+
}],
|
|
3430
|
+
/**
|
|
3431
|
+
* Scroll Margin Left
|
|
3432
|
+
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3433
|
+
*/
|
|
3434
|
+
"scroll-ml": [{
|
|
3435
|
+
"scroll-ml": scaleUnambiguousSpacing()
|
|
3436
|
+
}],
|
|
3437
|
+
/**
|
|
3438
|
+
* Scroll Padding
|
|
3439
|
+
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3440
|
+
*/
|
|
3441
|
+
"scroll-p": [{
|
|
3442
|
+
"scroll-p": scaleUnambiguousSpacing()
|
|
3443
|
+
}],
|
|
3444
|
+
/**
|
|
3445
|
+
* Scroll Padding X
|
|
3446
|
+
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3447
|
+
*/
|
|
3448
|
+
"scroll-px": [{
|
|
3449
|
+
"scroll-px": scaleUnambiguousSpacing()
|
|
3450
|
+
}],
|
|
3451
|
+
/**
|
|
3452
|
+
* Scroll Padding Y
|
|
3453
|
+
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3454
|
+
*/
|
|
3455
|
+
"scroll-py": [{
|
|
3456
|
+
"scroll-py": scaleUnambiguousSpacing()
|
|
3457
|
+
}],
|
|
3458
|
+
/**
|
|
3459
|
+
* Scroll Padding Start
|
|
3460
|
+
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3461
|
+
*/
|
|
3462
|
+
"scroll-ps": [{
|
|
3463
|
+
"scroll-ps": scaleUnambiguousSpacing()
|
|
3464
|
+
}],
|
|
3465
|
+
/**
|
|
3466
|
+
* Scroll Padding End
|
|
3467
|
+
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3468
|
+
*/
|
|
3469
|
+
"scroll-pe": [{
|
|
3470
|
+
"scroll-pe": scaleUnambiguousSpacing()
|
|
3471
|
+
}],
|
|
3472
|
+
/**
|
|
3473
|
+
* Scroll Padding Top
|
|
3474
|
+
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3475
|
+
*/
|
|
3476
|
+
"scroll-pt": [{
|
|
3477
|
+
"scroll-pt": scaleUnambiguousSpacing()
|
|
3478
|
+
}],
|
|
3479
|
+
/**
|
|
3480
|
+
* Scroll Padding Right
|
|
3481
|
+
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3482
|
+
*/
|
|
3483
|
+
"scroll-pr": [{
|
|
3484
|
+
"scroll-pr": scaleUnambiguousSpacing()
|
|
3485
|
+
}],
|
|
3486
|
+
/**
|
|
3487
|
+
* Scroll Padding Bottom
|
|
3488
|
+
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3489
|
+
*/
|
|
3490
|
+
"scroll-pb": [{
|
|
3491
|
+
"scroll-pb": scaleUnambiguousSpacing()
|
|
3492
|
+
}],
|
|
3493
|
+
/**
|
|
3494
|
+
* Scroll Padding Left
|
|
3495
|
+
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3496
|
+
*/
|
|
3497
|
+
"scroll-pl": [{
|
|
3498
|
+
"scroll-pl": scaleUnambiguousSpacing()
|
|
3499
|
+
}],
|
|
3500
|
+
/**
|
|
3501
|
+
* Scroll Snap Align
|
|
3502
|
+
* @see https://tailwindcss.com/docs/scroll-snap-align
|
|
3503
|
+
*/
|
|
3504
|
+
"snap-align": [{
|
|
3505
|
+
snap: ["start", "end", "center", "align-none"]
|
|
3506
|
+
}],
|
|
3507
|
+
/**
|
|
3508
|
+
* Scroll Snap Stop
|
|
3509
|
+
* @see https://tailwindcss.com/docs/scroll-snap-stop
|
|
3510
|
+
*/
|
|
3511
|
+
"snap-stop": [{
|
|
3512
|
+
snap: ["normal", "always"]
|
|
3513
|
+
}],
|
|
3514
|
+
/**
|
|
3515
|
+
* Scroll Snap Type
|
|
3516
|
+
* @see https://tailwindcss.com/docs/scroll-snap-type
|
|
3517
|
+
*/
|
|
3518
|
+
"snap-type": [{
|
|
3519
|
+
snap: ["none", "x", "y", "both"]
|
|
3520
|
+
}],
|
|
3521
|
+
/**
|
|
3522
|
+
* Scroll Snap Type Strictness
|
|
3523
|
+
* @see https://tailwindcss.com/docs/scroll-snap-type
|
|
3524
|
+
*/
|
|
3525
|
+
"snap-strictness": [{
|
|
3526
|
+
snap: ["mandatory", "proximity"]
|
|
3527
|
+
}],
|
|
3528
|
+
/**
|
|
3529
|
+
* Touch Action
|
|
3530
|
+
* @see https://tailwindcss.com/docs/touch-action
|
|
3531
|
+
*/
|
|
3532
|
+
touch: [{
|
|
3533
|
+
touch: ["auto", "none", "manipulation"]
|
|
3534
|
+
}],
|
|
3535
|
+
/**
|
|
3536
|
+
* Touch Action X
|
|
3537
|
+
* @see https://tailwindcss.com/docs/touch-action
|
|
3538
|
+
*/
|
|
3539
|
+
"touch-x": [{
|
|
3540
|
+
"touch-pan": ["x", "left", "right"]
|
|
3541
|
+
}],
|
|
3542
|
+
/**
|
|
3543
|
+
* Touch Action Y
|
|
3544
|
+
* @see https://tailwindcss.com/docs/touch-action
|
|
3545
|
+
*/
|
|
3546
|
+
"touch-y": [{
|
|
3547
|
+
"touch-pan": ["y", "up", "down"]
|
|
3548
|
+
}],
|
|
3549
|
+
/**
|
|
3550
|
+
* Touch Action Pinch Zoom
|
|
3551
|
+
* @see https://tailwindcss.com/docs/touch-action
|
|
3552
|
+
*/
|
|
3553
|
+
"touch-pz": ["touch-pinch-zoom"],
|
|
3554
|
+
/**
|
|
3555
|
+
* User Select
|
|
3556
|
+
* @see https://tailwindcss.com/docs/user-select
|
|
3557
|
+
*/
|
|
3558
|
+
select: [{
|
|
3559
|
+
select: ["none", "text", "all", "auto"]
|
|
3560
|
+
}],
|
|
3561
|
+
/**
|
|
3562
|
+
* Will Change
|
|
3563
|
+
* @see https://tailwindcss.com/docs/will-change
|
|
3564
|
+
*/
|
|
3565
|
+
"will-change": [{
|
|
3566
|
+
"will-change": ["auto", "scroll", "contents", "transform", isArbitraryVariable, isArbitraryValue]
|
|
3567
|
+
}],
|
|
3568
|
+
// -----------
|
|
3569
|
+
// --- SVG ---
|
|
3570
|
+
// -----------
|
|
3571
|
+
/**
|
|
3572
|
+
* Fill
|
|
3573
|
+
* @see https://tailwindcss.com/docs/fill
|
|
3574
|
+
*/
|
|
3575
|
+
fill: [{
|
|
3576
|
+
fill: ["none", ...scaleColor()]
|
|
3577
|
+
}],
|
|
3578
|
+
/**
|
|
3579
|
+
* Stroke Width
|
|
3580
|
+
* @see https://tailwindcss.com/docs/stroke-width
|
|
3581
|
+
*/
|
|
3582
|
+
"stroke-w": [{
|
|
3583
|
+
stroke: [isNumber, isArbitraryVariableLength, isArbitraryLength, isArbitraryNumber]
|
|
3584
|
+
}],
|
|
3585
|
+
/**
|
|
3586
|
+
* Stroke
|
|
3587
|
+
* @see https://tailwindcss.com/docs/stroke
|
|
3588
|
+
*/
|
|
3589
|
+
stroke: [{
|
|
3590
|
+
stroke: ["none", ...scaleColor()]
|
|
3591
|
+
}],
|
|
3592
|
+
// ---------------------
|
|
3593
|
+
// --- Accessibility ---
|
|
3594
|
+
// ---------------------
|
|
3595
|
+
/**
|
|
3596
|
+
* Forced Color Adjust
|
|
3597
|
+
* @see https://tailwindcss.com/docs/forced-color-adjust
|
|
3598
|
+
*/
|
|
3599
|
+
"forced-color-adjust": [{
|
|
3600
|
+
"forced-color-adjust": ["auto", "none"]
|
|
3601
|
+
}]
|
|
3602
|
+
},
|
|
3603
|
+
conflictingClassGroups: {
|
|
3604
|
+
overflow: ["overflow-x", "overflow-y"],
|
|
3605
|
+
overscroll: ["overscroll-x", "overscroll-y"],
|
|
3606
|
+
inset: ["inset-x", "inset-y", "start", "end", "top", "right", "bottom", "left"],
|
|
3607
|
+
"inset-x": ["right", "left"],
|
|
3608
|
+
"inset-y": ["top", "bottom"],
|
|
3609
|
+
flex: ["basis", "grow", "shrink"],
|
|
3610
|
+
gap: ["gap-x", "gap-y"],
|
|
3611
|
+
p: ["px", "py", "ps", "pe", "pt", "pr", "pb", "pl"],
|
|
3612
|
+
px: ["pr", "pl"],
|
|
3613
|
+
py: ["pt", "pb"],
|
|
3614
|
+
m: ["mx", "my", "ms", "me", "mt", "mr", "mb", "ml"],
|
|
3615
|
+
mx: ["mr", "ml"],
|
|
3616
|
+
my: ["mt", "mb"],
|
|
3617
|
+
size: ["w", "h"],
|
|
3618
|
+
"font-size": ["leading"],
|
|
3619
|
+
"fvn-normal": ["fvn-ordinal", "fvn-slashed-zero", "fvn-figure", "fvn-spacing", "fvn-fraction"],
|
|
3620
|
+
"fvn-ordinal": ["fvn-normal"],
|
|
3621
|
+
"fvn-slashed-zero": ["fvn-normal"],
|
|
3622
|
+
"fvn-figure": ["fvn-normal"],
|
|
3623
|
+
"fvn-spacing": ["fvn-normal"],
|
|
3624
|
+
"fvn-fraction": ["fvn-normal"],
|
|
3625
|
+
"line-clamp": ["display", "overflow"],
|
|
3626
|
+
rounded: ["rounded-s", "rounded-e", "rounded-t", "rounded-r", "rounded-b", "rounded-l", "rounded-ss", "rounded-se", "rounded-ee", "rounded-es", "rounded-tl", "rounded-tr", "rounded-br", "rounded-bl"],
|
|
3627
|
+
"rounded-s": ["rounded-ss", "rounded-es"],
|
|
3628
|
+
"rounded-e": ["rounded-se", "rounded-ee"],
|
|
3629
|
+
"rounded-t": ["rounded-tl", "rounded-tr"],
|
|
3630
|
+
"rounded-r": ["rounded-tr", "rounded-br"],
|
|
3631
|
+
"rounded-b": ["rounded-br", "rounded-bl"],
|
|
3632
|
+
"rounded-l": ["rounded-tl", "rounded-bl"],
|
|
3633
|
+
"border-spacing": ["border-spacing-x", "border-spacing-y"],
|
|
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"],
|
|
3635
|
+
"border-w-x": ["border-w-r", "border-w-l"],
|
|
3636
|
+
"border-w-y": ["border-w-t", "border-w-b"],
|
|
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"],
|
|
3638
|
+
"border-color-x": ["border-color-r", "border-color-l"],
|
|
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"],
|
|
3642
|
+
"scroll-m": ["scroll-mx", "scroll-my", "scroll-ms", "scroll-me", "scroll-mt", "scroll-mr", "scroll-mb", "scroll-ml"],
|
|
3643
|
+
"scroll-mx": ["scroll-mr", "scroll-ml"],
|
|
3644
|
+
"scroll-my": ["scroll-mt", "scroll-mb"],
|
|
3645
|
+
"scroll-p": ["scroll-px", "scroll-py", "scroll-ps", "scroll-pe", "scroll-pt", "scroll-pr", "scroll-pb", "scroll-pl"],
|
|
3646
|
+
"scroll-px": ["scroll-pr", "scroll-pl"],
|
|
3647
|
+
"scroll-py": ["scroll-pt", "scroll-pb"],
|
|
3648
|
+
touch: ["touch-x", "touch-y", "touch-pz"],
|
|
3649
|
+
"touch-x": ["touch"],
|
|
3650
|
+
"touch-y": ["touch"],
|
|
3651
|
+
"touch-pz": ["touch"]
|
|
3652
|
+
},
|
|
3653
|
+
conflictingClassGroupModifiers: {
|
|
3654
|
+
"font-size": ["leading"]
|
|
3655
|
+
},
|
|
3656
|
+
orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
|
|
3657
|
+
};
|
|
3658
|
+
};
|
|
3659
|
+
var mergeConfigs = (baseConfig, {
|
|
3660
|
+
cacheSize,
|
|
3661
|
+
prefix,
|
|
3662
|
+
experimentalParseClassName,
|
|
3663
|
+
extend = {},
|
|
3664
|
+
override = {}
|
|
3665
|
+
}) => {
|
|
3666
|
+
overrideProperty(baseConfig, "cacheSize", cacheSize);
|
|
3667
|
+
overrideProperty(baseConfig, "prefix", prefix);
|
|
3668
|
+
overrideProperty(baseConfig, "experimentalParseClassName", experimentalParseClassName);
|
|
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");
|
|
3679
|
+
return baseConfig;
|
|
3680
|
+
};
|
|
3681
|
+
var overrideProperty = (baseObject, overrideKey, overrideValue) => {
|
|
3682
|
+
if (overrideValue !== void 0) {
|
|
3683
|
+
baseObject[overrideKey] = overrideValue;
|
|
3684
|
+
}
|
|
3685
|
+
};
|
|
3686
|
+
var overrideConfigProperties = (baseObject, overrideObject) => {
|
|
3687
|
+
if (overrideObject) {
|
|
3688
|
+
for (const key in overrideObject) {
|
|
3689
|
+
overrideProperty(baseObject, key, overrideObject[key]);
|
|
3690
|
+
}
|
|
3691
|
+
}
|
|
3692
|
+
};
|
|
3693
|
+
var mergeConfigProperties = (baseObject, mergeObject) => {
|
|
3694
|
+
if (mergeObject) {
|
|
3695
|
+
for (const key in mergeObject) {
|
|
3696
|
+
mergeArrayProperties(baseObject, mergeObject, key);
|
|
3697
|
+
}
|
|
3698
|
+
}
|
|
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
|
+
};
|
|
3706
|
+
var extendTailwindMerge = (configExtension, ...createConfig) => typeof configExtension === "function" ? createTailwindMerge(getDefaultConfig, configExtension, ...createConfig) : createTailwindMerge(() => mergeConfigs(getDefaultConfig(), configExtension), ...createConfig);
|
|
3707
|
+
|
|
3708
|
+
// src/editor/utils/classname.ts
|
|
708
3709
|
var twMerge = extendTailwindMerge({
|
|
709
|
-
prefix: "mly
|
|
3710
|
+
prefix: "mly"
|
|
710
3711
|
});
|
|
711
3712
|
function cn(...inputs) {
|
|
712
3713
|
return twMerge(clsx(inputs));
|
|
@@ -729,7 +3730,7 @@ var Input = React.forwardRef(
|
|
|
729
3730
|
__spreadValues(__spreadProps(__spreadValues({}, AUTOCOMPLETE_PASSWORD_MANAGERS_OFF), {
|
|
730
3731
|
type,
|
|
731
3732
|
className: cn(
|
|
732
|
-
"mly
|
|
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",
|
|
733
3734
|
"mly-editor",
|
|
734
3735
|
className
|
|
735
3736
|
),
|
|
@@ -746,22 +3747,28 @@ import * as PopoverPrimitive from "@radix-ui/react-popover";
|
|
|
746
3747
|
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
747
3748
|
var Popover = PopoverPrimitive.Root;
|
|
748
3749
|
var PopoverTrigger = PopoverPrimitive.Trigger;
|
|
749
|
-
var PopoverContent = React2.forwardRef(
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
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
|
+
);
|
|
765
3772
|
PopoverContent.displayName = PopoverPrimitive.Content.displayName;
|
|
766
3773
|
|
|
767
3774
|
// src/editor/components/textarea.tsx
|
|
@@ -774,7 +3781,7 @@ var Textarea = React3.forwardRef(
|
|
|
774
3781
|
"textarea",
|
|
775
3782
|
__spreadValues({
|
|
776
3783
|
className: cn(
|
|
777
|
-
"mly
|
|
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",
|
|
778
3785
|
"mly-editor",
|
|
779
3786
|
className
|
|
780
3787
|
),
|
|
@@ -806,27 +3813,27 @@ function LinkCardComponent(props) {
|
|
|
806
3813
|
const pos = getPos();
|
|
807
3814
|
editor.commands.setNodeSelection(pos);
|
|
808
3815
|
},
|
|
809
|
-
children: /* @__PURE__ */ jsxs("div", { className: "mly
|
|
810
|
-
image2 && /* @__PURE__ */ jsx4("div", { className: "mly
|
|
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(
|
|
811
3818
|
"img",
|
|
812
3819
|
{
|
|
813
3820
|
src: image2,
|
|
814
3821
|
alt: "link-card",
|
|
815
|
-
className: "mly
|
|
3822
|
+
className: "mly:no-prose mly:mb-0! mly:h-full mly:w-full mly:rounded-t-lg",
|
|
816
3823
|
draggable: editor.isEditable
|
|
817
3824
|
}
|
|
818
3825
|
) }),
|
|
819
|
-
/* @__PURE__ */ jsx4("div", { className: "mly
|
|
820
|
-
/* @__PURE__ */ jsxs("div", { className: "!mly
|
|
821
|
-
/* @__PURE__ */ jsx4("h2", { className: "!mly
|
|
822
|
-
badgeText && /* @__PURE__ */ jsx4("span", { className: "!mly
|
|
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 }),
|
|
823
3830
|
" ",
|
|
824
|
-
subTitle && !badgeText && /* @__PURE__ */ jsx4("span", { className: "!mly
|
|
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 })
|
|
825
3832
|
] }),
|
|
826
|
-
/* @__PURE__ */ jsxs("p", { className: "!mly
|
|
3833
|
+
/* @__PURE__ */ jsxs("p", { className: "!mly:my-0 mly:text-base! mly:text-gray-500", children: [
|
|
827
3834
|
description,
|
|
828
3835
|
" ",
|
|
829
|
-
linkTitle ? /* @__PURE__ */ jsx4("a", { href: link, className: "mly
|
|
3836
|
+
linkTitle ? /* @__PURE__ */ jsx4("a", { href: link, className: "mly:font-semibold", children: linkTitle }) : null
|
|
830
3837
|
] })
|
|
831
3838
|
] }) })
|
|
832
3839
|
] })
|
|
@@ -836,13 +3843,13 @@ function LinkCardComponent(props) {
|
|
|
836
3843
|
PopoverContent,
|
|
837
3844
|
{
|
|
838
3845
|
align: "end",
|
|
839
|
-
className: "mly
|
|
3846
|
+
className: "mly:flex mly:w-96 mly:flex-col mly:gap-2",
|
|
840
3847
|
sideOffset: 10,
|
|
841
3848
|
onOpenAutoFocus: (e) => e.preventDefault(),
|
|
842
3849
|
onCloseAutoFocus: (e) => e.preventDefault(),
|
|
843
3850
|
children: [
|
|
844
|
-
/* @__PURE__ */ jsxs("label", { className: "mly
|
|
845
|
-
/* @__PURE__ */ jsx4("span", { className: "mly
|
|
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" }),
|
|
846
3853
|
/* @__PURE__ */ jsx4(
|
|
847
3854
|
Input,
|
|
848
3855
|
{
|
|
@@ -857,8 +3864,8 @@ function LinkCardComponent(props) {
|
|
|
857
3864
|
}
|
|
858
3865
|
)
|
|
859
3866
|
] }),
|
|
860
|
-
/* @__PURE__ */ jsxs("label", { className: "mly
|
|
861
|
-
/* @__PURE__ */ jsx4("span", { className: "mly
|
|
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" }),
|
|
862
3869
|
/* @__PURE__ */ jsx4(
|
|
863
3870
|
Input,
|
|
864
3871
|
{
|
|
@@ -872,8 +3879,8 @@ function LinkCardComponent(props) {
|
|
|
872
3879
|
}
|
|
873
3880
|
)
|
|
874
3881
|
] }),
|
|
875
|
-
/* @__PURE__ */ jsxs("label", { className: "mly
|
|
876
|
-
/* @__PURE__ */ jsx4("span", { className: "mly
|
|
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" }),
|
|
877
3884
|
/* @__PURE__ */ jsx4(
|
|
878
3885
|
Textarea,
|
|
879
3886
|
{
|
|
@@ -887,9 +3894,9 @@ function LinkCardComponent(props) {
|
|
|
887
3894
|
}
|
|
888
3895
|
)
|
|
889
3896
|
] }),
|
|
890
|
-
/* @__PURE__ */ jsxs("div", { className: "mly
|
|
891
|
-
/* @__PURE__ */ jsxs("label", { className: "mly
|
|
892
|
-
/* @__PURE__ */ jsx4("span", { className: "mly
|
|
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" }),
|
|
893
3900
|
/* @__PURE__ */ jsx4(
|
|
894
3901
|
Input,
|
|
895
3902
|
{
|
|
@@ -903,8 +3910,8 @@ function LinkCardComponent(props) {
|
|
|
903
3910
|
}
|
|
904
3911
|
)
|
|
905
3912
|
] }),
|
|
906
|
-
/* @__PURE__ */ jsxs("label", { className: "mly
|
|
907
|
-
/* @__PURE__ */ jsx4("span", { className: "mly
|
|
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" }),
|
|
908
3915
|
/* @__PURE__ */ jsx4(
|
|
909
3916
|
Input,
|
|
910
3917
|
{
|
|
@@ -919,9 +3926,9 @@ function LinkCardComponent(props) {
|
|
|
919
3926
|
)
|
|
920
3927
|
] })
|
|
921
3928
|
] }),
|
|
922
|
-
/* @__PURE__ */ jsxs("div", { className: "mly
|
|
923
|
-
/* @__PURE__ */ jsxs("label", { className: "mly
|
|
924
|
-
/* @__PURE__ */ jsx4("span", { className: "mly
|
|
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" }),
|
|
925
3932
|
/* @__PURE__ */ jsx4(
|
|
926
3933
|
Input,
|
|
927
3934
|
{
|
|
@@ -935,8 +3942,8 @@ function LinkCardComponent(props) {
|
|
|
935
3942
|
}
|
|
936
3943
|
)
|
|
937
3944
|
] }),
|
|
938
|
-
/* @__PURE__ */ jsxs("label", { className: "mly
|
|
939
|
-
/* @__PURE__ */ jsx4("span", { className: "mly
|
|
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" }),
|
|
940
3947
|
/* @__PURE__ */ jsx4(
|
|
941
3948
|
Input,
|
|
942
3949
|
{
|
|
@@ -1025,7 +4032,7 @@ var LinkCardExtension = Node4.create({
|
|
|
1025
4032
|
},
|
|
1026
4033
|
addNodeView() {
|
|
1027
4034
|
return ReactNodeViewRenderer(LinkCardComponent, {
|
|
1028
|
-
className: "mly
|
|
4035
|
+
className: "mly:relative"
|
|
1029
4036
|
});
|
|
1030
4037
|
}
|
|
1031
4038
|
});
|
|
@@ -1241,7 +4248,7 @@ var ColumnsExtension = Node7.create({
|
|
|
1241
4248
|
"div",
|
|
1242
4249
|
mergeAttributes6(HTMLAttributes2, {
|
|
1243
4250
|
"data-type": "columns",
|
|
1244
|
-
class: "mly
|
|
4251
|
+
class: "mly:relative"
|
|
1245
4252
|
}),
|
|
1246
4253
|
0
|
|
1247
4254
|
];
|
|
@@ -1290,20 +4297,20 @@ var BaseButton = React4.forwardRef(
|
|
|
1290
4297
|
"asChild"
|
|
1291
4298
|
]);
|
|
1292
4299
|
const Comp = asChild ? Slot : "button";
|
|
1293
|
-
const baseClass = "mly
|
|
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 ";
|
|
1294
4301
|
const variantClasses = {
|
|
1295
|
-
default: "mly
|
|
1296
|
-
destructive: "mly
|
|
1297
|
-
outline: "mly
|
|
1298
|
-
secondary: "mly
|
|
1299
|
-
ghost: "hover:
|
|
1300
|
-
link: "mly
|
|
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"
|
|
1301
4308
|
};
|
|
1302
4309
|
const sizeClasses = {
|
|
1303
|
-
default: "mly
|
|
1304
|
-
sm: "mly
|
|
1305
|
-
lg: "mly
|
|
1306
|
-
icon: "mly
|
|
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"
|
|
1307
4314
|
};
|
|
1308
4315
|
const classes = cn(
|
|
1309
4316
|
"mly-editor",
|
|
@@ -1332,7 +4339,7 @@ var TooltipContent = React5.forwardRef((_a, ref) => {
|
|
|
1332
4339
|
ref,
|
|
1333
4340
|
sideOffset,
|
|
1334
4341
|
className: cn(
|
|
1335
|
-
"mly
|
|
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",
|
|
1336
4343
|
className
|
|
1337
4344
|
)
|
|
1338
4345
|
}, props)
|
|
@@ -1353,7 +4360,7 @@ function BubbleMenuButton(item) {
|
|
|
1353
4360
|
}, item.command ? { onClick: item.command } : {}), {
|
|
1354
4361
|
"data-state": (_a = item == null ? void 0 : item.isActive) == null ? void 0 : _a.call(item),
|
|
1355
4362
|
className: cn(
|
|
1356
|
-
"
|
|
4363
|
+
"mly:size-7! mly:px-2.5 mly:disabled:cursor-not-allowed",
|
|
1357
4364
|
item == null ? void 0 : item.className
|
|
1358
4365
|
),
|
|
1359
4366
|
type: "button",
|
|
@@ -1362,7 +4369,7 @@ function BubbleMenuButton(item) {
|
|
|
1362
4369
|
item.icon,
|
|
1363
4370
|
{
|
|
1364
4371
|
className: cn(
|
|
1365
|
-
"mly
|
|
4372
|
+
"mly:h-3 mly:w-3 mly:shrink-0 mly:stroke-[2.5]",
|
|
1366
4373
|
item == null ? void 0 : item.iconClassName
|
|
1367
4374
|
)
|
|
1368
4375
|
}
|
|
@@ -1370,7 +4377,7 @@ function BubbleMenuButton(item) {
|
|
|
1370
4377
|
"span",
|
|
1371
4378
|
{
|
|
1372
4379
|
className: cn(
|
|
1373
|
-
"mly
|
|
4380
|
+
"mly:text-sm mly:font-medium mly:text-slate-600",
|
|
1374
4381
|
item == null ? void 0 : item.nameClassName
|
|
1375
4382
|
),
|
|
1376
4383
|
children: item.name
|
|
@@ -1514,7 +4521,7 @@ function ImageView(props) {
|
|
|
1514
4521
|
tabIndex: 0,
|
|
1515
4522
|
onMouseDown: handleMouseDown,
|
|
1516
4523
|
"data-direction": direction,
|
|
1517
|
-
className: "mly
|
|
4524
|
+
className: "mly:bg-rose-500",
|
|
1518
4525
|
style: __spreadProps(__spreadValues(__spreadValues({
|
|
1519
4526
|
position: "absolute",
|
|
1520
4527
|
height: "10px",
|
|
@@ -1706,7 +4713,7 @@ function ImageView(props) {
|
|
|
1706
4713
|
type: "file",
|
|
1707
4714
|
accept: "image/*",
|
|
1708
4715
|
onChange: handleFileChange,
|
|
1709
|
-
className: "mly
|
|
4716
|
+
className: "mly:absolute mly:inset-0 mly:opacity-0",
|
|
1710
4717
|
multiple: false
|
|
1711
4718
|
}
|
|
1712
4719
|
),
|
|
@@ -1725,7 +4732,7 @@ function ImageView(props) {
|
|
|
1725
4732
|
}),
|
|
1726
4733
|
draggable: editor.isEditable,
|
|
1727
4734
|
className: cn(
|
|
1728
|
-
isPlaceholderImage && "mly
|
|
4735
|
+
isPlaceholderImage && "mly:animate-pulse mly:opacity-40"
|
|
1729
4736
|
)
|
|
1730
4737
|
})
|
|
1731
4738
|
),
|
|
@@ -1738,7 +4745,7 @@ function ImageView(props) {
|
|
|
1738
4745
|
].map((style, i) => /* @__PURE__ */ jsx8(
|
|
1739
4746
|
"div",
|
|
1740
4747
|
{
|
|
1741
|
-
className: "mly
|
|
4748
|
+
className: "mly:bg-rose-500",
|
|
1742
4749
|
style: __spreadValues({
|
|
1743
4750
|
position: "absolute"
|
|
1744
4751
|
}, style)
|
|
@@ -1761,10 +4768,10 @@ function ImageStatusLabel(props) {
|
|
|
1761
4768
|
"div",
|
|
1762
4769
|
__spreadProps(__spreadValues({}, rest), {
|
|
1763
4770
|
className: cn(
|
|
1764
|
-
"mly
|
|
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",
|
|
1765
4772
|
{
|
|
1766
|
-
"mly
|
|
1767
|
-
"mly
|
|
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"
|
|
1768
4775
|
},
|
|
1769
4776
|
className
|
|
1770
4777
|
),
|
|
@@ -1773,23 +4780,23 @@ function ImageStatusLabel(props) {
|
|
|
1773
4780
|
} : {}), style),
|
|
1774
4781
|
children: [
|
|
1775
4782
|
status === "idle" && !isDropZone && /* @__PURE__ */ jsxs3(Fragment2, { children: [
|
|
1776
|
-
/* @__PURE__ */ jsx8(ImageOffIcon, { className: "mly
|
|
4783
|
+
/* @__PURE__ */ jsx8(ImageOffIcon, { className: "mly:size-4 mly:stroke-[2.5]" }),
|
|
1777
4784
|
/* @__PURE__ */ jsx8("span", { children: "No image selected" })
|
|
1778
4785
|
] }),
|
|
1779
4786
|
status === "idle" && isDropZone && /* @__PURE__ */ jsxs3(Fragment2, { children: [
|
|
1780
|
-
/* @__PURE__ */ jsx8(GrabIcon, { className: "mly
|
|
4787
|
+
/* @__PURE__ */ jsx8(GrabIcon, { className: "mly:size-4 mly:stroke-[2.5]" }),
|
|
1781
4788
|
/* @__PURE__ */ jsx8("span", { children: "Click or Drop image here" })
|
|
1782
4789
|
] }),
|
|
1783
4790
|
status === "loading" && /* @__PURE__ */ jsxs3(Fragment2, { children: [
|
|
1784
|
-
/* @__PURE__ */ jsx8(Loader2, { className: "mly
|
|
4791
|
+
/* @__PURE__ */ jsx8(Loader2, { className: "mly:size-4 mly:animate-spin mly:stroke-[2.5]" }),
|
|
1785
4792
|
/* @__PURE__ */ jsx8("span", { children: "Loading image..." })
|
|
1786
4793
|
] }),
|
|
1787
4794
|
status === "error" && /* @__PURE__ */ jsxs3(Fragment2, { children: [
|
|
1788
|
-
/* @__PURE__ */ jsx8(Ban, { className: "mly
|
|
4795
|
+
/* @__PURE__ */ jsx8(Ban, { className: "mly:size-4 mly:stroke-[2.5]" }),
|
|
1789
4796
|
/* @__PURE__ */ jsx8("span", { children: "Error loading image" })
|
|
1790
4797
|
] }),
|
|
1791
4798
|
status === "variable" && /* @__PURE__ */ jsxs3(Fragment2, { children: [
|
|
1792
|
-
/* @__PURE__ */ jsx8(BracesIcon, { className: "mly
|
|
4799
|
+
/* @__PURE__ */ jsx8(BracesIcon, { className: "mly:size-4 mly:stroke-[2.5]" }),
|
|
1793
4800
|
/* @__PURE__ */ jsx8("span", { children: "Variable Image URL" })
|
|
1794
4801
|
] })
|
|
1795
4802
|
]
|
|
@@ -1942,7 +4949,7 @@ function LogoView(props) {
|
|
|
1942
4949
|
type: "file",
|
|
1943
4950
|
accept: "image/*",
|
|
1944
4951
|
onChange: handleFileChange,
|
|
1945
|
-
className: "mly
|
|
4952
|
+
className: "mly:absolute mly:inset-0 mly:opacity-0",
|
|
1946
4953
|
multiple: false
|
|
1947
4954
|
}
|
|
1948
4955
|
),
|
|
@@ -2067,7 +5074,7 @@ var LogoExtension = TiptapImage.extend({
|
|
|
2067
5074
|
},
|
|
2068
5075
|
addNodeView() {
|
|
2069
5076
|
return ReactNodeViewRenderer2(LogoView, {
|
|
2070
|
-
className: "mly
|
|
5077
|
+
className: "mly:relative"
|
|
2071
5078
|
});
|
|
2072
5079
|
}
|
|
2073
5080
|
});
|
|
@@ -2109,9 +5116,9 @@ function AlignmentSwitch(props) {
|
|
|
2109
5116
|
PopoverTrigger,
|
|
2110
5117
|
{
|
|
2111
5118
|
className: cn(
|
|
2112
|
-
"mly
|
|
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"
|
|
2113
5120
|
),
|
|
2114
|
-
children: /* @__PURE__ */ jsx10(activeAlignment.icon, { className: "mly
|
|
5121
|
+
children: /* @__PURE__ */ jsx10(activeAlignment.icon, { className: "mly:h-3 mly:w-3 mly:stroke-[2.5]" })
|
|
2115
5122
|
}
|
|
2116
5123
|
) }),
|
|
2117
5124
|
/* @__PURE__ */ jsx10(TooltipContent, { sideOffset: 8, children: "Alignment" })
|
|
@@ -2119,7 +5126,7 @@ function AlignmentSwitch(props) {
|
|
|
2119
5126
|
/* @__PURE__ */ jsx10(
|
|
2120
5127
|
PopoverContent,
|
|
2121
5128
|
{
|
|
2122
|
-
className: "mly
|
|
5129
|
+
className: "mly:flex mly:w-max mly:gap-0.5 mly:rounded-lg mly:p-0.5!",
|
|
2123
5130
|
side: "top",
|
|
2124
5131
|
sideOffset: 8,
|
|
2125
5132
|
align: "center",
|
|
@@ -2170,14 +5177,14 @@ function ColorPicker(props) {
|
|
|
2170
5177
|
BaseButton,
|
|
2171
5178
|
{
|
|
2172
5179
|
variant: "ghost",
|
|
2173
|
-
className: "
|
|
5180
|
+
className: "mly:h-7 mly:w-7 mly:shrink-0",
|
|
2174
5181
|
size: "sm",
|
|
2175
5182
|
type: "button",
|
|
2176
5183
|
children: /* @__PURE__ */ jsx11(
|
|
2177
5184
|
"div",
|
|
2178
5185
|
{
|
|
2179
5186
|
className: cn(
|
|
2180
|
-
"mly
|
|
5187
|
+
"mly:h-4 mly:w-4 mly:shrink-0 mly:rounded mly:border-2 mly:border-gray-700",
|
|
2181
5188
|
className
|
|
2182
5189
|
),
|
|
2183
5190
|
style: __spreadProps(__spreadValues({}, borderColor ? { borderColor } : {}), {
|
|
@@ -2203,15 +5210,15 @@ function ColorPicker(props) {
|
|
|
2203
5210
|
/* @__PURE__ */ jsx11(
|
|
2204
5211
|
PopoverContent,
|
|
2205
5212
|
{
|
|
2206
|
-
className: "mly
|
|
5213
|
+
className: "mly:w-full mly:rounded-none mly:border-0 mly:bg-transparent! mly:p-0! mly:shadow-none mly:drop-shadow-md",
|
|
2207
5214
|
sideOffset: 8,
|
|
2208
|
-
children: /* @__PURE__ */ jsxs6("div", { className: "mly
|
|
5215
|
+
children: /* @__PURE__ */ jsxs6("div", { className: "mly:min-w-[260px] mly:rounded-xl mly:border mly:border-gray-200 mly:bg-white mly:p-4", children: [
|
|
2209
5216
|
/* @__PURE__ */ jsx11(
|
|
2210
5217
|
HexColorPicker,
|
|
2211
5218
|
{
|
|
2212
5219
|
color,
|
|
2213
5220
|
onChange: handleColorChange,
|
|
2214
|
-
className: "mly
|
|
5221
|
+
className: "mly:flex mly:w-full! mly:flex-col mly:gap-4"
|
|
2215
5222
|
}
|
|
2216
5223
|
),
|
|
2217
5224
|
/* @__PURE__ */ jsx11(
|
|
@@ -2220,25 +5227,25 @@ function ColorPicker(props) {
|
|
|
2220
5227
|
alpha: true,
|
|
2221
5228
|
color,
|
|
2222
5229
|
onChange: handleColorChange,
|
|
2223
|
-
className: "mly
|
|
5230
|
+
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",
|
|
2224
5231
|
prefixed: true
|
|
2225
5232
|
}
|
|
2226
5233
|
),
|
|
2227
5234
|
suggestedColors.length > 0 && /* @__PURE__ */ jsxs6("div", { children: [
|
|
2228
|
-
/* @__PURE__ */ jsx11("div", { className: "-mly
|
|
2229
|
-
/* @__PURE__ */ jsx11("h2", { className: "mly
|
|
2230
|
-
/* @__PURE__ */ jsx11("div", { className: "mly
|
|
5235
|
+
/* @__PURE__ */ jsx11("div", { className: "-mly:mx-4 mly:my-4 mly:h-px mly:bg-gray-200" }),
|
|
5236
|
+
/* @__PURE__ */ jsx11("h2", { className: "mly:text-xs mly:text-gray-500", children: "Recently used" }),
|
|
5237
|
+
/* @__PURE__ */ jsx11("div", { className: "mly:mt-2 mly:flex mly:flex-wrap mly:gap-0.5", children: suggestedColors.map((suggestedColor) => /* @__PURE__ */ jsx11(
|
|
2231
5238
|
BaseButton,
|
|
2232
5239
|
{
|
|
2233
5240
|
variant: "ghost",
|
|
2234
5241
|
size: "sm",
|
|
2235
|
-
className: "!mly
|
|
5242
|
+
className: "!mly:size-7 mly:shrink-0",
|
|
2236
5243
|
type: "button",
|
|
2237
5244
|
onClick: () => handleColorChange(suggestedColor),
|
|
2238
5245
|
children: /* @__PURE__ */ jsx11(
|
|
2239
5246
|
"div",
|
|
2240
5247
|
{
|
|
2241
|
-
className: "mly
|
|
5248
|
+
className: "mly:h-4 mly:w-4 mly:shrink-0 mly:rounded",
|
|
2242
5249
|
style: {
|
|
2243
5250
|
backgroundColor: suggestedColor
|
|
2244
5251
|
}
|
|
@@ -2264,8 +5271,8 @@ function Divider(props) {
|
|
|
2264
5271
|
"div",
|
|
2265
5272
|
{
|
|
2266
5273
|
className: cn(
|
|
2267
|
-
"mly
|
|
2268
|
-
type === "vertical" ? "mly
|
|
5274
|
+
"mly:shrink-0 mly:bg-gray-200",
|
|
5275
|
+
type === "vertical" ? "mly:mx-0.5 mly:w-px" : "mly:my-0.5 mly:h-px",
|
|
2269
5276
|
className
|
|
2270
5277
|
)
|
|
2271
5278
|
}
|
|
@@ -2289,7 +5296,7 @@ var button = {
|
|
|
2289
5296
|
title: "Button",
|
|
2290
5297
|
description: "Add a call to action button to email.",
|
|
2291
5298
|
searchTerms: ["link", "button", "cta"],
|
|
2292
|
-
icon: /* @__PURE__ */ jsx13(MousePointer, { className: "mly
|
|
5299
|
+
icon: /* @__PURE__ */ jsx13(MousePointer, { className: "mly:h-4 mly:w-4" }),
|
|
2293
5300
|
command: ({ editor, range }) => {
|
|
2294
5301
|
editor.chain().focus().deleteRange(range).setButton().run();
|
|
2295
5302
|
}
|
|
@@ -2298,7 +5305,7 @@ var linkCard = {
|
|
|
2298
5305
|
title: "Link Card",
|
|
2299
5306
|
description: "Add a link card to email.",
|
|
2300
5307
|
searchTerms: ["link", "button", "image"],
|
|
2301
|
-
icon: /* @__PURE__ */ jsx13(ArrowUpRightSquare, { className: "mly
|
|
5308
|
+
icon: /* @__PURE__ */ jsx13(ArrowUpRightSquare, { className: "mly:h-4 mly:w-4" }),
|
|
2302
5309
|
command: ({ editor, range }) => {
|
|
2303
5310
|
editor.chain().focus().deleteRange(range).setLinkCard().run();
|
|
2304
5311
|
},
|
|
@@ -2316,7 +5323,7 @@ var htmlCodeBlock = {
|
|
|
2316
5323
|
title: "Custom HTML",
|
|
2317
5324
|
description: "Insert a custom HTML block",
|
|
2318
5325
|
searchTerms: ["html", "code", "custom"],
|
|
2319
|
-
icon: /* @__PURE__ */ jsx14(CodeXmlIcon, { className: "mly
|
|
5326
|
+
icon: /* @__PURE__ */ jsx14(CodeXmlIcon, { className: "mly:h-4 mly:w-4" }),
|
|
2320
5327
|
command: ({ editor, range }) => {
|
|
2321
5328
|
editor.chain().focus().deleteRange(range).setHtmlCodeBlock({ language: "html" }).run();
|
|
2322
5329
|
}
|
|
@@ -2330,7 +5337,7 @@ var image = {
|
|
|
2330
5337
|
title: "Image",
|
|
2331
5338
|
description: "Full width image",
|
|
2332
5339
|
searchTerms: ["image"],
|
|
2333
|
-
icon: /* @__PURE__ */ jsx15(ImageIcon, { className: "mly
|
|
5340
|
+
icon: /* @__PURE__ */ jsx15(ImageIcon, { className: "mly:h-4 mly:w-4" }),
|
|
2334
5341
|
command: ({ editor, range }) => {
|
|
2335
5342
|
editor.chain().focus().deleteRange(range).setImage({ src: "" }).run();
|
|
2336
5343
|
}
|
|
@@ -2339,7 +5346,7 @@ var logo = {
|
|
|
2339
5346
|
title: "Logo",
|
|
2340
5347
|
description: "Add your brand logo",
|
|
2341
5348
|
searchTerms: ["image", "logo"],
|
|
2342
|
-
icon: /* @__PURE__ */ jsx15(ImageIcon, { className: "mly
|
|
5349
|
+
icon: /* @__PURE__ */ jsx15(ImageIcon, { className: "mly:h-4 mly:w-4" }),
|
|
2343
5350
|
command: ({ editor, range }) => {
|
|
2344
5351
|
editor.chain().focus().deleteRange(range).setLogoImage({ src: "" }).run();
|
|
2345
5352
|
}
|
|
@@ -2348,7 +5355,7 @@ var inlineImage = {
|
|
|
2348
5355
|
title: "Inline Image",
|
|
2349
5356
|
description: "Inline image",
|
|
2350
5357
|
searchTerms: ["image", "inline"],
|
|
2351
|
-
icon: /* @__PURE__ */ jsx15(ImageIcon, { className: "mly
|
|
5358
|
+
icon: /* @__PURE__ */ jsx15(ImageIcon, { className: "mly:h-4 mly:w-4" }),
|
|
2352
5359
|
command: ({ editor, range }) => {
|
|
2353
5360
|
editor.chain().focus().deleteRange(range).setInlineImage({
|
|
2354
5361
|
src: "https://maily.to/brand/logo.png"
|
|
@@ -2383,7 +5390,7 @@ var columns = {
|
|
|
2383
5390
|
title: "Columns",
|
|
2384
5391
|
description: "Add columns to email.",
|
|
2385
5392
|
searchTerms: ["layout", "columns"],
|
|
2386
|
-
icon: /* @__PURE__ */ jsx16(ColumnsIcon, { className: "mly
|
|
5393
|
+
icon: /* @__PURE__ */ jsx16(ColumnsIcon, { className: "mly:h-4 mly:w-4" }),
|
|
2387
5394
|
command: ({ editor, range }) => {
|
|
2388
5395
|
editor.chain().focus().deleteRange(range).setColumns().focus(editor.state.selection.head - 2).run();
|
|
2389
5396
|
}
|
|
@@ -2392,7 +5399,7 @@ var section = {
|
|
|
2392
5399
|
title: "Section",
|
|
2393
5400
|
description: "Add a section to email.",
|
|
2394
5401
|
searchTerms: ["layout", "section"],
|
|
2395
|
-
icon: /* @__PURE__ */ jsx16(RectangleHorizontal, { className: "mly
|
|
5402
|
+
icon: /* @__PURE__ */ jsx16(RectangleHorizontal, { className: "mly:h-4 mly:w-4" }),
|
|
2396
5403
|
command: ({ editor, range }) => {
|
|
2397
5404
|
editor.chain().focus().deleteRange(range).setSection().run();
|
|
2398
5405
|
}
|
|
@@ -2401,7 +5408,7 @@ var repeat = {
|
|
|
2401
5408
|
title: "Repeat",
|
|
2402
5409
|
description: "Loop over an array of items.",
|
|
2403
5410
|
searchTerms: ["repeat", "for", "loop"],
|
|
2404
|
-
icon: /* @__PURE__ */ jsx16(Repeat2, { className: "mly
|
|
5411
|
+
icon: /* @__PURE__ */ jsx16(Repeat2, { className: "mly:h-4 mly:w-4" }),
|
|
2405
5412
|
command: ({ editor, range }) => {
|
|
2406
5413
|
editor.chain().focus().deleteRange(range).setRepeat().run();
|
|
2407
5414
|
}
|
|
@@ -2410,7 +5417,7 @@ var spacer = {
|
|
|
2410
5417
|
title: "Spacer",
|
|
2411
5418
|
description: "Add space between blocks.",
|
|
2412
5419
|
searchTerms: ["space", "gap", "divider"],
|
|
2413
|
-
icon: /* @__PURE__ */ jsx16(MoveVertical, { className: "mly
|
|
5420
|
+
icon: /* @__PURE__ */ jsx16(MoveVertical, { className: "mly:h-4 mly:w-4" }),
|
|
2414
5421
|
command: ({ editor, range }) => {
|
|
2415
5422
|
editor.chain().focus().deleteRange(range).setSpacer({ height: "sm" }).run();
|
|
2416
5423
|
}
|
|
@@ -2419,7 +5426,7 @@ var divider = {
|
|
|
2419
5426
|
title: "Divider",
|
|
2420
5427
|
description: "Add a horizontal divider.",
|
|
2421
5428
|
searchTerms: ["divider", "line"],
|
|
2422
|
-
icon: /* @__PURE__ */ jsx16(Minus, { className: "mly
|
|
5429
|
+
icon: /* @__PURE__ */ jsx16(Minus, { className: "mly:h-4 mly:w-4" }),
|
|
2423
5430
|
command: ({ editor, range }) => {
|
|
2424
5431
|
editor.chain().focus().deleteRange(range).setHorizontalRule().run();
|
|
2425
5432
|
}
|
|
@@ -2432,7 +5439,7 @@ var bulletList = {
|
|
|
2432
5439
|
title: "Bullet List",
|
|
2433
5440
|
description: "Create a simple bullet list.",
|
|
2434
5441
|
searchTerms: ["unordered", "point"],
|
|
2435
|
-
icon: /* @__PURE__ */ jsx17(List, { className: "mly
|
|
5442
|
+
icon: /* @__PURE__ */ jsx17(List, { className: "mly:h-4 mly:w-4" }),
|
|
2436
5443
|
command: ({ editor, range }) => {
|
|
2437
5444
|
editor.chain().focus().deleteRange(range).toggleBulletList().run();
|
|
2438
5445
|
}
|
|
@@ -2441,7 +5448,7 @@ var orderedList = {
|
|
|
2441
5448
|
title: "Numbered List",
|
|
2442
5449
|
description: "Create a list with numbering.",
|
|
2443
5450
|
searchTerms: ["ordered"],
|
|
2444
|
-
icon: /* @__PURE__ */ jsx17(ListOrdered, { className: "mly
|
|
5451
|
+
icon: /* @__PURE__ */ jsx17(ListOrdered, { className: "mly:h-4 mly:w-4" }),
|
|
2445
5452
|
command: ({ editor, range }) => {
|
|
2446
5453
|
editor.chain().focus().deleteRange(range).toggleOrderedList().run();
|
|
2447
5454
|
}
|
|
@@ -2463,7 +5470,7 @@ var text = {
|
|
|
2463
5470
|
title: "Text",
|
|
2464
5471
|
description: "Just start typing with plain text.",
|
|
2465
5472
|
searchTerms: ["p", "paragraph"],
|
|
2466
|
-
icon: /* @__PURE__ */ jsx18(Text, { className: "mly
|
|
5473
|
+
icon: /* @__PURE__ */ jsx18(Text, { className: "mly:h-4 mly:w-4" }),
|
|
2467
5474
|
command: ({ editor, range }) => {
|
|
2468
5475
|
editor.chain().focus().deleteRange(range).toggleNode("paragraph", "paragraph").run();
|
|
2469
5476
|
}
|
|
@@ -2472,7 +5479,7 @@ var heading1 = {
|
|
|
2472
5479
|
title: "Heading 1",
|
|
2473
5480
|
description: "Big heading.",
|
|
2474
5481
|
searchTerms: ["h1", "title", "big", "large"],
|
|
2475
|
-
icon: /* @__PURE__ */ jsx18(Heading1, { className: "mly
|
|
5482
|
+
icon: /* @__PURE__ */ jsx18(Heading1, { className: "mly:h-4 mly:w-4" }),
|
|
2476
5483
|
command: ({ editor, range }) => {
|
|
2477
5484
|
editor.chain().focus().deleteRange(range).setNode("heading", { level: 1 }).run();
|
|
2478
5485
|
}
|
|
@@ -2481,7 +5488,7 @@ var heading2 = {
|
|
|
2481
5488
|
title: "Heading 2",
|
|
2482
5489
|
description: "Medium heading.",
|
|
2483
5490
|
searchTerms: ["h2", "subtitle", "medium"],
|
|
2484
|
-
icon: /* @__PURE__ */ jsx18(Heading2, { className: "mly
|
|
5491
|
+
icon: /* @__PURE__ */ jsx18(Heading2, { className: "mly:h-4 mly:w-4" }),
|
|
2485
5492
|
command: ({ editor, range }) => {
|
|
2486
5493
|
editor.chain().focus().deleteRange(range).setNode("heading", { level: 2 }).run();
|
|
2487
5494
|
}
|
|
@@ -2490,7 +5497,7 @@ var heading3 = {
|
|
|
2490
5497
|
title: "Heading 3",
|
|
2491
5498
|
description: "Small heading.",
|
|
2492
5499
|
searchTerms: ["h3", "subtitle", "small"],
|
|
2493
|
-
icon: /* @__PURE__ */ jsx18(Heading3, { className: "mly
|
|
5500
|
+
icon: /* @__PURE__ */ jsx18(Heading3, { className: "mly:h-4 mly:w-4" }),
|
|
2494
5501
|
command: ({ editor, range }) => {
|
|
2495
5502
|
editor.chain().focus().deleteRange(range).setNode("heading", { level: 3 }).run();
|
|
2496
5503
|
}
|
|
@@ -2499,7 +5506,7 @@ var hardBreak = {
|
|
|
2499
5506
|
title: "Hard Break",
|
|
2500
5507
|
description: "Add a break between lines.",
|
|
2501
5508
|
searchTerms: ["break", "line"],
|
|
2502
|
-
icon: /* @__PURE__ */ jsx18(DivideIcon, { className: "mly
|
|
5509
|
+
icon: /* @__PURE__ */ jsx18(DivideIcon, { className: "mly:h-4 mly:w-4" }),
|
|
2503
5510
|
command: ({ editor, range }) => {
|
|
2504
5511
|
editor.chain().focus().deleteRange(range).setHardBreak().run();
|
|
2505
5512
|
}
|
|
@@ -2508,7 +5515,7 @@ var blockquote = {
|
|
|
2508
5515
|
title: "Blockquote",
|
|
2509
5516
|
description: "Add blockquote.",
|
|
2510
5517
|
searchTerms: ["quote", "blockquote"],
|
|
2511
|
-
icon: /* @__PURE__ */ jsx18(TextQuote, { className: "mly
|
|
5518
|
+
icon: /* @__PURE__ */ jsx18(TextQuote, { className: "mly:h-4 mly:w-4" }),
|
|
2512
5519
|
command: ({ editor, range }) => {
|
|
2513
5520
|
editor.chain().focus().deleteRange(range).toggleBlockquote().run();
|
|
2514
5521
|
}
|
|
@@ -2517,7 +5524,7 @@ var footer = {
|
|
|
2517
5524
|
title: "Footer",
|
|
2518
5525
|
description: "Add a footer text to email.",
|
|
2519
5526
|
searchTerms: ["footer", "text"],
|
|
2520
|
-
icon: /* @__PURE__ */ jsx18(FootprintsIcon, { className: "mly
|
|
5527
|
+
icon: /* @__PURE__ */ jsx18(FootprintsIcon, { className: "mly:h-4 mly:w-4" }),
|
|
2521
5528
|
command: ({ editor, range }) => {
|
|
2522
5529
|
editor.chain().focus().deleteRange(range).setFooter().run();
|
|
2523
5530
|
}
|
|
@@ -2526,7 +5533,7 @@ var clearLine = {
|
|
|
2526
5533
|
title: "Clear Line",
|
|
2527
5534
|
description: "Clear the current line.",
|
|
2528
5535
|
searchTerms: ["clear", "line"],
|
|
2529
|
-
icon: /* @__PURE__ */ jsx18(EraserIcon, { className: "mly
|
|
5536
|
+
icon: /* @__PURE__ */ jsx18(EraserIcon, { className: "mly:h-4 mly:w-4" }),
|
|
2530
5537
|
command: ({ editor, range }) => {
|
|
2531
5538
|
editor.chain().focus().selectParentNode().deleteSelection().run();
|
|
2532
5539
|
}
|
|
@@ -2726,7 +5733,7 @@ var headerLogoWithTextHorizontal = {
|
|
|
2726
5733
|
title: "Logo with Text (Horizontal)",
|
|
2727
5734
|
description: "Logo and a text horizontally",
|
|
2728
5735
|
searchTerms: ["logo", "text"],
|
|
2729
|
-
icon: /* @__PURE__ */ jsx22(LogoWithTextHorizonIcon, { className: "mly
|
|
5736
|
+
icon: /* @__PURE__ */ jsx22(LogoWithTextHorizonIcon, { className: "mly:h-4 mly:w-4" }),
|
|
2730
5737
|
command: ({ editor, range }) => {
|
|
2731
5738
|
editor.chain().deleteRange(range).insertContent({
|
|
2732
5739
|
type: "columns",
|
|
@@ -2790,7 +5797,7 @@ var headerLogoWithTextVertical = {
|
|
|
2790
5797
|
title: "Logo with Text (Vertical)",
|
|
2791
5798
|
description: "Logo and a text vertically",
|
|
2792
5799
|
searchTerms: ["logo", "text"],
|
|
2793
|
-
icon: /* @__PURE__ */ jsx22(LogoWithTextVerticalIcon, { className: "mly
|
|
5800
|
+
icon: /* @__PURE__ */ jsx22(LogoWithTextVerticalIcon, { className: "mly:h-4 mly:w-4" }),
|
|
2794
5801
|
command: ({ editor, range }) => {
|
|
2795
5802
|
editor.chain().deleteRange(range).insertContent([
|
|
2796
5803
|
{
|
|
@@ -2821,7 +5828,7 @@ var headerLogoWithCoverImage = {
|
|
|
2821
5828
|
title: "Logo with Cover Image",
|
|
2822
5829
|
description: "Logo and a cover image",
|
|
2823
5830
|
searchTerms: ["logo", "cover", "image"],
|
|
2824
|
-
icon: /* @__PURE__ */ jsx22(LogoWithCoverImageIcon, { className: "mly
|
|
5831
|
+
icon: /* @__PURE__ */ jsx22(LogoWithCoverImageIcon, { className: "mly:h-4 mly:w-4" }),
|
|
2825
5832
|
command: ({ editor, range }) => {
|
|
2826
5833
|
const todayFormatted = (/* @__PURE__ */ new Date()).toLocaleDateString("en-US", {
|
|
2827
5834
|
year: "numeric",
|
|
@@ -2919,7 +5926,7 @@ var footerCopyrightText = {
|
|
|
2919
5926
|
title: "Footer Copyright",
|
|
2920
5927
|
description: "Copyright text for the footer.",
|
|
2921
5928
|
searchTerms: ["footer", "copyright"],
|
|
2922
|
-
icon: /* @__PURE__ */ jsx23(CopyrightIcon, { className: "mly
|
|
5929
|
+
icon: /* @__PURE__ */ jsx23(CopyrightIcon, { className: "mly:h-4 mly:w-4" }),
|
|
2923
5930
|
command: ({ editor, range }) => {
|
|
2924
5931
|
const currentYear = (/* @__PURE__ */ new Date()).getFullYear();
|
|
2925
5932
|
editor.chain().focus().deleteRange(range).insertContent({
|
|
@@ -2939,7 +5946,7 @@ var footerCommunityFeedbackCta = {
|
|
|
2939
5946
|
title: "Footer Community Feedback CTA",
|
|
2940
5947
|
description: "Community feedback CTA for the footer.",
|
|
2941
5948
|
searchTerms: ["footer", "community", "feedback", "cta"],
|
|
2942
|
-
icon: /* @__PURE__ */ jsx23(RectangleHorizontalIcon, { className: "mly
|
|
5949
|
+
icon: /* @__PURE__ */ jsx23(RectangleHorizontalIcon, { className: "mly:h-4 mly:w-4" }),
|
|
2943
5950
|
command: ({ editor, range }) => {
|
|
2944
5951
|
editor.chain().focus().deleteRange(range).insertContent([
|
|
2945
5952
|
{
|
|
@@ -2982,7 +5989,7 @@ var footerCompanySignature = {
|
|
|
2982
5989
|
title: "Footer Company Signature",
|
|
2983
5990
|
description: "Company signature for the footer.",
|
|
2984
5991
|
searchTerms: ["footer", "company", "signature"],
|
|
2985
|
-
icon: /* @__PURE__ */ jsx23(LayoutTemplateIcon, { className: "mly
|
|
5992
|
+
icon: /* @__PURE__ */ jsx23(LayoutTemplateIcon, { className: "mly:h-4 mly:w-4" }),
|
|
2986
5993
|
command: ({ editor, range }) => {
|
|
2987
5994
|
editor.chain().focus().deleteRange(range).insertContent([
|
|
2988
5995
|
{ type: "horizontalRule" },
|
|
@@ -3027,7 +6034,7 @@ var footerCompanySignature = {
|
|
|
3027
6034
|
href: "https://maily.to",
|
|
3028
6035
|
target: "_blank",
|
|
3029
6036
|
rel: "noopener noreferrer nofollow",
|
|
3030
|
-
class: "mly
|
|
6037
|
+
class: "mly:no-underline",
|
|
3031
6038
|
isUrlVariable: false
|
|
3032
6039
|
}
|
|
3033
6040
|
},
|
|
@@ -3050,7 +6057,7 @@ var footerCompanySignature = {
|
|
|
3050
6057
|
href: "https://maily.to",
|
|
3051
6058
|
target: "_blank",
|
|
3052
6059
|
rel: "noopener noreferrer nofollow",
|
|
3053
|
-
class: "mly
|
|
6060
|
+
class: "mly:no-underline",
|
|
3054
6061
|
isUrlVariable: false
|
|
3055
6062
|
}
|
|
3056
6063
|
},
|
|
@@ -3073,7 +6080,7 @@ var footerCompanySignature = {
|
|
|
3073
6080
|
href: "https://maily.to",
|
|
3074
6081
|
target: "_blank",
|
|
3075
6082
|
rel: "noopener noreferrer nofollow",
|
|
3076
|
-
class: "mly
|
|
6083
|
+
class: "mly:no-underline",
|
|
3077
6084
|
isUrlVariable: false
|
|
3078
6085
|
}
|
|
3079
6086
|
},
|
|
@@ -3171,7 +6178,7 @@ var DEFAULT_SLASH_COMMANDS = [
|
|
|
3171
6178
|
title: "Headers",
|
|
3172
6179
|
description: "Add pre-designed headers block",
|
|
3173
6180
|
searchTerms: ["header", "headers"],
|
|
3174
|
-
icon: /* @__PURE__ */ jsx24(Heading12, { className: "mly
|
|
6181
|
+
icon: /* @__PURE__ */ jsx24(Heading12, { className: "mly:h-4 mly:w-4" }),
|
|
3175
6182
|
preview: "https://cdn.usemaily.com/previews/header-preview-xyz.png",
|
|
3176
6183
|
commands: [
|
|
3177
6184
|
headerLogoWithTextVertical,
|
|
@@ -3184,7 +6191,7 @@ var DEFAULT_SLASH_COMMANDS = [
|
|
|
3184
6191
|
title: "Footers",
|
|
3185
6192
|
description: "Add pre-designed footers block",
|
|
3186
6193
|
searchTerms: ["footers"],
|
|
3187
|
-
icon: /* @__PURE__ */ jsx24(FootprintsIcon2, { className: "mly
|
|
6194
|
+
icon: /* @__PURE__ */ jsx24(FootprintsIcon2, { className: "mly:h-4 mly:w-4" }),
|
|
3188
6195
|
commands: [
|
|
3189
6196
|
footerCopyrightText,
|
|
3190
6197
|
footerCommunityFeedbackCta,
|
|
@@ -3285,8 +6292,8 @@ var InputAutocomplete = forwardRef6((props, ref) => {
|
|
|
3285
6292
|
onOutsideClick == null ? void 0 : onOutsideClick();
|
|
3286
6293
|
});
|
|
3287
6294
|
const isTriggeringVariable = value.startsWith(triggerChar);
|
|
3288
|
-
return /* @__PURE__ */ jsxs10("div", { className: cn("mly
|
|
3289
|
-
/* @__PURE__ */ jsxs10("label", { className: "mly
|
|
6295
|
+
return /* @__PURE__ */ jsxs10("div", { className: cn("mly:relative"), ref: containerRef, children: [
|
|
6296
|
+
/* @__PURE__ */ jsxs10("label", { className: "mly:relative", children: [
|
|
3290
6297
|
/* @__PURE__ */ jsx26(
|
|
3291
6298
|
"input",
|
|
3292
6299
|
__spreadProps(__spreadValues(__spreadProps(__spreadValues({}, AUTOCOMPLETE_PASSWORD_MANAGERS_OFF), {
|
|
@@ -3299,7 +6306,7 @@ var InputAutocomplete = forwardRef6((props, ref) => {
|
|
|
3299
6306
|
onValueChange(e.target.value);
|
|
3300
6307
|
},
|
|
3301
6308
|
className: cn(
|
|
3302
|
-
"mly
|
|
6309
|
+
"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",
|
|
3303
6310
|
className
|
|
3304
6311
|
),
|
|
3305
6312
|
onKeyDown: (e) => {
|
|
@@ -3321,9 +6328,9 @@ var InputAutocomplete = forwardRef6((props, ref) => {
|
|
|
3321
6328
|
spellCheck: false
|
|
3322
6329
|
})
|
|
3323
6330
|
),
|
|
3324
|
-
/* @__PURE__ */ jsx26("div", { className: "mly
|
|
6331
|
+
/* @__PURE__ */ jsx26("div", { className: "mly:absolute mly:inset-y-0 mly:right-1 mly:flex mly:items-center", children: /* @__PURE__ */ jsx26(CornerDownLeft, { className: "mly:h-3 mly:w-3 mly:stroke-[2.5] mly:text-midnight-gray" }) })
|
|
3325
6332
|
] }),
|
|
3326
|
-
isTriggeringVariable && /* @__PURE__ */ jsx26("div", { className: "mly
|
|
6333
|
+
isTriggeringVariable && /* @__PURE__ */ jsx26("div", { className: "mly:absolute mly:left-0 mly:top-8", children: /* @__PURE__ */ jsx26(
|
|
3327
6334
|
VariableSuggestionPopoverComponent,
|
|
3328
6335
|
{
|
|
3329
6336
|
items: autoCompleteOptions.map((option) => {
|
|
@@ -3432,41 +6439,41 @@ var VariableSuggestionsPopover = forwardRef7((props, ref) => {
|
|
|
3432
6439
|
onSelectItem(item);
|
|
3433
6440
|
}
|
|
3434
6441
|
}));
|
|
3435
|
-
return /* @__PURE__ */ jsxs11("div", { className: "mly
|
|
3436
|
-
/* @__PURE__ */ jsxs11("div", { className: "mly
|
|
3437
|
-
/* @__PURE__ */ jsx27("span", { className: "mly
|
|
3438
|
-
/* @__PURE__ */ jsx27(VariableIcon, { children: /* @__PURE__ */ jsx27(Braces, { className: "mly
|
|
6442
|
+
return /* @__PURE__ */ jsxs11("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: [
|
|
6443
|
+
/* @__PURE__ */ jsxs11("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: [
|
|
6444
|
+
/* @__PURE__ */ jsx27("span", { className: "mly:text-xs mly:uppercase", children: "Variables" }),
|
|
6445
|
+
/* @__PURE__ */ jsx27(VariableIcon, { children: /* @__PURE__ */ jsx27(Braces, { className: "mly:size-3 mly:stroke-[2.5]" }) })
|
|
3439
6446
|
] }),
|
|
3440
6447
|
/* @__PURE__ */ jsx27(
|
|
3441
6448
|
"div",
|
|
3442
6449
|
{
|
|
3443
6450
|
ref: scrollContainerRef,
|
|
3444
|
-
className: "mly
|
|
3445
|
-
children: /* @__PURE__ */ jsx27("div", { className: "mly
|
|
6451
|
+
className: "mly:max-h-52 mly:overflow-y-auto mly:scrollbar-thin mly:scrollbar-track-transparent mly:scrollbar-thumb-gray-200",
|
|
6452
|
+
children: /* @__PURE__ */ jsx27("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__ */ jsxs11(
|
|
3446
6453
|
"button",
|
|
3447
6454
|
{
|
|
3448
6455
|
ref: (el) => itemRefs.current[index] = el,
|
|
3449
6456
|
onClick: () => onSelectItem(item),
|
|
3450
6457
|
className: cn(
|
|
3451
|
-
"mly
|
|
3452
|
-
index === selectedIndex ? "mly
|
|
6458
|
+
"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",
|
|
6459
|
+
index === selectedIndex ? "mly:bg-soft-gray" : "mly:bg-white"
|
|
3453
6460
|
),
|
|
3454
6461
|
children: [
|
|
3455
|
-
/* @__PURE__ */ jsx27(Braces, { className: "mly
|
|
3456
|
-
item.name
|
|
6462
|
+
/* @__PURE__ */ jsx27(Braces, { className: "mly:size-3 mly:stroke-[2.5] mly:text-rose-600" }),
|
|
6463
|
+
(item == null ? void 0 : item.label) || item.name
|
|
3457
6464
|
]
|
|
3458
6465
|
},
|
|
3459
6466
|
index
|
|
3460
|
-
)) : /* @__PURE__ */ jsx27("div", { className: "mly
|
|
6467
|
+
)) : /* @__PURE__ */ jsx27("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" }) })
|
|
3461
6468
|
}
|
|
3462
6469
|
),
|
|
3463
|
-
/* @__PURE__ */ jsxs11("div", { className: "mly
|
|
3464
|
-
/* @__PURE__ */ jsxs11("div", { className: "mly
|
|
3465
|
-
/* @__PURE__ */ jsx27(VariableIcon, { children: /* @__PURE__ */ jsx27(ArrowDownIcon, { className: "mly
|
|
3466
|
-
/* @__PURE__ */ jsx27(VariableIcon, { children: /* @__PURE__ */ jsx27(ArrowUpIcon, { className: "mly
|
|
3467
|
-
/* @__PURE__ */ jsx27("span", { className: "mly
|
|
6470
|
+
/* @__PURE__ */ jsxs11("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: [
|
|
6471
|
+
/* @__PURE__ */ jsxs11("div", { className: "mly:flex mly:items-center mly:gap-1", children: [
|
|
6472
|
+
/* @__PURE__ */ jsx27(VariableIcon, { children: /* @__PURE__ */ jsx27(ArrowDownIcon, { className: "mly:size-3 mly:stroke-[2.5]" }) }),
|
|
6473
|
+
/* @__PURE__ */ jsx27(VariableIcon, { children: /* @__PURE__ */ jsx27(ArrowUpIcon, { className: "mly:size-3 mly:stroke-[2.5]" }) }),
|
|
6474
|
+
/* @__PURE__ */ jsx27("span", { className: "mly:text-xs mly:text-gray-500", children: "Navigate" })
|
|
3468
6475
|
] }),
|
|
3469
|
-
/* @__PURE__ */ jsx27(VariableIcon, { children: /* @__PURE__ */ jsx27(CornerDownLeftIcon, { className: "mly
|
|
6476
|
+
/* @__PURE__ */ jsx27(VariableIcon, { children: /* @__PURE__ */ jsx27(CornerDownLeftIcon, { className: "mly:size-3 mly:stroke-[2.5]" }) })
|
|
3470
6477
|
] })
|
|
3471
6478
|
] });
|
|
3472
6479
|
});
|
|
@@ -3476,7 +6483,7 @@ function VariableIcon(props) {
|
|
|
3476
6483
|
"div",
|
|
3477
6484
|
{
|
|
3478
6485
|
className: cn(
|
|
3479
|
-
"mly
|
|
6486
|
+
"mly:flex mly:size-5 mly:items-center mly:justify-center mly:rounded-md mly:border mly:border-gray-200",
|
|
3480
6487
|
className
|
|
3481
6488
|
),
|
|
3482
6489
|
children
|
|
@@ -3488,10 +6495,16 @@ function VariableIcon(props) {
|
|
|
3488
6495
|
import { NodeViewWrapper as NodeViewWrapper4 } from "@tiptap/react";
|
|
3489
6496
|
import { AlertTriangle, Braces as Braces2, Pencil } from "lucide-react";
|
|
3490
6497
|
import { useMemo as useMemo3 } from "react";
|
|
3491
|
-
import { jsx as jsx28, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
6498
|
+
import { Fragment as Fragment3, jsx as jsx28, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
3492
6499
|
function VariableView(props) {
|
|
3493
6500
|
const { node, updateAttributes: updateAttributes2, editor } = props;
|
|
3494
|
-
const {
|
|
6501
|
+
const {
|
|
6502
|
+
id,
|
|
6503
|
+
fallback,
|
|
6504
|
+
required,
|
|
6505
|
+
hideDefaultValue = false,
|
|
6506
|
+
label
|
|
6507
|
+
} = node.attrs;
|
|
3495
6508
|
const renderVariable = useMemo3(() => {
|
|
3496
6509
|
var _a, _b;
|
|
3497
6510
|
const variableRender = (_b = (_a = getNodeOptions(editor, "variable")) == null ? void 0 : _a.renderVariable) != null ? _b : DEFAULT_RENDER_VARIABLE_FUNCTION;
|
|
@@ -3500,7 +6513,7 @@ function VariableView(props) {
|
|
|
3500
6513
|
return /* @__PURE__ */ jsx28(
|
|
3501
6514
|
NodeViewWrapper4,
|
|
3502
6515
|
{
|
|
3503
|
-
className: "react-component mly
|
|
6516
|
+
className: "react-component mly:inline-block mly:leading-none",
|
|
3504
6517
|
draggable: "false",
|
|
3505
6518
|
children: /* @__PURE__ */ jsxs12(
|
|
3506
6519
|
Popover,
|
|
@@ -3510,7 +6523,12 @@ function VariableView(props) {
|
|
|
3510
6523
|
},
|
|
3511
6524
|
children: [
|
|
3512
6525
|
/* @__PURE__ */ jsx28(PopoverTrigger, { children: renderVariable({
|
|
3513
|
-
variable: {
|
|
6526
|
+
variable: {
|
|
6527
|
+
name: id,
|
|
6528
|
+
required,
|
|
6529
|
+
valid: true,
|
|
6530
|
+
label
|
|
6531
|
+
},
|
|
3514
6532
|
fallback,
|
|
3515
6533
|
editor,
|
|
3516
6534
|
from: "content-variable"
|
|
@@ -3520,13 +6538,13 @@ function VariableView(props) {
|
|
|
3520
6538
|
{
|
|
3521
6539
|
align: "start",
|
|
3522
6540
|
side: "bottom",
|
|
3523
|
-
className: "mly
|
|
6541
|
+
className: "mly:w-max mly:rounded-lg mly:p-0.5!",
|
|
3524
6542
|
sideOffset: 8,
|
|
3525
6543
|
onOpenAutoFocus: (e) => e.preventDefault(),
|
|
3526
6544
|
onCloseAutoFocus: (e) => e.preventDefault(),
|
|
3527
|
-
children: /* @__PURE__ */ jsx28(TooltipProvider, { children: /* @__PURE__ */ jsxs12("div", { className: "mly
|
|
3528
|
-
/* @__PURE__ */ jsxs12("label", { className: "mly
|
|
3529
|
-
/* @__PURE__ */ jsx28("span", { className: "mly
|
|
6545
|
+
children: /* @__PURE__ */ jsx28(TooltipProvider, { children: /* @__PURE__ */ jsxs12("div", { className: "mly:flex mly:items-stretch mly:text-midnight-gray", children: [
|
|
6546
|
+
/* @__PURE__ */ jsxs12("label", { className: "mly:relative", children: [
|
|
6547
|
+
/* @__PURE__ */ jsx28("span", { className: "mly:inline-block mly:px-2 mly:text-xs mly:text-midnight-gray", children: "Variable" }),
|
|
3530
6548
|
/* @__PURE__ */ jsx28(
|
|
3531
6549
|
"input",
|
|
3532
6550
|
__spreadProps(__spreadValues({}, AUTOCOMPLETE_PASSWORD_MANAGERS_OFF), {
|
|
@@ -3537,27 +6555,29 @@ function VariableView(props) {
|
|
|
3537
6555
|
});
|
|
3538
6556
|
},
|
|
3539
6557
|
placeholder: "ie. name...",
|
|
3540
|
-
className: "mly
|
|
6558
|
+
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"
|
|
3541
6559
|
})
|
|
3542
6560
|
)
|
|
3543
6561
|
] }),
|
|
3544
|
-
/* @__PURE__ */
|
|
3545
|
-
|
|
3546
|
-
/* @__PURE__ */
|
|
3547
|
-
|
|
3548
|
-
|
|
3549
|
-
|
|
3550
|
-
|
|
3551
|
-
|
|
3552
|
-
|
|
3553
|
-
|
|
3554
|
-
|
|
3555
|
-
|
|
3556
|
-
|
|
3557
|
-
|
|
3558
|
-
|
|
3559
|
-
|
|
3560
|
-
|
|
6562
|
+
!hideDefaultValue && /* @__PURE__ */ jsxs12(Fragment3, { children: [
|
|
6563
|
+
/* @__PURE__ */ jsx28(Divider, { className: "mly:mx-1.5" }),
|
|
6564
|
+
/* @__PURE__ */ jsxs12("label", { className: "mly:relative", children: [
|
|
6565
|
+
/* @__PURE__ */ jsx28("span", { className: "mly:inline-block mly:px-2 mly:pl-1 mly:text-xs mly:text-midnight-gray", children: "Default" }),
|
|
6566
|
+
/* @__PURE__ */ jsx28(
|
|
6567
|
+
"input",
|
|
6568
|
+
__spreadProps(__spreadValues({}, AUTOCOMPLETE_PASSWORD_MANAGERS_OFF), {
|
|
6569
|
+
value: fallback != null ? fallback : "",
|
|
6570
|
+
onChange: (e) => {
|
|
6571
|
+
updateAttributes2({
|
|
6572
|
+
fallback: e.target.value
|
|
6573
|
+
});
|
|
6574
|
+
},
|
|
6575
|
+
placeholder: "ie. John Doe...",
|
|
6576
|
+
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"
|
|
6577
|
+
})
|
|
6578
|
+
),
|
|
6579
|
+
/* @__PURE__ */ jsx28("div", { className: "mly:absolute mly:inset-y-0 mly:right-1 mly:flex mly:items-center", children: /* @__PURE__ */ jsx28(Pencil, { className: "mly:h-3 mly:w-3 mly:stroke-[2.5] mly:text-midnight-gray" }) })
|
|
6580
|
+
] })
|
|
3561
6581
|
] })
|
|
3562
6582
|
] }) })
|
|
3563
6583
|
}
|
|
@@ -3570,11 +6590,12 @@ function VariableView(props) {
|
|
|
3570
6590
|
}
|
|
3571
6591
|
var DefaultRenderVariable = (props) => {
|
|
3572
6592
|
const { variable, fallback, from } = props;
|
|
3573
|
-
const { name, required, valid } = variable;
|
|
6593
|
+
const { name, required, valid, label } = variable;
|
|
6594
|
+
const variableLabel = label || name;
|
|
3574
6595
|
if (from === "button-variable") {
|
|
3575
|
-
return /* @__PURE__ */ jsxs12("div", { className: "mly
|
|
3576
|
-
/* @__PURE__ */ jsx28(Braces2, { className: "mly
|
|
3577
|
-
/* @__PURE__ */ jsx28("span", { className: "mly
|
|
6596
|
+
return /* @__PURE__ */ jsxs12("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: [
|
|
6597
|
+
/* @__PURE__ */ jsx28(Braces2, { className: "mly:h-3 mly:w-3 mly:shrink-0 mly:stroke-[2.5]" }),
|
|
6598
|
+
/* @__PURE__ */ jsx28("span", { className: "mly:min-w-0 mly:truncate mly:text-left", children: variableLabel })
|
|
3578
6599
|
] });
|
|
3579
6600
|
}
|
|
3580
6601
|
if (from === "bubble-variable") {
|
|
@@ -3582,12 +6603,12 @@ var DefaultRenderVariable = (props) => {
|
|
|
3582
6603
|
"div",
|
|
3583
6604
|
{
|
|
3584
6605
|
className: cn(
|
|
3585
|
-
"mly
|
|
3586
|
-
!valid && "mly
|
|
6606
|
+
"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",
|
|
6607
|
+
!valid && "mly:border-rose-400 mly:bg-rose-50 mly:text-rose-600 mly:hover:bg-rose-100"
|
|
3587
6608
|
),
|
|
3588
6609
|
children: [
|
|
3589
|
-
/* @__PURE__ */ jsx28(Braces2, { className: "mly
|
|
3590
|
-
/* @__PURE__ */ jsx28("span", { className: "mly
|
|
6610
|
+
/* @__PURE__ */ jsx28(Braces2, { className: "mly:h-3 mly:w-3 mly:shrink-0 mly:stroke-[2.5] mly:text-rose-600" }),
|
|
6611
|
+
/* @__PURE__ */ jsx28("span", { className: "mly:min-w-0 mly:truncate mly:text-left", children: variableLabel })
|
|
3591
6612
|
]
|
|
3592
6613
|
}
|
|
3593
6614
|
);
|
|
@@ -3596,11 +6617,11 @@ var DefaultRenderVariable = (props) => {
|
|
|
3596
6617
|
"span",
|
|
3597
6618
|
{
|
|
3598
6619
|
tabIndex: -1,
|
|
3599
|
-
className: "mly
|
|
6620
|
+
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",
|
|
3600
6621
|
children: [
|
|
3601
|
-
/* @__PURE__ */ jsx28(Braces2, { className: "mly
|
|
3602
|
-
|
|
3603
|
-
required && !fallback && /* @__PURE__ */ jsx28(AlertTriangle, { className: "mly
|
|
6622
|
+
/* @__PURE__ */ jsx28(Braces2, { className: "mly:size-[var(--variable-icon-size)] mly:shrink-0 mly:stroke-[2.5] mly:text-rose-600" }),
|
|
6623
|
+
variableLabel,
|
|
6624
|
+
required && !fallback && /* @__PURE__ */ jsx28(AlertTriangle, { className: "mly:size-[var(--variable-icon-size)] mly:shrink-0 mly:stroke-[2.5]" })
|
|
3604
6625
|
]
|
|
3605
6626
|
}
|
|
3606
6627
|
);
|
|
@@ -3628,6 +6649,7 @@ var VariableExtension = Node8.create({
|
|
|
3628
6649
|
variables: DEFAULT_VARIABLES,
|
|
3629
6650
|
variableSuggestionsPopover: DEFAULT_VARIABLE_SUGGESTION_POPOVER,
|
|
3630
6651
|
renderVariable: DEFAULT_RENDER_VARIABLE_FUNCTION,
|
|
6652
|
+
disableInput: false,
|
|
3631
6653
|
renderLabel(props) {
|
|
3632
6654
|
var _a;
|
|
3633
6655
|
const { node } = props;
|
|
@@ -3711,6 +6733,9 @@ var VariableExtension = Node8.create({
|
|
|
3711
6733
|
"data-required": (_a = attributes == null ? void 0 : attributes.required) != null ? _a : true
|
|
3712
6734
|
};
|
|
3713
6735
|
}
|
|
6736
|
+
},
|
|
6737
|
+
hideDefaultValue: {
|
|
6738
|
+
default: false
|
|
3714
6739
|
}
|
|
3715
6740
|
};
|
|
3716
6741
|
},
|
|
@@ -3770,7 +6795,7 @@ var VariableExtension = Node8.create({
|
|
|
3770
6795
|
},
|
|
3771
6796
|
addNodeView() {
|
|
3772
6797
|
return ReactNodeViewRenderer3(VariableView, {
|
|
3773
|
-
className: "mly
|
|
6798
|
+
className: "mly:relative mly:inline-block",
|
|
3774
6799
|
as: "div"
|
|
3775
6800
|
});
|
|
3776
6801
|
}
|
|
@@ -3813,9 +6838,9 @@ function LinkInputPopover(props) {
|
|
|
3813
6838
|
variant: "ghost",
|
|
3814
6839
|
size: "sm",
|
|
3815
6840
|
type: "button",
|
|
3816
|
-
className: "!mly-
|
|
6841
|
+
className: "mly:h-7! mly:w-7!",
|
|
3817
6842
|
"data-state": !!defaultValue,
|
|
3818
|
-
children: /* @__PURE__ */ jsx29(Icon, { className: "mly
|
|
6843
|
+
children: /* @__PURE__ */ jsx29(Icon, { className: "mly:h-3 mly:w-3 mly:shrink-0 mly:stroke-[2.5] mly:text-midnight-gray" })
|
|
3819
6844
|
}
|
|
3820
6845
|
) });
|
|
3821
6846
|
return /* @__PURE__ */ jsxs13(
|
|
@@ -3841,7 +6866,7 @@ function LinkInputPopover(props) {
|
|
|
3841
6866
|
{
|
|
3842
6867
|
align: "end",
|
|
3843
6868
|
side: "top",
|
|
3844
|
-
className: "mly
|
|
6869
|
+
className: "mly:w-max mly:rounded-none mly:border-none mly:bg-transparent mly:p-0! mly:shadow-none",
|
|
3845
6870
|
sideOffset: 8,
|
|
3846
6871
|
onCloseAutoFocus: (e) => e.preventDefault(),
|
|
3847
6872
|
children: /* @__PURE__ */ jsx29(
|
|
@@ -3856,8 +6881,8 @@ function LinkInputPopover(props) {
|
|
|
3856
6881
|
onValueChange == null ? void 0 : onValueChange(input.value);
|
|
3857
6882
|
setIsOpen(false);
|
|
3858
6883
|
},
|
|
3859
|
-
children: /* @__PURE__ */ jsxs13("div", { className: "mly
|
|
3860
|
-
!isEditing && /* @__PURE__ */ jsx29("div", { className: "mly
|
|
6884
|
+
children: /* @__PURE__ */ jsxs13("div", { className: "mly:isolate mly:flex mly:rounded-lg", children: [
|
|
6885
|
+
!isEditing && /* @__PURE__ */ jsx29("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__ */ jsx29(
|
|
3861
6886
|
"button",
|
|
3862
6887
|
{
|
|
3863
6888
|
onClick: () => {
|
|
@@ -3878,8 +6903,8 @@ function LinkInputPopover(props) {
|
|
|
3878
6903
|
})
|
|
3879
6904
|
}
|
|
3880
6905
|
) }),
|
|
3881
|
-
isEditing && /* @__PURE__ */ jsxs13("div", { className: "mly
|
|
3882
|
-
/* @__PURE__ */ jsx29("div", { className: "mly
|
|
6906
|
+
isEditing && /* @__PURE__ */ jsxs13("div", { className: "mly:relative", children: [
|
|
6907
|
+
/* @__PURE__ */ jsx29("div", { className: "mly:absolute mly:inset-y-0 mly:left-1.5 mly:z-10 mly:flex mly:items-center", children: /* @__PURE__ */ jsx29(LinkIcon, { className: "mly:h-3 mly:w-3 mly:stroke-[2.5] mly:text-midnight-gray" }) }),
|
|
3883
6908
|
/* @__PURE__ */ jsx29(
|
|
3884
6909
|
InputAutocomplete,
|
|
3885
6910
|
{
|
|
@@ -3891,7 +6916,7 @@ function LinkInputPopover(props) {
|
|
|
3891
6916
|
autoCompleteOptions,
|
|
3892
6917
|
ref: linkInputRef,
|
|
3893
6918
|
placeholder: placeholderUrl,
|
|
3894
|
-
className: "-mly
|
|
6919
|
+
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",
|
|
3895
6920
|
triggerChar: variableTriggerCharacter,
|
|
3896
6921
|
onSelectOption: (value) => {
|
|
3897
6922
|
var _a2;
|
|
@@ -3928,27 +6953,31 @@ function Select(props) {
|
|
|
3928
6953
|
tooltip,
|
|
3929
6954
|
className,
|
|
3930
6955
|
icon: Icon,
|
|
3931
|
-
iconClassName
|
|
6956
|
+
iconClassName,
|
|
6957
|
+
placeholder
|
|
3932
6958
|
} = props;
|
|
3933
6959
|
const selectId = `mly${useId()}`;
|
|
3934
|
-
const content = /* @__PURE__ */ jsxs14("div", { className: "mly
|
|
3935
|
-
/* @__PURE__ */ jsx30("label", { htmlFor: selectId, className: "mly
|
|
3936
|
-
Icon && /* @__PURE__ */ jsx30("div", { className: "mly
|
|
3937
|
-
/* @__PURE__ */
|
|
6960
|
+
const content = /* @__PURE__ */ jsxs14("div", { className: "mly:relative", children: [
|
|
6961
|
+
/* @__PURE__ */ jsx30("label", { htmlFor: selectId, className: "mly:sr-only", children: label }),
|
|
6962
|
+
Icon && /* @__PURE__ */ jsx30("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__ */ jsx30(Icon, { className: cn("mly:size-3", iconClassName) }) }),
|
|
6963
|
+
/* @__PURE__ */ jsxs14(
|
|
3938
6964
|
"select",
|
|
3939
6965
|
{
|
|
3940
6966
|
id: selectId,
|
|
3941
6967
|
className: cn(
|
|
3942
|
-
"mly
|
|
3943
|
-
!!Icon && "mly
|
|
6968
|
+
"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",
|
|
6969
|
+
!!Icon && "mly:pl-7",
|
|
3944
6970
|
className
|
|
3945
6971
|
),
|
|
3946
|
-
value,
|
|
6972
|
+
value: value || "",
|
|
3947
6973
|
onChange: (event) => onValueChange(event.target.value),
|
|
3948
|
-
children:
|
|
6974
|
+
children: [
|
|
6975
|
+
placeholder && /* @__PURE__ */ jsx30("option", { value: "", disabled: true, hidden: true, children: placeholder }),
|
|
6976
|
+
options.map((option) => /* @__PURE__ */ jsx30("option", { value: option.value, children: option.label }, option.value))
|
|
6977
|
+
]
|
|
3949
6978
|
}
|
|
3950
6979
|
),
|
|
3951
|
-
/* @__PURE__ */ jsx30("span", { className: "mly
|
|
6980
|
+
/* @__PURE__ */ jsx30("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__ */ jsx30(
|
|
3952
6981
|
ChevronDownIcon,
|
|
3953
6982
|
{
|
|
3954
6983
|
size: 16,
|
|
@@ -3995,7 +7024,7 @@ function ButtonLabelInput(props) {
|
|
|
3995
7024
|
editor
|
|
3996
7025
|
}).map((variable) => variable.name);
|
|
3997
7026
|
}, [variables, value, editor]);
|
|
3998
|
-
return /* @__PURE__ */ jsxs15("div", { className: "mly
|
|
7027
|
+
return /* @__PURE__ */ jsxs15("div", { className: "mly:isolate mly:flex mly:rounded-lg", children: [
|
|
3999
7028
|
!isEditing && /* @__PURE__ */ jsx31(
|
|
4000
7029
|
"button",
|
|
4001
7030
|
{
|
|
@@ -4028,7 +7057,7 @@ function ButtonLabelInput(props) {
|
|
|
4028
7057
|
autoCompleteOptions,
|
|
4029
7058
|
ref: linkInputRef,
|
|
4030
7059
|
placeholder: placeholderUrl,
|
|
4031
|
-
className: "mly
|
|
7060
|
+
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",
|
|
4032
7061
|
triggerChar: variableTriggerCharacter,
|
|
4033
7062
|
onSelectOption: (value2) => {
|
|
4034
7063
|
var _a2;
|
|
@@ -4056,7 +7085,6 @@ function ButtonView(props) {
|
|
|
4056
7085
|
buttonColor,
|
|
4057
7086
|
textColor,
|
|
4058
7087
|
url: externalLink,
|
|
4059
|
-
showIfKey = "",
|
|
4060
7088
|
isUrlVariable,
|
|
4061
7089
|
paddingTop,
|
|
4062
7090
|
paddingRight,
|
|
@@ -4102,28 +7130,28 @@ function ButtonView(props) {
|
|
|
4102
7130
|
"button",
|
|
4103
7131
|
{
|
|
4104
7132
|
className: cn(
|
|
4105
|
-
"mly
|
|
4106
|
-
"mly
|
|
7133
|
+
"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",
|
|
7134
|
+
"mly:font-semibold mly:no-underline",
|
|
4107
7135
|
{
|
|
4108
|
-
"
|
|
4109
|
-
"
|
|
4110
|
-
"
|
|
7136
|
+
"mly:rounded-full!": _radius === "round",
|
|
7137
|
+
"mly:rounded-md!": _radius === "smooth",
|
|
7138
|
+
"mly:rounded-none!": _radius === "sharp"
|
|
4111
7139
|
}
|
|
4112
7140
|
),
|
|
4113
7141
|
tabIndex: -1,
|
|
4114
7142
|
style: {
|
|
4115
|
-
backgroundColor: variant === "filled" ? buttonColor : "transparent",
|
|
4116
|
-
color: textColor,
|
|
7143
|
+
backgroundColor: variant === "filled" ? buttonColor || "var(--mly-button-background-color)" : "transparent",
|
|
7144
|
+
color: textColor || "var(--mly-button-text-color)",
|
|
4117
7145
|
borderWidth: 2,
|
|
4118
7146
|
borderStyle: "solid",
|
|
4119
|
-
borderColor: buttonColor,
|
|
7147
|
+
borderColor: buttonColor || "var(--mly-button-background-color)",
|
|
4120
7148
|
// decrease the border color opacity to 80%
|
|
4121
7149
|
// so that it's not too prominent
|
|
4122
|
-
"--button-var-border-color": `${textColor}80
|
|
4123
|
-
paddingTop,
|
|
4124
|
-
paddingRight,
|
|
4125
|
-
paddingBottom,
|
|
4126
|
-
paddingLeft
|
|
7150
|
+
"--button-var-border-color": textColor ? `${textColor}80` : "color-mix(in srgb, var(--mly-button-text-color) 80%, transparent)",
|
|
7151
|
+
paddingTop: paddingTop || "var(--mly-button-padding-top)",
|
|
7152
|
+
paddingRight: paddingRight || "var(--mly-button-padding-right)",
|
|
7153
|
+
paddingBottom: paddingBottom || "var(--mly-button-padding-bottom)",
|
|
7154
|
+
paddingLeft: paddingLeft || "var(--mly-button-padding-left)"
|
|
4127
7155
|
},
|
|
4128
7156
|
onClick: (e) => {
|
|
4129
7157
|
e.preventDefault();
|
|
@@ -4146,11 +7174,11 @@ function ButtonView(props) {
|
|
|
4146
7174
|
{
|
|
4147
7175
|
align: "end",
|
|
4148
7176
|
side: "top",
|
|
4149
|
-
className: "mly
|
|
7177
|
+
className: "mly:w-max mly:rounded-lg mly:p-0.5!",
|
|
4150
7178
|
sideOffset: 8,
|
|
4151
7179
|
onOpenAutoFocus: (e) => e.preventDefault(),
|
|
4152
7180
|
onCloseAutoFocus: (e) => e.preventDefault(),
|
|
4153
|
-
children: /* @__PURE__ */ jsx32(TooltipProvider, { children: /* @__PURE__ */ jsxs16("div", { className: "mly
|
|
7181
|
+
children: /* @__PURE__ */ jsx32(TooltipProvider, { children: /* @__PURE__ */ jsxs16("div", { className: "mly:flex mly:items-stretch mly:text-midnight-gray", children: [
|
|
4154
7182
|
/* @__PURE__ */ jsx32(
|
|
4155
7183
|
ButtonLabelInput,
|
|
4156
7184
|
{
|
|
@@ -4166,7 +7194,7 @@ function ButtonView(props) {
|
|
|
4166
7194
|
}
|
|
4167
7195
|
),
|
|
4168
7196
|
/* @__PURE__ */ jsx32(Divider, {}),
|
|
4169
|
-
/* @__PURE__ */ jsxs16("div", { className: "mly
|
|
7197
|
+
/* @__PURE__ */ jsxs16("div", { className: "mly:flex mly:gap-x-0.5", children: [
|
|
4170
7198
|
/* @__PURE__ */ jsx32(
|
|
4171
7199
|
Select,
|
|
4172
7200
|
{
|
|
@@ -4182,7 +7210,7 @@ function ButtonView(props) {
|
|
|
4182
7210
|
});
|
|
4183
7211
|
},
|
|
4184
7212
|
tooltip: "Border Radius",
|
|
4185
|
-
className: "mly
|
|
7213
|
+
className: "mly:capitalize"
|
|
4186
7214
|
}
|
|
4187
7215
|
),
|
|
4188
7216
|
/* @__PURE__ */ jsx32(
|
|
@@ -4200,7 +7228,7 @@ function ButtonView(props) {
|
|
|
4200
7228
|
});
|
|
4201
7229
|
},
|
|
4202
7230
|
tooltip: "Style",
|
|
4203
|
-
className: "mly
|
|
7231
|
+
className: "mly:capitalize"
|
|
4204
7232
|
}
|
|
4205
7233
|
),
|
|
4206
7234
|
/* @__PURE__ */ jsx32(
|
|
@@ -4222,12 +7250,13 @@ function ButtonView(props) {
|
|
|
4222
7250
|
paddingLeft: paddingX
|
|
4223
7251
|
});
|
|
4224
7252
|
},
|
|
4225
|
-
tooltip: "Size"
|
|
7253
|
+
tooltip: "Size",
|
|
7254
|
+
placeholder: "Size"
|
|
4226
7255
|
}
|
|
4227
7256
|
)
|
|
4228
7257
|
] }),
|
|
4229
7258
|
/* @__PURE__ */ jsx32(Divider, {}),
|
|
4230
|
-
/* @__PURE__ */ jsxs16("div", { className: "mly
|
|
7259
|
+
/* @__PURE__ */ jsxs16("div", { className: "mly:flex mly:gap-x-0.5", children: [
|
|
4231
7260
|
/* @__PURE__ */ jsx32(
|
|
4232
7261
|
AlignmentSwitch,
|
|
4233
7262
|
{
|
|
@@ -4256,12 +7285,12 @@ function ButtonView(props) {
|
|
|
4256
7285
|
)
|
|
4257
7286
|
] }),
|
|
4258
7287
|
/* @__PURE__ */ jsx32(Divider, {}),
|
|
4259
|
-
/* @__PURE__ */ jsxs16("div", { className: "mly
|
|
7288
|
+
/* @__PURE__ */ jsxs16("div", { className: "mly:flex mly:gap-x-0.5", children: [
|
|
4260
7289
|
/* @__PURE__ */ jsx32(
|
|
4261
7290
|
BackgroundColorPickerPopup,
|
|
4262
7291
|
{
|
|
4263
7292
|
variant,
|
|
4264
|
-
color: buttonColor,
|
|
7293
|
+
color: buttonColor || "transparent",
|
|
4265
7294
|
onChange: (color) => {
|
|
4266
7295
|
updateAttributes2({
|
|
4267
7296
|
buttonColor: color
|
|
@@ -4272,7 +7301,7 @@ function ButtonView(props) {
|
|
|
4272
7301
|
/* @__PURE__ */ jsx32(
|
|
4273
7302
|
TextColorPickerPopup,
|
|
4274
7303
|
{
|
|
4275
|
-
color: textColor,
|
|
7304
|
+
color: textColor || "transparent",
|
|
4276
7305
|
onChange: (color) => {
|
|
4277
7306
|
updateAttributes2({
|
|
4278
7307
|
textColor: color
|
|
@@ -4302,11 +7331,11 @@ function BackgroundColorPickerPopup(props) {
|
|
|
4302
7331
|
variant: "ghost",
|
|
4303
7332
|
size: "sm",
|
|
4304
7333
|
type: "button",
|
|
4305
|
-
className: "mly
|
|
7334
|
+
className: "mly:size-7",
|
|
4306
7335
|
children: /* @__PURE__ */ jsx32(
|
|
4307
7336
|
"div",
|
|
4308
7337
|
{
|
|
4309
|
-
className: "mly
|
|
7338
|
+
className: "mly:h-4 mly:w-4 mly:shrink-0 mly:rounded-full mly:shadow",
|
|
4310
7339
|
style: {
|
|
4311
7340
|
backgroundColor: variant === "filled" ? color : "transparent",
|
|
4312
7341
|
borderStyle: "solid",
|
|
@@ -4328,13 +7357,13 @@ function TextColorPickerPopup(props) {
|
|
|
4328
7357
|
variant: "ghost",
|
|
4329
7358
|
size: "sm",
|
|
4330
7359
|
type: "button",
|
|
4331
|
-
className: "mly
|
|
4332
|
-
children: /* @__PURE__ */ jsxs16("div", { className: "mly
|
|
4333
|
-
/* @__PURE__ */ jsx32("span", { className: "mly
|
|
7360
|
+
className: "mly:size-7",
|
|
7361
|
+
children: /* @__PURE__ */ jsxs16("div", { className: "mly:flex mly:flex-col mly:items-center mly:justify-center mly:gap-px", children: [
|
|
7362
|
+
/* @__PURE__ */ jsx32("span", { className: "mly:font-bolder mly:font-mono mly:text-xs mly:text-midnight-gray", children: "A" }),
|
|
4334
7363
|
/* @__PURE__ */ jsx32(
|
|
4335
7364
|
"div",
|
|
4336
7365
|
{
|
|
4337
|
-
className: "mly
|
|
7366
|
+
className: "mly:h-[2px] mly:w-3 mly:shrink-0 mly:rounded-md mly:shadow",
|
|
4338
7367
|
style: { backgroundColor: color }
|
|
4339
7368
|
}
|
|
4340
7369
|
)
|
|
@@ -4347,12 +7376,12 @@ function TextColorPickerPopup(props) {
|
|
|
4347
7376
|
var DEFAULT_BUTTON_ALIGNMENT = "left";
|
|
4348
7377
|
var DEFAULT_BUTTON_VARIANT = "filled";
|
|
4349
7378
|
var DEFAULT_BUTTON_BORDER_RADIUS = "smooth";
|
|
4350
|
-
var DEFAULT_BUTTON_BACKGROUND_COLOR =
|
|
4351
|
-
var DEFAULT_BUTTON_TEXT_COLOR =
|
|
4352
|
-
var DEFAULT_BUTTON_PADDING_TOP =
|
|
4353
|
-
var DEFAULT_BUTTON_PADDING_RIGHT =
|
|
4354
|
-
var DEFAULT_BUTTON_PADDING_BOTTOM =
|
|
4355
|
-
var DEFAULT_BUTTON_PADDING_LEFT =
|
|
7379
|
+
var DEFAULT_BUTTON_BACKGROUND_COLOR = null;
|
|
7380
|
+
var DEFAULT_BUTTON_TEXT_COLOR = null;
|
|
7381
|
+
var DEFAULT_BUTTON_PADDING_TOP = null;
|
|
7382
|
+
var DEFAULT_BUTTON_PADDING_RIGHT = null;
|
|
7383
|
+
var DEFAULT_BUTTON_PADDING_BOTTOM = null;
|
|
7384
|
+
var DEFAULT_BUTTON_PADDING_LEFT = null;
|
|
4356
7385
|
var allowedButtonVariant = ["filled", "outline"];
|
|
4357
7386
|
var allowedButtonBorderRadius = ["sharp", "smooth", "round"];
|
|
4358
7387
|
var ButtonExtension = Node9.create({
|
|
@@ -4448,28 +7477,6 @@ var ButtonExtension = Node9.create({
|
|
|
4448
7477
|
};
|
|
4449
7478
|
}
|
|
4450
7479
|
},
|
|
4451
|
-
buttonColor: {
|
|
4452
|
-
default: DEFAULT_BUTTON_BACKGROUND_COLOR,
|
|
4453
|
-
parseHTML: (element) => {
|
|
4454
|
-
return element.getAttribute("data-button-color") || DEFAULT_BUTTON_BACKGROUND_COLOR;
|
|
4455
|
-
},
|
|
4456
|
-
renderHTML: (attributes) => {
|
|
4457
|
-
return {
|
|
4458
|
-
"data-button-color": attributes.buttonColor
|
|
4459
|
-
};
|
|
4460
|
-
}
|
|
4461
|
-
},
|
|
4462
|
-
textColor: {
|
|
4463
|
-
default: DEFAULT_BUTTON_TEXT_COLOR,
|
|
4464
|
-
parseHTML: (element) => {
|
|
4465
|
-
return element.getAttribute("data-text-color") || DEFAULT_BUTTON_TEXT_COLOR;
|
|
4466
|
-
},
|
|
4467
|
-
renderHTML: (attributes) => {
|
|
4468
|
-
return {
|
|
4469
|
-
"data-text-color": attributes.textColor
|
|
4470
|
-
};
|
|
4471
|
-
}
|
|
4472
|
-
},
|
|
4473
7480
|
showIfKey: {
|
|
4474
7481
|
default: DEFAULT_SECTION_SHOW_IF_KEY,
|
|
4475
7482
|
parseHTML: (element) => {
|
|
@@ -4484,62 +7491,12 @@ var ButtonExtension = Node9.create({
|
|
|
4484
7491
|
};
|
|
4485
7492
|
}
|
|
4486
7493
|
},
|
|
4487
|
-
|
|
4488
|
-
|
|
4489
|
-
|
|
4490
|
-
|
|
4491
|
-
|
|
4492
|
-
|
|
4493
|
-
);
|
|
4494
|
-
},
|
|
4495
|
-
renderHTML: (attributes) => {
|
|
4496
|
-
return {
|
|
4497
|
-
"data-padding-top": attributes.paddingTop
|
|
4498
|
-
};
|
|
4499
|
-
}
|
|
4500
|
-
},
|
|
4501
|
-
paddingRight: {
|
|
4502
|
-
default: DEFAULT_BUTTON_PADDING_RIGHT,
|
|
4503
|
-
parseHTML: (element) => {
|
|
4504
|
-
return parseInt(
|
|
4505
|
-
element.getAttribute("data-padding-right") || DEFAULT_BUTTON_PADDING_RIGHT.toString(),
|
|
4506
|
-
10
|
|
4507
|
-
);
|
|
4508
|
-
},
|
|
4509
|
-
renderHTML: (attributes) => {
|
|
4510
|
-
return {
|
|
4511
|
-
"data-padding-right": attributes.paddingRight
|
|
4512
|
-
};
|
|
4513
|
-
}
|
|
4514
|
-
},
|
|
4515
|
-
paddingBottom: {
|
|
4516
|
-
default: DEFAULT_BUTTON_PADDING_BOTTOM,
|
|
4517
|
-
parseHTML: (element) => {
|
|
4518
|
-
return parseInt(
|
|
4519
|
-
element.getAttribute("data-padding-bottom") || DEFAULT_BUTTON_PADDING_BOTTOM.toString(),
|
|
4520
|
-
10
|
|
4521
|
-
);
|
|
4522
|
-
},
|
|
4523
|
-
renderHTML: (attributes) => {
|
|
4524
|
-
return {
|
|
4525
|
-
"data-padding-bottom": attributes.paddingBottom
|
|
4526
|
-
};
|
|
4527
|
-
}
|
|
4528
|
-
},
|
|
4529
|
-
paddingLeft: {
|
|
4530
|
-
default: DEFAULT_BUTTON_PADDING_LEFT,
|
|
4531
|
-
parseHTML: (element) => {
|
|
4532
|
-
return parseInt(
|
|
4533
|
-
element.getAttribute("data-padding-left") || DEFAULT_BUTTON_PADDING_LEFT.toString(),
|
|
4534
|
-
10
|
|
4535
|
-
);
|
|
4536
|
-
},
|
|
4537
|
-
renderHTML: (attributes) => {
|
|
4538
|
-
return {
|
|
4539
|
-
"data-padding-left": attributes.paddingLeft
|
|
4540
|
-
};
|
|
4541
|
-
}
|
|
4542
|
-
}
|
|
7494
|
+
buttonColor: DEFAULT_BUTTON_BACKGROUND_COLOR,
|
|
7495
|
+
textColor: DEFAULT_BUTTON_TEXT_COLOR,
|
|
7496
|
+
paddingTop: DEFAULT_BUTTON_PADDING_TOP,
|
|
7497
|
+
paddingRight: DEFAULT_BUTTON_PADDING_RIGHT,
|
|
7498
|
+
paddingBottom: DEFAULT_BUTTON_PADDING_BOTTOM,
|
|
7499
|
+
paddingLeft: DEFAULT_BUTTON_PADDING_LEFT
|
|
4543
7500
|
};
|
|
4544
7501
|
},
|
|
4545
7502
|
parseHTML() {
|
|
@@ -4572,7 +7529,7 @@ var ButtonExtension = Node9.create({
|
|
|
4572
7529
|
addNodeView() {
|
|
4573
7530
|
return ReactNodeViewRenderer4(ButtonView, {
|
|
4574
7531
|
contentDOMElementTag: "div",
|
|
4575
|
-
className: "mly
|
|
7532
|
+
className: "mly:relative"
|
|
4576
7533
|
});
|
|
4577
7534
|
}
|
|
4578
7535
|
});
|
|
@@ -4718,7 +7675,7 @@ var ImageExtension = TiptapImage2.extend({
|
|
|
4718
7675
|
},
|
|
4719
7676
|
addNodeView() {
|
|
4720
7677
|
return ReactNodeViewRenderer5(ImageView, {
|
|
4721
|
-
className: "mly
|
|
7678
|
+
className: "mly:relative"
|
|
4722
7679
|
});
|
|
4723
7680
|
}
|
|
4724
7681
|
});
|
|
@@ -4808,7 +7765,7 @@ function RepeatView(props) {
|
|
|
4808
7765
|
"data-type": "repeat",
|
|
4809
7766
|
draggable: editor.isEditable,
|
|
4810
7767
|
"data-drag-handle": editor.isEditable,
|
|
4811
|
-
className: "mly
|
|
7768
|
+
className: "mly:relative",
|
|
4812
7769
|
children: [
|
|
4813
7770
|
/* @__PURE__ */ jsx33(NodeViewContent, { className: "is-editable" }),
|
|
4814
7771
|
/* @__PURE__ */ jsxs17(
|
|
@@ -4816,14 +7773,14 @@ function RepeatView(props) {
|
|
|
4816
7773
|
{
|
|
4817
7774
|
role: "button",
|
|
4818
7775
|
"data-repeat-indicator": "",
|
|
4819
|
-
className: "mly
|
|
7776
|
+
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",
|
|
4820
7777
|
contentEditable: false,
|
|
4821
7778
|
onClick: () => {
|
|
4822
7779
|
editor.commands.setNodeSelection(getPos());
|
|
4823
7780
|
},
|
|
4824
7781
|
children: [
|
|
4825
|
-
/* @__PURE__ */ jsx33(Repeat22, { className: "mly
|
|
4826
|
-
/* @__PURE__ */ jsx33("div", { className: "mly
|
|
7782
|
+
/* @__PURE__ */ jsx33(Repeat22, { className: "mly:size-3 mly:stroke-[2.5] mly:text-midnight-gray" }),
|
|
7783
|
+
/* @__PURE__ */ jsx33("div", { className: "mly:w-[1.5px] mly:grow mly:rounded-full mly:bg-rose-300" })
|
|
4827
7784
|
]
|
|
4828
7785
|
}
|
|
4829
7786
|
)
|
|
@@ -4909,7 +7866,7 @@ var RepeatExtension = Node10.create({
|
|
|
4909
7866
|
addNodeView() {
|
|
4910
7867
|
return ReactNodeViewRenderer6(RepeatView, {
|
|
4911
7868
|
contentDOMElementTag: "div",
|
|
4912
|
-
className: "mly
|
|
7869
|
+
className: "mly:relative"
|
|
4913
7870
|
});
|
|
4914
7871
|
}
|
|
4915
7872
|
});
|
|
@@ -4923,7 +7880,7 @@ var MailyKit = Extension2.create({
|
|
|
4923
7880
|
HTMLAttributes: {
|
|
4924
7881
|
target: "_blank",
|
|
4925
7882
|
rel: "noopener noreferrer nofollow",
|
|
4926
|
-
class: "mly
|
|
7883
|
+
class: "mly:no-underline"
|
|
4927
7884
|
},
|
|
4928
7885
|
openOnClick: false
|
|
4929
7886
|
}
|
|
@@ -4937,22 +7894,22 @@ var MailyKit = Extension2.create({
|
|
|
4937
7894
|
StarterKit.configure({
|
|
4938
7895
|
code: {
|
|
4939
7896
|
HTMLAttributes: {
|
|
4940
|
-
class: "mly
|
|
7897
|
+
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"
|
|
4941
7898
|
}
|
|
4942
7899
|
},
|
|
4943
7900
|
blockquote: {
|
|
4944
7901
|
HTMLAttributes: {
|
|
4945
|
-
class: "mly
|
|
7902
|
+
class: "mly:not-prose mly:border-l-4 mly:border-gray-300 mly:pl-4 mly:mt-4 mly:mb-4 mly:relative"
|
|
4946
7903
|
}
|
|
4947
7904
|
},
|
|
4948
7905
|
bulletList: {
|
|
4949
7906
|
HTMLAttributes: {
|
|
4950
|
-
class: "mly
|
|
7907
|
+
class: "mly:relative"
|
|
4951
7908
|
}
|
|
4952
7909
|
},
|
|
4953
7910
|
orderedList: {
|
|
4954
7911
|
HTMLAttributes: {
|
|
4955
|
-
class: "mly
|
|
7912
|
+
class: "mly:relative"
|
|
4956
7913
|
}
|
|
4957
7914
|
},
|
|
4958
7915
|
heading: false,
|
|
@@ -4978,12 +7935,12 @@ var MailyKit = Extension2.create({
|
|
|
4978
7935
|
HeadingExtension.configure({
|
|
4979
7936
|
levels: [1, 2, 3],
|
|
4980
7937
|
HTMLAttributes: {
|
|
4981
|
-
class: "mly
|
|
7938
|
+
class: "mly:relative"
|
|
4982
7939
|
}
|
|
4983
7940
|
}),
|
|
4984
7941
|
ParagraphExtension.configure({
|
|
4985
7942
|
HTMLAttributes: {
|
|
4986
|
-
class: "mly
|
|
7943
|
+
class: "mly:relative"
|
|
4987
7944
|
}
|
|
4988
7945
|
})
|
|
4989
7946
|
];
|
|
@@ -5067,7 +8024,7 @@ var SlashCommandExtension = Extension3.create({
|
|
|
5067
8024
|
import { ReactRenderer } from "@tiptap/react";
|
|
5068
8025
|
import {
|
|
5069
8026
|
forwardRef as forwardRef8,
|
|
5070
|
-
Fragment as
|
|
8027
|
+
Fragment as Fragment5,
|
|
5071
8028
|
useCallback as useCallback6,
|
|
5072
8029
|
useEffect as useEffect6,
|
|
5073
8030
|
useImperativeHandle as useImperativeHandle2,
|
|
@@ -5080,7 +8037,7 @@ import tippy from "tippy.js";
|
|
|
5080
8037
|
// src/editor/extensions/slash-command/slash-command-item.tsx
|
|
5081
8038
|
import { ChevronRightIcon } from "lucide-react";
|
|
5082
8039
|
import { useCallback as useCallback5, useState as useState6, useRef as useRef7, useEffect as useEffect5 } from "react";
|
|
5083
|
-
import { Fragment as
|
|
8040
|
+
import { Fragment as Fragment4, jsx as jsx34, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
5084
8041
|
function SlashCommandItem(props) {
|
|
5085
8042
|
var _a;
|
|
5086
8043
|
const {
|
|
@@ -5103,13 +8060,13 @@ function SlashCommandItem(props) {
|
|
|
5103
8060
|
const shouldOpenTooltip = !!(item == null ? void 0 : item.preview) && (isHovered || isActive && !hoveredItemKey);
|
|
5104
8061
|
const hasRenderFunction = typeof item.render === "function";
|
|
5105
8062
|
const renderFunctionValue = hasRenderFunction ? (_a = item.render) == null ? void 0 : _a.call(item, editor) : null;
|
|
5106
|
-
let value = /* @__PURE__ */ jsxs18(
|
|
5107
|
-
/* @__PURE__ */ jsx34("div", { className: "mly
|
|
5108
|
-
/* @__PURE__ */ jsxs18("div", { className: "mly
|
|
5109
|
-
/* @__PURE__ */ jsx34("p", { className: "mly
|
|
5110
|
-
/* @__PURE__ */ jsx34("p", { className: "mly
|
|
8063
|
+
let value = /* @__PURE__ */ jsxs18(Fragment4, { children: [
|
|
8064
|
+
/* @__PURE__ */ jsx34("div", { className: "mly:flex mly:h-6 mly:w-6 mly:shrink-0 mly:items-center mly:justify-center", children: item.icon }),
|
|
8065
|
+
/* @__PURE__ */ jsxs18("div", { className: "mly:grow", children: [
|
|
8066
|
+
/* @__PURE__ */ jsx34("p", { className: "mly:font-medium", children: item.title }),
|
|
8067
|
+
/* @__PURE__ */ jsx34("p", { className: "mly:text-xs mly:text-gray-400", children: item.description })
|
|
5111
8068
|
] }),
|
|
5112
|
-
isSubCommand2 && /* @__PURE__ */ jsx34("span", { className: "mly
|
|
8069
|
+
isSubCommand2 && /* @__PURE__ */ jsx34("span", { className: "mly:block mly:px-1 mly:text-gray-400", children: /* @__PURE__ */ jsx34(ChevronRightIcon, { className: "mly:size-3.5 mly:stroke-[2.5]" }) })
|
|
5113
8070
|
] });
|
|
5114
8071
|
if (renderFunctionValue !== null && renderFunctionValue !== true) {
|
|
5115
8072
|
value = renderFunctionValue;
|
|
@@ -5145,8 +8102,8 @@ function SlashCommandItem(props) {
|
|
|
5145
8102
|
"button",
|
|
5146
8103
|
{
|
|
5147
8104
|
className: cn(
|
|
5148
|
-
"mly
|
|
5149
|
-
isActive ? "mly
|
|
8105
|
+
"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",
|
|
8106
|
+
isActive ? "mly:bg-gray-100 mly:text-gray-900" : "mly:bg-transparent"
|
|
5150
8107
|
),
|
|
5151
8108
|
onClick: () => selectItem(groupIndex, commandIndex),
|
|
5152
8109
|
onMouseEnter: () => onHover(true),
|
|
@@ -5161,17 +8118,17 @@ function SlashCommandItem(props) {
|
|
|
5161
8118
|
{
|
|
5162
8119
|
side: "right",
|
|
5163
8120
|
sideOffset: 10,
|
|
5164
|
-
className: "mly
|
|
5165
|
-
children: typeof item.preview === "function" ? item == null ? void 0 : item.preview(editor) : /* @__PURE__ */ jsxs18(
|
|
5166
|
-
/* @__PURE__ */ jsx34("figure", { className: "mly
|
|
8121
|
+
className: "mly:w-52 mly:rounded-lg mly:border-none mly:p-1 mly:shadow",
|
|
8122
|
+
children: typeof item.preview === "function" ? item == null ? void 0 : item.preview(editor) : /* @__PURE__ */ jsxs18(Fragment4, { children: [
|
|
8123
|
+
/* @__PURE__ */ jsx34("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__ */ jsx34(
|
|
5167
8124
|
"img",
|
|
5168
8125
|
{
|
|
5169
8126
|
src: item == null ? void 0 : item.preview,
|
|
5170
8127
|
alt: item == null ? void 0 : item.title,
|
|
5171
|
-
className: "mly
|
|
8128
|
+
className: "mly:absolute mly:inset-0 mly:h-full mly:w-full mly:object-cover"
|
|
5172
8129
|
}
|
|
5173
8130
|
) }),
|
|
5174
|
-
/* @__PURE__ */ jsx34("p", { className: "mly
|
|
8131
|
+
/* @__PURE__ */ jsx34("p", { className: "mly:mt-2 mly:px-0.5 mly:text-gray-500", children: item.description })
|
|
5175
8132
|
] })
|
|
5176
8133
|
}
|
|
5177
8134
|
)
|
|
@@ -5398,25 +8355,25 @@ var CommandList = forwardRef8((props, ref) => {
|
|
|
5398
8355
|
if (!groups || groups.length === 0) {
|
|
5399
8356
|
return null;
|
|
5400
8357
|
}
|
|
5401
|
-
return /* @__PURE__ */ jsx35(TooltipProvider, { children: /* @__PURE__ */ jsxs19("div", { className: "mly
|
|
8358
|
+
return /* @__PURE__ */ jsx35(TooltipProvider, { children: /* @__PURE__ */ jsxs19("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: [
|
|
5402
8359
|
/* @__PURE__ */ jsx35(
|
|
5403
8360
|
"div",
|
|
5404
8361
|
{
|
|
5405
8362
|
id: "slash-command",
|
|
5406
8363
|
ref: commandListContainer,
|
|
5407
|
-
className: "mly
|
|
5408
|
-
children: groups.map((group, groupIndex) => /* @__PURE__ */ jsxs19(
|
|
8364
|
+
className: "mly:no-scrollbar mly:h-auto mly:max-h-[330px] mly:overflow-y-auto",
|
|
8365
|
+
children: groups.map((group, groupIndex) => /* @__PURE__ */ jsxs19(Fragment5, { children: [
|
|
5409
8366
|
/* @__PURE__ */ jsx35(
|
|
5410
8367
|
"span",
|
|
5411
8368
|
{
|
|
5412
8369
|
className: cn(
|
|
5413
|
-
"mly
|
|
5414
|
-
groupIndex > 0 ? "mly
|
|
8370
|
+
"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",
|
|
8371
|
+
groupIndex > 0 ? "mly:border-t" : ""
|
|
5415
8372
|
),
|
|
5416
8373
|
children: group.title
|
|
5417
8374
|
}
|
|
5418
8375
|
),
|
|
5419
|
-
/* @__PURE__ */ jsx35("div", { className: "mly
|
|
8376
|
+
/* @__PURE__ */ jsx35("div", { className: "mly:space-y-0.5 mly:p-1", children: group.commands.map((item, commandIndex) => {
|
|
5420
8377
|
const itemKey = `${groupIndex}-${commandIndex}`;
|
|
5421
8378
|
return /* @__PURE__ */ jsx35(
|
|
5422
8379
|
SlashCommandItem,
|
|
@@ -5438,16 +8395,16 @@ var CommandList = forwardRef8((props, ref) => {
|
|
|
5438
8395
|
] }, groupIndex))
|
|
5439
8396
|
}
|
|
5440
8397
|
),
|
|
5441
|
-
/* @__PURE__ */ jsx35("div", { className: "mly
|
|
5442
|
-
/* @__PURE__ */ jsxs19("p", { className: "mly
|
|
5443
|
-
/* @__PURE__ */ jsx35("kbd", { className: "mly
|
|
5444
|
-
/* @__PURE__ */ jsx35("kbd", { className: "mly
|
|
8398
|
+
/* @__PURE__ */ jsx35("div", { className: "mly:border-t mly:border-gray-200 mly:px-1 mly:py-3 mly:pl-4", children: /* @__PURE__ */ jsxs19("div", { className: "mly:flex mly:items-center", children: [
|
|
8399
|
+
/* @__PURE__ */ jsxs19("p", { className: "mly:text-center mly:text-xs mly:text-gray-400", children: [
|
|
8400
|
+
/* @__PURE__ */ jsx35("kbd", { className: "mly:rounded mly:border mly:border-gray-200 mly:p-1 mly:px-2 mly:font-medium", children: "\u2191" }),
|
|
8401
|
+
/* @__PURE__ */ jsx35("kbd", { className: "mly:ml-1 mly:rounded mly:border mly:border-gray-200 mly:p-1 mly:px-2 mly:font-medium", children: "\u2193" }),
|
|
5445
8402
|
" ",
|
|
5446
8403
|
"to navigate"
|
|
5447
8404
|
] }),
|
|
5448
|
-
/* @__PURE__ */ jsx35("span", { "aria-hidden": "true", className: "mly
|
|
5449
|
-
/* @__PURE__ */ jsxs19("p", { className: "mly
|
|
5450
|
-
/* @__PURE__ */ jsx35("kbd", { className: "mly
|
|
8405
|
+
/* @__PURE__ */ jsx35("span", { "aria-hidden": "true", className: "mly:select-none mly:px-1", children: "\xB7" }),
|
|
8406
|
+
/* @__PURE__ */ jsxs19("p", { className: "mly:text-center mly:text-xs mly:text-gray-400", children: [
|
|
8407
|
+
/* @__PURE__ */ jsx35("kbd", { className: "mly:rounded mly:border mly:border-gray-200 mly:p-1 mly:px-1.5 mly:font-medium", children: "Enter" }),
|
|
5451
8408
|
" ",
|
|
5452
8409
|
"to select"
|
|
5453
8410
|
] })
|
|
@@ -5561,10 +8518,12 @@ var VariableList = forwardRef9((props, ref) => {
|
|
|
5561
8518
|
{
|
|
5562
8519
|
items,
|
|
5563
8520
|
onSelectItem: (value) => {
|
|
5564
|
-
var _a2;
|
|
8521
|
+
var _a2, _b;
|
|
5565
8522
|
props.command({
|
|
5566
8523
|
id: value.name,
|
|
5567
|
-
required: (_a2 = value.required) != null ? _a2 : true
|
|
8524
|
+
required: (_a2 = value.required) != null ? _a2 : true,
|
|
8525
|
+
hideDefaultValue: (_b = value == null ? void 0 : value.hideDefaultValue) != null ? _b : false,
|
|
8526
|
+
label: value == null ? void 0 : value.label
|
|
5568
8527
|
});
|
|
5569
8528
|
},
|
|
5570
8529
|
ref: popoverRef
|
|
@@ -5680,7 +8639,7 @@ function HTMLCodeBlockView(props) {
|
|
|
5680
8639
|
"data-drag-handle": false,
|
|
5681
8640
|
"data-type": "htmlCodeBlock",
|
|
5682
8641
|
children: [
|
|
5683
|
-
activeTab === "code" && /* @__PURE__ */ jsx37("pre", { className: "mly
|
|
8642
|
+
activeTab === "code" && /* @__PURE__ */ jsx37("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__ */ jsx37(
|
|
5684
8643
|
NodeViewContent2,
|
|
5685
8644
|
{
|
|
5686
8645
|
as: "code",
|
|
@@ -5691,8 +8650,8 @@ function HTMLCodeBlockView(props) {
|
|
|
5691
8650
|
"div",
|
|
5692
8651
|
{
|
|
5693
8652
|
className: cn(
|
|
5694
|
-
"mly
|
|
5695
|
-
isEmpty && "mly
|
|
8653
|
+
"mly:not-prose mly:rounded-lg mly:border mly:border-gray-200 mly:p-2",
|
|
8654
|
+
isEmpty && "mly:min-h-[42px]"
|
|
5696
8655
|
),
|
|
5697
8656
|
ref: (node2) => {
|
|
5698
8657
|
if (!node2 || (node2 == null ? void 0 : node2.shadowRoot)) {
|
|
@@ -5756,7 +8715,7 @@ var HTMLCodeBlockExtension = CodeBlockLowlight.extend({
|
|
|
5756
8715
|
},
|
|
5757
8716
|
addNodeView() {
|
|
5758
8717
|
return ReactNodeViewRenderer7(HTMLCodeBlockView, {
|
|
5759
|
-
className: "mly
|
|
8718
|
+
className: "mly:relative",
|
|
5760
8719
|
attrs: ({ node }) => {
|
|
5761
8720
|
var _a;
|
|
5762
8721
|
return {
|