@gobolt/genesis 0.4.39 → 0.4.40
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 +10 -5
- package/dist/index.js +10 -5
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -59296,12 +59296,17 @@ const Avatar$1 = styled(Avatar$2)`
|
|
|
59296
59296
|
return getGenesisClass$d(theme, type4, state);
|
|
59297
59297
|
}}
|
|
59298
59298
|
`;
|
|
59299
|
+
const getBreakpoint = (breakpoint) => {
|
|
59300
|
+
{
|
|
59301
|
+
return "medium";
|
|
59302
|
+
}
|
|
59303
|
+
};
|
|
59299
59304
|
const getVariant$2 = (typography2, variant, breakpoint) => {
|
|
59300
59305
|
return `
|
|
59301
|
-
font-size: ${typography2[
|
|
59302
|
-
line-height: ${typography2[
|
|
59303
|
-
letter-spacing: ${typography2[
|
|
59304
|
-
font-weight: ${typography2[
|
|
59306
|
+
font-size: ${typography2[getBreakpoint()][variant].fontSize}px !important;
|
|
59307
|
+
line-height: ${typography2[getBreakpoint()][variant].lineHeight};
|
|
59308
|
+
letter-spacing: ${typography2[getBreakpoint()][variant].letterSpacing}px;
|
|
59309
|
+
font-weight: ${typography2[getBreakpoint()][variant].fontWeight};
|
|
59305
59310
|
`;
|
|
59306
59311
|
};
|
|
59307
59312
|
const getColor = (color2, colors2, $themeType) => {
|
|
@@ -59319,7 +59324,7 @@ const getGenesisTypographyClass = ({ colors: colors2, typography: typography2 },
|
|
|
59319
59324
|
&.ant-typography {
|
|
59320
59325
|
font-family: ${getFontFamily(variant)};
|
|
59321
59326
|
color: ${getColor(color2, colors2, $themeType)} !important;
|
|
59322
|
-
${getVariant$2(typography2, variant
|
|
59327
|
+
${getVariant$2(typography2, variant)}
|
|
59323
59328
|
margin-bottom: 0 !important;
|
|
59324
59329
|
width: ${$isFullWidth ? "100%" : "auto"};
|
|
59325
59330
|
line-height: 1;
|
package/dist/index.js
CHANGED
|
@@ -59278,12 +59278,17 @@ const Avatar$1 = styled(Avatar$2)`
|
|
|
59278
59278
|
return getGenesisClass$d(theme, type4, state);
|
|
59279
59279
|
}}
|
|
59280
59280
|
`;
|
|
59281
|
+
const getBreakpoint = (breakpoint) => {
|
|
59282
|
+
{
|
|
59283
|
+
return "medium";
|
|
59284
|
+
}
|
|
59285
|
+
};
|
|
59281
59286
|
const getVariant$2 = (typography2, variant, breakpoint) => {
|
|
59282
59287
|
return `
|
|
59283
|
-
font-size: ${typography2[
|
|
59284
|
-
line-height: ${typography2[
|
|
59285
|
-
letter-spacing: ${typography2[
|
|
59286
|
-
font-weight: ${typography2[
|
|
59288
|
+
font-size: ${typography2[getBreakpoint()][variant].fontSize}px !important;
|
|
59289
|
+
line-height: ${typography2[getBreakpoint()][variant].lineHeight};
|
|
59290
|
+
letter-spacing: ${typography2[getBreakpoint()][variant].letterSpacing}px;
|
|
59291
|
+
font-weight: ${typography2[getBreakpoint()][variant].fontWeight};
|
|
59287
59292
|
`;
|
|
59288
59293
|
};
|
|
59289
59294
|
const getColor = (color2, colors2, $themeType) => {
|
|
@@ -59301,7 +59306,7 @@ const getGenesisTypographyClass = ({ colors: colors2, typography: typography2 },
|
|
|
59301
59306
|
&.ant-typography {
|
|
59302
59307
|
font-family: ${getFontFamily(variant)};
|
|
59303
59308
|
color: ${getColor(color2, colors2, $themeType)} !important;
|
|
59304
|
-
${getVariant$2(typography2, variant
|
|
59309
|
+
${getVariant$2(typography2, variant)}
|
|
59305
59310
|
margin-bottom: 0 !important;
|
|
59306
59311
|
width: ${$isFullWidth ? "100%" : "auto"};
|
|
59307
59312
|
line-height: 1;
|