@atlaskit/forge-react-types 0.53.0 → 0.54.0

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,12 @@
1
1
  # @atlaskit/forge-react-types
2
2
 
3
+ ## 0.54.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`28a295dd4bf91`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/28a295dd4bf91) -
8
+ Updated types for charts to include new colorPalette prop.
9
+
3
10
  ## 0.53.0
4
11
 
5
12
  ### Minor Changes
@@ -1 +1,5 @@
1
- "use strict";
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -1,4 +1,5 @@
1
1
  import { type ActiveTokens } from '@atlaskit/tokens';
2
+ import type { ThemeElementProps } from '@atlassian/viz-platform-charts/primitives';
2
3
  type MarginValue = Extract<ActiveTokens, `space.${string}`>;
3
4
  export type BarChartProps = {
4
5
  /**
@@ -60,6 +61,12 @@ export type BarChartProps = {
60
61
  * Adds a border onto the chart. Defaults to true.
61
62
  */
62
63
  showBorder?: boolean;
64
+ /**
65
+ * Custom color palette for the chart.
66
+ * Can be an array of color strings, or an array of objects with
67
+ * key and value properties to map specific data categories to colors.
68
+ */
69
+ colorPalette?: ThemeElementProps['fillStyles'];
63
70
  };
64
71
  type StackChartProps = BarChartProps & {
65
72
  /**
@@ -1,4 +1,5 @@
1
1
  import { type ActiveTokens } from '@atlaskit/tokens';
2
+ import type { ThemeElementProps } from '@atlassian/viz-platform-charts/primitives';
2
3
  type MarginValue = Extract<ActiveTokens, `space.${string}`>;
3
4
  export type LineChartProps = {
4
5
  /**
@@ -60,6 +61,12 @@ export type LineChartProps = {
60
61
  * Adds a border onto the chart. Defaults to true.
61
62
  */
62
63
  showBorder?: boolean;
64
+ /**
65
+ * Custom color palette for the chart.
66
+ * Can be an array of color strings, or an array of objects with
67
+ * key and value properties to map specific data categories to colors.
68
+ */
69
+ colorPalette?: ThemeElementProps['fillStyles'];
63
70
  };
64
71
  /**
65
72
  * A visual representation of data showing trends.
@@ -1,3 +1,4 @@
1
+ import type { ThemeElementProps } from '@atlassian/viz-platform-charts/primitives';
1
2
  export type PieChartProps = {
2
3
  /**
3
4
  * The static width of the chart in pixels. If this is not specified, the width is responsive.
@@ -42,6 +43,12 @@ export type PieChartProps = {
42
43
  * Adds a border onto the chart. Defaults to true.
43
44
  */
44
45
  showBorder?: boolean;
46
+ /**
47
+ * Custom color palette for the chart.
48
+ * Can be an array of color strings, or an array of objects with
49
+ * key and value properties to map specific data categories to colors.
50
+ */
51
+ colorPalette?: ThemeElementProps['fillStyles'];
45
52
  };
46
53
  /**
47
54
  * A visual representation of data proportions in a circular format.
@@ -1,4 +1,5 @@
1
1
  import { type ActiveTokens } from '@atlaskit/tokens';
2
+ import type { ThemeElementProps } from '@atlassian/viz-platform-charts/primitives';
2
3
  type MarginValue = Extract<ActiveTokens, `space.${string}`>;
3
4
  export type BarChartProps = {
4
5
  /**
@@ -60,6 +61,12 @@ export type BarChartProps = {
60
61
  * Adds a border onto the chart. Defaults to true.
61
62
  */
62
63
  showBorder?: boolean;
64
+ /**
65
+ * Custom color palette for the chart.
66
+ * Can be an array of color strings, or an array of objects with
67
+ * key and value properties to map specific data categories to colors.
68
+ */
69
+ colorPalette?: ThemeElementProps['fillStyles'];
63
70
  };
64
71
  type StackChartProps = BarChartProps & {
65
72
  /**
@@ -1,4 +1,5 @@
1
1
  import { type ActiveTokens } from '@atlaskit/tokens';
2
+ import type { ThemeElementProps } from '@atlassian/viz-platform-charts/primitives';
2
3
  type MarginValue = Extract<ActiveTokens, `space.${string}`>;
3
4
  export type LineChartProps = {
4
5
  /**
@@ -60,6 +61,12 @@ export type LineChartProps = {
60
61
  * Adds a border onto the chart. Defaults to true.
61
62
  */
62
63
  showBorder?: boolean;
64
+ /**
65
+ * Custom color palette for the chart.
66
+ * Can be an array of color strings, or an array of objects with
67
+ * key and value properties to map specific data categories to colors.
68
+ */
69
+ colorPalette?: ThemeElementProps['fillStyles'];
63
70
  };
64
71
  /**
65
72
  * A visual representation of data showing trends.
@@ -1,3 +1,4 @@
1
+ import type { ThemeElementProps } from '@atlassian/viz-platform-charts/primitives';
1
2
  export type PieChartProps = {
2
3
  /**
3
4
  * The static width of the chart in pixels. If this is not specified, the width is responsive.
@@ -42,6 +43,12 @@ export type PieChartProps = {
42
43
  * Adds a border onto the chart. Defaults to true.
43
44
  */
44
45
  showBorder?: boolean;
46
+ /**
47
+ * Custom color palette for the chart.
48
+ * Can be an array of color strings, or an array of objects with
49
+ * key and value properties to map specific data categories to colors.
50
+ */
51
+ colorPalette?: ThemeElementProps['fillStyles'];
45
52
  };
46
53
  /**
47
54
  * A visual representation of data proportions in a circular format.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/forge-react-types",
3
- "version": "0.53.0",
3
+ "version": "0.54.0",
4
4
  "description": "Component types for Forge UI Kit React components",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -25,16 +25,16 @@
25
25
  "@atlaskit/comment": "^13.2.0",
26
26
  "@atlaskit/datetime-picker": "^17.4.0",
27
27
  "@atlaskit/dynamic-table": "^18.3.0",
28
- "@atlaskit/form": "^15.2.0",
29
- "@atlaskit/inline-edit": "^15.5.0",
28
+ "@atlaskit/form": "^15.3.0",
29
+ "@atlaskit/inline-edit": "^15.6.0",
30
30
  "@atlaskit/modal-dialog": "^14.9.0",
31
- "@atlaskit/navigation-system": "^5.21.0",
31
+ "@atlaskit/navigation-system": "^5.27.0",
32
32
  "@atlaskit/popup": "^4.13.0",
33
33
  "@atlaskit/primitives": "^17.0.0",
34
34
  "@atlaskit/progress-bar": "^4.1.0",
35
35
  "@atlaskit/progress-tracker": "^10.4.0",
36
36
  "@atlaskit/radio": "^8.4.0",
37
- "@atlaskit/section-message": "^8.11.0",
37
+ "@atlaskit/section-message": "^8.12.0",
38
38
  "@atlaskit/select": "^21.6.0",
39
39
  "@atlaskit/spinner": "^19.0.0",
40
40
  "@atlaskit/tabs": "^18.3.0",
@@ -45,7 +45,7 @@
45
45
  "@atlaskit/tile": "^1.0.0",
46
46
  "@atlaskit/toggle": "^15.2.0",
47
47
  "@atlaskit/tokens": "^9.1.0",
48
- "@atlaskit/tooltip": "^20.12.0",
48
+ "@atlaskit/tooltip": "^20.14.0",
49
49
  "@babel/runtime": "^7.0.0"
50
50
  },
51
51
  "peerDependencies": {
@@ -53,7 +53,7 @@
53
53
  },
54
54
  "devDependencies": {
55
55
  "@atlassian/codegen": "^0.1.0",
56
- "@atlassian/forge-ui": "^32.64.0",
56
+ "@atlassian/forge-ui": "^32.66.0",
57
57
  "@types/node": "~22.17.1",
58
58
  "lodash": "^4.17.21",
59
59
  "react": "^18.2.0",
@@ -1,4 +1,5 @@
1
1
  import { type ActiveTokens } from '@atlaskit/tokens';
2
+ import type { ThemeElementProps } from '@atlassian/viz-platform-charts/primitives';
2
3
 
3
4
  type MarginValue = Extract<ActiveTokens, `space.${string}`>;
4
5
 
@@ -62,6 +63,12 @@ export type BarChartProps = {
62
63
  * Adds a border onto the chart. Defaults to true.
63
64
  */
64
65
  showBorder?: boolean;
66
+ /**
67
+ * Custom color palette for the chart.
68
+ * Can be an array of color strings, or an array of objects with
69
+ * key and value properties to map specific data categories to colors.
70
+ */
71
+ colorPalette?: ThemeElementProps['fillStyles'];
65
72
  };
66
73
 
67
74
  type StackChartProps = BarChartProps & {
@@ -1,4 +1,5 @@
1
1
  import { type ActiveTokens } from '@atlaskit/tokens';
2
+ import type { ThemeElementProps } from '@atlassian/viz-platform-charts/primitives';
2
3
 
3
4
  type MarginValue = Extract<ActiveTokens, `space.${string}`>;
4
5
 
@@ -62,6 +63,12 @@ export type LineChartProps = {
62
63
  * Adds a border onto the chart. Defaults to true.
63
64
  */
64
65
  showBorder?: boolean;
66
+ /**
67
+ * Custom color palette for the chart.
68
+ * Can be an array of color strings, or an array of objects with
69
+ * key and value properties to map specific data categories to colors.
70
+ */
71
+ colorPalette?: ThemeElementProps['fillStyles'];
65
72
  };
66
73
 
67
74
  /**
@@ -1,3 +1,5 @@
1
+ import type { ThemeElementProps } from '@atlassian/viz-platform-charts/primitives';
2
+
1
3
  export type PieChartProps = {
2
4
  /**
3
5
  * The static width of the chart in pixels. If this is not specified, the width is responsive.
@@ -42,6 +44,12 @@ export type PieChartProps = {
42
44
  * Adds a border onto the chart. Defaults to true.
43
45
  */
44
46
  showBorder?: boolean;
47
+ /**
48
+ * Custom color palette for the chart.
49
+ * Can be an array of color strings, or an array of objects with
50
+ * key and value properties to map specific data categories to colors.
51
+ */
52
+ colorPalette?: ThemeElementProps['fillStyles'];
45
53
  };
46
54
 
47
55
  /**