@uncinc/uncinc-react-kitchen-sink 2.13.1 → 2.13.2

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.
@@ -9,6 +9,7 @@ import c from 'classnames';
9
9
  import AnimateHeight from 'react-animate-height';
10
10
  import useControlledState from 'ucs';
11
11
  import WysiwygField from '../../WysiwygField';
12
+ import Icon from '../../Icon';
12
13
  var ContentParsed = function ContentParsed(_ref) {
13
14
  var children = _ref.children;
14
15
  if (typeof children === 'string') {
@@ -29,6 +30,7 @@ var AccordionItem = function AccordionItem(props) {
29
30
  var title = props.title,
30
31
  content = props.content,
31
32
  iconClassName = props.iconClassName,
33
+ materialIconName = props.materialIconName,
32
34
  duration = props.duration,
33
35
  easing = props.easing,
34
36
  titleComponent = props.titleComponent,
@@ -54,7 +56,11 @@ var AccordionItem = function AccordionItem(props) {
54
56
  onClick: function onClick() {
55
57
  return setCollapsed(!collapsed);
56
58
  }
57
- }, /*#__PURE__*/React.createElement("span", {
59
+ }, materialIconName ? /*#__PURE__*/React.createElement(Icon, {
60
+ name: materialIconName,
61
+ flair: "outlined",
62
+ className: iconClassName
63
+ }) : /*#__PURE__*/React.createElement("span", {
58
64
  className: iconClasses
59
65
  }), title)), /*#__PURE__*/React.createElement(AnimateHeight, {
60
66
  duration: duration,
@@ -9,7 +9,7 @@
9
9
 
10
10
  button {
11
11
  display: block;
12
- border: none;
12
+ border: 0;
13
13
  background: none;
14
14
  padding: 0;
15
15
  font-size: inherit;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uncinc/uncinc-react-kitchen-sink",
3
- "version": "2.13.1",
3
+ "version": "2.13.2",
4
4
  "description": "Default React components that are easily extended.",
5
5
  "author": "uncinc",
6
6
  "license": "MIT",