ywana-core8 0.0.754 → 0.0.755
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 +10 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +10 -1
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +10 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/html/chip.js +12 -3
package/dist/index.cjs
CHANGED
@@ -511,6 +511,7 @@ var Chip = function Chip(props) {
|
|
511
511
|
var id = props.id,
|
512
512
|
icon = props.icon,
|
513
513
|
label = props.label,
|
514
|
+
tooltip = props.tooltip,
|
514
515
|
action = props.action,
|
515
516
|
outlined = props.outlined,
|
516
517
|
selected = props.selected,
|
@@ -524,7 +525,15 @@ var Chip = function Chip(props) {
|
|
524
525
|
|
525
526
|
var style = outlined ? "outlined" : "normal";
|
526
527
|
if (selected) style = style + " selected";
|
527
|
-
return /*#__PURE__*/React__default["default"].createElement("div", {
|
528
|
+
return tooltip ? /*#__PURE__*/React__default["default"].createElement(Tooltip, tooltip, /*#__PURE__*/React__default["default"].createElement("div", {
|
529
|
+
className: "chip " + style,
|
530
|
+
onClick: select
|
531
|
+
}, icon ? /*#__PURE__*/React__default["default"].createElement(Icon, {
|
532
|
+
icon: icon,
|
533
|
+
size: "small"
|
534
|
+
}) : null, /*#__PURE__*/React__default["default"].createElement("main", null, /*#__PURE__*/React__default["default"].createElement(Text, null, label)), action ? /*#__PURE__*/React__default["default"].createElement("span", {
|
535
|
+
className: "meta"
|
536
|
+
}, action) : null)) : /*#__PURE__*/React__default["default"].createElement("div", {
|
528
537
|
className: "chip " + style,
|
529
538
|
onClick: select
|
530
539
|
}, icon ? /*#__PURE__*/React__default["default"].createElement(Icon, {
|