@atlaskit/forge-react-types 0.53.0 → 0.55.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.
Files changed (36) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/cjs/components/__generated__/BoxProps.codegen.js +12 -2
  3. package/dist/cjs/components/__generated__/tokens.codegen.js +666 -0
  4. package/dist/cjs/components/charts/PieChartProps.js +5 -1
  5. package/dist/es2019/components/__generated__/BoxProps.codegen.js +12 -2
  6. package/dist/es2019/components/__generated__/tokens.codegen.js +662 -0
  7. package/dist/es2019/components/charts/PieChartProps.js +1 -0
  8. package/dist/esm/components/__generated__/BoxProps.codegen.js +12 -2
  9. package/dist/esm/components/__generated__/tokens.codegen.js +667 -0
  10. package/dist/esm/components/charts/PieChartProps.js +1 -0
  11. package/dist/types/components/__generated__/BoxProps.codegen.d.ts +65 -51
  12. package/dist/types/components/__generated__/ButtonGroupProps.codegen.d.ts +3 -4
  13. package/dist/types/components/__generated__/IconProps.codegen.d.ts +1 -1
  14. package/dist/types/components/__generated__/PressableProps.codegen.d.ts +32 -32
  15. package/dist/types/components/__generated__/tokens.codegen.d.ts +1766 -0
  16. package/dist/types/components/charts/BarChartProps.d.ts +7 -0
  17. package/dist/types/components/charts/LineChartProps.d.ts +7 -0
  18. package/dist/types/components/charts/PieChartProps.d.ts +7 -0
  19. package/dist/types-ts4.5/components/__generated__/BoxProps.codegen.d.ts +65 -51
  20. package/dist/types-ts4.5/components/__generated__/ButtonGroupProps.codegen.d.ts +3 -4
  21. package/dist/types-ts4.5/components/__generated__/IconProps.codegen.d.ts +1 -1
  22. package/dist/types-ts4.5/components/__generated__/PressableProps.codegen.d.ts +32 -32
  23. package/dist/types-ts4.5/components/__generated__/tokens.codegen.d.ts +1766 -0
  24. package/dist/types-ts4.5/components/charts/BarChartProps.d.ts +7 -0
  25. package/dist/types-ts4.5/components/charts/LineChartProps.d.ts +7 -0
  26. package/dist/types-ts4.5/components/charts/PieChartProps.d.ts +7 -0
  27. package/package.json +12 -10
  28. package/scripts/codegen/codeGenerator.ts +176 -30
  29. package/scripts/codegen/componentPropTypes.ts +26 -0
  30. package/src/components/__generated__/BoxProps.codegen.tsx +38 -24
  31. package/src/components/__generated__/ButtonGroupProps.codegen.tsx +3 -4
  32. package/src/components/__generated__/IconProps.codegen.tsx +2 -2
  33. package/src/components/__generated__/tokens.codegen.tsx +1664 -0
  34. package/src/components/charts/BarChartProps.tsx +7 -0
  35. package/src/components/charts/LineChartProps.tsx +7 -0
  36. package/src/components/charts/PieChartProps.tsx +8 -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
  /**