@adityabheke/renderer-package 1.0.9 → 1.0.11
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/index.cjs +9 -7
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +9 -7
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -59,7 +59,9 @@ var FONT_SCALE_MAP = {
|
|
|
59
59
|
SM: "16px",
|
|
60
60
|
MD: "20px",
|
|
61
61
|
LG: "34px",
|
|
62
|
-
XL: "48px"
|
|
62
|
+
XL: "48px",
|
|
63
|
+
XXL: "64px",
|
|
64
|
+
XXXL: "72px"
|
|
63
65
|
};
|
|
64
66
|
function buildFontWeightVars(fontWeight) {
|
|
65
67
|
return {
|
|
@@ -102,12 +104,12 @@ function buildPaddingVars(padding) {
|
|
|
102
104
|
};
|
|
103
105
|
}
|
|
104
106
|
var LEVEL_TO_SCALE = {
|
|
105
|
-
h1: "
|
|
106
|
-
h2: "
|
|
107
|
-
h3: "
|
|
108
|
-
h4: "
|
|
109
|
-
h5: "
|
|
110
|
-
h6: "
|
|
107
|
+
h1: "XXXL",
|
|
108
|
+
h2: "XXL",
|
|
109
|
+
h3: "XL",
|
|
110
|
+
h4: "LG",
|
|
111
|
+
h5: "MD",
|
|
112
|
+
h6: "SM"
|
|
111
113
|
};
|
|
112
114
|
function buildHeadingFontSizeVars(level) {
|
|
113
115
|
return {
|
package/dist/index.d.cts
CHANGED
|
@@ -20,7 +20,7 @@ interface ResponsiveValue<T> {
|
|
|
20
20
|
desktop?: T;
|
|
21
21
|
}
|
|
22
22
|
type AnimationType = "none" | "fadeIn" | "fromBottom" | "fromTop" | "fromLeft" | "fromRight";
|
|
23
|
-
type FontScale = "XS" | "SM" | "MD" | "LG" | "XL";
|
|
23
|
+
type FontScale = "XS" | "SM" | "MD" | "LG" | "XL" | "XXL" | 'XXXL';
|
|
24
24
|
type HeadingLevel = "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
|
|
25
25
|
|
|
26
26
|
interface HeroProps {
|
package/dist/index.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ interface ResponsiveValue<T> {
|
|
|
20
20
|
desktop?: T;
|
|
21
21
|
}
|
|
22
22
|
type AnimationType = "none" | "fadeIn" | "fromBottom" | "fromTop" | "fromLeft" | "fromRight";
|
|
23
|
-
type FontScale = "XS" | "SM" | "MD" | "LG" | "XL";
|
|
23
|
+
type FontScale = "XS" | "SM" | "MD" | "LG" | "XL" | "XXL" | 'XXXL';
|
|
24
24
|
type HeadingLevel = "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
|
|
25
25
|
|
|
26
26
|
interface HeroProps {
|
package/dist/index.js
CHANGED
|
@@ -22,7 +22,9 @@ var FONT_SCALE_MAP = {
|
|
|
22
22
|
SM: "16px",
|
|
23
23
|
MD: "20px",
|
|
24
24
|
LG: "34px",
|
|
25
|
-
XL: "48px"
|
|
25
|
+
XL: "48px",
|
|
26
|
+
XXL: "64px",
|
|
27
|
+
XXXL: "72px"
|
|
26
28
|
};
|
|
27
29
|
function buildFontWeightVars(fontWeight) {
|
|
28
30
|
return {
|
|
@@ -65,12 +67,12 @@ function buildPaddingVars(padding) {
|
|
|
65
67
|
};
|
|
66
68
|
}
|
|
67
69
|
var LEVEL_TO_SCALE = {
|
|
68
|
-
h1: "
|
|
69
|
-
h2: "
|
|
70
|
-
h3: "
|
|
71
|
-
h4: "
|
|
72
|
-
h5: "
|
|
73
|
-
h6: "
|
|
70
|
+
h1: "XXXL",
|
|
71
|
+
h2: "XXL",
|
|
72
|
+
h3: "XL",
|
|
73
|
+
h4: "LG",
|
|
74
|
+
h5: "MD",
|
|
75
|
+
h6: "SM"
|
|
74
76
|
};
|
|
75
77
|
function buildHeadingFontSizeVars(level) {
|
|
76
78
|
return {
|