@gobolt/genesis 0.5.0 → 0.5.1
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.
|
@@ -12,6 +12,8 @@ export interface TypographyProps {
|
|
|
12
12
|
isFullWidth?: boolean;
|
|
13
13
|
style?: CSSProperties;
|
|
14
14
|
isDisabled?: boolean;
|
|
15
|
+
fontWeight?: number;
|
|
16
|
+
fontSize?: string;
|
|
15
17
|
}
|
|
16
|
-
declare const Typography: ({ children, themeType, variant, state, color, isText, isFullWidth, style, isDisabled, ...rest }: TypographyProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
declare const Typography: ({ children, themeType, variant, state, color, isText, isFullWidth, style, fontSize, fontWeight, isDisabled, ...rest }: TypographyProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
19
|
export default Typography;
|
|
@@ -7,6 +7,8 @@ interface TypographyStyledProperties {
|
|
|
7
7
|
state?: keyof typeof STATE;
|
|
8
8
|
breakpoint?: string;
|
|
9
9
|
color?: string;
|
|
10
|
+
fontWeight?: number;
|
|
11
|
+
fontSize?: string;
|
|
10
12
|
$isFullWidth?: boolean;
|
|
11
13
|
}
|
|
12
14
|
export declare const Headline: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<Omit<import('antd/es/typography/Title').TitleProps & import('react').RefAttributes<HTMLElement>, "ref"> & {
|
package/dist/index.cjs
CHANGED
|
@@ -59320,13 +59320,15 @@ const getFontFamily = (variant) => {
|
|
|
59320
59320
|
${variant.includes("digits") ? "'Roboto Mono', sans-serif" : "'Inter', sans-serif"} !important;
|
|
59321
59321
|
`;
|
|
59322
59322
|
};
|
|
59323
|
-
const getGenesisTypographyClass = ({ colors: colors2, typography: typography2 }, $themeType, variant, state, breakpoint, color2, $isFullWidth) => `
|
|
59323
|
+
const getGenesisTypographyClass = ({ colors: colors2, typography: typography2 }, $themeType, variant, state, breakpoint, color2, fontSize, fontWeight, $isFullWidth) => `
|
|
59324
59324
|
&.ant-typography {
|
|
59325
59325
|
font-family: ${getFontFamily(variant)};
|
|
59326
59326
|
color: ${getColor(color2, colors2, $themeType)} !important;
|
|
59327
59327
|
${getVariant$2(typography2, variant)}
|
|
59328
59328
|
margin-bottom: 0 !important;
|
|
59329
|
-
width: ${
|
|
59329
|
+
width: ${"auto"};
|
|
59330
|
+
font-weight: ${fontWeight};
|
|
59331
|
+
font-size: ${fontSize};
|
|
59330
59332
|
line-height: 1;
|
|
59331
59333
|
-webkit-font-smoothing: antialiased;
|
|
59332
59334
|
|
|
@@ -59368,7 +59370,9 @@ const Paragraph = styled(
|
|
|
59368
59370
|
state,
|
|
59369
59371
|
breakpoint,
|
|
59370
59372
|
color: color2,
|
|
59371
|
-
$isFullWidth
|
|
59373
|
+
$isFullWidth,
|
|
59374
|
+
fontSize,
|
|
59375
|
+
fontWeight
|
|
59372
59376
|
}) => {
|
|
59373
59377
|
return getGenesisTypographyClass(
|
|
59374
59378
|
theme,
|
|
@@ -60367,6 +60371,8 @@ const Typography = ({
|
|
|
60367
60371
|
isText = false,
|
|
60368
60372
|
isFullWidth,
|
|
60369
60373
|
style: style2,
|
|
60374
|
+
fontSize,
|
|
60375
|
+
fontWeight,
|
|
60370
60376
|
isDisabled,
|
|
60371
60377
|
...rest
|
|
60372
60378
|
}) => {
|
|
@@ -60384,6 +60390,8 @@ const Typography = ({
|
|
|
60384
60390
|
level: Number.parseInt(level),
|
|
60385
60391
|
$isFullWidth: isFullWidth,
|
|
60386
60392
|
style: style2,
|
|
60393
|
+
fontSize,
|
|
60394
|
+
fontWeight,
|
|
60387
60395
|
disabled: isDisabled,
|
|
60388
60396
|
...rest,
|
|
60389
60397
|
children: children2
|
|
@@ -60403,6 +60411,8 @@ const Typography = ({
|
|
|
60403
60411
|
$isFullWidth: isFullWidth,
|
|
60404
60412
|
style: style2,
|
|
60405
60413
|
disabled: isDisabled,
|
|
60414
|
+
fontSize,
|
|
60415
|
+
fontWeight,
|
|
60406
60416
|
...rest,
|
|
60407
60417
|
children: children2
|
|
60408
60418
|
}
|
|
@@ -60419,6 +60429,8 @@ const Typography = ({
|
|
|
60419
60429
|
$isFullWidth: isFullWidth,
|
|
60420
60430
|
style: style2,
|
|
60421
60431
|
disabled: isDisabled,
|
|
60432
|
+
fontSize,
|
|
60433
|
+
fontWeight,
|
|
60422
60434
|
...rest,
|
|
60423
60435
|
children: children2
|
|
60424
60436
|
}
|
package/dist/index.js
CHANGED
|
@@ -59302,13 +59302,15 @@ const getFontFamily = (variant) => {
|
|
|
59302
59302
|
${variant.includes("digits") ? "'Roboto Mono', sans-serif" : "'Inter', sans-serif"} !important;
|
|
59303
59303
|
`;
|
|
59304
59304
|
};
|
|
59305
|
-
const getGenesisTypographyClass = ({ colors: colors2, typography: typography2 }, $themeType, variant, state, breakpoint, color2, $isFullWidth) => `
|
|
59305
|
+
const getGenesisTypographyClass = ({ colors: colors2, typography: typography2 }, $themeType, variant, state, breakpoint, color2, fontSize, fontWeight, $isFullWidth) => `
|
|
59306
59306
|
&.ant-typography {
|
|
59307
59307
|
font-family: ${getFontFamily(variant)};
|
|
59308
59308
|
color: ${getColor(color2, colors2, $themeType)} !important;
|
|
59309
59309
|
${getVariant$2(typography2, variant)}
|
|
59310
59310
|
margin-bottom: 0 !important;
|
|
59311
|
-
width: ${
|
|
59311
|
+
width: ${"auto"};
|
|
59312
|
+
font-weight: ${fontWeight};
|
|
59313
|
+
font-size: ${fontSize};
|
|
59312
59314
|
line-height: 1;
|
|
59313
59315
|
-webkit-font-smoothing: antialiased;
|
|
59314
59316
|
|
|
@@ -59350,7 +59352,9 @@ const Paragraph = styled(
|
|
|
59350
59352
|
state,
|
|
59351
59353
|
breakpoint,
|
|
59352
59354
|
color: color2,
|
|
59353
|
-
$isFullWidth
|
|
59355
|
+
$isFullWidth,
|
|
59356
|
+
fontSize,
|
|
59357
|
+
fontWeight
|
|
59354
59358
|
}) => {
|
|
59355
59359
|
return getGenesisTypographyClass(
|
|
59356
59360
|
theme,
|
|
@@ -60349,6 +60353,8 @@ const Typography = ({
|
|
|
60349
60353
|
isText = false,
|
|
60350
60354
|
isFullWidth,
|
|
60351
60355
|
style: style2,
|
|
60356
|
+
fontSize,
|
|
60357
|
+
fontWeight,
|
|
60352
60358
|
isDisabled,
|
|
60353
60359
|
...rest
|
|
60354
60360
|
}) => {
|
|
@@ -60366,6 +60372,8 @@ const Typography = ({
|
|
|
60366
60372
|
level: Number.parseInt(level),
|
|
60367
60373
|
$isFullWidth: isFullWidth,
|
|
60368
60374
|
style: style2,
|
|
60375
|
+
fontSize,
|
|
60376
|
+
fontWeight,
|
|
60369
60377
|
disabled: isDisabled,
|
|
60370
60378
|
...rest,
|
|
60371
60379
|
children: children2
|
|
@@ -60385,6 +60393,8 @@ const Typography = ({
|
|
|
60385
60393
|
$isFullWidth: isFullWidth,
|
|
60386
60394
|
style: style2,
|
|
60387
60395
|
disabled: isDisabled,
|
|
60396
|
+
fontSize,
|
|
60397
|
+
fontWeight,
|
|
60388
60398
|
...rest,
|
|
60389
60399
|
children: children2
|
|
60390
60400
|
}
|
|
@@ -60401,6 +60411,8 @@ const Typography = ({
|
|
|
60401
60411
|
$isFullWidth: isFullWidth,
|
|
60402
60412
|
style: style2,
|
|
60403
60413
|
disabled: isDisabled,
|
|
60414
|
+
fontSize,
|
|
60415
|
+
fontWeight,
|
|
60404
60416
|
...rest,
|
|
60405
60417
|
children: children2
|
|
60406
60418
|
}
|