@atlaskit/forge-react-types 0.21.0 → 0.22.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 +11 -0
- package/dist/cjs/components/charts/BarChartProps.js +5 -1
- package/dist/cjs/components/charts/LineChartProps.js +5 -1
- package/dist/cjs/components/charts/PieChartProps.js +5 -1
- package/dist/cjs/types/ColourTokens.js +5 -0
- package/dist/cjs/types/index.js +1 -0
- package/dist/es2019/components/charts/BarChartProps.js +1 -0
- package/dist/es2019/components/charts/LineChartProps.js +1 -0
- package/dist/es2019/components/charts/PieChartProps.js +1 -0
- package/dist/es2019/types/ColourTokens.js +1 -0
- package/dist/es2019/types/index.js +0 -0
- package/dist/esm/components/charts/BarChartProps.js +1 -0
- package/dist/esm/components/charts/LineChartProps.js +1 -0
- package/dist/esm/components/charts/PieChartProps.js +1 -0
- package/dist/esm/types/ColourTokens.js +1 -0
- package/dist/esm/types/index.js +0 -0
- package/dist/types/components/charts/BarChartProps.d.ts +8 -3
- package/dist/types/components/charts/LineChartProps.d.ts +2 -1
- package/dist/types/components/charts/PieChartProps.d.ts +2 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/types/ColourTokens.d.ts +4 -0
- package/dist/types/types/index.d.ts +1 -0
- package/dist/types-ts4.5/components/charts/BarChartProps.d.ts +8 -3
- package/dist/types-ts4.5/components/charts/LineChartProps.d.ts +2 -1
- package/dist/types-ts4.5/components/charts/PieChartProps.d.ts +2 -1
- package/dist/types-ts4.5/index.d.ts +1 -0
- package/dist/types-ts4.5/types/ColourTokens.d.ts +4 -0
- package/dist/types-ts4.5/types/index.d.ts +1 -0
- package/package.json +2 -2
- package/src/components/charts/BarChartProps.tsx +9 -3
- package/src/components/charts/LineChartProps.tsx +3 -1
- package/src/components/charts/PieChartProps.tsx +3 -1
- package/src/index.ts +2 -0
- package/src/types/ColourTokens.ts +5 -0
- package/src/types/index.ts +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @atlaskit/forge-react-types
|
|
2
2
|
|
|
3
|
+
## 0.22.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#114728](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/114728)
|
|
8
|
+
[`624681820dace`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/624681820dace) -
|
|
9
|
+
colorAccessor is now a mandatory prop for StackBarChart and HorizontalStackBarChart
|
|
10
|
+
- [#114508](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/114508)
|
|
11
|
+
[`7760a71229d04`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/7760a71229d04) -
|
|
12
|
+
Add chart color token support to UI Kit charts.
|
|
13
|
+
|
|
3
14
|
## 0.21.0
|
|
4
15
|
|
|
5
16
|
### Minor Changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
File without changes
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ChartColorTokens } from '../../types';
|
|
1
2
|
export type BarChartProps = {
|
|
2
3
|
width?: number;
|
|
3
4
|
height?: number;
|
|
@@ -8,8 +9,12 @@ export type BarChartProps = {
|
|
|
8
9
|
colorAccessor?: number | string;
|
|
9
10
|
title?: string;
|
|
10
11
|
subtitle?: string;
|
|
11
|
-
colors?:
|
|
12
|
+
colors?: ChartColorTokens[];
|
|
13
|
+
};
|
|
14
|
+
type StackChartProps = BarChartProps & {
|
|
15
|
+
colorAccessor: number | string;
|
|
12
16
|
};
|
|
13
|
-
export type StackBarChartProps = BarChartProps;
|
|
14
|
-
export type HorizontalStackBarChartProps = BarChartProps;
|
|
15
17
|
export type HorizontalBarChartProps = BarChartProps;
|
|
18
|
+
export type StackBarChartProps = StackChartProps;
|
|
19
|
+
export type HorizontalStackBarChartProps = StackChartProps;
|
|
20
|
+
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ChartColorTokens } from '../../types';
|
|
1
2
|
export type LineChartProps = {
|
|
2
3
|
width?: number;
|
|
3
4
|
height?: number;
|
|
@@ -8,5 +9,5 @@ export type LineChartProps = {
|
|
|
8
9
|
colorAccessor?: number | string;
|
|
9
10
|
title?: string;
|
|
10
11
|
subtitle?: string;
|
|
11
|
-
colors?:
|
|
12
|
+
colors?: ChartColorTokens[];
|
|
12
13
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ChartColorTokens } from '../../types';
|
|
1
2
|
export type PieChartProps = {
|
|
2
3
|
width?: number;
|
|
3
4
|
height?: number;
|
|
@@ -10,5 +11,5 @@ export type PieChartProps = {
|
|
|
10
11
|
subtitle?: string;
|
|
11
12
|
isDonut?: boolean;
|
|
12
13
|
showMarkLabels?: boolean;
|
|
13
|
-
colors?:
|
|
14
|
+
colors?: ChartColorTokens[];
|
|
14
15
|
};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
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
2
|
export type { BarChartProps, StackBarChartProps, HorizontalStackBarChartProps, HorizontalBarChartProps, LineChartProps, SingleValueChartProps, PieChartProps, } from './components/charts';
|
|
3
|
+
export type { ChartColorTokens } from './types';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { ChartColorTokens } from './ColourTokens';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ChartColorTokens } from '../../types';
|
|
1
2
|
export type BarChartProps = {
|
|
2
3
|
width?: number;
|
|
3
4
|
height?: number;
|
|
@@ -8,8 +9,12 @@ export type BarChartProps = {
|
|
|
8
9
|
colorAccessor?: number | string;
|
|
9
10
|
title?: string;
|
|
10
11
|
subtitle?: string;
|
|
11
|
-
colors?:
|
|
12
|
+
colors?: ChartColorTokens[];
|
|
13
|
+
};
|
|
14
|
+
type StackChartProps = BarChartProps & {
|
|
15
|
+
colorAccessor: number | string;
|
|
12
16
|
};
|
|
13
|
-
export type StackBarChartProps = BarChartProps;
|
|
14
|
-
export type HorizontalStackBarChartProps = BarChartProps;
|
|
15
17
|
export type HorizontalBarChartProps = BarChartProps;
|
|
18
|
+
export type StackBarChartProps = StackChartProps;
|
|
19
|
+
export type HorizontalStackBarChartProps = StackChartProps;
|
|
20
|
+
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ChartColorTokens } from '../../types';
|
|
1
2
|
export type LineChartProps = {
|
|
2
3
|
width?: number;
|
|
3
4
|
height?: number;
|
|
@@ -8,5 +9,5 @@ export type LineChartProps = {
|
|
|
8
9
|
colorAccessor?: number | string;
|
|
9
10
|
title?: string;
|
|
10
11
|
subtitle?: string;
|
|
11
|
-
colors?:
|
|
12
|
+
colors?: ChartColorTokens[];
|
|
12
13
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ChartColorTokens } from '../../types';
|
|
1
2
|
export type PieChartProps = {
|
|
2
3
|
width?: number;
|
|
3
4
|
height?: number;
|
|
@@ -10,5 +11,5 @@ export type PieChartProps = {
|
|
|
10
11
|
subtitle?: string;
|
|
11
12
|
isDonut?: boolean;
|
|
12
13
|
showMarkLabels?: boolean;
|
|
13
|
-
colors?:
|
|
14
|
+
colors?: ChartColorTokens[];
|
|
14
15
|
};
|
|
@@ -1,2 +1,3 @@
|
|
|
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
2
|
export type { BarChartProps, StackBarChartProps, HorizontalStackBarChartProps, HorizontalBarChartProps, LineChartProps, SingleValueChartProps, PieChartProps, } from './components/charts';
|
|
3
|
+
export type { ChartColorTokens } from './types';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { ChartColorTokens } from './ColourTokens';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/forge-react-types",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.22.0",
|
|
4
4
|
"description": "Component types for Forge UI Kit React components",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"@atlaskit/heading": "^2.4.0",
|
|
38
38
|
"@atlaskit/lozenge": "^11.8.0",
|
|
39
39
|
"@atlaskit/modal-dialog": "^12.14.0",
|
|
40
|
-
"@atlaskit/primitives": "^8.
|
|
40
|
+
"@atlaskit/primitives": "^8.2.0",
|
|
41
41
|
"@atlaskit/progress-bar": "2.2.0",
|
|
42
42
|
"@atlaskit/progress-tracker": "8.7.1",
|
|
43
43
|
"@atlaskit/radio": "^6.4.0",
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import type { ChartColorTokens } from '../../types';
|
|
2
|
+
|
|
1
3
|
export type BarChartProps = {
|
|
2
4
|
width?: number;
|
|
3
5
|
height?: number;
|
|
@@ -8,9 +10,13 @@ export type BarChartProps = {
|
|
|
8
10
|
colorAccessor?: number | string;
|
|
9
11
|
title?: string;
|
|
10
12
|
subtitle?: string;
|
|
11
|
-
colors?:
|
|
13
|
+
colors?: ChartColorTokens[];
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
type StackChartProps = BarChartProps & {
|
|
17
|
+
colorAccessor: number | string;
|
|
12
18
|
};
|
|
13
19
|
|
|
14
|
-
export type StackBarChartProps = BarChartProps;
|
|
15
|
-
export type HorizontalStackBarChartProps = BarChartProps;
|
|
16
20
|
export type HorizontalBarChartProps = BarChartProps;
|
|
21
|
+
export type StackBarChartProps = StackChartProps;
|
|
22
|
+
export type HorizontalStackBarChartProps = StackChartProps;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import type { ChartColorTokens } from '../../types';
|
|
2
|
+
|
|
1
3
|
export type LineChartProps = {
|
|
2
4
|
width?: number;
|
|
3
5
|
height?: number;
|
|
@@ -8,5 +10,5 @@ export type LineChartProps = {
|
|
|
8
10
|
colorAccessor?: number | string;
|
|
9
11
|
title?: string;
|
|
10
12
|
subtitle?: string;
|
|
11
|
-
colors?:
|
|
13
|
+
colors?: ChartColorTokens[];
|
|
12
14
|
};
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import type { ChartColorTokens } from '../../types';
|
|
2
|
+
|
|
1
3
|
export type PieChartProps = {
|
|
2
4
|
width?: number;
|
|
3
5
|
height?: number;
|
|
@@ -10,5 +12,5 @@ export type PieChartProps = {
|
|
|
10
12
|
subtitle?: string;
|
|
11
13
|
isDonut?: boolean;
|
|
12
14
|
showMarkLabels?: boolean;
|
|
13
|
-
colors?:
|
|
15
|
+
colors?: ChartColorTokens[];
|
|
14
16
|
};
|
package/src/index.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { ChartColorTokens } from './ColourTokens';
|