@thecb/components 8.2.0-beta.2 → 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.cjs.js CHANGED
@@ -18780,14 +18780,14 @@ var fallbackValues$7 = {
18780
18780
  var StyledBadgeContainer = styled__default(Box).withConfig({
18781
18781
  displayName: "Badge__StyledBadgeContainer",
18782
18782
  componentId: "sc-1g438j-0"
18783
- })(["display:flex;padding:2px 8px;align-items:center;gap:4px;border-radius:4px;background-color:", ";"], function (_ref) {
18783
+ })(["display:inline-flex;padding:2px 8px;align-items:center;align-self:flex-start;gap:4px;border-radius:4px;background-color:", ";"], function (_ref) {
18784
18784
  var themeValues = _ref.themeValues;
18785
18785
  return themeValues.background;
18786
18786
  });
18787
18787
  var StyledBadge = styled__default(Text$1).withConfig({
18788
18788
  displayName: "Badge__StyledBadge",
18789
18789
  componentId: "sc-1g438j-1"
18790
- })(["font-family:\"Public Sans\";font-size:10px;font-style:normal;font-weight:400;line-height:150%;letter-spacing:0.2px;color:", ";@media screen and (min-width:1049px){font-size:12px;line-height:150%;letter-spacing:0.24px;}"], function (_ref2) {
18790
+ })(["font-family:\"Public Sans\",sans-serif;font-size:10px;font-style:normal;font-weight:400;line-height:150%;letter-spacing:0.2px;color:", ";@media screen and (min-width:1049px){font-size:12px;line-height:150%;letter-spacing:0.24px;}"], function (_ref2) {
18791
18791
  var themeValues = _ref2.themeValues;
18792
18792
  return themeValues.color;
18793
18793
  });
@@ -18795,14 +18795,18 @@ var StyledBadge = styled__default(Text$1).withConfig({
18795
18795
  var Badge = function Badge(_ref3) {
18796
18796
  var label = _ref3.label,
18797
18797
  Icon = _ref3.Icon,
18798
- themeValues = _ref3.themeValues;
18798
+ themeValues = _ref3.themeValues,
18799
+ _ref3$iconOnLeft = _ref3.iconOnLeft,
18800
+ iconOnLeft = _ref3$iconOnLeft === void 0 ? true : _ref3$iconOnLeft;
18799
18801
  return /*#__PURE__*/React__default.createElement(StyledBadgeContainer, {
18800
18802
  themeValues: themeValues
18801
- }, Icon && /*#__PURE__*/React__default.createElement(Icon, {
18803
+ }, iconOnLeft && Icon && /*#__PURE__*/React__default.createElement(Icon, {
18802
18804
  fill: themeValues.color
18803
18805
  }), /*#__PURE__*/React__default.createElement(StyledBadge, {
18804
18806
  themeValues: themeValues
18805
- }, label));
18807
+ }, label), !iconOnLeft && Icon && /*#__PURE__*/React__default.createElement(Icon, {
18808
+ fill: themeValues.color
18809
+ }));
18806
18810
  };
18807
18811
 
18808
18812
  var Badge$1 = themeComponent(Badge, "Badge", fallbackValues$7, "success");