@carbon/themes 10.29.0-rc.0 → 10.31.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/README.md CHANGED
@@ -39,23 +39,8 @@ corresponding default theme by writing the following in your Sass file:
39
39
  ```
40
40
 
41
41
  By default, the white theme will be initialized. If you would like to include
42
- another theme, you can do so by calling our mixin. For example:
43
-
44
- ```scss
45
- @import '@carbon/themes/scss/themes';
46
-
47
- // Use the gray 10 theme
48
- @include carbon--theme($carbon--theme--g10);
49
-
50
- // Use the gray 90 theme
51
- @include carbon--theme($carbon--theme--g90);
52
-
53
- // Use the gray 100 theme
54
- @include carbon--theme($carbon--theme--g100);
55
- ```
56
-
57
- Alternatively, you can set the global theme variable then call the mixin without
58
- passing in a theme name.
42
+ another theme, you can do so by setting the global theme variable and then
43
+ calling our mixin. For example:
59
44
 
60
45
  ```scss
61
46
  @import '@carbon/themes/scss/themes';
package/es/index.js CHANGED
@@ -2,8 +2,8 @@ import Color from 'color';
2
2
  import { blue60, gray80, white as white$1, gray10, gray20, gray50, gray100, gray70, gray40, gray60, red60, blue70, blue40, green50, yellow, red50, green40, blue50, rgba, blue80, gray30, red80, purple60, blue20, blue10, gray90, red40, blue30, purple40, red30 } from '@carbon/colors';
3
3
  import { caption01, label01, helperText01, bodyShort01, bodyLong01, bodyShort02, bodyLong02, code01, code02, heading01, productiveHeading01, heading02, productiveHeading02, productiveHeading03, productiveHeading04, productiveHeading05, productiveHeading06, productiveHeading07, expressiveHeading01, expressiveHeading02, expressiveHeading03, expressiveHeading04, expressiveHeading05, expressiveHeading06, expressiveParagraph01, quotation01, quotation02, display01, display02, display03, display04, unstable_tokens } from '@carbon/type';
4
4
  export { bodyLong01, bodyLong02, bodyShort01, bodyShort02, caption01, code01, code02, display01, display02, display03, display04, expressiveHeading01, expressiveHeading02, expressiveHeading03, expressiveHeading04, expressiveHeading05, expressiveHeading06, expressiveParagraph01, heading01, heading02, helperText01, label01, productiveHeading01, productiveHeading02, productiveHeading03, productiveHeading04, productiveHeading05, productiveHeading06, productiveHeading07, quotation01, quotation02 } from '@carbon/type';
5
- import { spacing01, spacing02, spacing03, spacing04, spacing05, spacing06, spacing07, spacing08, spacing09, spacing10, spacing11, spacing12, fluidSpacing01, fluidSpacing02, fluidSpacing03, fluidSpacing04, layout01, layout02, layout03, layout04, layout05, layout06, layout07, container01, container02, container03, container04, container05, iconSize01, iconSize02, unstable_tokens as unstable_tokens$1 } from '@carbon/layout';
6
- export { container01, container02, container03, container04, container05, fluidSpacing01, fluidSpacing02, fluidSpacing03, fluidSpacing04, iconSize01, iconSize02, layout01, layout02, layout03, layout04, layout05, layout06, layout07, spacing01, spacing02, spacing03, spacing04, spacing05, spacing06, spacing07, spacing08, spacing09, spacing10, spacing11, spacing12 } from '@carbon/layout';
5
+ import { spacing01, spacing02, spacing03, spacing04, spacing05, spacing06, spacing07, spacing08, spacing09, spacing10, spacing11, spacing12, spacing13, fluidSpacing01, fluidSpacing02, fluidSpacing03, fluidSpacing04, layout01, layout02, layout03, layout04, layout05, layout06, layout07, container01, container02, container03, container04, container05, iconSize01, iconSize02, unstable_tokens as unstable_tokens$1 } from '@carbon/layout';
6
+ export { container01, container02, container03, container04, container05, fluidSpacing01, fluidSpacing02, fluidSpacing03, fluidSpacing04, iconSize01, iconSize02, layout01, layout02, layout03, layout04, layout05, layout06, layout07, spacing01, spacing02, spacing03, spacing04, spacing05, spacing06, spacing07, spacing08, spacing09, spacing10, spacing11, spacing12, spacing13 } from '@carbon/layout';
7
7
 
8
8
  function _defineProperty(obj, key, value) {
9
9
  if (key in obj) {
@@ -269,6 +269,7 @@ var white = /*#__PURE__*/Object.freeze({
269
269
  spacing10: spacing10,
270
270
  spacing11: spacing11,
271
271
  spacing12: spacing12,
272
+ spacing13: spacing13,
272
273
  fluidSpacing01: fluidSpacing01,
273
274
  fluidSpacing02: fluidSpacing02,
274
275
  fluidSpacing03: fluidSpacing03,
@@ -487,6 +488,7 @@ var g10 = /*#__PURE__*/Object.freeze({
487
488
  spacing10: spacing10,
488
489
  spacing11: spacing11,
489
490
  spacing12: spacing12,
491
+ spacing13: spacing13,
490
492
  fluidSpacing01: fluidSpacing01,
491
493
  fluidSpacing02: fluidSpacing02,
492
494
  fluidSpacing03: fluidSpacing03,
@@ -705,6 +707,7 @@ var g100 = /*#__PURE__*/Object.freeze({
705
707
  spacing10: spacing10,
706
708
  spacing11: spacing11,
707
709
  spacing12: spacing12,
710
+ spacing13: spacing13,
708
711
  fluidSpacing01: fluidSpacing01,
709
712
  fluidSpacing02: fluidSpacing02,
710
713
  fluidSpacing03: fluidSpacing03,
@@ -923,6 +926,7 @@ var g90 = /*#__PURE__*/Object.freeze({
923
926
  spacing10: spacing10,
924
927
  spacing11: spacing11,
925
928
  spacing12: spacing12,
929
+ spacing13: spacing13,
926
930
  fluidSpacing01: fluidSpacing01,
927
931
  fluidSpacing02: fluidSpacing02,
928
932
  fluidSpacing03: fluidSpacing03,
@@ -1141,6 +1145,7 @@ var v9 = /*#__PURE__*/Object.freeze({
1141
1145
  spacing10: spacing10,
1142
1146
  spacing11: spacing11,
1143
1147
  spacing12: spacing12,
1148
+ spacing13: spacing13,
1144
1149
  fluidSpacing01: fluidSpacing01,
1145
1150
  fluidSpacing02: fluidSpacing02,
1146
1151
  fluidSpacing03: fluidSpacing03,
package/lib/index.js CHANGED
@@ -275,6 +275,7 @@ var white = /*#__PURE__*/Object.freeze({
275
275
  spacing10: layout.spacing10,
276
276
  spacing11: layout.spacing11,
277
277
  spacing12: layout.spacing12,
278
+ spacing13: layout.spacing13,
278
279
  fluidSpacing01: layout.fluidSpacing01,
279
280
  fluidSpacing02: layout.fluidSpacing02,
280
281
  fluidSpacing03: layout.fluidSpacing03,
@@ -493,6 +494,7 @@ var g10 = /*#__PURE__*/Object.freeze({
493
494
  spacing10: layout.spacing10,
494
495
  spacing11: layout.spacing11,
495
496
  spacing12: layout.spacing12,
497
+ spacing13: layout.spacing13,
496
498
  fluidSpacing01: layout.fluidSpacing01,
497
499
  fluidSpacing02: layout.fluidSpacing02,
498
500
  fluidSpacing03: layout.fluidSpacing03,
@@ -711,6 +713,7 @@ var g100 = /*#__PURE__*/Object.freeze({
711
713
  spacing10: layout.spacing10,
712
714
  spacing11: layout.spacing11,
713
715
  spacing12: layout.spacing12,
716
+ spacing13: layout.spacing13,
714
717
  fluidSpacing01: layout.fluidSpacing01,
715
718
  fluidSpacing02: layout.fluidSpacing02,
716
719
  fluidSpacing03: layout.fluidSpacing03,
@@ -929,6 +932,7 @@ var g90 = /*#__PURE__*/Object.freeze({
929
932
  spacing10: layout.spacing10,
930
933
  spacing11: layout.spacing11,
931
934
  spacing12: layout.spacing12,
935
+ spacing13: layout.spacing13,
932
936
  fluidSpacing01: layout.fluidSpacing01,
933
937
  fluidSpacing02: layout.fluidSpacing02,
934
938
  fluidSpacing03: layout.fluidSpacing03,
@@ -1147,6 +1151,7 @@ var v9 = /*#__PURE__*/Object.freeze({
1147
1151
  spacing10: layout.spacing10,
1148
1152
  spacing11: layout.spacing11,
1149
1153
  spacing12: layout.spacing12,
1154
+ spacing13: layout.spacing13,
1150
1155
  fluidSpacing01: layout.fluidSpacing01,
1151
1156
  fluidSpacing02: layout.fluidSpacing02,
1152
1157
  fluidSpacing03: layout.fluidSpacing03,
@@ -1614,6 +1619,12 @@ Object.defineProperty(exports, 'spacing12', {
1614
1619
  return layout.spacing12;
1615
1620
  }
1616
1621
  });
1622
+ Object.defineProperty(exports, 'spacing13', {
1623
+ enumerable: true,
1624
+ get: function () {
1625
+ return layout.spacing13;
1626
+ }
1627
+ });
1617
1628
  exports.active01 = active01;
1618
1629
  exports.activeDanger = activeDanger;
1619
1630
  exports.activeLightUI = activeLightUI;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@carbon/themes",
3
3
  "description": "Themes for applying color in the Carbon Design System",
4
- "version": "10.29.0-rc.0",
4
+ "version": "10.31.0",
5
5
  "license": "Apache-2.0",
6
6
  "main": "lib/index.js",
7
7
  "module": "es/index.js",
@@ -29,13 +29,13 @@
29
29
  "build": "yarn clean && carbon-cli bundle src/index.js --name CarbonThemes && node tasks/build.js && carbon-cli check \"scss/*.scss\""
30
30
  },
31
31
  "dependencies": {
32
- "@carbon/colors": "^10.21.0",
33
- "@carbon/layout": "^10.20.0-rc.0",
34
- "@carbon/type": "^10.23.0-rc.0",
32
+ "@carbon/colors": "^10.22.0",
33
+ "@carbon/layout": "^10.22.0",
34
+ "@carbon/type": "^10.25.0",
35
35
  "color": "^3.1.2"
36
36
  },
37
37
  "devDependencies": {
38
- "@carbon/cli": "^10.20.0",
38
+ "@carbon/cli": "^10.21.0",
39
39
  "@carbon/cli-reporter": "^10.4.0",
40
40
  "@carbon/scss-generator": "^10.13.0",
41
41
  "@carbon/test-utils": "^10.15.0",
@@ -46,5 +46,5 @@
46
46
  "node-sass": "^4.13.1",
47
47
  "rimraf": "^3.0.0"
48
48
  },
49
- "gitHead": "8b207f14f9f994d661241deb60a6c44ae5e3c77a"
49
+ "gitHead": "8b9c3660aa5b585052b2aa88079a039697ef276f"
50
50
  }
@@ -153,6 +153,7 @@
153
153
  $spacing-10: map-get($theme, 'spacing-10') !global;
154
154
  $spacing-11: map-get($theme, 'spacing-11') !global;
155
155
  $spacing-12: map-get($theme, 'spacing-12') !global;
156
+ $spacing-13: map-get($theme, 'spacing-13') !global;
156
157
  $fluid-spacing-01: map-get($theme, 'fluid-spacing-01') !global;
157
158
  $fluid-spacing-02: map-get($theme, 'fluid-spacing-02') !global;
158
159
  $fluid-spacing-03: map-get($theme, 'fluid-spacing-03') !global;
@@ -511,6 +512,10 @@
511
512
  --#{$custom-property-prefix}-spacing-12,
512
513
  map-get($theme, 'spacing-12')
513
514
  ) !global;
515
+ $spacing-13: var(
516
+ --#{$custom-property-prefix}-spacing-13,
517
+ map-get($theme, 'spacing-13')
518
+ ) !global;
514
519
  $fluid-spacing-01: var(
515
520
  --#{$custom-property-prefix}-fluid-spacing-01,
516
521
  map-get($theme, 'fluid-spacing-01')
@@ -1682,6 +1687,16 @@
1682
1687
  @include custom-property('spacing-12', map-get($theme, 'spacing-12'));
1683
1688
  }
1684
1689
 
1690
+ @if should-emit(
1691
+ $theme,
1692
+ $parent-carbon-theme,
1693
+ 'spacing-13',
1694
+ $emit-difference
1695
+ )
1696
+ {
1697
+ @include custom-property('spacing-13', map-get($theme, 'spacing-13'));
1698
+ }
1699
+
1685
1700
  @if should-emit(
1686
1701
  $theme,
1687
1702
  $parent-carbon-theme,
@@ -478,6 +478,7 @@ $carbon--theme--white: (
478
478
  spacing-10: 4rem,
479
479
  spacing-11: 5rem,
480
480
  spacing-12: 6rem,
481
+ spacing-13: 10rem,
481
482
  fluid-spacing-01: 0,
482
483
  fluid-spacing-02: 2vw,
483
484
  fluid-spacing-03: 5vw,
@@ -1423,6 +1424,12 @@ $carbon--theme: (
1423
1424
  $spacing-12,
1424
1425
  map-get($carbon--theme--white, 'spacing-12')
1425
1426
  ),
1427
+ spacing-13:
1428
+ if(
1429
+ global-variable-exists('spacing-13'),
1430
+ $spacing-13,
1431
+ map-get($carbon--theme--white, 'spacing-13')
1432
+ ),
1426
1433
  fluid-spacing-01:
1427
1434
  if(
1428
1435
  global-variable-exists('fluid-spacing-01'),
@@ -1576,6 +1576,16 @@ $spacing-12: if(
1576
1576
  6rem
1577
1577
  ) !default;
1578
1578
 
1579
+ /// @type {Number}
1580
+ /// @access public
1581
+ /// @group @carbon/themes
1582
+ $spacing-13: if(
1583
+ global-variable-exists('carbon--theme') and
1584
+ map-has-key($carbon--theme, 'spacing-13'),
1585
+ map-get($carbon--theme, 'spacing-13'),
1586
+ 10rem
1587
+ ) !default;
1588
+
1579
1589
  /// @type {Number}
1580
1590
  /// @access public
1581
1591
  /// @group @carbon/themes
package/src/g10.js CHANGED
@@ -184,12 +184,14 @@ export {
184
184
  spacing10,
185
185
  spacing11,
186
186
  spacing12,
187
+ spacing13,
187
188
  // Fluid spacing
188
189
  fluidSpacing01,
189
190
  fluidSpacing02,
190
191
  fluidSpacing03,
191
192
  fluidSpacing04,
192
193
  // Layout
194
+ // Deprecated -- Remove in v11
193
195
  layout01,
194
196
  layout02,
195
197
  layout03,
package/src/g100.js CHANGED
@@ -183,12 +183,14 @@ export {
183
183
  spacing10,
184
184
  spacing11,
185
185
  spacing12,
186
+ spacing13,
186
187
  // Fluid spacing
187
188
  fluidSpacing01,
188
189
  fluidSpacing02,
189
190
  fluidSpacing03,
190
191
  fluidSpacing04,
191
192
  // Layout
193
+ // Deprecated -- Remove in v11
192
194
  layout01,
193
195
  layout02,
194
196
  layout03,
package/src/g90.js CHANGED
@@ -185,12 +185,14 @@ export {
185
185
  spacing10,
186
186
  spacing11,
187
187
  spacing12,
188
+ spacing13,
188
189
  // Fluid spacing
189
190
  fluidSpacing01,
190
191
  fluidSpacing02,
191
192
  fluidSpacing03,
192
193
  fluidSpacing04,
193
194
  // Layout
195
+ // Deprecated -- Remove in v11
194
196
  layout01,
195
197
  layout02,
196
198
  layout03,
package/src/v9.js CHANGED
@@ -148,12 +148,14 @@ export {
148
148
  spacing10,
149
149
  spacing11,
150
150
  spacing12,
151
+ spacing13,
151
152
  // Fluid spacing
152
153
  fluidSpacing01,
153
154
  fluidSpacing02,
154
155
  fluidSpacing03,
155
156
  fluidSpacing04,
156
157
  // Layout
158
+ // Deprecated -- Remove in v11
157
159
  layout01,
158
160
  layout02,
159
161
  layout03,
package/src/white.js CHANGED
@@ -187,12 +187,14 @@ export {
187
187
  spacing10,
188
188
  spacing11,
189
189
  spacing12,
190
+ spacing13,
190
191
  // Fluid spacing
191
192
  fluidSpacing01,
192
193
  fluidSpacing02,
193
194
  fluidSpacing03,
194
195
  fluidSpacing04,
195
196
  // Layout
197
+ // Deprecated -- Remove in v11
196
198
  layout01,
197
199
  layout02,
198
200
  layout03,
package/umd/index.js CHANGED
@@ -272,6 +272,7 @@
272
272
  spacing10: layout.spacing10,
273
273
  spacing11: layout.spacing11,
274
274
  spacing12: layout.spacing12,
275
+ spacing13: layout.spacing13,
275
276
  fluidSpacing01: layout.fluidSpacing01,
276
277
  fluidSpacing02: layout.fluidSpacing02,
277
278
  fluidSpacing03: layout.fluidSpacing03,
@@ -490,6 +491,7 @@
490
491
  spacing10: layout.spacing10,
491
492
  spacing11: layout.spacing11,
492
493
  spacing12: layout.spacing12,
494
+ spacing13: layout.spacing13,
493
495
  fluidSpacing01: layout.fluidSpacing01,
494
496
  fluidSpacing02: layout.fluidSpacing02,
495
497
  fluidSpacing03: layout.fluidSpacing03,
@@ -708,6 +710,7 @@
708
710
  spacing10: layout.spacing10,
709
711
  spacing11: layout.spacing11,
710
712
  spacing12: layout.spacing12,
713
+ spacing13: layout.spacing13,
711
714
  fluidSpacing01: layout.fluidSpacing01,
712
715
  fluidSpacing02: layout.fluidSpacing02,
713
716
  fluidSpacing03: layout.fluidSpacing03,
@@ -926,6 +929,7 @@
926
929
  spacing10: layout.spacing10,
927
930
  spacing11: layout.spacing11,
928
931
  spacing12: layout.spacing12,
932
+ spacing13: layout.spacing13,
929
933
  fluidSpacing01: layout.fluidSpacing01,
930
934
  fluidSpacing02: layout.fluidSpacing02,
931
935
  fluidSpacing03: layout.fluidSpacing03,
@@ -1144,6 +1148,7 @@
1144
1148
  spacing10: layout.spacing10,
1145
1149
  spacing11: layout.spacing11,
1146
1150
  spacing12: layout.spacing12,
1151
+ spacing13: layout.spacing13,
1147
1152
  fluidSpacing01: layout.fluidSpacing01,
1148
1153
  fluidSpacing02: layout.fluidSpacing02,
1149
1154
  fluidSpacing03: layout.fluidSpacing03,
@@ -1611,6 +1616,12 @@
1611
1616
  return layout.spacing12;
1612
1617
  }
1613
1618
  });
1619
+ Object.defineProperty(exports, 'spacing13', {
1620
+ enumerable: true,
1621
+ get: function () {
1622
+ return layout.spacing13;
1623
+ }
1624
+ });
1614
1625
  exports.active01 = active01;
1615
1626
  exports.activeDanger = activeDanger;
1616
1627
  exports.activeLightUI = activeLightUI;