@sproutsocial/racine 25.0.1 → 25.0.2

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
+ ## 25.0.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 802d918: Updating the name property on the Chart Legend legendLabels property from a string to a React node.
8
+
3
9
  ## 25.0.1
4
10
 
5
11
  ### Patch Changes
@@ -37,6 +37,6 @@ var useChartLabels = exports.useChartLabels = function useChartLabels(legendLabe
37
37
  breakWord: true,
38
38
  children: label.name
39
39
  })]
40
- }, label.name);
40
+ }, "chart-legend-label-".concat(i));
41
41
  });
42
42
  };
@@ -4,7 +4,7 @@ import type { TypeSystemCommonProps, TypeSystemLayoutProps } from "@sproutsocial
4
4
  /** @deprecated legend themes will be handled automatically by the standard dataviz rotation in a future version */
5
5
  export type TypeChartLegendTheme = "compare" | "contrast" | "extended" | "datavizRotation";
6
6
  export interface TypeLegendLabels {
7
- name: string;
7
+ name: React.ReactNode;
8
8
  color?: string;
9
9
  }
10
10
  export interface TypeChartLegendProps extends TypeStyledComponentsCommonProps, TypeSystemCommonProps, TypeSystemLayoutProps, Omit<React.ComponentPropsWithoutRef<"div">, "color"> {
@@ -1 +1 @@
1
- {"version":3,"file":"ChartLegendTypes.d.ts","sourceRoot":"","sources":["../../../src/ChartLegend/ChartLegendTypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,8BAA8B,CAAC;AACpF,OAAO,KAAK,EACV,qBAAqB,EACrB,qBAAqB,EACtB,MAAM,wCAAwC,CAAC;AAEhD,mHAAmH;AACnH,MAAM,MAAM,oBAAoB,GAC5B,SAAS,GACT,UAAU,GACV,UAAU,GACV,iBAAiB,CAAC;AACtB,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,M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,6 @@ export var useChartLabels = function useChartLabels(legendLabels, theme) {
31
31
  breakWord: true,
32
32
  children: label.name
33
33
  })]
34
- }, label.name);
34
+ }, "chart-legend-label-".concat(i));
35
35
  });
36
36
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sproutsocial/racine",
3
- "version": "25.0.1",
3
+ "version": "25.0.2",
4
4
  "license": "MIT",
5
5
  "engines": {
6
6
  "node": ">=18"