@atlaskit/forge-react-types 0.34.13 → 0.34.15

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 (107) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/cjs/components/__generated__/BoxProps.codegen.js +2 -2
  3. package/dist/es2019/components/__generated__/BoxProps.codegen.js +2 -2
  4. package/dist/esm/components/__generated__/BoxProps.codegen.js +2 -2
  5. package/dist/types/components/__generated__/BadgeProps.codegen.d.ts +2 -2
  6. package/dist/types/components/__generated__/BleedProps.codegen.d.ts +6 -2
  7. package/dist/types/components/__generated__/BoxProps.codegen.d.ts +3 -3
  8. package/dist/types/components/__generated__/ButtonGroupProps.codegen.d.ts +6 -2
  9. package/dist/types/components/__generated__/ButtonProps.codegen.d.ts +3 -2
  10. package/dist/types/components/__generated__/CalendarProps.codegen.d.ts +6 -2
  11. package/dist/types/components/__generated__/CheckboxProps.codegen.d.ts +6 -2
  12. package/dist/types/components/__generated__/CodeBlockProps.codegen.d.ts +6 -2
  13. package/dist/types/components/__generated__/CodeProps.codegen.d.ts +6 -2
  14. package/dist/types/components/__generated__/DatePickerProps.codegen.d.ts +6 -2
  15. package/dist/types/components/__generated__/DynamicTableProps.codegen.d.ts +6 -2
  16. package/dist/types/components/__generated__/EmptyStateProps.codegen.d.ts +6 -2
  17. package/dist/types/components/__generated__/ErrorMessageProps.codegen.d.ts +6 -2
  18. package/dist/types/components/__generated__/FlexProps.codegen.d.ts +6 -2
  19. package/dist/types/components/__generated__/FormFooterProps.codegen.d.ts +6 -2
  20. package/dist/types/components/__generated__/FormHeaderProps.codegen.d.ts +6 -2
  21. package/dist/types/components/__generated__/FormSectionProps.codegen.d.ts +6 -2
  22. package/dist/types/components/__generated__/GridProps.codegen.d.ts +6 -2
  23. package/dist/types/components/__generated__/HeadingProps.codegen.d.ts +6 -2
  24. package/dist/types/components/__generated__/HelperMessageProps.codegen.d.ts +6 -2
  25. package/dist/types/components/__generated__/InlineProps.codegen.d.ts +6 -2
  26. package/dist/types/components/__generated__/LabelProps.codegen.d.ts +6 -2
  27. package/dist/types/components/__generated__/LinkButtonProps.codegen.d.ts +3 -2
  28. package/dist/types/components/__generated__/LoadingButtonProps.codegen.d.ts +6 -2
  29. package/dist/types/components/__generated__/LozengeProps.codegen.d.ts +6 -2
  30. package/dist/types/components/__generated__/ModalBodyProps.codegen.d.ts +6 -2
  31. package/dist/types/components/__generated__/ModalFooterProps.codegen.d.ts +6 -2
  32. package/dist/types/components/__generated__/ModalHeaderProps.codegen.d.ts +6 -2
  33. package/dist/types/components/__generated__/ModalProps.codegen.d.ts +6 -2
  34. package/dist/types/components/__generated__/ModalTitleProps.codegen.d.ts +6 -2
  35. package/dist/types/components/__generated__/ModalTransitionProps.codegen.d.ts +6 -2
  36. package/dist/types/components/__generated__/ProgressBarProps.codegen.d.ts +6 -2
  37. package/dist/types/components/__generated__/ProgressTrackerProps.codegen.d.ts +6 -2
  38. package/dist/types/components/__generated__/ValidMessageProps.codegen.d.ts +6 -2
  39. package/dist/types-ts4.5/components/__generated__/BadgeProps.codegen.d.ts +2 -2
  40. package/dist/types-ts4.5/components/__generated__/BleedProps.codegen.d.ts +6 -2
  41. package/dist/types-ts4.5/components/__generated__/BoxProps.codegen.d.ts +3 -3
  42. package/dist/types-ts4.5/components/__generated__/ButtonGroupProps.codegen.d.ts +6 -2
  43. package/dist/types-ts4.5/components/__generated__/ButtonProps.codegen.d.ts +3 -2
  44. package/dist/types-ts4.5/components/__generated__/CalendarProps.codegen.d.ts +6 -2
  45. package/dist/types-ts4.5/components/__generated__/CheckboxProps.codegen.d.ts +6 -2
  46. package/dist/types-ts4.5/components/__generated__/CodeBlockProps.codegen.d.ts +6 -2
  47. package/dist/types-ts4.5/components/__generated__/CodeProps.codegen.d.ts +6 -2
  48. package/dist/types-ts4.5/components/__generated__/DatePickerProps.codegen.d.ts +6 -2
  49. package/dist/types-ts4.5/components/__generated__/DynamicTableProps.codegen.d.ts +6 -2
  50. package/dist/types-ts4.5/components/__generated__/EmptyStateProps.codegen.d.ts +6 -2
  51. package/dist/types-ts4.5/components/__generated__/ErrorMessageProps.codegen.d.ts +6 -2
  52. package/dist/types-ts4.5/components/__generated__/FlexProps.codegen.d.ts +6 -2
  53. package/dist/types-ts4.5/components/__generated__/FormFooterProps.codegen.d.ts +6 -2
  54. package/dist/types-ts4.5/components/__generated__/FormHeaderProps.codegen.d.ts +6 -2
  55. package/dist/types-ts4.5/components/__generated__/FormSectionProps.codegen.d.ts +6 -2
  56. package/dist/types-ts4.5/components/__generated__/GridProps.codegen.d.ts +6 -2
  57. package/dist/types-ts4.5/components/__generated__/HeadingProps.codegen.d.ts +6 -2
  58. package/dist/types-ts4.5/components/__generated__/HelperMessageProps.codegen.d.ts +6 -2
  59. package/dist/types-ts4.5/components/__generated__/InlineProps.codegen.d.ts +6 -2
  60. package/dist/types-ts4.5/components/__generated__/LabelProps.codegen.d.ts +6 -2
  61. package/dist/types-ts4.5/components/__generated__/LinkButtonProps.codegen.d.ts +3 -2
  62. package/dist/types-ts4.5/components/__generated__/LoadingButtonProps.codegen.d.ts +6 -2
  63. package/dist/types-ts4.5/components/__generated__/LozengeProps.codegen.d.ts +6 -2
  64. package/dist/types-ts4.5/components/__generated__/ModalBodyProps.codegen.d.ts +6 -2
  65. package/dist/types-ts4.5/components/__generated__/ModalFooterProps.codegen.d.ts +6 -2
  66. package/dist/types-ts4.5/components/__generated__/ModalHeaderProps.codegen.d.ts +6 -2
  67. package/dist/types-ts4.5/components/__generated__/ModalProps.codegen.d.ts +6 -2
  68. package/dist/types-ts4.5/components/__generated__/ModalTitleProps.codegen.d.ts +6 -2
  69. package/dist/types-ts4.5/components/__generated__/ModalTransitionProps.codegen.d.ts +6 -2
  70. package/dist/types-ts4.5/components/__generated__/ProgressBarProps.codegen.d.ts +6 -2
  71. package/dist/types-ts4.5/components/__generated__/ProgressTrackerProps.codegen.d.ts +6 -2
  72. package/dist/types-ts4.5/components/__generated__/ValidMessageProps.codegen.d.ts +6 -2
  73. package/package.json +3 -3
  74. package/src/components/__generated__/BadgeProps.codegen.tsx +2 -2
  75. package/src/components/__generated__/BleedProps.codegen.tsx +8 -3
  76. package/src/components/__generated__/BoxProps.codegen.tsx +4 -9
  77. package/src/components/__generated__/ButtonGroupProps.codegen.tsx +8 -3
  78. package/src/components/__generated__/ButtonProps.codegen.tsx +5 -3
  79. package/src/components/__generated__/CalendarProps.codegen.tsx +8 -3
  80. package/src/components/__generated__/CheckboxProps.codegen.tsx +8 -3
  81. package/src/components/__generated__/CodeBlockProps.codegen.tsx +8 -3
  82. package/src/components/__generated__/CodeProps.codegen.tsx +8 -3
  83. package/src/components/__generated__/DatePickerProps.codegen.tsx +8 -3
  84. package/src/components/__generated__/DynamicTableProps.codegen.tsx +32 -8
  85. package/src/components/__generated__/EmptyStateProps.codegen.tsx +8 -3
  86. package/src/components/__generated__/ErrorMessageProps.codegen.tsx +8 -3
  87. package/src/components/__generated__/FlexProps.codegen.tsx +8 -3
  88. package/src/components/__generated__/FormFooterProps.codegen.tsx +8 -3
  89. package/src/components/__generated__/FormHeaderProps.codegen.tsx +8 -3
  90. package/src/components/__generated__/FormSectionProps.codegen.tsx +8 -3
  91. package/src/components/__generated__/GridProps.codegen.tsx +8 -3
  92. package/src/components/__generated__/HeadingProps.codegen.tsx +8 -3
  93. package/src/components/__generated__/HelperMessageProps.codegen.tsx +8 -3
  94. package/src/components/__generated__/InlineProps.codegen.tsx +8 -3
  95. package/src/components/__generated__/LabelProps.codegen.tsx +10 -3
  96. package/src/components/__generated__/LinkButtonProps.codegen.tsx +5 -3
  97. package/src/components/__generated__/LoadingButtonProps.codegen.tsx +8 -3
  98. package/src/components/__generated__/LozengeProps.codegen.tsx +8 -3
  99. package/src/components/__generated__/ModalBodyProps.codegen.tsx +8 -3
  100. package/src/components/__generated__/ModalFooterProps.codegen.tsx +8 -3
  101. package/src/components/__generated__/ModalHeaderProps.codegen.tsx +8 -3
  102. package/src/components/__generated__/ModalProps.codegen.tsx +8 -3
  103. package/src/components/__generated__/ModalTitleProps.codegen.tsx +8 -3
  104. package/src/components/__generated__/ModalTransitionProps.codegen.tsx +8 -3
  105. package/src/components/__generated__/ProgressBarProps.codegen.tsx +8 -3
  106. package/src/components/__generated__/ProgressTrackerProps.codegen.tsx +14 -15
  107. package/src/components/__generated__/ValidMessageProps.codegen.tsx +8 -3
@@ -3,11 +3,15 @@
3
3
  *
4
4
  * Extract component prop types from UIKit 2 components - LabelProps
5
5
  *
6
- * @codegen <<SignedSource::3ffcab7388acd62d080e9bd44c09ee83>>
6
+ * @codegen <<SignedSource::0a894a2ad4f4410a2c67f12f0287dbcd>>
7
7
  * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
- * @codegenDependency ../../../../forge-ui/src/components/UIKit/form/__generated__/label.partial.tsx <<SignedSource::76a9bd0b52bc4cb5531064a7495532d5>>
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit/form/__generated__/label.partial.tsx <<SignedSource::60bad4561265206e7c10d92a99fce9f4>>
9
9
  */
10
10
  import type { LabelProps as PlatformLabelProps } from '@atlaskit/form';
11
11
  export type LabelProps = Pick<PlatformLabelProps, 'children' | 'testId' | 'id'> & {
12
12
  labelFor: string;
13
13
  };
14
+ /**
15
+ * A form allows users to input information.
16
+ */
17
+ export type TLabel<T> = (props: LabelProps) => T;
@@ -3,9 +3,9 @@
3
3
  *
4
4
  * Extract component prop types from UIKit 2 components - LinkButtonProps
5
5
  *
6
- * @codegen <<SignedSource::8ceca7ac3238c0f6b6d222d171994cf3>>
6
+ * @codegen <<SignedSource::ac79b85bde2efadf2186ea5acd6d267e>>
7
7
  * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
- * @codegenDependency ../../../../forge-ui/src/components/UIKit/button/__generated__/link-button.partial.tsx <<SignedSource::6977fab8ea9a5478c26d6e1e77eab843>>
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit/button/__generated__/link-button.partial.tsx <<SignedSource::4f0e6eb251c01a13ba006b3d7569820d>>
9
9
  */
10
10
  import type { LinkButtonProps as PlatformLinkButtonProps } from '@atlaskit/button/new';
11
11
  import React from 'react';
@@ -15,3 +15,4 @@ export type LinkButtonProps = Pick<PlatformLinkButtonProps, 'children' | 'target
15
15
  appearance?: PlatformLinkButtonProps['appearance'] | 'link' | 'subtle-link';
16
16
  spacing?: PlatformLinkButtonProps['spacing'] | 'none';
17
17
  };
18
+ export type TLinkButton<T> = (props: LinkButtonProps) => T;
@@ -3,12 +3,16 @@
3
3
  *
4
4
  * Extract component prop types from UIKit 2 components - LoadingButtonProps
5
5
  *
6
- * @codegen <<SignedSource::8dc34a32e6ef9d2e34dedf479351fe9b>>
6
+ * @codegen <<SignedSource::58521a43391f996afe6923d5a591a82c>>
7
7
  * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
- * @codegenDependency ../../../../forge-ui/src/components/UIKit/button/__generated__/loading-button.partial.tsx <<SignedSource::2ac2d29e443bfeb014c122223febd49b>>
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit/button/__generated__/loading-button.partial.tsx <<SignedSource::078e02aff0fd36fb6bbf64711f0c5490>>
9
9
  */
10
10
  import React from 'react';
11
11
  import { LoadingButton as PlatformLoadingButton } from '@atlaskit/button';
12
12
  type PlatformLoadingButtonProps = React.ComponentProps<typeof PlatformLoadingButton>;
13
13
  export type LoadingButtonProps = Pick<PlatformLoadingButtonProps, 'children' | 'appearance' | 'autoFocus' | 'isDisabled' | 'isSelected' | 'onBlur' | 'onClick' | 'onFocus' | 'spacing' | 'testId' | 'shouldFitContainer' | 'type' | 'isLoading'>;
14
+ /**
15
+ * A button triggers an event or action. They let users know what will happen next.
16
+ */
17
+ export type TLoadingButton<T> = (props: LoadingButtonProps) => T;
14
18
  export {};
@@ -3,12 +3,16 @@
3
3
  *
4
4
  * Extract component prop types from UIKit 2 components - LozengeProps
5
5
  *
6
- * @codegen <<SignedSource::b3634e72b44625d28b588db7ff045c9d>>
6
+ * @codegen <<SignedSource::010c29755ec75417d1649af3008801cd>>
7
7
  * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
- * @codegenDependency ../../../../forge-ui/src/components/UIKit/lozenge/__generated__/index.partial.tsx <<SignedSource::c83364d769b7168eaaa21f1694e35702>>
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit/lozenge/__generated__/index.partial.tsx <<SignedSource::20810ed29278b94c2bf310c8d80efdf8>>
9
9
  */
10
10
  import React from 'react';
11
11
  import PlatformLozenge from '@atlaskit/lozenge';
12
12
  type PlatformLozengeProps = React.ComponentProps<typeof PlatformLozenge>;
13
13
  export type LozengeProps = Pick<PlatformLozengeProps, 'appearance' | 'children' | 'isBold' | 'maxWidth' | 'testId'>;
14
+ /**
15
+ * A lozenge is a visual indicator used to highlight an item's status for quick recognition.
16
+ */
17
+ export type TLozenge<T> = (props: LozengeProps) => T;
14
18
  export {};
@@ -3,12 +3,16 @@
3
3
  *
4
4
  * Extract component prop types from UIKit 2 components - ModalBodyProps
5
5
  *
6
- * @codegen <<SignedSource::527cab5934b668b8e86db81b839882b6>>
6
+ * @codegen <<SignedSource::f6704cd3ad5b9e900de7e400b133ad53>>
7
7
  * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
- * @codegenDependency ../../../../forge-ui/src/components/UIKit/modal/__generated__/modal-body.partial.tsx <<SignedSource::3afbe2d34b967a182c9e3517f8ada448>>
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit/modal/__generated__/modal-body.partial.tsx <<SignedSource::0fe5715703e89dfc44882777af179380>>
9
9
  */
10
10
  import React from 'react';
11
11
  import { ModalBody as PlatformModalBody } from '@atlaskit/modal-dialog';
12
12
  type PlatformModalBodyProps = React.ComponentProps<typeof PlatformModalBody>;
13
13
  export type ModalBodyProps = Pick<PlatformModalBodyProps, 'children' | 'testId'>;
14
+ /**
15
+ * A modal dialog displays content that requires user interaction, in a layer above the page.
16
+ */
17
+ export type TModalBody<T> = (props: ModalBodyProps) => T;
14
18
  export {};
@@ -3,12 +3,16 @@
3
3
  *
4
4
  * Extract component prop types from UIKit 2 components - ModalFooterProps
5
5
  *
6
- * @codegen <<SignedSource::7657939e947e8a4d66010076aefb0f8d>>
6
+ * @codegen <<SignedSource::05f974150dc64ca59a44eb0b121cf773>>
7
7
  * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
- * @codegenDependency ../../../../forge-ui/src/components/UIKit/modal/__generated__/modal-footer.partial.tsx <<SignedSource::b986e724d7de17ec51a6549e5a8b0e67>>
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit/modal/__generated__/modal-footer.partial.tsx <<SignedSource::fd05c385dd42dfcac111c9ddd8c13a28>>
9
9
  */
10
10
  import React from 'react';
11
11
  import { ModalFooter as PlatformModalFooter } from '@atlaskit/modal-dialog';
12
12
  type PlatformModalFooterProps = React.ComponentProps<typeof PlatformModalFooter>;
13
13
  export type ModalFooterProps = Pick<PlatformModalFooterProps, 'children' | 'testId'>;
14
+ /**
15
+ * A modal dialog displays content that requires user interaction, in a layer above the page.
16
+ */
17
+ export type TModalFooter<T> = (props: ModalFooterProps) => T;
14
18
  export {};
@@ -3,12 +3,16 @@
3
3
  *
4
4
  * Extract component prop types from UIKit 2 components - ModalHeaderProps
5
5
  *
6
- * @codegen <<SignedSource::1b833d542df0d0794bdab0484cb7e7af>>
6
+ * @codegen <<SignedSource::c3bc5fde61f2e698aba9b95565c0d268>>
7
7
  * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
- * @codegenDependency ../../../../forge-ui/src/components/UIKit/modal/__generated__/modal-header.partial.tsx <<SignedSource::c7406471b8da5362a6b844effff24ce4>>
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit/modal/__generated__/modal-header.partial.tsx <<SignedSource::932c9f34f6cd6919fe5b8bcf072745dc>>
9
9
  */
10
10
  import React from 'react';
11
11
  import { ModalHeader as PlatformModalHeader } from '@atlaskit/modal-dialog';
12
12
  type PlatformModalHeaderProps = React.ComponentProps<typeof PlatformModalHeader>;
13
13
  export type ModalHeaderProps = Pick<PlatformModalHeaderProps, 'children' | 'testId'>;
14
+ /**
15
+ * A modal dialog displays content that requires user interaction, in a layer above the page.
16
+ */
17
+ export type TModalHeader<T> = (props: ModalHeaderProps) => T;
14
18
  export {};
@@ -3,12 +3,16 @@
3
3
  *
4
4
  * Extract component prop types from UIKit 2 components - ModalProps
5
5
  *
6
- * @codegen <<SignedSource::a21036e321653b2b4f2dcdcc23017b42>>
6
+ * @codegen <<SignedSource::cf8fdc3365a68de44b1fe4995c306218>>
7
7
  * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
- * @codegenDependency ../../../../forge-ui/src/components/UIKit/modal/__generated__/index.partial.tsx <<SignedSource::ca1ac57c4bc55db851325b0ab1ff0021>>
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit/modal/__generated__/index.partial.tsx <<SignedSource::3bf621bc2d484c5789face984482559d>>
9
9
  */
10
10
  import React from 'react';
11
11
  import PlatformModalDialog from '@atlaskit/modal-dialog';
12
12
  type PlatformModalDialogProps = React.ComponentProps<typeof PlatformModalDialog>;
13
13
  export type ModalProps = Pick<PlatformModalDialogProps, 'autoFocus' | 'children' | 'height' | 'width' | 'onClose' | 'shouldScrollInViewport' | 'label' | 'testId'>;
14
+ /**
15
+ * A modal dialog displays content that requires user interaction, in a layer above the page.
16
+ */
17
+ export type TModal<T> = (props: ModalProps) => T;
14
18
  export {};
@@ -3,12 +3,16 @@
3
3
  *
4
4
  * Extract component prop types from UIKit 2 components - ModalTitleProps
5
5
  *
6
- * @codegen <<SignedSource::d308ee8af4d7667e94b4fdfdb37d2777>>
6
+ * @codegen <<SignedSource::18cc7e23ba187aae2f8e2d8631801b53>>
7
7
  * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
- * @codegenDependency ../../../../forge-ui/src/components/UIKit/modal/__generated__/modal-title.partial.tsx <<SignedSource::49055cff47790a5b805a36ec28683d0d>>
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit/modal/__generated__/modal-title.partial.tsx <<SignedSource::996c8299a68e072c936b0023b61bdc20>>
9
9
  */
10
10
  import React from 'react';
11
11
  import { ModalTitle as PlatformModalTitle } from '@atlaskit/modal-dialog';
12
12
  type PlatformModalTitleProps = React.ComponentProps<typeof PlatformModalTitle>;
13
13
  export type ModalTitleProps = Pick<PlatformModalTitleProps, 'appearance' | 'children' | 'isMultiline' | 'testId'>;
14
+ /**
15
+ * A modal dialog displays content that requires user interaction, in a layer above the page.
16
+ */
17
+ export type TModalTitle<T> = (props: ModalTitleProps) => T;
14
18
  export {};
@@ -3,12 +3,16 @@
3
3
  *
4
4
  * Extract component prop types from UIKit 2 components - ModalTransitionProps
5
5
  *
6
- * @codegen <<SignedSource::37d78f156fe7b226801398f16693dd1d>>
6
+ * @codegen <<SignedSource::9d4490cd7b1938efec7181c83258a4c5>>
7
7
  * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
- * @codegenDependency ../../../../forge-ui/src/components/UIKit/modal/__generated__/modal-transition.partial.tsx <<SignedSource::910582b1aa75eb00197dd07ca5ae1d34>>
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit/modal/__generated__/modal-transition.partial.tsx <<SignedSource::7f1f7ea64369d3e65533dffbbcec26d7>>
9
9
  */
10
10
  import React from 'react';
11
11
  import { ModalTransition as PlatformModalTransition } from '@atlaskit/modal-dialog';
12
12
  type PlatformModalTransitionProps = React.ComponentProps<typeof PlatformModalTransition>;
13
13
  export type ModalTransitionProps = Pick<PlatformModalTransitionProps, 'children'>;
14
+ /**
15
+ * A modal dialog displays content that requires user interaction, in a layer above the page.
16
+ */
17
+ export type TModalTransition<T> = (props: ModalTransitionProps) => T;
14
18
  export {};
@@ -3,12 +3,16 @@
3
3
  *
4
4
  * Extract component prop types from UIKit 2 components - ProgressBarProps
5
5
  *
6
- * @codegen <<SignedSource::3b95c77dc51e11040992d0b2bd139eaf>>
6
+ * @codegen <<SignedSource::311fb087e468c54b326bbb425bd62594>>
7
7
  * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
- * @codegenDependency ../../../../forge-ui/src/components/UIKit/progressbar/__generated__/index.partial.tsx <<SignedSource::3451b31d9bf4f3a048e5a4143c69ba20>>
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit/progressbar/__generated__/index.partial.tsx <<SignedSource::aafdad776f93c659dc29fdb27eca9027>>
9
9
  */
10
10
  import React from 'react';
11
11
  import PlatformProgressBar from '@atlaskit/progress-bar';
12
12
  type PlatformProgressBarProps = React.ComponentProps<typeof PlatformProgressBar>;
13
13
  export type ProgressBarProps = Pick<PlatformProgressBarProps, 'appearance' | 'ariaLabel' | 'isIndeterminate' | 'testId' | 'value'>;
14
+ /**
15
+ * A progress bar communicates the status of a system process.
16
+ */
17
+ export type TProgressBar<T> = (props: ProgressBarProps) => T;
14
18
  export {};
@@ -3,13 +3,17 @@
3
3
  *
4
4
  * Extract component prop types from UIKit 2 components - ProgressTrackerProps
5
5
  *
6
- * @codegen <<SignedSource::23a60b1bb4138183b2f8cc16df4000e3>>
6
+ * @codegen <<SignedSource::936e27b6592ef14e79d5fe0a336ceb81>>
7
7
  * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
- * @codegenDependency ../../../../forge-ui/src/components/UIKit/progresstracker/__generated__/index.partial.tsx <<SignedSource::889025b24913a7379a30cc87547f6292>>
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit/progresstracker/__generated__/index.partial.tsx <<SignedSource::50d000e383a00beab96a51973f57c769>>
9
9
  */
10
10
  import type { ProgressTrackerProps as PlatformProgressTrackerProps, Stage as PlatformStage } from '@atlaskit/progress-tracker';
11
11
  type Stage = Pick<PlatformStage, 'id' | 'label' | 'percentageComplete' | 'status' | 'onClick'>;
12
12
  export type ProgressTrackerProps = Pick<PlatformProgressTrackerProps, 'label' | 'testId'> & Partial<Pick<PlatformProgressTrackerProps, 'animated' | 'spacing'>> & {
13
13
  items: Array<Stage>;
14
14
  };
15
+ /**
16
+ * A progress tracker displays the steps and progress through a journey.
17
+ */
18
+ export type TProgressTracker<T> = (props: ProgressTrackerProps) => T;
15
19
  export {};
@@ -3,12 +3,16 @@
3
3
  *
4
4
  * Extract component prop types from UIKit 2 components - ValidMessageProps
5
5
  *
6
- * @codegen <<SignedSource::8b841ea2daeeaa02b253b3ceba5d70b1>>
6
+ * @codegen <<SignedSource::40ef2ece49a84181a994ff221e42cc39>>
7
7
  * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
- * @codegenDependency ../../../../forge-ui/src/components/UIKit/form/__generated__/valid-message.partial.tsx <<SignedSource::5642828cf60622725e2b538ad69b07d8>>
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit/form/__generated__/valid-message.partial.tsx <<SignedSource::5460cf891302777898b53c0b4ae8b610>>
9
9
  */
10
10
  import React from 'react';
11
11
  import { ValidMessage as PlatformValidMessage } from '@atlaskit/form';
12
12
  type PlatformValidMessageProps = React.ComponentProps<typeof PlatformValidMessage>;
13
13
  export type ValidMessageProps = Pick<PlatformValidMessageProps, 'children' | 'testId'>;
14
+ /**
15
+ * A form allows users to input information.
16
+ */
17
+ export type TValidMessage<T> = (props: ValidMessageProps) => T;
14
18
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/forge-react-types",
3
- "version": "0.34.13",
3
+ "version": "0.34.15",
4
4
  "description": "Component types for Forge UI Kit React components",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -43,10 +43,10 @@
43
43
  "@atlaskit/progress-tracker": "9.2.0",
44
44
  "@atlaskit/radio": "^7.0.0",
45
45
  "@atlaskit/range": "^8.0.0",
46
- "@atlaskit/renderer": "^112.9.0",
46
+ "@atlaskit/renderer": "^112.11.0",
47
47
  "@atlaskit/section-message": "^6.8.0",
48
48
  "@atlaskit/select": "^18.9.0",
49
- "@atlaskit/spinner": "^16.3.0",
49
+ "@atlaskit/spinner": "^17.0.0",
50
50
  "@atlaskit/tabs": "^17.1.0",
51
51
  "@atlaskit/tag": "^12.6.0",
52
52
  "@atlaskit/tag-group": "^11.0.0",
@@ -3,9 +3,9 @@
3
3
  *
4
4
  * Extract component prop types from UIKit 2 components - BadgeProps
5
5
  *
6
- * @codegen <<SignedSource::92388efe5b39418e1cea1294d8ce6855>>
6
+ * @codegen <<SignedSource::64c7e35a348ef5e063329091a361292f>>
7
7
  * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
- * @codegenDependency ../../../../forge-ui/src/components/UIKit/badge/__generated__/index.partial.tsx <<SignedSource::74d81fc03682e51d4ea5e5eea2215574>>
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit/badge/__generated__/index.partial.tsx <<SignedSource::89ad3341c1b8ef4b6fc93df162ac91d3>>
9
9
  */
10
10
  /* eslint @repo/internal/codegen/signed-source-integrity: "warn" */
11
11
 
@@ -3,9 +3,9 @@
3
3
  *
4
4
  * Extract component prop types from UIKit 2 components - BleedProps
5
5
  *
6
- * @codegen <<SignedSource::cbd738c202b814d0103cb6fd54a2f2ad>>
6
+ * @codegen <<SignedSource::c7fc1c22894c170849e24bf5e8171def>>
7
7
  * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
- * @codegenDependency ../../../../forge-ui/src/components/UIKit/bleed/__generated__/index.partial.tsx <<SignedSource::406ffef6715a3dff3aa10511e2ec232c>>
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit/bleed/__generated__/index.partial.tsx <<SignedSource::a2cfcd6831a7e1c773ef12a09fc07228>>
9
9
  */
10
10
  /* eslint @repo/internal/codegen/signed-source-integrity: "warn" */
11
11
 
@@ -17,4 +17,9 @@ type PlatformBleedProps = React.ComponentProps<typeof PlatformBleed>;
17
17
  export type BleedProps = Pick<
18
18
  PlatformBleedProps,
19
19
  'children' | 'all' | 'inline' | 'block' | 'testId' | 'role'
20
- >;
20
+ >;
21
+
22
+ /**
23
+ * Primitives are token-backed low-level building blocks.
24
+ */
25
+ export type TBleed<T> = (props: BleedProps) => T;
@@ -3,9 +3,9 @@
3
3
  *
4
4
  * Extract component prop types from UIKit 2 components - BoxProps
5
5
  *
6
- * @codegen <<SignedSource::5953057bca93305790983ebf1513e471>>
6
+ * @codegen <<SignedSource::31dc8fb4f36ecf67c99521f59d86c2e1>>
7
7
  * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
- * @codegenDependency ../../../../forge-ui/src/components/UIKit/box/__generated__/index.partial.tsx <<SignedSource::1b547198cbfceadd8838222c33bbda26>>
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit/box/__generated__/index.partial.tsx <<SignedSource::7f0def3e681685c87e720c200f3f4b23>>
9
9
  */
10
10
  /* eslint-disable @atlaskit/design-system/ensure-design-token-usage/preview */
11
11
 
@@ -179,12 +179,7 @@ const xcssValidator = makeXCSSValidator({
179
179
  type PlatformBoxProps = React.ComponentProps<typeof PlatformBox>;
180
180
  type XCSSProp = ReturnType<typeof xcssValidator>;
181
181
 
182
- export type BoxProps = Pick<
183
- PlatformBoxProps,
184
- | 'children'
185
- | 'ref'
186
- | 'testId'
187
- > & {
182
+ export type BoxProps = Pick<PlatformBoxProps, 'children' | 'ref' | 'testId'> & {
188
183
  /**
189
184
  * A shorthand for `paddingBlock` and `paddingInline` together.
190
185
  *
@@ -247,7 +242,7 @@ export type BoxProps = Pick<
247
242
 
248
243
  /**
249
244
  * Apply a subset of permitted styles, powered by Atlassian Design System tokens.
250
- * For a list of supported style properties on this component, see [here](/platform/forge/ui-kit/components/xcss).
245
+ * For a list of supported style properties on this component, see [here](https://developer.atlassian.com/platform/forge/ui-kit/components/xcss).
251
246
  *
252
247
  * @type XCSSProp
253
248
  */
@@ -3,9 +3,9 @@
3
3
  *
4
4
  * Extract component prop types from UIKit 2 components - ButtonGroupProps
5
5
  *
6
- * @codegen <<SignedSource::4a6cd1b2831a12bbddea1a735a6c8907>>
6
+ * @codegen <<SignedSource::4daf3a960cc3108bbbc8ad0ede3b7011>>
7
7
  * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
- * @codegenDependency ../../../../forge-ui/src/components/UIKit/button/__generated__/button-group.partial.tsx <<SignedSource::8f41744fe0477b14db5f0c764e4d8a10>>
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit/button/__generated__/button-group.partial.tsx <<SignedSource::728cab6df690811513a66ea4bacb89c9>>
9
9
  */
10
10
  /* eslint @repo/internal/codegen/signed-source-integrity: "warn" */
11
11
 
@@ -15,4 +15,9 @@ import type { ButtonProps } from '@atlaskit/button';
15
15
  export type ButtonGroupProps = Pick<
16
16
  PlatformButtonGroupProps,
17
17
  'children' | 'testId' | 'label' | 'titleId'
18
- > & { appearance?: ButtonProps['appearance'] };
18
+ > & { appearance?: ButtonProps['appearance'] };
19
+
20
+ /**
21
+ * A button triggers an event or action. They let users know what will happen next.
22
+ */
23
+ export type TButtonGroup<T> = (props: ButtonGroupProps) => T;
@@ -3,9 +3,9 @@
3
3
  *
4
4
  * Extract component prop types from UIKit 2 components - ButtonProps
5
5
  *
6
- * @codegen <<SignedSource::c29e7149d653838ec5536420b8518bf7>>
6
+ * @codegen <<SignedSource::333890773f42cacce17cee560686b34c>>
7
7
  * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
- * @codegenDependency ../../../../forge-ui/src/components/UIKit/button/__generated__/index.partial.tsx <<SignedSource::98b5f936725e04433d64b0ae5e85b701>>
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit/button/__generated__/index.partial.tsx <<SignedSource::c3a07cf50f9f4f166b94a72b4c2d5784>>
9
9
  */
10
10
  /* eslint @repo/internal/codegen/signed-source-integrity: "warn" */
11
11
 
@@ -389,4 +389,6 @@ export type ButtonProps = Pick<
389
389
  iconBefore?: IconType;
390
390
  iconAfter?: IconType;
391
391
  spacing?: PlatformButtonProps['spacing'] | 'none';
392
- };
392
+ };
393
+
394
+ export type TButton<T> = (props: ButtonProps) => T;
@@ -3,9 +3,9 @@
3
3
  *
4
4
  * Extract component prop types from UIKit 2 components - CalendarProps
5
5
  *
6
- * @codegen <<SignedSource::f5a5568104eee5eb1fc1238a8248e9e5>>
6
+ * @codegen <<SignedSource::87bad6f2a27e493eeba6d969450d3a3d>>
7
7
  * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
- * @codegenDependency ../../../../forge-ui/src/components/UIKit/calendar/__generated__/index.partial.tsx <<SignedSource::500d3df7d07464aeb6502c6c1e32094f>>
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit/calendar/__generated__/index.partial.tsx <<SignedSource::3fb4c1249481ec420be5118220ebcd82>>
9
9
  */
10
10
  /* eslint @repo/internal/codegen/signed-source-integrity: "warn" */
11
11
 
@@ -17,4 +17,9 @@ type PlatformCalendarProps = React.ComponentProps<typeof PlatformCalendar>;
17
17
  export type CalendarProps = Pick<
18
18
  PlatformCalendarProps,
19
19
  'day' | 'defaultDay' | 'defaultMonth' | 'defaultYear' | 'defaultPreviouslySelected' | 'defaultSelected' | 'disabled' | 'maxDate' | 'minDate' | 'nextMonthLabel' | 'onBlur' | 'onChange' | 'onFocus' | 'onSelect' | 'previouslySelected' | 'previousMonthLabel' | 'selected' | 'today' | 'year' | 'locale' | 'testId' | 'weekStartDay' | 'tabIndex'
20
- >;
20
+ >;
21
+
22
+ /**
23
+ * An interactive calendar for date selection experiences.
24
+ */
25
+ export type TCalendar<T> = (props: CalendarProps) => T;
@@ -3,9 +3,9 @@
3
3
  *
4
4
  * Extract component prop types from UIKit 2 components - CheckboxProps
5
5
  *
6
- * @codegen <<SignedSource::27fe7915fb435d54bbd443371e68c64c>>
6
+ * @codegen <<SignedSource::7f4aa902734166585716f52e001a6d8f>>
7
7
  * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
- * @codegenDependency ../../../../forge-ui/src/components/UIKit/checkbox/__generated__/index.partial.tsx <<SignedSource::b920c1cd759f2f7718cbd7afc3c04856>>
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit/checkbox/__generated__/index.partial.tsx <<SignedSource::e34c0ab52d3409a8548b6e51450ba43b>>
9
9
  */
10
10
  /* eslint @repo/internal/codegen/signed-source-integrity: "warn" */
11
11
 
@@ -19,4 +19,9 @@ export type CheckboxProps = Pick<
19
19
  PlatformCheckboxProps,
20
20
  'testId' | 'defaultChecked' | 'isChecked' | 'isIndeterminate' | 'label'
21
21
  | 'id' | 'isRequired' | 'isDisabled' | 'isInvalid' | 'value' | 'aria-invalid' | 'aria-labelledby' | 'name'
22
- > & Pick<EventHandlerProps, 'onChange' | 'onBlur' | 'onFocus'>;
22
+ > & Pick<EventHandlerProps, 'onChange' | 'onBlur' | 'onFocus'>;
23
+
24
+ /**
25
+ * A checkbox is an input control that allows a user to select one or more options from a number of choices.
26
+ */
27
+ export type TCheckbox<T> = (props: CheckboxProps) => T;
@@ -3,9 +3,9 @@
3
3
  *
4
4
  * Extract component prop types from UIKit 2 components - CodeBlockProps
5
5
  *
6
- * @codegen <<SignedSource::098e0843568fab0c7230e24d7d1d8a4f>>
6
+ * @codegen <<SignedSource::7ac72aa38d908f5ad8be5452cccb84d1>>
7
7
  * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
- * @codegenDependency ../../../../forge-ui/src/components/UIKit/code/__generated__/codeblock.partial.tsx <<SignedSource::8d1724c2fcc8fab3764250a4f63f76eb>>
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit/code/__generated__/codeblock.partial.tsx <<SignedSource::88ed38fdfc47db0938e7801195a00403>>
9
9
  */
10
10
  /* eslint @repo/internal/codegen/signed-source-integrity: "warn" */
11
11
 
@@ -17,4 +17,9 @@ type PlatformCodeBlockProps = React.ComponentProps<typeof PlatformCodeBlock>;
17
17
  export type CodeBlockProps = Pick<
18
18
  PlatformCodeBlockProps,
19
19
  'text' | 'testId' | 'showLineNumbers' | 'language' | 'highlight' | 'highlightedStartText' | 'highlightedEndText' | 'shouldWrapLongLines'
20
- >;
20
+ >;
21
+
22
+ /**
23
+ * Code highlights short strings of code snippets inline with body text.
24
+ */
25
+ export type TCodeBlock<T> = (props: CodeBlockProps) => T;
@@ -3,9 +3,9 @@
3
3
  *
4
4
  * Extract component prop types from UIKit 2 components - CodeProps
5
5
  *
6
- * @codegen <<SignedSource::5b14dff15ad9bdad8a26fdda0fcb700c>>
6
+ * @codegen <<SignedSource::1a39727c921b99c3519aa0020e967c21>>
7
7
  * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
- * @codegenDependency ../../../../forge-ui/src/components/UIKit/code/__generated__/code.partial.tsx <<SignedSource::7c44fc035da9da9e1dc10ad78f244bed>>
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit/code/__generated__/code.partial.tsx <<SignedSource::370e450903cb8f21b11acac7a9fc720b>>
9
9
  */
10
10
  /* eslint @repo/internal/codegen/signed-source-integrity: "warn" */
11
11
 
@@ -17,4 +17,9 @@ type PlatformCodeProps = React.ComponentProps<typeof PlatformCode>;
17
17
  export type CodeProps = Pick<
18
18
  PlatformCodeProps,
19
19
  'children' | 'testId'
20
- >;
20
+ >;
21
+
22
+ /**
23
+ * Code highlights short strings of code snippets inline with body text.
24
+ */
25
+ export type TCode<T> = (props: CodeProps) => T;
@@ -3,9 +3,9 @@
3
3
  *
4
4
  * Extract component prop types from UIKit 2 components - DatePickerProps
5
5
  *
6
- * @codegen <<SignedSource::f4379336ae6809d6dc490f67dfd34cd5>>
6
+ * @codegen <<SignedSource::14d82d10ae64e4333440817918f6e955>>
7
7
  * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
- * @codegenDependency ../../../../forge-ui/src/components/UIKit/datepicker/__generated__/index.partial.tsx <<SignedSource::5408131ac700a0baedb02ef897692c12>>
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit/datepicker/__generated__/index.partial.tsx <<SignedSource::6bc5d63c14b9dda11b370e386ccf4955>>
9
9
  */
10
10
  /* eslint @repo/internal/codegen/signed-source-integrity: "warn" */
11
11
 
@@ -51,4 +51,9 @@ export type DatePickerProps = {
51
51
  onChange?: (value: string) => void;
52
52
  selectProps?: DateTimePickerSelectProps;
53
53
  shouldShowCalendarButton?: boolean;
54
- } & Partial<Omit<FieldProps, 'onChange'>>;
54
+ } & Partial<Omit<FieldProps, 'onChange'>>;
55
+
56
+ /**
57
+ * A date time picker allows the user to select an associated date and time.
58
+ */
59
+ export type TDatePicker<T> = (props: DatePickerProps) => T;
@@ -3,9 +3,9 @@
3
3
  *
4
4
  * Extract component prop types from UIKit 2 components - DynamicTableProps
5
5
  *
6
- * @codegen <<SignedSource::5c8d9d5d4a28765e8e982abff651de32>>
6
+ * @codegen <<SignedSource::213e682fc5fc702c30fb176cf45969b3>>
7
7
  * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
- * @codegenDependency ../../../../forge-ui/src/components/UIKit/dynamictable/__generated__/index.partial.tsx <<SignedSource::48b2b4eac0a51cd071bfa077e923eb3f>>
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit/dynamictable/__generated__/index.partial.tsx <<SignedSource::579e3dddf7bd4b762d0fd40744619b89>>
9
9
  */
10
10
  /* eslint @repo/internal/codegen/signed-source-integrity: "warn" */
11
11
 
@@ -14,9 +14,33 @@ import type { RowType, StatefulProps } from '@atlaskit/dynamic-table/types';
14
14
  type NewRowType = Pick<RowType, 'cells' | 'key' | 'isHighlighted'>;
15
15
 
16
16
  export type DynamicTableProps = Pick<
17
- StatefulProps,
18
- 'defaultPage' | 'defaultSortKey' | 'defaultSortOrder' | 'emptyView' | 'head' | 'highlightedRowIndex' | 'isFixedSize' | 'isLoading' | 'isRankable' | 'label' | 'loadingSpinnerSize' | 'onRankEnd' | 'onRankStart' | 'onSetPage' | 'page' | 'paginationi18n' | 'rowsPerPage' | 'sortKey' | 'sortOrder' | 'testId'
19
- > & {
20
- rows?: NewRowType[];
21
- caption?: string;
22
- };
17
+ StatefulProps,
18
+ | 'defaultPage'
19
+ | 'defaultSortKey'
20
+ | 'defaultSortOrder'
21
+ | 'emptyView'
22
+ | 'head'
23
+ | 'highlightedRowIndex'
24
+ | 'isFixedSize'
25
+ | 'isLoading'
26
+ | 'isRankable'
27
+ | 'label'
28
+ | 'loadingSpinnerSize'
29
+ | 'onRankEnd'
30
+ | 'onRankStart'
31
+ | 'onSetPage'
32
+ | 'page'
33
+ | 'paginationi18n'
34
+ | 'rowsPerPage'
35
+ | 'sortKey'
36
+ | 'sortOrder'
37
+ | 'testId'
38
+ > & {
39
+ rows?: NewRowType[];
40
+ caption?: string;
41
+ };
42
+
43
+ /**
44
+ * A dynamic table displays rows of data with built-in pagination, sorting, and re-ordering functionality.
45
+ */
46
+ export type TDynamicTable<T> = (props: DynamicTableProps) => T;
@@ -3,9 +3,9 @@
3
3
  *
4
4
  * Extract component prop types from UIKit 2 components - EmptyStateProps
5
5
  *
6
- * @codegen <<SignedSource::4d85600b608de1e5bdd496c26d46e162>>
6
+ * @codegen <<SignedSource::07a70b90ed6e68ae200fd5e38e163a89>>
7
7
  * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
- * @codegenDependency ../../../../forge-ui/src/components/UIKit/emptystate/__generated__/index.partial.tsx <<SignedSource::fcecc0f674b9690cf74157284c24045a>>
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit/emptystate/__generated__/index.partial.tsx <<SignedSource::d6c509a722d55de0f55d401cd2e75435>>
9
9
  */
10
10
  /* eslint @repo/internal/codegen/signed-source-integrity: "warn" */
11
11
 
@@ -17,4 +17,9 @@ type PlatformEmptyStateProps = React.ComponentProps<typeof PlatformEmptyState>;
17
17
  export type EmptyStateProps = Pick<
18
18
  PlatformEmptyStateProps,
19
19
  'buttonGroupLabel' | 'description' | 'header' | 'headingLevel' | 'isLoading' | 'primaryAction' | 'secondaryAction' | 'tertiaryAction' | 'testId' | 'width'
20
- >;
20
+ >;
21
+
22
+ /**
23
+ * An empty state appears when there is no data to display and describes what the user can do next.
24
+ */
25
+ export type TEmptyState<T> = (props: EmptyStateProps) => T;
@@ -3,9 +3,9 @@
3
3
  *
4
4
  * Extract component prop types from UIKit 2 components - ErrorMessageProps
5
5
  *
6
- * @codegen <<SignedSource::b27ea13693f064f02be77ca22a7b21a7>>
6
+ * @codegen <<SignedSource::3d3da7aa33a6ac0adb1524f89ee28208>>
7
7
  * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
- * @codegenDependency ../../../../forge-ui/src/components/UIKit/form/__generated__/error-message.partial.tsx <<SignedSource::94778992a6ed8c3225c72407310f2a82>>
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit/form/__generated__/error-message.partial.tsx <<SignedSource::9e1a8d256d8d999a689140fbcda430fa>>
9
9
  */
10
10
  /* eslint @repo/internal/codegen/signed-source-integrity: "warn" */
11
11
 
@@ -17,4 +17,9 @@ type PlatformErrorMessageProps = React.ComponentProps<typeof PlatformErrorMessag
17
17
  export type ErrorMessageProps = Pick<
18
18
  PlatformErrorMessageProps,
19
19
  'children' | 'testId'
20
- >;
20
+ >;
21
+
22
+ /**
23
+ * A form allows users to input information.
24
+ */
25
+ export type TErrorMessage<T> = (props: ErrorMessageProps) => T;