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.
@@ -503,10 +503,12 @@ 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,
509
- onSelect = props.onSelect;
510
+ onSelect = props.onSelect,
511
+ className = props.className;
510
512
 
511
513
  function select(event) {
512
514
  event.stopPropagation();
@@ -516,8 +518,16 @@ var Chip = function Chip(props) {
516
518
 
517
519
  var style = outlined ? "outlined" : "normal";
518
520
  if (selected) style = style + " selected";
519
- return /*#__PURE__*/React.createElement("div", {
520
- className: "chip " + style,
521
+ return tooltip ? /*#__PURE__*/React.createElement(Tooltip, tooltip, /*#__PURE__*/React.createElement("div", {
522
+ className: "chip " + className + " " + style,
523
+ onClick: select
524
+ }, icon ? /*#__PURE__*/React.createElement(Icon, {
525
+ icon: icon,
526
+ size: "small"
527
+ }) : null, /*#__PURE__*/React.createElement("main", null, /*#__PURE__*/React.createElement(Text, null, label)), action ? /*#__PURE__*/React.createElement("span", {
528
+ className: "meta"
529
+ }, action) : null)) : /*#__PURE__*/React.createElement("div", {
530
+ className: "chip " + className + " " + style,
521
531
  onClick: select
522
532
  }, icon ? /*#__PURE__*/React.createElement(Icon, {
523
533
  icon: icon,