@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 +31 -2
- package/build/index.es.js.map +1 -1
- package/build/index.js +31 -2
- package/build/index.js.map +1 -1
- package/package.json +2 -2
package/build/index.js
CHANGED
|
@@ -184,6 +184,31 @@ function SvgCheckCircle(props) {
|
|
|
184
184
|
})))));
|
|
185
185
|
}
|
|
186
186
|
|
|
187
|
+
var _g$1b, _defs$G;
|
|
188
|
+
|
|
189
|
+
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); }
|
|
190
|
+
|
|
191
|
+
function SvgXCircle(props) {
|
|
192
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$24({
|
|
193
|
+
viewBox: "0 0 16 16",
|
|
194
|
+
fill: "none",
|
|
195
|
+
strokeLinecap: "round",
|
|
196
|
+
strokeLinejoin: "round",
|
|
197
|
+
width: "1em",
|
|
198
|
+
height: "1em"
|
|
199
|
+
}, props), _g$1b || (_g$1b = /*#__PURE__*/React__namespace.createElement("g", {
|
|
200
|
+
clipPath: "url(#x-circle_svg__clip0_8_6136)",
|
|
201
|
+
stroke: "currentColor"
|
|
202
|
+
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
203
|
+
d: "M8 14.667A6.667 6.667 0 108 1.334a6.667 6.667 0 000 13.333zM10 6l-4 4m0-4l4 4"
|
|
204
|
+
}))), _defs$G || (_defs$G = /*#__PURE__*/React__namespace.createElement("defs", null, /*#__PURE__*/React__namespace.createElement("clipPath", {
|
|
205
|
+
id: "x-circle_svg__clip0_8_6136"
|
|
206
|
+
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
207
|
+
fill: "currentColor",
|
|
208
|
+
d: "M0 0h16v16H0z"
|
|
209
|
+
})))));
|
|
210
|
+
}
|
|
211
|
+
|
|
187
212
|
var _g$13, _defs$A;
|
|
188
213
|
|
|
189
214
|
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); }
|
|
@@ -549,7 +574,7 @@ Checkbox.displayName = 'Checkbox';
|
|
|
549
574
|
|
|
550
575
|
var getBackground = function (theme) { return function (props) {
|
|
551
576
|
var variant = props.variant, severity = props.severity;
|
|
552
|
-
var background;
|
|
577
|
+
var background = theme.palette.grey[100];
|
|
553
578
|
var backgrounds = {
|
|
554
579
|
outlined: 'none',
|
|
555
580
|
error: 'error.main',
|
|
@@ -618,6 +643,9 @@ var useChipStyles = styles.makeStyles(function (theme) { return ({
|
|
|
618
643
|
height: theme.spacing(2),
|
|
619
644
|
width: theme.spacing(2),
|
|
620
645
|
},
|
|
646
|
+
deleteIcon: {
|
|
647
|
+
color: theme.palette.grey[500],
|
|
648
|
+
},
|
|
621
649
|
}); });
|
|
622
650
|
|
|
623
651
|
var IconDictionary = {
|
|
@@ -630,7 +658,8 @@ var Chip = function (props) {
|
|
|
630
658
|
var severity = props.severity, restProps = __rest(props, ["severity"]);
|
|
631
659
|
var classes = useChipStyles(props);
|
|
632
660
|
var icon = severity ? React__default['default'].createElement(IconDictionary[severity]) : undefined;
|
|
633
|
-
|
|
661
|
+
var deleteIcon = React__default['default'].createElement(SvgXCircle);
|
|
662
|
+
return React__default['default'].createElement(MuiChip__default['default'], __assign({ classes: classes, icon: icon, deleteIcon: deleteIcon }, restProps));
|
|
634
663
|
};
|
|
635
664
|
Chip.displayName = 'Chip';
|
|
636
665
|
|