@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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # Change Log
2
2
 
3
+ ## 23.2.1
4
+
5
+ ### Patch Changes
6
+
7
+ - dc8e3f6: Fix Badge component so that it now allows overriding the data-qa props
8
+
3
9
  ## 23.2.0
4
10
 
5
11
  ### Minor Changes
@@ -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, _objectSpread(_objectSpread({}, rest), {}, {
40
- // size previously included default, which currently maps to small. Once consumers have updated this can be simplified.
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",
@@ -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, _objectSpread(_objectSpread({}, rest), {}, {
32
- // size previously included default, which currently maps to small. Once consumers have updated this can be simplified.
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",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sproutsocial/racine",
3
- "version": "23.2.0",
3
+ "version": "23.2.1",
4
4
  "license": "MIT",
5
5
  "engines": {
6
6
  "node": ">=18"