ywana-core8 0.0.754 → 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 CHANGED
@@ -511,10 +511,12 @@ 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,
517
- onSelect = props.onSelect;
518
+ onSelect = props.onSelect,
519
+ className = props.className;
518
520
 
519
521
  function select(event) {
520
522
  event.stopPropagation();
@@ -524,8 +526,16 @@ var Chip = function Chip(props) {
524
526
 
525
527
  var style = outlined ? "outlined" : "normal";
526
528
  if (selected) style = style + " selected";
527
- return /*#__PURE__*/React__default["default"].createElement("div", {
528
- className: "chip " + style,
529
+ return tooltip ? /*#__PURE__*/React__default["default"].createElement(Tooltip, tooltip, /*#__PURE__*/React__default["default"].createElement("div", {
530
+ className: "chip " + className + " " + style,
531
+ onClick: select
532
+ }, icon ? /*#__PURE__*/React__default["default"].createElement(Icon, {
533
+ icon: icon,
534
+ size: "small"
535
+ }) : null, /*#__PURE__*/React__default["default"].createElement("main", null, /*#__PURE__*/React__default["default"].createElement(Text, null, label)), action ? /*#__PURE__*/React__default["default"].createElement("span", {
536
+ className: "meta"
537
+ }, action) : null)) : /*#__PURE__*/React__default["default"].createElement("div", {
538
+ className: "chip " + className + " " + style,
529
539
  onClick: select
530
540
  }, icon ? /*#__PURE__*/React__default["default"].createElement(Icon, {
531
541
  icon: icon,