@atlaskit/forge-react-types 0.2.1 → 0.3.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 +6 -0
- package/dist/cjs/components/__generated__/types.codegen.js +5 -0
- package/dist/es2019/components/__generated__/types.codegen.js +1 -0
- package/dist/esm/components/__generated__/types.codegen.js +1 -0
- package/dist/types/components/__generated__/CheckboxProps.codegen.d.ts +4 -3
- package/dist/types/components/__generated__/RadioGroupProps.codegen.d.ts +4 -3
- package/dist/types/components/__generated__/RadioProps.codegen.d.ts +4 -3
- package/dist/types/components/__generated__/RangeProps.codegen.d.ts +4 -3
- package/dist/types/components/__generated__/SelectProps.codegen.d.ts +3 -3
- package/dist/types/components/__generated__/TextAreaProps.codegen.d.ts +4 -3
- package/dist/types/components/__generated__/TextfieldProps.codegen.d.ts +4 -3
- package/dist/types/components/__generated__/ToggleProps.codegen.d.ts +4 -3
- package/dist/types/components/__generated__/index.codegen.d.ts +9 -9
- package/dist/types/components/__generated__/types.codegen.d.ts +32 -0
- package/dist/types-ts4.5/components/__generated__/CheckboxProps.codegen.d.ts +4 -3
- package/dist/types-ts4.5/components/__generated__/RadioGroupProps.codegen.d.ts +4 -3
- package/dist/types-ts4.5/components/__generated__/RadioProps.codegen.d.ts +4 -3
- package/dist/types-ts4.5/components/__generated__/RangeProps.codegen.d.ts +4 -3
- package/dist/types-ts4.5/components/__generated__/SelectProps.codegen.d.ts +3 -3
- package/dist/types-ts4.5/components/__generated__/TextAreaProps.codegen.d.ts +4 -3
- package/dist/types-ts4.5/components/__generated__/TextfieldProps.codegen.d.ts +4 -3
- package/dist/types-ts4.5/components/__generated__/ToggleProps.codegen.d.ts +4 -3
- package/dist/types-ts4.5/components/__generated__/index.codegen.d.ts +9 -9
- package/dist/types-ts4.5/components/__generated__/types.codegen.d.ts +32 -0
- package/package.json +1 -1
- package/scripts/codegen/codeGenerator.ts +31 -13
- package/scripts/codegen/componentPropTypes.ts +29 -0
- package/src/components/__generated__/CheckboxProps.codegen.tsx +4 -3
- package/src/components/__generated__/RadioGroupProps.codegen.tsx +4 -3
- package/src/components/__generated__/RadioProps.codegen.tsx +4 -3
- package/src/components/__generated__/RangeProps.codegen.tsx +4 -3
- package/src/components/__generated__/SelectProps.codegen.tsx +3 -3
- package/src/components/__generated__/TextAreaProps.codegen.tsx +4 -3
- package/src/components/__generated__/TextfieldProps.codegen.tsx +5 -4
- package/src/components/__generated__/ToggleProps.codegen.tsx +4 -3
- package/src/components/__generated__/index.codegen.ts +9 -9
- package/src/components/__generated__/types.codegen.ts +33 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atlaskit/forge-react-types
|
|
2
2
|
|
|
3
|
+
## 0.3.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#74137](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/74137) [`7e2066b045f7`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/7e2066b045f7) - Update types for event handler
|
|
8
|
+
|
|
3
9
|
## 0.2.1
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -3,12 +3,13 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - CheckboxProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::c3f249f62fc1e2dab7bc6a21a0681633>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
-
* @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/checkbox/__generated__/index.partial.tsx <<SignedSource::
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/checkbox/__generated__/index.partial.tsx <<SignedSource::e85d1dd9754f25c100758622ff6d2d91>>
|
|
9
9
|
*/
|
|
10
10
|
import React from 'react';
|
|
11
11
|
import PlatformCheckbox from '@atlaskit/checkbox';
|
|
12
|
+
import type { EventHandlerProps } from './types.codegen';
|
|
12
13
|
type PlatformCheckboxProps = React.ComponentProps<typeof PlatformCheckbox>;
|
|
13
|
-
export type CheckboxProps = Pick<PlatformCheckboxProps, 'testId' | 'defaultChecked' | 'isChecked' | 'isIndeterminate' | 'label' | 'id' | 'isRequired' | 'isDisabled' | 'isInvalid' | 'onChange' | 'onBlur' | 'onFocus' | 'value' | 'aria-invalid' | 'aria-labelledby' | 'name'>;
|
|
14
|
+
export type CheckboxProps = Pick<PlatformCheckboxProps, 'testId' | 'defaultChecked' | 'isChecked' | 'isIndeterminate' | 'label' | 'id' | 'isRequired' | 'isDisabled' | 'isInvalid' | 'onChange' | 'onBlur' | 'onFocus' | 'value' | 'aria-invalid' | 'aria-labelledby' | 'name'> & Pick<EventHandlerProps, 'onChange' | 'onBlur' | 'onFocus'>;
|
|
14
15
|
export {};
|
|
@@ -3,12 +3,13 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - RadioGroupProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::f21dfcf68dcf1e2443af8b267b5a057f>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
-
* @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/radio/__generated__/radio-group.partial.tsx <<SignedSource::
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/radio/__generated__/radio-group.partial.tsx <<SignedSource::2cbedc883c6d0fdf8e7f443d9ea14eb1>>
|
|
9
9
|
*/
|
|
10
10
|
import React from 'react';
|
|
11
11
|
import { RadioGroup as PlatformRadioGroup } from '@atlaskit/radio';
|
|
12
|
+
import type { EventHandlerProps } from './types.codegen';
|
|
12
13
|
type PlatformRadioGroupProps = React.ComponentProps<typeof PlatformRadioGroup>;
|
|
13
|
-
export type RadioGroupProps = Pick<PlatformRadioGroupProps, 'defaultValue' | 'options' | 'onInvalid' | 'testId' | 'isRequired' | 'isDisabled' | 'isInvalid' | 'onChange' | 'value' | 'aria-labelledby' | 'name'>;
|
|
14
|
+
export type RadioGroupProps = Pick<PlatformRadioGroupProps, 'defaultValue' | 'options' | 'onInvalid' | 'testId' | 'isRequired' | 'isDisabled' | 'isInvalid' | 'onChange' | 'value' | 'aria-labelledby' | 'name'> & Pick<EventHandlerProps, 'onChange'>;
|
|
14
15
|
export {};
|
|
@@ -3,12 +3,13 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - RadioProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::18d92f885ea65e94fa46c10f531d5b42>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
-
* @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/radio/__generated__/index.partial.tsx <<SignedSource::
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/radio/__generated__/index.partial.tsx <<SignedSource::f8c9f83aa0faf7291e9446bec9e441d6>>
|
|
9
9
|
*/
|
|
10
10
|
import React from 'react';
|
|
11
11
|
import { Radio as PlatformRadio } from '@atlaskit/radio';
|
|
12
|
+
import type { EventHandlerProps } from './types.codegen';
|
|
12
13
|
type PlatformRadioProps = React.ComponentProps<typeof PlatformRadio>;
|
|
13
|
-
export type RadioProps = Pick<PlatformRadioProps, 'label' | 'testId' | 'isChecked' | 'ariaLabel' | 'onInvalid' | 'id' | 'isRequired' | 'isDisabled' | 'isInvalid' | 'onChange' | 'onBlur' | 'onFocus' | 'value' | 'aria-invalid' | 'aria-labelledby' | 'name'>;
|
|
14
|
+
export type RadioProps = Pick<PlatformRadioProps, 'label' | 'testId' | 'isChecked' | 'ariaLabel' | 'onInvalid' | 'id' | 'isRequired' | 'isDisabled' | 'isInvalid' | 'onChange' | 'onBlur' | 'onFocus' | 'value' | 'aria-invalid' | 'aria-labelledby' | 'name'> & Pick<EventHandlerProps, 'onChange' | 'onBlur' | 'onFocus'>;
|
|
14
15
|
export {};
|
|
@@ -3,12 +3,13 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - RangeProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::67e22cda61419468c91e120179019751>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
-
* @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/range/__generated__/index.partial.tsx <<SignedSource::
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/range/__generated__/index.partial.tsx <<SignedSource::da47c96a98423bdcf0e9c79c7e31854f>>
|
|
9
9
|
*/
|
|
10
10
|
import React from 'react';
|
|
11
11
|
import PlatformRange from '@atlaskit/range';
|
|
12
|
+
import type { EventHandlerProps } from './types.codegen';
|
|
12
13
|
type PlatformRangeProps = React.ComponentProps<typeof PlatformRange>;
|
|
13
|
-
export type RangeProps = Pick<PlatformRangeProps, 'defaultValue' | 'max' | 'min' | 'step' | 'testId' | 'onChange' | 'id' | 'isDisabled' | 'onBlur' | 'onFocus' | 'value' | 'aria-invalid' | 'aria-labelledby' | 'name'>;
|
|
14
|
+
export type RangeProps = Pick<PlatformRangeProps, 'defaultValue' | 'max' | 'min' | 'step' | 'testId' | 'onChange' | 'id' | 'isDisabled' | 'onBlur' | 'onFocus' | 'value' | 'aria-invalid' | 'aria-labelledby' | 'name'> & Pick<EventHandlerProps, 'onBlur' | 'onFocus'>;
|
|
14
15
|
export {};
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - SelectProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::15d2ba46804ab0a683383a0ba9cae564>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
-
* @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/select/__generated__/index.partial.tsx <<SignedSource::
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/select/__generated__/index.partial.tsx <<SignedSource::a826a4f7af8f06890432c9274aad7332>>
|
|
9
9
|
*/
|
|
10
10
|
import { SelectProps as PlatformSelectProps } from '@atlaskit/select';
|
|
11
11
|
export type SelectProps = Pick<PlatformSelectProps<any, true | false>, 'spacing' | 'appearance' | 'testId' | 'autoFocus' | 'defaultValue' | 'closeMenuOnSelect' | 'inputValue' | 'inputId' | 'isClearable' | 'isLoading' | 'isMulti' | 'isSearchable' | 'menuIsOpen' | 'onInputChange' | 'options' | 'placeholder' | 'onChange' | 'id' | 'isDisabled' | 'isInvalid' | 'onBlur' | 'onFocus' | 'value' | 'aria-invalid' | 'aria-labelledby' | 'name'> & {
|
|
12
|
-
isRequired
|
|
12
|
+
isRequired?: boolean;
|
|
13
13
|
};
|
|
@@ -3,12 +3,13 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - TextAreaProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::b8642225dd7fb8f95958aedb90aa5753>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
-
* @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/textarea/__generated__/index.partial.tsx <<SignedSource::
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/textarea/__generated__/index.partial.tsx <<SignedSource::93a565327cd9ef8ff96aee7b16324589>>
|
|
9
9
|
*/
|
|
10
10
|
import React from 'react';
|
|
11
11
|
import PlatformTextarea from '@atlaskit/textarea';
|
|
12
|
+
import type { EventHandlerProps } from './types.codegen';
|
|
12
13
|
type PlatformTextareaProps = React.ComponentProps<typeof PlatformTextarea>;
|
|
13
|
-
export type TextAreaProps = Pick<PlatformTextareaProps, 'appearance' | 'defaultValue' | 'isCompact' | 'isMonospaced' | 'isReadOnly' | 'maxHeight' | 'minimumRows' | 'placeholder' | 'resize' | 'spellCheck' | 'testId' | 'maxLength' | 'minLength' | 'id' | 'isRequired' | 'isDisabled' | 'isInvalid' | 'onChange' | 'onBlur' | 'onFocus' | 'value' | 'aria-invalid' | 'aria-labelledby' | 'name'>;
|
|
14
|
+
export type TextAreaProps = Pick<PlatformTextareaProps, 'appearance' | 'defaultValue' | 'isCompact' | 'isMonospaced' | 'isReadOnly' | 'maxHeight' | 'minimumRows' | 'placeholder' | 'resize' | 'spellCheck' | 'testId' | 'maxLength' | 'minLength' | 'id' | 'isRequired' | 'isDisabled' | 'isInvalid' | 'onChange' | 'onBlur' | 'onFocus' | 'value' | 'aria-invalid' | 'aria-labelledby' | 'name'> & Pick<EventHandlerProps, 'onChange' | 'onBlur' | 'onFocus'>;
|
|
14
15
|
export {};
|
|
@@ -3,12 +3,13 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - TextfieldProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::77a5f574841fda41b36a73e5427d6aa0>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
-
* @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/textfield/__generated__/index.partial.tsx <<SignedSource::
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/textfield/__generated__/index.partial.tsx <<SignedSource::3bcb2c74465d3be32f20d7ee141d0f9a>>
|
|
9
9
|
*/
|
|
10
10
|
import React from 'react';
|
|
11
11
|
import PlatformTextfield from '@atlaskit/textfield';
|
|
12
|
+
import type { EventHandlerProps } from './types.codegen';
|
|
12
13
|
type PlatformTextfieldProps = React.ComponentProps<typeof PlatformTextfield>;
|
|
13
|
-
export type TextfieldProps = Pick<PlatformTextfieldProps, 'appearance' | 'elemAfterInput' | 'elemBeforeInput' | 'isCompact' | 'isReadOnly' | 'isMonospaced' | 'placeholder' | 'testId' | 'width' | 'type' | 'defaultValue' | 'min' | 'max' | 'maxLength' | 'minLength' | 'id' | 'isRequired' | 'isDisabled' | 'isInvalid' | 'onChange' | 'onBlur' | 'onFocus' | 'value' | 'aria-invalid' | 'aria-labelledby' | 'name'>;
|
|
14
|
+
export type TextfieldProps = Pick<PlatformTextfieldProps, 'appearance' | 'elemAfterInput' | 'elemBeforeInput' | 'isCompact' | 'isReadOnly' | 'isMonospaced' | 'placeholder' | 'testId' | 'width' | 'type' | 'defaultValue' | 'min' | 'max' | 'maxLength' | 'minLength' | 'pattern' | 'id' | 'isRequired' | 'isDisabled' | 'isInvalid' | 'onChange' | 'onBlur' | 'onFocus' | 'value' | 'aria-invalid' | 'aria-labelledby' | 'name'> & Pick<EventHandlerProps, 'onChange' | 'onBlur' | 'onFocus'>;
|
|
14
15
|
export {};
|
|
@@ -3,12 +3,13 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - ToggleProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::9934170c1bfa2f8647584b8098d373e5>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
-
* @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/toggle/__generated__/index.partial.tsx <<SignedSource::
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/toggle/__generated__/index.partial.tsx <<SignedSource::15954687b51568b070d3d6687a80e7af>>
|
|
9
9
|
*/
|
|
10
10
|
import React from 'react';
|
|
11
11
|
import PlatformToggle from '@atlaskit/toggle';
|
|
12
|
+
import type { EventHandlerProps } from './types.codegen';
|
|
12
13
|
type PlatformToggleProps = React.ComponentProps<typeof PlatformToggle>;
|
|
13
|
-
export type ToggleProps = Pick<PlatformToggleProps, 'size' | 'testId' | 'defaultChecked' | 'isChecked' | 'label' | 'id' | 'isDisabled' | 'onChange' | 'onBlur' | 'onFocus' | 'value' | 'name'>;
|
|
14
|
+
export type ToggleProps = Pick<PlatformToggleProps, 'size' | 'testId' | 'defaultChecked' | 'isChecked' | 'label' | 'id' | 'isDisabled' | 'onChange' | 'onBlur' | 'onFocus' | 'value' | 'name'> & Pick<EventHandlerProps, 'onChange' | 'onBlur' | 'onFocus'>;
|
|
14
15
|
export {};
|
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Index file for component prop types
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::7aadd96e19946571168b6a8dac3d9a84>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
8
|
* @codegenDependency BadgeProps.codegen.tsx <<SignedSource::4759a95fede44eb7af89a4ada26252e9>>
|
|
9
9
|
* @codegenDependency BleedProps.codegen.tsx <<SignedSource::376f3f60ae6c1912e80b568958802fb5>>
|
|
10
10
|
* @codegenDependency BoxProps.codegen.tsx <<SignedSource::4ced3eed4de7f562539dd8a769a6871d>>
|
|
11
11
|
* @codegenDependency ButtonGroupProps.codegen.tsx <<SignedSource::a529cee05261919cb2eccacb9837aed0>>
|
|
12
12
|
* @codegenDependency ButtonProps.codegen.tsx <<SignedSource::cc45a3581574c0496c410cbba542fa50>>
|
|
13
|
-
* @codegenDependency CheckboxProps.codegen.tsx <<SignedSource::
|
|
13
|
+
* @codegenDependency CheckboxProps.codegen.tsx <<SignedSource::64e2dd8eb8b122646e0a11c5a029a4d6>>
|
|
14
14
|
* @codegenDependency CodeBlockProps.codegen.tsx <<SignedSource::54097e23c683ba0621cb0c224cbdee7a>>
|
|
15
15
|
* @codegenDependency CodeProps.codegen.tsx <<SignedSource::bc1c608d36eb55ac7c4eb0545c4beda3>>
|
|
16
16
|
* @codegenDependency DatePickerProps.codegen.tsx <<SignedSource::91eb5f1515fdb028c2916d07b59ea49a>>
|
|
@@ -38,12 +38,12 @@
|
|
|
38
38
|
* @codegenDependency ModalTransitionProps.codegen.tsx <<SignedSource::eae5bf2abf85a1a39c377b0da0f7a1ed>>
|
|
39
39
|
* @codegenDependency ProgressBarProps.codegen.tsx <<SignedSource::b27527e77286c102eac2a4aa3ed6585a>>
|
|
40
40
|
* @codegenDependency ProgressTrackerProps.codegen.tsx <<SignedSource::75a7d6d27ff905f2e1ed85668749aec0>>
|
|
41
|
-
* @codegenDependency RadioGroupProps.codegen.tsx <<SignedSource::
|
|
42
|
-
* @codegenDependency RadioProps.codegen.tsx <<SignedSource::
|
|
43
|
-
* @codegenDependency RangeProps.codegen.tsx <<SignedSource::
|
|
41
|
+
* @codegenDependency RadioGroupProps.codegen.tsx <<SignedSource::1ad039c8add4a5cbbbfcb0297330f608>>
|
|
42
|
+
* @codegenDependency RadioProps.codegen.tsx <<SignedSource::96e4c026daaf1aec3bf68aea545556d7>>
|
|
43
|
+
* @codegenDependency RangeProps.codegen.tsx <<SignedSource::4cb6e9003e3ad70a198b218708b324a4>>
|
|
44
44
|
* @codegenDependency SectionMessageActionProps.codegen.tsx <<SignedSource::190b8417f32673d5e54cd206ea0c76d0>>
|
|
45
45
|
* @codegenDependency SectionMessageProps.codegen.tsx <<SignedSource::dad8a3d213b5863972ea115389c33fdc>>
|
|
46
|
-
* @codegenDependency SelectProps.codegen.tsx <<SignedSource::
|
|
46
|
+
* @codegenDependency SelectProps.codegen.tsx <<SignedSource::5c1824fd709a27eb74098e537e7f3541>>
|
|
47
47
|
* @codegenDependency SpinnerProps.codegen.tsx <<SignedSource::602b1cc246e020dd7f32222a4d6bbb6e>>
|
|
48
48
|
* @codegenDependency StackProps.codegen.tsx <<SignedSource::11eaa0ce90d5dd36a8ca57a03f01afe6>>
|
|
49
49
|
* @codegenDependency TabListProps.codegen.tsx <<SignedSource::ba3257cc8f382811ae1630adc50c4fac>>
|
|
@@ -52,9 +52,9 @@
|
|
|
52
52
|
* @codegenDependency TabsProps.codegen.tsx <<SignedSource::014a7bfcca5304d7bb613a53d9117d01>>
|
|
53
53
|
* @codegenDependency TagGroupProps.codegen.tsx <<SignedSource::e8e2bd37a4b5175ff1bf296b465ef727>>
|
|
54
54
|
* @codegenDependency TagProps.codegen.tsx <<SignedSource::86aff9005e1db842009ece108d61a6b1>>
|
|
55
|
-
* @codegenDependency TextAreaProps.codegen.tsx <<SignedSource::
|
|
56
|
-
* @codegenDependency TextfieldProps.codegen.tsx <<SignedSource::
|
|
57
|
-
* @codegenDependency ToggleProps.codegen.tsx <<SignedSource::
|
|
55
|
+
* @codegenDependency TextAreaProps.codegen.tsx <<SignedSource::f79b76692f21e787a29f04f379710f32>>
|
|
56
|
+
* @codegenDependency TextfieldProps.codegen.tsx <<SignedSource::f029b18bd851bfca81384b61b12ba04b>>
|
|
57
|
+
* @codegenDependency ToggleProps.codegen.tsx <<SignedSource::4cf587b7a202a52ddb50db0157c2b0e5>>
|
|
58
58
|
* @codegenDependency TooltipProps.codegen.tsx <<SignedSource::aa2be4a5cb38eecf50dd652836a3e6ad>>
|
|
59
59
|
* @codegenDependency ValidMessageProps.codegen.tsx <<SignedSource::3498c77c19604ab5b3b2800fee3e75b3>>
|
|
60
60
|
*/
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
*
|
|
4
|
+
* Shared types file from UIKit 2
|
|
5
|
+
*
|
|
6
|
+
* @codegen <<SignedSource::876fcb93a6505f3c3d8febc6657b1016>>
|
|
7
|
+
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/types.ts <<SignedSource::4c43233e6c4a02225fbb326afeddd9f7>>
|
|
9
|
+
*/
|
|
10
|
+
export type SerialisableEvent = {
|
|
11
|
+
bubbles: boolean;
|
|
12
|
+
cancelable: boolean;
|
|
13
|
+
defaultPrevented: boolean;
|
|
14
|
+
eventPhase: number;
|
|
15
|
+
isTrusted: boolean;
|
|
16
|
+
nativeEvent: any;
|
|
17
|
+
target: {
|
|
18
|
+
value?: any;
|
|
19
|
+
checked?: boolean;
|
|
20
|
+
name?: string;
|
|
21
|
+
id?: string;
|
|
22
|
+
tagName?: string;
|
|
23
|
+
type?: string;
|
|
24
|
+
};
|
|
25
|
+
timeStamp: number;
|
|
26
|
+
type: string;
|
|
27
|
+
};
|
|
28
|
+
export type EventHandlerProps = {
|
|
29
|
+
onChange?: (event: SerialisableEvent) => void;
|
|
30
|
+
onBlur?: (event: SerialisableEvent) => void;
|
|
31
|
+
onFocus?: (event: SerialisableEvent) => void;
|
|
32
|
+
};
|
|
@@ -3,12 +3,13 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - CheckboxProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::c3f249f62fc1e2dab7bc6a21a0681633>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
-
* @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/checkbox/__generated__/index.partial.tsx <<SignedSource::
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/checkbox/__generated__/index.partial.tsx <<SignedSource::e85d1dd9754f25c100758622ff6d2d91>>
|
|
9
9
|
*/
|
|
10
10
|
import React from 'react';
|
|
11
11
|
import PlatformCheckbox from '@atlaskit/checkbox';
|
|
12
|
+
import type { EventHandlerProps } from './types.codegen';
|
|
12
13
|
type PlatformCheckboxProps = React.ComponentProps<typeof PlatformCheckbox>;
|
|
13
|
-
export type CheckboxProps = Pick<PlatformCheckboxProps, 'testId' | 'defaultChecked' | 'isChecked' | 'isIndeterminate' | 'label' | 'id' | 'isRequired' | 'isDisabled' | 'isInvalid' | 'onChange' | 'onBlur' | 'onFocus' | 'value' | 'aria-invalid' | 'aria-labelledby' | 'name'>;
|
|
14
|
+
export type CheckboxProps = Pick<PlatformCheckboxProps, 'testId' | 'defaultChecked' | 'isChecked' | 'isIndeterminate' | 'label' | 'id' | 'isRequired' | 'isDisabled' | 'isInvalid' | 'onChange' | 'onBlur' | 'onFocus' | 'value' | 'aria-invalid' | 'aria-labelledby' | 'name'> & Pick<EventHandlerProps, 'onChange' | 'onBlur' | 'onFocus'>;
|
|
14
15
|
export {};
|
|
@@ -3,12 +3,13 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - RadioGroupProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::f21dfcf68dcf1e2443af8b267b5a057f>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
-
* @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/radio/__generated__/radio-group.partial.tsx <<SignedSource::
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/radio/__generated__/radio-group.partial.tsx <<SignedSource::2cbedc883c6d0fdf8e7f443d9ea14eb1>>
|
|
9
9
|
*/
|
|
10
10
|
import React from 'react';
|
|
11
11
|
import { RadioGroup as PlatformRadioGroup } from '@atlaskit/radio';
|
|
12
|
+
import type { EventHandlerProps } from './types.codegen';
|
|
12
13
|
type PlatformRadioGroupProps = React.ComponentProps<typeof PlatformRadioGroup>;
|
|
13
|
-
export type RadioGroupProps = Pick<PlatformRadioGroupProps, 'defaultValue' | 'options' | 'onInvalid' | 'testId' | 'isRequired' | 'isDisabled' | 'isInvalid' | 'onChange' | 'value' | 'aria-labelledby' | 'name'>;
|
|
14
|
+
export type RadioGroupProps = Pick<PlatformRadioGroupProps, 'defaultValue' | 'options' | 'onInvalid' | 'testId' | 'isRequired' | 'isDisabled' | 'isInvalid' | 'onChange' | 'value' | 'aria-labelledby' | 'name'> & Pick<EventHandlerProps, 'onChange'>;
|
|
14
15
|
export {};
|
|
@@ -3,12 +3,13 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - RadioProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::18d92f885ea65e94fa46c10f531d5b42>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
-
* @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/radio/__generated__/index.partial.tsx <<SignedSource::
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/radio/__generated__/index.partial.tsx <<SignedSource::f8c9f83aa0faf7291e9446bec9e441d6>>
|
|
9
9
|
*/
|
|
10
10
|
import React from 'react';
|
|
11
11
|
import { Radio as PlatformRadio } from '@atlaskit/radio';
|
|
12
|
+
import type { EventHandlerProps } from './types.codegen';
|
|
12
13
|
type PlatformRadioProps = React.ComponentProps<typeof PlatformRadio>;
|
|
13
|
-
export type RadioProps = Pick<PlatformRadioProps, 'label' | 'testId' | 'isChecked' | 'ariaLabel' | 'onInvalid' | 'id' | 'isRequired' | 'isDisabled' | 'isInvalid' | 'onChange' | 'onBlur' | 'onFocus' | 'value' | 'aria-invalid' | 'aria-labelledby' | 'name'>;
|
|
14
|
+
export type RadioProps = Pick<PlatformRadioProps, 'label' | 'testId' | 'isChecked' | 'ariaLabel' | 'onInvalid' | 'id' | 'isRequired' | 'isDisabled' | 'isInvalid' | 'onChange' | 'onBlur' | 'onFocus' | 'value' | 'aria-invalid' | 'aria-labelledby' | 'name'> & Pick<EventHandlerProps, 'onChange' | 'onBlur' | 'onFocus'>;
|
|
14
15
|
export {};
|
|
@@ -3,12 +3,13 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - RangeProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::67e22cda61419468c91e120179019751>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
-
* @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/range/__generated__/index.partial.tsx <<SignedSource::
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/range/__generated__/index.partial.tsx <<SignedSource::da47c96a98423bdcf0e9c79c7e31854f>>
|
|
9
9
|
*/
|
|
10
10
|
import React from 'react';
|
|
11
11
|
import PlatformRange from '@atlaskit/range';
|
|
12
|
+
import type { EventHandlerProps } from './types.codegen';
|
|
12
13
|
type PlatformRangeProps = React.ComponentProps<typeof PlatformRange>;
|
|
13
|
-
export type RangeProps = Pick<PlatformRangeProps, 'defaultValue' | 'max' | 'min' | 'step' | 'testId' | 'onChange' | 'id' | 'isDisabled' | 'onBlur' | 'onFocus' | 'value' | 'aria-invalid' | 'aria-labelledby' | 'name'>;
|
|
14
|
+
export type RangeProps = Pick<PlatformRangeProps, 'defaultValue' | 'max' | 'min' | 'step' | 'testId' | 'onChange' | 'id' | 'isDisabled' | 'onBlur' | 'onFocus' | 'value' | 'aria-invalid' | 'aria-labelledby' | 'name'> & Pick<EventHandlerProps, 'onBlur' | 'onFocus'>;
|
|
14
15
|
export {};
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - SelectProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::15d2ba46804ab0a683383a0ba9cae564>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
-
* @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/select/__generated__/index.partial.tsx <<SignedSource::
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/select/__generated__/index.partial.tsx <<SignedSource::a826a4f7af8f06890432c9274aad7332>>
|
|
9
9
|
*/
|
|
10
10
|
import { SelectProps as PlatformSelectProps } from '@atlaskit/select';
|
|
11
11
|
export type SelectProps = Pick<PlatformSelectProps<any, true | false>, 'spacing' | 'appearance' | 'testId' | 'autoFocus' | 'defaultValue' | 'closeMenuOnSelect' | 'inputValue' | 'inputId' | 'isClearable' | 'isLoading' | 'isMulti' | 'isSearchable' | 'menuIsOpen' | 'onInputChange' | 'options' | 'placeholder' | 'onChange' | 'id' | 'isDisabled' | 'isInvalid' | 'onBlur' | 'onFocus' | 'value' | 'aria-invalid' | 'aria-labelledby' | 'name'> & {
|
|
12
|
-
isRequired
|
|
12
|
+
isRequired?: boolean;
|
|
13
13
|
};
|
|
@@ -3,12 +3,13 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - TextAreaProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::b8642225dd7fb8f95958aedb90aa5753>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
-
* @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/textarea/__generated__/index.partial.tsx <<SignedSource::
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/textarea/__generated__/index.partial.tsx <<SignedSource::93a565327cd9ef8ff96aee7b16324589>>
|
|
9
9
|
*/
|
|
10
10
|
import React from 'react';
|
|
11
11
|
import PlatformTextarea from '@atlaskit/textarea';
|
|
12
|
+
import type { EventHandlerProps } from './types.codegen';
|
|
12
13
|
type PlatformTextareaProps = React.ComponentProps<typeof PlatformTextarea>;
|
|
13
|
-
export type TextAreaProps = Pick<PlatformTextareaProps, 'appearance' | 'defaultValue' | 'isCompact' | 'isMonospaced' | 'isReadOnly' | 'maxHeight' | 'minimumRows' | 'placeholder' | 'resize' | 'spellCheck' | 'testId' | 'maxLength' | 'minLength' | 'id' | 'isRequired' | 'isDisabled' | 'isInvalid' | 'onChange' | 'onBlur' | 'onFocus' | 'value' | 'aria-invalid' | 'aria-labelledby' | 'name'>;
|
|
14
|
+
export type TextAreaProps = Pick<PlatformTextareaProps, 'appearance' | 'defaultValue' | 'isCompact' | 'isMonospaced' | 'isReadOnly' | 'maxHeight' | 'minimumRows' | 'placeholder' | 'resize' | 'spellCheck' | 'testId' | 'maxLength' | 'minLength' | 'id' | 'isRequired' | 'isDisabled' | 'isInvalid' | 'onChange' | 'onBlur' | 'onFocus' | 'value' | 'aria-invalid' | 'aria-labelledby' | 'name'> & Pick<EventHandlerProps, 'onChange' | 'onBlur' | 'onFocus'>;
|
|
14
15
|
export {};
|
|
@@ -3,12 +3,13 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - TextfieldProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::77a5f574841fda41b36a73e5427d6aa0>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
-
* @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/textfield/__generated__/index.partial.tsx <<SignedSource::
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/textfield/__generated__/index.partial.tsx <<SignedSource::3bcb2c74465d3be32f20d7ee141d0f9a>>
|
|
9
9
|
*/
|
|
10
10
|
import React from 'react';
|
|
11
11
|
import PlatformTextfield from '@atlaskit/textfield';
|
|
12
|
+
import type { EventHandlerProps } from './types.codegen';
|
|
12
13
|
type PlatformTextfieldProps = React.ComponentProps<typeof PlatformTextfield>;
|
|
13
|
-
export type TextfieldProps = Pick<PlatformTextfieldProps, 'appearance' | 'elemAfterInput' | 'elemBeforeInput' | 'isCompact' | 'isReadOnly' | 'isMonospaced' | 'placeholder' | 'testId' | 'width' | 'type' | 'defaultValue' | 'min' | 'max' | 'maxLength' | 'minLength' | 'id' | 'isRequired' | 'isDisabled' | 'isInvalid' | 'onChange' | 'onBlur' | 'onFocus' | 'value' | 'aria-invalid' | 'aria-labelledby' | 'name'>;
|
|
14
|
+
export type TextfieldProps = Pick<PlatformTextfieldProps, 'appearance' | 'elemAfterInput' | 'elemBeforeInput' | 'isCompact' | 'isReadOnly' | 'isMonospaced' | 'placeholder' | 'testId' | 'width' | 'type' | 'defaultValue' | 'min' | 'max' | 'maxLength' | 'minLength' | 'pattern' | 'id' | 'isRequired' | 'isDisabled' | 'isInvalid' | 'onChange' | 'onBlur' | 'onFocus' | 'value' | 'aria-invalid' | 'aria-labelledby' | 'name'> & Pick<EventHandlerProps, 'onChange' | 'onBlur' | 'onFocus'>;
|
|
14
15
|
export {};
|
|
@@ -3,12 +3,13 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - ToggleProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::9934170c1bfa2f8647584b8098d373e5>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
-
* @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/toggle/__generated__/index.partial.tsx <<SignedSource::
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/toggle/__generated__/index.partial.tsx <<SignedSource::15954687b51568b070d3d6687a80e7af>>
|
|
9
9
|
*/
|
|
10
10
|
import React from 'react';
|
|
11
11
|
import PlatformToggle from '@atlaskit/toggle';
|
|
12
|
+
import type { EventHandlerProps } from './types.codegen';
|
|
12
13
|
type PlatformToggleProps = React.ComponentProps<typeof PlatformToggle>;
|
|
13
|
-
export type ToggleProps = Pick<PlatformToggleProps, 'size' | 'testId' | 'defaultChecked' | 'isChecked' | 'label' | 'id' | 'isDisabled' | 'onChange' | 'onBlur' | 'onFocus' | 'value' | 'name'>;
|
|
14
|
+
export type ToggleProps = Pick<PlatformToggleProps, 'size' | 'testId' | 'defaultChecked' | 'isChecked' | 'label' | 'id' | 'isDisabled' | 'onChange' | 'onBlur' | 'onFocus' | 'value' | 'name'> & Pick<EventHandlerProps, 'onChange' | 'onBlur' | 'onFocus'>;
|
|
14
15
|
export {};
|
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Index file for component prop types
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::7aadd96e19946571168b6a8dac3d9a84>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
8
|
* @codegenDependency BadgeProps.codegen.tsx <<SignedSource::4759a95fede44eb7af89a4ada26252e9>>
|
|
9
9
|
* @codegenDependency BleedProps.codegen.tsx <<SignedSource::376f3f60ae6c1912e80b568958802fb5>>
|
|
10
10
|
* @codegenDependency BoxProps.codegen.tsx <<SignedSource::4ced3eed4de7f562539dd8a769a6871d>>
|
|
11
11
|
* @codegenDependency ButtonGroupProps.codegen.tsx <<SignedSource::a529cee05261919cb2eccacb9837aed0>>
|
|
12
12
|
* @codegenDependency ButtonProps.codegen.tsx <<SignedSource::cc45a3581574c0496c410cbba542fa50>>
|
|
13
|
-
* @codegenDependency CheckboxProps.codegen.tsx <<SignedSource::
|
|
13
|
+
* @codegenDependency CheckboxProps.codegen.tsx <<SignedSource::64e2dd8eb8b122646e0a11c5a029a4d6>>
|
|
14
14
|
* @codegenDependency CodeBlockProps.codegen.tsx <<SignedSource::54097e23c683ba0621cb0c224cbdee7a>>
|
|
15
15
|
* @codegenDependency CodeProps.codegen.tsx <<SignedSource::bc1c608d36eb55ac7c4eb0545c4beda3>>
|
|
16
16
|
* @codegenDependency DatePickerProps.codegen.tsx <<SignedSource::91eb5f1515fdb028c2916d07b59ea49a>>
|
|
@@ -38,12 +38,12 @@
|
|
|
38
38
|
* @codegenDependency ModalTransitionProps.codegen.tsx <<SignedSource::eae5bf2abf85a1a39c377b0da0f7a1ed>>
|
|
39
39
|
* @codegenDependency ProgressBarProps.codegen.tsx <<SignedSource::b27527e77286c102eac2a4aa3ed6585a>>
|
|
40
40
|
* @codegenDependency ProgressTrackerProps.codegen.tsx <<SignedSource::75a7d6d27ff905f2e1ed85668749aec0>>
|
|
41
|
-
* @codegenDependency RadioGroupProps.codegen.tsx <<SignedSource::
|
|
42
|
-
* @codegenDependency RadioProps.codegen.tsx <<SignedSource::
|
|
43
|
-
* @codegenDependency RangeProps.codegen.tsx <<SignedSource::
|
|
41
|
+
* @codegenDependency RadioGroupProps.codegen.tsx <<SignedSource::1ad039c8add4a5cbbbfcb0297330f608>>
|
|
42
|
+
* @codegenDependency RadioProps.codegen.tsx <<SignedSource::96e4c026daaf1aec3bf68aea545556d7>>
|
|
43
|
+
* @codegenDependency RangeProps.codegen.tsx <<SignedSource::4cb6e9003e3ad70a198b218708b324a4>>
|
|
44
44
|
* @codegenDependency SectionMessageActionProps.codegen.tsx <<SignedSource::190b8417f32673d5e54cd206ea0c76d0>>
|
|
45
45
|
* @codegenDependency SectionMessageProps.codegen.tsx <<SignedSource::dad8a3d213b5863972ea115389c33fdc>>
|
|
46
|
-
* @codegenDependency SelectProps.codegen.tsx <<SignedSource::
|
|
46
|
+
* @codegenDependency SelectProps.codegen.tsx <<SignedSource::5c1824fd709a27eb74098e537e7f3541>>
|
|
47
47
|
* @codegenDependency SpinnerProps.codegen.tsx <<SignedSource::602b1cc246e020dd7f32222a4d6bbb6e>>
|
|
48
48
|
* @codegenDependency StackProps.codegen.tsx <<SignedSource::11eaa0ce90d5dd36a8ca57a03f01afe6>>
|
|
49
49
|
* @codegenDependency TabListProps.codegen.tsx <<SignedSource::ba3257cc8f382811ae1630adc50c4fac>>
|
|
@@ -52,9 +52,9 @@
|
|
|
52
52
|
* @codegenDependency TabsProps.codegen.tsx <<SignedSource::014a7bfcca5304d7bb613a53d9117d01>>
|
|
53
53
|
* @codegenDependency TagGroupProps.codegen.tsx <<SignedSource::e8e2bd37a4b5175ff1bf296b465ef727>>
|
|
54
54
|
* @codegenDependency TagProps.codegen.tsx <<SignedSource::86aff9005e1db842009ece108d61a6b1>>
|
|
55
|
-
* @codegenDependency TextAreaProps.codegen.tsx <<SignedSource::
|
|
56
|
-
* @codegenDependency TextfieldProps.codegen.tsx <<SignedSource::
|
|
57
|
-
* @codegenDependency ToggleProps.codegen.tsx <<SignedSource::
|
|
55
|
+
* @codegenDependency TextAreaProps.codegen.tsx <<SignedSource::f79b76692f21e787a29f04f379710f32>>
|
|
56
|
+
* @codegenDependency TextfieldProps.codegen.tsx <<SignedSource::f029b18bd851bfca81384b61b12ba04b>>
|
|
57
|
+
* @codegenDependency ToggleProps.codegen.tsx <<SignedSource::4cf587b7a202a52ddb50db0157c2b0e5>>
|
|
58
58
|
* @codegenDependency TooltipProps.codegen.tsx <<SignedSource::aa2be4a5cb38eecf50dd652836a3e6ad>>
|
|
59
59
|
* @codegenDependency ValidMessageProps.codegen.tsx <<SignedSource::3498c77c19604ab5b3b2800fee3e75b3>>
|
|
60
60
|
*/
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
*
|
|
4
|
+
* Shared types file from UIKit 2
|
|
5
|
+
*
|
|
6
|
+
* @codegen <<SignedSource::876fcb93a6505f3c3d8febc6657b1016>>
|
|
7
|
+
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/types.ts <<SignedSource::4c43233e6c4a02225fbb326afeddd9f7>>
|
|
9
|
+
*/
|
|
10
|
+
export type SerialisableEvent = {
|
|
11
|
+
bubbles: boolean;
|
|
12
|
+
cancelable: boolean;
|
|
13
|
+
defaultPrevented: boolean;
|
|
14
|
+
eventPhase: number;
|
|
15
|
+
isTrusted: boolean;
|
|
16
|
+
nativeEvent: any;
|
|
17
|
+
target: {
|
|
18
|
+
value?: any;
|
|
19
|
+
checked?: boolean;
|
|
20
|
+
name?: string;
|
|
21
|
+
id?: string;
|
|
22
|
+
tagName?: string;
|
|
23
|
+
type?: string;
|
|
24
|
+
};
|
|
25
|
+
timeStamp: number;
|
|
26
|
+
type: string;
|
|
27
|
+
};
|
|
28
|
+
export type EventHandlerProps = {
|
|
29
|
+
onChange?: (event: SerialisableEvent) => void;
|
|
30
|
+
onBlur?: (event: SerialisableEvent) => void;
|
|
31
|
+
onFocus?: (event: SerialisableEvent) => void;
|
|
32
|
+
};
|
package/package.json
CHANGED
|
@@ -125,24 +125,37 @@ class ImportDeclarationProxy {
|
|
|
125
125
|
}
|
|
126
126
|
|
|
127
127
|
public getText() {
|
|
128
|
+
const code = this.base.getText();
|
|
129
|
+
const match = code.match(
|
|
130
|
+
/^(import |import type ){(.+)} from ['"](.+)['"];$/,
|
|
131
|
+
);
|
|
132
|
+
if (!match) {
|
|
133
|
+
return this.base.getText();
|
|
134
|
+
}
|
|
135
|
+
let [_, importStatement, importedNames, packageName] = match;
|
|
136
|
+
importedNames = importedNames.trim();
|
|
137
|
+
|
|
138
|
+
if (isSharedUIKit2TypesImport(this.base)) {
|
|
139
|
+
packageName = './types.codegen';
|
|
140
|
+
}
|
|
128
141
|
if (this.removedNamedImports.size > 0) {
|
|
129
|
-
|
|
130
|
-
const matches = code.match(
|
|
131
|
-
/^(import |import type ){(.+)} from \'(.+)\';$/,
|
|
132
|
-
)!;
|
|
133
|
-
const importedNames = matches[2]!
|
|
142
|
+
importedNames = importedNames!
|
|
134
143
|
.split(',')
|
|
135
144
|
.map((text) => text.trim())
|
|
136
|
-
.filter((text) => !this.removedNamedImports.has(text))
|
|
137
|
-
|
|
138
|
-
return `${matches[1]}{ ${importedNames.join(', ')} } from '${
|
|
139
|
-
matches[3]
|
|
140
|
-
}';`;
|
|
145
|
+
.filter((text) => !this.removedNamedImports.has(text))
|
|
146
|
+
.join(', ');
|
|
141
147
|
}
|
|
142
|
-
return
|
|
148
|
+
return `${importStatement}{ ${importedNames} } from '${packageName}';`;
|
|
143
149
|
}
|
|
144
150
|
}
|
|
145
151
|
|
|
152
|
+
const isSharedUIKit2TypesImport = (importDeclaration: ImportDeclaration) => {
|
|
153
|
+
return (
|
|
154
|
+
importDeclaration.isTypeOnly() &&
|
|
155
|
+
importDeclaration.getModuleSpecifierValue() === '../../types'
|
|
156
|
+
);
|
|
157
|
+
};
|
|
158
|
+
|
|
146
159
|
const extractImportDeclarations = (
|
|
147
160
|
sourceFile: SourceFile,
|
|
148
161
|
componentPropSymbol: Symbol,
|
|
@@ -161,9 +174,14 @@ const extractImportDeclarations = (
|
|
|
161
174
|
.getImportDeclarations()
|
|
162
175
|
.filter((declaration) => {
|
|
163
176
|
const moduleSpecifier = declaration.getModuleSpecifierValue();
|
|
164
|
-
// only keep dependencies from
|
|
177
|
+
// only keep dependencies from
|
|
178
|
+
// - @atlaskit
|
|
179
|
+
// - react
|
|
180
|
+
// - or '../../types'
|
|
165
181
|
return (
|
|
166
|
-
moduleSpecifier.startsWith('@atlaskit/') ||
|
|
182
|
+
moduleSpecifier.startsWith('@atlaskit/') ||
|
|
183
|
+
moduleSpecifier === 'react' ||
|
|
184
|
+
isSharedUIKit2TypesImport(declaration)
|
|
167
185
|
);
|
|
168
186
|
})
|
|
169
187
|
.reduce<ImportDeclarationProxy[]>((declarations, declaration) => {
|
|
@@ -228,6 +228,32 @@ const updatePackageJsonWithADSComponentDependencies = (
|
|
|
228
228
|
fs.writeFileSync(packageJsonPath, JSON.stringify(packageJson, null, 2));
|
|
229
229
|
};
|
|
230
230
|
|
|
231
|
+
/**
|
|
232
|
+
* This copies types file from the types file in UIKit2-codegen
|
|
233
|
+
* to __generated__ folder.
|
|
234
|
+
*/
|
|
235
|
+
const generateSharedTypesFile = (componentOutputDir: string) => {
|
|
236
|
+
// eslint-disable-next-line no-console
|
|
237
|
+
console.log('Generating shared types file');
|
|
238
|
+
|
|
239
|
+
const uiKit2TypesFile = require.resolve(
|
|
240
|
+
'@atlassian/forge-ui/src/components/UIKit2-codegen/types',
|
|
241
|
+
);
|
|
242
|
+
|
|
243
|
+
const signedSourceCode = createSignedArtifact(
|
|
244
|
+
fs.readFileSync(uiKit2TypesFile, 'utf8'),
|
|
245
|
+
'yarn workspace @atlaskit/forge-react-types codegen',
|
|
246
|
+
{
|
|
247
|
+
description: 'Shared types file from UIKit 2',
|
|
248
|
+
dependencies: [uiKit2TypesFile],
|
|
249
|
+
outputFolder: componentOutputDir,
|
|
250
|
+
},
|
|
251
|
+
);
|
|
252
|
+
|
|
253
|
+
const typesFilePath = resolve(componentOutputDir, 'types.codegen.ts');
|
|
254
|
+
fs.writeFileSync(typesFilePath, signedSourceCode);
|
|
255
|
+
};
|
|
256
|
+
|
|
231
257
|
const generateComponentPropTypes = (componentPropTypeFilter?: string) => {
|
|
232
258
|
const componentOutputDir = resolve(
|
|
233
259
|
__dirname,
|
|
@@ -248,6 +274,9 @@ const generateComponentPropTypes = (componentPropTypeFilter?: string) => {
|
|
|
248
274
|
)
|
|
249
275
|
.sort((a, b) => a.getName().localeCompare(b.getName()));
|
|
250
276
|
|
|
277
|
+
// generate share types file first
|
|
278
|
+
generateSharedTypesFile(componentOutputDir);
|
|
279
|
+
|
|
251
280
|
generateComponentPropTypeSourceFiles(
|
|
252
281
|
componentOutputDir,
|
|
253
282
|
componentPropTypeSymbols,
|
|
@@ -3,12 +3,13 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - CheckboxProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::c3f249f62fc1e2dab7bc6a21a0681633>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
-
* @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/checkbox/__generated__/index.partial.tsx <<SignedSource::
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/checkbox/__generated__/index.partial.tsx <<SignedSource::e85d1dd9754f25c100758622ff6d2d91>>
|
|
9
9
|
*/
|
|
10
10
|
import React from 'react';
|
|
11
11
|
import PlatformCheckbox from '@atlaskit/checkbox';
|
|
12
|
+
import type { EventHandlerProps } from './types.codegen';
|
|
12
13
|
|
|
13
14
|
type PlatformCheckboxProps = React.ComponentProps<typeof PlatformCheckbox>;
|
|
14
15
|
|
|
@@ -16,4 +17,4 @@ export type CheckboxProps = Pick<
|
|
|
16
17
|
PlatformCheckboxProps,
|
|
17
18
|
'testId' | 'defaultChecked' | 'isChecked' | 'isIndeterminate' | 'label'
|
|
18
19
|
| 'id' | 'isRequired' | 'isDisabled' | 'isInvalid' | 'onChange' | 'onBlur' | 'onFocus' | 'value' | 'aria-invalid' | 'aria-labelledby' | 'name'
|
|
19
|
-
>;
|
|
20
|
+
> & Pick<EventHandlerProps, 'onChange' | 'onBlur' | 'onFocus'>;
|
|
@@ -3,12 +3,13 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - RadioGroupProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::f21dfcf68dcf1e2443af8b267b5a057f>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
-
* @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/radio/__generated__/radio-group.partial.tsx <<SignedSource::
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/radio/__generated__/radio-group.partial.tsx <<SignedSource::2cbedc883c6d0fdf8e7f443d9ea14eb1>>
|
|
9
9
|
*/
|
|
10
10
|
import React from 'react';
|
|
11
11
|
import { RadioGroup as PlatformRadioGroup } from '@atlaskit/radio';
|
|
12
|
+
import type { EventHandlerProps } from './types.codegen';
|
|
12
13
|
|
|
13
14
|
type PlatformRadioGroupProps = React.ComponentProps<typeof PlatformRadioGroup>;
|
|
14
15
|
|
|
@@ -16,4 +17,4 @@ export type RadioGroupProps = Pick<
|
|
|
16
17
|
PlatformRadioGroupProps,
|
|
17
18
|
'defaultValue' | 'options' | 'onInvalid' | 'testId'
|
|
18
19
|
| 'isRequired' | 'isDisabled' | 'isInvalid' | 'onChange' | 'value' | 'aria-labelledby' | 'name'
|
|
19
|
-
>;
|
|
20
|
+
> & Pick<EventHandlerProps, 'onChange'>;
|
|
@@ -3,12 +3,13 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - RadioProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::18d92f885ea65e94fa46c10f531d5b42>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
-
* @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/radio/__generated__/index.partial.tsx <<SignedSource::
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/radio/__generated__/index.partial.tsx <<SignedSource::f8c9f83aa0faf7291e9446bec9e441d6>>
|
|
9
9
|
*/
|
|
10
10
|
import React from 'react';
|
|
11
11
|
import { Radio as PlatformRadio } from '@atlaskit/radio';
|
|
12
|
+
import type { EventHandlerProps } from './types.codegen';
|
|
12
13
|
|
|
13
14
|
type PlatformRadioProps = React.ComponentProps<typeof PlatformRadio>;
|
|
14
15
|
|
|
@@ -16,4 +17,4 @@ export type RadioProps = Pick<
|
|
|
16
17
|
PlatformRadioProps,
|
|
17
18
|
'label' | 'testId' | 'isChecked' | 'ariaLabel' | 'onInvalid'
|
|
18
19
|
| 'id' | 'isRequired' | 'isDisabled' | 'isInvalid' | 'onChange' | 'onBlur' | 'onFocus' | 'value' | 'aria-invalid' | 'aria-labelledby' | 'name'
|
|
19
|
-
>;
|
|
20
|
+
> & Pick<EventHandlerProps, 'onChange' | 'onBlur' | 'onFocus'>;
|
|
@@ -3,12 +3,13 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - RangeProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::67e22cda61419468c91e120179019751>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
-
* @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/range/__generated__/index.partial.tsx <<SignedSource::
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/range/__generated__/index.partial.tsx <<SignedSource::da47c96a98423bdcf0e9c79c7e31854f>>
|
|
9
9
|
*/
|
|
10
10
|
import React from 'react';
|
|
11
11
|
import PlatformRange from '@atlaskit/range';
|
|
12
|
+
import type { EventHandlerProps } from './types.codegen';
|
|
12
13
|
|
|
13
14
|
type PlatformRangeProps = React.ComponentProps<typeof PlatformRange>;
|
|
14
15
|
|
|
@@ -16,4 +17,4 @@ export type RangeProps = Pick<
|
|
|
16
17
|
PlatformRangeProps,
|
|
17
18
|
'defaultValue' | 'max' | 'min' | 'step' | 'testId' | 'onChange'
|
|
18
19
|
| 'id' | 'isDisabled' | 'onBlur' | 'onFocus' | 'value' | 'aria-invalid' | 'aria-labelledby' | 'name'
|
|
19
|
-
>;
|
|
20
|
+
> & Pick<EventHandlerProps, 'onBlur' | 'onFocus'>;
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - SelectProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::15d2ba46804ab0a683383a0ba9cae564>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
-
* @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/select/__generated__/index.partial.tsx <<SignedSource::
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/select/__generated__/index.partial.tsx <<SignedSource::a826a4f7af8f06890432c9274aad7332>>
|
|
9
9
|
*/
|
|
10
10
|
import { SelectProps as PlatformSelectProps } from '@atlaskit/select';
|
|
11
11
|
|
|
@@ -13,4 +13,4 @@ export type SelectProps = Pick<
|
|
|
13
13
|
PlatformSelectProps<any, true | false>,
|
|
14
14
|
'spacing' | 'appearance' | 'testId' | 'autoFocus' | 'defaultValue' | 'closeMenuOnSelect' | 'inputValue' | 'inputId' | 'isClearable' | 'isLoading' | 'isMulti' | 'isSearchable' | 'menuIsOpen' | 'onInputChange' | 'options' | 'placeholder' | 'onChange'
|
|
15
15
|
| 'id' | 'isDisabled' | 'isInvalid' | 'onBlur' | 'onFocus' | 'value' | 'aria-invalid' | 'aria-labelledby' | 'name'
|
|
16
|
-
> & { isRequired
|
|
16
|
+
> & { isRequired?: boolean };
|
|
@@ -3,12 +3,13 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - TextAreaProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::b8642225dd7fb8f95958aedb90aa5753>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
-
* @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/textarea/__generated__/index.partial.tsx <<SignedSource::
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/textarea/__generated__/index.partial.tsx <<SignedSource::93a565327cd9ef8ff96aee7b16324589>>
|
|
9
9
|
*/
|
|
10
10
|
import React from 'react';
|
|
11
11
|
import PlatformTextarea from '@atlaskit/textarea';
|
|
12
|
+
import type { EventHandlerProps } from './types.codegen';
|
|
12
13
|
|
|
13
14
|
type PlatformTextareaProps = React.ComponentProps<typeof PlatformTextarea>;
|
|
14
15
|
|
|
@@ -16,4 +17,4 @@ export type TextAreaProps = Pick<
|
|
|
16
17
|
PlatformTextareaProps,
|
|
17
18
|
'appearance' | 'defaultValue' | 'isCompact' | 'isMonospaced' | 'isReadOnly' | 'maxHeight' | 'minimumRows' | 'placeholder' | 'resize' | 'spellCheck' | 'testId' | 'maxLength' | 'minLength'
|
|
18
19
|
| 'id' | 'isRequired' | 'isDisabled' | 'isInvalid' | 'onChange' | 'onBlur' | 'onFocus' | 'value' | 'aria-invalid' | 'aria-labelledby' | 'name'
|
|
19
|
-
>;
|
|
20
|
+
> & Pick<EventHandlerProps, 'onChange' | 'onBlur' | 'onFocus'>;
|
|
@@ -3,17 +3,18 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - TextfieldProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::77a5f574841fda41b36a73e5427d6aa0>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
-
* @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/textfield/__generated__/index.partial.tsx <<SignedSource::
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/textfield/__generated__/index.partial.tsx <<SignedSource::3bcb2c74465d3be32f20d7ee141d0f9a>>
|
|
9
9
|
*/
|
|
10
10
|
import React from 'react';
|
|
11
11
|
import PlatformTextfield from '@atlaskit/textfield';
|
|
12
|
+
import type { EventHandlerProps } from './types.codegen';
|
|
12
13
|
|
|
13
14
|
type PlatformTextfieldProps = React.ComponentProps<typeof PlatformTextfield>;
|
|
14
15
|
|
|
15
16
|
export type TextfieldProps = Pick<
|
|
16
17
|
PlatformTextfieldProps,
|
|
17
|
-
'appearance' | 'elemAfterInput' | 'elemBeforeInput' | 'isCompact' | 'isReadOnly' | 'isMonospaced' | 'placeholder' | 'testId' | 'width' | 'type' | 'defaultValue' | 'min' | 'max' | 'maxLength' | 'minLength'
|
|
18
|
+
'appearance' | 'elemAfterInput' | 'elemBeforeInput' | 'isCompact' | 'isReadOnly' | 'isMonospaced' | 'placeholder' | 'testId' | 'width' | 'type' | 'defaultValue' | 'min' | 'max' | 'maxLength' | 'minLength' | 'pattern'
|
|
18
19
|
| 'id' | 'isRequired' | 'isDisabled' | 'isInvalid' | 'onChange' | 'onBlur' | 'onFocus' | 'value' | 'aria-invalid' | 'aria-labelledby' | 'name'
|
|
19
|
-
>;
|
|
20
|
+
> & Pick<EventHandlerProps, 'onChange' | 'onBlur' | 'onFocus'>;
|
|
@@ -3,12 +3,13 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - ToggleProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::9934170c1bfa2f8647584b8098d373e5>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
-
* @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/toggle/__generated__/index.partial.tsx <<SignedSource::
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/toggle/__generated__/index.partial.tsx <<SignedSource::15954687b51568b070d3d6687a80e7af>>
|
|
9
9
|
*/
|
|
10
10
|
import React from 'react';
|
|
11
11
|
import PlatformToggle from '@atlaskit/toggle';
|
|
12
|
+
import type { EventHandlerProps } from './types.codegen';
|
|
12
13
|
|
|
13
14
|
type PlatformToggleProps = React.ComponentProps<typeof PlatformToggle>;
|
|
14
15
|
|
|
@@ -16,4 +17,4 @@ export type ToggleProps = Pick<
|
|
|
16
17
|
PlatformToggleProps,
|
|
17
18
|
'size' | 'testId' | 'defaultChecked' | 'isChecked' | 'label'
|
|
18
19
|
| 'id' | 'isDisabled' | 'onChange' | 'onBlur' | 'onFocus' | 'value' | 'name'
|
|
19
|
-
>;
|
|
20
|
+
> & Pick<EventHandlerProps, 'onChange' | 'onBlur' | 'onFocus'>;
|
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Index file for component prop types
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::7aadd96e19946571168b6a8dac3d9a84>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
8
|
* @codegenDependency BadgeProps.codegen.tsx <<SignedSource::4759a95fede44eb7af89a4ada26252e9>>
|
|
9
9
|
* @codegenDependency BleedProps.codegen.tsx <<SignedSource::376f3f60ae6c1912e80b568958802fb5>>
|
|
10
10
|
* @codegenDependency BoxProps.codegen.tsx <<SignedSource::4ced3eed4de7f562539dd8a769a6871d>>
|
|
11
11
|
* @codegenDependency ButtonGroupProps.codegen.tsx <<SignedSource::a529cee05261919cb2eccacb9837aed0>>
|
|
12
12
|
* @codegenDependency ButtonProps.codegen.tsx <<SignedSource::cc45a3581574c0496c410cbba542fa50>>
|
|
13
|
-
* @codegenDependency CheckboxProps.codegen.tsx <<SignedSource::
|
|
13
|
+
* @codegenDependency CheckboxProps.codegen.tsx <<SignedSource::64e2dd8eb8b122646e0a11c5a029a4d6>>
|
|
14
14
|
* @codegenDependency CodeBlockProps.codegen.tsx <<SignedSource::54097e23c683ba0621cb0c224cbdee7a>>
|
|
15
15
|
* @codegenDependency CodeProps.codegen.tsx <<SignedSource::bc1c608d36eb55ac7c4eb0545c4beda3>>
|
|
16
16
|
* @codegenDependency DatePickerProps.codegen.tsx <<SignedSource::91eb5f1515fdb028c2916d07b59ea49a>>
|
|
@@ -38,12 +38,12 @@
|
|
|
38
38
|
* @codegenDependency ModalTransitionProps.codegen.tsx <<SignedSource::eae5bf2abf85a1a39c377b0da0f7a1ed>>
|
|
39
39
|
* @codegenDependency ProgressBarProps.codegen.tsx <<SignedSource::b27527e77286c102eac2a4aa3ed6585a>>
|
|
40
40
|
* @codegenDependency ProgressTrackerProps.codegen.tsx <<SignedSource::75a7d6d27ff905f2e1ed85668749aec0>>
|
|
41
|
-
* @codegenDependency RadioGroupProps.codegen.tsx <<SignedSource::
|
|
42
|
-
* @codegenDependency RadioProps.codegen.tsx <<SignedSource::
|
|
43
|
-
* @codegenDependency RangeProps.codegen.tsx <<SignedSource::
|
|
41
|
+
* @codegenDependency RadioGroupProps.codegen.tsx <<SignedSource::1ad039c8add4a5cbbbfcb0297330f608>>
|
|
42
|
+
* @codegenDependency RadioProps.codegen.tsx <<SignedSource::96e4c026daaf1aec3bf68aea545556d7>>
|
|
43
|
+
* @codegenDependency RangeProps.codegen.tsx <<SignedSource::4cb6e9003e3ad70a198b218708b324a4>>
|
|
44
44
|
* @codegenDependency SectionMessageActionProps.codegen.tsx <<SignedSource::190b8417f32673d5e54cd206ea0c76d0>>
|
|
45
45
|
* @codegenDependency SectionMessageProps.codegen.tsx <<SignedSource::dad8a3d213b5863972ea115389c33fdc>>
|
|
46
|
-
* @codegenDependency SelectProps.codegen.tsx <<SignedSource::
|
|
46
|
+
* @codegenDependency SelectProps.codegen.tsx <<SignedSource::5c1824fd709a27eb74098e537e7f3541>>
|
|
47
47
|
* @codegenDependency SpinnerProps.codegen.tsx <<SignedSource::602b1cc246e020dd7f32222a4d6bbb6e>>
|
|
48
48
|
* @codegenDependency StackProps.codegen.tsx <<SignedSource::11eaa0ce90d5dd36a8ca57a03f01afe6>>
|
|
49
49
|
* @codegenDependency TabListProps.codegen.tsx <<SignedSource::ba3257cc8f382811ae1630adc50c4fac>>
|
|
@@ -52,9 +52,9 @@
|
|
|
52
52
|
* @codegenDependency TabsProps.codegen.tsx <<SignedSource::014a7bfcca5304d7bb613a53d9117d01>>
|
|
53
53
|
* @codegenDependency TagGroupProps.codegen.tsx <<SignedSource::e8e2bd37a4b5175ff1bf296b465ef727>>
|
|
54
54
|
* @codegenDependency TagProps.codegen.tsx <<SignedSource::86aff9005e1db842009ece108d61a6b1>>
|
|
55
|
-
* @codegenDependency TextAreaProps.codegen.tsx <<SignedSource::
|
|
56
|
-
* @codegenDependency TextfieldProps.codegen.tsx <<SignedSource::
|
|
57
|
-
* @codegenDependency ToggleProps.codegen.tsx <<SignedSource::
|
|
55
|
+
* @codegenDependency TextAreaProps.codegen.tsx <<SignedSource::f79b76692f21e787a29f04f379710f32>>
|
|
56
|
+
* @codegenDependency TextfieldProps.codegen.tsx <<SignedSource::f029b18bd851bfca81384b61b12ba04b>>
|
|
57
|
+
* @codegenDependency ToggleProps.codegen.tsx <<SignedSource::4cf587b7a202a52ddb50db0157c2b0e5>>
|
|
58
58
|
* @codegenDependency TooltipProps.codegen.tsx <<SignedSource::aa2be4a5cb38eecf50dd652836a3e6ad>>
|
|
59
59
|
* @codegenDependency ValidMessageProps.codegen.tsx <<SignedSource::3498c77c19604ab5b3b2800fee3e75b3>>
|
|
60
60
|
*/
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
*
|
|
4
|
+
* Shared types file from UIKit 2
|
|
5
|
+
*
|
|
6
|
+
* @codegen <<SignedSource::876fcb93a6505f3c3d8febc6657b1016>>
|
|
7
|
+
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/types.ts <<SignedSource::4c43233e6c4a02225fbb326afeddd9f7>>
|
|
9
|
+
*/
|
|
10
|
+
export type SerialisableEvent = {
|
|
11
|
+
bubbles: boolean;
|
|
12
|
+
cancelable: boolean;
|
|
13
|
+
defaultPrevented: boolean;
|
|
14
|
+
eventPhase: number;
|
|
15
|
+
isTrusted: boolean;
|
|
16
|
+
nativeEvent: any;
|
|
17
|
+
target: {
|
|
18
|
+
value?: any;
|
|
19
|
+
checked?: boolean;
|
|
20
|
+
name?: string;
|
|
21
|
+
id?: string;
|
|
22
|
+
tagName?: string;
|
|
23
|
+
type?: string;
|
|
24
|
+
};
|
|
25
|
+
timeStamp: number;
|
|
26
|
+
type: string;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export type EventHandlerProps = {
|
|
30
|
+
onChange?: (event: SerialisableEvent) => void;
|
|
31
|
+
onBlur?: (event: SerialisableEvent) => void;
|
|
32
|
+
onFocus?: (event: SerialisableEvent) => void;
|
|
33
|
+
};
|