@elliemae/ds-typography 3.14.0-next.5 → 3.14.0-next.6
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/styled.js +18 -18
- package/dist/cjs/styled.js.map +1 -1
- package/dist/esm/styled.js +18 -18
- package/dist/esm/styled.js.map +1 -1
- package/package.json +3 -3
package/dist/cjs/styled.js
CHANGED
|
@@ -33,40 +33,40 @@ var import_ds_system = require("@elliemae/ds-system");
|
|
|
33
33
|
var import_DSTypographyDatatestId = require("./DSTypographyDatatestId");
|
|
34
34
|
const styleMap = {
|
|
35
35
|
h1: {
|
|
36
|
-
fontSize: "
|
|
37
|
-
lineHeight: "
|
|
36
|
+
fontSize: "2.62rem",
|
|
37
|
+
lineHeight: "3.15rem"
|
|
38
38
|
},
|
|
39
39
|
h2: {
|
|
40
|
-
fontSize: "
|
|
41
|
-
lineHeight: "
|
|
40
|
+
fontSize: "1.85rem",
|
|
41
|
+
lineHeight: "2.38rem"
|
|
42
42
|
},
|
|
43
43
|
h3: {
|
|
44
|
-
fontSize: "
|
|
45
|
-
lineHeight: "
|
|
44
|
+
fontSize: "1.38rem",
|
|
45
|
+
lineHeight: "1.69rem"
|
|
46
46
|
},
|
|
47
47
|
h4: {
|
|
48
|
-
fontSize: "
|
|
49
|
-
lineHeight: "
|
|
48
|
+
fontSize: "1.23rem",
|
|
49
|
+
lineHeight: "1.54rem"
|
|
50
50
|
},
|
|
51
51
|
h5: {
|
|
52
|
-
fontSize: "
|
|
53
|
-
lineHeight: "
|
|
52
|
+
fontSize: "1.08rem",
|
|
53
|
+
lineHeight: "1.31rem"
|
|
54
54
|
},
|
|
55
55
|
b1: {
|
|
56
|
-
fontSize: "
|
|
57
|
-
lineHeight: "
|
|
56
|
+
fontSize: "1.08rem",
|
|
57
|
+
lineHeight: "1.38rem"
|
|
58
58
|
},
|
|
59
59
|
b2: {
|
|
60
|
-
fontSize: "
|
|
61
|
-
lineHeight: "
|
|
60
|
+
fontSize: "1rem",
|
|
61
|
+
lineHeight: "1.31rem"
|
|
62
62
|
},
|
|
63
63
|
b3: {
|
|
64
|
-
fontSize: "
|
|
65
|
-
lineHeight: "
|
|
64
|
+
fontSize: "0.92rem",
|
|
65
|
+
lineHeight: "1.23rem"
|
|
66
66
|
},
|
|
67
67
|
b4: {
|
|
68
|
-
fontSize: "
|
|
69
|
-
lineHeight: "
|
|
68
|
+
fontSize: "0.85rem",
|
|
69
|
+
lineHeight: "1rem"
|
|
70
70
|
}
|
|
71
71
|
};
|
|
72
72
|
const mapper = {
|
package/dist/cjs/styled.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/styled.ts", "../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["import { styled, css, xStyledCommonProps } from '@elliemae/ds-system';\nimport type { DSTypographyT } from './react-desc-prop-types';\nimport { DSTypographyName, DSTypographyDataTestId } from './DSTypographyDatatestId';\n\nexport const styleMap = {\n h1: {\n fontSize: '
|
|
4
|
+
"sourcesContent": ["import { styled, css, xStyledCommonProps } from '@elliemae/ds-system';\nimport type { DSTypographyT } from './react-desc-prop-types';\nimport { DSTypographyName, DSTypographyDataTestId } from './DSTypographyDatatestId';\n\nexport const styleMap = {\n h1: {\n fontSize: '2.62rem',\n lineHeight: '3.15rem',\n },\n h2: {\n fontSize: '1.85rem',\n lineHeight: '2.38rem',\n },\n h3: {\n fontSize: '1.38rem',\n lineHeight: '1.69rem',\n },\n h4: {\n fontSize: '1.23rem',\n lineHeight: '1.54rem',\n },\n h5: {\n fontSize: '1.08rem',\n lineHeight: '1.31rem',\n },\n b1: {\n fontSize: '1.08rem',\n lineHeight: '1.38rem',\n },\n b2: {\n fontSize: '1rem',\n lineHeight: '1.31rem',\n },\n b3: {\n fontSize: '0.92rem',\n lineHeight: '1.23rem',\n },\n b4: {\n fontSize: '0.85rem',\n lineHeight: '1rem',\n },\n};\n\nconst mapper = {\n h1: css`\n font-size: ${styleMap.h1.fontSize};\n line-height: ${styleMap.h1.lineHeight};\n `,\n h2: css`\n font-size: ${styleMap.h2.fontSize};\n line-height: ${styleMap.h2.lineHeight};\n `,\n h3: css`\n font-size: ${styleMap.h3.fontSize};\n line-height: ${styleMap.h3.lineHeight};\n `,\n h4: css`\n font-size: ${styleMap.h4.fontSize};\n line-height: ${styleMap.h4.lineHeight};\n `,\n h5: css`\n font-size: ${styleMap.h5.fontSize};\n line-height: ${styleMap.h5.lineHeight};\n `,\n b1: css`\n font-size: ${styleMap.b1.fontSize};\n line-height: ${styleMap.b1.lineHeight};\n `,\n b2: css`\n font-size: ${styleMap.b2.fontSize};\n line-height: ${styleMap.b2.lineHeight};\n `,\n b3: css`\n font-size: ${styleMap.b3.fontSize};\n line-height: ${styleMap.b3.lineHeight};\n `,\n b4: css`\n font-size: ${styleMap.b4.fontSize};\n line-height: ${styleMap.b4.lineHeight};\n `,\n};\n\ntype StyleIProp = DSTypographyT.InternalProps & {\n children: DSTypographyT.InternalProps['children'];\n};\n\nexport const StyledTypography = styled('div', {\n name: DSTypographyName,\n slot: DSTypographyDataTestId.TYPOGRAPHY_ELEMENT,\n}).withConfig({\n shouldForwardProp: (prop, defaultValidatorFn) =>\n !['fontSize', 'color', 'as', 'variant'].includes(prop) && defaultValidatorFn(prop),\n})<StyleIProp>`\n margin: 0;\n padding: 0;\n ${(props: StyleIProp) => mapper[props.variant]}\n ${xStyledCommonProps}\n`;\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
5
|
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,uBAAgD;AAEhD,oCAAyD;AAElD,MAAM,WAAW;AAAA,EACtB,IAAI;AAAA,IACF,UAAU;AAAA,IACV,YAAY;AAAA,EACd;AAAA,EACA,IAAI;AAAA,IACF,UAAU;AAAA,IACV,YAAY;AAA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A,EACZ,mBAAmB,CAAC,MAAM,uBACxB,CAAC,CAAC,YAAY,SAAS,MAAM,SAAS,EAAE,SAAS,IAAI,KAAK,mBAAmB,IAAI;AACrF,CAAC;AAAA;AAAA;AAAA,IAGG,CAAC,UAAsB,OAAO,MAAM;AAAA,IACpC;AAAA;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/dist/esm/styled.js
CHANGED
|
@@ -3,40 +3,40 @@ import { styled, css, xStyledCommonProps } from "@elliemae/ds-system";
|
|
|
3
3
|
import { DSTypographyName, DSTypographyDataTestId } from "./DSTypographyDatatestId";
|
|
4
4
|
const styleMap = {
|
|
5
5
|
h1: {
|
|
6
|
-
fontSize: "
|
|
7
|
-
lineHeight: "
|
|
6
|
+
fontSize: "2.62rem",
|
|
7
|
+
lineHeight: "3.15rem"
|
|
8
8
|
},
|
|
9
9
|
h2: {
|
|
10
|
-
fontSize: "
|
|
11
|
-
lineHeight: "
|
|
10
|
+
fontSize: "1.85rem",
|
|
11
|
+
lineHeight: "2.38rem"
|
|
12
12
|
},
|
|
13
13
|
h3: {
|
|
14
|
-
fontSize: "
|
|
15
|
-
lineHeight: "
|
|
14
|
+
fontSize: "1.38rem",
|
|
15
|
+
lineHeight: "1.69rem"
|
|
16
16
|
},
|
|
17
17
|
h4: {
|
|
18
|
-
fontSize: "
|
|
19
|
-
lineHeight: "
|
|
18
|
+
fontSize: "1.23rem",
|
|
19
|
+
lineHeight: "1.54rem"
|
|
20
20
|
},
|
|
21
21
|
h5: {
|
|
22
|
-
fontSize: "
|
|
23
|
-
lineHeight: "
|
|
22
|
+
fontSize: "1.08rem",
|
|
23
|
+
lineHeight: "1.31rem"
|
|
24
24
|
},
|
|
25
25
|
b1: {
|
|
26
|
-
fontSize: "
|
|
27
|
-
lineHeight: "
|
|
26
|
+
fontSize: "1.08rem",
|
|
27
|
+
lineHeight: "1.38rem"
|
|
28
28
|
},
|
|
29
29
|
b2: {
|
|
30
|
-
fontSize: "
|
|
31
|
-
lineHeight: "
|
|
30
|
+
fontSize: "1rem",
|
|
31
|
+
lineHeight: "1.31rem"
|
|
32
32
|
},
|
|
33
33
|
b3: {
|
|
34
|
-
fontSize: "
|
|
35
|
-
lineHeight: "
|
|
34
|
+
fontSize: "0.92rem",
|
|
35
|
+
lineHeight: "1.23rem"
|
|
36
36
|
},
|
|
37
37
|
b4: {
|
|
38
|
-
fontSize: "
|
|
39
|
-
lineHeight: "
|
|
38
|
+
fontSize: "0.85rem",
|
|
39
|
+
lineHeight: "1rem"
|
|
40
40
|
}
|
|
41
41
|
};
|
|
42
42
|
const mapper = {
|
package/dist/esm/styled.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/styled.ts"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { styled, css, xStyledCommonProps } from '@elliemae/ds-system';\nimport type { DSTypographyT } from './react-desc-prop-types';\nimport { DSTypographyName, DSTypographyDataTestId } from './DSTypographyDatatestId';\n\nexport const styleMap = {\n h1: {\n fontSize: '
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { styled, css, xStyledCommonProps } from '@elliemae/ds-system';\nimport type { DSTypographyT } from './react-desc-prop-types';\nimport { DSTypographyName, DSTypographyDataTestId } from './DSTypographyDatatestId';\n\nexport const styleMap = {\n h1: {\n fontSize: '2.62rem',\n lineHeight: '3.15rem',\n },\n h2: {\n fontSize: '1.85rem',\n lineHeight: '2.38rem',\n },\n h3: {\n fontSize: '1.38rem',\n lineHeight: '1.69rem',\n },\n h4: {\n fontSize: '1.23rem',\n lineHeight: '1.54rem',\n },\n h5: {\n fontSize: '1.08rem',\n lineHeight: '1.31rem',\n },\n b1: {\n fontSize: '1.08rem',\n lineHeight: '1.38rem',\n },\n b2: {\n fontSize: '1rem',\n lineHeight: '1.31rem',\n },\n b3: {\n fontSize: '0.92rem',\n lineHeight: '1.23rem',\n },\n b4: {\n fontSize: '0.85rem',\n lineHeight: '1rem',\n },\n};\n\nconst mapper = {\n h1: css`\n font-size: ${styleMap.h1.fontSize};\n line-height: ${styleMap.h1.lineHeight};\n `,\n h2: css`\n font-size: ${styleMap.h2.fontSize};\n line-height: ${styleMap.h2.lineHeight};\n `,\n h3: css`\n font-size: ${styleMap.h3.fontSize};\n line-height: ${styleMap.h3.lineHeight};\n `,\n h4: css`\n font-size: ${styleMap.h4.fontSize};\n line-height: ${styleMap.h4.lineHeight};\n `,\n h5: css`\n font-size: ${styleMap.h5.fontSize};\n line-height: ${styleMap.h5.lineHeight};\n `,\n b1: css`\n font-size: ${styleMap.b1.fontSize};\n line-height: ${styleMap.b1.lineHeight};\n `,\n b2: css`\n font-size: ${styleMap.b2.fontSize};\n line-height: ${styleMap.b2.lineHeight};\n `,\n b3: css`\n font-size: ${styleMap.b3.fontSize};\n line-height: ${styleMap.b3.lineHeight};\n `,\n b4: css`\n font-size: ${styleMap.b4.fontSize};\n line-height: ${styleMap.b4.lineHeight};\n `,\n};\n\ntype StyleIProp = DSTypographyT.InternalProps & {\n children: DSTypographyT.InternalProps['children'];\n};\n\nexport const StyledTypography = styled('div', {\n name: DSTypographyName,\n slot: DSTypographyDataTestId.TYPOGRAPHY_ELEMENT,\n}).withConfig({\n shouldForwardProp: (prop, defaultValidatorFn) =>\n !['fontSize', 'color', 'as', 'variant'].includes(prop) && defaultValidatorFn(prop),\n})<StyleIProp>`\n margin: 0;\n padding: 0;\n ${(props: StyleIProp) => mapper[props.variant]}\n ${xStyledCommonProps}\n`;\n"],
|
|
5
5
|
"mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,QAAQ,KAAK,0BAA0B;AAEhD,SAAS,kBAAkB,8BAA8B;AAElD,MAAM,WAAW;AAAA,EACtB,IAAI;AAAA,IACF,UAAU;AAAA,IACV,YAAY;AAAA,EACd;AAAA,EACA,IAAI;AAAA,IACF,UAAU;AAAA,IACV,YAAY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AAAA,EACZ,mBAAmB,CAAC,MAAM,uBACxB,CAAC,CAAC,YAAY,SAAS,MAAM,SAAS,EAAE,SAAS,IAAI,KAAK,mBAAmB,IAAI;AACrF,CAAC;AAAA;AAAA;AAAA,IAGG,CAAC,UAAsB,OAAO,MAAM;AAAA,IACpC;AAAA;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-typography",
|
|
3
|
-
"version": "3.14.0-next.
|
|
3
|
+
"version": "3.14.0-next.6",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Typography",
|
|
6
6
|
"files": [
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"indent": 4
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@elliemae/ds-system": "3.14.0-next.
|
|
39
|
-
"@elliemae/ds-utilities": "3.14.0-next.
|
|
38
|
+
"@elliemae/ds-system": "3.14.0-next.6",
|
|
39
|
+
"@elliemae/ds-utilities": "3.14.0-next.6"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@testing-library/jest-dom": "~5.16.4",
|