@thecb/components 8.2.0-beta.3 → 8.2.0-beta.4

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.esm.js CHANGED
@@ -18772,7 +18772,7 @@ var fallbackValues$7 = {
18772
18772
  var StyledBadgeContainer = styled(Box).withConfig({
18773
18773
  displayName: "Badge__StyledBadgeContainer",
18774
18774
  componentId: "sc-1g438j-0"
18775
- })(["display:inline-flex;padding:2px 8px;align-items:center;gap:4px;border-radius:4px;background-color:", ";"], function (_ref) {
18775
+ })(["display:inline-flex;padding:2px 8px;align-items:center;align-self:flex-start;gap:4px;border-radius:4px;background-color:", ";"], function (_ref) {
18776
18776
  var themeValues = _ref.themeValues;
18777
18777
  return themeValues.background;
18778
18778
  });
@@ -18787,14 +18787,18 @@ var StyledBadge = styled(Text$1).withConfig({
18787
18787
  var Badge = function Badge(_ref3) {
18788
18788
  var label = _ref3.label,
18789
18789
  Icon = _ref3.Icon,
18790
- themeValues = _ref3.themeValues;
18790
+ themeValues = _ref3.themeValues,
18791
+ _ref3$iconOnLeft = _ref3.iconOnLeft,
18792
+ iconOnLeft = _ref3$iconOnLeft === void 0 ? true : _ref3$iconOnLeft;
18791
18793
  return /*#__PURE__*/React.createElement(StyledBadgeContainer, {
18792
18794
  themeValues: themeValues
18793
- }, Icon && /*#__PURE__*/React.createElement(Icon, {
18795
+ }, iconOnLeft && Icon && /*#__PURE__*/React.createElement(Icon, {
18794
18796
  fill: themeValues.color
18795
18797
  }), /*#__PURE__*/React.createElement(StyledBadge, {
18796
18798
  themeValues: themeValues
18797
- }, label));
18799
+ }, label), !iconOnLeft && Icon && /*#__PURE__*/React.createElement(Icon, {
18800
+ fill: themeValues.color
18801
+ }));
18798
18802
  };
18799
18803
 
18800
18804
  var Badge$1 = themeComponent(Badge, "Badge", fallbackValues$7, "success");