ywana-core8 0.0.883 → 0.0.885

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.
@@ -840,12 +840,15 @@ var MenuItem = function MenuItem(props) {
840
840
  }
841
841
  }
842
842
  var style = disabled ? "disabled" : "";
843
+ var labelTxt = label ? /*#__PURE__*/React.createElement(Text, {
844
+ format: TEXTFORMATS.STRING
845
+ }, label) : null;
843
846
  return /*#__PURE__*/React.createElement("li", {
844
847
  className: "menu-item " + style,
845
848
  onClick: select
846
849
  }, icon ? /*#__PURE__*/React.createElement(Icon, {
847
850
  icon: icon
848
- }) : null, /*#__PURE__*/React.createElement("label", null, label), meta ? /*#__PURE__*/React.createElement("div", {
851
+ }) : null, /*#__PURE__*/React.createElement("label", null, labelTxt), meta ? /*#__PURE__*/React.createElement("div", {
849
852
  className: "meta"
850
853
  }, meta) : null);
851
854
  };
@@ -1045,13 +1048,16 @@ var Tab = function Tab(props) {
1045
1048
  if (onSelect) onSelect(id);
1046
1049
  }
1047
1050
  var style = selected ? "selected" : "";
1051
+ var labelTxt = label ? /*#__PURE__*/React.createElement(Text, {
1052
+ format: TEXTFORMATS.STRING
1053
+ }, label) : null;
1048
1054
  return /*#__PURE__*/React.createElement("div", {
1049
1055
  className: "tab " + style,
1050
1056
  onClick: select
1051
1057
  }, icon ? /*#__PURE__*/React.createElement(Icon, {
1052
1058
  icon: icon,
1053
1059
  size: "small"
1054
- }) : null, label, actions ? actions : null);
1060
+ }) : null, labelTxt, actions ? actions : null);
1055
1061
  };
1056
1062
 
1057
1063
  /**