@laerdal/life-react-components 0.0.280-dev.6 → 0.0.280-dev.7
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/esm/styles/typography.js +61 -22
- package/dist/esm/styles/typography.js.map +1 -1
- package/dist/js/styles/typography.js +75 -67
- package/dist/js/styles/typography.js.map +1 -1
- package/dist/umd/styles/typography.js +64 -25
- package/dist/umd/styles/typography.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import _pt from "prop-types";
|
|
2
2
|
import React from 'react';
|
|
3
|
+
import styled, { css } from 'styled-components';
|
|
3
4
|
import { COLORS } from '.';
|
|
4
|
-
import styled from 'styled-components';
|
|
5
5
|
const TYPOGRAPHY = {
|
|
6
6
|
fontFamily: 'Lato, sans-serif'
|
|
7
7
|
};
|
|
8
|
-
const TypographyBase = styled(
|
|
8
|
+
const TypographyBase = styled('div')(({
|
|
9
9
|
color,
|
|
10
10
|
lineHeight,
|
|
11
11
|
fontSize,
|
|
@@ -75,16 +75,50 @@ const HeadlineXXS = styled(HeadlineBase)(({
|
|
|
75
75
|
lineHeight: '24px',
|
|
76
76
|
color: color
|
|
77
77
|
}));
|
|
78
|
-
const
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
78
|
+
const ParagraphStyling = css`
|
|
79
|
+
:lang(ja-jp) > h1,
|
|
80
|
+
h2,
|
|
81
|
+
h3,
|
|
82
|
+
h4,
|
|
83
|
+
p,
|
|
84
|
+
span {
|
|
85
|
+
max-width: 30em;
|
|
86
|
+
}
|
|
87
|
+
:lang(ko-kr) > h1,
|
|
88
|
+
h2,
|
|
89
|
+
h3,
|
|
90
|
+
h4,
|
|
91
|
+
p,
|
|
92
|
+
span {
|
|
93
|
+
max-width: 30em;
|
|
94
|
+
}
|
|
95
|
+
:lang(zh-CN) > h1,
|
|
96
|
+
h2,
|
|
97
|
+
h3,
|
|
98
|
+
h4,
|
|
99
|
+
p,
|
|
100
|
+
span {
|
|
101
|
+
max-width: 30em;
|
|
102
|
+
}
|
|
103
|
+
h1,
|
|
104
|
+
h2,
|
|
105
|
+
h3,
|
|
106
|
+
h4,
|
|
107
|
+
p,
|
|
108
|
+
span {
|
|
109
|
+
max-width: 34em;
|
|
110
|
+
}
|
|
111
|
+
`;
|
|
112
|
+
const ParagraphBase = styled(TypographyBase)`
|
|
113
|
+
p {
|
|
114
|
+
margin-block-start: 0;
|
|
115
|
+
margin-block-end: 0;
|
|
116
|
+
}
|
|
117
|
+
p:not(:only-of-type) {
|
|
118
|
+
margin-bottom: ${props => props.marginBetweenParagraphs || '0'};
|
|
119
|
+
}
|
|
120
|
+
${ParagraphStyling}
|
|
121
|
+
`;
|
|
88
122
|
var ParagraphTextStyle;
|
|
89
123
|
|
|
90
124
|
(function (ParagraphTextStyle) {
|
|
@@ -122,13 +156,14 @@ const ParagraphXL = ({
|
|
|
122
156
|
let fontWeight = paragraphFontWeight(textStyle);
|
|
123
157
|
let fontStyle = paragraphFontStyle(textStyle);
|
|
124
158
|
let textDecorationLine = paragraphTextDecorationLine(textStyle);
|
|
125
|
-
return /*#__PURE__*/React.createElement(
|
|
159
|
+
return /*#__PURE__*/React.createElement(ParagraphBase, {
|
|
126
160
|
color: color,
|
|
127
161
|
lineHeight: 36,
|
|
128
162
|
fontSize: 24,
|
|
129
163
|
fontWeight: fontWeight,
|
|
130
164
|
fontStyle: fontStyle,
|
|
131
|
-
textDecorationLine: textDecorationLine
|
|
165
|
+
textDecorationLine: textDecorationLine,
|
|
166
|
+
marginBetweenParagraphs: "18px"
|
|
132
167
|
}, children);
|
|
133
168
|
};
|
|
134
169
|
|
|
@@ -145,13 +180,14 @@ const ParagraphL = ({
|
|
|
145
180
|
let fontWeight = paragraphFontWeight(textStyle);
|
|
146
181
|
let fontStyle = paragraphFontStyle(textStyle);
|
|
147
182
|
let textDecorationLine = paragraphTextDecorationLine(textStyle);
|
|
148
|
-
return /*#__PURE__*/React.createElement(
|
|
183
|
+
return /*#__PURE__*/React.createElement(ParagraphBase, {
|
|
149
184
|
color: color,
|
|
150
185
|
lineHeight: 32,
|
|
151
186
|
fontSize: 20,
|
|
152
187
|
fontWeight: fontWeight,
|
|
153
188
|
fontStyle: fontStyle,
|
|
154
|
-
textDecorationLine: textDecorationLine
|
|
189
|
+
textDecorationLine: textDecorationLine,
|
|
190
|
+
marginBetweenParagraphs: "16px"
|
|
155
191
|
}, children);
|
|
156
192
|
};
|
|
157
193
|
|
|
@@ -168,13 +204,14 @@ const ParagraphM = ({
|
|
|
168
204
|
let fontWeight = paragraphFontWeight(textStyle);
|
|
169
205
|
let fontStyle = paragraphFontStyle(textStyle);
|
|
170
206
|
let textDecorationLine = paragraphTextDecorationLine(textStyle);
|
|
171
|
-
return /*#__PURE__*/React.createElement(
|
|
207
|
+
return /*#__PURE__*/React.createElement(ParagraphBase, {
|
|
172
208
|
color: color,
|
|
173
209
|
lineHeight: 28,
|
|
174
210
|
fontSize: 18,
|
|
175
211
|
fontWeight: fontWeight,
|
|
176
212
|
fontStyle: fontStyle,
|
|
177
|
-
textDecorationLine: textDecorationLine
|
|
213
|
+
textDecorationLine: textDecorationLine,
|
|
214
|
+
marginBetweenParagraphs: "14px"
|
|
178
215
|
}, children);
|
|
179
216
|
};
|
|
180
217
|
|
|
@@ -191,13 +228,14 @@ const ParagraphS = ({
|
|
|
191
228
|
let fontWeight = paragraphFontWeight(textStyle);
|
|
192
229
|
let fontStyle = paragraphFontStyle(textStyle);
|
|
193
230
|
let textDecorationLine = paragraphTextDecorationLine(textStyle);
|
|
194
|
-
return /*#__PURE__*/React.createElement(
|
|
231
|
+
return /*#__PURE__*/React.createElement(ParagraphBase, {
|
|
195
232
|
color: color,
|
|
196
233
|
lineHeight: 24,
|
|
197
234
|
fontSize: 16,
|
|
198
235
|
fontWeight: fontWeight,
|
|
199
236
|
fontStyle: fontStyle,
|
|
200
|
-
textDecorationLine: textDecorationLine
|
|
237
|
+
textDecorationLine: textDecorationLine,
|
|
238
|
+
marginBetweenParagraphs: "12px"
|
|
201
239
|
}, children);
|
|
202
240
|
};
|
|
203
241
|
|
|
@@ -214,13 +252,14 @@ const ParagraphXS = ({
|
|
|
214
252
|
let fontWeight = paragraphFontWeight(textStyle);
|
|
215
253
|
let fontStyle = paragraphFontStyle(textStyle);
|
|
216
254
|
let textDecorationLine = paragraphTextDecorationLine(textStyle);
|
|
217
|
-
return /*#__PURE__*/React.createElement(
|
|
255
|
+
return /*#__PURE__*/React.createElement(ParagraphBase, {
|
|
218
256
|
color: color,
|
|
219
257
|
lineHeight: 20,
|
|
220
258
|
fontSize: 14,
|
|
221
259
|
fontWeight: fontWeight,
|
|
222
260
|
fontStyle: fontStyle,
|
|
223
|
-
textDecorationLine: textDecorationLine
|
|
261
|
+
textDecorationLine: textDecorationLine,
|
|
262
|
+
marginBetweenParagraphs: "10px"
|
|
224
263
|
}, children);
|
|
225
264
|
};
|
|
226
265
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/styles/typography.tsx"],"names":["React","COLORS","styled","TYPOGRAPHY","fontFamily","TypographyBase","color","lineHeight","fontSize","fontWeight","fontStyle","textTransform","textDecorationLine","black","HeadlineBase","HeadlineXL","HeadlineL","HeadlineM","HeadlineS","HeadlineXS","HeadlineXXS","ParagraphBase","ParagraphTextStyle","paragraphFontWeight","textStyle","Bold","paragraphFontStyle","Italic","paragraphTextDecorationLine","textDecoration","Underline","ParagraphXL","children","ParagraphL","ParagraphM","ParagraphS","ParagraphXS","ComponentTextStyle","componentFontWeight","UppercaseBold","componentFontStyle","componentTextTransformation","ComponentXL","ComponentL","ComponentM","ComponentS","ComponentXS","ComponentXXS"],"mappings":";AAAA,OAAOA,KAAP,MAAyC,OAAzC;AACA,SAASC,MAAT,QAAuB,GAAvB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;A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AAA,KAAK,EAAGlB,KAAxB;AAA+B,IAAA,UAAU,EAAE,EAA3C;AAA+C,IAAA,QAAQ,EAAE,EAAzD;AAA6D,IAAA,UAAU,EAAEG,UAAzE;AAAqF,IAAA,SAAS,EAAEC,SAAhG;AAA2G,IAAA,aAAa,EAAEC;AAA1H,KACGqB,QADH,CADF;AAKD,CATD;;;AAzEE1B,EAAAA,K;AACAkB,EAAAA,S;;AAoFF,SAAQrB,UAAR;AACA,SAAQY,UAAR,EAAoBC,SAApB,EAA+BC,SAA/B,EAA0CC,SAA1C,EAAqDC,UAArD,EAAiEC,WAAjE;AACA,SAAQE,kBAAR,EAA4BS,WAA5B,EAAyCE,UAAzC,EAAqDC,UAArD,EAAiEC,UAAjE,EAA6EC,WAA7E;AACA,SAAQC,kBAAR,EAA4BK,WAA5B,EAAyCC,UAAzC,EAAqDC,UAArD,EAAiEC,UAAjE,EAA6EC,WAA7E,EAA0FC,YAA1F","sourcesContent":["import React, { FunctionComponent } from 'react';\nimport { COLORS } from '.';\nimport styled from 'styled-components';\nimport {Property} from 'csstype'\n\nconst TYPOGRAPHY = {\n fontFamily: 'Lato, sans-serif',\n};\n\ninterface ITypographyBase {\n color?: string,\n lineHeight: number,\n fontSize: number,\n fontWeight: number,\n fontStyle?: string,\n textTransform?: Property.TextTransform\n textDecorationLine?: Property.TextDecorationLine\n}\n\nconst TypographyBase = styled(\"div\")<ITypographyBase>(({color, lineHeight, fontSize, fontWeight, fontStyle, textTransform, textDecorationLine}) => ({ \n fontFamily: TYPOGRAPHY.fontFamily,\n fontSize: fontSize,\n fontWeight: fontWeight,\n lineHeight: lineHeight + 'px',\n textTransform: (textTransform? textTransform : 'none'),\n textDecorationLine: (textDecorationLine? textDecorationLine : 'none'),\n fontStyle: (fontStyle ? fontStyle : 'normal'),\n color: (color ? color : COLORS.black)\n}));\n\n\ninterface IHeadline {\n color?: string\n}\n\ninterface IHeadlineBase {\n color?: string,\n lineHeight: number,\n fontSize: number\n}\nconst HeadlineBase = styled(TypographyBase)<IHeadlineBase>(({color, lineHeight, fontSize}) => ({ \n fontSize: fontSize,\n fontWeight: 700,\n lineHeight: lineHeight,\n color: color\n}));\n\nconst HeadlineXL = styled(HeadlineBase)<IHeadline>(({color}) => ({ \n fontSize: '48px',\n lineHeight: '64px',\n color: color\n}));\n\nconst HeadlineL = styled(HeadlineBase)<IHeadline>(({color}) => ({ \n fontSize: '40px',\n lineHeight: '52px',\n color: color\n}));\n\nconst HeadlineM = styled(HeadlineBase)<IHeadline>(({color}) => ({ \n fontSize: '32px',\n lineHeight: '40px',\n color: color\n}));\n\nconst HeadlineS = styled(HeadlineBase)<IHeadline>(({color}) => ({ \n fontSize: '28px',\n lineHeight: '36px',\n color: color\n}));\n\nconst HeadlineXS = styled(HeadlineBase)<IHeadline>(({color}) => ({ \n fontSize: '24px',\n lineHeight: '32px',\n color: color\n}));\n\nconst HeadlineXXS = styled(HeadlineBase)<IHeadline>(({color}) => ({ \n fontSize: '20px',\n lineHeight: '24px',\n color: color\n}));\n\ninterface IParagraphBase {\n color?: string,\n lineHeight: number,\n fontSize: number\n}\n\nconst ParagraphBase = styled(TypographyBase)<IParagraphBase>(({color, lineHeight, fontSize}) => ({ \n fontSize: fontSize,\n fontWeight: 400,\n lineHeight: lineHeight,\n color: color\n}));\n\ninterface IParagraph {\n color?: string\n}\n\nenum ParagraphTextStyle {\n Regular = 1,\n Bold,\n Italic,\n Underline\n}\n\n\ntype ParagraphProps = {\n color?: string, \n textStyle?: ParagraphTextStyle\n};\n\n\nconst paragraphFontWeight = (textStyle?: ParagraphTextStyle) => {\n let fontWeight = 400;\n if (textStyle === ParagraphTextStyle.Bold) {\n fontWeight = 700;\n }\n return fontWeight;\n};\n\nconst paragraphFontStyle = (textStyle?: ParagraphTextStyle) => {\n let fontStyle = (textStyle && textStyle === ParagraphTextStyle.Italic) ? 'italic' : '';\n return fontStyle;\n};\n\nconst paragraphTextDecorationLine = (textStyle?: ParagraphTextStyle) : Property.TextDecorationLine => {\n let textDecoration : Property.TextDecorationLine = (textStyle && textStyle === ParagraphTextStyle.Underline) ? 'underline' : 'none';\n return textDecoration;\n};\n\n\nconst ParagraphXL: FunctionComponent<ParagraphProps> = ({color, textStyle, children}) => { \n let fontWeight = paragraphFontWeight(textStyle);\n let fontStyle = paragraphFontStyle(textStyle);\n let textDecorationLine = paragraphTextDecorationLine(textStyle);\n return (\n <TypographyBase color= {color} lineHeight={36} fontSize={24} fontWeight={fontWeight} fontStyle={fontStyle} textDecorationLine={textDecorationLine}>\n {children}\n </TypographyBase>\n )\n};\n\nconst ParagraphL: FunctionComponent<ParagraphProps> = ({color, textStyle, children}) => { \n let fontWeight = paragraphFontWeight(textStyle);\n let fontStyle = paragraphFontStyle(textStyle);\n let textDecorationLine = paragraphTextDecorationLine(textStyle);\n return (\n <TypographyBase color= {color} lineHeight={32} fontSize={20} fontWeight={fontWeight} fontStyle={fontStyle} textDecorationLine={textDecorationLine}>\n {children}\n </TypographyBase>\n )\n};\n\nconst ParagraphM: FunctionComponent<ParagraphProps> = ({color, textStyle, children}) => { \n let fontWeight = paragraphFontWeight(textStyle);\n let fontStyle = paragraphFontStyle(textStyle);\n let textDecorationLine = paragraphTextDecorationLine(textStyle);\n return (\n <TypographyBase color= {color} lineHeight={28} fontSize={18} fontWeight={fontWeight} fontStyle={fontStyle} textDecorationLine={textDecorationLine}>\n {children}\n </TypographyBase>\n )\n};\n\nconst ParagraphS: FunctionComponent<ParagraphProps> = ({color, textStyle, children}) => { \n let fontWeight = paragraphFontWeight(textStyle);\n let fontStyle = paragraphFontStyle(textStyle);\n let textDecorationLine = paragraphTextDecorationLine(textStyle);\n return (\n <TypographyBase color= {color} lineHeight={24} fontSize={16} fontWeight={fontWeight} fontStyle={fontStyle} textDecorationLine={textDecorationLine}>\n {children}\n </TypographyBase>\n )\n};\n\nconst ParagraphXS: FunctionComponent<ParagraphProps> = ({color, textStyle, children}) => { \n let fontWeight = paragraphFontWeight(textStyle);\n let fontStyle = paragraphFontStyle(textStyle);\n let textDecorationLine = paragraphTextDecorationLine(textStyle);\n return (\n <TypographyBase color= {color} lineHeight={20} fontSize={14} fontWeight={fontWeight} fontStyle={fontStyle} textDecorationLine={textDecorationLine}>\n {children}\n </TypographyBase>\n )\n};\n\n\nenum ComponentTextStyle {\n Regular = 1,\n Bold,\n Italic,\n UppercaseBold\n}\n\ntype ComponentProps = {\n color?: string, \n textStyle?: ComponentTextStyle\n};\n\nconst componentFontWeight = (textStyle?: ComponentTextStyle) => {\n let fontWeight = 400;\n if (textStyle === ComponentTextStyle.Bold || textStyle === ComponentTextStyle.UppercaseBold) {\n fontWeight = 700;\n }\n return fontWeight;\n};\n\nconst componentFontStyle = (textStyle?: ComponentTextStyle) => {\n let fontStyle = (textStyle && textStyle === ComponentTextStyle.Italic) ? 'italic' : '';\n return fontStyle;\n};\n\nconst componentTextTransformation = (textStyle?: ComponentTextStyle) : Property.TextTransform => {\n let fontStyle : Property.TextTransform = (textStyle && textStyle === ComponentTextStyle.UppercaseBold) ? 'uppercase' : 'none';\n return fontStyle;\n};\n\nconst ComponentXL: FunctionComponent<ComponentProps> = ({color, textStyle, children}) => { \n let fontWeight = componentFontWeight(textStyle);\n let fontStyle = componentFontStyle(textStyle);\n return (\n <TypographyBase color= {color} lineHeight={28} fontSize={24} fontWeight={fontWeight} fontStyle={fontStyle} >\n {children}\n </TypographyBase>\n )\n};\n\nconst ComponentL: FunctionComponent<ComponentProps> = ({color, textStyle, children}) => { \n let fontWeight = componentFontWeight(textStyle);\n let fontStyle = componentFontStyle(textStyle);\n return (\n <TypographyBase color= {color} lineHeight={24} fontSize={20} fontWeight={fontWeight} fontStyle={fontStyle} >\n {children}\n </TypographyBase>\n )\n};\n\nconst ComponentM: FunctionComponent<ComponentProps> = ({color, textStyle, children}) => { \n let fontWeight = componentFontWeight(textStyle);\n let fontStyle = componentFontStyle(textStyle);\n return (\n <TypographyBase color= {color} lineHeight={24} fontSize={18} fontWeight={fontWeight} fontStyle={fontStyle} >\n {children}\n </TypographyBase>\n )\n};\n\nconst ComponentS: FunctionComponent<ComponentProps> = ({color, textStyle, children}) => { \n let fontWeight = componentFontWeight(textStyle);\n let fontStyle = componentFontStyle(textStyle);\n return (\n <TypographyBase color= {color} lineHeight={20} fontSize={16} fontWeight={fontWeight} fontStyle={fontStyle} >\n {children}\n </TypographyBase>\n )\n};\n\nconst ComponentXS: FunctionComponent<ComponentProps> = ({color, textStyle, children}) => { \n let fontWeight = componentFontWeight(textStyle);\n let fontStyle = componentFontStyle(textStyle);\n let textTransform = componentTextTransformation(textStyle);\n return (\n <TypographyBase color= {color} lineHeight={16} fontSize={14} fontWeight={fontWeight} fontStyle={fontStyle} textTransform={textTransform}>\n {children}\n </TypographyBase>\n )\n};\n\nconst ComponentXXS: FunctionComponent<ComponentProps> = ({color, textStyle, children}) => { \n let fontWeight = componentFontWeight(textStyle);\n let fontStyle = componentFontStyle(textStyle);\n let textTransform = componentTextTransformation(textStyle);\n return (\n <TypographyBase color= {color} lineHeight={16} fontSize={12} fontWeight={fontWeight} fontStyle={fontStyle} textTransform={textTransform} >\n {children}\n </TypographyBase>\n )\n};\n\n\nexport {TYPOGRAPHY}\nexport {HeadlineXL, HeadlineL, HeadlineM, HeadlineS, HeadlineXS, HeadlineXXS}\nexport {ParagraphTextStyle, ParagraphXL, ParagraphL, ParagraphM, ParagraphS, ParagraphXS}\nexport {ComponentTextStyle, ComponentXL, ComponentL, ComponentM, ComponentS, ComponentXS, ComponentXXS}"],"file":"typography.js"}
|
|
1
|
+
{"version":3,"sources":["../../../src/styles/typography.tsx"],"names":["React","styled","css","COLORS","TYPOGRAPHY","fontFamily","TypographyBase","color","lineHeight","fontSize","fontWeight","fontStyle","textTransform","textDecorationLine","black","HeadlineBase","HeadlineXL","HeadlineL","HeadlineM","HeadlineS","HeadlineXS","HeadlineXXS","ParagraphStyling","ParagraphBase","props","marginBetweenParagraphs","ParagraphTextStyle","paragraphFontWeight","textStyle","Bold","paragraphFontStyle","Italic","paragraphTextDecorationLine","textDecoration","Underline","ParagraphXL","children","ParagraphL","ParagraphM","ParagraphS","ParagraphXS","ComponentTextStyle","componentFontWeight","UppercaseBold","componentFontStyle","componentTextTransformation","ComponentXL","ComponentL","ComponentM","ComponentS","ComponentXS","ComponentXXS"],"mappings":";AAAA,OAAOA,KAAP,MAAyC,OAAzC;AACA,OAAOC,MAAP,IAAiBC,GAAjB,QAA4B,mBAA5B;AACA,SAASC,MAAT,QAAuB,GAAvB;AAGA,MAAMC,UAAU,GAAG;AACjBC,EAAAA,UAAU,EAAE;AADK,CAAnB;AAcA,MAAMC,cAAc,GAAGL,MAAM,CAAC,KAAD,CAAN,CAA+B,CAAC;AAAEM,EAAAA,KAAF;AAASC,EAAAA,UAAT;AAAqBC,EAAAA,QAArB;AAA+BC,EAAAA,UAA/B;AAA2CC,EAAAA,SAA3C;AAAsDC,EAAAA,aAAtD;AAAqEC,EAAAA;AAArE,CAAD,MAAgG;AACpJR,EAAAA,UAAU,EAAED,UAAU,CAACC,UAD6H;AAEpJI,EAAAA,QAAQ,EAAEA,QAF0I;AAGpJC,EAAAA,UAAU,EAAEA,UAHwI;AAIpJF,EAAAA,UAAU,EAAEA,UAAU,GAAG,IAJ2H;AAKpJI,EAAAA,aAAa,EAAEA,aAAa,GAAGA,aAAH,GAAmB,MALqG;AAMpJC,EAAAA,kBAAkB,EAAEA,kBAAkB,GAAGA,kBAAH,GAAwB,MANsF;AAOpJF,EAAAA,SAAS,EAAEA,SAAS,GAAGA,SAAH,GAAe,QAPiH;AAQpJJ,EAAAA,KAAK,EAAEA,KAAK,GAAGA,KAAH,GAAWJ,MAAM,CAACW;AARsH,CAAhG,CAA/B,CAAvB;AAoBA,MAAMC,YAAY,GAAGd,MAAM,CAACK,cAAD,CAAN,CAAsC,CAAC;AAAEC,EAAAA,KAAF;AAASC,EAAAA,UAAT;AAAqBC,EAAAA;AAArB,CAAD,MAAsC;AAC/FA,EAAAA,QAAQ,EAAEA,QADqF;AAE/FC,EAAAA,UA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,KAAK,EAAErB,KAAvB;AAA8B,IAAA,UAAU,EAAE,EAA1C;AAA8C,IAAA,QAAQ,EAAE,EAAxD;AAA4D,IAAA,UAAU,EAAEG,UAAxE;AAAoF,IAAA,SAAS,EAAEC,SAA/F;AAA0G,IAAA,aAAa,EAAEC;AAAzH,KACGwB,QADH,CADF;AAKD,CATD;;;AA9DE7B,EAAAA,K;AACAqB,EAAAA,S;;;AAwEF,MAAMuB,YAA+C,GAAG,CAAC;AAAE5C,EAAAA,KAAF;AAASqB,EAAAA,SAAT;AAAoBQ,EAAAA;AAApB,CAAD,KAAoC;AAC1F,MAAI1B,UAAU,GAAGgC,mBAAmB,CAACd,SAAD,CAApC;AACA,MAAIjB,SAAS,GAAGiC,kBAAkB,CAAChB,SAAD,CAAlC;AACA,MAAIhB,aAAa,GAAGiC,2BAA2B,CAACjB,SAAD,CAA/C;AACA,sBACE,oBAAC,cAAD;AAAgB,IAAA,KAAK,EAAErB,KAAvB;AAA8B,IAAA,UAAU,EAAE,EAA1C;AAA8C,IAAA,QAAQ,EAAE,EAAxD;AAA4D,IAAA,UAAU,EAAEG,UAAxE;AAAoF,IAAA,SAAS,EAAEC,SAA/F;AAA0G,IAAA,aAAa,EAAEC;AAAzH,KACGwB,QADH,CADF;AAKD,CATD;;;AAzEE7B,EAAAA,K;AACAqB,EAAAA,S;;AAmFF,SAASxB,UAAT;AACA,SAASY,UAAT,EAAqBC,SAArB,EAAgCC,SAAhC,EAA2CC,SAA3C,EAAsDC,UAAtD,EAAkEC,WAAlE;AACA,SAASK,kBAAT,EAA6BS,WAA7B,EAA0CE,UAA1C,EAAsDC,UAAtD,EAAkEC,UAAlE,EAA8EC,WAA9E;AACA,SAASC,kBAAT,EAA6BK,WAA7B,EAA0CC,UAA1C,EAAsDC,UAAtD,EAAkEC,UAAlE,EAA8EC,WAA9E,EAA2FC,YAA3F","sourcesContent":["import React, { FunctionComponent } from 'react';\nimport styled, { css } from 'styled-components';\nimport { COLORS } from '.';\nimport { Property } from 'csstype';\n\nconst TYPOGRAPHY = {\n fontFamily: 'Lato, sans-serif',\n};\n\ninterface ITypographyBase {\n color?: string;\n lineHeight: number;\n fontSize: number;\n fontWeight: number;\n fontStyle?: string;\n textTransform?: Property.TextTransform;\n textDecorationLine?: Property.TextDecorationLine;\n}\n\nconst TypographyBase = styled('div')<ITypographyBase>(({ color, lineHeight, fontSize, fontWeight, fontStyle, textTransform, textDecorationLine }) => ({\n fontFamily: TYPOGRAPHY.fontFamily,\n fontSize: fontSize,\n fontWeight: fontWeight,\n lineHeight: lineHeight + 'px',\n textTransform: textTransform ? textTransform : 'none',\n textDecorationLine: textDecorationLine ? textDecorationLine : 'none',\n fontStyle: fontStyle ? fontStyle : 'normal',\n color: color ? color : COLORS.black,\n}));\n\ninterface IHeadline {\n color?: string;\n}\n\ninterface IHeadlineBase {\n color?: string;\n lineHeight: number;\n fontSize: number;\n}\nconst HeadlineBase = styled(TypographyBase)<IHeadlineBase>(({ color, lineHeight, fontSize }) => ({\n fontSize: fontSize,\n fontWeight: 700,\n lineHeight: lineHeight,\n color: color,\n}));\n\nconst HeadlineXL = styled(HeadlineBase)<IHeadline>(({ color }) => ({\n fontSize: '48px',\n lineHeight: '64px',\n color: color,\n}));\n\nconst HeadlineL = styled(HeadlineBase)<IHeadline>(({ color }) => ({\n fontSize: '40px',\n lineHeight: '52px',\n color: color,\n}));\n\nconst HeadlineM = styled(HeadlineBase)<IHeadline>(({ color }) => ({\n fontSize: '32px',\n lineHeight: '40px',\n color: color,\n}));\n\nconst HeadlineS = styled(HeadlineBase)<IHeadline>(({ color }) => ({\n fontSize: '28px',\n lineHeight: '36px',\n color: color,\n}));\n\nconst HeadlineXS = styled(HeadlineBase)<IHeadline>(({ color }) => ({\n fontSize: '24px',\n lineHeight: '32px',\n color: color,\n}));\n\nconst HeadlineXXS = styled(HeadlineBase)<IHeadline>(({ color }) => ({\n fontSize: '20px',\n lineHeight: '24px',\n color: color,\n}));\n\nconst ParagraphStyling = css`\n :lang(ja-jp) > h1,\n h2,\n h3,\n h4,\n p,\n span {\n max-width: 30em;\n }\n :lang(ko-kr) > h1,\n h2,\n h3,\n h4,\n p,\n span {\n max-width: 30em;\n }\n :lang(zh-CN) > h1,\n h2,\n h3,\n h4,\n p,\n span {\n max-width: 30em;\n }\n h1,\n h2,\n h3,\n h4,\n p,\n span {\n max-width: 34em;\n }\n`;\n\ninterface IParagraphBase {\n color?: string;\n lineHeight: number;\n fontSize: number;\n marginBetweenParagraphs?: string;\n}\n\nconst ParagraphBase = styled(TypographyBase)<IParagraphBase>`\n p {\n margin-block-start: 0;\n margin-block-end: 0;\n }\n p:not(:only-of-type) {\n margin-bottom: ${(props) => props.marginBetweenParagraphs || '0'};\n }\n ${ParagraphStyling}\n`;\n\ninterface IParagraph {\n color?: string;\n}\n\nenum ParagraphTextStyle {\n Regular = 1,\n Bold,\n Italic,\n Underline,\n}\n\ntype ParagraphProps = {\n color?: string;\n textStyle?: ParagraphTextStyle;\n};\n\nconst paragraphFontWeight = (textStyle?: ParagraphTextStyle) => {\n let fontWeight = 400;\n if (textStyle === ParagraphTextStyle.Bold) {\n fontWeight = 700;\n }\n return fontWeight;\n};\n\nconst paragraphFontStyle = (textStyle?: ParagraphTextStyle) => {\n let fontStyle = textStyle && textStyle === ParagraphTextStyle.Italic ? 'italic' : '';\n return fontStyle;\n};\n\nconst paragraphTextDecorationLine = (textStyle?: ParagraphTextStyle): Property.TextDecorationLine => {\n let textDecoration: Property.TextDecorationLine = textStyle && textStyle === ParagraphTextStyle.Underline ? 'underline' : 'none';\n return textDecoration;\n};\n\nconst ParagraphXL: FunctionComponent<ParagraphProps> = ({ color, textStyle, children }) => {\n let fontWeight = paragraphFontWeight(textStyle);\n let fontStyle = paragraphFontStyle(textStyle);\n let textDecorationLine = paragraphTextDecorationLine(textStyle);\n return (\n <ParagraphBase color={color} lineHeight={36} fontSize={24} fontWeight={fontWeight} fontStyle={fontStyle} textDecorationLine={textDecorationLine} marginBetweenParagraphs=\"18px\">\n {children}\n </ParagraphBase>\n );\n};\n\nconst ParagraphL: FunctionComponent<ParagraphProps> = ({ color, textStyle, children }) => {\n let fontWeight = paragraphFontWeight(textStyle);\n let fontStyle = paragraphFontStyle(textStyle);\n let textDecorationLine = paragraphTextDecorationLine(textStyle);\n return (\n <ParagraphBase color={color} lineHeight={32} fontSize={20} fontWeight={fontWeight} fontStyle={fontStyle} textDecorationLine={textDecorationLine} marginBetweenParagraphs=\"16px\">\n {children}\n </ParagraphBase>\n );\n};\n\nconst ParagraphM: FunctionComponent<ParagraphProps> = ({ color, textStyle, children }) => {\n let fontWeight = paragraphFontWeight(textStyle);\n let fontStyle = paragraphFontStyle(textStyle);\n let textDecorationLine = paragraphTextDecorationLine(textStyle);\n return (\n <ParagraphBase color={color} lineHeight={28} fontSize={18} fontWeight={fontWeight} fontStyle={fontStyle} textDecorationLine={textDecorationLine} marginBetweenParagraphs=\"14px\">\n {children}\n </ParagraphBase>\n );\n};\n\nconst ParagraphS: FunctionComponent<ParagraphProps> = ({ color, textStyle, children }) => {\n let fontWeight = paragraphFontWeight(textStyle);\n let fontStyle = paragraphFontStyle(textStyle);\n let textDecorationLine = paragraphTextDecorationLine(textStyle);\n return (\n <ParagraphBase color={color} lineHeight={24} fontSize={16} fontWeight={fontWeight} fontStyle={fontStyle} textDecorationLine={textDecorationLine} marginBetweenParagraphs=\"12px\">\n {children}\n </ParagraphBase>\n );\n};\n\nconst ParagraphXS: FunctionComponent<ParagraphProps> = ({ color, textStyle, children }) => {\n let fontWeight = paragraphFontWeight(textStyle);\n let fontStyle = paragraphFontStyle(textStyle);\n let textDecorationLine = paragraphTextDecorationLine(textStyle);\n return (\n <ParagraphBase color={color} lineHeight={20} fontSize={14} fontWeight={fontWeight} fontStyle={fontStyle} textDecorationLine={textDecorationLine} marginBetweenParagraphs=\"10px\">\n {children}\n </ParagraphBase>\n );\n};\n\nenum ComponentTextStyle {\n Regular = 1,\n Bold,\n Italic,\n UppercaseBold,\n}\n\ntype ComponentProps = {\n color?: string;\n textStyle?: ComponentTextStyle;\n};\n\nconst componentFontWeight = (textStyle?: ComponentTextStyle) => {\n let fontWeight = 400;\n if (textStyle === ComponentTextStyle.Bold || textStyle === ComponentTextStyle.UppercaseBold) {\n fontWeight = 700;\n }\n return fontWeight;\n};\n\nconst componentFontStyle = (textStyle?: ComponentTextStyle) => {\n let fontStyle = textStyle && textStyle === ComponentTextStyle.Italic ? 'italic' : '';\n return fontStyle;\n};\n\nconst componentTextTransformation = (textStyle?: ComponentTextStyle): Property.TextTransform => {\n let fontStyle: Property.TextTransform = textStyle && textStyle === ComponentTextStyle.UppercaseBold ? 'uppercase' : 'none';\n return fontStyle;\n};\n\nconst ComponentXL: FunctionComponent<ComponentProps> = ({ color, textStyle, children }) => {\n let fontWeight = componentFontWeight(textStyle);\n let fontStyle = componentFontStyle(textStyle);\n return (\n <TypographyBase color={color} lineHeight={28} fontSize={24} fontWeight={fontWeight} fontStyle={fontStyle}>\n {children}\n </TypographyBase>\n );\n};\n\nconst ComponentL: FunctionComponent<ComponentProps> = ({ color, textStyle, children }) => {\n let fontWeight = componentFontWeight(textStyle);\n let fontStyle = componentFontStyle(textStyle);\n return (\n <TypographyBase color={color} lineHeight={24} fontSize={20} fontWeight={fontWeight} fontStyle={fontStyle}>\n {children}\n </TypographyBase>\n );\n};\n\nconst ComponentM: FunctionComponent<ComponentProps> = ({ color, textStyle, children }) => {\n let fontWeight = componentFontWeight(textStyle);\n let fontStyle = componentFontStyle(textStyle);\n return (\n <TypographyBase color={color} lineHeight={24} fontSize={18} fontWeight={fontWeight} fontStyle={fontStyle}>\n {children}\n </TypographyBase>\n );\n};\n\nconst ComponentS: FunctionComponent<ComponentProps> = ({ color, textStyle, children }) => {\n let fontWeight = componentFontWeight(textStyle);\n let fontStyle = componentFontStyle(textStyle);\n return (\n <TypographyBase color={color} lineHeight={20} fontSize={16} fontWeight={fontWeight} fontStyle={fontStyle}>\n {children}\n </TypographyBase>\n );\n};\n\nconst ComponentXS: FunctionComponent<ComponentProps> = ({ color, textStyle, children }) => {\n let fontWeight = componentFontWeight(textStyle);\n let fontStyle = componentFontStyle(textStyle);\n let textTransform = componentTextTransformation(textStyle);\n return (\n <TypographyBase color={color} lineHeight={16} fontSize={14} fontWeight={fontWeight} fontStyle={fontStyle} textTransform={textTransform}>\n {children}\n </TypographyBase>\n );\n};\n\nconst ComponentXXS: FunctionComponent<ComponentProps> = ({ color, textStyle, children }) => {\n let fontWeight = componentFontWeight(textStyle);\n let fontStyle = componentFontStyle(textStyle);\n let textTransform = componentTextTransformation(textStyle);\n return (\n <TypographyBase color={color} lineHeight={16} fontSize={12} fontWeight={fontWeight} fontStyle={fontStyle} textTransform={textTransform}>\n {children}\n </TypographyBase>\n );\n};\n\nexport { TYPOGRAPHY };\nexport { HeadlineXL, HeadlineL, HeadlineM, HeadlineS, HeadlineXS, HeadlineXXS };\nexport { ParagraphTextStyle, ParagraphXL, ParagraphL, ParagraphM, ParagraphS, ParagraphXS };\nexport { ComponentTextStyle, ComponentXL, ComponentL, ComponentM, ComponentS, ComponentXS, ComponentXXS };\n"],"file":"typography.js"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
4
|
+
|
|
3
5
|
Object.defineProperty(exports, "__esModule", {
|
|
4
6
|
value: true
|
|
5
7
|
});
|
|
@@ -9,17 +11,25 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
9
11
|
|
|
10
12
|
var _react = _interopRequireDefault(require("react"));
|
|
11
13
|
|
|
14
|
+
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
15
|
+
|
|
12
16
|
var _ = require(".");
|
|
13
17
|
|
|
14
|
-
var
|
|
18
|
+
var _templateObject, _templateObject2;
|
|
19
|
+
|
|
20
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
21
|
+
|
|
22
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
15
23
|
|
|
16
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
25
|
|
|
26
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
27
|
+
|
|
18
28
|
var TYPOGRAPHY = {
|
|
19
29
|
fontFamily: 'Lato, sans-serif'
|
|
20
30
|
};
|
|
21
31
|
exports.TYPOGRAPHY = TYPOGRAPHY;
|
|
22
|
-
var TypographyBase = (0, _styledComponents.default)(
|
|
32
|
+
var TypographyBase = (0, _styledComponents.default)('div')(function (_ref) {
|
|
23
33
|
var color = _ref.color,
|
|
24
34
|
lineHeight = _ref.lineHeight,
|
|
25
35
|
fontSize = _ref.fontSize,
|
|
@@ -103,17 +113,10 @@ var HeadlineXXS = (0, _styledComponents.default)(HeadlineBase)(function (_ref8)
|
|
|
103
113
|
};
|
|
104
114
|
});
|
|
105
115
|
exports.HeadlineXXS = HeadlineXXS;
|
|
106
|
-
var
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
return {
|
|
111
|
-
fontSize: fontSize,
|
|
112
|
-
fontWeight: 400,
|
|
113
|
-
lineHeight: lineHeight,
|
|
114
|
-
color: color
|
|
115
|
-
};
|
|
116
|
-
});
|
|
116
|
+
var ParagraphStyling = (0, _styledComponents.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n :lang(ja-jp) > h1,\n h2,\n h3,\n h4,\n p,\n span {\n max-width: 30em;\n }\n :lang(ko-kr) > h1,\n h2,\n h3,\n h4,\n p,\n span {\n max-width: 30em;\n }\n :lang(zh-CN) > h1,\n h2,\n h3,\n h4,\n p,\n span {\n max-width: 30em;\n }\n h1,\n h2,\n h3,\n h4,\n p,\n span {\n max-width: 34em;\n }\n"])));
|
|
117
|
+
var ParagraphBase = (0, _styledComponents.default)(TypographyBase)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n p {\n margin-block-start: 0;\n margin-block-end: 0;\n }\n p:not(:only-of-type) {\n margin-bottom: ", ";\n }\n ", "\n"])), function (props) {
|
|
118
|
+
return props.marginBetweenParagraphs || '0';
|
|
119
|
+
}, ParagraphStyling);
|
|
117
120
|
var ParagraphTextStyle;
|
|
118
121
|
exports.ParagraphTextStyle = ParagraphTextStyle;
|
|
119
122
|
|
|
@@ -144,20 +147,21 @@ var paragraphTextDecorationLine = function paragraphTextDecorationLine(textStyle
|
|
|
144
147
|
return textDecoration;
|
|
145
148
|
};
|
|
146
149
|
|
|
147
|
-
var ParagraphXL = function ParagraphXL(
|
|
148
|
-
var color =
|
|
149
|
-
textStyle =
|
|
150
|
-
children =
|
|
150
|
+
var ParagraphXL = function ParagraphXL(_ref9) {
|
|
151
|
+
var color = _ref9.color,
|
|
152
|
+
textStyle = _ref9.textStyle,
|
|
153
|
+
children = _ref9.children;
|
|
151
154
|
var fontWeight = paragraphFontWeight(textStyle);
|
|
152
155
|
var fontStyle = paragraphFontStyle(textStyle);
|
|
153
156
|
var textDecorationLine = paragraphTextDecorationLine(textStyle);
|
|
154
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
157
|
+
return /*#__PURE__*/_react.default.createElement(ParagraphBase, {
|
|
155
158
|
color: color,
|
|
156
159
|
lineHeight: 36,
|
|
157
160
|
fontSize: 24,
|
|
158
161
|
fontWeight: fontWeight,
|
|
159
162
|
fontStyle: fontStyle,
|
|
160
|
-
textDecorationLine: textDecorationLine
|
|
163
|
+
textDecorationLine: textDecorationLine,
|
|
164
|
+
marginBetweenParagraphs: "18px"
|
|
161
165
|
}, children);
|
|
162
166
|
};
|
|
163
167
|
|
|
@@ -167,20 +171,21 @@ ParagraphXL.propTypes = {
|
|
|
167
171
|
textStyle: _propTypes.default.oneOf([1, 2, 3, 4])
|
|
168
172
|
};
|
|
169
173
|
|
|
170
|
-
var ParagraphL = function ParagraphL(
|
|
171
|
-
var color =
|
|
172
|
-
textStyle =
|
|
173
|
-
children =
|
|
174
|
+
var ParagraphL = function ParagraphL(_ref10) {
|
|
175
|
+
var color = _ref10.color,
|
|
176
|
+
textStyle = _ref10.textStyle,
|
|
177
|
+
children = _ref10.children;
|
|
174
178
|
var fontWeight = paragraphFontWeight(textStyle);
|
|
175
179
|
var fontStyle = paragraphFontStyle(textStyle);
|
|
176
180
|
var textDecorationLine = paragraphTextDecorationLine(textStyle);
|
|
177
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
181
|
+
return /*#__PURE__*/_react.default.createElement(ParagraphBase, {
|
|
178
182
|
color: color,
|
|
179
183
|
lineHeight: 32,
|
|
180
184
|
fontSize: 20,
|
|
181
185
|
fontWeight: fontWeight,
|
|
182
186
|
fontStyle: fontStyle,
|
|
183
|
-
textDecorationLine: textDecorationLine
|
|
187
|
+
textDecorationLine: textDecorationLine,
|
|
188
|
+
marginBetweenParagraphs: "16px"
|
|
184
189
|
}, children);
|
|
185
190
|
};
|
|
186
191
|
|
|
@@ -190,20 +195,21 @@ ParagraphL.propTypes = {
|
|
|
190
195
|
textStyle: _propTypes.default.oneOf([1, 2, 3, 4])
|
|
191
196
|
};
|
|
192
197
|
|
|
193
|
-
var ParagraphM = function ParagraphM(
|
|
194
|
-
var color =
|
|
195
|
-
textStyle =
|
|
196
|
-
children =
|
|
198
|
+
var ParagraphM = function ParagraphM(_ref11) {
|
|
199
|
+
var color = _ref11.color,
|
|
200
|
+
textStyle = _ref11.textStyle,
|
|
201
|
+
children = _ref11.children;
|
|
197
202
|
var fontWeight = paragraphFontWeight(textStyle);
|
|
198
203
|
var fontStyle = paragraphFontStyle(textStyle);
|
|
199
204
|
var textDecorationLine = paragraphTextDecorationLine(textStyle);
|
|
200
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
205
|
+
return /*#__PURE__*/_react.default.createElement(ParagraphBase, {
|
|
201
206
|
color: color,
|
|
202
207
|
lineHeight: 28,
|
|
203
208
|
fontSize: 18,
|
|
204
209
|
fontWeight: fontWeight,
|
|
205
210
|
fontStyle: fontStyle,
|
|
206
|
-
textDecorationLine: textDecorationLine
|
|
211
|
+
textDecorationLine: textDecorationLine,
|
|
212
|
+
marginBetweenParagraphs: "14px"
|
|
207
213
|
}, children);
|
|
208
214
|
};
|
|
209
215
|
|
|
@@ -213,20 +219,21 @@ ParagraphM.propTypes = {
|
|
|
213
219
|
textStyle: _propTypes.default.oneOf([1, 2, 3, 4])
|
|
214
220
|
};
|
|
215
221
|
|
|
216
|
-
var ParagraphS = function ParagraphS(
|
|
217
|
-
var color =
|
|
218
|
-
textStyle =
|
|
219
|
-
children =
|
|
222
|
+
var ParagraphS = function ParagraphS(_ref12) {
|
|
223
|
+
var color = _ref12.color,
|
|
224
|
+
textStyle = _ref12.textStyle,
|
|
225
|
+
children = _ref12.children;
|
|
220
226
|
var fontWeight = paragraphFontWeight(textStyle);
|
|
221
227
|
var fontStyle = paragraphFontStyle(textStyle);
|
|
222
228
|
var textDecorationLine = paragraphTextDecorationLine(textStyle);
|
|
223
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
229
|
+
return /*#__PURE__*/_react.default.createElement(ParagraphBase, {
|
|
224
230
|
color: color,
|
|
225
231
|
lineHeight: 24,
|
|
226
232
|
fontSize: 16,
|
|
227
233
|
fontWeight: fontWeight,
|
|
228
234
|
fontStyle: fontStyle,
|
|
229
|
-
textDecorationLine: textDecorationLine
|
|
235
|
+
textDecorationLine: textDecorationLine,
|
|
236
|
+
marginBetweenParagraphs: "12px"
|
|
230
237
|
}, children);
|
|
231
238
|
};
|
|
232
239
|
|
|
@@ -236,20 +243,21 @@ ParagraphS.propTypes = {
|
|
|
236
243
|
textStyle: _propTypes.default.oneOf([1, 2, 3, 4])
|
|
237
244
|
};
|
|
238
245
|
|
|
239
|
-
var ParagraphXS = function ParagraphXS(
|
|
240
|
-
var color =
|
|
241
|
-
textStyle =
|
|
242
|
-
children =
|
|
246
|
+
var ParagraphXS = function ParagraphXS(_ref13) {
|
|
247
|
+
var color = _ref13.color,
|
|
248
|
+
textStyle = _ref13.textStyle,
|
|
249
|
+
children = _ref13.children;
|
|
243
250
|
var fontWeight = paragraphFontWeight(textStyle);
|
|
244
251
|
var fontStyle = paragraphFontStyle(textStyle);
|
|
245
252
|
var textDecorationLine = paragraphTextDecorationLine(textStyle);
|
|
246
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
253
|
+
return /*#__PURE__*/_react.default.createElement(ParagraphBase, {
|
|
247
254
|
color: color,
|
|
248
255
|
lineHeight: 20,
|
|
249
256
|
fontSize: 14,
|
|
250
257
|
fontWeight: fontWeight,
|
|
251
258
|
fontStyle: fontStyle,
|
|
252
|
-
textDecorationLine: textDecorationLine
|
|
259
|
+
textDecorationLine: textDecorationLine,
|
|
260
|
+
marginBetweenParagraphs: "10px"
|
|
253
261
|
}, children);
|
|
254
262
|
};
|
|
255
263
|
|
|
@@ -288,10 +296,10 @@ var componentTextTransformation = function componentTextTransformation(textStyle
|
|
|
288
296
|
return fontStyle;
|
|
289
297
|
};
|
|
290
298
|
|
|
291
|
-
var ComponentXL = function ComponentXL(
|
|
292
|
-
var color =
|
|
293
|
-
textStyle =
|
|
294
|
-
children =
|
|
299
|
+
var ComponentXL = function ComponentXL(_ref14) {
|
|
300
|
+
var color = _ref14.color,
|
|
301
|
+
textStyle = _ref14.textStyle,
|
|
302
|
+
children = _ref14.children;
|
|
295
303
|
var fontWeight = componentFontWeight(textStyle);
|
|
296
304
|
var fontStyle = componentFontStyle(textStyle);
|
|
297
305
|
return /*#__PURE__*/_react.default.createElement(TypographyBase, {
|
|
@@ -309,10 +317,10 @@ ComponentXL.propTypes = {
|
|
|
309
317
|
textStyle: _propTypes.default.oneOf([1, 2, 3, 4])
|
|
310
318
|
};
|
|
311
319
|
|
|
312
|
-
var ComponentL = function ComponentL(
|
|
313
|
-
var color =
|
|
314
|
-
textStyle =
|
|
315
|
-
children =
|
|
320
|
+
var ComponentL = function ComponentL(_ref15) {
|
|
321
|
+
var color = _ref15.color,
|
|
322
|
+
textStyle = _ref15.textStyle,
|
|
323
|
+
children = _ref15.children;
|
|
316
324
|
var fontWeight = componentFontWeight(textStyle);
|
|
317
325
|
var fontStyle = componentFontStyle(textStyle);
|
|
318
326
|
return /*#__PURE__*/_react.default.createElement(TypographyBase, {
|
|
@@ -330,10 +338,10 @@ ComponentL.propTypes = {
|
|
|
330
338
|
textStyle: _propTypes.default.oneOf([1, 2, 3, 4])
|
|
331
339
|
};
|
|
332
340
|
|
|
333
|
-
var ComponentM = function ComponentM(
|
|
334
|
-
var color =
|
|
335
|
-
textStyle =
|
|
336
|
-
children =
|
|
341
|
+
var ComponentM = function ComponentM(_ref16) {
|
|
342
|
+
var color = _ref16.color,
|
|
343
|
+
textStyle = _ref16.textStyle,
|
|
344
|
+
children = _ref16.children;
|
|
337
345
|
var fontWeight = componentFontWeight(textStyle);
|
|
338
346
|
var fontStyle = componentFontStyle(textStyle);
|
|
339
347
|
return /*#__PURE__*/_react.default.createElement(TypographyBase, {
|
|
@@ -351,10 +359,10 @@ ComponentM.propTypes = {
|
|
|
351
359
|
textStyle: _propTypes.default.oneOf([1, 2, 3, 4])
|
|
352
360
|
};
|
|
353
361
|
|
|
354
|
-
var ComponentS = function ComponentS(
|
|
355
|
-
var color =
|
|
356
|
-
textStyle =
|
|
357
|
-
children =
|
|
362
|
+
var ComponentS = function ComponentS(_ref17) {
|
|
363
|
+
var color = _ref17.color,
|
|
364
|
+
textStyle = _ref17.textStyle,
|
|
365
|
+
children = _ref17.children;
|
|
358
366
|
var fontWeight = componentFontWeight(textStyle);
|
|
359
367
|
var fontStyle = componentFontStyle(textStyle);
|
|
360
368
|
return /*#__PURE__*/_react.default.createElement(TypographyBase, {
|
|
@@ -372,10 +380,10 @@ ComponentS.propTypes = {
|
|
|
372
380
|
textStyle: _propTypes.default.oneOf([1, 2, 3, 4])
|
|
373
381
|
};
|
|
374
382
|
|
|
375
|
-
var ComponentXS = function ComponentXS(
|
|
376
|
-
var color =
|
|
377
|
-
textStyle =
|
|
378
|
-
children =
|
|
383
|
+
var ComponentXS = function ComponentXS(_ref18) {
|
|
384
|
+
var color = _ref18.color,
|
|
385
|
+
textStyle = _ref18.textStyle,
|
|
386
|
+
children = _ref18.children;
|
|
379
387
|
var fontWeight = componentFontWeight(textStyle);
|
|
380
388
|
var fontStyle = componentFontStyle(textStyle);
|
|
381
389
|
var textTransform = componentTextTransformation(textStyle);
|
|
@@ -395,10 +403,10 @@ ComponentXS.propTypes = {
|
|
|
395
403
|
textStyle: _propTypes.default.oneOf([1, 2, 3, 4])
|
|
396
404
|
};
|
|
397
405
|
|
|
398
|
-
var ComponentXXS = function ComponentXXS(
|
|
399
|
-
var color =
|
|
400
|
-
textStyle =
|
|
401
|
-
children =
|
|
406
|
+
var ComponentXXS = function ComponentXXS(_ref19) {
|
|
407
|
+
var color = _ref19.color,
|
|
408
|
+
textStyle = _ref19.textStyle,
|
|
409
|
+
children = _ref19.children;
|
|
402
410
|
var fontWeight = componentFontWeight(textStyle);
|
|
403
411
|
var fontStyle = componentFontStyle(textStyle);
|
|
404
412
|
var textTransform = componentTextTransformation(textStyle);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/styles/typography.tsx"],"names":["TYPOGRAPHY","fontFamily","TypographyBase","color","lineHeight","fontSize","fontWeight","fontStyle","textTransform","textDecorationLine","COLORS","black","HeadlineBase","HeadlineXL","HeadlineL","HeadlineM","HeadlineS","HeadlineXS","HeadlineXXS","ParagraphBase","ParagraphTextStyle","paragraphFontWeight","textStyle","Bold","paragraphFontStyle","Italic","paragraphTextDecorationLine","textDecoration","Underline","ParagraphXL","children","ParagraphL","ParagraphM","ParagraphS","ParagraphXS","ComponentTextStyle","componentFontWeight","UppercaseBold","componentFontStyle","componentTextTransformation","ComponentXL","ComponentL","ComponentM","ComponentS","ComponentXS","ComponentXXS"],"mappings":";;;;;;;;;AAAA;;AACA;;AACA;;;;AAGA,IAAMA,UAAU,GAAG;AACjBC,EAAAA,UAAU,EAAE;AADK,CAAnB;;AAcA,IAAMC,cAAc,GAAG,+BAAO,KAAP,EAA+B;AAAA,MAAEC,KAAF,QAAEA,KAAF;AAAA,MAASC,UAAT,QAASA,UAAT;AAAA,MAAqBC,QAArB,QAAqBA,QAArB;AAAA,MAA+BC,UAA/B,QAA+BA,UAA/B;AAAA,MAA2CC,SAA3C,QAA2CA,SAA3C;AAAA,MAAsDC,aAAtD,QAAsDA,aAAtD;AAAA,MAAqEC,kBAArE,QAAqEA,kBAArE;AAAA,SAA8F;AAClJR,IAAAA,UAAU,EAAED,UAAU,CAACC,UAD2H;AAElJI,IAAAA,QAAQ,EAAEA,QAFwI;AAGlJC,IAAAA,UAAU,EAAEA,UAHsI;AAIlJF,IAAAA,UAAU,EAAEA,UAAU,GAAG,IAJyH;AAKlJI,IAAAA,aAAa,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AAAA,MAAzBmB,SAAyB,UAAzBA,SAAyB;AAAA,MAAdQ,QAAc,UAAdA,QAAc;AACxF,MAAIxB,UAAU,GAAG8B,mBAAmB,CAACd,SAAD,CAApC;AACA,MAAIf,SAAS,GAAG+B,kBAAkB,CAAChB,SAAD,CAAlC;AACA,MAAId,aAAa,GAAG+B,2BAA2B,CAACjB,SAAD,CAA/C;AACA,sBACE,6BAAC,cAAD;AAAgB,IAAA,KAAK,EAAGnB,KAAxB;AAA+B,IAAA,UAAU,EAAE,EAA3C;AAA+C,IAAA,QAAQ,EAAE,EAAzD;AAA6D,IAAA,UAAU,EAAEG,UAAzE;AAAqF,IAAA,SAAS,EAAEC,SAAhG;AAA2G,IAAA,aAAa,EAAEC;AAA1H,KACGsB,QADH,CADF;AAKD,CATD;;;;AAzEE3B,EAAAA,K;AACAmB,EAAAA,S","sourcesContent":["import React, { FunctionComponent } from 'react';\nimport { COLORS } from '.';\nimport styled from 'styled-components';\nimport {Property} from 'csstype'\n\nconst TYPOGRAPHY = {\n fontFamily: 'Lato, sans-serif',\n};\n\ninterface ITypographyBase {\n color?: string,\n lineHeight: number,\n fontSize: number,\n fontWeight: number,\n fontStyle?: string,\n textTransform?: Property.TextTransform\n textDecorationLine?: Property.TextDecorationLine\n}\n\nconst TypographyBase = styled(\"div\")<ITypographyBase>(({color, lineHeight, fontSize, fontWeight, fontStyle, textTransform, textDecorationLine}) => ({ \n fontFamily: TYPOGRAPHY.fontFamily,\n fontSize: fontSize,\n fontWeight: fontWeight,\n lineHeight: lineHeight + 'px',\n textTransform: (textTransform? textTransform : 'none'),\n textDecorationLine: (textDecorationLine? textDecorationLine : 'none'),\n fontStyle: (fontStyle ? fontStyle : 'normal'),\n color: (color ? color : COLORS.black)\n}));\n\n\ninterface IHeadline {\n color?: string\n}\n\ninterface IHeadlineBase {\n color?: string,\n lineHeight: number,\n fontSize: number\n}\nconst HeadlineBase = styled(TypographyBase)<IHeadlineBase>(({color, lineHeight, fontSize}) => ({ \n fontSize: fontSize,\n fontWeight: 700,\n lineHeight: lineHeight,\n color: color\n}));\n\nconst HeadlineXL = styled(HeadlineBase)<IHeadline>(({color}) => ({ \n fontSize: '48px',\n lineHeight: '64px',\n color: color\n}));\n\nconst HeadlineL = styled(HeadlineBase)<IHeadline>(({color}) => ({ \n fontSize: '40px',\n lineHeight: '52px',\n color: color\n}));\n\nconst HeadlineM = styled(HeadlineBase)<IHeadline>(({color}) => ({ \n fontSize: '32px',\n lineHeight: '40px',\n color: color\n}));\n\nconst HeadlineS = styled(HeadlineBase)<IHeadline>(({color}) => ({ \n fontSize: '28px',\n lineHeight: '36px',\n color: color\n}));\n\nconst HeadlineXS = styled(HeadlineBase)<IHeadline>(({color}) => ({ \n fontSize: '24px',\n lineHeight: '32px',\n color: color\n}));\n\nconst HeadlineXXS = styled(HeadlineBase)<IHeadline>(({color}) => ({ \n fontSize: '20px',\n lineHeight: '24px',\n color: color\n}));\n\ninterface IParagraphBase {\n color?: string,\n lineHeight: number,\n fontSize: number\n}\n\nconst ParagraphBase = styled(TypographyBase)<IParagraphBase>(({color, lineHeight, fontSize}) => ({ \n fontSize: fontSize,\n fontWeight: 400,\n lineHeight: lineHeight,\n color: color\n}));\n\ninterface IParagraph {\n color?: string\n}\n\nenum ParagraphTextStyle {\n Regular = 1,\n Bold,\n Italic,\n Underline\n}\n\n\ntype ParagraphProps = {\n color?: string, \n textStyle?: ParagraphTextStyle\n};\n\n\nconst paragraphFontWeight = (textStyle?: ParagraphTextStyle) => {\n let fontWeight = 400;\n if (textStyle === ParagraphTextStyle.Bold) {\n fontWeight = 700;\n }\n return fontWeight;\n};\n\nconst paragraphFontStyle = (textStyle?: ParagraphTextStyle) => {\n let fontStyle = (textStyle && textStyle === ParagraphTextStyle.Italic) ? 'italic' : '';\n return fontStyle;\n};\n\nconst paragraphTextDecorationLine = (textStyle?: ParagraphTextStyle) : Property.TextDecorationLine => {\n let textDecoration : Property.TextDecorationLine = (textStyle && textStyle === ParagraphTextStyle.Underline) ? 'underline' : 'none';\n return textDecoration;\n};\n\n\nconst ParagraphXL: FunctionComponent<ParagraphProps> = ({color, textStyle, children}) => { \n let fontWeight = paragraphFontWeight(textStyle);\n let fontStyle = paragraphFontStyle(textStyle);\n let textDecorationLine = paragraphTextDecorationLine(textStyle);\n return (\n <TypographyBase color= {color} lineHeight={36} fontSize={24} fontWeight={fontWeight} fontStyle={fontStyle} textDecorationLine={textDecorationLine}>\n {children}\n </TypographyBase>\n )\n};\n\nconst ParagraphL: FunctionComponent<ParagraphProps> = ({color, textStyle, children}) => { \n let fontWeight = paragraphFontWeight(textStyle);\n let fontStyle = paragraphFontStyle(textStyle);\n let textDecorationLine = paragraphTextDecorationLine(textStyle);\n return (\n <TypographyBase color= {color} lineHeight={32} fontSize={20} fontWeight={fontWeight} fontStyle={fontStyle} textDecorationLine={textDecorationLine}>\n {children}\n </TypographyBase>\n )\n};\n\nconst ParagraphM: FunctionComponent<ParagraphProps> = ({color, textStyle, children}) => { \n let fontWeight = paragraphFontWeight(textStyle);\n let fontStyle = paragraphFontStyle(textStyle);\n let textDecorationLine = paragraphTextDecorationLine(textStyle);\n return (\n <TypographyBase color= {color} lineHeight={28} fontSize={18} fontWeight={fontWeight} fontStyle={fontStyle} textDecorationLine={textDecorationLine}>\n {children}\n </TypographyBase>\n )\n};\n\nconst ParagraphS: FunctionComponent<ParagraphProps> = ({color, textStyle, children}) => { \n let fontWeight = paragraphFontWeight(textStyle);\n let fontStyle = paragraphFontStyle(textStyle);\n let textDecorationLine = paragraphTextDecorationLine(textStyle);\n return (\n <TypographyBase color= {color} lineHeight={24} fontSize={16} fontWeight={fontWeight} fontStyle={fontStyle} textDecorationLine={textDecorationLine}>\n {children}\n </TypographyBase>\n )\n};\n\nconst ParagraphXS: FunctionComponent<ParagraphProps> = ({color, textStyle, children}) => { \n let fontWeight = paragraphFontWeight(textStyle);\n let fontStyle = paragraphFontStyle(textStyle);\n let textDecorationLine = paragraphTextDecorationLine(textStyle);\n return (\n <TypographyBase color= {color} lineHeight={20} fontSize={14} fontWeight={fontWeight} fontStyle={fontStyle} textDecorationLine={textDecorationLine}>\n {children}\n </TypographyBase>\n )\n};\n\n\nenum ComponentTextStyle {\n Regular = 1,\n Bold,\n Italic,\n UppercaseBold\n}\n\ntype ComponentProps = {\n color?: string, \n textStyle?: ComponentTextStyle\n};\n\nconst componentFontWeight = (textStyle?: ComponentTextStyle) => {\n let fontWeight = 400;\n if (textStyle === ComponentTextStyle.Bold || textStyle === ComponentTextStyle.UppercaseBold) {\n fontWeight = 700;\n }\n return fontWeight;\n};\n\nconst componentFontStyle = (textStyle?: ComponentTextStyle) => {\n let fontStyle = (textStyle && textStyle === ComponentTextStyle.Italic) ? 'italic' : '';\n return fontStyle;\n};\n\nconst componentTextTransformation = (textStyle?: ComponentTextStyle) : Property.TextTransform => {\n let fontStyle : Property.TextTransform = (textStyle && textStyle === ComponentTextStyle.UppercaseBold) ? 'uppercase' : 'none';\n return fontStyle;\n};\n\nconst ComponentXL: FunctionComponent<ComponentProps> = ({color, textStyle, children}) => { \n let fontWeight = componentFontWeight(textStyle);\n let fontStyle = componentFontStyle(textStyle);\n return (\n <TypographyBase color= {color} lineHeight={28} fontSize={24} fontWeight={fontWeight} fontStyle={fontStyle} >\n {children}\n </TypographyBase>\n )\n};\n\nconst ComponentL: FunctionComponent<ComponentProps> = ({color, textStyle, children}) => { \n let fontWeight = componentFontWeight(textStyle);\n let fontStyle = componentFontStyle(textStyle);\n return (\n <TypographyBase color= {color} lineHeight={24} fontSize={20} fontWeight={fontWeight} fontStyle={fontStyle} >\n {children}\n </TypographyBase>\n )\n};\n\nconst ComponentM: FunctionComponent<ComponentProps> = ({color, textStyle, children}) => { \n let fontWeight = componentFontWeight(textStyle);\n let fontStyle = componentFontStyle(textStyle);\n return (\n <TypographyBase color= {color} lineHeight={24} fontSize={18} fontWeight={fontWeight} fontStyle={fontStyle} >\n {children}\n </TypographyBase>\n )\n};\n\nconst ComponentS: FunctionComponent<ComponentProps> = ({color, textStyle, children}) => { \n let fontWeight = componentFontWeight(textStyle);\n let fontStyle = componentFontStyle(textStyle);\n return (\n <TypographyBase color= {color} lineHeight={20} fontSize={16} fontWeight={fontWeight} fontStyle={fontStyle} >\n {children}\n </TypographyBase>\n )\n};\n\nconst ComponentXS: FunctionComponent<ComponentProps> = ({color, textStyle, children}) => { \n let fontWeight = componentFontWeight(textStyle);\n let fontStyle = componentFontStyle(textStyle);\n let textTransform = componentTextTransformation(textStyle);\n return (\n <TypographyBase color= {color} lineHeight={16} fontSize={14} fontWeight={fontWeight} fontStyle={fontStyle} textTransform={textTransform}>\n {children}\n </TypographyBase>\n )\n};\n\nconst ComponentXXS: FunctionComponent<ComponentProps> = ({color, textStyle, children}) => { \n let fontWeight = componentFontWeight(textStyle);\n let fontStyle = componentFontStyle(textStyle);\n let textTransform = componentTextTransformation(textStyle);\n return (\n <TypographyBase color= {color} lineHeight={16} fontSize={12} fontWeight={fontWeight} fontStyle={fontStyle} textTransform={textTransform} >\n {children}\n </TypographyBase>\n )\n};\n\n\nexport {TYPOGRAPHY}\nexport {HeadlineXL, HeadlineL, HeadlineM, HeadlineS, HeadlineXS, HeadlineXXS}\nexport {ParagraphTextStyle, ParagraphXL, ParagraphL, ParagraphM, ParagraphS, ParagraphXS}\nexport {ComponentTextStyle, ComponentXL, ComponentL, ComponentM, ComponentS, ComponentXS, ComponentXXS}"],"file":"typography.js"}
|
|
1
|
+
{"version":3,"sources":["../../../src/styles/typography.tsx"],"names":["TYPOGRAPHY","fontFamily","TypographyBase","color","lineHeight","fontSize","fontWeight","fontStyle","textTransform","textDecorationLine","COLORS","black","HeadlineBase","HeadlineXL","HeadlineL","HeadlineM","HeadlineS","HeadlineXS","HeadlineXXS","ParagraphStyling","css","ParagraphBase","props","marginBetweenParagraphs","ParagraphTextStyle","paragraphFontWeight","textStyle","Bold","paragraphFontStyle","Italic","paragraphTextDecorationLine","textDecoration","Underline","ParagraphXL","children","ParagraphL","ParagraphM","ParagraphS","ParagraphXS","ComponentTextStyle","componentFontWeight","UppercaseBold","componentFontStyle","componentTextTransformation","ComponentXL","ComponentL","ComponentM","ComponentS","ComponentXS","ComponentXXS"],"mappings":";;;;;;;;;;;AAAA;;AACA;;AACA;;;;;;;;;;;;AAGA,IAAMA,UAAU,GAAG;AACjBC,EAAAA,UAAU,EAAE;AADK,CAAnB;;AAcA,IAAMC,cAAc,GAAG,+BAAO,KAAP,EAA+B;AAAA,MAAGC,KAAH,QAAGA,KAAH;AAAA,MAAUC,UAAV,QAAUA,UAAV;AAAA,MAAsBC,QAAtB,QAAsBA,QAAtB;AAAA,MAAgCC,UAAhC,QAAgCA,UAAhC;AAAA,MAA4CC,SAA5C,QAA4CA,SAA5C;AAAA,MAAuDC,aAAvD,QAAuDA,aAAvD;AAAA,MAAsEC,kBAAtE,QAAsEA,kBAAtE;AAAA,SAAgG;AACpJR,IAAAA,UAAU,EAAED,UAAU,CAACC,UAD6H;AAEpJI,IAAAA,QAAQ,EAAEA,QAF0I;AAGpJC,IAAAA,UAAU,EAAEA,UAHwI;AAIpJF,IAAAA,UAAU,EAAEA,UAAU,GAAG,IAJ2H;AAKpJI,IAAAA,aAAa,EAAEA,aAAa,GAAGA,aAAH,GAAmB,MALqG;AAMpJC,IAAAA,kBAAkB,EAAEA,kBAAkB,GAAGA,kBAAH,GAAwB,MANsF;AAOpJF,IAAAA,SAAS,EAAEA,SAAS,GAAGA,SAAH,GAAe,QAPiH;AAQpJJ,IAAAA,KAAK,EAAEA,KAAK,GAAGA,KAAH,GAAWO,SAAOC;AARsH,GAAhG;AAAA,CAA/B,CAAvB;AAoBA,IAAMC,YAAY,GAAG,+BAAOV,cAAP,EAAsC;AAAA,MAAGC,KAAH,SAAGA,KAAH;AAAA,MAAUC,UAAV,SAAUA,UAAV;AAAA,MAAsBC,QAAtB,SAAsBA,QAAtB;AAAA,SAAsC;AAC/FA,IAAAA,QAAQ,EAAEA,QADqF;AAE/FC,IAAAA,UAAU,EAAE,GAFmF;AAG/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0G,IAAA,aAAa,EAAEC;AAAzH,KACG0B,QADH,CADF;AAKD,CATD;;;;AAzEE/B,EAAAA,K;AACAuB,EAAAA,S","sourcesContent":["import React, { FunctionComponent } from 'react';\nimport styled, { css } from 'styled-components';\nimport { COLORS } from '.';\nimport { Property } from 'csstype';\n\nconst TYPOGRAPHY = {\n fontFamily: 'Lato, sans-serif',\n};\n\ninterface ITypographyBase {\n color?: string;\n lineHeight: number;\n fontSize: number;\n fontWeight: number;\n fontStyle?: string;\n textTransform?: Property.TextTransform;\n textDecorationLine?: Property.TextDecorationLine;\n}\n\nconst TypographyBase = styled('div')<ITypographyBase>(({ color, lineHeight, fontSize, fontWeight, fontStyle, textTransform, textDecorationLine }) => ({\n fontFamily: TYPOGRAPHY.fontFamily,\n fontSize: fontSize,\n fontWeight: fontWeight,\n lineHeight: lineHeight + 'px',\n textTransform: textTransform ? textTransform : 'none',\n textDecorationLine: textDecorationLine ? textDecorationLine : 'none',\n fontStyle: fontStyle ? fontStyle : 'normal',\n color: color ? color : COLORS.black,\n}));\n\ninterface IHeadline {\n color?: string;\n}\n\ninterface IHeadlineBase {\n color?: string;\n lineHeight: number;\n fontSize: number;\n}\nconst HeadlineBase = styled(TypographyBase)<IHeadlineBase>(({ color, lineHeight, fontSize }) => ({\n fontSize: fontSize,\n fontWeight: 700,\n lineHeight: lineHeight,\n color: color,\n}));\n\nconst HeadlineXL = styled(HeadlineBase)<IHeadline>(({ color }) => ({\n fontSize: '48px',\n lineHeight: '64px',\n color: color,\n}));\n\nconst HeadlineL = styled(HeadlineBase)<IHeadline>(({ color }) => ({\n fontSize: '40px',\n lineHeight: '52px',\n color: color,\n}));\n\nconst HeadlineM = styled(HeadlineBase)<IHeadline>(({ color }) => ({\n fontSize: '32px',\n lineHeight: '40px',\n color: color,\n}));\n\nconst HeadlineS = styled(HeadlineBase)<IHeadline>(({ color }) => ({\n fontSize: '28px',\n lineHeight: '36px',\n color: color,\n}));\n\nconst HeadlineXS = styled(HeadlineBase)<IHeadline>(({ color }) => ({\n fontSize: '24px',\n lineHeight: '32px',\n color: color,\n}));\n\nconst HeadlineXXS = styled(HeadlineBase)<IHeadline>(({ color }) => ({\n fontSize: '20px',\n lineHeight: '24px',\n color: color,\n}));\n\nconst ParagraphStyling = css`\n :lang(ja-jp) > h1,\n h2,\n h3,\n h4,\n p,\n span {\n max-width: 30em;\n }\n :lang(ko-kr) > h1,\n h2,\n h3,\n h4,\n p,\n span {\n max-width: 30em;\n }\n :lang(zh-CN) > h1,\n h2,\n h3,\n h4,\n p,\n span {\n max-width: 30em;\n }\n h1,\n h2,\n h3,\n h4,\n p,\n span {\n max-width: 34em;\n }\n`;\n\ninterface IParagraphBase {\n color?: string;\n lineHeight: number;\n fontSize: number;\n marginBetweenParagraphs?: string;\n}\n\nconst ParagraphBase = styled(TypographyBase)<IParagraphBase>`\n p {\n margin-block-start: 0;\n margin-block-end: 0;\n }\n p:not(:only-of-type) {\n margin-bottom: ${(props) => props.marginBetweenParagraphs || '0'};\n }\n ${ParagraphStyling}\n`;\n\ninterface IParagraph {\n color?: string;\n}\n\nenum ParagraphTextStyle {\n Regular = 1,\n Bold,\n Italic,\n Underline,\n}\n\ntype ParagraphProps = {\n color?: string;\n textStyle?: ParagraphTextStyle;\n};\n\nconst paragraphFontWeight = (textStyle?: ParagraphTextStyle) => {\n let fontWeight = 400;\n if (textStyle === ParagraphTextStyle.Bold) {\n fontWeight = 700;\n }\n return fontWeight;\n};\n\nconst paragraphFontStyle = (textStyle?: ParagraphTextStyle) => {\n let fontStyle = textStyle && textStyle === ParagraphTextStyle.Italic ? 'italic' : '';\n return fontStyle;\n};\n\nconst paragraphTextDecorationLine = (textStyle?: ParagraphTextStyle): Property.TextDecorationLine => {\n let textDecoration: Property.TextDecorationLine = textStyle && textStyle === ParagraphTextStyle.Underline ? 'underline' : 'none';\n return textDecoration;\n};\n\nconst ParagraphXL: FunctionComponent<ParagraphProps> = ({ color, textStyle, children }) => {\n let fontWeight = paragraphFontWeight(textStyle);\n let fontStyle = paragraphFontStyle(textStyle);\n let textDecorationLine = paragraphTextDecorationLine(textStyle);\n return (\n <ParagraphBase color={color} lineHeight={36} fontSize={24} fontWeight={fontWeight} fontStyle={fontStyle} textDecorationLine={textDecorationLine} marginBetweenParagraphs=\"18px\">\n {children}\n </ParagraphBase>\n );\n};\n\nconst ParagraphL: FunctionComponent<ParagraphProps> = ({ color, textStyle, children }) => {\n let fontWeight = paragraphFontWeight(textStyle);\n let fontStyle = paragraphFontStyle(textStyle);\n let textDecorationLine = paragraphTextDecorationLine(textStyle);\n return (\n <ParagraphBase color={color} lineHeight={32} fontSize={20} fontWeight={fontWeight} fontStyle={fontStyle} textDecorationLine={textDecorationLine} marginBetweenParagraphs=\"16px\">\n {children}\n </ParagraphBase>\n );\n};\n\nconst ParagraphM: FunctionComponent<ParagraphProps> = ({ color, textStyle, children }) => {\n let fontWeight = paragraphFontWeight(textStyle);\n let fontStyle = paragraphFontStyle(textStyle);\n let textDecorationLine = paragraphTextDecorationLine(textStyle);\n return (\n <ParagraphBase color={color} lineHeight={28} fontSize={18} fontWeight={fontWeight} fontStyle={fontStyle} textDecorationLine={textDecorationLine} marginBetweenParagraphs=\"14px\">\n {children}\n </ParagraphBase>\n );\n};\n\nconst ParagraphS: FunctionComponent<ParagraphProps> = ({ color, textStyle, children }) => {\n let fontWeight = paragraphFontWeight(textStyle);\n let fontStyle = paragraphFontStyle(textStyle);\n let textDecorationLine = paragraphTextDecorationLine(textStyle);\n return (\n <ParagraphBase color={color} lineHeight={24} fontSize={16} fontWeight={fontWeight} fontStyle={fontStyle} textDecorationLine={textDecorationLine} marginBetweenParagraphs=\"12px\">\n {children}\n </ParagraphBase>\n );\n};\n\nconst ParagraphXS: FunctionComponent<ParagraphProps> = ({ color, textStyle, children }) => {\n let fontWeight = paragraphFontWeight(textStyle);\n let fontStyle = paragraphFontStyle(textStyle);\n let textDecorationLine = paragraphTextDecorationLine(textStyle);\n return (\n <ParagraphBase color={color} lineHeight={20} fontSize={14} fontWeight={fontWeight} fontStyle={fontStyle} textDecorationLine={textDecorationLine} marginBetweenParagraphs=\"10px\">\n {children}\n </ParagraphBase>\n );\n};\n\nenum ComponentTextStyle {\n Regular = 1,\n Bold,\n Italic,\n UppercaseBold,\n}\n\ntype ComponentProps = {\n color?: string;\n textStyle?: ComponentTextStyle;\n};\n\nconst componentFontWeight = (textStyle?: ComponentTextStyle) => {\n let fontWeight = 400;\n if (textStyle === ComponentTextStyle.Bold || textStyle === ComponentTextStyle.UppercaseBold) {\n fontWeight = 700;\n }\n return fontWeight;\n};\n\nconst componentFontStyle = (textStyle?: ComponentTextStyle) => {\n let fontStyle = textStyle && textStyle === ComponentTextStyle.Italic ? 'italic' : '';\n return fontStyle;\n};\n\nconst componentTextTransformation = (textStyle?: ComponentTextStyle): Property.TextTransform => {\n let fontStyle: Property.TextTransform = textStyle && textStyle === ComponentTextStyle.UppercaseBold ? 'uppercase' : 'none';\n return fontStyle;\n};\n\nconst ComponentXL: FunctionComponent<ComponentProps> = ({ color, textStyle, children }) => {\n let fontWeight = componentFontWeight(textStyle);\n let fontStyle = componentFontStyle(textStyle);\n return (\n <TypographyBase color={color} lineHeight={28} fontSize={24} fontWeight={fontWeight} fontStyle={fontStyle}>\n {children}\n </TypographyBase>\n );\n};\n\nconst ComponentL: FunctionComponent<ComponentProps> = ({ color, textStyle, children }) => {\n let fontWeight = componentFontWeight(textStyle);\n let fontStyle = componentFontStyle(textStyle);\n return (\n <TypographyBase color={color} lineHeight={24} fontSize={20} fontWeight={fontWeight} fontStyle={fontStyle}>\n {children}\n </TypographyBase>\n );\n};\n\nconst ComponentM: FunctionComponent<ComponentProps> = ({ color, textStyle, children }) => {\n let fontWeight = componentFontWeight(textStyle);\n let fontStyle = componentFontStyle(textStyle);\n return (\n <TypographyBase color={color} lineHeight={24} fontSize={18} fontWeight={fontWeight} fontStyle={fontStyle}>\n {children}\n </TypographyBase>\n );\n};\n\nconst ComponentS: FunctionComponent<ComponentProps> = ({ color, textStyle, children }) => {\n let fontWeight = componentFontWeight(textStyle);\n let fontStyle = componentFontStyle(textStyle);\n return (\n <TypographyBase color={color} lineHeight={20} fontSize={16} fontWeight={fontWeight} fontStyle={fontStyle}>\n {children}\n </TypographyBase>\n );\n};\n\nconst ComponentXS: FunctionComponent<ComponentProps> = ({ color, textStyle, children }) => {\n let fontWeight = componentFontWeight(textStyle);\n let fontStyle = componentFontStyle(textStyle);\n let textTransform = componentTextTransformation(textStyle);\n return (\n <TypographyBase color={color} lineHeight={16} fontSize={14} fontWeight={fontWeight} fontStyle={fontStyle} textTransform={textTransform}>\n {children}\n </TypographyBase>\n );\n};\n\nconst ComponentXXS: FunctionComponent<ComponentProps> = ({ color, textStyle, children }) => {\n let fontWeight = componentFontWeight(textStyle);\n let fontStyle = componentFontStyle(textStyle);\n let textTransform = componentTextTransformation(textStyle);\n return (\n <TypographyBase color={color} lineHeight={16} fontSize={12} fontWeight={fontWeight} fontStyle={fontStyle} textTransform={textTransform}>\n {children}\n </TypographyBase>\n );\n};\n\nexport { TYPOGRAPHY };\nexport { HeadlineXL, HeadlineL, HeadlineM, HeadlineS, HeadlineXS, HeadlineXXS };\nexport { ParagraphTextStyle, ParagraphXL, ParagraphL, ParagraphM, ParagraphS, ParagraphXS };\nexport { ComponentTextStyle, ComponentXL, ComponentL, ComponentM, ComponentS, ComponentXS, ComponentXXS };\n"],"file":"typography.js"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
2
|
if (typeof define === "function" && define.amd) {
|
|
3
|
-
define(["exports", "prop-types", "react", "
|
|
3
|
+
define(["exports", "prop-types", "react", "styled-components", "."], factory);
|
|
4
4
|
} else if (typeof exports !== "undefined") {
|
|
5
|
-
factory(exports, require("prop-types"), require("react"), require("
|
|
5
|
+
factory(exports, require("prop-types"), require("react"), require("styled-components"), require("."));
|
|
6
6
|
} else {
|
|
7
7
|
var mod = {
|
|
8
8
|
exports: {}
|
|
9
9
|
};
|
|
10
|
-
factory(mod.exports, global.propTypes, global.react, global.
|
|
10
|
+
factory(mod.exports, global.propTypes, global.react, global.styledComponents, global._);
|
|
11
11
|
global.undefined = mod.exports;
|
|
12
12
|
}
|
|
13
|
-
})(this, function (exports, _propTypes, _react,
|
|
13
|
+
})(this, function (exports, _propTypes, _react, _styledComponents, _) {
|
|
14
14
|
"use strict";
|
|
15
15
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
const TYPOGRAPHY = {
|
|
34
34
|
fontFamily: 'Lato, sans-serif'
|
|
35
35
|
};
|
|
36
|
-
const TypographyBase = (0, _styledComponents2.default)(
|
|
36
|
+
const TypographyBase = (0, _styledComponents2.default)('div')(({
|
|
37
37
|
color,
|
|
38
38
|
lineHeight,
|
|
39
39
|
fontSize,
|
|
@@ -103,16 +103,50 @@
|
|
|
103
103
|
lineHeight: '24px',
|
|
104
104
|
color: color
|
|
105
105
|
}));
|
|
106
|
-
const
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
106
|
+
const ParagraphStyling = _styledComponents.css`
|
|
107
|
+
:lang(ja-jp) > h1,
|
|
108
|
+
h2,
|
|
109
|
+
h3,
|
|
110
|
+
h4,
|
|
111
|
+
p,
|
|
112
|
+
span {
|
|
113
|
+
max-width: 30em;
|
|
114
|
+
}
|
|
115
|
+
:lang(ko-kr) > h1,
|
|
116
|
+
h2,
|
|
117
|
+
h3,
|
|
118
|
+
h4,
|
|
119
|
+
p,
|
|
120
|
+
span {
|
|
121
|
+
max-width: 30em;
|
|
122
|
+
}
|
|
123
|
+
:lang(zh-CN) > h1,
|
|
124
|
+
h2,
|
|
125
|
+
h3,
|
|
126
|
+
h4,
|
|
127
|
+
p,
|
|
128
|
+
span {
|
|
129
|
+
max-width: 30em;
|
|
130
|
+
}
|
|
131
|
+
h1,
|
|
132
|
+
h2,
|
|
133
|
+
h3,
|
|
134
|
+
h4,
|
|
135
|
+
p,
|
|
136
|
+
span {
|
|
137
|
+
max-width: 34em;
|
|
138
|
+
}
|
|
139
|
+
`;
|
|
140
|
+
const ParagraphBase = (0, _styledComponents2.default)(TypographyBase)`
|
|
141
|
+
p {
|
|
142
|
+
margin-block-start: 0;
|
|
143
|
+
margin-block-end: 0;
|
|
144
|
+
}
|
|
145
|
+
p:not(:only-of-type) {
|
|
146
|
+
margin-bottom: ${props => props.marginBetweenParagraphs || '0'};
|
|
147
|
+
}
|
|
148
|
+
${ParagraphStyling}
|
|
149
|
+
`;
|
|
116
150
|
var ParagraphTextStyle;
|
|
117
151
|
|
|
118
152
|
(function (ParagraphTextStyle) {
|
|
@@ -150,13 +184,14 @@
|
|
|
150
184
|
let fontWeight = paragraphFontWeight(textStyle);
|
|
151
185
|
let fontStyle = paragraphFontStyle(textStyle);
|
|
152
186
|
let textDecorationLine = paragraphTextDecorationLine(textStyle);
|
|
153
|
-
return /*#__PURE__*/_react2.default.createElement(
|
|
187
|
+
return /*#__PURE__*/_react2.default.createElement(ParagraphBase, {
|
|
154
188
|
color: color,
|
|
155
189
|
lineHeight: 36,
|
|
156
190
|
fontSize: 24,
|
|
157
191
|
fontWeight: fontWeight,
|
|
158
192
|
fontStyle: fontStyle,
|
|
159
|
-
textDecorationLine: textDecorationLine
|
|
193
|
+
textDecorationLine: textDecorationLine,
|
|
194
|
+
marginBetweenParagraphs: "18px"
|
|
160
195
|
}, children);
|
|
161
196
|
};
|
|
162
197
|
|
|
@@ -173,13 +208,14 @@
|
|
|
173
208
|
let fontWeight = paragraphFontWeight(textStyle);
|
|
174
209
|
let fontStyle = paragraphFontStyle(textStyle);
|
|
175
210
|
let textDecorationLine = paragraphTextDecorationLine(textStyle);
|
|
176
|
-
return /*#__PURE__*/_react2.default.createElement(
|
|
211
|
+
return /*#__PURE__*/_react2.default.createElement(ParagraphBase, {
|
|
177
212
|
color: color,
|
|
178
213
|
lineHeight: 32,
|
|
179
214
|
fontSize: 20,
|
|
180
215
|
fontWeight: fontWeight,
|
|
181
216
|
fontStyle: fontStyle,
|
|
182
|
-
textDecorationLine: textDecorationLine
|
|
217
|
+
textDecorationLine: textDecorationLine,
|
|
218
|
+
marginBetweenParagraphs: "16px"
|
|
183
219
|
}, children);
|
|
184
220
|
};
|
|
185
221
|
|
|
@@ -196,13 +232,14 @@
|
|
|
196
232
|
let fontWeight = paragraphFontWeight(textStyle);
|
|
197
233
|
let fontStyle = paragraphFontStyle(textStyle);
|
|
198
234
|
let textDecorationLine = paragraphTextDecorationLine(textStyle);
|
|
199
|
-
return /*#__PURE__*/_react2.default.createElement(
|
|
235
|
+
return /*#__PURE__*/_react2.default.createElement(ParagraphBase, {
|
|
200
236
|
color: color,
|
|
201
237
|
lineHeight: 28,
|
|
202
238
|
fontSize: 18,
|
|
203
239
|
fontWeight: fontWeight,
|
|
204
240
|
fontStyle: fontStyle,
|
|
205
|
-
textDecorationLine: textDecorationLine
|
|
241
|
+
textDecorationLine: textDecorationLine,
|
|
242
|
+
marginBetweenParagraphs: "14px"
|
|
206
243
|
}, children);
|
|
207
244
|
};
|
|
208
245
|
|
|
@@ -219,13 +256,14 @@
|
|
|
219
256
|
let fontWeight = paragraphFontWeight(textStyle);
|
|
220
257
|
let fontStyle = paragraphFontStyle(textStyle);
|
|
221
258
|
let textDecorationLine = paragraphTextDecorationLine(textStyle);
|
|
222
|
-
return /*#__PURE__*/_react2.default.createElement(
|
|
259
|
+
return /*#__PURE__*/_react2.default.createElement(ParagraphBase, {
|
|
223
260
|
color: color,
|
|
224
261
|
lineHeight: 24,
|
|
225
262
|
fontSize: 16,
|
|
226
263
|
fontWeight: fontWeight,
|
|
227
264
|
fontStyle: fontStyle,
|
|
228
|
-
textDecorationLine: textDecorationLine
|
|
265
|
+
textDecorationLine: textDecorationLine,
|
|
266
|
+
marginBetweenParagraphs: "12px"
|
|
229
267
|
}, children);
|
|
230
268
|
};
|
|
231
269
|
|
|
@@ -242,13 +280,14 @@
|
|
|
242
280
|
let fontWeight = paragraphFontWeight(textStyle);
|
|
243
281
|
let fontStyle = paragraphFontStyle(textStyle);
|
|
244
282
|
let textDecorationLine = paragraphTextDecorationLine(textStyle);
|
|
245
|
-
return /*#__PURE__*/_react2.default.createElement(
|
|
283
|
+
return /*#__PURE__*/_react2.default.createElement(ParagraphBase, {
|
|
246
284
|
color: color,
|
|
247
285
|
lineHeight: 20,
|
|
248
286
|
fontSize: 14,
|
|
249
287
|
fontWeight: fontWeight,
|
|
250
288
|
fontStyle: fontStyle,
|
|
251
|
-
textDecorationLine: textDecorationLine
|
|
289
|
+
textDecorationLine: textDecorationLine,
|
|
290
|
+
marginBetweenParagraphs: "10px"
|
|
252
291
|
}, children);
|
|
253
292
|
};
|
|
254
293
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/styles/typography.tsx"],"names":["TYPOGRAPHY","fontFamily","TypographyBase","textDecorationLine","fontSize","fontWeight","lineHeight","textTransform","fontStyle","color","COLORS","black","HeadlineBase","HeadlineXL","HeadlineL","HeadlineM","HeadlineS","HeadlineXS","HeadlineXXS","ParagraphBase","ParagraphTextStyle","textStyle","paragraphFontWeight","paragraphFontStyle","paragraphTextDecorationLine","textDecoration","ParagraphXL","children","ParagraphL","ParagraphM","ParagraphS","ParagraphXS","ComponentTextStyle","componentFontWeight","componentFontStyle","componentTextTransformation","ComponentXL","ComponentL","ComponentM","ComponentS","ComponentXS","ComponentXXS"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,QAAMA,UAAU,GAAG;AACjBC,IAAAA,UAAU,EAAE;AADK,GAAnB;AAcA,QAAMC,cAAc,GAAG,gCAAA,KAAA,EAA+B,CAAC;AAAA,IAAA,KAAA;AAAA,IAAA,UAAA;AAAA,IAAA,QAAA;AAAA,IAAA,UAAA;AAAA,IAAA,SAAA;AAAA,IAAA,aAAA;AAAoEC,IAAAA;AAApE,GAAD,MA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AAA,KAAK,EAArB,KAAA;AAA+B,MAAA,UAAU,EAAzC,EAAA;AAA+C,MAAA,QAAQ,EAAvD,EAAA;AAA6D,MAAA,UAAU,EAAvE,UAAA;AAAqF,MAAA,SAAS,EAA9F,SAAA;AAA2G,MAAA,aAAa,EAAE5B;AAA1H,KAAA,EADF,QACE,CADF;AAJF,GAAA;;;AAzEEE,IAAAA,K;AACAY,IAAAA,S;;UAoFF,U,GAAA,U;UACA,U,GAAA,U;UAAA,S,GAAA,S;UAAA,S,GAAA,S;UAAA,S,GAAA,S;UAAA,U,GAAA,U;UAAA,W,GAAA,W;UACA,kB,GAAA,kB;UAAA,W,GAAA,W;UAAA,U,GAAA,U;UAAA,U,GAAA,U;UAAA,U,GAAA,U;UAAA,W,GAAA,W;UACA,kB,GAAA,kB;UAAA,W,GAAA,W;UAAA,U,GAAA,U;UAAA,U,GAAA,U;UAAA,U,GAAA,U;UAAA,W,GAAA,W;UAAA,Y,GAAA,Y","sourcesContent":["import React, { FunctionComponent } from 'react';\nimport { COLORS } from '.';\nimport styled from 'styled-components';\nimport {Property} from 'csstype'\n\nconst TYPOGRAPHY = {\n fontFamily: 'Lato, sans-serif',\n};\n\ninterface ITypographyBase {\n color?: string,\n lineHeight: number,\n fontSize: number,\n fontWeight: number,\n fontStyle?: string,\n textTransform?: Property.TextTransform\n textDecorationLine?: Property.TextDecorationLine\n}\n\nconst TypographyBase = styled(\"div\")<ITypographyBase>(({color, lineHeight, fontSize, fontWeight, fontStyle, textTransform, textDecorationLine}) => ({ \n fontFamily: TYPOGRAPHY.fontFamily,\n fontSize: fontSize,\n fontWeight: fontWeight,\n lineHeight: lineHeight + 'px',\n textTransform: (textTransform? textTransform : 'none'),\n textDecorationLine: (textDecorationLine? textDecorationLine : 'none'),\n fontStyle: (fontStyle ? fontStyle : 'normal'),\n color: (color ? color : COLORS.black)\n}));\n\n\ninterface IHeadline {\n color?: string\n}\n\ninterface IHeadlineBase {\n color?: string,\n lineHeight: number,\n fontSize: number\n}\nconst HeadlineBase = styled(TypographyBase)<IHeadlineBase>(({color, lineHeight, fontSize}) => ({ \n fontSize: fontSize,\n fontWeight: 700,\n lineHeight: lineHeight,\n color: color\n}));\n\nconst HeadlineXL = styled(HeadlineBase)<IHeadline>(({color}) => ({ \n fontSize: '48px',\n lineHeight: '64px',\n color: color\n}));\n\nconst HeadlineL = styled(HeadlineBase)<IHeadline>(({color}) => ({ \n fontSize: '40px',\n lineHeight: '52px',\n color: color\n}));\n\nconst HeadlineM = styled(HeadlineBase)<IHeadline>(({color}) => ({ \n fontSize: '32px',\n lineHeight: '40px',\n color: color\n}));\n\nconst HeadlineS = styled(HeadlineBase)<IHeadline>(({color}) => ({ \n fontSize: '28px',\n lineHeight: '36px',\n color: color\n}));\n\nconst HeadlineXS = styled(HeadlineBase)<IHeadline>(({color}) => ({ \n fontSize: '24px',\n lineHeight: '32px',\n color: color\n}));\n\nconst HeadlineXXS = styled(HeadlineBase)<IHeadline>(({color}) => ({ \n fontSize: '20px',\n lineHeight: '24px',\n color: color\n}));\n\ninterface IParagraphBase {\n color?: string,\n lineHeight: number,\n fontSize: number\n}\n\nconst ParagraphBase = styled(TypographyBase)<IParagraphBase>(({color, lineHeight, fontSize}) => ({ \n fontSize: fontSize,\n fontWeight: 400,\n lineHeight: lineHeight,\n color: color\n}));\n\ninterface IParagraph {\n color?: string\n}\n\nenum ParagraphTextStyle {\n Regular = 1,\n Bold,\n Italic,\n Underline\n}\n\n\ntype ParagraphProps = {\n color?: string, \n textStyle?: ParagraphTextStyle\n};\n\n\nconst paragraphFontWeight = (textStyle?: ParagraphTextStyle) => {\n let fontWeight = 400;\n if (textStyle === ParagraphTextStyle.Bold) {\n fontWeight = 700;\n }\n return fontWeight;\n};\n\nconst paragraphFontStyle = (textStyle?: ParagraphTextStyle) => {\n let fontStyle = (textStyle && textStyle === ParagraphTextStyle.Italic) ? 'italic' : '';\n return fontStyle;\n};\n\nconst paragraphTextDecorationLine = (textStyle?: ParagraphTextStyle) : Property.TextDecorationLine => {\n let textDecoration : Property.TextDecorationLine = (textStyle && textStyle === ParagraphTextStyle.Underline) ? 'underline' : 'none';\n return textDecoration;\n};\n\n\nconst ParagraphXL: FunctionComponent<ParagraphProps> = ({color, textStyle, children}) => { \n let fontWeight = paragraphFontWeight(textStyle);\n let fontStyle = paragraphFontStyle(textStyle);\n let textDecorationLine = paragraphTextDecorationLine(textStyle);\n return (\n <TypographyBase color= {color} lineHeight={36} fontSize={24} fontWeight={fontWeight} fontStyle={fontStyle} textDecorationLine={textDecorationLine}>\n {children}\n </TypographyBase>\n )\n};\n\nconst ParagraphL: FunctionComponent<ParagraphProps> = ({color, textStyle, children}) => { \n let fontWeight = paragraphFontWeight(textStyle);\n let fontStyle = paragraphFontStyle(textStyle);\n let textDecorationLine = paragraphTextDecorationLine(textStyle);\n return (\n <TypographyBase color= {color} lineHeight={32} fontSize={20} fontWeight={fontWeight} fontStyle={fontStyle} textDecorationLine={textDecorationLine}>\n {children}\n </TypographyBase>\n )\n};\n\nconst ParagraphM: FunctionComponent<ParagraphProps> = ({color, textStyle, children}) => { \n let fontWeight = paragraphFontWeight(textStyle);\n let fontStyle = paragraphFontStyle(textStyle);\n let textDecorationLine = paragraphTextDecorationLine(textStyle);\n return (\n <TypographyBase color= {color} lineHeight={28} fontSize={18} fontWeight={fontWeight} fontStyle={fontStyle} textDecorationLine={textDecorationLine}>\n {children}\n </TypographyBase>\n )\n};\n\nconst ParagraphS: FunctionComponent<ParagraphProps> = ({color, textStyle, children}) => { \n let fontWeight = paragraphFontWeight(textStyle);\n let fontStyle = paragraphFontStyle(textStyle);\n let textDecorationLine = paragraphTextDecorationLine(textStyle);\n return (\n <TypographyBase color= {color} lineHeight={24} fontSize={16} fontWeight={fontWeight} fontStyle={fontStyle} textDecorationLine={textDecorationLine}>\n {children}\n </TypographyBase>\n )\n};\n\nconst ParagraphXS: FunctionComponent<ParagraphProps> = ({color, textStyle, children}) => { \n let fontWeight = paragraphFontWeight(textStyle);\n let fontStyle = paragraphFontStyle(textStyle);\n let textDecorationLine = paragraphTextDecorationLine(textStyle);\n return (\n <TypographyBase color= {color} lineHeight={20} fontSize={14} fontWeight={fontWeight} fontStyle={fontStyle} textDecorationLine={textDecorationLine}>\n {children}\n </TypographyBase>\n )\n};\n\n\nenum ComponentTextStyle {\n Regular = 1,\n Bold,\n Italic,\n UppercaseBold\n}\n\ntype ComponentProps = {\n color?: string, \n textStyle?: ComponentTextStyle\n};\n\nconst componentFontWeight = (textStyle?: ComponentTextStyle) => {\n let fontWeight = 400;\n if (textStyle === ComponentTextStyle.Bold || textStyle === ComponentTextStyle.UppercaseBold) {\n fontWeight = 700;\n }\n return fontWeight;\n};\n\nconst componentFontStyle = (textStyle?: ComponentTextStyle) => {\n let fontStyle = (textStyle && textStyle === ComponentTextStyle.Italic) ? 'italic' : '';\n return fontStyle;\n};\n\nconst componentTextTransformation = (textStyle?: ComponentTextStyle) : Property.TextTransform => {\n let fontStyle : Property.TextTransform = (textStyle && textStyle === ComponentTextStyle.UppercaseBold) ? 'uppercase' : 'none';\n return fontStyle;\n};\n\nconst ComponentXL: FunctionComponent<ComponentProps> = ({color, textStyle, children}) => { \n let fontWeight = componentFontWeight(textStyle);\n let fontStyle = componentFontStyle(textStyle);\n return (\n <TypographyBase color= {color} lineHeight={28} fontSize={24} fontWeight={fontWeight} fontStyle={fontStyle} >\n {children}\n </TypographyBase>\n )\n};\n\nconst ComponentL: FunctionComponent<ComponentProps> = ({color, textStyle, children}) => { \n let fontWeight = componentFontWeight(textStyle);\n let fontStyle = componentFontStyle(textStyle);\n return (\n <TypographyBase color= {color} lineHeight={24} fontSize={20} fontWeight={fontWeight} fontStyle={fontStyle} >\n {children}\n </TypographyBase>\n )\n};\n\nconst ComponentM: FunctionComponent<ComponentProps> = ({color, textStyle, children}) => { \n let fontWeight = componentFontWeight(textStyle);\n let fontStyle = componentFontStyle(textStyle);\n return (\n <TypographyBase color= {color} lineHeight={24} fontSize={18} fontWeight={fontWeight} fontStyle={fontStyle} >\n {children}\n </TypographyBase>\n )\n};\n\nconst ComponentS: FunctionComponent<ComponentProps> = ({color, textStyle, children}) => { \n let fontWeight = componentFontWeight(textStyle);\n let fontStyle = componentFontStyle(textStyle);\n return (\n <TypographyBase color= {color} lineHeight={20} fontSize={16} fontWeight={fontWeight} fontStyle={fontStyle} >\n {children}\n </TypographyBase>\n )\n};\n\nconst ComponentXS: FunctionComponent<ComponentProps> = ({color, textStyle, children}) => { \n let fontWeight = componentFontWeight(textStyle);\n let fontStyle = componentFontStyle(textStyle);\n let textTransform = componentTextTransformation(textStyle);\n return (\n <TypographyBase color= {color} lineHeight={16} fontSize={14} fontWeight={fontWeight} fontStyle={fontStyle} textTransform={textTransform}>\n {children}\n </TypographyBase>\n )\n};\n\nconst ComponentXXS: FunctionComponent<ComponentProps> = ({color, textStyle, children}) => { \n let fontWeight = componentFontWeight(textStyle);\n let fontStyle = componentFontStyle(textStyle);\n let textTransform = componentTextTransformation(textStyle);\n return (\n <TypographyBase color= {color} lineHeight={16} fontSize={12} fontWeight={fontWeight} fontStyle={fontStyle} textTransform={textTransform} >\n {children}\n </TypographyBase>\n )\n};\n\n\nexport {TYPOGRAPHY}\nexport {HeadlineXL, HeadlineL, HeadlineM, HeadlineS, HeadlineXS, HeadlineXXS}\nexport {ParagraphTextStyle, ParagraphXL, ParagraphL, ParagraphM, ParagraphS, ParagraphXS}\nexport {ComponentTextStyle, ComponentXL, ComponentL, ComponentM, ComponentS, ComponentXS, ComponentXXS}"],"file":"typography.js"}
|
|
1
|
+
{"version":3,"sources":["../../../src/styles/typography.tsx"],"names":["TYPOGRAPHY","fontFamily","TypographyBase","textDecorationLine","fontSize","fontWeight","lineHeight","textTransform","fontStyle","color","COLORS","black","HeadlineBase","HeadlineXL","HeadlineL","HeadlineM","HeadlineS","HeadlineXS","HeadlineXXS","ParagraphStyling","css","ParagraphBase","styled","props","ParagraphTextStyle","textStyle","paragraphFontWeight","paragraphFontStyle","paragraphTextDecorationLine","textDecoration","ParagraphXL","children","ParagraphL","ParagraphM","ParagraphS","ParagraphXS","ComponentTextStyle","componentFontWeight","componentFontStyle","componentTextTransformation","ComponentXL","ComponentL","ComponentM","ComponentS","ComponentXS","ComponentXXS"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,QAAMA,UAAU,GAAG;AACjBC,IAAAA,UAAU,EAAE;AADK,GAAnB;AAcA,QAAMC,cAAc,GAAG,gCAAA,KAAA,EAA+B,CAAC;AAAA,IAAA,KAAA;AAAA,IAAA,UAAA;AAAA,IAAA,QAAA;AAAA,IAAA,UAAA;AAAA,IAAA,SAAA;AAAA,IAAA,aAAA;AAAqEC,IAAAA;AAArE,GAAD,MAAgG;AACpJF,IAAAA,UAAU,EAAED,UAAU,CAD8H,UAAA;AAEpJI,IAAAA,QAAQ,EAF4I,QAAA;AAGpJC,IAAAA,UAAU,EAH0I,UAAA;AAIpJC,IAAAA,UAAU,EAAEA,UAAU,GAJ8H,IAAA;AAKpJC,IAAAA,aAAa,EAAEA,aAAa,GAAA,aAAA,GALwH,MAAA;AAMpJJ,IAAAA,kBAAkB,EAAEA,kBAAkB,GAAA,kBAAA,GAN8G,MAAA;AAOpJK,IAAAA,SAAS,EAAEA,SAAS,GAAA,SAAA,GAPgI,QAAA;AAQpJC,IAAAA,KAAK,EAAEA,KAAK,GAAA,KAAA,GAAWC,SAAOC;AARsH,GAAhG,CAA/B,CAAvB;AAoBA,QAAMC,YAAY,GAAG,gCAAA,cAAA,EAAsC,CAAC;AAAA,IAAA,KAAA;AAAA,IAAA,UAAA;AAAqBR,IAAAA;AAArB,GAAD,MAAsC;AAC/FA,IAAAA,QAAQ,EADuF,QAAA;AAE/FC,IAAAA,UAAU,EAFqF,GAAA;AAG/FC,IAAAA,UAAU,EAHqF,UAAA;AAI/FG,IAAAA,KAAK,EAAEA;AAJwF,GAAtC,CAAtC,CAArB;AAOA,QAAMI,UAAU,GAAG,gCAAA,YAAA,EAAgC,CAAC;AAAEJ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AAA,U,GAAA,U;UAAA,W,GAAA,W;UACA,kB,GAAA,kB;UAAA,W,GAAA,W;UAAA,U,GAAA,U;UAAA,U,GAAA,U;UAAA,U,GAAA,U;UAAA,W,GAAA,W;UAAA,Y,GAAA,Y","sourcesContent":["import React, { FunctionComponent } from 'react';\nimport styled, { css } from 'styled-components';\nimport { COLORS } from '.';\nimport { Property } from 'csstype';\n\nconst TYPOGRAPHY = {\n fontFamily: 'Lato, sans-serif',\n};\n\ninterface ITypographyBase {\n color?: string;\n lineHeight: number;\n fontSize: number;\n fontWeight: number;\n fontStyle?: string;\n textTransform?: Property.TextTransform;\n textDecorationLine?: Property.TextDecorationLine;\n}\n\nconst TypographyBase = styled('div')<ITypographyBase>(({ color, lineHeight, fontSize, fontWeight, fontStyle, textTransform, textDecorationLine }) => ({\n fontFamily: TYPOGRAPHY.fontFamily,\n fontSize: fontSize,\n fontWeight: fontWeight,\n lineHeight: lineHeight + 'px',\n textTransform: textTransform ? textTransform : 'none',\n textDecorationLine: textDecorationLine ? textDecorationLine : 'none',\n fontStyle: fontStyle ? fontStyle : 'normal',\n color: color ? color : COLORS.black,\n}));\n\ninterface IHeadline {\n color?: string;\n}\n\ninterface IHeadlineBase {\n color?: string;\n lineHeight: number;\n fontSize: number;\n}\nconst HeadlineBase = styled(TypographyBase)<IHeadlineBase>(({ color, lineHeight, fontSize }) => ({\n fontSize: fontSize,\n fontWeight: 700,\n lineHeight: lineHeight,\n color: color,\n}));\n\nconst HeadlineXL = styled(HeadlineBase)<IHeadline>(({ color }) => ({\n fontSize: '48px',\n lineHeight: '64px',\n color: color,\n}));\n\nconst HeadlineL = styled(HeadlineBase)<IHeadline>(({ color }) => ({\n fontSize: '40px',\n lineHeight: '52px',\n color: color,\n}));\n\nconst HeadlineM = styled(HeadlineBase)<IHeadline>(({ color }) => ({\n fontSize: '32px',\n lineHeight: '40px',\n color: color,\n}));\n\nconst HeadlineS = styled(HeadlineBase)<IHeadline>(({ color }) => ({\n fontSize: '28px',\n lineHeight: '36px',\n color: color,\n}));\n\nconst HeadlineXS = styled(HeadlineBase)<IHeadline>(({ color }) => ({\n fontSize: '24px',\n lineHeight: '32px',\n color: color,\n}));\n\nconst HeadlineXXS = styled(HeadlineBase)<IHeadline>(({ color }) => ({\n fontSize: '20px',\n lineHeight: '24px',\n color: color,\n}));\n\nconst ParagraphStyling = css`\n :lang(ja-jp) > h1,\n h2,\n h3,\n h4,\n p,\n span {\n max-width: 30em;\n }\n :lang(ko-kr) > h1,\n h2,\n h3,\n h4,\n p,\n span {\n max-width: 30em;\n }\n :lang(zh-CN) > h1,\n h2,\n h3,\n h4,\n p,\n span {\n max-width: 30em;\n }\n h1,\n h2,\n h3,\n h4,\n p,\n span {\n max-width: 34em;\n }\n`;\n\ninterface IParagraphBase {\n color?: string;\n lineHeight: number;\n fontSize: number;\n marginBetweenParagraphs?: string;\n}\n\nconst ParagraphBase = styled(TypographyBase)<IParagraphBase>`\n p {\n margin-block-start: 0;\n margin-block-end: 0;\n }\n p:not(:only-of-type) {\n margin-bottom: ${(props) => props.marginBetweenParagraphs || '0'};\n }\n ${ParagraphStyling}\n`;\n\ninterface IParagraph {\n color?: string;\n}\n\nenum ParagraphTextStyle {\n Regular = 1,\n Bold,\n Italic,\n Underline,\n}\n\ntype ParagraphProps = {\n color?: string;\n textStyle?: ParagraphTextStyle;\n};\n\nconst paragraphFontWeight = (textStyle?: ParagraphTextStyle) => {\n let fontWeight = 400;\n if (textStyle === ParagraphTextStyle.Bold) {\n fontWeight = 700;\n }\n return fontWeight;\n};\n\nconst paragraphFontStyle = (textStyle?: ParagraphTextStyle) => {\n let fontStyle = textStyle && textStyle === ParagraphTextStyle.Italic ? 'italic' : '';\n return fontStyle;\n};\n\nconst paragraphTextDecorationLine = (textStyle?: ParagraphTextStyle): Property.TextDecorationLine => {\n let textDecoration: Property.TextDecorationLine = textStyle && textStyle === ParagraphTextStyle.Underline ? 'underline' : 'none';\n return textDecoration;\n};\n\nconst ParagraphXL: FunctionComponent<ParagraphProps> = ({ color, textStyle, children }) => {\n let fontWeight = paragraphFontWeight(textStyle);\n let fontStyle = paragraphFontStyle(textStyle);\n let textDecorationLine = paragraphTextDecorationLine(textStyle);\n return (\n <ParagraphBase color={color} lineHeight={36} fontSize={24} fontWeight={fontWeight} fontStyle={fontStyle} textDecorationLine={textDecorationLine} marginBetweenParagraphs=\"18px\">\n {children}\n </ParagraphBase>\n );\n};\n\nconst ParagraphL: FunctionComponent<ParagraphProps> = ({ color, textStyle, children }) => {\n let fontWeight = paragraphFontWeight(textStyle);\n let fontStyle = paragraphFontStyle(textStyle);\n let textDecorationLine = paragraphTextDecorationLine(textStyle);\n return (\n <ParagraphBase color={color} lineHeight={32} fontSize={20} fontWeight={fontWeight} fontStyle={fontStyle} textDecorationLine={textDecorationLine} marginBetweenParagraphs=\"16px\">\n {children}\n </ParagraphBase>\n );\n};\n\nconst ParagraphM: FunctionComponent<ParagraphProps> = ({ color, textStyle, children }) => {\n let fontWeight = paragraphFontWeight(textStyle);\n let fontStyle = paragraphFontStyle(textStyle);\n let textDecorationLine = paragraphTextDecorationLine(textStyle);\n return (\n <ParagraphBase color={color} lineHeight={28} fontSize={18} fontWeight={fontWeight} fontStyle={fontStyle} textDecorationLine={textDecorationLine} marginBetweenParagraphs=\"14px\">\n {children}\n </ParagraphBase>\n );\n};\n\nconst ParagraphS: FunctionComponent<ParagraphProps> = ({ color, textStyle, children }) => {\n let fontWeight = paragraphFontWeight(textStyle);\n let fontStyle = paragraphFontStyle(textStyle);\n let textDecorationLine = paragraphTextDecorationLine(textStyle);\n return (\n <ParagraphBase color={color} lineHeight={24} fontSize={16} fontWeight={fontWeight} fontStyle={fontStyle} textDecorationLine={textDecorationLine} marginBetweenParagraphs=\"12px\">\n {children}\n </ParagraphBase>\n );\n};\n\nconst ParagraphXS: FunctionComponent<ParagraphProps> = ({ color, textStyle, children }) => {\n let fontWeight = paragraphFontWeight(textStyle);\n let fontStyle = paragraphFontStyle(textStyle);\n let textDecorationLine = paragraphTextDecorationLine(textStyle);\n return (\n <ParagraphBase color={color} lineHeight={20} fontSize={14} fontWeight={fontWeight} fontStyle={fontStyle} textDecorationLine={textDecorationLine} marginBetweenParagraphs=\"10px\">\n {children}\n </ParagraphBase>\n );\n};\n\nenum ComponentTextStyle {\n Regular = 1,\n Bold,\n Italic,\n UppercaseBold,\n}\n\ntype ComponentProps = {\n color?: string;\n textStyle?: ComponentTextStyle;\n};\n\nconst componentFontWeight = (textStyle?: ComponentTextStyle) => {\n let fontWeight = 400;\n if (textStyle === ComponentTextStyle.Bold || textStyle === ComponentTextStyle.UppercaseBold) {\n fontWeight = 700;\n }\n return fontWeight;\n};\n\nconst componentFontStyle = (textStyle?: ComponentTextStyle) => {\n let fontStyle = textStyle && textStyle === ComponentTextStyle.Italic ? 'italic' : '';\n return fontStyle;\n};\n\nconst componentTextTransformation = (textStyle?: ComponentTextStyle): Property.TextTransform => {\n let fontStyle: Property.TextTransform = textStyle && textStyle === ComponentTextStyle.UppercaseBold ? 'uppercase' : 'none';\n return fontStyle;\n};\n\nconst ComponentXL: FunctionComponent<ComponentProps> = ({ color, textStyle, children }) => {\n let fontWeight = componentFontWeight(textStyle);\n let fontStyle = componentFontStyle(textStyle);\n return (\n <TypographyBase color={color} lineHeight={28} fontSize={24} fontWeight={fontWeight} fontStyle={fontStyle}>\n {children}\n </TypographyBase>\n );\n};\n\nconst ComponentL: FunctionComponent<ComponentProps> = ({ color, textStyle, children }) => {\n let fontWeight = componentFontWeight(textStyle);\n let fontStyle = componentFontStyle(textStyle);\n return (\n <TypographyBase color={color} lineHeight={24} fontSize={20} fontWeight={fontWeight} fontStyle={fontStyle}>\n {children}\n </TypographyBase>\n );\n};\n\nconst ComponentM: FunctionComponent<ComponentProps> = ({ color, textStyle, children }) => {\n let fontWeight = componentFontWeight(textStyle);\n let fontStyle = componentFontStyle(textStyle);\n return (\n <TypographyBase color={color} lineHeight={24} fontSize={18} fontWeight={fontWeight} fontStyle={fontStyle}>\n {children}\n </TypographyBase>\n );\n};\n\nconst ComponentS: FunctionComponent<ComponentProps> = ({ color, textStyle, children }) => {\n let fontWeight = componentFontWeight(textStyle);\n let fontStyle = componentFontStyle(textStyle);\n return (\n <TypographyBase color={color} lineHeight={20} fontSize={16} fontWeight={fontWeight} fontStyle={fontStyle}>\n {children}\n </TypographyBase>\n );\n};\n\nconst ComponentXS: FunctionComponent<ComponentProps> = ({ color, textStyle, children }) => {\n let fontWeight = componentFontWeight(textStyle);\n let fontStyle = componentFontStyle(textStyle);\n let textTransform = componentTextTransformation(textStyle);\n return (\n <TypographyBase color={color} lineHeight={16} fontSize={14} fontWeight={fontWeight} fontStyle={fontStyle} textTransform={textTransform}>\n {children}\n </TypographyBase>\n );\n};\n\nconst ComponentXXS: FunctionComponent<ComponentProps> = ({ color, textStyle, children }) => {\n let fontWeight = componentFontWeight(textStyle);\n let fontStyle = componentFontStyle(textStyle);\n let textTransform = componentTextTransformation(textStyle);\n return (\n <TypographyBase color={color} lineHeight={16} fontSize={12} fontWeight={fontWeight} fontStyle={fontStyle} textTransform={textTransform}>\n {children}\n </TypographyBase>\n );\n};\n\nexport { TYPOGRAPHY };\nexport { HeadlineXL, HeadlineL, HeadlineM, HeadlineS, HeadlineXS, HeadlineXXS };\nexport { ParagraphTextStyle, ParagraphXL, ParagraphL, ParagraphM, ParagraphS, ParagraphXS };\nexport { ComponentTextStyle, ComponentXL, ComponentL, ComponentM, ComponentS, ComponentXS, ComponentXXS };\n"],"file":"typography.js"}
|