@atlaskit/forge-react-types 0.52.2 → 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 +18 -0
- package/dist/cjs/components/__generated__/TileProps.codegen.js +5 -0
- package/dist/cjs/components/charts/PieChartProps.js +5 -1
- package/dist/es2019/components/__generated__/TileProps.codegen.js +1 -0
- package/dist/es2019/components/charts/PieChartProps.js +1 -0
- package/dist/esm/components/__generated__/TileProps.codegen.js +1 -0
- package/dist/esm/components/charts/PieChartProps.js +1 -0
- package/dist/types/components/__generated__/TileProps.codegen.d.ts +20 -0
- package/dist/types/components/__generated__/index.d.ts +1 -0
- package/dist/types/components/charts/BarChartProps.d.ts +7 -0
- package/dist/types/components/charts/LineChartProps.d.ts +7 -0
- package/dist/types/components/charts/PieChartProps.d.ts +7 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types-ts4.5/components/__generated__/TileProps.codegen.d.ts +20 -0
- package/dist/types-ts4.5/components/__generated__/index.d.ts +1 -0
- package/dist/types-ts4.5/components/charts/BarChartProps.d.ts +7 -0
- package/dist/types-ts4.5/components/charts/LineChartProps.d.ts +7 -0
- package/dist/types-ts4.5/components/charts/PieChartProps.d.ts +7 -0
- package/dist/types-ts4.5/index.d.ts +1 -1
- package/package.json +12 -11
- package/src/components/__generated__/TileProps.codegen.tsx +27 -0
- package/src/components/__generated__/index.ts +1 -0
- package/src/components/charts/BarChartProps.tsx +7 -0
- package/src/components/charts/LineChartProps.tsx +7 -0
- package/src/components/charts/PieChartProps.tsx +8 -0
- package/src/index.ts +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
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
|
+
|
|
10
|
+
## 0.53.0
|
|
11
|
+
|
|
12
|
+
### Minor Changes
|
|
13
|
+
|
|
14
|
+
- [`6f93643f9e844`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6f93643f9e844) -
|
|
15
|
+
[ux] Addition of Tile component for Forge UIKit
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Updated dependencies
|
|
20
|
+
|
|
3
21
|
## 0.52.2
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
*
|
|
4
|
+
* Extract component prop types from UIKit 2 components - TileProps
|
|
5
|
+
*
|
|
6
|
+
* @codegen <<SignedSource::8b1e13d93e3348f59fa7b79a0da227aa>>
|
|
7
|
+
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit/tile/__generated__/index.partial.tsx <<SignedSource::d7ec62556fa495888b1d4326b71c4d52>>
|
|
9
|
+
*/
|
|
10
|
+
import React from 'react';
|
|
11
|
+
import PlatformTile from '@atlaskit/tile';
|
|
12
|
+
type PlatformTileProps = React.ComponentProps<typeof PlatformTile>;
|
|
13
|
+
export type TileProps = Pick<PlatformTileProps, 'backgroundColor' | 'label' | 'size' | 'children' | 'hasBorder' | 'isInset' | 'testId'>;
|
|
14
|
+
/**
|
|
15
|
+
* A tile is a rounded square that takes an asset and represents a noun.
|
|
16
|
+
*
|
|
17
|
+
* @see [Tile](https://developer.atlassian.com/platform/forge/ui-kit/components/tile/) in UI Kit documentation for more information
|
|
18
|
+
*/
|
|
19
|
+
export type TTile<T> = (props: TileProps) => T;
|
|
20
|
+
export {};
|
|
@@ -54,6 +54,7 @@ export type { TagGroupProps, TTagGroup } from './TagGroupProps.codegen';
|
|
|
54
54
|
export type { SimpleTagProps as TagProps, TSimpleTag as TTag } from './TagProps.codegen';
|
|
55
55
|
export type { TextAreaProps, TTextArea } from './TextAreaProps.codegen';
|
|
56
56
|
export type { TextfieldProps, TTextfield } from './TextfieldProps.codegen';
|
|
57
|
+
export type { TileProps, TTile } from './TileProps.codegen';
|
|
57
58
|
export type { TimePickerProps, TTimePicker } from './TimePickerProps.codegen';
|
|
58
59
|
export type { ToggleProps, TToggle } from './ToggleProps.codegen';
|
|
59
60
|
export type { TooltipProps, TTooltip } from './TooltipProps.codegen';
|
|
@@ -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/dist/types/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type { AdfRendererProps, BadgeProps, BoxProps, ButtonGroupProps, ButtonProps, CalendarProps, CheckboxProps, CheckboxGroupProps, CodeBlockProps, CodeProps, CommentProps, 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, TextProps, TextAreaProps, TextfieldProps, ToggleProps, TooltipProps, TimePickerProps, ValidMessageProps, PopupProps, InlineEditProps, PressableProps, TBadge, TBox, TButtonGroup, TButton, TCalendar, TCheckbox, TCheckboxGroup, TCodeBlock, TCode, TComment, TDatePicker, TDynamicTable, TEmptyState, TErrorMessage, TFileCard, TFlex, TFormFooter, TFormHeader, TForm, TFormSection, TGrid, THeading, THelperMessage, TIcon, TInline, TInlineEdit, TLabel, TLinkButton, TList, TListItem, TLoadingButton, TLozenge, TModalBody, TModalFooter, TModalHeader, TModal, TModalTitle, TModalTransition, TProgressBar, TProgressTracker, TRadioGroup, TRadio, TRange, TSectionMessageAction, TSectionMessage, TSelect, TSpinner, TStack, TTabList, TTabPanel, TTab, TTabs, TTagGroup, TTag, TTextArea, TTextfield, TTimePicker, TToggle, TTooltip, TValidMessage, TPopup, TAdfRenderer, TText, TPressable, TFilePicker, } from './components/__generated__';
|
|
1
|
+
export type { AdfRendererProps, BadgeProps, BoxProps, ButtonGroupProps, ButtonProps, CalendarProps, CheckboxProps, CheckboxGroupProps, CodeBlockProps, CodeProps, CommentProps, 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, TextProps, TextAreaProps, TextfieldProps, TileProps, ToggleProps, TooltipProps, TimePickerProps, ValidMessageProps, PopupProps, InlineEditProps, PressableProps, TBadge, TBox, TButtonGroup, TButton, TCalendar, TCheckbox, TCheckboxGroup, TCodeBlock, TCode, TComment, TDatePicker, TDynamicTable, TEmptyState, TErrorMessage, TFileCard, TFlex, TFormFooter, TFormHeader, TForm, TFormSection, TGrid, THeading, THelperMessage, TIcon, TInline, TInlineEdit, TLabel, TLinkButton, TList, TListItem, TLoadingButton, TLozenge, TModalBody, TModalFooter, TModalHeader, TModal, TModalTitle, TModalTransition, TProgressBar, TProgressTracker, TRadioGroup, TRadio, TRange, TSectionMessageAction, TSectionMessage, TSelect, TSpinner, TStack, TTabList, TTabPanel, TTab, TTabs, TTagGroup, TTag, TTextArea, TTextfield, TTimePicker, TToggle, TTooltip, TValidMessage, TPopup, TAdfRenderer, TText, TPressable, TFilePicker, TTile, } from './components/__generated__';
|
|
2
2
|
export type { BarChartProps, StackBarChartProps, HorizontalStackBarChartProps, HorizontalBarChartProps, LineChartProps, DonutChartProps, PieChartProps, TBarChart, TStackBarChart, THorizontalStackBarChart, THorizontalBarChart, TLineChart, TDonutChart, TPieChart, } from './components/charts';
|
|
3
3
|
export type { ChromelessEditorProps, CommentEditorProps, TChromelessEditor, TCommentEditor, } from './components/editor';
|
|
4
4
|
export type { ChartColorTokens } from './types';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
*
|
|
4
|
+
* Extract component prop types from UIKit 2 components - TileProps
|
|
5
|
+
*
|
|
6
|
+
* @codegen <<SignedSource::8b1e13d93e3348f59fa7b79a0da227aa>>
|
|
7
|
+
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit/tile/__generated__/index.partial.tsx <<SignedSource::d7ec62556fa495888b1d4326b71c4d52>>
|
|
9
|
+
*/
|
|
10
|
+
import React from 'react';
|
|
11
|
+
import PlatformTile from '@atlaskit/tile';
|
|
12
|
+
type PlatformTileProps = React.ComponentProps<typeof PlatformTile>;
|
|
13
|
+
export type TileProps = Pick<PlatformTileProps, 'backgroundColor' | 'label' | 'size' | 'children' | 'hasBorder' | 'isInset' | 'testId'>;
|
|
14
|
+
/**
|
|
15
|
+
* A tile is a rounded square that takes an asset and represents a noun.
|
|
16
|
+
*
|
|
17
|
+
* @see [Tile](https://developer.atlassian.com/platform/forge/ui-kit/components/tile/) in UI Kit documentation for more information
|
|
18
|
+
*/
|
|
19
|
+
export type TTile<T> = (props: TileProps) => T;
|
|
20
|
+
export {};
|
|
@@ -54,6 +54,7 @@ export type { TagGroupProps, TTagGroup } from './TagGroupProps.codegen';
|
|
|
54
54
|
export type { SimpleTagProps as TagProps, TSimpleTag as TTag } from './TagProps.codegen';
|
|
55
55
|
export type { TextAreaProps, TTextArea } from './TextAreaProps.codegen';
|
|
56
56
|
export type { TextfieldProps, TTextfield } from './TextfieldProps.codegen';
|
|
57
|
+
export type { TileProps, TTile } from './TileProps.codegen';
|
|
57
58
|
export type { TimePickerProps, TTimePicker } from './TimePickerProps.codegen';
|
|
58
59
|
export type { ToggleProps, TToggle } from './ToggleProps.codegen';
|
|
59
60
|
export type { TooltipProps, TTooltip } from './TooltipProps.codegen';
|
|
@@ -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,4 @@
|
|
|
1
|
-
export type { AdfRendererProps, BadgeProps, BoxProps, ButtonGroupProps, ButtonProps, CalendarProps, CheckboxProps, CheckboxGroupProps, CodeBlockProps, CodeProps, CommentProps, 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, TextProps, TextAreaProps, TextfieldProps, ToggleProps, TooltipProps, TimePickerProps, ValidMessageProps, PopupProps, InlineEditProps, PressableProps, TBadge, TBox, TButtonGroup, TButton, TCalendar, TCheckbox, TCheckboxGroup, TCodeBlock, TCode, TComment, TDatePicker, TDynamicTable, TEmptyState, TErrorMessage, TFileCard, TFlex, TFormFooter, TFormHeader, TForm, TFormSection, TGrid, THeading, THelperMessage, TIcon, TInline, TInlineEdit, TLabel, TLinkButton, TList, TListItem, TLoadingButton, TLozenge, TModalBody, TModalFooter, TModalHeader, TModal, TModalTitle, TModalTransition, TProgressBar, TProgressTracker, TRadioGroup, TRadio, TRange, TSectionMessageAction, TSectionMessage, TSelect, TSpinner, TStack, TTabList, TTabPanel, TTab, TTabs, TTagGroup, TTag, TTextArea, TTextfield, TTimePicker, TToggle, TTooltip, TValidMessage, TPopup, TAdfRenderer, TText, TPressable, TFilePicker, } from './components/__generated__';
|
|
1
|
+
export type { AdfRendererProps, BadgeProps, BoxProps, ButtonGroupProps, ButtonProps, CalendarProps, CheckboxProps, CheckboxGroupProps, CodeBlockProps, CodeProps, CommentProps, 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, TextProps, TextAreaProps, TextfieldProps, TileProps, ToggleProps, TooltipProps, TimePickerProps, ValidMessageProps, PopupProps, InlineEditProps, PressableProps, TBadge, TBox, TButtonGroup, TButton, TCalendar, TCheckbox, TCheckboxGroup, TCodeBlock, TCode, TComment, TDatePicker, TDynamicTable, TEmptyState, TErrorMessage, TFileCard, TFlex, TFormFooter, TFormHeader, TForm, TFormSection, TGrid, THeading, THelperMessage, TIcon, TInline, TInlineEdit, TLabel, TLinkButton, TList, TListItem, TLoadingButton, TLozenge, TModalBody, TModalFooter, TModalHeader, TModal, TModalTitle, TModalTransition, TProgressBar, TProgressTracker, TRadioGroup, TRadio, TRange, TSectionMessageAction, TSectionMessage, TSelect, TSpinner, TStack, TTabList, TTabPanel, TTab, TTabs, TTagGroup, TTag, TTextArea, TTextfield, TTimePicker, TToggle, TTooltip, TValidMessage, TPopup, TAdfRenderer, TText, TPressable, TFilePicker, TTile, } from './components/__generated__';
|
|
2
2
|
export type { BarChartProps, StackBarChartProps, HorizontalStackBarChartProps, HorizontalBarChartProps, LineChartProps, DonutChartProps, PieChartProps, TBarChart, TStackBarChart, THorizontalStackBarChart, THorizontalBarChart, TLineChart, TDonutChart, TPieChart, } from './components/charts';
|
|
3
3
|
export type { ChromelessEditorProps, CommentEditorProps, TChromelessEditor, TCommentEditor, } from './components/editor';
|
|
4
4
|
export type { ChartColorTokens } from './types';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/forge-react-types",
|
|
3
|
-
"version": "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/"
|
|
@@ -23,18 +23,18 @@
|
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@atlaskit/button": "^23.9.0",
|
|
25
25
|
"@atlaskit/comment": "^13.2.0",
|
|
26
|
-
"@atlaskit/datetime-picker": "^17.
|
|
26
|
+
"@atlaskit/datetime-picker": "^17.4.0",
|
|
27
27
|
"@atlaskit/dynamic-table": "^18.3.0",
|
|
28
|
-
"@atlaskit/form": "^15.
|
|
29
|
-
"@atlaskit/inline-edit": "^15.
|
|
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.
|
|
32
|
-
"@atlaskit/popup": "^4.
|
|
31
|
+
"@atlaskit/navigation-system": "^5.27.0",
|
|
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
|
-
"@atlaskit/radio": "^8.
|
|
37
|
-
"@atlaskit/section-message": "^8.
|
|
36
|
+
"@atlaskit/radio": "^8.4.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",
|
|
@@ -42,9 +42,10 @@
|
|
|
42
42
|
"@atlaskit/tag-group": "^12.0.0",
|
|
43
43
|
"@atlaskit/textarea": "^8.2.0",
|
|
44
44
|
"@atlaskit/textfield": "^8.2.0",
|
|
45
|
+
"@atlaskit/tile": "^1.0.0",
|
|
45
46
|
"@atlaskit/toggle": "^15.2.0",
|
|
46
|
-
"@atlaskit/tokens": "^9.
|
|
47
|
-
"@atlaskit/tooltip": "^20.
|
|
47
|
+
"@atlaskit/tokens": "^9.1.0",
|
|
48
|
+
"@atlaskit/tooltip": "^20.14.0",
|
|
48
49
|
"@babel/runtime": "^7.0.0"
|
|
49
50
|
},
|
|
50
51
|
"peerDependencies": {
|
|
@@ -52,7 +53,7 @@
|
|
|
52
53
|
},
|
|
53
54
|
"devDependencies": {
|
|
54
55
|
"@atlassian/codegen": "^0.1.0",
|
|
55
|
-
"@atlassian/forge-ui": "^32.
|
|
56
|
+
"@atlassian/forge-ui": "^32.66.0",
|
|
56
57
|
"@types/node": "~22.17.1",
|
|
57
58
|
"lodash": "^4.17.21",
|
|
58
59
|
"react": "^18.2.0",
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
*
|
|
4
|
+
* Extract component prop types from UIKit 2 components - TileProps
|
|
5
|
+
*
|
|
6
|
+
* @codegen <<SignedSource::8b1e13d93e3348f59fa7b79a0da227aa>>
|
|
7
|
+
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit/tile/__generated__/index.partial.tsx <<SignedSource::d7ec62556fa495888b1d4326b71c4d52>>
|
|
9
|
+
*/
|
|
10
|
+
/* eslint @repo/internal/codegen/signed-source-integrity: "warn" */
|
|
11
|
+
|
|
12
|
+
import React from 'react';
|
|
13
|
+
import PlatformTile from '@atlaskit/tile';
|
|
14
|
+
|
|
15
|
+
type PlatformTileProps = React.ComponentProps<typeof PlatformTile>;
|
|
16
|
+
|
|
17
|
+
export type TileProps = Pick<
|
|
18
|
+
PlatformTileProps,
|
|
19
|
+
'backgroundColor' | 'label' | 'size' | 'children' | 'hasBorder' | 'isInset' | 'testId'
|
|
20
|
+
>;
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* A tile is a rounded square that takes an asset and represents a noun.
|
|
24
|
+
*
|
|
25
|
+
* @see [Tile](https://developer.atlassian.com/platform/forge/ui-kit/components/tile/) in UI Kit documentation for more information
|
|
26
|
+
*/
|
|
27
|
+
export type TTile<T> = (props: TileProps) => T;
|
|
@@ -57,6 +57,7 @@ export type { TagGroupProps, TTagGroup } from './TagGroupProps.codegen';
|
|
|
57
57
|
export type { SimpleTagProps as TagProps, TSimpleTag as TTag } from './TagProps.codegen';
|
|
58
58
|
export type { TextAreaProps, TTextArea } from './TextAreaProps.codegen';
|
|
59
59
|
export type { TextfieldProps, TTextfield } from './TextfieldProps.codegen';
|
|
60
|
+
export type { TileProps, TTile } from './TileProps.codegen';
|
|
60
61
|
export type { TimePickerProps, TTimePicker } from './TimePickerProps.codegen';
|
|
61
62
|
export type { ToggleProps, TToggle } from './ToggleProps.codegen';
|
|
62
63
|
export type { TooltipProps, TTooltip } from './TooltipProps.codegen';
|
|
@@ -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
|
/**
|
package/src/index.ts
CHANGED
|
@@ -55,6 +55,7 @@ export type {
|
|
|
55
55
|
TextProps,
|
|
56
56
|
TextAreaProps,
|
|
57
57
|
TextfieldProps,
|
|
58
|
+
TileProps,
|
|
58
59
|
ToggleProps,
|
|
59
60
|
TooltipProps,
|
|
60
61
|
TimePickerProps,
|
|
@@ -127,6 +128,7 @@ export type {
|
|
|
127
128
|
TText,
|
|
128
129
|
TPressable,
|
|
129
130
|
TFilePicker,
|
|
131
|
+
TTile,
|
|
130
132
|
} from './components/__generated__';
|
|
131
133
|
|
|
132
134
|
export type {
|