pallote-react 0.15.6 → 0.15.8

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/dist/index.js CHANGED
@@ -492,6 +492,7 @@ CardContent.propTypes = {
492
492
  };
493
493
 
494
494
  const CardHeader = ({
495
+ icon,
495
496
  label,
496
497
  title,
497
498
  subtitle,
@@ -503,7 +504,9 @@ const CardHeader = ({
503
504
  className: classnames(['card_header', className])
504
505
  }, props), actions && /*#__PURE__*/React__default.createElement("div", {
505
506
  className: "card_headerActions"
506
- }, actions), label ? /*#__PURE__*/React__default.createElement(Text, {
507
+ }, actions), icon ? /*#__PURE__*/React__default.cloneElement(icon, {
508
+ className: `${icon.props.className ?? ''} card_icon`
509
+ }) : null, label ? /*#__PURE__*/React__default.createElement(Text, {
507
510
  className: classnames('card_label')
508
511
  }, label) : null, /*#__PURE__*/React__default.createElement(Text, {
509
512
  className: classnames('card_title')
@@ -512,6 +515,7 @@ const CardHeader = ({
512
515
  }, subtitle) : null);
513
516
  };
514
517
  CardHeader.propTypes = {
518
+ icon: PropTypes.node,
515
519
  label: PropTypes.string,
516
520
  title: PropTypes.string.isRequired,
517
521
  subtitle: PropTypes.string,
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pallote-react",
3
- "version": "0.15.6",
3
+ "version": "0.15.8",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "styles": "dist/index.css",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pallote-react",
3
- "version": "0.15.6",
3
+ "version": "0.15.8",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "styles": "dist/index.css",
@@ -23,7 +23,7 @@
23
23
  "classnames": "^2.5.1",
24
24
  "react-syntax-highlighter": "^15.6.1",
25
25
  "sass": "^1.71.1",
26
- "pallote-css": "^0.9.7"
26
+ "pallote-css": "^0.9.8"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@chromatic-com/storybook": "^3.2.4",