@carbon/elements 10.51.0 → 10.53.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.
Files changed (65) hide show
  1. package/package.json +11 -11
  2. package/scss/grid/_inlined/_mixins.import.scss +2 -2
  3. package/scss/grid/_mixins.import.scss +2 -2
  4. package/scss/grid/modules/_breakpoint.scss +3 -3
  5. package/scss/grid/modules/_config.scss +6 -0
  6. package/scss/grid/modules/_css-grid.scss +46 -125
  7. package/scss/grid/modules/_flex-grid.scss +374 -0
  8. package/scss/grid/modules/_mixins.scss +11 -11
  9. package/scss/grid/vendor/@carbon/import-once/import-once.scss +1 -1
  10. package/scss/grid/vendor/@carbon/layout/_key-height.import.scss +2 -2
  11. package/scss/grid/vendor/@carbon/layout/modules/_utilities.scss +3 -3
  12. package/scss/import-once/import-once.scss +1 -1
  13. package/scss/layout/_key-height.import.scss +2 -2
  14. package/scss/layout/modules/_utilities.scss +3 -3
  15. package/scss/themes/modules/generated/_themes.scss +8 -0
  16. package/scss/themes/modules/generated/_tokens.scss +8 -2
  17. package/scss/type/_inlined/_reset.scss +1 -1
  18. package/scss/type/_inlined/_scale.scss +1 -1
  19. package/scss/type/_inlined/_styles.import.scss +3 -3
  20. package/scss/type/_inlined/_styles.scss +1 -1
  21. package/scss/type/_styles.import.scss +3 -3
  22. package/scss/type/modules/_font-family.scss +13 -11
  23. package/scss/type/modules/_scale.scss +2 -1
  24. package/scss/type/modules/_styles.scss +9 -12
  25. package/scss/type/vendor/@carbon/grid/12.scss +41 -0
  26. package/scss/type/vendor/@carbon/grid/_inlined/12.scss +41 -0
  27. package/scss/type/vendor/@carbon/grid/_inlined/_mixins.import.scss +431 -0
  28. package/scss/type/vendor/@carbon/grid/_inlined/_mixins.scss +415 -0
  29. package/scss/type/vendor/@carbon/grid/_inlined/_prefix.scss +12 -0
  30. package/scss/type/vendor/@carbon/grid/_mixins.import.scss +431 -0
  31. package/scss/type/vendor/@carbon/grid/_mixins.scss +415 -0
  32. package/scss/type/vendor/@carbon/grid/_prefix.scss +12 -0
  33. package/scss/type/vendor/@carbon/grid/grid.scss +10 -0
  34. package/scss/type/vendor/@carbon/grid/index.scss +10 -0
  35. package/scss/{grid/vendor/@carbon/layout → type/vendor/@carbon/grid}/modules/_breakpoint.scss +36 -2
  36. package/scss/type/vendor/@carbon/grid/modules/_config.scss +18 -0
  37. package/scss/type/vendor/@carbon/grid/modules/_css-grid.scss +347 -0
  38. package/scss/type/vendor/@carbon/grid/modules/_flex-grid.scss +374 -0
  39. package/scss/type/vendor/@carbon/grid/modules/_mixins.scss +336 -0
  40. package/scss/type/vendor/@carbon/grid/vendor/@carbon/import-once/import-once.scss +27 -0
  41. package/scss/type/vendor/@carbon/grid/vendor/@carbon/import-once/index.scss +8 -0
  42. package/scss/type/vendor/@carbon/{layout → grid/vendor/@carbon/layout}/_breakpoint.scss +0 -0
  43. package/scss/type/vendor/@carbon/{layout → grid/vendor/@carbon/layout}/_convert.import.scss +0 -0
  44. package/scss/type/vendor/@carbon/{layout → grid/vendor/@carbon/layout}/_convert.scss +0 -0
  45. package/scss/type/vendor/@carbon/{layout → grid/vendor/@carbon/layout}/_key-height.import.scss +2 -2
  46. package/scss/type/vendor/@carbon/{layout → grid/vendor/@carbon/layout}/_key-height.scss +0 -0
  47. package/scss/type/vendor/@carbon/{layout → grid/vendor/@carbon/layout}/_mini-unit.scss +0 -0
  48. package/scss/type/vendor/@carbon/{layout → grid/vendor/@carbon/layout}/_spacing.scss +0 -0
  49. package/scss/type/vendor/@carbon/{layout → grid/vendor/@carbon/layout}/_utilities.scss +0 -0
  50. package/scss/type/vendor/@carbon/{layout → grid/vendor/@carbon/layout}/generated/_container.scss +0 -0
  51. package/scss/type/vendor/@carbon/{layout → grid/vendor/@carbon/layout}/generated/_fluid-spacing.scss +0 -0
  52. package/scss/type/vendor/@carbon/{layout → grid/vendor/@carbon/layout}/generated/_icon-size.scss +0 -0
  53. package/scss/type/vendor/@carbon/{layout → grid/vendor/@carbon/layout}/generated/_layout.scss +0 -0
  54. package/scss/type/vendor/@carbon/{layout → grid/vendor/@carbon/layout}/generated/_size.scss +0 -0
  55. package/scss/type/vendor/@carbon/{layout → grid/vendor/@carbon/layout}/generated/_spacing.scss +0 -0
  56. package/scss/type/vendor/@carbon/{layout → grid/vendor/@carbon/layout}/index.scss +0 -0
  57. package/scss/type/vendor/@carbon/{layout → grid/vendor/@carbon/layout}/layout.scss +0 -0
  58. package/scss/type/vendor/@carbon/{layout → grid/vendor/@carbon/layout}/modules/_convert.scss +0 -0
  59. package/scss/type/vendor/@carbon/{layout → grid/vendor/@carbon/layout}/modules/_spacing.scss +0 -0
  60. package/scss/type/vendor/@carbon/{layout → grid/vendor/@carbon/layout}/modules/_utilities.scss +3 -3
  61. package/scss/type/vendor/@carbon/{layout → grid/vendor/@carbon/layout}/modules/generated/_fluid-spacing.scss +0 -0
  62. package/scss/type/vendor/@carbon/{layout → grid/vendor/@carbon/layout}/modules/generated/_spacing.scss +0 -0
  63. package/scss/type/vendor/@carbon/import-once/import-once.scss +1 -1
  64. package/scss/layout/modules/_breakpoint.scss +0 -232
  65. package/scss/type/vendor/@carbon/layout/modules/_breakpoint.scss +0 -232
@@ -65,11 +65,11 @@
65
65
  // the width of the column. Applies to IE10+ and Firefox. Chrome and Safari
66
66
  // do not appear to require this.
67
67
  @if meta.function-exists('div', 'math') {
68
- max-width: percentage(math.div($span, $columns));
69
- flex: 0 0 percentage(math.div($span, $columns));
68
+ max-width: math.percentage(math.div($span, $columns));
69
+ flex: 0 0 math.percentage(math.div($span, $columns));
70
70
  } @else {
71
- max-width: percentage(($span / $columns));
72
- flex: 0 0 percentage(($span / $columns));
71
+ max-width: math.percentage(($span / $columns));
72
+ flex: 0 0 math.percentage(($span / $columns));
73
73
  }
74
74
  }
75
75
  }
@@ -89,7 +89,7 @@
89
89
  @if $offset == 0 {
90
90
  margin-left: 0;
91
91
  } @else {
92
- margin-left: percentage($offset);
92
+ margin-left: math.percentage($offset);
93
93
  }
94
94
  }
95
95
 
@@ -108,7 +108,7 @@
108
108
 
109
109
  @each $breakpoint in map-keys($breakpoints) {
110
110
  $infix: breakpoint-infix($breakpoint);
111
- $columns: map-get(map-get($breakpoints, $breakpoint), columns);
111
+ $columns: map.get(map.get($breakpoints, $breakpoint), columns);
112
112
 
113
113
  // Allow columns to stretch full width below their breakpoints
114
114
  @for $i from 0 through $columns {
@@ -252,11 +252,11 @@
252
252
  @include -set-largest-breakpoint();
253
253
 
254
254
  @each $name, $value in $breakpoints {
255
- $prev-breakpoint: map-get($breakpoints, breakpoint-prev($name));
256
- $margin: map-get($value, margin);
255
+ $prev-breakpoint: map.get($breakpoints, breakpoint-prev($name));
256
+ $margin: map.get($value, margin);
257
257
 
258
258
  @if $prev-breakpoint {
259
- $prev-margin: map-get($prev-breakpoint, margin);
259
+ $prev-margin: map.get($prev-breakpoint, margin);
260
260
  @if $prev-margin != $margin {
261
261
  @include breakpoint($name) {
262
262
  padding-right: #{($grid-gutter * 0.5) + $margin};
@@ -279,7 +279,7 @@
279
279
  @mixin -set-largest-breakpoint($breakpoints: $grid-breakpoints) {
280
280
  $largest-breakpoint: last-map-item($breakpoints);
281
281
 
282
- max-width: map-get($largest-breakpoint, 'width');
282
+ max-width: map.get($largest-breakpoint, 'width');
283
283
  }
284
284
 
285
285
  /// Add in the max-widths for each breakpoint to the container
@@ -289,7 +289,7 @@
289
289
  @mixin -make-container-max-widths($breakpoints: $grid-breakpoints) {
290
290
  @each $name, $value in $breakpoints {
291
291
  @include breakpoint($name) {
292
- max-width: map-get($value, width);
292
+ max-width: map.get($value, width);
293
293
  }
294
294
  }
295
295
  }
@@ -18,7 +18,7 @@ $imported-modules: () !default;
18
18
  /// @content Declaration blocks to be imported
19
19
  /// @group @carbon/import-once
20
20
  @mixin exports($name, $warn: false) {
21
- @if (index($imported-modules, $name) == null) {
21
+ @if not(index($imported-modules, $name)) {
22
22
  $imported-modules: append($imported-modules, $name) !global;
23
23
  @content;
24
24
  } @else if $warn == true {
@@ -21,8 +21,8 @@
21
21
 
22
22
  @use 'sass:meta';
23
23
  @use "sass:math";
24
- @import 'breakpoint'; /* stylelint-disable-line no-invalid-position-at-import-rule */
25
- @import 'utilities'; /* stylelint-disable-line no-invalid-position-at-import-rule */
24
+ @import 'breakpoint';
25
+ @import 'utilities';
26
26
 
27
27
  /// Get the column width for a given breakpoint
28
28
  /// @param {String} $breakpoint
@@ -14,7 +14,7 @@
14
14
  /// @group @carbon/layout
15
15
  @function map-deep-get($map, $keys...) {
16
16
  @each $key in $keys {
17
- $map: map-get($map, $key);
17
+ $map: map.get($map, $key);
18
18
  }
19
19
  @return $map;
20
20
  }
@@ -26,7 +26,7 @@
26
26
  /// @return {String} Desired value
27
27
  /// @group @carbon/layout
28
28
  @function key-by-index($map, $index) {
29
- $keys: map-keys($map);
29
+ $keys: map.keys($map);
30
30
  @return nth($keys, $index);
31
31
  }
32
32
 
@@ -36,6 +36,6 @@
36
36
  /// @return {*} Desired value
37
37
  /// @group @carbon/layout
38
38
  @function last-map-item($map) {
39
- $total-length: length($map);
39
+ $total-length: list.length($map);
40
40
  @return map-get($map, carbon--key-by-index($map, $total-length));
41
41
  }
@@ -18,7 +18,7 @@ $imported-modules: () !default;
18
18
  /// @content Declaration blocks to be imported
19
19
  /// @group @carbon/import-once
20
20
  @mixin exports($name, $warn: false) {
21
- @if (index($imported-modules, $name) == null) {
21
+ @if not(index($imported-modules, $name)) {
22
22
  $imported-modules: append($imported-modules, $name) !global;
23
23
  @content;
24
24
  } @else if $warn == true {
@@ -21,8 +21,8 @@
21
21
 
22
22
  @use 'sass:meta';
23
23
  @use "sass:math";
24
- @import 'breakpoint'; /* stylelint-disable-line no-invalid-position-at-import-rule */
25
- @import 'utilities'; /* stylelint-disable-line no-invalid-position-at-import-rule */
24
+ @import 'breakpoint';
25
+ @import 'utilities';
26
26
 
27
27
  /// Get the column width for a given breakpoint
28
28
  /// @param {String} $breakpoint
@@ -14,7 +14,7 @@
14
14
  /// @group @carbon/layout
15
15
  @function map-deep-get($map, $keys...) {
16
16
  @each $key in $keys {
17
- $map: map-get($map, $key);
17
+ $map: map.get($map, $key);
18
18
  }
19
19
  @return $map;
20
20
  }
@@ -26,7 +26,7 @@
26
26
  /// @return {String} Desired value
27
27
  /// @group @carbon/layout
28
28
  @function key-by-index($map, $index) {
29
- $keys: map-keys($map);
29
+ $keys: map.keys($map);
30
30
  @return nth($keys, $index);
31
31
  }
32
32
 
@@ -36,6 +36,6 @@
36
36
  /// @return {*} Desired value
37
37
  /// @group @carbon/layout
38
38
  @function last-map-item($map) {
39
- $total-length: length($map);
39
+ $total-length: list.length($map);
40
40
  @return map-get($map, carbon--key-by-index($map, $total-length));
41
41
  }
@@ -77,6 +77,8 @@ $white: (
77
77
  layer-selected-hover-03: #d1d1d1,
78
78
  layer-selected-inverse: #161616,
79
79
  link-inverse: #78a9ff,
80
+ link-inverse-active: #f4f4f4,
81
+ link-inverse-hover: #a6c8ff,
80
82
  link-primary: #0f62fe,
81
83
  link-primary-hover: #0043ce,
82
84
  link-secondary: #0043ce,
@@ -180,6 +182,8 @@ $g10: (
180
182
  layer-selected-hover-03: #d1d1d1,
181
183
  layer-selected-inverse: #161616,
182
184
  link-inverse: #78a9ff,
185
+ link-inverse-active: #f4f4f4,
186
+ link-inverse-hover: #a6c8ff,
183
187
  link-primary: #0f62fe,
184
188
  link-primary-hover: #0043ce,
185
189
  link-secondary: #0043ce,
@@ -283,6 +287,8 @@ $g90: (
283
287
  layer-selected-hover-03: #7a7a7a,
284
288
  layer-selected-inverse: #f4f4f4,
285
289
  link-inverse: #0f62fe,
290
+ link-inverse-active: #161616,
291
+ link-inverse-hover: #0043ce,
286
292
  link-primary: #78a9ff,
287
293
  link-primary-hover: #a6c8ff,
288
294
  link-secondary: #a6c8ff,
@@ -386,6 +392,8 @@ $g100: (
386
392
  layer-selected-hover-03: #5e5e5e,
387
393
  layer-selected-inverse: #f4f4f4,
388
394
  link-inverse: #0f62fe,
395
+ link-inverse-active: #161616,
396
+ link-inverse-hover: #0043ce,
389
397
  link-primary: #78a9ff,
390
398
  link-primary-hover: #a6c8ff,
391
399
  link-secondary: #a6c8ff,
@@ -217,11 +217,17 @@ $link-primary-hover: _get('link-primary-hover') !default;
217
217
  /// The CSS Custom Property for the `link-secondary` token
218
218
  $link-secondary: _get('link-secondary') !default;
219
219
 
220
+ /// The CSS Custom Property for the `link-visited` token
221
+ $link-visited: _get('link-visited') !default;
222
+
220
223
  /// The CSS Custom Property for the `link-inverse` token
221
224
  $link-inverse: _get('link-inverse') !default;
222
225
 
223
- /// The CSS Custom Property for the `link-visited` token
224
- $link-visited: _get('link-visited') !default;
226
+ /// The CSS Custom Property for the `link-inverse-active` token
227
+ $link-inverse-active: _get('link-inverse-active') !default;
228
+
229
+ /// The CSS Custom Property for the `link-inverse-hover` token
230
+ $link-inverse-hover: _get('link-inverse-hover') !default;
225
231
 
226
232
  /// The CSS Custom Property for the `icon-primary` token
227
233
  $icon-primary: _get('icon-primary') !default;
@@ -5,7 +5,7 @@
5
5
  // LICENSE file in the root directory of this source tree.
6
6
  //
7
7
 
8
- @import '../vendor/@carbon/layout/convert';
8
+ @import '../../layout/convert';
9
9
  @import 'font-family';
10
10
  @import 'styles';
11
11
 
@@ -5,7 +5,7 @@
5
5
  // LICENSE file in the root directory of this source tree.
6
6
  //
7
7
 
8
- @import '../vendor/@carbon/layout/convert';
8
+ @import '../../layout/convert';
9
9
 
10
10
  /// Compute the type size for the given type scale step
11
11
  /// @param {Number} $step
@@ -21,9 +21,9 @@
21
21
 
22
22
  @use "sass:meta";
23
23
  @use "sass:math";
24
- @import '../vendor/@carbon/layout/breakpoint'; /* stylelint-disable-line no-invalid-position-at-import-rule */
25
- @import 'font-family'; /* stylelint-disable-line no-invalid-position-at-import-rule */
26
- @import 'scale'; /* stylelint-disable-line no-invalid-position-at-import-rule */
24
+ @import '../../layout/breakpoint';
25
+ @import 'font-family';
26
+ @import 'scale';
27
27
 
28
28
  /// @type Map
29
29
  /// @access public
@@ -21,7 +21,7 @@
21
21
 
22
22
  // stylelint-disable number-max-precision
23
23
 
24
- @import '../vendor/@carbon/layout/breakpoint';
24
+ @import '../../layout/breakpoint';
25
25
  @import 'font-family';
26
26
  @import 'scale';
27
27
 
@@ -21,9 +21,9 @@
21
21
 
22
22
  @use "sass:meta";
23
23
  @use "sass:math";
24
- @import '../layout/breakpoint'; /* stylelint-disable-line no-invalid-position-at-import-rule */
25
- @import 'font-family'; /* stylelint-disable-line no-invalid-position-at-import-rule */
26
- @import 'scale'; /* stylelint-disable-line no-invalid-position-at-import-rule */
24
+ @import '../layout/breakpoint';
25
+ @import 'font-family';
26
+ @import 'scale';
27
27
 
28
28
  /// @type Map
29
29
  /// @access public
@@ -5,6 +5,8 @@
5
5
  // LICENSE file in the root directory of this source tree.
6
6
  //
7
7
 
8
+ @use 'sass:string';
9
+
8
10
  /// Font family fallbacks for: IBM Plex Mono, IBM Plex Sans, IBM Plex Sans
9
11
  /// Condensed, IBM Plex Sans Hebrew, and IBM Plex Serif
10
12
  /// @type Map
@@ -12,47 +14,47 @@
12
14
  /// @group @carbon/type
13
15
  $font-families: (
14
16
  'mono':
15
- unquote(
17
+ string.unquote(
16
18
  "'IBM Plex Mono', system-ui, -apple-system, BlinkMacSystemFont, '.SFNSText-Regular', monospace"
17
19
  ),
18
20
  'sans':
19
- unquote(
21
+ string.unquote(
20
22
  "'IBM Plex Sans', system-ui, -apple-system, BlinkMacSystemFont, '.SFNSText-Regular', sans-serif"
21
23
  ),
22
24
  'sans-condensed':
23
- unquote(
25
+ string.unquote(
24
26
  "'IBM Plex Sans Condensed', system-ui, -apple-system, BlinkMacSystemFont, '.SFNSText-Regular', sans-serif"
25
27
  ),
26
28
  'sans-arabic':
27
- unquote(
29
+ string.unquote(
28
30
  "'IBM Plex Sans Arabic', system-ui, -apple-system, BlinkMacSystemFont, '.SFNSText-Regular', sans-serif"
29
31
  ),
30
32
  'sans-devanagari':
31
- unquote(
33
+ string.unquote(
32
34
  "'IBM Plex Sans Devanagari', system-ui, -apple-system, BlinkMacSystemFont, '.SFNSText-Regular', sans-serif"
33
35
  ),
34
36
  'sans-hebrew':
35
- unquote(
37
+ string.unquote(
36
38
  "'IBM Plex Sans Hebrew', system-ui, -apple-system, BlinkMacSystemFont, '.SFNSText-Regular', sans-serif"
37
39
  ),
38
40
  'sans-jp':
39
- unquote(
41
+ string.unquote(
40
42
  "'IBM Plex Sans JP', system-ui, -apple-system, BlinkMacSystemFont, '.SFNSText-Regular', sans-serif"
41
43
  ),
42
44
  'sans-kr':
43
- unquote(
45
+ string.unquote(
44
46
  "'IBM Plex Sans KR', system-ui, -apple-system, BlinkMacSystemFont, '.SFNSText-Regular', sans-serif"
45
47
  ),
46
48
  'sans-thai-looped':
47
- unquote(
49
+ string.unquote(
48
50
  "'IBM Plex Sans Thai Looped', system-ui, -apple-system, BlinkMacSystemFont, '.SFNSText-Regular', sans-serif"
49
51
  ),
50
52
  'sans-thai':
51
- unquote(
53
+ string.unquote(
52
54
  "'IBM Plex Sans Thai', system-ui, -apple-system, BlinkMacSystemFont, '.SFNSText-Regular', sans-serif"
53
55
  ),
54
56
  'serif':
55
- unquote(
57
+ string.unquote(
56
58
  "'IBM Plex Serif', system-ui, -apple-system, BlinkMacSystemFont, '.SFNSText-Regular', serif"
57
59
  ),
58
60
  ) !default;
@@ -6,6 +6,7 @@
6
6
  //
7
7
 
8
8
  @use '@carbon/layout';
9
+ @use 'sass:list';
9
10
 
10
11
  /// Compute the type size for the given type scale step
11
12
  /// @param {Number} $step
@@ -26,7 +27,7 @@
26
27
  /// @group @carbon/type
27
28
  $type-scale: ();
28
29
  @for $i from 1 through 23 {
29
- $type-scale: append($type-scale, layout.rem(get-type-size($i)));
30
+ $type-scale: list.append($type-scale, layout.rem(get-type-size($i)));
30
31
  }
31
32
 
32
33
  /// Get the value of a specific step in the type scale
@@ -8,7 +8,8 @@
8
8
  // stylelint-disable number-max-precision
9
9
 
10
10
  @use 'sass:map';
11
- @use '@carbon/layout';
11
+ @use 'sass:math';
12
+ @use '../../grid/modules/breakpoint' as grid;
12
13
  @use 'font-family';
13
14
  @use 'scale';
14
15
 
@@ -696,7 +697,7 @@ $tokens: (
696
697
  /// @access public
697
698
  /// @group @carbon/type
698
699
  @function strip-unit($value) {
699
- @return $value / ($value * 0 + 1);
700
+ @return math.div($value, $value * 0 + 1);
700
701
  }
701
702
 
702
703
  /// This helper includes fluid type styles for the given token value. Fluid type
@@ -715,7 +716,7 @@ $tokens: (
715
716
  /// @param {Map} $breakpoints [$grid-breakpoints] - Custom breakpoints to use
716
717
  /// @access public
717
718
  /// @group @carbon/type
718
- @mixin fluid-type($type-styles, $breakpoints: layout.$grid-breakpoints) {
719
+ @mixin fluid-type($type-styles, $breakpoints: grid.$grid-breakpoints) {
719
720
  // Include the initial styles for the given token by default without any
720
721
  // media query guard. This includes `font-size` as a fallback in the case
721
722
  // that a browser does not support `calc()`
@@ -728,7 +729,7 @@ $tokens: (
728
729
  // token and apply the properties and fluid type size for that given
729
730
  // breakpoint
730
731
  @each $name, $values in map.get($type-styles, breakpoints) {
731
- @include layout.breakpoint($name) {
732
+ @include grid.breakpoint($name) {
732
733
  @include properties($values);
733
734
  @include fluid-type-size($type-styles, $name, $breakpoints);
734
735
  }
@@ -744,7 +745,7 @@ $tokens: (
744
745
  @mixin fluid-type-size(
745
746
  $type-styles,
746
747
  $name,
747
- $breakpoints: layout.$grid-breakpoints
748
+ $breakpoints: grid.$grid-breakpoints
748
749
  ) {
749
750
  // Get the information about the breakpoint we're currently working in. Useful
750
751
  // for getting initial width information
@@ -775,7 +776,7 @@ $tokens: (
775
776
 
776
777
  // We can use `breakpoint-next` to see if there is another breakpoint we can
777
778
  // use to update `max-font-size` and `max-vw` with larger values
778
- $next-breakpoint-available: layout.breakpoint-next($name, $breakpoints);
779
+ $next-breakpoint-available: grid.breakpoint-next($name, $breakpoints);
779
780
  $next-fluid-breakpoint-name: null;
780
781
 
781
782
  // We need to figure out what the next available fluid breakpoint is for our
@@ -787,7 +788,7 @@ $tokens: (
787
788
  $next-fluid-breakpoint-name: $next-breakpoint-available;
788
789
  $next-breakpoint-available: null;
789
790
  } @else {
790
- $next-breakpoint-available: layout.breakpoint-next(
791
+ $next-breakpoint-available: grid.breakpoint-next(
791
792
  $next-breakpoint-available,
792
793
  $breakpoints
793
794
  );
@@ -845,11 +846,7 @@ $custom-property-prefix: 'cds' !default;
845
846
  /// @param {Map} $breakpoints [$grid-breakpoints] - Provide a custom breakpoint map to use
846
847
  /// @access public
847
848
  /// @group @carbon/type
848
- @mixin type-style(
849
- $name,
850
- $fluid: false,
851
- $breakpoints: layout.$grid-breakpoints
852
- ) {
849
+ @mixin type-style($name, $fluid: false, $breakpoints: grid.$grid-breakpoints) {
853
850
  @if not map.has-key($tokens, $name) {
854
851
  @error 'Unable to find a token with the name: `#{$name}`';
855
852
  }
@@ -0,0 +1,41 @@
1
+ //
2
+ // Copyright IBM Corp. 2018, 2018
3
+ //
4
+ // This source code is licensed under the Apache-2.0 license found in the
5
+ // LICENSE file in the root directory of this source tree.
6
+ //
7
+
8
+ @import 'mixins';
9
+
10
+ /// Overrides `$carbon--grid-breakpoints` to use a 12 column grid instead of the default 16
11
+ /// @type Map
12
+ /// @access public
13
+ /// @group @carbon/grid
14
+ $carbon--12-column-grid: map-merge(
15
+ $carbon--grid-breakpoints,
16
+ (
17
+ lg:
18
+ map-merge(
19
+ map-get($carbon--grid-breakpoints, lg),
20
+ (
21
+ columns: 12,
22
+ )
23
+ ),
24
+ xlg:
25
+ map-merge(
26
+ map-get($carbon--grid-breakpoints, xlg),
27
+ (
28
+ columns: 12,
29
+ )
30
+ ),
31
+ max:
32
+ map-merge(
33
+ map-get($carbon--grid-breakpoints, max),
34
+ (
35
+ columns: 12,
36
+ )
37
+ ),
38
+ )
39
+ );
40
+
41
+ @include carbon--grid($breakpoints: $carbon--12-column-grid);
@@ -0,0 +1,41 @@
1
+ //
2
+ // Copyright IBM Corp. 2018, 2018
3
+ //
4
+ // This source code is licensed under the Apache-2.0 license found in the
5
+ // LICENSE file in the root directory of this source tree.
6
+ //
7
+
8
+ @import 'mixins';
9
+
10
+ /// Overrides `$carbon--grid-breakpoints` to use a 12 column grid instead of the default 16
11
+ /// @type Map
12
+ /// @access public
13
+ /// @group @carbon/grid
14
+ $carbon--12-column-grid: map-merge(
15
+ $carbon--grid-breakpoints,
16
+ (
17
+ lg:
18
+ map-merge(
19
+ map-get($carbon--grid-breakpoints, lg),
20
+ (
21
+ columns: 12,
22
+ )
23
+ ),
24
+ xlg:
25
+ map-merge(
26
+ map-get($carbon--grid-breakpoints, xlg),
27
+ (
28
+ columns: 12,
29
+ )
30
+ ),
31
+ max:
32
+ map-merge(
33
+ map-get($carbon--grid-breakpoints, max),
34
+ (
35
+ columns: 12,
36
+ )
37
+ ),
38
+ )
39
+ );
40
+
41
+ @include carbon--grid($breakpoints: $carbon--12-column-grid);