@carbon/type 10.13.0 → 10.15.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 +57 -59
- package/lib/index.js +57 -59
- package/package.json +4 -4
- package/scss/_inlined/_reset.scss +1 -1
- package/scss/_inlined/_scale.scss +2 -2
- package/scss/_inlined/_styles.scss +58 -59
- package/scss/_inlined/font-face/_mono.scss +72 -72
- package/scss/_inlined/font-face/_sans-condensed.scss +42 -42
- package/scss/_inlined/font-face/_sans.scss +84 -84
- package/scss/_inlined/font-face/_serif.scss +72 -72
- package/scss/_reset.scss +1 -1
- package/scss/_scale.scss +2 -2
- package/scss/_styles.scss +58 -59
- package/scss/font-face/_mono.scss +72 -72
- package/scss/font-face/_sans-condensed.scss +42 -42
- package/scss/font-face/_sans.scss +84 -84
- package/scss/font-face/_serif.scss +72 -72
- package/src/__tests__/__snapshots__/styles-test.js.snap +31 -31
- package/src/__tests__/fluid-test.js +26 -26
- package/src/styles.js +57 -59
- package/umd/index.js +57 -59
package/es/index.js
CHANGED
|
@@ -246,117 +246,117 @@ 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
362
|
fontSize: rem(scale[5])
|
|
@@ -366,12 +366,12 @@ var expressiveHeading03 = {
|
|
|
366
366
|
var expressiveHeading04 = {
|
|
367
367
|
fontSize: rem(scale[6]),
|
|
368
368
|
fontWeight: fontWeights.regular,
|
|
369
|
-
lineHeight:
|
|
369
|
+
lineHeight: 1.29,
|
|
370
370
|
letterSpacing: 0,
|
|
371
371
|
breakpoints: {
|
|
372
372
|
xlg: {
|
|
373
373
|
fontSize: rem(scale[6]),
|
|
374
|
-
lineHeight:
|
|
374
|
+
lineHeight: 1.25
|
|
375
375
|
},
|
|
376
376
|
max: {
|
|
377
377
|
fontSize: rem(scale[7])
|
|
@@ -381,31 +381,30 @@ var expressiveHeading04 = {
|
|
|
381
381
|
var expressiveHeading05 = {
|
|
382
382
|
fontSize: rem(scale[7]),
|
|
383
383
|
fontWeight: fontWeights.regular,
|
|
384
|
-
lineHeight:
|
|
384
|
+
lineHeight: 1.25,
|
|
385
385
|
letterSpacing: 0,
|
|
386
386
|
breakpoints: {
|
|
387
387
|
md: {
|
|
388
388
|
fontSize: rem(scale[8]),
|
|
389
389
|
fontWeight: fontWeights.light,
|
|
390
|
-
lineHeight:
|
|
390
|
+
lineHeight: 1.22,
|
|
391
391
|
letterSpacing: 0
|
|
392
392
|
},
|
|
393
393
|
lg: {
|
|
394
394
|
fontSize: rem(scale[9]),
|
|
395
395
|
fontWeight: fontWeights.light,
|
|
396
|
-
lineHeight:
|
|
396
|
+
lineHeight: 1.19,
|
|
397
397
|
letterSpacing: 0
|
|
398
398
|
},
|
|
399
399
|
xlg: {
|
|
400
400
|
fontSize: rem(scale[10]),
|
|
401
401
|
fontWeight: fontWeights.light,
|
|
402
|
-
lineHeight:
|
|
402
|
+
lineHeight: 1.17,
|
|
403
403
|
letterSpacing: 0
|
|
404
404
|
},
|
|
405
405
|
max: {
|
|
406
406
|
fontSize: rem(scale[12]),
|
|
407
407
|
fontWeight: fontWeights.light,
|
|
408
|
-
lineHeight: rem(70),
|
|
409
408
|
letterSpacing: 0
|
|
410
409
|
}
|
|
411
410
|
}
|
|
@@ -413,31 +412,30 @@ var expressiveHeading05 = {
|
|
|
413
412
|
var expressiveHeading06 = {
|
|
414
413
|
fontSize: rem(scale[7]),
|
|
415
414
|
fontWeight: fontWeights.semibold,
|
|
416
|
-
lineHeight:
|
|
415
|
+
lineHeight: 1.25,
|
|
417
416
|
letterSpacing: 0,
|
|
418
417
|
breakpoints: {
|
|
419
418
|
md: {
|
|
420
419
|
fontSize: rem(scale[8]),
|
|
421
420
|
fontWeight: fontWeights.semibold,
|
|
422
|
-
lineHeight:
|
|
421
|
+
lineHeight: 1.22,
|
|
423
422
|
letterSpacing: 0
|
|
424
423
|
},
|
|
425
424
|
lg: {
|
|
426
425
|
fontSize: rem(scale[9]),
|
|
427
426
|
fontWeight: fontWeights.semibold,
|
|
428
|
-
lineHeight:
|
|
427
|
+
lineHeight: 1.19,
|
|
429
428
|
letterSpacing: 0
|
|
430
429
|
},
|
|
431
430
|
xlg: {
|
|
432
431
|
fontSize: rem(scale[10]),
|
|
433
432
|
fontWeight: fontWeights.semibold,
|
|
434
|
-
lineHeight:
|
|
433
|
+
lineHeight: 1.17,
|
|
435
434
|
letterSpacing: 0
|
|
436
435
|
},
|
|
437
436
|
max: {
|
|
438
437
|
fontSize: rem(scale[12]),
|
|
439
438
|
fontWeight: fontWeights.semibold,
|
|
440
|
-
lineHeight: rem(70),
|
|
441
439
|
letterSpacing: 0
|
|
442
440
|
}
|
|
443
441
|
}
|
|
@@ -445,21 +443,21 @@ var expressiveHeading06 = {
|
|
|
445
443
|
var expressiveParagraph01 = {
|
|
446
444
|
fontSize: rem(scale[5]),
|
|
447
445
|
fontWeight: fontWeights.light,
|
|
448
|
-
lineHeight:
|
|
446
|
+
lineHeight: 1.25,
|
|
449
447
|
letterSpacing: 0,
|
|
450
448
|
lg: {
|
|
451
449
|
fontSize: rem(scale[6]),
|
|
452
|
-
lineHeight:
|
|
450
|
+
lineHeight: 1.29
|
|
453
451
|
},
|
|
454
452
|
max: {
|
|
455
453
|
fontSize: rem(scale[7]),
|
|
456
|
-
lineHeight:
|
|
454
|
+
lineHeight: 1.25
|
|
457
455
|
}
|
|
458
456
|
};
|
|
459
457
|
var quotation01 = {
|
|
460
458
|
fontSize: rem(scale[4]),
|
|
461
459
|
fontWeight: fontWeights.regular,
|
|
462
|
-
lineHeight:
|
|
460
|
+
lineHeight: 1.3,
|
|
463
461
|
letterSpacing: 0,
|
|
464
462
|
breakpoints: {
|
|
465
463
|
md: {
|
|
@@ -470,19 +468,19 @@ var quotation01 = {
|
|
|
470
468
|
lg: {
|
|
471
469
|
fontSize: rem(scale[5]),
|
|
472
470
|
fontWeight: fontWeights.regular,
|
|
473
|
-
lineHeight:
|
|
471
|
+
lineHeight: 1.25,
|
|
474
472
|
letterSpacing: 0
|
|
475
473
|
},
|
|
476
474
|
xlg: {
|
|
477
475
|
fontSize: rem(scale[6]),
|
|
478
476
|
fontWeight: fontWeights.regular,
|
|
479
|
-
lineHeight:
|
|
477
|
+
lineHeight: 1.29,
|
|
480
478
|
letterSpacing: 0
|
|
481
479
|
},
|
|
482
480
|
max: {
|
|
483
481
|
fontSize: rem(scale[7]),
|
|
484
482
|
fontWeight: fontWeights.regular,
|
|
485
|
-
lineHeight:
|
|
483
|
+
lineHeight: 1.25,
|
|
486
484
|
letterSpacing: 0
|
|
487
485
|
}
|
|
488
486
|
}
|
|
@@ -490,20 +488,20 @@ var quotation01 = {
|
|
|
490
488
|
var quotation02 = {
|
|
491
489
|
fontSize: rem(scale[7]),
|
|
492
490
|
fontWeight: fontWeights.light,
|
|
493
|
-
lineHeight:
|
|
491
|
+
lineHeight: 1.25,
|
|
494
492
|
letterSpacing: 0,
|
|
495
493
|
breakpoints: {
|
|
496
494
|
md: {
|
|
497
495
|
fontSize: rem(scale[8]),
|
|
498
|
-
lineHeight:
|
|
496
|
+
lineHeight: 1.22
|
|
499
497
|
},
|
|
500
498
|
lg: {
|
|
501
499
|
fontSize: rem(scale[9]),
|
|
502
|
-
lineHeight:
|
|
500
|
+
lineHeight: 1.19
|
|
503
501
|
},
|
|
504
502
|
xlg: {
|
|
505
503
|
fontSize: rem(scale[10]),
|
|
506
|
-
lineHeight:
|
|
504
|
+
lineHeight: 1.17
|
|
507
505
|
},
|
|
508
506
|
max: {
|
|
509
507
|
fontSize: rem(scale[12])
|
|
@@ -513,7 +511,7 @@ var quotation02 = {
|
|
|
513
511
|
var display01 = {
|
|
514
512
|
fontSize: rem(scale[9]),
|
|
515
513
|
fontWeight: fontWeights.light,
|
|
516
|
-
lineHeight:
|
|
514
|
+
lineHeight: 1.19,
|
|
517
515
|
letterSpacing: 0,
|
|
518
516
|
breakpoints: {
|
|
519
517
|
md: {
|
|
@@ -524,18 +522,18 @@ var display01 = {
|
|
|
524
522
|
},
|
|
525
523
|
xlg: {
|
|
526
524
|
fontSize: rem(scale[12]),
|
|
527
|
-
lineHeight:
|
|
525
|
+
lineHeight: 1.17
|
|
528
526
|
},
|
|
529
527
|
max: {
|
|
530
528
|
fontSize: rem(scale[14]),
|
|
531
|
-
lineHeight:
|
|
529
|
+
lineHeight: 1.13
|
|
532
530
|
}
|
|
533
531
|
}
|
|
534
532
|
};
|
|
535
533
|
var display02 = {
|
|
536
534
|
fontSize: rem(scale[9]),
|
|
537
535
|
fontWeight: fontWeights.semibold,
|
|
538
|
-
lineHeight:
|
|
536
|
+
lineHeight: 1.19,
|
|
539
537
|
letterSpacing: 0,
|
|
540
538
|
breakpoints: {
|
|
541
539
|
md: {
|
|
@@ -546,36 +544,36 @@ var display02 = {
|
|
|
546
544
|
},
|
|
547
545
|
xlg: {
|
|
548
546
|
fontSize: rem(scale[12]),
|
|
549
|
-
lineHeight:
|
|
547
|
+
lineHeight: 1.16
|
|
550
548
|
},
|
|
551
549
|
max: {
|
|
552
550
|
fontSize: rem(scale[14]),
|
|
553
|
-
lineHeight:
|
|
551
|
+
lineHeight: 1.13
|
|
554
552
|
}
|
|
555
553
|
}
|
|
556
554
|
};
|
|
557
555
|
var display03 = {
|
|
558
556
|
fontSize: rem(scale[9]),
|
|
559
557
|
fontWeight: fontWeights.light,
|
|
560
|
-
lineHeight:
|
|
558
|
+
lineHeight: 1.19,
|
|
561
559
|
letterSpacing: 0,
|
|
562
560
|
breakpoints: {
|
|
563
561
|
md: {
|
|
564
562
|
fontSize: rem(scale[13]),
|
|
565
|
-
lineHeight:
|
|
563
|
+
lineHeight: 1.15
|
|
566
564
|
},
|
|
567
565
|
lg: {
|
|
568
566
|
fontSize: rem(scale[16]),
|
|
569
|
-
lineHeight:
|
|
567
|
+
lineHeight: 1.11,
|
|
570
568
|
letterSpacing: px(-0.64)
|
|
571
569
|
},
|
|
572
570
|
xlg: {
|
|
573
571
|
fontSize: rem(scale[19]),
|
|
574
|
-
lineHeight:
|
|
572
|
+
lineHeight: 1.07
|
|
575
573
|
},
|
|
576
574
|
max: {
|
|
577
575
|
fontSize: rem(scale[22]),
|
|
578
|
-
lineHeight:
|
|
576
|
+
lineHeight: 1.05,
|
|
579
577
|
letterSpacing: px(-0.96)
|
|
580
578
|
}
|
|
581
579
|
}
|
|
@@ -583,26 +581,26 @@ var display03 = {
|
|
|
583
581
|
var display04 = {
|
|
584
582
|
fontSize: rem(scale[9]),
|
|
585
583
|
fontWeight: fontWeights.semibold,
|
|
586
|
-
lineHeight:
|
|
584
|
+
lineHeight: 1.19,
|
|
587
585
|
letterSpacing: 0,
|
|
588
586
|
breakpoints: {
|
|
589
587
|
md: {
|
|
590
588
|
fontSize: rem(scale[13]),
|
|
591
|
-
lineHeight:
|
|
589
|
+
lineHeight: 1.15
|
|
592
590
|
},
|
|
593
591
|
lg: {
|
|
594
592
|
fontSize: rem(scale[16]),
|
|
595
|
-
lineHeight:
|
|
593
|
+
lineHeight: 1.11,
|
|
596
594
|
letterSpacing: px(-0.64)
|
|
597
595
|
},
|
|
598
596
|
xlg: {
|
|
599
597
|
fontSize: rem(scale[19]),
|
|
600
|
-
lineHeight:
|
|
598
|
+
lineHeight: 1.07,
|
|
601
599
|
letterSpacing: px(-0.64)
|
|
602
600
|
},
|
|
603
601
|
max: {
|
|
604
602
|
fontSize: rem(scale[22]),
|
|
605
|
-
lineHeight:
|
|
603
|
+
lineHeight: 1.05,
|
|
606
604
|
letterSpacing: px(-0.96)
|
|
607
605
|
}
|
|
608
606
|
}
|