@portnet/ui 0.1.31 → 0.1.33

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.
@@ -13,6 +13,9 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
13
13
  var React = _interopRequireWildcard(require("react"));
14
14
  var _apperance = require("../../config/apperance");
15
15
  var _PuiTooltip = _interopRequireDefault(require("./PuiTooltip"));
16
+ var _CheckCircle = _interopRequireDefault(require("@mui/icons-material/CheckCircle"));
17
+ var _Error = _interopRequireDefault(require("@mui/icons-material/Error"));
18
+ var _HourglassEmpty = _interopRequireDefault(require("@mui/icons-material/HourglassEmpty"));
16
19
  var _jsxRuntime = require("react/jsx-runtime");
17
20
  const _excluded = ["id", "className", "sx", "color", "fullWidth", "children", "icon"];
18
21
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
@@ -46,6 +49,23 @@ const PrimaryChip = (0, _styles.styled)( /*#__PURE__*/React.forwardRef((props, r
46
49
  }
47
50
  };
48
51
  });
52
+ const iconMapping = {
53
+ success: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CheckCircle.default, {
54
+ style: {
55
+ color: 'white'
56
+ }
57
+ }),
58
+ error: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Error.default, {
59
+ style: {
60
+ color: 'white'
61
+ }
62
+ }),
63
+ info: /*#__PURE__*/(0, _jsxRuntime.jsx)(_HourglassEmpty.default, {
64
+ style: {
65
+ color: 'white'
66
+ }
67
+ })
68
+ };
49
69
  const SecondaryChip = (0, _styles.styled)( /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/(0, _jsxRuntime.jsx)(StyledChip, _objectSpread({
50
70
  ref: ref
51
71
  }, props))))(() => {
@@ -134,7 +154,7 @@ const PuiChip = /*#__PURE__*/React.forwardRef((_ref, ref) => {
134
154
  }),
135
155
  className,
136
156
  label: children,
137
- icon: icon ? /*#__PURE__*/(0, _jsxRuntime.jsx)(Avatar, {
157
+ icon: icon ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Avatar, {
138
158
  children: iconMapping[icon]
139
159
  }) : null
140
160
  }, rest))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@portnet/ui",
3
- "version": "0.1.31",
3
+ "version": "0.1.33",
4
4
  "description": "Portnet UI",
5
5
  "keywords": [
6
6
  "react",