@maily-to/core 0.2.8 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/dist/extensions/index.cjs +2547 -105
- package/dist/extensions/index.cjs.map +1 -1
- package/dist/extensions/index.d.cts +12 -6
- package/dist/extensions/index.d.ts +12 -6
- package/dist/extensions/index.mjs +2546 -104
- package/dist/extensions/index.mjs.map +1 -1
- package/dist/index.cjs +2547 -105
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +40 -0
- package/dist/index.css.map +1 -1
- package/dist/index.mjs +2546 -104
- package/dist/index.mjs.map +1 -1
- package/package.json +11 -11
package/dist/index.mjs
CHANGED
|
@@ -416,7 +416,2510 @@ var useColumnsState = (editor) => {
|
|
|
416
416
|
|
|
417
417
|
// src/editor/utils/classname.ts
|
|
418
418
|
import { clsx } from "clsx";
|
|
419
|
-
|
|
419
|
+
|
|
420
|
+
// ../../node_modules/.pnpm/tailwind-merge@2.5.4/node_modules/tailwind-merge/dist/bundle-mjs.mjs
|
|
421
|
+
var CLASS_PART_SEPARATOR = "-";
|
|
422
|
+
var createClassGroupUtils = (config) => {
|
|
423
|
+
const classMap = createClassMap(config);
|
|
424
|
+
const {
|
|
425
|
+
conflictingClassGroups,
|
|
426
|
+
conflictingClassGroupModifiers
|
|
427
|
+
} = config;
|
|
428
|
+
const getClassGroupId = (className) => {
|
|
429
|
+
const classParts = className.split(CLASS_PART_SEPARATOR);
|
|
430
|
+
if (classParts[0] === "" && classParts.length !== 1) {
|
|
431
|
+
classParts.shift();
|
|
432
|
+
}
|
|
433
|
+
return getGroupRecursive(classParts, classMap) || getGroupIdForArbitraryProperty(className);
|
|
434
|
+
};
|
|
435
|
+
const getConflictingClassGroupIds = (classGroupId, hasPostfixModifier) => {
|
|
436
|
+
const conflicts = conflictingClassGroups[classGroupId] || [];
|
|
437
|
+
if (hasPostfixModifier && conflictingClassGroupModifiers[classGroupId]) {
|
|
438
|
+
return [...conflicts, ...conflictingClassGroupModifiers[classGroupId]];
|
|
439
|
+
}
|
|
440
|
+
return conflicts;
|
|
441
|
+
};
|
|
442
|
+
return {
|
|
443
|
+
getClassGroupId,
|
|
444
|
+
getConflictingClassGroupIds
|
|
445
|
+
};
|
|
446
|
+
};
|
|
447
|
+
var getGroupRecursive = (classParts, classPartObject) => {
|
|
448
|
+
var _a;
|
|
449
|
+
if (classParts.length === 0) {
|
|
450
|
+
return classPartObject.classGroupId;
|
|
451
|
+
}
|
|
452
|
+
const currentClassPart = classParts[0];
|
|
453
|
+
const nextClassPartObject = classPartObject.nextPart.get(currentClassPart);
|
|
454
|
+
const classGroupFromNextClassPart = nextClassPartObject ? getGroupRecursive(classParts.slice(1), nextClassPartObject) : void 0;
|
|
455
|
+
if (classGroupFromNextClassPart) {
|
|
456
|
+
return classGroupFromNextClassPart;
|
|
457
|
+
}
|
|
458
|
+
if (classPartObject.validators.length === 0) {
|
|
459
|
+
return void 0;
|
|
460
|
+
}
|
|
461
|
+
const classRest = classParts.join(CLASS_PART_SEPARATOR);
|
|
462
|
+
return (_a = classPartObject.validators.find(({
|
|
463
|
+
validator
|
|
464
|
+
}) => validator(classRest))) == null ? void 0 : _a.classGroupId;
|
|
465
|
+
};
|
|
466
|
+
var arbitraryPropertyRegex = /^\[(.+)\]$/;
|
|
467
|
+
var getGroupIdForArbitraryProperty = (className) => {
|
|
468
|
+
if (arbitraryPropertyRegex.test(className)) {
|
|
469
|
+
const arbitraryPropertyClassName = arbitraryPropertyRegex.exec(className)[1];
|
|
470
|
+
const property = arbitraryPropertyClassName == null ? void 0 : arbitraryPropertyClassName.substring(0, arbitraryPropertyClassName.indexOf(":"));
|
|
471
|
+
if (property) {
|
|
472
|
+
return "arbitrary.." + property;
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
};
|
|
476
|
+
var createClassMap = (config) => {
|
|
477
|
+
const {
|
|
478
|
+
theme,
|
|
479
|
+
prefix
|
|
480
|
+
} = config;
|
|
481
|
+
const classMap = {
|
|
482
|
+
nextPart: /* @__PURE__ */ new Map(),
|
|
483
|
+
validators: []
|
|
484
|
+
};
|
|
485
|
+
const prefixedClassGroupEntries = getPrefixedClassGroupEntries(Object.entries(config.classGroups), prefix);
|
|
486
|
+
prefixedClassGroupEntries.forEach(([classGroupId, classGroup]) => {
|
|
487
|
+
processClassesRecursively(classGroup, classMap, classGroupId, theme);
|
|
488
|
+
});
|
|
489
|
+
return classMap;
|
|
490
|
+
};
|
|
491
|
+
var processClassesRecursively = (classGroup, classPartObject, classGroupId, theme) => {
|
|
492
|
+
classGroup.forEach((classDefinition) => {
|
|
493
|
+
if (typeof classDefinition === "string") {
|
|
494
|
+
const classPartObjectToEdit = classDefinition === "" ? classPartObject : getPart(classPartObject, classDefinition);
|
|
495
|
+
classPartObjectToEdit.classGroupId = classGroupId;
|
|
496
|
+
return;
|
|
497
|
+
}
|
|
498
|
+
if (typeof classDefinition === "function") {
|
|
499
|
+
if (isThemeGetter(classDefinition)) {
|
|
500
|
+
processClassesRecursively(classDefinition(theme), classPartObject, classGroupId, theme);
|
|
501
|
+
return;
|
|
502
|
+
}
|
|
503
|
+
classPartObject.validators.push({
|
|
504
|
+
validator: classDefinition,
|
|
505
|
+
classGroupId
|
|
506
|
+
});
|
|
507
|
+
return;
|
|
508
|
+
}
|
|
509
|
+
Object.entries(classDefinition).forEach(([key, classGroup2]) => {
|
|
510
|
+
processClassesRecursively(classGroup2, getPart(classPartObject, key), classGroupId, theme);
|
|
511
|
+
});
|
|
512
|
+
});
|
|
513
|
+
};
|
|
514
|
+
var getPart = (classPartObject, path) => {
|
|
515
|
+
let currentClassPartObject = classPartObject;
|
|
516
|
+
path.split(CLASS_PART_SEPARATOR).forEach((pathPart) => {
|
|
517
|
+
if (!currentClassPartObject.nextPart.has(pathPart)) {
|
|
518
|
+
currentClassPartObject.nextPart.set(pathPart, {
|
|
519
|
+
nextPart: /* @__PURE__ */ new Map(),
|
|
520
|
+
validators: []
|
|
521
|
+
});
|
|
522
|
+
}
|
|
523
|
+
currentClassPartObject = currentClassPartObject.nextPart.get(pathPart);
|
|
524
|
+
});
|
|
525
|
+
return currentClassPartObject;
|
|
526
|
+
};
|
|
527
|
+
var isThemeGetter = (func) => func.isThemeGetter;
|
|
528
|
+
var getPrefixedClassGroupEntries = (classGroupEntries, prefix) => {
|
|
529
|
+
if (!prefix) {
|
|
530
|
+
return classGroupEntries;
|
|
531
|
+
}
|
|
532
|
+
return classGroupEntries.map(([classGroupId, classGroup]) => {
|
|
533
|
+
const prefixedClassGroup = classGroup.map((classDefinition) => {
|
|
534
|
+
if (typeof classDefinition === "string") {
|
|
535
|
+
return prefix + classDefinition;
|
|
536
|
+
}
|
|
537
|
+
if (typeof classDefinition === "object") {
|
|
538
|
+
return Object.fromEntries(Object.entries(classDefinition).map(([key, value]) => [prefix + key, value]));
|
|
539
|
+
}
|
|
540
|
+
return classDefinition;
|
|
541
|
+
});
|
|
542
|
+
return [classGroupId, prefixedClassGroup];
|
|
543
|
+
});
|
|
544
|
+
};
|
|
545
|
+
var createLruCache = (maxCacheSize) => {
|
|
546
|
+
if (maxCacheSize < 1) {
|
|
547
|
+
return {
|
|
548
|
+
get: () => void 0,
|
|
549
|
+
set: () => {
|
|
550
|
+
}
|
|
551
|
+
};
|
|
552
|
+
}
|
|
553
|
+
let cacheSize = 0;
|
|
554
|
+
let cache = /* @__PURE__ */ new Map();
|
|
555
|
+
let previousCache = /* @__PURE__ */ new Map();
|
|
556
|
+
const update = (key, value) => {
|
|
557
|
+
cache.set(key, value);
|
|
558
|
+
cacheSize++;
|
|
559
|
+
if (cacheSize > maxCacheSize) {
|
|
560
|
+
cacheSize = 0;
|
|
561
|
+
previousCache = cache;
|
|
562
|
+
cache = /* @__PURE__ */ new Map();
|
|
563
|
+
}
|
|
564
|
+
};
|
|
565
|
+
return {
|
|
566
|
+
get(key) {
|
|
567
|
+
let value = cache.get(key);
|
|
568
|
+
if (value !== void 0) {
|
|
569
|
+
return value;
|
|
570
|
+
}
|
|
571
|
+
if ((value = previousCache.get(key)) !== void 0) {
|
|
572
|
+
update(key, value);
|
|
573
|
+
return value;
|
|
574
|
+
}
|
|
575
|
+
},
|
|
576
|
+
set(key, value) {
|
|
577
|
+
if (cache.has(key)) {
|
|
578
|
+
cache.set(key, value);
|
|
579
|
+
} else {
|
|
580
|
+
update(key, value);
|
|
581
|
+
}
|
|
582
|
+
}
|
|
583
|
+
};
|
|
584
|
+
};
|
|
585
|
+
var IMPORTANT_MODIFIER = "!";
|
|
586
|
+
var createParseClassName = (config) => {
|
|
587
|
+
const {
|
|
588
|
+
separator,
|
|
589
|
+
experimentalParseClassName
|
|
590
|
+
} = config;
|
|
591
|
+
const isSeparatorSingleCharacter = separator.length === 1;
|
|
592
|
+
const firstSeparatorCharacter = separator[0];
|
|
593
|
+
const separatorLength = separator.length;
|
|
594
|
+
const parseClassName = (className) => {
|
|
595
|
+
const modifiers = [];
|
|
596
|
+
let bracketDepth = 0;
|
|
597
|
+
let modifierStart = 0;
|
|
598
|
+
let postfixModifierPosition;
|
|
599
|
+
for (let index = 0; index < className.length; index++) {
|
|
600
|
+
let currentCharacter = className[index];
|
|
601
|
+
if (bracketDepth === 0) {
|
|
602
|
+
if (currentCharacter === firstSeparatorCharacter && (isSeparatorSingleCharacter || className.slice(index, index + separatorLength) === separator)) {
|
|
603
|
+
modifiers.push(className.slice(modifierStart, index));
|
|
604
|
+
modifierStart = index + separatorLength;
|
|
605
|
+
continue;
|
|
606
|
+
}
|
|
607
|
+
if (currentCharacter === "/") {
|
|
608
|
+
postfixModifierPosition = index;
|
|
609
|
+
continue;
|
|
610
|
+
}
|
|
611
|
+
}
|
|
612
|
+
if (currentCharacter === "[") {
|
|
613
|
+
bracketDepth++;
|
|
614
|
+
} else if (currentCharacter === "]") {
|
|
615
|
+
bracketDepth--;
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
const baseClassNameWithImportantModifier = modifiers.length === 0 ? className : className.substring(modifierStart);
|
|
619
|
+
const hasImportantModifier = baseClassNameWithImportantModifier.startsWith(IMPORTANT_MODIFIER);
|
|
620
|
+
const baseClassName = hasImportantModifier ? baseClassNameWithImportantModifier.substring(1) : baseClassNameWithImportantModifier;
|
|
621
|
+
const maybePostfixModifierPosition = postfixModifierPosition && postfixModifierPosition > modifierStart ? postfixModifierPosition - modifierStart : void 0;
|
|
622
|
+
return {
|
|
623
|
+
modifiers,
|
|
624
|
+
hasImportantModifier,
|
|
625
|
+
baseClassName,
|
|
626
|
+
maybePostfixModifierPosition
|
|
627
|
+
};
|
|
628
|
+
};
|
|
629
|
+
if (experimentalParseClassName) {
|
|
630
|
+
return (className) => experimentalParseClassName({
|
|
631
|
+
className,
|
|
632
|
+
parseClassName
|
|
633
|
+
});
|
|
634
|
+
}
|
|
635
|
+
return parseClassName;
|
|
636
|
+
};
|
|
637
|
+
var sortModifiers = (modifiers) => {
|
|
638
|
+
if (modifiers.length <= 1) {
|
|
639
|
+
return modifiers;
|
|
640
|
+
}
|
|
641
|
+
const sortedModifiers = [];
|
|
642
|
+
let unsortedModifiers = [];
|
|
643
|
+
modifiers.forEach((modifier) => {
|
|
644
|
+
const isArbitraryVariant = modifier[0] === "[";
|
|
645
|
+
if (isArbitraryVariant) {
|
|
646
|
+
sortedModifiers.push(...unsortedModifiers.sort(), modifier);
|
|
647
|
+
unsortedModifiers = [];
|
|
648
|
+
} else {
|
|
649
|
+
unsortedModifiers.push(modifier);
|
|
650
|
+
}
|
|
651
|
+
});
|
|
652
|
+
sortedModifiers.push(...unsortedModifiers.sort());
|
|
653
|
+
return sortedModifiers;
|
|
654
|
+
};
|
|
655
|
+
var createConfigUtils = (config) => __spreadValues({
|
|
656
|
+
cache: createLruCache(config.cacheSize),
|
|
657
|
+
parseClassName: createParseClassName(config)
|
|
658
|
+
}, createClassGroupUtils(config));
|
|
659
|
+
var SPLIT_CLASSES_REGEX = /\s+/;
|
|
660
|
+
var mergeClassList = (classList, configUtils) => {
|
|
661
|
+
const {
|
|
662
|
+
parseClassName,
|
|
663
|
+
getClassGroupId,
|
|
664
|
+
getConflictingClassGroupIds
|
|
665
|
+
} = configUtils;
|
|
666
|
+
const classGroupsInConflict = [];
|
|
667
|
+
const classNames = classList.trim().split(SPLIT_CLASSES_REGEX);
|
|
668
|
+
let result = "";
|
|
669
|
+
for (let index = classNames.length - 1; index >= 0; index -= 1) {
|
|
670
|
+
const originalClassName = classNames[index];
|
|
671
|
+
const {
|
|
672
|
+
modifiers,
|
|
673
|
+
hasImportantModifier,
|
|
674
|
+
baseClassName,
|
|
675
|
+
maybePostfixModifierPosition
|
|
676
|
+
} = parseClassName(originalClassName);
|
|
677
|
+
let hasPostfixModifier = Boolean(maybePostfixModifierPosition);
|
|
678
|
+
let classGroupId = getClassGroupId(hasPostfixModifier ? baseClassName.substring(0, maybePostfixModifierPosition) : baseClassName);
|
|
679
|
+
if (!classGroupId) {
|
|
680
|
+
if (!hasPostfixModifier) {
|
|
681
|
+
result = originalClassName + (result.length > 0 ? " " + result : result);
|
|
682
|
+
continue;
|
|
683
|
+
}
|
|
684
|
+
classGroupId = getClassGroupId(baseClassName);
|
|
685
|
+
if (!classGroupId) {
|
|
686
|
+
result = originalClassName + (result.length > 0 ? " " + result : result);
|
|
687
|
+
continue;
|
|
688
|
+
}
|
|
689
|
+
hasPostfixModifier = false;
|
|
690
|
+
}
|
|
691
|
+
const variantModifier = sortModifiers(modifiers).join(":");
|
|
692
|
+
const modifierId = hasImportantModifier ? variantModifier + IMPORTANT_MODIFIER : variantModifier;
|
|
693
|
+
const classId = modifierId + classGroupId;
|
|
694
|
+
if (classGroupsInConflict.includes(classId)) {
|
|
695
|
+
continue;
|
|
696
|
+
}
|
|
697
|
+
classGroupsInConflict.push(classId);
|
|
698
|
+
const conflictGroups = getConflictingClassGroupIds(classGroupId, hasPostfixModifier);
|
|
699
|
+
for (let i = 0; i < conflictGroups.length; ++i) {
|
|
700
|
+
const group = conflictGroups[i];
|
|
701
|
+
classGroupsInConflict.push(modifierId + group);
|
|
702
|
+
}
|
|
703
|
+
result = originalClassName + (result.length > 0 ? " " + result : result);
|
|
704
|
+
}
|
|
705
|
+
return result;
|
|
706
|
+
};
|
|
707
|
+
function twJoin() {
|
|
708
|
+
let index = 0;
|
|
709
|
+
let argument;
|
|
710
|
+
let resolvedValue;
|
|
711
|
+
let string = "";
|
|
712
|
+
while (index < arguments.length) {
|
|
713
|
+
if (argument = arguments[index++]) {
|
|
714
|
+
if (resolvedValue = toValue(argument)) {
|
|
715
|
+
string && (string += " ");
|
|
716
|
+
string += resolvedValue;
|
|
717
|
+
}
|
|
718
|
+
}
|
|
719
|
+
}
|
|
720
|
+
return string;
|
|
721
|
+
}
|
|
722
|
+
var toValue = (mix) => {
|
|
723
|
+
if (typeof mix === "string") {
|
|
724
|
+
return mix;
|
|
725
|
+
}
|
|
726
|
+
let resolvedValue;
|
|
727
|
+
let string = "";
|
|
728
|
+
for (let k = 0; k < mix.length; k++) {
|
|
729
|
+
if (mix[k]) {
|
|
730
|
+
if (resolvedValue = toValue(mix[k])) {
|
|
731
|
+
string && (string += " ");
|
|
732
|
+
string += resolvedValue;
|
|
733
|
+
}
|
|
734
|
+
}
|
|
735
|
+
}
|
|
736
|
+
return string;
|
|
737
|
+
};
|
|
738
|
+
function createTailwindMerge(createConfigFirst, ...createConfigRest) {
|
|
739
|
+
let configUtils;
|
|
740
|
+
let cacheGet;
|
|
741
|
+
let cacheSet;
|
|
742
|
+
let functionToCall = initTailwindMerge;
|
|
743
|
+
function initTailwindMerge(classList) {
|
|
744
|
+
const config = createConfigRest.reduce((previousConfig, createConfigCurrent) => createConfigCurrent(previousConfig), createConfigFirst());
|
|
745
|
+
configUtils = createConfigUtils(config);
|
|
746
|
+
cacheGet = configUtils.cache.get;
|
|
747
|
+
cacheSet = configUtils.cache.set;
|
|
748
|
+
functionToCall = tailwindMerge;
|
|
749
|
+
return tailwindMerge(classList);
|
|
750
|
+
}
|
|
751
|
+
function tailwindMerge(classList) {
|
|
752
|
+
const cachedResult = cacheGet(classList);
|
|
753
|
+
if (cachedResult) {
|
|
754
|
+
return cachedResult;
|
|
755
|
+
}
|
|
756
|
+
const result = mergeClassList(classList, configUtils);
|
|
757
|
+
cacheSet(classList, result);
|
|
758
|
+
return result;
|
|
759
|
+
}
|
|
760
|
+
return function callTailwindMerge() {
|
|
761
|
+
return functionToCall(twJoin.apply(null, arguments));
|
|
762
|
+
};
|
|
763
|
+
}
|
|
764
|
+
var fromTheme = (key) => {
|
|
765
|
+
const themeGetter = (theme) => theme[key] || [];
|
|
766
|
+
themeGetter.isThemeGetter = true;
|
|
767
|
+
return themeGetter;
|
|
768
|
+
};
|
|
769
|
+
var arbitraryValueRegex = /^\[(?:([a-z-]+):)?(.+)\]$/i;
|
|
770
|
+
var fractionRegex = /^\d+\/\d+$/;
|
|
771
|
+
var stringLengths = /* @__PURE__ */ new Set(["px", "full", "screen"]);
|
|
772
|
+
var tshirtUnitRegex = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/;
|
|
773
|
+
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$/;
|
|
774
|
+
var colorFunctionRegex = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/;
|
|
775
|
+
var shadowRegex = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;
|
|
776
|
+
var imageRegex = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;
|
|
777
|
+
var isLength = (value) => isNumber(value) || stringLengths.has(value) || fractionRegex.test(value);
|
|
778
|
+
var isArbitraryLength = (value) => getIsArbitraryValue(value, "length", isLengthOnly);
|
|
779
|
+
var isNumber = (value) => Boolean(value) && !Number.isNaN(Number(value));
|
|
780
|
+
var isArbitraryNumber = (value) => getIsArbitraryValue(value, "number", isNumber);
|
|
781
|
+
var isInteger = (value) => Boolean(value) && Number.isInteger(Number(value));
|
|
782
|
+
var isPercent = (value) => value.endsWith("%") && isNumber(value.slice(0, -1));
|
|
783
|
+
var isArbitraryValue = (value) => arbitraryValueRegex.test(value);
|
|
784
|
+
var isTshirtSize = (value) => tshirtUnitRegex.test(value);
|
|
785
|
+
var sizeLabels = /* @__PURE__ */ new Set(["length", "size", "percentage"]);
|
|
786
|
+
var isArbitrarySize = (value) => getIsArbitraryValue(value, sizeLabels, isNever);
|
|
787
|
+
var isArbitraryPosition = (value) => getIsArbitraryValue(value, "position", isNever);
|
|
788
|
+
var imageLabels = /* @__PURE__ */ new Set(["image", "url"]);
|
|
789
|
+
var isArbitraryImage = (value) => getIsArbitraryValue(value, imageLabels, isImage);
|
|
790
|
+
var isArbitraryShadow = (value) => getIsArbitraryValue(value, "", isShadow);
|
|
791
|
+
var isAny = () => true;
|
|
792
|
+
var getIsArbitraryValue = (value, label, testValue) => {
|
|
793
|
+
const result = arbitraryValueRegex.exec(value);
|
|
794
|
+
if (result) {
|
|
795
|
+
if (result[1]) {
|
|
796
|
+
return typeof label === "string" ? result[1] === label : label.has(result[1]);
|
|
797
|
+
}
|
|
798
|
+
return testValue(result[2]);
|
|
799
|
+
}
|
|
800
|
+
return false;
|
|
801
|
+
};
|
|
802
|
+
var isLengthOnly = (value) => (
|
|
803
|
+
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
804
|
+
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
805
|
+
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
806
|
+
lengthUnitRegex.test(value) && !colorFunctionRegex.test(value)
|
|
807
|
+
);
|
|
808
|
+
var isNever = () => false;
|
|
809
|
+
var isShadow = (value) => shadowRegex.test(value);
|
|
810
|
+
var isImage = (value) => imageRegex.test(value);
|
|
811
|
+
var getDefaultConfig = () => {
|
|
812
|
+
const colors = fromTheme("colors");
|
|
813
|
+
const spacing2 = fromTheme("spacing");
|
|
814
|
+
const blur = fromTheme("blur");
|
|
815
|
+
const brightness = fromTheme("brightness");
|
|
816
|
+
const borderColor = fromTheme("borderColor");
|
|
817
|
+
const borderRadius2 = fromTheme("borderRadius");
|
|
818
|
+
const borderSpacing = fromTheme("borderSpacing");
|
|
819
|
+
const borderWidth = fromTheme("borderWidth");
|
|
820
|
+
const contrast = fromTheme("contrast");
|
|
821
|
+
const grayscale = fromTheme("grayscale");
|
|
822
|
+
const hueRotate = fromTheme("hueRotate");
|
|
823
|
+
const invert = fromTheme("invert");
|
|
824
|
+
const gap = fromTheme("gap");
|
|
825
|
+
const gradientColorStops = fromTheme("gradientColorStops");
|
|
826
|
+
const gradientColorStopPositions = fromTheme("gradientColorStopPositions");
|
|
827
|
+
const inset = fromTheme("inset");
|
|
828
|
+
const margin = fromTheme("margin");
|
|
829
|
+
const opacity = fromTheme("opacity");
|
|
830
|
+
const padding = fromTheme("padding");
|
|
831
|
+
const saturate = fromTheme("saturate");
|
|
832
|
+
const scale = fromTheme("scale");
|
|
833
|
+
const sepia = fromTheme("sepia");
|
|
834
|
+
const skew = fromTheme("skew");
|
|
835
|
+
const space = fromTheme("space");
|
|
836
|
+
const translate = fromTheme("translate");
|
|
837
|
+
const getOverscroll = () => ["auto", "contain", "none"];
|
|
838
|
+
const getOverflow = () => ["auto", "hidden", "clip", "visible", "scroll"];
|
|
839
|
+
const getSpacingWithAutoAndArbitrary = () => ["auto", isArbitraryValue, spacing2];
|
|
840
|
+
const getSpacingWithArbitrary = () => [isArbitraryValue, spacing2];
|
|
841
|
+
const getLengthWithEmptyAndArbitrary = () => ["", isLength, isArbitraryLength];
|
|
842
|
+
const getNumberWithAutoAndArbitrary = () => ["auto", isNumber, isArbitraryValue];
|
|
843
|
+
const getPositions = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"];
|
|
844
|
+
const getLineStyles = () => ["solid", "dashed", "dotted", "double", "none"];
|
|
845
|
+
const getBlendModes = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"];
|
|
846
|
+
const getAlign = () => ["start", "end", "center", "between", "around", "evenly", "stretch"];
|
|
847
|
+
const getZeroAndEmpty = () => ["", "0", isArbitraryValue];
|
|
848
|
+
const getBreaks = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"];
|
|
849
|
+
const getNumberAndArbitrary = () => [isNumber, isArbitraryValue];
|
|
850
|
+
return {
|
|
851
|
+
cacheSize: 500,
|
|
852
|
+
separator: ":",
|
|
853
|
+
theme: {
|
|
854
|
+
colors: [isAny],
|
|
855
|
+
spacing: [isLength, isArbitraryLength],
|
|
856
|
+
blur: ["none", "", isTshirtSize, isArbitraryValue],
|
|
857
|
+
brightness: getNumberAndArbitrary(),
|
|
858
|
+
borderColor: [colors],
|
|
859
|
+
borderRadius: ["none", "", "full", isTshirtSize, isArbitraryValue],
|
|
860
|
+
borderSpacing: getSpacingWithArbitrary(),
|
|
861
|
+
borderWidth: getLengthWithEmptyAndArbitrary(),
|
|
862
|
+
contrast: getNumberAndArbitrary(),
|
|
863
|
+
grayscale: getZeroAndEmpty(),
|
|
864
|
+
hueRotate: getNumberAndArbitrary(),
|
|
865
|
+
invert: getZeroAndEmpty(),
|
|
866
|
+
gap: getSpacingWithArbitrary(),
|
|
867
|
+
gradientColorStops: [colors],
|
|
868
|
+
gradientColorStopPositions: [isPercent, isArbitraryLength],
|
|
869
|
+
inset: getSpacingWithAutoAndArbitrary(),
|
|
870
|
+
margin: getSpacingWithAutoAndArbitrary(),
|
|
871
|
+
opacity: getNumberAndArbitrary(),
|
|
872
|
+
padding: getSpacingWithArbitrary(),
|
|
873
|
+
saturate: getNumberAndArbitrary(),
|
|
874
|
+
scale: getNumberAndArbitrary(),
|
|
875
|
+
sepia: getZeroAndEmpty(),
|
|
876
|
+
skew: getNumberAndArbitrary(),
|
|
877
|
+
space: getSpacingWithArbitrary(),
|
|
878
|
+
translate: getSpacingWithArbitrary()
|
|
879
|
+
},
|
|
880
|
+
classGroups: {
|
|
881
|
+
// Layout
|
|
882
|
+
/**
|
|
883
|
+
* Aspect Ratio
|
|
884
|
+
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
885
|
+
*/
|
|
886
|
+
aspect: [{
|
|
887
|
+
aspect: ["auto", "square", "video", isArbitraryValue]
|
|
888
|
+
}],
|
|
889
|
+
/**
|
|
890
|
+
* Container
|
|
891
|
+
* @see https://tailwindcss.com/docs/container
|
|
892
|
+
*/
|
|
893
|
+
container: ["container"],
|
|
894
|
+
/**
|
|
895
|
+
* Columns
|
|
896
|
+
* @see https://tailwindcss.com/docs/columns
|
|
897
|
+
*/
|
|
898
|
+
columns: [{
|
|
899
|
+
columns: [isTshirtSize]
|
|
900
|
+
}],
|
|
901
|
+
/**
|
|
902
|
+
* Break After
|
|
903
|
+
* @see https://tailwindcss.com/docs/break-after
|
|
904
|
+
*/
|
|
905
|
+
"break-after": [{
|
|
906
|
+
"break-after": getBreaks()
|
|
907
|
+
}],
|
|
908
|
+
/**
|
|
909
|
+
* Break Before
|
|
910
|
+
* @see https://tailwindcss.com/docs/break-before
|
|
911
|
+
*/
|
|
912
|
+
"break-before": [{
|
|
913
|
+
"break-before": getBreaks()
|
|
914
|
+
}],
|
|
915
|
+
/**
|
|
916
|
+
* Break Inside
|
|
917
|
+
* @see https://tailwindcss.com/docs/break-inside
|
|
918
|
+
*/
|
|
919
|
+
"break-inside": [{
|
|
920
|
+
"break-inside": ["auto", "avoid", "avoid-page", "avoid-column"]
|
|
921
|
+
}],
|
|
922
|
+
/**
|
|
923
|
+
* Box Decoration Break
|
|
924
|
+
* @see https://tailwindcss.com/docs/box-decoration-break
|
|
925
|
+
*/
|
|
926
|
+
"box-decoration": [{
|
|
927
|
+
"box-decoration": ["slice", "clone"]
|
|
928
|
+
}],
|
|
929
|
+
/**
|
|
930
|
+
* Box Sizing
|
|
931
|
+
* @see https://tailwindcss.com/docs/box-sizing
|
|
932
|
+
*/
|
|
933
|
+
box: [{
|
|
934
|
+
box: ["border", "content"]
|
|
935
|
+
}],
|
|
936
|
+
/**
|
|
937
|
+
* Display
|
|
938
|
+
* @see https://tailwindcss.com/docs/display
|
|
939
|
+
*/
|
|
940
|
+
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"],
|
|
941
|
+
/**
|
|
942
|
+
* Floats
|
|
943
|
+
* @see https://tailwindcss.com/docs/float
|
|
944
|
+
*/
|
|
945
|
+
float: [{
|
|
946
|
+
float: ["right", "left", "none", "start", "end"]
|
|
947
|
+
}],
|
|
948
|
+
/**
|
|
949
|
+
* Clear
|
|
950
|
+
* @see https://tailwindcss.com/docs/clear
|
|
951
|
+
*/
|
|
952
|
+
clear: [{
|
|
953
|
+
clear: ["left", "right", "both", "none", "start", "end"]
|
|
954
|
+
}],
|
|
955
|
+
/**
|
|
956
|
+
* Isolation
|
|
957
|
+
* @see https://tailwindcss.com/docs/isolation
|
|
958
|
+
*/
|
|
959
|
+
isolation: ["isolate", "isolation-auto"],
|
|
960
|
+
/**
|
|
961
|
+
* Object Fit
|
|
962
|
+
* @see https://tailwindcss.com/docs/object-fit
|
|
963
|
+
*/
|
|
964
|
+
"object-fit": [{
|
|
965
|
+
object: ["contain", "cover", "fill", "none", "scale-down"]
|
|
966
|
+
}],
|
|
967
|
+
/**
|
|
968
|
+
* Object Position
|
|
969
|
+
* @see https://tailwindcss.com/docs/object-position
|
|
970
|
+
*/
|
|
971
|
+
"object-position": [{
|
|
972
|
+
object: [...getPositions(), isArbitraryValue]
|
|
973
|
+
}],
|
|
974
|
+
/**
|
|
975
|
+
* Overflow
|
|
976
|
+
* @see https://tailwindcss.com/docs/overflow
|
|
977
|
+
*/
|
|
978
|
+
overflow: [{
|
|
979
|
+
overflow: getOverflow()
|
|
980
|
+
}],
|
|
981
|
+
/**
|
|
982
|
+
* Overflow X
|
|
983
|
+
* @see https://tailwindcss.com/docs/overflow
|
|
984
|
+
*/
|
|
985
|
+
"overflow-x": [{
|
|
986
|
+
"overflow-x": getOverflow()
|
|
987
|
+
}],
|
|
988
|
+
/**
|
|
989
|
+
* Overflow Y
|
|
990
|
+
* @see https://tailwindcss.com/docs/overflow
|
|
991
|
+
*/
|
|
992
|
+
"overflow-y": [{
|
|
993
|
+
"overflow-y": getOverflow()
|
|
994
|
+
}],
|
|
995
|
+
/**
|
|
996
|
+
* Overscroll Behavior
|
|
997
|
+
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
998
|
+
*/
|
|
999
|
+
overscroll: [{
|
|
1000
|
+
overscroll: getOverscroll()
|
|
1001
|
+
}],
|
|
1002
|
+
/**
|
|
1003
|
+
* Overscroll Behavior X
|
|
1004
|
+
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
1005
|
+
*/
|
|
1006
|
+
"overscroll-x": [{
|
|
1007
|
+
"overscroll-x": getOverscroll()
|
|
1008
|
+
}],
|
|
1009
|
+
/**
|
|
1010
|
+
* Overscroll Behavior Y
|
|
1011
|
+
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
1012
|
+
*/
|
|
1013
|
+
"overscroll-y": [{
|
|
1014
|
+
"overscroll-y": getOverscroll()
|
|
1015
|
+
}],
|
|
1016
|
+
/**
|
|
1017
|
+
* Position
|
|
1018
|
+
* @see https://tailwindcss.com/docs/position
|
|
1019
|
+
*/
|
|
1020
|
+
position: ["static", "fixed", "absolute", "relative", "sticky"],
|
|
1021
|
+
/**
|
|
1022
|
+
* Top / Right / Bottom / Left
|
|
1023
|
+
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1024
|
+
*/
|
|
1025
|
+
inset: [{
|
|
1026
|
+
inset: [inset]
|
|
1027
|
+
}],
|
|
1028
|
+
/**
|
|
1029
|
+
* Right / Left
|
|
1030
|
+
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1031
|
+
*/
|
|
1032
|
+
"inset-x": [{
|
|
1033
|
+
"inset-x": [inset]
|
|
1034
|
+
}],
|
|
1035
|
+
/**
|
|
1036
|
+
* Top / Bottom
|
|
1037
|
+
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1038
|
+
*/
|
|
1039
|
+
"inset-y": [{
|
|
1040
|
+
"inset-y": [inset]
|
|
1041
|
+
}],
|
|
1042
|
+
/**
|
|
1043
|
+
* Start
|
|
1044
|
+
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1045
|
+
*/
|
|
1046
|
+
start: [{
|
|
1047
|
+
start: [inset]
|
|
1048
|
+
}],
|
|
1049
|
+
/**
|
|
1050
|
+
* End
|
|
1051
|
+
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1052
|
+
*/
|
|
1053
|
+
end: [{
|
|
1054
|
+
end: [inset]
|
|
1055
|
+
}],
|
|
1056
|
+
/**
|
|
1057
|
+
* Top
|
|
1058
|
+
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1059
|
+
*/
|
|
1060
|
+
top: [{
|
|
1061
|
+
top: [inset]
|
|
1062
|
+
}],
|
|
1063
|
+
/**
|
|
1064
|
+
* Right
|
|
1065
|
+
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1066
|
+
*/
|
|
1067
|
+
right: [{
|
|
1068
|
+
right: [inset]
|
|
1069
|
+
}],
|
|
1070
|
+
/**
|
|
1071
|
+
* Bottom
|
|
1072
|
+
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1073
|
+
*/
|
|
1074
|
+
bottom: [{
|
|
1075
|
+
bottom: [inset]
|
|
1076
|
+
}],
|
|
1077
|
+
/**
|
|
1078
|
+
* Left
|
|
1079
|
+
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1080
|
+
*/
|
|
1081
|
+
left: [{
|
|
1082
|
+
left: [inset]
|
|
1083
|
+
}],
|
|
1084
|
+
/**
|
|
1085
|
+
* Visibility
|
|
1086
|
+
* @see https://tailwindcss.com/docs/visibility
|
|
1087
|
+
*/
|
|
1088
|
+
visibility: ["visible", "invisible", "collapse"],
|
|
1089
|
+
/**
|
|
1090
|
+
* Z-Index
|
|
1091
|
+
* @see https://tailwindcss.com/docs/z-index
|
|
1092
|
+
*/
|
|
1093
|
+
z: [{
|
|
1094
|
+
z: ["auto", isInteger, isArbitraryValue]
|
|
1095
|
+
}],
|
|
1096
|
+
// Flexbox and Grid
|
|
1097
|
+
/**
|
|
1098
|
+
* Flex Basis
|
|
1099
|
+
* @see https://tailwindcss.com/docs/flex-basis
|
|
1100
|
+
*/
|
|
1101
|
+
basis: [{
|
|
1102
|
+
basis: getSpacingWithAutoAndArbitrary()
|
|
1103
|
+
}],
|
|
1104
|
+
/**
|
|
1105
|
+
* Flex Direction
|
|
1106
|
+
* @see https://tailwindcss.com/docs/flex-direction
|
|
1107
|
+
*/
|
|
1108
|
+
"flex-direction": [{
|
|
1109
|
+
flex: ["row", "row-reverse", "col", "col-reverse"]
|
|
1110
|
+
}],
|
|
1111
|
+
/**
|
|
1112
|
+
* Flex Wrap
|
|
1113
|
+
* @see https://tailwindcss.com/docs/flex-wrap
|
|
1114
|
+
*/
|
|
1115
|
+
"flex-wrap": [{
|
|
1116
|
+
flex: ["wrap", "wrap-reverse", "nowrap"]
|
|
1117
|
+
}],
|
|
1118
|
+
/**
|
|
1119
|
+
* Flex
|
|
1120
|
+
* @see https://tailwindcss.com/docs/flex
|
|
1121
|
+
*/
|
|
1122
|
+
flex: [{
|
|
1123
|
+
flex: ["1", "auto", "initial", "none", isArbitraryValue]
|
|
1124
|
+
}],
|
|
1125
|
+
/**
|
|
1126
|
+
* Flex Grow
|
|
1127
|
+
* @see https://tailwindcss.com/docs/flex-grow
|
|
1128
|
+
*/
|
|
1129
|
+
grow: [{
|
|
1130
|
+
grow: getZeroAndEmpty()
|
|
1131
|
+
}],
|
|
1132
|
+
/**
|
|
1133
|
+
* Flex Shrink
|
|
1134
|
+
* @see https://tailwindcss.com/docs/flex-shrink
|
|
1135
|
+
*/
|
|
1136
|
+
shrink: [{
|
|
1137
|
+
shrink: getZeroAndEmpty()
|
|
1138
|
+
}],
|
|
1139
|
+
/**
|
|
1140
|
+
* Order
|
|
1141
|
+
* @see https://tailwindcss.com/docs/order
|
|
1142
|
+
*/
|
|
1143
|
+
order: [{
|
|
1144
|
+
order: ["first", "last", "none", isInteger, isArbitraryValue]
|
|
1145
|
+
}],
|
|
1146
|
+
/**
|
|
1147
|
+
* Grid Template Columns
|
|
1148
|
+
* @see https://tailwindcss.com/docs/grid-template-columns
|
|
1149
|
+
*/
|
|
1150
|
+
"grid-cols": [{
|
|
1151
|
+
"grid-cols": [isAny]
|
|
1152
|
+
}],
|
|
1153
|
+
/**
|
|
1154
|
+
* Grid Column Start / End
|
|
1155
|
+
* @see https://tailwindcss.com/docs/grid-column
|
|
1156
|
+
*/
|
|
1157
|
+
"col-start-end": [{
|
|
1158
|
+
col: ["auto", {
|
|
1159
|
+
span: ["full", isInteger, isArbitraryValue]
|
|
1160
|
+
}, isArbitraryValue]
|
|
1161
|
+
}],
|
|
1162
|
+
/**
|
|
1163
|
+
* Grid Column Start
|
|
1164
|
+
* @see https://tailwindcss.com/docs/grid-column
|
|
1165
|
+
*/
|
|
1166
|
+
"col-start": [{
|
|
1167
|
+
"col-start": getNumberWithAutoAndArbitrary()
|
|
1168
|
+
}],
|
|
1169
|
+
/**
|
|
1170
|
+
* Grid Column End
|
|
1171
|
+
* @see https://tailwindcss.com/docs/grid-column
|
|
1172
|
+
*/
|
|
1173
|
+
"col-end": [{
|
|
1174
|
+
"col-end": getNumberWithAutoAndArbitrary()
|
|
1175
|
+
}],
|
|
1176
|
+
/**
|
|
1177
|
+
* Grid Template Rows
|
|
1178
|
+
* @see https://tailwindcss.com/docs/grid-template-rows
|
|
1179
|
+
*/
|
|
1180
|
+
"grid-rows": [{
|
|
1181
|
+
"grid-rows": [isAny]
|
|
1182
|
+
}],
|
|
1183
|
+
/**
|
|
1184
|
+
* Grid Row Start / End
|
|
1185
|
+
* @see https://tailwindcss.com/docs/grid-row
|
|
1186
|
+
*/
|
|
1187
|
+
"row-start-end": [{
|
|
1188
|
+
row: ["auto", {
|
|
1189
|
+
span: [isInteger, isArbitraryValue]
|
|
1190
|
+
}, isArbitraryValue]
|
|
1191
|
+
}],
|
|
1192
|
+
/**
|
|
1193
|
+
* Grid Row Start
|
|
1194
|
+
* @see https://tailwindcss.com/docs/grid-row
|
|
1195
|
+
*/
|
|
1196
|
+
"row-start": [{
|
|
1197
|
+
"row-start": getNumberWithAutoAndArbitrary()
|
|
1198
|
+
}],
|
|
1199
|
+
/**
|
|
1200
|
+
* Grid Row End
|
|
1201
|
+
* @see https://tailwindcss.com/docs/grid-row
|
|
1202
|
+
*/
|
|
1203
|
+
"row-end": [{
|
|
1204
|
+
"row-end": getNumberWithAutoAndArbitrary()
|
|
1205
|
+
}],
|
|
1206
|
+
/**
|
|
1207
|
+
* Grid Auto Flow
|
|
1208
|
+
* @see https://tailwindcss.com/docs/grid-auto-flow
|
|
1209
|
+
*/
|
|
1210
|
+
"grid-flow": [{
|
|
1211
|
+
"grid-flow": ["row", "col", "dense", "row-dense", "col-dense"]
|
|
1212
|
+
}],
|
|
1213
|
+
/**
|
|
1214
|
+
* Grid Auto Columns
|
|
1215
|
+
* @see https://tailwindcss.com/docs/grid-auto-columns
|
|
1216
|
+
*/
|
|
1217
|
+
"auto-cols": [{
|
|
1218
|
+
"auto-cols": ["auto", "min", "max", "fr", isArbitraryValue]
|
|
1219
|
+
}],
|
|
1220
|
+
/**
|
|
1221
|
+
* Grid Auto Rows
|
|
1222
|
+
* @see https://tailwindcss.com/docs/grid-auto-rows
|
|
1223
|
+
*/
|
|
1224
|
+
"auto-rows": [{
|
|
1225
|
+
"auto-rows": ["auto", "min", "max", "fr", isArbitraryValue]
|
|
1226
|
+
}],
|
|
1227
|
+
/**
|
|
1228
|
+
* Gap
|
|
1229
|
+
* @see https://tailwindcss.com/docs/gap
|
|
1230
|
+
*/
|
|
1231
|
+
gap: [{
|
|
1232
|
+
gap: [gap]
|
|
1233
|
+
}],
|
|
1234
|
+
/**
|
|
1235
|
+
* Gap X
|
|
1236
|
+
* @see https://tailwindcss.com/docs/gap
|
|
1237
|
+
*/
|
|
1238
|
+
"gap-x": [{
|
|
1239
|
+
"gap-x": [gap]
|
|
1240
|
+
}],
|
|
1241
|
+
/**
|
|
1242
|
+
* Gap Y
|
|
1243
|
+
* @see https://tailwindcss.com/docs/gap
|
|
1244
|
+
*/
|
|
1245
|
+
"gap-y": [{
|
|
1246
|
+
"gap-y": [gap]
|
|
1247
|
+
}],
|
|
1248
|
+
/**
|
|
1249
|
+
* Justify Content
|
|
1250
|
+
* @see https://tailwindcss.com/docs/justify-content
|
|
1251
|
+
*/
|
|
1252
|
+
"justify-content": [{
|
|
1253
|
+
justify: ["normal", ...getAlign()]
|
|
1254
|
+
}],
|
|
1255
|
+
/**
|
|
1256
|
+
* Justify Items
|
|
1257
|
+
* @see https://tailwindcss.com/docs/justify-items
|
|
1258
|
+
*/
|
|
1259
|
+
"justify-items": [{
|
|
1260
|
+
"justify-items": ["start", "end", "center", "stretch"]
|
|
1261
|
+
}],
|
|
1262
|
+
/**
|
|
1263
|
+
* Justify Self
|
|
1264
|
+
* @see https://tailwindcss.com/docs/justify-self
|
|
1265
|
+
*/
|
|
1266
|
+
"justify-self": [{
|
|
1267
|
+
"justify-self": ["auto", "start", "end", "center", "stretch"]
|
|
1268
|
+
}],
|
|
1269
|
+
/**
|
|
1270
|
+
* Align Content
|
|
1271
|
+
* @see https://tailwindcss.com/docs/align-content
|
|
1272
|
+
*/
|
|
1273
|
+
"align-content": [{
|
|
1274
|
+
content: ["normal", ...getAlign(), "baseline"]
|
|
1275
|
+
}],
|
|
1276
|
+
/**
|
|
1277
|
+
* Align Items
|
|
1278
|
+
* @see https://tailwindcss.com/docs/align-items
|
|
1279
|
+
*/
|
|
1280
|
+
"align-items": [{
|
|
1281
|
+
items: ["start", "end", "center", "baseline", "stretch"]
|
|
1282
|
+
}],
|
|
1283
|
+
/**
|
|
1284
|
+
* Align Self
|
|
1285
|
+
* @see https://tailwindcss.com/docs/align-self
|
|
1286
|
+
*/
|
|
1287
|
+
"align-self": [{
|
|
1288
|
+
self: ["auto", "start", "end", "center", "stretch", "baseline"]
|
|
1289
|
+
}],
|
|
1290
|
+
/**
|
|
1291
|
+
* Place Content
|
|
1292
|
+
* @see https://tailwindcss.com/docs/place-content
|
|
1293
|
+
*/
|
|
1294
|
+
"place-content": [{
|
|
1295
|
+
"place-content": [...getAlign(), "baseline"]
|
|
1296
|
+
}],
|
|
1297
|
+
/**
|
|
1298
|
+
* Place Items
|
|
1299
|
+
* @see https://tailwindcss.com/docs/place-items
|
|
1300
|
+
*/
|
|
1301
|
+
"place-items": [{
|
|
1302
|
+
"place-items": ["start", "end", "center", "baseline", "stretch"]
|
|
1303
|
+
}],
|
|
1304
|
+
/**
|
|
1305
|
+
* Place Self
|
|
1306
|
+
* @see https://tailwindcss.com/docs/place-self
|
|
1307
|
+
*/
|
|
1308
|
+
"place-self": [{
|
|
1309
|
+
"place-self": ["auto", "start", "end", "center", "stretch"]
|
|
1310
|
+
}],
|
|
1311
|
+
// Spacing
|
|
1312
|
+
/**
|
|
1313
|
+
* Padding
|
|
1314
|
+
* @see https://tailwindcss.com/docs/padding
|
|
1315
|
+
*/
|
|
1316
|
+
p: [{
|
|
1317
|
+
p: [padding]
|
|
1318
|
+
}],
|
|
1319
|
+
/**
|
|
1320
|
+
* Padding X
|
|
1321
|
+
* @see https://tailwindcss.com/docs/padding
|
|
1322
|
+
*/
|
|
1323
|
+
px: [{
|
|
1324
|
+
px: [padding]
|
|
1325
|
+
}],
|
|
1326
|
+
/**
|
|
1327
|
+
* Padding Y
|
|
1328
|
+
* @see https://tailwindcss.com/docs/padding
|
|
1329
|
+
*/
|
|
1330
|
+
py: [{
|
|
1331
|
+
py: [padding]
|
|
1332
|
+
}],
|
|
1333
|
+
/**
|
|
1334
|
+
* Padding Start
|
|
1335
|
+
* @see https://tailwindcss.com/docs/padding
|
|
1336
|
+
*/
|
|
1337
|
+
ps: [{
|
|
1338
|
+
ps: [padding]
|
|
1339
|
+
}],
|
|
1340
|
+
/**
|
|
1341
|
+
* Padding End
|
|
1342
|
+
* @see https://tailwindcss.com/docs/padding
|
|
1343
|
+
*/
|
|
1344
|
+
pe: [{
|
|
1345
|
+
pe: [padding]
|
|
1346
|
+
}],
|
|
1347
|
+
/**
|
|
1348
|
+
* Padding Top
|
|
1349
|
+
* @see https://tailwindcss.com/docs/padding
|
|
1350
|
+
*/
|
|
1351
|
+
pt: [{
|
|
1352
|
+
pt: [padding]
|
|
1353
|
+
}],
|
|
1354
|
+
/**
|
|
1355
|
+
* Padding Right
|
|
1356
|
+
* @see https://tailwindcss.com/docs/padding
|
|
1357
|
+
*/
|
|
1358
|
+
pr: [{
|
|
1359
|
+
pr: [padding]
|
|
1360
|
+
}],
|
|
1361
|
+
/**
|
|
1362
|
+
* Padding Bottom
|
|
1363
|
+
* @see https://tailwindcss.com/docs/padding
|
|
1364
|
+
*/
|
|
1365
|
+
pb: [{
|
|
1366
|
+
pb: [padding]
|
|
1367
|
+
}],
|
|
1368
|
+
/**
|
|
1369
|
+
* Padding Left
|
|
1370
|
+
* @see https://tailwindcss.com/docs/padding
|
|
1371
|
+
*/
|
|
1372
|
+
pl: [{
|
|
1373
|
+
pl: [padding]
|
|
1374
|
+
}],
|
|
1375
|
+
/**
|
|
1376
|
+
* Margin
|
|
1377
|
+
* @see https://tailwindcss.com/docs/margin
|
|
1378
|
+
*/
|
|
1379
|
+
m: [{
|
|
1380
|
+
m: [margin]
|
|
1381
|
+
}],
|
|
1382
|
+
/**
|
|
1383
|
+
* Margin X
|
|
1384
|
+
* @see https://tailwindcss.com/docs/margin
|
|
1385
|
+
*/
|
|
1386
|
+
mx: [{
|
|
1387
|
+
mx: [margin]
|
|
1388
|
+
}],
|
|
1389
|
+
/**
|
|
1390
|
+
* Margin Y
|
|
1391
|
+
* @see https://tailwindcss.com/docs/margin
|
|
1392
|
+
*/
|
|
1393
|
+
my: [{
|
|
1394
|
+
my: [margin]
|
|
1395
|
+
}],
|
|
1396
|
+
/**
|
|
1397
|
+
* Margin Start
|
|
1398
|
+
* @see https://tailwindcss.com/docs/margin
|
|
1399
|
+
*/
|
|
1400
|
+
ms: [{
|
|
1401
|
+
ms: [margin]
|
|
1402
|
+
}],
|
|
1403
|
+
/**
|
|
1404
|
+
* Margin End
|
|
1405
|
+
* @see https://tailwindcss.com/docs/margin
|
|
1406
|
+
*/
|
|
1407
|
+
me: [{
|
|
1408
|
+
me: [margin]
|
|
1409
|
+
}],
|
|
1410
|
+
/**
|
|
1411
|
+
* Margin Top
|
|
1412
|
+
* @see https://tailwindcss.com/docs/margin
|
|
1413
|
+
*/
|
|
1414
|
+
mt: [{
|
|
1415
|
+
mt: [margin]
|
|
1416
|
+
}],
|
|
1417
|
+
/**
|
|
1418
|
+
* Margin Right
|
|
1419
|
+
* @see https://tailwindcss.com/docs/margin
|
|
1420
|
+
*/
|
|
1421
|
+
mr: [{
|
|
1422
|
+
mr: [margin]
|
|
1423
|
+
}],
|
|
1424
|
+
/**
|
|
1425
|
+
* Margin Bottom
|
|
1426
|
+
* @see https://tailwindcss.com/docs/margin
|
|
1427
|
+
*/
|
|
1428
|
+
mb: [{
|
|
1429
|
+
mb: [margin]
|
|
1430
|
+
}],
|
|
1431
|
+
/**
|
|
1432
|
+
* Margin Left
|
|
1433
|
+
* @see https://tailwindcss.com/docs/margin
|
|
1434
|
+
*/
|
|
1435
|
+
ml: [{
|
|
1436
|
+
ml: [margin]
|
|
1437
|
+
}],
|
|
1438
|
+
/**
|
|
1439
|
+
* Space Between X
|
|
1440
|
+
* @see https://tailwindcss.com/docs/space
|
|
1441
|
+
*/
|
|
1442
|
+
"space-x": [{
|
|
1443
|
+
"space-x": [space]
|
|
1444
|
+
}],
|
|
1445
|
+
/**
|
|
1446
|
+
* Space Between X Reverse
|
|
1447
|
+
* @see https://tailwindcss.com/docs/space
|
|
1448
|
+
*/
|
|
1449
|
+
"space-x-reverse": ["space-x-reverse"],
|
|
1450
|
+
/**
|
|
1451
|
+
* Space Between Y
|
|
1452
|
+
* @see https://tailwindcss.com/docs/space
|
|
1453
|
+
*/
|
|
1454
|
+
"space-y": [{
|
|
1455
|
+
"space-y": [space]
|
|
1456
|
+
}],
|
|
1457
|
+
/**
|
|
1458
|
+
* Space Between Y Reverse
|
|
1459
|
+
* @see https://tailwindcss.com/docs/space
|
|
1460
|
+
*/
|
|
1461
|
+
"space-y-reverse": ["space-y-reverse"],
|
|
1462
|
+
// Sizing
|
|
1463
|
+
/**
|
|
1464
|
+
* Width
|
|
1465
|
+
* @see https://tailwindcss.com/docs/width
|
|
1466
|
+
*/
|
|
1467
|
+
w: [{
|
|
1468
|
+
w: ["auto", "min", "max", "fit", "svw", "lvw", "dvw", isArbitraryValue, spacing2]
|
|
1469
|
+
}],
|
|
1470
|
+
/**
|
|
1471
|
+
* Min-Width
|
|
1472
|
+
* @see https://tailwindcss.com/docs/min-width
|
|
1473
|
+
*/
|
|
1474
|
+
"min-w": [{
|
|
1475
|
+
"min-w": [isArbitraryValue, spacing2, "min", "max", "fit"]
|
|
1476
|
+
}],
|
|
1477
|
+
/**
|
|
1478
|
+
* Max-Width
|
|
1479
|
+
* @see https://tailwindcss.com/docs/max-width
|
|
1480
|
+
*/
|
|
1481
|
+
"max-w": [{
|
|
1482
|
+
"max-w": [isArbitraryValue, spacing2, "none", "full", "min", "max", "fit", "prose", {
|
|
1483
|
+
screen: [isTshirtSize]
|
|
1484
|
+
}, isTshirtSize]
|
|
1485
|
+
}],
|
|
1486
|
+
/**
|
|
1487
|
+
* Height
|
|
1488
|
+
* @see https://tailwindcss.com/docs/height
|
|
1489
|
+
*/
|
|
1490
|
+
h: [{
|
|
1491
|
+
h: [isArbitraryValue, spacing2, "auto", "min", "max", "fit", "svh", "lvh", "dvh"]
|
|
1492
|
+
}],
|
|
1493
|
+
/**
|
|
1494
|
+
* Min-Height
|
|
1495
|
+
* @see https://tailwindcss.com/docs/min-height
|
|
1496
|
+
*/
|
|
1497
|
+
"min-h": [{
|
|
1498
|
+
"min-h": [isArbitraryValue, spacing2, "min", "max", "fit", "svh", "lvh", "dvh"]
|
|
1499
|
+
}],
|
|
1500
|
+
/**
|
|
1501
|
+
* Max-Height
|
|
1502
|
+
* @see https://tailwindcss.com/docs/max-height
|
|
1503
|
+
*/
|
|
1504
|
+
"max-h": [{
|
|
1505
|
+
"max-h": [isArbitraryValue, spacing2, "min", "max", "fit", "svh", "lvh", "dvh"]
|
|
1506
|
+
}],
|
|
1507
|
+
/**
|
|
1508
|
+
* Size
|
|
1509
|
+
* @see https://tailwindcss.com/docs/size
|
|
1510
|
+
*/
|
|
1511
|
+
size: [{
|
|
1512
|
+
size: [isArbitraryValue, spacing2, "auto", "min", "max", "fit"]
|
|
1513
|
+
}],
|
|
1514
|
+
// Typography
|
|
1515
|
+
/**
|
|
1516
|
+
* Font Size
|
|
1517
|
+
* @see https://tailwindcss.com/docs/font-size
|
|
1518
|
+
*/
|
|
1519
|
+
"font-size": [{
|
|
1520
|
+
text: ["base", isTshirtSize, isArbitraryLength]
|
|
1521
|
+
}],
|
|
1522
|
+
/**
|
|
1523
|
+
* Font Smoothing
|
|
1524
|
+
* @see https://tailwindcss.com/docs/font-smoothing
|
|
1525
|
+
*/
|
|
1526
|
+
"font-smoothing": ["antialiased", "subpixel-antialiased"],
|
|
1527
|
+
/**
|
|
1528
|
+
* Font Style
|
|
1529
|
+
* @see https://tailwindcss.com/docs/font-style
|
|
1530
|
+
*/
|
|
1531
|
+
"font-style": ["italic", "not-italic"],
|
|
1532
|
+
/**
|
|
1533
|
+
* Font Weight
|
|
1534
|
+
* @see https://tailwindcss.com/docs/font-weight
|
|
1535
|
+
*/
|
|
1536
|
+
"font-weight": [{
|
|
1537
|
+
font: ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black", isArbitraryNumber]
|
|
1538
|
+
}],
|
|
1539
|
+
/**
|
|
1540
|
+
* Font Family
|
|
1541
|
+
* @see https://tailwindcss.com/docs/font-family
|
|
1542
|
+
*/
|
|
1543
|
+
"font-family": [{
|
|
1544
|
+
font: [isAny]
|
|
1545
|
+
}],
|
|
1546
|
+
/**
|
|
1547
|
+
* Font Variant Numeric
|
|
1548
|
+
* @see https://tailwindcss.com/docs/font-variant-numeric
|
|
1549
|
+
*/
|
|
1550
|
+
"fvn-normal": ["normal-nums"],
|
|
1551
|
+
/**
|
|
1552
|
+
* Font Variant Numeric
|
|
1553
|
+
* @see https://tailwindcss.com/docs/font-variant-numeric
|
|
1554
|
+
*/
|
|
1555
|
+
"fvn-ordinal": ["ordinal"],
|
|
1556
|
+
/**
|
|
1557
|
+
* Font Variant Numeric
|
|
1558
|
+
* @see https://tailwindcss.com/docs/font-variant-numeric
|
|
1559
|
+
*/
|
|
1560
|
+
"fvn-slashed-zero": ["slashed-zero"],
|
|
1561
|
+
/**
|
|
1562
|
+
* Font Variant Numeric
|
|
1563
|
+
* @see https://tailwindcss.com/docs/font-variant-numeric
|
|
1564
|
+
*/
|
|
1565
|
+
"fvn-figure": ["lining-nums", "oldstyle-nums"],
|
|
1566
|
+
/**
|
|
1567
|
+
* Font Variant Numeric
|
|
1568
|
+
* @see https://tailwindcss.com/docs/font-variant-numeric
|
|
1569
|
+
*/
|
|
1570
|
+
"fvn-spacing": ["proportional-nums", "tabular-nums"],
|
|
1571
|
+
/**
|
|
1572
|
+
* Font Variant Numeric
|
|
1573
|
+
* @see https://tailwindcss.com/docs/font-variant-numeric
|
|
1574
|
+
*/
|
|
1575
|
+
"fvn-fraction": ["diagonal-fractions", "stacked-fractons"],
|
|
1576
|
+
/**
|
|
1577
|
+
* Letter Spacing
|
|
1578
|
+
* @see https://tailwindcss.com/docs/letter-spacing
|
|
1579
|
+
*/
|
|
1580
|
+
tracking: [{
|
|
1581
|
+
tracking: ["tighter", "tight", "normal", "wide", "wider", "widest", isArbitraryValue]
|
|
1582
|
+
}],
|
|
1583
|
+
/**
|
|
1584
|
+
* Line Clamp
|
|
1585
|
+
* @see https://tailwindcss.com/docs/line-clamp
|
|
1586
|
+
*/
|
|
1587
|
+
"line-clamp": [{
|
|
1588
|
+
"line-clamp": ["none", isNumber, isArbitraryNumber]
|
|
1589
|
+
}],
|
|
1590
|
+
/**
|
|
1591
|
+
* Line Height
|
|
1592
|
+
* @see https://tailwindcss.com/docs/line-height
|
|
1593
|
+
*/
|
|
1594
|
+
leading: [{
|
|
1595
|
+
leading: ["none", "tight", "snug", "normal", "relaxed", "loose", isLength, isArbitraryValue]
|
|
1596
|
+
}],
|
|
1597
|
+
/**
|
|
1598
|
+
* List Style Image
|
|
1599
|
+
* @see https://tailwindcss.com/docs/list-style-image
|
|
1600
|
+
*/
|
|
1601
|
+
"list-image": [{
|
|
1602
|
+
"list-image": ["none", isArbitraryValue]
|
|
1603
|
+
}],
|
|
1604
|
+
/**
|
|
1605
|
+
* List Style Type
|
|
1606
|
+
* @see https://tailwindcss.com/docs/list-style-type
|
|
1607
|
+
*/
|
|
1608
|
+
"list-style-type": [{
|
|
1609
|
+
list: ["none", "disc", "decimal", isArbitraryValue]
|
|
1610
|
+
}],
|
|
1611
|
+
/**
|
|
1612
|
+
* List Style Position
|
|
1613
|
+
* @see https://tailwindcss.com/docs/list-style-position
|
|
1614
|
+
*/
|
|
1615
|
+
"list-style-position": [{
|
|
1616
|
+
list: ["inside", "outside"]
|
|
1617
|
+
}],
|
|
1618
|
+
/**
|
|
1619
|
+
* Placeholder Color
|
|
1620
|
+
* @deprecated since Tailwind CSS v3.0.0
|
|
1621
|
+
* @see https://tailwindcss.com/docs/placeholder-color
|
|
1622
|
+
*/
|
|
1623
|
+
"placeholder-color": [{
|
|
1624
|
+
placeholder: [colors]
|
|
1625
|
+
}],
|
|
1626
|
+
/**
|
|
1627
|
+
* Placeholder Opacity
|
|
1628
|
+
* @see https://tailwindcss.com/docs/placeholder-opacity
|
|
1629
|
+
*/
|
|
1630
|
+
"placeholder-opacity": [{
|
|
1631
|
+
"placeholder-opacity": [opacity]
|
|
1632
|
+
}],
|
|
1633
|
+
/**
|
|
1634
|
+
* Text Alignment
|
|
1635
|
+
* @see https://tailwindcss.com/docs/text-align
|
|
1636
|
+
*/
|
|
1637
|
+
"text-alignment": [{
|
|
1638
|
+
text: ["left", "center", "right", "justify", "start", "end"]
|
|
1639
|
+
}],
|
|
1640
|
+
/**
|
|
1641
|
+
* Text Color
|
|
1642
|
+
* @see https://tailwindcss.com/docs/text-color
|
|
1643
|
+
*/
|
|
1644
|
+
"text-color": [{
|
|
1645
|
+
text: [colors]
|
|
1646
|
+
}],
|
|
1647
|
+
/**
|
|
1648
|
+
* Text Opacity
|
|
1649
|
+
* @see https://tailwindcss.com/docs/text-opacity
|
|
1650
|
+
*/
|
|
1651
|
+
"text-opacity": [{
|
|
1652
|
+
"text-opacity": [opacity]
|
|
1653
|
+
}],
|
|
1654
|
+
/**
|
|
1655
|
+
* Text Decoration
|
|
1656
|
+
* @see https://tailwindcss.com/docs/text-decoration
|
|
1657
|
+
*/
|
|
1658
|
+
"text-decoration": ["underline", "overline", "line-through", "no-underline"],
|
|
1659
|
+
/**
|
|
1660
|
+
* Text Decoration Style
|
|
1661
|
+
* @see https://tailwindcss.com/docs/text-decoration-style
|
|
1662
|
+
*/
|
|
1663
|
+
"text-decoration-style": [{
|
|
1664
|
+
decoration: [...getLineStyles(), "wavy"]
|
|
1665
|
+
}],
|
|
1666
|
+
/**
|
|
1667
|
+
* Text Decoration Thickness
|
|
1668
|
+
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
|
1669
|
+
*/
|
|
1670
|
+
"text-decoration-thickness": [{
|
|
1671
|
+
decoration: ["auto", "from-font", isLength, isArbitraryLength]
|
|
1672
|
+
}],
|
|
1673
|
+
/**
|
|
1674
|
+
* Text Underline Offset
|
|
1675
|
+
* @see https://tailwindcss.com/docs/text-underline-offset
|
|
1676
|
+
*/
|
|
1677
|
+
"underline-offset": [{
|
|
1678
|
+
"underline-offset": ["auto", isLength, isArbitraryValue]
|
|
1679
|
+
}],
|
|
1680
|
+
/**
|
|
1681
|
+
* Text Decoration Color
|
|
1682
|
+
* @see https://tailwindcss.com/docs/text-decoration-color
|
|
1683
|
+
*/
|
|
1684
|
+
"text-decoration-color": [{
|
|
1685
|
+
decoration: [colors]
|
|
1686
|
+
}],
|
|
1687
|
+
/**
|
|
1688
|
+
* Text Transform
|
|
1689
|
+
* @see https://tailwindcss.com/docs/text-transform
|
|
1690
|
+
*/
|
|
1691
|
+
"text-transform": ["uppercase", "lowercase", "capitalize", "normal-case"],
|
|
1692
|
+
/**
|
|
1693
|
+
* Text Overflow
|
|
1694
|
+
* @see https://tailwindcss.com/docs/text-overflow
|
|
1695
|
+
*/
|
|
1696
|
+
"text-overflow": ["truncate", "text-ellipsis", "text-clip"],
|
|
1697
|
+
/**
|
|
1698
|
+
* Text Wrap
|
|
1699
|
+
* @see https://tailwindcss.com/docs/text-wrap
|
|
1700
|
+
*/
|
|
1701
|
+
"text-wrap": [{
|
|
1702
|
+
text: ["wrap", "nowrap", "balance", "pretty"]
|
|
1703
|
+
}],
|
|
1704
|
+
/**
|
|
1705
|
+
* Text Indent
|
|
1706
|
+
* @see https://tailwindcss.com/docs/text-indent
|
|
1707
|
+
*/
|
|
1708
|
+
indent: [{
|
|
1709
|
+
indent: getSpacingWithArbitrary()
|
|
1710
|
+
}],
|
|
1711
|
+
/**
|
|
1712
|
+
* Vertical Alignment
|
|
1713
|
+
* @see https://tailwindcss.com/docs/vertical-align
|
|
1714
|
+
*/
|
|
1715
|
+
"vertical-align": [{
|
|
1716
|
+
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", isArbitraryValue]
|
|
1717
|
+
}],
|
|
1718
|
+
/**
|
|
1719
|
+
* Whitespace
|
|
1720
|
+
* @see https://tailwindcss.com/docs/whitespace
|
|
1721
|
+
*/
|
|
1722
|
+
whitespace: [{
|
|
1723
|
+
whitespace: ["normal", "nowrap", "pre", "pre-line", "pre-wrap", "break-spaces"]
|
|
1724
|
+
}],
|
|
1725
|
+
/**
|
|
1726
|
+
* Word Break
|
|
1727
|
+
* @see https://tailwindcss.com/docs/word-break
|
|
1728
|
+
*/
|
|
1729
|
+
break: [{
|
|
1730
|
+
break: ["normal", "words", "all", "keep"]
|
|
1731
|
+
}],
|
|
1732
|
+
/**
|
|
1733
|
+
* Hyphens
|
|
1734
|
+
* @see https://tailwindcss.com/docs/hyphens
|
|
1735
|
+
*/
|
|
1736
|
+
hyphens: [{
|
|
1737
|
+
hyphens: ["none", "manual", "auto"]
|
|
1738
|
+
}],
|
|
1739
|
+
/**
|
|
1740
|
+
* Content
|
|
1741
|
+
* @see https://tailwindcss.com/docs/content
|
|
1742
|
+
*/
|
|
1743
|
+
content: [{
|
|
1744
|
+
content: ["none", isArbitraryValue]
|
|
1745
|
+
}],
|
|
1746
|
+
// Backgrounds
|
|
1747
|
+
/**
|
|
1748
|
+
* Background Attachment
|
|
1749
|
+
* @see https://tailwindcss.com/docs/background-attachment
|
|
1750
|
+
*/
|
|
1751
|
+
"bg-attachment": [{
|
|
1752
|
+
bg: ["fixed", "local", "scroll"]
|
|
1753
|
+
}],
|
|
1754
|
+
/**
|
|
1755
|
+
* Background Clip
|
|
1756
|
+
* @see https://tailwindcss.com/docs/background-clip
|
|
1757
|
+
*/
|
|
1758
|
+
"bg-clip": [{
|
|
1759
|
+
"bg-clip": ["border", "padding", "content", "text"]
|
|
1760
|
+
}],
|
|
1761
|
+
/**
|
|
1762
|
+
* Background Opacity
|
|
1763
|
+
* @deprecated since Tailwind CSS v3.0.0
|
|
1764
|
+
* @see https://tailwindcss.com/docs/background-opacity
|
|
1765
|
+
*/
|
|
1766
|
+
"bg-opacity": [{
|
|
1767
|
+
"bg-opacity": [opacity]
|
|
1768
|
+
}],
|
|
1769
|
+
/**
|
|
1770
|
+
* Background Origin
|
|
1771
|
+
* @see https://tailwindcss.com/docs/background-origin
|
|
1772
|
+
*/
|
|
1773
|
+
"bg-origin": [{
|
|
1774
|
+
"bg-origin": ["border", "padding", "content"]
|
|
1775
|
+
}],
|
|
1776
|
+
/**
|
|
1777
|
+
* Background Position
|
|
1778
|
+
* @see https://tailwindcss.com/docs/background-position
|
|
1779
|
+
*/
|
|
1780
|
+
"bg-position": [{
|
|
1781
|
+
bg: [...getPositions(), isArbitraryPosition]
|
|
1782
|
+
}],
|
|
1783
|
+
/**
|
|
1784
|
+
* Background Repeat
|
|
1785
|
+
* @see https://tailwindcss.com/docs/background-repeat
|
|
1786
|
+
*/
|
|
1787
|
+
"bg-repeat": [{
|
|
1788
|
+
bg: ["no-repeat", {
|
|
1789
|
+
repeat: ["", "x", "y", "round", "space"]
|
|
1790
|
+
}]
|
|
1791
|
+
}],
|
|
1792
|
+
/**
|
|
1793
|
+
* Background Size
|
|
1794
|
+
* @see https://tailwindcss.com/docs/background-size
|
|
1795
|
+
*/
|
|
1796
|
+
"bg-size": [{
|
|
1797
|
+
bg: ["auto", "cover", "contain", isArbitrarySize]
|
|
1798
|
+
}],
|
|
1799
|
+
/**
|
|
1800
|
+
* Background Image
|
|
1801
|
+
* @see https://tailwindcss.com/docs/background-image
|
|
1802
|
+
*/
|
|
1803
|
+
"bg-image": [{
|
|
1804
|
+
bg: ["none", {
|
|
1805
|
+
"gradient-to": ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
|
|
1806
|
+
}, isArbitraryImage]
|
|
1807
|
+
}],
|
|
1808
|
+
/**
|
|
1809
|
+
* Background Color
|
|
1810
|
+
* @see https://tailwindcss.com/docs/background-color
|
|
1811
|
+
*/
|
|
1812
|
+
"bg-color": [{
|
|
1813
|
+
bg: [colors]
|
|
1814
|
+
}],
|
|
1815
|
+
/**
|
|
1816
|
+
* Gradient Color Stops From Position
|
|
1817
|
+
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1818
|
+
*/
|
|
1819
|
+
"gradient-from-pos": [{
|
|
1820
|
+
from: [gradientColorStopPositions]
|
|
1821
|
+
}],
|
|
1822
|
+
/**
|
|
1823
|
+
* Gradient Color Stops Via Position
|
|
1824
|
+
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1825
|
+
*/
|
|
1826
|
+
"gradient-via-pos": [{
|
|
1827
|
+
via: [gradientColorStopPositions]
|
|
1828
|
+
}],
|
|
1829
|
+
/**
|
|
1830
|
+
* Gradient Color Stops To Position
|
|
1831
|
+
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1832
|
+
*/
|
|
1833
|
+
"gradient-to-pos": [{
|
|
1834
|
+
to: [gradientColorStopPositions]
|
|
1835
|
+
}],
|
|
1836
|
+
/**
|
|
1837
|
+
* Gradient Color Stops From
|
|
1838
|
+
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1839
|
+
*/
|
|
1840
|
+
"gradient-from": [{
|
|
1841
|
+
from: [gradientColorStops]
|
|
1842
|
+
}],
|
|
1843
|
+
/**
|
|
1844
|
+
* Gradient Color Stops Via
|
|
1845
|
+
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1846
|
+
*/
|
|
1847
|
+
"gradient-via": [{
|
|
1848
|
+
via: [gradientColorStops]
|
|
1849
|
+
}],
|
|
1850
|
+
/**
|
|
1851
|
+
* Gradient Color Stops To
|
|
1852
|
+
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1853
|
+
*/
|
|
1854
|
+
"gradient-to": [{
|
|
1855
|
+
to: [gradientColorStops]
|
|
1856
|
+
}],
|
|
1857
|
+
// Borders
|
|
1858
|
+
/**
|
|
1859
|
+
* Border Radius
|
|
1860
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
1861
|
+
*/
|
|
1862
|
+
rounded: [{
|
|
1863
|
+
rounded: [borderRadius2]
|
|
1864
|
+
}],
|
|
1865
|
+
/**
|
|
1866
|
+
* Border Radius Start
|
|
1867
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
1868
|
+
*/
|
|
1869
|
+
"rounded-s": [{
|
|
1870
|
+
"rounded-s": [borderRadius2]
|
|
1871
|
+
}],
|
|
1872
|
+
/**
|
|
1873
|
+
* Border Radius End
|
|
1874
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
1875
|
+
*/
|
|
1876
|
+
"rounded-e": [{
|
|
1877
|
+
"rounded-e": [borderRadius2]
|
|
1878
|
+
}],
|
|
1879
|
+
/**
|
|
1880
|
+
* Border Radius Top
|
|
1881
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
1882
|
+
*/
|
|
1883
|
+
"rounded-t": [{
|
|
1884
|
+
"rounded-t": [borderRadius2]
|
|
1885
|
+
}],
|
|
1886
|
+
/**
|
|
1887
|
+
* Border Radius Right
|
|
1888
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
1889
|
+
*/
|
|
1890
|
+
"rounded-r": [{
|
|
1891
|
+
"rounded-r": [borderRadius2]
|
|
1892
|
+
}],
|
|
1893
|
+
/**
|
|
1894
|
+
* Border Radius Bottom
|
|
1895
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
1896
|
+
*/
|
|
1897
|
+
"rounded-b": [{
|
|
1898
|
+
"rounded-b": [borderRadius2]
|
|
1899
|
+
}],
|
|
1900
|
+
/**
|
|
1901
|
+
* Border Radius Left
|
|
1902
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
1903
|
+
*/
|
|
1904
|
+
"rounded-l": [{
|
|
1905
|
+
"rounded-l": [borderRadius2]
|
|
1906
|
+
}],
|
|
1907
|
+
/**
|
|
1908
|
+
* Border Radius Start Start
|
|
1909
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
1910
|
+
*/
|
|
1911
|
+
"rounded-ss": [{
|
|
1912
|
+
"rounded-ss": [borderRadius2]
|
|
1913
|
+
}],
|
|
1914
|
+
/**
|
|
1915
|
+
* Border Radius Start End
|
|
1916
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
1917
|
+
*/
|
|
1918
|
+
"rounded-se": [{
|
|
1919
|
+
"rounded-se": [borderRadius2]
|
|
1920
|
+
}],
|
|
1921
|
+
/**
|
|
1922
|
+
* Border Radius End End
|
|
1923
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
1924
|
+
*/
|
|
1925
|
+
"rounded-ee": [{
|
|
1926
|
+
"rounded-ee": [borderRadius2]
|
|
1927
|
+
}],
|
|
1928
|
+
/**
|
|
1929
|
+
* Border Radius End Start
|
|
1930
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
1931
|
+
*/
|
|
1932
|
+
"rounded-es": [{
|
|
1933
|
+
"rounded-es": [borderRadius2]
|
|
1934
|
+
}],
|
|
1935
|
+
/**
|
|
1936
|
+
* Border Radius Top Left
|
|
1937
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
1938
|
+
*/
|
|
1939
|
+
"rounded-tl": [{
|
|
1940
|
+
"rounded-tl": [borderRadius2]
|
|
1941
|
+
}],
|
|
1942
|
+
/**
|
|
1943
|
+
* Border Radius Top Right
|
|
1944
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
1945
|
+
*/
|
|
1946
|
+
"rounded-tr": [{
|
|
1947
|
+
"rounded-tr": [borderRadius2]
|
|
1948
|
+
}],
|
|
1949
|
+
/**
|
|
1950
|
+
* Border Radius Bottom Right
|
|
1951
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
1952
|
+
*/
|
|
1953
|
+
"rounded-br": [{
|
|
1954
|
+
"rounded-br": [borderRadius2]
|
|
1955
|
+
}],
|
|
1956
|
+
/**
|
|
1957
|
+
* Border Radius Bottom Left
|
|
1958
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
1959
|
+
*/
|
|
1960
|
+
"rounded-bl": [{
|
|
1961
|
+
"rounded-bl": [borderRadius2]
|
|
1962
|
+
}],
|
|
1963
|
+
/**
|
|
1964
|
+
* Border Width
|
|
1965
|
+
* @see https://tailwindcss.com/docs/border-width
|
|
1966
|
+
*/
|
|
1967
|
+
"border-w": [{
|
|
1968
|
+
border: [borderWidth]
|
|
1969
|
+
}],
|
|
1970
|
+
/**
|
|
1971
|
+
* Border Width X
|
|
1972
|
+
* @see https://tailwindcss.com/docs/border-width
|
|
1973
|
+
*/
|
|
1974
|
+
"border-w-x": [{
|
|
1975
|
+
"border-x": [borderWidth]
|
|
1976
|
+
}],
|
|
1977
|
+
/**
|
|
1978
|
+
* Border Width Y
|
|
1979
|
+
* @see https://tailwindcss.com/docs/border-width
|
|
1980
|
+
*/
|
|
1981
|
+
"border-w-y": [{
|
|
1982
|
+
"border-y": [borderWidth]
|
|
1983
|
+
}],
|
|
1984
|
+
/**
|
|
1985
|
+
* Border Width Start
|
|
1986
|
+
* @see https://tailwindcss.com/docs/border-width
|
|
1987
|
+
*/
|
|
1988
|
+
"border-w-s": [{
|
|
1989
|
+
"border-s": [borderWidth]
|
|
1990
|
+
}],
|
|
1991
|
+
/**
|
|
1992
|
+
* Border Width End
|
|
1993
|
+
* @see https://tailwindcss.com/docs/border-width
|
|
1994
|
+
*/
|
|
1995
|
+
"border-w-e": [{
|
|
1996
|
+
"border-e": [borderWidth]
|
|
1997
|
+
}],
|
|
1998
|
+
/**
|
|
1999
|
+
* Border Width Top
|
|
2000
|
+
* @see https://tailwindcss.com/docs/border-width
|
|
2001
|
+
*/
|
|
2002
|
+
"border-w-t": [{
|
|
2003
|
+
"border-t": [borderWidth]
|
|
2004
|
+
}],
|
|
2005
|
+
/**
|
|
2006
|
+
* Border Width Right
|
|
2007
|
+
* @see https://tailwindcss.com/docs/border-width
|
|
2008
|
+
*/
|
|
2009
|
+
"border-w-r": [{
|
|
2010
|
+
"border-r": [borderWidth]
|
|
2011
|
+
}],
|
|
2012
|
+
/**
|
|
2013
|
+
* Border Width Bottom
|
|
2014
|
+
* @see https://tailwindcss.com/docs/border-width
|
|
2015
|
+
*/
|
|
2016
|
+
"border-w-b": [{
|
|
2017
|
+
"border-b": [borderWidth]
|
|
2018
|
+
}],
|
|
2019
|
+
/**
|
|
2020
|
+
* Border Width Left
|
|
2021
|
+
* @see https://tailwindcss.com/docs/border-width
|
|
2022
|
+
*/
|
|
2023
|
+
"border-w-l": [{
|
|
2024
|
+
"border-l": [borderWidth]
|
|
2025
|
+
}],
|
|
2026
|
+
/**
|
|
2027
|
+
* Border Opacity
|
|
2028
|
+
* @see https://tailwindcss.com/docs/border-opacity
|
|
2029
|
+
*/
|
|
2030
|
+
"border-opacity": [{
|
|
2031
|
+
"border-opacity": [opacity]
|
|
2032
|
+
}],
|
|
2033
|
+
/**
|
|
2034
|
+
* Border Style
|
|
2035
|
+
* @see https://tailwindcss.com/docs/border-style
|
|
2036
|
+
*/
|
|
2037
|
+
"border-style": [{
|
|
2038
|
+
border: [...getLineStyles(), "hidden"]
|
|
2039
|
+
}],
|
|
2040
|
+
/**
|
|
2041
|
+
* Divide Width X
|
|
2042
|
+
* @see https://tailwindcss.com/docs/divide-width
|
|
2043
|
+
*/
|
|
2044
|
+
"divide-x": [{
|
|
2045
|
+
"divide-x": [borderWidth]
|
|
2046
|
+
}],
|
|
2047
|
+
/**
|
|
2048
|
+
* Divide Width X Reverse
|
|
2049
|
+
* @see https://tailwindcss.com/docs/divide-width
|
|
2050
|
+
*/
|
|
2051
|
+
"divide-x-reverse": ["divide-x-reverse"],
|
|
2052
|
+
/**
|
|
2053
|
+
* Divide Width Y
|
|
2054
|
+
* @see https://tailwindcss.com/docs/divide-width
|
|
2055
|
+
*/
|
|
2056
|
+
"divide-y": [{
|
|
2057
|
+
"divide-y": [borderWidth]
|
|
2058
|
+
}],
|
|
2059
|
+
/**
|
|
2060
|
+
* Divide Width Y Reverse
|
|
2061
|
+
* @see https://tailwindcss.com/docs/divide-width
|
|
2062
|
+
*/
|
|
2063
|
+
"divide-y-reverse": ["divide-y-reverse"],
|
|
2064
|
+
/**
|
|
2065
|
+
* Divide Opacity
|
|
2066
|
+
* @see https://tailwindcss.com/docs/divide-opacity
|
|
2067
|
+
*/
|
|
2068
|
+
"divide-opacity": [{
|
|
2069
|
+
"divide-opacity": [opacity]
|
|
2070
|
+
}],
|
|
2071
|
+
/**
|
|
2072
|
+
* Divide Style
|
|
2073
|
+
* @see https://tailwindcss.com/docs/divide-style
|
|
2074
|
+
*/
|
|
2075
|
+
"divide-style": [{
|
|
2076
|
+
divide: getLineStyles()
|
|
2077
|
+
}],
|
|
2078
|
+
/**
|
|
2079
|
+
* Border Color
|
|
2080
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
2081
|
+
*/
|
|
2082
|
+
"border-color": [{
|
|
2083
|
+
border: [borderColor]
|
|
2084
|
+
}],
|
|
2085
|
+
/**
|
|
2086
|
+
* Border Color X
|
|
2087
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
2088
|
+
*/
|
|
2089
|
+
"border-color-x": [{
|
|
2090
|
+
"border-x": [borderColor]
|
|
2091
|
+
}],
|
|
2092
|
+
/**
|
|
2093
|
+
* Border Color Y
|
|
2094
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
2095
|
+
*/
|
|
2096
|
+
"border-color-y": [{
|
|
2097
|
+
"border-y": [borderColor]
|
|
2098
|
+
}],
|
|
2099
|
+
/**
|
|
2100
|
+
* Border Color S
|
|
2101
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
2102
|
+
*/
|
|
2103
|
+
"border-color-s": [{
|
|
2104
|
+
"border-s": [borderColor]
|
|
2105
|
+
}],
|
|
2106
|
+
/**
|
|
2107
|
+
* Border Color E
|
|
2108
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
2109
|
+
*/
|
|
2110
|
+
"border-color-e": [{
|
|
2111
|
+
"border-e": [borderColor]
|
|
2112
|
+
}],
|
|
2113
|
+
/**
|
|
2114
|
+
* Border Color Top
|
|
2115
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
2116
|
+
*/
|
|
2117
|
+
"border-color-t": [{
|
|
2118
|
+
"border-t": [borderColor]
|
|
2119
|
+
}],
|
|
2120
|
+
/**
|
|
2121
|
+
* Border Color Right
|
|
2122
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
2123
|
+
*/
|
|
2124
|
+
"border-color-r": [{
|
|
2125
|
+
"border-r": [borderColor]
|
|
2126
|
+
}],
|
|
2127
|
+
/**
|
|
2128
|
+
* Border Color Bottom
|
|
2129
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
2130
|
+
*/
|
|
2131
|
+
"border-color-b": [{
|
|
2132
|
+
"border-b": [borderColor]
|
|
2133
|
+
}],
|
|
2134
|
+
/**
|
|
2135
|
+
* Border Color Left
|
|
2136
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
2137
|
+
*/
|
|
2138
|
+
"border-color-l": [{
|
|
2139
|
+
"border-l": [borderColor]
|
|
2140
|
+
}],
|
|
2141
|
+
/**
|
|
2142
|
+
* Divide Color
|
|
2143
|
+
* @see https://tailwindcss.com/docs/divide-color
|
|
2144
|
+
*/
|
|
2145
|
+
"divide-color": [{
|
|
2146
|
+
divide: [borderColor]
|
|
2147
|
+
}],
|
|
2148
|
+
/**
|
|
2149
|
+
* Outline Style
|
|
2150
|
+
* @see https://tailwindcss.com/docs/outline-style
|
|
2151
|
+
*/
|
|
2152
|
+
"outline-style": [{
|
|
2153
|
+
outline: ["", ...getLineStyles()]
|
|
2154
|
+
}],
|
|
2155
|
+
/**
|
|
2156
|
+
* Outline Offset
|
|
2157
|
+
* @see https://tailwindcss.com/docs/outline-offset
|
|
2158
|
+
*/
|
|
2159
|
+
"outline-offset": [{
|
|
2160
|
+
"outline-offset": [isLength, isArbitraryValue]
|
|
2161
|
+
}],
|
|
2162
|
+
/**
|
|
2163
|
+
* Outline Width
|
|
2164
|
+
* @see https://tailwindcss.com/docs/outline-width
|
|
2165
|
+
*/
|
|
2166
|
+
"outline-w": [{
|
|
2167
|
+
outline: [isLength, isArbitraryLength]
|
|
2168
|
+
}],
|
|
2169
|
+
/**
|
|
2170
|
+
* Outline Color
|
|
2171
|
+
* @see https://tailwindcss.com/docs/outline-color
|
|
2172
|
+
*/
|
|
2173
|
+
"outline-color": [{
|
|
2174
|
+
outline: [colors]
|
|
2175
|
+
}],
|
|
2176
|
+
/**
|
|
2177
|
+
* Ring Width
|
|
2178
|
+
* @see https://tailwindcss.com/docs/ring-width
|
|
2179
|
+
*/
|
|
2180
|
+
"ring-w": [{
|
|
2181
|
+
ring: getLengthWithEmptyAndArbitrary()
|
|
2182
|
+
}],
|
|
2183
|
+
/**
|
|
2184
|
+
* Ring Width Inset
|
|
2185
|
+
* @see https://tailwindcss.com/docs/ring-width
|
|
2186
|
+
*/
|
|
2187
|
+
"ring-w-inset": ["ring-inset"],
|
|
2188
|
+
/**
|
|
2189
|
+
* Ring Color
|
|
2190
|
+
* @see https://tailwindcss.com/docs/ring-color
|
|
2191
|
+
*/
|
|
2192
|
+
"ring-color": [{
|
|
2193
|
+
ring: [colors]
|
|
2194
|
+
}],
|
|
2195
|
+
/**
|
|
2196
|
+
* Ring Opacity
|
|
2197
|
+
* @see https://tailwindcss.com/docs/ring-opacity
|
|
2198
|
+
*/
|
|
2199
|
+
"ring-opacity": [{
|
|
2200
|
+
"ring-opacity": [opacity]
|
|
2201
|
+
}],
|
|
2202
|
+
/**
|
|
2203
|
+
* Ring Offset Width
|
|
2204
|
+
* @see https://tailwindcss.com/docs/ring-offset-width
|
|
2205
|
+
*/
|
|
2206
|
+
"ring-offset-w": [{
|
|
2207
|
+
"ring-offset": [isLength, isArbitraryLength]
|
|
2208
|
+
}],
|
|
2209
|
+
/**
|
|
2210
|
+
* Ring Offset Color
|
|
2211
|
+
* @see https://tailwindcss.com/docs/ring-offset-color
|
|
2212
|
+
*/
|
|
2213
|
+
"ring-offset-color": [{
|
|
2214
|
+
"ring-offset": [colors]
|
|
2215
|
+
}],
|
|
2216
|
+
// Effects
|
|
2217
|
+
/**
|
|
2218
|
+
* Box Shadow
|
|
2219
|
+
* @see https://tailwindcss.com/docs/box-shadow
|
|
2220
|
+
*/
|
|
2221
|
+
shadow: [{
|
|
2222
|
+
shadow: ["", "inner", "none", isTshirtSize, isArbitraryShadow]
|
|
2223
|
+
}],
|
|
2224
|
+
/**
|
|
2225
|
+
* Box Shadow Color
|
|
2226
|
+
* @see https://tailwindcss.com/docs/box-shadow-color
|
|
2227
|
+
*/
|
|
2228
|
+
"shadow-color": [{
|
|
2229
|
+
shadow: [isAny]
|
|
2230
|
+
}],
|
|
2231
|
+
/**
|
|
2232
|
+
* Opacity
|
|
2233
|
+
* @see https://tailwindcss.com/docs/opacity
|
|
2234
|
+
*/
|
|
2235
|
+
opacity: [{
|
|
2236
|
+
opacity: [opacity]
|
|
2237
|
+
}],
|
|
2238
|
+
/**
|
|
2239
|
+
* Mix Blend Mode
|
|
2240
|
+
* @see https://tailwindcss.com/docs/mix-blend-mode
|
|
2241
|
+
*/
|
|
2242
|
+
"mix-blend": [{
|
|
2243
|
+
"mix-blend": [...getBlendModes(), "plus-lighter", "plus-darker"]
|
|
2244
|
+
}],
|
|
2245
|
+
/**
|
|
2246
|
+
* Background Blend Mode
|
|
2247
|
+
* @see https://tailwindcss.com/docs/background-blend-mode
|
|
2248
|
+
*/
|
|
2249
|
+
"bg-blend": [{
|
|
2250
|
+
"bg-blend": getBlendModes()
|
|
2251
|
+
}],
|
|
2252
|
+
// Filters
|
|
2253
|
+
/**
|
|
2254
|
+
* Filter
|
|
2255
|
+
* @deprecated since Tailwind CSS v3.0.0
|
|
2256
|
+
* @see https://tailwindcss.com/docs/filter
|
|
2257
|
+
*/
|
|
2258
|
+
filter: [{
|
|
2259
|
+
filter: ["", "none"]
|
|
2260
|
+
}],
|
|
2261
|
+
/**
|
|
2262
|
+
* Blur
|
|
2263
|
+
* @see https://tailwindcss.com/docs/blur
|
|
2264
|
+
*/
|
|
2265
|
+
blur: [{
|
|
2266
|
+
blur: [blur]
|
|
2267
|
+
}],
|
|
2268
|
+
/**
|
|
2269
|
+
* Brightness
|
|
2270
|
+
* @see https://tailwindcss.com/docs/brightness
|
|
2271
|
+
*/
|
|
2272
|
+
brightness: [{
|
|
2273
|
+
brightness: [brightness]
|
|
2274
|
+
}],
|
|
2275
|
+
/**
|
|
2276
|
+
* Contrast
|
|
2277
|
+
* @see https://tailwindcss.com/docs/contrast
|
|
2278
|
+
*/
|
|
2279
|
+
contrast: [{
|
|
2280
|
+
contrast: [contrast]
|
|
2281
|
+
}],
|
|
2282
|
+
/**
|
|
2283
|
+
* Drop Shadow
|
|
2284
|
+
* @see https://tailwindcss.com/docs/drop-shadow
|
|
2285
|
+
*/
|
|
2286
|
+
"drop-shadow": [{
|
|
2287
|
+
"drop-shadow": ["", "none", isTshirtSize, isArbitraryValue]
|
|
2288
|
+
}],
|
|
2289
|
+
/**
|
|
2290
|
+
* Grayscale
|
|
2291
|
+
* @see https://tailwindcss.com/docs/grayscale
|
|
2292
|
+
*/
|
|
2293
|
+
grayscale: [{
|
|
2294
|
+
grayscale: [grayscale]
|
|
2295
|
+
}],
|
|
2296
|
+
/**
|
|
2297
|
+
* Hue Rotate
|
|
2298
|
+
* @see https://tailwindcss.com/docs/hue-rotate
|
|
2299
|
+
*/
|
|
2300
|
+
"hue-rotate": [{
|
|
2301
|
+
"hue-rotate": [hueRotate]
|
|
2302
|
+
}],
|
|
2303
|
+
/**
|
|
2304
|
+
* Invert
|
|
2305
|
+
* @see https://tailwindcss.com/docs/invert
|
|
2306
|
+
*/
|
|
2307
|
+
invert: [{
|
|
2308
|
+
invert: [invert]
|
|
2309
|
+
}],
|
|
2310
|
+
/**
|
|
2311
|
+
* Saturate
|
|
2312
|
+
* @see https://tailwindcss.com/docs/saturate
|
|
2313
|
+
*/
|
|
2314
|
+
saturate: [{
|
|
2315
|
+
saturate: [saturate]
|
|
2316
|
+
}],
|
|
2317
|
+
/**
|
|
2318
|
+
* Sepia
|
|
2319
|
+
* @see https://tailwindcss.com/docs/sepia
|
|
2320
|
+
*/
|
|
2321
|
+
sepia: [{
|
|
2322
|
+
sepia: [sepia]
|
|
2323
|
+
}],
|
|
2324
|
+
/**
|
|
2325
|
+
* Backdrop Filter
|
|
2326
|
+
* @deprecated since Tailwind CSS v3.0.0
|
|
2327
|
+
* @see https://tailwindcss.com/docs/backdrop-filter
|
|
2328
|
+
*/
|
|
2329
|
+
"backdrop-filter": [{
|
|
2330
|
+
"backdrop-filter": ["", "none"]
|
|
2331
|
+
}],
|
|
2332
|
+
/**
|
|
2333
|
+
* Backdrop Blur
|
|
2334
|
+
* @see https://tailwindcss.com/docs/backdrop-blur
|
|
2335
|
+
*/
|
|
2336
|
+
"backdrop-blur": [{
|
|
2337
|
+
"backdrop-blur": [blur]
|
|
2338
|
+
}],
|
|
2339
|
+
/**
|
|
2340
|
+
* Backdrop Brightness
|
|
2341
|
+
* @see https://tailwindcss.com/docs/backdrop-brightness
|
|
2342
|
+
*/
|
|
2343
|
+
"backdrop-brightness": [{
|
|
2344
|
+
"backdrop-brightness": [brightness]
|
|
2345
|
+
}],
|
|
2346
|
+
/**
|
|
2347
|
+
* Backdrop Contrast
|
|
2348
|
+
* @see https://tailwindcss.com/docs/backdrop-contrast
|
|
2349
|
+
*/
|
|
2350
|
+
"backdrop-contrast": [{
|
|
2351
|
+
"backdrop-contrast": [contrast]
|
|
2352
|
+
}],
|
|
2353
|
+
/**
|
|
2354
|
+
* Backdrop Grayscale
|
|
2355
|
+
* @see https://tailwindcss.com/docs/backdrop-grayscale
|
|
2356
|
+
*/
|
|
2357
|
+
"backdrop-grayscale": [{
|
|
2358
|
+
"backdrop-grayscale": [grayscale]
|
|
2359
|
+
}],
|
|
2360
|
+
/**
|
|
2361
|
+
* Backdrop Hue Rotate
|
|
2362
|
+
* @see https://tailwindcss.com/docs/backdrop-hue-rotate
|
|
2363
|
+
*/
|
|
2364
|
+
"backdrop-hue-rotate": [{
|
|
2365
|
+
"backdrop-hue-rotate": [hueRotate]
|
|
2366
|
+
}],
|
|
2367
|
+
/**
|
|
2368
|
+
* Backdrop Invert
|
|
2369
|
+
* @see https://tailwindcss.com/docs/backdrop-invert
|
|
2370
|
+
*/
|
|
2371
|
+
"backdrop-invert": [{
|
|
2372
|
+
"backdrop-invert": [invert]
|
|
2373
|
+
}],
|
|
2374
|
+
/**
|
|
2375
|
+
* Backdrop Opacity
|
|
2376
|
+
* @see https://tailwindcss.com/docs/backdrop-opacity
|
|
2377
|
+
*/
|
|
2378
|
+
"backdrop-opacity": [{
|
|
2379
|
+
"backdrop-opacity": [opacity]
|
|
2380
|
+
}],
|
|
2381
|
+
/**
|
|
2382
|
+
* Backdrop Saturate
|
|
2383
|
+
* @see https://tailwindcss.com/docs/backdrop-saturate
|
|
2384
|
+
*/
|
|
2385
|
+
"backdrop-saturate": [{
|
|
2386
|
+
"backdrop-saturate": [saturate]
|
|
2387
|
+
}],
|
|
2388
|
+
/**
|
|
2389
|
+
* Backdrop Sepia
|
|
2390
|
+
* @see https://tailwindcss.com/docs/backdrop-sepia
|
|
2391
|
+
*/
|
|
2392
|
+
"backdrop-sepia": [{
|
|
2393
|
+
"backdrop-sepia": [sepia]
|
|
2394
|
+
}],
|
|
2395
|
+
// Tables
|
|
2396
|
+
/**
|
|
2397
|
+
* Border Collapse
|
|
2398
|
+
* @see https://tailwindcss.com/docs/border-collapse
|
|
2399
|
+
*/
|
|
2400
|
+
"border-collapse": [{
|
|
2401
|
+
border: ["collapse", "separate"]
|
|
2402
|
+
}],
|
|
2403
|
+
/**
|
|
2404
|
+
* Border Spacing
|
|
2405
|
+
* @see https://tailwindcss.com/docs/border-spacing
|
|
2406
|
+
*/
|
|
2407
|
+
"border-spacing": [{
|
|
2408
|
+
"border-spacing": [borderSpacing]
|
|
2409
|
+
}],
|
|
2410
|
+
/**
|
|
2411
|
+
* Border Spacing X
|
|
2412
|
+
* @see https://tailwindcss.com/docs/border-spacing
|
|
2413
|
+
*/
|
|
2414
|
+
"border-spacing-x": [{
|
|
2415
|
+
"border-spacing-x": [borderSpacing]
|
|
2416
|
+
}],
|
|
2417
|
+
/**
|
|
2418
|
+
* Border Spacing Y
|
|
2419
|
+
* @see https://tailwindcss.com/docs/border-spacing
|
|
2420
|
+
*/
|
|
2421
|
+
"border-spacing-y": [{
|
|
2422
|
+
"border-spacing-y": [borderSpacing]
|
|
2423
|
+
}],
|
|
2424
|
+
/**
|
|
2425
|
+
* Table Layout
|
|
2426
|
+
* @see https://tailwindcss.com/docs/table-layout
|
|
2427
|
+
*/
|
|
2428
|
+
"table-layout": [{
|
|
2429
|
+
table: ["auto", "fixed"]
|
|
2430
|
+
}],
|
|
2431
|
+
/**
|
|
2432
|
+
* Caption Side
|
|
2433
|
+
* @see https://tailwindcss.com/docs/caption-side
|
|
2434
|
+
*/
|
|
2435
|
+
caption: [{
|
|
2436
|
+
caption: ["top", "bottom"]
|
|
2437
|
+
}],
|
|
2438
|
+
// Transitions and Animation
|
|
2439
|
+
/**
|
|
2440
|
+
* Tranisition Property
|
|
2441
|
+
* @see https://tailwindcss.com/docs/transition-property
|
|
2442
|
+
*/
|
|
2443
|
+
transition: [{
|
|
2444
|
+
transition: ["none", "all", "", "colors", "opacity", "shadow", "transform", isArbitraryValue]
|
|
2445
|
+
}],
|
|
2446
|
+
/**
|
|
2447
|
+
* Transition Duration
|
|
2448
|
+
* @see https://tailwindcss.com/docs/transition-duration
|
|
2449
|
+
*/
|
|
2450
|
+
duration: [{
|
|
2451
|
+
duration: getNumberAndArbitrary()
|
|
2452
|
+
}],
|
|
2453
|
+
/**
|
|
2454
|
+
* Transition Timing Function
|
|
2455
|
+
* @see https://tailwindcss.com/docs/transition-timing-function
|
|
2456
|
+
*/
|
|
2457
|
+
ease: [{
|
|
2458
|
+
ease: ["linear", "in", "out", "in-out", isArbitraryValue]
|
|
2459
|
+
}],
|
|
2460
|
+
/**
|
|
2461
|
+
* Transition Delay
|
|
2462
|
+
* @see https://tailwindcss.com/docs/transition-delay
|
|
2463
|
+
*/
|
|
2464
|
+
delay: [{
|
|
2465
|
+
delay: getNumberAndArbitrary()
|
|
2466
|
+
}],
|
|
2467
|
+
/**
|
|
2468
|
+
* Animation
|
|
2469
|
+
* @see https://tailwindcss.com/docs/animation
|
|
2470
|
+
*/
|
|
2471
|
+
animate: [{
|
|
2472
|
+
animate: ["none", "spin", "ping", "pulse", "bounce", isArbitraryValue]
|
|
2473
|
+
}],
|
|
2474
|
+
// Transforms
|
|
2475
|
+
/**
|
|
2476
|
+
* Transform
|
|
2477
|
+
* @see https://tailwindcss.com/docs/transform
|
|
2478
|
+
*/
|
|
2479
|
+
transform: [{
|
|
2480
|
+
transform: ["", "gpu", "none"]
|
|
2481
|
+
}],
|
|
2482
|
+
/**
|
|
2483
|
+
* Scale
|
|
2484
|
+
* @see https://tailwindcss.com/docs/scale
|
|
2485
|
+
*/
|
|
2486
|
+
scale: [{
|
|
2487
|
+
scale: [scale]
|
|
2488
|
+
}],
|
|
2489
|
+
/**
|
|
2490
|
+
* Scale X
|
|
2491
|
+
* @see https://tailwindcss.com/docs/scale
|
|
2492
|
+
*/
|
|
2493
|
+
"scale-x": [{
|
|
2494
|
+
"scale-x": [scale]
|
|
2495
|
+
}],
|
|
2496
|
+
/**
|
|
2497
|
+
* Scale Y
|
|
2498
|
+
* @see https://tailwindcss.com/docs/scale
|
|
2499
|
+
*/
|
|
2500
|
+
"scale-y": [{
|
|
2501
|
+
"scale-y": [scale]
|
|
2502
|
+
}],
|
|
2503
|
+
/**
|
|
2504
|
+
* Rotate
|
|
2505
|
+
* @see https://tailwindcss.com/docs/rotate
|
|
2506
|
+
*/
|
|
2507
|
+
rotate: [{
|
|
2508
|
+
rotate: [isInteger, isArbitraryValue]
|
|
2509
|
+
}],
|
|
2510
|
+
/**
|
|
2511
|
+
* Translate X
|
|
2512
|
+
* @see https://tailwindcss.com/docs/translate
|
|
2513
|
+
*/
|
|
2514
|
+
"translate-x": [{
|
|
2515
|
+
"translate-x": [translate]
|
|
2516
|
+
}],
|
|
2517
|
+
/**
|
|
2518
|
+
* Translate Y
|
|
2519
|
+
* @see https://tailwindcss.com/docs/translate
|
|
2520
|
+
*/
|
|
2521
|
+
"translate-y": [{
|
|
2522
|
+
"translate-y": [translate]
|
|
2523
|
+
}],
|
|
2524
|
+
/**
|
|
2525
|
+
* Skew X
|
|
2526
|
+
* @see https://tailwindcss.com/docs/skew
|
|
2527
|
+
*/
|
|
2528
|
+
"skew-x": [{
|
|
2529
|
+
"skew-x": [skew]
|
|
2530
|
+
}],
|
|
2531
|
+
/**
|
|
2532
|
+
* Skew Y
|
|
2533
|
+
* @see https://tailwindcss.com/docs/skew
|
|
2534
|
+
*/
|
|
2535
|
+
"skew-y": [{
|
|
2536
|
+
"skew-y": [skew]
|
|
2537
|
+
}],
|
|
2538
|
+
/**
|
|
2539
|
+
* Transform Origin
|
|
2540
|
+
* @see https://tailwindcss.com/docs/transform-origin
|
|
2541
|
+
*/
|
|
2542
|
+
"transform-origin": [{
|
|
2543
|
+
origin: ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left", isArbitraryValue]
|
|
2544
|
+
}],
|
|
2545
|
+
// Interactivity
|
|
2546
|
+
/**
|
|
2547
|
+
* Accent Color
|
|
2548
|
+
* @see https://tailwindcss.com/docs/accent-color
|
|
2549
|
+
*/
|
|
2550
|
+
accent: [{
|
|
2551
|
+
accent: ["auto", colors]
|
|
2552
|
+
}],
|
|
2553
|
+
/**
|
|
2554
|
+
* Appearance
|
|
2555
|
+
* @see https://tailwindcss.com/docs/appearance
|
|
2556
|
+
*/
|
|
2557
|
+
appearance: [{
|
|
2558
|
+
appearance: ["none", "auto"]
|
|
2559
|
+
}],
|
|
2560
|
+
/**
|
|
2561
|
+
* Cursor
|
|
2562
|
+
* @see https://tailwindcss.com/docs/cursor
|
|
2563
|
+
*/
|
|
2564
|
+
cursor: [{
|
|
2565
|
+
cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", isArbitraryValue]
|
|
2566
|
+
}],
|
|
2567
|
+
/**
|
|
2568
|
+
* Caret Color
|
|
2569
|
+
* @see https://tailwindcss.com/docs/just-in-time-mode#caret-color-utilities
|
|
2570
|
+
*/
|
|
2571
|
+
"caret-color": [{
|
|
2572
|
+
caret: [colors]
|
|
2573
|
+
}],
|
|
2574
|
+
/**
|
|
2575
|
+
* Pointer Events
|
|
2576
|
+
* @see https://tailwindcss.com/docs/pointer-events
|
|
2577
|
+
*/
|
|
2578
|
+
"pointer-events": [{
|
|
2579
|
+
"pointer-events": ["none", "auto"]
|
|
2580
|
+
}],
|
|
2581
|
+
/**
|
|
2582
|
+
* Resize
|
|
2583
|
+
* @see https://tailwindcss.com/docs/resize
|
|
2584
|
+
*/
|
|
2585
|
+
resize: [{
|
|
2586
|
+
resize: ["none", "y", "x", ""]
|
|
2587
|
+
}],
|
|
2588
|
+
/**
|
|
2589
|
+
* Scroll Behavior
|
|
2590
|
+
* @see https://tailwindcss.com/docs/scroll-behavior
|
|
2591
|
+
*/
|
|
2592
|
+
"scroll-behavior": [{
|
|
2593
|
+
scroll: ["auto", "smooth"]
|
|
2594
|
+
}],
|
|
2595
|
+
/**
|
|
2596
|
+
* Scroll Margin
|
|
2597
|
+
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2598
|
+
*/
|
|
2599
|
+
"scroll-m": [{
|
|
2600
|
+
"scroll-m": getSpacingWithArbitrary()
|
|
2601
|
+
}],
|
|
2602
|
+
/**
|
|
2603
|
+
* Scroll Margin X
|
|
2604
|
+
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2605
|
+
*/
|
|
2606
|
+
"scroll-mx": [{
|
|
2607
|
+
"scroll-mx": getSpacingWithArbitrary()
|
|
2608
|
+
}],
|
|
2609
|
+
/**
|
|
2610
|
+
* Scroll Margin Y
|
|
2611
|
+
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2612
|
+
*/
|
|
2613
|
+
"scroll-my": [{
|
|
2614
|
+
"scroll-my": getSpacingWithArbitrary()
|
|
2615
|
+
}],
|
|
2616
|
+
/**
|
|
2617
|
+
* Scroll Margin Start
|
|
2618
|
+
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2619
|
+
*/
|
|
2620
|
+
"scroll-ms": [{
|
|
2621
|
+
"scroll-ms": getSpacingWithArbitrary()
|
|
2622
|
+
}],
|
|
2623
|
+
/**
|
|
2624
|
+
* Scroll Margin End
|
|
2625
|
+
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2626
|
+
*/
|
|
2627
|
+
"scroll-me": [{
|
|
2628
|
+
"scroll-me": getSpacingWithArbitrary()
|
|
2629
|
+
}],
|
|
2630
|
+
/**
|
|
2631
|
+
* Scroll Margin Top
|
|
2632
|
+
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2633
|
+
*/
|
|
2634
|
+
"scroll-mt": [{
|
|
2635
|
+
"scroll-mt": getSpacingWithArbitrary()
|
|
2636
|
+
}],
|
|
2637
|
+
/**
|
|
2638
|
+
* Scroll Margin Right
|
|
2639
|
+
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2640
|
+
*/
|
|
2641
|
+
"scroll-mr": [{
|
|
2642
|
+
"scroll-mr": getSpacingWithArbitrary()
|
|
2643
|
+
}],
|
|
2644
|
+
/**
|
|
2645
|
+
* Scroll Margin Bottom
|
|
2646
|
+
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2647
|
+
*/
|
|
2648
|
+
"scroll-mb": [{
|
|
2649
|
+
"scroll-mb": getSpacingWithArbitrary()
|
|
2650
|
+
}],
|
|
2651
|
+
/**
|
|
2652
|
+
* Scroll Margin Left
|
|
2653
|
+
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2654
|
+
*/
|
|
2655
|
+
"scroll-ml": [{
|
|
2656
|
+
"scroll-ml": getSpacingWithArbitrary()
|
|
2657
|
+
}],
|
|
2658
|
+
/**
|
|
2659
|
+
* Scroll Padding
|
|
2660
|
+
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2661
|
+
*/
|
|
2662
|
+
"scroll-p": [{
|
|
2663
|
+
"scroll-p": getSpacingWithArbitrary()
|
|
2664
|
+
}],
|
|
2665
|
+
/**
|
|
2666
|
+
* Scroll Padding X
|
|
2667
|
+
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2668
|
+
*/
|
|
2669
|
+
"scroll-px": [{
|
|
2670
|
+
"scroll-px": getSpacingWithArbitrary()
|
|
2671
|
+
}],
|
|
2672
|
+
/**
|
|
2673
|
+
* Scroll Padding Y
|
|
2674
|
+
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2675
|
+
*/
|
|
2676
|
+
"scroll-py": [{
|
|
2677
|
+
"scroll-py": getSpacingWithArbitrary()
|
|
2678
|
+
}],
|
|
2679
|
+
/**
|
|
2680
|
+
* Scroll Padding Start
|
|
2681
|
+
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2682
|
+
*/
|
|
2683
|
+
"scroll-ps": [{
|
|
2684
|
+
"scroll-ps": getSpacingWithArbitrary()
|
|
2685
|
+
}],
|
|
2686
|
+
/**
|
|
2687
|
+
* Scroll Padding End
|
|
2688
|
+
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2689
|
+
*/
|
|
2690
|
+
"scroll-pe": [{
|
|
2691
|
+
"scroll-pe": getSpacingWithArbitrary()
|
|
2692
|
+
}],
|
|
2693
|
+
/**
|
|
2694
|
+
* Scroll Padding Top
|
|
2695
|
+
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2696
|
+
*/
|
|
2697
|
+
"scroll-pt": [{
|
|
2698
|
+
"scroll-pt": getSpacingWithArbitrary()
|
|
2699
|
+
}],
|
|
2700
|
+
/**
|
|
2701
|
+
* Scroll Padding Right
|
|
2702
|
+
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2703
|
+
*/
|
|
2704
|
+
"scroll-pr": [{
|
|
2705
|
+
"scroll-pr": getSpacingWithArbitrary()
|
|
2706
|
+
}],
|
|
2707
|
+
/**
|
|
2708
|
+
* Scroll Padding Bottom
|
|
2709
|
+
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2710
|
+
*/
|
|
2711
|
+
"scroll-pb": [{
|
|
2712
|
+
"scroll-pb": getSpacingWithArbitrary()
|
|
2713
|
+
}],
|
|
2714
|
+
/**
|
|
2715
|
+
* Scroll Padding Left
|
|
2716
|
+
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2717
|
+
*/
|
|
2718
|
+
"scroll-pl": [{
|
|
2719
|
+
"scroll-pl": getSpacingWithArbitrary()
|
|
2720
|
+
}],
|
|
2721
|
+
/**
|
|
2722
|
+
* Scroll Snap Align
|
|
2723
|
+
* @see https://tailwindcss.com/docs/scroll-snap-align
|
|
2724
|
+
*/
|
|
2725
|
+
"snap-align": [{
|
|
2726
|
+
snap: ["start", "end", "center", "align-none"]
|
|
2727
|
+
}],
|
|
2728
|
+
/**
|
|
2729
|
+
* Scroll Snap Stop
|
|
2730
|
+
* @see https://tailwindcss.com/docs/scroll-snap-stop
|
|
2731
|
+
*/
|
|
2732
|
+
"snap-stop": [{
|
|
2733
|
+
snap: ["normal", "always"]
|
|
2734
|
+
}],
|
|
2735
|
+
/**
|
|
2736
|
+
* Scroll Snap Type
|
|
2737
|
+
* @see https://tailwindcss.com/docs/scroll-snap-type
|
|
2738
|
+
*/
|
|
2739
|
+
"snap-type": [{
|
|
2740
|
+
snap: ["none", "x", "y", "both"]
|
|
2741
|
+
}],
|
|
2742
|
+
/**
|
|
2743
|
+
* Scroll Snap Type Strictness
|
|
2744
|
+
* @see https://tailwindcss.com/docs/scroll-snap-type
|
|
2745
|
+
*/
|
|
2746
|
+
"snap-strictness": [{
|
|
2747
|
+
snap: ["mandatory", "proximity"]
|
|
2748
|
+
}],
|
|
2749
|
+
/**
|
|
2750
|
+
* Touch Action
|
|
2751
|
+
* @see https://tailwindcss.com/docs/touch-action
|
|
2752
|
+
*/
|
|
2753
|
+
touch: [{
|
|
2754
|
+
touch: ["auto", "none", "manipulation"]
|
|
2755
|
+
}],
|
|
2756
|
+
/**
|
|
2757
|
+
* Touch Action X
|
|
2758
|
+
* @see https://tailwindcss.com/docs/touch-action
|
|
2759
|
+
*/
|
|
2760
|
+
"touch-x": [{
|
|
2761
|
+
"touch-pan": ["x", "left", "right"]
|
|
2762
|
+
}],
|
|
2763
|
+
/**
|
|
2764
|
+
* Touch Action Y
|
|
2765
|
+
* @see https://tailwindcss.com/docs/touch-action
|
|
2766
|
+
*/
|
|
2767
|
+
"touch-y": [{
|
|
2768
|
+
"touch-pan": ["y", "up", "down"]
|
|
2769
|
+
}],
|
|
2770
|
+
/**
|
|
2771
|
+
* Touch Action Pinch Zoom
|
|
2772
|
+
* @see https://tailwindcss.com/docs/touch-action
|
|
2773
|
+
*/
|
|
2774
|
+
"touch-pz": ["touch-pinch-zoom"],
|
|
2775
|
+
/**
|
|
2776
|
+
* User Select
|
|
2777
|
+
* @see https://tailwindcss.com/docs/user-select
|
|
2778
|
+
*/
|
|
2779
|
+
select: [{
|
|
2780
|
+
select: ["none", "text", "all", "auto"]
|
|
2781
|
+
}],
|
|
2782
|
+
/**
|
|
2783
|
+
* Will Change
|
|
2784
|
+
* @see https://tailwindcss.com/docs/will-change
|
|
2785
|
+
*/
|
|
2786
|
+
"will-change": [{
|
|
2787
|
+
"will-change": ["auto", "scroll", "contents", "transform", isArbitraryValue]
|
|
2788
|
+
}],
|
|
2789
|
+
// SVG
|
|
2790
|
+
/**
|
|
2791
|
+
* Fill
|
|
2792
|
+
* @see https://tailwindcss.com/docs/fill
|
|
2793
|
+
*/
|
|
2794
|
+
fill: [{
|
|
2795
|
+
fill: [colors, "none"]
|
|
2796
|
+
}],
|
|
2797
|
+
/**
|
|
2798
|
+
* Stroke Width
|
|
2799
|
+
* @see https://tailwindcss.com/docs/stroke-width
|
|
2800
|
+
*/
|
|
2801
|
+
"stroke-w": [{
|
|
2802
|
+
stroke: [isLength, isArbitraryLength, isArbitraryNumber]
|
|
2803
|
+
}],
|
|
2804
|
+
/**
|
|
2805
|
+
* Stroke
|
|
2806
|
+
* @see https://tailwindcss.com/docs/stroke
|
|
2807
|
+
*/
|
|
2808
|
+
stroke: [{
|
|
2809
|
+
stroke: [colors, "none"]
|
|
2810
|
+
}],
|
|
2811
|
+
// Accessibility
|
|
2812
|
+
/**
|
|
2813
|
+
* Screen Readers
|
|
2814
|
+
* @see https://tailwindcss.com/docs/screen-readers
|
|
2815
|
+
*/
|
|
2816
|
+
sr: ["sr-only", "not-sr-only"],
|
|
2817
|
+
/**
|
|
2818
|
+
* Forced Color Adjust
|
|
2819
|
+
* @see https://tailwindcss.com/docs/forced-color-adjust
|
|
2820
|
+
*/
|
|
2821
|
+
"forced-color-adjust": [{
|
|
2822
|
+
"forced-color-adjust": ["auto", "none"]
|
|
2823
|
+
}]
|
|
2824
|
+
},
|
|
2825
|
+
conflictingClassGroups: {
|
|
2826
|
+
overflow: ["overflow-x", "overflow-y"],
|
|
2827
|
+
overscroll: ["overscroll-x", "overscroll-y"],
|
|
2828
|
+
inset: ["inset-x", "inset-y", "start", "end", "top", "right", "bottom", "left"],
|
|
2829
|
+
"inset-x": ["right", "left"],
|
|
2830
|
+
"inset-y": ["top", "bottom"],
|
|
2831
|
+
flex: ["basis", "grow", "shrink"],
|
|
2832
|
+
gap: ["gap-x", "gap-y"],
|
|
2833
|
+
p: ["px", "py", "ps", "pe", "pt", "pr", "pb", "pl"],
|
|
2834
|
+
px: ["pr", "pl"],
|
|
2835
|
+
py: ["pt", "pb"],
|
|
2836
|
+
m: ["mx", "my", "ms", "me", "mt", "mr", "mb", "ml"],
|
|
2837
|
+
mx: ["mr", "ml"],
|
|
2838
|
+
my: ["mt", "mb"],
|
|
2839
|
+
size: ["w", "h"],
|
|
2840
|
+
"font-size": ["leading"],
|
|
2841
|
+
"fvn-normal": ["fvn-ordinal", "fvn-slashed-zero", "fvn-figure", "fvn-spacing", "fvn-fraction"],
|
|
2842
|
+
"fvn-ordinal": ["fvn-normal"],
|
|
2843
|
+
"fvn-slashed-zero": ["fvn-normal"],
|
|
2844
|
+
"fvn-figure": ["fvn-normal"],
|
|
2845
|
+
"fvn-spacing": ["fvn-normal"],
|
|
2846
|
+
"fvn-fraction": ["fvn-normal"],
|
|
2847
|
+
"line-clamp": ["display", "overflow"],
|
|
2848
|
+
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"],
|
|
2849
|
+
"rounded-s": ["rounded-ss", "rounded-es"],
|
|
2850
|
+
"rounded-e": ["rounded-se", "rounded-ee"],
|
|
2851
|
+
"rounded-t": ["rounded-tl", "rounded-tr"],
|
|
2852
|
+
"rounded-r": ["rounded-tr", "rounded-br"],
|
|
2853
|
+
"rounded-b": ["rounded-br", "rounded-bl"],
|
|
2854
|
+
"rounded-l": ["rounded-tl", "rounded-bl"],
|
|
2855
|
+
"border-spacing": ["border-spacing-x", "border-spacing-y"],
|
|
2856
|
+
"border-w": ["border-w-s", "border-w-e", "border-w-t", "border-w-r", "border-w-b", "border-w-l"],
|
|
2857
|
+
"border-w-x": ["border-w-r", "border-w-l"],
|
|
2858
|
+
"border-w-y": ["border-w-t", "border-w-b"],
|
|
2859
|
+
"border-color": ["border-color-s", "border-color-e", "border-color-t", "border-color-r", "border-color-b", "border-color-l"],
|
|
2860
|
+
"border-color-x": ["border-color-r", "border-color-l"],
|
|
2861
|
+
"border-color-y": ["border-color-t", "border-color-b"],
|
|
2862
|
+
"scroll-m": ["scroll-mx", "scroll-my", "scroll-ms", "scroll-me", "scroll-mt", "scroll-mr", "scroll-mb", "scroll-ml"],
|
|
2863
|
+
"scroll-mx": ["scroll-mr", "scroll-ml"],
|
|
2864
|
+
"scroll-my": ["scroll-mt", "scroll-mb"],
|
|
2865
|
+
"scroll-p": ["scroll-px", "scroll-py", "scroll-ps", "scroll-pe", "scroll-pt", "scroll-pr", "scroll-pb", "scroll-pl"],
|
|
2866
|
+
"scroll-px": ["scroll-pr", "scroll-pl"],
|
|
2867
|
+
"scroll-py": ["scroll-pt", "scroll-pb"],
|
|
2868
|
+
touch: ["touch-x", "touch-y", "touch-pz"],
|
|
2869
|
+
"touch-x": ["touch"],
|
|
2870
|
+
"touch-y": ["touch"],
|
|
2871
|
+
"touch-pz": ["touch"]
|
|
2872
|
+
},
|
|
2873
|
+
conflictingClassGroupModifiers: {
|
|
2874
|
+
"font-size": ["leading"]
|
|
2875
|
+
}
|
|
2876
|
+
};
|
|
2877
|
+
};
|
|
2878
|
+
var mergeConfigs = (baseConfig, {
|
|
2879
|
+
cacheSize,
|
|
2880
|
+
prefix,
|
|
2881
|
+
separator,
|
|
2882
|
+
experimentalParseClassName,
|
|
2883
|
+
extend = {},
|
|
2884
|
+
override = {}
|
|
2885
|
+
}) => {
|
|
2886
|
+
overrideProperty(baseConfig, "cacheSize", cacheSize);
|
|
2887
|
+
overrideProperty(baseConfig, "prefix", prefix);
|
|
2888
|
+
overrideProperty(baseConfig, "separator", separator);
|
|
2889
|
+
overrideProperty(baseConfig, "experimentalParseClassName", experimentalParseClassName);
|
|
2890
|
+
for (const configKey in override) {
|
|
2891
|
+
overrideConfigProperties(baseConfig[configKey], override[configKey]);
|
|
2892
|
+
}
|
|
2893
|
+
for (const key in extend) {
|
|
2894
|
+
mergeConfigProperties(baseConfig[key], extend[key]);
|
|
2895
|
+
}
|
|
2896
|
+
return baseConfig;
|
|
2897
|
+
};
|
|
2898
|
+
var overrideProperty = (baseObject, overrideKey, overrideValue) => {
|
|
2899
|
+
if (overrideValue !== void 0) {
|
|
2900
|
+
baseObject[overrideKey] = overrideValue;
|
|
2901
|
+
}
|
|
2902
|
+
};
|
|
2903
|
+
var overrideConfigProperties = (baseObject, overrideObject) => {
|
|
2904
|
+
if (overrideObject) {
|
|
2905
|
+
for (const key in overrideObject) {
|
|
2906
|
+
overrideProperty(baseObject, key, overrideObject[key]);
|
|
2907
|
+
}
|
|
2908
|
+
}
|
|
2909
|
+
};
|
|
2910
|
+
var mergeConfigProperties = (baseObject, mergeObject) => {
|
|
2911
|
+
if (mergeObject) {
|
|
2912
|
+
for (const key in mergeObject) {
|
|
2913
|
+
const mergeValue = mergeObject[key];
|
|
2914
|
+
if (mergeValue !== void 0) {
|
|
2915
|
+
baseObject[key] = (baseObject[key] || []).concat(mergeValue);
|
|
2916
|
+
}
|
|
2917
|
+
}
|
|
2918
|
+
}
|
|
2919
|
+
};
|
|
2920
|
+
var extendTailwindMerge = (configExtension, ...createConfig) => typeof configExtension === "function" ? createTailwindMerge(getDefaultConfig, configExtension, ...createConfig) : createTailwindMerge(() => mergeConfigs(getDefaultConfig(), configExtension), ...createConfig);
|
|
2921
|
+
|
|
2922
|
+
// src/editor/utils/classname.ts
|
|
420
2923
|
var twMerge = extendTailwindMerge({
|
|
421
2924
|
prefix: "mly-"
|
|
422
2925
|
});
|
|
@@ -1039,13 +3542,14 @@ function Select(props) {
|
|
|
1039
3542
|
tooltip,
|
|
1040
3543
|
className,
|
|
1041
3544
|
icon: Icon,
|
|
1042
|
-
iconClassName
|
|
3545
|
+
iconClassName,
|
|
3546
|
+
placeholder
|
|
1043
3547
|
} = props;
|
|
1044
3548
|
const selectId = `mly${useId()}`;
|
|
1045
3549
|
const content = /* @__PURE__ */ jsxs5("div", { className: "mly-relative", children: [
|
|
1046
3550
|
/* @__PURE__ */ jsx10("label", { htmlFor: selectId, className: "mly-sr-only", children: label }),
|
|
1047
3551
|
Icon && /* @__PURE__ */ jsx10("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__ */ jsx10(Icon, { className: cn("mly-size-3", iconClassName) }) }),
|
|
1048
|
-
/* @__PURE__ */
|
|
3552
|
+
/* @__PURE__ */ jsxs5(
|
|
1049
3553
|
"select",
|
|
1050
3554
|
{
|
|
1051
3555
|
id: selectId,
|
|
@@ -1054,9 +3558,12 @@ function Select(props) {
|
|
|
1054
3558
|
!!Icon && "mly-pl-7",
|
|
1055
3559
|
className
|
|
1056
3560
|
),
|
|
1057
|
-
value,
|
|
3561
|
+
value: value || "",
|
|
1058
3562
|
onChange: (event) => onValueChange(event.target.value),
|
|
1059
|
-
children:
|
|
3563
|
+
children: [
|
|
3564
|
+
placeholder && /* @__PURE__ */ jsx10("option", { value: "", disabled: true, hidden: true, children: placeholder }),
|
|
3565
|
+
options.map((option) => /* @__PURE__ */ jsx10("option", { value: option.value, children: option.label }, option.value))
|
|
3566
|
+
]
|
|
1060
3567
|
}
|
|
1061
3568
|
),
|
|
1062
3569
|
/* @__PURE__ */ jsx10("span", { className: "mly-pointer-events-none mly-absolute mly-inset-y-0 mly-right-0 mly-z-10 mly-flex mly-h-full mly-w-7 mly-items-center mly-justify-center mly-text-gray-600 peer-disabled:mly-opacity-50", children: /* @__PURE__ */ jsx10(
|
|
@@ -4373,7 +6880,7 @@ function VariableIcon(props) {
|
|
|
4373
6880
|
"div",
|
|
4374
6881
|
{
|
|
4375
6882
|
className: cn(
|
|
4376
|
-
"mly-flex mly-size-5 mly-items-center mly-justify-center mly-rounded-md mly-border",
|
|
6883
|
+
"mly-flex mly-size-5 mly-items-center mly-justify-center mly-rounded-md mly-border mly-border-gray-200",
|
|
4377
6884
|
className
|
|
4378
6885
|
),
|
|
4379
6886
|
children
|
|
@@ -4394,6 +6901,10 @@ function VariableView(props) {
|
|
|
4394
6901
|
const variableRender = (_b = (_a = getNodeOptions(editor, "variable")) == null ? void 0 : _a.renderVariable) != null ? _b : DEFAULT_RENDER_VARIABLE_FUNCTION;
|
|
4395
6902
|
return variableRender;
|
|
4396
6903
|
}, [editor]);
|
|
6904
|
+
const disableInput = useMemo5(() => {
|
|
6905
|
+
var _a, _b;
|
|
6906
|
+
return (_b = (_a = getNodeOptions(editor, "variable")) == null ? void 0 : _a.disableInput) != null ? _b : false;
|
|
6907
|
+
}, [editor]);
|
|
4397
6908
|
return /* @__PURE__ */ jsx34(
|
|
4398
6909
|
NodeViewWrapper3,
|
|
4399
6910
|
{
|
|
@@ -4427,6 +6938,7 @@ function VariableView(props) {
|
|
|
4427
6938
|
/* @__PURE__ */ jsx34(
|
|
4428
6939
|
"input",
|
|
4429
6940
|
__spreadProps(__spreadValues({}, AUTOCOMPLETE_PASSWORD_MANAGERS_OFF), {
|
|
6941
|
+
disabled: disableInput,
|
|
4430
6942
|
value: id != null ? id : "",
|
|
4431
6943
|
onChange: (e) => {
|
|
4432
6944
|
updateAttributes2({
|
|
@@ -4434,7 +6946,7 @@ function VariableView(props) {
|
|
|
4434
6946
|
});
|
|
4435
6947
|
},
|
|
4436
6948
|
placeholder: "ie. name...",
|
|
4437
|
-
className: "mly-h-7 mly-w-36 mly-rounded-md mly-bg-soft-gray mly-px-2 mly-text-sm mly-text-midnight-gray focus:mly-bg-soft-gray focus:mly-outline-none"
|
|
6949
|
+
className: "mly-h-7 mly-w-36 mly-rounded-md mly-bg-soft-gray mly-px-2 mly-text-sm mly-text-midnight-gray focus:mly-bg-soft-gray focus:mly-outline-none disabled:mly-cursor-not-allowed"
|
|
4438
6950
|
})
|
|
4439
6951
|
)
|
|
4440
6952
|
] }),
|
|
@@ -4469,7 +6981,7 @@ var DefaultRenderVariable = (props) => {
|
|
|
4469
6981
|
const { variable, fallback, from } = props;
|
|
4470
6982
|
const { name, required, valid } = variable;
|
|
4471
6983
|
if (from === "button-variable") {
|
|
4472
|
-
return /* @__PURE__ */ jsxs16("div", { className: "mly-inline-grid mly-
|
|
6984
|
+
return /* @__PURE__ */ jsxs16("div", { className: "mly-inline-grid mly-max-w-xs mly-grid-cols-[12px_1fr] mly-items-center mly-gap-1.5 mly-rounded-md mly-border mly-border-[var(--button-var-border-color)] mly-px-2 mly-py-px mly-font-mono mly-text-xs", children: [
|
|
4473
6985
|
/* @__PURE__ */ jsx34(Braces2, { className: "mly-h-3 mly-w-3 mly-shrink-0 mly-stroke-[2.5]" }),
|
|
4474
6986
|
/* @__PURE__ */ jsx34("span", { className: "mly-min-w-0 mly-truncate mly-text-left", children: name })
|
|
4475
6987
|
] });
|
|
@@ -4479,7 +6991,7 @@ var DefaultRenderVariable = (props) => {
|
|
|
4479
6991
|
"div",
|
|
4480
6992
|
{
|
|
4481
6993
|
className: cn(
|
|
4482
|
-
"mly-inline-grid mly-h-7 mly-min-w-28 mly-max-w-xs mly-grid-cols-[12px_1fr] mly-items-center mly-gap-1.5 mly-rounded-md mly-border mly-px-2 mly-font-mono mly-text-sm hover:mly-bg-soft-gray",
|
|
6994
|
+
"mly-inline-grid mly-h-7 mly-min-w-28 mly-max-w-xs mly-grid-cols-[12px_1fr] mly-items-center mly-gap-1.5 mly-rounded-md mly-border mly-border-gray-200 mly-px-2 mly-font-mono mly-text-sm hover:mly-bg-soft-gray",
|
|
4483
6995
|
!valid && "mly-border-rose-400 mly-bg-rose-50 mly-text-rose-600 hover:mly-bg-rose-100"
|
|
4484
6996
|
),
|
|
4485
6997
|
children: [
|
|
@@ -4525,6 +7037,7 @@ var VariableExtension = Node4.create({
|
|
|
4525
7037
|
variables: DEFAULT_VARIABLES,
|
|
4526
7038
|
variableSuggestionsPopover: DEFAULT_VARIABLE_SUGGESTION_POPOVER,
|
|
4527
7039
|
renderVariable: DEFAULT_RENDER_VARIABLE_FUNCTION,
|
|
7040
|
+
disableInput: false,
|
|
4528
7041
|
renderLabel(props) {
|
|
4529
7042
|
var _a;
|
|
4530
7043
|
const { node } = props;
|
|
@@ -6701,18 +9214,18 @@ function ButtonView(props) {
|
|
|
6701
9214
|
),
|
|
6702
9215
|
tabIndex: -1,
|
|
6703
9216
|
style: {
|
|
6704
|
-
backgroundColor: variant === "filled" ? buttonColor : "transparent",
|
|
6705
|
-
color: textColor,
|
|
9217
|
+
backgroundColor: variant === "filled" ? buttonColor || "var(--mly-button-background-color)" : "transparent",
|
|
9218
|
+
color: textColor || "var(--mly-button-text-color)",
|
|
6706
9219
|
borderWidth: 2,
|
|
6707
9220
|
borderStyle: "solid",
|
|
6708
|
-
borderColor: buttonColor,
|
|
9221
|
+
borderColor: buttonColor || "var(--mly-button-background-color)",
|
|
6709
9222
|
// decrease the border color opacity to 80%
|
|
6710
9223
|
// so that it's not too prominent
|
|
6711
|
-
"--button-var-border-color": `${textColor}80
|
|
6712
|
-
paddingTop,
|
|
6713
|
-
paddingRight,
|
|
6714
|
-
paddingBottom,
|
|
6715
|
-
paddingLeft
|
|
9224
|
+
"--button-var-border-color": textColor ? `${textColor}80` : "color-mix(in srgb, var(--mly-button-text-color) 80%, transparent)",
|
|
9225
|
+
paddingTop: paddingTop || "var(--mly-button-padding-top)",
|
|
9226
|
+
paddingRight: paddingRight || "var(--mly-button-padding-right)",
|
|
9227
|
+
paddingBottom: paddingBottom || "var(--mly-button-padding-bottom)",
|
|
9228
|
+
paddingLeft: paddingLeft || "var(--mly-button-padding-left)"
|
|
6716
9229
|
},
|
|
6717
9230
|
onClick: (e) => {
|
|
6718
9231
|
e.preventDefault();
|
|
@@ -6811,7 +9324,8 @@ function ButtonView(props) {
|
|
|
6811
9324
|
paddingLeft: paddingX
|
|
6812
9325
|
});
|
|
6813
9326
|
},
|
|
6814
|
-
tooltip: "Size"
|
|
9327
|
+
tooltip: "Size",
|
|
9328
|
+
placeholder: "Size"
|
|
6815
9329
|
}
|
|
6816
9330
|
)
|
|
6817
9331
|
] }),
|
|
@@ -6850,7 +9364,7 @@ function ButtonView(props) {
|
|
|
6850
9364
|
BackgroundColorPickerPopup,
|
|
6851
9365
|
{
|
|
6852
9366
|
variant,
|
|
6853
|
-
color: buttonColor,
|
|
9367
|
+
color: buttonColor || "transparent",
|
|
6854
9368
|
onChange: (color) => {
|
|
6855
9369
|
updateAttributes2({
|
|
6856
9370
|
buttonColor: color
|
|
@@ -6861,7 +9375,7 @@ function ButtonView(props) {
|
|
|
6861
9375
|
/* @__PURE__ */ jsx50(
|
|
6862
9376
|
TextColorPickerPopup,
|
|
6863
9377
|
{
|
|
6864
|
-
color: textColor,
|
|
9378
|
+
color: textColor || "transparent",
|
|
6865
9379
|
onChange: (color) => {
|
|
6866
9380
|
updateAttributes2({
|
|
6867
9381
|
textColor: color
|
|
@@ -6949,12 +9463,12 @@ function TextColorPickerPopup(props) {
|
|
|
6949
9463
|
var DEFAULT_BUTTON_ALIGNMENT = "left";
|
|
6950
9464
|
var DEFAULT_BUTTON_VARIANT = "filled";
|
|
6951
9465
|
var DEFAULT_BUTTON_BORDER_RADIUS = "smooth";
|
|
6952
|
-
var DEFAULT_BUTTON_BACKGROUND_COLOR =
|
|
6953
|
-
var DEFAULT_BUTTON_TEXT_COLOR =
|
|
6954
|
-
var DEFAULT_BUTTON_PADDING_TOP =
|
|
6955
|
-
var DEFAULT_BUTTON_PADDING_RIGHT =
|
|
6956
|
-
var DEFAULT_BUTTON_PADDING_BOTTOM =
|
|
6957
|
-
var DEFAULT_BUTTON_PADDING_LEFT =
|
|
9466
|
+
var DEFAULT_BUTTON_BACKGROUND_COLOR = null;
|
|
9467
|
+
var DEFAULT_BUTTON_TEXT_COLOR = null;
|
|
9468
|
+
var DEFAULT_BUTTON_PADDING_TOP = null;
|
|
9469
|
+
var DEFAULT_BUTTON_PADDING_RIGHT = null;
|
|
9470
|
+
var DEFAULT_BUTTON_PADDING_BOTTOM = null;
|
|
9471
|
+
var DEFAULT_BUTTON_PADDING_LEFT = null;
|
|
6958
9472
|
var allowedButtonVariant = ["filled", "outline"];
|
|
6959
9473
|
var allowedButtonBorderRadius = ["sharp", "smooth", "round"];
|
|
6960
9474
|
var ButtonExtension = Node9.create({
|
|
@@ -7050,28 +9564,6 @@ var ButtonExtension = Node9.create({
|
|
|
7050
9564
|
};
|
|
7051
9565
|
}
|
|
7052
9566
|
},
|
|
7053
|
-
buttonColor: {
|
|
7054
|
-
default: DEFAULT_BUTTON_BACKGROUND_COLOR,
|
|
7055
|
-
parseHTML: (element) => {
|
|
7056
|
-
return element.getAttribute("data-button-color") || DEFAULT_BUTTON_BACKGROUND_COLOR;
|
|
7057
|
-
},
|
|
7058
|
-
renderHTML: (attributes) => {
|
|
7059
|
-
return {
|
|
7060
|
-
"data-button-color": attributes.buttonColor
|
|
7061
|
-
};
|
|
7062
|
-
}
|
|
7063
|
-
},
|
|
7064
|
-
textColor: {
|
|
7065
|
-
default: DEFAULT_BUTTON_TEXT_COLOR,
|
|
7066
|
-
parseHTML: (element) => {
|
|
7067
|
-
return element.getAttribute("data-text-color") || DEFAULT_BUTTON_TEXT_COLOR;
|
|
7068
|
-
},
|
|
7069
|
-
renderHTML: (attributes) => {
|
|
7070
|
-
return {
|
|
7071
|
-
"data-text-color": attributes.textColor
|
|
7072
|
-
};
|
|
7073
|
-
}
|
|
7074
|
-
},
|
|
7075
9567
|
showIfKey: {
|
|
7076
9568
|
default: DEFAULT_SECTION_SHOW_IF_KEY,
|
|
7077
9569
|
parseHTML: (element) => {
|
|
@@ -7086,62 +9578,12 @@ var ButtonExtension = Node9.create({
|
|
|
7086
9578
|
};
|
|
7087
9579
|
}
|
|
7088
9580
|
},
|
|
7089
|
-
|
|
7090
|
-
|
|
7091
|
-
|
|
7092
|
-
|
|
7093
|
-
|
|
7094
|
-
|
|
7095
|
-
);
|
|
7096
|
-
},
|
|
7097
|
-
renderHTML: (attributes) => {
|
|
7098
|
-
return {
|
|
7099
|
-
"data-padding-top": attributes.paddingTop
|
|
7100
|
-
};
|
|
7101
|
-
}
|
|
7102
|
-
},
|
|
7103
|
-
paddingRight: {
|
|
7104
|
-
default: DEFAULT_BUTTON_PADDING_RIGHT,
|
|
7105
|
-
parseHTML: (element) => {
|
|
7106
|
-
return parseInt(
|
|
7107
|
-
element.getAttribute("data-padding-right") || DEFAULT_BUTTON_PADDING_RIGHT.toString(),
|
|
7108
|
-
10
|
|
7109
|
-
);
|
|
7110
|
-
},
|
|
7111
|
-
renderHTML: (attributes) => {
|
|
7112
|
-
return {
|
|
7113
|
-
"data-padding-right": attributes.paddingRight
|
|
7114
|
-
};
|
|
7115
|
-
}
|
|
7116
|
-
},
|
|
7117
|
-
paddingBottom: {
|
|
7118
|
-
default: DEFAULT_BUTTON_PADDING_BOTTOM,
|
|
7119
|
-
parseHTML: (element) => {
|
|
7120
|
-
return parseInt(
|
|
7121
|
-
element.getAttribute("data-padding-bottom") || DEFAULT_BUTTON_PADDING_BOTTOM.toString(),
|
|
7122
|
-
10
|
|
7123
|
-
);
|
|
7124
|
-
},
|
|
7125
|
-
renderHTML: (attributes) => {
|
|
7126
|
-
return {
|
|
7127
|
-
"data-padding-bottom": attributes.paddingBottom
|
|
7128
|
-
};
|
|
7129
|
-
}
|
|
7130
|
-
},
|
|
7131
|
-
paddingLeft: {
|
|
7132
|
-
default: DEFAULT_BUTTON_PADDING_LEFT,
|
|
7133
|
-
parseHTML: (element) => {
|
|
7134
|
-
return parseInt(
|
|
7135
|
-
element.getAttribute("data-padding-left") || DEFAULT_BUTTON_PADDING_LEFT.toString(),
|
|
7136
|
-
10
|
|
7137
|
-
);
|
|
7138
|
-
},
|
|
7139
|
-
renderHTML: (attributes) => {
|
|
7140
|
-
return {
|
|
7141
|
-
"data-padding-left": attributes.paddingLeft
|
|
7142
|
-
};
|
|
7143
|
-
}
|
|
7144
|
-
}
|
|
9581
|
+
buttonColor: DEFAULT_BUTTON_BACKGROUND_COLOR,
|
|
9582
|
+
textColor: DEFAULT_BUTTON_TEXT_COLOR,
|
|
9583
|
+
paddingTop: DEFAULT_BUTTON_PADDING_TOP,
|
|
9584
|
+
paddingRight: DEFAULT_BUTTON_PADDING_RIGHT,
|
|
9585
|
+
paddingBottom: DEFAULT_BUTTON_PADDING_BOTTOM,
|
|
9586
|
+
paddingLeft: DEFAULT_BUTTON_PADDING_LEFT
|
|
7145
9587
|
};
|
|
7146
9588
|
},
|
|
7147
9589
|
parseHTML() {
|