@atlaskit/forge-react-types 0.14.0 → 0.14.2
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 +94 -83
- package/LICENSE.md +6 -8
- package/dist/cjs/components/__generated__/BoxProps.codegen.js +2 -2
- package/dist/es2019/components/__generated__/BoxProps.codegen.js +2 -2
- package/dist/esm/components/__generated__/BoxProps.codegen.js +2 -2
- package/dist/types/components/__generated__/BoxProps.codegen.d.ts +2 -2
- package/dist/types/components/__generated__/ButtonProps.codegen.d.ts +1 -1
- package/dist/types/components/__generated__/CheckboxGroupProps.codegen.d.ts +2 -2
- package/dist/types/components/__generated__/DatePickerProps.codegen.d.ts +1 -1
- package/dist/types/components/__generated__/FormProps.codegen.d.ts +2 -2
- package/dist/types/components/__generated__/IconProps.codegen.d.ts +2 -2
- package/dist/types/components/__generated__/ListItemProps.codegen.d.ts +2 -2
- package/dist/types/components/__generated__/ListProps.codegen.d.ts +2 -2
- package/dist/types/components/__generated__/types.codegen.d.ts +2 -2
- package/dist/types-ts4.5/components/__generated__/BoxProps.codegen.d.ts +2 -2
- package/dist/types-ts4.5/components/__generated__/ButtonProps.codegen.d.ts +1 -1
- package/dist/types-ts4.5/components/__generated__/CheckboxGroupProps.codegen.d.ts +2 -2
- package/dist/types-ts4.5/components/__generated__/DatePickerProps.codegen.d.ts +1 -1
- package/dist/types-ts4.5/components/__generated__/FormProps.codegen.d.ts +2 -2
- package/dist/types-ts4.5/components/__generated__/IconProps.codegen.d.ts +2 -2
- package/dist/types-ts4.5/components/__generated__/ListItemProps.codegen.d.ts +2 -2
- package/dist/types-ts4.5/components/__generated__/ListProps.codegen.d.ts +2 -2
- package/dist/types-ts4.5/components/__generated__/types.codegen.d.ts +2 -2
- package/package.json +71 -73
- package/scripts/codegen/codeGenerator.ts +306 -347
- package/scripts/codegen/componentPropTypes.ts +167 -212
- package/scripts/codegen-runner.ts +4 -4
- package/src/components/__generated__/BoxProps.codegen.tsx +2 -2
- package/src/components/__generated__/ButtonProps.codegen.tsx +358 -358
- package/src/components/__generated__/CheckboxGroupProps.codegen.tsx +8 -8
- package/src/components/__generated__/DatePickerProps.codegen.tsx +12 -12
- package/src/components/__generated__/FormProps.codegen.tsx +4 -4
- package/src/components/__generated__/IconProps.codegen.tsx +364 -364
- package/src/components/__generated__/ListItemProps.codegen.tsx +3 -3
- package/src/components/__generated__/ListProps.codegen.tsx +4 -4
- package/src/components/__generated__/types.codegen.ts +20 -20
- package/src/index.ts +58 -58
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - ListItemProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::eea5642654758c70eb31a2606729b463>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
-
* @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/list/listitem.tsx <<SignedSource::
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/list/listitem.tsx <<SignedSource::e93278695325427d667307c6aefd8eea>>
|
|
9
9
|
*/
|
|
10
10
|
import React from 'react';
|
|
11
11
|
|
|
12
12
|
export interface ListItemProps {
|
|
13
|
-
|
|
13
|
+
children: React.ReactNode;
|
|
14
14
|
}
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - ListProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::fd5b4a75262f77b460d434e1c57d8ba1>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
-
* @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/list/list.tsx <<SignedSource::
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/list/list.tsx <<SignedSource::5bb6824f9a98335ce4b0fcdd02f71802>>
|
|
9
9
|
*/
|
|
10
10
|
import React from 'react';
|
|
11
11
|
|
|
12
12
|
export interface ListProps {
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
type: 'ordered' | 'unordered';
|
|
14
|
+
children: React.ReactNode;
|
|
15
15
|
}
|
|
@@ -3,30 +3,30 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Shared types file from UIKit 2
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::65d194d117930d36350ecd1b5f0bab19>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
-
* @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/types.ts <<SignedSource::
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/types.ts <<SignedSource::ead448842d74cb269e35940f951e298f>>
|
|
9
9
|
*/
|
|
10
10
|
export type SerialisableEvent = {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
11
|
+
bubbles: boolean;
|
|
12
|
+
cancelable: boolean;
|
|
13
|
+
defaultPrevented: boolean;
|
|
14
|
+
eventPhase: number;
|
|
15
|
+
isTrusted: boolean;
|
|
16
|
+
target: {
|
|
17
|
+
value?: any;
|
|
18
|
+
checked?: boolean;
|
|
19
|
+
name?: string;
|
|
20
|
+
id?: string;
|
|
21
|
+
tagName?: string;
|
|
22
|
+
type?: string;
|
|
23
|
+
};
|
|
24
|
+
timeStamp: number;
|
|
25
|
+
type: string;
|
|
26
26
|
};
|
|
27
27
|
|
|
28
28
|
export type EventHandlerProps = {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
onChange?: (event: SerialisableEvent) => void;
|
|
30
|
+
onBlur?: (event: SerialisableEvent) => void;
|
|
31
|
+
onFocus?: (event: SerialisableEvent) => void;
|
|
32
32
|
};
|
package/src/index.ts
CHANGED
|
@@ -1,60 +1,60 @@
|
|
|
1
1
|
export type {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
2
|
+
BadgeProps,
|
|
3
|
+
BannerProps,
|
|
4
|
+
BleedProps,
|
|
5
|
+
BoxProps,
|
|
6
|
+
ButtonGroupProps,
|
|
7
|
+
ButtonProps,
|
|
8
|
+
CalendarProps,
|
|
9
|
+
CheckboxProps,
|
|
10
|
+
CheckboxGroupProps,
|
|
11
|
+
CodeBlockProps,
|
|
12
|
+
CodeProps,
|
|
13
|
+
DatePickerProps,
|
|
14
|
+
DynamicTableProps,
|
|
15
|
+
EmptyStateProps,
|
|
16
|
+
ErrorMessageProps,
|
|
17
|
+
FlexProps,
|
|
18
|
+
FormFooterProps,
|
|
19
|
+
FormHeaderProps,
|
|
20
|
+
FormProps,
|
|
21
|
+
FormSectionProps,
|
|
22
|
+
GridProps,
|
|
23
|
+
HeadingProps,
|
|
24
|
+
HelperMessageProps,
|
|
25
|
+
IconProps,
|
|
26
|
+
InlineProps,
|
|
27
|
+
LabelProps,
|
|
28
|
+
LinkButtonProps,
|
|
29
|
+
ListProps,
|
|
30
|
+
ListItemProps,
|
|
31
|
+
LoadingButtonProps,
|
|
32
|
+
LozengeProps,
|
|
33
|
+
ModalBodyProps,
|
|
34
|
+
ModalFooterProps,
|
|
35
|
+
ModalHeaderProps,
|
|
36
|
+
ModalProps,
|
|
37
|
+
ModalTitleProps,
|
|
38
|
+
ModalTransitionProps,
|
|
39
|
+
ProgressBarProps,
|
|
40
|
+
ProgressTrackerProps,
|
|
41
|
+
RadioGroupProps,
|
|
42
|
+
RadioProps,
|
|
43
|
+
RangeProps,
|
|
44
|
+
SectionMessageActionProps,
|
|
45
|
+
SectionMessageProps,
|
|
46
|
+
SelectProps,
|
|
47
|
+
SpinnerProps,
|
|
48
|
+
StackProps,
|
|
49
|
+
TabListProps,
|
|
50
|
+
TabPanelProps,
|
|
51
|
+
TabProps,
|
|
52
|
+
TabsProps,
|
|
53
|
+
TagGroupProps,
|
|
54
|
+
TagProps,
|
|
55
|
+
TextAreaProps,
|
|
56
|
+
TextfieldProps,
|
|
57
|
+
ToggleProps,
|
|
58
|
+
TooltipProps,
|
|
59
|
+
ValidMessageProps,
|
|
60
60
|
} from './components/__generated__';
|