@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
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/forge-react-types
|
|
2
2
|
|
|
3
|
+
## 0.37.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#122965](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/122965)
|
|
8
|
+
[`398f570fbc446`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/398f570fbc446) -
|
|
9
|
+
Export UI Kit Component types with JSDoc comments
|
|
10
|
+
|
|
3
11
|
## 0.37.7
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -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
|
import type { ButtonGroupProps as PlatformButtonGroupProps } from '@atlaskit/button';
|
|
11
11
|
import type { ButtonProps } from '@atlaskit/button';
|
|
@@ -13,6 +13,6 @@ export type ButtonGroupProps = Pick<PlatformButtonGroupProps, 'children' | 'test
|
|
|
13
13
|
appearance?: ButtonProps['appearance'];
|
|
14
14
|
};
|
|
15
15
|
/**
|
|
16
|
-
* A button
|
|
16
|
+
* A button group gives users access to frequently performed, related actions.
|
|
17
17
|
*/
|
|
18
18
|
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
|
import type { ButtonProps as PlatformButtonProps } from '@atlaskit/button/new';
|
|
11
11
|
export type Icon = 'activity' | 'add' | 'add-circle' | 'add-item' | 'addon' | 'app-access' | 'app-switcher' | 'archive' | 'arrow-down' | 'arrow-down-circle' | 'arrow-left' | 'arrow-left-circle' | 'arrow-right' | 'arrow-right-circle' | 'arrow-up' | 'arrow-up-circle' | 'attachment' | 'audio' | 'audio-circle' | 'backlog' | 'billing' | 'billing-filled' | 'bitbucket-branches' | 'bitbucket-builds' | 'bitbucket-clone' | 'bitbucket-commits' | 'bitbucket-compare' | 'bitbucket-forks' | 'bitbucket-output' | 'bitbucket-pipelines' | 'bitbucket-pullrequests' | 'bitbucket-repos' | 'bitbucket-snippets' | 'bitbucket-source' | 'board' | 'book' | 'bullet-list' | 'calendar' | 'calendar-filled' | 'camera' | 'camera-filled' | 'camera-rotate' | 'camera-take-picture' | 'canvas' | 'check' | 'check-circle' | 'check-circle-outline' | 'checkbox' | 'checkbox-indeterminate' | 'chevron-down' | 'chevron-down-circle' | 'chevron-left' | 'chevron-left-circle' | 'chevron-left-large' | 'chevron-right' | 'chevron-right-circle' | 'chevron-right-large' | 'chevron-up' | 'chevron-up-circle' | 'child-issues' | 'code' | 'comment' | 'component' | 'copy' | 'creditcard' | 'creditcard-filled' | 'cross' | 'cross-circle' | 'dashboard' | 'decision' | 'department' | 'detail-view' | 'discover' | 'discover-filled' | 'document' | 'document-filled' | 'documents' | 'download' | 'drag-handler' | 'dropbox' | 'edit' | 'edit-filled' | 'editor-add' | 'editor-addon' | 'editor-advanced' | 'editor-align-center' | 'editor-align-image-center' | 'editor-align-image-left' | 'editor-align-image-right' | 'editor-align-left' | 'editor-align-right' | 'editor-attachment' | 'editor-background-color' | 'editor-bold' | 'editor-bullet-list' | 'editor-close' | 'editor-code' | 'editor-collapse' | 'editor-date' | 'editor-decision' | 'editor-divider' | 'editor-done' | 'editor-edit' | 'editor-emoji' | 'editor-error' | 'editor-expand' | 'editor-feedback' | 'editor-file' | 'editor-file-preview' | 'editor-help' | 'editor-hint' | 'editor-horizontal-rule' | 'editor-image' | 'editor-image-border' | 'editor-image-resize' | 'editor-indent' | 'editor-info' | 'editor-italic' | 'editor-layout-single' | 'editor-layout-three-equal' | 'editor-layout-three-with-sidebars' | 'editor-layout-two-equal' | 'editor-layout-two-left-sidebar' | 'editor-layout-two-right-sidebar' | 'editor-link' | 'editor-media-center' | 'editor-media-full-width' | 'editor-media-wide' | 'editor-media-wrap-left' | 'editor-media-wrap-right' | 'editor-mention' | 'editor-more' | 'editor-note' | 'editor-number-list' | 'editor-open' | 'editor-outdent' | 'editor-panel' | 'editor-photo' | 'editor-quote' | 'editor-recent' | 'editor-redo' | 'editor-remove' | 'editor-remove-emoji' | 'editor-search' | 'editor-settings' | 'editor-strikethrough' | 'editor-success' | 'editor-table' | 'editor-table-display-options' | 'editor-task' | 'editor-text-color' | 'editor-text-style' | 'editor-underline' | 'editor-undo' | 'editor-unlink' | 'editor-warning' | 'email' | 'emoji' | 'emoji-add' | 'emoji-activity' | 'emoji-atlassian' | 'emoji-custom' | 'emoji-emoji' | 'emoji-flags' | 'emoji-food' | 'emoji-frequent' | 'emoji-keyboard' | 'emoji-nature' | 'emoji-objects' | 'emoji-people' | 'emoji-productivity' | 'emoji-symbols' | 'emoji-travel' | 'error' | 'export' | 'feedback' | 'file' | 'filter' | 'flag-filled' | 'folder' | 'folder-filled' | 'followers' | 'following' | 'googledrive' | 'graph-bar' | 'graph-line' | 'gsuite' | 'highlights' | 'hipchat-audio-only' | 'hipchat-chevron-double-down' | 'hipchat-chevron-double-up' | 'hipchat-chevron-down' | 'hipchat-chevron-up' | 'hipchat-dial-out' | 'hipchat-lobby' | 'hipchat-media-attachment-count' | 'hipchat-outgoing-sound' | 'hipchat-sd-video' | 'home' | 'home-circle' | 'image' | 'image-border' | 'image-resize' | 'info' | 'invite-team' | 'issue' | 'issue-raise' | 'issues' | 'jira-capture' | 'jira-failed-build-status' | 'jira-labs' | 'jira-test-session' | 'label' | 'lightbulb' | 'lightbulb-filled' | 'like' | 'link' | 'link-filled' | 'list' | 'location' | 'lock' | 'lock-circle' | 'lock-filled' | 'marketplace' | 'media-services-actual-size' | 'media-services-add-comment' | 'media-services-annotate' | 'media-services-arrow' | 'media-services-audio' | 'media-services-blur' | 'media-services-brush' | 'media-services-button-option' | 'media-services-code' | 'media-services-document' | 'media-services-filter' | 'media-services-fit-to-page' | 'media-services-full-screen' | 'media-services-grid' | 'media-services-image' | 'media-services-line' | 'media-services-line-thickness' | 'media-services-no-image' | 'media-services-open-mediaviewer' | 'media-services-oval' | 'media-services-pdf' | 'media-services-preselected' | 'media-services-presentation' | 'media-services-rectangle' | 'media-services-scale-large' | 'media-services-scale-small' | 'media-services-spreadsheet' | 'media-services-text' | 'media-services-unknown' | 'media-services-video' | 'media-services-zip' | 'media-services-zoom-in' | 'media-services-zoom-out' | 'mention' | 'menu' | 'menu-expand' | 'mobile' | 'more' | 'more-vertical' | 'notification' | 'notification-all' | 'notification-direct' | 'office-building' | 'office-building-filled' | 'open' | 'overview' | 'page' | 'page-filled' | 'pdf' | 'people' | 'people-group' | 'person' | 'person-circle' | 'person-with-circle' | 'person-with-cross' | 'person-with-tick' | 'portfolio' | 'preferences' | 'premium' | 'presence-active' | 'presence-busy' | 'presence-unavailable' | 'question' | 'question-circle' | 'questions' | 'queues' | 'quote' | 'radio' | 'recent' | 'redo' | 'refresh' | 'retry' | 'roadmap' | 'room-menu' | 'schedule' | 'schedule-filled' | 'screen' | 'search' | 'select-clear' | 'send' | 'settings' | 'share' | 'ship' | 'shortcut' | 'sign-in' | 'sign-out' | 'sprint' | 'star' | 'star-filled' | 'star-large' | 'status' | 'stopwatch' | 'subtask' | 'suitcase' | 'switcher' | 'table' | 'task' | 'teams' | 'trash' | 'tray' | 'undo' | 'unlink' | 'unlock' | 'unlock-circle' | 'unlock-filled' | 'upload' | 'user-avatar-circle' | 'vid-audio-muted' | 'vid-audio-on' | 'vid-backward' | 'vid-camera-off' | 'vid-camera-on' | 'vid-connection-circle' | 'vid-forward' | 'vid-full-screen-off' | 'vid-full-screen-on' | 'vid-hang-up' | 'vid-hd-circle' | 'vid-pause' | 'vid-play' | 'vid-raised-hand' | 'vid-share-screen' | 'vid-speaking-circle' | 'vid-volume-full' | 'vid-volume-half' | 'vid-volume-muted' | 'video-circle' | 'video-filled' | 'warning' | 'watch' | 'watch-filled' | 'world' | 'world-small';
|
|
@@ -15,5 +15,8 @@ export type ButtonProps = Pick<PlatformButtonProps, 'children' | 'autoFocus' | '
|
|
|
15
15
|
iconAfter?: IconType;
|
|
16
16
|
spacing?: PlatformButtonProps['spacing'] | 'none';
|
|
17
17
|
};
|
|
18
|
+
/**
|
|
19
|
+
* A button triggers an event or action. They let users know what will happen next.
|
|
20
|
+
*/
|
|
18
21
|
export type TButton<T> = (props: ButtonProps) => T;
|
|
19
22
|
export {};
|
|
@@ -3,19 +3,38 @@
|
|
|
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
|
export interface CheckboxGroupProps {
|
|
11
|
+
/**
|
|
12
|
+
* Sets the name prop on each of the Checkbox elements in the group.
|
|
13
|
+
*/
|
|
11
14
|
name: string;
|
|
15
|
+
/**
|
|
16
|
+
* An array of objects, each object is mapped onto a Checkbox element within the group.
|
|
17
|
+
*/
|
|
12
18
|
options: {
|
|
13
19
|
label: string;
|
|
14
20
|
value: string;
|
|
15
21
|
isDisabled?: boolean;
|
|
16
22
|
}[];
|
|
23
|
+
/**
|
|
24
|
+
* Once set, controls the selected value on the `CheckboxGroup`.
|
|
25
|
+
*/
|
|
17
26
|
value?: string[];
|
|
18
27
|
onChange?: (values: string[]) => void;
|
|
28
|
+
/**
|
|
29
|
+
* Sets the initial selected value on the `CheckboxGroup`.
|
|
30
|
+
*/
|
|
19
31
|
defaultValue?: string[];
|
|
32
|
+
/**
|
|
33
|
+
* Sets the disabled state of all Checkbox elements in the group.
|
|
34
|
+
*/
|
|
20
35
|
isDisabled?: boolean;
|
|
21
36
|
}
|
|
37
|
+
/**
|
|
38
|
+
* A Checkbox group is a list of options where one or more choices can be selected.
|
|
39
|
+
*/
|
|
40
|
+
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
|
import type { DateTimePickerSelectProps } from '@atlaskit/datetime-picker';
|
|
11
11
|
export interface FieldProps {
|
|
@@ -48,7 +48,7 @@ export type DatePickerProps = {
|
|
|
48
48
|
shouldShowCalendarButton?: boolean;
|
|
49
49
|
} & Partial<Omit<FieldProps, 'onChange'>>;
|
|
50
50
|
/**
|
|
51
|
-
* A date
|
|
51
|
+
* A date picker allows the user to select a particular date.
|
|
52
52
|
*/
|
|
53
53
|
export type TDatePicker<T> = (props: DatePickerProps) => T;
|
|
54
54
|
export {};
|
|
@@ -3,16 +3,17 @@
|
|
|
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
|
import React from 'react';
|
|
11
11
|
import { ErrorMessage as PlatformErrorMessage } from '@atlaskit/form';
|
|
12
12
|
type PlatformErrorMessageProps = React.ComponentProps<typeof PlatformErrorMessage>;
|
|
13
13
|
export type ErrorMessageProps = Pick<PlatformErrorMessageProps, 'children' | 'testId'>;
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* An error message is used to tell a user that the field input is invalid.
|
|
16
|
+
* For example, an error message could be "Invalid username, needs to be more than 4 characters".
|
|
16
17
|
*/
|
|
17
18
|
export type TErrorMessage<T> = (props: ErrorMessageProps) => T;
|
|
18
19
|
export {};
|
|
@@ -3,16 +3,24 @@
|
|
|
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
|
import React from 'react';
|
|
11
11
|
import { FormFooter as PlatformFormFooter } from '@atlaskit/form';
|
|
12
|
-
type
|
|
12
|
+
type _PlatformFormFooterProps = React.ComponentProps<typeof PlatformFormFooter>;
|
|
13
|
+
export type PlatformFormFooterProps = Omit<_PlatformFormFooterProps, 'align'> & {
|
|
14
|
+
/**
|
|
15
|
+
* Sets the alignment of the footer contents. This is often a button. Defaults to `end`.
|
|
16
|
+
*/
|
|
17
|
+
align?: _PlatformFormFooterProps['align'];
|
|
18
|
+
};
|
|
13
19
|
export type FormFooterProps = Pick<PlatformFormFooterProps, 'children' | 'align'>;
|
|
14
20
|
/**
|
|
15
|
-
*
|
|
21
|
+
* Use a form footer to set the content at the end of the form. This is used for a button that submits the form.
|
|
22
|
+
*
|
|
23
|
+
* This is positioned after the last field in the form.
|
|
16
24
|
*/
|
|
17
25
|
export type TFormFooter<T> = (props: FormFooterProps) => T;
|
|
18
26
|
export {};
|
|
@@ -3,16 +3,18 @@
|
|
|
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
|
import React from 'react';
|
|
11
11
|
import { FormHeader as PlatformFormHeader } from '@atlaskit/form';
|
|
12
12
|
type PlatformFormHeaderProps = React.ComponentProps<typeof PlatformFormHeader>;
|
|
13
13
|
export type FormHeaderProps = Pick<PlatformFormHeaderProps, 'title' | 'description' | 'children'>;
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Use a form header to describe the contents of the form. This is the title and description of the form.
|
|
16
|
+
* If your form contains required fields, the form header is also where you should include a legend
|
|
17
|
+
* for sighted users to know that * indicates a required field.
|
|
16
18
|
*/
|
|
17
19
|
export type TFormHeader<T> = (props: FormHeaderProps) => T;
|
|
18
20
|
export {};
|
|
@@ -3,13 +3,25 @@
|
|
|
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
|
import type { ReactNode } from 'react';
|
|
11
11
|
export type FormProps = {
|
|
12
|
+
/**
|
|
13
|
+
* Event handler called when the form is submitted. Fields must be free of validation errors.
|
|
14
|
+
*
|
|
15
|
+
* All modules except for `jiraServiceManagement:assetsImportType` must use `() => Promise<void>|void`.
|
|
16
|
+
*
|
|
17
|
+
* For the `jiraServiceManagement:assetsImportType` module, the `onSubmit` event handler returns
|
|
18
|
+
* a `boolean` value indicating if the form is valid (`true`) or invalid (`false`).
|
|
19
|
+
* If you use `() => Promise<void>|void` for this module, it will default to true.
|
|
20
|
+
*/
|
|
12
21
|
onSubmit: () => Promise<void | boolean> | void;
|
|
13
22
|
children: ReactNode;
|
|
14
23
|
};
|
|
24
|
+
/**
|
|
25
|
+
* A form allows users to input information.
|
|
26
|
+
*/
|
|
15
27
|
export type TForm<T> = (props: FormProps) => T;
|
|
@@ -3,16 +3,17 @@
|
|
|
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
|
import React from 'react';
|
|
11
11
|
import { FormSection as PlatformFormSection } from '@atlaskit/form';
|
|
12
12
|
type PlatformFormSectionProps = React.ComponentProps<typeof PlatformFormSection>;
|
|
13
13
|
export type FormSectionProps = Pick<PlatformFormSectionProps, 'title' | 'children' | 'description'>;
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Use a form section to group related information together, so that longer forms are easier to understand.
|
|
16
|
+
* There can be multiple form sections in one form.
|
|
16
17
|
*/
|
|
17
18
|
export type TFormSection<T> = (props: FormSectionProps) => T;
|
|
18
19
|
export {};
|
|
@@ -3,16 +3,17 @@
|
|
|
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
|
import React from 'react';
|
|
11
11
|
import { HelperMessage as PlatformHelperMessage } from '@atlaskit/form';
|
|
12
12
|
type PlatformHelperMessageProps = React.ComponentProps<typeof PlatformHelperMessage>;
|
|
13
13
|
export type HelperMessageProps = Pick<PlatformHelperMessageProps, 'children' | 'testId'>;
|
|
14
14
|
/**
|
|
15
|
-
* A
|
|
15
|
+
* A helper message tells the user what kind of input the field takes.
|
|
16
|
+
* For example, a helper message could be "Password should be more than 4 characters".
|
|
16
17
|
*/
|
|
17
18
|
export type THelperMessage<T> = (props: HelperMessageProps) => T;
|
|
18
19
|
export {};
|
|
@@ -3,20 +3,40 @@
|
|
|
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
|
import type { ActiveTokens } from '@atlaskit/tokens';
|
|
11
11
|
export type Icon = 'activity' | 'add' | 'add-circle' | 'add-item' | 'addon' | 'app-access' | 'app-switcher' | 'archive' | 'arrow-down' | 'arrow-down-circle' | 'arrow-left' | 'arrow-left-circle' | 'arrow-right' | 'arrow-right-circle' | 'arrow-up' | 'arrow-up-circle' | 'attachment' | 'audio' | 'audio-circle' | 'backlog' | 'billing' | 'billing-filled' | 'bitbucket-branches' | 'bitbucket-builds' | 'bitbucket-clone' | 'bitbucket-commits' | 'bitbucket-compare' | 'bitbucket-forks' | 'bitbucket-output' | 'bitbucket-pipelines' | 'bitbucket-pullrequests' | 'bitbucket-repos' | 'bitbucket-snippets' | 'bitbucket-source' | 'board' | 'book' | 'bullet-list' | 'calendar' | 'calendar-filled' | 'camera' | 'camera-filled' | 'camera-rotate' | 'camera-take-picture' | 'canvas' | 'check' | 'check-circle' | 'check-circle-outline' | 'checkbox' | 'checkbox-indeterminate' | 'chevron-down' | 'chevron-down-circle' | 'chevron-left' | 'chevron-left-circle' | 'chevron-left-large' | 'chevron-right' | 'chevron-right-circle' | 'chevron-right-large' | 'chevron-up' | 'chevron-up-circle' | 'child-issues' | 'code' | 'comment' | 'component' | 'copy' | 'creditcard' | 'creditcard-filled' | 'cross' | 'cross-circle' | 'dashboard' | 'decision' | 'department' | 'detail-view' | 'discover' | 'discover-filled' | 'document' | 'document-filled' | 'documents' | 'download' | 'drag-handler' | 'dropbox' | 'edit' | 'edit-filled' | 'editor-add' | 'editor-addon' | 'editor-advanced' | 'editor-align-center' | 'editor-align-image-center' | 'editor-align-image-left' | 'editor-align-image-right' | 'editor-align-left' | 'editor-align-right' | 'editor-attachment' | 'editor-background-color' | 'editor-bold' | 'editor-bullet-list' | 'editor-close' | 'editor-code' | 'editor-collapse' | 'editor-date' | 'editor-decision' | 'editor-divider' | 'editor-done' | 'editor-edit' | 'editor-emoji' | 'editor-error' | 'editor-expand' | 'editor-feedback' | 'editor-file' | 'editor-file-preview' | 'editor-help' | 'editor-hint' | 'editor-horizontal-rule' | 'editor-image' | 'editor-image-border' | 'editor-image-resize' | 'editor-indent' | 'editor-info' | 'editor-italic' | 'editor-layout-single' | 'editor-layout-three-equal' | 'editor-layout-three-with-sidebars' | 'editor-layout-two-equal' | 'editor-layout-two-left-sidebar' | 'editor-layout-two-right-sidebar' | 'editor-link' | 'editor-media-center' | 'editor-media-full-width' | 'editor-media-wide' | 'editor-media-wrap-left' | 'editor-media-wrap-right' | 'editor-mention' | 'editor-more' | 'editor-note' | 'editor-number-list' | 'editor-open' | 'editor-outdent' | 'editor-panel' | 'editor-photo' | 'editor-quote' | 'editor-recent' | 'editor-redo' | 'editor-remove' | 'editor-remove-emoji' | 'editor-search' | 'editor-settings' | 'editor-strikethrough' | 'editor-success' | 'editor-table' | 'editor-table-display-options' | 'editor-task' | 'editor-text-color' | 'editor-text-style' | 'editor-underline' | 'editor-undo' | 'editor-unlink' | 'editor-warning' | 'email' | 'emoji' | 'emoji-add' | 'emoji-activity' | 'emoji-atlassian' | 'emoji-custom' | 'emoji-emoji' | 'emoji-flags' | 'emoji-food' | 'emoji-frequent' | 'emoji-keyboard' | 'emoji-nature' | 'emoji-objects' | 'emoji-people' | 'emoji-productivity' | 'emoji-symbols' | 'emoji-travel' | 'error' | 'export' | 'feedback' | 'file' | 'filter' | 'flag-filled' | 'folder' | 'folder-filled' | 'followers' | 'following' | 'googledrive' | 'graph-bar' | 'graph-line' | 'gsuite' | 'highlights' | 'hipchat-audio-only' | 'hipchat-chevron-double-down' | 'hipchat-chevron-double-up' | 'hipchat-chevron-down' | 'hipchat-chevron-up' | 'hipchat-dial-out' | 'hipchat-lobby' | 'hipchat-media-attachment-count' | 'hipchat-outgoing-sound' | 'hipchat-sd-video' | 'home' | 'home-circle' | 'image' | 'image-border' | 'image-resize' | 'info' | 'invite-team' | 'issue' | 'issue-raise' | 'issues' | 'jira-capture' | 'jira-failed-build-status' | 'jira-labs' | 'jira-test-session' | 'label' | 'lightbulb' | 'lightbulb-filled' | 'like' | 'link' | 'link-filled' | 'list' | 'location' | 'lock' | 'lock-circle' | 'lock-filled' | 'marketplace' | 'media-services-actual-size' | 'media-services-add-comment' | 'media-services-annotate' | 'media-services-arrow' | 'media-services-audio' | 'media-services-blur' | 'media-services-brush' | 'media-services-button-option' | 'media-services-code' | 'media-services-document' | 'media-services-filter' | 'media-services-fit-to-page' | 'media-services-full-screen' | 'media-services-grid' | 'media-services-image' | 'media-services-line' | 'media-services-line-thickness' | 'media-services-no-image' | 'media-services-open-mediaviewer' | 'media-services-oval' | 'media-services-pdf' | 'media-services-preselected' | 'media-services-presentation' | 'media-services-rectangle' | 'media-services-scale-large' | 'media-services-scale-small' | 'media-services-spreadsheet' | 'media-services-text' | 'media-services-unknown' | 'media-services-video' | 'media-services-zip' | 'media-services-zoom-in' | 'media-services-zoom-out' | 'mention' | 'menu' | 'menu-expand' | 'mobile' | 'more' | 'more-vertical' | 'notification' | 'notification-all' | 'notification-direct' | 'office-building' | 'office-building-filled' | 'open' | 'overview' | 'page' | 'page-filled' | 'pdf' | 'people' | 'people-group' | 'person' | 'person-circle' | 'person-with-circle' | 'person-with-cross' | 'person-with-tick' | 'portfolio' | 'preferences' | 'premium' | 'presence-active' | 'presence-busy' | 'presence-unavailable' | 'question' | 'question-circle' | 'questions' | 'queues' | 'quote' | 'radio' | 'recent' | 'redo' | 'refresh' | 'retry' | 'roadmap' | 'room-menu' | 'schedule' | 'schedule-filled' | 'screen' | 'search' | 'select-clear' | 'send' | 'settings' | 'share' | 'ship' | 'shortcut' | 'sign-in' | 'sign-out' | 'sprint' | 'star' | 'star-filled' | 'star-large' | 'status' | 'stopwatch' | 'subtask' | 'suitcase' | 'switcher' | 'table' | 'task' | 'teams' | 'trash' | 'tray' | 'undo' | 'unlink' | 'unlock' | 'unlock-circle' | 'unlock-filled' | 'upload' | 'user-avatar-circle' | 'vid-audio-muted' | 'vid-audio-on' | 'vid-backward' | 'vid-camera-off' | 'vid-camera-on' | 'vid-connection-circle' | 'vid-forward' | 'vid-full-screen-off' | 'vid-full-screen-on' | 'vid-hang-up' | 'vid-hd-circle' | 'vid-pause' | 'vid-play' | 'vid-raised-hand' | 'vid-share-screen' | 'vid-speaking-circle' | 'vid-volume-full' | 'vid-volume-half' | 'vid-volume-muted' | 'video-circle' | 'video-filled' | 'warning' | 'watch' | 'watch-filled' | 'world' | 'world-small';
|
|
12
12
|
type Glyph = Icon;
|
|
13
13
|
export type IconColor = Extract<ActiveTokens, `color.icon.${string}`> | 'color.icon';
|
|
14
14
|
export interface IconProps {
|
|
15
|
+
/**
|
|
16
|
+
* There are three icon sizes – `small` (16px), `medium` (24px), `large` (32px), and `xlarge` (48px).
|
|
17
|
+
* This pixel size refers to the canvas the icon sits on, not the size of the icon shape itself.
|
|
18
|
+
*/
|
|
15
19
|
size?: 'small' | 'medium' | 'large';
|
|
20
|
+
/**
|
|
21
|
+
* 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.
|
|
22
|
+
* An empty string marks the icon as presentation only.
|
|
23
|
+
*/
|
|
16
24
|
label: string;
|
|
25
|
+
/**
|
|
26
|
+
* Name of the icon to be rendered.
|
|
27
|
+
*/
|
|
17
28
|
glyph: Glyph;
|
|
29
|
+
/**
|
|
30
|
+
* Primary color for the icon. Inherits the current font color by default.
|
|
31
|
+
*/
|
|
18
32
|
primaryColor?: IconColor;
|
|
33
|
+
/**
|
|
34
|
+
* Secondary color for the icon. Defaults to the page background for an icon that supports two colors.
|
|
35
|
+
*/
|
|
19
36
|
secondaryColor?: IconColor;
|
|
20
37
|
}
|
|
38
|
+
/**
|
|
39
|
+
* An icon is a visual representation of a command, device, directory, or common action.
|
|
40
|
+
*/
|
|
21
41
|
export type TIcon<T> = (props: IconProps) => T;
|
|
22
42
|
export {};
|
|
@@ -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
|
import React from 'react';
|
|
11
11
|
import { default as PlatformInlineEdit } from '@atlaskit/inline-edit';
|
|
@@ -21,4 +21,8 @@ export type InlineEditProps<V = string> = Omit<React.ComponentProps<typeof Platf
|
|
|
21
21
|
onConfirm: (value: V) => void;
|
|
22
22
|
editView: (fieldProps: EditViewFieldProps<V>) => React.ReactNode;
|
|
23
23
|
};
|
|
24
|
+
/**
|
|
25
|
+
* An inline edit displays a custom input component that switches between reading and editing on the same page.
|
|
26
|
+
*/
|
|
27
|
+
export type TInlineEdit<T> = (props: InlineEditProps) => T;
|
|
24
28
|
export {};
|
|
@@ -3,16 +3,16 @@
|
|
|
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
|
import React from 'react';
|
|
11
11
|
import { Inline as PlatformInline } from '@atlaskit/primitives';
|
|
12
12
|
type PlatformInlineProps = React.ComponentProps<typeof PlatformInline>;
|
|
13
13
|
export type InlineProps = Pick<PlatformInlineProps, 'children' | 'alignBlock' | 'alignInline' | 'spread' | 'grow' | 'space' | 'shouldWrap' | 'separator' | 'rowSpace' | 'testId'>;
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* An inline manages the horizontal layout of direct children using flexbox.
|
|
16
16
|
*/
|
|
17
17
|
export type TInline<T> = (props: InlineProps) => T;
|
|
18
18
|
export {};
|
|
@@ -3,15 +3,15 @@
|
|
|
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
|
import type { LabelProps as PlatformLabelProps } from '@atlaskit/form';
|
|
11
11
|
export type LabelProps = Pick<PlatformLabelProps, 'children' | 'testId' | 'id'> & {
|
|
12
12
|
labelFor: string;
|
|
13
13
|
};
|
|
14
14
|
/**
|
|
15
|
-
* A
|
|
15
|
+
* A label represents a caption for an item in a user interface.
|
|
16
16
|
*/
|
|
17
17
|
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
|
import type { LinkButtonProps as PlatformLinkButtonProps } from '@atlaskit/button/new';
|
|
11
11
|
import React from 'react';
|
|
@@ -15,4 +15,7 @@ export type LinkButtonProps = Pick<PlatformLinkButtonProps, 'children' | 'target
|
|
|
15
15
|
appearance?: PlatformLinkButtonProps['appearance'] | 'link' | 'subtle-link';
|
|
16
16
|
spacing?: PlatformLinkButtonProps['spacing'] | 'none';
|
|
17
17
|
};
|
|
18
|
+
/**
|
|
19
|
+
* Renders a link in the style of a button.
|
|
20
|
+
*/
|
|
18
21
|
export type TLinkButton<T> = (props: LinkButtonProps) => T;
|
|
@@ -3,11 +3,12 @@
|
|
|
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
|
import React from 'react';
|
|
11
11
|
export interface ListItemProps {
|
|
12
12
|
children: React.ReactNode;
|
|
13
13
|
}
|
|
14
|
+
export type TListItem<T> = (props: ListItemProps) => T;
|
|
@@ -3,12 +3,24 @@
|
|
|
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
|
import React from 'react';
|
|
11
11
|
export interface ListProps {
|
|
12
|
+
/**
|
|
13
|
+
* The `ordered` type should be used when representing an ordered list of items.
|
|
14
|
+
* The `unordered` type should be used when representing an unordered list of items.
|
|
15
|
+
* The type is set to `unordered` by default.
|
|
16
|
+
*/
|
|
12
17
|
type: 'ordered' | 'unordered';
|
|
18
|
+
/**
|
|
19
|
+
* The items to render inside a `List` group.
|
|
20
|
+
*/
|
|
13
21
|
children: React.ReactNode;
|
|
14
22
|
}
|
|
23
|
+
/**
|
|
24
|
+
* An unordered (bulleted) or ordered (numbered) list.
|
|
25
|
+
*/
|
|
26
|
+
export type TList<T> = (props: ListProps) => T;
|
|
@@ -3,16 +3,16 @@
|
|
|
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
|
import React from 'react';
|
|
11
11
|
import { LoadingButton as PlatformLoadingButton } from '@atlaskit/button';
|
|
12
12
|
type PlatformLoadingButtonProps = React.ComponentProps<typeof PlatformLoadingButton>;
|
|
13
13
|
export type LoadingButtonProps = Pick<PlatformLoadingButtonProps, 'children' | 'appearance' | 'autoFocus' | 'isDisabled' | 'isSelected' | 'onBlur' | 'onClick' | 'onFocus' | 'spacing' | 'testId' | 'shouldFitContainer' | 'type' | 'isLoading'>;
|
|
14
14
|
/**
|
|
15
|
-
* A button
|
|
15
|
+
* A button that shows an spinner as an overlay on the button when you set an isLoading prop to true.
|
|
16
16
|
*/
|
|
17
17
|
export type TLoadingButton<T> = (props: LoadingButtonProps) => T;
|
|
18
18
|
export {};
|
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - ModalBodyProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::8999036a80e16ad1e4655a8fec69ccdd>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
-
* @codegenDependency ../../../../forge-ui/src/components/UIKit/modal/__generated__/modal-body.partial.tsx <<SignedSource::
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit/modal/__generated__/modal-body.partial.tsx <<SignedSource::627540a6559205080b7e35c17eb83204>>
|
|
9
9
|
*/
|
|
10
10
|
import React from 'react';
|
|
11
11
|
import { ModalBody as PlatformModalBody } from '@atlaskit/modal-dialog';
|
|
12
12
|
type PlatformModalBodyProps = React.ComponentProps<typeof PlatformModalBody>;
|
|
13
13
|
export type ModalBodyProps = Pick<PlatformModalBodyProps, 'children' | 'testId'>;
|
|
14
14
|
/**
|
|
15
|
-
* A modal
|
|
15
|
+
* A modal body is used to display the main content of a modal.
|
|
16
16
|
*/
|
|
17
17
|
export type TModalBody<T> = (props: ModalBodyProps) => T;
|
|
18
18
|
export {};
|
|
@@ -3,16 +3,17 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - ModalFooterProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::4760b46222d502cf6397bfc1ee866e35>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
-
* @codegenDependency ../../../../forge-ui/src/components/UIKit/modal/__generated__/modal-footer.partial.tsx <<SignedSource::
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit/modal/__generated__/modal-footer.partial.tsx <<SignedSource::0ff399d8f02a70c539a63e9466091768>>
|
|
9
9
|
*/
|
|
10
10
|
import React from 'react';
|
|
11
11
|
import { ModalFooter as PlatformModalFooter } from '@atlaskit/modal-dialog';
|
|
12
12
|
type PlatformModalFooterProps = React.ComponentProps<typeof PlatformModalFooter>;
|
|
13
13
|
export type ModalFooterProps = Pick<PlatformModalFooterProps, 'children' | 'testId'>;
|
|
14
14
|
/**
|
|
15
|
-
* A modal
|
|
15
|
+
* A modal footer often contains a primary action and the ability to cancel and close the dialog,
|
|
16
|
+
* though can contain any React element.
|
|
16
17
|
*/
|
|
17
18
|
export type TModalFooter<T> = (props: ModalFooterProps) => T;
|
|
18
19
|
export {};
|
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - ModalHeaderProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::d870076a8f40ef1ca2f514ccccd8d14c>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
-
* @codegenDependency ../../../../forge-ui/src/components/UIKit/modal/__generated__/modal-header.partial.tsx <<SignedSource::
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit/modal/__generated__/modal-header.partial.tsx <<SignedSource::9102fefee5c2fe6cbee65bf860d29652>>
|
|
9
9
|
*/
|
|
10
10
|
import React from 'react';
|
|
11
11
|
import { ModalHeader as PlatformModalHeader } from '@atlaskit/modal-dialog';
|
|
12
12
|
type PlatformModalHeaderProps = React.ComponentProps<typeof PlatformModalHeader>;
|
|
13
13
|
export type ModalHeaderProps = Pick<PlatformModalHeaderProps, 'children' | 'testId'>;
|
|
14
14
|
/**
|
|
15
|
-
* A modal
|
|
15
|
+
* A modal header contains the title of the modal and can contain other React elements such as a close button.
|
|
16
16
|
*/
|
|
17
17
|
export type TModalHeader<T> = (props: ModalHeaderProps) => T;
|
|
18
18
|
export {};
|
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - ModalTitleProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::1742968eb34a6998cf335abcdb9ecd22>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
-
* @codegenDependency ../../../../forge-ui/src/components/UIKit/modal/__generated__/modal-title.partial.tsx <<SignedSource::
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit/modal/__generated__/modal-title.partial.tsx <<SignedSource::8f0848e3fabd3cf3660c08e2b1863bd9>>
|
|
9
9
|
*/
|
|
10
10
|
import React from 'react';
|
|
11
11
|
import { ModalTitle as PlatformModalTitle } from '@atlaskit/modal-dialog';
|
|
12
12
|
type PlatformModalTitleProps = React.ComponentProps<typeof PlatformModalTitle>;
|
|
13
13
|
export type ModalTitleProps = Pick<PlatformModalTitleProps, 'appearance' | 'children' | 'isMultiline' | 'testId'>;
|
|
14
14
|
/**
|
|
15
|
-
* A modal
|
|
15
|
+
* A modal title is used to display a title within a modal.
|
|
16
16
|
*/
|
|
17
17
|
export type TModalTitle<T> = (props: ModalTitleProps) => T;
|
|
18
18
|
export {};
|
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - ModalTransitionProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::fbd2e79db623371d79d173ce8c807737>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
-
* @codegenDependency ../../../../forge-ui/src/components/UIKit/modal/__generated__/modal-transition.partial.tsx <<SignedSource::
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit/modal/__generated__/modal-transition.partial.tsx <<SignedSource::9a5d35aaedbe614414c801acffdbeeff>>
|
|
9
9
|
*/
|
|
10
10
|
import React from 'react';
|
|
11
11
|
import { ModalTransition as PlatformModalTransition } from '@atlaskit/modal-dialog';
|
|
12
12
|
type PlatformModalTransitionProps = React.ComponentProps<typeof PlatformModalTransition>;
|
|
13
13
|
export type ModalTransitionProps = Pick<PlatformModalTransitionProps, 'children'>;
|
|
14
14
|
/**
|
|
15
|
-
* A modal
|
|
15
|
+
* A modal transition wraps a modal to provide a fluid transition upon opening and closing.
|
|
16
16
|
*/
|
|
17
17
|
export type TModalTransition<T> = (props: ModalTransitionProps) => T;
|
|
18
18
|
export {};
|