anubis-ui 1.2.14 → 1.2.15
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/package.json
CHANGED
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"default": "4px" ,
|
|
29
29
|
"thinest": "1px" ,
|
|
30
30
|
"thiner": "2px" ,
|
|
31
|
-
"
|
|
31
|
+
"thin2": "3px" ,
|
|
32
32
|
"thick": "6px" ,
|
|
33
33
|
"thicker": "8px" ,
|
|
34
34
|
"thickest": "10px" ,
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"variations": {
|
|
42
42
|
"default": "0px 0px 7px 1px" ,
|
|
43
43
|
"densest": "0px 0px 3px 1px" ,
|
|
44
|
-
"
|
|
44
|
+
"lower": "0px 0px 5px 1px" ,
|
|
45
45
|
"dense": "0px 0px 5px 1px" ,
|
|
46
46
|
"wide": "0px 0px 10px 1px" ,
|
|
47
47
|
"wider": "0px 0px 15px 1px" ,
|
|
@@ -54,5 +54,25 @@
|
|
|
54
54
|
"relative": "relative",
|
|
55
55
|
"absolute": "absolute"
|
|
56
56
|
}
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"prefix": "size",
|
|
60
|
+
"declaration": "font-size: ${value} !important",
|
|
61
|
+
"variations": {
|
|
62
|
+
"2xs": "10px",
|
|
63
|
+
"xs": "12px",
|
|
64
|
+
"sm": "14px",
|
|
65
|
+
"md": "16px",
|
|
66
|
+
"lg": "18px",
|
|
67
|
+
"xl": "20px",
|
|
68
|
+
"2xl": "24px",
|
|
69
|
+
"3xl": "30px",
|
|
70
|
+
"4xl": "36px",
|
|
71
|
+
"5xl": "48px",
|
|
72
|
+
"6xl": "60px",
|
|
73
|
+
"7xl": "72px",
|
|
74
|
+
"8xl": "96px",
|
|
75
|
+
"9xl": "128px"
|
|
76
|
+
}
|
|
57
77
|
}
|
|
58
78
|
]
|
|
@@ -126,7 +126,7 @@ const getPresetInfos = ({ cleanedColor, prefix }: { cleanedColor: string, prefix
|
|
|
126
126
|
|
|
127
127
|
const defaultVariation = 'default'
|
|
128
128
|
const matchingVariation = Object.keys(possibleVariations)
|
|
129
|
-
?.find(v => cleanedColor.endsWith(v))
|
|
129
|
+
?.find(v => cleanedColor === v || cleanedColor.endsWith(v))
|
|
130
130
|
|
|
131
131
|
const variation = possibleVariations[matchingVariation || defaultVariation]
|
|
132
132
|
const baseColor = matchingVariation
|