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.modern.js
CHANGED
@@ -503,6 +503,7 @@ var Chip = function Chip(props) {
|
|
503
503
|
var id = props.id,
|
504
504
|
icon = props.icon,
|
505
505
|
label = props.label,
|
506
|
+
tooltip = props.tooltip,
|
506
507
|
action = props.action,
|
507
508
|
outlined = props.outlined,
|
508
509
|
selected = props.selected,
|
@@ -516,7 +517,15 @@ var Chip = function Chip(props) {
|
|
516
517
|
|
517
518
|
var style = outlined ? "outlined" : "normal";
|
518
519
|
if (selected) style = style + " selected";
|
519
|
-
return /*#__PURE__*/React.createElement("div", {
|
520
|
+
return tooltip ? /*#__PURE__*/React.createElement(Tooltip, tooltip, /*#__PURE__*/React.createElement("div", {
|
521
|
+
className: "chip " + style,
|
522
|
+
onClick: select
|
523
|
+
}, icon ? /*#__PURE__*/React.createElement(Icon, {
|
524
|
+
icon: icon,
|
525
|
+
size: "small"
|
526
|
+
}) : null, /*#__PURE__*/React.createElement("main", null, /*#__PURE__*/React.createElement(Text, null, label)), action ? /*#__PURE__*/React.createElement("span", {
|
527
|
+
className: "meta"
|
528
|
+
}, action) : null)) : /*#__PURE__*/React.createElement("div", {
|
520
529
|
className: "chip " + style,
|
521
530
|
onClick: select
|
522
531
|
}, icon ? /*#__PURE__*/React.createElement(Icon, {
|