@atlaskit/forge-react-types 0.26.0 → 0.27.1

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.
Files changed (30) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/types/components/__generated__/CalendarProps.codegen.d.ts +3 -3
  3. package/dist/types/components/__generated__/DatePickerProps.codegen.d.ts +4 -4
  4. package/dist/types/components/__generated__/InlineEditProps.codegen.d.ts +12 -2
  5. package/dist/types/components/__generated__/ListItemProps.codegen.d.ts +2 -2
  6. package/dist/types/components/__generated__/ListProps.codegen.d.ts +2 -2
  7. package/dist/types/components/__generated__/PopupProps.codegen.d.ts +4 -2
  8. package/dist/types/components/__generated__/SelectProps.codegen.d.ts +3 -3
  9. package/dist/types/components/__generated__/TextAreaProps.codegen.d.ts +3 -3
  10. package/dist/types/components/__generated__/TextfieldProps.codegen.d.ts +3 -3
  11. package/dist/types-ts4.5/components/__generated__/CalendarProps.codegen.d.ts +3 -3
  12. package/dist/types-ts4.5/components/__generated__/DatePickerProps.codegen.d.ts +4 -4
  13. package/dist/types-ts4.5/components/__generated__/InlineEditProps.codegen.d.ts +12 -2
  14. package/dist/types-ts4.5/components/__generated__/ListItemProps.codegen.d.ts +2 -2
  15. package/dist/types-ts4.5/components/__generated__/ListProps.codegen.d.ts +2 -2
  16. package/dist/types-ts4.5/components/__generated__/PopupProps.codegen.d.ts +4 -2
  17. package/dist/types-ts4.5/components/__generated__/SelectProps.codegen.d.ts +3 -3
  18. package/dist/types-ts4.5/components/__generated__/TextAreaProps.codegen.d.ts +3 -3
  19. package/dist/types-ts4.5/components/__generated__/TextfieldProps.codegen.d.ts +3 -3
  20. package/package.json +1 -1
  21. package/src/components/__generated__/CalendarProps.codegen.tsx +3 -3
  22. package/src/components/__generated__/DatePickerProps.codegen.tsx +4 -4
  23. package/src/components/__generated__/InlineEditProps.codegen.tsx +12 -2
  24. package/src/components/__generated__/ListItemProps.codegen.tsx +2 -2
  25. package/src/components/__generated__/ListProps.codegen.tsx +2 -2
  26. package/src/components/__generated__/PopupProps.codegen.tsx +4 -2
  27. package/src/components/__generated__/SelectProps.codegen.tsx +3 -5
  28. package/src/components/__generated__/TextAreaProps.codegen.tsx +3 -3
  29. package/src/components/__generated__/TextfieldProps.codegen.tsx +3 -3
  30. package/src/components/__generated__/TimePickerProps.codegen.tsx +5 -6
package/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # @atlaskit/forge-react-types
2
2
 
3
+ ## 0.27.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#123440](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/123440)
8
+ [`664b4a312b787`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/664b4a312b787) -
9
+ Add additional prop support for calendar, inlineedit, select, textarea, textfield
10
+
11
+ ## 0.27.0
12
+
13
+ ### Minor Changes
14
+
15
+ - [#116956](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/116956)
16
+ [`968939ae640cf`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/968939ae640cf) -
17
+ Updates types for Popup, InlineEdit and Timepicker
18
+
3
19
  ## 0.26.0
4
20
 
5
21
  ### Minor Changes
@@ -3,12 +3,12 @@
3
3
  *
4
4
  * Extract component prop types from UIKit 2 components - CalendarProps
5
5
  *
6
- * @codegen <<SignedSource::809fe60e51015ea45199d65e850e76f5>>
6
+ * @codegen <<SignedSource::9a3ee9c4f7fcbd450b16061dab81a6e9>>
7
7
  * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
- * @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/calendar/__generated__/index.partial.tsx <<SignedSource::1a1e92ebb117bd23b5ed2fbbf8f309ff>>
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/calendar/__generated__/index.partial.tsx <<SignedSource::500d3df7d07464aeb6502c6c1e32094f>>
9
9
  */
10
10
  import React from 'react';
11
11
  import PlatformCalendar from '@atlaskit/calendar';
12
12
  type PlatformCalendarProps = React.ComponentProps<typeof PlatformCalendar>;
13
- export type CalendarProps = Pick<PlatformCalendarProps, 'day' | 'defaultDay' | 'defaultMonth' | 'defaultYear' | 'defaultPreviouslySelected' | 'defaultSelected' | 'disabled' | 'disabledDateFilter' | 'maxDate' | 'minDate' | 'nextMonthLabel' | 'onBlur' | 'onChange' | 'onFocus' | 'onSelect' | 'previouslySelected' | 'previousMonthLabel' | 'selected' | 'today' | 'year' | 'locale' | 'testId' | 'weekStartDay' | 'tabIndex'>;
13
+ export type CalendarProps = Pick<PlatformCalendarProps, 'day' | 'defaultDay' | 'defaultMonth' | 'defaultYear' | 'defaultPreviouslySelected' | 'defaultSelected' | 'disabled' | 'maxDate' | 'minDate' | 'nextMonthLabel' | 'onBlur' | 'onChange' | 'onFocus' | 'onSelect' | 'previouslySelected' | 'previousMonthLabel' | 'selected' | 'today' | 'year' | 'locale' | 'testId' | 'weekStartDay' | 'tabIndex'>;
14
14
  export {};
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * Extract component prop types from UIKit 2 components - DatePickerProps
5
5
  *
6
- * @codegen <<SignedSource::31aa010a923433b4bc243613653cb355>>
6
+ * @codegen <<SignedSource::2d2d5119807b0f8ce8c9fc6f6f2fa874>>
7
7
  * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
8
  * @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/datepicker/__generated__/index.partial.tsx <<SignedSource::f46fc2b51471f647b60a3fec382a3f5d>>
9
9
  */
@@ -13,9 +13,9 @@ export interface FieldProps {
13
13
  isRequired: boolean;
14
14
  isDisabled: boolean;
15
15
  isInvalid: boolean;
16
- onChange: (event: any) => any;
17
- onBlur: () => any;
18
- onFocus: () => any;
16
+ onChange: (event: unknown) => void;
17
+ onBlur: (event: unknown) => void;
18
+ onFocus: (event: unknown) => void;
19
19
  value: any;
20
20
  'aria-invalid': 'true' | 'false';
21
21
  'aria-labelledby': string;
@@ -3,12 +3,22 @@
3
3
  *
4
4
  * Extract component prop types from UIKit 2 components - InlineEditProps
5
5
  *
6
- * @codegen <<SignedSource::95bea94f50b42c9241a1fa71ae53d84c>>
6
+ * @codegen <<SignedSource::f17388eefe74a182a96d442f9b8422c4>>
7
7
  * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
- * @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/inline-edit/index.tsx <<SignedSource::da035ef5c02a0c9efdef35e898e20656>>
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/inline-edit/index.tsx <<SignedSource::4dab343f92d21d2637fa75f0a58fb904>>
9
9
  */
10
10
  import React from 'react';
11
11
  import { default as PlatformInlineEdit } from '@atlaskit/inline-edit';
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;
19
+ };
12
20
  export type InlineEditProps = Omit<React.ComponentProps<typeof PlatformInlineEdit>, 'analyticsContext' | 'onConfirm'> & {
13
21
  onConfirm: (value: any) => void;
22
+ editView: (fieldProps: EditViewFieldProps) => React.ReactNode;
14
23
  };
24
+ export {};
@@ -3,9 +3,9 @@
3
3
  *
4
4
  * Extract component prop types from UIKit 2 components - ListItemProps
5
5
  *
6
- * @codegen <<SignedSource::eea5642654758c70eb31a2606729b463>>
6
+ * @codegen <<SignedSource::179940607b5509d5be5cd22c28b202c0>>
7
7
  * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
- * @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/list/listitem.tsx <<SignedSource::e93278695325427d667307c6aefd8eea>>
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/list/listitem.tsx <<SignedSource::979a16db9afd0d737ded8388e6563c2f>>
9
9
  */
10
10
  import React from 'react';
11
11
  export interface ListItemProps {
@@ -3,9 +3,9 @@
3
3
  *
4
4
  * Extract component prop types from UIKit 2 components - ListProps
5
5
  *
6
- * @codegen <<SignedSource::3feee8080c7b3707219a850f5565f712>>
6
+ * @codegen <<SignedSource::c486eb8eaa6f4cfee0b07387f31ddac5>>
7
7
  * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
- * @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/list/list.tsx <<SignedSource::abaa74b57000347ef37668a50d2ad68c>>
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/list/list.tsx <<SignedSource::15041a942a0c0a671c5d60df014ead74>>
9
9
  */
10
10
  import React from 'react';
11
11
  export interface ListProps {
@@ -3,12 +3,14 @@
3
3
  *
4
4
  * Extract component prop types from UIKit 2 components - PopupProps
5
5
  *
6
- * @codegen <<SignedSource::84c0328efa0f3aaecf6db4f7979c70c5>>
6
+ * @codegen <<SignedSource::d3634c51b1efc12b283fe848c37c18cc>>
7
7
  * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
- * @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/popup/index.tsx <<SignedSource::96a06afff36fc59275f3994adcaf5bd0>>
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/popup/index.tsx <<SignedSource::9139dc577b2c62f759ce9545e640a205>>
9
9
  */
10
10
  import React from 'react';
11
11
  import { default as PlatformPopup } from '@atlaskit/popup';
12
12
  export type PopupProps = Omit<React.ComponentProps<typeof PlatformPopup>, 'popupComponent' | 'zIndex' | 'offset' | 'boundary'> & {
13
13
  boundary?: 'clippingParents';
14
+ content: () => React.ReactNode;
15
+ trigger: () => React.ReactNode;
14
16
  };
@@ -3,11 +3,11 @@
3
3
  *
4
4
  * Extract component prop types from UIKit 2 components - SelectProps
5
5
  *
6
- * @codegen <<SignedSource::ab9916727dd913ba15f53678777541b5>>
6
+ * @codegen <<SignedSource::fa4483d9dc0f57bb8387b7f30ad843cb>>
7
7
  * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
- * @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/select/__generated__/index.partial.tsx <<SignedSource::ceb5be0793278911e531765848d15df9>>
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/select/__generated__/index.partial.tsx <<SignedSource::c500f98dd082115d2b2925bb87f29338>>
9
9
  */
10
10
  import type { SelectProps as PlatformSelectProps } from '@atlaskit/select';
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'> & {
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' | 'openMenuOnFocus'> & {
12
12
  isRequired?: boolean;
13
13
  };
@@ -3,13 +3,13 @@
3
3
  *
4
4
  * Extract component prop types from UIKit 2 components - TextAreaProps
5
5
  *
6
- * @codegen <<SignedSource::61c99f41b3cbc06cb74d1a18372da7c2>>
6
+ * @codegen <<SignedSource::122ed066d6fe92e4fc723b29dc348a42>>
7
7
  * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
- * @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/textarea/__generated__/index.partial.tsx <<SignedSource::31172390a51a038e9b40169b4bf76164>>
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/textarea/__generated__/index.partial.tsx <<SignedSource::c5bf29257b775b4b86ea4789cfa24790>>
9
9
  */
10
10
  import React from 'react';
11
11
  import PlatformTextarea from '@atlaskit/textarea';
12
12
  import type { EventHandlerProps } from './types.codegen';
13
13
  type PlatformTextareaProps = React.ComponentProps<typeof PlatformTextarea>;
14
- 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
+ export type TextAreaProps = Pick<PlatformTextareaProps, 'appearance' | 'defaultValue' | 'isCompact' | 'isMonospaced' | 'isReadOnly' | 'maxHeight' | 'minimumRows' | 'placeholder' | 'resize' | 'spellCheck' | 'testId' | 'maxLength' | 'minLength' | 'autoFocus' | 'id' | 'isRequired' | 'isDisabled' | 'isInvalid' | 'onChange' | 'onBlur' | 'onFocus' | 'value' | 'aria-invalid' | 'aria-labelledby' | 'name'> & Pick<EventHandlerProps, 'onChange' | 'onBlur' | 'onFocus'>;
15
15
  export {};
@@ -3,13 +3,13 @@
3
3
  *
4
4
  * Extract component prop types from UIKit 2 components - TextfieldProps
5
5
  *
6
- * @codegen <<SignedSource::583a4d9d2890a1de7d1b157d68159ed1>>
6
+ * @codegen <<SignedSource::250d3abc9d24d3d90be6bf523851de67>>
7
7
  * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
- * @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/textfield/__generated__/index.partial.tsx <<SignedSource::0583c3a4ae53ed30f7b74821919abdb9>>
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/textfield/__generated__/index.partial.tsx <<SignedSource::b1cc4fd107a1b6c756f2daaf460121fc>>
9
9
  */
10
10
  import React from 'react';
11
11
  import PlatformTextfield from '@atlaskit/textfield';
12
12
  import type { EventHandlerProps } from './types.codegen';
13
13
  type PlatformTextfieldProps = React.ComponentProps<typeof PlatformTextfield>;
14
- 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
+ export type TextfieldProps = Pick<PlatformTextfieldProps, 'appearance' | 'elemAfterInput' | 'elemBeforeInput' | 'isCompact' | 'autoFocus' | 'isReadOnly' | 'isMonospaced' | 'placeholder' | 'testId' | 'width' | 'type' | 'defaultValue' | 'min' | 'max' | 'maxLength' | 'minLength' | 'pattern' | 'id' | 'isRequired' | 'isDisabled' | 'isInvalid' | 'onChange' | 'onBlur' | 'onFocus' | 'value' | 'aria-invalid' | 'aria-labelledby' | 'name'> & Pick<EventHandlerProps, 'onChange' | 'onBlur' | 'onFocus'>;
15
15
  export {};
@@ -3,12 +3,12 @@
3
3
  *
4
4
  * Extract component prop types from UIKit 2 components - CalendarProps
5
5
  *
6
- * @codegen <<SignedSource::809fe60e51015ea45199d65e850e76f5>>
6
+ * @codegen <<SignedSource::9a3ee9c4f7fcbd450b16061dab81a6e9>>
7
7
  * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
- * @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/calendar/__generated__/index.partial.tsx <<SignedSource::1a1e92ebb117bd23b5ed2fbbf8f309ff>>
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/calendar/__generated__/index.partial.tsx <<SignedSource::500d3df7d07464aeb6502c6c1e32094f>>
9
9
  */
10
10
  import React from 'react';
11
11
  import PlatformCalendar from '@atlaskit/calendar';
12
12
  type PlatformCalendarProps = React.ComponentProps<typeof PlatformCalendar>;
13
- export type CalendarProps = Pick<PlatformCalendarProps, 'day' | 'defaultDay' | 'defaultMonth' | 'defaultYear' | 'defaultPreviouslySelected' | 'defaultSelected' | 'disabled' | 'disabledDateFilter' | 'maxDate' | 'minDate' | 'nextMonthLabel' | 'onBlur' | 'onChange' | 'onFocus' | 'onSelect' | 'previouslySelected' | 'previousMonthLabel' | 'selected' | 'today' | 'year' | 'locale' | 'testId' | 'weekStartDay' | 'tabIndex'>;
13
+ export type CalendarProps = Pick<PlatformCalendarProps, 'day' | 'defaultDay' | 'defaultMonth' | 'defaultYear' | 'defaultPreviouslySelected' | 'defaultSelected' | 'disabled' | 'maxDate' | 'minDate' | 'nextMonthLabel' | 'onBlur' | 'onChange' | 'onFocus' | 'onSelect' | 'previouslySelected' | 'previousMonthLabel' | 'selected' | 'today' | 'year' | 'locale' | 'testId' | 'weekStartDay' | 'tabIndex'>;
14
14
  export {};
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * Extract component prop types from UIKit 2 components - DatePickerProps
5
5
  *
6
- * @codegen <<SignedSource::31aa010a923433b4bc243613653cb355>>
6
+ * @codegen <<SignedSource::2d2d5119807b0f8ce8c9fc6f6f2fa874>>
7
7
  * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
8
  * @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/datepicker/__generated__/index.partial.tsx <<SignedSource::f46fc2b51471f647b60a3fec382a3f5d>>
9
9
  */
@@ -13,9 +13,9 @@ export interface FieldProps {
13
13
  isRequired: boolean;
14
14
  isDisabled: boolean;
15
15
  isInvalid: boolean;
16
- onChange: (event: any) => any;
17
- onBlur: () => any;
18
- onFocus: () => any;
16
+ onChange: (event: unknown) => void;
17
+ onBlur: (event: unknown) => void;
18
+ onFocus: (event: unknown) => void;
19
19
  value: any;
20
20
  'aria-invalid': 'true' | 'false';
21
21
  'aria-labelledby': string;
@@ -3,12 +3,22 @@
3
3
  *
4
4
  * Extract component prop types from UIKit 2 components - InlineEditProps
5
5
  *
6
- * @codegen <<SignedSource::95bea94f50b42c9241a1fa71ae53d84c>>
6
+ * @codegen <<SignedSource::f17388eefe74a182a96d442f9b8422c4>>
7
7
  * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
- * @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/inline-edit/index.tsx <<SignedSource::da035ef5c02a0c9efdef35e898e20656>>
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/inline-edit/index.tsx <<SignedSource::4dab343f92d21d2637fa75f0a58fb904>>
9
9
  */
10
10
  import React from 'react';
11
11
  import { default as PlatformInlineEdit } from '@atlaskit/inline-edit';
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;
19
+ };
12
20
  export type InlineEditProps = Omit<React.ComponentProps<typeof PlatformInlineEdit>, 'analyticsContext' | 'onConfirm'> & {
13
21
  onConfirm: (value: any) => void;
22
+ editView: (fieldProps: EditViewFieldProps) => React.ReactNode;
14
23
  };
24
+ export {};
@@ -3,9 +3,9 @@
3
3
  *
4
4
  * Extract component prop types from UIKit 2 components - ListItemProps
5
5
  *
6
- * @codegen <<SignedSource::eea5642654758c70eb31a2606729b463>>
6
+ * @codegen <<SignedSource::179940607b5509d5be5cd22c28b202c0>>
7
7
  * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
- * @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/list/listitem.tsx <<SignedSource::e93278695325427d667307c6aefd8eea>>
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/list/listitem.tsx <<SignedSource::979a16db9afd0d737ded8388e6563c2f>>
9
9
  */
10
10
  import React from 'react';
11
11
  export interface ListItemProps {
@@ -3,9 +3,9 @@
3
3
  *
4
4
  * Extract component prop types from UIKit 2 components - ListProps
5
5
  *
6
- * @codegen <<SignedSource::3feee8080c7b3707219a850f5565f712>>
6
+ * @codegen <<SignedSource::c486eb8eaa6f4cfee0b07387f31ddac5>>
7
7
  * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
- * @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/list/list.tsx <<SignedSource::abaa74b57000347ef37668a50d2ad68c>>
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/list/list.tsx <<SignedSource::15041a942a0c0a671c5d60df014ead74>>
9
9
  */
10
10
  import React from 'react';
11
11
  export interface ListProps {
@@ -3,12 +3,14 @@
3
3
  *
4
4
  * Extract component prop types from UIKit 2 components - PopupProps
5
5
  *
6
- * @codegen <<SignedSource::84c0328efa0f3aaecf6db4f7979c70c5>>
6
+ * @codegen <<SignedSource::d3634c51b1efc12b283fe848c37c18cc>>
7
7
  * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
- * @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/popup/index.tsx <<SignedSource::96a06afff36fc59275f3994adcaf5bd0>>
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/popup/index.tsx <<SignedSource::9139dc577b2c62f759ce9545e640a205>>
9
9
  */
10
10
  import React from 'react';
11
11
  import { default as PlatformPopup } from '@atlaskit/popup';
12
12
  export type PopupProps = Omit<React.ComponentProps<typeof PlatformPopup>, 'popupComponent' | 'zIndex' | 'offset' | 'boundary'> & {
13
13
  boundary?: 'clippingParents';
14
+ content: () => React.ReactNode;
15
+ trigger: () => React.ReactNode;
14
16
  };
@@ -3,11 +3,11 @@
3
3
  *
4
4
  * Extract component prop types from UIKit 2 components - SelectProps
5
5
  *
6
- * @codegen <<SignedSource::ab9916727dd913ba15f53678777541b5>>
6
+ * @codegen <<SignedSource::fa4483d9dc0f57bb8387b7f30ad843cb>>
7
7
  * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
- * @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/select/__generated__/index.partial.tsx <<SignedSource::ceb5be0793278911e531765848d15df9>>
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/select/__generated__/index.partial.tsx <<SignedSource::c500f98dd082115d2b2925bb87f29338>>
9
9
  */
10
10
  import type { SelectProps as PlatformSelectProps } from '@atlaskit/select';
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'> & {
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' | 'openMenuOnFocus'> & {
12
12
  isRequired?: boolean;
13
13
  };
@@ -3,13 +3,13 @@
3
3
  *
4
4
  * Extract component prop types from UIKit 2 components - TextAreaProps
5
5
  *
6
- * @codegen <<SignedSource::61c99f41b3cbc06cb74d1a18372da7c2>>
6
+ * @codegen <<SignedSource::122ed066d6fe92e4fc723b29dc348a42>>
7
7
  * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
- * @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/textarea/__generated__/index.partial.tsx <<SignedSource::31172390a51a038e9b40169b4bf76164>>
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/textarea/__generated__/index.partial.tsx <<SignedSource::c5bf29257b775b4b86ea4789cfa24790>>
9
9
  */
10
10
  import React from 'react';
11
11
  import PlatformTextarea from '@atlaskit/textarea';
12
12
  import type { EventHandlerProps } from './types.codegen';
13
13
  type PlatformTextareaProps = React.ComponentProps<typeof PlatformTextarea>;
14
- 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
+ export type TextAreaProps = Pick<PlatformTextareaProps, 'appearance' | 'defaultValue' | 'isCompact' | 'isMonospaced' | 'isReadOnly' | 'maxHeight' | 'minimumRows' | 'placeholder' | 'resize' | 'spellCheck' | 'testId' | 'maxLength' | 'minLength' | 'autoFocus' | 'id' | 'isRequired' | 'isDisabled' | 'isInvalid' | 'onChange' | 'onBlur' | 'onFocus' | 'value' | 'aria-invalid' | 'aria-labelledby' | 'name'> & Pick<EventHandlerProps, 'onChange' | 'onBlur' | 'onFocus'>;
15
15
  export {};
@@ -3,13 +3,13 @@
3
3
  *
4
4
  * Extract component prop types from UIKit 2 components - TextfieldProps
5
5
  *
6
- * @codegen <<SignedSource::583a4d9d2890a1de7d1b157d68159ed1>>
6
+ * @codegen <<SignedSource::250d3abc9d24d3d90be6bf523851de67>>
7
7
  * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
- * @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/textfield/__generated__/index.partial.tsx <<SignedSource::0583c3a4ae53ed30f7b74821919abdb9>>
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/textfield/__generated__/index.partial.tsx <<SignedSource::b1cc4fd107a1b6c756f2daaf460121fc>>
9
9
  */
10
10
  import React from 'react';
11
11
  import PlatformTextfield from '@atlaskit/textfield';
12
12
  import type { EventHandlerProps } from './types.codegen';
13
13
  type PlatformTextfieldProps = React.ComponentProps<typeof PlatformTextfield>;
14
- 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
+ export type TextfieldProps = Pick<PlatformTextfieldProps, 'appearance' | 'elemAfterInput' | 'elemBeforeInput' | 'isCompact' | 'autoFocus' | 'isReadOnly' | 'isMonospaced' | 'placeholder' | 'testId' | 'width' | 'type' | 'defaultValue' | 'min' | 'max' | 'maxLength' | 'minLength' | 'pattern' | 'id' | 'isRequired' | 'isDisabled' | 'isInvalid' | 'onChange' | 'onBlur' | 'onFocus' | 'value' | 'aria-invalid' | 'aria-labelledby' | 'name'> & Pick<EventHandlerProps, 'onChange' | 'onBlur' | 'onFocus'>;
15
15
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/forge-react-types",
3
- "version": "0.26.0",
3
+ "version": "0.27.1",
4
4
  "description": "Component types for Forge UI Kit React components",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -3,9 +3,9 @@
3
3
  *
4
4
  * Extract component prop types from UIKit 2 components - CalendarProps
5
5
  *
6
- * @codegen <<SignedSource::809fe60e51015ea45199d65e850e76f5>>
6
+ * @codegen <<SignedSource::9a3ee9c4f7fcbd450b16061dab81a6e9>>
7
7
  * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
- * @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/calendar/__generated__/index.partial.tsx <<SignedSource::1a1e92ebb117bd23b5ed2fbbf8f309ff>>
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/calendar/__generated__/index.partial.tsx <<SignedSource::500d3df7d07464aeb6502c6c1e32094f>>
9
9
  */
10
10
  import React from 'react';
11
11
  import PlatformCalendar from '@atlaskit/calendar';
@@ -14,5 +14,5 @@ type PlatformCalendarProps = React.ComponentProps<typeof PlatformCalendar>;
14
14
 
15
15
  export type CalendarProps = Pick<
16
16
  PlatformCalendarProps,
17
- 'day' | 'defaultDay' | 'defaultMonth' | 'defaultYear' | 'defaultPreviouslySelected' | 'defaultSelected' | 'disabled' | 'disabledDateFilter' | 'maxDate' | 'minDate' | 'nextMonthLabel' | 'onBlur' | 'onChange' | 'onFocus' | 'onSelect' | 'previouslySelected' | 'previousMonthLabel' | 'selected' | 'today' | 'year' | 'locale' | 'testId' | 'weekStartDay' | 'tabIndex'
17
+ 'day' | 'defaultDay' | 'defaultMonth' | 'defaultYear' | 'defaultPreviouslySelected' | 'defaultSelected' | 'disabled' | 'maxDate' | 'minDate' | 'nextMonthLabel' | 'onBlur' | 'onChange' | 'onFocus' | 'onSelect' | 'previouslySelected' | 'previousMonthLabel' | 'selected' | 'today' | 'year' | 'locale' | 'testId' | 'weekStartDay' | 'tabIndex'
18
18
  >;
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * Extract component prop types from UIKit 2 components - DatePickerProps
5
5
  *
6
- * @codegen <<SignedSource::31aa010a923433b4bc243613653cb355>>
6
+ * @codegen <<SignedSource::2d2d5119807b0f8ce8c9fc6f6f2fa874>>
7
7
  * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
8
  * @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/datepicker/__generated__/index.partial.tsx <<SignedSource::f46fc2b51471f647b60a3fec382a3f5d>>
9
9
  */
@@ -14,9 +14,9 @@ export interface FieldProps {
14
14
  isRequired: boolean;
15
15
  isDisabled: boolean;
16
16
  isInvalid: boolean;
17
- onChange: (event: any) => any;
18
- onBlur: () => any;
19
- onFocus: () => any;
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;
@@ -3,17 +3,27 @@
3
3
  *
4
4
  * Extract component prop types from UIKit 2 components - InlineEditProps
5
5
  *
6
- * @codegen <<SignedSource::95bea94f50b42c9241a1fa71ae53d84c>>
6
+ * @codegen <<SignedSource::f17388eefe74a182a96d442f9b8422c4>>
7
7
  * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
- * @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/inline-edit/index.tsx <<SignedSource::da035ef5c02a0c9efdef35e898e20656>>
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/inline-edit/index.tsx <<SignedSource::4dab343f92d21d2637fa75f0a58fb904>>
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
24
  'analyticsContext' | 'onConfirm'
16
25
  > & {
17
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
18
27
  onConfirm: (value: any) => void;
28
+ editView: (fieldProps: EditViewFieldProps) => React.ReactNode;
19
29
  };
@@ -3,9 +3,9 @@
3
3
  *
4
4
  * Extract component prop types from UIKit 2 components - ListItemProps
5
5
  *
6
- * @codegen <<SignedSource::eea5642654758c70eb31a2606729b463>>
6
+ * @codegen <<SignedSource::179940607b5509d5be5cd22c28b202c0>>
7
7
  * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
- * @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/list/listitem.tsx <<SignedSource::e93278695325427d667307c6aefd8eea>>
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/list/listitem.tsx <<SignedSource::979a16db9afd0d737ded8388e6563c2f>>
9
9
  */
10
10
  import React from 'react';
11
11
 
@@ -3,9 +3,9 @@
3
3
  *
4
4
  * Extract component prop types from UIKit 2 components - ListProps
5
5
  *
6
- * @codegen <<SignedSource::3feee8080c7b3707219a850f5565f712>>
6
+ * @codegen <<SignedSource::c486eb8eaa6f4cfee0b07387f31ddac5>>
7
7
  * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
- * @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/list/list.tsx <<SignedSource::abaa74b57000347ef37668a50d2ad68c>>
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/list/list.tsx <<SignedSource::15041a942a0c0a671c5d60df014ead74>>
9
9
  */
10
10
  import React from 'react';
11
11
 
@@ -3,9 +3,9 @@
3
3
  *
4
4
  * Extract component prop types from UIKit 2 components - PopupProps
5
5
  *
6
- * @codegen <<SignedSource::84c0328efa0f3aaecf6db4f7979c70c5>>
6
+ * @codegen <<SignedSource::d3634c51b1efc12b283fe848c37c18cc>>
7
7
  * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
- * @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/popup/index.tsx <<SignedSource::96a06afff36fc59275f3994adcaf5bd0>>
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/popup/index.tsx <<SignedSource::9139dc577b2c62f759ce9545e640a205>>
9
9
  */
10
10
  import React from 'react';
11
11
  import { default as PlatformPopup } from '@atlaskit/popup';
@@ -15,4 +15,6 @@ export type PopupProps = Omit<
15
15
  'popupComponent' | 'zIndex' | 'offset' | 'boundary'
16
16
  > & {
17
17
  boundary?: 'clippingParents';
18
+ content: () => React.ReactNode;
19
+ trigger: () => React.ReactNode;
18
20
  };
@@ -1,18 +1,16 @@
1
- /* eslint @repo/internal/codegen/signed-source-integrity: "warn" */
2
-
3
1
  /**
4
2
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
5
3
  *
6
4
  * Extract component prop types from UIKit 2 components - SelectProps
7
5
  *
8
- * @codegen <<SignedSource::ab9916727dd913ba15f53678777541b5>>
6
+ * @codegen <<SignedSource::fa4483d9dc0f57bb8387b7f30ad843cb>>
9
7
  * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
10
- * @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/select/__generated__/index.partial.tsx <<SignedSource::ceb5be0793278911e531765848d15df9>>
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/select/__generated__/index.partial.tsx <<SignedSource::c500f98dd082115d2b2925bb87f29338>>
11
9
  */
12
10
  import type { SelectProps as PlatformSelectProps } from '@atlaskit/select';
13
11
 
14
12
  export type SelectProps = Pick<
15
13
  PlatformSelectProps<any, true | false>,
16
14
  'spacing' | 'appearance' | 'testId' | 'autoFocus' | 'defaultValue' | 'closeMenuOnSelect' | 'inputValue' | 'inputId' | 'isClearable' | 'isLoading' | 'isMulti' | 'isSearchable' | 'menuIsOpen' | 'onInputChange' | 'options' | 'placeholder' | 'onChange'
17
- | 'id' | 'isDisabled' | 'isInvalid' | 'onBlur' | 'onFocus' | 'value' | 'aria-invalid' | 'aria-labelledby' | 'name'
15
+ | 'id' | 'isDisabled' | 'isInvalid' | 'onBlur' | 'onFocus' | 'value' | 'aria-invalid' | 'aria-labelledby' | 'name' | 'openMenuOnFocus'
18
16
  > & { isRequired?: boolean };
@@ -3,9 +3,9 @@
3
3
  *
4
4
  * Extract component prop types from UIKit 2 components - TextAreaProps
5
5
  *
6
- * @codegen <<SignedSource::61c99f41b3cbc06cb74d1a18372da7c2>>
6
+ * @codegen <<SignedSource::122ed066d6fe92e4fc723b29dc348a42>>
7
7
  * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
- * @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/textarea/__generated__/index.partial.tsx <<SignedSource::31172390a51a038e9b40169b4bf76164>>
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/textarea/__generated__/index.partial.tsx <<SignedSource::c5bf29257b775b4b86ea4789cfa24790>>
9
9
  */
10
10
  import React from 'react';
11
11
  import PlatformTextarea from '@atlaskit/textarea';
@@ -15,6 +15,6 @@ type PlatformTextareaProps = React.ComponentProps<typeof PlatformTextarea>;
15
15
 
16
16
  export type TextAreaProps = Pick<
17
17
  PlatformTextareaProps,
18
- 'appearance' | 'defaultValue' | 'isCompact' | 'isMonospaced' | 'isReadOnly' | 'maxHeight' | 'minimumRows' | 'placeholder' | 'resize' | 'spellCheck' | 'testId' | 'maxLength' | 'minLength'
18
+ 'appearance' | 'defaultValue' | 'isCompact' | 'isMonospaced' | 'isReadOnly' | 'maxHeight' | 'minimumRows' | 'placeholder' | 'resize' | 'spellCheck' | 'testId' | 'maxLength' | 'minLength' | 'autoFocus'
19
19
  | 'id' | 'isRequired' | 'isDisabled' | 'isInvalid' | 'onChange' | 'onBlur' | 'onFocus' | 'value' | 'aria-invalid' | 'aria-labelledby' | 'name'
20
20
  > & Pick<EventHandlerProps, 'onChange' | 'onBlur' | 'onFocus'>;
@@ -3,9 +3,9 @@
3
3
  *
4
4
  * Extract component prop types from UIKit 2 components - TextfieldProps
5
5
  *
6
- * @codegen <<SignedSource::583a4d9d2890a1de7d1b157d68159ed1>>
6
+ * @codegen <<SignedSource::250d3abc9d24d3d90be6bf523851de67>>
7
7
  * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
- * @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/textfield/__generated__/index.partial.tsx <<SignedSource::0583c3a4ae53ed30f7b74821919abdb9>>
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/textfield/__generated__/index.partial.tsx <<SignedSource::b1cc4fd107a1b6c756f2daaf460121fc>>
9
9
  */
10
10
  import React from 'react';
11
11
  import PlatformTextfield from '@atlaskit/textfield';
@@ -15,6 +15,6 @@ type PlatformTextfieldProps = React.ComponentProps<typeof PlatformTextfield>;
15
15
 
16
16
  export type TextfieldProps = Pick<
17
17
  PlatformTextfieldProps,
18
- 'appearance' | 'elemAfterInput' | 'elemBeforeInput' | 'isCompact' | 'isReadOnly' | 'isMonospaced' | 'placeholder' | 'testId' | 'width' | 'type' | 'defaultValue' | 'min' | 'max' | 'maxLength' | 'minLength' | 'pattern'
18
+ 'appearance' | 'elemAfterInput' | 'elemBeforeInput' | 'isCompact' | 'autoFocus' | 'isReadOnly' | 'isMonospaced' | 'placeholder' | 'testId' | 'width' | 'type' | 'defaultValue' | 'min' | 'max' | 'maxLength' | 'minLength' | 'pattern'
19
19
  | 'id' | 'isRequired' | 'isDisabled' | 'isInvalid' | 'onChange' | 'onBlur' | 'onFocus' | 'value' | 'aria-invalid' | 'aria-labelledby' | 'name'
20
20
  > & Pick<EventHandlerProps, 'onChange' | 'onBlur' | 'onFocus'>;
@@ -3,9 +3,9 @@
3
3
  *
4
4
  * Extract component prop types from UIKit 2 components - TimePickerProps
5
5
  *
6
- * @codegen <<SignedSource::a11aa419ac642ea0ddca74ef6b84f350>>
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::2e6a672ddad4f76e568e3236e7bd4e8e>>
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: any) => any;
18
- onBlur: () => any;
19
- onFocus: () => any;
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;