@carbon/charts 0.41.48 → 0.41.52

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 (272) hide show
  1. package/CHANGELOG.md +20 -11
  2. package/build/demo/data/CHART_TYPES.d.ts +93 -0
  3. package/build/demo/data/bar.d.ts +17 -23
  4. package/build/demo/data/combo.d.ts +3 -0
  5. package/build/demo/data/index.d.ts +16 -92
  6. package/build/demo/data/line.d.ts +3 -77
  7. package/build/demo/data/scatter.d.ts +0 -18
  8. package/build/demo/data/wordcloud.d.ts +14 -0
  9. package/build/src/charts/index.d.ts +1 -0
  10. package/build/src/charts/wordcloud.d.ts +6 -0
  11. package/build/src/components/graphs/wordcloud.d.ts +10 -0
  12. package/build/src/components/index.d.ts +1 -0
  13. package/build/src/configuration.d.ts +2 -1
  14. package/build/src/interfaces/charts.d.ts +23 -0
  15. package/build/src/interfaces/events.d.ts +9 -0
  16. package/bundle.js +1 -1
  17. package/charts/index.d.ts +1 -0
  18. package/charts/index.js +1 -0
  19. package/charts/index.js.map +1 -1
  20. package/charts/wordcloud.d.ts +6 -0
  21. package/charts/wordcloud.js +46 -0
  22. package/charts/wordcloud.js.map +1 -0
  23. package/components/essentials/tooltip-axis.js +1 -1
  24. package/components/essentials/tooltip-axis.js.map +1 -1
  25. package/components/essentials/tooltip.js +5 -2
  26. package/components/essentials/tooltip.js.map +1 -1
  27. package/components/graphs/boxplot.js +2 -2
  28. package/components/graphs/boxplot.js.map +1 -1
  29. package/components/graphs/wordcloud.d.ts +10 -0
  30. package/components/graphs/wordcloud.js +229 -0
  31. package/components/graphs/wordcloud.js.map +1 -0
  32. package/components/index.d.ts +1 -0
  33. package/components/index.js +1 -0
  34. package/components/index.js.map +1 -1
  35. package/configuration.d.ts +2 -1
  36. package/configuration.js +22 -0
  37. package/configuration.js.map +1 -1
  38. package/demo/data/CHART_TYPES.d.ts +93 -0
  39. package/demo/data/CHART_TYPES.js +93 -0
  40. package/demo/data/CHART_TYPES.js.map +1 -0
  41. package/demo/data/area.js +1 -1
  42. package/demo/data/area.js.map +1 -1
  43. package/demo/data/bar.d.ts +17 -23
  44. package/demo/data/bar.js +60 -68
  45. package/demo/data/bar.js.map +1 -1
  46. package/demo/data/boxplot.js +2 -2
  47. package/demo/data/boxplot.js.map +1 -1
  48. package/demo/data/bundle.js +1 -1
  49. package/demo/data/combo.d.ts +3 -0
  50. package/demo/data/combo.js +3 -0
  51. package/demo/data/combo.js.map +1 -1
  52. package/demo/data/index.d.ts +16 -92
  53. package/demo/data/index.js +404 -512
  54. package/demo/data/index.js.map +1 -1
  55. package/demo/data/line.d.ts +3 -77
  56. package/demo/data/line.js +9 -73
  57. package/demo/data/line.js.map +1 -1
  58. package/demo/data/scatter.d.ts +0 -18
  59. package/demo/data/scatter.js +0 -51
  60. package/demo/data/scatter.js.map +1 -1
  61. package/demo/data/wordcloud.d.ts +14 -0
  62. package/demo/data/wordcloud.js +105 -0
  63. package/demo/data/wordcloud.js.map +1 -0
  64. package/demo/styles.css +2827 -28
  65. package/demo/styles.css.map +1 -1
  66. package/demo/styles.min.css +1 -1
  67. package/demo/styles.min.css.map +1 -1
  68. package/demo/tsconfig.tsbuildinfo +47 -312
  69. package/interfaces/charts.d.ts +23 -0
  70. package/interfaces/charts.js.map +1 -1
  71. package/interfaces/events.d.ts +9 -0
  72. package/interfaces/events.js +10 -0
  73. package/interfaces/events.js.map +1 -1
  74. package/model.js +1 -1
  75. package/model.js.map +1 -1
  76. package/package.json +8 -7
  77. package/styles/_type.scss +4 -2
  78. package/styles/graphs/_wordcloud.scss +7 -0
  79. package/styles/graphs/index.scss +1 -0
  80. package/styles/vendor/@carbon/colors/README.md +4 -3
  81. package/styles/vendor/@carbon/colors/es/index.js +13 -12
  82. package/styles/vendor/@carbon/colors/lib/index.js +98 -93
  83. package/styles/vendor/@carbon/colors/package.json +14 -10
  84. package/styles/vendor/@carbon/colors/scss/colors.scss +1 -1
  85. package/styles/vendor/@carbon/colors/scss/index.scss +1 -1
  86. package/styles/vendor/@carbon/colors/scss/mixins.scss +33 -13
  87. package/styles/vendor/@carbon/colors/umd/index.js +99 -94
  88. package/styles/vendor/@carbon/elements/README.md +0 -6
  89. package/styles/vendor/@carbon/elements/es/index.js +4 -11
  90. package/styles/vendor/@carbon/elements/lib/index.js +959 -13
  91. package/styles/vendor/@carbon/elements/package.json +17 -13
  92. package/styles/vendor/@carbon/elements/scss/colors/colors.scss +1 -1
  93. package/styles/vendor/@carbon/elements/scss/colors/index.scss +1 -1
  94. package/styles/vendor/@carbon/elements/scss/colors/mixins.scss +33 -13
  95. package/styles/vendor/@carbon/elements/scss/grid/_inlined/_mixins.scss +82 -22
  96. package/styles/vendor/@carbon/elements/scss/grid/_mixins.scss +82 -22
  97. package/styles/vendor/@carbon/elements/scss/grid/modules/_breakpoint.scss +266 -0
  98. package/styles/vendor/@carbon/{themes/node_modules/@carbon/colors/scss/colors.scss → elements/scss/grid/modules/_config.scss} +6 -6
  99. package/styles/vendor/@carbon/elements/scss/grid/modules/_css-grid.scss +350 -0
  100. package/styles/vendor/@carbon/elements/scss/grid/modules/_mixins.scss +323 -0
  101. package/styles/vendor/@carbon/elements/scss/grid/vendor/@carbon/layout/_breakpoint.scss +8 -3
  102. package/styles/vendor/@carbon/elements/scss/grid/vendor/@carbon/layout/modules/_breakpoint.scss +232 -0
  103. package/styles/vendor/@carbon/elements/scss/grid/vendor/@carbon/layout/modules/_convert.scss +40 -0
  104. package/styles/vendor/@carbon/elements/scss/grid/vendor/@carbon/layout/modules/_spacing.scss +9 -0
  105. package/styles/vendor/@carbon/elements/scss/grid/vendor/@carbon/layout/modules/_utilities.scss +41 -0
  106. package/styles/vendor/@carbon/elements/scss/grid/vendor/@carbon/layout/modules/generated/_fluid-spacing.scss +37 -0
  107. package/styles/vendor/@carbon/elements/scss/grid/vendor/@carbon/layout/modules/generated/_spacing.scss +85 -0
  108. package/styles/vendor/@carbon/elements/scss/layout/_breakpoint.scss +8 -3
  109. package/styles/vendor/@carbon/elements/scss/layout/modules/_breakpoint.scss +232 -0
  110. package/styles/vendor/@carbon/elements/scss/layout/modules/_convert.scss +40 -0
  111. package/styles/vendor/@carbon/elements/scss/layout/modules/_spacing.scss +9 -0
  112. package/styles/vendor/@carbon/elements/scss/layout/modules/_utilities.scss +41 -0
  113. package/styles/vendor/@carbon/elements/scss/layout/modules/generated/_fluid-spacing.scss +37 -0
  114. package/styles/vendor/@carbon/elements/scss/layout/modules/generated/_spacing.scss +85 -0
  115. package/styles/vendor/@carbon/elements/scss/motion/motion.scss +24 -0
  116. package/styles/vendor/@carbon/elements/scss/themes/generated/_mixins.scss +643 -138
  117. package/styles/vendor/@carbon/elements/scss/themes/generated/_themes.scss +154 -77
  118. package/styles/vendor/@carbon/elements/scss/themes/generated/_tokens.scss +157 -75
  119. package/styles/vendor/@carbon/elements/scss/themes/modules/_theme.scss +50 -0
  120. package/styles/vendor/@carbon/elements/scss/themes/modules/_themes.scss +8 -0
  121. package/styles/vendor/@carbon/elements/scss/themes/modules/_utilities.scss +18 -0
  122. package/styles/vendor/@carbon/elements/scss/themes/modules/generated/_themes.scss +247 -0
  123. package/styles/vendor/@carbon/elements/scss/type/_font-family.scss +2 -2
  124. package/styles/vendor/@carbon/elements/scss/type/_inlined/_font-family.scss +2 -2
  125. package/styles/vendor/@carbon/elements/scss/type/_inlined/_reset.scss +9 -3
  126. package/styles/vendor/@carbon/elements/scss/type/_inlined/_scale.scss +2 -2
  127. package/styles/vendor/@carbon/elements/scss/type/_inlined/_styles.scss +60 -57
  128. package/styles/vendor/@carbon/elements/scss/type/_inlined/font-face/_mono.scss +72 -72
  129. package/styles/vendor/@carbon/elements/scss/type/_inlined/font-face/_sans-condensed.scss +302 -0
  130. package/styles/vendor/@carbon/elements/scss/type/_inlined/font-face/_sans.scss +84 -84
  131. package/styles/vendor/@carbon/elements/scss/type/_inlined/font-face/_serif.scss +72 -72
  132. package/styles/vendor/@carbon/elements/scss/type/_reset.scss +9 -3
  133. package/styles/vendor/@carbon/elements/scss/type/_scale.scss +2 -2
  134. package/styles/vendor/@carbon/elements/scss/type/_styles.scss +60 -57
  135. package/styles/vendor/@carbon/elements/scss/type/font-face/_mono.scss +72 -72
  136. package/styles/vendor/@carbon/elements/scss/type/font-face/_sans-condensed.scss +302 -0
  137. package/styles/vendor/@carbon/elements/scss/type/font-face/_sans.scss +84 -84
  138. package/styles/vendor/@carbon/elements/scss/type/font-face/_serif.scss +72 -72
  139. package/styles/vendor/@carbon/elements/scss/type/modules/_classes.scss +42 -0
  140. package/styles/vendor/@carbon/elements/scss/type/modules/_font-family.scss +70 -0
  141. package/styles/vendor/@carbon/elements/scss/type/modules/_prefix.scss +11 -0
  142. package/styles/vendor/@carbon/elements/scss/type/modules/_reset.scss +92 -0
  143. package/styles/vendor/@carbon/elements/scss/type/modules/_scale.scss +56 -0
  144. package/styles/vendor/@carbon/elements/scss/type/modules/_styles.scss +713 -0
  145. package/styles/vendor/@carbon/elements/scss/type/vendor/@carbon/layout/_breakpoint.scss +8 -3
  146. package/styles/vendor/@carbon/elements/scss/type/vendor/@carbon/layout/modules/_breakpoint.scss +232 -0
  147. package/styles/vendor/@carbon/elements/scss/type/vendor/@carbon/layout/modules/_convert.scss +40 -0
  148. package/styles/vendor/@carbon/elements/scss/type/vendor/@carbon/layout/modules/_spacing.scss +9 -0
  149. package/styles/vendor/@carbon/elements/scss/type/vendor/@carbon/layout/modules/_utilities.scss +41 -0
  150. package/styles/vendor/@carbon/elements/scss/type/vendor/@carbon/layout/modules/generated/_fluid-spacing.scss +37 -0
  151. package/styles/vendor/@carbon/elements/scss/type/vendor/@carbon/layout/modules/generated/_spacing.scss +85 -0
  152. package/styles/vendor/@carbon/elements/src/__tests__/PublicAPI-test.js +12 -0
  153. package/styles/vendor/@carbon/elements/src/__tests__/__snapshots__/PublicAPI-test.js.snap +306 -0
  154. package/styles/vendor/@carbon/elements/src/index.js +166 -4
  155. package/styles/vendor/@carbon/elements/umd/index.js +961 -17
  156. package/styles/vendor/@carbon/layout/README.md +0 -6
  157. package/styles/vendor/@carbon/layout/es/index.js +1 -1
  158. package/styles/vendor/@carbon/{themes/node_modules/@carbon/colors/scss → layout}/index.scss +5 -6
  159. package/styles/vendor/@carbon/layout/lib/index.js +30 -30
  160. package/styles/vendor/@carbon/layout/package.json +14 -10
  161. package/styles/vendor/@carbon/layout/scss/_breakpoint.scss +8 -3
  162. package/styles/vendor/@carbon/layout/scss/modules/_breakpoint.scss +232 -0
  163. package/styles/vendor/@carbon/layout/scss/modules/_convert.scss +40 -0
  164. package/styles/vendor/@carbon/layout/scss/modules/_spacing.scss +9 -0
  165. package/styles/vendor/@carbon/layout/scss/modules/_utilities.scss +41 -0
  166. package/styles/vendor/@carbon/layout/scss/modules/generated/_fluid-spacing.scss +37 -0
  167. package/styles/vendor/@carbon/layout/scss/modules/generated/_spacing.scss +85 -0
  168. package/styles/vendor/@carbon/layout/umd/index.js +31 -31
  169. package/styles/vendor/@carbon/motion/README.md +0 -6
  170. package/styles/vendor/@carbon/motion/es/index.js +8 -1
  171. package/styles/vendor/@carbon/motion/index.scss +56 -0
  172. package/styles/vendor/@carbon/motion/lib/index.js +14 -0
  173. package/styles/vendor/@carbon/motion/package.json +10 -6
  174. package/styles/vendor/@carbon/motion/scss/motion.scss +24 -0
  175. package/styles/vendor/@carbon/motion/src/index.js +16 -0
  176. package/styles/vendor/@carbon/motion/umd/index.js +15 -1
  177. package/styles/vendor/@carbon/themes/README.md +5 -4
  178. package/styles/vendor/@carbon/themes/es/index.js +719 -57
  179. package/styles/vendor/@carbon/themes/index.scss +9 -0
  180. package/styles/vendor/@carbon/themes/lib/index.js +1297 -251
  181. package/styles/vendor/@carbon/themes/metadata.yml +3 -0
  182. package/styles/vendor/@carbon/themes/package.json +23 -14
  183. package/styles/vendor/@carbon/themes/scss/_mixins.scss +27 -146
  184. package/styles/vendor/@carbon/themes/scss/_theme-maps.scss +3 -263
  185. package/styles/vendor/@carbon/themes/scss/_tokens.scss +2 -297
  186. package/styles/vendor/@carbon/themes/scss/generated/_mixins.scss +1851 -0
  187. package/styles/vendor/@carbon/themes/scss/generated/_themes.scss +1534 -0
  188. package/styles/vendor/@carbon/themes/scss/generated/_tokens.scss +1757 -0
  189. package/styles/vendor/@carbon/themes/scss/modules/_theme.scss +50 -0
  190. package/styles/vendor/@carbon/themes/scss/modules/_themes.scss +8 -0
  191. package/styles/vendor/@carbon/themes/scss/modules/_utilities.scss +18 -0
  192. package/styles/vendor/@carbon/themes/scss/modules/generated/_themes.scss +247 -0
  193. package/styles/vendor/@carbon/themes/scss/themes.scss +3 -2
  194. package/styles/vendor/@carbon/themes/src/g10.js +97 -5
  195. package/styles/vendor/@carbon/themes/src/g100.js +96 -4
  196. package/styles/vendor/@carbon/themes/src/g90.js +98 -6
  197. package/styles/vendor/@carbon/themes/src/index.js +5 -3
  198. package/styles/vendor/@carbon/themes/src/tokens.js +112 -2
  199. package/styles/vendor/@carbon/themes/src/tools.js +25 -0
  200. package/styles/vendor/@carbon/themes/src/v9.js +181 -0
  201. package/styles/vendor/@carbon/themes/src/white.js +98 -3
  202. package/styles/vendor/@carbon/themes/umd/index.js +1297 -254
  203. package/styles/vendor/@carbon/type/README.md +0 -6
  204. package/styles/vendor/@carbon/type/es/index.js +111 -82
  205. package/styles/vendor/@carbon/type/lib/index.js +132 -103
  206. package/styles/vendor/@carbon/type/package.json +12 -8
  207. package/styles/vendor/@carbon/type/scss/_font-family.scss +2 -2
  208. package/styles/vendor/@carbon/type/scss/_inlined/_font-family.scss +2 -2
  209. package/styles/vendor/@carbon/type/scss/_inlined/_reset.scss +9 -3
  210. package/styles/vendor/@carbon/type/scss/_inlined/_scale.scss +2 -2
  211. package/styles/vendor/@carbon/type/scss/_inlined/_styles.scss +60 -57
  212. package/styles/vendor/@carbon/type/scss/_inlined/font-face/_mono.scss +72 -72
  213. package/styles/vendor/@carbon/type/scss/_inlined/font-face/_sans-condensed.scss +302 -0
  214. package/styles/vendor/@carbon/type/scss/_inlined/font-face/_sans.scss +84 -84
  215. package/styles/vendor/@carbon/type/scss/_inlined/font-face/_serif.scss +72 -72
  216. package/styles/vendor/@carbon/type/scss/_reset.scss +9 -3
  217. package/styles/vendor/@carbon/type/scss/_scale.scss +2 -2
  218. package/styles/vendor/@carbon/type/scss/_styles.scss +60 -57
  219. package/styles/vendor/@carbon/type/scss/font-face/_mono.scss +72 -72
  220. package/styles/vendor/@carbon/type/scss/font-face/_sans-condensed.scss +302 -0
  221. package/styles/vendor/@carbon/type/scss/font-face/_sans.scss +84 -84
  222. package/styles/vendor/@carbon/type/scss/font-face/_serif.scss +72 -72
  223. package/styles/vendor/@carbon/type/scss/modules/_classes.scss +42 -0
  224. package/styles/vendor/@carbon/type/scss/modules/_font-family.scss +70 -0
  225. package/styles/vendor/@carbon/type/scss/modules/_prefix.scss +11 -0
  226. package/styles/vendor/@carbon/type/scss/modules/_reset.scss +92 -0
  227. package/styles/vendor/@carbon/type/scss/modules/_scale.scss +56 -0
  228. package/styles/vendor/@carbon/type/scss/modules/_styles.scss +713 -0
  229. package/styles/vendor/@carbon/type/scss/vendor/@carbon/layout/_breakpoint.scss +8 -3
  230. package/styles/vendor/@carbon/type/scss/vendor/@carbon/layout/modules/_breakpoint.scss +232 -0
  231. package/styles/vendor/@carbon/type/scss/vendor/@carbon/layout/modules/_convert.scss +40 -0
  232. package/styles/vendor/@carbon/type/scss/vendor/@carbon/layout/modules/_spacing.scss +9 -0
  233. package/styles/vendor/@carbon/type/scss/vendor/@carbon/layout/modules/_utilities.scss +41 -0
  234. package/styles/vendor/@carbon/type/scss/vendor/@carbon/layout/modules/generated/_fluid-spacing.scss +37 -0
  235. package/styles/vendor/@carbon/type/scss/vendor/@carbon/layout/modules/generated/_spacing.scss +85 -0
  236. package/styles/vendor/@carbon/type/src/__tests__/__snapshots__/styles-test.js.snap +32 -34
  237. package/styles/vendor/@carbon/type/src/__tests__/exports-test.js +1 -1
  238. package/styles/vendor/@carbon/type/src/__tests__/fluid-test.js +26 -26
  239. package/styles/vendor/@carbon/type/src/__tests__/styles-test.js +1 -1
  240. package/styles/vendor/@carbon/type/src/__tests__/tokens-test.js +2 -2
  241. package/styles/vendor/@carbon/type/src/fluid.js +1 -1
  242. package/styles/vendor/@carbon/type/src/index.js +1 -1
  243. package/styles/vendor/@carbon/type/src/styles.js +65 -64
  244. package/styles/vendor/@carbon/type/src/tokens.js +64 -31
  245. package/styles/vendor/@carbon/type/umd/index.js +134 -105
  246. package/styles-g10.css +570 -2
  247. package/styles-g10.css.map +1 -1
  248. package/styles-g10.min.css +1 -1
  249. package/styles-g10.min.css.map +1 -1
  250. package/styles-g100.css +574 -6
  251. package/styles-g100.css.map +1 -1
  252. package/styles-g100.min.css +1 -1
  253. package/styles-g100.min.css.map +1 -1
  254. package/styles-g90.css +574 -6
  255. package/styles-g90.css.map +1 -1
  256. package/styles-g90.min.css +1 -1
  257. package/styles-g90.min.css.map +1 -1
  258. package/styles.css +570 -2
  259. package/styles.css.map +1 -1
  260. package/styles.min.css +1 -1
  261. package/styles.min.css.map +1 -1
  262. package/tools.js +1 -1
  263. package/tools.js.map +1 -1
  264. package/tsconfig.tsbuildinfo +67 -17
  265. package/styles/vendor/@carbon/layout/docs/sass.md +0 -1899
  266. package/styles/vendor/@carbon/themes/node_modules/@carbon/colors/LICENSE +0 -201
  267. package/styles/vendor/@carbon/themes/node_modules/@carbon/colors/README.md +0 -154
  268. package/styles/vendor/@carbon/themes/node_modules/@carbon/colors/es/index.js +0 -287
  269. package/styles/vendor/@carbon/themes/node_modules/@carbon/colors/lib/index.js +0 -410
  270. package/styles/vendor/@carbon/themes/node_modules/@carbon/colors/package.json +0 -51
  271. package/styles/vendor/@carbon/themes/node_modules/@carbon/colors/scss/mixins.scss +0 -646
  272. package/styles/vendor/@carbon/themes/node_modules/@carbon/colors/umd/index.js +0 -416
@@ -135,7 +135,7 @@ $text-02: if(
135
135
  global-variable-exists('carbon--theme') and
136
136
  map-has-key($carbon--theme, 'text-02'),
137
137
  map-get($carbon--theme, 'text-02'),
138
- #393939
138
+ #525252
139
139
  ) !default;
140
140
 
141
141
  /// Placeholder text
@@ -224,6 +224,17 @@ $link-01: if(
224
224
  #0f62fe
225
225
  ) !default;
226
226
 
227
+ /// Secondary link color for lower contrast backgrounds
228
+ /// @type {undefined}
229
+ /// @access public
230
+ /// @group @carbon/themes
231
+ $link-02: if(
232
+ global-variable-exists('carbon--theme') and
233
+ map-has-key($carbon--theme, 'link-02'),
234
+ map-get($carbon--theme, 'link-02'),
235
+ #0043ce
236
+ ) !default;
237
+
227
238
  /// @type {undefined}
228
239
  /// @access public
229
240
  /// @group @carbon/themes
@@ -380,10 +391,20 @@ $overlay-01: if(
380
391
  /// @type {undefined}
381
392
  /// @access public
382
393
  /// @group @carbon/themes
383
- $danger: if(
394
+ $danger-01: if(
384
395
  global-variable-exists('carbon--theme') and
385
- map-has-key($carbon--theme, 'danger'),
386
- map-get($carbon--theme, 'danger'),
396
+ map-has-key($carbon--theme, 'danger-01'),
397
+ map-get($carbon--theme, 'danger-01'),
398
+ #da1e28
399
+ ) !default;
400
+
401
+ /// @type {undefined}
402
+ /// @access public
403
+ /// @group @carbon/themes
404
+ $danger-02: if(
405
+ global-variable-exists('carbon--theme') and
406
+ map-has-key($carbon--theme, 'danger-02'),
407
+ map-get($carbon--theme, 'danger-02'),
387
408
  #da1e28
388
409
  ) !default;
389
410
 
@@ -496,6 +517,27 @@ $hover-ui: if(
496
517
  #e5e5e5
497
518
  ) !default;
498
519
 
520
+ /// @type {undefined}
521
+ /// @access public
522
+ /// @group @carbon/themes
523
+ $hover-light-ui: if(
524
+ global-variable-exists('carbon--theme') and
525
+ map-has-key($carbon--theme, 'hover-light-ui'),
526
+ map-get($carbon--theme, 'hover-light-ui'),
527
+ #e5e5e5
528
+ ) !default;
529
+
530
+ /// Data table selected row hover
531
+ /// @type {undefined}
532
+ /// @access public
533
+ /// @group @carbon/themes
534
+ $hover-selected-ui: if(
535
+ global-variable-exists('carbon--theme') and
536
+ map-has-key($carbon--theme, 'hover-selected-ui'),
537
+ map-get($carbon--theme, 'hover-selected-ui'),
538
+ #cacaca
539
+ ) !default;
540
+
499
541
  /// `$ui-01` active; `$ui-02` active
500
542
  /// @type {undefined}
501
543
  /// @access public
@@ -507,6 +549,16 @@ $active-ui: if(
507
549
  #c6c6c6
508
550
  ) !default;
509
551
 
552
+ /// @type {undefined}
553
+ /// @access public
554
+ /// @group @carbon/themes
555
+ $active-light-ui: if(
556
+ global-variable-exists('carbon--theme') and
557
+ map-has-key($carbon--theme, 'active-light-ui'),
558
+ map-get($carbon--theme, 'active-light-ui'),
559
+ #c6c6c6
560
+ ) !default;
561
+
510
562
  /// Selected UI elements
511
563
  /// @type {undefined}
512
564
  /// @access public
@@ -518,15 +570,14 @@ $selected-ui: if(
518
570
  #e0e0e0
519
571
  ) !default;
520
572
 
521
- /// Data table selected row hover
522
573
  /// @type {undefined}
523
574
  /// @access public
524
575
  /// @group @carbon/themes
525
- $hover-selected-ui: if(
576
+ $selected-light-ui: if(
526
577
  global-variable-exists('carbon--theme') and
527
- map-has-key($carbon--theme, 'hover-selected-ui'),
528
- map-get($carbon--theme, 'hover-selected-ui'),
529
- #cacaca
578
+ map-has-key($carbon--theme, 'selected-light-ui'),
579
+ map-get($carbon--theme, 'selected-light-ui'),
580
+ #e0e0e0
530
581
  ) !default;
531
582
 
532
583
  /// @type {undefined}
@@ -627,6 +678,26 @@ $highlight: if(
627
678
  #d0e2ff
628
679
  ) !default;
629
680
 
681
+ /// @type {undefined}
682
+ /// @access public
683
+ /// @group @carbon/themes
684
+ $decorative-01: if(
685
+ global-variable-exists('carbon--theme') and
686
+ map-has-key($carbon--theme, 'decorative-01'),
687
+ map-get($carbon--theme, 'decorative-01'),
688
+ #e0e0e0
689
+ ) !default;
690
+
691
+ /// @type {undefined}
692
+ /// @access public
693
+ /// @group @carbon/themes
694
+ $button-separator: if(
695
+ global-variable-exists('carbon--theme') and
696
+ map-has-key($carbon--theme, 'button-separator'),
697
+ map-get($carbon--theme, 'button-separator'),
698
+ #e0e0e0
699
+ ) !default;
700
+
630
701
  /// Skeleton state of graphics
631
702
  /// @type {undefined}
632
703
  /// @access public
@@ -709,6 +780,16 @@ $hover-field: if(
709
780
  #e5e5e5
710
781
  ) !default;
711
782
 
783
+ /// @type {undefined}
784
+ /// @access public
785
+ /// @group @carbon/themes
786
+ $danger: if(
787
+ global-variable-exists('carbon--theme') and
788
+ map-has-key($carbon--theme, 'danger'),
789
+ map-get($carbon--theme, 'danger'),
790
+ #da1e28
791
+ ) !default;
792
+
712
793
  /// @type {Number}
713
794
  /// @access public
714
795
  /// @group @carbon/themes
@@ -719,7 +800,7 @@ $caption-01: if(
719
800
  (
720
801
  font-size: 0.75rem,
721
802
  font-weight: 400,
722
- line-height: 1rem,
803
+ line-height: 1.34,
723
804
  letter-spacing: 0.32px,
724
805
  )
725
806
  ) !default;
@@ -734,7 +815,7 @@ $label-01: if(
734
815
  (
735
816
  font-size: 0.75rem,
736
817
  font-weight: 400,
737
- line-height: 1rem,
818
+ line-height: 1.34,
738
819
  letter-spacing: 0.32px,
739
820
  )
740
821
  ) !default;
@@ -748,7 +829,7 @@ $helper-text-01: if(
748
829
  map-get($carbon--theme, 'helper-text-01'),
749
830
  (
750
831
  font-size: 0.75rem,
751
- line-height: 1rem,
832
+ line-height: 1.34,
752
833
  letter-spacing: 0.32px,
753
834
  )
754
835
  ) !default;
@@ -763,7 +844,7 @@ $body-short-01: if(
763
844
  (
764
845
  font-size: 0.875rem,
765
846
  font-weight: 400,
766
- line-height: 1.125rem,
847
+ line-height: 1.29,
767
848
  letter-spacing: 0.16px,
768
849
  )
769
850
  ) !default;
@@ -778,7 +859,7 @@ $body-long-01: if(
778
859
  (
779
860
  font-size: 0.875rem,
780
861
  font-weight: 400,
781
- line-height: 1.25rem,
862
+ line-height: 1.43,
782
863
  letter-spacing: 0.16px,
783
864
  )
784
865
  ) !default;
@@ -793,7 +874,7 @@ $body-short-02: if(
793
874
  (
794
875
  font-size: 1rem,
795
876
  font-weight: 400,
796
- line-height: 1.375rem,
877
+ line-height: 1.375,
797
878
  letter-spacing: 0,
798
879
  )
799
880
  ) !default;
@@ -808,7 +889,7 @@ $body-long-02: if(
808
889
  (
809
890
  font-size: 1rem,
810
891
  font-weight: 400,
811
- line-height: 1.5rem,
892
+ line-height: 1.5,
812
893
  letter-spacing: 0,
813
894
  )
814
895
  ) !default;
@@ -827,7 +908,7 @@ $code-01: if(
827
908
  ),
828
909
  font-size: 0.75rem,
829
910
  font-weight: 400,
830
- line-height: 1rem,
911
+ line-height: 1.34,
831
912
  letter-spacing: 0.32px,
832
913
  )
833
914
  ) !default;
@@ -846,7 +927,7 @@ $code-02: if(
846
927
  ),
847
928
  font-size: 0.875rem,
848
929
  font-weight: 400,
849
- line-height: 1.25rem,
930
+ line-height: 1.43,
850
931
  letter-spacing: 0.32px,
851
932
  )
852
933
  ) !default;
@@ -861,7 +942,7 @@ $heading-01: if(
861
942
  (
862
943
  font-size: 0.875rem,
863
944
  font-weight: 600,
864
- line-height: 1.125rem,
945
+ line-height: 1.29,
865
946
  letter-spacing: 0.16px,
866
947
  )
867
948
  ) !default;
@@ -876,7 +957,7 @@ $productive-heading-01: if(
876
957
  (
877
958
  font-size: 0.875rem,
878
959
  font-weight: 600,
879
- line-height: 1.125rem,
960
+ line-height: 1.29,
880
961
  letter-spacing: 0.16px,
881
962
  )
882
963
  ) !default;
@@ -891,7 +972,7 @@ $heading-02: if(
891
972
  (
892
973
  font-size: 1rem,
893
974
  font-weight: 600,
894
- line-height: 1.375rem,
975
+ line-height: 1.375,
895
976
  letter-spacing: 0,
896
977
  )
897
978
  ) !default;
@@ -906,7 +987,7 @@ $productive-heading-02: if(
906
987
  (
907
988
  font-size: 1rem,
908
989
  font-weight: 600,
909
- line-height: 1.375rem,
990
+ line-height: 1.375,
910
991
  letter-spacing: 0,
911
992
  )
912
993
  ) !default;
@@ -921,7 +1002,7 @@ $productive-heading-03: if(
921
1002
  (
922
1003
  font-size: 1.25rem,
923
1004
  font-weight: 400,
924
- line-height: 1.625rem,
1005
+ line-height: 1.4,
925
1006
  letter-spacing: 0,
926
1007
  )
927
1008
  ) !default;
@@ -936,7 +1017,7 @@ $productive-heading-04: if(
936
1017
  (
937
1018
  font-size: 1.75rem,
938
1019
  font-weight: 400,
939
- line-height: 2.25rem,
1020
+ line-height: 1.29,
940
1021
  letter-spacing: 0,
941
1022
  )
942
1023
  ) !default;
@@ -951,7 +1032,7 @@ $productive-heading-05: if(
951
1032
  (
952
1033
  font-size: 2rem,
953
1034
  font-weight: 400,
954
- line-height: 2.5rem,
1035
+ line-height: 1.25,
955
1036
  letter-spacing: 0,
956
1037
  )
957
1038
  ) !default;
@@ -966,7 +1047,7 @@ $productive-heading-06: if(
966
1047
  (
967
1048
  font-size: 2.625rem,
968
1049
  font-weight: 300,
969
- line-height: 3.125rem,
1050
+ line-height: 1.199,
970
1051
  letter-spacing: 0,
971
1052
  )
972
1053
  ) !default;
@@ -981,7 +1062,7 @@ $productive-heading-07: if(
981
1062
  (
982
1063
  font-size: 3.375rem,
983
1064
  font-weight: 300,
984
- line-height: 4rem,
1065
+ line-height: 1.19,
985
1066
  letter-spacing: 0,
986
1067
  )
987
1068
  ) !default;
@@ -996,7 +1077,7 @@ $expressive-heading-01: if(
996
1077
  (
997
1078
  font-size: 0.875rem,
998
1079
  font-weight: 600,
999
- line-height: 1.25rem,
1080
+ line-height: 1.25,
1000
1081
  letter-spacing: 0.16px,
1001
1082
  )
1002
1083
  ) !default;
@@ -1011,7 +1092,7 @@ $expressive-heading-02: if(
1011
1092
  (
1012
1093
  font-size: 1rem,
1013
1094
  font-weight: 600,
1014
- line-height: 1.5rem,
1095
+ line-height: 1.5,
1015
1096
  letter-spacing: 0,
1016
1097
  )
1017
1098
  ) !default;
@@ -1026,15 +1107,16 @@ $expressive-heading-03: if(
1026
1107
  (
1027
1108
  font-size: 1.25rem,
1028
1109
  font-weight: 400,
1029
- line-height: 130%,
1110
+ line-height: 1.4,
1030
1111
  letter-spacing: 0,
1031
1112
  breakpoints: (
1032
1113
  xlg: (
1033
1114
  font-size: 1.25rem,
1034
- line-height: 125%,
1115
+ line-height: 1.25,
1035
1116
  ),
1036
1117
  max: (
1037
1118
  font-size: 1.5rem,
1119
+ line-height: 1.334,
1038
1120
  ),
1039
1121
  ),
1040
1122
  )
@@ -1050,12 +1132,12 @@ $expressive-heading-04: if(
1050
1132
  (
1051
1133
  font-size: 1.75rem,
1052
1134
  font-weight: 400,
1053
- line-height: 129%,
1135
+ line-height: 1.29,
1054
1136
  letter-spacing: 0,
1055
1137
  breakpoints: (
1056
1138
  xlg: (
1057
1139
  font-size: 1.75rem,
1058
- line-height: 125%,
1140
+ line-height: 1.25,
1059
1141
  ),
1060
1142
  max: (
1061
1143
  font-size: 2rem,
@@ -1074,31 +1156,30 @@ $expressive-heading-05: if(
1074
1156
  (
1075
1157
  font-size: 2rem,
1076
1158
  font-weight: 400,
1077
- line-height: 125%,
1159
+ line-height: 1.25,
1078
1160
  letter-spacing: 0,
1079
1161
  breakpoints: (
1080
1162
  md: (
1081
1163
  font-size: 2.25rem,
1082
1164
  font-weight: 300,
1083
- line-height: 122%,
1165
+ line-height: 1.22,
1084
1166
  letter-spacing: 0,
1085
1167
  ),
1086
1168
  lg: (
1087
1169
  font-size: 2.625rem,
1088
1170
  font-weight: 300,
1089
- line-height: 119%,
1171
+ line-height: 1.19,
1090
1172
  letter-spacing: 0,
1091
1173
  ),
1092
1174
  xlg: (
1093
1175
  font-size: 3rem,
1094
1176
  font-weight: 300,
1095
- line-height: 117%,
1177
+ line-height: 1.17,
1096
1178
  letter-spacing: 0,
1097
1179
  ),
1098
1180
  max: (
1099
1181
  font-size: 3.75rem,
1100
1182
  font-weight: 300,
1101
- line-height: 4.375rem,
1102
1183
  letter-spacing: 0,
1103
1184
  ),
1104
1185
  ),
@@ -1115,31 +1196,30 @@ $expressive-heading-06: if(
1115
1196
  (
1116
1197
  font-size: 2rem,
1117
1198
  font-weight: 600,
1118
- line-height: 125%,
1199
+ line-height: 1.25,
1119
1200
  letter-spacing: 0,
1120
1201
  breakpoints: (
1121
1202
  md: (
1122
1203
  font-size: 2.25rem,
1123
1204
  font-weight: 600,
1124
- line-height: 122%,
1205
+ line-height: 1.22,
1125
1206
  letter-spacing: 0,
1126
1207
  ),
1127
1208
  lg: (
1128
1209
  font-size: 2.625rem,
1129
1210
  font-weight: 600,
1130
- line-height: 119%,
1211
+ line-height: 1.19,
1131
1212
  letter-spacing: 0,
1132
1213
  ),
1133
1214
  xlg: (
1134
1215
  font-size: 3rem,
1135
1216
  font-weight: 600,
1136
- line-height: 117%,
1217
+ line-height: 1.17,
1137
1218
  letter-spacing: 0,
1138
1219
  ),
1139
1220
  max: (
1140
1221
  font-size: 3.75rem,
1141
1222
  font-weight: 600,
1142
- line-height: 4.375rem,
1143
1223
  letter-spacing: 0,
1144
1224
  ),
1145
1225
  ),
@@ -1156,15 +1236,17 @@ $expressive-paragraph-01: if(
1156
1236
  (
1157
1237
  font-size: 1.5rem,
1158
1238
  font-weight: 300,
1159
- line-height: 125%,
1239
+ line-height: 1.334,
1160
1240
  letter-spacing: 0,
1161
- lg: (
1162
- font-size: 1.75rem,
1163
- line-height: 129%,
1164
- ),
1165
- max: (
1166
- font-size: 2rem,
1167
- line-height: 125%,
1241
+ breakpoints: (
1242
+ lg: (
1243
+ font-size: 1.75rem,
1244
+ line-height: 1.29,
1245
+ ),
1246
+ max: (
1247
+ font-size: 2rem,
1248
+ line-height: 1.25,
1249
+ ),
1168
1250
  ),
1169
1251
  )
1170
1252
  ) !default;
@@ -1179,7 +1261,7 @@ $quotation-01: if(
1179
1261
  (
1180
1262
  font-size: 1.25rem,
1181
1263
  font-weight: 400,
1182
- line-height: 130%,
1264
+ line-height: 1.3,
1183
1265
  letter-spacing: 0,
1184
1266
  breakpoints: (
1185
1267
  md: (
@@ -1190,19 +1272,19 @@ $quotation-01: if(
1190
1272
  lg: (
1191
1273
  font-size: 1.5rem,
1192
1274
  font-weight: 400,
1193
- line-height: 125%,
1275
+ line-height: 1.334,
1194
1276
  letter-spacing: 0,
1195
1277
  ),
1196
1278
  xlg: (
1197
1279
  font-size: 1.75rem,
1198
1280
  font-weight: 400,
1199
- line-height: 129%,
1281
+ line-height: 1.29,
1200
1282
  letter-spacing: 0,
1201
1283
  ),
1202
1284
  max: (
1203
1285
  font-size: 2rem,
1204
1286
  font-weight: 400,
1205
- line-height: 125%,
1287
+ line-height: 1.25,
1206
1288
  letter-spacing: 0,
1207
1289
  ),
1208
1290
  ),
@@ -1219,20 +1301,20 @@ $quotation-02: if(
1219
1301
  (
1220
1302
  font-size: 2rem,
1221
1303
  font-weight: 300,
1222
- line-height: 125%,
1304
+ line-height: 1.25,
1223
1305
  letter-spacing: 0,
1224
1306
  breakpoints: (
1225
1307
  md: (
1226
1308
  font-size: 2.25rem,
1227
- line-height: 122%,
1309
+ line-height: 1.22,
1228
1310
  ),
1229
1311
  lg: (
1230
1312
  font-size: 2.625rem,
1231
- line-height: 119%,
1313
+ line-height: 1.19,
1232
1314
  ),
1233
1315
  xlg: (
1234
1316
  font-size: 3rem,
1235
- line-height: 117%,
1317
+ line-height: 1.17,
1236
1318
  ),
1237
1319
  max: (
1238
1320
  font-size: 3.75rem,
@@ -1251,7 +1333,7 @@ $display-01: if(
1251
1333
  (
1252
1334
  font-size: 2.625rem,
1253
1335
  font-weight: 300,
1254
- line-height: 119%,
1336
+ line-height: 1.19,
1255
1337
  letter-spacing: 0,
1256
1338
  breakpoints: (
1257
1339
  md: (
@@ -1262,11 +1344,11 @@ $display-01: if(
1262
1344
  ),
1263
1345
  xlg: (
1264
1346
  font-size: 3.75rem,
1265
- line-height: 117%,
1347
+ line-height: 1.17,
1266
1348
  ),
1267
1349
  max: (
1268
1350
  font-size: 4.75rem,
1269
- line-height: 113%,
1351
+ line-height: 1.13,
1270
1352
  ),
1271
1353
  ),
1272
1354
  )
@@ -1282,7 +1364,7 @@ $display-02: if(
1282
1364
  (
1283
1365
  font-size: 2.625rem,
1284
1366
  font-weight: 600,
1285
- line-height: 119%,
1367
+ line-height: 1.19,
1286
1368
  letter-spacing: 0,
1287
1369
  breakpoints: (
1288
1370
  md: (
@@ -1293,11 +1375,11 @@ $display-02: if(
1293
1375
  ),
1294
1376
  xlg: (
1295
1377
  font-size: 3.75rem,
1296
- line-height: 116%,
1378
+ line-height: 1.16,
1297
1379
  ),
1298
1380
  max: (
1299
1381
  font-size: 4.75rem,
1300
- line-height: 113%,
1382
+ line-height: 1.13,
1301
1383
  ),
1302
1384
  ),
1303
1385
  )
@@ -1313,25 +1395,25 @@ $display-03: if(
1313
1395
  (
1314
1396
  font-size: 2.625rem,
1315
1397
  font-weight: 300,
1316
- line-height: 119%,
1398
+ line-height: 1.19,
1317
1399
  letter-spacing: 0,
1318
1400
  breakpoints: (
1319
1401
  md: (
1320
1402
  font-size: 4.25rem,
1321
- line-height: 115%,
1403
+ line-height: 1.15,
1322
1404
  ),
1323
1405
  lg: (
1324
1406
  font-size: 5.75rem,
1325
- line-height: 111%,
1407
+ line-height: 1.11,
1326
1408
  letter-spacing: -0.64px,
1327
1409
  ),
1328
1410
  xlg: (
1329
1411
  font-size: 7.625rem,
1330
- line-height: 107%,
1412
+ line-height: 1.07,
1331
1413
  ),
1332
1414
  max: (
1333
1415
  font-size: 9.75rem,
1334
- line-height: 105%,
1416
+ line-height: 1.05,
1335
1417
  letter-spacing: -0.96px,
1336
1418
  ),
1337
1419
  ),
@@ -1348,26 +1430,26 @@ $display-04: if(
1348
1430
  (
1349
1431
  font-size: 2.625rem,
1350
1432
  font-weight: 600,
1351
- line-height: 119%,
1433
+ line-height: 1.19,
1352
1434
  letter-spacing: 0,
1353
1435
  breakpoints: (
1354
1436
  md: (
1355
1437
  font-size: 4.25rem,
1356
- line-height: 115%,
1438
+ line-height: 1.15,
1357
1439
  ),
1358
1440
  lg: (
1359
1441
  font-size: 5.75rem,
1360
- line-height: 111%,
1442
+ line-height: 1.11,
1361
1443
  letter-spacing: -0.64px,
1362
1444
  ),
1363
1445
  xlg: (
1364
1446
  font-size: 7.625rem,
1365
- line-height: 107%,
1447
+ line-height: 1.07,
1366
1448
  letter-spacing: -0.64px,
1367
1449
  ),
1368
1450
  max: (
1369
1451
  font-size: 9.75rem,
1370
- line-height: 105%,
1452
+ line-height: 1.05,
1371
1453
  letter-spacing: -0.96px,
1372
1454
  ),
1373
1455
  ),
@@ -0,0 +1,50 @@
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
+ @use 'sass:map';
9
+ @use 'sass:meta';
10
+ @use 'themes';
11
+
12
+ $theme: themes.$white !default;
13
+ $-custom-property-prefix: 'cds';
14
+
15
+ /// @access public
16
+ /// @group @carbon/themes
17
+ @mixin theme($active-theme: $theme) {
18
+ $parent-theme: $theme;
19
+ $theme: $active-theme !global;
20
+
21
+ @each $token, $value in $theme {
22
+ @include -custom-property($token, $value);
23
+ }
24
+
25
+ @content;
26
+
27
+ $theme: $parent-theme !global;
28
+ }
29
+
30
+ /// @access public
31
+ /// @group @carbon/themes
32
+ @mixin set($active-theme) {
33
+ $theme: $active-theme !global;
34
+ }
35
+
36
+ /// @access private
37
+ /// @group @carbon/themes
38
+ @mixin -custom-property($name, $value, $prefix: $-custom-property-prefix) {
39
+ @if meta.type-of($value) == map {
40
+ @each $property, $property-value in $value {
41
+ // Only support one-level of depth for values that are maps. This is to
42
+ // avoid bringing properties like `breakpoints` on type tokens
43
+ @if type-of($property-value) != map {
44
+ @include -custom-property('#{$name}-#{$property}', $property-value);
45
+ }
46
+ }
47
+ } @else {
48
+ --#{$prefix}-#{$name}: #{$value};
49
+ }
50
+ }
@@ -0,0 +1,8 @@
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
+ @forward 'generated/themes';
@@ -0,0 +1,18 @@
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
+ @use 'sass:map';
9
+
10
+ /// @access private
11
+ /// @group @carbon/themes
12
+ @function merge($map, $maps...) {
13
+ $result: $map;
14
+ @each $map in $maps {
15
+ $result: map.merge($result, $map);
16
+ }
17
+ @return $result;
18
+ }