@zohodesk/dot 1.0.0-temp-57 → 1.0.0-temp-58

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.
@@ -15,14 +15,15 @@ export default class ImportantNotes extends React.Component {
15
15
  iconSize,
16
16
  children,
17
17
  iconClass,
18
- isCover
18
+ isCover,
19
+ className
19
20
  } = this.props;
20
21
  return /*#__PURE__*/React.createElement(Container, {
21
22
  isInline: !isCover,
22
23
  isCover: false,
23
24
  alignBox: "row",
24
25
  align: "top",
25
- className: style.section
26
+ className: `${style.section} ${className || ''}`
26
27
  }, iconName ? /*#__PURE__*/React.createElement(Box, {
27
28
  className: style.icon,
28
29
  align: "start"
@@ -43,7 +44,8 @@ ImportantNotes.propTypes = {
43
44
  iconName: PropTypes.string,
44
45
  iconSize: PropTypes.string,
45
46
  isCover: PropTypes.bool,
46
- text: PropTypes.string
47
+ text: PropTypes.string,
48
+ className: PropTypes.string
47
49
  };
48
50
  ImportantNotes.defaultProps = {
49
51
  iconName: 'ZD-helpCentre',
@@ -59,13 +59,14 @@ var ImportantNotes = /*#__PURE__*/function (_React$Component) {
59
59
  iconSize = _this$props.iconSize,
60
60
  children = _this$props.children,
61
61
  iconClass = _this$props.iconClass,
62
- isCover = _this$props.isCover;
62
+ isCover = _this$props.isCover,
63
+ className = _this$props.className;
63
64
  return /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
64
65
  isInline: !isCover,
65
66
  isCover: false,
66
67
  alignBox: "row",
67
68
  align: "top",
68
- className: _ImportantNotesModule["default"].section
69
+ className: "".concat(_ImportantNotesModule["default"].section, " ").concat(className || '')
69
70
  }, iconName ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
70
71
  className: _ImportantNotesModule["default"].icon,
71
72
  align: "start"
@@ -90,7 +91,8 @@ ImportantNotes.propTypes = {
90
91
  iconName: _propTypes["default"].string,
91
92
  iconSize: _propTypes["default"].string,
92
93
  isCover: _propTypes["default"].bool,
93
- text: _propTypes["default"].string
94
+ text: _propTypes["default"].string,
95
+ className: _propTypes["default"].string
94
96
  };
95
97
  ImportantNotes.defaultProps = {
96
98
  iconName: 'ZD-helpCentre',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohodesk/dot",
3
- "version": "1.0.0-temp-57",
3
+ "version": "1.0.0-temp-58",
4
4
  "main": "lib/index",
5
5
  "module": "es/index.js",
6
6
  "jsnext:main": "es/index.js",
@@ -10,14 +10,14 @@ export default class ImportantNotes extends React.Component {
10
10
  }
11
11
 
12
12
  render() {
13
- let { text, iconName, iconSize, children, iconClass, isCover } = this.props;
13
+ let { text, iconName, iconSize, children, iconClass, isCover, className } = this.props;
14
14
  return (
15
15
  <Container
16
16
  isInline={!isCover}
17
17
  isCover={false}
18
18
  alignBox='row'
19
19
  align='top'
20
- className={style.section}
20
+ className={`${style.section} ${className || ''}`}
21
21
  >
22
22
  {iconName ? (
23
23
  <Box className={style.icon} align='start'>
@@ -40,7 +40,8 @@ ImportantNotes.propTypes = {
40
40
  iconName: PropTypes.string,
41
41
  iconSize: PropTypes.string,
42
42
  isCover: PropTypes.bool,
43
- text: PropTypes.string
43
+ text: PropTypes.string,
44
+ className: PropTypes.string
44
45
  };
45
46
  ImportantNotes.defaultProps = {
46
47
  iconName: 'ZD-helpCentre',