@atlaskit/forge-react-types 0.25.0 → 0.27.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 +20 -0
- package/dist/types/components/__generated__/ButtonGroupProps.codegen.d.ts +7 -7
- package/dist/types/components/__generated__/InlineEditProps.codegen.d.ts +14 -4
- package/dist/types/components/__generated__/PopupProps.codegen.d.ts +16 -0
- package/dist/types/components/__generated__/index.d.ts +1 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types-ts4.5/components/__generated__/ButtonGroupProps.codegen.d.ts +7 -7
- package/dist/types-ts4.5/components/__generated__/InlineEditProps.codegen.d.ts +14 -4
- package/dist/types-ts4.5/components/__generated__/PopupProps.codegen.d.ts +16 -0
- package/dist/types-ts4.5/components/__generated__/index.d.ts +1 -0
- package/dist/types-ts4.5/index.d.ts +1 -1
- package/package.json +3 -3
- package/src/components/__generated__/ButtonGroupProps.codegen.tsx +7 -9
- package/src/components/__generated__/InlineEditProps.codegen.tsx +17 -4
- package/src/components/__generated__/PopupProps.codegen.tsx +5 -4
- package/src/components/__generated__/TimePickerProps.codegen.tsx +5 -6
- package/src/components/__generated__/index.ts +1 -0
- package/src/index.ts +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @atlaskit/forge-react-types
|
|
2
2
|
|
|
3
|
+
## 0.27.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#116956](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/116956)
|
|
8
|
+
[`968939ae640cf`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/968939ae640cf) -
|
|
9
|
+
Updates types for Popup, InlineEdit and Timepicker
|
|
10
|
+
|
|
11
|
+
## 0.26.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- [#121529](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/121529)
|
|
16
|
+
[`792ec81a6083d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/792ec81a6083d) -
|
|
17
|
+
Export InlineEdit and Popup prop types
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- Updated dependencies
|
|
22
|
+
|
|
3
23
|
## 0.25.0
|
|
4
24
|
|
|
5
25
|
### Minor Changes
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - ButtonGroupProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::1ef4ff437dfe8a93cac3a0c5e3dbeef9>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
-
* @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/button/__generated__/button-group.partial.tsx <<SignedSource::
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/button/__generated__/button-group.partial.tsx <<SignedSource::8f41744fe0477b14db5f0c764e4d8a10>>
|
|
9
9
|
*/
|
|
10
|
-
import
|
|
11
|
-
import {
|
|
12
|
-
type
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
import type { ButtonGroupProps as PlatformButtonGroupProps } from '@atlaskit/button';
|
|
11
|
+
import type { ButtonProps } from '@atlaskit/button';
|
|
12
|
+
export type ButtonGroupProps = Pick<PlatformButtonGroupProps, 'children' | 'testId' | 'label' | 'titleId'> & {
|
|
13
|
+
appearance?: ButtonProps['appearance'];
|
|
14
|
+
};
|
|
@@ -3,12 +3,22 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - InlineEditProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::e87351dfe8a69d1c42b287eb4d6c40d3>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
-
* @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/inline-edit/index.tsx <<SignedSource::
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/inline-edit/index.tsx <<SignedSource::059229cf849086667e3ebf5b3362bb9f>>
|
|
9
9
|
*/
|
|
10
10
|
import React from 'react';
|
|
11
11
|
import { default as PlatformInlineEdit } from '@atlaskit/inline-edit';
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
type EditViewFieldProps = {
|
|
13
|
+
onChange: (value: any) => void;
|
|
14
|
+
value: any;
|
|
15
|
+
errorMessage?: string;
|
|
16
|
+
isInvalid: boolean;
|
|
17
|
+
'aria-invalid': 'true' | 'false';
|
|
18
|
+
isRequired: boolean;
|
|
14
19
|
};
|
|
20
|
+
export type InlineEditProps = Omit<React.ComponentProps<typeof PlatformInlineEdit>, 'analyticsContext' | 'onConfirm'> & {
|
|
21
|
+
onConfirm: (value: any) => void;
|
|
22
|
+
editView: (fieldProps: EditViewFieldProps) => React.ReactNode;
|
|
23
|
+
};
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
*
|
|
4
|
+
* Extract component prop types from UIKit 2 components - PopupProps
|
|
5
|
+
*
|
|
6
|
+
* @codegen <<SignedSource::5ea49084869c110ee74f05b602fb0db1>>
|
|
7
|
+
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/popup/index.tsx <<SignedSource::9c4061e9a4dfd26294367f18853c5ce1>>
|
|
9
|
+
*/
|
|
10
|
+
import React from 'react';
|
|
11
|
+
import { default as PlatformPopup } from '@atlaskit/popup';
|
|
12
|
+
export type PopupProps = Omit<React.ComponentProps<typeof PlatformPopup>, 'popupComponent' | 'zIndex' | 'offset' | 'boundary'> & {
|
|
13
|
+
boundary?: 'clippingParents';
|
|
14
|
+
content: () => React.ReactNode;
|
|
15
|
+
trigger: () => React.ReactNode;
|
|
16
|
+
};
|
|
@@ -57,3 +57,4 @@ export type { TextfieldProps } from './TextfieldProps.codegen';
|
|
|
57
57
|
export type { ToggleProps } from './ToggleProps.codegen';
|
|
58
58
|
export type { TooltipProps } from './TooltipProps.codegen';
|
|
59
59
|
export type { ValidMessageProps } from './ValidMessageProps.codegen';
|
|
60
|
+
export type { PopupProps } from './PopupProps.codegen';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export type { BadgeProps, BannerProps, BleedProps, BoxProps, ButtonGroupProps, ButtonProps, CalendarProps, CheckboxProps, CheckboxGroupProps, CodeBlockProps, CodeProps, DatePickerProps, DynamicTableProps, EmptyStateProps, ErrorMessageProps, FlexProps, FormFooterProps, FormHeaderProps, FormProps, FormSectionProps, GridProps, HeadingProps, HelperMessageProps, IconProps, InlineProps, LabelProps, LinkButtonProps, ListProps, ListItemProps, LoadingButtonProps, LozengeProps, ModalBodyProps, ModalFooterProps, ModalHeaderProps, ModalProps, ModalTitleProps, ModalTransitionProps, ProgressBarProps, ProgressTrackerProps, RadioGroupProps, RadioProps, RangeProps, SectionMessageActionProps, SectionMessageProps, SelectProps, SpinnerProps, StackProps, TabListProps, TabPanelProps, TabProps, TabsProps, TagGroupProps, TagProps, TextAreaProps, TextfieldProps, ToggleProps, TooltipProps, ValidMessageProps, } from './components/__generated__';
|
|
1
|
+
export type { BadgeProps, BannerProps, BleedProps, BoxProps, ButtonGroupProps, ButtonProps, CalendarProps, CheckboxProps, CheckboxGroupProps, CodeBlockProps, CodeProps, DatePickerProps, DynamicTableProps, EmptyStateProps, ErrorMessageProps, FlexProps, FormFooterProps, FormHeaderProps, FormProps, FormSectionProps, GridProps, HeadingProps, HelperMessageProps, IconProps, InlineProps, LabelProps, LinkButtonProps, ListProps, ListItemProps, LoadingButtonProps, LozengeProps, ModalBodyProps, ModalFooterProps, ModalHeaderProps, ModalProps, ModalTitleProps, ModalTransitionProps, ProgressBarProps, ProgressTrackerProps, RadioGroupProps, RadioProps, RangeProps, SectionMessageActionProps, SectionMessageProps, SelectProps, SpinnerProps, StackProps, TabListProps, TabPanelProps, TabProps, TabsProps, TagGroupProps, TagProps, TextAreaProps, TextfieldProps, ToggleProps, TooltipProps, ValidMessageProps, PopupProps, InlineEditProps, } from './components/__generated__';
|
|
2
2
|
export type { BarChartProps, StackBarChartProps, HorizontalStackBarChartProps, HorizontalBarChartProps, LineChartProps, SingleValueChartProps, PieChartProps, } from './components/charts';
|
|
3
3
|
export type { ChartColorTokens } from './types';
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - ButtonGroupProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::1ef4ff437dfe8a93cac3a0c5e3dbeef9>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
-
* @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/button/__generated__/button-group.partial.tsx <<SignedSource::
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/button/__generated__/button-group.partial.tsx <<SignedSource::8f41744fe0477b14db5f0c764e4d8a10>>
|
|
9
9
|
*/
|
|
10
|
-
import
|
|
11
|
-
import {
|
|
12
|
-
type
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
import type { ButtonGroupProps as PlatformButtonGroupProps } from '@atlaskit/button';
|
|
11
|
+
import type { ButtonProps } from '@atlaskit/button';
|
|
12
|
+
export type ButtonGroupProps = Pick<PlatformButtonGroupProps, 'children' | 'testId' | 'label' | 'titleId'> & {
|
|
13
|
+
appearance?: ButtonProps['appearance'];
|
|
14
|
+
};
|
|
@@ -3,12 +3,22 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - InlineEditProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::e87351dfe8a69d1c42b287eb4d6c40d3>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
-
* @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/inline-edit/index.tsx <<SignedSource::
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/inline-edit/index.tsx <<SignedSource::059229cf849086667e3ebf5b3362bb9f>>
|
|
9
9
|
*/
|
|
10
10
|
import React from 'react';
|
|
11
11
|
import { default as PlatformInlineEdit } from '@atlaskit/inline-edit';
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
type EditViewFieldProps = {
|
|
13
|
+
onChange: (value: any) => void;
|
|
14
|
+
value: any;
|
|
15
|
+
errorMessage?: string;
|
|
16
|
+
isInvalid: boolean;
|
|
17
|
+
'aria-invalid': 'true' | 'false';
|
|
18
|
+
isRequired: boolean;
|
|
14
19
|
};
|
|
20
|
+
export type InlineEditProps = Omit<React.ComponentProps<typeof PlatformInlineEdit>, 'analyticsContext' | 'onConfirm'> & {
|
|
21
|
+
onConfirm: (value: any) => void;
|
|
22
|
+
editView: (fieldProps: EditViewFieldProps) => React.ReactNode;
|
|
23
|
+
};
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
*
|
|
4
|
+
* Extract component prop types from UIKit 2 components - PopupProps
|
|
5
|
+
*
|
|
6
|
+
* @codegen <<SignedSource::5ea49084869c110ee74f05b602fb0db1>>
|
|
7
|
+
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/popup/index.tsx <<SignedSource::9c4061e9a4dfd26294367f18853c5ce1>>
|
|
9
|
+
*/
|
|
10
|
+
import React from 'react';
|
|
11
|
+
import { default as PlatformPopup } from '@atlaskit/popup';
|
|
12
|
+
export type PopupProps = Omit<React.ComponentProps<typeof PlatformPopup>, 'popupComponent' | 'zIndex' | 'offset' | 'boundary'> & {
|
|
13
|
+
boundary?: 'clippingParents';
|
|
14
|
+
content: () => React.ReactNode;
|
|
15
|
+
trigger: () => React.ReactNode;
|
|
16
|
+
};
|
|
@@ -57,3 +57,4 @@ export type { TextfieldProps } from './TextfieldProps.codegen';
|
|
|
57
57
|
export type { ToggleProps } from './ToggleProps.codegen';
|
|
58
58
|
export type { TooltipProps } from './TooltipProps.codegen';
|
|
59
59
|
export type { ValidMessageProps } from './ValidMessageProps.codegen';
|
|
60
|
+
export type { PopupProps } from './PopupProps.codegen';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export type { BadgeProps, BannerProps, BleedProps, BoxProps, ButtonGroupProps, ButtonProps, CalendarProps, CheckboxProps, CheckboxGroupProps, CodeBlockProps, CodeProps, DatePickerProps, DynamicTableProps, EmptyStateProps, ErrorMessageProps, FlexProps, FormFooterProps, FormHeaderProps, FormProps, FormSectionProps, GridProps, HeadingProps, HelperMessageProps, IconProps, InlineProps, LabelProps, LinkButtonProps, ListProps, ListItemProps, LoadingButtonProps, LozengeProps, ModalBodyProps, ModalFooterProps, ModalHeaderProps, ModalProps, ModalTitleProps, ModalTransitionProps, ProgressBarProps, ProgressTrackerProps, RadioGroupProps, RadioProps, RangeProps, SectionMessageActionProps, SectionMessageProps, SelectProps, SpinnerProps, StackProps, TabListProps, TabPanelProps, TabProps, TabsProps, TagGroupProps, TagProps, TextAreaProps, TextfieldProps, ToggleProps, TooltipProps, ValidMessageProps, } from './components/__generated__';
|
|
1
|
+
export type { BadgeProps, BannerProps, BleedProps, BoxProps, ButtonGroupProps, ButtonProps, CalendarProps, CheckboxProps, CheckboxGroupProps, CodeBlockProps, CodeProps, DatePickerProps, DynamicTableProps, EmptyStateProps, ErrorMessageProps, FlexProps, FormFooterProps, FormHeaderProps, FormProps, FormSectionProps, GridProps, HeadingProps, HelperMessageProps, IconProps, InlineProps, LabelProps, LinkButtonProps, ListProps, ListItemProps, LoadingButtonProps, LozengeProps, ModalBodyProps, ModalFooterProps, ModalHeaderProps, ModalProps, ModalTitleProps, ModalTransitionProps, ProgressBarProps, ProgressTrackerProps, RadioGroupProps, RadioProps, RangeProps, SectionMessageActionProps, SectionMessageProps, SelectProps, SpinnerProps, StackProps, TabListProps, TabPanelProps, TabProps, TabsProps, TagGroupProps, TagProps, TextAreaProps, TextfieldProps, ToggleProps, TooltipProps, ValidMessageProps, PopupProps, InlineEditProps, } from './components/__generated__';
|
|
2
2
|
export type { BarChartProps, StackBarChartProps, HorizontalStackBarChartProps, HorizontalBarChartProps, LineChartProps, SingleValueChartProps, PieChartProps, } from './components/charts';
|
|
3
3
|
export type { ChartColorTokens } from './types';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/forge-react-types",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.27.0",
|
|
4
4
|
"description": "Component types for Forge UI Kit React components",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@atlaskit/badge": "^16.3.0",
|
|
29
29
|
"@atlaskit/banner": "^12.4.0",
|
|
30
|
-
"@atlaskit/button": "^
|
|
30
|
+
"@atlaskit/button": "^19.0.0",
|
|
31
31
|
"@atlaskit/calendar": "^14.3.0",
|
|
32
32
|
"@atlaskit/checkbox": "^13.5.0",
|
|
33
33
|
"@atlaskit/code": "^15.4.0",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"@atlaskit/textarea": "^5.5.0",
|
|
54
54
|
"@atlaskit/textfield": "^6.4.0",
|
|
55
55
|
"@atlaskit/toggle": "^13.2.0",
|
|
56
|
-
"@atlaskit/tokens": "^1.
|
|
56
|
+
"@atlaskit/tokens": "^1.56.0",
|
|
57
57
|
"@atlaskit/tooltip": "^18.5.0",
|
|
58
58
|
"@babel/runtime": "^7.0.0"
|
|
59
59
|
},
|
|
@@ -3,16 +3,14 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - ButtonGroupProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::1ef4ff437dfe8a93cac3a0c5e3dbeef9>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
-
* @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/button/__generated__/button-group.partial.tsx <<SignedSource::
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/button/__generated__/button-group.partial.tsx <<SignedSource::8f41744fe0477b14db5f0c764e4d8a10>>
|
|
9
9
|
*/
|
|
10
|
-
import
|
|
11
|
-
import {
|
|
12
|
-
|
|
13
|
-
type PlatformButtonGroupProps = React.ComponentProps<typeof PlatformButtonGroup>;
|
|
10
|
+
import type { ButtonGroupProps as PlatformButtonGroupProps } from '@atlaskit/button';
|
|
11
|
+
import type { ButtonProps } from '@atlaskit/button';
|
|
14
12
|
|
|
15
13
|
export type ButtonGroupProps = Pick<
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
14
|
+
PlatformButtonGroupProps,
|
|
15
|
+
'children' | 'testId' | 'label' | 'titleId'
|
|
16
|
+
> & { appearance?: ButtonProps['appearance'] };
|
|
@@ -3,14 +3,27 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - InlineEditProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::e87351dfe8a69d1c42b287eb4d6c40d3>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
-
* @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/inline-edit/index.tsx <<SignedSource::
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/inline-edit/index.tsx <<SignedSource::059229cf849086667e3ebf5b3362bb9f>>
|
|
9
9
|
*/
|
|
10
10
|
import React from 'react';
|
|
11
11
|
import { default as PlatformInlineEdit } from '@atlaskit/inline-edit';
|
|
12
12
|
|
|
13
|
+
type EditViewFieldProps = {
|
|
14
|
+
onChange: (value: any) => void;
|
|
15
|
+
value: any;
|
|
16
|
+
errorMessage?: string;
|
|
17
|
+
isInvalid: boolean;
|
|
18
|
+
'aria-invalid': 'true' | 'false';
|
|
19
|
+
isRequired: boolean;
|
|
20
|
+
};
|
|
21
|
+
|
|
13
22
|
export type InlineEditProps = Omit<
|
|
14
23
|
React.ComponentProps<typeof PlatformInlineEdit>,
|
|
15
|
-
'
|
|
16
|
-
> & {
|
|
24
|
+
'analyticsContext' | 'onConfirm'
|
|
25
|
+
> & {
|
|
26
|
+
// ADS has an additional analyticsEvent arg that is not optional. We don't use this in UI Kit and it can't be removed due to breaking changes in products
|
|
27
|
+
onConfirm: (value: any) => void;
|
|
28
|
+
editView: (fieldProps: EditViewFieldProps) => React.ReactNode;
|
|
29
|
+
};
|
|
@@ -3,17 +3,18 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - PopupProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::5ea49084869c110ee74f05b602fb0db1>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
-
* @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/popup/index.tsx <<SignedSource::
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/popup/index.tsx <<SignedSource::9c4061e9a4dfd26294367f18853c5ce1>>
|
|
9
9
|
*/
|
|
10
10
|
import React from 'react';
|
|
11
11
|
import { default as PlatformPopup } from '@atlaskit/popup';
|
|
12
12
|
|
|
13
13
|
export type PopupProps = Omit<
|
|
14
14
|
React.ComponentProps<typeof PlatformPopup>,
|
|
15
|
-
'
|
|
15
|
+
'popupComponent' | 'zIndex' | 'offset' | 'boundary'
|
|
16
16
|
> & {
|
|
17
|
-
children: React.ReactNode;
|
|
18
17
|
boundary?: 'clippingParents';
|
|
18
|
+
content: () => React.ReactNode;
|
|
19
|
+
trigger: () => React.ReactNode;
|
|
19
20
|
};
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - TimePickerProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::9b49785e7a9a57c0a10723d0b2f28e23>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
-
* @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/timepicker/__generated__/index.partial.tsx <<SignedSource::
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/timepicker/__generated__/index.partial.tsx <<SignedSource::785d7ffcaac38544d4658ed1560d72f5>>
|
|
9
9
|
*/
|
|
10
10
|
import type { SelectProps } from '@atlaskit/select';
|
|
11
11
|
|
|
@@ -14,9 +14,9 @@ export interface FieldProps {
|
|
|
14
14
|
isRequired: boolean;
|
|
15
15
|
isDisabled: boolean;
|
|
16
16
|
isInvalid: boolean;
|
|
17
|
-
onChange: (event:
|
|
18
|
-
onBlur: () =>
|
|
19
|
-
onFocus: () =>
|
|
17
|
+
onChange: (event: unknown) => void;
|
|
18
|
+
onBlur: (event: unknown) => void;
|
|
19
|
+
onFocus: (event: unknown) => void;
|
|
20
20
|
value: any;
|
|
21
21
|
'aria-invalid': 'true' | 'false';
|
|
22
22
|
'aria-labelledby': string;
|
|
@@ -31,7 +31,6 @@ export type TimePickerProps = {
|
|
|
31
31
|
autoFocus?: boolean;
|
|
32
32
|
defaultIsOpen?: boolean;
|
|
33
33
|
defaultValue?: string;
|
|
34
|
-
formatDisplayLabel?: (time: string, timeFormat: string) => string;
|
|
35
34
|
isOpen?: boolean;
|
|
36
35
|
label?: string;
|
|
37
36
|
onChange?: (value: string) => void;
|
|
@@ -57,3 +57,4 @@ export type { TextfieldProps } from './TextfieldProps.codegen';
|
|
|
57
57
|
export type { ToggleProps } from './ToggleProps.codegen';
|
|
58
58
|
export type { TooltipProps } from './TooltipProps.codegen';
|
|
59
59
|
export type { ValidMessageProps } from './ValidMessageProps.codegen';
|
|
60
|
+
export type { PopupProps } from './PopupProps.codegen';
|