synthesisui 0.16.66 → 0.16.68
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/doctor/transcribe.js +23 -15
- package/package.json +1 -1
|
@@ -32,19 +32,27 @@
|
|
|
32
32
|
* data-[checked]:bg-ocean-50 → states.checked
|
|
33
33
|
*/
|
|
34
34
|
/**
|
|
35
|
-
* Utility prefix →
|
|
35
|
+
* Utility prefix → the property name THE DOCUMENT USES, which is camelCase.
|
|
36
|
+
*
|
|
37
|
+
* Emitting kebab-case cost a whole slice in silence: the recipes validated,
|
|
38
|
+
* because `styleValue` is permissive about the value and says nothing about the
|
|
39
|
+
* key, and then not one metric could find them - a `RadioCard` with five real
|
|
40
|
+
* declarations had 2 of 8.6 weight applicable and read as unwritten (dono,
|
|
41
|
+
* 01/08). Valid and unread is the worst of the three outcomes.
|
|
42
|
+
*
|
|
43
|
+
* Only the ones that carry DESIGN, which is the
|
|
36
44
|
* whole point: `flex`, `items-center` and `w-full` are structure, they are
|
|
37
45
|
* identical in every design system, and a recipe carrying them would be
|
|
38
46
|
* transcribing layout rather than a look.
|
|
39
47
|
*/
|
|
40
48
|
const COLOR_PROPERTY = {
|
|
41
|
-
bg: "
|
|
49
|
+
bg: "backgroundColor",
|
|
42
50
|
text: "color",
|
|
43
|
-
border: "
|
|
44
|
-
ring: "
|
|
51
|
+
border: "borderColor",
|
|
52
|
+
ring: "outlineColor",
|
|
45
53
|
fill: "fill",
|
|
46
54
|
stroke: "stroke",
|
|
47
|
-
decoration: "
|
|
55
|
+
decoration: "textDecorationColor",
|
|
48
56
|
};
|
|
49
57
|
/** Tailwind's own spacing scale, in rem - the fixed part of the fixed table. */
|
|
50
58
|
const SPACING = {
|
|
@@ -73,15 +81,15 @@ const SPACING = {
|
|
|
73
81
|
};
|
|
74
82
|
const SPACING_PROPERTY = {
|
|
75
83
|
p: "padding",
|
|
76
|
-
px: "
|
|
77
|
-
py: "
|
|
78
|
-
pt: "
|
|
79
|
-
pr: "
|
|
80
|
-
pb: "
|
|
81
|
-
pl: "
|
|
84
|
+
px: "paddingInline",
|
|
85
|
+
py: "paddingBlock",
|
|
86
|
+
pt: "paddingTop",
|
|
87
|
+
pr: "paddingRight",
|
|
88
|
+
pb: "paddingBottom",
|
|
89
|
+
pl: "paddingLeft",
|
|
82
90
|
m: "margin",
|
|
83
|
-
mx: "
|
|
84
|
-
my: "
|
|
91
|
+
mx: "marginInline",
|
|
92
|
+
my: "marginBlock",
|
|
85
93
|
gap: "gap",
|
|
86
94
|
};
|
|
87
95
|
/** Tailwind's radius scale. */
|
|
@@ -182,13 +190,13 @@ export function readUtility(utility, declared) {
|
|
|
182
190
|
const own = `--radius-${rest}`;
|
|
183
191
|
if (declared.has(own)) {
|
|
184
192
|
return {
|
|
185
|
-
property: "
|
|
193
|
+
property: "borderRadius",
|
|
186
194
|
value: `{radius.${rest}}`,
|
|
187
195
|
token: own,
|
|
188
196
|
};
|
|
189
197
|
}
|
|
190
198
|
if (RADIUS[rest])
|
|
191
|
-
return { property: "
|
|
199
|
+
return { property: "borderRadius", value: RADIUS[rest] };
|
|
192
200
|
}
|
|
193
201
|
return null;
|
|
194
202
|
}
|
package/package.json
CHANGED