@carbon/type 10.34.0-rc.0 → 10.36.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/src/tokens.js CHANGED
@@ -40,6 +40,31 @@ export const display01 = 'display01';
40
40
  export const display02 = 'display02';
41
41
  export const display03 = 'display03';
42
42
  export const display04 = 'display04';
43
+ // V11 Tokens
44
+ export const legal01 = 'legal01';
45
+ export const legal02 = 'legal02';
46
+ export const bodyCompact01 = 'bodyCompact01';
47
+ export const bodyCompact02 = 'bodyCompact02';
48
+ export const body01 = 'body01';
49
+ export const body02 = 'body02';
50
+ export const headingCompact01 = 'headingCompact01';
51
+ export const headingCompact02 = 'headingCompact02';
52
+ export const heading03 = 'heading03';
53
+ export const heading04 = 'heading04';
54
+ export const heading05 = 'heading05';
55
+ export const heading06 = 'heading06';
56
+ export const heading07 = 'heading07';
57
+ export const fluidHeading03 = 'fluidHeading03';
58
+ export const fluidHeading04 = 'fluidHeading04';
59
+ export const fluidHeading05 = 'fluidHeading05';
60
+ export const fluidHeading06 = 'fluidHeading06';
61
+ export const fluidParagraph01 = 'fluidParagraph01';
62
+ export const fluidQuotation01 = 'fluidQuotation01';
63
+ export const fluidQuotation02 = 'fluidQuotation02';
64
+ export const fluidDisplay01 = 'fluidDisplay01';
65
+ export const fluidDisplay02 = 'fluidDisplay02';
66
+ export const fluidDisplay03 = 'fluidDisplay03';
67
+ export const fluidDisplay04 = 'fluidDisplay04';
43
68
 
44
69
  export const unstable_tokens = [
45
70
  caption01,
@@ -76,4 +101,29 @@ export const unstable_tokens = [
76
101
  display02,
77
102
  display03,
78
103
  display04,
104
+ // V11 Tokens
105
+ legal01,
106
+ legal02,
107
+ bodyCompact01,
108
+ bodyCompact02,
109
+ body01,
110
+ body02,
111
+ headingCompact01,
112
+ headingCompact02,
113
+ heading03,
114
+ heading04,
115
+ heading05,
116
+ heading06,
117
+ heading07,
118
+ fluidHeading03,
119
+ fluidHeading04,
120
+ fluidHeading05,
121
+ fluidHeading06,
122
+ fluidParagraph01,
123
+ fluidQuotation01,
124
+ fluidQuotation02,
125
+ fluidDisplay01,
126
+ fluidDisplay02,
127
+ fluidDisplay03,
128
+ fluidDisplay04,
79
129
  ];
package/umd/index.js CHANGED
@@ -254,47 +254,47 @@
254
254
  var caption01$1 = {
255
255
  fontSize: layout.rem(scale[0]),
256
256
  fontWeight: fontWeights.regular,
257
- lineHeight: 1.34,
257
+ lineHeight: 1.33333,
258
258
  letterSpacing: layout.px(0.32)
259
259
  };
260
260
  var caption02$1 = {
261
261
  fontSize: layout.rem(scale[1]),
262
262
  fontWeight: fontWeights.regular,
263
- lineHeight: 1.29,
263
+ lineHeight: 1.28572,
264
264
  letterSpacing: layout.px(0.32)
265
265
  };
266
266
  var label01$1 = {
267
267
  fontSize: layout.rem(scale[0]),
268
268
  fontWeight: fontWeights.regular,
269
- lineHeight: 1.34,
269
+ lineHeight: 1.33333,
270
270
  letterSpacing: layout.px(0.32)
271
271
  };
272
272
  var label02$1 = {
273
273
  fontSize: layout.rem(scale[1]),
274
274
  fontWeight: fontWeights.regular,
275
- lineHeight: 1.29,
276
- letterSpacing: layout.px(0.32)
275
+ lineHeight: 1.28572,
276
+ letterSpacing: layout.px(0.16)
277
277
  };
278
278
  var helperText01$1 = {
279
279
  fontSize: layout.rem(scale[0]),
280
- lineHeight: 1.34,
280
+ lineHeight: 1.33333,
281
281
  letterSpacing: layout.px(0.32)
282
282
  };
283
283
  var helperText02$1 = {
284
284
  fontSize: layout.rem(scale[1]),
285
- lineHeight: 1.29,
286
- letterSpacing: layout.px(0.32)
285
+ lineHeight: 1.28572,
286
+ letterSpacing: layout.px(0.16)
287
287
  };
288
288
  var bodyShort01$1 = {
289
289
  fontSize: layout.rem(scale[1]),
290
290
  fontWeight: fontWeights.regular,
291
- lineHeight: 1.29,
291
+ lineHeight: 1.28572,
292
292
  letterSpacing: layout.px(0.16)
293
293
  };
294
294
  var bodyLong01$1 = {
295
295
  fontSize: layout.rem(scale[1]),
296
296
  fontWeight: fontWeights.regular,
297
- lineHeight: 1.43,
297
+ lineHeight: 1.42857,
298
298
  letterSpacing: layout.px(0.16)
299
299
  };
300
300
  var bodyShort02$1 = {
@@ -313,30 +313,40 @@
313
313
  fontFamily: fontFamilies.mono,
314
314
  fontSize: layout.rem(scale[0]),
315
315
  fontWeight: fontWeights.regular,
316
- lineHeight: 1.34,
316
+ lineHeight: 1.33333,
317
317
  letterSpacing: layout.px(0.32)
318
318
  };
319
319
  var code02$1 = {
320
320
  fontFamily: fontFamilies.mono,
321
321
  fontSize: layout.rem(scale[1]),
322
322
  fontWeight: fontWeights.regular,
323
- lineHeight: 1.43,
323
+ lineHeight: 1.42857,
324
324
  letterSpacing: layout.px(0.32)
325
325
  };
326
326
  var heading01$1 = {
327
327
  fontSize: layout.rem(scale[1]),
328
328
  fontWeight: fontWeights.semibold,
329
- lineHeight: 1.29,
329
+ lineHeight: 1.42857,
330
+ letterSpacing: layout.px(0.16)
331
+ };
332
+ var productiveHeading01$1 = {
333
+ fontSize: layout.rem(scale[1]),
334
+ fontWeight: fontWeights.semibold,
335
+ lineHeight: 1.28572,
330
336
  letterSpacing: layout.px(0.16)
331
337
  };
332
- var productiveHeading01$1 = heading01$1;
333
338
  var heading02$1 = {
339
+ fontSize: layout.rem(scale[2]),
340
+ fontWeight: fontWeights.semibold,
341
+ lineHeight: 1.5,
342
+ letterSpacing: 0
343
+ };
344
+ var productiveHeading02$1 = {
334
345
  fontSize: layout.rem(scale[2]),
335
346
  fontWeight: fontWeights.semibold,
336
347
  lineHeight: 1.375,
337
348
  letterSpacing: 0
338
349
  };
339
- var productiveHeading02$1 = heading02$1;
340
350
  var productiveHeading03$1 = {
341
351
  fontSize: layout.rem(scale[4]),
342
352
  fontWeight: fontWeights.regular,
@@ -346,7 +356,7 @@
346
356
  var productiveHeading04$1 = {
347
357
  fontSize: layout.rem(scale[6]),
348
358
  fontWeight: fontWeights.regular,
349
- lineHeight: 1.29,
359
+ lineHeight: 1.28572,
350
360
  letterSpacing: 0
351
361
  };
352
362
  var productiveHeading05$1 = {
@@ -364,7 +374,7 @@
364
374
  var productiveHeading07$1 = {
365
375
  fontSize: layout.rem(scale[11]),
366
376
  fontWeight: fontWeights.light,
367
- lineHeight: 1.19,
377
+ lineHeight: 1.199,
368
378
  letterSpacing: 0
369
379
  };
370
380
  var expressiveHeading01$1 = _objectSpread2(_objectSpread2({}, heading01$1), {}, {
@@ -392,7 +402,7 @@
392
402
  var expressiveHeading04$1 = {
393
403
  fontSize: layout.rem(scale[6]),
394
404
  fontWeight: fontWeights.regular,
395
- lineHeight: 1.29,
405
+ lineHeight: 1.28572,
396
406
  letterSpacing: 0,
397
407
  breakpoints: {
398
408
  xlg: {
@@ -474,7 +484,7 @@
474
484
  breakpoints: {
475
485
  lg: {
476
486
  fontSize: layout.rem(scale[6]),
477
- lineHeight: 1.29
487
+ lineHeight: 1.28572
478
488
  },
479
489
  max: {
480
490
  fontSize: layout.rem(scale[7]),
@@ -483,6 +493,7 @@
483
493
  }
484
494
  };
485
495
  var quotation01$1 = {
496
+ fontFamily: fontFamilies.serif,
486
497
  fontSize: layout.rem(scale[4]),
487
498
  fontWeight: fontWeights.regular,
488
499
  lineHeight: 1.3,
@@ -502,7 +513,7 @@
502
513
  xlg: {
503
514
  fontSize: layout.rem(scale[6]),
504
515
  fontWeight: fontWeights.regular,
505
- lineHeight: 1.29,
516
+ lineHeight: 1.28572,
506
517
  letterSpacing: 0
507
518
  },
508
519
  max: {
@@ -514,6 +525,7 @@
514
525
  }
515
526
  };
516
527
  var quotation02$1 = {
528
+ fontFamily: fontFamilies.serif,
517
529
  fontSize: layout.rem(scale[7]),
518
530
  fontWeight: fontWeights.light,
519
531
  lineHeight: 1.25,
@@ -632,7 +644,48 @@
632
644
  letterSpacing: layout.px(-0.96)
633
645
  }
634
646
  }
647
+ }; // Type changes - V11
648
+ // Small styles
649
+ // No changes for code-01, code-02, label-01, label-02
650
+
651
+ var legal01$1 = {
652
+ fontSize: layout.rem(scale[0]),
653
+ fontWeight: fontWeights.regular,
654
+ lineHeight: 1.33333,
655
+ letterSpacing: layout.px(0.32)
635
656
  };
657
+ var legal02$1 = {
658
+ fontSize: layout.rem(scale[1]),
659
+ fontWeight: fontWeights.regular,
660
+ lineHeight: 1.28572,
661
+ letterSpacing: layout.px(0.16)
662
+ }; // Body styles
663
+
664
+ var bodyCompact01$1 = bodyShort01$1;
665
+ var bodyCompact02$1 = bodyShort02$1;
666
+ var body01$1 = bodyLong01$1;
667
+ var body02$1 = bodyLong02$1; // Fixed heading styles
668
+
669
+ var headingCompact01$1 = productiveHeading01$1;
670
+ var headingCompact02$1 = productiveHeading02$1;
671
+ var heading03$1 = productiveHeading03$1;
672
+ var heading04$1 = productiveHeading04$1;
673
+ var heading05$1 = productiveHeading05$1;
674
+ var heading06$1 = productiveHeading06$1;
675
+ var heading07$1 = productiveHeading07$1; // Fluid heading styles
676
+
677
+ var fluidHeading03$1 = expressiveHeading03$1;
678
+ var fluidHeading04$1 = expressiveHeading04$1;
679
+ var fluidHeading05$1 = expressiveHeading05$1;
680
+ var fluidHeading06$1 = expressiveHeading06$1; // Additional fluid styles
681
+
682
+ var fluidParagraph01$1 = expressiveParagraph01$1;
683
+ var fluidQuotation01$1 = quotation01$1;
684
+ var fluidQuotation02$1 = quotation02$1;
685
+ var fluidDisplay01$1 = display01$1;
686
+ var fluidDisplay02$1 = display02$1;
687
+ var fluidDisplay03$1 = display03$1;
688
+ var fluidDisplay04$1 = display04$1;
636
689
 
637
690
  var styles = /*#__PURE__*/Object.freeze({
638
691
  __proto__: null,
@@ -669,7 +722,31 @@
669
722
  display01: display01$1,
670
723
  display02: display02$1,
671
724
  display03: display03$1,
672
- display04: display04$1
725
+ display04: display04$1,
726
+ legal01: legal01$1,
727
+ legal02: legal02$1,
728
+ bodyCompact01: bodyCompact01$1,
729
+ bodyCompact02: bodyCompact02$1,
730
+ body01: body01$1,
731
+ body02: body02$1,
732
+ headingCompact01: headingCompact01$1,
733
+ headingCompact02: headingCompact02$1,
734
+ heading03: heading03$1,
735
+ heading04: heading04$1,
736
+ heading05: heading05$1,
737
+ heading06: heading06$1,
738
+ heading07: heading07$1,
739
+ fluidHeading03: fluidHeading03$1,
740
+ fluidHeading04: fluidHeading04$1,
741
+ fluidHeading05: fluidHeading05$1,
742
+ fluidHeading06: fluidHeading06$1,
743
+ fluidParagraph01: fluidParagraph01$1,
744
+ fluidQuotation01: fluidQuotation01$1,
745
+ fluidQuotation02: fluidQuotation02$1,
746
+ fluidDisplay01: fluidDisplay01$1,
747
+ fluidDisplay02: fluidDisplay02$1,
748
+ fluidDisplay03: fluidDisplay03$1,
749
+ fluidDisplay04: fluidDisplay04$1
673
750
  });
674
751
 
675
752
  var _excluded = ["breakpoints"];
@@ -780,9 +857,39 @@
780
857
  var display01 = 'display01';
781
858
  var display02 = 'display02';
782
859
  var display03 = 'display03';
783
- var display04 = 'display04';
784
- var unstable_tokens = [caption01, caption02, label01, label02, helperText01, helperText02, bodyShort01, bodyLong01, bodyShort02, bodyLong02, code01, code02, heading01, productiveHeading01, heading02, productiveHeading02, productiveHeading03, productiveHeading04, productiveHeading05, productiveHeading06, productiveHeading07, expressiveHeading01, expressiveHeading02, expressiveHeading03, expressiveHeading04, expressiveHeading05, expressiveHeading06, expressiveParagraph01, quotation01, quotation02, display01, display02, display03, display04];
785
-
860
+ var display04 = 'display04'; // V11 Tokens
861
+
862
+ var legal01 = 'legal01';
863
+ var legal02 = 'legal02';
864
+ var bodyCompact01 = 'bodyCompact01';
865
+ var bodyCompact02 = 'bodyCompact02';
866
+ var body01 = 'body01';
867
+ var body02 = 'body02';
868
+ var headingCompact01 = 'headingCompact01';
869
+ var headingCompact02 = 'headingCompact02';
870
+ var heading03 = 'heading03';
871
+ var heading04 = 'heading04';
872
+ var heading05 = 'heading05';
873
+ var heading06 = 'heading06';
874
+ var heading07 = 'heading07';
875
+ var fluidHeading03 = 'fluidHeading03';
876
+ var fluidHeading04 = 'fluidHeading04';
877
+ var fluidHeading05 = 'fluidHeading05';
878
+ var fluidHeading06 = 'fluidHeading06';
879
+ var fluidParagraph01 = 'fluidParagraph01';
880
+ var fluidQuotation01 = 'fluidQuotation01';
881
+ var fluidQuotation02 = 'fluidQuotation02';
882
+ var fluidDisplay01 = 'fluidDisplay01';
883
+ var fluidDisplay02 = 'fluidDisplay02';
884
+ var fluidDisplay03 = 'fluidDisplay03';
885
+ var fluidDisplay04 = 'fluidDisplay04';
886
+ var unstable_tokens = [caption01, caption02, label01, label02, helperText01, helperText02, bodyShort01, bodyLong01, bodyShort02, bodyLong02, code01, code02, heading01, productiveHeading01, heading02, productiveHeading02, productiveHeading03, productiveHeading04, productiveHeading05, productiveHeading06, productiveHeading07, expressiveHeading01, expressiveHeading02, expressiveHeading03, expressiveHeading04, expressiveHeading05, expressiveHeading06, expressiveParagraph01, quotation01, quotation02, display01, display02, display03, display04, // V11 Tokens
887
+ legal01, legal02, bodyCompact01, bodyCompact02, body01, body02, headingCompact01, headingCompact02, heading03, heading04, heading05, heading06, heading07, fluidHeading03, fluidHeading04, fluidHeading05, fluidHeading06, fluidParagraph01, fluidQuotation01, fluidQuotation02, fluidDisplay01, fluidDisplay02, fluidDisplay03, fluidDisplay04];
888
+
889
+ exports.body01 = body01$1;
890
+ exports.body02 = body02$1;
891
+ exports.bodyCompact01 = bodyCompact01$1;
892
+ exports.bodyCompact02 = bodyCompact02$1;
786
893
  exports.bodyLong01 = bodyLong01$1;
787
894
  exports.bodyLong02 = bodyLong02$1;
788
895
  exports.bodyShort01 = bodyShort01$1;
@@ -803,6 +910,17 @@
803
910
  exports.expressiveHeading06 = expressiveHeading06$1;
804
911
  exports.expressiveParagraph01 = expressiveParagraph01$1;
805
912
  exports.fluid = fluid;
913
+ exports.fluidDisplay01 = fluidDisplay01$1;
914
+ exports.fluidDisplay02 = fluidDisplay02$1;
915
+ exports.fluidDisplay03 = fluidDisplay03$1;
916
+ exports.fluidDisplay04 = fluidDisplay04$1;
917
+ exports.fluidHeading03 = fluidHeading03$1;
918
+ exports.fluidHeading04 = fluidHeading04$1;
919
+ exports.fluidHeading05 = fluidHeading05$1;
920
+ exports.fluidHeading06 = fluidHeading06$1;
921
+ exports.fluidParagraph01 = fluidParagraph01$1;
922
+ exports.fluidQuotation01 = fluidQuotation01$1;
923
+ exports.fluidQuotation02 = fluidQuotation02$1;
806
924
  exports.fontFamilies = fontFamilies;
807
925
  exports.fontFamily = fontFamily;
808
926
  exports.fontWeight = fontWeight;
@@ -810,10 +928,19 @@
810
928
  exports.getTypeSize = getTypeSize;
811
929
  exports.heading01 = heading01$1;
812
930
  exports.heading02 = heading02$1;
931
+ exports.heading03 = heading03$1;
932
+ exports.heading04 = heading04$1;
933
+ exports.heading05 = heading05$1;
934
+ exports.heading06 = heading06$1;
935
+ exports.heading07 = heading07$1;
936
+ exports.headingCompact01 = headingCompact01$1;
937
+ exports.headingCompact02 = headingCompact02$1;
813
938
  exports.helperText01 = helperText01$1;
814
939
  exports.helperText02 = helperText02$1;
815
940
  exports.label01 = label01$1;
816
941
  exports.label02 = label02$1;
942
+ exports.legal01 = legal01$1;
943
+ exports.legal02 = legal02$1;
817
944
  exports.print = print;
818
945
  exports.productiveHeading01 = productiveHeading01$1;
819
946
  exports.productiveHeading02 = productiveHeading02$1;