@atlaskit/forge-react-types 0.37.7 → 0.37.8
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 +8 -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/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/index.d.ts +1 -1
- package/package.json +2 -2
- 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/index.ts +59 -0
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - TooltipProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::4b27e1c130769985576ab4c910715b03>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
-
* @codegenDependency ../../../../forge-ui/src/components/UIKit/tooltip/__generated__/index.partial.tsx <<SignedSource::
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit/tooltip/__generated__/index.partial.tsx <<SignedSource::e3e388170520502310149f23b8defa27>>
|
|
9
9
|
*/
|
|
10
10
|
import React from 'react';
|
|
11
11
|
import PlatformTooltip from '@atlaskit/tooltip';
|
|
12
12
|
type PlatformTooltipProps = React.ComponentProps<typeof PlatformTooltip>;
|
|
13
13
|
export type TooltipProps = Pick<PlatformTooltipProps, 'children' | 'position' | 'mousePosition' | 'content' | 'truncate' | 'testId' | 'delay'>;
|
|
14
14
|
/**
|
|
15
|
-
* A
|
|
15
|
+
* A `Tooltip` is a floating, non-actionable label used to explain a user interface element or feature.
|
|
16
16
|
*/
|
|
17
17
|
export type TTooltip<T> = (props: TooltipProps) => T;
|
|
18
18
|
export {};
|
|
@@ -3,16 +3,17 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - ValidMessageProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::4cc4d2511f92d5cb8969eb03a63cb079>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
-
* @codegenDependency ../../../../forge-ui/src/components/UIKit/form/__generated__/valid-message.partial.tsx <<SignedSource::
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit/form/__generated__/valid-message.partial.tsx <<SignedSource::7c24bfd118e399bb212709c31585209b>>
|
|
9
9
|
*/
|
|
10
10
|
import React from 'react';
|
|
11
11
|
import { ValidMessage as PlatformValidMessage } from '@atlaskit/form';
|
|
12
12
|
type PlatformValidMessageProps = React.ComponentProps<typeof PlatformValidMessage>;
|
|
13
13
|
export type ValidMessageProps = Pick<PlatformValidMessageProps, 'children' | 'testId'>;
|
|
14
14
|
/**
|
|
15
|
-
* A
|
|
15
|
+
* A valid message is used to tell a user that the field input is valid.
|
|
16
|
+
* For example, a helper message could be "Nice one, this username is available".
|
|
16
17
|
*/
|
|
17
18
|
export type TValidMessage<T> = (props: ValidMessageProps) => T;
|
|
18
19
|
export {};
|
|
@@ -1,65 +1,72 @@
|
|
|
1
1
|
export type { BadgeProps, TBadge } from './BadgeProps.codegen';
|
|
2
|
-
export type { BleedProps } from './BleedProps.codegen';
|
|
2
|
+
export type { BleedProps, TBleed } from './BleedProps.codegen';
|
|
3
3
|
export type { BoxProps, TBox } from './BoxProps.codegen';
|
|
4
|
-
export type { ButtonGroupProps } from './ButtonGroupProps.codegen';
|
|
5
|
-
export type { ButtonProps } from './ButtonProps.codegen';
|
|
6
|
-
export type { CheckboxProps } from './CheckboxProps.codegen';
|
|
7
|
-
export type { CalendarProps } from './CalendarProps.codegen';
|
|
8
|
-
export type { CheckboxGroupProps } from './CheckboxGroupProps.codegen';
|
|
9
|
-
export type { CodeBlockProps } from './CodeBlockProps.codegen';
|
|
10
|
-
export type { CodeProps } from './CodeProps.codegen';
|
|
11
|
-
export type { DatePickerProps } from './DatePickerProps.codegen';
|
|
12
|
-
export type { DynamicTableProps } from './DynamicTableProps.codegen';
|
|
13
|
-
export type { EmptyStateProps } from './EmptyStateProps.codegen';
|
|
14
|
-
export type { ErrorMessageProps } from './ErrorMessageProps.codegen';
|
|
15
|
-
export type { FlexProps } from './FlexProps.codegen';
|
|
16
|
-
export type { FormFooterProps } from './FormFooterProps.codegen';
|
|
17
|
-
export type { FormHeaderProps } from './FormHeaderProps.codegen';
|
|
18
|
-
export type { FormProps } from './FormProps.codegen';
|
|
19
|
-
export type { FormSectionProps } from './FormSectionProps.codegen';
|
|
20
|
-
export type { GridProps } from './GridProps.codegen';
|
|
21
|
-
export type { HeadingProps } from './HeadingProps.codegen';
|
|
22
|
-
export type { HelperMessageProps } from './HelperMessageProps.codegen';
|
|
23
|
-
export type { IconProps } from './IconProps.codegen';
|
|
24
|
-
export type { InlineProps } from './InlineProps.codegen';
|
|
25
|
-
export type { InlineEditProps } from './InlineEditProps.codegen';
|
|
26
|
-
export type { LabelProps } from './LabelProps.codegen';
|
|
27
|
-
export type { LinkButtonProps } from './LinkButtonProps.codegen';
|
|
28
|
-
export type { ListProps } from './ListProps.codegen';
|
|
29
|
-
export type { ListItemProps } from './ListItemProps.codegen';
|
|
30
|
-
export type { LoadingButtonProps } from './LoadingButtonProps.codegen';
|
|
31
|
-
export type { LozengeProps } from './LozengeProps.codegen';
|
|
32
|
-
export type { ModalBodyProps } from './ModalBodyProps.codegen';
|
|
33
|
-
export type { ModalFooterProps } from './ModalFooterProps.codegen';
|
|
34
|
-
export type { ModalHeaderProps } from './ModalHeaderProps.codegen';
|
|
35
|
-
export type { ModalProps } from './ModalProps.codegen';
|
|
36
|
-
export type { ModalTitleProps } from './ModalTitleProps.codegen';
|
|
37
|
-
export type { ModalTransitionProps } from './ModalTransitionProps.codegen';
|
|
38
|
-
export type { ProgressBarProps } from './ProgressBarProps.codegen';
|
|
39
|
-
export type { ProgressTrackerProps } from './ProgressTrackerProps.codegen';
|
|
40
|
-
export type { RadioGroupProps } from './RadioGroupProps.codegen';
|
|
41
|
-
export type { RadioProps } from './RadioProps.codegen';
|
|
42
|
-
export type { RangeProps } from './RangeProps.codegen';
|
|
43
|
-
export type { SectionMessageActionProps } from './SectionMessageActionProps.codegen';
|
|
44
|
-
export type { SectionMessageProps } from './SectionMessageProps.codegen';
|
|
45
|
-
export type { SelectProps } from './SelectProps.codegen';
|
|
46
|
-
export type { SpinnerProps } from './SpinnerProps.codegen';
|
|
47
|
-
export type { StackProps } from './StackProps.codegen';
|
|
48
|
-
export type { TabListProps } from './TabListProps.codegen';
|
|
49
|
-
export type { TabPanelProps } from './TabPanelProps.codegen';
|
|
50
|
-
export type { TabProps } from './TabProps.codegen';
|
|
51
|
-
export type { TabsProps } from './TabsProps.codegen';
|
|
52
|
-
export type { TagGroupProps } from './TagGroupProps.codegen';
|
|
53
|
-
export type { SimpleTagProps as TagProps } from './TagProps.codegen';
|
|
54
|
-
export type { TextAreaProps } from './TextAreaProps.codegen';
|
|
55
|
-
export type { TextfieldProps } from './TextfieldProps.codegen';
|
|
56
|
-
export type { TimePickerProps } from './TimePickerProps.codegen';
|
|
57
|
-
export type { ToggleProps } from './ToggleProps.codegen';
|
|
58
|
-
export type { TooltipProps } from './TooltipProps.codegen';
|
|
59
|
-
export type { ValidMessageProps } from './ValidMessageProps.codegen';
|
|
60
|
-
export type { PopupProps } from './PopupProps.codegen';
|
|
4
|
+
export type { ButtonGroupProps, TButtonGroup } from './ButtonGroupProps.codegen';
|
|
5
|
+
export type { ButtonProps, TButton } from './ButtonProps.codegen';
|
|
6
|
+
export type { CheckboxProps, TCheckbox } from './CheckboxProps.codegen';
|
|
7
|
+
export type { CalendarProps, TCalendar } from './CalendarProps.codegen';
|
|
8
|
+
export type { CheckboxGroupProps, TCheckboxGroup } from './CheckboxGroupProps.codegen';
|
|
9
|
+
export type { CodeBlockProps, TCodeBlock } from './CodeBlockProps.codegen';
|
|
10
|
+
export type { CodeProps, TCode } from './CodeProps.codegen';
|
|
11
|
+
export type { DatePickerProps, TDatePicker } from './DatePickerProps.codegen';
|
|
12
|
+
export type { DynamicTableProps, TDynamicTable } from './DynamicTableProps.codegen';
|
|
13
|
+
export type { EmptyStateProps, TEmptyState } from './EmptyStateProps.codegen';
|
|
14
|
+
export type { ErrorMessageProps, TErrorMessage } from './ErrorMessageProps.codegen';
|
|
15
|
+
export type { FlexProps, TFlex } from './FlexProps.codegen';
|
|
16
|
+
export type { FormFooterProps, TFormFooter } from './FormFooterProps.codegen';
|
|
17
|
+
export type { FormHeaderProps, TFormHeader } from './FormHeaderProps.codegen';
|
|
18
|
+
export type { FormProps, TForm } from './FormProps.codegen';
|
|
19
|
+
export type { FormSectionProps, TFormSection } from './FormSectionProps.codegen';
|
|
20
|
+
export type { GridProps, TGrid } from './GridProps.codegen';
|
|
21
|
+
export type { HeadingProps, THeading } from './HeadingProps.codegen';
|
|
22
|
+
export type { HelperMessageProps, THelperMessage } from './HelperMessageProps.codegen';
|
|
23
|
+
export type { IconProps, TIcon } from './IconProps.codegen';
|
|
24
|
+
export type { InlineProps, TInline } from './InlineProps.codegen';
|
|
25
|
+
export type { InlineEditProps, TInlineEdit } from './InlineEditProps.codegen';
|
|
26
|
+
export type { LabelProps, TLabel } from './LabelProps.codegen';
|
|
27
|
+
export type { LinkButtonProps, TLinkButton } from './LinkButtonProps.codegen';
|
|
28
|
+
export type { ListProps, TList } from './ListProps.codegen';
|
|
29
|
+
export type { ListItemProps, TListItem } from './ListItemProps.codegen';
|
|
30
|
+
export type { LoadingButtonProps, TLoadingButton } from './LoadingButtonProps.codegen';
|
|
31
|
+
export type { LozengeProps, TLozenge } from './LozengeProps.codegen';
|
|
32
|
+
export type { ModalBodyProps, TModalBody } from './ModalBodyProps.codegen';
|
|
33
|
+
export type { ModalFooterProps, TModalFooter } from './ModalFooterProps.codegen';
|
|
34
|
+
export type { ModalHeaderProps, TModalHeader } from './ModalHeaderProps.codegen';
|
|
35
|
+
export type { ModalProps, TModal } from './ModalProps.codegen';
|
|
36
|
+
export type { ModalTitleProps, TModalTitle } from './ModalTitleProps.codegen';
|
|
37
|
+
export type { ModalTransitionProps, TModalTransition } from './ModalTransitionProps.codegen';
|
|
38
|
+
export type { ProgressBarProps, TProgressBar } from './ProgressBarProps.codegen';
|
|
39
|
+
export type { ProgressTrackerProps, TProgressTracker } from './ProgressTrackerProps.codegen';
|
|
40
|
+
export type { RadioGroupProps, TRadioGroup } from './RadioGroupProps.codegen';
|
|
41
|
+
export type { RadioProps, TRadio } from './RadioProps.codegen';
|
|
42
|
+
export type { RangeProps, TRange } from './RangeProps.codegen';
|
|
43
|
+
export type { SectionMessageActionProps, TSectionMessageAction } from './SectionMessageActionProps.codegen';
|
|
44
|
+
export type { SectionMessageProps, TSectionMessage } from './SectionMessageProps.codegen';
|
|
45
|
+
export type { SelectProps, TSelect } from './SelectProps.codegen';
|
|
46
|
+
export type { SpinnerProps, TSpinner } from './SpinnerProps.codegen';
|
|
47
|
+
export type { StackProps, TStack } from './StackProps.codegen';
|
|
48
|
+
export type { TabListProps, TTabList } from './TabListProps.codegen';
|
|
49
|
+
export type { TabPanelProps, TTabPanel } from './TabPanelProps.codegen';
|
|
50
|
+
export type { TabProps, TTab } from './TabProps.codegen';
|
|
51
|
+
export type { TabsProps, TTabs } from './TabsProps.codegen';
|
|
52
|
+
export type { TagGroupProps, TTagGroup } from './TagGroupProps.codegen';
|
|
53
|
+
export type { SimpleTagProps as TagProps, TSimpleTag as TTag } from './TagProps.codegen';
|
|
54
|
+
export type { TextAreaProps, TTextArea } from './TextAreaProps.codegen';
|
|
55
|
+
export type { TextfieldProps, TTextfield } from './TextfieldProps.codegen';
|
|
56
|
+
export type { TimePickerProps, TTimePicker } from './TimePickerProps.codegen';
|
|
57
|
+
export type { ToggleProps, TToggle } from './ToggleProps.codegen';
|
|
58
|
+
export type { TooltipProps, TTooltip } from './TooltipProps.codegen';
|
|
59
|
+
export type { ValidMessageProps, TValidMessage } from './ValidMessageProps.codegen';
|
|
60
|
+
export type { PopupProps, TPopup } from './PopupProps.codegen';
|
|
61
61
|
export type { AdfRendererProps, TAdfRenderer } from './AdfRendererProps.codegen';
|
|
62
62
|
import type { TextProps as OriginalTextProps } from './TextProps.codegen';
|
|
63
63
|
export type TextProps = Omit<OriginalTextProps, 'as'> & {
|
|
64
64
|
as?: OriginalTextProps['as'] | 'strike';
|
|
65
65
|
};
|
|
66
|
+
/**
|
|
67
|
+
* A typography component used to display body text.
|
|
68
|
+
* It can also include inline components such as
|
|
69
|
+
* [Badge](https://developer.atlassian.com/platform/forge/ui-kit/components/badge/) and
|
|
70
|
+
* [Lozenge](https://developer.atlassian.com/platform/forge/ui-kit/components/lozenge/).
|
|
71
|
+
*/
|
|
72
|
+
export type TText<T> = (props: TextProps) => T;
|
|
@@ -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.8",
|
|
4
4
|
"description": "Component types for Forge UI Kit React components",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -29,7 +29,7 @@
|
|
|
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",
|
|
@@ -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;
|