@carbon/charts-react 0.52.4 → 0.53.3

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/CHANGELOG.md CHANGED
@@ -3,6 +3,41 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [0.53.3](https://github.com/carbon-design-system/carbon-charts/compare/v0.53.2...v0.53.3) (2021-12-07)
7
+
8
+ **Note:** Version bump only for package @carbon/charts-react
9
+
10
+
11
+
12
+
13
+
14
+ ## [0.53.2](https://github.com/carbon-design-system/carbon-charts/compare/v0.53.1...v0.53.2) (2021-12-06)
15
+
16
+ **Note:** Version bump only for package @carbon/charts-react
17
+
18
+
19
+
20
+
21
+
22
+ ## [0.53.1](https://github.com/carbon-design-system/carbon-charts/compare/v0.53.0...v0.53.1) (2021-12-02)
23
+
24
+ **Note:** Version bump only for package @carbon/charts-react
25
+
26
+
27
+
28
+
29
+
30
+ # [0.53.0](https://github.com/carbon-design-system/carbon-charts/compare/v0.52.4...v0.53.0) (2021-12-01)
31
+
32
+
33
+ ### Features
34
+
35
+ * **react diagrams:** add support for applying a custom class to the outer node ([#1222](https://github.com/carbon-design-system/carbon-charts/issues/1222)) ([c7e8606](https://github.com/carbon-design-system/carbon-charts/commit/c7e8606e860702bf80ebfb9045a5965fcd2fa0ff)), closes [#1221](https://github.com/carbon-design-system/carbon-charts/issues/1221)
36
+
37
+
38
+
39
+
40
+
6
41
  ## [0.52.4](https://github.com/carbon-design-system/carbon-charts/compare/v0.52.3...v0.52.4) (2021-12-01)
7
42
 
8
43
  **Note:** Version bump only for package @carbon/charts-react
@@ -1,6 +1,6 @@
1
1
  import PropTypes from 'prop-types';
2
2
  declare const CardNode: {
3
- ({ as, children, color, href, onMouseEnter, onMouseOver, onMouseOut, onMouseLeave, onMouseMove, onClick, position, stacked, }: any): JSX.Element;
3
+ ({ as, children, className, color, href, onMouseEnter, onMouseOver, onMouseOut, onMouseLeave, onMouseMove, onClick, position, stacked, }: any): JSX.Element;
4
4
  propTypes: {
5
5
  /** Provide a custom element to be rendered instead of the default */
6
6
  as: PropTypes.Requireable<PropTypes.ReactComponentLike>;
@@ -8,6 +8,10 @@ declare const CardNode: {
8
8
  * Pass in the children that will be rendered within the CardNode
9
9
  */
10
10
  children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
11
+ /**
12
+ * Provide an optional class to be applied on the outer element
13
+ */
14
+ className: PropTypes.Requireable<string>;
11
15
  /**
12
16
  * Specify the node's border color
13
17
  */
@@ -13,7 +13,7 @@ var prefix = settings_1.default.prefix;
13
13
  var namespace = prefix + "--cc--card-node";
14
14
  var CardNode = function (_a) {
15
15
  var _b;
16
- var _c = _a.as, as = _c === void 0 ? 'div' : _c, children = _a.children, color = _a.color, _d = _a.href, href = _d === void 0 ? null : _d, _e = _a.onMouseEnter, onMouseEnter = _e === void 0 ? null : _e, _f = _a.onMouseOver, onMouseOver = _f === void 0 ? null : _f, _g = _a.onMouseOut, onMouseOut = _g === void 0 ? null : _g, _h = _a.onMouseLeave, onMouseLeave = _h === void 0 ? null : _h, _j = _a.onMouseMove, onMouseMove = _j === void 0 ? null : _j, _k = _a.onClick, onClick = _k === void 0 ? null : _k, _l = _a.position, position = _l === void 0 ? 'static' : _l, stacked = _a.stacked;
16
+ var _c = _a.as, as = _c === void 0 ? 'div' : _c, children = _a.children, className = _a.className, color = _a.color, _d = _a.href, href = _d === void 0 ? null : _d, _e = _a.onMouseEnter, onMouseEnter = _e === void 0 ? null : _e, _f = _a.onMouseOver, onMouseOver = _f === void 0 ? null : _f, _g = _a.onMouseOut, onMouseOut = _g === void 0 ? null : _g, _h = _a.onMouseLeave, onMouseLeave = _h === void 0 ? null : _h, _j = _a.onMouseMove, onMouseMove = _j === void 0 ? null : _j, _k = _a.onClick, onClick = _k === void 0 ? null : _k, _l = _a.position, position = _l === void 0 ? 'static' : _l, stacked = _a.stacked;
17
17
  var Component = 'div';
18
18
  if (as !== 'div') {
19
19
  Component = as;
@@ -27,6 +27,7 @@ var CardNode = function (_a) {
27
27
  var cardClasses = classnames_1.default(namespace, (_b = {},
28
28
  _b[namespace + "--stacked"] = stacked,
29
29
  _b[namespace + "--" + Component] = Component,
30
+ _b[className] = className,
30
31
  _b));
31
32
  return (
32
33
  // @ts-ignore
@@ -40,6 +41,10 @@ CardNode.propTypes = {
40
41
  * Pass in the children that will be rendered within the CardNode
41
42
  */
42
43
  children: prop_types_1.default.node,
44
+ /**
45
+ * Provide an optional class to be applied on the outer element
46
+ */
47
+ className: prop_types_1.default.string,
43
48
  /**
44
49
  * Specify the node's border color
45
50
  */
@@ -1,11 +1,15 @@
1
1
  import PropTypes from 'prop-types';
2
2
  declare const CardNodeColumn: {
3
- ({ children, farsideColumn }: any): JSX.Element;
3
+ ({ children, className, farsideColumn }: any): JSX.Element;
4
4
  propTypes: {
5
5
  /**
6
6
  * Pass in the children that will be rendered within the CardNodeColumn
7
7
  */
8
8
  children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
9
+ /**
10
+ * Provide an optional class to be applied on the outer element
11
+ */
12
+ className: PropTypes.Requireable<string>;
9
13
  /**
10
14
  * Specify whether this is the last column
11
15
  */
@@ -7,12 +7,19 @@ exports.CardNodeColumn = void 0;
7
7
  var react_1 = __importDefault(require("react"));
8
8
  var prop_types_1 = __importDefault(require("prop-types"));
9
9
  // @ts-ignore
10
+ var classnames_1 = __importDefault(require("classnames"));
11
+ // @ts-ignore
10
12
  var settings_1 = __importDefault(require("carbon-components/src/globals/js/settings"));
11
13
  var prefix = settings_1.default.prefix;
12
14
  var namespace = prefix + "--cc--card-node";
13
15
  var CardNodeColumn = function (_a) {
14
- var children = _a.children, farsideColumn = _a.farsideColumn;
15
- return (react_1.default.createElement("div", { className: namespace + "__column " + (farsideColumn && namespace + "__column--farside") }, children));
16
+ var _b;
17
+ var children = _a.children, className = _a.className, farsideColumn = _a.farsideColumn;
18
+ var classes = classnames_1.default(namespace + "__column", (_b = {},
19
+ _b[namespace + "__column--farside"] = farsideColumn,
20
+ _b[className] = className,
21
+ _b));
22
+ return react_1.default.createElement("div", { className: classes }, children);
16
23
  };
17
24
  exports.CardNodeColumn = CardNodeColumn;
18
25
  CardNodeColumn.propTypes = {
@@ -20,6 +27,10 @@ CardNodeColumn.propTypes = {
20
27
  * Pass in the children that will be rendered within the CardNodeColumn
21
28
  */
22
29
  children: prop_types_1.default.node,
30
+ /**
31
+ * Provide an optional class to be applied on the outer element
32
+ */
33
+ className: prop_types_1.default.string,
23
34
  /**
24
35
  * Specify whether this is the last column
25
36
  */
@@ -1,11 +1,15 @@
1
1
  import PropTypes from 'prop-types';
2
2
  declare const CardNodeLabel: {
3
- ({ children }: any): JSX.Element;
3
+ ({ children, className }: any): JSX.Element;
4
4
  propTypes: {
5
5
  /**
6
6
  * Pass in the children that will be rendered within the CardNodeLabel
7
7
  */
8
8
  children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
9
+ /**
10
+ * Provide an optional class to be applied on the outer element
11
+ */
12
+ className: PropTypes.Requireable<string>;
9
13
  };
10
14
  };
11
15
  export { CardNodeLabel };
@@ -7,12 +7,18 @@ exports.CardNodeLabel = void 0;
7
7
  var react_1 = __importDefault(require("react"));
8
8
  var prop_types_1 = __importDefault(require("prop-types"));
9
9
  // @ts-ignore
10
+ var classnames_1 = __importDefault(require("classnames"));
11
+ // @ts-ignore
10
12
  var settings_1 = __importDefault(require("carbon-components/src/globals/js/settings"));
11
13
  var prefix = settings_1.default.prefix;
12
14
  var namespace = prefix + "--cc--card-node";
13
15
  var CardNodeLabel = function (_a) {
14
- var children = _a.children;
15
- return (react_1.default.createElement("label", { className: namespace + "__label" }, children));
16
+ var _b;
17
+ var children = _a.children, className = _a.className;
18
+ var classes = classnames_1.default(namespace + "__label", (_b = {},
19
+ _b[className] = className,
20
+ _b));
21
+ return react_1.default.createElement("label", { className: classes }, children);
16
22
  };
17
23
  exports.CardNodeLabel = CardNodeLabel;
18
24
  CardNodeLabel.propTypes = {
@@ -20,4 +26,8 @@ CardNodeLabel.propTypes = {
20
26
  * Pass in the children that will be rendered within the CardNodeLabel
21
27
  */
22
28
  children: prop_types_1.default.node,
29
+ /**
30
+ * Provide an optional class to be applied on the outer element
31
+ */
32
+ className: prop_types_1.default.string,
23
33
  };
@@ -1,11 +1,15 @@
1
1
  import PropTypes from 'prop-types';
2
2
  declare const CardNodeSubtitle: {
3
- ({ children }: any): JSX.Element;
3
+ ({ children, className }: any): JSX.Element;
4
4
  propTypes: {
5
5
  /**
6
6
  * Pass in the children that will be rendered within the CardNodeSubtitle
7
7
  */
8
8
  children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
9
+ /**
10
+ * Provide an optional class to be applied on the outer element
11
+ */
12
+ className: PropTypes.Requireable<string>;
9
13
  };
10
14
  };
11
15
  export { CardNodeSubtitle };
@@ -7,12 +7,18 @@ exports.CardNodeSubtitle = void 0;
7
7
  var react_1 = __importDefault(require("react"));
8
8
  var prop_types_1 = __importDefault(require("prop-types"));
9
9
  // @ts-ignore
10
+ var classnames_1 = __importDefault(require("classnames"));
11
+ // @ts-ignore
10
12
  var settings_1 = __importDefault(require("carbon-components/src/globals/js/settings"));
11
13
  var prefix = settings_1.default.prefix;
12
14
  var namespace = prefix + "--cc--card-node";
13
15
  var CardNodeSubtitle = function (_a) {
14
- var children = _a.children;
15
- return (react_1.default.createElement("div", { className: namespace + "__subtitle" }, children));
16
+ var _b;
17
+ var children = _a.children, className = _a.className;
18
+ var classes = classnames_1.default(namespace + "__subtitle", (_b = {},
19
+ _b[className] = className,
20
+ _b));
21
+ return react_1.default.createElement("div", { className: classes }, children);
16
22
  };
17
23
  exports.CardNodeSubtitle = CardNodeSubtitle;
18
24
  CardNodeSubtitle.propTypes = {
@@ -20,4 +26,8 @@ CardNodeSubtitle.propTypes = {
20
26
  * Pass in the children that will be rendered within the CardNodeSubtitle
21
27
  */
22
28
  children: prop_types_1.default.node,
29
+ /**
30
+ * Provide an optional class to be applied on the outer element
31
+ */
32
+ className: prop_types_1.default.string,
23
33
  };
@@ -1,11 +1,15 @@
1
1
  import PropTypes from 'prop-types';
2
2
  declare const CardNodeTitle: {
3
- ({ children }: any): JSX.Element;
3
+ ({ children, className }: any): JSX.Element;
4
4
  propTypes: {
5
5
  /**
6
6
  * Pass in the children that will be rendered within the CardNodeTitle
7
7
  */
8
8
  children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
9
+ /**
10
+ * Provide an optional class to be applied on the outer element
11
+ */
12
+ className: PropTypes.Requireable<string>;
9
13
  };
10
14
  };
11
15
  export { CardNodeTitle };
@@ -7,12 +7,18 @@ exports.CardNodeTitle = void 0;
7
7
  var react_1 = __importDefault(require("react"));
8
8
  var prop_types_1 = __importDefault(require("prop-types"));
9
9
  // @ts-ignore
10
+ var classnames_1 = __importDefault(require("classnames"));
11
+ // @ts-ignore
10
12
  var settings_1 = __importDefault(require("carbon-components/src/globals/js/settings"));
11
13
  var prefix = settings_1.default.prefix;
12
14
  var namespace = prefix + "--cc--card-node";
13
15
  var CardNodeTitle = function (_a) {
14
- var children = _a.children;
15
- return (react_1.default.createElement("div", { className: namespace + "__title" }, children));
16
+ var _b;
17
+ var children = _a.children, className = _a.className;
18
+ var classes = classnames_1.default(namespace + "__title", (_b = {},
19
+ _b[className] = className,
20
+ _b));
21
+ return react_1.default.createElement("div", { className: classes }, children);
16
22
  };
17
23
  exports.CardNodeTitle = CardNodeTitle;
18
24
  CardNodeTitle.propTypes = {
@@ -20,4 +26,8 @@ CardNodeTitle.propTypes = {
20
26
  * Pass in the children that will be rendered within the CardNodeTitle
21
27
  */
22
28
  children: prop_types_1.default.node,
29
+ /**
30
+ * Provide an optional class to be applied on the outer element
31
+ */
32
+ className: prop_types_1.default.string,
23
33
  };
@@ -1,7 +1,11 @@
1
1
  import PropTypes from 'prop-types';
2
2
  declare const Edge: {
3
- ({ color, markerEnd, markerStart, onMouseEnter, onMouseOver, onMouseOut, onMouseLeave, onMouseMove, path, source, target, variant, }: any): JSX.Element;
3
+ ({ className, color, markerEnd, markerStart, onMouseEnter, onMouseOver, onMouseOut, onMouseLeave, onMouseMove, path, source, target, variant, }: any): JSX.Element;
4
4
  propTypes: {
5
+ /**
6
+ * Provide an optional class to be applied on the outer element
7
+ */
8
+ className: PropTypes.Requireable<string>;
5
9
  /**
6
10
  * Specify the edge's color
7
11
  */
@@ -13,10 +13,11 @@ var buildPaths_1 = require("@carbon/charts/components/diagrams/buildPaths");
13
13
  var prefix = settings_1.default.prefix;
14
14
  var Edge = function (_a) {
15
15
  var _b;
16
- var color = _a.color, markerEnd = _a.markerEnd, markerStart = _a.markerStart, _c = _a.onMouseEnter, onMouseEnter = _c === void 0 ? null : _c, _d = _a.onMouseOver, onMouseOver = _d === void 0 ? null : _d, _e = _a.onMouseOut, onMouseOut = _e === void 0 ? null : _e, _f = _a.onMouseLeave, onMouseLeave = _f === void 0 ? null : _f, _g = _a.onMouseMove, onMouseMove = _g === void 0 ? null : _g, path = _a.path, source = _a.source, target = _a.target, _h = _a.variant, variant = _h === void 0 ? null : _h;
16
+ var className = _a.className, color = _a.color, markerEnd = _a.markerEnd, markerStart = _a.markerStart, _c = _a.onMouseEnter, onMouseEnter = _c === void 0 ? null : _c, _d = _a.onMouseOver, onMouseOver = _d === void 0 ? null : _d, _e = _a.onMouseOut, onMouseOut = _e === void 0 ? null : _e, _f = _a.onMouseLeave, onMouseLeave = _f === void 0 ? null : _f, _g = _a.onMouseMove, onMouseMove = _g === void 0 ? null : _g, path = _a.path, source = _a.source, target = _a.target, _h = _a.variant, variant = _h === void 0 ? null : _h;
17
17
  var namespace = prefix + "--cc--edge";
18
18
  var pathClasses = classnames_1.default(namespace, (_b = {},
19
19
  _b[namespace + "--" + variant] = variant,
20
+ _b[className] = className,
20
21
  _b));
21
22
  var d = path || buildPaths_1.buildStraightPathString(source, target);
22
23
  return (react_1.default.createElement("g", { className: pathClasses, onMouseEnter: onMouseEnter, onMouseOver: onMouseOver, onMouseOut: onMouseOut, onMouseLeave: onMouseLeave, onMouseMove: onMouseMove },
@@ -26,6 +27,10 @@ var Edge = function (_a) {
26
27
  };
27
28
  exports.default = Edge;
28
29
  Edge.propTypes = {
30
+ /**
31
+ * Provide an optional class to be applied on the outer element
32
+ */
33
+ className: prop_types_1.default.string,
29
34
  /**
30
35
  * Specify the edge's color
31
36
  */
@@ -1,16 +1,20 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  declare const Marker: {
4
- ({ d, color, id, orient, height, width, position, refX, refY, }: any): JSX.Element;
4
+ ({ className, color, d, id, orient, height, width, position, refX, refY, }: any): JSX.Element;
5
5
  propTypes: {
6
6
  /**
7
- * Specify a path string
7
+ * Provide an optional class to be applied on the outer element
8
8
  */
9
- d: PropTypes.Requireable<string>;
9
+ className: PropTypes.Requireable<string>;
10
10
  /**
11
11
  * Specify the marker's color
12
12
  */
13
13
  color: PropTypes.Requireable<string>;
14
+ /**
15
+ * Specify a path string
16
+ */
17
+ d: PropTypes.Requireable<string>;
14
18
  /**
15
19
  * Specify an ID for the marker
16
20
  */
@@ -29,15 +29,21 @@ exports.TeeMarker = exports.SquareMarker = exports.DiamondMarker = exports.Circl
29
29
  var react_1 = __importDefault(require("react"));
30
30
  var prop_types_1 = __importDefault(require("prop-types"));
31
31
  // @ts-ignore
32
+ var classnames_1 = __importDefault(require("classnames"));
33
+ // @ts-ignore
32
34
  var settings_1 = __importDefault(require("carbon-components/src/globals/js/settings"));
33
35
  var markerDefinitions_1 = require("@carbon/charts/components/diagrams/markerDefinitions");
34
36
  var prefix = settings_1.default.prefix;
35
37
  var Marker = function (_a) {
36
- var d = _a.d, color = _a.color, id = _a.id, _b = _a.orient, orient = _b === void 0 ? 'auto' : _b, height = _a.height, width = _a.width, _c = _a.position, position = _c === void 0 ? 'end' : _c, refX = _a.refX, refY = _a.refY;
38
+ var _b;
39
+ var className = _a.className, color = _a.color, d = _a.d, id = _a.id, _c = _a.orient, orient = _c === void 0 ? 'auto' : _c, height = _a.height, width = _a.width, _d = _a.position, position = _d === void 0 ? 'end' : _d, refX = _a.refX, refY = _a.refY;
37
40
  var namespace = prefix + "--cc--marker";
41
+ var classes = classnames_1.default(namespace, (_b = {},
42
+ _b[className] = className,
43
+ _b));
38
44
  var xPos = position === 'end' ? width / 2 + 0.5 : 0.5;
39
45
  var yPos = height / 2;
40
- return (react_1.default.createElement("marker", { className: namespace, markerHeight: height, markerWidth: width, orient: orient, id: id, refX: refX || xPos, refY: refY || yPos, markerUnits: "userSpaceOnUse" },
46
+ return (react_1.default.createElement("marker", { className: classes, markerHeight: height, markerWidth: width, orient: orient, id: id, refX: refX || xPos, refY: refY || yPos, markerUnits: "userSpaceOnUse" },
41
47
  react_1.default.createElement("path", { d: d, style: { fill: color } })));
42
48
  };
43
49
  exports.default = Marker;
@@ -73,13 +79,17 @@ var TeeMarker = function (_a) {
73
79
  exports.TeeMarker = TeeMarker;
74
80
  Marker.propTypes = {
75
81
  /**
76
- * Specify a path string
82
+ * Provide an optional class to be applied on the outer element
77
83
  */
78
- d: prop_types_1.default.string,
84
+ className: prop_types_1.default.string,
79
85
  /**
80
86
  * Specify the marker's color
81
87
  */
82
88
  color: prop_types_1.default.string,
89
+ /**
90
+ * Specify a path string
91
+ */
92
+ d: prop_types_1.default.string,
83
93
  /**
84
94
  * Specify an ID for the marker
85
95
  */
@@ -1,10 +1,14 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  declare const ShapeNode: {
4
- ({ as, href, onClick, onMouseEnter, onMouseOver, onMouseOut, onMouseLeave, onMouseMove, position, bodyPosition, renderIcon, size, stacked, shape, subtitle, title, }: any): JSX.Element;
4
+ ({ as, className, href, onClick, onMouseEnter, onMouseOver, onMouseOut, onMouseLeave, onMouseMove, position, bodyPosition, renderIcon, size, stacked, shape, subtitle, title, }: any): JSX.Element;
5
5
  propTypes: {
6
6
  /** Provide a custom element to be rendered instead of the default */
7
7
  as: PropTypes.Requireable<string>;
8
+ /**
9
+ * Provide an optional class to be applied on the outer element
10
+ */
11
+ className: PropTypes.Requireable<string>;
8
12
  /**
9
13
  * Optionally specify an href for the CardNode to become an `<a>` element
10
14
  */
@@ -12,7 +12,7 @@ var classnames_1 = __importDefault(require("classnames"));
12
12
  var prefix = settings_1.default.prefix;
13
13
  var ShapeNode = function (_a) {
14
14
  var _b;
15
- var _c = _a.as, as = _c === void 0 ? 'div' : _c, _d = _a.href, href = _d === void 0 ? null : _d, _e = _a.onClick, onClick = _e === void 0 ? null : _e, _f = _a.onMouseEnter, onMouseEnter = _f === void 0 ? null : _f, _g = _a.onMouseOver, onMouseOver = _g === void 0 ? null : _g, _h = _a.onMouseOut, onMouseOut = _h === void 0 ? null : _h, _j = _a.onMouseLeave, onMouseLeave = _j === void 0 ? null : _j, _k = _a.onMouseMove, onMouseMove = _k === void 0 ? null : _k, _l = _a.position, position = _l === void 0 ? 'fixed' : _l, _m = _a.bodyPosition, bodyPosition = _m === void 0 ? 'absolute' : _m, renderIcon = _a.renderIcon, _o = _a.size, size = _o === void 0 ? 48 : _o, stacked = _a.stacked, _p = _a.shape, shape = _p === void 0 ? 'circle' : _p, subtitle = _a.subtitle, title = _a.title;
15
+ var _c = _a.as, as = _c === void 0 ? 'div' : _c, className = _a.className, _d = _a.href, href = _d === void 0 ? null : _d, _e = _a.onClick, onClick = _e === void 0 ? null : _e, _f = _a.onMouseEnter, onMouseEnter = _f === void 0 ? null : _f, _g = _a.onMouseOver, onMouseOver = _g === void 0 ? null : _g, _h = _a.onMouseOut, onMouseOut = _h === void 0 ? null : _h, _j = _a.onMouseLeave, onMouseLeave = _j === void 0 ? null : _j, _k = _a.onMouseMove, onMouseMove = _k === void 0 ? null : _k, _l = _a.position, position = _l === void 0 ? 'fixed' : _l, _m = _a.bodyPosition, bodyPosition = _m === void 0 ? 'absolute' : _m, renderIcon = _a.renderIcon, _o = _a.size, size = _o === void 0 ? 48 : _o, stacked = _a.stacked, _p = _a.shape, shape = _p === void 0 ? 'circle' : _p, subtitle = _a.subtitle, title = _a.title;
16
16
  var namespace = prefix + "--cc--shape-node";
17
17
  var Component = 'div';
18
18
  if (href) {
@@ -25,6 +25,7 @@ var ShapeNode = function (_a) {
25
25
  _b[namespace + "--stacked"] = stacked,
26
26
  _b[namespace + "--" + shape] = shape,
27
27
  _b[namespace + "--" + Component] = Component,
28
+ _b[className] = className,
28
29
  _b));
29
30
  var titleElement = title ? (react_1.default.createElement("div", { className: namespace + "__title" }, title)) : null;
30
31
  var subtitleElement = subtitle ? (react_1.default.createElement("div", { className: namespace + "__subtitle" }, subtitle)) : null;
@@ -39,6 +40,10 @@ var ShapeNode = function (_a) {
39
40
  ShapeNode.propTypes = {
40
41
  /** Provide a custom element to be rendered instead of the default */
41
42
  as: prop_types_1.default.oneOf(['div', 'a', 'button']),
43
+ /**
44
+ * Provide an optional class to be applied on the outer element
45
+ */
46
+ className: prop_types_1.default.string,
42
47
  /**
43
48
  * Optionally specify an href for the CardNode to become an `<a>` element
44
49
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carbon/charts-react",
3
- "version": "0.52.4",
3
+ "version": "0.53.3",
4
4
  "description": "Carbon charting components for React",
5
5
  "main": "./bundle.js",
6
6
  "module": "./index.js",
@@ -49,7 +49,7 @@
49
49
  },
50
50
  "homepage": "https://github.com/carbon-design-system/carbon-charts#readme",
51
51
  "dependencies": {
52
- "@carbon/charts": "^0.52.4",
52
+ "@carbon/charts": "^0.53.3",
53
53
  "@carbon/icons-react": "^10.32.0",
54
54
  "@carbon/telemetry": "0.0.0-alpha.6"
55
55
  },