@sproutsocial/racine 23.2.0 → 23.2.1
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/CHANGELOG.md +6 -0
- package/commonjs/Badge/Badge.js +5 -3
- package/lib/Badge/Badge.js +5 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/commonjs/Badge/Badge.js
CHANGED
|
@@ -36,8 +36,9 @@ var Badge = function Badge(_ref) {
|
|
|
36
36
|
if (children && text) {
|
|
37
37
|
throw new Error("can't use both `children` and `text` props. Text is deprecated, consider using children.");
|
|
38
38
|
}
|
|
39
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.default
|
|
40
|
-
|
|
39
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.default
|
|
40
|
+
// size previously included default, which currently maps to small. Once consumers have updated this can be simplified.
|
|
41
|
+
, _objectSpread(_objectSpread({
|
|
41
42
|
size: size === "default" ? "large" : size,
|
|
42
43
|
badgeColor: badgeColor,
|
|
43
44
|
"data-tip": tip,
|
|
@@ -49,7 +50,8 @@ var Badge = function Badge(_ref) {
|
|
|
49
50
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
50
51
|
// @ts-ignore
|
|
51
52
|
,
|
|
52
|
-
color: color
|
|
53
|
+
color: color
|
|
54
|
+
}, rest), {}, {
|
|
53
55
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_Box.default, {
|
|
54
56
|
display: "flex",
|
|
55
57
|
alignItems: "center",
|
package/lib/Badge/Badge.js
CHANGED
|
@@ -28,8 +28,9 @@ var Badge = function Badge(_ref) {
|
|
|
28
28
|
if (children && text) {
|
|
29
29
|
throw new Error("can't use both `children` and `text` props. Text is deprecated, consider using children.");
|
|
30
30
|
}
|
|
31
|
-
return /*#__PURE__*/_jsx(Container
|
|
32
|
-
|
|
31
|
+
return /*#__PURE__*/_jsx(Container
|
|
32
|
+
// size previously included default, which currently maps to small. Once consumers have updated this can be simplified.
|
|
33
|
+
, _objectSpread(_objectSpread({
|
|
33
34
|
size: size === "default" ? "large" : size,
|
|
34
35
|
badgeColor: badgeColor,
|
|
35
36
|
"data-tip": tip,
|
|
@@ -41,7 +42,8 @@ var Badge = function Badge(_ref) {
|
|
|
41
42
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
42
43
|
// @ts-ignore
|
|
43
44
|
,
|
|
44
|
-
color: color
|
|
45
|
+
color: color
|
|
46
|
+
}, rest), {}, {
|
|
45
47
|
children: /*#__PURE__*/_jsxs(Box, {
|
|
46
48
|
display: "flex",
|
|
47
49
|
alignItems: "center",
|