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