@zohodesk/components 1.2.50 → 1.2.52
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/.cli/propValidation_report.html +1 -1
- package/README.md +7 -0
- package/es/Popup/Popup.js +32 -13
- package/es/Popup/intersectionObserver.js +33 -23
- package/es/Typography/Typography.js +38 -0
- package/es/Typography/css/Typography.module.css +489 -0
- package/es/Typography/css/cssJSLogic.js +56 -0
- package/es/Typography/props/defaultProps.js +8 -0
- package/es/Typography/props/propTypes.js +27 -0
- package/es/Typography/utils/index.js +50 -0
- package/es/index.js +1 -1
- package/es/v1/Typography/Typography.js +1 -1
- package/lib/Popup/Popup.js +32 -14
- package/lib/Popup/intersectionObserver.js +35 -25
- package/lib/Typography/Typography.js +56 -0
- package/lib/Typography/css/Typography.module.css +489 -0
- package/lib/Typography/css/cssJSLogic.js +48 -0
- package/lib/Typography/props/defaultProps.js +15 -0
- package/lib/Typography/props/propTypes.js +38 -0
- package/lib/Typography/utils/index.js +59 -0
- package/lib/index.js +1 -1
- package/lib/v1/Typography/Typography.js +2 -2
- package/package.json +3 -3
- package/result.json +1 -1
- /package/es/v1/Typography/css/{Typography.module.css → v1_Typography.module.css} +0 -0
- /package/lib/v1/Typography/css/{Typography.module.css → v1_Typography.module.css} +0 -0
|
@@ -0,0 +1,489 @@
|
|
|
1
|
+
.reset {
|
|
2
|
+
font-weight: initial;
|
|
3
|
+
margin: initial ;
|
|
4
|
+
padding: initial ;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.dotted {
|
|
8
|
+
composes: dotted from '../../common/common.module.css';
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.display_block {
|
|
12
|
+
display: block;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.display_inlineBlock {
|
|
16
|
+
display: inline-block;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.display_inline {
|
|
20
|
+
display: inline;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.display_initial {
|
|
24
|
+
display: initial;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.font_regular {
|
|
28
|
+
font-family: var(--zd_regular);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.font_light {
|
|
32
|
+
font-family: var(--zd_light);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.font_semibold {
|
|
36
|
+
font-family: var(--zd_semibold);
|
|
37
|
+
composes: ftsmooth from '../../common/common.module.css';
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.font_bold {
|
|
41
|
+
font-family: var(--zd_bold);
|
|
42
|
+
composes: ftsmooth from '../../common/common.module.css';
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.fontStyles_normal {
|
|
46
|
+
font-style: normal;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.fontStyles_italic {
|
|
50
|
+
font-style: italic;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.decoration_default {
|
|
54
|
+
text-decoration: none;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.decoration_underline {
|
|
58
|
+
text-decoration: underline;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.decoration_strike {
|
|
62
|
+
text-decoration: line-through;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.decoration_overline {
|
|
66
|
+
text-decoration: overline;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
[dir=ltr] .textalign_left {
|
|
70
|
+
text-align: left;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
[dir=rtl] .textalign_left {
|
|
74
|
+
text-align: right;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
[dir=ltr] .textalign_right {
|
|
78
|
+
text-align: right;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
[dir=rtl] .textalign_right {
|
|
82
|
+
text-align: left;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.textalign_center {
|
|
86
|
+
text-align: center;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.textalign_justify {
|
|
90
|
+
text-align: justify;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.transform_default {
|
|
94
|
+
text-transform: none;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.transform_upper {
|
|
98
|
+
text-transform: uppercase;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.transform_lower {
|
|
102
|
+
text-transform: lowercase;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.transform_capital {
|
|
106
|
+
text-transform: capitalize;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.dotted_clamp {
|
|
110
|
+
display: -webkit-box;
|
|
111
|
+
-webkit-box-orient: vertical;
|
|
112
|
+
overflow: hidden;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.lineclamp_1 {
|
|
116
|
+
-webkit-line-clamp: 1;
|
|
117
|
+
composes: dotted_clamp;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.lineclamp_2 {
|
|
121
|
+
-webkit-line-clamp: 2;
|
|
122
|
+
composes: dotted_clamp;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.lineclamp_3 {
|
|
126
|
+
-webkit-line-clamp: 3;
|
|
127
|
+
composes: dotted_clamp;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.lineclamp_4 {
|
|
131
|
+
-webkit-line-clamp: 4;
|
|
132
|
+
composes: dotted_clamp;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.lineclamp_5 {
|
|
136
|
+
-webkit-line-clamp: 5;
|
|
137
|
+
composes: dotted_clamp;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.wordBreak_breakAll {
|
|
141
|
+
word-break: break-all
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.wordBreak_keepAll {
|
|
145
|
+
word-break: keep-all
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.wordBreak_breakWord {
|
|
149
|
+
word-break: break-word
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.wordWrap_normal {
|
|
153
|
+
word-wrap: normal;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.wordWrap_break {
|
|
157
|
+
word-wrap: break-word
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.whiteSpace_normal {
|
|
161
|
+
white-space: normal
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.whiteSpace_noWrap {
|
|
165
|
+
white-space: nowrap
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.whiteSpace_pre {
|
|
169
|
+
white-space: pre
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.whiteSpace_preLine {
|
|
173
|
+
white-space: pre-line
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.whiteSpace_preWrap {
|
|
177
|
+
white-space: pre-wrap
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
/*...............Font Size Start.........*/
|
|
183
|
+
|
|
184
|
+
.size7 {
|
|
185
|
+
font-size: var(--zd_font_size7) ;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.size8 {
|
|
189
|
+
font-size: var(--zd_font_size8) ;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.size9 {
|
|
193
|
+
font-size: var(--zd_font_size9) ;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.size10 {
|
|
197
|
+
font-size: var(--zd_font_size10) ;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.size11 {
|
|
201
|
+
font-size: var(--zd_font_size11) ;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.size12 {
|
|
205
|
+
font-size: var(--zd_font_size12) ;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.size13 {
|
|
209
|
+
font-size: var(--zd_font_size13) ;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.size14 {
|
|
213
|
+
font-size: var(--zd_font_size14) ;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.size15 {
|
|
217
|
+
font-size: var(--zd_font_size15) ;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.size16 {
|
|
221
|
+
font-size: var(--zd_font_size16) ;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.size17 {
|
|
225
|
+
font-size: var(--zd_font_size17) ;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
.size18 {
|
|
229
|
+
font-size: var(--zd_font_size18) ;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
.size19 {
|
|
233
|
+
font-size: var(--zd_font_size19) ;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
.size20 {
|
|
237
|
+
font-size: var(--zd_font_size20) ;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
.size21 {
|
|
241
|
+
font-size: var(--zd_font_size21) ;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.size22 {
|
|
245
|
+
font-size: var(--zd_font_size22) ;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.size24 {
|
|
249
|
+
font-size: var(--zd_font_size24) ;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
.size25 {
|
|
253
|
+
font-size: var(--zd_font_size25) ;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
.size26 {
|
|
257
|
+
font-size: var(--zd_font_size26) ;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
.size28 {
|
|
261
|
+
font-size: var(--zd_font_size28) ;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
.size29 {
|
|
265
|
+
font-size: var(--zd_font_size29) ;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
.size30 {
|
|
269
|
+
font-size: var(--zd_font_size30) ;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
.size32 {
|
|
273
|
+
font-size: var(--zd_font_size32) ;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
.size34 {
|
|
277
|
+
font-size: var(--zd_font_size34) ;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
.size35 {
|
|
281
|
+
font-size: var(--zd_font_size35) ;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
.size36 {
|
|
285
|
+
font-size: var(--zd_font_size36) ;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
.size40 {
|
|
289
|
+
font-size: var(--zd_font_size40) ;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
.size50 {
|
|
293
|
+
font-size: var(--zd_font_size50) ;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
.sizeinherit {
|
|
297
|
+
font-size: inherit ;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
/*...............Font Size End.........*/
|
|
301
|
+
|
|
302
|
+
/*............... Lineheight Start.........*/
|
|
303
|
+
|
|
304
|
+
.lineheight_inherit {
|
|
305
|
+
line-height: inherit;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
.lineheight_initial {
|
|
309
|
+
line-height: initial;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
.lineheight_normal {
|
|
313
|
+
line-height: normal;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
.lineheight_0 {
|
|
317
|
+
line-height: 0;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
.lineheight_0_1 {
|
|
321
|
+
line-height: 0.1;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
.lineheight_0_2 {
|
|
325
|
+
line-height: 0.2;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
.lineheight_0_3 {
|
|
329
|
+
line-height: 0.3;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
.lineheight_0_4 {
|
|
333
|
+
line-height: 0.4;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
.lineheight_0_5 {
|
|
337
|
+
line-height: 0.5;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
.lineheight_0_6 {
|
|
341
|
+
line-height: 0.6;
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
.lineheight_0_7 {
|
|
345
|
+
line-height: 0.7;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
.lineheight_0_8 {
|
|
349
|
+
line-height: 0.8;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
.lineheight_0_9 {
|
|
353
|
+
line-height: 0.9;
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
.lineheight_1 {
|
|
357
|
+
line-height: 1;
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
.lineheight_1_1 {
|
|
361
|
+
line-height: 1.1;
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
.lineheight_1_2 {
|
|
365
|
+
line-height: 1.2;
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
.lineheight_1_3 {
|
|
369
|
+
line-height: 1.3;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
.lineheight_1_4 {
|
|
373
|
+
line-height: 1.4;
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
.lineheight_1_5 {
|
|
377
|
+
line-height: 1.5;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
.lineheight_1_6 {
|
|
381
|
+
line-height: 1.6;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
.lineheight_1_7 {
|
|
385
|
+
line-height: 1.7;
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
.lineheight_1_8 {
|
|
389
|
+
line-height: 1.8;
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
.lineheight_1_9 {
|
|
393
|
+
line-height: 1.9;
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
.lineheight_2 {
|
|
397
|
+
line-height: 2;
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
|
|
401
|
+
/*............... Lineheight End.........*/
|
|
402
|
+
|
|
403
|
+
/*............... Letterspacing Start.........*/
|
|
404
|
+
|
|
405
|
+
.letterspacing_inherit {
|
|
406
|
+
letter-spacing: inherit;
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
.letterspacing_0_1 {
|
|
410
|
+
letter-spacing: 0.1px;
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
.letterspacing_0_2 {
|
|
414
|
+
letter-spacing: 0.2px;
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
.letterspacing_0_3 {
|
|
418
|
+
letter-spacing: 0.3px;
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
.letterspacing_0_4 {
|
|
422
|
+
letter-spacing: 0.4px;
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
.letterspacing_0_5 {
|
|
426
|
+
letter-spacing: 0.5px;
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
.letterspacing_0_6 {
|
|
430
|
+
letter-spacing: 0.6px;
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
.letterspacing_0_7 {
|
|
434
|
+
letter-spacing: 0.7px;
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
.letterspacing_0_8 {
|
|
438
|
+
letter-spacing: 0.8px;
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
.letterspacing_0_9 {
|
|
442
|
+
letter-spacing: 0.9px;
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
.letterspacing_1 {
|
|
446
|
+
letter-spacing: 1px;
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
.letterspacing_1_1 {
|
|
450
|
+
letter-spacing: 1.1px;
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
.letterspacing_1_2 {
|
|
454
|
+
letter-spacing: 1.2px;
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
.letterspacing_1_3 {
|
|
458
|
+
letter-spacing: 1.3px;
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
.letterspacing_1_4 {
|
|
462
|
+
letter-spacing: 1.4px;
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
.letterspacing_1_5 {
|
|
466
|
+
letter-spacing: 1.5px;
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
.letterspacing_1_6 {
|
|
470
|
+
letter-spacing: 1.6px;
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
.letterspacing_1_7 {
|
|
474
|
+
letter-spacing: 1.7px;
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
.letterspacing_1_8 {
|
|
478
|
+
letter-spacing: 1.8px;
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
.letterspacing_1_9 {
|
|
482
|
+
letter-spacing: 1.9px;
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
.letterspacing_2 {
|
|
486
|
+
letter-spacing: 2px;
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
/*............... Letterspacing End.........*/
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = cssJSLogic;
|
|
7
|
+
|
|
8
|
+
var _utils = require("@zohodesk/utils");
|
|
9
|
+
|
|
10
|
+
var _utils2 = require("../utils");
|
|
11
|
+
|
|
12
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
13
|
+
|
|
14
|
+
function cssJSLogic(_ref) {
|
|
15
|
+
var _compileClassNames;
|
|
16
|
+
|
|
17
|
+
var props = _ref.props,
|
|
18
|
+
style = _ref.style;
|
|
19
|
+
var $flag_reset = props.$flag_reset,
|
|
20
|
+
$flag_dotted = props.$flag_dotted,
|
|
21
|
+
$ui_size = props.$ui_size,
|
|
22
|
+
$ui_lineClamp = props.$ui_lineClamp,
|
|
23
|
+
$ui_lineHeight = props.$ui_lineHeight,
|
|
24
|
+
$ui_display = props.$ui_display,
|
|
25
|
+
$ui_weight = props.$ui_weight,
|
|
26
|
+
$ui_typeFace = props.$ui_typeFace,
|
|
27
|
+
$ui_textAlign = props.$ui_textAlign,
|
|
28
|
+
$ui_letterSpacing = props.$ui_letterSpacing,
|
|
29
|
+
$ui_transform = props.$ui_transform,
|
|
30
|
+
$ui_decoration = props.$ui_decoration,
|
|
31
|
+
$ui_className = props.$ui_className,
|
|
32
|
+
$ui_wordBreak = props.$ui_wordBreak,
|
|
33
|
+
$ui_wordWrap = props.$ui_wordWrap,
|
|
34
|
+
$ui_whiteSpace = props.$ui_whiteSpace;
|
|
35
|
+
|
|
36
|
+
if ($ui_letterSpacing) {
|
|
37
|
+
$ui_letterSpacing = _utils2.letterspacingMapping[$ui_letterSpacing];
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
if ($ui_lineHeight) {
|
|
41
|
+
$ui_lineHeight = _utils2.lineheightMapping[$ui_lineHeight];
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
var typographyClass = (0, _utils.compileClassNames)((_compileClassNames = {}, _defineProperty(_compileClassNames, style.reset, $flag_reset), _defineProperty(_compileClassNames, style.dotted, $flag_dotted), _defineProperty(_compileClassNames, style["size".concat($ui_size)], !!$ui_size), _defineProperty(_compileClassNames, style["lineclamp_".concat($ui_lineClamp)], !!$ui_lineClamp), _defineProperty(_compileClassNames, style["lineheight_".concat($ui_lineHeight)], !!$ui_lineHeight), _defineProperty(_compileClassNames, style["display_".concat($ui_display)], !!$ui_display), _defineProperty(_compileClassNames, style["font_".concat($ui_weight)], !!$ui_weight), _defineProperty(_compileClassNames, style["fontStyles_".concat($ui_typeFace)], !!$ui_typeFace), _defineProperty(_compileClassNames, style["textalign_".concat($ui_textAlign)], !!$ui_textAlign), _defineProperty(_compileClassNames, style["letterspacing_".concat($ui_letterSpacing)], !!$ui_letterSpacing), _defineProperty(_compileClassNames, style["transform_".concat($ui_transform)], !!$ui_transform), _defineProperty(_compileClassNames, style["decoration_".concat($ui_decoration)], !!$ui_decoration), _defineProperty(_compileClassNames, $ui_className, !!$ui_className), _defineProperty(_compileClassNames, style["wordBreak_".concat($ui_wordBreak)], !!$ui_wordBreak), _defineProperty(_compileClassNames, style["wordWrap_".concat($ui_wordWrap)], !!$ui_wordWrap), _defineProperty(_compileClassNames, style["whiteSpace_".concat($ui_whiteSpace)], !!$ui_whiteSpace), _compileClassNames));
|
|
45
|
+
return {
|
|
46
|
+
typographyClass: typographyClass
|
|
47
|
+
};
|
|
48
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.defaultProps = void 0;
|
|
7
|
+
var defaultProps = {
|
|
8
|
+
$ui_className: '',
|
|
9
|
+
$ui_tagName: 'div',
|
|
10
|
+
$flag_reset: false,
|
|
11
|
+
$flag_dotted: false,
|
|
12
|
+
$tagAttributes_text: {},
|
|
13
|
+
$a11yAttributes_text: {}
|
|
14
|
+
};
|
|
15
|
+
exports.defaultProps = defaultProps;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.propTypes = void 0;
|
|
7
|
+
|
|
8
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
|
+
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
|
+
|
|
12
|
+
var propTypes = {
|
|
13
|
+
children: _propTypes["default"].node,
|
|
14
|
+
$ui_className: _propTypes["default"].string,
|
|
15
|
+
$ui_tagName: _propTypes["default"].string,
|
|
16
|
+
$flag_reset: _propTypes["default"].bool,
|
|
17
|
+
$flag_dotted: _propTypes["default"].bool,
|
|
18
|
+
$ui_display: _propTypes["default"].oneOf(['block', 'inlineBlock', 'inline', 'initial']),
|
|
19
|
+
$ui_weight: _propTypes["default"].oneOf(['regular', 'light', 'semibold', 'bold']),
|
|
20
|
+
$ui_textAlign: _propTypes["default"].oneOf(['left', 'right', 'center', 'justify']),
|
|
21
|
+
$ui_transform: _propTypes["default"].oneOf(['default', 'upper', 'lower', 'capital']),
|
|
22
|
+
$ui_lineClamp: _propTypes["default"].oneOf(['1', '2', '3', '4', '5']),
|
|
23
|
+
$ui_typeFace: _propTypes["default"].oneOf(['normal', 'italic']),
|
|
24
|
+
$ui_decoration: _propTypes["default"].oneOf(['default', 'underline', 'strike', 'overline']),
|
|
25
|
+
$ui_size: _propTypes["default"].oneOf(['7', '8', '9', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '24', '25', '26', '28', '29', '30', '32', '34', '35', '36', '40', '50', 'inherit']),
|
|
26
|
+
$ui_lineHeight: _propTypes["default"].oneOf(['0', '0.1', '0.2', '0.3', '0.4', '0.5', '0.6', '0.7', '0.8', '0.9', '1', '1.1', '1.2', '1.3', '1.4', '1.5', '1.6', '1.7', '1.8', '1.9', '2', 'normal', 'initial', 'inherit']),
|
|
27
|
+
$ui_letterSpacing: _propTypes["default"].oneOf(['0.1', '0.2', '0.3', '0.4', '0.5', '0.6', '0.7', '0.8', '0.9', '1', '1.1', '1.2', '1.3', '1.4', '1.5', '1.6', '1.7', '1.8', '1.9', '2', 'inherit']),
|
|
28
|
+
$ui_wordBreak: _propTypes["default"].oneOf(['breakAll', 'keepAll', 'breakWord']),
|
|
29
|
+
$ui_wordWrap: _propTypes["default"].oneOf(['normal', 'break']),
|
|
30
|
+
$ui_whiteSpace: _propTypes["default"].oneOf(['normal', 'noWrap', 'pre', 'preLine', 'preWrap']),
|
|
31
|
+
$i18n_dataTitle: _propTypes["default"].string,
|
|
32
|
+
testId: _propTypes["default"].string,
|
|
33
|
+
customId: _propTypes["default"].string,
|
|
34
|
+
customStyle: _propTypes["default"].object,
|
|
35
|
+
$a11yAttributes_text: _propTypes["default"].object,
|
|
36
|
+
$tagAttributes_text: _propTypes["default"].object
|
|
37
|
+
};
|
|
38
|
+
exports.propTypes = propTypes;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.lineheightMapping = exports.letterspacingMapping = void 0;
|
|
7
|
+
|
|
8
|
+
/* eslint-disable */
|
|
9
|
+
var letterspacingMapping = {
|
|
10
|
+
'inherit': 'inherit',
|
|
11
|
+
'0.1': '0_1',
|
|
12
|
+
'0.2': '0_2',
|
|
13
|
+
'0.3': '0_3',
|
|
14
|
+
'0.4': '0_4',
|
|
15
|
+
'0.5': '0_5',
|
|
16
|
+
'0.6': '0_6',
|
|
17
|
+
'0.7': '0_7',
|
|
18
|
+
'0.8': '0_8',
|
|
19
|
+
'0.9': '0_9',
|
|
20
|
+
'1': '1',
|
|
21
|
+
'1.1': '1_1',
|
|
22
|
+
'1.2': '1_2',
|
|
23
|
+
'1.3': '1_3',
|
|
24
|
+
'1.4': '1_4',
|
|
25
|
+
'1.5': '1_5',
|
|
26
|
+
'1.6': '1_6',
|
|
27
|
+
'1.7': '1_7',
|
|
28
|
+
'1.8': '1_8',
|
|
29
|
+
'1.9': '1_9',
|
|
30
|
+
'2': '2'
|
|
31
|
+
};
|
|
32
|
+
exports.letterspacingMapping = letterspacingMapping;
|
|
33
|
+
var lineheightMapping = {
|
|
34
|
+
'inherit': 'inherit',
|
|
35
|
+
'initial': 'initial',
|
|
36
|
+
'normal': 'normal',
|
|
37
|
+
'0': '0',
|
|
38
|
+
'0.1': '0_1',
|
|
39
|
+
'0.2': '0_2',
|
|
40
|
+
'0.3': '0_3',
|
|
41
|
+
'0.4': '0_4',
|
|
42
|
+
'0.5': '0_5',
|
|
43
|
+
'0.6': '0_6',
|
|
44
|
+
'0.7': '0_7',
|
|
45
|
+
'0.8': '0_8',
|
|
46
|
+
'0.9': '0_9',
|
|
47
|
+
'1': '1',
|
|
48
|
+
'1.1': '1_1',
|
|
49
|
+
'1.2': '1_2',
|
|
50
|
+
'1.3': '1_3',
|
|
51
|
+
'1.4': '1_4',
|
|
52
|
+
'1.5': '1_5',
|
|
53
|
+
'1.6': '1_6',
|
|
54
|
+
'1.7': '1_7',
|
|
55
|
+
'1.8': '1_8',
|
|
56
|
+
'1.9': '1_9',
|
|
57
|
+
'2': '2'
|
|
58
|
+
};
|
|
59
|
+
exports.lineheightMapping = lineheightMapping;
|
package/lib/index.js
CHANGED
|
@@ -408,7 +408,7 @@ Object.keys(_semantic).forEach(function (key) {
|
|
|
408
408
|
});
|
|
409
409
|
});
|
|
410
410
|
|
|
411
|
-
var _Typography = _interopRequireDefault(require("./
|
|
411
|
+
var _Typography = _interopRequireDefault(require("./Typography/Typography"));
|
|
412
412
|
|
|
413
413
|
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); }
|
|
414
414
|
|
|
@@ -15,7 +15,7 @@ var _cssJSLogic2 = _interopRequireDefault(require("./css/cssJSLogic"));
|
|
|
15
15
|
|
|
16
16
|
var _utils = require("@zohodesk/utils");
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _v1_TypographyModule = _interopRequireDefault(require("./css/v1_Typography.module.css"));
|
|
19
19
|
|
|
20
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
21
21
|
|
|
@@ -34,7 +34,7 @@ var Typography = function Typography(props) {
|
|
|
34
34
|
$tagAttributes_text = props.$tagAttributes_text,
|
|
35
35
|
$a11yAttributes_text = props.$a11yAttributes_text,
|
|
36
36
|
customStyle = props.customStyle;
|
|
37
|
-
var style = (0, _utils.mergeStyle)(
|
|
37
|
+
var style = (0, _utils.mergeStyle)(_v1_TypographyModule["default"], customStyle);
|
|
38
38
|
|
|
39
39
|
var _cssJSLogic = (0, _cssJSLogic2["default"])({
|
|
40
40
|
props: props,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zohodesk/components",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.52",
|
|
4
4
|
"main": "es/index.js",
|
|
5
5
|
"module": "es/index.js",
|
|
6
6
|
"private": false,
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"@zohodesk/a11y": "2.2.6",
|
|
72
72
|
"@zohodesk/docstool": "1.0.0-alpha-2",
|
|
73
73
|
"@zohodesk/hooks": "2.0.5",
|
|
74
|
-
"@zohodesk/icons": "1.0.
|
|
74
|
+
"@zohodesk/icons": "1.0.68",
|
|
75
75
|
"@zohodesk/svg": "1.1.22",
|
|
76
76
|
"@zohodesk/utils": "1.3.14",
|
|
77
77
|
"@zohodesk/variables": "1.0.0",
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"selectn": "1.1.2"
|
|
87
87
|
},
|
|
88
88
|
"peerDependencies": {
|
|
89
|
-
"@zohodesk/icons": "1.0.
|
|
89
|
+
"@zohodesk/icons": "1.0.68",
|
|
90
90
|
"@zohodesk/variables": "1.0.0",
|
|
91
91
|
"@zohodesk/svg": "1.1.22",
|
|
92
92
|
"@zohodesk/virtualizer": "1.0.3",
|