@atlaskit/forge-react-types 0.42.22 → 0.43.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/dist/cjs/components/__generated__/BoxProps.codegen.js +1 -1
- package/dist/cjs/components/__generated__/PressableProps.codegen.js +2 -2
- package/dist/cjs/components/__generated__/types.codegen.js +1 -5
- package/dist/cjs/components/editor/index.js +5 -0
- package/dist/cjs/components/editor/types.js +5 -0
- package/dist/es2019/components/__generated__/BoxProps.codegen.js +1 -1
- package/dist/es2019/components/__generated__/PressableProps.codegen.js +2 -2
- package/dist/es2019/components/__generated__/types.codegen.js +0 -1
- package/dist/esm/components/__generated__/BoxProps.codegen.js +1 -1
- package/dist/esm/components/__generated__/PressableProps.codegen.js +2 -2
- package/dist/esm/components/__generated__/types.codegen.js +0 -1
- package/dist/esm/components/editor/ChromelessEditorProps.js +1 -0
- package/dist/esm/components/editor/CommentEditorProps.js +1 -0
- package/dist/esm/components/editor/index.js +1 -0
- package/dist/esm/components/editor/types.js +1 -0
- package/dist/types/components/__generated__/AdfRendererProps.codegen.d.ts +3 -3
- package/dist/types/components/__generated__/BoxProps.codegen.d.ts +2 -2
- package/dist/types/components/__generated__/ButtonProps.codegen.d.ts +3 -3
- package/dist/types/components/__generated__/CheckboxGroupProps.codegen.d.ts +12 -12
- package/dist/types/components/__generated__/DatePickerProps.codegen.d.ts +6 -6
- package/dist/types/components/__generated__/FormFooterProps.codegen.d.ts +2 -2
- package/dist/types/components/__generated__/FormProps.codegen.d.ts +3 -3
- package/dist/types/components/__generated__/InlineEditProps.codegen.d.ts +6 -6
- package/dist/types/components/__generated__/LinkButtonProps.codegen.d.ts +4 -4
- package/dist/types/components/__generated__/ListProps.codegen.d.ts +6 -6
- package/dist/types/components/__generated__/LoadingButtonProps.codegen.d.ts +2 -2
- package/dist/types/components/__generated__/PopupProps.codegen.d.ts +2 -2
- package/dist/types/components/__generated__/PressableProps.codegen.d.ts +2 -2
- package/dist/types/components/__generated__/SectionMessageProps.codegen.d.ts +2 -2
- package/dist/types/components/__generated__/TextProps.codegen.d.ts +2 -2
- package/dist/types/components/__generated__/TimePickerProps.codegen.d.ts +6 -6
- package/dist/types/components/__generated__/index.d.ts +0 -2
- package/dist/types/components/__generated__/types.codegen.d.ts +2 -56
- package/dist/types/components/editor/ChromelessEditorProps.d.ts +8 -0
- package/dist/types/components/{__generated__/CommentEditorProps.codegen.d.ts → editor/CommentEditorProps.d.ts} +1 -10
- package/dist/types/components/editor/index.d.ts +2 -0
- package/dist/types/components/editor/types.d.ts +54 -0
- package/dist/types/index.d.ts +2 -1
- package/dist/types-ts4.5/components/__generated__/AdfRendererProps.codegen.d.ts +3 -3
- package/dist/types-ts4.5/components/__generated__/BoxProps.codegen.d.ts +2 -2
- package/dist/types-ts4.5/components/__generated__/ButtonProps.codegen.d.ts +3 -3
- package/dist/types-ts4.5/components/__generated__/CheckboxGroupProps.codegen.d.ts +12 -12
- package/dist/types-ts4.5/components/__generated__/DatePickerProps.codegen.d.ts +6 -6
- package/dist/types-ts4.5/components/__generated__/FormFooterProps.codegen.d.ts +2 -2
- package/dist/types-ts4.5/components/__generated__/FormProps.codegen.d.ts +3 -3
- package/dist/types-ts4.5/components/__generated__/InlineEditProps.codegen.d.ts +6 -6
- package/dist/types-ts4.5/components/__generated__/LinkButtonProps.codegen.d.ts +4 -4
- package/dist/types-ts4.5/components/__generated__/ListProps.codegen.d.ts +6 -6
- package/dist/types-ts4.5/components/__generated__/LoadingButtonProps.codegen.d.ts +2 -2
- package/dist/types-ts4.5/components/__generated__/PopupProps.codegen.d.ts +2 -2
- package/dist/types-ts4.5/components/__generated__/PressableProps.codegen.d.ts +2 -2
- package/dist/types-ts4.5/components/__generated__/SectionMessageProps.codegen.d.ts +2 -2
- package/dist/types-ts4.5/components/__generated__/TextProps.codegen.d.ts +2 -2
- package/dist/types-ts4.5/components/__generated__/TimePickerProps.codegen.d.ts +6 -6
- package/dist/types-ts4.5/components/__generated__/index.d.ts +0 -2
- package/dist/types-ts4.5/components/__generated__/types.codegen.d.ts +2 -56
- package/dist/types-ts4.5/components/editor/ChromelessEditorProps.d.ts +8 -0
- package/dist/types-ts4.5/components/{__generated__/CommentEditorProps.codegen.d.ts → editor/CommentEditorProps.d.ts} +1 -10
- package/dist/types-ts4.5/components/editor/index.d.ts +2 -0
- package/dist/types-ts4.5/components/editor/types.d.ts +54 -0
- package/dist/types-ts4.5/index.d.ts +2 -1
- package/package.json +12 -12
- package/src/components/__generated__/AdfRendererProps.codegen.tsx +5 -5
- package/src/components/__generated__/BoxProps.codegen.tsx +2 -2
- package/src/components/__generated__/ButtonProps.codegen.tsx +6 -2
- package/src/components/__generated__/CheckboxGroupProps.codegen.tsx +12 -12
- package/src/components/__generated__/DatePickerProps.codegen.tsx +6 -6
- package/src/components/__generated__/FormFooterProps.codegen.tsx +2 -2
- package/src/components/__generated__/FormProps.codegen.tsx +3 -3
- package/src/components/__generated__/InlineEditProps.codegen.tsx +6 -6
- package/src/components/__generated__/LinkButtonProps.codegen.tsx +4 -4
- package/src/components/__generated__/ListProps.codegen.tsx +6 -6
- package/src/components/__generated__/LoadingButtonProps.codegen.tsx +2 -2
- package/src/components/__generated__/PopupProps.codegen.tsx +2 -2
- package/src/components/__generated__/PressableProps.codegen.tsx +59 -59
- package/src/components/__generated__/SectionMessageProps.codegen.tsx +4 -4
- package/src/components/__generated__/TextProps.codegen.tsx +2 -2
- package/src/components/__generated__/TimePickerProps.codegen.tsx +6 -6
- package/src/components/__generated__/index.ts +0 -2
- package/src/components/__generated__/types.codegen.ts +2 -62
- package/src/components/editor/ChromelessEditorProps.tsx +10 -0
- package/src/components/{__generated__/CommentEditorProps.codegen.tsx → editor/CommentEditorProps.tsx} +2 -13
- package/src/components/editor/index.ts +2 -0
- package/src/components/editor/types.ts +59 -0
- package/src/index.ts +7 -4
- package/dist/types/components/__generated__/ChromelessEditorProps.codegen.d.ts +0 -17
- package/dist/types-ts4.5/components/__generated__/ChromelessEditorProps.codegen.d.ts +0 -17
- package/src/components/__generated__/ChromelessEditorProps.codegen.tsx +0 -21
- /package/dist/cjs/components/{__generated__/ChromelessEditorProps.codegen.js → editor/ChromelessEditorProps.js} +0 -0
- /package/dist/cjs/components/{__generated__/CommentEditorProps.codegen.js → editor/CommentEditorProps.js} +0 -0
- /package/dist/es2019/components/{__generated__/ChromelessEditorProps.codegen.js → editor/ChromelessEditorProps.js} +0 -0
- /package/dist/es2019/components/{__generated__/CommentEditorProps.codegen.js → editor/CommentEditorProps.js} +0 -0
- /package/dist/{esm/components/__generated__/ChromelessEditorProps.codegen.js → es2019/components/editor/index.js} +0 -0
- /package/dist/{esm/components/__generated__/CommentEditorProps.codegen.js → es2019/components/editor/types.js} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @atlaskit/forge-react-types
|
|
2
2
|
|
|
3
|
+
## 0.43.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`6662b74dfa76b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6662b74dfa76b) -
|
|
8
|
+
Regenerating Icon glyphs and updating button icon types
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
3
14
|
## 0.42.22
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
|
@@ -8,7 +8,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
8
8
|
*
|
|
9
9
|
* Extract component prop types from UIKit 2 components - BoxProps
|
|
10
10
|
*
|
|
11
|
-
* @codegen <<SignedSource::
|
|
11
|
+
* @codegen <<SignedSource::59d9053f6fa2fe522770b1b720b745a7>>
|
|
12
12
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
13
13
|
* @codegenDependency ../../../../forge-ui/src/components/UIKit/box/__generated__/index.partial.tsx <<SignedSource::cd2255d6156809f22f110b9eb0936c9d>>
|
|
14
14
|
*/
|
|
@@ -8,9 +8,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
8
8
|
*
|
|
9
9
|
* Extract component prop types from UIKit 2 components - PressableProps
|
|
10
10
|
*
|
|
11
|
-
* @codegen <<SignedSource::
|
|
11
|
+
* @codegen <<SignedSource::e2a66a4b4895b62cc4fce2fea034ad4b>>
|
|
12
12
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
13
|
-
* @codegenDependency ../../../../forge-ui/src/components/UIKit/pressable/
|
|
13
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit/pressable/index.tsx <<SignedSource::d647047e3db08689d4030f643748e661>>
|
|
14
14
|
*/
|
|
15
15
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage/preview */
|
|
16
16
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - BoxProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::59d9053f6fa2fe522770b1b720b745a7>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
8
|
* @codegenDependency ../../../../forge-ui/src/components/UIKit/box/__generated__/index.partial.tsx <<SignedSource::cd2255d6156809f22f110b9eb0936c9d>>
|
|
9
9
|
*/
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - PressableProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::e2a66a4b4895b62cc4fce2fea034ad4b>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
-
* @codegenDependency ../../../../forge-ui/src/components/UIKit/pressable/
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit/pressable/index.tsx <<SignedSource::d647047e3db08689d4030f643748e661>>
|
|
9
9
|
*/
|
|
10
10
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage/preview */
|
|
11
11
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - BoxProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::59d9053f6fa2fe522770b1b720b745a7>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
8
|
* @codegenDependency ../../../../forge-ui/src/components/UIKit/box/__generated__/index.partial.tsx <<SignedSource::cd2255d6156809f22f110b9eb0936c9d>>
|
|
9
9
|
*/
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - PressableProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::e2a66a4b4895b62cc4fce2fea034ad4b>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
-
* @codegenDependency ../../../../forge-ui/src/components/UIKit/pressable/
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit/pressable/index.tsx <<SignedSource::d647047e3db08689d4030f643748e661>>
|
|
9
9
|
*/
|
|
10
10
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage/preview */
|
|
11
11
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - AdfRendererProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::757ab113edda1f83f41c49739c285bdc>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
-
* @codegenDependency ../../../../forge-ui/src/components/UIKit/adfrenderer/index.tsx <<SignedSource::
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit/adfrenderer/index.tsx <<SignedSource::f0a45b8f69a7412792758f6a0f31f69d>>
|
|
9
9
|
*/
|
|
10
10
|
import type { DocNode } from '@atlaskit/adf-schema';
|
|
11
11
|
export type AdfRendererProps = {
|
|
@@ -15,6 +15,7 @@ export type AdfRendererProps = {
|
|
|
15
15
|
* @type [DocNode](https://developer.atlassian.com/cloud/jira/platform/apis/document/nodes/doc/)
|
|
16
16
|
*/
|
|
17
17
|
document: DocNode;
|
|
18
|
+
documentWithoutMedia?: DocNode;
|
|
18
19
|
/**
|
|
19
20
|
* A function to determine behaviour for handling unsupported nodes:
|
|
20
21
|
* - Return a new Node to replace the unsupported one
|
|
@@ -24,7 +25,6 @@ export type AdfRendererProps = {
|
|
|
24
25
|
* @type [Visitor](https://bitbucket.org/atlassian/atlassian-frontend-mirror/src/master/editor/adf-utils/src/types/index.ts)
|
|
25
26
|
*/
|
|
26
27
|
replaceUnsupportedNode?: Function;
|
|
27
|
-
documentWithoutMedia?: DocNode;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
30
|
* The AdfRenderer component provides a way to render a valid ADF document, using the same renderer that Atlassian uses internally to render ADF content in Confluence pages, Jira work items, and so on.
|
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - BoxProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::59d9053f6fa2fe522770b1b720b745a7>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
8
|
* @codegenDependency ../../../../forge-ui/src/components/UIKit/box/__generated__/index.partial.tsx <<SignedSource::cd2255d6156809f22f110b9eb0936c9d>>
|
|
9
9
|
*/
|
|
10
10
|
import React from 'react';
|
|
11
11
|
import { Box as PlatformBox } from '@atlaskit/primitives';
|
|
12
|
-
import type { CSSProperties } from '@emotion/serialize';
|
|
13
12
|
import type * as CSS from 'csstype';
|
|
14
13
|
import type { MediaQuery } from '@atlaskit/primitives';
|
|
15
14
|
import { tokensMap } from '@atlaskit/primitives';
|
|
15
|
+
type CSSProperties = CSS.PropertiesFallback<number | string>;
|
|
16
16
|
type TokensMap = typeof tokensMap;
|
|
17
17
|
type TokensMapPropKey = keyof TokensMap;
|
|
18
18
|
type TokenizedProps = {
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - ButtonProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::28ff60d0f3d4c1058baf352cebe4fc57>>
|
|
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/index.tsx <<SignedSource::52b83f8562f7d67ebc840be38101d0a4>>
|
|
9
9
|
*/
|
|
10
10
|
import type { ButtonProps as PlatformButtonProps } from '@atlaskit/button/new';
|
|
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';
|
|
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' | 'full-screen-off' | 'full-screen-on' | '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 IconType = Icon;
|
|
13
13
|
export type ButtonProps = Pick<PlatformButtonProps, 'children' | 'autoFocus' | 'isDisabled' | 'isSelected' | 'onBlur' | 'onClick' | 'onFocus' | 'testId' | 'shouldFitContainer' | 'appearance' | 'type'> & {
|
|
14
14
|
iconBefore?: IconType;
|
|
@@ -3,36 +3,36 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - CheckboxGroupProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::6a61b3ffdd671a5e0084cc2eb8f266ca>>
|
|
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::c9be1ccedca06e7cd599a9ce5aa61fde>>
|
|
9
9
|
*/
|
|
10
10
|
export interface CheckboxGroupProps {
|
|
11
|
+
/**
|
|
12
|
+
* Sets the initial selected value on the `CheckboxGroup`.
|
|
13
|
+
*/
|
|
14
|
+
defaultValue?: string[];
|
|
15
|
+
/**
|
|
16
|
+
* Sets the disabled state of all Checkbox elements in the group.
|
|
17
|
+
*/
|
|
18
|
+
isDisabled?: boolean;
|
|
11
19
|
/**
|
|
12
20
|
* Sets the name prop on each of the Checkbox elements in the group.
|
|
13
21
|
*/
|
|
14
22
|
name: string;
|
|
23
|
+
onChange?: (values: string[]) => void;
|
|
15
24
|
/**
|
|
16
25
|
* An array of objects, each object is mapped onto a Checkbox element within the group.
|
|
17
26
|
*/
|
|
18
27
|
options: {
|
|
28
|
+
isDisabled?: boolean;
|
|
19
29
|
label: string;
|
|
20
30
|
value: string;
|
|
21
|
-
isDisabled?: boolean;
|
|
22
31
|
}[];
|
|
23
32
|
/**
|
|
24
33
|
* Once set, controls the selected value on the `CheckboxGroup`.
|
|
25
34
|
*/
|
|
26
35
|
value?: string[];
|
|
27
|
-
onChange?: (values: string[]) => void;
|
|
28
|
-
/**
|
|
29
|
-
* Sets the initial selected value on the `CheckboxGroup`.
|
|
30
|
-
*/
|
|
31
|
-
defaultValue?: string[];
|
|
32
|
-
/**
|
|
33
|
-
* Sets the disabled state of all Checkbox elements in the group.
|
|
34
|
-
*/
|
|
35
|
-
isDisabled?: boolean;
|
|
36
36
|
}
|
|
37
37
|
/**
|
|
38
38
|
* A Checkbox group is a list of options where one or more choices can be selected.
|
|
@@ -3,23 +3,23 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - DatePickerProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::dd7f6d23d3c23b62f56cc3c8e78c7639>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
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 {
|
|
12
|
+
'aria-invalid': 'true' | 'false';
|
|
13
|
+
'aria-labelledby': string;
|
|
12
14
|
id: string;
|
|
13
|
-
isRequired: boolean;
|
|
14
15
|
isDisabled: boolean;
|
|
15
16
|
isInvalid: boolean;
|
|
16
|
-
|
|
17
|
+
isRequired: boolean;
|
|
18
|
+
name: string;
|
|
17
19
|
onBlur: (event: unknown) => void;
|
|
20
|
+
onChange: (event: unknown) => void;
|
|
18
21
|
onFocus: (event: unknown) => void;
|
|
19
22
|
value: any;
|
|
20
|
-
'aria-invalid': 'true' | 'false';
|
|
21
|
-
'aria-labelledby': string;
|
|
22
|
-
name: string;
|
|
23
23
|
}
|
|
24
24
|
type Appearance = 'default' | 'subtle' | 'none';
|
|
25
25
|
type Spacing = 'compact' | 'default';
|
|
@@ -3,19 +3,19 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - FormFooterProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::4c90207f54696475cd9bfae6d8cfb8a9>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
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 _PlatformFormFooterProps = React.ComponentProps<typeof PlatformFormFooter>;
|
|
13
12
|
export type PlatformFormFooterProps = Omit<_PlatformFormFooterProps, 'align'> & {
|
|
14
13
|
/**
|
|
15
14
|
* Sets the alignment of the footer contents. This is often a button. Defaults to `end`.
|
|
16
15
|
*/
|
|
17
16
|
align?: _PlatformFormFooterProps['align'];
|
|
18
17
|
};
|
|
18
|
+
type _PlatformFormFooterProps = React.ComponentProps<typeof PlatformFormFooter>;
|
|
19
19
|
export type FormFooterProps = Pick<PlatformFormFooterProps, 'children' | 'align'>;
|
|
20
20
|
/**
|
|
21
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.
|
|
@@ -3,12 +3,13 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - FormProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::ca42eb4d628a4c566926524729cd5949>>
|
|
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::227c9ed7a33e4ff2efd0c372e35c04c3>>
|
|
9
9
|
*/
|
|
10
10
|
import type { ReactNode } from 'react';
|
|
11
11
|
export type FormProps = {
|
|
12
|
+
children: ReactNode;
|
|
12
13
|
/**
|
|
13
14
|
* Event handler called when the form is submitted. Fields must be free of validation errors.
|
|
14
15
|
*
|
|
@@ -19,7 +20,6 @@ export type FormProps = {
|
|
|
19
20
|
* If you use `() => Promise<void>|void` for this module, it will default to true.
|
|
20
21
|
*/
|
|
21
22
|
onSubmit: () => Promise<void | boolean> | void;
|
|
22
|
-
children: ReactNode;
|
|
23
23
|
};
|
|
24
24
|
/**
|
|
25
25
|
* A form allows users to input information.
|
|
@@ -3,23 +3,23 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - InlineEditProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::8f962ba10ad28d9c11ed0430a9195438>>
|
|
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::f4625a973245a2df44b3b63960773a46>>
|
|
9
9
|
*/
|
|
10
10
|
import React from 'react';
|
|
11
11
|
import { default as PlatformInlineEdit } from '@atlaskit/inline-edit';
|
|
12
12
|
type EditViewFieldProps<V> = {
|
|
13
|
-
|
|
14
|
-
value: V;
|
|
13
|
+
'aria-invalid': 'true' | 'false';
|
|
15
14
|
errorMessage?: string;
|
|
16
15
|
isInvalid: boolean;
|
|
17
|
-
'aria-invalid': 'true' | 'false';
|
|
18
16
|
isRequired: boolean;
|
|
17
|
+
onChange: (event: any) => void;
|
|
18
|
+
value: V;
|
|
19
19
|
};
|
|
20
20
|
export type InlineEditProps<V = string> = Omit<React.ComponentProps<typeof PlatformInlineEdit<V>>, 'analyticsContext' | 'onConfirm' | 'editView'> & {
|
|
21
|
-
onConfirm: (value: V) => void;
|
|
22
21
|
editView: (fieldProps: EditViewFieldProps<V>) => React.ReactNode;
|
|
22
|
+
onConfirm: (value: V) => void;
|
|
23
23
|
};
|
|
24
24
|
/**
|
|
25
25
|
* An inline edit displays a custom input component that switches between reading and editing on the same page.
|
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - LinkButtonProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::65d972f12bee563f4cc6b347e042dc57>>
|
|
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/link-button.tsx <<SignedSource::260bb0ac991e48b6e7f0da4b938d73c7>>
|
|
9
9
|
*/
|
|
10
|
-
import type { LinkButtonProps as PlatformLinkButtonProps } from '@atlaskit/button/new';
|
|
11
10
|
import React from 'react';
|
|
11
|
+
import type { LinkButtonProps as PlatformLinkButtonProps } from '@atlaskit/button/new';
|
|
12
12
|
export type LinkButtonProps = Pick<PlatformLinkButtonProps, 'children' | 'target' | 'autoFocus' | 'isDisabled' | 'isSelected' | 'onBlur' | 'onClick' | 'onFocus' | 'testId' | 'shouldFitContainer'> & {
|
|
13
|
+
appearance?: PlatformLinkButtonProps['appearance'] | 'link' | 'subtle-link';
|
|
13
14
|
href?: string;
|
|
14
15
|
ref?: React.Ref<HTMLAnchorElement>;
|
|
15
|
-
appearance?: PlatformLinkButtonProps['appearance'] | 'link' | 'subtle-link';
|
|
16
16
|
spacing?: PlatformLinkButtonProps['spacing'] | 'none';
|
|
17
17
|
};
|
|
18
18
|
/**
|
|
@@ -3,22 +3,22 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - ListProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::f941ffed450aa45c5d58966679182193>>
|
|
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::05949d787a1dce05d30cd93eed298093>>
|
|
9
9
|
*/
|
|
10
10
|
import React from 'react';
|
|
11
11
|
export interface ListProps {
|
|
12
|
+
/**
|
|
13
|
+
* The items to render inside a `List` group.
|
|
14
|
+
*/
|
|
15
|
+
children: React.ReactNode;
|
|
12
16
|
/**
|
|
13
17
|
* The `ordered` type should be used when representing an ordered list of items.
|
|
14
18
|
* The `unordered` type should be used when representing an unordered list of items.
|
|
15
19
|
* The type is set to `unordered` by default.
|
|
16
20
|
*/
|
|
17
21
|
type: 'ordered' | 'unordered';
|
|
18
|
-
/**
|
|
19
|
-
* The items to render inside a `List` group.
|
|
20
|
-
*/
|
|
21
|
-
children: React.ReactNode;
|
|
22
22
|
}
|
|
23
23
|
/**
|
|
24
24
|
* An unordered (bulleted) or ordered (numbered) list.
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - LoadingButtonProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::f3ab66b3494753ac1721770620800f33>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
-
* @codegenDependency ../../../../forge-ui/src/components/UIKit/button/loading-button.tsx <<SignedSource::
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit/button/loading-button.tsx <<SignedSource::f8f88b5f1e0c23036af2f7649740ac92>>
|
|
9
9
|
*/
|
|
10
10
|
import React from 'react';
|
|
11
11
|
import { LoadingButton as PlatformLoadingButton } from '@atlaskit/button';
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - PopupProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::8763a054e66a7a157d421e05062d175f>>
|
|
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::e9d4bff7da064f1461f189540b88554c>>
|
|
9
9
|
*/
|
|
10
10
|
import React from 'react';
|
|
11
11
|
import { default as PlatformPopup } from '@atlaskit/popup';
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - PressableProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::e2a66a4b4895b62cc4fce2fea034ad4b>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
-
* @codegenDependency ../../../../forge-ui/src/components/UIKit/pressable/
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit/pressable/index.tsx <<SignedSource::d647047e3db08689d4030f643748e661>>
|
|
9
9
|
*/
|
|
10
10
|
import React from 'react';
|
|
11
11
|
import { Pressable as PlatformPressable } from '@atlaskit/primitives';
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - SectionMessageProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::08d9aec7dc84ab09fe105054828cea70>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
-
* @codegenDependency ../../../../forge-ui/src/components/UIKit/sectionmessage/
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit/sectionmessage/index.tsx <<SignedSource::a94e5a0d754b50192e4aeddb4c0d8500>>
|
|
9
9
|
*/
|
|
10
10
|
import React from 'react';
|
|
11
11
|
import PlatformSectionMessage from '@atlaskit/section-message';
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - TextProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::2ed972ffd5e71c07a80894fade629a9d>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
-
* @codegenDependency ../../../../forge-ui/src/components/UIKit/text/__generated__/index.partial.tsx <<SignedSource::
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit/text/__generated__/index.partial.tsx <<SignedSource::78e5f0ea9165ce254772921abbc01ccd>>
|
|
9
9
|
*/
|
|
10
10
|
import React from 'react';
|
|
11
11
|
import { Text as PlatformText } from '@atlaskit/primitives/compiled';
|
|
@@ -3,23 +3,23 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - TimePickerProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::8400073ffade72c2330b63473b461c81>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
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 {
|
|
12
|
+
'aria-invalid': 'true' | 'false';
|
|
13
|
+
'aria-labelledby': string;
|
|
12
14
|
id: string;
|
|
13
|
-
isRequired: boolean;
|
|
14
15
|
isDisabled: boolean;
|
|
15
16
|
isInvalid: boolean;
|
|
16
|
-
|
|
17
|
+
isRequired: boolean;
|
|
18
|
+
name: string;
|
|
17
19
|
onBlur: (event: unknown) => void;
|
|
20
|
+
onChange: (event: unknown) => void;
|
|
18
21
|
onFocus: (event: unknown) => void;
|
|
19
22
|
value: any;
|
|
20
|
-
'aria-invalid': 'true' | 'false';
|
|
21
|
-
'aria-labelledby': string;
|
|
22
|
-
name: string;
|
|
23
23
|
}
|
|
24
24
|
type Appearance = 'default' | 'subtle' | 'none';
|
|
25
25
|
type Spacing = 'compact' | 'default';
|
|
@@ -70,6 +70,4 @@ export type TextProps = Omit<OriginalTextProps, 'as'> & {
|
|
|
70
70
|
* [Lozenge](https://developer.atlassian.com/platform/forge/ui-kit/components/lozenge/).
|
|
71
71
|
*/
|
|
72
72
|
export type TText<T> = (props: TextProps) => T;
|
|
73
|
-
export type { CommentEditorProps, TCommentEditor } from './CommentEditorProps.codegen';
|
|
74
|
-
export type { ChromelessEditorProps, TChromelessEditor } from './ChromelessEditorProps.codegen';
|
|
75
73
|
export type { PressableProps, TPressable } from './PressableProps.codegen';
|
|
@@ -3,11 +3,10 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Shared types file for UI Kit components. Add shared types to `packages/forge/forge-ui/src/components/UIKit/types.ts` for it to be code generated here and imported correctly into prop type files
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::458f427c84c874b70d06e22fe3e05fd6>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
-
* @codegenDependency ../../../../forge-ui/src/components/UIKit/types.ts <<SignedSource::
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit/types.ts <<SignedSource::176a0f595b09d6501c2d9b64e6784672>>
|
|
9
9
|
*/
|
|
10
|
-
import type { JSONDocNode } from '@atlaskit/editor-json-transformer';
|
|
11
10
|
export type SerialisableEvent = {
|
|
12
11
|
bubbles: boolean;
|
|
13
12
|
cancelable: boolean;
|
|
@@ -33,56 +32,3 @@ export type EventHandlerProps = {
|
|
|
33
32
|
onBlur?: (event: InputEvent) => void;
|
|
34
33
|
onFocus?: (event: InputEvent) => void;
|
|
35
34
|
};
|
|
36
|
-
export type Appearance = 'comment' | 'chromeless';
|
|
37
|
-
export type Features = {
|
|
38
|
-
/**
|
|
39
|
-
* Enables text to be different heading levels or in quote blocks.
|
|
40
|
-
*/
|
|
41
|
-
blockType?: boolean;
|
|
42
|
-
/**
|
|
43
|
-
* Enables stylistic formatting on text. This allows text to be set to bold, italic, underline, strikethrough code, subscript and superscript.
|
|
44
|
-
*/
|
|
45
|
-
textFormatting?: boolean;
|
|
46
|
-
/**
|
|
47
|
-
* Enables ordered and unordered lists.
|
|
48
|
-
*/
|
|
49
|
-
list?: boolean;
|
|
50
|
-
/**
|
|
51
|
-
* Enables toolbar items for link, codeblock and quote block.
|
|
52
|
-
*/
|
|
53
|
-
insertBlock?: boolean;
|
|
54
|
-
/**
|
|
55
|
-
* Enables color on text.
|
|
56
|
-
*/
|
|
57
|
-
textColor?: boolean;
|
|
58
|
-
/**
|
|
59
|
-
* Enables links to become hyperlink.
|
|
60
|
-
*/
|
|
61
|
-
hyperLink?: boolean;
|
|
62
|
-
/**
|
|
63
|
-
* Enables the quick insert menu. Type '/' to open the menu in the editor.
|
|
64
|
-
*/
|
|
65
|
-
quickInsert?: boolean;
|
|
66
|
-
/**
|
|
67
|
-
* Enables text to be placed in a code block.
|
|
68
|
-
*/
|
|
69
|
-
codeBlock?: boolean;
|
|
70
|
-
};
|
|
71
|
-
export type EditorProps = {
|
|
72
|
-
/**
|
|
73
|
-
* Handler called when the inputs value changes.
|
|
74
|
-
*/
|
|
75
|
-
onChange?: (value?: JSONDocNode) => void;
|
|
76
|
-
/**
|
|
77
|
-
* Set the default editor content.
|
|
78
|
-
*/
|
|
79
|
-
defaultValue?: JSONDocNode;
|
|
80
|
-
/**
|
|
81
|
-
* Set allowed features in the editor.
|
|
82
|
-
*/
|
|
83
|
-
features?: Features;
|
|
84
|
-
/**
|
|
85
|
-
* Set if the editor should be disabled
|
|
86
|
-
*/
|
|
87
|
-
isDisabled?: boolean;
|
|
88
|
-
};
|