@carbon/type 10.41.0-rc.0 → 10.42.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 +73 -2
- package/lib/index.js +169 -98
- package/package.json +5 -5
- package/scss/_inlined/_reset.scss +1 -1
- package/scss/_inlined/_scale.scss +1 -1
- package/scss/_inlined/_styles.import.scss +3 -3
- package/scss/_inlined/_styles.scss +1 -1
- package/scss/_styles.import.scss +3 -3
- package/scss/modules/_font-family.scss +13 -11
- package/scss/modules/_scale.scss +2 -1
- package/scss/modules/_styles.scss +7 -11
- package/scss/vendor/@carbon/grid/12.scss +41 -0
- package/scss/vendor/@carbon/grid/_inlined/12.scss +41 -0
- package/scss/vendor/@carbon/grid/_inlined/_mixins.import.scss +431 -0
- package/scss/vendor/@carbon/grid/_inlined/_mixins.scss +415 -0
- package/scss/vendor/@carbon/grid/_inlined/_prefix.scss +12 -0
- package/scss/vendor/@carbon/grid/_mixins.import.scss +431 -0
- package/scss/vendor/@carbon/grid/_mixins.scss +415 -0
- package/scss/vendor/@carbon/grid/_prefix.scss +12 -0
- package/scss/vendor/@carbon/grid/grid.scss +10 -0
- package/scss/vendor/@carbon/grid/index.scss +10 -0
- package/scss/vendor/@carbon/{layout → grid}/modules/_breakpoint.scss +36 -2
- package/scss/vendor/@carbon/grid/modules/_config.scss +18 -0
- package/scss/vendor/@carbon/grid/modules/_css-grid.scss +347 -0
- package/scss/vendor/@carbon/grid/modules/_flex-grid.scss +374 -0
- package/scss/vendor/@carbon/grid/modules/_mixins.scss +336 -0
- package/scss/vendor/@carbon/grid/vendor/@carbon/import-once/import-once.scss +27 -0
- package/scss/vendor/@carbon/grid/vendor/@carbon/import-once/index.scss +8 -0
- package/scss/vendor/@carbon/{layout → grid/vendor/@carbon/layout}/_breakpoint.scss +0 -0
- package/scss/vendor/@carbon/{layout → grid/vendor/@carbon/layout}/_convert.import.scss +0 -0
- package/scss/vendor/@carbon/{layout → grid/vendor/@carbon/layout}/_convert.scss +0 -0
- package/scss/vendor/@carbon/{layout → grid/vendor/@carbon/layout}/_key-height.import.scss +2 -2
- package/scss/vendor/@carbon/{layout → grid/vendor/@carbon/layout}/_key-height.scss +0 -0
- package/scss/vendor/@carbon/{layout → grid/vendor/@carbon/layout}/_mini-unit.scss +0 -0
- package/scss/vendor/@carbon/{layout → grid/vendor/@carbon/layout}/_spacing.scss +0 -0
- package/scss/vendor/@carbon/{layout → grid/vendor/@carbon/layout}/_utilities.scss +0 -0
- package/scss/vendor/@carbon/{layout → grid/vendor/@carbon/layout}/generated/_container.scss +0 -0
- package/scss/vendor/@carbon/{layout → grid/vendor/@carbon/layout}/generated/_fluid-spacing.scss +0 -0
- package/scss/vendor/@carbon/{layout → grid/vendor/@carbon/layout}/generated/_icon-size.scss +0 -0
- package/scss/vendor/@carbon/{layout → grid/vendor/@carbon/layout}/generated/_layout.scss +0 -0
- package/scss/vendor/@carbon/{layout → grid/vendor/@carbon/layout}/generated/_size.scss +0 -0
- package/scss/vendor/@carbon/{layout → grid/vendor/@carbon/layout}/generated/_spacing.scss +0 -0
- package/scss/vendor/@carbon/{layout → grid/vendor/@carbon/layout}/index.scss +0 -0
- package/scss/vendor/@carbon/{layout → grid/vendor/@carbon/layout}/layout.scss +0 -0
- package/scss/vendor/@carbon/{layout → grid/vendor/@carbon/layout}/modules/_convert.scss +0 -0
- package/scss/vendor/@carbon/{layout → grid/vendor/@carbon/layout}/modules/_spacing.scss +0 -0
- package/scss/vendor/@carbon/{layout → grid/vendor/@carbon/layout}/modules/_utilities.scss +3 -3
- package/scss/vendor/@carbon/{layout → grid/vendor/@carbon/layout}/modules/generated/_fluid-spacing.scss +0 -0
- package/scss/vendor/@carbon/{layout → grid/vendor/@carbon/layout}/modules/generated/_spacing.scss +0 -0
- package/scss/vendor/@carbon/import-once/import-once.scss +1 -1
- package/umd/index.js +173 -100
package/umd/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports
|
|
3
|
-
typeof define === 'function' && define.amd ? define(['exports'
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.CarbonType = {}
|
|
5
|
-
})(this, (function (exports
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define(['exports'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.CarbonType = {}));
|
|
5
|
+
})(this, (function (exports) { 'use strict';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Copyright IBM Corp. 2018, 2018
|
|
@@ -92,6 +92,79 @@
|
|
|
92
92
|
return result;
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
+
/**
|
|
96
|
+
* Copyright IBM Corp. 2018, 2018
|
|
97
|
+
*
|
|
98
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
99
|
+
* LICENSE file in the root directory of this source tree.
|
|
100
|
+
*/
|
|
101
|
+
/**
|
|
102
|
+
* Copyright IBM Corp. 2018, 2018
|
|
103
|
+
*
|
|
104
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
105
|
+
* LICENSE file in the root directory of this source tree.
|
|
106
|
+
*/
|
|
107
|
+
// Default, Use with em() and rem() functions
|
|
108
|
+
|
|
109
|
+
var baseFontSize = 16;
|
|
110
|
+
/**
|
|
111
|
+
* Convert a given px unit to a rem unit
|
|
112
|
+
* @param {number} px
|
|
113
|
+
* @returns {string}
|
|
114
|
+
*/
|
|
115
|
+
|
|
116
|
+
function rem(px) {
|
|
117
|
+
return "".concat(px / baseFontSize, "rem");
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* Convert a given px unit to its string representation
|
|
121
|
+
* @param {number} value - number of pixels
|
|
122
|
+
* @returns {string}
|
|
123
|
+
*/
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
function px(value) {
|
|
127
|
+
return "".concat(value, "px");
|
|
128
|
+
} // Breakpoint
|
|
129
|
+
// Initial map of our breakpoints and their values
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
var breakpoints = {
|
|
133
|
+
sm: {
|
|
134
|
+
width: rem(320),
|
|
135
|
+
columns: 4,
|
|
136
|
+
margin: '0'
|
|
137
|
+
},
|
|
138
|
+
md: {
|
|
139
|
+
width: rem(672),
|
|
140
|
+
columns: 8,
|
|
141
|
+
margin: rem(16)
|
|
142
|
+
},
|
|
143
|
+
lg: {
|
|
144
|
+
width: rem(1056),
|
|
145
|
+
columns: 16,
|
|
146
|
+
margin: rem(16)
|
|
147
|
+
},
|
|
148
|
+
xlg: {
|
|
149
|
+
width: rem(1312),
|
|
150
|
+
columns: 16,
|
|
151
|
+
margin: rem(16)
|
|
152
|
+
},
|
|
153
|
+
max: {
|
|
154
|
+
width: rem(1584),
|
|
155
|
+
columns: 16,
|
|
156
|
+
margin: rem(24)
|
|
157
|
+
}
|
|
158
|
+
};
|
|
159
|
+
|
|
160
|
+
function breakpointUp(name) {
|
|
161
|
+
return "@media (min-width: ".concat(breakpoints[name].width, ")");
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
function breakpoint() {
|
|
165
|
+
return breakpointUp.apply(void 0, arguments);
|
|
166
|
+
} // Mini-unit
|
|
167
|
+
|
|
95
168
|
/**
|
|
96
169
|
* Copyright IBM Corp. 2018, 2018
|
|
97
170
|
*
|
|
@@ -100,7 +173,7 @@
|
|
|
100
173
|
*/
|
|
101
174
|
var reset = {
|
|
102
175
|
html: {
|
|
103
|
-
fontSize:
|
|
176
|
+
fontSize: px(baseFontSize)
|
|
104
177
|
},
|
|
105
178
|
body: {
|
|
106
179
|
fontFamily: fontFamilies.sans,
|
|
@@ -234,127 +307,127 @@
|
|
|
234
307
|
}
|
|
235
308
|
|
|
236
309
|
var caption01$1 = {
|
|
237
|
-
fontSize:
|
|
310
|
+
fontSize: rem(scale[0]),
|
|
238
311
|
fontWeight: fontWeights.regular,
|
|
239
312
|
lineHeight: 1.33333,
|
|
240
|
-
letterSpacing:
|
|
313
|
+
letterSpacing: px(0.32)
|
|
241
314
|
};
|
|
242
315
|
var caption02$1 = {
|
|
243
|
-
fontSize:
|
|
316
|
+
fontSize: rem(scale[1]),
|
|
244
317
|
fontWeight: fontWeights.regular,
|
|
245
318
|
lineHeight: 1.28572,
|
|
246
|
-
letterSpacing:
|
|
319
|
+
letterSpacing: px(0.32)
|
|
247
320
|
};
|
|
248
321
|
var label01$1 = {
|
|
249
|
-
fontSize:
|
|
322
|
+
fontSize: rem(scale[0]),
|
|
250
323
|
fontWeight: fontWeights.regular,
|
|
251
324
|
lineHeight: 1.33333,
|
|
252
|
-
letterSpacing:
|
|
325
|
+
letterSpacing: px(0.32)
|
|
253
326
|
};
|
|
254
327
|
var label02$1 = {
|
|
255
|
-
fontSize:
|
|
328
|
+
fontSize: rem(scale[1]),
|
|
256
329
|
fontWeight: fontWeights.regular,
|
|
257
330
|
lineHeight: 1.28572,
|
|
258
|
-
letterSpacing:
|
|
331
|
+
letterSpacing: px(0.16)
|
|
259
332
|
};
|
|
260
333
|
var helperText01$1 = {
|
|
261
|
-
fontSize:
|
|
334
|
+
fontSize: rem(scale[0]),
|
|
262
335
|
lineHeight: 1.33333,
|
|
263
|
-
letterSpacing:
|
|
336
|
+
letterSpacing: px(0.32)
|
|
264
337
|
};
|
|
265
338
|
var helperText02$1 = {
|
|
266
|
-
fontSize:
|
|
339
|
+
fontSize: rem(scale[1]),
|
|
267
340
|
lineHeight: 1.28572,
|
|
268
|
-
letterSpacing:
|
|
341
|
+
letterSpacing: px(0.16)
|
|
269
342
|
};
|
|
270
343
|
var bodyShort01$1 = {
|
|
271
|
-
fontSize:
|
|
344
|
+
fontSize: rem(scale[1]),
|
|
272
345
|
fontWeight: fontWeights.regular,
|
|
273
346
|
lineHeight: 1.28572,
|
|
274
|
-
letterSpacing:
|
|
347
|
+
letterSpacing: px(0.16)
|
|
275
348
|
};
|
|
276
349
|
var bodyLong01$1 = {
|
|
277
|
-
fontSize:
|
|
350
|
+
fontSize: rem(scale[1]),
|
|
278
351
|
fontWeight: fontWeights.regular,
|
|
279
352
|
lineHeight: 1.42857,
|
|
280
|
-
letterSpacing:
|
|
353
|
+
letterSpacing: px(0.16)
|
|
281
354
|
};
|
|
282
355
|
var bodyShort02$1 = {
|
|
283
|
-
fontSize:
|
|
356
|
+
fontSize: rem(scale[2]),
|
|
284
357
|
fontWeight: fontWeights.regular,
|
|
285
358
|
lineHeight: 1.375,
|
|
286
359
|
letterSpacing: 0
|
|
287
360
|
};
|
|
288
361
|
var bodyLong02$1 = {
|
|
289
|
-
fontSize:
|
|
362
|
+
fontSize: rem(scale[2]),
|
|
290
363
|
fontWeight: fontWeights.regular,
|
|
291
364
|
lineHeight: 1.5,
|
|
292
365
|
letterSpacing: 0
|
|
293
366
|
};
|
|
294
367
|
var code01$1 = {
|
|
295
368
|
fontFamily: fontFamilies.mono,
|
|
296
|
-
fontSize:
|
|
369
|
+
fontSize: rem(scale[0]),
|
|
297
370
|
fontWeight: fontWeights.regular,
|
|
298
371
|
lineHeight: 1.33333,
|
|
299
|
-
letterSpacing:
|
|
372
|
+
letterSpacing: px(0.32)
|
|
300
373
|
};
|
|
301
374
|
var code02$1 = {
|
|
302
375
|
fontFamily: fontFamilies.mono,
|
|
303
|
-
fontSize:
|
|
376
|
+
fontSize: rem(scale[1]),
|
|
304
377
|
fontWeight: fontWeights.regular,
|
|
305
378
|
lineHeight: 1.42857,
|
|
306
|
-
letterSpacing:
|
|
379
|
+
letterSpacing: px(0.32)
|
|
307
380
|
};
|
|
308
381
|
var heading01$1 = {
|
|
309
|
-
fontSize:
|
|
382
|
+
fontSize: rem(scale[1]),
|
|
310
383
|
fontWeight: fontWeights.semibold,
|
|
311
384
|
lineHeight: 1.42857,
|
|
312
|
-
letterSpacing:
|
|
385
|
+
letterSpacing: px(0.16)
|
|
313
386
|
};
|
|
314
387
|
var productiveHeading01$1 = {
|
|
315
|
-
fontSize:
|
|
388
|
+
fontSize: rem(scale[1]),
|
|
316
389
|
fontWeight: fontWeights.semibold,
|
|
317
390
|
lineHeight: 1.28572,
|
|
318
|
-
letterSpacing:
|
|
391
|
+
letterSpacing: px(0.16)
|
|
319
392
|
};
|
|
320
393
|
var heading02$1 = {
|
|
321
|
-
fontSize:
|
|
394
|
+
fontSize: rem(scale[2]),
|
|
322
395
|
fontWeight: fontWeights.semibold,
|
|
323
396
|
lineHeight: 1.5,
|
|
324
397
|
letterSpacing: 0
|
|
325
398
|
};
|
|
326
399
|
var productiveHeading02$1 = {
|
|
327
|
-
fontSize:
|
|
400
|
+
fontSize: rem(scale[2]),
|
|
328
401
|
fontWeight: fontWeights.semibold,
|
|
329
402
|
lineHeight: 1.375,
|
|
330
403
|
letterSpacing: 0
|
|
331
404
|
};
|
|
332
405
|
var productiveHeading03$1 = {
|
|
333
|
-
fontSize:
|
|
406
|
+
fontSize: rem(scale[4]),
|
|
334
407
|
fontWeight: fontWeights.regular,
|
|
335
408
|
lineHeight: 1.4,
|
|
336
409
|
letterSpacing: 0
|
|
337
410
|
};
|
|
338
411
|
var productiveHeading04$1 = {
|
|
339
|
-
fontSize:
|
|
412
|
+
fontSize: rem(scale[6]),
|
|
340
413
|
fontWeight: fontWeights.regular,
|
|
341
414
|
lineHeight: 1.28572,
|
|
342
415
|
letterSpacing: 0
|
|
343
416
|
};
|
|
344
417
|
var productiveHeading05$1 = {
|
|
345
|
-
fontSize:
|
|
418
|
+
fontSize: rem(scale[7]),
|
|
346
419
|
fontWeight: fontWeights.regular,
|
|
347
420
|
lineHeight: 1.25,
|
|
348
421
|
letterSpacing: 0
|
|
349
422
|
};
|
|
350
423
|
var productiveHeading06$1 = {
|
|
351
|
-
fontSize:
|
|
424
|
+
fontSize: rem(scale[9]),
|
|
352
425
|
fontWeight: fontWeights.light,
|
|
353
426
|
lineHeight: 1.199,
|
|
354
427
|
letterSpacing: 0
|
|
355
428
|
};
|
|
356
429
|
var productiveHeading07$1 = {
|
|
357
|
-
fontSize:
|
|
430
|
+
fontSize: rem(scale[11]),
|
|
358
431
|
fontWeight: fontWeights.light,
|
|
359
432
|
lineHeight: 1.199,
|
|
360
433
|
letterSpacing: 0
|
|
@@ -366,140 +439,140 @@
|
|
|
366
439
|
lineHeight: 1.5
|
|
367
440
|
});
|
|
368
441
|
var expressiveHeading03$1 = {
|
|
369
|
-
fontSize:
|
|
442
|
+
fontSize: rem(scale[4]),
|
|
370
443
|
fontWeight: fontWeights.regular,
|
|
371
444
|
lineHeight: 1.4,
|
|
372
445
|
letterSpacing: 0,
|
|
373
446
|
breakpoints: {
|
|
374
447
|
xlg: {
|
|
375
|
-
fontSize:
|
|
448
|
+
fontSize: rem(scale[4]),
|
|
376
449
|
lineHeight: 1.25
|
|
377
450
|
},
|
|
378
451
|
max: {
|
|
379
|
-
fontSize:
|
|
452
|
+
fontSize: rem(scale[5]),
|
|
380
453
|
lineHeight: 1.334
|
|
381
454
|
}
|
|
382
455
|
}
|
|
383
456
|
};
|
|
384
457
|
var expressiveHeading04$1 = {
|
|
385
|
-
fontSize:
|
|
458
|
+
fontSize: rem(scale[6]),
|
|
386
459
|
fontWeight: fontWeights.regular,
|
|
387
460
|
lineHeight: 1.28572,
|
|
388
461
|
letterSpacing: 0,
|
|
389
462
|
breakpoints: {
|
|
390
463
|
xlg: {
|
|
391
|
-
fontSize:
|
|
464
|
+
fontSize: rem(scale[6]),
|
|
392
465
|
lineHeight: 1.25
|
|
393
466
|
},
|
|
394
467
|
max: {
|
|
395
|
-
fontSize:
|
|
468
|
+
fontSize: rem(scale[7])
|
|
396
469
|
}
|
|
397
470
|
}
|
|
398
471
|
};
|
|
399
472
|
var expressiveHeading05$1 = {
|
|
400
|
-
fontSize:
|
|
473
|
+
fontSize: rem(scale[7]),
|
|
401
474
|
fontWeight: fontWeights.regular,
|
|
402
475
|
lineHeight: 1.25,
|
|
403
476
|
letterSpacing: 0,
|
|
404
477
|
breakpoints: {
|
|
405
478
|
md: {
|
|
406
|
-
fontSize:
|
|
479
|
+
fontSize: rem(scale[8]),
|
|
407
480
|
fontWeight: fontWeights.light,
|
|
408
481
|
lineHeight: 1.22,
|
|
409
482
|
letterSpacing: 0
|
|
410
483
|
},
|
|
411
484
|
lg: {
|
|
412
|
-
fontSize:
|
|
485
|
+
fontSize: rem(scale[9]),
|
|
413
486
|
fontWeight: fontWeights.light,
|
|
414
487
|
lineHeight: 1.19,
|
|
415
488
|
letterSpacing: 0
|
|
416
489
|
},
|
|
417
490
|
xlg: {
|
|
418
|
-
fontSize:
|
|
491
|
+
fontSize: rem(scale[10]),
|
|
419
492
|
fontWeight: fontWeights.light,
|
|
420
493
|
lineHeight: 1.17,
|
|
421
494
|
letterSpacing: 0
|
|
422
495
|
},
|
|
423
496
|
max: {
|
|
424
|
-
fontSize:
|
|
497
|
+
fontSize: rem(scale[12]),
|
|
425
498
|
fontWeight: fontWeights.light,
|
|
426
499
|
letterSpacing: 0
|
|
427
500
|
}
|
|
428
501
|
}
|
|
429
502
|
};
|
|
430
503
|
var expressiveHeading06$1 = {
|
|
431
|
-
fontSize:
|
|
504
|
+
fontSize: rem(scale[7]),
|
|
432
505
|
fontWeight: fontWeights.semibold,
|
|
433
506
|
lineHeight: 1.25,
|
|
434
507
|
letterSpacing: 0,
|
|
435
508
|
breakpoints: {
|
|
436
509
|
md: {
|
|
437
|
-
fontSize:
|
|
510
|
+
fontSize: rem(scale[8]),
|
|
438
511
|
fontWeight: fontWeights.semibold,
|
|
439
512
|
lineHeight: 1.22,
|
|
440
513
|
letterSpacing: 0
|
|
441
514
|
},
|
|
442
515
|
lg: {
|
|
443
|
-
fontSize:
|
|
516
|
+
fontSize: rem(scale[9]),
|
|
444
517
|
fontWeight: fontWeights.semibold,
|
|
445
518
|
lineHeight: 1.19,
|
|
446
519
|
letterSpacing: 0
|
|
447
520
|
},
|
|
448
521
|
xlg: {
|
|
449
|
-
fontSize:
|
|
522
|
+
fontSize: rem(scale[10]),
|
|
450
523
|
fontWeight: fontWeights.semibold,
|
|
451
524
|
lineHeight: 1.17,
|
|
452
525
|
letterSpacing: 0
|
|
453
526
|
},
|
|
454
527
|
max: {
|
|
455
|
-
fontSize:
|
|
528
|
+
fontSize: rem(scale[12]),
|
|
456
529
|
fontWeight: fontWeights.semibold,
|
|
457
530
|
letterSpacing: 0
|
|
458
531
|
}
|
|
459
532
|
}
|
|
460
533
|
};
|
|
461
534
|
var expressiveParagraph01$1 = {
|
|
462
|
-
fontSize:
|
|
535
|
+
fontSize: rem(scale[5]),
|
|
463
536
|
fontWeight: fontWeights.light,
|
|
464
537
|
lineHeight: 1.334,
|
|
465
538
|
letterSpacing: 0,
|
|
466
539
|
breakpoints: {
|
|
467
540
|
lg: {
|
|
468
|
-
fontSize:
|
|
541
|
+
fontSize: rem(scale[6]),
|
|
469
542
|
lineHeight: 1.28572
|
|
470
543
|
},
|
|
471
544
|
max: {
|
|
472
|
-
fontSize:
|
|
545
|
+
fontSize: rem(scale[7]),
|
|
473
546
|
lineHeight: 1.25
|
|
474
547
|
}
|
|
475
548
|
}
|
|
476
549
|
};
|
|
477
550
|
var quotation01$1 = {
|
|
478
551
|
fontFamily: fontFamilies.serif,
|
|
479
|
-
fontSize:
|
|
552
|
+
fontSize: rem(scale[4]),
|
|
480
553
|
fontWeight: fontWeights.regular,
|
|
481
554
|
lineHeight: 1.3,
|
|
482
555
|
letterSpacing: 0,
|
|
483
556
|
breakpoints: {
|
|
484
557
|
md: {
|
|
485
|
-
fontSize:
|
|
558
|
+
fontSize: rem(scale[4]),
|
|
486
559
|
fontWeight: fontWeights.regular,
|
|
487
560
|
letterSpacing: 0
|
|
488
561
|
},
|
|
489
562
|
lg: {
|
|
490
|
-
fontSize:
|
|
563
|
+
fontSize: rem(scale[5]),
|
|
491
564
|
fontWeight: fontWeights.regular,
|
|
492
565
|
lineHeight: 1.334,
|
|
493
566
|
letterSpacing: 0
|
|
494
567
|
},
|
|
495
568
|
xlg: {
|
|
496
|
-
fontSize:
|
|
569
|
+
fontSize: rem(scale[6]),
|
|
497
570
|
fontWeight: fontWeights.regular,
|
|
498
571
|
lineHeight: 1.28572,
|
|
499
572
|
letterSpacing: 0
|
|
500
573
|
},
|
|
501
574
|
max: {
|
|
502
|
-
fontSize:
|
|
575
|
+
fontSize: rem(scale[7]),
|
|
503
576
|
fontWeight: fontWeights.regular,
|
|
504
577
|
lineHeight: 1.25,
|
|
505
578
|
letterSpacing: 0
|
|
@@ -508,122 +581,122 @@
|
|
|
508
581
|
};
|
|
509
582
|
var quotation02$1 = {
|
|
510
583
|
fontFamily: fontFamilies.serif,
|
|
511
|
-
fontSize:
|
|
584
|
+
fontSize: rem(scale[7]),
|
|
512
585
|
fontWeight: fontWeights.light,
|
|
513
586
|
lineHeight: 1.25,
|
|
514
587
|
letterSpacing: 0,
|
|
515
588
|
breakpoints: {
|
|
516
589
|
md: {
|
|
517
|
-
fontSize:
|
|
590
|
+
fontSize: rem(scale[8]),
|
|
518
591
|
lineHeight: 1.22
|
|
519
592
|
},
|
|
520
593
|
lg: {
|
|
521
|
-
fontSize:
|
|
594
|
+
fontSize: rem(scale[9]),
|
|
522
595
|
lineHeight: 1.19
|
|
523
596
|
},
|
|
524
597
|
xlg: {
|
|
525
|
-
fontSize:
|
|
598
|
+
fontSize: rem(scale[10]),
|
|
526
599
|
lineHeight: 1.17
|
|
527
600
|
},
|
|
528
601
|
max: {
|
|
529
|
-
fontSize:
|
|
602
|
+
fontSize: rem(scale[12])
|
|
530
603
|
}
|
|
531
604
|
}
|
|
532
605
|
};
|
|
533
606
|
var display01$1 = {
|
|
534
|
-
fontSize:
|
|
607
|
+
fontSize: rem(scale[9]),
|
|
535
608
|
fontWeight: fontWeights.light,
|
|
536
609
|
lineHeight: 1.19,
|
|
537
610
|
letterSpacing: 0,
|
|
538
611
|
breakpoints: {
|
|
539
612
|
md: {
|
|
540
|
-
fontSize:
|
|
613
|
+
fontSize: rem(scale[9])
|
|
541
614
|
},
|
|
542
615
|
lg: {
|
|
543
|
-
fontSize:
|
|
616
|
+
fontSize: rem(scale[11])
|
|
544
617
|
},
|
|
545
618
|
xlg: {
|
|
546
|
-
fontSize:
|
|
619
|
+
fontSize: rem(scale[12]),
|
|
547
620
|
lineHeight: 1.17
|
|
548
621
|
},
|
|
549
622
|
max: {
|
|
550
|
-
fontSize:
|
|
623
|
+
fontSize: rem(scale[14]),
|
|
551
624
|
lineHeight: 1.13
|
|
552
625
|
}
|
|
553
626
|
}
|
|
554
627
|
};
|
|
555
628
|
var display02$1 = {
|
|
556
|
-
fontSize:
|
|
629
|
+
fontSize: rem(scale[9]),
|
|
557
630
|
fontWeight: fontWeights.semibold,
|
|
558
631
|
lineHeight: 1.19,
|
|
559
632
|
letterSpacing: 0,
|
|
560
633
|
breakpoints: {
|
|
561
634
|
md: {
|
|
562
|
-
fontSize:
|
|
635
|
+
fontSize: rem(scale[9])
|
|
563
636
|
},
|
|
564
637
|
lg: {
|
|
565
|
-
fontSize:
|
|
638
|
+
fontSize: rem(scale[11])
|
|
566
639
|
},
|
|
567
640
|
xlg: {
|
|
568
|
-
fontSize:
|
|
641
|
+
fontSize: rem(scale[12]),
|
|
569
642
|
lineHeight: 1.16
|
|
570
643
|
},
|
|
571
644
|
max: {
|
|
572
|
-
fontSize:
|
|
645
|
+
fontSize: rem(scale[14]),
|
|
573
646
|
lineHeight: 1.13
|
|
574
647
|
}
|
|
575
648
|
}
|
|
576
649
|
};
|
|
577
650
|
var display03$1 = {
|
|
578
|
-
fontSize:
|
|
651
|
+
fontSize: rem(scale[9]),
|
|
579
652
|
fontWeight: fontWeights.light,
|
|
580
653
|
lineHeight: 1.19,
|
|
581
654
|
letterSpacing: 0,
|
|
582
655
|
breakpoints: {
|
|
583
656
|
md: {
|
|
584
|
-
fontSize:
|
|
657
|
+
fontSize: rem(scale[13]),
|
|
585
658
|
lineHeight: 1.15
|
|
586
659
|
},
|
|
587
660
|
lg: {
|
|
588
|
-
fontSize:
|
|
661
|
+
fontSize: rem(scale[16]),
|
|
589
662
|
lineHeight: 1.11,
|
|
590
|
-
letterSpacing:
|
|
663
|
+
letterSpacing: px(-0.64)
|
|
591
664
|
},
|
|
592
665
|
xlg: {
|
|
593
|
-
fontSize:
|
|
666
|
+
fontSize: rem(scale[19]),
|
|
594
667
|
lineHeight: 1.07
|
|
595
668
|
},
|
|
596
669
|
max: {
|
|
597
|
-
fontSize:
|
|
670
|
+
fontSize: rem(scale[22]),
|
|
598
671
|
lineHeight: 1.05,
|
|
599
|
-
letterSpacing:
|
|
672
|
+
letterSpacing: px(-0.96)
|
|
600
673
|
}
|
|
601
674
|
}
|
|
602
675
|
};
|
|
603
676
|
var display04$1 = {
|
|
604
|
-
fontSize:
|
|
677
|
+
fontSize: rem(scale[9]),
|
|
605
678
|
fontWeight: fontWeights.semibold,
|
|
606
679
|
lineHeight: 1.19,
|
|
607
680
|
letterSpacing: 0,
|
|
608
681
|
breakpoints: {
|
|
609
682
|
md: {
|
|
610
|
-
fontSize:
|
|
683
|
+
fontSize: rem(scale[13]),
|
|
611
684
|
lineHeight: 1.15
|
|
612
685
|
},
|
|
613
686
|
lg: {
|
|
614
|
-
fontSize:
|
|
687
|
+
fontSize: rem(scale[16]),
|
|
615
688
|
lineHeight: 1.11,
|
|
616
|
-
letterSpacing:
|
|
689
|
+
letterSpacing: px(-0.64)
|
|
617
690
|
},
|
|
618
691
|
xlg: {
|
|
619
|
-
fontSize:
|
|
692
|
+
fontSize: rem(scale[19]),
|
|
620
693
|
lineHeight: 1.07,
|
|
621
|
-
letterSpacing:
|
|
694
|
+
letterSpacing: px(-0.64)
|
|
622
695
|
},
|
|
623
696
|
max: {
|
|
624
|
-
fontSize:
|
|
697
|
+
fontSize: rem(scale[22]),
|
|
625
698
|
lineHeight: 1.05,
|
|
626
|
-
letterSpacing:
|
|
699
|
+
letterSpacing: px(-0.96)
|
|
627
700
|
}
|
|
628
701
|
}
|
|
629
702
|
}; // Type changes - V11
|
|
@@ -631,16 +704,16 @@
|
|
|
631
704
|
// No changes for code-01, code-02, label-01, label-02
|
|
632
705
|
|
|
633
706
|
var legal01$1 = {
|
|
634
|
-
fontSize:
|
|
707
|
+
fontSize: rem(scale[0]),
|
|
635
708
|
fontWeight: fontWeights.regular,
|
|
636
709
|
lineHeight: 1.33333,
|
|
637
|
-
letterSpacing:
|
|
710
|
+
letterSpacing: px(0.32)
|
|
638
711
|
};
|
|
639
712
|
var legal02$1 = {
|
|
640
|
-
fontSize:
|
|
713
|
+
fontSize: rem(scale[1]),
|
|
641
714
|
fontWeight: fontWeights.regular,
|
|
642
715
|
lineHeight: 1.28572,
|
|
643
|
-
letterSpacing:
|
|
716
|
+
letterSpacing: px(0.16)
|
|
644
717
|
}; // Body styles
|
|
645
718
|
|
|
646
719
|
var bodyCompact01$1 = bodyShort01$1;
|
|
@@ -732,7 +805,7 @@
|
|
|
732
805
|
});
|
|
733
806
|
|
|
734
807
|
var _excluded = ["breakpoints"];
|
|
735
|
-
var breakpointNames = Object.keys(
|
|
808
|
+
var breakpointNames = Object.keys(breakpoints);
|
|
736
809
|
|
|
737
810
|
function next(name) {
|
|
738
811
|
return breakpointNames[breakpointNames.indexOf(name) + 1];
|
|
@@ -754,7 +827,7 @@
|
|
|
754
827
|
|
|
755
828
|
styles.fontSize = fluidTypeSize(styles, 'sm', fluidBreakpoints);
|
|
756
829
|
fluidBreakpointNames.forEach(function (name) {
|
|
757
|
-
styles[
|
|
830
|
+
styles[breakpoint(name)] = _objectSpread2(_objectSpread2({}, fluidBreakpoints[name]), {}, {
|
|
758
831
|
fontSize: fluidTypeSize(styles, name, fluidBreakpoints)
|
|
759
832
|
});
|
|
760
833
|
});
|
|
@@ -762,7 +835,7 @@
|
|
|
762
835
|
}
|
|
763
836
|
|
|
764
837
|
function fluidTypeSize(defaultStyles, fluidBreakpointName, fluidBreakpoints) {
|
|
765
|
-
var breakpoint =
|
|
838
|
+
var breakpoint = breakpoints[fluidBreakpointName];
|
|
766
839
|
var fluidBreakpoint = fluidBreakpointName === 'sm' ? defaultStyles : fluidBreakpoints[fluidBreakpointName];
|
|
767
840
|
var maxFontSize = defaultStyles.fontSize;
|
|
768
841
|
var minFontSize = defaultStyles.fontSize;
|
|
@@ -786,7 +859,7 @@
|
|
|
786
859
|
}
|
|
787
860
|
|
|
788
861
|
if (nextFluidBreakpointName) {
|
|
789
|
-
var nextFluidBreakpoint =
|
|
862
|
+
var nextFluidBreakpoint = breakpoints[nextFluidBreakpointName];
|
|
790
863
|
maxFontSize = fluidBreakpoints[nextFluidBreakpointName].fontSize;
|
|
791
864
|
maxViewportWidth = nextFluidBreakpoint.width;
|
|
792
865
|
return "calc(".concat(minFontSize, " + ").concat(subtract(maxFontSize, minFontSize), " * ((100vw - ").concat(minViewportWidth, ") / ").concat(subtract(maxViewportWidth, minViewportWidth), "))");
|