ywana-core8 0.0.753 → 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.
@@ -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, {
@@ -1863,7 +1872,7 @@ var DataTableRow = function DataTableRow(props) {
1863
1872
  isInfoOpen = _useState3[0],
1864
1873
  toggleInfo = _useState3[1];
1865
1874
 
1866
- var infoIcon = isInfoOpen ? 'expand_more' : 'expand_less';
1875
+ var infoIcon = isInfoOpen ? 'expand_less' : 'expand_more';
1867
1876
  var style = isInfoOpen ? "expanded" : "";
1868
1877
  if (selected) style += " selected";
1869
1878
  return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement("tr", {