@gem-sdk/core 1.41.0-dev.16 → 1.41.0-dev.18
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.
|
@@ -29,7 +29,7 @@ const composeTypographyV2Css = (typography, isImportant)=>{
|
|
|
29
29
|
${fontSize?.desktop ? `font-size: ${fontSize?.desktop} ${composeImportant};` : ''}
|
|
30
30
|
${bold ? `font-weight: bold ${composeImportant};` : fontWeight ? `font-weight: ${fontWeight} ${composeImportant};` : ''}
|
|
31
31
|
${letterSpacing ? `letter-spacing: ${letterSpacing} ${composeImportant};` : ''}
|
|
32
|
-
${lineHeight ? `line-height: ${lineHeight} ${composeImportant};` : ''}
|
|
32
|
+
${lineHeight?.desktop ? `line-height: ${lineHeight?.desktop} ${composeImportant};` : ''}
|
|
33
33
|
${italic ? `font-style: italic ${composeImportant};` : ''}
|
|
34
34
|
${underline ? `text-decoration-line: underline ${composeImportant};` : ''}
|
|
35
35
|
${transform ? `text-transform: ${transform} ${composeImportant};` : ''}
|
|
@@ -63,10 +63,10 @@ const composeTypographyV2 = (value, attrs)=>{
|
|
|
63
63
|
fs: !attrs?.italic ? value?.fontStyle : undefined,
|
|
64
64
|
ff: value?.fontFamily ? `var(--g-font-${value.fontFamily.replace(/ /g, '-')}, '${value.fontFamily}'), ${value.fallbackFontFamily}` : undefined,
|
|
65
65
|
weight: !attrs?.bold ? value?.fontWeight : undefined,
|
|
66
|
-
ls: value?.letterSpacing
|
|
67
|
-
lh: value?.lineHeight
|
|
66
|
+
ls: value?.letterSpacing
|
|
68
67
|
}),
|
|
69
|
-
...makeStyle.makeStyleResponsive('size', value?.fontSize)
|
|
68
|
+
...makeStyle.makeStyleResponsive('size', value?.fontSize),
|
|
69
|
+
...makeStyle.makeStyleResponsive('lh', value?.lineHeight)
|
|
70
70
|
});
|
|
71
71
|
};
|
|
72
72
|
const composeTypographyAttr = (attrs)=>{
|
|
@@ -27,7 +27,7 @@ const composeTypographyV2Css = (typography, isImportant)=>{
|
|
|
27
27
|
${fontSize?.desktop ? `font-size: ${fontSize?.desktop} ${composeImportant};` : ''}
|
|
28
28
|
${bold ? `font-weight: bold ${composeImportant};` : fontWeight ? `font-weight: ${fontWeight} ${composeImportant};` : ''}
|
|
29
29
|
${letterSpacing ? `letter-spacing: ${letterSpacing} ${composeImportant};` : ''}
|
|
30
|
-
${lineHeight ? `line-height: ${lineHeight} ${composeImportant};` : ''}
|
|
30
|
+
${lineHeight?.desktop ? `line-height: ${lineHeight?.desktop} ${composeImportant};` : ''}
|
|
31
31
|
${italic ? `font-style: italic ${composeImportant};` : ''}
|
|
32
32
|
${underline ? `text-decoration-line: underline ${composeImportant};` : ''}
|
|
33
33
|
${transform ? `text-transform: ${transform} ${composeImportant};` : ''}
|
|
@@ -61,10 +61,10 @@ const composeTypographyV2 = (value, attrs)=>{
|
|
|
61
61
|
fs: !attrs?.italic ? value?.fontStyle : undefined,
|
|
62
62
|
ff: value?.fontFamily ? `var(--g-font-${value.fontFamily.replace(/ /g, '-')}, '${value.fontFamily}'), ${value.fallbackFontFamily}` : undefined,
|
|
63
63
|
weight: !attrs?.bold ? value?.fontWeight : undefined,
|
|
64
|
-
ls: value?.letterSpacing
|
|
65
|
-
lh: value?.lineHeight
|
|
64
|
+
ls: value?.letterSpacing
|
|
66
65
|
}),
|
|
67
|
-
...makeStyleResponsive('size', value?.fontSize)
|
|
66
|
+
...makeStyleResponsive('size', value?.fontSize),
|
|
67
|
+
...makeStyleResponsive('lh', value?.lineHeight)
|
|
68
68
|
});
|
|
69
69
|
};
|
|
70
70
|
const composeTypographyAttr = (attrs)=>{
|
package/dist/types/index.d.ts
CHANGED
|
@@ -7241,6 +7241,7 @@ type Background = {
|
|
|
7241
7241
|
repeat?: BgRepeat;
|
|
7242
7242
|
attachment?: BgAttachment;
|
|
7243
7243
|
video?: string;
|
|
7244
|
+
videoType?: 'youtube' | 'html5';
|
|
7244
7245
|
loop?: boolean;
|
|
7245
7246
|
lazyLoad?: boolean;
|
|
7246
7247
|
};
|
|
@@ -27032,7 +27033,7 @@ type TypographyProps = {
|
|
|
27032
27033
|
};
|
|
27033
27034
|
type TypographyV2Props = Omit<TypographyProps, 'fontSize' | 'lineHeight'> & {
|
|
27034
27035
|
fontSize?: ObjectDevices<string>;
|
|
27035
|
-
lineHeight?: string
|
|
27036
|
+
lineHeight?: ObjectDevices<string>;
|
|
27036
27037
|
};
|
|
27037
27038
|
type TypographyV2Attrs = {
|
|
27038
27039
|
bold?: boolean;
|