@carbon/type 10.28.0 → 10.30.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@carbon/type",
3
3
  "description": "Typography for digital and software products using the Carbon Design System",
4
- "version": "10.28.0",
4
+ "version": "10.30.0",
5
5
  "license": "Apache-2.0",
6
6
  "main": "lib/index.js",
7
7
  "module": "es/index.js",
@@ -37,11 +37,11 @@
37
37
  },
38
38
  "dependencies": {
39
39
  "@carbon/import-once": "^10.6.0",
40
- "@carbon/layout": "^10.24.0"
40
+ "@carbon/layout": "^10.26.0"
41
41
  },
42
42
  "devDependencies": {
43
- "@carbon/cli": "^10.23.0",
44
- "@carbon/test-utils": "^10.15.0",
43
+ "@carbon/cli": "^10.25.0",
44
+ "@carbon/test-utils": "^10.16.0",
45
45
  "change-case": "^4.1.1",
46
46
  "rimraf": "^3.0.0"
47
47
  },
@@ -51,5 +51,5 @@
51
51
  "sassDir": "scss",
52
52
  "needs": "^1.3.0"
53
53
  },
54
- "gitHead": "b00113e8d4cb273a80d9c71f12b741ae6ac360a6"
54
+ "gitHead": "74da5c7df7a93263ed79ed9b3dd6dc2b52d80024"
55
55
  }
@@ -729,13 +729,14 @@ $custom-property-prefix: 'cds' !default;
729
729
 
730
730
  // If $fluid is set to true and the token has breakpoints defined for fluid
731
731
  // styles, delegate to the fluid-type helper for the given token
732
+ // Otherwise remove token breakpoints
732
733
  @if $fluid == true and map-has-key($token, 'breakpoints') {
733
734
  @include fluid-type($token, $breakpoints);
734
735
  } @else {
735
736
  @if global-variable-exists('feature-flags') and
736
737
  map-get($feature-flags, 'enable-css-custom-properties')
737
738
  {
738
- @include custom-properties($name, $token);
739
+ @include custom-properties($name, map-remove($token, 'breakpoints'));
739
740
  } @else {
740
741
  // Otherwise, we just include all the property declarations directly on the
741
742
  // selector
package/scss/_styles.scss CHANGED
@@ -729,13 +729,14 @@ $custom-property-prefix: 'cds' !default;
729
729
 
730
730
  // If $fluid is set to true and the token has breakpoints defined for fluid
731
731
  // styles, delegate to the fluid-type helper for the given token
732
+ // Otherwise remove token breakpoints
732
733
  @if $fluid == true and map-has-key($token, 'breakpoints') {
733
734
  @include fluid-type($token, $breakpoints);
734
735
  } @else {
735
736
  @if global-variable-exists('feature-flags') and
736
737
  map-get($feature-flags, 'enable-css-custom-properties')
737
738
  {
738
- @include custom-properties($name, $token);
739
+ @include custom-properties($name, map-remove($token, 'breakpoints'));
739
740
  } @else {
740
741
  // Otherwise, we just include all the property declarations directly on the
741
742
  // selector
@@ -0,0 +1,17 @@
1
+ // Code generated by @carbon/layout. DO NOT EDIT.
2
+ //
3
+ // Copyright IBM Corp. 2018, 2019
4
+ //
5
+ // This source code is licensed under the Apache-2.0 license found in the
6
+ // LICENSE file in the root directory of this source tree.
7
+ //
8
+
9
+ /// @type Number
10
+ /// @access public
11
+ /// @group @carbon/layout
12
+ $size-xs: 1.5rem;
13
+ $size-sm: 2rem;
14
+ $size-md: 2.5rem;
15
+ $size-lg: 3rem;
16
+ $size-xl: 4rem;
17
+ $size-2xl: 5rem;