@carbon/type 11.10.0-rc.0 → 11.11.0-rc.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/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'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.CarbonType = {}));
5
- })(this, (function (exports) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@carbon/layout')) :
3
+ typeof define === 'function' && define.amd ? define(['exports', '@carbon/layout'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.CarbonType = {}, global.CarbonLayout));
5
+ })(this, (function (exports, layout) { 'use strict';
6
6
 
7
7
  /**
8
8
  * Copyright IBM Corp. 2018, 2018
@@ -92,79 +92,6 @@
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
-
168
95
  /**
169
96
  * Copyright IBM Corp. 2018, 2018
170
97
  *
@@ -173,7 +100,7 @@
173
100
  */
174
101
  var reset = {
175
102
  html: {
176
- fontSize: px(baseFontSize)
103
+ fontSize: layout.px(layout.baseFontSize)
177
104
  },
178
105
  body: {
179
106
  fontFamily: fontFamilies.sans,
@@ -307,127 +234,127 @@
307
234
  }
308
235
 
309
236
  var caption01$1 = {
310
- fontSize: rem(scale[0]),
237
+ fontSize: layout.rem(scale[0]),
311
238
  fontWeight: fontWeights.regular,
312
239
  lineHeight: 1.33333,
313
- letterSpacing: px(0.32)
240
+ letterSpacing: layout.px(0.32)
314
241
  };
315
242
  var caption02$1 = {
316
- fontSize: rem(scale[1]),
243
+ fontSize: layout.rem(scale[1]),
317
244
  fontWeight: fontWeights.regular,
318
245
  lineHeight: 1.28572,
319
- letterSpacing: px(0.32)
246
+ letterSpacing: layout.px(0.32)
320
247
  };
321
248
  var label01$1 = {
322
- fontSize: rem(scale[0]),
249
+ fontSize: layout.rem(scale[0]),
323
250
  fontWeight: fontWeights.regular,
324
251
  lineHeight: 1.33333,
325
- letterSpacing: px(0.32)
252
+ letterSpacing: layout.px(0.32)
326
253
  };
327
254
  var label02$1 = {
328
- fontSize: rem(scale[1]),
255
+ fontSize: layout.rem(scale[1]),
329
256
  fontWeight: fontWeights.regular,
330
257
  lineHeight: 1.28572,
331
- letterSpacing: px(0.16)
258
+ letterSpacing: layout.px(0.16)
332
259
  };
333
260
  var helperText01$1 = {
334
- fontSize: rem(scale[0]),
261
+ fontSize: layout.rem(scale[0]),
335
262
  lineHeight: 1.33333,
336
- letterSpacing: px(0.32)
263
+ letterSpacing: layout.px(0.32)
337
264
  };
338
265
  var helperText02$1 = {
339
- fontSize: rem(scale[1]),
266
+ fontSize: layout.rem(scale[1]),
340
267
  lineHeight: 1.28572,
341
- letterSpacing: px(0.16)
268
+ letterSpacing: layout.px(0.16)
342
269
  };
343
270
  var bodyShort01$1 = {
344
- fontSize: rem(scale[1]),
271
+ fontSize: layout.rem(scale[1]),
345
272
  fontWeight: fontWeights.regular,
346
273
  lineHeight: 1.28572,
347
- letterSpacing: px(0.16)
274
+ letterSpacing: layout.px(0.16)
348
275
  };
349
276
  var bodyLong01$1 = {
350
- fontSize: rem(scale[1]),
277
+ fontSize: layout.rem(scale[1]),
351
278
  fontWeight: fontWeights.regular,
352
279
  lineHeight: 1.42857,
353
- letterSpacing: px(0.16)
280
+ letterSpacing: layout.px(0.16)
354
281
  };
355
282
  var bodyShort02$1 = {
356
- fontSize: rem(scale[2]),
283
+ fontSize: layout.rem(scale[2]),
357
284
  fontWeight: fontWeights.regular,
358
285
  lineHeight: 1.375,
359
286
  letterSpacing: 0
360
287
  };
361
288
  var bodyLong02$1 = {
362
- fontSize: rem(scale[2]),
289
+ fontSize: layout.rem(scale[2]),
363
290
  fontWeight: fontWeights.regular,
364
291
  lineHeight: 1.5,
365
292
  letterSpacing: 0
366
293
  };
367
294
  var code01$1 = {
368
295
  fontFamily: fontFamilies.mono,
369
- fontSize: rem(scale[0]),
296
+ fontSize: layout.rem(scale[0]),
370
297
  fontWeight: fontWeights.regular,
371
298
  lineHeight: 1.33333,
372
- letterSpacing: px(0.32)
299
+ letterSpacing: layout.px(0.32)
373
300
  };
374
301
  var code02$1 = {
375
302
  fontFamily: fontFamilies.mono,
376
- fontSize: rem(scale[1]),
303
+ fontSize: layout.rem(scale[1]),
377
304
  fontWeight: fontWeights.regular,
378
305
  lineHeight: 1.42857,
379
- letterSpacing: px(0.32)
306
+ letterSpacing: layout.px(0.32)
380
307
  };
381
308
  var heading01$1 = {
382
- fontSize: rem(scale[1]),
309
+ fontSize: layout.rem(scale[1]),
383
310
  fontWeight: fontWeights.semibold,
384
311
  lineHeight: 1.42857,
385
- letterSpacing: px(0.16)
312
+ letterSpacing: layout.px(0.16)
386
313
  };
387
314
  var productiveHeading01$1 = {
388
- fontSize: rem(scale[1]),
315
+ fontSize: layout.rem(scale[1]),
389
316
  fontWeight: fontWeights.semibold,
390
317
  lineHeight: 1.28572,
391
- letterSpacing: px(0.16)
318
+ letterSpacing: layout.px(0.16)
392
319
  };
393
320
  var heading02$1 = {
394
- fontSize: rem(scale[2]),
321
+ fontSize: layout.rem(scale[2]),
395
322
  fontWeight: fontWeights.semibold,
396
323
  lineHeight: 1.5,
397
324
  letterSpacing: 0
398
325
  };
399
326
  var productiveHeading02$1 = {
400
- fontSize: rem(scale[2]),
327
+ fontSize: layout.rem(scale[2]),
401
328
  fontWeight: fontWeights.semibold,
402
329
  lineHeight: 1.375,
403
330
  letterSpacing: 0
404
331
  };
405
332
  var productiveHeading03$1 = {
406
- fontSize: rem(scale[4]),
333
+ fontSize: layout.rem(scale[4]),
407
334
  fontWeight: fontWeights.regular,
408
335
  lineHeight: 1.4,
409
336
  letterSpacing: 0
410
337
  };
411
338
  var productiveHeading04$1 = {
412
- fontSize: rem(scale[6]),
339
+ fontSize: layout.rem(scale[6]),
413
340
  fontWeight: fontWeights.regular,
414
341
  lineHeight: 1.28572,
415
342
  letterSpacing: 0
416
343
  };
417
344
  var productiveHeading05$1 = {
418
- fontSize: rem(scale[7]),
419
- fontWeight: fontWeights.light,
345
+ fontSize: layout.rem(scale[7]),
346
+ fontWeight: fontWeights.regular,
420
347
  lineHeight: 1.25,
421
348
  letterSpacing: 0
422
349
  };
423
350
  var productiveHeading06$1 = {
424
- fontSize: rem(scale[9]),
351
+ fontSize: layout.rem(scale[9]),
425
352
  fontWeight: fontWeights.light,
426
353
  lineHeight: 1.199,
427
354
  letterSpacing: 0
428
355
  };
429
356
  var productiveHeading07$1 = {
430
- fontSize: rem(scale[11]),
357
+ fontSize: layout.rem(scale[11]),
431
358
  fontWeight: fontWeights.light,
432
359
  lineHeight: 1.199,
433
360
  letterSpacing: 0
@@ -439,138 +366,139 @@
439
366
  lineHeight: 1.5
440
367
  });
441
368
  var expressiveHeading03$1 = {
442
- fontSize: rem(scale[4]),
369
+ fontSize: layout.rem(scale[4]),
443
370
  fontWeight: fontWeights.regular,
444
371
  lineHeight: 1.4,
445
372
  letterSpacing: 0,
446
373
  breakpoints: {
447
374
  xlg: {
448
- fontSize: rem(scale[4]),
449
- lineHeight: 1.25
375
+ fontSize: layout.rem(scale[4]),
376
+ lineHeight: 1.4
450
377
  },
451
378
  max: {
452
- fontSize: rem(scale[5]),
379
+ fontSize: layout.rem(scale[5]),
453
380
  lineHeight: 1.334
454
381
  }
455
382
  }
456
383
  };
457
384
  var expressiveHeading04$1 = {
458
- fontSize: rem(scale[6]),
385
+ fontSize: layout.rem(scale[6]),
459
386
  fontWeight: fontWeights.regular,
460
387
  lineHeight: 1.28572,
461
388
  letterSpacing: 0,
462
389
  breakpoints: {
463
390
  xlg: {
464
- fontSize: rem(scale[7]),
465
- fontWeight: fontWeights.light,
391
+ fontSize: layout.rem(scale[7]),
392
+ fontWeight: fontWeights.regular,
466
393
  lineHeight: 1.25
467
394
  },
468
395
  max: {
469
- fontSize: rem(scale[7]),
470
- fontWeight: fontWeights.light
396
+ fontSize: layout.rem(scale[7]),
397
+ fontWeight: fontWeights.regular
471
398
  }
472
399
  }
473
400
  };
474
401
  var expressiveHeading05$1 = {
475
- fontSize: rem(scale[7]),
476
- fontWeight: fontWeights.light,
402
+ fontSize: layout.rem(scale[7]),
403
+ fontWeight: fontWeights.regular,
477
404
  lineHeight: 1.25,
478
405
  letterSpacing: 0,
479
406
  breakpoints: {
480
407
  md: {
481
- fontSize: rem(scale[8]),
408
+ fontSize: layout.rem(scale[8]),
409
+ fontWeight: fontWeights.light,
482
410
  lineHeight: 1.22,
483
411
  letterSpacing: 0
484
412
  },
485
413
  lg: {
486
- fontSize: rem(scale[9]),
414
+ fontSize: layout.rem(scale[9]),
487
415
  lineHeight: 1.19,
488
416
  letterSpacing: 0
489
417
  },
490
418
  xlg: {
491
- fontSize: rem(scale[10]),
419
+ fontSize: layout.rem(scale[10]),
492
420
  lineHeight: 1.17,
493
421
  letterSpacing: 0
494
422
  },
495
423
  max: {
496
- fontSize: rem(scale[12]),
424
+ fontSize: layout.rem(scale[12]),
497
425
  letterSpacing: 0
498
426
  }
499
427
  }
500
428
  };
501
429
  var expressiveHeading06$1 = {
502
- fontSize: rem(scale[7]),
430
+ fontSize: layout.rem(scale[7]),
503
431
  fontWeight: fontWeights.semibold,
504
432
  lineHeight: 1.25,
505
433
  letterSpacing: 0,
506
434
  breakpoints: {
507
435
  md: {
508
- fontSize: rem(scale[8]),
436
+ fontSize: layout.rem(scale[8]),
509
437
  fontWeight: fontWeights.semibold,
510
438
  lineHeight: 1.22,
511
439
  letterSpacing: 0
512
440
  },
513
441
  lg: {
514
- fontSize: rem(scale[9]),
442
+ fontSize: layout.rem(scale[9]),
515
443
  fontWeight: fontWeights.semibold,
516
444
  lineHeight: 1.19,
517
445
  letterSpacing: 0
518
446
  },
519
447
  xlg: {
520
- fontSize: rem(scale[10]),
448
+ fontSize: layout.rem(scale[10]),
521
449
  fontWeight: fontWeights.semibold,
522
450
  lineHeight: 1.17,
523
451
  letterSpacing: 0
524
452
  },
525
453
  max: {
526
- fontSize: rem(scale[12]),
454
+ fontSize: layout.rem(scale[12]),
527
455
  fontWeight: fontWeights.semibold,
528
456
  letterSpacing: 0
529
457
  }
530
458
  }
531
459
  };
532
460
  var expressiveParagraph01$1 = {
533
- fontSize: rem(scale[5]),
461
+ fontSize: layout.rem(scale[5]),
534
462
  fontWeight: fontWeights.light,
535
463
  lineHeight: 1.334,
536
464
  letterSpacing: 0,
537
465
  breakpoints: {
538
466
  lg: {
539
- fontSize: rem(scale[6]),
467
+ fontSize: layout.rem(scale[6]),
540
468
  lineHeight: 1.28572
541
469
  },
542
470
  max: {
543
- fontSize: rem(scale[7]),
471
+ fontSize: layout.rem(scale[7]),
544
472
  lineHeight: 1.25
545
473
  }
546
474
  }
547
475
  };
548
476
  var quotation01$1 = {
549
477
  fontFamily: fontFamilies.serif,
550
- fontSize: rem(scale[4]),
478
+ fontSize: layout.rem(scale[4]),
551
479
  fontWeight: fontWeights.regular,
552
480
  lineHeight: 1.3,
553
481
  letterSpacing: 0,
554
482
  breakpoints: {
555
483
  md: {
556
- fontSize: rem(scale[4]),
484
+ fontSize: layout.rem(scale[4]),
557
485
  fontWeight: fontWeights.regular,
558
486
  letterSpacing: 0
559
487
  },
560
488
  lg: {
561
- fontSize: rem(scale[5]),
489
+ fontSize: layout.rem(scale[5]),
562
490
  fontWeight: fontWeights.regular,
563
491
  lineHeight: 1.334,
564
492
  letterSpacing: 0
565
493
  },
566
494
  xlg: {
567
- fontSize: rem(scale[6]),
495
+ fontSize: layout.rem(scale[6]),
568
496
  fontWeight: fontWeights.regular,
569
497
  lineHeight: 1.28572,
570
498
  letterSpacing: 0
571
499
  },
572
500
  max: {
573
- fontSize: rem(scale[7]),
501
+ fontSize: layout.rem(scale[7]),
574
502
  fontWeight: fontWeights.regular,
575
503
  lineHeight: 1.25,
576
504
  letterSpacing: 0
@@ -579,122 +507,122 @@
579
507
  };
580
508
  var quotation02$1 = {
581
509
  fontFamily: fontFamilies.serif,
582
- fontSize: rem(scale[7]),
510
+ fontSize: layout.rem(scale[7]),
583
511
  fontWeight: fontWeights.light,
584
512
  lineHeight: 1.25,
585
513
  letterSpacing: 0,
586
514
  breakpoints: {
587
515
  md: {
588
- fontSize: rem(scale[8]),
516
+ fontSize: layout.rem(scale[8]),
589
517
  lineHeight: 1.22
590
518
  },
591
519
  lg: {
592
- fontSize: rem(scale[9]),
520
+ fontSize: layout.rem(scale[9]),
593
521
  lineHeight: 1.19
594
522
  },
595
523
  xlg: {
596
- fontSize: rem(scale[10]),
524
+ fontSize: layout.rem(scale[10]),
597
525
  lineHeight: 1.17
598
526
  },
599
527
  max: {
600
- fontSize: rem(scale[12])
528
+ fontSize: layout.rem(scale[12])
601
529
  }
602
530
  }
603
531
  };
604
532
  var display01$1 = {
605
- fontSize: rem(scale[9]),
533
+ fontSize: layout.rem(scale[9]),
606
534
  fontWeight: fontWeights.light,
607
535
  lineHeight: 1.19,
608
536
  letterSpacing: 0,
609
537
  breakpoints: {
610
538
  md: {
611
- fontSize: rem(scale[9])
539
+ fontSize: layout.rem(scale[9])
612
540
  },
613
541
  lg: {
614
- fontSize: rem(scale[11])
542
+ fontSize: layout.rem(scale[11])
615
543
  },
616
544
  xlg: {
617
- fontSize: rem(scale[12]),
545
+ fontSize: layout.rem(scale[12]),
618
546
  lineHeight: 1.17
619
547
  },
620
548
  max: {
621
- fontSize: rem(scale[14]),
549
+ fontSize: layout.rem(scale[14]),
622
550
  lineHeight: 1.13
623
551
  }
624
552
  }
625
553
  };
626
554
  var display02$1 = {
627
- fontSize: rem(scale[9]),
555
+ fontSize: layout.rem(scale[9]),
628
556
  fontWeight: fontWeights.semibold,
629
557
  lineHeight: 1.19,
630
558
  letterSpacing: 0,
631
559
  breakpoints: {
632
560
  md: {
633
- fontSize: rem(scale[9])
561
+ fontSize: layout.rem(scale[9])
634
562
  },
635
563
  lg: {
636
- fontSize: rem(scale[11])
564
+ fontSize: layout.rem(scale[11])
637
565
  },
638
566
  xlg: {
639
- fontSize: rem(scale[12]),
567
+ fontSize: layout.rem(scale[12]),
640
568
  lineHeight: 1.16
641
569
  },
642
570
  max: {
643
- fontSize: rem(scale[14]),
571
+ fontSize: layout.rem(scale[14]),
644
572
  lineHeight: 1.13
645
573
  }
646
574
  }
647
575
  };
648
576
  var display03$1 = {
649
- fontSize: rem(scale[9]),
577
+ fontSize: layout.rem(scale[9]),
650
578
  fontWeight: fontWeights.light,
651
579
  lineHeight: 1.19,
652
580
  letterSpacing: 0,
653
581
  breakpoints: {
654
582
  md: {
655
- fontSize: rem(scale[11]),
583
+ fontSize: layout.rem(scale[11]),
656
584
  lineHeight: 1.18
657
585
  },
658
586
  lg: {
659
- fontSize: rem(scale[12]),
587
+ fontSize: layout.rem(scale[12]),
660
588
  lineHeight: 1.16,
661
- letterSpacing: px(-0.64)
589
+ letterSpacing: layout.px(-0.64)
662
590
  },
663
591
  xlg: {
664
- fontSize: rem(scale[14]),
592
+ fontSize: layout.rem(scale[14]),
665
593
  lineHeight: 1.13
666
594
  },
667
595
  max: {
668
- fontSize: rem(scale[15]),
596
+ fontSize: layout.rem(scale[15]),
669
597
  lineHeight: 1.11,
670
- letterSpacing: px(-0.96)
598
+ letterSpacing: layout.px(-0.96)
671
599
  }
672
600
  }
673
601
  };
674
602
  var display04$1 = {
675
- fontSize: rem(scale[9]),
603
+ fontSize: layout.rem(scale[9]),
676
604
  fontWeight: fontWeights.light,
677
605
  lineHeight: 1.19,
678
606
  letterSpacing: 0,
679
607
  breakpoints: {
680
608
  md: {
681
- fontSize: rem(scale[13]),
609
+ fontSize: layout.rem(scale[13]),
682
610
  lineHeight: 1.15
683
611
  },
684
612
  lg: {
685
- fontSize: rem(scale[16]),
613
+ fontSize: layout.rem(scale[16]),
686
614
  lineHeight: 1.11,
687
- letterSpacing: px(-0.64)
615
+ letterSpacing: layout.px(-0.64)
688
616
  },
689
617
  xlg: {
690
- fontSize: rem(scale[19]),
618
+ fontSize: layout.rem(scale[19]),
691
619
  lineHeight: 1.07,
692
- letterSpacing: px(-0.64)
620
+ letterSpacing: layout.px(-0.64)
693
621
  },
694
622
  max: {
695
- fontSize: rem(scale[22]),
623
+ fontSize: layout.rem(scale[22]),
696
624
  lineHeight: 1.05,
697
- letterSpacing: px(-0.96)
625
+ letterSpacing: layout.px(-0.96)
698
626
  }
699
627
  }
700
628
  }; // Type changes - V11
@@ -702,16 +630,16 @@
702
630
  // No changes for code-01, code-02, label-01, label-02
703
631
 
704
632
  var legal01$1 = {
705
- fontSize: rem(scale[0]),
633
+ fontSize: layout.rem(scale[0]),
706
634
  fontWeight: fontWeights.regular,
707
635
  lineHeight: 1.33333,
708
- letterSpacing: px(0.32)
636
+ letterSpacing: layout.px(0.32)
709
637
  };
710
638
  var legal02$1 = {
711
- fontSize: rem(scale[1]),
639
+ fontSize: layout.rem(scale[1]),
712
640
  fontWeight: fontWeights.regular,
713
641
  lineHeight: 1.28572,
714
- letterSpacing: px(0.16)
642
+ letterSpacing: layout.px(0.16)
715
643
  }; // Body styles
716
644
 
717
645
  var bodyCompact01$1 = bodyShort01$1;
@@ -803,7 +731,7 @@
803
731
  });
804
732
 
805
733
  var _excluded = ["breakpoints"];
806
- var breakpointNames = Object.keys(breakpoints);
734
+ var breakpointNames = Object.keys(layout.breakpoints);
807
735
 
808
736
  function next(name) {
809
737
  return breakpointNames[breakpointNames.indexOf(name) + 1];
@@ -825,7 +753,7 @@
825
753
 
826
754
  styles.fontSize = fluidTypeSize(styles, 'sm', fluidBreakpoints);
827
755
  fluidBreakpointNames.forEach(function (name) {
828
- styles[breakpoint(name)] = _objectSpread2(_objectSpread2({}, fluidBreakpoints[name]), {}, {
756
+ styles[layout.breakpoint(name)] = _objectSpread2(_objectSpread2({}, fluidBreakpoints[name]), {}, {
829
757
  fontSize: fluidTypeSize(styles, name, fluidBreakpoints)
830
758
  });
831
759
  });
@@ -833,7 +761,7 @@
833
761
  }
834
762
 
835
763
  function fluidTypeSize(defaultStyles, fluidBreakpointName, fluidBreakpoints) {
836
- var breakpoint = breakpoints[fluidBreakpointName];
764
+ var breakpoint = layout.breakpoints[fluidBreakpointName];
837
765
  var fluidBreakpoint = fluidBreakpointName === 'sm' ? defaultStyles : fluidBreakpoints[fluidBreakpointName];
838
766
  var maxFontSize = defaultStyles.fontSize;
839
767
  var minFontSize = defaultStyles.fontSize;
@@ -857,7 +785,7 @@
857
785
  }
858
786
 
859
787
  if (nextFluidBreakpointName) {
860
- var nextFluidBreakpoint = breakpoints[nextFluidBreakpointName];
788
+ var nextFluidBreakpoint = layout.breakpoints[nextFluidBreakpointName];
861
789
  maxFontSize = fluidBreakpoints[nextFluidBreakpointName].fontSize;
862
790
  maxViewportWidth = nextFluidBreakpoint.width;
863
791
  return "calc(".concat(minFontSize, " + ").concat(subtract(maxFontSize, minFontSize), " * ((100vw - ").concat(minViewportWidth, ") / ").concat(subtract(maxViewportWidth, minViewportWidth), "))");