ywana-core8 0.0.755 → 0.0.756
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.cjs +4 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +4 -3
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +4 -3
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/html/chip.js +3 -3
package/dist/index.modern.js
CHANGED
@@ -507,7 +507,8 @@ var Chip = function Chip(props) {
|
|
507
507
|
action = props.action,
|
508
508
|
outlined = props.outlined,
|
509
509
|
selected = props.selected,
|
510
|
-
onSelect = props.onSelect
|
510
|
+
onSelect = props.onSelect,
|
511
|
+
className = props.className;
|
511
512
|
|
512
513
|
function select(event) {
|
513
514
|
event.stopPropagation();
|
@@ -518,7 +519,7 @@ var Chip = function Chip(props) {
|
|
518
519
|
var style = outlined ? "outlined" : "normal";
|
519
520
|
if (selected) style = style + " selected";
|
520
521
|
return tooltip ? /*#__PURE__*/React.createElement(Tooltip, tooltip, /*#__PURE__*/React.createElement("div", {
|
521
|
-
className: "chip " + style,
|
522
|
+
className: "chip " + className + " " + style,
|
522
523
|
onClick: select
|
523
524
|
}, icon ? /*#__PURE__*/React.createElement(Icon, {
|
524
525
|
icon: icon,
|
@@ -526,7 +527,7 @@ var Chip = function Chip(props) {
|
|
526
527
|
}) : null, /*#__PURE__*/React.createElement("main", null, /*#__PURE__*/React.createElement(Text, null, label)), action ? /*#__PURE__*/React.createElement("span", {
|
527
528
|
className: "meta"
|
528
529
|
}, action) : null)) : /*#__PURE__*/React.createElement("div", {
|
529
|
-
className: "chip " + style,
|
530
|
+
className: "chip " + className + " " + style,
|
530
531
|
onClick: select
|
531
532
|
}, icon ? /*#__PURE__*/React.createElement(Icon, {
|
532
533
|
icon: icon,
|