@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.esm.js
CHANGED
|
@@ -18772,14 +18772,14 @@ var fallbackValues$7 = {
|
|
|
18772
18772
|
var StyledBadgeContainer = styled(Box).withConfig({
|
|
18773
18773
|
displayName: "Badge__StyledBadgeContainer",
|
|
18774
18774
|
componentId: "sc-1g438j-0"
|
|
18775
|
-
})(["display: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
|
});
|
|
18779
18779
|
var StyledBadge = styled(Text$1).withConfig({
|
|
18780
18780
|
displayName: "Badge__StyledBadge",
|
|
18781
18781
|
componentId: "sc-1g438j-1"
|
|
18782
|
-
})(["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) {
|
|
18782
|
+
})(["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) {
|
|
18783
18783
|
var themeValues = _ref2.themeValues;
|
|
18784
18784
|
return themeValues.color;
|
|
18785
18785
|
});
|
|
@@ -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");
|