@atlaskit/forge-react-types 0.37.7 → 0.37.9
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 +16 -0
- package/dist/types/components/__generated__/ButtonGroupProps.codegen.d.ts +3 -3
- package/dist/types/components/__generated__/ButtonProps.codegen.d.ts +5 -2
- package/dist/types/components/__generated__/CheckboxGroupProps.codegen.d.ts +21 -2
- package/dist/types/components/__generated__/DatePickerProps.codegen.d.ts +3 -3
- package/dist/types/components/__generated__/ErrorMessageProps.codegen.d.ts +4 -3
- package/dist/types/components/__generated__/FormFooterProps.codegen.d.ts +12 -4
- package/dist/types/components/__generated__/FormHeaderProps.codegen.d.ts +5 -3
- package/dist/types/components/__generated__/FormProps.codegen.d.ts +14 -2
- package/dist/types/components/__generated__/FormSectionProps.codegen.d.ts +4 -3
- package/dist/types/components/__generated__/HelperMessageProps.codegen.d.ts +4 -3
- package/dist/types/components/__generated__/IconProps.codegen.d.ts +22 -2
- package/dist/types/components/__generated__/InlineEditProps.codegen.d.ts +6 -2
- package/dist/types/components/__generated__/InlineProps.codegen.d.ts +3 -3
- package/dist/types/components/__generated__/LabelProps.codegen.d.ts +3 -3
- package/dist/types/components/__generated__/LinkButtonProps.codegen.d.ts +5 -2
- package/dist/types/components/__generated__/ListItemProps.codegen.d.ts +3 -2
- package/dist/types/components/__generated__/ListProps.codegen.d.ts +14 -2
- package/dist/types/components/__generated__/LoadingButtonProps.codegen.d.ts +3 -3
- package/dist/types/components/__generated__/ModalBodyProps.codegen.d.ts +3 -3
- package/dist/types/components/__generated__/ModalFooterProps.codegen.d.ts +4 -3
- package/dist/types/components/__generated__/ModalHeaderProps.codegen.d.ts +3 -3
- package/dist/types/components/__generated__/ModalTitleProps.codegen.d.ts +3 -3
- package/dist/types/components/__generated__/ModalTransitionProps.codegen.d.ts +3 -3
- package/dist/types/components/__generated__/PopupProps.codegen.d.ts +15 -2
- package/dist/types/components/__generated__/SelectProps.codegen.d.ts +6 -2
- package/dist/types/components/__generated__/StackProps.codegen.d.ts +3 -3
- package/dist/types/components/__generated__/TabListProps.codegen.d.ts +3 -3
- package/dist/types/components/__generated__/TabPanelProps.codegen.d.ts +3 -3
- package/dist/types/components/__generated__/TabProps.codegen.d.ts +3 -3
- package/dist/types/components/__generated__/TextAreaProps.codegen.d.ts +6 -2
- package/dist/types/components/__generated__/TextfieldProps.codegen.d.ts +6 -2
- package/dist/types/components/__generated__/TimePickerProps.codegen.d.ts +3 -3
- package/dist/types/components/__generated__/TooltipProps.codegen.d.ts +3 -3
- package/dist/types/components/__generated__/ValidMessageProps.codegen.d.ts +4 -3
- package/dist/types/components/__generated__/index.d.ts +65 -58
- package/dist/types/components/charts/BarChartProps.d.ts +92 -3
- package/dist/types/components/charts/LineChartProps.d.ts +35 -0
- package/dist/types/components/charts/PieChartProps.d.ts +44 -0
- package/dist/types/components/charts/SingleValueChartProps.d.ts +25 -0
- package/dist/types/components/charts/index.d.ts +4 -4
- package/dist/types/index.d.ts +1 -1
- package/dist/types-ts4.5/components/__generated__/ButtonGroupProps.codegen.d.ts +3 -3
- package/dist/types-ts4.5/components/__generated__/ButtonProps.codegen.d.ts +5 -2
- package/dist/types-ts4.5/components/__generated__/CheckboxGroupProps.codegen.d.ts +21 -2
- package/dist/types-ts4.5/components/__generated__/DatePickerProps.codegen.d.ts +3 -3
- package/dist/types-ts4.5/components/__generated__/ErrorMessageProps.codegen.d.ts +4 -3
- package/dist/types-ts4.5/components/__generated__/FormFooterProps.codegen.d.ts +12 -4
- package/dist/types-ts4.5/components/__generated__/FormHeaderProps.codegen.d.ts +5 -3
- package/dist/types-ts4.5/components/__generated__/FormProps.codegen.d.ts +14 -2
- package/dist/types-ts4.5/components/__generated__/FormSectionProps.codegen.d.ts +4 -3
- package/dist/types-ts4.5/components/__generated__/HelperMessageProps.codegen.d.ts +4 -3
- package/dist/types-ts4.5/components/__generated__/IconProps.codegen.d.ts +22 -2
- package/dist/types-ts4.5/components/__generated__/InlineEditProps.codegen.d.ts +6 -2
- package/dist/types-ts4.5/components/__generated__/InlineProps.codegen.d.ts +3 -3
- package/dist/types-ts4.5/components/__generated__/LabelProps.codegen.d.ts +3 -3
- package/dist/types-ts4.5/components/__generated__/LinkButtonProps.codegen.d.ts +5 -2
- package/dist/types-ts4.5/components/__generated__/ListItemProps.codegen.d.ts +3 -2
- package/dist/types-ts4.5/components/__generated__/ListProps.codegen.d.ts +14 -2
- package/dist/types-ts4.5/components/__generated__/LoadingButtonProps.codegen.d.ts +3 -3
- package/dist/types-ts4.5/components/__generated__/ModalBodyProps.codegen.d.ts +3 -3
- package/dist/types-ts4.5/components/__generated__/ModalFooterProps.codegen.d.ts +4 -3
- package/dist/types-ts4.5/components/__generated__/ModalHeaderProps.codegen.d.ts +3 -3
- package/dist/types-ts4.5/components/__generated__/ModalTitleProps.codegen.d.ts +3 -3
- package/dist/types-ts4.5/components/__generated__/ModalTransitionProps.codegen.d.ts +3 -3
- package/dist/types-ts4.5/components/__generated__/PopupProps.codegen.d.ts +15 -2
- package/dist/types-ts4.5/components/__generated__/SelectProps.codegen.d.ts +6 -2
- package/dist/types-ts4.5/components/__generated__/StackProps.codegen.d.ts +3 -3
- package/dist/types-ts4.5/components/__generated__/TabListProps.codegen.d.ts +3 -3
- package/dist/types-ts4.5/components/__generated__/TabPanelProps.codegen.d.ts +3 -3
- package/dist/types-ts4.5/components/__generated__/TabProps.codegen.d.ts +3 -3
- package/dist/types-ts4.5/components/__generated__/TextAreaProps.codegen.d.ts +6 -2
- package/dist/types-ts4.5/components/__generated__/TextfieldProps.codegen.d.ts +6 -2
- package/dist/types-ts4.5/components/__generated__/TimePickerProps.codegen.d.ts +3 -3
- package/dist/types-ts4.5/components/__generated__/TooltipProps.codegen.d.ts +3 -3
- package/dist/types-ts4.5/components/__generated__/ValidMessageProps.codegen.d.ts +4 -3
- package/dist/types-ts4.5/components/__generated__/index.d.ts +65 -58
- package/dist/types-ts4.5/components/charts/BarChartProps.d.ts +92 -3
- package/dist/types-ts4.5/components/charts/LineChartProps.d.ts +35 -0
- package/dist/types-ts4.5/components/charts/PieChartProps.d.ts +44 -0
- package/dist/types-ts4.5/components/charts/SingleValueChartProps.d.ts +25 -0
- package/dist/types-ts4.5/components/charts/index.d.ts +4 -4
- package/dist/types-ts4.5/index.d.ts +1 -1
- package/package.json +4 -4
- package/src/components/__generated__/ButtonGroupProps.codegen.tsx +3 -3
- package/src/components/__generated__/ButtonProps.codegen.tsx +5 -2
- package/src/components/__generated__/CheckboxGroupProps.codegen.tsx +26 -3
- package/src/components/__generated__/DatePickerProps.codegen.tsx +3 -3
- package/src/components/__generated__/ErrorMessageProps.codegen.tsx +4 -3
- package/src/components/__generated__/FormFooterProps.codegen.tsx +12 -4
- package/src/components/__generated__/FormHeaderProps.codegen.tsx +5 -3
- package/src/components/__generated__/FormProps.codegen.tsx +14 -2
- package/src/components/__generated__/FormSectionProps.codegen.tsx +4 -3
- package/src/components/__generated__/HelperMessageProps.codegen.tsx +4 -3
- package/src/components/__generated__/IconProps.codegen.tsx +22 -2
- package/src/components/__generated__/InlineEditProps.codegen.tsx +8 -3
- package/src/components/__generated__/InlineProps.codegen.tsx +3 -3
- package/src/components/__generated__/LabelProps.codegen.tsx +3 -3
- package/src/components/__generated__/LinkButtonProps.codegen.tsx +5 -2
- package/src/components/__generated__/ListItemProps.codegen.tsx +5 -3
- package/src/components/__generated__/ListProps.codegen.tsx +16 -3
- package/src/components/__generated__/LoadingButtonProps.codegen.tsx +17 -5
- package/src/components/__generated__/ModalBodyProps.codegen.tsx +3 -3
- package/src/components/__generated__/ModalFooterProps.codegen.tsx +4 -3
- package/src/components/__generated__/ModalHeaderProps.codegen.tsx +3 -3
- package/src/components/__generated__/ModalTitleProps.codegen.tsx +3 -3
- package/src/components/__generated__/ModalTransitionProps.codegen.tsx +3 -3
- package/src/components/__generated__/PopupProps.codegen.tsx +18 -3
- package/src/components/__generated__/SelectProps.codegen.tsx +8 -3
- package/src/components/__generated__/StackProps.codegen.tsx +3 -3
- package/src/components/__generated__/TabListProps.codegen.tsx +3 -3
- package/src/components/__generated__/TabPanelProps.codegen.tsx +3 -3
- package/src/components/__generated__/TabProps.codegen.tsx +3 -3
- package/src/components/__generated__/TextAreaProps.codegen.tsx +8 -3
- package/src/components/__generated__/TextfieldProps.codegen.tsx +8 -3
- package/src/components/__generated__/TimePickerProps.codegen.tsx +3 -3
- package/src/components/__generated__/TooltipProps.codegen.tsx +3 -3
- package/src/components/__generated__/ValidMessageProps.codegen.tsx +4 -3
- package/src/components/__generated__/index.ts +67 -59
- package/src/components/charts/BarChartProps.tsx +101 -3
- package/src/components/charts/LineChartProps.tsx +36 -0
- package/src/components/charts/PieChartProps.tsx +45 -0
- package/src/components/charts/SingleValueChartProps.tsx +26 -0
- package/src/components/charts/index.ts +7 -3
- package/src/index.ts +59 -0
|
@@ -1,15 +1,59 @@
|
|
|
1
1
|
import type { ChartColorTokens } from '../../types';
|
|
2
2
|
export type PieChartProps = {
|
|
3
|
+
/**
|
|
4
|
+
* The static width of the chart in pixels. If this is not specified, the width is responsive.
|
|
5
|
+
*/
|
|
3
6
|
width?: number;
|
|
7
|
+
/**
|
|
8
|
+
* The static height of the chart in pixels. Defaults to `400`.
|
|
9
|
+
*/
|
|
4
10
|
height?: number;
|
|
11
|
+
/**
|
|
12
|
+
* Data can be one of two formats:
|
|
13
|
+
* 1. [Array of arrays](https://developer.atlassian.com/platform/forge/ui-kit/components/pie-chart/#1--array-of-arrays).
|
|
14
|
+
* 2. [Array of objects](https://developer.atlassian.com/platform/forge/ui-kit/components/pie-chart/#2--array-of-objects).
|
|
15
|
+
*/
|
|
5
16
|
data: unknown[];
|
|
17
|
+
/**
|
|
18
|
+
* Boolean to display the chart border. Defaults to `false`.
|
|
19
|
+
*/
|
|
6
20
|
showBorder?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Accessor to define the color grouping. This can be a numerical or string index.
|
|
23
|
+
* For more information on all accessors, see [Data](https://developer.atlassian.com/platform/forge/ui-kit/components/pie-chart/#data).
|
|
24
|
+
*/
|
|
7
25
|
colorAccessor: number | string;
|
|
26
|
+
/**
|
|
27
|
+
* Accessor to define the angle of arcs in a pie.
|
|
28
|
+
*/
|
|
8
29
|
valueAccessor: number | string;
|
|
30
|
+
/**
|
|
31
|
+
* Accessor to define the labels.
|
|
32
|
+
*/
|
|
9
33
|
labelAccessor: number | string;
|
|
34
|
+
/**
|
|
35
|
+
* A string value that represents the title of the chart.
|
|
36
|
+
*/
|
|
10
37
|
title?: string;
|
|
38
|
+
/**
|
|
39
|
+
* A string value that represents the subtitle of the chart. This appears below the title.
|
|
40
|
+
*/
|
|
11
41
|
subtitle?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Boolean to render the pie as the donut variation. Defaults to `false`.
|
|
44
|
+
*/
|
|
12
45
|
isDonut?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Boolean to display labels on top of each slice. Defaults to `false`.
|
|
48
|
+
*/
|
|
13
49
|
showMarkLabels?: boolean;
|
|
50
|
+
/**
|
|
51
|
+
* An array of [chart color tokens](https://atlassian.design/components/tokens/all-tokens#color-chart).
|
|
52
|
+
* This is utilized to render each slice with the specified colors, based on the color grouping given by colorAccessor.
|
|
53
|
+
*/
|
|
14
54
|
colors?: ChartColorTokens[];
|
|
15
55
|
};
|
|
56
|
+
/**
|
|
57
|
+
* A visual representation of data proportions in a circular format.
|
|
58
|
+
*/
|
|
59
|
+
export type TPieChart<T> = (props: PieChartProps) => T;
|
|
@@ -1,8 +1,33 @@
|
|
|
1
1
|
export type SingleValueChartProps = {
|
|
2
|
+
/**
|
|
3
|
+
* Data can be one of two formats:
|
|
4
|
+
* 1. A **number** - The value that is displayed, abbreviated at the thousand, millions, trillions and billions.
|
|
5
|
+
* 2. An **array of numbers**: The first number in the array is used as the display value, the second number in the array is used to calculate the increase/decrease percentage relative to the first number.
|
|
6
|
+
*/
|
|
2
7
|
data: number | number[];
|
|
8
|
+
/**
|
|
9
|
+
* The static width of the chart in pixels. If this is not specified, the width is responsive.
|
|
10
|
+
*/
|
|
3
11
|
width?: number;
|
|
12
|
+
/**
|
|
13
|
+
* The static height of the chart in pixels. Defaults to `120`.
|
|
14
|
+
*/
|
|
4
15
|
height?: number;
|
|
16
|
+
/**
|
|
17
|
+
* Boolean to display the chart border. Defaults to `false`.
|
|
18
|
+
*/
|
|
5
19
|
showBorder?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* A string value that represents the title of the chart.
|
|
22
|
+
*/
|
|
6
23
|
title?: string;
|
|
24
|
+
/**
|
|
25
|
+
* A string value that represents the subtitle of the chart. This appears below the metric value.
|
|
26
|
+
*/
|
|
7
27
|
subtitle?: string;
|
|
8
28
|
};
|
|
29
|
+
/**
|
|
30
|
+
* A visualization representation of information with a single value as its metrics.
|
|
31
|
+
* The metric can be displayed with a increase/decrease indicator to display trends or changes over time.
|
|
32
|
+
*/
|
|
33
|
+
export type TSingleValueChart<T> = (props: SingleValueChartProps) => T;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type { BarChartProps, StackBarChartProps, HorizontalStackBarChartProps, HorizontalBarChartProps, } from './BarChartProps';
|
|
2
|
-
export type { LineChartProps } from './LineChartProps';
|
|
3
|
-
export type { SingleValueChartProps } from './SingleValueChartProps';
|
|
4
|
-
export type { PieChartProps } from './PieChartProps';
|
|
1
|
+
export type { BarChartProps, StackBarChartProps, HorizontalStackBarChartProps, HorizontalBarChartProps, TBarChart, TStackBarChart, THorizontalStackBarChart, THorizontalBarChart, } from './BarChartProps';
|
|
2
|
+
export type { LineChartProps, TLineChart } from './LineChartProps';
|
|
3
|
+
export type { SingleValueChartProps, TSingleValueChart } from './SingleValueChartProps';
|
|
4
|
+
export type { PieChartProps, TPieChart } from './PieChartProps';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export type { AdfRendererProps, BadgeProps, 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, TextProps, TextAreaProps, TextfieldProps, ToggleProps, TooltipProps, TimePickerProps, ValidMessageProps, PopupProps, InlineEditProps, TBadge, TBox, TAdfRenderer, } from './components/__generated__';
|
|
1
|
+
export type { AdfRendererProps, BadgeProps, 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, TextProps, TextAreaProps, TextfieldProps, ToggleProps, TooltipProps, TimePickerProps, ValidMessageProps, PopupProps, InlineEditProps, TBadge, TBleed, TBox, TButtonGroup, TButton, TCalendar, TCheckbox, TCheckboxGroup, TCodeBlock, TCode, TDatePicker, TDynamicTable, TEmptyState, TErrorMessage, 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, } from './components/__generated__';
|
|
2
2
|
export type { BarChartProps, StackBarChartProps, HorizontalStackBarChartProps, HorizontalBarChartProps, LineChartProps, SingleValueChartProps, PieChartProps, } from './components/charts';
|
|
3
3
|
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.37.
|
|
3
|
+
"version": "0.37.9",
|
|
4
4
|
"description": "Component types for Forge UI Kit React components",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -29,12 +29,12 @@
|
|
|
29
29
|
"@atlaskit/calendar": "^17.1.0",
|
|
30
30
|
"@atlaskit/checkbox": "^17.0.0",
|
|
31
31
|
"@atlaskit/code": "^16.0.0",
|
|
32
|
-
"@atlaskit/datetime-picker": "^16.
|
|
32
|
+
"@atlaskit/datetime-picker": "^16.1.0",
|
|
33
33
|
"@atlaskit/dynamic-table": "^18.0.0",
|
|
34
34
|
"@atlaskit/empty-state": "^9.0.0",
|
|
35
35
|
"@atlaskit/form": "^12.0.0",
|
|
36
36
|
"@atlaskit/heading": "^5.1.0",
|
|
37
|
-
"@atlaskit/inline-edit": "^15.
|
|
37
|
+
"@atlaskit/inline-edit": "^15.1.0",
|
|
38
38
|
"@atlaskit/lozenge": "^12.2.0",
|
|
39
39
|
"@atlaskit/modal-dialog": "^13.0.0",
|
|
40
40
|
"@atlaskit/popup": "^2.0.0",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"@atlaskit/radio": "^8.0.0",
|
|
45
45
|
"@atlaskit/range": "^9.0.0",
|
|
46
46
|
"@atlaskit/renderer": "^113.2.0",
|
|
47
|
-
"@atlaskit/section-message": "^8.
|
|
47
|
+
"@atlaskit/section-message": "^8.1.0",
|
|
48
48
|
"@atlaskit/select": "^20.0.0",
|
|
49
49
|
"@atlaskit/spinner": "^18.0.0",
|
|
50
50
|
"@atlaskit/tabs": "^18.0.0",
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - ButtonGroupProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::cfcaf362cef2884ded73338c52c8f437>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
-
* @codegenDependency ../../../../forge-ui/src/components/UIKit/button/__generated__/button-group.partial.tsx <<SignedSource::
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit/button/__generated__/button-group.partial.tsx <<SignedSource::83622155981d05f77224a32bab4969b5>>
|
|
9
9
|
*/
|
|
10
10
|
/* eslint @repo/internal/codegen/signed-source-integrity: "warn" */
|
|
11
11
|
|
|
@@ -18,6 +18,6 @@ export type ButtonGroupProps = Pick<
|
|
|
18
18
|
> & { appearance?: ButtonProps['appearance'] };
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
|
-
* A button
|
|
21
|
+
* A button group gives users access to frequently performed, related actions.
|
|
22
22
|
*/
|
|
23
23
|
export type TButtonGroup<T> = (props: ButtonGroupProps) => T;
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - ButtonProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::77d1847e88419084fc81129d7637b40b>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
-
* @codegenDependency ../../../../forge-ui/src/components/UIKit/button/__generated__/index.partial.tsx <<SignedSource::
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit/button/__generated__/index.partial.tsx <<SignedSource::f9a16b36e0a307a53ee30a009373ab49>>
|
|
9
9
|
*/
|
|
10
10
|
/* eslint @repo/internal/codegen/signed-source-integrity: "warn" */
|
|
11
11
|
|
|
@@ -391,4 +391,7 @@ export type ButtonProps = Pick<
|
|
|
391
391
|
spacing?: PlatformButtonProps['spacing'] | 'none';
|
|
392
392
|
};
|
|
393
393
|
|
|
394
|
+
/**
|
|
395
|
+
* A button triggers an event or action. They let users know what will happen next.
|
|
396
|
+
*/
|
|
394
397
|
export type TButton<T> = (props: ButtonProps) => T;
|
|
@@ -3,17 +3,40 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - CheckboxGroupProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::89e98a25ac16f92b5d18b061bb6fce57>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
-
* @codegenDependency ../../../../forge-ui/src/components/UIKit/checkboxgroup/index.tsx <<SignedSource::
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit/checkboxgroup/index.tsx <<SignedSource::4db9e0c029805d1c1fd28b923f3dbae3>>
|
|
9
9
|
*/
|
|
10
10
|
/* eslint @repo/internal/codegen/signed-source-integrity: "warn" */
|
|
11
11
|
|
|
12
12
|
export interface CheckboxGroupProps {
|
|
13
|
+
/**
|
|
14
|
+
* Sets the name prop on each of the Checkbox elements in the group.
|
|
15
|
+
*/
|
|
13
16
|
name: string;
|
|
17
|
+
/**
|
|
18
|
+
* An array of objects, each object is mapped onto a Checkbox element within the group.
|
|
19
|
+
*/
|
|
14
20
|
options: { label: string; value: string; isDisabled?: boolean }[];
|
|
21
|
+
/**
|
|
22
|
+
* Once set, controls the selected value on the `CheckboxGroup`.
|
|
23
|
+
*/
|
|
15
24
|
value?: string[];
|
|
25
|
+
/*
|
|
26
|
+
* Function that gets fired after each change event.
|
|
27
|
+
*/
|
|
16
28
|
onChange?: (values: string[]) => void;
|
|
29
|
+
/**
|
|
30
|
+
* Sets the initial selected value on the `CheckboxGroup`.
|
|
31
|
+
*/
|
|
17
32
|
defaultValue?: string[];
|
|
33
|
+
/**
|
|
34
|
+
* Sets the disabled state of all Checkbox elements in the group.
|
|
35
|
+
*/
|
|
18
36
|
isDisabled?: boolean;
|
|
19
|
-
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* A Checkbox group is a list of options where one or more choices can be selected.
|
|
41
|
+
*/
|
|
42
|
+
export type TCheckboxGroup<T> = (props: CheckboxGroupProps) => T;
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - DatePickerProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::a4fe0c77ab65e00b2bc8ebeadd33e2e3>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
-
* @codegenDependency ../../../../forge-ui/src/components/UIKit/datepicker/__generated__/index.partial.tsx <<SignedSource::
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit/datepicker/__generated__/index.partial.tsx <<SignedSource::5dcbe693f00f3a2725b9e64932a3309c>>
|
|
9
9
|
*/
|
|
10
10
|
/* eslint @repo/internal/codegen/signed-source-integrity: "warn" */
|
|
11
11
|
|
|
@@ -54,6 +54,6 @@ export type DatePickerProps = {
|
|
|
54
54
|
} & Partial<Omit<FieldProps, 'onChange'>>;
|
|
55
55
|
|
|
56
56
|
/**
|
|
57
|
-
* A date
|
|
57
|
+
* A date picker allows the user to select a particular date.
|
|
58
58
|
*/
|
|
59
59
|
export type TDatePicker<T> = (props: DatePickerProps) => T;
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - ErrorMessageProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::059ea63aef7f094365447bb300fed9f6>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
-
* @codegenDependency ../../../../forge-ui/src/components/UIKit/form/__generated__/error-message.partial.tsx <<SignedSource::
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit/form/__generated__/error-message.partial.tsx <<SignedSource::3758488a0115c629a624fcaae1f524c7>>
|
|
9
9
|
*/
|
|
10
10
|
/* eslint @repo/internal/codegen/signed-source-integrity: "warn" */
|
|
11
11
|
|
|
@@ -20,6 +20,7 @@ export type ErrorMessageProps = Pick<
|
|
|
20
20
|
>;
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* An error message is used to tell a user that the field input is invalid.
|
|
24
|
+
* For example, an error message could be "Invalid username, needs to be more than 4 characters".
|
|
24
25
|
*/
|
|
25
26
|
export type TErrorMessage<T> = (props: ErrorMessageProps) => T;
|
|
@@ -3,16 +3,22 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - FormFooterProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::e6d74700f46888d63a013f997339596b>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
-
* @codegenDependency ../../../../forge-ui/src/components/UIKit/form/__generated__/form-footer.partial.tsx <<SignedSource::
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit/form/__generated__/form-footer.partial.tsx <<SignedSource::0b729df36afbc86cc134984bb4c16b3e>>
|
|
9
9
|
*/
|
|
10
10
|
/* eslint @repo/internal/codegen/signed-source-integrity: "warn" */
|
|
11
11
|
|
|
12
12
|
import React from 'react';
|
|
13
13
|
import { FormFooter as PlatformFormFooter } from '@atlaskit/form';
|
|
14
14
|
|
|
15
|
-
type
|
|
15
|
+
type _PlatformFormFooterProps = React.ComponentProps<typeof PlatformFormFooter>;
|
|
16
|
+
export type PlatformFormFooterProps = Omit<_PlatformFormFooterProps, 'align'> & {
|
|
17
|
+
/**
|
|
18
|
+
* Sets the alignment of the footer contents. This is often a button. Defaults to `end`.
|
|
19
|
+
*/
|
|
20
|
+
align?: _PlatformFormFooterProps['align'];
|
|
21
|
+
}
|
|
16
22
|
|
|
17
23
|
export type FormFooterProps = Pick<
|
|
18
24
|
PlatformFormFooterProps,
|
|
@@ -20,6 +26,8 @@ export type FormFooterProps = Pick<
|
|
|
20
26
|
>;
|
|
21
27
|
|
|
22
28
|
/**
|
|
23
|
-
*
|
|
29
|
+
* Use a form footer to set the content at the end of the form. This is used for a button that submits the form.
|
|
30
|
+
*
|
|
31
|
+
* This is positioned after the last field in the form.
|
|
24
32
|
*/
|
|
25
33
|
export type TFormFooter<T> = (props: FormFooterProps) => T;
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - FormHeaderProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::7ef542fd2e0804c707145ab13db81db1>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
-
* @codegenDependency ../../../../forge-ui/src/components/UIKit/form/__generated__/form-header.partial.tsx <<SignedSource::
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit/form/__generated__/form-header.partial.tsx <<SignedSource::8791c333c19a64caa8dd6b7461a53082>>
|
|
9
9
|
*/
|
|
10
10
|
/* eslint @repo/internal/codegen/signed-source-integrity: "warn" */
|
|
11
11
|
|
|
@@ -20,6 +20,8 @@ export type FormHeaderProps = Pick<
|
|
|
20
20
|
>;
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* Use a form header to describe the contents of the form. This is the title and description of the form.
|
|
24
|
+
* If your form contains required fields, the form header is also where you should include a legend
|
|
25
|
+
* for sighted users to know that * indicates a required field.
|
|
24
26
|
*/
|
|
25
27
|
export type TFormHeader<T> = (props: FormHeaderProps) => T;
|
|
@@ -3,17 +3,29 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - FormProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::6ac049125d8d8c2436805c5e3a845802>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
-
* @codegenDependency ../../../../forge-ui/src/components/UIKit/form/index.tsx <<SignedSource::
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit/form/index.tsx <<SignedSource::b6dd991b4a5e73adbac9321d53cd909e>>
|
|
9
9
|
*/
|
|
10
10
|
/* eslint @repo/internal/codegen/signed-source-integrity: "warn" */
|
|
11
11
|
|
|
12
12
|
import type { ReactNode } from 'react';
|
|
13
13
|
|
|
14
14
|
export type FormProps = {
|
|
15
|
+
/**
|
|
16
|
+
* Event handler called when the form is submitted. Fields must be free of validation errors.
|
|
17
|
+
*
|
|
18
|
+
* All modules except for `jiraServiceManagement:assetsImportType` must use `() => Promise<void>|void`.
|
|
19
|
+
*
|
|
20
|
+
* For the `jiraServiceManagement:assetsImportType` module, the `onSubmit` event handler returns
|
|
21
|
+
* a `boolean` value indicating if the form is valid (`true`) or invalid (`false`).
|
|
22
|
+
* If you use `() => Promise<void>|void` for this module, it will default to true.
|
|
23
|
+
*/
|
|
15
24
|
onSubmit: () => Promise<void | boolean> | void;
|
|
16
25
|
children: ReactNode;
|
|
17
26
|
};
|
|
18
27
|
|
|
28
|
+
/**
|
|
29
|
+
* A form allows users to input information.
|
|
30
|
+
*/
|
|
19
31
|
export type TForm<T> = (props: FormProps) => T;
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - FormSectionProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::2d079615b76393e9241b054b75fde5f3>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
-
* @codegenDependency ../../../../forge-ui/src/components/UIKit/form/__generated__/form-section.partial.tsx <<SignedSource::
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit/form/__generated__/form-section.partial.tsx <<SignedSource::0dd9401d75f62dec7336bdea43302961>>
|
|
9
9
|
*/
|
|
10
10
|
/* eslint @repo/internal/codegen/signed-source-integrity: "warn" */
|
|
11
11
|
|
|
@@ -20,6 +20,7 @@ export type FormSectionProps = Pick<
|
|
|
20
20
|
>;
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* Use a form section to group related information together, so that longer forms are easier to understand.
|
|
24
|
+
* There can be multiple form sections in one form.
|
|
24
25
|
*/
|
|
25
26
|
export type TFormSection<T> = (props: FormSectionProps) => T;
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - HelperMessageProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::0da9514581e07c67f8f9a8ba0d9774b9>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
-
* @codegenDependency ../../../../forge-ui/src/components/UIKit/form/__generated__/helper-message.partial.tsx <<SignedSource::
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit/form/__generated__/helper-message.partial.tsx <<SignedSource::03fa772bfaf53905106f1cafbb428104>>
|
|
9
9
|
*/
|
|
10
10
|
/* eslint @repo/internal/codegen/signed-source-integrity: "warn" */
|
|
11
11
|
|
|
@@ -20,6 +20,7 @@ export type HelperMessageProps = Pick<
|
|
|
20
20
|
>;
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
|
-
* A
|
|
23
|
+
* A helper message tells the user what kind of input the field takes.
|
|
24
|
+
* For example, a helper message could be "Password should be more than 4 characters".
|
|
24
25
|
*/
|
|
25
26
|
export type THelperMessage<T> = (props: HelperMessageProps) => T;
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - IconProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::b24cc22d6f60b86f1646a75a0bafc7cd>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
-
* @codegenDependency ../../../../forge-ui/src/components/UIKit/icon/index.tsx <<SignedSource::
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit/icon/index.tsx <<SignedSource::54a87ae131386a26a52d09234f67aa98>>
|
|
9
9
|
*/
|
|
10
10
|
/* eslint @repo/internal/codegen/signed-source-integrity: "warn" */
|
|
11
11
|
|
|
@@ -375,11 +375,31 @@ type Glyph = Icon;
|
|
|
375
375
|
export type IconColor = Extract<ActiveTokens, `color.icon.${string}`> | 'color.icon';
|
|
376
376
|
|
|
377
377
|
export interface IconProps {
|
|
378
|
+
/**
|
|
379
|
+
* There are three icon sizes – `small` (16px), `medium` (24px), `large` (32px), and `xlarge` (48px).
|
|
380
|
+
* This pixel size refers to the canvas the icon sits on, not the size of the icon shape itself.
|
|
381
|
+
*/
|
|
378
382
|
size?: 'small' | 'medium' | 'large';
|
|
383
|
+
/**
|
|
384
|
+
* Text used to describe what the icon is in context. A label is needed when there is no pairing visible text next to the icon.
|
|
385
|
+
* An empty string marks the icon as presentation only.
|
|
386
|
+
*/
|
|
379
387
|
label: string;
|
|
388
|
+
/**
|
|
389
|
+
* Name of the icon to be rendered.
|
|
390
|
+
*/
|
|
380
391
|
glyph: Glyph;
|
|
392
|
+
/**
|
|
393
|
+
* Primary color for the icon. Inherits the current font color by default.
|
|
394
|
+
*/
|
|
381
395
|
primaryColor?: IconColor;
|
|
396
|
+
/**
|
|
397
|
+
* Secondary color for the icon. Defaults to the page background for an icon that supports two colors.
|
|
398
|
+
*/
|
|
382
399
|
secondaryColor?: IconColor;
|
|
383
400
|
}
|
|
384
401
|
|
|
402
|
+
/**
|
|
403
|
+
* An icon is a visual representation of a command, device, directory, or common action.
|
|
404
|
+
*/
|
|
385
405
|
export type TIcon<T> = (props: IconProps) => T;
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - InlineEditProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::450b0aa0943b6519e89ee7c91f4124ad>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
-
* @codegenDependency ../../../../forge-ui/src/components/UIKit/inline-edit/index.tsx <<SignedSource::
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit/inline-edit/index.tsx <<SignedSource::23f59ce10b527efc04d36919c24aa2b0>>
|
|
9
9
|
*/
|
|
10
10
|
/* eslint @repo/internal/codegen/signed-source-integrity: "warn" */
|
|
11
11
|
|
|
@@ -28,4 +28,9 @@ export type InlineEditProps<V = string> = Omit<
|
|
|
28
28
|
// ADS has an additional analyticsEvent arg that is not optional. We don't use this in UI Kit and it can't be removed due to breaking changes in products
|
|
29
29
|
onConfirm: (value: V) => void;
|
|
30
30
|
editView: (fieldProps: EditViewFieldProps<V>) => React.ReactNode;
|
|
31
|
-
};
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* An inline edit displays a custom input component that switches between reading and editing on the same page.
|
|
35
|
+
*/
|
|
36
|
+
export type TInlineEdit<T> = (props: InlineEditProps) => T;
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - InlineProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::7e0e8c23de8b2392bf101ad017431b86>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
-
* @codegenDependency ../../../../forge-ui/src/components/UIKit/inline/__generated__/index.partial.tsx <<SignedSource::
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit/inline/__generated__/index.partial.tsx <<SignedSource::8123157b2afe19d52b47110fb754d43b>>
|
|
9
9
|
*/
|
|
10
10
|
/* eslint @repo/internal/codegen/signed-source-integrity: "warn" */
|
|
11
11
|
|
|
@@ -20,6 +20,6 @@ export type InlineProps = Pick<
|
|
|
20
20
|
>;
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* An inline manages the horizontal layout of direct children using flexbox.
|
|
24
24
|
*/
|
|
25
25
|
export type TInline<T> = (props: InlineProps) => T;
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - LabelProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::f12ab4339e5503f7db96ce306da7f685>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
-
* @codegenDependency ../../../../forge-ui/src/components/UIKit/form/__generated__/label.partial.tsx <<SignedSource::
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit/form/__generated__/label.partial.tsx <<SignedSource::55ecafcd1d98afb9b7f6f37d5168725c>>
|
|
9
9
|
*/
|
|
10
10
|
/* eslint @repo/internal/codegen/signed-source-integrity: "warn" */
|
|
11
11
|
|
|
@@ -16,6 +16,6 @@ export type LabelProps = Pick<PlatformLabelProps, 'children' | 'testId' | 'id'>
|
|
|
16
16
|
};
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
|
-
* A
|
|
19
|
+
* A label represents a caption for an item in a user interface.
|
|
20
20
|
*/
|
|
21
21
|
export type TLabel<T> = (props: LabelProps) => T;
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - LinkButtonProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::7c841825fdf02347d10084f2cd032f66>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
-
* @codegenDependency ../../../../forge-ui/src/components/UIKit/button/__generated__/link-button.partial.tsx <<SignedSource::
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit/button/__generated__/link-button.partial.tsx <<SignedSource::e74ee4aaf752a6e85a57950dce7a3683>>
|
|
9
9
|
*/
|
|
10
10
|
/* eslint @repo/internal/codegen/signed-source-integrity: "warn" */
|
|
11
11
|
|
|
@@ -31,4 +31,7 @@ export type LinkButtonProps = Pick<
|
|
|
31
31
|
spacing?: PlatformLinkButtonProps['spacing'] | 'none';
|
|
32
32
|
};
|
|
33
33
|
|
|
34
|
+
/**
|
|
35
|
+
* Renders a link in the style of a button.
|
|
36
|
+
*/
|
|
34
37
|
export type TLinkButton<T> = (props: LinkButtonProps) => T;
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - ListItemProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::498ef4606a16b666a2b159d16dc69460>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
-
* @codegenDependency ../../../../forge-ui/src/components/UIKit/list/listitem.tsx <<SignedSource::
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit/list/listitem.tsx <<SignedSource::73cdf1aa500fb4ffb5cbe4ecd40276a9>>
|
|
9
9
|
*/
|
|
10
10
|
/* eslint @repo/internal/codegen/signed-source-integrity: "warn" */
|
|
11
11
|
|
|
@@ -13,4 +13,6 @@ import React from 'react';
|
|
|
13
13
|
|
|
14
14
|
export interface ListItemProps {
|
|
15
15
|
children: React.ReactNode;
|
|
16
|
-
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export type TListItem<T> = (props: ListItemProps) => T;
|
|
@@ -3,15 +3,28 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - ListProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::400e8f876b65d0f5902e544922d64a54>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
-
* @codegenDependency ../../../../forge-ui/src/components/UIKit/list/list.tsx <<SignedSource::
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit/list/list.tsx <<SignedSource::08290162e7f9e2a672b27cec286206cf>>
|
|
9
9
|
*/
|
|
10
10
|
/* eslint @repo/internal/codegen/signed-source-integrity: "warn" */
|
|
11
11
|
|
|
12
12
|
import React from 'react';
|
|
13
13
|
|
|
14
14
|
export interface ListProps {
|
|
15
|
+
/**
|
|
16
|
+
* The `ordered` type should be used when representing an ordered list of items.
|
|
17
|
+
* The `unordered` type should be used when representing an unordered list of items.
|
|
18
|
+
* The type is set to `unordered` by default.
|
|
19
|
+
*/
|
|
15
20
|
type: 'ordered' | 'unordered';
|
|
21
|
+
/**
|
|
22
|
+
* The items to render inside a `List` group.
|
|
23
|
+
*/
|
|
16
24
|
children: React.ReactNode;
|
|
17
|
-
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* An unordered (bulleted) or ordered (numbered) list.
|
|
29
|
+
*/
|
|
30
|
+
export type TList<T> = (props: ListProps) => T;
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - LoadingButtonProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::3abc490a74619a5e969b95b74b8ee6f6>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
-
* @codegenDependency ../../../../forge-ui/src/components/UIKit/button/
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit/button/loading-button.tsx <<SignedSource::66edb728e0e941c5f53236e94cd02c18>>
|
|
9
9
|
*/
|
|
10
10
|
/* eslint @repo/internal/codegen/signed-source-integrity: "warn" */
|
|
11
11
|
|
|
@@ -15,11 +15,23 @@ import { LoadingButton as PlatformLoadingButton } from '@atlaskit/button';
|
|
|
15
15
|
type PlatformLoadingButtonProps = React.ComponentProps<typeof PlatformLoadingButton>;
|
|
16
16
|
|
|
17
17
|
export type LoadingButtonProps = Pick<
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
PlatformLoadingButtonProps,
|
|
19
|
+
| 'children'
|
|
20
|
+
| 'appearance'
|
|
21
|
+
| 'autoFocus'
|
|
22
|
+
| 'isDisabled'
|
|
23
|
+
| 'isSelected'
|
|
24
|
+
| 'onBlur'
|
|
25
|
+
| 'onClick'
|
|
26
|
+
| 'onFocus'
|
|
27
|
+
| 'spacing'
|
|
28
|
+
| 'testId'
|
|
29
|
+
| 'shouldFitContainer'
|
|
30
|
+
| 'type'
|
|
31
|
+
| 'isLoading'
|
|
20
32
|
>;
|
|
21
33
|
|
|
22
34
|
/**
|
|
23
|
-
* A button
|
|
35
|
+
* A button that shows an spinner as an overlay on the button when you set an isLoading prop to true.
|
|
24
36
|
*/
|
|
25
37
|
export type TLoadingButton<T> = (props: LoadingButtonProps) => T;
|