@elliemae/ds-typography 3.70.0-next.4 → 3.70.0-next.41
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/cjs/config/useDefaultProps.js +1 -0
- package/dist/cjs/config/useDefaultProps.js.map +2 -2
- package/dist/cjs/constants/index.js +1 -0
- package/dist/cjs/constants/index.js.map +2 -2
- package/dist/cjs/index.js +3 -1
- package/dist/cjs/index.js.map +2 -2
- package/dist/cjs/parts/styled.js +4 -1
- package/dist/cjs/parts/styled.js.map +2 -2
- package/dist/cjs/parts/typographyFontFamily.js +39 -0
- package/dist/cjs/parts/typographyFontFamily.js.map +7 -0
- package/dist/cjs/parts/variants/body-article.js +4 -0
- package/dist/cjs/parts/variants/body-article.js.map +2 -2
- package/dist/cjs/parts/variants/body.js +23 -4
- package/dist/cjs/parts/variants/body.js.map +2 -2
- package/dist/cjs/parts/variants/button.js +5 -0
- package/dist/cjs/parts/variants/button.js.map +2 -2
- package/dist/cjs/parts/variants/feedback.js +5 -0
- package/dist/cjs/parts/variants/feedback.js.map +2 -2
- package/dist/cjs/parts/variants/header-article.js +6 -0
- package/dist/cjs/parts/variants/header-article.js.map +2 -2
- package/dist/cjs/parts/variants/header.js +9 -0
- package/dist/cjs/parts/variants/header.js.map +2 -2
- package/dist/cjs/parts/variants/highlight.js +5 -0
- package/dist/cjs/parts/variants/highlight.js.map +2 -2
- package/dist/cjs/parts/variants/link.js +5 -0
- package/dist/cjs/parts/variants/link.js.map +2 -2
- package/dist/cjs/parts/variants/quote.js +3 -0
- package/dist/cjs/parts/variants/quote.js.map +2 -2
- package/dist/cjs/react-desc-prop-types.js +1 -0
- package/dist/cjs/react-desc-prop-types.js.map +2 -2
- package/dist/esm/config/useDefaultProps.js +1 -0
- package/dist/esm/config/useDefaultProps.js.map +2 -2
- package/dist/esm/constants/index.js +1 -0
- package/dist/esm/constants/index.js.map +2 -2
- package/dist/esm/index.js +3 -1
- package/dist/esm/index.js.map +2 -2
- package/dist/esm/parts/styled.js +4 -1
- package/dist/esm/parts/styled.js.map +2 -2
- package/dist/esm/parts/typographyFontFamily.js +9 -0
- package/dist/esm/parts/typographyFontFamily.js.map +7 -0
- package/dist/esm/parts/variants/body-article.js +4 -0
- package/dist/esm/parts/variants/body-article.js.map +2 -2
- package/dist/esm/parts/variants/body.js +23 -4
- package/dist/esm/parts/variants/body.js.map +2 -2
- package/dist/esm/parts/variants/button.js +5 -0
- package/dist/esm/parts/variants/button.js.map +2 -2
- package/dist/esm/parts/variants/feedback.js +5 -0
- package/dist/esm/parts/variants/feedback.js.map +2 -2
- package/dist/esm/parts/variants/header-article.js +6 -0
- package/dist/esm/parts/variants/header-article.js.map +2 -2
- package/dist/esm/parts/variants/header.js +9 -0
- package/dist/esm/parts/variants/header.js.map +2 -2
- package/dist/esm/parts/variants/highlight.js +5 -0
- package/dist/esm/parts/variants/highlight.js.map +2 -2
- package/dist/esm/parts/variants/link.js +5 -0
- package/dist/esm/parts/variants/link.js.map +2 -2
- package/dist/esm/parts/variants/quote.js +3 -0
- package/dist/esm/parts/variants/quote.js.map +2 -2
- package/dist/esm/react-desc-prop-types.js +1 -0
- package/dist/esm/react-desc-prop-types.js.map +2 -2
- package/dist/types/index.d.ts +1 -0
- package/dist/types/parts/styled.d.ts +2 -0
- package/dist/types/parts/typographyFontFamily.d.ts +1 -0
- package/dist/types/react-desc-prop-types.d.ts +1 -1
- package/package.json +6 -6
- package/dist/types/tests/DSTypography.data-testId.test.d.ts +0 -1
- package/dist/types/tests/DSTypography.func.test.d.ts +0 -1
- package/dist/types/tests/DSTypography.style.test.d.ts +0 -1
- package/dist/types/typescript-testing/typescript-typography-valid.d.ts +0 -1
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { css } from "@elliemae/ds-system";
|
|
3
|
+
import { typographyFontFamily } from "../typographyFontFamily.js";
|
|
3
4
|
import { TYPOGRAPHY_VARIANTS } from "../../constants/index.js";
|
|
4
5
|
const typedCss = () => css``;
|
|
5
6
|
const VARIANTS_CSS_BODY_ARTICLE = {
|
|
6
7
|
// font-size: 16px/RT | line-height: 20px/RT
|
|
7
8
|
[TYPOGRAPHY_VARIANTS.B1_ARTICLE]: css`
|
|
9
|
+
${typographyFontFamily}
|
|
8
10
|
font-size: ${(props) => props.fontSize ?? "1rem"}; // 16px -> 16/16 = 1rem
|
|
9
11
|
line-height: ${(props) => props.lineHeight ?? "1.25rem"}; // 20px -> 20/16 = 1.25rem
|
|
10
12
|
@media (min-width: ${({ theme }) => theme.breakpoints.small}) {
|
|
@@ -19,6 +21,7 @@ const VARIANTS_CSS_BODY_ARTICLE = {
|
|
|
19
21
|
`,
|
|
20
22
|
// font-size: 14px/RT | line-height: 18px/RT
|
|
21
23
|
[TYPOGRAPHY_VARIANTS.B2_ARTICLE]: css`
|
|
24
|
+
${typographyFontFamily}
|
|
22
25
|
font-size: ${(props) => props.fontSize ?? "0.875rem"}; // 14px -> 14/16 = 0.875rem
|
|
23
26
|
line-height: ${(props) => props.lineHeight ?? "1.125rem"}; // 18px -> 18/16 = 1.125rem
|
|
24
27
|
@media (min-width: ${({ theme }) => theme.breakpoints.small}) {
|
|
@@ -33,6 +36,7 @@ const VARIANTS_CSS_BODY_ARTICLE = {
|
|
|
33
36
|
`,
|
|
34
37
|
// font-size: 13px/RT | line-height: 17px/RT
|
|
35
38
|
[TYPOGRAPHY_VARIANTS.B3_ARTICLE]: css`
|
|
39
|
+
${typographyFontFamily}
|
|
36
40
|
font-size: ${(props) => props.fontSize ?? "0.8125rem"}; // 13px -> 13/16 = 0.8125rem
|
|
37
41
|
line-height: ${(props) => props.lineHeight ?? "1.0625rem"}; // 17px -> 17/16 = 1.0625rem
|
|
38
42
|
@media (min-width: ${({ theme }) => theme.breakpoints.small}) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/parts/variants/body-article.ts"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { css } from '@elliemae/ds-system';\nimport { TYPOGRAPHY_VARIANTS } from '../../constants/index.js';\nimport type { DSTypographyT } from '../../react-desc-prop-types.js';\n\n// typescript \"hack\" to infer the ReturnType of a generic function (css) with a generic argument (DSTypographyT.StyledPropsInterface)\n// as of 14/november/2023 I was not able to find a better way to do this.\nconst typedCss = () => css<DSTypographyT.StyledPropsInterface>``;\ntype ArticleBodyCSSMap = {\n [key in DSTypographyT.ArticleBodyVariants]: ReturnType<typeof typedCss>;\n};\n\n// as of 14/november/2023\n// mobile -> font-size: 16px\n// desktop -> font-size: 13px\n// the \"magic values\" of the rem units are the result of the following formula:\n// (variant's requirement px/RT value / 16px) for mobile\n// (variant's requirement px/RT value / 13px) for desktop\nexport const VARIANTS_CSS_BODY_ARTICLE: ArticleBodyCSSMap = {\n // font-size: 16px/RT | line-height: 20px/RT\n [TYPOGRAPHY_VARIANTS.B1_ARTICLE]: css<DSTypographyT.StyledPropsInterface>`\n font-size: ${(props) => props.fontSize ?? '1rem'}; // 16px -> 16/16 = 1rem\n line-height: ${(props) => props.lineHeight ?? '1.25rem'}; // 20px -> 20/16 = 1.25rem\n @media (min-width: ${({ theme }) => theme.breakpoints.small}) {\n font-size: ${(props) => props.fontSize ?? '1.230769230769231rem'}; // 16px -> 16/13 = 1.230769230769231rem\n line-height: ${(props) => props.lineHeight ?? '1.538461538461538rem'}; // 20px -> 20/13 = 1.538461538461538rem\n }\n margin-bottom: 24px;\n color: ${(props) => props.theme.colors.neutral[700]};\n font-weight: 400;\n overflow-wrap: break-word;\n white-space: pre-wrap;\n `,\n // font-size: 14px/RT | line-height: 18px/RT\n [TYPOGRAPHY_VARIANTS.B2_ARTICLE]: css<DSTypographyT.StyledPropsInterface>`\n font-size: ${(props) => props.fontSize ?? '0.875rem'}; // 14px -> 14/16 = 0.875rem\n line-height: ${(props) => props.lineHeight ?? '1.125rem'}; // 18px -> 18/16 = 1.125rem\n @media (min-width: ${({ theme }) => theme.breakpoints.small}) {\n font-size: ${(props) => props.fontSize ?? '1.076923076923077rem'}; // 14px -> 14/13 = 1.076923076923077rem\n line-height: ${(props) => props.lineHeight ?? '1.384615384615385rem'}; // 18px -> 18/13 = 1.384615384615385rem\n }\n margin-bottom: 24px;\n color: ${(props) => props.theme.colors.neutral[700]};\n font-weight: 400;\n overflow-wrap: break-word;\n white-space: pre-wrap;\n `,\n // font-size: 13px/RT | line-height: 17px/RT\n [TYPOGRAPHY_VARIANTS.B3_ARTICLE]: css<DSTypographyT.StyledPropsInterface>`\n font-size: ${(props) => props.fontSize ?? '0.8125rem'}; // 13px -> 13/16 = 0.8125rem\n line-height: ${(props) => props.lineHeight ?? '1.0625rem'}; // 17px -> 17/16 = 1.0625rem\n @media (min-width: ${({ theme }) => theme.breakpoints.small}) {\n font-size: ${(props) => props.fontSize ?? '1rem'}; // 13px -> 13/13 = 1rem\n line-height: ${(props) => props.lineHeight ?? '1.307692307692308rem'}; // 17px -> 17/13 = 1.307692307692308rem\n }\n margin-bottom: 24px;\n color: ${(props) => props.theme.colors.neutral[700]};\n font-weight: 400;\n overflow-wrap: break-word;\n white-space: pre-wrap;\n `,\n};\n"],
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,WAAW;AACpB,SAAS,2BAA2B;AAKpC,MAAM,WAAW,MAAM;AAWhB,MAAM,4BAA+C;AAAA;AAAA,EAE1D,CAAC,oBAAoB,UAAU,GAAG;AAAA,
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { css } from '@elliemae/ds-system';\nimport { typographyFontFamily } from '../typographyFontFamily.js';\nimport { TYPOGRAPHY_VARIANTS } from '../../constants/index.js';\nimport type { DSTypographyT } from '../../react-desc-prop-types.js';\n\n// typescript \"hack\" to infer the ReturnType of a generic function (css) with a generic argument (DSTypographyT.StyledPropsInterface)\n// as of 14/november/2023 I was not able to find a better way to do this.\nconst typedCss = () => css<DSTypographyT.StyledPropsInterface>``;\ntype ArticleBodyCSSMap = {\n [key in DSTypographyT.ArticleBodyVariants]: ReturnType<typeof typedCss>;\n};\n\n// as of 14/november/2023\n// mobile -> font-size: 16px\n// desktop -> font-size: 13px\n// the \"magic values\" of the rem units are the result of the following formula:\n// (variant's requirement px/RT value / 16px) for mobile\n// (variant's requirement px/RT value / 13px) for desktop\nexport const VARIANTS_CSS_BODY_ARTICLE: ArticleBodyCSSMap = {\n // font-size: 16px/RT | line-height: 20px/RT\n [TYPOGRAPHY_VARIANTS.B1_ARTICLE]: css<DSTypographyT.StyledPropsInterface>`\n ${typographyFontFamily}\n font-size: ${(props) => props.fontSize ?? '1rem'}; // 16px -> 16/16 = 1rem\n line-height: ${(props) => props.lineHeight ?? '1.25rem'}; // 20px -> 20/16 = 1.25rem\n @media (min-width: ${({ theme }) => theme.breakpoints.small}) {\n font-size: ${(props) => props.fontSize ?? '1.230769230769231rem'}; // 16px -> 16/13 = 1.230769230769231rem\n line-height: ${(props) => props.lineHeight ?? '1.538461538461538rem'}; // 20px -> 20/13 = 1.538461538461538rem\n }\n margin-bottom: 24px;\n color: ${(props) => props.theme.colors.neutral[700]};\n font-weight: 400;\n overflow-wrap: break-word;\n white-space: pre-wrap;\n `,\n // font-size: 14px/RT | line-height: 18px/RT\n [TYPOGRAPHY_VARIANTS.B2_ARTICLE]: css<DSTypographyT.StyledPropsInterface>`\n ${typographyFontFamily}\n font-size: ${(props) => props.fontSize ?? '0.875rem'}; // 14px -> 14/16 = 0.875rem\n line-height: ${(props) => props.lineHeight ?? '1.125rem'}; // 18px -> 18/16 = 1.125rem\n @media (min-width: ${({ theme }) => theme.breakpoints.small}) {\n font-size: ${(props) => props.fontSize ?? '1.076923076923077rem'}; // 14px -> 14/13 = 1.076923076923077rem\n line-height: ${(props) => props.lineHeight ?? '1.384615384615385rem'}; // 18px -> 18/13 = 1.384615384615385rem\n }\n margin-bottom: 24px;\n color: ${(props) => props.theme.colors.neutral[700]};\n font-weight: 400;\n overflow-wrap: break-word;\n white-space: pre-wrap;\n `,\n // font-size: 13px/RT | line-height: 17px/RT\n [TYPOGRAPHY_VARIANTS.B3_ARTICLE]: css<DSTypographyT.StyledPropsInterface>`\n ${typographyFontFamily}\n font-size: ${(props) => props.fontSize ?? '0.8125rem'}; // 13px -> 13/16 = 0.8125rem\n line-height: ${(props) => props.lineHeight ?? '1.0625rem'}; // 17px -> 17/16 = 1.0625rem\n @media (min-width: ${({ theme }) => theme.breakpoints.small}) {\n font-size: ${(props) => props.fontSize ?? '1rem'}; // 13px -> 13/13 = 1rem\n line-height: ${(props) => props.lineHeight ?? '1.307692307692308rem'}; // 17px -> 17/13 = 1.307692307692308rem\n }\n margin-bottom: 24px;\n color: ${(props) => props.theme.colors.neutral[700]};\n font-weight: 400;\n overflow-wrap: break-word;\n white-space: pre-wrap;\n `,\n};\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,WAAW;AACpB,SAAS,4BAA4B;AACrC,SAAS,2BAA2B;AAKpC,MAAM,WAAW,MAAM;AAWhB,MAAM,4BAA+C;AAAA;AAAA,EAE1D,CAAC,oBAAoB,UAAU,GAAG;AAAA,MAC9B,oBAAoB;AAAA,iBACT,CAAC,UAAU,MAAM,YAAY,MAAM;AAAA,mBACjC,CAAC,UAAU,MAAM,cAAc,SAAS;AAAA,yBAClC,CAAC,EAAE,MAAM,MAAM,MAAM,YAAY,KAAK;AAAA,mBAC5C,CAAC,UAAU,MAAM,YAAY,sBAAsB;AAAA,qBACjD,CAAC,UAAU,MAAM,cAAc,sBAAsB;AAAA;AAAA;AAAA,aAG7D,CAAC,UAAU,MAAM,MAAM,OAAO,QAAQ,GAAG,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMrD,CAAC,oBAAoB,UAAU,GAAG;AAAA,MAC9B,oBAAoB;AAAA,iBACT,CAAC,UAAU,MAAM,YAAY,UAAU;AAAA,mBACrC,CAAC,UAAU,MAAM,cAAc,UAAU;AAAA,yBACnC,CAAC,EAAE,MAAM,MAAM,MAAM,YAAY,KAAK;AAAA,mBAC5C,CAAC,UAAU,MAAM,YAAY,sBAAsB;AAAA,qBACjD,CAAC,UAAU,MAAM,cAAc,sBAAsB;AAAA;AAAA;AAAA,aAG7D,CAAC,UAAU,MAAM,MAAM,OAAO,QAAQ,GAAG,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMrD,CAAC,oBAAoB,UAAU,GAAG;AAAA,MAC9B,oBAAoB;AAAA,iBACT,CAAC,UAAU,MAAM,YAAY,WAAW;AAAA,mBACtC,CAAC,UAAU,MAAM,cAAc,WAAW;AAAA,yBACpC,CAAC,EAAE,MAAM,MAAM,MAAM,YAAY,KAAK;AAAA,mBAC5C,CAAC,UAAU,MAAM,YAAY,MAAM;AAAA,qBACjC,CAAC,UAAU,MAAM,cAAc,sBAAsB;AAAA;AAAA;AAAA,aAG7D,CAAC,UAAU,MAAM,MAAM,OAAO,QAAQ,GAAG,CAAC;AAAA;AAAA;AAAA;AAAA;AAKvD;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { css } from "@elliemae/ds-system";
|
|
3
3
|
import { TYPOGRAPHY_VARIANTS } from "../../constants/index.js";
|
|
4
|
+
import { typographyFontFamily } from "../typographyFontFamily.js";
|
|
4
5
|
const typedCss = () => css``;
|
|
5
6
|
const VARIANTS_CSS_BODY = {
|
|
6
7
|
[TYPOGRAPHY_VARIANTS.B1]: css`
|
|
8
|
+
${typographyFontFamily}
|
|
7
9
|
font-size: ${(props) => props.fontSize ?? "0.8775000000000001rem"};
|
|
8
10
|
line-height: ${(props) => props.lineHeight ?? "1.1212499999999999rem"};
|
|
9
11
|
@media (min-width: ${({ theme }) => theme.breakpoints.small}) {
|
|
@@ -13,15 +15,17 @@ const VARIANTS_CSS_BODY = {
|
|
|
13
15
|
font-weight: 400;
|
|
14
16
|
`,
|
|
15
17
|
[TYPOGRAPHY_VARIANTS.B2]: css`
|
|
18
|
+
${typographyFontFamily}
|
|
16
19
|
font-size: ${(props) => props.fontSize ?? "0.8125rem"};
|
|
17
|
-
line-height: ${(props) => props.lineHeight ?? "
|
|
20
|
+
line-height: ${(props) => props.lineHeight ?? "1rem"};
|
|
18
21
|
@media (min-width: ${({ theme }) => theme.breakpoints.small}) {
|
|
19
22
|
font-size: ${(props) => props.fontSize ?? "1rem"};
|
|
20
|
-
line-height: ${(props) => props.lineHeight ?? "1.
|
|
23
|
+
line-height: ${(props) => props.lineHeight ?? "1.2307692308rem"};
|
|
21
24
|
}
|
|
22
25
|
font-weight: 400;
|
|
23
26
|
`,
|
|
24
27
|
[TYPOGRAPHY_VARIANTS.B3]: css`
|
|
28
|
+
${typographyFontFamily}
|
|
25
29
|
font-size: ${(props) => props.fontSize ?? "0.7475rem"};
|
|
26
30
|
line-height: ${(props) => props.lineHeight ?? "0.999375rem"};
|
|
27
31
|
@media (min-width: ${({ theme }) => theme.breakpoints.small}) {
|
|
@@ -31,6 +35,7 @@ const VARIANTS_CSS_BODY = {
|
|
|
31
35
|
font-weight: 400;
|
|
32
36
|
`,
|
|
33
37
|
[TYPOGRAPHY_VARIANTS.B4]: css`
|
|
38
|
+
${typographyFontFamily}
|
|
34
39
|
font-size: ${(props) => props.fontSize ?? "0.6906249999999999rem"};
|
|
35
40
|
line-height: ${(props) => props.lineHeight ?? "0.8125rem"};
|
|
36
41
|
@media (min-width: ${({ theme }) => theme.breakpoints.small}) {
|
|
@@ -40,6 +45,7 @@ const VARIANTS_CSS_BODY = {
|
|
|
40
45
|
font-weight: 400;
|
|
41
46
|
`,
|
|
42
47
|
[TYPOGRAPHY_VARIANTS.B1_LIGHT]: css`
|
|
48
|
+
${typographyFontFamily}
|
|
43
49
|
font-size: ${(props) => props.fontSize ?? "0.8775000000000001rem"};
|
|
44
50
|
line-height: ${(props) => props.lineHeight ?? "1.1212499999999999rem"};
|
|
45
51
|
color: ${(props) => props.theme.colors.neutral[600]};
|
|
@@ -50,16 +56,18 @@ const VARIANTS_CSS_BODY = {
|
|
|
50
56
|
font-weight: 400;
|
|
51
57
|
`,
|
|
52
58
|
[TYPOGRAPHY_VARIANTS.B2_LIGHT]: css`
|
|
59
|
+
${typographyFontFamily}
|
|
53
60
|
font-size: ${(props) => props.fontSize ?? "0.8125rem"};
|
|
54
|
-
line-height: ${(props) => props.lineHeight ?? "
|
|
61
|
+
line-height: ${(props) => props.lineHeight ?? "1rem"};
|
|
55
62
|
color: ${(props) => props.theme.colors.neutral[600]};
|
|
56
63
|
@media (min-width: ${({ theme }) => theme.breakpoints.small}) {
|
|
57
64
|
font-size: ${(props) => props.fontSize ?? "1rem"};
|
|
58
|
-
line-height: ${(props) => props.lineHeight ?? "1.
|
|
65
|
+
line-height: ${(props) => props.lineHeight ?? "1.2307692308rem"};
|
|
59
66
|
}
|
|
60
67
|
font-weight: 400;
|
|
61
68
|
`,
|
|
62
69
|
[TYPOGRAPHY_VARIANTS.B3_LIGHT]: css`
|
|
70
|
+
${typographyFontFamily}
|
|
63
71
|
font-size: ${(props) => props.fontSize ?? "0.7475rem"};
|
|
64
72
|
line-height: ${(props) => props.lineHeight ?? "0.999375rem"};
|
|
65
73
|
color: ${(props) => props.theme.colors.neutral[600]};
|
|
@@ -68,6 +76,17 @@ const VARIANTS_CSS_BODY = {
|
|
|
68
76
|
line-height: ${(props) => props.lineHeight ?? "1.23rem"};
|
|
69
77
|
}
|
|
70
78
|
font-weight: 400;
|
|
79
|
+
`,
|
|
80
|
+
[TYPOGRAPHY_VARIANTS.B3_STRONG]: css`
|
|
81
|
+
${typographyFontFamily}
|
|
82
|
+
font-size: ${(props) => props.fontSize ?? "0.7475rem"};
|
|
83
|
+
line-height: ${(props) => props.lineHeight ?? "0.999375rem"};
|
|
84
|
+
color: ${(props) => props.theme.colors.neutral[700]};
|
|
85
|
+
@media (min-width: ${({ theme }) => theme.breakpoints.small}) {
|
|
86
|
+
font-size: ${(props) => props.fontSize ?? "0.92rem"};
|
|
87
|
+
line-height: ${(props) => props.lineHeight ?? "1.23rem"};
|
|
88
|
+
}
|
|
89
|
+
font-weight: 600;
|
|
71
90
|
`
|
|
72
91
|
};
|
|
73
92
|
export {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/parts/variants/body.ts"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { css } from '@elliemae/ds-system';\nimport { TYPOGRAPHY_VARIANTS } from '../../constants/index.js';\nimport type { DSTypographyT } from '../../react-desc-prop-types.js';\n\n// typescript \"hack\" to infer the ReturnType of a generic function (css) with a generic argument (DSTypographyT.StyledPropsInterface)\n// as of 14/november/2023 I was not able to find a better way to do this.\nconst typedCss = () => css<DSTypographyT.StyledPropsInterface>``;\ntype BodyCSSMap = {\n [key in DSTypographyT.BodyVariants]: ReturnType<typeof typedCss>;\n};\n\n// as of 14/november/2023\n// mobile -> font-size: 16px\n// desktop -> font-size: 13px\n// the \"magic values\" of the rem units are the result of the following formula:\n// (variant's requirement px/RT value / 16px) for mobile\n// (variant's requirement px/RT value / 13px) for desktop\nexport const VARIANTS_CSS_BODY: BodyCSSMap = {\n [TYPOGRAPHY_VARIANTS.B1]: css<DSTypographyT.StyledPropsInterface>`\n font-size: ${(props) => props.fontSize ?? '0.8775000000000001rem'};\n line-height: ${(props) => props.lineHeight ?? '1.1212499999999999rem'};\n @media (min-width: ${({ theme }) => theme.breakpoints.small}) {\n font-size: ${(props) => props.fontSize ?? '1.08rem'};\n line-height: ${(props) => props.lineHeight ?? '1.38rem'};\n }\n font-weight: 400;\n `,\n [TYPOGRAPHY_VARIANTS.B2]: css<DSTypographyT.StyledPropsInterface>`\n font-size: ${(props) => props.fontSize ?? '0.8125rem'};\n line-height: ${(props) => props.lineHeight ?? '
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,WAAW;AACpB,SAAS,2BAA2B;
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { css } from '@elliemae/ds-system';\nimport { TYPOGRAPHY_VARIANTS } from '../../constants/index.js';\nimport type { DSTypographyT } from '../../react-desc-prop-types.js';\nimport { typographyFontFamily } from '../typographyFontFamily.js';\n\n// typescript \"hack\" to infer the ReturnType of a generic function (css) with a generic argument (DSTypographyT.StyledPropsInterface)\n// as of 14/november/2023 I was not able to find a better way to do this.\nconst typedCss = () => css<DSTypographyT.StyledPropsInterface>``;\ntype BodyCSSMap = {\n [key in DSTypographyT.BodyVariants]: ReturnType<typeof typedCss>;\n};\n\n// as of 14/november/2023\n// mobile -> font-size: 16px\n// desktop -> font-size: 13px\n// the \"magic values\" of the rem units are the result of the following formula:\n// (variant's requirement px/RT value / 16px) for mobile\n// (variant's requirement px/RT value / 13px) for desktop\nexport const VARIANTS_CSS_BODY: BodyCSSMap = {\n [TYPOGRAPHY_VARIANTS.B1]: css<DSTypographyT.StyledPropsInterface>`\n ${typographyFontFamily}\n font-size: ${(props) => props.fontSize ?? '0.8775000000000001rem'};\n line-height: ${(props) => props.lineHeight ?? '1.1212499999999999rem'};\n @media (min-width: ${({ theme }) => theme.breakpoints.small}) {\n font-size: ${(props) => props.fontSize ?? '1.08rem'};\n line-height: ${(props) => props.lineHeight ?? '1.38rem'};\n }\n font-weight: 400;\n `,\n [TYPOGRAPHY_VARIANTS.B2]: css<DSTypographyT.StyledPropsInterface>`\n ${typographyFontFamily}\n font-size: ${(props) => props.fontSize ?? '0.8125rem'};\n line-height: ${(props) => props.lineHeight ?? '1rem'};\n @media (min-width: ${({ theme }) => theme.breakpoints.small}) {\n font-size: ${(props) => props.fontSize ?? '1rem'};\n line-height: ${(props) => props.lineHeight ?? '1.2307692308rem'};\n }\n font-weight: 400;\n `,\n [TYPOGRAPHY_VARIANTS.B3]: css<DSTypographyT.StyledPropsInterface>`\n ${typographyFontFamily}\n font-size: ${(props) => props.fontSize ?? '0.7475rem'};\n line-height: ${(props) => props.lineHeight ?? '0.999375rem'};\n @media (min-width: ${({ theme }) => theme.breakpoints.small}) {\n font-size: ${(props) => props.fontSize ?? '0.92rem'};\n line-height: ${(props) => props.lineHeight ?? '1.23rem'};\n }\n font-weight: 400;\n `,\n [TYPOGRAPHY_VARIANTS.B4]: css<DSTypographyT.StyledPropsInterface>`\n ${typographyFontFamily}\n font-size: ${(props) => props.fontSize ?? '0.6906249999999999rem'};\n line-height: ${(props) => props.lineHeight ?? '0.8125rem'};\n @media (min-width: ${({ theme }) => theme.breakpoints.small}) {\n font-size: ${(props) => props.fontSize ?? '0.85rem'};\n line-height: ${(props) => props.lineHeight ?? '1rem'};\n }\n font-weight: 400;\n `,\n [TYPOGRAPHY_VARIANTS.B1_LIGHT]: css<DSTypographyT.StyledPropsInterface>`\n ${typographyFontFamily}\n font-size: ${(props) => props.fontSize ?? '0.8775000000000001rem'};\n line-height: ${(props) => props.lineHeight ?? '1.1212499999999999rem'};\n color: ${(props) => props.theme.colors.neutral[600]};\n @media (min-width: ${({ theme }) => theme.breakpoints.small}) {\n font-size: ${(props) => props.fontSize ?? '1.08rem'};\n line-height: ${(props) => props.lineHeight ?? '1.38rem'};\n }\n font-weight: 400;\n `,\n [TYPOGRAPHY_VARIANTS.B2_LIGHT]: css<DSTypographyT.StyledPropsInterface>`\n ${typographyFontFamily}\n font-size: ${(props) => props.fontSize ?? '0.8125rem'};\n line-height: ${(props) => props.lineHeight ?? '1rem'};\n color: ${(props) => props.theme.colors.neutral[600]};\n @media (min-width: ${({ theme }) => theme.breakpoints.small}) {\n font-size: ${(props) => props.fontSize ?? '1rem'};\n line-height: ${(props) => props.lineHeight ?? '1.2307692308rem'};\n }\n font-weight: 400;\n `,\n [TYPOGRAPHY_VARIANTS.B3_LIGHT]: css<DSTypographyT.StyledPropsInterface>`\n ${typographyFontFamily}\n font-size: ${(props) => props.fontSize ?? '0.7475rem'};\n line-height: ${(props) => props.lineHeight ?? '0.999375rem'};\n color: ${(props) => props.theme.colors.neutral[600]};\n @media (min-width: ${({ theme }) => theme.breakpoints.small}) {\n font-size: ${(props) => props.fontSize ?? '0.92rem'};\n line-height: ${(props) => props.lineHeight ?? '1.23rem'};\n }\n font-weight: 400;\n `,\n [TYPOGRAPHY_VARIANTS.B3_STRONG]: css<DSTypographyT.StyledPropsInterface>`\n ${typographyFontFamily}\n font-size: ${(props) => props.fontSize ?? '0.7475rem'};\n line-height: ${(props) => props.lineHeight ?? '0.999375rem'};\n color: ${(props) => props.theme.colors.neutral[700]};\n @media (min-width: ${({ theme }) => theme.breakpoints.small}) {\n font-size: ${(props) => props.fontSize ?? '0.92rem'};\n line-height: ${(props) => props.lineHeight ?? '1.23rem'};\n }\n font-weight: 600;\n `,\n};\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,WAAW;AACpB,SAAS,2BAA2B;AAEpC,SAAS,4BAA4B;AAIrC,MAAM,WAAW,MAAM;AAWhB,MAAM,oBAAgC;AAAA,EAC3C,CAAC,oBAAoB,EAAE,GAAG;AAAA,MACtB,oBAAoB;AAAA,iBACT,CAAC,UAAU,MAAM,YAAY,uBAAuB;AAAA,mBAClD,CAAC,UAAU,MAAM,cAAc,uBAAuB;AAAA,yBAChD,CAAC,EAAE,MAAM,MAAM,MAAM,YAAY,KAAK;AAAA,mBAC5C,CAAC,UAAU,MAAM,YAAY,SAAS;AAAA,qBACpC,CAAC,UAAU,MAAM,cAAc,SAAS;AAAA;AAAA;AAAA;AAAA,EAI3D,CAAC,oBAAoB,EAAE,GAAG;AAAA,MACtB,oBAAoB;AAAA,iBACT,CAAC,UAAU,MAAM,YAAY,WAAW;AAAA,mBACtC,CAAC,UAAU,MAAM,cAAc,MAAM;AAAA,yBAC/B,CAAC,EAAE,MAAM,MAAM,MAAM,YAAY,KAAK;AAAA,mBAC5C,CAAC,UAAU,MAAM,YAAY,MAAM;AAAA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AAM,OAAO,QAAQ,GAAG,CAAC;AAAA,yBAC9B,CAAC,EAAE,MAAM,MAAM,MAAM,YAAY,KAAK;AAAA,mBAC5C,CAAC,UAAU,MAAM,YAAY,MAAM;AAAA,qBACjC,CAAC,UAAU,MAAM,cAAc,iBAAiB;AAAA;AAAA;AAAA;AAAA,EAInE,CAAC,oBAAoB,QAAQ,GAAG;AAAA,MAC5B,oBAAoB;AAAA,iBACT,CAAC,UAAU,MAAM,YAAY,WAAW;AAAA,mBACtC,CAAC,UAAU,MAAM,cAAc,aAAa;AAAA,aAClD,CAAC,UAAU,MAAM,MAAM,OAAO,QAAQ,GAAG,CAAC;AAAA,yBAC9B,CAAC,EAAE,MAAM,MAAM,MAAM,YAAY,KAAK;AAAA,mBAC5C,CAAC,UAAU,MAAM,YAAY,SAAS;AAAA,qBACpC,CAAC,UAAU,MAAM,cAAc,SAAS;AAAA;AAAA;AAAA;AAAA,EAI3D,CAAC,oBAAoB,SAAS,GAAG;AAAA,MAC7B,oBAAoB;AAAA,iBACT,CAAC,UAAU,MAAM,YAAY,WAAW;AAAA,mBACtC,CAAC,UAAU,MAAM,cAAc,aAAa;AAAA,aAClD,CAAC,UAAU,MAAM,MAAM,OAAO,QAAQ,GAAG,CAAC;AAAA,yBAC9B,CAAC,EAAE,MAAM,MAAM,MAAM,YAAY,KAAK;AAAA,mBAC5C,CAAC,UAAU,MAAM,YAAY,SAAS;AAAA,qBACpC,CAAC,UAAU,MAAM,cAAc,SAAS;AAAA;AAAA;AAAA;AAI7D;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { css } from "@elliemae/ds-system";
|
|
3
3
|
import { TYPOGRAPHY_VARIANTS } from "../../constants/index.js";
|
|
4
|
+
import { typographyFontFamily } from "../typographyFontFamily.js";
|
|
4
5
|
const typedCss = () => css``;
|
|
5
6
|
const VARIANTS_BUTTON = {
|
|
6
7
|
[TYPOGRAPHY_VARIANTS.BUTTON]: css`
|
|
8
|
+
${typographyFontFamily}
|
|
7
9
|
font-size: ${(props) => props.fontSize ?? "0.8125rem"};
|
|
8
10
|
line-height: ${(props) => props.lineHeight ?? "1.503125rem"};
|
|
9
11
|
@media (min-width: ${({ theme }) => theme.breakpoints.small}) {
|
|
@@ -28,6 +30,7 @@ const VARIANTS_BUTTON = {
|
|
|
28
30
|
}
|
|
29
31
|
`,
|
|
30
32
|
[TYPOGRAPHY_VARIANTS.BUTTON_SML_TITLE]: css`
|
|
33
|
+
${typographyFontFamily}
|
|
31
34
|
font-size: ${(props) => props.fontSize ?? "0.875rem"};
|
|
32
35
|
line-height: ${(props) => props.lineHeight ?? "1.503125rem"};
|
|
33
36
|
@media (min-width: ${({ theme }) => theme.breakpoints.small}) {
|
|
@@ -52,6 +55,7 @@ const VARIANTS_BUTTON = {
|
|
|
52
55
|
}
|
|
53
56
|
`,
|
|
54
57
|
[TYPOGRAPHY_VARIANTS.BUTTON_MED_TITLE]: css`
|
|
58
|
+
${typographyFontFamily}
|
|
55
59
|
font-size: ${(props) => props.fontSize ?? "1rem"};
|
|
56
60
|
line-height: ${(props) => props.lineHeight ?? "1.503125rem"};
|
|
57
61
|
@media (min-width: ${({ theme }) => theme.breakpoints.small}) {
|
|
@@ -76,6 +80,7 @@ const VARIANTS_BUTTON = {
|
|
|
76
80
|
}
|
|
77
81
|
`,
|
|
78
82
|
[TYPOGRAPHY_VARIANTS.BUTTON_LRG_TITLE]: css`
|
|
83
|
+
${typographyFontFamily}
|
|
79
84
|
font-size: ${(props) => props.fontSize ?? "1.125rem"};
|
|
80
85
|
line-height: ${(props) => props.lineHeight ?? "1.503125rem"};
|
|
81
86
|
@media (min-width: ${({ theme }) => theme.breakpoints.small}) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/parts/variants/button.ts"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { css } from '@elliemae/ds-system';\nimport type { DSTypographyT } from '../../react-desc-prop-types.js';\nimport { TYPOGRAPHY_VARIANTS } from '../../constants/index.js';\n\n// typescript \"hack\" to infer the ReturnType of a generic function (css) with a generic argument (DSTypographyT.StyledPropsInterface)\n// as of 14/november/2023 I was not able to find a better way to do this.\nconst typedCss = () => css<DSTypographyT.StyledPropsInterface>``;\ntype ButtonCSSMap = {\n [key in DSTypographyT.ButtonVariants]: ReturnType<typeof typedCss>;\n};\n\n// as of 14/november/2023\n// mobile -> font-size: 16px\n// desktop -> font-size: 13px\n// the \"magic values\" of the rem units are the result of the following formula:\n// (variant's requirement px/RT value / 16px) for mobile\n// (variant's requirement px/RT value / 13px) for desktop\nexport const VARIANTS_BUTTON: ButtonCSSMap = {\n [TYPOGRAPHY_VARIANTS.BUTTON]: css<DSTypographyT.StyledPropsInterface>`\n font-size: ${(props) => props.fontSize ?? '0.8125rem'};\n line-height: ${(props) => props.lineHeight ?? '1.503125rem'};\n @media (min-width: ${({ theme }) => theme.breakpoints.small}) {\n font-size: ${(props) => props.fontSize ?? '1rem'};\n line-height: ${(props) => props.lineHeight ?? '1.85rem'};\n }\n text-decoration: underline;\n color: ${(props) => props.theme.colors.brand[600]};\n background: none;\n border: none;\n display: inline-block;\n text-align: left;\n cursor: pointer;\n &:hover {\n color: ${(props) => props.theme.colors.brand[700]};\n }\n &:active {\n color: ${(props) => props.theme.colors.brand[800]};\n }\n &:focus {\n color: ${(props) => props.theme.colors.brand[700]};\n }\n `,\n [TYPOGRAPHY_VARIANTS.BUTTON_SML_TITLE]: css<DSTypographyT.StyledPropsInterface>`\n font-size: ${(props) => props.fontSize ?? '0.875rem'};\n line-height: ${(props) => props.lineHeight ?? '1.503125rem'};\n @media (min-width: ${({ theme }) => theme.breakpoints.small}) {\n font-size: ${(props) => props.fontSize ?? '1.077rem'};\n line-height: ${(props) => props.lineHeight ?? '1.85rem'};\n }\n text-decoration: underline;\n color: ${(props) => props.theme.colors.brand[600]};\n background: none;\n border: none;\n display: inline-block;\n text-align: left;\n cursor: pointer;\n &:hover {\n color: ${(props) => props.theme.colors.brand[700]};\n }\n &:active {\n color: ${(props) => props.theme.colors.brand[800]};\n }\n &:focus {\n color: ${(props) => props.theme.colors.brand[700]};\n }\n `,\n [TYPOGRAPHY_VARIANTS.BUTTON_MED_TITLE]: css<DSTypographyT.StyledPropsInterface>`\n font-size: ${(props) => props.fontSize ?? '1rem'};\n line-height: ${(props) => props.lineHeight ?? '1.503125rem'};\n @media (min-width: ${({ theme }) => theme.breakpoints.small}) {\n font-size: ${(props) => props.fontSize ?? '1.231rem'};\n line-height: ${(props) => props.lineHeight ?? '1.85rem'};\n }\n text-decoration: underline;\n color: ${(props) => props.theme.colors.brand[600]};\n background: none;\n border: none;\n display: inline-block;\n text-align: left;\n cursor: pointer;\n &:hover {\n color: ${(props) => props.theme.colors.brand[700]};\n }\n &:active {\n color: ${(props) => props.theme.colors.brand[800]};\n }\n &:focus {\n color: ${(props) => props.theme.colors.brand[700]};\n }\n `,\n [TYPOGRAPHY_VARIANTS.BUTTON_LRG_TITLE]: css<DSTypographyT.StyledPropsInterface>`\n font-size: ${(props) => props.fontSize ?? '1.125rem'};\n line-height: ${(props) => props.lineHeight ?? '1.503125rem'};\n @media (min-width: ${({ theme }) => theme.breakpoints.small}) {\n font-size: ${(props) => props.fontSize ?? '1.385rem'};\n line-height: ${(props) => props.lineHeight ?? '1.85rem'};\n }\n text-decoration: underline;\n color: ${(props) => props.theme.colors.brand[600]};\n background: none;\n border: none;\n display: inline-block;\n text-align: left;\n cursor: pointer;\n &:hover {\n color: ${(props) => props.theme.colors.brand[700]};\n }\n &:active {\n color: ${(props) => props.theme.colors.brand[800]};\n }\n &:focus {\n color: ${(props) => props.theme.colors.brand[700]};\n }\n `,\n};\n"],
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,WAAW;AAEpB,SAAS,2BAA2B;
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { css } from '@elliemae/ds-system';\nimport type { DSTypographyT } from '../../react-desc-prop-types.js';\nimport { TYPOGRAPHY_VARIANTS } from '../../constants/index.js';\nimport { typographyFontFamily } from '../typographyFontFamily.js';\n\n// typescript \"hack\" to infer the ReturnType of a generic function (css) with a generic argument (DSTypographyT.StyledPropsInterface)\n// as of 14/november/2023 I was not able to find a better way to do this.\nconst typedCss = () => css<DSTypographyT.StyledPropsInterface>``;\ntype ButtonCSSMap = {\n [key in DSTypographyT.ButtonVariants]: ReturnType<typeof typedCss>;\n};\n\n// as of 14/november/2023\n// mobile -> font-size: 16px\n// desktop -> font-size: 13px\n// the \"magic values\" of the rem units are the result of the following formula:\n// (variant's requirement px/RT value / 16px) for mobile\n// (variant's requirement px/RT value / 13px) for desktop\nexport const VARIANTS_BUTTON: ButtonCSSMap = {\n [TYPOGRAPHY_VARIANTS.BUTTON]: css<DSTypographyT.StyledPropsInterface>`\n ${typographyFontFamily}\n font-size: ${(props) => props.fontSize ?? '0.8125rem'};\n line-height: ${(props) => props.lineHeight ?? '1.503125rem'};\n @media (min-width: ${({ theme }) => theme.breakpoints.small}) {\n font-size: ${(props) => props.fontSize ?? '1rem'};\n line-height: ${(props) => props.lineHeight ?? '1.85rem'};\n }\n text-decoration: underline;\n color: ${(props) => props.theme.colors.brand[600]};\n background: none;\n border: none;\n display: inline-block;\n text-align: left;\n cursor: pointer;\n &:hover {\n color: ${(props) => props.theme.colors.brand[700]};\n }\n &:active {\n color: ${(props) => props.theme.colors.brand[800]};\n }\n &:focus {\n color: ${(props) => props.theme.colors.brand[700]};\n }\n `,\n [TYPOGRAPHY_VARIANTS.BUTTON_SML_TITLE]: css<DSTypographyT.StyledPropsInterface>`\n ${typographyFontFamily}\n font-size: ${(props) => props.fontSize ?? '0.875rem'};\n line-height: ${(props) => props.lineHeight ?? '1.503125rem'};\n @media (min-width: ${({ theme }) => theme.breakpoints.small}) {\n font-size: ${(props) => props.fontSize ?? '1.077rem'};\n line-height: ${(props) => props.lineHeight ?? '1.85rem'};\n }\n text-decoration: underline;\n color: ${(props) => props.theme.colors.brand[600]};\n background: none;\n border: none;\n display: inline-block;\n text-align: left;\n cursor: pointer;\n &:hover {\n color: ${(props) => props.theme.colors.brand[700]};\n }\n &:active {\n color: ${(props) => props.theme.colors.brand[800]};\n }\n &:focus {\n color: ${(props) => props.theme.colors.brand[700]};\n }\n `,\n [TYPOGRAPHY_VARIANTS.BUTTON_MED_TITLE]: css<DSTypographyT.StyledPropsInterface>`\n ${typographyFontFamily}\n font-size: ${(props) => props.fontSize ?? '1rem'};\n line-height: ${(props) => props.lineHeight ?? '1.503125rem'};\n @media (min-width: ${({ theme }) => theme.breakpoints.small}) {\n font-size: ${(props) => props.fontSize ?? '1.231rem'};\n line-height: ${(props) => props.lineHeight ?? '1.85rem'};\n }\n text-decoration: underline;\n color: ${(props) => props.theme.colors.brand[600]};\n background: none;\n border: none;\n display: inline-block;\n text-align: left;\n cursor: pointer;\n &:hover {\n color: ${(props) => props.theme.colors.brand[700]};\n }\n &:active {\n color: ${(props) => props.theme.colors.brand[800]};\n }\n &:focus {\n color: ${(props) => props.theme.colors.brand[700]};\n }\n `,\n [TYPOGRAPHY_VARIANTS.BUTTON_LRG_TITLE]: css<DSTypographyT.StyledPropsInterface>`\n ${typographyFontFamily}\n font-size: ${(props) => props.fontSize ?? '1.125rem'};\n line-height: ${(props) => props.lineHeight ?? '1.503125rem'};\n @media (min-width: ${({ theme }) => theme.breakpoints.small}) {\n font-size: ${(props) => props.fontSize ?? '1.385rem'};\n line-height: ${(props) => props.lineHeight ?? '1.85rem'};\n }\n text-decoration: underline;\n color: ${(props) => props.theme.colors.brand[600]};\n background: none;\n border: none;\n display: inline-block;\n text-align: left;\n cursor: pointer;\n &:hover {\n color: ${(props) => props.theme.colors.brand[700]};\n }\n &:active {\n color: ${(props) => props.theme.colors.brand[800]};\n }\n &:focus {\n color: ${(props) => props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U,MAAM,MAAM,OAAO,MAAM,GAAG,CAAC;AAAA;AAAA;AAAA,eAGxC,CAAC,UAAU,MAAM,MAAM,OAAO,MAAM,GAAG,CAAC;AAAA;AAAA;AAAA,eAGxC,CAAC,UAAU,MAAM,MAAM,OAAO,MAAM,GAAG,CAAC;AAAA;AAAA;AAGvD;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,18 +1,23 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { css } from "@elliemae/ds-system";
|
|
3
3
|
import { TYPOGRAPHY_VARIANTS } from "../../constants/index.js";
|
|
4
|
+
import { typographyFontFamily } from "../typographyFontFamily.js";
|
|
4
5
|
const typedCss = () => css``;
|
|
5
6
|
const VARIANTS_CSS_FEEDBACK = {
|
|
6
7
|
[TYPOGRAPHY_VARIANTS.FEEDBACK_NEUTRAL]: css`
|
|
8
|
+
${typographyFontFamily}
|
|
7
9
|
color: ${(props) => props.theme.colors.neutral[600]};
|
|
8
10
|
`,
|
|
9
11
|
[TYPOGRAPHY_VARIANTS.FEEDBACK_BRAND]: css`
|
|
12
|
+
${typographyFontFamily}
|
|
10
13
|
color: ${(props) => props.theme.colors.brand[800]};
|
|
11
14
|
`,
|
|
12
15
|
[TYPOGRAPHY_VARIANTS.FEEDBACK_IMPORTANT]: css`
|
|
16
|
+
${typographyFontFamily}
|
|
13
17
|
color: ${(props) => props.theme.colors.warning[950]};
|
|
14
18
|
`,
|
|
15
19
|
[TYPOGRAPHY_VARIANTS.FEEDBACK_CRITICAL]: css`
|
|
20
|
+
${typographyFontFamily}
|
|
16
21
|
color: ${(props) => props.theme.colors.danger[950]};
|
|
17
22
|
`
|
|
18
23
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/parts/variants/feedback.ts"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { css } from '@elliemae/ds-system';\nimport { TYPOGRAPHY_VARIANTS } from '../../constants/index.js';\nimport type { DSTypographyT } from '../../react-desc-prop-types.js';\n\n// typescript \"hack\" to infer the ReturnType of a generic function (css) with a generic argument (DSTypographyT.StyledPropsInterface)\n// as of 14/november/2023 I was not able to find a better way to do this.\nconst typedCss = () => css<DSTypographyT.StyledPropsInterface>``;\ntype FeedbackCSSMap = {\n [key in DSTypographyT.FeedbackVariants]: ReturnType<typeof typedCss>;\n};\n\nexport const VARIANTS_CSS_FEEDBACK: FeedbackCSSMap = {\n [TYPOGRAPHY_VARIANTS.FEEDBACK_NEUTRAL]: css<DSTypographyT.StyledPropsInterface>`\n color: ${(props) => props.theme.colors.neutral[600]};\n `,\n [TYPOGRAPHY_VARIANTS.FEEDBACK_BRAND]: css<DSTypographyT.StyledPropsInterface>`\n color: ${(props) => props.theme.colors.brand[800]};\n `,\n [TYPOGRAPHY_VARIANTS.FEEDBACK_IMPORTANT]: css<DSTypographyT.StyledPropsInterface>`\n color: ${(props) => props.theme.colors.warning[950]};\n `,\n [TYPOGRAPHY_VARIANTS.FEEDBACK_CRITICAL]: css<DSTypographyT.StyledPropsInterface>`\n color: ${(props) => props.theme.colors.danger[950]};\n `,\n};\n"],
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,WAAW;AACpB,SAAS,2BAA2B;
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { css } from '@elliemae/ds-system';\nimport { TYPOGRAPHY_VARIANTS } from '../../constants/index.js';\nimport type { DSTypographyT } from '../../react-desc-prop-types.js';\nimport { typographyFontFamily } from '../typographyFontFamily.js';\n\n// typescript \"hack\" to infer the ReturnType of a generic function (css) with a generic argument (DSTypographyT.StyledPropsInterface)\n// as of 14/november/2023 I was not able to find a better way to do this.\nconst typedCss = () => css<DSTypographyT.StyledPropsInterface>``;\ntype FeedbackCSSMap = {\n [key in DSTypographyT.FeedbackVariants]: ReturnType<typeof typedCss>;\n};\n\nexport const VARIANTS_CSS_FEEDBACK: FeedbackCSSMap = {\n [TYPOGRAPHY_VARIANTS.FEEDBACK_NEUTRAL]: css<DSTypographyT.StyledPropsInterface>`\n ${typographyFontFamily}\n color: ${(props) => props.theme.colors.neutral[600]};\n `,\n [TYPOGRAPHY_VARIANTS.FEEDBACK_BRAND]: css<DSTypographyT.StyledPropsInterface>`\n ${typographyFontFamily}\n color: ${(props) => props.theme.colors.brand[800]};\n `,\n [TYPOGRAPHY_VARIANTS.FEEDBACK_IMPORTANT]: css<DSTypographyT.StyledPropsInterface>`\n ${typographyFontFamily}\n color: ${(props) => props.theme.colors.warning[950]};\n `,\n [TYPOGRAPHY_VARIANTS.FEEDBACK_CRITICAL]: css<DSTypographyT.StyledPropsInterface>`\n ${typographyFontFamily}\n color: ${(props) => props.theme.colors.danger[950]};\n `,\n};\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,WAAW;AACpB,SAAS,2BAA2B;AAEpC,SAAS,4BAA4B;AAIrC,MAAM,WAAW,MAAM;AAKhB,MAAM,wBAAwC;AAAA,EACnD,CAAC,oBAAoB,gBAAgB,GAAG;AAAA,MACpC,oBAAoB;AAAA,aACb,CAAC,UAAU,MAAM,MAAM,OAAO,QAAQ,GAAG,CAAC;AAAA;AAAA,EAErD,CAAC,oBAAoB,cAAc,GAAG;AAAA,MAClC,oBAAoB;AAAA,aACb,CAAC,UAAU,MAAM,MAAM,OAAO,MAAM,GAAG,CAAC;AAAA;AAAA,EAEnD,CAAC,oBAAoB,kBAAkB,GAAG;AAAA,MACtC,oBAAoB;AAAA,aACb,CAAC,UAAU,MAAM,MAAM,OAAO,QAAQ,GAAG,CAAC;AAAA;AAAA,EAErD,CAAC,oBAAoB,iBAAiB,GAAG;AAAA,MACrC,oBAAoB;AAAA,aACb,CAAC,UAAU,MAAM,MAAM,OAAO,OAAO,GAAG,CAAC;AAAA;AAEtD;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { css } from "@elliemae/ds-system";
|
|
3
3
|
import { TYPOGRAPHY_VARIANTS } from "../../constants/index.js";
|
|
4
|
+
import { typographyFontFamily } from "../typographyFontFamily.js";
|
|
4
5
|
const typedCss = () => css``;
|
|
5
6
|
const VARIANTS_CSS_HEADER_ARTICLE = {
|
|
6
7
|
// font-size: 34px/RT | line-height: 41px/RT
|
|
7
8
|
[TYPOGRAPHY_VARIANTS.H1_ARTICLE]: css`
|
|
9
|
+
${typographyFontFamily}
|
|
8
10
|
font-size: ${(props) => props.fontSize ?? "2.125rem"}; // 34px -> 34/16 = 2.125rem
|
|
9
11
|
line-height: ${(props) => props.lineHeight ?? "2.5625rem"}; // 41px -> 41/16 = 2.5625rem
|
|
10
12
|
@media (min-width: ${({ theme }) => theme.breakpoints.small}) {
|
|
@@ -19,6 +21,7 @@ const VARIANTS_CSS_HEADER_ARTICLE = {
|
|
|
19
21
|
`,
|
|
20
22
|
// font-size: 24px/RT | line-height: 31px/RT
|
|
21
23
|
[TYPOGRAPHY_VARIANTS.H2_ARTICLE]: css`
|
|
24
|
+
${typographyFontFamily}
|
|
22
25
|
font-size: ${(props) => props.fontSize ?? "1.5rem"}; // 24px -> 24/16 = 1.5rem
|
|
23
26
|
line-height: ${(props) => props.lineHeight ?? "1.9375rem"}; // 31px -> 31/16 = 1.9375rem
|
|
24
27
|
@media (min-width: ${({ theme }) => theme.breakpoints.small}) {
|
|
@@ -33,6 +36,7 @@ const VARIANTS_CSS_HEADER_ARTICLE = {
|
|
|
33
36
|
`,
|
|
34
37
|
// font-size: 18px/RT | line-height: 22px/RT
|
|
35
38
|
[TYPOGRAPHY_VARIANTS.H3_ARTICLE]: css`
|
|
39
|
+
${typographyFontFamily}
|
|
36
40
|
font-size: ${(props) => props.fontSize ?? "1.125rem"}; // 18px -> 18/16 = 1.125rem
|
|
37
41
|
line-height: ${(props) => props.lineHeight ?? "1.375rem"}; // 22px -> 22/16 = 1.375rem
|
|
38
42
|
@media (min-width: ${({ theme }) => theme.breakpoints.small}) {
|
|
@@ -47,6 +51,7 @@ const VARIANTS_CSS_HEADER_ARTICLE = {
|
|
|
47
51
|
`,
|
|
48
52
|
// font-size: 16px/RT | line-height: 20px/RT
|
|
49
53
|
[TYPOGRAPHY_VARIANTS.H4_ARTICLE]: css`
|
|
54
|
+
${typographyFontFamily}
|
|
50
55
|
font-size: ${(props) => props.fontSize ?? "1rem"}; // 16px -> 16/16 = 1rem
|
|
51
56
|
line-height: ${(props) => props.lineHeight ?? "1.25rem"}; // 20px -> 20/16 = 1.25rem
|
|
52
57
|
@media (min-width: ${({ theme }) => theme.breakpoints.small}) {
|
|
@@ -61,6 +66,7 @@ const VARIANTS_CSS_HEADER_ARTICLE = {
|
|
|
61
66
|
`,
|
|
62
67
|
// font-size: 14px/RT | line-height: 17px/RT
|
|
63
68
|
[TYPOGRAPHY_VARIANTS.H5_ARTICLE]: css`
|
|
69
|
+
${typographyFontFamily}
|
|
64
70
|
font-size: ${(props) => props.fontSize ?? "0.875rem"}; // 14px -> 14/16 = 0.875rem
|
|
65
71
|
line-height: ${(props) => props.lineHeight ?? "1.0625rem"}; // 17px -> 17/16 = 1.0625rem
|
|
66
72
|
@media (min-width: ${({ theme }) => theme.breakpoints.small}) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/parts/variants/header-article.ts"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { css } from '@elliemae/ds-system';\nimport { TYPOGRAPHY_VARIANTS } from '../../constants/index.js';\nimport type { DSTypographyT } from '../../react-desc-prop-types.js';\n\n// typescript \"hack\" to infer the ReturnType of a generic function (css) with a generic argument (DSTypographyT.StyledPropsInterface)\n// as of 14/november/2023 I was not able to find a better way to do this.\nconst typedCss = () => css<DSTypographyT.StyledPropsInterface>``;\ntype ArticleHeadingsCSSMap = {\n [key in DSTypographyT.ArticleHeadingVariants]: ReturnType<typeof typedCss>;\n};\n\n// as of 14/november/2023\n// mobile -> font-size: 16px\n// desktop -> font-size: 13px\n// the \"magic values\" of the rem units are the result of the following formula:\n// (variant's requirement px/RT value / 16px) for mobile\n// (variant's requirement px/RT value / 13px) for desktop\nexport const VARIANTS_CSS_HEADER_ARTICLE: ArticleHeadingsCSSMap = {\n // font-size: 34px/RT | line-height: 41px/RT\n [TYPOGRAPHY_VARIANTS.H1_ARTICLE]: css<DSTypographyT.StyledPropsInterface>`\n font-size: ${(props) => props.fontSize ?? '2.125rem'}; // 34px -> 34/16 = 2.125rem\n line-height: ${(props) => props.lineHeight ?? '2.5625rem'}; // 41px -> 41/16 = 2.5625rem\n @media (min-width: ${({ theme }) => theme.breakpoints.small}) {\n font-size: ${(props) => props.fontSize ?? '2.615384615384615rem'}; // 34px -> 34/13 = 2.615384615384615rem\n line-height: ${(props) => props.lineHeight ?? '3.153846153846154rem'}; // 41px -> 41/13 = 3.153846153846154rem\n }\n margin-bottom: 24px;\n color: ${(props) => props.theme.colors.neutral[700]};\n font-weight: 400;\n overflow-wrap: break-word;\n white-space: pre-wrap;\n `,\n // font-size: 24px/RT | line-height: 31px/RT\n [TYPOGRAPHY_VARIANTS.H2_ARTICLE]: css<DSTypographyT.StyledPropsInterface>`\n font-size: ${(props) => props.fontSize ?? '1.5rem'}; // 24px -> 24/16 = 1.5rem\n line-height: ${(props) => props.lineHeight ?? '1.9375rem'}; // 31px -> 31/16 = 1.9375rem\n @media (min-width: ${({ theme }) => theme.breakpoints.small}) {\n font-size: ${(props) => props.fontSize ?? '1.846153846153846rem'}; // 24px -> 24/13 = 1.846153846153846rem\n line-height: ${(props) => props.lineHeight ?? '2.384615384615385rem'}; // 31px -> 31/13 = 2.384615384615385rem\n }\n margin-bottom: 12px;\n color: ${(props) => props.theme.colors.neutral[700]};\n font-weight: 400;\n overflow-wrap: break-word;\n white-space: pre-wrap;\n `,\n // font-size: 18px/RT | line-height: 22px/RT\n [TYPOGRAPHY_VARIANTS.H3_ARTICLE]: css<DSTypographyT.StyledPropsInterface>`\n font-size: ${(props) => props.fontSize ?? '1.125rem'}; // 18px -> 18/16 = 1.125rem\n line-height: ${(props) => props.lineHeight ?? '1.375rem'}; // 22px -> 22/16 = 1.375rem\n @media (min-width: ${({ theme }) => theme.breakpoints.small}) {\n font-size: ${(props) => props.fontSize ?? '1.384615384615385rem'}; // 18px -> 18/13 = 1.384615384615385rem\n line-height: ${(props) => props.lineHeight ?? '1.692307692307692rem'}; // 22px -> 22/13 = 1.692307692307692rem\n }\n padding-bottom: 12px;\n color: ${(props) => props.theme.colors.neutral[700]};\n font-weight: 400;\n overflow-wrap: break-word;\n white-space: pre-wrap;\n `,\n // font-size: 16px/RT | line-height: 20px/RT\n [TYPOGRAPHY_VARIANTS.H4_ARTICLE]: css<DSTypographyT.StyledPropsInterface>`\n font-size: ${(props) => props.fontSize ?? '1rem'}; // 16px -> 16/16 = 1rem\n line-height: ${(props) => props.lineHeight ?? '1.25rem'}; // 20px -> 20/16 = 1.25rem\n @media (min-width: ${({ theme }) => theme.breakpoints.small}) {\n font-size: ${(props) => props.fontSize ?? '1.230769230769231rem'}; // 16px -> 16/13 = 1.230769230769231rem\n line-height: ${(props) => props.lineHeight ?? '1.538461538461538rem'}; // 20px -> 20/13 = 1.538461538461538rem\n }\n padding-bottom: 4px;\n color: ${(props) => props.theme.colors.neutral[700]};\n font-weight: 600;\n overflow-wrap: break-word;\n white-space: pre-wrap;\n `,\n // font-size: 14px/RT | line-height: 17px/RT\n [TYPOGRAPHY_VARIANTS.H5_ARTICLE]: css<DSTypographyT.StyledPropsInterface>`\n font-size: ${(props) => props.fontSize ?? '0.875rem'}; // 14px -> 14/16 = 0.875rem\n line-height: ${(props) => props.lineHeight ?? '1.0625rem'}; // 17px -> 17/16 = 1.0625rem\n @media (min-width: ${({ theme }) => theme.breakpoints.small}) {\n font-size: ${(props) => props.fontSize ?? '1.076923076923077rem'}; // 14px -> 14/13 = 1.076923076923077rem\n line-height: ${(props) => props.lineHeight ?? '1.307692307692308rem'}; // 17px -> 17/13 = 1.307692307692308rem\n }\n margin-bottom: 4px;\n color: ${(props) => props.theme.colors.neutral[700]};\n font-weight: 600;\n overflow-wrap: break-word;\n white-space: pre-wrap;\n `,\n};\n"],
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,WAAW;AACpB,SAAS,2BAA2B;
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { css } from '@elliemae/ds-system';\nimport { TYPOGRAPHY_VARIANTS } from '../../constants/index.js';\nimport type { DSTypographyT } from '../../react-desc-prop-types.js';\nimport { typographyFontFamily } from '../typographyFontFamily.js';\n\n// typescript \"hack\" to infer the ReturnType of a generic function (css) with a generic argument (DSTypographyT.StyledPropsInterface)\n// as of 14/november/2023 I was not able to find a better way to do this.\nconst typedCss = () => css<DSTypographyT.StyledPropsInterface>``;\ntype ArticleHeadingsCSSMap = {\n [key in DSTypographyT.ArticleHeadingVariants]: ReturnType<typeof typedCss>;\n};\n\n// as of 14/november/2023\n// mobile -> font-size: 16px\n// desktop -> font-size: 13px\n// the \"magic values\" of the rem units are the result of the following formula:\n// (variant's requirement px/RT value / 16px) for mobile\n// (variant's requirement px/RT value / 13px) for desktop\nexport const VARIANTS_CSS_HEADER_ARTICLE: ArticleHeadingsCSSMap = {\n // font-size: 34px/RT | line-height: 41px/RT\n [TYPOGRAPHY_VARIANTS.H1_ARTICLE]: css<DSTypographyT.StyledPropsInterface>`\n ${typographyFontFamily}\n font-size: ${(props) => props.fontSize ?? '2.125rem'}; // 34px -> 34/16 = 2.125rem\n line-height: ${(props) => props.lineHeight ?? '2.5625rem'}; // 41px -> 41/16 = 2.5625rem\n @media (min-width: ${({ theme }) => theme.breakpoints.small}) {\n font-size: ${(props) => props.fontSize ?? '2.615384615384615rem'}; // 34px -> 34/13 = 2.615384615384615rem\n line-height: ${(props) => props.lineHeight ?? '3.153846153846154rem'}; // 41px -> 41/13 = 3.153846153846154rem\n }\n margin-bottom: 24px;\n color: ${(props) => props.theme.colors.neutral[700]};\n font-weight: 400;\n overflow-wrap: break-word;\n white-space: pre-wrap;\n `,\n // font-size: 24px/RT | line-height: 31px/RT\n [TYPOGRAPHY_VARIANTS.H2_ARTICLE]: css<DSTypographyT.StyledPropsInterface>`\n ${typographyFontFamily}\n font-size: ${(props) => props.fontSize ?? '1.5rem'}; // 24px -> 24/16 = 1.5rem\n line-height: ${(props) => props.lineHeight ?? '1.9375rem'}; // 31px -> 31/16 = 1.9375rem\n @media (min-width: ${({ theme }) => theme.breakpoints.small}) {\n font-size: ${(props) => props.fontSize ?? '1.846153846153846rem'}; // 24px -> 24/13 = 1.846153846153846rem\n line-height: ${(props) => props.lineHeight ?? '2.384615384615385rem'}; // 31px -> 31/13 = 2.384615384615385rem\n }\n margin-bottom: 12px;\n color: ${(props) => props.theme.colors.neutral[700]};\n font-weight: 400;\n overflow-wrap: break-word;\n white-space: pre-wrap;\n `,\n // font-size: 18px/RT | line-height: 22px/RT\n [TYPOGRAPHY_VARIANTS.H3_ARTICLE]: css<DSTypographyT.StyledPropsInterface>`\n ${typographyFontFamily}\n font-size: ${(props) => props.fontSize ?? '1.125rem'}; // 18px -> 18/16 = 1.125rem\n line-height: ${(props) => props.lineHeight ?? '1.375rem'}; // 22px -> 22/16 = 1.375rem\n @media (min-width: ${({ theme }) => theme.breakpoints.small}) {\n font-size: ${(props) => props.fontSize ?? '1.384615384615385rem'}; // 18px -> 18/13 = 1.384615384615385rem\n line-height: ${(props) => props.lineHeight ?? '1.692307692307692rem'}; // 22px -> 22/13 = 1.692307692307692rem\n }\n padding-bottom: 12px;\n color: ${(props) => props.theme.colors.neutral[700]};\n font-weight: 400;\n overflow-wrap: break-word;\n white-space: pre-wrap;\n `,\n // font-size: 16px/RT | line-height: 20px/RT\n [TYPOGRAPHY_VARIANTS.H4_ARTICLE]: css<DSTypographyT.StyledPropsInterface>`\n ${typographyFontFamily}\n font-size: ${(props) => props.fontSize ?? '1rem'}; // 16px -> 16/16 = 1rem\n line-height: ${(props) => props.lineHeight ?? '1.25rem'}; // 20px -> 20/16 = 1.25rem\n @media (min-width: ${({ theme }) => theme.breakpoints.small}) {\n font-size: ${(props) => props.fontSize ?? '1.230769230769231rem'}; // 16px -> 16/13 = 1.230769230769231rem\n line-height: ${(props) => props.lineHeight ?? '1.538461538461538rem'}; // 20px -> 20/13 = 1.538461538461538rem\n }\n padding-bottom: 4px;\n color: ${(props) => props.theme.colors.neutral[700]};\n font-weight: 600;\n overflow-wrap: break-word;\n white-space: pre-wrap;\n `,\n // font-size: 14px/RT | line-height: 17px/RT\n [TYPOGRAPHY_VARIANTS.H5_ARTICLE]: css<DSTypographyT.StyledPropsInterface>`\n ${typographyFontFamily}\n font-size: ${(props) => props.fontSize ?? '0.875rem'}; // 14px -> 14/16 = 0.875rem\n line-height: ${(props) => props.lineHeight ?? '1.0625rem'}; // 17px -> 17/16 = 1.0625rem\n @media (min-width: ${({ theme }) => theme.breakpoints.small}) {\n font-size: ${(props) => props.fontSize ?? '1.076923076923077rem'}; // 14px -> 14/13 = 1.076923076923077rem\n line-height: ${(props) => props.lineHeight ?? '1.307692307692308rem'}; // 17px -> 17/13 = 1.307692307692308rem\n }\n margin-bottom: 4px;\n color: ${(props) => props.theme.colors.neutral[700]};\n font-weight: 600;\n overflow-wrap: break-word;\n white-space: pre-wrap;\n `,\n};\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,WAAW;AACpB,SAAS,2BAA2B;AAEpC,SAAS,4BAA4B;AAIrC,MAAM,WAAW,MAAM;AAWhB,MAAM,8BAAqD;AAAA;AAAA,EAEhE,CAAC,oBAAoB,UAAU,GAAG;AAAA,MAC9B,oBAAoB;AAAA,iBACT,CAAC,UAAU,MAAM,YAAY,UAAU;AAAA,mBACrC,CAAC,UAAU,MAAM,cAA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,MAAM,MAAM,MAAM,YAAY,KAAK;AAAA,mBAC5C,CAAC,UAAU,MAAM,YAAY,sBAAsB;AAAA,qBACjD,CAAC,UAAU,MAAM,cAAc,sBAAsB;AAAA;AAAA;AAAA,aAG7D,CAAC,UAAU,MAAM,MAAM,OAAO,QAAQ,GAAG,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMrD,CAAC,oBAAoB,UAAU,GAAG;AAAA,MAC9B,oBAAoB;AAAA,iBACT,CAAC,UAAU,MAAM,YAAY,UAAU;AAAA,mBACrC,CAAC,UAAU,MAAM,cAAc,WAAW;AAAA,yBACpC,CAAC,EAAE,MAAM,MAAM,MAAM,YAAY,KAAK;AAAA,mBAC5C,CAAC,UAAU,MAAM,YAAY,sBAAsB;AAAA,qBACjD,CAAC,UAAU,MAAM,cAAc,sBAAsB;AAAA;AAAA;AAAA,aAG7D,CAAC,UAAU,MAAM,MAAM,OAAO,QAAQ,GAAG,CAAC;AAAA;AAAA;AAAA;AAAA;AAKvD;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { css } from "@elliemae/ds-system";
|
|
3
3
|
import { TYPOGRAPHY_VARIANTS } from "../../constants/index.js";
|
|
4
|
+
import { typographyFontFamily } from "../typographyFontFamily.js";
|
|
4
5
|
const typedCss = () => css``;
|
|
5
6
|
const VARIANTS_CSS_HEADER = {
|
|
6
7
|
[TYPOGRAPHY_VARIANTS.H1]: css`
|
|
8
|
+
${typographyFontFamily}
|
|
7
9
|
font-size: ${(props) => props.fontSize ?? "2.12875rem"};
|
|
8
10
|
line-height: ${(props) => props.lineHeight ?? "2.5593749999999997rem"};
|
|
9
11
|
@media (min-width: ${({ theme }) => theme.breakpoints.small}) {
|
|
@@ -13,6 +15,7 @@ const VARIANTS_CSS_HEADER = {
|
|
|
13
15
|
font-weight: 400;
|
|
14
16
|
`,
|
|
15
17
|
[TYPOGRAPHY_VARIANTS.H2]: css`
|
|
18
|
+
${typographyFontFamily}
|
|
16
19
|
font-size: ${(props) => props.fontSize ?? "1.503125rem"};
|
|
17
20
|
line-height: ${(props) => props.lineHeight ?? "1.9337499999999999rem"};
|
|
18
21
|
@media (min-width: ${({ theme }) => theme.breakpoints.small}) {
|
|
@@ -22,6 +25,7 @@ const VARIANTS_CSS_HEADER = {
|
|
|
22
25
|
font-weight: 400;
|
|
23
26
|
`,
|
|
24
27
|
[TYPOGRAPHY_VARIANTS.H3]: css`
|
|
28
|
+
${typographyFontFamily}
|
|
25
29
|
font-size: ${(props) => props.fontSize ?? "1.1212499999999999rem"};
|
|
26
30
|
line-height: ${(props) => props.lineHeight ?? "1.373125rem"};
|
|
27
31
|
@media (min-width: ${({ theme }) => theme.breakpoints.small}) {
|
|
@@ -31,6 +35,7 @@ const VARIANTS_CSS_HEADER = {
|
|
|
31
35
|
font-weight: 400;
|
|
32
36
|
`,
|
|
33
37
|
[TYPOGRAPHY_VARIANTS.H4]: css`
|
|
38
|
+
${typographyFontFamily}
|
|
34
39
|
font-size: ${(props) => props.fontSize ?? "0.999375rem"};
|
|
35
40
|
line-height: ${(props) => props.lineHeight ?? "1.25125rem"};
|
|
36
41
|
@media (min-width: ${({ theme }) => theme.breakpoints.small}) {
|
|
@@ -40,6 +45,7 @@ const VARIANTS_CSS_HEADER = {
|
|
|
40
45
|
font-weight: 400;
|
|
41
46
|
`,
|
|
42
47
|
[TYPOGRAPHY_VARIANTS.H5]: css`
|
|
48
|
+
${typographyFontFamily}
|
|
43
49
|
font-size: ${(props) => props.fontSize ?? "0.8775000000000001rem"};
|
|
44
50
|
line-height: ${(props) => props.lineHeight ?? "1.064375rem"};
|
|
45
51
|
@media (min-width: ${({ theme }) => theme.breakpoints.small}) {
|
|
@@ -49,6 +55,7 @@ const VARIANTS_CSS_HEADER = {
|
|
|
49
55
|
font-weight: 400;
|
|
50
56
|
`,
|
|
51
57
|
[TYPOGRAPHY_VARIANTS.H5_STRONG]: css`
|
|
58
|
+
${typographyFontFamily}
|
|
52
59
|
font-size: ${(props) => props.fontSize ?? "0.8775000000000001rem"};
|
|
53
60
|
line-height: ${(props) => props.lineHeight ?? "1.064375rem"};
|
|
54
61
|
@media (min-width: ${({ theme }) => theme.breakpoints.small}) {
|
|
@@ -58,6 +65,7 @@ const VARIANTS_CSS_HEADER = {
|
|
|
58
65
|
font-weight: 600;
|
|
59
66
|
`,
|
|
60
67
|
[TYPOGRAPHY_VARIANTS.H4_STRONG]: css`
|
|
68
|
+
${typographyFontFamily}
|
|
61
69
|
font-size: ${(props) => props.fontSize ?? "0.999375rem"};
|
|
62
70
|
line-height: ${(props) => props.lineHeight ?? "1.25125rem"};
|
|
63
71
|
@media (min-width: ${({ theme }) => theme.breakpoints.small}) {
|
|
@@ -67,6 +75,7 @@ const VARIANTS_CSS_HEADER = {
|
|
|
67
75
|
font-weight: 600;
|
|
68
76
|
`,
|
|
69
77
|
[TYPOGRAPHY_VARIANTS.H3_STRONG]: css`
|
|
78
|
+
${typographyFontFamily}
|
|
70
79
|
font-size: ${(props) => props.fontSize ?? "1.1212499999999999rem"};
|
|
71
80
|
line-height: ${(props) => props.lineHeight ?? "1.373125rem"};
|
|
72
81
|
@media (min-width: ${({ theme }) => theme.breakpoints.small}) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/parts/variants/header.ts"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { css } from '@elliemae/ds-system';\nimport { TYPOGRAPHY_VARIANTS } from '../../constants/index.js';\nimport type { DSTypographyT } from '../../react-desc-prop-types.js';\n\n// typescript \"hack\" to infer the ReturnType of a generic function (css) with a generic argument (DSTypographyT.StyledPropsInterface)\n// as of 14/november/2023 I was not able to find a better way to do this.\nconst typedCss = () => css<DSTypographyT.StyledPropsInterface>``;\ntype HeadingCSSMap = {\n [key in DSTypographyT.HeadingVariants]: ReturnType<typeof typedCss>;\n};\n\n// as of 14/november/2023\n// mobile -> font-size: 16px\n// desktop -> font-size: 13px\n// the \"magic values\" of the rem units are the result of the following formula:\n// (variant's requirement px/RT value / 16px) for mobile\n// (variant's requirement px/RT value / 13px) for desktop\nexport const VARIANTS_CSS_HEADER: HeadingCSSMap = {\n [TYPOGRAPHY_VARIANTS.H1]: css<DSTypographyT.StyledPropsInterface>`\n font-size: ${(props) => props.fontSize ?? '2.12875rem'};\n line-height: ${(props) => props.lineHeight ?? '2.5593749999999997rem'};\n @media (min-width: ${({ theme }) => theme.breakpoints.small}) {\n font-size: ${(props) => props.fontSize ?? '2.62rem'};\n line-height: ${(props) => props.lineHeight ?? '3.15rem'};\n }\n font-weight: 400;\n `,\n [TYPOGRAPHY_VARIANTS.H2]: css<DSTypographyT.StyledPropsInterface>`\n font-size: ${(props) => props.fontSize ?? '1.503125rem'};\n line-height: ${(props) => props.lineHeight ?? '1.9337499999999999rem'};\n @media (min-width: ${({ theme }) => theme.breakpoints.small}) {\n font-size: ${(props) => props.fontSize ?? '1.85rem'};\n line-height: ${(props) => props.lineHeight ?? '2.38rem'};\n }\n font-weight: 400;\n `,\n [TYPOGRAPHY_VARIANTS.H3]: css<DSTypographyT.StyledPropsInterface>`\n font-size: ${(props) => props.fontSize ?? '1.1212499999999999rem'};\n line-height: ${(props) => props.lineHeight ?? '1.373125rem'};\n @media (min-width: ${({ theme }) => theme.breakpoints.small}) {\n font-size: ${(props) => props.fontSize ?? '1.38rem'};\n line-height: ${(props) => props.lineHeight ?? '1.69rem'};\n }\n font-weight: 400;\n `,\n [TYPOGRAPHY_VARIANTS.H4]: css<DSTypographyT.StyledPropsInterface>`\n font-size: ${(props) => props.fontSize ?? '0.999375rem'};\n line-height: ${(props) => props.lineHeight ?? '1.25125rem'};\n @media (min-width: ${({ theme }) => theme.breakpoints.small}) {\n font-size: ${(props) => props.fontSize ?? '1.23rem'};\n line-height: ${(props) => props.lineHeight ?? '1.54rem'};\n }\n font-weight: 400;\n `,\n [TYPOGRAPHY_VARIANTS.H5]: css<DSTypographyT.StyledPropsInterface>`\n font-size: ${(props) => props.fontSize ?? '0.8775000000000001rem'};\n line-height: ${(props) => props.lineHeight ?? '1.064375rem'};\n @media (min-width: ${({ theme }) => theme.breakpoints.small}) {\n font-size: ${(props) => props.fontSize ?? '1.08rem'};\n line-height: ${(props) => props.lineHeight ?? '1.31rem'};\n }\n font-weight: 400;\n `,\n [TYPOGRAPHY_VARIANTS.H5_STRONG]: css<DSTypographyT.StyledPropsInterface>`\n font-size: ${(props) => props.fontSize ?? '0.8775000000000001rem'};\n line-height: ${(props) => props.lineHeight ?? '1.064375rem'};\n @media (min-width: ${({ theme }) => theme.breakpoints.small}) {\n font-size: ${(props) => props.fontSize ?? '1.08rem'};\n line-height: ${(props) => props.lineHeight ?? '1.31rem'};\n }\n font-weight: 600;\n `,\n [TYPOGRAPHY_VARIANTS.H4_STRONG]: css<DSTypographyT.StyledPropsInterface>`\n font-size: ${(props) => props.fontSize ?? '0.999375rem'};\n line-height: ${(props) => props.lineHeight ?? '1.25125rem'};\n @media (min-width: ${({ theme }) => theme.breakpoints.small}) {\n font-size: ${(props) => props.fontSize ?? '1.23rem'};\n line-height: ${(props) => props.lineHeight ?? '1.54rem'};\n }\n font-weight: 600;\n `,\n [TYPOGRAPHY_VARIANTS.H3_STRONG]: css<DSTypographyT.StyledPropsInterface>`\n font-size: ${(props) => props.fontSize ?? '1.1212499999999999rem'};\n line-height: ${(props) => props.lineHeight ?? '1.373125rem'};\n @media (min-width: ${({ theme }) => theme.breakpoints.small}) {\n font-size: ${(props) => props.fontSize ?? '1.38rem'};\n line-height: ${(props) => props.lineHeight ?? '1.69rem'};\n }\n font-weight: 600;\n `,\n};\n"],
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,WAAW;AACpB,SAAS,2BAA2B;
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { css } from '@elliemae/ds-system';\nimport { TYPOGRAPHY_VARIANTS } from '../../constants/index.js';\nimport type { DSTypographyT } from '../../react-desc-prop-types.js';\nimport { typographyFontFamily } from '../typographyFontFamily.js';\n\n// typescript \"hack\" to infer the ReturnType of a generic function (css) with a generic argument (DSTypographyT.StyledPropsInterface)\n// as of 14/november/2023 I was not able to find a better way to do this.\nconst typedCss = () => css<DSTypographyT.StyledPropsInterface>``;\ntype HeadingCSSMap = {\n [key in DSTypographyT.HeadingVariants]: ReturnType<typeof typedCss>;\n};\n\n// as of 14/november/2023\n// mobile -> font-size: 16px\n// desktop -> font-size: 13px\n// the \"magic values\" of the rem units are the result of the following formula:\n// (variant's requirement px/RT value / 16px) for mobile\n// (variant's requirement px/RT value / 13px) for desktop\nexport const VARIANTS_CSS_HEADER: HeadingCSSMap = {\n [TYPOGRAPHY_VARIANTS.H1]: css<DSTypographyT.StyledPropsInterface>`\n ${typographyFontFamily}\n font-size: ${(props) => props.fontSize ?? '2.12875rem'};\n line-height: ${(props) => props.lineHeight ?? '2.5593749999999997rem'};\n @media (min-width: ${({ theme }) => theme.breakpoints.small}) {\n font-size: ${(props) => props.fontSize ?? '2.62rem'};\n line-height: ${(props) => props.lineHeight ?? '3.15rem'};\n }\n font-weight: 400;\n `,\n [TYPOGRAPHY_VARIANTS.H2]: css<DSTypographyT.StyledPropsInterface>`\n ${typographyFontFamily}\n font-size: ${(props) => props.fontSize ?? '1.503125rem'};\n line-height: ${(props) => props.lineHeight ?? '1.9337499999999999rem'};\n @media (min-width: ${({ theme }) => theme.breakpoints.small}) {\n font-size: ${(props) => props.fontSize ?? '1.85rem'};\n line-height: ${(props) => props.lineHeight ?? '2.38rem'};\n }\n font-weight: 400;\n `,\n [TYPOGRAPHY_VARIANTS.H3]: css<DSTypographyT.StyledPropsInterface>`\n ${typographyFontFamily}\n font-size: ${(props) => props.fontSize ?? '1.1212499999999999rem'};\n line-height: ${(props) => props.lineHeight ?? '1.373125rem'};\n @media (min-width: ${({ theme }) => theme.breakpoints.small}) {\n font-size: ${(props) => props.fontSize ?? '1.38rem'};\n line-height: ${(props) => props.lineHeight ?? '1.69rem'};\n }\n font-weight: 400;\n `,\n [TYPOGRAPHY_VARIANTS.H4]: css<DSTypographyT.StyledPropsInterface>`\n ${typographyFontFamily}\n font-size: ${(props) => props.fontSize ?? '0.999375rem'};\n line-height: ${(props) => props.lineHeight ?? '1.25125rem'};\n @media (min-width: ${({ theme }) => theme.breakpoints.small}) {\n font-size: ${(props) => props.fontSize ?? '1.23rem'};\n line-height: ${(props) => props.lineHeight ?? '1.54rem'};\n }\n font-weight: 400;\n `,\n [TYPOGRAPHY_VARIANTS.H5]: css<DSTypographyT.StyledPropsInterface>`\n ${typographyFontFamily}\n font-size: ${(props) => props.fontSize ?? '0.8775000000000001rem'};\n line-height: ${(props) => props.lineHeight ?? '1.064375rem'};\n @media (min-width: ${({ theme }) => theme.breakpoints.small}) {\n font-size: ${(props) => props.fontSize ?? '1.08rem'};\n line-height: ${(props) => props.lineHeight ?? '1.31rem'};\n }\n font-weight: 400;\n `,\n [TYPOGRAPHY_VARIANTS.H5_STRONG]: css<DSTypographyT.StyledPropsInterface>`\n ${typographyFontFamily}\n font-size: ${(props) => props.fontSize ?? '0.8775000000000001rem'};\n line-height: ${(props) => props.lineHeight ?? '1.064375rem'};\n @media (min-width: ${({ theme }) => theme.breakpoints.small}) {\n font-size: ${(props) => props.fontSize ?? '1.08rem'};\n line-height: ${(props) => props.lineHeight ?? '1.31rem'};\n }\n font-weight: 600;\n `,\n [TYPOGRAPHY_VARIANTS.H4_STRONG]: css<DSTypographyT.StyledPropsInterface>`\n ${typographyFontFamily}\n font-size: ${(props) => props.fontSize ?? '0.999375rem'};\n line-height: ${(props) => props.lineHeight ?? '1.25125rem'};\n @media (min-width: ${({ theme }) => theme.breakpoints.small}) {\n font-size: ${(props) => props.fontSize ?? '1.23rem'};\n line-height: ${(props) => props.lineHeight ?? '1.54rem'};\n }\n font-weight: 600;\n `,\n [TYPOGRAPHY_VARIANTS.H3_STRONG]: css<DSTypographyT.StyledPropsInterface>`\n ${typographyFontFamily}\n font-size: ${(props) => props.fontSize ?? '1.1212499999999999rem'};\n line-height: ${(props) => props.lineHeight ?? '1.373125rem'};\n @media (min-width: ${({ theme }) => theme.breakpoints.small}) {\n font-size: ${(props) => props.fontSize ?? '1.38rem'};\n line-height: ${(props) => props.lineHeight ?? '1.69rem'};\n }\n font-weight: 600;\n `,\n};\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,WAAW;AACpB,SAAS,2BAA2B;AAEpC,SAAS,4BAA4B;AAIrC,MAAM,WAAW,MAAM;AAWhB,MAAM,sBAAqC;AAAA,EAChD,CAAC,oBAAoB,EAAE,GAAG;AAAA,MACtB,oBAAoB;AAAA,iBACT,CAAC,UAAU,MAAM,YAAY,YAAY;AAAA,mBACvC,CAAC,UAAU,MAAM,cAAc,uBAAuB;AAAA,yBAChD,CAAC,EAAE,MAAM,MAAM,MAAM,YAAY,KAAK;AAAA,mBAC5C,CAAC,UAAU,MAAM,YAAY,SAAS;AAAA,qBACpC,CAAC,UAAU,MAAM,cAAc,SAAS;AAAA;AAAA;AAAA;AAAA,EAI3D,CAAC,oBAAoB,EAAE,GAAG;AAAA,MACtB,oBAAoB;AAAA,iBACT,CAAC,UAAU,MAAM,YAAY,aAAa;AAAA,mBACxC,CAAC,UAAU,MAAM,cAAc,uBAAuB;AAAA,yBAChD,CAAC,EAAE,MAAM,MAAM,MAAM,YAAY,KAAK;AAAA,mBAC5C,CAAC,UAAU,MAAM,YAAY,SAAS;AAAA,qBACpC,CAAC,UAAU,MAAM,cAAc,SAAS;AAAA;AAAA;AAAA;AAAA,EAI3D,CAAC,oBAAoB,EAAE,GAAG;AAAA,MACtB,oBAAoB;AAAA,iBACT,CAAC,UAAU,MAAM,YAAY,uBAAuB;AAAA,mBAClD,CAAC,UAAU,MAAM,cAAc,aAAa;AAAA,yBACtC,CAAC,EAAE,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E,MAAM,MAAM,MAAM,YAAY,KAAK;AAAA,mBAC5C,CAAC,UAAU,MAAM,YAAY,SAAS;AAAA,qBACpC,CAAC,UAAU,MAAM,cAAc,SAAS;AAAA;AAAA;AAAA;AAAA,EAI3D,CAAC,oBAAoB,SAAS,GAAG;AAAA,MAC7B,oBAAoB;AAAA,iBACT,CAAC,UAAU,MAAM,YAAY,uBAAuB;AAAA,mBAClD,CAAC,UAAU,MAAM,cAAc,aAAa;AAAA,yBACtC,CAAC,EAAE,MAAM,MAAM,MAAM,YAAY,KAAK;AAAA,mBAC5C,CAAC,UAAU,MAAM,YAAY,SAAS;AAAA,qBACpC,CAAC,UAAU,MAAM,cAAc,SAAS;AAAA;AAAA;AAAA;AAI7D;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { css } from "@elliemae/ds-system";
|
|
3
3
|
import { TYPOGRAPHY_VARIANTS } from "../../constants/index.js";
|
|
4
|
+
import { typographyFontFamily } from "../typographyFontFamily.js";
|
|
4
5
|
const typedCss = () => css``;
|
|
5
6
|
const VARIANTS_CSS_HIGHLIGHT = {
|
|
6
7
|
[TYPOGRAPHY_VARIANTS.HIGHLIGHT_NEUTRAL]: css`
|
|
8
|
+
${typographyFontFamily}
|
|
7
9
|
padding: 0px 4px;
|
|
8
10
|
margin: 0px 1px;
|
|
9
11
|
border-radius: 4px;
|
|
@@ -11,6 +13,7 @@ const VARIANTS_CSS_HIGHLIGHT = {
|
|
|
11
13
|
color: ${(props) => props.theme.colors.neutral[600]};
|
|
12
14
|
`,
|
|
13
15
|
[TYPOGRAPHY_VARIANTS.HIGHLIGHT_BRAND]: css`
|
|
16
|
+
${typographyFontFamily}
|
|
14
17
|
padding: 0px 4px;
|
|
15
18
|
margin: 0px 1px;
|
|
16
19
|
border-radius: 4px;
|
|
@@ -18,6 +21,7 @@ const VARIANTS_CSS_HIGHLIGHT = {
|
|
|
18
21
|
color: ${(props) => props.theme.colors.brand[800]};
|
|
19
22
|
`,
|
|
20
23
|
[TYPOGRAPHY_VARIANTS.HIGHLIGHT_IMPORTANT]: css`
|
|
24
|
+
${typographyFontFamily}
|
|
21
25
|
padding: 0px 4px;
|
|
22
26
|
margin: 0px 1px;
|
|
23
27
|
border-radius: 4px;
|
|
@@ -25,6 +29,7 @@ const VARIANTS_CSS_HIGHLIGHT = {
|
|
|
25
29
|
color: ${(props) => props.theme.colors.warning[950]};
|
|
26
30
|
`,
|
|
27
31
|
[TYPOGRAPHY_VARIANTS.HIGHLIGHT_CRITICAL]: css`
|
|
32
|
+
${typographyFontFamily}
|
|
28
33
|
padding: 0px 4px;
|
|
29
34
|
margin: 0px 1px;
|
|
30
35
|
border-radius: 4px;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/parts/variants/highlight.ts"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { css } from '@elliemae/ds-system';\nimport { TYPOGRAPHY_VARIANTS } from '../../constants/index.js';\nimport type { DSTypographyT } from '../../react-desc-prop-types.js';\n\n// typescript \"hack\" to infer the ReturnType of a generic function (css) with a generic argument (DSTypographyT.StyledPropsInterface)\n// as of 14/november/2023 I was not able to find a better way to do this.\nconst typedCss = () => css<DSTypographyT.StyledPropsInterface>``;\ntype HighlightCSSMap = {\n [key in DSTypographyT.HighlightVariants]: ReturnType<typeof typedCss>;\n};\n\nexport const VARIANTS_CSS_HIGHLIGHT: HighlightCSSMap = {\n [TYPOGRAPHY_VARIANTS.HIGHLIGHT_NEUTRAL]: css<DSTypographyT.StyledPropsInterface>`\n padding: 0px 4px;\n margin: 0px 1px;\n border-radius: 4px;\n background-color: ${(props) => props.theme.colors.neutral['050']};\n color: ${(props) => props.theme.colors.neutral[600]};\n `,\n [TYPOGRAPHY_VARIANTS.HIGHLIGHT_BRAND]: css<DSTypographyT.StyledPropsInterface>`\n padding: 0px 4px;\n margin: 0px 1px;\n border-radius: 4px;\n background-color: ${(props) => props.theme.colors.brand[200]};\n color: ${(props) => props.theme.colors.brand[800]};\n `,\n [TYPOGRAPHY_VARIANTS.HIGHLIGHT_IMPORTANT]: css<DSTypographyT.StyledPropsInterface>`\n padding: 0px 4px;\n margin: 0px 1px;\n border-radius: 4px;\n background-color: ${(props) => props.theme.colors.warning[400]};\n color: ${(props) => props.theme.colors.warning[950]};\n `,\n [TYPOGRAPHY_VARIANTS.HIGHLIGHT_CRITICAL]: css<DSTypographyT.StyledPropsInterface>`\n padding: 0px 4px;\n margin: 0px 1px;\n border-radius: 4px;\n background-color: ${(props) => props.theme.colors.danger[400]};\n color: ${(props) => props.theme.colors.danger[950]};\n `,\n};\n"],
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,WAAW;AACpB,SAAS,2BAA2B;
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { css } from '@elliemae/ds-system';\nimport { TYPOGRAPHY_VARIANTS } from '../../constants/index.js';\nimport type { DSTypographyT } from '../../react-desc-prop-types.js';\nimport { typographyFontFamily } from '../typographyFontFamily.js';\n\n// typescript \"hack\" to infer the ReturnType of a generic function (css) with a generic argument (DSTypographyT.StyledPropsInterface)\n// as of 14/november/2023 I was not able to find a better way to do this.\nconst typedCss = () => css<DSTypographyT.StyledPropsInterface>``;\ntype HighlightCSSMap = {\n [key in DSTypographyT.HighlightVariants]: ReturnType<typeof typedCss>;\n};\n\nexport const VARIANTS_CSS_HIGHLIGHT: HighlightCSSMap = {\n [TYPOGRAPHY_VARIANTS.HIGHLIGHT_NEUTRAL]: css<DSTypographyT.StyledPropsInterface>`\n ${typographyFontFamily}\n padding: 0px 4px;\n margin: 0px 1px;\n border-radius: 4px;\n background-color: ${(props) => props.theme.colors.neutral['050']};\n color: ${(props) => props.theme.colors.neutral[600]};\n `,\n [TYPOGRAPHY_VARIANTS.HIGHLIGHT_BRAND]: css<DSTypographyT.StyledPropsInterface>`\n ${typographyFontFamily}\n padding: 0px 4px;\n margin: 0px 1px;\n border-radius: 4px;\n background-color: ${(props) => props.theme.colors.brand[200]};\n color: ${(props) => props.theme.colors.brand[800]};\n `,\n [TYPOGRAPHY_VARIANTS.HIGHLIGHT_IMPORTANT]: css<DSTypographyT.StyledPropsInterface>`\n ${typographyFontFamily}\n padding: 0px 4px;\n margin: 0px 1px;\n border-radius: 4px;\n background-color: ${(props) => props.theme.colors.warning[400]};\n color: ${(props) => props.theme.colors.warning[950]};\n `,\n [TYPOGRAPHY_VARIANTS.HIGHLIGHT_CRITICAL]: css<DSTypographyT.StyledPropsInterface>`\n ${typographyFontFamily}\n padding: 0px 4px;\n margin: 0px 1px;\n border-radius: 4px;\n background-color: ${(props) => props.theme.colors.danger[400]};\n color: ${(props) => props.theme.colors.danger[950]};\n `,\n};\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,WAAW;AACpB,SAAS,2BAA2B;AAEpC,SAAS,4BAA4B;AAIrC,MAAM,WAAW,MAAM;AAKhB,MAAM,yBAA0C;AAAA,EACrD,CAAC,oBAAoB,iBAAiB,GAAG;AAAA,MACrC,oBAAoB;AAAA;AAAA;AAAA;AAAA,wBAIF,CAAC,UAAU,MAAM,MAAM,OAAO,QAAQ,KAAK,CAAC;AAAA,aACvD,CAAC,UAAU,MAAM,MAAM,OAAO,QAAQ,GAAG,CAAC;AAAA;AAAA,EAErD,CAAC,oBAAoB,eAAe,GAAG;AAAA,MACnC,oBAAoB;AAAA;AAAA;AAAA;AAAA,wBAIF,CAAC,UAAU,MAAM,MAAM,OAAO,MAAM,GAAG,CAAC;AAAA,aACnD,CAAC,UAAU,MAAM,MAAM,OAAO,MAAM,GAAG,CAAC;AAAA;AAAA,EAEnD,CAAC,oBAAoB,mBAAmB,GAAG;AAAA,MACvC,oBAAoB;AAAA;AAAA;AAAA;AAAA,wBAIF,CAAC,UAAU,MAAM,MAAM,OAAO,QAAQ,GAAG,CAAC;AAAA,aACrD,CAAC,UAAU,MAAM,MAAM,OAAO,QAAQ,GAAG,CAAC;AAAA;AAAA,EAErD,CAAC,oBAAoB,kBAAkB,GAAG;AAAA,MACtC,oBAAoB;AAAA;AAAA;AAAA;AAAA,wBAIF,CAAC,UAAU,MAAM,MAAM,OAAO,OAAO,GAAG,CAAC;AAAA,aACpD,CAAC,UAAU,MAAM,MAAM,OAAO,OAAO,GAAG,CAAC;AAAA;AAEtD;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { css } from "@elliemae/ds-system";
|
|
3
3
|
import { TYPOGRAPHY_VARIANTS } from "../../constants/index.js";
|
|
4
|
+
import { typographyFontFamily } from "../typographyFontFamily.js";
|
|
4
5
|
const typedCss = () => css``;
|
|
5
6
|
const VARIANTS_LINK = {
|
|
6
7
|
[TYPOGRAPHY_VARIANTS.LINK]: css`
|
|
8
|
+
${typographyFontFamily}
|
|
7
9
|
font-size: ${(props) => props.fontSize ?? "0.8125rem"};
|
|
8
10
|
line-height: ${(props) => props.lineHeight ?? "1.503125rem"};
|
|
9
11
|
@media (min-width: ${({ theme }) => theme.breakpoints.small}) {
|
|
@@ -26,6 +28,7 @@ const VARIANTS_LINK = {
|
|
|
26
28
|
}
|
|
27
29
|
`,
|
|
28
30
|
[TYPOGRAPHY_VARIANTS.LINK_SML_TITLE]: css`
|
|
31
|
+
${typographyFontFamily}
|
|
29
32
|
font-size: ${(props) => props.fontSize ?? "0.875rem"};
|
|
30
33
|
line-height: ${(props) => props.lineHeight ?? "1.503125rem"};
|
|
31
34
|
@media (min-width: ${({ theme }) => theme.breakpoints.small}) {
|
|
@@ -48,6 +51,7 @@ const VARIANTS_LINK = {
|
|
|
48
51
|
}
|
|
49
52
|
`,
|
|
50
53
|
[TYPOGRAPHY_VARIANTS.LINK_MED_TITLE]: css`
|
|
54
|
+
${typographyFontFamily}
|
|
51
55
|
font-size: ${(props) => props.fontSize ?? "1rem"};
|
|
52
56
|
line-height: ${(props) => props.lineHeight ?? "1.503125rem"};
|
|
53
57
|
@media (min-width: ${({ theme }) => theme.breakpoints.small}) {
|
|
@@ -70,6 +74,7 @@ const VARIANTS_LINK = {
|
|
|
70
74
|
}
|
|
71
75
|
`,
|
|
72
76
|
[TYPOGRAPHY_VARIANTS.LINK_LRG_TITLE]: css`
|
|
77
|
+
${typographyFontFamily}
|
|
73
78
|
font-size: ${(props) => props.fontSize ?? "1.125rem"};
|
|
74
79
|
line-height: ${(props) => props.lineHeight ?? "1.503125rem"};
|
|
75
80
|
@media (min-width: ${({ theme }) => theme.breakpoints.small}) {
|