@cleartrip/ct-design-typography 4.0.0 → 5.1.0
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/README.md +169 -0
- package/dist/Typography.d.ts +2 -2
- package/dist/Typography.d.ts.map +1 -1
- package/dist/Typography.native.d.ts +6 -0
- package/dist/Typography.native.d.ts.map +1 -0
- package/dist/constants.d.ts +53 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/ct-design-typography.browser.cjs.js +1 -1
- package/dist/ct-design-typography.browser.cjs.js.map +1 -1
- package/dist/ct-design-typography.browser.esm.js +1 -1
- package/dist/ct-design-typography.browser.esm.js.map +1 -1
- package/dist/ct-design-typography.cjs.js +103 -55
- package/dist/ct-design-typography.cjs.js.map +1 -1
- package/dist/ct-design-typography.esm.js +103 -55
- package/dist/ct-design-typography.esm.js.map +1 -1
- package/dist/ct-design-typography.umd.js +1752 -95
- package/dist/ct-design-typography.umd.js.map +1 -1
- package/dist/index.d.ts +3 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/style.d.ts +174 -498
- package/dist/style.d.ts.map +1 -1
- package/dist/type.d.ts +10 -48
- package/dist/type.d.ts.map +1 -1
- package/package.json +21 -11
- package/src/Typography.native.tsx +109 -0
- package/src/Typography.tsx +122 -0
- package/src/constants.ts +53 -0
- package/src/index.ts +4 -0
- package/src/style.ts +306 -0
- package/src/type.ts +94 -0
- package/dist/StyledTypography/StyledTypography.d.ts +0 -8
- package/dist/StyledTypography/StyledTypography.d.ts.map +0 -1
- package/dist/StyledTypography/index.d.ts +0 -2
- package/dist/StyledTypography/index.d.ts.map +0 -1
- package/dist/StyledTypography/style.d.ts +0 -6
- package/dist/StyledTypography/style.d.ts.map +0 -1
- package/dist/StyledTypography/type.d.ts +0 -18
- package/dist/StyledTypography/type.d.ts.map +0 -1
package/src/style.ts
ADDED
|
@@ -0,0 +1,306 @@
|
|
|
1
|
+
import type { Theme } from '@cleartrip/ct-design-theme';
|
|
2
|
+
import { TypographyColorType, TypographyVariantType } from './type';
|
|
3
|
+
import { TypographyColor, TypographyVariant } from './constants';
|
|
4
|
+
import { TextStyle } from '@cleartrip/ct-design-types';
|
|
5
|
+
|
|
6
|
+
export const getTypographyVariant = (theme: Theme, variant: TypographyVariantType) => {
|
|
7
|
+
switch (variant) {
|
|
8
|
+
case TypographyVariant.HD1: {
|
|
9
|
+
return {
|
|
10
|
+
fontSize: theme.typography.size[48],
|
|
11
|
+
fontWeight: theme.typography.weight.semibold,
|
|
12
|
+
lineHeight: theme.typography.lineHeight[56],
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
case TypographyVariant.HD2: {
|
|
16
|
+
return {
|
|
17
|
+
fontSize: theme.typography.size[40],
|
|
18
|
+
fontWeight: theme.typography.weight.semibold,
|
|
19
|
+
lineHeight: theme.typography.lineHeight[48],
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
case TypographyVariant.HD3: {
|
|
23
|
+
return {
|
|
24
|
+
fontSize: theme.typography.size[32],
|
|
25
|
+
fontWeight: theme.typography.weight.semibold,
|
|
26
|
+
lineHeight: theme.typography.lineHeight[40],
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
case TypographyVariant.HM1: {
|
|
30
|
+
return {
|
|
31
|
+
fontSize: theme.typography.size[24],
|
|
32
|
+
fontWeight: theme.typography.weight.semibold,
|
|
33
|
+
lineHeight: theme.typography.lineHeight[32],
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
case TypographyVariant.HM2: {
|
|
37
|
+
return {
|
|
38
|
+
fontSize: theme.typography.size[20],
|
|
39
|
+
fontWeight: theme.typography.weight.semibold,
|
|
40
|
+
lineHeight: theme.typography.lineHeight[28],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
case TypographyVariant.HM3: {
|
|
44
|
+
return {
|
|
45
|
+
fontSize: theme.typography.size[16],
|
|
46
|
+
fontWeight: theme.typography.weight.semibold,
|
|
47
|
+
lineHeight: theme.typography.lineHeight[24],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
case TypographyVariant.HM4: {
|
|
51
|
+
return {
|
|
52
|
+
fontSize: theme.typography.size[14],
|
|
53
|
+
fontWeight: theme.typography.weight.semibold,
|
|
54
|
+
lineHeight: theme.typography.lineHeight[20],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
case TypographyVariant.B1: {
|
|
58
|
+
return {
|
|
59
|
+
fontSize: theme.typography.size[16],
|
|
60
|
+
fontWeight: theme.typography.weight.medium,
|
|
61
|
+
lineHeight: theme.typography.lineHeight[24],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
case TypographyVariant.B2: {
|
|
65
|
+
return {
|
|
66
|
+
fontSize: theme.typography.size[14],
|
|
67
|
+
fontWeight: theme.typography.weight.medium,
|
|
68
|
+
lineHeight: theme.typography.lineHeight[20],
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
case TypographyVariant.B3: {
|
|
72
|
+
return {
|
|
73
|
+
fontSize: theme.typography.size[12],
|
|
74
|
+
fontWeight: theme.typography.weight.medium,
|
|
75
|
+
lineHeight: theme.typography.lineHeight[16],
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
case TypographyVariant.B3CAPS: {
|
|
79
|
+
return {
|
|
80
|
+
fontSize: theme.typography.size[12],
|
|
81
|
+
fontWeight: theme.typography.weight.semibold,
|
|
82
|
+
lineHeight: theme.typography.lineHeight[16],
|
|
83
|
+
letterSpacing: theme.typography.letterSpacing.point4,
|
|
84
|
+
textTransform: 'uppercase',
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
case TypographyVariant.B4: {
|
|
88
|
+
return {
|
|
89
|
+
fontSize: theme.typography.size[10],
|
|
90
|
+
fontWeight: theme.typography.weight.medium,
|
|
91
|
+
lineHeight: theme.typography.lineHeight[14],
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
case TypographyVariant.B4CAPS: {
|
|
95
|
+
return {
|
|
96
|
+
fontSize: theme.typography.size[10],
|
|
97
|
+
fontWeight: theme.typography.weight.semibold,
|
|
98
|
+
lineHeight: theme.typography.lineHeight[12],
|
|
99
|
+
letterSpacing: theme.typography.letterSpacing.point4,
|
|
100
|
+
textTransform: 'uppercase',
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
case TypographyVariant.P1: {
|
|
104
|
+
return {
|
|
105
|
+
fontSize: theme.typography.size[16],
|
|
106
|
+
fontWeight: theme.typography.weight.normal,
|
|
107
|
+
lineHeight: theme.typography.lineHeight[22],
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
case TypographyVariant.P2: {
|
|
111
|
+
return {
|
|
112
|
+
fontSize: theme.typography.size[14],
|
|
113
|
+
fontWeight: theme.typography.weight.normal,
|
|
114
|
+
lineHeight: theme.typography.lineHeight[20],
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
case TypographyVariant.P3: {
|
|
118
|
+
return {
|
|
119
|
+
fontSize: theme.typography.size[12],
|
|
120
|
+
fontWeight: theme.typography.weight.normal,
|
|
121
|
+
lineHeight: theme.typography.lineHeight[16],
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
case TypographyVariant.P4: {
|
|
125
|
+
return {
|
|
126
|
+
fontSize: theme.typography.size[10],
|
|
127
|
+
fontWeight: theme.typography.weight.normal,
|
|
128
|
+
lineHeight: theme.typography.lineHeight[14],
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
case TypographyVariant.L1: {
|
|
132
|
+
return {
|
|
133
|
+
fontSize: theme.typography.size[16],
|
|
134
|
+
fontWeight: theme.typography.weight.semibold,
|
|
135
|
+
lineHeight: theme.typography.lineHeight[24],
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
case TypographyVariant.L2: {
|
|
139
|
+
return {
|
|
140
|
+
fontSize: theme.typography.size[14],
|
|
141
|
+
fontWeight: theme.typography.weight.semibold,
|
|
142
|
+
lineHeight: theme.typography.lineHeight[20],
|
|
143
|
+
};
|
|
144
|
+
}
|
|
145
|
+
case TypographyVariant.L3: {
|
|
146
|
+
return {
|
|
147
|
+
fontSize: theme.typography.size[12],
|
|
148
|
+
fontWeight: theme.typography.weight.semibold,
|
|
149
|
+
lineHeight: theme.typography.lineHeight[16],
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
case TypographyVariant.OVERLINE: {
|
|
153
|
+
return {
|
|
154
|
+
fontSize: theme.typography.size[12],
|
|
155
|
+
fontWeight: theme.typography.weight.semibold,
|
|
156
|
+
lineHeight: theme.typography.lineHeight[16],
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
case TypographyVariant.TAG: {
|
|
160
|
+
return {
|
|
161
|
+
fontSize: theme.typography.size[10],
|
|
162
|
+
fontWeight: theme.typography.weight.semibold,
|
|
163
|
+
lineHeight: theme.typography.lineHeight[12],
|
|
164
|
+
letterSpacing: theme.typography.letterSpacing.point4,
|
|
165
|
+
};
|
|
166
|
+
}
|
|
167
|
+
default: {
|
|
168
|
+
return {
|
|
169
|
+
fontSize: theme.typography.size[20],
|
|
170
|
+
fontWeight: theme.typography.weight.semibold,
|
|
171
|
+
lineHeight: theme.typography.lineHeight[28],
|
|
172
|
+
};
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
};
|
|
176
|
+
|
|
177
|
+
export const getTypographyColor = (theme: Theme, color: TypographyColorType) => {
|
|
178
|
+
switch (color) {
|
|
179
|
+
case TypographyColor.PRIMARY: {
|
|
180
|
+
return theme.color.text.primary;
|
|
181
|
+
}
|
|
182
|
+
case TypographyColor.SECONDARY: {
|
|
183
|
+
return theme.color.text.secondary;
|
|
184
|
+
}
|
|
185
|
+
case TypographyColor.TERTIARY: {
|
|
186
|
+
return theme.color.text.tertiary;
|
|
187
|
+
}
|
|
188
|
+
case TypographyColor.ALERT: {
|
|
189
|
+
return theme.color.text.alert;
|
|
190
|
+
}
|
|
191
|
+
case TypographyColor.DISABLED: {
|
|
192
|
+
return theme.color.text.disabled;
|
|
193
|
+
}
|
|
194
|
+
case TypographyColor.HEADING: {
|
|
195
|
+
return theme.color.text.heading;
|
|
196
|
+
}
|
|
197
|
+
case TypographyColor.LINK: {
|
|
198
|
+
return theme.color.text.link;
|
|
199
|
+
}
|
|
200
|
+
case TypographyColor.SUBHEADING: {
|
|
201
|
+
return theme.color.text.subHeading;
|
|
202
|
+
}
|
|
203
|
+
case TypographyColor.SUCCESS: {
|
|
204
|
+
return theme.color.text.success;
|
|
205
|
+
}
|
|
206
|
+
case TypographyColor.WARNING: {
|
|
207
|
+
return theme.color.text.warning;
|
|
208
|
+
}
|
|
209
|
+
case TypographyColor.NEUTRAL: {
|
|
210
|
+
return theme.color.text.neutral;
|
|
211
|
+
}
|
|
212
|
+
case TypographyColor.LINK2: {
|
|
213
|
+
return theme.color.text.link2;
|
|
214
|
+
}
|
|
215
|
+
case TypographyColor.PRIMARY2: {
|
|
216
|
+
return theme.color.text.primary2;
|
|
217
|
+
}
|
|
218
|
+
case TypographyColor.SECONDARY2: {
|
|
219
|
+
return theme.color.text.secondary2;
|
|
220
|
+
}
|
|
221
|
+
case TypographyColor.GRAPETINI: {
|
|
222
|
+
return theme.color.text.grapetini900;
|
|
223
|
+
}
|
|
224
|
+
case TypographyColor.PINA_COLADA750: {
|
|
225
|
+
return theme.color.text.pinaColada750;
|
|
226
|
+
}
|
|
227
|
+
case TypographyColor.CORALPINK: {
|
|
228
|
+
return theme.color.text.coralpink;
|
|
229
|
+
}
|
|
230
|
+
case TypographyColor.NEUTRAL50: {
|
|
231
|
+
return theme.color.text.neutral50;
|
|
232
|
+
}
|
|
233
|
+
case TypographyColor.WARNING500:
|
|
234
|
+
case TypographyColor.ALERT500: {
|
|
235
|
+
return theme.color.text.alert500;
|
|
236
|
+
}
|
|
237
|
+
case TypographyColor.BRAND: {
|
|
238
|
+
return theme.color.text.brand;
|
|
239
|
+
}
|
|
240
|
+
default: {
|
|
241
|
+
return theme.color.text.primary;
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
};
|
|
245
|
+
|
|
246
|
+
export const getLineClampStyles = (lineClamp?: number) => {
|
|
247
|
+
if (lineClamp) {
|
|
248
|
+
return {
|
|
249
|
+
display: 'webkitBox' as TextStyle['display'],
|
|
250
|
+
webkitLineClamp: lineClamp,
|
|
251
|
+
webkitBoxOrient: 'vertical',
|
|
252
|
+
overflow: 'hidden',
|
|
253
|
+
};
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
return {};
|
|
257
|
+
};
|
|
258
|
+
|
|
259
|
+
export const getTypographyUnderlineOffset = (theme: Theme, variant: TypographyVariantType, isUnderlined?: boolean) => {
|
|
260
|
+
if (!isUnderlined) {
|
|
261
|
+
return undefined;
|
|
262
|
+
}
|
|
263
|
+
switch (variant) {
|
|
264
|
+
case TypographyVariant.HD1:
|
|
265
|
+
return theme.size[5];
|
|
266
|
+
case TypographyVariant.HD2:
|
|
267
|
+
case TypographyVariant.HD3:
|
|
268
|
+
return theme.size[4];
|
|
269
|
+
case TypographyVariant.HM1:
|
|
270
|
+
case TypographyVariant.HM2:
|
|
271
|
+
return theme.size[3];
|
|
272
|
+
case TypographyVariant.HM3:
|
|
273
|
+
case TypographyVariant.HM4:
|
|
274
|
+
return theme.size[2];
|
|
275
|
+
default:
|
|
276
|
+
return theme.size[1];
|
|
277
|
+
}
|
|
278
|
+
};
|
|
279
|
+
|
|
280
|
+
export const getTypographyStyles = ({
|
|
281
|
+
theme,
|
|
282
|
+
variant,
|
|
283
|
+
color,
|
|
284
|
+
isStriked,
|
|
285
|
+
colorCode,
|
|
286
|
+
showInItalics,
|
|
287
|
+
}: {
|
|
288
|
+
theme: Theme;
|
|
289
|
+
variant?: TypographyVariantType;
|
|
290
|
+
color?: TypographyColorType;
|
|
291
|
+
isClickable?: boolean;
|
|
292
|
+
isStriked?: boolean;
|
|
293
|
+
isUnderlined?: boolean;
|
|
294
|
+
colorCode?: string;
|
|
295
|
+
showInItalics?: boolean;
|
|
296
|
+
lineClamp?: number;
|
|
297
|
+
isDisabled?: boolean;
|
|
298
|
+
}) => {
|
|
299
|
+
const textDecorationLine: TextStyle['textDecorationLine'] = isStriked ? 'line-through' : 'none';
|
|
300
|
+
return {
|
|
301
|
+
...getTypographyVariant(theme, variant ?? TypographyVariant.HM2),
|
|
302
|
+
color: colorCode || getTypographyColor(theme, color ?? TypographyColor.PRIMARY),
|
|
303
|
+
textDecorationLine,
|
|
304
|
+
fontStyle: (showInItalics ? 'italic' : 'none') as TextStyle['fontStyle'],
|
|
305
|
+
};
|
|
306
|
+
};
|
package/src/type.ts
ADDED
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
import { TextStyle, Styles } from '@cleartrip/ct-design-types';
|
|
4
|
+
|
|
5
|
+
import { TypographyVariant, TypographyColor } from './constants';
|
|
6
|
+
|
|
7
|
+
export type TypographyVariantType = `${TypographyVariant}`;
|
|
8
|
+
|
|
9
|
+
export type TypographyColorType = `${TypographyColor}`;
|
|
10
|
+
|
|
11
|
+
export type TypographyNodeElementType = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'span' | 'div' | 'li';
|
|
12
|
+
|
|
13
|
+
export interface TypographyStyleConfigProps {
|
|
14
|
+
/**
|
|
15
|
+
* Styles for the root typography element
|
|
16
|
+
*/
|
|
17
|
+
root?: TextStyle[];
|
|
18
|
+
/**
|
|
19
|
+
* Styles for the container wrapper (when clickable)
|
|
20
|
+
*/
|
|
21
|
+
container?: Styles[];
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export interface ITypography {
|
|
25
|
+
/**
|
|
26
|
+
* The content to be displayed within the typography element.
|
|
27
|
+
*/
|
|
28
|
+
children: ReactNode;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* The variant of the typography, such as 'h1', 'body1', etc.
|
|
32
|
+
*/
|
|
33
|
+
variant: TypographyVariantType;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* The color of the typography.
|
|
37
|
+
*/
|
|
38
|
+
color?: TypographyColorType;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* If true, adds an underline effect to the typography.
|
|
42
|
+
*/
|
|
43
|
+
isUnderlined?: boolean;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* If true, adds a strikethrough effect to the typography.
|
|
47
|
+
*/
|
|
48
|
+
isStriked?: boolean;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* If true, makes the typography clickable.
|
|
52
|
+
*/
|
|
53
|
+
isClickable?: boolean;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Callback function triggered on typography click.
|
|
57
|
+
*/
|
|
58
|
+
onClick?: () => void;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Color code to override the default color.
|
|
62
|
+
*/
|
|
63
|
+
colorCode?: string;
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* If true, renders the typography in italics.
|
|
67
|
+
*/
|
|
68
|
+
showInItalics?: boolean;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* The width of the typography element.
|
|
72
|
+
*/
|
|
73
|
+
width?: TextStyle['width'];
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* The number of lines to clamp the text. Ellipsis (...) is added for overflow.
|
|
77
|
+
*/
|
|
78
|
+
lineClamp?: number;
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* If true, disables the typography for user interaction.
|
|
82
|
+
*/
|
|
83
|
+
isDisabled?: boolean;
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* The type of HTML element to be used for rendering the typography.
|
|
87
|
+
*/
|
|
88
|
+
componentNode?: TypographyNodeElementType;
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Style configuration for the typography.
|
|
92
|
+
*/
|
|
93
|
+
styleConfig?: TypographyStyleConfigProps;
|
|
94
|
+
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { StyledTypographyProps } from './type';
|
|
2
|
-
declare const StyledTypography: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, Omit<StyledTypographyProps, "css"> & {
|
|
3
|
-
css?: import("styled-components").CSSProperties | undefined;
|
|
4
|
-
} & {
|
|
5
|
-
as?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "span" | undefined;
|
|
6
|
-
}, never>;
|
|
7
|
-
export default StyledTypography;
|
|
8
|
-
//# sourceMappingURL=StyledTypography.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StyledTypography.d.ts","sourceRoot":"","sources":["../../packages/components/Typography/src/StyledTypography/StyledTypography.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,qBAAqB,EAAE,MAAM,QAAQ,CAAC;AAS/C,QAAA,MAAM,gBAAgB;;;;SAoCrB,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../packages/components/Typography/src/StyledTypography/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { CSSObject, CSSProperties } from 'styled-components';
|
|
2
|
-
import { StyledTypographyProps } from './type';
|
|
3
|
-
export declare const getStyledTypographyStyles: ({ fontSize, fontWeight, lineHeight, color, textDecoration, fontStyle, width, display, webkitLineClamp, webkitBoxOrient, overflow, cursor, css, ...restCss }: StyledTypographyProps & {
|
|
4
|
-
css?: CSSProperties | undefined;
|
|
5
|
-
}) => CSSObject;
|
|
6
|
-
//# sourceMappingURL=style.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../packages/components/Typography/src/StyledTypography/style.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,EAAE,qBAAqB,EAAE,MAAM,QAAQ,CAAC;AAE/C,eAAO,MAAM,yBAAyB;;MAee,SAenD,CAAC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { CSSObject } from 'styled-components';
|
|
2
|
-
export interface StyledTypographyProps {
|
|
3
|
-
color: string;
|
|
4
|
-
fontSize: string;
|
|
5
|
-
fontWeight: number;
|
|
6
|
-
lineHeight: string;
|
|
7
|
-
textDecoration: CSSObject['textDecoration'];
|
|
8
|
-
cursor: CSSObject['cursor'];
|
|
9
|
-
fontStyle: CSSObject['fontStyle'];
|
|
10
|
-
width: CSSObject['width'];
|
|
11
|
-
display: CSSObject['display'];
|
|
12
|
-
webkitLineClamp?: number;
|
|
13
|
-
webkitBoxOrient?: string;
|
|
14
|
-
overflow?: CSSObject['overflow'];
|
|
15
|
-
textTransform?: CSSObject['textTransform'];
|
|
16
|
-
letterSpacing?: CSSObject['letterSpacing'];
|
|
17
|
-
}
|
|
18
|
-
//# sourceMappingURL=type.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../packages/components/Typography/src/StyledTypography/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,MAAM,EAAE,SAAS,CAAC,QAAQ,CAAC,CAAC;IAC5B,SAAS,EAAE,SAAS,CAAC,WAAW,CAAC,CAAC;IAClC,KAAK,EAAE,SAAS,CAAC,OAAO,CAAC,CAAC;IAC1B,OAAO,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC9B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE,SAAS,CAAC,UAAU,CAAC,CAAC;IACjC,aAAa,CAAC,EAAE,SAAS,CAAC,eAAe,CAAC,CAAC;IAC3C,aAAa,CAAC,EAAE,SAAS,CAAC,eAAe,CAAC,CAAC;CAC5C"}
|