@carbon/type 10.33.0 → 10.35.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 +128 -25
- package/lib/index.js +151 -24
- package/package.json +5 -5
- package/scss/_inlined/_scale.scss +1 -1
- package/scss/_inlined/_styles.import.scss +761 -0
- package/scss/_inlined/_styles.scss +214 -36
- package/scss/_scale.scss +1 -1
- package/scss/_styles.import.scss +761 -0
- package/scss/_styles.scss +214 -36
- package/scss/modules/_scale.scss +1 -1
- package/scss/modules/_styles.scss +187 -26
- package/scss/vendor/@carbon/layout/_breakpoint.scss +4 -4
- package/scss/vendor/@carbon/layout/_convert.import.scss +56 -0
- package/scss/vendor/@carbon/layout/_convert.scss +14 -0
- package/scss/vendor/@carbon/layout/_key-height.import.scss +112 -0
- package/scss/vendor/@carbon/layout/_key-height.scss +14 -0
- package/scss/vendor/@carbon/layout/modules/_breakpoint.scss +4 -4
- package/scss/vendor/@carbon/layout/modules/_convert.scss +4 -2
- package/src/__tests__/__snapshots__/styles-test.js.snap +190 -18
- package/src/__tests__/exports-test.js +72 -48
- package/src/styles.js +81 -21
- package/src/tokens.js +50 -0
- package/umd/index.js +151 -24
package/src/styles.js
CHANGED
|
@@ -13,54 +13,54 @@ import { scale } from './scale';
|
|
|
13
13
|
export const caption01 = {
|
|
14
14
|
fontSize: rem(scale[0]),
|
|
15
15
|
fontWeight: fontWeights.regular,
|
|
16
|
-
lineHeight: 1.
|
|
16
|
+
lineHeight: 1.33333,
|
|
17
17
|
letterSpacing: px(0.32),
|
|
18
18
|
};
|
|
19
19
|
|
|
20
20
|
export const caption02 = {
|
|
21
21
|
fontSize: rem(scale[1]),
|
|
22
22
|
fontWeight: fontWeights.regular,
|
|
23
|
-
lineHeight: 1.
|
|
23
|
+
lineHeight: 1.28572,
|
|
24
24
|
letterSpacing: px(0.32),
|
|
25
25
|
};
|
|
26
26
|
|
|
27
27
|
export const label01 = {
|
|
28
28
|
fontSize: rem(scale[0]),
|
|
29
29
|
fontWeight: fontWeights.regular,
|
|
30
|
-
lineHeight: 1.
|
|
30
|
+
lineHeight: 1.33333,
|
|
31
31
|
letterSpacing: px(0.32),
|
|
32
32
|
};
|
|
33
33
|
|
|
34
34
|
export const label02 = {
|
|
35
35
|
fontSize: rem(scale[1]),
|
|
36
36
|
fontWeight: fontWeights.regular,
|
|
37
|
-
lineHeight: 1.
|
|
38
|
-
letterSpacing: px(0.
|
|
37
|
+
lineHeight: 1.28572,
|
|
38
|
+
letterSpacing: px(0.16),
|
|
39
39
|
};
|
|
40
40
|
|
|
41
41
|
export const helperText01 = {
|
|
42
42
|
fontSize: rem(scale[0]),
|
|
43
|
-
lineHeight: 1.
|
|
43
|
+
lineHeight: 1.33333,
|
|
44
44
|
letterSpacing: px(0.32),
|
|
45
45
|
};
|
|
46
46
|
|
|
47
47
|
export const helperText02 = {
|
|
48
48
|
fontSize: rem(scale[1]),
|
|
49
|
-
lineHeight: 1.
|
|
50
|
-
letterSpacing: px(0.
|
|
49
|
+
lineHeight: 1.28572,
|
|
50
|
+
letterSpacing: px(0.16),
|
|
51
51
|
};
|
|
52
52
|
|
|
53
53
|
export const bodyShort01 = {
|
|
54
54
|
fontSize: rem(scale[1]),
|
|
55
55
|
fontWeight: fontWeights.regular,
|
|
56
|
-
lineHeight: 1.
|
|
56
|
+
lineHeight: 1.28572,
|
|
57
57
|
letterSpacing: px(0.16),
|
|
58
58
|
};
|
|
59
59
|
|
|
60
60
|
export const bodyLong01 = {
|
|
61
61
|
fontSize: rem(scale[1]),
|
|
62
62
|
fontWeight: fontWeights.regular,
|
|
63
|
-
lineHeight: 1.
|
|
63
|
+
lineHeight: 1.42857,
|
|
64
64
|
letterSpacing: px(0.16),
|
|
65
65
|
};
|
|
66
66
|
|
|
@@ -82,7 +82,7 @@ export const code01 = {
|
|
|
82
82
|
fontFamily: fontFamilies.mono,
|
|
83
83
|
fontSize: rem(scale[0]),
|
|
84
84
|
fontWeight: fontWeights.regular,
|
|
85
|
-
lineHeight: 1.
|
|
85
|
+
lineHeight: 1.33333,
|
|
86
86
|
letterSpacing: px(0.32),
|
|
87
87
|
};
|
|
88
88
|
|
|
@@ -90,27 +90,37 @@ export const code02 = {
|
|
|
90
90
|
fontFamily: fontFamilies.mono,
|
|
91
91
|
fontSize: rem(scale[1]),
|
|
92
92
|
fontWeight: fontWeights.regular,
|
|
93
|
-
lineHeight: 1.
|
|
93
|
+
lineHeight: 1.42857,
|
|
94
94
|
letterSpacing: px(0.32),
|
|
95
95
|
};
|
|
96
96
|
|
|
97
97
|
export const heading01 = {
|
|
98
98
|
fontSize: rem(scale[1]),
|
|
99
99
|
fontWeight: fontWeights.semibold,
|
|
100
|
-
lineHeight: 1.
|
|
100
|
+
lineHeight: 1.42857,
|
|
101
101
|
letterSpacing: px(0.16),
|
|
102
102
|
};
|
|
103
103
|
|
|
104
|
-
export const productiveHeading01 =
|
|
104
|
+
export const productiveHeading01 = {
|
|
105
|
+
fontSize: rem(scale[1]),
|
|
106
|
+
fontWeight: fontWeights.semibold,
|
|
107
|
+
lineHeight: 1.28572,
|
|
108
|
+
letterSpacing: px(0.16),
|
|
109
|
+
};
|
|
105
110
|
|
|
106
111
|
export const heading02 = {
|
|
107
112
|
fontSize: rem(scale[2]),
|
|
108
113
|
fontWeight: fontWeights.semibold,
|
|
109
|
-
lineHeight: 1.
|
|
114
|
+
lineHeight: 1.5,
|
|
110
115
|
letterSpacing: 0,
|
|
111
116
|
};
|
|
112
117
|
|
|
113
|
-
export const productiveHeading02 =
|
|
118
|
+
export const productiveHeading02 = {
|
|
119
|
+
fontSize: rem(scale[2]),
|
|
120
|
+
fontWeight: fontWeights.semibold,
|
|
121
|
+
lineHeight: 1.375,
|
|
122
|
+
letterSpacing: 0,
|
|
123
|
+
};
|
|
114
124
|
|
|
115
125
|
export const productiveHeading03 = {
|
|
116
126
|
fontSize: rem(scale[4]),
|
|
@@ -122,7 +132,7 @@ export const productiveHeading03 = {
|
|
|
122
132
|
export const productiveHeading04 = {
|
|
123
133
|
fontSize: rem(scale[6]),
|
|
124
134
|
fontWeight: fontWeights.regular,
|
|
125
|
-
lineHeight: 1.
|
|
135
|
+
lineHeight: 1.28572,
|
|
126
136
|
letterSpacing: 0,
|
|
127
137
|
};
|
|
128
138
|
|
|
@@ -143,7 +153,7 @@ export const productiveHeading06 = {
|
|
|
143
153
|
export const productiveHeading07 = {
|
|
144
154
|
fontSize: rem(scale[11]),
|
|
145
155
|
fontWeight: fontWeights.light,
|
|
146
|
-
lineHeight: 1.
|
|
156
|
+
lineHeight: 1.199,
|
|
147
157
|
letterSpacing: 0,
|
|
148
158
|
};
|
|
149
159
|
|
|
@@ -177,7 +187,7 @@ export const expressiveHeading03 = {
|
|
|
177
187
|
export const expressiveHeading04 = {
|
|
178
188
|
fontSize: rem(scale[6]),
|
|
179
189
|
fontWeight: fontWeights.regular,
|
|
180
|
-
lineHeight: 1.
|
|
190
|
+
lineHeight: 1.28572,
|
|
181
191
|
letterSpacing: 0,
|
|
182
192
|
breakpoints: {
|
|
183
193
|
xlg: {
|
|
@@ -262,7 +272,7 @@ export const expressiveParagraph01 = {
|
|
|
262
272
|
breakpoints: {
|
|
263
273
|
lg: {
|
|
264
274
|
fontSize: rem(scale[6]),
|
|
265
|
-
lineHeight: 1.
|
|
275
|
+
lineHeight: 1.28572,
|
|
266
276
|
},
|
|
267
277
|
max: {
|
|
268
278
|
fontSize: rem(scale[7]),
|
|
@@ -272,6 +282,7 @@ export const expressiveParagraph01 = {
|
|
|
272
282
|
};
|
|
273
283
|
|
|
274
284
|
export const quotation01 = {
|
|
285
|
+
fontFamily: fontFamilies.serif,
|
|
275
286
|
fontSize: rem(scale[4]),
|
|
276
287
|
fontWeight: fontWeights.regular,
|
|
277
288
|
lineHeight: 1.3,
|
|
@@ -291,7 +302,7 @@ export const quotation01 = {
|
|
|
291
302
|
xlg: {
|
|
292
303
|
fontSize: rem(scale[6]),
|
|
293
304
|
fontWeight: fontWeights.regular,
|
|
294
|
-
lineHeight: 1.
|
|
305
|
+
lineHeight: 1.28572,
|
|
295
306
|
letterSpacing: 0,
|
|
296
307
|
},
|
|
297
308
|
max: {
|
|
@@ -304,6 +315,7 @@ export const quotation01 = {
|
|
|
304
315
|
};
|
|
305
316
|
|
|
306
317
|
export const quotation02 = {
|
|
318
|
+
fontFamily: fontFamilies.serif,
|
|
307
319
|
fontSize: rem(scale[7]),
|
|
308
320
|
fontWeight: fontWeights.light,
|
|
309
321
|
lineHeight: 1.25,
|
|
@@ -427,3 +439,51 @@ export const display04 = {
|
|
|
427
439
|
},
|
|
428
440
|
},
|
|
429
441
|
};
|
|
442
|
+
|
|
443
|
+
// Type changes - V11
|
|
444
|
+
|
|
445
|
+
// Small styles
|
|
446
|
+
// No changes for code-01, code-02, label-01, label-02
|
|
447
|
+
export const legal01 = {
|
|
448
|
+
fontSize: rem(scale[0]),
|
|
449
|
+
fontWeight: fontWeights.regular,
|
|
450
|
+
lineHeight: 1.33333,
|
|
451
|
+
letterSpacing: px(0.32),
|
|
452
|
+
};
|
|
453
|
+
|
|
454
|
+
export const legal02 = {
|
|
455
|
+
fontSize: rem(scale[1]),
|
|
456
|
+
fontWeight: fontWeights.regular,
|
|
457
|
+
lineHeight: 1.28572,
|
|
458
|
+
letterSpacing: px(0.16),
|
|
459
|
+
};
|
|
460
|
+
|
|
461
|
+
// Body styles
|
|
462
|
+
export const bodyCompact01 = bodyShort01;
|
|
463
|
+
export const bodyCompact02 = bodyShort02;
|
|
464
|
+
export const body01 = bodyLong01;
|
|
465
|
+
export const body02 = bodyLong02;
|
|
466
|
+
|
|
467
|
+
// Fixed heading styles
|
|
468
|
+
export const headingCompact01 = productiveHeading01;
|
|
469
|
+
export const headingCompact02 = productiveHeading02;
|
|
470
|
+
export const heading03 = productiveHeading03;
|
|
471
|
+
export const heading04 = productiveHeading04;
|
|
472
|
+
export const heading05 = productiveHeading05;
|
|
473
|
+
export const heading06 = productiveHeading06;
|
|
474
|
+
export const heading07 = productiveHeading07;
|
|
475
|
+
|
|
476
|
+
// Fluid heading styles
|
|
477
|
+
export const fluidHeading03 = expressiveHeading03;
|
|
478
|
+
export const fluidHeading04 = expressiveHeading04;
|
|
479
|
+
export const fluidHeading05 = expressiveHeading05;
|
|
480
|
+
export const fluidHeading06 = expressiveHeading06;
|
|
481
|
+
|
|
482
|
+
// Additional fluid styles
|
|
483
|
+
export const fluidParagraph01 = expressiveParagraph01;
|
|
484
|
+
export const fluidQuotation01 = quotation01;
|
|
485
|
+
export const fluidQuotation02 = quotation02;
|
|
486
|
+
export const fluidDisplay01 = display01;
|
|
487
|
+
export const fluidDisplay02 = display02;
|
|
488
|
+
export const fluidDisplay03 = display03;
|
|
489
|
+
export const fluidDisplay04 = display04;
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
276
|
-
letterSpacing: layout.px(0.
|
|
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.
|
|
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.
|
|
286
|
-
letterSpacing: layout.px(0.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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
|
-
|
|
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;
|