@tenphi/eslint-plugin-tasty 1.0.5 → 1.1.0
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/README.md +141 -4
- package/dist/config.js +8 -2
- package/dist/config.js.map +1 -1
- package/dist/configs.js +1 -0
- package/dist/configs.js.map +1 -1
- package/dist/constants.js +294 -38
- package/dist/constants.js.map +1 -1
- package/dist/context.js +75 -25
- package/dist/context.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/property-expectations.js +71 -2
- package/dist/property-expectations.js.map +1 -1
- package/dist/rules/consistent-token-usage.js +12 -1
- package/dist/rules/consistent-token-usage.js.map +1 -1
- package/dist/rules/no-own-at-root.js +1 -9
- package/dist/rules/no-own-at-root.js.map +1 -1
- package/dist/rules/no-raw-transition-duration.js +141 -0
- package/dist/rules/no-raw-transition-duration.js.map +1 -0
- package/dist/rules/no-unknown-state-alias.js +2 -2
- package/dist/rules/no-unknown-state-alias.js.map +1 -1
- package/dist/rules/valid-boolean-property.js +19 -8
- package/dist/rules/valid-boolean-property.js.map +1 -1
- package/dist/rules/valid-directional-modifier.js +16 -1
- package/dist/rules/valid-directional-modifier.js.map +1 -1
- package/dist/rules/valid-state-key.js +4 -13
- package/dist/rules/valid-state-key.js.map +1 -1
- package/dist/rules/valid-sub-element.js +5 -4
- package/dist/rules/valid-sub-element.js.map +1 -1
- package/dist/types.d.ts +14 -1
- package/dist/utils.js +8 -21
- package/dist/utils.js.map +1 -1
- package/package.json +5 -3
package/dist/constants.js
CHANGED
|
@@ -1,4 +1,44 @@
|
|
|
1
1
|
//#region src/constants.ts
|
|
2
|
+
/** Logical edge modifiers, the `start`/`end` counterpart of {@link BOX_SIDES}. */
|
|
3
|
+
const LOGICAL_EDGES = ["start", "end"];
|
|
4
|
+
/** Enhanced logical sizes. `min`/`max` variants are read by the same handler. */
|
|
5
|
+
const LOGICAL_SIZE_STYLES = ["blockSize", "inlineSize"];
|
|
6
|
+
const LOGICAL_SIZE_CONSTRAINT_STYLES = [
|
|
7
|
+
"minBlockSize",
|
|
8
|
+
"maxBlockSize",
|
|
9
|
+
"minInlineSize",
|
|
10
|
+
"maxInlineSize"
|
|
11
|
+
];
|
|
12
|
+
/**
|
|
13
|
+
* Enhanced logical spacing and inset axes — the categories that take a value
|
|
14
|
+
* per logical edge, so they share the `start`/`end` modifier vocabulary and the
|
|
15
|
+
* one-value-per-directional-group rule.
|
|
16
|
+
*/
|
|
17
|
+
const LOGICAL_SPACING_STYLES = [
|
|
18
|
+
"blockPadding",
|
|
19
|
+
"inlinePadding",
|
|
20
|
+
"blockMargin",
|
|
21
|
+
"inlineMargin",
|
|
22
|
+
"blockInset",
|
|
23
|
+
"inlineInset",
|
|
24
|
+
"blockScrollMargin",
|
|
25
|
+
"inlineScrollMargin",
|
|
26
|
+
"blockScrollPadding",
|
|
27
|
+
"inlineScrollPadding"
|
|
28
|
+
];
|
|
29
|
+
/**
|
|
30
|
+
* Enhanced logical borders. Kept apart from {@link LOGICAL_SPACING_STYLES}
|
|
31
|
+
* because a border group legitimately carries width + style + colour, exactly
|
|
32
|
+
* as physical `border` does, so it is not subject to the single-value rule.
|
|
33
|
+
*/
|
|
34
|
+
const LOGICAL_BORDER_STYLES = ["blockBorder", "inlineBorder"];
|
|
35
|
+
/** Every enhanced logical style, in the order tasty's own lists declare them. */
|
|
36
|
+
const LOGICAL_STYLES = [
|
|
37
|
+
...LOGICAL_SIZE_STYLES,
|
|
38
|
+
...LOGICAL_SIZE_CONSTRAINT_STYLES,
|
|
39
|
+
...LOGICAL_SPACING_STYLES,
|
|
40
|
+
...LOGICAL_BORDER_STYLES
|
|
41
|
+
];
|
|
2
42
|
/**
|
|
3
43
|
* Built-in tasty style properties that are always valid as style keys.
|
|
4
44
|
*/
|
|
@@ -22,8 +62,6 @@ const KNOWN_TASTY_PROPERTIES = new Set([
|
|
|
22
62
|
"inset",
|
|
23
63
|
"position",
|
|
24
64
|
"padding",
|
|
25
|
-
"paddingInline",
|
|
26
|
-
"paddingBlock",
|
|
27
65
|
"overflow",
|
|
28
66
|
"scrollbar",
|
|
29
67
|
"textAlign",
|
|
@@ -45,6 +83,7 @@ const KNOWN_TASTY_PROPERTIES = new Set([
|
|
|
45
83
|
"flexShrink",
|
|
46
84
|
"flex",
|
|
47
85
|
"flow",
|
|
86
|
+
"place",
|
|
48
87
|
"placeItems",
|
|
49
88
|
"placeContent",
|
|
50
89
|
"alignItems",
|
|
@@ -103,7 +142,10 @@ const KNOWN_TASTY_PROPERTIES = new Set([
|
|
|
103
142
|
"scrollSnapAlign",
|
|
104
143
|
"caretColor",
|
|
105
144
|
"accentColor",
|
|
106
|
-
"colorScheme"
|
|
145
|
+
"colorScheme",
|
|
146
|
+
"scrollMargin",
|
|
147
|
+
"scrollPadding",
|
|
148
|
+
...LOGICAL_STYLES
|
|
107
149
|
]);
|
|
108
150
|
/**
|
|
109
151
|
* Special top-level keys that are valid but not regular style properties.
|
|
@@ -1039,6 +1081,15 @@ const CSS_UNITS = new Set([
|
|
|
1039
1081
|
]);
|
|
1040
1082
|
/**
|
|
1041
1083
|
* Properties that accept `true` as a value (means "use default").
|
|
1084
|
+
*
|
|
1085
|
+
* `fill` is documented as accepting `true` but is deliberately absent: as of
|
|
1086
|
+
* tasty 3.8 the handler passes the boolean straight through, so `fill: true`
|
|
1087
|
+
* emits `background-color: true` — a declaration the browser drops, leaving no
|
|
1088
|
+
* background at all. Reporting it is the useful answer while that is what runs.
|
|
1089
|
+
* `constants.round-trip.test.ts` pins both halves of that: no property in this
|
|
1090
|
+
* set may swallow `true`, and `fill` still does — so whichever way tasty
|
|
1091
|
+
* resolves it (docs or implementation), a test says so rather than the plugin
|
|
1092
|
+
* quietly disagreeing with the runtime.
|
|
1042
1093
|
*/
|
|
1043
1094
|
const BOOLEAN_TRUE_PROPERTIES = new Set([
|
|
1044
1095
|
"border",
|
|
@@ -1046,7 +1097,6 @@ const BOOLEAN_TRUE_PROPERTIES = new Set([
|
|
|
1046
1097
|
"padding",
|
|
1047
1098
|
"margin",
|
|
1048
1099
|
"gap",
|
|
1049
|
-
"fill",
|
|
1050
1100
|
"color",
|
|
1051
1101
|
"shadow",
|
|
1052
1102
|
"outline",
|
|
@@ -1057,7 +1107,12 @@ const BOOLEAN_TRUE_PROPERTIES = new Set([
|
|
|
1057
1107
|
"hide",
|
|
1058
1108
|
"preset",
|
|
1059
1109
|
"font",
|
|
1060
|
-
"scrollbar"
|
|
1110
|
+
"scrollbar",
|
|
1111
|
+
"scrollMargin",
|
|
1112
|
+
"scrollPadding",
|
|
1113
|
+
...LOGICAL_SIZE_STYLES,
|
|
1114
|
+
...LOGICAL_SPACING_STYLES,
|
|
1115
|
+
...LOGICAL_BORDER_STYLES
|
|
1061
1116
|
]);
|
|
1062
1117
|
/**
|
|
1063
1118
|
* Directional modifiers and which properties accept them.
|
|
@@ -1103,13 +1158,20 @@ const DIRECTIONAL_MODIFIERS = {
|
|
|
1103
1158
|
"bottom",
|
|
1104
1159
|
"left"
|
|
1105
1160
|
]),
|
|
1161
|
+
scrollPadding: new Set([
|
|
1162
|
+
"top",
|
|
1163
|
+
"right",
|
|
1164
|
+
"bottom",
|
|
1165
|
+
"left"
|
|
1166
|
+
]),
|
|
1106
1167
|
inset: new Set([
|
|
1107
1168
|
"top",
|
|
1108
1169
|
"right",
|
|
1109
1170
|
"bottom",
|
|
1110
1171
|
"left",
|
|
1111
1172
|
"dock"
|
|
1112
|
-
])
|
|
1173
|
+
]),
|
|
1174
|
+
...Object.fromEntries([...LOGICAL_SPACING_STYLES, ...LOGICAL_BORDER_STYLES].map((style) => [style, new Set(LOGICAL_EDGES)]))
|
|
1113
1175
|
};
|
|
1114
1176
|
/**
|
|
1115
1177
|
* Properties where a group naming directions carries exactly **one** value.
|
|
@@ -1129,7 +1191,9 @@ const SINGLE_VALUE_DIRECTIONAL_PROPERTIES = new Set([
|
|
|
1129
1191
|
"margin",
|
|
1130
1192
|
"inset",
|
|
1131
1193
|
"scrollMargin",
|
|
1132
|
-
"
|
|
1194
|
+
"scrollPadding",
|
|
1195
|
+
"fade",
|
|
1196
|
+
...LOGICAL_SPACING_STYLES
|
|
1133
1197
|
]);
|
|
1134
1198
|
/**
|
|
1135
1199
|
* Position names a 4-value box maps onto, in source order.
|
|
@@ -1436,6 +1500,200 @@ const SHORTHAND_MAPPING = {
|
|
|
1436
1500
|
lineClamp: {
|
|
1437
1501
|
property: "textOverflow",
|
|
1438
1502
|
hint: "textOverflow: 'ellipsis / {lines}'"
|
|
1503
|
+
},
|
|
1504
|
+
paddingBlock: {
|
|
1505
|
+
property: "blockPadding",
|
|
1506
|
+
hint: "blockPadding: '...'",
|
|
1507
|
+
safeFix: true
|
|
1508
|
+
},
|
|
1509
|
+
paddingBlockStart: {
|
|
1510
|
+
property: "blockPadding",
|
|
1511
|
+
hint: "blockPadding: '... start'"
|
|
1512
|
+
},
|
|
1513
|
+
paddingBlockEnd: {
|
|
1514
|
+
property: "blockPadding",
|
|
1515
|
+
hint: "blockPadding: '... end'"
|
|
1516
|
+
},
|
|
1517
|
+
paddingInline: {
|
|
1518
|
+
property: "inlinePadding",
|
|
1519
|
+
hint: "inlinePadding: '...'",
|
|
1520
|
+
safeFix: true
|
|
1521
|
+
},
|
|
1522
|
+
paddingInlineStart: {
|
|
1523
|
+
property: "inlinePadding",
|
|
1524
|
+
hint: "inlinePadding: '... start'"
|
|
1525
|
+
},
|
|
1526
|
+
paddingInlineEnd: {
|
|
1527
|
+
property: "inlinePadding",
|
|
1528
|
+
hint: "inlinePadding: '... end'"
|
|
1529
|
+
},
|
|
1530
|
+
marginBlock: {
|
|
1531
|
+
property: "blockMargin",
|
|
1532
|
+
hint: "blockMargin: '...'",
|
|
1533
|
+
safeFix: true
|
|
1534
|
+
},
|
|
1535
|
+
marginBlockStart: {
|
|
1536
|
+
property: "blockMargin",
|
|
1537
|
+
hint: "blockMargin: '... start'"
|
|
1538
|
+
},
|
|
1539
|
+
marginBlockEnd: {
|
|
1540
|
+
property: "blockMargin",
|
|
1541
|
+
hint: "blockMargin: '... end'"
|
|
1542
|
+
},
|
|
1543
|
+
marginInline: {
|
|
1544
|
+
property: "inlineMargin",
|
|
1545
|
+
hint: "inlineMargin: '...'",
|
|
1546
|
+
safeFix: true
|
|
1547
|
+
},
|
|
1548
|
+
marginInlineStart: {
|
|
1549
|
+
property: "inlineMargin",
|
|
1550
|
+
hint: "inlineMargin: '... start'"
|
|
1551
|
+
},
|
|
1552
|
+
marginInlineEnd: {
|
|
1553
|
+
property: "inlineMargin",
|
|
1554
|
+
hint: "inlineMargin: '... end'"
|
|
1555
|
+
},
|
|
1556
|
+
insetBlock: {
|
|
1557
|
+
property: "blockInset",
|
|
1558
|
+
hint: "blockInset: '...'",
|
|
1559
|
+
safeFix: true
|
|
1560
|
+
},
|
|
1561
|
+
insetBlockStart: {
|
|
1562
|
+
property: "blockInset",
|
|
1563
|
+
hint: "blockInset: '... start'"
|
|
1564
|
+
},
|
|
1565
|
+
insetBlockEnd: {
|
|
1566
|
+
property: "blockInset",
|
|
1567
|
+
hint: "blockInset: '... end'"
|
|
1568
|
+
},
|
|
1569
|
+
insetInline: {
|
|
1570
|
+
property: "inlineInset",
|
|
1571
|
+
hint: "inlineInset: '...'",
|
|
1572
|
+
safeFix: true
|
|
1573
|
+
},
|
|
1574
|
+
insetInlineStart: {
|
|
1575
|
+
property: "inlineInset",
|
|
1576
|
+
hint: "inlineInset: '... start'"
|
|
1577
|
+
},
|
|
1578
|
+
insetInlineEnd: {
|
|
1579
|
+
property: "inlineInset",
|
|
1580
|
+
hint: "inlineInset: '... end'"
|
|
1581
|
+
},
|
|
1582
|
+
scrollMarginBlock: {
|
|
1583
|
+
property: "blockScrollMargin",
|
|
1584
|
+
hint: "blockScrollMargin: '...'",
|
|
1585
|
+
safeFix: true
|
|
1586
|
+
},
|
|
1587
|
+
scrollMarginBlockStart: {
|
|
1588
|
+
property: "blockScrollMargin",
|
|
1589
|
+
hint: "blockScrollMargin: '... start'"
|
|
1590
|
+
},
|
|
1591
|
+
scrollMarginBlockEnd: {
|
|
1592
|
+
property: "blockScrollMargin",
|
|
1593
|
+
hint: "blockScrollMargin: '... end'"
|
|
1594
|
+
},
|
|
1595
|
+
scrollMarginInline: {
|
|
1596
|
+
property: "inlineScrollMargin",
|
|
1597
|
+
hint: "inlineScrollMargin: '...'",
|
|
1598
|
+
safeFix: true
|
|
1599
|
+
},
|
|
1600
|
+
scrollMarginInlineStart: {
|
|
1601
|
+
property: "inlineScrollMargin",
|
|
1602
|
+
hint: "inlineScrollMargin: '... start'"
|
|
1603
|
+
},
|
|
1604
|
+
scrollMarginInlineEnd: {
|
|
1605
|
+
property: "inlineScrollMargin",
|
|
1606
|
+
hint: "inlineScrollMargin: '... end'"
|
|
1607
|
+
},
|
|
1608
|
+
scrollPaddingBlock: {
|
|
1609
|
+
property: "blockScrollPadding",
|
|
1610
|
+
hint: "blockScrollPadding: '...'",
|
|
1611
|
+
safeFix: true
|
|
1612
|
+
},
|
|
1613
|
+
scrollPaddingBlockStart: {
|
|
1614
|
+
property: "blockScrollPadding",
|
|
1615
|
+
hint: "blockScrollPadding: '... start'"
|
|
1616
|
+
},
|
|
1617
|
+
scrollPaddingBlockEnd: {
|
|
1618
|
+
property: "blockScrollPadding",
|
|
1619
|
+
hint: "blockScrollPadding: '... end'"
|
|
1620
|
+
},
|
|
1621
|
+
scrollPaddingInline: {
|
|
1622
|
+
property: "inlineScrollPadding",
|
|
1623
|
+
hint: "inlineScrollPadding: '...'",
|
|
1624
|
+
safeFix: true
|
|
1625
|
+
},
|
|
1626
|
+
scrollPaddingInlineStart: {
|
|
1627
|
+
property: "inlineScrollPadding",
|
|
1628
|
+
hint: "inlineScrollPadding: '... start'"
|
|
1629
|
+
},
|
|
1630
|
+
scrollPaddingInlineEnd: {
|
|
1631
|
+
property: "inlineScrollPadding",
|
|
1632
|
+
hint: "inlineScrollPadding: '... end'"
|
|
1633
|
+
},
|
|
1634
|
+
borderBlock: {
|
|
1635
|
+
property: "blockBorder",
|
|
1636
|
+
hint: "blockBorder: '...'"
|
|
1637
|
+
},
|
|
1638
|
+
borderBlockColor: {
|
|
1639
|
+
property: "blockBorder",
|
|
1640
|
+
hint: "blockBorder: '...'"
|
|
1641
|
+
},
|
|
1642
|
+
borderBlockWidth: {
|
|
1643
|
+
property: "blockBorder",
|
|
1644
|
+
hint: "blockBorder: '...'"
|
|
1645
|
+
},
|
|
1646
|
+
borderBlockStyle: {
|
|
1647
|
+
property: "blockBorder",
|
|
1648
|
+
hint: "blockBorder: '...'"
|
|
1649
|
+
},
|
|
1650
|
+
borderBlockStart: {
|
|
1651
|
+
property: "blockBorder",
|
|
1652
|
+
hint: "blockBorder: '... start'"
|
|
1653
|
+
},
|
|
1654
|
+
borderBlockEnd: {
|
|
1655
|
+
property: "blockBorder",
|
|
1656
|
+
hint: "blockBorder: '... end'"
|
|
1657
|
+
},
|
|
1658
|
+
borderInline: {
|
|
1659
|
+
property: "inlineBorder",
|
|
1660
|
+
hint: "inlineBorder: '...'"
|
|
1661
|
+
},
|
|
1662
|
+
borderInlineColor: {
|
|
1663
|
+
property: "inlineBorder",
|
|
1664
|
+
hint: "inlineBorder: '...'"
|
|
1665
|
+
},
|
|
1666
|
+
borderInlineWidth: {
|
|
1667
|
+
property: "inlineBorder",
|
|
1668
|
+
hint: "inlineBorder: '...'"
|
|
1669
|
+
},
|
|
1670
|
+
borderInlineStyle: {
|
|
1671
|
+
property: "inlineBorder",
|
|
1672
|
+
hint: "inlineBorder: '...'"
|
|
1673
|
+
},
|
|
1674
|
+
borderInlineStart: {
|
|
1675
|
+
property: "inlineBorder",
|
|
1676
|
+
hint: "inlineBorder: '... start'"
|
|
1677
|
+
},
|
|
1678
|
+
borderInlineEnd: {
|
|
1679
|
+
property: "inlineBorder",
|
|
1680
|
+
hint: "inlineBorder: '... end'"
|
|
1681
|
+
},
|
|
1682
|
+
minBlockSize: {
|
|
1683
|
+
property: "blockSize",
|
|
1684
|
+
hint: "blockSize: 'min ...'"
|
|
1685
|
+
},
|
|
1686
|
+
maxBlockSize: {
|
|
1687
|
+
property: "blockSize",
|
|
1688
|
+
hint: "blockSize: 'max ...'"
|
|
1689
|
+
},
|
|
1690
|
+
minInlineSize: {
|
|
1691
|
+
property: "inlineSize",
|
|
1692
|
+
hint: "inlineSize: 'min ...'"
|
|
1693
|
+
},
|
|
1694
|
+
maxInlineSize: {
|
|
1695
|
+
property: "inlineSize",
|
|
1696
|
+
hint: "inlineSize: 'max ...'"
|
|
1439
1697
|
}
|
|
1440
1698
|
};
|
|
1441
1699
|
/**
|
|
@@ -1746,6 +2004,8 @@ const COLOR_BEARING_PROPERTIES = new Set([
|
|
|
1746
2004
|
"accentColor",
|
|
1747
2005
|
"shadow",
|
|
1748
2006
|
"border",
|
|
2007
|
+
"blockBorder",
|
|
2008
|
+
"inlineBorder",
|
|
1749
2009
|
"outline",
|
|
1750
2010
|
"fade",
|
|
1751
2011
|
"background",
|
|
@@ -1755,6 +2015,12 @@ const COLOR_BEARING_PROPERTIES = new Set([
|
|
|
1755
2015
|
"borderRightColor",
|
|
1756
2016
|
"borderBottomColor",
|
|
1757
2017
|
"borderLeftColor",
|
|
2018
|
+
"borderBlockColor",
|
|
2019
|
+
"borderBlockStartColor",
|
|
2020
|
+
"borderBlockEndColor",
|
|
2021
|
+
"borderInlineColor",
|
|
2022
|
+
"borderInlineStartColor",
|
|
2023
|
+
"borderInlineEndColor",
|
|
1758
2024
|
"boxShadow",
|
|
1759
2025
|
"textShadow",
|
|
1760
2026
|
"textDecorationColor",
|
|
@@ -1769,41 +2035,30 @@ const COLOR_BEARING_PROPERTIES = new Set([
|
|
|
1769
2035
|
/**
|
|
1770
2036
|
* Properties where tasty does NOT expand a `$name` custom-property reference.
|
|
1771
2037
|
*
|
|
1772
|
-
*
|
|
1773
|
-
*
|
|
1774
|
-
*
|
|
1775
|
-
*
|
|
2038
|
+
* **Empty since tasty 3.0.2**, which taught the pass-through style handlers to
|
|
2039
|
+
* substitute `$name` refs too (tasty#264). Before that, `fontFamily:
|
|
2040
|
+
* '$font-sans'` emitted a literal `font-family: $font-sans` — an invalid
|
|
2041
|
+
* declaration the browser drops — so `prefer-custom-property-syntax` had to
|
|
2042
|
+
* suppress the rewrite for two dozen properties. It no longer does, which means
|
|
2043
|
+
* those rewrites are now offered where they were previously (and, since 3.0.2,
|
|
2044
|
+
* needlessly) held back.
|
|
1776
2045
|
*
|
|
1777
|
-
*
|
|
1778
|
-
*
|
|
1779
|
-
*
|
|
2046
|
+
* The set is kept rather than deleted: it is the seam the round-trip guard
|
|
2047
|
+
* writes to, so a future handler that regains pass-through behaviour surfaces
|
|
2048
|
+
* as a failing test instead of a silently broken autofix.
|
|
2049
|
+
*
|
|
2050
|
+
* An empty list here would let `--fix` delete a declaration on 3.0.0/3.0.1,
|
|
2051
|
+
* which the `@tenphi/tasty` peer floor rules out — that floor is 3.8.0, set by
|
|
2052
|
+
* the logical renames in {@link SHORTHAND_MAPPING} rather than by this list.
|
|
2053
|
+
*
|
|
2054
|
+
* Note that {@link PROPERTIES_WITHOUT_COLOR_TOKEN_EXPANSION} is *not* empty:
|
|
2055
|
+
* `#token` expansion is still property-scoped (`fontSize: '#accent'` is
|
|
2056
|
+
* meaningless and passes through). The two sets are genuinely different.
|
|
1780
2057
|
*
|
|
1781
2058
|
* Derived from the runtime, not by hand — `constants.round-trip.test.ts` rebuilds
|
|
1782
2059
|
* both sets against the installed `@tenphi/tasty` and fails if either drifts.
|
|
1783
2060
|
*/
|
|
1784
|
-
const PROPERTIES_WITHOUT_CUSTOM_PROPERTY_EXPANSION = new Set([
|
|
1785
|
-
"align",
|
|
1786
|
-
"alignContent",
|
|
1787
|
-
"alignItems",
|
|
1788
|
-
"backgroundAttachment",
|
|
1789
|
-
"backgroundClip",
|
|
1790
|
-
"backgroundColor",
|
|
1791
|
-
"backgroundOrigin",
|
|
1792
|
-
"backgroundRepeat",
|
|
1793
|
-
"color",
|
|
1794
|
-
"display",
|
|
1795
|
-
"fill",
|
|
1796
|
-
"font",
|
|
1797
|
-
"fontFamily",
|
|
1798
|
-
"justify",
|
|
1799
|
-
"justifyContent",
|
|
1800
|
-
"justifyItems",
|
|
1801
|
-
"overflow",
|
|
1802
|
-
"placeContent",
|
|
1803
|
-
"placeItems",
|
|
1804
|
-
"textTransform",
|
|
1805
|
-
"whiteSpace"
|
|
1806
|
-
]);
|
|
2061
|
+
const PROPERTIES_WITHOUT_CUSTOM_PROPERTY_EXPANSION = /* @__PURE__ */ new Set([]);
|
|
1807
2062
|
/**
|
|
1808
2063
|
* Properties where tasty does NOT expand a `#name` colour token.
|
|
1809
2064
|
*
|
|
@@ -1834,6 +2089,7 @@ const PROPERTIES_WITHOUT_COLOR_TOKEN_EXPANSION = new Set([
|
|
|
1834
2089
|
"lineHeight",
|
|
1835
2090
|
"outlineOffset",
|
|
1836
2091
|
"overflow",
|
|
2092
|
+
"place",
|
|
1837
2093
|
"placeContent",
|
|
1838
2094
|
"placeItems",
|
|
1839
2095
|
"textTransform",
|
|
@@ -1841,5 +2097,5 @@ const PROPERTIES_WITHOUT_COLOR_TOKEN_EXPANSION = new Set([
|
|
|
1841
2097
|
]);
|
|
1842
2098
|
|
|
1843
2099
|
//#endregion
|
|
1844
|
-
export { BOOLEAN_TRUE_PROPERTIES, BUILT_IN_STATE_PREFIXES, BUILT_IN_UNITS, COLOR_BEARING_PROPERTIES, CSS_UNITS, DEFAULT_IMPORT_SOURCES, DIRECTIONAL_BOX, DIRECTIONAL_MODIFIERS, DOCK_PROPERTIES, KNOWN_CSS_PROPERTIES, KNOWN_PSEUDO_CLASSES, KNOWN_TASTY_PROPERTIES, LONGHAND_MAPPING, NAMED_CSS_COLORS, PRESET_MODIFIERS, PROPERTIES_WITHOUT_COLOR_TOKEN_EXPANSION, PROPERTIES_WITHOUT_CUSTOM_PROPERTY_EXPANSION, RADIUS_SHAPES, RENAMED_SPECIAL_STYLE_KEYS, SEMANTIC_TRANSITIONS, SHORTHAND_MAPPING, SINGLE_VALUE_DIRECTIONAL_PROPERTIES, SPECIAL_STYLE_KEYS, TRANSITION_SEMANTIC_MAPPING };
|
|
2100
|
+
export { BOOLEAN_TRUE_PROPERTIES, BUILT_IN_STATE_PREFIXES, BUILT_IN_UNITS, COLOR_BEARING_PROPERTIES, CSS_UNITS, DEFAULT_IMPORT_SOURCES, DIRECTIONAL_BOX, DIRECTIONAL_MODIFIERS, DOCK_PROPERTIES, KNOWN_CSS_PROPERTIES, KNOWN_PSEUDO_CLASSES, KNOWN_TASTY_PROPERTIES, LOGICAL_BORDER_STYLES, LONGHAND_MAPPING, NAMED_CSS_COLORS, PRESET_MODIFIERS, PROPERTIES_WITHOUT_COLOR_TOKEN_EXPANSION, PROPERTIES_WITHOUT_CUSTOM_PROPERTY_EXPANSION, RADIUS_SHAPES, RENAMED_SPECIAL_STYLE_KEYS, SEMANTIC_TRANSITIONS, SHORTHAND_MAPPING, SINGLE_VALUE_DIRECTIONAL_PROPERTIES, SPECIAL_STYLE_KEYS, TRANSITION_SEMANTIC_MAPPING };
|
|
1845
2101
|
//# sourceMappingURL=constants.js.map
|