@carbon/type 10.14.0 → 10.16.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/es/index.js +59 -60
- package/lib/index.js +59 -60
- package/package.json +4 -4
- package/scss/_font-family.scss +2 -2
- package/scss/_inlined/_font-family.scss +2 -2
- package/scss/_inlined/_reset.scss +1 -1
- package/scss/_inlined/_scale.scss +2 -2
- package/scss/_inlined/_styles.scss +59 -59
- package/scss/_reset.scss +1 -1
- package/scss/_scale.scss +2 -2
- package/scss/_styles.scss +59 -59
- package/src/__tests__/__snapshots__/styles-test.js.snap +31 -31
- package/src/__tests__/fluid-test.js +26 -26
- package/src/styles.js +58 -59
- package/umd/index.js +59 -60
package/es/index.js
CHANGED
|
@@ -246,132 +246,133 @@ function _objectWithoutProperties(source, excluded) {
|
|
|
246
246
|
var caption01 = {
|
|
247
247
|
fontSize: rem(scale[0]),
|
|
248
248
|
fontWeight: fontWeights.regular,
|
|
249
|
-
lineHeight:
|
|
249
|
+
lineHeight: 1.34,
|
|
250
250
|
letterSpacing: px(0.32)
|
|
251
251
|
};
|
|
252
252
|
var label01 = {
|
|
253
253
|
fontSize: rem(scale[0]),
|
|
254
254
|
fontWeight: fontWeights.regular,
|
|
255
|
-
lineHeight:
|
|
255
|
+
lineHeight: 1.34,
|
|
256
256
|
letterSpacing: px(0.32)
|
|
257
257
|
};
|
|
258
258
|
var helperText01 = {
|
|
259
259
|
fontSize: rem(scale[0]),
|
|
260
|
-
lineHeight:
|
|
260
|
+
lineHeight: 1.34,
|
|
261
261
|
letterSpacing: px(0.32)
|
|
262
262
|
};
|
|
263
263
|
var bodyShort01 = {
|
|
264
264
|
fontSize: rem(scale[1]),
|
|
265
265
|
fontWeight: fontWeights.regular,
|
|
266
|
-
lineHeight:
|
|
266
|
+
lineHeight: 1.29,
|
|
267
267
|
letterSpacing: px(0.16)
|
|
268
268
|
};
|
|
269
269
|
var bodyLong01 = {
|
|
270
270
|
fontSize: rem(scale[1]),
|
|
271
271
|
fontWeight: fontWeights.regular,
|
|
272
|
-
lineHeight:
|
|
272
|
+
lineHeight: 1.43,
|
|
273
273
|
letterSpacing: px(0.16)
|
|
274
274
|
};
|
|
275
275
|
var bodyShort02 = {
|
|
276
276
|
fontSize: rem(scale[2]),
|
|
277
277
|
fontWeight: fontWeights.regular,
|
|
278
|
-
lineHeight:
|
|
278
|
+
lineHeight: 1.375,
|
|
279
279
|
letterSpacing: 0
|
|
280
280
|
};
|
|
281
281
|
var bodyLong02 = {
|
|
282
282
|
fontSize: rem(scale[2]),
|
|
283
283
|
fontWeight: fontWeights.regular,
|
|
284
|
-
lineHeight:
|
|
284
|
+
lineHeight: 1.5,
|
|
285
285
|
letterSpacing: 0
|
|
286
286
|
};
|
|
287
287
|
var code01 = {
|
|
288
288
|
fontFamily: fontFamilies.mono,
|
|
289
289
|
fontSize: rem(scale[0]),
|
|
290
290
|
fontWeight: fontWeights.regular,
|
|
291
|
-
lineHeight:
|
|
291
|
+
lineHeight: 1.34,
|
|
292
292
|
letterSpacing: px(0.32)
|
|
293
293
|
};
|
|
294
294
|
var code02 = {
|
|
295
295
|
fontFamily: fontFamilies.mono,
|
|
296
296
|
fontSize: rem(scale[1]),
|
|
297
297
|
fontWeight: fontWeights.regular,
|
|
298
|
-
lineHeight:
|
|
298
|
+
lineHeight: 1.43,
|
|
299
299
|
letterSpacing: px(0.32)
|
|
300
300
|
};
|
|
301
301
|
var heading01 = {
|
|
302
302
|
fontSize: rem(scale[1]),
|
|
303
303
|
fontWeight: fontWeights.semibold,
|
|
304
|
-
lineHeight:
|
|
304
|
+
lineHeight: 1.29,
|
|
305
305
|
letterSpacing: px(0.16)
|
|
306
306
|
};
|
|
307
307
|
var productiveHeading01 = heading01;
|
|
308
308
|
var heading02 = {
|
|
309
309
|
fontSize: rem(scale[2]),
|
|
310
310
|
fontWeight: fontWeights.semibold,
|
|
311
|
-
lineHeight:
|
|
311
|
+
lineHeight: 1.375,
|
|
312
312
|
letterSpacing: 0
|
|
313
313
|
};
|
|
314
314
|
var productiveHeading02 = heading02;
|
|
315
315
|
var productiveHeading03 = {
|
|
316
316
|
fontSize: rem(scale[4]),
|
|
317
317
|
fontWeight: fontWeights.regular,
|
|
318
|
-
lineHeight:
|
|
318
|
+
lineHeight: 1.4,
|
|
319
319
|
letterSpacing: 0
|
|
320
320
|
};
|
|
321
321
|
var productiveHeading04 = {
|
|
322
322
|
fontSize: rem(scale[6]),
|
|
323
323
|
fontWeight: fontWeights.regular,
|
|
324
|
-
lineHeight:
|
|
324
|
+
lineHeight: 1.29,
|
|
325
325
|
letterSpacing: 0
|
|
326
326
|
};
|
|
327
327
|
var productiveHeading05 = {
|
|
328
328
|
fontSize: rem(scale[7]),
|
|
329
329
|
fontWeight: fontWeights.regular,
|
|
330
|
-
lineHeight:
|
|
330
|
+
lineHeight: 1.25,
|
|
331
331
|
letterSpacing: 0
|
|
332
332
|
};
|
|
333
333
|
var productiveHeading06 = {
|
|
334
334
|
fontSize: rem(scale[9]),
|
|
335
335
|
fontWeight: fontWeights.light,
|
|
336
|
-
lineHeight:
|
|
336
|
+
lineHeight: 1.199,
|
|
337
337
|
letterSpacing: 0
|
|
338
338
|
};
|
|
339
339
|
var productiveHeading07 = {
|
|
340
340
|
fontSize: rem(scale[11]),
|
|
341
341
|
fontWeight: fontWeights.light,
|
|
342
|
-
lineHeight:
|
|
342
|
+
lineHeight: 1.19,
|
|
343
343
|
letterSpacing: 0
|
|
344
344
|
};
|
|
345
345
|
var expressiveHeading01 = _objectSpread2(_objectSpread2({}, heading01), {}, {
|
|
346
|
-
lineHeight:
|
|
346
|
+
lineHeight: 1.25
|
|
347
347
|
});
|
|
348
348
|
var expressiveHeading02 = _objectSpread2(_objectSpread2({}, heading02), {}, {
|
|
349
|
-
lineHeight:
|
|
349
|
+
lineHeight: 1.5
|
|
350
350
|
});
|
|
351
351
|
var expressiveHeading03 = {
|
|
352
352
|
fontSize: rem(scale[4]),
|
|
353
353
|
fontWeight: fontWeights.regular,
|
|
354
|
-
lineHeight:
|
|
354
|
+
lineHeight: 1.4,
|
|
355
355
|
letterSpacing: 0,
|
|
356
356
|
breakpoints: {
|
|
357
357
|
xlg: {
|
|
358
358
|
fontSize: rem(scale[4]),
|
|
359
|
-
lineHeight:
|
|
359
|
+
lineHeight: 1.25
|
|
360
360
|
},
|
|
361
361
|
max: {
|
|
362
|
-
fontSize: rem(scale[5])
|
|
362
|
+
fontSize: rem(scale[5]),
|
|
363
|
+
lineHeight: 1.334
|
|
363
364
|
}
|
|
364
365
|
}
|
|
365
366
|
};
|
|
366
367
|
var expressiveHeading04 = {
|
|
367
368
|
fontSize: rem(scale[6]),
|
|
368
369
|
fontWeight: fontWeights.regular,
|
|
369
|
-
lineHeight:
|
|
370
|
+
lineHeight: 1.29,
|
|
370
371
|
letterSpacing: 0,
|
|
371
372
|
breakpoints: {
|
|
372
373
|
xlg: {
|
|
373
374
|
fontSize: rem(scale[6]),
|
|
374
|
-
lineHeight:
|
|
375
|
+
lineHeight: 1.25
|
|
375
376
|
},
|
|
376
377
|
max: {
|
|
377
378
|
fontSize: rem(scale[7])
|
|
@@ -381,31 +382,30 @@ var expressiveHeading04 = {
|
|
|
381
382
|
var expressiveHeading05 = {
|
|
382
383
|
fontSize: rem(scale[7]),
|
|
383
384
|
fontWeight: fontWeights.regular,
|
|
384
|
-
lineHeight:
|
|
385
|
+
lineHeight: 1.25,
|
|
385
386
|
letterSpacing: 0,
|
|
386
387
|
breakpoints: {
|
|
387
388
|
md: {
|
|
388
389
|
fontSize: rem(scale[8]),
|
|
389
390
|
fontWeight: fontWeights.light,
|
|
390
|
-
lineHeight:
|
|
391
|
+
lineHeight: 1.22,
|
|
391
392
|
letterSpacing: 0
|
|
392
393
|
},
|
|
393
394
|
lg: {
|
|
394
395
|
fontSize: rem(scale[9]),
|
|
395
396
|
fontWeight: fontWeights.light,
|
|
396
|
-
lineHeight:
|
|
397
|
+
lineHeight: 1.19,
|
|
397
398
|
letterSpacing: 0
|
|
398
399
|
},
|
|
399
400
|
xlg: {
|
|
400
401
|
fontSize: rem(scale[10]),
|
|
401
402
|
fontWeight: fontWeights.light,
|
|
402
|
-
lineHeight:
|
|
403
|
+
lineHeight: 1.17,
|
|
403
404
|
letterSpacing: 0
|
|
404
405
|
},
|
|
405
406
|
max: {
|
|
406
407
|
fontSize: rem(scale[12]),
|
|
407
408
|
fontWeight: fontWeights.light,
|
|
408
|
-
lineHeight: rem(70),
|
|
409
409
|
letterSpacing: 0
|
|
410
410
|
}
|
|
411
411
|
}
|
|
@@ -413,31 +413,30 @@ var expressiveHeading05 = {
|
|
|
413
413
|
var expressiveHeading06 = {
|
|
414
414
|
fontSize: rem(scale[7]),
|
|
415
415
|
fontWeight: fontWeights.semibold,
|
|
416
|
-
lineHeight:
|
|
416
|
+
lineHeight: 1.25,
|
|
417
417
|
letterSpacing: 0,
|
|
418
418
|
breakpoints: {
|
|
419
419
|
md: {
|
|
420
420
|
fontSize: rem(scale[8]),
|
|
421
421
|
fontWeight: fontWeights.semibold,
|
|
422
|
-
lineHeight:
|
|
422
|
+
lineHeight: 1.22,
|
|
423
423
|
letterSpacing: 0
|
|
424
424
|
},
|
|
425
425
|
lg: {
|
|
426
426
|
fontSize: rem(scale[9]),
|
|
427
427
|
fontWeight: fontWeights.semibold,
|
|
428
|
-
lineHeight:
|
|
428
|
+
lineHeight: 1.19,
|
|
429
429
|
letterSpacing: 0
|
|
430
430
|
},
|
|
431
431
|
xlg: {
|
|
432
432
|
fontSize: rem(scale[10]),
|
|
433
433
|
fontWeight: fontWeights.semibold,
|
|
434
|
-
lineHeight:
|
|
434
|
+
lineHeight: 1.17,
|
|
435
435
|
letterSpacing: 0
|
|
436
436
|
},
|
|
437
437
|
max: {
|
|
438
438
|
fontSize: rem(scale[12]),
|
|
439
439
|
fontWeight: fontWeights.semibold,
|
|
440
|
-
lineHeight: rem(70),
|
|
441
440
|
letterSpacing: 0
|
|
442
441
|
}
|
|
443
442
|
}
|
|
@@ -445,21 +444,21 @@ var expressiveHeading06 = {
|
|
|
445
444
|
var expressiveParagraph01 = {
|
|
446
445
|
fontSize: rem(scale[5]),
|
|
447
446
|
fontWeight: fontWeights.light,
|
|
448
|
-
lineHeight:
|
|
447
|
+
lineHeight: 1.334,
|
|
449
448
|
letterSpacing: 0,
|
|
450
449
|
lg: {
|
|
451
450
|
fontSize: rem(scale[6]),
|
|
452
|
-
lineHeight:
|
|
451
|
+
lineHeight: 1.29
|
|
453
452
|
},
|
|
454
453
|
max: {
|
|
455
454
|
fontSize: rem(scale[7]),
|
|
456
|
-
lineHeight:
|
|
455
|
+
lineHeight: 1.25
|
|
457
456
|
}
|
|
458
457
|
};
|
|
459
458
|
var quotation01 = {
|
|
460
459
|
fontSize: rem(scale[4]),
|
|
461
460
|
fontWeight: fontWeights.regular,
|
|
462
|
-
lineHeight:
|
|
461
|
+
lineHeight: 1.3,
|
|
463
462
|
letterSpacing: 0,
|
|
464
463
|
breakpoints: {
|
|
465
464
|
md: {
|
|
@@ -470,19 +469,19 @@ var quotation01 = {
|
|
|
470
469
|
lg: {
|
|
471
470
|
fontSize: rem(scale[5]),
|
|
472
471
|
fontWeight: fontWeights.regular,
|
|
473
|
-
lineHeight:
|
|
472
|
+
lineHeight: 1.334,
|
|
474
473
|
letterSpacing: 0
|
|
475
474
|
},
|
|
476
475
|
xlg: {
|
|
477
476
|
fontSize: rem(scale[6]),
|
|
478
477
|
fontWeight: fontWeights.regular,
|
|
479
|
-
lineHeight:
|
|
478
|
+
lineHeight: 1.29,
|
|
480
479
|
letterSpacing: 0
|
|
481
480
|
},
|
|
482
481
|
max: {
|
|
483
482
|
fontSize: rem(scale[7]),
|
|
484
483
|
fontWeight: fontWeights.regular,
|
|
485
|
-
lineHeight:
|
|
484
|
+
lineHeight: 1.25,
|
|
486
485
|
letterSpacing: 0
|
|
487
486
|
}
|
|
488
487
|
}
|
|
@@ -490,20 +489,20 @@ var quotation01 = {
|
|
|
490
489
|
var quotation02 = {
|
|
491
490
|
fontSize: rem(scale[7]),
|
|
492
491
|
fontWeight: fontWeights.light,
|
|
493
|
-
lineHeight:
|
|
492
|
+
lineHeight: 1.25,
|
|
494
493
|
letterSpacing: 0,
|
|
495
494
|
breakpoints: {
|
|
496
495
|
md: {
|
|
497
496
|
fontSize: rem(scale[8]),
|
|
498
|
-
lineHeight:
|
|
497
|
+
lineHeight: 1.22
|
|
499
498
|
},
|
|
500
499
|
lg: {
|
|
501
500
|
fontSize: rem(scale[9]),
|
|
502
|
-
lineHeight:
|
|
501
|
+
lineHeight: 1.19
|
|
503
502
|
},
|
|
504
503
|
xlg: {
|
|
505
504
|
fontSize: rem(scale[10]),
|
|
506
|
-
lineHeight:
|
|
505
|
+
lineHeight: 1.17
|
|
507
506
|
},
|
|
508
507
|
max: {
|
|
509
508
|
fontSize: rem(scale[12])
|
|
@@ -513,7 +512,7 @@ var quotation02 = {
|
|
|
513
512
|
var display01 = {
|
|
514
513
|
fontSize: rem(scale[9]),
|
|
515
514
|
fontWeight: fontWeights.light,
|
|
516
|
-
lineHeight:
|
|
515
|
+
lineHeight: 1.19,
|
|
517
516
|
letterSpacing: 0,
|
|
518
517
|
breakpoints: {
|
|
519
518
|
md: {
|
|
@@ -524,18 +523,18 @@ var display01 = {
|
|
|
524
523
|
},
|
|
525
524
|
xlg: {
|
|
526
525
|
fontSize: rem(scale[12]),
|
|
527
|
-
lineHeight:
|
|
526
|
+
lineHeight: 1.17
|
|
528
527
|
},
|
|
529
528
|
max: {
|
|
530
529
|
fontSize: rem(scale[14]),
|
|
531
|
-
lineHeight:
|
|
530
|
+
lineHeight: 1.13
|
|
532
531
|
}
|
|
533
532
|
}
|
|
534
533
|
};
|
|
535
534
|
var display02 = {
|
|
536
535
|
fontSize: rem(scale[9]),
|
|
537
536
|
fontWeight: fontWeights.semibold,
|
|
538
|
-
lineHeight:
|
|
537
|
+
lineHeight: 1.19,
|
|
539
538
|
letterSpacing: 0,
|
|
540
539
|
breakpoints: {
|
|
541
540
|
md: {
|
|
@@ -546,36 +545,36 @@ var display02 = {
|
|
|
546
545
|
},
|
|
547
546
|
xlg: {
|
|
548
547
|
fontSize: rem(scale[12]),
|
|
549
|
-
lineHeight:
|
|
548
|
+
lineHeight: 1.16
|
|
550
549
|
},
|
|
551
550
|
max: {
|
|
552
551
|
fontSize: rem(scale[14]),
|
|
553
|
-
lineHeight:
|
|
552
|
+
lineHeight: 1.13
|
|
554
553
|
}
|
|
555
554
|
}
|
|
556
555
|
};
|
|
557
556
|
var display03 = {
|
|
558
557
|
fontSize: rem(scale[9]),
|
|
559
558
|
fontWeight: fontWeights.light,
|
|
560
|
-
lineHeight:
|
|
559
|
+
lineHeight: 1.19,
|
|
561
560
|
letterSpacing: 0,
|
|
562
561
|
breakpoints: {
|
|
563
562
|
md: {
|
|
564
563
|
fontSize: rem(scale[13]),
|
|
565
|
-
lineHeight:
|
|
564
|
+
lineHeight: 1.15
|
|
566
565
|
},
|
|
567
566
|
lg: {
|
|
568
567
|
fontSize: rem(scale[16]),
|
|
569
|
-
lineHeight:
|
|
568
|
+
lineHeight: 1.11,
|
|
570
569
|
letterSpacing: px(-0.64)
|
|
571
570
|
},
|
|
572
571
|
xlg: {
|
|
573
572
|
fontSize: rem(scale[19]),
|
|
574
|
-
lineHeight:
|
|
573
|
+
lineHeight: 1.07
|
|
575
574
|
},
|
|
576
575
|
max: {
|
|
577
576
|
fontSize: rem(scale[22]),
|
|
578
|
-
lineHeight:
|
|
577
|
+
lineHeight: 1.05,
|
|
579
578
|
letterSpacing: px(-0.96)
|
|
580
579
|
}
|
|
581
580
|
}
|
|
@@ -583,26 +582,26 @@ var display03 = {
|
|
|
583
582
|
var display04 = {
|
|
584
583
|
fontSize: rem(scale[9]),
|
|
585
584
|
fontWeight: fontWeights.semibold,
|
|
586
|
-
lineHeight:
|
|
585
|
+
lineHeight: 1.19,
|
|
587
586
|
letterSpacing: 0,
|
|
588
587
|
breakpoints: {
|
|
589
588
|
md: {
|
|
590
589
|
fontSize: rem(scale[13]),
|
|
591
|
-
lineHeight:
|
|
590
|
+
lineHeight: 1.15
|
|
592
591
|
},
|
|
593
592
|
lg: {
|
|
594
593
|
fontSize: rem(scale[16]),
|
|
595
|
-
lineHeight:
|
|
594
|
+
lineHeight: 1.11,
|
|
596
595
|
letterSpacing: px(-0.64)
|
|
597
596
|
},
|
|
598
597
|
xlg: {
|
|
599
598
|
fontSize: rem(scale[19]),
|
|
600
|
-
lineHeight:
|
|
599
|
+
lineHeight: 1.07,
|
|
601
600
|
letterSpacing: px(-0.64)
|
|
602
601
|
},
|
|
603
602
|
max: {
|
|
604
603
|
fontSize: rem(scale[22]),
|
|
605
|
-
lineHeight:
|
|
604
|
+
lineHeight: 1.05,
|
|
606
605
|
letterSpacing: px(-0.96)
|
|
607
606
|
}
|
|
608
607
|
}
|