@carbon/elements 10.10.0 → 10.10.2

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@carbon/elements",
3
3
  "description": "A collection of design elements in code for the IBM Design Language",
4
- "version": "10.10.0",
4
+ "version": "10.10.2",
5
5
  "license": "Apache-2.0",
6
6
  "main": "lib/index.js",
7
7
  "module": "es/index.js",
@@ -31,14 +31,14 @@
31
31
  "clean": "rimraf es lib umd && node tasks/clean.js"
32
32
  },
33
33
  "dependencies": {
34
- "@carbon/colors": "^10.8.0",
35
- "@carbon/grid": "^10.9.0",
36
- "@carbon/icons": "^10.9.0",
34
+ "@carbon/colors": "^10.8.1",
35
+ "@carbon/grid": "^10.9.2",
36
+ "@carbon/icons": "^10.9.2",
37
37
  "@carbon/import-once": "^10.3.0",
38
- "@carbon/layout": "^10.8.0",
38
+ "@carbon/layout": "^10.8.2",
39
39
  "@carbon/motion": "^10.6.0",
40
- "@carbon/themes": "^10.10.0",
41
- "@carbon/type": "^10.9.0"
40
+ "@carbon/themes": "^10.10.2",
41
+ "@carbon/type": "^10.9.2"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@carbon/bundler": "^10.6.0",
@@ -47,5 +47,5 @@
47
47
  "replace-in-file": "^3.4.2",
48
48
  "rimraf": "^3.0.0"
49
49
  },
50
- "gitHead": "fc828fed0fc6410f0612d14f4190c65e66e56053"
50
+ "gitHead": "319eca70647f2534a48f65cabf3c569b26b3eb51"
51
51
  }
@@ -87,7 +87,7 @@
87
87
  $gutter: $carbon--grid-gutter
88
88
  ) {
89
89
  .#{$prefix}--col {
90
- @include carbon--make-col-ready();
90
+ @include carbon--make-col-ready($gutter);
91
91
  }
92
92
 
93
93
  @each $breakpoint in map-keys($breakpoints) {
@@ -97,13 +97,13 @@
97
97
  // Allow columns to stretch full width below their breakpoints
98
98
  @for $i from 0 through $columns {
99
99
  .#{$prefix}--col#{$infix}-#{$i} {
100
- @include carbon--make-col-ready();
100
+ @include carbon--make-col-ready($gutter);
101
101
  }
102
102
  }
103
103
 
104
104
  .#{$prefix}--col#{$infix},
105
105
  .#{$prefix}--col#{$infix}--auto {
106
- @include carbon--make-col-ready();
106
+ @include carbon--make-col-ready($gutter);
107
107
  }
108
108
 
109
109
  @include carbon--breakpoint($breakpoint, $breakpoints) {
@@ -87,7 +87,7 @@
87
87
  $gutter: $carbon--grid-gutter
88
88
  ) {
89
89
  .#{$prefix}--col {
90
- @include carbon--make-col-ready();
90
+ @include carbon--make-col-ready($gutter);
91
91
  }
92
92
 
93
93
  @each $breakpoint in map-keys($breakpoints) {
@@ -97,13 +97,13 @@
97
97
  // Allow columns to stretch full width below their breakpoints
98
98
  @for $i from 0 through $columns {
99
99
  .#{$prefix}--col#{$infix}-#{$i} {
100
- @include carbon--make-col-ready();
100
+ @include carbon--make-col-ready($gutter);
101
101
  }
102
102
  }
103
103
 
104
104
  .#{$prefix}--col#{$infix},
105
105
  .#{$prefix}--col#{$infix}--auto {
106
- @include carbon--make-col-ready();
106
+ @include carbon--make-col-ready($gutter);
107
107
  }
108
108
 
109
109
  @include carbon--breakpoint($breakpoint, $breakpoints) {
@@ -165,12 +165,8 @@ $carbon--grid-breakpoints: (
165
165
  } @else if map-has-key($breakpoints, $name) {
166
166
  $breakpoint: map-get($breakpoints, $name);
167
167
  $width: map-get($breakpoint, width);
168
- @if carbon--is-smallest-breakpoint($name, $breakpoints) {
168
+ @media (max-width: $width) {
169
169
  @content;
170
- } @else {
171
- @media (max-width: $width) {
172
- @content;
173
- }
174
170
  }
175
171
  } @else {
176
172
  @error 'Unable to find a breakpoint with name `#{$name}`. Expected one of: (#{map-keys($breakpoints)})';
@@ -165,12 +165,8 @@ $carbon--grid-breakpoints: (
165
165
  } @else if map-has-key($breakpoints, $name) {
166
166
  $breakpoint: map-get($breakpoints, $name);
167
167
  $width: map-get($breakpoint, width);
168
- @if carbon--is-smallest-breakpoint($name, $breakpoints) {
168
+ @media (max-width: $width) {
169
169
  @content;
170
- } @else {
171
- @media (max-width: $width) {
172
- @content;
173
- }
174
170
  }
175
171
  } @else {
176
172
  @error 'Unable to find a breakpoint with name `#{$name}`. Expected one of: (#{map-keys($breakpoints)})';
@@ -556,6 +556,7 @@ $carbon--theme--g90: map-merge(
556
556
  visited-link: #be95ff,
557
557
  disabled-01: #393939,
558
558
  disabled-02: #6f6f6f,
559
+ disabled-03: #a8a8a8,
559
560
  highlight: #0043ce,
560
561
  skeleton-01: #353535,
561
562
  skeleton-02: #525252,
@@ -618,7 +619,6 @@ $carbon--theme--g100: map-merge(
618
619
  visited-link: #be95ff,
619
620
  disabled-01: #262626,
620
621
  disabled-02: #525252,
621
- disabled-03: #6f6f6f,
622
622
  highlight: #002d9c,
623
623
  skeleton-01: #353535,
624
624
  skeleton-02: #393939,
@@ -10,18 +10,18 @@
10
10
  @import 'styles';
11
11
 
12
12
  /// Include a type reset for a given body and mono font family
13
- /// @param {Number} $base-font-size [$carbon--base-font-size] - The base font size for your document
14
13
  /// @param {String} $body-font-family [carbon--font-family('sans')] - The font family used on the `<body>` element
15
14
  /// @param {String} $mono-font-family [carbon--font-family('mono')] - The font family used on elements that require mono fonts, like the `<code>` element
16
15
  /// @access public
17
16
  /// @group @carbon/type
18
17
  @mixin carbon--type-reset(
19
- $base-font-size: $carbon--base-font-size,
18
+ // TODO: remove in next major release. This has been replaced with 100%
19
+ $base-font-size: $carbon--base-font-size,
20
20
  $body-font-family: carbon--font-family('sans'),
21
21
  $mono-font-family: carbon--font-family('mono')
22
22
  ) {
23
23
  html {
24
- font-size: $base-font-size;
24
+ font-size: 100%;
25
25
  }
26
26
 
27
27
  body {
@@ -10,18 +10,18 @@
10
10
  @import 'styles';
11
11
 
12
12
  /// Include a type reset for a given body and mono font family
13
- /// @param {Number} $base-font-size [$carbon--base-font-size] - The base font size for your document
14
13
  /// @param {String} $body-font-family [carbon--font-family('sans')] - The font family used on the `<body>` element
15
14
  /// @param {String} $mono-font-family [carbon--font-family('mono')] - The font family used on elements that require mono fonts, like the `<code>` element
16
15
  /// @access public
17
16
  /// @group @carbon/type
18
17
  @mixin carbon--type-reset(
19
- $base-font-size: $carbon--base-font-size,
18
+ // TODO: remove in next major release. This has been replaced with 100%
19
+ $base-font-size: $carbon--base-font-size,
20
20
  $body-font-family: carbon--font-family('sans'),
21
21
  $mono-font-family: carbon--font-family('mono')
22
22
  ) {
23
23
  html {
24
- font-size: $base-font-size;
24
+ font-size: 100%;
25
25
  }
26
26
 
27
27
  body {
@@ -165,12 +165,8 @@ $carbon--grid-breakpoints: (
165
165
  } @else if map-has-key($breakpoints, $name) {
166
166
  $breakpoint: map-get($breakpoints, $name);
167
167
  $width: map-get($breakpoint, width);
168
- @if carbon--is-smallest-breakpoint($name, $breakpoints) {
168
+ @media (max-width: $width) {
169
169
  @content;
170
- } @else {
171
- @media (max-width: $width) {
172
- @content;
173
- }
174
170
  }
175
171
  } @else {
176
172
  @error 'Unable to find a breakpoint with name `#{$name}`. Expected one of: (#{map-keys($breakpoints)})';