@atlaskit/forge-react-types 0.19.0 → 0.20.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,17 @@
1
1
  # @atlaskit/forge-react-types
2
2
 
3
+ ## 0.20.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#113460](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/113460)
8
+ [`b375e07bd430a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b375e07bd430a) -
9
+ Add Single Value Chart into UI Kit
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
3
15
  ## 0.19.0
4
16
 
5
17
  ### Minor Changes
@@ -0,0 +1 @@
1
+ "use strict";
@@ -7,7 +7,7 @@ export type BarChartProps = {
7
7
  yAccessor: number | string;
8
8
  colorAccessor?: number | string;
9
9
  title?: string;
10
- subTitle?: string;
10
+ subtitle?: string;
11
11
  colors?: string[];
12
12
  };
13
13
  export type StackBarChartProps = BarChartProps;
@@ -7,6 +7,6 @@ export type LineChartProps = {
7
7
  yAccessor: number | string;
8
8
  colorAccessor?: number | string;
9
9
  title?: string;
10
- subTitle?: string;
10
+ subtitle?: string;
11
11
  colors?: string[];
12
12
  };
@@ -0,0 +1,8 @@
1
+ export type SingleValueChartProps = {
2
+ data: number | number[];
3
+ width?: number;
4
+ height?: number;
5
+ showBorder?: boolean;
6
+ title?: string;
7
+ subtitle?: string;
8
+ };
@@ -1,2 +1,3 @@
1
1
  export type { BarChartProps, StackBarChartProps, HorizontalStackBarChartProps, HorizontalBarChartProps, } from './BarChartProps';
2
2
  export type { LineChartProps } from './LineChartProps';
3
+ export type { SingleValueChartProps } from './SingleValueChartProps';
@@ -1,2 +1,2 @@
1
1
  export type { BadgeProps, BannerProps, BleedProps, BoxProps, ButtonGroupProps, ButtonProps, CalendarProps, CheckboxProps, CheckboxGroupProps, CodeBlockProps, CodeProps, DatePickerProps, DynamicTableProps, EmptyStateProps, ErrorMessageProps, FlexProps, FormFooterProps, FormHeaderProps, FormProps, FormSectionProps, GridProps, HeadingProps, HelperMessageProps, IconProps, InlineProps, LabelProps, LinkButtonProps, ListProps, ListItemProps, LoadingButtonProps, LozengeProps, ModalBodyProps, ModalFooterProps, ModalHeaderProps, ModalProps, ModalTitleProps, ModalTransitionProps, ProgressBarProps, ProgressTrackerProps, RadioGroupProps, RadioProps, RangeProps, SectionMessageActionProps, SectionMessageProps, SelectProps, SpinnerProps, StackProps, TabListProps, TabPanelProps, TabProps, TabsProps, TagGroupProps, TagProps, TextAreaProps, TextfieldProps, ToggleProps, TooltipProps, ValidMessageProps, } from './components/__generated__';
2
- export type { BarChartProps, StackBarChartProps, HorizontalStackBarChartProps, HorizontalBarChartProps, LineChartProps, } from './components/charts';
2
+ export type { BarChartProps, StackBarChartProps, HorizontalStackBarChartProps, HorizontalBarChartProps, LineChartProps, SingleValueChartProps, } from './components/charts';
@@ -7,7 +7,7 @@ export type BarChartProps = {
7
7
  yAccessor: number | string;
8
8
  colorAccessor?: number | string;
9
9
  title?: string;
10
- subTitle?: string;
10
+ subtitle?: string;
11
11
  colors?: string[];
12
12
  };
13
13
  export type StackBarChartProps = BarChartProps;
@@ -7,6 +7,6 @@ export type LineChartProps = {
7
7
  yAccessor: number | string;
8
8
  colorAccessor?: number | string;
9
9
  title?: string;
10
- subTitle?: string;
10
+ subtitle?: string;
11
11
  colors?: string[];
12
12
  };
@@ -0,0 +1,8 @@
1
+ export type SingleValueChartProps = {
2
+ data: number | number[];
3
+ width?: number;
4
+ height?: number;
5
+ showBorder?: boolean;
6
+ title?: string;
7
+ subtitle?: string;
8
+ };
@@ -1,2 +1,3 @@
1
1
  export type { BarChartProps, StackBarChartProps, HorizontalStackBarChartProps, HorizontalBarChartProps, } from './BarChartProps';
2
2
  export type { LineChartProps } from './LineChartProps';
3
+ export type { SingleValueChartProps } from './SingleValueChartProps';
@@ -1,2 +1,2 @@
1
1
  export type { BadgeProps, BannerProps, BleedProps, BoxProps, ButtonGroupProps, ButtonProps, CalendarProps, CheckboxProps, CheckboxGroupProps, CodeBlockProps, CodeProps, DatePickerProps, DynamicTableProps, EmptyStateProps, ErrorMessageProps, FlexProps, FormFooterProps, FormHeaderProps, FormProps, FormSectionProps, GridProps, HeadingProps, HelperMessageProps, IconProps, InlineProps, LabelProps, LinkButtonProps, ListProps, ListItemProps, LoadingButtonProps, LozengeProps, ModalBodyProps, ModalFooterProps, ModalHeaderProps, ModalProps, ModalTitleProps, ModalTransitionProps, ProgressBarProps, ProgressTrackerProps, RadioGroupProps, RadioProps, RangeProps, SectionMessageActionProps, SectionMessageProps, SelectProps, SpinnerProps, StackProps, TabListProps, TabPanelProps, TabProps, TabsProps, TagGroupProps, TagProps, TextAreaProps, TextfieldProps, ToggleProps, TooltipProps, ValidMessageProps, } from './components/__generated__';
2
- export type { BarChartProps, StackBarChartProps, HorizontalStackBarChartProps, HorizontalBarChartProps, LineChartProps, } from './components/charts';
2
+ export type { BarChartProps, StackBarChartProps, HorizontalStackBarChartProps, HorizontalBarChartProps, LineChartProps, SingleValueChartProps, } from './components/charts';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/forge-react-types",
3
- "version": "0.19.0",
3
+ "version": "0.20.0",
4
4
  "description": "Component types for Forge UI Kit React components",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -27,7 +27,7 @@
27
27
  "dependencies": {
28
28
  "@atlaskit/badge": "^16.2.0",
29
29
  "@atlaskit/banner": "^12.4.0",
30
- "@atlaskit/button": "^17.22.0",
30
+ "@atlaskit/button": "^17.23.0",
31
31
  "@atlaskit/calendar": "^14.3.0",
32
32
  "@atlaskit/checkbox": "^13.5.0",
33
33
  "@atlaskit/code": "^15.3.0",
@@ -51,7 +51,7 @@
51
51
  "@atlaskit/textarea": "^5.5.0",
52
52
  "@atlaskit/textfield": "^6.4.0",
53
53
  "@atlaskit/toggle": "^13.2.0",
54
- "@atlaskit/tokens": "^1.51.0",
54
+ "@atlaskit/tokens": "^1.52.0",
55
55
  "@atlaskit/tooltip": "^18.5.0",
56
56
  "@babel/runtime": "^7.0.0"
57
57
  },
@@ -7,7 +7,7 @@ export type BarChartProps = {
7
7
  yAccessor: number | string;
8
8
  colorAccessor?: number | string;
9
9
  title?: string;
10
- subTitle?: string;
10
+ subtitle?: string;
11
11
  colors?: string[];
12
12
  };
13
13
 
@@ -7,6 +7,6 @@ export type LineChartProps = {
7
7
  yAccessor: number | string;
8
8
  colorAccessor?: number | string;
9
9
  title?: string;
10
- subTitle?: string;
10
+ subtitle?: string;
11
11
  colors?: string[];
12
12
  };
@@ -0,0 +1,8 @@
1
+ export type SingleValueChartProps = {
2
+ data: number | number[];
3
+ width?: number;
4
+ height?: number;
5
+ showBorder?: boolean;
6
+ title?: string;
7
+ subtitle?: string;
8
+ };
@@ -6,3 +6,5 @@ export type {
6
6
  } from './BarChartProps';
7
7
 
8
8
  export type { LineChartProps } from './LineChartProps';
9
+
10
+ export type { SingleValueChartProps } from './SingleValueChartProps';
package/src/index.ts CHANGED
@@ -65,4 +65,5 @@ export type {
65
65
  HorizontalStackBarChartProps,
66
66
  HorizontalBarChartProps,
67
67
  LineChartProps,
68
+ SingleValueChartProps,
68
69
  } from './components/charts';