@deskpro/deskpro-ui 4.4.1 → 4.5.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.
Files changed (91) hide show
  1. package/dist/cjs/components/Button/Button.js +2 -0
  2. package/dist/cjs/components/Button/Button.js.map +1 -1
  3. package/dist/cjs/components/Button/GroupByButton.js +83 -0
  4. package/dist/cjs/components/Button/GroupByButton.js.map +1 -0
  5. package/dist/cjs/components/Button/index.js +3 -1
  6. package/dist/cjs/components/Button/index.js.map +1 -1
  7. package/dist/cjs/components/Button/styles.js +13 -22
  8. package/dist/cjs/components/Button/styles.js.map +1 -1
  9. package/dist/cjs/components/Checkbox/Checkbox.js +38 -15
  10. package/dist/cjs/components/Checkbox/Checkbox.js.map +1 -1
  11. package/dist/cjs/components/Dialog/Dialog.js +1 -1
  12. package/dist/cjs/components/Dropdown/styles.js +7 -4
  13. package/dist/cjs/components/Dropdown/styles.js.map +1 -1
  14. package/dist/cjs/components/LabelTag/Tag.js +44 -31
  15. package/dist/cjs/components/LabelTag/Tag.js.map +1 -1
  16. package/dist/cjs/components/Menu/Menu.js +1 -1
  17. package/dist/cjs/components/Menu/Menu.js.map +1 -1
  18. package/dist/cjs/components/Modal/Modal.js +10 -4
  19. package/dist/cjs/components/Modal/Modal.js.map +1 -1
  20. package/dist/cjs/components/Radio/Radio.js +34 -10
  21. package/dist/cjs/components/Radio/Radio.js.map +1 -1
  22. package/dist/cjs/components/TabBar/styles/button.js +2 -2
  23. package/dist/cjs/components/TabBar/styles/button.js.map +1 -1
  24. package/dist/cjs/components/TabBar/styles/nav.js +2 -2
  25. package/dist/cjs/components/TabBar/styles/nav.js.map +1 -1
  26. package/dist/cjs/components/TabBar/styles/tab.js +1 -1
  27. package/dist/cjs/components/TabBar/styles/tab.js.map +1 -1
  28. package/dist/cjs/components/Tooltip/Tooltip.js +4 -4
  29. package/dist/cjs/components/Tooltip/Tooltip.js.map +1 -1
  30. package/dist/cjs/components/Typography/TSpan.js +61 -0
  31. package/dist/cjs/components/Typography/TSpan.js.map +1 -0
  32. package/dist/cjs/components/Typography/index.js +25 -1
  33. package/dist/cjs/components/Typography/index.js.map +1 -1
  34. package/dist/cjs/components/Typography/v1/Typography.js +223 -0
  35. package/dist/cjs/components/Typography/v1/Typography.js.map +1 -0
  36. package/dist/cjs/components/Typography/v1/styles.js +233 -0
  37. package/dist/cjs/components/Typography/v1/styles.js.map +1 -0
  38. package/dist/cjs/components/Typography/v2/Typography.js +327 -0
  39. package/dist/cjs/components/Typography/v2/Typography.js.map +1 -0
  40. package/dist/cjs/components/Typography/v2/styles.js +378 -0
  41. package/dist/cjs/components/Typography/v2/styles.js.map +1 -0
  42. package/dist/cjs/style/theme/lightTheme.js +18 -0
  43. package/dist/cjs/style/theme/lightTheme.js.map +1 -1
  44. package/dist/deskpro-ui.d.ts +775 -19
  45. package/dist/esm/components/Button/Button.js +3 -1
  46. package/dist/esm/components/Button/Button.js.map +1 -1
  47. package/dist/esm/components/Button/GroupByButton.js +80 -0
  48. package/dist/esm/components/Button/GroupByButton.js.map +1 -0
  49. package/dist/esm/components/Button/index.js +1 -0
  50. package/dist/esm/components/Button/index.js.map +1 -1
  51. package/dist/esm/components/Button/styles.js +12 -21
  52. package/dist/esm/components/Button/styles.js.map +1 -1
  53. package/dist/esm/components/Checkbox/Checkbox.js +39 -16
  54. package/dist/esm/components/Checkbox/Checkbox.js.map +1 -1
  55. package/dist/esm/components/Dialog/Dialog.js +1 -1
  56. package/dist/esm/components/Dropdown/styles.js +7 -4
  57. package/dist/esm/components/Dropdown/styles.js.map +1 -1
  58. package/dist/esm/components/LabelTag/Tag.js +45 -32
  59. package/dist/esm/components/LabelTag/Tag.js.map +1 -1
  60. package/dist/esm/components/Menu/Menu.js +1 -1
  61. package/dist/esm/components/Menu/Menu.js.map +1 -1
  62. package/dist/esm/components/Modal/Modal.js +10 -4
  63. package/dist/esm/components/Modal/Modal.js.map +1 -1
  64. package/dist/esm/components/Radio/Radio.js +34 -10
  65. package/dist/esm/components/Radio/Radio.js.map +1 -1
  66. package/dist/esm/components/TabBar/styles/button.js +1 -1
  67. package/dist/esm/components/TabBar/styles/button.js.map +1 -1
  68. package/dist/esm/components/TabBar/styles/nav.js +1 -1
  69. package/dist/esm/components/TabBar/styles/nav.js.map +1 -1
  70. package/dist/esm/components/TabBar/styles/tab.js +1 -1
  71. package/dist/esm/components/TabBar/styles/tab.js.map +1 -1
  72. package/dist/esm/components/Tooltip/Tooltip.js +4 -4
  73. package/dist/esm/components/Tooltip/Tooltip.js.map +1 -1
  74. package/dist/esm/components/Typography/TSpan.js +58 -0
  75. package/dist/esm/components/Typography/TSpan.js.map +1 -0
  76. package/dist/esm/components/Typography/index.js +21 -1
  77. package/dist/esm/components/Typography/index.js.map +1 -1
  78. package/dist/esm/components/Typography/v1/Typography.js +220 -0
  79. package/dist/esm/components/Typography/v1/Typography.js.map +1 -0
  80. package/dist/esm/components/Typography/{Typography.js → v1/styles.js} +6 -273
  81. package/dist/esm/components/Typography/v1/styles.js.map +1 -0
  82. package/dist/esm/components/Typography/v2/Typography.js +324 -0
  83. package/dist/esm/components/Typography/v2/Typography.js.map +1 -0
  84. package/dist/esm/components/Typography/v2/styles.js +375 -0
  85. package/dist/esm/components/Typography/v2/styles.js.map +1 -0
  86. package/dist/esm/style/theme/lightTheme.js +18 -0
  87. package/dist/esm/style/theme/lightTheme.js.map +1 -1
  88. package/package.json +7 -6
  89. package/dist/cjs/components/Typography/Typography.js +0 -500
  90. package/dist/cjs/components/Typography/Typography.js.map +0 -1
  91. package/dist/esm/components/Typography/Typography.js.map +0 -1
@@ -0,0 +1,220 @@
1
+ import styled from "styled-components";
2
+ import { common, headingStyles, paragraphStyled } from "./styles";
3
+ /**
4
+ * @public
5
+ */
6
+ export const H0 = styled.h1.attrs({ type: "h0" }) `
7
+ ${common};
8
+ ${headingStyles.h0}
9
+ `;
10
+ /**
11
+ * @public
12
+ */
13
+ export const H1 = styled.h1.attrs({ type: "h1" }) `
14
+ ${common};
15
+ ${headingStyles.h1}
16
+ `;
17
+ /**
18
+ * @public
19
+ */
20
+ export const H2 = styled.h2.attrs({ type: "h2" }) `
21
+ ${common};
22
+ ${headingStyles.h2}
23
+ `;
24
+ /**
25
+ * @public
26
+ */
27
+ export const H3 = styled.h3.attrs({ type: "h3" }) `
28
+ ${common};
29
+ ${headingStyles.h3}
30
+ `;
31
+ /**
32
+ * @public
33
+ */
34
+ export const H4 = styled.h4.attrs({ type: "h4" }) `
35
+ ${common};
36
+ ${headingStyles.h4}
37
+ `;
38
+ /**
39
+ * @public
40
+ */
41
+ export const H5 = styled.h5.attrs({ type: "h5" }) `
42
+ ${common};
43
+ ${headingStyles.h5}
44
+ `;
45
+ /**
46
+ * @public
47
+ */
48
+ export const H6 = styled.h6.attrs({ type: "h6" }) `
49
+ ${common};
50
+ ${headingStyles.h6}
51
+ `;
52
+ /**
53
+ * @public
54
+ */
55
+ export const H7 = styled.h6.attrs({ type: "h7" }) `
56
+ ${common};
57
+ ${headingStyles.h7}
58
+ `;
59
+ /**
60
+ * @public
61
+ */
62
+ export const H8 = styled.h6.attrs({ type: "h8" }) `
63
+ ${common};
64
+ ${headingStyles.h8}
65
+ `;
66
+ /**
67
+ * @public
68
+ */
69
+ export const H9 = styled.h1.attrs({ type: "h9" }) `
70
+ ${common};
71
+ ${headingStyles.h9}
72
+ `;
73
+ /**
74
+ * @public
75
+ */
76
+ export const H10 = styled.h1.attrs({ type: "h10" }) `
77
+ ${common};
78
+ ${headingStyles.h10}
79
+ `;
80
+ /**
81
+ * @public
82
+ */
83
+ export const H11 = styled.h1.attrs({ type: "h11" }) `
84
+ ${common};
85
+ ${headingStyles.h11}
86
+ `;
87
+ /**
88
+ * @public
89
+ */
90
+ export const P1 = styled.p.attrs({ type: "p1" }) `
91
+ ${common};
92
+ ${paragraphStyled.p1}
93
+ `;
94
+ /**
95
+ * @public
96
+ */
97
+ export const P2 = styled.p.attrs({ type: "p2" }) `
98
+ ${common};
99
+ ${paragraphStyled.p2}
100
+ `;
101
+ /**
102
+ * @public
103
+ */
104
+ export const P3 = styled.p.attrs({ type: "p3" }) `
105
+ ${common};
106
+ ${paragraphStyled.p3}
107
+ `;
108
+ /**
109
+ * @public
110
+ */
111
+ export const P4 = styled.p.attrs({ type: "p4" }) `
112
+ ${common};
113
+ ${paragraphStyled.p4}
114
+ `;
115
+ /**
116
+ * @public
117
+ */
118
+ export const P5 = styled.p.attrs({ type: "p5" }) `
119
+ ${common};
120
+ ${paragraphStyled.p5}
121
+ `;
122
+ /**
123
+ * @public
124
+ */
125
+ export const P6 = styled.p.attrs({ type: "p6" }) `
126
+ ${common};
127
+ ${paragraphStyled.p6}
128
+ `;
129
+ /**
130
+ * @public
131
+ */
132
+ export const P7 = styled.p.attrs({ type: "p7" }) `
133
+ ${common};
134
+ ${paragraphStyled.p7}
135
+ `;
136
+ /**
137
+ * @public
138
+ */
139
+ export const P8 = styled.p.attrs({ type: "p8" }) `
140
+ ${common};
141
+ ${paragraphStyled.p8}
142
+ `;
143
+ /**
144
+ * @public
145
+ */
146
+ export const P9 = styled.p.attrs({ type: "p9" }) `
147
+ ${common};
148
+ ${paragraphStyled.p9}
149
+ `;
150
+ /**
151
+ * @public
152
+ */
153
+ export const P10 = styled.p.attrs({ type: "p10" }) `
154
+ ${common};
155
+ ${paragraphStyled.p10}
156
+ `;
157
+ /**
158
+ * @public
159
+ */
160
+ export const P11 = styled.p.attrs({ type: "p11" }) `
161
+ ${common};
162
+ ${paragraphStyled.p11}
163
+ `;
164
+ /**
165
+ * @public
166
+ */
167
+ export const P12 = styled.p.attrs({ type: "p12" }) `
168
+ ${common};
169
+ ${paragraphStyled.p12}
170
+ `;
171
+ /**
172
+ * @public
173
+ */
174
+ export const P13 = styled.p.attrs({ type: "p13" }) `
175
+ ${common};
176
+ ${paragraphStyled.p13}
177
+ `;
178
+ /**
179
+ * @public
180
+ */
181
+ export const Code = styled.code `
182
+ ${common};
183
+ ${paragraphStyled.p13}
184
+ `;
185
+ /**
186
+ * @public
187
+ */
188
+ export const P14 = styled.code `
189
+ ${common};
190
+ ${paragraphStyled.p14}
191
+ `;
192
+ /**
193
+ * @public
194
+ */
195
+ export const P15 = styled.code `
196
+ ${common};
197
+ ${paragraphStyled.p15}
198
+ `;
199
+ /**
200
+ * @public
201
+ */
202
+ export const P16 = styled.p.attrs({ type: "p16" }) `
203
+ ${common};
204
+ ${paragraphStyled.p16}
205
+ `;
206
+ /**
207
+ * @public
208
+ */
209
+ export const P17 = styled.p.attrs({ type: "p17" }) `
210
+ ${common};
211
+ ${paragraphStyled.p17}
212
+ `;
213
+ /**
214
+ * @public
215
+ */
216
+ export const P18 = styled.p.attrs({ type: "p18" }) `
217
+ ${common};
218
+ ${paragraphStyled.p18}
219
+ `;
220
+ //# sourceMappingURL=Typography.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Typography.js","sourceRoot":"","sources":["../../../../../src/components/Typography/v1/Typography.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAElE;;GAEG;AACH,MAAM,CAAC,MAAM,EAAE,GAAG,MAAM,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAA;IAC7C,MAAM;IACN,aAAa,CAAC,EAAE;CACnB,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,EAAE,GAAG,MAAM,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAA;IAC7C,MAAM;IACN,aAAa,CAAC,EAAE;CACnB,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,EAAE,GAAG,MAAM,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAA;IAC7C,MAAM;IACN,aAAa,CAAC,EAAE;C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M,CAAC,MAAM,GAAG,GAAG,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAA;IAC9C,MAAM;IACN,eAAe,CAAC,GAAG;CACtB,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAA;IAC3B,MAAM;IACN,eAAe,CAAC,GAAG;CACtB,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,GAAG,GAAG,MAAM,CAAC,IAAI,CAAA;IAC1B,MAAM;IACN,eAAe,CAAC,GAAG;CACtB,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,GAAG,GAAG,MAAM,CAAC,IAAI,CAAA;IAC1B,MAAM;IACN,eAAe,CAAC,GAAG;CACtB,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,GAAG,GAAG,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAA;IAC9C,MAAM;IACN,eAAe,CAAC,GAAG;CACtB,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,GAAG,GAAG,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAA;IAC9C,MAAM;IACN,eAAe,CAAC,GAAG;CACtB,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,GAAG,GAAG,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAA;IAC9C,MAAM;IACN,eAAe,CAAC,GAAG;CACtB,CAAC"}
@@ -1,10 +1,8 @@
1
- /**
2
- </Stack>
3
- * Typography
4
- * Designs: https://www.figma.com/file/y2XUehDqVci9y9WdnVO9pl/Agent-UI-Library?node-id=1%3A4733
5
- * @module
6
- */
7
- import styled, { css } from "styled-components";
1
+ import { css } from "styled-components";
2
+ export const common = css `
3
+ margin: 0;
4
+ padding: 0;
5
+ `;
8
6
  // Heading Text
9
7
  const h0 = css `
10
8
  font-size: 14px;
@@ -96,94 +94,6 @@ export const headingStyles = {
96
94
  h10,
97
95
  h11,
98
96
  };
99
- const common = css `
100
- margin: 0;
101
- padding: 0;
102
- `;
103
- /**
104
- * @public
105
- */
106
- export const H0 = styled.h1.attrs({ type: "h0" }) `
107
- ${common};
108
- ${headingStyles.h0}
109
- `;
110
- /**
111
- * @public
112
- */
113
- export const H1 = styled.h1.attrs({ type: "h1" }) `
114
- ${common};
115
- ${headingStyles.h1}
116
- `;
117
- /**
118
- * @public
119
- */
120
- export const H2 = styled.h2.attrs({ type: "h2" }) `
121
- ${common};
122
- ${headingStyles.h2}
123
- `;
124
- /**
125
- * @public
126
- */
127
- export const H3 = styled.h3.attrs({ type: "h3" }) `
128
- ${common};
129
- ${headingStyles.h3}
130
- `;
131
- /**
132
- * @public
133
- */
134
- export const H4 = styled.h4.attrs({ type: "h4" }) `
135
- ${common};
136
- ${headingStyles.h4}
137
- `;
138
- /**
139
- * @public
140
- */
141
- export const H5 = styled.h5.attrs({ type: "h5" }) `
142
- ${common};
143
- ${headingStyles.h5}
144
- `;
145
- /**
146
- * @public
147
- */
148
- export const H6 = styled.h6.attrs({ type: "h6" }) `
149
- ${common};
150
- ${headingStyles.h6}
151
- `;
152
- /**
153
- * @public
154
- */
155
- export const H7 = styled.h6.attrs({ type: "h7" }) `
156
- ${common};
157
- ${headingStyles.h7}
158
- `;
159
- /**
160
- * @public
161
- */
162
- export const H8 = styled.h6.attrs({ type: "h8" }) `
163
- ${common};
164
- ${headingStyles.h8}
165
- `;
166
- /**
167
- * @public
168
- */
169
- export const H9 = styled.h1.attrs({ type: "h9" }) `
170
- ${common};
171
- ${headingStyles.h9}
172
- `;
173
- /**
174
- * @public
175
- */
176
- export const H10 = styled.h1.attrs({ type: "h10" }) `
177
- ${common};
178
- ${headingStyles.h10}
179
- `;
180
- /**
181
- * @public
182
- */
183
- export const H11 = styled.h1.attrs({ type: "h11" }) `
184
- ${common};
185
- ${headingStyles.h11}
186
- `;
187
97
  // Paragraph Text
188
98
  const p1 = css `
189
99
  font-size: 12px;
@@ -317,181 +227,4 @@ export const paragraphStyled = {
317
227
  p17,
318
228
  p18,
319
229
  };
320
- /**
321
- * @public
322
- */
323
- export const P1 = styled.p.attrs({ type: "p1" }) `
324
- ${common};
325
- ${paragraphStyled.p1}
326
- `;
327
- /**
328
- * @public
329
- */
330
- export const P2 = styled.p.attrs({ type: "p2" }) `
331
- ${common};
332
- ${paragraphStyled.p2}
333
- `;
334
- /**
335
- * @public
336
- */
337
- export const P3 = styled.p.attrs({ type: "p3" }) `
338
- ${common};
339
- ${paragraphStyled.p3}
340
- `;
341
- /**
342
- * @public
343
- */
344
- export const P4 = styled.p.attrs({ type: "p4" }) `
345
- ${common};
346
- ${paragraphStyled.p4}
347
- `;
348
- /**
349
- * @public
350
- */
351
- export const P5 = styled.p.attrs({ type: "p5" }) `
352
- ${common};
353
- ${paragraphStyled.p5}
354
- `;
355
- /**
356
- * @public
357
- */
358
- export const P6 = styled.p.attrs({ type: "p6" }) `
359
- ${common};
360
- ${paragraphStyled.p6}
361
- `;
362
- /**
363
- * @public
364
- */
365
- export const P7 = styled.p.attrs({ type: "p7" }) `
366
- ${common};
367
- ${paragraphStyled.p7}
368
- `;
369
- /**
370
- * @public
371
- */
372
- export const P8 = styled.p.attrs({ type: "p8" }) `
373
- ${common};
374
- ${paragraphStyled.p8}
375
- `;
376
- /**
377
- * @public
378
- */
379
- export const P9 = styled.p.attrs({ type: "p9" }) `
380
- ${common};
381
- ${paragraphStyled.p9}
382
- `;
383
- /**
384
- * @public
385
- */
386
- export const P10 = styled.p.attrs({ type: "p10" }) `
387
- ${common};
388
- ${paragraphStyled.p10}
389
- `;
390
- /**
391
- * @public
392
- */
393
- export const P11 = styled.p.attrs({ type: "p11" }) `
394
- ${common};
395
- ${paragraphStyled.p11}
396
- `;
397
- /**
398
- * @public
399
- */
400
- export const P12 = styled.p.attrs({ type: "p12" }) `
401
- ${common};
402
- ${paragraphStyled.p12}
403
- `;
404
- /**
405
- * @public
406
- */
407
- export const P13 = styled.p.attrs({ type: "p13" }) `
408
- ${common};
409
- ${paragraphStyled.p13}
410
- `;
411
- /**
412
- * @public
413
- */
414
- export const Code = styled.code `
415
- ${common};
416
- ${p13}
417
- `;
418
- /**
419
- * @public
420
- */
421
- export const P14 = styled.code `
422
- ${common};
423
- ${p14}
424
- `;
425
- /**
426
- * @public
427
- */
428
- export const P15 = styled.code `
429
- ${common};
430
- ${p15}
431
- `;
432
- /**
433
- * @public
434
- */
435
- export const P16 = styled.p.attrs({ type: "p16" }) `
436
- ${common};
437
- ${p16}
438
- `;
439
- /**
440
- * @public
441
- */
442
- export const P17 = styled.p.attrs({ type: "p17" }) `
443
- ${common};
444
- ${p17}
445
- `;
446
- /**
447
- * @public
448
- */
449
- export const P18 = styled.p.attrs({ type: "p18" }) `
450
- ${common};
451
- ${p18}
452
- `;
453
- /**
454
- * @public
455
- */
456
- export const TSpan = styled("span") `
457
- ${common};
458
- color: ${(props) => { var _a;
459
- // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
460
- return (_a = props.theme.colors[props.themeColor]) !== null && _a !== void 0 ? _a : "inherit"; }};
461
- flex: ${(props) => (props.flex ? props.flex : undefined)};
462
- ${(props) => props.$fill
463
- ? css `
464
- flex-grow: 1;
465
- `
466
- : css `
467
- max-width: max-content;
468
- `}
469
- ${(props) => props.overflow
470
- ? css `
471
- width: 100%;
472
- overflow: hidden;
473
- white-space: nowrap;
474
- text-overflow: ${props.overflow};
475
- `
476
- : undefined}
477
-
478
- ${(props) =>
479
- // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
480
- paragraphStyled[props.type] ||
481
- headingStyles[props.type]}
482
-
483
- ${(props) => props.font &&
484
- css `
485
- font-family: ${props.font};
486
- `};
487
- ${(props) => props.transform &&
488
- css `
489
- text-transform: ${props.transform};
490
- `}
491
-
492
- ${(props) => props.textAlign &&
493
- css `
494
- text-align: ${props.textAlign};
495
- `};
496
- `;
497
- //# sourceMappingURL=Typography.js.map
230
+ //# sourceMappingURL=styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../src/components/Typography/v1/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;CAGxB,CAAC;AAEF,eAAe;AAEf,MAAM,EAAE,GAAG,GAAG,CAAA;;;iBAGG,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,cAAc;;CAE3D,CAAC;AAEF,MAAM,EAAE,GAAG,GAAG,CAAA;;;iBAGG,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,cAAc;;CAE3D,CAAC;AAEF,MAAM,EAAE,GAAG,GAAG,CAAA;;;iBAGG,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,cAAc;;CAE3D,CAAC;AAEF,MAAM,EAAE,GAAG,GAAG,CAAA;;;iBAGG,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,cAAc;;CAE3D,CAAC;AAEF,MAAM,EAAE,GAAG,GAAG,CAAA;;;iBAGG,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,cAAc;;CAE3D,CAAC;AAEF,MAAM,EAAE,GAAG,GAAG,CAAA;;;iBAGG,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,cAAc;;CAE3D,CAAC;AAEF,MAAM,EAAE,GAAG,GAAG,CAAA;;;iBAGG,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,C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