@popmenu/common-ui 0.46.0 → 0.48.0

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/build/index.es.js CHANGED
@@ -117,6 +117,31 @@ function SvgCheckCircle(props) {
117
117
  })))));
118
118
  }
119
119
 
120
+ var _g$1b, _defs$G;
121
+
122
+ function _extends$24() { _extends$24 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$24.apply(this, arguments); }
123
+
124
+ function SvgXCircle(props) {
125
+ return /*#__PURE__*/React.createElement("svg", _extends$24({
126
+ viewBox: "0 0 16 16",
127
+ fill: "none",
128
+ strokeLinecap: "round",
129
+ strokeLinejoin: "round",
130
+ width: "1em",
131
+ height: "1em"
132
+ }, props), _g$1b || (_g$1b = /*#__PURE__*/React.createElement("g", {
133
+ clipPath: "url(#x-circle_svg__clip0_8_6136)",
134
+ stroke: "currentColor"
135
+ }, /*#__PURE__*/React.createElement("path", {
136
+ d: "M8 14.667A6.667 6.667 0 108 1.334a6.667 6.667 0 000 13.333zM10 6l-4 4m0-4l4 4"
137
+ }))), _defs$G || (_defs$G = /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
138
+ id: "x-circle_svg__clip0_8_6136"
139
+ }, /*#__PURE__*/React.createElement("path", {
140
+ fill: "currentColor",
141
+ d: "M0 0h16v16H0z"
142
+ })))));
143
+ }
144
+
120
145
  var _g$13, _defs$A;
121
146
 
122
147
  function _extends$1V() { _extends$1V = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1V.apply(this, arguments); }
@@ -482,7 +507,7 @@ Checkbox.displayName = 'Checkbox';
482
507
 
483
508
  var getBackground = function (theme) { return function (props) {
484
509
  var variant = props.variant, severity = props.severity;
485
- var background;
510
+ var background = theme.palette.grey[100];
486
511
  var backgrounds = {
487
512
  outlined: 'none',
488
513
  error: 'error.main',
@@ -551,6 +576,9 @@ var useChipStyles = makeStyles$1(function (theme) { return ({
551
576
  height: theme.spacing(2),
552
577
  width: theme.spacing(2),
553
578
  },
579
+ deleteIcon: {
580
+ color: theme.palette.grey[500],
581
+ },
554
582
  }); });
555
583
 
556
584
  var IconDictionary = {
@@ -563,7 +591,8 @@ var Chip = function (props) {
563
591
  var severity = props.severity, restProps = __rest(props, ["severity"]);
564
592
  var classes = useChipStyles(props);
565
593
  var icon = severity ? React__default.createElement(IconDictionary[severity]) : undefined;
566
- return React__default.createElement(MuiChip, __assign({ classes: classes, icon: icon }, restProps));
594
+ var deleteIcon = React__default.createElement(SvgXCircle);
595
+ return React__default.createElement(MuiChip, __assign({ classes: classes, icon: icon, deleteIcon: deleteIcon }, restProps));
567
596
  };
568
597
  Chip.displayName = 'Chip';
569
598