@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,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 {};
|
|
@@ -3,14 +3,27 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - PopupProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::9c82b51dc6635d8638a1f1f24ceaec66>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
-
* @codegenDependency ../../../../forge-ui/src/components/UIKit/popup/index.tsx <<SignedSource::
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit/popup/index.tsx <<SignedSource::cafa3868628edc1953d996c860801ed5>>
|
|
9
9
|
*/
|
|
10
10
|
import React from 'react';
|
|
11
11
|
import { default as PlatformPopup } from '@atlaskit/popup';
|
|
12
|
+
/**
|
|
13
|
+
* Design decisions made:
|
|
14
|
+
* `zIndex` and `offset` are excluded to constrain the appearance of the popup.
|
|
15
|
+
*
|
|
16
|
+
* `boundary` has been changed as the ADS type can also expect an HTMLElement to be passed in, which cannot work with Forge.
|
|
17
|
+
*
|
|
18
|
+
* `popupComponent` is excluded as the same customisation can be done with `Box` in content
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
12
21
|
export type PopupProps = Omit<React.ComponentProps<typeof PlatformPopup>, 'popupComponent' | 'zIndex' | 'offset' | 'boundary'> & {
|
|
13
22
|
boundary?: 'clippingParents';
|
|
14
23
|
content: () => React.ReactNode;
|
|
15
24
|
trigger: () => React.ReactNode;
|
|
16
25
|
};
|
|
26
|
+
/**
|
|
27
|
+
* A popup displays brief content in an overlay.
|
|
28
|
+
*/
|
|
29
|
+
export type TPopup<T> = (props: PopupProps) => T;
|
|
@@ -3,9 +3,13 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - SelectProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::27434c8de7f2e3082a44901a80c594a9>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
-
* @codegenDependency ../../../../forge-ui/src/components/UIKit/select/index.tsx <<SignedSource::
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit/select/index.tsx <<SignedSource::f7eed13874b04c56ded5f3434e03c70e>>
|
|
9
9
|
*/
|
|
10
10
|
import type { SelectProps as PlatformSelectProps } from '@atlaskit/select';
|
|
11
11
|
export type SelectProps = Pick<PlatformSelectProps<any, true | false>, 'appearance' | 'autoFocus' | 'closeMenuOnScroll' | 'closeMenuOnSelect' | 'defaultInputValue' | 'defaultMenuIsOpen' | 'defaultValue' | 'id' | 'inputId' | 'inputValue' | 'isClearable' | 'isDisabled' | 'isInvalid' | 'isLoading' | 'isMulti' | 'isSearchable' | 'menuIsOpen' | 'openMenuOnFocus' | 'name' | 'onBlur' | 'onChange' | 'onFocus' | 'onInputChange' | 'options' | 'placeholder' | 'spacing' | 'testId' | 'value' | 'isRequired'>;
|
|
12
|
+
/**
|
|
13
|
+
* Select allows users to make a single selection or multiple selections from a list of options.
|
|
14
|
+
*/
|
|
15
|
+
export type TSelect<T> = (props: SelectProps) => T;
|
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - StackProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::d2ba0849ecf2dcab0851f9678f03e102>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
-
* @codegenDependency ../../../../forge-ui/src/components/UIKit/stack/__generated__/index.partial.tsx <<SignedSource::
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit/stack/__generated__/index.partial.tsx <<SignedSource::191f725f0992bea2117b07b99f6444de>>
|
|
9
9
|
*/
|
|
10
10
|
import React from 'react';
|
|
11
11
|
import { Stack as PlatformStack } from '@atlaskit/primitives';
|
|
12
12
|
type PlatformStackProps = React.ComponentProps<typeof PlatformStack>;
|
|
13
13
|
export type StackProps = Pick<PlatformStackProps, 'children' | 'alignBlock' | 'alignInline' | 'grow' | 'space' | 'spread' | 'testId'>;
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* A stack manages the vertical layout of direct children using flexbox.
|
|
16
16
|
*/
|
|
17
17
|
export type TStack<T> = (props: StackProps) => T;
|
|
18
18
|
export {};
|
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - TabListProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::2ac5252a55c5b4f8bbdf29439ab10dcf>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
-
* @codegenDependency ../../../../forge-ui/src/components/UIKit/tabs/__generated__/tablist.partial.tsx <<SignedSource::
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit/tabs/__generated__/tablist.partial.tsx <<SignedSource::fbd3384538b87c1a820790b55241ee21>>
|
|
9
9
|
*/
|
|
10
10
|
import React from 'react';
|
|
11
11
|
import { TabList as PlatformTabList } from '@atlaskit/tabs';
|
|
12
12
|
type PlatformTabListProps = React.ComponentProps<typeof PlatformTabList>;
|
|
13
13
|
export type TabListProps = Pick<PlatformTabListProps, 'children'>;
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* A `TabList` groups `Tab` components together.
|
|
16
16
|
*/
|
|
17
17
|
export type TTabList<T> = (props: TabListProps) => T;
|
|
18
18
|
export {};
|
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - TabPanelProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::6ff302a008a6520f4b1b03de50bfe530>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
-
* @codegenDependency ../../../../forge-ui/src/components/UIKit/tabs/__generated__/tabpanel.partial.tsx <<SignedSource::
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit/tabs/__generated__/tabpanel.partial.tsx <<SignedSource::e7936c96c90f8f4682c85a00f85a23f4>>
|
|
9
9
|
*/
|
|
10
10
|
import React from 'react';
|
|
11
11
|
import { TabPanel as PlatformTabPanel } from '@atlaskit/tabs';
|
|
12
12
|
type PlatformTabPanelProps = React.ComponentProps<typeof PlatformTabPanel>;
|
|
13
13
|
export type TabPanelProps = Pick<PlatformTabPanelProps, 'children' | 'testId'>;
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* A `TabPanel` houses the contents of a `Tab`.
|
|
16
16
|
*/
|
|
17
17
|
export type TTabPanel<T> = (props: TabPanelProps) => T;
|
|
18
18
|
export {};
|
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - TabProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::d69181ff464555d27568e977900710b6>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
-
* @codegenDependency ../../../../forge-ui/src/components/UIKit/tabs/__generated__/tab.partial.tsx <<SignedSource::
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit/tabs/__generated__/tab.partial.tsx <<SignedSource::05b588ddfb6bfa200363a1127660dce4>>
|
|
9
9
|
*/
|
|
10
10
|
import React from 'react';
|
|
11
11
|
import { Tab as PlatformTab } from '@atlaskit/tabs';
|
|
12
12
|
type PlatformTabProps = React.ComponentProps<typeof PlatformTab>;
|
|
13
13
|
export type TabProps = Pick<PlatformTabProps, 'children' | 'testId'>;
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* `Tab` represents an individual tab displayed in a TabList.
|
|
16
16
|
*/
|
|
17
17
|
export type TTab<T> = (props: TabProps) => T;
|
|
18
18
|
export {};
|
|
@@ -3,13 +3,17 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - TextAreaProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::4735e4d09b0b6c4a75fe1c08151b6054>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
-
* @codegenDependency ../../../../forge-ui/src/components/UIKit/textarea/index.tsx <<SignedSource::
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit/textarea/index.tsx <<SignedSource::282c20421c108bd52e5341ba0ee4293c>>
|
|
9
9
|
*/
|
|
10
10
|
import React from 'react';
|
|
11
11
|
import PlatformTextarea from '@atlaskit/textarea';
|
|
12
12
|
import type { EventHandlerProps } from './types.codegen';
|
|
13
13
|
type PlatformTextareaProps = React.ComponentProps<typeof PlatformTextarea>;
|
|
14
14
|
export type TextAreaProps = Pick<PlatformTextareaProps, 'appearance' | 'defaultValue' | 'isCompact' | 'isMonospaced' | 'isReadOnly' | 'maxHeight' | 'minimumRows' | 'placeholder' | 'resize' | 'spellCheck' | 'testId' | 'maxLength' | 'minLength' | 'autoFocus' | 'id' | 'isRequired' | 'isDisabled' | 'isInvalid' | 'value' | 'aria-invalid' | 'aria-labelledby' | 'name'> & Pick<EventHandlerProps, 'onChange' | 'onBlur' | 'onFocus'>;
|
|
15
|
+
/**
|
|
16
|
+
* A text area lets users enter long form text which spans over multiple lines.
|
|
17
|
+
*/
|
|
18
|
+
export type TTextArea<T> = (props: TextAreaProps) => T;
|
|
15
19
|
export {};
|
|
@@ -3,13 +3,17 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - TextfieldProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::4f0a7b04b3a23a5889553b2bfaf7f454>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
-
* @codegenDependency ../../../../forge-ui/src/components/UIKit/textfield/index.tsx <<SignedSource::
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit/textfield/index.tsx <<SignedSource::03b967815639a5a5aae4f79da283d410>>
|
|
9
9
|
*/
|
|
10
10
|
import React from 'react';
|
|
11
11
|
import PlatformTextfield from '@atlaskit/textfield';
|
|
12
12
|
import type { EventHandlerProps } from './types.codegen';
|
|
13
13
|
type PlatformTextfieldProps = React.ComponentProps<typeof PlatformTextfield>;
|
|
14
14
|
export type TextfieldProps = Pick<PlatformTextfieldProps, 'appearance' | 'elemAfterInput' | 'elemBeforeInput' | 'isCompact' | 'autoFocus' | 'isReadOnly' | 'isMonospaced' | 'placeholder' | 'testId' | 'width' | 'type' | 'defaultValue' | 'min' | 'max' | 'maxLength' | 'minLength' | 'pattern' | 'id' | 'isRequired' | 'isDisabled' | 'isInvalid' | 'value' | 'aria-invalid' | 'aria-labelledby' | 'name'> & Pick<EventHandlerProps, 'onChange' | 'onBlur' | 'onFocus'>;
|
|
15
|
+
/**
|
|
16
|
+
* A text field is an input that allows a user to write or edit text.
|
|
17
|
+
*/
|
|
18
|
+
export type TTextfield<T> = (props: TextfieldProps) => T;
|
|
15
19
|
export {};
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - TimePickerProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::3f20d9d9bd43c0d792ea07ff9ecc23b1>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
-
* @codegenDependency ../../../../forge-ui/src/components/UIKit/timepicker/__generated__/index.partial.tsx <<SignedSource::
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit/timepicker/__generated__/index.partial.tsx <<SignedSource::8f1c6ab03a29e7279ed2d3e82b086ab0>>
|
|
9
9
|
*/
|
|
10
10
|
import type { DateTimePickerSelectProps } from '@atlaskit/datetime-picker';
|
|
11
11
|
export interface FieldProps {
|
|
@@ -44,7 +44,7 @@ export type TimePickerProps = {
|
|
|
44
44
|
selectProps?: DateTimePickerSelectProps;
|
|
45
45
|
} & Partial<Omit<FieldProps, 'onChange'>>;
|
|
46
46
|
/**
|
|
47
|
-
* A
|
|
47
|
+
* A time picker allows the user to select a specific time.
|
|
48
48
|
*/
|
|
49
49
|
export type TTimePicker<T> = (props: TimePickerProps) => T;
|
|
50
50
|
export {};
|